exonum-client
Version:
Light Client for Exonum Blockchain
1 lines • 244 kB
JavaScript
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Exonum=t()}}(function(){var define,module,exports;return function i(a,s,u){function c(e,t){if(!s[e]){if(!a[e]){var r="function"==typeof require&&require;if(!t&&r)return r(e,!0);if(l)return l(e,!0);var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}var o=s[e]={exports:{}};a[e][0].call(o.exports,function(t){return c(a[e][1][t]||t)},o,o.exports,i,a,s,u)}return s[e].exports}for(var l="function"==typeof require&&require,t=0;t<u.length;t++)c(u[t]);return c}({1:[function(t,e,r){"use strict";e.exports=function(t,e){var r=new Array(arguments.length-1),i=0,n=2,a=!0;for(;n<arguments.length;)r[i++]=arguments[n++];return new Promise(function(n,o){r[i]=function(t){if(a)if(a=!1,t)o(t);else{for(var e=new Array(arguments.length-1),r=0;r<e.length;)e[r++]=arguments[r];n.apply(null,e)}};try{t.apply(e||null,r)}catch(t){a&&(a=!1,o(t))}})}},{}],2:[function(t,e,r){"use strict";var n=r;n.length=function(t){var e=t.length;if(!e)return 0;for(var r=0;1<--e%4&&"="===t.charAt(e);)++r;return Math.ceil(3*t.length)/4-r};for(var c=new Array(64),u=new Array(123),o=0;o<64;)u[c[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;n.encode=function(t,e,r){for(var n,o=null,i=[],a=0,s=0;e<r;){var u=t[e++];switch(s){case 0:i[a++]=c[u>>2],n=(3&u)<<4,s=1;break;case 1:i[a++]=c[n|u>>4],n=(15&u)<<2,s=2;break;case 2:i[a++]=c[n|u>>6],i[a++]=c[63&u],s=0}8191<a&&((o=o||[]).push(String.fromCharCode.apply(String,i)),a=0)}return s&&(i[a++]=c[n],i[a++]=61,1===s&&(i[a++]=61)),o?(a&&o.push(String.fromCharCode.apply(String,i.slice(0,a))),o.join("")):String.fromCharCode.apply(String,i.slice(0,a))};var l="invalid encoding";n.decode=function(t,e,r){for(var n,o=r,i=0,a=0;a<t.length;){var s=t.charCodeAt(a++);if(61===s&&1<i)break;if(void 0===(s=u[s]))throw Error(l);switch(i){case 0:n=s,i=1;break;case 1:e[r++]=n<<2|(48&s)>>4,n=s,i=2;break;case 2:e[r++]=(15&n)<<4|(60&s)>>2,n=s,i=3;break;case 3:e[r++]=(3&n)<<6|s,i=0}}if(1===i)throw Error(l);return r-o},n.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},{}],3:[function(t,e,r){"use strict";function n(){this._listeners={}}(e.exports=n).prototype.on=function(t,e,r){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:e,ctx:r||this}),this},n.prototype.off=function(t,e){if(void 0===t)this._listeners={};else if(void 0===e)this._listeners[t]=[];else for(var r=this._listeners[t],n=0;n<r.length;)r[n].fn===e?r.splice(n,1):++n;return this},n.prototype.emit=function(t){var e=this._listeners[t];if(e){for(var r=[],n=1;n<arguments.length;)r.push(arguments[n++]);for(n=0;n<e.length;)e[n].fn.apply(e[n++].ctx,r)}return this}},{}],4:[function(t,e,r){"use strict";function n(t){function e(t,e,r,n){var o=e<0?1:0;if(o&&(e=-e),0===e)t(0<1/e?0:2147483648,r,n);else if(isNaN(e))t(2143289344,r,n);else if(34028234663852886e22<e)t((o<<31|2139095040)>>>0,r,n);else if(e<11754943508222875e-54)t((o<<31|Math.round(e/1401298464324817e-60))>>>0,r,n);else{var i=Math.floor(Math.log(e)/Math.LN2);t((o<<31|i+127<<23|8388607&Math.round(e*Math.pow(2,-i)*8388608))>>>0,r,n)}}function r(t,e,r){var n=t(e,r),o=2*(n>>31)+1,i=n>>>23&255,a=8388607&n;return 255==i?a?NaN:1/0*o:0==i?1401298464324817e-60*o*a:o*Math.pow(2,i-150)*(8388608+a)}function n(t,e,r){s[0]=t,e[r]=u[0],e[r+1]=u[1],e[r+2]=u[2],e[r+3]=u[3]}function o(t,e,r){s[0]=t,e[r]=u[3],e[r+1]=u[2],e[r+2]=u[1],e[r+3]=u[0]}function i(t,e){return u[0]=t[e],u[1]=t[e+1],u[2]=t[e+2],u[3]=t[e+3],s[0]}function a(t,e){return u[3]=t[e],u[2]=t[e+1],u[1]=t[e+2],u[0]=t[e+3],s[0]}var s,u,c,l,f,h;function p(t,e,r,n,o,i){var a=n<0?1:0;if(a&&(n=-n),0===n)t(0,o,i+e),t(0<1/n?0:2147483648,o,i+r);else if(isNaN(n))t(0,o,i+e),t(2146959360,o,i+r);else if(17976931348623157e292<n)t(0,o,i+e),t((a<<31|2146435072)>>>0,o,i+r);else{var s;if(n<22250738585072014e-324)t((s=n/5e-324)>>>0,o,i+e),t((a<<31|s/4294967296)>>>0,o,i+r);else{var u=Math.floor(Math.log(n)/Math.LN2);1024===u&&(u=1023),t(4503599627370496*(s=n*Math.pow(2,-u))>>>0,o,i+e),t((a<<31|u+1023<<20|1048576*s&1048575)>>>0,o,i+r)}}}function d(t,e,r,n,o){var i=t(n,o+e),a=t(n,o+r),s=2*(a>>31)+1,u=a>>>20&2047,c=4294967296*(1048575&a)+i;return 2047==u?c?NaN:1/0*s:0==u?5e-324*s*c:s*Math.pow(2,u-1075)*(c+4503599627370496)}function y(t,e,r){l[0]=t,e[r]=f[0],e[r+1]=f[1],e[r+2]=f[2],e[r+3]=f[3],e[r+4]=f[4],e[r+5]=f[5],e[r+6]=f[6],e[r+7]=f[7]}function m(t,e,r){l[0]=t,e[r]=f[7],e[r+1]=f[6],e[r+2]=f[5],e[r+3]=f[4],e[r+4]=f[3],e[r+5]=f[2],e[r+6]=f[1],e[r+7]=f[0]}function g(t,e){return f[0]=t[e],f[1]=t[e+1],f[2]=t[e+2],f[3]=t[e+3],f[4]=t[e+4],f[5]=t[e+5],f[6]=t[e+6],f[7]=t[e+7],l[0]}function b(t,e){return f[7]=t[e],f[6]=t[e+1],f[5]=t[e+2],f[4]=t[e+3],f[3]=t[e+4],f[2]=t[e+5],f[1]=t[e+6],f[0]=t[e+7],l[0]}return"undefined"!=typeof Float32Array?(s=new Float32Array([-0]),u=new Uint8Array(s.buffer),c=128===u[3],t.writeFloatLE=c?n:o,t.writeFloatBE=c?o:n,t.readFloatLE=c?i:a,t.readFloatBE=c?a:i):(t.writeFloatLE=e.bind(null,v),t.writeFloatBE=e.bind(null,_),t.readFloatLE=r.bind(null,w),t.readFloatBE=r.bind(null,x)),"undefined"!=typeof Float64Array?(l=new Float64Array([-0]),f=new Uint8Array(l.buffer),h=128===f[7],t.writeDoubleLE=h?y:m,t.writeDoubleBE=h?m:y,t.readDoubleLE=h?g:b,t.readDoubleBE=h?b:g):(t.writeDoubleLE=p.bind(null,v,0,4),t.writeDoubleBE=p.bind(null,_,4,0),t.readDoubleLE=d.bind(null,w,0,4),t.readDoubleBE=d.bind(null,x,4,0)),t}function v(t,e,r){e[r]=255&t,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24}function _(t,e,r){e[r]=t>>>24,e[r+1]=t>>>16&255,e[r+2]=t>>>8&255,e[r+3]=255&t}function w(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}function x(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}e.exports=n(n)},{}],5:[function(require,module,exports){"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(t){}return null}module.exports=inquire},{}],6:[function(t,e,r){"use strict";e.exports=function(r,n,t){var o=t||8192,i=o>>>1,a=null,s=o;return function(t){if(t<1||i<t)return r(t);o<s+t&&(a=r(o),s=0);var e=n.call(a,s,s+=t);return 7&s&&(s=1+(7|s)),e}}},{}],7:[function(t,e,r){"use strict";var n=r;n.length=function(t){for(var e=0,r=0,n=0;n<t.length;++n)(r=t.charCodeAt(n))<128?e+=1:r<2048?e+=2:55296==(64512&r)&&56320==(64512&t.charCodeAt(n+1))?(++n,e+=4):e+=3;return e},n.read=function(t,e,r){if(r-e<1)return"";for(var n,o=null,i=[],a=0;e<r;)(n=t[e++])<128?i[a++]=n:191<n&&n<224?i[a++]=(31&n)<<6|63&t[e++]:239<n&&n<365?(n=((7&n)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,i[a++]=55296+(n>>10),i[a++]=56320+(1023&n)):i[a++]=(15&n)<<12|(63&t[e++])<<6|63&t[e++],8191<a&&((o=o||[]).push(String.fromCharCode.apply(String,i)),a=0);return o?(a&&o.push(String.fromCharCode.apply(String,i.slice(0,a))),o.join("")):String.fromCharCode.apply(String,i.slice(0,a))},n.write=function(t,e,r){for(var n,o,i=r,a=0;a<t.length;++a)(n=t.charCodeAt(a))<128?e[r++]=n:(n<2048?e[r++]=n>>6|192:(55296==(64512&n)&&56320==(64512&(o=t.charCodeAt(a+1)))?(n=65536+((1023&n)<<10)+(1023&o),++a,e[r++]=n>>18|240,e[r++]=n>>12&63|128):e[r++]=n>>12|224,e[r++]=n>>6&63|128),e[r++]=63&n|128);return r-i}},{}],8:[function(t,e,r){e.exports=t("./lib/axios")},{"./lib/axios":10}],9:[function(t,e,r){"use strict";var l=t("./../utils"),f=t("./../core/settle"),h=t("./../helpers/cookies"),p=t("./../helpers/buildURL"),d=t("../core/buildFullPath"),y=t("./../helpers/parseHeaders"),m=t("./../helpers/isURLSameOrigin"),g=t("../core/createError");e.exports=function(c){return new Promise(function(r,n){var o=c.data,i=c.headers;l.isFormData(o)&&delete i["Content-Type"];var a=new XMLHttpRequest;if(c.auth){var t=c.auth.username||"",e=c.auth.password?unescape(encodeURIComponent(c.auth.password)):"";i.Authorization="Basic "+btoa(t+":"+e)}var s=d(c.baseURL,c.url);if(a.open(c.method.toUpperCase(),p(s,c.params,c.paramsSerializer),!0),a.timeout=c.timeout,a.onreadystatechange=function(){if(a&&4===a.readyState&&(0!==a.status||a.responseURL&&0===a.responseURL.indexOf("file:"))){var t="getAllResponseHeaders"in a?y(a.getAllResponseHeaders()):null,e={data:c.responseType&&"text"!==c.responseType?a.response:a.responseText,status:a.status,statusText:a.statusText,headers:t,config:c,request:a};f(r,n,e),a=null}},a.onabort=function(){a&&(n(g("Request aborted",c,"ECONNABORTED",a)),a=null)},a.onerror=function(){n(g("Network Error",c,null,a)),a=null},a.ontimeout=function(){var t="timeout of "+c.timeout+"ms exceeded";c.timeoutErrorMessage&&(t=c.timeoutErrorMessage),n(g(t,c,"ECONNABORTED",a)),a=null},l.isStandardBrowserEnv()){var u=(c.withCredentials||m(s))&&c.xsrfCookieName?h.read(c.xsrfCookieName):void 0;u&&(i[c.xsrfHeaderName]=u)}if("setRequestHeader"in a&&l.forEach(i,function(t,e){void 0===o&&"content-type"===e.toLowerCase()?delete i[e]:a.setRequestHeader(e,t)}),l.isUndefined(c.withCredentials)||(a.withCredentials=!!c.withCredentials),c.responseType)try{a.responseType=c.responseType}catch(t){if("json"!==c.responseType)throw t}"function"==typeof c.onDownloadProgress&&a.addEventListener("progress",c.onDownloadProgress),"function"==typeof c.onUploadProgress&&a.upload&&a.upload.addEventListener("progress",c.onUploadProgress),c.cancelToken&&c.cancelToken.promise.then(function(t){a&&(a.abort(),n(t),a=null)}),o=o||null,a.send(o)})}},{"../core/buildFullPath":16,"../core/createError":17,"./../core/settle":21,"./../helpers/buildURL":25,"./../helpers/cookies":27,"./../helpers/isURLSameOrigin":30,"./../helpers/parseHeaders":32,"./../utils":34}],10:[function(t,e,r){"use strict";var n=t("./utils"),o=t("./helpers/bind"),i=t("./core/Axios"),a=t("./core/mergeConfig");function s(t){var e=new i(t),r=o(i.prototype.request,e);return n.extend(r,i.prototype,e),n.extend(r,e),r}var u=s(t("./defaults"));u.Axios=i,u.create=function(t){return s(a(u.defaults,t))},u.Cancel=t("./cancel/Cancel"),u.CancelToken=t("./cancel/CancelToken"),u.isCancel=t("./cancel/isCancel"),u.all=function(t){return Promise.all(t)},u.spread=t("./helpers/spread"),u.isAxiosError=t("./helpers/isAxiosError"),e.exports=u,e.exports.default=u},{"./cancel/Cancel":11,"./cancel/CancelToken":12,"./cancel/isCancel":13,"./core/Axios":14,"./core/mergeConfig":20,"./defaults":23,"./helpers/bind":24,"./helpers/isAxiosError":29,"./helpers/spread":33,"./utils":34}],11:[function(t,e,r){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},{}],12:[function(t,e,r){"use strict";var n=t("./Cancel");function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var r=this;t(function(t){r.reason||(r.reason=new n(t),e(r.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o(function(t){e=t}),cancel:e}},e.exports=o},{"./Cancel":11}],13:[function(t,e,r){"use strict";e.exports=function(t){return!(!t||!t.__CANCEL__)}},{}],14:[function(t,e,r){"use strict";var n=t("./../utils"),o=t("../helpers/buildURL"),i=t("./InterceptorManager"),a=t("./dispatchRequest"),s=t("./mergeConfig");function u(t){this.defaults=t,this.interceptors={request:new i,response:new i}}u.prototype.request=function(t,e){"string"==typeof t?(t=e||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=[a,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){r.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){r.push(t.fulfilled,t.rejected)});r.length;)n=n.then(r.shift(),r.shift());return n},u.prototype.getUri=function(t){return t=s(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],function(r){u.prototype[r]=function(t,e){return this.request(s(e||{},{method:r,url:t,data:(e||{}).data}))}}),n.forEach(["post","put","patch"],function(n){u.prototype[n]=function(t,e,r){return this.request(s(r||{},{method:n,url:t,data:e}))}}),e.exports=u},{"../helpers/buildURL":25,"./../utils":34,"./InterceptorManager":15,"./dispatchRequest":18,"./mergeConfig":20}],15:[function(t,e,r){"use strict";var n=t("./../utils");function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=o},{"./../utils":34}],16:[function(t,e,r){"use strict";var n=t("../helpers/isAbsoluteURL"),o=t("../helpers/combineURLs");e.exports=function(t,e){return t&&!n(e)?o(t,e):e}},{"../helpers/combineURLs":26,"../helpers/isAbsoluteURL":28}],17:[function(t,e,r){"use strict";var a=t("./enhanceError");e.exports=function(t,e,r,n,o){var i=new Error(t);return a(i,e,r,n,o)}},{"./enhanceError":19}],18:[function(t,e,r){"use strict";var n=t("./../utils"),o=t("./transformData"),i=t("../cancel/isCancel"),a=t("../defaults");function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return s(e),t.data=o(t.data,t.headers,e.transformResponse),t},function(t){return i(t)||(s(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},{"../cancel/isCancel":13,"../defaults":23,"./../utils":34,"./transformData":22}],19:[function(t,e,r){"use strict";e.exports=function(t,e,r,n,o){return t.config=e,r&&(t.code=r),t.request=n,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},{}],20:[function(t,e,r){"use strict";var f=t("../utils");e.exports=function(e,r){r=r||{};var n={},t=["url","method","data"],o=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function s(t,e){return f.isPlainObject(t)&&f.isPlainObject(e)?f.merge(t,e):f.isPlainObject(e)?f.merge({},e):f.isArray(e)?e.slice():e}function u(t){f.isUndefined(r[t])?f.isUndefined(e[t])||(n[t]=s(void 0,e[t])):n[t]=s(e[t],r[t])}f.forEach(t,function(t){f.isUndefined(r[t])||(n[t]=s(void 0,r[t]))}),f.forEach(o,u),f.forEach(i,function(t){f.isUndefined(r[t])?f.isUndefined(e[t])||(n[t]=s(void 0,e[t])):n[t]=s(void 0,r[t])}),f.forEach(a,function(t){t in r?n[t]=s(e[t],r[t]):t in e&&(n[t]=s(void 0,e[t]))});var c=t.concat(o).concat(i).concat(a),l=Object.keys(e).concat(Object.keys(r)).filter(function(t){return-1===c.indexOf(t)});return f.forEach(l,u),n}},{"../utils":34}],21:[function(t,e,r){"use strict";var o=t("./createError");e.exports=function(t,e,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(o("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}},{"./createError":17}],22:[function(t,e,r){"use strict";var n=t("./../utils");e.exports=function(e,r,t){return n.forEach(t,function(t){e=t(e,r)}),e}},{"./../utils":34}],23:[function(s,u,t){(function(t){"use strict";var r=s("./utils"),n=s("./helpers/normalizeHeaderName"),e={"Content-Type":"application/x-www-form-urlencoded"};function o(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var i,a={adapter:("undefined"!=typeof XMLHttpRequest?i=s("./adapters/xhr"):void 0!==t&&"[object process]"===Object.prototype.toString.call(t)&&(i=s("./adapters/http")),i),transformRequest:[function(t,e){return n(e,"Accept"),n(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(o(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(o(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return 200<=t&&t<300}};a.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],function(t){a.headers[t]={}}),r.forEach(["post","put","patch"],function(t){a.headers[t]=r.merge(e)}),u.exports=a}).call(this,s("_process"))},{"./adapters/http":9,"./adapters/xhr":9,"./helpers/normalizeHeaderName":31,"./utils":34,_process:43}],24:[function(t,e,r){"use strict";e.exports=function(r,n){return function(){for(var t=new Array(arguments.length),e=0;e<t.length;e++)t[e]=arguments[e];return r.apply(n,t)}}},{}],25:[function(t,e,r){"use strict";var a=t("./../utils");function s(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(t,e,r){if(!e)return t;var n;if(r)n=r(e);else if(a.isURLSearchParams(e))n=e.toString();else{var o=[];a.forEach(e,function(t,e){null!=t&&(a.isArray(t)?e+="[]":t=[t],a.forEach(t,function(t){a.isDate(t)?t=t.toISOString():a.isObject(t)&&(t=JSON.stringify(t)),o.push(s(e)+"="+s(t))}))}),n=o.join("&")}if(n){var i=t.indexOf("#");-1!==i&&(t=t.slice(0,i)),t+=(-1===t.indexOf("?")?"?":"&")+n}return t}},{"./../utils":34}],26:[function(t,e,r){"use strict";e.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},{}],27:[function(t,e,r){"use strict";var s=t("./../utils");e.exports=s.isStandardBrowserEnv()?{write:function(t,e,r,n,o,i){var a=[];a.push(t+"="+encodeURIComponent(e)),s.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),s.isString(n)&&a.push("path="+n),s.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},{"./../utils":34}],28:[function(t,e,r){"use strict";e.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},{}],29:[function(t,e,r){"use strict";e.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},{}],30:[function(t,e,r){"use strict";var n,o,i,a=t("./../utils");function s(t){var e=t;return o&&(i.setAttribute("href",e),e=i.href),i.setAttribute("href",e),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}e.exports=a.isStandardBrowserEnv()?(o=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a"),n=s(window.location.href),function(t){var e=a.isString(t)?s(t):t;return e.protocol===n.protocol&&e.host===n.host}):function(){return!0}},{"./../utils":34}],31:[function(t,e,r){"use strict";var o=t("../utils");e.exports=function(r,n){o.forEach(r,function(t,e){e!==n&&e.toUpperCase()===n.toUpperCase()&&(r[n]=t,delete r[e])})}},{"../utils":34}],32:[function(t,e,r){"use strict";var i=t("./../utils"),a=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(t){var e,r,n,o={};return t&&i.forEach(t.split("\n"),function(t){if(n=t.indexOf(":"),e=i.trim(t.substr(0,n)).toLowerCase(),r=i.trim(t.substr(n+1)),e){if(o[e]&&0<=a.indexOf(e))return;o[e]="set-cookie"===e?(o[e]?o[e]:[]).concat([r]):o[e]?o[e]+", "+r:r}}),o}},{"./../utils":34}],33:[function(t,e,r){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},{}],34:[function(t,e,r){"use strict";var o=t("./helpers/bind"),n=Object.prototype.toString;function i(t){return"[object Array]"===n.call(t)}function a(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function u(t){if("[object Object]"!==n.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function c(t){return"[object Function]"===n.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}e.exports={isArray:i,isArrayBuffer:function(t){return"[object ArrayBuffer]"===n.call(t)},isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isPlainObject:u,isUndefined:a,isDate:function(t){return"[object Date]"===n.call(t)},isFile:function(t){return"[object File]"===n.call(t)},isBlob:function(t){return"[object Blob]"===n.call(t)},isFunction:c,isStream:function(t){return s(t)&&c(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:l,merge:function r(){var n={};function t(t,e){u(n[e])&&u(t)?n[e]=r(n[e],t):u(t)?n[e]=r({},t):i(t)?n[e]=t.slice():n[e]=t}for(var e=0,o=arguments.length;e<o;e++)l(arguments[e],t);return n},extend:function(r,t,n){return l(t,function(t,e){r[e]=n&&"function"==typeof t?o(t,n):t}),r},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},{"./helpers/bind":24}],35:[function(t,e,r){"use strict";r.byteLength=function(t){var e=f(t),r=e[0],n=e[1];return 3*(r+n)/4-n},r.toByteArray=function(t){var e,r,n=f(t),o=n[0],i=n[1],a=new l(function(t,e){return 3*(t+e)/4-e}(o,i)),s=0,u=0<i?o-4:o;for(r=0;r<u;r+=4)e=c[t.charCodeAt(r)]<<18|c[t.charCodeAt(r+1)]<<12|c[t.charCodeAt(r+2)]<<6|c[t.charCodeAt(r+3)],a[s++]=e>>16&255,a[s++]=e>>8&255,a[s++]=255&e;2===i&&(e=c[t.charCodeAt(r)]<<2|c[t.charCodeAt(r+1)]>>4,a[s++]=255&e);1===i&&(e=c[t.charCodeAt(r)]<<10|c[t.charCodeAt(r+1)]<<4|c[t.charCodeAt(r+2)]>>2,a[s++]=e>>8&255,a[s++]=255&e);return a},r.fromByteArray=function(t){for(var e,r=t.length,n=r%3,o=[],i=0,a=r-n;i<a;i+=16383)o.push(u(t,i,a<i+16383?a:i+16383));1==n?(e=t[r-1],o.push(s[e>>2]+s[e<<4&63]+"==")):2==n&&(e=(t[r-2]<<8)+t[r-1],o.push(s[e>>10]+s[e>>4&63]+s[e<<2&63]+"="));return o.join("")};for(var s=[],c=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=n.length;o<i;++o)s[o]=n[o],c[n.charCodeAt(o)]=o;function f(t){var e=t.length;if(0<e%4)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function u(t,e,r){for(var n,o,i=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),i.push(s[(o=n)>>18&63]+s[o>>12&63]+s[o>>6&63]+s[63&o]);return i.join("")}c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},{}],36:[function(t,e,r){var X=function(u){"use strict";var g=1e7,f=7,e=9007199254740992,r=_(e),h="0123456789abcdefghijklmnopqrstuvwxyz",p="function"==typeof BigInt;function d(t,e,r,n){return void 0===t?d[0]:void 0!==e&&(10!=+e||r)?F(t,e,r,n):Y(t)}function y(t,e){this.value=t,this.sign=e,this.isSmall=!1}function m(t){this.value=t,this.sign=t<0,this.isSmall=!0}function b(t){this.value=t}function v(t){return-e<t&&t<e}function _(t){return t<1e7?[t]:t<1e14?[t%1e7,Math.floor(t/1e7)]:[t%1e7,Math.floor(t/1e7)%1e7,Math.floor(t/1e14)]}function w(t){x(t);var e=t.length;if(e<4&&L(t,r)<0)switch(e){case 0:return 0;case 1:return t[0];case 2:return t[0]+t[1]*g;default:return t[0]+(t[1]+t[2]*g)*g}return t}function x(t){for(var e=t.length;0===t[--e];);t.length=e+1}function O(t){for(var e=new Array(t),r=-1;++r<t;)e[r]=0;return e}function k(t){return 0<t?Math.floor(t):Math.ceil(t)}function n(t,e){var r,n,o=t.length,i=e.length,a=new Array(o),s=0,u=g;for(n=0;n<i;n++)s=u<=(r=t[n]+e[n]+s)?1:0,a[n]=r-s*u;for(;n<o;)s=(r=t[n]+s)===u?1:0,a[n++]=r-s*u;return 0<s&&a.push(s),a}function S(t,e){return t.length>=e.length?n(t,e):n(e,t)}function o(t,e){var r,n,o=t.length,i=new Array(o),a=g;for(n=0;n<o;n++)r=t[n]-a+e,e=Math.floor(r/a),i[n]=r-e*a,e+=1;for(;0<e;)i[n++]=e%a,e=Math.floor(e/a);return i}function E(t,e){var r,n,o=t.length,i=e.length,a=new Array(o),s=0,u=g;for(r=0;r<i;r++)s=(n=t[r]-s-e[r])<0?(n+=u,1):0,a[r]=n;for(r=i;r<o;r++){if(!((n=t[r]-s)<0)){a[r++]=n;break}n+=u,a[r]=n}for(;r<o;r++)a[r]=t[r];return x(a),a}function c(t,e,r){var n,o,i=t.length,a=new Array(i),s=-e,u=g;for(n=0;n<i;n++)o=t[n]+s,s=Math.floor(o/u),o%=u,a[n]=o<0?o+u:o;return"number"==typeof(a=w(a))?(r&&(a=-a),new m(a)):new y(a,r)}function A(t,e){var r,n,o,i,a=t.length,s=e.length,u=O(a+s),c=g;for(o=0;o<a;++o){i=t[o];for(var l=0;l<s;++l)r=i*e[l]+u[o+l],n=Math.floor(r/c),u[o+l]=r-n*c,u[o+l+1]+=n}return x(u),u}function j(t,e){var r,n,o=t.length,i=new Array(o),a=g,s=0;for(n=0;n<o;n++)r=t[n]*e+s,s=Math.floor(r/a),i[n]=r-s*a;for(;0<s;)i[n++]=s%a,s=Math.floor(s/a);return i}function P(t,e){for(var r=[];0<e--;)r.push(0);return r.concat(t)}function i(t,e,r){return new y(t<g?j(e,t):A(e,_(t)),r)}function a(t){var e,r,n,o,i=t.length,a=O(i+i),s=g;for(n=0;n<i;n++){r=0-(o=t[n])*o;for(var u=n;u<i;u++)e=o*t[u]*2+a[n+u]+r,r=Math.floor(e/s),a[n+u]=e-r*s;a[n+i]=r}return x(a),a}function B(t,e){var r,n,o,i,a=t.length,s=O(a),u=g;for(o=0,r=a-1;0<=r;--r)o=(i=o*u+t[r])-(n=k(i/e))*e,s[r]=0|n;return[s,0|o]}function T(t,e){var r,n=Y(e);if(p)return[new b(t.value/n.value),new b(t.value%n.value)];var o,i=t.value,a=n.value;if(0===a)throw new Error("Cannot divide by zero");if(t.isSmall)return n.isSmall?[new m(k(i/a)),new m(i%a)]:[d[0],t];if(n.isSmall){if(1===a)return[t,d[0]];if(-1==a)return[t.negate(),d[0]];var s=Math.abs(a);if(s<g){o=w((r=B(i,s))[0]);var u=r[1];return t.sign&&(u=-u),"number"==typeof o?(t.sign!==n.sign&&(o=-o),[new m(o),new m(u)]):[new y(o,t.sign!==n.sign),new m(u)]}a=_(s)}var c=L(i,a);if(-1===c)return[d[0],t];if(0===c)return[d[t.sign===n.sign?1:-1],d[0]];o=(r=(i.length+a.length<=200?function(t,e){var r,n,o,i,a,s,u,c=t.length,l=e.length,f=g,h=O(e.length),p=e[l-1],d=Math.ceil(f/(2*p)),y=j(t,d),m=j(e,d);for(y.length<=c&&y.push(0),m.push(0),p=m[l-1],n=c-l;0<=n;n--){for(r=f-1,y[n+l]!==p&&(r=Math.floor((y[n+l]*f+y[n+l-1])/p)),i=o=0,s=m.length,a=0;a<s;a++)o+=r*m[a],u=Math.floor(o/f),i+=y[n+a]-(o-u*f),o=u,i=i<0?(y[n+a]=i+f,-1):(y[n+a]=i,0);for(;0!==i;){for(--r,a=o=0;a<s;a++)o=(o+=y[n+a]-f+m[a])<0?(y[n+a]=o+f,0):(y[n+a]=o,1);i+=o}h[n]=r}return y=B(y,d)[0],[w(h),w(y)]}:function(t,e){for(var r,n,o,i,a,s=t.length,u=e.length,c=[],l=[],f=g;s;)if(l.unshift(t[--s]),x(l),L(l,e)<0)c.push(0);else{o=l[(n=l.length)-1]*f+l[n-2],i=e[u-1]*f+e[u-2],u<n&&(o=(o+1)*f),r=Math.ceil(o/i);do{if(L(a=j(e,r),l)<=0)break;r--}while(r);c.push(r),l=E(l,a)}return c.reverse(),[w(c),w(l)]})(i,a))[0];var l=t.sign!==n.sign,f=r[1],h=t.sign;return[o="number"==typeof o?(l&&(o=-o),new m(o)):new y(o,l),f="number"==typeof f?(h&&(f=-f),new m(f)):new y(f,h)]}function L(t,e){if(t.length!==e.length)return t.length>e.length?1:-1;for(var r=t.length-1;0<=r;r--)if(t[r]!==e[r])return t[r]>e[r]?1:-1;return 0}function l(t){var e=t.abs();return!e.isUnit()&&(!!(e.equals(2)||e.equals(3)||e.equals(5))||!(e.isEven()||e.isDivisibleBy(3)||e.isDivisibleBy(5))&&(!!e.lesser(49)||void 0))}function I(t,e){for(var r,n,o,i=t.prev(),a=i,s=0;a.isEven();)a=a.divide(2),s++;t:for(n=0;n<e.length;n++)if(!t.lesser(e[n])&&!(o=X(e[n]).modPow(a,t)).isUnit()&&!o.equals(i)){for(r=s-1;0!=r;r--){if((o=o.square().mod(t)).isUnit())return!1;if(o.equals(i))continue t}return!1}return!0}y.prototype=Object.create(d.prototype),m.prototype=Object.create(d.prototype),b.prototype=Object.create(d.prototype),y.prototype.plus=y.prototype.add=function(t){var e=Y(t);if(this.sign!==e.sign)return this.subtract(e.negate());var r=this.value,n=e.value;return e.isSmall?new y(o(r,Math.abs(n)),this.sign):new y(S(r,n),this.sign)},m.prototype.plus=m.prototype.add=function(t){var e=Y(t),r=this.value;if(r<0!==e.sign)return this.subtract(e.negate());var n=e.value;if(e.isSmall){if(v(r+n))return new m(r+n);n=_(Math.abs(n))}return new y(o(n,Math.abs(r)),r<0)},b.prototype.plus=b.prototype.add=function(t){return new b(this.value+Y(t).value)},y.prototype.minus=y.prototype.subtract=function(t){var e=Y(t);if(this.sign!==e.sign)return this.add(e.negate());var r,n,o,i,a=this.value,s=e.value;return e.isSmall?c(a,Math.abs(s),this.sign):(r=a,n=s,o=this.sign,0<=L(r,n)?i=E(r,n):(i=E(n,r),o=!o),"number"==typeof(i=w(i))?(o&&(i=-i),new m(i)):new y(i,o))},m.prototype.minus=m.prototype.subtract=function(t){var e=Y(t),r=this.value;if(r<0!==e.sign)return this.add(e.negate());var n=e.value;return e.isSmall?new m(r-n):c(n,Math.abs(r),0<=r)},b.prototype.minus=b.prototype.subtract=function(t){return new b(this.value-Y(t).value)},y.prototype.negate=function(){return new y(this.value,!this.sign)},m.prototype.negate=function(){var t=this.sign,e=new m(-this.value);return e.sign=!t,e},b.prototype.negate=function(){return new b(-this.value)},y.prototype.abs=function(){return new y(this.value,!1)},m.prototype.abs=function(){return new m(Math.abs(this.value))},b.prototype.abs=function(){return new b(0<=this.value?this.value:-this.value)},y.prototype.times=y.prototype.multiply=function(t){var e,r,n,o=Y(t),i=this.value,a=o.value,s=this.sign!==o.sign;if(o.isSmall){if(0===a)return d[0];if(1===a)return this;if(-1===a)return this.negate();if((e=Math.abs(a))<g)return new y(j(i,e),s);a=_(e)}return r=i.length,n=a.length,new y((0<-.012*r-.012*n+15e-6*r*n?function t(e,r){var n=Math.max(e.length,r.length);if(n<=30)return A(e,r);n=Math.ceil(n/2);var o=e.slice(n),i=e.slice(0,n),a=r.slice(n),s=r.slice(0,n),u=t(i,s),c=t(o,a),l=t(S(i,o),S(s,a)),f=S(S(u,P(E(E(l,u),c),n)),P(c,2*n));return x(f),f}:A)(i,a),s)},m.prototype._multiplyBySmall=function(t){return v(t.value*this.value)?new m(t.value*this.value):i(Math.abs(t.value),_(Math.abs(this.value)),this.sign!==t.sign)},y.prototype._multiplyBySmall=function(t){return 0===t.value?d[0]:1===t.value?this:-1===t.value?this.negate():i(Math.abs(t.value),this.value,this.sign!==t.sign)},m.prototype.times=m.prototype.multiply=function(t){return Y(t)._multiplyBySmall(this)},b.prototype.times=b.prototype.multiply=function(t){return new b(this.value*Y(t).value)},y.prototype.square=function(){return new y(a(this.value),!1)},m.prototype.square=function(){var t=this.value*this.value;return v(t)?new m(t):new y(a(_(Math.abs(this.value))),!1)},b.prototype.square=function(t){return new b(this.value*this.value)},b.prototype.divmod=m.prototype.divmod=y.prototype.divmod=function(t){var e=T(this,t);return{quotient:e[0],remainder:e[1]}},y.prototype.divide=function(t){return T(this,t)[0]},b.prototype.over=b.prototype.divide=function(t){return new b(this.value/Y(t).value)},m.prototype.over=m.prototype.divide=y.prototype.over=y.prototype.divide,y.prototype.mod=function(t){return T(this,t)[1]},b.prototype.mod=b.prototype.remainder=function(t){return new b(this.value%Y(t).value)},m.prototype.remainder=m.prototype.mod=y.prototype.remainder=y.prototype.mod,y.prototype.pow=function(t){var e,r,n,o=Y(t),i=this.value,a=o.value;if(0===a)return d[1];if(0===i)return d[0];if(1===i)return d[1];if(-1===i)return o.isEven()?d[1]:d[-1];if(o.sign)return d[0];if(!o.isSmall)throw new Error("The exponent "+o.toString()+" is too large.");if(this.isSmall&&v(e=Math.pow(i,a)))return new m(k(e));for(r=this,n=d[1];!0&a&&(n=n.times(r),--a),0!==a;)a/=2,r=r.square();return n},m.prototype.pow=y.prototype.pow,b.prototype.pow=function(t){var e=Y(t),r=this.value,n=e.value,o=BigInt(0),i=BigInt(1),a=BigInt(2);if(n===o)return d[1];if(r===o)return d[0];if(r===i)return d[1];if(r===BigInt(-1))return e.isEven()?d[1]:d[-1];if(e.isNegative())return new b(o);for(var s=this,u=d[1];(n&i)===i&&(u=u.times(s),--n),n!==o;)n/=a,s=s.square();return u},b.prototype.modPow=m.prototype.modPow=y.prototype.modPow=function(t,e){if(t=Y(t),(e=Y(e)).isZero())throw new Error("Cannot take modPow with modulus 0");var r=d[1],n=this.mod(e);for(t.isNegative()&&(t=t.multiply(d[-1]),n=n.modInv(e));t.isPositive();){if(n.isZero())return d[0];t.isOdd()&&(r=r.multiply(n).mod(e)),t=t.divide(2),n=n.square().mod(e)}return r},y.prototype.compareAbs=function(t){var e=Y(t),r=this.value,n=e.value;return e.isSmall?1:L(r,n)},m.prototype.compareAbs=function(t){var e=Y(t),r=Math.abs(this.value),n=e.value;return e.isSmall?r===(n=Math.abs(n))?0:n<r?1:-1:-1},b.prototype.compareAbs=function(t){var e=this.value,r=Y(t).value;return(e=0<=e?e:-e)===(r=0<=r?r:-r)?0:r<e?1:-1},y.prototype.compareTo=y.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var e=Y(t),r=this.value,n=e.value;return this.sign!==e.sign?e.sign?1:-1:e.isSmall?this.sign?-1:1:L(r,n)*(this.sign?-1:1)},m.prototype.compareTo=m.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var e=Y(t),r=this.value,n=e.value;return e.isSmall?r==n?0:n<r?1:-1:r<0!==e.sign?r<0?-1:1:r<0?1:-1},b.prototype.compareTo=b.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var e=this.value,r=Y(t).value;return e===r?0:r<e?1:-1},b.prototype.eq=b.prototype.equals=m.prototype.eq=m.prototype.equals=y.prototype.eq=y.prototype.equals=function(t){return 0===this.compare(t)},b.prototype.neq=b.prototype.notEquals=m.prototype.neq=m.prototype.notEquals=y.prototype.neq=y.prototype.notEquals=function(t){return 0!==this.compare(t)},b.prototype.gt=b.prototype.greater=m.prototype.gt=m.prototype.greater=y.prototype.gt=y.prototype.greater=function(t){return 0<this.compare(t)},b.prototype.lt=b.prototype.lesser=m.prototype.lt=m.prototype.lesser=y.prototype.lt=y.prototype.lesser=function(t){return this.compare(t)<0},b.prototype.geq=b.prototype.greaterOrEquals=m.prototype.geq=m.prototype.greaterOrEquals=y.prototype.geq=y.prototype.greaterOrEquals=function(t){return 0<=this.compare(t)},b.prototype.leq=b.prototype.lesserOrEquals=m.prototype.leq=m.prototype.lesserOrEquals=y.prototype.leq=y.prototype.lesserOrEquals=function(t){return this.compare(t)<=0},y.prototype.isEven=function(){return 0==(1&this.value[0])},m.prototype.isEven=function(){return 0==(1&this.value)},b.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},y.prototype.isOdd=function(){return 1==(1&this.value[0])},m.prototype.isOdd=function(){return 1==(1&this.value)},b.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},y.prototype.isPositive=function(){return!this.sign},b.prototype.isPositive=m.prototype.isPositive=function(){return 0<this.value},y.prototype.isNegative=function(){return this.sign},b.prototype.isNegative=m.prototype.isNegative=function(){return this.value<0},y.prototype.isUnit=function(){return!1},m.prototype.isUnit=function(){return 1===Math.abs(this.value)},b.prototype.isUnit=function(){return this.abs().value===BigInt(1)},y.prototype.isZero=function(){return!1},m.prototype.isZero=function(){return 0===this.value},b.prototype.isZero=function(){return this.value===BigInt(0)},b.prototype.isDivisibleBy=m.prototype.isDivisibleBy=y.prototype.isDivisibleBy=function(t){var e=Y(t);return!e.isZero()&&(!!e.isUnit()||(0===e.compareAbs(2)?this.isEven():this.mod(e).isZero()))},b.prototype.isPrime=m.prototype.isPrime=y.prototype.isPrime=function(t){var e=l(this);if(e!==u)return e;var r=this.abs(),n=r.bitLength();if(n<=64)return I(r,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var o=Math.log(2)*n.toJSNumber(),i=Math.ceil(!0===t?2*Math.pow(o,2):o),a=[],s=0;s<i;s++)a.push(X(s+2));return I(r,a)},b.prototype.isProbablePrime=m.prototype.isProbablePrime=y.prototype.isProbablePrime=function(t,e){var r=l(this);if(r!==u)return r;for(var n=this.abs(),o=t===u?5:t,i=[],a=0;a<o;a++)i.push(X.randBetween(2,n.minus(2),e));return I(n,i)},b.prototype.modInv=m.prototype.modInv=y.prototype.modInv=function(t){for(var e,r,n,o=X.zero,i=X.one,a=Y(t),s=this.abs();!s.isZero();)e=a.divide(s),r=o,n=a,o=i,a=s,i=r.subtract(e.multiply(i)),s=n.subtract(e.multiply(s));if(!a.isUnit())throw new Error(this.toString()+" and "+t.toString()+" are not co-prime");return-1===o.compare(0)&&(o=o.add(t)),this.isNegative()?o.negate():o},y.prototype.next=function(){var t=this.value;return this.sign?c(t,1,this.sign):new y(o(t,1),this.sign)},m.prototype.next=function(){var t=this.value;return t+1<e?new m(t+1):new y(r,!1)},b.prototype.next=function(){return new b(this.value+BigInt(1))},y.prototype.prev=function(){var t=this.value;return this.sign?new y(o(t,1),!0):c(t,1,this.sign)},m.prototype.prev=function(){var t=this.value;return-e<t-1?new m(t-1):new y(r,!0)},b.prototype.prev=function(){return new b(this.value-BigInt(1))};for(var s=[1];2*s[s.length-1]<=g;)s.push(2*s[s.length-1]);var N=s.length,U=s[N-1];function M(t){return Math.abs(t)<=g}function C(t,e,r){e=Y(e);for(var n=t.isNegative(),o=e.isNegative(),i=n?t.not():t,a=o?e.not():e,s=0,u=0,c=null,l=null,f=[];!i.isZero()||!a.isZero();)s=(c=T(i,U))[1].toJSNumber(),n&&(s=U-1-s),u=(l=T(a,U))[1].toJSNumber(),o&&(u=U-1-u),i=c[0],a=l[0],f.push(r(s,u));for(var h=0!==r(n?1:0,o?1:0)?X(-1):X(0),p=f.length-1;0<=p;--p)h=h.multiply(U).add(X(f[p]));return h}b.prototype.shiftLeft=m.prototype.shiftLeft=y.prototype.shiftLeft=function(t){var e=Y(t).toJSNumber();if(!M(e))throw new Error(String(e)+" is too large for shifting.");if(e<0)return this.shiftRight(-e);var r=this;if(r.isZero())return r;for(;N<=e;)r=r.multiply(U),e-=N-1;return r.multiply(s[e])},b.prototype.shiftRight=m.prototype.shiftRight=y.prototype.shiftRight=function(t){var e,r=Y(t).toJSNumber();if(!M(r))throw new Error(String(r)+" is too large for shifting.");if(r<0)return this.shiftLeft(-r);for(var n=this;N<=r;){if(n.isZero()||n.isNegative()&&n.isUnit())return n;n=(e=T(n,U))[1].isNegative()?e[0].prev():e[0],r-=N-1}return(e=T(n,s[r]))[1].isNegative()?e[0].prev():e[0]},b.prototype.not=m.prototype.not=y.prototype.not=function(){return this.negate().prev()},b.prototype.and=m.prototype.and=y.prototype.and=function(t){return C(this,t,function(t,e){return t&e})},b.prototype.or=m.prototype.or=y.prototype.or=function(t){return C(this,t,function(t,e){return t|e})},b.prototype.xor=m.prototype.xor=y.prototype.xor=function(t){return C(this,t,function(t,e){return t^e})};var R=1<<30,H=(g&-g)*(g&-g)|R;function q(t){var e=t.value,r="number"==typeof e?e|R:"bigint"==typeof e?e|BigInt(R):e[0]+e[1]*g|H;return r&-r}function D(t,e){return t=Y(t),e=Y(e),t.greater(e)?t:e}function z(t,e){return t=Y(t),e=Y(e),t.lesser(e)?t:e}function K(t,e){if(t=Y(t).abs(),e=Y(e).abs(),t.equals(e))return t;if(t.isZero())return e;if(e.isZero())return t;for(var r,n,o=d[1];t.isEven()&&e.isEven();)r=z(q(t),q(e)),t=t.divide(r),e=e.divide(r),o=o.multiply(r);for(;t.isEven();)t=t.divide(q(t));do{for(;e.isEven();)e=e.divide(q(e));t.greater(e)&&(n=e,e=t,t=n),e=e.subtract(t)}while(!e.isZero());return o.isUnit()?t:t.multiply(o)}b.prototype.bitLength=m.prototype.bitLength=y.prototype.bitLength=function(){var t=this;return t.compareTo(X(0))<0&&(t=t.negate().subtract(X(1))),0===t.compareTo(X(0))?X(0):X(function t(e,r){if(r.compareTo(e)<=0){var n=t(e,r.square(r)),o=n.p,i=n.e,a=o.multiply(r);return a.compareTo(e)<=0?{p:a,e:2*i+1}:{p:o,e:2*i}}return{p:X(1),e:0}}(t,X(2)).e).add(X(1))};var F=function(t,e,r,n){r=r||h,t=String(t),n||(t=t.toLowerCase(),r=r.toLowerCase());var o,i=t.length,a=Math.abs(e),s={};for(o=0;o<r.length;o++)s[r[o]]=o;for(o=0;o<i;o++){if("-"!==(l=t[o])&&(l in s&&s[l]>=a)){if("1"===l&&1===a)continue;throw new Error(l+" is not a valid digit in base "+e+".")}}e=Y(e);var u=[],c="-"===t[0];for(o=c?1:0;o<t.length;o++){var l;if((l=t[o])in s)u.push(Y(s[l]));else{if("<"!==l)throw new Error(l+" is not a valid character");for(var f=o;">"!==t[++o]&&o<t.length;);u.push(Y(t.slice(f+1,o)))}}return J(u,e,c)};function J(t,e,r){var n,o=d[0],i=d[1];for(n=t.length-1;0<=n;n--)o=o.add(t[n].times(i)),i=i.times(e);return r?o.negate():o}function V(t,e){if((e=X(e)).isZero()){if(t.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(e.equals(-1)){if(t.isZero())return{value:[0],isNegative:!1};if(t.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-t.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var r=Array.apply(null,Array(t.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return r.unshift([1]),{value:[].concat.apply([],r),isNegative:!1}}var n=!1;if(t.isNegative()&&e.isPositive()&&(n=!0,t=t.abs()),e.isUnit())return t.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(t.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:n};for(var o,i=[],a=t;a.isNegative()||0<=a.compareAbs(e);){a=(o=a.divmod(e)).quotient;var s=o.remainder;s.isNegative()&&(s=e.minus(s).abs(),a=a.next()),i.push(s.toJSNumber())}return i.push(a.toJSNumber()),{value:i.reverse(),isNegative:n}}function Z(t,e,n){var r=V(t,e);return(r.isNegative?"-":"")+r.value.map(function(t){return(e=t)<(r=(r=n)||h).length?r[e]:"<"+e+">";var e,r}).join("")}function W(t){if(v(+t)){var e=+t;if(e===k(e))return p?new b(BigInt(e)):new m(e);throw new Error("Invalid integer: "+t)}var r="-"===t[0];r&&(t=t.slice(1));var n=t.split(/e/i);if(2<n.length)throw new Error("Invalid integer: "+n.join("e"));if(2===n.length){var o=n[1];if("+"===o[0]&&(o=o.slice(1)),(o=+o)!==k(o)||!v(o))throw new Error("Invalid integer: "+o+" is not a valid exponent.");var i=n[0],a=i.indexOf(".");if(0<=a&&(o-=i.length-a-1,i=i.slice(0,a)+i.slice(a+1)),o<0)throw new Error("Cannot include negative exponent part for integers");t=i+=new Array(o+1).join("0")}if(!/^([0-9][0-9]*)$/.test(t))throw new Error("Invalid integer: "+t);if(p)return new b(BigInt(r?"-"+t:t));for(var s=[],u=t.length,c=f,l=u-c;0<u;)s.push(+t.slice(l,u)),(l-=c)<0&&(l=0),u-=c;return x(s),new y(s,r)}function Y(t){return"number"==typeof t?function(t){if(p)return new b(BigInt(t));if(v(t)){if(t!==k(t))throw new Error(t+" is not an integer.");return new m(t)}return W(t.toString())}(t):"string"==typeof t?W(t):"bigint"==typeof t?new b(t):t}y.prototype.toArray=function(t){return V(this,t)},m.prototype.toArray=function(t){return V(this,t)},b.prototype.toArray=function(t){return V(this,t)},y.prototype.toString=function(t,e){if(t===u&&(t=10),10!==t)return Z(this,t,e);for(var r,n=this.value,o=n.length,i=String(n[--o]);0<=--o;)r=String(n[o]),i+="0000000".slice(r.length)+r;return(this.sign?"-":"")+i},b.prototype.toString=m.prototype.toString=function(t,e){return t===u&&(t=10),10!=t?Z(this,t,e):String(this.value)},b.prototype.toJSON=y.prototype.toJSON=m.prototype.toJSON=function(){return this.toString()},y.prototype.toJSNumber=y.prototype.valueOf=function(){return parseInt(this.toString(),10)},m.prototype.toJSNumber=m.prototype.valueOf=function(){return this.value},b.prototype.valueOf=b.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};for(var t=0;t<1e3;t++)d[t]=Y(t),0<t&&(d[-t]=Y(-t));return d.one=d[1],d.zero=d[0],d.minusOne=d[-1],d.max=D,d.min=z,d.gcd=K,d.lcm=function(t,e){return t=Y(t).abs(),e=Y(e).abs(),t.divide(K(t,e)).multiply(e)},d.isInstance=function(t){return t instanceof y||t instanceof m||t instanceof b},d.randBetween=function(t,e,r){t=Y(t),e=Y(e);var n=r||Math.random,o=z(t,e),i=D(t,e).subtract(o).add(1);if(i.isSmall)return o.add(Math.floor(n()*i));for(var a=V(i,g).value,s=[],u=!0,c=0;c<a.length;c++){var l=u?a[c]:g,f=k(n()*l);s.push(f),f<l&&(u=!1)}return o.add(d.fromArray(s,g,!1))},d.fromArray=function(t,e,r){return J(t.map(Y),Y(e||10),r)},d}();void 0!==e&&e.hasOwnProperty("exports")&&(e.exports=X),"function"==typeof define&&define.amd&&define(function(){return X})},{}],37:[function(t,e,r){e.exports=function(t,e,r,n,o){var i,a;if(void 0===n)n=0;else if((n|=0)<0||n>=t.length)throw new RangeError("invalid lower bound");if(void 0===o)o=t.length-1;else if((o|=0)<n||o>=t.length)throw new RangeError("invalid upper bound");for(;n<=o;)if((a=+r(t[i=n+(o-n>>>1)],e,i,t))<0)n=i+1;else{if(!(0<a))return i;o=i-1}return~n}},{}],38:[function(t,e,r){},{}],39:[function(t,e,C){(function(f){"use strict";var n=t("base64-js"),i=t("ieee754");C.Buffer=f,C.SlowBuffer=function(t){+t!=t&&(t=0);return f.alloc(+t)},C.INSPECT_MAX_BYTES=50;var r=2147483647;function a(t){if(r<t)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return e.__proto__=f.prototype,e}function f(t,e,r){if("number"!=typeof t)return o(t,e,r);if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return u(t)}function o(t,e,r){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!f.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|h(t,e),n=a(r),o=n.write(t,e);o!==r&&(n=n.slice(0,o));return n}(t,e);if(ArrayBuffer.isView(t))return c(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(U(t,ArrayBuffer)||t&&U(t.buffer,ArrayBuffer))return function(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r);return n.__proto__=f.prototype,n}(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return f.from(n,e,r);var o=function(t){if(f.isBuffer(t)){var e=0|l(t.length),r=a(e);return 0===r.length?r:(t.copy(r,0,0,e),r)}if(void 0!==t.length)return"number"!=typeof t.length||M(t.length)?a(0):c(t);if("Buffer"===t.type&&Array.isArray(t.data))return c(t.data)}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return f.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function u(t){return s(t),a(t<0?0:0|l(t))}function c(t){for(var e=t.length<0?0:0|l(t.length),r=a(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function l(t){if(r<=t)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|t}function h(t,e){if(f.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||U(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=2<arguments.length&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return L(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return I(t).length;default:if(o)return n?-1:L(t).length;e=(""+e).toLowerCase(),o=!0}}function p(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function d(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),M(r=+r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=f.from(e,n)),f.isBuffer(e))return 0===e.length?-1:y(t,e,r,n,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):y(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function y(t,e,r,n,o){var i,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s/=a=2,u/=2,r/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var l=-1;for(i=r;i<s;i++)if(c(t,i)===c(e,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(s<r+u&&(r=s-u),i=r;0<=i;i--){for(var f=!0,h=0;h<u;h++)if(c(t,i+h)!==c(e,h)){f=!1;break}if(f)return i}return-1}function m(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?o<(n=Number(n))&&(n=o):n=o;var i=e.length;i/2<n&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(M(s))return a;t[r+a]=s}return a}function g(t,e,r,n){return N(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function b(t,e,r,n){return N(function(t,e){for(var r,n,o,i=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,o=r%256,i.push(o),i.push(n);return i}(e,t.length-r),t,r,n)}function v(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function _(t