@permaweb/libs 0.0.60 → 0.0.61
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.
- package/dist/index.cjs +2 -1
- package/dist/index.esm.js +2 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -6,7 +6,7 @@ ${JSON.stringify(at.from(s))},${JSON.stringify(at.from(c))},${d} => ${JSON.strin
|
|
|
6
6
|
`,d=`
|
|
7
7
|
-----END RSA `+c+` KEY-----
|
|
8
8
|
`,v=at.alloc(0);s?(n.version="two-prime",v=rW.encode(n,"der")):v=Qj.encode(n,"der");var y=v.toString("base64").match(/.{1,64}/g).join(`
|
|
9
|
-
`);return a+y+d}});var uW=St((c7e,Bm)=>{var d7e=me(Me());xe();_e();(function(){"use strict";var i="input is invalid type",n="finalize already called",s=typeof window=="object",c=s?window:{};c.JS_SHA3_NO_WINDOW&&(s=!1);var a=!s&&typeof self=="object",d=!c.JS_SHA3_NO_NODE_JS&&typeof ot.default=="object"&&ot.default.versions&&ot.default.versions.node;d?c=globalThis:a&&(c=self);var v=!c.JS_SHA3_NO_COMMON_JS&&typeof Bm=="object"&&Bm.exports,y=typeof define=="function"&&define.amd,M=!c.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",w="0123456789abcdef".split(""),b=[31,7936,2031616,520093696],_=[4,1024,262144,67108864],x=[1,256,65536,16777216],S=[6,1536,393216,100663296],I=[0,8,16,24],R=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],N=[224,256,384,512],P=[128,256],L=["hex","buffer","arrayBuffer","array","digest"],D={128:168,256:136};(c.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(z){return Object.prototype.toString.call(z)==="[object Array]"}),M&&(c.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(z){return typeof z=="object"&&z.buffer&&z.buffer.constructor===ArrayBuffer});for(var Z=function(z,ee,te){return function(O){return new B(z,ee,z).update(O)[te]()}},W=function(z,ee,te){return function(O,U){return new B(z,ee,U).update(O)[te]()}},Q=function(z,ee,te){return function(O,U,oe,X){return f["cshake"+z].update(O,U,oe,X)[te]()}},K=function(z,ee,te){return function(O,U,oe,X){return f["kmac"+z].update(O,U,oe,X)[te]()}},F=function(z,ee,te,O){for(var U=0;U<L.length;++U){var oe=L[U];z[oe]=ee(te,O,oe)}return z},Y=function(z,ee){var te=Z(z,ee,"hex");return te.create=function(){return new B(z,ee,z)},te.update=function(O){return te.create().update(O)},F(te,Z,z,ee)},m=function(z,ee){var te=W(z,ee,"hex");return te.create=function(O){return new B(z,ee,O)},te.update=function(O,U){return te.create(U).update(O)},F(te,W,z,ee)},e=function(z,ee){var te=D[z],O=Q(z,ee,"hex");return O.create=function(U,oe,X){return!oe&&!X?f["shake"+z].create(U):new B(z,ee,U).bytepad([oe,X],te)},O.update=function(U,oe,X,j){return O.create(oe,X,j).update(U)},F(O,Q,z,ee)},r=function(z,ee){var te=D[z],O=K(z,ee,"hex");return O.create=function(U,oe,X){return new k(z,ee,oe).bytepad(["KMAC",X],te).bytepad([U],te)},O.update=function(U,oe,X,j){return O.create(U,X,j).update(oe)},F(O,K,z,ee)},o=[{name:"keccak",padding:x,bits:N,createMethod:Y},{name:"sha3",padding:S,bits:N,createMethod:Y},{name:"shake",padding:b,bits:P,createMethod:m},{name:"cshake",padding:_,bits:P,createMethod:e},{name:"kmac",padding:_,bits:P,createMethod:r}],f={},h=[],p=0;p<o.length;++p)for(var g=o[p],l=g.bits,t=0;t<l.length;++t){var u=g.name+"_"+l[t];if(h.push(u),f[u]=g.createMethod(l[t],g.padding),g.name!=="sha3"){var E=g.name+l[t];h.push(E),f[E]=f[u]}}function B(z,ee,te){this.blocks=[],this.s=[],this.padding=ee,this.outputBits=te,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(z<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=te>>5,this.extraBytes=(te&31)>>3;for(var O=0;O<50;++O)this.s[O]=0}B.prototype.update=function(z){if(this.finalized)throw new Error(n);var ee,te=typeof z;if(te!=="string"){if(te==="object"){if(z===null)throw new Error(i);if(M&&z.constructor===ArrayBuffer)z=new Uint8Array(z);else if(!Array.isArray(z)&&(!M||!ArrayBuffer.isView(z)))throw new Error(i)}else throw new Error(i);ee=!0}for(var O=this.blocks,U=this.byteCount,oe=z.length,X=this.blockCount,j=0,V=this.s,G,ie;j<oe;){if(this.reset)for(this.reset=!1,O[0]=this.block,G=1;G<X+1;++G)O[G]=0;if(ee)for(G=this.start;j<oe&&G<U;++j)O[G>>2]|=z[j]<<I[G++&3];else for(G=this.start;j<oe&&G<U;++j)ie=z.charCodeAt(j),ie<128?O[G>>2]|=ie<<I[G++&3]:ie<2048?(O[G>>2]|=(192|ie>>6)<<I[G++&3],O[G>>2]|=(128|ie&63)<<I[G++&3]):ie<55296||ie>=57344?(O[G>>2]|=(224|ie>>12)<<I[G++&3],O[G>>2]|=(128|ie>>6&63)<<I[G++&3],O[G>>2]|=(128|ie&63)<<I[G++&3]):(ie=65536+((ie&1023)<<10|z.charCodeAt(++j)&1023),O[G>>2]|=(240|ie>>18)<<I[G++&3],O[G>>2]|=(128|ie>>12&63)<<I[G++&3],O[G>>2]|=(128|ie>>6&63)<<I[G++&3],O[G>>2]|=(128|ie&63)<<I[G++&3]);if(this.lastByteIndex=G,G>=U){for(this.start=G-U,this.block=O[X],G=0;G<X;++G)V[G]^=O[G];q(V),this.reset=!0}else this.start=G}return this},B.prototype.encode=function(z,ee){var te=z&255,O=1,U=[te];for(z=z>>8,te=z&255;te>0;)U.unshift(te),z=z>>8,te=z&255,++O;return ee?U.push(O):U.unshift(O),this.update(U),U.length},B.prototype.encodeString=function(z){var ee,te=typeof z;if(te!=="string"){if(te==="object"){if(z===null)throw new Error(i);if(M&&z.constructor===ArrayBuffer)z=new Uint8Array(z);else if(!Array.isArray(z)&&(!M||!ArrayBuffer.isView(z)))throw new Error(i)}else throw new Error(i);ee=!0}var O=0,U=z.length;if(ee)O=U;else for(var oe=0;oe<z.length;++oe){var X=z.charCodeAt(oe);X<128?O+=1:X<2048?O+=2:X<55296||X>=57344?O+=3:(X=65536+((X&1023)<<10|z.charCodeAt(++oe)&1023),O+=4)}return O+=this.encode(O*8),this.update(z),O},B.prototype.bytepad=function(z,ee){for(var te=this.encode(ee),O=0;O<z.length;++O)te+=this.encodeString(z[O]);var U=ee-te%ee,oe=[];return oe.length=U,this.update(oe),this},B.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var z=this.blocks,ee=this.lastByteIndex,te=this.blockCount,O=this.s;if(z[ee>>2]|=this.padding[ee&3],this.lastByteIndex===this.byteCount)for(z[0]=z[te],ee=1;ee<te+1;++ee)z[ee]=0;for(z[te-1]|=2147483648,ee=0;ee<te;++ee)O[ee]^=z[ee];q(O)}},B.prototype.toString=B.prototype.hex=function(){this.finalize();for(var z=this.blockCount,ee=this.s,te=this.outputBlocks,O=this.extraBytes,U=0,oe=0,X="",j;oe<te;){for(U=0;U<z&&oe<te;++U,++oe)j=ee[U],X+=w[j>>4&15]+w[j&15]+w[j>>12&15]+w[j>>8&15]+w[j>>20&15]+w[j>>16&15]+w[j>>28&15]+w[j>>24&15];oe%z===0&&(q(ee),U=0)}return O&&(j=ee[U],X+=w[j>>4&15]+w[j&15],O>1&&(X+=w[j>>12&15]+w[j>>8&15]),O>2&&(X+=w[j>>20&15]+w[j>>16&15])),X},B.prototype.arrayBuffer=function(){this.finalize();var z=this.blockCount,ee=this.s,te=this.outputBlocks,O=this.extraBytes,U=0,oe=0,X=this.outputBits>>3,j;O?j=new ArrayBuffer(te+1<<2):j=new ArrayBuffer(X);for(var V=new Uint32Array(j);oe<te;){for(U=0;U<z&&oe<te;++U,++oe)V[oe]=ee[U];oe%z===0&&q(ee)}return O&&(V[U]=ee[U],j=j.slice(0,X)),j},B.prototype.buffer=B.prototype.arrayBuffer,B.prototype.digest=B.prototype.array=function(){this.finalize();for(var z=this.blockCount,ee=this.s,te=this.outputBlocks,O=this.extraBytes,U=0,oe=0,X=[],j,V;oe<te;){for(U=0;U<z&&oe<te;++U,++oe)j=oe<<2,V=ee[U],X[j]=V&255,X[j+1]=V>>8&255,X[j+2]=V>>16&255,X[j+3]=V>>24&255;oe%z===0&&q(ee)}return O&&(j=oe<<2,V=ee[U],X[j]=V&255,O>1&&(X[j+1]=V>>8&255),O>2&&(X[j+2]=V>>16&255)),X};function k(z,ee,te){B.call(this,z,ee,te)}k.prototype=new B,k.prototype.finalize=function(){return this.encode(this.outputBits,!0),B.prototype.finalize.call(this)};var q=function(z){var ee,te,O,U,oe,X,j,V,G,ie,ge,re,ae,we,fe,he,nt,de,be,ut,$,A,T,C,H,ne,J,ce,ft,le,ve,st,Se,Le,mt,Ee,Ne,bt,Be,Ce,vt,se,ue,ht,pe,Ie,ct,ye,De,dt,Ae,Oe,gt,Re,$e,pt,lt,yt,xt,Mt,Et,At,Bt;for(O=0;O<48;O+=2)U=z[0]^z[10]^z[20]^z[30]^z[40],oe=z[1]^z[11]^z[21]^z[31]^z[41],X=z[2]^z[12]^z[22]^z[32]^z[42],j=z[3]^z[13]^z[23]^z[33]^z[43],V=z[4]^z[14]^z[24]^z[34]^z[44],G=z[5]^z[15]^z[25]^z[35]^z[45],ie=z[6]^z[16]^z[26]^z[36]^z[46],ge=z[7]^z[17]^z[27]^z[37]^z[47],re=z[8]^z[18]^z[28]^z[38]^z[48],ae=z[9]^z[19]^z[29]^z[39]^z[49],ee=re^(X<<1|j>>>31),te=ae^(j<<1|X>>>31),z[0]^=ee,z[1]^=te,z[10]^=ee,z[11]^=te,z[20]^=ee,z[21]^=te,z[30]^=ee,z[31]^=te,z[40]^=ee,z[41]^=te,ee=U^(V<<1|G>>>31),te=oe^(G<<1|V>>>31),z[2]^=ee,z[3]^=te,z[12]^=ee,z[13]^=te,z[22]^=ee,z[23]^=te,z[32]^=ee,z[33]^=te,z[42]^=ee,z[43]^=te,ee=X^(ie<<1|ge>>>31),te=j^(ge<<1|ie>>>31),z[4]^=ee,z[5]^=te,z[14]^=ee,z[15]^=te,z[24]^=ee,z[25]^=te,z[34]^=ee,z[35]^=te,z[44]^=ee,z[45]^=te,ee=V^(re<<1|ae>>>31),te=G^(ae<<1|re>>>31),z[6]^=ee,z[7]^=te,z[16]^=ee,z[17]^=te,z[26]^=ee,z[27]^=te,z[36]^=ee,z[37]^=te,z[46]^=ee,z[47]^=te,ee=ie^(U<<1|oe>>>31),te=ge^(oe<<1|U>>>31),z[8]^=ee,z[9]^=te,z[18]^=ee,z[19]^=te,z[28]^=ee,z[29]^=te,z[38]^=ee,z[39]^=te,z[48]^=ee,z[49]^=te,we=z[0],fe=z[1],Ie=z[11]<<4|z[10]>>>28,ct=z[10]<<4|z[11]>>>28,ce=z[20]<<3|z[21]>>>29,ft=z[21]<<3|z[20]>>>29,Mt=z[31]<<9|z[30]>>>23,Et=z[30]<<9|z[31]>>>23,se=z[40]<<18|z[41]>>>14,ue=z[41]<<18|z[40]>>>14,Le=z[2]<<1|z[3]>>>31,mt=z[3]<<1|z[2]>>>31,he=z[13]<<12|z[12]>>>20,nt=z[12]<<12|z[13]>>>20,ye=z[22]<<10|z[23]>>>22,De=z[23]<<10|z[22]>>>22,le=z[33]<<13|z[32]>>>19,ve=z[32]<<13|z[33]>>>19,At=z[42]<<2|z[43]>>>30,Bt=z[43]<<2|z[42]>>>30,Re=z[5]<<30|z[4]>>>2,$e=z[4]<<30|z[5]>>>2,Ee=z[14]<<6|z[15]>>>26,Ne=z[15]<<6|z[14]>>>26,de=z[25]<<11|z[24]>>>21,be=z[24]<<11|z[25]>>>21,dt=z[34]<<15|z[35]>>>17,Ae=z[35]<<15|z[34]>>>17,st=z[45]<<29|z[44]>>>3,Se=z[44]<<29|z[45]>>>3,C=z[6]<<28|z[7]>>>4,H=z[7]<<28|z[6]>>>4,pt=z[17]<<23|z[16]>>>9,lt=z[16]<<23|z[17]>>>9,bt=z[26]<<25|z[27]>>>7,Be=z[27]<<25|z[26]>>>7,ut=z[36]<<21|z[37]>>>11,$=z[37]<<21|z[36]>>>11,Oe=z[47]<<24|z[46]>>>8,gt=z[46]<<24|z[47]>>>8,ht=z[8]<<27|z[9]>>>5,pe=z[9]<<27|z[8]>>>5,ne=z[18]<<20|z[19]>>>12,J=z[19]<<20|z[18]>>>12,yt=z[29]<<7|z[28]>>>25,xt=z[28]<<7|z[29]>>>25,Ce=z[38]<<8|z[39]>>>24,vt=z[39]<<8|z[38]>>>24,A=z[48]<<14|z[49]>>>18,T=z[49]<<14|z[48]>>>18,z[0]=we^~he&de,z[1]=fe^~nt&be,z[10]=C^~ne&ce,z[11]=H^~J&ft,z[20]=Le^~Ee&bt,z[21]=mt^~Ne&Be,z[30]=ht^~Ie&ye,z[31]=pe^~ct&De,z[40]=Re^~pt&yt,z[41]=$e^~lt&xt,z[2]=he^~de&ut,z[3]=nt^~be&$,z[12]=ne^~ce&le,z[13]=J^~ft&ve,z[22]=Ee^~bt&Ce,z[23]=Ne^~Be&vt,z[32]=Ie^~ye&dt,z[33]=ct^~De&Ae,z[42]=pt^~yt&Mt,z[43]=lt^~xt&Et,z[4]=de^~ut&A,z[5]=be^~$&T,z[14]=ce^~le&st,z[15]=ft^~ve&Se,z[24]=bt^~Ce&se,z[25]=Be^~vt&ue,z[34]=ye^~dt&Oe,z[35]=De^~Ae>,z[44]=yt^~Mt&At,z[45]=xt^~Et&Bt,z[6]=ut^~A&we,z[7]=$^~T&fe,z[16]=le^~st&C,z[17]=ve^~Se&H,z[26]=Ce^~se&Le,z[27]=vt^~ue&mt,z[36]=dt^~Oe&ht,z[37]=Ae^~gt&pe,z[46]=Mt^~At&Re,z[47]=Et^~Bt&$e,z[8]=A^~we&he,z[9]=T^~fe&nt,z[18]=st^~C&ne,z[19]=Se^~H&J,z[28]=se^~Le&Ee,z[29]=ue^~mt&Ne,z[38]=Oe^~ht&Ie,z[39]=gt^~pe&ct,z[48]=At^~Re&pt,z[49]=Bt^~$e<,z[0]^=R[O],z[1]^=R[O+1]};if(v)Bm.exports=f;else{for(p=0;p<h.length;++p)c[h[p]]=f[h[p]];y&&define(function(){return f})}})()});var lp=St((MW,p5)=>{var U7e=me(Me());xe();_e();(function(i,n){"use strict";function s(o,f){if(!o)throw new Error(f||"Assertion failed")}function c(o,f){o.super_=f;var h=function(){};h.prototype=f.prototype,o.prototype=new h,o.prototype.constructor=o}function a(o,f,h){if(a.isBN(o))return o;this.negative=0,this.words=null,this.length=0,this.red=null,o!==null&&((f==="le"||f==="be")&&(h=f,f=10),this._init(o||0,f||10,h||"be"))}typeof i=="object"?i.exports=a:n.BN=a,a.BN=a,a.wordSize=26;var d;try{typeof window<"u"&&typeof window.Buffer<"u"?d=window.Buffer:d=bm().Buffer}catch{}a.isBN=function(f){return f instanceof a?!0:f!==null&&typeof f=="object"&&f.constructor.wordSize===a.wordSize&&Array.isArray(f.words)},a.max=function(f,h){return f.cmp(h)>0?f:h},a.min=function(f,h){return f.cmp(h)<0?f:h},a.prototype._init=function(f,h,p){if(typeof f=="number")return this._initNumber(f,h,p);if(typeof f=="object")return this._initArray(f,h,p);h==="hex"&&(h=16),s(h===(h|0)&&h>=2&&h<=36),f=f.toString().replace(/\s+/g,"");var g=0;f[0]==="-"&&(g++,this.negative=1),g<f.length&&(h===16?this._parseHex(f,g,p):(this._parseBase(f,h,g),p==="le"&&this._initArray(this.toArray(),h,p)))},a.prototype._initNumber=function(f,h,p){f<0&&(this.negative=1,f=-f),f<67108864?(this.words=[f&67108863],this.length=1):f<4503599627370496?(this.words=[f&67108863,f/67108864&67108863],this.length=2):(s(f<9007199254740992),this.words=[f&67108863,f/67108864&67108863,1],this.length=3),p==="le"&&this._initArray(this.toArray(),h,p)},a.prototype._initArray=function(f,h,p){if(s(typeof f.length=="number"),f.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(f.length/3),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var l,t,u=0;if(p==="be")for(g=f.length-1,l=0;g>=0;g-=3)t=f[g]|f[g-1]<<8|f[g-2]<<16,this.words[l]|=t<<u&67108863,this.words[l+1]=t>>>26-u&67108863,u+=24,u>=26&&(u-=26,l++);else if(p==="le")for(g=0,l=0;g<f.length;g+=3)t=f[g]|f[g+1]<<8|f[g+2]<<16,this.words[l]|=t<<u&67108863,this.words[l+1]=t>>>26-u&67108863,u+=24,u>=26&&(u-=26,l++);return this._strip()};function v(o,f){var h=o.charCodeAt(f);if(h>=48&&h<=57)return h-48;if(h>=65&&h<=70)return h-55;if(h>=97&&h<=102)return h-87;s(!1,"Invalid character in "+o)}function y(o,f,h){var p=v(o,h);return h-1>=f&&(p|=v(o,h-1)<<4),p}a.prototype._parseHex=function(f,h,p){this.length=Math.ceil((f.length-h)/6),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var l=0,t=0,u;if(p==="be")for(g=f.length-1;g>=h;g-=2)u=y(f,h,g)<<l,this.words[t]|=u&67108863,l>=18?(l-=18,t+=1,this.words[t]|=u>>>26):l+=8;else{var E=f.length-h;for(g=E%2===0?h+1:h;g<f.length;g+=2)u=y(f,h,g)<<l,this.words[t]|=u&67108863,l>=18?(l-=18,t+=1,this.words[t]|=u>>>26):l+=8}this._strip()};function M(o,f,h,p){for(var g=0,l=0,t=Math.min(o.length,h),u=f;u<t;u++){var E=o.charCodeAt(u)-48;g*=p,E>=49?l=E-49+10:E>=17?l=E-17+10:l=E,s(E>=0&&l<p,"Invalid character"),g+=l}return g}a.prototype._parseBase=function(f,h,p){this.words=[0],this.length=1;for(var g=0,l=1;l<=67108863;l*=h)g++;g--,l=l/h|0;for(var t=f.length-p,u=t%g,E=Math.min(t,t-u)+p,B=0,k=p;k<E;k+=g)B=M(f,k,k+g,h),this.imuln(l),this.words[0]+B<67108864?this.words[0]+=B:this._iaddn(B);if(u!==0){var q=1;for(B=M(f,k,f.length,h),k=0;k<u;k++)q*=h;this.imuln(q),this.words[0]+B<67108864?this.words[0]+=B:this._iaddn(B)}this._strip()},a.prototype.copy=function(f){f.words=new Array(this.length);for(var h=0;h<this.length;h++)f.words[h]=this.words[h];f.length=this.length,f.negative=this.negative,f.red=this.red};function w(o,f){o.words=f.words,o.length=f.length,o.negative=f.negative,o.red=f.red}if(a.prototype._move=function(f){w(f,this)},a.prototype.clone=function(){var f=new a(null);return this.copy(f),f},a.prototype._expand=function(f){for(;this.length<f;)this.words[this.length++]=0;return this},a.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=b}catch{a.prototype.inspect=b}else a.prototype.inspect=b;function b(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var _=["","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"],x=[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],S=[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];a.prototype.toString=function(f,h){f=f||10,h=h|0||1;var p;if(f===16||f==="hex"){p="";for(var g=0,l=0,t=0;t<this.length;t++){var u=this.words[t],E=((u<<g|l)&16777215).toString(16);l=u>>>24-g&16777215,g+=2,g>=26&&(g-=26,t--),l!==0||t!==this.length-1?p=_[6-E.length]+E+p:p=E+p}for(l!==0&&(p=l.toString(16)+p);p.length%h!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}if(f===(f|0)&&f>=2&&f<=36){var B=x[f],k=S[f];p="";var q=this.clone();for(q.negative=0;!q.isZero();){var z=q.modrn(k).toString(f);q=q.idivn(k),q.isZero()?p=z+p:p=_[B-z.length]+z+p}for(this.isZero()&&(p="0"+p);p.length%h!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}s(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var f=this.words[0];return this.length===2?f+=this.words[1]*67108864:this.length===3&&this.words[2]===1?f+=4503599627370496+this.words[1]*67108864:this.length>2&&s(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-f:f},a.prototype.toJSON=function(){return this.toString(16,2)},d&&(a.prototype.toBuffer=function(f,h){return this.toArrayLike(d,f,h)}),a.prototype.toArray=function(f,h){return this.toArrayLike(Array,f,h)};var I=function(f,h){return f.allocUnsafe?f.allocUnsafe(h):new f(h)};a.prototype.toArrayLike=function(f,h,p){this._strip();var g=this.byteLength(),l=p||Math.max(1,g);s(g<=l,"byte array longer than desired length"),s(l>0,"Requested array length <= 0");var t=I(f,l),u=h==="le"?"LE":"BE";return this["_toArrayLike"+u](t,g),t},a.prototype._toArrayLikeLE=function(f,h){for(var p=0,g=0,l=0,t=0;l<this.length;l++){var u=this.words[l]<<t|g;f[p++]=u&255,p<f.length&&(f[p++]=u>>8&255),p<f.length&&(f[p++]=u>>16&255),t===6?(p<f.length&&(f[p++]=u>>24&255),g=0,t=0):(g=u>>>24,t+=2)}if(p<f.length)for(f[p++]=g;p<f.length;)f[p++]=0},a.prototype._toArrayLikeBE=function(f,h){for(var p=f.length-1,g=0,l=0,t=0;l<this.length;l++){var u=this.words[l]<<t|g;f[p--]=u&255,p>=0&&(f[p--]=u>>8&255),p>=0&&(f[p--]=u>>16&255),t===6?(p>=0&&(f[p--]=u>>24&255),g=0,t=0):(g=u>>>24,t+=2)}if(p>=0)for(f[p--]=g;p>=0;)f[p--]=0},Math.clz32?a.prototype._countBits=function(f){return 32-Math.clz32(f)}:a.prototype._countBits=function(f){var h=f,p=0;return h>=4096&&(p+=13,h>>>=13),h>=64&&(p+=7,h>>>=7),h>=8&&(p+=4,h>>>=4),h>=2&&(p+=2,h>>>=2),p+h},a.prototype._zeroBits=function(f){if(f===0)return 26;var h=f,p=0;return h&8191||(p+=13,h>>>=13),h&127||(p+=7,h>>>=7),h&15||(p+=4,h>>>=4),h&3||(p+=2,h>>>=2),h&1||p++,p},a.prototype.bitLength=function(){var f=this.words[this.length-1],h=this._countBits(f);return(this.length-1)*26+h};function R(o){for(var f=new Array(o.bitLength()),h=0;h<f.length;h++){var p=h/26|0,g=h%26;f[h]=o.words[p]>>>g&1}return f}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var f=0,h=0;h<this.length;h++){var p=this._zeroBits(this.words[h]);if(f+=p,p!==26)break}return f},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(f){return this.negative!==0?this.abs().inotn(f).iaddn(1):this.clone()},a.prototype.fromTwos=function(f){return this.testn(f-1)?this.notn(f).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(f){for(;this.length<f.length;)this.words[this.length++]=0;for(var h=0;h<f.length;h++)this.words[h]=this.words[h]|f.words[h];return this._strip()},a.prototype.ior=function(f){return s((this.negative|f.negative)===0),this.iuor(f)},a.prototype.or=function(f){return this.length>f.length?this.clone().ior(f):f.clone().ior(this)},a.prototype.uor=function(f){return this.length>f.length?this.clone().iuor(f):f.clone().iuor(this)},a.prototype.iuand=function(f){var h;this.length>f.length?h=f:h=this;for(var p=0;p<h.length;p++)this.words[p]=this.words[p]&f.words[p];return this.length=h.length,this._strip()},a.prototype.iand=function(f){return s((this.negative|f.negative)===0),this.iuand(f)},a.prototype.and=function(f){return this.length>f.length?this.clone().iand(f):f.clone().iand(this)},a.prototype.uand=function(f){return this.length>f.length?this.clone().iuand(f):f.clone().iuand(this)},a.prototype.iuxor=function(f){var h,p;this.length>f.length?(h=this,p=f):(h=f,p=this);for(var g=0;g<p.length;g++)this.words[g]=h.words[g]^p.words[g];if(this!==h)for(;g<h.length;g++)this.words[g]=h.words[g];return this.length=h.length,this._strip()},a.prototype.ixor=function(f){return s((this.negative|f.negative)===0),this.iuxor(f)},a.prototype.xor=function(f){return this.length>f.length?this.clone().ixor(f):f.clone().ixor(this)},a.prototype.uxor=function(f){return this.length>f.length?this.clone().iuxor(f):f.clone().iuxor(this)},a.prototype.inotn=function(f){s(typeof f=="number"&&f>=0);var h=Math.ceil(f/26)|0,p=f%26;this._expand(h),p>0&&h--;for(var g=0;g<h;g++)this.words[g]=~this.words[g]&67108863;return p>0&&(this.words[g]=~this.words[g]&67108863>>26-p),this._strip()},a.prototype.notn=function(f){return this.clone().inotn(f)},a.prototype.setn=function(f,h){s(typeof f=="number"&&f>=0);var p=f/26|0,g=f%26;return this._expand(p+1),h?this.words[p]=this.words[p]|1<<g:this.words[p]=this.words[p]&~(1<<g),this._strip()},a.prototype.iadd=function(f){var h;if(this.negative!==0&&f.negative===0)return this.negative=0,h=this.isub(f),this.negative^=1,this._normSign();if(this.negative===0&&f.negative!==0)return f.negative=0,h=this.isub(f),f.negative=1,h._normSign();var p,g;this.length>f.length?(p=this,g=f):(p=f,g=this);for(var l=0,t=0;t<g.length;t++)h=(p.words[t]|0)+(g.words[t]|0)+l,this.words[t]=h&67108863,l=h>>>26;for(;l!==0&&t<p.length;t++)h=(p.words[t]|0)+l,this.words[t]=h&67108863,l=h>>>26;if(this.length=p.length,l!==0)this.words[this.length]=l,this.length++;else if(p!==this)for(;t<p.length;t++)this.words[t]=p.words[t];return this},a.prototype.add=function(f){var h;return f.negative!==0&&this.negative===0?(f.negative=0,h=this.sub(f),f.negative^=1,h):f.negative===0&&this.negative!==0?(this.negative=0,h=f.sub(this),this.negative=1,h):this.length>f.length?this.clone().iadd(f):f.clone().iadd(this)},a.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var h=this.iadd(f);return f.negative=1,h._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var p=this.cmp(f);if(p===0)return this.negative=0,this.length=1,this.words[0]=0,this;var g,l;p>0?(g=this,l=f):(g=f,l=this);for(var t=0,u=0;u<l.length;u++)h=(g.words[u]|0)-(l.words[u]|0)+t,t=h>>26,this.words[u]=h&67108863;for(;t!==0&&u<g.length;u++)h=(g.words[u]|0)+t,t=h>>26,this.words[u]=h&67108863;if(t===0&&u<g.length&&g!==this)for(;u<g.length;u++)this.words[u]=g.words[u];return this.length=Math.max(this.length,u),g!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(f){return this.clone().isub(f)};function N(o,f,h){h.negative=f.negative^o.negative;var p=o.length+f.length|0;h.length=p,p=p-1|0;var g=o.words[0]|0,l=f.words[0]|0,t=g*l,u=t&67108863,E=t/67108864|0;h.words[0]=u;for(var B=1;B<p;B++){for(var k=E>>>26,q=E&67108863,z=Math.min(B,f.length-1),ee=Math.max(0,B-o.length+1);ee<=z;ee++){var te=B-ee|0;g=o.words[te]|0,l=f.words[ee]|0,t=g*l+q,k+=t/67108864|0,q=t&67108863}h.words[B]=q|0,E=k|0}return E!==0?h.words[B]=E|0:h.length--,h._strip()}var P=function(f,h,p){var g=f.words,l=h.words,t=p.words,u=0,E,B,k,q=g[0]|0,z=q&8191,ee=q>>>13,te=g[1]|0,O=te&8191,U=te>>>13,oe=g[2]|0,X=oe&8191,j=oe>>>13,V=g[3]|0,G=V&8191,ie=V>>>13,ge=g[4]|0,re=ge&8191,ae=ge>>>13,we=g[5]|0,fe=we&8191,he=we>>>13,nt=g[6]|0,de=nt&8191,be=nt>>>13,ut=g[7]|0,$=ut&8191,A=ut>>>13,T=g[8]|0,C=T&8191,H=T>>>13,ne=g[9]|0,J=ne&8191,ce=ne>>>13,ft=l[0]|0,le=ft&8191,ve=ft>>>13,st=l[1]|0,Se=st&8191,Le=st>>>13,mt=l[2]|0,Ee=mt&8191,Ne=mt>>>13,bt=l[3]|0,Be=bt&8191,Ce=bt>>>13,vt=l[4]|0,se=vt&8191,ue=vt>>>13,ht=l[5]|0,pe=ht&8191,Ie=ht>>>13,ct=l[6]|0,ye=ct&8191,De=ct>>>13,dt=l[7]|0,Ae=dt&8191,Oe=dt>>>13,gt=l[8]|0,Re=gt&8191,$e=gt>>>13,pt=l[9]|0,lt=pt&8191,yt=pt>>>13;p.negative=f.negative^h.negative,p.length=19,E=Math.imul(z,le),B=Math.imul(z,ve),B=B+Math.imul(ee,le)|0,k=Math.imul(ee,ve);var xt=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(xt>>>26)|0,xt&=67108863,E=Math.imul(O,le),B=Math.imul(O,ve),B=B+Math.imul(U,le)|0,k=Math.imul(U,ve),E=E+Math.imul(z,Se)|0,B=B+Math.imul(z,Le)|0,B=B+Math.imul(ee,Se)|0,k=k+Math.imul(ee,Le)|0;var Mt=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,E=Math.imul(X,le),B=Math.imul(X,ve),B=B+Math.imul(j,le)|0,k=Math.imul(j,ve),E=E+Math.imul(O,Se)|0,B=B+Math.imul(O,Le)|0,B=B+Math.imul(U,Se)|0,k=k+Math.imul(U,Le)|0,E=E+Math.imul(z,Ee)|0,B=B+Math.imul(z,Ne)|0,B=B+Math.imul(ee,Ee)|0,k=k+Math.imul(ee,Ne)|0;var Et=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Et>>>26)|0,Et&=67108863,E=Math.imul(G,le),B=Math.imul(G,ve),B=B+Math.imul(ie,le)|0,k=Math.imul(ie,ve),E=E+Math.imul(X,Se)|0,B=B+Math.imul(X,Le)|0,B=B+Math.imul(j,Se)|0,k=k+Math.imul(j,Le)|0,E=E+Math.imul(O,Ee)|0,B=B+Math.imul(O,Ne)|0,B=B+Math.imul(U,Ee)|0,k=k+Math.imul(U,Ne)|0,E=E+Math.imul(z,Be)|0,B=B+Math.imul(z,Ce)|0,B=B+Math.imul(ee,Be)|0,k=k+Math.imul(ee,Ce)|0;var At=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(At>>>26)|0,At&=67108863,E=Math.imul(re,le),B=Math.imul(re,ve),B=B+Math.imul(ae,le)|0,k=Math.imul(ae,ve),E=E+Math.imul(G,Se)|0,B=B+Math.imul(G,Le)|0,B=B+Math.imul(ie,Se)|0,k=k+Math.imul(ie,Le)|0,E=E+Math.imul(X,Ee)|0,B=B+Math.imul(X,Ne)|0,B=B+Math.imul(j,Ee)|0,k=k+Math.imul(j,Ne)|0,E=E+Math.imul(O,Be)|0,B=B+Math.imul(O,Ce)|0,B=B+Math.imul(U,Be)|0,k=k+Math.imul(U,Ce)|0,E=E+Math.imul(z,se)|0,B=B+Math.imul(z,ue)|0,B=B+Math.imul(ee,se)|0,k=k+Math.imul(ee,ue)|0;var Bt=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,E=Math.imul(fe,le),B=Math.imul(fe,ve),B=B+Math.imul(he,le)|0,k=Math.imul(he,ve),E=E+Math.imul(re,Se)|0,B=B+Math.imul(re,Le)|0,B=B+Math.imul(ae,Se)|0,k=k+Math.imul(ae,Le)|0,E=E+Math.imul(G,Ee)|0,B=B+Math.imul(G,Ne)|0,B=B+Math.imul(ie,Ee)|0,k=k+Math.imul(ie,Ne)|0,E=E+Math.imul(X,Be)|0,B=B+Math.imul(X,Ce)|0,B=B+Math.imul(j,Be)|0,k=k+Math.imul(j,Ce)|0,E=E+Math.imul(O,se)|0,B=B+Math.imul(O,ue)|0,B=B+Math.imul(U,se)|0,k=k+Math.imul(U,ue)|0,E=E+Math.imul(z,pe)|0,B=B+Math.imul(z,Ie)|0,B=B+Math.imul(ee,pe)|0,k=k+Math.imul(ee,Ie)|0;var Rt=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,E=Math.imul(de,le),B=Math.imul(de,ve),B=B+Math.imul(be,le)|0,k=Math.imul(be,ve),E=E+Math.imul(fe,Se)|0,B=B+Math.imul(fe,Le)|0,B=B+Math.imul(he,Se)|0,k=k+Math.imul(he,Le)|0,E=E+Math.imul(re,Ee)|0,B=B+Math.imul(re,Ne)|0,B=B+Math.imul(ae,Ee)|0,k=k+Math.imul(ae,Ne)|0,E=E+Math.imul(G,Be)|0,B=B+Math.imul(G,Ce)|0,B=B+Math.imul(ie,Be)|0,k=k+Math.imul(ie,Ce)|0,E=E+Math.imul(X,se)|0,B=B+Math.imul(X,ue)|0,B=B+Math.imul(j,se)|0,k=k+Math.imul(j,ue)|0,E=E+Math.imul(O,pe)|0,B=B+Math.imul(O,Ie)|0,B=B+Math.imul(U,pe)|0,k=k+Math.imul(U,Ie)|0,E=E+Math.imul(z,ye)|0,B=B+Math.imul(z,De)|0,B=B+Math.imul(ee,ye)|0,k=k+Math.imul(ee,De)|0;var Tt=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,E=Math.imul($,le),B=Math.imul($,ve),B=B+Math.imul(A,le)|0,k=Math.imul(A,ve),E=E+Math.imul(de,Se)|0,B=B+Math.imul(de,Le)|0,B=B+Math.imul(be,Se)|0,k=k+Math.imul(be,Le)|0,E=E+Math.imul(fe,Ee)|0,B=B+Math.imul(fe,Ne)|0,B=B+Math.imul(he,Ee)|0,k=k+Math.imul(he,Ne)|0,E=E+Math.imul(re,Be)|0,B=B+Math.imul(re,Ce)|0,B=B+Math.imul(ae,Be)|0,k=k+Math.imul(ae,Ce)|0,E=E+Math.imul(G,se)|0,B=B+Math.imul(G,ue)|0,B=B+Math.imul(ie,se)|0,k=k+Math.imul(ie,ue)|0,E=E+Math.imul(X,pe)|0,B=B+Math.imul(X,Ie)|0,B=B+Math.imul(j,pe)|0,k=k+Math.imul(j,Ie)|0,E=E+Math.imul(O,ye)|0,B=B+Math.imul(O,De)|0,B=B+Math.imul(U,ye)|0,k=k+Math.imul(U,De)|0,E=E+Math.imul(z,Ae)|0,B=B+Math.imul(z,Oe)|0,B=B+Math.imul(ee,Ae)|0,k=k+Math.imul(ee,Oe)|0;var kt=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(kt>>>26)|0,kt&=67108863,E=Math.imul(C,le),B=Math.imul(C,ve),B=B+Math.imul(H,le)|0,k=Math.imul(H,ve),E=E+Math.imul($,Se)|0,B=B+Math.imul($,Le)|0,B=B+Math.imul(A,Se)|0,k=k+Math.imul(A,Le)|0,E=E+Math.imul(de,Ee)|0,B=B+Math.imul(de,Ne)|0,B=B+Math.imul(be,Ee)|0,k=k+Math.imul(be,Ne)|0,E=E+Math.imul(fe,Be)|0,B=B+Math.imul(fe,Ce)|0,B=B+Math.imul(he,Be)|0,k=k+Math.imul(he,Ce)|0,E=E+Math.imul(re,se)|0,B=B+Math.imul(re,ue)|0,B=B+Math.imul(ae,se)|0,k=k+Math.imul(ae,ue)|0,E=E+Math.imul(G,pe)|0,B=B+Math.imul(G,Ie)|0,B=B+Math.imul(ie,pe)|0,k=k+Math.imul(ie,Ie)|0,E=E+Math.imul(X,ye)|0,B=B+Math.imul(X,De)|0,B=B+Math.imul(j,ye)|0,k=k+Math.imul(j,De)|0,E=E+Math.imul(O,Ae)|0,B=B+Math.imul(O,Oe)|0,B=B+Math.imul(U,Ae)|0,k=k+Math.imul(U,Oe)|0,E=E+Math.imul(z,Re)|0,B=B+Math.imul(z,$e)|0,B=B+Math.imul(ee,Re)|0,k=k+Math.imul(ee,$e)|0;var Pt=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,E=Math.imul(J,le),B=Math.imul(J,ve),B=B+Math.imul(ce,le)|0,k=Math.imul(ce,ve),E=E+Math.imul(C,Se)|0,B=B+Math.imul(C,Le)|0,B=B+Math.imul(H,Se)|0,k=k+Math.imul(H,Le)|0,E=E+Math.imul($,Ee)|0,B=B+Math.imul($,Ne)|0,B=B+Math.imul(A,Ee)|0,k=k+Math.imul(A,Ne)|0,E=E+Math.imul(de,Be)|0,B=B+Math.imul(de,Ce)|0,B=B+Math.imul(be,Be)|0,k=k+Math.imul(be,Ce)|0,E=E+Math.imul(fe,se)|0,B=B+Math.imul(fe,ue)|0,B=B+Math.imul(he,se)|0,k=k+Math.imul(he,ue)|0,E=E+Math.imul(re,pe)|0,B=B+Math.imul(re,Ie)|0,B=B+Math.imul(ae,pe)|0,k=k+Math.imul(ae,Ie)|0,E=E+Math.imul(G,ye)|0,B=B+Math.imul(G,De)|0,B=B+Math.imul(ie,ye)|0,k=k+Math.imul(ie,De)|0,E=E+Math.imul(X,Ae)|0,B=B+Math.imul(X,Oe)|0,B=B+Math.imul(j,Ae)|0,k=k+Math.imul(j,Oe)|0,E=E+Math.imul(O,Re)|0,B=B+Math.imul(O,$e)|0,B=B+Math.imul(U,Re)|0,k=k+Math.imul(U,$e)|0,E=E+Math.imul(z,lt)|0,B=B+Math.imul(z,yt)|0,B=B+Math.imul(ee,lt)|0,k=k+Math.imul(ee,yt)|0;var $t=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+($t>>>26)|0,$t&=67108863,E=Math.imul(J,Se),B=Math.imul(J,Le),B=B+Math.imul(ce,Se)|0,k=Math.imul(ce,Le),E=E+Math.imul(C,Ee)|0,B=B+Math.imul(C,Ne)|0,B=B+Math.imul(H,Ee)|0,k=k+Math.imul(H,Ne)|0,E=E+Math.imul($,Be)|0,B=B+Math.imul($,Ce)|0,B=B+Math.imul(A,Be)|0,k=k+Math.imul(A,Ce)|0,E=E+Math.imul(de,se)|0,B=B+Math.imul(de,ue)|0,B=B+Math.imul(be,se)|0,k=k+Math.imul(be,ue)|0,E=E+Math.imul(fe,pe)|0,B=B+Math.imul(fe,Ie)|0,B=B+Math.imul(he,pe)|0,k=k+Math.imul(he,Ie)|0,E=E+Math.imul(re,ye)|0,B=B+Math.imul(re,De)|0,B=B+Math.imul(ae,ye)|0,k=k+Math.imul(ae,De)|0,E=E+Math.imul(G,Ae)|0,B=B+Math.imul(G,Oe)|0,B=B+Math.imul(ie,Ae)|0,k=k+Math.imul(ie,Oe)|0,E=E+Math.imul(X,Re)|0,B=B+Math.imul(X,$e)|0,B=B+Math.imul(j,Re)|0,k=k+Math.imul(j,$e)|0,E=E+Math.imul(O,lt)|0,B=B+Math.imul(O,yt)|0,B=B+Math.imul(U,lt)|0,k=k+Math.imul(U,yt)|0;var Nt=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,E=Math.imul(J,Ee),B=Math.imul(J,Ne),B=B+Math.imul(ce,Ee)|0,k=Math.imul(ce,Ne),E=E+Math.imul(C,Be)|0,B=B+Math.imul(C,Ce)|0,B=B+Math.imul(H,Be)|0,k=k+Math.imul(H,Ce)|0,E=E+Math.imul($,se)|0,B=B+Math.imul($,ue)|0,B=B+Math.imul(A,se)|0,k=k+Math.imul(A,ue)|0,E=E+Math.imul(de,pe)|0,B=B+Math.imul(de,Ie)|0,B=B+Math.imul(be,pe)|0,k=k+Math.imul(be,Ie)|0,E=E+Math.imul(fe,ye)|0,B=B+Math.imul(fe,De)|0,B=B+Math.imul(he,ye)|0,k=k+Math.imul(he,De)|0,E=E+Math.imul(re,Ae)|0,B=B+Math.imul(re,Oe)|0,B=B+Math.imul(ae,Ae)|0,k=k+Math.imul(ae,Oe)|0,E=E+Math.imul(G,Re)|0,B=B+Math.imul(G,$e)|0,B=B+Math.imul(ie,Re)|0,k=k+Math.imul(ie,$e)|0,E=E+Math.imul(X,lt)|0,B=B+Math.imul(X,yt)|0,B=B+Math.imul(j,lt)|0,k=k+Math.imul(j,yt)|0;var Ct=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,E=Math.imul(J,Be),B=Math.imul(J,Ce),B=B+Math.imul(ce,Be)|0,k=Math.imul(ce,Ce),E=E+Math.imul(C,se)|0,B=B+Math.imul(C,ue)|0,B=B+Math.imul(H,se)|0,k=k+Math.imul(H,ue)|0,E=E+Math.imul($,pe)|0,B=B+Math.imul($,Ie)|0,B=B+Math.imul(A,pe)|0,k=k+Math.imul(A,Ie)|0,E=E+Math.imul(de,ye)|0,B=B+Math.imul(de,De)|0,B=B+Math.imul(be,ye)|0,k=k+Math.imul(be,De)|0,E=E+Math.imul(fe,Ae)|0,B=B+Math.imul(fe,Oe)|0,B=B+Math.imul(he,Ae)|0,k=k+Math.imul(he,Oe)|0,E=E+Math.imul(re,Re)|0,B=B+Math.imul(re,$e)|0,B=B+Math.imul(ae,Re)|0,k=k+Math.imul(ae,$e)|0,E=E+Math.imul(G,lt)|0,B=B+Math.imul(G,yt)|0,B=B+Math.imul(ie,lt)|0,k=k+Math.imul(ie,yt)|0;var Dt=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,E=Math.imul(J,se),B=Math.imul(J,ue),B=B+Math.imul(ce,se)|0,k=Math.imul(ce,ue),E=E+Math.imul(C,pe)|0,B=B+Math.imul(C,Ie)|0,B=B+Math.imul(H,pe)|0,k=k+Math.imul(H,Ie)|0,E=E+Math.imul($,ye)|0,B=B+Math.imul($,De)|0,B=B+Math.imul(A,ye)|0,k=k+Math.imul(A,De)|0,E=E+Math.imul(de,Ae)|0,B=B+Math.imul(de,Oe)|0,B=B+Math.imul(be,Ae)|0,k=k+Math.imul(be,Oe)|0,E=E+Math.imul(fe,Re)|0,B=B+Math.imul(fe,$e)|0,B=B+Math.imul(he,Re)|0,k=k+Math.imul(he,$e)|0,E=E+Math.imul(re,lt)|0,B=B+Math.imul(re,yt)|0,B=B+Math.imul(ae,lt)|0,k=k+Math.imul(ae,yt)|0;var Ot=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,E=Math.imul(J,pe),B=Math.imul(J,Ie),B=B+Math.imul(ce,pe)|0,k=Math.imul(ce,Ie),E=E+Math.imul(C,ye)|0,B=B+Math.imul(C,De)|0,B=B+Math.imul(H,ye)|0,k=k+Math.imul(H,De)|0,E=E+Math.imul($,Ae)|0,B=B+Math.imul($,Oe)|0,B=B+Math.imul(A,Ae)|0,k=k+Math.imul(A,Oe)|0,E=E+Math.imul(de,Re)|0,B=B+Math.imul(de,$e)|0,B=B+Math.imul(be,Re)|0,k=k+Math.imul(be,$e)|0,E=E+Math.imul(fe,lt)|0,B=B+Math.imul(fe,yt)|0,B=B+Math.imul(he,lt)|0,k=k+Math.imul(he,yt)|0;var Ut=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,E=Math.imul(J,ye),B=Math.imul(J,De),B=B+Math.imul(ce,ye)|0,k=Math.imul(ce,De),E=E+Math.imul(C,Ae)|0,B=B+Math.imul(C,Oe)|0,B=B+Math.imul(H,Ae)|0,k=k+Math.imul(H,Oe)|0,E=E+Math.imul($,Re)|0,B=B+Math.imul($,$e)|0,B=B+Math.imul(A,Re)|0,k=k+Math.imul(A,$e)|0,E=E+Math.imul(de,lt)|0,B=B+Math.imul(de,yt)|0,B=B+Math.imul(be,lt)|0,k=k+Math.imul(be,yt)|0;var zt=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(zt>>>26)|0,zt&=67108863,E=Math.imul(J,Ae),B=Math.imul(J,Oe),B=B+Math.imul(ce,Ae)|0,k=Math.imul(ce,Oe),E=E+Math.imul(C,Re)|0,B=B+Math.imul(C,$e)|0,B=B+Math.imul(H,Re)|0,k=k+Math.imul(H,$e)|0,E=E+Math.imul($,lt)|0,B=B+Math.imul($,yt)|0,B=B+Math.imul(A,lt)|0,k=k+Math.imul(A,yt)|0;var ba=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(ba>>>26)|0,ba&=67108863,E=Math.imul(J,Re),B=Math.imul(J,$e),B=B+Math.imul(ce,Re)|0,k=Math.imul(ce,$e),E=E+Math.imul(C,lt)|0,B=B+Math.imul(C,yt)|0,B=B+Math.imul(H,lt)|0,k=k+Math.imul(H,yt)|0;var ga=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(ga>>>26)|0,ga&=67108863,E=Math.imul(J,lt),B=Math.imul(J,yt),B=B+Math.imul(ce,lt)|0,k=Math.imul(ce,yt);var M3=(u+E|0)+((B&8191)<<13)|0;return u=(k+(B>>>13)|0)+(M3>>>26)|0,M3&=67108863,t[0]=xt,t[1]=Mt,t[2]=Et,t[3]=At,t[4]=Bt,t[5]=Rt,t[6]=Tt,t[7]=kt,t[8]=Pt,t[9]=$t,t[10]=Nt,t[11]=Ct,t[12]=Dt,t[13]=Ot,t[14]=Ut,t[15]=zt,t[16]=ba,t[17]=ga,t[18]=M3,u!==0&&(t[19]=u,p.length++),p};Math.imul||(P=N);function L(o,f,h){h.negative=f.negative^o.negative,h.length=o.length+f.length;for(var p=0,g=0,l=0;l<h.length-1;l++){var t=g;g=0;for(var u=p&67108863,E=Math.min(l,f.length-1),B=Math.max(0,l-o.length+1);B<=E;B++){var k=l-B,q=o.words[k]|0,z=f.words[B]|0,ee=q*z,te=ee&67108863;t=t+(ee/67108864|0)|0,te=te+u|0,u=te&67108863,t=t+(te>>>26)|0,g+=t>>>26,t&=67108863}h.words[l]=u,p=t,t=g}return p!==0?h.words[l]=p:h.length--,h._strip()}function D(o,f,h){return L(o,f,h)}a.prototype.mulTo=function(f,h){var p,g=this.length+f.length;return this.length===10&&f.length===10?p=P(this,f,h):g<63?p=N(this,f,h):g<1024?p=L(this,f,h):p=D(this,f,h),p};function Z(o,f){this.x=o,this.y=f}Z.prototype.makeRBT=function(f){for(var h=new Array(f),p=a.prototype._countBits(f)-1,g=0;g<f;g++)h[g]=this.revBin(g,p,f);return h},Z.prototype.revBin=function(f,h,p){if(f===0||f===p-1)return f;for(var g=0,l=0;l<h;l++)g|=(f&1)<<h-l-1,f>>=1;return g},Z.prototype.permute=function(f,h,p,g,l,t){for(var u=0;u<t;u++)g[u]=h[f[u]],l[u]=p[f[u]]},Z.prototype.transform=function(f,h,p,g,l,t){this.permute(t,f,h,p,g,l);for(var u=1;u<l;u<<=1)for(var E=u<<1,B=Math.cos(2*Math.PI/E),k=Math.sin(2*Math.PI/E),q=0;q<l;q+=E)for(var z=B,ee=k,te=0;te<u;te++){var O=p[q+te],U=g[q+te],oe=p[q+te+u],X=g[q+te+u],j=z*oe-ee*X;X=z*X+ee*oe,oe=j,p[q+te]=O+oe,g[q+te]=U+X,p[q+te+u]=O-oe,g[q+te+u]=U-X,te!==E&&(j=B*z-k*ee,ee=B*ee+k*z,z=j)}},Z.prototype.guessLen13b=function(f,h){var p=Math.max(h,f)|1,g=p&1,l=0;for(p=p/2|0;p;p=p>>>1)l++;return 1<<l+1+g},Z.prototype.conjugate=function(f,h,p){if(!(p<=1))for(var g=0;g<p/2;g++){var l=f[g];f[g]=f[p-g-1],f[p-g-1]=l,l=h[g],h[g]=-h[p-g-1],h[p-g-1]=-l}},Z.prototype.normalize13b=function(f,h){for(var p=0,g=0;g<h/2;g++){var l=Math.round(f[2*g+1]/h)*8192+Math.round(f[2*g]/h)+p;f[g]=l&67108863,l<67108864?p=0:p=l/67108864|0}return f},Z.prototype.convert13b=function(f,h,p,g){for(var l=0,t=0;t<h;t++)l=l+(f[t]|0),p[2*t]=l&8191,l=l>>>13,p[2*t+1]=l&8191,l=l>>>13;for(t=2*h;t<g;++t)p[t]=0;s(l===0),s((l&-8192)===0)},Z.prototype.stub=function(f){for(var h=new Array(f),p=0;p<f;p++)h[p]=0;return h},Z.prototype.mulp=function(f,h,p){var g=2*this.guessLen13b(f.length,h.length),l=this.makeRBT(g),t=this.stub(g),u=new Array(g),E=new Array(g),B=new Array(g),k=new Array(g),q=new Array(g),z=new Array(g),ee=p.words;ee.length=g,this.convert13b(f.words,f.length,u,g),this.convert13b(h.words,h.length,k,g),this.transform(u,t,E,B,g,l),this.transform(k,t,q,z,g,l);for(var te=0;te<g;te++){var O=E[te]*q[te]-B[te]*z[te];B[te]=E[te]*z[te]+B[te]*q[te],E[te]=O}return this.conjugate(E,B,g),this.transform(E,B,ee,t,g,l),this.conjugate(ee,t,g),this.normalize13b(ee,g),p.negative=f.negative^h.negative,p.length=f.length+h.length,p._strip()},a.prototype.mul=function(f){var h=new a(null);return h.words=new Array(this.length+f.length),this.mulTo(f,h)},a.prototype.mulf=function(f){var h=new a(null);return h.words=new Array(this.length+f.length),D(this,f,h)},a.prototype.imul=function(f){return this.clone().mulTo(f,this)},a.prototype.imuln=function(f){var h=f<0;h&&(f=-f),s(typeof f=="number"),s(f<67108864);for(var p=0,g=0;g<this.length;g++){var l=(this.words[g]|0)*f,t=(l&67108863)+(p&67108863);p>>=26,p+=l/67108864|0,p+=t>>>26,this.words[g]=t&67108863}return p!==0&&(this.words[g]=p,this.length++),this.length=f===0?1:this.length,h?this.ineg():this},a.prototype.muln=function(f){return this.clone().imuln(f)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(f){var h=R(f);if(h.length===0)return new a(1);for(var p=this,g=0;g<h.length&&h[g]===0;g++,p=p.sqr());if(++g<h.length)for(var l=p.sqr();g<h.length;g++,l=l.sqr())h[g]!==0&&(p=p.mul(l));return p},a.prototype.iushln=function(f){s(typeof f=="number"&&f>=0);var h=f%26,p=(f-h)/26,g=67108863>>>26-h<<26-h,l;if(h!==0){var t=0;for(l=0;l<this.length;l++){var u=this.words[l]&g,E=(this.words[l]|0)-u<<h;this.words[l]=E|t,t=u>>>26-h}t&&(this.words[l]=t,this.length++)}if(p!==0){for(l=this.length-1;l>=0;l--)this.words[l+p]=this.words[l];for(l=0;l<p;l++)this.words[l]=0;this.length+=p}return this._strip()},a.prototype.ishln=function(f){return s(this.negative===0),this.iushln(f)},a.prototype.iushrn=function(f,h,p){s(typeof f=="number"&&f>=0);var g;h?g=(h-h%26)/26:g=0;var l=f%26,t=Math.min((f-l)/26,this.length),u=67108863^67108863>>>l<<l,E=p;if(g-=t,g=Math.max(0,g),E){for(var B=0;B<t;B++)E.words[B]=this.words[B];E.length=t}if(t!==0)if(this.length>t)for(this.length-=t,B=0;B<this.length;B++)this.words[B]=this.words[B+t];else this.words[0]=0,this.length=1;var k=0;for(B=this.length-1;B>=0&&(k!==0||B>=g);B--){var q=this.words[B]|0;this.words[B]=k<<26-l|q>>>l,k=q&u}return E&&k!==0&&(E.words[E.length++]=k),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(f,h,p){return s(this.negative===0),this.iushrn(f,h,p)},a.prototype.shln=function(f){return this.clone().ishln(f)},a.prototype.ushln=function(f){return this.clone().iushln(f)},a.prototype.shrn=function(f){return this.clone().ishrn(f)},a.prototype.ushrn=function(f){return this.clone().iushrn(f)},a.prototype.testn=function(f){s(typeof f=="number"&&f>=0);var h=f%26,p=(f-h)/26,g=1<<h;if(this.length<=p)return!1;var l=this.words[p];return!!(l&g)},a.prototype.imaskn=function(f){s(typeof f=="number"&&f>=0);var h=f%26,p=(f-h)/26;if(s(this.negative===0,"imaskn works only with positive numbers"),this.length<=p)return this;if(h!==0&&p++,this.length=Math.min(p,this.length),h!==0){var g=67108863^67108863>>>h<<h;this.words[this.length-1]&=g}return this._strip()},a.prototype.maskn=function(f){return this.clone().imaskn(f)},a.prototype.iaddn=function(f){return s(typeof f=="number"),s(f<67108864),f<0?this.isubn(-f):this.negative!==0?this.length===1&&(this.words[0]|0)<=f?(this.words[0]=f-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(f),this.negative=1,this):this._iaddn(f)},a.prototype._iaddn=function(f){this.words[0]+=f;for(var h=0;h<this.length&&this.words[h]>=67108864;h++)this.words[h]-=67108864,h===this.length-1?this.words[h+1]=1:this.words[h+1]++;return this.length=Math.max(this.length,h+1),this},a.prototype.isubn=function(f){if(s(typeof f=="number"),s(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var h=0;h<this.length&&this.words[h]<0;h++)this.words[h]+=67108864,this.words[h+1]-=1;return this._strip()},a.prototype.addn=function(f){return this.clone().iaddn(f)},a.prototype.subn=function(f){return this.clone().isubn(f)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(f,h,p){var g=f.length+p,l;this._expand(g);var t,u=0;for(l=0;l<f.length;l++){t=(this.words[l+p]|0)+u;var E=(f.words[l]|0)*h;t-=E&67108863,u=(t>>26)-(E/67108864|0),this.words[l+p]=t&67108863}for(;l<this.length-p;l++)t=(this.words[l+p]|0)+u,u=t>>26,this.words[l+p]=t&67108863;if(u===0)return this._strip();for(s(u===-1),u=0,l=0;l<this.length;l++)t=-(this.words[l]|0)+u,u=t>>26,this.words[l]=t&67108863;return this.negative=1,this._strip()},a.prototype._wordDiv=function(f,h){var p=this.length-f.length,g=this.clone(),l=f,t=l.words[l.length-1]|0,u=this._countBits(t);p=26-u,p!==0&&(l=l.ushln(p),g.iushln(p),t=l.words[l.length-1]|0);var E=g.length-l.length,B;if(h!=="mod"){B=new a(null),B.length=E+1,B.words=new Array(B.length);for(var k=0;k<B.length;k++)B.words[k]=0}var q=g.clone()._ishlnsubmul(l,1,E);q.negative===0&&(g=q,B&&(B.words[E]=1));for(var z=E-1;z>=0;z--){var ee=(g.words[l.length+z]|0)*67108864+(g.words[l.length+z-1]|0);for(ee=Math.min(ee/t|0,67108863),g._ishlnsubmul(l,ee,z);g.negative!==0;)ee--,g.negative=0,g._ishlnsubmul(l,1,z),g.isZero()||(g.negative^=1);B&&(B.words[z]=ee)}return B&&B._strip(),g._strip(),h!=="div"&&p!==0&&g.iushrn(p),{div:B||null,mod:g}},a.prototype.divmod=function(f,h,p){if(s(!f.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var g,l,t;return this.negative!==0&&f.negative===0?(t=this.neg().divmod(f,h),h!=="mod"&&(g=t.div.neg()),h!=="div"&&(l=t.mod.neg(),p&&l.negative!==0&&l.iadd(f)),{div:g,mod:l}):this.negative===0&&f.negative!==0?(t=this.divmod(f.neg(),h),h!=="mod"&&(g=t.div.neg()),{div:g,mod:t.mod}):this.negative&f.negative?(t=this.neg().divmod(f.neg(),h),h!=="div"&&(l=t.mod.neg(),p&&l.negative!==0&&l.isub(f)),{div:t.div,mod:l}):f.length>this.length||this.cmp(f)<0?{div:new a(0),mod:this}:f.length===1?h==="div"?{div:this.divn(f.words[0]),mod:null}:h==="mod"?{div:null,mod:new a(this.modrn(f.words[0]))}:{div:this.divn(f.words[0]),mod:new a(this.modrn(f.words[0]))}:this._wordDiv(f,h)},a.prototype.div=function(f){return this.divmod(f,"div",!1).div},a.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},a.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},a.prototype.divRound=function(f){var h=this.divmod(f);if(h.mod.isZero())return h.div;var p=h.div.negative!==0?h.mod.isub(f):h.mod,g=f.ushrn(1),l=f.andln(1),t=p.cmp(g);return t<0||l===1&&t===0?h.div:h.div.negative!==0?h.div.isubn(1):h.div.iaddn(1)},a.prototype.modrn=function(f){var h=f<0;h&&(f=-f),s(f<=67108863);for(var p=(1<<26)%f,g=0,l=this.length-1;l>=0;l--)g=(p*g+(this.words[l]|0))%f;return h?-g:g},a.prototype.modn=function(f){return this.modrn(f)},a.prototype.idivn=function(f){var h=f<0;h&&(f=-f),s(f<=67108863);for(var p=0,g=this.length-1;g>=0;g--){var l=(this.words[g]|0)+p*67108864;this.words[g]=l/f|0,p=l%f}return this._strip(),h?this.ineg():this},a.prototype.divn=function(f){return this.clone().idivn(f)},a.prototype.egcd=function(f){s(f.negative===0),s(!f.isZero());var h=this,p=f.clone();h.negative!==0?h=h.umod(f):h=h.clone();for(var g=new a(1),l=new a(0),t=new a(0),u=new a(1),E=0;h.isEven()&&p.isEven();)h.iushrn(1),p.iushrn(1),++E;for(var B=p.clone(),k=h.clone();!h.isZero();){for(var q=0,z=1;!(h.words[0]&z)&&q<26;++q,z<<=1);if(q>0)for(h.iushrn(q);q-- >0;)(g.isOdd()||l.isOdd())&&(g.iadd(B),l.isub(k)),g.iushrn(1),l.iushrn(1);for(var ee=0,te=1;!(p.words[0]&te)&&ee<26;++ee,te<<=1);if(ee>0)for(p.iushrn(ee);ee-- >0;)(t.isOdd()||u.isOdd())&&(t.iadd(B),u.isub(k)),t.iushrn(1),u.iushrn(1);h.cmp(p)>=0?(h.isub(p),g.isub(t),l.isub(u)):(p.isub(h),t.isub(g),u.isub(l))}return{a:t,b:u,gcd:p.iushln(E)}},a.prototype._invmp=function(f){s(f.negative===0),s(!f.isZero());var h=this,p=f.clone();h.negative!==0?h=h.umod(f):h=h.clone();for(var g=new a(1),l=new a(0),t=p.clone();h.cmpn(1)>0&&p.cmpn(1)>0;){for(var u=0,E=1;!(h.words[0]&E)&&u<26;++u,E<<=1);if(u>0)for(h.iushrn(u);u-- >0;)g.isOdd()&&g.iadd(t),g.iushrn(1);for(var B=0,k=1;!(p.words[0]&k)&&B<26;++B,k<<=1);if(B>0)for(p.iushrn(B);B-- >0;)l.isOdd()&&l.iadd(t),l.iushrn(1);h.cmp(p)>=0?(h.isub(p),g.isub(l)):(p.isub(h),l.isub(g))}var q;return h.cmpn(1)===0?q=g:q=l,q.cmpn(0)<0&&q.iadd(f),q},a.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var h=this.clone(),p=f.clone();h.negative=0,p.negative=0;for(var g=0;h.isEven()&&p.isEven();g++)h.iushrn(1),p.iushrn(1);do{for(;h.isEven();)h.iushrn(1);for(;p.isEven();)p.iushrn(1);var l=h.cmp(p);if(l<0){var t=h;h=p,p=t}else if(l===0||p.cmpn(1)===0)break;h.isub(p)}while(!0);return p.iushln(g)},a.prototype.invm=function(f){return this.egcd(f).a.umod(f)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(f){return this.words[0]&f},a.prototype.bincn=function(f){s(typeof f=="number");var h=f%26,p=(f-h)/26,g=1<<h;if(this.length<=p)return this._expand(p+1),this.words[p]|=g,this;for(var l=g,t=p;l!==0&&t<this.length;t++){var u=this.words[t]|0;u+=l,l=u>>>26,u&=67108863,this.words[t]=u}return l!==0&&(this.words[t]=l,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(f){var h=f<0;if(this.negative!==0&&!h)return-1;if(this.negative===0&&h)return 1;this._strip();var p;if(this.length>1)p=1;else{h&&(f=-f),s(f<=67108863,"Number is too big");var g=this.words[0]|0;p=g===f?0:g<f?-1:1}return this.negative!==0?-p|0:p},a.prototype.cmp=function(f){if(this.negative!==0&&f.negative===0)return-1;if(this.negative===0&&f.negative!==0)return 1;var h=this.ucmp(f);return this.negative!==0?-h|0:h},a.prototype.ucmp=function(f){if(this.length>f.length)return 1;if(this.length<f.length)return-1;for(var h=0,p=this.length-1;p>=0;p--){var g=this.words[p]|0,l=f.words[p]|0;if(g!==l){g<l?h=-1:g>l&&(h=1);break}}return h},a.prototype.gtn=function(f){return this.cmpn(f)===1},a.prototype.gt=function(f){return this.cmp(f)===1},a.prototype.gten=function(f){return this.cmpn(f)>=0},a.prototype.gte=function(f){return this.cmp(f)>=0},a.prototype.ltn=function(f){return this.cmpn(f)===-1},a.prototype.lt=function(f){return this.cmp(f)===-1},a.prototype.lten=function(f){return this.cmpn(f)<=0},a.prototype.lte=function(f){return this.cmp(f)<=0},a.prototype.eqn=function(f){return this.cmpn(f)===0},a.prototype.eq=function(f){return this.cmp(f)===0},a.red=function(f){return new e(f)},a.prototype.toRed=function(f){return s(!this.red,"Already a number in reduction context"),s(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},a.prototype.fromRed=function(){return s(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(f){return this.red=f,this},a.prototype.forceRed=function(f){return s(!this.red,"Already a number in reduction context"),this._forceRed(f)},a.prototype.redAdd=function(f){return s(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},a.prototype.redIAdd=function(f){return s(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},a.prototype.redSub=function(f){return s(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},a.prototype.redISub=function(f){return s(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},a.prototype.redShl=function(f){return s(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},a.prototype.redMul=function(f){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},a.prototype.redIMul=function(f){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},a.prototype.redSqr=function(){return s(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return s(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return s(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return s(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return s(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(f){return s(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var W={k256:null,p224:null,p192:null,p25519:null};function Q(o,f){this.name=o,this.p=new a(f,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Q.prototype._tmp=function(){var f=new a(null);return f.words=new Array(Math.ceil(this.n/13)),f},Q.prototype.ireduce=function(f){var h=f,p;do this.split(h,this.tmp),h=this.imulK(h),h=h.iadd(this.tmp),p=h.bitLength();while(p>this.n);var g=p<this.n?-1:h.ucmp(this.p);return g===0?(h.words[0]=0,h.length=1):g>0?h.isub(this.p):h.strip!==void 0?h.strip():h._strip(),h},Q.prototype.split=function(f,h){f.iushrn(this.n,0,h)},Q.prototype.imulK=function(f){return f.imul(this.k)};function K(){Q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}c(K,Q),K.prototype.split=function(f,h){for(var p=4194303,g=Math.min(f.length,9),l=0;l<g;l++)h.words[l]=f.words[l];if(h.length=g,f.length<=9){f.words[0]=0,f.length=1;return}var t=f.words[9];for(h.words[h.length++]=t&p,l=10;l<f.length;l++){var u=f.words[l]|0;f.words[l-10]=(u&p)<<4|t>>>22,t=u}t>>>=22,f.words[l-10]=t,t===0&&f.length>10?f.length-=10:f.length-=9},K.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;for(var h=0,p=0;p<f.length;p++){var g=f.words[p]|0;h+=g*977,f.words[p]=h&67108863,h=g*64+(h/67108864|0)}return f.words[f.length-1]===0&&(f.length--,f.words[f.length-1]===0&&f.length--),f};function F(){Q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}c(F,Q);function Y(){Q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}c(Y,Q);function m(){Q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}c(m,Q),m.prototype.imulK=function(f){for(var h=0,p=0;p<f.length;p++){var g=(f.words[p]|0)*19+h,l=g&67108863;g>>>=26,f.words[p]=l,h=g}return h!==0&&(f.words[f.length++]=h),f},a._prime=function(f){if(W[f])return W[f];var h;if(f==="k256")h=new K;else if(f==="p224")h=new F;else if(f==="p192")h=new Y;else if(f==="p25519")h=new m;else throw new Error("Unknown prime "+f);return W[f]=h,h};function e(o){if(typeof o=="string"){var f=a._prime(o);this.m=f.p,this.prime=f}else s(o.gtn(1),"modulus must be greater than 1"),this.m=o,this.prime=null}e.prototype._verify1=function(f){s(f.negative===0,"red works only with positives"),s(f.red,"red works only with red numbers")},e.prototype._verify2=function(f,h){s((f.negative|h.negative)===0,"red works only with positives"),s(f.red&&f.red===h.red,"red works only with red numbers")},e.prototype.imod=function(f){return this.prime?this.prime.ireduce(f)._forceRed(this):(w(f,f.umod(this.m)._forceRed(this)),f)},e.prototype.neg=function(f){return f.isZero()?f.clone():this.m.sub(f)._forceRed(this)},e.prototype.add=function(f,h){this._verify2(f,h);var p=f.add(h);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},e.prototype.iadd=function(f,h){this._verify2(f,h);var p=f.iadd(h);return p.cmp(this.m)>=0&&p.isub(this.m),p},e.prototype.sub=function(f,h){this._verify2(f,h);var p=f.sub(h);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},e.prototype.isub=function(f,h){this._verify2(f,h);var p=f.isub(h);return p.cmpn(0)<0&&p.iadd(this.m),p},e.prototype.shl=function(f,h){return this._verify1(f),this.imod(f.ushln(h))},e.prototype.imul=function(f,h){return this._verify2(f,h),this.imod(f.imul(h))},e.prototype.mul=function(f,h){return this._verify2(f,h),this.imod(f.mul(h))},e.prototype.isqr=function(f){return this.imul(f,f.clone())},e.prototype.sqr=function(f){return this.mul(f,f)},e.prototype.sqrt=function(f){if(f.isZero())return f.clone();var h=this.m.andln(3);if(s(h%2===1),h===3){var p=this.m.add(new a(1)).iushrn(2);return this.pow(f,p)}for(var g=this.m.subn(1),l=0;!g.isZero()&&g.andln(1)===0;)l++,g.iushrn(1);s(!g.isZero());var t=new a(1).toRed(this),u=t.redNeg(),E=this.m.subn(1).iushrn(1),B=this.m.bitLength();for(B=new a(2*B*B).toRed(this);this.pow(B,E).cmp(u)!==0;)B.redIAdd(u);for(var k=this.pow(B,g),q=this.pow(f,g.addn(1).iushrn(1)),z=this.pow(f,g),ee=l;z.cmp(t)!==0;){for(var te=z,O=0;te.cmp(t)!==0;O++)te=te.redSqr();s(O<ee);var U=this.pow(k,new a(1).iushln(ee-O-1));q=q.redMul(U),k=U.redSqr(),z=z.redMul(k),ee=O}return q},e.prototype.invm=function(f){var h=f._invmp(this.m);return h.negative!==0?(h.negative=0,this.imod(h).redNeg()):this.imod(h)},e.prototype.pow=function(f,h){if(h.isZero())return new a(1).toRed(this);if(h.cmpn(1)===0)return f.clone();var p=4,g=new Array(1<<p);g[0]=new a(1).toRed(this),g[1]=f;for(var l=2;l<g.length;l++)g[l]=this.mul(g[l-1],f);var t=g[0],u=0,E=0,B=h.bitLength()%26;for(B===0&&(B=26),l=h.length-1;l>=0;l--){for(var k=h.words[l],q=B-1;q>=0;q--){var z=k>>q&1;if(t!==g[0]&&(t=this.sqr(t)),z===0&&u===0){E=0;continue}u<<=1,u|=z,E++,!(E!==p&&(l!==0||q!==0))&&(t=this.mul(t,g[u]),E=0,u=0)}B=26}return t},e.prototype.convertTo=function(f){var h=f.umod(this.m);return h===f?h.clone():h},e.prototype.convertFrom=function(f){var h=f.clone();return h.red=null,h},a.mont=function(f){return new r(f)};function r(o){e.call(this,o),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(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)}c(r,e),r.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},r.prototype.convertFrom=function(f){var h=this.imod(f.mul(this.rinv));return h.red=null,h},r.prototype.imul=function(f,h){if(f.isZero()||h.isZero())return f.words[0]=0,f.length=1,f;var p=f.imul(h),g=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),l=p.isub(g).iushrn(this.shift),t=l;return l.cmp(this.m)>=0?t=l.isub(this.m):l.cmpn(0)<0&&(t=l.iadd(this.m)),t._forceRed(this)},r.prototype.mul=function(f,h){if(f.isZero()||h.isZero())return new a(0)._forceRed(this);var p=f.mul(h),g=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),l=p.isub(g).iushrn(this.shift),t=l;return l.cmp(this.m)>=0?t=l.isub(this.m):l.cmpn(0)<0&&(t=l.iadd(this.m)),t._forceRed(this)},r.prototype.invm=function(f){var h=this.imod(f._invmp(this.m).mul(this.r2));return h._forceRed(this)}})(typeof p5>"u"||p5,MW)});var qs=St(_i=>{"use strict";var U_e=me(Me());xe();_e();var Ide=ch(),Rde=Wn();_i.inherits=Rde;function Tde(i,n){return(i.charCodeAt(n)&64512)!==55296||n<0||n+1>=i.length?!1:(i.charCodeAt(n+1)&64512)===56320}function kde(i,n){if(Array.isArray(i))return i.slice();if(!i)return[];var s=[];if(typeof i=="string")if(n){if(n==="hex")for(i=i.replace(/[^a-z0-9]+/ig,""),i.length%2!==0&&(i="0"+i),a=0;a<i.length;a+=2)s.push(parseInt(i[a]+i[a+1],16))}else for(var c=0,a=0;a<i.length;a++){var d=i.charCodeAt(a);d<128?s[c++]=d:d<2048?(s[c++]=d>>6|192,s[c++]=d&63|128):Tde(i,a)?(d=65536+((d&1023)<<10)+(i.charCodeAt(++a)&1023),s[c++]=d>>18|240,s[c++]=d>>12&63|128,s[c++]=d>>6&63|128,s[c++]=d&63|128):(s[c++]=d>>12|224,s[c++]=d>>6&63|128,s[c++]=d&63|128)}else for(a=0;a<i.length;a++)s[a]=i[a]|0;return s}_i.toArray=kde;function Pde(i){for(var n="",s=0;s<i.length;s++)n+=lZ(i[s].toString(16));return n}_i.toHex=Pde;function uZ(i){var n=i>>>24|i>>>8&65280|i<<8&16711680|(i&255)<<24;return n>>>0}_i.htonl=uZ;function $de(i,n){for(var s="",c=0;c<i.length;c++){var a=i[c];n==="little"&&(a=uZ(a)),s+=cZ(a.toString(16))}return s}_i.toHex32=$de;function lZ(i){return i.length===1?"0"+i:i}_i.zero2=lZ;function cZ(i){return i.length===7?"0"+i:i.length===6?"00"+i:i.length===5?"000"+i:i.length===4?"0000"+i:i.length===3?"00000"+i:i.length===2?"000000"+i:i.length===1?"0000000"+i:i}_i.zero8=cZ;function Nde(i,n,s,c){var a=s-n;Ide(a%4===0);for(var d=new Array(a/4),v=0,y=n;v<d.length;v++,y+=4){var M;c==="big"?M=i[y]<<24|i[y+1]<<16|i[y+2]<<8|i[y+3]:M=i[y+3]<<24|i[y+2]<<16|i[y+1]<<8|i[y],d[v]=M>>>0}return d}_i.join32=Nde;function Cde(i,n){for(var s=new Array(i.length*4),c=0,a=0;c<i.length;c++,a+=4){var d=i[c];n==="big"?(s[a]=d>>>24,s[a+1]=d>>>16&255,s[a+2]=d>>>8&255,s[a+3]=d&255):(s[a+3]=d>>>24,s[a+2]=d>>>16&255,s[a+1]=d>>>8&255,s[a]=d&255)}return s}_i.split32=Cde;function Lde(i,n){return i>>>n|i<<32-n}_i.rotr32=Lde;function Dde(i,n){return i<<n|i>>>32-n}_i.rotl32=Dde;function Ode(i,n){return i+n>>>0}_i.sum32=Ode;function qde(i,n,s){return i+n+s>>>0}_i.sum32_3=qde;function Ude(i,n,s,c){return i+n+s+c>>>0}_i.sum32_4=Ude;function zde(i,n,s,c,a){return i+n+s+c+a>>>0}_i.sum32_5=zde;function Fde(i,n,s,c){var a=i[n],d=i[n+1],v=c+d>>>0,y=(v<c?1:0)+s+a;i[n]=y>>>0,i[n+1]=v}_i.sum64=Fde;function Hde(i,n,s,c){var a=n+c>>>0,d=(a<n?1:0)+i+s;return d>>>0}_i.sum64_hi=Hde;function Kde(i,n,s,c){var a=n+c;return a>>>0}_i.sum64_lo=Kde;function jde(i,n,s,c,a,d,v,y){var M=0,w=n;w=w+c>>>0,M+=w<n?1:0,w=w+d>>>0,M+=w<d?1:0,w=w+y>>>0,M+=w<y?1:0;var b=i+s+a+v+M;return b>>>0}_i.sum64_4_hi=jde;function Wde(i,n,s,c,a,d,v,y){var M=n+c+d+y;return M>>>0}_i.sum64_4_lo=Wde;function Zde(i,n,s,c,a,d,v,y,M,w){var b=0,_=n;_=_+c>>>0,b+=_<n?1:0,_=_+d>>>0,b+=_<d?1:0,_=_+y>>>0,b+=_<y?1:0,_=_+w>>>0,b+=_<w?1:0;var x=i+s+a+v+M+b;return x>>>0}_i.sum64_5_hi=Zde;function Gde(i,n,s,c,a,d,v,y,M,w){var b=n+c+d+y+w;return b>>>0}_i.sum64_5_lo=Gde;function Vde(i,n,s){var c=n<<32-s|i>>>s;return c>>>0}_i.rotr64_hi=Vde;function Jde(i,n,s){var c=i<<32-s|n>>>s;return c>>>0}_i.rotr64_lo=Jde;function Yde(i,n,s){return i>>>s}_i.shr64_hi=Yde;function Xde(i,n,s){var c=i<<32-s|n>>>s;return c>>>0}_i.shr64_lo=Xde});var Xc=St(pZ=>{"use strict";var K_e=me(Me());xe();_e();var dZ=qs(),Qde=ch();function Dm(){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}pZ.BlockHash=Dm;Dm.prototype.update=function(n,s){if(n=dZ.toArray(n,s),this.pending?this.pending=this.pending.concat(n):this.pending=n,this.pendingTotal+=n.length,this.pending.length>=this._delta8){n=this.pending;var c=n.length%this._delta8;this.pending=n.slice(n.length-c,n.length),this.pending.length===0&&(this.pending=null),n=dZ.join32(n,0,n.length-c,this.endian);for(var a=0;a<n.length;a+=this._delta32)this._update(n,a,a+this._delta32)}return this};Dm.prototype.digest=function(n){return this.update(this._pad()),Qde(this.pending===null),this._digest(n)};Dm.prototype._pad=function(){var n=this.pendingTotal,s=this._delta8,c=s-(n+this.padLength)%s,a=new Array(c+this.padLength);a[0]=128;for(var d=1;d<c;d++)a[d]=0;if(n<<=3,this.endian==="big"){for(var v=8;v<this.padLength;v++)a[d++]=0;a[d++]=0,a[d++]=0,a[d++]=0,a[d++]=0,a[d++]=n>>>24&255,a[d++]=n>>>16&255,a[d++]=n>>>8&255,a[d++]=n&255}else for(a[d++]=n&255,a[d++]=n>>>8&255,a[d++]=n>>>16&255,a[d++]=n>>>24&255,a[d++]=0,a[d++]=0,a[d++]=0,a[d++]=0,v=8;v<this.padLength;v++)a[d++]=0;return a}});var N5=St(gh=>{"use strict";var G_e=me(Me());xe();_e();var e1e=qs(),Af=e1e.rotr32;function t1e(i,n,s,c){if(i===0)return vZ(n,s,c);if(i===1||i===3)return bZ(n,s,c);if(i===2)return mZ(n,s,c)}gh.ft_1=t1e;function vZ(i,n,s){return i&n^~i&s}gh.ch32=vZ;function mZ(i,n,s){return i&n^i&s^n&s}gh.maj32=mZ;function bZ(i,n,s){return i^n^s}gh.p32=bZ;function r1e(i){return Af(i,2)^Af(i,13)^Af(i,22)}gh.s0_256=r1e;function i1e(i){return Af(i,6)^Af(i,11)^Af(i,25)}gh.s1_256=i1e;function n1e(i){return Af(i,7)^Af(i,18)^i>>>3}gh.g0_256=n1e;function a1e(i){return Af(i,17)^Af(i,19)^i>>>10}gh.g1_256=a1e});var wZ=St((Y_e,yZ)=>{"use strict";var X_e=me(Me());xe();_e();var Qc=qs(),o1e=Xc(),s1e=N5(),C5=Qc.rotl32,yp=Qc.sum32,f1e=Qc.sum32_5,h1e=s1e.ft_1,gZ=o1e.BlockHash,u1e=[1518500249,1859775393,2400959708,3395469782];function Bf(){if(!(this instanceof Bf))return new Bf;gZ.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Qc.inherits(Bf,gZ);yZ.exports=Bf;Bf.blockSize=512;Bf.outSize=160;Bf.hmacStrength=80;Bf.padLength=64;Bf.prototype._update=function(n,s){for(var c=this.W,a=0;a<16;a++)c[a]=n[s+a];for(;a<c.length;a++)c[a]=C5(c[a-3]^c[a-8]^c[a-14]^c[a-16],1);var d=this.h[0],v=this.h[1],y=this.h[2],M=this.h[3],w=this.h[4];for(a=0;a<c.length;a++){var b=~~(a/20),_=f1e(C5(d,5),h1e(b,v,y,M),w,c[a],u1e[b]);w=M,M=y,y=C5(v,30),v=d,d=_}this.h[0]=yp(this.h[0],d),this.h[1]=yp(this.h[1],v),this.h[2]=yp(this.h[2],y),this.h[3]=yp(this.h[3],M),this.h[4]=yp(this.h[4],w)};Bf.prototype._digest=function(n){return n==="hex"?Qc.toHex32(this.h,"big"):Qc.split32(this.h,"big")}});var L5=St((txe,_Z)=>{"use strict";var rxe=me(Me());xe();_e();var ed=qs(),l1e=Xc(),td=N5(),c1e=ch(),Us=ed.sum32,d1e=ed.sum32_4,p1e=ed.sum32_5,v1e=td.ch32,m1e=td.maj32,b1e=td.s0_256,g1e=td.s1_256,y1e=td.g0_256,w1e=td.g1_256,MZ=l1e.BlockHash,M1e=[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 If(){if(!(this instanceof If))return new If;MZ.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=M1e,this.W=new Array(64)}ed.inherits(If,MZ);_Z.exports=If;If.blockSize=512;If.outSize=256;If.hmacStrength=192;If.padLength=64;If.prototype._update=function(n,s){for(var c=this.W,a=0;a<16;a++)c[a]=n[s+a];for(;a<c.length;a++)c[a]=d1e(w1e(c[a-2]),c[a-7],y1e(c[a-15]),c[a-16]);var d=this.h[0],v=this.h[1],y=this.h[2],M=this.h[3],w=this.h[4],b=this.h[5],_=this.h[6],x=this.h[7];for(c1e(this.k.length===c.length),a=0;a<c.length;a++){var S=p1e(x,g1e(w),v1e(w,b,_),this.k[a],c[a]),I=Us(b1e(d),m1e(d,v,y));x=_,_=b,b=w,w=Us(M,S),M=y,y=v,v=d,d=Us(S,I)}this.h[0]=Us(this.h[0],d),this.h[1]=Us(this.h[1],v),this.h[2]=Us(this.h[2],y),this.h[3]=Us(this.h[3],M),this.h[4]=Us(this.h[4],w),this.h[5]=Us(this.h[5],b),this.h[6]=Us(this.h[6],_),this.h[7]=Us(this.h[7],x)};If.prototype._digest=function(n){return n==="hex"?ed.toHex32(this.h,"big"):ed.split32(this.h,"big")}});var EZ=St((axe,SZ)=>{"use strict";var oxe=me(Me());xe();_e();var D5=qs(),xZ=L5();function yh(){if(!(this instanceof yh))return new yh;xZ.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}D5.inherits(yh,xZ);SZ.exports=yh;yh.blockSize=512;yh.outSize=224;yh.hmacStrength=192;yh.padLength=64;yh.prototype._digest=function(n){return n==="hex"?D5.toHex32(this.h.slice(0,7),"big"):D5.split32(this.h.slice(0,7),"big")}});var U5=St((hxe,RZ)=>{"use strict";var uxe=me(Me());xe();_e();var La=qs(),_1e=Xc(),x1e=ch(),Rf=La.rotr64_hi,Tf=La.rotr64_lo,AZ=La.shr64_hi,BZ=La.shr64_lo,P0=La.sum64,O5=La.sum64_hi,q5=La.sum64_lo,S1e=La.sum64_4_hi,E1e=La.sum64_4_lo,A1e=La.sum64_5_hi,B1e=La.sum64_5_lo,IZ=_1e.BlockHash,I1e=[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 zs(){if(!(this instanceof zs))return new zs;IZ.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=I1e,this.W=new Array(160)}La.inherits(zs,IZ);RZ.exports=zs;zs.blockSize=1024;zs.outSize=512;zs.hmacStrength=192;zs.padLength=128;zs.prototype._prepareBlock=function(n,s){for(var c=this.W,a=0;a<32;a++)c[a]=n[s+a];for(;a<c.length;a+=2){var d=q1e(c[a-4],c[a-3]),v=U1e(c[a-4],c[a-3]),y=c[a-14],M=c[a-13],w=D1e(c[a-30],c[a-29]),b=O1e(c[a-30],c[a-29]),_=c[a-32],x=c[a-31];c[a]=S1e(d,v,y,M,w,b,_,x),c[a+1]=E1e(d,v,y,M,w,b,_,x)}};zs.prototype._update=function(n,s){this._prepareBlock(n,s);var c=this.W,a=this.h[0],d=this.h[1],v=this.h[2],y=this.h[3],M=this.h[4],w=this.h[5],b=this.h[6],_=this.h[7],x=this.h[8],S=this.h[9],I=this.h[10],R=this.h[11],N=this.h[12],P=this.h[13],L=this.h[14],D=this.h[15];x1e(this.k.length===c.length);for(var Z=0;Z<c.length;Z+=2){var W=L,Q=D,K=C1e(x,S),F=L1e(x,S),Y=R1e(x,S,I,R,N,P),m=T1e(x,S,I,R,N,P),e=this.k[Z],r=this.k[Z+1],o=c[Z],f=c[Z+1],h=A1e(W,Q,K,F,Y,m,e,r,o,f),p=B1e(W,Q,K,F,Y,m,e,r,o,f);W=$1e(a,d),Q=N1e(a,d),K=k1e(a,d,v,y,M,w),F=P1e(a,d,v,y,M,w);var g=O5(W,Q,K,F),l=q5(W,Q,K,F);L=N,D=P,N=I,P=R,I=x,R=S,x=O5(b,_,h,p),S=q5(_,_,h,p),b=M,_=w,M=v,w=y,v=a,y=d,a=O5(h,p,g,l),d=q5(h,p,g,l)}P0(this.h,0,a,d),P0(this.h,2,v,y),P0(this.h,4,M,w),P0(this.h,6,b,_),P0(this.h,8,x,S),P0(this.h,10,I,R),P0(this.h,12,N,P),P0(this.h,14,L,D)};zs.prototype._digest=function(n){return n==="hex"?La.toHex32(this.h,"big"):La.split32(this.h,"big")};function R1e(i,n,s,c,a){var d=i&s^~i&a;return d<0&&(d+=4294967296),d}function T1e(i,n,s,c,a,d){var v=n&c^~n&d;return v<0&&(v+=4294967296),v}function k1e(i,n,s,c,a){var d=i&s^i&a^s&a;return d<0&&(d+=4294967296),d}function P1e(i,n,s,c,a,d){var v=n&c^n&d^c&d;return v<0&&(v+=4294967296),v}function $1e(i,n){var s=Rf(i,n,28),c=Rf(n,i,2),a=Rf(n,i,7),d=s^c^a;return d<0&&(d+=4294967296),d}function N1e(i,n){var s=Tf(i,n,28),c=Tf(n,i,2),a=Tf(n,i,7),d=s^c^a;return d<0&&(d+=4294967296),d}function C1e(i,n){var s=Rf(i,n,14),c=Rf(i,n,18),a=Rf(n,i,9),d=s^c^a;return d<0&&(d+=4294967296),d}function L1e(i,n){var s=Tf(i,n,14),c=Tf(i,n,18),a=Tf(n,i,9),d=s^c^a;return d<0&&(d+=4294967296),d}function D1e(i,n){var s=Rf(i,n,1),c=Rf(i,n,8),a=AZ(i,n,7),d=s^c^a;return d<0&&(d+=4294967296),d}function O1e(i,n){var s=Tf(i,n,1),c=Tf(i,n,8),a=BZ(i,n,7),d=s^c^a;return d<0&&(d+=4294967296),d}function q1e(i,n){var s=Rf(i,n,19),c=Rf(n,i,29),a=AZ(i,n,6),d=s^c^a;return d<0&&(d+=4294967296),d}function U1e(i,n){var s=Tf(i,n,19),c=Tf(n,i,29),a=BZ(i,n,6),d=s^c^a;return d<0&&(d+=4294967296),d}});var PZ=St((dxe,kZ)=>{"use strict";var pxe=me(Me());xe();_e();var z5=qs(),TZ=U5();function wh(){if(!(this instanceof wh))return new wh;TZ.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}z5.inherits(wh,TZ);kZ.exports=wh;wh.blockSize=1024;wh.outSize=384;wh.hmacStrength=192;wh.padLength=128;wh.prototype._digest=function(n){return n==="hex"?z5.toHex32(this.h.slice(0,12),"big"):z5.split32(this.h.slice(0,12),"big")}});var $Z=St(rd=>{"use strict";var gxe=me(Me());xe();_e();rd.sha1=wZ();rd.sha224=EZ();rd.sha256=L5();rd.sha384=PZ();rd.sha512=U5()});var qZ=St(OZ=>{"use strict";var _xe=me(Me());xe();_e();var ml=qs(),z1e=Xc(),Om=ml.rotl32,NZ=ml.sum32,wp=ml.sum32_3,CZ=ml.sum32_4,DZ=z1e.BlockHash;function kf(){if(!(this instanceof kf))return new kf;DZ.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}ml.inherits(kf,DZ);OZ.ripemd160=kf;kf.blockSize=512;kf.outSize=160;kf.hmacStrength=192;kf.padLength=64;kf.prototype._update=function(n,s){for(var c=this.h[0],a=this.h[1],d=this.h[2],v=this.h[3],y=this.h[4],M=c,w=a,b=d,_=v,x=y,S=0;S<80;S++){var I=NZ(Om(CZ(c,LZ(S,a,d,v),n[K1e[S]+s],F1e(S)),W1e[S]),y);c=y,y=v,v=Om(d,10),d=a,a=I,I=NZ(Om(CZ(M,LZ(79-S,w,b,_),n[j1e[S]+s],H1e(S)),Z1e[S]),x),M=x,x=_,_=Om(b,10),b=w,w=I}I=wp(this.h[1],d,_),this.h[1]=wp(this.h[2],v,x),this.h[2]=wp(this.h[3],y,M),this.h[3]=wp(this.h[4],c,w),this.h[4]=wp(this.h[0],a,b),this.h[0]=I};kf.prototype._digest=function(n){return n==="hex"?ml.toHex32(this.h,"little"):ml.split32(this.h,"little")};function LZ(i,n,s,c){return i<=15?n^s^c:i<=31?n&s|~n&c:i<=47?(n|~s)^c:i<=63?n&c|s&~c:n^(s|~c)}function F1e(i){return i<=15?0:i<=31?1518500249:i<=47?1859775393:i<=63?2400959708:2840853838}function H1e(i){return i<=15?1352829926:i<=31?1548603684:i<=47?1836072691:i<=63?2053994217:0}var K1e=[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],j1e=[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],W1e=[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],Z1e=[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]});var zZ=St((Exe,UZ)=>{"use strict";var Axe=me(Me());xe();_e();var G1e=qs(),V1e=ch();function id(i,n,s){if(!(this instanceof id))return new id(i,n,s);this.Hash=i,this.blockSize=i.blockSize/8,this.outSize=i.outSize/8,this.inner=null,this.outer=null,this._init(G1e.toArray(n,s))}UZ.exports=id;id.prototype._init=function(n){n.length>this.blockSize&&(n=new this.Hash().update(n).digest()),V1e(n.length<=this.blockSize);for(var s=n.length;s<this.blockSize;s++)n.push(0);for(s=0;s<n.length;s++)n[s]^=54;for(this.inner=new this.Hash().update(n),s=0;s<n.length;s++)n[s]^=106;this.outer=new this.Hash().update(n)};id.prototype.update=function(n,s){return this.inner.update(n,s),this};id.prototype.digest=function(n){return this.outer.update(this.inner.digest()),this.outer.digest(n)}});var $0=St(FZ=>{var Txe=me(Me());xe();_e();var Gn=FZ;Gn.utils=qs();Gn.common=Xc();Gn.sha=$Z();Gn.ripemd=qZ();Gn.hmac=zZ();Gn.sha1=Gn.sha.sha1;Gn.sha256=Gn.sha.sha256;Gn.sha224=Gn.sha.sha224;Gn.sha384=Gn.sha.sha384;Gn.sha512=Gn.sha.sha512;Gn.ripemd160=Gn.ripemd.ripemd160});var BS=St((AS,$G)=>{"use strict";var wBe=me(Me());xe();_e();(function(i){function n(t){return parseInt(t)===t}function s(t){if(!n(t.length))return!1;for(var u=0;u<t.length;u++)if(!n(t[u])||t[u]<0||t[u]>255)return!1;return!0}function c(t,u){if(t.buffer&&ArrayBuffer.isView(t)&&t.name==="Uint8Array")return u&&(t.slice?t=t.slice():t=Array.prototype.slice.call(t)),t;if(Array.isArray(t)){if(!s(t))throw new Error("Array contains invalid value: "+t);return new Uint8Array(t)}if(n(t.length)&&s(t))return new Uint8Array(t);throw new Error("unsupported array-like object")}function a(t){return new Uint8Array(t)}function d(t,u,E,B,k){(B!=null||k!=null)&&(t.slice?t=t.slice(B,k):t=Array.prototype.slice.call(t,B,k)),u.set(t,E)}var v=function(){function t(E){var B=[],k=0;for(E=encodeURI(E);k<E.length;){var q=E.charCodeAt(k++);q===37?(B.push(parseInt(E.substr(k,2),16)),k+=2):B.push(q)}return c(B)}function u(E){for(var B=[],k=0;k<E.length;){var q=E[k];q<128?(B.push(String.fromCharCode(q)),k++):q>191&&q<224?(B.push(String.fromCharCode((q&31)<<6|E[k+1]&63)),k+=2):(B.push(String.fromCharCode((q&15)<<12|(E[k+1]&63)<<6|E[k+2]&63)),k+=3)}return B.join("")}return{toBytes:t,fromBytes:u}}(),y=function(){function t(B){for(var k=[],q=0;q<B.length;q+=2)k.push(parseInt(B.substr(q,2),16));return k}var u="0123456789abcdef";function E(B){for(var k=[],q=0;q<B.length;q++){var z=B[q];k.push(u[(z&240)>>4]+u[z&15])}return k.join("")}return{toBytes:t,fromBytes:E}}(),M={16:10,24:12,32:14},w=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],b=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],_=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],x=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],S=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],I=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],R=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],N=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],P=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],L=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],D=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],Z=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],W=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],Q=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],K=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function F(t){for(var u=[],E=0;E<t.length;E+=4)u.push(t[E]<<24|t[E+1]<<16|t[E+2]<<8|t[E+3]);return u}var Y=function(t){if(!(this instanceof Y))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:c(t,!0)}),this._prepare()};Y.prototype._prepare=function(){var t=M[this.key.length];if(t==null)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var u=0;u<=t;u++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);for(var E=(t+1)*4,B=this.key.length/4,k=F(this.key),q,u=0;u<B;u++)q=u>>2,this._Ke[q][u%4]=k[u],this._Kd[t-q][u%4]=k[u];for(var z=0,ee=B,te;ee<E;){if(te=k[B-1],k[0]^=b[te>>16&255]<<24^b[te>>8&255]<<16^b[te&255]<<8^b[te>>24&255]^w[z]<<24,z+=1,B!=8)for(var u=1;u<B;u++)k[u]^=k[u-1];else{for(var u=1;u<B/2;u++)k[u]^=k[u-1];te=k[B/2-1],k[B/2]^=b[te&255]^b[te>>8&255]<<8^b[te>>16&255]<<16^b[te>>24&255]<<24;for(var u=B/2+1;u<B;u++)k[u]^=k[u-1]}for(var u=0,O,U;u<B&&ee<E;)O=ee>>2,U=ee%4,this._Ke[O][U]=k[u],this._Kd[t-O][U]=k[u++],ee++}for(var O=1;O<t;O++)for(var U=0;U<4;U++)te=this._Kd[O][U],this._Kd[O][U]=Z[te>>24&255]^W[te>>16&255]^Q[te>>8&255]^K[te&255]},Y.prototype.encrypt=function(t){if(t.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var u=this._Ke.length-1,E=[0,0,0,0],B=F(t),k=0;k<4;k++)B[k]^=this._Ke[0][k];for(var q=1;q<u;q++){for(var k=0;k<4;k++)E[k]=x[B[k]>>24&255]^S[B[(k+1)%4]>>16&255]^I[B[(k+2)%4]>>8&255]^R[B[(k+3)%4]&255]^this._Ke[q][k];B=E.slice()}for(var z=a(16),ee,k=0;k<4;k++)ee=this._Ke[u][k],z[4*k]=(b[B[k]>>24&255]^ee>>24)&255,z[4*k+1]=(b[B[(k+1)%4]>>16&255]^ee>>16)&255,z[4*k+2]=(b[B[(k+2)%4]>>8&255]^ee>>8)&255,z[4*k+3]=(b[B[(k+3)%4]&255]^ee)&255;return z},Y.prototype.decrypt=function(t){if(t.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var u=this._Kd.length-1,E=[0,0,0,0],B=F(t),k=0;k<4;k++)B[k]^=this._Kd[0][k];for(var q=1;q<u;q++){for(var k=0;k<4;k++)E[k]=N[B[k]>>24&255]^P[B[(k+3)%4]>>16&255]^L[B[(k+2)%4]>>8&255]^D[B[(k+1)%4]&255]^this._Kd[q][k];B=E.slice()}for(var z=a(16),ee,k=0;k<4;k++)ee=this._Kd[u][k],z[4*k]=(_[B[k]>>24&255]^ee>>24)&255,z[4*k+1]=(_[B[(k+3)%4]>>16&255]^ee>>16)&255,z[4*k+2]=(_[B[(k+2)%4]>>8&255]^ee>>8)&255,z[4*k+3]=(_[B[(k+1)%4]&255]^ee)&255;return z};var m=function(t){if(!(this instanceof m))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new Y(t)};m.prototype.encrypt=function(t){if(t=c(t),t.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var u=a(t.length),E=a(16),B=0;B<t.length;B+=16)d(t,E,0,B,B+16),E=this._aes.encrypt(E),d(E,u,B);return u},m.prototype.decrypt=function(t){if(t=c(t),t.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var u=a(t.length),E=a(16),B=0;B<t.length;B+=16)d(t,E,0,B,B+16),E=this._aes.decrypt(E),d(E,u,B);return u};var e=function(t,u){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",!u)u=a(16);else if(u.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastCipherblock=c(u,!0),this._aes=new Y(t)};e.prototype.encrypt=function(t){if(t=c(t),t.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var u=a(t.length),E=a(16),B=0;B<t.length;B+=16){d(t,E,0,B,B+16);for(var k=0;k<16;k++)E[k]^=this._lastCipherblock[k];this._lastCipherblock=this._aes.encrypt(E),d(this._lastCipherblock,u,B)}return u},e.prototype.decrypt=function(t){if(t=c(t),t.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var u=a(t.length),E=a(16),B=0;B<t.length;B+=16){d(t,E,0,B,B+16),E=this._aes.decrypt(E);for(var k=0;k<16;k++)u[B+k]=E[k]^this._lastCipherblock[k];d(t,this._lastCipherblock,0,B,B+16)}return u};var r=function(t,u,E){if(!(this instanceof r))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",!u)u=a(16);else if(u.length!=16)throw new Error("invalid initialation vector size (must be 16 size)");E||(E=1),this.segmentSize=E,this._shiftRegister=c(u,!0),this._aes=new Y(t)};r.prototype.encrypt=function(t){if(t.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var u=c(t,!0),E,B=0;B<u.length;B+=this.segmentSize){E=this._aes.encrypt(this._shiftRegister);for(var k=0;k<this.segmentSize;k++)u[B+k]^=E[k];d(this._shiftRegister,this._shiftRegister,0,this.segmentSize),d(u,this._shiftRegister,16-this.segmentSize,B,B+this.segmentSize)}return u},r.prototype.decrypt=function(t){if(t.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var u=c(t,!0),E,B=0;B<u.length;B+=this.segmentSize){E=this._aes.encrypt(this._shiftRegister);for(var k=0;k<this.segmentSize;k++)u[B+k]^=E[k];d(this._shiftRegister,this._shiftRegister,0,this.segmentSize),d(t,this._shiftRegister,16-this.segmentSize,B,B+this.segmentSize)}return u};var o=function(t,u){if(!(this instanceof o))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",!u)u=a(16);else if(u.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastPrecipher=c(u,!0),this._lastPrecipherIndex=16,this._aes=new Y(t)};o.prototype.encrypt=function(t){for(var u=c(t,!0),E=0;E<u.length;E++)this._lastPrecipherIndex===16&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),u[E]^=this._lastPrecipher[this._lastPrecipherIndex++];return u},o.prototype.decrypt=o.prototype.encrypt;var f=function(t){if(!(this instanceof f))throw Error("Counter must be instanitated with `new`");t!==0&&!t&&(t=1),typeof t=="number"?(this._counter=a(16),this.setValue(t)):this.setBytes(t)};f.prototype.setValue=function(t){if(typeof t!="number"||parseInt(t)!=t)throw new Error("invalid counter value (must be an integer)");for(var u=15;u>=0;--u)this._counter[u]=t%256,t=t>>8},f.prototype.setBytes=function(t){if(t=c(t,!0),t.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=t},f.prototype.increment=function(){for(var t=15;t>=0;t--)if(this._counter[t]===255)this._counter[t]=0;else{this._counter[t]++;break}};var h=function(t,u){if(!(this instanceof h))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",u instanceof f||(u=new f(u)),this._counter=u,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new Y(t)};h.prototype.encrypt=function(t){for(var u=c(t,!0),E=0;E<u.length;E++)this._remainingCounterIndex===16&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),u[E]^=this._remainingCounter[this._remainingCounterIndex++];return u},h.prototype.decrypt=h.prototype.encrypt;function p(t){t=c(t,!0);var u=16-t.length%16,E=a(t.length+u);d(t,E);for(var B=t.length;B<E.length;B++)E[B]=u;return E}function g(t){if(t=c(t,!0),t.length<16)throw new Error("PKCS#7 invalid length");var u=t[t.length-1];if(u>16)throw new Error("PKCS#7 padding byte out of range");for(var E=t.length-u,B=0;B<u;B++)if(t[E+B]!==u)throw new Error("PKCS#7 invalid padding byte");var k=a(E);return d(t,k,0,0,E),k}var l={AES:Y,Counter:f,ModeOfOperation:{ecb:m,cbc:e,cfb:r,ofb:o,ctr:h},utils:{hex:y,utf8:v},padding:{pkcs7:{pad:p,strip:g}},_arrayTest:{coerceArray:c,createArray:a,copyArray:d}};typeof AS<"u"?$G.exports=l:typeof define=="function"&&define.amd?define(l):(i.aesjs&&(l._aesjs=i.aesjs),i.aesjs=l)})(AS)});var UG=St((qS,qG)=>{"use strict";var oIe=me(Me());xe();_e();(function(i){function s(S){let I=new Uint32Array([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]),R=1779033703,N=3144134277,P=1013904242,L=2773480762,D=1359893119,Z=2600822924,W=528734635,Q=1541459225,K=new Uint32Array(64);function F(h){let p=0,g=h.length;for(;g>=64;){let l=R,t=N,u=P,E=L,B=D,k=Z,q=W,z=Q,ee,te,O,U,oe;for(te=0;te<16;te++)O=p+te*4,K[te]=(h[O]&255)<<24|(h[O+1]&255)<<16|(h[O+2]&255)<<8|h[O+3]&255;for(te=16;te<64;te++)ee=K[te-2],U=(ee>>>17|ee<<15)^(ee>>>19|ee<<13)^ee>>>10,ee=K[te-15],oe=(ee>>>7|ee<<25)^(ee>>>18|ee<<14)^ee>>>3,K[te]=(U+K[te-7]|0)+(oe+K[te-16]|0)|0;for(te=0;te<64;te++)U=(((B>>>6|B<<26)^(B>>>11|B<<21)^(B>>>25|B<<7))+(B&k^~B&q)|0)+(z+(I[te]+K[te]|0)|0)|0,oe=((l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10))+(l&t^l&u^t&u)|0,z=q,q=k,k=B,B=E+U|0,E=u,u=t,t=l,l=U+oe|0;R=R+l|0,N=N+t|0,P=P+u|0,L=L+E|0,D=D+B|0,Z=Z+k|0,W=W+q|0,Q=Q+z|0,p+=64,g-=64}}F(S);let Y,m=S.length%64,e=S.length/536870912|0,r=S.length<<3,o=m<56?56:120,f=S.slice(S.length-m,S.length);for(f.push(128),Y=m+1;Y<o;Y++)f.push(0);return f.push(e>>>24&255),f.push(e>>>16&255),f.push(e>>>8&255),f.push(e>>>0&255),f.push(r>>>24&255),f.push(r>>>16&255),f.push(r>>>8&255),f.push(r>>>0&255),F(f),[R>>>24&255,R>>>16&255,R>>>8&255,R>>>0&255,N>>>24&255,N>>>16&255,N>>>8&255,N>>>0&255,P>>>24&255,P>>>16&255,P>>>8&255,P>>>0&255,L>>>24&255,L>>>16&255,L>>>8&255,L>>>0&255,D>>>24&255,D>>>16&255,D>>>8&255,D>>>0&255,Z>>>24&255,Z>>>16&255,Z>>>8&255,Z>>>0&255,W>>>24&255,W>>>16&255,W>>>8&255,W>>>0&255,Q>>>24&255,Q>>>16&255,Q>>>8&255,Q>>>0&255]}function c(S,I,R){S=S.length<=64?S:s(S);let N=64+I.length+4,P=new Array(N),L=new Array(64),D,Z=[];for(D=0;D<64;D++)P[D]=54;for(D=0;D<S.length;D++)P[D]^=S[D];for(D=0;D<I.length;D++)P[64+D]=I[D];for(D=N-4;D<N;D++)P[D]=0;for(D=0;D<64;D++)L[D]=92;for(D=0;D<S.length;D++)L[D]^=S[D];function W(){for(let Q=N-1;Q>=N-4;Q--){if(P[Q]++,P[Q]<=255)return;P[Q]=0}}for(;R>=32;)W(),Z=Z.concat(s(L.concat(s(P)))),R-=32;return R>0&&(W(),Z=Z.concat(s(L.concat(s(P))).slice(0,R))),Z}function a(S,I,R,N,P){let L;for(M(S,(2*R-1)*16,P,0,16),L=0;L<2*R;L++)y(S,L*16,P,16),v(P,N),M(P,0,S,I+L*16,16);for(L=0;L<R;L++)M(S,I+L*2*16,S,L*16,16);for(L=0;L<R;L++)M(S,I+(L*2+1)*16,S,(L+R)*16,16)}function d(S,I){return S<<I|S>>>32-I}function v(S,I){M(S,0,I,0,16);for(let R=8;R>0;R-=2)I[4]^=d(I[0]+I[12],7),I[8]^=d(I[4]+I[0],9),I[12]^=d(I[8]+I[4],13),I[0]^=d(I[12]+I[8],18),I[9]^=d(I[5]+I[1],7),I[13]^=d(I[9]+I[5],9),I[1]^=d(I[13]+I[9],13),I[5]^=d(I[1]+I[13],18),I[14]^=d(I[10]+I[6],7),I[2]^=d(I[14]+I[10],9),I[6]^=d(I[2]+I[14],13),I[10]^=d(I[6]+I[2],18),I[3]^=d(I[15]+I[11],7),I[7]^=d(I[3]+I[15],9),I[11]^=d(I[7]+I[3],13),I[15]^=d(I[11]+I[7],18),I[1]^=d(I[0]+I[3],7),I[2]^=d(I[1]+I[0],9),I[3]^=d(I[2]+I[1],13),I[0]^=d(I[3]+I[2],18),I[6]^=d(I[5]+I[4],7),I[7]^=d(I[6]+I[5],9),I[4]^=d(I[7]+I[6],13),I[5]^=d(I[4]+I[7],18),I[11]^=d(I[10]+I[9],7),I[8]^=d(I[11]+I[10],9),I[9]^=d(I[8]+I[11],13),I[10]^=d(I[9]+I[8],18),I[12]^=d(I[15]+I[14],7),I[13]^=d(I[12]+I[15],9),I[14]^=d(I[13]+I[12],13),I[15]^=d(I[14]+I[13],18);for(let R=0;R<16;++R)S[R]+=I[R]}function y(S,I,R,N){for(let P=0;P<N;P++)R[P]^=S[I+P]}function M(S,I,R,N,P){for(;P--;)R[N++]=S[I++]}function w(S){if(!S||typeof S.length!="number")return!1;for(let I=0;I<S.length;I++){let R=S[I];if(typeof R!="number"||R%1||R<0||R>=256)return!1}return!0}function b(S,I){if(typeof S!="number"||S%1)throw new Error("invalid "+I);return S}function _(S,I,R,N,P,L,D){if(R=b(R,"N"),N=b(N,"r"),P=b(P,"p"),L=b(L,"dkLen"),R===0||R&R-1)throw new Error("N must be power of 2");if(R>2147483647/128/N)throw new Error("N too large");if(N>2147483647/128/P)throw new Error("r too large");if(!w(S))throw new Error("password must be an array or buffer");if(S=Array.prototype.slice.call(S),!w(I))throw new Error("salt must be an array or buffer");I=Array.prototype.slice.call(I);let Z=c(S,I,P*128*N),W=new Uint32Array(P*32*N);for(let B=0;B<W.length;B++){let k=B*4;W[B]=(Z[k+3]&255)<<24|(Z[k+2]&255)<<16|(Z[k+1]&255)<<8|(Z[k+0]&255)<<0}let Q=new Uint32Array(64*N),K=new Uint32Array(32*N*R),F=32*N,Y=new Uint32Array(16),m=new Uint32Array(16),e=P*R*2,r=0,o=null,f=!1,h=0,p=0,g,l,t=D?parseInt(1e3/N):4294967295,u=typeof setImmediate<"u"?setImmediate:setTimeout,E=function(){if(f)return D(new Error("cancelled"),r/e);let B;switch(h){case 0:l=p*32*N,M(W,l,Q,0,F),h=1,g=0;case 1:B=R-g,B>t&&(B=t);for(let q=0;q<B;q++)M(Q,0,K,(g+q)*F,F),a(Q,F,N,Y,m);if(g+=B,r+=B,D){let q=parseInt(1e3*r/e);if(q!==o){if(f=D(null,r/e),f)break;o=q}}if(g<R)break;g=0,h=2;case 2:B=R-g,B>t&&(B=t);for(let q=0;q<B;q++){let z=(2*N-1)*16,ee=Q[z]&R-1;y(K,ee*F,Q,F),a(Q,F,N,Y,m)}if(g+=B,r+=B,D){let q=parseInt(1e3*r/e);if(q!==o){if(f=D(null,r/e),f)break;o=q}}if(g<R)break;if(M(Q,0,W,l,F),p++,p<P){h=0;break}Z=[];for(let q=0;q<W.length;q++)Z.push(W[q]>>0&255),Z.push(W[q]>>8&255),Z.push(W[q]>>16&255),Z.push(W[q]>>24&255);let k=c(S,Z,L);return D&&D(null,1,k),k}D&&u(E)};if(!D)for(;;){let B=E();if(B!=null)return B}E()}let x={scrypt:function(S,I,R,N,P,L,D){return new Promise(function(Z,W){let Q=0;D&&D(0),_(S,I,R,N,P,L,function(K,F,Y){if(K)W(K);else if(Y)D&&Q!==1&&D(1),Z(new Uint8Array(Y));else if(D&&F!==Q)return Q=F,D(F)})})},syncScrypt:function(S,I,R,N,P,L){return new Uint8Array(_(S,I,R,N,P,L))}};typeof qS<"u"?qG.exports=x:typeof define=="function"&&define.amd?define(x):i&&(i.scrypt&&(i._scrypt=i.scrypt),i.scrypt=x)})(qS)});var sV=St((tE,oV)=>{var jRe=me(Me());xe();_e();var yb=(hl(),Lh(fl)),Lf=yb.Buffer;function aV(i,n){for(var s in i)n[s]=i[s]}Lf.from&&Lf.alloc&&Lf.allocUnsafe&&Lf.allocUnsafeSlow?oV.exports=yb:(aV(yb,tE),tE.Buffer=Il);function Il(i,n,s){return Lf(i,n,s)}Il.prototype=Object.create(Lf.prototype);aV(Lf,Il);Il.from=function(i,n,s){if(typeof i=="number")throw new TypeError("Argument must not be a number");return Lf(i,n,s)};Il.alloc=function(i,n,s){if(typeof i!="number")throw new TypeError("Argument must be a number");var c=Lf(i);return n!==void 0?typeof s=="string"?c.fill(n,s):c.fill(n):c.fill(0),c};Il.allocUnsafe=function(i){if(typeof i!="number")throw new TypeError("Argument must be a number");return Lf(i)};Il.allocUnsafeSlow=function(i){if(typeof i!="number")throw new TypeError("Argument must be a number");return yb.SlowBuffer(i)}});var hV=St((GRe,fV)=>{"use strict";var VRe=me(Me());xe();_e();var wb=sV().Buffer;function ave(i){if(i.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),s=0;s<n.length;s++)n[s]=255;for(var c=0;c<i.length;c++){var a=i.charAt(c),d=a.charCodeAt(0);if(n[d]!==255)throw new TypeError(a+" is ambiguous");n[d]=c}var v=i.length,y=i.charAt(0),M=Math.log(v)/Math.log(256),w=Math.log(256)/Math.log(v);function b(S){if((Array.isArray(S)||S instanceof Uint8Array)&&(S=wb.from(S)),!wb.isBuffer(S))throw new TypeError("Expected Buffer");if(S.length===0)return"";for(var I=0,R=0,N=0,P=S.length;N!==P&&S[N]===0;)N++,I++;for(var L=(P-N)*w+1>>>0,D=new Uint8Array(L);N!==P;){for(var Z=S[N],W=0,Q=L-1;(Z!==0||W<R)&&Q!==-1;Q--,W++)Z+=256*D[Q]>>>0,D[Q]=Z%v>>>0,Z=Z/v>>>0;if(Z!==0)throw new Error("Non-zero carry");R=W,N++}for(var K=L-R;K!==L&&D[K]===0;)K++;for(var F=y.repeat(I);K<L;++K)F+=i.charAt(D[K]);return F}function _(S){if(typeof S!="string")throw new TypeError("Expected String");if(S.length===0)return wb.alloc(0);for(var I=0,R=0,N=0;S[I]===y;)R++,I++;for(var P=(S.length-I)*M+1>>>0,L=new Uint8Array(P);I<S.length;){var D=S.charCodeAt(I);if(D>255)return;var Z=n[D];if(Z===255)return;for(var W=0,Q=P-1;(Z!==0||W<N)&&Q!==-1;Q--,W++)Z+=v*L[Q]>>>0,L[Q]=Z%256>>>0,Z=Z/256>>>0;if(Z!==0)throw new Error("Non-zero carry");N=W,I++}for(var K=P-N;K!==P&&L[K]===0;)K++;var F=wb.allocUnsafe(R+(P-K));F.fill(0,0,R);for(var Y=R;K!==P;)F[Y++]=L[K++];return F}function x(S){var I=_(S);if(I)return I;throw new Error("Non-base"+v+" character")}return{encode:b,decodeUnsafe:_,decode:x}}fV.exports=ave});var lV=St((XRe,uV)=>{var QRe=me(Me());xe();_e();var ove=hV(),sve="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";uV.exports=ove(sve)});var dV=St((sTe,cV)=>{var fTe=me(Me());xe();_e();var jr={IMPOSSIBLE_CASE:"Impossible case. Please create issue.",TWEAK_ADD:"The tweak was out of range or the resulted private key is invalid",TWEAK_MUL:"The tweak was out of range or equal to zero",CONTEXT_RANDOMIZE_UNKNOW:"Unknow error on context randomization",SECKEY_INVALID:"Private Key is invalid",PUBKEY_PARSE:"Public Key could not be parsed",PUBKEY_SERIALIZE:"Public Key serialization error",PUBKEY_COMBINE:"The sum of the public keys is not valid",SIG_PARSE:"Signature could not be parsed",SIGN:"The nonce generation function failed, or the private key was invalid",RECOVER:"Public key could not be recover",ECDH:"Scalar was invalid (zero or overflow)"};function fs(i,n){if(!i)throw new Error(n)}function Hr(i,n,s){if(fs(n instanceof Uint8Array,`Expected ${i} to be an Uint8Array`),s!==void 0)if(Array.isArray(s)){let c=s.join(", "),a=`Expected ${i} to be an Uint8Array with length [${c}]`;fs(s.includes(n.length),a)}else{let c=`Expected ${i} to be an Uint8Array with length ${s}`;fs(n.length===s,c)}}function Rl(i){fs(yd(i)==="Boolean","Expected compressed to be a Boolean")}function Vs(i=s=>new Uint8Array(s),n){return typeof i=="function"&&(i=i(n)),Hr("output",i,n),i}function yd(i){return Object.prototype.toString.call(i).slice(8,-1)}cV.exports=i=>({contextRandomize(n){switch(fs(n===null||n instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),n!==null&&Hr("seed",n,32),i.contextRandomize(n)){case 1:throw new Error(jr.CONTEXT_RANDOMIZE_UNKNOW)}},privateKeyVerify(n){return Hr("private key",n,32),i.privateKeyVerify(n)===0},privateKeyNegate(n){switch(Hr("private key",n,32),i.privateKeyNegate(n)){case 0:return n;case 1:throw new Error(jr.IMPOSSIBLE_CASE)}},privateKeyTweakAdd(n,s){switch(Hr("private key",n,32),Hr("tweak",s,32),i.privateKeyTweakAdd(n,s)){case 0:return n;case 1:throw new Error(jr.TWEAK_ADD)}},privateKeyTweakMul(n,s){switch(Hr("private key",n,32),Hr("tweak",s,32),i.privateKeyTweakMul(n,s)){case 0:return n;case 1:throw new Error(jr.TWEAK_MUL)}},publicKeyVerify(n){return Hr("public key",n,[33,65]),i.publicKeyVerify(n)===0},publicKeyCreate(n,s=!0,c){switch(Hr("private key",n,32),Rl(s),c=Vs(c,s?33:65),i.publicKeyCreate(c,n)){case 0:return c;case 1:throw new Error(jr.SECKEY_INVALID);case 2:throw new Error(jr.PUBKEY_SERIALIZE)}},publicKeyConvert(n,s=!0,c){switch(Hr("public key",n,[33,65]),Rl(s),c=Vs(c,s?33:65),i.publicKeyConvert(c,n)){case 0:return c;case 1:throw new Error(jr.PUBKEY_PARSE);case 2:throw new Error(jr.PUBKEY_SERIALIZE)}},publicKeyNegate(n,s=!0,c){switch(Hr("public key",n,[33,65]),Rl(s),c=Vs(c,s?33:65),i.publicKeyNegate(c,n)){case 0:return c;case 1:throw new Error(jr.PUBKEY_PARSE);case 2:throw new Error(jr.IMPOSSIBLE_CASE);case 3:throw new Error(jr.PUBKEY_SERIALIZE)}},publicKeyCombine(n,s=!0,c){fs(Array.isArray(n),"Expected public keys to be an Array"),fs(n.length>0,"Expected public keys array will have more than zero items");for(let a of n)Hr("public key",a,[33,65]);switch(Rl(s),c=Vs(c,s?33:65),i.publicKeyCombine(c,n)){case 0:return c;case 1:throw new Error(jr.PUBKEY_PARSE);case 2:throw new Error(jr.PUBKEY_COMBINE);case 3:throw new Error(jr.PUBKEY_SERIALIZE)}},publicKeyTweakAdd(n,s,c=!0,a){switch(Hr("public key",n,[33,65]),Hr("tweak",s,32),Rl(c),a=Vs(a,c?33:65),i.publicKeyTweakAdd(a,n,s)){case 0:return a;case 1:throw new Error(jr.PUBKEY_PARSE);case 2:throw new Error(jr.TWEAK_ADD)}},publicKeyTweakMul(n,s,c=!0,a){switch(Hr("public key",n,[33,65]),Hr("tweak",s,32),Rl(c),a=Vs(a,c?33:65),i.publicKeyTweakMul(a,n,s)){case 0:return a;case 1:throw new Error(jr.PUBKEY_PARSE);case 2:throw new Error(jr.TWEAK_MUL)}},signatureNormalize(n){switch(Hr("signature",n,64),i.signatureNormalize(n)){case 0:return n;case 1:throw new Error(jr.SIG_PARSE)}},signatureExport(n,s){Hr("signature",n,64),s=Vs(s,72);let c={output:s,outputlen:72};switch(i.signatureExport(c,n)){case 0:return s.slice(0,c.outputlen);case 1:throw new Error(jr.SIG_PARSE);case 2:throw new Error(jr.IMPOSSIBLE_CASE)}},signatureImport(n,s){switch(Hr("signature",n),s=Vs(s,64),i.signatureImport(s,n)){case 0:return s;case 1:throw new Error(jr.SIG_PARSE);case 2:throw new Error(jr.IMPOSSIBLE_CASE)}},ecdsaSign(n,s,c={},a){Hr("message",n,32),Hr("private key",s,32),fs(yd(c)==="Object","Expected options to be an Object"),c.data!==void 0&&Hr("options.data",c.data),c.noncefn!==void 0&&fs(yd(c.noncefn)==="Function","Expected options.noncefn to be a Function"),a=Vs(a,64);let d={signature:a,recid:null};switch(i.ecdsaSign(d,n,s,c.data,c.noncefn)){case 0:return d;case 1:throw new Error(jr.SIGN);case 2:throw new Error(jr.IMPOSSIBLE_CASE)}},ecdsaVerify(n,s,c){switch(Hr("signature",n,64),Hr("message",s,32),Hr("public key",c,[33,65]),i.ecdsaVerify(n,s,c)){case 0:return!0;case 3:return!1;case 1:throw new Error(jr.SIG_PARSE);case 2:throw new Error(jr.PUBKEY_PARSE)}},ecdsaRecover(n,s,c,a=!0,d){switch(Hr("signature",n,64),fs(yd(s)==="Number"&&s>=0&&s<=3,"Expected recovery id to be a Number within interval [0, 3]"),Hr("message",c,32),Rl(a),d=Vs(d,a?33:65),i.ecdsaRecover(d,n,s,c)){case 0:return d;case 1:throw new Error(jr.SIG_PARSE);case 2:throw new Error(jr.RECOVER);case 3:throw new Error(jr.IMPOSSIBLE_CASE)}},ecdh(n,s,c={},a){switch(Hr("public key",n,[33,65]),Hr("private key",s,32),fs(yd(c)==="Object","Expected options to be an Object"),c.data!==void 0&&Hr("options.data",c.data),c.hashfn!==void 0?(fs(yd(c.hashfn)==="Function","Expected options.hashfn to be a Function"),c.xbuf!==void 0&&Hr("options.xbuf",c.xbuf,32),c.ybuf!==void 0&&Hr("options.ybuf",c.ybuf,32),Hr("output",a)):a=Vs(a,32),i.ecdh(a,n,s,c.data,c.hashfn,c.xbuf,c.ybuf)){case 0:return a;case 1:throw new Error(jr.PUBKEY_PARSE);case 2:throw new Error(jr.ECDH)}}})});var pV=St((lTe,fve)=>{fve.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}});var Df=St((vV,rE)=>{var cTe=me(Me());xe();_e();(function(i,n){"use strict";function s(m,e){if(!m)throw new Error(e||"Assertion failed")}function c(m,e){m.super_=e;var r=function(){};r.prototype=e.prototype,m.prototype=new r,m.prototype.constructor=m}function a(m,e,r){if(a.isBN(m))return m;this.negative=0,this.words=null,this.length=0,this.red=null,m!==null&&((e==="le"||e==="be")&&(r=e,e=10),this._init(m||0,e||10,r||"be"))}typeof i=="object"?i.exports=a:n.BN=a,a.BN=a,a.wordSize=26;var d;try{typeof window<"u"&&typeof window.Buffer<"u"?d=window.Buffer:d=bm().Buffer}catch{}a.isBN=function(e){return e instanceof a?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,r){return e.cmp(r)>0?e:r},a.min=function(e,r){return e.cmp(r)<0?e:r},a.prototype._init=function(e,r,o){if(typeof e=="number")return this._initNumber(e,r,o);if(typeof e=="object")return this._initArray(e,r,o);r==="hex"&&(r=16),s(r===(r|0)&&r>=2&&r<=36),e=e.toString().replace(/\s+/g,"");var f=0;e[0]==="-"&&(f++,this.negative=1),f<e.length&&(r===16?this._parseHex(e,f,o):(this._parseBase(e,r,f),o==="le"&&this._initArray(this.toArray(),r,o)))},a.prototype._initNumber=function(e,r,o){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[e&67108863],this.length=1):e<4503599627370496?(this.words=[e&67108863,e/67108864&67108863],this.length=2):(s(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),o==="le"&&this._initArray(this.toArray(),r,o)},a.prototype._initArray=function(e,r,o){if(s(typeof e.length=="number"),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var h,p,g=0;if(o==="be")for(f=e.length-1,h=0;f>=0;f-=3)p=e[f]|e[f-1]<<8|e[f-2]<<16,this.words[h]|=p<<g&67108863,this.words[h+1]=p>>>26-g&67108863,g+=24,g>=26&&(g-=26,h++);else if(o==="le")for(f=0,h=0;f<e.length;f+=3)p=e[f]|e[f+1]<<8|e[f+2]<<16,this.words[h]|=p<<g&67108863,this.words[h+1]=p>>>26-g&67108863,g+=24,g>=26&&(g-=26,h++);return this.strip()};function v(m,e){var r=m.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function y(m,e,r){var o=v(m,r);return r-1>=e&&(o|=v(m,r-1)<<4),o}a.prototype._parseHex=function(e,r,o){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var h=0,p=0,g;if(o==="be")for(f=e.length-1;f>=r;f-=2)g=y(e,r,f)<<h,this.words[p]|=g&67108863,h>=18?(h-=18,p+=1,this.words[p]|=g>>>26):h+=8;else{var l=e.length-r;for(f=l%2===0?r+1:r;f<e.length;f+=2)g=y(e,r,f)<<h,this.words[p]|=g&67108863,h>=18?(h-=18,p+=1,this.words[p]|=g>>>26):h+=8}this.strip()};function M(m,e,r,o){for(var f=0,h=Math.min(m.length,r),p=e;p<h;p++){var g=m.charCodeAt(p)-48;f*=o,g>=49?f+=g-49+10:g>=17?f+=g-17+10:f+=g}return f}a.prototype._parseBase=function(e,r,o){this.words=[0],this.length=1;for(var f=0,h=1;h<=67108863;h*=r)f++;f--,h=h/r|0;for(var p=e.length-o,g=p%f,l=Math.min(p,p-g)+o,t=0,u=o;u<l;u+=f)t=M(e,u,u+f,r),this.imuln(h),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t);if(g!==0){var E=1;for(t=M(e,u,e.length,r),u=0;u<g;u++)E*=r;this.imuln(E),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t)}this.strip()},a.prototype.copy=function(e){e.words=new Array(this.length);for(var r=0;r<this.length;r++)e.words[r]=this.words[r];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var w=["","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"],b=[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],_=[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];a.prototype.toString=function(e,r){e=e||10,r=r|0||1;var o;if(e===16||e==="hex"){o="";for(var f=0,h=0,p=0;p<this.length;p++){var g=this.words[p],l=((g<<f|h)&16777215).toString(16);h=g>>>24-f&16777215,f+=2,f>=26&&(f-=26,p--),h!==0||p!==this.length-1?o=w[6-l.length]+l+o:o=l+o}for(h!==0&&(o=h.toString(16)+o);o.length%r!==0;)o="0"+o;return this.negative!==0&&(o="-"+o),o}if(e===(e|0)&&e>=2&&e<=36){var t=b[e],u=_[e];o="";var E=this.clone();for(E.negative=0;!E.isZero();){var B=E.modn(u).toString(e);E=E.idivn(u),E.isZero()?o=B+o:o=w[t-B.length]+B+o}for(this.isZero()&&(o="0"+o);o.length%r!==0;)o="0"+o;return this.negative!==0&&(o="-"+o),o}s(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=this.words[1]*67108864:this.length===3&&this.words[2]===1?e+=4503599627370496+this.words[1]*67108864:this.length>2&&s(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,r){return s(typeof d<"u"),this.toArrayLike(d,e,r)},a.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},a.prototype.toArrayLike=function(e,r,o){var f=this.byteLength(),h=o||Math.max(1,f);s(f<=h,"byte array longer than desired length"),s(h>0,"Requested array length <= 0"),this.strip();var p=r==="le",g=new e(h),l,t,u=this.clone();if(p){for(t=0;!u.isZero();t++)l=u.andln(255),u.iushrn(8),g[t]=l;for(;t<h;t++)g[t]=0}else{for(t=0;t<h-f;t++)g[t]=0;for(t=0;!u.isZero();t++)l=u.andln(255),u.iushrn(8),g[h-t-1]=l}return g},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var r=e,o=0;return r>=4096&&(o+=13,r>>>=13),r>=64&&(o+=7,r>>>=7),r>=8&&(o+=4,r>>>=4),r>=2&&(o+=2,r>>>=2),o+r},a.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,o=0;return r&8191||(o+=13,r>>>=13),r&127||(o+=7,r>>>=7),r&15||(o+=4,r>>>=4),r&3||(o+=2,r>>>=2),r&1||o++,o},a.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return(this.length-1)*26+r};function x(m){for(var e=new Array(m.bitLength()),r=0;r<e.length;r++){var o=r/26|0,f=r%26;e[r]=(m.words[o]&1<<f)>>>f}return e}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var o=this._zeroBits(this.words[r]);if(e+=o,o!==26)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]|e.words[r];return this.strip()},a.prototype.ior=function(e){return s((this.negative|e.negative)===0),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var r;this.length>e.length?r=e:r=this;for(var o=0;o<r.length;o++)this.words[o]=this.words[o]&e.words[o];return this.length=r.length,this.strip()},a.prototype.iand=function(e){return s((this.negative|e.negative)===0),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var r,o;this.length>e.length?(r=this,o=e):(r=e,o=this);for(var f=0;f<o.length;f++)this.words[f]=r.words[f]^o.words[f];if(this!==r)for(;f<r.length;f++)this.words[f]=r.words[f];return this.length=r.length,this.strip()},a.prototype.ixor=function(e){return s((this.negative|e.negative)===0),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){s(typeof e=="number"&&e>=0);var r=Math.ceil(e/26)|0,o=e%26;this._expand(r),o>0&&r--;for(var f=0;f<r;f++)this.words[f]=~this.words[f]&67108863;return o>0&&(this.words[f]=~this.words[f]&67108863>>26-o),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,r){s(typeof e=="number"&&e>=0);var o=e/26|0,f=e%26;return this._expand(o+1),r?this.words[o]=this.words[o]|1<<f:this.words[o]=this.words[o]&~(1<<f),this.strip()},a.prototype.iadd=function(e){var r;if(this.negative!==0&&e.negative===0)return this.negative=0,r=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,r=this.isub(e),e.negative=1,r._normSign();var o,f;this.length>e.length?(o=this,f=e):(o=e,f=this);for(var h=0,p=0;p<f.length;p++)r=(o.words[p]|0)+(f.words[p]|0)+h,this.words[p]=r&67108863,h=r>>>26;for(;h!==0&&p<o.length;p++)r=(o.words[p]|0)+h,this.words[p]=r&67108863,h=r>>>26;if(this.length=o.length,h!==0)this.words[this.length]=h,this.length++;else if(o!==this)for(;p<o.length;p++)this.words[p]=o.words[p];return this},a.prototype.add=function(e){var r;return e.negative!==0&&this.negative===0?(e.negative=0,r=this.sub(e),e.negative^=1,r):e.negative===0&&this.negative!==0?(this.negative=0,r=e.sub(this),this.negative=1,r):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);return e.negative=1,r._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var o=this.cmp(e);if(o===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,h;o>0?(f=this,h=e):(f=e,h=this);for(var p=0,g=0;g<h.length;g++)r=(f.words[g]|0)-(h.words[g]|0)+p,p=r>>26,this.words[g]=r&67108863;for(;p!==0&&g<f.length;g++)r=(f.words[g]|0)+p,p=r>>26,this.words[g]=r&67108863;if(p===0&&g<f.length&&f!==this)for(;g<f.length;g++)this.words[g]=f.words[g];return this.length=Math.max(this.length,g),f!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(e){return this.clone().isub(e)};function S(m,e,r){r.negative=e.negative^m.negative;var o=m.length+e.length|0;r.length=o,o=o-1|0;var f=m.words[0]|0,h=e.words[0]|0,p=f*h,g=p&67108863,l=p/67108864|0;r.words[0]=g;for(var t=1;t<o;t++){for(var u=l>>>26,E=l&67108863,B=Math.min(t,e.length-1),k=Math.max(0,t-m.length+1);k<=B;k++){var q=t-k|0;f=m.words[q]|0,h=e.words[k]|0,p=f*h+E,u+=p/67108864|0,E=p&67108863}r.words[t]=E|0,l=u|0}return l!==0?r.words[t]=l|0:r.length--,r.strip()}var I=function(e,r,o){var f=e.words,h=r.words,p=o.words,g=0,l,t,u,E=f[0]|0,B=E&8191,k=E>>>13,q=f[1]|0,z=q&8191,ee=q>>>13,te=f[2]|0,O=te&8191,U=te>>>13,oe=f[3]|0,X=oe&8191,j=oe>>>13,V=f[4]|0,G=V&8191,ie=V>>>13,ge=f[5]|0,re=ge&8191,ae=ge>>>13,we=f[6]|0,fe=we&8191,he=we>>>13,nt=f[7]|0,de=nt&8191,be=nt>>>13,ut=f[8]|0,$=ut&8191,A=ut>>>13,T=f[9]|0,C=T&8191,H=T>>>13,ne=h[0]|0,J=ne&8191,ce=ne>>>13,ft=h[1]|0,le=ft&8191,ve=ft>>>13,st=h[2]|0,Se=st&8191,Le=st>>>13,mt=h[3]|0,Ee=mt&8191,Ne=mt>>>13,bt=h[4]|0,Be=bt&8191,Ce=bt>>>13,vt=h[5]|0,se=vt&8191,ue=vt>>>13,ht=h[6]|0,pe=ht&8191,Ie=ht>>>13,ct=h[7]|0,ye=ct&8191,De=ct>>>13,dt=h[8]|0,Ae=dt&8191,Oe=dt>>>13,gt=h[9]|0,Re=gt&8191,$e=gt>>>13;o.negative=e.negative^r.negative,o.length=19,l=Math.imul(B,J),t=Math.imul(B,ce),t=t+Math.imul(k,J)|0,u=Math.imul(k,ce);var pt=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(pt>>>26)|0,pt&=67108863,l=Math.imul(z,J),t=Math.imul(z,ce),t=t+Math.imul(ee,J)|0,u=Math.imul(ee,ce),l=l+Math.imul(B,le)|0,t=t+Math.imul(B,ve)|0,t=t+Math.imul(k,le)|0,u=u+Math.imul(k,ve)|0;var lt=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(lt>>>26)|0,lt&=67108863,l=Math.imul(O,J),t=Math.imul(O,ce),t=t+Math.imul(U,J)|0,u=Math.imul(U,ce),l=l+Math.imul(z,le)|0,t=t+Math.imul(z,ve)|0,t=t+Math.imul(ee,le)|0,u=u+Math.imul(ee,ve)|0,l=l+Math.imul(B,Se)|0,t=t+Math.imul(B,Le)|0,t=t+Math.imul(k,Se)|0,u=u+Math.imul(k,Le)|0;var yt=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(yt>>>26)|0,yt&=67108863,l=Math.imul(X,J),t=Math.imul(X,ce),t=t+Math.imul(j,J)|0,u=Math.imul(j,ce),l=l+Math.imul(O,le)|0,t=t+Math.imul(O,ve)|0,t=t+Math.imul(U,le)|0,u=u+Math.imul(U,ve)|0,l=l+Math.imul(z,Se)|0,t=t+Math.imul(z,Le)|0,t=t+Math.imul(ee,Se)|0,u=u+Math.imul(ee,Le)|0,l=l+Math.imul(B,Ee)|0,t=t+Math.imul(B,Ne)|0,t=t+Math.imul(k,Ee)|0,u=u+Math.imul(k,Ne)|0;var xt=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(xt>>>26)|0,xt&=67108863,l=Math.imul(G,J),t=Math.imul(G,ce),t=t+Math.imul(ie,J)|0,u=Math.imul(ie,ce),l=l+Math.imul(X,le)|0,t=t+Math.imul(X,ve)|0,t=t+Math.imul(j,le)|0,u=u+Math.imul(j,ve)|0,l=l+Math.imul(O,Se)|0,t=t+Math.imul(O,Le)|0,t=t+Math.imul(U,Se)|0,u=u+Math.imul(U,Le)|0,l=l+Math.imul(z,Ee)|0,t=t+Math.imul(z,Ne)|0,t=t+Math.imul(ee,Ee)|0,u=u+Math.imul(ee,Ne)|0,l=l+Math.imul(B,Be)|0,t=t+Math.imul(B,Ce)|0,t=t+Math.imul(k,Be)|0,u=u+Math.imul(k,Ce)|0;var Mt=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,l=Math.imul(re,J),t=Math.imul(re,ce),t=t+Math.imul(ae,J)|0,u=Math.imul(ae,ce),l=l+Math.imul(G,le)|0,t=t+Math.imul(G,ve)|0,t=t+Math.imul(ie,le)|0,u=u+Math.imul(ie,ve)|0,l=l+Math.imul(X,Se)|0,t=t+Math.imul(X,Le)|0,t=t+Math.imul(j,Se)|0,u=u+Math.imul(j,Le)|0,l=l+Math.imul(O,Ee)|0,t=t+Math.imul(O,Ne)|0,t=t+Math.imul(U,Ee)|0,u=u+Math.imul(U,Ne)|0,l=l+Math.imul(z,Be)|0,t=t+Math.imul(z,Ce)|0,t=t+Math.imul(ee,Be)|0,u=u+Math.imul(ee,Ce)|0,l=l+Math.imul(B,se)|0,t=t+Math.imul(B,ue)|0,t=t+Math.imul(k,se)|0,u=u+Math.imul(k,ue)|0;var Et=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(Et>>>26)|0,Et&=67108863,l=Math.imul(fe,J),t=Math.imul(fe,ce),t=t+Math.imul(he,J)|0,u=Math.imul(he,ce),l=l+Math.imul(re,le)|0,t=t+Math.imul(re,ve)|0,t=t+Math.imul(ae,le)|0,u=u+Math.imul(ae,ve)|0,l=l+Math.imul(G,Se)|0,t=t+Math.imul(G,Le)|0,t=t+Math.imul(ie,Se)|0,u=u+Math.imul(ie,Le)|0,l=l+Math.imul(X,Ee)|0,t=t+Math.imul(X,Ne)|0,t=t+Math.imul(j,Ee)|0,u=u+Math.imul(j,Ne)|0,l=l+Math.imul(O,Be)|0,t=t+Math.imul(O,Ce)|0,t=t+Math.imul(U,Be)|0,u=u+Math.imul(U,Ce)|0,l=l+Math.imul(z,se)|0,t=t+Math.imul(z,ue)|0,t=t+Math.imul(ee,se)|0,u=u+Math.imul(ee,ue)|0,l=l+Math.imul(B,pe)|0,t=t+Math.imul(B,Ie)|0,t=t+Math.imul(k,pe)|0,u=u+Math.imul(k,Ie)|0;var At=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(At>>>26)|0,At&=67108863,l=Math.imul(de,J),t=Math.imul(de,ce),t=t+Math.imul(be,J)|0,u=Math.imul(be,ce),l=l+Math.imul(fe,le)|0,t=t+Math.imul(fe,ve)|0,t=t+Math.imul(he,le)|0,u=u+Math.imul(he,ve)|0,l=l+Math.imul(re,Se)|0,t=t+Math.imul(re,Le)|0,t=t+Math.imul(ae,Se)|0,u=u+Math.imul(ae,Le)|0,l=l+Math.imul(G,Ee)|0,t=t+Math.imul(G,Ne)|0,t=t+Math.imul(ie,Ee)|0,u=u+Math.imul(ie,Ne)|0,l=l+Math.imul(X,Be)|0,t=t+Math.imul(X,Ce)|0,t=t+Math.imul(j,Be)|0,u=u+Math.imul(j,Ce)|0,l=l+Math.imul(O,se)|0,t=t+Math.imul(O,ue)|0,t=t+Math.imul(U,se)|0,u=u+Math.imul(U,ue)|0,l=l+Math.imul(z,pe)|0,t=t+Math.imul(z,Ie)|0,t=t+Math.imul(ee,pe)|0,u=u+Math.imul(ee,Ie)|0,l=l+Math.imul(B,ye)|0,t=t+Math.imul(B,De)|0,t=t+Math.imul(k,ye)|0,u=u+Math.imul(k,De)|0;var Bt=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,l=Math.imul($,J),t=Math.imul($,ce),t=t+Math.imul(A,J)|0,u=Math.imul(A,ce),l=l+Math.imul(de,le)|0,t=t+Math.imul(de,ve)|0,t=t+Math.imul(be,le)|0,u=u+Math.imul(be,ve)|0,l=l+Math.imul(fe,Se)|0,t=t+Math.imul(fe,Le)|0,t=t+Math.imul(he,Se)|0,u=u+Math.imul(he,Le)|0,l=l+Math.imul(re,Ee)|0,t=t+Math.imul(re,Ne)|0,t=t+Math.imul(ae,Ee)|0,u=u+Math.imul(ae,Ne)|0,l=l+Math.imul(G,Be)|0,t=t+Math.imul(G,Ce)|0,t=t+Math.imul(ie,Be)|0,u=u+Math.imul(ie,Ce)|0,l=l+Math.imul(X,se)|0,t=t+Math.imul(X,ue)|0,t=t+Math.imul(j,se)|0,u=u+Math.imul(j,ue)|0,l=l+Math.imul(O,pe)|0,t=t+Math.imul(O,Ie)|0,t=t+Math.imul(U,pe)|0,u=u+Math.imul(U,Ie)|0,l=l+Math.imul(z,ye)|0,t=t+Math.imul(z,De)|0,t=t+Math.imul(ee,ye)|0,u=u+Math.imul(ee,De)|0,l=l+Math.imul(B,Ae)|0,t=t+Math.imul(B,Oe)|0,t=t+Math.imul(k,Ae)|0,u=u+Math.imul(k,Oe)|0;var Rt=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,l=Math.imul(C,J),t=Math.imul(C,ce),t=t+Math.imul(H,J)|0,u=Math.imul(H,ce),l=l+Math.imul($,le)|0,t=t+Math.imul($,ve)|0,t=t+Math.imul(A,le)|0,u=u+Math.imul(A,ve)|0,l=l+Math.imul(de,Se)|0,t=t+Math.imul(de,Le)|0,t=t+Math.imul(be,Se)|0,u=u+Math.imul(be,Le)|0,l=l+Math.imul(fe,Ee)|0,t=t+Math.imul(fe,Ne)|0,t=t+Math.imul(he,Ee)|0,u=u+Math.imul(he,Ne)|0,l=l+Math.imul(re,Be)|0,t=t+Math.imul(re,Ce)|0,t=t+Math.imul(ae,Be)|0,u=u+Math.imul(ae,Ce)|0,l=l+Math.imul(G,se)|0,t=t+Math.imul(G,ue)|0,t=t+Math.imul(ie,se)|0,u=u+Math.imul(ie,ue)|0,l=l+Math.imul(X,pe)|0,t=t+Math.imul(X,Ie)|0,t=t+Math.imul(j,pe)|0,u=u+Math.imul(j,Ie)|0,l=l+Math.imul(O,ye)|0,t=t+Math.imul(O,De)|0,t=t+Math.imul(U,ye)|0,u=u+Math.imul(U,De)|0,l=l+Math.imul(z,Ae)|0,t=t+Math.imul(z,Oe)|0,t=t+Math.imul(ee,Ae)|0,u=u+Math.imul(ee,Oe)|0,l=l+Math.imul(B,Re)|0,t=t+Math.imul(B,$e)|0,t=t+Math.imul(k,Re)|0,u=u+Math.imul(k,$e)|0;var Tt=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,l=Math.imul(C,le),t=Math.imul(C,ve),t=t+Math.imul(H,le)|0,u=Math.imul(H,ve),l=l+Math.imul($,Se)|0,t=t+Math.imul($,Le)|0,t=t+Math.imul(A,Se)|0,u=u+Math.imul(A,Le)|0,l=l+Math.imul(de,Ee)|0,t=t+Math.imul(de,Ne)|0,t=t+Math.imul(be,Ee)|0,u=u+Math.imul(be,Ne)|0,l=l+Math.imul(fe,Be)|0,t=t+Math.imul(fe,Ce)|0,t=t+Math.imul(he,Be)|0,u=u+Math.imul(he,Ce)|0,l=l+Math.imul(re,se)|0,t=t+Math.imul(re,ue)|0,t=t+Math.imul(ae,se)|0,u=u+Math.imul(ae,ue)|0,l=l+Math.imul(G,pe)|0,t=t+Math.imul(G,Ie)|0,t=t+Math.imul(ie,pe)|0,u=u+Math.imul(ie,Ie)|0,l=l+Math.imul(X,ye)|0,t=t+Math.imul(X,De)|0,t=t+Math.imul(j,ye)|0,u=u+Math.imul(j,De)|0,l=l+Math.imul(O,Ae)|0,t=t+Math.imul(O,Oe)|0,t=t+Math.imul(U,Ae)|0,u=u+Math.imul(U,Oe)|0,l=l+Math.imul(z,Re)|0,t=t+Math.imul(z,$e)|0,t=t+Math.imul(ee,Re)|0,u=u+Math.imul(ee,$e)|0;var kt=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(kt>>>26)|0,kt&=67108863,l=Math.imul(C,Se),t=Math.imul(C,Le),t=t+Math.imul(H,Se)|0,u=Math.imul(H,Le),l=l+Math.imul($,Ee)|0,t=t+Math.imul($,Ne)|0,t=t+Math.imul(A,Ee)|0,u=u+Math.imul(A,Ne)|0,l=l+Math.imul(de,Be)|0,t=t+Math.imul(de,Ce)|0,t=t+Math.imul(be,Be)|0,u=u+Math.imul(be,Ce)|0,l=l+Math.imul(fe,se)|0,t=t+Math.imul(fe,ue)|0,t=t+Math.imul(he,se)|0,u=u+Math.imul(he,ue)|0,l=l+Math.imul(re,pe)|0,t=t+Math.imul(re,Ie)|0,t=t+Math.imul(ae,pe)|0,u=u+Math.imul(ae,Ie)|0,l=l+Math.imul(G,ye)|0,t=t+Math.imul(G,De)|0,t=t+Math.imul(ie,ye)|0,u=u+Math.imul(ie,De)|0,l=l+Math.imul(X,Ae)|0,t=t+Math.imul(X,Oe)|0,t=t+Math.imul(j,Ae)|0,u=u+Math.imul(j,Oe)|0,l=l+Math.imul(O,Re)|0,t=t+Math.imul(O,$e)|0,t=t+Math.imul(U,Re)|0,u=u+Math.imul(U,$e)|0;var Pt=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,l=Math.imul(C,Ee),t=Math.imul(C,Ne),t=t+Math.imul(H,Ee)|0,u=Math.imul(H,Ne),l=l+Math.imul($,Be)|0,t=t+Math.imul($,Ce)|0,t=t+Math.imul(A,Be)|0,u=u+Math.imul(A,Ce)|0,l=l+Math.imul(de,se)|0,t=t+Math.imul(de,ue)|0,t=t+Math.imul(be,se)|0,u=u+Math.imul(be,ue)|0,l=l+Math.imul(fe,pe)|0,t=t+Math.imul(fe,Ie)|0,t=t+Math.imul(he,pe)|0,u=u+Math.imul(he,Ie)|0,l=l+Math.imul(re,ye)|0,t=t+Math.imul(re,De)|0,t=t+Math.imul(ae,ye)|0,u=u+Math.imul(ae,De)|0,l=l+Math.imul(G,Ae)|0,t=t+Math.imul(G,Oe)|0,t=t+Math.imul(ie,Ae)|0,u=u+Math.imul(ie,Oe)|0,l=l+Math.imul(X,Re)|0,t=t+Math.imul(X,$e)|0,t=t+Math.imul(j,Re)|0,u=u+Math.imul(j,$e)|0;var $t=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+($t>>>26)|0,$t&=67108863,l=Math.imul(C,Be),t=Math.imul(C,Ce),t=t+Math.imul(H,Be)|0,u=Math.imul(H,Ce),l=l+Math.imul($,se)|0,t=t+Math.imul($,ue)|0,t=t+Math.imul(A,se)|0,u=u+Math.imul(A,ue)|0,l=l+Math.imul(de,pe)|0,t=t+Math.imul(de,Ie)|0,t=t+Math.imul(be,pe)|0,u=u+Math.imul(be,Ie)|0,l=l+Math.imul(fe,ye)|0,t=t+Math.imul(fe,De)|0,t=t+Math.imul(he,ye)|0,u=u+Math.imul(he,De)|0,l=l+Math.imul(re,Ae)|0,t=t+Math.imul(re,Oe)|0,t=t+Math.imul(ae,Ae)|0,u=u+Math.imul(ae,Oe)|0,l=l+Math.imul(G,Re)|0,t=t+Math.imul(G,$e)|0,t=t+Math.imul(ie,Re)|0,u=u+Math.imul(ie,$e)|0;var Nt=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,l=Math.imul(C,se),t=Math.imul(C,ue),t=t+Math.imul(H,se)|0,u=Math.imul(H,ue),l=l+Math.imul($,pe)|0,t=t+Math.imul($,Ie)|0,t=t+Math.imul(A,pe)|0,u=u+Math.imul(A,Ie)|0,l=l+Math.imul(de,ye)|0,t=t+Math.imul(de,De)|0,t=t+Math.imul(be,ye)|0,u=u+Math.imul(be,De)|0,l=l+Math.imul(fe,Ae)|0,t=t+Math.imul(fe,Oe)|0,t=t+Math.imul(he,Ae)|0,u=u+Math.imul(he,Oe)|0,l=l+Math.imul(re,Re)|0,t=t+Math.imul(re,$e)|0,t=t+Math.imul(ae,Re)|0,u=u+Math.imul(ae,$e)|0;var Ct=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,l=Math.imul(C,pe),t=Math.imul(C,Ie),t=t+Math.imul(H,pe)|0,u=Math.imul(H,Ie),l=l+Math.imul($,ye)|0,t=t+Math.imul($,De)|0,t=t+Math.imul(A,ye)|0,u=u+Math.imul(A,De)|0,l=l+Math.imul(de,Ae)|0,t=t+Math.imul(de,Oe)|0,t=t+Math.imul(be,Ae)|0,u=u+Math.imul(be,Oe)|0,l=l+Math.imul(fe,Re)|0,t=t+Math.imul(fe,$e)|0,t=t+Math.imul(he,Re)|0,u=u+Math.imul(he,$e)|0;var Dt=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,l=Math.imul(C,ye),t=Math.imul(C,De),t=t+Math.imul(H,ye)|0,u=Math.imul(H,De),l=l+Math.imul($,Ae)|0,t=t+Math.imul($,Oe)|0,t=t+Math.imul(A,Ae)|0,u=u+Math.imul(A,Oe)|0,l=l+Math.imul(de,Re)|0,t=t+Math.imul(de,$e)|0,t=t+Math.imul(be,Re)|0,u=u+Math.imul(be,$e)|0;var Ot=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,l=Math.imul(C,Ae),t=Math.imul(C,Oe),t=t+Math.imul(H,Ae)|0,u=Math.imul(H,Oe),l=l+Math.imul($,Re)|0,t=t+Math.imul($,$e)|0,t=t+Math.imul(A,Re)|0,u=u+Math.imul(A,$e)|0;var Ut=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,l=Math.imul(C,Re),t=Math.imul(C,$e),t=t+Math.imul(H,Re)|0,u=Math.imul(H,$e);var zt=(g+l|0)+((t&8191)<<13)|0;return g=(u+(t>>>13)|0)+(zt>>>26)|0,zt&=67108863,p[0]=pt,p[1]=lt,p[2]=yt,p[3]=xt,p[4]=Mt,p[5]=Et,p[6]=At,p[7]=Bt,p[8]=Rt,p[9]=Tt,p[10]=kt,p[11]=Pt,p[12]=$t,p[13]=Nt,p[14]=Ct,p[15]=Dt,p[16]=Ot,p[17]=Ut,p[18]=zt,g!==0&&(p[19]=g,o.length++),o};Math.imul||(I=S);function R(m,e,r){r.negative=e.negative^m.negative,r.length=m.length+e.length;for(var o=0,f=0,h=0;h<r.length-1;h++){var p=f;f=0;for(var g=o&67108863,l=Math.min(h,e.length-1),t=Math.max(0,h-m.length+1);t<=l;t++){var u=h-t,E=m.words[u]|0,B=e.words[t]|0,k=E*B,q=k&67108863;p=p+(k/67108864|0)|0,q=q+g|0,g=q&67108863,p=p+(q>>>26)|0,f+=p>>>26,p&=67108863}r.words[h]=g,o=p,p=f}return o!==0?r.words[h]=o:r.length--,r.strip()}function N(m,e,r){var o=new P;return o.mulp(m,e,r)}a.prototype.mulTo=function(e,r){var o,f=this.length+e.length;return this.length===10&&e.length===10?o=I(this,e,r):f<63?o=S(this,e,r):f<1024?o=R(this,e,r):o=N(this,e,r),o};function P(m,e){this.x=m,this.y=e}P.prototype.makeRBT=function(e){for(var r=new Array(e),o=a.prototype._countBits(e)-1,f=0;f<e;f++)r[f]=this.revBin(f,o,e);return r},P.prototype.revBin=function(e,r,o){if(e===0||e===o-1)return e;for(var f=0,h=0;h<r;h++)f|=(e&1)<<r-h-1,e>>=1;return f},P.prototype.permute=function(e,r,o,f,h,p){for(var g=0;g<p;g++)f[g]=r[e[g]],h[g]=o[e[g]]},P.prototype.transform=function(e,r,o,f,h,p){this.permute(p,e,r,o,f,h);for(var g=1;g<h;g<<=1)for(var l=g<<1,t=Math.cos(2*Math.PI/l),u=Math.sin(2*Math.PI/l),E=0;E<h;E+=l)for(var B=t,k=u,q=0;q<g;q++){var z=o[E+q],ee=f[E+q],te=o[E+q+g],O=f[E+q+g],U=B*te-k*O;O=B*O+k*te,te=U,o[E+q]=z+te,f[E+q]=ee+O,o[E+q+g]=z-te,f[E+q+g]=ee-O,q!==l&&(U=t*B-u*k,k=t*k+u*B,B=U)}},P.prototype.guessLen13b=function(e,r){var o=Math.max(r,e)|1,f=o&1,h=0;for(o=o/2|0;o;o=o>>>1)h++;return 1<<h+1+f},P.prototype.conjugate=function(e,r,o){if(!(o<=1))for(var f=0;f<o/2;f++){var h=e[f];e[f]=e[o-f-1],e[o-f-1]=h,h=r[f],r[f]=-r[o-f-1],r[o-f-1]=-h}},P.prototype.normalize13b=function(e,r){for(var o=0,f=0;f<r/2;f++){var h=Math.round(e[2*f+1]/r)*8192+Math.round(e[2*f]/r)+o;e[f]=h&67108863,h<67108864?o=0:o=h/67108864|0}return e},P.prototype.convert13b=function(e,r,o,f){for(var h=0,p=0;p<r;p++)h=h+(e[p]|0),o[2*p]=h&8191,h=h>>>13,o[2*p+1]=h&8191,h=h>>>13;for(p=2*r;p<f;++p)o[p]=0;s(h===0),s((h&-8192)===0)},P.prototype.stub=function(e){for(var r=new Array(e),o=0;o<e;o++)r[o]=0;return r},P.prototype.mulp=function(e,r,o){var f=2*this.guessLen13b(e.length,r.length),h=this.makeRBT(f),p=this.stub(f),g=new Array(f),l=new Array(f),t=new Array(f),u=new Array(f),E=new Array(f),B=new Array(f),k=o.words;k.length=f,this.convert13b(e.words,e.length,g,f),this.convert13b(r.words,r.length,u,f),this.transform(g,p,l,t,f,h),this.transform(u,p,E,B,f,h);for(var q=0;q<f;q++){var z=l[q]*E[q]-t[q]*B[q];t[q]=l[q]*B[q]+t[q]*E[q],l[q]=z}return this.conjugate(l,t,f),this.transform(l,t,k,p,f,h),this.conjugate(k,p,f),this.normalize13b(k,f),o.negative=e.negative^r.negative,o.length=e.length+r.length,o.strip()},a.prototype.mul=function(e){var r=new a(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},a.prototype.mulf=function(e){var r=new a(null);return r.words=new Array(this.length+e.length),N(this,e,r)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){s(typeof e=="number"),s(e<67108864);for(var r=0,o=0;o<this.length;o++){var f=(this.words[o]|0)*e,h=(f&67108863)+(r&67108863);r>>=26,r+=f/67108864|0,r+=h>>>26,this.words[o]=h&67108863}return r!==0&&(this.words[o]=r,this.length++),this.length=e===0?1:this.length,this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var r=x(e);if(r.length===0)return new a(1);for(var o=this,f=0;f<r.length&&r[f]===0;f++,o=o.sqr());if(++f<r.length)for(var h=o.sqr();f<r.length;f++,h=h.sqr())r[f]!==0&&(o=o.mul(h));return o},a.prototype.iushln=function(e){s(typeof e=="number"&&e>=0);var r=e%26,o=(e-r)/26,f=67108863>>>26-r<<26-r,h;if(r!==0){var p=0;for(h=0;h<this.length;h++){var g=this.words[h]&f,l=(this.words[h]|0)-g<<r;this.words[h]=l|p,p=g>>>26-r}p&&(this.words[h]=p,this.length++)}if(o!==0){for(h=this.length-1;h>=0;h--)this.words[h+o]=this.words[h];for(h=0;h<o;h++)this.words[h]=0;this.length+=o}return this.strip()},a.prototype.ishln=function(e){return s(this.negative===0),this.iushln(e)},a.prototype.iushrn=function(e,r,o){s(typeof e=="number"&&e>=0);var f;r?f=(r-r%26)/26:f=0;var h=e%26,p=Math.min((e-h)/26,this.length),g=67108863^67108863>>>h<<h,l=o;if(f-=p,f=Math.max(0,f),l){for(var t=0;t<p;t++)l.words[t]=this.words[t];l.length=p}if(p!==0)if(this.length>p)for(this.length-=p,t=0;t<this.length;t++)this.words[t]=this.words[t+p];else this.words[0]=0,this.length=1;var u=0;for(t=this.length-1;t>=0&&(u!==0||t>=f);t--){var E=this.words[t]|0;this.words[t]=u<<26-h|E>>>h,u=E&g}return l&&u!==0&&(l.words[l.length++]=u),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,r,o){return s(this.negative===0),this.iushrn(e,r,o)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){s(typeof e=="number"&&e>=0);var r=e%26,o=(e-r)/26,f=1<<r;if(this.length<=o)return!1;var h=this.words[o];return!!(h&f)},a.prototype.imaskn=function(e){s(typeof e=="number"&&e>=0);var r=e%26,o=(e-r)/26;if(s(this.negative===0,"imaskn works only with positive numbers"),this.length<=o)return this;if(r!==0&&o++,this.length=Math.min(o,this.length),r!==0){var f=67108863^67108863>>>r<<r;this.words[this.length-1]&=f}return this.strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return s(typeof e=="number"),s(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(this.words[0]|0)<e?(this.words[0]=e-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(e){if(s(typeof e=="number"),s(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,r,o){var f=e.length+o,h;this._expand(f);var p,g=0;for(h=0;h<e.length;h++){p=(this.words[h+o]|0)+g;var l=(e.words[h]|0)*r;p-=l&67108863,g=(p>>26)-(l/67108864|0),this.words[h+o]=p&67108863}for(;h<this.length-o;h++)p=(this.words[h+o]|0)+g,g=p>>26,this.words[h+o]=p&67108863;if(g===0)return this.strip();for(s(g===-1),g=0,h=0;h<this.length;h++)p=-(this.words[h]|0)+g,g=p>>26,this.words[h]=p&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,r){var o=this.length-e.length,f=this.clone(),h=e,p=h.words[h.length-1]|0,g=this._countBits(p);o=26-g,o!==0&&(h=h.ushln(o),f.iushln(o),p=h.words[h.length-1]|0);var l=f.length-h.length,t;if(r!=="mod"){t=new a(null),t.length=l+1,t.words=new Array(t.length);for(var u=0;u<t.length;u++)t.words[u]=0}var E=f.clone()._ishlnsubmul(h,1,l);E.negative===0&&(f=E,t&&(t.words[l]=1));for(var B=l-1;B>=0;B--){var k=(f.words[h.length+B]|0)*67108864+(f.words[h.length+B-1]|0);for(k=Math.min(k/p|0,67108863),f._ishlnsubmul(h,k,B);f.negative!==0;)k--,f.negative=0,f._ishlnsubmul(h,1,B),f.isZero()||(f.negative^=1);t&&(t.words[B]=k)}return t&&t.strip(),f.strip(),r!=="div"&&o!==0&&f.iushrn(o),{div:t||null,mod:f}},a.prototype.divmod=function(e,r,o){if(s(!e.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var f,h,p;return this.negative!==0&&e.negative===0?(p=this.neg().divmod(e,r),r!=="mod"&&(f=p.div.neg()),r!=="div"&&(h=p.mod.neg(),o&&h.negative!==0&&h.iadd(e)),{div:f,mod:h}):this.negative===0&&e.negative!==0?(p=this.divmod(e.neg(),r),r!=="mod"&&(f=p.div.neg()),{div:f,mod:p.mod}):this.negative&e.negative?(p=this.neg().divmod(e.neg(),r),r!=="div"&&(h=p.mod.neg(),o&&h.negative!==0&&h.isub(e)),{div:p.div,mod:h}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,r)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var o=r.div.negative!==0?r.mod.isub(e):r.mod,f=e.ushrn(1),h=e.andln(1),p=o.cmp(f);return p<0||h===1&&p===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(e){s(e<=67108863);for(var r=(1<<26)%e,o=0,f=this.length-1;f>=0;f--)o=(r*o+(this.words[f]|0))%e;return o},a.prototype.idivn=function(e){s(e<=67108863);for(var r=0,o=this.length-1;o>=0;o--){var f=(this.words[o]|0)+r*67108864;this.words[o]=f/e|0,r=f%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){s(e.negative===0),s(!e.isZero());var r=this,o=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var f=new a(1),h=new a(0),p=new a(0),g=new a(1),l=0;r.isEven()&&o.isEven();)r.iushrn(1),o.iushrn(1),++l;for(var t=o.clone(),u=r.clone();!r.isZero();){for(var E=0,B=1;!(r.words[0]&B)&&E<26;++E,B<<=1);if(E>0)for(r.iushrn(E);E-- >0;)(f.isOdd()||h.isOdd())&&(f.iadd(t),h.isub(u)),f.iushrn(1),h.iushrn(1);for(var k=0,q=1;!(o.words[0]&q)&&k<26;++k,q<<=1);if(k>0)for(o.iushrn(k);k-- >0;)(p.isOdd()||g.isOdd())&&(p.iadd(t),g.isub(u)),p.iushrn(1),g.iushrn(1);r.cmp(o)>=0?(r.isub(o),f.isub(p),h.isub(g)):(o.isub(r),p.isub(f),g.isub(h))}return{a:p,b:g,gcd:o.iushln(l)}},a.prototype._invmp=function(e){s(e.negative===0),s(!e.isZero());var r=this,o=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var f=new a(1),h=new a(0),p=o.clone();r.cmpn(1)>0&&o.cmpn(1)>0;){for(var g=0,l=1;!(r.words[0]&l)&&g<26;++g,l<<=1);if(g>0)for(r.iushrn(g);g-- >0;)f.isOdd()&&f.iadd(p),f.iushrn(1);for(var t=0,u=1;!(o.words[0]&u)&&t<26;++t,u<<=1);if(t>0)for(o.iushrn(t);t-- >0;)h.isOdd()&&h.iadd(p),h.iushrn(1);r.cmp(o)>=0?(r.isub(o),f.isub(h)):(o.isub(r),h.isub(f))}var E;return r.cmpn(1)===0?E=f:E=h,E.cmpn(0)<0&&E.iadd(e),E},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),o=e.clone();r.negative=0,o.negative=0;for(var f=0;r.isEven()&&o.isEven();f++)r.iushrn(1),o.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;o.isEven();)o.iushrn(1);var h=r.cmp(o);if(h<0){var p=r;r=o,o=p}else if(h===0||o.cmpn(1)===0)break;r.isub(o)}while(!0);return o.iushln(f)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){s(typeof e=="number");var r=e%26,o=(e-r)/26,f=1<<r;if(this.length<=o)return this._expand(o+1),this.words[o]|=f,this;for(var h=f,p=o;h!==0&&p<this.length;p++){var g=this.words[p]|0;g+=h,h=g>>>26,g&=67108863,this.words[p]=g}return h!==0&&(this.words[p]=h,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(e){var r=e<0;if(this.negative!==0&&!r)return-1;if(this.negative===0&&r)return 1;this.strip();var o;if(this.length>1)o=1;else{r&&(e=-e),s(e<=67108863,"Number is too big");var f=this.words[0]|0;o=f===e?0:f<e?-1:1}return this.negative!==0?-o|0:o},a.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var r=this.ucmp(e);return this.negative!==0?-r|0:r},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,o=this.length-1;o>=0;o--){var f=this.words[o]|0,h=e.words[o]|0;if(f!==h){f<h?r=-1:f>h&&(r=1);break}}return r},a.prototype.gtn=function(e){return this.cmpn(e)===1},a.prototype.gt=function(e){return this.cmp(e)===1},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return this.cmpn(e)===-1},a.prototype.lt=function(e){return this.cmp(e)===-1},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return this.cmpn(e)===0},a.prototype.eq=function(e){return this.cmp(e)===0},a.red=function(e){return new F(e)},a.prototype.toRed=function(e){return s(!this.red,"Already a number in reduction context"),s(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return s(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return s(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return s(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return s(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return s(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return s(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return s(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return s(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return s(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return s(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return s(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return s(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return s(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var L={k256:null,p224:null,p192:null,p25519:null};function D(m,e){this.name=m,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},D.prototype.ireduce=function(e){var r=e,o;do this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),o=r.bitLength();while(o>this.n);var f=o<this.n?-1:r.ucmp(this.p);return f===0?(r.words[0]=0,r.length=1):f>0?r.isub(this.p):r.strip!==void 0?r.strip():r._strip(),r},D.prototype.split=function(e,r){e.iushrn(this.n,0,r)},D.prototype.imulK=function(e){return e.imul(this.k)};function Z(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}c(Z,D),Z.prototype.split=function(e,r){for(var o=4194303,f=Math.min(e.length,9),h=0;h<f;h++)r.words[h]=e.words[h];if(r.length=f,e.length<=9){e.words[0]=0,e.length=1;return}var p=e.words[9];for(r.words[r.length++]=p&o,h=10;h<e.length;h++){var g=e.words[h]|0;e.words[h-10]=(g&o)<<4|p>>>22,p=g}p>>>=22,e.words[h-10]=p,p===0&&e.length>10?e.length-=10:e.length-=9},Z.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,o=0;o<e.length;o++){var f=e.words[o]|0;r+=f*977,e.words[o]=r&67108863,r=f*64+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function W(){D.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}c(W,D);function Q(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}c(Q,D);function K(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}c(K,D),K.prototype.imulK=function(e){for(var r=0,o=0;o<e.length;o++){var f=(e.words[o]|0)*19+r,h=f&67108863;f>>>=26,e.words[o]=h,r=f}return r!==0&&(e.words[e.length++]=r),e},a._prime=function(e){if(L[e])return L[e];var r;if(e==="k256")r=new Z;else if(e==="p224")r=new W;else if(e==="p192")r=new Q;else if(e==="p25519")r=new K;else throw new Error("Unknown prime "+e);return L[e]=r,r};function F(m){if(typeof m=="string"){var e=a._prime(m);this.m=e.p,this.prime=e}else s(m.gtn(1),"modulus must be greater than 1"),this.m=m,this.prime=null}F.prototype._verify1=function(e){s(e.negative===0,"red works only with positives"),s(e.red,"red works only with red numbers")},F.prototype._verify2=function(e,r){s((e.negative|r.negative)===0,"red works only with positives"),s(e.red&&e.red===r.red,"red works only with red numbers")},F.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},F.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},F.prototype.add=function(e,r){this._verify2(e,r);var o=e.add(r);return o.cmp(this.m)>=0&&o.isub(this.m),o._forceRed(this)},F.prototype.iadd=function(e,r){this._verify2(e,r);var o=e.iadd(r);return o.cmp(this.m)>=0&&o.isub(this.m),o},F.prototype.sub=function(e,r){this._verify2(e,r);var o=e.sub(r);return o.cmpn(0)<0&&o.iadd(this.m),o._forceRed(this)},F.prototype.isub=function(e,r){this._verify2(e,r);var o=e.isub(r);return o.cmpn(0)<0&&o.iadd(this.m),o},F.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},F.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},F.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},F.prototype.isqr=function(e){return this.imul(e,e.clone())},F.prototype.sqr=function(e){return this.mul(e,e)},F.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(s(r%2===1),r===3){var o=this.m.add(new a(1)).iushrn(2);return this.pow(e,o)}for(var f=this.m.subn(1),h=0;!f.isZero()&&f.andln(1)===0;)h++,f.iushrn(1);s(!f.isZero());var p=new a(1).toRed(this),g=p.redNeg(),l=this.m.subn(1).iushrn(1),t=this.m.bitLength();for(t=new a(2*t*t).toRed(this);this.pow(t,l).cmp(g)!==0;)t.redIAdd(g);for(var u=this.pow(t,f),E=this.pow(e,f.addn(1).iushrn(1)),B=this.pow(e,f),k=h;B.cmp(p)!==0;){for(var q=B,z=0;q.cmp(p)!==0;z++)q=q.redSqr();s(z<k);var ee=this.pow(u,new a(1).iushln(k-z-1));E=E.redMul(ee),u=ee.redSqr(),B=B.redMul(u),k=z}return E},F.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},F.prototype.pow=function(e,r){if(r.isZero())return new a(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var o=4,f=new Array(1<<o);f[0]=new a(1).toRed(this),f[1]=e;for(var h=2;h<f.length;h++)f[h]=this.mul(f[h-1],e);var p=f[0],g=0,l=0,t=r.bitLength()%26;for(t===0&&(t=26),h=r.length-1;h>=0;h--){for(var u=r.words[h],E=t-1;E>=0;E--){var B=u>>E&1;if(p!==f[0]&&(p=this.sqr(p)),B===0&&g===0){l=0;continue}g<<=1,g|=B,l++,!(l!==o&&(h!==0||E!==0))&&(p=this.mul(p,f[g]),l=0,g=0)}t=26}return p},F.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},F.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},a.mont=function(e){return new Y(e)};function Y(m){F.call(this,m),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(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)}c(Y,F),Y.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},Y.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},Y.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var o=e.imul(r),f=o.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=o.isub(f).iushrn(this.shift),p=h;return h.cmp(this.m)>=0?p=h.isub(this.m):h.cmpn(0)<0&&(p=h.iadd(this.m)),p._forceRed(this)},Y.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new a(0)._forceRed(this);var o=e.mul(r),f=o.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=o.isub(f).iushrn(this.shift),p=h;return h.cmp(this.m)>=0?p=h.isub(this.m):h.cmpn(0)<0&&(p=h.iadd(this.m)),p._forceRed(this)},Y.prototype.invm=function(e){var r=this.imod(e._invmp(this.m).mul(this.r2));return r._forceRed(this)}})(typeof rE>"u"||rE,vV)});var iE=St(gV=>{"use strict";var mTe=me(Me());xe();_e();var Mb=gV;function hve(i,n){if(Array.isArray(i))return i.slice();if(!i)return[];var s=[];if(typeof i!="string"){for(var c=0;c<i.length;c++)s[c]=i[c]|0;return s}if(n==="hex"){i=i.replace(/[^a-z0-9]+/ig,""),i.length%2!==0&&(i="0"+i);for(var c=0;c<i.length;c+=2)s.push(parseInt(i[c]+i[c+1],16))}else for(var c=0;c<i.length;c++){var a=i.charCodeAt(c),d=a>>8,v=a&255;d?s.push(d,v):s.push(v)}return s}Mb.toArray=hve;function mV(i){return i.length===1?"0"+i:i}Mb.zero2=mV;function bV(i){for(var n="",s=0;s<i.length;s++)n+=mV(i[s].toString(16));return n}Mb.toHex=bV;Mb.encode=function(n,s){return s==="hex"?bV(n):n}});var so=St(yV=>{"use strict";var wTe=me(Me());xe();_e();var Js=yV,uve=Df(),lve=ch(),_b=iE();Js.assert=lve;Js.toArray=_b.toArray;Js.zero2=_b.zero2;Js.toHex=_b.toHex;Js.encode=_b.encode;function cve(i,n,s){var c=new Array(Math.max(i.bitLength(),s)+1);c.fill(0);for(var a=1<<n+1,d=i.clone(),v=0;v<c.length;v++){var y,M=d.andln(a-1);d.isOdd()?(M>(a>>1)-1?y=(a>>1)-M:y=M,d.isubn(y)):y=0,c[v]=y,d.iushrn(1)}return c}Js.getNAF=cve;function dve(i,n){var s=[[],[]];i=i.clone(),n=n.clone();for(var c=0,a=0,d;i.cmpn(-c)>0||n.cmpn(-a)>0;){var v=i.andln(3)+c&3,y=n.andln(3)+a&3;v===3&&(v=-1),y===3&&(y=-1);var M;v&1?(d=i.andln(7)+c&7,(d===3||d===5)&&y===2?M=-v:M=v):M=0,s[0].push(M);var w;y&1?(d=n.andln(7)+a&7,(d===3||d===5)&&v===2?w=-y:w=y):w=0,s[1].push(w),2*c===M+1&&(c=1-c),2*a===w+1&&(a=1-a),i.iushrn(1),n.iushrn(1)}return s}Js.getJSF=dve;function pve(i,n,s){var c="_"+n;i.prototype[n]=function(){return this[c]!==void 0?this[c]:this[c]=s.call(this)}}Js.cachedProperty=pve;function vve(i){return typeof i=="string"?Js.toArray(i,"hex"):i}Js.parseBytes=vve;function mve(i){return new uve(i,"hex","le")}Js.intFromLE=mve});var sE=St((xTe,oE)=>{var STe=me(Me());xe();_e();var nE;oE.exports=function(n){return nE||(nE=new K0(null)),nE.generate(n)};function K0(i){this.rand=i}oE.exports.Rand=K0;K0.prototype.generate=function(n){return this._rand(n)};K0.prototype._rand=function(n){if(this.rand.getBytes)return this.rand.getBytes(n);for(var s=new Uint8Array(n),c=0;c<s.length;c++)s[c]=this.rand.getByte();return s};if(typeof self=="object")self.crypto&&self.crypto.getRandomValues?K0.prototype._rand=function(n){var s=new Uint8Array(n);return self.crypto.getRandomValues(s),s}:self.msCrypto&&self.msCrypto.getRandomValues?K0.prototype._rand=function(n){var s=new Uint8Array(n);return self.msCrypto.getRandomValues(s),s}:typeof window=="object"&&(K0.prototype._rand=function(){throw new Error("Not implemented yet")});else try{if(aE=k3(),typeof aE.randomBytes!="function")throw new Error("Not supported");K0.prototype._rand=function(n){return aE.randomBytes(n)}}catch{}var aE});var Ip=St((BTe,wV)=>{"use strict";var ITe=me(Me());xe();_e();var Tl=Df(),Bp=so(),xb=Bp.getNAF,bve=Bp.getJSF,Sb=Bp.assert;function j0(i,n){this.type=i,this.p=new Tl(n.p,16),this.red=n.prime?Tl.red(n.prime):Tl.mont(this.p),this.zero=new Tl(0).toRed(this.red),this.one=new Tl(1).toRed(this.red),this.two=new Tl(2).toRed(this.red),this.n=n.n&&new Tl(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 s=this.n&&this.p.div(this.n);!s||s.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}wV.exports=j0;j0.prototype.point=function(){throw new Error("Not implemented")};j0.prototype.validate=function(){throw new Error("Not implemented")};j0.prototype._fixedNafMul=function(n,s){Sb(n.precomputed);var c=n._getDoubles(),a=xb(s,1,this._bitLength),d=(1<<c.step+1)-(c.step%2===0?2:1);d/=3;var v=[],y,M;for(y=0;y<a.length;y+=c.step){M=0;for(var w=y+c.step-1;w>=y;w--)M=(M<<1)+a[w];v.push(M)}for(var b=this.jpoint(null,null,null),_=this.jpoint(null,null,null),x=d;x>0;x--){for(y=0;y<v.length;y++)M=v[y],M===x?_=_.mixedAdd(c.points[y]):M===-x&&(_=_.mixedAdd(c.points[y].neg()));b=b.add(_)}return b.toP()};j0.prototype._wnafMul=function(n,s){var c=4,a=n._getNAFPoints(c);c=a.wnd;for(var d=a.points,v=xb(s,c,this._bitLength),y=this.jpoint(null,null,null),M=v.length-1;M>=0;M--){for(var w=0;M>=0&&v[M]===0;M--)w++;if(M>=0&&w++,y=y.dblp(w),M<0)break;var b=v[M];Sb(b!==0),n.type==="affine"?b>0?y=y.mixedAdd(d[b-1>>1]):y=y.mixedAdd(d[-b-1>>1].neg()):b>0?y=y.add(d[b-1>>1]):y=y.add(d[-b-1>>1].neg())}return n.type==="affine"?y.toP():y};j0.prototype._wnafMulAdd=function(n,s,c,a,d){var v=this._wnafT1,y=this._wnafT2,M=this._wnafT3,w=0,b,_,x;for(b=0;b<a;b++){x=s[b];var S=x._getNAFPoints(n);v[b]=S.wnd,y[b]=S.points}for(b=a-1;b>=1;b-=2){var I=b-1,R=b;if(v[I]!==1||v[R]!==1){M[I]=xb(c[I],v[I],this._bitLength),M[R]=xb(c[R],v[R],this._bitLength),w=Math.max(M[I].length,w),w=Math.max(M[R].length,w);continue}var N=[s[I],null,null,s[R]];s[I].y.cmp(s[R].y)===0?(N[1]=s[I].add(s[R]),N[2]=s[I].toJ().mixedAdd(s[R].neg())):s[I].y.cmp(s[R].y.redNeg())===0?(N[1]=s[I].toJ().mixedAdd(s[R]),N[2]=s[I].add(s[R].neg())):(N[1]=s[I].toJ().mixedAdd(s[R]),N[2]=s[I].toJ().mixedAdd(s[R].neg()));var P=[-3,-1,-5,-7,0,7,5,1,3],L=bve(c[I],c[R]);for(w=Math.max(L[0].length,w),M[I]=new Array(w),M[R]=new Array(w),_=0;_<w;_++){var D=L[0][_]|0,Z=L[1][_]|0;M[I][_]=P[(D+1)*3+(Z+1)],M[R][_]=0,y[I]=N}}var W=this.jpoint(null,null,null),Q=this._wnafT4;for(b=w;b>=0;b--){for(var K=0;b>=0;){var F=!0;for(_=0;_<a;_++)Q[_]=M[_][b]|0,Q[_]!==0&&(F=!1);if(!F)break;K++,b--}if(b>=0&&K++,W=W.dblp(K),b<0)break;for(_=0;_<a;_++){var Y=Q[_];Y!==0&&(Y>0?x=y[_][Y-1>>1]:Y<0&&(x=y[_][-Y-1>>1].neg()),x.type==="affine"?W=W.mixedAdd(x):W=W.add(x))}}for(b=0;b<a;b++)y[b]=null;return d?W:W.toP()};function hs(i,n){this.curve=i,this.type=n,this.precomputed=null}j0.BasePoint=hs;hs.prototype.eq=function(){throw new Error("Not implemented")};hs.prototype.validate=function(){return this.curve.validate(this)};j0.prototype.decodePoint=function(n,s){n=Bp.toArray(n,s);var c=this.p.byteLength();if((n[0]===4||n[0]===6||n[0]===7)&&n.length-1===2*c){n[0]===6?Sb(n[n.length-1]%2===0):n[0]===7&&Sb(n[n.length-1]%2===1);var a=this.point(n.slice(1,1+c),n.slice(1+c,1+2*c));return a}else if((n[0]===2||n[0]===3)&&n.length-1===c)return this.pointFromX(n.slice(1,1+c),n[0]===3);throw new Error("Unknown point format")};hs.prototype.encodeCompressed=function(n){return this.encode(n,!0)};hs.prototype._encode=function(n){var s=this.curve.p.byteLength(),c=this.getX().toArray("be",s);return n?[this.getY().isEven()?2:3].concat(c):[4].concat(c,this.getY().toArray("be",s))};hs.prototype.encode=function(n,s){return Bp.encode(this._encode(s),n)};hs.prototype.precompute=function(n){if(this.precomputed)return this;var s={doubles:null,naf:null,beta:null};return s.naf=this._getNAFPoints(8),s.doubles=this._getDoubles(4,n),s.beta=this._getBeta(),this.precomputed=s,this};hs.prototype._hasDoubles=function(n){if(!this.precomputed)return!1;var s=this.precomputed.doubles;return s?s.points.length>=Math.ceil((n.bitLength()+1)/s.step):!1};hs.prototype._getDoubles=function(n,s){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var c=[this],a=this,d=0;d<s;d+=n){for(var v=0;v<n;v++)a=a.dbl();c.push(a)}return{step:n,points:c}};hs.prototype._getNAFPoints=function(n){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var s=[this],c=(1<<n)-1,a=c===1?null:this.dbl(),d=1;d<c;d++)s[d]=s[d-1].add(a);return{wnd:n,points:s}};hs.prototype._getBeta=function(){return null};hs.prototype.dblp=function(n){for(var s=this,c=0;c<n;c++)s=s.dbl();return s}});var _V=St((kTe,MV)=>{"use strict";var PTe=me(Me());xe();_e();var gve=so(),Ji=Df(),fE=Wn(),wd=Ip(),yve=gve.assert;function us(i){wd.call(this,"short",i),this.a=new Ji(i.a,16).toRed(this.red),this.b=new Ji(i.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(i),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}fE(us,wd);MV.exports=us;us.prototype._getEndomorphism=function(n){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var s,c;if(n.beta)s=new Ji(n.beta,16).toRed(this.red);else{var a=this._getEndoRoots(this.p);s=a[0].cmp(a[1])<0?a[0]:a[1],s=s.toRed(this.red)}if(n.lambda)c=new Ji(n.lambda,16);else{var d=this._getEndoRoots(this.n);this.g.mul(d[0]).x.cmp(this.g.x.redMul(s))===0?c=d[0]:(c=d[1],yve(this.g.mul(c).x.cmp(this.g.x.redMul(s))===0))}var v;return n.basis?v=n.basis.map(function(y){return{a:new Ji(y.a,16),b:new Ji(y.b,16)}}):v=this._getEndoBasis(c),{beta:s,lambda:c,basis:v}}};us.prototype._getEndoRoots=function(n){var s=n===this.p?this.red:Ji.mont(n),c=new Ji(2).toRed(s).redInvm(),a=c.redNeg(),d=new Ji(3).toRed(s).redNeg().redSqrt().redMul(c),v=a.redAdd(d).fromRed(),y=a.redSub(d).fromRed();return[v,y]};us.prototype._getEndoBasis=function(n){for(var s=this.n.ushrn(Math.floor(this.n.bitLength()/2)),c=n,a=this.n.clone(),d=new Ji(1),v=new Ji(0),y=new Ji(0),M=new Ji(1),w,b,_,x,S,I,R,N=0,P,L;c.cmpn(0)!==0;){var D=a.div(c);P=a.sub(D.mul(c)),L=y.sub(D.mul(d));var Z=M.sub(D.mul(v));if(!_&&P.cmp(s)<0)w=R.neg(),b=d,_=P.neg(),x=L;else if(_&&++N===2)break;R=P,a=c,c=P,y=d,d=L,M=v,v=Z}S=P.neg(),I=L;var W=_.sqr().add(x.sqr()),Q=S.sqr().add(I.sqr());return Q.cmp(W)>=0&&(S=w,I=b),_.negative&&(_=_.neg(),x=x.neg()),S.negative&&(S=S.neg(),I=I.neg()),[{a:_,b:x},{a:S,b:I}]};us.prototype._endoSplit=function(n){var s=this.endo.basis,c=s[0],a=s[1],d=a.b.mul(n).divRound(this.n),v=c.b.neg().mul(n).divRound(this.n),y=d.mul(c.a),M=v.mul(a.a),w=d.mul(c.b),b=v.mul(a.b),_=n.sub(y).sub(M),x=w.add(b).neg();return{k1:_,k2:x}};us.prototype.pointFromX=function(n,s){n=new Ji(n,16),n.red||(n=n.toRed(this.red));var c=n.redSqr().redMul(n).redIAdd(n.redMul(this.a)).redIAdd(this.b),a=c.redSqrt();if(a.redSqr().redSub(c).cmp(this.zero)!==0)throw new Error("invalid point");var d=a.fromRed().isOdd();return(s&&!d||!s&&d)&&(a=a.redNeg()),this.point(n,a)};us.prototype.validate=function(n){if(n.inf)return!0;var s=n.x,c=n.y,a=this.a.redMul(s),d=s.redSqr().redMul(s).redIAdd(a).redIAdd(this.b);return c.redSqr().redISub(d).cmpn(0)===0};us.prototype._endoWnafMulAdd=function(n,s,c){for(var a=this._endoWnafT1,d=this._endoWnafT2,v=0;v<n.length;v++){var y=this._endoSplit(s[v]),M=n[v],w=M._getBeta();y.k1.negative&&(y.k1.ineg(),M=M.neg(!0)),y.k2.negative&&(y.k2.ineg(),w=w.neg(!0)),a[v*2]=M,a[v*2+1]=w,d[v*2]=y.k1,d[v*2+1]=y.k2}for(var b=this._wnafMulAdd(1,a,d,v*2,c),_=0;_<v*2;_++)a[_]=null,d[_]=null;return b};function Un(i,n,s,c){wd.BasePoint.call(this,i,"affine"),n===null&&s===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new Ji(n,16),this.y=new Ji(s,16),c&&(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)}fE(Un,wd.BasePoint);us.prototype.point=function(n,s,c){return new Un(this,n,s,c)};us.prototype.pointFromJSON=function(n,s){return Un.fromJSON(this,n,s)};Un.prototype._getBeta=function(){if(this.curve.endo){var n=this.precomputed;if(n&&n.beta)return n.beta;var s=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(n){var c=this.curve,a=function(d){return c.point(d.x.redMul(c.endo.beta),d.y)};n.beta=s,s.precomputed={beta:null,naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(a)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(a)}}}return s}};Un.prototype.toJSON=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]};Un.fromJSON=function(n,s,c){typeof s=="string"&&(s=JSON.parse(s));var a=n.point(s[0],s[1],c);if(!s[2])return a;function d(y){return n.point(y[0],y[1],c)}var v=s[2];return a.precomputed={beta:null,doubles:v.doubles&&{step:v.doubles.step,points:[a].concat(v.doubles.points.map(d))},naf:v.naf&&{wnd:v.naf.wnd,points:[a].concat(v.naf.points.map(d))}},a};Un.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"};Un.prototype.isInfinity=function(){return this.inf};Un.prototype.add=function(n){if(this.inf)return n;if(n.inf)return this;if(this.eq(n))return this.dbl();if(this.neg().eq(n))return this.curve.point(null,null);if(this.x.cmp(n.x)===0)return this.curve.point(null,null);var s=this.y.redSub(n.y);s.cmpn(0)!==0&&(s=s.redMul(this.x.redSub(n.x).redInvm()));var c=s.redSqr().redISub(this.x).redISub(n.x),a=s.redMul(this.x.redSub(c)).redISub(this.y);return this.curve.point(c,a)};Un.prototype.dbl=function(){if(this.inf)return this;var n=this.y.redAdd(this.y);if(n.cmpn(0)===0)return this.curve.point(null,null);var s=this.curve.a,c=this.x.redSqr(),a=n.redInvm(),d=c.redAdd(c).redIAdd(c).redIAdd(s).redMul(a),v=d.redSqr().redISub(this.x.redAdd(this.x)),y=d.redMul(this.x.redSub(v)).redISub(this.y);return this.curve.point(v,y)};Un.prototype.getX=function(){return this.x.fromRed()};Un.prototype.getY=function(){return this.y.fromRed()};Un.prototype.mul=function(n){return n=new Ji(n,16),this.isInfinity()?this:this._hasDoubles(n)?this.curve._fixedNafMul(this,n):this.curve.endo?this.curve._endoWnafMulAdd([this],[n]):this.curve._wnafMul(this,n)};Un.prototype.mulAdd=function(n,s,c){var a=[this,s],d=[n,c];return this.curve.endo?this.curve._endoWnafMulAdd(a,d):this.curve._wnafMulAdd(1,a,d,2)};Un.prototype.jmulAdd=function(n,s,c){var a=[this,s],d=[n,c];return this.curve.endo?this.curve._endoWnafMulAdd(a,d,!0):this.curve._wnafMulAdd(1,a,d,2,!0)};Un.prototype.eq=function(n){return this===n||this.inf===n.inf&&(this.inf||this.x.cmp(n.x)===0&&this.y.cmp(n.y)===0)};Un.prototype.neg=function(n){if(this.inf)return this;var s=this.curve.point(this.x,this.y.redNeg());if(n&&this.precomputed){var c=this.precomputed,a=function(d){return d.neg()};s.precomputed={naf:c.naf&&{wnd:c.naf.wnd,points:c.naf.points.map(a)},doubles:c.doubles&&{step:c.doubles.step,points:c.doubles.points.map(a)}}}return s};Un.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var n=this.curve.jpoint(this.x,this.y,this.curve.one);return n};function Xn(i,n,s,c){wd.BasePoint.call(this,i,"jacobian"),n===null&&s===null&&c===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Ji(0)):(this.x=new Ji(n,16),this.y=new Ji(s,16),this.z=new Ji(c,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}fE(Xn,wd.BasePoint);us.prototype.jpoint=function(n,s,c){return new Xn(this,n,s,c)};Xn.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var n=this.z.redInvm(),s=n.redSqr(),c=this.x.redMul(s),a=this.y.redMul(s).redMul(n);return this.curve.point(c,a)};Xn.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};Xn.prototype.add=function(n){if(this.isInfinity())return n;if(n.isInfinity())return this;var s=n.z.redSqr(),c=this.z.redSqr(),a=this.x.redMul(s),d=n.x.redMul(c),v=this.y.redMul(s.redMul(n.z)),y=n.y.redMul(c.redMul(this.z)),M=a.redSub(d),w=v.redSub(y);if(M.cmpn(0)===0)return w.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var b=M.redSqr(),_=b.redMul(M),x=a.redMul(b),S=w.redSqr().redIAdd(_).redISub(x).redISub(x),I=w.redMul(x.redISub(S)).redISub(v.redMul(_)),R=this.z.redMul(n.z).redMul(M);return this.curve.jpoint(S,I,R)};Xn.prototype.mixedAdd=function(n){if(this.isInfinity())return n.toJ();if(n.isInfinity())return this;var s=this.z.redSqr(),c=this.x,a=n.x.redMul(s),d=this.y,v=n.y.redMul(s).redMul(this.z),y=c.redSub(a),M=d.redSub(v);if(y.cmpn(0)===0)return M.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var w=y.redSqr(),b=w.redMul(y),_=c.redMul(w),x=M.redSqr().redIAdd(b).redISub(_).redISub(_),S=M.redMul(_.redISub(x)).redISub(d.redMul(b)),I=this.z.redMul(y);return this.curve.jpoint(x,S,I)};Xn.prototype.dblp=function(n){if(n===0)return this;if(this.isInfinity())return this;if(!n)return this.dbl();var s;if(this.curve.zeroA||this.curve.threeA){var c=this;for(s=0;s<n;s++)c=c.dbl();return c}var a=this.curve.a,d=this.curve.tinv,v=this.x,y=this.y,M=this.z,w=M.redSqr().redSqr(),b=y.redAdd(y);for(s=0;s<n;s++){var _=v.redSqr(),x=b.redSqr(),S=x.redSqr(),I=_.redAdd(_).redIAdd(_).redIAdd(a.redMul(w)),R=v.redMul(x),N=I.redSqr().redISub(R.redAdd(R)),P=R.redISub(N),L=I.redMul(P);L=L.redIAdd(L).redISub(S);var D=b.redMul(M);s+1<n&&(w=w.redMul(S)),v=N,M=D,b=L}return this.curve.jpoint(v,b.redMul(d),M)};Xn.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()};Xn.prototype._zeroDbl=function(){var n,s,c;if(this.zOne){var a=this.x.redSqr(),d=this.y.redSqr(),v=d.redSqr(),y=this.x.redAdd(d).redSqr().redISub(a).redISub(v);y=y.redIAdd(y);var M=a.redAdd(a).redIAdd(a),w=M.redSqr().redISub(y).redISub(y),b=v.redIAdd(v);b=b.redIAdd(b),b=b.redIAdd(b),n=w,s=M.redMul(y.redISub(w)).redISub(b),c=this.y.redAdd(this.y)}else{var _=this.x.redSqr(),x=this.y.redSqr(),S=x.redSqr(),I=this.x.redAdd(x).redSqr().redISub(_).redISub(S);I=I.redIAdd(I);var R=_.redAdd(_).redIAdd(_),N=R.redSqr(),P=S.redIAdd(S);P=P.redIAdd(P),P=P.redIAdd(P),n=N.redISub(I).redISub(I),s=R.redMul(I.redISub(n)).redISub(P),c=this.y.redMul(this.z),c=c.redIAdd(c)}return this.curve.jpoint(n,s,c)};Xn.prototype._threeDbl=function(){var n,s,c;if(this.zOne){var a=this.x.redSqr(),d=this.y.redSqr(),v=d.redSqr(),y=this.x.redAdd(d).redSqr().redISub(a).redISub(v);y=y.redIAdd(y);var M=a.redAdd(a).redIAdd(a).redIAdd(this.curve.a),w=M.redSqr().redISub(y).redISub(y);n=w;var b=v.redIAdd(v);b=b.redIAdd(b),b=b.redIAdd(b),s=M.redMul(y.redISub(w)).redISub(b),c=this.y.redAdd(this.y)}else{var _=this.z.redSqr(),x=this.y.redSqr(),S=this.x.redMul(x),I=this.x.redSub(_).redMul(this.x.redAdd(_));I=I.redAdd(I).redIAdd(I);var R=S.redIAdd(S);R=R.redIAdd(R);var N=R.redAdd(R);n=I.redSqr().redISub(N),c=this.y.redAdd(this.z).redSqr().redISub(x).redISub(_);var P=x.redSqr();P=P.redIAdd(P),P=P.redIAdd(P),P=P.redIAdd(P),s=I.redMul(R.redISub(n)).redISub(P)}return this.curve.jpoint(n,s,c)};Xn.prototype._dbl=function(){var n=this.curve.a,s=this.x,c=this.y,a=this.z,d=a.redSqr().redSqr(),v=s.redSqr(),y=c.redSqr(),M=v.redAdd(v).redIAdd(v).redIAdd(n.redMul(d)),w=s.redAdd(s);w=w.redIAdd(w);var b=w.redMul(y),_=M.redSqr().redISub(b.redAdd(b)),x=b.redISub(_),S=y.redSqr();S=S.redIAdd(S),S=S.redIAdd(S),S=S.redIAdd(S);var I=M.redMul(x).redISub(S),R=c.redAdd(c).redMul(a);return this.curve.jpoint(_,I,R)};Xn.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var n=this.x.redSqr(),s=this.y.redSqr(),c=this.z.redSqr(),a=s.redSqr(),d=n.redAdd(n).redIAdd(n),v=d.redSqr(),y=this.x.redAdd(s).redSqr().redISub(n).redISub(a);y=y.redIAdd(y),y=y.redAdd(y).redIAdd(y),y=y.redISub(v);var M=y.redSqr(),w=a.redIAdd(a);w=w.redIAdd(w),w=w.redIAdd(w),w=w.redIAdd(w);var b=d.redIAdd(y).redSqr().redISub(v).redISub(M).redISub(w),_=s.redMul(b);_=_.redIAdd(_),_=_.redIAdd(_);var x=this.x.redMul(M).redISub(_);x=x.redIAdd(x),x=x.redIAdd(x);var S=this.y.redMul(b.redMul(w.redISub(b)).redISub(y.redMul(M)));S=S.redIAdd(S),S=S.redIAdd(S),S=S.redIAdd(S);var I=this.z.redAdd(y).redSqr().redISub(c).redISub(M);return this.curve.jpoint(x,S,I)};Xn.prototype.mul=function(n,s){return n=new Ji(n,s),this.curve._wnafMul(this,n)};Xn.prototype.eq=function(n){if(n.type==="affine")return this.eq(n.toJ());if(this===n)return!0;var s=this.z.redSqr(),c=n.z.redSqr();if(this.x.redMul(c).redISub(n.x.redMul(s)).cmpn(0)!==0)return!1;var a=s.redMul(this.z),d=c.redMul(n.z);return this.y.redMul(d).redISub(n.y.redMul(a)).cmpn(0)===0};Xn.prototype.eqXToP=function(n){var s=this.z.redSqr(),c=n.toRed(this.curve.red).redMul(s);if(this.x.cmp(c)===0)return!0;for(var a=n.clone(),d=this.curve.redN.redMul(s);;){if(a.iadd(this.curve.n),a.cmp(this.curve.p)>=0)return!1;if(c.redIAdd(d),this.x.cmp(c)===0)return!0}};Xn.prototype.inspect=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)+">"};Xn.prototype.isInfinity=function(){return this.z.cmpn(0)===0}});var EV=St((CTe,SV)=>{"use strict";var LTe=me(Me());xe();_e();var Md=Df(),xV=Wn(),Eb=Ip(),wve=so();function _d(i){Eb.call(this,"mont",i),this.a=new Md(i.a,16).toRed(this.red),this.b=new Md(i.b,16).toRed(this.red),this.i4=new Md(4).toRed(this.red).redInvm(),this.two=new Md(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}xV(_d,Eb);SV.exports=_d;_d.prototype.validate=function(n){var s=n.normalize().x,c=s.redSqr(),a=c.redMul(s).redAdd(c.redMul(this.a)).redAdd(s),d=a.redSqrt();return d.redSqr().cmp(a)===0};function zn(i,n,s){Eb.BasePoint.call(this,i,"projective"),n===null&&s===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new Md(n,16),this.z=new Md(s,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}xV(zn,Eb.BasePoint);_d.prototype.decodePoint=function(n,s){return this.point(wve.toArray(n,s),1)};_d.prototype.point=function(n,s){return new zn(this,n,s)};_d.prototype.pointFromJSON=function(n){return zn.fromJSON(this,n)};zn.prototype.precompute=function(){};zn.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};zn.fromJSON=function(n,s){return new zn(n,s[0],s[1]||n.one)};zn.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};zn.prototype.isInfinity=function(){return this.z.cmpn(0)===0};zn.prototype.dbl=function(){var n=this.x.redAdd(this.z),s=n.redSqr(),c=this.x.redSub(this.z),a=c.redSqr(),d=s.redSub(a),v=s.redMul(a),y=d.redMul(a.redAdd(this.curve.a24.redMul(d)));return this.curve.point(v,y)};zn.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};zn.prototype.diffAdd=function(n,s){var c=this.x.redAdd(this.z),a=this.x.redSub(this.z),d=n.x.redAdd(n.z),v=n.x.redSub(n.z),y=v.redMul(c),M=d.redMul(a),w=s.z.redMul(y.redAdd(M).redSqr()),b=s.x.redMul(y.redISub(M).redSqr());return this.curve.point(w,b)};zn.prototype.mul=function(n){for(var s=n.clone(),c=this,a=this.curve.point(null,null),d=this,v=[];s.cmpn(0)!==0;s.iushrn(1))v.push(s.andln(1));for(var y=v.length-1;y>=0;y--)v[y]===0?(c=c.diffAdd(a,d),a=a.dbl()):(a=c.diffAdd(a,d),c=c.dbl());return a};zn.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};zn.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};zn.prototype.eq=function(n){return this.getX().cmp(n.getX())===0};zn.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};zn.prototype.getX=function(){return this.normalize(),this.x.fromRed()}});var IV=St((qTe,BV)=>{"use strict";var UTe=me(Me());xe();_e();var Mve=so(),Ih=Df(),AV=Wn(),Ab=Ip(),_ve=Mve.assert;function Of(i){this.twisted=(i.a|0)!==1,this.mOneA=this.twisted&&(i.a|0)===-1,this.extended=this.mOneA,Ab.call(this,"edwards",i),this.a=new Ih(i.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new Ih(i.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new Ih(i.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),_ve(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(i.c|0)===1}AV(Of,Ab);BV.exports=Of;Of.prototype._mulA=function(n){return this.mOneA?n.redNeg():this.a.redMul(n)};Of.prototype._mulC=function(n){return this.oneC?n:this.c.redMul(n)};Of.prototype.jpoint=function(n,s,c,a){return this.point(n,s,c,a)};Of.prototype.pointFromX=function(n,s){n=new Ih(n,16),n.red||(n=n.toRed(this.red));var c=n.redSqr(),a=this.c2.redSub(this.a.redMul(c)),d=this.one.redSub(this.c2.redMul(this.d).redMul(c)),v=a.redMul(d.redInvm()),y=v.redSqrt();if(y.redSqr().redSub(v).cmp(this.zero)!==0)throw new Error("invalid point");var M=y.fromRed().isOdd();return(s&&!M||!s&&M)&&(y=y.redNeg()),this.point(n,y)};Of.prototype.pointFromY=function(n,s){n=new Ih(n,16),n.red||(n=n.toRed(this.red));var c=n.redSqr(),a=c.redSub(this.c2),d=c.redMul(this.d).redMul(this.c2).redSub(this.a),v=a.redMul(d.redInvm());if(v.cmp(this.zero)===0){if(s)throw new Error("invalid point");return this.point(this.zero,n)}var y=v.redSqrt();if(y.redSqr().redSub(v).cmp(this.zero)!==0)throw new Error("invalid point");return y.fromRed().isOdd()!==s&&(y=y.redNeg()),this.point(y,n)};Of.prototype.validate=function(n){if(n.isInfinity())return!0;n.normalize();var s=n.x.redSqr(),c=n.y.redSqr(),a=s.redMul(this.a).redAdd(c),d=this.c2.redMul(this.one.redAdd(this.d.redMul(s).redMul(c)));return a.cmp(d)===0};function Ii(i,n,s,c,a){Ab.BasePoint.call(this,i,"projective"),n===null&&s===null&&c===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new Ih(n,16),this.y=new Ih(s,16),this.z=c?new Ih(c,16):this.curve.one,this.t=a&&new Ih(a,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}AV(Ii,Ab.BasePoint);Of.prototype.pointFromJSON=function(n){return Ii.fromJSON(this,n)};Of.prototype.point=function(n,s,c,a){return new Ii(this,n,s,c,a)};Ii.fromJSON=function(n,s){return new Ii(n,s[0],s[1],s[2])};Ii.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};Ii.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Ii.prototype._extDbl=function(){var n=this.x.redSqr(),s=this.y.redSqr(),c=this.z.redSqr();c=c.redIAdd(c);var a=this.curve._mulA(n),d=this.x.redAdd(this.y).redSqr().redISub(n).redISub(s),v=a.redAdd(s),y=v.redSub(c),M=a.redSub(s),w=d.redMul(y),b=v.redMul(M),_=d.redMul(M),x=y.redMul(v);return this.curve.point(w,b,x,_)};Ii.prototype._projDbl=function(){var n=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),c=this.y.redSqr(),a,d,v,y,M,w;if(this.curve.twisted){y=this.curve._mulA(s);var b=y.redAdd(c);this.zOne?(a=n.redSub(s).redSub(c).redMul(b.redSub(this.curve.two)),d=b.redMul(y.redSub(c)),v=b.redSqr().redSub(b).redSub(b)):(M=this.z.redSqr(),w=b.redSub(M).redISub(M),a=n.redSub(s).redISub(c).redMul(w),d=b.redMul(y.redSub(c)),v=b.redMul(w))}else y=s.redAdd(c),M=this.curve._mulC(this.z).redSqr(),w=y.redSub(M).redSub(M),a=this.curve._mulC(n.redISub(y)).redMul(w),d=this.curve._mulC(y).redMul(s.redISub(c)),v=y.redMul(w);return this.curve.point(a,d,v)};Ii.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Ii.prototype._extAdd=function(n){var s=this.y.redSub(this.x).redMul(n.y.redSub(n.x)),c=this.y.redAdd(this.x).redMul(n.y.redAdd(n.x)),a=this.t.redMul(this.curve.dd).redMul(n.t),d=this.z.redMul(n.z.redAdd(n.z)),v=c.redSub(s),y=d.redSub(a),M=d.redAdd(a),w=c.redAdd(s),b=v.redMul(y),_=M.redMul(w),x=v.redMul(w),S=y.redMul(M);return this.curve.point(b,_,S,x)};Ii.prototype._projAdd=function(n){var s=this.z.redMul(n.z),c=s.redSqr(),a=this.x.redMul(n.x),d=this.y.redMul(n.y),v=this.curve.d.redMul(a).redMul(d),y=c.redSub(v),M=c.redAdd(v),w=this.x.redAdd(this.y).redMul(n.x.redAdd(n.y)).redISub(a).redISub(d),b=s.redMul(y).redMul(w),_,x;return this.curve.twisted?(_=s.redMul(M).redMul(d.redSub(this.curve._mulA(a))),x=y.redMul(M)):(_=s.redMul(M).redMul(d.redSub(a)),x=this.curve._mulC(y).redMul(M)),this.curve.point(b,_,x)};Ii.prototype.add=function(n){return this.isInfinity()?n:n.isInfinity()?this:this.curve.extended?this._extAdd(n):this._projAdd(n)};Ii.prototype.mul=function(n){return this._hasDoubles(n)?this.curve._fixedNafMul(this,n):this.curve._wnafMul(this,n)};Ii.prototype.mulAdd=function(n,s,c){return this.curve._wnafMulAdd(1,[this,s],[n,c],2,!1)};Ii.prototype.jmulAdd=function(n,s,c){return this.curve._wnafMulAdd(1,[this,s],[n,c],2,!0)};Ii.prototype.normalize=function(){if(this.zOne)return this;var n=this.z.redInvm();return this.x=this.x.redMul(n),this.y=this.y.redMul(n),this.t&&(this.t=this.t.redMul(n)),this.z=this.curve.one,this.zOne=!0,this};Ii.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Ii.prototype.getX=function(){return this.normalize(),this.x.fromRed()};Ii.prototype.getY=function(){return this.normalize(),this.y.fromRed()};Ii.prototype.eq=function(n){return this===n||this.getX().cmp(n.getX())===0&&this.getY().cmp(n.getY())===0};Ii.prototype.eqXToP=function(n){var s=n.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(s)===0)return!0;for(var c=n.clone(),a=this.curve.redN.redMul(this.z);;){if(c.iadd(this.curve.n),c.cmp(this.curve.p)>=0)return!1;if(s.redIAdd(a),this.x.cmp(s)===0)return!0}};Ii.prototype.toP=Ii.prototype.normalize;Ii.prototype.mixedAdd=Ii.prototype.add});var hE=St(RV=>{"use strict";var KTe=me(Me());xe();_e();var Bb=RV;Bb.base=Ip();Bb.short=_V();Bb.mont=EV();Bb.edwards=IV()});var kV=St((ZTe,TV)=>{var GTe=me(Me());xe();_e();TV.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"]]}}});var Ib=St(NV=>{"use strict";var XTe=me(Me());xe();_e();var lE=NV,W0=$0(),uE=hE(),xve=so(),PV=xve.assert;function $V(i){i.type==="short"?this.curve=new uE.short(i):i.type==="edwards"?this.curve=new uE.edwards(i):this.curve=new uE.mont(i),this.g=this.curve.g,this.n=this.curve.n,this.hash=i.hash,PV(this.g.validate(),"Invalid curve"),PV(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}lE.PresetCurve=$V;function Z0(i,n){Object.defineProperty(lE,i,{configurable:!0,enumerable:!0,get:function(){var s=new $V(n);return Object.defineProperty(lE,i,{configurable:!0,enumerable:!0,value:s}),s}})}Z0("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:W0.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]});Z0("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:W0.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]});Z0("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:W0.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]});Z0("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:W0.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]});Z0("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:W0.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]});Z0("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:W0.sha256,gRed:!1,g:["9"]});Z0("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:W0.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var cE;try{cE=kV()}catch{cE=void 0}Z0("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:W0.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",cE]})});var DV=St((tke,LV)=>{"use strict";var rke=me(Me());xe();_e();var Sve=$0(),kl=iE(),CV=ch();function G0(i){if(!(this instanceof G0))return new G0(i);this.hash=i.hash,this.predResist=!!i.predResist,this.outLen=this.hash.outSize,this.minEntropy=i.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var n=kl.toArray(i.entropy,i.entropyEnc||"hex"),s=kl.toArray(i.nonce,i.nonceEnc||"hex"),c=kl.toArray(i.pers,i.persEnc||"hex");CV(n.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(n,s,c)}LV.exports=G0;G0.prototype._init=function(n,s,c){var a=n.concat(s).concat(c);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var d=0;d<this.V.length;d++)this.K[d]=0,this.V[d]=1;this._update(a),this._reseed=1,this.reseedInterval=281474976710656};G0.prototype._hmac=function(){return new Sve.hmac(this.hash,this.K)};G0.prototype._update=function(n){var s=this._hmac().update(this.V).update([0]);n&&(s=s.update(n)),this.K=s.digest(),this.V=this._hmac().update(this.V).digest(),n&&(this.K=this._hmac().update(this.V).update([1]).update(n).digest(),this.V=this._hmac().update(this.V).digest())};G0.prototype.reseed=function(n,s,c,a){typeof s!="string"&&(a=c,c=s,s=null),n=kl.toArray(n,s),c=kl.toArray(c,a),CV(n.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(n.concat(c||[])),this._reseed=1};G0.prototype.generate=function(n,s,c,a){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof s!="string"&&(a=c,c=s,s=null),c&&(c=kl.toArray(c,a||"hex"),this._update(c));for(var d=[];d.length<n;)this.V=this._hmac().update(this.V).digest(),d=d.concat(this.V);var v=d.slice(0,n);return this._update(c),this._reseed++,kl.encode(v,s)}});var qV=St((ake,OV)=>{"use strict";var oke=me(Me());xe();_e();var Eve=Df(),Ave=so(),dE=Ave.assert;function va(i,n){this.ec=i,this.priv=null,this.pub=null,n.priv&&this._importPrivate(n.priv,n.privEnc),n.pub&&this._importPublic(n.pub,n.pubEnc)}OV.exports=va;va.fromPublic=function(n,s,c){return s instanceof va?s:new va(n,{pub:s,pubEnc:c})};va.fromPrivate=function(n,s,c){return s instanceof va?s:new va(n,{priv:s,privEnc:c})};va.prototype.validate=function(){var n=this.getPublic();return n.isInfinity()?{result:!1,reason:"Invalid public key"}:n.validate()?n.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"}};va.prototype.getPublic=function(n,s){return typeof n=="string"&&(s=n,n=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),s?this.pub.encode(s,n):this.pub};va.prototype.getPrivate=function(n){return n==="hex"?this.priv.toString(16,2):this.priv};va.prototype._importPrivate=function(n,s){this.priv=new Eve(n,s||16),this.priv=this.priv.umod(this.ec.curve.n)};va.prototype._importPublic=function(n,s){if(n.x||n.y){this.ec.curve.type==="mont"?dE(n.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&dE(n.x&&n.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(n.x,n.y);return}this.pub=this.ec.curve.decodePoint(n,s)};va.prototype.derive=function(n){return n.validate()||dE(n.validate(),"public point not validated"),n.mul(this.priv).getX()};va.prototype.sign=function(n,s,c){return this.ec.sign(n,this,s,c)};va.prototype.verify=function(n,s){return this.ec.verify(n,s,this)};va.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}});var FV=St((hke,zV)=>{"use strict";var uke=me(Me());xe();_e();var Rb=Df(),mE=so(),Bve=mE.assert;function Tb(i,n){if(i instanceof Tb)return i;this._importDER(i,n)||(Bve(i.r&&i.s,"Signature without r or s"),this.r=new Rb(i.r,16),this.s=new Rb(i.s,16),i.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=i.recoveryParam)}zV.exports=Tb;function Ive(){this.place=0}function pE(i,n){var s=i[n.place++];if(!(s&128))return s;var c=s&15;if(c===0||c>4)return!1;for(var a=0,d=0,v=n.place;d<c;d++,v++)a<<=8,a|=i[v],a>>>=0;return a<=127?!1:(n.place=v,a)}function UV(i){for(var n=0,s=i.length-1;!i[n]&&!(i[n+1]&128)&&n<s;)n++;return n===0?i:i.slice(n)}Tb.prototype._importDER=function(n,s){n=mE.toArray(n,s);var c=new Ive;if(n[c.place++]!==48)return!1;var a=pE(n,c);if(a===!1||a+c.place!==n.length||n[c.place++]!==2)return!1;var d=pE(n,c);if(d===!1)return!1;var v=n.slice(c.place,d+c.place);if(c.place+=d,n[c.place++]!==2)return!1;var y=pE(n,c);if(y===!1||n.length!==y+c.place)return!1;var M=n.slice(c.place,y+c.place);if(v[0]===0)if(v[1]&128)v=v.slice(1);else return!1;if(M[0]===0)if(M[1]&128)M=M.slice(1);else return!1;return this.r=new Rb(v),this.s=new Rb(M),this.recoveryParam=null,!0};function vE(i,n){if(n<128){i.push(n);return}var s=1+(Math.log(n)/Math.LN2>>>3);for(i.push(s|128);--s;)i.push(n>>>(s<<3)&255);i.push(n)}Tb.prototype.toDER=function(n){var s=this.r.toArray(),c=this.s.toArray();for(s[0]&128&&(s=[0].concat(s)),c[0]&128&&(c=[0].concat(c)),s=UV(s),c=UV(c);!c[0]&&!(c[1]&128);)c=c.slice(1);var a=[2];vE(a,s.length),a=a.concat(s),a.push(2),vE(a,c.length);var d=a.concat(c),v=[48];return vE(v,d.length),v=v.concat(d),mE.encode(v,n)}});var WV=St((dke,jV)=>{"use strict";var pke=me(Me());xe();_e();var Pl=Df(),HV=DV(),Rve=so(),bE=Ib(),Tve=sE(),KV=Rve.assert,gE=qV(),kb=FV();function ls(i){if(!(this instanceof ls))return new ls(i);typeof i=="string"&&(KV(Object.prototype.hasOwnProperty.call(bE,i),"Unknown curve "+i),i=bE[i]),i instanceof bE.PresetCurve&&(i={curve:i}),this.curve=i.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=i.curve.g,this.g.precompute(i.curve.n.bitLength()+1),this.hash=i.hash||i.curve.hash}jV.exports=ls;ls.prototype.keyPair=function(n){return new gE(this,n)};ls.prototype.keyFromPrivate=function(n,s){return gE.fromPrivate(this,n,s)};ls.prototype.keyFromPublic=function(n,s){return gE.fromPublic(this,n,s)};ls.prototype.genKeyPair=function(n){n||(n={});for(var s=new HV({hash:this.hash,pers:n.pers,persEnc:n.persEnc||"utf8",entropy:n.entropy||Tve(this.hash.hmacStrength),entropyEnc:n.entropy&&n.entropyEnc||"utf8",nonce:this.n.toArray()}),c=this.n.byteLength(),a=this.n.sub(new Pl(2));;){var d=new Pl(s.generate(c));if(!(d.cmp(a)>0))return d.iaddn(1),this.keyFromPrivate(d)}};ls.prototype._truncateToN=function(n,s){var c=n.byteLength()*8-this.n.bitLength();return c>0&&(n=n.ushrn(c)),!s&&n.cmp(this.n)>=0?n.sub(this.n):n};ls.prototype.sign=function(n,s,c,a){typeof c=="object"&&(a=c,c=null),a||(a={}),s=this.keyFromPrivate(s,c),n=this._truncateToN(new Pl(n,16));for(var d=this.n.byteLength(),v=s.getPrivate().toArray("be",d),y=n.toArray("be",d),M=new HV({hash:this.hash,entropy:v,nonce:y,pers:a.pers,persEnc:a.persEnc||"utf8"}),w=this.n.sub(new Pl(1)),b=0;;b++){var _=a.k?a.k(b):new Pl(M.generate(this.n.byteLength()));if(_=this._truncateToN(_,!0),!(_.cmpn(1)<=0||_.cmp(w)>=0)){var x=this.g.mul(_);if(!x.isInfinity()){var S=x.getX(),I=S.umod(this.n);if(I.cmpn(0)!==0){var R=_.invm(this.n).mul(I.mul(s.getPrivate()).iadd(n));if(R=R.umod(this.n),R.cmpn(0)!==0){var N=(x.getY().isOdd()?1:0)|(S.cmp(I)!==0?2:0);return a.canonical&&R.cmp(this.nh)>0&&(R=this.n.sub(R),N^=1),new kb({r:I,s:R,recoveryParam:N})}}}}}};ls.prototype.verify=function(n,s,c,a){n=this._truncateToN(new Pl(n,16)),c=this.keyFromPublic(c,a),s=new kb(s,"hex");var d=s.r,v=s.s;if(d.cmpn(1)<0||d.cmp(this.n)>=0||v.cmpn(1)<0||v.cmp(this.n)>=0)return!1;var y=v.invm(this.n),M=y.mul(n).umod(this.n),w=y.mul(d).umod(this.n),b;return this.curve._maxwellTrick?(b=this.g.jmulAdd(M,c.getPublic(),w),b.isInfinity()?!1:b.eqXToP(d)):(b=this.g.mulAdd(M,c.getPublic(),w),b.isInfinity()?!1:b.getX().umod(this.n).cmp(d)===0)};ls.prototype.recoverPubKey=function(i,n,s,c){KV((3&s)===s,"The recovery param is more than two bits"),n=new kb(n,c);var a=this.n,d=new Pl(i),v=n.r,y=n.s,M=s&1,w=s>>1;if(v.cmp(this.curve.p.umod(this.curve.n))>=0&&w)throw new Error("Unable to find sencond key candinate");w?v=this.curve.pointFromX(v.add(this.curve.n),M):v=this.curve.pointFromX(v,M);var b=n.r.invm(a),_=a.sub(d).mul(b).umod(a),x=y.mul(b).umod(a);return this.g.mulAdd(_,v,x)};ls.prototype.getKeyRecoveryParam=function(i,n,s,c){if(n=new kb(n,c),n.recoveryParam!==null)return n.recoveryParam;for(var a=0;a<4;a++){var d;try{d=this.recoverPubKey(i,n,a)}catch{continue}if(d.eq(s))return a}throw new Error("Unable to find valid recovery factor")}});var JV=St((bke,VV)=>{"use strict";var gke=me(Me());xe();_e();var Rp=so(),GV=Rp.assert,ZV=Rp.parseBytes,xd=Rp.cachedProperty;function Fn(i,n){this.eddsa=i,this._secret=ZV(n.secret),i.isPoint(n.pub)?this._pub=n.pub:this._pubBytes=ZV(n.pub)}Fn.fromPublic=function(n,s){return s instanceof Fn?s:new Fn(n,{pub:s})};Fn.fromSecret=function(n,s){return s instanceof Fn?s:new Fn(n,{secret:s})};Fn.prototype.secret=function(){return this._secret};xd(Fn,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});xd(Fn,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});xd(Fn,"privBytes",function(){var n=this.eddsa,s=this.hash(),c=n.encodingLength-1,a=s.slice(0,n.encodingLength);return a[0]&=248,a[c]&=127,a[c]|=64,a});xd(Fn,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});xd(Fn,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});xd(Fn,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});Fn.prototype.sign=function(n){return GV(this._secret,"KeyPair can only verify"),this.eddsa.sign(n,this)};Fn.prototype.verify=function(n,s){return this.eddsa.verify(n,s,this)};Fn.prototype.getSecret=function(n){return GV(this._secret,"KeyPair is public only"),Rp.encode(this.secret(),n)};Fn.prototype.getPublic=function(n){return Rp.encode(this.pubBytes(),n)};VV.exports=Fn});var XV=St((Mke,YV)=>{"use strict";var _ke=me(Me());xe();_e();var kve=Df(),Pb=so(),Pve=Pb.assert,$b=Pb.cachedProperty,$ve=Pb.parseBytes;function $l(i,n){this.eddsa=i,typeof n!="object"&&(n=$ve(n)),Array.isArray(n)&&(n={R:n.slice(0,i.encodingLength),S:n.slice(i.encodingLength)}),Pve(n.R&&n.S,"Signature without R or S"),i.isPoint(n.R)&&(this._R=n.R),n.S instanceof kve&&(this._S=n.S),this._Rencoded=Array.isArray(n.R)?n.R:n.Rencoded,this._Sencoded=Array.isArray(n.S)?n.S:n.Sencoded}$b($l,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});$b($l,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});$b($l,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});$b($l,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});$l.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};$l.prototype.toHex=function(){return Pb.encode(this.toBytes(),"hex").toUpperCase()};YV.exports=$l});var iJ=St((Eke,rJ)=>{"use strict";var Ake=me(Me());xe();_e();var Nve=$0(),Cve=Ib(),Sd=so(),Lve=Sd.assert,eJ=Sd.parseBytes,tJ=JV(),QV=XV();function Da(i){if(Lve(i==="ed25519","only tested with ed25519 so far"),!(this instanceof Da))return new Da(i);i=Cve[i].curve,this.curve=i,this.g=i.g,this.g.precompute(i.n.bitLength()+1),this.pointClass=i.point().constructor,this.encodingLength=Math.ceil(i.n.bitLength()/8),this.hash=Nve.sha512}rJ.exports=Da;Da.prototype.sign=function(n,s){n=eJ(n);var c=this.keyFromSecret(s),a=this.hashInt(c.messagePrefix(),n),d=this.g.mul(a),v=this.encodePoint(d),y=this.hashInt(v,c.pubBytes(),n).mul(c.priv()),M=a.add(y).umod(this.curve.n);return this.makeSignature({R:d,S:M,Rencoded:v})};Da.prototype.verify=function(n,s,c){n=eJ(n),s=this.makeSignature(s);var a=this.keyFromPublic(c),d=this.hashInt(s.Rencoded(),a.pubBytes(),n),v=this.g.mul(s.S()),y=s.R().add(a.pub().mul(d));return y.eq(v)};Da.prototype.hashInt=function(){for(var n=this.hash(),s=0;s<arguments.length;s++)n.update(arguments[s]);return Sd.intFromLE(n.digest()).umod(this.curve.n)};Da.prototype.keyFromPublic=function(n){return tJ.fromPublic(this,n)};Da.prototype.keyFromSecret=function(n){return tJ.fromSecret(this,n)};Da.prototype.makeSignature=function(n){return n instanceof QV?n:new QV(this,n)};Da.prototype.encodePoint=function(n){var s=n.getY().toArray("le",this.encodingLength);return s[this.encodingLength-1]|=n.getX().isOdd()?128:0,s};Da.prototype.decodePoint=function(n){n=Sd.parseBytes(n);var s=n.length-1,c=n.slice(0,s).concat(n[s]&-129),a=(n[s]&128)!==0,d=Sd.intFromLE(c);return this.curve.pointFromY(d,a)};Da.prototype.encodeInt=function(n){return n.toArray("le",this.encodingLength)};Da.prototype.decodeInt=function(n){return Sd.intFromLE(n)};Da.prototype.isPoint=function(n){return n instanceof this.pointClass}});var aJ=St(nJ=>{"use strict";var Tke=me(Me());xe();_e();var Nl=nJ;Nl.version=pV().version;Nl.utils=so();Nl.rand=sE();Nl.curve=hE();Nl.curves=Ib();Nl.ec=WV();Nl.eddsa=iJ()});var sJ=St(($ke,oJ)=>{var Nke=me(Me());xe();_e();var Dve=aJ().ec,qf=new Dve("secp256k1"),qr=qf.curve,xi=qr.n.constructor;function Ove(i,n){let s=new xi(n);if(s.cmp(qr.p)>=0)return null;s=s.toRed(qr.red);let c=s.redSqr().redIMul(s).redIAdd(qr.b).redSqrt();return i===3!==c.isOdd()&&(c=c.redNeg()),qf.keyPair({pub:{x:s,y:c}})}function qve(i,n,s){let c=new xi(n),a=new xi(s);if(c.cmp(qr.p)>=0||a.cmp(qr.p)>=0||(c=c.toRed(qr.red),a=a.toRed(qr.red),(i===6||i===7)&&a.isOdd()!==(i===7)))return null;let d=c.redSqr().redIMul(c);return a.redSqr().redISub(d.redIAdd(qr.b)).isZero()?qf.keyPair({pub:{x:c,y:a}}):null}function V0(i){let n=i[0];switch(n){case 2:case 3:return i.length!==33?null:Ove(n,i.subarray(1,33));case 4:case 6:case 7:return i.length!==65?null:qve(n,i.subarray(1,33),i.subarray(33,65));default:return null}}function Cl(i,n){let s=n.encode(null,i.length===33);for(let c=0;c<i.length;++c)i[c]=s[c]}oJ.exports={contextRandomize(){return 0},privateKeyVerify(i){let n=new xi(i);return n.cmp(qr.n)<0&&!n.isZero()?0:1},privateKeyNegate(i){let n=new xi(i),s=qr.n.sub(n).umod(qr.n).toArrayLike(Uint8Array,"be",32);return i.set(s),0},privateKeyTweakAdd(i,n){let s=new xi(n);if(s.cmp(qr.n)>=0||(s.iadd(new xi(i)),s.cmp(qr.n)>=0&&s.isub(qr.n),s.isZero()))return 1;let c=s.toArrayLike(Uint8Array,"be",32);return i.set(c),0},privateKeyTweakMul(i,n){let s=new xi(n);if(s.cmp(qr.n)>=0||s.isZero())return 1;s.imul(new xi(i)),s.cmp(qr.n)>=0&&(s=s.umod(qr.n));let c=s.toArrayLike(Uint8Array,"be",32);return i.set(c),0},publicKeyVerify(i){return V0(i)===null?1:0},publicKeyCreate(i,n){let s=new xi(n);if(s.cmp(qr.n)>=0||s.isZero())return 1;let c=qf.keyFromPrivate(n).getPublic();return Cl(i,c),0},publicKeyConvert(i,n){let s=V0(n);if(s===null)return 1;let c=s.getPublic();return Cl(i,c),0},publicKeyNegate(i,n){let s=V0(n);if(s===null)return 1;let c=s.getPublic();return c.y=c.y.redNeg(),Cl(i,c),0},publicKeyCombine(i,n){let s=new Array(n.length);for(let a=0;a<n.length;++a)if(s[a]=V0(n[a]),s[a]===null)return 1;let c=s[0].getPublic();for(let a=1;a<s.length;++a)c=c.add(s[a].pub);return c.isInfinity()?2:(Cl(i,c),0)},publicKeyTweakAdd(i,n,s){let c=V0(n);if(c===null)return 1;if(s=new xi(s),s.cmp(qr.n)>=0)return 2;let a=c.getPublic().add(qr.g.mul(s));return a.isInfinity()?2:(Cl(i,a),0)},publicKeyTweakMul(i,n,s){let c=V0(n);if(c===null)return 1;if(s=new xi(s),s.cmp(qr.n)>=0||s.isZero())return 2;let a=c.getPublic().mul(s);return Cl(i,a),0},signatureNormalize(i){let n=new xi(i.subarray(0,32)),s=new xi(i.subarray(32,64));return n.cmp(qr.n)>=0||s.cmp(qr.n)>=0?1:(s.cmp(qf.nh)===1&&i.set(qr.n.sub(s).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(i,n){let s=n.subarray(0,32),c=n.subarray(32,64);if(new xi(s).cmp(qr.n)>=0||new xi(c).cmp(qr.n)>=0)return 1;let{output:a}=i,d=a.subarray(4,37);d[0]=0,d.set(s,1);let v=33,y=0;for(;v>1&&d[y]===0&&!(d[y+1]&128);--v,++y);if(d=d.subarray(y),d[0]&128||v>1&&d[0]===0&&!(d[1]&128))return 1;let M=a.subarray(39,72);M[0]=0,M.set(c,1);let w=33,b=0;for(;w>1&&M[b]===0&&!(M[b+1]&128);--w,++b);return M=M.subarray(b),M[0]&128||w>1&&M[0]===0&&!(M[1]&128)?1:(i.outputlen=6+v+w,a[0]=48,a[1]=i.outputlen-2,a[2]=2,a[3]=d.length,a.set(d,4),a[4+v]=2,a[5+v]=M.length,a.set(M,6+v),0)},signatureImport(i,n){if(n.length<8||n.length>72||n[0]!==48||n[1]!==n.length-2||n[2]!==2)return 1;let s=n[3];if(s===0||5+s>=n.length||n[4+s]!==2)return 1;let c=n[5+s];if(c===0||6+s+c!==n.length||n[4]&128||s>1&&n[4]===0&&!(n[5]&128)||n[s+6]&128||c>1&&n[s+6]===0&&!(n[s+7]&128))return 1;let a=n.subarray(4,4+s);if(a.length===33&&a[0]===0&&(a=a.subarray(1)),a.length>32)return 1;let d=n.subarray(6+s);if(d.length===33&&d[0]===0&&(d=d.slice(1)),d.length>32)throw new Error("S length is too long");let v=new xi(a);v.cmp(qr.n)>=0&&(v=new xi(0));let y=new xi(n.subarray(6+s));return y.cmp(qr.n)>=0&&(y=new xi(0)),i.set(v.toArrayLike(Uint8Array,"be",32),0),i.set(y.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(i,n,s,c,a){if(a){let y=a;a=M=>{let w=y(n,s,null,c,M);if(!(w instanceof Uint8Array&&w.length===32))throw new Error("This is the way");return new xi(w)}}let d=new xi(s);if(d.cmp(qr.n)>=0||d.isZero())return 1;let v;try{v=qf.sign(n,s,{canonical:!0,k:a,pers:c})}catch{return 1}return i.signature.set(v.r.toArrayLike(Uint8Array,"be",32),0),i.signature.set(v.s.toArrayLike(Uint8Array,"be",32),32),i.recid=v.recoveryParam,0},ecdsaVerify(i,n,s){let c={r:i.subarray(0,32),s:i.subarray(32,64)},a=new xi(c.r),d=new xi(c.s);if(a.cmp(qr.n)>=0||d.cmp(qr.n)>=0)return 1;if(d.cmp(qf.nh)===1||a.isZero()||d.isZero())return 3;let v=V0(s);if(v===null)return 2;let y=v.getPublic();return qf.verify(n,c,y)?0:3},ecdsaRecover(i,n,s,c){let a={r:n.slice(0,32),s:n.slice(32,64)},d=new xi(a.r),v=new xi(a.s);if(d.cmp(qr.n)>=0||v.cmp(qr.n)>=0)return 1;if(d.isZero()||v.isZero())return 2;let y;try{y=qf.recoverPubKey(c,a,s)}catch{return 2}return Cl(i,y),0},ecdh(i,n,s,c,a,d,v){let y=V0(n);if(y===null)return 1;let M=new xi(s);if(M.cmp(qr.n)>=0||M.isZero())return 2;let w=y.getPublic().mul(M);if(a===void 0){let b=w.encode(null,!0),_=qf.hash().update(b).digest();for(let x=0;x<32;++x)i[x]=_[x]}else{d||(d=new Uint8Array(32));let b=w.getX().toArray("be",32);for(let I=0;I<32;++I)d[I]=b[I];v||(v=new Uint8Array(32));let _=w.getY().toArray("be",32);for(let I=0;I<32;++I)v[I]=_[I];let x=a(d,v,c);if(!(x instanceof Uint8Array&&x.length===i.length))return 2;i.set(x)}return 0}}});var yE=St((Dke,fJ)=>{var Oke=me(Me());xe();_e();fJ.exports=dV()(sJ())});function Uve(){if(hJ)return Nb;hJ=!0;var i=typeof Reflect=="object"?Reflect:null,n=i&&typeof i.apply=="function"?i.apply:function(W,Q,K){return Function.prototype.apply.call(W,Q,K)},s;i&&typeof i.ownKeys=="function"?s=i.ownKeys:Object.getOwnPropertySymbols?s=function(W){return Object.getOwnPropertyNames(W).concat(Object.getOwnPropertySymbols(W))}:s=function(W){return Object.getOwnPropertyNames(W)};function c(Z){console&&console.warn&&console.warn(Z)}var a=Number.isNaN||function(W){return W!==W};function d(){d.init.call(this)}Nb=d,Nb.once=P,d.EventEmitter=d,d.prototype._events=void 0,d.prototype._eventsCount=0,d.prototype._maxListeners=void 0;var v=10;function y(Z){if(typeof Z!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Z)}Object.defineProperty(d,"defaultMaxListeners",{enumerable:!0,get:function(){return v},set:function(Z){if(typeof Z!="number"||Z<0||a(Z))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Z+".");v=Z}}),d.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},d.prototype.setMaxListeners=function(W){if(typeof W!="number"||W<0||a(W))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+W+".");return this._maxListeners=W,this};function M(Z){return Z._maxListeners===void 0?d.defaultMaxListeners:Z._maxListeners}d.prototype.getMaxListeners=function(){return M(this)},d.prototype.emit=function(W){for(var Q=[],K=1;K<arguments.length;K++)Q.push(arguments[K]);var F=W==="error",Y=this._events;if(Y!==void 0)F=F&&Y.error===void 0;else if(!F)return!1;if(F){var m;if(Q.length>0&&(m=Q[0]),m instanceof Error)throw m;var e=new Error("Unhandled error."+(m?" ("+m.message+")":""));throw e.context=m,e}var r=Y[W];if(r===void 0)return!1;if(typeof r=="function")n(r,this,Q);else for(var o=r.length,f=I(r,o),K=0;K<o;++K)n(f[K],this,Q);return!0};function w(Z,W,Q,K){var F,Y,m;if(y(Q),Y=Z._events,Y===void 0?(Y=Z._events=Object.create(null),Z._eventsCount=0):(Y.newListener!==void 0&&(Z.emit("newListener",W,Q.listener?Q.listener:Q),Y=Z._events),m=Y[W]),m===void 0)m=Y[W]=Q,++Z._eventsCount;else if(typeof m=="function"?m=Y[W]=K?[Q,m]:[m,Q]:K?m.unshift(Q):m.push(Q),F=M(Z),F>0&&m.length>F&&!m.warned){m.warned=!0;var e=new Error("Possible EventEmitter memory leak detected. "+m.length+" "+String(W)+" listeners added. Use emitter.setMaxListeners() to increase limit");e.name="MaxListenersExceededWarning",e.emitter=Z,e.type=W,e.count=m.length,c(e)}return Z}d.prototype.addListener=function(W,Q){return w(this,W,Q,!1)},d.prototype.on=d.prototype.addListener,d.prototype.prependListener=function(W,Q){return w(this,W,Q,!0)};function b(){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)}function _(Z,W,Q){var K={fired:!1,wrapFn:void 0,target:Z,type:W,listener:Q},F=b.bind(K);return F.listener=Q,K.wrapFn=F,F}d.prototype.once=function(W,Q){return y(Q),this.on(W,_(this,W,Q)),this},d.prototype.prependOnceListener=function(W,Q){return y(Q),this.prependListener(W,_(this,W,Q)),this},d.prototype.removeListener=function(W,Q){var K,F,Y,m,e;if(y(Q),F=this._events,F===void 0)return this;if(K=F[W],K===void 0)return this;if(K===Q||K.listener===Q)--this._eventsCount===0?this._events=Object.create(null):(delete F[W],F.removeListener&&this.emit("removeListener",W,K.listener||Q));else if(typeof K!="function"){for(Y=-1,m=K.length-1;m>=0;m--)if(K[m]===Q||K[m].listener===Q){e=K[m].listener,Y=m;break}if(Y<0)return this;Y===0?K.shift():R(K,Y),K.length===1&&(F[W]=K[0]),F.removeListener!==void 0&&this.emit("removeListener",W,e||Q)}return this},d.prototype.off=d.prototype.removeListener,d.prototype.removeAllListeners=function(W){var Q,K,F;if(K=this._events,K===void 0)return this;if(K.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):K[W]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete K[W]),this;if(arguments.length===0){var Y=Object.keys(K),m;for(F=0;F<Y.length;++F)m=Y[F],m!=="removeListener"&&this.removeAllListeners(m);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Q=K[W],typeof Q=="function")this.removeListener(W,Q);else if(Q!==void 0)for(F=Q.length-1;F>=0;F--)this.removeListener(W,Q[F]);return this};function x(Z,W,Q){var K=Z._events;if(K===void 0)return[];var F=K[W];return F===void 0?[]:typeof F=="function"?Q?[F.listener||F]:[F]:Q?N(F):I(F,F.length)}d.prototype.listeners=function(W){return x(this,W,!0)},d.prototype.rawListeners=function(W){return x(this,W,!1)},d.listenerCount=function(Z,W){return typeof Z.listenerCount=="function"?Z.listenerCount(W):S.call(Z,W)},d.prototype.listenerCount=S;function S(Z){var W=this._events;if(W!==void 0){var Q=W[Z];if(typeof Q=="function")return 1;if(Q!==void 0)return Q.length}return 0}d.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]};function I(Z,W){for(var Q=new Array(W),K=0;K<W;++K)Q[K]=Z[K];return Q}function R(Z,W){for(;W+1<Z.length;W++)Z[W]=Z[W+1];Z.pop()}function N(Z){for(var W=new Array(Z.length),Q=0;Q<W.length;++Q)W[Q]=Z[Q].listener||Z[Q];return W}function P(Z,W){return new Promise(function(Q,K){function F(m){Z.removeListener(W,Y),K(m)}function Y(){typeof Z.removeListener=="function"&&Z.removeListener("error",F),Q([].slice.call(arguments))}D(Z,W,Y,{once:!0}),W!=="error"&&L(Z,F,{once:!0})})}function L(Z,W,Q){typeof Z.on=="function"&&D(Z,"error",W,Q)}function D(Z,W,Q,K){if(typeof Z.on=="function")K.once?Z.once(W,Q):Z.on(W,Q);else if(typeof Z.addEventListener=="function")Z.addEventListener(W,function F(Y){K.once&&Z.removeEventListener(W,F),Q(Y)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Z)}return Nb}var Fke,Nb,hJ,Cb,zve,Fve,Hve,Kve,jve,Wve,uJ=au(()=>{Fke=me(Me());xe();_e();Nb={},hJ=!1;Cb=Uve();Cb.once;Cb.once=function(i,n){return new Promise((s,c)=>{function a(...v){d!==void 0&&i.removeListener("error",d),s(v)}let d;n!=="error"&&(d=v=>{i.removeListener(name,a),c(v)},i.once("error",d)),i.once(n,a)})};Cb.on=function(i,n){let s=[],c=[],a=null,d=!1,v={async next(){let w=s.shift();if(w)return createIterResult(w,!1);if(a){let b=Promise.reject(a);return a=null,b}return d?createIterResult(void 0,!0):new Promise((b,_)=>c.push({resolve:b,reject:_}))},async return(){i.removeListener(n,y),i.removeListener("error",M),d=!0;for(let w of c)w.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(w){a=w,i.removeListener(n,y),i.removeListener("error",M)},[Symbol.asyncIterator](){return this}};return i.on(n,y),i.on("error",M),v;function y(...w){let b=c.shift();b?b.resolve(createIterResult(w,!1)):s.push(w)}function M(w){d=!0;let b=c.shift();b?b.reject(w):a=w,v.return()}};({EventEmitter:zve,defaultMaxListeners:Fve,init:Hve,listenerCount:Kve,on:jve,once:Wve}=Cb)});var wE={};fv(wE,{EventEmitter:()=>zve,defaultMaxListeners:()=>Fve,init:()=>Hve,listenerCount:()=>Kve,on:()=>jve,once:()=>Wve});var jke,ME=au(()=>{jke=me(Me());xe();_e();uJ()});var _E=St((Vke,lJ)=>{var Jke=me(Me());xe();_e();lJ.exports=(ME(),Lh(wE)).EventEmitter});var xE=St((Qke,cJ)=>{var ePe=me(Me());xe();_e();cJ.exports={}});var gJ=St((iPe,bJ)=>{"use strict";var nPe=me(Me());xe();_e();function dJ(i,n){var s=Object.keys(i);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(i);n&&(c=c.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),s.push.apply(s,c)}return s}function pJ(i){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?dJ(Object(s),!0).forEach(function(c){Zve(i,c,s[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(s)):dJ(Object(s)).forEach(function(c){Object.defineProperty(i,c,Object.getOwnPropertyDescriptor(s,c))})}return i}function Zve(i,n,s){return n=mJ(n),n in i?Object.defineProperty(i,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[n]=s,i}function Gve(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function vJ(i,n){for(var s=0;s<n.length;s++){var c=n[s];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(i,mJ(c.key),c)}}function Vve(i,n,s){return n&&vJ(i.prototype,n),s&&vJ(i,s),Object.defineProperty(i,"prototype",{writable:!1}),i}function mJ(i){var n=Jve(i,"string");return typeof n=="symbol"?n:String(n)}function Jve(i,n){if(typeof i!="object"||i===null)return i;var s=i[Symbol.toPrimitive];if(s!==void 0){var c=s.call(i,n||"default");if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(i)}var Yve=(hl(),Lh(fl)),Lb=Yve.Buffer,Xve=xE(),SE=Xve.inspect,Qve=SE&&SE.custom||"inspect";function e2e(i,n,s){Lb.prototype.copy.call(i,n,s)}bJ.exports=function(){function i(){Gve(this,i),this.head=null,this.tail=null,this.length=0}return Vve(i,[{key:"push",value:function(s){var c={data:s,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length}},{key:"unshift",value:function(s){var c={data:s,next:this.head};this.length===0&&(this.tail=c),this.head=c,++this.length}},{key:"shift",value:function(){if(this.length!==0){var s=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,s}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(s){if(this.length===0)return"";for(var c=this.head,a=""+c.data;c=c.next;)a+=s+c.data;return a}},{key:"concat",value:function(s){if(this.length===0)return Lb.alloc(0);for(var c=Lb.allocUnsafe(s>>>0),a=this.head,d=0;a;)e2e(a.data,c,d),d+=a.data.length,a=a.next;return c}},{key:"consume",value:function(s,c){var a;return s<this.head.data.length?(a=this.head.data.slice(0,s),this.head.data=this.head.data.slice(s)):s===this.head.data.length?a=this.shift():a=c?this._getString(s):this._getBuffer(s),a}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(s){var c=this.head,a=1,d=c.data;for(s-=d.length;c=c.next;){var v=c.data,y=s>v.length?v.length:s;if(y===v.length?d+=v:d+=v.slice(0,s),s-=y,s===0){y===v.length?(++a,c.next?this.head=c.next:this.head=this.tail=null):(this.head=c,c.data=v.slice(y));break}++a}return this.length-=a,d}},{key:"_getBuffer",value:function(s){var c=Lb.allocUnsafe(s),a=this.head,d=1;for(a.data.copy(c),s-=a.data.length;a=a.next;){var v=a.data,y=s>v.length?v.length:s;if(v.copy(c,c.length-s,0,y),s-=y,s===0){y===v.length?(++d,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=v.slice(y));break}++d}return this.length-=d,c}},{key:Qve,value:function(s,c){return SE(this,pJ(pJ({},c),{},{depth:0,customInspect:!1}))}}]),i}()});var AE=St((sPe,wJ)=>{"use strict";var fPe=me(Me());xe();_e();function t2e(i,n){var s=this,c=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return c||a?(n?n(i):i&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ot.default.nextTick(EE,this,i)):ot.default.nextTick(EE,this,i)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(i||null,function(d){!n&&d?s._writableState?s._writableState.errorEmitted?ot.default.nextTick(Db,s):(s._writableState.errorEmitted=!0,ot.default.nextTick(yJ,s,d)):ot.default.nextTick(yJ,s,d):n?(ot.default.nextTick(Db,s),n(d)):ot.default.nextTick(Db,s)}),this)}function yJ(i,n){EE(i,n),Db(i)}function Db(i){i._writableState&&!i._writableState.emitClose||i._readableState&&!i._readableState.emitClose||i.emit("close")}function r2e(){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)}function EE(i,n){i.emit("error",n)}function i2e(i,n){var s=i._readableState,c=i._writableState;s&&s.autoDestroy||c&&c.autoDestroy?i.destroy(n):i.emit("error",n)}wJ.exports={destroy:t2e,undestroy:r2e,errorOrDestroy:i2e}});var Ll=St((lPe,xJ)=>{"use strict";var cPe=me(Me());xe();_e();function n2e(i,n){i.prototype=Object.create(n.prototype),i.prototype.constructor=i,i.__proto__=n}var _J={};function cs(i,n,s){s||(s=Error);function c(d,v,y){return typeof n=="string"?n:n(d,v,y)}var a=function(d){n2e(v,d);function v(y,M,w){return d.call(this,c(y,M,w))||this}return v}(s);a.prototype.name=s.name,a.prototype.code=i,_J[i]=a}function MJ(i,n){if(Array.isArray(i)){var s=i.length;return i=i.map(function(c){return String(c)}),s>2?"one of ".concat(n," ").concat(i.slice(0,s-1).join(", "),", or ")+i[s-1]:s===2?"one of ".concat(n," ").concat(i[0]," or ").concat(i[1]):"of ".concat(n," ").concat(i[0])}else return"of ".concat(n," ").concat(String(i))}function a2e(i,n,s){return i.substr(!s||s<0?0:+s,n.length)===n}function o2e(i,n,s){return(s===void 0||s>i.length)&&(s=i.length),i.substring(s-n.length,s)===n}function s2e(i,n,s){return typeof s!="number"&&(s=0),s+n.length>i.length?!1:i.indexOf(n,s)!==-1}cs("ERR_INVALID_OPT_VALUE",function(i,n){return'The value "'+n+'" is invalid for option "'+i+'"'},TypeError);cs("ERR_INVALID_ARG_TYPE",function(i,n,s){var c;typeof n=="string"&&a2e(n,"not ")?(c="must not be",n=n.replace(/^not /,"")):c="must be";var a;if(o2e(i," argument"))a="The ".concat(i," ").concat(c," ").concat(MJ(n,"type"));else{var d=s2e(i,".")?"property":"argument";a='The "'.concat(i,'" ').concat(d," ").concat(c," ").concat(MJ(n,"type"))}return a+=". Received type ".concat(typeof s),a},TypeError);cs("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");cs("ERR_METHOD_NOT_IMPLEMENTED",function(i){return"The "+i+" method is not implemented"});cs("ERR_STREAM_PREMATURE_CLOSE","Premature close");cs("ERR_STREAM_DESTROYED",function(i){return"Cannot call "+i+" after a stream was destroyed"});cs("ERR_MULTIPLE_CALLBACK","Callback called multiple times");cs("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");cs("ERR_STREAM_WRITE_AFTER_END","write after end");cs("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);cs("ERR_UNKNOWN_ENCODING",function(i){return"Unknown encoding: "+i},TypeError);cs("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");xJ.exports.codes=_J});var BE=St((vPe,SJ)=>{"use strict";var mPe=me(Me());xe();_e();var f2e=Ll().codes.ERR_INVALID_OPT_VALUE;function h2e(i,n,s){return i.highWaterMark!=null?i.highWaterMark:n?i[s]:null}function u2e(i,n,s,c){var a=h2e(n,c,s);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var d=c?s:"highWaterMark";throw new f2e(d,a)}return Math.floor(a)}return i.objectMode?16:16*1024}SJ.exports={getHighWaterMark:u2e}});var AJ=St((yPe,EJ)=>{var wPe=me(Me());xe();_e();EJ.exports=l2e;function l2e(i,n){if(IE("noDeprecation"))return i;var s=!1;function c(){if(!s){if(IE("throwDeprecation"))throw new Error(n);IE("traceDeprecation")?console.trace(n):console.warn(n),s=!0}return i.apply(this,arguments)}return c}function IE(i){try{if(!globalThis.localStorage)return!1}catch{return!1}var n=globalThis.localStorage[i];return n==null?!1:String(n).toLowerCase()==="true"}});var kE=St((xPe,PJ)=>{"use strict";var SPe=me(Me());xe();_e();PJ.exports=Yi;function IJ(i){var n=this;this.next=null,this.entry=null,this.finish=function(){O2e(n,i)}}var Ed;Yi.WritableState=kp;var c2e={deprecate:AJ()},RJ=_E(),qb=(hl(),Lh(fl)).Buffer,d2e=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function p2e(i){return qb.from(i)}function v2e(i){return qb.isBuffer(i)||i instanceof d2e}var TE=AE(),m2e=BE(),b2e=m2e.getHighWaterMark,J0=Ll().codes,g2e=J0.ERR_INVALID_ARG_TYPE,y2e=J0.ERR_METHOD_NOT_IMPLEMENTED,w2e=J0.ERR_MULTIPLE_CALLBACK,M2e=J0.ERR_STREAM_CANNOT_PIPE,_2e=J0.ERR_STREAM_DESTROYED,x2e=J0.ERR_STREAM_NULL_VALUES,S2e=J0.ERR_STREAM_WRITE_AFTER_END,E2e=J0.ERR_UNKNOWN_ENCODING,Ad=TE.errorOrDestroy;Wn()(Yi,RJ);function A2e(){}function kp(i,n,s){Ed=Ed||Dl(),i=i||{},typeof s!="boolean"&&(s=n instanceof Ed),this.objectMode=!!i.objectMode,s&&(this.objectMode=this.objectMode||!!i.writableObjectMode),this.highWaterMark=b2e(this,i,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=i.decodeStrings===!1;this.decodeStrings=!c,this.defaultEncoding=i.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){$2e(n,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=i.emitClose!==!1,this.autoDestroy=!!i.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new IJ(this)}kp.prototype.getBuffer=function(){for(var n=this.bufferedRequest,s=[];n;)s.push(n),n=n.next;return s};(function(){try{Object.defineProperty(kp.prototype,"buffer",{get:c2e.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Ob;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ob=Function.prototype[Symbol.hasInstance],Object.defineProperty(Yi,Symbol.hasInstance,{value:function(n){return Ob.call(this,n)?!0:this!==Yi?!1:n&&n._writableState instanceof kp}})):Ob=function(n){return n instanceof this};function Yi(i){Ed=Ed||Dl();var n=this instanceof Ed;if(!n&&!Ob.call(Yi,this))return new Yi(i);this._writableState=new kp(i,this,n),this.writable=!0,i&&(typeof i.write=="function"&&(this._write=i.write),typeof i.writev=="function"&&(this._writev=i.writev),typeof i.destroy=="function"&&(this._destroy=i.destroy),typeof i.final=="function"&&(this._final=i.final)),RJ.call(this)}Yi.prototype.pipe=function(){Ad(this,new M2e)};function B2e(i,n){var s=new S2e;Ad(i,s),ot.default.nextTick(n,s)}function I2e(i,n,s,c){var a;return s===null?a=new x2e:typeof s!="string"&&!n.objectMode&&(a=new g2e("chunk",["string","Buffer"],s)),a?(Ad(i,a),ot.default.nextTick(c,a),!1):!0}Yi.prototype.write=function(i,n,s){var c=this._writableState,a=!1,d=!c.objectMode&&v2e(i);return d&&!qb.isBuffer(i)&&(i=p2e(i)),typeof n=="function"&&(s=n,n=null),d?n="buffer":n||(n=c.defaultEncoding),typeof s!="function"&&(s=A2e),c.ending?B2e(this,s):(d||I2e(this,c,i,s))&&(c.pendingcb++,a=T2e(this,c,d,i,n,s)),a};Yi.prototype.cork=function(){this._writableState.corked++};Yi.prototype.uncork=function(){var i=this._writableState;i.corked&&(i.corked--,!i.writing&&!i.corked&&!i.bufferProcessing&&i.bufferedRequest&&TJ(this,i))};Yi.prototype.setDefaultEncoding=function(n){if(typeof n=="string"&&(n=n.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((n+"").toLowerCase())>-1))throw new E2e(n);return this._writableState.defaultEncoding=n,this};Object.defineProperty(Yi.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function R2e(i,n,s){return!i.objectMode&&i.decodeStrings!==!1&&typeof n=="string"&&(n=qb.from(n,s)),n}Object.defineProperty(Yi.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function T2e(i,n,s,c,a,d){if(!s){var v=R2e(n,c,a);c!==v&&(s=!0,a="buffer",c=v)}var y=n.objectMode?1:c.length;n.length+=y;var M=n.length<n.highWaterMark;if(M||(n.needDrain=!0),n.writing||n.corked){var w=n.lastBufferedRequest;n.lastBufferedRequest={chunk:c,encoding:a,isBuf:s,callback:d,next:null},w?w.next=n.lastBufferedRequest:n.bufferedRequest=n.lastBufferedRequest,n.bufferedRequestCount+=1}else RE(i,n,!1,y,c,a,d);return M}function RE(i,n,s,c,a,d,v){n.writelen=c,n.writecb=v,n.writing=!0,n.sync=!0,n.destroyed?n.onwrite(new _2e("write")):s?i._writev(a,n.onwrite):i._write(a,d,n.onwrite),n.sync=!1}function k2e(i,n,s,c,a){--n.pendingcb,s?(ot.default.nextTick(a,c),ot.default.nextTick(Tp,i,n),i._writableState.errorEmitted=!0,Ad(i,c)):(a(c),i._writableState.errorEmitted=!0,Ad(i,c),Tp(i,n))}function P2e(i){i.writing=!1,i.writecb=null,i.length-=i.writelen,i.writelen=0}function $2e(i,n){var s=i._writableState,c=s.sync,a=s.writecb;if(typeof a!="function")throw new w2e;if(P2e(s),n)k2e(i,s,c,n,a);else{var d=kJ(s)||i.destroyed;!d&&!s.corked&&!s.bufferProcessing&&s.bufferedRequest&&TJ(i,s),c?ot.default.nextTick(BJ,i,s,d,a):BJ(i,s,d,a)}}function BJ(i,n,s,c){s||N2e(i,n),n.pendingcb--,c(),Tp(i,n)}function N2e(i,n){n.length===0&&n.needDrain&&(n.needDrain=!1,i.emit("drain"))}function TJ(i,n){n.bufferProcessing=!0;var s=n.bufferedRequest;if(i._writev&&s&&s.next){var c=n.bufferedRequestCount,a=new Array(c),d=n.corkedRequestsFree;d.entry=s;for(var v=0,y=!0;s;)a[v]=s,s.isBuf||(y=!1),s=s.next,v+=1;a.allBuffers=y,RE(i,n,!0,n.length,a,"",d.finish),n.pendingcb++,n.lastBufferedRequest=null,d.next?(n.corkedRequestsFree=d.next,d.next=null):n.corkedRequestsFree=new IJ(n),n.bufferedRequestCount=0}else{for(;s;){var M=s.chunk,w=s.encoding,b=s.callback,_=n.objectMode?1:M.length;if(RE(i,n,!1,_,M,w,b),s=s.next,n.bufferedRequestCount--,n.writing)break}s===null&&(n.lastBufferedRequest=null)}n.bufferedRequest=s,n.bufferProcessing=!1}Yi.prototype._write=function(i,n,s){s(new y2e("_write()"))};Yi.prototype._writev=null;Yi.prototype.end=function(i,n,s){var c=this._writableState;return typeof i=="function"?(s=i,i=null,n=null):typeof n=="function"&&(s=n,n=null),i!=null&&this.write(i,n),c.corked&&(c.corked=1,this.uncork()),c.ending||D2e(this,c,s),this};Object.defineProperty(Yi.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function kJ(i){return i.ending&&i.length===0&&i.bufferedRequest===null&&!i.finished&&!i.writing}function C2e(i,n){i._final(function(s){n.pendingcb--,s&&Ad(i,s),n.prefinished=!0,i.emit("prefinish"),Tp(i,n)})}function L2e(i,n){!n.prefinished&&!n.finalCalled&&(typeof i._final=="function"&&!n.destroyed?(n.pendingcb++,n.finalCalled=!0,ot.default.nextTick(C2e,i,n)):(n.prefinished=!0,i.emit("prefinish")))}function Tp(i,n){var s=kJ(n);if(s&&(L2e(i,n),n.pendingcb===0&&(n.finished=!0,i.emit("finish"),n.autoDestroy))){var c=i._readableState;(!c||c.autoDestroy&&c.endEmitted)&&i.destroy()}return s}function D2e(i,n,s){n.ending=!0,Tp(i,n),s&&(n.finished?ot.default.nextTick(s):i.once("finish",s)),n.ended=!0,i.writable=!1}function O2e(i,n,s){var c=i.entry;for(i.entry=null;c;){var a=c.callback;n.pendingcb--,a(s),c=c.next}n.corkedRequestsFree.next=i}Object.defineProperty(Yi.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(n){this._writableState&&(this._writableState.destroyed=n)}});Yi.prototype.destroy=TE.destroy;Yi.prototype._undestroy=TE.undestroy;Yi.prototype._destroy=function(i,n){n(i)}});var Dl=St((BPe,NJ)=>{"use strict";var IPe=me(Me());xe();_e();var q2e=Object.keys||function(i){var n=[];for(var s in i)n.push(s);return n};NJ.exports=Uf;var $J=NE(),$E=kE();Wn()(Uf,$J);for(PE=q2e($E.prototype),Ub=0;Ub<PE.length;Ub++)zb=PE[Ub],Uf.prototype[zb]||(Uf.prototype[zb]=$E.prototype[zb]);var PE,zb,Ub;function Uf(i){if(!(this instanceof Uf))return new Uf(i);$J.call(this,i),$E.call(this,i),this.allowHalfOpen=!0,i&&(i.readable===!1&&(this.readable=!1),i.writable===!1&&(this.writable=!1),i.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",U2e)))}Object.defineProperty(Uf.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Uf.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Uf.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function U2e(){this._writableState.ended||ot.default.nextTick(z2e,this)}function z2e(i){i.end()}Object.defineProperty(Uf.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(n){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=n,this._writableState.destroyed=n)}})});var DJ=St((CE,LJ)=>{var kPe=me(Me());xe();_e();var Fb=(hl(),Lh(fl)),Rh=Fb.Buffer;function CJ(i,n){for(var s in i)n[s]=i[s]}Rh.from&&Rh.alloc&&Rh.allocUnsafe&&Rh.allocUnsafeSlow?LJ.exports=Fb:(CJ(Fb,CE),CE.Buffer=Bd);function Bd(i,n,s){return Rh(i,n,s)}CJ(Rh,Bd);Bd.from=function(i,n,s){if(typeof i=="number")throw new TypeError("Argument must not be a number");return Rh(i,n,s)};Bd.alloc=function(i,n,s){if(typeof i!="number")throw new TypeError("Argument must be a number");var c=Rh(i);return n!==void 0?typeof s=="string"?c.fill(n,s):c.fill(n):c.fill(0),c};Bd.allocUnsafe=function(i){if(typeof i!="number")throw new TypeError("Argument must be a number");return Rh(i)};Bd.allocUnsafeSlow=function(i){if(typeof i!="number")throw new TypeError("Argument must be a number");return Fb.SlowBuffer(i)}});var OE=St(qJ=>{"use strict";var CPe=me(Me());xe();_e();var DE=DJ().Buffer,OJ=DE.isEncoding||function(i){switch(i=""+i,i&&i.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 F2e(i){if(!i)return"utf8";for(var n;;)switch(i){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 i;default:if(n)return;i=(""+i).toLowerCase(),n=!0}}function H2e(i){var n=F2e(i);if(typeof n!="string"&&(DE.isEncoding===OJ||!OJ(i)))throw new Error("Unknown encoding: "+i);return n||i}qJ.StringDecoder=Pp;function Pp(i){this.encoding=H2e(i);var n;switch(this.encoding){case"utf16le":this.text=V2e,this.end=J2e,n=4;break;case"utf8":this.fillLast=W2e,n=4;break;case"base64":this.text=Y2e,this.end=X2e,n=3;break;default:this.write=Q2e,this.end=e6e;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=DE.allocUnsafe(n)}Pp.prototype.write=function(i){if(i.length===0)return"";var n,s;if(this.lastNeed){if(n=this.fillLast(i),n===void 0)return"";s=this.lastNeed,this.lastNeed=0}else s=0;return s<i.length?n?n+this.text(i,s):this.text(i,s):n||""};Pp.prototype.end=G2e;Pp.prototype.text=Z2e;Pp.prototype.fillLast=function(i){if(this.lastNeed<=i.length)return i.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);i.copy(this.lastChar,this.lastTotal-this.lastNeed,0,i.length),this.lastNeed-=i.length};function LE(i){return i<=127?0:i>>5===6?2:i>>4===14?3:i>>3===30?4:i>>6===2?-1:-2}function K2e(i,n,s){var c=n.length-1;if(c<s)return 0;var a=LE(n[c]);return a>=0?(a>0&&(i.lastNeed=a-1),a):--c<s||a===-2?0:(a=LE(n[c]),a>=0?(a>0&&(i.lastNeed=a-2),a):--c<s||a===-2?0:(a=LE(n[c]),a>=0?(a>0&&(a===2?a=0:i.lastNeed=a-3),a):0))}function j2e(i,n,s){if((n[0]&192)!==128)return i.lastNeed=0,"\uFFFD";if(i.lastNeed>1&&n.length>1){if((n[1]&192)!==128)return i.lastNeed=1,"\uFFFD";if(i.lastNeed>2&&n.length>2&&(n[2]&192)!==128)return i.lastNeed=2,"\uFFFD"}}function W2e(i){var n=this.lastTotal-this.lastNeed,s=j2e(this,i,n);if(s!==void 0)return s;if(this.lastNeed<=i.length)return i.copy(this.lastChar,n,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);i.copy(this.lastChar,n,0,i.length),this.lastNeed-=i.length}function Z2e(i,n){var s=K2e(this,i,n);if(!this.lastNeed)return i.toString("utf8",n);this.lastTotal=s;var c=i.length-(s-this.lastNeed);return i.copy(this.lastChar,0,c),i.toString("utf8",n,c)}function G2e(i){var n=i&&i.length?this.write(i):"";return this.lastNeed?n+"\uFFFD":n}function V2e(i,n){if((i.length-n)%2===0){var s=i.toString("utf16le",n);if(s){var c=s.charCodeAt(s.length-1);if(c>=55296&&c<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=i[i.length-2],this.lastChar[1]=i[i.length-1],s.slice(0,-1)}return s}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=i[i.length-1],i.toString("utf16le",n,i.length-1)}function J2e(i){var n=i&&i.length?this.write(i):"";if(this.lastNeed){var s=this.lastTotal-this.lastNeed;return n+this.lastChar.toString("utf16le",0,s)}return n}function Y2e(i,n){var s=(i.length-n)%3;return s===0?i.toString("base64",n):(this.lastNeed=3-s,this.lastTotal=3,s===1?this.lastChar[0]=i[i.length-1]:(this.lastChar[0]=i[i.length-2],this.lastChar[1]=i[i.length-1]),i.toString("base64",n,i.length-s))}function X2e(i){var n=i&&i.length?this.write(i):"";return this.lastNeed?n+this.lastChar.toString("base64",0,3-this.lastNeed):n}function Q2e(i){return i.toString(this.encoding)}function e6e(i){return i&&i.length?this.write(i):""}});var Hb=St((OPe,FJ)=>{"use strict";var qPe=me(Me());xe();_e();var UJ=Ll().codes.ERR_STREAM_PREMATURE_CLOSE;function t6e(i){var n=!1;return function(){if(!n){n=!0;for(var s=arguments.length,c=new Array(s),a=0;a<s;a++)c[a]=arguments[a];i.apply(this,c)}}}function r6e(){}function i6e(i){return i.setHeader&&typeof i.abort=="function"}function zJ(i,n,s){if(typeof n=="function")return zJ(i,null,n);n||(n={}),s=t6e(s||r6e);var c=n.readable||n.readable!==!1&&i.readable,a=n.writable||n.writable!==!1&&i.writable,d=function(){i.writable||y()},v=i._writableState&&i._writableState.finished,y=function(){a=!1,v=!0,c||s.call(i)},M=i._readableState&&i._readableState.endEmitted,w=function(){c=!1,M=!0,a||s.call(i)},b=function(I){s.call(i,I)},_=function(){var I;if(c&&!M)return(!i._readableState||!i._readableState.ended)&&(I=new UJ),s.call(i,I);if(a&&!v)return(!i._writableState||!i._writableState.ended)&&(I=new UJ),s.call(i,I)},x=function(){i.req.on("finish",y)};return i6e(i)?(i.on("complete",y),i.on("abort",_),i.req?x():i.on("request",x)):a&&!i._writableState&&(i.on("end",d),i.on("close",d)),i.on("end",w),i.on("finish",y),n.error!==!1&&i.on("error",b),i.on("close",_),function(){i.removeListener("complete",y),i.removeListener("abort",_),i.removeListener("request",x),i.req&&i.req.removeListener("finish",y),i.removeListener("end",d),i.removeListener("close",d),i.removeListener("finish",y),i.removeListener("end",w),i.removeListener("error",b),i.removeListener("close",_)}}FJ.exports=zJ});var KJ=St((FPe,HJ)=>{"use strict";var HPe=me(Me());xe();_e();var Kb;function Y0(i,n,s){return n=n6e(n),n in i?Object.defineProperty(i,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[n]=s,i}function n6e(i){var n=a6e(i,"string");return typeof n=="symbol"?n:String(n)}function a6e(i,n){if(typeof i!="object"||i===null)return i;var s=i[Symbol.toPrimitive];if(s!==void 0){var c=s.call(i,n||"default");if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(i)}var o6e=Hb(),X0=Symbol("lastResolve"),Ol=Symbol("lastReject"),$p=Symbol("error"),jb=Symbol("ended"),ql=Symbol("lastPromise"),qE=Symbol("handlePromise"),Ul=Symbol("stream");function Q0(i,n){return{value:i,done:n}}function s6e(i){var n=i[X0];if(n!==null){var s=i[Ul].read();s!==null&&(i[ql]=null,i[X0]=null,i[Ol]=null,n(Q0(s,!1)))}}function f6e(i){ot.default.nextTick(s6e,i)}function h6e(i,n){return function(s,c){i.then(function(){if(n[jb]){s(Q0(void 0,!0));return}n[qE](s,c)},c)}}var u6e=Object.getPrototypeOf(function(){}),l6e=Object.setPrototypeOf((Kb={get stream(){return this[Ul]},next:function(){var n=this,s=this[$p];if(s!==null)return Promise.reject(s);if(this[jb])return Promise.resolve(Q0(void 0,!0));if(this[Ul].destroyed)return new Promise(function(v,y){ot.default.nextTick(function(){n[$p]?y(n[$p]):v(Q0(void 0,!0))})});var c=this[ql],a;if(c)a=new Promise(h6e(c,this));else{var d=this[Ul].read();if(d!==null)return Promise.resolve(Q0(d,!1));a=new Promise(this[qE])}return this[ql]=a,a}},Y0(Kb,Symbol.asyncIterator,function(){return this}),Y0(Kb,"return",function(){var n=this;return new Promise(function(s,c){n[Ul].destroy(null,function(a){if(a){c(a);return}s(Q0(void 0,!0))})})}),Kb),u6e),c6e=function(n){var s,c=Object.create(l6e,(s={},Y0(s,Ul,{value:n,writable:!0}),Y0(s,X0,{value:null,writable:!0}),Y0(s,Ol,{value:null,writable:!0}),Y0(s,$p,{value:null,writable:!0}),Y0(s,jb,{value:n._readableState.endEmitted,writable:!0}),Y0(s,qE,{value:function(d,v){var y=c[Ul].read();y?(c[ql]=null,c[X0]=null,c[Ol]=null,d(Q0(y,!1))):(c[X0]=d,c[Ol]=v)},writable:!0}),s));return c[ql]=null,o6e(n,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var d=c[Ol];d!==null&&(c[ql]=null,c[X0]=null,c[Ol]=null,d(a)),c[$p]=a;return}var v=c[X0];v!==null&&(c[ql]=null,c[X0]=null,c[Ol]=null,v(Q0(void 0,!0))),c[jb]=!0}),n.on("readable",f6e.bind(null,c)),c};HJ.exports=c6e});var WJ=St((WPe,jJ)=>{var ZPe=me(Me());xe();_e();jJ.exports=function(){throw new Error("Readable.from is not available in the browser")}});var NE=St((YPe,rY)=>{"use strict";var XPe=me(Me());xe();_e();rY.exports=Kr;var Id;Kr.ReadableState=JJ;var JPe=(ME(),Lh(wE)).EventEmitter,VJ=function(n,s){return n.listeners(s).length},Cp=_E(),Wb=(hl(),Lh(fl)).Buffer,d6e=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function p6e(i){return Wb.from(i)}function v6e(i){return Wb.isBuffer(i)||i instanceof d6e}var UE=xE(),Ar;UE&&UE.debuglog?Ar=UE.debuglog("stream"):Ar=function(){};var m6e=gJ(),ZE=AE(),b6e=BE(),g6e=b6e.getHighWaterMark,Zb=Ll().codes,y6e=Zb.ERR_INVALID_ARG_TYPE,w6e=Zb.ERR_STREAM_PUSH_AFTER_EOF,M6e=Zb.ERR_METHOD_NOT_IMPLEMENTED,_6e=Zb.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Rd,zE,FE;Wn()(Kr,Cp);var Np=ZE.errorOrDestroy,HE=["error","close","destroy","pause","resume"];function x6e(i,n,s){if(typeof i.prependListener=="function")return i.prependListener(n,s);!i._events||!i._events[n]?i.on(n,s):Array.isArray(i._events[n])?i._events[n].unshift(s):i._events[n]=[s,i._events[n]]}function JJ(i,n,s){Id=Id||Dl(),i=i||{},typeof s!="boolean"&&(s=n instanceof Id),this.objectMode=!!i.objectMode,s&&(this.objectMode=this.objectMode||!!i.readableObjectMode),this.highWaterMark=g6e(this,i,"readableHighWaterMark",s),this.buffer=new m6e,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=i.emitClose!==!1,this.autoDestroy=!!i.autoDestroy,this.destroyed=!1,this.defaultEncoding=i.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,i.encoding&&(Rd||(Rd=OE().StringDecoder),this.decoder=new Rd(i.encoding),this.encoding=i.encoding)}function Kr(i){if(Id=Id||Dl(),!(this instanceof Kr))return new Kr(i);var n=this instanceof Id;this._readableState=new JJ(i,this,n),this.readable=!0,i&&(typeof i.read=="function"&&(this._read=i.read),typeof i.destroy=="function"&&(this._destroy=i.destroy)),Cp.call(this)}Object.defineProperty(Kr.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(n){this._readableState&&(this._readableState.destroyed=n)}});Kr.prototype.destroy=ZE.destroy;Kr.prototype._undestroy=ZE.undestroy;Kr.prototype._destroy=function(i,n){n(i)};Kr.prototype.push=function(i,n){var s=this._readableState,c;return s.objectMode?c=!0:typeof i=="string"&&(n=n||s.defaultEncoding,n!==s.encoding&&(i=Wb.from(i,n),n=""),c=!0),YJ(this,i,n,!1,c)};Kr.prototype.unshift=function(i){return YJ(this,i,null,!0,!1)};function YJ(i,n,s,c,a){Ar("readableAddChunk",n);var d=i._readableState;if(n===null)d.reading=!1,A6e(i,d);else{var v;if(a||(v=S6e(d,n)),v)Np(i,v);else if(d.objectMode||n&&n.length>0)if(typeof n!="string"&&!d.objectMode&&Object.getPrototypeOf(n)!==Wb.prototype&&(n=p6e(n)),c)d.endEmitted?Np(i,new _6e):KE(i,d,n,!0);else if(d.ended)Np(i,new w6e);else{if(d.destroyed)return!1;d.reading=!1,d.decoder&&!s?(n=d.decoder.write(n),d.objectMode||n.length!==0?KE(i,d,n,!1):WE(i,d)):KE(i,d,n,!1)}else c||(d.reading=!1,WE(i,d))}return!d.ended&&(d.length<d.highWaterMark||d.length===0)}function KE(i,n,s,c){n.flowing&&n.length===0&&!n.sync?(n.awaitDrain=0,i.emit("data",s)):(n.length+=n.objectMode?1:s.length,c?n.buffer.unshift(s):n.buffer.push(s),n.needReadable&&Gb(i)),WE(i,n)}function S6e(i,n){var s;return!v6e(n)&&typeof n!="string"&&n!==void 0&&!i.objectMode&&(s=new y6e("chunk",["string","Buffer","Uint8Array"],n)),s}Kr.prototype.isPaused=function(){return this._readableState.flowing===!1};Kr.prototype.setEncoding=function(i){Rd||(Rd=OE().StringDecoder);var n=new Rd(i);this._readableState.decoder=n,this._readableState.encoding=this._readableState.decoder.encoding;for(var s=this._readableState.buffer.head,c="";s!==null;)c+=n.write(s.data),s=s.next;return this._readableState.buffer.clear(),c!==""&&this._readableState.buffer.push(c),this._readableState.length=c.length,this};var ZJ=1073741824;function E6e(i){return i>=ZJ?i=ZJ:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),i}function GJ(i,n){return i<=0||n.length===0&&n.ended?0:n.objectMode?1:i!==i?n.flowing&&n.length?n.buffer.head.data.length:n.length:(i>n.highWaterMark&&(n.highWaterMark=E6e(i)),i<=n.length?i:n.ended?n.length:(n.needReadable=!0,0))}Kr.prototype.read=function(i){Ar("read",i),i=parseInt(i,10);var n=this._readableState,s=i;if(i!==0&&(n.emittedReadable=!1),i===0&&n.needReadable&&((n.highWaterMark!==0?n.length>=n.highWaterMark:n.length>0)||n.ended))return Ar("read: emitReadable",n.length,n.ended),n.length===0&&n.ended?jE(this):Gb(this),null;if(i=GJ(i,n),i===0&&n.ended)return n.length===0&&jE(this),null;var c=n.needReadable;Ar("need readable",c),(n.length===0||n.length-i<n.highWaterMark)&&(c=!0,Ar("length less than watermark",c)),n.ended||n.reading?(c=!1,Ar("reading or ended",c)):c&&(Ar("do read"),n.reading=!0,n.sync=!0,n.length===0&&(n.needReadable=!0),this._read(n.highWaterMark),n.sync=!1,n.reading||(i=GJ(s,n)));var a;return i>0?a=eY(i,n):a=null,a===null?(n.needReadable=n.length<=n.highWaterMark,i=0):(n.length-=i,n.awaitDrain=0),n.length===0&&(n.ended||(n.needReadable=!0),s!==i&&n.ended&&jE(this)),a!==null&&this.emit("data",a),a};function A6e(i,n){if(Ar("onEofChunk"),!n.ended){if(n.decoder){var s=n.decoder.end();s&&s.length&&(n.buffer.push(s),n.length+=n.objectMode?1:s.length)}n.ended=!0,n.sync?Gb(i):(n.needReadable=!1,n.emittedReadable||(n.emittedReadable=!0,XJ(i)))}}function Gb(i){var n=i._readableState;Ar("emitReadable",n.needReadable,n.emittedReadable),n.needReadable=!1,n.emittedReadable||(Ar("emitReadable",n.flowing),n.emittedReadable=!0,ot.default.nextTick(XJ,i))}function XJ(i){var n=i._readableState;Ar("emitReadable_",n.destroyed,n.length,n.ended),!n.destroyed&&(n.length||n.ended)&&(i.emit("readable"),n.emittedReadable=!1),n.needReadable=!n.flowing&&!n.ended&&n.length<=n.highWaterMark,GE(i)}function WE(i,n){n.readingMore||(n.readingMore=!0,ot.default.nextTick(B6e,i,n))}function B6e(i,n){for(;!n.reading&&!n.ended&&(n.length<n.highWaterMark||n.flowing&&n.length===0);){var s=n.length;if(Ar("maybeReadMore read 0"),i.read(0),s===n.length)break}n.readingMore=!1}Kr.prototype._read=function(i){Np(this,new M6e("_read()"))};Kr.prototype.pipe=function(i,n){var s=this,c=this._readableState;switch(c.pipesCount){case 0:c.pipes=i;break;case 1:c.pipes=[c.pipes,i];break;default:c.pipes.push(i);break}c.pipesCount+=1,Ar("pipe count=%d opts=%j",c.pipesCount,n);var a=(!n||n.end!==!1)&&i!==ot.default.stdout&&i!==ot.default.stderr,d=a?y:R;c.endEmitted?ot.default.nextTick(d):s.once("end",d),i.on("unpipe",v);function v(N,P){Ar("onunpipe"),N===s&&P&&P.hasUnpiped===!1&&(P.hasUnpiped=!0,b())}function y(){Ar("onend"),i.end()}var M=I6e(s);i.on("drain",M);var w=!1;function b(){Ar("cleanup"),i.removeListener("close",S),i.removeListener("finish",I),i.removeListener("drain",M),i.removeListener("error",x),i.removeListener("unpipe",v),s.removeListener("end",y),s.removeListener("end",R),s.removeListener("data",_),w=!0,c.awaitDrain&&(!i._writableState||i._writableState.needDrain)&&M()}s.on("data",_);function _(N){Ar("ondata");var P=i.write(N);Ar("dest.write",P),P===!1&&((c.pipesCount===1&&c.pipes===i||c.pipesCount>1&&tY(c.pipes,i)!==-1)&&!w&&(Ar("false write response, pause",c.awaitDrain),c.awaitDrain++),s.pause())}function x(N){Ar("onerror",N),R(),i.removeListener("error",x),VJ(i,"error")===0&&Np(i,N)}x6e(i,"error",x);function S(){i.removeListener("finish",I),R()}i.once("close",S);function I(){Ar("onfinish"),i.removeListener("close",S),R()}i.once("finish",I);function R(){Ar("unpipe"),s.unpipe(i)}return i.emit("pipe",s),c.flowing||(Ar("pipe resume"),s.resume()),i};function I6e(i){return function(){var s=i._readableState;Ar("pipeOnDrain",s.awaitDrain),s.awaitDrain&&s.awaitDrain--,s.awaitDrain===0&&VJ(i,"data")&&(s.flowing=!0,GE(i))}}Kr.prototype.unpipe=function(i){var n=this._readableState,s={hasUnpiped:!1};if(n.pipesCount===0)return this;if(n.pipesCount===1)return i&&i!==n.pipes?this:(i||(i=n.pipes),n.pipes=null,n.pipesCount=0,n.flowing=!1,i&&i.emit("unpipe",this,s),this);if(!i){var c=n.pipes,a=n.pipesCount;n.pipes=null,n.pipesCount=0,n.flowing=!1;for(var d=0;d<a;d++)c[d].emit("unpipe",this,{hasUnpiped:!1});return this}var v=tY(n.pipes,i);return v===-1?this:(n.pipes.splice(v,1),n.pipesCount-=1,n.pipesCount===1&&(n.pipes=n.pipes[0]),i.emit("unpipe",this,s),this)};Kr.prototype.on=function(i,n){var s=Cp.prototype.on.call(this,i,n),c=this._readableState;return i==="data"?(c.readableListening=this.listenerCount("readable")>0,c.flowing!==!1&&this.resume()):i==="readable"&&!c.endEmitted&&!c.readableListening&&(c.readableListening=c.needReadable=!0,c.flowing=!1,c.emittedReadable=!1,Ar("on readable",c.length,c.reading),c.length?Gb(this):c.reading||ot.default.nextTick(R6e,this)),s};Kr.prototype.addListener=Kr.prototype.on;Kr.prototype.removeListener=function(i,n){var s=Cp.prototype.removeListener.call(this,i,n);return i==="readable"&&ot.default.nextTick(QJ,this),s};Kr.prototype.removeAllListeners=function(i){var n=Cp.prototype.removeAllListeners.apply(this,arguments);return(i==="readable"||i===void 0)&&ot.default.nextTick(QJ,this),n};function QJ(i){var n=i._readableState;n.readableListening=i.listenerCount("readable")>0,n.resumeScheduled&&!n.paused?n.flowing=!0:i.listenerCount("data")>0&&i.resume()}function R6e(i){Ar("readable nexttick read 0"),i.read(0)}Kr.prototype.resume=function(){var i=this._readableState;return i.flowing||(Ar("resume"),i.flowing=!i.readableListening,T6e(this,i)),i.paused=!1,this};function T6e(i,n){n.resumeScheduled||(n.resumeScheduled=!0,ot.default.nextTick(k6e,i,n))}function k6e(i,n){Ar("resume",n.reading),n.reading||i.read(0),n.resumeScheduled=!1,i.emit("resume"),GE(i),n.flowing&&!n.reading&&i.read(0)}Kr.prototype.pause=function(){return Ar("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Ar("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function GE(i){var n=i._readableState;for(Ar("flow",n.flowing);n.flowing&&i.read()!==null;);}Kr.prototype.wrap=function(i){var n=this,s=this._readableState,c=!1;i.on("end",function(){if(Ar("wrapped end"),s.decoder&&!s.ended){var v=s.decoder.end();v&&v.length&&n.push(v)}n.push(null)}),i.on("data",function(v){if(Ar("wrapped data"),s.decoder&&(v=s.decoder.write(v)),!(s.objectMode&&v==null)&&!(!s.objectMode&&(!v||!v.length))){var y=n.push(v);y||(c=!0,i.pause())}});for(var a in i)this[a]===void 0&&typeof i[a]=="function"&&(this[a]=function(y){return function(){return i[y].apply(i,arguments)}}(a));for(var d=0;d<HE.length;d++)i.on(HE[d],this.emit.bind(this,HE[d]));return this._read=function(v){Ar("wrapped _read",v),c&&(c=!1,i.resume())},this};typeof Symbol=="function"&&(Kr.prototype[Symbol.asyncIterator]=function(){return zE===void 0&&(zE=KJ()),zE(this)});Object.defineProperty(Kr.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(Kr.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(Kr.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(n){this._readableState&&(this._readableState.flowing=n)}});Kr._fromList=eY;Object.defineProperty(Kr.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function eY(i,n){if(n.length===0)return null;var s;return n.objectMode?s=n.buffer.shift():!i||i>=n.length?(n.decoder?s=n.buffer.join(""):n.buffer.length===1?s=n.buffer.first():s=n.buffer.concat(n.length),n.buffer.clear()):s=n.buffer.consume(i,n.decoder),s}function jE(i){var n=i._readableState;Ar("endReadable",n.endEmitted),n.endEmitted||(n.ended=!0,ot.default.nextTick(P6e,n,i))}function P6e(i,n){if(Ar("endReadableNT",i.endEmitted,i.length),!i.endEmitted&&i.length===0&&(i.endEmitted=!0,n.readable=!1,n.emit("end"),i.autoDestroy)){var s=n._writableState;(!s||s.autoDestroy&&s.finished)&&n.destroy()}}typeof Symbol=="function"&&(Kr.from=function(i,n){return FE===void 0&&(FE=WJ()),FE(Kr,i,n)});function tY(i,n){for(var s=0,c=i.length;s<c;s++)if(i[s]===n)return s;return-1}});var VE=St((t$e,nY)=>{"use strict";var r$e=me(Me());xe();_e();nY.exports=Th;var Vb=Ll().codes,$6e=Vb.ERR_METHOD_NOT_IMPLEMENTED,N6e=Vb.ERR_MULTIPLE_CALLBACK,C6e=Vb.ERR_TRANSFORM_ALREADY_TRANSFORMING,L6e=Vb.ERR_TRANSFORM_WITH_LENGTH_0,Jb=Dl();Wn()(Th,Jb);function D6e(i,n){var s=this._transformState;s.transforming=!1;var c=s.writecb;if(c===null)return this.emit("error",new N6e);s.writechunk=null,s.writecb=null,n!=null&&this.push(n),c(i);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function Th(i){if(!(this instanceof Th))return new Th(i);Jb.call(this,i),this._transformState={afterTransform:D6e.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,i&&(typeof i.transform=="function"&&(this._transform=i.transform),typeof i.flush=="function"&&(this._flush=i.flush)),this.on("prefinish",O6e)}function O6e(){var i=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(n,s){iY(i,n,s)}):iY(this,null,null)}Th.prototype.push=function(i,n){return this._transformState.needTransform=!1,Jb.prototype.push.call(this,i,n)};Th.prototype._transform=function(i,n,s){s(new $6e("_transform()"))};Th.prototype._write=function(i,n,s){var c=this._transformState;if(c.writecb=s,c.writechunk=i,c.writeencoding=n,!c.transforming){var a=this._readableState;(c.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}};Th.prototype._read=function(i){var n=this._transformState;n.writechunk!==null&&!n.transforming?(n.transforming=!0,this._transform(n.writechunk,n.writeencoding,n.afterTransform)):n.needTransform=!0};Th.prototype._destroy=function(i,n){Jb.prototype._destroy.call(this,i,function(s){n(s)})};function iY(i,n,s){if(n)return i.emit("error",n);if(s!=null&&i.push(s),i._writableState.length)throw new L6e;if(i._transformState.transforming)throw new C6e;return i.push(null)}});var sY=St((a$e,oY)=>{"use strict";var o$e=me(Me());xe();_e();oY.exports=Lp;var aY=VE();Wn()(Lp,aY);function Lp(i){if(!(this instanceof Lp))return new Lp(i);aY.call(this,i)}Lp.prototype._transform=function(i,n,s){s(null,i)}});var cY=St((h$e,lY)=>{"use strict";var u$e=me(Me());xe();_e();var JE;function q6e(i){var n=!1;return function(){n||(n=!0,i.apply(void 0,arguments))}}var uY=Ll().codes,U6e=uY.ERR_MISSING_ARGS,z6e=uY.ERR_STREAM_DESTROYED;function fY(i){if(i)throw i}function F6e(i){return i.setHeader&&typeof i.abort=="function"}function H6e(i,n,s,c){c=q6e(c);var a=!1;i.on("close",function(){a=!0}),JE===void 0&&(JE=Hb()),JE(i,{readable:n,writable:s},function(v){if(v)return c(v);a=!0,c()});var d=!1;return function(v){if(!a&&!d){if(d=!0,F6e(i))return i.abort();if(typeof i.destroy=="function")return i.destroy();c(v||new z6e("pipe"))}}}function hY(i){i()}function K6e(i,n){return i.pipe(n)}function j6e(i){return!i.length||typeof i[i.length-1]!="function"?fY:i.pop()}function W6e(){for(var i=arguments.length,n=new Array(i),s=0;s<i;s++)n[s]=arguments[s];var c=j6e(n);if(Array.isArray(n[0])&&(n=n[0]),n.length<2)throw new U6e("streams");var a,d=n.map(function(v,y){var M=y<n.length-1,w=y>0;return H6e(v,M,w,function(b){a||(a=b),b&&d.forEach(hY),!M&&(d.forEach(hY),c(a))})});return n.reduce(K6e)}lY.exports=W6e});var YE=St((ds,dY)=>{var d$e=me(Me());xe();_e();ds=dY.exports=NE();ds.Stream=ds;ds.Readable=ds;ds.Writable=kE();ds.Duplex=Dl();ds.Transform=VE();ds.PassThrough=sY();ds.finished=Hb();ds.pipeline=cY()});var mY=St((m$e,vY)=>{var b$e=me(Me());xe();_e();var{Transform:Z6e}=YE();vY.exports=i=>class pY extends Z6e{constructor(s,c,a,d,v){super(v),this._rate=s,this._capacity=c,this._delimitedSuffix=a,this._hashBitLength=d,this._options=v,this._state=new i,this._state.initialize(s,c),this._finalized=!1}_transform(s,c,a){let d=null;try{this.update(s,c)}catch(v){d=v}a(d)}_flush(s){let c=null;try{this.push(this.digest())}catch(a){c=a}s(c)}update(s,c){if(!at.isBuffer(s)&&typeof s!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return at.isBuffer(s)||(s=at.from(s,c)),this._state.absorb(s),this}digest(s){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let c=this._state.squeeze(this._hashBitLength/8);return s!==void 0&&(c=c.toString(s)),this._resetState(),c}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let s=new pY(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(s._state),s._finalized=this._finalized,s}}});var yY=St((w$e,gY)=>{var M$e=me(Me());xe();_e();var{Transform:G6e}=YE();gY.exports=i=>class bY extends G6e{constructor(s,c,a,d){super(d),this._rate=s,this._capacity=c,this._delimitedSuffix=a,this._options=d,this._state=new i,this._state.initialize(s,c),this._finalized=!1}_transform(s,c,a){let d=null;try{this.update(s,c)}catch(v){d=v}a(d)}_flush(){}_read(s){this.push(this.squeeze(s))}update(s,c){if(!at.isBuffer(s)&&typeof s!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return at.isBuffer(s)||(s=at.from(s,c)),this._state.absorb(s),this}squeeze(s,c){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let a=this._state.squeeze(s);return c!==void 0&&(a=a.toString(c)),a}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let s=new bY(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(s._state),s._finalized=this._finalized,s}}});var MY=St((S$e,wY)=>{var E$e=me(Me());xe();_e();var V6e=mY(),J6e=yY();wY.exports=function(i){let n=V6e(i),s=J6e(i);return function(c,a){switch(typeof c=="string"?c.toLowerCase():c){case"keccak224":return new n(1152,448,null,224,a);case"keccak256":return new n(1088,512,null,256,a);case"keccak384":return new n(832,768,null,384,a);case"keccak512":return new n(576,1024,null,512,a);case"sha3-224":return new n(1152,448,6,224,a);case"sha3-256":return new n(1088,512,6,256,a);case"sha3-384":return new n(832,768,6,384,a);case"sha3-512":return new n(576,1024,6,512,a);case"shake128":return new s(1344,256,31,a);case"shake256":return new s(1088,512,31,a);default:throw new Error("Invald algorithm: "+c)}}}});var SY=St(xY=>{var R$e=me(Me());xe();_e();var _Y=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];xY.p1600=function(i){for(let n=0;n<24;++n){let s=i[0]^i[10]^i[20]^i[30]^i[40],c=i[1]^i[11]^i[21]^i[31]^i[41],a=i[2]^i[12]^i[22]^i[32]^i[42],d=i[3]^i[13]^i[23]^i[33]^i[43],v=i[4]^i[14]^i[24]^i[34]^i[44],y=i[5]^i[15]^i[25]^i[35]^i[45],M=i[6]^i[16]^i[26]^i[36]^i[46],w=i[7]^i[17]^i[27]^i[37]^i[47],b=i[8]^i[18]^i[28]^i[38]^i[48],_=i[9]^i[19]^i[29]^i[39]^i[49],x=b^(a<<1|d>>>31),S=_^(d<<1|a>>>31),I=i[0]^x,R=i[1]^S,N=i[10]^x,P=i[11]^S,L=i[20]^x,D=i[21]^S,Z=i[30]^x,W=i[31]^S,Q=i[40]^x,K=i[41]^S;x=s^(v<<1|y>>>31),S=c^(y<<1|v>>>31);let F=i[2]^x,Y=i[3]^S,m=i[12]^x,e=i[13]^S,r=i[22]^x,o=i[23]^S,f=i[32]^x,h=i[33]^S,p=i[42]^x,g=i[43]^S;x=a^(M<<1|w>>>31),S=d^(w<<1|M>>>31);let l=i[4]^x,t=i[5]^S,u=i[14]^x,E=i[15]^S,B=i[24]^x,k=i[25]^S,q=i[34]^x,z=i[35]^S,ee=i[44]^x,te=i[45]^S;x=v^(b<<1|_>>>31),S=y^(_<<1|b>>>31);let O=i[6]^x,U=i[7]^S,oe=i[16]^x,X=i[17]^S,j=i[26]^x,V=i[27]^S,G=i[36]^x,ie=i[37]^S,ge=i[46]^x,re=i[47]^S;x=M^(s<<1|c>>>31),S=w^(c<<1|s>>>31);let ae=i[8]^x,we=i[9]^S,fe=i[18]^x,he=i[19]^S,nt=i[28]^x,de=i[29]^S,be=i[38]^x,ut=i[39]^S,$=i[48]^x,A=i[49]^S,T=I,C=R,H=P<<4|N>>>28,ne=N<<4|P>>>28,J=L<<3|D>>>29,ce=D<<3|L>>>29,ft=W<<9|Z>>>23,le=Z<<9|W>>>23,ve=Q<<18|K>>>14,st=K<<18|Q>>>14,Se=F<<1|Y>>>31,Le=Y<<1|F>>>31,mt=e<<12|m>>>20,Ee=m<<12|e>>>20,Ne=r<<10|o>>>22,bt=o<<10|r>>>22,Be=h<<13|f>>>19,Ce=f<<13|h>>>19,vt=p<<2|g>>>30,se=g<<2|p>>>30,ue=t<<30|l>>>2,ht=l<<30|t>>>2,pe=u<<6|E>>>26,Ie=E<<6|u>>>26,ct=k<<11|B>>>21,ye=B<<11|k>>>21,De=q<<15|z>>>17,dt=z<<15|q>>>17,Ae=te<<29|ee>>>3,Oe=ee<<29|te>>>3,gt=O<<28|U>>>4,Re=U<<28|O>>>4,$e=X<<23|oe>>>9,pt=oe<<23|X>>>9,lt=j<<25|V>>>7,yt=V<<25|j>>>7,xt=G<<21|ie>>>11,Mt=ie<<21|G>>>11,Et=re<<24|ge>>>8,At=ge<<24|re>>>8,Bt=ae<<27|we>>>5,Rt=we<<27|ae>>>5,Tt=fe<<20|he>>>12,kt=he<<20|fe>>>12,Pt=de<<7|nt>>>25,$t=nt<<7|de>>>25,Nt=be<<8|ut>>>24,Ct=ut<<8|be>>>24,Dt=$<<14|A>>>18,Ot=A<<14|$>>>18;i[0]=T^~mt&ct,i[1]=C^~Ee&ye,i[10]=gt^~Tt&J,i[11]=Re^~kt&ce,i[20]=Se^~pe<,i[21]=Le^~Ie&yt,i[30]=Bt^~H&Ne,i[31]=Rt^~ne&bt,i[40]=ue^~$e&Pt,i[41]=ht^~pt&$t,i[2]=mt^~ct&xt,i[3]=Ee^~ye&Mt,i[12]=Tt^~J&Be,i[13]=kt^~ce&Ce,i[22]=pe^~lt&Nt,i[23]=Ie^~yt&Ct,i[32]=H^~Ne&De,i[33]=ne^~bt&dt,i[42]=$e^~Pt&ft,i[43]=pt^~$t&le,i[4]=ct^~xt&Dt,i[5]=ye^~Mt&Ot,i[14]=J^~Be&Ae,i[15]=ce^~Ce&Oe,i[24]=lt^~Nt&ve,i[25]=yt^~Ct&st,i[34]=Ne^~De&Et,i[35]=bt^~dt&At,i[44]=Pt^~ft&vt,i[45]=$t^~le&se,i[6]=xt^~Dt&T,i[7]=Mt^~Ot&C,i[16]=Be^~Ae>,i[17]=Ce^~Oe&Re,i[26]=Nt^~ve&Se,i[27]=Ct^~st&Le,i[36]=De^~Et&Bt,i[37]=dt^~At&Rt,i[46]=ft^~vt&ue,i[47]=le^~se&ht,i[8]=Dt^~T&mt,i[9]=Ot^~C&Ee,i[18]=Ae^~gt&Tt,i[19]=Oe^~Re&kt,i[28]=ve^~Se&pe,i[29]=st^~Le&Ie,i[38]=Et^~Bt&H,i[39]=At^~Rt&ne,i[48]=vt^~ue&$e,i[49]=se^~ht&pt,i[0]^=_Y[n*2],i[1]^=_Y[n*2+1]}}});var AY=St((P$e,EY)=>{var $$e=me(Me());xe();_e();var Yb=SY();function Td(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}Td.prototype.initialize=function(i,n){for(let s=0;s<50;++s)this.state[s]=0;this.blockSize=i/8,this.count=0,this.squeezing=!1};Td.prototype.absorb=function(i){for(let n=0;n<i.length;++n)this.state[~~(this.count/4)]^=i[n]<<8*(this.count%4),this.count+=1,this.count===this.blockSize&&(Yb.p1600(this.state),this.count=0)};Td.prototype.absorbLastFewBits=function(i){this.state[~~(this.count/4)]^=i<<8*(this.count%4),i&128&&this.count===this.blockSize-1&&Yb.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),Yb.p1600(this.state),this.count=0,this.squeezing=!0};Td.prototype.squeeze=function(i){this.squeezing||this.absorbLastFewBits(1);let n=at.alloc(i);for(let s=0;s<i;++s)n[s]=this.state[~~(this.count/4)]>>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(Yb.p1600(this.state),this.count=0);return n};Td.prototype.copy=function(i){for(let n=0;n<50;++n)i.state[n]=this.state[n];i.blockSize=this.blockSize,i.count=this.count,i.squeezing=this.squeezing};EY.exports=Td});var IY=St((L$e,BY)=>{var D$e=me(Me());xe();_e();BY.exports=MY()(AY())});var vUe=me(Me(),1);xe();_e();var rqe=me(Me(),1);xe();_e();var K3e=me(Me(),1);xe();_e();var B3e=me(Me(),1);xe();_e();var fn={module:"URgYpPQzvxxfYQtjrIQ116bl3YBfcImo3JEnNo8Hlrk",scheduler:"_GQ33BkPtZrqxA84vM8Zk-N2aO0toNNu_C-l-rawrBA",mu:"fcoN_xJeisVsPXA-trzVAuIiqO3ydLQxM-L4XbrQKzY",src:{asset:"LlyF5s11sJIWvfNbkH-tavR-P7IJfTvkHHOdlwtGIJM",collection:"EmeE2B70hVDdhr9fWou3i_nKARSb_6LXvxRFTH67qvU",collectionActivity:"8cQtC9TsWURFzboq1aozm8VbzRBc5GGVt7yB80kapfc",comments:"RvozS-4Mbcmq66gPapsNOyERkg3LrpR0vSRKz8wIi4k",zone:{id:"qh8L94J0ZT4h-Gv3mLH8kDb-IhmJo_aIL1j7vtr-jF0",version:"0.0.2"}},collectionRegistry:"zwKi27GuKS3GOlwL3EhNGH02SJDDAO5Uy43ZJwomhZ4"},TB={defaultNode:"https://forward.computer"},kB={"application/json":{type:"application/json",serialize:i=>JSON.stringify(i)}},Qs={arweave:"arweave.net",ao:"ao-search-gateway.goldsky.com"};var Wr={keys:{access:"Access-Fee",ans110:{title:"Title",description:"Description",topic:"Topic:*",type:"Type",implements:"Implements",license:"License"},assetType:"Asset-Type",banner:"Banner",bootloader:"Bootloader",collectionId:"Collection-Id",collectionName:"Collection-Name",commericalUse:"Commercial-Use",contentType:"Content-Type",creator:"Creator",currency:"Currency",dataModelTraining:"Data-Model-Training",dataProtocol:"Data-Protocol",dateCreated:"Date-Created",derivations:"Derivations",description:"Description",displayName:"Display-Name",handle:"Handle",implements:"Implements",initialOwner:"Initial-Owner",license:"License",name:"Name",onBoot:"On-Boot",paymentAddress:"Payment-Address",paymentMode:"Payment-Mode",profileCreator:"Profile-Creator",profileIndex:"Profile-Index",protocolName:"Protocol-Name",renderWith:"Render-With",thumbnail:"Thumbnail",title:"Title",topic:"Topic",type:"Type",zoneType:"Zone-Type"},values:{dataProtocol:"ao",document:"Document",user:"User"}},S3={node1:"https://turbo.ardrive.io",batchSize:1,chunkSize:75e5,dispatchUploadSize:100*1024};var D3e=me(Me(),1);xe();_e();var P3e=me(Me(),1);xe();_e();function ho(i){return i?/^[a-z0-9_-]{43}$/i.test(i):!1}function lv(i,n){for(let s=0;s<i.length;s++)if(i[s]&&i[s].name===n)return i[s].value;return null}function PB(i){let n=i.match(/^data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+);base64,/);return n?n[1]:null}function $B(i){return i.split(",")[1]}function NB(i){let n;if(at.isBuffer(i))n=i.length;else if(typeof i=="string")n=at.byteLength(i,"utf-8");else throw new Error("Input must be a string or a Buffer");return n}function E3(i){let n;return n=i.replace(/\[|\]/g,""),`[[${n}]]`}function Ld(i){let n;return n=i.replace(/\[|\]/g,""),n}var Sa=(...i)=>{console.log("[@permaweb/libs]",...i)};function eee(i){return i.replace(/^[a-z]/,n=>n.toUpperCase())}function Xl(i){return Array.isArray(i)?i.map(Xl):i&&typeof i=="object"?Object.entries(i).reduce((n,[s,c])=>{let a=eee(s);return n[a]=ho(c)?c:Xl(c),n},{}):i}function tee(i){return i.charAt(0).toLowerCase()+i.slice(1)}function uo(i){return Array.isArray(i)?i.map(uo):i&&typeof i=="object"?Object.entries(i).reduce((n,[s,c])=>{let a=ho(s)||s.includes("-")?s:tee(s);return n[a]=ho(c)?c:uo(c),n},{}):i}function Qn(i,n){let s=i.charAt(0).toUpperCase()+i.slice(1);return{name:`${Wr.keys.bootloader}-${s}`,value:n}}function cv(i){return ho(i)||i.startsWith("data")}var ree="https://arweave.net";function dv(i){return`${ree}/${i}`}async function iee(i,n){let s=[{name:"Authority",value:i.node?.authority??fn.mu}];n.tags&&n.tags.length>0&&n.tags.forEach(c=>s.push(c));try{let c=await i.ao.spawn({module:n.module,scheduler:i.node?.scheduler||n.scheduler,signer:i.signer,tags:s,data:n.data});return Sa(`Process ID: ${c}`),Sa("Sending initial message..."),await dn(i,{processId:c,action:"Init"}),c}catch(c){throw console.log(c),new Error(c.message??"Error spawning process")}}function CB(i){return async n=>await dn(i,n)}async function dn(i,n){try{let s=[{name:"Action",value:n.action},{name:"Message-Timestamp",value:new Date().getTime().toString()}];n.tags&&s.push(...n.tags);let c=n.useRawData?n.data:JSON.stringify(n.data);return await i.ao.message({process:n.processId,signer:i.signer,tags:s,data:c})}catch(s){throw new Error(s)}}function LB(i){return async n=>await Kf(i,n)}async function Kf(i,n){let c=`${i.node?.url??TB.defaultNode}/${n.processId}~process@1.0/now/${n.path}`;n.serialize&&(c+="/serialize~json@1.0");try{let a=await fetch(c);if(a.ok)return a.json();throw new Error("Error getting state from HyperBEAM.")}catch(a){if(n.fallbackAction)return await pv(i,{processId:n.processId,action:n.fallbackAction});throw a}}function DB(i){return async n=>await pv(i,n)}async function pv(i,n){try{let s=[{name:"Action",value:n.action}];n.tags&&s.push(...n.tags);let c;if(typeof n.data=="object")c=JSON.stringify(n.data||{});else if(typeof n.data=="string"){try{JSON.parse(n.data)}catch(d){throw console.error(d),new Error("Invalid JSON data")}c=n.data}let a=await i.ao.dryrun({process:n.processId,tags:s,data:c});if(a.Messages&&a.Messages.length){if(a.Messages[0].Data)return JSON.parse(a.Messages[0].Data);if(a.Messages[0].Tags)return a.Messages[0].Tags.reduce((d,v)=>(d[v.name]=v.value,d),{})}}catch(s){throw new Error(s.message??"Error dryrunning process")}}async function nee(i,n){try{let{Messages:s}=await i.ao.result({message:n.messageId,process:n.processId});if(s&&s.length){let c={};return s.forEach(a=>{let d=lv(a.Tags,"Action")||n.action,v=null,y=a.Data;if(y)try{v=JSON.parse(y)}catch{v=y}let M=lv(a.Tags,"Status"),w=lv(a.Tags,"Message");c[d]={id:n.messageId,status:M,message:w,data:v}}),c}else return null}catch(s){console.error(s)}}async function Dd(i,n){let s=null;if(n.evalSrc)s=n.evalSrc;else if(n.evalTxId)try{s=await(await fetch(dv(n.evalTxId))).text()}catch(c){throw new Error(c)}if(s)try{let c=await dn(i,{processId:n.processId,action:"Eval",data:s,tags:n.evalTags||null,useRawData:!0});return Sa(`Eval: ${c}`),await nee(i,{processId:n.processId,messageId:c,action:"Eval"})}catch(c){throw new Error(c.message??"Error sending process eval")}return null}function jf(i){return async(n,s)=>{try{let c={module:n.module||fn.module,scheduler:i.node?.scheduler||fn.scheduler};n.data&&(c.data=n.data),n.tags&&(c.tags=n.tags),s&&s("Spawning process...");let a=await iee(i,c);if(n.evalTxId||n.evalSrc){s&&s("Process retrieved!"),s&&s("Sending eval...");try{await Dd(i,{processId:a,evalTxId:n.evalTxId||null,evalSrc:n.evalSrc||null,evalTags:n.evalTags})&&s&&s("Eval complete")}catch(d){throw new Error(d.message??"Error creating process")}}return a}catch(c){throw new Error(c.message??"Error creating process")}}}var GOe=me(Me(),1);xe();_e();var qOe=me(Me(),1);xe();_e();var oA={};fv(oA,{AVSCTap:()=>Vp,AlgorandSigner:()=>Up,AptosSigner:()=>Fp,ArconnectSigner:()=>Wl,Arweave:()=>dj.default,ArweaveSigner:()=>ll,Bundle:()=>a3,BundleItem:()=>aA,CryptoDriver:()=>mm,Curve25519:()=>qa,DataItem:()=>r3,EthereumSigner:()=>fo,HexInjectedSolanaSigner:()=>Fl,HexSolanaSigner:()=>zp,InjectedAptosSigner:()=>Hl,InjectedEthereumSigner:()=>eE,InjectedSolanaSigner:()=>cl,InjectedTypedEthereumSigner:()=>tA,KyveSigner:()=>jp,MAX_TAG_BYTES:()=>t3,MIN_BINARY_SIZE:()=>i3,MultiSignatureAptosSigner:()=>Kl,NearSigner:()=>qp,PolygonSigner:()=>Op,Rsa4096:()=>al,SIG_CONFIG:()=>Rr,SignatureConfig:()=>ar,Signer:()=>A3,SolanaSigner:()=>Bh,Transaction:()=>cj.default,TypedEthereumSigner:()=>jl,bundleAndSignData:()=>rme,byteArrayToLong:()=>Xi,concatBuffers:()=>ui.concatBuffers,createData:()=>Yp,deepHash:()=>S0,deserializeTags:()=>kd,exportForTesting:()=>X6e,getCryptoDriver:()=>nn,getSignatureAndId:()=>qY,indexToType:()=>Wp,keccak256:()=>XE,longTo16ByteArray:()=>eme,longTo32ByteArray:()=>e3,longTo8ByteArray:()=>Qb,longToNByteArray:()=>Gp,secp256k1:()=>zl,serializeTags:()=>iA,shortTo2ByteArray:()=>rA,sign:()=>n3,stringToBuffer:()=>ui.stringToBuffer,unbundleData:()=>tme});var gDe=me(Me(),1);xe();_e();var tLe=me(Me(),1);xe();_e();var G3e=me(Me(),1);xe();_e();var A3=class{publicKey;signatureType;signatureLength;ownerLength;pem;static verify(n,s,c,a){throw new Error("You must implement verify method on child")}};var KCe=me(Me(),1);xe();_e();var Ege=me(Me(),1);xe();_e();var YB=me(lo(),1);var uge=me(Me(),1);xe();_e();var ar;(function(i){i[i.ARWEAVE=1]="ARWEAVE",i[i.ED25519=2]="ED25519",i[i.ETHEREUM=3]="ETHEREUM",i[i.SOLANA=4]="SOLANA",i[i.INJECTEDAPTOS=5]="INJECTEDAPTOS",i[i.MULTIAPTOS=6]="MULTIAPTOS",i[i.TYPEDETHEREUM=7]="TYPEDETHEREUM",i[i.KYVE=101]="KYVE"})(ar||(ar={}));var Rr={[ar.ARWEAVE]:{sigLength:512,pubLength:512,sigName:"arweave"},[ar.ED25519]:{sigLength:64,pubLength:32,sigName:"ed25519"},[ar.ETHEREUM]:{sigLength:65,pubLength:65,sigName:"ethereum"},[ar.SOLANA]:{sigLength:64,pubLength:32,sigName:"solana"},[ar.INJECTEDAPTOS]:{sigLength:64,pubLength:32,sigName:"injectedAptos"},[ar.MULTIAPTOS]:{sigLength:64*32+4,pubLength:32*32+1,sigName:"multiAptos"},[ar.TYPEDETHEREUM]:{sigLength:65,pubLength:42,sigName:"typedEthereum"},[ar.KYVE]:{sigLength:65,pubLength:65,sigName:"kyve"}};var yge=me(Me(),1);xe();_e();var jB=me(k3(),1);var pn=BigInt(0),Ur=BigInt(1),ya=BigInt(2),WB=BigInt(255),FB=ya**BigInt(252)+BigInt("27742317777372353535851937790883648493"),Ti={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),P:ya**WB-BigInt(19),l:FB,n:FB,h:BigInt(8),Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960")};var ZB=ya**BigInt(256),Od=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"),bge=BigInt("6853475219497561581579357271197624642482790079785650197046958215289687604742"),hee=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),uee=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),lee=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),cee=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),vn=class i{constructor(n,s,c,a){this.x=n,this.y=s,this.z=c,this.t=a}static fromAffine(n){if(!(n instanceof hn))throw new TypeError("ExtendedPoint#fromAffine: expected Point");return n.equals(hn.ZERO)?i.ZERO:new i(n.x,n.y,Ur,Lt(n.x*n.y))}static toAffineBatch(n){let s=vee(n.map(c=>c.z));return n.map((c,a)=>c.toAffine(s[a]))}static normalizeZ(n){return this.toAffineBatch(n).map(this.fromAffine)}equals(n){HB(n);let{x:s,y:c,z:a}=this,{x:d,y:v,z:y}=n,M=Lt(s*y),w=Lt(d*a),b=Lt(c*y),_=Lt(v*a);return M===w&&b===_}negate(){return new i(Lt(-this.x),this.y,this.z,Lt(-this.t))}double(){let{x:n,y:s,z:c}=this,{a}=Ti,d=Lt(n**ya),v=Lt(s**ya),y=Lt(ya*Lt(c**ya)),M=Lt(a*d),w=Lt(Lt((n+s)**ya)-d-v),b=M+v,_=b-y,x=M-v,S=Lt(w*_),I=Lt(b*x),R=Lt(w*x),N=Lt(_*b);return new i(S,I,N,R)}add(n){HB(n);let{x:s,y:c,z:a,t:d}=this,{x:v,y,z:M,t:w}=n,b=Lt((c-s)*(y+v)),_=Lt((c+s)*(y-v)),x=Lt(_-b);if(x===pn)return this.double();let S=Lt(a*ya*w),I=Lt(d*ya*M),R=I+S,N=_+b,P=I-S,L=Lt(R*x),D=Lt(N*P),Z=Lt(R*P),W=Lt(x*N);return new i(L,D,W,Z)}subtract(n){return this.add(n.negate())}precomputeWindow(n){let s=1+256/n,c=[],a=this,d=a;for(let v=0;v<s;v++){d=a,c.push(d);for(let y=1;y<2**(n-1);y++)d=d.add(a),c.push(d);a=d.double()}return c}wNAF(n,s){!s&&this.equals(i.BASE)&&(s=hn.BASE);let c=s&&s._WINDOW_SIZE||1;if(256%c)throw new Error("Point#wNAF: Invalid precomputation window, must be power of 2");let a=s&&C3.get(s);a||(a=this.precomputeWindow(c),s&&c!==1&&(a=i.normalizeZ(a),C3.set(s,a)));let d=i.ZERO,v=i.ZERO,y=1+256/c,M=2**(c-1),w=BigInt(2**c-1),b=2**c,_=BigInt(c);for(let x=0;x<y;x++){let S=x*M,I=Number(n&w);if(n>>=_,I>M&&(I-=b,n+=Ur),I===0){let R=a[S];x%2&&(R=R.negate()),v=v.add(R)}else{let R=a[S+Math.abs(I)-1];I<0&&(R=R.negate()),d=d.add(R)}}return i.normalizeZ([d,v])[0]}multiply(n,s){return this.wNAF(mv(n,Ti.l),s)}multiplyUnsafe(n){let s=mv(n,Ti.l,!1),c=i.BASE,a=i.ZERO;if(s===pn)return a;if(this.equals(a)||s===Ur)return this;if(this.equals(c))return this.wNAF(s);let d=a,v=this;for(;s>pn;)s&Ur&&(d=d.add(v)),v=v.double(),s>>=Ur;return d}isSmallOrder(){return this.multiplyUnsafe(Ti.h).equals(i.ZERO)}isTorsionFree(){return this.multiplyUnsafe(Ti.l).equals(i.ZERO)}toAffine(n=bv(this.z)){let{x:s,y:c,z:a}=this,d=Lt(s*n),v=Lt(c*n);if(Lt(a*n)!==Ur)throw new Error("invZ was invalid");return new hn(d,v)}fromRistrettoBytes(){$3()}toRistrettoBytes(){$3()}fromRistrettoHash(){$3()}};vn.BASE=new vn(Ti.Gx,Ti.Gy,Ur,Lt(Ti.Gx*Ti.Gy));vn.ZERO=new vn(pn,Ur,Ur,pn);function HB(i){if(!(i instanceof vn))throw new TypeError("ExtendedPoint expected")}function P3(i){if(!(i instanceof hu))throw new TypeError("RistrettoPoint expected")}function $3(){throw new Error("Legacy method: switch to RistrettoPoint")}var hu=class i{constructor(n){this.ep=n}static calcElligatorRistrettoMap(n){let{d:s}=Ti,c=Lt(Od*n*n),a=Lt((c+Ur)*lee),d=BigInt(-1),v=Lt((d-s*c)*Lt(c+s)),{isValid:y,value:M}=D3(a,v),w=Lt(M*n);Oh(w)||(w=Lt(-w)),y||(M=w),y||(d=c);let b=Lt(d*(c-Ur)*cee-v),_=M*M,x=Lt((M+M)*v),S=Lt(b*hee),I=Lt(Ur-_),R=Lt(Ur+_);return new vn(Lt(x*R),Lt(I*S),Lt(S*R),Lt(x*I))}static hashToCurve(n){n=qh(n,64);let s=N3(n.slice(0,32)),c=this.calcElligatorRistrettoMap(s),a=N3(n.slice(32,64)),d=this.calcElligatorRistrettoMap(a);return new i(c.add(d))}static fromHex(n){n=qh(n,32);let{a:s,d:c}=Ti,a="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",d=N3(n);if(!bee(Ud(d),n)||Oh(d))throw new Error(a);let v=Lt(d*d),y=Lt(Ur+s*v),M=Lt(Ur-s*v),w=Lt(y*y),b=Lt(M*M),_=Lt(s*c*w-b),{isValid:x,value:S}=KB(Lt(_*b)),I=Lt(S*M),R=Lt(S*I*_),N=Lt((d+d)*I);Oh(N)&&(N=Lt(-N));let P=Lt(y*R),L=Lt(N*P);if(!x||Oh(L)||P===pn)throw new Error(a);return new i(new vn(N,P,Ur,L))}toRawBytes(){let{x:n,y:s,z:c,t:a}=this.ep,d=Lt(Lt(c+s)*Lt(c-s)),v=Lt(n*s),{value:y}=KB(Lt(d*v**ya)),M=Lt(y*d),w=Lt(y*v),b=Lt(M*w*a),_;if(Oh(a*b)){let S=Lt(s*Od),I=Lt(n*Od);n=S,s=I,_=Lt(M*uee)}else _=w;Oh(n*b)&&(s=Lt(-s));let x=Lt((c-s)*_);return Oh(x)&&(x=Lt(-x)),Ud(x)}toHex(){return zd(this.toRawBytes())}toString(){return this.toHex()}equals(n){P3(n);let s=this.ep,c=n.ep,a=Lt(s.x*c.y)===Lt(s.y*c.x),d=Lt(s.y*c.y)===Lt(s.x*c.x);return a||d}add(n){return P3(n),new i(this.ep.add(n.ep))}subtract(n){return P3(n),new i(this.ep.subtract(n.ep))}multiply(n){return new i(this.ep.multiply(n))}multiplyUnsafe(n){return new i(this.ep.multiplyUnsafe(n))}};hu.BASE=new hu(vn.BASE);hu.ZERO=new hu(vn.ZERO);var C3=new WeakMap,hn=class i{constructor(n,s){this.x=n,this.y=s}_setWindowSize(n){this._WINDOW_SIZE=n,C3.delete(this)}static fromHex(n,s=!0){let{d:c,P:a}=Ti;n=qh(n,32);let d=n.slice();d[31]=n[31]&-129;let v=ec(d);if(s&&v>=a)throw new Error("Expected 0 < hex < P");if(!s&&v>=ZB)throw new Error("Expected 0 < hex < 2**256");let y=Lt(v*v),M=Lt(y-Ur),w=Lt(c*y+Ur),{isValid:b,value:_}=D3(M,w);if(!b)throw new Error("Point.fromHex: invalid y coordinate");let x=(_&Ur)===Ur;return(n[31]&128)!==0!==x&&(_=Lt(-_)),new i(_,v)}static async fromPrivateKey(n){return(await O3(n)).point}toRawBytes(){let n=Ud(this.y);return n[31]|=this.x&Ur?128:0,n}toHex(){return zd(this.toRawBytes())}toX25519(){let{y:n}=this,s=Lt((Ur+n)*bv(Ur-n));return Ud(s)}isTorsionFree(){return vn.fromAffine(this).isTorsionFree()}equals(n){return this.x===n.x&&this.y===n.y}negate(){return new i(Lt(-this.x),this.y)}add(n){return vn.fromAffine(this).add(vn.fromAffine(n)).toAffine()}subtract(n){return this.add(n.negate())}multiply(n){return vn.fromAffine(this).multiply(n,this).toAffine()}};hn.BASE=new hn(Ti.Gx,Ti.Gy);hn.ZERO=new hn(pn,Ur);var qd=class i{constructor(n,s){this.r=n,this.s=s,this.assertValidity()}static fromHex(n){let s=qh(n,64),c=hn.fromHex(s.slice(0,32),!1),a=ec(s.slice(32,64));return new i(c,a)}assertValidity(){let{r:n,s}=this;if(!(n instanceof hn))throw new Error("Expected Point instance");return mv(s,Ti.l,!1),this}toRawBytes(){let n=new Uint8Array(64);return n.set(this.r.toRawBytes()),n.set(Ud(this.s),32),n}toHex(){return zd(this.toRawBytes())}};function dee(...i){if(!i.every(c=>c instanceof Uint8Array))throw new Error("Expected Uint8Array list");if(i.length===1)return i[0];let n=i.reduce((c,a)=>c+a.length,0),s=new Uint8Array(n);for(let c=0,a=0;c<i.length;c++){let d=i[c];s.set(d,a),a+=d.length}return s}var pee=Array.from({length:256},(i,n)=>n.toString(16).padStart(2,"0"));function zd(i){if(!(i instanceof Uint8Array))throw new Error("Uint8Array expected");let n="";for(let s=0;s<i.length;s++)n+=pee[i[s]];return n}function GB(i){if(typeof i!="string")throw new TypeError("hexToBytes: expected string, got "+typeof i);if(i.length%2)throw new Error("hexToBytes: received invalid unpadded hex");let n=new Uint8Array(i.length/2);for(let s=0;s<n.length;s++){let c=s*2,a=i.slice(c,c+2),d=Number.parseInt(a,16);if(Number.isNaN(d)||d<0)throw new Error("Invalid byte sequence");n[s]=d}return n}function VB(i){let s=i.toString(16).padStart(64,"0");return GB(s)}function Ud(i){return VB(i).reverse()}function Oh(i){return(Lt(i)&Ur)===Ur}function ec(i){if(!(i instanceof Uint8Array))throw new Error("Expected Uint8Array");return BigInt("0x"+zd(Uint8Array.from(i).reverse()))}function N3(i){return Lt(ec(i)&ya**WB-Ur)}function Lt(i,n=Ti.P){let s=i%n;return s>=pn?s:n+s}function bv(i,n=Ti.P){if(i===pn||n<=pn)throw new Error(`invert: expected positive integers, got n=${i} mod=${n}`);let s=Lt(i,n),c=n,a=pn,d=Ur,v=Ur,y=pn;for(;s!==pn;){let w=c/s,b=c%s,_=a-v*w,x=d-y*w;c=s,s=b,a=v,d=y,v=_,y=x}if(c!==Ur)throw new Error("invert: does not exist");return Lt(a,n)}function vee(i,n=Ti.P){let s=new Array(i.length),c=i.reduce((d,v,y)=>v===pn?d:(s[y]=d,Lt(d*v,n)),Ur),a=bv(c,n);return i.reduceRight((d,v,y)=>v===pn?d:(s[y]=Lt(d*s[y],n),Lt(d*v,n)),a),s}function ef(i,n){let{P:s}=Ti,c=i;for(;n-- >pn;)c*=c,c%=s;return c}function mee(i){let{P:n}=Ti,s=BigInt(5),c=BigInt(10),a=BigInt(20),d=BigInt(40),v=BigInt(80),M=i*i%n*i%n,w=ef(M,ya)*M%n,b=ef(w,Ur)*i%n,_=ef(b,s)*b%n,x=ef(_,c)*_%n,S=ef(x,a)*x%n,I=ef(S,d)*S%n,R=ef(I,v)*I%n,N=ef(R,v)*I%n,P=ef(N,c)*_%n;return{pow_p_5_8:ef(P,ya)*i%n,b2:M}}function D3(i,n){let s=Lt(n*n*n),c=Lt(s*s*n),a=mee(i*c).pow_p_5_8,d=Lt(i*s*a),v=Lt(n*d*d),y=d,M=Lt(d*Od),w=v===i,b=v===Lt(-i),_=v===Lt(-i*Od);return w&&(d=y),(b||_)&&(d=M),Oh(d)&&(d=Lt(-d)),{isValid:w||b,value:d}}function KB(i){return D3(Ur,i)}async function L3(...i){let n=await q3.sha512(dee(...i)),s=ec(n);return Lt(s,Ti.l)}function bee(i,n){if(i.length!==n.length)return!1;for(let s=0;s<i.length;s++)if(i[s]!==n[s])return!1;return!0}function qh(i,n){let s=i instanceof Uint8Array?Uint8Array.from(i):GB(i);if(typeof n=="number"&&s.length!==n)throw new Error(`Expected ${n} bytes`);return s}function mv(i,n,s=!0){if(!n)throw new TypeError("Specify max value");if(typeof i=="number"&&Number.isSafeInteger(i)&&(i=BigInt(i)),typeof i=="bigint"&&i<n){if(s){if(pn<i)return i}else if(pn<=i)return i}throw new TypeError("Expected valid scalar: 0 < scalar < max")}function gee(i){return i[0]&=248,i[31]&=127,i[31]|=64,i}async function O3(i){if(i=typeof i=="bigint"||typeof i=="number"?VB(mv(i,ZB)):qh(i),i.length!==32)throw new Error("Expected 32 bytes");let n=await q3.sha512(i),s=gee(n.slice(0,32)),c=n.slice(32,64),a=Lt(ec(s),Ti.l),d=hn.BASE.multiply(a),v=d.toRawBytes();return{head:s,prefix:c,scalar:a,point:d,pointBytes:v}}async function JB(i,n){i=qh(i);let{prefix:s,scalar:c,pointBytes:a}=await O3(n),d=await L3(s,i),v=hn.BASE.multiply(d),y=await L3(v.toRawBytes(),a,i),M=Lt(d+y*c,Ti.l);return new qd(v,M).toRawBytes()}async function Uh(i,n,s){n=qh(n),s instanceof hn||(s=hn.fromHex(s,!1));let{r:c,s:a}=i instanceof qd?i.assertValidity():qd.fromHex(i),d=vn.BASE.multiplyUnsafe(a),v=await L3(c.toRawBytes(),s.toRawBytes(),n),y=vn.fromAffine(s).multiplyUnsafe(v);return vn.fromAffine(c).add(y).subtract(d).multiplyUnsafe(Ti.h).equals(vn.ZERO)}hn.BASE._setWindowSize(8);var Dh={node:jB.default,web:typeof self=="object"&&"crypto"in self?self.crypto:void 0},q3={TORSION_SUBGROUP:["0100000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a","0000000000000000000000000000000000000000000000000000000000000080","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05","ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85","0000000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa"],bytesToHex:zd,getExtendedPublicKey:O3,mod:Lt,invert:bv,hashToPrivateScalar:i=>{if(i=qh(i),i.length<40||i.length>1024)throw new Error("Expected 40-1024 bytes of private key as per FIPS 186");let n=Lt(ec(i),Ti.l);if(n===pn||n===Ur)throw new Error("Invalid private key");return n},randomBytes:(i=32)=>{if(Dh.web)return Dh.web.getRandomValues(new Uint8Array(i));if(Dh.node){let{randomBytes:n}=Dh.node;return new Uint8Array(n(i).buffer)}else throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>q3.randomBytes(32),sha512:async i=>{if(Dh.web){let n=await Dh.web.subtle.digest("SHA-512",i.buffer);return new Uint8Array(n)}else{if(Dh.node)return Uint8Array.from(Dh.node.createHash("sha512").update(i).digest());throw new Error("The environment doesn't have sha512 function")}},precompute(i=8,n=hn.BASE){let s=n.equals(hn.BASE)?n:new hn(n.x,n.y);return s._setWindowSize(i),s.multiply(ya),s}};var qa=class{_key;pk;ownerLength=Rr[2].pubLength;signatureLength=Rr[2].sigLength;_publicKey;get publicKey(){return this._publicKey}signatureType=2;constructor(n,s){this._key=n,this.pk=s}get key(){throw new Error("You must implement `key`")}sign(n){return JB(at.from(n),at.from(this.key))}static async verify(n,s,c){let a=n;return typeof n=="string"&&(a=YB.default.toBuffer(n)),Uh(at.from(c),at.from(s),at.from(a))}};var MCe=me(Me(),1);xe();_e();var i7e=me(Me(),1);xe();_e();var b4e=me(Me(),1);xe();_e();var h4e=me(Me(),1);xe();_e();var ui=me(vs(),1);var O8e=me(Me(),1);xe();_e();var P8e=me(Me());xe();_e();var Fd={},hI=!1;function Ree(){if(hI)return Fd;hI=!0,Fd.byteLength=y,Fd.toByteArray=w,Fd.fromByteArray=x;for(var i=[],n=[],s=typeof Uint8Array<"u"?Uint8Array:Array,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,d=c.length;a<d;++a)i[a]=c[a],n[c.charCodeAt(a)]=a;n[45]=62,n[95]=63;function v(S){var I=S.length;if(I%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var R=S.indexOf("=");R===-1&&(R=I);var N=R===I?0:4-R%4;return[R,N]}function y(S){var I=v(S),R=I[0],N=I[1];return(R+N)*3/4-N}function M(S,I,R){return(I+R)*3/4-R}function w(S){var I,R=v(S),N=R[0],P=R[1],L=new s(M(S,N,P)),D=0,Z=P>0?N-4:N,W;for(W=0;W<Z;W+=4)I=n[S.charCodeAt(W)]<<18|n[S.charCodeAt(W+1)]<<12|n[S.charCodeAt(W+2)]<<6|n[S.charCodeAt(W+3)],L[D++]=I>>16&255,L[D++]=I>>8&255,L[D++]=I&255;return P===2&&(I=n[S.charCodeAt(W)]<<2|n[S.charCodeAt(W+1)]>>4,L[D++]=I&255),P===1&&(I=n[S.charCodeAt(W)]<<10|n[S.charCodeAt(W+1)]<<4|n[S.charCodeAt(W+2)]>>2,L[D++]=I>>8&255,L[D++]=I&255),L}function b(S){return i[S>>18&63]+i[S>>12&63]+i[S>>6&63]+i[S&63]}function _(S,I,R){for(var N,P=[],L=I;L<R;L+=3)N=(S[L]<<16&16711680)+(S[L+1]<<8&65280)+(S[L+2]&255),P.push(b(N));return P.join("")}function x(S){for(var I,R=S.length,N=R%3,P=[],L=16383,D=0,Z=R-N;D<Z;D+=L)P.push(_(S,D,D+L>Z?Z:D+L));return N===1?(I=S[R-1],P.push(i[I>>2]+i[I<<4&63]+"==")):N===2&&(I=(S[R-2]<<8)+S[R-1],P.push(i[I>>10]+i[I>>4&63]+i[I<<2&63]+"=")),P.join("")}return Fd}var yv={},uI=!1;function Tee(){return uI||(uI=!0,yv.read=function(i,n,s,c,a){var d,v,y=a*8-c-1,M=(1<<y)-1,w=M>>1,b=-7,_=s?a-1:0,x=s?-1:1,S=i[n+_];for(_+=x,d=S&(1<<-b)-1,S>>=-b,b+=y;b>0;d=d*256+i[n+_],_+=x,b-=8);for(v=d&(1<<-b)-1,d>>=-b,b+=c;b>0;v=v*256+i[n+_],_+=x,b-=8);if(d===0)d=1-w;else{if(d===M)return v?NaN:(S?-1:1)*(1/0);v=v+Math.pow(2,c),d=d-w}return(S?-1:1)*v*Math.pow(2,d-c)},yv.write=function(i,n,s,c,a,d){var v,y,M,w=d*8-a-1,b=(1<<w)-1,_=b>>1,x=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=c?0:d-1,I=c?1:-1,R=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(y=isNaN(n)?1:0,v=b):(v=Math.floor(Math.log(n)/Math.LN2),n*(M=Math.pow(2,-v))<1&&(v--,M*=2),v+_>=1?n+=x/M:n+=x*Math.pow(2,1-_),n*M>=2&&(v++,M/=2),v+_>=b?(y=0,v=b):v+_>=1?(y=(n*M-1)*Math.pow(2,a),v=v+_):(y=n*Math.pow(2,_-1)*Math.pow(2,a),v=0));a>=8;i[s+S]=y&255,S+=I,y/=256,a-=8);for(v=v<<a|y,w+=a;w>0;i[s+S]=v&255,S+=I,v/=256,w-=8);i[s+S-I]|=R*128}),yv}var lu={},lI=!1;function En(){if(lI)return lu;lI=!0;let i=Ree(),n=Tee(),s=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;lu.Buffer=v,lu.SlowBuffer=P,lu.INSPECT_MAX_BYTES=50;let c=2147483647;lu.kMaxLength=c,v.TYPED_ARRAY_SUPPORT=a(),!v.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 a(){try{let $=new Uint8Array(1),A={foo:function(){return 42}};return Object.setPrototypeOf(A,Uint8Array.prototype),Object.setPrototypeOf($,A),$.foo()===42}catch{return!1}}Object.defineProperty(v.prototype,"parent",{enumerable:!0,get:function(){if(v.isBuffer(this))return this.buffer}}),Object.defineProperty(v.prototype,"offset",{enumerable:!0,get:function(){if(v.isBuffer(this))return this.byteOffset}});function d($){if($>c)throw new RangeError('The value "'+$+'" is invalid for option "size"');let A=new Uint8Array($);return Object.setPrototypeOf(A,v.prototype),A}function v($,A,T){if(typeof $=="number"){if(typeof A=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return b($)}return y($,A,T)}v.poolSize=8192;function y($,A,T){if(typeof $=="string")return _($,A);if(ArrayBuffer.isView($))return S($);if($==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof $);if(he($,ArrayBuffer)||$&&he($.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(he($,SharedArrayBuffer)||$&&he($.buffer,SharedArrayBuffer)))return I($,A,T);if(typeof $=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let C=$.valueOf&&$.valueOf();if(C!=null&&C!==$)return v.from(C,A,T);let H=R($);if(H)return H;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof $[Symbol.toPrimitive]=="function")return v.from($[Symbol.toPrimitive]("string"),A,T);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof $)}v.from=function($,A,T){return y($,A,T)},Object.setPrototypeOf(v.prototype,Uint8Array.prototype),Object.setPrototypeOf(v,Uint8Array);function M($){if(typeof $!="number")throw new TypeError('"size" argument must be of type number');if($<0)throw new RangeError('The value "'+$+'" is invalid for option "size"')}function w($,A,T){return M($),$<=0?d($):A!==void 0?typeof T=="string"?d($).fill(A,T):d($).fill(A):d($)}v.alloc=function($,A,T){return w($,A,T)};function b($){return M($),d($<0?0:N($)|0)}v.allocUnsafe=function($){return b($)},v.allocUnsafeSlow=function($){return b($)};function _($,A){if((typeof A!="string"||A==="")&&(A="utf8"),!v.isEncoding(A))throw new TypeError("Unknown encoding: "+A);let T=L($,A)|0,C=d(T),H=C.write($,A);return H!==T&&(C=C.slice(0,H)),C}function x($){let A=$.length<0?0:N($.length)|0,T=d(A);for(let C=0;C<A;C+=1)T[C]=$[C]&255;return T}function S($){if(he($,Uint8Array)){let A=new Uint8Array($);return I(A.buffer,A.byteOffset,A.byteLength)}return x($)}function I($,A,T){if(A<0||$.byteLength<A)throw new RangeError('"offset" is outside of buffer bounds');if($.byteLength<A+(T||0))throw new RangeError('"length" is outside of buffer bounds');let C;return A===void 0&&T===void 0?C=new Uint8Array($):T===void 0?C=new Uint8Array($,A):C=new Uint8Array($,A,T),Object.setPrototypeOf(C,v.prototype),C}function R($){if(v.isBuffer($)){let A=N($.length)|0,T=d(A);return T.length===0||$.copy(T,0,0,A),T}if($.length!==void 0)return typeof $.length!="number"||nt($.length)?d(0):x($);if($.type==="Buffer"&&Array.isArray($.data))return x($.data)}function N($){if($>=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return $|0}function P($){return+$!=$&&($=0),v.alloc(+$)}v.isBuffer=function(A){return A!=null&&A._isBuffer===!0&&A!==v.prototype},v.compare=function(A,T){if(he(A,Uint8Array)&&(A=v.from(A,A.offset,A.byteLength)),he(T,Uint8Array)&&(T=v.from(T,T.offset,T.byteLength)),!v.isBuffer(A)||!v.isBuffer(T))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(A===T)return 0;let C=A.length,H=T.length;for(let ne=0,J=Math.min(C,H);ne<J;++ne)if(A[ne]!==T[ne]){C=A[ne],H=T[ne];break}return C<H?-1:H<C?1:0},v.isEncoding=function(A){switch(String(A).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}},v.concat=function(A,T){if(!Array.isArray(A))throw new TypeError('"list" argument must be an Array of Buffers');if(A.length===0)return v.alloc(0);let C;if(T===void 0)for(T=0,C=0;C<A.length;++C)T+=A[C].length;let H=v.allocUnsafe(T),ne=0;for(C=0;C<A.length;++C){let J=A[C];if(he(J,Uint8Array))ne+J.length>H.length?(v.isBuffer(J)||(J=v.from(J)),J.copy(H,ne)):Uint8Array.prototype.set.call(H,J,ne);else if(v.isBuffer(J))J.copy(H,ne);else throw new TypeError('"list" argument must be an Array of Buffers');ne+=J.length}return H};function L($,A){if(v.isBuffer($))return $.length;if(ArrayBuffer.isView($)||he($,ArrayBuffer))return $.byteLength;if(typeof $!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof $);let T=$.length,C=arguments.length>2&&arguments[2]===!0;if(!C&&T===0)return 0;let H=!1;for(;;)switch(A){case"ascii":case"latin1":case"binary":return T;case"utf8":case"utf-8":return ge($).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T*2;case"hex":return T>>>1;case"base64":return we($).length;default:if(H)return C?-1:ge($).length;A=(""+A).toLowerCase(),H=!0}}v.byteLength=L;function D($,A,T){let C=!1;if((A===void 0||A<0)&&(A=0),A>this.length||((T===void 0||T>this.length)&&(T=this.length),T<=0)||(T>>>=0,A>>>=0,T<=A))return"";for($||($="utf8");;)switch($){case"hex":return l(this,A,T);case"utf8":case"utf-8":return o(this,A,T);case"ascii":return p(this,A,T);case"latin1":case"binary":return g(this,A,T);case"base64":return r(this,A,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t(this,A,T);default:if(C)throw new TypeError("Unknown encoding: "+$);$=($+"").toLowerCase(),C=!0}}v.prototype._isBuffer=!0;function Z($,A,T){let C=$[A];$[A]=$[T],$[T]=C}v.prototype.swap16=function(){let A=this.length;if(A%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let T=0;T<A;T+=2)Z(this,T,T+1);return this},v.prototype.swap32=function(){let A=this.length;if(A%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let T=0;T<A;T+=4)Z(this,T,T+3),Z(this,T+1,T+2);return this},v.prototype.swap64=function(){let A=this.length;if(A%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let T=0;T<A;T+=8)Z(this,T,T+7),Z(this,T+1,T+6),Z(this,T+2,T+5),Z(this,T+3,T+4);return this},v.prototype.toString=function(){let A=this.length;return A===0?"":arguments.length===0?o(this,0,A):D.apply(this,arguments)},v.prototype.toLocaleString=v.prototype.toString,v.prototype.equals=function(A){if(!v.isBuffer(A))throw new TypeError("Argument must be a Buffer");return this===A?!0:v.compare(this,A)===0},v.prototype.inspect=function(){let A="",T=lu.INSPECT_MAX_BYTES;return A=this.toString("hex",0,T).replace(/(.{2})/g,"$1 ").trim(),this.length>T&&(A+=" ... "),"<Buffer "+A+">"},s&&(v.prototype[s]=v.prototype.inspect),v.prototype.compare=function(A,T,C,H,ne){if(he(A,Uint8Array)&&(A=v.from(A,A.offset,A.byteLength)),!v.isBuffer(A))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof A);if(T===void 0&&(T=0),C===void 0&&(C=A?A.length:0),H===void 0&&(H=0),ne===void 0&&(ne=this.length),T<0||C>A.length||H<0||ne>this.length)throw new RangeError("out of range index");if(H>=ne&&T>=C)return 0;if(H>=ne)return-1;if(T>=C)return 1;if(T>>>=0,C>>>=0,H>>>=0,ne>>>=0,this===A)return 0;let J=ne-H,ce=C-T,ft=Math.min(J,ce),le=this.slice(H,ne),ve=A.slice(T,C);for(let st=0;st<ft;++st)if(le[st]!==ve[st]){J=le[st],ce=ve[st];break}return J<ce?-1:ce<J?1:0};function W($,A,T,C,H){if($.length===0)return-1;if(typeof T=="string"?(C=T,T=0):T>2147483647?T=2147483647:T<-2147483648&&(T=-2147483648),T=+T,nt(T)&&(T=H?0:$.length-1),T<0&&(T=$.length+T),T>=$.length){if(H)return-1;T=$.length-1}else if(T<0)if(H)T=0;else return-1;if(typeof A=="string"&&(A=v.from(A,C)),v.isBuffer(A))return A.length===0?-1:Q($,A,T,C,H);if(typeof A=="number")return A=A&255,typeof Uint8Array.prototype.indexOf=="function"?H?Uint8Array.prototype.indexOf.call($,A,T):Uint8Array.prototype.lastIndexOf.call($,A,T):Q($,[A],T,C,H);throw new TypeError("val must be string, number or Buffer")}function Q($,A,T,C,H){let ne=1,J=$.length,ce=A.length;if(C!==void 0&&(C=String(C).toLowerCase(),C==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if($.length<2||A.length<2)return-1;ne=2,J/=2,ce/=2,T/=2}function ft(ve,st){return ne===1?ve[st]:ve.readUInt16BE(st*ne)}let le;if(H){let ve=-1;for(le=T;le<J;le++)if(ft($,le)===ft(A,ve===-1?0:le-ve)){if(ve===-1&&(ve=le),le-ve+1===ce)return ve*ne}else ve!==-1&&(le-=le-ve),ve=-1}else for(T+ce>J&&(T=J-ce),le=T;le>=0;le--){let ve=!0;for(let st=0;st<ce;st++)if(ft($,le+st)!==ft(A,st)){ve=!1;break}if(ve)return le}return-1}v.prototype.includes=function(A,T,C){return this.indexOf(A,T,C)!==-1},v.prototype.indexOf=function(A,T,C){return W(this,A,T,C,!0)},v.prototype.lastIndexOf=function(A,T,C){return W(this,A,T,C,!1)};function K($,A,T,C){T=Number(T)||0;let H=$.length-T;C?(C=Number(C),C>H&&(C=H)):C=H;let ne=A.length;C>ne/2&&(C=ne/2);let J;for(J=0;J<C;++J){let ce=parseInt(A.substr(J*2,2),16);if(nt(ce))return J;$[T+J]=ce}return J}function F($,A,T,C){return fe(ge(A,$.length-T),$,T,C)}function Y($,A,T,C){return fe(re(A),$,T,C)}function m($,A,T,C){return fe(we(A),$,T,C)}function e($,A,T,C){return fe(ae(A,$.length-T),$,T,C)}v.prototype.write=function(A,T,C,H){if(T===void 0)H="utf8",C=this.length,T=0;else if(C===void 0&&typeof T=="string")H=T,C=this.length,T=0;else if(isFinite(T))T=T>>>0,isFinite(C)?(C=C>>>0,H===void 0&&(H="utf8")):(H=C,C=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let ne=this.length-T;if((C===void 0||C>ne)&&(C=ne),A.length>0&&(C<0||T<0)||T>this.length)throw new RangeError("Attempt to write outside buffer bounds");H||(H="utf8");let J=!1;for(;;)switch(H){case"hex":return K(this,A,T,C);case"utf8":case"utf-8":return F(this,A,T,C);case"ascii":case"latin1":case"binary":return Y(this,A,T,C);case"base64":return m(this,A,T,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e(this,A,T,C);default:if(J)throw new TypeError("Unknown encoding: "+H);H=(""+H).toLowerCase(),J=!0}},v.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function r($,A,T){return A===0&&T===$.length?i.fromByteArray($):i.fromByteArray($.slice(A,T))}function o($,A,T){T=Math.min($.length,T);let C=[],H=A;for(;H<T;){let ne=$[H],J=null,ce=ne>239?4:ne>223?3:ne>191?2:1;if(H+ce<=T){let ft,le,ve,st;switch(ce){case 1:ne<128&&(J=ne);break;case 2:ft=$[H+1],(ft&192)===128&&(st=(ne&31)<<6|ft&63,st>127&&(J=st));break;case 3:ft=$[H+1],le=$[H+2],(ft&192)===128&&(le&192)===128&&(st=(ne&15)<<12|(ft&63)<<6|le&63,st>2047&&(st<55296||st>57343)&&(J=st));break;case 4:ft=$[H+1],le=$[H+2],ve=$[H+3],(ft&192)===128&&(le&192)===128&&(ve&192)===128&&(st=(ne&15)<<18|(ft&63)<<12|(le&63)<<6|ve&63,st>65535&&st<1114112&&(J=st))}}J===null?(J=65533,ce=1):J>65535&&(J-=65536,C.push(J>>>10&1023|55296),J=56320|J&1023),C.push(J),H+=ce}return h(C)}let f=4096;function h($){let A=$.length;if(A<=f)return String.fromCharCode.apply(String,$);let T="",C=0;for(;C<A;)T+=String.fromCharCode.apply(String,$.slice(C,C+=f));return T}function p($,A,T){let C="";T=Math.min($.length,T);for(let H=A;H<T;++H)C+=String.fromCharCode($[H]&127);return C}function g($,A,T){let C="";T=Math.min($.length,T);for(let H=A;H<T;++H)C+=String.fromCharCode($[H]);return C}function l($,A,T){let C=$.length;(!A||A<0)&&(A=0),(!T||T<0||T>C)&&(T=C);let H="";for(let ne=A;ne<T;++ne)H+=de[$[ne]];return H}function t($,A,T){let C=$.slice(A,T),H="";for(let ne=0;ne<C.length-1;ne+=2)H+=String.fromCharCode(C[ne]+C[ne+1]*256);return H}v.prototype.slice=function(A,T){let C=this.length;A=~~A,T=T===void 0?C:~~T,A<0?(A+=C,A<0&&(A=0)):A>C&&(A=C),T<0?(T+=C,T<0&&(T=0)):T>C&&(T=C),T<A&&(T=A);let H=this.subarray(A,T);return Object.setPrototypeOf(H,v.prototype),H};function u($,A,T){if($%1!==0||$<0)throw new RangeError("offset is not uint");if($+A>T)throw new RangeError("Trying to access beyond buffer length")}v.prototype.readUintLE=v.prototype.readUIntLE=function(A,T,C){A=A>>>0,T=T>>>0,C||u(A,T,this.length);let H=this[A],ne=1,J=0;for(;++J<T&&(ne*=256);)H+=this[A+J]*ne;return H},v.prototype.readUintBE=v.prototype.readUIntBE=function(A,T,C){A=A>>>0,T=T>>>0,C||u(A,T,this.length);let H=this[A+--T],ne=1;for(;T>0&&(ne*=256);)H+=this[A+--T]*ne;return H},v.prototype.readUint8=v.prototype.readUInt8=function(A,T){return A=A>>>0,T||u(A,1,this.length),this[A]},v.prototype.readUint16LE=v.prototype.readUInt16LE=function(A,T){return A=A>>>0,T||u(A,2,this.length),this[A]|this[A+1]<<8},v.prototype.readUint16BE=v.prototype.readUInt16BE=function(A,T){return A=A>>>0,T||u(A,2,this.length),this[A]<<8|this[A+1]},v.prototype.readUint32LE=v.prototype.readUInt32LE=function(A,T){return A=A>>>0,T||u(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+this[A+3]*16777216},v.prototype.readUint32BE=v.prototype.readUInt32BE=function(A,T){return A=A>>>0,T||u(A,4,this.length),this[A]*16777216+(this[A+1]<<16|this[A+2]<<8|this[A+3])},v.prototype.readBigUInt64LE=be(function(A){A=A>>>0,j(A,"offset");let T=this[A],C=this[A+7];(T===void 0||C===void 0)&&V(A,this.length-8);let H=T+this[++A]*2**8+this[++A]*2**16+this[++A]*2**24,ne=this[++A]+this[++A]*2**8+this[++A]*2**16+C*2**24;return BigInt(H)+(BigInt(ne)<<BigInt(32))}),v.prototype.readBigUInt64BE=be(function(A){A=A>>>0,j(A,"offset");let T=this[A],C=this[A+7];(T===void 0||C===void 0)&&V(A,this.length-8);let H=T*2**24+this[++A]*2**16+this[++A]*2**8+this[++A],ne=this[++A]*2**24+this[++A]*2**16+this[++A]*2**8+C;return(BigInt(H)<<BigInt(32))+BigInt(ne)}),v.prototype.readIntLE=function(A,T,C){A=A>>>0,T=T>>>0,C||u(A,T,this.length);let H=this[A],ne=1,J=0;for(;++J<T&&(ne*=256);)H+=this[A+J]*ne;return ne*=128,H>=ne&&(H-=Math.pow(2,8*T)),H},v.prototype.readIntBE=function(A,T,C){A=A>>>0,T=T>>>0,C||u(A,T,this.length);let H=T,ne=1,J=this[A+--H];for(;H>0&&(ne*=256);)J+=this[A+--H]*ne;return ne*=128,J>=ne&&(J-=Math.pow(2,8*T)),J},v.prototype.readInt8=function(A,T){return A=A>>>0,T||u(A,1,this.length),this[A]&128?(255-this[A]+1)*-1:this[A]},v.prototype.readInt16LE=function(A,T){A=A>>>0,T||u(A,2,this.length);let C=this[A]|this[A+1]<<8;return C&32768?C|4294901760:C},v.prototype.readInt16BE=function(A,T){A=A>>>0,T||u(A,2,this.length);let C=this[A+1]|this[A]<<8;return C&32768?C|4294901760:C},v.prototype.readInt32LE=function(A,T){return A=A>>>0,T||u(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},v.prototype.readInt32BE=function(A,T){return A=A>>>0,T||u(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},v.prototype.readBigInt64LE=be(function(A){A=A>>>0,j(A,"offset");let T=this[A],C=this[A+7];(T===void 0||C===void 0)&&V(A,this.length-8);let H=this[A+4]+this[A+5]*2**8+this[A+6]*2**16+(C<<24);return(BigInt(H)<<BigInt(32))+BigInt(T+this[++A]*2**8+this[++A]*2**16+this[++A]*2**24)}),v.prototype.readBigInt64BE=be(function(A){A=A>>>0,j(A,"offset");let T=this[A],C=this[A+7];(T===void 0||C===void 0)&&V(A,this.length-8);let H=(T<<24)+this[++A]*2**16+this[++A]*2**8+this[++A];return(BigInt(H)<<BigInt(32))+BigInt(this[++A]*2**24+this[++A]*2**16+this[++A]*2**8+C)}),v.prototype.readFloatLE=function(A,T){return A=A>>>0,T||u(A,4,this.length),n.read(this,A,!0,23,4)},v.prototype.readFloatBE=function(A,T){return A=A>>>0,T||u(A,4,this.length),n.read(this,A,!1,23,4)},v.prototype.readDoubleLE=function(A,T){return A=A>>>0,T||u(A,8,this.length),n.read(this,A,!0,52,8)},v.prototype.readDoubleBE=function(A,T){return A=A>>>0,T||u(A,8,this.length),n.read(this,A,!1,52,8)};function E($,A,T,C,H,ne){if(!v.isBuffer($))throw new TypeError('"buffer" argument must be a Buffer instance');if(A>H||A<ne)throw new RangeError('"value" argument is out of bounds');if(T+C>$.length)throw new RangeError("Index out of range")}v.prototype.writeUintLE=v.prototype.writeUIntLE=function(A,T,C,H){if(A=+A,T=T>>>0,C=C>>>0,!H){let ce=Math.pow(2,8*C)-1;E(this,A,T,C,ce,0)}let ne=1,J=0;for(this[T]=A&255;++J<C&&(ne*=256);)this[T+J]=A/ne&255;return T+C},v.prototype.writeUintBE=v.prototype.writeUIntBE=function(A,T,C,H){if(A=+A,T=T>>>0,C=C>>>0,!H){let ce=Math.pow(2,8*C)-1;E(this,A,T,C,ce,0)}let ne=C-1,J=1;for(this[T+ne]=A&255;--ne>=0&&(J*=256);)this[T+ne]=A/J&255;return T+C},v.prototype.writeUint8=v.prototype.writeUInt8=function(A,T,C){return A=+A,T=T>>>0,C||E(this,A,T,1,255,0),this[T]=A&255,T+1},v.prototype.writeUint16LE=v.prototype.writeUInt16LE=function(A,T,C){return A=+A,T=T>>>0,C||E(this,A,T,2,65535,0),this[T]=A&255,this[T+1]=A>>>8,T+2},v.prototype.writeUint16BE=v.prototype.writeUInt16BE=function(A,T,C){return A=+A,T=T>>>0,C||E(this,A,T,2,65535,0),this[T]=A>>>8,this[T+1]=A&255,T+2},v.prototype.writeUint32LE=v.prototype.writeUInt32LE=function(A,T,C){return A=+A,T=T>>>0,C||E(this,A,T,4,4294967295,0),this[T+3]=A>>>24,this[T+2]=A>>>16,this[T+1]=A>>>8,this[T]=A&255,T+4},v.prototype.writeUint32BE=v.prototype.writeUInt32BE=function(A,T,C){return A=+A,T=T>>>0,C||E(this,A,T,4,4294967295,0),this[T]=A>>>24,this[T+1]=A>>>16,this[T+2]=A>>>8,this[T+3]=A&255,T+4};function B($,A,T,C,H){X(A,C,H,$,T,7);let ne=Number(A&BigInt(4294967295));$[T++]=ne,ne=ne>>8,$[T++]=ne,ne=ne>>8,$[T++]=ne,ne=ne>>8,$[T++]=ne;let J=Number(A>>BigInt(32)&BigInt(4294967295));return $[T++]=J,J=J>>8,$[T++]=J,J=J>>8,$[T++]=J,J=J>>8,$[T++]=J,T}function k($,A,T,C,H){X(A,C,H,$,T,7);let ne=Number(A&BigInt(4294967295));$[T+7]=ne,ne=ne>>8,$[T+6]=ne,ne=ne>>8,$[T+5]=ne,ne=ne>>8,$[T+4]=ne;let J=Number(A>>BigInt(32)&BigInt(4294967295));return $[T+3]=J,J=J>>8,$[T+2]=J,J=J>>8,$[T+1]=J,J=J>>8,$[T]=J,T+8}v.prototype.writeBigUInt64LE=be(function(A,T=0){return B(this,A,T,BigInt(0),BigInt("0xffffffffffffffff"))}),v.prototype.writeBigUInt64BE=be(function(A,T=0){return k(this,A,T,BigInt(0),BigInt("0xffffffffffffffff"))}),v.prototype.writeIntLE=function(A,T,C,H){if(A=+A,T=T>>>0,!H){let ft=Math.pow(2,8*C-1);E(this,A,T,C,ft-1,-ft)}let ne=0,J=1,ce=0;for(this[T]=A&255;++ne<C&&(J*=256);)A<0&&ce===0&&this[T+ne-1]!==0&&(ce=1),this[T+ne]=(A/J>>0)-ce&255;return T+C},v.prototype.writeIntBE=function(A,T,C,H){if(A=+A,T=T>>>0,!H){let ft=Math.pow(2,8*C-1);E(this,A,T,C,ft-1,-ft)}let ne=C-1,J=1,ce=0;for(this[T+ne]=A&255;--ne>=0&&(J*=256);)A<0&&ce===0&&this[T+ne+1]!==0&&(ce=1),this[T+ne]=(A/J>>0)-ce&255;return T+C},v.prototype.writeInt8=function(A,T,C){return A=+A,T=T>>>0,C||E(this,A,T,1,127,-128),A<0&&(A=255+A+1),this[T]=A&255,T+1},v.prototype.writeInt16LE=function(A,T,C){return A=+A,T=T>>>0,C||E(this,A,T,2,32767,-32768),this[T]=A&255,this[T+1]=A>>>8,T+2},v.prototype.writeInt16BE=function(A,T,C){return A=+A,T=T>>>0,C||E(this,A,T,2,32767,-32768),this[T]=A>>>8,this[T+1]=A&255,T+2},v.prototype.writeInt32LE=function(A,T,C){return A=+A,T=T>>>0,C||E(this,A,T,4,2147483647,-2147483648),this[T]=A&255,this[T+1]=A>>>8,this[T+2]=A>>>16,this[T+3]=A>>>24,T+4},v.prototype.writeInt32BE=function(A,T,C){return A=+A,T=T>>>0,C||E(this,A,T,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[T]=A>>>24,this[T+1]=A>>>16,this[T+2]=A>>>8,this[T+3]=A&255,T+4},v.prototype.writeBigInt64LE=be(function(A,T=0){return B(this,A,T,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),v.prototype.writeBigInt64BE=be(function(A,T=0){return k(this,A,T,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function q($,A,T,C,H,ne){if(T+C>$.length)throw new RangeError("Index out of range");if(T<0)throw new RangeError("Index out of range")}function z($,A,T,C,H){return A=+A,T=T>>>0,H||q($,A,T,4),n.write($,A,T,C,23,4),T+4}v.prototype.writeFloatLE=function(A,T,C){return z(this,A,T,!0,C)},v.prototype.writeFloatBE=function(A,T,C){return z(this,A,T,!1,C)};function ee($,A,T,C,H){return A=+A,T=T>>>0,H||q($,A,T,8),n.write($,A,T,C,52,8),T+8}v.prototype.writeDoubleLE=function(A,T,C){return ee(this,A,T,!0,C)},v.prototype.writeDoubleBE=function(A,T,C){return ee(this,A,T,!1,C)},v.prototype.copy=function(A,T,C,H){if(!v.isBuffer(A))throw new TypeError("argument should be a Buffer");if(C||(C=0),!H&&H!==0&&(H=this.length),T>=A.length&&(T=A.length),T||(T=0),H>0&&H<C&&(H=C),H===C||A.length===0||this.length===0)return 0;if(T<0)throw new RangeError("targetStart out of bounds");if(C<0||C>=this.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("sourceEnd out of bounds");H>this.length&&(H=this.length),A.length-T<H-C&&(H=A.length-T+C);let ne=H-C;return this===A&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(T,C,H):Uint8Array.prototype.set.call(A,this.subarray(C,H),T),ne},v.prototype.fill=function(A,T,C,H){if(typeof A=="string"){if(typeof T=="string"?(H=T,T=0,C=this.length):typeof C=="string"&&(H=C,C=this.length),H!==void 0&&typeof H!="string")throw new TypeError("encoding must be a string");if(typeof H=="string"&&!v.isEncoding(H))throw new TypeError("Unknown encoding: "+H);if(A.length===1){let J=A.charCodeAt(0);(H==="utf8"&&J<128||H==="latin1")&&(A=J)}}else typeof A=="number"?A=A&255:typeof A=="boolean"&&(A=Number(A));if(T<0||this.length<T||this.length<C)throw new RangeError("Out of range index");if(C<=T)return this;T=T>>>0,C=C===void 0?this.length:C>>>0,A||(A=0);let ne;if(typeof A=="number")for(ne=T;ne<C;++ne)this[ne]=A;else{let J=v.isBuffer(A)?A:v.from(A,H),ce=J.length;if(ce===0)throw new TypeError('The value "'+A+'" is invalid for argument "value"');for(ne=0;ne<C-T;++ne)this[ne+T]=J[ne%ce]}return this};let te={};function O($,A,T){te[$]=class extends T{constructor(){super(),Object.defineProperty(this,"message",{value:A.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${$}]`,this.stack,delete this.name}get code(){return $}set code(H){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:H,writable:!0})}toString(){return`${this.name} [${$}]: ${this.message}`}}}O("ERR_BUFFER_OUT_OF_BOUNDS",function($){return $?`${$} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),O("ERR_INVALID_ARG_TYPE",function($,A){return`The "${$}" argument must be of type number. Received type ${typeof A}`},TypeError),O("ERR_OUT_OF_RANGE",function($,A,T){let C=`The value of "${$}" is out of range.`,H=T;return Number.isInteger(T)&&Math.abs(T)>2**32?H=U(String(T)):typeof T=="bigint"&&(H=String(T),(T>BigInt(2)**BigInt(32)||T<-(BigInt(2)**BigInt(32)))&&(H=U(H)),H+="n"),C+=` It must be ${A}. Received ${H}`,C},RangeError);function U($){let A="",T=$.length,C=$[0]==="-"?1:0;for(;T>=C+4;T-=3)A=`_${$.slice(T-3,T)}${A}`;return`${$.slice(0,T)}${A}`}function oe($,A,T){j(A,"offset"),($[A]===void 0||$[A+T]===void 0)&&V(A,$.length-(T+1))}function X($,A,T,C,H,ne){if($>T||$<A){let J=typeof A=="bigint"?"n":"",ce;throw A===0||A===BigInt(0)?ce=`>= 0${J} and < 2${J} ** ${(ne+1)*8}${J}`:ce=`>= -(2${J} ** ${(ne+1)*8-1}${J}) and < 2 ** ${(ne+1)*8-1}${J}`,new te.ERR_OUT_OF_RANGE("value",ce,$)}oe(C,H,ne)}function j($,A){if(typeof $!="number")throw new te.ERR_INVALID_ARG_TYPE(A,"number",$)}function V($,A,T){throw Math.floor($)!==$?(j($,T),new te.ERR_OUT_OF_RANGE("offset","an integer",$)):A<0?new te.ERR_BUFFER_OUT_OF_BOUNDS:new te.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${A}`,$)}let G=/[^+/0-9A-Za-z-_]/g;function ie($){if($=$.split("=")[0],$=$.trim().replace(G,""),$.length<2)return"";for(;$.length%4!==0;)$=$+"=";return $}function ge($,A){A=A||1/0;let T,C=$.length,H=null,ne=[];for(let J=0;J<C;++J){if(T=$.charCodeAt(J),T>55295&&T<57344){if(!H){if(T>56319){(A-=3)>-1&&ne.push(239,191,189);continue}else if(J+1===C){(A-=3)>-1&&ne.push(239,191,189);continue}H=T;continue}if(T<56320){(A-=3)>-1&&ne.push(239,191,189),H=T;continue}T=(H-55296<<10|T-56320)+65536}else H&&(A-=3)>-1&&ne.push(239,191,189);if(H=null,T<128){if((A-=1)<0)break;ne.push(T)}else if(T<2048){if((A-=2)<0)break;ne.push(T>>6|192,T&63|128)}else if(T<65536){if((A-=3)<0)break;ne.push(T>>12|224,T>>6&63|128,T&63|128)}else if(T<1114112){if((A-=4)<0)break;ne.push(T>>18|240,T>>12&63|128,T>>6&63|128,T&63|128)}else throw new Error("Invalid code point")}return ne}function re($){let A=[];for(let T=0;T<$.length;++T)A.push($.charCodeAt(T)&255);return A}function ae($,A){let T,C,H,ne=[];for(let J=0;J<$.length&&!((A-=2)<0);++J)T=$.charCodeAt(J),C=T>>8,H=T%256,ne.push(H),ne.push(C);return ne}function we($){return i.toByteArray(ie($))}function fe($,A,T,C){let H;for(H=0;H<C&&!(H+T>=A.length||H>=$.length);++H)A[H+T]=$[H];return H}function he($,A){return $ instanceof A||$!=null&&$.constructor!=null&&$.constructor.name!=null&&$.constructor.name===A.name}function nt($){return $!==$}let de=function(){let $="0123456789abcdef",A=new Array(256);for(let T=0;T<16;++T){let C=T*16;for(let H=0;H<16;++H)A[C+H]=$[T]+$[H]}return A}();function be($){return typeof BigInt>"u"?ut:$}function ut(){throw new Error("BigInt not supported")}return lu}var Hd={},cI=!1;function wr(){if(cI)return Hd;cI=!0;var i=En(),n=i.Buffer;function s(a,d){for(var v in a)d[v]=a[v]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?Hd=i:(s(i,Hd),Hd.Buffer=c);function c(a,d,v){return n(a,d,v)}return c.prototype=Object.create(n.prototype),s(n,c),c.from=function(a,d,v){if(typeof a=="number")throw new TypeError("Argument must not be a number");return n(a,d,v)},c.alloc=function(a,d,v){if(typeof a!="number")throw new TypeError("Argument must be a number");var y=n(a);return d!==void 0?typeof v=="string"?y.fill(d,v):y.fill(d):y.fill(0),y},c.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n(a)},c.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return i.SlowBuffer(a)},Hd}var z3={},dI=!1;function kee(){if(dI)return z3;dI=!0;var i=wr().Buffer,n=i.isEncoding||function(P){switch(P=""+P,P&&P.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 s(P){if(!P)return"utf8";for(var L;;)switch(P){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 P;default:if(L)return;P=(""+P).toLowerCase(),L=!0}}function c(P){var L=s(P);if(typeof L!="string"&&(i.isEncoding===n||!n(P)))throw new Error("Unknown encoding: "+P);return L||P}z3.StringDecoder=a;function a(P){this.encoding=c(P);var L;switch(this.encoding){case"utf16le":this.text=_,this.end=x,L=4;break;case"utf8":this.fillLast=M,L=4;break;case"base64":this.text=S,this.end=I,L=3;break;default:this.write=R,this.end=N;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(L)}a.prototype.write=function(P){if(P.length===0)return"";var L,D;if(this.lastNeed){if(L=this.fillLast(P),L===void 0)return"";D=this.lastNeed,this.lastNeed=0}else D=0;return D<P.length?L?L+this.text(P,D):this.text(P,D):L||""},a.prototype.end=b,a.prototype.text=w,a.prototype.fillLast=function(P){if(this.lastNeed<=P.length)return P.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);P.copy(this.lastChar,this.lastTotal-this.lastNeed,0,P.length),this.lastNeed-=P.length};function d(P){return P<=127?0:P>>5===6?2:P>>4===14?3:P>>3===30?4:P>>6===2?-1:-2}function v(P,L,D){var Z=L.length-1;if(Z<D)return 0;var W=d(L[Z]);return W>=0?(W>0&&(P.lastNeed=W-1),W):--Z<D||W===-2?0:(W=d(L[Z]),W>=0?(W>0&&(P.lastNeed=W-2),W):--Z<D||W===-2?0:(W=d(L[Z]),W>=0?(W>0&&(W===2?W=0:P.lastNeed=W-3),W):0))}function y(P,L,D){if((L[0]&192)!==128)return P.lastNeed=0,"\uFFFD";if(P.lastNeed>1&&L.length>1){if((L[1]&192)!==128)return P.lastNeed=1,"\uFFFD";if(P.lastNeed>2&&L.length>2&&(L[2]&192)!==128)return P.lastNeed=2,"\uFFFD"}}function M(P){var L=this.lastTotal-this.lastNeed,D=y(this,P);if(D!==void 0)return D;if(this.lastNeed<=P.length)return P.copy(this.lastChar,L,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);P.copy(this.lastChar,L,0,P.length),this.lastNeed-=P.length}function w(P,L){var D=v(this,P,L);if(!this.lastNeed)return P.toString("utf8",L);this.lastTotal=D;var Z=P.length-(D-this.lastNeed);return P.copy(this.lastChar,0,Z),P.toString("utf8",L,Z)}function b(P){var L=P&&P.length?this.write(P):"";return this.lastNeed?L+"\uFFFD":L}function _(P,L){if((P.length-L)%2===0){var D=P.toString("utf16le",L);if(D){var Z=D.charCodeAt(D.length-1);if(Z>=55296&&Z<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=P[P.length-2],this.lastChar[1]=P[P.length-1],D.slice(0,-1)}return D}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=P[P.length-1],P.toString("utf16le",L,P.length-1)}function x(P){var L=P&&P.length?this.write(P):"";if(this.lastNeed){var D=this.lastTotal-this.lastNeed;return L+this.lastChar.toString("utf16le",0,D)}return L}function S(P,L){var D=(P.length-L)%3;return D===0?P.toString("base64",L):(this.lastNeed=3-D,this.lastTotal=3,D===1?this.lastChar[0]=P[P.length-1]:(this.lastChar[0]=P[P.length-2],this.lastChar[1]=P[P.length-1]),P.toString("base64",L,P.length-D))}function I(P){var L=P&&P.length?this.write(P):"";return this.lastNeed?L+this.lastChar.toString("base64",0,3-this.lastNeed):L}function R(P){return P.toString(this.encoding)}function N(P){return P&&P.length?this.write(P):""}return z3}var h6=kee();h6.StringDecoder;var Dge=h6.StringDecoder;function VM(i){throw new Error("Node.js process "+i+" is not supported by JSPM core outside of Node.js")}var rh=[],bc=!1,Fu,D2=-1;function Pee(){!bc||!Fu||(bc=!1,Fu.length?rh=Fu.concat(rh):D2=-1,rh.length&&uq())}function uq(){if(!bc){var i=setTimeout(Pee,0);bc=!0;for(var n=rh.length;n;){for(Fu=rh,rh=[];++D2<n;)Fu&&Fu[D2].run();D2=-1,n=rh.length}Fu=null,bc=!1,clearTimeout(i)}}function $ee(i){var n=new Array(arguments.length-1);if(arguments.length>1)for(var s=1;s<arguments.length;s++)n[s-1]=arguments[s];rh.push(new lq(i,n)),rh.length===1&&!bc&&setTimeout(uq,0)}function lq(i,n){this.fun=i,this.array=n}lq.prototype.run=function(){this.fun.apply(null,this.array)};var Nee="browser",Cee="x64",Lee="browser",Dee={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},Oee=["/usr/bin/node"],qee=[],Uee="v16.8.0",zee={},Fee=function(i,n){console.warn((n?n+": ":"")+i)},Hee=function(i){VM("binding")},Kee=function(i){return 0},jee=function(){return"/"},Wee=function(i){},Zee={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};function la(){}var Gee=la,Vee=[];function Jee(i){VM("_linkedBinding")}var Yee={},Xee=!1,Qee={};function ete(i){VM("dlopen")}function tte(){return[]}function rte(){return[]}var ite=la,nte=la,JM=function(){return{}},ate=JM,ote=JM,ste=la,fte=la,hte=la,ute={};function lte(i,n){if(!i)throw new Error(n||"assertion error")}var cte={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},dte=la,pte=la;function vte(){return!1}var mte=la,bte=la,gte=la,yte=la,wte=la,Mte=void 0,_te=void 0,xte=void 0,Ste=la,Ete=2,Ate=1,Bte="/bin/usr/node",Ite=9229,Rte="node",Tte=[],kte=la,p0={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};p0.now===void 0&&(F3=Date.now(),p0.timing&&p0.timing.navigationStart&&(F3=p0.timing.navigationStart),p0.now=()=>Date.now()-F3);var F3;function Pte(){return p0.now()/1e3}var cM=1e9;function dM(i){var n=Math.floor((Date.now()-p0.now())*.001),s=p0.now()*.001,c=Math.floor(s)+n,a=Math.floor(s%1*1e9);return i&&(c=c-i[0],a=a-i[1],a<0&&(c--,a+=cM)),[c,a]}dM.bigint=function(i){var n=dM(i);return typeof BigInt>"u"?n[0]*cM+n[1]:BigInt(n[0]*cM)+BigInt(n[1])};var $te=10,Nte={},Cte=0;function g0(){return il}var Lte=g0,Dte=g0,Ote=g0,qte=g0,Ute=g0,zte=la,Fte=g0,Hte=g0;function Kte(i){return[]}var il={version:Uee,versions:zee,arch:Cee,platform:Lee,release:Zee,_rawDebug:Gee,moduleLoadList:Vee,binding:Hee,_linkedBinding:Jee,_events:Nte,_eventsCount:Cte,_maxListeners:$te,on:g0,addListener:Lte,once:Dte,off:Ote,removeListener:qte,removeAllListeners:Ute,emit:zte,prependListener:Fte,prependOnceListener:Hte,listeners:Kte,domain:Yee,_exiting:Xee,config:Qee,dlopen:ete,uptime:Pte,_getActiveRequests:tte,_getActiveHandles:rte,reallyExit:ite,_kill:nte,cpuUsage:JM,resourceUsage:ate,memoryUsage:ote,kill:ste,exit:fte,openStdin:hte,allowedNodeEnvironmentFlags:ute,assert:lte,features:cte,_fatalExceptions:dte,setUncaughtExceptionCaptureCallback:pte,hasUncaughtExceptionCaptureCallback:vte,emitWarning:Fee,nextTick:$ee,_tickCallback:mte,_debugProcess:bte,_debugEnd:gte,_startProfilerIdleNotifier:yte,_stopProfilerIdleNotifier:wte,stdout:Mte,stdin:xte,stderr:_te,abort:Ste,umask:Kee,chdir:Wee,cwd:jee,env:Dee,title:Nee,argv:Oee,execArgv:qee,pid:Ete,ppid:Ate,execPath:Bte,debugPort:Ite,hrtime:dM,argv0:Rte,_preload_modules:Tte,setSourceMapsEnabled:kte},wv={},pI=!1;function Sr(){return pI||(pI=!0,typeof Object.create=="function"?wv=function(n,s){s&&(n.super_=s,n.prototype=Object.create(s.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:wv=function(n,s){if(s){n.super_=s;var c=function(){};c.prototype=s.prototype,n.prototype=new c,n.prototype.constructor=n}}),wv}var cq,dq,gc=typeof Reflect=="object"?Reflect:null,vI=gc&&typeof gc.apply=="function"?gc.apply:function(i,n,s){return Function.prototype.apply.call(i,n,s)};dq=gc&&typeof gc.ownKeys=="function"?gc.ownKeys:Object.getOwnPropertySymbols?function(i){return Object.getOwnPropertyNames(i).concat(Object.getOwnPropertySymbols(i))}:function(i){return Object.getOwnPropertyNames(i)};var mI=Number.isNaN||function(i){return i!=i};function mi(){mi.init.call(this)}cq=mi,mi.EventEmitter=mi,mi.prototype._events=void 0,mi.prototype._eventsCount=0,mi.prototype._maxListeners=void 0;var bI=10;function O2(i){if(typeof i!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof i)}function pq(i){return i._maxListeners===void 0?mi.defaultMaxListeners:i._maxListeners}function gI(i,n,s,c){var a,d,v,y;if(O2(s),(d=i._events)===void 0?(d=i._events=Object.create(null),i._eventsCount=0):(d.newListener!==void 0&&(i.emit("newListener",n,s.listener?s.listener:s),d=i._events),v=d[n]),v===void 0)v=d[n]=s,++i._eventsCount;else if(typeof v=="function"?v=d[n]=c?[s,v]:[v,s]:c?v.unshift(s):v.push(s),(a=pq(i))>0&&v.length>a&&!v.warned){v.warned=!0;var M=new Error("Possible EventEmitter memory leak detected. "+v.length+" "+String(n)+" listeners added. Use emitter.setMaxListeners() to increase limit");M.name="MaxListenersExceededWarning",M.emitter=i,M.type=n,M.count=v.length,y=M,console&&console.warn&&console.warn(y)}return i}function jte(){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)}function yI(i,n,s){var c={fired:!1,wrapFn:void 0,target:i,type:n,listener:s},a=jte.bind(c);return a.listener=s,c.wrapFn=a,a}function wI(i,n,s){var c=i._events;if(c===void 0)return[];var a=c[n];return a===void 0?[]:typeof a=="function"?s?[a.listener||a]:[a]:s?function(d){for(var v=new Array(d.length),y=0;y<v.length;++y)v[y]=d[y].listener||d[y];return v}(a):vq(a,a.length)}function MI(i){var n=this._events;if(n!==void 0){var s=n[i];if(typeof s=="function")return 1;if(s!==void 0)return s.length}return 0}function vq(i,n){for(var s=new Array(n),c=0;c<n;++c)s[c]=i[c];return s}Object.defineProperty(mi,"defaultMaxListeners",{enumerable:!0,get:function(){return bI},set:function(i){if(typeof i!="number"||i<0||mI(i))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+i+".");bI=i}}),mi.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},mi.prototype.setMaxListeners=function(i){if(typeof i!="number"||i<0||mI(i))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+i+".");return this._maxListeners=i,this},mi.prototype.getMaxListeners=function(){return pq(this)},mi.prototype.emit=function(i){for(var n=[],s=1;s<arguments.length;s++)n.push(arguments[s]);var c=i==="error",a=this._events;if(a!==void 0)c=c&&a.error===void 0;else if(!c)return!1;if(c){var d;if(n.length>0&&(d=n[0]),d instanceof Error)throw d;var v=new Error("Unhandled error."+(d?" ("+d.message+")":""));throw v.context=d,v}var y=a[i];if(y===void 0)return!1;if(typeof y=="function")vI(y,this,n);else{var M=y.length,w=vq(y,M);for(s=0;s<M;++s)vI(w[s],this,n)}return!0},mi.prototype.addListener=function(i,n){return gI(this,i,n,!1)},mi.prototype.on=mi.prototype.addListener,mi.prototype.prependListener=function(i,n){return gI(this,i,n,!0)},mi.prototype.once=function(i,n){return O2(n),this.on(i,yI(this,i,n)),this},mi.prototype.prependOnceListener=function(i,n){return O2(n),this.prependListener(i,yI(this,i,n)),this},mi.prototype.removeListener=function(i,n){var s,c,a,d,v;if(O2(n),(c=this._events)===void 0)return this;if((s=c[i])===void 0)return this;if(s===n||s.listener===n)--this._eventsCount==0?this._events=Object.create(null):(delete c[i],c.removeListener&&this.emit("removeListener",i,s.listener||n));else if(typeof s!="function"){for(a=-1,d=s.length-1;d>=0;d--)if(s[d]===n||s[d].listener===n){v=s[d].listener,a=d;break}if(a<0)return this;a===0?s.shift():function(y,M){for(;M+1<y.length;M++)y[M]=y[M+1];y.pop()}(s,a),s.length===1&&(c[i]=s[0]),c.removeListener!==void 0&&this.emit("removeListener",i,v||n)}return this},mi.prototype.off=mi.prototype.removeListener,mi.prototype.removeAllListeners=function(i){var n,s,c;if((s=this._events)===void 0)return this;if(s.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):s[i]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete s[i]),this;if(arguments.length===0){var a,d=Object.keys(s);for(c=0;c<d.length;++c)(a=d[c])!=="removeListener"&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(n=s[i])=="function")this.removeListener(i,n);else if(n!==void 0)for(c=n.length-1;c>=0;c--)this.removeListener(i,n[c]);return this},mi.prototype.listeners=function(i){return wI(this,i,!0)},mi.prototype.rawListeners=function(i){return wI(this,i,!1)},mi.listenerCount=function(i,n){return typeof i.listenerCount=="function"?i.listenerCount(n):MI.call(i,n)},mi.prototype.listenerCount=MI,mi.prototype.eventNames=function(){return this._eventsCount>0?dq(this._events):[]};var Vi=cq;Vi.EventEmitter;Vi.defaultMaxListeners;Vi.init;Vi.listenerCount;Vi.EventEmitter;Vi.defaultMaxListeners;Vi.init;Vi.listenerCount;Vi.once=function(i,n){return new Promise((s,c)=>{function a(...v){d!==void 0&&i.removeListener("error",d),s(v)}let d;n!=="error"&&(d=v=>{i.removeListener(name,a),c(v)},i.once("error",d)),i.once(n,a)})};Vi.on=function(i,n){let s=[],c=[],a=null,d=!1,v={async next(){let w=s.shift();if(w)return createIterResult(w,!1);if(a){let b=Promise.reject(a);return a=null,b}return d?createIterResult(void 0,!0):new Promise((b,_)=>c.push({resolve:b,reject:_}))},async return(){i.removeListener(n,y),i.removeListener("error",M),d=!0;for(let w of c)w.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(w){a=w,i.removeListener(n,y),i.removeListener("error",M)},[Symbol.asyncIterator](){return this}};return i.on(n,y),i.on("error",M),v;function y(...w){let b=c.shift();b?b.resolve(createIterResult(w,!1)):s.push(w)}function M(w){d=!0;let b=c.shift();b?b.reject(w):a=w,v.return()}};var mq,Vf,Jf,xc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,rn=mq={};function pM(){throw new Error("setTimeout has not been defined")}function vM(){throw new Error("clearTimeout has not been defined")}function bq(i){if(Vf===setTimeout)return setTimeout(i,0);if((Vf===pM||!Vf)&&setTimeout)return Vf=setTimeout,setTimeout(i,0);try{return Vf(i,0)}catch{try{return Vf.call(null,i,0)}catch{return Vf.call(this||xc,i,0)}}}(function(){try{Vf=typeof setTimeout=="function"?setTimeout:pM}catch{Vf=pM}try{Jf=typeof clearTimeout=="function"?clearTimeout:vM}catch{Jf=vM}})();var Hu,ih=[],yc=!1,q2=-1;function Wte(){yc&&Hu&&(yc=!1,Hu.length?ih=Hu.concat(ih):q2=-1,ih.length&&gq())}function gq(){if(!yc){var i=bq(Wte);yc=!0;for(var n=ih.length;n;){for(Hu=ih,ih=[];++q2<n;)Hu&&Hu[q2].run();q2=-1,n=ih.length}Hu=null,yc=!1,function(s){if(Jf===clearTimeout)return clearTimeout(s);if((Jf===vM||!Jf)&&clearTimeout)return Jf=clearTimeout,clearTimeout(s);try{Jf(s)}catch{try{return Jf.call(null,s)}catch{return Jf.call(this||xc,s)}}}(i)}}function _I(i,n){(this||xc).fun=i,(this||xc).array=n}function Wf(){}rn.nextTick=function(i){var n=new Array(arguments.length-1);if(arguments.length>1)for(var s=1;s<arguments.length;s++)n[s-1]=arguments[s];ih.push(new _I(i,n)),ih.length!==1||yc||bq(gq)},_I.prototype.run=function(){(this||xc).fun.apply(null,(this||xc).array)},rn.title="browser",rn.browser=!0,rn.env={},rn.argv=[],rn.version="",rn.versions={},rn.on=Wf,rn.addListener=Wf,rn.once=Wf,rn.off=Wf,rn.removeListener=Wf,rn.removeAllListeners=Wf,rn.emit=Wf,rn.prependListener=Wf,rn.prependOnceListener=Wf,rn.listeners=function(i){return[]},rn.binding=function(i){throw new Error("process.binding is not supported")},rn.cwd=function(){return"/"},rn.chdir=function(i){throw new Error("process.chdir is not supported")},rn.umask=function(){return 0};var nr=mq;nr.addListener;nr.argv;nr.binding;nr.browser;nr.chdir;nr.cwd;nr.emit;nr.env;nr.listeners;nr.nextTick;nr.off;nr.on;nr.once;nr.prependListener;nr.prependOnceListener;nr.removeAllListeners;nr.removeListener;nr.title;nr.umask;nr.version;nr.versions;var Zte=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",mM=Object.prototype.toString,R6=function(i){return!(Zte&&i&&typeof i=="object"&&Symbol.toStringTag in i)&&mM.call(i)==="[object Arguments]"},yq=function(i){return!!R6(i)||i!==null&&typeof i=="object"&&typeof i.length=="number"&&i.length>=0&&mM.call(i)!=="[object Array]"&&mM.call(i.callee)==="[object Function]"},Gte=function(){return R6(arguments)}();R6.isLegacyArguments=yq;var Vte=Gte?R6:yq,Jte=Object.prototype.toString,Yte=Function.prototype.toString,Xte=/^\s*(?:function)?\*/,wq=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Mq=Object.getPrototypeOf,xI=function(){if(!wq)return!1;try{return Function("return function*() {}")()}catch{}}(),Qte=xI?Mq(xI):{},ere=function(i){return typeof i=="function"&&(!!Xte.test(Yte.call(i))||(wq?Mq(i)===Qte:Jte.call(i)==="[object GeneratorFunction]"))},pr=typeof Object.create=="function"?function(i,n){n&&(i.super_=n,i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}))}:function(i,n){if(n){i.super_=n;var s=function(){};s.prototype=n.prototype,i.prototype=new s,i.prototype.constructor=i}},_q=function(i){return i&&typeof i=="object"&&typeof i.copy=="function"&&typeof i.fill=="function"&&typeof i.readUInt8=="function"},Tr={},tre=_q,rre=Vte,ire=ere;function nl(i){return i.call.bind(i)}var xq=typeof BigInt<"u",YM=typeof Symbol<"u",Xa=YM&&Symbol.toStringTag!==void 0,$a=typeof Uint8Array<"u",nre=typeof ArrayBuffer<"u";if($a&&Xa)var are=Object.getPrototypeOf(Uint8Array.prototype),qo=nl(Object.getOwnPropertyDescriptor(are,Symbol.toStringTag).get);var Di=nl(Object.prototype.toString),ore=nl(Number.prototype.valueOf),sre=nl(String.prototype.valueOf),fre=nl(Boolean.prototype.valueOf);if(xq)var hre=nl(BigInt.prototype.valueOf);if(YM)var ure=nl(Symbol.prototype.valueOf);function U1(i,n){if(typeof i!="object")return!1;try{return n(i),!0}catch{return!1}}function SI(i){return $a&&Xa?qo(i)!==void 0:Sq(i)||Eq(i)||Aq(i)||Bq(i)||Iq(i)||Rq(i)||Tq(i)||kq(i)||Pq(i)||$q(i)||Nq(i)}function Sq(i){return $a&&Xa?qo(i)==="Uint8Array":Di(i)==="[object Uint8Array]"||tre(i)&&i.buffer!==void 0}function Eq(i){return $a&&Xa?qo(i)==="Uint8ClampedArray":Di(i)==="[object Uint8ClampedArray]"}function Aq(i){return $a&&Xa?qo(i)==="Uint16Array":Di(i)==="[object Uint16Array]"}function Bq(i){return $a&&Xa?qo(i)==="Uint32Array":Di(i)==="[object Uint32Array]"}function Iq(i){return $a&&Xa?qo(i)==="Int8Array":Di(i)==="[object Int8Array]"}function Rq(i){return $a&&Xa?qo(i)==="Int16Array":Di(i)==="[object Int16Array]"}function Tq(i){return $a&&Xa?qo(i)==="Int32Array":Di(i)==="[object Int32Array]"}function kq(i){return $a&&Xa?qo(i)==="Float32Array":Di(i)==="[object Float32Array]"}function Pq(i){return $a&&Xa?qo(i)==="Float64Array":Di(i)==="[object Float64Array]"}function $q(i){return $a&&Xa?qo(i)==="BigInt64Array":Di(i)==="[object BigInt64Array]"}function Nq(i){return $a&&Xa?qo(i)==="BigUint64Array":Di(i)==="[object BigUint64Array]"}function Mv(i){return Di(i)==="[object Map]"}function _v(i){return Di(i)==="[object Set]"}function xv(i){return Di(i)==="[object WeakMap]"}function H3(i){return Di(i)==="[object WeakSet]"}function u6(i){return Di(i)==="[object ArrayBuffer]"}function EI(i){return typeof ArrayBuffer<"u"&&(u6.working?u6(i):i instanceof ArrayBuffer)}function l6(i){return Di(i)==="[object DataView]"}function AI(i){return typeof DataView<"u"&&(l6.working?l6(i):i instanceof DataView)}function c6(i){return Di(i)==="[object SharedArrayBuffer]"}function BI(i){return typeof SharedArrayBuffer<"u"&&(c6.working?c6(i):i instanceof SharedArrayBuffer)}function II(i){return U1(i,ore)}function RI(i){return U1(i,sre)}function TI(i){return U1(i,fre)}function kI(i){return xq&&U1(i,hre)}function PI(i){return YM&&U1(i,ure)}Tr.isArgumentsObject=rre,Tr.isGeneratorFunction=ire,Tr.isPromise=function(i){return typeof Promise<"u"&&i instanceof Promise||i!==null&&typeof i=="object"&&typeof i.then=="function"&&typeof i.catch=="function"},Tr.isArrayBufferView=function(i){return nre&&ArrayBuffer.isView?ArrayBuffer.isView(i):SI(i)||AI(i)},Tr.isTypedArray=SI,Tr.isUint8Array=Sq,Tr.isUint8ClampedArray=Eq,Tr.isUint16Array=Aq,Tr.isUint32Array=Bq,Tr.isInt8Array=Iq,Tr.isInt16Array=Rq,Tr.isInt32Array=Tq,Tr.isFloat32Array=kq,Tr.isFloat64Array=Pq,Tr.isBigInt64Array=$q,Tr.isBigUint64Array=Nq,Mv.working=typeof Map<"u"&&Mv(new Map),Tr.isMap=function(i){return typeof Map<"u"&&(Mv.working?Mv(i):i instanceof Map)},_v.working=typeof Set<"u"&&_v(new Set),Tr.isSet=function(i){return typeof Set<"u"&&(_v.working?_v(i):i instanceof Set)},xv.working=typeof WeakMap<"u"&&xv(new WeakMap),Tr.isWeakMap=function(i){return typeof WeakMap<"u"&&(xv.working?xv(i):i instanceof WeakMap)},H3.working=typeof WeakSet<"u"&&H3(new WeakSet),Tr.isWeakSet=function(i){return H3(i)},u6.working=typeof ArrayBuffer<"u"&&u6(new ArrayBuffer),Tr.isArrayBuffer=EI,l6.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&l6(new DataView(new ArrayBuffer(1),0,1)),Tr.isDataView=AI,c6.working=typeof SharedArrayBuffer<"u"&&c6(new SharedArrayBuffer),Tr.isSharedArrayBuffer=BI,Tr.isAsyncFunction=function(i){return Di(i)==="[object AsyncFunction]"},Tr.isMapIterator=function(i){return Di(i)==="[object Map Iterator]"},Tr.isSetIterator=function(i){return Di(i)==="[object Set Iterator]"},Tr.isGeneratorObject=function(i){return Di(i)==="[object Generator]"},Tr.isWebAssemblyCompiledModule=function(i){return Di(i)==="[object WebAssembly.Module]"},Tr.isNumberObject=II,Tr.isStringObject=RI,Tr.isBooleanObject=TI,Tr.isBigIntObject=kI,Tr.isSymbolObject=PI,Tr.isBoxedPrimitive=function(i){return II(i)||RI(i)||TI(i)||kI(i)||PI(i)},Tr.isAnyArrayBuffer=function(i){return $a&&(EI(i)||BI(i))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(i){Object.defineProperty(Tr,i,{enumerable:!1,value:function(){throw new Error(i+" is not supported in userland")}})});var x1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,wt={},bf=nr,$I=Object.getOwnPropertyDescriptors||function(i){for(var n=Object.keys(i),s={},c=0;c<n.length;c++)s[n[c]]=Object.getOwnPropertyDescriptor(i,n[c]);return s},lre=/%[sdj%]/g;wt.format=function(i){if(!p6(i)){for(var n=[],s=0;s<arguments.length;s++)n.push(b0(arguments[s]));return n.join(" ")}s=1;for(var c=arguments,a=c.length,d=String(i).replace(lre,function(y){if(y==="%%")return"%";if(s>=a)return y;switch(y){case"%s":return String(c[s++]);case"%d":return Number(c[s++]);case"%j":try{return JSON.stringify(c[s++])}catch{return"[Circular]"}default:return y}}),v=c[s];s<a;v=c[++s])T6(v)||!Bc(v)?d+=" "+v:d+=" "+b0(v);return d},wt.deprecate=function(i,n){if(bf!==void 0&&bf.noDeprecation===!0)return i;if(bf===void 0)return function(){return wt.deprecate(i,n).apply(this||x1,arguments)};var s=!1;return function(){if(!s){if(bf.throwDeprecation)throw new Error(n);bf.traceDeprecation?console.trace(n):console.error(n),s=!0}return i.apply(this||x1,arguments)}};var Sv={},Cq=/^$/;bf.env.NODE_DEBUG&&(Ev=bf.env.NODE_DEBUG,Ev=Ev.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),Cq=new RegExp("^"+Ev+"$","i"));var Ev;function b0(i,n){var s={seen:[],stylize:dre};return arguments.length>=3&&(s.depth=arguments[2]),arguments.length>=4&&(s.colors=arguments[3]),XM(n)?s.showHidden=n:n&&wt._extend(s,n),Ku(s.showHidden)&&(s.showHidden=!1),Ku(s.depth)&&(s.depth=2),Ku(s.colors)&&(s.colors=!1),Ku(s.customInspect)&&(s.customInspect=!0),s.colors&&(s.stylize=cre),d6(s,i,s.depth)}function cre(i,n){var s=b0.styles[n];return s?"\x1B["+b0.colors[s][0]+"m"+i+"\x1B["+b0.colors[s][1]+"m":i}function dre(i,n){return i}function d6(i,n,s){if(i.customInspect&&n&&U2(n.inspect)&&n.inspect!==wt.inspect&&(!n.constructor||n.constructor.prototype!==n)){var c=n.inspect(s,i);return p6(c)||(c=d6(i,c,s)),c}var a=function(x,S){if(Ku(S))return x.stylize("undefined","undefined");if(p6(S)){var I="'"+JSON.stringify(S).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return x.stylize(I,"string")}if(Dq(S))return x.stylize(""+S,"number");if(XM(S))return x.stylize(""+S,"boolean");if(T6(S))return x.stylize("null","null")}(i,n);if(a)return a;var d=Object.keys(n),v=function(x){var S={};return x.forEach(function(I,R){S[I]=!0}),S}(d);if(i.showHidden&&(d=Object.getOwnPropertyNames(n)),E1(n)&&(d.indexOf("message")>=0||d.indexOf("description")>=0))return K3(n);if(d.length===0){if(U2(n)){var y=n.name?": "+n.name:"";return i.stylize("[Function"+y+"]","special")}if(S1(n))return i.stylize(RegExp.prototype.toString.call(n),"regexp");if(v6(n))return i.stylize(Date.prototype.toString.call(n),"date");if(E1(n))return K3(n)}var M,w="",b=!1,_=["{","}"];return Lq(n)&&(b=!0,_=["[","]"]),U2(n)&&(w=" [Function"+(n.name?": "+n.name:"")+"]"),S1(n)&&(w=" "+RegExp.prototype.toString.call(n)),v6(n)&&(w=" "+Date.prototype.toUTCString.call(n)),E1(n)&&(w=" "+K3(n)),d.length!==0||b&&n.length!=0?s<0?S1(n)?i.stylize(RegExp.prototype.toString.call(n),"regexp"):i.stylize("[Object]","special"):(i.seen.push(n),M=b?function(x,S,I,R,N){for(var P=[],L=0,D=S.length;L<D;++L)Oq(S,String(L))?P.push(j3(x,S,I,R,String(L),!0)):P.push("");return N.forEach(function(Z){Z.match(/^\d+$/)||P.push(j3(x,S,I,R,Z,!0))}),P}(i,n,s,v,d):d.map(function(x){return j3(i,n,s,v,x,b)}),i.seen.pop(),function(x,S,I){var R=0;return x.reduce(function(N,P){return R++,P.indexOf(`
|
|
9
|
+
`);return a+y+d}});var uW=St((c7e,Bm)=>{var d7e=me(Me());xe();_e();(function(){"use strict";var i="input is invalid type",n="finalize already called",s=typeof window=="object",c=s?window:{};c.JS_SHA3_NO_WINDOW&&(s=!1);var a=!s&&typeof self=="object",d=!c.JS_SHA3_NO_NODE_JS&&typeof ot.default=="object"&&ot.default.versions&&ot.default.versions.node;d?c=globalThis:a&&(c=self);var v=!c.JS_SHA3_NO_COMMON_JS&&typeof Bm=="object"&&Bm.exports,y=typeof define=="function"&&define.amd,M=!c.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",w="0123456789abcdef".split(""),b=[31,7936,2031616,520093696],_=[4,1024,262144,67108864],x=[1,256,65536,16777216],S=[6,1536,393216,100663296],I=[0,8,16,24],R=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],N=[224,256,384,512],P=[128,256],L=["hex","buffer","arrayBuffer","array","digest"],D={128:168,256:136};(c.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(z){return Object.prototype.toString.call(z)==="[object Array]"}),M&&(c.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(z){return typeof z=="object"&&z.buffer&&z.buffer.constructor===ArrayBuffer});for(var Z=function(z,ee,te){return function(O){return new B(z,ee,z).update(O)[te]()}},W=function(z,ee,te){return function(O,U){return new B(z,ee,U).update(O)[te]()}},Q=function(z,ee,te){return function(O,U,oe,X){return f["cshake"+z].update(O,U,oe,X)[te]()}},K=function(z,ee,te){return function(O,U,oe,X){return f["kmac"+z].update(O,U,oe,X)[te]()}},F=function(z,ee,te,O){for(var U=0;U<L.length;++U){var oe=L[U];z[oe]=ee(te,O,oe)}return z},Y=function(z,ee){var te=Z(z,ee,"hex");return te.create=function(){return new B(z,ee,z)},te.update=function(O){return te.create().update(O)},F(te,Z,z,ee)},m=function(z,ee){var te=W(z,ee,"hex");return te.create=function(O){return new B(z,ee,O)},te.update=function(O,U){return te.create(U).update(O)},F(te,W,z,ee)},e=function(z,ee){var te=D[z],O=Q(z,ee,"hex");return O.create=function(U,oe,X){return!oe&&!X?f["shake"+z].create(U):new B(z,ee,U).bytepad([oe,X],te)},O.update=function(U,oe,X,j){return O.create(oe,X,j).update(U)},F(O,Q,z,ee)},r=function(z,ee){var te=D[z],O=K(z,ee,"hex");return O.create=function(U,oe,X){return new k(z,ee,oe).bytepad(["KMAC",X],te).bytepad([U],te)},O.update=function(U,oe,X,j){return O.create(U,X,j).update(oe)},F(O,K,z,ee)},o=[{name:"keccak",padding:x,bits:N,createMethod:Y},{name:"sha3",padding:S,bits:N,createMethod:Y},{name:"shake",padding:b,bits:P,createMethod:m},{name:"cshake",padding:_,bits:P,createMethod:e},{name:"kmac",padding:_,bits:P,createMethod:r}],f={},h=[],p=0;p<o.length;++p)for(var g=o[p],l=g.bits,t=0;t<l.length;++t){var u=g.name+"_"+l[t];if(h.push(u),f[u]=g.createMethod(l[t],g.padding),g.name!=="sha3"){var E=g.name+l[t];h.push(E),f[E]=f[u]}}function B(z,ee,te){this.blocks=[],this.s=[],this.padding=ee,this.outputBits=te,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(z<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=te>>5,this.extraBytes=(te&31)>>3;for(var O=0;O<50;++O)this.s[O]=0}B.prototype.update=function(z){if(this.finalized)throw new Error(n);var ee,te=typeof z;if(te!=="string"){if(te==="object"){if(z===null)throw new Error(i);if(M&&z.constructor===ArrayBuffer)z=new Uint8Array(z);else if(!Array.isArray(z)&&(!M||!ArrayBuffer.isView(z)))throw new Error(i)}else throw new Error(i);ee=!0}for(var O=this.blocks,U=this.byteCount,oe=z.length,X=this.blockCount,j=0,V=this.s,G,ie;j<oe;){if(this.reset)for(this.reset=!1,O[0]=this.block,G=1;G<X+1;++G)O[G]=0;if(ee)for(G=this.start;j<oe&&G<U;++j)O[G>>2]|=z[j]<<I[G++&3];else for(G=this.start;j<oe&&G<U;++j)ie=z.charCodeAt(j),ie<128?O[G>>2]|=ie<<I[G++&3]:ie<2048?(O[G>>2]|=(192|ie>>6)<<I[G++&3],O[G>>2]|=(128|ie&63)<<I[G++&3]):ie<55296||ie>=57344?(O[G>>2]|=(224|ie>>12)<<I[G++&3],O[G>>2]|=(128|ie>>6&63)<<I[G++&3],O[G>>2]|=(128|ie&63)<<I[G++&3]):(ie=65536+((ie&1023)<<10|z.charCodeAt(++j)&1023),O[G>>2]|=(240|ie>>18)<<I[G++&3],O[G>>2]|=(128|ie>>12&63)<<I[G++&3],O[G>>2]|=(128|ie>>6&63)<<I[G++&3],O[G>>2]|=(128|ie&63)<<I[G++&3]);if(this.lastByteIndex=G,G>=U){for(this.start=G-U,this.block=O[X],G=0;G<X;++G)V[G]^=O[G];q(V),this.reset=!0}else this.start=G}return this},B.prototype.encode=function(z,ee){var te=z&255,O=1,U=[te];for(z=z>>8,te=z&255;te>0;)U.unshift(te),z=z>>8,te=z&255,++O;return ee?U.push(O):U.unshift(O),this.update(U),U.length},B.prototype.encodeString=function(z){var ee,te=typeof z;if(te!=="string"){if(te==="object"){if(z===null)throw new Error(i);if(M&&z.constructor===ArrayBuffer)z=new Uint8Array(z);else if(!Array.isArray(z)&&(!M||!ArrayBuffer.isView(z)))throw new Error(i)}else throw new Error(i);ee=!0}var O=0,U=z.length;if(ee)O=U;else for(var oe=0;oe<z.length;++oe){var X=z.charCodeAt(oe);X<128?O+=1:X<2048?O+=2:X<55296||X>=57344?O+=3:(X=65536+((X&1023)<<10|z.charCodeAt(++oe)&1023),O+=4)}return O+=this.encode(O*8),this.update(z),O},B.prototype.bytepad=function(z,ee){for(var te=this.encode(ee),O=0;O<z.length;++O)te+=this.encodeString(z[O]);var U=ee-te%ee,oe=[];return oe.length=U,this.update(oe),this},B.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var z=this.blocks,ee=this.lastByteIndex,te=this.blockCount,O=this.s;if(z[ee>>2]|=this.padding[ee&3],this.lastByteIndex===this.byteCount)for(z[0]=z[te],ee=1;ee<te+1;++ee)z[ee]=0;for(z[te-1]|=2147483648,ee=0;ee<te;++ee)O[ee]^=z[ee];q(O)}},B.prototype.toString=B.prototype.hex=function(){this.finalize();for(var z=this.blockCount,ee=this.s,te=this.outputBlocks,O=this.extraBytes,U=0,oe=0,X="",j;oe<te;){for(U=0;U<z&&oe<te;++U,++oe)j=ee[U],X+=w[j>>4&15]+w[j&15]+w[j>>12&15]+w[j>>8&15]+w[j>>20&15]+w[j>>16&15]+w[j>>28&15]+w[j>>24&15];oe%z===0&&(q(ee),U=0)}return O&&(j=ee[U],X+=w[j>>4&15]+w[j&15],O>1&&(X+=w[j>>12&15]+w[j>>8&15]),O>2&&(X+=w[j>>20&15]+w[j>>16&15])),X},B.prototype.arrayBuffer=function(){this.finalize();var z=this.blockCount,ee=this.s,te=this.outputBlocks,O=this.extraBytes,U=0,oe=0,X=this.outputBits>>3,j;O?j=new ArrayBuffer(te+1<<2):j=new ArrayBuffer(X);for(var V=new Uint32Array(j);oe<te;){for(U=0;U<z&&oe<te;++U,++oe)V[oe]=ee[U];oe%z===0&&q(ee)}return O&&(V[U]=ee[U],j=j.slice(0,X)),j},B.prototype.buffer=B.prototype.arrayBuffer,B.prototype.digest=B.prototype.array=function(){this.finalize();for(var z=this.blockCount,ee=this.s,te=this.outputBlocks,O=this.extraBytes,U=0,oe=0,X=[],j,V;oe<te;){for(U=0;U<z&&oe<te;++U,++oe)j=oe<<2,V=ee[U],X[j]=V&255,X[j+1]=V>>8&255,X[j+2]=V>>16&255,X[j+3]=V>>24&255;oe%z===0&&q(ee)}return O&&(j=oe<<2,V=ee[U],X[j]=V&255,O>1&&(X[j+1]=V>>8&255),O>2&&(X[j+2]=V>>16&255)),X};function k(z,ee,te){B.call(this,z,ee,te)}k.prototype=new B,k.prototype.finalize=function(){return this.encode(this.outputBits,!0),B.prototype.finalize.call(this)};var q=function(z){var ee,te,O,U,oe,X,j,V,G,ie,ge,re,ae,we,fe,he,nt,de,be,ut,$,A,T,C,H,ne,J,ce,ft,le,ve,st,Se,Le,mt,Ee,Ne,bt,Be,Ce,vt,se,ue,ht,pe,Ie,ct,ye,De,dt,Ae,Oe,gt,Re,$e,pt,lt,yt,xt,Mt,Et,At,Bt;for(O=0;O<48;O+=2)U=z[0]^z[10]^z[20]^z[30]^z[40],oe=z[1]^z[11]^z[21]^z[31]^z[41],X=z[2]^z[12]^z[22]^z[32]^z[42],j=z[3]^z[13]^z[23]^z[33]^z[43],V=z[4]^z[14]^z[24]^z[34]^z[44],G=z[5]^z[15]^z[25]^z[35]^z[45],ie=z[6]^z[16]^z[26]^z[36]^z[46],ge=z[7]^z[17]^z[27]^z[37]^z[47],re=z[8]^z[18]^z[28]^z[38]^z[48],ae=z[9]^z[19]^z[29]^z[39]^z[49],ee=re^(X<<1|j>>>31),te=ae^(j<<1|X>>>31),z[0]^=ee,z[1]^=te,z[10]^=ee,z[11]^=te,z[20]^=ee,z[21]^=te,z[30]^=ee,z[31]^=te,z[40]^=ee,z[41]^=te,ee=U^(V<<1|G>>>31),te=oe^(G<<1|V>>>31),z[2]^=ee,z[3]^=te,z[12]^=ee,z[13]^=te,z[22]^=ee,z[23]^=te,z[32]^=ee,z[33]^=te,z[42]^=ee,z[43]^=te,ee=X^(ie<<1|ge>>>31),te=j^(ge<<1|ie>>>31),z[4]^=ee,z[5]^=te,z[14]^=ee,z[15]^=te,z[24]^=ee,z[25]^=te,z[34]^=ee,z[35]^=te,z[44]^=ee,z[45]^=te,ee=V^(re<<1|ae>>>31),te=G^(ae<<1|re>>>31),z[6]^=ee,z[7]^=te,z[16]^=ee,z[17]^=te,z[26]^=ee,z[27]^=te,z[36]^=ee,z[37]^=te,z[46]^=ee,z[47]^=te,ee=ie^(U<<1|oe>>>31),te=ge^(oe<<1|U>>>31),z[8]^=ee,z[9]^=te,z[18]^=ee,z[19]^=te,z[28]^=ee,z[29]^=te,z[38]^=ee,z[39]^=te,z[48]^=ee,z[49]^=te,we=z[0],fe=z[1],Ie=z[11]<<4|z[10]>>>28,ct=z[10]<<4|z[11]>>>28,ce=z[20]<<3|z[21]>>>29,ft=z[21]<<3|z[20]>>>29,Mt=z[31]<<9|z[30]>>>23,Et=z[30]<<9|z[31]>>>23,se=z[40]<<18|z[41]>>>14,ue=z[41]<<18|z[40]>>>14,Le=z[2]<<1|z[3]>>>31,mt=z[3]<<1|z[2]>>>31,he=z[13]<<12|z[12]>>>20,nt=z[12]<<12|z[13]>>>20,ye=z[22]<<10|z[23]>>>22,De=z[23]<<10|z[22]>>>22,le=z[33]<<13|z[32]>>>19,ve=z[32]<<13|z[33]>>>19,At=z[42]<<2|z[43]>>>30,Bt=z[43]<<2|z[42]>>>30,Re=z[5]<<30|z[4]>>>2,$e=z[4]<<30|z[5]>>>2,Ee=z[14]<<6|z[15]>>>26,Ne=z[15]<<6|z[14]>>>26,de=z[25]<<11|z[24]>>>21,be=z[24]<<11|z[25]>>>21,dt=z[34]<<15|z[35]>>>17,Ae=z[35]<<15|z[34]>>>17,st=z[45]<<29|z[44]>>>3,Se=z[44]<<29|z[45]>>>3,C=z[6]<<28|z[7]>>>4,H=z[7]<<28|z[6]>>>4,pt=z[17]<<23|z[16]>>>9,lt=z[16]<<23|z[17]>>>9,bt=z[26]<<25|z[27]>>>7,Be=z[27]<<25|z[26]>>>7,ut=z[36]<<21|z[37]>>>11,$=z[37]<<21|z[36]>>>11,Oe=z[47]<<24|z[46]>>>8,gt=z[46]<<24|z[47]>>>8,ht=z[8]<<27|z[9]>>>5,pe=z[9]<<27|z[8]>>>5,ne=z[18]<<20|z[19]>>>12,J=z[19]<<20|z[18]>>>12,yt=z[29]<<7|z[28]>>>25,xt=z[28]<<7|z[29]>>>25,Ce=z[38]<<8|z[39]>>>24,vt=z[39]<<8|z[38]>>>24,A=z[48]<<14|z[49]>>>18,T=z[49]<<14|z[48]>>>18,z[0]=we^~he&de,z[1]=fe^~nt&be,z[10]=C^~ne&ce,z[11]=H^~J&ft,z[20]=Le^~Ee&bt,z[21]=mt^~Ne&Be,z[30]=ht^~Ie&ye,z[31]=pe^~ct&De,z[40]=Re^~pt&yt,z[41]=$e^~lt&xt,z[2]=he^~de&ut,z[3]=nt^~be&$,z[12]=ne^~ce&le,z[13]=J^~ft&ve,z[22]=Ee^~bt&Ce,z[23]=Ne^~Be&vt,z[32]=Ie^~ye&dt,z[33]=ct^~De&Ae,z[42]=pt^~yt&Mt,z[43]=lt^~xt&Et,z[4]=de^~ut&A,z[5]=be^~$&T,z[14]=ce^~le&st,z[15]=ft^~ve&Se,z[24]=bt^~Ce&se,z[25]=Be^~vt&ue,z[34]=ye^~dt&Oe,z[35]=De^~Ae>,z[44]=yt^~Mt&At,z[45]=xt^~Et&Bt,z[6]=ut^~A&we,z[7]=$^~T&fe,z[16]=le^~st&C,z[17]=ve^~Se&H,z[26]=Ce^~se&Le,z[27]=vt^~ue&mt,z[36]=dt^~Oe&ht,z[37]=Ae^~gt&pe,z[46]=Mt^~At&Re,z[47]=Et^~Bt&$e,z[8]=A^~we&he,z[9]=T^~fe&nt,z[18]=st^~C&ne,z[19]=Se^~H&J,z[28]=se^~Le&Ee,z[29]=ue^~mt&Ne,z[38]=Oe^~ht&Ie,z[39]=gt^~pe&ct,z[48]=At^~Re&pt,z[49]=Bt^~$e<,z[0]^=R[O],z[1]^=R[O+1]};if(v)Bm.exports=f;else{for(p=0;p<h.length;++p)c[h[p]]=f[h[p]];y&&define(function(){return f})}})()});var lp=St((MW,p5)=>{var U7e=me(Me());xe();_e();(function(i,n){"use strict";function s(o,f){if(!o)throw new Error(f||"Assertion failed")}function c(o,f){o.super_=f;var h=function(){};h.prototype=f.prototype,o.prototype=new h,o.prototype.constructor=o}function a(o,f,h){if(a.isBN(o))return o;this.negative=0,this.words=null,this.length=0,this.red=null,o!==null&&((f==="le"||f==="be")&&(h=f,f=10),this._init(o||0,f||10,h||"be"))}typeof i=="object"?i.exports=a:n.BN=a,a.BN=a,a.wordSize=26;var d;try{typeof window<"u"&&typeof window.Buffer<"u"?d=window.Buffer:d=bm().Buffer}catch{}a.isBN=function(f){return f instanceof a?!0:f!==null&&typeof f=="object"&&f.constructor.wordSize===a.wordSize&&Array.isArray(f.words)},a.max=function(f,h){return f.cmp(h)>0?f:h},a.min=function(f,h){return f.cmp(h)<0?f:h},a.prototype._init=function(f,h,p){if(typeof f=="number")return this._initNumber(f,h,p);if(typeof f=="object")return this._initArray(f,h,p);h==="hex"&&(h=16),s(h===(h|0)&&h>=2&&h<=36),f=f.toString().replace(/\s+/g,"");var g=0;f[0]==="-"&&(g++,this.negative=1),g<f.length&&(h===16?this._parseHex(f,g,p):(this._parseBase(f,h,g),p==="le"&&this._initArray(this.toArray(),h,p)))},a.prototype._initNumber=function(f,h,p){f<0&&(this.negative=1,f=-f),f<67108864?(this.words=[f&67108863],this.length=1):f<4503599627370496?(this.words=[f&67108863,f/67108864&67108863],this.length=2):(s(f<9007199254740992),this.words=[f&67108863,f/67108864&67108863,1],this.length=3),p==="le"&&this._initArray(this.toArray(),h,p)},a.prototype._initArray=function(f,h,p){if(s(typeof f.length=="number"),f.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(f.length/3),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var l,t,u=0;if(p==="be")for(g=f.length-1,l=0;g>=0;g-=3)t=f[g]|f[g-1]<<8|f[g-2]<<16,this.words[l]|=t<<u&67108863,this.words[l+1]=t>>>26-u&67108863,u+=24,u>=26&&(u-=26,l++);else if(p==="le")for(g=0,l=0;g<f.length;g+=3)t=f[g]|f[g+1]<<8|f[g+2]<<16,this.words[l]|=t<<u&67108863,this.words[l+1]=t>>>26-u&67108863,u+=24,u>=26&&(u-=26,l++);return this._strip()};function v(o,f){var h=o.charCodeAt(f);if(h>=48&&h<=57)return h-48;if(h>=65&&h<=70)return h-55;if(h>=97&&h<=102)return h-87;s(!1,"Invalid character in "+o)}function y(o,f,h){var p=v(o,h);return h-1>=f&&(p|=v(o,h-1)<<4),p}a.prototype._parseHex=function(f,h,p){this.length=Math.ceil((f.length-h)/6),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var l=0,t=0,u;if(p==="be")for(g=f.length-1;g>=h;g-=2)u=y(f,h,g)<<l,this.words[t]|=u&67108863,l>=18?(l-=18,t+=1,this.words[t]|=u>>>26):l+=8;else{var E=f.length-h;for(g=E%2===0?h+1:h;g<f.length;g+=2)u=y(f,h,g)<<l,this.words[t]|=u&67108863,l>=18?(l-=18,t+=1,this.words[t]|=u>>>26):l+=8}this._strip()};function M(o,f,h,p){for(var g=0,l=0,t=Math.min(o.length,h),u=f;u<t;u++){var E=o.charCodeAt(u)-48;g*=p,E>=49?l=E-49+10:E>=17?l=E-17+10:l=E,s(E>=0&&l<p,"Invalid character"),g+=l}return g}a.prototype._parseBase=function(f,h,p){this.words=[0],this.length=1;for(var g=0,l=1;l<=67108863;l*=h)g++;g--,l=l/h|0;for(var t=f.length-p,u=t%g,E=Math.min(t,t-u)+p,B=0,k=p;k<E;k+=g)B=M(f,k,k+g,h),this.imuln(l),this.words[0]+B<67108864?this.words[0]+=B:this._iaddn(B);if(u!==0){var q=1;for(B=M(f,k,f.length,h),k=0;k<u;k++)q*=h;this.imuln(q),this.words[0]+B<67108864?this.words[0]+=B:this._iaddn(B)}this._strip()},a.prototype.copy=function(f){f.words=new Array(this.length);for(var h=0;h<this.length;h++)f.words[h]=this.words[h];f.length=this.length,f.negative=this.negative,f.red=this.red};function w(o,f){o.words=f.words,o.length=f.length,o.negative=f.negative,o.red=f.red}if(a.prototype._move=function(f){w(f,this)},a.prototype.clone=function(){var f=new a(null);return this.copy(f),f},a.prototype._expand=function(f){for(;this.length<f;)this.words[this.length++]=0;return this},a.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=b}catch{a.prototype.inspect=b}else a.prototype.inspect=b;function b(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var _=["","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"],x=[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],S=[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];a.prototype.toString=function(f,h){f=f||10,h=h|0||1;var p;if(f===16||f==="hex"){p="";for(var g=0,l=0,t=0;t<this.length;t++){var u=this.words[t],E=((u<<g|l)&16777215).toString(16);l=u>>>24-g&16777215,g+=2,g>=26&&(g-=26,t--),l!==0||t!==this.length-1?p=_[6-E.length]+E+p:p=E+p}for(l!==0&&(p=l.toString(16)+p);p.length%h!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}if(f===(f|0)&&f>=2&&f<=36){var B=x[f],k=S[f];p="";var q=this.clone();for(q.negative=0;!q.isZero();){var z=q.modrn(k).toString(f);q=q.idivn(k),q.isZero()?p=z+p:p=_[B-z.length]+z+p}for(this.isZero()&&(p="0"+p);p.length%h!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}s(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var f=this.words[0];return this.length===2?f+=this.words[1]*67108864:this.length===3&&this.words[2]===1?f+=4503599627370496+this.words[1]*67108864:this.length>2&&s(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-f:f},a.prototype.toJSON=function(){return this.toString(16,2)},d&&(a.prototype.toBuffer=function(f,h){return this.toArrayLike(d,f,h)}),a.prototype.toArray=function(f,h){return this.toArrayLike(Array,f,h)};var I=function(f,h){return f.allocUnsafe?f.allocUnsafe(h):new f(h)};a.prototype.toArrayLike=function(f,h,p){this._strip();var g=this.byteLength(),l=p||Math.max(1,g);s(g<=l,"byte array longer than desired length"),s(l>0,"Requested array length <= 0");var t=I(f,l),u=h==="le"?"LE":"BE";return this["_toArrayLike"+u](t,g),t},a.prototype._toArrayLikeLE=function(f,h){for(var p=0,g=0,l=0,t=0;l<this.length;l++){var u=this.words[l]<<t|g;f[p++]=u&255,p<f.length&&(f[p++]=u>>8&255),p<f.length&&(f[p++]=u>>16&255),t===6?(p<f.length&&(f[p++]=u>>24&255),g=0,t=0):(g=u>>>24,t+=2)}if(p<f.length)for(f[p++]=g;p<f.length;)f[p++]=0},a.prototype._toArrayLikeBE=function(f,h){for(var p=f.length-1,g=0,l=0,t=0;l<this.length;l++){var u=this.words[l]<<t|g;f[p--]=u&255,p>=0&&(f[p--]=u>>8&255),p>=0&&(f[p--]=u>>16&255),t===6?(p>=0&&(f[p--]=u>>24&255),g=0,t=0):(g=u>>>24,t+=2)}if(p>=0)for(f[p--]=g;p>=0;)f[p--]=0},Math.clz32?a.prototype._countBits=function(f){return 32-Math.clz32(f)}:a.prototype._countBits=function(f){var h=f,p=0;return h>=4096&&(p+=13,h>>>=13),h>=64&&(p+=7,h>>>=7),h>=8&&(p+=4,h>>>=4),h>=2&&(p+=2,h>>>=2),p+h},a.prototype._zeroBits=function(f){if(f===0)return 26;var h=f,p=0;return h&8191||(p+=13,h>>>=13),h&127||(p+=7,h>>>=7),h&15||(p+=4,h>>>=4),h&3||(p+=2,h>>>=2),h&1||p++,p},a.prototype.bitLength=function(){var f=this.words[this.length-1],h=this._countBits(f);return(this.length-1)*26+h};function R(o){for(var f=new Array(o.bitLength()),h=0;h<f.length;h++){var p=h/26|0,g=h%26;f[h]=o.words[p]>>>g&1}return f}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var f=0,h=0;h<this.length;h++){var p=this._zeroBits(this.words[h]);if(f+=p,p!==26)break}return f},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(f){return this.negative!==0?this.abs().inotn(f).iaddn(1):this.clone()},a.prototype.fromTwos=function(f){return this.testn(f-1)?this.notn(f).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(f){for(;this.length<f.length;)this.words[this.length++]=0;for(var h=0;h<f.length;h++)this.words[h]=this.words[h]|f.words[h];return this._strip()},a.prototype.ior=function(f){return s((this.negative|f.negative)===0),this.iuor(f)},a.prototype.or=function(f){return this.length>f.length?this.clone().ior(f):f.clone().ior(this)},a.prototype.uor=function(f){return this.length>f.length?this.clone().iuor(f):f.clone().iuor(this)},a.prototype.iuand=function(f){var h;this.length>f.length?h=f:h=this;for(var p=0;p<h.length;p++)this.words[p]=this.words[p]&f.words[p];return this.length=h.length,this._strip()},a.prototype.iand=function(f){return s((this.negative|f.negative)===0),this.iuand(f)},a.prototype.and=function(f){return this.length>f.length?this.clone().iand(f):f.clone().iand(this)},a.prototype.uand=function(f){return this.length>f.length?this.clone().iuand(f):f.clone().iuand(this)},a.prototype.iuxor=function(f){var h,p;this.length>f.length?(h=this,p=f):(h=f,p=this);for(var g=0;g<p.length;g++)this.words[g]=h.words[g]^p.words[g];if(this!==h)for(;g<h.length;g++)this.words[g]=h.words[g];return this.length=h.length,this._strip()},a.prototype.ixor=function(f){return s((this.negative|f.negative)===0),this.iuxor(f)},a.prototype.xor=function(f){return this.length>f.length?this.clone().ixor(f):f.clone().ixor(this)},a.prototype.uxor=function(f){return this.length>f.length?this.clone().iuxor(f):f.clone().iuxor(this)},a.prototype.inotn=function(f){s(typeof f=="number"&&f>=0);var h=Math.ceil(f/26)|0,p=f%26;this._expand(h),p>0&&h--;for(var g=0;g<h;g++)this.words[g]=~this.words[g]&67108863;return p>0&&(this.words[g]=~this.words[g]&67108863>>26-p),this._strip()},a.prototype.notn=function(f){return this.clone().inotn(f)},a.prototype.setn=function(f,h){s(typeof f=="number"&&f>=0);var p=f/26|0,g=f%26;return this._expand(p+1),h?this.words[p]=this.words[p]|1<<g:this.words[p]=this.words[p]&~(1<<g),this._strip()},a.prototype.iadd=function(f){var h;if(this.negative!==0&&f.negative===0)return this.negative=0,h=this.isub(f),this.negative^=1,this._normSign();if(this.negative===0&&f.negative!==0)return f.negative=0,h=this.isub(f),f.negative=1,h._normSign();var p,g;this.length>f.length?(p=this,g=f):(p=f,g=this);for(var l=0,t=0;t<g.length;t++)h=(p.words[t]|0)+(g.words[t]|0)+l,this.words[t]=h&67108863,l=h>>>26;for(;l!==0&&t<p.length;t++)h=(p.words[t]|0)+l,this.words[t]=h&67108863,l=h>>>26;if(this.length=p.length,l!==0)this.words[this.length]=l,this.length++;else if(p!==this)for(;t<p.length;t++)this.words[t]=p.words[t];return this},a.prototype.add=function(f){var h;return f.negative!==0&&this.negative===0?(f.negative=0,h=this.sub(f),f.negative^=1,h):f.negative===0&&this.negative!==0?(this.negative=0,h=f.sub(this),this.negative=1,h):this.length>f.length?this.clone().iadd(f):f.clone().iadd(this)},a.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var h=this.iadd(f);return f.negative=1,h._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var p=this.cmp(f);if(p===0)return this.negative=0,this.length=1,this.words[0]=0,this;var g,l;p>0?(g=this,l=f):(g=f,l=this);for(var t=0,u=0;u<l.length;u++)h=(g.words[u]|0)-(l.words[u]|0)+t,t=h>>26,this.words[u]=h&67108863;for(;t!==0&&u<g.length;u++)h=(g.words[u]|0)+t,t=h>>26,this.words[u]=h&67108863;if(t===0&&u<g.length&&g!==this)for(;u<g.length;u++)this.words[u]=g.words[u];return this.length=Math.max(this.length,u),g!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(f){return this.clone().isub(f)};function N(o,f,h){h.negative=f.negative^o.negative;var p=o.length+f.length|0;h.length=p,p=p-1|0;var g=o.words[0]|0,l=f.words[0]|0,t=g*l,u=t&67108863,E=t/67108864|0;h.words[0]=u;for(var B=1;B<p;B++){for(var k=E>>>26,q=E&67108863,z=Math.min(B,f.length-1),ee=Math.max(0,B-o.length+1);ee<=z;ee++){var te=B-ee|0;g=o.words[te]|0,l=f.words[ee]|0,t=g*l+q,k+=t/67108864|0,q=t&67108863}h.words[B]=q|0,E=k|0}return E!==0?h.words[B]=E|0:h.length--,h._strip()}var P=function(f,h,p){var g=f.words,l=h.words,t=p.words,u=0,E,B,k,q=g[0]|0,z=q&8191,ee=q>>>13,te=g[1]|0,O=te&8191,U=te>>>13,oe=g[2]|0,X=oe&8191,j=oe>>>13,V=g[3]|0,G=V&8191,ie=V>>>13,ge=g[4]|0,re=ge&8191,ae=ge>>>13,we=g[5]|0,fe=we&8191,he=we>>>13,nt=g[6]|0,de=nt&8191,be=nt>>>13,ut=g[7]|0,$=ut&8191,A=ut>>>13,T=g[8]|0,C=T&8191,H=T>>>13,ne=g[9]|0,J=ne&8191,ce=ne>>>13,ft=l[0]|0,le=ft&8191,ve=ft>>>13,st=l[1]|0,Se=st&8191,Le=st>>>13,mt=l[2]|0,Ee=mt&8191,Ne=mt>>>13,bt=l[3]|0,Be=bt&8191,Ce=bt>>>13,vt=l[4]|0,se=vt&8191,ue=vt>>>13,ht=l[5]|0,pe=ht&8191,Ie=ht>>>13,ct=l[6]|0,ye=ct&8191,De=ct>>>13,dt=l[7]|0,Ae=dt&8191,Oe=dt>>>13,gt=l[8]|0,Re=gt&8191,$e=gt>>>13,pt=l[9]|0,lt=pt&8191,yt=pt>>>13;p.negative=f.negative^h.negative,p.length=19,E=Math.imul(z,le),B=Math.imul(z,ve),B=B+Math.imul(ee,le)|0,k=Math.imul(ee,ve);var xt=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(xt>>>26)|0,xt&=67108863,E=Math.imul(O,le),B=Math.imul(O,ve),B=B+Math.imul(U,le)|0,k=Math.imul(U,ve),E=E+Math.imul(z,Se)|0,B=B+Math.imul(z,Le)|0,B=B+Math.imul(ee,Se)|0,k=k+Math.imul(ee,Le)|0;var Mt=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,E=Math.imul(X,le),B=Math.imul(X,ve),B=B+Math.imul(j,le)|0,k=Math.imul(j,ve),E=E+Math.imul(O,Se)|0,B=B+Math.imul(O,Le)|0,B=B+Math.imul(U,Se)|0,k=k+Math.imul(U,Le)|0,E=E+Math.imul(z,Ee)|0,B=B+Math.imul(z,Ne)|0,B=B+Math.imul(ee,Ee)|0,k=k+Math.imul(ee,Ne)|0;var Et=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Et>>>26)|0,Et&=67108863,E=Math.imul(G,le),B=Math.imul(G,ve),B=B+Math.imul(ie,le)|0,k=Math.imul(ie,ve),E=E+Math.imul(X,Se)|0,B=B+Math.imul(X,Le)|0,B=B+Math.imul(j,Se)|0,k=k+Math.imul(j,Le)|0,E=E+Math.imul(O,Ee)|0,B=B+Math.imul(O,Ne)|0,B=B+Math.imul(U,Ee)|0,k=k+Math.imul(U,Ne)|0,E=E+Math.imul(z,Be)|0,B=B+Math.imul(z,Ce)|0,B=B+Math.imul(ee,Be)|0,k=k+Math.imul(ee,Ce)|0;var At=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(At>>>26)|0,At&=67108863,E=Math.imul(re,le),B=Math.imul(re,ve),B=B+Math.imul(ae,le)|0,k=Math.imul(ae,ve),E=E+Math.imul(G,Se)|0,B=B+Math.imul(G,Le)|0,B=B+Math.imul(ie,Se)|0,k=k+Math.imul(ie,Le)|0,E=E+Math.imul(X,Ee)|0,B=B+Math.imul(X,Ne)|0,B=B+Math.imul(j,Ee)|0,k=k+Math.imul(j,Ne)|0,E=E+Math.imul(O,Be)|0,B=B+Math.imul(O,Ce)|0,B=B+Math.imul(U,Be)|0,k=k+Math.imul(U,Ce)|0,E=E+Math.imul(z,se)|0,B=B+Math.imul(z,ue)|0,B=B+Math.imul(ee,se)|0,k=k+Math.imul(ee,ue)|0;var Bt=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,E=Math.imul(fe,le),B=Math.imul(fe,ve),B=B+Math.imul(he,le)|0,k=Math.imul(he,ve),E=E+Math.imul(re,Se)|0,B=B+Math.imul(re,Le)|0,B=B+Math.imul(ae,Se)|0,k=k+Math.imul(ae,Le)|0,E=E+Math.imul(G,Ee)|0,B=B+Math.imul(G,Ne)|0,B=B+Math.imul(ie,Ee)|0,k=k+Math.imul(ie,Ne)|0,E=E+Math.imul(X,Be)|0,B=B+Math.imul(X,Ce)|0,B=B+Math.imul(j,Be)|0,k=k+Math.imul(j,Ce)|0,E=E+Math.imul(O,se)|0,B=B+Math.imul(O,ue)|0,B=B+Math.imul(U,se)|0,k=k+Math.imul(U,ue)|0,E=E+Math.imul(z,pe)|0,B=B+Math.imul(z,Ie)|0,B=B+Math.imul(ee,pe)|0,k=k+Math.imul(ee,Ie)|0;var Rt=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,E=Math.imul(de,le),B=Math.imul(de,ve),B=B+Math.imul(be,le)|0,k=Math.imul(be,ve),E=E+Math.imul(fe,Se)|0,B=B+Math.imul(fe,Le)|0,B=B+Math.imul(he,Se)|0,k=k+Math.imul(he,Le)|0,E=E+Math.imul(re,Ee)|0,B=B+Math.imul(re,Ne)|0,B=B+Math.imul(ae,Ee)|0,k=k+Math.imul(ae,Ne)|0,E=E+Math.imul(G,Be)|0,B=B+Math.imul(G,Ce)|0,B=B+Math.imul(ie,Be)|0,k=k+Math.imul(ie,Ce)|0,E=E+Math.imul(X,se)|0,B=B+Math.imul(X,ue)|0,B=B+Math.imul(j,se)|0,k=k+Math.imul(j,ue)|0,E=E+Math.imul(O,pe)|0,B=B+Math.imul(O,Ie)|0,B=B+Math.imul(U,pe)|0,k=k+Math.imul(U,Ie)|0,E=E+Math.imul(z,ye)|0,B=B+Math.imul(z,De)|0,B=B+Math.imul(ee,ye)|0,k=k+Math.imul(ee,De)|0;var Tt=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,E=Math.imul($,le),B=Math.imul($,ve),B=B+Math.imul(A,le)|0,k=Math.imul(A,ve),E=E+Math.imul(de,Se)|0,B=B+Math.imul(de,Le)|0,B=B+Math.imul(be,Se)|0,k=k+Math.imul(be,Le)|0,E=E+Math.imul(fe,Ee)|0,B=B+Math.imul(fe,Ne)|0,B=B+Math.imul(he,Ee)|0,k=k+Math.imul(he,Ne)|0,E=E+Math.imul(re,Be)|0,B=B+Math.imul(re,Ce)|0,B=B+Math.imul(ae,Be)|0,k=k+Math.imul(ae,Ce)|0,E=E+Math.imul(G,se)|0,B=B+Math.imul(G,ue)|0,B=B+Math.imul(ie,se)|0,k=k+Math.imul(ie,ue)|0,E=E+Math.imul(X,pe)|0,B=B+Math.imul(X,Ie)|0,B=B+Math.imul(j,pe)|0,k=k+Math.imul(j,Ie)|0,E=E+Math.imul(O,ye)|0,B=B+Math.imul(O,De)|0,B=B+Math.imul(U,ye)|0,k=k+Math.imul(U,De)|0,E=E+Math.imul(z,Ae)|0,B=B+Math.imul(z,Oe)|0,B=B+Math.imul(ee,Ae)|0,k=k+Math.imul(ee,Oe)|0;var kt=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(kt>>>26)|0,kt&=67108863,E=Math.imul(C,le),B=Math.imul(C,ve),B=B+Math.imul(H,le)|0,k=Math.imul(H,ve),E=E+Math.imul($,Se)|0,B=B+Math.imul($,Le)|0,B=B+Math.imul(A,Se)|0,k=k+Math.imul(A,Le)|0,E=E+Math.imul(de,Ee)|0,B=B+Math.imul(de,Ne)|0,B=B+Math.imul(be,Ee)|0,k=k+Math.imul(be,Ne)|0,E=E+Math.imul(fe,Be)|0,B=B+Math.imul(fe,Ce)|0,B=B+Math.imul(he,Be)|0,k=k+Math.imul(he,Ce)|0,E=E+Math.imul(re,se)|0,B=B+Math.imul(re,ue)|0,B=B+Math.imul(ae,se)|0,k=k+Math.imul(ae,ue)|0,E=E+Math.imul(G,pe)|0,B=B+Math.imul(G,Ie)|0,B=B+Math.imul(ie,pe)|0,k=k+Math.imul(ie,Ie)|0,E=E+Math.imul(X,ye)|0,B=B+Math.imul(X,De)|0,B=B+Math.imul(j,ye)|0,k=k+Math.imul(j,De)|0,E=E+Math.imul(O,Ae)|0,B=B+Math.imul(O,Oe)|0,B=B+Math.imul(U,Ae)|0,k=k+Math.imul(U,Oe)|0,E=E+Math.imul(z,Re)|0,B=B+Math.imul(z,$e)|0,B=B+Math.imul(ee,Re)|0,k=k+Math.imul(ee,$e)|0;var Pt=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,E=Math.imul(J,le),B=Math.imul(J,ve),B=B+Math.imul(ce,le)|0,k=Math.imul(ce,ve),E=E+Math.imul(C,Se)|0,B=B+Math.imul(C,Le)|0,B=B+Math.imul(H,Se)|0,k=k+Math.imul(H,Le)|0,E=E+Math.imul($,Ee)|0,B=B+Math.imul($,Ne)|0,B=B+Math.imul(A,Ee)|0,k=k+Math.imul(A,Ne)|0,E=E+Math.imul(de,Be)|0,B=B+Math.imul(de,Ce)|0,B=B+Math.imul(be,Be)|0,k=k+Math.imul(be,Ce)|0,E=E+Math.imul(fe,se)|0,B=B+Math.imul(fe,ue)|0,B=B+Math.imul(he,se)|0,k=k+Math.imul(he,ue)|0,E=E+Math.imul(re,pe)|0,B=B+Math.imul(re,Ie)|0,B=B+Math.imul(ae,pe)|0,k=k+Math.imul(ae,Ie)|0,E=E+Math.imul(G,ye)|0,B=B+Math.imul(G,De)|0,B=B+Math.imul(ie,ye)|0,k=k+Math.imul(ie,De)|0,E=E+Math.imul(X,Ae)|0,B=B+Math.imul(X,Oe)|0,B=B+Math.imul(j,Ae)|0,k=k+Math.imul(j,Oe)|0,E=E+Math.imul(O,Re)|0,B=B+Math.imul(O,$e)|0,B=B+Math.imul(U,Re)|0,k=k+Math.imul(U,$e)|0,E=E+Math.imul(z,lt)|0,B=B+Math.imul(z,yt)|0,B=B+Math.imul(ee,lt)|0,k=k+Math.imul(ee,yt)|0;var $t=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+($t>>>26)|0,$t&=67108863,E=Math.imul(J,Se),B=Math.imul(J,Le),B=B+Math.imul(ce,Se)|0,k=Math.imul(ce,Le),E=E+Math.imul(C,Ee)|0,B=B+Math.imul(C,Ne)|0,B=B+Math.imul(H,Ee)|0,k=k+Math.imul(H,Ne)|0,E=E+Math.imul($,Be)|0,B=B+Math.imul($,Ce)|0,B=B+Math.imul(A,Be)|0,k=k+Math.imul(A,Ce)|0,E=E+Math.imul(de,se)|0,B=B+Math.imul(de,ue)|0,B=B+Math.imul(be,se)|0,k=k+Math.imul(be,ue)|0,E=E+Math.imul(fe,pe)|0,B=B+Math.imul(fe,Ie)|0,B=B+Math.imul(he,pe)|0,k=k+Math.imul(he,Ie)|0,E=E+Math.imul(re,ye)|0,B=B+Math.imul(re,De)|0,B=B+Math.imul(ae,ye)|0,k=k+Math.imul(ae,De)|0,E=E+Math.imul(G,Ae)|0,B=B+Math.imul(G,Oe)|0,B=B+Math.imul(ie,Ae)|0,k=k+Math.imul(ie,Oe)|0,E=E+Math.imul(X,Re)|0,B=B+Math.imul(X,$e)|0,B=B+Math.imul(j,Re)|0,k=k+Math.imul(j,$e)|0,E=E+Math.imul(O,lt)|0,B=B+Math.imul(O,yt)|0,B=B+Math.imul(U,lt)|0,k=k+Math.imul(U,yt)|0;var Nt=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,E=Math.imul(J,Ee),B=Math.imul(J,Ne),B=B+Math.imul(ce,Ee)|0,k=Math.imul(ce,Ne),E=E+Math.imul(C,Be)|0,B=B+Math.imul(C,Ce)|0,B=B+Math.imul(H,Be)|0,k=k+Math.imul(H,Ce)|0,E=E+Math.imul($,se)|0,B=B+Math.imul($,ue)|0,B=B+Math.imul(A,se)|0,k=k+Math.imul(A,ue)|0,E=E+Math.imul(de,pe)|0,B=B+Math.imul(de,Ie)|0,B=B+Math.imul(be,pe)|0,k=k+Math.imul(be,Ie)|0,E=E+Math.imul(fe,ye)|0,B=B+Math.imul(fe,De)|0,B=B+Math.imul(he,ye)|0,k=k+Math.imul(he,De)|0,E=E+Math.imul(re,Ae)|0,B=B+Math.imul(re,Oe)|0,B=B+Math.imul(ae,Ae)|0,k=k+Math.imul(ae,Oe)|0,E=E+Math.imul(G,Re)|0,B=B+Math.imul(G,$e)|0,B=B+Math.imul(ie,Re)|0,k=k+Math.imul(ie,$e)|0,E=E+Math.imul(X,lt)|0,B=B+Math.imul(X,yt)|0,B=B+Math.imul(j,lt)|0,k=k+Math.imul(j,yt)|0;var Ct=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,E=Math.imul(J,Be),B=Math.imul(J,Ce),B=B+Math.imul(ce,Be)|0,k=Math.imul(ce,Ce),E=E+Math.imul(C,se)|0,B=B+Math.imul(C,ue)|0,B=B+Math.imul(H,se)|0,k=k+Math.imul(H,ue)|0,E=E+Math.imul($,pe)|0,B=B+Math.imul($,Ie)|0,B=B+Math.imul(A,pe)|0,k=k+Math.imul(A,Ie)|0,E=E+Math.imul(de,ye)|0,B=B+Math.imul(de,De)|0,B=B+Math.imul(be,ye)|0,k=k+Math.imul(be,De)|0,E=E+Math.imul(fe,Ae)|0,B=B+Math.imul(fe,Oe)|0,B=B+Math.imul(he,Ae)|0,k=k+Math.imul(he,Oe)|0,E=E+Math.imul(re,Re)|0,B=B+Math.imul(re,$e)|0,B=B+Math.imul(ae,Re)|0,k=k+Math.imul(ae,$e)|0,E=E+Math.imul(G,lt)|0,B=B+Math.imul(G,yt)|0,B=B+Math.imul(ie,lt)|0,k=k+Math.imul(ie,yt)|0;var Dt=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,E=Math.imul(J,se),B=Math.imul(J,ue),B=B+Math.imul(ce,se)|0,k=Math.imul(ce,ue),E=E+Math.imul(C,pe)|0,B=B+Math.imul(C,Ie)|0,B=B+Math.imul(H,pe)|0,k=k+Math.imul(H,Ie)|0,E=E+Math.imul($,ye)|0,B=B+Math.imul($,De)|0,B=B+Math.imul(A,ye)|0,k=k+Math.imul(A,De)|0,E=E+Math.imul(de,Ae)|0,B=B+Math.imul(de,Oe)|0,B=B+Math.imul(be,Ae)|0,k=k+Math.imul(be,Oe)|0,E=E+Math.imul(fe,Re)|0,B=B+Math.imul(fe,$e)|0,B=B+Math.imul(he,Re)|0,k=k+Math.imul(he,$e)|0,E=E+Math.imul(re,lt)|0,B=B+Math.imul(re,yt)|0,B=B+Math.imul(ae,lt)|0,k=k+Math.imul(ae,yt)|0;var Ot=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,E=Math.imul(J,pe),B=Math.imul(J,Ie),B=B+Math.imul(ce,pe)|0,k=Math.imul(ce,Ie),E=E+Math.imul(C,ye)|0,B=B+Math.imul(C,De)|0,B=B+Math.imul(H,ye)|0,k=k+Math.imul(H,De)|0,E=E+Math.imul($,Ae)|0,B=B+Math.imul($,Oe)|0,B=B+Math.imul(A,Ae)|0,k=k+Math.imul(A,Oe)|0,E=E+Math.imul(de,Re)|0,B=B+Math.imul(de,$e)|0,B=B+Math.imul(be,Re)|0,k=k+Math.imul(be,$e)|0,E=E+Math.imul(fe,lt)|0,B=B+Math.imul(fe,yt)|0,B=B+Math.imul(he,lt)|0,k=k+Math.imul(he,yt)|0;var Ut=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,E=Math.imul(J,ye),B=Math.imul(J,De),B=B+Math.imul(ce,ye)|0,k=Math.imul(ce,De),E=E+Math.imul(C,Ae)|0,B=B+Math.imul(C,Oe)|0,B=B+Math.imul(H,Ae)|0,k=k+Math.imul(H,Oe)|0,E=E+Math.imul($,Re)|0,B=B+Math.imul($,$e)|0,B=B+Math.imul(A,Re)|0,k=k+Math.imul(A,$e)|0,E=E+Math.imul(de,lt)|0,B=B+Math.imul(de,yt)|0,B=B+Math.imul(be,lt)|0,k=k+Math.imul(be,yt)|0;var zt=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(zt>>>26)|0,zt&=67108863,E=Math.imul(J,Ae),B=Math.imul(J,Oe),B=B+Math.imul(ce,Ae)|0,k=Math.imul(ce,Oe),E=E+Math.imul(C,Re)|0,B=B+Math.imul(C,$e)|0,B=B+Math.imul(H,Re)|0,k=k+Math.imul(H,$e)|0,E=E+Math.imul($,lt)|0,B=B+Math.imul($,yt)|0,B=B+Math.imul(A,lt)|0,k=k+Math.imul(A,yt)|0;var ba=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(ba>>>26)|0,ba&=67108863,E=Math.imul(J,Re),B=Math.imul(J,$e),B=B+Math.imul(ce,Re)|0,k=Math.imul(ce,$e),E=E+Math.imul(C,lt)|0,B=B+Math.imul(C,yt)|0,B=B+Math.imul(H,lt)|0,k=k+Math.imul(H,yt)|0;var ga=(u+E|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(ga>>>26)|0,ga&=67108863,E=Math.imul(J,lt),B=Math.imul(J,yt),B=B+Math.imul(ce,lt)|0,k=Math.imul(ce,yt);var M3=(u+E|0)+((B&8191)<<13)|0;return u=(k+(B>>>13)|0)+(M3>>>26)|0,M3&=67108863,t[0]=xt,t[1]=Mt,t[2]=Et,t[3]=At,t[4]=Bt,t[5]=Rt,t[6]=Tt,t[7]=kt,t[8]=Pt,t[9]=$t,t[10]=Nt,t[11]=Ct,t[12]=Dt,t[13]=Ot,t[14]=Ut,t[15]=zt,t[16]=ba,t[17]=ga,t[18]=M3,u!==0&&(t[19]=u,p.length++),p};Math.imul||(P=N);function L(o,f,h){h.negative=f.negative^o.negative,h.length=o.length+f.length;for(var p=0,g=0,l=0;l<h.length-1;l++){var t=g;g=0;for(var u=p&67108863,E=Math.min(l,f.length-1),B=Math.max(0,l-o.length+1);B<=E;B++){var k=l-B,q=o.words[k]|0,z=f.words[B]|0,ee=q*z,te=ee&67108863;t=t+(ee/67108864|0)|0,te=te+u|0,u=te&67108863,t=t+(te>>>26)|0,g+=t>>>26,t&=67108863}h.words[l]=u,p=t,t=g}return p!==0?h.words[l]=p:h.length--,h._strip()}function D(o,f,h){return L(o,f,h)}a.prototype.mulTo=function(f,h){var p,g=this.length+f.length;return this.length===10&&f.length===10?p=P(this,f,h):g<63?p=N(this,f,h):g<1024?p=L(this,f,h):p=D(this,f,h),p};function Z(o,f){this.x=o,this.y=f}Z.prototype.makeRBT=function(f){for(var h=new Array(f),p=a.prototype._countBits(f)-1,g=0;g<f;g++)h[g]=this.revBin(g,p,f);return h},Z.prototype.revBin=function(f,h,p){if(f===0||f===p-1)return f;for(var g=0,l=0;l<h;l++)g|=(f&1)<<h-l-1,f>>=1;return g},Z.prototype.permute=function(f,h,p,g,l,t){for(var u=0;u<t;u++)g[u]=h[f[u]],l[u]=p[f[u]]},Z.prototype.transform=function(f,h,p,g,l,t){this.permute(t,f,h,p,g,l);for(var u=1;u<l;u<<=1)for(var E=u<<1,B=Math.cos(2*Math.PI/E),k=Math.sin(2*Math.PI/E),q=0;q<l;q+=E)for(var z=B,ee=k,te=0;te<u;te++){var O=p[q+te],U=g[q+te],oe=p[q+te+u],X=g[q+te+u],j=z*oe-ee*X;X=z*X+ee*oe,oe=j,p[q+te]=O+oe,g[q+te]=U+X,p[q+te+u]=O-oe,g[q+te+u]=U-X,te!==E&&(j=B*z-k*ee,ee=B*ee+k*z,z=j)}},Z.prototype.guessLen13b=function(f,h){var p=Math.max(h,f)|1,g=p&1,l=0;for(p=p/2|0;p;p=p>>>1)l++;return 1<<l+1+g},Z.prototype.conjugate=function(f,h,p){if(!(p<=1))for(var g=0;g<p/2;g++){var l=f[g];f[g]=f[p-g-1],f[p-g-1]=l,l=h[g],h[g]=-h[p-g-1],h[p-g-1]=-l}},Z.prototype.normalize13b=function(f,h){for(var p=0,g=0;g<h/2;g++){var l=Math.round(f[2*g+1]/h)*8192+Math.round(f[2*g]/h)+p;f[g]=l&67108863,l<67108864?p=0:p=l/67108864|0}return f},Z.prototype.convert13b=function(f,h,p,g){for(var l=0,t=0;t<h;t++)l=l+(f[t]|0),p[2*t]=l&8191,l=l>>>13,p[2*t+1]=l&8191,l=l>>>13;for(t=2*h;t<g;++t)p[t]=0;s(l===0),s((l&-8192)===0)},Z.prototype.stub=function(f){for(var h=new Array(f),p=0;p<f;p++)h[p]=0;return h},Z.prototype.mulp=function(f,h,p){var g=2*this.guessLen13b(f.length,h.length),l=this.makeRBT(g),t=this.stub(g),u=new Array(g),E=new Array(g),B=new Array(g),k=new Array(g),q=new Array(g),z=new Array(g),ee=p.words;ee.length=g,this.convert13b(f.words,f.length,u,g),this.convert13b(h.words,h.length,k,g),this.transform(u,t,E,B,g,l),this.transform(k,t,q,z,g,l);for(var te=0;te<g;te++){var O=E[te]*q[te]-B[te]*z[te];B[te]=E[te]*z[te]+B[te]*q[te],E[te]=O}return this.conjugate(E,B,g),this.transform(E,B,ee,t,g,l),this.conjugate(ee,t,g),this.normalize13b(ee,g),p.negative=f.negative^h.negative,p.length=f.length+h.length,p._strip()},a.prototype.mul=function(f){var h=new a(null);return h.words=new Array(this.length+f.length),this.mulTo(f,h)},a.prototype.mulf=function(f){var h=new a(null);return h.words=new Array(this.length+f.length),D(this,f,h)},a.prototype.imul=function(f){return this.clone().mulTo(f,this)},a.prototype.imuln=function(f){var h=f<0;h&&(f=-f),s(typeof f=="number"),s(f<67108864);for(var p=0,g=0;g<this.length;g++){var l=(this.words[g]|0)*f,t=(l&67108863)+(p&67108863);p>>=26,p+=l/67108864|0,p+=t>>>26,this.words[g]=t&67108863}return p!==0&&(this.words[g]=p,this.length++),this.length=f===0?1:this.length,h?this.ineg():this},a.prototype.muln=function(f){return this.clone().imuln(f)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(f){var h=R(f);if(h.length===0)return new a(1);for(var p=this,g=0;g<h.length&&h[g]===0;g++,p=p.sqr());if(++g<h.length)for(var l=p.sqr();g<h.length;g++,l=l.sqr())h[g]!==0&&(p=p.mul(l));return p},a.prototype.iushln=function(f){s(typeof f=="number"&&f>=0);var h=f%26,p=(f-h)/26,g=67108863>>>26-h<<26-h,l;if(h!==0){var t=0;for(l=0;l<this.length;l++){var u=this.words[l]&g,E=(this.words[l]|0)-u<<h;this.words[l]=E|t,t=u>>>26-h}t&&(this.words[l]=t,this.length++)}if(p!==0){for(l=this.length-1;l>=0;l--)this.words[l+p]=this.words[l];for(l=0;l<p;l++)this.words[l]=0;this.length+=p}return this._strip()},a.prototype.ishln=function(f){return s(this.negative===0),this.iushln(f)},a.prototype.iushrn=function(f,h,p){s(typeof f=="number"&&f>=0);var g;h?g=(h-h%26)/26:g=0;var l=f%26,t=Math.min((f-l)/26,this.length),u=67108863^67108863>>>l<<l,E=p;if(g-=t,g=Math.max(0,g),E){for(var B=0;B<t;B++)E.words[B]=this.words[B];E.length=t}if(t!==0)if(this.length>t)for(this.length-=t,B=0;B<this.length;B++)this.words[B]=this.words[B+t];else this.words[0]=0,this.length=1;var k=0;for(B=this.length-1;B>=0&&(k!==0||B>=g);B--){var q=this.words[B]|0;this.words[B]=k<<26-l|q>>>l,k=q&u}return E&&k!==0&&(E.words[E.length++]=k),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(f,h,p){return s(this.negative===0),this.iushrn(f,h,p)},a.prototype.shln=function(f){return this.clone().ishln(f)},a.prototype.ushln=function(f){return this.clone().iushln(f)},a.prototype.shrn=function(f){return this.clone().ishrn(f)},a.prototype.ushrn=function(f){return this.clone().iushrn(f)},a.prototype.testn=function(f){s(typeof f=="number"&&f>=0);var h=f%26,p=(f-h)/26,g=1<<h;if(this.length<=p)return!1;var l=this.words[p];return!!(l&g)},a.prototype.imaskn=function(f){s(typeof f=="number"&&f>=0);var h=f%26,p=(f-h)/26;if(s(this.negative===0,"imaskn works only with positive numbers"),this.length<=p)return this;if(h!==0&&p++,this.length=Math.min(p,this.length),h!==0){var g=67108863^67108863>>>h<<h;this.words[this.length-1]&=g}return this._strip()},a.prototype.maskn=function(f){return this.clone().imaskn(f)},a.prototype.iaddn=function(f){return s(typeof f=="number"),s(f<67108864),f<0?this.isubn(-f):this.negative!==0?this.length===1&&(this.words[0]|0)<=f?(this.words[0]=f-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(f),this.negative=1,this):this._iaddn(f)},a.prototype._iaddn=function(f){this.words[0]+=f;for(var h=0;h<this.length&&this.words[h]>=67108864;h++)this.words[h]-=67108864,h===this.length-1?this.words[h+1]=1:this.words[h+1]++;return this.length=Math.max(this.length,h+1),this},a.prototype.isubn=function(f){if(s(typeof f=="number"),s(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var h=0;h<this.length&&this.words[h]<0;h++)this.words[h]+=67108864,this.words[h+1]-=1;return this._strip()},a.prototype.addn=function(f){return this.clone().iaddn(f)},a.prototype.subn=function(f){return this.clone().isubn(f)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(f,h,p){var g=f.length+p,l;this._expand(g);var t,u=0;for(l=0;l<f.length;l++){t=(this.words[l+p]|0)+u;var E=(f.words[l]|0)*h;t-=E&67108863,u=(t>>26)-(E/67108864|0),this.words[l+p]=t&67108863}for(;l<this.length-p;l++)t=(this.words[l+p]|0)+u,u=t>>26,this.words[l+p]=t&67108863;if(u===0)return this._strip();for(s(u===-1),u=0,l=0;l<this.length;l++)t=-(this.words[l]|0)+u,u=t>>26,this.words[l]=t&67108863;return this.negative=1,this._strip()},a.prototype._wordDiv=function(f,h){var p=this.length-f.length,g=this.clone(),l=f,t=l.words[l.length-1]|0,u=this._countBits(t);p=26-u,p!==0&&(l=l.ushln(p),g.iushln(p),t=l.words[l.length-1]|0);var E=g.length-l.length,B;if(h!=="mod"){B=new a(null),B.length=E+1,B.words=new Array(B.length);for(var k=0;k<B.length;k++)B.words[k]=0}var q=g.clone()._ishlnsubmul(l,1,E);q.negative===0&&(g=q,B&&(B.words[E]=1));for(var z=E-1;z>=0;z--){var ee=(g.words[l.length+z]|0)*67108864+(g.words[l.length+z-1]|0);for(ee=Math.min(ee/t|0,67108863),g._ishlnsubmul(l,ee,z);g.negative!==0;)ee--,g.negative=0,g._ishlnsubmul(l,1,z),g.isZero()||(g.negative^=1);B&&(B.words[z]=ee)}return B&&B._strip(),g._strip(),h!=="div"&&p!==0&&g.iushrn(p),{div:B||null,mod:g}},a.prototype.divmod=function(f,h,p){if(s(!f.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var g,l,t;return this.negative!==0&&f.negative===0?(t=this.neg().divmod(f,h),h!=="mod"&&(g=t.div.neg()),h!=="div"&&(l=t.mod.neg(),p&&l.negative!==0&&l.iadd(f)),{div:g,mod:l}):this.negative===0&&f.negative!==0?(t=this.divmod(f.neg(),h),h!=="mod"&&(g=t.div.neg()),{div:g,mod:t.mod}):this.negative&f.negative?(t=this.neg().divmod(f.neg(),h),h!=="div"&&(l=t.mod.neg(),p&&l.negative!==0&&l.isub(f)),{div:t.div,mod:l}):f.length>this.length||this.cmp(f)<0?{div:new a(0),mod:this}:f.length===1?h==="div"?{div:this.divn(f.words[0]),mod:null}:h==="mod"?{div:null,mod:new a(this.modrn(f.words[0]))}:{div:this.divn(f.words[0]),mod:new a(this.modrn(f.words[0]))}:this._wordDiv(f,h)},a.prototype.div=function(f){return this.divmod(f,"div",!1).div},a.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},a.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},a.prototype.divRound=function(f){var h=this.divmod(f);if(h.mod.isZero())return h.div;var p=h.div.negative!==0?h.mod.isub(f):h.mod,g=f.ushrn(1),l=f.andln(1),t=p.cmp(g);return t<0||l===1&&t===0?h.div:h.div.negative!==0?h.div.isubn(1):h.div.iaddn(1)},a.prototype.modrn=function(f){var h=f<0;h&&(f=-f),s(f<=67108863);for(var p=(1<<26)%f,g=0,l=this.length-1;l>=0;l--)g=(p*g+(this.words[l]|0))%f;return h?-g:g},a.prototype.modn=function(f){return this.modrn(f)},a.prototype.idivn=function(f){var h=f<0;h&&(f=-f),s(f<=67108863);for(var p=0,g=this.length-1;g>=0;g--){var l=(this.words[g]|0)+p*67108864;this.words[g]=l/f|0,p=l%f}return this._strip(),h?this.ineg():this},a.prototype.divn=function(f){return this.clone().idivn(f)},a.prototype.egcd=function(f){s(f.negative===0),s(!f.isZero());var h=this,p=f.clone();h.negative!==0?h=h.umod(f):h=h.clone();for(var g=new a(1),l=new a(0),t=new a(0),u=new a(1),E=0;h.isEven()&&p.isEven();)h.iushrn(1),p.iushrn(1),++E;for(var B=p.clone(),k=h.clone();!h.isZero();){for(var q=0,z=1;!(h.words[0]&z)&&q<26;++q,z<<=1);if(q>0)for(h.iushrn(q);q-- >0;)(g.isOdd()||l.isOdd())&&(g.iadd(B),l.isub(k)),g.iushrn(1),l.iushrn(1);for(var ee=0,te=1;!(p.words[0]&te)&&ee<26;++ee,te<<=1);if(ee>0)for(p.iushrn(ee);ee-- >0;)(t.isOdd()||u.isOdd())&&(t.iadd(B),u.isub(k)),t.iushrn(1),u.iushrn(1);h.cmp(p)>=0?(h.isub(p),g.isub(t),l.isub(u)):(p.isub(h),t.isub(g),u.isub(l))}return{a:t,b:u,gcd:p.iushln(E)}},a.prototype._invmp=function(f){s(f.negative===0),s(!f.isZero());var h=this,p=f.clone();h.negative!==0?h=h.umod(f):h=h.clone();for(var g=new a(1),l=new a(0),t=p.clone();h.cmpn(1)>0&&p.cmpn(1)>0;){for(var u=0,E=1;!(h.words[0]&E)&&u<26;++u,E<<=1);if(u>0)for(h.iushrn(u);u-- >0;)g.isOdd()&&g.iadd(t),g.iushrn(1);for(var B=0,k=1;!(p.words[0]&k)&&B<26;++B,k<<=1);if(B>0)for(p.iushrn(B);B-- >0;)l.isOdd()&&l.iadd(t),l.iushrn(1);h.cmp(p)>=0?(h.isub(p),g.isub(l)):(p.isub(h),l.isub(g))}var q;return h.cmpn(1)===0?q=g:q=l,q.cmpn(0)<0&&q.iadd(f),q},a.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var h=this.clone(),p=f.clone();h.negative=0,p.negative=0;for(var g=0;h.isEven()&&p.isEven();g++)h.iushrn(1),p.iushrn(1);do{for(;h.isEven();)h.iushrn(1);for(;p.isEven();)p.iushrn(1);var l=h.cmp(p);if(l<0){var t=h;h=p,p=t}else if(l===0||p.cmpn(1)===0)break;h.isub(p)}while(!0);return p.iushln(g)},a.prototype.invm=function(f){return this.egcd(f).a.umod(f)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(f){return this.words[0]&f},a.prototype.bincn=function(f){s(typeof f=="number");var h=f%26,p=(f-h)/26,g=1<<h;if(this.length<=p)return this._expand(p+1),this.words[p]|=g,this;for(var l=g,t=p;l!==0&&t<this.length;t++){var u=this.words[t]|0;u+=l,l=u>>>26,u&=67108863,this.words[t]=u}return l!==0&&(this.words[t]=l,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(f){var h=f<0;if(this.negative!==0&&!h)return-1;if(this.negative===0&&h)return 1;this._strip();var p;if(this.length>1)p=1;else{h&&(f=-f),s(f<=67108863,"Number is too big");var g=this.words[0]|0;p=g===f?0:g<f?-1:1}return this.negative!==0?-p|0:p},a.prototype.cmp=function(f){if(this.negative!==0&&f.negative===0)return-1;if(this.negative===0&&f.negative!==0)return 1;var h=this.ucmp(f);return this.negative!==0?-h|0:h},a.prototype.ucmp=function(f){if(this.length>f.length)return 1;if(this.length<f.length)return-1;for(var h=0,p=this.length-1;p>=0;p--){var g=this.words[p]|0,l=f.words[p]|0;if(g!==l){g<l?h=-1:g>l&&(h=1);break}}return h},a.prototype.gtn=function(f){return this.cmpn(f)===1},a.prototype.gt=function(f){return this.cmp(f)===1},a.prototype.gten=function(f){return this.cmpn(f)>=0},a.prototype.gte=function(f){return this.cmp(f)>=0},a.prototype.ltn=function(f){return this.cmpn(f)===-1},a.prototype.lt=function(f){return this.cmp(f)===-1},a.prototype.lten=function(f){return this.cmpn(f)<=0},a.prototype.lte=function(f){return this.cmp(f)<=0},a.prototype.eqn=function(f){return this.cmpn(f)===0},a.prototype.eq=function(f){return this.cmp(f)===0},a.red=function(f){return new e(f)},a.prototype.toRed=function(f){return s(!this.red,"Already a number in reduction context"),s(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},a.prototype.fromRed=function(){return s(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(f){return this.red=f,this},a.prototype.forceRed=function(f){return s(!this.red,"Already a number in reduction context"),this._forceRed(f)},a.prototype.redAdd=function(f){return s(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},a.prototype.redIAdd=function(f){return s(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},a.prototype.redSub=function(f){return s(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},a.prototype.redISub=function(f){return s(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},a.prototype.redShl=function(f){return s(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},a.prototype.redMul=function(f){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},a.prototype.redIMul=function(f){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},a.prototype.redSqr=function(){return s(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return s(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return s(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return s(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return s(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(f){return s(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var W={k256:null,p224:null,p192:null,p25519:null};function Q(o,f){this.name=o,this.p=new a(f,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Q.prototype._tmp=function(){var f=new a(null);return f.words=new Array(Math.ceil(this.n/13)),f},Q.prototype.ireduce=function(f){var h=f,p;do this.split(h,this.tmp),h=this.imulK(h),h=h.iadd(this.tmp),p=h.bitLength();while(p>this.n);var g=p<this.n?-1:h.ucmp(this.p);return g===0?(h.words[0]=0,h.length=1):g>0?h.isub(this.p):h.strip!==void 0?h.strip():h._strip(),h},Q.prototype.split=function(f,h){f.iushrn(this.n,0,h)},Q.prototype.imulK=function(f){return f.imul(this.k)};function K(){Q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}c(K,Q),K.prototype.split=function(f,h){for(var p=4194303,g=Math.min(f.length,9),l=0;l<g;l++)h.words[l]=f.words[l];if(h.length=g,f.length<=9){f.words[0]=0,f.length=1;return}var t=f.words[9];for(h.words[h.length++]=t&p,l=10;l<f.length;l++){var u=f.words[l]|0;f.words[l-10]=(u&p)<<4|t>>>22,t=u}t>>>=22,f.words[l-10]=t,t===0&&f.length>10?f.length-=10:f.length-=9},K.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;for(var h=0,p=0;p<f.length;p++){var g=f.words[p]|0;h+=g*977,f.words[p]=h&67108863,h=g*64+(h/67108864|0)}return f.words[f.length-1]===0&&(f.length--,f.words[f.length-1]===0&&f.length--),f};function F(){Q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}c(F,Q);function Y(){Q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}c(Y,Q);function m(){Q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}c(m,Q),m.prototype.imulK=function(f){for(var h=0,p=0;p<f.length;p++){var g=(f.words[p]|0)*19+h,l=g&67108863;g>>>=26,f.words[p]=l,h=g}return h!==0&&(f.words[f.length++]=h),f},a._prime=function(f){if(W[f])return W[f];var h;if(f==="k256")h=new K;else if(f==="p224")h=new F;else if(f==="p192")h=new Y;else if(f==="p25519")h=new m;else throw new Error("Unknown prime "+f);return W[f]=h,h};function e(o){if(typeof o=="string"){var f=a._prime(o);this.m=f.p,this.prime=f}else s(o.gtn(1),"modulus must be greater than 1"),this.m=o,this.prime=null}e.prototype._verify1=function(f){s(f.negative===0,"red works only with positives"),s(f.red,"red works only with red numbers")},e.prototype._verify2=function(f,h){s((f.negative|h.negative)===0,"red works only with positives"),s(f.red&&f.red===h.red,"red works only with red numbers")},e.prototype.imod=function(f){return this.prime?this.prime.ireduce(f)._forceRed(this):(w(f,f.umod(this.m)._forceRed(this)),f)},e.prototype.neg=function(f){return f.isZero()?f.clone():this.m.sub(f)._forceRed(this)},e.prototype.add=function(f,h){this._verify2(f,h);var p=f.add(h);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},e.prototype.iadd=function(f,h){this._verify2(f,h);var p=f.iadd(h);return p.cmp(this.m)>=0&&p.isub(this.m),p},e.prototype.sub=function(f,h){this._verify2(f,h);var p=f.sub(h);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},e.prototype.isub=function(f,h){this._verify2(f,h);var p=f.isub(h);return p.cmpn(0)<0&&p.iadd(this.m),p},e.prototype.shl=function(f,h){return this._verify1(f),this.imod(f.ushln(h))},e.prototype.imul=function(f,h){return this._verify2(f,h),this.imod(f.imul(h))},e.prototype.mul=function(f,h){return this._verify2(f,h),this.imod(f.mul(h))},e.prototype.isqr=function(f){return this.imul(f,f.clone())},e.prototype.sqr=function(f){return this.mul(f,f)},e.prototype.sqrt=function(f){if(f.isZero())return f.clone();var h=this.m.andln(3);if(s(h%2===1),h===3){var p=this.m.add(new a(1)).iushrn(2);return this.pow(f,p)}for(var g=this.m.subn(1),l=0;!g.isZero()&&g.andln(1)===0;)l++,g.iushrn(1);s(!g.isZero());var t=new a(1).toRed(this),u=t.redNeg(),E=this.m.subn(1).iushrn(1),B=this.m.bitLength();for(B=new a(2*B*B).toRed(this);this.pow(B,E).cmp(u)!==0;)B.redIAdd(u);for(var k=this.pow(B,g),q=this.pow(f,g.addn(1).iushrn(1)),z=this.pow(f,g),ee=l;z.cmp(t)!==0;){for(var te=z,O=0;te.cmp(t)!==0;O++)te=te.redSqr();s(O<ee);var U=this.pow(k,new a(1).iushln(ee-O-1));q=q.redMul(U),k=U.redSqr(),z=z.redMul(k),ee=O}return q},e.prototype.invm=function(f){var h=f._invmp(this.m);return h.negative!==0?(h.negative=0,this.imod(h).redNeg()):this.imod(h)},e.prototype.pow=function(f,h){if(h.isZero())return new a(1).toRed(this);if(h.cmpn(1)===0)return f.clone();var p=4,g=new Array(1<<p);g[0]=new a(1).toRed(this),g[1]=f;for(var l=2;l<g.length;l++)g[l]=this.mul(g[l-1],f);var t=g[0],u=0,E=0,B=h.bitLength()%26;for(B===0&&(B=26),l=h.length-1;l>=0;l--){for(var k=h.words[l],q=B-1;q>=0;q--){var z=k>>q&1;if(t!==g[0]&&(t=this.sqr(t)),z===0&&u===0){E=0;continue}u<<=1,u|=z,E++,!(E!==p&&(l!==0||q!==0))&&(t=this.mul(t,g[u]),E=0,u=0)}B=26}return t},e.prototype.convertTo=function(f){var h=f.umod(this.m);return h===f?h.clone():h},e.prototype.convertFrom=function(f){var h=f.clone();return h.red=null,h},a.mont=function(f){return new r(f)};function r(o){e.call(this,o),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(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)}c(r,e),r.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},r.prototype.convertFrom=function(f){var h=this.imod(f.mul(this.rinv));return h.red=null,h},r.prototype.imul=function(f,h){if(f.isZero()||h.isZero())return f.words[0]=0,f.length=1,f;var p=f.imul(h),g=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),l=p.isub(g).iushrn(this.shift),t=l;return l.cmp(this.m)>=0?t=l.isub(this.m):l.cmpn(0)<0&&(t=l.iadd(this.m)),t._forceRed(this)},r.prototype.mul=function(f,h){if(f.isZero()||h.isZero())return new a(0)._forceRed(this);var p=f.mul(h),g=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),l=p.isub(g).iushrn(this.shift),t=l;return l.cmp(this.m)>=0?t=l.isub(this.m):l.cmpn(0)<0&&(t=l.iadd(this.m)),t._forceRed(this)},r.prototype.invm=function(f){var h=this.imod(f._invmp(this.m).mul(this.r2));return h._forceRed(this)}})(typeof p5>"u"||p5,MW)});var qs=St(_i=>{"use strict";var U_e=me(Me());xe();_e();var Ide=ch(),Rde=Wn();_i.inherits=Rde;function Tde(i,n){return(i.charCodeAt(n)&64512)!==55296||n<0||n+1>=i.length?!1:(i.charCodeAt(n+1)&64512)===56320}function kde(i,n){if(Array.isArray(i))return i.slice();if(!i)return[];var s=[];if(typeof i=="string")if(n){if(n==="hex")for(i=i.replace(/[^a-z0-9]+/ig,""),i.length%2!==0&&(i="0"+i),a=0;a<i.length;a+=2)s.push(parseInt(i[a]+i[a+1],16))}else for(var c=0,a=0;a<i.length;a++){var d=i.charCodeAt(a);d<128?s[c++]=d:d<2048?(s[c++]=d>>6|192,s[c++]=d&63|128):Tde(i,a)?(d=65536+((d&1023)<<10)+(i.charCodeAt(++a)&1023),s[c++]=d>>18|240,s[c++]=d>>12&63|128,s[c++]=d>>6&63|128,s[c++]=d&63|128):(s[c++]=d>>12|224,s[c++]=d>>6&63|128,s[c++]=d&63|128)}else for(a=0;a<i.length;a++)s[a]=i[a]|0;return s}_i.toArray=kde;function Pde(i){for(var n="",s=0;s<i.length;s++)n+=lZ(i[s].toString(16));return n}_i.toHex=Pde;function uZ(i){var n=i>>>24|i>>>8&65280|i<<8&16711680|(i&255)<<24;return n>>>0}_i.htonl=uZ;function $de(i,n){for(var s="",c=0;c<i.length;c++){var a=i[c];n==="little"&&(a=uZ(a)),s+=cZ(a.toString(16))}return s}_i.toHex32=$de;function lZ(i){return i.length===1?"0"+i:i}_i.zero2=lZ;function cZ(i){return i.length===7?"0"+i:i.length===6?"00"+i:i.length===5?"000"+i:i.length===4?"0000"+i:i.length===3?"00000"+i:i.length===2?"000000"+i:i.length===1?"0000000"+i:i}_i.zero8=cZ;function Nde(i,n,s,c){var a=s-n;Ide(a%4===0);for(var d=new Array(a/4),v=0,y=n;v<d.length;v++,y+=4){var M;c==="big"?M=i[y]<<24|i[y+1]<<16|i[y+2]<<8|i[y+3]:M=i[y+3]<<24|i[y+2]<<16|i[y+1]<<8|i[y],d[v]=M>>>0}return d}_i.join32=Nde;function Cde(i,n){for(var s=new Array(i.length*4),c=0,a=0;c<i.length;c++,a+=4){var d=i[c];n==="big"?(s[a]=d>>>24,s[a+1]=d>>>16&255,s[a+2]=d>>>8&255,s[a+3]=d&255):(s[a+3]=d>>>24,s[a+2]=d>>>16&255,s[a+1]=d>>>8&255,s[a]=d&255)}return s}_i.split32=Cde;function Lde(i,n){return i>>>n|i<<32-n}_i.rotr32=Lde;function Dde(i,n){return i<<n|i>>>32-n}_i.rotl32=Dde;function Ode(i,n){return i+n>>>0}_i.sum32=Ode;function qde(i,n,s){return i+n+s>>>0}_i.sum32_3=qde;function Ude(i,n,s,c){return i+n+s+c>>>0}_i.sum32_4=Ude;function zde(i,n,s,c,a){return i+n+s+c+a>>>0}_i.sum32_5=zde;function Fde(i,n,s,c){var a=i[n],d=i[n+1],v=c+d>>>0,y=(v<c?1:0)+s+a;i[n]=y>>>0,i[n+1]=v}_i.sum64=Fde;function Hde(i,n,s,c){var a=n+c>>>0,d=(a<n?1:0)+i+s;return d>>>0}_i.sum64_hi=Hde;function Kde(i,n,s,c){var a=n+c;return a>>>0}_i.sum64_lo=Kde;function jde(i,n,s,c,a,d,v,y){var M=0,w=n;w=w+c>>>0,M+=w<n?1:0,w=w+d>>>0,M+=w<d?1:0,w=w+y>>>0,M+=w<y?1:0;var b=i+s+a+v+M;return b>>>0}_i.sum64_4_hi=jde;function Wde(i,n,s,c,a,d,v,y){var M=n+c+d+y;return M>>>0}_i.sum64_4_lo=Wde;function Zde(i,n,s,c,a,d,v,y,M,w){var b=0,_=n;_=_+c>>>0,b+=_<n?1:0,_=_+d>>>0,b+=_<d?1:0,_=_+y>>>0,b+=_<y?1:0,_=_+w>>>0,b+=_<w?1:0;var x=i+s+a+v+M+b;return x>>>0}_i.sum64_5_hi=Zde;function Gde(i,n,s,c,a,d,v,y,M,w){var b=n+c+d+y+w;return b>>>0}_i.sum64_5_lo=Gde;function Vde(i,n,s){var c=n<<32-s|i>>>s;return c>>>0}_i.rotr64_hi=Vde;function Jde(i,n,s){var c=i<<32-s|n>>>s;return c>>>0}_i.rotr64_lo=Jde;function Yde(i,n,s){return i>>>s}_i.shr64_hi=Yde;function Xde(i,n,s){var c=i<<32-s|n>>>s;return c>>>0}_i.shr64_lo=Xde});var Xc=St(pZ=>{"use strict";var K_e=me(Me());xe();_e();var dZ=qs(),Qde=ch();function Dm(){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}pZ.BlockHash=Dm;Dm.prototype.update=function(n,s){if(n=dZ.toArray(n,s),this.pending?this.pending=this.pending.concat(n):this.pending=n,this.pendingTotal+=n.length,this.pending.length>=this._delta8){n=this.pending;var c=n.length%this._delta8;this.pending=n.slice(n.length-c,n.length),this.pending.length===0&&(this.pending=null),n=dZ.join32(n,0,n.length-c,this.endian);for(var a=0;a<n.length;a+=this._delta32)this._update(n,a,a+this._delta32)}return this};Dm.prototype.digest=function(n){return this.update(this._pad()),Qde(this.pending===null),this._digest(n)};Dm.prototype._pad=function(){var n=this.pendingTotal,s=this._delta8,c=s-(n+this.padLength)%s,a=new Array(c+this.padLength);a[0]=128;for(var d=1;d<c;d++)a[d]=0;if(n<<=3,this.endian==="big"){for(var v=8;v<this.padLength;v++)a[d++]=0;a[d++]=0,a[d++]=0,a[d++]=0,a[d++]=0,a[d++]=n>>>24&255,a[d++]=n>>>16&255,a[d++]=n>>>8&255,a[d++]=n&255}else for(a[d++]=n&255,a[d++]=n>>>8&255,a[d++]=n>>>16&255,a[d++]=n>>>24&255,a[d++]=0,a[d++]=0,a[d++]=0,a[d++]=0,v=8;v<this.padLength;v++)a[d++]=0;return a}});var N5=St(gh=>{"use strict";var G_e=me(Me());xe();_e();var e1e=qs(),Af=e1e.rotr32;function t1e(i,n,s,c){if(i===0)return vZ(n,s,c);if(i===1||i===3)return bZ(n,s,c);if(i===2)return mZ(n,s,c)}gh.ft_1=t1e;function vZ(i,n,s){return i&n^~i&s}gh.ch32=vZ;function mZ(i,n,s){return i&n^i&s^n&s}gh.maj32=mZ;function bZ(i,n,s){return i^n^s}gh.p32=bZ;function r1e(i){return Af(i,2)^Af(i,13)^Af(i,22)}gh.s0_256=r1e;function i1e(i){return Af(i,6)^Af(i,11)^Af(i,25)}gh.s1_256=i1e;function n1e(i){return Af(i,7)^Af(i,18)^i>>>3}gh.g0_256=n1e;function a1e(i){return Af(i,17)^Af(i,19)^i>>>10}gh.g1_256=a1e});var wZ=St((Y_e,yZ)=>{"use strict";var X_e=me(Me());xe();_e();var Qc=qs(),o1e=Xc(),s1e=N5(),C5=Qc.rotl32,yp=Qc.sum32,f1e=Qc.sum32_5,h1e=s1e.ft_1,gZ=o1e.BlockHash,u1e=[1518500249,1859775393,2400959708,3395469782];function Bf(){if(!(this instanceof Bf))return new Bf;gZ.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Qc.inherits(Bf,gZ);yZ.exports=Bf;Bf.blockSize=512;Bf.outSize=160;Bf.hmacStrength=80;Bf.padLength=64;Bf.prototype._update=function(n,s){for(var c=this.W,a=0;a<16;a++)c[a]=n[s+a];for(;a<c.length;a++)c[a]=C5(c[a-3]^c[a-8]^c[a-14]^c[a-16],1);var d=this.h[0],v=this.h[1],y=this.h[2],M=this.h[3],w=this.h[4];for(a=0;a<c.length;a++){var b=~~(a/20),_=f1e(C5(d,5),h1e(b,v,y,M),w,c[a],u1e[b]);w=M,M=y,y=C5(v,30),v=d,d=_}this.h[0]=yp(this.h[0],d),this.h[1]=yp(this.h[1],v),this.h[2]=yp(this.h[2],y),this.h[3]=yp(this.h[3],M),this.h[4]=yp(this.h[4],w)};Bf.prototype._digest=function(n){return n==="hex"?Qc.toHex32(this.h,"big"):Qc.split32(this.h,"big")}});var L5=St((txe,_Z)=>{"use strict";var rxe=me(Me());xe();_e();var ed=qs(),l1e=Xc(),td=N5(),c1e=ch(),Us=ed.sum32,d1e=ed.sum32_4,p1e=ed.sum32_5,v1e=td.ch32,m1e=td.maj32,b1e=td.s0_256,g1e=td.s1_256,y1e=td.g0_256,w1e=td.g1_256,MZ=l1e.BlockHash,M1e=[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 If(){if(!(this instanceof If))return new If;MZ.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=M1e,this.W=new Array(64)}ed.inherits(If,MZ);_Z.exports=If;If.blockSize=512;If.outSize=256;If.hmacStrength=192;If.padLength=64;If.prototype._update=function(n,s){for(var c=this.W,a=0;a<16;a++)c[a]=n[s+a];for(;a<c.length;a++)c[a]=d1e(w1e(c[a-2]),c[a-7],y1e(c[a-15]),c[a-16]);var d=this.h[0],v=this.h[1],y=this.h[2],M=this.h[3],w=this.h[4],b=this.h[5],_=this.h[6],x=this.h[7];for(c1e(this.k.length===c.length),a=0;a<c.length;a++){var S=p1e(x,g1e(w),v1e(w,b,_),this.k[a],c[a]),I=Us(b1e(d),m1e(d,v,y));x=_,_=b,b=w,w=Us(M,S),M=y,y=v,v=d,d=Us(S,I)}this.h[0]=Us(this.h[0],d),this.h[1]=Us(this.h[1],v),this.h[2]=Us(this.h[2],y),this.h[3]=Us(this.h[3],M),this.h[4]=Us(this.h[4],w),this.h[5]=Us(this.h[5],b),this.h[6]=Us(this.h[6],_),this.h[7]=Us(this.h[7],x)};If.prototype._digest=function(n){return n==="hex"?ed.toHex32(this.h,"big"):ed.split32(this.h,"big")}});var EZ=St((axe,SZ)=>{"use strict";var oxe=me(Me());xe();_e();var D5=qs(),xZ=L5();function yh(){if(!(this instanceof yh))return new yh;xZ.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}D5.inherits(yh,xZ);SZ.exports=yh;yh.blockSize=512;yh.outSize=224;yh.hmacStrength=192;yh.padLength=64;yh.prototype._digest=function(n){return n==="hex"?D5.toHex32(this.h.slice(0,7),"big"):D5.split32(this.h.slice(0,7),"big")}});var U5=St((hxe,RZ)=>{"use strict";var uxe=me(Me());xe();_e();var La=qs(),_1e=Xc(),x1e=ch(),Rf=La.rotr64_hi,Tf=La.rotr64_lo,AZ=La.shr64_hi,BZ=La.shr64_lo,P0=La.sum64,O5=La.sum64_hi,q5=La.sum64_lo,S1e=La.sum64_4_hi,E1e=La.sum64_4_lo,A1e=La.sum64_5_hi,B1e=La.sum64_5_lo,IZ=_1e.BlockHash,I1e=[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 zs(){if(!(this instanceof zs))return new zs;IZ.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=I1e,this.W=new Array(160)}La.inherits(zs,IZ);RZ.exports=zs;zs.blockSize=1024;zs.outSize=512;zs.hmacStrength=192;zs.padLength=128;zs.prototype._prepareBlock=function(n,s){for(var c=this.W,a=0;a<32;a++)c[a]=n[s+a];for(;a<c.length;a+=2){var d=q1e(c[a-4],c[a-3]),v=U1e(c[a-4],c[a-3]),y=c[a-14],M=c[a-13],w=D1e(c[a-30],c[a-29]),b=O1e(c[a-30],c[a-29]),_=c[a-32],x=c[a-31];c[a]=S1e(d,v,y,M,w,b,_,x),c[a+1]=E1e(d,v,y,M,w,b,_,x)}};zs.prototype._update=function(n,s){this._prepareBlock(n,s);var c=this.W,a=this.h[0],d=this.h[1],v=this.h[2],y=this.h[3],M=this.h[4],w=this.h[5],b=this.h[6],_=this.h[7],x=this.h[8],S=this.h[9],I=this.h[10],R=this.h[11],N=this.h[12],P=this.h[13],L=this.h[14],D=this.h[15];x1e(this.k.length===c.length);for(var Z=0;Z<c.length;Z+=2){var W=L,Q=D,K=C1e(x,S),F=L1e(x,S),Y=R1e(x,S,I,R,N,P),m=T1e(x,S,I,R,N,P),e=this.k[Z],r=this.k[Z+1],o=c[Z],f=c[Z+1],h=A1e(W,Q,K,F,Y,m,e,r,o,f),p=B1e(W,Q,K,F,Y,m,e,r,o,f);W=$1e(a,d),Q=N1e(a,d),K=k1e(a,d,v,y,M,w),F=P1e(a,d,v,y,M,w);var g=O5(W,Q,K,F),l=q5(W,Q,K,F);L=N,D=P,N=I,P=R,I=x,R=S,x=O5(b,_,h,p),S=q5(_,_,h,p),b=M,_=w,M=v,w=y,v=a,y=d,a=O5(h,p,g,l),d=q5(h,p,g,l)}P0(this.h,0,a,d),P0(this.h,2,v,y),P0(this.h,4,M,w),P0(this.h,6,b,_),P0(this.h,8,x,S),P0(this.h,10,I,R),P0(this.h,12,N,P),P0(this.h,14,L,D)};zs.prototype._digest=function(n){return n==="hex"?La.toHex32(this.h,"big"):La.split32(this.h,"big")};function R1e(i,n,s,c,a){var d=i&s^~i&a;return d<0&&(d+=4294967296),d}function T1e(i,n,s,c,a,d){var v=n&c^~n&d;return v<0&&(v+=4294967296),v}function k1e(i,n,s,c,a){var d=i&s^i&a^s&a;return d<0&&(d+=4294967296),d}function P1e(i,n,s,c,a,d){var v=n&c^n&d^c&d;return v<0&&(v+=4294967296),v}function $1e(i,n){var s=Rf(i,n,28),c=Rf(n,i,2),a=Rf(n,i,7),d=s^c^a;return d<0&&(d+=4294967296),d}function N1e(i,n){var s=Tf(i,n,28),c=Tf(n,i,2),a=Tf(n,i,7),d=s^c^a;return d<0&&(d+=4294967296),d}function C1e(i,n){var s=Rf(i,n,14),c=Rf(i,n,18),a=Rf(n,i,9),d=s^c^a;return d<0&&(d+=4294967296),d}function L1e(i,n){var s=Tf(i,n,14),c=Tf(i,n,18),a=Tf(n,i,9),d=s^c^a;return d<0&&(d+=4294967296),d}function D1e(i,n){var s=Rf(i,n,1),c=Rf(i,n,8),a=AZ(i,n,7),d=s^c^a;return d<0&&(d+=4294967296),d}function O1e(i,n){var s=Tf(i,n,1),c=Tf(i,n,8),a=BZ(i,n,7),d=s^c^a;return d<0&&(d+=4294967296),d}function q1e(i,n){var s=Rf(i,n,19),c=Rf(n,i,29),a=AZ(i,n,6),d=s^c^a;return d<0&&(d+=4294967296),d}function U1e(i,n){var s=Tf(i,n,19),c=Tf(n,i,29),a=BZ(i,n,6),d=s^c^a;return d<0&&(d+=4294967296),d}});var PZ=St((dxe,kZ)=>{"use strict";var pxe=me(Me());xe();_e();var z5=qs(),TZ=U5();function wh(){if(!(this instanceof wh))return new wh;TZ.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}z5.inherits(wh,TZ);kZ.exports=wh;wh.blockSize=1024;wh.outSize=384;wh.hmacStrength=192;wh.padLength=128;wh.prototype._digest=function(n){return n==="hex"?z5.toHex32(this.h.slice(0,12),"big"):z5.split32(this.h.slice(0,12),"big")}});var $Z=St(rd=>{"use strict";var gxe=me(Me());xe();_e();rd.sha1=wZ();rd.sha224=EZ();rd.sha256=L5();rd.sha384=PZ();rd.sha512=U5()});var qZ=St(OZ=>{"use strict";var _xe=me(Me());xe();_e();var ml=qs(),z1e=Xc(),Om=ml.rotl32,NZ=ml.sum32,wp=ml.sum32_3,CZ=ml.sum32_4,DZ=z1e.BlockHash;function kf(){if(!(this instanceof kf))return new kf;DZ.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}ml.inherits(kf,DZ);OZ.ripemd160=kf;kf.blockSize=512;kf.outSize=160;kf.hmacStrength=192;kf.padLength=64;kf.prototype._update=function(n,s){for(var c=this.h[0],a=this.h[1],d=this.h[2],v=this.h[3],y=this.h[4],M=c,w=a,b=d,_=v,x=y,S=0;S<80;S++){var I=NZ(Om(CZ(c,LZ(S,a,d,v),n[K1e[S]+s],F1e(S)),W1e[S]),y);c=y,y=v,v=Om(d,10),d=a,a=I,I=NZ(Om(CZ(M,LZ(79-S,w,b,_),n[j1e[S]+s],H1e(S)),Z1e[S]),x),M=x,x=_,_=Om(b,10),b=w,w=I}I=wp(this.h[1],d,_),this.h[1]=wp(this.h[2],v,x),this.h[2]=wp(this.h[3],y,M),this.h[3]=wp(this.h[4],c,w),this.h[4]=wp(this.h[0],a,b),this.h[0]=I};kf.prototype._digest=function(n){return n==="hex"?ml.toHex32(this.h,"little"):ml.split32(this.h,"little")};function LZ(i,n,s,c){return i<=15?n^s^c:i<=31?n&s|~n&c:i<=47?(n|~s)^c:i<=63?n&c|s&~c:n^(s|~c)}function F1e(i){return i<=15?0:i<=31?1518500249:i<=47?1859775393:i<=63?2400959708:2840853838}function H1e(i){return i<=15?1352829926:i<=31?1548603684:i<=47?1836072691:i<=63?2053994217:0}var K1e=[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],j1e=[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],W1e=[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],Z1e=[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]});var zZ=St((Exe,UZ)=>{"use strict";var Axe=me(Me());xe();_e();var G1e=qs(),V1e=ch();function id(i,n,s){if(!(this instanceof id))return new id(i,n,s);this.Hash=i,this.blockSize=i.blockSize/8,this.outSize=i.outSize/8,this.inner=null,this.outer=null,this._init(G1e.toArray(n,s))}UZ.exports=id;id.prototype._init=function(n){n.length>this.blockSize&&(n=new this.Hash().update(n).digest()),V1e(n.length<=this.blockSize);for(var s=n.length;s<this.blockSize;s++)n.push(0);for(s=0;s<n.length;s++)n[s]^=54;for(this.inner=new this.Hash().update(n),s=0;s<n.length;s++)n[s]^=106;this.outer=new this.Hash().update(n)};id.prototype.update=function(n,s){return this.inner.update(n,s),this};id.prototype.digest=function(n){return this.outer.update(this.inner.digest()),this.outer.digest(n)}});var $0=St(FZ=>{var Txe=me(Me());xe();_e();var Gn=FZ;Gn.utils=qs();Gn.common=Xc();Gn.sha=$Z();Gn.ripemd=qZ();Gn.hmac=zZ();Gn.sha1=Gn.sha.sha1;Gn.sha256=Gn.sha.sha256;Gn.sha224=Gn.sha.sha224;Gn.sha384=Gn.sha.sha384;Gn.sha512=Gn.sha.sha512;Gn.ripemd160=Gn.ripemd.ripemd160});var BS=St((AS,$G)=>{"use strict";var wBe=me(Me());xe();_e();(function(i){function n(t){return parseInt(t)===t}function s(t){if(!n(t.length))return!1;for(var u=0;u<t.length;u++)if(!n(t[u])||t[u]<0||t[u]>255)return!1;return!0}function c(t,u){if(t.buffer&&ArrayBuffer.isView(t)&&t.name==="Uint8Array")return u&&(t.slice?t=t.slice():t=Array.prototype.slice.call(t)),t;if(Array.isArray(t)){if(!s(t))throw new Error("Array contains invalid value: "+t);return new Uint8Array(t)}if(n(t.length)&&s(t))return new Uint8Array(t);throw new Error("unsupported array-like object")}function a(t){return new Uint8Array(t)}function d(t,u,E,B,k){(B!=null||k!=null)&&(t.slice?t=t.slice(B,k):t=Array.prototype.slice.call(t,B,k)),u.set(t,E)}var v=function(){function t(E){var B=[],k=0;for(E=encodeURI(E);k<E.length;){var q=E.charCodeAt(k++);q===37?(B.push(parseInt(E.substr(k,2),16)),k+=2):B.push(q)}return c(B)}function u(E){for(var B=[],k=0;k<E.length;){var q=E[k];q<128?(B.push(String.fromCharCode(q)),k++):q>191&&q<224?(B.push(String.fromCharCode((q&31)<<6|E[k+1]&63)),k+=2):(B.push(String.fromCharCode((q&15)<<12|(E[k+1]&63)<<6|E[k+2]&63)),k+=3)}return B.join("")}return{toBytes:t,fromBytes:u}}(),y=function(){function t(B){for(var k=[],q=0;q<B.length;q+=2)k.push(parseInt(B.substr(q,2),16));return k}var u="0123456789abcdef";function E(B){for(var k=[],q=0;q<B.length;q++){var z=B[q];k.push(u[(z&240)>>4]+u[z&15])}return k.join("")}return{toBytes:t,fromBytes:E}}(),M={16:10,24:12,32:14},w=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],b=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],_=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],x=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],S=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],I=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],R=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],N=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],P=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],L=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],D=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],Z=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],W=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],Q=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],K=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function F(t){for(var u=[],E=0;E<t.length;E+=4)u.push(t[E]<<24|t[E+1]<<16|t[E+2]<<8|t[E+3]);return u}var Y=function(t){if(!(this instanceof Y))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:c(t,!0)}),this._prepare()};Y.prototype._prepare=function(){var t=M[this.key.length];if(t==null)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var u=0;u<=t;u++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);for(var E=(t+1)*4,B=this.key.length/4,k=F(this.key),q,u=0;u<B;u++)q=u>>2,this._Ke[q][u%4]=k[u],this._Kd[t-q][u%4]=k[u];for(var z=0,ee=B,te;ee<E;){if(te=k[B-1],k[0]^=b[te>>16&255]<<24^b[te>>8&255]<<16^b[te&255]<<8^b[te>>24&255]^w[z]<<24,z+=1,B!=8)for(var u=1;u<B;u++)k[u]^=k[u-1];else{for(var u=1;u<B/2;u++)k[u]^=k[u-1];te=k[B/2-1],k[B/2]^=b[te&255]^b[te>>8&255]<<8^b[te>>16&255]<<16^b[te>>24&255]<<24;for(var u=B/2+1;u<B;u++)k[u]^=k[u-1]}for(var u=0,O,U;u<B&&ee<E;)O=ee>>2,U=ee%4,this._Ke[O][U]=k[u],this._Kd[t-O][U]=k[u++],ee++}for(var O=1;O<t;O++)for(var U=0;U<4;U++)te=this._Kd[O][U],this._Kd[O][U]=Z[te>>24&255]^W[te>>16&255]^Q[te>>8&255]^K[te&255]},Y.prototype.encrypt=function(t){if(t.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var u=this._Ke.length-1,E=[0,0,0,0],B=F(t),k=0;k<4;k++)B[k]^=this._Ke[0][k];for(var q=1;q<u;q++){for(var k=0;k<4;k++)E[k]=x[B[k]>>24&255]^S[B[(k+1)%4]>>16&255]^I[B[(k+2)%4]>>8&255]^R[B[(k+3)%4]&255]^this._Ke[q][k];B=E.slice()}for(var z=a(16),ee,k=0;k<4;k++)ee=this._Ke[u][k],z[4*k]=(b[B[k]>>24&255]^ee>>24)&255,z[4*k+1]=(b[B[(k+1)%4]>>16&255]^ee>>16)&255,z[4*k+2]=(b[B[(k+2)%4]>>8&255]^ee>>8)&255,z[4*k+3]=(b[B[(k+3)%4]&255]^ee)&255;return z},Y.prototype.decrypt=function(t){if(t.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var u=this._Kd.length-1,E=[0,0,0,0],B=F(t),k=0;k<4;k++)B[k]^=this._Kd[0][k];for(var q=1;q<u;q++){for(var k=0;k<4;k++)E[k]=N[B[k]>>24&255]^P[B[(k+3)%4]>>16&255]^L[B[(k+2)%4]>>8&255]^D[B[(k+1)%4]&255]^this._Kd[q][k];B=E.slice()}for(var z=a(16),ee,k=0;k<4;k++)ee=this._Kd[u][k],z[4*k]=(_[B[k]>>24&255]^ee>>24)&255,z[4*k+1]=(_[B[(k+3)%4]>>16&255]^ee>>16)&255,z[4*k+2]=(_[B[(k+2)%4]>>8&255]^ee>>8)&255,z[4*k+3]=(_[B[(k+1)%4]&255]^ee)&255;return z};var m=function(t){if(!(this instanceof m))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new Y(t)};m.prototype.encrypt=function(t){if(t=c(t),t.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var u=a(t.length),E=a(16),B=0;B<t.length;B+=16)d(t,E,0,B,B+16),E=this._aes.encrypt(E),d(E,u,B);return u},m.prototype.decrypt=function(t){if(t=c(t),t.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var u=a(t.length),E=a(16),B=0;B<t.length;B+=16)d(t,E,0,B,B+16),E=this._aes.decrypt(E),d(E,u,B);return u};var e=function(t,u){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",!u)u=a(16);else if(u.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastCipherblock=c(u,!0),this._aes=new Y(t)};e.prototype.encrypt=function(t){if(t=c(t),t.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var u=a(t.length),E=a(16),B=0;B<t.length;B+=16){d(t,E,0,B,B+16);for(var k=0;k<16;k++)E[k]^=this._lastCipherblock[k];this._lastCipherblock=this._aes.encrypt(E),d(this._lastCipherblock,u,B)}return u},e.prototype.decrypt=function(t){if(t=c(t),t.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var u=a(t.length),E=a(16),B=0;B<t.length;B+=16){d(t,E,0,B,B+16),E=this._aes.decrypt(E);for(var k=0;k<16;k++)u[B+k]=E[k]^this._lastCipherblock[k];d(t,this._lastCipherblock,0,B,B+16)}return u};var r=function(t,u,E){if(!(this instanceof r))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",!u)u=a(16);else if(u.length!=16)throw new Error("invalid initialation vector size (must be 16 size)");E||(E=1),this.segmentSize=E,this._shiftRegister=c(u,!0),this._aes=new Y(t)};r.prototype.encrypt=function(t){if(t.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var u=c(t,!0),E,B=0;B<u.length;B+=this.segmentSize){E=this._aes.encrypt(this._shiftRegister);for(var k=0;k<this.segmentSize;k++)u[B+k]^=E[k];d(this._shiftRegister,this._shiftRegister,0,this.segmentSize),d(u,this._shiftRegister,16-this.segmentSize,B,B+this.segmentSize)}return u},r.prototype.decrypt=function(t){if(t.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var u=c(t,!0),E,B=0;B<u.length;B+=this.segmentSize){E=this._aes.encrypt(this._shiftRegister);for(var k=0;k<this.segmentSize;k++)u[B+k]^=E[k];d(this._shiftRegister,this._shiftRegister,0,this.segmentSize),d(t,this._shiftRegister,16-this.segmentSize,B,B+this.segmentSize)}return u};var o=function(t,u){if(!(this instanceof o))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",!u)u=a(16);else if(u.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastPrecipher=c(u,!0),this._lastPrecipherIndex=16,this._aes=new Y(t)};o.prototype.encrypt=function(t){for(var u=c(t,!0),E=0;E<u.length;E++)this._lastPrecipherIndex===16&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),u[E]^=this._lastPrecipher[this._lastPrecipherIndex++];return u},o.prototype.decrypt=o.prototype.encrypt;var f=function(t){if(!(this instanceof f))throw Error("Counter must be instanitated with `new`");t!==0&&!t&&(t=1),typeof t=="number"?(this._counter=a(16),this.setValue(t)):this.setBytes(t)};f.prototype.setValue=function(t){if(typeof t!="number"||parseInt(t)!=t)throw new Error("invalid counter value (must be an integer)");for(var u=15;u>=0;--u)this._counter[u]=t%256,t=t>>8},f.prototype.setBytes=function(t){if(t=c(t,!0),t.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=t},f.prototype.increment=function(){for(var t=15;t>=0;t--)if(this._counter[t]===255)this._counter[t]=0;else{this._counter[t]++;break}};var h=function(t,u){if(!(this instanceof h))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",u instanceof f||(u=new f(u)),this._counter=u,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new Y(t)};h.prototype.encrypt=function(t){for(var u=c(t,!0),E=0;E<u.length;E++)this._remainingCounterIndex===16&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),u[E]^=this._remainingCounter[this._remainingCounterIndex++];return u},h.prototype.decrypt=h.prototype.encrypt;function p(t){t=c(t,!0);var u=16-t.length%16,E=a(t.length+u);d(t,E);for(var B=t.length;B<E.length;B++)E[B]=u;return E}function g(t){if(t=c(t,!0),t.length<16)throw new Error("PKCS#7 invalid length");var u=t[t.length-1];if(u>16)throw new Error("PKCS#7 padding byte out of range");for(var E=t.length-u,B=0;B<u;B++)if(t[E+B]!==u)throw new Error("PKCS#7 invalid padding byte");var k=a(E);return d(t,k,0,0,E),k}var l={AES:Y,Counter:f,ModeOfOperation:{ecb:m,cbc:e,cfb:r,ofb:o,ctr:h},utils:{hex:y,utf8:v},padding:{pkcs7:{pad:p,strip:g}},_arrayTest:{coerceArray:c,createArray:a,copyArray:d}};typeof AS<"u"?$G.exports=l:typeof define=="function"&&define.amd?define(l):(i.aesjs&&(l._aesjs=i.aesjs),i.aesjs=l)})(AS)});var UG=St((qS,qG)=>{"use strict";var oIe=me(Me());xe();_e();(function(i){function s(S){let I=new Uint32Array([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]),R=1779033703,N=3144134277,P=1013904242,L=2773480762,D=1359893119,Z=2600822924,W=528734635,Q=1541459225,K=new Uint32Array(64);function F(h){let p=0,g=h.length;for(;g>=64;){let l=R,t=N,u=P,E=L,B=D,k=Z,q=W,z=Q,ee,te,O,U,oe;for(te=0;te<16;te++)O=p+te*4,K[te]=(h[O]&255)<<24|(h[O+1]&255)<<16|(h[O+2]&255)<<8|h[O+3]&255;for(te=16;te<64;te++)ee=K[te-2],U=(ee>>>17|ee<<15)^(ee>>>19|ee<<13)^ee>>>10,ee=K[te-15],oe=(ee>>>7|ee<<25)^(ee>>>18|ee<<14)^ee>>>3,K[te]=(U+K[te-7]|0)+(oe+K[te-16]|0)|0;for(te=0;te<64;te++)U=(((B>>>6|B<<26)^(B>>>11|B<<21)^(B>>>25|B<<7))+(B&k^~B&q)|0)+(z+(I[te]+K[te]|0)|0)|0,oe=((l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10))+(l&t^l&u^t&u)|0,z=q,q=k,k=B,B=E+U|0,E=u,u=t,t=l,l=U+oe|0;R=R+l|0,N=N+t|0,P=P+u|0,L=L+E|0,D=D+B|0,Z=Z+k|0,W=W+q|0,Q=Q+z|0,p+=64,g-=64}}F(S);let Y,m=S.length%64,e=S.length/536870912|0,r=S.length<<3,o=m<56?56:120,f=S.slice(S.length-m,S.length);for(f.push(128),Y=m+1;Y<o;Y++)f.push(0);return f.push(e>>>24&255),f.push(e>>>16&255),f.push(e>>>8&255),f.push(e>>>0&255),f.push(r>>>24&255),f.push(r>>>16&255),f.push(r>>>8&255),f.push(r>>>0&255),F(f),[R>>>24&255,R>>>16&255,R>>>8&255,R>>>0&255,N>>>24&255,N>>>16&255,N>>>8&255,N>>>0&255,P>>>24&255,P>>>16&255,P>>>8&255,P>>>0&255,L>>>24&255,L>>>16&255,L>>>8&255,L>>>0&255,D>>>24&255,D>>>16&255,D>>>8&255,D>>>0&255,Z>>>24&255,Z>>>16&255,Z>>>8&255,Z>>>0&255,W>>>24&255,W>>>16&255,W>>>8&255,W>>>0&255,Q>>>24&255,Q>>>16&255,Q>>>8&255,Q>>>0&255]}function c(S,I,R){S=S.length<=64?S:s(S);let N=64+I.length+4,P=new Array(N),L=new Array(64),D,Z=[];for(D=0;D<64;D++)P[D]=54;for(D=0;D<S.length;D++)P[D]^=S[D];for(D=0;D<I.length;D++)P[64+D]=I[D];for(D=N-4;D<N;D++)P[D]=0;for(D=0;D<64;D++)L[D]=92;for(D=0;D<S.length;D++)L[D]^=S[D];function W(){for(let Q=N-1;Q>=N-4;Q--){if(P[Q]++,P[Q]<=255)return;P[Q]=0}}for(;R>=32;)W(),Z=Z.concat(s(L.concat(s(P)))),R-=32;return R>0&&(W(),Z=Z.concat(s(L.concat(s(P))).slice(0,R))),Z}function a(S,I,R,N,P){let L;for(M(S,(2*R-1)*16,P,0,16),L=0;L<2*R;L++)y(S,L*16,P,16),v(P,N),M(P,0,S,I+L*16,16);for(L=0;L<R;L++)M(S,I+L*2*16,S,L*16,16);for(L=0;L<R;L++)M(S,I+(L*2+1)*16,S,(L+R)*16,16)}function d(S,I){return S<<I|S>>>32-I}function v(S,I){M(S,0,I,0,16);for(let R=8;R>0;R-=2)I[4]^=d(I[0]+I[12],7),I[8]^=d(I[4]+I[0],9),I[12]^=d(I[8]+I[4],13),I[0]^=d(I[12]+I[8],18),I[9]^=d(I[5]+I[1],7),I[13]^=d(I[9]+I[5],9),I[1]^=d(I[13]+I[9],13),I[5]^=d(I[1]+I[13],18),I[14]^=d(I[10]+I[6],7),I[2]^=d(I[14]+I[10],9),I[6]^=d(I[2]+I[14],13),I[10]^=d(I[6]+I[2],18),I[3]^=d(I[15]+I[11],7),I[7]^=d(I[3]+I[15],9),I[11]^=d(I[7]+I[3],13),I[15]^=d(I[11]+I[7],18),I[1]^=d(I[0]+I[3],7),I[2]^=d(I[1]+I[0],9),I[3]^=d(I[2]+I[1],13),I[0]^=d(I[3]+I[2],18),I[6]^=d(I[5]+I[4],7),I[7]^=d(I[6]+I[5],9),I[4]^=d(I[7]+I[6],13),I[5]^=d(I[4]+I[7],18),I[11]^=d(I[10]+I[9],7),I[8]^=d(I[11]+I[10],9),I[9]^=d(I[8]+I[11],13),I[10]^=d(I[9]+I[8],18),I[12]^=d(I[15]+I[14],7),I[13]^=d(I[12]+I[15],9),I[14]^=d(I[13]+I[12],13),I[15]^=d(I[14]+I[13],18);for(let R=0;R<16;++R)S[R]+=I[R]}function y(S,I,R,N){for(let P=0;P<N;P++)R[P]^=S[I+P]}function M(S,I,R,N,P){for(;P--;)R[N++]=S[I++]}function w(S){if(!S||typeof S.length!="number")return!1;for(let I=0;I<S.length;I++){let R=S[I];if(typeof R!="number"||R%1||R<0||R>=256)return!1}return!0}function b(S,I){if(typeof S!="number"||S%1)throw new Error("invalid "+I);return S}function _(S,I,R,N,P,L,D){if(R=b(R,"N"),N=b(N,"r"),P=b(P,"p"),L=b(L,"dkLen"),R===0||R&R-1)throw new Error("N must be power of 2");if(R>2147483647/128/N)throw new Error("N too large");if(N>2147483647/128/P)throw new Error("r too large");if(!w(S))throw new Error("password must be an array or buffer");if(S=Array.prototype.slice.call(S),!w(I))throw new Error("salt must be an array or buffer");I=Array.prototype.slice.call(I);let Z=c(S,I,P*128*N),W=new Uint32Array(P*32*N);for(let B=0;B<W.length;B++){let k=B*4;W[B]=(Z[k+3]&255)<<24|(Z[k+2]&255)<<16|(Z[k+1]&255)<<8|(Z[k+0]&255)<<0}let Q=new Uint32Array(64*N),K=new Uint32Array(32*N*R),F=32*N,Y=new Uint32Array(16),m=new Uint32Array(16),e=P*R*2,r=0,o=null,f=!1,h=0,p=0,g,l,t=D?parseInt(1e3/N):4294967295,u=typeof setImmediate<"u"?setImmediate:setTimeout,E=function(){if(f)return D(new Error("cancelled"),r/e);let B;switch(h){case 0:l=p*32*N,M(W,l,Q,0,F),h=1,g=0;case 1:B=R-g,B>t&&(B=t);for(let q=0;q<B;q++)M(Q,0,K,(g+q)*F,F),a(Q,F,N,Y,m);if(g+=B,r+=B,D){let q=parseInt(1e3*r/e);if(q!==o){if(f=D(null,r/e),f)break;o=q}}if(g<R)break;g=0,h=2;case 2:B=R-g,B>t&&(B=t);for(let q=0;q<B;q++){let z=(2*N-1)*16,ee=Q[z]&R-1;y(K,ee*F,Q,F),a(Q,F,N,Y,m)}if(g+=B,r+=B,D){let q=parseInt(1e3*r/e);if(q!==o){if(f=D(null,r/e),f)break;o=q}}if(g<R)break;if(M(Q,0,W,l,F),p++,p<P){h=0;break}Z=[];for(let q=0;q<W.length;q++)Z.push(W[q]>>0&255),Z.push(W[q]>>8&255),Z.push(W[q]>>16&255),Z.push(W[q]>>24&255);let k=c(S,Z,L);return D&&D(null,1,k),k}D&&u(E)};if(!D)for(;;){let B=E();if(B!=null)return B}E()}let x={scrypt:function(S,I,R,N,P,L,D){return new Promise(function(Z,W){let Q=0;D&&D(0),_(S,I,R,N,P,L,function(K,F,Y){if(K)W(K);else if(Y)D&&Q!==1&&D(1),Z(new Uint8Array(Y));else if(D&&F!==Q)return Q=F,D(F)})})},syncScrypt:function(S,I,R,N,P,L){return new Uint8Array(_(S,I,R,N,P,L))}};typeof qS<"u"?qG.exports=x:typeof define=="function"&&define.amd?define(x):i&&(i.scrypt&&(i._scrypt=i.scrypt),i.scrypt=x)})(qS)});var sV=St((tE,oV)=>{var jRe=me(Me());xe();_e();var yb=(hl(),Lh(fl)),Lf=yb.Buffer;function aV(i,n){for(var s in i)n[s]=i[s]}Lf.from&&Lf.alloc&&Lf.allocUnsafe&&Lf.allocUnsafeSlow?oV.exports=yb:(aV(yb,tE),tE.Buffer=Il);function Il(i,n,s){return Lf(i,n,s)}Il.prototype=Object.create(Lf.prototype);aV(Lf,Il);Il.from=function(i,n,s){if(typeof i=="number")throw new TypeError("Argument must not be a number");return Lf(i,n,s)};Il.alloc=function(i,n,s){if(typeof i!="number")throw new TypeError("Argument must be a number");var c=Lf(i);return n!==void 0?typeof s=="string"?c.fill(n,s):c.fill(n):c.fill(0),c};Il.allocUnsafe=function(i){if(typeof i!="number")throw new TypeError("Argument must be a number");return Lf(i)};Il.allocUnsafeSlow=function(i){if(typeof i!="number")throw new TypeError("Argument must be a number");return yb.SlowBuffer(i)}});var hV=St((GRe,fV)=>{"use strict";var VRe=me(Me());xe();_e();var wb=sV().Buffer;function ave(i){if(i.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),s=0;s<n.length;s++)n[s]=255;for(var c=0;c<i.length;c++){var a=i.charAt(c),d=a.charCodeAt(0);if(n[d]!==255)throw new TypeError(a+" is ambiguous");n[d]=c}var v=i.length,y=i.charAt(0),M=Math.log(v)/Math.log(256),w=Math.log(256)/Math.log(v);function b(S){if((Array.isArray(S)||S instanceof Uint8Array)&&(S=wb.from(S)),!wb.isBuffer(S))throw new TypeError("Expected Buffer");if(S.length===0)return"";for(var I=0,R=0,N=0,P=S.length;N!==P&&S[N]===0;)N++,I++;for(var L=(P-N)*w+1>>>0,D=new Uint8Array(L);N!==P;){for(var Z=S[N],W=0,Q=L-1;(Z!==0||W<R)&&Q!==-1;Q--,W++)Z+=256*D[Q]>>>0,D[Q]=Z%v>>>0,Z=Z/v>>>0;if(Z!==0)throw new Error("Non-zero carry");R=W,N++}for(var K=L-R;K!==L&&D[K]===0;)K++;for(var F=y.repeat(I);K<L;++K)F+=i.charAt(D[K]);return F}function _(S){if(typeof S!="string")throw new TypeError("Expected String");if(S.length===0)return wb.alloc(0);for(var I=0,R=0,N=0;S[I]===y;)R++,I++;for(var P=(S.length-I)*M+1>>>0,L=new Uint8Array(P);I<S.length;){var D=S.charCodeAt(I);if(D>255)return;var Z=n[D];if(Z===255)return;for(var W=0,Q=P-1;(Z!==0||W<N)&&Q!==-1;Q--,W++)Z+=v*L[Q]>>>0,L[Q]=Z%256>>>0,Z=Z/256>>>0;if(Z!==0)throw new Error("Non-zero carry");N=W,I++}for(var K=P-N;K!==P&&L[K]===0;)K++;var F=wb.allocUnsafe(R+(P-K));F.fill(0,0,R);for(var Y=R;K!==P;)F[Y++]=L[K++];return F}function x(S){var I=_(S);if(I)return I;throw new Error("Non-base"+v+" character")}return{encode:b,decodeUnsafe:_,decode:x}}fV.exports=ave});var lV=St((XRe,uV)=>{var QRe=me(Me());xe();_e();var ove=hV(),sve="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";uV.exports=ove(sve)});var dV=St((sTe,cV)=>{var fTe=me(Me());xe();_e();var jr={IMPOSSIBLE_CASE:"Impossible case. Please create issue.",TWEAK_ADD:"The tweak was out of range or the resulted private key is invalid",TWEAK_MUL:"The tweak was out of range or equal to zero",CONTEXT_RANDOMIZE_UNKNOW:"Unknow error on context randomization",SECKEY_INVALID:"Private Key is invalid",PUBKEY_PARSE:"Public Key could not be parsed",PUBKEY_SERIALIZE:"Public Key serialization error",PUBKEY_COMBINE:"The sum of the public keys is not valid",SIG_PARSE:"Signature could not be parsed",SIGN:"The nonce generation function failed, or the private key was invalid",RECOVER:"Public key could not be recover",ECDH:"Scalar was invalid (zero or overflow)"};function fs(i,n){if(!i)throw new Error(n)}function Hr(i,n,s){if(fs(n instanceof Uint8Array,`Expected ${i} to be an Uint8Array`),s!==void 0)if(Array.isArray(s)){let c=s.join(", "),a=`Expected ${i} to be an Uint8Array with length [${c}]`;fs(s.includes(n.length),a)}else{let c=`Expected ${i} to be an Uint8Array with length ${s}`;fs(n.length===s,c)}}function Rl(i){fs(yd(i)==="Boolean","Expected compressed to be a Boolean")}function Vs(i=s=>new Uint8Array(s),n){return typeof i=="function"&&(i=i(n)),Hr("output",i,n),i}function yd(i){return Object.prototype.toString.call(i).slice(8,-1)}cV.exports=i=>({contextRandomize(n){switch(fs(n===null||n instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),n!==null&&Hr("seed",n,32),i.contextRandomize(n)){case 1:throw new Error(jr.CONTEXT_RANDOMIZE_UNKNOW)}},privateKeyVerify(n){return Hr("private key",n,32),i.privateKeyVerify(n)===0},privateKeyNegate(n){switch(Hr("private key",n,32),i.privateKeyNegate(n)){case 0:return n;case 1:throw new Error(jr.IMPOSSIBLE_CASE)}},privateKeyTweakAdd(n,s){switch(Hr("private key",n,32),Hr("tweak",s,32),i.privateKeyTweakAdd(n,s)){case 0:return n;case 1:throw new Error(jr.TWEAK_ADD)}},privateKeyTweakMul(n,s){switch(Hr("private key",n,32),Hr("tweak",s,32),i.privateKeyTweakMul(n,s)){case 0:return n;case 1:throw new Error(jr.TWEAK_MUL)}},publicKeyVerify(n){return Hr("public key",n,[33,65]),i.publicKeyVerify(n)===0},publicKeyCreate(n,s=!0,c){switch(Hr("private key",n,32),Rl(s),c=Vs(c,s?33:65),i.publicKeyCreate(c,n)){case 0:return c;case 1:throw new Error(jr.SECKEY_INVALID);case 2:throw new Error(jr.PUBKEY_SERIALIZE)}},publicKeyConvert(n,s=!0,c){switch(Hr("public key",n,[33,65]),Rl(s),c=Vs(c,s?33:65),i.publicKeyConvert(c,n)){case 0:return c;case 1:throw new Error(jr.PUBKEY_PARSE);case 2:throw new Error(jr.PUBKEY_SERIALIZE)}},publicKeyNegate(n,s=!0,c){switch(Hr("public key",n,[33,65]),Rl(s),c=Vs(c,s?33:65),i.publicKeyNegate(c,n)){case 0:return c;case 1:throw new Error(jr.PUBKEY_PARSE);case 2:throw new Error(jr.IMPOSSIBLE_CASE);case 3:throw new Error(jr.PUBKEY_SERIALIZE)}},publicKeyCombine(n,s=!0,c){fs(Array.isArray(n),"Expected public keys to be an Array"),fs(n.length>0,"Expected public keys array will have more than zero items");for(let a of n)Hr("public key",a,[33,65]);switch(Rl(s),c=Vs(c,s?33:65),i.publicKeyCombine(c,n)){case 0:return c;case 1:throw new Error(jr.PUBKEY_PARSE);case 2:throw new Error(jr.PUBKEY_COMBINE);case 3:throw new Error(jr.PUBKEY_SERIALIZE)}},publicKeyTweakAdd(n,s,c=!0,a){switch(Hr("public key",n,[33,65]),Hr("tweak",s,32),Rl(c),a=Vs(a,c?33:65),i.publicKeyTweakAdd(a,n,s)){case 0:return a;case 1:throw new Error(jr.PUBKEY_PARSE);case 2:throw new Error(jr.TWEAK_ADD)}},publicKeyTweakMul(n,s,c=!0,a){switch(Hr("public key",n,[33,65]),Hr("tweak",s,32),Rl(c),a=Vs(a,c?33:65),i.publicKeyTweakMul(a,n,s)){case 0:return a;case 1:throw new Error(jr.PUBKEY_PARSE);case 2:throw new Error(jr.TWEAK_MUL)}},signatureNormalize(n){switch(Hr("signature",n,64),i.signatureNormalize(n)){case 0:return n;case 1:throw new Error(jr.SIG_PARSE)}},signatureExport(n,s){Hr("signature",n,64),s=Vs(s,72);let c={output:s,outputlen:72};switch(i.signatureExport(c,n)){case 0:return s.slice(0,c.outputlen);case 1:throw new Error(jr.SIG_PARSE);case 2:throw new Error(jr.IMPOSSIBLE_CASE)}},signatureImport(n,s){switch(Hr("signature",n),s=Vs(s,64),i.signatureImport(s,n)){case 0:return s;case 1:throw new Error(jr.SIG_PARSE);case 2:throw new Error(jr.IMPOSSIBLE_CASE)}},ecdsaSign(n,s,c={},a){Hr("message",n,32),Hr("private key",s,32),fs(yd(c)==="Object","Expected options to be an Object"),c.data!==void 0&&Hr("options.data",c.data),c.noncefn!==void 0&&fs(yd(c.noncefn)==="Function","Expected options.noncefn to be a Function"),a=Vs(a,64);let d={signature:a,recid:null};switch(i.ecdsaSign(d,n,s,c.data,c.noncefn)){case 0:return d;case 1:throw new Error(jr.SIGN);case 2:throw new Error(jr.IMPOSSIBLE_CASE)}},ecdsaVerify(n,s,c){switch(Hr("signature",n,64),Hr("message",s,32),Hr("public key",c,[33,65]),i.ecdsaVerify(n,s,c)){case 0:return!0;case 3:return!1;case 1:throw new Error(jr.SIG_PARSE);case 2:throw new Error(jr.PUBKEY_PARSE)}},ecdsaRecover(n,s,c,a=!0,d){switch(Hr("signature",n,64),fs(yd(s)==="Number"&&s>=0&&s<=3,"Expected recovery id to be a Number within interval [0, 3]"),Hr("message",c,32),Rl(a),d=Vs(d,a?33:65),i.ecdsaRecover(d,n,s,c)){case 0:return d;case 1:throw new Error(jr.SIG_PARSE);case 2:throw new Error(jr.RECOVER);case 3:throw new Error(jr.IMPOSSIBLE_CASE)}},ecdh(n,s,c={},a){switch(Hr("public key",n,[33,65]),Hr("private key",s,32),fs(yd(c)==="Object","Expected options to be an Object"),c.data!==void 0&&Hr("options.data",c.data),c.hashfn!==void 0?(fs(yd(c.hashfn)==="Function","Expected options.hashfn to be a Function"),c.xbuf!==void 0&&Hr("options.xbuf",c.xbuf,32),c.ybuf!==void 0&&Hr("options.ybuf",c.ybuf,32),Hr("output",a)):a=Vs(a,32),i.ecdh(a,n,s,c.data,c.hashfn,c.xbuf,c.ybuf)){case 0:return a;case 1:throw new Error(jr.PUBKEY_PARSE);case 2:throw new Error(jr.ECDH)}}})});var pV=St((lTe,fve)=>{fve.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}});var Df=St((vV,rE)=>{var cTe=me(Me());xe();_e();(function(i,n){"use strict";function s(m,e){if(!m)throw new Error(e||"Assertion failed")}function c(m,e){m.super_=e;var r=function(){};r.prototype=e.prototype,m.prototype=new r,m.prototype.constructor=m}function a(m,e,r){if(a.isBN(m))return m;this.negative=0,this.words=null,this.length=0,this.red=null,m!==null&&((e==="le"||e==="be")&&(r=e,e=10),this._init(m||0,e||10,r||"be"))}typeof i=="object"?i.exports=a:n.BN=a,a.BN=a,a.wordSize=26;var d;try{typeof window<"u"&&typeof window.Buffer<"u"?d=window.Buffer:d=bm().Buffer}catch{}a.isBN=function(e){return e instanceof a?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,r){return e.cmp(r)>0?e:r},a.min=function(e,r){return e.cmp(r)<0?e:r},a.prototype._init=function(e,r,o){if(typeof e=="number")return this._initNumber(e,r,o);if(typeof e=="object")return this._initArray(e,r,o);r==="hex"&&(r=16),s(r===(r|0)&&r>=2&&r<=36),e=e.toString().replace(/\s+/g,"");var f=0;e[0]==="-"&&(f++,this.negative=1),f<e.length&&(r===16?this._parseHex(e,f,o):(this._parseBase(e,r,f),o==="le"&&this._initArray(this.toArray(),r,o)))},a.prototype._initNumber=function(e,r,o){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[e&67108863],this.length=1):e<4503599627370496?(this.words=[e&67108863,e/67108864&67108863],this.length=2):(s(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),o==="le"&&this._initArray(this.toArray(),r,o)},a.prototype._initArray=function(e,r,o){if(s(typeof e.length=="number"),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var h,p,g=0;if(o==="be")for(f=e.length-1,h=0;f>=0;f-=3)p=e[f]|e[f-1]<<8|e[f-2]<<16,this.words[h]|=p<<g&67108863,this.words[h+1]=p>>>26-g&67108863,g+=24,g>=26&&(g-=26,h++);else if(o==="le")for(f=0,h=0;f<e.length;f+=3)p=e[f]|e[f+1]<<8|e[f+2]<<16,this.words[h]|=p<<g&67108863,this.words[h+1]=p>>>26-g&67108863,g+=24,g>=26&&(g-=26,h++);return this.strip()};function v(m,e){var r=m.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function y(m,e,r){var o=v(m,r);return r-1>=e&&(o|=v(m,r-1)<<4),o}a.prototype._parseHex=function(e,r,o){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var h=0,p=0,g;if(o==="be")for(f=e.length-1;f>=r;f-=2)g=y(e,r,f)<<h,this.words[p]|=g&67108863,h>=18?(h-=18,p+=1,this.words[p]|=g>>>26):h+=8;else{var l=e.length-r;for(f=l%2===0?r+1:r;f<e.length;f+=2)g=y(e,r,f)<<h,this.words[p]|=g&67108863,h>=18?(h-=18,p+=1,this.words[p]|=g>>>26):h+=8}this.strip()};function M(m,e,r,o){for(var f=0,h=Math.min(m.length,r),p=e;p<h;p++){var g=m.charCodeAt(p)-48;f*=o,g>=49?f+=g-49+10:g>=17?f+=g-17+10:f+=g}return f}a.prototype._parseBase=function(e,r,o){this.words=[0],this.length=1;for(var f=0,h=1;h<=67108863;h*=r)f++;f--,h=h/r|0;for(var p=e.length-o,g=p%f,l=Math.min(p,p-g)+o,t=0,u=o;u<l;u+=f)t=M(e,u,u+f,r),this.imuln(h),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t);if(g!==0){var E=1;for(t=M(e,u,e.length,r),u=0;u<g;u++)E*=r;this.imuln(E),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t)}this.strip()},a.prototype.copy=function(e){e.words=new Array(this.length);for(var r=0;r<this.length;r++)e.words[r]=this.words[r];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var w=["","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"],b=[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],_=[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];a.prototype.toString=function(e,r){e=e||10,r=r|0||1;var o;if(e===16||e==="hex"){o="";for(var f=0,h=0,p=0;p<this.length;p++){var g=this.words[p],l=((g<<f|h)&16777215).toString(16);h=g>>>24-f&16777215,f+=2,f>=26&&(f-=26,p--),h!==0||p!==this.length-1?o=w[6-l.length]+l+o:o=l+o}for(h!==0&&(o=h.toString(16)+o);o.length%r!==0;)o="0"+o;return this.negative!==0&&(o="-"+o),o}if(e===(e|0)&&e>=2&&e<=36){var t=b[e],u=_[e];o="";var E=this.clone();for(E.negative=0;!E.isZero();){var B=E.modn(u).toString(e);E=E.idivn(u),E.isZero()?o=B+o:o=w[t-B.length]+B+o}for(this.isZero()&&(o="0"+o);o.length%r!==0;)o="0"+o;return this.negative!==0&&(o="-"+o),o}s(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=this.words[1]*67108864:this.length===3&&this.words[2]===1?e+=4503599627370496+this.words[1]*67108864:this.length>2&&s(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,r){return s(typeof d<"u"),this.toArrayLike(d,e,r)},a.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},a.prototype.toArrayLike=function(e,r,o){var f=this.byteLength(),h=o||Math.max(1,f);s(f<=h,"byte array longer than desired length"),s(h>0,"Requested array length <= 0"),this.strip();var p=r==="le",g=new e(h),l,t,u=this.clone();if(p){for(t=0;!u.isZero();t++)l=u.andln(255),u.iushrn(8),g[t]=l;for(;t<h;t++)g[t]=0}else{for(t=0;t<h-f;t++)g[t]=0;for(t=0;!u.isZero();t++)l=u.andln(255),u.iushrn(8),g[h-t-1]=l}return g},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var r=e,o=0;return r>=4096&&(o+=13,r>>>=13),r>=64&&(o+=7,r>>>=7),r>=8&&(o+=4,r>>>=4),r>=2&&(o+=2,r>>>=2),o+r},a.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,o=0;return r&8191||(o+=13,r>>>=13),r&127||(o+=7,r>>>=7),r&15||(o+=4,r>>>=4),r&3||(o+=2,r>>>=2),r&1||o++,o},a.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return(this.length-1)*26+r};function x(m){for(var e=new Array(m.bitLength()),r=0;r<e.length;r++){var o=r/26|0,f=r%26;e[r]=(m.words[o]&1<<f)>>>f}return e}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var o=this._zeroBits(this.words[r]);if(e+=o,o!==26)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]|e.words[r];return this.strip()},a.prototype.ior=function(e){return s((this.negative|e.negative)===0),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var r;this.length>e.length?r=e:r=this;for(var o=0;o<r.length;o++)this.words[o]=this.words[o]&e.words[o];return this.length=r.length,this.strip()},a.prototype.iand=function(e){return s((this.negative|e.negative)===0),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var r,o;this.length>e.length?(r=this,o=e):(r=e,o=this);for(var f=0;f<o.length;f++)this.words[f]=r.words[f]^o.words[f];if(this!==r)for(;f<r.length;f++)this.words[f]=r.words[f];return this.length=r.length,this.strip()},a.prototype.ixor=function(e){return s((this.negative|e.negative)===0),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){s(typeof e=="number"&&e>=0);var r=Math.ceil(e/26)|0,o=e%26;this._expand(r),o>0&&r--;for(var f=0;f<r;f++)this.words[f]=~this.words[f]&67108863;return o>0&&(this.words[f]=~this.words[f]&67108863>>26-o),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,r){s(typeof e=="number"&&e>=0);var o=e/26|0,f=e%26;return this._expand(o+1),r?this.words[o]=this.words[o]|1<<f:this.words[o]=this.words[o]&~(1<<f),this.strip()},a.prototype.iadd=function(e){var r;if(this.negative!==0&&e.negative===0)return this.negative=0,r=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,r=this.isub(e),e.negative=1,r._normSign();var o,f;this.length>e.length?(o=this,f=e):(o=e,f=this);for(var h=0,p=0;p<f.length;p++)r=(o.words[p]|0)+(f.words[p]|0)+h,this.words[p]=r&67108863,h=r>>>26;for(;h!==0&&p<o.length;p++)r=(o.words[p]|0)+h,this.words[p]=r&67108863,h=r>>>26;if(this.length=o.length,h!==0)this.words[this.length]=h,this.length++;else if(o!==this)for(;p<o.length;p++)this.words[p]=o.words[p];return this},a.prototype.add=function(e){var r;return e.negative!==0&&this.negative===0?(e.negative=0,r=this.sub(e),e.negative^=1,r):e.negative===0&&this.negative!==0?(this.negative=0,r=e.sub(this),this.negative=1,r):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);return e.negative=1,r._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var o=this.cmp(e);if(o===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,h;o>0?(f=this,h=e):(f=e,h=this);for(var p=0,g=0;g<h.length;g++)r=(f.words[g]|0)-(h.words[g]|0)+p,p=r>>26,this.words[g]=r&67108863;for(;p!==0&&g<f.length;g++)r=(f.words[g]|0)+p,p=r>>26,this.words[g]=r&67108863;if(p===0&&g<f.length&&f!==this)for(;g<f.length;g++)this.words[g]=f.words[g];return this.length=Math.max(this.length,g),f!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(e){return this.clone().isub(e)};function S(m,e,r){r.negative=e.negative^m.negative;var o=m.length+e.length|0;r.length=o,o=o-1|0;var f=m.words[0]|0,h=e.words[0]|0,p=f*h,g=p&67108863,l=p/67108864|0;r.words[0]=g;for(var t=1;t<o;t++){for(var u=l>>>26,E=l&67108863,B=Math.min(t,e.length-1),k=Math.max(0,t-m.length+1);k<=B;k++){var q=t-k|0;f=m.words[q]|0,h=e.words[k]|0,p=f*h+E,u+=p/67108864|0,E=p&67108863}r.words[t]=E|0,l=u|0}return l!==0?r.words[t]=l|0:r.length--,r.strip()}var I=function(e,r,o){var f=e.words,h=r.words,p=o.words,g=0,l,t,u,E=f[0]|0,B=E&8191,k=E>>>13,q=f[1]|0,z=q&8191,ee=q>>>13,te=f[2]|0,O=te&8191,U=te>>>13,oe=f[3]|0,X=oe&8191,j=oe>>>13,V=f[4]|0,G=V&8191,ie=V>>>13,ge=f[5]|0,re=ge&8191,ae=ge>>>13,we=f[6]|0,fe=we&8191,he=we>>>13,nt=f[7]|0,de=nt&8191,be=nt>>>13,ut=f[8]|0,$=ut&8191,A=ut>>>13,T=f[9]|0,C=T&8191,H=T>>>13,ne=h[0]|0,J=ne&8191,ce=ne>>>13,ft=h[1]|0,le=ft&8191,ve=ft>>>13,st=h[2]|0,Se=st&8191,Le=st>>>13,mt=h[3]|0,Ee=mt&8191,Ne=mt>>>13,bt=h[4]|0,Be=bt&8191,Ce=bt>>>13,vt=h[5]|0,se=vt&8191,ue=vt>>>13,ht=h[6]|0,pe=ht&8191,Ie=ht>>>13,ct=h[7]|0,ye=ct&8191,De=ct>>>13,dt=h[8]|0,Ae=dt&8191,Oe=dt>>>13,gt=h[9]|0,Re=gt&8191,$e=gt>>>13;o.negative=e.negative^r.negative,o.length=19,l=Math.imul(B,J),t=Math.imul(B,ce),t=t+Math.imul(k,J)|0,u=Math.imul(k,ce);var pt=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(pt>>>26)|0,pt&=67108863,l=Math.imul(z,J),t=Math.imul(z,ce),t=t+Math.imul(ee,J)|0,u=Math.imul(ee,ce),l=l+Math.imul(B,le)|0,t=t+Math.imul(B,ve)|0,t=t+Math.imul(k,le)|0,u=u+Math.imul(k,ve)|0;var lt=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(lt>>>26)|0,lt&=67108863,l=Math.imul(O,J),t=Math.imul(O,ce),t=t+Math.imul(U,J)|0,u=Math.imul(U,ce),l=l+Math.imul(z,le)|0,t=t+Math.imul(z,ve)|0,t=t+Math.imul(ee,le)|0,u=u+Math.imul(ee,ve)|0,l=l+Math.imul(B,Se)|0,t=t+Math.imul(B,Le)|0,t=t+Math.imul(k,Se)|0,u=u+Math.imul(k,Le)|0;var yt=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(yt>>>26)|0,yt&=67108863,l=Math.imul(X,J),t=Math.imul(X,ce),t=t+Math.imul(j,J)|0,u=Math.imul(j,ce),l=l+Math.imul(O,le)|0,t=t+Math.imul(O,ve)|0,t=t+Math.imul(U,le)|0,u=u+Math.imul(U,ve)|0,l=l+Math.imul(z,Se)|0,t=t+Math.imul(z,Le)|0,t=t+Math.imul(ee,Se)|0,u=u+Math.imul(ee,Le)|0,l=l+Math.imul(B,Ee)|0,t=t+Math.imul(B,Ne)|0,t=t+Math.imul(k,Ee)|0,u=u+Math.imul(k,Ne)|0;var xt=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(xt>>>26)|0,xt&=67108863,l=Math.imul(G,J),t=Math.imul(G,ce),t=t+Math.imul(ie,J)|0,u=Math.imul(ie,ce),l=l+Math.imul(X,le)|0,t=t+Math.imul(X,ve)|0,t=t+Math.imul(j,le)|0,u=u+Math.imul(j,ve)|0,l=l+Math.imul(O,Se)|0,t=t+Math.imul(O,Le)|0,t=t+Math.imul(U,Se)|0,u=u+Math.imul(U,Le)|0,l=l+Math.imul(z,Ee)|0,t=t+Math.imul(z,Ne)|0,t=t+Math.imul(ee,Ee)|0,u=u+Math.imul(ee,Ne)|0,l=l+Math.imul(B,Be)|0,t=t+Math.imul(B,Ce)|0,t=t+Math.imul(k,Be)|0,u=u+Math.imul(k,Ce)|0;var Mt=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,l=Math.imul(re,J),t=Math.imul(re,ce),t=t+Math.imul(ae,J)|0,u=Math.imul(ae,ce),l=l+Math.imul(G,le)|0,t=t+Math.imul(G,ve)|0,t=t+Math.imul(ie,le)|0,u=u+Math.imul(ie,ve)|0,l=l+Math.imul(X,Se)|0,t=t+Math.imul(X,Le)|0,t=t+Math.imul(j,Se)|0,u=u+Math.imul(j,Le)|0,l=l+Math.imul(O,Ee)|0,t=t+Math.imul(O,Ne)|0,t=t+Math.imul(U,Ee)|0,u=u+Math.imul(U,Ne)|0,l=l+Math.imul(z,Be)|0,t=t+Math.imul(z,Ce)|0,t=t+Math.imul(ee,Be)|0,u=u+Math.imul(ee,Ce)|0,l=l+Math.imul(B,se)|0,t=t+Math.imul(B,ue)|0,t=t+Math.imul(k,se)|0,u=u+Math.imul(k,ue)|0;var Et=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(Et>>>26)|0,Et&=67108863,l=Math.imul(fe,J),t=Math.imul(fe,ce),t=t+Math.imul(he,J)|0,u=Math.imul(he,ce),l=l+Math.imul(re,le)|0,t=t+Math.imul(re,ve)|0,t=t+Math.imul(ae,le)|0,u=u+Math.imul(ae,ve)|0,l=l+Math.imul(G,Se)|0,t=t+Math.imul(G,Le)|0,t=t+Math.imul(ie,Se)|0,u=u+Math.imul(ie,Le)|0,l=l+Math.imul(X,Ee)|0,t=t+Math.imul(X,Ne)|0,t=t+Math.imul(j,Ee)|0,u=u+Math.imul(j,Ne)|0,l=l+Math.imul(O,Be)|0,t=t+Math.imul(O,Ce)|0,t=t+Math.imul(U,Be)|0,u=u+Math.imul(U,Ce)|0,l=l+Math.imul(z,se)|0,t=t+Math.imul(z,ue)|0,t=t+Math.imul(ee,se)|0,u=u+Math.imul(ee,ue)|0,l=l+Math.imul(B,pe)|0,t=t+Math.imul(B,Ie)|0,t=t+Math.imul(k,pe)|0,u=u+Math.imul(k,Ie)|0;var At=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(At>>>26)|0,At&=67108863,l=Math.imul(de,J),t=Math.imul(de,ce),t=t+Math.imul(be,J)|0,u=Math.imul(be,ce),l=l+Math.imul(fe,le)|0,t=t+Math.imul(fe,ve)|0,t=t+Math.imul(he,le)|0,u=u+Math.imul(he,ve)|0,l=l+Math.imul(re,Se)|0,t=t+Math.imul(re,Le)|0,t=t+Math.imul(ae,Se)|0,u=u+Math.imul(ae,Le)|0,l=l+Math.imul(G,Ee)|0,t=t+Math.imul(G,Ne)|0,t=t+Math.imul(ie,Ee)|0,u=u+Math.imul(ie,Ne)|0,l=l+Math.imul(X,Be)|0,t=t+Math.imul(X,Ce)|0,t=t+Math.imul(j,Be)|0,u=u+Math.imul(j,Ce)|0,l=l+Math.imul(O,se)|0,t=t+Math.imul(O,ue)|0,t=t+Math.imul(U,se)|0,u=u+Math.imul(U,ue)|0,l=l+Math.imul(z,pe)|0,t=t+Math.imul(z,Ie)|0,t=t+Math.imul(ee,pe)|0,u=u+Math.imul(ee,Ie)|0,l=l+Math.imul(B,ye)|0,t=t+Math.imul(B,De)|0,t=t+Math.imul(k,ye)|0,u=u+Math.imul(k,De)|0;var Bt=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,l=Math.imul($,J),t=Math.imul($,ce),t=t+Math.imul(A,J)|0,u=Math.imul(A,ce),l=l+Math.imul(de,le)|0,t=t+Math.imul(de,ve)|0,t=t+Math.imul(be,le)|0,u=u+Math.imul(be,ve)|0,l=l+Math.imul(fe,Se)|0,t=t+Math.imul(fe,Le)|0,t=t+Math.imul(he,Se)|0,u=u+Math.imul(he,Le)|0,l=l+Math.imul(re,Ee)|0,t=t+Math.imul(re,Ne)|0,t=t+Math.imul(ae,Ee)|0,u=u+Math.imul(ae,Ne)|0,l=l+Math.imul(G,Be)|0,t=t+Math.imul(G,Ce)|0,t=t+Math.imul(ie,Be)|0,u=u+Math.imul(ie,Ce)|0,l=l+Math.imul(X,se)|0,t=t+Math.imul(X,ue)|0,t=t+Math.imul(j,se)|0,u=u+Math.imul(j,ue)|0,l=l+Math.imul(O,pe)|0,t=t+Math.imul(O,Ie)|0,t=t+Math.imul(U,pe)|0,u=u+Math.imul(U,Ie)|0,l=l+Math.imul(z,ye)|0,t=t+Math.imul(z,De)|0,t=t+Math.imul(ee,ye)|0,u=u+Math.imul(ee,De)|0,l=l+Math.imul(B,Ae)|0,t=t+Math.imul(B,Oe)|0,t=t+Math.imul(k,Ae)|0,u=u+Math.imul(k,Oe)|0;var Rt=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,l=Math.imul(C,J),t=Math.imul(C,ce),t=t+Math.imul(H,J)|0,u=Math.imul(H,ce),l=l+Math.imul($,le)|0,t=t+Math.imul($,ve)|0,t=t+Math.imul(A,le)|0,u=u+Math.imul(A,ve)|0,l=l+Math.imul(de,Se)|0,t=t+Math.imul(de,Le)|0,t=t+Math.imul(be,Se)|0,u=u+Math.imul(be,Le)|0,l=l+Math.imul(fe,Ee)|0,t=t+Math.imul(fe,Ne)|0,t=t+Math.imul(he,Ee)|0,u=u+Math.imul(he,Ne)|0,l=l+Math.imul(re,Be)|0,t=t+Math.imul(re,Ce)|0,t=t+Math.imul(ae,Be)|0,u=u+Math.imul(ae,Ce)|0,l=l+Math.imul(G,se)|0,t=t+Math.imul(G,ue)|0,t=t+Math.imul(ie,se)|0,u=u+Math.imul(ie,ue)|0,l=l+Math.imul(X,pe)|0,t=t+Math.imul(X,Ie)|0,t=t+Math.imul(j,pe)|0,u=u+Math.imul(j,Ie)|0,l=l+Math.imul(O,ye)|0,t=t+Math.imul(O,De)|0,t=t+Math.imul(U,ye)|0,u=u+Math.imul(U,De)|0,l=l+Math.imul(z,Ae)|0,t=t+Math.imul(z,Oe)|0,t=t+Math.imul(ee,Ae)|0,u=u+Math.imul(ee,Oe)|0,l=l+Math.imul(B,Re)|0,t=t+Math.imul(B,$e)|0,t=t+Math.imul(k,Re)|0,u=u+Math.imul(k,$e)|0;var Tt=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,l=Math.imul(C,le),t=Math.imul(C,ve),t=t+Math.imul(H,le)|0,u=Math.imul(H,ve),l=l+Math.imul($,Se)|0,t=t+Math.imul($,Le)|0,t=t+Math.imul(A,Se)|0,u=u+Math.imul(A,Le)|0,l=l+Math.imul(de,Ee)|0,t=t+Math.imul(de,Ne)|0,t=t+Math.imul(be,Ee)|0,u=u+Math.imul(be,Ne)|0,l=l+Math.imul(fe,Be)|0,t=t+Math.imul(fe,Ce)|0,t=t+Math.imul(he,Be)|0,u=u+Math.imul(he,Ce)|0,l=l+Math.imul(re,se)|0,t=t+Math.imul(re,ue)|0,t=t+Math.imul(ae,se)|0,u=u+Math.imul(ae,ue)|0,l=l+Math.imul(G,pe)|0,t=t+Math.imul(G,Ie)|0,t=t+Math.imul(ie,pe)|0,u=u+Math.imul(ie,Ie)|0,l=l+Math.imul(X,ye)|0,t=t+Math.imul(X,De)|0,t=t+Math.imul(j,ye)|0,u=u+Math.imul(j,De)|0,l=l+Math.imul(O,Ae)|0,t=t+Math.imul(O,Oe)|0,t=t+Math.imul(U,Ae)|0,u=u+Math.imul(U,Oe)|0,l=l+Math.imul(z,Re)|0,t=t+Math.imul(z,$e)|0,t=t+Math.imul(ee,Re)|0,u=u+Math.imul(ee,$e)|0;var kt=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(kt>>>26)|0,kt&=67108863,l=Math.imul(C,Se),t=Math.imul(C,Le),t=t+Math.imul(H,Se)|0,u=Math.imul(H,Le),l=l+Math.imul($,Ee)|0,t=t+Math.imul($,Ne)|0,t=t+Math.imul(A,Ee)|0,u=u+Math.imul(A,Ne)|0,l=l+Math.imul(de,Be)|0,t=t+Math.imul(de,Ce)|0,t=t+Math.imul(be,Be)|0,u=u+Math.imul(be,Ce)|0,l=l+Math.imul(fe,se)|0,t=t+Math.imul(fe,ue)|0,t=t+Math.imul(he,se)|0,u=u+Math.imul(he,ue)|0,l=l+Math.imul(re,pe)|0,t=t+Math.imul(re,Ie)|0,t=t+Math.imul(ae,pe)|0,u=u+Math.imul(ae,Ie)|0,l=l+Math.imul(G,ye)|0,t=t+Math.imul(G,De)|0,t=t+Math.imul(ie,ye)|0,u=u+Math.imul(ie,De)|0,l=l+Math.imul(X,Ae)|0,t=t+Math.imul(X,Oe)|0,t=t+Math.imul(j,Ae)|0,u=u+Math.imul(j,Oe)|0,l=l+Math.imul(O,Re)|0,t=t+Math.imul(O,$e)|0,t=t+Math.imul(U,Re)|0,u=u+Math.imul(U,$e)|0;var Pt=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,l=Math.imul(C,Ee),t=Math.imul(C,Ne),t=t+Math.imul(H,Ee)|0,u=Math.imul(H,Ne),l=l+Math.imul($,Be)|0,t=t+Math.imul($,Ce)|0,t=t+Math.imul(A,Be)|0,u=u+Math.imul(A,Ce)|0,l=l+Math.imul(de,se)|0,t=t+Math.imul(de,ue)|0,t=t+Math.imul(be,se)|0,u=u+Math.imul(be,ue)|0,l=l+Math.imul(fe,pe)|0,t=t+Math.imul(fe,Ie)|0,t=t+Math.imul(he,pe)|0,u=u+Math.imul(he,Ie)|0,l=l+Math.imul(re,ye)|0,t=t+Math.imul(re,De)|0,t=t+Math.imul(ae,ye)|0,u=u+Math.imul(ae,De)|0,l=l+Math.imul(G,Ae)|0,t=t+Math.imul(G,Oe)|0,t=t+Math.imul(ie,Ae)|0,u=u+Math.imul(ie,Oe)|0,l=l+Math.imul(X,Re)|0,t=t+Math.imul(X,$e)|0,t=t+Math.imul(j,Re)|0,u=u+Math.imul(j,$e)|0;var $t=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+($t>>>26)|0,$t&=67108863,l=Math.imul(C,Be),t=Math.imul(C,Ce),t=t+Math.imul(H,Be)|0,u=Math.imul(H,Ce),l=l+Math.imul($,se)|0,t=t+Math.imul($,ue)|0,t=t+Math.imul(A,se)|0,u=u+Math.imul(A,ue)|0,l=l+Math.imul(de,pe)|0,t=t+Math.imul(de,Ie)|0,t=t+Math.imul(be,pe)|0,u=u+Math.imul(be,Ie)|0,l=l+Math.imul(fe,ye)|0,t=t+Math.imul(fe,De)|0,t=t+Math.imul(he,ye)|0,u=u+Math.imul(he,De)|0,l=l+Math.imul(re,Ae)|0,t=t+Math.imul(re,Oe)|0,t=t+Math.imul(ae,Ae)|0,u=u+Math.imul(ae,Oe)|0,l=l+Math.imul(G,Re)|0,t=t+Math.imul(G,$e)|0,t=t+Math.imul(ie,Re)|0,u=u+Math.imul(ie,$e)|0;var Nt=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,l=Math.imul(C,se),t=Math.imul(C,ue),t=t+Math.imul(H,se)|0,u=Math.imul(H,ue),l=l+Math.imul($,pe)|0,t=t+Math.imul($,Ie)|0,t=t+Math.imul(A,pe)|0,u=u+Math.imul(A,Ie)|0,l=l+Math.imul(de,ye)|0,t=t+Math.imul(de,De)|0,t=t+Math.imul(be,ye)|0,u=u+Math.imul(be,De)|0,l=l+Math.imul(fe,Ae)|0,t=t+Math.imul(fe,Oe)|0,t=t+Math.imul(he,Ae)|0,u=u+Math.imul(he,Oe)|0,l=l+Math.imul(re,Re)|0,t=t+Math.imul(re,$e)|0,t=t+Math.imul(ae,Re)|0,u=u+Math.imul(ae,$e)|0;var Ct=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,l=Math.imul(C,pe),t=Math.imul(C,Ie),t=t+Math.imul(H,pe)|0,u=Math.imul(H,Ie),l=l+Math.imul($,ye)|0,t=t+Math.imul($,De)|0,t=t+Math.imul(A,ye)|0,u=u+Math.imul(A,De)|0,l=l+Math.imul(de,Ae)|0,t=t+Math.imul(de,Oe)|0,t=t+Math.imul(be,Ae)|0,u=u+Math.imul(be,Oe)|0,l=l+Math.imul(fe,Re)|0,t=t+Math.imul(fe,$e)|0,t=t+Math.imul(he,Re)|0,u=u+Math.imul(he,$e)|0;var Dt=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,l=Math.imul(C,ye),t=Math.imul(C,De),t=t+Math.imul(H,ye)|0,u=Math.imul(H,De),l=l+Math.imul($,Ae)|0,t=t+Math.imul($,Oe)|0,t=t+Math.imul(A,Ae)|0,u=u+Math.imul(A,Oe)|0,l=l+Math.imul(de,Re)|0,t=t+Math.imul(de,$e)|0,t=t+Math.imul(be,Re)|0,u=u+Math.imul(be,$e)|0;var Ot=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,l=Math.imul(C,Ae),t=Math.imul(C,Oe),t=t+Math.imul(H,Ae)|0,u=Math.imul(H,Oe),l=l+Math.imul($,Re)|0,t=t+Math.imul($,$e)|0,t=t+Math.imul(A,Re)|0,u=u+Math.imul(A,$e)|0;var Ut=(g+l|0)+((t&8191)<<13)|0;g=(u+(t>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,l=Math.imul(C,Re),t=Math.imul(C,$e),t=t+Math.imul(H,Re)|0,u=Math.imul(H,$e);var zt=(g+l|0)+((t&8191)<<13)|0;return g=(u+(t>>>13)|0)+(zt>>>26)|0,zt&=67108863,p[0]=pt,p[1]=lt,p[2]=yt,p[3]=xt,p[4]=Mt,p[5]=Et,p[6]=At,p[7]=Bt,p[8]=Rt,p[9]=Tt,p[10]=kt,p[11]=Pt,p[12]=$t,p[13]=Nt,p[14]=Ct,p[15]=Dt,p[16]=Ot,p[17]=Ut,p[18]=zt,g!==0&&(p[19]=g,o.length++),o};Math.imul||(I=S);function R(m,e,r){r.negative=e.negative^m.negative,r.length=m.length+e.length;for(var o=0,f=0,h=0;h<r.length-1;h++){var p=f;f=0;for(var g=o&67108863,l=Math.min(h,e.length-1),t=Math.max(0,h-m.length+1);t<=l;t++){var u=h-t,E=m.words[u]|0,B=e.words[t]|0,k=E*B,q=k&67108863;p=p+(k/67108864|0)|0,q=q+g|0,g=q&67108863,p=p+(q>>>26)|0,f+=p>>>26,p&=67108863}r.words[h]=g,o=p,p=f}return o!==0?r.words[h]=o:r.length--,r.strip()}function N(m,e,r){var o=new P;return o.mulp(m,e,r)}a.prototype.mulTo=function(e,r){var o,f=this.length+e.length;return this.length===10&&e.length===10?o=I(this,e,r):f<63?o=S(this,e,r):f<1024?o=R(this,e,r):o=N(this,e,r),o};function P(m,e){this.x=m,this.y=e}P.prototype.makeRBT=function(e){for(var r=new Array(e),o=a.prototype._countBits(e)-1,f=0;f<e;f++)r[f]=this.revBin(f,o,e);return r},P.prototype.revBin=function(e,r,o){if(e===0||e===o-1)return e;for(var f=0,h=0;h<r;h++)f|=(e&1)<<r-h-1,e>>=1;return f},P.prototype.permute=function(e,r,o,f,h,p){for(var g=0;g<p;g++)f[g]=r[e[g]],h[g]=o[e[g]]},P.prototype.transform=function(e,r,o,f,h,p){this.permute(p,e,r,o,f,h);for(var g=1;g<h;g<<=1)for(var l=g<<1,t=Math.cos(2*Math.PI/l),u=Math.sin(2*Math.PI/l),E=0;E<h;E+=l)for(var B=t,k=u,q=0;q<g;q++){var z=o[E+q],ee=f[E+q],te=o[E+q+g],O=f[E+q+g],U=B*te-k*O;O=B*O+k*te,te=U,o[E+q]=z+te,f[E+q]=ee+O,o[E+q+g]=z-te,f[E+q+g]=ee-O,q!==l&&(U=t*B-u*k,k=t*k+u*B,B=U)}},P.prototype.guessLen13b=function(e,r){var o=Math.max(r,e)|1,f=o&1,h=0;for(o=o/2|0;o;o=o>>>1)h++;return 1<<h+1+f},P.prototype.conjugate=function(e,r,o){if(!(o<=1))for(var f=0;f<o/2;f++){var h=e[f];e[f]=e[o-f-1],e[o-f-1]=h,h=r[f],r[f]=-r[o-f-1],r[o-f-1]=-h}},P.prototype.normalize13b=function(e,r){for(var o=0,f=0;f<r/2;f++){var h=Math.round(e[2*f+1]/r)*8192+Math.round(e[2*f]/r)+o;e[f]=h&67108863,h<67108864?o=0:o=h/67108864|0}return e},P.prototype.convert13b=function(e,r,o,f){for(var h=0,p=0;p<r;p++)h=h+(e[p]|0),o[2*p]=h&8191,h=h>>>13,o[2*p+1]=h&8191,h=h>>>13;for(p=2*r;p<f;++p)o[p]=0;s(h===0),s((h&-8192)===0)},P.prototype.stub=function(e){for(var r=new Array(e),o=0;o<e;o++)r[o]=0;return r},P.prototype.mulp=function(e,r,o){var f=2*this.guessLen13b(e.length,r.length),h=this.makeRBT(f),p=this.stub(f),g=new Array(f),l=new Array(f),t=new Array(f),u=new Array(f),E=new Array(f),B=new Array(f),k=o.words;k.length=f,this.convert13b(e.words,e.length,g,f),this.convert13b(r.words,r.length,u,f),this.transform(g,p,l,t,f,h),this.transform(u,p,E,B,f,h);for(var q=0;q<f;q++){var z=l[q]*E[q]-t[q]*B[q];t[q]=l[q]*B[q]+t[q]*E[q],l[q]=z}return this.conjugate(l,t,f),this.transform(l,t,k,p,f,h),this.conjugate(k,p,f),this.normalize13b(k,f),o.negative=e.negative^r.negative,o.length=e.length+r.length,o.strip()},a.prototype.mul=function(e){var r=new a(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},a.prototype.mulf=function(e){var r=new a(null);return r.words=new Array(this.length+e.length),N(this,e,r)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){s(typeof e=="number"),s(e<67108864);for(var r=0,o=0;o<this.length;o++){var f=(this.words[o]|0)*e,h=(f&67108863)+(r&67108863);r>>=26,r+=f/67108864|0,r+=h>>>26,this.words[o]=h&67108863}return r!==0&&(this.words[o]=r,this.length++),this.length=e===0?1:this.length,this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var r=x(e);if(r.length===0)return new a(1);for(var o=this,f=0;f<r.length&&r[f]===0;f++,o=o.sqr());if(++f<r.length)for(var h=o.sqr();f<r.length;f++,h=h.sqr())r[f]!==0&&(o=o.mul(h));return o},a.prototype.iushln=function(e){s(typeof e=="number"&&e>=0);var r=e%26,o=(e-r)/26,f=67108863>>>26-r<<26-r,h;if(r!==0){var p=0;for(h=0;h<this.length;h++){var g=this.words[h]&f,l=(this.words[h]|0)-g<<r;this.words[h]=l|p,p=g>>>26-r}p&&(this.words[h]=p,this.length++)}if(o!==0){for(h=this.length-1;h>=0;h--)this.words[h+o]=this.words[h];for(h=0;h<o;h++)this.words[h]=0;this.length+=o}return this.strip()},a.prototype.ishln=function(e){return s(this.negative===0),this.iushln(e)},a.prototype.iushrn=function(e,r,o){s(typeof e=="number"&&e>=0);var f;r?f=(r-r%26)/26:f=0;var h=e%26,p=Math.min((e-h)/26,this.length),g=67108863^67108863>>>h<<h,l=o;if(f-=p,f=Math.max(0,f),l){for(var t=0;t<p;t++)l.words[t]=this.words[t];l.length=p}if(p!==0)if(this.length>p)for(this.length-=p,t=0;t<this.length;t++)this.words[t]=this.words[t+p];else this.words[0]=0,this.length=1;var u=0;for(t=this.length-1;t>=0&&(u!==0||t>=f);t--){var E=this.words[t]|0;this.words[t]=u<<26-h|E>>>h,u=E&g}return l&&u!==0&&(l.words[l.length++]=u),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,r,o){return s(this.negative===0),this.iushrn(e,r,o)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){s(typeof e=="number"&&e>=0);var r=e%26,o=(e-r)/26,f=1<<r;if(this.length<=o)return!1;var h=this.words[o];return!!(h&f)},a.prototype.imaskn=function(e){s(typeof e=="number"&&e>=0);var r=e%26,o=(e-r)/26;if(s(this.negative===0,"imaskn works only with positive numbers"),this.length<=o)return this;if(r!==0&&o++,this.length=Math.min(o,this.length),r!==0){var f=67108863^67108863>>>r<<r;this.words[this.length-1]&=f}return this.strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return s(typeof e=="number"),s(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(this.words[0]|0)<e?(this.words[0]=e-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(e){if(s(typeof e=="number"),s(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,r,o){var f=e.length+o,h;this._expand(f);var p,g=0;for(h=0;h<e.length;h++){p=(this.words[h+o]|0)+g;var l=(e.words[h]|0)*r;p-=l&67108863,g=(p>>26)-(l/67108864|0),this.words[h+o]=p&67108863}for(;h<this.length-o;h++)p=(this.words[h+o]|0)+g,g=p>>26,this.words[h+o]=p&67108863;if(g===0)return this.strip();for(s(g===-1),g=0,h=0;h<this.length;h++)p=-(this.words[h]|0)+g,g=p>>26,this.words[h]=p&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,r){var o=this.length-e.length,f=this.clone(),h=e,p=h.words[h.length-1]|0,g=this._countBits(p);o=26-g,o!==0&&(h=h.ushln(o),f.iushln(o),p=h.words[h.length-1]|0);var l=f.length-h.length,t;if(r!=="mod"){t=new a(null),t.length=l+1,t.words=new Array(t.length);for(var u=0;u<t.length;u++)t.words[u]=0}var E=f.clone()._ishlnsubmul(h,1,l);E.negative===0&&(f=E,t&&(t.words[l]=1));for(var B=l-1;B>=0;B--){var k=(f.words[h.length+B]|0)*67108864+(f.words[h.length+B-1]|0);for(k=Math.min(k/p|0,67108863),f._ishlnsubmul(h,k,B);f.negative!==0;)k--,f.negative=0,f._ishlnsubmul(h,1,B),f.isZero()||(f.negative^=1);t&&(t.words[B]=k)}return t&&t.strip(),f.strip(),r!=="div"&&o!==0&&f.iushrn(o),{div:t||null,mod:f}},a.prototype.divmod=function(e,r,o){if(s(!e.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var f,h,p;return this.negative!==0&&e.negative===0?(p=this.neg().divmod(e,r),r!=="mod"&&(f=p.div.neg()),r!=="div"&&(h=p.mod.neg(),o&&h.negative!==0&&h.iadd(e)),{div:f,mod:h}):this.negative===0&&e.negative!==0?(p=this.divmod(e.neg(),r),r!=="mod"&&(f=p.div.neg()),{div:f,mod:p.mod}):this.negative&e.negative?(p=this.neg().divmod(e.neg(),r),r!=="div"&&(h=p.mod.neg(),o&&h.negative!==0&&h.isub(e)),{div:p.div,mod:h}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,r)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var o=r.div.negative!==0?r.mod.isub(e):r.mod,f=e.ushrn(1),h=e.andln(1),p=o.cmp(f);return p<0||h===1&&p===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(e){s(e<=67108863);for(var r=(1<<26)%e,o=0,f=this.length-1;f>=0;f--)o=(r*o+(this.words[f]|0))%e;return o},a.prototype.idivn=function(e){s(e<=67108863);for(var r=0,o=this.length-1;o>=0;o--){var f=(this.words[o]|0)+r*67108864;this.words[o]=f/e|0,r=f%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){s(e.negative===0),s(!e.isZero());var r=this,o=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var f=new a(1),h=new a(0),p=new a(0),g=new a(1),l=0;r.isEven()&&o.isEven();)r.iushrn(1),o.iushrn(1),++l;for(var t=o.clone(),u=r.clone();!r.isZero();){for(var E=0,B=1;!(r.words[0]&B)&&E<26;++E,B<<=1);if(E>0)for(r.iushrn(E);E-- >0;)(f.isOdd()||h.isOdd())&&(f.iadd(t),h.isub(u)),f.iushrn(1),h.iushrn(1);for(var k=0,q=1;!(o.words[0]&q)&&k<26;++k,q<<=1);if(k>0)for(o.iushrn(k);k-- >0;)(p.isOdd()||g.isOdd())&&(p.iadd(t),g.isub(u)),p.iushrn(1),g.iushrn(1);r.cmp(o)>=0?(r.isub(o),f.isub(p),h.isub(g)):(o.isub(r),p.isub(f),g.isub(h))}return{a:p,b:g,gcd:o.iushln(l)}},a.prototype._invmp=function(e){s(e.negative===0),s(!e.isZero());var r=this,o=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var f=new a(1),h=new a(0),p=o.clone();r.cmpn(1)>0&&o.cmpn(1)>0;){for(var g=0,l=1;!(r.words[0]&l)&&g<26;++g,l<<=1);if(g>0)for(r.iushrn(g);g-- >0;)f.isOdd()&&f.iadd(p),f.iushrn(1);for(var t=0,u=1;!(o.words[0]&u)&&t<26;++t,u<<=1);if(t>0)for(o.iushrn(t);t-- >0;)h.isOdd()&&h.iadd(p),h.iushrn(1);r.cmp(o)>=0?(r.isub(o),f.isub(h)):(o.isub(r),h.isub(f))}var E;return r.cmpn(1)===0?E=f:E=h,E.cmpn(0)<0&&E.iadd(e),E},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),o=e.clone();r.negative=0,o.negative=0;for(var f=0;r.isEven()&&o.isEven();f++)r.iushrn(1),o.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;o.isEven();)o.iushrn(1);var h=r.cmp(o);if(h<0){var p=r;r=o,o=p}else if(h===0||o.cmpn(1)===0)break;r.isub(o)}while(!0);return o.iushln(f)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){s(typeof e=="number");var r=e%26,o=(e-r)/26,f=1<<r;if(this.length<=o)return this._expand(o+1),this.words[o]|=f,this;for(var h=f,p=o;h!==0&&p<this.length;p++){var g=this.words[p]|0;g+=h,h=g>>>26,g&=67108863,this.words[p]=g}return h!==0&&(this.words[p]=h,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(e){var r=e<0;if(this.negative!==0&&!r)return-1;if(this.negative===0&&r)return 1;this.strip();var o;if(this.length>1)o=1;else{r&&(e=-e),s(e<=67108863,"Number is too big");var f=this.words[0]|0;o=f===e?0:f<e?-1:1}return this.negative!==0?-o|0:o},a.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var r=this.ucmp(e);return this.negative!==0?-r|0:r},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,o=this.length-1;o>=0;o--){var f=this.words[o]|0,h=e.words[o]|0;if(f!==h){f<h?r=-1:f>h&&(r=1);break}}return r},a.prototype.gtn=function(e){return this.cmpn(e)===1},a.prototype.gt=function(e){return this.cmp(e)===1},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return this.cmpn(e)===-1},a.prototype.lt=function(e){return this.cmp(e)===-1},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return this.cmpn(e)===0},a.prototype.eq=function(e){return this.cmp(e)===0},a.red=function(e){return new F(e)},a.prototype.toRed=function(e){return s(!this.red,"Already a number in reduction context"),s(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return s(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return s(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return s(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return s(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return s(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return s(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return s(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return s(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return s(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return s(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return s(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return s(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return s(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var L={k256:null,p224:null,p192:null,p25519:null};function D(m,e){this.name=m,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},D.prototype.ireduce=function(e){var r=e,o;do this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),o=r.bitLength();while(o>this.n);var f=o<this.n?-1:r.ucmp(this.p);return f===0?(r.words[0]=0,r.length=1):f>0?r.isub(this.p):r.strip!==void 0?r.strip():r._strip(),r},D.prototype.split=function(e,r){e.iushrn(this.n,0,r)},D.prototype.imulK=function(e){return e.imul(this.k)};function Z(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}c(Z,D),Z.prototype.split=function(e,r){for(var o=4194303,f=Math.min(e.length,9),h=0;h<f;h++)r.words[h]=e.words[h];if(r.length=f,e.length<=9){e.words[0]=0,e.length=1;return}var p=e.words[9];for(r.words[r.length++]=p&o,h=10;h<e.length;h++){var g=e.words[h]|0;e.words[h-10]=(g&o)<<4|p>>>22,p=g}p>>>=22,e.words[h-10]=p,p===0&&e.length>10?e.length-=10:e.length-=9},Z.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,o=0;o<e.length;o++){var f=e.words[o]|0;r+=f*977,e.words[o]=r&67108863,r=f*64+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function W(){D.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}c(W,D);function Q(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}c(Q,D);function K(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}c(K,D),K.prototype.imulK=function(e){for(var r=0,o=0;o<e.length;o++){var f=(e.words[o]|0)*19+r,h=f&67108863;f>>>=26,e.words[o]=h,r=f}return r!==0&&(e.words[e.length++]=r),e},a._prime=function(e){if(L[e])return L[e];var r;if(e==="k256")r=new Z;else if(e==="p224")r=new W;else if(e==="p192")r=new Q;else if(e==="p25519")r=new K;else throw new Error("Unknown prime "+e);return L[e]=r,r};function F(m){if(typeof m=="string"){var e=a._prime(m);this.m=e.p,this.prime=e}else s(m.gtn(1),"modulus must be greater than 1"),this.m=m,this.prime=null}F.prototype._verify1=function(e){s(e.negative===0,"red works only with positives"),s(e.red,"red works only with red numbers")},F.prototype._verify2=function(e,r){s((e.negative|r.negative)===0,"red works only with positives"),s(e.red&&e.red===r.red,"red works only with red numbers")},F.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},F.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},F.prototype.add=function(e,r){this._verify2(e,r);var o=e.add(r);return o.cmp(this.m)>=0&&o.isub(this.m),o._forceRed(this)},F.prototype.iadd=function(e,r){this._verify2(e,r);var o=e.iadd(r);return o.cmp(this.m)>=0&&o.isub(this.m),o},F.prototype.sub=function(e,r){this._verify2(e,r);var o=e.sub(r);return o.cmpn(0)<0&&o.iadd(this.m),o._forceRed(this)},F.prototype.isub=function(e,r){this._verify2(e,r);var o=e.isub(r);return o.cmpn(0)<0&&o.iadd(this.m),o},F.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},F.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},F.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},F.prototype.isqr=function(e){return this.imul(e,e.clone())},F.prototype.sqr=function(e){return this.mul(e,e)},F.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(s(r%2===1),r===3){var o=this.m.add(new a(1)).iushrn(2);return this.pow(e,o)}for(var f=this.m.subn(1),h=0;!f.isZero()&&f.andln(1)===0;)h++,f.iushrn(1);s(!f.isZero());var p=new a(1).toRed(this),g=p.redNeg(),l=this.m.subn(1).iushrn(1),t=this.m.bitLength();for(t=new a(2*t*t).toRed(this);this.pow(t,l).cmp(g)!==0;)t.redIAdd(g);for(var u=this.pow(t,f),E=this.pow(e,f.addn(1).iushrn(1)),B=this.pow(e,f),k=h;B.cmp(p)!==0;){for(var q=B,z=0;q.cmp(p)!==0;z++)q=q.redSqr();s(z<k);var ee=this.pow(u,new a(1).iushln(k-z-1));E=E.redMul(ee),u=ee.redSqr(),B=B.redMul(u),k=z}return E},F.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},F.prototype.pow=function(e,r){if(r.isZero())return new a(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var o=4,f=new Array(1<<o);f[0]=new a(1).toRed(this),f[1]=e;for(var h=2;h<f.length;h++)f[h]=this.mul(f[h-1],e);var p=f[0],g=0,l=0,t=r.bitLength()%26;for(t===0&&(t=26),h=r.length-1;h>=0;h--){for(var u=r.words[h],E=t-1;E>=0;E--){var B=u>>E&1;if(p!==f[0]&&(p=this.sqr(p)),B===0&&g===0){l=0;continue}g<<=1,g|=B,l++,!(l!==o&&(h!==0||E!==0))&&(p=this.mul(p,f[g]),l=0,g=0)}t=26}return p},F.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},F.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},a.mont=function(e){return new Y(e)};function Y(m){F.call(this,m),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(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)}c(Y,F),Y.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},Y.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},Y.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var o=e.imul(r),f=o.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=o.isub(f).iushrn(this.shift),p=h;return h.cmp(this.m)>=0?p=h.isub(this.m):h.cmpn(0)<0&&(p=h.iadd(this.m)),p._forceRed(this)},Y.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new a(0)._forceRed(this);var o=e.mul(r),f=o.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=o.isub(f).iushrn(this.shift),p=h;return h.cmp(this.m)>=0?p=h.isub(this.m):h.cmpn(0)<0&&(p=h.iadd(this.m)),p._forceRed(this)},Y.prototype.invm=function(e){var r=this.imod(e._invmp(this.m).mul(this.r2));return r._forceRed(this)}})(typeof rE>"u"||rE,vV)});var iE=St(gV=>{"use strict";var mTe=me(Me());xe();_e();var Mb=gV;function hve(i,n){if(Array.isArray(i))return i.slice();if(!i)return[];var s=[];if(typeof i!="string"){for(var c=0;c<i.length;c++)s[c]=i[c]|0;return s}if(n==="hex"){i=i.replace(/[^a-z0-9]+/ig,""),i.length%2!==0&&(i="0"+i);for(var c=0;c<i.length;c+=2)s.push(parseInt(i[c]+i[c+1],16))}else for(var c=0;c<i.length;c++){var a=i.charCodeAt(c),d=a>>8,v=a&255;d?s.push(d,v):s.push(v)}return s}Mb.toArray=hve;function mV(i){return i.length===1?"0"+i:i}Mb.zero2=mV;function bV(i){for(var n="",s=0;s<i.length;s++)n+=mV(i[s].toString(16));return n}Mb.toHex=bV;Mb.encode=function(n,s){return s==="hex"?bV(n):n}});var so=St(yV=>{"use strict";var wTe=me(Me());xe();_e();var Js=yV,uve=Df(),lve=ch(),_b=iE();Js.assert=lve;Js.toArray=_b.toArray;Js.zero2=_b.zero2;Js.toHex=_b.toHex;Js.encode=_b.encode;function cve(i,n,s){var c=new Array(Math.max(i.bitLength(),s)+1);c.fill(0);for(var a=1<<n+1,d=i.clone(),v=0;v<c.length;v++){var y,M=d.andln(a-1);d.isOdd()?(M>(a>>1)-1?y=(a>>1)-M:y=M,d.isubn(y)):y=0,c[v]=y,d.iushrn(1)}return c}Js.getNAF=cve;function dve(i,n){var s=[[],[]];i=i.clone(),n=n.clone();for(var c=0,a=0,d;i.cmpn(-c)>0||n.cmpn(-a)>0;){var v=i.andln(3)+c&3,y=n.andln(3)+a&3;v===3&&(v=-1),y===3&&(y=-1);var M;v&1?(d=i.andln(7)+c&7,(d===3||d===5)&&y===2?M=-v:M=v):M=0,s[0].push(M);var w;y&1?(d=n.andln(7)+a&7,(d===3||d===5)&&v===2?w=-y:w=y):w=0,s[1].push(w),2*c===M+1&&(c=1-c),2*a===w+1&&(a=1-a),i.iushrn(1),n.iushrn(1)}return s}Js.getJSF=dve;function pve(i,n,s){var c="_"+n;i.prototype[n]=function(){return this[c]!==void 0?this[c]:this[c]=s.call(this)}}Js.cachedProperty=pve;function vve(i){return typeof i=="string"?Js.toArray(i,"hex"):i}Js.parseBytes=vve;function mve(i){return new uve(i,"hex","le")}Js.intFromLE=mve});var sE=St((xTe,oE)=>{var STe=me(Me());xe();_e();var nE;oE.exports=function(n){return nE||(nE=new K0(null)),nE.generate(n)};function K0(i){this.rand=i}oE.exports.Rand=K0;K0.prototype.generate=function(n){return this._rand(n)};K0.prototype._rand=function(n){if(this.rand.getBytes)return this.rand.getBytes(n);for(var s=new Uint8Array(n),c=0;c<s.length;c++)s[c]=this.rand.getByte();return s};if(typeof self=="object")self.crypto&&self.crypto.getRandomValues?K0.prototype._rand=function(n){var s=new Uint8Array(n);return self.crypto.getRandomValues(s),s}:self.msCrypto&&self.msCrypto.getRandomValues?K0.prototype._rand=function(n){var s=new Uint8Array(n);return self.msCrypto.getRandomValues(s),s}:typeof window=="object"&&(K0.prototype._rand=function(){throw new Error("Not implemented yet")});else try{if(aE=k3(),typeof aE.randomBytes!="function")throw new Error("Not supported");K0.prototype._rand=function(n){return aE.randomBytes(n)}}catch{}var aE});var Ip=St((BTe,wV)=>{"use strict";var ITe=me(Me());xe();_e();var Tl=Df(),Bp=so(),xb=Bp.getNAF,bve=Bp.getJSF,Sb=Bp.assert;function j0(i,n){this.type=i,this.p=new Tl(n.p,16),this.red=n.prime?Tl.red(n.prime):Tl.mont(this.p),this.zero=new Tl(0).toRed(this.red),this.one=new Tl(1).toRed(this.red),this.two=new Tl(2).toRed(this.red),this.n=n.n&&new Tl(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 s=this.n&&this.p.div(this.n);!s||s.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}wV.exports=j0;j0.prototype.point=function(){throw new Error("Not implemented")};j0.prototype.validate=function(){throw new Error("Not implemented")};j0.prototype._fixedNafMul=function(n,s){Sb(n.precomputed);var c=n._getDoubles(),a=xb(s,1,this._bitLength),d=(1<<c.step+1)-(c.step%2===0?2:1);d/=3;var v=[],y,M;for(y=0;y<a.length;y+=c.step){M=0;for(var w=y+c.step-1;w>=y;w--)M=(M<<1)+a[w];v.push(M)}for(var b=this.jpoint(null,null,null),_=this.jpoint(null,null,null),x=d;x>0;x--){for(y=0;y<v.length;y++)M=v[y],M===x?_=_.mixedAdd(c.points[y]):M===-x&&(_=_.mixedAdd(c.points[y].neg()));b=b.add(_)}return b.toP()};j0.prototype._wnafMul=function(n,s){var c=4,a=n._getNAFPoints(c);c=a.wnd;for(var d=a.points,v=xb(s,c,this._bitLength),y=this.jpoint(null,null,null),M=v.length-1;M>=0;M--){for(var w=0;M>=0&&v[M]===0;M--)w++;if(M>=0&&w++,y=y.dblp(w),M<0)break;var b=v[M];Sb(b!==0),n.type==="affine"?b>0?y=y.mixedAdd(d[b-1>>1]):y=y.mixedAdd(d[-b-1>>1].neg()):b>0?y=y.add(d[b-1>>1]):y=y.add(d[-b-1>>1].neg())}return n.type==="affine"?y.toP():y};j0.prototype._wnafMulAdd=function(n,s,c,a,d){var v=this._wnafT1,y=this._wnafT2,M=this._wnafT3,w=0,b,_,x;for(b=0;b<a;b++){x=s[b];var S=x._getNAFPoints(n);v[b]=S.wnd,y[b]=S.points}for(b=a-1;b>=1;b-=2){var I=b-1,R=b;if(v[I]!==1||v[R]!==1){M[I]=xb(c[I],v[I],this._bitLength),M[R]=xb(c[R],v[R],this._bitLength),w=Math.max(M[I].length,w),w=Math.max(M[R].length,w);continue}var N=[s[I],null,null,s[R]];s[I].y.cmp(s[R].y)===0?(N[1]=s[I].add(s[R]),N[2]=s[I].toJ().mixedAdd(s[R].neg())):s[I].y.cmp(s[R].y.redNeg())===0?(N[1]=s[I].toJ().mixedAdd(s[R]),N[2]=s[I].add(s[R].neg())):(N[1]=s[I].toJ().mixedAdd(s[R]),N[2]=s[I].toJ().mixedAdd(s[R].neg()));var P=[-3,-1,-5,-7,0,7,5,1,3],L=bve(c[I],c[R]);for(w=Math.max(L[0].length,w),M[I]=new Array(w),M[R]=new Array(w),_=0;_<w;_++){var D=L[0][_]|0,Z=L[1][_]|0;M[I][_]=P[(D+1)*3+(Z+1)],M[R][_]=0,y[I]=N}}var W=this.jpoint(null,null,null),Q=this._wnafT4;for(b=w;b>=0;b--){for(var K=0;b>=0;){var F=!0;for(_=0;_<a;_++)Q[_]=M[_][b]|0,Q[_]!==0&&(F=!1);if(!F)break;K++,b--}if(b>=0&&K++,W=W.dblp(K),b<0)break;for(_=0;_<a;_++){var Y=Q[_];Y!==0&&(Y>0?x=y[_][Y-1>>1]:Y<0&&(x=y[_][-Y-1>>1].neg()),x.type==="affine"?W=W.mixedAdd(x):W=W.add(x))}}for(b=0;b<a;b++)y[b]=null;return d?W:W.toP()};function hs(i,n){this.curve=i,this.type=n,this.precomputed=null}j0.BasePoint=hs;hs.prototype.eq=function(){throw new Error("Not implemented")};hs.prototype.validate=function(){return this.curve.validate(this)};j0.prototype.decodePoint=function(n,s){n=Bp.toArray(n,s);var c=this.p.byteLength();if((n[0]===4||n[0]===6||n[0]===7)&&n.length-1===2*c){n[0]===6?Sb(n[n.length-1]%2===0):n[0]===7&&Sb(n[n.length-1]%2===1);var a=this.point(n.slice(1,1+c),n.slice(1+c,1+2*c));return a}else if((n[0]===2||n[0]===3)&&n.length-1===c)return this.pointFromX(n.slice(1,1+c),n[0]===3);throw new Error("Unknown point format")};hs.prototype.encodeCompressed=function(n){return this.encode(n,!0)};hs.prototype._encode=function(n){var s=this.curve.p.byteLength(),c=this.getX().toArray("be",s);return n?[this.getY().isEven()?2:3].concat(c):[4].concat(c,this.getY().toArray("be",s))};hs.prototype.encode=function(n,s){return Bp.encode(this._encode(s),n)};hs.prototype.precompute=function(n){if(this.precomputed)return this;var s={doubles:null,naf:null,beta:null};return s.naf=this._getNAFPoints(8),s.doubles=this._getDoubles(4,n),s.beta=this._getBeta(),this.precomputed=s,this};hs.prototype._hasDoubles=function(n){if(!this.precomputed)return!1;var s=this.precomputed.doubles;return s?s.points.length>=Math.ceil((n.bitLength()+1)/s.step):!1};hs.prototype._getDoubles=function(n,s){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var c=[this],a=this,d=0;d<s;d+=n){for(var v=0;v<n;v++)a=a.dbl();c.push(a)}return{step:n,points:c}};hs.prototype._getNAFPoints=function(n){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var s=[this],c=(1<<n)-1,a=c===1?null:this.dbl(),d=1;d<c;d++)s[d]=s[d-1].add(a);return{wnd:n,points:s}};hs.prototype._getBeta=function(){return null};hs.prototype.dblp=function(n){for(var s=this,c=0;c<n;c++)s=s.dbl();return s}});var _V=St((kTe,MV)=>{"use strict";var PTe=me(Me());xe();_e();var gve=so(),Ji=Df(),fE=Wn(),wd=Ip(),yve=gve.assert;function us(i){wd.call(this,"short",i),this.a=new Ji(i.a,16).toRed(this.red),this.b=new Ji(i.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(i),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}fE(us,wd);MV.exports=us;us.prototype._getEndomorphism=function(n){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var s,c;if(n.beta)s=new Ji(n.beta,16).toRed(this.red);else{var a=this._getEndoRoots(this.p);s=a[0].cmp(a[1])<0?a[0]:a[1],s=s.toRed(this.red)}if(n.lambda)c=new Ji(n.lambda,16);else{var d=this._getEndoRoots(this.n);this.g.mul(d[0]).x.cmp(this.g.x.redMul(s))===0?c=d[0]:(c=d[1],yve(this.g.mul(c).x.cmp(this.g.x.redMul(s))===0))}var v;return n.basis?v=n.basis.map(function(y){return{a:new Ji(y.a,16),b:new Ji(y.b,16)}}):v=this._getEndoBasis(c),{beta:s,lambda:c,basis:v}}};us.prototype._getEndoRoots=function(n){var s=n===this.p?this.red:Ji.mont(n),c=new Ji(2).toRed(s).redInvm(),a=c.redNeg(),d=new Ji(3).toRed(s).redNeg().redSqrt().redMul(c),v=a.redAdd(d).fromRed(),y=a.redSub(d).fromRed();return[v,y]};us.prototype._getEndoBasis=function(n){for(var s=this.n.ushrn(Math.floor(this.n.bitLength()/2)),c=n,a=this.n.clone(),d=new Ji(1),v=new Ji(0),y=new Ji(0),M=new Ji(1),w,b,_,x,S,I,R,N=0,P,L;c.cmpn(0)!==0;){var D=a.div(c);P=a.sub(D.mul(c)),L=y.sub(D.mul(d));var Z=M.sub(D.mul(v));if(!_&&P.cmp(s)<0)w=R.neg(),b=d,_=P.neg(),x=L;else if(_&&++N===2)break;R=P,a=c,c=P,y=d,d=L,M=v,v=Z}S=P.neg(),I=L;var W=_.sqr().add(x.sqr()),Q=S.sqr().add(I.sqr());return Q.cmp(W)>=0&&(S=w,I=b),_.negative&&(_=_.neg(),x=x.neg()),S.negative&&(S=S.neg(),I=I.neg()),[{a:_,b:x},{a:S,b:I}]};us.prototype._endoSplit=function(n){var s=this.endo.basis,c=s[0],a=s[1],d=a.b.mul(n).divRound(this.n),v=c.b.neg().mul(n).divRound(this.n),y=d.mul(c.a),M=v.mul(a.a),w=d.mul(c.b),b=v.mul(a.b),_=n.sub(y).sub(M),x=w.add(b).neg();return{k1:_,k2:x}};us.prototype.pointFromX=function(n,s){n=new Ji(n,16),n.red||(n=n.toRed(this.red));var c=n.redSqr().redMul(n).redIAdd(n.redMul(this.a)).redIAdd(this.b),a=c.redSqrt();if(a.redSqr().redSub(c).cmp(this.zero)!==0)throw new Error("invalid point");var d=a.fromRed().isOdd();return(s&&!d||!s&&d)&&(a=a.redNeg()),this.point(n,a)};us.prototype.validate=function(n){if(n.inf)return!0;var s=n.x,c=n.y,a=this.a.redMul(s),d=s.redSqr().redMul(s).redIAdd(a).redIAdd(this.b);return c.redSqr().redISub(d).cmpn(0)===0};us.prototype._endoWnafMulAdd=function(n,s,c){for(var a=this._endoWnafT1,d=this._endoWnafT2,v=0;v<n.length;v++){var y=this._endoSplit(s[v]),M=n[v],w=M._getBeta();y.k1.negative&&(y.k1.ineg(),M=M.neg(!0)),y.k2.negative&&(y.k2.ineg(),w=w.neg(!0)),a[v*2]=M,a[v*2+1]=w,d[v*2]=y.k1,d[v*2+1]=y.k2}for(var b=this._wnafMulAdd(1,a,d,v*2,c),_=0;_<v*2;_++)a[_]=null,d[_]=null;return b};function Un(i,n,s,c){wd.BasePoint.call(this,i,"affine"),n===null&&s===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new Ji(n,16),this.y=new Ji(s,16),c&&(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)}fE(Un,wd.BasePoint);us.prototype.point=function(n,s,c){return new Un(this,n,s,c)};us.prototype.pointFromJSON=function(n,s){return Un.fromJSON(this,n,s)};Un.prototype._getBeta=function(){if(this.curve.endo){var n=this.precomputed;if(n&&n.beta)return n.beta;var s=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(n){var c=this.curve,a=function(d){return c.point(d.x.redMul(c.endo.beta),d.y)};n.beta=s,s.precomputed={beta:null,naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(a)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(a)}}}return s}};Un.prototype.toJSON=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]};Un.fromJSON=function(n,s,c){typeof s=="string"&&(s=JSON.parse(s));var a=n.point(s[0],s[1],c);if(!s[2])return a;function d(y){return n.point(y[0],y[1],c)}var v=s[2];return a.precomputed={beta:null,doubles:v.doubles&&{step:v.doubles.step,points:[a].concat(v.doubles.points.map(d))},naf:v.naf&&{wnd:v.naf.wnd,points:[a].concat(v.naf.points.map(d))}},a};Un.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"};Un.prototype.isInfinity=function(){return this.inf};Un.prototype.add=function(n){if(this.inf)return n;if(n.inf)return this;if(this.eq(n))return this.dbl();if(this.neg().eq(n))return this.curve.point(null,null);if(this.x.cmp(n.x)===0)return this.curve.point(null,null);var s=this.y.redSub(n.y);s.cmpn(0)!==0&&(s=s.redMul(this.x.redSub(n.x).redInvm()));var c=s.redSqr().redISub(this.x).redISub(n.x),a=s.redMul(this.x.redSub(c)).redISub(this.y);return this.curve.point(c,a)};Un.prototype.dbl=function(){if(this.inf)return this;var n=this.y.redAdd(this.y);if(n.cmpn(0)===0)return this.curve.point(null,null);var s=this.curve.a,c=this.x.redSqr(),a=n.redInvm(),d=c.redAdd(c).redIAdd(c).redIAdd(s).redMul(a),v=d.redSqr().redISub(this.x.redAdd(this.x)),y=d.redMul(this.x.redSub(v)).redISub(this.y);return this.curve.point(v,y)};Un.prototype.getX=function(){return this.x.fromRed()};Un.prototype.getY=function(){return this.y.fromRed()};Un.prototype.mul=function(n){return n=new Ji(n,16),this.isInfinity()?this:this._hasDoubles(n)?this.curve._fixedNafMul(this,n):this.curve.endo?this.curve._endoWnafMulAdd([this],[n]):this.curve._wnafMul(this,n)};Un.prototype.mulAdd=function(n,s,c){var a=[this,s],d=[n,c];return this.curve.endo?this.curve._endoWnafMulAdd(a,d):this.curve._wnafMulAdd(1,a,d,2)};Un.prototype.jmulAdd=function(n,s,c){var a=[this,s],d=[n,c];return this.curve.endo?this.curve._endoWnafMulAdd(a,d,!0):this.curve._wnafMulAdd(1,a,d,2,!0)};Un.prototype.eq=function(n){return this===n||this.inf===n.inf&&(this.inf||this.x.cmp(n.x)===0&&this.y.cmp(n.y)===0)};Un.prototype.neg=function(n){if(this.inf)return this;var s=this.curve.point(this.x,this.y.redNeg());if(n&&this.precomputed){var c=this.precomputed,a=function(d){return d.neg()};s.precomputed={naf:c.naf&&{wnd:c.naf.wnd,points:c.naf.points.map(a)},doubles:c.doubles&&{step:c.doubles.step,points:c.doubles.points.map(a)}}}return s};Un.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var n=this.curve.jpoint(this.x,this.y,this.curve.one);return n};function Xn(i,n,s,c){wd.BasePoint.call(this,i,"jacobian"),n===null&&s===null&&c===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Ji(0)):(this.x=new Ji(n,16),this.y=new Ji(s,16),this.z=new Ji(c,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}fE(Xn,wd.BasePoint);us.prototype.jpoint=function(n,s,c){return new Xn(this,n,s,c)};Xn.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var n=this.z.redInvm(),s=n.redSqr(),c=this.x.redMul(s),a=this.y.redMul(s).redMul(n);return this.curve.point(c,a)};Xn.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};Xn.prototype.add=function(n){if(this.isInfinity())return n;if(n.isInfinity())return this;var s=n.z.redSqr(),c=this.z.redSqr(),a=this.x.redMul(s),d=n.x.redMul(c),v=this.y.redMul(s.redMul(n.z)),y=n.y.redMul(c.redMul(this.z)),M=a.redSub(d),w=v.redSub(y);if(M.cmpn(0)===0)return w.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var b=M.redSqr(),_=b.redMul(M),x=a.redMul(b),S=w.redSqr().redIAdd(_).redISub(x).redISub(x),I=w.redMul(x.redISub(S)).redISub(v.redMul(_)),R=this.z.redMul(n.z).redMul(M);return this.curve.jpoint(S,I,R)};Xn.prototype.mixedAdd=function(n){if(this.isInfinity())return n.toJ();if(n.isInfinity())return this;var s=this.z.redSqr(),c=this.x,a=n.x.redMul(s),d=this.y,v=n.y.redMul(s).redMul(this.z),y=c.redSub(a),M=d.redSub(v);if(y.cmpn(0)===0)return M.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var w=y.redSqr(),b=w.redMul(y),_=c.redMul(w),x=M.redSqr().redIAdd(b).redISub(_).redISub(_),S=M.redMul(_.redISub(x)).redISub(d.redMul(b)),I=this.z.redMul(y);return this.curve.jpoint(x,S,I)};Xn.prototype.dblp=function(n){if(n===0)return this;if(this.isInfinity())return this;if(!n)return this.dbl();var s;if(this.curve.zeroA||this.curve.threeA){var c=this;for(s=0;s<n;s++)c=c.dbl();return c}var a=this.curve.a,d=this.curve.tinv,v=this.x,y=this.y,M=this.z,w=M.redSqr().redSqr(),b=y.redAdd(y);for(s=0;s<n;s++){var _=v.redSqr(),x=b.redSqr(),S=x.redSqr(),I=_.redAdd(_).redIAdd(_).redIAdd(a.redMul(w)),R=v.redMul(x),N=I.redSqr().redISub(R.redAdd(R)),P=R.redISub(N),L=I.redMul(P);L=L.redIAdd(L).redISub(S);var D=b.redMul(M);s+1<n&&(w=w.redMul(S)),v=N,M=D,b=L}return this.curve.jpoint(v,b.redMul(d),M)};Xn.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()};Xn.prototype._zeroDbl=function(){var n,s,c;if(this.zOne){var a=this.x.redSqr(),d=this.y.redSqr(),v=d.redSqr(),y=this.x.redAdd(d).redSqr().redISub(a).redISub(v);y=y.redIAdd(y);var M=a.redAdd(a).redIAdd(a),w=M.redSqr().redISub(y).redISub(y),b=v.redIAdd(v);b=b.redIAdd(b),b=b.redIAdd(b),n=w,s=M.redMul(y.redISub(w)).redISub(b),c=this.y.redAdd(this.y)}else{var _=this.x.redSqr(),x=this.y.redSqr(),S=x.redSqr(),I=this.x.redAdd(x).redSqr().redISub(_).redISub(S);I=I.redIAdd(I);var R=_.redAdd(_).redIAdd(_),N=R.redSqr(),P=S.redIAdd(S);P=P.redIAdd(P),P=P.redIAdd(P),n=N.redISub(I).redISub(I),s=R.redMul(I.redISub(n)).redISub(P),c=this.y.redMul(this.z),c=c.redIAdd(c)}return this.curve.jpoint(n,s,c)};Xn.prototype._threeDbl=function(){var n,s,c;if(this.zOne){var a=this.x.redSqr(),d=this.y.redSqr(),v=d.redSqr(),y=this.x.redAdd(d).redSqr().redISub(a).redISub(v);y=y.redIAdd(y);var M=a.redAdd(a).redIAdd(a).redIAdd(this.curve.a),w=M.redSqr().redISub(y).redISub(y);n=w;var b=v.redIAdd(v);b=b.redIAdd(b),b=b.redIAdd(b),s=M.redMul(y.redISub(w)).redISub(b),c=this.y.redAdd(this.y)}else{var _=this.z.redSqr(),x=this.y.redSqr(),S=this.x.redMul(x),I=this.x.redSub(_).redMul(this.x.redAdd(_));I=I.redAdd(I).redIAdd(I);var R=S.redIAdd(S);R=R.redIAdd(R);var N=R.redAdd(R);n=I.redSqr().redISub(N),c=this.y.redAdd(this.z).redSqr().redISub(x).redISub(_);var P=x.redSqr();P=P.redIAdd(P),P=P.redIAdd(P),P=P.redIAdd(P),s=I.redMul(R.redISub(n)).redISub(P)}return this.curve.jpoint(n,s,c)};Xn.prototype._dbl=function(){var n=this.curve.a,s=this.x,c=this.y,a=this.z,d=a.redSqr().redSqr(),v=s.redSqr(),y=c.redSqr(),M=v.redAdd(v).redIAdd(v).redIAdd(n.redMul(d)),w=s.redAdd(s);w=w.redIAdd(w);var b=w.redMul(y),_=M.redSqr().redISub(b.redAdd(b)),x=b.redISub(_),S=y.redSqr();S=S.redIAdd(S),S=S.redIAdd(S),S=S.redIAdd(S);var I=M.redMul(x).redISub(S),R=c.redAdd(c).redMul(a);return this.curve.jpoint(_,I,R)};Xn.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var n=this.x.redSqr(),s=this.y.redSqr(),c=this.z.redSqr(),a=s.redSqr(),d=n.redAdd(n).redIAdd(n),v=d.redSqr(),y=this.x.redAdd(s).redSqr().redISub(n).redISub(a);y=y.redIAdd(y),y=y.redAdd(y).redIAdd(y),y=y.redISub(v);var M=y.redSqr(),w=a.redIAdd(a);w=w.redIAdd(w),w=w.redIAdd(w),w=w.redIAdd(w);var b=d.redIAdd(y).redSqr().redISub(v).redISub(M).redISub(w),_=s.redMul(b);_=_.redIAdd(_),_=_.redIAdd(_);var x=this.x.redMul(M).redISub(_);x=x.redIAdd(x),x=x.redIAdd(x);var S=this.y.redMul(b.redMul(w.redISub(b)).redISub(y.redMul(M)));S=S.redIAdd(S),S=S.redIAdd(S),S=S.redIAdd(S);var I=this.z.redAdd(y).redSqr().redISub(c).redISub(M);return this.curve.jpoint(x,S,I)};Xn.prototype.mul=function(n,s){return n=new Ji(n,s),this.curve._wnafMul(this,n)};Xn.prototype.eq=function(n){if(n.type==="affine")return this.eq(n.toJ());if(this===n)return!0;var s=this.z.redSqr(),c=n.z.redSqr();if(this.x.redMul(c).redISub(n.x.redMul(s)).cmpn(0)!==0)return!1;var a=s.redMul(this.z),d=c.redMul(n.z);return this.y.redMul(d).redISub(n.y.redMul(a)).cmpn(0)===0};Xn.prototype.eqXToP=function(n){var s=this.z.redSqr(),c=n.toRed(this.curve.red).redMul(s);if(this.x.cmp(c)===0)return!0;for(var a=n.clone(),d=this.curve.redN.redMul(s);;){if(a.iadd(this.curve.n),a.cmp(this.curve.p)>=0)return!1;if(c.redIAdd(d),this.x.cmp(c)===0)return!0}};Xn.prototype.inspect=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)+">"};Xn.prototype.isInfinity=function(){return this.z.cmpn(0)===0}});var EV=St((CTe,SV)=>{"use strict";var LTe=me(Me());xe();_e();var Md=Df(),xV=Wn(),Eb=Ip(),wve=so();function _d(i){Eb.call(this,"mont",i),this.a=new Md(i.a,16).toRed(this.red),this.b=new Md(i.b,16).toRed(this.red),this.i4=new Md(4).toRed(this.red).redInvm(),this.two=new Md(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}xV(_d,Eb);SV.exports=_d;_d.prototype.validate=function(n){var s=n.normalize().x,c=s.redSqr(),a=c.redMul(s).redAdd(c.redMul(this.a)).redAdd(s),d=a.redSqrt();return d.redSqr().cmp(a)===0};function zn(i,n,s){Eb.BasePoint.call(this,i,"projective"),n===null&&s===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new Md(n,16),this.z=new Md(s,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}xV(zn,Eb.BasePoint);_d.prototype.decodePoint=function(n,s){return this.point(wve.toArray(n,s),1)};_d.prototype.point=function(n,s){return new zn(this,n,s)};_d.prototype.pointFromJSON=function(n){return zn.fromJSON(this,n)};zn.prototype.precompute=function(){};zn.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};zn.fromJSON=function(n,s){return new zn(n,s[0],s[1]||n.one)};zn.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};zn.prototype.isInfinity=function(){return this.z.cmpn(0)===0};zn.prototype.dbl=function(){var n=this.x.redAdd(this.z),s=n.redSqr(),c=this.x.redSub(this.z),a=c.redSqr(),d=s.redSub(a),v=s.redMul(a),y=d.redMul(a.redAdd(this.curve.a24.redMul(d)));return this.curve.point(v,y)};zn.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};zn.prototype.diffAdd=function(n,s){var c=this.x.redAdd(this.z),a=this.x.redSub(this.z),d=n.x.redAdd(n.z),v=n.x.redSub(n.z),y=v.redMul(c),M=d.redMul(a),w=s.z.redMul(y.redAdd(M).redSqr()),b=s.x.redMul(y.redISub(M).redSqr());return this.curve.point(w,b)};zn.prototype.mul=function(n){for(var s=n.clone(),c=this,a=this.curve.point(null,null),d=this,v=[];s.cmpn(0)!==0;s.iushrn(1))v.push(s.andln(1));for(var y=v.length-1;y>=0;y--)v[y]===0?(c=c.diffAdd(a,d),a=a.dbl()):(a=c.diffAdd(a,d),c=c.dbl());return a};zn.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};zn.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};zn.prototype.eq=function(n){return this.getX().cmp(n.getX())===0};zn.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};zn.prototype.getX=function(){return this.normalize(),this.x.fromRed()}});var IV=St((qTe,BV)=>{"use strict";var UTe=me(Me());xe();_e();var Mve=so(),Ih=Df(),AV=Wn(),Ab=Ip(),_ve=Mve.assert;function Of(i){this.twisted=(i.a|0)!==1,this.mOneA=this.twisted&&(i.a|0)===-1,this.extended=this.mOneA,Ab.call(this,"edwards",i),this.a=new Ih(i.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new Ih(i.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new Ih(i.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),_ve(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(i.c|0)===1}AV(Of,Ab);BV.exports=Of;Of.prototype._mulA=function(n){return this.mOneA?n.redNeg():this.a.redMul(n)};Of.prototype._mulC=function(n){return this.oneC?n:this.c.redMul(n)};Of.prototype.jpoint=function(n,s,c,a){return this.point(n,s,c,a)};Of.prototype.pointFromX=function(n,s){n=new Ih(n,16),n.red||(n=n.toRed(this.red));var c=n.redSqr(),a=this.c2.redSub(this.a.redMul(c)),d=this.one.redSub(this.c2.redMul(this.d).redMul(c)),v=a.redMul(d.redInvm()),y=v.redSqrt();if(y.redSqr().redSub(v).cmp(this.zero)!==0)throw new Error("invalid point");var M=y.fromRed().isOdd();return(s&&!M||!s&&M)&&(y=y.redNeg()),this.point(n,y)};Of.prototype.pointFromY=function(n,s){n=new Ih(n,16),n.red||(n=n.toRed(this.red));var c=n.redSqr(),a=c.redSub(this.c2),d=c.redMul(this.d).redMul(this.c2).redSub(this.a),v=a.redMul(d.redInvm());if(v.cmp(this.zero)===0){if(s)throw new Error("invalid point");return this.point(this.zero,n)}var y=v.redSqrt();if(y.redSqr().redSub(v).cmp(this.zero)!==0)throw new Error("invalid point");return y.fromRed().isOdd()!==s&&(y=y.redNeg()),this.point(y,n)};Of.prototype.validate=function(n){if(n.isInfinity())return!0;n.normalize();var s=n.x.redSqr(),c=n.y.redSqr(),a=s.redMul(this.a).redAdd(c),d=this.c2.redMul(this.one.redAdd(this.d.redMul(s).redMul(c)));return a.cmp(d)===0};function Ii(i,n,s,c,a){Ab.BasePoint.call(this,i,"projective"),n===null&&s===null&&c===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new Ih(n,16),this.y=new Ih(s,16),this.z=c?new Ih(c,16):this.curve.one,this.t=a&&new Ih(a,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}AV(Ii,Ab.BasePoint);Of.prototype.pointFromJSON=function(n){return Ii.fromJSON(this,n)};Of.prototype.point=function(n,s,c,a){return new Ii(this,n,s,c,a)};Ii.fromJSON=function(n,s){return new Ii(n,s[0],s[1],s[2])};Ii.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};Ii.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Ii.prototype._extDbl=function(){var n=this.x.redSqr(),s=this.y.redSqr(),c=this.z.redSqr();c=c.redIAdd(c);var a=this.curve._mulA(n),d=this.x.redAdd(this.y).redSqr().redISub(n).redISub(s),v=a.redAdd(s),y=v.redSub(c),M=a.redSub(s),w=d.redMul(y),b=v.redMul(M),_=d.redMul(M),x=y.redMul(v);return this.curve.point(w,b,x,_)};Ii.prototype._projDbl=function(){var n=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),c=this.y.redSqr(),a,d,v,y,M,w;if(this.curve.twisted){y=this.curve._mulA(s);var b=y.redAdd(c);this.zOne?(a=n.redSub(s).redSub(c).redMul(b.redSub(this.curve.two)),d=b.redMul(y.redSub(c)),v=b.redSqr().redSub(b).redSub(b)):(M=this.z.redSqr(),w=b.redSub(M).redISub(M),a=n.redSub(s).redISub(c).redMul(w),d=b.redMul(y.redSub(c)),v=b.redMul(w))}else y=s.redAdd(c),M=this.curve._mulC(this.z).redSqr(),w=y.redSub(M).redSub(M),a=this.curve._mulC(n.redISub(y)).redMul(w),d=this.curve._mulC(y).redMul(s.redISub(c)),v=y.redMul(w);return this.curve.point(a,d,v)};Ii.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Ii.prototype._extAdd=function(n){var s=this.y.redSub(this.x).redMul(n.y.redSub(n.x)),c=this.y.redAdd(this.x).redMul(n.y.redAdd(n.x)),a=this.t.redMul(this.curve.dd).redMul(n.t),d=this.z.redMul(n.z.redAdd(n.z)),v=c.redSub(s),y=d.redSub(a),M=d.redAdd(a),w=c.redAdd(s),b=v.redMul(y),_=M.redMul(w),x=v.redMul(w),S=y.redMul(M);return this.curve.point(b,_,S,x)};Ii.prototype._projAdd=function(n){var s=this.z.redMul(n.z),c=s.redSqr(),a=this.x.redMul(n.x),d=this.y.redMul(n.y),v=this.curve.d.redMul(a).redMul(d),y=c.redSub(v),M=c.redAdd(v),w=this.x.redAdd(this.y).redMul(n.x.redAdd(n.y)).redISub(a).redISub(d),b=s.redMul(y).redMul(w),_,x;return this.curve.twisted?(_=s.redMul(M).redMul(d.redSub(this.curve._mulA(a))),x=y.redMul(M)):(_=s.redMul(M).redMul(d.redSub(a)),x=this.curve._mulC(y).redMul(M)),this.curve.point(b,_,x)};Ii.prototype.add=function(n){return this.isInfinity()?n:n.isInfinity()?this:this.curve.extended?this._extAdd(n):this._projAdd(n)};Ii.prototype.mul=function(n){return this._hasDoubles(n)?this.curve._fixedNafMul(this,n):this.curve._wnafMul(this,n)};Ii.prototype.mulAdd=function(n,s,c){return this.curve._wnafMulAdd(1,[this,s],[n,c],2,!1)};Ii.prototype.jmulAdd=function(n,s,c){return this.curve._wnafMulAdd(1,[this,s],[n,c],2,!0)};Ii.prototype.normalize=function(){if(this.zOne)return this;var n=this.z.redInvm();return this.x=this.x.redMul(n),this.y=this.y.redMul(n),this.t&&(this.t=this.t.redMul(n)),this.z=this.curve.one,this.zOne=!0,this};Ii.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Ii.prototype.getX=function(){return this.normalize(),this.x.fromRed()};Ii.prototype.getY=function(){return this.normalize(),this.y.fromRed()};Ii.prototype.eq=function(n){return this===n||this.getX().cmp(n.getX())===0&&this.getY().cmp(n.getY())===0};Ii.prototype.eqXToP=function(n){var s=n.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(s)===0)return!0;for(var c=n.clone(),a=this.curve.redN.redMul(this.z);;){if(c.iadd(this.curve.n),c.cmp(this.curve.p)>=0)return!1;if(s.redIAdd(a),this.x.cmp(s)===0)return!0}};Ii.prototype.toP=Ii.prototype.normalize;Ii.prototype.mixedAdd=Ii.prototype.add});var hE=St(RV=>{"use strict";var KTe=me(Me());xe();_e();var Bb=RV;Bb.base=Ip();Bb.short=_V();Bb.mont=EV();Bb.edwards=IV()});var kV=St((ZTe,TV)=>{var GTe=me(Me());xe();_e();TV.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"]]}}});var Ib=St(NV=>{"use strict";var XTe=me(Me());xe();_e();var lE=NV,W0=$0(),uE=hE(),xve=so(),PV=xve.assert;function $V(i){i.type==="short"?this.curve=new uE.short(i):i.type==="edwards"?this.curve=new uE.edwards(i):this.curve=new uE.mont(i),this.g=this.curve.g,this.n=this.curve.n,this.hash=i.hash,PV(this.g.validate(),"Invalid curve"),PV(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}lE.PresetCurve=$V;function Z0(i,n){Object.defineProperty(lE,i,{configurable:!0,enumerable:!0,get:function(){var s=new $V(n);return Object.defineProperty(lE,i,{configurable:!0,enumerable:!0,value:s}),s}})}Z0("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:W0.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]});Z0("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:W0.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]});Z0("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:W0.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]});Z0("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:W0.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]});Z0("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:W0.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]});Z0("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:W0.sha256,gRed:!1,g:["9"]});Z0("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:W0.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var cE;try{cE=kV()}catch{cE=void 0}Z0("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:W0.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",cE]})});var DV=St((tke,LV)=>{"use strict";var rke=me(Me());xe();_e();var Sve=$0(),kl=iE(),CV=ch();function G0(i){if(!(this instanceof G0))return new G0(i);this.hash=i.hash,this.predResist=!!i.predResist,this.outLen=this.hash.outSize,this.minEntropy=i.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var n=kl.toArray(i.entropy,i.entropyEnc||"hex"),s=kl.toArray(i.nonce,i.nonceEnc||"hex"),c=kl.toArray(i.pers,i.persEnc||"hex");CV(n.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(n,s,c)}LV.exports=G0;G0.prototype._init=function(n,s,c){var a=n.concat(s).concat(c);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var d=0;d<this.V.length;d++)this.K[d]=0,this.V[d]=1;this._update(a),this._reseed=1,this.reseedInterval=281474976710656};G0.prototype._hmac=function(){return new Sve.hmac(this.hash,this.K)};G0.prototype._update=function(n){var s=this._hmac().update(this.V).update([0]);n&&(s=s.update(n)),this.K=s.digest(),this.V=this._hmac().update(this.V).digest(),n&&(this.K=this._hmac().update(this.V).update([1]).update(n).digest(),this.V=this._hmac().update(this.V).digest())};G0.prototype.reseed=function(n,s,c,a){typeof s!="string"&&(a=c,c=s,s=null),n=kl.toArray(n,s),c=kl.toArray(c,a),CV(n.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(n.concat(c||[])),this._reseed=1};G0.prototype.generate=function(n,s,c,a){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof s!="string"&&(a=c,c=s,s=null),c&&(c=kl.toArray(c,a||"hex"),this._update(c));for(var d=[];d.length<n;)this.V=this._hmac().update(this.V).digest(),d=d.concat(this.V);var v=d.slice(0,n);return this._update(c),this._reseed++,kl.encode(v,s)}});var qV=St((ake,OV)=>{"use strict";var oke=me(Me());xe();_e();var Eve=Df(),Ave=so(),dE=Ave.assert;function va(i,n){this.ec=i,this.priv=null,this.pub=null,n.priv&&this._importPrivate(n.priv,n.privEnc),n.pub&&this._importPublic(n.pub,n.pubEnc)}OV.exports=va;va.fromPublic=function(n,s,c){return s instanceof va?s:new va(n,{pub:s,pubEnc:c})};va.fromPrivate=function(n,s,c){return s instanceof va?s:new va(n,{priv:s,privEnc:c})};va.prototype.validate=function(){var n=this.getPublic();return n.isInfinity()?{result:!1,reason:"Invalid public key"}:n.validate()?n.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"}};va.prototype.getPublic=function(n,s){return typeof n=="string"&&(s=n,n=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),s?this.pub.encode(s,n):this.pub};va.prototype.getPrivate=function(n){return n==="hex"?this.priv.toString(16,2):this.priv};va.prototype._importPrivate=function(n,s){this.priv=new Eve(n,s||16),this.priv=this.priv.umod(this.ec.curve.n)};va.prototype._importPublic=function(n,s){if(n.x||n.y){this.ec.curve.type==="mont"?dE(n.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&dE(n.x&&n.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(n.x,n.y);return}this.pub=this.ec.curve.decodePoint(n,s)};va.prototype.derive=function(n){return n.validate()||dE(n.validate(),"public point not validated"),n.mul(this.priv).getX()};va.prototype.sign=function(n,s,c){return this.ec.sign(n,this,s,c)};va.prototype.verify=function(n,s){return this.ec.verify(n,s,this)};va.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}});var FV=St((hke,zV)=>{"use strict";var uke=me(Me());xe();_e();var Rb=Df(),mE=so(),Bve=mE.assert;function Tb(i,n){if(i instanceof Tb)return i;this._importDER(i,n)||(Bve(i.r&&i.s,"Signature without r or s"),this.r=new Rb(i.r,16),this.s=new Rb(i.s,16),i.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=i.recoveryParam)}zV.exports=Tb;function Ive(){this.place=0}function pE(i,n){var s=i[n.place++];if(!(s&128))return s;var c=s&15;if(c===0||c>4)return!1;for(var a=0,d=0,v=n.place;d<c;d++,v++)a<<=8,a|=i[v],a>>>=0;return a<=127?!1:(n.place=v,a)}function UV(i){for(var n=0,s=i.length-1;!i[n]&&!(i[n+1]&128)&&n<s;)n++;return n===0?i:i.slice(n)}Tb.prototype._importDER=function(n,s){n=mE.toArray(n,s);var c=new Ive;if(n[c.place++]!==48)return!1;var a=pE(n,c);if(a===!1||a+c.place!==n.length||n[c.place++]!==2)return!1;var d=pE(n,c);if(d===!1)return!1;var v=n.slice(c.place,d+c.place);if(c.place+=d,n[c.place++]!==2)return!1;var y=pE(n,c);if(y===!1||n.length!==y+c.place)return!1;var M=n.slice(c.place,y+c.place);if(v[0]===0)if(v[1]&128)v=v.slice(1);else return!1;if(M[0]===0)if(M[1]&128)M=M.slice(1);else return!1;return this.r=new Rb(v),this.s=new Rb(M),this.recoveryParam=null,!0};function vE(i,n){if(n<128){i.push(n);return}var s=1+(Math.log(n)/Math.LN2>>>3);for(i.push(s|128);--s;)i.push(n>>>(s<<3)&255);i.push(n)}Tb.prototype.toDER=function(n){var s=this.r.toArray(),c=this.s.toArray();for(s[0]&128&&(s=[0].concat(s)),c[0]&128&&(c=[0].concat(c)),s=UV(s),c=UV(c);!c[0]&&!(c[1]&128);)c=c.slice(1);var a=[2];vE(a,s.length),a=a.concat(s),a.push(2),vE(a,c.length);var d=a.concat(c),v=[48];return vE(v,d.length),v=v.concat(d),mE.encode(v,n)}});var WV=St((dke,jV)=>{"use strict";var pke=me(Me());xe();_e();var Pl=Df(),HV=DV(),Rve=so(),bE=Ib(),Tve=sE(),KV=Rve.assert,gE=qV(),kb=FV();function ls(i){if(!(this instanceof ls))return new ls(i);typeof i=="string"&&(KV(Object.prototype.hasOwnProperty.call(bE,i),"Unknown curve "+i),i=bE[i]),i instanceof bE.PresetCurve&&(i={curve:i}),this.curve=i.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=i.curve.g,this.g.precompute(i.curve.n.bitLength()+1),this.hash=i.hash||i.curve.hash}jV.exports=ls;ls.prototype.keyPair=function(n){return new gE(this,n)};ls.prototype.keyFromPrivate=function(n,s){return gE.fromPrivate(this,n,s)};ls.prototype.keyFromPublic=function(n,s){return gE.fromPublic(this,n,s)};ls.prototype.genKeyPair=function(n){n||(n={});for(var s=new HV({hash:this.hash,pers:n.pers,persEnc:n.persEnc||"utf8",entropy:n.entropy||Tve(this.hash.hmacStrength),entropyEnc:n.entropy&&n.entropyEnc||"utf8",nonce:this.n.toArray()}),c=this.n.byteLength(),a=this.n.sub(new Pl(2));;){var d=new Pl(s.generate(c));if(!(d.cmp(a)>0))return d.iaddn(1),this.keyFromPrivate(d)}};ls.prototype._truncateToN=function(n,s){var c=n.byteLength()*8-this.n.bitLength();return c>0&&(n=n.ushrn(c)),!s&&n.cmp(this.n)>=0?n.sub(this.n):n};ls.prototype.sign=function(n,s,c,a){typeof c=="object"&&(a=c,c=null),a||(a={}),s=this.keyFromPrivate(s,c),n=this._truncateToN(new Pl(n,16));for(var d=this.n.byteLength(),v=s.getPrivate().toArray("be",d),y=n.toArray("be",d),M=new HV({hash:this.hash,entropy:v,nonce:y,pers:a.pers,persEnc:a.persEnc||"utf8"}),w=this.n.sub(new Pl(1)),b=0;;b++){var _=a.k?a.k(b):new Pl(M.generate(this.n.byteLength()));if(_=this._truncateToN(_,!0),!(_.cmpn(1)<=0||_.cmp(w)>=0)){var x=this.g.mul(_);if(!x.isInfinity()){var S=x.getX(),I=S.umod(this.n);if(I.cmpn(0)!==0){var R=_.invm(this.n).mul(I.mul(s.getPrivate()).iadd(n));if(R=R.umod(this.n),R.cmpn(0)!==0){var N=(x.getY().isOdd()?1:0)|(S.cmp(I)!==0?2:0);return a.canonical&&R.cmp(this.nh)>0&&(R=this.n.sub(R),N^=1),new kb({r:I,s:R,recoveryParam:N})}}}}}};ls.prototype.verify=function(n,s,c,a){n=this._truncateToN(new Pl(n,16)),c=this.keyFromPublic(c,a),s=new kb(s,"hex");var d=s.r,v=s.s;if(d.cmpn(1)<0||d.cmp(this.n)>=0||v.cmpn(1)<0||v.cmp(this.n)>=0)return!1;var y=v.invm(this.n),M=y.mul(n).umod(this.n),w=y.mul(d).umod(this.n),b;return this.curve._maxwellTrick?(b=this.g.jmulAdd(M,c.getPublic(),w),b.isInfinity()?!1:b.eqXToP(d)):(b=this.g.mulAdd(M,c.getPublic(),w),b.isInfinity()?!1:b.getX().umod(this.n).cmp(d)===0)};ls.prototype.recoverPubKey=function(i,n,s,c){KV((3&s)===s,"The recovery param is more than two bits"),n=new kb(n,c);var a=this.n,d=new Pl(i),v=n.r,y=n.s,M=s&1,w=s>>1;if(v.cmp(this.curve.p.umod(this.curve.n))>=0&&w)throw new Error("Unable to find sencond key candinate");w?v=this.curve.pointFromX(v.add(this.curve.n),M):v=this.curve.pointFromX(v,M);var b=n.r.invm(a),_=a.sub(d).mul(b).umod(a),x=y.mul(b).umod(a);return this.g.mulAdd(_,v,x)};ls.prototype.getKeyRecoveryParam=function(i,n,s,c){if(n=new kb(n,c),n.recoveryParam!==null)return n.recoveryParam;for(var a=0;a<4;a++){var d;try{d=this.recoverPubKey(i,n,a)}catch{continue}if(d.eq(s))return a}throw new Error("Unable to find valid recovery factor")}});var JV=St((bke,VV)=>{"use strict";var gke=me(Me());xe();_e();var Rp=so(),GV=Rp.assert,ZV=Rp.parseBytes,xd=Rp.cachedProperty;function Fn(i,n){this.eddsa=i,this._secret=ZV(n.secret),i.isPoint(n.pub)?this._pub=n.pub:this._pubBytes=ZV(n.pub)}Fn.fromPublic=function(n,s){return s instanceof Fn?s:new Fn(n,{pub:s})};Fn.fromSecret=function(n,s){return s instanceof Fn?s:new Fn(n,{secret:s})};Fn.prototype.secret=function(){return this._secret};xd(Fn,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});xd(Fn,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});xd(Fn,"privBytes",function(){var n=this.eddsa,s=this.hash(),c=n.encodingLength-1,a=s.slice(0,n.encodingLength);return a[0]&=248,a[c]&=127,a[c]|=64,a});xd(Fn,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});xd(Fn,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});xd(Fn,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});Fn.prototype.sign=function(n){return GV(this._secret,"KeyPair can only verify"),this.eddsa.sign(n,this)};Fn.prototype.verify=function(n,s){return this.eddsa.verify(n,s,this)};Fn.prototype.getSecret=function(n){return GV(this._secret,"KeyPair is public only"),Rp.encode(this.secret(),n)};Fn.prototype.getPublic=function(n){return Rp.encode(this.pubBytes(),n)};VV.exports=Fn});var XV=St((Mke,YV)=>{"use strict";var _ke=me(Me());xe();_e();var kve=Df(),Pb=so(),Pve=Pb.assert,$b=Pb.cachedProperty,$ve=Pb.parseBytes;function $l(i,n){this.eddsa=i,typeof n!="object"&&(n=$ve(n)),Array.isArray(n)&&(n={R:n.slice(0,i.encodingLength),S:n.slice(i.encodingLength)}),Pve(n.R&&n.S,"Signature without R or S"),i.isPoint(n.R)&&(this._R=n.R),n.S instanceof kve&&(this._S=n.S),this._Rencoded=Array.isArray(n.R)?n.R:n.Rencoded,this._Sencoded=Array.isArray(n.S)?n.S:n.Sencoded}$b($l,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});$b($l,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});$b($l,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});$b($l,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});$l.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};$l.prototype.toHex=function(){return Pb.encode(this.toBytes(),"hex").toUpperCase()};YV.exports=$l});var iJ=St((Eke,rJ)=>{"use strict";var Ake=me(Me());xe();_e();var Nve=$0(),Cve=Ib(),Sd=so(),Lve=Sd.assert,eJ=Sd.parseBytes,tJ=JV(),QV=XV();function Da(i){if(Lve(i==="ed25519","only tested with ed25519 so far"),!(this instanceof Da))return new Da(i);i=Cve[i].curve,this.curve=i,this.g=i.g,this.g.precompute(i.n.bitLength()+1),this.pointClass=i.point().constructor,this.encodingLength=Math.ceil(i.n.bitLength()/8),this.hash=Nve.sha512}rJ.exports=Da;Da.prototype.sign=function(n,s){n=eJ(n);var c=this.keyFromSecret(s),a=this.hashInt(c.messagePrefix(),n),d=this.g.mul(a),v=this.encodePoint(d),y=this.hashInt(v,c.pubBytes(),n).mul(c.priv()),M=a.add(y).umod(this.curve.n);return this.makeSignature({R:d,S:M,Rencoded:v})};Da.prototype.verify=function(n,s,c){n=eJ(n),s=this.makeSignature(s);var a=this.keyFromPublic(c),d=this.hashInt(s.Rencoded(),a.pubBytes(),n),v=this.g.mul(s.S()),y=s.R().add(a.pub().mul(d));return y.eq(v)};Da.prototype.hashInt=function(){for(var n=this.hash(),s=0;s<arguments.length;s++)n.update(arguments[s]);return Sd.intFromLE(n.digest()).umod(this.curve.n)};Da.prototype.keyFromPublic=function(n){return tJ.fromPublic(this,n)};Da.prototype.keyFromSecret=function(n){return tJ.fromSecret(this,n)};Da.prototype.makeSignature=function(n){return n instanceof QV?n:new QV(this,n)};Da.prototype.encodePoint=function(n){var s=n.getY().toArray("le",this.encodingLength);return s[this.encodingLength-1]|=n.getX().isOdd()?128:0,s};Da.prototype.decodePoint=function(n){n=Sd.parseBytes(n);var s=n.length-1,c=n.slice(0,s).concat(n[s]&-129),a=(n[s]&128)!==0,d=Sd.intFromLE(c);return this.curve.pointFromY(d,a)};Da.prototype.encodeInt=function(n){return n.toArray("le",this.encodingLength)};Da.prototype.decodeInt=function(n){return Sd.intFromLE(n)};Da.prototype.isPoint=function(n){return n instanceof this.pointClass}});var aJ=St(nJ=>{"use strict";var Tke=me(Me());xe();_e();var Nl=nJ;Nl.version=pV().version;Nl.utils=so();Nl.rand=sE();Nl.curve=hE();Nl.curves=Ib();Nl.ec=WV();Nl.eddsa=iJ()});var sJ=St(($ke,oJ)=>{var Nke=me(Me());xe();_e();var Dve=aJ().ec,qf=new Dve("secp256k1"),qr=qf.curve,xi=qr.n.constructor;function Ove(i,n){let s=new xi(n);if(s.cmp(qr.p)>=0)return null;s=s.toRed(qr.red);let c=s.redSqr().redIMul(s).redIAdd(qr.b).redSqrt();return i===3!==c.isOdd()&&(c=c.redNeg()),qf.keyPair({pub:{x:s,y:c}})}function qve(i,n,s){let c=new xi(n),a=new xi(s);if(c.cmp(qr.p)>=0||a.cmp(qr.p)>=0||(c=c.toRed(qr.red),a=a.toRed(qr.red),(i===6||i===7)&&a.isOdd()!==(i===7)))return null;let d=c.redSqr().redIMul(c);return a.redSqr().redISub(d.redIAdd(qr.b)).isZero()?qf.keyPair({pub:{x:c,y:a}}):null}function V0(i){let n=i[0];switch(n){case 2:case 3:return i.length!==33?null:Ove(n,i.subarray(1,33));case 4:case 6:case 7:return i.length!==65?null:qve(n,i.subarray(1,33),i.subarray(33,65));default:return null}}function Cl(i,n){let s=n.encode(null,i.length===33);for(let c=0;c<i.length;++c)i[c]=s[c]}oJ.exports={contextRandomize(){return 0},privateKeyVerify(i){let n=new xi(i);return n.cmp(qr.n)<0&&!n.isZero()?0:1},privateKeyNegate(i){let n=new xi(i),s=qr.n.sub(n).umod(qr.n).toArrayLike(Uint8Array,"be",32);return i.set(s),0},privateKeyTweakAdd(i,n){let s=new xi(n);if(s.cmp(qr.n)>=0||(s.iadd(new xi(i)),s.cmp(qr.n)>=0&&s.isub(qr.n),s.isZero()))return 1;let c=s.toArrayLike(Uint8Array,"be",32);return i.set(c),0},privateKeyTweakMul(i,n){let s=new xi(n);if(s.cmp(qr.n)>=0||s.isZero())return 1;s.imul(new xi(i)),s.cmp(qr.n)>=0&&(s=s.umod(qr.n));let c=s.toArrayLike(Uint8Array,"be",32);return i.set(c),0},publicKeyVerify(i){return V0(i)===null?1:0},publicKeyCreate(i,n){let s=new xi(n);if(s.cmp(qr.n)>=0||s.isZero())return 1;let c=qf.keyFromPrivate(n).getPublic();return Cl(i,c),0},publicKeyConvert(i,n){let s=V0(n);if(s===null)return 1;let c=s.getPublic();return Cl(i,c),0},publicKeyNegate(i,n){let s=V0(n);if(s===null)return 1;let c=s.getPublic();return c.y=c.y.redNeg(),Cl(i,c),0},publicKeyCombine(i,n){let s=new Array(n.length);for(let a=0;a<n.length;++a)if(s[a]=V0(n[a]),s[a]===null)return 1;let c=s[0].getPublic();for(let a=1;a<s.length;++a)c=c.add(s[a].pub);return c.isInfinity()?2:(Cl(i,c),0)},publicKeyTweakAdd(i,n,s){let c=V0(n);if(c===null)return 1;if(s=new xi(s),s.cmp(qr.n)>=0)return 2;let a=c.getPublic().add(qr.g.mul(s));return a.isInfinity()?2:(Cl(i,a),0)},publicKeyTweakMul(i,n,s){let c=V0(n);if(c===null)return 1;if(s=new xi(s),s.cmp(qr.n)>=0||s.isZero())return 2;let a=c.getPublic().mul(s);return Cl(i,a),0},signatureNormalize(i){let n=new xi(i.subarray(0,32)),s=new xi(i.subarray(32,64));return n.cmp(qr.n)>=0||s.cmp(qr.n)>=0?1:(s.cmp(qf.nh)===1&&i.set(qr.n.sub(s).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(i,n){let s=n.subarray(0,32),c=n.subarray(32,64);if(new xi(s).cmp(qr.n)>=0||new xi(c).cmp(qr.n)>=0)return 1;let{output:a}=i,d=a.subarray(4,37);d[0]=0,d.set(s,1);let v=33,y=0;for(;v>1&&d[y]===0&&!(d[y+1]&128);--v,++y);if(d=d.subarray(y),d[0]&128||v>1&&d[0]===0&&!(d[1]&128))return 1;let M=a.subarray(39,72);M[0]=0,M.set(c,1);let w=33,b=0;for(;w>1&&M[b]===0&&!(M[b+1]&128);--w,++b);return M=M.subarray(b),M[0]&128||w>1&&M[0]===0&&!(M[1]&128)?1:(i.outputlen=6+v+w,a[0]=48,a[1]=i.outputlen-2,a[2]=2,a[3]=d.length,a.set(d,4),a[4+v]=2,a[5+v]=M.length,a.set(M,6+v),0)},signatureImport(i,n){if(n.length<8||n.length>72||n[0]!==48||n[1]!==n.length-2||n[2]!==2)return 1;let s=n[3];if(s===0||5+s>=n.length||n[4+s]!==2)return 1;let c=n[5+s];if(c===0||6+s+c!==n.length||n[4]&128||s>1&&n[4]===0&&!(n[5]&128)||n[s+6]&128||c>1&&n[s+6]===0&&!(n[s+7]&128))return 1;let a=n.subarray(4,4+s);if(a.length===33&&a[0]===0&&(a=a.subarray(1)),a.length>32)return 1;let d=n.subarray(6+s);if(d.length===33&&d[0]===0&&(d=d.slice(1)),d.length>32)throw new Error("S length is too long");let v=new xi(a);v.cmp(qr.n)>=0&&(v=new xi(0));let y=new xi(n.subarray(6+s));return y.cmp(qr.n)>=0&&(y=new xi(0)),i.set(v.toArrayLike(Uint8Array,"be",32),0),i.set(y.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(i,n,s,c,a){if(a){let y=a;a=M=>{let w=y(n,s,null,c,M);if(!(w instanceof Uint8Array&&w.length===32))throw new Error("This is the way");return new xi(w)}}let d=new xi(s);if(d.cmp(qr.n)>=0||d.isZero())return 1;let v;try{v=qf.sign(n,s,{canonical:!0,k:a,pers:c})}catch{return 1}return i.signature.set(v.r.toArrayLike(Uint8Array,"be",32),0),i.signature.set(v.s.toArrayLike(Uint8Array,"be",32),32),i.recid=v.recoveryParam,0},ecdsaVerify(i,n,s){let c={r:i.subarray(0,32),s:i.subarray(32,64)},a=new xi(c.r),d=new xi(c.s);if(a.cmp(qr.n)>=0||d.cmp(qr.n)>=0)return 1;if(d.cmp(qf.nh)===1||a.isZero()||d.isZero())return 3;let v=V0(s);if(v===null)return 2;let y=v.getPublic();return qf.verify(n,c,y)?0:3},ecdsaRecover(i,n,s,c){let a={r:n.slice(0,32),s:n.slice(32,64)},d=new xi(a.r),v=new xi(a.s);if(d.cmp(qr.n)>=0||v.cmp(qr.n)>=0)return 1;if(d.isZero()||v.isZero())return 2;let y;try{y=qf.recoverPubKey(c,a,s)}catch{return 2}return Cl(i,y),0},ecdh(i,n,s,c,a,d,v){let y=V0(n);if(y===null)return 1;let M=new xi(s);if(M.cmp(qr.n)>=0||M.isZero())return 2;let w=y.getPublic().mul(M);if(a===void 0){let b=w.encode(null,!0),_=qf.hash().update(b).digest();for(let x=0;x<32;++x)i[x]=_[x]}else{d||(d=new Uint8Array(32));let b=w.getX().toArray("be",32);for(let I=0;I<32;++I)d[I]=b[I];v||(v=new Uint8Array(32));let _=w.getY().toArray("be",32);for(let I=0;I<32;++I)v[I]=_[I];let x=a(d,v,c);if(!(x instanceof Uint8Array&&x.length===i.length))return 2;i.set(x)}return 0}}});var yE=St((Dke,fJ)=>{var Oke=me(Me());xe();_e();fJ.exports=dV()(sJ())});function Uve(){if(hJ)return Nb;hJ=!0;var i=typeof Reflect=="object"?Reflect:null,n=i&&typeof i.apply=="function"?i.apply:function(W,Q,K){return Function.prototype.apply.call(W,Q,K)},s;i&&typeof i.ownKeys=="function"?s=i.ownKeys:Object.getOwnPropertySymbols?s=function(W){return Object.getOwnPropertyNames(W).concat(Object.getOwnPropertySymbols(W))}:s=function(W){return Object.getOwnPropertyNames(W)};function c(Z){console&&console.warn&&console.warn(Z)}var a=Number.isNaN||function(W){return W!==W};function d(){d.init.call(this)}Nb=d,Nb.once=P,d.EventEmitter=d,d.prototype._events=void 0,d.prototype._eventsCount=0,d.prototype._maxListeners=void 0;var v=10;function y(Z){if(typeof Z!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Z)}Object.defineProperty(d,"defaultMaxListeners",{enumerable:!0,get:function(){return v},set:function(Z){if(typeof Z!="number"||Z<0||a(Z))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Z+".");v=Z}}),d.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},d.prototype.setMaxListeners=function(W){if(typeof W!="number"||W<0||a(W))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+W+".");return this._maxListeners=W,this};function M(Z){return Z._maxListeners===void 0?d.defaultMaxListeners:Z._maxListeners}d.prototype.getMaxListeners=function(){return M(this)},d.prototype.emit=function(W){for(var Q=[],K=1;K<arguments.length;K++)Q.push(arguments[K]);var F=W==="error",Y=this._events;if(Y!==void 0)F=F&&Y.error===void 0;else if(!F)return!1;if(F){var m;if(Q.length>0&&(m=Q[0]),m instanceof Error)throw m;var e=new Error("Unhandled error."+(m?" ("+m.message+")":""));throw e.context=m,e}var r=Y[W];if(r===void 0)return!1;if(typeof r=="function")n(r,this,Q);else for(var o=r.length,f=I(r,o),K=0;K<o;++K)n(f[K],this,Q);return!0};function w(Z,W,Q,K){var F,Y,m;if(y(Q),Y=Z._events,Y===void 0?(Y=Z._events=Object.create(null),Z._eventsCount=0):(Y.newListener!==void 0&&(Z.emit("newListener",W,Q.listener?Q.listener:Q),Y=Z._events),m=Y[W]),m===void 0)m=Y[W]=Q,++Z._eventsCount;else if(typeof m=="function"?m=Y[W]=K?[Q,m]:[m,Q]:K?m.unshift(Q):m.push(Q),F=M(Z),F>0&&m.length>F&&!m.warned){m.warned=!0;var e=new Error("Possible EventEmitter memory leak detected. "+m.length+" "+String(W)+" listeners added. Use emitter.setMaxListeners() to increase limit");e.name="MaxListenersExceededWarning",e.emitter=Z,e.type=W,e.count=m.length,c(e)}return Z}d.prototype.addListener=function(W,Q){return w(this,W,Q,!1)},d.prototype.on=d.prototype.addListener,d.prototype.prependListener=function(W,Q){return w(this,W,Q,!0)};function b(){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)}function _(Z,W,Q){var K={fired:!1,wrapFn:void 0,target:Z,type:W,listener:Q},F=b.bind(K);return F.listener=Q,K.wrapFn=F,F}d.prototype.once=function(W,Q){return y(Q),this.on(W,_(this,W,Q)),this},d.prototype.prependOnceListener=function(W,Q){return y(Q),this.prependListener(W,_(this,W,Q)),this},d.prototype.removeListener=function(W,Q){var K,F,Y,m,e;if(y(Q),F=this._events,F===void 0)return this;if(K=F[W],K===void 0)return this;if(K===Q||K.listener===Q)--this._eventsCount===0?this._events=Object.create(null):(delete F[W],F.removeListener&&this.emit("removeListener",W,K.listener||Q));else if(typeof K!="function"){for(Y=-1,m=K.length-1;m>=0;m--)if(K[m]===Q||K[m].listener===Q){e=K[m].listener,Y=m;break}if(Y<0)return this;Y===0?K.shift():R(K,Y),K.length===1&&(F[W]=K[0]),F.removeListener!==void 0&&this.emit("removeListener",W,e||Q)}return this},d.prototype.off=d.prototype.removeListener,d.prototype.removeAllListeners=function(W){var Q,K,F;if(K=this._events,K===void 0)return this;if(K.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):K[W]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete K[W]),this;if(arguments.length===0){var Y=Object.keys(K),m;for(F=0;F<Y.length;++F)m=Y[F],m!=="removeListener"&&this.removeAllListeners(m);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Q=K[W],typeof Q=="function")this.removeListener(W,Q);else if(Q!==void 0)for(F=Q.length-1;F>=0;F--)this.removeListener(W,Q[F]);return this};function x(Z,W,Q){var K=Z._events;if(K===void 0)return[];var F=K[W];return F===void 0?[]:typeof F=="function"?Q?[F.listener||F]:[F]:Q?N(F):I(F,F.length)}d.prototype.listeners=function(W){return x(this,W,!0)},d.prototype.rawListeners=function(W){return x(this,W,!1)},d.listenerCount=function(Z,W){return typeof Z.listenerCount=="function"?Z.listenerCount(W):S.call(Z,W)},d.prototype.listenerCount=S;function S(Z){var W=this._events;if(W!==void 0){var Q=W[Z];if(typeof Q=="function")return 1;if(Q!==void 0)return Q.length}return 0}d.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]};function I(Z,W){for(var Q=new Array(W),K=0;K<W;++K)Q[K]=Z[K];return Q}function R(Z,W){for(;W+1<Z.length;W++)Z[W]=Z[W+1];Z.pop()}function N(Z){for(var W=new Array(Z.length),Q=0;Q<W.length;++Q)W[Q]=Z[Q].listener||Z[Q];return W}function P(Z,W){return new Promise(function(Q,K){function F(m){Z.removeListener(W,Y),K(m)}function Y(){typeof Z.removeListener=="function"&&Z.removeListener("error",F),Q([].slice.call(arguments))}D(Z,W,Y,{once:!0}),W!=="error"&&L(Z,F,{once:!0})})}function L(Z,W,Q){typeof Z.on=="function"&&D(Z,"error",W,Q)}function D(Z,W,Q,K){if(typeof Z.on=="function")K.once?Z.once(W,Q):Z.on(W,Q);else if(typeof Z.addEventListener=="function")Z.addEventListener(W,function F(Y){K.once&&Z.removeEventListener(W,F),Q(Y)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Z)}return Nb}var Fke,Nb,hJ,Cb,zve,Fve,Hve,Kve,jve,Wve,uJ=au(()=>{Fke=me(Me());xe();_e();Nb={},hJ=!1;Cb=Uve();Cb.once;Cb.once=function(i,n){return new Promise((s,c)=>{function a(...v){d!==void 0&&i.removeListener("error",d),s(v)}let d;n!=="error"&&(d=v=>{i.removeListener(name,a),c(v)},i.once("error",d)),i.once(n,a)})};Cb.on=function(i,n){let s=[],c=[],a=null,d=!1,v={async next(){let w=s.shift();if(w)return createIterResult(w,!1);if(a){let b=Promise.reject(a);return a=null,b}return d?createIterResult(void 0,!0):new Promise((b,_)=>c.push({resolve:b,reject:_}))},async return(){i.removeListener(n,y),i.removeListener("error",M),d=!0;for(let w of c)w.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(w){a=w,i.removeListener(n,y),i.removeListener("error",M)},[Symbol.asyncIterator](){return this}};return i.on(n,y),i.on("error",M),v;function y(...w){let b=c.shift();b?b.resolve(createIterResult(w,!1)):s.push(w)}function M(w){d=!0;let b=c.shift();b?b.reject(w):a=w,v.return()}};({EventEmitter:zve,defaultMaxListeners:Fve,init:Hve,listenerCount:Kve,on:jve,once:Wve}=Cb)});var wE={};fv(wE,{EventEmitter:()=>zve,defaultMaxListeners:()=>Fve,init:()=>Hve,listenerCount:()=>Kve,on:()=>jve,once:()=>Wve});var jke,ME=au(()=>{jke=me(Me());xe();_e();uJ()});var _E=St((Vke,lJ)=>{var Jke=me(Me());xe();_e();lJ.exports=(ME(),Lh(wE)).EventEmitter});var xE=St((Qke,cJ)=>{var ePe=me(Me());xe();_e();cJ.exports={}});var gJ=St((iPe,bJ)=>{"use strict";var nPe=me(Me());xe();_e();function dJ(i,n){var s=Object.keys(i);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(i);n&&(c=c.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),s.push.apply(s,c)}return s}function pJ(i){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?dJ(Object(s),!0).forEach(function(c){Zve(i,c,s[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(s)):dJ(Object(s)).forEach(function(c){Object.defineProperty(i,c,Object.getOwnPropertyDescriptor(s,c))})}return i}function Zve(i,n,s){return n=mJ(n),n in i?Object.defineProperty(i,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[n]=s,i}function Gve(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function vJ(i,n){for(var s=0;s<n.length;s++){var c=n[s];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(i,mJ(c.key),c)}}function Vve(i,n,s){return n&&vJ(i.prototype,n),s&&vJ(i,s),Object.defineProperty(i,"prototype",{writable:!1}),i}function mJ(i){var n=Jve(i,"string");return typeof n=="symbol"?n:String(n)}function Jve(i,n){if(typeof i!="object"||i===null)return i;var s=i[Symbol.toPrimitive];if(s!==void 0){var c=s.call(i,n||"default");if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(i)}var Yve=(hl(),Lh(fl)),Lb=Yve.Buffer,Xve=xE(),SE=Xve.inspect,Qve=SE&&SE.custom||"inspect";function e2e(i,n,s){Lb.prototype.copy.call(i,n,s)}bJ.exports=function(){function i(){Gve(this,i),this.head=null,this.tail=null,this.length=0}return Vve(i,[{key:"push",value:function(s){var c={data:s,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length}},{key:"unshift",value:function(s){var c={data:s,next:this.head};this.length===0&&(this.tail=c),this.head=c,++this.length}},{key:"shift",value:function(){if(this.length!==0){var s=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,s}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(s){if(this.length===0)return"";for(var c=this.head,a=""+c.data;c=c.next;)a+=s+c.data;return a}},{key:"concat",value:function(s){if(this.length===0)return Lb.alloc(0);for(var c=Lb.allocUnsafe(s>>>0),a=this.head,d=0;a;)e2e(a.data,c,d),d+=a.data.length,a=a.next;return c}},{key:"consume",value:function(s,c){var a;return s<this.head.data.length?(a=this.head.data.slice(0,s),this.head.data=this.head.data.slice(s)):s===this.head.data.length?a=this.shift():a=c?this._getString(s):this._getBuffer(s),a}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(s){var c=this.head,a=1,d=c.data;for(s-=d.length;c=c.next;){var v=c.data,y=s>v.length?v.length:s;if(y===v.length?d+=v:d+=v.slice(0,s),s-=y,s===0){y===v.length?(++a,c.next?this.head=c.next:this.head=this.tail=null):(this.head=c,c.data=v.slice(y));break}++a}return this.length-=a,d}},{key:"_getBuffer",value:function(s){var c=Lb.allocUnsafe(s),a=this.head,d=1;for(a.data.copy(c),s-=a.data.length;a=a.next;){var v=a.data,y=s>v.length?v.length:s;if(v.copy(c,c.length-s,0,y),s-=y,s===0){y===v.length?(++d,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=v.slice(y));break}++d}return this.length-=d,c}},{key:Qve,value:function(s,c){return SE(this,pJ(pJ({},c),{},{depth:0,customInspect:!1}))}}]),i}()});var AE=St((sPe,wJ)=>{"use strict";var fPe=me(Me());xe();_e();function t2e(i,n){var s=this,c=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return c||a?(n?n(i):i&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ot.default.nextTick(EE,this,i)):ot.default.nextTick(EE,this,i)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(i||null,function(d){!n&&d?s._writableState?s._writableState.errorEmitted?ot.default.nextTick(Db,s):(s._writableState.errorEmitted=!0,ot.default.nextTick(yJ,s,d)):ot.default.nextTick(yJ,s,d):n?(ot.default.nextTick(Db,s),n(d)):ot.default.nextTick(Db,s)}),this)}function yJ(i,n){EE(i,n),Db(i)}function Db(i){i._writableState&&!i._writableState.emitClose||i._readableState&&!i._readableState.emitClose||i.emit("close")}function r2e(){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)}function EE(i,n){i.emit("error",n)}function i2e(i,n){var s=i._readableState,c=i._writableState;s&&s.autoDestroy||c&&c.autoDestroy?i.destroy(n):i.emit("error",n)}wJ.exports={destroy:t2e,undestroy:r2e,errorOrDestroy:i2e}});var Ll=St((lPe,xJ)=>{"use strict";var cPe=me(Me());xe();_e();function n2e(i,n){i.prototype=Object.create(n.prototype),i.prototype.constructor=i,i.__proto__=n}var _J={};function cs(i,n,s){s||(s=Error);function c(d,v,y){return typeof n=="string"?n:n(d,v,y)}var a=function(d){n2e(v,d);function v(y,M,w){return d.call(this,c(y,M,w))||this}return v}(s);a.prototype.name=s.name,a.prototype.code=i,_J[i]=a}function MJ(i,n){if(Array.isArray(i)){var s=i.length;return i=i.map(function(c){return String(c)}),s>2?"one of ".concat(n," ").concat(i.slice(0,s-1).join(", "),", or ")+i[s-1]:s===2?"one of ".concat(n," ").concat(i[0]," or ").concat(i[1]):"of ".concat(n," ").concat(i[0])}else return"of ".concat(n," ").concat(String(i))}function a2e(i,n,s){return i.substr(!s||s<0?0:+s,n.length)===n}function o2e(i,n,s){return(s===void 0||s>i.length)&&(s=i.length),i.substring(s-n.length,s)===n}function s2e(i,n,s){return typeof s!="number"&&(s=0),s+n.length>i.length?!1:i.indexOf(n,s)!==-1}cs("ERR_INVALID_OPT_VALUE",function(i,n){return'The value "'+n+'" is invalid for option "'+i+'"'},TypeError);cs("ERR_INVALID_ARG_TYPE",function(i,n,s){var c;typeof n=="string"&&a2e(n,"not ")?(c="must not be",n=n.replace(/^not /,"")):c="must be";var a;if(o2e(i," argument"))a="The ".concat(i," ").concat(c," ").concat(MJ(n,"type"));else{var d=s2e(i,".")?"property":"argument";a='The "'.concat(i,'" ').concat(d," ").concat(c," ").concat(MJ(n,"type"))}return a+=". Received type ".concat(typeof s),a},TypeError);cs("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");cs("ERR_METHOD_NOT_IMPLEMENTED",function(i){return"The "+i+" method is not implemented"});cs("ERR_STREAM_PREMATURE_CLOSE","Premature close");cs("ERR_STREAM_DESTROYED",function(i){return"Cannot call "+i+" after a stream was destroyed"});cs("ERR_MULTIPLE_CALLBACK","Callback called multiple times");cs("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");cs("ERR_STREAM_WRITE_AFTER_END","write after end");cs("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);cs("ERR_UNKNOWN_ENCODING",function(i){return"Unknown encoding: "+i},TypeError);cs("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");xJ.exports.codes=_J});var BE=St((vPe,SJ)=>{"use strict";var mPe=me(Me());xe();_e();var f2e=Ll().codes.ERR_INVALID_OPT_VALUE;function h2e(i,n,s){return i.highWaterMark!=null?i.highWaterMark:n?i[s]:null}function u2e(i,n,s,c){var a=h2e(n,c,s);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var d=c?s:"highWaterMark";throw new f2e(d,a)}return Math.floor(a)}return i.objectMode?16:16*1024}SJ.exports={getHighWaterMark:u2e}});var AJ=St((yPe,EJ)=>{var wPe=me(Me());xe();_e();EJ.exports=l2e;function l2e(i,n){if(IE("noDeprecation"))return i;var s=!1;function c(){if(!s){if(IE("throwDeprecation"))throw new Error(n);IE("traceDeprecation")?console.trace(n):console.warn(n),s=!0}return i.apply(this,arguments)}return c}function IE(i){try{if(!globalThis.localStorage)return!1}catch{return!1}var n=globalThis.localStorage[i];return n==null?!1:String(n).toLowerCase()==="true"}});var kE=St((xPe,PJ)=>{"use strict";var SPe=me(Me());xe();_e();PJ.exports=Yi;function IJ(i){var n=this;this.next=null,this.entry=null,this.finish=function(){O2e(n,i)}}var Ed;Yi.WritableState=kp;var c2e={deprecate:AJ()},RJ=_E(),qb=(hl(),Lh(fl)).Buffer,d2e=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function p2e(i){return qb.from(i)}function v2e(i){return qb.isBuffer(i)||i instanceof d2e}var TE=AE(),m2e=BE(),b2e=m2e.getHighWaterMark,J0=Ll().codes,g2e=J0.ERR_INVALID_ARG_TYPE,y2e=J0.ERR_METHOD_NOT_IMPLEMENTED,w2e=J0.ERR_MULTIPLE_CALLBACK,M2e=J0.ERR_STREAM_CANNOT_PIPE,_2e=J0.ERR_STREAM_DESTROYED,x2e=J0.ERR_STREAM_NULL_VALUES,S2e=J0.ERR_STREAM_WRITE_AFTER_END,E2e=J0.ERR_UNKNOWN_ENCODING,Ad=TE.errorOrDestroy;Wn()(Yi,RJ);function A2e(){}function kp(i,n,s){Ed=Ed||Dl(),i=i||{},typeof s!="boolean"&&(s=n instanceof Ed),this.objectMode=!!i.objectMode,s&&(this.objectMode=this.objectMode||!!i.writableObjectMode),this.highWaterMark=b2e(this,i,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=i.decodeStrings===!1;this.decodeStrings=!c,this.defaultEncoding=i.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){$2e(n,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=i.emitClose!==!1,this.autoDestroy=!!i.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new IJ(this)}kp.prototype.getBuffer=function(){for(var n=this.bufferedRequest,s=[];n;)s.push(n),n=n.next;return s};(function(){try{Object.defineProperty(kp.prototype,"buffer",{get:c2e.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Ob;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ob=Function.prototype[Symbol.hasInstance],Object.defineProperty(Yi,Symbol.hasInstance,{value:function(n){return Ob.call(this,n)?!0:this!==Yi?!1:n&&n._writableState instanceof kp}})):Ob=function(n){return n instanceof this};function Yi(i){Ed=Ed||Dl();var n=this instanceof Ed;if(!n&&!Ob.call(Yi,this))return new Yi(i);this._writableState=new kp(i,this,n),this.writable=!0,i&&(typeof i.write=="function"&&(this._write=i.write),typeof i.writev=="function"&&(this._writev=i.writev),typeof i.destroy=="function"&&(this._destroy=i.destroy),typeof i.final=="function"&&(this._final=i.final)),RJ.call(this)}Yi.prototype.pipe=function(){Ad(this,new M2e)};function B2e(i,n){var s=new S2e;Ad(i,s),ot.default.nextTick(n,s)}function I2e(i,n,s,c){var a;return s===null?a=new x2e:typeof s!="string"&&!n.objectMode&&(a=new g2e("chunk",["string","Buffer"],s)),a?(Ad(i,a),ot.default.nextTick(c,a),!1):!0}Yi.prototype.write=function(i,n,s){var c=this._writableState,a=!1,d=!c.objectMode&&v2e(i);return d&&!qb.isBuffer(i)&&(i=p2e(i)),typeof n=="function"&&(s=n,n=null),d?n="buffer":n||(n=c.defaultEncoding),typeof s!="function"&&(s=A2e),c.ending?B2e(this,s):(d||I2e(this,c,i,s))&&(c.pendingcb++,a=T2e(this,c,d,i,n,s)),a};Yi.prototype.cork=function(){this._writableState.corked++};Yi.prototype.uncork=function(){var i=this._writableState;i.corked&&(i.corked--,!i.writing&&!i.corked&&!i.bufferProcessing&&i.bufferedRequest&&TJ(this,i))};Yi.prototype.setDefaultEncoding=function(n){if(typeof n=="string"&&(n=n.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((n+"").toLowerCase())>-1))throw new E2e(n);return this._writableState.defaultEncoding=n,this};Object.defineProperty(Yi.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function R2e(i,n,s){return!i.objectMode&&i.decodeStrings!==!1&&typeof n=="string"&&(n=qb.from(n,s)),n}Object.defineProperty(Yi.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function T2e(i,n,s,c,a,d){if(!s){var v=R2e(n,c,a);c!==v&&(s=!0,a="buffer",c=v)}var y=n.objectMode?1:c.length;n.length+=y;var M=n.length<n.highWaterMark;if(M||(n.needDrain=!0),n.writing||n.corked){var w=n.lastBufferedRequest;n.lastBufferedRequest={chunk:c,encoding:a,isBuf:s,callback:d,next:null},w?w.next=n.lastBufferedRequest:n.bufferedRequest=n.lastBufferedRequest,n.bufferedRequestCount+=1}else RE(i,n,!1,y,c,a,d);return M}function RE(i,n,s,c,a,d,v){n.writelen=c,n.writecb=v,n.writing=!0,n.sync=!0,n.destroyed?n.onwrite(new _2e("write")):s?i._writev(a,n.onwrite):i._write(a,d,n.onwrite),n.sync=!1}function k2e(i,n,s,c,a){--n.pendingcb,s?(ot.default.nextTick(a,c),ot.default.nextTick(Tp,i,n),i._writableState.errorEmitted=!0,Ad(i,c)):(a(c),i._writableState.errorEmitted=!0,Ad(i,c),Tp(i,n))}function P2e(i){i.writing=!1,i.writecb=null,i.length-=i.writelen,i.writelen=0}function $2e(i,n){var s=i._writableState,c=s.sync,a=s.writecb;if(typeof a!="function")throw new w2e;if(P2e(s),n)k2e(i,s,c,n,a);else{var d=kJ(s)||i.destroyed;!d&&!s.corked&&!s.bufferProcessing&&s.bufferedRequest&&TJ(i,s),c?ot.default.nextTick(BJ,i,s,d,a):BJ(i,s,d,a)}}function BJ(i,n,s,c){s||N2e(i,n),n.pendingcb--,c(),Tp(i,n)}function N2e(i,n){n.length===0&&n.needDrain&&(n.needDrain=!1,i.emit("drain"))}function TJ(i,n){n.bufferProcessing=!0;var s=n.bufferedRequest;if(i._writev&&s&&s.next){var c=n.bufferedRequestCount,a=new Array(c),d=n.corkedRequestsFree;d.entry=s;for(var v=0,y=!0;s;)a[v]=s,s.isBuf||(y=!1),s=s.next,v+=1;a.allBuffers=y,RE(i,n,!0,n.length,a,"",d.finish),n.pendingcb++,n.lastBufferedRequest=null,d.next?(n.corkedRequestsFree=d.next,d.next=null):n.corkedRequestsFree=new IJ(n),n.bufferedRequestCount=0}else{for(;s;){var M=s.chunk,w=s.encoding,b=s.callback,_=n.objectMode?1:M.length;if(RE(i,n,!1,_,M,w,b),s=s.next,n.bufferedRequestCount--,n.writing)break}s===null&&(n.lastBufferedRequest=null)}n.bufferedRequest=s,n.bufferProcessing=!1}Yi.prototype._write=function(i,n,s){s(new y2e("_write()"))};Yi.prototype._writev=null;Yi.prototype.end=function(i,n,s){var c=this._writableState;return typeof i=="function"?(s=i,i=null,n=null):typeof n=="function"&&(s=n,n=null),i!=null&&this.write(i,n),c.corked&&(c.corked=1,this.uncork()),c.ending||D2e(this,c,s),this};Object.defineProperty(Yi.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function kJ(i){return i.ending&&i.length===0&&i.bufferedRequest===null&&!i.finished&&!i.writing}function C2e(i,n){i._final(function(s){n.pendingcb--,s&&Ad(i,s),n.prefinished=!0,i.emit("prefinish"),Tp(i,n)})}function L2e(i,n){!n.prefinished&&!n.finalCalled&&(typeof i._final=="function"&&!n.destroyed?(n.pendingcb++,n.finalCalled=!0,ot.default.nextTick(C2e,i,n)):(n.prefinished=!0,i.emit("prefinish")))}function Tp(i,n){var s=kJ(n);if(s&&(L2e(i,n),n.pendingcb===0&&(n.finished=!0,i.emit("finish"),n.autoDestroy))){var c=i._readableState;(!c||c.autoDestroy&&c.endEmitted)&&i.destroy()}return s}function D2e(i,n,s){n.ending=!0,Tp(i,n),s&&(n.finished?ot.default.nextTick(s):i.once("finish",s)),n.ended=!0,i.writable=!1}function O2e(i,n,s){var c=i.entry;for(i.entry=null;c;){var a=c.callback;n.pendingcb--,a(s),c=c.next}n.corkedRequestsFree.next=i}Object.defineProperty(Yi.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(n){this._writableState&&(this._writableState.destroyed=n)}});Yi.prototype.destroy=TE.destroy;Yi.prototype._undestroy=TE.undestroy;Yi.prototype._destroy=function(i,n){n(i)}});var Dl=St((BPe,NJ)=>{"use strict";var IPe=me(Me());xe();_e();var q2e=Object.keys||function(i){var n=[];for(var s in i)n.push(s);return n};NJ.exports=Uf;var $J=NE(),$E=kE();Wn()(Uf,$J);for(PE=q2e($E.prototype),Ub=0;Ub<PE.length;Ub++)zb=PE[Ub],Uf.prototype[zb]||(Uf.prototype[zb]=$E.prototype[zb]);var PE,zb,Ub;function Uf(i){if(!(this instanceof Uf))return new Uf(i);$J.call(this,i),$E.call(this,i),this.allowHalfOpen=!0,i&&(i.readable===!1&&(this.readable=!1),i.writable===!1&&(this.writable=!1),i.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",U2e)))}Object.defineProperty(Uf.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Uf.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Uf.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function U2e(){this._writableState.ended||ot.default.nextTick(z2e,this)}function z2e(i){i.end()}Object.defineProperty(Uf.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(n){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=n,this._writableState.destroyed=n)}})});var DJ=St((CE,LJ)=>{var kPe=me(Me());xe();_e();var Fb=(hl(),Lh(fl)),Rh=Fb.Buffer;function CJ(i,n){for(var s in i)n[s]=i[s]}Rh.from&&Rh.alloc&&Rh.allocUnsafe&&Rh.allocUnsafeSlow?LJ.exports=Fb:(CJ(Fb,CE),CE.Buffer=Bd);function Bd(i,n,s){return Rh(i,n,s)}CJ(Rh,Bd);Bd.from=function(i,n,s){if(typeof i=="number")throw new TypeError("Argument must not be a number");return Rh(i,n,s)};Bd.alloc=function(i,n,s){if(typeof i!="number")throw new TypeError("Argument must be a number");var c=Rh(i);return n!==void 0?typeof s=="string"?c.fill(n,s):c.fill(n):c.fill(0),c};Bd.allocUnsafe=function(i){if(typeof i!="number")throw new TypeError("Argument must be a number");return Rh(i)};Bd.allocUnsafeSlow=function(i){if(typeof i!="number")throw new TypeError("Argument must be a number");return Fb.SlowBuffer(i)}});var OE=St(qJ=>{"use strict";var CPe=me(Me());xe();_e();var DE=DJ().Buffer,OJ=DE.isEncoding||function(i){switch(i=""+i,i&&i.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 F2e(i){if(!i)return"utf8";for(var n;;)switch(i){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 i;default:if(n)return;i=(""+i).toLowerCase(),n=!0}}function H2e(i){var n=F2e(i);if(typeof n!="string"&&(DE.isEncoding===OJ||!OJ(i)))throw new Error("Unknown encoding: "+i);return n||i}qJ.StringDecoder=Pp;function Pp(i){this.encoding=H2e(i);var n;switch(this.encoding){case"utf16le":this.text=V2e,this.end=J2e,n=4;break;case"utf8":this.fillLast=W2e,n=4;break;case"base64":this.text=Y2e,this.end=X2e,n=3;break;default:this.write=Q2e,this.end=e6e;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=DE.allocUnsafe(n)}Pp.prototype.write=function(i){if(i.length===0)return"";var n,s;if(this.lastNeed){if(n=this.fillLast(i),n===void 0)return"";s=this.lastNeed,this.lastNeed=0}else s=0;return s<i.length?n?n+this.text(i,s):this.text(i,s):n||""};Pp.prototype.end=G2e;Pp.prototype.text=Z2e;Pp.prototype.fillLast=function(i){if(this.lastNeed<=i.length)return i.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);i.copy(this.lastChar,this.lastTotal-this.lastNeed,0,i.length),this.lastNeed-=i.length};function LE(i){return i<=127?0:i>>5===6?2:i>>4===14?3:i>>3===30?4:i>>6===2?-1:-2}function K2e(i,n,s){var c=n.length-1;if(c<s)return 0;var a=LE(n[c]);return a>=0?(a>0&&(i.lastNeed=a-1),a):--c<s||a===-2?0:(a=LE(n[c]),a>=0?(a>0&&(i.lastNeed=a-2),a):--c<s||a===-2?0:(a=LE(n[c]),a>=0?(a>0&&(a===2?a=0:i.lastNeed=a-3),a):0))}function j2e(i,n,s){if((n[0]&192)!==128)return i.lastNeed=0,"\uFFFD";if(i.lastNeed>1&&n.length>1){if((n[1]&192)!==128)return i.lastNeed=1,"\uFFFD";if(i.lastNeed>2&&n.length>2&&(n[2]&192)!==128)return i.lastNeed=2,"\uFFFD"}}function W2e(i){var n=this.lastTotal-this.lastNeed,s=j2e(this,i,n);if(s!==void 0)return s;if(this.lastNeed<=i.length)return i.copy(this.lastChar,n,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);i.copy(this.lastChar,n,0,i.length),this.lastNeed-=i.length}function Z2e(i,n){var s=K2e(this,i,n);if(!this.lastNeed)return i.toString("utf8",n);this.lastTotal=s;var c=i.length-(s-this.lastNeed);return i.copy(this.lastChar,0,c),i.toString("utf8",n,c)}function G2e(i){var n=i&&i.length?this.write(i):"";return this.lastNeed?n+"\uFFFD":n}function V2e(i,n){if((i.length-n)%2===0){var s=i.toString("utf16le",n);if(s){var c=s.charCodeAt(s.length-1);if(c>=55296&&c<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=i[i.length-2],this.lastChar[1]=i[i.length-1],s.slice(0,-1)}return s}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=i[i.length-1],i.toString("utf16le",n,i.length-1)}function J2e(i){var n=i&&i.length?this.write(i):"";if(this.lastNeed){var s=this.lastTotal-this.lastNeed;return n+this.lastChar.toString("utf16le",0,s)}return n}function Y2e(i,n){var s=(i.length-n)%3;return s===0?i.toString("base64",n):(this.lastNeed=3-s,this.lastTotal=3,s===1?this.lastChar[0]=i[i.length-1]:(this.lastChar[0]=i[i.length-2],this.lastChar[1]=i[i.length-1]),i.toString("base64",n,i.length-s))}function X2e(i){var n=i&&i.length?this.write(i):"";return this.lastNeed?n+this.lastChar.toString("base64",0,3-this.lastNeed):n}function Q2e(i){return i.toString(this.encoding)}function e6e(i){return i&&i.length?this.write(i):""}});var Hb=St((OPe,FJ)=>{"use strict";var qPe=me(Me());xe();_e();var UJ=Ll().codes.ERR_STREAM_PREMATURE_CLOSE;function t6e(i){var n=!1;return function(){if(!n){n=!0;for(var s=arguments.length,c=new Array(s),a=0;a<s;a++)c[a]=arguments[a];i.apply(this,c)}}}function r6e(){}function i6e(i){return i.setHeader&&typeof i.abort=="function"}function zJ(i,n,s){if(typeof n=="function")return zJ(i,null,n);n||(n={}),s=t6e(s||r6e);var c=n.readable||n.readable!==!1&&i.readable,a=n.writable||n.writable!==!1&&i.writable,d=function(){i.writable||y()},v=i._writableState&&i._writableState.finished,y=function(){a=!1,v=!0,c||s.call(i)},M=i._readableState&&i._readableState.endEmitted,w=function(){c=!1,M=!0,a||s.call(i)},b=function(I){s.call(i,I)},_=function(){var I;if(c&&!M)return(!i._readableState||!i._readableState.ended)&&(I=new UJ),s.call(i,I);if(a&&!v)return(!i._writableState||!i._writableState.ended)&&(I=new UJ),s.call(i,I)},x=function(){i.req.on("finish",y)};return i6e(i)?(i.on("complete",y),i.on("abort",_),i.req?x():i.on("request",x)):a&&!i._writableState&&(i.on("end",d),i.on("close",d)),i.on("end",w),i.on("finish",y),n.error!==!1&&i.on("error",b),i.on("close",_),function(){i.removeListener("complete",y),i.removeListener("abort",_),i.removeListener("request",x),i.req&&i.req.removeListener("finish",y),i.removeListener("end",d),i.removeListener("close",d),i.removeListener("finish",y),i.removeListener("end",w),i.removeListener("error",b),i.removeListener("close",_)}}FJ.exports=zJ});var KJ=St((FPe,HJ)=>{"use strict";var HPe=me(Me());xe();_e();var Kb;function Y0(i,n,s){return n=n6e(n),n in i?Object.defineProperty(i,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[n]=s,i}function n6e(i){var n=a6e(i,"string");return typeof n=="symbol"?n:String(n)}function a6e(i,n){if(typeof i!="object"||i===null)return i;var s=i[Symbol.toPrimitive];if(s!==void 0){var c=s.call(i,n||"default");if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(i)}var o6e=Hb(),X0=Symbol("lastResolve"),Ol=Symbol("lastReject"),$p=Symbol("error"),jb=Symbol("ended"),ql=Symbol("lastPromise"),qE=Symbol("handlePromise"),Ul=Symbol("stream");function Q0(i,n){return{value:i,done:n}}function s6e(i){var n=i[X0];if(n!==null){var s=i[Ul].read();s!==null&&(i[ql]=null,i[X0]=null,i[Ol]=null,n(Q0(s,!1)))}}function f6e(i){ot.default.nextTick(s6e,i)}function h6e(i,n){return function(s,c){i.then(function(){if(n[jb]){s(Q0(void 0,!0));return}n[qE](s,c)},c)}}var u6e=Object.getPrototypeOf(function(){}),l6e=Object.setPrototypeOf((Kb={get stream(){return this[Ul]},next:function(){var n=this,s=this[$p];if(s!==null)return Promise.reject(s);if(this[jb])return Promise.resolve(Q0(void 0,!0));if(this[Ul].destroyed)return new Promise(function(v,y){ot.default.nextTick(function(){n[$p]?y(n[$p]):v(Q0(void 0,!0))})});var c=this[ql],a;if(c)a=new Promise(h6e(c,this));else{var d=this[Ul].read();if(d!==null)return Promise.resolve(Q0(d,!1));a=new Promise(this[qE])}return this[ql]=a,a}},Y0(Kb,Symbol.asyncIterator,function(){return this}),Y0(Kb,"return",function(){var n=this;return new Promise(function(s,c){n[Ul].destroy(null,function(a){if(a){c(a);return}s(Q0(void 0,!0))})})}),Kb),u6e),c6e=function(n){var s,c=Object.create(l6e,(s={},Y0(s,Ul,{value:n,writable:!0}),Y0(s,X0,{value:null,writable:!0}),Y0(s,Ol,{value:null,writable:!0}),Y0(s,$p,{value:null,writable:!0}),Y0(s,jb,{value:n._readableState.endEmitted,writable:!0}),Y0(s,qE,{value:function(d,v){var y=c[Ul].read();y?(c[ql]=null,c[X0]=null,c[Ol]=null,d(Q0(y,!1))):(c[X0]=d,c[Ol]=v)},writable:!0}),s));return c[ql]=null,o6e(n,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var d=c[Ol];d!==null&&(c[ql]=null,c[X0]=null,c[Ol]=null,d(a)),c[$p]=a;return}var v=c[X0];v!==null&&(c[ql]=null,c[X0]=null,c[Ol]=null,v(Q0(void 0,!0))),c[jb]=!0}),n.on("readable",f6e.bind(null,c)),c};HJ.exports=c6e});var WJ=St((WPe,jJ)=>{var ZPe=me(Me());xe();_e();jJ.exports=function(){throw new Error("Readable.from is not available in the browser")}});var NE=St((YPe,rY)=>{"use strict";var XPe=me(Me());xe();_e();rY.exports=Kr;var Id;Kr.ReadableState=JJ;var JPe=(ME(),Lh(wE)).EventEmitter,VJ=function(n,s){return n.listeners(s).length},Cp=_E(),Wb=(hl(),Lh(fl)).Buffer,d6e=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function p6e(i){return Wb.from(i)}function v6e(i){return Wb.isBuffer(i)||i instanceof d6e}var UE=xE(),Ar;UE&&UE.debuglog?Ar=UE.debuglog("stream"):Ar=function(){};var m6e=gJ(),ZE=AE(),b6e=BE(),g6e=b6e.getHighWaterMark,Zb=Ll().codes,y6e=Zb.ERR_INVALID_ARG_TYPE,w6e=Zb.ERR_STREAM_PUSH_AFTER_EOF,M6e=Zb.ERR_METHOD_NOT_IMPLEMENTED,_6e=Zb.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Rd,zE,FE;Wn()(Kr,Cp);var Np=ZE.errorOrDestroy,HE=["error","close","destroy","pause","resume"];function x6e(i,n,s){if(typeof i.prependListener=="function")return i.prependListener(n,s);!i._events||!i._events[n]?i.on(n,s):Array.isArray(i._events[n])?i._events[n].unshift(s):i._events[n]=[s,i._events[n]]}function JJ(i,n,s){Id=Id||Dl(),i=i||{},typeof s!="boolean"&&(s=n instanceof Id),this.objectMode=!!i.objectMode,s&&(this.objectMode=this.objectMode||!!i.readableObjectMode),this.highWaterMark=g6e(this,i,"readableHighWaterMark",s),this.buffer=new m6e,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=i.emitClose!==!1,this.autoDestroy=!!i.autoDestroy,this.destroyed=!1,this.defaultEncoding=i.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,i.encoding&&(Rd||(Rd=OE().StringDecoder),this.decoder=new Rd(i.encoding),this.encoding=i.encoding)}function Kr(i){if(Id=Id||Dl(),!(this instanceof Kr))return new Kr(i);var n=this instanceof Id;this._readableState=new JJ(i,this,n),this.readable=!0,i&&(typeof i.read=="function"&&(this._read=i.read),typeof i.destroy=="function"&&(this._destroy=i.destroy)),Cp.call(this)}Object.defineProperty(Kr.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(n){this._readableState&&(this._readableState.destroyed=n)}});Kr.prototype.destroy=ZE.destroy;Kr.prototype._undestroy=ZE.undestroy;Kr.prototype._destroy=function(i,n){n(i)};Kr.prototype.push=function(i,n){var s=this._readableState,c;return s.objectMode?c=!0:typeof i=="string"&&(n=n||s.defaultEncoding,n!==s.encoding&&(i=Wb.from(i,n),n=""),c=!0),YJ(this,i,n,!1,c)};Kr.prototype.unshift=function(i){return YJ(this,i,null,!0,!1)};function YJ(i,n,s,c,a){Ar("readableAddChunk",n);var d=i._readableState;if(n===null)d.reading=!1,A6e(i,d);else{var v;if(a||(v=S6e(d,n)),v)Np(i,v);else if(d.objectMode||n&&n.length>0)if(typeof n!="string"&&!d.objectMode&&Object.getPrototypeOf(n)!==Wb.prototype&&(n=p6e(n)),c)d.endEmitted?Np(i,new _6e):KE(i,d,n,!0);else if(d.ended)Np(i,new w6e);else{if(d.destroyed)return!1;d.reading=!1,d.decoder&&!s?(n=d.decoder.write(n),d.objectMode||n.length!==0?KE(i,d,n,!1):WE(i,d)):KE(i,d,n,!1)}else c||(d.reading=!1,WE(i,d))}return!d.ended&&(d.length<d.highWaterMark||d.length===0)}function KE(i,n,s,c){n.flowing&&n.length===0&&!n.sync?(n.awaitDrain=0,i.emit("data",s)):(n.length+=n.objectMode?1:s.length,c?n.buffer.unshift(s):n.buffer.push(s),n.needReadable&&Gb(i)),WE(i,n)}function S6e(i,n){var s;return!v6e(n)&&typeof n!="string"&&n!==void 0&&!i.objectMode&&(s=new y6e("chunk",["string","Buffer","Uint8Array"],n)),s}Kr.prototype.isPaused=function(){return this._readableState.flowing===!1};Kr.prototype.setEncoding=function(i){Rd||(Rd=OE().StringDecoder);var n=new Rd(i);this._readableState.decoder=n,this._readableState.encoding=this._readableState.decoder.encoding;for(var s=this._readableState.buffer.head,c="";s!==null;)c+=n.write(s.data),s=s.next;return this._readableState.buffer.clear(),c!==""&&this._readableState.buffer.push(c),this._readableState.length=c.length,this};var ZJ=1073741824;function E6e(i){return i>=ZJ?i=ZJ:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),i}function GJ(i,n){return i<=0||n.length===0&&n.ended?0:n.objectMode?1:i!==i?n.flowing&&n.length?n.buffer.head.data.length:n.length:(i>n.highWaterMark&&(n.highWaterMark=E6e(i)),i<=n.length?i:n.ended?n.length:(n.needReadable=!0,0))}Kr.prototype.read=function(i){Ar("read",i),i=parseInt(i,10);var n=this._readableState,s=i;if(i!==0&&(n.emittedReadable=!1),i===0&&n.needReadable&&((n.highWaterMark!==0?n.length>=n.highWaterMark:n.length>0)||n.ended))return Ar("read: emitReadable",n.length,n.ended),n.length===0&&n.ended?jE(this):Gb(this),null;if(i=GJ(i,n),i===0&&n.ended)return n.length===0&&jE(this),null;var c=n.needReadable;Ar("need readable",c),(n.length===0||n.length-i<n.highWaterMark)&&(c=!0,Ar("length less than watermark",c)),n.ended||n.reading?(c=!1,Ar("reading or ended",c)):c&&(Ar("do read"),n.reading=!0,n.sync=!0,n.length===0&&(n.needReadable=!0),this._read(n.highWaterMark),n.sync=!1,n.reading||(i=GJ(s,n)));var a;return i>0?a=eY(i,n):a=null,a===null?(n.needReadable=n.length<=n.highWaterMark,i=0):(n.length-=i,n.awaitDrain=0),n.length===0&&(n.ended||(n.needReadable=!0),s!==i&&n.ended&&jE(this)),a!==null&&this.emit("data",a),a};function A6e(i,n){if(Ar("onEofChunk"),!n.ended){if(n.decoder){var s=n.decoder.end();s&&s.length&&(n.buffer.push(s),n.length+=n.objectMode?1:s.length)}n.ended=!0,n.sync?Gb(i):(n.needReadable=!1,n.emittedReadable||(n.emittedReadable=!0,XJ(i)))}}function Gb(i){var n=i._readableState;Ar("emitReadable",n.needReadable,n.emittedReadable),n.needReadable=!1,n.emittedReadable||(Ar("emitReadable",n.flowing),n.emittedReadable=!0,ot.default.nextTick(XJ,i))}function XJ(i){var n=i._readableState;Ar("emitReadable_",n.destroyed,n.length,n.ended),!n.destroyed&&(n.length||n.ended)&&(i.emit("readable"),n.emittedReadable=!1),n.needReadable=!n.flowing&&!n.ended&&n.length<=n.highWaterMark,GE(i)}function WE(i,n){n.readingMore||(n.readingMore=!0,ot.default.nextTick(B6e,i,n))}function B6e(i,n){for(;!n.reading&&!n.ended&&(n.length<n.highWaterMark||n.flowing&&n.length===0);){var s=n.length;if(Ar("maybeReadMore read 0"),i.read(0),s===n.length)break}n.readingMore=!1}Kr.prototype._read=function(i){Np(this,new M6e("_read()"))};Kr.prototype.pipe=function(i,n){var s=this,c=this._readableState;switch(c.pipesCount){case 0:c.pipes=i;break;case 1:c.pipes=[c.pipes,i];break;default:c.pipes.push(i);break}c.pipesCount+=1,Ar("pipe count=%d opts=%j",c.pipesCount,n);var a=(!n||n.end!==!1)&&i!==ot.default.stdout&&i!==ot.default.stderr,d=a?y:R;c.endEmitted?ot.default.nextTick(d):s.once("end",d),i.on("unpipe",v);function v(N,P){Ar("onunpipe"),N===s&&P&&P.hasUnpiped===!1&&(P.hasUnpiped=!0,b())}function y(){Ar("onend"),i.end()}var M=I6e(s);i.on("drain",M);var w=!1;function b(){Ar("cleanup"),i.removeListener("close",S),i.removeListener("finish",I),i.removeListener("drain",M),i.removeListener("error",x),i.removeListener("unpipe",v),s.removeListener("end",y),s.removeListener("end",R),s.removeListener("data",_),w=!0,c.awaitDrain&&(!i._writableState||i._writableState.needDrain)&&M()}s.on("data",_);function _(N){Ar("ondata");var P=i.write(N);Ar("dest.write",P),P===!1&&((c.pipesCount===1&&c.pipes===i||c.pipesCount>1&&tY(c.pipes,i)!==-1)&&!w&&(Ar("false write response, pause",c.awaitDrain),c.awaitDrain++),s.pause())}function x(N){Ar("onerror",N),R(),i.removeListener("error",x),VJ(i,"error")===0&&Np(i,N)}x6e(i,"error",x);function S(){i.removeListener("finish",I),R()}i.once("close",S);function I(){Ar("onfinish"),i.removeListener("close",S),R()}i.once("finish",I);function R(){Ar("unpipe"),s.unpipe(i)}return i.emit("pipe",s),c.flowing||(Ar("pipe resume"),s.resume()),i};function I6e(i){return function(){var s=i._readableState;Ar("pipeOnDrain",s.awaitDrain),s.awaitDrain&&s.awaitDrain--,s.awaitDrain===0&&VJ(i,"data")&&(s.flowing=!0,GE(i))}}Kr.prototype.unpipe=function(i){var n=this._readableState,s={hasUnpiped:!1};if(n.pipesCount===0)return this;if(n.pipesCount===1)return i&&i!==n.pipes?this:(i||(i=n.pipes),n.pipes=null,n.pipesCount=0,n.flowing=!1,i&&i.emit("unpipe",this,s),this);if(!i){var c=n.pipes,a=n.pipesCount;n.pipes=null,n.pipesCount=0,n.flowing=!1;for(var d=0;d<a;d++)c[d].emit("unpipe",this,{hasUnpiped:!1});return this}var v=tY(n.pipes,i);return v===-1?this:(n.pipes.splice(v,1),n.pipesCount-=1,n.pipesCount===1&&(n.pipes=n.pipes[0]),i.emit("unpipe",this,s),this)};Kr.prototype.on=function(i,n){var s=Cp.prototype.on.call(this,i,n),c=this._readableState;return i==="data"?(c.readableListening=this.listenerCount("readable")>0,c.flowing!==!1&&this.resume()):i==="readable"&&!c.endEmitted&&!c.readableListening&&(c.readableListening=c.needReadable=!0,c.flowing=!1,c.emittedReadable=!1,Ar("on readable",c.length,c.reading),c.length?Gb(this):c.reading||ot.default.nextTick(R6e,this)),s};Kr.prototype.addListener=Kr.prototype.on;Kr.prototype.removeListener=function(i,n){var s=Cp.prototype.removeListener.call(this,i,n);return i==="readable"&&ot.default.nextTick(QJ,this),s};Kr.prototype.removeAllListeners=function(i){var n=Cp.prototype.removeAllListeners.apply(this,arguments);return(i==="readable"||i===void 0)&&ot.default.nextTick(QJ,this),n};function QJ(i){var n=i._readableState;n.readableListening=i.listenerCount("readable")>0,n.resumeScheduled&&!n.paused?n.flowing=!0:i.listenerCount("data")>0&&i.resume()}function R6e(i){Ar("readable nexttick read 0"),i.read(0)}Kr.prototype.resume=function(){var i=this._readableState;return i.flowing||(Ar("resume"),i.flowing=!i.readableListening,T6e(this,i)),i.paused=!1,this};function T6e(i,n){n.resumeScheduled||(n.resumeScheduled=!0,ot.default.nextTick(k6e,i,n))}function k6e(i,n){Ar("resume",n.reading),n.reading||i.read(0),n.resumeScheduled=!1,i.emit("resume"),GE(i),n.flowing&&!n.reading&&i.read(0)}Kr.prototype.pause=function(){return Ar("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Ar("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function GE(i){var n=i._readableState;for(Ar("flow",n.flowing);n.flowing&&i.read()!==null;);}Kr.prototype.wrap=function(i){var n=this,s=this._readableState,c=!1;i.on("end",function(){if(Ar("wrapped end"),s.decoder&&!s.ended){var v=s.decoder.end();v&&v.length&&n.push(v)}n.push(null)}),i.on("data",function(v){if(Ar("wrapped data"),s.decoder&&(v=s.decoder.write(v)),!(s.objectMode&&v==null)&&!(!s.objectMode&&(!v||!v.length))){var y=n.push(v);y||(c=!0,i.pause())}});for(var a in i)this[a]===void 0&&typeof i[a]=="function"&&(this[a]=function(y){return function(){return i[y].apply(i,arguments)}}(a));for(var d=0;d<HE.length;d++)i.on(HE[d],this.emit.bind(this,HE[d]));return this._read=function(v){Ar("wrapped _read",v),c&&(c=!1,i.resume())},this};typeof Symbol=="function"&&(Kr.prototype[Symbol.asyncIterator]=function(){return zE===void 0&&(zE=KJ()),zE(this)});Object.defineProperty(Kr.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(Kr.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(Kr.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(n){this._readableState&&(this._readableState.flowing=n)}});Kr._fromList=eY;Object.defineProperty(Kr.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function eY(i,n){if(n.length===0)return null;var s;return n.objectMode?s=n.buffer.shift():!i||i>=n.length?(n.decoder?s=n.buffer.join(""):n.buffer.length===1?s=n.buffer.first():s=n.buffer.concat(n.length),n.buffer.clear()):s=n.buffer.consume(i,n.decoder),s}function jE(i){var n=i._readableState;Ar("endReadable",n.endEmitted),n.endEmitted||(n.ended=!0,ot.default.nextTick(P6e,n,i))}function P6e(i,n){if(Ar("endReadableNT",i.endEmitted,i.length),!i.endEmitted&&i.length===0&&(i.endEmitted=!0,n.readable=!1,n.emit("end"),i.autoDestroy)){var s=n._writableState;(!s||s.autoDestroy&&s.finished)&&n.destroy()}}typeof Symbol=="function"&&(Kr.from=function(i,n){return FE===void 0&&(FE=WJ()),FE(Kr,i,n)});function tY(i,n){for(var s=0,c=i.length;s<c;s++)if(i[s]===n)return s;return-1}});var VE=St((t$e,nY)=>{"use strict";var r$e=me(Me());xe();_e();nY.exports=Th;var Vb=Ll().codes,$6e=Vb.ERR_METHOD_NOT_IMPLEMENTED,N6e=Vb.ERR_MULTIPLE_CALLBACK,C6e=Vb.ERR_TRANSFORM_ALREADY_TRANSFORMING,L6e=Vb.ERR_TRANSFORM_WITH_LENGTH_0,Jb=Dl();Wn()(Th,Jb);function D6e(i,n){var s=this._transformState;s.transforming=!1;var c=s.writecb;if(c===null)return this.emit("error",new N6e);s.writechunk=null,s.writecb=null,n!=null&&this.push(n),c(i);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function Th(i){if(!(this instanceof Th))return new Th(i);Jb.call(this,i),this._transformState={afterTransform:D6e.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,i&&(typeof i.transform=="function"&&(this._transform=i.transform),typeof i.flush=="function"&&(this._flush=i.flush)),this.on("prefinish",O6e)}function O6e(){var i=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(n,s){iY(i,n,s)}):iY(this,null,null)}Th.prototype.push=function(i,n){return this._transformState.needTransform=!1,Jb.prototype.push.call(this,i,n)};Th.prototype._transform=function(i,n,s){s(new $6e("_transform()"))};Th.prototype._write=function(i,n,s){var c=this._transformState;if(c.writecb=s,c.writechunk=i,c.writeencoding=n,!c.transforming){var a=this._readableState;(c.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}};Th.prototype._read=function(i){var n=this._transformState;n.writechunk!==null&&!n.transforming?(n.transforming=!0,this._transform(n.writechunk,n.writeencoding,n.afterTransform)):n.needTransform=!0};Th.prototype._destroy=function(i,n){Jb.prototype._destroy.call(this,i,function(s){n(s)})};function iY(i,n,s){if(n)return i.emit("error",n);if(s!=null&&i.push(s),i._writableState.length)throw new L6e;if(i._transformState.transforming)throw new C6e;return i.push(null)}});var sY=St((a$e,oY)=>{"use strict";var o$e=me(Me());xe();_e();oY.exports=Lp;var aY=VE();Wn()(Lp,aY);function Lp(i){if(!(this instanceof Lp))return new Lp(i);aY.call(this,i)}Lp.prototype._transform=function(i,n,s){s(null,i)}});var cY=St((h$e,lY)=>{"use strict";var u$e=me(Me());xe();_e();var JE;function q6e(i){var n=!1;return function(){n||(n=!0,i.apply(void 0,arguments))}}var uY=Ll().codes,U6e=uY.ERR_MISSING_ARGS,z6e=uY.ERR_STREAM_DESTROYED;function fY(i){if(i)throw i}function F6e(i){return i.setHeader&&typeof i.abort=="function"}function H6e(i,n,s,c){c=q6e(c);var a=!1;i.on("close",function(){a=!0}),JE===void 0&&(JE=Hb()),JE(i,{readable:n,writable:s},function(v){if(v)return c(v);a=!0,c()});var d=!1;return function(v){if(!a&&!d){if(d=!0,F6e(i))return i.abort();if(typeof i.destroy=="function")return i.destroy();c(v||new z6e("pipe"))}}}function hY(i){i()}function K6e(i,n){return i.pipe(n)}function j6e(i){return!i.length||typeof i[i.length-1]!="function"?fY:i.pop()}function W6e(){for(var i=arguments.length,n=new Array(i),s=0;s<i;s++)n[s]=arguments[s];var c=j6e(n);if(Array.isArray(n[0])&&(n=n[0]),n.length<2)throw new U6e("streams");var a,d=n.map(function(v,y){var M=y<n.length-1,w=y>0;return H6e(v,M,w,function(b){a||(a=b),b&&d.forEach(hY),!M&&(d.forEach(hY),c(a))})});return n.reduce(K6e)}lY.exports=W6e});var YE=St((ds,dY)=>{var d$e=me(Me());xe();_e();ds=dY.exports=NE();ds.Stream=ds;ds.Readable=ds;ds.Writable=kE();ds.Duplex=Dl();ds.Transform=VE();ds.PassThrough=sY();ds.finished=Hb();ds.pipeline=cY()});var mY=St((m$e,vY)=>{var b$e=me(Me());xe();_e();var{Transform:Z6e}=YE();vY.exports=i=>class pY extends Z6e{constructor(s,c,a,d,v){super(v),this._rate=s,this._capacity=c,this._delimitedSuffix=a,this._hashBitLength=d,this._options=v,this._state=new i,this._state.initialize(s,c),this._finalized=!1}_transform(s,c,a){let d=null;try{this.update(s,c)}catch(v){d=v}a(d)}_flush(s){let c=null;try{this.push(this.digest())}catch(a){c=a}s(c)}update(s,c){if(!at.isBuffer(s)&&typeof s!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return at.isBuffer(s)||(s=at.from(s,c)),this._state.absorb(s),this}digest(s){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let c=this._state.squeeze(this._hashBitLength/8);return s!==void 0&&(c=c.toString(s)),this._resetState(),c}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let s=new pY(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(s._state),s._finalized=this._finalized,s}}});var yY=St((w$e,gY)=>{var M$e=me(Me());xe();_e();var{Transform:G6e}=YE();gY.exports=i=>class bY extends G6e{constructor(s,c,a,d){super(d),this._rate=s,this._capacity=c,this._delimitedSuffix=a,this._options=d,this._state=new i,this._state.initialize(s,c),this._finalized=!1}_transform(s,c,a){let d=null;try{this.update(s,c)}catch(v){d=v}a(d)}_flush(){}_read(s){this.push(this.squeeze(s))}update(s,c){if(!at.isBuffer(s)&&typeof s!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return at.isBuffer(s)||(s=at.from(s,c)),this._state.absorb(s),this}squeeze(s,c){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let a=this._state.squeeze(s);return c!==void 0&&(a=a.toString(c)),a}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let s=new bY(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(s._state),s._finalized=this._finalized,s}}});var MY=St((S$e,wY)=>{var E$e=me(Me());xe();_e();var V6e=mY(),J6e=yY();wY.exports=function(i){let n=V6e(i),s=J6e(i);return function(c,a){switch(typeof c=="string"?c.toLowerCase():c){case"keccak224":return new n(1152,448,null,224,a);case"keccak256":return new n(1088,512,null,256,a);case"keccak384":return new n(832,768,null,384,a);case"keccak512":return new n(576,1024,null,512,a);case"sha3-224":return new n(1152,448,6,224,a);case"sha3-256":return new n(1088,512,6,256,a);case"sha3-384":return new n(832,768,6,384,a);case"sha3-512":return new n(576,1024,6,512,a);case"shake128":return new s(1344,256,31,a);case"shake256":return new s(1088,512,31,a);default:throw new Error("Invald algorithm: "+c)}}}});var SY=St(xY=>{var R$e=me(Me());xe();_e();var _Y=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];xY.p1600=function(i){for(let n=0;n<24;++n){let s=i[0]^i[10]^i[20]^i[30]^i[40],c=i[1]^i[11]^i[21]^i[31]^i[41],a=i[2]^i[12]^i[22]^i[32]^i[42],d=i[3]^i[13]^i[23]^i[33]^i[43],v=i[4]^i[14]^i[24]^i[34]^i[44],y=i[5]^i[15]^i[25]^i[35]^i[45],M=i[6]^i[16]^i[26]^i[36]^i[46],w=i[7]^i[17]^i[27]^i[37]^i[47],b=i[8]^i[18]^i[28]^i[38]^i[48],_=i[9]^i[19]^i[29]^i[39]^i[49],x=b^(a<<1|d>>>31),S=_^(d<<1|a>>>31),I=i[0]^x,R=i[1]^S,N=i[10]^x,P=i[11]^S,L=i[20]^x,D=i[21]^S,Z=i[30]^x,W=i[31]^S,Q=i[40]^x,K=i[41]^S;x=s^(v<<1|y>>>31),S=c^(y<<1|v>>>31);let F=i[2]^x,Y=i[3]^S,m=i[12]^x,e=i[13]^S,r=i[22]^x,o=i[23]^S,f=i[32]^x,h=i[33]^S,p=i[42]^x,g=i[43]^S;x=a^(M<<1|w>>>31),S=d^(w<<1|M>>>31);let l=i[4]^x,t=i[5]^S,u=i[14]^x,E=i[15]^S,B=i[24]^x,k=i[25]^S,q=i[34]^x,z=i[35]^S,ee=i[44]^x,te=i[45]^S;x=v^(b<<1|_>>>31),S=y^(_<<1|b>>>31);let O=i[6]^x,U=i[7]^S,oe=i[16]^x,X=i[17]^S,j=i[26]^x,V=i[27]^S,G=i[36]^x,ie=i[37]^S,ge=i[46]^x,re=i[47]^S;x=M^(s<<1|c>>>31),S=w^(c<<1|s>>>31);let ae=i[8]^x,we=i[9]^S,fe=i[18]^x,he=i[19]^S,nt=i[28]^x,de=i[29]^S,be=i[38]^x,ut=i[39]^S,$=i[48]^x,A=i[49]^S,T=I,C=R,H=P<<4|N>>>28,ne=N<<4|P>>>28,J=L<<3|D>>>29,ce=D<<3|L>>>29,ft=W<<9|Z>>>23,le=Z<<9|W>>>23,ve=Q<<18|K>>>14,st=K<<18|Q>>>14,Se=F<<1|Y>>>31,Le=Y<<1|F>>>31,mt=e<<12|m>>>20,Ee=m<<12|e>>>20,Ne=r<<10|o>>>22,bt=o<<10|r>>>22,Be=h<<13|f>>>19,Ce=f<<13|h>>>19,vt=p<<2|g>>>30,se=g<<2|p>>>30,ue=t<<30|l>>>2,ht=l<<30|t>>>2,pe=u<<6|E>>>26,Ie=E<<6|u>>>26,ct=k<<11|B>>>21,ye=B<<11|k>>>21,De=q<<15|z>>>17,dt=z<<15|q>>>17,Ae=te<<29|ee>>>3,Oe=ee<<29|te>>>3,gt=O<<28|U>>>4,Re=U<<28|O>>>4,$e=X<<23|oe>>>9,pt=oe<<23|X>>>9,lt=j<<25|V>>>7,yt=V<<25|j>>>7,xt=G<<21|ie>>>11,Mt=ie<<21|G>>>11,Et=re<<24|ge>>>8,At=ge<<24|re>>>8,Bt=ae<<27|we>>>5,Rt=we<<27|ae>>>5,Tt=fe<<20|he>>>12,kt=he<<20|fe>>>12,Pt=de<<7|nt>>>25,$t=nt<<7|de>>>25,Nt=be<<8|ut>>>24,Ct=ut<<8|be>>>24,Dt=$<<14|A>>>18,Ot=A<<14|$>>>18;i[0]=T^~mt&ct,i[1]=C^~Ee&ye,i[10]=gt^~Tt&J,i[11]=Re^~kt&ce,i[20]=Se^~pe<,i[21]=Le^~Ie&yt,i[30]=Bt^~H&Ne,i[31]=Rt^~ne&bt,i[40]=ue^~$e&Pt,i[41]=ht^~pt&$t,i[2]=mt^~ct&xt,i[3]=Ee^~ye&Mt,i[12]=Tt^~J&Be,i[13]=kt^~ce&Ce,i[22]=pe^~lt&Nt,i[23]=Ie^~yt&Ct,i[32]=H^~Ne&De,i[33]=ne^~bt&dt,i[42]=$e^~Pt&ft,i[43]=pt^~$t&le,i[4]=ct^~xt&Dt,i[5]=ye^~Mt&Ot,i[14]=J^~Be&Ae,i[15]=ce^~Ce&Oe,i[24]=lt^~Nt&ve,i[25]=yt^~Ct&st,i[34]=Ne^~De&Et,i[35]=bt^~dt&At,i[44]=Pt^~ft&vt,i[45]=$t^~le&se,i[6]=xt^~Dt&T,i[7]=Mt^~Ot&C,i[16]=Be^~Ae>,i[17]=Ce^~Oe&Re,i[26]=Nt^~ve&Se,i[27]=Ct^~st&Le,i[36]=De^~Et&Bt,i[37]=dt^~At&Rt,i[46]=ft^~vt&ue,i[47]=le^~se&ht,i[8]=Dt^~T&mt,i[9]=Ot^~C&Ee,i[18]=Ae^~gt&Tt,i[19]=Oe^~Re&kt,i[28]=ve^~Se&pe,i[29]=st^~Le&Ie,i[38]=Et^~Bt&H,i[39]=At^~Rt&ne,i[48]=vt^~ue&$e,i[49]=se^~ht&pt,i[0]^=_Y[n*2],i[1]^=_Y[n*2+1]}}});var AY=St((P$e,EY)=>{var $$e=me(Me());xe();_e();var Yb=SY();function Td(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}Td.prototype.initialize=function(i,n){for(let s=0;s<50;++s)this.state[s]=0;this.blockSize=i/8,this.count=0,this.squeezing=!1};Td.prototype.absorb=function(i){for(let n=0;n<i.length;++n)this.state[~~(this.count/4)]^=i[n]<<8*(this.count%4),this.count+=1,this.count===this.blockSize&&(Yb.p1600(this.state),this.count=0)};Td.prototype.absorbLastFewBits=function(i){this.state[~~(this.count/4)]^=i<<8*(this.count%4),i&128&&this.count===this.blockSize-1&&Yb.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),Yb.p1600(this.state),this.count=0,this.squeezing=!0};Td.prototype.squeeze=function(i){this.squeezing||this.absorbLastFewBits(1);let n=at.alloc(i);for(let s=0;s<i;++s)n[s]=this.state[~~(this.count/4)]>>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(Yb.p1600(this.state),this.count=0);return n};Td.prototype.copy=function(i){for(let n=0;n<50;++n)i.state[n]=this.state[n];i.blockSize=this.blockSize,i.count=this.count,i.squeezing=this.squeezing};EY.exports=Td});var IY=St((L$e,BY)=>{var D$e=me(Me());xe();_e();BY.exports=MY()(AY())});var vUe=me(Me(),1);xe();_e();var rqe=me(Me(),1);xe();_e();var K3e=me(Me(),1);xe();_e();var B3e=me(Me(),1);xe();_e();var fn={module:"ISShJH1ij-hPPt9St5UFFr_8Ys3Kj5cyg7zrMGt7H9s",scheduler:"_GQ33BkPtZrqxA84vM8Zk-N2aO0toNNu_C-l-rawrBA",mu:"fcoN_xJeisVsPXA-trzVAuIiqO3ydLQxM-L4XbrQKzY",src:{asset:"LlyF5s11sJIWvfNbkH-tavR-P7IJfTvkHHOdlwtGIJM",collection:"EmeE2B70hVDdhr9fWou3i_nKARSb_6LXvxRFTH67qvU",collectionActivity:"8cQtC9TsWURFzboq1aozm8VbzRBc5GGVt7yB80kapfc",comments:"RvozS-4Mbcmq66gPapsNOyERkg3LrpR0vSRKz8wIi4k",zone:{id:"eDZu7f4RKNT0TawGluj0Uo-qN-rQqleWR-rIgF26A5A",version:"0.0.4"}},collectionRegistry:"zwKi27GuKS3GOlwL3EhNGH02SJDDAO5Uy43ZJwomhZ4"},TB={defaultNode:"https://forward.computer"},kB={"application/json":{type:"application/json",serialize:i=>JSON.stringify(i)}},Qs={arweave:"arweave.net",ao:"ao-search-gateway.goldsky.com"};var Wr={keys:{access:"Access-Fee",ans110:{title:"Title",description:"Description",topic:"Topic:*",type:"Type",implements:"Implements",license:"License"},assetType:"Asset-Type",banner:"Banner",bootloader:"Bootloader",collectionId:"Collection-Id",collectionName:"Collection-Name",commericalUse:"Commercial-Use",contentType:"Content-Type",creator:"Creator",currency:"Currency",dataModelTraining:"Data-Model-Training",dataProtocol:"Data-Protocol",dateCreated:"Date-Created",derivations:"Derivations",description:"Description",displayName:"Display-Name",handle:"Handle",implements:"Implements",initialOwner:"Initial-Owner",license:"License",name:"Name",onBoot:"On-Boot",paymentAddress:"Payment-Address",paymentMode:"Payment-Mode",profileCreator:"Profile-Creator",profileIndex:"Profile-Index",protocolName:"Protocol-Name",renderWith:"Render-With",thumbnail:"Thumbnail",title:"Title",topic:"Topic",type:"Type",zoneType:"Zone-Type"},values:{dataProtocol:"ao",document:"Document",user:"User"}},S3={node1:"https://turbo.ardrive.io",batchSize:1,chunkSize:75e5,dispatchUploadSize:100*1024};var D3e=me(Me(),1);xe();_e();var P3e=me(Me(),1);xe();_e();function ho(i){return i?/^[a-z0-9_-]{43}$/i.test(i):!1}function lv(i,n){for(let s=0;s<i.length;s++)if(i[s]&&i[s].name===n)return i[s].value;return null}function PB(i){let n=i.match(/^data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+);base64,/);return n?n[1]:null}function $B(i){return i.split(",")[1]}function NB(i){let n;if(at.isBuffer(i))n=i.length;else if(typeof i=="string")n=at.byteLength(i,"utf-8");else throw new Error("Input must be a string or a Buffer");return n}function E3(i){let n;return n=i.replace(/\[|\]/g,""),`[[${n}]]`}function Ld(i){let n;return n=i.replace(/\[|\]/g,""),n}var Sa=(...i)=>{console.log("[@permaweb/libs]",...i)};function eee(i){return i.replace(/^[a-z]/,n=>n.toUpperCase())}function Xl(i){return Array.isArray(i)?i.map(Xl):i&&typeof i=="object"?Object.entries(i).reduce((n,[s,c])=>{let a=eee(s);return n[a]=ho(c)?c:Xl(c),n},{}):i}function tee(i){return i.charAt(0).toLowerCase()+i.slice(1)}function uo(i){return Array.isArray(i)?i.map(uo):i&&typeof i=="object"?Object.entries(i).reduce((n,[s,c])=>{let a=ho(s)||s.includes("-")?s:tee(s);return n[a]=ho(c)?c:uo(c),n},{}):i}function Qn(i,n){let s=i.charAt(0).toUpperCase()+i.slice(1);return{name:`${Wr.keys.bootloader}-${s}`,value:n}}function cv(i){return ho(i)||i.startsWith("data")}var ree="https://arweave.net";function dv(i){return`${ree}/${i}`}async function iee(i,n){let s=[{name:"Authority",value:i.node?.authority??fn.mu}];n.tags&&n.tags.length>0&&n.tags.forEach(c=>s.push(c));try{let c=await i.ao.spawn({module:n.module,scheduler:i.node?.scheduler||n.scheduler,signer:i.signer,tags:s,data:n.data});return Sa(`Process ID: ${c}`),Sa("Sending initial message..."),await dn(i,{processId:c,action:"Init"}),c}catch(c){throw console.log(c),new Error(c.message??"Error spawning process")}}function CB(i){return async n=>await dn(i,n)}async function dn(i,n){try{let s=[{name:"Action",value:n.action},{name:"Message-Timestamp",value:new Date().getTime().toString()}];n.tags&&s.push(...n.tags);let c=n.useRawData?n.data:JSON.stringify(n.data);return await i.ao.message({process:n.processId,signer:i.signer,tags:s,data:c})}catch(s){throw new Error(s)}}function LB(i){return async n=>await Kf(i,n)}async function Kf(i,n){let c=`${i.node?.url??TB.defaultNode}/${n.processId}~process@1.0/now/${n.path}`;n.serialize&&(c+="/serialize~json@1.0");try{let a=await fetch(c);if(a.ok)return a.json();throw new Error("Error getting state from HyperBEAM.")}catch(a){if(n.fallbackAction)return await pv(i,{processId:n.processId,action:n.fallbackAction});throw a}}function DB(i){return async n=>await pv(i,n)}async function pv(i,n){try{let s=[{name:"Action",value:n.action}];n.tags&&s.push(...n.tags);let c;if(typeof n.data=="object")c=JSON.stringify(n.data||{});else if(typeof n.data=="string"){try{JSON.parse(n.data)}catch(d){throw console.error(d),new Error("Invalid JSON data")}c=n.data}let a=await i.ao.dryrun({process:n.processId,tags:s,data:c});if(a.Messages&&a.Messages.length){if(a.Messages[0].Data)return JSON.parse(a.Messages[0].Data);if(a.Messages[0].Tags)return a.Messages[0].Tags.reduce((d,v)=>(d[v.name]=v.value,d),{})}}catch(s){throw new Error(s.message??"Error dryrunning process")}}async function nee(i,n){try{let{Messages:s}=await i.ao.result({message:n.messageId,process:n.processId});if(s&&s.length){let c={};return s.forEach(a=>{let d=lv(a.Tags,"Action")||n.action,v=null,y=a.Data;if(y)try{v=JSON.parse(y)}catch{v=y}let M=lv(a.Tags,"Status"),w=lv(a.Tags,"Message");c[d]={id:n.messageId,status:M,message:w,data:v}}),c}else return null}catch(s){console.error(s)}}async function Dd(i,n){let s=null;if(n.evalSrc)s=n.evalSrc;else if(n.evalTxId)try{s=await(await fetch(dv(n.evalTxId))).text()}catch(c){throw new Error(c)}if(s)try{let c=await dn(i,{processId:n.processId,action:"Eval",data:s,tags:n.evalTags||null,useRawData:!0});return Sa(`Eval: ${c}`),await nee(i,{processId:n.processId,messageId:c,action:"Eval"})}catch(c){throw new Error(c.message??"Error sending process eval")}return null}function jf(i){return async(n,s)=>{try{let c={module:n.module||fn.module,scheduler:i.node?.scheduler||fn.scheduler};n.data&&(c.data=n.data),n.tags&&(c.tags=n.tags),s&&s("Spawning process...");let a=await iee(i,c);if(n.evalTxId||n.evalSrc){s&&s("Process retrieved!"),s&&s("Sending eval...");try{await Dd(i,{processId:a,evalTxId:n.evalTxId||null,evalSrc:n.evalSrc||null,evalTags:n.evalTags})&&s&&s("Eval complete")}catch(d){throw new Error(d.message??"Error creating process")}}return a}catch(c){throw new Error(c.message??"Error creating process")}}}var GOe=me(Me(),1);xe();_e();var qOe=me(Me(),1);xe();_e();var oA={};fv(oA,{AVSCTap:()=>Vp,AlgorandSigner:()=>Up,AptosSigner:()=>Fp,ArconnectSigner:()=>Wl,Arweave:()=>dj.default,ArweaveSigner:()=>ll,Bundle:()=>a3,BundleItem:()=>aA,CryptoDriver:()=>mm,Curve25519:()=>qa,DataItem:()=>r3,EthereumSigner:()=>fo,HexInjectedSolanaSigner:()=>Fl,HexSolanaSigner:()=>zp,InjectedAptosSigner:()=>Hl,InjectedEthereumSigner:()=>eE,InjectedSolanaSigner:()=>cl,InjectedTypedEthereumSigner:()=>tA,KyveSigner:()=>jp,MAX_TAG_BYTES:()=>t3,MIN_BINARY_SIZE:()=>i3,MultiSignatureAptosSigner:()=>Kl,NearSigner:()=>qp,PolygonSigner:()=>Op,Rsa4096:()=>al,SIG_CONFIG:()=>Rr,SignatureConfig:()=>ar,Signer:()=>A3,SolanaSigner:()=>Bh,Transaction:()=>cj.default,TypedEthereumSigner:()=>jl,bundleAndSignData:()=>rme,byteArrayToLong:()=>Xi,concatBuffers:()=>ui.concatBuffers,createData:()=>Yp,deepHash:()=>S0,deserializeTags:()=>kd,exportForTesting:()=>X6e,getCryptoDriver:()=>nn,getSignatureAndId:()=>qY,indexToType:()=>Wp,keccak256:()=>XE,longTo16ByteArray:()=>eme,longTo32ByteArray:()=>e3,longTo8ByteArray:()=>Qb,longToNByteArray:()=>Gp,secp256k1:()=>zl,serializeTags:()=>iA,shortTo2ByteArray:()=>rA,sign:()=>n3,stringToBuffer:()=>ui.stringToBuffer,unbundleData:()=>tme});var gDe=me(Me(),1);xe();_e();var tLe=me(Me(),1);xe();_e();var G3e=me(Me(),1);xe();_e();var A3=class{publicKey;signatureType;signatureLength;ownerLength;pem;static verify(n,s,c,a){throw new Error("You must implement verify method on child")}};var KCe=me(Me(),1);xe();_e();var Ege=me(Me(),1);xe();_e();var YB=me(lo(),1);var uge=me(Me(),1);xe();_e();var ar;(function(i){i[i.ARWEAVE=1]="ARWEAVE",i[i.ED25519=2]="ED25519",i[i.ETHEREUM=3]="ETHEREUM",i[i.SOLANA=4]="SOLANA",i[i.INJECTEDAPTOS=5]="INJECTEDAPTOS",i[i.MULTIAPTOS=6]="MULTIAPTOS",i[i.TYPEDETHEREUM=7]="TYPEDETHEREUM",i[i.KYVE=101]="KYVE"})(ar||(ar={}));var Rr={[ar.ARWEAVE]:{sigLength:512,pubLength:512,sigName:"arweave"},[ar.ED25519]:{sigLength:64,pubLength:32,sigName:"ed25519"},[ar.ETHEREUM]:{sigLength:65,pubLength:65,sigName:"ethereum"},[ar.SOLANA]:{sigLength:64,pubLength:32,sigName:"solana"},[ar.INJECTEDAPTOS]:{sigLength:64,pubLength:32,sigName:"injectedAptos"},[ar.MULTIAPTOS]:{sigLength:64*32+4,pubLength:32*32+1,sigName:"multiAptos"},[ar.TYPEDETHEREUM]:{sigLength:65,pubLength:42,sigName:"typedEthereum"},[ar.KYVE]:{sigLength:65,pubLength:65,sigName:"kyve"}};var yge=me(Me(),1);xe();_e();var jB=me(k3(),1);var pn=BigInt(0),Ur=BigInt(1),ya=BigInt(2),WB=BigInt(255),FB=ya**BigInt(252)+BigInt("27742317777372353535851937790883648493"),Ti={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),P:ya**WB-BigInt(19),l:FB,n:FB,h:BigInt(8),Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960")};var ZB=ya**BigInt(256),Od=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"),bge=BigInt("6853475219497561581579357271197624642482790079785650197046958215289687604742"),hee=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),uee=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),lee=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),cee=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),vn=class i{constructor(n,s,c,a){this.x=n,this.y=s,this.z=c,this.t=a}static fromAffine(n){if(!(n instanceof hn))throw new TypeError("ExtendedPoint#fromAffine: expected Point");return n.equals(hn.ZERO)?i.ZERO:new i(n.x,n.y,Ur,Lt(n.x*n.y))}static toAffineBatch(n){let s=vee(n.map(c=>c.z));return n.map((c,a)=>c.toAffine(s[a]))}static normalizeZ(n){return this.toAffineBatch(n).map(this.fromAffine)}equals(n){HB(n);let{x:s,y:c,z:a}=this,{x:d,y:v,z:y}=n,M=Lt(s*y),w=Lt(d*a),b=Lt(c*y),_=Lt(v*a);return M===w&&b===_}negate(){return new i(Lt(-this.x),this.y,this.z,Lt(-this.t))}double(){let{x:n,y:s,z:c}=this,{a}=Ti,d=Lt(n**ya),v=Lt(s**ya),y=Lt(ya*Lt(c**ya)),M=Lt(a*d),w=Lt(Lt((n+s)**ya)-d-v),b=M+v,_=b-y,x=M-v,S=Lt(w*_),I=Lt(b*x),R=Lt(w*x),N=Lt(_*b);return new i(S,I,N,R)}add(n){HB(n);let{x:s,y:c,z:a,t:d}=this,{x:v,y,z:M,t:w}=n,b=Lt((c-s)*(y+v)),_=Lt((c+s)*(y-v)),x=Lt(_-b);if(x===pn)return this.double();let S=Lt(a*ya*w),I=Lt(d*ya*M),R=I+S,N=_+b,P=I-S,L=Lt(R*x),D=Lt(N*P),Z=Lt(R*P),W=Lt(x*N);return new i(L,D,W,Z)}subtract(n){return this.add(n.negate())}precomputeWindow(n){let s=1+256/n,c=[],a=this,d=a;for(let v=0;v<s;v++){d=a,c.push(d);for(let y=1;y<2**(n-1);y++)d=d.add(a),c.push(d);a=d.double()}return c}wNAF(n,s){!s&&this.equals(i.BASE)&&(s=hn.BASE);let c=s&&s._WINDOW_SIZE||1;if(256%c)throw new Error("Point#wNAF: Invalid precomputation window, must be power of 2");let a=s&&C3.get(s);a||(a=this.precomputeWindow(c),s&&c!==1&&(a=i.normalizeZ(a),C3.set(s,a)));let d=i.ZERO,v=i.ZERO,y=1+256/c,M=2**(c-1),w=BigInt(2**c-1),b=2**c,_=BigInt(c);for(let x=0;x<y;x++){let S=x*M,I=Number(n&w);if(n>>=_,I>M&&(I-=b,n+=Ur),I===0){let R=a[S];x%2&&(R=R.negate()),v=v.add(R)}else{let R=a[S+Math.abs(I)-1];I<0&&(R=R.negate()),d=d.add(R)}}return i.normalizeZ([d,v])[0]}multiply(n,s){return this.wNAF(mv(n,Ti.l),s)}multiplyUnsafe(n){let s=mv(n,Ti.l,!1),c=i.BASE,a=i.ZERO;if(s===pn)return a;if(this.equals(a)||s===Ur)return this;if(this.equals(c))return this.wNAF(s);let d=a,v=this;for(;s>pn;)s&Ur&&(d=d.add(v)),v=v.double(),s>>=Ur;return d}isSmallOrder(){return this.multiplyUnsafe(Ti.h).equals(i.ZERO)}isTorsionFree(){return this.multiplyUnsafe(Ti.l).equals(i.ZERO)}toAffine(n=bv(this.z)){let{x:s,y:c,z:a}=this,d=Lt(s*n),v=Lt(c*n);if(Lt(a*n)!==Ur)throw new Error("invZ was invalid");return new hn(d,v)}fromRistrettoBytes(){$3()}toRistrettoBytes(){$3()}fromRistrettoHash(){$3()}};vn.BASE=new vn(Ti.Gx,Ti.Gy,Ur,Lt(Ti.Gx*Ti.Gy));vn.ZERO=new vn(pn,Ur,Ur,pn);function HB(i){if(!(i instanceof vn))throw new TypeError("ExtendedPoint expected")}function P3(i){if(!(i instanceof hu))throw new TypeError("RistrettoPoint expected")}function $3(){throw new Error("Legacy method: switch to RistrettoPoint")}var hu=class i{constructor(n){this.ep=n}static calcElligatorRistrettoMap(n){let{d:s}=Ti,c=Lt(Od*n*n),a=Lt((c+Ur)*lee),d=BigInt(-1),v=Lt((d-s*c)*Lt(c+s)),{isValid:y,value:M}=D3(a,v),w=Lt(M*n);Oh(w)||(w=Lt(-w)),y||(M=w),y||(d=c);let b=Lt(d*(c-Ur)*cee-v),_=M*M,x=Lt((M+M)*v),S=Lt(b*hee),I=Lt(Ur-_),R=Lt(Ur+_);return new vn(Lt(x*R),Lt(I*S),Lt(S*R),Lt(x*I))}static hashToCurve(n){n=qh(n,64);let s=N3(n.slice(0,32)),c=this.calcElligatorRistrettoMap(s),a=N3(n.slice(32,64)),d=this.calcElligatorRistrettoMap(a);return new i(c.add(d))}static fromHex(n){n=qh(n,32);let{a:s,d:c}=Ti,a="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",d=N3(n);if(!bee(Ud(d),n)||Oh(d))throw new Error(a);let v=Lt(d*d),y=Lt(Ur+s*v),M=Lt(Ur-s*v),w=Lt(y*y),b=Lt(M*M),_=Lt(s*c*w-b),{isValid:x,value:S}=KB(Lt(_*b)),I=Lt(S*M),R=Lt(S*I*_),N=Lt((d+d)*I);Oh(N)&&(N=Lt(-N));let P=Lt(y*R),L=Lt(N*P);if(!x||Oh(L)||P===pn)throw new Error(a);return new i(new vn(N,P,Ur,L))}toRawBytes(){let{x:n,y:s,z:c,t:a}=this.ep,d=Lt(Lt(c+s)*Lt(c-s)),v=Lt(n*s),{value:y}=KB(Lt(d*v**ya)),M=Lt(y*d),w=Lt(y*v),b=Lt(M*w*a),_;if(Oh(a*b)){let S=Lt(s*Od),I=Lt(n*Od);n=S,s=I,_=Lt(M*uee)}else _=w;Oh(n*b)&&(s=Lt(-s));let x=Lt((c-s)*_);return Oh(x)&&(x=Lt(-x)),Ud(x)}toHex(){return zd(this.toRawBytes())}toString(){return this.toHex()}equals(n){P3(n);let s=this.ep,c=n.ep,a=Lt(s.x*c.y)===Lt(s.y*c.x),d=Lt(s.y*c.y)===Lt(s.x*c.x);return a||d}add(n){return P3(n),new i(this.ep.add(n.ep))}subtract(n){return P3(n),new i(this.ep.subtract(n.ep))}multiply(n){return new i(this.ep.multiply(n))}multiplyUnsafe(n){return new i(this.ep.multiplyUnsafe(n))}};hu.BASE=new hu(vn.BASE);hu.ZERO=new hu(vn.ZERO);var C3=new WeakMap,hn=class i{constructor(n,s){this.x=n,this.y=s}_setWindowSize(n){this._WINDOW_SIZE=n,C3.delete(this)}static fromHex(n,s=!0){let{d:c,P:a}=Ti;n=qh(n,32);let d=n.slice();d[31]=n[31]&-129;let v=ec(d);if(s&&v>=a)throw new Error("Expected 0 < hex < P");if(!s&&v>=ZB)throw new Error("Expected 0 < hex < 2**256");let y=Lt(v*v),M=Lt(y-Ur),w=Lt(c*y+Ur),{isValid:b,value:_}=D3(M,w);if(!b)throw new Error("Point.fromHex: invalid y coordinate");let x=(_&Ur)===Ur;return(n[31]&128)!==0!==x&&(_=Lt(-_)),new i(_,v)}static async fromPrivateKey(n){return(await O3(n)).point}toRawBytes(){let n=Ud(this.y);return n[31]|=this.x&Ur?128:0,n}toHex(){return zd(this.toRawBytes())}toX25519(){let{y:n}=this,s=Lt((Ur+n)*bv(Ur-n));return Ud(s)}isTorsionFree(){return vn.fromAffine(this).isTorsionFree()}equals(n){return this.x===n.x&&this.y===n.y}negate(){return new i(Lt(-this.x),this.y)}add(n){return vn.fromAffine(this).add(vn.fromAffine(n)).toAffine()}subtract(n){return this.add(n.negate())}multiply(n){return vn.fromAffine(this).multiply(n,this).toAffine()}};hn.BASE=new hn(Ti.Gx,Ti.Gy);hn.ZERO=new hn(pn,Ur);var qd=class i{constructor(n,s){this.r=n,this.s=s,this.assertValidity()}static fromHex(n){let s=qh(n,64),c=hn.fromHex(s.slice(0,32),!1),a=ec(s.slice(32,64));return new i(c,a)}assertValidity(){let{r:n,s}=this;if(!(n instanceof hn))throw new Error("Expected Point instance");return mv(s,Ti.l,!1),this}toRawBytes(){let n=new Uint8Array(64);return n.set(this.r.toRawBytes()),n.set(Ud(this.s),32),n}toHex(){return zd(this.toRawBytes())}};function dee(...i){if(!i.every(c=>c instanceof Uint8Array))throw new Error("Expected Uint8Array list");if(i.length===1)return i[0];let n=i.reduce((c,a)=>c+a.length,0),s=new Uint8Array(n);for(let c=0,a=0;c<i.length;c++){let d=i[c];s.set(d,a),a+=d.length}return s}var pee=Array.from({length:256},(i,n)=>n.toString(16).padStart(2,"0"));function zd(i){if(!(i instanceof Uint8Array))throw new Error("Uint8Array expected");let n="";for(let s=0;s<i.length;s++)n+=pee[i[s]];return n}function GB(i){if(typeof i!="string")throw new TypeError("hexToBytes: expected string, got "+typeof i);if(i.length%2)throw new Error("hexToBytes: received invalid unpadded hex");let n=new Uint8Array(i.length/2);for(let s=0;s<n.length;s++){let c=s*2,a=i.slice(c,c+2),d=Number.parseInt(a,16);if(Number.isNaN(d)||d<0)throw new Error("Invalid byte sequence");n[s]=d}return n}function VB(i){let s=i.toString(16).padStart(64,"0");return GB(s)}function Ud(i){return VB(i).reverse()}function Oh(i){return(Lt(i)&Ur)===Ur}function ec(i){if(!(i instanceof Uint8Array))throw new Error("Expected Uint8Array");return BigInt("0x"+zd(Uint8Array.from(i).reverse()))}function N3(i){return Lt(ec(i)&ya**WB-Ur)}function Lt(i,n=Ti.P){let s=i%n;return s>=pn?s:n+s}function bv(i,n=Ti.P){if(i===pn||n<=pn)throw new Error(`invert: expected positive integers, got n=${i} mod=${n}`);let s=Lt(i,n),c=n,a=pn,d=Ur,v=Ur,y=pn;for(;s!==pn;){let w=c/s,b=c%s,_=a-v*w,x=d-y*w;c=s,s=b,a=v,d=y,v=_,y=x}if(c!==Ur)throw new Error("invert: does not exist");return Lt(a,n)}function vee(i,n=Ti.P){let s=new Array(i.length),c=i.reduce((d,v,y)=>v===pn?d:(s[y]=d,Lt(d*v,n)),Ur),a=bv(c,n);return i.reduceRight((d,v,y)=>v===pn?d:(s[y]=Lt(d*s[y],n),Lt(d*v,n)),a),s}function ef(i,n){let{P:s}=Ti,c=i;for(;n-- >pn;)c*=c,c%=s;return c}function mee(i){let{P:n}=Ti,s=BigInt(5),c=BigInt(10),a=BigInt(20),d=BigInt(40),v=BigInt(80),M=i*i%n*i%n,w=ef(M,ya)*M%n,b=ef(w,Ur)*i%n,_=ef(b,s)*b%n,x=ef(_,c)*_%n,S=ef(x,a)*x%n,I=ef(S,d)*S%n,R=ef(I,v)*I%n,N=ef(R,v)*I%n,P=ef(N,c)*_%n;return{pow_p_5_8:ef(P,ya)*i%n,b2:M}}function D3(i,n){let s=Lt(n*n*n),c=Lt(s*s*n),a=mee(i*c).pow_p_5_8,d=Lt(i*s*a),v=Lt(n*d*d),y=d,M=Lt(d*Od),w=v===i,b=v===Lt(-i),_=v===Lt(-i*Od);return w&&(d=y),(b||_)&&(d=M),Oh(d)&&(d=Lt(-d)),{isValid:w||b,value:d}}function KB(i){return D3(Ur,i)}async function L3(...i){let n=await q3.sha512(dee(...i)),s=ec(n);return Lt(s,Ti.l)}function bee(i,n){if(i.length!==n.length)return!1;for(let s=0;s<i.length;s++)if(i[s]!==n[s])return!1;return!0}function qh(i,n){let s=i instanceof Uint8Array?Uint8Array.from(i):GB(i);if(typeof n=="number"&&s.length!==n)throw new Error(`Expected ${n} bytes`);return s}function mv(i,n,s=!0){if(!n)throw new TypeError("Specify max value");if(typeof i=="number"&&Number.isSafeInteger(i)&&(i=BigInt(i)),typeof i=="bigint"&&i<n){if(s){if(pn<i)return i}else if(pn<=i)return i}throw new TypeError("Expected valid scalar: 0 < scalar < max")}function gee(i){return i[0]&=248,i[31]&=127,i[31]|=64,i}async function O3(i){if(i=typeof i=="bigint"||typeof i=="number"?VB(mv(i,ZB)):qh(i),i.length!==32)throw new Error("Expected 32 bytes");let n=await q3.sha512(i),s=gee(n.slice(0,32)),c=n.slice(32,64),a=Lt(ec(s),Ti.l),d=hn.BASE.multiply(a),v=d.toRawBytes();return{head:s,prefix:c,scalar:a,point:d,pointBytes:v}}async function JB(i,n){i=qh(i);let{prefix:s,scalar:c,pointBytes:a}=await O3(n),d=await L3(s,i),v=hn.BASE.multiply(d),y=await L3(v.toRawBytes(),a,i),M=Lt(d+y*c,Ti.l);return new qd(v,M).toRawBytes()}async function Uh(i,n,s){n=qh(n),s instanceof hn||(s=hn.fromHex(s,!1));let{r:c,s:a}=i instanceof qd?i.assertValidity():qd.fromHex(i),d=vn.BASE.multiplyUnsafe(a),v=await L3(c.toRawBytes(),s.toRawBytes(),n),y=vn.fromAffine(s).multiplyUnsafe(v);return vn.fromAffine(c).add(y).subtract(d).multiplyUnsafe(Ti.h).equals(vn.ZERO)}hn.BASE._setWindowSize(8);var Dh={node:jB.default,web:typeof self=="object"&&"crypto"in self?self.crypto:void 0},q3={TORSION_SUBGROUP:["0100000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a","0000000000000000000000000000000000000000000000000000000000000080","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05","ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85","0000000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa"],bytesToHex:zd,getExtendedPublicKey:O3,mod:Lt,invert:bv,hashToPrivateScalar:i=>{if(i=qh(i),i.length<40||i.length>1024)throw new Error("Expected 40-1024 bytes of private key as per FIPS 186");let n=Lt(ec(i),Ti.l);if(n===pn||n===Ur)throw new Error("Invalid private key");return n},randomBytes:(i=32)=>{if(Dh.web)return Dh.web.getRandomValues(new Uint8Array(i));if(Dh.node){let{randomBytes:n}=Dh.node;return new Uint8Array(n(i).buffer)}else throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>q3.randomBytes(32),sha512:async i=>{if(Dh.web){let n=await Dh.web.subtle.digest("SHA-512",i.buffer);return new Uint8Array(n)}else{if(Dh.node)return Uint8Array.from(Dh.node.createHash("sha512").update(i).digest());throw new Error("The environment doesn't have sha512 function")}},precompute(i=8,n=hn.BASE){let s=n.equals(hn.BASE)?n:new hn(n.x,n.y);return s._setWindowSize(i),s.multiply(ya),s}};var qa=class{_key;pk;ownerLength=Rr[2].pubLength;signatureLength=Rr[2].sigLength;_publicKey;get publicKey(){return this._publicKey}signatureType=2;constructor(n,s){this._key=n,this.pk=s}get key(){throw new Error("You must implement `key`")}sign(n){return JB(at.from(n),at.from(this.key))}static async verify(n,s,c){let a=n;return typeof n=="string"&&(a=YB.default.toBuffer(n)),Uh(at.from(c),at.from(s),at.from(a))}};var MCe=me(Me(),1);xe();_e();var i7e=me(Me(),1);xe();_e();var b4e=me(Me(),1);xe();_e();var h4e=me(Me(),1);xe();_e();var ui=me(vs(),1);var O8e=me(Me(),1);xe();_e();var P8e=me(Me());xe();_e();var Fd={},hI=!1;function Ree(){if(hI)return Fd;hI=!0,Fd.byteLength=y,Fd.toByteArray=w,Fd.fromByteArray=x;for(var i=[],n=[],s=typeof Uint8Array<"u"?Uint8Array:Array,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,d=c.length;a<d;++a)i[a]=c[a],n[c.charCodeAt(a)]=a;n[45]=62,n[95]=63;function v(S){var I=S.length;if(I%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var R=S.indexOf("=");R===-1&&(R=I);var N=R===I?0:4-R%4;return[R,N]}function y(S){var I=v(S),R=I[0],N=I[1];return(R+N)*3/4-N}function M(S,I,R){return(I+R)*3/4-R}function w(S){var I,R=v(S),N=R[0],P=R[1],L=new s(M(S,N,P)),D=0,Z=P>0?N-4:N,W;for(W=0;W<Z;W+=4)I=n[S.charCodeAt(W)]<<18|n[S.charCodeAt(W+1)]<<12|n[S.charCodeAt(W+2)]<<6|n[S.charCodeAt(W+3)],L[D++]=I>>16&255,L[D++]=I>>8&255,L[D++]=I&255;return P===2&&(I=n[S.charCodeAt(W)]<<2|n[S.charCodeAt(W+1)]>>4,L[D++]=I&255),P===1&&(I=n[S.charCodeAt(W)]<<10|n[S.charCodeAt(W+1)]<<4|n[S.charCodeAt(W+2)]>>2,L[D++]=I>>8&255,L[D++]=I&255),L}function b(S){return i[S>>18&63]+i[S>>12&63]+i[S>>6&63]+i[S&63]}function _(S,I,R){for(var N,P=[],L=I;L<R;L+=3)N=(S[L]<<16&16711680)+(S[L+1]<<8&65280)+(S[L+2]&255),P.push(b(N));return P.join("")}function x(S){for(var I,R=S.length,N=R%3,P=[],L=16383,D=0,Z=R-N;D<Z;D+=L)P.push(_(S,D,D+L>Z?Z:D+L));return N===1?(I=S[R-1],P.push(i[I>>2]+i[I<<4&63]+"==")):N===2&&(I=(S[R-2]<<8)+S[R-1],P.push(i[I>>10]+i[I>>4&63]+i[I<<2&63]+"=")),P.join("")}return Fd}var yv={},uI=!1;function Tee(){return uI||(uI=!0,yv.read=function(i,n,s,c,a){var d,v,y=a*8-c-1,M=(1<<y)-1,w=M>>1,b=-7,_=s?a-1:0,x=s?-1:1,S=i[n+_];for(_+=x,d=S&(1<<-b)-1,S>>=-b,b+=y;b>0;d=d*256+i[n+_],_+=x,b-=8);for(v=d&(1<<-b)-1,d>>=-b,b+=c;b>0;v=v*256+i[n+_],_+=x,b-=8);if(d===0)d=1-w;else{if(d===M)return v?NaN:(S?-1:1)*(1/0);v=v+Math.pow(2,c),d=d-w}return(S?-1:1)*v*Math.pow(2,d-c)},yv.write=function(i,n,s,c,a,d){var v,y,M,w=d*8-a-1,b=(1<<w)-1,_=b>>1,x=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=c?0:d-1,I=c?1:-1,R=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(y=isNaN(n)?1:0,v=b):(v=Math.floor(Math.log(n)/Math.LN2),n*(M=Math.pow(2,-v))<1&&(v--,M*=2),v+_>=1?n+=x/M:n+=x*Math.pow(2,1-_),n*M>=2&&(v++,M/=2),v+_>=b?(y=0,v=b):v+_>=1?(y=(n*M-1)*Math.pow(2,a),v=v+_):(y=n*Math.pow(2,_-1)*Math.pow(2,a),v=0));a>=8;i[s+S]=y&255,S+=I,y/=256,a-=8);for(v=v<<a|y,w+=a;w>0;i[s+S]=v&255,S+=I,v/=256,w-=8);i[s+S-I]|=R*128}),yv}var lu={},lI=!1;function En(){if(lI)return lu;lI=!0;let i=Ree(),n=Tee(),s=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;lu.Buffer=v,lu.SlowBuffer=P,lu.INSPECT_MAX_BYTES=50;let c=2147483647;lu.kMaxLength=c,v.TYPED_ARRAY_SUPPORT=a(),!v.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 a(){try{let $=new Uint8Array(1),A={foo:function(){return 42}};return Object.setPrototypeOf(A,Uint8Array.prototype),Object.setPrototypeOf($,A),$.foo()===42}catch{return!1}}Object.defineProperty(v.prototype,"parent",{enumerable:!0,get:function(){if(v.isBuffer(this))return this.buffer}}),Object.defineProperty(v.prototype,"offset",{enumerable:!0,get:function(){if(v.isBuffer(this))return this.byteOffset}});function d($){if($>c)throw new RangeError('The value "'+$+'" is invalid for option "size"');let A=new Uint8Array($);return Object.setPrototypeOf(A,v.prototype),A}function v($,A,T){if(typeof $=="number"){if(typeof A=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return b($)}return y($,A,T)}v.poolSize=8192;function y($,A,T){if(typeof $=="string")return _($,A);if(ArrayBuffer.isView($))return S($);if($==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof $);if(he($,ArrayBuffer)||$&&he($.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(he($,SharedArrayBuffer)||$&&he($.buffer,SharedArrayBuffer)))return I($,A,T);if(typeof $=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let C=$.valueOf&&$.valueOf();if(C!=null&&C!==$)return v.from(C,A,T);let H=R($);if(H)return H;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof $[Symbol.toPrimitive]=="function")return v.from($[Symbol.toPrimitive]("string"),A,T);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof $)}v.from=function($,A,T){return y($,A,T)},Object.setPrototypeOf(v.prototype,Uint8Array.prototype),Object.setPrototypeOf(v,Uint8Array);function M($){if(typeof $!="number")throw new TypeError('"size" argument must be of type number');if($<0)throw new RangeError('The value "'+$+'" is invalid for option "size"')}function w($,A,T){return M($),$<=0?d($):A!==void 0?typeof T=="string"?d($).fill(A,T):d($).fill(A):d($)}v.alloc=function($,A,T){return w($,A,T)};function b($){return M($),d($<0?0:N($)|0)}v.allocUnsafe=function($){return b($)},v.allocUnsafeSlow=function($){return b($)};function _($,A){if((typeof A!="string"||A==="")&&(A="utf8"),!v.isEncoding(A))throw new TypeError("Unknown encoding: "+A);let T=L($,A)|0,C=d(T),H=C.write($,A);return H!==T&&(C=C.slice(0,H)),C}function x($){let A=$.length<0?0:N($.length)|0,T=d(A);for(let C=0;C<A;C+=1)T[C]=$[C]&255;return T}function S($){if(he($,Uint8Array)){let A=new Uint8Array($);return I(A.buffer,A.byteOffset,A.byteLength)}return x($)}function I($,A,T){if(A<0||$.byteLength<A)throw new RangeError('"offset" is outside of buffer bounds');if($.byteLength<A+(T||0))throw new RangeError('"length" is outside of buffer bounds');let C;return A===void 0&&T===void 0?C=new Uint8Array($):T===void 0?C=new Uint8Array($,A):C=new Uint8Array($,A,T),Object.setPrototypeOf(C,v.prototype),C}function R($){if(v.isBuffer($)){let A=N($.length)|0,T=d(A);return T.length===0||$.copy(T,0,0,A),T}if($.length!==void 0)return typeof $.length!="number"||nt($.length)?d(0):x($);if($.type==="Buffer"&&Array.isArray($.data))return x($.data)}function N($){if($>=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return $|0}function P($){return+$!=$&&($=0),v.alloc(+$)}v.isBuffer=function(A){return A!=null&&A._isBuffer===!0&&A!==v.prototype},v.compare=function(A,T){if(he(A,Uint8Array)&&(A=v.from(A,A.offset,A.byteLength)),he(T,Uint8Array)&&(T=v.from(T,T.offset,T.byteLength)),!v.isBuffer(A)||!v.isBuffer(T))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(A===T)return 0;let C=A.length,H=T.length;for(let ne=0,J=Math.min(C,H);ne<J;++ne)if(A[ne]!==T[ne]){C=A[ne],H=T[ne];break}return C<H?-1:H<C?1:0},v.isEncoding=function(A){switch(String(A).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}},v.concat=function(A,T){if(!Array.isArray(A))throw new TypeError('"list" argument must be an Array of Buffers');if(A.length===0)return v.alloc(0);let C;if(T===void 0)for(T=0,C=0;C<A.length;++C)T+=A[C].length;let H=v.allocUnsafe(T),ne=0;for(C=0;C<A.length;++C){let J=A[C];if(he(J,Uint8Array))ne+J.length>H.length?(v.isBuffer(J)||(J=v.from(J)),J.copy(H,ne)):Uint8Array.prototype.set.call(H,J,ne);else if(v.isBuffer(J))J.copy(H,ne);else throw new TypeError('"list" argument must be an Array of Buffers');ne+=J.length}return H};function L($,A){if(v.isBuffer($))return $.length;if(ArrayBuffer.isView($)||he($,ArrayBuffer))return $.byteLength;if(typeof $!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof $);let T=$.length,C=arguments.length>2&&arguments[2]===!0;if(!C&&T===0)return 0;let H=!1;for(;;)switch(A){case"ascii":case"latin1":case"binary":return T;case"utf8":case"utf-8":return ge($).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T*2;case"hex":return T>>>1;case"base64":return we($).length;default:if(H)return C?-1:ge($).length;A=(""+A).toLowerCase(),H=!0}}v.byteLength=L;function D($,A,T){let C=!1;if((A===void 0||A<0)&&(A=0),A>this.length||((T===void 0||T>this.length)&&(T=this.length),T<=0)||(T>>>=0,A>>>=0,T<=A))return"";for($||($="utf8");;)switch($){case"hex":return l(this,A,T);case"utf8":case"utf-8":return o(this,A,T);case"ascii":return p(this,A,T);case"latin1":case"binary":return g(this,A,T);case"base64":return r(this,A,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t(this,A,T);default:if(C)throw new TypeError("Unknown encoding: "+$);$=($+"").toLowerCase(),C=!0}}v.prototype._isBuffer=!0;function Z($,A,T){let C=$[A];$[A]=$[T],$[T]=C}v.prototype.swap16=function(){let A=this.length;if(A%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let T=0;T<A;T+=2)Z(this,T,T+1);return this},v.prototype.swap32=function(){let A=this.length;if(A%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let T=0;T<A;T+=4)Z(this,T,T+3),Z(this,T+1,T+2);return this},v.prototype.swap64=function(){let A=this.length;if(A%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let T=0;T<A;T+=8)Z(this,T,T+7),Z(this,T+1,T+6),Z(this,T+2,T+5),Z(this,T+3,T+4);return this},v.prototype.toString=function(){let A=this.length;return A===0?"":arguments.length===0?o(this,0,A):D.apply(this,arguments)},v.prototype.toLocaleString=v.prototype.toString,v.prototype.equals=function(A){if(!v.isBuffer(A))throw new TypeError("Argument must be a Buffer");return this===A?!0:v.compare(this,A)===0},v.prototype.inspect=function(){let A="",T=lu.INSPECT_MAX_BYTES;return A=this.toString("hex",0,T).replace(/(.{2})/g,"$1 ").trim(),this.length>T&&(A+=" ... "),"<Buffer "+A+">"},s&&(v.prototype[s]=v.prototype.inspect),v.prototype.compare=function(A,T,C,H,ne){if(he(A,Uint8Array)&&(A=v.from(A,A.offset,A.byteLength)),!v.isBuffer(A))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof A);if(T===void 0&&(T=0),C===void 0&&(C=A?A.length:0),H===void 0&&(H=0),ne===void 0&&(ne=this.length),T<0||C>A.length||H<0||ne>this.length)throw new RangeError("out of range index");if(H>=ne&&T>=C)return 0;if(H>=ne)return-1;if(T>=C)return 1;if(T>>>=0,C>>>=0,H>>>=0,ne>>>=0,this===A)return 0;let J=ne-H,ce=C-T,ft=Math.min(J,ce),le=this.slice(H,ne),ve=A.slice(T,C);for(let st=0;st<ft;++st)if(le[st]!==ve[st]){J=le[st],ce=ve[st];break}return J<ce?-1:ce<J?1:0};function W($,A,T,C,H){if($.length===0)return-1;if(typeof T=="string"?(C=T,T=0):T>2147483647?T=2147483647:T<-2147483648&&(T=-2147483648),T=+T,nt(T)&&(T=H?0:$.length-1),T<0&&(T=$.length+T),T>=$.length){if(H)return-1;T=$.length-1}else if(T<0)if(H)T=0;else return-1;if(typeof A=="string"&&(A=v.from(A,C)),v.isBuffer(A))return A.length===0?-1:Q($,A,T,C,H);if(typeof A=="number")return A=A&255,typeof Uint8Array.prototype.indexOf=="function"?H?Uint8Array.prototype.indexOf.call($,A,T):Uint8Array.prototype.lastIndexOf.call($,A,T):Q($,[A],T,C,H);throw new TypeError("val must be string, number or Buffer")}function Q($,A,T,C,H){let ne=1,J=$.length,ce=A.length;if(C!==void 0&&(C=String(C).toLowerCase(),C==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if($.length<2||A.length<2)return-1;ne=2,J/=2,ce/=2,T/=2}function ft(ve,st){return ne===1?ve[st]:ve.readUInt16BE(st*ne)}let le;if(H){let ve=-1;for(le=T;le<J;le++)if(ft($,le)===ft(A,ve===-1?0:le-ve)){if(ve===-1&&(ve=le),le-ve+1===ce)return ve*ne}else ve!==-1&&(le-=le-ve),ve=-1}else for(T+ce>J&&(T=J-ce),le=T;le>=0;le--){let ve=!0;for(let st=0;st<ce;st++)if(ft($,le+st)!==ft(A,st)){ve=!1;break}if(ve)return le}return-1}v.prototype.includes=function(A,T,C){return this.indexOf(A,T,C)!==-1},v.prototype.indexOf=function(A,T,C){return W(this,A,T,C,!0)},v.prototype.lastIndexOf=function(A,T,C){return W(this,A,T,C,!1)};function K($,A,T,C){T=Number(T)||0;let H=$.length-T;C?(C=Number(C),C>H&&(C=H)):C=H;let ne=A.length;C>ne/2&&(C=ne/2);let J;for(J=0;J<C;++J){let ce=parseInt(A.substr(J*2,2),16);if(nt(ce))return J;$[T+J]=ce}return J}function F($,A,T,C){return fe(ge(A,$.length-T),$,T,C)}function Y($,A,T,C){return fe(re(A),$,T,C)}function m($,A,T,C){return fe(we(A),$,T,C)}function e($,A,T,C){return fe(ae(A,$.length-T),$,T,C)}v.prototype.write=function(A,T,C,H){if(T===void 0)H="utf8",C=this.length,T=0;else if(C===void 0&&typeof T=="string")H=T,C=this.length,T=0;else if(isFinite(T))T=T>>>0,isFinite(C)?(C=C>>>0,H===void 0&&(H="utf8")):(H=C,C=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let ne=this.length-T;if((C===void 0||C>ne)&&(C=ne),A.length>0&&(C<0||T<0)||T>this.length)throw new RangeError("Attempt to write outside buffer bounds");H||(H="utf8");let J=!1;for(;;)switch(H){case"hex":return K(this,A,T,C);case"utf8":case"utf-8":return F(this,A,T,C);case"ascii":case"latin1":case"binary":return Y(this,A,T,C);case"base64":return m(this,A,T,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e(this,A,T,C);default:if(J)throw new TypeError("Unknown encoding: "+H);H=(""+H).toLowerCase(),J=!0}},v.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function r($,A,T){return A===0&&T===$.length?i.fromByteArray($):i.fromByteArray($.slice(A,T))}function o($,A,T){T=Math.min($.length,T);let C=[],H=A;for(;H<T;){let ne=$[H],J=null,ce=ne>239?4:ne>223?3:ne>191?2:1;if(H+ce<=T){let ft,le,ve,st;switch(ce){case 1:ne<128&&(J=ne);break;case 2:ft=$[H+1],(ft&192)===128&&(st=(ne&31)<<6|ft&63,st>127&&(J=st));break;case 3:ft=$[H+1],le=$[H+2],(ft&192)===128&&(le&192)===128&&(st=(ne&15)<<12|(ft&63)<<6|le&63,st>2047&&(st<55296||st>57343)&&(J=st));break;case 4:ft=$[H+1],le=$[H+2],ve=$[H+3],(ft&192)===128&&(le&192)===128&&(ve&192)===128&&(st=(ne&15)<<18|(ft&63)<<12|(le&63)<<6|ve&63,st>65535&&st<1114112&&(J=st))}}J===null?(J=65533,ce=1):J>65535&&(J-=65536,C.push(J>>>10&1023|55296),J=56320|J&1023),C.push(J),H+=ce}return h(C)}let f=4096;function h($){let A=$.length;if(A<=f)return String.fromCharCode.apply(String,$);let T="",C=0;for(;C<A;)T+=String.fromCharCode.apply(String,$.slice(C,C+=f));return T}function p($,A,T){let C="";T=Math.min($.length,T);for(let H=A;H<T;++H)C+=String.fromCharCode($[H]&127);return C}function g($,A,T){let C="";T=Math.min($.length,T);for(let H=A;H<T;++H)C+=String.fromCharCode($[H]);return C}function l($,A,T){let C=$.length;(!A||A<0)&&(A=0),(!T||T<0||T>C)&&(T=C);let H="";for(let ne=A;ne<T;++ne)H+=de[$[ne]];return H}function t($,A,T){let C=$.slice(A,T),H="";for(let ne=0;ne<C.length-1;ne+=2)H+=String.fromCharCode(C[ne]+C[ne+1]*256);return H}v.prototype.slice=function(A,T){let C=this.length;A=~~A,T=T===void 0?C:~~T,A<0?(A+=C,A<0&&(A=0)):A>C&&(A=C),T<0?(T+=C,T<0&&(T=0)):T>C&&(T=C),T<A&&(T=A);let H=this.subarray(A,T);return Object.setPrototypeOf(H,v.prototype),H};function u($,A,T){if($%1!==0||$<0)throw new RangeError("offset is not uint");if($+A>T)throw new RangeError("Trying to access beyond buffer length")}v.prototype.readUintLE=v.prototype.readUIntLE=function(A,T,C){A=A>>>0,T=T>>>0,C||u(A,T,this.length);let H=this[A],ne=1,J=0;for(;++J<T&&(ne*=256);)H+=this[A+J]*ne;return H},v.prototype.readUintBE=v.prototype.readUIntBE=function(A,T,C){A=A>>>0,T=T>>>0,C||u(A,T,this.length);let H=this[A+--T],ne=1;for(;T>0&&(ne*=256);)H+=this[A+--T]*ne;return H},v.prototype.readUint8=v.prototype.readUInt8=function(A,T){return A=A>>>0,T||u(A,1,this.length),this[A]},v.prototype.readUint16LE=v.prototype.readUInt16LE=function(A,T){return A=A>>>0,T||u(A,2,this.length),this[A]|this[A+1]<<8},v.prototype.readUint16BE=v.prototype.readUInt16BE=function(A,T){return A=A>>>0,T||u(A,2,this.length),this[A]<<8|this[A+1]},v.prototype.readUint32LE=v.prototype.readUInt32LE=function(A,T){return A=A>>>0,T||u(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+this[A+3]*16777216},v.prototype.readUint32BE=v.prototype.readUInt32BE=function(A,T){return A=A>>>0,T||u(A,4,this.length),this[A]*16777216+(this[A+1]<<16|this[A+2]<<8|this[A+3])},v.prototype.readBigUInt64LE=be(function(A){A=A>>>0,j(A,"offset");let T=this[A],C=this[A+7];(T===void 0||C===void 0)&&V(A,this.length-8);let H=T+this[++A]*2**8+this[++A]*2**16+this[++A]*2**24,ne=this[++A]+this[++A]*2**8+this[++A]*2**16+C*2**24;return BigInt(H)+(BigInt(ne)<<BigInt(32))}),v.prototype.readBigUInt64BE=be(function(A){A=A>>>0,j(A,"offset");let T=this[A],C=this[A+7];(T===void 0||C===void 0)&&V(A,this.length-8);let H=T*2**24+this[++A]*2**16+this[++A]*2**8+this[++A],ne=this[++A]*2**24+this[++A]*2**16+this[++A]*2**8+C;return(BigInt(H)<<BigInt(32))+BigInt(ne)}),v.prototype.readIntLE=function(A,T,C){A=A>>>0,T=T>>>0,C||u(A,T,this.length);let H=this[A],ne=1,J=0;for(;++J<T&&(ne*=256);)H+=this[A+J]*ne;return ne*=128,H>=ne&&(H-=Math.pow(2,8*T)),H},v.prototype.readIntBE=function(A,T,C){A=A>>>0,T=T>>>0,C||u(A,T,this.length);let H=T,ne=1,J=this[A+--H];for(;H>0&&(ne*=256);)J+=this[A+--H]*ne;return ne*=128,J>=ne&&(J-=Math.pow(2,8*T)),J},v.prototype.readInt8=function(A,T){return A=A>>>0,T||u(A,1,this.length),this[A]&128?(255-this[A]+1)*-1:this[A]},v.prototype.readInt16LE=function(A,T){A=A>>>0,T||u(A,2,this.length);let C=this[A]|this[A+1]<<8;return C&32768?C|4294901760:C},v.prototype.readInt16BE=function(A,T){A=A>>>0,T||u(A,2,this.length);let C=this[A+1]|this[A]<<8;return C&32768?C|4294901760:C},v.prototype.readInt32LE=function(A,T){return A=A>>>0,T||u(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},v.prototype.readInt32BE=function(A,T){return A=A>>>0,T||u(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},v.prototype.readBigInt64LE=be(function(A){A=A>>>0,j(A,"offset");let T=this[A],C=this[A+7];(T===void 0||C===void 0)&&V(A,this.length-8);let H=this[A+4]+this[A+5]*2**8+this[A+6]*2**16+(C<<24);return(BigInt(H)<<BigInt(32))+BigInt(T+this[++A]*2**8+this[++A]*2**16+this[++A]*2**24)}),v.prototype.readBigInt64BE=be(function(A){A=A>>>0,j(A,"offset");let T=this[A],C=this[A+7];(T===void 0||C===void 0)&&V(A,this.length-8);let H=(T<<24)+this[++A]*2**16+this[++A]*2**8+this[++A];return(BigInt(H)<<BigInt(32))+BigInt(this[++A]*2**24+this[++A]*2**16+this[++A]*2**8+C)}),v.prototype.readFloatLE=function(A,T){return A=A>>>0,T||u(A,4,this.length),n.read(this,A,!0,23,4)},v.prototype.readFloatBE=function(A,T){return A=A>>>0,T||u(A,4,this.length),n.read(this,A,!1,23,4)},v.prototype.readDoubleLE=function(A,T){return A=A>>>0,T||u(A,8,this.length),n.read(this,A,!0,52,8)},v.prototype.readDoubleBE=function(A,T){return A=A>>>0,T||u(A,8,this.length),n.read(this,A,!1,52,8)};function E($,A,T,C,H,ne){if(!v.isBuffer($))throw new TypeError('"buffer" argument must be a Buffer instance');if(A>H||A<ne)throw new RangeError('"value" argument is out of bounds');if(T+C>$.length)throw new RangeError("Index out of range")}v.prototype.writeUintLE=v.prototype.writeUIntLE=function(A,T,C,H){if(A=+A,T=T>>>0,C=C>>>0,!H){let ce=Math.pow(2,8*C)-1;E(this,A,T,C,ce,0)}let ne=1,J=0;for(this[T]=A&255;++J<C&&(ne*=256);)this[T+J]=A/ne&255;return T+C},v.prototype.writeUintBE=v.prototype.writeUIntBE=function(A,T,C,H){if(A=+A,T=T>>>0,C=C>>>0,!H){let ce=Math.pow(2,8*C)-1;E(this,A,T,C,ce,0)}let ne=C-1,J=1;for(this[T+ne]=A&255;--ne>=0&&(J*=256);)this[T+ne]=A/J&255;return T+C},v.prototype.writeUint8=v.prototype.writeUInt8=function(A,T,C){return A=+A,T=T>>>0,C||E(this,A,T,1,255,0),this[T]=A&255,T+1},v.prototype.writeUint16LE=v.prototype.writeUInt16LE=function(A,T,C){return A=+A,T=T>>>0,C||E(this,A,T,2,65535,0),this[T]=A&255,this[T+1]=A>>>8,T+2},v.prototype.writeUint16BE=v.prototype.writeUInt16BE=function(A,T,C){return A=+A,T=T>>>0,C||E(this,A,T,2,65535,0),this[T]=A>>>8,this[T+1]=A&255,T+2},v.prototype.writeUint32LE=v.prototype.writeUInt32LE=function(A,T,C){return A=+A,T=T>>>0,C||E(this,A,T,4,4294967295,0),this[T+3]=A>>>24,this[T+2]=A>>>16,this[T+1]=A>>>8,this[T]=A&255,T+4},v.prototype.writeUint32BE=v.prototype.writeUInt32BE=function(A,T,C){return A=+A,T=T>>>0,C||E(this,A,T,4,4294967295,0),this[T]=A>>>24,this[T+1]=A>>>16,this[T+2]=A>>>8,this[T+3]=A&255,T+4};function B($,A,T,C,H){X(A,C,H,$,T,7);let ne=Number(A&BigInt(4294967295));$[T++]=ne,ne=ne>>8,$[T++]=ne,ne=ne>>8,$[T++]=ne,ne=ne>>8,$[T++]=ne;let J=Number(A>>BigInt(32)&BigInt(4294967295));return $[T++]=J,J=J>>8,$[T++]=J,J=J>>8,$[T++]=J,J=J>>8,$[T++]=J,T}function k($,A,T,C,H){X(A,C,H,$,T,7);let ne=Number(A&BigInt(4294967295));$[T+7]=ne,ne=ne>>8,$[T+6]=ne,ne=ne>>8,$[T+5]=ne,ne=ne>>8,$[T+4]=ne;let J=Number(A>>BigInt(32)&BigInt(4294967295));return $[T+3]=J,J=J>>8,$[T+2]=J,J=J>>8,$[T+1]=J,J=J>>8,$[T]=J,T+8}v.prototype.writeBigUInt64LE=be(function(A,T=0){return B(this,A,T,BigInt(0),BigInt("0xffffffffffffffff"))}),v.prototype.writeBigUInt64BE=be(function(A,T=0){return k(this,A,T,BigInt(0),BigInt("0xffffffffffffffff"))}),v.prototype.writeIntLE=function(A,T,C,H){if(A=+A,T=T>>>0,!H){let ft=Math.pow(2,8*C-1);E(this,A,T,C,ft-1,-ft)}let ne=0,J=1,ce=0;for(this[T]=A&255;++ne<C&&(J*=256);)A<0&&ce===0&&this[T+ne-1]!==0&&(ce=1),this[T+ne]=(A/J>>0)-ce&255;return T+C},v.prototype.writeIntBE=function(A,T,C,H){if(A=+A,T=T>>>0,!H){let ft=Math.pow(2,8*C-1);E(this,A,T,C,ft-1,-ft)}let ne=C-1,J=1,ce=0;for(this[T+ne]=A&255;--ne>=0&&(J*=256);)A<0&&ce===0&&this[T+ne+1]!==0&&(ce=1),this[T+ne]=(A/J>>0)-ce&255;return T+C},v.prototype.writeInt8=function(A,T,C){return A=+A,T=T>>>0,C||E(this,A,T,1,127,-128),A<0&&(A=255+A+1),this[T]=A&255,T+1},v.prototype.writeInt16LE=function(A,T,C){return A=+A,T=T>>>0,C||E(this,A,T,2,32767,-32768),this[T]=A&255,this[T+1]=A>>>8,T+2},v.prototype.writeInt16BE=function(A,T,C){return A=+A,T=T>>>0,C||E(this,A,T,2,32767,-32768),this[T]=A>>>8,this[T+1]=A&255,T+2},v.prototype.writeInt32LE=function(A,T,C){return A=+A,T=T>>>0,C||E(this,A,T,4,2147483647,-2147483648),this[T]=A&255,this[T+1]=A>>>8,this[T+2]=A>>>16,this[T+3]=A>>>24,T+4},v.prototype.writeInt32BE=function(A,T,C){return A=+A,T=T>>>0,C||E(this,A,T,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[T]=A>>>24,this[T+1]=A>>>16,this[T+2]=A>>>8,this[T+3]=A&255,T+4},v.prototype.writeBigInt64LE=be(function(A,T=0){return B(this,A,T,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),v.prototype.writeBigInt64BE=be(function(A,T=0){return k(this,A,T,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function q($,A,T,C,H,ne){if(T+C>$.length)throw new RangeError("Index out of range");if(T<0)throw new RangeError("Index out of range")}function z($,A,T,C,H){return A=+A,T=T>>>0,H||q($,A,T,4),n.write($,A,T,C,23,4),T+4}v.prototype.writeFloatLE=function(A,T,C){return z(this,A,T,!0,C)},v.prototype.writeFloatBE=function(A,T,C){return z(this,A,T,!1,C)};function ee($,A,T,C,H){return A=+A,T=T>>>0,H||q($,A,T,8),n.write($,A,T,C,52,8),T+8}v.prototype.writeDoubleLE=function(A,T,C){return ee(this,A,T,!0,C)},v.prototype.writeDoubleBE=function(A,T,C){return ee(this,A,T,!1,C)},v.prototype.copy=function(A,T,C,H){if(!v.isBuffer(A))throw new TypeError("argument should be a Buffer");if(C||(C=0),!H&&H!==0&&(H=this.length),T>=A.length&&(T=A.length),T||(T=0),H>0&&H<C&&(H=C),H===C||A.length===0||this.length===0)return 0;if(T<0)throw new RangeError("targetStart out of bounds");if(C<0||C>=this.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("sourceEnd out of bounds");H>this.length&&(H=this.length),A.length-T<H-C&&(H=A.length-T+C);let ne=H-C;return this===A&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(T,C,H):Uint8Array.prototype.set.call(A,this.subarray(C,H),T),ne},v.prototype.fill=function(A,T,C,H){if(typeof A=="string"){if(typeof T=="string"?(H=T,T=0,C=this.length):typeof C=="string"&&(H=C,C=this.length),H!==void 0&&typeof H!="string")throw new TypeError("encoding must be a string");if(typeof H=="string"&&!v.isEncoding(H))throw new TypeError("Unknown encoding: "+H);if(A.length===1){let J=A.charCodeAt(0);(H==="utf8"&&J<128||H==="latin1")&&(A=J)}}else typeof A=="number"?A=A&255:typeof A=="boolean"&&(A=Number(A));if(T<0||this.length<T||this.length<C)throw new RangeError("Out of range index");if(C<=T)return this;T=T>>>0,C=C===void 0?this.length:C>>>0,A||(A=0);let ne;if(typeof A=="number")for(ne=T;ne<C;++ne)this[ne]=A;else{let J=v.isBuffer(A)?A:v.from(A,H),ce=J.length;if(ce===0)throw new TypeError('The value "'+A+'" is invalid for argument "value"');for(ne=0;ne<C-T;++ne)this[ne+T]=J[ne%ce]}return this};let te={};function O($,A,T){te[$]=class extends T{constructor(){super(),Object.defineProperty(this,"message",{value:A.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${$}]`,this.stack,delete this.name}get code(){return $}set code(H){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:H,writable:!0})}toString(){return`${this.name} [${$}]: ${this.message}`}}}O("ERR_BUFFER_OUT_OF_BOUNDS",function($){return $?`${$} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),O("ERR_INVALID_ARG_TYPE",function($,A){return`The "${$}" argument must be of type number. Received type ${typeof A}`},TypeError),O("ERR_OUT_OF_RANGE",function($,A,T){let C=`The value of "${$}" is out of range.`,H=T;return Number.isInteger(T)&&Math.abs(T)>2**32?H=U(String(T)):typeof T=="bigint"&&(H=String(T),(T>BigInt(2)**BigInt(32)||T<-(BigInt(2)**BigInt(32)))&&(H=U(H)),H+="n"),C+=` It must be ${A}. Received ${H}`,C},RangeError);function U($){let A="",T=$.length,C=$[0]==="-"?1:0;for(;T>=C+4;T-=3)A=`_${$.slice(T-3,T)}${A}`;return`${$.slice(0,T)}${A}`}function oe($,A,T){j(A,"offset"),($[A]===void 0||$[A+T]===void 0)&&V(A,$.length-(T+1))}function X($,A,T,C,H,ne){if($>T||$<A){let J=typeof A=="bigint"?"n":"",ce;throw A===0||A===BigInt(0)?ce=`>= 0${J} and < 2${J} ** ${(ne+1)*8}${J}`:ce=`>= -(2${J} ** ${(ne+1)*8-1}${J}) and < 2 ** ${(ne+1)*8-1}${J}`,new te.ERR_OUT_OF_RANGE("value",ce,$)}oe(C,H,ne)}function j($,A){if(typeof $!="number")throw new te.ERR_INVALID_ARG_TYPE(A,"number",$)}function V($,A,T){throw Math.floor($)!==$?(j($,T),new te.ERR_OUT_OF_RANGE("offset","an integer",$)):A<0?new te.ERR_BUFFER_OUT_OF_BOUNDS:new te.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${A}`,$)}let G=/[^+/0-9A-Za-z-_]/g;function ie($){if($=$.split("=")[0],$=$.trim().replace(G,""),$.length<2)return"";for(;$.length%4!==0;)$=$+"=";return $}function ge($,A){A=A||1/0;let T,C=$.length,H=null,ne=[];for(let J=0;J<C;++J){if(T=$.charCodeAt(J),T>55295&&T<57344){if(!H){if(T>56319){(A-=3)>-1&&ne.push(239,191,189);continue}else if(J+1===C){(A-=3)>-1&&ne.push(239,191,189);continue}H=T;continue}if(T<56320){(A-=3)>-1&&ne.push(239,191,189),H=T;continue}T=(H-55296<<10|T-56320)+65536}else H&&(A-=3)>-1&&ne.push(239,191,189);if(H=null,T<128){if((A-=1)<0)break;ne.push(T)}else if(T<2048){if((A-=2)<0)break;ne.push(T>>6|192,T&63|128)}else if(T<65536){if((A-=3)<0)break;ne.push(T>>12|224,T>>6&63|128,T&63|128)}else if(T<1114112){if((A-=4)<0)break;ne.push(T>>18|240,T>>12&63|128,T>>6&63|128,T&63|128)}else throw new Error("Invalid code point")}return ne}function re($){let A=[];for(let T=0;T<$.length;++T)A.push($.charCodeAt(T)&255);return A}function ae($,A){let T,C,H,ne=[];for(let J=0;J<$.length&&!((A-=2)<0);++J)T=$.charCodeAt(J),C=T>>8,H=T%256,ne.push(H),ne.push(C);return ne}function we($){return i.toByteArray(ie($))}function fe($,A,T,C){let H;for(H=0;H<C&&!(H+T>=A.length||H>=$.length);++H)A[H+T]=$[H];return H}function he($,A){return $ instanceof A||$!=null&&$.constructor!=null&&$.constructor.name!=null&&$.constructor.name===A.name}function nt($){return $!==$}let de=function(){let $="0123456789abcdef",A=new Array(256);for(let T=0;T<16;++T){let C=T*16;for(let H=0;H<16;++H)A[C+H]=$[T]+$[H]}return A}();function be($){return typeof BigInt>"u"?ut:$}function ut(){throw new Error("BigInt not supported")}return lu}var Hd={},cI=!1;function wr(){if(cI)return Hd;cI=!0;var i=En(),n=i.Buffer;function s(a,d){for(var v in a)d[v]=a[v]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?Hd=i:(s(i,Hd),Hd.Buffer=c);function c(a,d,v){return n(a,d,v)}return c.prototype=Object.create(n.prototype),s(n,c),c.from=function(a,d,v){if(typeof a=="number")throw new TypeError("Argument must not be a number");return n(a,d,v)},c.alloc=function(a,d,v){if(typeof a!="number")throw new TypeError("Argument must be a number");var y=n(a);return d!==void 0?typeof v=="string"?y.fill(d,v):y.fill(d):y.fill(0),y},c.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n(a)},c.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return i.SlowBuffer(a)},Hd}var z3={},dI=!1;function kee(){if(dI)return z3;dI=!0;var i=wr().Buffer,n=i.isEncoding||function(P){switch(P=""+P,P&&P.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 s(P){if(!P)return"utf8";for(var L;;)switch(P){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 P;default:if(L)return;P=(""+P).toLowerCase(),L=!0}}function c(P){var L=s(P);if(typeof L!="string"&&(i.isEncoding===n||!n(P)))throw new Error("Unknown encoding: "+P);return L||P}z3.StringDecoder=a;function a(P){this.encoding=c(P);var L;switch(this.encoding){case"utf16le":this.text=_,this.end=x,L=4;break;case"utf8":this.fillLast=M,L=4;break;case"base64":this.text=S,this.end=I,L=3;break;default:this.write=R,this.end=N;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(L)}a.prototype.write=function(P){if(P.length===0)return"";var L,D;if(this.lastNeed){if(L=this.fillLast(P),L===void 0)return"";D=this.lastNeed,this.lastNeed=0}else D=0;return D<P.length?L?L+this.text(P,D):this.text(P,D):L||""},a.prototype.end=b,a.prototype.text=w,a.prototype.fillLast=function(P){if(this.lastNeed<=P.length)return P.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);P.copy(this.lastChar,this.lastTotal-this.lastNeed,0,P.length),this.lastNeed-=P.length};function d(P){return P<=127?0:P>>5===6?2:P>>4===14?3:P>>3===30?4:P>>6===2?-1:-2}function v(P,L,D){var Z=L.length-1;if(Z<D)return 0;var W=d(L[Z]);return W>=0?(W>0&&(P.lastNeed=W-1),W):--Z<D||W===-2?0:(W=d(L[Z]),W>=0?(W>0&&(P.lastNeed=W-2),W):--Z<D||W===-2?0:(W=d(L[Z]),W>=0?(W>0&&(W===2?W=0:P.lastNeed=W-3),W):0))}function y(P,L,D){if((L[0]&192)!==128)return P.lastNeed=0,"\uFFFD";if(P.lastNeed>1&&L.length>1){if((L[1]&192)!==128)return P.lastNeed=1,"\uFFFD";if(P.lastNeed>2&&L.length>2&&(L[2]&192)!==128)return P.lastNeed=2,"\uFFFD"}}function M(P){var L=this.lastTotal-this.lastNeed,D=y(this,P);if(D!==void 0)return D;if(this.lastNeed<=P.length)return P.copy(this.lastChar,L,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);P.copy(this.lastChar,L,0,P.length),this.lastNeed-=P.length}function w(P,L){var D=v(this,P,L);if(!this.lastNeed)return P.toString("utf8",L);this.lastTotal=D;var Z=P.length-(D-this.lastNeed);return P.copy(this.lastChar,0,Z),P.toString("utf8",L,Z)}function b(P){var L=P&&P.length?this.write(P):"";return this.lastNeed?L+"\uFFFD":L}function _(P,L){if((P.length-L)%2===0){var D=P.toString("utf16le",L);if(D){var Z=D.charCodeAt(D.length-1);if(Z>=55296&&Z<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=P[P.length-2],this.lastChar[1]=P[P.length-1],D.slice(0,-1)}return D}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=P[P.length-1],P.toString("utf16le",L,P.length-1)}function x(P){var L=P&&P.length?this.write(P):"";if(this.lastNeed){var D=this.lastTotal-this.lastNeed;return L+this.lastChar.toString("utf16le",0,D)}return L}function S(P,L){var D=(P.length-L)%3;return D===0?P.toString("base64",L):(this.lastNeed=3-D,this.lastTotal=3,D===1?this.lastChar[0]=P[P.length-1]:(this.lastChar[0]=P[P.length-2],this.lastChar[1]=P[P.length-1]),P.toString("base64",L,P.length-D))}function I(P){var L=P&&P.length?this.write(P):"";return this.lastNeed?L+this.lastChar.toString("base64",0,3-this.lastNeed):L}function R(P){return P.toString(this.encoding)}function N(P){return P&&P.length?this.write(P):""}return z3}var h6=kee();h6.StringDecoder;var Dge=h6.StringDecoder;function VM(i){throw new Error("Node.js process "+i+" is not supported by JSPM core outside of Node.js")}var rh=[],bc=!1,Fu,D2=-1;function Pee(){!bc||!Fu||(bc=!1,Fu.length?rh=Fu.concat(rh):D2=-1,rh.length&&uq())}function uq(){if(!bc){var i=setTimeout(Pee,0);bc=!0;for(var n=rh.length;n;){for(Fu=rh,rh=[];++D2<n;)Fu&&Fu[D2].run();D2=-1,n=rh.length}Fu=null,bc=!1,clearTimeout(i)}}function $ee(i){var n=new Array(arguments.length-1);if(arguments.length>1)for(var s=1;s<arguments.length;s++)n[s-1]=arguments[s];rh.push(new lq(i,n)),rh.length===1&&!bc&&setTimeout(uq,0)}function lq(i,n){this.fun=i,this.array=n}lq.prototype.run=function(){this.fun.apply(null,this.array)};var Nee="browser",Cee="x64",Lee="browser",Dee={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},Oee=["/usr/bin/node"],qee=[],Uee="v16.8.0",zee={},Fee=function(i,n){console.warn((n?n+": ":"")+i)},Hee=function(i){VM("binding")},Kee=function(i){return 0},jee=function(){return"/"},Wee=function(i){},Zee={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};function la(){}var Gee=la,Vee=[];function Jee(i){VM("_linkedBinding")}var Yee={},Xee=!1,Qee={};function ete(i){VM("dlopen")}function tte(){return[]}function rte(){return[]}var ite=la,nte=la,JM=function(){return{}},ate=JM,ote=JM,ste=la,fte=la,hte=la,ute={};function lte(i,n){if(!i)throw new Error(n||"assertion error")}var cte={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},dte=la,pte=la;function vte(){return!1}var mte=la,bte=la,gte=la,yte=la,wte=la,Mte=void 0,_te=void 0,xte=void 0,Ste=la,Ete=2,Ate=1,Bte="/bin/usr/node",Ite=9229,Rte="node",Tte=[],kte=la,p0={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};p0.now===void 0&&(F3=Date.now(),p0.timing&&p0.timing.navigationStart&&(F3=p0.timing.navigationStart),p0.now=()=>Date.now()-F3);var F3;function Pte(){return p0.now()/1e3}var cM=1e9;function dM(i){var n=Math.floor((Date.now()-p0.now())*.001),s=p0.now()*.001,c=Math.floor(s)+n,a=Math.floor(s%1*1e9);return i&&(c=c-i[0],a=a-i[1],a<0&&(c--,a+=cM)),[c,a]}dM.bigint=function(i){var n=dM(i);return typeof BigInt>"u"?n[0]*cM+n[1]:BigInt(n[0]*cM)+BigInt(n[1])};var $te=10,Nte={},Cte=0;function g0(){return il}var Lte=g0,Dte=g0,Ote=g0,qte=g0,Ute=g0,zte=la,Fte=g0,Hte=g0;function Kte(i){return[]}var il={version:Uee,versions:zee,arch:Cee,platform:Lee,release:Zee,_rawDebug:Gee,moduleLoadList:Vee,binding:Hee,_linkedBinding:Jee,_events:Nte,_eventsCount:Cte,_maxListeners:$te,on:g0,addListener:Lte,once:Dte,off:Ote,removeListener:qte,removeAllListeners:Ute,emit:zte,prependListener:Fte,prependOnceListener:Hte,listeners:Kte,domain:Yee,_exiting:Xee,config:Qee,dlopen:ete,uptime:Pte,_getActiveRequests:tte,_getActiveHandles:rte,reallyExit:ite,_kill:nte,cpuUsage:JM,resourceUsage:ate,memoryUsage:ote,kill:ste,exit:fte,openStdin:hte,allowedNodeEnvironmentFlags:ute,assert:lte,features:cte,_fatalExceptions:dte,setUncaughtExceptionCaptureCallback:pte,hasUncaughtExceptionCaptureCallback:vte,emitWarning:Fee,nextTick:$ee,_tickCallback:mte,_debugProcess:bte,_debugEnd:gte,_startProfilerIdleNotifier:yte,_stopProfilerIdleNotifier:wte,stdout:Mte,stdin:xte,stderr:_te,abort:Ste,umask:Kee,chdir:Wee,cwd:jee,env:Dee,title:Nee,argv:Oee,execArgv:qee,pid:Ete,ppid:Ate,execPath:Bte,debugPort:Ite,hrtime:dM,argv0:Rte,_preload_modules:Tte,setSourceMapsEnabled:kte},wv={},pI=!1;function Sr(){return pI||(pI=!0,typeof Object.create=="function"?wv=function(n,s){s&&(n.super_=s,n.prototype=Object.create(s.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:wv=function(n,s){if(s){n.super_=s;var c=function(){};c.prototype=s.prototype,n.prototype=new c,n.prototype.constructor=n}}),wv}var cq,dq,gc=typeof Reflect=="object"?Reflect:null,vI=gc&&typeof gc.apply=="function"?gc.apply:function(i,n,s){return Function.prototype.apply.call(i,n,s)};dq=gc&&typeof gc.ownKeys=="function"?gc.ownKeys:Object.getOwnPropertySymbols?function(i){return Object.getOwnPropertyNames(i).concat(Object.getOwnPropertySymbols(i))}:function(i){return Object.getOwnPropertyNames(i)};var mI=Number.isNaN||function(i){return i!=i};function mi(){mi.init.call(this)}cq=mi,mi.EventEmitter=mi,mi.prototype._events=void 0,mi.prototype._eventsCount=0,mi.prototype._maxListeners=void 0;var bI=10;function O2(i){if(typeof i!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof i)}function pq(i){return i._maxListeners===void 0?mi.defaultMaxListeners:i._maxListeners}function gI(i,n,s,c){var a,d,v,y;if(O2(s),(d=i._events)===void 0?(d=i._events=Object.create(null),i._eventsCount=0):(d.newListener!==void 0&&(i.emit("newListener",n,s.listener?s.listener:s),d=i._events),v=d[n]),v===void 0)v=d[n]=s,++i._eventsCount;else if(typeof v=="function"?v=d[n]=c?[s,v]:[v,s]:c?v.unshift(s):v.push(s),(a=pq(i))>0&&v.length>a&&!v.warned){v.warned=!0;var M=new Error("Possible EventEmitter memory leak detected. "+v.length+" "+String(n)+" listeners added. Use emitter.setMaxListeners() to increase limit");M.name="MaxListenersExceededWarning",M.emitter=i,M.type=n,M.count=v.length,y=M,console&&console.warn&&console.warn(y)}return i}function jte(){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)}function yI(i,n,s){var c={fired:!1,wrapFn:void 0,target:i,type:n,listener:s},a=jte.bind(c);return a.listener=s,c.wrapFn=a,a}function wI(i,n,s){var c=i._events;if(c===void 0)return[];var a=c[n];return a===void 0?[]:typeof a=="function"?s?[a.listener||a]:[a]:s?function(d){for(var v=new Array(d.length),y=0;y<v.length;++y)v[y]=d[y].listener||d[y];return v}(a):vq(a,a.length)}function MI(i){var n=this._events;if(n!==void 0){var s=n[i];if(typeof s=="function")return 1;if(s!==void 0)return s.length}return 0}function vq(i,n){for(var s=new Array(n),c=0;c<n;++c)s[c]=i[c];return s}Object.defineProperty(mi,"defaultMaxListeners",{enumerable:!0,get:function(){return bI},set:function(i){if(typeof i!="number"||i<0||mI(i))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+i+".");bI=i}}),mi.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},mi.prototype.setMaxListeners=function(i){if(typeof i!="number"||i<0||mI(i))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+i+".");return this._maxListeners=i,this},mi.prototype.getMaxListeners=function(){return pq(this)},mi.prototype.emit=function(i){for(var n=[],s=1;s<arguments.length;s++)n.push(arguments[s]);var c=i==="error",a=this._events;if(a!==void 0)c=c&&a.error===void 0;else if(!c)return!1;if(c){var d;if(n.length>0&&(d=n[0]),d instanceof Error)throw d;var v=new Error("Unhandled error."+(d?" ("+d.message+")":""));throw v.context=d,v}var y=a[i];if(y===void 0)return!1;if(typeof y=="function")vI(y,this,n);else{var M=y.length,w=vq(y,M);for(s=0;s<M;++s)vI(w[s],this,n)}return!0},mi.prototype.addListener=function(i,n){return gI(this,i,n,!1)},mi.prototype.on=mi.prototype.addListener,mi.prototype.prependListener=function(i,n){return gI(this,i,n,!0)},mi.prototype.once=function(i,n){return O2(n),this.on(i,yI(this,i,n)),this},mi.prototype.prependOnceListener=function(i,n){return O2(n),this.prependListener(i,yI(this,i,n)),this},mi.prototype.removeListener=function(i,n){var s,c,a,d,v;if(O2(n),(c=this._events)===void 0)return this;if((s=c[i])===void 0)return this;if(s===n||s.listener===n)--this._eventsCount==0?this._events=Object.create(null):(delete c[i],c.removeListener&&this.emit("removeListener",i,s.listener||n));else if(typeof s!="function"){for(a=-1,d=s.length-1;d>=0;d--)if(s[d]===n||s[d].listener===n){v=s[d].listener,a=d;break}if(a<0)return this;a===0?s.shift():function(y,M){for(;M+1<y.length;M++)y[M]=y[M+1];y.pop()}(s,a),s.length===1&&(c[i]=s[0]),c.removeListener!==void 0&&this.emit("removeListener",i,v||n)}return this},mi.prototype.off=mi.prototype.removeListener,mi.prototype.removeAllListeners=function(i){var n,s,c;if((s=this._events)===void 0)return this;if(s.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):s[i]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete s[i]),this;if(arguments.length===0){var a,d=Object.keys(s);for(c=0;c<d.length;++c)(a=d[c])!=="removeListener"&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(n=s[i])=="function")this.removeListener(i,n);else if(n!==void 0)for(c=n.length-1;c>=0;c--)this.removeListener(i,n[c]);return this},mi.prototype.listeners=function(i){return wI(this,i,!0)},mi.prototype.rawListeners=function(i){return wI(this,i,!1)},mi.listenerCount=function(i,n){return typeof i.listenerCount=="function"?i.listenerCount(n):MI.call(i,n)},mi.prototype.listenerCount=MI,mi.prototype.eventNames=function(){return this._eventsCount>0?dq(this._events):[]};var Vi=cq;Vi.EventEmitter;Vi.defaultMaxListeners;Vi.init;Vi.listenerCount;Vi.EventEmitter;Vi.defaultMaxListeners;Vi.init;Vi.listenerCount;Vi.once=function(i,n){return new Promise((s,c)=>{function a(...v){d!==void 0&&i.removeListener("error",d),s(v)}let d;n!=="error"&&(d=v=>{i.removeListener(name,a),c(v)},i.once("error",d)),i.once(n,a)})};Vi.on=function(i,n){let s=[],c=[],a=null,d=!1,v={async next(){let w=s.shift();if(w)return createIterResult(w,!1);if(a){let b=Promise.reject(a);return a=null,b}return d?createIterResult(void 0,!0):new Promise((b,_)=>c.push({resolve:b,reject:_}))},async return(){i.removeListener(n,y),i.removeListener("error",M),d=!0;for(let w of c)w.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(w){a=w,i.removeListener(n,y),i.removeListener("error",M)},[Symbol.asyncIterator](){return this}};return i.on(n,y),i.on("error",M),v;function y(...w){let b=c.shift();b?b.resolve(createIterResult(w,!1)):s.push(w)}function M(w){d=!0;let b=c.shift();b?b.reject(w):a=w,v.return()}};var mq,Vf,Jf,xc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,rn=mq={};function pM(){throw new Error("setTimeout has not been defined")}function vM(){throw new Error("clearTimeout has not been defined")}function bq(i){if(Vf===setTimeout)return setTimeout(i,0);if((Vf===pM||!Vf)&&setTimeout)return Vf=setTimeout,setTimeout(i,0);try{return Vf(i,0)}catch{try{return Vf.call(null,i,0)}catch{return Vf.call(this||xc,i,0)}}}(function(){try{Vf=typeof setTimeout=="function"?setTimeout:pM}catch{Vf=pM}try{Jf=typeof clearTimeout=="function"?clearTimeout:vM}catch{Jf=vM}})();var Hu,ih=[],yc=!1,q2=-1;function Wte(){yc&&Hu&&(yc=!1,Hu.length?ih=Hu.concat(ih):q2=-1,ih.length&&gq())}function gq(){if(!yc){var i=bq(Wte);yc=!0;for(var n=ih.length;n;){for(Hu=ih,ih=[];++q2<n;)Hu&&Hu[q2].run();q2=-1,n=ih.length}Hu=null,yc=!1,function(s){if(Jf===clearTimeout)return clearTimeout(s);if((Jf===vM||!Jf)&&clearTimeout)return Jf=clearTimeout,clearTimeout(s);try{Jf(s)}catch{try{return Jf.call(null,s)}catch{return Jf.call(this||xc,s)}}}(i)}}function _I(i,n){(this||xc).fun=i,(this||xc).array=n}function Wf(){}rn.nextTick=function(i){var n=new Array(arguments.length-1);if(arguments.length>1)for(var s=1;s<arguments.length;s++)n[s-1]=arguments[s];ih.push(new _I(i,n)),ih.length!==1||yc||bq(gq)},_I.prototype.run=function(){(this||xc).fun.apply(null,(this||xc).array)},rn.title="browser",rn.browser=!0,rn.env={},rn.argv=[],rn.version="",rn.versions={},rn.on=Wf,rn.addListener=Wf,rn.once=Wf,rn.off=Wf,rn.removeListener=Wf,rn.removeAllListeners=Wf,rn.emit=Wf,rn.prependListener=Wf,rn.prependOnceListener=Wf,rn.listeners=function(i){return[]},rn.binding=function(i){throw new Error("process.binding is not supported")},rn.cwd=function(){return"/"},rn.chdir=function(i){throw new Error("process.chdir is not supported")},rn.umask=function(){return 0};var nr=mq;nr.addListener;nr.argv;nr.binding;nr.browser;nr.chdir;nr.cwd;nr.emit;nr.env;nr.listeners;nr.nextTick;nr.off;nr.on;nr.once;nr.prependListener;nr.prependOnceListener;nr.removeAllListeners;nr.removeListener;nr.title;nr.umask;nr.version;nr.versions;var Zte=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",mM=Object.prototype.toString,R6=function(i){return!(Zte&&i&&typeof i=="object"&&Symbol.toStringTag in i)&&mM.call(i)==="[object Arguments]"},yq=function(i){return!!R6(i)||i!==null&&typeof i=="object"&&typeof i.length=="number"&&i.length>=0&&mM.call(i)!=="[object Array]"&&mM.call(i.callee)==="[object Function]"},Gte=function(){return R6(arguments)}();R6.isLegacyArguments=yq;var Vte=Gte?R6:yq,Jte=Object.prototype.toString,Yte=Function.prototype.toString,Xte=/^\s*(?:function)?\*/,wq=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Mq=Object.getPrototypeOf,xI=function(){if(!wq)return!1;try{return Function("return function*() {}")()}catch{}}(),Qte=xI?Mq(xI):{},ere=function(i){return typeof i=="function"&&(!!Xte.test(Yte.call(i))||(wq?Mq(i)===Qte:Jte.call(i)==="[object GeneratorFunction]"))},pr=typeof Object.create=="function"?function(i,n){n&&(i.super_=n,i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}))}:function(i,n){if(n){i.super_=n;var s=function(){};s.prototype=n.prototype,i.prototype=new s,i.prototype.constructor=i}},_q=function(i){return i&&typeof i=="object"&&typeof i.copy=="function"&&typeof i.fill=="function"&&typeof i.readUInt8=="function"},Tr={},tre=_q,rre=Vte,ire=ere;function nl(i){return i.call.bind(i)}var xq=typeof BigInt<"u",YM=typeof Symbol<"u",Xa=YM&&Symbol.toStringTag!==void 0,$a=typeof Uint8Array<"u",nre=typeof ArrayBuffer<"u";if($a&&Xa)var are=Object.getPrototypeOf(Uint8Array.prototype),qo=nl(Object.getOwnPropertyDescriptor(are,Symbol.toStringTag).get);var Di=nl(Object.prototype.toString),ore=nl(Number.prototype.valueOf),sre=nl(String.prototype.valueOf),fre=nl(Boolean.prototype.valueOf);if(xq)var hre=nl(BigInt.prototype.valueOf);if(YM)var ure=nl(Symbol.prototype.valueOf);function U1(i,n){if(typeof i!="object")return!1;try{return n(i),!0}catch{return!1}}function SI(i){return $a&&Xa?qo(i)!==void 0:Sq(i)||Eq(i)||Aq(i)||Bq(i)||Iq(i)||Rq(i)||Tq(i)||kq(i)||Pq(i)||$q(i)||Nq(i)}function Sq(i){return $a&&Xa?qo(i)==="Uint8Array":Di(i)==="[object Uint8Array]"||tre(i)&&i.buffer!==void 0}function Eq(i){return $a&&Xa?qo(i)==="Uint8ClampedArray":Di(i)==="[object Uint8ClampedArray]"}function Aq(i){return $a&&Xa?qo(i)==="Uint16Array":Di(i)==="[object Uint16Array]"}function Bq(i){return $a&&Xa?qo(i)==="Uint32Array":Di(i)==="[object Uint32Array]"}function Iq(i){return $a&&Xa?qo(i)==="Int8Array":Di(i)==="[object Int8Array]"}function Rq(i){return $a&&Xa?qo(i)==="Int16Array":Di(i)==="[object Int16Array]"}function Tq(i){return $a&&Xa?qo(i)==="Int32Array":Di(i)==="[object Int32Array]"}function kq(i){return $a&&Xa?qo(i)==="Float32Array":Di(i)==="[object Float32Array]"}function Pq(i){return $a&&Xa?qo(i)==="Float64Array":Di(i)==="[object Float64Array]"}function $q(i){return $a&&Xa?qo(i)==="BigInt64Array":Di(i)==="[object BigInt64Array]"}function Nq(i){return $a&&Xa?qo(i)==="BigUint64Array":Di(i)==="[object BigUint64Array]"}function Mv(i){return Di(i)==="[object Map]"}function _v(i){return Di(i)==="[object Set]"}function xv(i){return Di(i)==="[object WeakMap]"}function H3(i){return Di(i)==="[object WeakSet]"}function u6(i){return Di(i)==="[object ArrayBuffer]"}function EI(i){return typeof ArrayBuffer<"u"&&(u6.working?u6(i):i instanceof ArrayBuffer)}function l6(i){return Di(i)==="[object DataView]"}function AI(i){return typeof DataView<"u"&&(l6.working?l6(i):i instanceof DataView)}function c6(i){return Di(i)==="[object SharedArrayBuffer]"}function BI(i){return typeof SharedArrayBuffer<"u"&&(c6.working?c6(i):i instanceof SharedArrayBuffer)}function II(i){return U1(i,ore)}function RI(i){return U1(i,sre)}function TI(i){return U1(i,fre)}function kI(i){return xq&&U1(i,hre)}function PI(i){return YM&&U1(i,ure)}Tr.isArgumentsObject=rre,Tr.isGeneratorFunction=ire,Tr.isPromise=function(i){return typeof Promise<"u"&&i instanceof Promise||i!==null&&typeof i=="object"&&typeof i.then=="function"&&typeof i.catch=="function"},Tr.isArrayBufferView=function(i){return nre&&ArrayBuffer.isView?ArrayBuffer.isView(i):SI(i)||AI(i)},Tr.isTypedArray=SI,Tr.isUint8Array=Sq,Tr.isUint8ClampedArray=Eq,Tr.isUint16Array=Aq,Tr.isUint32Array=Bq,Tr.isInt8Array=Iq,Tr.isInt16Array=Rq,Tr.isInt32Array=Tq,Tr.isFloat32Array=kq,Tr.isFloat64Array=Pq,Tr.isBigInt64Array=$q,Tr.isBigUint64Array=Nq,Mv.working=typeof Map<"u"&&Mv(new Map),Tr.isMap=function(i){return typeof Map<"u"&&(Mv.working?Mv(i):i instanceof Map)},_v.working=typeof Set<"u"&&_v(new Set),Tr.isSet=function(i){return typeof Set<"u"&&(_v.working?_v(i):i instanceof Set)},xv.working=typeof WeakMap<"u"&&xv(new WeakMap),Tr.isWeakMap=function(i){return typeof WeakMap<"u"&&(xv.working?xv(i):i instanceof WeakMap)},H3.working=typeof WeakSet<"u"&&H3(new WeakSet),Tr.isWeakSet=function(i){return H3(i)},u6.working=typeof ArrayBuffer<"u"&&u6(new ArrayBuffer),Tr.isArrayBuffer=EI,l6.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&l6(new DataView(new ArrayBuffer(1),0,1)),Tr.isDataView=AI,c6.working=typeof SharedArrayBuffer<"u"&&c6(new SharedArrayBuffer),Tr.isSharedArrayBuffer=BI,Tr.isAsyncFunction=function(i){return Di(i)==="[object AsyncFunction]"},Tr.isMapIterator=function(i){return Di(i)==="[object Map Iterator]"},Tr.isSetIterator=function(i){return Di(i)==="[object Set Iterator]"},Tr.isGeneratorObject=function(i){return Di(i)==="[object Generator]"},Tr.isWebAssemblyCompiledModule=function(i){return Di(i)==="[object WebAssembly.Module]"},Tr.isNumberObject=II,Tr.isStringObject=RI,Tr.isBooleanObject=TI,Tr.isBigIntObject=kI,Tr.isSymbolObject=PI,Tr.isBoxedPrimitive=function(i){return II(i)||RI(i)||TI(i)||kI(i)||PI(i)},Tr.isAnyArrayBuffer=function(i){return $a&&(EI(i)||BI(i))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(i){Object.defineProperty(Tr,i,{enumerable:!1,value:function(){throw new Error(i+" is not supported in userland")}})});var x1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,wt={},bf=nr,$I=Object.getOwnPropertyDescriptors||function(i){for(var n=Object.keys(i),s={},c=0;c<n.length;c++)s[n[c]]=Object.getOwnPropertyDescriptor(i,n[c]);return s},lre=/%[sdj%]/g;wt.format=function(i){if(!p6(i)){for(var n=[],s=0;s<arguments.length;s++)n.push(b0(arguments[s]));return n.join(" ")}s=1;for(var c=arguments,a=c.length,d=String(i).replace(lre,function(y){if(y==="%%")return"%";if(s>=a)return y;switch(y){case"%s":return String(c[s++]);case"%d":return Number(c[s++]);case"%j":try{return JSON.stringify(c[s++])}catch{return"[Circular]"}default:return y}}),v=c[s];s<a;v=c[++s])T6(v)||!Bc(v)?d+=" "+v:d+=" "+b0(v);return d},wt.deprecate=function(i,n){if(bf!==void 0&&bf.noDeprecation===!0)return i;if(bf===void 0)return function(){return wt.deprecate(i,n).apply(this||x1,arguments)};var s=!1;return function(){if(!s){if(bf.throwDeprecation)throw new Error(n);bf.traceDeprecation?console.trace(n):console.error(n),s=!0}return i.apply(this||x1,arguments)}};var Sv={},Cq=/^$/;bf.env.NODE_DEBUG&&(Ev=bf.env.NODE_DEBUG,Ev=Ev.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),Cq=new RegExp("^"+Ev+"$","i"));var Ev;function b0(i,n){var s={seen:[],stylize:dre};return arguments.length>=3&&(s.depth=arguments[2]),arguments.length>=4&&(s.colors=arguments[3]),XM(n)?s.showHidden=n:n&&wt._extend(s,n),Ku(s.showHidden)&&(s.showHidden=!1),Ku(s.depth)&&(s.depth=2),Ku(s.colors)&&(s.colors=!1),Ku(s.customInspect)&&(s.customInspect=!0),s.colors&&(s.stylize=cre),d6(s,i,s.depth)}function cre(i,n){var s=b0.styles[n];return s?"\x1B["+b0.colors[s][0]+"m"+i+"\x1B["+b0.colors[s][1]+"m":i}function dre(i,n){return i}function d6(i,n,s){if(i.customInspect&&n&&U2(n.inspect)&&n.inspect!==wt.inspect&&(!n.constructor||n.constructor.prototype!==n)){var c=n.inspect(s,i);return p6(c)||(c=d6(i,c,s)),c}var a=function(x,S){if(Ku(S))return x.stylize("undefined","undefined");if(p6(S)){var I="'"+JSON.stringify(S).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return x.stylize(I,"string")}if(Dq(S))return x.stylize(""+S,"number");if(XM(S))return x.stylize(""+S,"boolean");if(T6(S))return x.stylize("null","null")}(i,n);if(a)return a;var d=Object.keys(n),v=function(x){var S={};return x.forEach(function(I,R){S[I]=!0}),S}(d);if(i.showHidden&&(d=Object.getOwnPropertyNames(n)),E1(n)&&(d.indexOf("message")>=0||d.indexOf("description")>=0))return K3(n);if(d.length===0){if(U2(n)){var y=n.name?": "+n.name:"";return i.stylize("[Function"+y+"]","special")}if(S1(n))return i.stylize(RegExp.prototype.toString.call(n),"regexp");if(v6(n))return i.stylize(Date.prototype.toString.call(n),"date");if(E1(n))return K3(n)}var M,w="",b=!1,_=["{","}"];return Lq(n)&&(b=!0,_=["[","]"]),U2(n)&&(w=" [Function"+(n.name?": "+n.name:"")+"]"),S1(n)&&(w=" "+RegExp.prototype.toString.call(n)),v6(n)&&(w=" "+Date.prototype.toUTCString.call(n)),E1(n)&&(w=" "+K3(n)),d.length!==0||b&&n.length!=0?s<0?S1(n)?i.stylize(RegExp.prototype.toString.call(n),"regexp"):i.stylize("[Object]","special"):(i.seen.push(n),M=b?function(x,S,I,R,N){for(var P=[],L=0,D=S.length;L<D;++L)Oq(S,String(L))?P.push(j3(x,S,I,R,String(L),!0)):P.push("");return N.forEach(function(Z){Z.match(/^\d+$/)||P.push(j3(x,S,I,R,Z,!0))}),P}(i,n,s,v,d):d.map(function(x){return j3(i,n,s,v,x,b)}),i.seen.pop(),function(x,S,I){var R=0;return x.reduce(function(N,P){return R++,P.indexOf(`
|
|
10
10
|
`)>=0&&R++,N+P.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?I[0]+(S===""?"":S+`
|
|
11
11
|
`)+" "+x.join(`,
|
|
12
12
|
`)+" "+I[1]:I[0]+S+" "+x.join(", ")+" "+I[1]}(M,w,_)):_[0]+w+_[1]}function K3(i){return"["+Error.prototype.toString.call(i)+"]"}function j3(i,n,s,c,a,d){var v,y,M;if((M=Object.getOwnPropertyDescriptor(n,a)||{value:n[a]}).get?y=M.set?i.stylize("[Getter/Setter]","special"):i.stylize("[Getter]","special"):M.set&&(y=i.stylize("[Setter]","special")),Oq(c,a)||(v="["+a+"]"),y||(i.seen.indexOf(M.value)<0?(y=T6(s)?d6(i,M.value,null):d6(i,M.value,s-1)).indexOf(`
|
|
@@ -83,6 +83,7 @@ nonce: bundlr`),at.from(a))}};var KNe=me(Me(),1);xe();_e();var Kl=class{_publicK
|
|
|
83
83
|
local patchData = Zone.Functions.getPatchData('overview')
|
|
84
84
|
Send({ device = 'patch@1.0', overview = require('json').encode(patchData) })
|
|
85
85
|
else
|
|
86
|
+
local json = require('json')
|
|
86
87
|
SyncState(nil)
|
|
87
88
|
end
|
|
88
89
|
`})}catch(s){throw new Error(s)}}}function qQ(i){return async n=>{try{return Sa(`Adding authority ${n.authorityId} to process ${n.zoneId}`),await Dd(i,{processId:n.zoneId,evalSrc:`table.insert(ao.authorities, '${n.authorityId}'); SyncState(nil)`})}catch(s){throw new Error(s)}}}function w3(i){return async n=>{try{let s=await Kf(i,{processId:n,path:"zone",fallbackAction:"Info"});return uo(s)}catch(s){throw new Error(s.message??"Error getting zone")}}}function UQ(i){let n=b3(i),s=Jl(i);return async(c,a)=>{let d=null,v=[{name:Wr.keys.zoneType,value:Wr.values.user}],y=async M=>{let w=M.toLowerCase(),b=c[w];if(b&&cv(b))try{let _=await s(c[w]);v.push(Qn(M,_))}catch(_){a?a(`Failed to resolve ${M}: ${_.message}`):console.error(_)}};c.username&&v.push(Qn("Username",c.username)),c.displayName&&v.push(Qn("DisplayName",c.displayName)),c.description&&v.push(Qn("Description",c.description)),await Promise.all([y("Thumbnail"),y("Banner")]);try{d=await n({tags:v},a)}catch(M){throw new Error(M.message??"Error creating profile")}return d}}function zQ(i){let n=g3(i),s=Jl(i);return async(c,a,d)=>{if(a){let v={Username:c.username,DisplayName:c.displayName,Description:c.description};if(c.thumbnail&&cv(c.thumbnail))try{v.Thumbnail=await s(c.thumbnail)}catch(y){d&&d(`Failed to resolve thumbnail: ${y.message}`)}else v.Thumbnail="None";if(c.banner&&cv(c.banner))try{v.Banner=await s(c.banner)}catch(y){d&&d(`Failed to resolve banner: ${y.message}`)}else v.Banner="None";try{return await n(v,a)}catch(y){throw new Error(y.message??"Error creating profile")}}else throw new Error("No profile provided")}}function FQ(i){let n=y3(i);return async s=>{try{return await n({zoneId:s.profileId})}catch(c){throw new Error(c)}}}function wB(i){let n=w3(i);return async s=>{try{let c=await n(s);if(!c)throw new Error("Error fetching profile - Not found");return{id:s,owner:c.owner,assets:c.assets,roles:c.roles,invites:c.invites,version:c.version,authorities:c.authorities,...c.store}}catch(c){throw new Error(c.message??"Error fetching profile")}}}function HQ(i){let n=wB(i);return async s=>{try{let c=await Ch({gateway:Qs.ao,tags:[{name:Wr.keys.dataProtocol,values:[Wr.values.dataProtocol]},{name:Wr.keys.zoneType,values:[Wr.values.user]}],owners:[s]});return c?.data?.length>0?(c.data.sort((a,d)=>{let v=a.node.block?.timestamp??0;return(d.node.block?.timestamp??0)-v}),await n(c.data[0].node.id)):{id:null}}catch(c){throw new Error(c.message??"Error fetching profile")}}}var cUe=fn.src.zone.version;function d3e(i){return{createZone:b3(i),updateZone:g3(i),addToZone:CQ(i),getZone:w3(i),setZoneRoles:DQ(i),joinZone:OQ(i),updateZonePatchMap:LQ(i),updateZoneVersion:y3(i),updateZoneAuthorities:qQ(i),createProfile:UQ(i),updateProfile:zQ(i),updateProfileVersion:FQ(i),getProfileById:wB(i),getProfileByWalletAddress:HQ(i),createAtomicAsset:yQ(i),getAtomicAsset:wQ(i),getAtomicAssets:MQ,createComment:BQ(i),getComments:IQ(i),updateCommentStatus:RQ(i),removeComment:kQ(i),updateCommentContent:TQ(i),userRemoveComment:PQ(i),pinComment:$Q(i),unpinComment:NQ(i),createCollection:xQ(i),updateCollectionAssets:SQ(i),getCollection:EQ(i),getCollections:AQ(i),resolveTransaction:Jl(i),getGQLData:Ch,getAggregatedGQLData:gQ,createProcess:jf(i),readProcess:DB(i),readState:LB(i),sendMessage:CB(i),mapFromProcessCase:uo,mapToProcessCase:Xl}}var dUe={init:d3e};export{cUe as CurrentZoneVersion,o3e as Types,dUe as default};
|