text: var sinon=(function(){var a=typeof document!="undefined"&&document.createElement("div");function g(l){try{a.appendChild(l);a.removeChild(l)}catch(k){return false}return true}function f(k){return a&&k&&k.nodeType===1&&g(k)}return{wrapMethod:function h(l,n,p){if(!l){throw new TypeError("Should wrap property of object")}if(typeof p!="function"){throw new TypeError("Method wrapper should be function")}var k=l[n];var m=typeof k;if(m!="function"){throw new TypeError("Attempted to wrap "+m+" property "+n+" as function")}if(k.restore&&k.restore.sinon){throw new TypeError("Attempted to wrap "+n+" which is already wrapped")}if(k.calledBefore){var o=!!k.returns?"stubbed":"spied on";throw new TypeError("Attempted to wrap "+n+" which is already "+o)}l[n]=p;p.displayName=n;p.restore=function(){l[n]=k};p.restore.sinon=true;return p},extend:function e(n){for(var m=1,k=arguments.length;m<k;m+=1){for(var o in arguments[m]){if(arguments[m].hasOwnProperty(o)){n[o]=arguments[m][o]}}}return n},create:function c(l){if(Object.create){return Object.create(l)}else{var k=function(){};k.prototype=l;return new k()}},deepEqual:function i(n,k){if(typeof n!="object"||typeof k!="object"){return n===k}if(f(n)||f(k)){return n===k}if(n===k){return true}if(Object.prototype.toString.call(n)=="[object Array]"){if(n.length!==k.length){return false}for(var p=0,m=n.length;p<m;p+=1){if(!i(n[p],k[p])){return false}}return true}var r,o=0,q=0;for(r in n){o+=1;if(!i(n[r],k[r])){return false}}for(r in k){q+=1}if(o!=q){return false}return true},keys:function j(l){var k=[];for(var m in l){if(l.hasOwnProperty(m)){k.push(m)}}return k.sort()},functionName:function d(l){var k=l.displayName||l.name;if(!k){var m=l.toString().match(/function ([^\s\(]+)/);k=m&&m[1]}return k},functionToString:function b(){if(this.getCall&&this.callCount){var k,m,l=this.callCount;while(l--){k=this.getCall(l).thisValue;for(m in k){if(k[m]===this){return m}}}}return this.displayName||"sinon fake"},getConfig:function(l){var k={};l=l||{};var m=sinon.defaultConfig;for(var n in m){if(m.hasOwnProperty(n)){k[n]=l.hasOwnProperty(n)?l[n]:m[n]}}return k},defaultConfig:{injectIntoThis:true,injectInto:null,properties:["spy","stub","mock","clock","server","requests"],useFakeTimers:true,useFakeServer:true}}}());if(typeof module=="object"&&typeof require=="function"){require.paths.unshift(__dirname);module.exports=sinon;module.exports.spy=require("sinon/spy");module.exports.stub=require("sinon/stub");module.exports.mock=require("sinon/mock");module.exports.collection=require("sinon/collection");module.exports.assert=require("sinon/assert");module.exports.sandbox=require("sinon/sandbox");module.exports.test=require("sinon/test");module.exports.testCase=require("sinon/test_case");require.paths.shift()};