Socket
Socket
Sign inDemoInstall

@liquality/bitcoin-esplora-api-provider

Package Overview
Dependencies
Maintainers
4
Versions
178
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@liquality/bitcoin-esplora-api-provider - npm Package Compare versions

Comparing version 0.4.13 to 0.4.14

2

dist/bitcoin-esplora-api-provider.min.js

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.BitcoinEsploraApiProvider=t():e.BitcoinEsploraApiProvider=t()}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=43)}([function(e,t,r){e.exports=r(17)},function(e,t,r){"use strict";var n=r(5),o=r(27),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function s(e){return null!==e&&"object"==typeof e}function u(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:o,isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:u,isStream:function(e){return s(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function e(){var t={};function r(r,n){"object"==typeof t[n]&&"object"==typeof r?t[n]=e(t[n],r):t[n]=r}for(var n=0,o=arguments.length;n<o;n++)c(arguments[n],r);return t},deepMerge:function e(){var t={};function r(r,n){"object"==typeof t[n]&&"object"==typeof r?t[n]=e(t[n],r):t[n]="object"==typeof r?e({},r):r}for(var n=0,o=arguments.length;n<o;n++)c(arguments[n],r);return t},extend:function(e,t,r){return c(t,(function(t,o){e[o]=r&&"function"==typeof t?n(t,r):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t,r){var n;!function(o){"use strict";var i,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,u=Math.ceil,c=Math.floor,f="[BigNumber Error] ",l=f+"Number primitive has more than 15 significant digits: ",h=1e14,p=14,d=9007199254740991,v=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],g=1e7,y=1e9;function m(e){var t=0|e;return e>0||e===t?t:t-1}function w(e){for(var t,r,n=1,o=e.length,i=e[0]+"";n<o;){for(t=e[n++]+"",r=p-t.length;r--;t="0"+t);i+=t}for(o=i.length;48===i.charCodeAt(--o););return i.slice(0,o+1||1)}function b(e,t){var r,n,o=e.c,i=t.c,a=e.s,s=t.s,u=e.e,c=t.e;if(!a||!s)return null;if(r=o&&!o[0],n=i&&!i[0],r||n)return r?n?0:-s:a;if(a!=s)return a;if(r=a<0,n=u==c,!o||!i)return n?0:!o^r?1:-1;if(!n)return u>c^r?1:-1;for(s=(u=o.length)<(c=i.length)?u:c,a=0;a<s;a++)if(o[a]!=i[a])return o[a]>i[a]^r?1:-1;return u==c?0:u>c^r?1:-1}function x(e,t,r,n){if(e<t||e>r||e!==c(e))throw Error(f+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function O(e){var t=e.c.length-1;return m(e.e/p)==t&&e.c[t]%2!=0}function E(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function k(e,t,r){var n,o;if(t<0){for(o=r+".";++t;o+=r);e=o+e}else if(++t>(n=e.length)){for(o=r,t-=n;--t;o+=r);e+=o}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}(i=function e(t){var r,n,o,i,_,N,T,S,j,P=G.prototype={constructor:G,toString:null,valueOf:null},A=new G(1),L=20,B=4,R=-7,C=21,U=-1e7,D=1e7,F=!1,M=1,I=0,q={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},H="0123456789abcdefghijklmnopqrstuvwxyz";function G(e,t){var r,i,s,u,f,h,v,g,y=this;if(!(y instanceof G))return new G(e,t);if(null==t){if(e&&!0===e._isBigNumber)return y.s=e.s,void(!e.c||e.e>D?y.c=y.e=null:e.e<U?y.c=[y.e=0]:(y.e=e.e,y.c=e.c.slice()));if((h="number"==typeof e)&&0*e==0){if(y.s=1/e<0?(e=-e,-1):1,e===~~e){for(u=0,f=e;f>=10;f/=10,u++);return void(u>D?y.c=y.e=null:(y.e=u,y.c=[e]))}g=String(e)}else{if(!a.test(g=String(e)))return o(y,g,h);y.s=45==g.charCodeAt(0)?(g=g.slice(1),-1):1}(u=g.indexOf("."))>-1&&(g=g.replace(".","")),(f=g.search(/e/i))>0?(u<0&&(u=f),u+=+g.slice(f+1),g=g.substring(0,f)):u<0&&(u=g.length)}else{if(x(t,2,H.length,"Base"),10==t)return V(y=new G(e),L+y.e+1,B);if(g=String(e),h="number"==typeof e){if(0*e!=0)return o(y,g,h,t);if(y.s=1/e<0?(g=g.slice(1),-1):1,G.DEBUG&&g.replace(/^0\.0*|\./,"").length>15)throw Error(l+e)}else y.s=45===g.charCodeAt(0)?(g=g.slice(1),-1):1;for(r=H.slice(0,t),u=f=0,v=g.length;f<v;f++)if(r.indexOf(i=g.charAt(f))<0){if("."==i){if(f>u){u=v;continue}}else if(!s&&(g==g.toUpperCase()&&(g=g.toLowerCase())||g==g.toLowerCase()&&(g=g.toUpperCase()))){s=!0,f=-1,u=0;continue}return o(y,String(e),h,t)}h=!1,(u=(g=n(g,t,10,y.s)).indexOf("."))>-1?g=g.replace(".",""):u=g.length}for(f=0;48===g.charCodeAt(f);f++);for(v=g.length;48===g.charCodeAt(--v););if(g=g.slice(f,++v)){if(v-=f,h&&G.DEBUG&&v>15&&(e>d||e!==c(e)))throw Error(l+y.s*e);if((u=u-f-1)>D)y.c=y.e=null;else if(u<U)y.c=[y.e=0];else{if(y.e=u,y.c=[],f=(u+1)%p,u<0&&(f+=p),f<v){for(f&&y.c.push(+g.slice(0,f)),v-=p;f<v;)y.c.push(+g.slice(f,f+=p));f=p-(g=g.slice(f)).length}else f-=v;for(;f--;g+="0");y.c.push(+g)}}else y.c=[y.e=0]}function z(e,t,r,n){var o,i,a,s,u;if(null==r?r=B:x(r,0,8),!e.c)return e.toString();if(o=e.c[0],a=e.e,null==t)u=w(e.c),u=1==n||2==n&&(a<=R||a>=C)?E(u,a):k(u,a,"0");else if(i=(e=V(new G(e),t,r)).e,s=(u=w(e.c)).length,1==n||2==n&&(t<=i||i<=R)){for(;s<t;u+="0",s++);u=E(u,i)}else if(t-=a,u=k(u,i,"0"),i+1>s){if(--t>0)for(u+=".";t--;u+="0");}else if((t+=i-s)>0)for(i+1==s&&(u+=".");t--;u+="0");return e.s<0&&o?"-"+u:u}function $(e,t){for(var r,n=1,o=new G(e[0]);n<e.length;n++){if(!(r=new G(e[n])).s){o=r;break}t.call(o,r)&&(o=r)}return o}function K(e,t,r){for(var n=1,o=t.length;!t[--o];t.pop());for(o=t[0];o>=10;o/=10,n++);return(r=n+r*p-1)>D?e.c=e.e=null:r<U?e.c=[e.e=0]:(e.e=r,e.c=t),e}function V(e,t,r,n){var o,i,a,s,f,l,d,g=e.c,y=v;if(g){e:{for(o=1,s=g[0];s>=10;s/=10,o++);if((i=t-o)<0)i+=p,a=t,d=(f=g[l=0])/y[o-a-1]%10|0;else if((l=u((i+1)/p))>=g.length){if(!n)break e;for(;g.length<=l;g.push(0));f=d=0,o=1,a=(i%=p)-p+1}else{for(f=s=g[l],o=1;s>=10;s/=10,o++);d=(a=(i%=p)-p+o)<0?0:f/y[o-a-1]%10|0}if(n=n||t<0||null!=g[l+1]||(a<0?f:f%y[o-a-1]),n=r<4?(d||n)&&(0==r||r==(e.s<0?3:2)):d>5||5==d&&(4==r||n||6==r&&(i>0?a>0?f/y[o-a]:0:g[l-1])%10&1||r==(e.s<0?8:7)),t<1||!g[0])return g.length=0,n?(t-=e.e+1,g[0]=y[(p-t%p)%p],e.e=-t||0):g[0]=e.e=0,e;if(0==i?(g.length=l,s=1,l--):(g.length=l+1,s=y[p-i],g[l]=a>0?c(f/y[o-a]%y[a])*s:0),n)for(;;){if(0==l){for(i=1,a=g[0];a>=10;a/=10,i++);for(a=g[0]+=s,s=1;a>=10;a/=10,s++);i!=s&&(e.e++,g[0]==h&&(g[0]=1));break}if(g[l]+=s,g[l]!=h)break;g[l--]=0,s=1}for(i=g.length;0===g[--i];g.pop());}e.e>D?e.c=e.e=null:e.e<U&&(e.c=[e.e=0])}return e}function J(e){var t,r=e.e;return null===r?e.toString():(t=w(e.c),t=r<=R||r>=C?E(t,r):k(t,r,"0"),e.s<0?"-"+t:t)}return G.clone=e,G.ROUND_UP=0,G.ROUND_DOWN=1,G.ROUND_CEIL=2,G.ROUND_FLOOR=3,G.ROUND_HALF_UP=4,G.ROUND_HALF_DOWN=5,G.ROUND_HALF_EVEN=6,G.ROUND_HALF_CEIL=7,G.ROUND_HALF_FLOOR=8,G.EUCLID=9,G.config=G.set=function(e){var t,r;if(null!=e){if("object"!=typeof e)throw Error(f+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(x(r=e[t],0,y,t),L=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(x(r=e[t],0,8,t),B=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(x(r[0],-y,0,t),x(r[1],0,y,t),R=r[0],C=r[1]):(x(r,-y,y,t),R=-(C=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)x(r[0],-y,-1,t),x(r[1],1,y,t),U=r[0],D=r[1];else{if(x(r,-y,y,t),!r)throw Error(f+t+" cannot be zero: "+r);U=-(D=r<0?-r:r)}if(e.hasOwnProperty(t="CRYPTO")){if((r=e[t])!==!!r)throw Error(f+t+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw F=!r,Error(f+"crypto unavailable");F=r}else F=r}if(e.hasOwnProperty(t="MODULO_MODE")&&(x(r=e[t],0,9,t),M=r),e.hasOwnProperty(t="POW_PRECISION")&&(x(r=e[t],0,y,t),I=r),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(r=e[t]))throw Error(f+t+" not an object: "+r);q=r}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.$|[+-.\s]|(.).*\1/.test(r))throw Error(f+t+" invalid: "+r);H=r}}return{DECIMAL_PLACES:L,ROUNDING_MODE:B,EXPONENTIAL_AT:[R,C],RANGE:[U,D],CRYPTO:F,MODULO_MODE:M,POW_PRECISION:I,FORMAT:q,ALPHABET:H}},G.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!G.DEBUG)return!0;var t,r,n=e.c,o=e.e,i=e.s;e:if("[object Array]"=={}.toString.call(n)){if((1===i||-1===i)&&o>=-y&&o<=y&&o===c(o)){if(0===n[0]){if(0===o&&1===n.length)return!0;break e}if((t=(o+1)%p)<1&&(t+=p),String(n[0]).length==t){for(t=0;t<n.length;t++)if((r=n[t])<0||r>=h||r!==c(r))break e;if(0!==r)return!0}}}else if(null===n&&null===o&&(null===i||1===i||-1===i))return!0;throw Error(f+"Invalid BigNumber: "+e)},G.maximum=G.max=function(){return $(arguments,P.lt)},G.minimum=G.min=function(){return $(arguments,P.gt)},G.random=(i=9007199254740992*Math.random()&2097151?function(){return c(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,r,n,o,a,s=0,l=[],h=new G(A);if(null==e?e=L:x(e,0,y),o=u(e/p),F)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));s<o;)(a=131072*t[s]+(t[s+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[s]=r[0],t[s+1]=r[1]):(l.push(a%1e14),s+=2);s=o/2}else{if(!crypto.randomBytes)throw F=!1,Error(f+"crypto unavailable");for(t=crypto.randomBytes(o*=7);s<o;)(a=281474976710656*(31&t[s])+1099511627776*t[s+1]+4294967296*t[s+2]+16777216*t[s+3]+(t[s+4]<<16)+(t[s+5]<<8)+t[s+6])>=9e15?crypto.randomBytes(7).copy(t,s):(l.push(a%1e14),s+=7);s=o/7}if(!F)for(;s<o;)(a=i())<9e15&&(l[s++]=a%1e14);for(o=l[--s],e%=p,o&&e&&(a=v[p-e],l[s]=c(o/a)*a);0===l[s];l.pop(),s--);if(s<0)l=[n=0];else{for(n=-1;0===l[0];l.splice(0,1),n-=p);for(s=1,a=l[0];a>=10;a/=10,s++);s<p&&(n-=p-s)}return h.e=n,h.c=l,h}),G.sum=function(){for(var e=1,t=arguments,r=new G(t[0]);e<t.length;)r=r.plus(t[e++]);return r},n=function(){function e(e,t,r,n){for(var o,i,a=[0],s=0,u=e.length;s<u;){for(i=a.length;i--;a[i]*=t);for(a[0]+=n.indexOf(e.charAt(s++)),o=0;o<a.length;o++)a[o]>r-1&&(null==a[o+1]&&(a[o+1]=0),a[o+1]+=a[o]/r|0,a[o]%=r)}return a.reverse()}return function(t,n,o,i,a){var s,u,c,f,l,h,p,d,v=t.indexOf("."),g=L,y=B;for(v>=0&&(f=I,I=0,t=t.replace(".",""),h=(d=new G(n)).pow(t.length-v),I=f,d.c=e(k(w(h.c),h.e,"0"),10,o,"0123456789"),d.e=d.c.length),c=f=(p=e(t,n,o,a?(s=H,"0123456789"):(s="0123456789",H))).length;0==p[--f];p.pop());if(!p[0])return s.charAt(0);if(v<0?--c:(h.c=p,h.e=c,h.s=i,p=(h=r(h,d,g,y,o)).c,l=h.r,c=h.e),v=p[u=c+g+1],f=o/2,l=l||u<0||null!=p[u+1],l=y<4?(null!=v||l)&&(0==y||y==(h.s<0?3:2)):v>f||v==f&&(4==y||l||6==y&&1&p[u-1]||y==(h.s<0?8:7)),u<1||!p[0])t=l?k(s.charAt(1),-g,s.charAt(0)):s.charAt(0);else{if(p.length=u,l)for(--o;++p[--u]>o;)p[u]=0,u||(++c,p=[1].concat(p));for(f=p.length;!p[--f];);for(v=0,t="";v<=f;t+=s.charAt(p[v++]));t=k(t,c,s.charAt(0))}return t}}(),r=function(){function e(e,t,r){var n,o,i,a,s=0,u=e.length,c=t%g,f=t/g|0;for(e=e.slice();u--;)s=((o=c*(i=e[u]%g)+(n=f*i+(a=e[u]/g|0)*c)%g*g+s)/r|0)+(n/g|0)+f*a,e[u]=o%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;o<r;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function r(e,t,r,n){for(var o=0;r--;)e[r]-=o,o=e[r]<t[r]?1:0,e[r]=o*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,o,i,a,s){var u,f,l,d,v,g,y,w,b,x,O,E,k,_,N,T,S,j=n.s==o.s?1:-1,P=n.c,A=o.c;if(!(P&&P[0]&&A&&A[0]))return new G(n.s&&o.s&&(P?!A||P[0]!=A[0]:A)?P&&0==P[0]||!A?0*j:j/0:NaN);for(b=(w=new G(j)).c=[],j=i+(f=n.e-o.e)+1,s||(s=h,f=m(n.e/p)-m(o.e/p),j=j/p|0),l=0;A[l]==(P[l]||0);l++);if(A[l]>(P[l]||0)&&f--,j<0)b.push(1),d=!0;else{for(_=P.length,T=A.length,l=0,j+=2,(v=c(s/(A[0]+1)))>1&&(A=e(A,v,s),P=e(P,v,s),T=A.length,_=P.length),k=T,O=(x=P.slice(0,T)).length;O<T;x[O++]=0);S=A.slice(),S=[0].concat(S),N=A[0],A[1]>=s/2&&N++;do{if(v=0,(u=t(A,x,T,O))<0){if(E=x[0],T!=O&&(E=E*s+(x[1]||0)),(v=c(E/N))>1)for(v>=s&&(v=s-1),y=(g=e(A,v,s)).length,O=x.length;1==t(g,x,y,O);)v--,r(g,T<y?S:A,y,s),y=g.length,u=1;else 0==v&&(u=v=1),y=(g=A.slice()).length;if(y<O&&(g=[0].concat(g)),r(x,g,O,s),O=x.length,-1==u)for(;t(A,x,T,O)<1;)v++,r(x,T<O?S:A,O,s),O=x.length}else 0===u&&(v++,x=[0]);b[l++]=v,x[0]?x[O++]=P[k]||0:(x=[P[k]],O=1)}while((k++<_||null!=x[0])&&j--);d=null!=x[0],b[0]||b.splice(0,1)}if(s==h){for(l=1,j=b[0];j>=10;j/=10,l++);V(w,i+(w.e=l+f*p-1)+1,a,d)}else w.e=f,w.r=+d;return w}}(),_=/^(-?)0([xbo])(?=\w[\w.]*$)/i,N=/^([^.]+)\.$/,T=/^\.([^.]+)$/,S=/^-?(Infinity|NaN)$/,j=/^\s*\+(?=[\w.])|^\s+|\s+$/g,o=function(e,t,r,n){var o,i=r?t:t.replace(j,"");if(S.test(i))e.s=isNaN(i)?null:i<0?-1:1;else{if(!r&&(i=i.replace(_,(function(e,t,r){return o="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=o?e:t})),n&&(o=n,i=i.replace(N,"$1").replace(T,"0.$1")),t!=i))return new G(i,o);if(G.DEBUG)throw Error(f+"Not a"+(n?" base "+n:"")+" number: "+t);e.s=null}e.c=e.e=null},P.absoluteValue=P.abs=function(){var e=new G(this);return e.s<0&&(e.s=1),e},P.comparedTo=function(e,t){return b(this,new G(e,t))},P.decimalPlaces=P.dp=function(e,t){var r,n,o,i=this;if(null!=e)return x(e,0,y),null==t?t=B:x(t,0,8),V(new G(i),e+i.e+1,t);if(!(r=i.c))return null;if(n=((o=r.length-1)-m(this.e/p))*p,o=r[o])for(;o%10==0;o/=10,n--);return n<0&&(n=0),n},P.dividedBy=P.div=function(e,t){return r(this,new G(e,t),L,B)},P.dividedToIntegerBy=P.idiv=function(e,t){return r(this,new G(e,t),0,1)},P.exponentiatedBy=P.pow=function(e,t){var r,n,o,i,a,s,l,h,d=this;if((e=new G(e)).c&&!e.isInteger())throw Error(f+"Exponent not an integer: "+J(e));if(null!=t&&(t=new G(t)),a=e.e>14,!d.c||!d.c[0]||1==d.c[0]&&!d.e&&1==d.c.length||!e.c||!e.c[0])return h=new G(Math.pow(+J(d),a?2-O(e):+J(e))),t?h.mod(t):h;if(s=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new G(NaN);(n=!s&&d.isInteger()&&t.isInteger())&&(d=d.mod(t))}else{if(e.e>9&&(d.e>0||d.e<-1||(0==d.e?d.c[0]>1||a&&d.c[1]>=24e7:d.c[0]<8e13||a&&d.c[0]<=9999975e7)))return i=d.s<0&&O(e)?-0:0,d.e>-1&&(i=1/i),new G(s?1/i:i);I&&(i=u(I/p+2))}for(a?(r=new G(.5),s&&(e.s=1),l=O(e)):l=(o=Math.abs(+J(e)))%2,h=new G(A);;){if(l){if(!(h=h.times(d)).c)break;i?h.c.length>i&&(h.c.length=i):n&&(h=h.mod(t))}if(o){if(0===(o=c(o/2)))break;l=o%2}else if(V(e=e.times(r),e.e+1,1),e.e>14)l=O(e);else{if(0===(o=+J(e)))break;l=o%2}d=d.times(d),i?d.c&&d.c.length>i&&(d.c.length=i):n&&(d=d.mod(t))}return n?h:(s&&(h=A.div(h)),t?h.mod(t):i?V(h,I,B,void 0):h)},P.integerValue=function(e){var t=new G(this);return null==e?e=B:x(e,0,8),V(t,t.e+1,e)},P.isEqualTo=P.eq=function(e,t){return 0===b(this,new G(e,t))},P.isFinite=function(){return!!this.c},P.isGreaterThan=P.gt=function(e,t){return b(this,new G(e,t))>0},P.isGreaterThanOrEqualTo=P.gte=function(e,t){return 1===(t=b(this,new G(e,t)))||0===t},P.isInteger=function(){return!!this.c&&m(this.e/p)>this.c.length-2},P.isLessThan=P.lt=function(e,t){return b(this,new G(e,t))<0},P.isLessThanOrEqualTo=P.lte=function(e,t){return-1===(t=b(this,new G(e,t)))||0===t},P.isNaN=function(){return!this.s},P.isNegative=function(){return this.s<0},P.isPositive=function(){return this.s>0},P.isZero=function(){return!!this.c&&0==this.c[0]},P.minus=function(e,t){var r,n,o,i,a=this,s=a.s;if(t=(e=new G(e,t)).s,!s||!t)return new G(NaN);if(s!=t)return e.s=-t,a.plus(e);var u=a.e/p,c=e.e/p,f=a.c,l=e.c;if(!u||!c){if(!f||!l)return f?(e.s=-t,e):new G(l?a:NaN);if(!f[0]||!l[0])return l[0]?(e.s=-t,e):new G(f[0]?a:3==B?-0:0)}if(u=m(u),c=m(c),f=f.slice(),s=u-c){for((i=s<0)?(s=-s,o=f):(c=u,o=l),o.reverse(),t=s;t--;o.push(0));o.reverse()}else for(n=(i=(s=f.length)<(t=l.length))?s:t,s=t=0;t<n;t++)if(f[t]!=l[t]){i=f[t]<l[t];break}if(i&&(o=f,f=l,l=o,e.s=-e.s),(t=(n=l.length)-(r=f.length))>0)for(;t--;f[r++]=0);for(t=h-1;n>s;){if(f[--n]<l[n]){for(r=n;r&&!f[--r];f[r]=t);--f[r],f[n]+=h}f[n]-=l[n]}for(;0==f[0];f.splice(0,1),--c);return f[0]?K(e,f,c):(e.s=3==B?-1:1,e.c=[e.e=0],e)},P.modulo=P.mod=function(e,t){var n,o,i=this;return e=new G(e,t),!i.c||!e.s||e.c&&!e.c[0]?new G(NaN):!e.c||i.c&&!i.c[0]?new G(i):(9==M?(o=e.s,e.s=1,n=r(i,e,0,3),e.s=o,n.s*=o):n=r(i,e,0,M),(e=i.minus(n.times(e))).c[0]||1!=M||(e.s=i.s),e)},P.multipliedBy=P.times=function(e,t){var r,n,o,i,a,s,u,c,f,l,d,v,y,w,b,x=this,O=x.c,E=(e=new G(e,t)).c;if(!(O&&E&&O[0]&&E[0]))return!x.s||!e.s||O&&!O[0]&&!E||E&&!E[0]&&!O?e.c=e.e=e.s=null:(e.s*=x.s,O&&E?(e.c=[0],e.e=0):e.c=e.e=null),e;for(n=m(x.e/p)+m(e.e/p),e.s*=x.s,(u=O.length)<(l=E.length)&&(y=O,O=E,E=y,o=u,u=l,l=o),o=u+l,y=[];o--;y.push(0));for(w=h,b=g,o=l;--o>=0;){for(r=0,d=E[o]%b,v=E[o]/b|0,i=o+(a=u);i>o;)r=((c=d*(c=O[--a]%b)+(s=v*c+(f=O[a]/b|0)*d)%b*b+y[i]+r)/w|0)+(s/b|0)+v*f,y[i--]=c%w;y[i]=r}return r?++n:y.splice(0,1),K(e,y,n)},P.negated=function(){var e=new G(this);return e.s=-e.s||null,e},P.plus=function(e,t){var r,n=this,o=n.s;if(t=(e=new G(e,t)).s,!o||!t)return new G(NaN);if(o!=t)return e.s=-t,n.minus(e);var i=n.e/p,a=e.e/p,s=n.c,u=e.c;if(!i||!a){if(!s||!u)return new G(o/0);if(!s[0]||!u[0])return u[0]?e:new G(s[0]?n:0*o)}if(i=m(i),a=m(a),s=s.slice(),o=i-a){for(o>0?(a=i,r=u):(o=-o,r=s),r.reverse();o--;r.push(0));r.reverse()}for((o=s.length)-(t=u.length)<0&&(r=u,u=s,s=r,t=o),o=0;t;)o=(s[--t]=s[t]+u[t]+o)/h|0,s[t]=h===s[t]?0:s[t]%h;return o&&(s=[o].concat(s),++a),K(e,s,a)},P.precision=P.sd=function(e,t){var r,n,o,i=this;if(null!=e&&e!==!!e)return x(e,1,y),null==t?t=B:x(t,0,8),V(new G(i),e,t);if(!(r=i.c))return null;if(n=(o=r.length-1)*p+1,o=r[o]){for(;o%10==0;o/=10,n--);for(o=r[0];o>=10;o/=10,n++);}return e&&i.e+1>n&&(n=i.e+1),n},P.shiftedBy=function(e){return x(e,-d,d),this.times("1e"+e)},P.squareRoot=P.sqrt=function(){var e,t,n,o,i,a=this,s=a.c,u=a.s,c=a.e,f=L+4,l=new G("0.5");if(1!==u||!s||!s[0])return new G(!u||u<0&&(!s||s[0])?NaN:s?a:1/0);if(0==(u=Math.sqrt(+J(a)))||u==1/0?(((t=w(s)).length+c)%2==0&&(t+="0"),u=Math.sqrt(+t),c=m((c+1)/2)-(c<0||c%2),n=new G(t=u==1/0?"1e"+c:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+c)):n=new G(u+""),n.c[0])for((u=(c=n.e)+f)<3&&(u=0);;)if(i=n,n=l.times(i.plus(r(a,i,f,1))),w(i.c).slice(0,u)===(t=w(n.c)).slice(0,u)){if(n.e<c&&--u,"9999"!=(t=t.slice(u-3,u+1))&&(o||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(V(n,n.e+L+2,1),e=!n.times(n).eq(a));break}if(!o&&(V(i,i.e+L+2,0),i.times(i).eq(a))){n=i;break}f+=4,u+=4,o=1}return V(n,n.e+L+1,B,e)},P.toExponential=function(e,t){return null!=e&&(x(e,0,y),e++),z(this,e,t,1)},P.toFixed=function(e,t){return null!=e&&(x(e,0,y),e=e+this.e+1),z(this,e,t)},P.toFormat=function(e,t,r){var n,o=this;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=q;else if("object"!=typeof r)throw Error(f+"Argument not an object: "+r);if(n=o.toFixed(e,t),o.c){var i,a=n.split("."),s=+r.groupSize,u=+r.secondaryGroupSize,c=r.groupSeparator||"",l=a[0],h=a[1],p=o.s<0,d=p?l.slice(1):l,v=d.length;if(u&&(i=s,s=u,u=i,v-=i),s>0&&v>0){for(i=v%s||s,l=d.substr(0,i);i<v;i+=s)l+=c+d.substr(i,s);u>0&&(l+=c+d.slice(i)),p&&(l="-"+l)}n=h?l+(r.decimalSeparator||"")+((u=+r.fractionGroupSize)?h.replace(new RegExp("\\d{"+u+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):h):l}return(r.prefix||"")+n+(r.suffix||"")},P.toFraction=function(e){var t,n,o,i,a,s,u,c,l,h,d,g,y=this,m=y.c;if(null!=e&&(!(u=new G(e)).isInteger()&&(u.c||1!==u.s)||u.lt(A)))throw Error(f+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+J(u));if(!m)return new G(y);for(t=new G(A),l=n=new G(A),o=c=new G(A),g=w(m),a=t.e=g.length-y.e-1,t.c[0]=v[(s=a%p)<0?p+s:s],e=!e||u.comparedTo(t)>0?a>0?t:l:u,s=D,D=1/0,u=new G(g),c.c[0]=0;h=r(u,t,0,1),1!=(i=n.plus(h.times(o))).comparedTo(e);)n=o,o=i,l=c.plus(h.times(i=l)),c=i,t=u.minus(h.times(i=t)),u=i;return i=r(e.minus(n),o,0,1),c=c.plus(i.times(l)),n=n.plus(i.times(o)),c.s=l.s=y.s,d=r(l,o,a*=2,B).minus(y).abs().comparedTo(r(c,n,a,B).minus(y).abs())<1?[l,o]:[c,n],D=s,d},P.toNumber=function(){return+J(this)},P.toPrecision=function(e,t){return null!=e&&x(e,1,y),z(this,e,t,2)},P.toString=function(e){var t,r=this,o=r.s,i=r.e;return null===i?o?(t="Infinity",o<0&&(t="-"+t)):t="NaN":(null==e?t=i<=R||i>=C?E(w(r.c),i):k(w(r.c),i,"0"):10===e?t=k(w((r=V(new G(r),L+i+1,B)).c),r.e,"0"):(x(e,2,H.length,"Base"),t=n(k(w(r.c),i,"0"),10,e,o,!0)),o<0&&r.c[0]&&(t="-"+t)),t},P.valueOf=P.toJSON=function(){return J(this)},P._isBigNumber=!0,s&&(P[Symbol.toStringTag]="BigNumber",P[Symbol.for("nodejs.util.inspect.custom")]=P.valueOf),null!=t&&G.set(t),G}()).default=i.BigNumber=i,void 0===(n=function(){return i}.call(t,r,t,e))||(e.exports=n)}()},function(e,t){var r=Array.isArray;e.exports=r},function(e,t,r){var n=r(18);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},function(e,t,r){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},function(e,t,r){"use strict";var n=r(1);function o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var a=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},function(e,t,r){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,r){"use strict";(function(t){var n=r(1),o=r(33),i={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,u={adapter:(void 0!==t&&"[object process]"===Object.prototype.toString.call(t)?s=r(9):"undefined"!=typeof XMLHttpRequest&&(s=r(9)),s),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){u.headers[e]=n.merge(i)})),e.exports=u}).call(this,r(32))},function(e,t,r){"use strict";var n=r(1),o=r(34),i=r(6),a=r(36),s=r(37),u=r(10);e.exports=function(e){return new Promise((function(t,c){var f=e.data,l=e.headers;n.isFormData(f)&&delete l["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",d=e.auth.password||"";l.Authorization="Basic "+btoa(p+":"+d)}if(h.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in h?a(h.getAllResponseHeaders()):null,n={data:e.responseType&&"text"!==e.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};o(t,c,n),h=null}},h.onabort=function(){h&&(c(u("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){c(u("Network Error",e,null,h)),h=null},h.ontimeout=function(){c(u("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",h)),h=null},n.isStandardBrowserEnv()){var v=r(38),g=(e.withCredentials||s(e.url))&&e.xsrfCookieName?v.read(e.xsrfCookieName):void 0;g&&(l[e.xsrfHeaderName]=g)}if("setRequestHeader"in h&&n.forEach(l,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete l[t]:h.setRequestHeader(t,e)})),e.withCredentials&&(h.withCredentials=!0),e.responseType)try{h.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),c(e),h=null)})),void 0===f&&(f=null),h.send(f)}))}},function(e,t,r){"use strict";var n=r(35);e.exports=function(e,t,r,o,i){var a=new Error(e);return n(a,t,r,o,i)}},function(e,t,r){"use strict";var n=r(1);e.exports=function(e,t){t=t||{};var r={};return n.forEach(["url","method","params","data"],(function(e){void 0!==t[e]&&(r[e]=t[e])})),n.forEach(["headers","auth","proxy"],(function(o){n.isObject(t[o])?r[o]=n.deepMerge(e[o],t[o]):void 0!==t[o]?r[o]=t[o]:n.isObject(e[o])?r[o]=n.deepMerge(e[o]):void 0!==e[o]&&(r[o]=e[o])})),n.forEach(["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"],(function(n){void 0!==t[n]?r[n]=t[n]:void 0!==e[n]&&(r[n]=e[n])})),r}},function(e,t,r){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e){e.exports=JSON.parse("{}")},function(e,t,r){e.exports=r(26)},function(e){e.exports=JSON.parse('{"a":"0.4.13"}')},function(e){e.exports=JSON.parse('{"a":"0.4.13"}')},function(e,t,r){var n=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n=f;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=k(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var u=c(e,t,r);if("normal"===u.type){if(n=r.done?p:l,u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=p,r.method="throw",r.arg=u.arg)}}}(e,r,a),i}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",l="suspendedYield",h="executing",p="completed",d={};function v(){}function g(){}function y(){}var m={};m[i]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(S([])));b&&b!==r&&n.call(b,i)&&(m=b);var x=y.prototype=v.prototype=Object.create(m);function O(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function E(e){var t;this._invoke=function(r,o){function i(){return new Promise((function(t,i){!function t(r,o,i,a){var s=c(e[r],e,o);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?Promise.resolve(f.__await).then((function(e){t("next",e,i,a)}),(function(e){t("throw",e,i,a)})):Promise.resolve(f).then((function(e){u.value=e,i(u)}),(function(e){return t("throw",e,i,a)}))}a(s.arg)}(r,o,t,i)}))}return t=t?t.then(i,i):i()}}function k(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=c(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,d;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,d):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function S(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:j}}function j(){return{value:t,done:!0}}return g.prototype=x.constructor=y,y.constructor=g,y[s]=g.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},O(E.prototype),E.prototype[a]=function(){return this},e.AsyncIterator=E,e.async=function(t,r,n,o){var i=new E(u(t,r,n,o));return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},O(x),x[s]="Generator",x[i]=function(){return this},x.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),N(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:S(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),d}},e}(e.exports);try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}},function(e,t,r){var n=r(19),o=r(20);e.exports=function e(t,r,i,a,s){var u=-1,c=t.length;for(i||(i=o),s||(s=[]);++u<c;){var f=t[u];r>0&&i(f)?r>1?e(f,r-1,i,a,s):n(s,f):a||(s[s.length]=f)}return s}},function(e,t){e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},function(e,t,r){var n=r(21),o=r(25),i=r(3),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},function(e,t,r){var n=r(22).Symbol;e.exports=n},function(e,t,r){var n=r(23),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},function(e,t,r){(function(t){var r="object"==typeof t&&t&&t.Object===Object&&t;e.exports=r}).call(this,r(24))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t){e.exports=function(){return!1}},function(e,t,r){"use strict";var n=r(1),o=r(5),i=r(28),a=r(11);function s(e){var t=new i(e),r=o(i.prototype.request,t);return n.extend(r,i.prototype,t),n.extend(r,t),r}var u=s(r(8));u.Axios=i,u.create=function(e){return s(a(u.defaults,e))},u.Cancel=r(12),u.CancelToken=r(41),u.isCancel=r(7),u.all=function(e){return Promise.all(e)},u.spread=r(42),e.exports=u,e.exports.default=u},function(e,t){
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.BitcoinEsploraApiProvider=t():e.BitcoinEsploraApiProvider=t()}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=43)}([function(e,t,r){e.exports=r(17)},function(e,t,r){"use strict";var n=r(5),o=r(27),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function s(e){return null!==e&&"object"==typeof e}function u(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:o,isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:u,isStream:function(e){return s(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function e(){var t={};function r(r,n){"object"==typeof t[n]&&"object"==typeof r?t[n]=e(t[n],r):t[n]=r}for(var n=0,o=arguments.length;n<o;n++)c(arguments[n],r);return t},deepMerge:function e(){var t={};function r(r,n){"object"==typeof t[n]&&"object"==typeof r?t[n]=e(t[n],r):t[n]="object"==typeof r?e({},r):r}for(var n=0,o=arguments.length;n<o;n++)c(arguments[n],r);return t},extend:function(e,t,r){return c(t,(function(t,o){e[o]=r&&"function"==typeof t?n(t,r):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t,r){var n;!function(o){"use strict";var i,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,u=Math.ceil,c=Math.floor,f="[BigNumber Error] ",l=f+"Number primitive has more than 15 significant digits: ",h=1e14,p=14,d=9007199254740991,v=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],g=1e7,y=1e9;function m(e){var t=0|e;return e>0||e===t?t:t-1}function w(e){for(var t,r,n=1,o=e.length,i=e[0]+"";n<o;){for(t=e[n++]+"",r=p-t.length;r--;t="0"+t);i+=t}for(o=i.length;48===i.charCodeAt(--o););return i.slice(0,o+1||1)}function b(e,t){var r,n,o=e.c,i=t.c,a=e.s,s=t.s,u=e.e,c=t.e;if(!a||!s)return null;if(r=o&&!o[0],n=i&&!i[0],r||n)return r?n?0:-s:a;if(a!=s)return a;if(r=a<0,n=u==c,!o||!i)return n?0:!o^r?1:-1;if(!n)return u>c^r?1:-1;for(s=(u=o.length)<(c=i.length)?u:c,a=0;a<s;a++)if(o[a]!=i[a])return o[a]>i[a]^r?1:-1;return u==c?0:u>c^r?1:-1}function x(e,t,r,n){if(e<t||e>r||e!==c(e))throw Error(f+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function O(e){var t=e.c.length-1;return m(e.e/p)==t&&e.c[t]%2!=0}function E(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function k(e,t,r){var n,o;if(t<0){for(o=r+".";++t;o+=r);e=o+e}else if(++t>(n=e.length)){for(o=r,t-=n;--t;o+=r);e+=o}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}(i=function e(t){var r,n,o,i,_,N,T,S,j,P=G.prototype={constructor:G,toString:null,valueOf:null},A=new G(1),L=20,B=4,R=-7,C=21,U=-1e7,D=1e7,F=!1,M=1,I=0,q={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},H="0123456789abcdefghijklmnopqrstuvwxyz";function G(e,t){var r,i,s,u,f,h,v,g,y=this;if(!(y instanceof G))return new G(e,t);if(null==t){if(e&&!0===e._isBigNumber)return y.s=e.s,void(!e.c||e.e>D?y.c=y.e=null:e.e<U?y.c=[y.e=0]:(y.e=e.e,y.c=e.c.slice()));if((h="number"==typeof e)&&0*e==0){if(y.s=1/e<0?(e=-e,-1):1,e===~~e){for(u=0,f=e;f>=10;f/=10,u++);return void(u>D?y.c=y.e=null:(y.e=u,y.c=[e]))}g=String(e)}else{if(!a.test(g=String(e)))return o(y,g,h);y.s=45==g.charCodeAt(0)?(g=g.slice(1),-1):1}(u=g.indexOf("."))>-1&&(g=g.replace(".","")),(f=g.search(/e/i))>0?(u<0&&(u=f),u+=+g.slice(f+1),g=g.substring(0,f)):u<0&&(u=g.length)}else{if(x(t,2,H.length,"Base"),10==t)return V(y=new G(e),L+y.e+1,B);if(g=String(e),h="number"==typeof e){if(0*e!=0)return o(y,g,h,t);if(y.s=1/e<0?(g=g.slice(1),-1):1,G.DEBUG&&g.replace(/^0\.0*|\./,"").length>15)throw Error(l+e)}else y.s=45===g.charCodeAt(0)?(g=g.slice(1),-1):1;for(r=H.slice(0,t),u=f=0,v=g.length;f<v;f++)if(r.indexOf(i=g.charAt(f))<0){if("."==i){if(f>u){u=v;continue}}else if(!s&&(g==g.toUpperCase()&&(g=g.toLowerCase())||g==g.toLowerCase()&&(g=g.toUpperCase()))){s=!0,f=-1,u=0;continue}return o(y,String(e),h,t)}h=!1,(u=(g=n(g,t,10,y.s)).indexOf("."))>-1?g=g.replace(".",""):u=g.length}for(f=0;48===g.charCodeAt(f);f++);for(v=g.length;48===g.charCodeAt(--v););if(g=g.slice(f,++v)){if(v-=f,h&&G.DEBUG&&v>15&&(e>d||e!==c(e)))throw Error(l+y.s*e);if((u=u-f-1)>D)y.c=y.e=null;else if(u<U)y.c=[y.e=0];else{if(y.e=u,y.c=[],f=(u+1)%p,u<0&&(f+=p),f<v){for(f&&y.c.push(+g.slice(0,f)),v-=p;f<v;)y.c.push(+g.slice(f,f+=p));f=p-(g=g.slice(f)).length}else f-=v;for(;f--;g+="0");y.c.push(+g)}}else y.c=[y.e=0]}function z(e,t,r,n){var o,i,a,s,u;if(null==r?r=B:x(r,0,8),!e.c)return e.toString();if(o=e.c[0],a=e.e,null==t)u=w(e.c),u=1==n||2==n&&(a<=R||a>=C)?E(u,a):k(u,a,"0");else if(i=(e=V(new G(e),t,r)).e,s=(u=w(e.c)).length,1==n||2==n&&(t<=i||i<=R)){for(;s<t;u+="0",s++);u=E(u,i)}else if(t-=a,u=k(u,i,"0"),i+1>s){if(--t>0)for(u+=".";t--;u+="0");}else if((t+=i-s)>0)for(i+1==s&&(u+=".");t--;u+="0");return e.s<0&&o?"-"+u:u}function $(e,t){for(var r,n=1,o=new G(e[0]);n<e.length;n++){if(!(r=new G(e[n])).s){o=r;break}t.call(o,r)&&(o=r)}return o}function K(e,t,r){for(var n=1,o=t.length;!t[--o];t.pop());for(o=t[0];o>=10;o/=10,n++);return(r=n+r*p-1)>D?e.c=e.e=null:r<U?e.c=[e.e=0]:(e.e=r,e.c=t),e}function V(e,t,r,n){var o,i,a,s,f,l,d,g=e.c,y=v;if(g){e:{for(o=1,s=g[0];s>=10;s/=10,o++);if((i=t-o)<0)i+=p,a=t,d=(f=g[l=0])/y[o-a-1]%10|0;else if((l=u((i+1)/p))>=g.length){if(!n)break e;for(;g.length<=l;g.push(0));f=d=0,o=1,a=(i%=p)-p+1}else{for(f=s=g[l],o=1;s>=10;s/=10,o++);d=(a=(i%=p)-p+o)<0?0:f/y[o-a-1]%10|0}if(n=n||t<0||null!=g[l+1]||(a<0?f:f%y[o-a-1]),n=r<4?(d||n)&&(0==r||r==(e.s<0?3:2)):d>5||5==d&&(4==r||n||6==r&&(i>0?a>0?f/y[o-a]:0:g[l-1])%10&1||r==(e.s<0?8:7)),t<1||!g[0])return g.length=0,n?(t-=e.e+1,g[0]=y[(p-t%p)%p],e.e=-t||0):g[0]=e.e=0,e;if(0==i?(g.length=l,s=1,l--):(g.length=l+1,s=y[p-i],g[l]=a>0?c(f/y[o-a]%y[a])*s:0),n)for(;;){if(0==l){for(i=1,a=g[0];a>=10;a/=10,i++);for(a=g[0]+=s,s=1;a>=10;a/=10,s++);i!=s&&(e.e++,g[0]==h&&(g[0]=1));break}if(g[l]+=s,g[l]!=h)break;g[l--]=0,s=1}for(i=g.length;0===g[--i];g.pop());}e.e>D?e.c=e.e=null:e.e<U&&(e.c=[e.e=0])}return e}function J(e){var t,r=e.e;return null===r?e.toString():(t=w(e.c),t=r<=R||r>=C?E(t,r):k(t,r,"0"),e.s<0?"-"+t:t)}return G.clone=e,G.ROUND_UP=0,G.ROUND_DOWN=1,G.ROUND_CEIL=2,G.ROUND_FLOOR=3,G.ROUND_HALF_UP=4,G.ROUND_HALF_DOWN=5,G.ROUND_HALF_EVEN=6,G.ROUND_HALF_CEIL=7,G.ROUND_HALF_FLOOR=8,G.EUCLID=9,G.config=G.set=function(e){var t,r;if(null!=e){if("object"!=typeof e)throw Error(f+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(x(r=e[t],0,y,t),L=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(x(r=e[t],0,8,t),B=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(x(r[0],-y,0,t),x(r[1],0,y,t),R=r[0],C=r[1]):(x(r,-y,y,t),R=-(C=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)x(r[0],-y,-1,t),x(r[1],1,y,t),U=r[0],D=r[1];else{if(x(r,-y,y,t),!r)throw Error(f+t+" cannot be zero: "+r);U=-(D=r<0?-r:r)}if(e.hasOwnProperty(t="CRYPTO")){if((r=e[t])!==!!r)throw Error(f+t+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw F=!r,Error(f+"crypto unavailable");F=r}else F=r}if(e.hasOwnProperty(t="MODULO_MODE")&&(x(r=e[t],0,9,t),M=r),e.hasOwnProperty(t="POW_PRECISION")&&(x(r=e[t],0,y,t),I=r),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(r=e[t]))throw Error(f+t+" not an object: "+r);q=r}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.$|[+-.\s]|(.).*\1/.test(r))throw Error(f+t+" invalid: "+r);H=r}}return{DECIMAL_PLACES:L,ROUNDING_MODE:B,EXPONENTIAL_AT:[R,C],RANGE:[U,D],CRYPTO:F,MODULO_MODE:M,POW_PRECISION:I,FORMAT:q,ALPHABET:H}},G.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!G.DEBUG)return!0;var t,r,n=e.c,o=e.e,i=e.s;e:if("[object Array]"=={}.toString.call(n)){if((1===i||-1===i)&&o>=-y&&o<=y&&o===c(o)){if(0===n[0]){if(0===o&&1===n.length)return!0;break e}if((t=(o+1)%p)<1&&(t+=p),String(n[0]).length==t){for(t=0;t<n.length;t++)if((r=n[t])<0||r>=h||r!==c(r))break e;if(0!==r)return!0}}}else if(null===n&&null===o&&(null===i||1===i||-1===i))return!0;throw Error(f+"Invalid BigNumber: "+e)},G.maximum=G.max=function(){return $(arguments,P.lt)},G.minimum=G.min=function(){return $(arguments,P.gt)},G.random=(i=9007199254740992*Math.random()&2097151?function(){return c(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,r,n,o,a,s=0,l=[],h=new G(A);if(null==e?e=L:x(e,0,y),o=u(e/p),F)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));s<o;)(a=131072*t[s]+(t[s+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[s]=r[0],t[s+1]=r[1]):(l.push(a%1e14),s+=2);s=o/2}else{if(!crypto.randomBytes)throw F=!1,Error(f+"crypto unavailable");for(t=crypto.randomBytes(o*=7);s<o;)(a=281474976710656*(31&t[s])+1099511627776*t[s+1]+4294967296*t[s+2]+16777216*t[s+3]+(t[s+4]<<16)+(t[s+5]<<8)+t[s+6])>=9e15?crypto.randomBytes(7).copy(t,s):(l.push(a%1e14),s+=7);s=o/7}if(!F)for(;s<o;)(a=i())<9e15&&(l[s++]=a%1e14);for(o=l[--s],e%=p,o&&e&&(a=v[p-e],l[s]=c(o/a)*a);0===l[s];l.pop(),s--);if(s<0)l=[n=0];else{for(n=-1;0===l[0];l.splice(0,1),n-=p);for(s=1,a=l[0];a>=10;a/=10,s++);s<p&&(n-=p-s)}return h.e=n,h.c=l,h}),G.sum=function(){for(var e=1,t=arguments,r=new G(t[0]);e<t.length;)r=r.plus(t[e++]);return r},n=function(){function e(e,t,r,n){for(var o,i,a=[0],s=0,u=e.length;s<u;){for(i=a.length;i--;a[i]*=t);for(a[0]+=n.indexOf(e.charAt(s++)),o=0;o<a.length;o++)a[o]>r-1&&(null==a[o+1]&&(a[o+1]=0),a[o+1]+=a[o]/r|0,a[o]%=r)}return a.reverse()}return function(t,n,o,i,a){var s,u,c,f,l,h,p,d,v=t.indexOf("."),g=L,y=B;for(v>=0&&(f=I,I=0,t=t.replace(".",""),h=(d=new G(n)).pow(t.length-v),I=f,d.c=e(k(w(h.c),h.e,"0"),10,o,"0123456789"),d.e=d.c.length),c=f=(p=e(t,n,o,a?(s=H,"0123456789"):(s="0123456789",H))).length;0==p[--f];p.pop());if(!p[0])return s.charAt(0);if(v<0?--c:(h.c=p,h.e=c,h.s=i,p=(h=r(h,d,g,y,o)).c,l=h.r,c=h.e),v=p[u=c+g+1],f=o/2,l=l||u<0||null!=p[u+1],l=y<4?(null!=v||l)&&(0==y||y==(h.s<0?3:2)):v>f||v==f&&(4==y||l||6==y&&1&p[u-1]||y==(h.s<0?8:7)),u<1||!p[0])t=l?k(s.charAt(1),-g,s.charAt(0)):s.charAt(0);else{if(p.length=u,l)for(--o;++p[--u]>o;)p[u]=0,u||(++c,p=[1].concat(p));for(f=p.length;!p[--f];);for(v=0,t="";v<=f;t+=s.charAt(p[v++]));t=k(t,c,s.charAt(0))}return t}}(),r=function(){function e(e,t,r){var n,o,i,a,s=0,u=e.length,c=t%g,f=t/g|0;for(e=e.slice();u--;)s=((o=c*(i=e[u]%g)+(n=f*i+(a=e[u]/g|0)*c)%g*g+s)/r|0)+(n/g|0)+f*a,e[u]=o%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;o<r;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function r(e,t,r,n){for(var o=0;r--;)e[r]-=o,o=e[r]<t[r]?1:0,e[r]=o*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,o,i,a,s){var u,f,l,d,v,g,y,w,b,x,O,E,k,_,N,T,S,j=n.s==o.s?1:-1,P=n.c,A=o.c;if(!(P&&P[0]&&A&&A[0]))return new G(n.s&&o.s&&(P?!A||P[0]!=A[0]:A)?P&&0==P[0]||!A?0*j:j/0:NaN);for(b=(w=new G(j)).c=[],j=i+(f=n.e-o.e)+1,s||(s=h,f=m(n.e/p)-m(o.e/p),j=j/p|0),l=0;A[l]==(P[l]||0);l++);if(A[l]>(P[l]||0)&&f--,j<0)b.push(1),d=!0;else{for(_=P.length,T=A.length,l=0,j+=2,(v=c(s/(A[0]+1)))>1&&(A=e(A,v,s),P=e(P,v,s),T=A.length,_=P.length),k=T,O=(x=P.slice(0,T)).length;O<T;x[O++]=0);S=A.slice(),S=[0].concat(S),N=A[0],A[1]>=s/2&&N++;do{if(v=0,(u=t(A,x,T,O))<0){if(E=x[0],T!=O&&(E=E*s+(x[1]||0)),(v=c(E/N))>1)for(v>=s&&(v=s-1),y=(g=e(A,v,s)).length,O=x.length;1==t(g,x,y,O);)v--,r(g,T<y?S:A,y,s),y=g.length,u=1;else 0==v&&(u=v=1),y=(g=A.slice()).length;if(y<O&&(g=[0].concat(g)),r(x,g,O,s),O=x.length,-1==u)for(;t(A,x,T,O)<1;)v++,r(x,T<O?S:A,O,s),O=x.length}else 0===u&&(v++,x=[0]);b[l++]=v,x[0]?x[O++]=P[k]||0:(x=[P[k]],O=1)}while((k++<_||null!=x[0])&&j--);d=null!=x[0],b[0]||b.splice(0,1)}if(s==h){for(l=1,j=b[0];j>=10;j/=10,l++);V(w,i+(w.e=l+f*p-1)+1,a,d)}else w.e=f,w.r=+d;return w}}(),_=/^(-?)0([xbo])(?=\w[\w.]*$)/i,N=/^([^.]+)\.$/,T=/^\.([^.]+)$/,S=/^-?(Infinity|NaN)$/,j=/^\s*\+(?=[\w.])|^\s+|\s+$/g,o=function(e,t,r,n){var o,i=r?t:t.replace(j,"");if(S.test(i))e.s=isNaN(i)?null:i<0?-1:1;else{if(!r&&(i=i.replace(_,(function(e,t,r){return o="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=o?e:t})),n&&(o=n,i=i.replace(N,"$1").replace(T,"0.$1")),t!=i))return new G(i,o);if(G.DEBUG)throw Error(f+"Not a"+(n?" base "+n:"")+" number: "+t);e.s=null}e.c=e.e=null},P.absoluteValue=P.abs=function(){var e=new G(this);return e.s<0&&(e.s=1),e},P.comparedTo=function(e,t){return b(this,new G(e,t))},P.decimalPlaces=P.dp=function(e,t){var r,n,o,i=this;if(null!=e)return x(e,0,y),null==t?t=B:x(t,0,8),V(new G(i),e+i.e+1,t);if(!(r=i.c))return null;if(n=((o=r.length-1)-m(this.e/p))*p,o=r[o])for(;o%10==0;o/=10,n--);return n<0&&(n=0),n},P.dividedBy=P.div=function(e,t){return r(this,new G(e,t),L,B)},P.dividedToIntegerBy=P.idiv=function(e,t){return r(this,new G(e,t),0,1)},P.exponentiatedBy=P.pow=function(e,t){var r,n,o,i,a,s,l,h,d=this;if((e=new G(e)).c&&!e.isInteger())throw Error(f+"Exponent not an integer: "+J(e));if(null!=t&&(t=new G(t)),a=e.e>14,!d.c||!d.c[0]||1==d.c[0]&&!d.e&&1==d.c.length||!e.c||!e.c[0])return h=new G(Math.pow(+J(d),a?2-O(e):+J(e))),t?h.mod(t):h;if(s=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new G(NaN);(n=!s&&d.isInteger()&&t.isInteger())&&(d=d.mod(t))}else{if(e.e>9&&(d.e>0||d.e<-1||(0==d.e?d.c[0]>1||a&&d.c[1]>=24e7:d.c[0]<8e13||a&&d.c[0]<=9999975e7)))return i=d.s<0&&O(e)?-0:0,d.e>-1&&(i=1/i),new G(s?1/i:i);I&&(i=u(I/p+2))}for(a?(r=new G(.5),s&&(e.s=1),l=O(e)):l=(o=Math.abs(+J(e)))%2,h=new G(A);;){if(l){if(!(h=h.times(d)).c)break;i?h.c.length>i&&(h.c.length=i):n&&(h=h.mod(t))}if(o){if(0===(o=c(o/2)))break;l=o%2}else if(V(e=e.times(r),e.e+1,1),e.e>14)l=O(e);else{if(0===(o=+J(e)))break;l=o%2}d=d.times(d),i?d.c&&d.c.length>i&&(d.c.length=i):n&&(d=d.mod(t))}return n?h:(s&&(h=A.div(h)),t?h.mod(t):i?V(h,I,B,void 0):h)},P.integerValue=function(e){var t=new G(this);return null==e?e=B:x(e,0,8),V(t,t.e+1,e)},P.isEqualTo=P.eq=function(e,t){return 0===b(this,new G(e,t))},P.isFinite=function(){return!!this.c},P.isGreaterThan=P.gt=function(e,t){return b(this,new G(e,t))>0},P.isGreaterThanOrEqualTo=P.gte=function(e,t){return 1===(t=b(this,new G(e,t)))||0===t},P.isInteger=function(){return!!this.c&&m(this.e/p)>this.c.length-2},P.isLessThan=P.lt=function(e,t){return b(this,new G(e,t))<0},P.isLessThanOrEqualTo=P.lte=function(e,t){return-1===(t=b(this,new G(e,t)))||0===t},P.isNaN=function(){return!this.s},P.isNegative=function(){return this.s<0},P.isPositive=function(){return this.s>0},P.isZero=function(){return!!this.c&&0==this.c[0]},P.minus=function(e,t){var r,n,o,i,a=this,s=a.s;if(t=(e=new G(e,t)).s,!s||!t)return new G(NaN);if(s!=t)return e.s=-t,a.plus(e);var u=a.e/p,c=e.e/p,f=a.c,l=e.c;if(!u||!c){if(!f||!l)return f?(e.s=-t,e):new G(l?a:NaN);if(!f[0]||!l[0])return l[0]?(e.s=-t,e):new G(f[0]?a:3==B?-0:0)}if(u=m(u),c=m(c),f=f.slice(),s=u-c){for((i=s<0)?(s=-s,o=f):(c=u,o=l),o.reverse(),t=s;t--;o.push(0));o.reverse()}else for(n=(i=(s=f.length)<(t=l.length))?s:t,s=t=0;t<n;t++)if(f[t]!=l[t]){i=f[t]<l[t];break}if(i&&(o=f,f=l,l=o,e.s=-e.s),(t=(n=l.length)-(r=f.length))>0)for(;t--;f[r++]=0);for(t=h-1;n>s;){if(f[--n]<l[n]){for(r=n;r&&!f[--r];f[r]=t);--f[r],f[n]+=h}f[n]-=l[n]}for(;0==f[0];f.splice(0,1),--c);return f[0]?K(e,f,c):(e.s=3==B?-1:1,e.c=[e.e=0],e)},P.modulo=P.mod=function(e,t){var n,o,i=this;return e=new G(e,t),!i.c||!e.s||e.c&&!e.c[0]?new G(NaN):!e.c||i.c&&!i.c[0]?new G(i):(9==M?(o=e.s,e.s=1,n=r(i,e,0,3),e.s=o,n.s*=o):n=r(i,e,0,M),(e=i.minus(n.times(e))).c[0]||1!=M||(e.s=i.s),e)},P.multipliedBy=P.times=function(e,t){var r,n,o,i,a,s,u,c,f,l,d,v,y,w,b,x=this,O=x.c,E=(e=new G(e,t)).c;if(!(O&&E&&O[0]&&E[0]))return!x.s||!e.s||O&&!O[0]&&!E||E&&!E[0]&&!O?e.c=e.e=e.s=null:(e.s*=x.s,O&&E?(e.c=[0],e.e=0):e.c=e.e=null),e;for(n=m(x.e/p)+m(e.e/p),e.s*=x.s,(u=O.length)<(l=E.length)&&(y=O,O=E,E=y,o=u,u=l,l=o),o=u+l,y=[];o--;y.push(0));for(w=h,b=g,o=l;--o>=0;){for(r=0,d=E[o]%b,v=E[o]/b|0,i=o+(a=u);i>o;)r=((c=d*(c=O[--a]%b)+(s=v*c+(f=O[a]/b|0)*d)%b*b+y[i]+r)/w|0)+(s/b|0)+v*f,y[i--]=c%w;y[i]=r}return r?++n:y.splice(0,1),K(e,y,n)},P.negated=function(){var e=new G(this);return e.s=-e.s||null,e},P.plus=function(e,t){var r,n=this,o=n.s;if(t=(e=new G(e,t)).s,!o||!t)return new G(NaN);if(o!=t)return e.s=-t,n.minus(e);var i=n.e/p,a=e.e/p,s=n.c,u=e.c;if(!i||!a){if(!s||!u)return new G(o/0);if(!s[0]||!u[0])return u[0]?e:new G(s[0]?n:0*o)}if(i=m(i),a=m(a),s=s.slice(),o=i-a){for(o>0?(a=i,r=u):(o=-o,r=s),r.reverse();o--;r.push(0));r.reverse()}for((o=s.length)-(t=u.length)<0&&(r=u,u=s,s=r,t=o),o=0;t;)o=(s[--t]=s[t]+u[t]+o)/h|0,s[t]=h===s[t]?0:s[t]%h;return o&&(s=[o].concat(s),++a),K(e,s,a)},P.precision=P.sd=function(e,t){var r,n,o,i=this;if(null!=e&&e!==!!e)return x(e,1,y),null==t?t=B:x(t,0,8),V(new G(i),e,t);if(!(r=i.c))return null;if(n=(o=r.length-1)*p+1,o=r[o]){for(;o%10==0;o/=10,n--);for(o=r[0];o>=10;o/=10,n++);}return e&&i.e+1>n&&(n=i.e+1),n},P.shiftedBy=function(e){return x(e,-d,d),this.times("1e"+e)},P.squareRoot=P.sqrt=function(){var e,t,n,o,i,a=this,s=a.c,u=a.s,c=a.e,f=L+4,l=new G("0.5");if(1!==u||!s||!s[0])return new G(!u||u<0&&(!s||s[0])?NaN:s?a:1/0);if(0==(u=Math.sqrt(+J(a)))||u==1/0?(((t=w(s)).length+c)%2==0&&(t+="0"),u=Math.sqrt(+t),c=m((c+1)/2)-(c<0||c%2),n=new G(t=u==1/0?"1e"+c:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+c)):n=new G(u+""),n.c[0])for((u=(c=n.e)+f)<3&&(u=0);;)if(i=n,n=l.times(i.plus(r(a,i,f,1))),w(i.c).slice(0,u)===(t=w(n.c)).slice(0,u)){if(n.e<c&&--u,"9999"!=(t=t.slice(u-3,u+1))&&(o||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(V(n,n.e+L+2,1),e=!n.times(n).eq(a));break}if(!o&&(V(i,i.e+L+2,0),i.times(i).eq(a))){n=i;break}f+=4,u+=4,o=1}return V(n,n.e+L+1,B,e)},P.toExponential=function(e,t){return null!=e&&(x(e,0,y),e++),z(this,e,t,1)},P.toFixed=function(e,t){return null!=e&&(x(e,0,y),e=e+this.e+1),z(this,e,t)},P.toFormat=function(e,t,r){var n,o=this;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=q;else if("object"!=typeof r)throw Error(f+"Argument not an object: "+r);if(n=o.toFixed(e,t),o.c){var i,a=n.split("."),s=+r.groupSize,u=+r.secondaryGroupSize,c=r.groupSeparator||"",l=a[0],h=a[1],p=o.s<0,d=p?l.slice(1):l,v=d.length;if(u&&(i=s,s=u,u=i,v-=i),s>0&&v>0){for(i=v%s||s,l=d.substr(0,i);i<v;i+=s)l+=c+d.substr(i,s);u>0&&(l+=c+d.slice(i)),p&&(l="-"+l)}n=h?l+(r.decimalSeparator||"")+((u=+r.fractionGroupSize)?h.replace(new RegExp("\\d{"+u+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):h):l}return(r.prefix||"")+n+(r.suffix||"")},P.toFraction=function(e){var t,n,o,i,a,s,u,c,l,h,d,g,y=this,m=y.c;if(null!=e&&(!(u=new G(e)).isInteger()&&(u.c||1!==u.s)||u.lt(A)))throw Error(f+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+J(u));if(!m)return new G(y);for(t=new G(A),l=n=new G(A),o=c=new G(A),g=w(m),a=t.e=g.length-y.e-1,t.c[0]=v[(s=a%p)<0?p+s:s],e=!e||u.comparedTo(t)>0?a>0?t:l:u,s=D,D=1/0,u=new G(g),c.c[0]=0;h=r(u,t,0,1),1!=(i=n.plus(h.times(o))).comparedTo(e);)n=o,o=i,l=c.plus(h.times(i=l)),c=i,t=u.minus(h.times(i=t)),u=i;return i=r(e.minus(n),o,0,1),c=c.plus(i.times(l)),n=n.plus(i.times(o)),c.s=l.s=y.s,d=r(l,o,a*=2,B).minus(y).abs().comparedTo(r(c,n,a,B).minus(y).abs())<1?[l,o]:[c,n],D=s,d},P.toNumber=function(){return+J(this)},P.toPrecision=function(e,t){return null!=e&&x(e,1,y),z(this,e,t,2)},P.toString=function(e){var t,r=this,o=r.s,i=r.e;return null===i?o?(t="Infinity",o<0&&(t="-"+t)):t="NaN":(null==e?t=i<=R||i>=C?E(w(r.c),i):k(w(r.c),i,"0"):10===e?t=k(w((r=V(new G(r),L+i+1,B)).c),r.e,"0"):(x(e,2,H.length,"Base"),t=n(k(w(r.c),i,"0"),10,e,o,!0)),o<0&&r.c[0]&&(t="-"+t)),t},P.valueOf=P.toJSON=function(){return J(this)},P._isBigNumber=!0,s&&(P[Symbol.toStringTag]="BigNumber",P[Symbol.for("nodejs.util.inspect.custom")]=P.valueOf),null!=t&&G.set(t),G}()).default=i.BigNumber=i,void 0===(n=function(){return i}.call(t,r,t,e))||(e.exports=n)}()},function(e,t){var r=Array.isArray;e.exports=r},function(e,t,r){var n=r(18);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},function(e,t,r){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},function(e,t,r){"use strict";var n=r(1);function o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var a=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},function(e,t,r){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,r){"use strict";(function(t){var n=r(1),o=r(33),i={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,u={adapter:(void 0!==t&&"[object process]"===Object.prototype.toString.call(t)?s=r(9):"undefined"!=typeof XMLHttpRequest&&(s=r(9)),s),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){u.headers[e]=n.merge(i)})),e.exports=u}).call(this,r(32))},function(e,t,r){"use strict";var n=r(1),o=r(34),i=r(6),a=r(36),s=r(37),u=r(10);e.exports=function(e){return new Promise((function(t,c){var f=e.data,l=e.headers;n.isFormData(f)&&delete l["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",d=e.auth.password||"";l.Authorization="Basic "+btoa(p+":"+d)}if(h.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in h?a(h.getAllResponseHeaders()):null,n={data:e.responseType&&"text"!==e.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};o(t,c,n),h=null}},h.onabort=function(){h&&(c(u("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){c(u("Network Error",e,null,h)),h=null},h.ontimeout=function(){c(u("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",h)),h=null},n.isStandardBrowserEnv()){var v=r(38),g=(e.withCredentials||s(e.url))&&e.xsrfCookieName?v.read(e.xsrfCookieName):void 0;g&&(l[e.xsrfHeaderName]=g)}if("setRequestHeader"in h&&n.forEach(l,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete l[t]:h.setRequestHeader(t,e)})),e.withCredentials&&(h.withCredentials=!0),e.responseType)try{h.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),c(e),h=null)})),void 0===f&&(f=null),h.send(f)}))}},function(e,t,r){"use strict";var n=r(35);e.exports=function(e,t,r,o,i){var a=new Error(e);return n(a,t,r,o,i)}},function(e,t,r){"use strict";var n=r(1);e.exports=function(e,t){t=t||{};var r={};return n.forEach(["url","method","params","data"],(function(e){void 0!==t[e]&&(r[e]=t[e])})),n.forEach(["headers","auth","proxy"],(function(o){n.isObject(t[o])?r[o]=n.deepMerge(e[o],t[o]):void 0!==t[o]?r[o]=t[o]:n.isObject(e[o])?r[o]=n.deepMerge(e[o]):void 0!==e[o]&&(r[o]=e[o])})),n.forEach(["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"],(function(n){void 0!==t[n]?r[n]=t[n]:void 0!==e[n]&&(r[n]=e[n])})),r}},function(e,t,r){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e){e.exports=JSON.parse("{}")},function(e,t,r){e.exports=r(26)},function(e){e.exports=JSON.parse('{"a":"0.4.14"}')},function(e){e.exports=JSON.parse('{"a":"0.4.14"}')},function(e,t,r){var n=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n=f;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=k(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var u=c(e,t,r);if("normal"===u.type){if(n=r.done?p:l,u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=p,r.method="throw",r.arg=u.arg)}}}(e,r,a),i}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",l="suspendedYield",h="executing",p="completed",d={};function v(){}function g(){}function y(){}var m={};m[i]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(S([])));b&&b!==r&&n.call(b,i)&&(m=b);var x=y.prototype=v.prototype=Object.create(m);function O(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function E(e){var t;this._invoke=function(r,o){function i(){return new Promise((function(t,i){!function t(r,o,i,a){var s=c(e[r],e,o);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?Promise.resolve(f.__await).then((function(e){t("next",e,i,a)}),(function(e){t("throw",e,i,a)})):Promise.resolve(f).then((function(e){u.value=e,i(u)}),(function(e){return t("throw",e,i,a)}))}a(s.arg)}(r,o,t,i)}))}return t=t?t.then(i,i):i()}}function k(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=c(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,d;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,d):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function S(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:j}}function j(){return{value:t,done:!0}}return g.prototype=x.constructor=y,y.constructor=g,y[s]=g.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},O(E.prototype),E.prototype[a]=function(){return this},e.AsyncIterator=E,e.async=function(t,r,n,o){var i=new E(u(t,r,n,o));return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},O(x),x[s]="Generator",x[i]=function(){return this},x.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),N(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:S(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),d}},e}(e.exports);try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}},function(e,t,r){var n=r(19),o=r(20);e.exports=function e(t,r,i,a,s){var u=-1,c=t.length;for(i||(i=o),s||(s=[]);++u<c;){var f=t[u];r>0&&i(f)?r>1?e(f,r-1,i,a,s):n(s,f):a||(s[s.length]=f)}return s}},function(e,t){e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},function(e,t,r){var n=r(21),o=r(25),i=r(3),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},function(e,t,r){var n=r(22).Symbol;e.exports=n},function(e,t,r){var n=r(23),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},function(e,t,r){(function(t){var r="object"==typeof t&&t&&t.Object===Object&&t;e.exports=r}).call(this,r(24))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t){e.exports=function(){return!1}},function(e,t,r){"use strict";var n=r(1),o=r(5),i=r(28),a=r(11);function s(e){var t=new i(e),r=o(i.prototype.request,t);return n.extend(r,i.prototype,t),n.extend(r,t),r}var u=s(r(8));u.Axios=i,u.create=function(e){return s(a(u.defaults,e))},u.Cancel=r(12),u.CancelToken=r(41),u.isCancel=r(7),u.all=function(e){return Promise.all(e)},u.spread=r(42),e.exports=u,e.exports.default=u},function(e,t){
/*!

@@ -3,0 +3,0 @@ * Determine if an object is a Buffer

@@ -1,2 +0,2 @@

module.exports=function(t){var e={};function a(s){if(e[s])return e[s].exports;var n=e[s]={i:s,l:!1,exports:{}};return t[s].call(n.exports,n,n.exports,a),n.l=!0,n.exports}return a.m=t,a.c=e,a.d=function(t,e,s){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(a.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)a.d(s,n,function(e){return t[e]}.bind(null,n));return s},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="",a(a.s=6)}([function(t,e){t.exports=require("bignumber.js")},function(t,e){t.exports=require("lodash")},function(t,e){t.exports=require("@liquality/utils")},function(t,e){t.exports=require("axios")},function(t,e){t.exports=require("@liquality/provider")},function(t){t.exports=JSON.parse('{"a":"0.4.13"}')},function(t,e,a){"use strict";a.r(e);var s=a(3),n=a.n(s),r=a(4),i=a.n(r),o=a(1),c=a(0),u=a.n(c),l=a(2),h=a(5);class d extends i.a{constructor(t,e=1,a=3){super(),this.url=t,this._numberOfBlockConfirmation=e,this._defaultFeePerByte=a,this._axios=n.a.create({baseURL:t,responseType:"text",transformResponse:void 0})}async getFeePerByte(t=this._numberOfBlockConfirmation){try{const e=(await this._axios("/fee-estimates")).data;return e[Object.keys(e).reduce((e,a)=>Math.abs(e-t)<Math.abs(a-t)?e:a)]}catch(t){return this._defaultFeePerByte}}async isAddressUsed(t){return await this.getReceivedByAddress(t)>0}async getBalance(t){Object(o.isArray)(t)||(t=[t]);const e=await this.getUnspentTransactions(t);return Object(o.flatten)(e).reduce((t,e)=>t.plus(e.satoshis),new u.a(0))}async _getUnspentTransactions(t){const e=await this._axios.get(`/address/${Object(l.addressToString)(t)}/utxo`),a=await this.getBlockHeight();return e.data.map(e=>({...e,address:Object(l.addressToString)(t),satoshis:e.value,amount:u()(e.value).dividedBy(1e8).toNumber(),confirmations:e.status.confirmed?a-e.status.block_height+1:0}))}async getUnspentTransactions(t){const e=await Promise.all(t.map(t=>this._getUnspentTransactions(t)));return Object(o.flatten)(e)}async getTransactionHex(t){return(await this._axios.get(`/tx/${t}/hex`)).data}async getTransaction(t){const e=await this._axios.get(`/tx/${t}`),a=await this.getBlockHeight();return this.formatTransaction(e.data,a)}formatTransaction(t,e){const a=t.vout.reduce((t,e)=>t.plus(u()(e.value)),u()(0)),s=t.vin.map(t=>({txid:t.txid,vout:t.vout,scriptSig:{asm:t.scriptsig_asm,hex:t.scriptsig},txinwitness:t.witness})),n=t.vout.map((t,e)=>({value:u()(t.value).dividedBy(1e8).toNumber(),n:e,scriptPubKey:{asm:t.scriptpubkey_asm,hex:t.scriptpubkey,type:t.scriptpubkey_type,addresses:[t.scriptpubkey_address]}})),r={...t,vin:s,vout:n},i=t.status.confirmed?e-t.status.block_height+1:0;return{hash:t.txid,value:a.toNumber(),_raw:r,blockHash:t.status.block_hash,blockNumber:t.status.block_height,confirmations:i}}async getBlockTransactions(t){let e=[];const a=await this.getBlockHeight();for(let s=0;;s+=25)try{const n=(await this._axios.get(`/block/${t}/txs/${s}`)).data;Object(o.isArray)(n)&&(e=e.concat(n.map(t=>this.formatTransaction(t,a))))}catch(t){if("start index out of range"===t.response.data)break;throw t}return e}async getBlockByHash(t,e=!1){const a=(await this._axios.get(`/block/${t}`)).data,{id:s,height:n,timestamp:r,size:i,previousblockhash:o,nonce:c}=a;return{hash:s,number:n,timestamp:r,size:i,parentHash:o,nonce:c,transactions:await this.getBlockTransactions(t)}}async getBlockHash(t){return(await this._axios.get(`/block-height/${t}`)).data}async getBlockByNumber(t,e){return this.getBlockByHash(await this.getBlockHash(t),e)}async getBlockHeight(){const t=await this._axios.get("/blocks/tip/height");return parseInt(t.data)}async getTransactionByHash(t){return this.getRawTransactionByHash(t,!0)}async getRawTransactionByHash(t,e=!1){return e?this.getTransaction(t):this.getTransactionHex(t)}async sendRawTransaction(t){return(await this._axios.post("/tx",t)).data}}d.version=h.a;e.default=d}]).default;
module.exports=function(t){var e={};function a(s){if(e[s])return e[s].exports;var n=e[s]={i:s,l:!1,exports:{}};return t[s].call(n.exports,n,n.exports,a),n.l=!0,n.exports}return a.m=t,a.c=e,a.d=function(t,e,s){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(a.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)a.d(s,n,function(e){return t[e]}.bind(null,n));return s},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="",a(a.s=6)}([function(t,e){t.exports=require("bignumber.js")},function(t,e){t.exports=require("lodash")},function(t,e){t.exports=require("@liquality/utils")},function(t,e){t.exports=require("axios")},function(t,e){t.exports=require("@liquality/provider")},function(t){t.exports=JSON.parse('{"a":"0.4.14"}')},function(t,e,a){"use strict";a.r(e);var s=a(3),n=a.n(s),r=a(4),i=a.n(r),o=a(1),c=a(0),u=a.n(c),l=a(2),h=a(5);class d extends i.a{constructor(t,e=1,a=3){super(),this.url=t,this._numberOfBlockConfirmation=e,this._defaultFeePerByte=a,this._axios=n.a.create({baseURL:t,responseType:"text",transformResponse:void 0})}async getFeePerByte(t=this._numberOfBlockConfirmation){try{const e=(await this._axios("/fee-estimates")).data;return e[Object.keys(e).reduce((e,a)=>Math.abs(e-t)<Math.abs(a-t)?e:a)]}catch(t){return this._defaultFeePerByte}}async isAddressUsed(t){return await this.getReceivedByAddress(t)>0}async getBalance(t){Object(o.isArray)(t)||(t=[t]);const e=await this.getUnspentTransactions(t);return Object(o.flatten)(e).reduce((t,e)=>t.plus(e.satoshis),new u.a(0))}async _getUnspentTransactions(t){const e=await this._axios.get(`/address/${Object(l.addressToString)(t)}/utxo`),a=await this.getBlockHeight();return e.data.map(e=>({...e,address:Object(l.addressToString)(t),satoshis:e.value,amount:u()(e.value).dividedBy(1e8).toNumber(),confirmations:e.status.confirmed?a-e.status.block_height+1:0}))}async getUnspentTransactions(t){const e=await Promise.all(t.map(t=>this._getUnspentTransactions(t)));return Object(o.flatten)(e)}async getTransactionHex(t){return(await this._axios.get(`/tx/${t}/hex`)).data}async getTransaction(t){const e=await this._axios.get(`/tx/${t}`),a=await this.getBlockHeight();return this.formatTransaction(e.data,a)}formatTransaction(t,e){const a=t.vout.reduce((t,e)=>t.plus(u()(e.value)),u()(0)),s=t.vin.map(t=>({txid:t.txid,vout:t.vout,scriptSig:{asm:t.scriptsig_asm,hex:t.scriptsig},txinwitness:t.witness})),n=t.vout.map((t,e)=>({value:u()(t.value).dividedBy(1e8).toNumber(),n:e,scriptPubKey:{asm:t.scriptpubkey_asm,hex:t.scriptpubkey,type:t.scriptpubkey_type,addresses:[t.scriptpubkey_address]}})),r={...t,vin:s,vout:n},i=t.status.confirmed?e-t.status.block_height+1:0;return{hash:t.txid,value:a.toNumber(),_raw:r,blockHash:t.status.block_hash,blockNumber:t.status.block_height,confirmations:i}}async getBlockTransactions(t){let e=[];const a=await this.getBlockHeight();for(let s=0;;s+=25)try{const n=(await this._axios.get(`/block/${t}/txs/${s}`)).data;Object(o.isArray)(n)&&(e=e.concat(n.map(t=>this.formatTransaction(t,a))))}catch(t){if("start index out of range"===t.response.data)break;throw t}return e}async getBlockByHash(t,e=!1){const a=(await this._axios.get(`/block/${t}`)).data,{id:s,height:n,timestamp:r,size:i,previousblockhash:o,nonce:c}=a;return{hash:s,number:n,timestamp:r,size:i,parentHash:o,nonce:c,transactions:await this.getBlockTransactions(t)}}async getBlockHash(t){return(await this._axios.get(`/block-height/${t}`)).data}async getBlockByNumber(t,e){return this.getBlockByHash(await this.getBlockHash(t),e)}async getBlockHeight(){const t=await this._axios.get("/blocks/tip/height");return parseInt(t.data)}async getTransactionByHash(t){return this.getRawTransactionByHash(t,!0)}async getRawTransactionByHash(t,e=!1){return e?this.getTransaction(t):this.getTransactionHex(t)}async sendRawTransaction(t){return(await this._axios.post("/tx",t)).data}}d.version=h.a;e.default=d}]).default;
//# sourceMappingURL=index.cjs.js.map

@@ -5,3 +5,3 @@ {

"umdExport": "default",
"version": "0.4.13",
"version": "0.4.14",
"description": "",

@@ -23,4 +23,4 @@ "module": "lib/index.js",

"@babel/runtime": "^7.4.3",
"@liquality/provider": "^0.4.13",
"@liquality/utils": "^0.4.13",
"@liquality/provider": "^0.4.14",
"@liquality/utils": "^0.4.14",
"axios": "^0.19.0",

@@ -44,3 +44,3 @@ "bignumber.js": "^8.1.1",

},
"gitHead": "d8384d4690aed9b32fdb22c5627274ed8a6cdb23",
"gitHead": "912787829578823b5d606783009f9570d9837c22",
"devDependencies": {

@@ -47,0 +47,0 @@ "nock": "^10.0.6"

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc