(this["webpackJsonpgonzo-test-client"]=this["webpackJsonpgonzo-test-client"]||[]).push([[47],{fxIf:function(module,exports,__webpack_require__){(function(global){var require,require,f;f=function(){var define,module,exports;return function e(t,n,r){function o(s,a){if(!n[s]){if(!t[s]){if(!a&&"function"==typeof require&&require)return require(s,!0);if(i)return i(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[s]={exports:{}};t[s][0].call(c.exports,(function(e){var n=t[s][1][e];return o(n||e)}),c,c.exports,e,t,n,r)}return n[s].exports}for(var i="function"==typeof require&&require,s=0;s0&&this.respondWith.apply(this,arguments);var e=this.queue||[],t=e.splice(0,e.length),n=this;t.forEach((function(e){n.processRequest(e)}))},respondAll:function(){var e;if(!this.respondImmediately)for(this.queue=this.requests.slice(0);e=this.queue.shift();)this.processRequest(e)},processRequest:function(e){try{if(e.aborted)return;var t=this.response||[404,{},""];if(this.responses)for(var n=this.responses.length-1;n>=0;n--)if(f.call(this,this.responses[n],e)){t=this.responses[n].response;break}4!==e.readyState&&(this.log(t,e),e.respond(t[0],t[1],t[2]))}catch(r){this.logError("Fake server request processing",r)}},restore:function(){return this.xhr.restore&&this.xhr.restore.apply(this.xhr,arguments)},getRequest:function(e){return this.requests[e]||null},reset:function(){this.resetBehavior(),this.resetHistory()},resetBehavior:function(){this.responses.length=this.queue.length=0},resetHistory:function(){this.requests.length=this.requestCount=0,this.requestedOnce=this.requestedTwice=this.requestedThrice=this.requested=!1,this.firstRequest=this.secondRequest=this.thirdRequest=this.lastRequest=null}};t.exports=p},{"../configure-logger":1,"../fake-xhr":11,"./format":8,"path-to-regexp":46}],10:[function(e,t,n){"use strict";n.isSupported=function(){try{return!!new Blob}catch(e){return!1}}()},{}],11:[function(e,t,n){"use strict";var r="undefined"!==typeof TextEncoder?TextEncoder:e("@sinonjs/text-encoding").TextEncoder,o=e("../configure-logger"),i=e("../event"),s=e("just-extend"),a="undefined"!==typeof ProgressEvent,u="undefined"!==typeof CustomEvent,c="undefined"!==typeof FormData,f="undefined"!==typeof ArrayBuffer,l=e("./blob").isSupported,p={"Accept-Charset":!0,"Access-Control-Request-Headers":!0,"Access-Control-Request-Method":!0,"Accept-Encoding":!0,Connection:!0,"Content-Length":!0,Cookie:!0,Cookie2:!0,"Content-Transfer-Encoding":!0,Date:!0,DNT:!0,Expect:!0,Host:!0,"Keep-Alive":!0,Origin:!0,Referer:!0,TE:!0,Trailer:!0,"Transfer-Encoding":!0,Upgrade:!0,"User-Agent":!0,Via:!0};function h(){var e=this;["loadstart","progress","abort","error","load","timeout","loadend"].forEach((function(t){e.addEventListener(t,(function(n){var r=e["on"+t];r&&"function"===typeof r&&r.call(this,n)}))}))}function d(e,t){return Object.keys(e).filter((function(e){return e.toLowerCase()===t.toLowerCase()}))[0]||null}function y(e){return!/^Set-Cookie2?$/i.test(e)}function m(e,t){return e instanceof ArrayBuffer?e:new r(t||"utf-8").encode(e).buffer}function g(e){return!e||/(text\/xml)|(application\/xml)|(\+xml)/.test(e)}function v(e){""===e.responseType||"text"===e.responseType?e.response=e.responseText="":e.response=e.responseText=null,e.responseXML=null}function b(e){var t=e.navigator&&"ReactNative"===e.navigator.product,n={XMLHttpRequest:e.XMLHttpRequest};function r(e){h.call(this),this.readyState=r.UNSENT,this.requestHeaders={},this.requestBody=null,this.status=0,this.statusText="",this.upload=new h,this.responseType="",this.response="",this.logError=o(e),n.supportsTimeout&&(this.timeout=0),n.supportsCORS&&(this.withCredentials=!1),"function"===typeof r.onCreate&&r.onCreate(this)}function b(e){if(e.readyState!==r.OPENED)throw new Error("INVALID_STATE_ERR");if(e.sendFlag)throw new Error("INVALID_STATE_ERR")}n.GlobalXMLHttpRequest=e.XMLHttpRequest,n.GlobalActiveXObject=e.ActiveXObject,n.supportsActiveX="undefined"!==typeof n.GlobalActiveXObject,n.supportsXHR="undefined"!==typeof n.GlobalXMLHttpRequest,n.workingXHR=function(e){return"undefined"!==typeof e.XMLHttpRequest?e.XMLHttpRequest:!("undefined"===typeof e.ActiveXObject)&&function(){return new e.ActiveXObject("MSXML2.XMLHTTP.3.0")}}(e),n.supportsTimeout=n.supportsXHR&&"timeout"in new n.GlobalXMLHttpRequest,n.supportsCORS=t||n.supportsXHR&&"withCredentials"in new n.GlobalXMLHttpRequest;var w=function(e,t,n){switch(n.length){case 0:return e[t]();case 1:return e[t](n[0]);case 2:return e[t](n[0],n[1]);case 3:return e[t](n[0],n[1],n[2]);case 4:return e[t](n[0],n[1],n[2],n[3]);case 5:return e[t](n[0],n[1],n[2],n[3],n[4]);default:throw new Error("Unhandled case")}};function E(e){if(e.readyState!==r.OPENED)throw new Error("INVALID_STATE_ERR - "+e.readyState)}function T(e){v(e),e.errorFlag=!0,e.requestHeaders={},e.responseHeaders={},e.readyState!==r.UNSENT&&e.sendFlag&&e.readyState!==r.DONE&&(e.readyStateChange(r.DONE),e.sendFlag=!1)}r.filters=[],r.addFilter=function(e){this.filters.push(e)},r.defake=function(e,t){var o=new n.workingXHR;["open","setRequestHeader","abort","getResponseHeader","getAllResponseHeaders","addEventListener","overrideMimeType","removeEventListener"].forEach((function(t){e[t]=function(){return w(o,t,arguments)}})),e.send=function(){return o.responseType!==e.responseType&&(o.responseType=e.responseType),w(o,"send",arguments)};var i=function(t){t.forEach((function(t){e[t]=o[t]}))},s=function(){e.readyState=o.readyState,o.readyState>=r.HEADERS_RECEIVED&&i(["status","statusText"]),o.readyState>=r.LOADING&&(i(["response"]),""!==o.responseType&&"text"!==o.responseType||i(["responseText"])),o.readyState!==r.DONE||""!==o.responseType&&"document"!==o.responseType||i(["responseXML"])},a=function(){e.onreadystatechange&&e.onreadystatechange.call(e,{target:e,currentTarget:e})};o.addEventListener?(o.addEventListener("readystatechange",s),Object.keys(e.eventListeners).forEach((function(t){e.eventListeners[t].forEach((function(e){o.addEventListener(t,e.listener,{capture:e.capture,once:e.once})}))})),o.addEventListener("readystatechange",a)):o.onreadystatechange=function(){s(),a()},w(o,"open",t)},r.useFilters=!1,r.parseXML=function(e){if(""!==e)try{if("undefined"!==typeof DOMParser){var t,n=new DOMParser,r="";try{var o=n.parseFromString("INVALID","text/xml").getElementsByTagName("parsererror");o.length&&(r=o[0].namespaceURI)}catch(s){}try{t=n.parseFromString(e,"text/xml")}catch(a){return null}return t.getElementsByTagNameNS(r,"parsererror").length?null:t}var i=new window.ActiveXObject("Microsoft.XMLDOM");return i.async="false",i.loadXML(e),0!==i.parseError.errorCode?null:i}catch(s){}return null},r.statusCodes={100:"Continue",101:"Switching Protocols",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",300:"Multiple Choice",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",422:"Unprocessable Entity",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"},s(r.prototype,i.EventTarget,{async:!0,open:function(e,t,n,o,i){if(this.method=e,this.url=t,this.async="boolean"!==typeof n||n,this.username=o,this.password=i,v(this),this.requestHeaders={},this.sendFlag=!1,!0===r.useFilters){var s=arguments,a=r.filters.some((function(e){return e.apply(this,s)}));if(a)return void r.defake(this,arguments)}this.readyStateChange(r.OPENED)},readyStateChange:function(e){this.readyState=e;var t,n,o=new i.Event("readystatechange",!1,!1,this);if("function"===typeof this.onreadystatechange)try{this.onreadystatechange(o)}catch(s){this.logError("Fake XHR onreadystatechange handler",s)}this.readyState===r.DONE&&(this.timedOut||this.aborted||0===this.status?(n={loaded:0,total:0},t=(this.timedOut?"timeout":this.aborted&&"abort")||"error"):(n={loaded:100,total:100},t="load"),a&&(this.upload.dispatchEvent(new i.ProgressEvent("progress",n,this)),this.upload.dispatchEvent(new i.ProgressEvent(t,n,this)),this.upload.dispatchEvent(new i.ProgressEvent("loadend",n,this))),this.dispatchEvent(new i.ProgressEvent("progress",n,this)),this.dispatchEvent(new i.ProgressEvent(t,n,this)),this.dispatchEvent(new i.ProgressEvent("loadend",n,this))),this.dispatchEvent(o)},setRequestHeader:function(e,t){if("string"!==typeof t)throw new TypeError("By RFC7230, section 3.2.4, header values should be strings. Got "+typeof t);b(this);var n=!0;if("function"===typeof this.unsafeHeadersEnabled&&(n=this.unsafeHeadersEnabled()),n&&(null!==d(p,e)||/^(Sec-|Proxy-)/i.test(e)))throw new Error('Refused to set unsafe header "'+e+'"');t=function(e){return e.replace(/^[\x09\x0A\x0D\x20]+|[\x09\x0A\x0D\x20]+$/g,"")}(t);var r=d(this.requestHeaders,e);r?this.requestHeaders[r]+=", "+t:this.requestHeaders[e]=t},setStatus:function(e){var t="number"===typeof e?e:200;E(this),this.status=t,this.statusText=r.statusCodes[t]},setResponseHeaders:function(e){E(this);var t=this.responseHeaders={};Object.keys(e).forEach((function(n){t[n]=e[n]})),this.async?this.readyStateChange(r.HEADERS_RECEIVED):this.readyState=r.HEADERS_RECEIVED},send:function(e){if(b(this),!/^(head)$/i.test(this.method)){var t=d(this.requestHeaders,"Content-Type");if(this.requestHeaders[t]){var o=this.requestHeaders[t].split(";");this.requestHeaders[t]=o[0]+";charset=utf-8"}else!c||e instanceof FormData||(this.requestHeaders["Content-Type"]="text/plain;charset=utf-8");this.requestBody=e}if(this.errorFlag=!1,this.sendFlag=this.async,v(this),"function"===typeof this.onSend&&this.onSend(this),n.supportsTimeout&&"object"===typeof setInterval.clock&&"object"===typeof Date.clock)var s=Date.now(),a=this,u=setInterval((function(){a.readyState===r.UNSENT||a.readyState===r.DONE?clearInterval(u):"number"===typeof a.timeout&&a.timeout>0&&Date.now()>=s+a.timeout&&(a.triggerTimeout(),clearInterval(u))}),1);this.dispatchEvent(new i.Event("loadstart",!1,!1,this))},abort:function(){this.aborted=!0,T(this),this.readyState=r.UNSENT},error:function(){v(this),this.errorFlag=!0,this.requestHeaders={},this.responseHeaders={},this.readyStateChange(r.DONE)},triggerTimeout:function(){n.supportsTimeout&&(this.timedOut=!0,T(this))},getResponseHeader:function(e){return this.readyState=r.LOADING)throw new Error("INVALID_STATE_ERR");this.overriddenMimeType=e}});var x={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4};return s(r,x),s(r.prototype,x),{xhr:n,FakeXMLHttpRequest:r,useFakeXMLHttpRequest:function(){return r.restore=function(t){n.supportsXHR&&(e.XMLHttpRequest=n.GlobalXMLHttpRequest),n.supportsActiveX&&(e.ActiveXObject=n.GlobalActiveXObject),delete r.restore,!0!==t&&delete r.onCreate},n.supportsXHR&&(e.XMLHttpRequest=r),n.supportsActiveX&&(e.ActiveXObject=function(e){return"Microsoft.XMLHTTP"===e||/^Msxml2\.XMLHTTP/i.test(e)?new r:new n.GlobalActiveXObject(e)}),r}}}h.prototype=i.EventTarget;var w="undefined"!==typeof global?global:window;t.exports=s(b(w),{fakeXMLHttpRequestFor:b})},{"../configure-logger":1,"../event":5,"./blob":10,"@sinonjs/text-encoding":41,"just-extend":43}],12:[function(e,t,n){"use strict";t.exports={fakeServer:e("./fake-server"),fakeServerWithClock:e("./fake-server/fake-server-with-clock"),fakeXhr:e("./fake-xhr")}},{"./fake-server":9,"./fake-server/fake-server-with-clock":7,"./fake-xhr":11}],13:[function(e,t,n){"use strict";t.exports=function(e,t){var n=!0;try{e.forEach((function(){if(!t.apply(this,arguments))throw new Error}))}catch(r){n=!1}return n}},{}],14:[function(e,t,n){"use strict";t.exports=function(e){return e.displayName||e.name||(String(e).match(/function ([^\s\(]+)/)||[])[1]}},{}],15:[function(e,t,n){"use strict";t.exports={every:e("./every"),functionName:e("./function-name"),prototypes:e("./prototypes"),typeOf:e("./type-of"),valueToString:e("./value-to-string")}},{"./every":13,"./function-name":14,"./prototypes":19,"./type-of":22,"./value-to-string":23}],16:[function(e,t,n){"use strict";var r=e("./copy-prototype");t.exports=r(Array.prototype)},{"./copy-prototype":17}],17:[function(e,t,n){"use strict";var r=Function.call;t.exports=function(e){return Object.getOwnPropertyNames(e).reduce((function(t,n){return"size"!==n&&"caller"!==n&&"callee"!==n&&"arguments"!==n&&"function"===typeof e[n]&&(t[n]=r.bind(e[n])),t}),Object.create(null))}},{}],18:[function(e,t,n){"use strict";var r=e("./copy-prototype");t.exports=r(Function.prototype)},{"./copy-prototype":17}],19:[function(e,t,n){"use strict";t.exports={array:e("./array"),function:e("./function"),object:e("./object"),string:e("./string")}},{"./array":16,"./function":18,"./object":20,"./string":21}],20:[function(e,t,n){"use strict";var r=e("./copy-prototype");t.exports=r(Object.prototype)},{"./copy-prototype":17}],21:[function(e,t,n){"use strict";var r=e("./copy-prototype");t.exports=r(String.prototype)},{"./copy-prototype":17}],22:[function(e,t,n){"use strict";var r=e("type-detect");t.exports=function(e){return r(e).toLowerCase()}},{"type-detect":47}],23:[function(e,t,n){"use strict";t.exports=function(e){return e&&e.toString?e.toString():String(e)}},{}],24:[function(e,t,n){"use strict";var r=e("@sinonjs/samsam"),o={excludeConstructors:["Object",/^.$/],quoteStrings:!0,limitChildrenCount:0},i=[];function s(e){if(!e)return"";if(e.displayName)return e.displayName;if(e.name)return e.name;var t=e.toString().match(/function\s+([^\(]+)/m);return t&&t[1]||""}function a(e,t){var n,r,i=s(t&&t.constructor),a=e.excludeConstructors||o.excludeConstructors||[];for(n=0,r=a.length;n0?Math.min(this.limitChildrenCount,e.length):e.length,r=0;r0?Math.min(this.limitChildrenCount,h.length):h.length,s=0;s80?m+"{\n "+g+p.join(",\n "+g)+"\n"+g+"}":m+"{ "+p.join(", ")+" }"},c.element=function(e){var t,n,r,o,i,s=e.tagName.toLowerCase(),a=e.attributes,u=[];for(r=0,o=a.length;r0?" ":""),f=e.innerHTML||"";return f.length>20&&(f=f.substr(0,20)+"[...]"),(c+u.join(" ")+">"+f+"").replace(/ contentEditable="inherit"/,"")},f.prototype={functionName:s,configure:function(e){return new f(e)},constructorName:function(e){return a(this,e)},ascii:function(e,t,n){return c(this,e,t,n)}},t.exports=f.prototype},{"@sinonjs/samsam":40}],25:[function(e,t,n){"use strict";var r=e("./get-class"),o=e("./identical"),i=e("./is-arguments"),s=e("./is-date"),a=e("./is-element"),u=e("./is-nan"),c=e("./is-object"),f=e("./is-set"),l=e("./is-subset"),p=e("./get-class-name"),h=Array.prototype.every,d=Date.prototype.getTime,y=Object.prototype.hasOwnProperty,m=Array.prototype.indexOf,g=Object.keys;function v(e,t,n){var v=[],b=[],w=[],E=[],T={};return function e(t,x,O,S){if(n&&n.isMatcher(x))return n.isMatcher(t)?t===x:x.test(t);var j=typeof t,A=typeof x;if(t===x||u(t)||u(x)||null==t||null==x||"object"!==j||"object"!==A)return o(t,x);if(a(t)||a(x))return!1;var R=s(t),k=s(x);if((R||k)&&(!R||!k||d.call(t)!==d.call(x)))return!1;if(t instanceof RegExp&&x instanceof RegExp&&t.toString()!==x.toString())return!1;if(t instanceof Error&&x instanceof Error&&(t.constructor!==x.constructor||t.message!==x.message||t.stack!==x.stack))return!1;var q=r(t),C=r(x),_=g(t),M=g(x),I=p(t),L=p(x);if(i(t)||i(x)){if(t.length!==x.length)return!1}else if(j!==A||q!==C||_.length!==M.length||I&&L&&I!==L)return!1;return f(t)||f(x)?!(!f(t)||!f(x)||t.size!==x.size)&&l(t,x,e):h.call(_,(function(n){if(!y.call(x,n))return!1;var r=t[n],o=x[n],i=c(r),s=c(o),a=i?m.call(v,r):-1,u=s?m.call(b,o):-1,f=-1!==a?w[a]:O+"["+JSON.stringify(n)+"]",l=-1!==u?E[u]:S+"["+JSON.stringify(n)+"]",p=f+l;return!!T[p]||(-1===a&&i&&(v.push(r),w.push(f)),-1===u&&s&&(b.push(o),E.push(l)),i&&s&&(T[p]=!0),e(r,o,f,l))}))}(e,t,"$1","$2")}v.use=function(e){return function(t,n){return v(t,n,e)}},t.exports=v},{"./get-class":27,"./get-class-name":26,"./identical":28,"./is-arguments":29,"./is-date":30,"./is-element":31,"./is-nan":32,"./is-object":34,"./is-set":35,"./is-subset":36}],26:[function(e,t,n){"use strict";var r=/function (\w+)\s*\(/;t.exports=function(e){if(e.constructor&&"name"in e.constructor)return e.constructor.name;if("function"===typeof e.constructor){var t=e.constructor.toString().match(r);if(t.length>1)return t[1]}return null}},{}],27:[function(e,t,n){"use strict";var r=Object.prototype;t.exports=function(e){return r.toString.call(e).split(/[ \]]/)[1]}},{}],28:[function(e,t,n){"use strict";var r=e("./is-nan"),o=e("./is-neg-zero");t.exports=function(e,t){return!!(e===t||r(e)&&r(t))&&(0!==e||o(e)===o(t))}},{"./is-nan":32,"./is-neg-zero":33}],29:[function(e,t,n){"use strict";var r=e("./get-class");t.exports=function(e){if("Arguments"===r(e))return!0;if("object"!==typeof e||"number"!==typeof e.length||"Array"===r(e))return!1;if("function"===typeof e.callee)return!0;try{e[e.length]=6,delete e[e.length]}catch(t){return!0}return!1}},{"./get-class":27}],30:[function(e,t,n){"use strict";t.exports=function(e){return e instanceof Date}},{}],31:[function(e,t,n){"use strict";var r="undefined"!==typeof document&&document.createElement("div");t.exports=function(e){if(!e||1!==e.nodeType||!r)return!1;try{e.appendChild(r),e.removeChild(r)}catch(t){return!1}return!0}},{}],32:[function(e,t,n){"use strict";t.exports=function(e){return"number"===typeof e&&e!==e}},{}],33:[function(e,t,n){"use strict";t.exports=function(e){return 0===e&&1/e===-1/0}},{}],34:[function(e,t,n){"use strict";t.exports=function(e){return"object"===typeof e&&null!==e&&!(e instanceof Boolean)&&!(e instanceof Date)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof RegExp)&&!(e instanceof String)}},{}],35:[function(e,t,n){"use strict";t.exports=function(e){return"undefined"!==typeof Set&&e instanceof Set||!1}},{}],36:[function(e,t,n){"use strict";t.exports=function(e,t,n){var r=!0;return e.forEach((function(e){var o=!1;t.forEach((function(t){n(t,e)&&(o=!0)})),r=r&&o})),r}},{}],37:[function(e,t,n){"use strict";var r=e("@sinonjs/commons").prototypes.string.slice,o=e("@sinonjs/commons").typeOf;t.exports=function(e){var t="";function n(e){return"string"===typeof e?"'"+e+"'":String(e)}return"map"===o(e)?(e.forEach((function(e,r){t+="["+n(r)+","+n(e)+"],"})),t=r(t,0,-1)):(e.forEach((function(e){t+=n(e)+","})),t=r(t,0,-1))}},{"@sinonjs/commons":15}],38:[function(e,t,n){"use strict";var r=e("./deep-equal").use(c),o=e("./get-class"),i=e("./is-date"),s=e("./is-set"),a=e("./is-subset"),u=e("./matcher");function c(e,t){if(t&&"function"===typeof t.test)return t.test(e);if("function"===typeof t)return!0===t(e);if("string"===typeof t)return t=t.toLowerCase(),("string"===typeof e||!!e)&&String(e).toLowerCase().indexOf(t)>=0;if("number"===typeof t)return t===e;if("boolean"===typeof t)return t===e;if("undefined"===typeof t)return"undefined"===typeof e;if(null===t)return null===e;if(null===e)return!1;if(s(e))return a(t,e,c);if("Array"===o(e)&&"Array"===o(t))return function(e,t,n){if(0===t.length)return!0;var r,o,i,s;for(r=0,o=e.length;r=o)return!1;if(!n(e[r+i],t[i]))return!1}return!0}return!1}(e,t,c);if(i(t))return i(e)&&e.getTime()===t.getTime();if(t&&"object"===typeof t){if(t===e)return!0;if("object"!==typeof e)return!1;var n;for(n in t){var u=e[n];if("undefined"===typeof u&&"function"===typeof e.getAttribute&&(u=e.getAttribute(n)),null===t[n]||"undefined"===typeof t[n]){if(u!==t[n])return!1}else if("undefined"===typeof u||!r(u,t[n]))return!1}return!0}throw new Error("Matcher was not a string, a number, a function, a boolean or an object")}Object.keys(u).forEach((function(e){c[e]=u[e]})),t.exports=c},{"./deep-equal":25,"./get-class":27,"./is-date":30,"./is-set":35,"./is-subset":36,"./matcher":39}],39:[function(e,t,n){"use strict";var r=e("@sinonjs/commons").prototypes.array,o=e("./deep-equal").use(S),i=e("@sinonjs/commons").every,s=e("@sinonjs/commons").functionName,a=e("lodash.get"),u=e("./iterable-to-string"),c=e("@sinonjs/commons").prototypes.object,f=e("@sinonjs/commons").prototypes.string,l=e("@sinonjs/commons").typeOf,p=e("@sinonjs/commons").valueToString,h=r.indexOf,d=r.every,y=r.join,m=r.map,g=r.some,v=c.hasOwnProperty,b=c.isPrototypeOf,w=f.indexOf;function E(e,t,n){var r=l(e);if(r!==t)throw new TypeError("Expected type of "+n+" to be "+t+", but was "+r)}var T={toString:function(){return this.message}};function x(e){return b(T,e)}var O={function:function(e,t,n){e.test=t,e.message=n||"match("+s(t)+")"},number:function(e,t){e.test=function(e){return t==e}},object:function(e,t){var n;return"function"===typeof t.test?(e.test=function(e){return!0===t.test(e)},e.message="match("+s(t.test)+")",e):(n=m(Object.keys(t),(function(e){return e+": "+p(t[e])})),e.test=function(e){return function e(t,n){return null!==t&&void 0!==t&&d(Object.keys(n),(function(r){var i=n[r],s=t[r];if(x(i)){if(!i.test(s))return!1}else if("object"===l(i)){if(!e(s,i))return!1}else if(!o(s,i))return!1;return!0}))}(e,t)},e.message="match("+y(n,", ")+")",e)},regexp:function(e,t){e.test=function(e){return"string"===typeof e&&t.test(e)}},string:function(e,t){e.test=function(e){return"string"===typeof e&&-1!==w(e,t)},e.message='match("'+t+'")'}};function S(e,t){var n=Object.create(T),r=l(e);return r in O?O[r](n,e,t):n.test=function(t){return o(t,e)},n.message||(n.message="match("+p(e)+")"),n}function j(e,t){return function(n,r){E(n,"string","property");var i=1===arguments.length,s=t+'("'+n+'"';return i||(s+=", "+p(r)),S((function(t){return!(void 0===t||null===t||!e(t,n))&&(i||o(t[n],r))}),s+=")")}}T.or=function(e){if(!arguments.length)throw new TypeError("Matcher expected");x(e)||(e=S(e));var t=this,n=Object.create(T);return n.test=function(n){return t.test(n)||e.test(n)},n.message=t.message+".or("+e.message+")",n},T.and=function(e){if(!arguments.length)throw new TypeError("Matcher expected");x(e)||(e=S(e));var t=this,n=Object.create(T);return n.test=function(n){return t.test(n)&&e.test(n)},n.message=t.message+".and("+e.message+")",n},S.isMatcher=x,S.any=S((function(){return!0}),"any"),S.defined=S((function(e){return null!==e&&void 0!==e}),"defined"),S.truthy=S((function(e){return!!e}),"truthy"),S.falsy=S((function(e){return!e}),"falsy"),S.same=function(e){return S((function(t){return e===t}),"same("+p(e)+")")},S.in=function(e){if(!Array.isArray(e))throw new TypeError("array expected");return S((function(t){return g(e,(function(e){return e===t}))}),"in("+p(e)+")")},S.typeOf=function(e){return E(e,"string","type"),S((function(t){return l(t)===e}),'typeOf("'+e+'")')},S.instanceOf=function(e){return"undefined"===typeof Symbol||"undefined"===typeof Symbol.hasInstance?E(e,"function","type"):function(e,t,n,r){if(null==e[t])throw new TypeError("Expected "+n+" to have method "+r)}(e,Symbol.hasInstance,"type","[Symbol.hasInstance]"),S((function(t){return t instanceof e}),"instanceOf("+(s(e)||Object.prototype.toString.call(e))+")")},S.has=j((function(e,t){return"object"===typeof e?t in e:void 0!==e[t]}),"has"),S.hasOwn=j((function(e,t){return v(e,t)}),"hasOwn"),S.hasNested=function(e,t){E(e,"string","property");var n=1===arguments.length,r='hasNested("'+e+'"';return n||(r+=", "+p(t)),S((function(r){return void 0!==r&&null!==r&&void 0!==a(r,e)&&(n||o(a(r,e),t))}),r+=")")},S.every=function(e){if(!x(e))throw new TypeError("Matcher expected");return S((function(t){return"object"===l(t)?i(Object.keys(t),(function(n){return e.test(t[n])})):!!t&&"function"===l(t.forEach)&&i(t,(function(t){return e.test(t)}))}),"every("+e.message+")")},S.some=function(e){if(!x(e))throw new TypeError("Matcher expected");return S((function(t){return"object"===l(t)?!i(Object.keys(t),(function(n){return!e.test(t[n])})):!!t&&"function"===l(t.forEach)&&!i(t,(function(t){return!e.test(t)}))}),"some("+e.message+")")},S.array=S.typeOf("array"),S.array.deepEquals=function(e){return S((function(t){var n=t.length===e.length;return"array"===l(t)&&n&&i(t,(function(t,n){return e[n]===t}))}),"deepEquals(["+u(e)+"])")},S.array.startsWith=function(e){return S((function(t){return"array"===l(t)&&i(e,(function(e,n){return t[n]===e}))}),"startsWith(["+u(e)+"])")},S.array.endsWith=function(e){return S((function(t){var n=t.length-e.length;return"array"===l(t)&&i(e,(function(e,r){return t[n+r]===e}))}),"endsWith(["+u(e)+"])")},S.array.contains=function(e){return S((function(t){return"array"===l(t)&&i(e,(function(e){return-1!==h(t,e)}))}),"contains(["+u(e)+"])")},S.map=S.typeOf("map"),S.map.deepEquals=function(e){return S((function(t){var n=t.size===e.size;return"map"===l(t)&&n&&i(t,(function(t,n){return e.has(n)&&e.get(n)===t}))}),"deepEquals(Map["+u(e)+"])")},S.map.contains=function(e){return S((function(t){return"map"===l(t)&&i(e,(function(e,n){return t.has(n)&&t.get(n)===e}))}),"contains(Map["+u(e)+"])")},S.set=S.typeOf("set"),S.set.deepEquals=function(e){return S((function(t){var n=t.size===e.size;return"set"===l(t)&&n&&i(t,(function(t){return e.has(t)}))}),"deepEquals(Set["+u(e)+"])")},S.set.contains=function(e){return S((function(t){return"set"===l(t)&&i(e,(function(e){return t.has(e)}))}),"contains(Set["+u(e)+"])")},S.bool=S.typeOf("boolean"),S.number=S.typeOf("number"),S.string=S.typeOf("string"),S.object=S.typeOf("object"),S.func=S.typeOf("function"),S.regexp=S.typeOf("regexp"),S.date=S.typeOf("date"),S.symbol=S.typeOf("symbol"),t.exports=S},{"./deep-equal":25,"./iterable-to-string":37,"@sinonjs/commons":15,"lodash.get":44}],40:[function(e,t,n){"use strict";var r=e("./identical"),o=e("./is-arguments"),i=e("./is-element"),s=e("./is-neg-zero"),a=e("./match"),u=e("./deep-equal").use(a),c=e("./matcher");t.exports={createMatcher:c,deepEqual:u,isArguments:o,isElement:i,isNegZero:s,identical:r,match:a}},{"./deep-equal":25,"./identical":28,"./is-arguments":29,"./is-element":31,"./is-neg-zero":33,"./match":38,"./matcher":39}],41:[function(e,t,n){},{}],42:[function(e,t,n){t.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},{}],43:[function(e,t,n){function r(e){return Array.isArray(e)||"[object Object]"=={}.toString.call(e)}t.exports=function e(){var t=[].slice.call(arguments),n=!1;"boolean"==typeof t[0]&&(n=t.shift());var o=t[0];if(!o||"object"!=typeof o&&"function"!=typeof o)throw new Error("extendee must be an object");for(var i=t.slice(1),s=i.length,a=0;a-1},R.prototype.set=function(e,t){var n=this.__data__,r=q(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},k.prototype.clear=function(){this.__data__={hash:new A,map:new(x||R),string:new A}},k.prototype.delete=function(e){return M(this,e).delete(e)},k.prototype.get=function(e){return M(this,e).get(e)},k.prototype.has=function(e){return M(this,e).has(e)},k.prototype.set=function(e,t){return M(this,e).set(e,t),this};var L=N((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(F(e))return j?j.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return i.test(e)&&n.push(""),e.replace(s,(function(e,t,r,o){n.push(r?o.replace(a,"$1"):t||e)})),n}));function D(e){if("string"==typeof e||F(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function N(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s),s};return n.cache=new(N.Cache||k),n}N.Cache=k;var P=Array.isArray;function H(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function F(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==b.call(e)}t.exports=function(e,t,n){var r=null==e?void 0:C(e,t);return void 0===r?n:r}},{}],45:[function(require,module,exports){"use strict";var userAgent=global.navigator&&global.navigator.userAgent,isRunningInIE=userAgent&&userAgent.indexOf("MSIE ")>-1,maxTimeout=Math.pow(2,31)-1;isRunningInIE&&(global.setTimeout=global.setTimeout,global.clearTimeout=global.clearTimeout,global.setInterval=global.setInterval,global.clearInterval=global.clearInterval,global.Date=global.Date),void 0!==global.setImmediate&&(global.setImmediate=global.setImmediate,global.clearImmediate=global.clearImmediate);var NOOP=function(){},timeoutResult=setTimeout(NOOP,0),addTimerReturnsObject="object"===typeof timeoutResult,hrtimePresent=global.process&&"function"===typeof global.process.hrtime,nextTickPresent=global.process&&"function"===typeof global.process.nextTick,performancePresent=global.performance&&"function"===typeof global.performance.now,requestAnimationFramePresent=global.requestAnimationFrame&&"function"===typeof global.requestAnimationFrame,cancelAnimationFramePresent=global.cancelAnimationFrame&&"function"===typeof global.cancelAnimationFrame;clearTimeout(timeoutResult);var NativeDate=Date,uniqueTimerId=1;function parseTime(e){if(!e)return 0;var t,n=e.split(":"),r=n.length,o=r,i=0;if(r>3||!/^(\d\d:){0,2}\d\d?$/.test(e))throw new Error("tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits");for(;o--;){if((t=parseInt(n[o],10))>=60)throw new Error("Invalid time "+e);i+=t*Math.pow(60,r-o-1)}return 1e3*i}function fixedFloor(e){return e>=0?Math.floor(e):Math.ceil(e)}function fixedModulo(e,t){return(e%t+t)%t}function getEpoch(e){if(!e)return 0;if("function"===typeof e.getTime)return e.getTime();if("number"===typeof e)return e;throw new TypeError("now should be milliseconds since UNIX epoch")}function inRange(e,t,n){return n&&n.callAt>=e&&n.callAt<=t}function mirrorDateProperties(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return t.now?e.now=function(){return e.clock.now}:delete e.now,t.toSource?e.toSource=function(){return t.toSource()}:delete e.toSource,e.toString=function(){return t.toString()},e.prototype=t.prototype,e.parse=t.parse,e.UTC=t.UTC,e.prototype.toUTCString=t.prototype.toUTCString,e}function createDate(){return mirrorDateProperties((function e(t,n,r,o,i,s,a){switch(arguments.length){case 0:return new NativeDate(e.clock.now);case 1:return new NativeDate(t);case 2:return new NativeDate(t,n);case 3:return new NativeDate(t,n,r);case 4:return new NativeDate(t,n,r,o);case 5:return new NativeDate(t,n,r,o,i);case 6:return new NativeDate(t,n,r,o,i,s);default:return new NativeDate(t,n,r,o,i,s,a)}}),NativeDate)}function enqueueJob(e,t){e.jobs||(e.jobs=[]),e.jobs.push(t)}function runJobs(e){if(e.jobs){for(var t=0;tmaxTimeout?1:t.delay,t.delay=Math.max(0,t.delay)),t.hasOwnProperty("interval")&&(t.type="Interval",t.interval=t.interval>maxTimeout?1:t.interval),t.hasOwnProperty("animation")&&(t.type="AnimationFrame",t.animation=!0),e.timers||(e.timers={}),t.id=uniqueTimerId++,t.createdAt=e.now,t.callAt=e.now+(parseInt(t.delay)||(e.duringTick?1:0)),e.timers[t.id]=t,addTimerReturnsObject?{id:t.id,ref:NOOP,unref:NOOP}:t.id}function compareTimers(e,t){return e.callAtt.callAt?1:e.immediate&&!t.immediate?-1:!e.immediate&&t.immediate?1:e.createdAtt.createdAt?1:e.idt.id?1:void 0}function firstTimerInRange(e,t,n){var r,o=e.timers,i=null;for(r in o)o.hasOwnProperty(r)&&(!inRange(t,n,o[r])||i&&1!==compareTimers(i,o[r])||(i=o[r]));return i}function firstTimer(e){var t,n=e.timers,r=null;for(t in n)n.hasOwnProperty(t)&&(r&&1!==compareTimers(r,n[t])||(r=n[t]));return r}function lastTimer(e){var t,n=e.timers,r=null;for(t in n)n.hasOwnProperty(t)&&(r&&-1!==compareTimers(r,n[t])||(r=n[t]));return r}function callTimer(clock,timer){"number"===typeof timer.interval?clock.timers[timer.id].callAt+=timer.interval:delete clock.timers[timer.id],"function"===typeof timer.func?timer.func.apply(null,timer.args):eval(timer.func)}function clearTimer(e,t,n){if(t&&(e.timers||(e.timers=[]),"object"===typeof t&&(t=t.id),e.timers.hasOwnProperty(t))){var r=e.timers[t];if(r.type!==n){var o="AnimationFrame"===n?"cancelAnimationFrame":"clear"+n,i="AnimationFrame"===r.type?"requestAnimationFrame":"set"+r.type;throw new Error("Cannot clear timer: timer created with "+i+"() but cleared with "+o+"()")}delete e.timers[t]}}function uninstall(e,t,n){var r,o,i;for(o=0,i=e.methods.length;o1||e instanceof Date||Array.isArray(e)||"number"===typeof e)throw new TypeError("lolex.install called with "+String(e)+" lolex 2.0+ requires an object parameter - see https://github.com/sinonjs/lolex");var t,n;(e="undefined"!==typeof e?e:{}).shouldAdvanceTime=e.shouldAdvanceTime||!1,e.advanceTimeDelta=e.advanceTimeDelta||20;var r=e.target||global,o=createClock(e.now,e.loopLimit);for(o.uninstall=function(){return uninstall(o,r,e)},o.methods=e.toFake||[],0===o.methods.length&&(o.methods=keys(timers).filter((function(e){return"nextTick"!==e}))),t=0,n=o.methods.length;t