bsv2 2.0.24 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/{.babelrc.test → .babel.test} +1 -1
  2. package/.husky/pre-commit +1 -1
  3. package/.mocharc.yml +1 -1
  4. package/.travis.yml +1 -1
  5. package/babel.config.cjs +44 -0
  6. package/benchmark.js +10 -18
  7. package/bin/bsv.js +1 -1
  8. package/bin/network.js +2 -1
  9. package/dist/bsv2.mjs +36061 -4
  10. package/dist/bsv2.umd.js +28 -0
  11. package/doc/assets/anchor.js +350 -0
  12. package/doc/assets/bass-addons.css +12 -0
  13. package/doc/assets/bass.css +544 -0
  14. package/doc/assets/fonts/EOT/SourceCodePro-Bold.eot +0 -0
  15. package/doc/assets/fonts/EOT/SourceCodePro-Regular.eot +0 -0
  16. package/doc/assets/fonts/LICENSE.txt +93 -0
  17. package/doc/assets/fonts/OTF/SourceCodePro-Bold.otf +0 -0
  18. package/doc/assets/fonts/OTF/SourceCodePro-Regular.otf +0 -0
  19. package/doc/assets/fonts/TTF/SourceCodePro-Bold.ttf +0 -0
  20. package/doc/assets/fonts/TTF/SourceCodePro-Regular.ttf +0 -0
  21. package/doc/assets/fonts/WOFF/OTF/SourceCodePro-Bold.otf.woff +0 -0
  22. package/doc/assets/fonts/WOFF/OTF/SourceCodePro-Regular.otf.woff +0 -0
  23. package/doc/assets/fonts/WOFF/TTF/SourceCodePro-Bold.ttf.woff +0 -0
  24. package/doc/assets/fonts/WOFF/TTF/SourceCodePro-Regular.ttf.woff +0 -0
  25. package/doc/assets/fonts/WOFF2/OTF/SourceCodePro-Bold.otf.woff2 +0 -0
  26. package/doc/assets/fonts/WOFF2/OTF/SourceCodePro-Regular.otf.woff2 +0 -0
  27. package/doc/assets/fonts/WOFF2/TTF/SourceCodePro-Bold.ttf.woff2 +0 -0
  28. package/doc/assets/fonts/WOFF2/TTF/SourceCodePro-Regular.ttf.woff2 +0 -0
  29. package/doc/assets/fonts/source-code-pro.css +23 -0
  30. package/doc/assets/github.css +123 -0
  31. package/doc/assets/site.js +168 -0
  32. package/doc/assets/split.css +15 -0
  33. package/doc/assets/split.js +782 -0
  34. package/doc/assets/style.css +147 -0
  35. package/doc/index.html +9461 -0
  36. package/entry.js +2 -3
  37. package/eslint.config.mjs +8 -0
  38. package/index.js +1 -5
  39. package/{karma.conf.js → karma.conf.ts} +2 -3
  40. package/lib/ach.js +5 -5
  41. package/lib/address.js +11 -9
  42. package/lib/aescbc.js +3 -3
  43. package/lib/bip-39.js +12 -11
  44. package/lib/block.js +2 -2
  45. package/lib/bn.js +12 -17
  46. package/lib/bsm.js +1 -1
  47. package/lib/config.js +1 -1
  48. package/lib/constants.js +1 -1
  49. package/lib/ecdsa.js +24 -23
  50. package/lib/interp.js +18 -14
  51. package/lib/merkle.js +1 -1
  52. package/lib/op-code.js +137 -135
  53. package/lib/priv-key.js +1 -1
  54. package/lib/script.js +44 -42
  55. package/lib/sig.js +12 -12
  56. package/lib/struct.js +9 -6
  57. package/lib/tx.js +6 -6
  58. package/load-babel.js +3 -1
  59. package/mtest/test.html +6 -4
  60. package/mtest/test.js +1 -1
  61. package/out/Sig.html +541 -0
  62. package/out/bip-32.js.html +523 -0
  63. package/out/bip-39.js.html +336 -0
  64. package/out/block.js.html +183 -0
  65. package/out/bn.js.html +512 -0
  66. package/out/ecdsa.js.html +546 -0
  67. package/out/fonts/OpenSans-Bold-webfont.eot +0 -0
  68. package/out/fonts/OpenSans-Bold-webfont.svg +1830 -0
  69. package/out/fonts/OpenSans-Bold-webfont.woff +0 -0
  70. package/out/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  71. package/out/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
  72. package/out/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  73. package/out/fonts/OpenSans-Italic-webfont.eot +0 -0
  74. package/out/fonts/OpenSans-Italic-webfont.svg +1830 -0
  75. package/out/fonts/OpenSans-Italic-webfont.woff +0 -0
  76. package/out/fonts/OpenSans-Light-webfont.eot +0 -0
  77. package/out/fonts/OpenSans-Light-webfont.svg +1831 -0
  78. package/out/fonts/OpenSans-Light-webfont.woff +0 -0
  79. package/out/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  80. package/out/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
  81. package/out/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  82. package/out/fonts/OpenSans-Regular-webfont.eot +0 -0
  83. package/out/fonts/OpenSans-Regular-webfont.svg +1831 -0
  84. package/out/fonts/OpenSans-Regular-webfont.woff +0 -0
  85. package/out/global.html +220 -0
  86. package/out/index.html +128 -0
  87. package/out/interp.js.html +2064 -0
  88. package/out/merkle.js.html +143 -0
  89. package/out/msg.js.html +235 -0
  90. package/out/priv-key.js.html +208 -0
  91. package/out/pub-key.js.html +281 -0
  92. package/out/script.js.html +876 -0
  93. package/out/scripts/linenumber.js +25 -0
  94. package/out/scripts/prettify/Apache-License-2.0.txt +202 -0
  95. package/out/scripts/prettify/lang-css.js +2 -0
  96. package/out/scripts/prettify/prettify.js +28 -0
  97. package/out/sig-operations.js.html +171 -0
  98. package/out/sig.js.html +450 -0
  99. package/out/struct.js.html +440 -0
  100. package/out/styles/jsdoc-default.css +358 -0
  101. package/out/styles/prettify-jsdoc.css +111 -0
  102. package/out/styles/prettify-tomorrow.css +132 -0
  103. package/out/tx-builder.js.html +644 -0
  104. package/out/tx-in.js.html +223 -0
  105. package/out/tx-verifier.js.html +260 -0
  106. package/out/tx.js.html +481 -0
  107. package/package.json +34 -39
  108. package/vite.config.js +36 -0
  109. package/dist/bsv2.bundle.js +0 -8
  110. package/dist/bsv2.cjs.js +0 -2
  111. package/dist/bsv2.cjs.js.LICENSE.txt +0 -1
  112. package/dist/bsv2.module.js +0 -2
  113. /package/{webpack.config.js → mtest/webpack.config.js} +0 -0
@@ -1,8 +0,0 @@
1
- var Vt=Object.defineProperty;var r=(kt,It)=>Vt(kt,"name",{value:It,configurable:!0});r(function(It,Be){typeof exports=="object"&&typeof module=="object"?module.exports=Be():typeof define=="function"&&define.amd?define([],Be):typeof exports=="object"?exports.bsv2=Be():It.bsv2=Be()},"webpackUniversalModuleDefinition")(self,()=>(()=>{var kt={4297:re=>{re.exports=$;function $(P){this._tables[0][0][0]||this._precompute();var _,Y,z,k=this._tables[0][4],d=this._tables[1],b=P.length,m=1;if(b!==4&&b!==6&&b!==8)throw new Error("invalid aes key size");this._key=[Y=P.slice(0),z=[]];for(var B=b;B<4*b+28;B++)_=Y[B-1],(B%b===0||b===8&&B%b===4)&&(_=k[_>>>24]<<24^k[_>>16&255]<<16^k[_>>8&255]<<8^k[_&255],B%b===0&&(_=_<<8^_>>>24^m<<24,m=m<<1^(m>>7)*283)),Y[B]=Y[B-b]^_;for(var N=0;B;N++,B--)_=Y[N&3?B:B-4],B<=4||N<4?z[N]=_:z[N]=d[0][k[_>>>24]]^d[1][k[_>>16&255]]^d[2][k[_>>8&255]]^d[3][k[_&255]]}r($,"AES"),$.prototype={encrypt:function(P){return this._crypt(P,0)},decrypt:function(P){return this._crypt(P,1)},_tables:[[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)]],_precompute:function(){var P=this._tables[0],_=this._tables[1],Y=P[4],z=_[4],k,d,b,m=new Uint8Array(256),B=new Uint8Array(256),N,p,a,l,u,v;for(k=0;k<256;k++)B[(m[k]=k<<1^(k>>7)*283)^k]=k;for(d=b=0;!Y[d];d^=N||1,b=B[b]||1)for(l=b^b<<1^b<<2^b<<3^b<<4,l=l>>8^l&255^99,Y[d]=l,z[l]=d,a=m[p=m[N=m[d]]],v=a*16843009^p*65537^N*257^d*16843008,u=m[l]*257^l*16843008,k=0;k<4;k++)P[k][d]=u=u<<24^u>>>8,_[k][l]=v=v<<24^v>>>8},_crypt:function(P,_){if(P.length!==4)throw new Error("invalid aes block size");var Y=this._key[_],z=P[0]^Y[0],k=P[_?3:1]^Y[1],d=P[2]^Y[2],b=P[_?1:3]^Y[3],m,B,N,p=Y.length/4-2,a,l=4,u=new Uint32Array(4),v=this._tables[_],y=v[0],g=v[1],A=v[2],w=v[3],R=v[4];for(a=0;a<p;a++)m=y[z>>>24]^g[k>>16&255]^A[d>>8&255]^w[b&255]^Y[l],B=y[k>>>24]^g[d>>16&255]^A[b>>8&255]^w[z&255]^Y[l+1],N=y[d>>>24]^g[b>>16&255]^A[z>>8&255]^w[k&255]^Y[l+2],b=y[b>>>24]^g[z>>16&255]^A[k>>8&255]^w[d&255]^Y[l+3],l+=4,z=m,k=B,d=N;for(a=0;a<4;a++)u[_?3&-a:a]=R[z>>>24]<<24^R[k>>16&255]<<16^R[d>>8&255]<<8^R[b&255]^Y[l++],m=z,z=k,k=d,d=b,b=m;return u}}},8162:re=>{"use strict";function $(P){if(P.length>=255)throw new TypeError("Alphabet too long");for(var _=new Uint8Array(256),Y=0;Y<_.length;Y++)_[Y]=255;for(var z=0;z<P.length;z++){var k=P.charAt(z),d=k.charCodeAt(0);if(_[d]!==255)throw new TypeError(k+" is ambiguous");_[d]=z}var b=P.length,m=P.charAt(0),B=Math.log(b)/Math.log(256),N=Math.log(256)/Math.log(b);function p(u){if(u instanceof Uint8Array||(ArrayBuffer.isView(u)?u=new Uint8Array(u.buffer,u.byteOffset,u.byteLength):Array.isArray(u)&&(u=Uint8Array.from(u))),!(u instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(u.length===0)return"";for(var v=0,y=0,g=0,A=u.length;g!==A&&u[g]===0;)g++,v++;for(var w=(A-g)*N+1>>>0,R=new Uint8Array(w);g!==A;){for(var C=u[g],L=0,V=w-1;(C!==0||L<y)&&V!==-1;V--,L++)C+=256*R[V]>>>0,R[V]=C%b>>>0,C=C/b>>>0;if(C!==0)throw new Error("Non-zero carry");y=L,g++}for(var Q=w-y;Q!==w&&R[Q]===0;)Q++;for(var ie=m.repeat(v);Q<w;++Q)ie+=P.charAt(R[Q]);return ie}r(p,"encode");function a(u){if(typeof u!="string")throw new TypeError("Expected String");if(u.length===0)return new Uint8Array;for(var v=0,y=0,g=0;u[v]===m;)y++,v++;for(var A=(u.length-v)*B+1>>>0,w=new Uint8Array(A);u[v];){var R=_[u.charCodeAt(v)];if(R===255)return;for(var C=0,L=A-1;(R!==0||C<g)&&L!==-1;L--,C++)R+=b*w[L]>>>0,w[L]=R%256>>>0,R=R/256>>>0;if(R!==0)throw new Error("Non-zero carry");g=C,v++}for(var V=A-g;V!==A&&w[V]===0;)V++;for(var Q=new Uint8Array(y+(A-V)),ie=y;V!==A;)Q[ie++]=w[V++];return Q}r(a,"decodeUnsafe");function l(u){var v=a(u);if(v)return v;throw new Error("Non-base"+b+" character")}return r(l,"decode"),{encode:p,decodeUnsafe:a,decode:l}}r($,"base"),re.exports=$},9742:(re,$)=>{"use strict";$.byteLength=m,$.toByteArray=N,$.fromByteArray=l;for(var P=[],_=[],Y=typeof Uint8Array<"u"?Uint8Array:Array,z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",k=0,d=z.length;k<d;++k)P[k]=z[k],_[z.charCodeAt(k)]=k;_[45]=62,_[95]=63;function b(u){var v=u.length;if(v%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=u.indexOf("=");y===-1&&(y=v);var g=y===v?0:4-y%4;return[y,g]}r(b,"getLens");function m(u){var v=b(u),y=v[0],g=v[1];return(y+g)*3/4-g}r(m,"byteLength");function B(u,v,y){return(v+y)*3/4-y}r(B,"_byteLength");function N(u){var v,y=b(u),g=y[0],A=y[1],w=new Y(B(u,g,A)),R=0,C=A>0?g-4:g,L;for(L=0;L<C;L+=4)v=_[u.charCodeAt(L)]<<18|_[u.charCodeAt(L+1)]<<12|_[u.charCodeAt(L+2)]<<6|_[u.charCodeAt(L+3)],w[R++]=v>>16&255,w[R++]=v>>8&255,w[R++]=v&255;return A===2&&(v=_[u.charCodeAt(L)]<<2|_[u.charCodeAt(L+1)]>>4,w[R++]=v&255),A===1&&(v=_[u.charCodeAt(L)]<<10|_[u.charCodeAt(L+1)]<<4|_[u.charCodeAt(L+2)]>>2,w[R++]=v>>8&255,w[R++]=v&255),w}r(N,"toByteArray");function p(u){return P[u>>18&63]+P[u>>12&63]+P[u>>6&63]+P[u&63]}r(p,"tripletToBase64");function a(u,v,y){for(var g,A=[],w=v;w<y;w+=3)g=(u[w]<<16&16711680)+(u[w+1]<<8&65280)+(u[w+2]&255),A.push(p(g));return A.join("")}r(a,"encodeChunk");function l(u){for(var v,y=u.length,g=y%3,A=[],w=16383,R=0,C=y-g;R<C;R+=w)A.push(a(u,R,R+w>C?C:R+w));return g===1?(v=u[y-1],A.push(P[v>>2]+P[v<<4&63]+"==")):g===2&&(v=(u[y-2]<<8)+u[y-1],A.push(P[v>>10]+P[v>>4&63]+P[v<<2&63]+"=")),A.join("")}r(l,"fromByteArray")},4666:(re,$,P)=>{"use strict";var _=$;_.version=P(2726).i8,_.utils=P(7359),_.rand=P(9931),_.curve=P(5104),_.curves=P(4626),_.ec=P(5630)},8015:(re,$,P)=>{"use strict";var _=P(3550),Y=P(7359),z=Y.getNAF,k=Y.getJSF,d=Y.assert;function b(B,N){this.type=B,this.p=new _(N.p,16),this.red=N.prime?_.red(N.prime):_.mont(this.p),this.zero=new _(0).toRed(this.red),this.one=new _(1).toRed(this.red),this.two=new _(2).toRed(this.red),this.n=N.n&&new _(N.n,16),this.g=N.g&&this.pointFromJSON(N.g,N.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var p=this.n&&this.p.div(this.n);!p||p.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}r(b,"BaseCurve"),re.exports=b,b.prototype.point=r(function(){throw new Error("Not implemented")},"point"),b.prototype.validate=r(function(){throw new Error("Not implemented")},"validate"),b.prototype._fixedNafMul=r(function(N,p){d(N.precomputed);var a=N._getDoubles(),l=z(p,1,this._bitLength),u=(1<<a.step+1)-(a.step%2===0?2:1);u/=3;for(var v=[],y=0;y<l.length;y+=a.step){for(var g=0,p=y+a.step-1;p>=y;p--)g=(g<<1)+l[p];v.push(g)}for(var A=this.jpoint(null,null,null),w=this.jpoint(null,null,null),R=u;R>0;R--){for(var y=0;y<v.length;y++){var g=v[y];g===R?w=w.mixedAdd(a.points[y]):g===-R&&(w=w.mixedAdd(a.points[y].neg()))}A=A.add(w)}return A.toP()},"_fixedNafMul"),b.prototype._wnafMul=r(function(N,p){var a=4,l=N._getNAFPoints(a);a=l.wnd;for(var u=l.points,v=z(p,a,this._bitLength),y=this.jpoint(null,null,null),g=v.length-1;g>=0;g--){for(var p=0;g>=0&&v[g]===0;g--)p++;if(g>=0&&p++,y=y.dblp(p),g<0)break;var A=v[g];d(A!==0),N.type==="affine"?A>0?y=y.mixedAdd(u[A-1>>1]):y=y.mixedAdd(u[-A-1>>1].neg()):A>0?y=y.add(u[A-1>>1]):y=y.add(u[-A-1>>1].neg())}return N.type==="affine"?y.toP():y},"_wnafMul"),b.prototype._wnafMulAdd=r(function(N,p,a,l,u){for(var v=this._wnafT1,y=this._wnafT2,g=this._wnafT3,A=0,w=0;w<l;w++){var R=p[w],C=R._getNAFPoints(N);v[w]=C.wnd,y[w]=C.points}for(var w=l-1;w>=1;w-=2){var L=w-1,V=w;if(v[L]!==1||v[V]!==1){g[L]=z(a[L],v[L],this._bitLength),g[V]=z(a[V],v[V],this._bitLength),A=Math.max(g[L].length,A),A=Math.max(g[V].length,A);continue}var Q=[p[L],null,null,p[V]];p[L].y.cmp(p[V].y)===0?(Q[1]=p[L].add(p[V]),Q[2]=p[L].toJ().mixedAdd(p[V].neg())):p[L].y.cmp(p[V].y.redNeg())===0?(Q[1]=p[L].toJ().mixedAdd(p[V]),Q[2]=p[L].add(p[V].neg())):(Q[1]=p[L].toJ().mixedAdd(p[V]),Q[2]=p[L].toJ().mixedAdd(p[V].neg()));var ie=[-3,-1,-5,-7,0,7,5,1,3],ae=k(a[L],a[V]);A=Math.max(ae[0].length,A),g[L]=new Array(A),g[V]=new Array(A);for(var oe=0;oe<A;oe++){var ge=ae[0][oe]|0,de=ae[1][oe]|0;g[L][oe]=ie[(ge+1)*3+(de+1)],g[V][oe]=0,y[L]=Q}}for(var te=this.jpoint(null,null,null),E=this._wnafT4,w=A;w>=0;w--){for(var i=0;w>=0;){for(var o=!0,oe=0;oe<l;oe++)E[oe]=g[oe][w]|0,E[oe]!==0&&(o=!1);if(!o)break;i++,w--}if(w>=0&&i++,te=te.dblp(i),w<0)break;for(var oe=0;oe<l;oe++){var c=E[oe],R;c!==0&&(c>0?R=y[oe][c-1>>1]:c<0&&(R=y[oe][-c-1>>1].neg()),R.type==="affine"?te=te.mixedAdd(R):te=te.add(R))}}for(var w=0;w<l;w++)y[w]=null;return u?te:te.toP()},"_wnafMulAdd");function m(B,N){this.curve=B,this.type=N,this.precomputed=null}r(m,"BasePoint"),b.BasePoint=m,m.prototype.eq=r(function(){throw new Error("Not implemented")},"eq"),m.prototype.validate=r(function(){return this.curve.validate(this)},"validate"),b.prototype.decodePoint=r(function(N,p){N=Y.toArray(N,p);var a=this.p.byteLength();if((N[0]===4||N[0]===6||N[0]===7)&&N.length-1===2*a){N[0]===6?d(N[N.length-1]%2===0):N[0]===7&&d(N[N.length-1]%2===1);var l=this.point(N.slice(1,1+a),N.slice(1+a,1+2*a));return l}else if((N[0]===2||N[0]===3)&&N.length-1===a)return this.pointFromX(N.slice(1,1+a),N[0]===3);throw new Error("Unknown point format")},"decodePoint"),m.prototype.encodeCompressed=r(function(N){return this.encode(N,!0)},"encodeCompressed"),m.prototype._encode=r(function(N){var p=this.curve.p.byteLength(),a=this.getX().toArray("be",p);return N?[this.getY().isEven()?2:3].concat(a):[4].concat(a,this.getY().toArray("be",p))},"_encode"),m.prototype.encode=r(function(N,p){return Y.encode(this._encode(p),N)},"encode"),m.prototype.precompute=r(function(N){if(this.precomputed)return this;var p={doubles:null,naf:null,beta:null};return p.naf=this._getNAFPoints(8),p.doubles=this._getDoubles(4,N),p.beta=this._getBeta(),this.precomputed=p,this},"precompute"),m.prototype._hasDoubles=r(function(N){if(!this.precomputed)return!1;var p=this.precomputed.doubles;return p?p.points.length>=Math.ceil((N.bitLength()+1)/p.step):!1},"_hasDoubles"),m.prototype._getDoubles=r(function(N,p){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var a=[this],l=this,u=0;u<p;u+=N){for(var v=0;v<N;v++)l=l.dbl();a.push(l)}return{step:N,points:a}},"_getDoubles"),m.prototype._getNAFPoints=r(function(N){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var p=[this],a=(1<<N)-1,l=a===1?null:this.dbl(),u=1;u<a;u++)p[u]=p[u-1].add(l);return{wnd:N,points:p}},"_getNAFPoints"),m.prototype._getBeta=r(function(){return null},"_getBeta"),m.prototype.dblp=r(function(N){for(var p=this,a=0;a<N;a++)p=p.dbl();return p},"dblp")},5104:(re,$,P)=>{"use strict";var _=$;_.base=P(8015),_.short=P(8505)},8505:(re,$,P)=>{"use strict";var _=P(7359),Y=P(3550),z=P(5717),k=P(8015),d=_.assert;function b(N){k.call(this,"short",N),this.a=new Y(N.a,16).toRed(this.red),this.b=new Y(N.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(N),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}r(b,"ShortCurve"),z(b,k),re.exports=b,b.prototype._getEndomorphism=r(function(p){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var a,l;if(p.beta)a=new Y(p.beta,16).toRed(this.red);else{var u=this._getEndoRoots(this.p);a=u[0].cmp(u[1])<0?u[0]:u[1],a=a.toRed(this.red)}if(p.lambda)l=new Y(p.lambda,16);else{var v=this._getEndoRoots(this.n);this.g.mul(v[0]).x.cmp(this.g.x.redMul(a))===0?l=v[0]:(l=v[1],d(this.g.mul(l).x.cmp(this.g.x.redMul(a))===0))}var y;return p.basis?y=p.basis.map(function(g){return{a:new Y(g.a,16),b:new Y(g.b,16)}}):y=this._getEndoBasis(l),{beta:a,lambda:l,basis:y}}},"_getEndomorphism"),b.prototype._getEndoRoots=r(function(p){var a=p===this.p?this.red:Y.mont(p),l=new Y(2).toRed(a).redInvm(),u=l.redNeg(),v=new Y(3).toRed(a).redNeg().redSqrt().redMul(l),y=u.redAdd(v).fromRed(),g=u.redSub(v).fromRed();return[y,g]},"_getEndoRoots"),b.prototype._getEndoBasis=r(function(p){for(var a=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=p,u=this.n.clone(),v=new Y(1),y=new Y(0),g=new Y(0),A=new Y(1),w,R,C,L,V,Q,ie,ae=0,oe,ge;l.cmpn(0)!==0;){var de=u.div(l);oe=u.sub(de.mul(l)),ge=g.sub(de.mul(v));var te=A.sub(de.mul(y));if(!C&&oe.cmp(a)<0)w=ie.neg(),R=v,C=oe.neg(),L=ge;else if(C&&++ae===2)break;ie=oe,u=l,l=oe,g=v,v=ge,A=y,y=te}V=oe.neg(),Q=ge;var E=C.sqr().add(L.sqr()),i=V.sqr().add(Q.sqr());return i.cmp(E)>=0&&(V=w,Q=R),C.negative&&(C=C.neg(),L=L.neg()),V.negative&&(V=V.neg(),Q=Q.neg()),[{a:C,b:L},{a:V,b:Q}]},"_getEndoBasis"),b.prototype._endoSplit=r(function(p){var a=this.endo.basis,l=a[0],u=a[1],v=u.b.mul(p).divRound(this.n),y=l.b.neg().mul(p).divRound(this.n),g=v.mul(l.a),A=y.mul(u.a),w=v.mul(l.b),R=y.mul(u.b),C=p.sub(g).sub(A),L=w.add(R).neg();return{k1:C,k2:L}},"_endoSplit"),b.prototype.pointFromX=r(function(p,a){p=new Y(p,16),p.red||(p=p.toRed(this.red));var l=p.redSqr().redMul(p).redIAdd(p.redMul(this.a)).redIAdd(this.b),u=l.redSqrt();if(u.redSqr().redSub(l).cmp(this.zero)!==0)throw new Error("invalid point");var v=u.fromRed().isOdd();return(a&&!v||!a&&v)&&(u=u.redNeg()),this.point(p,u)},"pointFromX"),b.prototype.validate=r(function(p){if(p.inf)return!0;var a=p.x,l=p.y,u=this.a.redMul(a),v=a.redSqr().redMul(a).redIAdd(u).redIAdd(this.b);return l.redSqr().redISub(v).cmpn(0)===0},"validate"),b.prototype._endoWnafMulAdd=r(function(p,a,l){for(var u=this._endoWnafT1,v=this._endoWnafT2,y=0;y<p.length;y++){var g=this._endoSplit(a[y]),A=p[y],w=A._getBeta();g.k1.negative&&(g.k1.ineg(),A=A.neg(!0)),g.k2.negative&&(g.k2.ineg(),w=w.neg(!0)),u[y*2]=A,u[y*2+1]=w,v[y*2]=g.k1,v[y*2+1]=g.k2}for(var R=this._wnafMulAdd(1,u,v,y*2,l),C=0;C<y*2;C++)u[C]=null,v[C]=null;return R},"_endoWnafMulAdd");function m(N,p,a,l){k.BasePoint.call(this,N,"affine"),p===null&&a===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new Y(p,16),this.y=new Y(a,16),l&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}r(m,"Point"),z(m,k.BasePoint),b.prototype.point=r(function(p,a,l){return new m(this,p,a,l)},"point"),b.prototype.pointFromJSON=r(function(p,a){return m.fromJSON(this,p,a)},"pointFromJSON"),m.prototype._getBeta=r(function(){if(this.curve.endo){var p=this.precomputed;if(p&&p.beta)return p.beta;var a=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(p){var l=this.curve,u=r(function(v){return l.point(v.x.redMul(l.endo.beta),v.y)},"endoMul");p.beta=a,a.precomputed={beta:null,naf:p.naf&&{wnd:p.naf.wnd,points:p.naf.points.map(u)},doubles:p.doubles&&{step:p.doubles.step,points:p.doubles.points.map(u)}}}return a}},"_getBeta"),m.prototype.toJSON=r(function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},"toJSON"),m.fromJSON=r(function(p,a,l){typeof a=="string"&&(a=JSON.parse(a));var u=p.point(a[0],a[1],l);if(!a[2])return u;function v(g){return p.point(g[0],g[1],l)}r(v,"obj2point");var y=a[2];return u.precomputed={beta:null,doubles:y.doubles&&{step:y.doubles.step,points:[u].concat(y.doubles.points.map(v))},naf:y.naf&&{wnd:y.naf.wnd,points:[u].concat(y.naf.points.map(v))}},u},"fromJSON"),m.prototype.inspect=r(function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},"inspect"),m.prototype.isInfinity=r(function(){return this.inf},"isInfinity"),m.prototype.add=r(function(p){if(this.inf)return p;if(p.inf)return this;if(this.eq(p))return this.dbl();if(this.neg().eq(p))return this.curve.point(null,null);if(this.x.cmp(p.x)===0)return this.curve.point(null,null);var a=this.y.redSub(p.y);a.cmpn(0)!==0&&(a=a.redMul(this.x.redSub(p.x).redInvm()));var l=a.redSqr().redISub(this.x).redISub(p.x),u=a.redMul(this.x.redSub(l)).redISub(this.y);return this.curve.point(l,u)},"add"),m.prototype.dbl=r(function(){if(this.inf)return this;var p=this.y.redAdd(this.y);if(p.cmpn(0)===0)return this.curve.point(null,null);var a=this.curve.a,l=this.x.redSqr(),u=p.redInvm(),v=l.redAdd(l).redIAdd(l).redIAdd(a).redMul(u),y=v.redSqr().redISub(this.x.redAdd(this.x)),g=v.redMul(this.x.redSub(y)).redISub(this.y);return this.curve.point(y,g)},"dbl"),m.prototype.getX=r(function(){return this.x.fromRed()},"getX"),m.prototype.getY=r(function(){return this.y.fromRed()},"getY"),m.prototype.mul=r(function(p){return p=new Y(p,16),this.isInfinity()?this:this._hasDoubles(p)?this.curve._fixedNafMul(this,p):this.curve.endo?this.curve._endoWnafMulAdd([this],[p]):this.curve._wnafMul(this,p)},"mul"),m.prototype.mulAdd=r(function(p,a,l){var u=[this,a],v=[p,l];return this.curve.endo?this.curve._endoWnafMulAdd(u,v):this.curve._wnafMulAdd(1,u,v,2)},"mulAdd"),m.prototype.jmulAdd=r(function(p,a,l){var u=[this,a],v=[p,l];return this.curve.endo?this.curve._endoWnafMulAdd(u,v,!0):this.curve._wnafMulAdd(1,u,v,2,!0)},"jmulAdd"),m.prototype.eq=r(function(p){return this===p||this.inf===p.inf&&(this.inf||this.x.cmp(p.x)===0&&this.y.cmp(p.y)===0)},"eq"),m.prototype.neg=r(function(p){if(this.inf)return this;var a=this.curve.point(this.x,this.y.redNeg());if(p&&this.precomputed){var l=this.precomputed,u=r(function(v){return v.neg()},"negate");a.precomputed={naf:l.naf&&{wnd:l.naf.wnd,points:l.naf.points.map(u)},doubles:l.doubles&&{step:l.doubles.step,points:l.doubles.points.map(u)}}}return a},"neg"),m.prototype.toJ=r(function(){if(this.inf)return this.curve.jpoint(null,null,null);var p=this.curve.jpoint(this.x,this.y,this.curve.one);return p},"toJ");function B(N,p,a,l){k.BasePoint.call(this,N,"jacobian"),p===null&&a===null&&l===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Y(0)):(this.x=new Y(p,16),this.y=new Y(a,16),this.z=new Y(l,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}r(B,"JPoint"),z(B,k.BasePoint),b.prototype.jpoint=r(function(p,a,l){return new B(this,p,a,l)},"jpoint"),B.prototype.toP=r(function(){if(this.isInfinity())return this.curve.point(null,null);var p=this.z.redInvm(),a=p.redSqr(),l=this.x.redMul(a),u=this.y.redMul(a).redMul(p);return this.curve.point(l,u)},"toP"),B.prototype.neg=r(function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},"neg"),B.prototype.add=r(function(p){if(this.isInfinity())return p;if(p.isInfinity())return this;var a=p.z.redSqr(),l=this.z.redSqr(),u=this.x.redMul(a),v=p.x.redMul(l),y=this.y.redMul(a.redMul(p.z)),g=p.y.redMul(l.redMul(this.z)),A=u.redSub(v),w=y.redSub(g);if(A.cmpn(0)===0)return w.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var R=A.redSqr(),C=R.redMul(A),L=u.redMul(R),V=w.redSqr().redIAdd(C).redISub(L).redISub(L),Q=w.redMul(L.redISub(V)).redISub(y.redMul(C)),ie=this.z.redMul(p.z).redMul(A);return this.curve.jpoint(V,Q,ie)},"add"),B.prototype.mixedAdd=r(function(p){if(this.isInfinity())return p.toJ();if(p.isInfinity())return this;var a=this.z.redSqr(),l=this.x,u=p.x.redMul(a),v=this.y,y=p.y.redMul(a).redMul(this.z),g=l.redSub(u),A=v.redSub(y);if(g.cmpn(0)===0)return A.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var w=g.redSqr(),R=w.redMul(g),C=l.redMul(w),L=A.redSqr().redIAdd(R).redISub(C).redISub(C),V=A.redMul(C.redISub(L)).redISub(v.redMul(R)),Q=this.z.redMul(g);return this.curve.jpoint(L,V,Q)},"mixedAdd"),B.prototype.dblp=r(function(p){if(p===0)return this;if(this.isInfinity())return this;if(!p)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var a=this,l=0;l<p;l++)a=a.dbl();return a}for(var u=this.curve.a,v=this.curve.tinv,y=this.x,g=this.y,A=this.z,w=A.redSqr().redSqr(),R=g.redAdd(g),l=0;l<p;l++){var C=y.redSqr(),L=R.redSqr(),V=L.redSqr(),Q=C.redAdd(C).redIAdd(C).redIAdd(u.redMul(w)),ie=y.redMul(L),ae=Q.redSqr().redISub(ie.redAdd(ie)),oe=ie.redISub(ae),ge=Q.redMul(oe);ge=ge.redIAdd(ge).redISub(V);var de=R.redMul(A);l+1<p&&(w=w.redMul(V)),y=ae,A=de,R=ge}return this.curve.jpoint(y,R.redMul(v),A)},"dblp"),B.prototype.dbl=r(function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},"dbl"),B.prototype._zeroDbl=r(function(){var p,a,l;if(this.zOne){var u=this.x.redSqr(),v=this.y.redSqr(),y=v.redSqr(),g=this.x.redAdd(v).redSqr().redISub(u).redISub(y);g=g.redIAdd(g);var A=u.redAdd(u).redIAdd(u),w=A.redSqr().redISub(g).redISub(g),R=y.redIAdd(y);R=R.redIAdd(R),R=R.redIAdd(R),p=w,a=A.redMul(g.redISub(w)).redISub(R),l=this.y.redAdd(this.y)}else{var C=this.x.redSqr(),L=this.y.redSqr(),V=L.redSqr(),Q=this.x.redAdd(L).redSqr().redISub(C).redISub(V);Q=Q.redIAdd(Q);var ie=C.redAdd(C).redIAdd(C),ae=ie.redSqr(),oe=V.redIAdd(V);oe=oe.redIAdd(oe),oe=oe.redIAdd(oe),p=ae.redISub(Q).redISub(Q),a=ie.redMul(Q.redISub(p)).redISub(oe),l=this.y.redMul(this.z),l=l.redIAdd(l)}return this.curve.jpoint(p,a,l)},"_zeroDbl"),B.prototype._threeDbl=r(function(){var p,a,l;if(this.zOne){var u=this.x.redSqr(),v=this.y.redSqr(),y=v.redSqr(),g=this.x.redAdd(v).redSqr().redISub(u).redISub(y);g=g.redIAdd(g);var A=u.redAdd(u).redIAdd(u).redIAdd(this.curve.a),w=A.redSqr().redISub(g).redISub(g);p=w;var R=y.redIAdd(y);R=R.redIAdd(R),R=R.redIAdd(R),a=A.redMul(g.redISub(w)).redISub(R),l=this.y.redAdd(this.y)}else{var C=this.z.redSqr(),L=this.y.redSqr(),V=this.x.redMul(L),Q=this.x.redSub(C).redMul(this.x.redAdd(C));Q=Q.redAdd(Q).redIAdd(Q);var ie=V.redIAdd(V);ie=ie.redIAdd(ie);var ae=ie.redAdd(ie);p=Q.redSqr().redISub(ae),l=this.y.redAdd(this.z).redSqr().redISub(L).redISub(C);var oe=L.redSqr();oe=oe.redIAdd(oe),oe=oe.redIAdd(oe),oe=oe.redIAdd(oe),a=Q.redMul(ie.redISub(p)).redISub(oe)}return this.curve.jpoint(p,a,l)},"_threeDbl"),B.prototype._dbl=r(function(){var p=this.curve.a,a=this.x,l=this.y,u=this.z,v=u.redSqr().redSqr(),y=a.redSqr(),g=l.redSqr(),A=y.redAdd(y).redIAdd(y).redIAdd(p.redMul(v)),w=a.redAdd(a);w=w.redIAdd(w);var R=w.redMul(g),C=A.redSqr().redISub(R.redAdd(R)),L=R.redISub(C),V=g.redSqr();V=V.redIAdd(V),V=V.redIAdd(V),V=V.redIAdd(V);var Q=A.redMul(L).redISub(V),ie=l.redAdd(l).redMul(u);return this.curve.jpoint(C,Q,ie)},"_dbl"),B.prototype.trpl=r(function(){if(!this.curve.zeroA)return this.dbl().add(this);var p=this.x.redSqr(),a=this.y.redSqr(),l=this.z.redSqr(),u=a.redSqr(),v=p.redAdd(p).redIAdd(p),y=v.redSqr(),g=this.x.redAdd(a).redSqr().redISub(p).redISub(u);g=g.redIAdd(g),g=g.redAdd(g).redIAdd(g),g=g.redISub(y);var A=g.redSqr(),w=u.redIAdd(u);w=w.redIAdd(w),w=w.redIAdd(w),w=w.redIAdd(w);var R=v.redIAdd(g).redSqr().redISub(y).redISub(A).redISub(w),C=a.redMul(R);C=C.redIAdd(C),C=C.redIAdd(C);var L=this.x.redMul(A).redISub(C);L=L.redIAdd(L),L=L.redIAdd(L);var V=this.y.redMul(R.redMul(w.redISub(R)).redISub(g.redMul(A)));V=V.redIAdd(V),V=V.redIAdd(V),V=V.redIAdd(V);var Q=this.z.redAdd(g).redSqr().redISub(l).redISub(A);return this.curve.jpoint(L,V,Q)},"trpl"),B.prototype.mul=r(function(p,a){return p=new Y(p,a),this.curve._wnafMul(this,p)},"mul"),B.prototype.eq=r(function(p){if(p.type==="affine")return this.eq(p.toJ());if(this===p)return!0;var a=this.z.redSqr(),l=p.z.redSqr();if(this.x.redMul(l).redISub(p.x.redMul(a)).cmpn(0)!==0)return!1;var u=a.redMul(this.z),v=l.redMul(p.z);return this.y.redMul(v).redISub(p.y.redMul(u)).cmpn(0)===0},"eq"),B.prototype.eqXToP=r(function(p){var a=this.z.redSqr(),l=p.toRed(this.curve.red).redMul(a);if(this.x.cmp(l)===0)return!0;for(var u=p.clone(),v=this.curve.redN.redMul(a);;){if(u.iadd(this.curve.n),u.cmp(this.curve.p)>=0)return!1;if(l.redIAdd(v),this.x.cmp(l)===0)return!0}},"eqXToP"),B.prototype.inspect=r(function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},"inspect"),B.prototype.isInfinity=r(function(){return this.z.cmpn(0)===0},"isInfinity")},4626:(re,$,P)=>{"use strict";var _=$,Y=P(3715),z=P(5104),k=P(7359),d=k.assert;function b(N){if(N.type!=="short")throw new Error("invalid curve type");this.curve=new z.short(N),this.g=this.curve.g,this.n=this.curve.n,this.hash=N.hash,d(this.g.validate(),"Invalid curve"),d(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}r(b,"PresetCurve"),_.PresetCurve=b;function m(N,p){Object.defineProperty(_,N,{configurable:!0,enumerable:!0,get:function(){var a=new b(p);return Object.defineProperty(_,N,{configurable:!0,enumerable:!0,value:a}),a}})}r(m,"defineCurve");var B;try{B=P(2059)}catch{B=void 0}m("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:Y.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",B]})},5630:(re,$,P)=>{"use strict";var _=P(3550),Y=P(2156),z=P(7359),k=P(4626),d=P(9931),b=z.assert,m=P(1119),B=P(1911);function N(p){if(!(this instanceof N))return new N(p);typeof p=="string"&&(b(k.hasOwnProperty(p),"Unknown curve "+p),p=k[p]),p instanceof k.PresetCurve&&(p={curve:p}),this.curve=p.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=p.curve.g,this.g.precompute(p.curve.n.bitLength()+1),this.hash=p.hash||p.curve.hash}r(N,"EC"),re.exports=N,N.prototype.keyPair=r(function(a){return new m(this,a)},"keyPair"),N.prototype.keyFromPrivate=r(function(a,l){return m.fromPrivate(this,a,l)},"keyFromPrivate"),N.prototype.keyFromPublic=r(function(a,l){return m.fromPublic(this,a,l)},"keyFromPublic"),N.prototype.genKeyPair=r(function(a){a||(a={});var l=new Y({hash:this.hash,pers:a.pers,persEnc:a.persEnc||"utf8",entropy:a.entropy||d(this.hash.hmacStrength),entropyEnc:a.entropy&&a.entropyEnc||"utf8",nonce:this.n.toArray()}),u=this.n.byteLength(),v=this.n.sub(new _(2));do{var y=new _(l.generate(u));if(!(y.cmp(v)>0))return y.iaddn(1),this.keyFromPrivate(y)}while(!0)},"genKeyPair"),N.prototype._truncateToN=r(function(a,l){var u=a.byteLength()*8-this.n.bitLength();return u>0&&(a=a.ushrn(u)),!l&&a.cmp(this.n)>=0?a.sub(this.n):a},"truncateToN"),N.prototype.sign=r(function(a,l,u,v){typeof u=="object"&&(v=u,u=null),v||(v={}),l=this.keyFromPrivate(l,u),a=this._truncateToN(new _(a,16));for(var y=this.n.byteLength(),g=l.getPrivate().toArray("be",y),A=a.toArray("be",y),w=new Y({hash:this.hash,entropy:g,nonce:A,pers:v.pers,persEnc:v.persEnc||"utf8"}),R=this.n.sub(new _(1)),C=0;;C++){var L=v.k?v.k(C):new _(w.generate(this.n.byteLength()));if(L=this._truncateToN(L,!0),!(L.cmpn(1)<=0||L.cmp(R)>=0)){var V=this.g.mul(L);if(!V.isInfinity()){var Q=V.getX(),ie=Q.umod(this.n);if(ie.cmpn(0)!==0){var ae=L.invm(this.n).mul(ie.mul(l.getPrivate()).iadd(a));if(ae=ae.umod(this.n),ae.cmpn(0)!==0){var oe=(V.getY().isOdd()?1:0)|(Q.cmp(ie)!==0?2:0);return v.canonical&&ae.cmp(this.nh)>0&&(ae=this.n.sub(ae),oe^=1),new B({r:ie,s:ae,recoveryParam:oe})}}}}}},"sign"),N.prototype.verify=r(function(a,l,u,v){a=this._truncateToN(new _(a,16)),u=this.keyFromPublic(u,v),l=new B(l,"hex");var y=l.r,g=l.s;if(y.cmpn(1)<0||y.cmp(this.n)>=0||g.cmpn(1)<0||g.cmp(this.n)>=0)return!1;var A=g.invm(this.n),w=A.mul(a).umod(this.n),R=A.mul(y).umod(this.n);if(!this.curve._maxwellTrick){var C=this.g.mulAdd(w,u.getPublic(),R);return C.isInfinity()?!1:C.getX().umod(this.n).cmp(y)===0}var C=this.g.jmulAdd(w,u.getPublic(),R);return C.isInfinity()?!1:C.eqXToP(y)},"verify"),N.prototype.recoverPubKey=function(p,a,l,u){b((3&l)===l,"The recovery param is more than two bits"),a=new B(a,u);var v=this.n,y=new _(p),g=a.r,A=a.s,w=l&1,R=l>>1;if(g.cmp(this.curve.p.umod(this.curve.n))>=0&&R)throw new Error("Unable to find sencond key candinate");R?g=this.curve.pointFromX(g.add(this.curve.n),w):g=this.curve.pointFromX(g,w);var C=a.r.invm(v),L=v.sub(y).mul(C).umod(v),V=A.mul(C).umod(v);return this.g.mulAdd(L,g,V)},N.prototype.getKeyRecoveryParam=function(p,a,l,u){if(a=new B(a,u),a.recoveryParam!==null)return a.recoveryParam;for(var v=0;v<4;v++){var y;try{y=this.recoverPubKey(p,a,v)}catch{continue}if(y.eq(l))return v}throw new Error("Unable to find valid recovery factor")}},1119:(re,$,P)=>{"use strict";var _=P(3550),Y=P(7359),z=Y.assert;function k(d,b){this.ec=d,this.priv=null,this.pub=null,b.priv&&this._importPrivate(b.priv,b.privEnc),b.pub&&this._importPublic(b.pub,b.pubEnc)}r(k,"KeyPair"),re.exports=k,k.fromPublic=r(function(b,m,B){return m instanceof k?m:new k(b,{pub:m,pubEnc:B})},"fromPublic"),k.fromPrivate=r(function(b,m,B){return m instanceof k?m:new k(b,{priv:m,privEnc:B})},"fromPrivate"),k.prototype.validate=r(function(){var b=this.getPublic();return b.isInfinity()?{result:!1,reason:"Invalid public key"}:b.validate()?b.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},"validate"),k.prototype.getPublic=r(function(b,m){return typeof b=="string"&&(m=b,b=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),m?this.pub.encode(m,b):this.pub},"getPublic"),k.prototype.getPrivate=r(function(b){return b==="hex"?this.priv.toString(16,2):this.priv},"getPrivate"),k.prototype._importPrivate=r(function(b,m){this.priv=new _(b,m||16),this.priv=this.priv.umod(this.ec.curve.n)},"_importPrivate"),k.prototype._importPublic=r(function(b,m){if(b.x||b.y){this.ec.curve.type==="mont"?z(b.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&z(b.x&&b.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(b.x,b.y);return}this.pub=this.ec.curve.decodePoint(b,m)},"_importPublic"),k.prototype.derive=r(function(b){return b.mul(this.priv).getX()},"derive"),k.prototype.sign=r(function(b,m,B){return this.ec.sign(b,this,m,B)},"sign"),k.prototype.verify=r(function(b,m){return this.ec.verify(b,m,this)},"verify"),k.prototype.inspect=r(function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"},"inspect")},1911:(re,$,P)=>{"use strict";var _=P(3550),Y=P(7359),z=Y.assert;function k(N,p){if(N instanceof k)return N;this._importDER(N,p)||(z(N.r&&N.s,"Signature without r or s"),this.r=new _(N.r,16),this.s=new _(N.s,16),N.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=N.recoveryParam)}r(k,"Signature"),re.exports=k;function d(){this.place=0}r(d,"Position");function b(N,p){var a=N[p.place++];if(!(a&128))return a;for(var l=a&15,u=0,v=0,y=p.place;v<l;v++,y++)u<<=8,u|=N[y];return p.place=y,u}r(b,"getLength");function m(N){for(var p=0,a=N.length-1;!N[p]&&!(N[p+1]&128)&&p<a;)p++;return p===0?N:N.slice(p)}r(m,"rmPadding"),k.prototype._importDER=r(function(p,a){p=Y.toArray(p,a);var l=new d;if(p[l.place++]!==48)return!1;var u=b(p,l);if(u+l.place!==p.length||p[l.place++]!==2)return!1;var v=b(p,l),y=p.slice(l.place,v+l.place);if(l.place+=v,p[l.place++]!==2)return!1;var g=b(p,l);if(p.length!==g+l.place)return!1;var A=p.slice(l.place,g+l.place);return y[0]===0&&y[1]&128&&(y=y.slice(1)),A[0]===0&&A[1]&128&&(A=A.slice(1)),this.r=new _(y),this.s=new _(A),this.recoveryParam=null,!0},"_importDER");function B(N,p){if(p<128){N.push(p);return}var a=1+(Math.log(p)/Math.LN2>>>3);for(N.push(a|128);--a;)N.push(p>>>(a<<3)&255);N.push(p)}r(B,"constructLength"),k.prototype.toDER=r(function(p){var a=this.r.toArray(),l=this.s.toArray();for(a[0]&128&&(a=[0].concat(a)),l[0]&128&&(l=[0].concat(l)),a=m(a),l=m(l);!l[0]&&!(l[1]&128);)l=l.slice(1);var u=[2];B(u,a.length),u=u.concat(a),u.push(2),B(u,l.length);var v=u.concat(l),y=[48];return B(y,v.length),y=y.concat(v),Y.encode(y,p)},"toDER")},2059:re=>{re.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},7359:(re,$,P)=>{"use strict";var _=$,Y=P(3550),z=P(9746),k=P(4504);_.assert=z,_.toArray=k.toArray,_.zero2=k.zero2,_.toHex=k.toHex,_.encode=k.encode;function d(p,a,l){var u=new Array(Math.max(p.bitLength(),l)+1);u.fill(0);for(var v=1<<a+1,y=p.clone(),g=0;g<u.length;g++){var A,w=y.andln(v-1);y.isOdd()?(w>(v>>1)-1?A=(v>>1)-w:A=w,y.isubn(A)):A=0,u[g]=A,y.iushrn(1)}return u}r(d,"getNAF"),_.getNAF=d;function b(p,a){var l=[[],[]];p=p.clone(),a=a.clone();for(var u=0,v=0;p.cmpn(-u)>0||a.cmpn(-v)>0;){var y=p.andln(3)+u&3,g=a.andln(3)+v&3;y===3&&(y=-1),g===3&&(g=-1);var A;if(!(y&1))A=0;else{var w=p.andln(7)+u&7;(w===3||w===5)&&g===2?A=-y:A=y}l[0].push(A);var R;if(!(g&1))R=0;else{var w=a.andln(7)+v&7;(w===3||w===5)&&y===2?R=-g:R=g}l[1].push(R),2*u===A+1&&(u=1-u),2*v===R+1&&(v=1-v),p.iushrn(1),a.iushrn(1)}return l}r(b,"getJSF"),_.getJSF=b;function m(p,a,l){var u="_"+a;p.prototype[a]=r(function(){return this[u]!==void 0?this[u]:this[u]=l.call(this)},"cachedProperty")}r(m,"cachedProperty"),_.cachedProperty=m;function B(p){return typeof p=="string"?_.toArray(p,"hex"):p}r(B,"parseBytes"),_.parseBytes=B;function N(p){return new Y(p,"hex","le")}r(N,"intFromLE"),_.intFromLE=N},3550:function(re,$,P){re=P.nmd(re),function(_,Y){"use strict";function z(E,i){if(!E)throw new Error(i||"Assertion failed")}r(z,"assert");function k(E,i){E.super_=i;var o=r(function(){},"TempCtor");o.prototype=i.prototype,E.prototype=new o,E.prototype.constructor=E}r(k,"inherits");function d(E,i,o){if(d.isBN(E))return E;this.negative=0,this.words=null,this.length=0,this.red=null,E!==null&&((i==="le"||i==="be")&&(o=i,i=10),this._init(E||0,i||10,o||"be"))}r(d,"BN"),typeof _=="object"?_.exports=d:Y.BN=d,d.BN=d,d.wordSize=26;var b;try{typeof window<"u"&&typeof window.Buffer<"u"?b=window.Buffer:b=P(6601).Buffer}catch{}d.isBN=r(function(i){return i instanceof d?!0:i!==null&&typeof i=="object"&&i.constructor.wordSize===d.wordSize&&Array.isArray(i.words)},"isBN"),d.max=r(function(i,o){return i.cmp(o)>0?i:o},"max"),d.min=r(function(i,o){return i.cmp(o)<0?i:o},"min"),d.prototype._init=r(function(i,o,c){if(typeof i=="number")return this._initNumber(i,o,c);if(typeof i=="object")return this._initArray(i,o,c);o==="hex"&&(o=16),z(o===(o|0)&&o>=2&&o<=36),i=i.toString().replace(/\s+/g,"");var S=0;i[0]==="-"&&(S++,this.negative=1),S<i.length&&(o===16?this._parseHex(i,S,c):(this._parseBase(i,o,S),c==="le"&&this._initArray(this.toArray(),o,c)))},"init"),d.prototype._initNumber=r(function(i,o,c){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[i&67108863],this.length=1):i<4503599627370496?(this.words=[i&67108863,i/67108864&67108863],this.length=2):(z(i<9007199254740992),this.words=[i&67108863,i/67108864&67108863,1],this.length=3),c==="le"&&this._initArray(this.toArray(),o,c)},"_initNumber"),d.prototype._initArray=r(function(i,o,c){if(z(typeof i.length=="number"),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var S=0;S<this.length;S++)this.words[S]=0;var M,G,J=0;if(c==="be")for(S=i.length-1,M=0;S>=0;S-=3)G=i[S]|i[S-1]<<8|i[S-2]<<16,this.words[M]|=G<<J&67108863,this.words[M+1]=G>>>26-J&67108863,J+=24,J>=26&&(J-=26,M++);else if(c==="le")for(S=0,M=0;S<i.length;S+=3)G=i[S]|i[S+1]<<8|i[S+2]<<16,this.words[M]|=G<<J&67108863,this.words[M+1]=G>>>26-J&67108863,J+=24,J>=26&&(J-=26,M++);return this._strip()},"_initArray");function m(E,i){var o=E.charCodeAt(i);if(o>=48&&o<=57)return o-48;if(o>=65&&o<=70)return o-55;if(o>=97&&o<=102)return o-87;z(!1,"Invalid character in "+E)}r(m,"parseHex4Bits");function B(E,i,o){var c=m(E,o);return o-1>=i&&(c|=m(E,o-1)<<4),c}r(B,"parseHexByte"),d.prototype._parseHex=r(function(i,o,c){this.length=Math.ceil((i.length-o)/6),this.words=new Array(this.length);for(var S=0;S<this.length;S++)this.words[S]=0;var M=0,G=0,J;if(c==="be")for(S=i.length-1;S>=o;S-=2)J=B(i,o,S)<<M,this.words[G]|=J&67108863,M>=18?(M-=18,G+=1,this.words[G]|=J>>>26):M+=8;else{var F=i.length-o;for(S=F%2===0?o+1:o;S<i.length;S+=2)J=B(i,o,S)<<M,this.words[G]|=J&67108863,M>=18?(M-=18,G+=1,this.words[G]|=J>>>26):M+=8}this._strip()},"_parseHex");function N(E,i,o,c){for(var S=0,M=0,G=Math.min(E.length,o),J=i;J<G;J++){var F=E.charCodeAt(J)-48;S*=c,F>=49?M=F-49+10:F>=17?M=F-17+10:M=F,z(F>=0&&M<c,"Invalid character"),S+=M}return S}r(N,"parseBase"),d.prototype._parseBase=r(function(i,o,c){this.words=[0],this.length=1;for(var S=0,M=1;M<=67108863;M*=o)S++;S--,M=M/o|0;for(var G=i.length-c,J=G%S,F=Math.min(G,G-J)+c,f=0,H=c;H<F;H+=S)f=N(i,H,H+S,o),this.imuln(M),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);if(J!==0){var xe=1;for(f=N(i,H,i.length,o),H=0;H<J;H++)xe*=o;this.imuln(xe),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f)}this._strip()},"_parseBase"),d.prototype.copy=r(function(i){i.words=new Array(this.length);for(var o=0;o<this.length;o++)i.words[o]=this.words[o];i.length=this.length,i.negative=this.negative,i.red=this.red},"copy");function p(E,i){E.words=i.words,E.length=i.length,E.negative=i.negative,E.red=i.red}if(r(p,"move"),d.prototype._move=r(function(i){p(i,this)},"_move"),d.prototype.clone=r(function(){var i=new d(null);return this.copy(i),i},"clone"),d.prototype._expand=r(function(i){for(;this.length<i;)this.words[this.length++]=0;return this},"_expand"),d.prototype._strip=r(function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},"strip"),d.prototype._normSign=r(function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},"_normSign"),typeof Symbol<"u"&&typeof Symbol.for=="function")try{d.prototype[Symbol.for("nodejs.util.inspect.custom")]=a}catch{d.prototype.inspect=a}else d.prototype.inspect=a;function a(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}r(a,"inspect");var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],v=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];d.prototype.toString=r(function(i,o){i=i||10,o=o|0||1;var c;if(i===16||i==="hex"){c="";for(var S=0,M=0,G=0;G<this.length;G++){var J=this.words[G],F=((J<<S|M)&16777215).toString(16);M=J>>>24-S&16777215,S+=2,S>=26&&(S-=26,G--),M!==0||G!==this.length-1?c=l[6-F.length]+F+c:c=F+c}for(M!==0&&(c=M.toString(16)+c);c.length%o!==0;)c="0"+c;return this.negative!==0&&(c="-"+c),c}if(i===(i|0)&&i>=2&&i<=36){var f=u[i],H=v[i];c="";var xe=this.clone();for(xe.negative=0;!xe.isZero();){var ye=xe.modrn(H).toString(i);xe=xe.idivn(H),xe.isZero()?c=ye+c:c=l[f-ye.length]+ye+c}for(this.isZero()&&(c="0"+c);c.length%o!==0;)c="0"+c;return this.negative!==0&&(c="-"+c),c}z(!1,"Base should be between 2 and 36")},"toString"),d.prototype.toNumber=r(function(){var i=this.words[0];return this.length===2?i+=this.words[1]*67108864:this.length===3&&this.words[2]===1?i+=4503599627370496+this.words[1]*67108864:this.length>2&&z(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-i:i},"toNumber"),d.prototype.toJSON=r(function(){return this.toString(16,2)},"toJSON"),b&&(d.prototype.toBuffer=r(function(i,o){return this.toArrayLike(b,i,o)},"toBuffer")),d.prototype.toArray=r(function(i,o){return this.toArrayLike(Array,i,o)},"toArray");var y=r(function(i,o){return i.allocUnsafe?i.allocUnsafe(o):new i(o)},"allocate");d.prototype.toArrayLike=r(function(i,o,c){this._strip();var S=this.byteLength(),M=c||Math.max(1,S);z(S<=M,"byte array longer than desired length"),z(M>0,"Requested array length <= 0");var G=y(i,M),J=o==="le"?"LE":"BE";return this["_toArrayLike"+J](G,S),G},"toArrayLike"),d.prototype._toArrayLikeLE=r(function(i,o){for(var c=0,S=0,M=0,G=0;M<this.length;M++){var J=this.words[M]<<G|S;i[c++]=J&255,c<i.length&&(i[c++]=J>>8&255),c<i.length&&(i[c++]=J>>16&255),G===6?(c<i.length&&(i[c++]=J>>24&255),S=0,G=0):(S=J>>>24,G+=2)}if(c<i.length)for(i[c++]=S;c<i.length;)i[c++]=0},"_toArrayLikeLE"),d.prototype._toArrayLikeBE=r(function(i,o){for(var c=i.length-1,S=0,M=0,G=0;M<this.length;M++){var J=this.words[M]<<G|S;i[c--]=J&255,c>=0&&(i[c--]=J>>8&255),c>=0&&(i[c--]=J>>16&255),G===6?(c>=0&&(i[c--]=J>>24&255),S=0,G=0):(S=J>>>24,G+=2)}if(c>=0)for(i[c--]=S;c>=0;)i[c--]=0},"_toArrayLikeBE"),Math.clz32?d.prototype._countBits=r(function(i){return 32-Math.clz32(i)},"_countBits"):d.prototype._countBits=r(function(i){var o=i,c=0;return o>=4096&&(c+=13,o>>>=13),o>=64&&(c+=7,o>>>=7),o>=8&&(c+=4,o>>>=4),o>=2&&(c+=2,o>>>=2),c+o},"_countBits"),d.prototype._zeroBits=r(function(i){if(i===0)return 26;var o=i,c=0;return o&8191||(c+=13,o>>>=13),o&127||(c+=7,o>>>=7),o&15||(c+=4,o>>>=4),o&3||(c+=2,o>>>=2),o&1||c++,c},"_zeroBits"),d.prototype.bitLength=r(function(){var i=this.words[this.length-1],o=this._countBits(i);return(this.length-1)*26+o},"bitLength");function g(E){for(var i=new Array(E.bitLength()),o=0;o<i.length;o++){var c=o/26|0,S=o%26;i[o]=E.words[c]>>>S&1}return i}r(g,"toBitArray"),d.prototype.zeroBits=r(function(){if(this.isZero())return 0;for(var i=0,o=0;o<this.length;o++){var c=this._zeroBits(this.words[o]);if(i+=c,c!==26)break}return i},"zeroBits"),d.prototype.byteLength=r(function(){return Math.ceil(this.bitLength()/8)},"byteLength"),d.prototype.toTwos=r(function(i){return this.negative!==0?this.abs().inotn(i).iaddn(1):this.clone()},"toTwos"),d.prototype.fromTwos=r(function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},"fromTwos"),d.prototype.isNeg=r(function(){return this.negative!==0},"isNeg"),d.prototype.neg=r(function(){return this.clone().ineg()},"neg"),d.prototype.ineg=r(function(){return this.isZero()||(this.negative^=1),this},"ineg"),d.prototype.iuor=r(function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var o=0;o<i.length;o++)this.words[o]=this.words[o]|i.words[o];return this._strip()},"iuor"),d.prototype.ior=r(function(i){return z((this.negative|i.negative)===0),this.iuor(i)},"ior"),d.prototype.or=r(function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},"or"),d.prototype.uor=r(function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},"uor"),d.prototype.iuand=r(function(i){var o;this.length>i.length?o=i:o=this;for(var c=0;c<o.length;c++)this.words[c]=this.words[c]&i.words[c];return this.length=o.length,this._strip()},"iuand"),d.prototype.iand=r(function(i){return z((this.negative|i.negative)===0),this.iuand(i)},"iand"),d.prototype.and=r(function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},"and"),d.prototype.uand=r(function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},"uand"),d.prototype.iuxor=r(function(i){var o,c;this.length>i.length?(o=this,c=i):(o=i,c=this);for(var S=0;S<c.length;S++)this.words[S]=o.words[S]^c.words[S];if(this!==o)for(;S<o.length;S++)this.words[S]=o.words[S];return this.length=o.length,this._strip()},"iuxor"),d.prototype.ixor=r(function(i){return z((this.negative|i.negative)===0),this.iuxor(i)},"ixor"),d.prototype.xor=r(function(i){return this.length>i.length?this.clone().ixor(i):i.clone().ixor(this)},"xor"),d.prototype.uxor=r(function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},"uxor"),d.prototype.inotn=r(function(i){z(typeof i=="number"&&i>=0);var o=Math.ceil(i/26)|0,c=i%26;this._expand(o),c>0&&o--;for(var S=0;S<o;S++)this.words[S]=~this.words[S]&67108863;return c>0&&(this.words[S]=~this.words[S]&67108863>>26-c),this._strip()},"inotn"),d.prototype.notn=r(function(i){return this.clone().inotn(i)},"notn"),d.prototype.setn=r(function(i,o){z(typeof i=="number"&&i>=0);var c=i/26|0,S=i%26;return this._expand(c+1),o?this.words[c]=this.words[c]|1<<S:this.words[c]=this.words[c]&~(1<<S),this._strip()},"setn"),d.prototype.iadd=r(function(i){var o;if(this.negative!==0&&i.negative===0)return this.negative=0,o=this.isub(i),this.negative^=1,this._normSign();if(this.negative===0&&i.negative!==0)return i.negative=0,o=this.isub(i),i.negative=1,o._normSign();var c,S;this.length>i.length?(c=this,S=i):(c=i,S=this);for(var M=0,G=0;G<S.length;G++)o=(c.words[G]|0)+(S.words[G]|0)+M,this.words[G]=o&67108863,M=o>>>26;for(;M!==0&&G<c.length;G++)o=(c.words[G]|0)+M,this.words[G]=o&67108863,M=o>>>26;if(this.length=c.length,M!==0)this.words[this.length]=M,this.length++;else if(c!==this)for(;G<c.length;G++)this.words[G]=c.words[G];return this},"iadd"),d.prototype.add=r(function(i){var o;return i.negative!==0&&this.negative===0?(i.negative=0,o=this.sub(i),i.negative^=1,o):i.negative===0&&this.negative!==0?(this.negative=0,o=i.sub(this),this.negative=1,o):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},"add"),d.prototype.isub=r(function(i){if(i.negative!==0){i.negative=0;var o=this.iadd(i);return i.negative=1,o._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var c=this.cmp(i);if(c===0)return this.negative=0,this.length=1,this.words[0]=0,this;var S,M;c>0?(S=this,M=i):(S=i,M=this);for(var G=0,J=0;J<M.length;J++)o=(S.words[J]|0)-(M.words[J]|0)+G,G=o>>26,this.words[J]=o&67108863;for(;G!==0&&J<S.length;J++)o=(S.words[J]|0)+G,G=o>>26,this.words[J]=o&67108863;if(G===0&&J<S.length&&S!==this)for(;J<S.length;J++)this.words[J]=S.words[J];return this.length=Math.max(this.length,J),S!==this&&(this.negative=1),this._strip()},"isub"),d.prototype.sub=r(function(i){return this.clone().isub(i)},"sub");function A(E,i,o){o.negative=i.negative^E.negative;var c=E.length+i.length|0;o.length=c,c=c-1|0;var S=E.words[0]|0,M=i.words[0]|0,G=S*M,J=G&67108863,F=G/67108864|0;o.words[0]=J;for(var f=1;f<c;f++){for(var H=F>>>26,xe=F&67108863,ye=Math.min(f,i.length-1),Ee=Math.max(0,f-E.length+1);Ee<=ye;Ee++){var U=f-Ee|0;S=E.words[U]|0,M=i.words[Ee]|0,G=S*M+xe,H+=G/67108864|0,xe=G&67108863}o.words[f]=xe|0,F=H|0}return F!==0?o.words[f]=F|0:o.length--,o._strip()}r(A,"smallMulTo");var w=r(function(i,o,c){var S=i.words,M=o.words,G=c.words,J=0,F,f,H,xe=S[0]|0,ye=xe&8191,Ee=xe>>>13,U=S[1]|0,X=U&8191,Z=U>>>13,ue=S[2]|0,ce=ue&8191,Se=ue>>>13,K=S[3]|0,j=K&8191,fe=K>>>13,ve=S[4]|0,Re=ve&8191,_e=ve>>>13,Me=S[5]|0,me=Me&8191,Oe=Me>>>13,Ae=S[6]|0,De=Ae&8191,Te=Ae>>>13,Ze=S[7]|0,I=Ze&8191,s=Ze>>>13,h=S[8]|0,D=h&8191,q=h>>>13,se=S[9]|0,ne=se&8191,Ie=se>>>13,Ue=M[0]|0,Ce=Ue&8191,Ne=Ue>>>13,Ve=M[1]|0,We=Ve&8191,st=Ve>>>13,gt=M[2]|0,Qe=gt&8191,Xe=gt>>>13,Tt=M[3]|0,He=Tt&8191,rt=Tt>>>13,Ye=M[4]|0,ze=Ye&8191,Je=Ye>>>13,je=M[5]|0,at=je&8191,et=je>>>13,dt=M[6]|0,it=dt&8191,he=dt>>>13,Bt=M[7]|0,tt=Bt&8191,nt=Bt>>>13,Ot=M[8]|0,ot=Ot&8191,$e=Ot>>>13,Ct=M[9]|0,Ke=Ct&8191,qe=Ct>>>13;c.negative=i.negative^o.negative,c.length=19,F=Math.imul(ye,Ce),f=Math.imul(ye,Ne),f=f+Math.imul(Ee,Ce)|0,H=Math.imul(Ee,Ne);var Ge=(J+F|0)+((f&8191)<<13)|0;J=(H+(f>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,F=Math.imul(X,Ce),f=Math.imul(X,Ne),f=f+Math.imul(Z,Ce)|0,H=Math.imul(Z,Ne),F=F+Math.imul(ye,We)|0,f=f+Math.imul(ye,st)|0,f=f+Math.imul(Ee,We)|0,H=H+Math.imul(Ee,st)|0;var At=(J+F|0)+((f&8191)<<13)|0;J=(H+(f>>>13)|0)+(At>>>26)|0,At&=67108863,F=Math.imul(ce,Ce),f=Math.imul(ce,Ne),f=f+Math.imul(Se,Ce)|0,H=Math.imul(Se,Ne),F=F+Math.imul(X,We)|0,f=f+Math.imul(X,st)|0,f=f+Math.imul(Z,We)|0,H=H+Math.imul(Z,st)|0,F=F+Math.imul(ye,Qe)|0,f=f+Math.imul(ye,Xe)|0,f=f+Math.imul(Ee,Qe)|0,H=H+Math.imul(Ee,Xe)|0;var pt=(J+F|0)+((f&8191)<<13)|0;J=(H+(f>>>13)|0)+(pt>>>26)|0,pt&=67108863,F=Math.imul(j,Ce),f=Math.imul(j,Ne),f=f+Math.imul(fe,Ce)|0,H=Math.imul(fe,Ne),F=F+Math.imul(ce,We)|0,f=f+Math.imul(ce,st)|0,f=f+Math.imul(Se,We)|0,H=H+Math.imul(Se,st)|0,F=F+Math.imul(X,Qe)|0,f=f+Math.imul(X,Xe)|0,f=f+Math.imul(Z,Qe)|0,H=H+Math.imul(Z,Xe)|0,F=F+Math.imul(ye,He)|0,f=f+Math.imul(ye,rt)|0,f=f+Math.imul(Ee,He)|0,H=H+Math.imul(Ee,rt)|0;var Pt=(J+F|0)+((f&8191)<<13)|0;J=(H+(f>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,F=Math.imul(Re,Ce),f=Math.imul(Re,Ne),f=f+Math.imul(_e,Ce)|0,H=Math.imul(_e,Ne),F=F+Math.imul(j,We)|0,f=f+Math.imul(j,st)|0,f=f+Math.imul(fe,We)|0,H=H+Math.imul(fe,st)|0,F=F+Math.imul(ce,Qe)|0,f=f+Math.imul(ce,Xe)|0,f=f+Math.imul(Se,Qe)|0,H=H+Math.imul(Se,Xe)|0,F=F+Math.imul(X,He)|0,f=f+Math.imul(X,rt)|0,f=f+Math.imul(Z,He)|0,H=H+Math.imul(Z,rt)|0,F=F+Math.imul(ye,ze)|0,f=f+Math.imul(ye,Je)|0,f=f+Math.imul(Ee,ze)|0,H=H+Math.imul(Ee,Je)|0;var mt=(J+F|0)+((f&8191)<<13)|0;J=(H+(f>>>13)|0)+(mt>>>26)|0,mt&=67108863,F=Math.imul(me,Ce),f=Math.imul(me,Ne),f=f+Math.imul(Oe,Ce)|0,H=Math.imul(Oe,Ne),F=F+Math.imul(Re,We)|0,f=f+Math.imul(Re,st)|0,f=f+Math.imul(_e,We)|0,H=H+Math.imul(_e,st)|0,F=F+Math.imul(j,Qe)|0,f=f+Math.imul(j,Xe)|0,f=f+Math.imul(fe,Qe)|0,H=H+Math.imul(fe,Xe)|0,F=F+Math.imul(ce,He)|0,f=f+Math.imul(ce,rt)|0,f=f+Math.imul(Se,He)|0,H=H+Math.imul(Se,rt)|0,F=F+Math.imul(X,ze)|0,f=f+Math.imul(X,Je)|0,f=f+Math.imul(Z,ze)|0,H=H+Math.imul(Z,Je)|0,F=F+Math.imul(ye,at)|0,f=f+Math.imul(ye,et)|0,f=f+Math.imul(Ee,at)|0,H=H+Math.imul(Ee,et)|0;var bt=(J+F|0)+((f&8191)<<13)|0;J=(H+(f>>>13)|0)+(bt>>>26)|0,bt&=67108863,F=Math.imul(De,Ce),f=Math.imul(De,Ne),f=f+Math.imul(Te,Ce)|0,H=Math.imul(Te,Ne),F=F+Math.imul(me,We)|0,f=f+Math.imul(me,st)|0,f=f+Math.imul(Oe,We)|0,H=H+Math.imul(Oe,st)|0,F=F+Math.imul(Re,Qe)|0,f=f+Math.imul(Re,Xe)|0,f=f+Math.imul(_e,Qe)|0,H=H+Math.imul(_e,Xe)|0,F=F+Math.imul(j,He)|0,f=f+Math.imul(j,rt)|0,f=f+Math.imul(fe,He)|0,H=H+Math.imul(fe,rt)|0,F=F+Math.imul(ce,ze)|0,f=f+Math.imul(ce,Je)|0,f=f+Math.imul(Se,ze)|0,H=H+Math.imul(Se,Je)|0,F=F+Math.imul(X,at)|0,f=f+Math.imul(X,et)|0,f=f+Math.imul(Z,at)|0,H=H+Math.imul(Z,et)|0,F=F+Math.imul(ye,it)|0,f=f+Math.imul(ye,he)|0,f=f+Math.imul(Ee,it)|0,H=H+Math.imul(Ee,he)|0;var ut=(J+F|0)+((f&8191)<<13)|0;J=(H+(f>>>13)|0)+(ut>>>26)|0,ut&=67108863,F=Math.imul(I,Ce),f=Math.imul(I,Ne),f=f+Math.imul(s,Ce)|0,H=Math.imul(s,Ne),F=F+Math.imul(De,We)|0,f=f+Math.imul(De,st)|0,f=f+Math.imul(Te,We)|0,H=H+Math.imul(Te,st)|0,F=F+Math.imul(me,Qe)|0,f=f+Math.imul(me,Xe)|0,f=f+Math.imul(Oe,Qe)|0,H=H+Math.imul(Oe,Xe)|0,F=F+Math.imul(Re,He)|0,f=f+Math.imul(Re,rt)|0,f=f+Math.imul(_e,He)|0,H=H+Math.imul(_e,rt)|0,F=F+Math.imul(j,ze)|0,f=f+Math.imul(j,Je)|0,f=f+Math.imul(fe,ze)|0,H=H+Math.imul(fe,Je)|0,F=F+Math.imul(ce,at)|0,f=f+Math.imul(ce,et)|0,f=f+Math.imul(Se,at)|0,H=H+Math.imul(Se,et)|0,F=F+Math.imul(X,it)|0,f=f+Math.imul(X,he)|0,f=f+Math.imul(Z,it)|0,H=H+Math.imul(Z,he)|0,F=F+Math.imul(ye,tt)|0,f=f+Math.imul(ye,nt)|0,f=f+Math.imul(Ee,tt)|0,H=H+Math.imul(Ee,nt)|0;var Nt=(J+F|0)+((f&8191)<<13)|0;J=(H+(f>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,F=Math.imul(D,Ce),f=Math.imul(D,Ne),f=f+Math.imul(q,Ce)|0,H=Math.imul(q,Ne),F=F+Math.imul(I,We)|0,f=f+Math.imul(I,st)|0,f=f+Math.imul(s,We)|0,H=H+Math.imul(s,st)|0,F=F+Math.imul(De,Qe)|0,f=f+Math.imul(De,Xe)|0,f=f+Math.imul(Te,Qe)|0,H=H+Math.imul(Te,Xe)|0,F=F+Math.imul(me,He)|0,f=f+Math.imul(me,rt)|0,f=f+Math.imul(Oe,He)|0,H=H+Math.imul(Oe,rt)|0,F=F+Math.imul(Re,ze)|0,f=f+Math.imul(Re,Je)|0,f=f+Math.imul(_e,ze)|0,H=H+Math.imul(_e,Je)|0,F=F+Math.imul(j,at)|0,f=f+Math.imul(j,et)|0,f=f+Math.imul(fe,at)|0,H=H+Math.imul(fe,et)|0,F=F+Math.imul(ce,it)|0,f=f+Math.imul(ce,he)|0,f=f+Math.imul(Se,it)|0,H=H+Math.imul(Se,he)|0,F=F+Math.imul(X,tt)|0,f=f+Math.imul(X,nt)|0,f=f+Math.imul(Z,tt)|0,H=H+Math.imul(Z,nt)|0,F=F+Math.imul(ye,ot)|0,f=f+Math.imul(ye,$e)|0,f=f+Math.imul(Ee,ot)|0,H=H+Math.imul(Ee,$e)|0;var Mt=(J+F|0)+((f&8191)<<13)|0;J=(H+(f>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,F=Math.imul(ne,Ce),f=Math.imul(ne,Ne),f=f+Math.imul(Ie,Ce)|0,H=Math.imul(Ie,Ne),F=F+Math.imul(D,We)|0,f=f+Math.imul(D,st)|0,f=f+Math.imul(q,We)|0,H=H+Math.imul(q,st)|0,F=F+Math.imul(I,Qe)|0,f=f+Math.imul(I,Xe)|0,f=f+Math.imul(s,Qe)|0,H=H+Math.imul(s,Xe)|0,F=F+Math.imul(De,He)|0,f=f+Math.imul(De,rt)|0,f=f+Math.imul(Te,He)|0,H=H+Math.imul(Te,rt)|0,F=F+Math.imul(me,ze)|0,f=f+Math.imul(me,Je)|0,f=f+Math.imul(Oe,ze)|0,H=H+Math.imul(Oe,Je)|0,F=F+Math.imul(Re,at)|0,f=f+Math.imul(Re,et)|0,f=f+Math.imul(_e,at)|0,H=H+Math.imul(_e,et)|0,F=F+Math.imul(j,it)|0,f=f+Math.imul(j,he)|0,f=f+Math.imul(fe,it)|0,H=H+Math.imul(fe,he)|0,F=F+Math.imul(ce,tt)|0,f=f+Math.imul(ce,nt)|0,f=f+Math.imul(Se,tt)|0,H=H+Math.imul(Se,nt)|0,F=F+Math.imul(X,ot)|0,f=f+Math.imul(X,$e)|0,f=f+Math.imul(Z,ot)|0,H=H+Math.imul(Z,$e)|0,F=F+Math.imul(ye,Ke)|0,f=f+Math.imul(ye,qe)|0,f=f+Math.imul(Ee,Ke)|0,H=H+Math.imul(Ee,qe)|0;var O=(J+F|0)+((f&8191)<<13)|0;J=(H+(f>>>13)|0)+(O>>>26)|0,O&=67108863,F=Math.imul(ne,We),f=Math.imul(ne,st),f=f+Math.imul(Ie,We)|0,H=Math.imul(Ie,st),F=F+Math.imul(D,Qe)|0,f=f+Math.imul(D,Xe)|0,f=f+Math.imul(q,Qe)|0,H=H+Math.imul(q,Xe)|0,F=F+Math.imul(I,He)|0,f=f+Math.imul(I,rt)|0,f=f+Math.imul(s,He)|0,H=H+Math.imul(s,rt)|0,F=F+Math.imul(De,ze)|0,f=f+Math.imul(De,Je)|0,f=f+Math.imul(Te,ze)|0,H=H+Math.imul(Te,Je)|0,F=F+Math.imul(me,at)|0,f=f+Math.imul(me,et)|0,f=f+Math.imul(Oe,at)|0,H=H+Math.imul(Oe,et)|0,F=F+Math.imul(Re,it)|0,f=f+Math.imul(Re,he)|0,f=f+Math.imul(_e,it)|0,H=H+Math.imul(_e,he)|0,F=F+Math.imul(j,tt)|0,f=f+Math.imul(j,nt)|0,f=f+Math.imul(fe,tt)|0,H=H+Math.imul(fe,nt)|0,F=F+Math.imul(ce,ot)|0,f=f+Math.imul(ce,$e)|0,f=f+Math.imul(Se,ot)|0,H=H+Math.imul(Se,$e)|0,F=F+Math.imul(X,Ke)|0,f=f+Math.imul(X,qe)|0,f=f+Math.imul(Z,Ke)|0,H=H+Math.imul(Z,qe)|0;var e=(J+F|0)+((f&8191)<<13)|0;J=(H+(f>>>13)|0)+(e>>>26)|0,e&=67108863,F=Math.imul(ne,Qe),f=Math.imul(ne,Xe),f=f+Math.imul(Ie,Qe)|0,H=Math.imul(Ie,Xe),F=F+Math.imul(D,He)|0,f=f+Math.imul(D,rt)|0,f=f+Math.imul(q,He)|0,H=H+Math.imul(q,rt)|0,F=F+Math.imul(I,ze)|0,f=f+Math.imul(I,Je)|0,f=f+Math.imul(s,ze)|0,H=H+Math.imul(s,Je)|0,F=F+Math.imul(De,at)|0,f=f+Math.imul(De,et)|0,f=f+Math.imul(Te,at)|0,H=H+Math.imul(Te,et)|0,F=F+Math.imul(me,it)|0,f=f+Math.imul(me,he)|0,f=f+Math.imul(Oe,it)|0,H=H+Math.imul(Oe,he)|0,F=F+Math.imul(Re,tt)|0,f=f+Math.imul(Re,nt)|0,f=f+Math.imul(_e,tt)|0,H=H+Math.imul(_e,nt)|0,F=F+Math.imul(j,ot)|0,f=f+Math.imul(j,$e)|0,f=f+Math.imul(fe,ot)|0,H=H+Math.imul(fe,$e)|0,F=F+Math.imul(ce,Ke)|0,f=f+Math.imul(ce,qe)|0,f=f+Math.imul(Se,Ke)|0,H=H+Math.imul(Se,qe)|0;var t=(J+F|0)+((f&8191)<<13)|0;J=(H+(f>>>13)|0)+(t>>>26)|0,t&=67108863,F=Math.imul(ne,He),f=Math.imul(ne,rt),f=f+Math.imul(Ie,He)|0,H=Math.imul(Ie,rt),F=F+Math.imul(D,ze)|0,f=f+Math.imul(D,Je)|0,f=f+Math.imul(q,ze)|0,H=H+Math.imul(q,Je)|0,F=F+Math.imul(I,at)|0,f=f+Math.imul(I,et)|0,f=f+Math.imul(s,at)|0,H=H+Math.imul(s,et)|0,F=F+Math.imul(De,it)|0,f=f+Math.imul(De,he)|0,f=f+Math.imul(Te,it)|0,H=H+Math.imul(Te,he)|0,F=F+Math.imul(me,tt)|0,f=f+Math.imul(me,nt)|0,f=f+Math.imul(Oe,tt)|0,H=H+Math.imul(Oe,nt)|0,F=F+Math.imul(Re,ot)|0,f=f+Math.imul(Re,$e)|0,f=f+Math.imul(_e,ot)|0,H=H+Math.imul(_e,$e)|0,F=F+Math.imul(j,Ke)|0,f=f+Math.imul(j,qe)|0,f=f+Math.imul(fe,Ke)|0,H=H+Math.imul(fe,qe)|0;var n=(J+F|0)+((f&8191)<<13)|0;J=(H+(f>>>13)|0)+(n>>>26)|0,n&=67108863,F=Math.imul(ne,ze),f=Math.imul(ne,Je),f=f+Math.imul(Ie,ze)|0,H=Math.imul(Ie,Je),F=F+Math.imul(D,at)|0,f=f+Math.imul(D,et)|0,f=f+Math.imul(q,at)|0,H=H+Math.imul(q,et)|0,F=F+Math.imul(I,it)|0,f=f+Math.imul(I,he)|0,f=f+Math.imul(s,it)|0,H=H+Math.imul(s,he)|0,F=F+Math.imul(De,tt)|0,f=f+Math.imul(De,nt)|0,f=f+Math.imul(Te,tt)|0,H=H+Math.imul(Te,nt)|0,F=F+Math.imul(me,ot)|0,f=f+Math.imul(me,$e)|0,f=f+Math.imul(Oe,ot)|0,H=H+Math.imul(Oe,$e)|0,F=F+Math.imul(Re,Ke)|0,f=f+Math.imul(Re,qe)|0,f=f+Math.imul(_e,Ke)|0,H=H+Math.imul(_e,qe)|0;var x=(J+F|0)+((f&8191)<<13)|0;J=(H+(f>>>13)|0)+(x>>>26)|0,x&=67108863,F=Math.imul(ne,at),f=Math.imul(ne,et),f=f+Math.imul(Ie,at)|0,H=Math.imul(Ie,et),F=F+Math.imul(D,it)|0,f=f+Math.imul(D,he)|0,f=f+Math.imul(q,it)|0,H=H+Math.imul(q,he)|0,F=F+Math.imul(I,tt)|0,f=f+Math.imul(I,nt)|0,f=f+Math.imul(s,tt)|0,H=H+Math.imul(s,nt)|0,F=F+Math.imul(De,ot)|0,f=f+Math.imul(De,$e)|0,f=f+Math.imul(Te,ot)|0,H=H+Math.imul(Te,$e)|0,F=F+Math.imul(me,Ke)|0,f=f+Math.imul(me,qe)|0,f=f+Math.imul(Oe,Ke)|0,H=H+Math.imul(Oe,qe)|0;var T=(J+F|0)+((f&8191)<<13)|0;J=(H+(f>>>13)|0)+(T>>>26)|0,T&=67108863,F=Math.imul(ne,it),f=Math.imul(ne,he),f=f+Math.imul(Ie,it)|0,H=Math.imul(Ie,he),F=F+Math.imul(D,tt)|0,f=f+Math.imul(D,nt)|0,f=f+Math.imul(q,tt)|0,H=H+Math.imul(q,nt)|0,F=F+Math.imul(I,ot)|0,f=f+Math.imul(I,$e)|0,f=f+Math.imul(s,ot)|0,H=H+Math.imul(s,$e)|0,F=F+Math.imul(De,Ke)|0,f=f+Math.imul(De,qe)|0,f=f+Math.imul(Te,Ke)|0,H=H+Math.imul(Te,qe)|0;var W=(J+F|0)+((f&8191)<<13)|0;J=(H+(f>>>13)|0)+(W>>>26)|0,W&=67108863,F=Math.imul(ne,tt),f=Math.imul(ne,nt),f=f+Math.imul(Ie,tt)|0,H=Math.imul(Ie,nt),F=F+Math.imul(D,ot)|0,f=f+Math.imul(D,$e)|0,f=f+Math.imul(q,ot)|0,H=H+Math.imul(q,$e)|0,F=F+Math.imul(I,Ke)|0,f=f+Math.imul(I,qe)|0,f=f+Math.imul(s,Ke)|0,H=H+Math.imul(s,qe)|0;var ee=(J+F|0)+((f&8191)<<13)|0;J=(H+(f>>>13)|0)+(ee>>>26)|0,ee&=67108863,F=Math.imul(ne,ot),f=Math.imul(ne,$e),f=f+Math.imul(Ie,ot)|0,H=Math.imul(Ie,$e),F=F+Math.imul(D,Ke)|0,f=f+Math.imul(D,qe)|0,f=f+Math.imul(q,Ke)|0,H=H+Math.imul(q,qe)|0;var pe=(J+F|0)+((f&8191)<<13)|0;J=(H+(f>>>13)|0)+(pe>>>26)|0,pe&=67108863,F=Math.imul(ne,Ke),f=Math.imul(ne,qe),f=f+Math.imul(Ie,Ke)|0,H=Math.imul(Ie,qe);var be=(J+F|0)+((f&8191)<<13)|0;return J=(H+(f>>>13)|0)+(be>>>26)|0,be&=67108863,G[0]=Ge,G[1]=At,G[2]=pt,G[3]=Pt,G[4]=mt,G[5]=bt,G[6]=ut,G[7]=Nt,G[8]=Mt,G[9]=O,G[10]=e,G[11]=t,G[12]=n,G[13]=x,G[14]=T,G[15]=W,G[16]=ee,G[17]=pe,G[18]=be,J!==0&&(G[19]=J,c.length++),c},"comb10MulTo");Math.imul||(w=A);function R(E,i,o){o.negative=i.negative^E.negative,o.length=E.length+i.length;for(var c=0,S=0,M=0;M<o.length-1;M++){var G=S;S=0;for(var J=c&67108863,F=Math.min(M,i.length-1),f=Math.max(0,M-E.length+1);f<=F;f++){var H=M-f,xe=E.words[H]|0,ye=i.words[f]|0,Ee=xe*ye,U=Ee&67108863;G=G+(Ee/67108864|0)|0,U=U+J|0,J=U&67108863,G=G+(U>>>26)|0,S+=G>>>26,G&=67108863}o.words[M]=J,c=G,G=S}return c!==0?o.words[M]=c:o.length--,o._strip()}r(R,"bigMulTo");function C(E,i,o){return R(E,i,o)}r(C,"jumboMulTo"),d.prototype.mulTo=r(function(i,o){var c,S=this.length+i.length;return this.length===10&&i.length===10?c=w(this,i,o):S<63?c=A(this,i,o):S<1024?c=R(this,i,o):c=C(this,i,o),c},"mulTo");function L(E,i){this.x=E,this.y=i}r(L,"FFTM"),L.prototype.makeRBT=r(function(i){for(var o=new Array(i),c=d.prototype._countBits(i)-1,S=0;S<i;S++)o[S]=this.revBin(S,c,i);return o},"makeRBT"),L.prototype.revBin=r(function(i,o,c){if(i===0||i===c-1)return i;for(var S=0,M=0;M<o;M++)S|=(i&1)<<o-M-1,i>>=1;return S},"revBin"),L.prototype.permute=r(function(i,o,c,S,M,G){for(var J=0;J<G;J++)S[J]=o[i[J]],M[J]=c[i[J]]},"permute"),L.prototype.transform=r(function(i,o,c,S,M,G){this.permute(G,i,o,c,S,M);for(var J=1;J<M;J<<=1)for(var F=J<<1,f=Math.cos(2*Math.PI/F),H=Math.sin(2*Math.PI/F),xe=0;xe<M;xe+=F)for(var ye=f,Ee=H,U=0;U<J;U++){var X=c[xe+U],Z=S[xe+U],ue=c[xe+U+J],ce=S[xe+U+J],Se=ye*ue-Ee*ce;ce=ye*ce+Ee*ue,ue=Se,c[xe+U]=X+ue,S[xe+U]=Z+ce,c[xe+U+J]=X-ue,S[xe+U+J]=Z-ce,U!==F&&(Se=f*ye-H*Ee,Ee=f*Ee+H*ye,ye=Se)}},"transform"),L.prototype.guessLen13b=r(function(i,o){var c=Math.max(o,i)|1,S=c&1,M=0;for(c=c/2|0;c;c=c>>>1)M++;return 1<<M+1+S},"guessLen13b"),L.prototype.conjugate=r(function(i,o,c){if(!(c<=1))for(var S=0;S<c/2;S++){var M=i[S];i[S]=i[c-S-1],i[c-S-1]=M,M=o[S],o[S]=-o[c-S-1],o[c-S-1]=-M}},"conjugate"),L.prototype.normalize13b=r(function(i,o){for(var c=0,S=0;S<o/2;S++){var M=Math.round(i[2*S+1]/o)*8192+Math.round(i[2*S]/o)+c;i[S]=M&67108863,M<67108864?c=0:c=M/67108864|0}return i},"normalize13b"),L.prototype.convert13b=r(function(i,o,c,S){for(var M=0,G=0;G<o;G++)M=M+(i[G]|0),c[2*G]=M&8191,M=M>>>13,c[2*G+1]=M&8191,M=M>>>13;for(G=2*o;G<S;++G)c[G]=0;z(M===0),z((M&-8192)===0)},"convert13b"),L.prototype.stub=r(function(i){for(var o=new Array(i),c=0;c<i;c++)o[c]=0;return o},"stub"),L.prototype.mulp=r(function(i,o,c){var S=2*this.guessLen13b(i.length,o.length),M=this.makeRBT(S),G=this.stub(S),J=new Array(S),F=new Array(S),f=new Array(S),H=new Array(S),xe=new Array(S),ye=new Array(S),Ee=c.words;Ee.length=S,this.convert13b(i.words,i.length,J,S),this.convert13b(o.words,o.length,H,S),this.transform(J,G,F,f,S,M),this.transform(H,G,xe,ye,S,M);for(var U=0;U<S;U++){var X=F[U]*xe[U]-f[U]*ye[U];f[U]=F[U]*ye[U]+f[U]*xe[U],F[U]=X}return this.conjugate(F,f,S),this.transform(F,f,Ee,G,S,M),this.conjugate(Ee,G,S),this.normalize13b(Ee,S),c.negative=i.negative^o.negative,c.length=i.length+o.length,c._strip()},"mulp"),d.prototype.mul=r(function(i){var o=new d(null);return o.words=new Array(this.length+i.length),this.mulTo(i,o)},"mul"),d.prototype.mulf=r(function(i){var o=new d(null);return o.words=new Array(this.length+i.length),C(this,i,o)},"mulf"),d.prototype.imul=r(function(i){return this.clone().mulTo(i,this)},"imul"),d.prototype.imuln=r(function(i){var o=i<0;o&&(i=-i),z(typeof i=="number"),z(i<67108864);for(var c=0,S=0;S<this.length;S++){var M=(this.words[S]|0)*i,G=(M&67108863)+(c&67108863);c>>=26,c+=M/67108864|0,c+=G>>>26,this.words[S]=G&67108863}return c!==0&&(this.words[S]=c,this.length++),o?this.ineg():this},"imuln"),d.prototype.muln=r(function(i){return this.clone().imuln(i)},"muln"),d.prototype.sqr=r(function(){return this.mul(this)},"sqr"),d.prototype.isqr=r(function(){return this.imul(this.clone())},"isqr"),d.prototype.pow=r(function(i){var o=g(i);if(o.length===0)return new d(1);for(var c=this,S=0;S<o.length&&o[S]===0;S++,c=c.sqr());if(++S<o.length)for(var M=c.sqr();S<o.length;S++,M=M.sqr())o[S]!==0&&(c=c.mul(M));return c},"pow"),d.prototype.iushln=r(function(i){z(typeof i=="number"&&i>=0);var o=i%26,c=(i-o)/26,S=67108863>>>26-o<<26-o,M;if(o!==0){var G=0;for(M=0;M<this.length;M++){var J=this.words[M]&S,F=(this.words[M]|0)-J<<o;this.words[M]=F|G,G=J>>>26-o}G&&(this.words[M]=G,this.length++)}if(c!==0){for(M=this.length-1;M>=0;M--)this.words[M+c]=this.words[M];for(M=0;M<c;M++)this.words[M]=0;this.length+=c}return this._strip()},"iushln"),d.prototype.ishln=r(function(i){return z(this.negative===0),this.iushln(i)},"ishln"),d.prototype.iushrn=r(function(i,o,c){z(typeof i=="number"&&i>=0);var S;o?S=(o-o%26)/26:S=0;var M=i%26,G=Math.min((i-M)/26,this.length),J=67108863^67108863>>>M<<M,F=c;if(S-=G,S=Math.max(0,S),F){for(var f=0;f<G;f++)F.words[f]=this.words[f];F.length=G}if(G!==0)if(this.length>G)for(this.length-=G,f=0;f<this.length;f++)this.words[f]=this.words[f+G];else this.words[0]=0,this.length=1;var H=0;for(f=this.length-1;f>=0&&(H!==0||f>=S);f--){var xe=this.words[f]|0;this.words[f]=H<<26-M|xe>>>M,H=xe&J}return F&&H!==0&&(F.words[F.length++]=H),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},"iushrn"),d.prototype.ishrn=r(function(i,o,c){return z(this.negative===0),this.iushrn(i,o,c)},"ishrn"),d.prototype.shln=r(function(i){return this.clone().ishln(i)},"shln"),d.prototype.ushln=r(function(i){return this.clone().iushln(i)},"ushln"),d.prototype.shrn=r(function(i){return this.clone().ishrn(i)},"shrn"),d.prototype.ushrn=r(function(i){return this.clone().iushrn(i)},"ushrn"),d.prototype.testn=r(function(i){z(typeof i=="number"&&i>=0);var o=i%26,c=(i-o)/26,S=1<<o;if(this.length<=c)return!1;var M=this.words[c];return!!(M&S)},"testn"),d.prototype.imaskn=r(function(i){z(typeof i=="number"&&i>=0);var o=i%26,c=(i-o)/26;if(z(this.negative===0,"imaskn works only with positive numbers"),this.length<=c)return this;if(o!==0&&c++,this.length=Math.min(c,this.length),o!==0){var S=67108863^67108863>>>o<<o;this.words[this.length-1]&=S}return this._strip()},"imaskn"),d.prototype.maskn=r(function(i){return this.clone().imaskn(i)},"maskn"),d.prototype.iaddn=r(function(i){return z(typeof i=="number"),z(i<67108864),i<0?this.isubn(-i):this.negative!==0?this.length===1&&(this.words[0]|0)<=i?(this.words[0]=i-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},"iaddn"),d.prototype._iaddn=r(function(i){this.words[0]+=i;for(var o=0;o<this.length&&this.words[o]>=67108864;o++)this.words[o]-=67108864,o===this.length-1?this.words[o+1]=1:this.words[o+1]++;return this.length=Math.max(this.length,o+1),this},"_iaddn"),d.prototype.isubn=r(function(i){if(z(typeof i=="number"),z(i<67108864),i<0)return this.iaddn(-i);if(this.negative!==0)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var o=0;o<this.length&&this.words[o]<0;o++)this.words[o]+=67108864,this.words[o+1]-=1;return this._strip()},"isubn"),d.prototype.addn=r(function(i){return this.clone().iaddn(i)},"addn"),d.prototype.subn=r(function(i){return this.clone().isubn(i)},"subn"),d.prototype.iabs=r(function(){return this.negative=0,this},"iabs"),d.prototype.abs=r(function(){return this.clone().iabs()},"abs"),d.prototype._ishlnsubmul=r(function(i,o,c){var S=i.length+c,M;this._expand(S);var G,J=0;for(M=0;M<i.length;M++){G=(this.words[M+c]|0)+J;var F=(i.words[M]|0)*o;G-=F&67108863,J=(G>>26)-(F/67108864|0),this.words[M+c]=G&67108863}for(;M<this.length-c;M++)G=(this.words[M+c]|0)+J,J=G>>26,this.words[M+c]=G&67108863;if(J===0)return this._strip();for(z(J===-1),J=0,M=0;M<this.length;M++)G=-(this.words[M]|0)+J,J=G>>26,this.words[M]=G&67108863;return this.negative=1,this._strip()},"_ishlnsubmul"),d.prototype._wordDiv=r(function(i,o){var c=this.length-i.length,S=this.clone(),M=i,G=M.words[M.length-1]|0,J=this._countBits(G);c=26-J,c!==0&&(M=M.ushln(c),S.iushln(c),G=M.words[M.length-1]|0);var F=S.length-M.length,f;if(o!=="mod"){f=new d(null),f.length=F+1,f.words=new Array(f.length);for(var H=0;H<f.length;H++)f.words[H]=0}var xe=S.clone()._ishlnsubmul(M,1,F);xe.negative===0&&(S=xe,f&&(f.words[F]=1));for(var ye=F-1;ye>=0;ye--){var Ee=(S.words[M.length+ye]|0)*67108864+(S.words[M.length+ye-1]|0);for(Ee=Math.min(Ee/G|0,67108863),S._ishlnsubmul(M,Ee,ye);S.negative!==0;)Ee--,S.negative=0,S._ishlnsubmul(M,1,ye),S.isZero()||(S.negative^=1);f&&(f.words[ye]=Ee)}return f&&f._strip(),S._strip(),o!=="div"&&c!==0&&S.iushrn(c),{div:f||null,mod:S}},"_wordDiv"),d.prototype.divmod=r(function(i,o,c){if(z(!i.isZero()),this.isZero())return{div:new d(0),mod:new d(0)};var S,M,G;return this.negative!==0&&i.negative===0?(G=this.neg().divmod(i,o),o!=="mod"&&(S=G.div.neg()),o!=="div"&&(M=G.mod.neg(),c&&M.negative!==0&&M.iadd(i)),{div:S,mod:M}):this.negative===0&&i.negative!==0?(G=this.divmod(i.neg(),o),o!=="mod"&&(S=G.div.neg()),{div:S,mod:G.mod}):this.negative&i.negative?(G=this.neg().divmod(i.neg(),o),o!=="div"&&(M=G.mod.neg(),c&&M.negative!==0&&M.isub(i)),{div:G.div,mod:M}):i.length>this.length||this.cmp(i)<0?{div:new d(0),mod:this}:i.length===1?o==="div"?{div:this.divn(i.words[0]),mod:null}:o==="mod"?{div:null,mod:new d(this.modrn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new d(this.modrn(i.words[0]))}:this._wordDiv(i,o)},"divmod"),d.prototype.div=r(function(i){return this.divmod(i,"div",!1).div},"div"),d.prototype.mod=r(function(i){return this.divmod(i,"mod",!1).mod},"mod"),d.prototype.umod=r(function(i){return this.divmod(i,"mod",!0).mod},"umod"),d.prototype.divRound=r(function(i){var o=this.divmod(i);if(o.mod.isZero())return o.div;var c=o.div.negative!==0?o.mod.isub(i):o.mod,S=i.ushrn(1),M=i.andln(1),G=c.cmp(S);return G<0||M===1&&G===0?o.div:o.div.negative!==0?o.div.isubn(1):o.div.iaddn(1)},"divRound"),d.prototype.modrn=r(function(i){var o=i<0;o&&(i=-i),z(i<=67108863);for(var c=(1<<26)%i,S=0,M=this.length-1;M>=0;M--)S=(c*S+(this.words[M]|0))%i;return o?-S:S},"modrn"),d.prototype.modn=r(function(i){return this.modrn(i)},"modn"),d.prototype.idivn=r(function(i){var o=i<0;o&&(i=-i),z(i<=67108863);for(var c=0,S=this.length-1;S>=0;S--){var M=(this.words[S]|0)+c*67108864;this.words[S]=M/i|0,c=M%i}return this._strip(),o?this.ineg():this},"idivn"),d.prototype.divn=r(function(i){return this.clone().idivn(i)},"divn"),d.prototype.egcd=r(function(i){z(i.negative===0),z(!i.isZero());var o=this,c=i.clone();o.negative!==0?o=o.umod(i):o=o.clone();for(var S=new d(1),M=new d(0),G=new d(0),J=new d(1),F=0;o.isEven()&&c.isEven();)o.iushrn(1),c.iushrn(1),++F;for(var f=c.clone(),H=o.clone();!o.isZero();){for(var xe=0,ye=1;!(o.words[0]&ye)&&xe<26;++xe,ye<<=1);if(xe>0)for(o.iushrn(xe);xe-- >0;)(S.isOdd()||M.isOdd())&&(S.iadd(f),M.isub(H)),S.iushrn(1),M.iushrn(1);for(var Ee=0,U=1;!(c.words[0]&U)&&Ee<26;++Ee,U<<=1);if(Ee>0)for(c.iushrn(Ee);Ee-- >0;)(G.isOdd()||J.isOdd())&&(G.iadd(f),J.isub(H)),G.iushrn(1),J.iushrn(1);o.cmp(c)>=0?(o.isub(c),S.isub(G),M.isub(J)):(c.isub(o),G.isub(S),J.isub(M))}return{a:G,b:J,gcd:c.iushln(F)}},"egcd"),d.prototype._invmp=r(function(i){z(i.negative===0),z(!i.isZero());var o=this,c=i.clone();o.negative!==0?o=o.umod(i):o=o.clone();for(var S=new d(1),M=new d(0),G=c.clone();o.cmpn(1)>0&&c.cmpn(1)>0;){for(var J=0,F=1;!(o.words[0]&F)&&J<26;++J,F<<=1);if(J>0)for(o.iushrn(J);J-- >0;)S.isOdd()&&S.iadd(G),S.iushrn(1);for(var f=0,H=1;!(c.words[0]&H)&&f<26;++f,H<<=1);if(f>0)for(c.iushrn(f);f-- >0;)M.isOdd()&&M.iadd(G),M.iushrn(1);o.cmp(c)>=0?(o.isub(c),S.isub(M)):(c.isub(o),M.isub(S))}var xe;return o.cmpn(1)===0?xe=S:xe=M,xe.cmpn(0)<0&&xe.iadd(i),xe},"_invmp"),d.prototype.gcd=r(function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var o=this.clone(),c=i.clone();o.negative=0,c.negative=0;for(var S=0;o.isEven()&&c.isEven();S++)o.iushrn(1),c.iushrn(1);do{for(;o.isEven();)o.iushrn(1);for(;c.isEven();)c.iushrn(1);var M=o.cmp(c);if(M<0){var G=o;o=c,c=G}else if(M===0||c.cmpn(1)===0)break;o.isub(c)}while(!0);return c.iushln(S)},"gcd"),d.prototype.invm=r(function(i){return this.egcd(i).a.umod(i)},"invm"),d.prototype.isEven=r(function(){return(this.words[0]&1)===0},"isEven"),d.prototype.isOdd=r(function(){return(this.words[0]&1)===1},"isOdd"),d.prototype.andln=r(function(i){return this.words[0]&i},"andln"),d.prototype.bincn=r(function(i){z(typeof i=="number");var o=i%26,c=(i-o)/26,S=1<<o;if(this.length<=c)return this._expand(c+1),this.words[c]|=S,this;for(var M=S,G=c;M!==0&&G<this.length;G++){var J=this.words[G]|0;J+=M,M=J>>>26,J&=67108863,this.words[G]=J}return M!==0&&(this.words[G]=M,this.length++),this},"bincn"),d.prototype.isZero=r(function(){return this.length===1&&this.words[0]===0},"isZero"),d.prototype.cmpn=r(function(i){var o=i<0;if(this.negative!==0&&!o)return-1;if(this.negative===0&&o)return 1;this._strip();var c;if(this.length>1)c=1;else{o&&(i=-i),z(i<=67108863,"Number is too big");var S=this.words[0]|0;c=S===i?0:S<i?-1:1}return this.negative!==0?-c|0:c},"cmpn"),d.prototype.cmp=r(function(i){if(this.negative!==0&&i.negative===0)return-1;if(this.negative===0&&i.negative!==0)return 1;var o=this.ucmp(i);return this.negative!==0?-o|0:o},"cmp"),d.prototype.ucmp=r(function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var o=0,c=this.length-1;c>=0;c--){var S=this.words[c]|0,M=i.words[c]|0;if(S!==M){S<M?o=-1:S>M&&(o=1);break}}return o},"ucmp"),d.prototype.gtn=r(function(i){return this.cmpn(i)===1},"gtn"),d.prototype.gt=r(function(i){return this.cmp(i)===1},"gt"),d.prototype.gten=r(function(i){return this.cmpn(i)>=0},"gten"),d.prototype.gte=r(function(i){return this.cmp(i)>=0},"gte"),d.prototype.ltn=r(function(i){return this.cmpn(i)===-1},"ltn"),d.prototype.lt=r(function(i){return this.cmp(i)===-1},"lt"),d.prototype.lten=r(function(i){return this.cmpn(i)<=0},"lten"),d.prototype.lte=r(function(i){return this.cmp(i)<=0},"lte"),d.prototype.eqn=r(function(i){return this.cmpn(i)===0},"eqn"),d.prototype.eq=r(function(i){return this.cmp(i)===0},"eq"),d.red=r(function(i){return new de(i)},"red"),d.prototype.toRed=r(function(i){return z(!this.red,"Already a number in reduction context"),z(this.negative===0,"red works only with positives"),i.convertTo(this)._forceRed(i)},"toRed"),d.prototype.fromRed=r(function(){return z(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},"fromRed"),d.prototype._forceRed=r(function(i){return this.red=i,this},"_forceRed"),d.prototype.forceRed=r(function(i){return z(!this.red,"Already a number in reduction context"),this._forceRed(i)},"forceRed"),d.prototype.redAdd=r(function(i){return z(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},"redAdd"),d.prototype.redIAdd=r(function(i){return z(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},"redIAdd"),d.prototype.redSub=r(function(i){return z(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},"redSub"),d.prototype.redISub=r(function(i){return z(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},"redISub"),d.prototype.redShl=r(function(i){return z(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},"redShl"),d.prototype.redMul=r(function(i){return z(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},"redMul"),d.prototype.redIMul=r(function(i){return z(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},"redIMul"),d.prototype.redSqr=r(function(){return z(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},"redSqr"),d.prototype.redISqr=r(function(){return z(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},"redISqr"),d.prototype.redSqrt=r(function(){return z(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},"redSqrt"),d.prototype.redInvm=r(function(){return z(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},"redInvm"),d.prototype.redNeg=r(function(){return z(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},"redNeg"),d.prototype.redPow=r(function(i){return z(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)},"redPow");var V={k256:null,p224:null,p192:null,p25519:null};function Q(E,i){this.name=E,this.p=new d(i,16),this.n=this.p.bitLength(),this.k=new d(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}r(Q,"MPrime"),Q.prototype._tmp=r(function(){var i=new d(null);return i.words=new Array(Math.ceil(this.n/13)),i},"_tmp"),Q.prototype.ireduce=r(function(i){var o=i,c;do this.split(o,this.tmp),o=this.imulK(o),o=o.iadd(this.tmp),c=o.bitLength();while(c>this.n);var S=c<this.n?-1:o.ucmp(this.p);return S===0?(o.words[0]=0,o.length=1):S>0?o.isub(this.p):o.strip!==void 0?o.strip():o._strip(),o},"ireduce"),Q.prototype.split=r(function(i,o){i.iushrn(this.n,0,o)},"split"),Q.prototype.imulK=r(function(i){return i.imul(this.k)},"imulK");function ie(){Q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}r(ie,"K256"),k(ie,Q),ie.prototype.split=r(function(i,o){for(var c=4194303,S=Math.min(i.length,9),M=0;M<S;M++)o.words[M]=i.words[M];if(o.length=S,i.length<=9){i.words[0]=0,i.length=1;return}var G=i.words[9];for(o.words[o.length++]=G&c,M=10;M<i.length;M++){var J=i.words[M]|0;i.words[M-10]=(J&c)<<4|G>>>22,G=J}G>>>=22,i.words[M-10]=G,G===0&&i.length>10?i.length-=10:i.length-=9},"split"),ie.prototype.imulK=r(function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var o=0,c=0;c<i.length;c++){var S=i.words[c]|0;o+=S*977,i.words[c]=o&67108863,o=S*64+(o/67108864|0)}return i.words[i.length-1]===0&&(i.length--,i.words[i.length-1]===0&&i.length--),i},"imulK");function ae(){Q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}r(ae,"P224"),k(ae,Q);function oe(){Q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}r(oe,"P192"),k(oe,Q);function ge(){Q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}r(ge,"P25519"),k(ge,Q),ge.prototype.imulK=r(function(i){for(var o=0,c=0;c<i.length;c++){var S=(i.words[c]|0)*19+o,M=S&67108863;S>>>=26,i.words[c]=M,o=S}return o!==0&&(i.words[i.length++]=o),i},"imulK"),d._prime=r(function(i){if(V[i])return V[i];var o;if(i==="k256")o=new ie;else if(i==="p224")o=new ae;else if(i==="p192")o=new oe;else if(i==="p25519")o=new ge;else throw new Error("Unknown prime "+i);return V[i]=o,o},"prime");function de(E){if(typeof E=="string"){var i=d._prime(E);this.m=i.p,this.prime=i}else z(E.gtn(1),"modulus must be greater than 1"),this.m=E,this.prime=null}r(de,"Red"),de.prototype._verify1=r(function(i){z(i.negative===0,"red works only with positives"),z(i.red,"red works only with red numbers")},"_verify1"),de.prototype._verify2=r(function(i,o){z((i.negative|o.negative)===0,"red works only with positives"),z(i.red&&i.red===o.red,"red works only with red numbers")},"_verify2"),de.prototype.imod=r(function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):(p(i,i.umod(this.m)._forceRed(this)),i)},"imod"),de.prototype.neg=r(function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},"neg"),de.prototype.add=r(function(i,o){this._verify2(i,o);var c=i.add(o);return c.cmp(this.m)>=0&&c.isub(this.m),c._forceRed(this)},"add"),de.prototype.iadd=r(function(i,o){this._verify2(i,o);var c=i.iadd(o);return c.cmp(this.m)>=0&&c.isub(this.m),c},"iadd"),de.prototype.sub=r(function(i,o){this._verify2(i,o);var c=i.sub(o);return c.cmpn(0)<0&&c.iadd(this.m),c._forceRed(this)},"sub"),de.prototype.isub=r(function(i,o){this._verify2(i,o);var c=i.isub(o);return c.cmpn(0)<0&&c.iadd(this.m),c},"isub"),de.prototype.shl=r(function(i,o){return this._verify1(i),this.imod(i.ushln(o))},"shl"),de.prototype.imul=r(function(i,o){return this._verify2(i,o),this.imod(i.imul(o))},"imul"),de.prototype.mul=r(function(i,o){return this._verify2(i,o),this.imod(i.mul(o))},"mul"),de.prototype.isqr=r(function(i){return this.imul(i,i.clone())},"isqr"),de.prototype.sqr=r(function(i){return this.mul(i,i)},"sqr"),de.prototype.sqrt=r(function(i){if(i.isZero())return i.clone();var o=this.m.andln(3);if(z(o%2===1),o===3){var c=this.m.add(new d(1)).iushrn(2);return this.pow(i,c)}for(var S=this.m.subn(1),M=0;!S.isZero()&&S.andln(1)===0;)M++,S.iushrn(1);z(!S.isZero());var G=new d(1).toRed(this),J=G.redNeg(),F=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new d(2*f*f).toRed(this);this.pow(f,F).cmp(J)!==0;)f.redIAdd(J);for(var H=this.pow(f,S),xe=this.pow(i,S.addn(1).iushrn(1)),ye=this.pow(i,S),Ee=M;ye.cmp(G)!==0;){for(var U=ye,X=0;U.cmp(G)!==0;X++)U=U.redSqr();z(X<Ee);var Z=this.pow(H,new d(1).iushln(Ee-X-1));xe=xe.redMul(Z),H=Z.redSqr(),ye=ye.redMul(H),Ee=X}return xe},"sqrt"),de.prototype.invm=r(function(i){var o=i._invmp(this.m);return o.negative!==0?(o.negative=0,this.imod(o).redNeg()):this.imod(o)},"invm"),de.prototype.pow=r(function(i,o){if(o.isZero())return new d(1).toRed(this);if(o.cmpn(1)===0)return i.clone();var c=4,S=new Array(1<<c);S[0]=new d(1).toRed(this),S[1]=i;for(var M=2;M<S.length;M++)S[M]=this.mul(S[M-1],i);var G=S[0],J=0,F=0,f=o.bitLength()%26;for(f===0&&(f=26),M=o.length-1;M>=0;M--){for(var H=o.words[M],xe=f-1;xe>=0;xe--){var ye=H>>xe&1;if(G!==S[0]&&(G=this.sqr(G)),ye===0&&J===0){F=0;continue}J<<=1,J|=ye,F++,!(F!==c&&(M!==0||xe!==0))&&(G=this.mul(G,S[J]),F=0,J=0)}f=26}return G},"pow"),de.prototype.convertTo=r(function(i){var o=i.umod(this.m);return o===i?o.clone():o},"convertTo"),de.prototype.convertFrom=r(function(i){var o=i.clone();return o.red=null,o},"convertFrom"),d.mont=r(function(i){return new te(i)},"mont");function te(E){de.call(this,E),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new d(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}r(te,"Mont"),k(te,de),te.prototype.convertTo=r(function(i){return this.imod(i.ushln(this.shift))},"convertTo"),te.prototype.convertFrom=r(function(i){var o=this.imod(i.mul(this.rinv));return o.red=null,o},"convertFrom"),te.prototype.imul=r(function(i,o){if(i.isZero()||o.isZero())return i.words[0]=0,i.length=1,i;var c=i.imul(o),S=c.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=c.isub(S).iushrn(this.shift),G=M;return M.cmp(this.m)>=0?G=M.isub(this.m):M.cmpn(0)<0&&(G=M.iadd(this.m)),G._forceRed(this)},"imul"),te.prototype.mul=r(function(i,o){if(i.isZero()||o.isZero())return new d(0)._forceRed(this);var c=i.mul(o),S=c.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=c.isub(S).iushrn(this.shift),G=M;return M.cmp(this.m)>=0?G=M.isub(this.m):M.cmpn(0)<0&&(G=M.iadd(this.m)),G._forceRed(this)},"mul"),te.prototype.invm=r(function(i){var o=this.imod(i._invmp(this.m).mul(this.r2));return o._forceRed(this)},"invm")}(re,this)},9931:(re,$,P)=>{var _;re.exports=r(function(d){return _||(_=new Y(null)),_.generate(d)},"rand");function Y(k){this.rand=k}if(r(Y,"Rand"),re.exports.Rand=Y,Y.prototype.generate=r(function(d){return this._rand(d)},"generate"),Y.prototype._rand=r(function(d){if(this.rand.getBytes)return this.rand.getBytes(d);for(var b=new Uint8Array(d),m=0;m<b.length;m++)b[m]=this.rand.getByte();return b},"_rand"),typeof self=="object")self.crypto&&self.crypto.getRandomValues?Y.prototype._rand=r(function(d){var b=new Uint8Array(d);return self.crypto.getRandomValues(b),b},"_rand"):self.msCrypto&&self.msCrypto.getRandomValues?Y.prototype._rand=r(function(d){var b=new Uint8Array(d);return self.msCrypto.getRandomValues(b),b},"_rand"):typeof window=="object"&&(Y.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var z=P(9214);if(typeof z.randomBytes!="function")throw new Error("Not supported");Y.prototype._rand=r(function(d){return z.randomBytes(d)},"_rand")}catch{}},7191:(re,$,P)=>{const _=P(8162),Y="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";re.exports=_(Y)},8764:(re,$,P)=>{"use strict";/*!
2
- * The buffer module from node.js, for the browser.
3
- *
4
- * @author Feross Aboukhadijeh <https://feross.org>
5
- * @license MIT
6
- */const _=P(9742),Y=P(645),z=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;$.Buffer=m,$.SlowBuffer=w,$.INSPECT_MAX_BYTES=50;const k=2147483647;$.kMaxLength=k,m.TYPED_ARRAY_SUPPORT=d(),!m.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function d(){try{const I=new Uint8Array(1),s={foo:function(){return 42}};return Object.setPrototypeOf(s,Uint8Array.prototype),Object.setPrototypeOf(I,s),I.foo()===42}catch{return!1}}r(d,"typedArraySupport"),Object.defineProperty(m.prototype,"parent",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.buffer}}),Object.defineProperty(m.prototype,"offset",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.byteOffset}});function b(I){if(I>k)throw new RangeError('The value "'+I+'" is invalid for option "size"');const s=new Uint8Array(I);return Object.setPrototypeOf(s,m.prototype),s}r(b,"createBuffer");function m(I,s,h){if(typeof I=="number"){if(typeof s=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return a(I)}return B(I,s,h)}r(m,"Buffer"),m.poolSize=8192;function B(I,s,h){if(typeof I=="string")return l(I,s);if(ArrayBuffer.isView(I))return v(I);if(I==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I);if(Oe(I,ArrayBuffer)||I&&Oe(I.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Oe(I,SharedArrayBuffer)||I&&Oe(I.buffer,SharedArrayBuffer)))return y(I,s,h);if(typeof I=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const D=I.valueOf&&I.valueOf();if(D!=null&&D!==I)return m.from(D,s,h);const q=g(I);if(q)return q;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof I[Symbol.toPrimitive]=="function")return m.from(I[Symbol.toPrimitive]("string"),s,h);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I)}r(B,"from"),m.from=function(I,s,h){return B(I,s,h)},Object.setPrototypeOf(m.prototype,Uint8Array.prototype),Object.setPrototypeOf(m,Uint8Array);function N(I){if(typeof I!="number")throw new TypeError('"size" argument must be of type number');if(I<0)throw new RangeError('The value "'+I+'" is invalid for option "size"')}r(N,"assertSize");function p(I,s,h){return N(I),I<=0?b(I):s!==void 0?typeof h=="string"?b(I).fill(s,h):b(I).fill(s):b(I)}r(p,"alloc"),m.alloc=function(I,s,h){return p(I,s,h)};function a(I){return N(I),b(I<0?0:A(I)|0)}r(a,"allocUnsafe"),m.allocUnsafe=function(I){return a(I)},m.allocUnsafeSlow=function(I){return a(I)};function l(I,s){if((typeof s!="string"||s==="")&&(s="utf8"),!m.isEncoding(s))throw new TypeError("Unknown encoding: "+s);const h=R(I,s)|0;let D=b(h);const q=D.write(I,s);return q!==h&&(D=D.slice(0,q)),D}r(l,"fromString");function u(I){const s=I.length<0?0:A(I.length)|0,h=b(s);for(let D=0;D<s;D+=1)h[D]=I[D]&255;return h}r(u,"fromArrayLike");function v(I){if(Oe(I,Uint8Array)){const s=new Uint8Array(I);return y(s.buffer,s.byteOffset,s.byteLength)}return u(I)}r(v,"fromArrayView");function y(I,s,h){if(s<0||I.byteLength<s)throw new RangeError('"offset" is outside of buffer bounds');if(I.byteLength<s+(h||0))throw new RangeError('"length" is outside of buffer bounds');let D;return s===void 0&&h===void 0?D=new Uint8Array(I):h===void 0?D=new Uint8Array(I,s):D=new Uint8Array(I,s,h),Object.setPrototypeOf(D,m.prototype),D}r(y,"fromArrayBuffer");function g(I){if(m.isBuffer(I)){const s=A(I.length)|0,h=b(s);return h.length===0||I.copy(h,0,0,s),h}if(I.length!==void 0)return typeof I.length!="number"||Ae(I.length)?b(0):u(I);if(I.type==="Buffer"&&Array.isArray(I.data))return u(I.data)}r(g,"fromObject");function A(I){if(I>=k)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+k.toString(16)+" bytes");return I|0}r(A,"checked");function w(I){return+I!=I&&(I=0),m.alloc(+I)}r(w,"SlowBuffer"),m.isBuffer=r(function(s){return s!=null&&s._isBuffer===!0&&s!==m.prototype},"isBuffer"),m.compare=r(function(s,h){if(Oe(s,Uint8Array)&&(s=m.from(s,s.offset,s.byteLength)),Oe(h,Uint8Array)&&(h=m.from(h,h.offset,h.byteLength)),!m.isBuffer(s)||!m.isBuffer(h))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(s===h)return 0;let D=s.length,q=h.length;for(let se=0,ne=Math.min(D,q);se<ne;++se)if(s[se]!==h[se]){D=s[se],q=h[se];break}return D<q?-1:q<D?1:0},"compare"),m.isEncoding=r(function(s){switch(String(s).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},"isEncoding"),m.concat=r(function(s,h){if(!Array.isArray(s))throw new TypeError('"list" argument must be an Array of Buffers');if(s.length===0)return m.alloc(0);let D;if(h===void 0)for(h=0,D=0;D<s.length;++D)h+=s[D].length;const q=m.allocUnsafe(h);let se=0;for(D=0;D<s.length;++D){let ne=s[D];if(Oe(ne,Uint8Array))se+ne.length>q.length?(m.isBuffer(ne)||(ne=m.from(ne)),ne.copy(q,se)):Uint8Array.prototype.set.call(q,ne,se);else if(m.isBuffer(ne))ne.copy(q,se);else throw new TypeError('"list" argument must be an Array of Buffers');se+=ne.length}return q},"concat");function R(I,s){if(m.isBuffer(I))return I.length;if(ArrayBuffer.isView(I)||Oe(I,ArrayBuffer))return I.byteLength;if(typeof I!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof I);const h=I.length,D=arguments.length>2&&arguments[2]===!0;if(!D&&h===0)return 0;let q=!1;for(;;)switch(s){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return ve(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h*2;case"hex":return h>>>1;case"base64":return Me(I).length;default:if(q)return D?-1:ve(I).length;s=(""+s).toLowerCase(),q=!0}}r(R,"byteLength"),m.byteLength=R;function C(I,s,h){let D=!1;if((s===void 0||s<0)&&(s=0),s>this.length||((h===void 0||h>this.length)&&(h=this.length),h<=0)||(h>>>=0,s>>>=0,h<=s))return"";for(I||(I="utf8");;)switch(I){case"hex":return M(this,s,h);case"utf8":case"utf-8":return E(this,s,h);case"ascii":return c(this,s,h);case"latin1":case"binary":return S(this,s,h);case"base64":return te(this,s,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,s,h);default:if(D)throw new TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),D=!0}}r(C,"slowToString"),m.prototype._isBuffer=!0;function L(I,s,h){const D=I[s];I[s]=I[h],I[h]=D}r(L,"swap"),m.prototype.swap16=r(function(){const s=this.length;if(s%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let h=0;h<s;h+=2)L(this,h,h+1);return this},"swap16"),m.prototype.swap32=r(function(){const s=this.length;if(s%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let h=0;h<s;h+=4)L(this,h,h+3),L(this,h+1,h+2);return this},"swap32"),m.prototype.swap64=r(function(){const s=this.length;if(s%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let h=0;h<s;h+=8)L(this,h,h+7),L(this,h+1,h+6),L(this,h+2,h+5),L(this,h+3,h+4);return this},"swap64"),m.prototype.toString=r(function(){const s=this.length;return s===0?"":arguments.length===0?E(this,0,s):C.apply(this,arguments)},"toString"),m.prototype.toLocaleString=m.prototype.toString,m.prototype.equals=r(function(s){if(!m.isBuffer(s))throw new TypeError("Argument must be a Buffer");return this===s?!0:m.compare(this,s)===0},"equals"),m.prototype.inspect=r(function(){let s="";const h=$.INSPECT_MAX_BYTES;return s=this.toString("hex",0,h).replace(/(.{2})/g,"$1 ").trim(),this.length>h&&(s+=" ... "),"<Buffer "+s+">"},"inspect"),z&&(m.prototype[z]=m.prototype.inspect),m.prototype.compare=r(function(s,h,D,q,se){if(Oe(s,Uint8Array)&&(s=m.from(s,s.offset,s.byteLength)),!m.isBuffer(s))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof s);if(h===void 0&&(h=0),D===void 0&&(D=s?s.length:0),q===void 0&&(q=0),se===void 0&&(se=this.length),h<0||D>s.length||q<0||se>this.length)throw new RangeError("out of range index");if(q>=se&&h>=D)return 0;if(q>=se)return-1;if(h>=D)return 1;if(h>>>=0,D>>>=0,q>>>=0,se>>>=0,this===s)return 0;let ne=se-q,Ie=D-h;const Ue=Math.min(ne,Ie),Ce=this.slice(q,se),Ne=s.slice(h,D);for(let Ve=0;Ve<Ue;++Ve)if(Ce[Ve]!==Ne[Ve]){ne=Ce[Ve],Ie=Ne[Ve];break}return ne<Ie?-1:Ie<ne?1:0},"compare");function V(I,s,h,D,q){if(I.length===0)return-1;if(typeof h=="string"?(D=h,h=0):h>2147483647?h=2147483647:h<-2147483648&&(h=-2147483648),h=+h,Ae(h)&&(h=q?0:I.length-1),h<0&&(h=I.length+h),h>=I.length){if(q)return-1;h=I.length-1}else if(h<0)if(q)h=0;else return-1;if(typeof s=="string"&&(s=m.from(s,D)),m.isBuffer(s))return s.length===0?-1:Q(I,s,h,D,q);if(typeof s=="number")return s=s&255,typeof Uint8Array.prototype.indexOf=="function"?q?Uint8Array.prototype.indexOf.call(I,s,h):Uint8Array.prototype.lastIndexOf.call(I,s,h):Q(I,[s],h,D,q);throw new TypeError("val must be string, number or Buffer")}r(V,"bidirectionalIndexOf");function Q(I,s,h,D,q){let se=1,ne=I.length,Ie=s.length;if(D!==void 0&&(D=String(D).toLowerCase(),D==="ucs2"||D==="ucs-2"||D==="utf16le"||D==="utf-16le")){if(I.length<2||s.length<2)return-1;se=2,ne/=2,Ie/=2,h/=2}function Ue(Ne,Ve){return se===1?Ne[Ve]:Ne.readUInt16BE(Ve*se)}r(Ue,"read");let Ce;if(q){let Ne=-1;for(Ce=h;Ce<ne;Ce++)if(Ue(I,Ce)===Ue(s,Ne===-1?0:Ce-Ne)){if(Ne===-1&&(Ne=Ce),Ce-Ne+1===Ie)return Ne*se}else Ne!==-1&&(Ce-=Ce-Ne),Ne=-1}else for(h+Ie>ne&&(h=ne-Ie),Ce=h;Ce>=0;Ce--){let Ne=!0;for(let Ve=0;Ve<Ie;Ve++)if(Ue(I,Ce+Ve)!==Ue(s,Ve)){Ne=!1;break}if(Ne)return Ce}return-1}r(Q,"arrayIndexOf"),m.prototype.includes=r(function(s,h,D){return this.indexOf(s,h,D)!==-1},"includes"),m.prototype.indexOf=r(function(s,h,D){return V(this,s,h,D,!0)},"indexOf"),m.prototype.lastIndexOf=r(function(s,h,D){return V(this,s,h,D,!1)},"lastIndexOf");function ie(I,s,h,D){h=Number(h)||0;const q=I.length-h;D?(D=Number(D),D>q&&(D=q)):D=q;const se=s.length;D>se/2&&(D=se/2);let ne;for(ne=0;ne<D;++ne){const Ie=parseInt(s.substr(ne*2,2),16);if(Ae(Ie))return ne;I[h+ne]=Ie}return ne}r(ie,"hexWrite");function ae(I,s,h,D){return me(ve(s,I.length-h),I,h,D)}r(ae,"utf8Write");function oe(I,s,h,D){return me(Re(s),I,h,D)}r(oe,"asciiWrite");function ge(I,s,h,D){return me(Me(s),I,h,D)}r(ge,"base64Write");function de(I,s,h,D){return me(_e(s,I.length-h),I,h,D)}r(de,"ucs2Write"),m.prototype.write=r(function(s,h,D,q){if(h===void 0)q="utf8",D=this.length,h=0;else if(D===void 0&&typeof h=="string")q=h,D=this.length,h=0;else if(isFinite(h))h=h>>>0,isFinite(D)?(D=D>>>0,q===void 0&&(q="utf8")):(q=D,D=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const se=this.length-h;if((D===void 0||D>se)&&(D=se),s.length>0&&(D<0||h<0)||h>this.length)throw new RangeError("Attempt to write outside buffer bounds");q||(q="utf8");let ne=!1;for(;;)switch(q){case"hex":return ie(this,s,h,D);case"utf8":case"utf-8":return ae(this,s,h,D);case"ascii":case"latin1":case"binary":return oe(this,s,h,D);case"base64":return ge(this,s,h,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de(this,s,h,D);default:if(ne)throw new TypeError("Unknown encoding: "+q);q=(""+q).toLowerCase(),ne=!0}},"write"),m.prototype.toJSON=r(function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},"toJSON");function te(I,s,h){return s===0&&h===I.length?_.fromByteArray(I):_.fromByteArray(I.slice(s,h))}r(te,"base64Slice");function E(I,s,h){h=Math.min(I.length,h);const D=[];let q=s;for(;q<h;){const se=I[q];let ne=null,Ie=se>239?4:se>223?3:se>191?2:1;if(q+Ie<=h){let Ue,Ce,Ne,Ve;switch(Ie){case 1:se<128&&(ne=se);break;case 2:Ue=I[q+1],(Ue&192)===128&&(Ve=(se&31)<<6|Ue&63,Ve>127&&(ne=Ve));break;case 3:Ue=I[q+1],Ce=I[q+2],(Ue&192)===128&&(Ce&192)===128&&(Ve=(se&15)<<12|(Ue&63)<<6|Ce&63,Ve>2047&&(Ve<55296||Ve>57343)&&(ne=Ve));break;case 4:Ue=I[q+1],Ce=I[q+2],Ne=I[q+3],(Ue&192)===128&&(Ce&192)===128&&(Ne&192)===128&&(Ve=(se&15)<<18|(Ue&63)<<12|(Ce&63)<<6|Ne&63,Ve>65535&&Ve<1114112&&(ne=Ve))}}ne===null?(ne=65533,Ie=1):ne>65535&&(ne-=65536,D.push(ne>>>10&1023|55296),ne=56320|ne&1023),D.push(ne),q+=Ie}return o(D)}r(E,"utf8Slice");const i=4096;function o(I){const s=I.length;if(s<=i)return String.fromCharCode.apply(String,I);let h="",D=0;for(;D<s;)h+=String.fromCharCode.apply(String,I.slice(D,D+=i));return h}r(o,"decodeCodePointsArray");function c(I,s,h){let D="";h=Math.min(I.length,h);for(let q=s;q<h;++q)D+=String.fromCharCode(I[q]&127);return D}r(c,"asciiSlice");function S(I,s,h){let D="";h=Math.min(I.length,h);for(let q=s;q<h;++q)D+=String.fromCharCode(I[q]);return D}r(S,"latin1Slice");function M(I,s,h){const D=I.length;(!s||s<0)&&(s=0),(!h||h<0||h>D)&&(h=D);let q="";for(let se=s;se<h;++se)q+=De[I[se]];return q}r(M,"hexSlice");function G(I,s,h){const D=I.slice(s,h);let q="";for(let se=0;se<D.length-1;se+=2)q+=String.fromCharCode(D[se]+D[se+1]*256);return q}r(G,"utf16leSlice"),m.prototype.slice=r(function(s,h){const D=this.length;s=~~s,h=h===void 0?D:~~h,s<0?(s+=D,s<0&&(s=0)):s>D&&(s=D),h<0?(h+=D,h<0&&(h=0)):h>D&&(h=D),h<s&&(h=s);const q=this.subarray(s,h);return Object.setPrototypeOf(q,m.prototype),q},"slice");function J(I,s,h){if(I%1!==0||I<0)throw new RangeError("offset is not uint");if(I+s>h)throw new RangeError("Trying to access beyond buffer length")}r(J,"checkOffset"),m.prototype.readUintLE=m.prototype.readUIntLE=r(function(s,h,D){s=s>>>0,h=h>>>0,D||J(s,h,this.length);let q=this[s],se=1,ne=0;for(;++ne<h&&(se*=256);)q+=this[s+ne]*se;return q},"readUIntLE"),m.prototype.readUintBE=m.prototype.readUIntBE=r(function(s,h,D){s=s>>>0,h=h>>>0,D||J(s,h,this.length);let q=this[s+--h],se=1;for(;h>0&&(se*=256);)q+=this[s+--h]*se;return q},"readUIntBE"),m.prototype.readUint8=m.prototype.readUInt8=r(function(s,h){return s=s>>>0,h||J(s,1,this.length),this[s]},"readUInt8"),m.prototype.readUint16LE=m.prototype.readUInt16LE=r(function(s,h){return s=s>>>0,h||J(s,2,this.length),this[s]|this[s+1]<<8},"readUInt16LE"),m.prototype.readUint16BE=m.prototype.readUInt16BE=r(function(s,h){return s=s>>>0,h||J(s,2,this.length),this[s]<<8|this[s+1]},"readUInt16BE"),m.prototype.readUint32LE=m.prototype.readUInt32LE=r(function(s,h){return s=s>>>0,h||J(s,4,this.length),(this[s]|this[s+1]<<8|this[s+2]<<16)+this[s+3]*16777216},"readUInt32LE"),m.prototype.readUint32BE=m.prototype.readUInt32BE=r(function(s,h){return s=s>>>0,h||J(s,4,this.length),this[s]*16777216+(this[s+1]<<16|this[s+2]<<8|this[s+3])},"readUInt32BE"),m.prototype.readBigUInt64LE=Te(r(function(s){s=s>>>0,Se(s,"offset");const h=this[s],D=this[s+7];(h===void 0||D===void 0)&&K(s,this.length-8);const q=h+this[++s]*2**8+this[++s]*2**16+this[++s]*2**24,se=this[++s]+this[++s]*2**8+this[++s]*2**16+D*2**24;return BigInt(q)+(BigInt(se)<<BigInt(32))},"readBigUInt64LE")),m.prototype.readBigUInt64BE=Te(r(function(s){s=s>>>0,Se(s,"offset");const h=this[s],D=this[s+7];(h===void 0||D===void 0)&&K(s,this.length-8);const q=h*2**24+this[++s]*2**16+this[++s]*2**8+this[++s],se=this[++s]*2**24+this[++s]*2**16+this[++s]*2**8+D;return(BigInt(q)<<BigInt(32))+BigInt(se)},"readBigUInt64BE")),m.prototype.readIntLE=r(function(s,h,D){s=s>>>0,h=h>>>0,D||J(s,h,this.length);let q=this[s],se=1,ne=0;for(;++ne<h&&(se*=256);)q+=this[s+ne]*se;return se*=128,q>=se&&(q-=Math.pow(2,8*h)),q},"readIntLE"),m.prototype.readIntBE=r(function(s,h,D){s=s>>>0,h=h>>>0,D||J(s,h,this.length);let q=h,se=1,ne=this[s+--q];for(;q>0&&(se*=256);)ne+=this[s+--q]*se;return se*=128,ne>=se&&(ne-=Math.pow(2,8*h)),ne},"readIntBE"),m.prototype.readInt8=r(function(s,h){return s=s>>>0,h||J(s,1,this.length),this[s]&128?(255-this[s]+1)*-1:this[s]},"readInt8"),m.prototype.readInt16LE=r(function(s,h){s=s>>>0,h||J(s,2,this.length);const D=this[s]|this[s+1]<<8;return D&32768?D|4294901760:D},"readInt16LE"),m.prototype.readInt16BE=r(function(s,h){s=s>>>0,h||J(s,2,this.length);const D=this[s+1]|this[s]<<8;return D&32768?D|4294901760:D},"readInt16BE"),m.prototype.readInt32LE=r(function(s,h){return s=s>>>0,h||J(s,4,this.length),this[s]|this[s+1]<<8|this[s+2]<<16|this[s+3]<<24},"readInt32LE"),m.prototype.readInt32BE=r(function(s,h){return s=s>>>0,h||J(s,4,this.length),this[s]<<24|this[s+1]<<16|this[s+2]<<8|this[s+3]},"readInt32BE"),m.prototype.readBigInt64LE=Te(r(function(s){s=s>>>0,Se(s,"offset");const h=this[s],D=this[s+7];(h===void 0||D===void 0)&&K(s,this.length-8);const q=this[s+4]+this[s+5]*2**8+this[s+6]*2**16+(D<<24);return(BigInt(q)<<BigInt(32))+BigInt(h+this[++s]*256+this[++s]*65536+this[++s]*16777216)},"readBigInt64LE")),m.prototype.readBigInt64BE=Te(r(function(s){s=s>>>0,Se(s,"offset");const h=this[s],D=this[s+7];(h===void 0||D===void 0)&&K(s,this.length-8);const q=(h<<24)+this[++s]*2**16+this[++s]*2**8+this[++s];return(BigInt(q)<<BigInt(32))+BigInt(this[++s]*16777216+this[++s]*65536+this[++s]*256+D)},"readBigInt64BE")),m.prototype.readFloatLE=r(function(s,h){return s=s>>>0,h||J(s,4,this.length),Y.read(this,s,!0,23,4)},"readFloatLE"),m.prototype.readFloatBE=r(function(s,h){return s=s>>>0,h||J(s,4,this.length),Y.read(this,s,!1,23,4)},"readFloatBE"),m.prototype.readDoubleLE=r(function(s,h){return s=s>>>0,h||J(s,8,this.length),Y.read(this,s,!0,52,8)},"readDoubleLE"),m.prototype.readDoubleBE=r(function(s,h){return s=s>>>0,h||J(s,8,this.length),Y.read(this,s,!1,52,8)},"readDoubleBE");function F(I,s,h,D,q,se){if(!m.isBuffer(I))throw new TypeError('"buffer" argument must be a Buffer instance');if(s>q||s<se)throw new RangeError('"value" argument is out of bounds');if(h+D>I.length)throw new RangeError("Index out of range")}r(F,"checkInt"),m.prototype.writeUintLE=m.prototype.writeUIntLE=r(function(s,h,D,q){if(s=+s,h=h>>>0,D=D>>>0,!q){const Ie=Math.pow(2,8*D)-1;F(this,s,h,D,Ie,0)}let se=1,ne=0;for(this[h]=s&255;++ne<D&&(se*=256);)this[h+ne]=s/se&255;return h+D},"writeUIntLE"),m.prototype.writeUintBE=m.prototype.writeUIntBE=r(function(s,h,D,q){if(s=+s,h=h>>>0,D=D>>>0,!q){const Ie=Math.pow(2,8*D)-1;F(this,s,h,D,Ie,0)}let se=D-1,ne=1;for(this[h+se]=s&255;--se>=0&&(ne*=256);)this[h+se]=s/ne&255;return h+D},"writeUIntBE"),m.prototype.writeUint8=m.prototype.writeUInt8=r(function(s,h,D){return s=+s,h=h>>>0,D||F(this,s,h,1,255,0),this[h]=s&255,h+1},"writeUInt8"),m.prototype.writeUint16LE=m.prototype.writeUInt16LE=r(function(s,h,D){return s=+s,h=h>>>0,D||F(this,s,h,2,65535,0),this[h]=s&255,this[h+1]=s>>>8,h+2},"writeUInt16LE"),m.prototype.writeUint16BE=m.prototype.writeUInt16BE=r(function(s,h,D){return s=+s,h=h>>>0,D||F(this,s,h,2,65535,0),this[h]=s>>>8,this[h+1]=s&255,h+2},"writeUInt16BE"),m.prototype.writeUint32LE=m.prototype.writeUInt32LE=r(function(s,h,D){return s=+s,h=h>>>0,D||F(this,s,h,4,4294967295,0),this[h+3]=s>>>24,this[h+2]=s>>>16,this[h+1]=s>>>8,this[h]=s&255,h+4},"writeUInt32LE"),m.prototype.writeUint32BE=m.prototype.writeUInt32BE=r(function(s,h,D){return s=+s,h=h>>>0,D||F(this,s,h,4,4294967295,0),this[h]=s>>>24,this[h+1]=s>>>16,this[h+2]=s>>>8,this[h+3]=s&255,h+4},"writeUInt32BE");function f(I,s,h,D,q){ce(s,D,q,I,h,7);let se=Number(s&BigInt(4294967295));I[h++]=se,se=se>>8,I[h++]=se,se=se>>8,I[h++]=se,se=se>>8,I[h++]=se;let ne=Number(s>>BigInt(32)&BigInt(4294967295));return I[h++]=ne,ne=ne>>8,I[h++]=ne,ne=ne>>8,I[h++]=ne,ne=ne>>8,I[h++]=ne,h}r(f,"wrtBigUInt64LE");function H(I,s,h,D,q){ce(s,D,q,I,h,7);let se=Number(s&BigInt(4294967295));I[h+7]=se,se=se>>8,I[h+6]=se,se=se>>8,I[h+5]=se,se=se>>8,I[h+4]=se;let ne=Number(s>>BigInt(32)&BigInt(4294967295));return I[h+3]=ne,ne=ne>>8,I[h+2]=ne,ne=ne>>8,I[h+1]=ne,ne=ne>>8,I[h]=ne,h+8}r(H,"wrtBigUInt64BE"),m.prototype.writeBigUInt64LE=Te(r(function(s,h=0){return f(this,s,h,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64LE")),m.prototype.writeBigUInt64BE=Te(r(function(s,h=0){return H(this,s,h,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64BE")),m.prototype.writeIntLE=r(function(s,h,D,q){if(s=+s,h=h>>>0,!q){const Ue=Math.pow(2,8*D-1);F(this,s,h,D,Ue-1,-Ue)}let se=0,ne=1,Ie=0;for(this[h]=s&255;++se<D&&(ne*=256);)s<0&&Ie===0&&this[h+se-1]!==0&&(Ie=1),this[h+se]=(s/ne>>0)-Ie&255;return h+D},"writeIntLE"),m.prototype.writeIntBE=r(function(s,h,D,q){if(s=+s,h=h>>>0,!q){const Ue=Math.pow(2,8*D-1);F(this,s,h,D,Ue-1,-Ue)}let se=D-1,ne=1,Ie=0;for(this[h+se]=s&255;--se>=0&&(ne*=256);)s<0&&Ie===0&&this[h+se+1]!==0&&(Ie=1),this[h+se]=(s/ne>>0)-Ie&255;return h+D},"writeIntBE"),m.prototype.writeInt8=r(function(s,h,D){return s=+s,h=h>>>0,D||F(this,s,h,1,127,-128),s<0&&(s=255+s+1),this[h]=s&255,h+1},"writeInt8"),m.prototype.writeInt16LE=r(function(s,h,D){return s=+s,h=h>>>0,D||F(this,s,h,2,32767,-32768),this[h]=s&255,this[h+1]=s>>>8,h+2},"writeInt16LE"),m.prototype.writeInt16BE=r(function(s,h,D){return s=+s,h=h>>>0,D||F(this,s,h,2,32767,-32768),this[h]=s>>>8,this[h+1]=s&255,h+2},"writeInt16BE"),m.prototype.writeInt32LE=r(function(s,h,D){return s=+s,h=h>>>0,D||F(this,s,h,4,2147483647,-2147483648),this[h]=s&255,this[h+1]=s>>>8,this[h+2]=s>>>16,this[h+3]=s>>>24,h+4},"writeInt32LE"),m.prototype.writeInt32BE=r(function(s,h,D){return s=+s,h=h>>>0,D||F(this,s,h,4,2147483647,-2147483648),s<0&&(s=4294967295+s+1),this[h]=s>>>24,this[h+1]=s>>>16,this[h+2]=s>>>8,this[h+3]=s&255,h+4},"writeInt32BE"),m.prototype.writeBigInt64LE=Te(r(function(s,h=0){return f(this,s,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64LE")),m.prototype.writeBigInt64BE=Te(r(function(s,h=0){return H(this,s,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64BE"));function xe(I,s,h,D,q,se){if(h+D>I.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}r(xe,"checkIEEE754");function ye(I,s,h,D,q){return s=+s,h=h>>>0,q||xe(I,s,h,4,34028234663852886e22,-34028234663852886e22),Y.write(I,s,h,D,23,4),h+4}r(ye,"writeFloat"),m.prototype.writeFloatLE=r(function(s,h,D){return ye(this,s,h,!0,D)},"writeFloatLE"),m.prototype.writeFloatBE=r(function(s,h,D){return ye(this,s,h,!1,D)},"writeFloatBE");function Ee(I,s,h,D,q){return s=+s,h=h>>>0,q||xe(I,s,h,8,17976931348623157e292,-17976931348623157e292),Y.write(I,s,h,D,52,8),h+8}r(Ee,"writeDouble"),m.prototype.writeDoubleLE=r(function(s,h,D){return Ee(this,s,h,!0,D)},"writeDoubleLE"),m.prototype.writeDoubleBE=r(function(s,h,D){return Ee(this,s,h,!1,D)},"writeDoubleBE"),m.prototype.copy=r(function(s,h,D,q){if(!m.isBuffer(s))throw new TypeError("argument should be a Buffer");if(D||(D=0),!q&&q!==0&&(q=this.length),h>=s.length&&(h=s.length),h||(h=0),q>0&&q<D&&(q=D),q===D||s.length===0||this.length===0)return 0;if(h<0)throw new RangeError("targetStart out of bounds");if(D<0||D>=this.length)throw new RangeError("Index out of range");if(q<0)throw new RangeError("sourceEnd out of bounds");q>this.length&&(q=this.length),s.length-h<q-D&&(q=s.length-h+D);const se=q-D;return this===s&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(h,D,q):Uint8Array.prototype.set.call(s,this.subarray(D,q),h),se},"copy"),m.prototype.fill=r(function(s,h,D,q){if(typeof s=="string"){if(typeof h=="string"?(q=h,h=0,D=this.length):typeof D=="string"&&(q=D,D=this.length),q!==void 0&&typeof q!="string")throw new TypeError("encoding must be a string");if(typeof q=="string"&&!m.isEncoding(q))throw new TypeError("Unknown encoding: "+q);if(s.length===1){const ne=s.charCodeAt(0);(q==="utf8"&&ne<128||q==="latin1")&&(s=ne)}}else typeof s=="number"?s=s&255:typeof s=="boolean"&&(s=Number(s));if(h<0||this.length<h||this.length<D)throw new RangeError("Out of range index");if(D<=h)return this;h=h>>>0,D=D===void 0?this.length:D>>>0,s||(s=0);let se;if(typeof s=="number")for(se=h;se<D;++se)this[se]=s;else{const ne=m.isBuffer(s)?s:m.from(s,q),Ie=ne.length;if(Ie===0)throw new TypeError('The value "'+s+'" is invalid for argument "value"');for(se=0;se<D-h;++se)this[se+h]=ne[se%Ie]}return this},"fill");const U={};function X(I,s,h){U[I]=class extends h{static{r(this,"NodeError")}constructor(){super(),Object.defineProperty(this,"message",{value:s.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${I}]`,this.stack,delete this.name}get code(){return I}set code(q){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:q,writable:!0})}toString(){return`${this.name} [${I}]: ${this.message}`}}}r(X,"E"),X("ERR_BUFFER_OUT_OF_BOUNDS",function(I){return I?`${I} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),X("ERR_INVALID_ARG_TYPE",function(I,s){return`The "${I}" argument must be of type number. Received type ${typeof s}`},TypeError),X("ERR_OUT_OF_RANGE",function(I,s,h){let D=`The value of "${I}" is out of range.`,q=h;return Number.isInteger(h)&&Math.abs(h)>4294967296?q=Z(String(h)):typeof h=="bigint"&&(q=String(h),(h>BigInt(2)**BigInt(32)||h<-(BigInt(2)**BigInt(32)))&&(q=Z(q)),q+="n"),D+=` It must be ${s}. Received ${q}`,D},RangeError);function Z(I){let s="",h=I.length;const D=I[0]==="-"?1:0;for(;h>=D+4;h-=3)s=`_${I.slice(h-3,h)}${s}`;return`${I.slice(0,h)}${s}`}r(Z,"addNumericalSeparator");function ue(I,s,h){Se(s,"offset"),(I[s]===void 0||I[s+h]===void 0)&&K(s,I.length-(h+1))}r(ue,"checkBounds");function ce(I,s,h,D,q,se){if(I>h||I<s){const ne=typeof s=="bigint"?"n":"";let Ie;throw se>3?s===0||s===BigInt(0)?Ie=`>= 0${ne} and < 2${ne} ** ${(se+1)*8}${ne}`:Ie=`>= -(2${ne} ** ${(se+1)*8-1}${ne}) and < 2 ** ${(se+1)*8-1}${ne}`:Ie=`>= ${s}${ne} and <= ${h}${ne}`,new U.ERR_OUT_OF_RANGE("value",Ie,I)}ue(D,q,se)}r(ce,"checkIntBI");function Se(I,s){if(typeof I!="number")throw new U.ERR_INVALID_ARG_TYPE(s,"number",I)}r(Se,"validateNumber");function K(I,s,h){throw Math.floor(I)!==I?(Se(I,h),new U.ERR_OUT_OF_RANGE(h||"offset","an integer",I)):s<0?new U.ERR_BUFFER_OUT_OF_BOUNDS:new U.ERR_OUT_OF_RANGE(h||"offset",`>= ${h?1:0} and <= ${s}`,I)}r(K,"boundsError");const j=/[^+/0-9A-Za-z-_]/g;function fe(I){if(I=I.split("=")[0],I=I.trim().replace(j,""),I.length<2)return"";for(;I.length%4!==0;)I=I+"=";return I}r(fe,"base64clean");function ve(I,s){s=s||1/0;let h;const D=I.length;let q=null;const se=[];for(let ne=0;ne<D;++ne){if(h=I.charCodeAt(ne),h>55295&&h<57344){if(!q){if(h>56319){(s-=3)>-1&&se.push(239,191,189);continue}else if(ne+1===D){(s-=3)>-1&&se.push(239,191,189);continue}q=h;continue}if(h<56320){(s-=3)>-1&&se.push(239,191,189),q=h;continue}h=(q-55296<<10|h-56320)+65536}else q&&(s-=3)>-1&&se.push(239,191,189);if(q=null,h<128){if((s-=1)<0)break;se.push(h)}else if(h<2048){if((s-=2)<0)break;se.push(h>>6|192,h&63|128)}else if(h<65536){if((s-=3)<0)break;se.push(h>>12|224,h>>6&63|128,h&63|128)}else if(h<1114112){if((s-=4)<0)break;se.push(h>>18|240,h>>12&63|128,h>>6&63|128,h&63|128)}else throw new Error("Invalid code point")}return se}r(ve,"utf8ToBytes");function Re(I){const s=[];for(let h=0;h<I.length;++h)s.push(I.charCodeAt(h)&255);return s}r(Re,"asciiToBytes");function _e(I,s){let h,D,q;const se=[];for(let ne=0;ne<I.length&&!((s-=2)<0);++ne)h=I.charCodeAt(ne),D=h>>8,q=h%256,se.push(q),se.push(D);return se}r(_e,"utf16leToBytes");function Me(I){return _.toByteArray(fe(I))}r(Me,"base64ToBytes");function me(I,s,h,D){let q;for(q=0;q<D&&!(q+h>=s.length||q>=I.length);++q)s[q+h]=I[q];return q}r(me,"blitBuffer");function Oe(I,s){return I instanceof s||I!=null&&I.constructor!=null&&I.constructor.name!=null&&I.constructor.name===s.name}r(Oe,"isInstance");function Ae(I){return I!==I}r(Ae,"numberIsNaN");const De=function(){const I="0123456789abcdef",s=new Array(256);for(let h=0;h<16;++h){const D=h*16;for(let q=0;q<16;++q)s[D+q]=I[h]+I[q]}return s}();function Te(I){return typeof BigInt>"u"?Ze:I}r(Te,"defineBigIntMethod");function Ze(){throw new Error("BigInt not supported")}r(Ze,"BufferBigIntNotDefined")},8028:(re,$,P)=>{var _=P(2318);re.exports=function(Y){return new _().update(Y).digest()}},7187:re=>{"use strict";var $=typeof Reflect=="object"?Reflect:null,P=$&&typeof $.apply=="function"?$.apply:r(function(C,L,V){return Function.prototype.apply.call(C,L,V)},"ReflectApply"),_;$&&typeof $.ownKeys=="function"?_=$.ownKeys:Object.getOwnPropertySymbols?_=r(function(C){return Object.getOwnPropertyNames(C).concat(Object.getOwnPropertySymbols(C))},"ReflectOwnKeys"):_=r(function(C){return Object.getOwnPropertyNames(C)},"ReflectOwnKeys");function Y(R){console&&console.warn&&console.warn(R)}r(Y,"ProcessEmitWarning");var z=Number.isNaN||r(function(C){return C!==C},"NumberIsNaN");function k(){k.init.call(this)}r(k,"EventEmitter"),re.exports=k,re.exports.once=g,k.EventEmitter=k,k.prototype._events=void 0,k.prototype._eventsCount=0,k.prototype._maxListeners=void 0;var d=10;function b(R){if(typeof R!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof R)}r(b,"checkListener"),Object.defineProperty(k,"defaultMaxListeners",{enumerable:!0,get:function(){return d},set:function(R){if(typeof R!="number"||R<0||z(R))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+R+".");d=R}}),k.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},k.prototype.setMaxListeners=r(function(C){if(typeof C!="number"||C<0||z(C))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+C+".");return this._maxListeners=C,this},"setMaxListeners");function m(R){return R._maxListeners===void 0?k.defaultMaxListeners:R._maxListeners}r(m,"_getMaxListeners"),k.prototype.getMaxListeners=r(function(){return m(this)},"getMaxListeners"),k.prototype.emit=r(function(C){for(var L=[],V=1;V<arguments.length;V++)L.push(arguments[V]);var Q=C==="error",ie=this._events;if(ie!==void 0)Q=Q&&ie.error===void 0;else if(!Q)return!1;if(Q){var ae;if(L.length>0&&(ae=L[0]),ae instanceof Error)throw ae;var oe=new Error("Unhandled error."+(ae?" ("+ae.message+")":""));throw oe.context=ae,oe}var ge=ie[C];if(ge===void 0)return!1;if(typeof ge=="function")P(ge,this,L);else for(var de=ge.length,te=u(ge,de),V=0;V<de;++V)P(te[V],this,L);return!0},"emit");function B(R,C,L,V){var Q,ie,ae;if(b(L),ie=R._events,ie===void 0?(ie=R._events=Object.create(null),R._eventsCount=0):(ie.newListener!==void 0&&(R.emit("newListener",C,L.listener?L.listener:L),ie=R._events),ae=ie[C]),ae===void 0)ae=ie[C]=L,++R._eventsCount;else if(typeof ae=="function"?ae=ie[C]=V?[L,ae]:[ae,L]:V?ae.unshift(L):ae.push(L),Q=m(R),Q>0&&ae.length>Q&&!ae.warned){ae.warned=!0;var oe=new Error("Possible EventEmitter memory leak detected. "+ae.length+" "+String(C)+" listeners added. Use emitter.setMaxListeners() to increase limit");oe.name="MaxListenersExceededWarning",oe.emitter=R,oe.type=C,oe.count=ae.length,Y(oe)}return R}r(B,"_addListener"),k.prototype.addListener=r(function(C,L){return B(this,C,L,!1)},"addListener"),k.prototype.on=k.prototype.addListener,k.prototype.prependListener=r(function(C,L){return B(this,C,L,!0)},"prependListener");function N(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}r(N,"onceWrapper");function p(R,C,L){var V={fired:!1,wrapFn:void 0,target:R,type:C,listener:L},Q=N.bind(V);return Q.listener=L,V.wrapFn=Q,Q}r(p,"_onceWrap"),k.prototype.once=r(function(C,L){return b(L),this.on(C,p(this,C,L)),this},"once"),k.prototype.prependOnceListener=r(function(C,L){return b(L),this.prependListener(C,p(this,C,L)),this},"prependOnceListener"),k.prototype.removeListener=r(function(C,L){var V,Q,ie,ae,oe;if(b(L),Q=this._events,Q===void 0)return this;if(V=Q[C],V===void 0)return this;if(V===L||V.listener===L)--this._eventsCount===0?this._events=Object.create(null):(delete Q[C],Q.removeListener&&this.emit("removeListener",C,V.listener||L));else if(typeof V!="function"){for(ie=-1,ae=V.length-1;ae>=0;ae--)if(V[ae]===L||V[ae].listener===L){oe=V[ae].listener,ie=ae;break}if(ie<0)return this;ie===0?V.shift():v(V,ie),V.length===1&&(Q[C]=V[0]),Q.removeListener!==void 0&&this.emit("removeListener",C,oe||L)}return this},"removeListener"),k.prototype.off=k.prototype.removeListener,k.prototype.removeAllListeners=r(function(C){var L,V,Q;if(V=this._events,V===void 0)return this;if(V.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):V[C]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete V[C]),this;if(arguments.length===0){var ie=Object.keys(V),ae;for(Q=0;Q<ie.length;++Q)ae=ie[Q],ae!=="removeListener"&&this.removeAllListeners(ae);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(L=V[C],typeof L=="function")this.removeListener(C,L);else if(L!==void 0)for(Q=L.length-1;Q>=0;Q--)this.removeListener(C,L[Q]);return this},"removeAllListeners");function a(R,C,L){var V=R._events;if(V===void 0)return[];var Q=V[C];return Q===void 0?[]:typeof Q=="function"?L?[Q.listener||Q]:[Q]:L?y(Q):u(Q,Q.length)}r(a,"_listeners"),k.prototype.listeners=r(function(C){return a(this,C,!0)},"listeners"),k.prototype.rawListeners=r(function(C){return a(this,C,!1)},"rawListeners"),k.listenerCount=function(R,C){return typeof R.listenerCount=="function"?R.listenerCount(C):l.call(R,C)},k.prototype.listenerCount=l;function l(R){var C=this._events;if(C!==void 0){var L=C[R];if(typeof L=="function")return 1;if(L!==void 0)return L.length}return 0}r(l,"listenerCount"),k.prototype.eventNames=r(function(){return this._eventsCount>0?_(this._events):[]},"eventNames");function u(R,C){for(var L=new Array(C),V=0;V<C;++V)L[V]=R[V];return L}r(u,"arrayClone");function v(R,C){for(;C+1<R.length;C++)R[C]=R[C+1];R.pop()}r(v,"spliceOne");function y(R){for(var C=new Array(R.length),L=0;L<C.length;++L)C[L]=R[L].listener||R[L];return C}r(y,"unwrapListeners");function g(R,C){return new Promise(function(L,V){function Q(ae){R.removeListener(C,ie),V(ae)}r(Q,"errorListener");function ie(){typeof R.removeListener=="function"&&R.removeListener("error",Q),L([].slice.call(arguments))}r(ie,"resolver"),w(R,C,ie,{once:!0}),C!=="error"&&A(R,Q,{once:!0})})}r(g,"once");function A(R,C,L){typeof R.on=="function"&&w(R,"error",C,L)}r(A,"addErrorHandlerIfEventEmitter");function w(R,C,L,V){if(typeof R.on=="function")V.once?R.once(C,L):R.on(C,L);else if(typeof R.addEventListener=="function")R.addEventListener(C,r(function Q(ie){V.once&&R.removeEventListener(C,Q),L(ie)},"wrapListener"));else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof R)}r(w,"eventTargetAgnosticAddListener")},3349:(re,$,P)=>{"use strict";var _=P(9509).Buffer,Y=P(8473).Transform,z=P(5717);function k(b,m){if(!_.isBuffer(b)&&typeof b!="string")throw new TypeError(m+" must be a string or a buffer")}r(k,"throwIfNotStringOrBuffer");function d(b){Y.call(this),this._block=_.allocUnsafe(b),this._blockSize=b,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(d,"HashBase"),z(d,Y),d.prototype._transform=function(b,m,B){var N=null;try{this.update(b,m)}catch(p){N=p}B(N)},d.prototype._flush=function(b){var m=null;try{this.push(this.digest())}catch(B){m=B}b(m)},d.prototype.update=function(b,m){if(k(b,"Data"),this._finalized)throw new Error("Digest already called");_.isBuffer(b)||(b=_.from(b,m));for(var B=this._block,N=0;this._blockOffset+b.length-N>=this._blockSize;){for(var p=this._blockOffset;p<this._blockSize;)B[p++]=b[N++];this._update(),this._blockOffset=0}for(;N<b.length;)B[this._blockOffset++]=b[N++];for(var a=0,l=b.length*8;l>0;++a)this._length[a]+=l,l=this._length[a]/4294967296|0,l>0&&(this._length[a]-=4294967296*l);return this},d.prototype._update=function(){throw new Error("_update is not implemented")},d.prototype.digest=function(b){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var m=this._digest();b!==void 0&&(m=m.toString(b)),this._block.fill(0),this._blockOffset=0;for(var B=0;B<4;++B)this._length[B]=0;return m},d.prototype._digest=function(){throw new Error("_digest is not implemented")},re.exports=d},3715:(re,$,P)=>{var _=$;_.utils=P(6436),_.common=P(5772),_.sha=P(9041),_.ripemd=P(2949),_.hmac=P(2344),_.sha1=_.sha.sha1,_.sha256=_.sha.sha256,_.sha224=_.sha.sha224,_.sha384=_.sha.sha384,_.sha512=_.sha.sha512,_.ripemd160=_.ripemd.ripemd160},5772:(re,$,P)=>{"use strict";var _=P(6436),Y=P(9746);function z(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}r(z,"BlockHash"),$.BlockHash=z,z.prototype.update=r(function(d,b){if(d=_.toArray(d,b),this.pending?this.pending=this.pending.concat(d):this.pending=d,this.pendingTotal+=d.length,this.pending.length>=this._delta8){d=this.pending;var m=d.length%this._delta8;this.pending=d.slice(d.length-m,d.length),this.pending.length===0&&(this.pending=null),d=_.join32(d,0,d.length-m,this.endian);for(var B=0;B<d.length;B+=this._delta32)this._update(d,B,B+this._delta32)}return this},"update"),z.prototype.digest=r(function(d){return this.update(this._pad()),Y(this.pending===null),this._digest(d)},"digest"),z.prototype._pad=r(function(){var d=this.pendingTotal,b=this._delta8,m=b-(d+this.padLength)%b,B=new Array(m+this.padLength);B[0]=128;for(var N=1;N<m;N++)B[N]=0;if(d<<=3,this.endian==="big"){for(var p=8;p<this.padLength;p++)B[N++]=0;B[N++]=0,B[N++]=0,B[N++]=0,B[N++]=0,B[N++]=d>>>24&255,B[N++]=d>>>16&255,B[N++]=d>>>8&255,B[N++]=d&255}else for(B[N++]=d&255,B[N++]=d>>>8&255,B[N++]=d>>>16&255,B[N++]=d>>>24&255,B[N++]=0,B[N++]=0,B[N++]=0,B[N++]=0,p=8;p<this.padLength;p++)B[N++]=0;return B},"pad")},2344:(re,$,P)=>{"use strict";var _=P(6436),Y=P(9746);function z(k,d,b){if(!(this instanceof z))return new z(k,d,b);this.Hash=k,this.blockSize=k.blockSize/8,this.outSize=k.outSize/8,this.inner=null,this.outer=null,this._init(_.toArray(d,b))}r(z,"Hmac"),re.exports=z,z.prototype._init=r(function(d){d.length>this.blockSize&&(d=new this.Hash().update(d).digest()),Y(d.length<=this.blockSize);for(var b=d.length;b<this.blockSize;b++)d.push(0);for(b=0;b<d.length;b++)d[b]^=54;for(this.inner=new this.Hash().update(d),b=0;b<d.length;b++)d[b]^=106;this.outer=new this.Hash().update(d)},"init"),z.prototype.update=r(function(d,b){return this.inner.update(d,b),this},"update"),z.prototype.digest=r(function(d){return this.outer.update(this.inner.digest()),this.outer.digest(d)},"digest")},2949:(re,$,P)=>{"use strict";var _=P(6436),Y=P(5772),z=_.rotl32,k=_.sum32,d=_.sum32_3,b=_.sum32_4,m=Y.BlockHash;function B(){if(!(this instanceof B))return new B;m.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}r(B,"RIPEMD160"),_.inherits(B,m),$.ripemd160=B,B.blockSize=512,B.outSize=160,B.hmacStrength=192,B.padLength=64,B.prototype._update=r(function(A,w){for(var R=this.h[0],C=this.h[1],L=this.h[2],V=this.h[3],Q=this.h[4],ie=R,ae=C,oe=L,ge=V,de=Q,te=0;te<80;te++){var E=k(z(b(R,N(te,C,L,V),A[l[te]+w],p(te)),v[te]),Q);R=Q,Q=V,V=z(L,10),L=C,C=E,E=k(z(b(ie,N(79-te,ae,oe,ge),A[u[te]+w],a(te)),y[te]),de),ie=de,de=ge,ge=z(oe,10),oe=ae,ae=E}E=d(this.h[1],L,ge),this.h[1]=d(this.h[2],V,de),this.h[2]=d(this.h[3],Q,ie),this.h[3]=d(this.h[4],R,ae),this.h[4]=d(this.h[0],C,oe),this.h[0]=E},"update"),B.prototype._digest=r(function(A){return A==="hex"?_.toHex32(this.h,"little"):_.split32(this.h,"little")},"digest");function N(g,A,w,R){return g<=15?A^w^R:g<=31?A&w|~A&R:g<=47?(A|~w)^R:g<=63?A&R|w&~R:A^(w|~R)}r(N,"f");function p(g){return g<=15?0:g<=31?1518500249:g<=47?1859775393:g<=63?2400959708:2840853838}r(p,"K");function a(g){return g<=15?1352829926:g<=31?1548603684:g<=47?1836072691:g<=63?2053994217:0}r(a,"Kh");var l=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],u=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],v=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],y=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},9041:(re,$,P)=>{"use strict";$.sha1=P(4761),$.sha224=P(799),$.sha256=P(9344),$.sha384=P(772),$.sha512=P(5900)},4761:(re,$,P)=>{"use strict";var _=P(6436),Y=P(5772),z=P(7038),k=_.rotl32,d=_.sum32,b=_.sum32_5,m=z.ft_1,B=Y.BlockHash,N=[1518500249,1859775393,2400959708,3395469782];function p(){if(!(this instanceof p))return new p;B.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r(p,"SHA1"),_.inherits(p,B),re.exports=p,p.blockSize=512,p.outSize=160,p.hmacStrength=80,p.padLength=64,p.prototype._update=r(function(l,u){for(var v=this.W,y=0;y<16;y++)v[y]=l[u+y];for(;y<v.length;y++)v[y]=k(v[y-3]^v[y-8]^v[y-14]^v[y-16],1);var g=this.h[0],A=this.h[1],w=this.h[2],R=this.h[3],C=this.h[4];for(y=0;y<v.length;y++){var L=~~(y/20),V=b(k(g,5),m(L,A,w,R),C,v[y],N[L]);C=R,R=w,w=k(A,30),A=g,g=V}this.h[0]=d(this.h[0],g),this.h[1]=d(this.h[1],A),this.h[2]=d(this.h[2],w),this.h[3]=d(this.h[3],R),this.h[4]=d(this.h[4],C)},"_update"),p.prototype._digest=r(function(l){return l==="hex"?_.toHex32(this.h,"big"):_.split32(this.h,"big")},"digest")},799:(re,$,P)=>{"use strict";var _=P(6436),Y=P(9344);function z(){if(!(this instanceof z))return new z;Y.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r(z,"SHA224"),_.inherits(z,Y),re.exports=z,z.blockSize=512,z.outSize=224,z.hmacStrength=192,z.padLength=64,z.prototype._digest=r(function(d){return d==="hex"?_.toHex32(this.h.slice(0,7),"big"):_.split32(this.h.slice(0,7),"big")},"digest")},9344:(re,$,P)=>{"use strict";var _=P(6436),Y=P(5772),z=P(7038),k=P(9746),d=_.sum32,b=_.sum32_4,m=_.sum32_5,B=z.ch32,N=z.maj32,p=z.s0_256,a=z.s1_256,l=z.g0_256,u=z.g1_256,v=Y.BlockHash,y=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function g(){if(!(this instanceof g))return new g;v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}r(g,"SHA256"),_.inherits(g,v),re.exports=g,g.blockSize=512,g.outSize=256,g.hmacStrength=192,g.padLength=64,g.prototype._update=r(function(w,R){for(var C=this.W,L=0;L<16;L++)C[L]=w[R+L];for(;L<C.length;L++)C[L]=b(u(C[L-2]),C[L-7],l(C[L-15]),C[L-16]);var V=this.h[0],Q=this.h[1],ie=this.h[2],ae=this.h[3],oe=this.h[4],ge=this.h[5],de=this.h[6],te=this.h[7];for(k(this.k.length===C.length),L=0;L<C.length;L++){var E=m(te,a(oe),B(oe,ge,de),this.k[L],C[L]),i=d(p(V),N(V,Q,ie));te=de,de=ge,ge=oe,oe=d(ae,E),ae=ie,ie=Q,Q=V,V=d(E,i)}this.h[0]=d(this.h[0],V),this.h[1]=d(this.h[1],Q),this.h[2]=d(this.h[2],ie),this.h[3]=d(this.h[3],ae),this.h[4]=d(this.h[4],oe),this.h[5]=d(this.h[5],ge),this.h[6]=d(this.h[6],de),this.h[7]=d(this.h[7],te)},"_update"),g.prototype._digest=r(function(w){return w==="hex"?_.toHex32(this.h,"big"):_.split32(this.h,"big")},"digest")},772:(re,$,P)=>{"use strict";var _=P(6436),Y=P(5900);function z(){if(!(this instanceof z))return new z;Y.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r(z,"SHA384"),_.inherits(z,Y),re.exports=z,z.blockSize=1024,z.outSize=384,z.hmacStrength=192,z.padLength=128,z.prototype._digest=r(function(d){return d==="hex"?_.toHex32(this.h.slice(0,12),"big"):_.split32(this.h.slice(0,12),"big")},"digest")},5900:(re,$,P)=>{"use strict";var _=P(6436),Y=P(5772),z=P(9746),k=_.rotr64_hi,d=_.rotr64_lo,b=_.shr64_hi,m=_.shr64_lo,B=_.sum64,N=_.sum64_hi,p=_.sum64_lo,a=_.sum64_4_hi,l=_.sum64_4_lo,u=_.sum64_5_hi,v=_.sum64_5_lo,y=Y.BlockHash,g=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function A(){if(!(this instanceof A))return new A;y.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=g,this.W=new Array(160)}r(A,"SHA512"),_.inherits(A,y),re.exports=A,A.blockSize=1024,A.outSize=512,A.hmacStrength=192,A.padLength=128,A.prototype._prepareBlock=r(function(i,o){for(var c=this.W,S=0;S<32;S++)c[S]=i[o+S];for(;S<c.length;S+=2){var M=de(c[S-4],c[S-3]),G=te(c[S-4],c[S-3]),J=c[S-14],F=c[S-13],f=oe(c[S-30],c[S-29]),H=ge(c[S-30],c[S-29]),xe=c[S-32],ye=c[S-31];c[S]=a(M,G,J,F,f,H,xe,ye),c[S+1]=l(M,G,J,F,f,H,xe,ye)}},"_prepareBlock"),A.prototype._update=r(function(i,o){this._prepareBlock(i,o);var c=this.W,S=this.h[0],M=this.h[1],G=this.h[2],J=this.h[3],F=this.h[4],f=this.h[5],H=this.h[6],xe=this.h[7],ye=this.h[8],Ee=this.h[9],U=this.h[10],X=this.h[11],Z=this.h[12],ue=this.h[13],ce=this.h[14],Se=this.h[15];z(this.k.length===c.length);for(var K=0;K<c.length;K+=2){var j=ce,fe=Se,ve=ie(ye,Ee),Re=ae(ye,Ee),_e=w(ye,Ee,U,X,Z,ue),Me=R(ye,Ee,U,X,Z,ue),me=this.k[K],Oe=this.k[K+1],Ae=c[K],De=c[K+1],Te=u(j,fe,ve,Re,_e,Me,me,Oe,Ae,De),Ze=v(j,fe,ve,Re,_e,Me,me,Oe,Ae,De);j=V(S,M),fe=Q(S,M),ve=C(S,M,G,J,F,f),Re=L(S,M,G,J,F,f);var I=N(j,fe,ve,Re),s=p(j,fe,ve,Re);ce=Z,Se=ue,Z=U,ue=X,U=ye,X=Ee,ye=N(H,xe,Te,Ze),Ee=p(xe,xe,Te,Ze),H=F,xe=f,F=G,f=J,G=S,J=M,S=N(Te,Ze,I,s),M=p(Te,Ze,I,s)}B(this.h,0,S,M),B(this.h,2,G,J),B(this.h,4,F,f),B(this.h,6,H,xe),B(this.h,8,ye,Ee),B(this.h,10,U,X),B(this.h,12,Z,ue),B(this.h,14,ce,Se)},"_update"),A.prototype._digest=r(function(i){return i==="hex"?_.toHex32(this.h,"big"):_.split32(this.h,"big")},"digest");function w(E,i,o,c,S){var M=E&o^~E&S;return M<0&&(M+=4294967296),M}r(w,"ch64_hi");function R(E,i,o,c,S,M){var G=i&c^~i&M;return G<0&&(G+=4294967296),G}r(R,"ch64_lo");function C(E,i,o,c,S){var M=E&o^E&S^o&S;return M<0&&(M+=4294967296),M}r(C,"maj64_hi");function L(E,i,o,c,S,M){var G=i&c^i&M^c&M;return G<0&&(G+=4294967296),G}r(L,"maj64_lo");function V(E,i){var o=k(E,i,28),c=k(i,E,2),S=k(i,E,7),M=o^c^S;return M<0&&(M+=4294967296),M}r(V,"s0_512_hi");function Q(E,i){var o=d(E,i,28),c=d(i,E,2),S=d(i,E,7),M=o^c^S;return M<0&&(M+=4294967296),M}r(Q,"s0_512_lo");function ie(E,i){var o=k(E,i,14),c=k(E,i,18),S=k(i,E,9),M=o^c^S;return M<0&&(M+=4294967296),M}r(ie,"s1_512_hi");function ae(E,i){var o=d(E,i,14),c=d(E,i,18),S=d(i,E,9),M=o^c^S;return M<0&&(M+=4294967296),M}r(ae,"s1_512_lo");function oe(E,i){var o=k(E,i,1),c=k(E,i,8),S=b(E,i,7),M=o^c^S;return M<0&&(M+=4294967296),M}r(oe,"g0_512_hi");function ge(E,i){var o=d(E,i,1),c=d(E,i,8),S=m(E,i,7),M=o^c^S;return M<0&&(M+=4294967296),M}r(ge,"g0_512_lo");function de(E,i){var o=k(E,i,19),c=k(i,E,29),S=b(E,i,6),M=o^c^S;return M<0&&(M+=4294967296),M}r(de,"g1_512_hi");function te(E,i){var o=d(E,i,19),c=d(i,E,29),S=m(E,i,6),M=o^c^S;return M<0&&(M+=4294967296),M}r(te,"g1_512_lo")},7038:(re,$,P)=>{"use strict";var _=P(6436),Y=_.rotr32;function z(a,l,u,v){if(a===0)return k(l,u,v);if(a===1||a===3)return b(l,u,v);if(a===2)return d(l,u,v)}r(z,"ft_1"),$.ft_1=z;function k(a,l,u){return a&l^~a&u}r(k,"ch32"),$.ch32=k;function d(a,l,u){return a&l^a&u^l&u}r(d,"maj32"),$.maj32=d;function b(a,l,u){return a^l^u}r(b,"p32"),$.p32=b;function m(a){return Y(a,2)^Y(a,13)^Y(a,22)}r(m,"s0_256"),$.s0_256=m;function B(a){return Y(a,6)^Y(a,11)^Y(a,25)}r(B,"s1_256"),$.s1_256=B;function N(a){return Y(a,7)^Y(a,18)^a>>>3}r(N,"g0_256"),$.g0_256=N;function p(a){return Y(a,17)^Y(a,19)^a>>>10}r(p,"g1_256"),$.g1_256=p},6436:(re,$,P)=>{"use strict";var _=P(9746),Y=P(5717);$.inherits=Y;function z(te,E){return(te.charCodeAt(E)&64512)!==55296||E<0||E+1>=te.length?!1:(te.charCodeAt(E+1)&64512)===56320}r(z,"isSurrogatePair");function k(te,E){if(Array.isArray(te))return te.slice();if(!te)return[];var i=[];if(typeof te=="string")if(E){if(E==="hex")for(te=te.replace(/[^a-z0-9]+/ig,""),te.length%2!==0&&(te="0"+te),c=0;c<te.length;c+=2)i.push(parseInt(te[c]+te[c+1],16))}else for(var o=0,c=0;c<te.length;c++){var S=te.charCodeAt(c);S<128?i[o++]=S:S<2048?(i[o++]=S>>6|192,i[o++]=S&63|128):z(te,c)?(S=65536+((S&1023)<<10)+(te.charCodeAt(++c)&1023),i[o++]=S>>18|240,i[o++]=S>>12&63|128,i[o++]=S>>6&63|128,i[o++]=S&63|128):(i[o++]=S>>12|224,i[o++]=S>>6&63|128,i[o++]=S&63|128)}else for(c=0;c<te.length;c++)i[c]=te[c]|0;return i}r(k,"toArray"),$.toArray=k;function d(te){for(var E="",i=0;i<te.length;i++)E+=B(te[i].toString(16));return E}r(d,"toHex"),$.toHex=d;function b(te){var E=te>>>24|te>>>8&65280|te<<8&16711680|(te&255)<<24;return E>>>0}r(b,"htonl"),$.htonl=b;function m(te,E){for(var i="",o=0;o<te.length;o++){var c=te[o];E==="little"&&(c=b(c)),i+=N(c.toString(16))}return i}r(m,"toHex32"),$.toHex32=m;function B(te){return te.length===1?"0"+te:te}r(B,"zero2"),$.zero2=B;function N(te){return te.length===7?"0"+te:te.length===6?"00"+te:te.length===5?"000"+te:te.length===4?"0000"+te:te.length===3?"00000"+te:te.length===2?"000000"+te:te.length===1?"0000000"+te:te}r(N,"zero8"),$.zero8=N;function p(te,E,i,o){var c=i-E;_(c%4===0);for(var S=new Array(c/4),M=0,G=E;M<S.length;M++,G+=4){var J;o==="big"?J=te[G]<<24|te[G+1]<<16|te[G+2]<<8|te[G+3]:J=te[G+3]<<24|te[G+2]<<16|te[G+1]<<8|te[G],S[M]=J>>>0}return S}r(p,"join32"),$.join32=p;function a(te,E){for(var i=new Array(te.length*4),o=0,c=0;o<te.length;o++,c+=4){var S=te[o];E==="big"?(i[c]=S>>>24,i[c+1]=S>>>16&255,i[c+2]=S>>>8&255,i[c+3]=S&255):(i[c+3]=S>>>24,i[c+2]=S>>>16&255,i[c+1]=S>>>8&255,i[c]=S&255)}return i}r(a,"split32"),$.split32=a;function l(te,E){return te>>>E|te<<32-E}r(l,"rotr32"),$.rotr32=l;function u(te,E){return te<<E|te>>>32-E}r(u,"rotl32"),$.rotl32=u;function v(te,E){return te+E>>>0}r(v,"sum32"),$.sum32=v;function y(te,E,i){return te+E+i>>>0}r(y,"sum32_3"),$.sum32_3=y;function g(te,E,i,o){return te+E+i+o>>>0}r(g,"sum32_4"),$.sum32_4=g;function A(te,E,i,o,c){return te+E+i+o+c>>>0}r(A,"sum32_5"),$.sum32_5=A;function w(te,E,i,o){var c=te[E],S=te[E+1],M=o+S>>>0,G=(M<o?1:0)+i+c;te[E]=G>>>0,te[E+1]=M}r(w,"sum64"),$.sum64=w;function R(te,E,i,o){var c=E+o>>>0,S=(c<E?1:0)+te+i;return S>>>0}r(R,"sum64_hi"),$.sum64_hi=R;function C(te,E,i,o){var c=E+o;return c>>>0}r(C,"sum64_lo"),$.sum64_lo=C;function L(te,E,i,o,c,S,M,G){var J=0,F=E;F=F+o>>>0,J+=F<E?1:0,F=F+S>>>0,J+=F<S?1:0,F=F+G>>>0,J+=F<G?1:0;var f=te+i+c+M+J;return f>>>0}r(L,"sum64_4_hi"),$.sum64_4_hi=L;function V(te,E,i,o,c,S,M,G){var J=E+o+S+G;return J>>>0}r(V,"sum64_4_lo"),$.sum64_4_lo=V;function Q(te,E,i,o,c,S,M,G,J,F){var f=0,H=E;H=H+o>>>0,f+=H<E?1:0,H=H+S>>>0,f+=H<S?1:0,H=H+G>>>0,f+=H<G?1:0,H=H+F>>>0,f+=H<F?1:0;var xe=te+i+c+M+J+f;return xe>>>0}r(Q,"sum64_5_hi"),$.sum64_5_hi=Q;function ie(te,E,i,o,c,S,M,G,J,F){var f=E+o+S+G+F;return f>>>0}r(ie,"sum64_5_lo"),$.sum64_5_lo=ie;function ae(te,E,i){var o=E<<32-i|te>>>i;return o>>>0}r(ae,"rotr64_hi"),$.rotr64_hi=ae;function oe(te,E,i){var o=te<<32-i|E>>>i;return o>>>0}r(oe,"rotr64_lo"),$.rotr64_lo=oe;function ge(te,E,i){return te>>>i}r(ge,"shr64_hi"),$.shr64_hi=ge;function de(te,E,i){var o=te<<32-i|E>>>i;return o>>>0}r(de,"shr64_lo"),$.shr64_lo=de},2156:(re,$,P)=>{"use strict";var _=P(3715),Y=P(4504),z=P(9746);function k(d){if(!(this instanceof k))return new k(d);this.hash=d.hash,this.predResist=!!d.predResist,this.outLen=this.hash.outSize,this.minEntropy=d.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var b=Y.toArray(d.entropy,d.entropyEnc||"hex"),m=Y.toArray(d.nonce,d.nonceEnc||"hex"),B=Y.toArray(d.pers,d.persEnc||"hex");z(b.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(b,m,B)}r(k,"HmacDRBG"),re.exports=k,k.prototype._init=r(function(b,m,B){var N=b.concat(m).concat(B);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var p=0;p<this.V.length;p++)this.K[p]=0,this.V[p]=1;this._update(N),this._reseed=1,this.reseedInterval=281474976710656},"init"),k.prototype._hmac=r(function(){return new _.hmac(this.hash,this.K)},"hmac"),k.prototype._update=r(function(b){var m=this._hmac().update(this.V).update([0]);b&&(m=m.update(b)),this.K=m.digest(),this.V=this._hmac().update(this.V).digest(),b&&(this.K=this._hmac().update(this.V).update([1]).update(b).digest(),this.V=this._hmac().update(this.V).digest())},"update"),k.prototype.reseed=r(function(b,m,B,N){typeof m!="string"&&(N=B,B=m,m=null),b=Y.toArray(b,m),B=Y.toArray(B,N),z(b.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(b.concat(B||[])),this._reseed=1},"reseed"),k.prototype.generate=r(function(b,m,B,N){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof m!="string"&&(N=B,B=m,m=null),B&&(B=Y.toArray(B,N||"hex"),this._update(B));for(var p=[];p.length<b;)this.V=this._hmac().update(this.V).digest(),p=p.concat(this.V);var a=p.slice(0,b);return this._update(B),this._reseed++,Y.encode(a,m)},"generate")},645:(re,$)=>{/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */$.read=function(P,_,Y,z,k){var d,b,m=k*8-z-1,B=(1<<m)-1,N=B>>1,p=-7,a=Y?k-1:0,l=Y?-1:1,u=P[_+a];for(a+=l,d=u&(1<<-p)-1,u>>=-p,p+=m;p>0;d=d*256+P[_+a],a+=l,p-=8);for(b=d&(1<<-p)-1,d>>=-p,p+=z;p>0;b=b*256+P[_+a],a+=l,p-=8);if(d===0)d=1-N;else{if(d===B)return b?NaN:(u?-1:1)*(1/0);b=b+Math.pow(2,z),d=d-N}return(u?-1:1)*b*Math.pow(2,d-z)},$.write=function(P,_,Y,z,k,d){var b,m,B,N=d*8-k-1,p=(1<<N)-1,a=p>>1,l=k===23?Math.pow(2,-24)-Math.pow(2,-77):0,u=z?0:d-1,v=z?1:-1,y=_<0||_===0&&1/_<0?1:0;for(_=Math.abs(_),isNaN(_)||_===1/0?(m=isNaN(_)?1:0,b=p):(b=Math.floor(Math.log(_)/Math.LN2),_*(B=Math.pow(2,-b))<1&&(b--,B*=2),b+a>=1?_+=l/B:_+=l*Math.pow(2,1-a),_*B>=2&&(b++,B/=2),b+a>=p?(m=0,b=p):b+a>=1?(m=(_*B-1)*Math.pow(2,k),b=b+a):(m=_*Math.pow(2,a-1)*Math.pow(2,k),b=0));k>=8;P[Y+u]=m&255,u+=v,m/=256,k-=8);for(b=b<<k|m,N+=k;N>0;P[Y+u]=b&255,u+=v,b/=256,N-=8);P[Y+u-v]|=y*128}},5717:re=>{typeof Object.create=="function"?re.exports=r(function(P,_){_&&(P.super_=_,P.prototype=Object.create(_.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}))},"inherits"):re.exports=r(function(P,_){if(_){P.super_=_;var Y=r(function(){},"TempCtor");Y.prototype=_.prototype,P.prototype=new Y,P.prototype.constructor=P}},"inherits")},2318:(re,$,P)=>{"use strict";var _=P(5717),Y=P(3349),z=P(9509).Buffer,k=new Array(16);function d(){Y.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}r(d,"MD5"),_(d,Y),d.prototype._update=function(){for(var a=k,l=0;l<16;++l)a[l]=this._block.readInt32LE(l*4);var u=this._a,v=this._b,y=this._c,g=this._d;u=m(u,v,y,g,a[0],3614090360,7),g=m(g,u,v,y,a[1],3905402710,12),y=m(y,g,u,v,a[2],606105819,17),v=m(v,y,g,u,a[3],3250441966,22),u=m(u,v,y,g,a[4],4118548399,7),g=m(g,u,v,y,a[5],1200080426,12),y=m(y,g,u,v,a[6],2821735955,17),v=m(v,y,g,u,a[7],4249261313,22),u=m(u,v,y,g,a[8],1770035416,7),g=m(g,u,v,y,a[9],2336552879,12),y=m(y,g,u,v,a[10],4294925233,17),v=m(v,y,g,u,a[11],2304563134,22),u=m(u,v,y,g,a[12],1804603682,7),g=m(g,u,v,y,a[13],4254626195,12),y=m(y,g,u,v,a[14],2792965006,17),v=m(v,y,g,u,a[15],1236535329,22),u=B(u,v,y,g,a[1],4129170786,5),g=B(g,u,v,y,a[6],3225465664,9),y=B(y,g,u,v,a[11],643717713,14),v=B(v,y,g,u,a[0],3921069994,20),u=B(u,v,y,g,a[5],3593408605,5),g=B(g,u,v,y,a[10],38016083,9),y=B(y,g,u,v,a[15],3634488961,14),v=B(v,y,g,u,a[4],3889429448,20),u=B(u,v,y,g,a[9],568446438,5),g=B(g,u,v,y,a[14],3275163606,9),y=B(y,g,u,v,a[3],4107603335,14),v=B(v,y,g,u,a[8],1163531501,20),u=B(u,v,y,g,a[13],2850285829,5),g=B(g,u,v,y,a[2],4243563512,9),y=B(y,g,u,v,a[7],1735328473,14),v=B(v,y,g,u,a[12],2368359562,20),u=N(u,v,y,g,a[5],4294588738,4),g=N(g,u,v,y,a[8],2272392833,11),y=N(y,g,u,v,a[11],1839030562,16),v=N(v,y,g,u,a[14],4259657740,23),u=N(u,v,y,g,a[1],2763975236,4),g=N(g,u,v,y,a[4],1272893353,11),y=N(y,g,u,v,a[7],4139469664,16),v=N(v,y,g,u,a[10],3200236656,23),u=N(u,v,y,g,a[13],681279174,4),g=N(g,u,v,y,a[0],3936430074,11),y=N(y,g,u,v,a[3],3572445317,16),v=N(v,y,g,u,a[6],76029189,23),u=N(u,v,y,g,a[9],3654602809,4),g=N(g,u,v,y,a[12],3873151461,11),y=N(y,g,u,v,a[15],530742520,16),v=N(v,y,g,u,a[2],3299628645,23),u=p(u,v,y,g,a[0],4096336452,6),g=p(g,u,v,y,a[7],1126891415,10),y=p(y,g,u,v,a[14],2878612391,15),v=p(v,y,g,u,a[5],4237533241,21),u=p(u,v,y,g,a[12],1700485571,6),g=p(g,u,v,y,a[3],2399980690,10),y=p(y,g,u,v,a[10],4293915773,15),v=p(v,y,g,u,a[1],2240044497,21),u=p(u,v,y,g,a[8],1873313359,6),g=p(g,u,v,y,a[15],4264355552,10),y=p(y,g,u,v,a[6],2734768916,15),v=p(v,y,g,u,a[13],1309151649,21),u=p(u,v,y,g,a[4],4149444226,6),g=p(g,u,v,y,a[11],3174756917,10),y=p(y,g,u,v,a[2],718787259,15),v=p(v,y,g,u,a[9],3951481745,21),this._a=this._a+u|0,this._b=this._b+v|0,this._c=this._c+y|0,this._d=this._d+g|0},d.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var a=z.allocUnsafe(16);return a.writeInt32LE(this._a,0),a.writeInt32LE(this._b,4),a.writeInt32LE(this._c,8),a.writeInt32LE(this._d,12),a};function b(a,l){return a<<l|a>>>32-l}r(b,"rotl");function m(a,l,u,v,y,g,A){return b(a+(l&u|~l&v)+y+g|0,A)+l|0}r(m,"fnF");function B(a,l,u,v,y,g,A){return b(a+(l&v|u&~v)+y+g|0,A)+l|0}r(B,"fnG");function N(a,l,u,v,y,g,A){return b(a+(l^u^v)+y+g|0,A)+l|0}r(N,"fnH");function p(a,l,u,v,y,g,A){return b(a+(u^(l|~v))+y+g|0,A)+l|0}r(p,"fnI"),re.exports=d},9746:re=>{re.exports=$;function $(P,_){if(!P)throw new Error(_||"Assertion failed")}r($,"assert"),$.equal=r(function(_,Y,z){if(_!=Y)throw new Error(z||"Assertion failed: "+_+" != "+Y)},"assertEqual")},4504:(re,$)=>{"use strict";var P=$;function _(k,d){if(Array.isArray(k))return k.slice();if(!k)return[];var b=[];if(typeof k!="string"){for(var m=0;m<k.length;m++)b[m]=k[m]|0;return b}if(d==="hex"){k=k.replace(/[^a-z0-9]+/ig,""),k.length%2!==0&&(k="0"+k);for(var m=0;m<k.length;m+=2)b.push(parseInt(k[m]+k[m+1],16))}else for(var m=0;m<k.length;m++){var B=k.charCodeAt(m),N=B>>8,p=B&255;N?b.push(N,p):b.push(p)}return b}r(_,"toArray"),P.toArray=_;function Y(k){return k.length===1?"0"+k:k}r(Y,"zero2"),P.zero2=Y;function z(k){for(var d="",b=0;b<k.length;b++)d+=Y(k[b].toString(16));return d}r(z,"toHex"),P.toHex=z,P.encode=r(function(d,b){return b==="hex"?z(d):d},"encode")},5632:(re,$,P)=>{$.pbkdf2=P(8638),$.pbkdf2Sync=P(1257)},8638:(re,$,P)=>{var _=P(9509).Buffer,Y=P(7357),z=P(2368),k=P(1257),d=P(7777),b,m=P.g.crypto&&P.g.crypto.subtle,B={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},N=[];function p(y){if(P.g.process&&!P.g.process.browser||!m||!m.importKey||!m.deriveBits)return Promise.resolve(!1);if(N[y]!==void 0)return N[y];b=b||_.alloc(8);var g=u(b,b,10,128,y).then(function(){return!0}).catch(function(){return!1});return N[y]=g,g}r(p,"checkNative");var a;function l(){return a||(P.g.process&&P.g.process.nextTick?a=P.g.process.nextTick:P.g.queueMicrotask?a=P.g.queueMicrotask:P.g.setImmediate?a=P.g.setImmediate:a=P.g.setTimeout,a)}r(l,"getNextTick");function u(y,g,A,w,R){return m.importKey("raw",y,{name:"PBKDF2"},!1,["deriveBits"]).then(function(C){return m.deriveBits({name:"PBKDF2",salt:g,iterations:A,hash:{name:R}},C,w<<3)}).then(function(C){return _.from(C)})}r(u,"browserPbkdf2");function v(y,g){y.then(function(A){l()(function(){g(null,A)})},function(A){l()(function(){g(A)})})}r(v,"resolvePromise"),re.exports=function(y,g,A,w,R,C){typeof R=="function"&&(C=R,R=void 0),R=R||"sha1";var L=B[R.toLowerCase()];if(!L||typeof P.g.Promise!="function"){l()(function(){var V;try{V=k(y,g,A,w,R)}catch(Q){return C(Q)}C(null,V)});return}if(Y(A,w),y=d(y,z,"Password"),g=d(g,z,"Salt"),typeof C!="function")throw new Error("No callback provided to pbkdf2");v(p(L).then(function(V){return V?u(y,g,A,w,L):k(y,g,A,w,R)}),C)}},2368:(re,$,P)=>{var _=P(4155),Y;if(P.g.process&&P.g.process.browser)Y="utf-8";else if(P.g.process&&P.g.process.version){var z=parseInt(_.version.split(".")[0].slice(1),10);Y=z>=6?"utf-8":"binary"}else Y="utf-8";re.exports=Y},7357:re=>{var $=Math.pow(2,30)-1;re.exports=function(P,_){if(typeof P!="number")throw new TypeError("Iterations not a number");if(P<0)throw new TypeError("Bad iterations");if(typeof _!="number")throw new TypeError("Key length not a number");if(_<0||_>$||_!==_)throw new TypeError("Bad key length")}},1257:(re,$,P)=>{var _=P(8028),Y=P(9785),z=P(9072),k=P(9509).Buffer,d=P(7357),b=P(2368),m=P(7777),B=k.alloc(128),N={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function p(u,v,y){var g=a(u),A=u==="sha512"||u==="sha384"?128:64;v.length>A?v=g(v):v.length<A&&(v=k.concat([v,B],A));for(var w=k.allocUnsafe(A+N[u]),R=k.allocUnsafe(A+N[u]),C=0;C<A;C++)w[C]=v[C]^54,R[C]=v[C]^92;var L=k.allocUnsafe(A+y+4);w.copy(L,0,0,A),this.ipad1=L,this.ipad2=w,this.opad=R,this.alg=u,this.blocksize=A,this.hash=g,this.size=N[u]}r(p,"Hmac"),p.prototype.run=function(u,v){u.copy(v,this.blocksize);var y=this.hash(v);return y.copy(this.opad,this.blocksize),this.hash(this.opad)};function a(u){function v(g){return z(u).update(g).digest()}r(v,"shaFunc");function y(g){return new Y().update(g).digest()}return r(y,"rmd160Func"),u==="rmd160"||u==="ripemd160"?y:u==="md5"?_:v}r(a,"getDigest");function l(u,v,y,g,A){d(y,g),u=m(u,b,"Password"),v=m(v,b,"Salt"),A=A||"sha1";var w=new p(A,u,v.length),R=k.allocUnsafe(g),C=k.allocUnsafe(v.length+4);v.copy(C,0,0,v.length);for(var L=0,V=N[A],Q=Math.ceil(g/V),ie=1;ie<=Q;ie++){C.writeUInt32BE(ie,v.length);for(var ae=w.run(C,w.ipad1),oe=ae,ge=1;ge<y;ge++){oe=w.run(oe,w.ipad2);for(var de=0;de<V;de++)ae[de]^=oe[de]}ae.copy(R,L),L+=V}return R}r(l,"pbkdf2"),re.exports=l},7777:(re,$,P)=>{var _=P(9509).Buffer;re.exports=function(Y,z,k){if(_.isBuffer(Y))return Y;if(typeof Y=="string")return _.from(Y,z);if(ArrayBuffer.isView(Y))return _.from(Y.buffer);throw new TypeError(k+" must be a string, a Buffer, a typed array or a DataView")}},4155:re=>{var $=re.exports={},P,_;function Y(){throw new Error("setTimeout has not been defined")}r(Y,"defaultSetTimout");function z(){throw new Error("clearTimeout has not been defined")}r(z,"defaultClearTimeout"),function(){try{typeof setTimeout=="function"?P=setTimeout:P=Y}catch{P=Y}try{typeof clearTimeout=="function"?_=clearTimeout:_=z}catch{_=z}}();function k(v){if(P===setTimeout)return setTimeout(v,0);if((P===Y||!P)&&setTimeout)return P=setTimeout,setTimeout(v,0);try{return P(v,0)}catch{try{return P.call(null,v,0)}catch{return P.call(this,v,0)}}}r(k,"runTimeout");function d(v){if(_===clearTimeout)return clearTimeout(v);if((_===z||!_)&&clearTimeout)return _=clearTimeout,clearTimeout(v);try{return _(v)}catch{try{return _.call(null,v)}catch{return _.call(this,v)}}}r(d,"runClearTimeout");var b=[],m=!1,B,N=-1;function p(){!m||!B||(m=!1,B.length?b=B.concat(b):N=-1,b.length&&a())}r(p,"cleanUpNextTick");function a(){if(!m){var v=k(p);m=!0;for(var y=b.length;y;){for(B=b,b=[];++N<y;)B&&B[N].run();N=-1,y=b.length}B=null,m=!1,d(v)}}r(a,"drainQueue"),$.nextTick=function(v){var y=new Array(arguments.length-1);if(arguments.length>1)for(var g=1;g<arguments.length;g++)y[g-1]=arguments[g];b.push(new l(v,y)),b.length===1&&!m&&k(a)};function l(v,y){this.fun=v,this.array=y}r(l,"Item"),l.prototype.run=function(){this.fun.apply(null,this.array)},$.title="browser",$.browser=!0,$.env={},$.argv=[],$.version="",$.versions={};function u(){}r(u,"noop"),$.on=u,$.addListener=u,$.once=u,$.off=u,$.removeListener=u,$.removeAllListeners=u,$.emit=u,$.prependListener=u,$.prependOnceListener=u,$.listeners=function(v){return[]},$.binding=function(v){throw new Error("process.binding is not supported")},$.cwd=function(){return"/"},$.chdir=function(v){throw new Error("process.chdir is not supported")},$.umask=function(){return 0}},1798:(re,$,P)=>{"use strict";var _=P(4155),Y=65536,z=4294967295;function k(){throw new Error(`Secure random number generation is not supported by this browser.
7
- Use Chrome, Firefox or Internet Explorer 11`)}r(k,"oldBrowser");var d=P(9509).Buffer,b=P.g.crypto||P.g.msCrypto;b&&b.getRandomValues?re.exports=m:re.exports=k;function m(B,N){if(B>z)throw new RangeError("requested too many random bytes");var p=d.allocUnsafe(B);if(B>0)if(B>Y)for(var a=0;a<B;a+=Y)b.getRandomValues(p.slice(a,a+Y));else b.getRandomValues(p);return typeof N=="function"?_.nextTick(function(){N(null,p)}):p}r(m,"randomBytes")},4281:re=>{"use strict";function $(b,m){b.prototype=Object.create(m.prototype),b.prototype.constructor=b,b.__proto__=m}r($,"_inheritsLoose");var P={};function _(b,m,B){B||(B=Error);function N(a,l,u){return typeof m=="string"?m:m(a,l,u)}r(N,"getMessage");var p=function(a){$(l,a);function l(u,v,y){return a.call(this,N(u,v,y))||this}return r(l,"NodeError"),l}(B);p.prototype.name=B.name,p.prototype.code=b,P[b]=p}r(_,"createErrorType");function Y(b,m){if(Array.isArray(b)){var B=b.length;return b=b.map(function(N){return String(N)}),B>2?"one of ".concat(m," ").concat(b.slice(0,B-1).join(", "),", or ")+b[B-1]:B===2?"one of ".concat(m," ").concat(b[0]," or ").concat(b[1]):"of ".concat(m," ").concat(b[0])}else return"of ".concat(m," ").concat(String(b))}r(Y,"oneOf");function z(b,m,B){return b.substr(!B||B<0?0:+B,m.length)===m}r(z,"startsWith");function k(b,m,B){return(B===void 0||B>b.length)&&(B=b.length),b.substring(B-m.length,B)===m}r(k,"endsWith");function d(b,m,B){return typeof B!="number"&&(B=0),B+m.length>b.length?!1:b.indexOf(m,B)!==-1}r(d,"includes"),_("ERR_INVALID_OPT_VALUE",function(b,m){return'The value "'+m+'" is invalid for option "'+b+'"'},TypeError),_("ERR_INVALID_ARG_TYPE",function(b,m,B){var N;typeof m=="string"&&z(m,"not ")?(N="must not be",m=m.replace(/^not /,"")):N="must be";var p;if(k(b," argument"))p="The ".concat(b," ").concat(N," ").concat(Y(m,"type"));else{var a=d(b,".")?"property":"argument";p='The "'.concat(b,'" ').concat(a," ").concat(N," ").concat(Y(m,"type"))}return p+=". Received type ".concat(typeof B),p},TypeError),_("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),_("ERR_METHOD_NOT_IMPLEMENTED",function(b){return"The "+b+" method is not implemented"}),_("ERR_STREAM_PREMATURE_CLOSE","Premature close"),_("ERR_STREAM_DESTROYED",function(b){return"Cannot call "+b+" after a stream was destroyed"}),_("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),_("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),_("ERR_STREAM_WRITE_AFTER_END","write after end"),_("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),_("ERR_UNKNOWN_ENCODING",function(b){return"Unknown encoding: "+b},TypeError),_("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),re.exports.q=P},6753:(re,$,P)=>{"use strict";var _=P(4155),Y=Object.keys||function(a){var l=[];for(var u in a)l.push(u);return l};re.exports=B;var z=P(9481),k=P(4229);P(5717)(B,z);for(var d=Y(k.prototype),b=0;b<d.length;b++){var m=d[b];B.prototype[m]||(B.prototype[m]=k.prototype[m])}function B(a){if(!(this instanceof B))return new B(a);z.call(this,a),k.call(this,a),this.allowHalfOpen=!0,a&&(a.readable===!1&&(this.readable=!1),a.writable===!1&&(this.writable=!1),a.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",N)))}r(B,"Duplex"),Object.defineProperty(B.prototype,"writableHighWaterMark",{enumerable:!1,get:r(function(){return this._writableState.highWaterMark},"get")}),Object.defineProperty(B.prototype,"writableBuffer",{enumerable:!1,get:r(function(){return this._writableState&&this._writableState.getBuffer()},"get")}),Object.defineProperty(B.prototype,"writableLength",{enumerable:!1,get:r(function(){return this._writableState.length},"get")});function N(){this._writableState.ended||_.nextTick(p,this)}r(N,"onend");function p(a){a.end()}r(p,"onEndNT"),Object.defineProperty(B.prototype,"destroyed",{enumerable:!1,get:r(function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},"get"),set:r(function(l){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=l,this._writableState.destroyed=l)},"set")})},2725:(re,$,P)=>{"use strict";re.exports=Y;var _=P(4605);P(5717)(Y,_);function Y(z){if(!(this instanceof Y))return new Y(z);_.call(this,z)}r(Y,"PassThrough"),Y.prototype._transform=function(z,k,d){d(null,z)}},9481:(re,$,P)=>{"use strict";var _=P(4155);re.exports=de;var Y;de.ReadableState=ge;var z=P(7187).EventEmitter,k=r(function(j,fe){return j.listeners(fe).length},"EElistenerCount"),d=P(2503),b=P(8764).Buffer,m=(typeof P.g<"u"?P.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function B(K){return b.from(K)}r(B,"_uint8ArrayToBuffer");function N(K){return b.isBuffer(K)||K instanceof m}r(N,"_isUint8Array");var p=P(4616),a;p&&p.debuglog?a=p.debuglog("stream"):a=r(function(){},"debug");var l=P(7327),u=P(1195),v=P(2457),y=v.getHighWaterMark,g=P(4281).q,A=g.ERR_INVALID_ARG_TYPE,w=g.ERR_STREAM_PUSH_AFTER_EOF,R=g.ERR_METHOD_NOT_IMPLEMENTED,C=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,L,V,Q;P(5717)(de,d);var ie=u.errorOrDestroy,ae=["error","close","destroy","pause","resume"];function oe(K,j,fe){if(typeof K.prependListener=="function")return K.prependListener(j,fe);!K._events||!K._events[j]?K.on(j,fe):Array.isArray(K._events[j])?K._events[j].unshift(fe):K._events[j]=[fe,K._events[j]]}r(oe,"prependListener");function ge(K,j,fe){Y=Y||P(6753),K=K||{},typeof fe!="boolean"&&(fe=j instanceof Y),this.objectMode=!!K.objectMode,fe&&(this.objectMode=this.objectMode||!!K.readableObjectMode),this.highWaterMark=y(this,K,"readableHighWaterMark",fe),this.buffer=new l,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=K.emitClose!==!1,this.autoDestroy=!!K.autoDestroy,this.destroyed=!1,this.defaultEncoding=K.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,K.encoding&&(L||(L=P(2553).s),this.decoder=new L(K.encoding),this.encoding=K.encoding)}r(ge,"ReadableState");function de(K){if(Y=Y||P(6753),!(this instanceof de))return new de(K);var j=this instanceof Y;this._readableState=new ge(K,this,j),this.readable=!0,K&&(typeof K.read=="function"&&(this._read=K.read),typeof K.destroy=="function"&&(this._destroy=K.destroy)),d.call(this)}r(de,"Readable"),Object.defineProperty(de.prototype,"destroyed",{enumerable:!1,get:r(function(){return this._readableState===void 0?!1:this._readableState.destroyed},"get"),set:r(function(j){this._readableState&&(this._readableState.destroyed=j)},"set")}),de.prototype.destroy=u.destroy,de.prototype._undestroy=u.undestroy,de.prototype._destroy=function(K,j){j(K)},de.prototype.push=function(K,j){var fe=this._readableState,ve;return fe.objectMode?ve=!0:typeof K=="string"&&(j=j||fe.defaultEncoding,j!==fe.encoding&&(K=b.from(K,j),j=""),ve=!0),te(this,K,j,!1,ve)},de.prototype.unshift=function(K){return te(this,K,null,!0,!1)};function te(K,j,fe,ve,Re){a("readableAddChunk",j);var _e=K._readableState;if(j===null)_e.reading=!1,M(K,_e);else{var Me;if(Re||(Me=i(_e,j)),Me)ie(K,Me);else if(_e.objectMode||j&&j.length>0)if(typeof j!="string"&&!_e.objectMode&&Object.getPrototypeOf(j)!==b.prototype&&(j=B(j)),ve)_e.endEmitted?ie(K,new C):E(K,_e,j,!0);else if(_e.ended)ie(K,new w);else{if(_e.destroyed)return!1;_e.reading=!1,_e.decoder&&!fe?(j=_e.decoder.write(j),_e.objectMode||j.length!==0?E(K,_e,j,!1):F(K,_e)):E(K,_e,j,!1)}else ve||(_e.reading=!1,F(K,_e))}return!_e.ended&&(_e.length<_e.highWaterMark||_e.length===0)}r(te,"readableAddChunk");function E(K,j,fe,ve){j.flowing&&j.length===0&&!j.sync?(j.awaitDrain=0,K.emit("data",fe)):(j.length+=j.objectMode?1:fe.length,ve?j.buffer.unshift(fe):j.buffer.push(fe),j.needReadable&&G(K)),F(K,j)}r(E,"addChunk");function i(K,j){var fe;return!N(j)&&typeof j!="string"&&j!==void 0&&!K.objectMode&&(fe=new A("chunk",["string","Buffer","Uint8Array"],j)),fe}r(i,"chunkInvalid"),de.prototype.isPaused=function(){return this._readableState.flowing===!1},de.prototype.setEncoding=function(K){L||(L=P(2553).s);var j=new L(K);this._readableState.decoder=j,this._readableState.encoding=this._readableState.decoder.encoding;for(var fe=this._readableState.buffer.head,ve="";fe!==null;)ve+=j.write(fe.data),fe=fe.next;return this._readableState.buffer.clear(),ve!==""&&this._readableState.buffer.push(ve),this._readableState.length=ve.length,this};var o=1073741824;function c(K){return K>=o?K=o:(K--,K|=K>>>1,K|=K>>>2,K|=K>>>4,K|=K>>>8,K|=K>>>16,K++),K}r(c,"computeNewHighWaterMark");function S(K,j){return K<=0||j.length===0&&j.ended?0:j.objectMode?1:K!==K?j.flowing&&j.length?j.buffer.head.data.length:j.length:(K>j.highWaterMark&&(j.highWaterMark=c(K)),K<=j.length?K:j.ended?j.length:(j.needReadable=!0,0))}r(S,"howMuchToRead"),de.prototype.read=function(K){a("read",K),K=parseInt(K,10);var j=this._readableState,fe=K;if(K!==0&&(j.emittedReadable=!1),K===0&&j.needReadable&&((j.highWaterMark!==0?j.length>=j.highWaterMark:j.length>0)||j.ended))return a("read: emitReadable",j.length,j.ended),j.length===0&&j.ended?ue(this):G(this),null;if(K=S(K,j),K===0&&j.ended)return j.length===0&&ue(this),null;var ve=j.needReadable;a("need readable",ve),(j.length===0||j.length-K<j.highWaterMark)&&(ve=!0,a("length less than watermark",ve)),j.ended||j.reading?(ve=!1,a("reading or ended",ve)):ve&&(a("do read"),j.reading=!0,j.sync=!0,j.length===0&&(j.needReadable=!0),this._read(j.highWaterMark),j.sync=!1,j.reading||(K=S(fe,j)));var Re;return K>0?Re=Z(K,j):Re=null,Re===null?(j.needReadable=j.length<=j.highWaterMark,K=0):(j.length-=K,j.awaitDrain=0),j.length===0&&(j.ended||(j.needReadable=!0),fe!==K&&j.ended&&ue(this)),Re!==null&&this.emit("data",Re),Re};function M(K,j){if(a("onEofChunk"),!j.ended){if(j.decoder){var fe=j.decoder.end();fe&&fe.length&&(j.buffer.push(fe),j.length+=j.objectMode?1:fe.length)}j.ended=!0,j.sync?G(K):(j.needReadable=!1,j.emittedReadable||(j.emittedReadable=!0,J(K)))}}r(M,"onEofChunk");function G(K){var j=K._readableState;a("emitReadable",j.needReadable,j.emittedReadable),j.needReadable=!1,j.emittedReadable||(a("emitReadable",j.flowing),j.emittedReadable=!0,_.nextTick(J,K))}r(G,"emitReadable");function J(K){var j=K._readableState;a("emitReadable_",j.destroyed,j.length,j.ended),!j.destroyed&&(j.length||j.ended)&&(K.emit("readable"),j.emittedReadable=!1),j.needReadable=!j.flowing&&!j.ended&&j.length<=j.highWaterMark,X(K)}r(J,"emitReadable_");function F(K,j){j.readingMore||(j.readingMore=!0,_.nextTick(f,K,j))}r(F,"maybeReadMore");function f(K,j){for(;!j.reading&&!j.ended&&(j.length<j.highWaterMark||j.flowing&&j.length===0);){var fe=j.length;if(a("maybeReadMore read 0"),K.read(0),fe===j.length)break}j.readingMore=!1}r(f,"maybeReadMore_"),de.prototype._read=function(K){ie(this,new R("_read()"))},de.prototype.pipe=function(K,j){var fe=this,ve=this._readableState;switch(ve.pipesCount){case 0:ve.pipes=K;break;case 1:ve.pipes=[ve.pipes,K];break;default:ve.pipes.push(K);break}ve.pipesCount+=1,a("pipe count=%d opts=%j",ve.pipesCount,j);var Re=(!j||j.end!==!1)&&K!==_.stdout&&K!==_.stderr,_e=Re?me:h;ve.endEmitted?_.nextTick(_e):fe.once("end",_e),K.on("unpipe",Me);function Me(D,q){a("onunpipe"),D===fe&&q&&q.hasUnpiped===!1&&(q.hasUnpiped=!0,De())}r(Me,"onunpipe");function me(){a("onend"),K.end()}r(me,"onend");var Oe=H(fe);K.on("drain",Oe);var Ae=!1;function De(){a("cleanup"),K.removeListener("close",I),K.removeListener("finish",s),K.removeListener("drain",Oe),K.removeListener("error",Ze),K.removeListener("unpipe",Me),fe.removeListener("end",me),fe.removeListener("end",h),fe.removeListener("data",Te),Ae=!0,ve.awaitDrain&&(!K._writableState||K._writableState.needDrain)&&Oe()}r(De,"cleanup"),fe.on("data",Te);function Te(D){a("ondata");var q=K.write(D);a("dest.write",q),q===!1&&((ve.pipesCount===1&&ve.pipes===K||ve.pipesCount>1&&Se(ve.pipes,K)!==-1)&&!Ae&&(a("false write response, pause",ve.awaitDrain),ve.awaitDrain++),fe.pause())}r(Te,"ondata");function Ze(D){a("onerror",D),h(),K.removeListener("error",Ze),k(K,"error")===0&&ie(K,D)}r(Ze,"onerror"),oe(K,"error",Ze);function I(){K.removeListener("finish",s),h()}r(I,"onclose"),K.once("close",I);function s(){a("onfinish"),K.removeListener("close",I),h()}r(s,"onfinish"),K.once("finish",s);function h(){a("unpipe"),fe.unpipe(K)}return r(h,"unpipe"),K.emit("pipe",fe),ve.flowing||(a("pipe resume"),fe.resume()),K};function H(K){return r(function(){var fe=K._readableState;a("pipeOnDrain",fe.awaitDrain),fe.awaitDrain&&fe.awaitDrain--,fe.awaitDrain===0&&k(K,"data")&&(fe.flowing=!0,X(K))},"pipeOnDrainFunctionResult")}r(H,"pipeOnDrain"),de.prototype.unpipe=function(K){var j=this._readableState,fe={hasUnpiped:!1};if(j.pipesCount===0)return this;if(j.pipesCount===1)return K&&K!==j.pipes?this:(K||(K=j.pipes),j.pipes=null,j.pipesCount=0,j.flowing=!1,K&&K.emit("unpipe",this,fe),this);if(!K){var ve=j.pipes,Re=j.pipesCount;j.pipes=null,j.pipesCount=0,j.flowing=!1;for(var _e=0;_e<Re;_e++)ve[_e].emit("unpipe",this,{hasUnpiped:!1});return this}var Me=Se(j.pipes,K);return Me===-1?this:(j.pipes.splice(Me,1),j.pipesCount-=1,j.pipesCount===1&&(j.pipes=j.pipes[0]),K.emit("unpipe",this,fe),this)},de.prototype.on=function(K,j){var fe=d.prototype.on.call(this,K,j),ve=this._readableState;return K==="data"?(ve.readableListening=this.listenerCount("readable")>0,ve.flowing!==!1&&this.resume()):K==="readable"&&!ve.endEmitted&&!ve.readableListening&&(ve.readableListening=ve.needReadable=!0,ve.flowing=!1,ve.emittedReadable=!1,a("on readable",ve.length,ve.reading),ve.length?G(this):ve.reading||_.nextTick(ye,this)),fe},de.prototype.addListener=de.prototype.on,de.prototype.removeListener=function(K,j){var fe=d.prototype.removeListener.call(this,K,j);return K==="readable"&&_.nextTick(xe,this),fe},de.prototype.removeAllListeners=function(K){var j=d.prototype.removeAllListeners.apply(this,arguments);return(K==="readable"||K===void 0)&&_.nextTick(xe,this),j};function xe(K){var j=K._readableState;j.readableListening=K.listenerCount("readable")>0,j.resumeScheduled&&!j.paused?j.flowing=!0:K.listenerCount("data")>0&&K.resume()}r(xe,"updateReadableListening");function ye(K){a("readable nexttick read 0"),K.read(0)}r(ye,"nReadingNextTick"),de.prototype.resume=function(){var K=this._readableState;return K.flowing||(a("resume"),K.flowing=!K.readableListening,Ee(this,K)),K.paused=!1,this};function Ee(K,j){j.resumeScheduled||(j.resumeScheduled=!0,_.nextTick(U,K,j))}r(Ee,"resume");function U(K,j){a("resume",j.reading),j.reading||K.read(0),j.resumeScheduled=!1,K.emit("resume"),X(K),j.flowing&&!j.reading&&K.read(0)}r(U,"resume_"),de.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function X(K){var j=K._readableState;for(a("flow",j.flowing);j.flowing&&K.read()!==null;);}r(X,"flow"),de.prototype.wrap=function(K){var j=this,fe=this._readableState,ve=!1;K.on("end",function(){if(a("wrapped end"),fe.decoder&&!fe.ended){var Me=fe.decoder.end();Me&&Me.length&&j.push(Me)}j.push(null)}),K.on("data",function(Me){if(a("wrapped data"),fe.decoder&&(Me=fe.decoder.write(Me)),!(fe.objectMode&&Me==null)&&!(!fe.objectMode&&(!Me||!Me.length))){var me=j.push(Me);me||(ve=!0,K.pause())}});for(var Re in K)this[Re]===void 0&&typeof K[Re]=="function"&&(this[Re]=r(function(me){return r(function(){return K[me].apply(K,arguments)},"methodWrapReturnFunction")},"methodWrap")(Re));for(var _e=0;_e<ae.length;_e++)K.on(ae[_e],this.emit.bind(this,ae[_e]));return this._read=function(Me){a("wrapped _read",Me),ve&&(ve=!1,K.resume())},this},typeof Symbol=="function"&&(de.prototype[Symbol.asyncIterator]=function(){return V===void 0&&(V=P(5850)),V(this)}),Object.defineProperty(de.prototype,"readableHighWaterMark",{enumerable:!1,get:r(function(){return this._readableState.highWaterMark},"get")}),Object.defineProperty(de.prototype,"readableBuffer",{enumerable:!1,get:r(function(){return this._readableState&&this._readableState.buffer},"get")}),Object.defineProperty(de.prototype,"readableFlowing",{enumerable:!1,get:r(function(){return this._readableState.flowing},"get"),set:r(function(j){this._readableState&&(this._readableState.flowing=j)},"set")}),de._fromList=Z,Object.defineProperty(de.prototype,"readableLength",{enumerable:!1,get:r(function(){return this._readableState.length},"get")});function Z(K,j){if(j.length===0)return null;var fe;return j.objectMode?fe=j.buffer.shift():!K||K>=j.length?(j.decoder?fe=j.buffer.join(""):j.buffer.length===1?fe=j.buffer.first():fe=j.buffer.concat(j.length),j.buffer.clear()):fe=j.buffer.consume(K,j.decoder),fe}r(Z,"fromList");function ue(K){var j=K._readableState;a("endReadable",j.endEmitted),j.endEmitted||(j.ended=!0,_.nextTick(ce,j,K))}r(ue,"endReadable");function ce(K,j){if(a("endReadableNT",K.endEmitted,K.length),!K.endEmitted&&K.length===0&&(K.endEmitted=!0,j.readable=!1,j.emit("end"),K.autoDestroy)){var fe=j._writableState;(!fe||fe.autoDestroy&&fe.finished)&&j.destroy()}}r(ce,"endReadableNT"),typeof Symbol=="function"&&(de.from=function(K,j){return Q===void 0&&(Q=P(5167)),Q(de,K,j)});function Se(K,j){for(var fe=0,ve=K.length;fe<ve;fe++)if(K[fe]===j)return fe;return-1}r(Se,"indexOf")},4605:(re,$,P)=>{"use strict";re.exports=B;var _=P(4281).q,Y=_.ERR_METHOD_NOT_IMPLEMENTED,z=_.ERR_MULTIPLE_CALLBACK,k=_.ERR_TRANSFORM_ALREADY_TRANSFORMING,d=_.ERR_TRANSFORM_WITH_LENGTH_0,b=P(6753);P(5717)(B,b);function m(a,l){var u=this._transformState;u.transforming=!1;var v=u.writecb;if(v===null)return this.emit("error",new z);u.writechunk=null,u.writecb=null,l!=null&&this.push(l),v(a);var y=this._readableState;y.reading=!1,(y.needReadable||y.length<y.highWaterMark)&&this._read(y.highWaterMark)}r(m,"afterTransform");function B(a){if(!(this instanceof B))return new B(a);b.call(this,a),this._transformState={afterTransform:m.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,a&&(typeof a.transform=="function"&&(this._transform=a.transform),typeof a.flush=="function"&&(this._flush=a.flush)),this.on("prefinish",N)}r(B,"Transform");function N(){var a=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(l,u){p(a,l,u)}):p(this,null,null)}r(N,"prefinish"),B.prototype.push=function(a,l){return this._transformState.needTransform=!1,b.prototype.push.call(this,a,l)},B.prototype._transform=function(a,l,u){u(new Y("_transform()"))},B.prototype._write=function(a,l,u){var v=this._transformState;if(v.writecb=u,v.writechunk=a,v.writeencoding=l,!v.transforming){var y=this._readableState;(v.needTransform||y.needReadable||y.length<y.highWaterMark)&&this._read(y.highWaterMark)}},B.prototype._read=function(a){var l=this._transformState;l.writechunk!==null&&!l.transforming?(l.transforming=!0,this._transform(l.writechunk,l.writeencoding,l.afterTransform)):l.needTransform=!0},B.prototype._destroy=function(a,l){b.prototype._destroy.call(this,a,function(u){l(u)})};function p(a,l,u){if(l)return a.emit("error",l);if(u!=null&&a.push(u),a._writableState.length)throw new d;if(a._transformState.transforming)throw new k;return a.push(null)}r(p,"done")},4229:(re,$,P)=>{"use strict";var _=P(4155);re.exports=ge;function Y(X,Z,ue){this.chunk=X,this.encoding=Z,this.callback=ue,this.next=null}r(Y,"WriteReq");function z(X){var Z=this;this.next=null,this.entry=null,this.finish=function(){U(Z,X)}}r(z,"CorkedRequest");var k;ge.WritableState=ae;var d={deprecate:P(4927)},b=P(2503),m=P(8764).Buffer,B=(typeof P.g<"u"?P.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function N(X){return m.from(X)}r(N,"_uint8ArrayToBuffer");function p(X){return m.isBuffer(X)||X instanceof B}r(p,"_isUint8Array");var a=P(1195),l=P(2457),u=l.getHighWaterMark,v=P(4281).q,y=v.ERR_INVALID_ARG_TYPE,g=v.ERR_METHOD_NOT_IMPLEMENTED,A=v.ERR_MULTIPLE_CALLBACK,w=v.ERR_STREAM_CANNOT_PIPE,R=v.ERR_STREAM_DESTROYED,C=v.ERR_STREAM_NULL_VALUES,L=v.ERR_STREAM_WRITE_AFTER_END,V=v.ERR_UNKNOWN_ENCODING,Q=a.errorOrDestroy;P(5717)(ge,b);function ie(){}r(ie,"nop");function ae(X,Z,ue){k=k||P(6753),X=X||{},typeof ue!="boolean"&&(ue=Z instanceof k),this.objectMode=!!X.objectMode,ue&&(this.objectMode=this.objectMode||!!X.writableObjectMode),this.highWaterMark=u(this,X,"writableHighWaterMark",ue),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ce=X.decodeStrings===!1;this.decodeStrings=!ce,this.defaultEncoding=X.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Se){M(Z,Se)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=X.emitClose!==!1,this.autoDestroy=!!X.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new z(this)}r(ae,"WritableState"),ae.prototype.getBuffer=r(function(){for(var Z=this.bufferedRequest,ue=[];Z;)ue.push(Z),Z=Z.next;return ue},"getBuffer"),function(){try{Object.defineProperty(ae.prototype,"buffer",{get:d.deprecate(r(function(){return this.getBuffer()},"writableStateBufferGetter"),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var oe;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(oe=Function.prototype[Symbol.hasInstance],Object.defineProperty(ge,Symbol.hasInstance,{value:r(function(Z){return oe.call(this,Z)?!0:this!==ge?!1:Z&&Z._writableState instanceof ae},"value")})):oe=r(function(Z){return Z instanceof this},"realHasInstance");function ge(X){k=k||P(6753);var Z=this instanceof k;if(!Z&&!oe.call(ge,this))return new ge(X);this._writableState=new ae(X,this,Z),this.writable=!0,X&&(typeof X.write=="function"&&(this._write=X.write),typeof X.writev=="function"&&(this._writev=X.writev),typeof X.destroy=="function"&&(this._destroy=X.destroy),typeof X.final=="function"&&(this._final=X.final)),b.call(this)}r(ge,"Writable"),ge.prototype.pipe=function(){Q(this,new w)};function de(X,Z){var ue=new L;Q(X,ue),_.nextTick(Z,ue)}r(de,"writeAfterEnd");function te(X,Z,ue,ce){var Se;return ue===null?Se=new C:typeof ue!="string"&&!Z.objectMode&&(Se=new y("chunk",["string","Buffer"],ue)),Se?(Q(X,Se),_.nextTick(ce,Se),!1):!0}r(te,"validChunk"),ge.prototype.write=function(X,Z,ue){var ce=this._writableState,Se=!1,K=!ce.objectMode&&p(X);return K&&!m.isBuffer(X)&&(X=N(X)),typeof Z=="function"&&(ue=Z,Z=null),K?Z="buffer":Z||(Z=ce.defaultEncoding),typeof ue!="function"&&(ue=ie),ce.ending?de(this,ue):(K||te(this,ce,X,ue))&&(ce.pendingcb++,Se=i(this,ce,K,X,Z,ue)),Se},ge.prototype.cork=function(){this._writableState.corked++},ge.prototype.uncork=function(){var X=this._writableState;X.corked&&(X.corked--,!X.writing&&!X.corked&&!X.bufferProcessing&&X.bufferedRequest&&F(this,X))},ge.prototype.setDefaultEncoding=r(function(Z){if(typeof Z=="string"&&(Z=Z.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Z+"").toLowerCase())>-1))throw new V(Z);return this._writableState.defaultEncoding=Z,this},"setDefaultEncoding"),Object.defineProperty(ge.prototype,"writableBuffer",{enumerable:!1,get:r(function(){return this._writableState&&this._writableState.getBuffer()},"get")});function E(X,Z,ue){return!X.objectMode&&X.decodeStrings!==!1&&typeof Z=="string"&&(Z=m.from(Z,ue)),Z}r(E,"decodeChunk"),Object.defineProperty(ge.prototype,"writableHighWaterMark",{enumerable:!1,get:r(function(){return this._writableState.highWaterMark},"get")});function i(X,Z,ue,ce,Se,K){if(!ue){var j=E(Z,ce,Se);ce!==j&&(ue=!0,Se="buffer",ce=j)}var fe=Z.objectMode?1:ce.length;Z.length+=fe;var ve=Z.length<Z.highWaterMark;if(ve||(Z.needDrain=!0),Z.writing||Z.corked){var Re=Z.lastBufferedRequest;Z.lastBufferedRequest={chunk:ce,encoding:Se,isBuf:ue,callback:K,next:null},Re?Re.next=Z.lastBufferedRequest:Z.bufferedRequest=Z.lastBufferedRequest,Z.bufferedRequestCount+=1}else o(X,Z,!1,fe,ce,Se,K);return ve}r(i,"writeOrBuffer");function o(X,Z,ue,ce,Se,K,j){Z.writelen=ce,Z.writecb=j,Z.writing=!0,Z.sync=!0,Z.destroyed?Z.onwrite(new R("write")):ue?X._writev(Se,Z.onwrite):X._write(Se,K,Z.onwrite),Z.sync=!1}r(o,"doWrite");function c(X,Z,ue,ce,Se){--Z.pendingcb,ue?(_.nextTick(Se,ce),_.nextTick(ye,X,Z),X._writableState.errorEmitted=!0,Q(X,ce)):(Se(ce),X._writableState.errorEmitted=!0,Q(X,ce),ye(X,Z))}r(c,"onwriteError");function S(X){X.writing=!1,X.writecb=null,X.length-=X.writelen,X.writelen=0}r(S,"onwriteStateUpdate");function M(X,Z){var ue=X._writableState,ce=ue.sync,Se=ue.writecb;if(typeof Se!="function")throw new A;if(S(ue),Z)c(X,ue,ce,Z,Se);else{var K=f(ue)||X.destroyed;!K&&!ue.corked&&!ue.bufferProcessing&&ue.bufferedRequest&&F(X,ue),ce?_.nextTick(G,X,ue,K,Se):G(X,ue,K,Se)}}r(M,"onwrite");function G(X,Z,ue,ce){ue||J(X,Z),Z.pendingcb--,ce(),ye(X,Z)}r(G,"afterWrite");function J(X,Z){Z.length===0&&Z.needDrain&&(Z.needDrain=!1,X.emit("drain"))}r(J,"onwriteDrain");function F(X,Z){Z.bufferProcessing=!0;var ue=Z.bufferedRequest;if(X._writev&&ue&&ue.next){var ce=Z.bufferedRequestCount,Se=new Array(ce),K=Z.corkedRequestsFree;K.entry=ue;for(var j=0,fe=!0;ue;)Se[j]=ue,ue.isBuf||(fe=!1),ue=ue.next,j+=1;Se.allBuffers=fe,o(X,Z,!0,Z.length,Se,"",K.finish),Z.pendingcb++,Z.lastBufferedRequest=null,K.next?(Z.corkedRequestsFree=K.next,K.next=null):Z.corkedRequestsFree=new z(Z),Z.bufferedRequestCount=0}else{for(;ue;){var ve=ue.chunk,Re=ue.encoding,_e=ue.callback,Me=Z.objectMode?1:ve.length;if(o(X,Z,!1,Me,ve,Re,_e),ue=ue.next,Z.bufferedRequestCount--,Z.writing)break}ue===null&&(Z.lastBufferedRequest=null)}Z.bufferedRequest=ue,Z.bufferProcessing=!1}r(F,"clearBuffer"),ge.prototype._write=function(X,Z,ue){ue(new g("_write()"))},ge.prototype._writev=null,ge.prototype.end=function(X,Z,ue){var ce=this._writableState;return typeof X=="function"?(ue=X,X=null,Z=null):typeof Z=="function"&&(ue=Z,Z=null),X!=null&&this.write(X,Z),ce.corked&&(ce.corked=1,this.uncork()),ce.ending||Ee(this,ce,ue),this},Object.defineProperty(ge.prototype,"writableLength",{enumerable:!1,get:r(function(){return this._writableState.length},"get")});function f(X){return X.ending&&X.length===0&&X.bufferedRequest===null&&!X.finished&&!X.writing}r(f,"needFinish");function H(X,Z){X._final(function(ue){Z.pendingcb--,ue&&Q(X,ue),Z.prefinished=!0,X.emit("prefinish"),ye(X,Z)})}r(H,"callFinal");function xe(X,Z){!Z.prefinished&&!Z.finalCalled&&(typeof X._final=="function"&&!Z.destroyed?(Z.pendingcb++,Z.finalCalled=!0,_.nextTick(H,X,Z)):(Z.prefinished=!0,X.emit("prefinish")))}r(xe,"prefinish");function ye(X,Z){var ue=f(Z);if(ue&&(xe(X,Z),Z.pendingcb===0&&(Z.finished=!0,X.emit("finish"),Z.autoDestroy))){var ce=X._readableState;(!ce||ce.autoDestroy&&ce.endEmitted)&&X.destroy()}return ue}r(ye,"finishMaybe");function Ee(X,Z,ue){Z.ending=!0,ye(X,Z),ue&&(Z.finished?_.nextTick(ue):X.once("finish",ue)),Z.ended=!0,X.writable=!1}r(Ee,"endWritable");function U(X,Z,ue){var ce=X.entry;for(X.entry=null;ce;){var Se=ce.callback;Z.pendingcb--,Se(ue),ce=ce.next}Z.corkedRequestsFree.next=X}r(U,"onCorkedFinish"),Object.defineProperty(ge.prototype,"destroyed",{enumerable:!1,get:r(function(){return this._writableState===void 0?!1:this._writableState.destroyed},"get"),set:r(function(Z){this._writableState&&(this._writableState.destroyed=Z)},"set")}),ge.prototype.destroy=a.destroy,ge.prototype._undestroy=a.undestroy,ge.prototype._destroy=function(X,Z){Z(X)}},5850:(re,$,P)=>{"use strict";var _=P(4155),Y;function z(L,V,Q){return V=k(V),V in L?Object.defineProperty(L,V,{value:Q,enumerable:!0,configurable:!0,writable:!0}):L[V]=Q,L}r(z,"_defineProperty");function k(L){var V=d(L,"string");return typeof V=="symbol"?V:String(V)}r(k,"_toPropertyKey");function d(L,V){if(typeof L!="object"||L===null)return L;var Q=L[Symbol.toPrimitive];if(Q!==void 0){var ie=Q.call(L,V||"default");if(typeof ie!="object")return ie;throw new TypeError("@@toPrimitive must return a primitive value.")}return(V==="string"?String:Number)(L)}r(d,"_toPrimitive");var b=P(8610),m=Symbol("lastResolve"),B=Symbol("lastReject"),N=Symbol("error"),p=Symbol("ended"),a=Symbol("lastPromise"),l=Symbol("handlePromise"),u=Symbol("stream");function v(L,V){return{value:L,done:V}}r(v,"createIterResult");function y(L){var V=L[m];if(V!==null){var Q=L[u].read();Q!==null&&(L[a]=null,L[m]=null,L[B]=null,V(v(Q,!1)))}}r(y,"readAndResolve");function g(L){_.nextTick(y,L)}r(g,"onReadable");function A(L,V){return function(Q,ie){L.then(function(){if(V[p]){Q(v(void 0,!0));return}V[l](Q,ie)},ie)}}r(A,"wrapForNext");var w=Object.getPrototypeOf(function(){}),R=Object.setPrototypeOf((Y={get stream(){return this[u]},next:r(function(){var V=this,Q=this[N];if(Q!==null)return Promise.reject(Q);if(this[p])return Promise.resolve(v(void 0,!0));if(this[u].destroyed)return new Promise(function(ge,de){_.nextTick(function(){V[N]?de(V[N]):ge(v(void 0,!0))})});var ie=this[a],ae;if(ie)ae=new Promise(A(ie,this));else{var oe=this[u].read();if(oe!==null)return Promise.resolve(v(oe,!1));ae=new Promise(this[l])}return this[a]=ae,ae},"next")},z(Y,Symbol.asyncIterator,function(){return this}),z(Y,"return",r(function(){var V=this;return new Promise(function(Q,ie){V[u].destroy(null,function(ae){if(ae){ie(ae);return}Q(v(void 0,!0))})})},"_return")),Y),w),C=r(function(V){var Q,ie=Object.create(R,(Q={},z(Q,u,{value:V,writable:!0}),z(Q,m,{value:null,writable:!0}),z(Q,B,{value:null,writable:!0}),z(Q,N,{value:null,writable:!0}),z(Q,p,{value:V._readableState.endEmitted,writable:!0}),z(Q,l,{value:r(function(oe,ge){var de=ie[u].read();de?(ie[a]=null,ie[m]=null,ie[B]=null,oe(v(de,!1))):(ie[m]=oe,ie[B]=ge)},"value"),writable:!0}),Q));return ie[a]=null,b(V,function(ae){if(ae&&ae.code!=="ERR_STREAM_PREMATURE_CLOSE"){var oe=ie[B];oe!==null&&(ie[a]=null,ie[m]=null,ie[B]=null,oe(ae)),ie[N]=ae;return}var ge=ie[m];ge!==null&&(ie[a]=null,ie[m]=null,ie[B]=null,ge(v(void 0,!0))),ie[p]=!0}),V.on("readable",g.bind(null,ie)),ie},"createReadableStreamAsyncIterator");re.exports=C},7327:(re,$,P)=>{"use strict";function _(y,g){var A=Object.keys(y);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(y);g&&(w=w.filter(function(R){return Object.getOwnPropertyDescriptor(y,R).enumerable})),A.push.apply(A,w)}return A}r(_,"ownKeys");function Y(y){for(var g=1;g<arguments.length;g++){var A=arguments[g]!=null?arguments[g]:{};g%2?_(Object(A),!0).forEach(function(w){z(y,w,A[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(A)):_(Object(A)).forEach(function(w){Object.defineProperty(y,w,Object.getOwnPropertyDescriptor(A,w))})}return y}r(Y,"_objectSpread");function z(y,g,A){return g=m(g),g in y?Object.defineProperty(y,g,{value:A,enumerable:!0,configurable:!0,writable:!0}):y[g]=A,y}r(z,"_defineProperty");function k(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}r(k,"_classCallCheck");function d(y,g){for(var A=0;A<g.length;A++){var w=g[A];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,m(w.key),w)}}r(d,"_defineProperties");function b(y,g,A){return g&&d(y.prototype,g),A&&d(y,A),Object.defineProperty(y,"prototype",{writable:!1}),y}r(b,"_createClass");function m(y){var g=B(y,"string");return typeof g=="symbol"?g:String(g)}r(m,"_toPropertyKey");function B(y,g){if(typeof y!="object"||y===null)return y;var A=y[Symbol.toPrimitive];if(A!==void 0){var w=A.call(y,g||"default");if(typeof w!="object")return w;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(y)}r(B,"_toPrimitive");var N=P(8764),p=N.Buffer,a=P(2361),l=a.inspect,u=l&&l.custom||"inspect";function v(y,g,A){p.prototype.copy.call(y,g,A)}r(v,"copyBuffer"),re.exports=function(){function y(){k(this,y),this.head=null,this.tail=null,this.length=0}return r(y,"BufferList"),b(y,[{key:"push",value:r(function(A){var w={data:A,next:null};this.length>0?this.tail.next=w:this.head=w,this.tail=w,++this.length},"push")},{key:"unshift",value:r(function(A){var w={data:A,next:this.head};this.length===0&&(this.tail=w),this.head=w,++this.length},"unshift")},{key:"shift",value:r(function(){if(this.length!==0){var A=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,A}},"shift")},{key:"clear",value:r(function(){this.head=this.tail=null,this.length=0},"clear")},{key:"join",value:r(function(A){if(this.length===0)return"";for(var w=this.head,R=""+w.data;w=w.next;)R+=A+w.data;return R},"join")},{key:"concat",value:r(function(A){if(this.length===0)return p.alloc(0);for(var w=p.allocUnsafe(A>>>0),R=this.head,C=0;R;)v(R.data,w,C),C+=R.data.length,R=R.next;return w},"concat")},{key:"consume",value:r(function(A,w){var R;return A<this.head.data.length?(R=this.head.data.slice(0,A),this.head.data=this.head.data.slice(A)):A===this.head.data.length?R=this.shift():R=w?this._getString(A):this._getBuffer(A),R},"consume")},{key:"first",value:r(function(){return this.head.data},"first")},{key:"_getString",value:r(function(A){var w=this.head,R=1,C=w.data;for(A-=C.length;w=w.next;){var L=w.data,V=A>L.length?L.length:A;if(V===L.length?C+=L:C+=L.slice(0,A),A-=V,A===0){V===L.length?(++R,w.next?this.head=w.next:this.head=this.tail=null):(this.head=w,w.data=L.slice(V));break}++R}return this.length-=R,C},"_getString")},{key:"_getBuffer",value:r(function(A){var w=p.allocUnsafe(A),R=this.head,C=1;for(R.data.copy(w),A-=R.data.length;R=R.next;){var L=R.data,V=A>L.length?L.length:A;if(L.copy(w,w.length-A,0,V),A-=V,A===0){V===L.length?(++C,R.next?this.head=R.next:this.head=this.tail=null):(this.head=R,R.data=L.slice(V));break}++C}return this.length-=C,w},"_getBuffer")},{key:u,value:r(function(A,w){return l(this,Y(Y({},w),{},{depth:0,customInspect:!1}))},"value")}]),y}()},1195:(re,$,P)=>{"use strict";var _=P(4155);function Y(B,N){var p=this,a=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return a||l?(N?N(B):B&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,_.nextTick(b,this,B)):_.nextTick(b,this,B)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(B||null,function(u){!N&&u?p._writableState?p._writableState.errorEmitted?_.nextTick(k,p):(p._writableState.errorEmitted=!0,_.nextTick(z,p,u)):_.nextTick(z,p,u):N?(_.nextTick(k,p),N(u)):_.nextTick(k,p)}),this)}r(Y,"destroy");function z(B,N){b(B,N),k(B)}r(z,"emitErrorAndCloseNT");function k(B){B._writableState&&!B._writableState.emitClose||B._readableState&&!B._readableState.emitClose||B.emit("close")}r(k,"emitCloseNT");function d(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}r(d,"undestroy");function b(B,N){B.emit("error",N)}r(b,"emitErrorNT");function m(B,N){var p=B._readableState,a=B._writableState;p&&p.autoDestroy||a&&a.autoDestroy?B.destroy(N):B.emit("error",N)}r(m,"errorOrDestroy"),re.exports={destroy:Y,undestroy:d,errorOrDestroy:m}},8610:(re,$,P)=>{"use strict";var _=P(4281).q.ERR_STREAM_PREMATURE_CLOSE;function Y(b){var m=!1;return function(){if(!m){m=!0;for(var B=arguments.length,N=new Array(B),p=0;p<B;p++)N[p]=arguments[p];b.apply(this,N)}}}r(Y,"once");function z(){}r(z,"noop");function k(b){return b.setHeader&&typeof b.abort=="function"}r(k,"isRequest");function d(b,m,B){if(typeof m=="function")return d(b,null,m);m||(m={}),B=Y(B||z);var N=m.readable||m.readable!==!1&&b.readable,p=m.writable||m.writable!==!1&&b.writable,a=r(function(){b.writable||u()},"onlegacyfinish"),l=b._writableState&&b._writableState.finished,u=r(function(){p=!1,l=!0,N||B.call(b)},"onfinish"),v=b._readableState&&b._readableState.endEmitted,y=r(function(){N=!1,v=!0,p||B.call(b)},"onend"),g=r(function(C){B.call(b,C)},"onerror"),A=r(function(){var C;if(N&&!v)return(!b._readableState||!b._readableState.ended)&&(C=new _),B.call(b,C);if(p&&!l)return(!b._writableState||!b._writableState.ended)&&(C=new _),B.call(b,C)},"onclose"),w=r(function(){b.req.on("finish",u)},"onrequest");return k(b)?(b.on("complete",u),b.on("abort",A),b.req?w():b.on("request",w)):p&&!b._writableState&&(b.on("end",a),b.on("close",a)),b.on("end",y),b.on("finish",u),m.error!==!1&&b.on("error",g),b.on("close",A),function(){b.removeListener("complete",u),b.removeListener("abort",A),b.removeListener("request",w),b.req&&b.req.removeListener("finish",u),b.removeListener("end",a),b.removeListener("close",a),b.removeListener("finish",u),b.removeListener("end",y),b.removeListener("error",g),b.removeListener("close",A)}}r(d,"eos"),re.exports=d},5167:re=>{re.exports=function(){throw new Error("Readable.from is not available in the browser")}},9946:(re,$,P)=>{"use strict";var _;function Y(u){var v=!1;return function(){v||(v=!0,u.apply(void 0,arguments))}}r(Y,"once");var z=P(4281).q,k=z.ERR_MISSING_ARGS,d=z.ERR_STREAM_DESTROYED;function b(u){if(u)throw u}r(b,"noop");function m(u){return u.setHeader&&typeof u.abort=="function"}r(m,"isRequest");function B(u,v,y,g){g=Y(g);var A=!1;u.on("close",function(){A=!0}),_===void 0&&(_=P(8610)),_(u,{readable:v,writable:y},function(R){if(R)return g(R);A=!0,g()});var w=!1;return function(R){if(!A&&!w){if(w=!0,m(u))return u.abort();if(typeof u.destroy=="function")return u.destroy();g(R||new d("pipe"))}}}r(B,"destroyer");function N(u){u()}r(N,"call");function p(u,v){return u.pipe(v)}r(p,"pipe");function a(u){return!u.length||typeof u[u.length-1]!="function"?b:u.pop()}r(a,"popCallback");function l(){for(var u=arguments.length,v=new Array(u),y=0;y<u;y++)v[y]=arguments[y];var g=a(v);if(Array.isArray(v[0])&&(v=v[0]),v.length<2)throw new k("streams");var A,w=v.map(function(R,C){var L=C<v.length-1,V=C>0;return B(R,L,V,function(Q){A||(A=Q),Q&&w.forEach(N),!L&&(w.forEach(N),g(A))})});return v.reduce(p)}r(l,"pipeline"),re.exports=l},2457:(re,$,P)=>{"use strict";var _=P(4281).q.ERR_INVALID_OPT_VALUE;function Y(k,d,b){return k.highWaterMark!=null?k.highWaterMark:d?k[b]:null}r(Y,"highWaterMarkFrom");function z(k,d,b,m){var B=Y(d,m,b);if(B!=null){if(!(isFinite(B)&&Math.floor(B)===B)||B<0){var N=m?b:"highWaterMark";throw new _(N,B)}return Math.floor(B)}return k.objectMode?16:16384}r(z,"getHighWaterMark"),re.exports={getHighWaterMark:z}},2503:(re,$,P)=>{re.exports=P(7187).EventEmitter},8473:(re,$,P)=>{$=re.exports=P(9481),$.Stream=$,$.Readable=$,$.Writable=P(4229),$.Duplex=P(6753),$.Transform=P(4605),$.PassThrough=P(2725),$.finished=P(8610),$.pipeline=P(9946)},9785:(re,$,P)=>{"use strict";var _=P(8764).Buffer,Y=P(5717),z=P(3349),k=new Array(16),d=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],b=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],m=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],B=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],N=[0,1518500249,1859775393,2400959708,2840853838],p=[1352829926,1548603684,1836072691,2053994217,0];function a(){z.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}r(a,"RIPEMD160"),Y(a,z),a.prototype._update=function(){for(var w=k,R=0;R<16;++R)w[R]=this._block.readInt32LE(R*4);for(var C=this._a|0,L=this._b|0,V=this._c|0,Q=this._d|0,ie=this._e|0,ae=this._a|0,oe=this._b|0,ge=this._c|0,de=this._d|0,te=this._e|0,E=0;E<80;E+=1){var i,o;E<16?(i=u(C,L,V,Q,ie,w[d[E]],N[0],m[E]),o=A(ae,oe,ge,de,te,w[b[E]],p[0],B[E])):E<32?(i=v(C,L,V,Q,ie,w[d[E]],N[1],m[E]),o=g(ae,oe,ge,de,te,w[b[E]],p[1],B[E])):E<48?(i=y(C,L,V,Q,ie,w[d[E]],N[2],m[E]),o=y(ae,oe,ge,de,te,w[b[E]],p[2],B[E])):E<64?(i=g(C,L,V,Q,ie,w[d[E]],N[3],m[E]),o=v(ae,oe,ge,de,te,w[b[E]],p[3],B[E])):(i=A(C,L,V,Q,ie,w[d[E]],N[4],m[E]),o=u(ae,oe,ge,de,te,w[b[E]],p[4],B[E])),C=ie,ie=Q,Q=l(V,10),V=L,L=i,ae=te,te=de,de=l(ge,10),ge=oe,oe=o}var c=this._b+V+de|0;this._b=this._c+Q+te|0,this._c=this._d+ie+ae|0,this._d=this._e+C+oe|0,this._e=this._a+L+ge|0,this._a=c},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var w=_.alloc?_.alloc(20):new _(20);return w.writeInt32LE(this._a,0),w.writeInt32LE(this._b,4),w.writeInt32LE(this._c,8),w.writeInt32LE(this._d,12),w.writeInt32LE(this._e,16),w};function l(w,R){return w<<R|w>>>32-R}r(l,"rotl");function u(w,R,C,L,V,Q,ie,ae){return l(w+(R^C^L)+Q+ie|0,ae)+V|0}r(u,"fn1");function v(w,R,C,L,V,Q,ie,ae){return l(w+(R&C|~R&L)+Q+ie|0,ae)+V|0}r(v,"fn2");function y(w,R,C,L,V,Q,ie,ae){return l(w+((R|~C)^L)+Q+ie|0,ae)+V|0}r(y,"fn3");function g(w,R,C,L,V,Q,ie,ae){return l(w+(R&L|C&~L)+Q+ie|0,ae)+V|0}r(g,"fn4");function A(w,R,C,L,V,Q,ie,ae){return l(w+(R^(C|~L))+Q+ie|0,ae)+V|0}r(A,"fn5"),re.exports=a},9509:(re,$,P)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var _=P(8764),Y=_.Buffer;function z(d,b){for(var m in d)b[m]=d[m]}r(z,"copyProps"),Y.from&&Y.alloc&&Y.allocUnsafe&&Y.allocUnsafeSlow?re.exports=_:(z(_,$),$.Buffer=k);function k(d,b,m){return Y(d,b,m)}r(k,"SafeBuffer"),k.prototype=Object.create(Y.prototype),z(Y,k),k.from=function(d,b,m){if(typeof d=="number")throw new TypeError("Argument must not be a number");return Y(d,b,m)},k.alloc=function(d,b,m){if(typeof d!="number")throw new TypeError("Argument must be a number");var B=Y(d);return b!==void 0?typeof m=="string"?B.fill(b,m):B.fill(b):B.fill(0),B},k.allocUnsafe=function(d){if(typeof d!="number")throw new TypeError("Argument must be a number");return Y(d)},k.allocUnsafeSlow=function(d){if(typeof d!="number")throw new TypeError("Argument must be a number");return _.SlowBuffer(d)}},4189:(re,$,P)=>{var _=P(9509).Buffer;function Y(z,k){this._block=_.alloc(z),this._finalSize=k,this._blockSize=z,this._len=0}r(Y,"Hash"),Y.prototype.update=function(z,k){typeof z=="string"&&(k=k||"utf8",z=_.from(z,k));for(var d=this._block,b=this._blockSize,m=z.length,B=this._len,N=0;N<m;){for(var p=B%b,a=Math.min(m-N,b-p),l=0;l<a;l++)d[p+l]=z[N+l];B+=a,N+=a,B%b===0&&this._update(d)}return this._len+=m,this},Y.prototype.digest=function(z){var k=this._len%this._blockSize;this._block[k]=128,this._block.fill(0,k+1),k>=this._finalSize&&(this._update(this._block),this._block.fill(0));var d=this._len*8;if(d<=4294967295)this._block.writeUInt32BE(d,this._blockSize-4);else{var b=(d&4294967295)>>>0,m=(d-b)/4294967296;this._block.writeUInt32BE(m,this._blockSize-8),this._block.writeUInt32BE(b,this._blockSize-4)}this._update(this._block);var B=this._hash();return z?B.toString(z):B},Y.prototype._update=function(){throw new Error("_update must be implemented by subclass")},re.exports=Y},9072:(re,$,P)=>{var _=re.exports=r(function(z){z=z.toLowerCase();var k=_[z];if(!k)throw new Error(z+" is not supported (we accept pull requests)");return new k},"SHA");_.sha=P(4448),_.sha1=P(8336),_.sha224=P(8432),_.sha256=P(7499),_.sha384=P(1686),_.sha512=P(7816)},4448:(re,$,P)=>{var _=P(5717),Y=P(4189),z=P(9509).Buffer,k=[1518500249,1859775393,-1894007588,-899497514],d=new Array(80);function b(){this.init(),this._w=d,Y.call(this,64,56)}r(b,"Sha"),_(b,Y),b.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function m(p){return p<<5|p>>>27}r(m,"rotl5");function B(p){return p<<30|p>>>2}r(B,"rotl30");function N(p,a,l,u){return p===0?a&l|~a&u:p===2?a&l|a&u|l&u:a^l^u}r(N,"ft"),b.prototype._update=function(p){for(var a=this._w,l=this._a|0,u=this._b|0,v=this._c|0,y=this._d|0,g=this._e|0,A=0;A<16;++A)a[A]=p.readInt32BE(A*4);for(;A<80;++A)a[A]=a[A-3]^a[A-8]^a[A-14]^a[A-16];for(var w=0;w<80;++w){var R=~~(w/20),C=m(l)+N(R,u,v,y)+g+a[w]+k[R]|0;g=y,y=v,v=B(u),u=l,l=C}this._a=l+this._a|0,this._b=u+this._b|0,this._c=v+this._c|0,this._d=y+this._d|0,this._e=g+this._e|0},b.prototype._hash=function(){var p=z.allocUnsafe(20);return p.writeInt32BE(this._a|0,0),p.writeInt32BE(this._b|0,4),p.writeInt32BE(this._c|0,8),p.writeInt32BE(this._d|0,12),p.writeInt32BE(this._e|0,16),p},re.exports=b},8336:(re,$,P)=>{var _=P(5717),Y=P(4189),z=P(9509).Buffer,k=[1518500249,1859775393,-1894007588,-899497514],d=new Array(80);function b(){this.init(),this._w=d,Y.call(this,64,56)}r(b,"Sha1"),_(b,Y),b.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function m(a){return a<<1|a>>>31}r(m,"rotl1");function B(a){return a<<5|a>>>27}r(B,"rotl5");function N(a){return a<<30|a>>>2}r(N,"rotl30");function p(a,l,u,v){return a===0?l&u|~l&v:a===2?l&u|l&v|u&v:l^u^v}r(p,"ft"),b.prototype._update=function(a){for(var l=this._w,u=this._a|0,v=this._b|0,y=this._c|0,g=this._d|0,A=this._e|0,w=0;w<16;++w)l[w]=a.readInt32BE(w*4);for(;w<80;++w)l[w]=m(l[w-3]^l[w-8]^l[w-14]^l[w-16]);for(var R=0;R<80;++R){var C=~~(R/20),L=B(u)+p(C,v,y,g)+A+l[R]+k[C]|0;A=g,g=y,y=N(v),v=u,u=L}this._a=u+this._a|0,this._b=v+this._b|0,this._c=y+this._c|0,this._d=g+this._d|0,this._e=A+this._e|0},b.prototype._hash=function(){var a=z.allocUnsafe(20);return a.writeInt32BE(this._a|0,0),a.writeInt32BE(this._b|0,4),a.writeInt32BE(this._c|0,8),a.writeInt32BE(this._d|0,12),a.writeInt32BE(this._e|0,16),a},re.exports=b},8432:(re,$,P)=>{var _=P(5717),Y=P(7499),z=P(4189),k=P(9509).Buffer,d=new Array(64);function b(){this.init(),this._w=d,z.call(this,64,56)}r(b,"Sha224"),_(b,Y),b.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},b.prototype._hash=function(){var m=k.allocUnsafe(28);return m.writeInt32BE(this._a,0),m.writeInt32BE(this._b,4),m.writeInt32BE(this._c,8),m.writeInt32BE(this._d,12),m.writeInt32BE(this._e,16),m.writeInt32BE(this._f,20),m.writeInt32BE(this._g,24),m},re.exports=b},7499:(re,$,P)=>{var _=P(5717),Y=P(4189),z=P(9509).Buffer,k=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],d=new Array(64);function b(){this.init(),this._w=d,Y.call(this,64,56)}r(b,"Sha256"),_(b,Y),b.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function m(u,v,y){return y^u&(v^y)}r(m,"ch");function B(u,v,y){return u&v|y&(u|v)}r(B,"maj");function N(u){return(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10)}r(N,"sigma0");function p(u){return(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7)}r(p,"sigma1");function a(u){return(u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3}r(a,"gamma0");function l(u){return(u>>>17|u<<15)^(u>>>19|u<<13)^u>>>10}r(l,"gamma1"),b.prototype._update=function(u){for(var v=this._w,y=this._a|0,g=this._b|0,A=this._c|0,w=this._d|0,R=this._e|0,C=this._f|0,L=this._g|0,V=this._h|0,Q=0;Q<16;++Q)v[Q]=u.readInt32BE(Q*4);for(;Q<64;++Q)v[Q]=l(v[Q-2])+v[Q-7]+a(v[Q-15])+v[Q-16]|0;for(var ie=0;ie<64;++ie){var ae=V+p(R)+m(R,C,L)+k[ie]+v[ie]|0,oe=N(y)+B(y,g,A)|0;V=L,L=C,C=R,R=w+ae|0,w=A,A=g,g=y,y=ae+oe|0}this._a=y+this._a|0,this._b=g+this._b|0,this._c=A+this._c|0,this._d=w+this._d|0,this._e=R+this._e|0,this._f=C+this._f|0,this._g=L+this._g|0,this._h=V+this._h|0},b.prototype._hash=function(){var u=z.allocUnsafe(32);return u.writeInt32BE(this._a,0),u.writeInt32BE(this._b,4),u.writeInt32BE(this._c,8),u.writeInt32BE(this._d,12),u.writeInt32BE(this._e,16),u.writeInt32BE(this._f,20),u.writeInt32BE(this._g,24),u.writeInt32BE(this._h,28),u},re.exports=b},1686:(re,$,P)=>{var _=P(5717),Y=P(7816),z=P(4189),k=P(9509).Buffer,d=new Array(160);function b(){this.init(),this._w=d,z.call(this,128,112)}r(b,"Sha384"),_(b,Y),b.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},b.prototype._hash=function(){var m=k.allocUnsafe(48);function B(N,p,a){m.writeInt32BE(N,a),m.writeInt32BE(p,a+4)}return r(B,"writeInt64BE"),B(this._ah,this._al,0),B(this._bh,this._bl,8),B(this._ch,this._cl,16),B(this._dh,this._dl,24),B(this._eh,this._el,32),B(this._fh,this._fl,40),m},re.exports=b},7816:(re,$,P)=>{var _=P(5717),Y=P(4189),z=P(9509).Buffer,k=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],d=new Array(160);function b(){this.init(),this._w=d,Y.call(this,128,112)}r(b,"Sha512"),_(b,Y),b.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function m(g,A,w){return w^g&(A^w)}r(m,"Ch");function B(g,A,w){return g&A|w&(g|A)}r(B,"maj");function N(g,A){return(g>>>28|A<<4)^(A>>>2|g<<30)^(A>>>7|g<<25)}r(N,"sigma0");function p(g,A){return(g>>>14|A<<18)^(g>>>18|A<<14)^(A>>>9|g<<23)}r(p,"sigma1");function a(g,A){return(g>>>1|A<<31)^(g>>>8|A<<24)^g>>>7}r(a,"Gamma0");function l(g,A){return(g>>>1|A<<31)^(g>>>8|A<<24)^(g>>>7|A<<25)}r(l,"Gamma0l");function u(g,A){return(g>>>19|A<<13)^(A>>>29|g<<3)^g>>>6}r(u,"Gamma1");function v(g,A){return(g>>>19|A<<13)^(A>>>29|g<<3)^(g>>>6|A<<26)}r(v,"Gamma1l");function y(g,A){return g>>>0<A>>>0?1:0}r(y,"getCarry"),b.prototype._update=function(g){for(var A=this._w,w=this._ah|0,R=this._bh|0,C=this._ch|0,L=this._dh|0,V=this._eh|0,Q=this._fh|0,ie=this._gh|0,ae=this._hh|0,oe=this._al|0,ge=this._bl|0,de=this._cl|0,te=this._dl|0,E=this._el|0,i=this._fl|0,o=this._gl|0,c=this._hl|0,S=0;S<32;S+=2)A[S]=g.readInt32BE(S*4),A[S+1]=g.readInt32BE(S*4+4);for(;S<160;S+=2){var M=A[S-30],G=A[S-15*2+1],J=a(M,G),F=l(G,M);M=A[S-4],G=A[S-4+1];var f=u(M,G),H=v(G,M),xe=A[S-7*2],ye=A[S-7*2+1],Ee=A[S-16*2],U=A[S-16*2+1],X=F+ye|0,Z=J+xe+y(X,F)|0;X=X+H|0,Z=Z+f+y(X,H)|0,X=X+U|0,Z=Z+Ee+y(X,U)|0,A[S]=Z,A[S+1]=X}for(var ue=0;ue<160;ue+=2){Z=A[ue],X=A[ue+1];var ce=B(w,R,C),Se=B(oe,ge,de),K=N(w,oe),j=N(oe,w),fe=p(V,E),ve=p(E,V),Re=k[ue],_e=k[ue+1],Me=m(V,Q,ie),me=m(E,i,o),Oe=c+ve|0,Ae=ae+fe+y(Oe,c)|0;Oe=Oe+me|0,Ae=Ae+Me+y(Oe,me)|0,Oe=Oe+_e|0,Ae=Ae+Re+y(Oe,_e)|0,Oe=Oe+X|0,Ae=Ae+Z+y(Oe,X)|0;var De=j+Se|0,Te=K+ce+y(De,j)|0;ae=ie,c=o,ie=Q,o=i,Q=V,i=E,E=te+Oe|0,V=L+Ae+y(E,te)|0,L=C,te=de,C=R,de=ge,R=w,ge=oe,oe=Oe+De|0,w=Ae+Te+y(oe,Oe)|0}this._al=this._al+oe|0,this._bl=this._bl+ge|0,this._cl=this._cl+de|0,this._dl=this._dl+te|0,this._el=this._el+E|0,this._fl=this._fl+i|0,this._gl=this._gl+o|0,this._hl=this._hl+c|0,this._ah=this._ah+w+y(this._al,oe)|0,this._bh=this._bh+R+y(this._bl,ge)|0,this._ch=this._ch+C+y(this._cl,de)|0,this._dh=this._dh+L+y(this._dl,te)|0,this._eh=this._eh+V+y(this._el,E)|0,this._fh=this._fh+Q+y(this._fl,i)|0,this._gh=this._gh+ie+y(this._gl,o)|0,this._hh=this._hh+ae+y(this._hl,c)|0},b.prototype._hash=function(){var g=z.allocUnsafe(64);function A(w,R,C){g.writeInt32BE(w,C),g.writeInt32BE(R,C+4)}return r(A,"writeInt64BE"),A(this._ah,this._al,0),A(this._bh,this._bl,8),A(this._ch,this._cl,16),A(this._dh,this._dl,24),A(this._eh,this._el,32),A(this._fh,this._fl,40),A(this._gh,this._gl,48),A(this._hh,this._hl,56),g},re.exports=b},2553:(re,$,P)=>{"use strict";var _=P(9509).Buffer,Y=_.isEncoding||function(w){switch(w=""+w,w&&w.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function z(w){if(!w)return"utf8";for(var R;;)switch(w){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return w;default:if(R)return;w=(""+w).toLowerCase(),R=!0}}r(z,"_normalizeEncoding");function k(w){var R=z(w);if(typeof R!="string"&&(_.isEncoding===Y||!Y(w)))throw new Error("Unknown encoding: "+w);return R||w}r(k,"normalizeEncoding"),$.s=d;function d(w){this.encoding=k(w);var R;switch(this.encoding){case"utf16le":this.text=l,this.end=u,R=4;break;case"utf8":this.fillLast=N,R=4;break;case"base64":this.text=v,this.end=y,R=3;break;default:this.write=g,this.end=A;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=_.allocUnsafe(R)}r(d,"StringDecoder"),d.prototype.write=function(w){if(w.length===0)return"";var R,C;if(this.lastNeed){if(R=this.fillLast(w),R===void 0)return"";C=this.lastNeed,this.lastNeed=0}else C=0;return C<w.length?R?R+this.text(w,C):this.text(w,C):R||""},d.prototype.end=a,d.prototype.text=p,d.prototype.fillLast=function(w){if(this.lastNeed<=w.length)return w.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);w.copy(this.lastChar,this.lastTotal-this.lastNeed,0,w.length),this.lastNeed-=w.length};function b(w){return w<=127?0:w>>5===6?2:w>>4===14?3:w>>3===30?4:w>>6===2?-1:-2}r(b,"utf8CheckByte");function m(w,R,C){var L=R.length-1;if(L<C)return 0;var V=b(R[L]);return V>=0?(V>0&&(w.lastNeed=V-1),V):--L<C||V===-2?0:(V=b(R[L]),V>=0?(V>0&&(w.lastNeed=V-2),V):--L<C||V===-2?0:(V=b(R[L]),V>=0?(V>0&&(V===2?V=0:w.lastNeed=V-3),V):0))}r(m,"utf8CheckIncomplete");function B(w,R,C){if((R[0]&192)!==128)return w.lastNeed=0,"\uFFFD";if(w.lastNeed>1&&R.length>1){if((R[1]&192)!==128)return w.lastNeed=1,"\uFFFD";if(w.lastNeed>2&&R.length>2&&(R[2]&192)!==128)return w.lastNeed=2,"\uFFFD"}}r(B,"utf8CheckExtraBytes");function N(w){var R=this.lastTotal-this.lastNeed,C=B(this,w,R);if(C!==void 0)return C;if(this.lastNeed<=w.length)return w.copy(this.lastChar,R,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);w.copy(this.lastChar,R,0,w.length),this.lastNeed-=w.length}r(N,"utf8FillLast");function p(w,R){var C=m(this,w,R);if(!this.lastNeed)return w.toString("utf8",R);this.lastTotal=C;var L=w.length-(C-this.lastNeed);return w.copy(this.lastChar,0,L),w.toString("utf8",R,L)}r(p,"utf8Text");function a(w){var R=w&&w.length?this.write(w):"";return this.lastNeed?R+"\uFFFD":R}r(a,"utf8End");function l(w,R){if((w.length-R)%2===0){var C=w.toString("utf16le",R);if(C){var L=C.charCodeAt(C.length-1);if(L>=55296&&L<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1],C.slice(0,-1)}return C}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=w[w.length-1],w.toString("utf16le",R,w.length-1)}r(l,"utf16Text");function u(w){var R=w&&w.length?this.write(w):"";if(this.lastNeed){var C=this.lastTotal-this.lastNeed;return R+this.lastChar.toString("utf16le",0,C)}return R}r(u,"utf16End");function v(w,R){var C=(w.length-R)%3;return C===0?w.toString("base64",R):(this.lastNeed=3-C,this.lastTotal=3,C===1?this.lastChar[0]=w[w.length-1]:(this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1]),w.toString("base64",R,w.length-C))}r(v,"base64Text");function y(w){var R=w&&w.length?this.write(w):"";return this.lastNeed?R+this.lastChar.toString("base64",0,3-this.lastNeed):R}r(y,"base64End");function g(w){return w.toString(this.encoding)}r(g,"simpleWrite");function A(w){return w&&w.length?this.write(w):""}r(A,"simpleEnd")},4927:(re,$,P)=>{re.exports=_;function _(z,k){if(Y("noDeprecation"))return z;var d=!1;function b(){if(!d){if(Y("throwDeprecation"))throw new Error(k);Y("traceDeprecation")?console.trace(k):console.warn(k),d=!0}return z.apply(this,arguments)}return r(b,"deprecated"),b}r(_,"deprecate");function Y(z){try{if(!P.g.localStorage)return!1}catch{return!1}var k=P.g.localStorage[z];return k==null?!1:String(k).toLowerCase()==="true"}r(Y,"config")},6601:()=>{},9214:()=>{},2361:()=>{},4616:()=>{},2726:re=>{"use strict";re.exports={i8:"7.0.1"}}},It={};function Be(re){var $=It[re];if($!==void 0)return $.exports;var P=It[re]={id:re,loaded:!1,exports:{}};return kt[re].call(P.exports,P,P.exports,Be),P.loaded=!0,P.exports}r(Be,"__webpack_require__"),Be.n=re=>{var $=re&&re.__esModule?()=>re.default:()=>re;return Be.d($,{a:$}),$},Be.d=(re,$)=>{for(var P in $)Be.o($,P)&&!Be.o(re,P)&&Object.defineProperty(re,P,{enumerable:!0,get:$[P]})},Be.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),Be.o=(re,$)=>Object.prototype.hasOwnProperty.call(re,$),Be.r=re=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(re,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(re,"__esModule",{value:!0})},Be.nmd=re=>(re.paths=[],re.children||(re.children=[]),re);var Ft={};return(()=>{"use strict";Be.r(Ft),Be.d(Ft,{Ach:()=>mt,Address:()=>Te,Aes:()=>Ke,Aescbc:()=>pt,Base58:()=>ie,Base58Check:()=>M,Bip32:()=>I,Bip39:()=>se,Block:()=>et,BlockHeader:()=>We,Bn:()=>l,Br:()=>g,Bsm:()=>Ne,Bw:()=>w,Cbc:()=>Ge,Constants:()=>H,Ecdsa:()=>Ue,Ecies:()=>ut,Hash:()=>c,Interp:()=>he,KeyPair:()=>ne,OpCode:()=>U,Point:()=>ce,PrivKey:()=>_e,PubKey:()=>K,Random:()=>ve,Script:()=>Ae,Sig:()=>me,SigOperations:()=>Bt,Struct:()=>V,Tx:()=>je,TxBuilder:()=>ot,TxIn:()=>Ye,TxOut:()=>ze,TxOutMap:()=>tt,TxVerifier:()=>$e,VarInt:()=>He,Workers:()=>i,WorkersResult:()=>de,cmp:()=>oe,deps:()=>Nt,en:()=>s,es:()=>D,getConstants:()=>xe,jp:()=>h,version:()=>Mt});var re=Be(4297),$=Be.n(re),P=Be(3550),_=Be.n(P),Y=Be(7191),z=Be.n(Y),k=Be(4666),d=Be.n(k),b=Be(3715),m=Be.n(b),B=Be(5632),N=Be(8764);const p={i8:"2.0.24"};var a=Be(8764).Buffer;function l(O,e,...t){if(!(this instanceof l))return new l(O,e,...t);_().call(this,O,e,...t)}r(l,"Bn"),Object.keys(_()).forEach(function(O){l[O]=_()[O]}),l.prototype=Object.create(_().prototype),l.prototype.constructor=l;function u(O){const e=a.alloc(O.length);for(let t=0;t<O.length;t++)e[t]=O[O.length-1-t];return e}r(u,"reverseBuf"),l.prototype.fromHex=function(O,e){return this.fromBuffer(a.from(O,"hex"),e)},l.prototype.toHex=function(O){return this.toBuffer(O).toString("hex")},l.prototype.toJSON=function(){return this.toString()},l.prototype.fromJSON=function(O){return l(O).copy(this),this},l.prototype.fromNumber=function(O){return l(O).copy(this),this},l.prototype.toNumber=function(){return parseInt(this.toString(10),10)},l.prototype.fromString=function(O,e){return l(O,e).copy(this),this},l.fromBuffer=function(O,e={endian:"big"}){e.endian==="little"&&(O=u(O));const t=O.toString("hex");return new l(t,16)},l.prototype.fromBuffer=function(O,e){return l.fromBuffer(O,e).copy(this),this},l.prototype.toBuffer=function(O={size:void 0,endian:"big"}){let e;if(O.size){const n=this.toString(16,2),x=n.length/2;if(e=a.from(n,"hex"),x!==O.size){if(x>O.size)e=e.slice(x-e.length,e.length);else if(x<O.size){const T=a.alloc(O.size);for(let W=0;W<e.length;W++)T[T.length-1-W]=e[e.length-1-W];for(let W=0;W<O.size-x;W++)T[W]=0;e=T}}}else{const n=this.toString(16,2);e=a.from(n,"hex")}O.endian==="little"&&(e=u(e));const t=a.from([0]);return a.compare(e,t)===0?a.from([]):e},l.prototype.toFastBuffer=l.prototype.toBuffer,l.fromFastBuffer=l.fromBuffer,l.prototype.fromFastBuffer=l.prototype.fromBuffer,l.prototype.fromSm=function(O,e={endian:"big"}){return O.length===0&&this.fromBuffer(a.from([0])),e.endian==="little"&&(O=u(O)),O[0]&128?(O[0]=O[0]&127,this.fromBuffer(O),this.neg().copy(this)):this.fromBuffer(O),this},l.prototype.toSm=function(O={endian:"big"}){const e=O.endian;let t;return this.cmp(0)===-1?(t=this.neg().toBuffer(),t[0]&128?t=a.concat([a.from([128]),t]):t[0]=t[0]|128):(t=this.toBuffer(),t[0]&128&&(t=a.concat([a.from([0]),t]))),t.length===1&t[0]===0&&(t=a.from([])),e==="little"&&(t=u(t)),t},l.prototype.fromBits=function(O,e={strict:!1}){let t=a.alloc(4);if(t.writeUInt32BE(O,0),O=t.readInt32BE(0),e.strict&&O&8388608)throw new Error("negative bit set");const n=O>>24,x=O&8388607;if(t=a.alloc(4),t.writeInt32BE(x),n<=3)t=t.slice(1,n+1);else{const T=a.alloc(n-3);T.fill(0),t=a.concat([t,T])}return this.fromBuffer(t),O&8388608&&l(0).sub(this).copy(this),this},l.prototype.toBits=function(){let O;this.lt(0)?O=this.neg().toBuffer():O=this.toBuffer();let e=O.length,t;if(e>3)t=a.concat([a.from([0]),O.slice(0,3)]).readUInt32BE(0);else if(e<=3){const x=a.alloc(3-e+1);x.fill(0),t=a.concat([x,O.slice(0,e)]).readUInt32BE(0)}t&8388608&&(t>>=8,e++),this.lt(0)&&(t|=8388608);const n=e<<24|t;return O=a.alloc(4),O.writeInt32BE(n,0),O.readUInt32BE(0)},l.prototype.fromScriptNumBuffer=function(O,e,t,n=!1){if(t===void 0&&(t=4),O.length>t)throw new Error(`script number overflow nMaxNumSize: ${t}`);if(e&&O.length>0&&!(O[O.length-1]&127)&&(O.length<=1||!(O[O.length-2]&128)))throw new Error("non-minimally encoded script number");return O.byteLength===0||O.byteLength<=t,this.fromSm(O,{endian:"little"})},l.prototype.toScriptNumBuffer=function(O){return this.toSm({endian:"little"})},l.prototype.neg=function(){const O=_().prototype.neg.call(this),e=Object.create(l.prototype);return O.copy(e),e},l.prototype.add=function(O){const e=_().prototype.add.call(this,O);return O=Object.create(l.prototype),e.copy(O),O},l.prototype.sub=function(O){const e=_().prototype.sub.call(this,O);return O=Object.create(l.prototype),e.copy(O),O},l.prototype.mul=function(O){const e=_().prototype.mul.call(this,O);return O=Object.create(l.prototype),e.copy(O),O},l.prototype.mod=function(O){const e=_().prototype.mod.call(this,O);return O=Object.create(l.prototype),e.copy(O),O},l.prototype.umod=function(O){const e=_().prototype.umod.call(this,O);return O=Object.create(l.prototype),e.copy(O),O},l.prototype.invm=function(O){const e=_().prototype.invm.call(this,O);return O=Object.create(l.prototype),e.copy(O),O},l.prototype.div=function(O){const e=_().prototype.div.call(this,O);return O=Object.create(l.prototype),e.copy(O),O},l.prototype.ushln=function(O){const e=_().prototype.ushln.call(this,O),t=Object.create(l.prototype);return e.copy(t),t},l.prototype.ushrn=function(O){const e=_().prototype.ushrn.call(this,O),t=Object.create(l.prototype);return e.copy(t),t},l.prototype.cmp=function(O){return _().prototype.cmp.call(this,O)};function v(O){l.prototype["_"+O]=l.prototype[O];const e=r(function(t){return typeof t=="string"?t=new l(t):typeof t=="number"&&(t=new l(t.toString())),this["_"+O](t)},"f");l.prototype[O]=e}r(v,"decorate"),l.prototype.eq=function(O){return this.cmp(O)===0},l.prototype.neq=function(O){return this.cmp(O)!==0},l.prototype.gt=function(O){return this.cmp(O)>0},l.prototype.geq=function(O){return this.cmp(O)>=0},l.prototype.lt=function(O){return this.cmp(O)<0},l.prototype.leq=function(O){return this.cmp(O)<=0},v("add"),v("sub"),v("mul"),v("mod"),v("invm"),v("div"),v("cmp"),v("gt"),v("geq"),v("lt"),v("leq");var y=Be(8764).Buffer;class g{static{r(this,"Br")}constructor(e){this.fromObject({buf:e})}fromObject(e){return this.buf=e.buf||this.buf||void 0,this.pos=e.pos||this.pos||0,this}eof(){return this.pos>=this.buf.length}read(e=this.buf.length){const t=this.buf.slice(this.pos,this.pos+e);return this.pos=this.pos+e,t}readReverse(e=this.buf.length){const t=this.buf.slice(this.pos,this.pos+e);this.pos=this.pos+e;const n=y.alloc(t.length);for(let x=0;x<n.length;x++)n[x]=t[t.length-1-x];return n}readUInt8(){const e=this.buf.readUInt8(this.pos);return this.pos=this.pos+1,e}readInt8(){const e=this.buf.readInt8(this.pos);return this.pos=this.pos+1,e}readUInt16BE(){const e=this.buf.readUInt16BE(this.pos);return this.pos=this.pos+2,e}readInt16BE(){const e=this.buf.readInt16BE(this.pos);return this.pos=this.pos+2,e}readUInt16LE(){const e=this.buf.readUInt16LE(this.pos);return this.pos=this.pos+2,e}readInt16LE(){const e=this.buf.readInt16LE(this.pos);return this.pos=this.pos+2,e}readUInt32BE(){const e=this.buf.readUInt32BE(this.pos);return this.pos=this.pos+4,e}readInt32BE(){const e=this.buf.readInt32BE(this.pos);return this.pos=this.pos+4,e}readUInt32LE(){const e=this.buf.readUInt32LE(this.pos);return this.pos=this.pos+4,e}readInt32LE(){const e=this.buf.readInt32LE(this.pos);return this.pos=this.pos+4,e}readUInt64BEBn(){const e=this.buf.slice(this.pos,this.pos+8),t=new l().fromBuffer(e);return this.pos=this.pos+8,t}readUInt64LEBn(){const e=this.readReverse(8);return new l().fromBuffer(e)}readVarIntNum(){const e=this.readUInt8();let t,n;switch(e){case 253:return this.readUInt16LE();case 254:return this.readUInt32LE();case 255:if(t=this.readUInt64LEBn(),n=t.toNumber(),n<=Math.pow(2,53))return n;throw new Error("number too large to retain precision - use readVarIntBn");default:return e}}readVarIntBuf(){switch(this.buf.readUInt8(this.pos)){case 253:return this.read(3);case 254:return this.read(5);case 255:return this.read(9);default:return this.read(1)}}readVarIntBn(){const e=this.readUInt8();switch(e){case 253:return new l(this.readUInt16LE());case 254:return new l(this.readUInt32LE());case 255:return this.readUInt64LEBn();default:return new l(e)}}}var A=Be(8764).Buffer;class w{static{r(this,"Bw")}constructor(e){this.fromObject({bufs:e})}fromObject(e){return this.bufs=e.bufs||this.bufs||[],this}getLength(){let e=0;for(const t in this.bufs){const n=this.bufs[t];e=e+n.length}return e}toBuffer(){return A.concat(this.bufs)}write(e){return this.bufs.push(e),this}writeReverse(e){const t=A.alloc(e.length);for(let n=0;n<t.length;n++)t[n]=e[e.length-1-n];return this.bufs.push(t),this}writeUInt8(e){const t=A.alloc(1);return t.writeUInt8(e,0),this.write(t),this}writeInt8(e){const t=A.alloc(1);return t.writeInt8(e,0),this.write(t),this}writeUInt16BE(e){const t=A.alloc(2);return t.writeUInt16BE(e,0),this.write(t),this}writeInt16BE(e){const t=A.alloc(2);return t.writeInt16BE(e,0),this.write(t),this}writeUInt16LE(e){const t=A.alloc(2);return t.writeUInt16LE(e,0),this.write(t),this}writeInt16LE(e){const t=A.alloc(2);return t.writeInt16LE(e,0),this.write(t),this}writeUInt32BE(e){const t=A.alloc(4);return t.writeUInt32BE(e,0),this.write(t),this}writeInt32BE(e){const t=A.alloc(4);return t.writeInt32BE(e,0),this.write(t),this}writeUInt32LE(e){const t=A.alloc(4);return t.writeUInt32LE(e,0),this.write(t),this}writeInt32LE(e){const t=A.alloc(4);return t.writeInt32LE(e,0),this.write(t),this}writeUInt64BEBn(e){const t=e.toBuffer({size:8});return this.write(t),this}writeUInt64LEBn(e){const t=e.toBuffer({size:8});return this.writeReverse(t),this}writeVarIntNum(e){const t=w.varIntBufNum(e);return this.write(t),this}writeVarIntBn(e){const t=w.varIntBufBn(e);return this.write(t),this}static varIntBufNum(e){let t;return e<253?(t=A.alloc(1),t.writeUInt8(e,0)):e<65536?(t=A.alloc(3),t.writeUInt8(253,0),t.writeUInt16LE(e,1)):e<4294967296?(t=A.alloc(5),t.writeUInt8(254,0),t.writeUInt32LE(e,1)):(t=A.alloc(9),t.writeUInt8(255,0),t.writeInt32LE(e&-1,1),t.writeUInt32LE(Math.floor(e/4294967296),5)),t}static varIntBufBn(e){let t;const n=e.toNumber();if(n<253)t=A.alloc(1),t.writeUInt8(n,0);else if(n<65536)t=A.alloc(3),t.writeUInt8(253,0),t.writeUInt16LE(n,1);else if(n<4294967296)t=A.alloc(5),t.writeUInt8(254,0),t.writeUInt32LE(n,1);else{const x=new w;x.writeUInt8(255),x.writeUInt64LEBn(e),t=x.toBuffer()}return t}}function R(O){const e=typeof O=="string"?O.charCodeAt(0):O;return e>=97&&e<=102||e>=65&&e<=70||e>=48&&e<=57}r(R,"isHexadecimal");var C=Be(8764).Buffer;const L=R;class V{static{r(this,"Struct")}constructor(e){this.fromObject(e)}fromObject(e){if(!e)return this;for(const t of Object.keys(e))e[t]!==void 0&&(this[t]=e[t]);return this}static fromObject(e){return new this().fromObject(e)}fromBr(e){throw e instanceof g?new Error("not implemented"):new Error("br must be a buffer reader")}static fromBr(e){return new this().fromBr(e)}asyncFromBr(e){throw e instanceof g?new Error("not implemented"):new Error("br must be a buffer reader")}static asyncFromBr(e){return new this().asyncFromBr(e)}toBw(e){throw new Error("not implemented")}asyncToBw(e){throw new Error("not implemented")}*genFromBuffers(){throw new Error("not implemented")}*expect(e,t){let n=t;const x=new w;let T=0;for(t&&(x.write(t),T+=t.length);T<e;)n=yield e-T,n&&(x.write(n),T+=n.length);n=x.toBuffer();const W=T-e,ee=n.slice(n.length-W,n.length);return n=n.slice(0,n.length-W),{buf:n,remainderbuf:ee}}fromBuffer(e,...t){if(!C.isBuffer(e))throw new Error("buf must be a buffer");const n=new g(e);return this.fromBr(n,...t)}static fromBuffer(...e){return new this().fromBuffer(...e)}asyncFromBuffer(e,...t){if(!C.isBuffer(e))throw new Error("buf must be a buffer");const n=new g(e);return this.asyncFromBr(n,...t)}static asyncFromBuffer(e,...t){return new this().asyncFromBuffer(e,...t)}fromFastBuffer(e,...t){return e.length===0?this:this.fromBuffer(e,...t)}static fromFastBuffer(...e){return new this().fromFastBuffer(...e)}toBuffer(...e){return this.toBw(...e).toBuffer()}asyncToBuffer(...e){return this.asyncToBw(...e).then(t=>t.toBuffer())}toFastBuffer(...e){return Object.keys(this).length===0?C.alloc(0):this.toBuffer(...e)}fromHex(e,...t){if(!L(e))throw new Error("invalid hex string");const n=C.from(e,"hex");return this.fromBuffer(n,...t)}static fromHex(e,...t){return new this().fromHex(e,...t)}asyncFromHex(e,...t){if(!L(e))throw new Error("invalid hex string");const n=C.from(e,"hex");return this.asyncFromBuffer(n,...t)}static asyncFromHex(e,...t){return new this().asyncFromHex(e,...t)}fromFastHex(e,...t){if(!L(e))throw new Error("invalid hex string");const n=C.from(e,"hex");return this.fromFastBuffer(n,...t)}static fromFastHex(e,...t){return new this().fromFastHex(e,...t)}toHex(...e){return this.toBuffer(...e).toString("hex")}asyncToHex(...e){return this.asyncToBuffer(...e).then(t=>t.toString("hex"))}toFastHex(...e){return this.toFastBuffer(...e).toString("hex")}fromString(e,...t){if(typeof e!="string")throw new Error("str must be a string");return this.fromHex(e,...t)}static fromString(e,...t){return new this().fromString(e,...t)}asyncFromString(e,...t){if(typeof e!="string")throw new Error("str must be a string");return this.asyncFromHex(e,...t)}static asyncFromString(e,...t){return new this().asyncFromString(e,...t)}toString(...e){return this.toHex(...e)}asyncToString(...e){return this.asyncToHex(...e)}fromJSON(e){throw new Error("not implemented")}static fromJSON(e,...t){return new this().fromJSON(e,...t)}asyncFromJSON(e,...t){throw new Error("not implemented")}static asyncFromJSON(e,...t){return new this().asyncFromJSON(e,...t)}toJSON(){var e={};for(var t in this)if(Array.isArray(this[t])){const x=[];for(var n in this[t])typeof this[t][n].toJSON=="function"?x.push(this[t][n].toJSON()):x.push(JSON.stringify(this[t][n]));e[t]=x}else if(this[t]===null)e[t]=this[t];else if(typeof this[t]=="object"&&typeof this[t].toJSON=="function")e[t]=this[t].toJSON();else if(typeof this[t]=="boolean"||typeof this[t]=="number"||typeof this[t]=="string")e[t]=this[t];else if(C.isBuffer(this[t]))e[t]=this[t].toString("hex");else if(this[t]instanceof Map)e[t]=JSON.stringify(this[t]);else if(typeof this[t]=="object")throw new Error("not implemented");return e}asyncToJSON(){throw new Error("not implemented")}clone(){return this.cloneByJSON()}cloneByBuffer(){return new this.constructor().fromBuffer(this.toBuffer())}cloneByFastBuffer(){return new this.constructor().fromFastBuffer(this.toFastBuffer())}cloneByHex(){return new this.constructor().fromHex(this.toHex())}cloneByString(){return new this.constructor().fromString(this.toString())}cloneByJSON(){return new this.constructor().fromJSON(this.toJSON())}}var Q=Be(8764).Buffer;class ie extends V{static{r(this,"Base58")}constructor(e){super({buf:e})}fromHex(e){return this.fromBuffer(Q.from(e,"hex"))}toHex(){return this.toBuffer().toString("hex")}static encode(e){if(!Q.isBuffer(e))throw new Error("Input should be a buffer");return z().encode(e)}static decode(e){if(typeof e!="string")throw new Error("Input should be a string");return Q.from(z().decode(e))}fromBuffer(e){return this.buf=e,this}fromString(e){const t=ie.decode(e);return this.buf=t,this}toBuffer(){return this.buf}toString(){return ie.encode(this.buf)}}var ae=Be(8764).Buffer;const oe=r((O,e)=>{if(!ae.isBuffer(O)||!ae.isBuffer(e))throw new Error("buf1 and buf2 must be buffers");if(O.length!==e.length)return!1;let t=0;for(let n=0;n<O.length;n++){const x=O[n],T=e[n];t|=x^T}return t===0},"cmp");var ge=Be(8764).Buffer;class de extends V{static{r(this,"WorkersResult")}constructor(e,t,n){super({resbuf:e,isError:t,id:n})}fromResult(e,t){return e.toFastBuffer?this.resbuf=e.toFastBuffer():ge.isBuffer(e)?this.resbuf=e:this.resbuf=ge.from(JSON.stringify(e)),this.isError=!1,this.id=t,this}static fromResult(e,t){return new this().fromResult(e,t)}fromError(e,t){return this.resbuf=ge.from(JSON.stringify(e.message)),this.isError=!0,this.id=t,this}toBw(e){return e||(e=new w),e.writeVarIntNum(this.resbuf.length),e.write(this.resbuf),e.writeUInt8(Number(this.isError)),e.writeVarIntNum(this.id),e}fromBr(e){const t=e.readVarIntNum();return this.resbuf=e.read(t),this.isError=!!e.readUInt8(),this.id=e.readVarIntNum(),this}}var te=Be(4155);let E;class i{static{r(this,"Workers")}constructor(e=[],t=0,n=[],x=new Map){this.nativeWorkers=e,this.lastid=t,this.incompconsteRes=n,this.promisemap=x}asyncObjectMethod(e,t,n,x=this.lastid+1){if(!n)throw new Error("must specify args");const T=e[t](...n);return new de().fromResult(T,x)}static asyncObjectMethod(e,t,n,x){return E||(E=new i),E.asyncObjectMethod(e,t,n,x)}asyncClassMethod(e,t,n,x=this.lastid+1){if(!n)throw new Error("must specify args");const T=e[t](...n);return new de().fromResult(T,x)}static asyncClassMethod(e,t,n,x){return E||(E=new i),E.asyncClassMethod(e,t,n,x)}static endGlobalWorkers(){E&&!te.browser&&(E=void 0)}}var o=Be(8764).Buffer;class c{static{r(this,"Hash")}}c.sha1=function(O){if(!o.isBuffer(O))throw new Error("sha1 hash must be of a buffer");const e=m().sha1,t=new e().update(O).digest();return o.from(t)},c.sha1.blockSize=512,c.asyncSha1=async function(O){const e=[O];return(await i.asyncClassMethod(c,"sha1",e)).resbuf},c.sha256=function(O){if(!o.isBuffer(O))throw new Error("sha256 hash must be of a buffer");const e=m().sha256,t=new e().update(O).digest();return o.from(t)},c.sha256.blockSize=512,c.asyncSha256=async function(O){const e=[O];return(await i.asyncClassMethod(c,"sha256",e)).resbuf},c.sha256Sha256=function(O){try{return c.sha256(c.sha256(O))}catch(e){throw new Error("sha256Sha256 hash must be of a buffer: "+e)}},c.asyncSha256Sha256=async function(O){const e=[O];return(await i.asyncClassMethod(c,"sha256Sha256",e)).resbuf},c.ripemd160=function(O){if(!o.isBuffer(O))throw new Error("ripemd160 hash must be of a buffer");const e=m().ripemd160,t=new e().update(O).digest();return o.from(t)},c.asyncRipemd160=async function(O){const e=[O];return(await i.asyncClassMethod(c,"ripemd160",e)).resbuf},c.sha256Ripemd160=function(O){try{return c.ripemd160(c.sha256(O))}catch(e){throw new Error("sha256Ripemd160 hash must be of a buffer: "+e)}},c.asyncSha256Ripemd160=async function(O){const e=[O];return(await i.asyncClassMethod(c,"sha256Ripemd160",e)).resbuf},c.sha512=function(O){if(!o.isBuffer(O))throw new Error("sha512 hash must be of a buffer");const e=m().sha512,t=new e().update(O).digest();return o.from(t)},c.asyncSha512=async function(O){const e=[O];return(await i.asyncClassMethod(c,"sha512",e)).resbuf},c.sha512.blockSize=1024,c.hmac=function(O,e,t){if(O!=="sha1"&&O!=="sha256"&&O!=="sha512")throw new Error("invalid choice of hash function");const n=c[O];if(!o.isBuffer(e)||!o.isBuffer(t))throw new Error("data and key must be buffers");const x=n.blockSize/8;if(t.length>x&&(t=n(t)),t.length<x){const ee=o.alloc(x);ee.fill(0,t.length),t.copy(ee),t=ee}const T=o.alloc(x),W=o.alloc(x);for(let ee=0;ee<x;ee++)T[ee]=92^t[ee],W[ee]=54^t[ee];return n(o.concat([T,n(o.concat([W,e]))]))},c.sha1Hmac=function(O,e){return c.hmac("sha1",O,e)},c.asyncSha1Hmac=async function(O,e){const t=[O,e];return(await i.asyncClassMethod(c,"sha1Hmac",t)).resbuf},c.sha1Hmac.bitsize=160,c.sha256Hmac=function(O,e){return c.hmac("sha256",O,e)},c.asyncSha256Hmac=async function(O,e){const t=[O,e];return(await i.asyncClassMethod(c,"sha256Hmac",t)).resbuf},c.sha256Hmac.bitsize=256,c.sha512Hmac=function(O,e){return c.hmac("sha512",O,e)},c.asyncSha512Hmac=async function(O,e){const t=[O,e];return(await i.asyncClassMethod(c,"sha512Hmac",t)).resbuf},c.sha512Hmac.bitsize=512;var S=Be(8764).Buffer;class M extends V{static{r(this,"Base58Check")}constructor(e){super({buf:e})}fromHex(e){return this.fromBuffer(S.from(e,"hex"))}toHex(){return this.toBuffer().toString("hex")}static decode(e){if(typeof e!="string")throw new Error("Input must be a string");const t=ie.decode(e);if(t.length<4)throw new Error("Input string too short");const n=t.slice(0,-4),x=t.slice(-4),W=c.sha256Sha256(n).slice(0,4);if(!oe(x,W))throw new Error("Checksum mismatch");return n}static encode(e){if(!S.isBuffer(e))throw new Error("Input must be a buffer");const t=S.alloc(e.length+4),n=c.sha256Sha256(e);return e.copy(t),n.copy(t,e.length),ie.encode(t)}fromBuffer(e){return this.buf=e,this}fromString(e){const t=M.decode(e);return this.buf=t,this}toBuffer(){return this.buf}toString(){return M.encode(this.buf)}}var G=Be(4155);class J{static{r(this,"Config")}constructor(e){this.keyDefined=t=>t in e,this.getValue=t=>e[t]}get(e){if(this.keyDefined(e))return this.getValue(e);throw new Error(`Unknown configuration: ${e}`)}}class F{static{r(this,"ConfigBuilder")}constructor(){this.variables={}}build(){return new J(this.variables)}addValue(e,t){if(t===void 0)throw new Error(`Failed to add "${e}" property. The value cannot be undefined`);if(e in this.variables)throw new Error(`"${e}" already has a value defined.`);return this.variables[e]=t,this}addValueWithDefault(e,t,n){if(n===void 0)throw new Error(`Failed to add "${e}" property. Default value cannot be undefined`);return this.addValue(e,t===void 0?n:t)}}const f=new F().addValue("NETWORK",G.env.NETWORK||"mainnet").build(),H={};if(H.Mainnet={MaxSize:33554432,Port:8333,Address:{pubKeyHash:0,payToScriptHash:5},Bip32:{pubKey:76067358,privKey:76066276},Block:{maxNBits:486604799,magicNum:3823236072},Msg:{magicNum:3823236072,versionBytesNum:70015},PrivKey:{versionByteNum:128},TxBuilder:{dust:0,feePerKbNum:50},Workers:{timeout:6e4}},H.Testnet=Object.assign({},H.Mainnet,{Port:18333,Address:{pubKeyHash:111,payToScriptHash:196},Bip32:{pubKey:70617039,privKey:70615956},Block:{maxNBits:486604799,magicNum:4108710900},Msg:{magicNum:4108710900,versionBytesNum:70015},PrivKey:{versionByteNum:239}}),H.Regtest=Object.assign({},H.Mainnet,{Port:18444,Address:{pubKeyHash:111,payToScriptHash:196},Bip32:{pubKey:70617039,privKey:70615956},Block:{maxNBits:545259519,magicNum:3669344250},Msg:{magicNum:3669344250,versionBytesNum:70015},PrivKey:{versionByteNum:239}}),H.STN=Object.assign({},H.Mainnet,{Port:9333,Address:{pubKeyHash:111,payToScriptHash:196},Bip32:{pubKey:70617039,privKey:70615956},Block:{maxNBits:486604799,magicNum:4224632057},Msg:{magicNum:4224632057,versionBytesNum:70015},PrivKey:{versionByteNum:239}}),f.get("NETWORK")==="testnet")H.Default=Object.assign({},H.Testnet);else if(f.get("NETWORK")==="mainnet")H.Default=Object.assign({},H.Mainnet);else if(f.get("NETWORK")==="regtest")H.Default=Object.assign({},H.Regtest);else if(f.get("NETWORK")==="stn")H.Default=Object.assign({},H.STN);else throw new Error(`must set network in environment variable - mainnet, testnet, regtest or stn?, received ${f.get("NETWORK")}`);const xe=r(O=>H.Mainnet.Msg.magicNum===O?H.Mainnet:H.Testnet.Msg.magicNum===O?H.Testnet:H.Regtest.Msg.magicNum===O?H.Regtest:H.STN.Msg.magicNum===O?H.STN:H.Default,"getConstants"),ye={FALSE:0,0:0,PUSHDATA1:76,PUSHDATA2:77,PUSHDATA4:78,"1NEGATE":79,RESERVED:80,TRUE:81,1:81,2:82,3:83,4:84,5:85,6:86,7:87,8:88,9:89,10:90,11:91,12:92,13:93,14:94,15:95,16:96,NOP:97,VER:98,IF:99,NOTIF:100,VERIF:101,VERNOTIF:102,ELSE:103,ENDIF:104,VERIFY:105,RETURN:106,TOALTSTACK:107,FROMALTSTACK:108,"2DROP":109,"2DUP":110,"3DUP":111,"2OVER":112,"2ROT":113,"2SWAP":114,IFDUP:115,DEPTH:116,DROP:117,DUP:118,NIP:119,OVER:120,PICK:121,ROLL:122,ROT:123,SWAP:124,TUCK:125,CAT:126,SUBSTR:127,SPLIT:127,LEFT:128,NUM2BIN:128,RIGHT:129,BIN2NUM:129,SIZE:130,INVERT:131,AND:132,OR:133,XOR:134,EQUAL:135,EQUALVERIFY:136,RESERVED1:137,RESERVED2:138,"1ADD":139,"1SUB":140,"2MUL":141,"2DIV":142,NEGATE:143,ABS:144,NOT:145,"0NOTEQUAL":146,ADD:147,SUB:148,MUL:149,DIV:150,MOD:151,LSHIFT:152,RSHIFT:153,BOOLAND:154,BOOLOR:155,NUMEQUAL:156,NUMEQUALVERIFY:157,NUMNOTEQUAL:158,LESSTHAN:159,GREATERTHAN:160,LESSTHANOREQUAL:161,GREATERTHANOREQUAL:162,MIN:163,MAX:164,WITHIN:165,RIPEMD160:166,SHA1:167,SHA256:168,HASH160:169,HASH256:170,CODESEPARATOR:171,CHECKSIG:172,CHECKSIGVERIFY:173,CHECKMULTISIG:174,CHECKMULTISIGVERIFY:175,NOP1:176,NOP2:177,CHECKLOCKTIMEVERIFY:177,NOP3:178,CHECKSEQUENCEVERIFY:178,NOP4:179,NOP5:180,NOP6:181,NOP7:182,NOP8:183,NOP9:184,NOP10:185,SMALLDATA:249,SMALLINTEGER:250,PUBKEYS:251,PUBKEYHASH:253,PUBKEY:254,INVALIDOPCODE:255},Ee={OP_FALSE:0,OP_0:0,OP_PUSHDATA1:76,OP_PUSHDATA2:77,OP_PUSHDATA4:78,OP_1NEGATE:79,OP_RESERVED:80,OP_TRUE:81,OP_1:81,OP_2:82,OP_3:83,OP_4:84,OP_5:85,OP_6:86,OP_7:87,OP_8:88,OP_9:89,OP_10:90,OP_11:91,OP_12:92,OP_13:93,OP_14:94,OP_15:95,OP_16:96,OP_NOP:97,OP_VER:98,OP_IF:99,OP_NOTIF:100,OP_VERIF:101,OP_VERNOTIF:102,OP_ELSE:103,OP_ENDIF:104,OP_VERIFY:105,OP_RETURN:106,OP_TOALTSTACK:107,OP_FROMALTSTACK:108,OP_2DROP:109,OP_2DUP:110,OP_3DUP:111,OP_2OVER:112,OP_2ROT:113,OP_2SWAP:114,OP_IFDUP:115,OP_DEPTH:116,OP_DROP:117,OP_DUP:118,OP_NIP:119,OP_OVER:120,OP_PICK:121,OP_ROLL:122,OP_ROT:123,OP_SWAP:124,OP_TUCK:125,OP_CAT:126,OP_SUBSTR:127,OP_SPLIT:127,OP_LEFT:128,OP_NUM2BIN:128,OP_RIGHT:129,OP_BIN2NUM:129,OP_SIZE:130,OP_INVERT:131,OP_AND:132,OP_OR:133,OP_XOR:134,OP_EQUAL:135,OP_EQUALVERIFY:136,OP_RESERVED1:137,OP_RESERVED2:138,OP_1ADD:139,OP_1SUB:140,OP_2MUL:141,OP_2DIV:142,OP_NEGATE:143,OP_ABS:144,OP_NOT:145,OP_0NOTEQUAL:146,OP_ADD:147,OP_SUB:148,OP_MUL:149,OP_DIV:150,OP_MOD:151,OP_LSHIFT:152,OP_RSHIFT:153,OP_BOOLAND:154,OP_BOOLOR:155,OP_NUMEQUAL:156,OP_NUMEQUALVERIFY:157,OP_NUMNOTEQUAL:158,OP_LESSTHAN:159,OP_GREATERTHAN:160,OP_LESSTHANOREQUAL:161,OP_GREATERTHANOREQUAL:162,OP_MIN:163,OP_MAX:164,OP_WITHIN:165,OP_RIPEMD160:166,OP_SHA1:167,OP_SHA256:168,OP_HASH160:169,OP_HASH256:170,OP_CODESEPARATOR:171,OP_CHECKSIG:172,OP_CHECKSIGVERIFY:173,OP_CHECKMULTISIG:174,OP_CHECKMULTISIGVERIFY:175,OP_NOP1:176,OP_NOP2:177,OP_CHECKLOCKTIMEVERIFY:177,OP_NOP3:178,OP_CHECKSEQUENCEVERIFY:178,OP_NOP4:179,OP_NOP5:180,OP_NOP6:181,OP_NOP7:182,OP_NOP8:183,OP_NOP9:184,OP_NOP10:185,OP_SMALLDATA:249,OP_SMALLINTEGER:250,OP_PUBKEYS:251,OP_PUBKEYHASH:253,OP_PUBKEY:254,OP_INVALIDOPCODE:255};class U extends V{static{r(this,"OpCode")}constructor(e){super({num:e})}fromNumber(e){return this.num=e,this}static fromNumber(e){return new this().fromNumber(e)}toNumber(){return this.num}fromString(e){const t=Ee[e];if(t===void 0)throw new Error("Invalid opCodeStr");return this.num=t,this}fromNoOpString(e){const t=ye[e];if(t===void 0)throw new Error("Invalid opCodeStr");return this.num=t,this}static fromString(e){return new this().fromString(e)}static fromNoOpString(e){return new this().fromNoOpString(e)}toString(){const e=U.str[this.num];return e===void 0?this.num>0&&this.num<U.OP_PUSHDATA1?this.num.toString():"OP_"+this.num.toNumber():e}toNoOpString(){const e=U.noopstr[this.num];return e===void 0?this.num>0&&this.num<U.OP_PUSHDATA1?this.num.toString():this.num.toNumber():e}}U.str={},U.noopstr={};for(const O in Ee)U[O]=Ee[O],Object.prototype.hasOwnProperty.call(Ee,O)&&(U.str[Ee[O]]=O);for(const O in ye)U[O]=ye[O],Object.prototype.hasOwnProperty.call(ye,O)&&(U.noopstr[ye[O]]=O);const X=d().curves.secp256k1,ue=X.curve.point().constructor;class ce extends ue{static{r(this,"Point")}constructor(e,t,n){super(X.curve,e,t,n)}static fromX(e,t){const n=X.curve.pointFromX(t,e);return Object.create(ce.prototype).copyFrom(n)}copyFrom(e){if(!(e instanceof ue))throw new Error("point should be an external point");return Object.keys(e).forEach(function(t){this[t]=e[t]}.bind(this)),this}add(e){return e=ue.prototype.add.call(this,e),Object.create(ce.prototype).copyFrom(e)}mul(e){if(!e.lt(ce.getN()))throw new Error("point mul out of range");const t=ue.prototype.mul.call(this,e);return Object.create(ce.prototype).copyFrom(t)}mulAdd(e,t,n){const x=ue.prototype.mulAdd.call(this,e,t,n);return t=Object.create(ce.prototype),t.copyFrom(x)}getX(){const e=ue.prototype.getX.call(this),t=Object.create(l.prototype);return e.copy(t),t}getY(){const e=ue.prototype.getY.call(this),t=Object.create(l.prototype);return e.copy(t),t}fromX(e,t){const n=ce.fromX(e,t);return this.copyFrom(n)}toJSON(){return{x:this.getX().toString(),y:this.getY().toString()}}fromJSON(e){const t=new l().fromString(e.x),n=new l().fromString(e.y),x=new ce(t,n);return this.copyFrom(x)}toString(){return JSON.stringify(this.toJSON())}fromString(e){const t=JSON.parse(e),n=new ce().fromJSON(t);return this.copyFrom(n)}static getG(){const e=X.curve.g;return Object.create(ce.prototype).copyFrom(e)}static getN(){return new l(X.curve.n.toArray())}validate(){if(ce.fromX(this.getY().isOdd(),this.getX()).getY().cmp(this.getY())!==0)throw new Error("Invalid y value of public key");if(!(this.getX().gt(-1)&&this.getX().lt(ce.getN()))||!(this.getY().gt(-1)&&this.getY().lt(ce.getN())))throw new Error("Point does not lie on the curve");return this}}var Se=Be(8764).Buffer;class K extends V{static{r(this,"PubKey")}constructor(e,t){super({point:e,compressed:t})}fromJSON(e){return this.fromFastHex(e),this}toJSON(){return this.toFastHex()}fromPrivKey(e){return this.fromObject({point:ce.getG().mul(e.bn),compressed:e.compressed}),this}static fromPrivKey(e){return new this().fromPrivKey(e)}async asyncFromPrivKey(e){const t=await i.asyncObjectMethod(this,"fromPrivKey",[e]);return this.fromFastBuffer(t.resbuf)}static asyncFromPrivKey(e){return new this().asyncFromPrivKey(e)}fromBuffer(e,t){return this.fromDer(e,t)}async asyncFromBuffer(e,t){const n=[e,t],x=await i.asyncObjectMethod(this,"fromBuffer",n);return this.fromFastBuffer(x.resbuf)}fromFastBuffer(e){if(e.length===0)return this;const t=!!e[0];return e=e.slice(1),this.fromDer(e),this.compressed=t,this}fromDer(e,t){if(t===void 0?t=!0:t=!1,e[0]===4||!t&&(e[0]===6||e[0]===7)){const n=e.slice(1,33),x=e.slice(33,65);if(n.length!==32||x.length!==32||e.length!==65)throw new Error("LEngth of x and y must be 32 bytes");const T=new l(n),W=new l(x);this.point=new ce(T,W),this.compressed=!1}else if(e[0]===3){const n=e.slice(1),x=new l(n);this.fromX(!0,x),this.compressed=!0}else if(e[0]===2){const n=e.slice(1),x=new l(n);this.fromX(!1,x),this.compressed=!0}else throw new Error("Invalid DER format pubKey");return this}static fromDer(e,t){return new this().fromDer(e,t)}fromString(e){return this.fromDer(Se.from(e,"hex")),this}fromX(e,t){if(typeof e!="boolean")throw new Error("Must specify whether y is odd or not (true or false)");return this.point=ce.fromX(e,t),this}static fromX(e,t){return new this().fromX(e,t)}toBuffer(){const e=this.compressed===void 0?!0:this.compressed;return this.toDer(e)}toFastBuffer(){if(!this.point)return Se.alloc(0);const e=new w,t=this.compressed===void 0?!0:!!this.compressed;return e.writeUInt8(Number(t)),e.write(this.toDer(!1)),e.toBuffer()}toDer(e){if(e=e===void 0?this.compressed:e,typeof e!="boolean")throw new Error("Must specify whether the public key is compressed or not (true or false)");const t=this.point.getX(),n=this.point.getY(),x=t.toBuffer({size:32}),T=n.toBuffer({size:32});let W;return e?(T[T.length-1]%2?W=Se.from([3]):W=Se.from([2]),Se.concat([W,x])):(W=Se.from([4]),Se.concat([W,x,T]))}toString(){const e=this.compressed===void 0?!0:this.compressed;return this.toDer(e).toString("hex")}static isCompressedOrUncompressed(e){if(e.length<33)return!1;if(e[0]===4){if(e.length!==65)return!1}else if(e[0]===2||e[0]===3){if(e.length!==33)return!1}else return!1;return!0}validate(){if(this.point.isInfinity())throw new Error("point: Point cannot be equal to Infinity");if(this.point.eq(new ce(new l(0),new l(0))))throw new Error("point: Point cannot be equal to 0, 0");return this.point.validate(),this}}var j=Be(1798),fe=Be.n(j);class ve{static{r(this,"Random")}}ve.getRandomBuffer=function(O){return fe()(O)};var Re=Be(8764).Buffer;class _e extends V{static{r(this,"priv_key_PrivKey")}constructor(e,t,n=null){super({bn:e,compressed:t}),n=n||H.Default.PrivKey,this.Constants=n}fromJSON(e){return this.fromHex(e),this}toJSON(){return this.toHex()}fromRandom(){let e,t,n;do e=ve.getRandomBuffer(32),t=new l().fromBuffer(e),n=t.lt(ce.getN());while(!n);return this.fromObject({bn:t,compressed:!0}),this}static fromRandom(){return new this().fromRandom()}toBuffer(){let e=this.compressed;e===void 0&&(e=!0);const t=this.bn.toBuffer({size:32});let n;return e?n=Re.concat([Re.from([this.Constants.versionByteNum]),t,Re.from([1])]):n=Re.concat([Re.from([this.Constants.versionByteNum]),t]),n}fromBuffer(e){if(e.length===34&&e[33]===1)this.compressed=!0;else if(e.length===33)this.compressed=!1;else throw new Error("Length of privKey buffer must be 33 (uncompressed pubKey) or 34 (compressed pubKey)");if(e[0]!==this.Constants.versionByteNum)throw new Error("Invalid versionByteNum byte");return this.fromBn(new l().fromBuffer(e.slice(1,33)))}toBn(){return this.bn}fromBn(e){return this.bn=e,this}static fromBn(e){return new this().fromBn(e)}validate(){if(!this.bn.lt(ce.getN()))throw new Error("Number must be less than N");if(typeof this.compressed!="boolean")throw new Error("Must specify whether the corresponding public key is compressed or not (true or false)");return this}toWif(){return M.encode(this.toBuffer())}fromWif(e){return this.fromBuffer(M.decode(e))}static fromWif(e){return new this().fromWif(e)}toString(){return this.toWif()}fromString(e){return this.fromWif(e)}}_e.Mainnet=class extends _e{constructor(O,e){super(O,e,H.Mainnet.PrivKey)}},_e.Testnet=class extends _e{constructor(O,e){super(O,e,H.Testnet.PrivKey)}};var Me=Be(8764).Buffer;class me extends V{static{r(this,"Sig")}constructor(e,t,n,x,T){super({r:e,s:t,nHashType:n,recovery:x,compressed:T})}fromBuffer(e){try{return this.fromDer(e,!0)}catch{}try{return this.fromCompact(e)}catch{}return this.fromTxFormat(e)}toBuffer(){return this.nHashType!==void 0?this.toTxFormat():this.recovery!==void 0?this.toCompact():this.toDer()}fromCompact(e){let t=!0,n=e.slice(0,1)[0]-27-4;if(n<0&&(t=!1,n=n+4),!(n===0||n===1||n===2||n===3))throw new Error("i must be 0, 1, 2, or 3");this.compressed=t,this.recovery=n;const x=e.slice(1);return this.fromRS(x),this}static fromCompact(e){return new this().fromCompact(e)}fromRS(e){const t=e.slice(0,32),n=e.slice(32,64);if(t.length!==32)throw new Error("r must be 32 bytes");if(n.length!==32||e.length>64)throw new Error("s must be 32 bytes");return this.r=new l().fromBuffer(t),this.s=new l().fromBuffer(n),this}static fromRS(e){return new this().fromRS(e)}fromDer(e,t){const n=me.parseDer(e,t);return this.r=n.r,this.s=n.s,this}static fromDer(e,t){return new this().fromDer(e,t)}fromTxFormat(e){if(e.length===0)return this.r=new l(1),this.s=new l(1),this.nHashType=1,this;const t=e.readUInt8(e.length-1),n=e.slice(0,e.length-1);return this.fromDer(n,!1),this.nHashType=t,this}static fromTxFormat(e){return new this().fromTxFormat(e)}fromString(e){return this.fromHex(e)}static parseDer(e,t){if(t===void 0&&(t=!0),!Me.isBuffer(e))throw new Error("DER formatted signature should be a buffer");const n=e[0];if(n!==48)throw new Error("Header byte should be 0x30");let x=e[1];const T=e.slice(2).length;if(t&&x!==T)throw new Error("LEngth byte should length of what follows");x=x<T?x:T;const W=e[2];if(W!==2)throw new Error("Integer byte for r should be 0x02");const ee=e[3],pe=e.slice(4,4+ee),be=new l().fromBuffer(pe),Pe=e[4]===0;if(ee!==pe.length)throw new Error("LEngth of r incorrect");const ke=e[4+ee+0];if(ke!==2)throw new Error("Integer byte for s should be 0x02");const Fe=e[4+ee+1],ht=e.slice(4+ee+2,4+ee+2+Fe),ct=new l().fromBuffer(ht),ft=e[4+ee+2+2]===0;if(Fe!==ht.length)throw new Error("LEngth of s incorrect");const St=4+ee+2+Fe;if(x!==St-2)throw new Error("LEngth of signature incorrect");return{header:n,length:x,rheader:W,rlength:ee,rneg:Pe,rbuf:pe,r:be,sheader:ke,slength:Fe,sneg:ft,sbuf:ht,s:ct}}static IsTxDer(e){if(e.length<9||e.length>73||e[0]!==48||e[1]!==e.length-3)return!1;const t=e[3];if(5+t>=e.length)return!1;const n=e[5+t];if(t+n+7!==e.length)return!1;const x=e.slice(4);if(e[2]!==2||t===0||x[0]&128||t>1&&x[0]===0&&!(x[1]&128))return!1;const T=e.slice(6+t);return!(e[6+t-2]!==2||n===0||T[0]&128||n>1&&T[0]===0&&!(T[1]&128))}hasLowS(){return!(this.s.lt(1)||this.s.gt(l.fromBuffer(Me.from("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex"))))}hasDefinedHashType(){return!(this.nHashType<me.SIGHASH_ALL||this.nHashType>me.SIGHASH_SINGLE)}toCompact(e,t){if(e=typeof e=="number"?e:this.recovery,t=typeof t=="boolean"?t:this.compressed,!(e===0||e===1||e===2||e===3))throw new Error("recovery must be equal to 0, 1, 2, or 3");let n=e+27+4;t===!1&&(n=n-4);const x=Me.from([n]),T=this.r.toBuffer({size:32}),W=this.s.toBuffer({size:32});return Me.concat([x,T,W])}toRS(){return Me.concat([this.r.toBuffer({size:32}),this.s.toBuffer({size:32})])}toDer(){const e=this.r.toBuffer(),t=this.s.toBuffer(),n=e[0]&128,x=t[0]&128,T=n?Me.concat([Me.from([0]),e]):e,W=x?Me.concat([Me.from([0]),t]):t,ee=2+T.length+2+W.length,pe=T.length,be=W.length;return Me.concat([Me.from([48,ee,2,pe]),T,Me.from([2,be]),W])}toTxFormat(){const e=this.toDer(),t=Me.alloc(1);return t.writeUInt8(this.nHashType,0),Me.concat([e,t])}toString(){return this.toHex()}}me.SIGHASH_ALL=1,me.SIGHASH_NONE=2,me.SIGHASH_SINGLE=3,me.SIGHASH_FORKID=64,me.SIGHASH_ANYONECANPAY=128;var Oe=Be(8764).Buffer;class Ae extends V{static{r(this,"Script")}constructor(e=[]){super({chunks:e})}fromJSON(e){return this.fromString(e)}toJSON(){return this.toString()}fromBuffer(e){this.chunks=[];const t=new g(e);for(;!t.eof();){const n=t.readUInt8();let x=0,T=Oe.from([]);if(n>0&&n<U.OP_PUSHDATA1)x=n,this.chunks.push({buf:t.read(x),len:x,opCodeNum:n});else if(n===U.OP_PUSHDATA1){try{x=t.readUInt8(),T=t.read(x)}catch{t.read()}this.chunks.push({buf:T,len:x,opCodeNum:n})}else if(n===U.OP_PUSHDATA2){try{x=t.readUInt16LE(),T=t.read(x)}catch{t.read()}this.chunks.push({buf:T,len:x,opCodeNum:n})}else if(n===U.OP_PUSHDATA4){try{x=t.readUInt32LE(),T=t.read(x)}catch{t.read()}this.chunks.push({buf:T,len:x,opCodeNum:n})}else this.chunks.push({opCodeNum:n})}return this}toBuffer(){const e=new w;for(let t=0;t<this.chunks.length;t++){const n=this.chunks[t],x=n.opCodeNum;e.writeUInt8(x),n.buf&&(x<U.OP_PUSHDATA1?e.write(n.buf):x===U.OP_PUSHDATA1?(e.writeUInt8(n.len),e.write(n.buf)):x===U.OP_PUSHDATA2?(e.writeUInt16LE(n.len),e.write(n.buf)):x===U.OP_PUSHDATA4&&(e.writeUInt32LE(n.len),e.write(n.buf)))}return e.toBuffer()}fromString(e){if(this.chunks=[],e===""||e===void 0)return this;const t=e.split(" ");let n=0;for(;n<t.length;){const x=t[n];let T;try{T=new U().fromString(x).toNumber()}catch{}if(T===void 0)if(T=parseInt(x,10),T>0&&T<U.OP_PUSHDATA1)this.chunks.push({buf:Oe.from(t[n+1].slice(2),"hex"),len:T,opCodeNum:T}),n=n+2;else if(T===0)this.chunks.push({opCodeNum:0}),n=n+1;else throw new Error("Invalid script");else if(T===U.OP_PUSHDATA1||T===U.OP_PUSHDATA2||T===U.OP_PUSHDATA4){if(t[n+2].slice(0,2)!=="0x")throw new Error("Pushdata data must start with 0x");this.chunks.push({buf:Oe.from(t[n+2].slice(2),"hex"),len:parseInt(t[n+1],10),opCodeNum:T}),n=n+3}else this.chunks.push({opCodeNum:T}),n=n+1}return this}toString(e={noOp:!1}){let t="";for(let n=0;n<this.chunks.length;n++){const x=this.chunks[n],T=x.opCodeNum.hasOwnProperty("num")?x.opCodeNum.num:x.opCodeNum;x.buf?((T===U.OP_PUSHDATA1||T===U.OP_PUSHDATA2||T===U.OP_PUSHDATA4)&&(t=e.noOp?t+" "+new U(T).toNoOpString():t+" "+new U(T).toString()),t=t+" "+x.len,t=t+" 0x"+x.buf.toString("hex")):U.str[T]!==void 0||U.noopstr[T]!==void 0?t=e.noOp?t+" "+new U(T).toNoOpString():t+" "+new U(T).toString():t=t+" 0x"+T.toString(16)}return t.substr(1)}fromBitcoindString(e){const t=new w,n=e.split(" ");let x;for(x=0;x<n.length;x++){const W=n[x];if(W!=="")if(W[0]==="0"&&W[1]==="x"){const ee=W.slice(2);t.write(Oe.from(ee,"hex"))}else if(W[0]==="'"){const ee=W.slice(1,W.length-1),pe=Oe.from(ee),be=new Ae().writeBuffer(pe).toBuffer();t.write(be)}else if(U["OP_"+W]!==void 0){const ee="OP_"+W,pe=U[ee];t.writeUInt8(pe)}else if(typeof U[W]=="number"){const pe=U[W];t.writeUInt8(pe)}else{if(isNaN(parseInt(W,10)))throw new Error("Could not determine type of script value");{const ee=new l(W),be=new Ae().writeBn(ee).toBuffer();t.write(be)}}}const T=t.toBuffer();return this.fromBuffer(T)}static fromBitcoindString(e){return new this().fromBitcoindString(e)}toBitcoindString(){let e="";for(let t=0;t<this.chunks.length;t++){const n=this.chunks[t];if(n.buf){const T=new Ae([n]).toBuffer().toString("hex");e=e+" 0x"+T}else if(U.str[n.opCodeNum]!==void 0){const x=new U(n.opCodeNum).toString();e=e+" "+x.slice(3)}else e=e+" 0x"+n.opCodeNum.toString(16)}return e.substr(1)}fromAsmString(e){this.chunks=[];const t=e.split(" ");let n=0;for(;n<t.length;){const x=t[n];let T,W;try{T=U.fromString(x),W=T.toNumber()}catch{T=void 0,W=void 0}if(x==="0")W=0,this.chunks.push({opCodeNum:W}),n=n+1;else if(x==="-1")W=U.OP_1NEGATE,this.chunks.push({opCodeNum:W}),n=n+1;else if(T===void 0){const ee=t[n],pe=Oe.from(ee,"hex");if(pe.toString("hex")!==ee)throw new Error("invalid hex string in script");const be=pe.length;be>=0&&be<U.OP_PUSHDATA1?W=be:be<Math.pow(2,8)?W=U.OP_PUSHDATA1:be<Math.pow(2,16)?W=U.OP_PUSHDATA2:be<Math.pow(2,32)&&(W=U.OP_PUSHDATA4),this.chunks.push({buf:pe,len:pe.length,opCodeNum:W}),n=n+1}else this.chunks.push({opCodeNum:W}),n=n+1}return this}static fromAsmString(e){return new this().fromAsmString(e)}toAsmString(e={noOp:!1}){for(var t="",n=0;n<this.chunks.length;n++){var x=this.chunks[n];t+=this._chunkToString(x,e)}return t.substr(1)}_chunkToString(e,t={noOp:!1}){var n=e.opCodeNum,x="";if(e.buf)e.len>0&&(x=x+" "+e.buf.toString("hex"));else if(typeof U.str[n]<"u")n===0?x=x+" 0":n===79?x=x+" -1":x=t.noOp?x+" "+new U(n).toNoOpString():x+" "+new U(n).toString();else{var T=n.toString(16);T.length%2!==0&&(T="0"+T),x=x+" "+T}return x}fromOpReturnData(e){return this.writeOpCode(U.OP_RETURN),this.writeBuffer(e),this}static fromOpReturnData(e){return new this().fromOpReturnData(e)}fromSafeData(e){return this.writeOpCode(U.OP_FALSE),this.writeOpCode(U.OP_RETURN),this.writeBuffer(e),this}static fromSafeData(e){return new this().fromSafeData(e)}fromSafeDataArray(e){this.writeOpCode(U.OP_FALSE),this.writeOpCode(U.OP_RETURN);for(const t in e){const n=e[t];this.writeBuffer(n)}return this}static fromSafeDataArray(e){return new this().fromSafeDataArray(e)}getData(){if(this.isSafeDataOut())return this.chunks.slice(2).map(n=>n.buf);if(this.isOpReturn())return this.chunks.slice(1).map(n=>n.buf);throw new Error("Unrecognized script type to get data from")}fromPubKeyHash(e){if(e.length!==20)throw new Error("hashBuf must be a 20 byte buffer");return this.writeOpCode(U.OP_DUP),this.writeOpCode(U.OP_HASH160),this.writeBuffer(e),this.writeOpCode(U.OP_EQUALVERIFY),this.writeOpCode(U.OP_CHECKSIG),this}static fromPubKeyHash(e){return new this().fromPubKeyHash(e)}static sortPubKeys(e){return e.slice().sort((t,n)=>{const x=t.toBuffer(),T=n.toBuffer(),W=Math.max(x.length,T.length);for(let ee=0;ee<=W;ee++){if(x[ee]===void 0)return-1;if(T[ee]===void 0)return 1;if(x[ee]<T[ee])return-1;if(x[ee]>T[ee])return 1}})}fromPubKeys(e,t,n=!0){if(typeof e!="number")throw new Error("m must be a number");n===!0&&(t=Ae.sortPubKeys(t)),this.writeOpCode(e+U.OP_1-1);for(const x in t)this.writeBuffer(t[x].toBuffer());return this.writeOpCode(t.length+U.OP_1-1),this.writeOpCode(U.OP_CHECKMULTISIG),this}static fromPubKeys(e,t,n){return new this().fromPubKeys(e,t,n)}removeCodeseparators(){const e=[];for(let t=0;t<this.chunks.length;t++)this.chunks[t].opCodeNum!==U.OP_CODESEPARATOR&&e.push(this.chunks[t]);return this.chunks=e,this}isPushOnly(){for(let e=0;e<this.chunks.length;e++)if(this.chunks[e].opCodeNum>U.OP_16)return!1;return!0}isNonSpendable(){const e=this.chunks[0].opCodeNum===U.OP_FALSE,t=this.chunks[1]&&this.chunks[1].opCodeNum===U.OP_RETURN;return!!e&&!!t}isOpReturn(){return this.chunks[0].opCodeNum===U.OP_RETURN&&this.chunks.filter(e=>Oe.isBuffer(e.buf)).length===this.chunks.slice(1).length}isSafeDataOut(){if(this.chunks.length<2||this.chunks[0].opCodeNum!==U.OP_FALSE)return!1;var e=this.chunks.slice(1),t=new Ae(e);return t.isOpReturn()}isPubKeyHashOut(){return!!(this.chunks[0]&&this.chunks[0].opCodeNum===U.OP_DUP&&this.chunks[1]&&this.chunks[1].opCodeNum===U.OP_HASH160&&this.chunks[2].buf&&this.chunks[3]&&this.chunks[3].opCodeNum===U.OP_EQUALVERIFY&&this.chunks[4]&&this.chunks[4].opCodeNum===U.OP_CHECKSIG)}isPubKeyHashIn(){return!!(this.chunks.length===2&&(this.chunks[0].buf||this.chunks[0].opCodeNum===U.OP_0)&&(this.chunks[1].buf||this.chunks[0].opCodeNum===U.OP_0))}isScriptHashOut(){const e=this.toBuffer();return e.length===23&&e[0]===U.OP_HASH160&&e[1]===20&&e[22]===U.OP_EQUAL}isScriptHashIn(){if(!this.isPushOnly())return!1;try{new Ae().fromBuffer(this.chunks[this.chunks.length-1].buf)}catch{return!1}return!0}isMultiSigOut(){const e=this.chunks[0].opCodeNum-U.OP_1+1;if(!(e>=1&&e<=16)||!this.chunks.slice(1,this.chunks.length-2).every(x=>{try{const T=x.buf;return new K().fromDer(T).validate(),!0}catch{return!1}}))return!1;const n=this.chunks[this.chunks.length-2].opCodeNum-U.OP_1+1;return!(!(n>=e&&n<=16)||this.chunks[1+n+1].opCodeNum!==U.OP_CHECKMULTISIG)}isMultiSigIn(){if(this.chunks[0].opCodeNum!==U.OP_0)return!1;const e=this.chunks.slice(1);return e.length<1?!1:e.every(t=>Oe.isBuffer(t.buf)&&me.IsTxDer(t.buf))}findAndDelete(e){const t=e.toBuffer();for(let n=0;n<this.chunks.length;n++){const T=new Ae([this.chunks[n]]).toBuffer();oe(t,T)&&this.chunks.splice(n,1)}return this}writeScript(e){return this.chunks=this.chunks.concat(e.chunks),this}static writeScript(e){return new this().writeScript(e)}writeString(e){const t=new Ae().fromString(e);return this.chunks=this.chunks.concat(t.chunks),this}static writeString(e){return new this().writeString(e)}writeOpCode(e){return this.chunks.push({opCodeNum:e}),this}static writeOpCode(e){return new this().writeOpCode(e)}setChunkOpCode(e,t){return this.chunks[e]={opCodeNum:t},this}writeBn(e){if(e.cmp(0)===U.OP_0)this.chunks.push({opCodeNum:U.OP_0});else if(e.cmp(-1)===0)this.chunks.push({opCodeNum:U.OP_1NEGATE});else if(e.cmp(1)>=0&&e.cmp(16)<=0)this.chunks.push({opCodeNum:e.toNumber()+U.OP_1-1});else{const t=e.toSm({endian:"little"});this.writeBuffer(t)}return this}static writeBn(e){return new this().writeBn(e)}writeNumber(e){return this.writeBn(new l().fromNumber(e)),this}static writeNumber(e){return new this().writeNumber(e)}setChunkBn(e,t){return this.chunks[e]=new Ae().writeBn(t).chunks[0],this}writeBuffer(e){let t;const n=e.length;if(e.length>0&&e.length<U.OP_PUSHDATA1)t=e.length;else if(e.length===0)t=U.OP_0;else if(e.length<Math.pow(2,8))t=U.OP_PUSHDATA1;else if(e.length<Math.pow(2,16))t=U.OP_PUSHDATA2;else if(e.length<Math.pow(2,32))t=U.OP_PUSHDATA4;else throw new Error("You can't push that much data");return this.chunks.push({buf:e,len:n,opCodeNum:t}),this}static writeBuffer(e){return new this().writeBuffer(e)}setChunkBuffer(e,t){return this.chunks[e]=new Ae().writeBuffer(t).chunks[0],this}checkMinimalPush(e){const t=this.chunks[e],n=t.buf,x=t.opCodeNum;return n?n.length===0?x===U.OP_0:n.length===1&&n[0]>=1&&n[0]<=16?x===U.OP_1+(n[0]-1):n.length===1&&n[0]===129?x===U.OP_1NEGATE:n.length<=75?x===n.length:n.length<=255?x===U.OP_PUSHDATA1:n.length<=65535?x===U.OP_PUSHDATA2:!0:!0}}var De=Be(8764).Buffer;class Te extends V{static{r(this,"Address")}constructor(e,t,n=null){super({versionByteNum:e,hashBuf:t}),n=n||H.Default.Address,this.Constants=n}fromBuffer(e){if(e.length!==21)throw new Error("address buffers must be exactly 21 bytes");if(e[0]!==this.Constants.pubKeyHash)throw new Error("address: invalid versionByteNum byte");return this.versionByteNum=e[0],this.hashBuf=e.slice(1),this}fromPubKeyHashBuf(e){return this.hashBuf=e,this.versionByteNum=this.Constants.pubKeyHash,this}static fromPubKeyHashBuf(e){return new this().fromPubKeyHashBuf(e)}fromPubKey(e){const t=c.sha256Ripemd160(e.toBuffer());return this.fromPubKeyHashBuf(t)}static fromPubKey(e){return new this().fromPubKey(e)}async asyncFromPubKey(e){const t=[e],n=await i.asyncObjectMethod(this,"fromPubKey",t);return this.fromFastBuffer(n.resbuf)}static asyncFromPubKey(e){return new this().asyncFromPubKey(e)}fromPrivKey(e){const t=new K().fromPrivKey(e),n=c.sha256Ripemd160(t.toBuffer());return this.fromPubKeyHashBuf(n)}static fromPrivKey(e){return new this().fromPrivKey(e)}async asyncFromPrivKey(e){const t=[e],n=await i.asyncObjectMethod(this,"fromPrivKey",t);return this.fromFastBuffer(n.resbuf)}static asyncFromPrivKey(e){return new this().fromPrivKey(e)}fromRandom(){const e=new _e().fromRandom();return this.fromPrivKey(e)}static fromRandom(){return new this().fromRandom()}async asyncFromRandom(){const e=[],t=await i.asyncObjectMethod(this,"fromRandom",e);return this.fromFastBuffer(t.resbuf)}static asyncFromRandom(){return new this().fromRandom()}fromString(e){const t=M.decode(e);return this.fromBuffer(t)}async asyncFromString(e){const t=[e],n=await i.asyncObjectMethod(this,"fromString",t);return this.fromFastBuffer(n.resbuf)}static asyncFromString(e){return new this().asyncFromString(e)}static isValid(e){let t;try{t=new Te().fromString(e)}catch{return!1}return t.isValid()}isValid(){try{return this.validate(),!0}catch{return!1}}toTxOutScript(){const e=new Ae;return e.writeOpCode(U.OP_DUP),e.writeOpCode(U.OP_HASH160),e.writeBuffer(this.hashBuf),e.writeOpCode(U.OP_EQUALVERIFY),e.writeOpCode(U.OP_CHECKSIG),e}fromTxInScript(e){const t=c.sha256Ripemd160(e.chunks[1].buf||De.from("00".repeat(32),"hex"));return this.fromPubKeyHashBuf(t)}static fromTxInScript(e){return new this().fromTxInScript(e)}fromTxOutScript(e){return this.fromPubKeyHashBuf(e.chunks[2].buf)}static fromTxOutScript(e){return new this().fromTxOutScript(e)}toBuffer(){const e=De.from([this.versionByteNum]);return De.concat([e,this.hashBuf])}toJSON(){const e={};return this.hashBuf&&(e.hashBuf=this.hashBuf.toString("hex")),typeof this.versionByteNum<"u"&&(e.versionByteNum=this.versionByteNum),e}fromJSON(e){return e.hashBuf&&(this.hashBuf=De.from(e.hashBuf,"hex")),typeof e.versionByteNum<"u"&&(this.versionByteNum=e.versionByteNum),this}toString(){return M.encode(this.toBuffer())}async asyncToString(){const e=[],t=await i.asyncObjectMethod(this,"toString",e);return JSON.parse(t.resbuf.toString())}validate(){if(!De.isBuffer(this.hashBuf)||this.hashBuf.length!==20)throw new Error("hashBuf must be a buffer of 20 bytes");if(this.versionByteNum!==this.Constants.pubKeyHash)throw new Error("invalid versionByteNum");return this}}Te.Mainnet=class extends Te{constructor(O,e){super(O,e,H.Mainnet.Address)}},Te.Testnet=class extends Te{constructor(O,e){super(O,e,H.Testnet.Address)}};var Ze=Be(8764).Buffer;class I extends V{static{r(this,"Bip32")}constructor(e,t,n,x,T,W,ee,pe=null,be=_e){super({versionBytesNum:e,depth:t,parentFingerPrint:n,childIndex:x,chainCode:T,privKey:W,pubKey:ee}),pe=pe||H.Default.Bip32,this.Constants=pe,this.PrivKey=be}fromRandom(){return this.versionBytesNum=this.Constants.privKey,this.depth=0,this.parentFingerPrint=Ze.from([0,0,0,0]),this.childIndex=0,this.chainCode=ve.getRandomBuffer(32),this.privKey=new this.PrivKey().fromRandom(),this.pubKey=new K().fromPrivKey(this.privKey),this}static fromRandom(){return new this().fromRandom()}fromString(e){return this.fromBuffer(M.decode(e))}async asyncFromString(e){const t=[e],n=await i.asyncObjectMethod(this,"fromString",t);return this.fromFastBuffer(n.resbuf)}fromSeed(e){if(!Ze.isBuffer(e))throw new Error("bytes must be a buffer");if(e.length<128/8)throw new Error("Need more than 128 bits of entropy");if(e.length>512/8)throw new Error("More than 512 bits of entropy is nonstandard");const t=c.sha512Hmac(e,Ze.from("Bitcoin seed"));return this.depth=0,this.parentFingerPrint=Ze.from([0,0,0,0]),this.childIndex=0,this.chainCode=t.slice(32,64),this.versionBytesNum=this.Constants.privKey,this.privKey=new this.PrivKey().fromBn(l().fromBuffer(t.slice(0,32))),this.pubKey=new K().fromPrivKey(this.privKey),this}static fromSeed(e){return new this().fromSeed(e)}async asyncFromSeed(e){const t=await i.asyncObjectMethod(this,"fromSeed",[e]);return this.fromFastBuffer(t.resbuf)}static asyncFromSeed(e){return new this().asyncFromSeed(e)}fromBuffer(e){if(e.length!==78)throw new Error("incorrect bip32 data length");this.versionBytesNum=e.slice(0,4).readUInt32BE(0),this.depth=e.slice(4,5).readUInt8(0),this.parentFingerPrint=e.slice(5,9),this.childIndex=e.slice(9,13).readUInt32BE(0),this.chainCode=e.slice(13,45);const t=e.slice(45,78),n=this.versionBytesNum===this.Constants.privKey,x=this.versionBytesNum===this.Constants.pubKey;if(n&&t[0]===0)this.privKey=new this.PrivKey().fromBn(l().fromBuffer(t.slice(1,33))),this.pubKey=new K().fromPrivKey(this.privKey);else if(x&&(t[0]===2||t[0]===3))this.pubKey=new K().fromDer(t);else throw new Error("Invalid key");return this}fromFastBuffer(e){if(e.length===0)return this;if(e.length!==78&&e.length!==111)throw new Error("incorrect bip32 fastBuffer data length: "+e.length);this.versionBytesNum=e.slice(0,4).readUInt32BE(0),this.depth=e.slice(4,5).readUInt8(0),this.parentFingerPrint=e.slice(5,9),this.childIndex=e.slice(9,13).readUInt32BE(0),this.chainCode=e.slice(13,45);const t=e.slice(45,e.length),n=this.versionBytesNum===this.Constants.privKey,x=this.versionBytesNum===this.Constants.pubKey;if(n&&t[0]===0&&e.length===78)this.privKey=new this.PrivKey().fromBn(l().fromBuffer(t.slice(1,33))),this.pubKey=new K().fromPrivKey(this.privKey);else if(x&&e.length===111)this.pubKey=new K().fromFastBuffer(t),this.pubKey.compressed=!0;else throw new Error("Invalid key");return this}derive(e){const t=e.split("/");if(e==="m")return this;let n=this;for(const x in t){const T=t[x];if(x==="0"){if(T!=="m")throw new Error("invalid path");continue}if(parseInt(T.replace("'",""),10).toString()!==T.replace("'",""))throw new Error("invalid path");const W=T.length>1&&T[T.length-1]==="'";let ee=parseInt(W?T.slice(0,T.length-1):T,10)&2147483647;W&&(ee+=2147483648),n=n.deriveChild(ee)}return n}async asyncDerive(e){const t=await i.asyncObjectMethod(this,"derive",[e]);return new this.constructor().fromFastBuffer(t.resbuf)}deriveChild(e){if(typeof e!="number")throw new Error("i must be a number");let t=[];t.push(e>>24&255),t.push(e>>16&255),t.push(e>>8&255),t.push(e&255),t=Ze.from(t);const n=(e&2147483648)!==0,x=this.versionBytesNum===this.Constants.privKey;if(n&&(!this.privKey||!x))throw new Error("Cannot do private key derivation without private key");let T=null;if(this.privKey){let ee=null;n?ee=Ze.concat([Ze.from([0]),this.privKey.bn.toBuffer({size:32}),t]):ee=Ze.concat([this.pubKey.toBuffer({size:32}),t]);const pe=c.sha512Hmac(ee,this.chainCode),be=l().fromBuffer(pe.slice(0,32),{size:32}),Pe=pe.slice(32,64),ke=be.add(this.privKey.bn).mod(ce.getN());T=new this.constructor,T.chainCode=Pe,T.privKey=new this.PrivKey().fromBn(ke),T.pubKey=new K().fromPrivKey(T.privKey)}else{const ee=Ze.concat([this.pubKey.toBuffer(),t]),pe=c.sha512Hmac(ee,this.chainCode),be=l().fromBuffer(pe.slice(0,32)),Pe=pe.slice(32,64),ke=ce.getG().mul(be),Fe=this.pubKey.point,ht=ke.add(Fe),ct=new K;ct.point=ht,T=new this.constructor,T.chainCode=Pe,T.pubKey=ct}T.childIndex=e;const W=c.sha256Ripemd160(this.pubKey.toBuffer());return T.parentFingerPrint=W.slice(0,4),T.versionBytesNum=this.versionBytesNum,T.depth=this.depth+1,T}toPublic(){const e=new this.constructor().fromObject(this);return e.versionBytesNum=this.Constants.pubKey,e.privKey=void 0,e}toBuffer(){const e=this.versionBytesNum===this.Constants.privKey,t=this.versionBytesNum===this.Constants.pubKey;if(e)return new w().writeUInt32BE(this.versionBytesNum).writeUInt8(this.depth).write(this.parentFingerPrint).writeUInt32BE(this.childIndex).write(this.chainCode).writeUInt8(0).write(this.privKey.bn.toBuffer({size:32})).toBuffer();if(t){if(this.pubKey.compressed===!1)throw new Error("cannot convert bip32 to buffer if pubKey is not compressed");return new w().writeUInt32BE(this.versionBytesNum).writeUInt8(this.depth).write(this.parentFingerPrint).writeUInt32BE(this.childIndex).write(this.chainCode).write(this.pubKey.toBuffer()).toBuffer()}else throw new Error("bip32: invalid versionBytesNum byte")}toFastBuffer(){if(!this.versionBytesNum)return Ze.alloc(0);const e=this.versionBytesNum===this.Constants.privKey,t=this.versionBytesNum===this.Constants.pubKey;if(e)return new w().writeUInt32BE(this.versionBytesNum).writeUInt8(this.depth).write(this.parentFingerPrint).writeUInt32BE(this.childIndex).write(this.chainCode).writeUInt8(0).write(this.privKey.bn.toBuffer({size:32})).toBuffer();if(t)return new w().writeUInt32BE(this.versionBytesNum).writeUInt8(this.depth).write(this.parentFingerPrint).writeUInt32BE(this.childIndex).write(this.chainCode).write(this.pubKey.toFastBuffer()).toBuffer();throw new Error("bip32: invalid versionBytesNum byte")}toString(){return M.encode(this.toBuffer())}async asyncToString(){const e=await i.asyncObjectMethod(this,"toString",[]);return JSON.parse(e.resbuf.toString())}toJSON(){return this.toFastHex()}fromJSON(e){return this.fromFastHex(e)}isPrivate(){return this.versionBytesNum===this.Constants.privKey}}I.Mainnet=class extends I{constructor(O,e,t,n,x,T,W){super(O,e,t,n,x,T,W,H.Mainnet.Bip32,_e.Mainnet)}},I.Testnet=class extends I{constructor(O,e,t,n,x,T,W){super(O,e,t,n,x,T,W,H.Testnet.Bip32,_e.Testnet)}};const s=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"];s.space=" ";const h=["\u3042\u3044\u3053\u304F\u3057\u3093","\u3042\u3044\u3055\u3064","\u3042\u3044\u3060","\u3042\u304A\u305E\u3089","\u3042\u304B\u3061\u3083\u3093","\u3042\u304D\u308B","\u3042\u3051\u304C\u305F","\u3042\u3051\u308B","\u3042\u3053\u304C\u308C\u308B","\u3042\u3055\u3044","\u3042\u3055\u3072","\u3042\u3057\u3042\u3068","\u3042\u3058\u308F\u3046","\u3042\u305A\u304B\u308B","\u3042\u305A\u304D","\u3042\u305D\u3076","\u3042\u305F\u3048\u308B","\u3042\u305F\u305F\u3081\u308B","\u3042\u305F\u308A\u307E\u3048","\u3042\u305F\u308B","\u3042\u3064\u3044","\u3042\u3064\u304B\u3046","\u3042\u3063\u3057\u3085\u304F","\u3042\u3064\u307E\u308A","\u3042\u3064\u3081\u308B","\u3042\u3066\u306A","\u3042\u3066\u306F\u307E\u308B","\u3042\u3072\u308B","\u3042\u3076\u3089","\u3042\u3076\u308B","\u3042\u3075\u308C\u308B","\u3042\u307E\u3044","\u3042\u307E\u3069","\u3042\u307E\u3084\u304B\u3059","\u3042\u307E\u308A","\u3042\u307F\u3082\u306E","\u3042\u3081\u308A\u304B","\u3042\u3084\u307E\u308B","\u3042\u3086\u3080","\u3042\u3089\u3044\u3050\u307E","\u3042\u3089\u3057","\u3042\u3089\u3059\u3058","\u3042\u3089\u305F\u3081\u308B","\u3042\u3089\u3086\u308B","\u3042\u3089\u308F\u3059","\u3042\u308A\u304C\u3068\u3046","\u3042\u308F\u305B\u308B","\u3042\u308F\u3066\u308B","\u3042\u3093\u3044","\u3042\u3093\u304C\u3044","\u3042\u3093\u3053","\u3042\u3093\u305C\u3093","\u3042\u3093\u3066\u3044","\u3042\u3093\u306A\u3044","\u3042\u3093\u307E\u308A","\u3044\u3044\u3060\u3059","\u3044\u304A\u3093","\u3044\u304C\u3044","\u3044\u304C\u304F","\u3044\u304D\u304A\u3044","\u3044\u304D\u306A\u308A","\u3044\u304D\u3082\u306E","\u3044\u304D\u308B","\u3044\u304F\u3058","\u3044\u304F\u3076\u3093","\u3044\u3051\u3070\u306A","\u3044\u3051\u3093","\u3044\u3053\u3046","\u3044\u3053\u304F","\u3044\u3053\u3064","\u3044\u3055\u307E\u3057\u3044","\u3044\u3055\u3093","\u3044\u3057\u304D","\u3044\u3058\u3085\u3046","\u3044\u3058\u3087\u3046","\u3044\u3058\u308F\u308B","\u3044\u305A\u307F","\u3044\u305A\u308C","\u3044\u305B\u3044","\u3044\u305B\u3048\u3073","\u3044\u305B\u304B\u3044","\u3044\u305B\u304D","\u3044\u305C\u3093","\u3044\u305D\u3046\u308D\u3046","\u3044\u305D\u304C\u3057\u3044","\u3044\u3060\u3044","\u3044\u3060\u304F","\u3044\u305F\u305A\u3089","\u3044\u305F\u307F","\u3044\u305F\u308A\u3042","\u3044\u3061\u304A\u3046","\u3044\u3061\u3058","\u3044\u3061\u3069","\u3044\u3061\u3070","\u3044\u3061\u3076","\u3044\u3061\u308A\u3085\u3046","\u3044\u3064\u304B","\u3044\u3063\u3057\u3085\u3093","\u3044\u3063\u305B\u3044","\u3044\u3063\u305D\u3046","\u3044\u3063\u305F\u3093","\u3044\u3063\u3061","\u3044\u3063\u3066\u3044","\u3044\u3063\u307D\u3046","\u3044\u3066\u3056","\u3044\u3066\u3093","\u3044\u3069\u3046","\u3044\u3068\u3053","\u3044\u306A\u3044","\u3044\u306A\u304B","\u3044\u306D\u3080\u308A","\u3044\u306E\u3061","\u3044\u306E\u308B","\u3044\u306F\u3064","\u3044\u3070\u308B","\u3044\u306F\u3093","\u3044\u3073\u304D","\u3044\u3072\u3093","\u3044\u3075\u304F","\u3044\u3078\u3093","\u3044\u307B\u3046","\u3044\u307F\u3093","\u3044\u3082\u3046\u3068","\u3044\u3082\u305F\u308C","\u3044\u3082\u308A","\u3044\u3084\u304C\u308B","\u3044\u3084\u3059","\u3044\u3088\u304B\u3093","\u3044\u3088\u304F","\u3044\u3089\u3044","\u3044\u3089\u3059\u3068","\u3044\u308A\u3050\u3061","\u3044\u308A\u3087\u3046","\u3044\u308C\u3044","\u3044\u308C\u3082\u306E","\u3044\u308C\u308B","\u3044\u308D\u3048\u3093\u3074\u3064","\u3044\u308F\u3044","\u3044\u308F\u3046","\u3044\u308F\u304B\u3093","\u3044\u308F\u3070","\u3044\u308F\u3086\u308B","\u3044\u3093\u3052\u3093\u307E\u3081","\u3044\u3093\u3055\u3064","\u3044\u3093\u3057\u3087\u3046","\u3044\u3093\u3088\u3046","\u3046\u3048\u304D","\u3046\u3048\u308B","\u3046\u304A\u3056","\u3046\u304C\u3044","\u3046\u304B\u3076","\u3046\u304B\u3079\u308B","\u3046\u304D\u308F","\u3046\u304F\u3089\u3044\u306A","\u3046\u304F\u308C\u308C","\u3046\u3051\u305F\u307E\u308F\u308B","\u3046\u3051\u3064\u3051","\u3046\u3051\u3068\u308B","\u3046\u3051\u3082\u3064","\u3046\u3051\u308B","\u3046\u3054\u304B\u3059","\u3046\u3054\u304F","\u3046\u3053\u3093","\u3046\u3055\u304E","\u3046\u3057\u306A\u3046","\u3046\u3057\u308D\u304C\u307F","\u3046\u3059\u3044","\u3046\u3059\u304E","\u3046\u3059\u3050\u3089\u3044","\u3046\u3059\u3081\u308B","\u3046\u305B\u3064","\u3046\u3061\u3042\u308F\u305B","\u3046\u3061\u304C\u308F","\u3046\u3061\u304D","\u3046\u3061\u3085\u3046","\u3046\u3063\u304B\u308A","\u3046\u3064\u304F\u3057\u3044","\u3046\u3063\u305F\u3048\u308B","\u3046\u3064\u308B","\u3046\u3069\u3093","\u3046\u306A\u304E","\u3046\u306A\u3058","\u3046\u306A\u305A\u304F","\u3046\u306A\u308B","\u3046\u306D\u308B","\u3046\u306E\u3046","\u3046\u3076\u3052","\u3046\u3076\u3054\u3048","\u3046\u307E\u308C\u308B","\u3046\u3081\u308B","\u3046\u3082\u3046","\u3046\u3084\u307E\u3046","\u3046\u3088\u304F","\u3046\u3089\u304C\u3048\u3059","\u3046\u3089\u3050\u3061","\u3046\u3089\u306A\u3044","\u3046\u308A\u3042\u3052","\u3046\u308A\u304D\u308C","\u3046\u308B\u3055\u3044","\u3046\u308C\u3057\u3044","\u3046\u308C\u3086\u304D","\u3046\u308C\u308B","\u3046\u308D\u3053","\u3046\u308F\u304D","\u3046\u308F\u3055","\u3046\u3093\u3053\u3046","\u3046\u3093\u3061\u3093","\u3046\u3093\u3066\u3093","\u3046\u3093\u3069\u3046","\u3048\u3044\u3048\u3093","\u3048\u3044\u304C","\u3048\u3044\u304D\u3087\u3046","\u3048\u3044\u3054","\u3048\u3044\u305B\u3044","\u3048\u3044\u3076\u3093","\u3048\u3044\u3088\u3046","\u3048\u3044\u308F","\u3048\u304A\u308A","\u3048\u304C\u304A","\u3048\u304C\u304F","\u3048\u304D\u305F\u3044","\u3048\u304F\u305B\u308B","\u3048\u3057\u3083\u304F","\u3048\u3059\u3066","\u3048\u3064\u3089\u3093","\u3048\u306E\u3050","\u3048\u307B\u3046\u307E\u304D","\u3048\u307B\u3093","\u3048\u307E\u304D","\u3048\u3082\u3058","\u3048\u3082\u306E","\u3048\u3089\u3044","\u3048\u3089\u3076","\u3048\u308A\u3042","\u3048\u3093\u3048\u3093","\u3048\u3093\u304B\u3044","\u3048\u3093\u304E","\u3048\u3093\u3052\u304D","\u3048\u3093\u3057\u3085\u3046","\u3048\u3093\u305C\u3064","\u3048\u3093\u305D\u304F","\u3048\u3093\u3061\u3087\u3046","\u3048\u3093\u3068\u3064","\u304A\u3044\u304B\u3051\u308B","\u304A\u3044\u3053\u3059","\u304A\u3044\u3057\u3044","\u304A\u3044\u3064\u304F","\u304A\u3046\u3048\u3093","\u304A\u3046\u3055\u307E","\u304A\u3046\u3058","\u304A\u3046\u305B\u3064","\u304A\u3046\u305F\u3044","\u304A\u3046\u3075\u304F","\u304A\u3046\u3079\u3044","\u304A\u3046\u3088\u3046","\u304A\u3048\u308B","\u304A\u304A\u3044","\u304A\u304A\u3046","\u304A\u304A\u3069\u304A\u308A","\u304A\u304A\u3084","\u304A\u304A\u3088\u305D","\u304A\u304B\u3048\u308A","\u304A\u304B\u305A","\u304A\u304C\u3080","\u304A\u304B\u308F\u308A","\u304A\u304E\u306A\u3046","\u304A\u304D\u308B","\u304A\u304F\u3055\u307E","\u304A\u304F\u3058\u3087\u3046","\u304A\u304F\u308A\u304C\u306A","\u304A\u304F\u308B","\u304A\u304F\u308C\u308B","\u304A\u3053\u3059","\u304A\u3053\u306A\u3046","\u304A\u3053\u308B","\u304A\u3055\u3048\u308B","\u304A\u3055\u306A\u3044","\u304A\u3055\u3081\u308B","\u304A\u3057\u3044\u308C","\u304A\u3057\u3048\u308B","\u304A\u3058\u304E","\u304A\u3058\u3055\u3093","\u304A\u3057\u3083\u308C","\u304A\u305D\u3089\u304F","\u304A\u305D\u308F\u308B","\u304A\u305F\u304C\u3044","\u304A\u305F\u304F","\u304A\u3060\u3084\u304B","\u304A\u3061\u3064\u304F","\u304A\u3063\u3068","\u304A\u3064\u308A","\u304A\u3067\u304B\u3051","\u304A\u3068\u3057\u3082\u306E","\u304A\u3068\u306A\u3057\u3044","\u304A\u3069\u308A","\u304A\u3069\u308D\u304B\u3059","\u304A\u3070\u3055\u3093","\u304A\u307E\u3044\u308A","\u304A\u3081\u3067\u3068\u3046","\u304A\u3082\u3044\u3067","\u304A\u3082\u3046","\u304A\u3082\u305F\u3044","\u304A\u3082\u3061\u3083","\u304A\u3084\u3064","\u304A\u3084\u3086\u3073","\u304A\u3088\u307C\u3059","\u304A\u3089\u3093\u3060","\u304A\u308D\u3059","\u304A\u3093\u304C\u304F","\u304A\u3093\u3051\u3044","\u304A\u3093\u3057\u3083","\u304A\u3093\u305B\u3093","\u304A\u3093\u3060\u3093","\u304A\u3093\u3061\u3085\u3046","\u304A\u3093\u3069\u3051\u3044","\u304B\u3042\u3064","\u304B\u3044\u304C","\u304C\u3044\u304D","\u304C\u3044\u3051\u3093","\u304C\u3044\u3053\u3046","\u304B\u3044\u3055\u3064","\u304B\u3044\u3057\u3083","\u304B\u3044\u3059\u3044\u3088\u304F","\u304B\u3044\u305C\u3093","\u304B\u3044\u305E\u3046\u3069","\u304B\u3044\u3064\u3046","\u304B\u3044\u3066\u3093","\u304B\u3044\u3068\u3046","\u304B\u3044\u3075\u304F","\u304C\u3044\u3078\u304D","\u304B\u3044\u307B\u3046","\u304B\u3044\u3088\u3046","\u304C\u3044\u3089\u3044","\u304B\u3044\u308F","\u304B\u3048\u308B","\u304B\u304A\u308A","\u304B\u304B\u3048\u308B","\u304B\u304C\u304F","\u304B\u304C\u3057","\u304B\u304C\u307F","\u304B\u304F\u3054","\u304B\u304F\u3068\u304F","\u304B\u3056\u308B","\u304C\u305E\u3046","\u304B\u305F\u3044","\u304B\u305F\u3061","\u304C\u3061\u3087\u3046","\u304C\u3063\u304D\u3085\u3046","\u304C\u3063\u3053\u3046","\u304C\u3063\u3055\u3093","\u304C\u3063\u3057\u3087\u3046","\u304B\u306A\u3056\u308F\u3057","\u304B\u306E\u3046","\u304C\u306F\u304F","\u304B\u3076\u304B","\u304B\u307B\u3046","\u304B\u307B\u3054","\u304B\u307E\u3046","\u304B\u307E\u307C\u3053","\u304B\u3081\u308C\u304A\u3093","\u304B\u3086\u3044","\u304B\u3088\u3046\u3073","\u304B\u3089\u3044","\u304B\u308B\u3044","\u304B\u308D\u3046","\u304B\u308F\u304F","\u304B\u308F\u3089","\u304C\u3093\u304B","\u304B\u3093\u3051\u3044","\u304B\u3093\u3053\u3046","\u304B\u3093\u3057\u3083","\u304B\u3093\u305D\u3046","\u304B\u3093\u305F\u3093","\u304B\u3093\u3061","\u304C\u3093\u3070\u308B","\u304D\u3042\u3044","\u304D\u3042\u3064","\u304D\u3044\u308D","\u304E\u3044\u3093","\u304D\u3046\u3044","\u304D\u3046\u3093","\u304D\u3048\u308B","\u304D\u304A\u3046","\u304D\u304A\u304F","\u304D\u304A\u3061","\u304D\u304A\u3093","\u304D\u304B\u3044","\u304D\u304B\u304F","\u304D\u304B\u3093\u3057\u3083","\u304D\u304D\u3066","\u304D\u304F\u3070\u308A","\u304D\u304F\u3089\u3052","\u304D\u3051\u3093\u305B\u3044","\u304D\u3053\u3046","\u304D\u3053\u3048\u308B","\u304D\u3053\u304F","\u304D\u3055\u3044","\u304D\u3055\u304F","\u304D\u3055\u307E","\u304D\u3055\u3089\u304E","\u304E\u3058\u304B\u304C\u304F","\u304E\u3057\u304D","\u304E\u3058\u305F\u3044\u3051\u3093","\u304E\u3058\u306B\u3063\u3066\u3044","\u304E\u3058\u3085\u3064\u3057\u3083","\u304D\u3059\u3046","\u304D\u305B\u3044","\u304D\u305B\u304D","\u304D\u305B\u3064","\u304D\u305D\u3046","\u304D\u305E\u304F","\u304D\u305E\u3093","\u304D\u305F\u3048\u308B","\u304D\u3061\u3087\u3046","\u304D\u3064\u3048\u3093","\u304E\u3063\u3061\u308A","\u304D\u3064\u3064\u304D","\u304D\u3064\u306D","\u304D\u3066\u3044","\u304D\u3069\u3046","\u304D\u3069\u304F","\u304D\u306A\u3044","\u304D\u306A\u304C","\u304D\u306A\u3053","\u304D\u306C\u3054\u3057","\u304D\u306D\u3093","\u304D\u306E\u3046","\u304D\u306E\u3057\u305F","\u304D\u306F\u304F","\u304D\u3073\u3057\u3044","\u304D\u3072\u3093","\u304D\u3075\u304F","\u304D\u3076\u3093","\u304D\u307C\u3046","\u304D\u307B\u3093","\u304D\u307E\u308B","\u304D\u307F\u3064","\u304D\u3080\u305A\u304B\u3057\u3044","\u304D\u3081\u308B","\u304D\u3082\u3060\u3081\u3057","\u304D\u3082\u3061","\u304D\u3082\u306E","\u304D\u3083\u304F","\u304D\u3084\u304F","\u304E\u3085\u3046\u306B\u304F","\u304D\u3088\u3046","\u304D\u3087\u3046\u308A\u3085\u3046","\u304D\u3089\u3044","\u304D\u3089\u304F","\u304D\u308A\u3093","\u304D\u308C\u3044","\u304D\u308C\u3064","\u304D\u308D\u304F","\u304E\u308D\u3093","\u304D\u308F\u3081\u308B","\u304E\u3093\u3044\u308D","\u304D\u3093\u304B\u304F\u3058","\u304D\u3093\u3058\u3087","\u304D\u3093\u3088\u3046\u3073","\u3050\u3042\u3044","\u304F\u3044\u305A","\u304F\u3046\u304B\u3093","\u304F\u3046\u304D","\u304F\u3046\u3050\u3093","\u304F\u3046\u3053\u3046","\u3050\u3046\u305B\u3044","\u304F\u3046\u305D\u3046","\u3050\u3046\u305F\u3089","\u304F\u3046\u3075\u304F","\u304F\u3046\u307C","\u304F\u304B\u3093","\u304F\u304D\u3087\u3046","\u304F\u3052\u3093","\u3050\u3053\u3046","\u304F\u3055\u3044","\u304F\u3055\u304D","\u304F\u3055\u3070\u306A","\u304F\u3055\u308B","\u304F\u3057\u3083\u307F","\u304F\u3057\u3087\u3046","\u304F\u3059\u306E\u304D","\u304F\u3059\u308A\u3086\u3073","\u304F\u305B\u3052","\u304F\u305B\u3093","\u3050\u305F\u3044\u3066\u304D","\u304F\u3060\u3055\u308B","\u304F\u305F\u3073\u308C\u308B","\u304F\u3061\u3053\u307F","\u304F\u3061\u3055\u304D","\u304F\u3064\u3057\u305F","\u3050\u3063\u3059\u308A","\u304F\u3064\u308D\u3050","\u304F\u3068\u3046\u3066\u3093","\u304F\u3069\u304F","\u304F\u306A\u3093","\u304F\u306D\u304F\u306D","\u304F\u306E\u3046","\u304F\u3075\u3046","\u304F\u307F\u3042\u308F\u305B","\u304F\u307F\u305F\u3066\u308B","\u304F\u3081\u308B","\u304F\u3084\u304F\u3057\u3087","\u304F\u3089\u3059","\u304F\u3089\u3079\u308B","\u304F\u308B\u307E","\u304F\u308C\u308B","\u304F\u308D\u3046","\u304F\u308F\u3057\u3044","\u3050\u3093\u304B\u3093","\u3050\u3093\u3057\u3087\u304F","\u3050\u3093\u305F\u3044","\u3050\u3093\u3066","\u3051\u3042\u306A","\u3051\u3044\u304B\u304F","\u3051\u3044\u3051\u3093","\u3051\u3044\u3053","\u3051\u3044\u3055\u3064","\u3052\u3044\u3058\u3085\u3064","\u3051\u3044\u305F\u3044","\u3052\u3044\u306E\u3046\u3058\u3093","\u3051\u3044\u308C\u304D","\u3051\u3044\u308D","\u3051\u304A\u3068\u3059","\u3051\u304A\u308A\u3082\u306E","\u3052\u304D\u304B","\u3052\u304D\u3052\u3093","\u3052\u304D\u3060\u3093","\u3052\u304D\u3061\u3093","\u3052\u304D\u3068\u3064","\u3052\u304D\u306F","\u3052\u304D\u3084\u304F","\u3052\u3053\u3046","\u3052\u3053\u304F\u3058\u3087\u3046","\u3052\u3056\u3044","\u3051\u3055\u304D","\u3052\u3056\u3093","\u3051\u3057\u304D","\u3051\u3057\u3054\u3080","\u3051\u3057\u3087\u3046","\u3052\u3059\u3068","\u3051\u305F\u3070","\u3051\u3061\u3083\u3063\u3077","\u3051\u3061\u3089\u3059","\u3051\u3064\u3042\u3064","\u3051\u3064\u3044","\u3051\u3064\u3048\u304D","\u3051\u3063\u3053\u3093","\u3051\u3064\u3058\u3087","\u3051\u3063\u305B\u304D","\u3051\u3063\u3066\u3044","\u3051\u3064\u307E\u3064","\u3052\u3064\u3088\u3046\u3073","\u3052\u3064\u308C\u3044","\u3051\u3064\u308D\u3093","\u3052\u3069\u304F","\u3051\u3068\u3070\u3059","\u3051\u3068\u308B","\u3051\u306A\u3052","\u3051\u306A\u3059","\u3051\u306A\u307F","\u3051\u306C\u304D","\u3052\u306D\u3064","\u3051\u306D\u3093","\u3051\u306F\u3044","\u3052\u3072\u3093","\u3051\u3076\u304B\u3044","\u3052\u307C\u304F","\u3051\u307E\u308A","\u3051\u307F\u304B\u308B","\u3051\u3080\u3057","\u3051\u3080\u308A","\u3051\u3082\u306E","\u3051\u3089\u3044","\u3051\u308D\u3051\u308D","\u3051\u308F\u3057\u3044","\u3051\u3093\u3044","\u3051\u3093\u3048\u3064","\u3051\u3093\u304A","\u3051\u3093\u304B","\u3052\u3093\u304D","\u3051\u3093\u3052\u3093","\u3051\u3093\u3053\u3046","\u3051\u3093\u3055\u304F","\u3051\u3093\u3057\u3085\u3046","\u3051\u3093\u3059\u3046","\u3052\u3093\u305D\u3046","\u3051\u3093\u3061\u304F","\u3051\u3093\u3066\u3044","\u3051\u3093\u3068\u3046","\u3051\u3093\u306A\u3044","\u3051\u3093\u306B\u3093","\u3052\u3093\u3076\u3064","\u3051\u3093\u307E","\u3051\u3093\u307F\u3093","\u3051\u3093\u3081\u3044","\u3051\u3093\u3089\u3093","\u3051\u3093\u308A","\u3053\u3042\u304F\u307E","\u3053\u3044\u306C","\u3053\u3044\u3073\u3068","\u3054\u3046\u3044","\u3053\u3046\u3048\u3093","\u3053\u3046\u304A\u3093","\u3053\u3046\u304B\u3093","\u3054\u3046\u304D\u3085\u3046","\u3054\u3046\u3051\u3044","\u3053\u3046\u3053\u3046","\u3053\u3046\u3055\u3044","\u3053\u3046\u3058","\u3053\u3046\u3059\u3044","\u3054\u3046\u305B\u3044","\u3053\u3046\u305D\u304F","\u3053\u3046\u305F\u3044","\u3053\u3046\u3061\u3083","\u3053\u3046\u3064\u3046","\u3053\u3046\u3066\u3044","\u3053\u3046\u3069\u3046","\u3053\u3046\u306A\u3044","\u3053\u3046\u306F\u3044","\u3054\u3046\u307B\u3046","\u3054\u3046\u307E\u3093","\u3053\u3046\u3082\u304F","\u3053\u3046\u308A\u3064","\u3053\u3048\u308B","\u3053\u304A\u308A","\u3054\u304B\u3044","\u3054\u304C\u3064","\u3054\u304B\u3093","\u3053\u304F\u3054","\u3053\u304F\u3055\u3044","\u3053\u304F\u3068\u3046","\u3053\u304F\u306A\u3044","\u3053\u304F\u306F\u304F","\u3053\u3050\u307E","\u3053\u3051\u3044","\u3053\u3051\u308B","\u3053\u3053\u306E\u304B","\u3053\u3053\u308D","\u3053\u3055\u3081","\u3053\u3057\u3064","\u3053\u3059\u3046","\u3053\u305B\u3044","\u3053\u305B\u304D","\u3053\u305C\u3093","\u3053\u305D\u3060\u3066","\u3053\u305F\u3044","\u3053\u305F\u3048\u308B","\u3053\u305F\u3064","\u3053\u3061\u3087\u3046","\u3053\u3063\u304B","\u3053\u3064\u3053\u3064","\u3053\u3064\u3070\u3093","\u3053\u3064\u3076","\u3053\u3066\u3044","\u3053\u3066\u3093","\u3053\u3068\u304C\u3089","\u3053\u3068\u3057","\u3053\u3068\u3070","\u3053\u3068\u308A","\u3053\u306A\u3054\u306A","\u3053\u306D\u3053\u306D","\u3053\u306E\u307E\u307E","\u3053\u306E\u307F","\u3053\u306E\u3088","\u3054\u306F\u3093","\u3053\u3072\u3064\u3058","\u3053\u3075\u3046","\u3053\u3075\u3093","\u3053\u307C\u308C\u308B","\u3054\u307E\u3042\u3076\u3089","\u3053\u307E\u304B\u3044","\u3054\u307E\u3059\u308A","\u3053\u307E\u3064\u306A","\u3053\u307E\u308B","\u3053\u3080\u304E\u3053","\u3053\u3082\u3058","\u3053\u3082\u3061","\u3053\u3082\u306E","\u3053\u3082\u3093","\u3053\u3084\u304F","\u3053\u3084\u307E","\u3053\u3086\u3046","\u3053\u3086\u3073","\u3053\u3088\u3044","\u3053\u3088\u3046","\u3053\u308A\u308B","\u3053\u308C\u304F\u3057\u3087\u3093","\u3053\u308D\u3063\u3051","\u3053\u308F\u3082\u3066","\u3053\u308F\u308C\u308B","\u3053\u3093\u3044\u3093","\u3053\u3093\u304B\u3044","\u3053\u3093\u304D","\u3053\u3093\u3057\u3085\u3046","\u3053\u3093\u3059\u3044","\u3053\u3093\u3060\u3066","\u3053\u3093\u3068\u3093","\u3053\u3093\u306A\u3093","\u3053\u3093\u3073\u306B","\u3053\u3093\u307D\u3093","\u3053\u3093\u307E\u3051","\u3053\u3093\u3084","\u3053\u3093\u308C\u3044","\u3053\u3093\u308F\u304F","\u3056\u3044\u3048\u304D","\u3055\u3044\u304B\u3044","\u3055\u3044\u304D\u3093","\u3056\u3044\u3052\u3093","\u3056\u3044\u3053","\u3055\u3044\u3057\u3087","\u3055\u3044\u305B\u3044","\u3056\u3044\u305F\u304F","\u3056\u3044\u3061\u3085\u3046","\u3055\u3044\u3066\u304D","\u3056\u3044\u308A\u3087\u3046","\u3055\u3046\u306A","\u3055\u304B\u3044\u3057","\u3055\u304C\u3059","\u3055\u304B\u306A","\u3055\u304B\u307F\u3061","\u3055\u304C\u308B","\u3055\u304E\u3087\u3046","\u3055\u304F\u3057","\u3055\u304F\u3072\u3093","\u3055\u304F\u3089","\u3055\u3053\u304F","\u3055\u3053\u3064","\u3055\u305A\u304B\u308B","\u3056\u305B\u304D","\u3055\u305F\u3093","\u3055\u3064\u3048\u3044","\u3056\u3064\u304A\u3093","\u3056\u3063\u304B","\u3056\u3064\u304C\u304F","\u3055\u3063\u304D\u3087\u304F","\u3056\u3063\u3057","\u3055\u3064\u3058\u3093","\u3056\u3063\u305D\u3046","\u3055\u3064\u305F\u3070","\u3055\u3064\u307E\u3044\u3082","\u3055\u3066\u3044","\u3055\u3068\u3044\u3082","\u3055\u3068\u3046","\u3055\u3068\u304A\u3084","\u3055\u3068\u3057","\u3055\u3068\u308B","\u3055\u306E\u3046","\u3055\u3070\u304F","\u3055\u3073\u3057\u3044","\u3055\u3079\u3064","\u3055\u307B\u3046","\u3055\u307B\u3069","\u3055\u307E\u3059","\u3055\u307F\u3057\u3044","\u3055\u307F\u3060\u308C","\u3055\u3080\u3051","\u3055\u3081\u308B","\u3055\u3084\u3048\u3093\u3069\u3046","\u3055\u3086\u3046","\u3055\u3088\u3046","\u3055\u3088\u304F","\u3055\u3089\u3060","\u3056\u308B\u305D\u3070","\u3055\u308F\u3084\u304B","\u3055\u308F\u308B","\u3055\u3093\u3044\u3093","\u3055\u3093\u304B","\u3055\u3093\u304D\u3083\u304F","\u3055\u3093\u3053\u3046","\u3055\u3093\u3055\u3044","\u3056\u3093\u3057\u3087","\u3055\u3093\u3059\u3046","\u3055\u3093\u305B\u3044","\u3055\u3093\u305D","\u3055\u3093\u3061","\u3055\u3093\u307E","\u3055\u3093\u307F","\u3055\u3093\u3089\u3093","\u3057\u3042\u3044","\u3057\u3042\u3052","\u3057\u3042\u3055\u3063\u3066","\u3057\u3042\u308F\u305B","\u3057\u3044\u304F","\u3057\u3044\u3093","\u3057\u3046\u3061","\u3057\u3048\u3044","\u3057\u304A\u3051","\u3057\u304B\u3044","\u3057\u304B\u304F","\u3058\u304B\u3093","\u3057\u3054\u3068","\u3057\u3059\u3046","\u3058\u3060\u3044","\u3057\u305F\u3046\u3051","\u3057\u305F\u304E","\u3057\u305F\u3066","\u3057\u305F\u307F","\u3057\u3061\u3087\u3046","\u3057\u3061\u308A\u3093","\u3057\u3063\u304B\u308A","\u3057\u3064\u3058","\u3057\u3064\u3082\u3093","\u3057\u3066\u3044","\u3057\u3066\u304D","\u3057\u3066\u3064","\u3058\u3066\u3093","\u3058\u3069\u3046","\u3057\u306A\u304E\u308C","\u3057\u306A\u3082\u306E","\u3057\u306A\u3093","\u3057\u306D\u307E","\u3057\u306D\u3093","\u3057\u306E\u3050","\u3057\u306E\u3076","\u3057\u306F\u3044","\u3057\u3070\u304B\u308A","\u3057\u306F\u3064","\u3057\u306F\u3089\u3044","\u3057\u306F\u3093","\u3057\u3072\u3087\u3046","\u3057\u3075\u304F","\u3058\u3076\u3093","\u3057\u3078\u3044","\u3057\u307B\u3046","\u3057\u307B\u3093","\u3057\u307E\u3046","\u3057\u307E\u308B","\u3057\u307F\u3093","\u3057\u3080\u3051\u308B","\u3058\u3080\u3057\u3087","\u3057\u3081\u3044","\u3057\u3081\u308B","\u3057\u3082\u3093","\u3057\u3083\u3044\u3093","\u3057\u3083\u3046\u3093","\u3057\u3083\u304A\u3093","\u3058\u3083\u304C\u3044\u3082","\u3057\u3084\u304F\u3057\u3087","\u3057\u3083\u304F\u307B\u3046","\u3057\u3083\u3051\u3093","\u3057\u3083\u3053","\u3057\u3083\u3056\u3044","\u3057\u3083\u3057\u3093","\u3057\u3083\u305B\u3093","\u3057\u3083\u305D\u3046","\u3057\u3083\u305F\u3044","\u3057\u3083\u3061\u3087\u3046","\u3057\u3083\u3063\u304D\u3093","\u3058\u3083\u307E","\u3057\u3083\u308A\u3093","\u3057\u3083\u308C\u3044","\u3058\u3086\u3046","\u3058\u3085\u3046\u3057\u3087","\u3057\u3085\u304F\u306F\u304F","\u3058\u3085\u3057\u3093","\u3057\u3085\u3063\u305B\u304D","\u3057\u3085\u307F","\u3057\u3085\u3089\u3070","\u3058\u3085\u3093\u3070\u3093","\u3057\u3087\u3046\u304B\u3044","\u3057\u3087\u304F\u305F\u304F","\u3057\u3087\u3063\u3051\u3093","\u3057\u3087\u3069\u3046","\u3057\u3087\u3082\u3064","\u3057\u3089\u305B\u308B","\u3057\u3089\u3079\u308B","\u3057\u3093\u304B","\u3057\u3093\u3053\u3046","\u3058\u3093\u3058\u3083","\u3057\u3093\u305B\u3044\u3058","\u3057\u3093\u3061\u304F","\u3057\u3093\u308A\u3093","\u3059\u3042\u3052","\u3059\u3042\u3057","\u3059\u3042\u306A","\u305A\u3042\u3093","\u3059\u3044\u3048\u3044","\u3059\u3044\u304B","\u3059\u3044\u3068\u3046","\u305A\u3044\u3076\u3093","\u3059\u3044\u3088\u3046\u3073","\u3059\u3046\u304C\u304F","\u3059\u3046\u3058\u3064","\u3059\u3046\u305B\u3093","\u3059\u304A\u3069\u308A","\u3059\u304D\u307E","\u3059\u304F\u3046","\u3059\u304F\u306A\u3044","\u3059\u3051\u308B","\u3059\u3054\u3044","\u3059\u3053\u3057","\u305A\u3055\u3093","\u3059\u305A\u3057\u3044","\u3059\u3059\u3080","\u3059\u3059\u3081\u308B","\u3059\u3063\u304B\u308A","\u305A\u3063\u3057\u308A","\u305A\u3063\u3068","\u3059\u3066\u304D","\u3059\u3066\u308B","\u3059\u306D\u308B","\u3059\u306E\u3053","\u3059\u306F\u3060","\u3059\u3070\u3089\u3057\u3044","\u305A\u3072\u3087\u3046","\u305A\u3076\u306C\u308C","\u3059\u3076\u308A","\u3059\u3075\u308C","\u3059\u3079\u3066","\u3059\u3079\u308B","\u305A\u307B\u3046","\u3059\u307C\u3093","\u3059\u307E\u3044","\u3059\u3081\u3057","\u3059\u3082\u3046","\u3059\u3084\u304D","\u3059\u3089\u3059\u3089","\u3059\u308B\u3081","\u3059\u308C\u3061\u304C\u3046","\u3059\u308D\u3063\u3068","\u3059\u308F\u308B","\u3059\u3093\u305C\u3093","\u3059\u3093\u307D\u3046","\u305B\u3042\u3076\u3089","\u305B\u3044\u304B\u3064","\u305B\u3044\u3052\u3093","\u305B\u3044\u3058","\u305B\u3044\u3088\u3046","\u305B\u304A\u3046","\u305B\u304B\u3044\u304B\u3093","\u305B\u304D\u306B\u3093","\u305B\u304D\u3080","\u305B\u304D\u3086","\u305B\u304D\u3089\u3093\u3046\u3093","\u305B\u3051\u3093","\u305B\u3053\u3046","\u305B\u3059\u3058","\u305B\u305F\u3044","\u305B\u305F\u3051","\u305B\u3063\u304B\u304F","\u305B\u3063\u304D\u3083\u304F","\u305C\u3063\u304F","\u305B\u3063\u3051\u3093","\u305B\u3063\u3053\u3064","\u305B\u3063\u3055\u305F\u304F\u307E","\u305B\u3064\u305E\u304F","\u305B\u3064\u3060\u3093","\u305B\u3064\u3067\u3093","\u305B\u3063\u3071\u3093","\u305B\u3064\u3073","\u305B\u3064\u3076\u3093","\u305B\u3064\u3081\u3044","\u305B\u3064\u308A\u3064","\u305B\u306A\u304B","\u305B\u306E\u3073","\u305B\u306F\u3070","\u305B\u3073\u308D","\u305B\u307C\u306D","\u305B\u307E\u3044","\u305B\u307E\u308B","\u305B\u3081\u308B","\u305B\u3082\u305F\u308C","\u305B\u308A\u3075","\u305C\u3093\u3042\u304F","\u305B\u3093\u3044","\u305B\u3093\u3048\u3044","\u305B\u3093\u304B","\u305B\u3093\u304D\u3087","\u305B\u3093\u304F","\u305B\u3093\u3052\u3093","\u305C\u3093\u3054","\u305B\u3093\u3055\u3044","\u305B\u3093\u3057\u3085","\u305B\u3093\u3059\u3044","\u305B\u3093\u305B\u3044","\u305B\u3093\u305E","\u305B\u3093\u305F\u304F","\u305B\u3093\u3061\u3087\u3046","\u305B\u3093\u3066\u3044","\u305B\u3093\u3068\u3046","\u305B\u3093\u306C\u304D","\u305B\u3093\u306D\u3093","\u305B\u3093\u3071\u3044","\u305C\u3093\u3076","\u305C\u3093\u307D\u3046","\u305B\u3093\u3080","\u305B\u3093\u3081\u3093\u3058\u3087","\u305B\u3093\u3082\u3093","\u305B\u3093\u3084\u304F","\u305B\u3093\u3086\u3046","\u305B\u3093\u3088\u3046","\u305C\u3093\u3089","\u305C\u3093\u308A\u3083\u304F","\u305B\u3093\u308C\u3044","\u305B\u3093\u308D","\u305D\u3042\u304F","\u305D\u3044\u3068\u3052\u308B","\u305D\u3044\u306D","\u305D\u3046\u304C\u3093\u304D\u3087\u3046","\u305D\u3046\u304D","\u305D\u3046\u3054","\u305D\u3046\u3057\u3093","\u305D\u3046\u3060\u3093","\u305D\u3046\u306A\u3093","\u305D\u3046\u3073","\u305D\u3046\u3081\u3093","\u305D\u3046\u308A","\u305D\u3048\u3082\u306E","\u305D\u3048\u3093","\u305D\u304C\u3044","\u305D\u3052\u304D","\u305D\u3053\u3046","\u305D\u3053\u305D\u3053","\u305D\u3056\u3044","\u305D\u3057\u306A","\u305D\u305B\u3044","\u305D\u305B\u3093","\u305D\u305D\u3050","\u305D\u3060\u3066\u308B","\u305D\u3064\u3046","\u305D\u3064\u3048\u3093","\u305D\u3063\u304B\u3093","\u305D\u3064\u304E\u3087\u3046","\u305D\u3063\u3051\u3064","\u305D\u3063\u3053\u3046","\u305D\u3063\u305B\u3093","\u305D\u3063\u3068","\u305D\u3068\u304C\u308F","\u305D\u3068\u3065\u3089","\u305D\u306A\u3048\u308B","\u305D\u306A\u305F","\u305D\u3075\u307C","\u305D\u307C\u304F","\u305D\u307C\u308D","\u305D\u307E\u3064","\u305D\u307E\u308B","\u305D\u3080\u304F","\u305D\u3080\u308A\u3048","\u305D\u3081\u308B","\u305D\u3082\u305D\u3082","\u305D\u3088\u304B\u305C","\u305D\u3089\u307E\u3081","\u305D\u308D\u3046","\u305D\u3093\u304B\u3044","\u305D\u3093\u3051\u3044","\u305D\u3093\u3056\u3044","\u305D\u3093\u3057\u3064","\u305D\u3093\u305E\u304F","\u305D\u3093\u3061\u3087\u3046","\u305E\u3093\u3073","\u305E\u3093\u3076\u3093","\u305D\u3093\u307F\u3093","\u305F\u3042\u3044","\u305F\u3044\u3044\u3093","\u305F\u3044\u3046\u3093","\u305F\u3044\u3048\u304D","\u305F\u3044\u304A\u3046","\u3060\u3044\u304C\u304F","\u305F\u3044\u304D","\u305F\u3044\u3050\u3046","\u305F\u3044\u3051\u3093","\u305F\u3044\u3053","\u305F\u3044\u3056\u3044","\u3060\u3044\u3058\u3087\u3046\u3076","\u3060\u3044\u3059\u304D","\u305F\u3044\u305B\u3064","\u305F\u3044\u305D\u3046","\u3060\u3044\u305F\u3044","\u305F\u3044\u3061\u3087\u3046","\u305F\u3044\u3066\u3044","\u3060\u3044\u3069\u3053\u308D","\u305F\u3044\u306A\u3044","\u305F\u3044\u306D\u3064","\u305F\u3044\u306E\u3046","\u305F\u3044\u306F\u3093","\u3060\u3044\u3072\u3087\u3046","\u305F\u3044\u3075\u3046","\u305F\u3044\u3078\u3093","\u305F\u3044\u307B","\u305F\u3044\u307E\u3064\u3070\u306A","\u305F\u3044\u307F\u3093\u3050","\u305F\u3044\u3080","\u305F\u3044\u3081\u3093","\u305F\u3044\u3084\u304D","\u305F\u3044\u3088\u3046","\u305F\u3044\u3089","\u305F\u3044\u308A\u3087\u304F","\u305F\u3044\u308B","\u305F\u3044\u308F\u3093","\u305F\u3046\u3048","\u305F\u3048\u308B","\u305F\u304A\u3059","\u305F\u304A\u308B","\u305F\u304A\u308C\u308B","\u305F\u304B\u3044","\u305F\u304B\u306D","\u305F\u304D\u3073","\u305F\u304F\u3055\u3093","\u305F\u3053\u304F","\u305F\u3053\u3084\u304D","\u305F\u3055\u3044","\u305F\u3057\u3056\u3093","\u3060\u3058\u3083\u308C","\u305F\u3059\u3051\u308B","\u305F\u305A\u3055\u308F\u308B","\u305F\u305D\u304C\u308C","\u305F\u305F\u304B\u3046","\u305F\u305F\u304F","\u305F\u3060\u3057\u3044","\u305F\u305F\u307F","\u305F\u3061\u3070\u306A","\u3060\u3063\u304B\u3044","\u3060\u3063\u304D\u3083\u304F","\u3060\u3063\u3053","\u3060\u3063\u3057\u3085\u3064","\u3060\u3063\u305F\u3044","\u305F\u3066\u308B","\u305F\u3068\u3048\u308B","\u305F\u306A\u3070\u305F","\u305F\u306B\u3093","\u305F\u306C\u304D","\u305F\u306E\u3057\u307F","\u305F\u306F\u3064","\u305F\u3076\u3093","\u305F\u3079\u308B","\u305F\u307C\u3046","\u305F\u307E\u3054","\u305F\u307E\u308B","\u3060\u3080\u308B","\u305F\u3081\u3044\u304D","\u305F\u3081\u3059","\u305F\u3081\u308B","\u305F\u3082\u3064","\u305F\u3084\u3059\u3044","\u305F\u3088\u308B","\u305F\u3089\u3059","\u305F\u308A\u304D\u307B\u3093\u304C\u3093","\u305F\u308A\u3087\u3046","\u305F\u308A\u308B","\u305F\u308B\u3068","\u305F\u308C\u308B","\u305F\u308C\u3093\u3068","\u305F\u308D\u3063\u3068","\u305F\u308F\u3080\u308C\u308B","\u3060\u3093\u3042\u3064","\u305F\u3093\u3044","\u305F\u3093\u304A\u3093","\u305F\u3093\u304B","\u305F\u3093\u304D","\u305F\u3093\u3051\u3093","\u305F\u3093\u3054","\u305F\u3093\u3055\u3093","\u305F\u3093\u3058\u3087\u3046\u3073","\u3060\u3093\u305B\u3044","\u305F\u3093\u305D\u304F","\u305F\u3093\u305F\u3044","\u3060\u3093\u3061","\u305F\u3093\u3066\u3044","\u305F\u3093\u3068\u3046","\u3060\u3093\u306A","\u305F\u3093\u306B\u3093","\u3060\u3093\u306D\u3064","\u305F\u3093\u306E\u3046","\u305F\u3093\u3074\u3093","\u3060\u3093\u307C\u3046","\u305F\u3093\u307E\u3064","\u305F\u3093\u3081\u3044","\u3060\u3093\u308C\u3064","\u3060\u3093\u308D","\u3060\u3093\u308F","\u3061\u3042\u3044","\u3061\u3042\u3093","\u3061\u3044\u304D","\u3061\u3044\u3055\u3044","\u3061\u3048\u3093","\u3061\u304B\u3044","\u3061\u304B\u3089","\u3061\u304D\u3085\u3046","\u3061\u304D\u3093","\u3061\u3051\u3044\u305A","\u3061\u3051\u3093","\u3061\u3053\u304F","\u3061\u3055\u3044","\u3061\u3057\u304D","\u3061\u3057\u308A\u3087\u3046","\u3061\u305B\u3044","\u3061\u305D\u3046","\u3061\u305F\u3044","\u3061\u305F\u3093","\u3061\u3061\u304A\u3084","\u3061\u3064\u3058\u3087","\u3061\u3066\u304D","\u3061\u3066\u3093","\u3061\u306C\u304D","\u3061\u306C\u308A","\u3061\u306E\u3046","\u3061\u3072\u3087\u3046","\u3061\u3078\u3044\u305B\u3093","\u3061\u307B\u3046","\u3061\u307E\u305F","\u3061\u307F\u3064","\u3061\u307F\u3069\u308D","\u3061\u3081\u3044\u3069","\u3061\u3083\u3093\u3053\u306A\u3079","\u3061\u3085\u3046\u3044","\u3061\u3086\u308A\u3087\u304F","\u3061\u3087\u3046\u3057","\u3061\u3087\u3055\u304F\u3051\u3093","\u3061\u3089\u3057","\u3061\u3089\u307F","\u3061\u308A\u304C\u307F","\u3061\u308A\u3087\u3046","\u3061\u308B\u3069","\u3061\u308F\u308F","\u3061\u3093\u305F\u3044","\u3061\u3093\u3082\u304F","\u3064\u3044\u304B","\u3064\u3044\u305F\u3061","\u3064\u3046\u304B","\u3064\u3046\u3058\u3087\u3046","\u3064\u3046\u306F\u3093","\u3064\u3046\u308F","\u3064\u304B\u3046","\u3064\u304B\u308C\u308B","\u3064\u304F\u306D","\u3064\u304F\u308B","\u3064\u3051\u306D","\u3064\u3051\u308B","\u3064\u3054\u3046","\u3064\u305F\u3048\u308B","\u3064\u3065\u304F","\u3064\u3064\u3058","\u3064\u3064\u3080","\u3064\u3068\u3081\u308B","\u3064\u306A\u304C\u308B","\u3064\u306A\u307F","\u3064\u306D\u3065\u306D","\u3064\u306E\u308B","\u3064\u3076\u3059","\u3064\u307E\u3089\u306A\u3044","\u3064\u307E\u308B","\u3064\u307F\u304D","\u3064\u3081\u305F\u3044","\u3064\u3082\u308A","\u3064\u3082\u308B","\u3064\u3088\u3044","\u3064\u308B\u307C","\u3064\u308B\u307F\u304F","\u3064\u308F\u3082\u306E","\u3064\u308F\u308A","\u3066\u3042\u3057","\u3066\u3042\u3066","\u3066\u3042\u307F","\u3066\u3044\u304A\u3093","\u3066\u3044\u304B","\u3066\u3044\u304D","\u3066\u3044\u3051\u3044","\u3066\u3044\u3053\u304F","\u3066\u3044\u3055\u3064","\u3066\u3044\u3057","\u3066\u3044\u305B\u3044","\u3066\u3044\u305F\u3044","\u3066\u3044\u3069","\u3066\u3044\u306D\u3044","\u3066\u3044\u3072\u3087\u3046","\u3066\u3044\u3078\u3093","\u3066\u3044\u307C\u3046","\u3066\u3046\u3061","\u3066\u304A\u304F\u308C","\u3066\u304D\u3068\u3046","\u3066\u304F\u3073","\u3067\u3053\u307C\u3053","\u3066\u3055\u304E\u3087\u3046","\u3066\u3055\u3052","\u3066\u3059\u308A","\u3066\u305D\u3046","\u3066\u3061\u304C\u3044","\u3066\u3061\u3087\u3046","\u3066\u3064\u304C\u304F","\u3066\u3064\u3065\u304D","\u3067\u3063\u3071","\u3066\u3064\u307C\u3046","\u3066\u3064\u3084","\u3067\u306C\u304B\u3048","\u3066\u306C\u304D","\u3066\u306C\u3050\u3044","\u3066\u306E\u3072\u3089","\u3066\u306F\u3044","\u3066\u3076\u304F\u308D","\u3066\u3075\u3060","\u3066\u307B\u3069\u304D","\u3066\u307B\u3093","\u3066\u307E\u3048","\u3066\u307E\u304D\u305A\u3057","\u3066\u307F\u3058\u304B","\u3066\u307F\u3084\u3052","\u3066\u3089\u3059","\u3066\u308C\u3073","\u3066\u308F\u3051","\u3066\u308F\u305F\u3057","\u3067\u3093\u3042\u3064","\u3066\u3093\u3044\u3093","\u3066\u3093\u304B\u3044","\u3066\u3093\u304D","\u3066\u3093\u3050","\u3066\u3093\u3051\u3093","\u3066\u3093\u3054\u304F","\u3066\u3093\u3055\u3044","\u3066\u3093\u3057","\u3066\u3093\u3059\u3046","\u3067\u3093\u3061","\u3066\u3093\u3066\u304D","\u3066\u3093\u3068\u3046","\u3066\u3093\u306A\u3044","\u3066\u3093\u3077\u3089","\u3066\u3093\u307C\u3046\u3060\u3044","\u3066\u3093\u3081\u3064","\u3066\u3093\u3089\u3093\u304B\u3044","\u3067\u3093\u308A\u3087\u304F","\u3067\u3093\u308F","\u3069\u3042\u3044","\u3068\u3044\u308C","\u3069\u3046\u304B\u3093","\u3068\u3046\u304D\u3085\u3046","\u3069\u3046\u3050","\u3068\u3046\u3057","\u3068\u3046\u3080\u304E","\u3068\u304A\u3044","\u3068\u304A\u304B","\u3068\u304A\u304F","\u3068\u304A\u3059","\u3068\u304A\u308B","\u3068\u304B\u3044","\u3068\u304B\u3059","\u3068\u304D\u304A\u308A","\u3068\u304D\u3069\u304D","\u3068\u304F\u3044","\u3068\u304F\u3057\u3085\u3046","\u3068\u304F\u3066\u3093","\u3068\u304F\u306B","\u3068\u304F\u3079\u3064","\u3068\u3051\u3044","\u3068\u3051\u308B","\u3068\u3053\u3084","\u3068\u3055\u304B","\u3068\u3057\u3087\u304B\u3093","\u3068\u305D\u3046","\u3068\u305F\u3093","\u3068\u3061\u3085\u3046","\u3068\u3063\u304D\u3085\u3046","\u3068\u3063\u304F\u3093","\u3068\u3064\u305C\u3093","\u3068\u3064\u306B\u3085\u3046","\u3068\u3069\u3051\u308B","\u3068\u3068\u306E\u3048\u308B","\u3068\u306A\u3044","\u3068\u306A\u3048\u308B","\u3068\u306A\u308A","\u3068\u306E\u3055\u307E","\u3068\u3070\u3059","\u3069\u3076\u304C\u308F","\u3068\u307B\u3046","\u3068\u307E\u308B","\u3068\u3081\u308B","\u3068\u3082\u3060\u3061","\u3068\u3082\u308B","\u3069\u3088\u3046\u3073","\u3068\u3089\u3048\u308B","\u3068\u3093\u304B\u3064","\u3069\u3093\u3076\u308A","\u306A\u3044\u304B\u304F","\u306A\u3044\u3053\u3046","\u306A\u3044\u3057\u3087","\u306A\u3044\u3059","\u306A\u3044\u305B\u3093","\u306A\u3044\u305D\u3046","\u306A\u304A\u3059","\u306A\u304C\u3044","\u306A\u304F\u3059","\u306A\u3052\u308B","\u306A\u3053\u3046\u3069","\u306A\u3055\u3051","\u306A\u305F\u3067\u3053\u3053","\u306A\u3063\u3068\u3046","\u306A\u3064\u3084\u3059\u307F","\u306A\u306A\u304A\u3057","\u306A\u306B\u3054\u3068","\u306A\u306B\u3082\u306E","\u306A\u306B\u308F","\u306A\u306E\u304B","\u306A\u3075\u3060","\u306A\u307E\u3044\u304D","\u306A\u307E\u3048","\u306A\u307E\u307F","\u306A\u307F\u3060","\u306A\u3081\u3089\u304B","\u306A\u3081\u308B","\u306A\u3084\u3080","\u306A\u3089\u3046","\u306A\u3089\u3073","\u306A\u3089\u3076","\u306A\u308C\u308B","\u306A\u308F\u3068\u3073","\u306A\u308F\u3070\u308A","\u306B\u3042\u3046","\u306B\u3044\u304C\u305F","\u306B\u3046\u3051","\u306B\u304A\u3044","\u306B\u304B\u3044","\u306B\u304C\u3066","\u306B\u304D\u3073","\u306B\u304F\u3057\u307F","\u306B\u304F\u307E\u3093","\u306B\u3052\u308B","\u306B\u3055\u3093\u304B\u305F\u3093\u305D","\u306B\u3057\u304D","\u306B\u305B\u3082\u306E","\u306B\u3061\u3058\u3087\u3046","\u306B\u3061\u3088\u3046\u3073","\u306B\u3063\u304B","\u306B\u3063\u304D","\u306B\u3063\u3051\u3044","\u306B\u3063\u3053\u3046","\u306B\u3063\u3055\u3093","\u306B\u3063\u3057\u3087\u304F","\u306B\u3063\u3059\u3046","\u306B\u3063\u305B\u304D","\u306B\u3063\u3066\u3044","\u306B\u306A\u3046","\u306B\u307B\u3093","\u306B\u307E\u3081","\u306B\u3082\u3064","\u306B\u3084\u308A","\u306B\u3085\u3046\u3044\u3093","\u306B\u308A\u3093\u3057\u3083","\u306B\u308F\u3068\u308A","\u306B\u3093\u3044","\u306B\u3093\u304B","\u306B\u3093\u304D","\u306B\u3093\u3052\u3093","\u306B\u3093\u3057\u304D","\u306B\u3093\u305A\u3046","\u306B\u3093\u305D\u3046","\u306B\u3093\u305F\u3044","\u306B\u3093\u3061","\u306B\u3093\u3066\u3044","\u306B\u3093\u306B\u304F","\u306B\u3093\u3077","\u306B\u3093\u307E\u308A","\u306B\u3093\u3080","\u306B\u3093\u3081\u3044","\u306B\u3093\u3088\u3046","\u306C\u3044\u304F\u304E","\u306C\u304B\u3059","\u306C\u3050\u3044\u3068\u308B","\u306C\u3050\u3046","\u306C\u304F\u3082\u308A","\u306C\u3059\u3080","\u306C\u307E\u3048\u3073","\u306C\u3081\u308A","\u306C\u3089\u3059","\u306C\u3093\u3061\u3083\u304F","\u306D\u3042\u3052","\u306D\u3044\u304D","\u306D\u3044\u308B","\u306D\u3044\u308D","\u306D\u3050\u305B","\u306D\u304F\u305F\u3044","\u306D\u304F\u3089","\u306D\u3053\u305C","\u306D\u3053\u3080","\u306D\u3055\u3052","\u306D\u3059\u3054\u3059","\u306D\u305D\u3079\u308B","\u306D\u3060\u3093","\u306D\u3064\u3044","\u306D\u3063\u3057\u3093","\u306D\u3064\u305E\u3046","\u306D\u3063\u305F\u3044\u304E\u3087","\u306D\u3076\u305D\u304F","\u306D\u3075\u3060","\u306D\u307C\u3046","\u306D\u307B\u308A\u306F\u307B\u308A","\u306D\u307E\u304D","\u306D\u307E\u308F\u3057","\u306D\u307F\u307F","\u306D\u3080\u3044","\u306D\u3080\u305F\u3044","\u306D\u3082\u3068","\u306D\u3089\u3046","\u306D\u308F\u3056","\u306D\u3093\u3044\u308A","\u306D\u3093\u304A\u3057","\u306D\u3093\u304B\u3093","\u306D\u3093\u304D\u3093","\u306D\u3093\u3050","\u306D\u3093\u3056","\u306D\u3093\u3057","\u306D\u3093\u3061\u3083\u304F","\u306D\u3093\u3069","\u306D\u3093\u3074","\u306D\u3093\u3076\u3064","\u306D\u3093\u307E\u3064","\u306D\u3093\u308A\u3087\u3046","\u306D\u3093\u308C\u3044","\u306E\u3044\u305A","\u306E\u304A\u3065\u307E","\u306E\u304C\u3059","\u306E\u304D\u306A\u307F","\u306E\u3053\u304E\u308A","\u306E\u3053\u3059","\u306E\u3053\u308B","\u306E\u305B\u308B","\u306E\u305E\u304F","\u306E\u305E\u3080","\u306E\u305F\u307E\u3046","\u306E\u3061\u307B\u3069","\u306E\u3063\u304F","\u306E\u3070\u3059","\u306E\u306F\u3089","\u306E\u3079\u308B","\u306E\u307C\u308B","\u306E\u307F\u3082\u306E","\u306E\u3084\u307E","\u306E\u3089\u3044\u306C","\u306E\u3089\u306D\u3053","\u306E\u308A\u3082\u306E","\u306E\u308A\u3086\u304D","\u306E\u308C\u3093","\u306E\u3093\u304D","\u3070\u3042\u3044","\u306F\u3042\u304F","\u3070\u3042\u3055\u3093","\u3070\u3044\u304B","\u3070\u3044\u304F","\u306F\u3044\u3051\u3093","\u306F\u3044\u3054","\u306F\u3044\u3057\u3093","\u306F\u3044\u3059\u3044","\u306F\u3044\u305B\u3093","\u306F\u3044\u305D\u3046","\u306F\u3044\u3061","\u3070\u3044\u3070\u3044","\u306F\u3044\u308C\u3064","\u306F\u3048\u308B","\u306F\u304A\u308B","\u306F\u304B\u3044","\u3070\u304B\u308A","\u306F\u304B\u308B","\u306F\u304F\u3057\u3085","\u306F\u3051\u3093","\u306F\u3053\u3076","\u306F\u3055\u307F","\u306F\u3055\u3093","\u306F\u3057\u3054","\u3070\u3057\u3087","\u306F\u3057\u308B","\u306F\u305B\u308B","\u3071\u305D\u3053\u3093","\u306F\u305D\u3093","\u306F\u305F\u3093","\u306F\u3061\u307F\u3064","\u306F\u3064\u304A\u3093","\u306F\u3063\u304B\u304F","\u306F\u3065\u304D","\u306F\u3063\u304D\u308A","\u306F\u3063\u304F\u3064","\u306F\u3063\u3051\u3093","\u306F\u3063\u3053\u3046","\u306F\u3063\u3055\u3093","\u306F\u3063\u3057\u3093","\u306F\u3063\u305F\u3064","\u306F\u3063\u3061\u3085\u3046","\u306F\u3063\u3066\u3093","\u306F\u3063\u3074\u3087\u3046","\u306F\u3063\u307D\u3046","\u306F\u306A\u3059","\u306F\u306A\u3073","\u306F\u306B\u304B\u3080","\u306F\u3076\u3089\u3057","\u306F\u307F\u304C\u304D","\u306F\u3080\u304B\u3046","\u306F\u3081\u3064","\u306F\u3084\u3044","\u306F\u3084\u3057","\u306F\u3089\u3046","\u306F\u308D\u3046\u3043\u3093","\u306F\u308F\u3044","\u306F\u3093\u3044","\u306F\u3093\u3048\u3044","\u306F\u3093\u304A\u3093","\u306F\u3093\u304B\u304F","\u306F\u3093\u304D\u3087\u3046","\u3070\u3093\u3050\u307F","\u306F\u3093\u3053","\u306F\u3093\u3057\u3083","\u306F\u3093\u3059\u3046","\u306F\u3093\u3060\u3093","\u3071\u3093\u3061","\u3071\u3093\u3064","\u306F\u3093\u3066\u3044","\u306F\u3093\u3068\u3057","\u306F\u3093\u306E\u3046","\u306F\u3093\u3071","\u306F\u3093\u3076\u3093","\u306F\u3093\u307A\u3093","\u306F\u3093\u307C\u3046\u304D","\u306F\u3093\u3081\u3044","\u306F\u3093\u3089\u3093","\u306F\u3093\u308D\u3093","\u3072\u3044\u304D","\u3072\u3046\u3093","\u3072\u3048\u308B","\u3072\u304B\u304F","\u3072\u304B\u308A","\u3072\u304B\u308B","\u3072\u304B\u3093","\u3072\u304F\u3044","\u3072\u3051\u3064","\u3072\u3053\u3046\u304D","\u3072\u3053\u304F","\u3072\u3055\u3044","\u3072\u3055\u3057\u3076\u308A","\u3072\u3055\u3093","\u3073\u3058\u3085\u3064\u304B\u3093","\u3072\u3057\u3087","\u3072\u305D\u304B","\u3072\u305D\u3080","\u3072\u305F\u3080\u304D","\u3072\u3060\u308A","\u3072\u305F\u308B","\u3072\u3064\u304E","\u3072\u3063\u3053\u3057","\u3072\u3063\u3057","\u3072\u3064\u3058\u3085\u3072\u3093","\u3072\u3063\u3059","\u3072\u3064\u305C\u3093","\u3074\u3063\u305F\u308A","\u3074\u3063\u3061\u308A","\u3072\u3064\u3088\u3046","\u3072\u3066\u3044","\u3072\u3068\u3054\u307F","\u3072\u306A\u307E\u3064\u308A","\u3072\u306A\u3093","\u3072\u306D\u308B","\u3072\u306F\u3093","\u3072\u3073\u304F","\u3072\u3072\u3087\u3046","\u3072\u307B\u3046","\u3072\u307E\u308F\u308A","\u3072\u307E\u3093","\u3072\u307F\u3064","\u3072\u3081\u3044","\u3072\u3081\u3058\u3057","\u3072\u3084\u3051","\u3072\u3084\u3059","\u3072\u3088\u3046","\u3073\u3087\u3046\u304D","\u3072\u3089\u304C\u306A","\u3072\u3089\u304F","\u3072\u308A\u3064","\u3072\u308A\u3087\u3046","\u3072\u308B\u307E","\u3072\u308B\u3084\u3059\u307F","\u3072\u308C\u3044","\u3072\u308D\u3044","\u3072\u308D\u3046","\u3072\u308D\u304D","\u3072\u308D\u3086\u304D","\u3072\u3093\u304B\u304F","\u3072\u3093\u3051\u3064","\u3072\u3093\u3053\u3093","\u3072\u3093\u3057\u3085","\u3072\u3093\u305D\u3046","\u3074\u3093\u3061","\u3072\u3093\u3071\u3093","\u3073\u3093\u307C\u3046","\u3075\u3042\u3093","\u3075\u3044\u3046\u3061","\u3075\u3046\u3051\u3044","\u3075\u3046\u305B\u3093","\u3077\u3046\u305F\u308D\u3046","\u3075\u3046\u3068\u3046","\u3075\u3046\u3075","\u3075\u3048\u308B","\u3075\u304A\u3093","\u3075\u304B\u3044","\u3075\u304D\u3093","\u3075\u304F\u3056\u3064","\u3075\u304F\u3076\u304F\u308D","\u3075\u3053\u3046","\u3075\u3055\u3044","\u3075\u3057\u304E","\u3075\u3058\u307F","\u3075\u3059\u307E","\u3075\u305B\u3044","\u3075\u305B\u3050","\u3075\u305D\u304F","\u3076\u305F\u306B\u304F","\u3075\u305F\u3093","\u3075\u3061\u3087\u3046","\u3075\u3064\u3046","\u3075\u3064\u304B","\u3075\u3063\u304B\u3064","\u3075\u3063\u304D","\u3075\u3063\u3053\u304F","\u3076\u3069\u3046","\u3075\u3068\u308B","\u3075\u3068\u3093","\u3075\u306E\u3046","\u3075\u306F\u3044","\u3075\u3072\u3087\u3046","\u3075\u3078\u3093","\u3075\u307E\u3093","\u3075\u307F\u3093","\u3075\u3081\u3064","\u3075\u3081\u3093","\u3075\u3088\u3046","\u3075\u308A\u3053","\u3075\u308A\u308B","\u3075\u308B\u3044","\u3075\u3093\u3044\u304D","\u3076\u3093\u304C\u304F","\u3076\u3093\u3050","\u3075\u3093\u3057\u3064","\u3076\u3093\u305B\u304D","\u3075\u3093\u305D\u3046","\u3076\u3093\u307D\u3046","\u3078\u3044\u3042\u3093","\u3078\u3044\u304A\u3093","\u3078\u3044\u304C\u3044","\u3078\u3044\u304D","\u3078\u3044\u3052\u3093","\u3078\u3044\u3053\u3046","\u3078\u3044\u3055","\u3078\u3044\u3057\u3083","\u3078\u3044\u305B\u3064","\u3078\u3044\u305D","\u3078\u3044\u305F\u304F","\u3078\u3044\u3066\u3093","\u3078\u3044\u306D\u3064","\u3078\u3044\u308F","\u3078\u304D\u304C","\u3078\u3053\u3080","\u3079\u306B\u3044\u308D","\u3079\u306B\u3057\u3087\u3046\u304C","\u3078\u3089\u3059","\u3078\u3093\u304B\u3093","\u3079\u3093\u304D\u3087\u3046","\u3079\u3093\u3054\u3057","\u3078\u3093\u3055\u3044","\u3078\u3093\u305F\u3044","\u3079\u3093\u308A","\u307B\u3042\u3093","\u307B\u3044\u304F","\u307C\u3046\u304E\u3087","\u307B\u3046\u3053\u304F","\u307B\u3046\u305D\u3046","\u307B\u3046\u307B\u3046","\u307B\u3046\u3082\u3093","\u307B\u3046\u308A\u3064","\u307B\u3048\u308B","\u307B\u304A\u3093","\u307B\u304B\u3093","\u307B\u304D\u3087\u3046","\u307C\u304D\u3093","\u307B\u304F\u308D","\u307B\u3051\u3064","\u307B\u3051\u3093","\u307B\u3053\u3046","\u307B\u3053\u308B","\u307B\u3057\u3044","\u307B\u3057\u3064","\u307B\u3057\u3085","\u307B\u3057\u3087\u3046","\u307B\u305B\u3044","\u307B\u305D\u3044","\u307B\u305D\u304F","\u307B\u305F\u3066","\u307B\u305F\u308B","\u307D\u3061\u3076\u304F\u308D","\u307B\u3063\u304D\u3087\u304F","\u307B\u3063\u3055","\u307B\u3063\u305F\u3093","\u307B\u3068\u3093\u3069","\u307B\u3081\u308B","\u307B\u3093\u3044","\u307B\u3093\u304D","\u307B\u3093\u3051","\u307B\u3093\u3057\u3064","\u307B\u3093\u3084\u304F","\u307E\u3044\u306B\u3061","\u307E\u304B\u3044","\u307E\u304B\u305B\u308B","\u307E\u304C\u308B","\u307E\u3051\u308B","\u307E\u3053\u3068","\u307E\u3055\u3064","\u307E\u3058\u3081","\u307E\u3059\u304F","\u307E\u305C\u308B","\u307E\u3064\u308A","\u307E\u3068\u3081","\u307E\u306A\u3076","\u307E\u306C\u3051","\u307E\u306D\u304F","\u307E\u307B\u3046","\u307E\u3082\u308B","\u307E\u3086\u3052","\u307E\u3088\u3046","\u307E\u308D\u3084\u304B","\u307E\u308F\u3059","\u307E\u308F\u308A","\u307E\u308F\u308B","\u307E\u3093\u304C","\u307E\u3093\u304D\u3064","\u307E\u3093\u305E\u304F","\u307E\u3093\u306A\u304B","\u307F\u3044\u3089","\u307F\u3046\u3061","\u307F\u3048\u308B","\u307F\u304C\u304F","\u307F\u304B\u305F","\u307F\u304B\u3093","\u307F\u3051\u3093","\u307F\u3053\u3093","\u307F\u3058\u304B\u3044","\u307F\u3059\u3044","\u307F\u3059\u3048\u308B","\u307F\u305B\u308B","\u307F\u3063\u304B","\u307F\u3064\u304B\u308B","\u307F\u3064\u3051\u308B","\u307F\u3066\u3044","\u307F\u3068\u3081\u308B","\u307F\u306A\u3068","\u307F\u306A\u307F\u304B\u3055\u3044","\u307F\u306D\u3089\u308B","\u307F\u306E\u3046","\u307F\u306E\u304C\u3059","\u307F\u307B\u3093","\u307F\u3082\u3068","\u307F\u3084\u3052","\u307F\u3089\u3044","\u307F\u308A\u3087\u304F","\u307F\u308F\u304F","\u307F\u3093\u304B","\u307F\u3093\u305E\u304F","\u3080\u3044\u304B","\u3080\u3048\u304D","\u3080\u3048\u3093","\u3080\u304B\u3044","\u3080\u304B\u3046","\u3080\u304B\u3048","\u3080\u304B\u3057","\u3080\u304E\u3061\u3083","\u3080\u3051\u308B","\u3080\u3052\u3093","\u3080\u3055\u307C\u308B","\u3080\u3057\u3042\u3064\u3044","\u3080\u3057\u3070","\u3080\u3058\u3085\u3093","\u3080\u3057\u308D","\u3080\u3059\u3046","\u3080\u3059\u3053","\u3080\u3059\u3076","\u3080\u3059\u3081","\u3080\u305B\u308B","\u3080\u305B\u3093","\u3080\u3061\u3085\u3046","\u3080\u306A\u3057\u3044","\u3080\u306E\u3046","\u3080\u3084\u307F","\u3080\u3088\u3046","\u3080\u3089\u3055\u304D","\u3080\u308A\u3087\u3046","\u3080\u308D\u3093","\u3081\u3044\u3042\u3093","\u3081\u3044\u3046\u3093","\u3081\u3044\u3048\u3093","\u3081\u3044\u304B\u304F","\u3081\u3044\u304D\u3087\u304F","\u3081\u3044\u3055\u3044","\u3081\u3044\u3057","\u3081\u3044\u305D\u3046","\u3081\u3044\u3076\u3064","\u3081\u3044\u308C\u3044","\u3081\u3044\u308F\u304F","\u3081\u3050\u307E\u308C\u308B","\u3081\u3056\u3059","\u3081\u3057\u305F","\u3081\u305A\u3089\u3057\u3044","\u3081\u3060\u3064","\u3081\u307E\u3044","\u3081\u3084\u3059","\u3081\u3093\u304D\u3087","\u3081\u3093\u305B\u304D","\u3081\u3093\u3069\u3046","\u3082\u3046\u3057\u3042\u3052\u308B","\u3082\u3046\u3069\u3046\u3051\u3093","\u3082\u3048\u308B","\u3082\u304F\u3057","\u3082\u304F\u3066\u304D","\u3082\u304F\u3088\u3046\u3073","\u3082\u3061\u308D\u3093","\u3082\u3069\u308B","\u3082\u3089\u3046","\u3082\u3093\u304F","\u3082\u3093\u3060\u3044","\u3084\u304A\u3084","\u3084\u3051\u308B","\u3084\u3055\u3044","\u3084\u3055\u3057\u3044","\u3084\u3059\u3044","\u3084\u3059\u305F\u308D\u3046","\u3084\u3059\u307F","\u3084\u305B\u308B","\u3084\u305D\u3046","\u3084\u305F\u3044","\u3084\u3061\u3093","\u3084\u3063\u3068","\u3084\u3063\u3071\u308A","\u3084\u3076\u308B","\u3084\u3081\u308B","\u3084\u3084\u3053\u3057\u3044","\u3084\u3088\u3044","\u3084\u308F\u3089\u304B\u3044","\u3086\u3046\u304D","\u3086\u3046\u3073\u3093\u304D\u3087\u304F","\u3086\u3046\u3079","\u3086\u3046\u3081\u3044","\u3086\u3051\u3064","\u3086\u3057\u3085\u3064","\u3086\u305B\u3093","\u3086\u305D\u3046","\u3086\u305F\u304B","\u3086\u3061\u3083\u304F","\u3086\u3067\u308B","\u3086\u306B\u3085\u3046","\u3086\u3073\u308F","\u3086\u3089\u3044","\u3086\u308C\u308B","\u3088\u3046\u3044","\u3088\u3046\u304B","\u3088\u3046\u304D\u3085\u3046","\u3088\u3046\u3058","\u3088\u3046\u3059","\u3088\u3046\u3061\u3048\u3093","\u3088\u304B\u305C","\u3088\u304B\u3093","\u3088\u304D\u3093","\u3088\u304F\u305B\u3044","\u3088\u304F\u307C\u3046","\u3088\u3051\u3044","\u3088\u3054\u308C\u308B","\u3088\u3055\u3093","\u3088\u3057\u3085\u3046","\u3088\u305D\u3046","\u3088\u305D\u304F","\u3088\u3063\u304B","\u3088\u3066\u3044","\u3088\u3069\u304C\u308F\u304F","\u3088\u306D\u3064","\u3088\u3084\u304F","\u3088\u3086\u3046","\u3088\u308D\u3053\u3076","\u3088\u308D\u3057\u3044","\u3089\u3044\u3046","\u3089\u304F\u304C\u304D","\u3089\u304F\u3054","\u3089\u304F\u3055\u3064","\u3089\u304F\u3060","\u3089\u3057\u3093\u3070\u3093","\u3089\u305B\u3093","\u3089\u305E\u304F","\u3089\u305F\u3044","\u3089\u3063\u304B","\u3089\u308C\u3064","\u308A\u3048\u304D","\u308A\u304B\u3044","\u308A\u304D\u3055\u304F","\u308A\u304D\u305B\u3064","\u308A\u304F\u3050\u3093","\u308A\u304F\u3064","\u308A\u3051\u3093","\u308A\u3053\u3046","\u308A\u305B\u3044","\u308A\u305D\u3046","\u308A\u305D\u304F","\u308A\u3066\u3093","\u308A\u306D\u3093","\u308A\u3086\u3046","\u308A\u3085\u3046\u304C\u304F","\u308A\u3088\u3046","\u308A\u3087\u3046\u308A","\u308A\u3087\u304B\u3093","\u308A\u3087\u304F\u3061\u3083","\u308A\u3087\u3053\u3046","\u308A\u308A\u304F","\u308A\u308C\u304D","\u308A\u308D\u3093","\u308A\u3093\u3054","\u308B\u3044\u3051\u3044","\u308B\u3044\u3055\u3044","\u308B\u3044\u3058","\u308B\u3044\u305B\u304D","\u308B\u3059\u3070\u3093","\u308B\u308A\u304C\u308F\u3089","\u308C\u3044\u304B\u3093","\u308C\u3044\u304E","\u308C\u3044\u305B\u3044","\u308C\u3044\u305E\u3046\u3053","\u308C\u3044\u3068\u3046","\u308C\u3044\u307C\u3046","\u308C\u304D\u3057","\u308C\u304D\u3060\u3044","\u308C\u3093\u3042\u3044","\u308C\u3093\u3051\u3044","\u308C\u3093\u3053\u3093","\u308C\u3093\u3055\u3044","\u308C\u3093\u3057\u3085\u3046","\u308C\u3093\u305E\u304F","\u308C\u3093\u3089\u304F","\u308D\u3046\u304B","\u308D\u3046\u3054","\u308D\u3046\u3058\u3093","\u308D\u3046\u305D\u304F","\u308D\u304F\u304C","\u308D\u3053\u3064","\u308D\u3058\u3046\u3089","\u308D\u3057\u3085\u3064","\u308D\u305B\u3093","\u308D\u3066\u3093","\u308D\u3081\u3093","\u308D\u308C\u3064","\u308D\u3093\u304E","\u308D\u3093\u3071","\u308D\u3093\u3076\u3093","\u308D\u3093\u308A","\u308F\u304B\u3059","\u308F\u304B\u3081","\u308F\u304B\u3084\u307E","\u308F\u304B\u308C\u308B","\u308F\u3057\u3064","\u308F\u3058\u307E\u3057","\u308F\u3059\u308C\u3082\u306E","\u308F\u3089\u3046","\u308F\u308C\u308B"];h.space="\u3000";const D=["a\u0301baco","abdomen","abeja","abierto","abogado","abono","aborto","abrazo","abrir","abuelo","abuso","acabar","academia","acceso","accio\u0301n","aceite","acelga","acento","aceptar","a\u0301cido","aclarar","acne\u0301","acoger","acoso","activo","acto","actriz","actuar","acudir","acuerdo","acusar","adicto","admitir","adoptar","adorno","aduana","adulto","ae\u0301reo","afectar","aficio\u0301n","afinar","afirmar","a\u0301gil","agitar","agoni\u0301a","agosto","agotar","agregar","agrio","agua","agudo","a\u0301guila","aguja","ahogo","ahorro","aire","aislar","ajedrez","ajeno","ajuste","alacra\u0301n","alambre","alarma","alba","a\u0301lbum","alcalde","aldea","alegre","alejar","alerta","aleta","alfiler","alga","algodo\u0301n","aliado","aliento","alivio","alma","almeja","almi\u0301bar","altar","alteza","altivo","alto","altura","alumno","alzar","amable","amante","amapola","amargo","amasar","a\u0301mbar","a\u0301mbito","ameno","amigo","amistad","amor","amparo","amplio","ancho","anciano","ancla","andar","ande\u0301n","anemia","a\u0301ngulo","anillo","a\u0301nimo","ani\u0301s","anotar","antena","antiguo","antojo","anual","anular","anuncio","an\u0303adir","an\u0303ejo","an\u0303o","apagar","aparato","apetito","apio","aplicar","apodo","aporte","apoyo","aprender","aprobar","apuesta","apuro","arado","aran\u0303a","arar","a\u0301rbitro","a\u0301rbol","arbusto","archivo","arco","arder","ardilla","arduo","a\u0301rea","a\u0301rido","aries","armoni\u0301a","arne\u0301s","aroma","arpa","arpo\u0301n","arreglo","arroz","arruga","arte","artista","asa","asado","asalto","ascenso","asegurar","aseo","asesor","asiento","asilo","asistir","asno","asombro","a\u0301spero","astilla","astro","astuto","asumir","asunto","atajo","ataque","atar","atento","ateo","a\u0301tico","atleta","a\u0301tomo","atraer","atroz","atu\u0301n","audaz","audio","auge","aula","aumento","ausente","autor","aval","avance","avaro","ave","avellana","avena","avestruz","avio\u0301n","aviso","ayer","ayuda","ayuno","azafra\u0301n","azar","azote","azu\u0301car","azufre","azul","baba","babor","bache","bahi\u0301a","baile","bajar","balanza","balco\u0301n","balde","bambu\u0301","banco","banda","ban\u0303o","barba","barco","barniz","barro","ba\u0301scula","basto\u0301n","basura","batalla","bateri\u0301a","batir","batuta","bau\u0301l","bazar","bebe\u0301","bebida","bello","besar","beso","bestia","bicho","bien","bingo","blanco","bloque","blusa","boa","bobina","bobo","boca","bocina","boda","bodega","boina","bola","bolero","bolsa","bomba","bondad","bonito","bono","bonsa\u0301i","borde","borrar","bosque","bote","boti\u0301n","bo\u0301veda","bozal","bravo","brazo","brecha","breve","brillo","brinco","brisa","broca","broma","bronce","brote","bruja","brusco","bruto","buceo","bucle","bueno","buey","bufanda","bufo\u0301n","bu\u0301ho","buitre","bulto","burbuja","burla","burro","buscar","butaca","buzo\u0301n","caballo","cabeza","cabina","cabra","cacao","cada\u0301ver","cadena","caer","cafe\u0301","cai\u0301da","caima\u0301n","caja","cajo\u0301n","cal","calamar","calcio","caldo","calidad","calle","calma","calor","calvo","cama","cambio","camello","camino","campo","ca\u0301ncer","candil","canela","canguro","canica","canto","can\u0303a","can\u0303o\u0301n","caoba","caos","capaz","capita\u0301n","capote","captar","capucha","cara","carbo\u0301n","ca\u0301rcel","careta","carga","carin\u0303o","carne","carpeta","carro","carta","casa","casco","casero","caspa","castor","catorce","catre","caudal","causa","cazo","cebolla","ceder","cedro","celda","ce\u0301lebre","celoso","ce\u0301lula","cemento","ceniza","centro","cerca","cerdo","cereza","cero","cerrar","certeza","ce\u0301sped","cetro","chacal","chaleco","champu\u0301","chancla","chapa","charla","chico","chiste","chivo","choque","choza","chuleta","chupar","ciclo\u0301n","ciego","cielo","cien","cierto","cifra","cigarro","cima","cinco","cine","cinta","cipre\u0301s","circo","ciruela","cisne","cita","ciudad","clamor","clan","claro","clase","clave","cliente","clima","cli\u0301nica","cobre","coccio\u0301n","cochino","cocina","coco","co\u0301digo","codo","cofre","coger","cohete","coji\u0301n","cojo","cola","colcha","colegio","colgar","colina","collar","colmo","columna","combate","comer","comida","co\u0301modo","compra","conde","conejo","conga","conocer","consejo","contar","copa","copia","corazo\u0301n","corbata","corcho","cordo\u0301n","corona","correr","coser","cosmos","costa","cra\u0301neo","cra\u0301ter","crear","crecer","crei\u0301do","crema","cri\u0301a","crimen","cripta","crisis","cromo","cro\u0301nica","croqueta","crudo","cruz","cuadro","cuarto","cuatro","cubo","cubrir","cuchara","cuello","cuento","cuerda","cuesta","cueva","cuidar","culebra","culpa","culto","cumbre","cumplir","cuna","cuneta","cuota","cupo\u0301n","cu\u0301pula","curar","curioso","curso","curva","cutis","dama","danza","dar","dardo","da\u0301til","deber","de\u0301bil","de\u0301cada","decir","dedo","defensa","definir","dejar","delfi\u0301n","delgado","delito","demora","denso","dental","deporte","derecho","derrota","desayuno","deseo","desfile","desnudo","destino","desvi\u0301o","detalle","detener","deuda","di\u0301a","diablo","diadema","diamante","diana","diario","dibujo","dictar","diente","dieta","diez","difi\u0301cil","digno","dilema","diluir","dinero","directo","dirigir","disco","disen\u0303o","disfraz","diva","divino","doble","doce","dolor","domingo","don","donar","dorado","dormir","dorso","dos","dosis","drago\u0301n","droga","ducha","duda","duelo","duen\u0303o","dulce","du\u0301o","duque","durar","dureza","duro","e\u0301bano","ebrio","echar","eco","ecuador","edad","edicio\u0301n","edificio","editor","educar","efecto","eficaz","eje","ejemplo","elefante","elegir","elemento","elevar","elipse","e\u0301lite","elixir","elogio","eludir","embudo","emitir","emocio\u0301n","empate","empen\u0303o","empleo","empresa","enano","encargo","enchufe","enci\u0301a","enemigo","enero","enfado","enfermo","engan\u0303o","enigma","enlace","enorme","enredo","ensayo","ensen\u0303ar","entero","entrar","envase","envi\u0301o","e\u0301poca","equipo","erizo","escala","escena","escolar","escribir","escudo","esencia","esfera","esfuerzo","espada","espejo","espi\u0301a","esposa","espuma","esqui\u0301","estar","este","estilo","estufa","etapa","eterno","e\u0301tica","etnia","evadir","evaluar","evento","evitar","exacto","examen","exceso","excusa","exento","exigir","exilio","existir","e\u0301xito","experto","explicar","exponer","extremo","fa\u0301brica","fa\u0301bula","fachada","fa\u0301cil","factor","faena","faja","falda","fallo","falso","faltar","fama","familia","famoso","farao\u0301n","farmacia","farol","farsa","fase","fatiga","fauna","favor","fax","febrero","fecha","feliz","feo","feria","feroz","fe\u0301rtil","fervor","festi\u0301n","fiable","fianza","fiar","fibra","ficcio\u0301n","ficha","fideo","fiebre","fiel","fiera","fiesta","figura","fijar","fijo","fila","filete","filial","filtro","fin","finca","fingir","finito","firma","flaco","flauta","flecha","flor","flota","fluir","flujo","flu\u0301or","fobia","foca","fogata","fogo\u0301n","folio","folleto","fondo","forma","forro","fortuna","forzar","fosa","foto","fracaso","fra\u0301gil","franja","frase","fraude","frei\u0301r","freno","fresa","fri\u0301o","frito","fruta","fuego","fuente","fuerza","fuga","fumar","funcio\u0301n","funda","furgo\u0301n","furia","fusil","fu\u0301tbol","futuro","gacela","gafas","gaita","gajo","gala","galeri\u0301a","gallo","gamba","ganar","gancho","ganga","ganso","garaje","garza","gasolina","gastar","gato","gavila\u0301n","gemelo","gemir","gen","ge\u0301nero","genio","gente","geranio","gerente","germen","gesto","gigante","gimnasio","girar","giro","glaciar","globo","gloria","gol","golfo","goloso","golpe","goma","gordo","gorila","gorra","gota","goteo","gozar","grada","gra\u0301fico","grano","grasa","gratis","grave","grieta","grillo","gripe","gris","grito","grosor","gru\u0301a","grueso","grumo","grupo","guante","guapo","guardia","guerra","gui\u0301a","guin\u0303o","guion","guiso","guitarra","gusano","gustar","haber","ha\u0301bil","hablar","hacer","hacha","hada","hallar","hamaca","harina","haz","hazan\u0303a","hebilla","hebra","hecho","helado","helio","hembra","herir","hermano","he\u0301roe","hervir","hielo","hierro","hi\u0301gado","higiene","hijo","himno","historia","hocico","hogar","hoguera","hoja","hombre","hongo","honor","honra","hora","hormiga","horno","hostil","hoyo","hueco","huelga","huerta","hueso","huevo","huida","huir","humano","hu\u0301medo","humilde","humo","hundir","huraca\u0301n","hurto","icono","ideal","idioma","i\u0301dolo","iglesia","iglu\u0301","igual","ilegal","ilusio\u0301n","imagen","ima\u0301n","imitar","impar","imperio","imponer","impulso","incapaz","i\u0301ndice","inerte","infiel","informe","ingenio","inicio","inmenso","inmune","innato","insecto","instante","intere\u0301s","i\u0301ntimo","intuir","inu\u0301til","invierno","ira","iris","ironi\u0301a","isla","islote","jabali\u0301","jabo\u0301n","jamo\u0301n","jarabe","jardi\u0301n","jarra","jaula","jazmi\u0301n","jefe","jeringa","jinete","jornada","joroba","joven","joya","juerga","jueves","juez","jugador","jugo","juguete","juicio","junco","jungla","junio","juntar","ju\u0301piter","jurar","justo","juvenil","juzgar","kilo","koala","labio","lacio","lacra","lado","ladro\u0301n","lagarto","la\u0301grima","laguna","laico","lamer","la\u0301mina","la\u0301mpara","lana","lancha","langosta","lanza","la\u0301piz","largo","larva","la\u0301stima","lata","la\u0301tex","latir","laurel","lavar","lazo","leal","leccio\u0301n","leche","lector","leer","legio\u0301n","legumbre","lejano","lengua","lento","len\u0303a","leo\u0301n","leopardo","lesio\u0301n","letal","letra","leve","leyenda","libertad","libro","licor","li\u0301der","lidiar","lienzo","liga","ligero","lima","li\u0301mite","limo\u0301n","limpio","lince","lindo","li\u0301nea","lingote","lino","linterna","li\u0301quido","liso","lista","litera","litio","litro","llaga","llama","llanto","llave","llegar","llenar","llevar","llorar","llover","lluvia","lobo","locio\u0301n","loco","locura","lo\u0301gica","logro","lombriz","lomo","lonja","lote","lucha","lucir","lugar","lujo","luna","lunes","lupa","lustro","luto","luz","maceta","macho","madera","madre","maduro","maestro","mafia","magia","mago","mai\u0301z","maldad","maleta","malla","malo","mama\u0301","mambo","mamut","manco","mando","manejar","manga","maniqui\u0301","manjar","mano","manso","manta","man\u0303ana","mapa","ma\u0301quina","mar","marco","marea","marfil","margen","marido","ma\u0301rmol","marro\u0301n","martes","marzo","masa","ma\u0301scara","masivo","matar","materia","matiz","matriz","ma\u0301ximo","mayor","mazorca","mecha","medalla","medio","me\u0301dula","mejilla","mejor","melena","melo\u0301n","memoria","menor","mensaje","mente","menu\u0301","mercado","merengue","me\u0301rito","mes","meso\u0301n","meta","meter","me\u0301todo","metro","mezcla","miedo","miel","miembro","miga","mil","milagro","militar","millo\u0301n","mimo","mina","minero","mi\u0301nimo","minuto","miope","mirar","misa","miseria","misil","mismo","mitad","mito","mochila","mocio\u0301n","moda","modelo","moho","mojar","molde","moler","molino","momento","momia","monarca","moneda","monja","monto","mon\u0303o","morada","morder","moreno","morir","morro","morsa","mortal","mosca","mostrar","motivo","mover","mo\u0301vil","mozo","mucho","mudar","mueble","muela","muerte","muestra","mugre","mujer","mula","muleta","multa","mundo","mun\u0303eca","mural","muro","mu\u0301sculo","museo","musgo","mu\u0301sica","muslo","na\u0301car","nacio\u0301n","nadar","naipe","naranja","nariz","narrar","nasal","natal","nativo","natural","na\u0301usea","naval","nave","navidad","necio","ne\u0301ctar","negar","negocio","negro","neo\u0301n","nervio","neto","neutro","nevar","nevera","nicho","nido","niebla","nieto","nin\u0303ez","nin\u0303o","ni\u0301tido","nivel","nobleza","noche","no\u0301mina","noria","norma","norte","nota","noticia","novato","novela","novio","nube","nuca","nu\u0301cleo","nudillo","nudo","nuera","nueve","nuez","nulo","nu\u0301mero","nutria","oasis","obeso","obispo","objeto","obra","obrero","observar","obtener","obvio","oca","ocaso","oce\u0301ano","ochenta","ocho","ocio","ocre","octavo","octubre","oculto","ocupar","ocurrir","odiar","odio","odisea","oeste","ofensa","oferta","oficio","ofrecer","ogro","oi\u0301do","oi\u0301r","ojo","ola","oleada","olfato","olivo","olla","olmo","olor","olvido","ombligo","onda","onza","opaco","opcio\u0301n","o\u0301pera","opinar","oponer","optar","o\u0301ptica","opuesto","oracio\u0301n","orador","oral","o\u0301rbita","orca","orden","oreja","o\u0301rgano","orgi\u0301a","orgullo","oriente","origen","orilla","oro","orquesta","oruga","osadi\u0301a","oscuro","osezno","oso","ostra","oton\u0303o","otro","oveja","o\u0301vulo","o\u0301xido","oxi\u0301geno","oyente","ozono","pacto","padre","paella","pa\u0301gina","pago","pai\u0301s","pa\u0301jaro","palabra","palco","paleta","pa\u0301lido","palma","paloma","palpar","pan","panal","pa\u0301nico","pantera","pan\u0303uelo","papa\u0301","papel","papilla","paquete","parar","parcela","pared","parir","paro","pa\u0301rpado","parque","pa\u0301rrafo","parte","pasar","paseo","pasio\u0301n","paso","pasta","pata","patio","patria","pausa","pauta","pavo","payaso","peato\u0301n","pecado","pecera","pecho","pedal","pedir","pegar","peine","pelar","peldan\u0303o","pelea","peligro","pellejo","pelo","peluca","pena","pensar","pen\u0303o\u0301n","peo\u0301n","peor","pepino","pequen\u0303o","pera","percha","perder","pereza","perfil","perico","perla","permiso","perro","persona","pesa","pesca","pe\u0301simo","pestan\u0303a","pe\u0301talo","petro\u0301leo","pez","pezun\u0303a","picar","picho\u0301n","pie","piedra","pierna","pieza","pijama","pilar","piloto","pimienta","pino","pintor","pinza","pin\u0303a","piojo","pipa","pirata","pisar","piscina","piso","pista","pito\u0301n","pizca","placa","plan","plata","playa","plaza","pleito","pleno","plomo","pluma","plural","pobre","poco","poder","podio","poema","poesi\u0301a","poeta","polen","polici\u0301a","pollo","polvo","pomada","pomelo","pomo","pompa","poner","porcio\u0301n","portal","posada","poseer","posible","poste","potencia","potro","pozo","prado","precoz","pregunta","premio","prensa","preso","previo","primo","pri\u0301ncipe","prisio\u0301n","privar","proa","probar","proceso","producto","proeza","profesor","programa","prole","promesa","pronto","propio","pro\u0301ximo","prueba","pu\u0301blico","puchero","pudor","pueblo","puerta","puesto","pulga","pulir","pulmo\u0301n","pulpo","pulso","puma","punto","pun\u0303al","pun\u0303o","pupa","pupila","pure\u0301","quedar","queja","quemar","querer","queso","quieto","qui\u0301mica","quince","quitar","ra\u0301bano","rabia","rabo","racio\u0301n","radical","rai\u0301z","rama","rampa","rancho","rango","rapaz","ra\u0301pido","rapto","rasgo","raspa","rato","rayo","raza","razo\u0301n","reaccio\u0301n","realidad","reban\u0303o","rebote","recaer","receta","rechazo","recoger","recreo","recto","recurso","red","redondo","reducir","reflejo","reforma","refra\u0301n","refugio","regalo","regir","regla","regreso","rehe\u0301n","reino","rei\u0301r","reja","relato","relevo","relieve","relleno","reloj","remar","remedio","remo","rencor","rendir","renta","reparto","repetir","reposo","reptil","res","rescate","resina","respeto","resto","resumen","retiro","retorno","retrato","reunir","reve\u0301s","revista","rey","rezar","rico","riego","rienda","riesgo","rifa","ri\u0301gido","rigor","rinco\u0301n","rin\u0303o\u0301n","ri\u0301o","riqueza","risa","ritmo","rito","rizo","roble","roce","rociar","rodar","rodeo","rodilla","roer","rojizo","rojo","romero","romper","ron","ronco","ronda","ropa","ropero","rosa","rosca","rostro","rotar","rubi\u0301","rubor","rudo","rueda","rugir","ruido","ruina","ruleta","rulo","rumbo","rumor","ruptura","ruta","rutina","sa\u0301bado","saber","sabio","sable","sacar","sagaz","sagrado","sala","saldo","salero","salir","salmo\u0301n","salo\u0301n","salsa","salto","salud","salvar","samba","sancio\u0301n","sandi\u0301a","sanear","sangre","sanidad","sano","santo","sapo","saque","sardina","sarte\u0301n","sastre","sata\u0301n","sauna","saxofo\u0301n","seccio\u0301n","seco","secreto","secta","sed","seguir","seis","sello","selva","semana","semilla","senda","sensor","sen\u0303al","sen\u0303or","separar","sepia","sequi\u0301a","ser","serie","sermo\u0301n","servir","sesenta","sesio\u0301n","seta","setenta","severo","sexo","sexto","sidra","siesta","siete","siglo","signo","si\u0301laba","silbar","silencio","silla","si\u0301mbolo","simio","sirena","sistema","sitio","situar","sobre","socio","sodio","sol","solapa","soldado","soledad","so\u0301lido","soltar","solucio\u0301n","sombra","sondeo","sonido","sonoro","sonrisa","sopa","soplar","soporte","sordo","sorpresa","sorteo","soste\u0301n","so\u0301tano","suave","subir","suceso","sudor","suegra","suelo","suen\u0303o","suerte","sufrir","sujeto","sulta\u0301n","sumar","superar","suplir","suponer","supremo","sur","surco","suren\u0303o","surgir","susto","sutil","tabaco","tabique","tabla","tabu\u0301","taco","tacto","tajo","talar","talco","talento","talla","talo\u0301n","taman\u0303o","tambor","tango","tanque","tapa","tapete","tapia","tapo\u0301n","taquilla","tarde","tarea","tarifa","tarjeta","tarot","tarro","tarta","tatuaje","tauro","taza","tazo\u0301n","teatro","techo","tecla","te\u0301cnica","tejado","tejer","tejido","tela","tele\u0301fono","tema","temor","templo","tenaz","tender","tener","tenis","tenso","teori\u0301a","terapia","terco","te\u0301rmino","ternura","terror","tesis","tesoro","testigo","tetera","texto","tez","tibio","tiburo\u0301n","tiempo","tienda","tierra","tieso","tigre","tijera","tilde","timbre","ti\u0301mido","timo","tinta","ti\u0301o","ti\u0301pico","tipo","tira","tiro\u0301n","tita\u0301n","ti\u0301tere","ti\u0301tulo","tiza","toalla","tobillo","tocar","tocino","todo","toga","toldo","tomar","tono","tonto","topar","tope","toque","to\u0301rax","torero","tormenta","torneo","toro","torpedo","torre","torso","tortuga","tos","tosco","toser","to\u0301xico","trabajo","tractor","traer","tra\u0301fico","trago","traje","tramo","trance","trato","trauma","trazar","tre\u0301bol","tregua","treinta","tren","trepar","tres","tribu","trigo","tripa","triste","triunfo","trofeo","trompa","tronco","tropa","trote","trozo","truco","trueno","trufa","tuberi\u0301a","tubo","tuerto","tumba","tumor","tu\u0301nel","tu\u0301nica","turbina","turismo","turno","tutor","ubicar","u\u0301lcera","umbral","unidad","unir","universo","uno","untar","un\u0303a","urbano","urbe","urgente","urna","usar","usuario","u\u0301til","utopi\u0301a","uva","vaca","vaci\u0301o","vacuna","vagar","vago","vaina","vajilla","vale","va\u0301lido","valle","valor","va\u0301lvula","vampiro","vara","variar","varo\u0301n","vaso","vecino","vector","vehi\u0301culo","veinte","vejez","vela","velero","veloz","vena","vencer","venda","veneno","vengar","venir","venta","venus","ver","verano","verbo","verde","vereda","verja","verso","verter","vi\u0301a","viaje","vibrar","vicio","vi\u0301ctima","vida","vi\u0301deo","vidrio","viejo","viernes","vigor","vil","villa","vinagre","vino","vin\u0303edo","violi\u0301n","viral","virgo","virtud","visor","vi\u0301spera","vista","vitamina","viudo","vivaz","vivero","vivir","vivo","volca\u0301n","volumen","volver","voraz","votar","voto","voz","vuelo","vulgar","yacer","yate","yegua","yema","yerno","yeso","yodo","yoga","yogur","zafiro","zanja","zapato","zarza","zona","zorro","zumo","zurdo"];D.space=" ";var q=Be(8764).Buffer;class se extends V{static{r(this,"Bip39")}constructor(e,t,n){super({mnemonic:e,seed:t,wordlist:n}),this.Wordlist=s,this.es=D,this.jp=h}setLang(e){switch(e){default:case"en":this.Wordlist=s;break;case"es":this.Wordlist=D;break;case"jp":this.Wordlist=h;break}}toBw(e){if(e||(e=new w),this.mnemonic){const t=q.from(this.mnemonic);e.writeVarIntNum(t.length),e.write(t)}else e.writeVarIntNum(0);return this.seed?(e.writeVarIntNum(this.seed.length),e.write(this.seed)):e.writeVarIntNum(0),e}fromBr(e){const t=e.readVarIntNum();t>0&&(this.mnemonic=e.read(t).toString());const n=e.readVarIntNum();return n>0&&(this.seed=e.read(n)),this}fromRandom(e){if(e||(e=128),e%32!==0)throw new Error("bits must be multiple of 32");if(e<128)throw new Error("bits must be at least 128");const t=ve.getRandomBuffer(e/8);return this.entropy2Mnemonic(t),this.mnemonic2Seed(),this}static fromRandom(e){return new this().fromRandom(e)}async asyncFromRandom(e){e||(e=128);const t=ve.getRandomBuffer(e/8);let n=await i.asyncObjectMethod(this,"entropy2Mnemonic",[t]);const x=new se().fromFastBuffer(n.resbuf);return n=await i.asyncObjectMethod(x,"mnemonic2Seed",[]),this.fromFastBuffer(n.resbuf)}static asyncFromRandom(e){return new this().asyncFromRandom(e)}fromEntropy(e){return this.entropy2Mnemonic(e),this}static fromEntropy(e){return new this().fromEntropy(e)}async asyncFromEntropy(e){const t=await i.asyncObjectMethod(this,"fromEntropy",[e]);return this.fromFastBuffer(t.resbuf)}static asyncFromEntropy(e){return new this().asyncFromEntropy(e)}fromString(e){return this.mnemonic=e.trim(),this}toString(){return this.mnemonic}toSeed(e){return this.mnemonic2Seed(e),this.seed}async asyncToSeed(e){e===void 0&&(e="");const t=[e];return(await i.asyncObjectMethod(this,"toSeed",t)).resbuf}entropy2Mnemonic(e){if(!q.isBuffer(e)||e.length<128/8)throw new Error("Entropy is less than 128 bits. It must be 128 bits or more.");const t=c.sha256(e);let n="";const x=e.length*8;for(let ee=0;ee<e.length;ee++)n=n+("00000000"+e[ee].toString(2)).slice(-8);let T=t[0].toString(2);if(T=("00000000"+T).slice(-8).slice(0,x/32),n=n+T,n.length%11!==0)throw new Error("internal error - entropy not an even multiple of 11 bits - "+n.length);let W="";for(let ee=0;ee<n.length/11;ee++){W!==""&&(W=W+this.Wordlist.space);const pe=parseInt(n.slice(ee*11,(ee+1)*11),2);W=W+this.Wordlist[pe]}return this.mnemonic=W,this}check(){const t=this.mnemonic.split(this.Wordlist.space);let n="";for(let Pe=0;Pe<t.length;Pe++){const ke=this.Wordlist.indexOf(t[Pe]);if(ke<0)return!1;n=n+("00000000000"+ke.toString(2)).slice(-11)}if(n.length%11!==0)throw new Error("internal error - entropy not an even multiple of 11 bits - "+n.length);const x=n.length/33,T=n.slice(-x),W=n.slice(0,n.length-x),ee=q.alloc(W.length/8);for(let Pe=0;Pe<W.length/8;Pe++)ee.writeUInt8(parseInt(n.slice(Pe*8,(Pe+1)*8),2),Pe);let be=c.sha256(ee)[0].toString(2);return be=("00000000"+be).slice(-8).slice(0,x),be===T}mnemonic2Seed(e=""){let t=this.mnemonic;if(!this.check())throw new Error("Mnemonic does not pass the check - was the mnemonic typed incorrectly? Are there extra spaces?");if(typeof e!="string")throw new Error("passphrase must be a string or undefined");t=t.normalize("NFKD"),e=e.normalize("NFKD");const n=q.from(t),x=q.concat([q.from("mnemonic"),q.from(e)]);return this.seed=B.pbkdf2Sync(n,x,2048,64,"sha512"),this}isValid(e=""){let t;try{t=!!this.mnemonic2Seed(e)}catch{t=!1}return t}static isValid(e,t=""){return new se(e).isValid(t)}}class ne extends V{static{r(this,"KeyPair")}constructor(e,t,n=_e){super({privKey:e,pubKey:t}),this.PrivKey=n}fromJSON(e){return e.privKey&&(this.privKey=this.PrivKey.fromJSON(e.privKey)),e.pubKey&&(this.pubKey=K.fromJSON(e.pubKey)),this}fromBr(e){const t=e.readUInt8();t>0&&(this.privKey=new this.PrivKey().fromFastBuffer(e.read(t)));const n=e.readUInt8();return n>0&&(this.pubKey=new K().fromFastBuffer(e.read(n))),this}toBw(e){if(e||(e=new w),this.privKey){const t=this.privKey.toFastBuffer();e.writeUInt8(t.length),e.write(t)}else e.writeUInt8(0);if(this.pubKey){const t=this.pubKey.toFastBuffer();e.writeUInt8(t.length),e.write(t)}else e.writeUInt8(0);return e}fromString(e){return this.fromJSON(JSON.parse(e))}toString(){return JSON.stringify(this.toJSON())}toPublic(){const e=new ne().fromObject(this);return e.privKey=void 0,e}fromPrivKey(e){return this.privKey=e,this.pubKey=new K().fromPrivKey(e),this}static fromPrivKey(e){return new this().fromPrivKey(e)}async asyncFromPrivKey(e){return this.privKey=e,this.pubKey=await new K().asyncFromPrivKey(e),this}static asyncFromPrivKey(e){return new this().asyncFromPrivKey(e)}fromRandom(){return this.privKey=new this.PrivKey().fromRandom(),this.pubKey=new K().fromPrivKey(this.privKey),this}static fromRandom(){return new this().fromRandom()}async asyncFromRandom(){return this.privKey=new this.PrivKey().fromRandom(),this.asyncFromPrivKey(this.privKey)}static asyncFromRandom(){return new this().asyncFromRandom()}}ne.Mainnet=class extends ne{constructor(O,e){super(O,e,_e.Mainnet)}},ne.Testnet=class extends ne{constructor(O,e){super(O,e,_e.Testnet)}};var Ie=Be(8764).Buffer;class Ue extends V{static{r(this,"Ecdsa")}constructor(e,t,n,x,T,W){super({sig:e,keyPair:t,hashBuf:n,k:x,endian:T,verified:W})}toJSON(){return{sig:this.sig?this.sig.toString():void 0,keyPair:this.keyPair?this.keyPair.toBuffer().toString("hex"):void 0,hashBuf:this.hashBuf?this.hashBuf.toString("hex"):void 0,k:this.k?this.k.toString():void 0,endian:this.endian,verified:this.verified}}fromJSON(e){return this.sig=e.sig?new me().fromString(e.sig):void 0,this.keyPair=e.keyPair?new ne().fromBuffer(Ie.from(e.keyPair,"hex")):void 0,this.hashBuf=e.hashBuf?Ie.from(e.hashBuf,"hex"):void 0,this.k=e.k?new l().fromString(e.k):void 0,this.endian=e.endian,this.verified=e.verified,this}toBuffer(){const e=JSON.stringify(this.toJSON());return Ie.from(e)}fromBuffer(e){const t=JSON.parse(e.toString());return this.fromJSON(t)}calcrecovery(){for(let e=0;e<4;e++){let t;this.sig.recovery=e;try{t=this.sig2PubKey()}catch{continue}if(t.point.eq(this.keyPair.pubKey.point)){const n=this.keyPair.pubKey.compressed;return this.sig.compressed=this.keyPair.pubKey.compressed===void 0?!0:n,this}}throw this.sig.recovery=void 0,new Error("Unable to find valid recovery factor")}async asyncCalcrecovery(){const e=await i.asyncObjectMethod(this,"calcrecovery",[]);return this.fromFastBuffer(e.resbuf)}static calcrecovery(e,t,n){return new Ue().fromObject({sig:e,keyPair:new ne().fromObject({pubKey:t}),hashBuf:n}).calcrecovery().sig}static async asyncCalcrecovery(e,t,n){const x=await i.asyncClassMethod(Ue,"calcrecovery",[e,t,n]);return new me().fromFastBuffer(x.resbuf)}fromString(e){const t=JSON.parse(e);return t.hashBuf&&(this.hashBuf=Ie.from(t.hashBuf,"hex")),t.keyPair&&(this.keyPair=new ne().fromString(t.keyPair)),t.sig&&(this.sig=new me().fromString(t.sig)),t.k&&(this.k=new l(t.k,10)),this}randomK(){const e=ce.getN();let t;do t=new l().fromBuffer(ve.getRandomBuffer(32));while(!(t.lt(e)&&t.gt(0)));return this.k=t,this}deterministicK(e){let t=Ie.alloc(32);t.fill(1);let n=Ie.alloc(32);n.fill(0);const x=this.keyPair.privKey.bn.toBuffer({size:32});n=c.sha256Hmac(Ie.concat([t,Ie.from([0]),x,this.hashBuf]),n),t=c.sha256Hmac(t,n),n=c.sha256Hmac(Ie.concat([t,Ie.from([1]),x,this.hashBuf]),n),t=c.sha256Hmac(t,n),t=c.sha256Hmac(t,n);let T=new l().fromBuffer(t);const W=ce.getN();e===void 0&&(e=0);for(let ee=0;ee<e||!(T.lt(W)&&T.gt(0));ee++)n=c.sha256Hmac(Ie.concat([t,Ie.from([0])]),n),t=c.sha256Hmac(t,n),t=c.sha256Hmac(t,n),T=new l().fromBuffer(t);return this.k=T,this}sig2PubKey(){const e=this.sig.recovery;if(!(e===0||e===1||e===2||e===3))throw new Error("i must be equal to 0, 1, 2, or 3");const t=new l().fromBuffer(this.hashBuf),n=this.sig.r,x=this.sig.s,T=e&1,W=e>>1,ee=ce.getN(),pe=ce.getG(),be=W?n.add(ee):n,Pe=ce.fromX(T,be);let ke="";try{Pe.mul(ee)}catch(St){ke=St.message}if(ke!=="point mul out of range")throw new Error("nR is not a valid curve point");const Fe=t.neg().umod(ee),ht=n.invm(ee),ct=Pe.mul(x).add(pe.mul(Fe)).mul(ht),ft=new K(ct);return ft.compressed=this.sig.compressed,ft.validate(),ft}async asyncSig2PubKey(){const e=await i.asyncObjectMethod(this,"sig2PubKey",[]);return K.fromFastBuffer(e.resbuf)}static sig2PubKey(e,t){return new Ue().fromObject({sig:e,hashBuf:t}).sig2PubKey()}static async asyncSig2PubKey(e,t){return await new Ue().fromObject({sig:e,hashBuf:t}).asyncSig2PubKey()}verifyStr(e=!0){if(!Ie.isBuffer(this.hashBuf)||this.hashBuf.length!==32)return"hashBuf must be a 32 byte buffer";try{this.keyPair.pubKey.validate()}catch(Pe){return"Invalid pubKey: "+Pe}const t=this.sig.r,n=this.sig.s;if(!(t.gt(0)&&t.lt(ce.getN()))||!(n.gt(0)&&n.lt(ce.getN())))return"r and s not in range";if(e&&!this.sig.hasLowS())return"s is too high and does not satisfy low s contraint - see bip 62";const x=new l().fromBuffer(this.hashBuf,this.endian?{endian:this.endian}:void 0),T=ce.getN(),W=n.invm(T),ee=W.mul(x).mod(T),pe=W.mul(t).mod(T),be=ce.getG().mulAdd(ee,this.keyPair.pubKey.point,pe);return be.isInfinity()?"p is infinity":be.getX().mod(T).cmp(t)!==0?"Invalid signature":!1}sign(){const e=this.endian==="little"?new g(this.hashBuf).readReverse():this.hashBuf,t=this.keyPair.privKey,n=t.bn;if(!e||!t||!n)throw new Error("invalid parameters");if(!Ie.isBuffer(e)||e.length!==32)throw new Error("hashBuf must be a 32 byte buffer");const x=ce.getN(),T=ce.getG(),W=new l().fromBuffer(e);let ee=0,pe,be,Pe,ke;do(!this.k||ee>0)&&this.deterministicK(ee),ee++,pe=this.k,be=T.mul(pe),Pe=be.getX().mod(x),ke=pe.invm(x).mul(W.add(n.mul(Pe))).mod(x);while(Pe.cmp(0)<=0||ke.cmp(0)<=0);return ke.gt(new l().fromBuffer(Ie.from("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex")))&&(ke=ce.getN().sub(ke)),this.sig=me.fromObject({r:Pe,s:ke,compressed:this.keyPair.pubKey.compressed}),this}async asyncSign(){const e=await i.asyncObjectMethod(this,"sign",[]);return this.fromFastBuffer(e.resbuf)}signRandomK(){return this.randomK(),this.sign()}toString(){const e={};return this.hashBuf&&(e.hashBuf=this.hashBuf.toString("hex")),this.keyPair&&(e.keyPair=this.keyPair.toString()),this.sig&&(e.sig=this.sig.toString()),this.k&&(e.k=this.k.toString()),JSON.stringify(e)}verify(e=!0){return this.verifyStr(e)?this.verified=!1:this.verified=!0,this}async asyncVerify(e=!0){const t=await i.asyncObjectMethod(this,"verify",[e]);return this.fromFastBuffer(t.resbuf)}static sign(e,t,n){return new Ue().fromObject({hashBuf:e,endian:n,keyPair:t}).sign().sig}static async asyncSign(e,t,n){const x=new Ue().fromObject({hashBuf:e,endian:n,keyPair:t});return await x.asyncSign(),x.sig}static verify(e,t,n,x,T=!0){return new Ue().fromObject({hashBuf:e,endian:x,sig:t,keyPair:new ne().fromObject({pubKey:n})}).verify(T).verified}static async asyncVerify(e,t,n,x,T=!0){const W=new Ue().fromObject({hashBuf:e,endian:x,sig:t,keyPair:new ne().fromObject({pubKey:n})});return await W.asyncVerify(T),W.verified}}var Ce=Be(8764).Buffer;class Ne extends V{static{r(this,"Bsm")}constructor(e,t,n,x,T){super({messageBuf:e,keyPair:t,sig:n,address:x,verified:T})}static magicHash(e){if(!Ce.isBuffer(e))throw new Error("messageBuf must be a buffer");const t=new w;t.writeVarIntNum(Ne.magicBytes.length),t.write(Ne.magicBytes),t.writeVarIntNum(e.length),t.write(e);const n=t.toBuffer();return c.sha256Sha256(n)}static async asyncMagicHash(e){const t=[e];return(await i.asyncClassMethod(Ne,"magicHash",t)).resbuf}static sign(e,t){const n=new Ne(e,t);return n.sign(),n.sig.toCompact().toString("base64")}static async asyncSign(e,t){const n=[e,t],x=await i.asyncClassMethod(Ne,"sign",n);return JSON.parse(x.resbuf.toString())}static verify(e,t,n){const x=Ce.from(t,"base64"),T=new Ne;return T.messageBuf=e,T.sig=new me().fromCompact(x),T.address=n,T.verify().verified}static async asyncVerify(e,t,n){const x=[e,t,n],T=await i.asyncClassMethod(Ne,"verify",x);return JSON.parse(T.resbuf.toString())}sign(){const e=Ne.magicHash(this.messageBuf),t=new Ue().fromObject({hashBuf:e,keyPair:this.keyPair});return t.sign(),t.calcrecovery(),this.sig=t.sig,this}verify(){const e=Ne.magicHash(this.messageBuf),t=new Ue;if(t.hashBuf=e,t.sig=this.sig,t.keyPair=new ne,t.keyPair.pubKey=t.sig2PubKey(),!t.verify())return this.verified=!1,this;const n=new Te().fromPubKey(t.keyPair.pubKey,void 0,this.sig.compressed);return oe(n.hashBuf,this.address.hashBuf)?this.verified=!0:this.verified=!1,this}}Ne.magicBytes=Ce.from(`Bitcoin Signed Message:
8
- `);var Ve=Be(8764).Buffer;class We extends V{static{r(this,"BlockHeader")}constructor(e,t,n,x,T,W){super({versionBytesNum:e,prevBlockHashBuf:t,merkleRootBuf:n,time:x,bits:T,nonce:W})}fromJSON(e){return this.fromObject({versionBytesNum:e.versionBytesNum,prevBlockHashBuf:Ve.from(e.prevBlockHashBuf,"hex"),merkleRootBuf:Ve.from(e.merkleRootBuf,"hex"),time:e.time,bits:e.bits,nonce:e.nonce}),this}toJSON(){return{versionBytesNum:this.versionBytesNum,prevBlockHashBuf:this.prevBlockHashBuf.toString("hex"),merkleRootBuf:this.merkleRootBuf.toString("hex"),time:this.time,bits:this.bits,nonce:this.nonce}}fromBr(e){return this.versionBytesNum=e.readUInt32LE(),this.prevBlockHashBuf=e.read(32),this.merkleRootBuf=e.read(32),this.time=e.readUInt32LE(),this.bits=e.readUInt32LE(),this.nonce=e.readUInt32LE(),this}toBw(e){return e||(e=new w),e.writeUInt32LE(this.versionBytesNum),e.write(this.prevBlockHashBuf),e.write(this.merkleRootBuf),e.writeUInt32LE(this.time),e.writeUInt32LE(this.bits),e.writeUInt32LE(this.nonce),e}}var st=Be(8764).Buffer;class gt extends V{static{r(this,"Merkle")}constructor(e,t,n,x){super({hashBuf:e,buf:t,merkle1:n,merkle2:x})}hash(){if(this.hashBuf)return this.hashBuf;if(this.buf)return c.sha256Sha256(this.buf);const e=this.merkle1.hash(),t=this.merkle2.hash();return this.buf=st.concat([e,t]),c.sha256Sha256(this.buf)}fromBuffers(e){if(e.length<1)throw new Error("buffers must have a length");e=e.slice();const t=Math.log2(e.length);if(!Number.isInteger(t)){const W=e[e.length-1];var n=Math.pow(2,Math.ceil(t));for(let ee=e.length;ee<n;ee++)e.push(W)}const x=e.slice(0,e.length/2),T=e.slice(e.length/2);return this.fromBufferArrays(x,T),this}static fromBuffers(e){return new this().fromBuffers(e)}fromBufferArrays(e,t){if(e.length===1)return this.merkle1=new gt(void 0,e[0]),this.merkle2=new gt(void 0,t[0]),this;const n=e.slice(0,e.length/2),x=e.slice(e.length/2);this.merkle1=new gt().fromBufferArrays(n,x);const T=t.slice(0,t.length/2),W=t.slice(t.length/2);return this.merkle2=new gt().fromBufferArrays(T,W),this}static fromBufferArrays(e,t){return new this().fromBufferArrays(e,t)}leavesNum(){if(this.merkle1)return this.merkle1.leavesNum()+this.merkle2.leavesNum();if(this.buf)return 1;throw new Error("invalid number of leaves")}}var Qe=Be(8764).Buffer;class Xe extends V{static{r(this,"HashCache")}constructor(e,t,n){super(),this.fromObject({prevoutsHashBuf:e,sequenceHashBuf:t,outputsHashBuf:n})}fromBuffer(e){return this.fromJSON(JSON.parse(e.toString()))}toBuffer(){return Qe.from(JSON.stringify(this.toJSON()))}fromJSON(e){return this.prevoutsHashBuf=e.prevoutsHashBuf?Qe.from(e.prevoutsHashBuf,"hex"):void 0,this.sequenceHashBuf=e.sequenceHashBuf?Qe.from(e.sequenceHashBuf,"hex"):void 0,this.outputsHashBuf=e.outputsHashBuf?Qe.from(e.outputsHashBuf,"hex"):void 0,this}toJSON(){return{prevoutsHashBuf:this.prevoutsHashBuf?this.prevoutsHashBuf.toString("hex"):void 0,sequenceHashBuf:this.sequenceHashBuf?this.sequenceHashBuf.toString("hex"):void 0,outputsHashBuf:this.outputsHashBuf?this.outputsHashBuf.toString("hex"):void 0}}}var Tt=Be(8764).Buffer;class He extends V{static{r(this,"VarInt")}constructor(e){super({buf:e})}fromJSON(e){return this.fromObject({buf:Tt.from(e,"hex")}),this}toJSON(){return this.buf.toString("hex")}fromBuffer(e){return this.buf=e,this}fromBr(e){return this.buf=e.readVarIntBuf(),this}fromBn(e){return this.buf=new w().writeVarIntBn(e).toBuffer(),this}static fromBn(e){return new this().fromBn(e)}fromNumber(e){return this.buf=new w().writeVarIntNum(e).toBuffer(),this}static fromNumber(e){return new this().fromNumber(e)}toBuffer(){return this.buf}toBn(){return new g(this.buf).readVarIntBn()}toNumber(){return new g(this.buf).readVarIntNum()}}var rt=Be(8764).Buffer;class Ye extends V{static{r(this,"TxIn")}constructor(e,t,n,x,T=4294967295){super({txHashBuf:e,txOutNum:t,scriptVi:n,script:x,nSequence:T})}setScript(e){return this.scriptVi=He.fromNumber(e.toBuffer().length),this.script=e,this}fromProperties(e,t,n,x){return this.fromObject({txHashBuf:e,txOutNum:t,nSequence:x}),this.setScript(n),this}static fromProperties(e,t,n,x){return new this().fromProperties(e,t,n,x)}fromJSON(e){return this.fromObject({txHashBuf:typeof e.txHashBuf<"u"?rt.from(e.txHashBuf,"hex"):void 0,txOutNum:e.txOutNum,scriptVi:typeof e.scriptVi<"u"?He.fromJSON(e.scriptVi):void 0,script:typeof e.script<"u"?Ae.fromJSON(e.script):void 0,nSequence:e.nSequence}),this}toJSON(){return{txHashBuf:typeof this.txHashBuf<"u"?this.txHashBuf.toString("hex"):void 0,txOutNum:this.txOutNum,scriptVi:typeof this.scriptVi<"u"?this.scriptVi.toJSON():void 0,script:typeof this.script<"u"?this.script.toJSON():void 0,nSequence:this.nSequence}}fromBr(e){return this.txHashBuf=e.read(32),this.txOutNum=e.readUInt32LE(),this.scriptVi=He.fromBuffer(e.readVarIntBuf()),this.script=Ae.fromBuffer(e.read(this.scriptVi.toNumber())),this.nSequence=e.readUInt32LE(),this}toBw(e){return e||(e=new w),e.write(this.txHashBuf),e.writeUInt32LE(this.txOutNum),e.write(this.scriptVi.buf),e.write(this.script.toBuffer()),e.writeUInt32LE(this.nSequence),e}fromPubKeyHashTxOut(e,t,n,x){const T=new Ae;if(n.script.isPubKeyHashOut())T.writeOpCode(U.OP_0),x?T.writeBuffer(x.toBuffer()):T.writeOpCode(U.OP_0);else throw new Error("txOut must be of type pubKeyHash");return this.txHashBuf=e,this.txOutNum=t,this.setScript(T),this}hasNullInput(){return this.txHashBuf.toString("hex")==="0000000000000000000000000000000000000000000000000000000000000000"&&this.txOutNum===4294967295}setNullInput(){this.txHashBuf=rt.alloc(32),this.txHashBuf.fill(0),this.txOutNum=4294967295}}Ye.LOCKTIME_VERIFY_SEQUENCE=1,Ye.SEQUENCE_FINAL=4294967295,Ye.SEQUENCE_LOCKTIME_DISABLE_FLAG=1<<31,Ye.SEQUENCE_LOCKTIME_TYPE_FLAG=1<<22,Ye.SEQUENCE_LOCKTIME_MASK=65535,Ye.SEQUENCE_LOCKTIME_GRANULARITY=9;class ze extends V{static{r(this,"TxOut")}constructor(e,t,n){super({valueBn:e,scriptVi:t,script:n})}setScript(e){return this.scriptVi=He.fromNumber(e.toBuffer().length),this.script=e,this}fromProperties(e,t){return this.fromObject({valueBn:e}),this.setScript(t),this}static fromProperties(e,t){return new this().fromProperties(e,t)}fromJSON(e){return this.fromObject({valueBn:new l().fromJSON(e.valueBn),scriptVi:new He().fromJSON(e.scriptVi),script:new Ae().fromJSON(e.script)}),this}toJSON(){return{valueBn:this.valueBn.toJSON(),scriptVi:this.scriptVi.toJSON(),script:this.script.toJSON()}}fromBr(e){return this.valueBn=e.readUInt64LEBn(),this.scriptVi=He.fromNumber(e.readVarIntNum()),this.script=new Ae().fromBuffer(e.read(this.scriptVi.toNumber())),this}toBw(e){return e||(e=new w),e.writeUInt64LEBn(this.valueBn),e.write(this.scriptVi.buf),e.write(this.script.toBuffer()),e}}var Je=Be(8764).Buffer;class je extends V{static{r(this,"Tx")}constructor(e=1,t=He.fromNumber(0),n=[],x=He.fromNumber(0),T=[],W=0){super({versionBytesNum:e,txInsVi:t,txIns:n,txOutsVi:x,txOuts:T,nLockTime:W})}fromJSON(e){const t=[];e.txIns.forEach(function(x){t.push(new Ye().fromJSON(x))});const n=[];return e.txOuts.forEach(function(x){n.push(new ze().fromJSON(x))}),this.fromObject({versionBytesNum:e.versionBytesNum,txInsVi:new He().fromJSON(e.txInsVi),txIns:t,txOutsVi:new He().fromJSON(e.txOutsVi),txOuts:n,nLockTime:e.nLockTime}),this}toJSON(){const e=[];this.txIns.forEach(function(n){e.push(n.toJSON())});const t=[];return this.txOuts.forEach(function(n){t.push(n.toJSON())}),{versionBytesNum:this.versionBytesNum,txInsVi:this.txInsVi.toJSON(),txIns:e,txOutsVi:this.txOutsVi.toJSON(),txOuts:t,nLockTime:this.nLockTime}}fromBr(e){this.versionBytesNum=e.readUInt32LE(),this.txInsVi=new He(e.readVarIntBuf());const t=this.txInsVi.toNumber();this.txIns=[];for(let x=0;x<t;x++)this.txIns.push(new Ye().fromBr(e));this.txOutsVi=new He(e.readVarIntBuf());const n=this.txOutsVi.toNumber();this.txOuts=[];for(let x=0;x<n;x++)this.txOuts.push(new ze().fromBr(e));return this.nLockTime=e.readUInt32LE(),this}toBw(e){e||(e=new w),e.writeUInt32LE(this.versionBytesNum),e.write(this.txInsVi.buf);for(let t=0;t<this.txIns.length;t++)this.txIns[t].toBw(e);e.write(this.txOutsVi.buf);for(let t=0;t<this.txOuts.length;t++)this.txOuts[t].toBw(e);return e.writeUInt32LE(this.nLockTime),e}hashPrevouts(){const e=new w;for(const t in this.txIns){const n=this.txIns[t];e.write(n.txHashBuf),e.writeUInt32LE(n.txOutNum)}return c.sha256Sha256(e.toBuffer())}hashSequence(){const e=new w;for(const t in this.txIns){const n=this.txIns[t];e.writeUInt32LE(n.nSequence)}return c.sha256Sha256(e.toBuffer())}hashOutputs(){const e=new w;for(const t in this.txOuts){const n=this.txOuts[t];e.write(n.toBuffer())}return c.sha256Sha256(e.toBuffer())}sighash(e,t,n,x,T=je.SCRIPT_ENABLE_SIGHASH_FORKID,W=new Xe){const ee=this.sighashPreimage(e,t,n,x,T,W);return ee.compare(Je.from("0000000000000000000000000000000000000000000000000000000000000001","hex"))===0?ee:new g(c.sha256Sha256(ee)).readReverse()}async asyncSighash(e,t,n,x,T=0,W={}){return(await i.asyncObjectMethod(this,"sighash",[e,t,n,x,T,W])).resbuf}sighashPreimage(e,t,n,x,T=je.SCRIPT_ENABLE_SIGHASH_FORKID,W=new Xe){if(e&me.SIGHASH_FORKID&&T&je.SCRIPT_ENABLE_SIGHASH_FORKID){let be=Je.alloc(32,0),Pe=Je.alloc(32,0),ke=Je.alloc(32,0);e&me.SIGHASH_ANYONECANPAY||(be=W.prevoutsHashBuf?W.prevoutsHashBuf:W.prevoutsHashBuf=this.hashPrevouts()),!(e&me.SIGHASH_ANYONECANPAY)&&(e&31)!==me.SIGHASH_SINGLE&&(e&31)!==me.SIGHASH_NONE&&(Pe=W.sequenceHashBuf?W.sequenceHashBuf:W.sequenceHashBuf=this.hashSequence()),(e&31)!==me.SIGHASH_SINGLE&&(e&31)!==me.SIGHASH_NONE?ke=W.outputsHashBuf?W.outputsHashBuf:W.outputsHashBuf=this.hashOutputs():(e&31)===me.SIGHASH_SINGLE&&t<this.txOuts.length&&(ke=c.sha256Sha256(this.txOuts[t].toBuffer()));const Fe=new w;return Fe.writeUInt32LE(this.versionBytesNum),Fe.write(be),Fe.write(Pe),Fe.write(this.txIns[t].txHashBuf),Fe.writeUInt32LE(this.txIns[t].txOutNum),Fe.writeVarIntNum(n.toBuffer().length),Fe.write(n.toBuffer()),Fe.writeUInt64LEBn(x),Fe.writeUInt32LE(this.txIns[t].nSequence),Fe.write(ke),Fe.writeUInt32LE(this.nLockTime),Fe.writeUInt32LE(e>>>0),Fe.toBuffer()}const ee=this.cloneByBuffer();n=new Ae().fromBuffer(n.toBuffer()),n.removeCodeseparators();for(let be=0;be<ee.txIns.length;be++)ee.txIns[be]=Ye.fromBuffer(ee.txIns[be].toBuffer()).setScript(new Ae);if(ee.txIns[t]=Ye.fromBuffer(ee.txIns[t].toBuffer()).setScript(n),(e&31)===me.SIGHASH_NONE){ee.txOuts.length=0,ee.txOutsVi=He.fromNumber(0);for(let be=0;be<ee.txIns.length;be++)be!==t&&(ee.txIns[be].nSequence=0)}else if((e&31)===me.SIGHASH_SINGLE){if(t>ee.txOuts.length-1)return Je.from("0000000000000000000000000000000000000000000000000000000000000001","hex");ee.txOuts.length=t+1,ee.txOutsVi=He.fromNumber(t+1);for(let be=0;be<ee.txOuts.length;be++)be<t&&(ee.txOuts[be]=ze.fromProperties(new l().fromBuffer(Je.from("ffffffffffffffff","hex")),new Ae));for(let be=0;be<ee.txIns.length;be++)be!==t&&(ee.txIns[be].nSequence=0)}return e&me.SIGHASH_ANYONECANPAY&&(ee.txIns[0]=ee.txIns[t],ee.txIns.length=1,ee.txInsVi=He.fromNumber(1)),new w().write(ee.toBuffer()).writeInt32LE(e).toBuffer()}async asyncSighashPreimage(e,t,n,x,T=0,W={}){return(await i.asyncObjectMethod(this,"sighashPreimage",[e,t,n,x,T,W])).resbuf}sign(e,t=me.SIGHASH_ALL|me.SIGHASH_FORKID,n,x,T,W=je.SCRIPT_ENABLE_SIGHASH_FORKID,ee={}){const pe=this.sighash(t,n,x,T,W,ee);return this.preImageBuf=pe,Ue.sign(pe,e,"little").fromObject({nHashType:t})}async asyncSign(e,t=me.SIGHASH_ALL|me.SIGHASH_FORKID,n,x,T,W=je.SCRIPT_ENABLE_SIGHASH_FORKID,ee={}){const pe=await i.asyncObjectMethod(this,"sign",[e,t,n,x,T,W,ee]);return new me().fromFastBuffer(pe.resbuf)}verify(e,t,n,x,T=!1,W,ee=je.SCRIPT_ENABLE_SIGHASH_FORKID,pe={}){const be=this.sighash(e.nHashType,n,x,W,ee,pe);return Ue.verify(be,e,t,"little",T)}async asyncVerify(e,t,n,x,T=!1,W,ee=je.SCRIPT_ENABLE_SIGHASH_FORKID,pe={}){const be=await i.asyncObjectMethod(this,"verify",[e,t,n,x,T,W,ee,pe]);return JSON.parse(be.resbuf.toString())}hash(){return c.sha256Sha256(this.toBuffer())}async asyncHash(){return(await i.asyncObjectMethod(this,"hash",[])).resbuf}id(){return new g(this.hash()).readReverse().toString("hex")}async asyncId(){const e=await i.asyncObjectMethod(this,"id",[]);return JSON.parse(e.resbuf.toString())}addTxIn(e,t,n,x){let T;return e instanceof Ye?T=e:T=new Ye().fromObject({txHashBuf:e,txOutNum:t,nSequence:x}).setScript(n),this.txIns.push(T),this.txInsVi=He.fromNumber(this.txInsVi.toNumber()+1),this}addTxOut(e,t){let n;return e instanceof ze?n=e:n=new ze().fromObject({valueBn:e}).setScript(t),this.txOuts.push(n),this.txOutsVi=He.fromNumber(this.txOutsVi.toNumber()+1),this}isCoinbase(){return this.txIns.length===1&&this.txIns[0].hasNullInput()}sort(){return this.txIns.sort((e,t)=>new g(e.txHashBuf).readReverse().compare(new g(t.txHashBuf).readReverse())||e.txOutNum-t.txOutNum),this.txOuts.sort((e,t)=>e.valueBn.sub(t.valueBn).toNumber()||e.script.toBuffer().compare(t.script.toBuffer())),this}}je.MAX_MONEY=21e6*1e8,je.SCRIPT_ENABLE_SIGHASH_FORKID=65536;var at=Be(8764).Buffer;class et extends V{static{r(this,"Block")}constructor(e,t,n){super({blockHeader:e,txsVi:t,txs:n})}fromJSON(e){const t=[];return e.txs.forEach(function(n){t.push(new je().fromJSON(n))}),this.fromObject({blockHeader:new We().fromJSON(e.blockHeader),txsVi:new He().fromJSON(e.txsVi),txs:t}),this}toJSON(){const e=[];return this.txs.forEach(function(t){e.push(t.toJSON())}),{blockHeader:this.blockHeader.toJSON(),txsVi:this.txsVi.toJSON(),txs:e}}fromBr(e){this.blockHeader=new We().fromBr(e),this.txsVi=new He(e.readVarIntBuf());const t=this.txsVi.toNumber();this.txs=[];for(let n=0;n<t;n++)this.txs.push(new je().fromBr(e));return this}toBw(e){e||(e=new w),e.write(this.blockHeader.toBuffer()),e.write(this.txsVi.buf);const t=this.txsVi.toNumber();for(let n=0;n<t;n++)this.txs[n].toBw(e);return e}hash(){return c.sha256Sha256(this.blockHeader.toBuffer())}async asyncHash(){return(await i.asyncObjectMethod(this,"hash",[])).resbuf}id(){return new g(this.hash()).readReverse().toString("hex")}async asyncId(){const e=await i.asyncObjectMethod(this,"id",[]);return JSON.parse(e.resbuf.toString())}verifyMerkleRoot(){const e=this.txs.map(n=>n.toBuffer()),t=gt.fromBuffers(e).hash();return at.compare(t,this.blockHeader.merkleRootBuf)}static iterateTxs(e){const t=new g(e),n=new We().fromBr(t),x=new He(t.readVarIntBuf()),T=x.toNumber();return{blockHeader:n,txsVi:x,txsNum:T,*[Symbol.iterator](){for(let W=0;W<T;W++)yield new je().fromBr(t)}}}}et.MAX_BLOCK_SIZE=1e6;var dt=Be(8764).Buffer;const it=r(O=>{if(O.length===0)return O;const e=O[O.length-1];if(e&127)return O;if(O.length===1)return[];if(O[O.length-2]&128)return O;for(let t=O.length-1;t>0;t--)if(O[t-1]!==0)return O[t-1]&128?(O[t]=e,O.slice(0,t+1)):(O[t-1]|=e,O.slice(0,t));return[]},"minimallyEncode");class he extends V{static{r(this,"Interp")}constructor(e,t,n,x=[],T=[],W=0,ee=0,pe=0,be=[],Pe="",ke=he.defaultFlags,Fe=new l(0)){super({script:e,tx:t,nIn:n,stack:x,altStack:T,pc:W,pBeginCodeHash:ee,nOpCount:pe,ifStack:be,errStr:Pe,flags:ke,valueBn:Fe})}initialize(){return this.script=new Ae,this.stack=[],this.altStack=[],this.pc=0,this.pBeginCodeHash=0,this.nOpCount=0,this.ifStack=[],this.errStr="",this.flags=he.defaultFlags,this.scriptLimit=1e7,this.stackLimit=1e7,this}fromJSON(e){return this.fromJSONNoTx(e),this.tx=e.tx?new je().fromJSON(e.tx):void 0,this}fromJSONNoTx(e){return this.fromObject({script:e.script!==void 0?new Ae().fromJSON(e.script):void 0,nIn:e.nIn}),this.stack=[],e.stack.forEach(function(t){this.stack.push(dt.from(t,"hex"))}.bind(this)),this.altStack=[],e.altStack.forEach(function(t){this.altStack.push(dt.from(t,"hex"))}.bind(this)),this.fromObject({pc:e.pc,pBeginCodeHash:e.pBeginCodeHash,nOpCount:e.nOpCount,ifStack:e.ifStack,errStr:e.errStr,flags:e.flags}),this}fromBr(e){let t=e.readVarIntNum(),n=e.read(t);this.fromJSONNoTx(JSON.parse(n.toString()));let x=e.readVarIntNum();if(x>0){let T=e.read(x);this.tx=new je().fromFastBuffer(T)}return this}toJSON(){let e=this.toJSONNoTx();return e.tx=this.tx?this.tx.toJSON():void 0,e}toJSONNoTx(){let e=[];this.stack.forEach(function(n){e.push(n.toString("hex"))});let t=[];return this.altStack.forEach(function(n){t.push(n.toString("hex"))}),{script:this.script?this.script.toJSON():void 0,nIn:this.nIn,stack:e,altStack:t,pc:this.pc,pBeginCodeHash:this.pBeginCodeHash,nOpCount:this.nOpCount,ifStack:this.ifStack,errStr:this.errStr,flags:this.flags,preImage:this?.preImage?this.preImage.toString("hex"):"",hashBuf:this?.hashBuf?this.hashBuf.toString("hex"):""}}toBw(e){e||(e=new w);let t=dt.from(JSON.stringify(this.toJSONNoTx()));if(e.writeVarIntNum(t.length),e.write(t),this.tx){let n=this.tx.toFastBuffer();e.writeVarIntNum(n.length),e.write(n)}else e.writeVarIntNum(0);return e}static getFlags(e){let t=0;return e.indexOf("NONE")!==-1&&(t=t|he.SCRIPT_VERIFY_NONE),e.indexOf("P2SH")!==-1&&(t=t|he.SCRIPT_VERIFY_P2SH),e.indexOf("STRICTENC")!==-1&&(t=t|he.SCRIPT_VERIFY_STRICTENC),e.indexOf("DERSIG")!==-1&&(t=t|he.SCRIPT_VERIFY_DERSIG),e.indexOf("LOW_S")!==-1&&(t=t|he.SCRIPT_VERIFY_LOW_S),e.indexOf("NULLDUMMY")!==-1&&(t=t|he.SCRIPT_VERIFY_NULLDUMMY),e.indexOf("SIGPUSHONLY")!==-1&&(t=t|he.SCRIPT_VERIFY_SIGPUSHONLY),e.indexOf("MINIMALDATA")!==-1&&(t=t|he.SCRIPT_VERIFY_MINIMALDATA),e.indexOf("DISCOURAGE_UPGRADABLE_NOPS")!==-1&&(t=t|he.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS),e.indexOf("CLEANSTACK")!==-1&&(t=t|he.SCRIPT_VERIFY_CLEANSTACK),e.indexOf("CHECKLOCKTIMEVERIFY")!==-1&&(t=t|he.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY),e.indexOf("CHECKSEQUENCEVERIFY")!==-1&&(t=t|he.SCRIPT_VERIFY_CHECKSEQUENCEVERIFY),e.indexOf("SIGHASH_FORKID")!==-1&&(t=t|he.SCRIPT_ENABLE_SIGHASH_FORKID),t}static castToBool(e){for(let t=0;t<e.length;t++)if(e[t]!==0)return!(t===e.length-1&&e[t]===128);return!1}checkSigEncoding(e){if(e.length===0)return!0;if(this.flags&(he.SCRIPT_VERIFY_DERSIG|he.SCRIPT_VERIFY_LOW_S|he.SCRIPT_VERIFY_STRICTENC)&&!me.IsTxDer(e))return this.errStr="SCRIPT_ERR_SIG_DER",!1;if(this.flags&he.SCRIPT_VERIFY_LOW_S){if(!new me().fromTxFormat(e).hasLowS())return this.errStr="SCRIPT_ERR_SIG_DER",!1}else if(this.flags&he.SCRIPT_VERIFY_STRICTENC&&!new me().fromTxFormat(e).hasDefinedHashType())return this.errStr="SCRIPT_ERR_SIG_HASHTYPE",!1;return!0}checkPubKeyEncoding(e){return this.flags&he.SCRIPT_VERIFY_STRICTENC&&!K.isCompressedOrUncompressed(e)?(this.errStr="SCRIPT_ERR_PUBKEYTYPE",!1):!0}checkLockTime(e){return!(!(this.tx.nLockTime<he.LOCKTIME_THRESHOLD&&e<he.LOCKTIME_THRESHOLD||this.tx.nLockTime>=he.LOCKTIME_THRESHOLD&&e>=he.LOCKTIME_THRESHOLD)||e>this.tx.nLockTime||Ye.SEQUENCE_FINAL===this.tx.txIns[this.nIn].nSequence)}checkSequence(e){let t=this.tx.txIns[this.nIn].nSequence;if(this.tx.versionBytesNum<2||t&Ye.SEQUENCE_LOCKTIME_DISABLE_FLAG)return!1;let n=Ye.SEQUENCE_LOCKTIME_TYPE_FLAG|Ye.SEQUENCE_LOCKTIME_MASK,x=t&n,T=e&n;return!(!(x<Ye.SEQUENCE_LOCKTIME_TYPE_FLAG&&T<Ye.SEQUENCE_LOCKTIME_TYPE_FLAG||x>=Ye.SEQUENCE_LOCKTIME_TYPE_FLAG&&T>=Ye.SEQUENCE_LOCKTIME_TYPE_FLAG)||T>x)}*eval(){this.script.toBuffer().length>this.scriptLimit&&(this.errStr="SCRIPT_ERR_SCRIPT_SIZE",yield!1);try{for(;this.pc<this.script.chunks.length;){let e=this.step();e?yield e:yield!1}this.stack.length+this.altStack.length>this.stackLimit&&(this.errStr="SCRIPT_ERR_STACK_SIZE",yield!1)}catch(e){this.errStr="SCRIPT_ERR_UNKNOWN_ERROR: "+e,yield!1}this.ifStack.length>0&&(this.errStr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",yield!1),yield!0}step(){let e=(this.flags&he.SCRIPT_VERIFY_MINIMALDATA)!==0,t=!(this.ifStack.indexOf(!1)+1),n=this.script.chunks[this.pc];this.pc++;let x=n.opCodeNum;if(x===void 0)return this.errStr="SCRIPT_ERR_BAD_OPCODE",!1;if(n.buf&&n.buf.length>he.MAX_SCRIPT_ELEMENT_SIZE)return this.errStr="SCRIPT_ERR_PUSH_SIZE",!1;if(x>U.OP_16&&++this.nOpCount>201)return this.errStr="SCRIPT_ERR_OP_COUNT",!1;if(x===U.OP_2MUL||x===U.OP_2DIV)return this.errStr="SCRIPT_ERR_DISABLED_OPCODE",!1;if(t&&x>=0&&x<=U.OP_PUSHDATA4){if(e&&!this.script.checkMinimalPush(this.pc-1))return this.errStr="SCRIPT_ERR_MINIMALDATA",!1;if(!n.buf)this.stack.push(he.false);else{if(n.len!==n.buf.length)throw new Error("LEngth of push value not equal to length of data");this.stack.push(n.buf)}}else if(t||U.OP_IF<=x&&x<=U.OP_ENDIF)switch(x){case U.OP_1NEGATE:case U.OP_1:case U.OP_2:case U.OP_3:case U.OP_4:case U.OP_5:case U.OP_6:case U.OP_7:case U.OP_8:case U.OP_9:case U.OP_10:case U.OP_11:case U.OP_12:case U.OP_13:case U.OP_14:case U.OP_15:case U.OP_16:{let le=x-(U.OP_1-1),we=new l(le).toScriptNumBuffer();this.stack.push(we)}break;case U.OP_NOP:break;case U.OP_CHECKLOCKTIMEVERIFY:{if(!(this.flags&he.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY)){if(this.flags&he.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errStr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let le=this.stack[this.stack.length-1],Le=new l().fromScriptNumBuffer(le,e,5).toNumber();if(Le<0)return this.errStr="SCRIPT_ERR_NEGATIVE_LOCKTIME",!1;if(!this.checkLockTime(Le))return this.errStr="SCRIPT_ERR_UNSATISFIED_LOCKTIME",!1}break;case U.OP_CHECKSEQUENCEVERIFY:{if(!(this.flags&he.SCRIPT_VERIFY_CHECKSEQUENCEVERIFY)){if(this.flags&he.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errStr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let le=this.stack[this.stack.length-1],Le=new l().fromScriptNumBuffer(le,e,5).toNumber();if(Le<0)return this.errStr="SCRIPT_ERR_NEGATIVE_LOCKTIME",!1;if(Le&Ye.SEQUENCE_LOCKTIME_DISABLE_FLAG)break;if(!this.checkSequence(Le))return this.errStr="SCRIPT_ERR_UNSATISFIED_LOCKTIME",!1}break;case U.OP_NOP1:case U.OP_NOP3:case U.OP_NOP4:case U.OP_NOP5:case U.OP_NOP6:case U.OP_NOP7:case U.OP_NOP8:case U.OP_NOP9:case U.OP_NOP10:if(this.flags&he.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errStr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break;case U.OP_IF:case U.OP_NOTIF:{let le=!1;if(t){if(this.stack.length<1)return this.errStr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;let we=this.stack.pop();le=he.castToBool(we),x===U.OP_NOTIF&&(le=!le)}this.ifStack.push(le)}break;case U.OP_ELSE:if(this.ifStack.length===0)return this.errStr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.ifStack[this.ifStack.length-1]=!this.ifStack[this.ifStack.length-1];break;case U.OP_ENDIF:if(this.ifStack.length===0)return this.errStr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.ifStack.pop();break;case U.OP_VERIFY:{if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let le=this.stack[this.stack.length-1];if(he.castToBool(le))this.stack.pop();else return this.errStr="SCRIPT_ERR_VERIFY",!1}break;case U.OP_RETURN:return this.errStr="SCRIPT_ERR_OP_RETURN",!1;case U.OP_TOALTSTACK:if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.altStack.push(this.stack.pop());break;case U.OP_FROMALTSTACK:if(this.altStack.length<1)return this.errStr="SCRIPT_ERR_INVALID_ALTSTACK_OPERATION",!1;this.stack.push(this.altStack.pop());break;case U.OP_2DROP:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop(),this.stack.pop();break;case U.OP_2DUP:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let le=this.stack[this.stack.length-2],we=this.stack[this.stack.length-1];this.stack.push(le),this.stack.push(we)}break;case U.OP_3DUP:{if(this.stack.length<3)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let le=this.stack[this.stack.length-3],we=this.stack[this.stack.length-2],Le=this.stack[this.stack.length-1];this.stack.push(le),this.stack.push(we),this.stack.push(Le)}break;case U.OP_2OVER:{if(this.stack.length<4)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let le=this.stack[this.stack.length-4],we=this.stack[this.stack.length-3];this.stack.push(le),this.stack.push(we)}break;case U.OP_2ROT:{if(this.stack.length<6)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let le=this.stack.splice(this.stack.length-6,2);this.stack.push(le[0]),this.stack.push(le[1])}break;case U.OP_2SWAP:{if(this.stack.length<4)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let le=this.stack.splice(this.stack.length-4,2);this.stack.push(le[0]),this.stack.push(le[1])}break;case U.OP_IFDUP:{if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let le=this.stack[this.stack.length-1];he.castToBool(le)&&this.stack.push(le)}break;case U.OP_DEPTH:{let le=new l(this.stack.length).toScriptNumBuffer();this.stack.push(le)}break;case U.OP_DROP:if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop();break;case U.OP_DUP:if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-1]);break;case U.OP_NIP:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,1);break;case U.OP_OVER:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-2]);break;case U.OP_PICK:case U.OP_ROLL:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let le=this.stack[this.stack.length-1],Le=new l().fromScriptNumBuffer(le,e,he.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS).toNumber();if(this.stack.pop(),Le<0||Le>=this.stack.length)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;le=this.stack[this.stack.length-Le-1],x===U.OP_ROLL&&this.stack.splice(this.stack.length-Le-1,1),this.stack.push(le)}break;case U.OP_ROT:{if(this.stack.length<3)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let le=this.stack[this.stack.length-3],we=this.stack[this.stack.length-2],Le=this.stack[this.stack.length-1];this.stack[this.stack.length-3]=we,this.stack[this.stack.length-2]=Le,this.stack[this.stack.length-1]=le}break;case U.OP_SWAP:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let le=this.stack[this.stack.length-2],we=this.stack[this.stack.length-1];this.stack[this.stack.length-2]=we,this.stack[this.stack.length-1]=le}break;case U.OP_TUCK:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,0,this.stack[this.stack.length-1]);break;case U.OP_SIZE:{if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let le=new l(this.stack[this.stack.length-1].length);this.stack.push(le.toScriptNumBuffer())}break;case U.OP_OR:case U.OP_AND:case U.OP_XOR:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let T=this.stack[this.stack.length-2],W=this.stack[this.stack.length-1];if(T.length!=W.length)return this.errStr="SCRIPT_ERR_INVALID_OPERAND_SIZE",!1;switch(x){case U.OP_AND:for(let le=0;le<T.length;le++)T[le]&=W[le];break;case U.OP_OR:for(let le=0;le<T.length;le++)T[le]|=W[le];break;case U.OP_XOR:for(let le=0;le<T.length;le++)T[le]^=W[le];break}this.stack.pop();break;case U.OP_INVERT:if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let ee=this.stack[this.stack.length-1];for(let le=0;le<ee.length;le++)ee[le]=~ee[le];break;case U.OP_LSHIFT:case U.OP_RSHIFT:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let le=this.stack[this.stack.length-2],we=new l(le),Le=new l().fromScriptNumBuffer(this.stack[this.stack.length-1],e,he.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS).toNumber();if(Le<0)return this.errStr="SCRIPT_ERR_INVALID_NUMBER_RANGE",!1;switch(this.stack.pop(),this.stack.pop(),x){case U.OP_LSHIFT:we=we.ushln(Le);break;case U.OP_RSHIFT:we=we.ushrn(Le);break}let lt=we.toBuffer().slice(-le.length);lt.length<le.length&&(lt=dt.concat([dt.alloc(le.length-lt.length),lt])),this.stack.push(lt);break}case U.OP_EQUAL:case U.OP_EQUALVERIFY:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let le=this.stack[this.stack.length-2],we=this.stack[this.stack.length-1],Le=oe(le,we);if(this.stack.pop(),this.stack.pop(),this.stack.push(Le?he.true:he.false),x===U.OP_EQUALVERIFY)if(Le)this.stack.pop();else return this.errStr="SCRIPT_ERR_EQUALVERIFY",!1}break;case U.OP_1ADD:case U.OP_1SUB:case U.OP_NEGATE:case U.OP_ABS:case U.OP_NOT:case U.OP_0NOTEQUAL:{if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let le=this.stack[this.stack.length-1],we=new l().fromScriptNumBuffer(le,e,he.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS);switch(x){case U.OP_1ADD:we=we.add(1);break;case U.OP_1SUB:we=we.sub(1);break;case U.OP_NEGATE:we=we.neg();break;case U.OP_ABS:we.lt(0)&&(we=we.neg());break;case U.OP_NOT:we=new l(we.eq(0)+0);break;case U.OP_0NOTEQUAL:we=new l(we.neq(0)+0);break}this.stack.pop(),this.stack.push(we.toScriptNumBuffer())}break;case U.OP_ADD:case U.OP_SUB:case U.OP_MUL:case U.OP_DIV:case U.OP_MOD:case U.OP_BOOLAND:case U.OP_BOOLOR:case U.OP_NUMEQUAL:case U.OP_NUMEQUALVERIFY:case U.OP_NUMNOTEQUAL:case U.OP_LESSTHAN:case U.OP_GREATERTHAN:case U.OP_LESSTHANOREQUAL:case U.OP_GREATERTHANOREQUAL:case U.OP_MIN:case U.OP_MAX:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let le=new l().fromScriptNumBuffer(this.stack[this.stack.length-2],e,he.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS),we=new l().fromScriptNumBuffer(this.stack[this.stack.length-1],e,he.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS),Le=new l(0);switch(x){case U.OP_ADD:Le=le.add(we);break;case U.OP_SUB:Le=le.sub(we);break;case U.OP_MUL:Le=le.mul(we);break;case U.OP_DIV:if(we==0)return this.errStr="SCRIPT_ERR_DIV_BY_ZERO",!1;Le=le.div(we);break;case U.OP_MOD:if(we==0)return this.errStr="SCRIPT_ERR_DIV_BY_ZERO",!1;Le=le.mod(we);break;case U.OP_BOOLAND:Le=new l((le.neq(0)&&we.neq(0))+0);break;case U.OP_BOOLOR:Le=new l((le.neq(0)||we.neq(0))+0);break;case U.OP_NUMEQUAL:Le=new l(le.eq(we)+0);break;case U.OP_NUMEQUALVERIFY:Le=new l(le.eq(we)+0);break;case U.OP_NUMNOTEQUAL:Le=new l(le.neq(we)+0);break;case U.OP_LESSTHAN:Le=new l(le.lt(we)+0);break;case U.OP_GREATERTHAN:Le=new l(le.gt(we)+0);break;case U.OP_LESSTHANOREQUAL:Le=new l(le.leq(we)+0);break;case U.OP_GREATERTHANOREQUAL:Le=new l(le.geq(we)+0);break;case U.OP_MIN:Le=le.lt(we)?le:we;break;case U.OP_MAX:Le=le.gt(we)?le:we;break}if(this.stack.pop(),this.stack.pop(),this.stack.push(Le.toScriptNumBuffer()),x===U.OP_NUMEQUALVERIFY)if(he.castToBool(this.stack[this.stack.length-1]))this.stack.pop();else return this.errStr="SCRIPT_ERR_NUMEQUALVERIFY",!1}break;case U.OP_WITHIN:{if(this.stack.length<3)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let le=new l().fromScriptNumBuffer(this.stack[this.stack.length-3],e,he.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS),we=new l().fromScriptNumBuffer(this.stack[this.stack.length-2],e,he.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS),Le=new l().fromScriptNumBuffer(this.stack[this.stack.length-1],e,he.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS),lt=we.leq(le)&&le.lt(Le);this.stack.pop(),this.stack.pop(),this.stack.pop(),this.stack.push(lt?he.true:he.false)}break;case U.OP_RIPEMD160:case U.OP_SHA1:case U.OP_SHA256:case U.OP_HASH160:case U.OP_HASH256:{if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let le=this.stack[this.stack.length-1],we;x===U.OP_RIPEMD160?we=c.ripemd160(le):x===U.OP_SHA1?we=c.sha1(le):x===U.OP_SHA256?we=c.sha256(le):x===U.OP_HASH160?we=c.sha256Ripemd160(le):x===U.OP_HASH256&&(we=c.sha256Sha256(le)),this.stack.pop(),this.stack.push(we)}break;case U.OP_CODESEPARATOR:this.pBeginCodeHash=this.pc;break;case U.OP_CHECKSIG:case U.OP_CHECKSIGVERIFY:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let le=this.stack[this.stack.length-2],we=this.stack[this.stack.length-1];if(!this.checkSigEncoding(le)||!this.checkPubKeyEncoding(we))return!1;let Le=new Ae().fromObject({chunks:this.script.chunks.slice(this.pBeginCodeHash)});if((le.length>0?le.readUInt8(le.length-1):0)&me.SIGHASH_FORKID){if(!(this.flags&he.SCRIPT_ENABLE_SIGHASH_FORKID))return this.errStr="SCRIPT_ERR_ILLEGAL_FORKID",!1}else Le.findAndDelete(new Ae().writeBuffer(le));let yt;try{let xt=new me().fromTxFormat(le),Et=new K().fromBuffer(we,!1);this.nHashType=xt.nHashType,typeof this.nIn>"u"&&console.log("Missing tx input nIn"),typeof this.tx>"u"&&(this.tx=new je);try{this.preImage=this.tx.sighashPreimage(xt.nHashType,this.nIn,Le,this.valueBn,je.SCRIPT_ENABLE_SIGHASH_FORKID),this.preImage.compare(dt.from("0000000000000000000000000000000000000000000000000000000000000001","hex"))===0?this.hashBuf=this.preImage:this.hashBuf=new g(c.sha256Sha256(this.preImage)).readReverse(),this.verify=Ue.verify(this.hashBuf,xt,Et,"little",!0)}catch(wt){console.log("ERROR: ",wt.message)}yt=this.tx.verify(xt,Et,this.nIn,Le,!!(this.flags&he.SCRIPT_VERIFY_LOW_S),this.valueBn,je.SCRIPT_ENABLE_SIGHASH_FORKID)}catch{yt=!1}if(this.stack.pop(),this.stack.pop(),this.stack.push(yt?he.true:he.false),x===U.OP_CHECKSIGVERIFY)if(yt)this.stack.pop();else return this.errStr="SCRIPT_ERR_CHECKSIGVERIFY",!1}break;case U.OP_CHECKMULTISIG:case U.OP_CHECKMULTISIGVERIFY:{let le=1;if(this.stack.length<le)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let we=new l().fromScriptNumBuffer(this.stack[this.stack.length-le],e).toNumber();if(we<0||we>20)return this.errStr="SCRIPT_ERR_PUBKEY_COUNT",!1;if(this.nOpCount+=we,this.nOpCount>201)return this.errStr="SCRIPT_ERR_OP_COUNT",!1;let Le=++le;if(le+=we,this.stack.length<le)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let lt=new l().fromScriptNumBuffer(this.stack[this.stack.length-le],e).toNumber();if(lt<0||lt>we)return this.errStr="SCRIPT_ERR_SIG_COUNT",!1;let yt=++le;if(le+=lt,this.stack.length<le)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let xt=new Ae().fromObject({chunks:this.script.chunks.slice(this.pBeginCodeHash)});for(let wt=0;wt<lt;wt++){let _t=this.stack[this.stack.length-yt-wt];if((_t.length>0?_t.readUInt8(_t.length-1):0)&me.SIGHASH_FORKID){if(!(this.flags&he.SCRIPT_ENABLE_SIGHASH_FORKID))return this.errStr="SCRIPT_ERR_ILLEGAL_FORKID",!1}else xt.findAndDelete(new Ae().writeBuffer(_t))}let Et=!0;for(;Et&&lt>0;){let wt=this.stack[this.stack.length-yt],_t=this.stack[this.stack.length-Le];if(!this.checkSigEncoding(wt)||!this.checkPubKeyEncoding(_t))return!1;let Lt;try{let Ht=new me().fromTxFormat(wt),Kt=new K().fromBuffer(_t,!1);Lt=this.tx.verify(Ht,Kt,this.nIn,xt,!!(this.flags&he.SCRIPT_VERIFY_LOW_S),this.valueBn,this.flags)}catch{Lt=!1}Lt&&(yt++,lt--),Le++,we--,lt>we&&(Et=!1)}for(;le-- >1;)this.stack.pop();if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(this.flags&he.SCRIPT_VERIFY_NULLDUMMY&&this.stack[this.stack.length-1].length)return this.errStr="SCRIPT_ERR_SIG_NULLDUMMY",!1;if(this.stack.pop(),this.stack.push(Et?he.true:he.false),x===U.OP_CHECKMULTISIGVERIFY)if(Et)this.stack.pop();else return this.errStr="SCRIPT_ERR_CHECKMULTISIGVERIFY",!1}break;case U.OP_CAT:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let pe=this.stack[this.stack.length-2],be=this.stack[this.stack.length-1];this.stack[this.stack.length-2]=dt.concat([pe,be]),this.stack.pop();break;case U.OP_SPLIT:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let Pe=this.stack[this.stack.length-2],ke=new l().fromScriptNumBuffer(this.stack[this.stack.length-1],e);if(ke.lt(0)||ke.gt(Pe.length))return this.errStr="SCRIPT_ERR_INVALID_SPLIT_RANGE",!1;let Fe=Pe.slice(0,ke),ht=Pe.slice(ke);this.stack.pop(),this.stack.pop(),this.stack.push(Fe),this.stack.push(ht);break;case U.OP_NUM2BIN:this.stack.length<2&&(this.errStr="OP_NUM2BIN requires at least two items to be on the stack.");let ct=new l().fromScriptNumBuffer(this.stack[this.stack.length-1],e,he.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS).toNumber();ct>he.MAX_SCRIPT_ELEMENT_SIZE&&(this.errStr=`It's not currently possible to push data larger than ${he.MAX_SCRIPT_ELEMENT_SIZE} bytes.`),this.stack.pop();let ft=this.stack[this.stack.length-1];if(ft=it(ft),ft.length>ct&&(this.errStr="OP_NUM2BIN requires that the size expressed in the top stack item is large enough to hold the value expressed in the second-from-top stack item."),ft.length===ct){this.stack[this.stack.length-1]=ft;break}let St=0;ft.length>0&&(St=ft[ft.length-1]&128,ft[ft.length-1]&=127);let Rt=new Array(ct);Rt.fill(0);let vt;for(vt=0;vt<ct;vt++)Rt[vt]=ft[vt];for(vt=ft.length-1;vt++<ct-2;)Rt[vt]=0;Rt[vt]=St,this.stack[this.stack.length-1]=dt.from(new Uint8Array(Rt).buffer,"binary");break;case U.OP_BIN2NUM:this.stack.length<1&&(this.errStr="OP_BIN2NUM requires at least one item to be on the stack.");let Ut=this.stack[this.stack.length-1],Dt=it(Ut);this.stack[this.stack.length-1]=new l().fromScriptNumBuffer(Dt,e,he.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS);break;default:return this.errStr="SCRIPT_ERR_BAD_OPCODE",!1}return!0}verify(e,t,n,x,T,W){let ee=this.results(e,t,n,x,T,W);for(let pe of ee)if(!pe)return!1;return!0}*results(e,t,n,x,T,W){let ee;this.fromObject({script:e,tx:n,nIn:x,flags:T,valueBn:W}),T&he.SCRIPT_VERIFY_SIGPUSHONLY&&!e.isPushOnly()&&(this.errStr=this.errStr||"SCRIPT_ERR_SIG_PUSHONLY",yield!1),yield*this.eval(),T&he.SCRIPT_VERIFY_P2SH&&(ee=this.stack.slice());let pe=this.stack;this.initialize(),this.fromObject({script:t,stack:pe,tx:n,nIn:x,flags:T,valueBn:W}),yield*this.eval(),this.stack.length===0&&(this.errStr=this.errStr||"SCRIPT_ERR_EVAL_FALSE",yield!1);let be=this.stack[this.stack.length-1];if(he.castToBool(be)||(this.errStr=this.errStr||"SCRIPT_ERR_EVAL_FALSE",yield!1),T&he.SCRIPT_VERIFY_P2SH&&t.isScriptHashOut()){e.isPushOnly()||(this.errStr=this.errStr||"SCRIPT_ERR_SIG_PUSHONLY",yield!1);let Pe=pe;if(pe=ee,ee=Pe,pe.length===0)throw new Error("internal error - stack copy empty");let ke=pe[pe.length-1],Fe=new Ae().fromBuffer(ke);pe.pop(),this.initialize(),this.fromObject({script:Fe,stack:pe,tx:n,nIn:x,flags:T,valueBn:W}),yield*this.eval(),pe.length===0&&(this.errStr=this.errStr||"SCRIPT_ERR_EVAL_FALSE",yield!1),he.castToBool(pe[pe.length-1])?yield!0:(this.errStr=this.errStr||"SCRIPT_ERR_EVAL_FALSE",yield!1)}if(T&he.SCRIPT_VERIFY_CLEANSTACK){if(!(T&he.SCRIPT_VERIFY_P2SH))throw new Error("cannot use CLEANSTACK without P2SH");pe.length!==1&&(this.errStr=this.errStr||"SCRIPT_ERR_CLEANSTACK",yield!1)}yield!0}getDebugObject(){let e=this.pc-1;return{errStr:this.errStr,scriptStr:this.script?this.script.toString():"no script found",pc:e,stack:this.stack.map(t=>t.toString("hex")),altStack:this.altStack.map(t=>t.toString("hex")),opCodeStr:this.script?U.fromNumber(this.script.chunks[e].opCodeNum).toString():"no script found"}}getDebugString(){return JSON.stringify(this.getDebugObject(),null,2)}}he.true=dt.from([1]),he.false=dt.from([]),he.MAX_SCRIPT_ELEMENT_SIZE=500*1e3,he.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS=10*1e3,he.LOCKTIME_THRESHOLD=5e8,he.SCRIPT_VERIFY_NONE=0,he.SCRIPT_VERIFY_P2SH=1,he.SCRIPT_VERIFY_STRICTENC=2,he.SCRIPT_VERIFY_DERSIG=4,he.SCRIPT_VERIFY_LOW_S=8,he.SCRIPT_VERIFY_NULLDUMMY=16,he.SCRIPT_VERIFY_SIGPUSHONLY=32,he.SCRIPT_VERIFY_MINIMALDATA=64,he.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS=128,he.SCRIPT_VERIFY_CLEANSTACK=256,he.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY=512,he.SCRIPT_VERIFY_CHECKSEQUENCEVERIFY=1024,he.SCRIPT_ENABLE_SIGHASH_FORKID=65536,he.defaultFlags=he.SCRIPT_VERIFY_P2SH|he.SCRIPT_VERIFY_STRICTENC|he.SCRIPT_ENABLE_SIGHASH_FORKID|he.SCRIPT_VERIFY_LOW_S|he.SCRIPT_VERIFY_NULLDUMMY|he.SCRIPT_VERIFY_DERSIG|he.SCRIPT_VERIFY_MINIMALDATA|he.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS|he.SCRIPT_VERIFY_CLEANSTACK|he.SCRIPT_VERIFY_SIGPUSHONLY|he.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY|he.SCRIPT_VERIFY_CHECKSEQUENCEVERIFY;class Bt extends V{static{r(this,"SigOperations")}constructor(e=new Map){super({map:e})}toJSON(){const e={};return this.map.forEach((t,n)=>{e[n]=t.map(x=>({nScriptChunk:x.nScriptChunk,type:x.type,addressStr:x.addressStr,nHashType:x.nHashType,log:x.log}))}),e}fromJSON(e){return Object.keys(e).forEach(t=>{this.map.set(t,e[t].map(n=>({nScriptChunk:n.nScriptChunk,type:n.type,addressStr:n.addressStr,nHashType:n.nHashType,log:n.log})))}),this}setOne(e,t,n,x="sig",T,W=me.SIGHASH_ALL|me.SIGHASH_FORKID){const ee=e.toString("hex")+":"+t,pe={nScriptChunk:n,type:x,addressStr:T,nHashType:W};return this.map.set(ee,[pe]),this}setMany(e,t,n){const x=e.toString("hex")+":"+t;return n=n.map(T=>({type:T.type||"sig",nHashType:T.nHashType||me.SIGHASH_ALL|me.SIGHASH_FORKID,...T})),this.map.set(x,n),this}addOne(e,t,n,x="sig",T,W=me.SIGHASH_ALL|me.SIGHASH_FORKID){const ee=this.get(e,t)||[];return ee.push({nScriptChunk:n,type:x,addressStr:T,nHashType:W}),this.setMany(e,t,ee),this}get(e,t){const n=e.toString("hex")+":"+t;return this.map.get(n)||[]}}class tt extends V{static{r(this,"TxOutMap")}constructor(e=new Map){super({map:e})}toJSON(){const e={};return this.map.forEach((t,n)=>{e[n]=t.toHex()}),e}fromJSON(e){return Object.keys(e).forEach(t=>{this.map.set(t,ze.fromHex(e[t]))}),this}set(e,t,n){const x=e.toString("hex")+":"+t;return this.map.set(x,n),this}get(e,t){const n=e.toString("hex")+":"+t;return this.map.get(n)}setTx(e){const t=e.hash().toString("hex");return e.txOuts.forEach((n,x)=>{const T=t+":"+x;this.map.set(T,n)}),this}}var nt=Be(8764).Buffer;const Ot=H.Default.TxBuilder;class ot extends V{static{r(this,"TxBuilder")}constructor(e=new je,t=[],n=[],x=new tt,T=new Bt,W,ee,pe,be=Ot.feePerKbNum,Pe=0,ke=1,Fe=1,ht=Ot.dust,ct=!1,ft=new Xe){super({tx:e,txIns:t,txOuts:n,uTxOutMap:x,sigOperations:T,changeScript:W,changeAmountBn:ee,feeAmountBn:pe,feePerKbNum:be,nLockTime:Pe,versionBytesNum:ke,sigsPerInput:Fe,dust:ht,dustChangeToFees:ct,hashCache:ft})}toJSON(){const e={};return e.tx=this.tx.toHex(),e.txIns=this.txIns.map(t=>t.toHex()),e.txOuts=this.txOuts.map(t=>t.toHex()),e.uTxOutMap=this.uTxOutMap.toJSON(),e.sigOperations=this.sigOperations.toJSON(),e.changeScript=this.changeScript?this.changeScript.toHex():void 0,e.changeAmountBn=this.changeAmountBn?this.changeAmountBn.toNumber():void 0,e.feeAmountBn=this.feeAmountBn?this.feeAmountBn.toNumber():void 0,e.feePerKbNum=this.feePerKbNum,e.sigsPerInput=this.sigsPerInput,e.dust=this.dust,e.dustChangeToFees=this.dustChangeToFees,e.hashCache=this.hashCache.toJSON(),e}fromJSON(e){return this.tx=new je().fromHex(e.tx),this.txIns=e.txIns.map(t=>Ye.fromHex(t)),this.txOuts=e.txOuts.map(t=>ze.fromHex(t)),this.uTxOutMap=new tt().fromJSON(e.uTxOutMap),this.sigOperations=new Bt().fromJSON(e.sigOperations),this.changeScript=e.changeScript?new Ae().fromHex(e.changeScript):void 0,this.changeAmountBn=e.changeAmountBn?new l(e.changeAmountBn):void 0,this.feeAmountBn=e.feeAmountBn?new l(e.feeAmountBn):void 0,this.feePerKbNum=e.feePerKbNum||this.feePerKbNum,this.sigsPerInput=e.sigsPerInput||this.sigsPerInput,this.dust=e.dust||this.dust,this.dustChangeToFees=e.dustChangeToFees||this.dustChangeToFees,this.hashCache=Xe.fromJSON(e.hashCache),this}setFeePerKbNum(e){if(typeof e!="number"||e<0)throw new Error("cannot set a fee of zero or less");return this.feePerKbNum=e,this}setChangeAddress(e){return this.changeScript=e.toTxOutScript(),this}setChangeScript(e){return this.changeScript=e,this}setNLocktime(e){return this.nLockTime=e,this}setVersion(e){return this.versionBytesNum=e,this}setDust(e=Ot.dust){return this.dust=e,this}sendDustChangeToFees(e=!1){return this.dustChangeToFees=e,this}importPartiallySignedTx(e,t=this.uTxOutMap,n=this.sigOperations){return this.tx=e,this.uTxOutMap=t,this.sigOperations=n,this}inputFromScript(e,t,n,x,T){if(!nt.isBuffer(e)||typeof t!="number"||!(n instanceof ze)||!(x instanceof Ae))throw new Error("invalid one of: txHashBuf, txOutNum, txOut, script");return this.txIns.push(Ye.fromProperties(e,t,x,T)),this.uTxOutMap.set(e,t,n),this}addSigOperation(e,t,n,x,T,W){return this.sigOperations.addOne(e,t,n,x,T,W),this}inputFromPubKeyHash(e,t,n,x,T,W){if(!nt.isBuffer(e)||typeof t!="number"||!(n instanceof ze))throw new Error("invalid one of: txHashBuf, txOutNum, txOut");this.txIns.push(new Ye().fromObject({nSequence:T}).fromPubKeyHashTxOut(e,t,n,x)),this.uTxOutMap.set(e,t,n);const ee=Te.fromTxOutScript(n.script).toString();return this.addSigOperation(e,t,0,"sig",ee,W),this.addSigOperation(e,t,1,"pubKey",ee),this}outputToAddress(e,t){if(!(t instanceof Te)||!(e instanceof l))throw new Error("addr must be an Address, and valueBn must be a Bn");const n=new Ae().fromPubKeyHash(t.hashBuf);return this.outputToScript(e,n),this}outputToScript(e,t){if(!(t instanceof Ae)||!(e instanceof l))throw new Error("script must be a Script, and valueBn must be a Bn");const n=ze.fromProperties(e,t);return this.txOuts.push(n),this}buildOutputs(){let e=new l(0);return this.txOuts.forEach(t=>{if(t.valueBn.lt(this.dust)&&!t.script.isNonSpendable())throw new Error("cannot create output lesser than dust");e=e.add(t.valueBn),this.tx.addTxOut(t)}),e}buildInputs(e,t=0){let n=new l(0);for(const x of this.txIns){const T=this.uTxOutMap.get(x.txHashBuf,x.txOutNum);if(n=n.add(T.valueBn),this.tx.addTxIn(x),n.geq(e)){if(t<=0)break;t--}}if(n.lt(e))throw new Error("not enough funds for outputs: inAmountBn "+n.toNumber()+" outAmountBn "+e.toNumber());return n}estimateSize(){let n=this.tx.toBuffer().length;return this.tx.txIns.forEach(x=>{const{txHashBuf:T,txOutNum:W}=x;this.sigOperations.get(T,W).forEach(pe=>{const{nScriptChunk:be,type:Pe}=pe,Fe=new Ae([x.script.chunks[be]]).toBuffer().length;if(n-=Fe,Pe==="sig")n+=72;else if(pe.type==="pubKey")n+=35;else throw new Error("unsupported sig operations type")})}),n=n+1,Math.round(n)}estimateFee(e=new l(0)){const t=Math.ceil(this.estimateSize()/1e3*this.feePerKbNum);return new l(t).add(e)}build(e={useAllInputs:!1}){let t;if(this.txIns.length<=0)throw Error("tx-builder number of inputs must be greater than 0");if(!this.changeScript)throw new Error("must specify change script to use build method");for(let n=e.useAllInputs?this.txIns.length-1:0;n<this.txIns.length;n++){this.tx=new je;const x=this.buildOutputs(),T=ze.fromProperties(new l(0),this.changeScript);this.tx.addTxOut(T);let W;try{W=this.buildInputs(x,n)}catch(ee){throw ee.message.includes("not enough funds for outputs")?new Error("unable to gather enough inputs for outputs and fee"):ee}if(this.changeAmountBn=W.sub(x),T.valueBn=this.changeAmountBn,t=this.estimateFee(),this.changeAmountBn.geq(t)&&this.changeAmountBn.sub(t).gt(this.dust))break}if(this.changeAmountBn.geq(t)){if(this.feeAmountBn=t,this.changeAmountBn=this.changeAmountBn.sub(this.feeAmountBn),this.tx.txOuts[this.tx.txOuts.length-1].valueBn=this.changeAmountBn,this.changeAmountBn.lt(this.dust))if(this.dustChangeToFees)this.tx.txOuts.pop(),this.tx.txOutsVi=He.fromNumber(this.tx.txOutsVi.toNumber()-1),this.feeAmountBn=this.feeAmountBn.add(this.changeAmountBn),this.changeAmountBn=new l(0);else throw new Error("unable to create change amount greater than dust");if(this.tx.nLockTime=this.nLockTime,this.tx.versionBytesNum=this.versionBytesNum,this.tx.txOuts.length===0)throw new Error("outputs length is zero - unable to create any outputs greater than dust");return this}else throw new Error("unable to gather enough inputs for outputs and fee")}sort(){return this.tx.sort(),this}static allSigsPresent(e,t){let n=0;for(let x=1;x<t.chunks.length-1;x++)t.chunks[x].buf&&n++;return n===e}static removeBlankSigs(e){e=new Ae(e.chunks.slice());for(let t=1;t<e.chunks.length-1;t++)e.chunks[t].buf||e.chunks.splice(t,1);return e}fillSig(e,t,n){const x=this.tx.txIns[e];return x.script.chunks[t]=new Ae().writeBuffer(n.toTxFormat()).chunks[0],x.scriptVi=He.fromNumber(x.script.toBuffer().length),this}getSig(e,t=me.SIGHASH_ALL|me.SIGHASH_FORKID,n,x,T=je.SCRIPT_ENABLE_SIGHASH_FORKID){let W;if(t&me.SIGHASH_FORKID&&T&je.SCRIPT_ENABLE_SIGHASH_FORKID){const ee=this.tx.txIns[n].txHashBuf,pe=this.tx.txIns[n].txOutNum,be=this.uTxOutMap.get(ee,pe);if(!be)throw new Error("for SIGHASH_FORKID must provide UTXOs");W=be.valueBn}return this.tx.sign(e,t,n,x,W,T,this.hashCache)}asyncGetSig(e,t=me.SIGHASH_ALL|me.SIGHASH_FORKID,n,x,T=je.SCRIPT_ENABLE_SIGHASH_FORKID){let W;if(t&me.SIGHASH_FORKID&&T&je.SCRIPT_ENABLE_SIGHASH_FORKID){const ee=this.tx.txIns[n].txHashBuf,pe=this.tx.txIns[n].txOutNum,be=this.uTxOutMap.get(ee,pe);if(!be)throw new Error("for SIGHASH_FORKID must provide UTXOs");W=be.valueBn}return this.tx.asyncSign(e,t,n,x,W,T,this.hashCache)}signTxIn(e,t,n,x,T=me.SIGHASH_ALL|me.SIGHASH_FORKID,W=je.SCRIPT_ENABLE_SIGHASH_FORKID){const ee=this.tx.txIns[e],pe=ee.script;if(x===void 0&&pe.isPubKeyHashIn()&&(x=0),x===void 0)throw new Error("cannot sign unknown script type for input "+e);const be=ee.txHashBuf,Pe=ee.txOutNum;n||(n=this.uTxOutMap.get(be,Pe));const Fe=n.script,ht=this.getSig(t,T,e,Fe,W,this.hashCache);return this.fillSig(e,x,ht),this}async asyncSignTxIn(e,t,n,x,T=me.SIGHASH_ALL|me.SIGHASH_FORKID,W=je.SCRIPT_ENABLE_SIGHASH_FORKID){const ee=this.tx.txIns[e],pe=ee.script;if(x===void 0&&pe.isPubKeyHashIn()&&(x=0),x===void 0)throw new Error("cannot sign unknown script type for input "+e);const be=ee.txHashBuf,Pe=ee.txOutNum;n||(n=this.uTxOutMap.get(be,Pe));const Fe=n.script,ht=await this.asyncGetSig(t,T,e,Fe,W,this.hashCache);return this.fillSig(e,x,ht),this}signWithKeyPairs(e){const t={};for(const n of e){const x=Te.fromPubKey(n.pubKey).toString();t[x]=n}for(const n in this.tx.txIns){const x=this.tx.txIns[n],T=this.sigOperations.get(x.txHashBuf,x.txOutNum);for(const W of T){const{nScriptChunk:ee,type:pe,addressStr:be,nHashType:Pe}=W,ke=t[be];if(!ke){W.log=`cannot find keyPair for addressStr ${be}`;continue}const Fe=this.uTxOutMap.get(x.txHashBuf,x.txOutNum);if(pe==="sig")this.signTxIn(n,ke,Fe,ee,Pe),W.log="successfully inserted signature";else if(pe==="pubKey")x.script.chunks[ee]=new Ae().writeBuffer(ke.pubKey.toBuffer()).chunks[0],x.setScript(x.script),W.log="successfully inserted public key";else{W.log=`cannot perform operation of type ${pe}`;continue}}}return this}}class $e extends V{static{r(this,"TxVerifier")}constructor(e,t,n,x){super({tx:e,txOutMap:t,errStr:n,interp:x})}verify(e=he.SCRIPT_ENABLE_SIGHASH_FORKID){return!this.checkStr()&&!this.verifyStr(e)}async asyncVerify(e){const t=await this.asyncVerifyStr(e);return!this.checkStr()&&!t}static verify(e,t,n){return new $e(e,t).verify(n)}static asyncVerify(e,t,n){return new $e(e,t).asyncVerify(n)}checkStr(){if(this.tx.txIns.length===0||this.tx.txInsVi.toNumber()===0)return this.errStr="transaction txIns empty",this.errStr;if(this.tx.txOuts.length===0||this.tx.txOutsVi.toNumber()===0)return this.errStr="transaction txOuts empty",this.errStr;if(this.tx.toBuffer().length>et.MAX_BLOCK_SIZE)return this.errStr="transaction over the maximum block size",this.errStr;let e=new l(0);for(let n=0;n<this.tx.txOuts.length;n++){const x=this.tx.txOuts[n];if(x.valueBn.lt(0))return this.errStr="transaction txOut "+n+" negative",this.errStr;if(x.valueBn.gt(je.MAX_MONEY))return this.errStr="transaction txOut "+n+" greater than MAX_MONEY",this.errStr;if(e=e.add(x.valueBn),e.gt(je.MAX_MONEY))return this.errStr="transaction txOut "+n+" total output greater than MAX_MONEY",this.errStr}const t={};for(let n=0;n<this.tx.txIns.length;n++){const x=this.tx.txIns[n],T=x.txHashBuf.toString("hex")+":"+x.txOutNum;if(t[T]!==void 0)return this.errStr="transaction input "+n+" duplicate input",this.errStr;t[T]=!0}if(this.tx.isCoinbase()){const n=this.tx.txIns[0].script.toBuffer();if(n.length<2||n.length>100)return this.errStr="coinbase trasaction script size invalid",this.errStr}else for(let n=0;n<this.tx.txIns.length;n++)if(this.tx.txIns[n].hasNullInput())return this.errStr="transaction input "+n+" has null input",this.errStr;return!1}verifyStr(e){for(let t=0;t<this.tx.txIns.length;t++)if(!this.verifyNIn(t,e))return this.errStr="input "+t+" failed script verify",this.errStr;return!1}async asyncVerifyStr(e){for(let t=0;t<this.tx.txIns.length;t++)if(!await this.asyncVerifyNIn(t,e))return this.errStr="input "+t+" failed script verify",this.errStr;return!1}verifyNIn(e,t){const n=this.tx.txIns[e],x=n.script,T=this.txOutMap.get(n.txHashBuf,n.txOutNum);if(!T)return console.log("output "+n.txOutNum+" not found"),!1;const W=T.script,ee=T.valueBn;return this.interp=new he,this.interp.verify(x,W,this.tx,e,t,ee)}async asyncVerifyNIn(e,t){const n=this.tx.txIns[e],x=n.script,T=this.txOutMap.get(n.txHashBuf,n.txOutNum);if(!T)return console.log("output "+n.txOutNum+" not found"),!1;const W=T.script,ee=T.valueBn;this.interp=new he;const pe=await i.asyncObjectMethod(this.interp,"verify",[x,W,this.tx,e,t,ee]);return JSON.parse(pe.resbuf.toString())}getDebugObject(){return{errStr:this.errStr,interpFailure:this.interp?this.interp.getDebugObject():void 0}}getDebugString(){return JSON.stringify(this.getDebugObject(),null,2)}}var Ct=Be(8764).Buffer;class Ke{static{r(this,"Aes")}}Ke.encrypt=function(O,e){const t=Ke.buf2Words(e),n=Ke.buf2Words(O),T=new($())(t).encrypt(n);return Ke.words2Buf(T)},Ke.decrypt=function(O,e){const t=Ke.buf2Words(O),n=Ke.buf2Words(e),T=new($())(n).decrypt(t);return Ke.words2Buf(T)},Ke.buf2Words=function(O){if(O.length%4)throw new Error("buf length must be a multiple of 4");const e=[];for(let t=0;t<O.length/4;t++)e.push(O.readUInt32BE(t*4));return e},Ke.words2Buf=function(O){const e=Ct.alloc(O.length*4);for(let t=0;t<O.length;t++)e.writeUInt32BE(O[t],t*4);return e};var qe=Be(8764).Buffer;class Ge{static{r(this,"Cbc")}}Ge.buf2BlocksBuf=function(O,e){const t=e/8,n=[];for(let x=0;x<=O.length/t;x++){let T=O.slice(x*t,x*t+t);T.length<e&&(T=Ge.pkcs7Pad(T,e)),n.push(T)}return n},Ge.blockBufs2Buf=function(O){let e=O[O.length-1];return e=Ge.pkcs7Unpad(e),O[O.length-1]=e,qe.concat(O)},Ge.encrypt=function(O,e,t,n){const x=e.length*8,T=Ge.buf2BlocksBuf(O,x),W=Ge.encryptBlocks(T,e,t,n);return qe.concat(W)},Ge.decrypt=function(O,e,t,n){const x=e.length,T=[];for(let pe=0;pe<O.length/x;pe++)T.push(O.slice(pe*x,pe*x+x));const W=Ge.decryptBlocks(T,e,t,n);return Ge.blockBufs2Buf(W)},Ge.encryptBlock=function(O,e,t,n){const x=Ge.xorBufs(O,e);return t.encrypt(x,n)},Ge.decryptBlock=function(O,e,t,n){const x=t.decrypt(O,n);return Ge.xorBufs(x,e)},Ge.encryptBlocks=function(O,e,t,n){const x=[];for(let T=0;T<O.length;T++){const W=O[T],ee=Ge.encryptBlock(W,e,t,n);x.push(ee),e=ee}return x},Ge.decryptBlocks=function(O,e,t,n){const x=[];for(let T=0;T<O.length;T++){const W=O[T],ee=Ge.decryptBlock(W,e,t,n);x.push(ee),e=W}return x},Ge.pkcs7Pad=function(O,e){const n=e/8-O.length,x=qe.alloc(n);return x.fill(n),qe.concat([O,x])},Ge.pkcs7Unpad=function(O){const e=O[O.length-1],t=O.slice(O.length-e,O.length),n=qe.alloc(e);if(n.fill(e),!oe(t,n))throw new Error("invalid padding");return O.slice(0,O.length-e)},Ge.xorBufs=function(O,e){if(O.length!==e.length)throw new Error("bufs must have the same length");const t=qe.alloc(O.length);for(let n=0;n<O.length;n++)t[n]=O[n]^e[n];return t};var At=Be(8764).Buffer;class pt{static{r(this,"Aescbc")}}pt.encrypt=function(O,e,t,n=!0){t=t||ve.getRandomBuffer(128/8);const x=Ge.encrypt(O,t,Ke,e);return n?At.concat([t,x]):x},pt.decrypt=function(O,e,t=!1){if(t){const n=O;return Ge.decrypt(n,t,Ke,e)}else{const n=O.slice(0,16),x=O.slice(128/8);return Ge.decrypt(x,n,Ke,e)}};var Pt=Be(8764).Buffer;class mt{static{r(this,"Ach")}}mt.encrypt=function(O,e,t){const n=pt.encrypt(O,e,t),x=c.sha256Hmac(n,e);return Pt.concat([x,n])},mt.asyncEncrypt=async function(O,e,t){t||(t=ve.getRandomBuffer(128/8));const n=[O,e,t];return(await i.asyncClassMethod(mt,"encrypt",n)).resbuf},mt.decrypt=function(O,e){if(O.length<512/8)throw new Error("The encrypted data must be at least 256+128+128 bits, which is the length of the Hmac plus the iv plus the smallest encrypted data size");const t=O.slice(0,256/8);O=O.slice(256/8,O.length);const n=c.sha256Hmac(O,e);if(!oe(t,n))throw new Error("Message authentication failed - Hmacs are not equivalent");return pt.decrypt(O,e)},mt.asyncDecrypt=async function(O,e){const t=[O,e];return(await i.asyncClassMethod(mt,"decrypt",t)).resbuf};var bt=Be(8764).Buffer;class ut{static{r(this,"Ecies")}}ut.ivkEkM=function(O,e){const t=O.bn,x=e.point.mul(t),W=new K(x).toBuffer(),ee=c.sha512(W);return{iv:ee.slice(0,16),kE:ee.slice(16,32),kM:ee.slice(32,64)}},ut.electrumEncrypt=function(O,e,t,n=!1){if(!bt.isBuffer(O))throw new Error("messageBuf must be a buffer");let x;t===null&&(t=ne.fromRandom()),n||(x=t.pubKey.toDer(!0));const{iv:T,kE:W,kM:ee}=ut.ivkEkM(t.privKey,e),pe=pt.encrypt(O,W,T,!1),be=bt.from("BIE1");let Pe;x?Pe=bt.concat([be,x,pe]):Pe=bt.concat([be,pe]);const ke=c.sha256Hmac(Pe,ee);return bt.concat([Pe,ke])},ut.electrumDecrypt=function(O,e,t=null){if(!bt.isBuffer(O))throw new Error("encBuf must be a buffer");const n=32;if(!O.slice(0,4).equals(bt.from("BIE1")))throw new Error("Invalid Magic");let T=4;if(t===null){const Fe=O.slice(4,37);t=K.fromDer(Fe),T=37}const{iv:W,kE:ee,kM:pe}=ut.ivkEkM(e,t),be=O.slice(T,O.length-n),Pe=O.slice(O.length-n,O.length),ke=c.sha256Hmac(O.slice(0,O.length-n),pe);if(!Pe.equals(ke))throw new Error("Invalid checksum");return pt.decrypt(be,ee,W)},ut.bitcoreEncrypt=function(O,e,t,n){t||(t=ne.fromRandom());const x=t.privKey.bn,W=t.pubKey.toDer(!0),Pe=e.point.mul(x).getX().toBuffer({size:32}),ke=c.sha512(Pe),Fe=ke.slice(0,32),ht=ke.slice(32,64),ct=pt.encrypt(O,Fe,n),ft=c.sha256Hmac(ct,ht);return bt.concat([W,ct,ft])},ut.asyncBitcoreEncrypt=async function(O,e,t,n){t||(t=await ne.asyncFromRandom()),n||(n=ve.getRandomBuffer(128/8));const x=[O,e,t,n];return(await i.asyncClassMethod(ut,"bitcoreEncrypt",x)).resbuf},ut.bitcoreDecrypt=function(O,e){const t=e.bn,T=K.fromDer(O.slice(0,33)).point.mul(t);if(T.eq(new ce))throw new Error("P equals 0");const ee=T.getX().toBuffer({size:32}),pe=c.sha512(ee),be=pe.slice(0,32),Pe=pe.slice(32,64),ke=O.slice(33,O.length-32),Fe=O.slice(O.length-32,O.length),ht=c.sha256Hmac(ke,Pe);if(!oe(Fe,ht))throw new Error("Invalid checksum");return pt.decrypt(ke,be)},ut.asyncBitcoreDecrypt=async function(O,e){const t=[O,e];return(await i.asyncClassMethod(ut,"bitcoreDecrypt",t)).resbuf};const Nt={aes:$(),bnjs:_(),bs58:z(),elliptic:d(),hashjs:m(),pbkdf2:B,Buffer:N.Buffer},Mt=p.i8})(),Ft})());