@permaweb/libs 0.0.53 → 0.0.55

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.esm.js CHANGED
@@ -6,7 +6,7 @@ ${JSON.stringify(at.from(f))},${JSON.stringify(at.from(d))},${v} => ${JSON.strin
6
6
  `,v=`
7
7
  -----END RSA `+d+` KEY-----
8
8
  `,b=at.alloc(0);f?(o.version="two-prime",b=rK.encode(o,"der")):b=QH.encode(o,"der");var y=b.toString("base64").match(/.{1,64}/g).join(`
9
- `);return n+y+v}});var uK=St(($ge,q6)=>{var Pge=Ae(Be());Ie();Re();(function(){"use strict";var a="input is invalid type",o="finalize already called",f=typeof window=="object",d=f?window:{};d.JS_SHA3_NO_WINDOW&&(f=!1);var n=!f&&typeof self=="object",v=!d.JS_SHA3_NO_NODE_JS&&typeof ft.default=="object"&&ft.default.versions&&ft.default.versions.node;v?d=globalThis:n&&(d=self);var b=!d.JS_SHA3_NO_COMMON_JS&&typeof q6=="object"&&q6.exports,y=typeof define=="function"&&define.amd,M=!d.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",w="0123456789abcdef".split(""),g=[31,7936,2031616,520093696],_=[4,1024,262144,67108864],x=[1,256,65536,16777216],E=[6,1536,393216,100663296],R=[0,8,16,24],T=[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};(d.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(F){return Object.prototype.toString.call(F)==="[object Array]"}),M&&(d.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(F){return typeof F=="object"&&F.buffer&&F.buffer.constructor===ArrayBuffer});for(var Z=function(F,ee,te){return function(O){return new B(F,ee,F).update(O)[te]()}},W=function(F,ee,te){return function(O,U){return new B(F,ee,U).update(O)[te]()}},Q=function(F,ee,te){return function(O,U,oe,Y){return s["cshake"+F].update(O,U,oe,Y)[te]()}},K=function(F,ee,te){return function(O,U,oe,Y){return s["kmac"+F].update(O,U,oe,Y)[te]()}},z=function(F,ee,te,O){for(var U=0;U<L.length;++U){var oe=L[U];F[oe]=ee(te,O,oe)}return F},X=function(F,ee){var te=Z(F,ee,"hex");return te.create=function(){return new B(F,ee,F)},te.update=function(O){return te.create().update(O)},z(te,Z,F,ee)},p=function(F,ee){var te=W(F,ee,"hex");return te.create=function(O){return new B(F,ee,O)},te.update=function(O,U){return te.create(U).update(O)},z(te,W,F,ee)},e=function(F,ee){var te=D[F],O=Q(F,ee,"hex");return O.create=function(U,oe,Y){return!oe&&!Y?s["shake"+F].create(U):new B(F,ee,U).bytepad([oe,Y],te)},O.update=function(U,oe,Y,j){return O.create(oe,Y,j).update(U)},z(O,Q,F,ee)},r=function(F,ee){var te=D[F],O=K(F,ee,"hex");return O.create=function(U,oe,Y){return new k(F,ee,oe).bytepad(["KMAC",Y],te).bytepad([U],te)},O.update=function(U,oe,Y,j){return O.create(U,Y,j).update(oe)},z(O,K,F,ee)},i=[{name:"keccak",padding:x,bits:N,createMethod:X},{name:"sha3",padding:E,bits:N,createMethod:X},{name:"shake",padding:g,bits:P,createMethod:p},{name:"cshake",padding:_,bits:P,createMethod:e},{name:"kmac",padding:_,bits:P,createMethod:r}],s={},h=[],c=0;c<i.length;++c)for(var m=i[c],l=m.bits,t=0;t<l.length;++t){var u=m.name+"_"+l[t];if(h.push(u),s[u]=m.createMethod(l[t],m.padding),m.name!=="sha3"){var S=m.name+l[t];h.push(S),s[S]=s[u]}}function B(F,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-(F<<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(F){if(this.finalized)throw new Error(o);var ee,te=typeof F;if(te!=="string"){if(te==="object"){if(F===null)throw new Error(a);if(M&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!Array.isArray(F)&&(!M||!ArrayBuffer.isView(F)))throw new Error(a)}else throw new Error(a);ee=!0}for(var O=this.blocks,U=this.byteCount,oe=F.length,Y=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<Y+1;++G)O[G]=0;if(ee)for(G=this.start;j<oe&&G<U;++j)O[G>>2]|=F[j]<<R[G++&3];else for(G=this.start;j<oe&&G<U;++j)ie=F.charCodeAt(j),ie<128?O[G>>2]|=ie<<R[G++&3]:ie<2048?(O[G>>2]|=(192|ie>>6)<<R[G++&3],O[G>>2]|=(128|ie&63)<<R[G++&3]):ie<55296||ie>=57344?(O[G>>2]|=(224|ie>>12)<<R[G++&3],O[G>>2]|=(128|ie>>6&63)<<R[G++&3],O[G>>2]|=(128|ie&63)<<R[G++&3]):(ie=65536+((ie&1023)<<10|F.charCodeAt(++j)&1023),O[G>>2]|=(240|ie>>18)<<R[G++&3],O[G>>2]|=(128|ie>>12&63)<<R[G++&3],O[G>>2]|=(128|ie>>6&63)<<R[G++&3],O[G>>2]|=(128|ie&63)<<R[G++&3]);if(this.lastByteIndex=G,G>=U){for(this.start=G-U,this.block=O[Y],G=0;G<Y;++G)V[G]^=O[G];q(V),this.reset=!0}else this.start=G}return this},B.prototype.encode=function(F,ee){var te=F&255,O=1,U=[te];for(F=F>>8,te=F&255;te>0;)U.unshift(te),F=F>>8,te=F&255,++O;return ee?U.push(O):U.unshift(O),this.update(U),U.length},B.prototype.encodeString=function(F){var ee,te=typeof F;if(te!=="string"){if(te==="object"){if(F===null)throw new Error(a);if(M&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!Array.isArray(F)&&(!M||!ArrayBuffer.isView(F)))throw new Error(a)}else throw new Error(a);ee=!0}var O=0,U=F.length;if(ee)O=U;else for(var oe=0;oe<F.length;++oe){var Y=F.charCodeAt(oe);Y<128?O+=1:Y<2048?O+=2:Y<55296||Y>=57344?O+=3:(Y=65536+((Y&1023)<<10|F.charCodeAt(++oe)&1023),O+=4)}return O+=this.encode(O*8),this.update(F),O},B.prototype.bytepad=function(F,ee){for(var te=this.encode(ee),O=0;O<F.length;++O)te+=this.encodeString(F[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 F=this.blocks,ee=this.lastByteIndex,te=this.blockCount,O=this.s;if(F[ee>>2]|=this.padding[ee&3],this.lastByteIndex===this.byteCount)for(F[0]=F[te],ee=1;ee<te+1;++ee)F[ee]=0;for(F[te-1]|=2147483648,ee=0;ee<te;++ee)O[ee]^=F[ee];q(O)}},B.prototype.toString=B.prototype.hex=function(){this.finalize();for(var F=this.blockCount,ee=this.s,te=this.outputBlocks,O=this.extraBytes,U=0,oe=0,Y="",j;oe<te;){for(U=0;U<F&&oe<te;++U,++oe)j=ee[U],Y+=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%F===0&&(q(ee),U=0)}return O&&(j=ee[U],Y+=w[j>>4&15]+w[j&15],O>1&&(Y+=w[j>>12&15]+w[j>>8&15]),O>2&&(Y+=w[j>>20&15]+w[j>>16&15])),Y},B.prototype.arrayBuffer=function(){this.finalize();var F=this.blockCount,ee=this.s,te=this.outputBlocks,O=this.extraBytes,U=0,oe=0,Y=this.outputBits>>3,j;O?j=new ArrayBuffer(te+1<<2):j=new ArrayBuffer(Y);for(var V=new Uint32Array(j);oe<te;){for(U=0;U<F&&oe<te;++U,++oe)V[oe]=ee[U];oe%F===0&&q(ee)}return O&&(V[U]=ee[U],j=j.slice(0,Y)),j},B.prototype.buffer=B.prototype.arrayBuffer,B.prototype.digest=B.prototype.array=function(){this.finalize();for(var F=this.blockCount,ee=this.s,te=this.outputBlocks,O=this.extraBytes,U=0,oe=0,Y=[],j,V;oe<te;){for(U=0;U<F&&oe<te;++U,++oe)j=oe<<2,V=ee[U],Y[j]=V&255,Y[j+1]=V>>8&255,Y[j+2]=V>>16&255,Y[j+3]=V>>24&255;oe%F===0&&q(ee)}return O&&(j=oe<<2,V=ee[U],Y[j]=V&255,O>1&&(Y[j+1]=V>>8&255),O>2&&(Y[j+2]=V>>16&255)),Y};function k(F,ee,te){B.call(this,F,ee,te)}k.prototype=new B,k.prototype.finalize=function(){return this.encode(this.outputBits,!0),B.prototype.finalize.call(this)};var q=function(F){var ee,te,O,U,oe,Y,j,V,G,ie,me,re,ae,ye,fe,he,nt,ce,be,ut,$,A,I,C,H,ne,J,de,st,le,ve,ot,we,Le,bt,Me,Ne,mt,xe,Ce,vt,se,ue,ht,pe,Se,dt,ge,De,ct,_e,Oe,gt,Ee,Pe,pt,lt,yt,xt,Mt,Et,At,Bt;for(O=0;O<48;O+=2)U=F[0]^F[10]^F[20]^F[30]^F[40],oe=F[1]^F[11]^F[21]^F[31]^F[41],Y=F[2]^F[12]^F[22]^F[32]^F[42],j=F[3]^F[13]^F[23]^F[33]^F[43],V=F[4]^F[14]^F[24]^F[34]^F[44],G=F[5]^F[15]^F[25]^F[35]^F[45],ie=F[6]^F[16]^F[26]^F[36]^F[46],me=F[7]^F[17]^F[27]^F[37]^F[47],re=F[8]^F[18]^F[28]^F[38]^F[48],ae=F[9]^F[19]^F[29]^F[39]^F[49],ee=re^(Y<<1|j>>>31),te=ae^(j<<1|Y>>>31),F[0]^=ee,F[1]^=te,F[10]^=ee,F[11]^=te,F[20]^=ee,F[21]^=te,F[30]^=ee,F[31]^=te,F[40]^=ee,F[41]^=te,ee=U^(V<<1|G>>>31),te=oe^(G<<1|V>>>31),F[2]^=ee,F[3]^=te,F[12]^=ee,F[13]^=te,F[22]^=ee,F[23]^=te,F[32]^=ee,F[33]^=te,F[42]^=ee,F[43]^=te,ee=Y^(ie<<1|me>>>31),te=j^(me<<1|ie>>>31),F[4]^=ee,F[5]^=te,F[14]^=ee,F[15]^=te,F[24]^=ee,F[25]^=te,F[34]^=ee,F[35]^=te,F[44]^=ee,F[45]^=te,ee=V^(re<<1|ae>>>31),te=G^(ae<<1|re>>>31),F[6]^=ee,F[7]^=te,F[16]^=ee,F[17]^=te,F[26]^=ee,F[27]^=te,F[36]^=ee,F[37]^=te,F[46]^=ee,F[47]^=te,ee=ie^(U<<1|oe>>>31),te=me^(oe<<1|U>>>31),F[8]^=ee,F[9]^=te,F[18]^=ee,F[19]^=te,F[28]^=ee,F[29]^=te,F[38]^=ee,F[39]^=te,F[48]^=ee,F[49]^=te,ye=F[0],fe=F[1],Se=F[11]<<4|F[10]>>>28,dt=F[10]<<4|F[11]>>>28,de=F[20]<<3|F[21]>>>29,st=F[21]<<3|F[20]>>>29,Mt=F[31]<<9|F[30]>>>23,Et=F[30]<<9|F[31]>>>23,se=F[40]<<18|F[41]>>>14,ue=F[41]<<18|F[40]>>>14,Le=F[2]<<1|F[3]>>>31,bt=F[3]<<1|F[2]>>>31,he=F[13]<<12|F[12]>>>20,nt=F[12]<<12|F[13]>>>20,ge=F[22]<<10|F[23]>>>22,De=F[23]<<10|F[22]>>>22,le=F[33]<<13|F[32]>>>19,ve=F[32]<<13|F[33]>>>19,At=F[42]<<2|F[43]>>>30,Bt=F[43]<<2|F[42]>>>30,Ee=F[5]<<30|F[4]>>>2,Pe=F[4]<<30|F[5]>>>2,Me=F[14]<<6|F[15]>>>26,Ne=F[15]<<6|F[14]>>>26,ce=F[25]<<11|F[24]>>>21,be=F[24]<<11|F[25]>>>21,ct=F[34]<<15|F[35]>>>17,_e=F[35]<<15|F[34]>>>17,ot=F[45]<<29|F[44]>>>3,we=F[44]<<29|F[45]>>>3,C=F[6]<<28|F[7]>>>4,H=F[7]<<28|F[6]>>>4,pt=F[17]<<23|F[16]>>>9,lt=F[16]<<23|F[17]>>>9,mt=F[26]<<25|F[27]>>>7,xe=F[27]<<25|F[26]>>>7,ut=F[36]<<21|F[37]>>>11,$=F[37]<<21|F[36]>>>11,Oe=F[47]<<24|F[46]>>>8,gt=F[46]<<24|F[47]>>>8,ht=F[8]<<27|F[9]>>>5,pe=F[9]<<27|F[8]>>>5,ne=F[18]<<20|F[19]>>>12,J=F[19]<<20|F[18]>>>12,yt=F[29]<<7|F[28]>>>25,xt=F[28]<<7|F[29]>>>25,Ce=F[38]<<8|F[39]>>>24,vt=F[39]<<8|F[38]>>>24,A=F[48]<<14|F[49]>>>18,I=F[49]<<14|F[48]>>>18,F[0]=ye^~he&ce,F[1]=fe^~nt&be,F[10]=C^~ne&de,F[11]=H^~J&st,F[20]=Le^~Me&mt,F[21]=bt^~Ne&xe,F[30]=ht^~Se&ge,F[31]=pe^~dt&De,F[40]=Ee^~pt&yt,F[41]=Pe^~lt&xt,F[2]=he^~ce&ut,F[3]=nt^~be&$,F[12]=ne^~de&le,F[13]=J^~st&ve,F[22]=Me^~mt&Ce,F[23]=Ne^~xe&vt,F[32]=Se^~ge&ct,F[33]=dt^~De&_e,F[42]=pt^~yt&Mt,F[43]=lt^~xt&Et,F[4]=ce^~ut&A,F[5]=be^~$&I,F[14]=de^~le&ot,F[15]=st^~ve&we,F[24]=mt^~Ce&se,F[25]=xe^~vt&ue,F[34]=ge^~ct&Oe,F[35]=De^~_e&gt,F[44]=yt^~Mt&At,F[45]=xt^~Et&Bt,F[6]=ut^~A&ye,F[7]=$^~I&fe,F[16]=le^~ot&C,F[17]=ve^~we&H,F[26]=Ce^~se&Le,F[27]=vt^~ue&bt,F[36]=ct^~Oe&ht,F[37]=_e^~gt&pe,F[46]=Mt^~At&Ee,F[47]=Et^~Bt&Pe,F[8]=A^~ye&he,F[9]=I^~fe&nt,F[18]=ot^~C&ne,F[19]=we^~H&J,F[28]=se^~Le&Me,F[29]=ue^~bt&Ne,F[38]=Oe^~ht&Se,F[39]=gt^~pe&dt,F[48]=At^~Ee&pt,F[49]=Bt^~Pe&lt,F[0]^=T[O],F[1]^=T[O+1]};if(b)q6.exports=s;else{for(c=0;c<h.length;++c)d[h[c]]=s[h[c]];y&&define(function(){return s})}})()});var fx=St((MK,sx)=>{var oye=Ae(Be());Ie();Re();(function(a,o){"use strict";function f(i,s){if(!i)throw new Error(s||"Assertion failed")}function d(i,s){i.super_=s;var h=function(){};h.prototype=s.prototype,i.prototype=new h,i.prototype.constructor=i}function n(i,s,h){if(n.isBN(i))return i;this.negative=0,this.words=null,this.length=0,this.red=null,i!==null&&((s==="le"||s==="be")&&(h=s,s=10),this._init(i||0,s||10,h||"be"))}typeof a=="object"?a.exports=n:o.BN=n,n.BN=n,n.wordSize=26;var v;try{typeof window<"u"&&typeof window.Buffer<"u"?v=window.Buffer:v=I6().Buffer}catch{}n.isBN=function(s){return s instanceof n?!0:s!==null&&typeof s=="object"&&s.constructor.wordSize===n.wordSize&&Array.isArray(s.words)},n.max=function(s,h){return s.cmp(h)>0?s:h},n.min=function(s,h){return s.cmp(h)<0?s:h},n.prototype._init=function(s,h,c){if(typeof s=="number")return this._initNumber(s,h,c);if(typeof s=="object")return this._initArray(s,h,c);h==="hex"&&(h=16),f(h===(h|0)&&h>=2&&h<=36),s=s.toString().replace(/\s+/g,"");var m=0;s[0]==="-"&&(m++,this.negative=1),m<s.length&&(h===16?this._parseHex(s,m,c):(this._parseBase(s,h,m),c==="le"&&this._initArray(this.toArray(),h,c)))},n.prototype._initNumber=function(s,h,c){s<0&&(this.negative=1,s=-s),s<67108864?(this.words=[s&67108863],this.length=1):s<4503599627370496?(this.words=[s&67108863,s/67108864&67108863],this.length=2):(f(s<9007199254740992),this.words=[s&67108863,s/67108864&67108863,1],this.length=3),c==="le"&&this._initArray(this.toArray(),h,c)},n.prototype._initArray=function(s,h,c){if(f(typeof s.length=="number"),s.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(s.length/3),this.words=new Array(this.length);for(var m=0;m<this.length;m++)this.words[m]=0;var l,t,u=0;if(c==="be")for(m=s.length-1,l=0;m>=0;m-=3)t=s[m]|s[m-1]<<8|s[m-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(c==="le")for(m=0,l=0;m<s.length;m+=3)t=s[m]|s[m+1]<<8|s[m+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 b(i,s){var h=i.charCodeAt(s);if(h>=48&&h<=57)return h-48;if(h>=65&&h<=70)return h-55;if(h>=97&&h<=102)return h-87;f(!1,"Invalid character in "+i)}function y(i,s,h){var c=b(i,h);return h-1>=s&&(c|=b(i,h-1)<<4),c}n.prototype._parseHex=function(s,h,c){this.length=Math.ceil((s.length-h)/6),this.words=new Array(this.length);for(var m=0;m<this.length;m++)this.words[m]=0;var l=0,t=0,u;if(c==="be")for(m=s.length-1;m>=h;m-=2)u=y(s,h,m)<<l,this.words[t]|=u&67108863,l>=18?(l-=18,t+=1,this.words[t]|=u>>>26):l+=8;else{var S=s.length-h;for(m=S%2===0?h+1:h;m<s.length;m+=2)u=y(s,h,m)<<l,this.words[t]|=u&67108863,l>=18?(l-=18,t+=1,this.words[t]|=u>>>26):l+=8}this._strip()};function M(i,s,h,c){for(var m=0,l=0,t=Math.min(i.length,h),u=s;u<t;u++){var S=i.charCodeAt(u)-48;m*=c,S>=49?l=S-49+10:S>=17?l=S-17+10:l=S,f(S>=0&&l<c,"Invalid character"),m+=l}return m}n.prototype._parseBase=function(s,h,c){this.words=[0],this.length=1;for(var m=0,l=1;l<=67108863;l*=h)m++;m--,l=l/h|0;for(var t=s.length-c,u=t%m,S=Math.min(t,t-u)+c,B=0,k=c;k<S;k+=m)B=M(s,k,k+m,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(s,k,s.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()},n.prototype.copy=function(s){s.words=new Array(this.length);for(var h=0;h<this.length;h++)s.words[h]=this.words[h];s.length=this.length,s.negative=this.negative,s.red=this.red};function w(i,s){i.words=s.words,i.length=s.length,i.negative=s.negative,i.red=s.red}if(n.prototype._move=function(s){w(s,this)},n.prototype.clone=function(){var s=new n(null);return this.copy(s),s},n.prototype._expand=function(s){for(;this.length<s;)this.words[this.length++]=0;return this},n.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{n.prototype[Symbol.for("nodejs.util.inspect.custom")]=g}catch{n.prototype.inspect=g}else n.prototype.inspect=g;function g(){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],E=[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];n.prototype.toString=function(s,h){s=s||10,h=h|0||1;var c;if(s===16||s==="hex"){c="";for(var m=0,l=0,t=0;t<this.length;t++){var u=this.words[t],S=((u<<m|l)&16777215).toString(16);l=u>>>24-m&16777215,m+=2,m>=26&&(m-=26,t--),l!==0||t!==this.length-1?c=_[6-S.length]+S+c:c=S+c}for(l!==0&&(c=l.toString(16)+c);c.length%h!==0;)c="0"+c;return this.negative!==0&&(c="-"+c),c}if(s===(s|0)&&s>=2&&s<=36){var B=x[s],k=E[s];c="";var q=this.clone();for(q.negative=0;!q.isZero();){var F=q.modrn(k).toString(s);q=q.idivn(k),q.isZero()?c=F+c:c=_[B-F.length]+F+c}for(this.isZero()&&(c="0"+c);c.length%h!==0;)c="0"+c;return this.negative!==0&&(c="-"+c),c}f(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var s=this.words[0];return this.length===2?s+=this.words[1]*67108864:this.length===3&&this.words[2]===1?s+=4503599627370496+this.words[1]*67108864:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-s:s},n.prototype.toJSON=function(){return this.toString(16,2)},v&&(n.prototype.toBuffer=function(s,h){return this.toArrayLike(v,s,h)}),n.prototype.toArray=function(s,h){return this.toArrayLike(Array,s,h)};var R=function(s,h){return s.allocUnsafe?s.allocUnsafe(h):new s(h)};n.prototype.toArrayLike=function(s,h,c){this._strip();var m=this.byteLength(),l=c||Math.max(1,m);f(m<=l,"byte array longer than desired length"),f(l>0,"Requested array length <= 0");var t=R(s,l),u=h==="le"?"LE":"BE";return this["_toArrayLike"+u](t,m),t},n.prototype._toArrayLikeLE=function(s,h){for(var c=0,m=0,l=0,t=0;l<this.length;l++){var u=this.words[l]<<t|m;s[c++]=u&255,c<s.length&&(s[c++]=u>>8&255),c<s.length&&(s[c++]=u>>16&255),t===6?(c<s.length&&(s[c++]=u>>24&255),m=0,t=0):(m=u>>>24,t+=2)}if(c<s.length)for(s[c++]=m;c<s.length;)s[c++]=0},n.prototype._toArrayLikeBE=function(s,h){for(var c=s.length-1,m=0,l=0,t=0;l<this.length;l++){var u=this.words[l]<<t|m;s[c--]=u&255,c>=0&&(s[c--]=u>>8&255),c>=0&&(s[c--]=u>>16&255),t===6?(c>=0&&(s[c--]=u>>24&255),m=0,t=0):(m=u>>>24,t+=2)}if(c>=0)for(s[c--]=m;c>=0;)s[c--]=0},Math.clz32?n.prototype._countBits=function(s){return 32-Math.clz32(s)}:n.prototype._countBits=function(s){var h=s,c=0;return h>=4096&&(c+=13,h>>>=13),h>=64&&(c+=7,h>>>=7),h>=8&&(c+=4,h>>>=4),h>=2&&(c+=2,h>>>=2),c+h},n.prototype._zeroBits=function(s){if(s===0)return 26;var h=s,c=0;return h&8191||(c+=13,h>>>=13),h&127||(c+=7,h>>>=7),h&15||(c+=4,h>>>=4),h&3||(c+=2,h>>>=2),h&1||c++,c},n.prototype.bitLength=function(){var s=this.words[this.length-1],h=this._countBits(s);return(this.length-1)*26+h};function T(i){for(var s=new Array(i.bitLength()),h=0;h<s.length;h++){var c=h/26|0,m=h%26;s[h]=i.words[c]>>>m&1}return s}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,h=0;h<this.length;h++){var c=this._zeroBits(this.words[h]);if(s+=c,c!==26)break}return s},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(s){return this.negative!==0?this.abs().inotn(s).iaddn(1):this.clone()},n.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(s){for(;this.length<s.length;)this.words[this.length++]=0;for(var h=0;h<s.length;h++)this.words[h]=this.words[h]|s.words[h];return this._strip()},n.prototype.ior=function(s){return f((this.negative|s.negative)===0),this.iuor(s)},n.prototype.or=function(s){return this.length>s.length?this.clone().ior(s):s.clone().ior(this)},n.prototype.uor=function(s){return this.length>s.length?this.clone().iuor(s):s.clone().iuor(this)},n.prototype.iuand=function(s){var h;this.length>s.length?h=s:h=this;for(var c=0;c<h.length;c++)this.words[c]=this.words[c]&s.words[c];return this.length=h.length,this._strip()},n.prototype.iand=function(s){return f((this.negative|s.negative)===0),this.iuand(s)},n.prototype.and=function(s){return this.length>s.length?this.clone().iand(s):s.clone().iand(this)},n.prototype.uand=function(s){return this.length>s.length?this.clone().iuand(s):s.clone().iuand(this)},n.prototype.iuxor=function(s){var h,c;this.length>s.length?(h=this,c=s):(h=s,c=this);for(var m=0;m<c.length;m++)this.words[m]=h.words[m]^c.words[m];if(this!==h)for(;m<h.length;m++)this.words[m]=h.words[m];return this.length=h.length,this._strip()},n.prototype.ixor=function(s){return f((this.negative|s.negative)===0),this.iuxor(s)},n.prototype.xor=function(s){return this.length>s.length?this.clone().ixor(s):s.clone().ixor(this)},n.prototype.uxor=function(s){return this.length>s.length?this.clone().iuxor(s):s.clone().iuxor(this)},n.prototype.inotn=function(s){f(typeof s=="number"&&s>=0);var h=Math.ceil(s/26)|0,c=s%26;this._expand(h),c>0&&h--;for(var m=0;m<h;m++)this.words[m]=~this.words[m]&67108863;return c>0&&(this.words[m]=~this.words[m]&67108863>>26-c),this._strip()},n.prototype.notn=function(s){return this.clone().inotn(s)},n.prototype.setn=function(s,h){f(typeof s=="number"&&s>=0);var c=s/26|0,m=s%26;return this._expand(c+1),h?this.words[c]=this.words[c]|1<<m:this.words[c]=this.words[c]&~(1<<m),this._strip()},n.prototype.iadd=function(s){var h;if(this.negative!==0&&s.negative===0)return this.negative=0,h=this.isub(s),this.negative^=1,this._normSign();if(this.negative===0&&s.negative!==0)return s.negative=0,h=this.isub(s),s.negative=1,h._normSign();var c,m;this.length>s.length?(c=this,m=s):(c=s,m=this);for(var l=0,t=0;t<m.length;t++)h=(c.words[t]|0)+(m.words[t]|0)+l,this.words[t]=h&67108863,l=h>>>26;for(;l!==0&&t<c.length;t++)h=(c.words[t]|0)+l,this.words[t]=h&67108863,l=h>>>26;if(this.length=c.length,l!==0)this.words[this.length]=l,this.length++;else if(c!==this)for(;t<c.length;t++)this.words[t]=c.words[t];return this},n.prototype.add=function(s){var h;return s.negative!==0&&this.negative===0?(s.negative=0,h=this.sub(s),s.negative^=1,h):s.negative===0&&this.negative!==0?(this.negative=0,h=s.sub(this),this.negative=1,h):this.length>s.length?this.clone().iadd(s):s.clone().iadd(this)},n.prototype.isub=function(s){if(s.negative!==0){s.negative=0;var h=this.iadd(s);return s.negative=1,h._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(s),this.negative=1,this._normSign();var c=this.cmp(s);if(c===0)return this.negative=0,this.length=1,this.words[0]=0,this;var m,l;c>0?(m=this,l=s):(m=s,l=this);for(var t=0,u=0;u<l.length;u++)h=(m.words[u]|0)-(l.words[u]|0)+t,t=h>>26,this.words[u]=h&67108863;for(;t!==0&&u<m.length;u++)h=(m.words[u]|0)+t,t=h>>26,this.words[u]=h&67108863;if(t===0&&u<m.length&&m!==this)for(;u<m.length;u++)this.words[u]=m.words[u];return this.length=Math.max(this.length,u),m!==this&&(this.negative=1),this._strip()},n.prototype.sub=function(s){return this.clone().isub(s)};function N(i,s,h){h.negative=s.negative^i.negative;var c=i.length+s.length|0;h.length=c,c=c-1|0;var m=i.words[0]|0,l=s.words[0]|0,t=m*l,u=t&67108863,S=t/67108864|0;h.words[0]=u;for(var B=1;B<c;B++){for(var k=S>>>26,q=S&67108863,F=Math.min(B,s.length-1),ee=Math.max(0,B-i.length+1);ee<=F;ee++){var te=B-ee|0;m=i.words[te]|0,l=s.words[ee]|0,t=m*l+q,k+=t/67108864|0,q=t&67108863}h.words[B]=q|0,S=k|0}return S!==0?h.words[B]=S|0:h.length--,h._strip()}var P=function(s,h,c){var m=s.words,l=h.words,t=c.words,u=0,S,B,k,q=m[0]|0,F=q&8191,ee=q>>>13,te=m[1]|0,O=te&8191,U=te>>>13,oe=m[2]|0,Y=oe&8191,j=oe>>>13,V=m[3]|0,G=V&8191,ie=V>>>13,me=m[4]|0,re=me&8191,ae=me>>>13,ye=m[5]|0,fe=ye&8191,he=ye>>>13,nt=m[6]|0,ce=nt&8191,be=nt>>>13,ut=m[7]|0,$=ut&8191,A=ut>>>13,I=m[8]|0,C=I&8191,H=I>>>13,ne=m[9]|0,J=ne&8191,de=ne>>>13,st=l[0]|0,le=st&8191,ve=st>>>13,ot=l[1]|0,we=ot&8191,Le=ot>>>13,bt=l[2]|0,Me=bt&8191,Ne=bt>>>13,mt=l[3]|0,xe=mt&8191,Ce=mt>>>13,vt=l[4]|0,se=vt&8191,ue=vt>>>13,ht=l[5]|0,pe=ht&8191,Se=ht>>>13,dt=l[6]|0,ge=dt&8191,De=dt>>>13,ct=l[7]|0,_e=ct&8191,Oe=ct>>>13,gt=l[8]|0,Ee=gt&8191,Pe=gt>>>13,pt=l[9]|0,lt=pt&8191,yt=pt>>>13;c.negative=s.negative^h.negative,c.length=19,S=Math.imul(F,le),B=Math.imul(F,ve),B=B+Math.imul(ee,le)|0,k=Math.imul(ee,ve);var xt=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(xt>>>26)|0,xt&=67108863,S=Math.imul(O,le),B=Math.imul(O,ve),B=B+Math.imul(U,le)|0,k=Math.imul(U,ve),S=S+Math.imul(F,we)|0,B=B+Math.imul(F,Le)|0,B=B+Math.imul(ee,we)|0,k=k+Math.imul(ee,Le)|0;var Mt=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,S=Math.imul(Y,le),B=Math.imul(Y,ve),B=B+Math.imul(j,le)|0,k=Math.imul(j,ve),S=S+Math.imul(O,we)|0,B=B+Math.imul(O,Le)|0,B=B+Math.imul(U,we)|0,k=k+Math.imul(U,Le)|0,S=S+Math.imul(F,Me)|0,B=B+Math.imul(F,Ne)|0,B=B+Math.imul(ee,Me)|0,k=k+Math.imul(ee,Ne)|0;var Et=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Et>>>26)|0,Et&=67108863,S=Math.imul(G,le),B=Math.imul(G,ve),B=B+Math.imul(ie,le)|0,k=Math.imul(ie,ve),S=S+Math.imul(Y,we)|0,B=B+Math.imul(Y,Le)|0,B=B+Math.imul(j,we)|0,k=k+Math.imul(j,Le)|0,S=S+Math.imul(O,Me)|0,B=B+Math.imul(O,Ne)|0,B=B+Math.imul(U,Me)|0,k=k+Math.imul(U,Ne)|0,S=S+Math.imul(F,xe)|0,B=B+Math.imul(F,Ce)|0,B=B+Math.imul(ee,xe)|0,k=k+Math.imul(ee,Ce)|0;var At=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(At>>>26)|0,At&=67108863,S=Math.imul(re,le),B=Math.imul(re,ve),B=B+Math.imul(ae,le)|0,k=Math.imul(ae,ve),S=S+Math.imul(G,we)|0,B=B+Math.imul(G,Le)|0,B=B+Math.imul(ie,we)|0,k=k+Math.imul(ie,Le)|0,S=S+Math.imul(Y,Me)|0,B=B+Math.imul(Y,Ne)|0,B=B+Math.imul(j,Me)|0,k=k+Math.imul(j,Ne)|0,S=S+Math.imul(O,xe)|0,B=B+Math.imul(O,Ce)|0,B=B+Math.imul(U,xe)|0,k=k+Math.imul(U,Ce)|0,S=S+Math.imul(F,se)|0,B=B+Math.imul(F,ue)|0,B=B+Math.imul(ee,se)|0,k=k+Math.imul(ee,ue)|0;var Bt=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,S=Math.imul(fe,le),B=Math.imul(fe,ve),B=B+Math.imul(he,le)|0,k=Math.imul(he,ve),S=S+Math.imul(re,we)|0,B=B+Math.imul(re,Le)|0,B=B+Math.imul(ae,we)|0,k=k+Math.imul(ae,Le)|0,S=S+Math.imul(G,Me)|0,B=B+Math.imul(G,Ne)|0,B=B+Math.imul(ie,Me)|0,k=k+Math.imul(ie,Ne)|0,S=S+Math.imul(Y,xe)|0,B=B+Math.imul(Y,Ce)|0,B=B+Math.imul(j,xe)|0,k=k+Math.imul(j,Ce)|0,S=S+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,S=S+Math.imul(F,pe)|0,B=B+Math.imul(F,Se)|0,B=B+Math.imul(ee,pe)|0,k=k+Math.imul(ee,Se)|0;var It=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(It>>>26)|0,It&=67108863,S=Math.imul(ce,le),B=Math.imul(ce,ve),B=B+Math.imul(be,le)|0,k=Math.imul(be,ve),S=S+Math.imul(fe,we)|0,B=B+Math.imul(fe,Le)|0,B=B+Math.imul(he,we)|0,k=k+Math.imul(he,Le)|0,S=S+Math.imul(re,Me)|0,B=B+Math.imul(re,Ne)|0,B=B+Math.imul(ae,Me)|0,k=k+Math.imul(ae,Ne)|0,S=S+Math.imul(G,xe)|0,B=B+Math.imul(G,Ce)|0,B=B+Math.imul(ie,xe)|0,k=k+Math.imul(ie,Ce)|0,S=S+Math.imul(Y,se)|0,B=B+Math.imul(Y,ue)|0,B=B+Math.imul(j,se)|0,k=k+Math.imul(j,ue)|0,S=S+Math.imul(O,pe)|0,B=B+Math.imul(O,Se)|0,B=B+Math.imul(U,pe)|0,k=k+Math.imul(U,Se)|0,S=S+Math.imul(F,ge)|0,B=B+Math.imul(F,De)|0,B=B+Math.imul(ee,ge)|0,k=k+Math.imul(ee,De)|0;var Tt=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,S=Math.imul($,le),B=Math.imul($,ve),B=B+Math.imul(A,le)|0,k=Math.imul(A,ve),S=S+Math.imul(ce,we)|0,B=B+Math.imul(ce,Le)|0,B=B+Math.imul(be,we)|0,k=k+Math.imul(be,Le)|0,S=S+Math.imul(fe,Me)|0,B=B+Math.imul(fe,Ne)|0,B=B+Math.imul(he,Me)|0,k=k+Math.imul(he,Ne)|0,S=S+Math.imul(re,xe)|0,B=B+Math.imul(re,Ce)|0,B=B+Math.imul(ae,xe)|0,k=k+Math.imul(ae,Ce)|0,S=S+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,S=S+Math.imul(Y,pe)|0,B=B+Math.imul(Y,Se)|0,B=B+Math.imul(j,pe)|0,k=k+Math.imul(j,Se)|0,S=S+Math.imul(O,ge)|0,B=B+Math.imul(O,De)|0,B=B+Math.imul(U,ge)|0,k=k+Math.imul(U,De)|0,S=S+Math.imul(F,_e)|0,B=B+Math.imul(F,Oe)|0,B=B+Math.imul(ee,_e)|0,k=k+Math.imul(ee,Oe)|0;var kt=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(kt>>>26)|0,kt&=67108863,S=Math.imul(C,le),B=Math.imul(C,ve),B=B+Math.imul(H,le)|0,k=Math.imul(H,ve),S=S+Math.imul($,we)|0,B=B+Math.imul($,Le)|0,B=B+Math.imul(A,we)|0,k=k+Math.imul(A,Le)|0,S=S+Math.imul(ce,Me)|0,B=B+Math.imul(ce,Ne)|0,B=B+Math.imul(be,Me)|0,k=k+Math.imul(be,Ne)|0,S=S+Math.imul(fe,xe)|0,B=B+Math.imul(fe,Ce)|0,B=B+Math.imul(he,xe)|0,k=k+Math.imul(he,Ce)|0,S=S+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,S=S+Math.imul(G,pe)|0,B=B+Math.imul(G,Se)|0,B=B+Math.imul(ie,pe)|0,k=k+Math.imul(ie,Se)|0,S=S+Math.imul(Y,ge)|0,B=B+Math.imul(Y,De)|0,B=B+Math.imul(j,ge)|0,k=k+Math.imul(j,De)|0,S=S+Math.imul(O,_e)|0,B=B+Math.imul(O,Oe)|0,B=B+Math.imul(U,_e)|0,k=k+Math.imul(U,Oe)|0,S=S+Math.imul(F,Ee)|0,B=B+Math.imul(F,Pe)|0,B=B+Math.imul(ee,Ee)|0,k=k+Math.imul(ee,Pe)|0;var $t=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+($t>>>26)|0,$t&=67108863,S=Math.imul(J,le),B=Math.imul(J,ve),B=B+Math.imul(de,le)|0,k=Math.imul(de,ve),S=S+Math.imul(C,we)|0,B=B+Math.imul(C,Le)|0,B=B+Math.imul(H,we)|0,k=k+Math.imul(H,Le)|0,S=S+Math.imul($,Me)|0,B=B+Math.imul($,Ne)|0,B=B+Math.imul(A,Me)|0,k=k+Math.imul(A,Ne)|0,S=S+Math.imul(ce,xe)|0,B=B+Math.imul(ce,Ce)|0,B=B+Math.imul(be,xe)|0,k=k+Math.imul(be,Ce)|0,S=S+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,S=S+Math.imul(re,pe)|0,B=B+Math.imul(re,Se)|0,B=B+Math.imul(ae,pe)|0,k=k+Math.imul(ae,Se)|0,S=S+Math.imul(G,ge)|0,B=B+Math.imul(G,De)|0,B=B+Math.imul(ie,ge)|0,k=k+Math.imul(ie,De)|0,S=S+Math.imul(Y,_e)|0,B=B+Math.imul(Y,Oe)|0,B=B+Math.imul(j,_e)|0,k=k+Math.imul(j,Oe)|0,S=S+Math.imul(O,Ee)|0,B=B+Math.imul(O,Pe)|0,B=B+Math.imul(U,Ee)|0,k=k+Math.imul(U,Pe)|0,S=S+Math.imul(F,lt)|0,B=B+Math.imul(F,yt)|0,B=B+Math.imul(ee,lt)|0,k=k+Math.imul(ee,yt)|0;var Pt=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,S=Math.imul(J,we),B=Math.imul(J,Le),B=B+Math.imul(de,we)|0,k=Math.imul(de,Le),S=S+Math.imul(C,Me)|0,B=B+Math.imul(C,Ne)|0,B=B+Math.imul(H,Me)|0,k=k+Math.imul(H,Ne)|0,S=S+Math.imul($,xe)|0,B=B+Math.imul($,Ce)|0,B=B+Math.imul(A,xe)|0,k=k+Math.imul(A,Ce)|0,S=S+Math.imul(ce,se)|0,B=B+Math.imul(ce,ue)|0,B=B+Math.imul(be,se)|0,k=k+Math.imul(be,ue)|0,S=S+Math.imul(fe,pe)|0,B=B+Math.imul(fe,Se)|0,B=B+Math.imul(he,pe)|0,k=k+Math.imul(he,Se)|0,S=S+Math.imul(re,ge)|0,B=B+Math.imul(re,De)|0,B=B+Math.imul(ae,ge)|0,k=k+Math.imul(ae,De)|0,S=S+Math.imul(G,_e)|0,B=B+Math.imul(G,Oe)|0,B=B+Math.imul(ie,_e)|0,k=k+Math.imul(ie,Oe)|0,S=S+Math.imul(Y,Ee)|0,B=B+Math.imul(Y,Pe)|0,B=B+Math.imul(j,Ee)|0,k=k+Math.imul(j,Pe)|0,S=S+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+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,S=Math.imul(J,Me),B=Math.imul(J,Ne),B=B+Math.imul(de,Me)|0,k=Math.imul(de,Ne),S=S+Math.imul(C,xe)|0,B=B+Math.imul(C,Ce)|0,B=B+Math.imul(H,xe)|0,k=k+Math.imul(H,Ce)|0,S=S+Math.imul($,se)|0,B=B+Math.imul($,ue)|0,B=B+Math.imul(A,se)|0,k=k+Math.imul(A,ue)|0,S=S+Math.imul(ce,pe)|0,B=B+Math.imul(ce,Se)|0,B=B+Math.imul(be,pe)|0,k=k+Math.imul(be,Se)|0,S=S+Math.imul(fe,ge)|0,B=B+Math.imul(fe,De)|0,B=B+Math.imul(he,ge)|0,k=k+Math.imul(he,De)|0,S=S+Math.imul(re,_e)|0,B=B+Math.imul(re,Oe)|0,B=B+Math.imul(ae,_e)|0,k=k+Math.imul(ae,Oe)|0,S=S+Math.imul(G,Ee)|0,B=B+Math.imul(G,Pe)|0,B=B+Math.imul(ie,Ee)|0,k=k+Math.imul(ie,Pe)|0,S=S+Math.imul(Y,lt)|0,B=B+Math.imul(Y,yt)|0,B=B+Math.imul(j,lt)|0,k=k+Math.imul(j,yt)|0;var Ct=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,S=Math.imul(J,xe),B=Math.imul(J,Ce),B=B+Math.imul(de,xe)|0,k=Math.imul(de,Ce),S=S+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,S=S+Math.imul($,pe)|0,B=B+Math.imul($,Se)|0,B=B+Math.imul(A,pe)|0,k=k+Math.imul(A,Se)|0,S=S+Math.imul(ce,ge)|0,B=B+Math.imul(ce,De)|0,B=B+Math.imul(be,ge)|0,k=k+Math.imul(be,De)|0,S=S+Math.imul(fe,_e)|0,B=B+Math.imul(fe,Oe)|0,B=B+Math.imul(he,_e)|0,k=k+Math.imul(he,Oe)|0,S=S+Math.imul(re,Ee)|0,B=B+Math.imul(re,Pe)|0,B=B+Math.imul(ae,Ee)|0,k=k+Math.imul(ae,Pe)|0,S=S+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 Lt=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,S=Math.imul(J,se),B=Math.imul(J,ue),B=B+Math.imul(de,se)|0,k=Math.imul(de,ue),S=S+Math.imul(C,pe)|0,B=B+Math.imul(C,Se)|0,B=B+Math.imul(H,pe)|0,k=k+Math.imul(H,Se)|0,S=S+Math.imul($,ge)|0,B=B+Math.imul($,De)|0,B=B+Math.imul(A,ge)|0,k=k+Math.imul(A,De)|0,S=S+Math.imul(ce,_e)|0,B=B+Math.imul(ce,Oe)|0,B=B+Math.imul(be,_e)|0,k=k+Math.imul(be,Oe)|0,S=S+Math.imul(fe,Ee)|0,B=B+Math.imul(fe,Pe)|0,B=B+Math.imul(he,Ee)|0,k=k+Math.imul(he,Pe)|0,S=S+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 Dt=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,S=Math.imul(J,pe),B=Math.imul(J,Se),B=B+Math.imul(de,pe)|0,k=Math.imul(de,Se),S=S+Math.imul(C,ge)|0,B=B+Math.imul(C,De)|0,B=B+Math.imul(H,ge)|0,k=k+Math.imul(H,De)|0,S=S+Math.imul($,_e)|0,B=B+Math.imul($,Oe)|0,B=B+Math.imul(A,_e)|0,k=k+Math.imul(A,Oe)|0,S=S+Math.imul(ce,Ee)|0,B=B+Math.imul(ce,Pe)|0,B=B+Math.imul(be,Ee)|0,k=k+Math.imul(be,Pe)|0,S=S+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 qt=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(qt>>>26)|0,qt&=67108863,S=Math.imul(J,ge),B=Math.imul(J,De),B=B+Math.imul(de,ge)|0,k=Math.imul(de,De),S=S+Math.imul(C,_e)|0,B=B+Math.imul(C,Oe)|0,B=B+Math.imul(H,_e)|0,k=k+Math.imul(H,Oe)|0,S=S+Math.imul($,Ee)|0,B=B+Math.imul($,Pe)|0,B=B+Math.imul(A,Ee)|0,k=k+Math.imul(A,Pe)|0,S=S+Math.imul(ce,lt)|0,B=B+Math.imul(ce,yt)|0,B=B+Math.imul(be,lt)|0,k=k+Math.imul(be,yt)|0;var Ut=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,S=Math.imul(J,_e),B=Math.imul(J,Oe),B=B+Math.imul(de,_e)|0,k=Math.imul(de,Oe),S=S+Math.imul(C,Ee)|0,B=B+Math.imul(C,Pe)|0,B=B+Math.imul(H,Ee)|0,k=k+Math.imul(H,Pe)|0,S=S+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 ia=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(ia>>>26)|0,ia&=67108863,S=Math.imul(J,Ee),B=Math.imul(J,Pe),B=B+Math.imul(de,Ee)|0,k=Math.imul(de,Pe),S=S+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 na=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(na>>>26)|0,na&=67108863,S=Math.imul(J,lt),B=Math.imul(J,yt),B=B+Math.imul(de,lt)|0,k=Math.imul(de,yt);var um=(u+S|0)+((B&8191)<<13)|0;return u=(k+(B>>>13)|0)+(um>>>26)|0,um&=67108863,t[0]=xt,t[1]=Mt,t[2]=Et,t[3]=At,t[4]=Bt,t[5]=It,t[6]=Tt,t[7]=kt,t[8]=$t,t[9]=Pt,t[10]=Nt,t[11]=Ct,t[12]=Lt,t[13]=Dt,t[14]=qt,t[15]=Ut,t[16]=ia,t[17]=na,t[18]=um,u!==0&&(t[19]=u,c.length++),c};Math.imul||(P=N);function L(i,s,h){h.negative=s.negative^i.negative,h.length=i.length+s.length;for(var c=0,m=0,l=0;l<h.length-1;l++){var t=m;m=0;for(var u=c&67108863,S=Math.min(l,s.length-1),B=Math.max(0,l-i.length+1);B<=S;B++){var k=l-B,q=i.words[k]|0,F=s.words[B]|0,ee=q*F,te=ee&67108863;t=t+(ee/67108864|0)|0,te=te+u|0,u=te&67108863,t=t+(te>>>26)|0,m+=t>>>26,t&=67108863}h.words[l]=u,c=t,t=m}return c!==0?h.words[l]=c:h.length--,h._strip()}function D(i,s,h){return L(i,s,h)}n.prototype.mulTo=function(s,h){var c,m=this.length+s.length;return this.length===10&&s.length===10?c=P(this,s,h):m<63?c=N(this,s,h):m<1024?c=L(this,s,h):c=D(this,s,h),c};function Z(i,s){this.x=i,this.y=s}Z.prototype.makeRBT=function(s){for(var h=new Array(s),c=n.prototype._countBits(s)-1,m=0;m<s;m++)h[m]=this.revBin(m,c,s);return h},Z.prototype.revBin=function(s,h,c){if(s===0||s===c-1)return s;for(var m=0,l=0;l<h;l++)m|=(s&1)<<h-l-1,s>>=1;return m},Z.prototype.permute=function(s,h,c,m,l,t){for(var u=0;u<t;u++)m[u]=h[s[u]],l[u]=c[s[u]]},Z.prototype.transform=function(s,h,c,m,l,t){this.permute(t,s,h,c,m,l);for(var u=1;u<l;u<<=1)for(var S=u<<1,B=Math.cos(2*Math.PI/S),k=Math.sin(2*Math.PI/S),q=0;q<l;q+=S)for(var F=B,ee=k,te=0;te<u;te++){var O=c[q+te],U=m[q+te],oe=c[q+te+u],Y=m[q+te+u],j=F*oe-ee*Y;Y=F*Y+ee*oe,oe=j,c[q+te]=O+oe,m[q+te]=U+Y,c[q+te+u]=O-oe,m[q+te+u]=U-Y,te!==S&&(j=B*F-k*ee,ee=B*ee+k*F,F=j)}},Z.prototype.guessLen13b=function(s,h){var c=Math.max(h,s)|1,m=c&1,l=0;for(c=c/2|0;c;c=c>>>1)l++;return 1<<l+1+m},Z.prototype.conjugate=function(s,h,c){if(!(c<=1))for(var m=0;m<c/2;m++){var l=s[m];s[m]=s[c-m-1],s[c-m-1]=l,l=h[m],h[m]=-h[c-m-1],h[c-m-1]=-l}},Z.prototype.normalize13b=function(s,h){for(var c=0,m=0;m<h/2;m++){var l=Math.round(s[2*m+1]/h)*8192+Math.round(s[2*m]/h)+c;s[m]=l&67108863,l<67108864?c=0:c=l/67108864|0}return s},Z.prototype.convert13b=function(s,h,c,m){for(var l=0,t=0;t<h;t++)l=l+(s[t]|0),c[2*t]=l&8191,l=l>>>13,c[2*t+1]=l&8191,l=l>>>13;for(t=2*h;t<m;++t)c[t]=0;f(l===0),f((l&-8192)===0)},Z.prototype.stub=function(s){for(var h=new Array(s),c=0;c<s;c++)h[c]=0;return h},Z.prototype.mulp=function(s,h,c){var m=2*this.guessLen13b(s.length,h.length),l=this.makeRBT(m),t=this.stub(m),u=new Array(m),S=new Array(m),B=new Array(m),k=new Array(m),q=new Array(m),F=new Array(m),ee=c.words;ee.length=m,this.convert13b(s.words,s.length,u,m),this.convert13b(h.words,h.length,k,m),this.transform(u,t,S,B,m,l),this.transform(k,t,q,F,m,l);for(var te=0;te<m;te++){var O=S[te]*q[te]-B[te]*F[te];B[te]=S[te]*F[te]+B[te]*q[te],S[te]=O}return this.conjugate(S,B,m),this.transform(S,B,ee,t,m,l),this.conjugate(ee,t,m),this.normalize13b(ee,m),c.negative=s.negative^h.negative,c.length=s.length+h.length,c._strip()},n.prototype.mul=function(s){var h=new n(null);return h.words=new Array(this.length+s.length),this.mulTo(s,h)},n.prototype.mulf=function(s){var h=new n(null);return h.words=new Array(this.length+s.length),D(this,s,h)},n.prototype.imul=function(s){return this.clone().mulTo(s,this)},n.prototype.imuln=function(s){var h=s<0;h&&(s=-s),f(typeof s=="number"),f(s<67108864);for(var c=0,m=0;m<this.length;m++){var l=(this.words[m]|0)*s,t=(l&67108863)+(c&67108863);c>>=26,c+=l/67108864|0,c+=t>>>26,this.words[m]=t&67108863}return c!==0&&(this.words[m]=c,this.length++),this.length=s===0?1:this.length,h?this.ineg():this},n.prototype.muln=function(s){return this.clone().imuln(s)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(s){var h=T(s);if(h.length===0)return new n(1);for(var c=this,m=0;m<h.length&&h[m]===0;m++,c=c.sqr());if(++m<h.length)for(var l=c.sqr();m<h.length;m++,l=l.sqr())h[m]!==0&&(c=c.mul(l));return c},n.prototype.iushln=function(s){f(typeof s=="number"&&s>=0);var h=s%26,c=(s-h)/26,m=67108863>>>26-h<<26-h,l;if(h!==0){var t=0;for(l=0;l<this.length;l++){var u=this.words[l]&m,S=(this.words[l]|0)-u<<h;this.words[l]=S|t,t=u>>>26-h}t&&(this.words[l]=t,this.length++)}if(c!==0){for(l=this.length-1;l>=0;l--)this.words[l+c]=this.words[l];for(l=0;l<c;l++)this.words[l]=0;this.length+=c}return this._strip()},n.prototype.ishln=function(s){return f(this.negative===0),this.iushln(s)},n.prototype.iushrn=function(s,h,c){f(typeof s=="number"&&s>=0);var m;h?m=(h-h%26)/26:m=0;var l=s%26,t=Math.min((s-l)/26,this.length),u=67108863^67108863>>>l<<l,S=c;if(m-=t,m=Math.max(0,m),S){for(var B=0;B<t;B++)S.words[B]=this.words[B];S.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>=m);B--){var q=this.words[B]|0;this.words[B]=k<<26-l|q>>>l,k=q&u}return S&&k!==0&&(S.words[S.length++]=k),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},n.prototype.ishrn=function(s,h,c){return f(this.negative===0),this.iushrn(s,h,c)},n.prototype.shln=function(s){return this.clone().ishln(s)},n.prototype.ushln=function(s){return this.clone().iushln(s)},n.prototype.shrn=function(s){return this.clone().ishrn(s)},n.prototype.ushrn=function(s){return this.clone().iushrn(s)},n.prototype.testn=function(s){f(typeof s=="number"&&s>=0);var h=s%26,c=(s-h)/26,m=1<<h;if(this.length<=c)return!1;var l=this.words[c];return!!(l&m)},n.prototype.imaskn=function(s){f(typeof s=="number"&&s>=0);var h=s%26,c=(s-h)/26;if(f(this.negative===0,"imaskn works only with positive numbers"),this.length<=c)return this;if(h!==0&&c++,this.length=Math.min(c,this.length),h!==0){var m=67108863^67108863>>>h<<h;this.words[this.length-1]&=m}return this._strip()},n.prototype.maskn=function(s){return this.clone().imaskn(s)},n.prototype.iaddn=function(s){return f(typeof s=="number"),f(s<67108864),s<0?this.isubn(-s):this.negative!==0?this.length===1&&(this.words[0]|0)<=s?(this.words[0]=s-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(s),this.negative=1,this):this._iaddn(s)},n.prototype._iaddn=function(s){this.words[0]+=s;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},n.prototype.isubn=function(s){if(f(typeof s=="number"),f(s<67108864),s<0)return this.iaddn(-s);if(this.negative!==0)return this.negative=0,this.iaddn(s),this.negative=1,this;if(this.words[0]-=s,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()},n.prototype.addn=function(s){return this.clone().iaddn(s)},n.prototype.subn=function(s){return this.clone().isubn(s)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(s,h,c){var m=s.length+c,l;this._expand(m);var t,u=0;for(l=0;l<s.length;l++){t=(this.words[l+c]|0)+u;var S=(s.words[l]|0)*h;t-=S&67108863,u=(t>>26)-(S/67108864|0),this.words[l+c]=t&67108863}for(;l<this.length-c;l++)t=(this.words[l+c]|0)+u,u=t>>26,this.words[l+c]=t&67108863;if(u===0)return this._strip();for(f(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()},n.prototype._wordDiv=function(s,h){var c=this.length-s.length,m=this.clone(),l=s,t=l.words[l.length-1]|0,u=this._countBits(t);c=26-u,c!==0&&(l=l.ushln(c),m.iushln(c),t=l.words[l.length-1]|0);var S=m.length-l.length,B;if(h!=="mod"){B=new n(null),B.length=S+1,B.words=new Array(B.length);for(var k=0;k<B.length;k++)B.words[k]=0}var q=m.clone()._ishlnsubmul(l,1,S);q.negative===0&&(m=q,B&&(B.words[S]=1));for(var F=S-1;F>=0;F--){var ee=(m.words[l.length+F]|0)*67108864+(m.words[l.length+F-1]|0);for(ee=Math.min(ee/t|0,67108863),m._ishlnsubmul(l,ee,F);m.negative!==0;)ee--,m.negative=0,m._ishlnsubmul(l,1,F),m.isZero()||(m.negative^=1);B&&(B.words[F]=ee)}return B&&B._strip(),m._strip(),h!=="div"&&c!==0&&m.iushrn(c),{div:B||null,mod:m}},n.prototype.divmod=function(s,h,c){if(f(!s.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var m,l,t;return this.negative!==0&&s.negative===0?(t=this.neg().divmod(s,h),h!=="mod"&&(m=t.div.neg()),h!=="div"&&(l=t.mod.neg(),c&&l.negative!==0&&l.iadd(s)),{div:m,mod:l}):this.negative===0&&s.negative!==0?(t=this.divmod(s.neg(),h),h!=="mod"&&(m=t.div.neg()),{div:m,mod:t.mod}):this.negative&s.negative?(t=this.neg().divmod(s.neg(),h),h!=="div"&&(l=t.mod.neg(),c&&l.negative!==0&&l.isub(s)),{div:t.div,mod:l}):s.length>this.length||this.cmp(s)<0?{div:new n(0),mod:this}:s.length===1?h==="div"?{div:this.divn(s.words[0]),mod:null}:h==="mod"?{div:null,mod:new n(this.modrn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new n(this.modrn(s.words[0]))}:this._wordDiv(s,h)},n.prototype.div=function(s){return this.divmod(s,"div",!1).div},n.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},n.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},n.prototype.divRound=function(s){var h=this.divmod(s);if(h.mod.isZero())return h.div;var c=h.div.negative!==0?h.mod.isub(s):h.mod,m=s.ushrn(1),l=s.andln(1),t=c.cmp(m);return t<0||l===1&&t===0?h.div:h.div.negative!==0?h.div.isubn(1):h.div.iaddn(1)},n.prototype.modrn=function(s){var h=s<0;h&&(s=-s),f(s<=67108863);for(var c=(1<<26)%s,m=0,l=this.length-1;l>=0;l--)m=(c*m+(this.words[l]|0))%s;return h?-m:m},n.prototype.modn=function(s){return this.modrn(s)},n.prototype.idivn=function(s){var h=s<0;h&&(s=-s),f(s<=67108863);for(var c=0,m=this.length-1;m>=0;m--){var l=(this.words[m]|0)+c*67108864;this.words[m]=l/s|0,c=l%s}return this._strip(),h?this.ineg():this},n.prototype.divn=function(s){return this.clone().idivn(s)},n.prototype.egcd=function(s){f(s.negative===0),f(!s.isZero());var h=this,c=s.clone();h.negative!==0?h=h.umod(s):h=h.clone();for(var m=new n(1),l=new n(0),t=new n(0),u=new n(1),S=0;h.isEven()&&c.isEven();)h.iushrn(1),c.iushrn(1),++S;for(var B=c.clone(),k=h.clone();!h.isZero();){for(var q=0,F=1;!(h.words[0]&F)&&q<26;++q,F<<=1);if(q>0)for(h.iushrn(q);q-- >0;)(m.isOdd()||l.isOdd())&&(m.iadd(B),l.isub(k)),m.iushrn(1),l.iushrn(1);for(var ee=0,te=1;!(c.words[0]&te)&&ee<26;++ee,te<<=1);if(ee>0)for(c.iushrn(ee);ee-- >0;)(t.isOdd()||u.isOdd())&&(t.iadd(B),u.isub(k)),t.iushrn(1),u.iushrn(1);h.cmp(c)>=0?(h.isub(c),m.isub(t),l.isub(u)):(c.isub(h),t.isub(m),u.isub(l))}return{a:t,b:u,gcd:c.iushln(S)}},n.prototype._invmp=function(s){f(s.negative===0),f(!s.isZero());var h=this,c=s.clone();h.negative!==0?h=h.umod(s):h=h.clone();for(var m=new n(1),l=new n(0),t=c.clone();h.cmpn(1)>0&&c.cmpn(1)>0;){for(var u=0,S=1;!(h.words[0]&S)&&u<26;++u,S<<=1);if(u>0)for(h.iushrn(u);u-- >0;)m.isOdd()&&m.iadd(t),m.iushrn(1);for(var B=0,k=1;!(c.words[0]&k)&&B<26;++B,k<<=1);if(B>0)for(c.iushrn(B);B-- >0;)l.isOdd()&&l.iadd(t),l.iushrn(1);h.cmp(c)>=0?(h.isub(c),m.isub(l)):(c.isub(h),l.isub(m))}var q;return h.cmpn(1)===0?q=m:q=l,q.cmpn(0)<0&&q.iadd(s),q},n.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var h=this.clone(),c=s.clone();h.negative=0,c.negative=0;for(var m=0;h.isEven()&&c.isEven();m++)h.iushrn(1),c.iushrn(1);do{for(;h.isEven();)h.iushrn(1);for(;c.isEven();)c.iushrn(1);var l=h.cmp(c);if(l<0){var t=h;h=c,c=t}else if(l===0||c.cmpn(1)===0)break;h.isub(c)}while(!0);return c.iushln(m)},n.prototype.invm=function(s){return this.egcd(s).a.umod(s)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(s){return this.words[0]&s},n.prototype.bincn=function(s){f(typeof s=="number");var h=s%26,c=(s-h)/26,m=1<<h;if(this.length<=c)return this._expand(c+1),this.words[c]|=m,this;for(var l=m,t=c;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},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(s){var h=s<0;if(this.negative!==0&&!h)return-1;if(this.negative===0&&h)return 1;this._strip();var c;if(this.length>1)c=1;else{h&&(s=-s),f(s<=67108863,"Number is too big");var m=this.words[0]|0;c=m===s?0:m<s?-1:1}return this.negative!==0?-c|0:c},n.prototype.cmp=function(s){if(this.negative!==0&&s.negative===0)return-1;if(this.negative===0&&s.negative!==0)return 1;var h=this.ucmp(s);return this.negative!==0?-h|0:h},n.prototype.ucmp=function(s){if(this.length>s.length)return 1;if(this.length<s.length)return-1;for(var h=0,c=this.length-1;c>=0;c--){var m=this.words[c]|0,l=s.words[c]|0;if(m!==l){m<l?h=-1:m>l&&(h=1);break}}return h},n.prototype.gtn=function(s){return this.cmpn(s)===1},n.prototype.gt=function(s){return this.cmp(s)===1},n.prototype.gten=function(s){return this.cmpn(s)>=0},n.prototype.gte=function(s){return this.cmp(s)>=0},n.prototype.ltn=function(s){return this.cmpn(s)===-1},n.prototype.lt=function(s){return this.cmp(s)===-1},n.prototype.lten=function(s){return this.cmpn(s)<=0},n.prototype.lte=function(s){return this.cmp(s)<=0},n.prototype.eqn=function(s){return this.cmpn(s)===0},n.prototype.eq=function(s){return this.cmp(s)===0},n.red=function(s){return new e(s)},n.prototype.toRed=function(s){return f(!this.red,"Already a number in reduction context"),f(this.negative===0,"red works only with positives"),s.convertTo(this)._forceRed(s)},n.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(s){return this.red=s,this},n.prototype.forceRed=function(s){return f(!this.red,"Already a number in reduction context"),this._forceRed(s)},n.prototype.redAdd=function(s){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,s)},n.prototype.redIAdd=function(s){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s)},n.prototype.redSub=function(s){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,s)},n.prototype.redISub=function(s){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,s)},n.prototype.redShl=function(s){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,s)},n.prototype.redMul=function(s){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.mul(this,s)},n.prototype.redIMul=function(s){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.imul(this,s)},n.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(s){return f(this.red&&!s.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s)};var W={k256:null,p224:null,p192:null,p25519:null};function Q(i,s){this.name=i,this.p=new n(s,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Q.prototype._tmp=function(){var s=new n(null);return s.words=new Array(Math.ceil(this.n/13)),s},Q.prototype.ireduce=function(s){var h=s,c;do this.split(h,this.tmp),h=this.imulK(h),h=h.iadd(this.tmp),c=h.bitLength();while(c>this.n);var m=c<this.n?-1:h.ucmp(this.p);return m===0?(h.words[0]=0,h.length=1):m>0?h.isub(this.p):h.strip!==void 0?h.strip():h._strip(),h},Q.prototype.split=function(s,h){s.iushrn(this.n,0,h)},Q.prototype.imulK=function(s){return s.imul(this.k)};function K(){Q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}d(K,Q),K.prototype.split=function(s,h){for(var c=4194303,m=Math.min(s.length,9),l=0;l<m;l++)h.words[l]=s.words[l];if(h.length=m,s.length<=9){s.words[0]=0,s.length=1;return}var t=s.words[9];for(h.words[h.length++]=t&c,l=10;l<s.length;l++){var u=s.words[l]|0;s.words[l-10]=(u&c)<<4|t>>>22,t=u}t>>>=22,s.words[l-10]=t,t===0&&s.length>10?s.length-=10:s.length-=9},K.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var h=0,c=0;c<s.length;c++){var m=s.words[c]|0;h+=m*977,s.words[c]=h&67108863,h=m*64+(h/67108864|0)}return s.words[s.length-1]===0&&(s.length--,s.words[s.length-1]===0&&s.length--),s};function z(){Q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}d(z,Q);function X(){Q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}d(X,Q);function p(){Q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}d(p,Q),p.prototype.imulK=function(s){for(var h=0,c=0;c<s.length;c++){var m=(s.words[c]|0)*19+h,l=m&67108863;m>>>=26,s.words[c]=l,h=m}return h!==0&&(s.words[s.length++]=h),s},n._prime=function(s){if(W[s])return W[s];var h;if(s==="k256")h=new K;else if(s==="p224")h=new z;else if(s==="p192")h=new X;else if(s==="p25519")h=new p;else throw new Error("Unknown prime "+s);return W[s]=h,h};function e(i){if(typeof i=="string"){var s=n._prime(i);this.m=s.p,this.prime=s}else f(i.gtn(1),"modulus must be greater than 1"),this.m=i,this.prime=null}e.prototype._verify1=function(s){f(s.negative===0,"red works only with positives"),f(s.red,"red works only with red numbers")},e.prototype._verify2=function(s,h){f((s.negative|h.negative)===0,"red works only with positives"),f(s.red&&s.red===h.red,"red works only with red numbers")},e.prototype.imod=function(s){return this.prime?this.prime.ireduce(s)._forceRed(this):(w(s,s.umod(this.m)._forceRed(this)),s)},e.prototype.neg=function(s){return s.isZero()?s.clone():this.m.sub(s)._forceRed(this)},e.prototype.add=function(s,h){this._verify2(s,h);var c=s.add(h);return c.cmp(this.m)>=0&&c.isub(this.m),c._forceRed(this)},e.prototype.iadd=function(s,h){this._verify2(s,h);var c=s.iadd(h);return c.cmp(this.m)>=0&&c.isub(this.m),c},e.prototype.sub=function(s,h){this._verify2(s,h);var c=s.sub(h);return c.cmpn(0)<0&&c.iadd(this.m),c._forceRed(this)},e.prototype.isub=function(s,h){this._verify2(s,h);var c=s.isub(h);return c.cmpn(0)<0&&c.iadd(this.m),c},e.prototype.shl=function(s,h){return this._verify1(s),this.imod(s.ushln(h))},e.prototype.imul=function(s,h){return this._verify2(s,h),this.imod(s.imul(h))},e.prototype.mul=function(s,h){return this._verify2(s,h),this.imod(s.mul(h))},e.prototype.isqr=function(s){return this.imul(s,s.clone())},e.prototype.sqr=function(s){return this.mul(s,s)},e.prototype.sqrt=function(s){if(s.isZero())return s.clone();var h=this.m.andln(3);if(f(h%2===1),h===3){var c=this.m.add(new n(1)).iushrn(2);return this.pow(s,c)}for(var m=this.m.subn(1),l=0;!m.isZero()&&m.andln(1)===0;)l++,m.iushrn(1);f(!m.isZero());var t=new n(1).toRed(this),u=t.redNeg(),S=this.m.subn(1).iushrn(1),B=this.m.bitLength();for(B=new n(2*B*B).toRed(this);this.pow(B,S).cmp(u)!==0;)B.redIAdd(u);for(var k=this.pow(B,m),q=this.pow(s,m.addn(1).iushrn(1)),F=this.pow(s,m),ee=l;F.cmp(t)!==0;){for(var te=F,O=0;te.cmp(t)!==0;O++)te=te.redSqr();f(O<ee);var U=this.pow(k,new n(1).iushln(ee-O-1));q=q.redMul(U),k=U.redSqr(),F=F.redMul(k),ee=O}return q},e.prototype.invm=function(s){var h=s._invmp(this.m);return h.negative!==0?(h.negative=0,this.imod(h).redNeg()):this.imod(h)},e.prototype.pow=function(s,h){if(h.isZero())return new n(1).toRed(this);if(h.cmpn(1)===0)return s.clone();var c=4,m=new Array(1<<c);m[0]=new n(1).toRed(this),m[1]=s;for(var l=2;l<m.length;l++)m[l]=this.mul(m[l-1],s);var t=m[0],u=0,S=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 F=k>>q&1;if(t!==m[0]&&(t=this.sqr(t)),F===0&&u===0){S=0;continue}u<<=1,u|=F,S++,!(S!==c&&(l!==0||q!==0))&&(t=this.mul(t,m[u]),S=0,u=0)}B=26}return t},e.prototype.convertTo=function(s){var h=s.umod(this.m);return h===s?h.clone():h},e.prototype.convertFrom=function(s){var h=s.clone();return h.red=null,h},n.mont=function(s){return new r(s)};function r(i){e.call(this,i),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(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)}d(r,e),r.prototype.convertTo=function(s){return this.imod(s.ushln(this.shift))},r.prototype.convertFrom=function(s){var h=this.imod(s.mul(this.rinv));return h.red=null,h},r.prototype.imul=function(s,h){if(s.isZero()||h.isZero())return s.words[0]=0,s.length=1,s;var c=s.imul(h),m=c.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),l=c.isub(m).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(s,h){if(s.isZero()||h.isZero())return new n(0)._forceRed(this);var c=s.mul(h),m=c.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),l=c.isub(m).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(s){var h=this.imod(s._invmp(this.m).mul(this.r2));return h._forceRed(this)}})(typeof sx>"u"||sx,MK)});var ys=St(gi=>{"use strict";var swe=Ae(Be());Ie();Re();var wue=Kf(),Mue=Cn();gi.inherits=Mue;function _ue(a,o){return(a.charCodeAt(o)&64512)!==55296||o<0||o+1>=a.length?!1:(a.charCodeAt(o+1)&64512)===56320}function xue(a,o){if(Array.isArray(a))return a.slice();if(!a)return[];var f=[];if(typeof a=="string")if(o){if(o==="hex")for(a=a.replace(/[^a-z0-9]+/ig,""),a.length%2!==0&&(a="0"+a),n=0;n<a.length;n+=2)f.push(parseInt(a[n]+a[n+1],16))}else for(var d=0,n=0;n<a.length;n++){var v=a.charCodeAt(n);v<128?f[d++]=v:v<2048?(f[d++]=v>>6|192,f[d++]=v&63|128):_ue(a,n)?(v=65536+((v&1023)<<10)+(a.charCodeAt(++n)&1023),f[d++]=v>>18|240,f[d++]=v>>12&63|128,f[d++]=v>>6&63|128,f[d++]=v&63|128):(f[d++]=v>>12|224,f[d++]=v>>6&63|128,f[d++]=v&63|128)}else for(n=0;n<a.length;n++)f[n]=a[n]|0;return f}gi.toArray=xue;function Sue(a){for(var o="",f=0;f<a.length;f++)o+=ZK(a[f].toString(16));return o}gi.toHex=Sue;function WK(a){var o=a>>>24|a>>>8&65280|a<<8&16711680|(a&255)<<24;return o>>>0}gi.htonl=WK;function Eue(a,o){for(var f="",d=0;d<a.length;d++){var n=a[d];o==="little"&&(n=WK(n)),f+=GK(n.toString(16))}return f}gi.toHex32=Eue;function ZK(a){return a.length===1?"0"+a:a}gi.zero2=ZK;function GK(a){return a.length===7?"0"+a:a.length===6?"00"+a:a.length===5?"000"+a:a.length===4?"0000"+a:a.length===3?"00000"+a:a.length===2?"000000"+a:a.length===1?"0000000"+a:a}gi.zero8=GK;function Aue(a,o,f,d){var n=f-o;wue(n%4===0);for(var v=new Array(n/4),b=0,y=o;b<v.length;b++,y+=4){var M;d==="big"?M=a[y]<<24|a[y+1]<<16|a[y+2]<<8|a[y+3]:M=a[y+3]<<24|a[y+2]<<16|a[y+1]<<8|a[y],v[b]=M>>>0}return v}gi.join32=Aue;function Bue(a,o){for(var f=new Array(a.length*4),d=0,n=0;d<a.length;d++,n+=4){var v=a[d];o==="big"?(f[n]=v>>>24,f[n+1]=v>>>16&255,f[n+2]=v>>>8&255,f[n+3]=v&255):(f[n+3]=v>>>24,f[n+2]=v>>>16&255,f[n+1]=v>>>8&255,f[n]=v&255)}return f}gi.split32=Bue;function Rue(a,o){return a>>>o|a<<32-o}gi.rotr32=Rue;function Iue(a,o){return a<<o|a>>>32-o}gi.rotl32=Iue;function Tue(a,o){return a+o>>>0}gi.sum32=Tue;function kue(a,o,f){return a+o+f>>>0}gi.sum32_3=kue;function $ue(a,o,f,d){return a+o+f+d>>>0}gi.sum32_4=$ue;function Pue(a,o,f,d,n){return a+o+f+d+n>>>0}gi.sum32_5=Pue;function Nue(a,o,f,d){var n=a[o],v=a[o+1],b=d+v>>>0,y=(b<d?1:0)+f+n;a[o]=y>>>0,a[o+1]=b}gi.sum64=Nue;function Cue(a,o,f,d){var n=o+d>>>0,v=(n<o?1:0)+a+f;return v>>>0}gi.sum64_hi=Cue;function Lue(a,o,f,d){var n=o+d;return n>>>0}gi.sum64_lo=Lue;function Due(a,o,f,d,n,v,b,y){var M=0,w=o;w=w+d>>>0,M+=w<o?1:0,w=w+v>>>0,M+=w<v?1:0,w=w+y>>>0,M+=w<y?1:0;var g=a+f+n+b+M;return g>>>0}gi.sum64_4_hi=Due;function Oue(a,o,f,d,n,v,b,y){var M=o+d+v+y;return M>>>0}gi.sum64_4_lo=Oue;function que(a,o,f,d,n,v,b,y,M,w){var g=0,_=o;_=_+d>>>0,g+=_<o?1:0,_=_+v>>>0,g+=_<v?1:0,_=_+y>>>0,g+=_<y?1:0,_=_+w>>>0,g+=_<w?1:0;var x=a+f+n+b+M+g;return x>>>0}gi.sum64_5_hi=que;function Uue(a,o,f,d,n,v,b,y,M,w){var g=o+d+v+y+w;return g>>>0}gi.sum64_5_lo=Uue;function Fue(a,o,f){var d=o<<32-f|a>>>f;return d>>>0}gi.rotr64_hi=Fue;function zue(a,o,f){var d=a<<32-f|o>>>f;return d>>>0}gi.rotr64_lo=zue;function Hue(a,o,f){return a>>>f}gi.shr64_hi=Hue;function Kue(a,o,f){var d=a<<32-f|o>>>f;return d>>>0}gi.shr64_lo=Kue});var bd=St(JK=>{"use strict";var lwe=Ae(Be());Ie();Re();var VK=ys(),jue=Kf();function H6(){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}JK.BlockHash=H6;H6.prototype.update=function(o,f){if(o=VK.toArray(o,f),this.pending?this.pending=this.pending.concat(o):this.pending=o,this.pendingTotal+=o.length,this.pending.length>=this._delta8){o=this.pending;var d=o.length%this._delta8;this.pending=o.slice(o.length-d,o.length),this.pending.length===0&&(this.pending=null),o=VK.join32(o,0,o.length-d,this.endian);for(var n=0;n<o.length;n+=this._delta32)this._update(o,n,n+this._delta32)}return this};H6.prototype.digest=function(o){return this.update(this._pad()),jue(this.pending===null),this._digest(o)};H6.prototype._pad=function(){var o=this.pendingTotal,f=this._delta8,d=f-(o+this.padLength)%f,n=new Array(d+this.padLength);n[0]=128;for(var v=1;v<d;v++)n[v]=0;if(o<<=3,this.endian==="big"){for(var b=8;b<this.padLength;b++)n[v++]=0;n[v++]=0,n[v++]=0,n[v++]=0,n[v++]=0,n[v++]=o>>>24&255,n[v++]=o>>>16&255,n[v++]=o>>>8&255,n[v++]=o&255}else for(n[v++]=o&255,n[v++]=o>>>8&255,n[v++]=o>>>16&255,n[v++]=o>>>24&255,n[v++]=0,n[v++]=0,n[v++]=0,n[v++]=0,b=8;b<this.padLength;b++)n[v++]=0;return n}});var px=St(Jf=>{"use strict";var vwe=Ae(Be());Ie();Re();var Wue=ys(),af=Wue.rotr32;function Zue(a,o,f,d){if(a===0)return YK(o,f,d);if(a===1||a===3)return QK(o,f,d);if(a===2)return XK(o,f,d)}Jf.ft_1=Zue;function YK(a,o,f){return a&o^~a&f}Jf.ch32=YK;function XK(a,o,f){return a&o^a&f^o&f}Jf.maj32=XK;function QK(a,o,f){return a^o^f}Jf.p32=QK;function Gue(a){return af(a,2)^af(a,13)^af(a,22)}Jf.s0_256=Gue;function Vue(a){return af(a,6)^af(a,11)^af(a,25)}Jf.s1_256=Vue;function Jue(a){return af(a,7)^af(a,18)^a>>>3}Jf.g0_256=Jue;function Yue(a){return af(a,17)^af(a,19)^a>>>10}Jf.g1_256=Yue});var rj=St((gwe,tj)=>{"use strict";var ywe=Ae(Be());Ie();Re();var md=ys(),Xue=bd(),Que=px(),vx=md.rotl32,k1=md.sum32,ele=md.sum32_5,tle=Que.ft_1,ej=Xue.BlockHash,rle=[1518500249,1859775393,2400959708,3395469782];function of(){if(!(this instanceof of))return new of;ej.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}md.inherits(of,ej);tj.exports=of;of.blockSize=512;of.outSize=160;of.hmacStrength=80;of.padLength=64;of.prototype._update=function(o,f){for(var d=this.W,n=0;n<16;n++)d[n]=o[f+n];for(;n<d.length;n++)d[n]=vx(d[n-3]^d[n-8]^d[n-14]^d[n-16],1);var v=this.h[0],b=this.h[1],y=this.h[2],M=this.h[3],w=this.h[4];for(n=0;n<d.length;n++){var g=~~(n/20),_=ele(vx(v,5),tle(g,b,y,M),w,d[n],rle[g]);w=M,M=y,y=vx(b,30),b=v,v=_}this.h[0]=k1(this.h[0],v),this.h[1]=k1(this.h[1],b),this.h[2]=k1(this.h[2],y),this.h[3]=k1(this.h[3],M),this.h[4]=k1(this.h[4],w)};of.prototype._digest=function(o){return o==="hex"?md.toHex32(this.h,"big"):md.split32(this.h,"big")}});var bx=St((_we,nj)=>{"use strict";var xwe=Ae(Be());Ie();Re();var gd=ys(),ile=bd(),yd=px(),nle=Kf(),ws=gd.sum32,ale=gd.sum32_4,ole=gd.sum32_5,sle=yd.ch32,fle=yd.maj32,hle=yd.s0_256,ule=yd.s1_256,lle=yd.g0_256,dle=yd.g1_256,ij=ile.BlockHash,cle=[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 sf(){if(!(this instanceof sf))return new sf;ij.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=cle,this.W=new Array(64)}gd.inherits(sf,ij);nj.exports=sf;sf.blockSize=512;sf.outSize=256;sf.hmacStrength=192;sf.padLength=64;sf.prototype._update=function(o,f){for(var d=this.W,n=0;n<16;n++)d[n]=o[f+n];for(;n<d.length;n++)d[n]=ale(dle(d[n-2]),d[n-7],lle(d[n-15]),d[n-16]);var v=this.h[0],b=this.h[1],y=this.h[2],M=this.h[3],w=this.h[4],g=this.h[5],_=this.h[6],x=this.h[7];for(nle(this.k.length===d.length),n=0;n<d.length;n++){var E=ole(x,ule(w),sle(w,g,_),this.k[n],d[n]),R=ws(hle(v),fle(v,b,y));x=_,_=g,g=w,w=ws(M,E),M=y,y=b,b=v,v=ws(E,R)}this.h[0]=ws(this.h[0],v),this.h[1]=ws(this.h[1],b),this.h[2]=ws(this.h[2],y),this.h[3]=ws(this.h[3],M),this.h[4]=ws(this.h[4],w),this.h[5]=ws(this.h[5],g),this.h[6]=ws(this.h[6],_),this.h[7]=ws(this.h[7],x)};sf.prototype._digest=function(o){return o==="hex"?gd.toHex32(this.h,"big"):gd.split32(this.h,"big")}});var sj=St((Awe,oj)=>{"use strict";var Bwe=Ae(Be());Ie();Re();var mx=ys(),aj=bx();function Yf(){if(!(this instanceof Yf))return new Yf;aj.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}mx.inherits(Yf,aj);oj.exports=Yf;Yf.blockSize=512;Yf.outSize=224;Yf.hmacStrength=192;Yf.padLength=64;Yf.prototype._digest=function(o){return o==="hex"?mx.toHex32(this.h.slice(0,7),"big"):mx.split32(this.h.slice(0,7),"big")}});var wx=St((Twe,lj)=>{"use strict";var kwe=Ae(Be());Ie();Re();var Ma=ys(),ple=bd(),vle=Kf(),ff=Ma.rotr64_hi,hf=Ma.rotr64_lo,fj=Ma.shr64_hi,hj=Ma.shr64_lo,oh=Ma.sum64,gx=Ma.sum64_hi,yx=Ma.sum64_lo,ble=Ma.sum64_4_hi,mle=Ma.sum64_4_lo,gle=Ma.sum64_5_hi,yle=Ma.sum64_5_lo,uj=ple.BlockHash,wle=[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 Ms(){if(!(this instanceof Ms))return new Ms;uj.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=wle,this.W=new Array(160)}Ma.inherits(Ms,uj);lj.exports=Ms;Ms.blockSize=1024;Ms.outSize=512;Ms.hmacStrength=192;Ms.padLength=128;Ms.prototype._prepareBlock=function(o,f){for(var d=this.W,n=0;n<32;n++)d[n]=o[f+n];for(;n<d.length;n+=2){var v=kle(d[n-4],d[n-3]),b=$le(d[n-4],d[n-3]),y=d[n-14],M=d[n-13],w=Ile(d[n-30],d[n-29]),g=Tle(d[n-30],d[n-29]),_=d[n-32],x=d[n-31];d[n]=ble(v,b,y,M,w,g,_,x),d[n+1]=mle(v,b,y,M,w,g,_,x)}};Ms.prototype._update=function(o,f){this._prepareBlock(o,f);var d=this.W,n=this.h[0],v=this.h[1],b=this.h[2],y=this.h[3],M=this.h[4],w=this.h[5],g=this.h[6],_=this.h[7],x=this.h[8],E=this.h[9],R=this.h[10],T=this.h[11],N=this.h[12],P=this.h[13],L=this.h[14],D=this.h[15];vle(this.k.length===d.length);for(var Z=0;Z<d.length;Z+=2){var W=L,Q=D,K=Ble(x,E),z=Rle(x,E),X=Mle(x,E,R,T,N,P),p=_le(x,E,R,T,N,P),e=this.k[Z],r=this.k[Z+1],i=d[Z],s=d[Z+1],h=gle(W,Q,K,z,X,p,e,r,i,s),c=yle(W,Q,K,z,X,p,e,r,i,s);W=Ele(n,v),Q=Ale(n,v),K=xle(n,v,b,y,M,w),z=Sle(n,v,b,y,M,w);var m=gx(W,Q,K,z),l=yx(W,Q,K,z);L=N,D=P,N=R,P=T,R=x,T=E,x=gx(g,_,h,c),E=yx(_,_,h,c),g=M,_=w,M=b,w=y,b=n,y=v,n=gx(h,c,m,l),v=yx(h,c,m,l)}oh(this.h,0,n,v),oh(this.h,2,b,y),oh(this.h,4,M,w),oh(this.h,6,g,_),oh(this.h,8,x,E),oh(this.h,10,R,T),oh(this.h,12,N,P),oh(this.h,14,L,D)};Ms.prototype._digest=function(o){return o==="hex"?Ma.toHex32(this.h,"big"):Ma.split32(this.h,"big")};function Mle(a,o,f,d,n){var v=a&f^~a&n;return v<0&&(v+=4294967296),v}function _le(a,o,f,d,n,v){var b=o&d^~o&v;return b<0&&(b+=4294967296),b}function xle(a,o,f,d,n){var v=a&f^a&n^f&n;return v<0&&(v+=4294967296),v}function Sle(a,o,f,d,n,v){var b=o&d^o&v^d&v;return b<0&&(b+=4294967296),b}function Ele(a,o){var f=ff(a,o,28),d=ff(o,a,2),n=ff(o,a,7),v=f^d^n;return v<0&&(v+=4294967296),v}function Ale(a,o){var f=hf(a,o,28),d=hf(o,a,2),n=hf(o,a,7),v=f^d^n;return v<0&&(v+=4294967296),v}function Ble(a,o){var f=ff(a,o,14),d=ff(a,o,18),n=ff(o,a,9),v=f^d^n;return v<0&&(v+=4294967296),v}function Rle(a,o){var f=hf(a,o,14),d=hf(a,o,18),n=hf(o,a,9),v=f^d^n;return v<0&&(v+=4294967296),v}function Ile(a,o){var f=ff(a,o,1),d=ff(a,o,8),n=fj(a,o,7),v=f^d^n;return v<0&&(v+=4294967296),v}function Tle(a,o){var f=hf(a,o,1),d=hf(a,o,8),n=hj(a,o,7),v=f^d^n;return v<0&&(v+=4294967296),v}function kle(a,o){var f=ff(a,o,19),d=ff(o,a,29),n=fj(a,o,6),v=f^d^n;return v<0&&(v+=4294967296),v}function $le(a,o){var f=hf(a,o,19),d=hf(o,a,29),n=hj(a,o,6),v=f^d^n;return v<0&&(v+=4294967296),v}});var pj=St((Nwe,cj)=>{"use strict";var Cwe=Ae(Be());Ie();Re();var Mx=ys(),dj=wx();function Xf(){if(!(this instanceof Xf))return new Xf;dj.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}Mx.inherits(Xf,dj);cj.exports=Xf;Xf.blockSize=1024;Xf.outSize=384;Xf.hmacStrength=192;Xf.padLength=128;Xf.prototype._digest=function(o){return o==="hex"?Mx.toHex32(this.h.slice(0,12),"big"):Mx.split32(this.h.slice(0,12),"big")}});var vj=St(wd=>{"use strict";var qwe=Ae(Be());Ie();Re();wd.sha1=rj();wd.sha224=sj();wd.sha256=bx();wd.sha384=pj();wd.sha512=wx()});var Mj=St(wj=>{"use strict";var Hwe=Ae(Be());Ie();Re();var Ou=ys(),Ple=bd(),K6=Ou.rotl32,bj=Ou.sum32,$1=Ou.sum32_3,mj=Ou.sum32_4,yj=Ple.BlockHash;function uf(){if(!(this instanceof uf))return new uf;yj.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}Ou.inherits(uf,yj);wj.ripemd160=uf;uf.blockSize=512;uf.outSize=160;uf.hmacStrength=192;uf.padLength=64;uf.prototype._update=function(o,f){for(var d=this.h[0],n=this.h[1],v=this.h[2],b=this.h[3],y=this.h[4],M=d,w=n,g=v,_=b,x=y,E=0;E<80;E++){var R=bj(K6(mj(d,gj(E,n,v,b),o[Lle[E]+f],Nle(E)),Ole[E]),y);d=y,y=b,b=K6(v,10),v=n,n=R,R=bj(K6(mj(M,gj(79-E,w,g,_),o[Dle[E]+f],Cle(E)),qle[E]),x),M=x,x=_,_=K6(g,10),g=w,w=R}R=$1(this.h[1],v,_),this.h[1]=$1(this.h[2],b,x),this.h[2]=$1(this.h[3],y,M),this.h[3]=$1(this.h[4],d,w),this.h[4]=$1(this.h[0],n,g),this.h[0]=R};uf.prototype._digest=function(o){return o==="hex"?Ou.toHex32(this.h,"little"):Ou.split32(this.h,"little")};function gj(a,o,f,d){return a<=15?o^f^d:a<=31?o&f|~o&d:a<=47?(o|~f)^d:a<=63?o&d|f&~d:o^(f|~d)}function Nle(a){return a<=15?0:a<=31?1518500249:a<=47?1859775393:a<=63?2400959708:2840853838}function Cle(a){return a<=15?1352829926:a<=31?1548603684:a<=47?1836072691:a<=63?2053994217:0}var Lle=[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],Dle=[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],Ole=[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],qle=[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 xj=St((Wwe,_j)=>{"use strict";var Zwe=Ae(Be());Ie();Re();var Ule=ys(),Fle=Kf();function Md(a,o,f){if(!(this instanceof Md))return new Md(a,o,f);this.Hash=a,this.blockSize=a.blockSize/8,this.outSize=a.outSize/8,this.inner=null,this.outer=null,this._init(Ule.toArray(o,f))}_j.exports=Md;Md.prototype._init=function(o){o.length>this.blockSize&&(o=new this.Hash().update(o).digest()),Fle(o.length<=this.blockSize);for(var f=o.length;f<this.blockSize;f++)o.push(0);for(f=0;f<o.length;f++)o[f]^=54;for(this.inner=new this.Hash().update(o),f=0;f<o.length;f++)o[f]^=106;this.outer=new this.Hash().update(o)};Md.prototype.update=function(o,f){return this.inner.update(o,f),this};Md.prototype.digest=function(o){return this.outer.update(this.inner.digest()),this.outer.digest(o)}});var _d=St(Sj=>{var Ywe=Ae(Be());Ie();Re();var Ln=Sj;Ln.utils=ys();Ln.common=bd();Ln.sha=vj();Ln.ripemd=Mj();Ln.hmac=xj();Ln.sha1=Ln.sha.sha1;Ln.sha256=Ln.sha.sha256;Ln.sha224=Ln.sha.sha224;Ln.sha384=Ln.sha.sha384;Ln.sha512=Ln.sha.sha512;Ln.ripemd160=Ln.ripemd.ripemd160});var zx=St((Fx,Hj)=>{"use strict";var QMe=Ae(Be());Ie();Re();(function(a){function o(t){return parseInt(t)===t}function f(t){if(!o(t.length))return!1;for(var u=0;u<t.length;u++)if(!o(t[u])||t[u]<0||t[u]>255)return!1;return!0}function d(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(!f(t))throw new Error("Array contains invalid value: "+t);return new Uint8Array(t)}if(o(t.length)&&f(t))return new Uint8Array(t);throw new Error("unsupported array-like object")}function n(t){return new Uint8Array(t)}function v(t,u,S,B,k){(B!=null||k!=null)&&(t.slice?t=t.slice(B,k):t=Array.prototype.slice.call(t,B,k)),u.set(t,S)}var b=function(){function t(S){var B=[],k=0;for(S=encodeURI(S);k<S.length;){var q=S.charCodeAt(k++);q===37?(B.push(parseInt(S.substr(k,2),16)),k+=2):B.push(q)}return d(B)}function u(S){for(var B=[],k=0;k<S.length;){var q=S[k];q<128?(B.push(String.fromCharCode(q)),k++):q>191&&q<224?(B.push(String.fromCharCode((q&31)<<6|S[k+1]&63)),k+=2):(B.push(String.fromCharCode((q&15)<<12|(S[k+1]&63)<<6|S[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 S(B){for(var k=[],q=0;q<B.length;q++){var F=B[q];k.push(u[(F&240)>>4]+u[F&15])}return k.join("")}return{toBytes:t,fromBytes:S}}(),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],g=[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],E=[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],R=[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],T=[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 z(t){for(var u=[],S=0;S<t.length;S+=4)u.push(t[S]<<24|t[S+1]<<16|t[S+2]<<8|t[S+3]);return u}var X=function(t){if(!(this instanceof X))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:d(t,!0)}),this._prepare()};X.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 S=(t+1)*4,B=this.key.length/4,k=z(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 F=0,ee=B,te;ee<S;){if(te=k[B-1],k[0]^=g[te>>16&255]<<24^g[te>>8&255]<<16^g[te&255]<<8^g[te>>24&255]^w[F]<<24,F+=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]^=g[te&255]^g[te>>8&255]<<8^g[te>>16&255]<<16^g[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<S;)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]},X.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,S=[0,0,0,0],B=z(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++)S[k]=x[B[k]>>24&255]^E[B[(k+1)%4]>>16&255]^R[B[(k+2)%4]>>8&255]^T[B[(k+3)%4]&255]^this._Ke[q][k];B=S.slice()}for(var F=n(16),ee,k=0;k<4;k++)ee=this._Ke[u][k],F[4*k]=(g[B[k]>>24&255]^ee>>24)&255,F[4*k+1]=(g[B[(k+1)%4]>>16&255]^ee>>16)&255,F[4*k+2]=(g[B[(k+2)%4]>>8&255]^ee>>8)&255,F[4*k+3]=(g[B[(k+3)%4]&255]^ee)&255;return F},X.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,S=[0,0,0,0],B=z(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++)S[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=S.slice()}for(var F=n(16),ee,k=0;k<4;k++)ee=this._Kd[u][k],F[4*k]=(_[B[k]>>24&255]^ee>>24)&255,F[4*k+1]=(_[B[(k+3)%4]>>16&255]^ee>>16)&255,F[4*k+2]=(_[B[(k+2)%4]>>8&255]^ee>>8)&255,F[4*k+3]=(_[B[(k+1)%4]&255]^ee)&255;return F};var p=function(t){if(!(this instanceof p))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new X(t)};p.prototype.encrypt=function(t){if(t=d(t),t.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var u=n(t.length),S=n(16),B=0;B<t.length;B+=16)v(t,S,0,B,B+16),S=this._aes.encrypt(S),v(S,u,B);return u},p.prototype.decrypt=function(t){if(t=d(t),t.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var u=n(t.length),S=n(16),B=0;B<t.length;B+=16)v(t,S,0,B,B+16),S=this._aes.decrypt(S),v(S,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=n(16);else if(u.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastCipherblock=d(u,!0),this._aes=new X(t)};e.prototype.encrypt=function(t){if(t=d(t),t.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var u=n(t.length),S=n(16),B=0;B<t.length;B+=16){v(t,S,0,B,B+16);for(var k=0;k<16;k++)S[k]^=this._lastCipherblock[k];this._lastCipherblock=this._aes.encrypt(S),v(this._lastCipherblock,u,B)}return u},e.prototype.decrypt=function(t){if(t=d(t),t.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var u=n(t.length),S=n(16),B=0;B<t.length;B+=16){v(t,S,0,B,B+16),S=this._aes.decrypt(S);for(var k=0;k<16;k++)u[B+k]=S[k]^this._lastCipherblock[k];v(t,this._lastCipherblock,0,B,B+16)}return u};var r=function(t,u,S){if(!(this instanceof r))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",!u)u=n(16);else if(u.length!=16)throw new Error("invalid initialation vector size (must be 16 size)");S||(S=1),this.segmentSize=S,this._shiftRegister=d(u,!0),this._aes=new X(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=d(t,!0),S,B=0;B<u.length;B+=this.segmentSize){S=this._aes.encrypt(this._shiftRegister);for(var k=0;k<this.segmentSize;k++)u[B+k]^=S[k];v(this._shiftRegister,this._shiftRegister,0,this.segmentSize),v(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=d(t,!0),S,B=0;B<u.length;B+=this.segmentSize){S=this._aes.encrypt(this._shiftRegister);for(var k=0;k<this.segmentSize;k++)u[B+k]^=S[k];v(this._shiftRegister,this._shiftRegister,0,this.segmentSize),v(t,this._shiftRegister,16-this.segmentSize,B,B+this.segmentSize)}return u};var i=function(t,u){if(!(this instanceof i))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",!u)u=n(16);else if(u.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastPrecipher=d(u,!0),this._lastPrecipherIndex=16,this._aes=new X(t)};i.prototype.encrypt=function(t){for(var u=d(t,!0),S=0;S<u.length;S++)this._lastPrecipherIndex===16&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),u[S]^=this._lastPrecipher[this._lastPrecipherIndex++];return u},i.prototype.decrypt=i.prototype.encrypt;var s=function(t){if(!(this instanceof s))throw Error("Counter must be instanitated with `new`");t!==0&&!t&&(t=1),typeof t=="number"?(this._counter=n(16),this.setValue(t)):this.setBytes(t)};s.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},s.prototype.setBytes=function(t){if(t=d(t,!0),t.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=t},s.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 s||(u=new s(u)),this._counter=u,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new X(t)};h.prototype.encrypt=function(t){for(var u=d(t,!0),S=0;S<u.length;S++)this._remainingCounterIndex===16&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),u[S]^=this._remainingCounter[this._remainingCounterIndex++];return u},h.prototype.decrypt=h.prototype.encrypt;function c(t){t=d(t,!0);var u=16-t.length%16,S=n(t.length+u);v(t,S);for(var B=t.length;B<S.length;B++)S[B]=u;return S}function m(t){if(t=d(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 S=t.length-u,B=0;B<u;B++)if(t[S+B]!==u)throw new Error("PKCS#7 invalid padding byte");var k=n(S);return v(t,k,0,0,S),k}var l={AES:X,Counter:s,ModeOfOperation:{ecb:p,cbc:e,cfb:r,ofb:i,ctr:h},utils:{hex:y,utf8:b},padding:{pkcs7:{pad:c,strip:m}},_arrayTest:{coerceArray:d,createArray:n,copyArray:v}};typeof Fx<"u"?Hj.exports=l:typeof define=="function"&&define.amd?define(l):(a.aesjs&&(l._aesjs=a.aesjs),a.aesjs=l)})(Fx)});var Wj=St((Gx,jj)=>{"use strict";var I_e=Ae(Be());Ie();Re();(function(a){function f(E){let R=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]),T=1779033703,N=3144134277,P=1013904242,L=2773480762,D=1359893119,Z=2600822924,W=528734635,Q=1541459225,K=new Uint32Array(64);function z(h){let c=0,m=h.length;for(;m>=64;){let l=T,t=N,u=P,S=L,B=D,k=Z,q=W,F=Q,ee,te,O,U,oe;for(te=0;te<16;te++)O=c+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)+(F+(R[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,F=q,q=k,k=B,B=S+U|0,S=u,u=t,t=l,l=U+oe|0;T=T+l|0,N=N+t|0,P=P+u|0,L=L+S|0,D=D+B|0,Z=Z+k|0,W=W+q|0,Q=Q+F|0,c+=64,m-=64}}z(E);let X,p=E.length%64,e=E.length/536870912|0,r=E.length<<3,i=p<56?56:120,s=E.slice(E.length-p,E.length);for(s.push(128),X=p+1;X<i;X++)s.push(0);return s.push(e>>>24&255),s.push(e>>>16&255),s.push(e>>>8&255),s.push(e>>>0&255),s.push(r>>>24&255),s.push(r>>>16&255),s.push(r>>>8&255),s.push(r>>>0&255),z(s),[T>>>24&255,T>>>16&255,T>>>8&255,T>>>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 d(E,R,T){E=E.length<=64?E:f(E);let N=64+R.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<E.length;D++)P[D]^=E[D];for(D=0;D<R.length;D++)P[64+D]=R[D];for(D=N-4;D<N;D++)P[D]=0;for(D=0;D<64;D++)L[D]=92;for(D=0;D<E.length;D++)L[D]^=E[D];function W(){for(let Q=N-1;Q>=N-4;Q--){if(P[Q]++,P[Q]<=255)return;P[Q]=0}}for(;T>=32;)W(),Z=Z.concat(f(L.concat(f(P)))),T-=32;return T>0&&(W(),Z=Z.concat(f(L.concat(f(P))).slice(0,T))),Z}function n(E,R,T,N,P){let L;for(M(E,(2*T-1)*16,P,0,16),L=0;L<2*T;L++)y(E,L*16,P,16),b(P,N),M(P,0,E,R+L*16,16);for(L=0;L<T;L++)M(E,R+L*2*16,E,L*16,16);for(L=0;L<T;L++)M(E,R+(L*2+1)*16,E,(L+T)*16,16)}function v(E,R){return E<<R|E>>>32-R}function b(E,R){M(E,0,R,0,16);for(let T=8;T>0;T-=2)R[4]^=v(R[0]+R[12],7),R[8]^=v(R[4]+R[0],9),R[12]^=v(R[8]+R[4],13),R[0]^=v(R[12]+R[8],18),R[9]^=v(R[5]+R[1],7),R[13]^=v(R[9]+R[5],9),R[1]^=v(R[13]+R[9],13),R[5]^=v(R[1]+R[13],18),R[14]^=v(R[10]+R[6],7),R[2]^=v(R[14]+R[10],9),R[6]^=v(R[2]+R[14],13),R[10]^=v(R[6]+R[2],18),R[3]^=v(R[15]+R[11],7),R[7]^=v(R[3]+R[15],9),R[11]^=v(R[7]+R[3],13),R[15]^=v(R[11]+R[7],18),R[1]^=v(R[0]+R[3],7),R[2]^=v(R[1]+R[0],9),R[3]^=v(R[2]+R[1],13),R[0]^=v(R[3]+R[2],18),R[6]^=v(R[5]+R[4],7),R[7]^=v(R[6]+R[5],9),R[4]^=v(R[7]+R[6],13),R[5]^=v(R[4]+R[7],18),R[11]^=v(R[10]+R[9],7),R[8]^=v(R[11]+R[10],9),R[9]^=v(R[8]+R[11],13),R[10]^=v(R[9]+R[8],18),R[12]^=v(R[15]+R[14],7),R[13]^=v(R[12]+R[15],9),R[14]^=v(R[13]+R[12],13),R[15]^=v(R[14]+R[13],18);for(let T=0;T<16;++T)E[T]+=R[T]}function y(E,R,T,N){for(let P=0;P<N;P++)T[P]^=E[R+P]}function M(E,R,T,N,P){for(;P--;)T[N++]=E[R++]}function w(E){if(!E||typeof E.length!="number")return!1;for(let R=0;R<E.length;R++){let T=E[R];if(typeof T!="number"||T%1||T<0||T>=256)return!1}return!0}function g(E,R){if(typeof E!="number"||E%1)throw new Error("invalid "+R);return E}function _(E,R,T,N,P,L,D){if(T=g(T,"N"),N=g(N,"r"),P=g(P,"p"),L=g(L,"dkLen"),T===0||T&T-1)throw new Error("N must be power of 2");if(T>2147483647/128/N)throw new Error("N too large");if(N>2147483647/128/P)throw new Error("r too large");if(!w(E))throw new Error("password must be an array or buffer");if(E=Array.prototype.slice.call(E),!w(R))throw new Error("salt must be an array or buffer");R=Array.prototype.slice.call(R);let Z=d(E,R,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*T),z=32*N,X=new Uint32Array(16),p=new Uint32Array(16),e=P*T*2,r=0,i=null,s=!1,h=0,c=0,m,l,t=D?parseInt(1e3/N):4294967295,u=typeof setImmediate<"u"?setImmediate:setTimeout,S=function(){if(s)return D(new Error("cancelled"),r/e);let B;switch(h){case 0:l=c*32*N,M(W,l,Q,0,z),h=1,m=0;case 1:B=T-m,B>t&&(B=t);for(let q=0;q<B;q++)M(Q,0,K,(m+q)*z,z),n(Q,z,N,X,p);if(m+=B,r+=B,D){let q=parseInt(1e3*r/e);if(q!==i){if(s=D(null,r/e),s)break;i=q}}if(m<T)break;m=0,h=2;case 2:B=T-m,B>t&&(B=t);for(let q=0;q<B;q++){let F=(2*N-1)*16,ee=Q[F]&T-1;y(K,ee*z,Q,z),n(Q,z,N,X,p)}if(m+=B,r+=B,D){let q=parseInt(1e3*r/e);if(q!==i){if(s=D(null,r/e),s)break;i=q}}if(m<T)break;if(M(Q,0,W,l,z),c++,c<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=d(E,Z,L);return D&&D(null,1,k),k}D&&u(S)};if(!D)for(;;){let B=S();if(B!=null)return B}S()}let x={scrypt:function(E,R,T,N,P,L,D){return new Promise(function(Z,W){let Q=0;D&&D(0),_(E,R,T,N,P,L,function(K,z,X){if(K)W(K);else if(X)D&&Q!==1&&D(1),Z(new Uint8Array(X));else if(D&&z!==Q)return Q=z,D(z)})})},syncScrypt:function(E,R,T,N,P,L){return new Uint8Array(_(E,R,T,N,P,L))}};typeof Gx<"u"?jj.exports=x:typeof define=="function"&&define.amd?define(x):a&&(a.scrypt&&(a._scrypt=a.scrypt),a.scrypt=x)})(Gx)});var oW=St((Qx,aW)=>{var Pxe=Ae(Be());Ie();Re();var fb=(ku(),h0(Tu)),pf=fb.Buffer;function nW(a,o){for(var f in a)o[f]=a[f]}pf.from&&pf.alloc&&pf.allocUnsafe&&pf.allocUnsafeSlow?aW.exports=fb:(nW(fb,Qx),Qx.Buffer=ju);function ju(a,o,f){return pf(a,o,f)}ju.prototype=Object.create(pf.prototype);nW(pf,ju);ju.from=function(a,o,f){if(typeof a=="number")throw new TypeError("Argument must not be a number");return pf(a,o,f)};ju.alloc=function(a,o,f){if(typeof a!="number")throw new TypeError("Argument must be a number");var d=pf(a);return o!==void 0?typeof f=="string"?d.fill(o,f):d.fill(o):d.fill(0),d};ju.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return pf(a)};ju.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return fb.SlowBuffer(a)}});var fW=St((Lxe,sW)=>{"use strict";var Dxe=Ae(Be());Ie();Re();var hb=oW().Buffer;function _de(a){if(a.length>=255)throw new TypeError("Alphabet too long");for(var o=new Uint8Array(256),f=0;f<o.length;f++)o[f]=255;for(var d=0;d<a.length;d++){var n=a.charAt(d),v=n.charCodeAt(0);if(o[v]!==255)throw new TypeError(n+" is ambiguous");o[v]=d}var b=a.length,y=a.charAt(0),M=Math.log(b)/Math.log(256),w=Math.log(256)/Math.log(b);function g(E){if((Array.isArray(E)||E instanceof Uint8Array)&&(E=hb.from(E)),!hb.isBuffer(E))throw new TypeError("Expected Buffer");if(E.length===0)return"";for(var R=0,T=0,N=0,P=E.length;N!==P&&E[N]===0;)N++,R++;for(var L=(P-N)*w+1>>>0,D=new Uint8Array(L);N!==P;){for(var Z=E[N],W=0,Q=L-1;(Z!==0||W<T)&&Q!==-1;Q--,W++)Z+=256*D[Q]>>>0,D[Q]=Z%b>>>0,Z=Z/b>>>0;if(Z!==0)throw new Error("Non-zero carry");T=W,N++}for(var K=L-T;K!==L&&D[K]===0;)K++;for(var z=y.repeat(R);K<L;++K)z+=a.charAt(D[K]);return z}function _(E){if(typeof E!="string")throw new TypeError("Expected String");if(E.length===0)return hb.alloc(0);for(var R=0,T=0,N=0;E[R]===y;)T++,R++;for(var P=(E.length-R)*M+1>>>0,L=new Uint8Array(P);R<E.length;){var D=E.charCodeAt(R);if(D>255)return;var Z=o[D];if(Z===255)return;for(var W=0,Q=P-1;(Z!==0||W<N)&&Q!==-1;Q--,W++)Z+=b*L[Q]>>>0,L[Q]=Z%256>>>0,Z=Z/256>>>0;if(Z!==0)throw new Error("Non-zero carry");N=W,R++}for(var K=P-N;K!==P&&L[K]===0;)K++;var z=hb.allocUnsafe(T+(P-K));z.fill(0,0,T);for(var X=T;K!==P;)z[X++]=L[K++];return z}function x(E){var R=_(E);if(R)return R;throw new Error("Non-base"+b+" character")}return{encode:g,decodeUnsafe:_,decode:x}}sW.exports=_de});var uW=St((Uxe,hW)=>{var Fxe=Ae(Be());Ie();Re();var xde=fW(),Sde="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";hW.exports=xde(Sde)});var dW=St((Vxe,lW)=>{var Jxe=Ae(Be());Ie();Re();var Hr={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 zo(a,o){if(!a)throw new Error(o)}function Fr(a,o,f){if(zo(o instanceof Uint8Array,`Expected ${a} to be an Uint8Array`),f!==void 0)if(Array.isArray(f)){let d=f.join(", "),n=`Expected ${a} to be an Uint8Array with length [${d}]`;zo(f.includes(o.length),n)}else{let d=`Expected ${a} to be an Uint8Array with length ${f}`;zo(o.length===f,d)}}function Wu(a){zo(Td(a)==="Boolean","Expected compressed to be a Boolean")}function As(a=f=>new Uint8Array(f),o){return typeof a=="function"&&(a=a(o)),Fr("output",a,o),a}function Td(a){return Object.prototype.toString.call(a).slice(8,-1)}lW.exports=a=>({contextRandomize(o){switch(zo(o===null||o instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),o!==null&&Fr("seed",o,32),a.contextRandomize(o)){case 1:throw new Error(Hr.CONTEXT_RANDOMIZE_UNKNOW)}},privateKeyVerify(o){return Fr("private key",o,32),a.privateKeyVerify(o)===0},privateKeyNegate(o){switch(Fr("private key",o,32),a.privateKeyNegate(o)){case 0:return o;case 1:throw new Error(Hr.IMPOSSIBLE_CASE)}},privateKeyTweakAdd(o,f){switch(Fr("private key",o,32),Fr("tweak",f,32),a.privateKeyTweakAdd(o,f)){case 0:return o;case 1:throw new Error(Hr.TWEAK_ADD)}},privateKeyTweakMul(o,f){switch(Fr("private key",o,32),Fr("tweak",f,32),a.privateKeyTweakMul(o,f)){case 0:return o;case 1:throw new Error(Hr.TWEAK_MUL)}},publicKeyVerify(o){return Fr("public key",o,[33,65]),a.publicKeyVerify(o)===0},publicKeyCreate(o,f=!0,d){switch(Fr("private key",o,32),Wu(f),d=As(d,f?33:65),a.publicKeyCreate(d,o)){case 0:return d;case 1:throw new Error(Hr.SECKEY_INVALID);case 2:throw new Error(Hr.PUBKEY_SERIALIZE)}},publicKeyConvert(o,f=!0,d){switch(Fr("public key",o,[33,65]),Wu(f),d=As(d,f?33:65),a.publicKeyConvert(d,o)){case 0:return d;case 1:throw new Error(Hr.PUBKEY_PARSE);case 2:throw new Error(Hr.PUBKEY_SERIALIZE)}},publicKeyNegate(o,f=!0,d){switch(Fr("public key",o,[33,65]),Wu(f),d=As(d,f?33:65),a.publicKeyNegate(d,o)){case 0:return d;case 1:throw new Error(Hr.PUBKEY_PARSE);case 2:throw new Error(Hr.IMPOSSIBLE_CASE);case 3:throw new Error(Hr.PUBKEY_SERIALIZE)}},publicKeyCombine(o,f=!0,d){zo(Array.isArray(o),"Expected public keys to be an Array"),zo(o.length>0,"Expected public keys array will have more than zero items");for(let n of o)Fr("public key",n,[33,65]);switch(Wu(f),d=As(d,f?33:65),a.publicKeyCombine(d,o)){case 0:return d;case 1:throw new Error(Hr.PUBKEY_PARSE);case 2:throw new Error(Hr.PUBKEY_COMBINE);case 3:throw new Error(Hr.PUBKEY_SERIALIZE)}},publicKeyTweakAdd(o,f,d=!0,n){switch(Fr("public key",o,[33,65]),Fr("tweak",f,32),Wu(d),n=As(n,d?33:65),a.publicKeyTweakAdd(n,o,f)){case 0:return n;case 1:throw new Error(Hr.PUBKEY_PARSE);case 2:throw new Error(Hr.TWEAK_ADD)}},publicKeyTweakMul(o,f,d=!0,n){switch(Fr("public key",o,[33,65]),Fr("tweak",f,32),Wu(d),n=As(n,d?33:65),a.publicKeyTweakMul(n,o,f)){case 0:return n;case 1:throw new Error(Hr.PUBKEY_PARSE);case 2:throw new Error(Hr.TWEAK_MUL)}},signatureNormalize(o){switch(Fr("signature",o,64),a.signatureNormalize(o)){case 0:return o;case 1:throw new Error(Hr.SIG_PARSE)}},signatureExport(o,f){Fr("signature",o,64),f=As(f,72);let d={output:f,outputlen:72};switch(a.signatureExport(d,o)){case 0:return f.slice(0,d.outputlen);case 1:throw new Error(Hr.SIG_PARSE);case 2:throw new Error(Hr.IMPOSSIBLE_CASE)}},signatureImport(o,f){switch(Fr("signature",o),f=As(f,64),a.signatureImport(f,o)){case 0:return f;case 1:throw new Error(Hr.SIG_PARSE);case 2:throw new Error(Hr.IMPOSSIBLE_CASE)}},ecdsaSign(o,f,d={},n){Fr("message",o,32),Fr("private key",f,32),zo(Td(d)==="Object","Expected options to be an Object"),d.data!==void 0&&Fr("options.data",d.data),d.noncefn!==void 0&&zo(Td(d.noncefn)==="Function","Expected options.noncefn to be a Function"),n=As(n,64);let v={signature:n,recid:null};switch(a.ecdsaSign(v,o,f,d.data,d.noncefn)){case 0:return v;case 1:throw new Error(Hr.SIGN);case 2:throw new Error(Hr.IMPOSSIBLE_CASE)}},ecdsaVerify(o,f,d){switch(Fr("signature",o,64),Fr("message",f,32),Fr("public key",d,[33,65]),a.ecdsaVerify(o,f,d)){case 0:return!0;case 3:return!1;case 1:throw new Error(Hr.SIG_PARSE);case 2:throw new Error(Hr.PUBKEY_PARSE)}},ecdsaRecover(o,f,d,n=!0,v){switch(Fr("signature",o,64),zo(Td(f)==="Number"&&f>=0&&f<=3,"Expected recovery id to be a Number within interval [0, 3]"),Fr("message",d,32),Wu(n),v=As(v,n?33:65),a.ecdsaRecover(v,o,f,d)){case 0:return v;case 1:throw new Error(Hr.SIG_PARSE);case 2:throw new Error(Hr.RECOVER);case 3:throw new Error(Hr.IMPOSSIBLE_CASE)}},ecdh(o,f,d={},n){switch(Fr("public key",o,[33,65]),Fr("private key",f,32),zo(Td(d)==="Object","Expected options to be an Object"),d.data!==void 0&&Fr("options.data",d.data),d.hashfn!==void 0?(zo(Td(d.hashfn)==="Function","Expected options.hashfn to be a Function"),d.xbuf!==void 0&&Fr("options.xbuf",d.xbuf,32),d.ybuf!==void 0&&Fr("options.ybuf",d.ybuf,32),Fr("output",n)):n=As(n,32),a.ecdh(n,o,f,d.data,d.hashfn,d.xbuf,d.ybuf)){case 0:return n;case 1:throw new Error(Hr.PUBKEY_PARSE);case 2:throw new Error(Hr.ECDH)}}})});var cW=St((Qxe,Ede)=>{Ede.exports={name:"elliptic",version:"6.6.1",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 vf=St((pW,e5)=>{var e5e=Ae(Be());Ie();Re();(function(a,o){"use strict";function f(p,e){if(!p)throw new Error(e||"Assertion failed")}function d(p,e){p.super_=e;var r=function(){};r.prototype=e.prototype,p.prototype=new r,p.prototype.constructor=p}function n(p,e,r){if(n.isBN(p))return p;this.negative=0,this.words=null,this.length=0,this.red=null,p!==null&&((e==="le"||e==="be")&&(r=e,e=10),this._init(p||0,e||10,r||"be"))}typeof a=="object"?a.exports=n:o.BN=n,n.BN=n,n.wordSize=26;var v;try{typeof window<"u"&&typeof window.Buffer<"u"?v=window.Buffer:v=I6().Buffer}catch{}n.isBN=function(e){return e instanceof n?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===n.wordSize&&Array.isArray(e.words)},n.max=function(e,r){return e.cmp(r)>0?e:r},n.min=function(e,r){return e.cmp(r)<0?e:r},n.prototype._init=function(e,r,i){if(typeof e=="number")return this._initNumber(e,r,i);if(typeof e=="object")return this._initArray(e,r,i);r==="hex"&&(r=16),f(r===(r|0)&&r>=2&&r<=36),e=e.toString().replace(/\s+/g,"");var s=0;e[0]==="-"&&(s++,this.negative=1),s<e.length&&(r===16?this._parseHex(e,s,i):(this._parseBase(e,r,s),i==="le"&&this._initArray(this.toArray(),r,i)))},n.prototype._initNumber=function(e,r,i){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):(f(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),i==="le"&&this._initArray(this.toArray(),r,i)},n.prototype._initArray=function(e,r,i){if(f(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 s=0;s<this.length;s++)this.words[s]=0;var h,c,m=0;if(i==="be")for(s=e.length-1,h=0;s>=0;s-=3)c=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[h]|=c<<m&67108863,this.words[h+1]=c>>>26-m&67108863,m+=24,m>=26&&(m-=26,h++);else if(i==="le")for(s=0,h=0;s<e.length;s+=3)c=e[s]|e[s+1]<<8|e[s+2]<<16,this.words[h]|=c<<m&67108863,this.words[h+1]=c>>>26-m&67108863,m+=24,m>=26&&(m-=26,h++);return this.strip()};function b(p,e){var r=p.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function y(p,e,r){var i=b(p,r);return r-1>=e&&(i|=b(p,r-1)<<4),i}n.prototype._parseHex=function(e,r,i){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var s=0;s<this.length;s++)this.words[s]=0;var h=0,c=0,m;if(i==="be")for(s=e.length-1;s>=r;s-=2)m=y(e,r,s)<<h,this.words[c]|=m&67108863,h>=18?(h-=18,c+=1,this.words[c]|=m>>>26):h+=8;else{var l=e.length-r;for(s=l%2===0?r+1:r;s<e.length;s+=2)m=y(e,r,s)<<h,this.words[c]|=m&67108863,h>=18?(h-=18,c+=1,this.words[c]|=m>>>26):h+=8}this.strip()};function M(p,e,r,i){for(var s=0,h=Math.min(p.length,r),c=e;c<h;c++){var m=p.charCodeAt(c)-48;s*=i,m>=49?s+=m-49+10:m>=17?s+=m-17+10:s+=m}return s}n.prototype._parseBase=function(e,r,i){this.words=[0],this.length=1;for(var s=0,h=1;h<=67108863;h*=r)s++;s--,h=h/r|0;for(var c=e.length-i,m=c%s,l=Math.min(c,c-m)+i,t=0,u=i;u<l;u+=s)t=M(e,u,u+s,r),this.imuln(h),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t);if(m!==0){var S=1;for(t=M(e,u,e.length,r),u=0;u<m;u++)S*=r;this.imuln(S),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t)}this.strip()},n.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},n.prototype.clone=function(){var e=new n(null);return this.copy(e),e},n.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.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"],g=[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];n.prototype.toString=function(e,r){e=e||10,r=r|0||1;var i;if(e===16||e==="hex"){i="";for(var s=0,h=0,c=0;c<this.length;c++){var m=this.words[c],l=((m<<s|h)&16777215).toString(16);h=m>>>24-s&16777215,s+=2,s>=26&&(s-=26,c--),h!==0||c!==this.length-1?i=w[6-l.length]+l+i:i=l+i}for(h!==0&&(i=h.toString(16)+i);i.length%r!==0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}if(e===(e|0)&&e>=2&&e<=36){var t=g[e],u=_[e];i="";var S=this.clone();for(S.negative=0;!S.isZero();){var B=S.modn(u).toString(e);S=S.idivn(u),S.isZero()?i=B+i:i=w[t-B.length]+B+i}for(this.isZero()&&(i="0"+i);i.length%r!==0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}f(!1,"Base should be between 2 and 36")},n.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&&f(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(e,r){return f(typeof v<"u"),this.toArrayLike(v,e,r)},n.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},n.prototype.toArrayLike=function(e,r,i){var s=this.byteLength(),h=i||Math.max(1,s);f(s<=h,"byte array longer than desired length"),f(h>0,"Requested array length <= 0"),this.strip();var c=r==="le",m=new e(h),l,t,u=this.clone();if(c){for(t=0;!u.isZero();t++)l=u.andln(255),u.iushrn(8),m[t]=l;for(;t<h;t++)m[t]=0}else{for(t=0;t<h-s;t++)m[t]=0;for(t=0;!u.isZero();t++)l=u.andln(255),u.iushrn(8),m[h-t-1]=l}return m},Math.clz32?n.prototype._countBits=function(e){return 32-Math.clz32(e)}:n.prototype._countBits=function(e){var r=e,i=0;return r>=4096&&(i+=13,r>>>=13),r>=64&&(i+=7,r>>>=7),r>=8&&(i+=4,r>>>=4),r>=2&&(i+=2,r>>>=2),i+r},n.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,i=0;return r&8191||(i+=13,r>>>=13),r&127||(i+=7,r>>>=7),r&15||(i+=4,r>>>=4),r&3||(i+=2,r>>>=2),r&1||i++,i},n.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return(this.length-1)*26+r};function x(p){for(var e=new Array(p.bitLength()),r=0;r<e.length;r++){var i=r/26|0,s=r%26;e[r]=(p.words[i]&1<<s)>>>s}return e}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var i=this._zeroBits(this.words[r]);if(e+=i,i!==26)break}return e},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},n.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.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()},n.prototype.ior=function(e){return f((this.negative|e.negative)===0),this.iuor(e)},n.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},n.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},n.prototype.iuand=function(e){var r;this.length>e.length?r=e:r=this;for(var i=0;i<r.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=r.length,this.strip()},n.prototype.iand=function(e){return f((this.negative|e.negative)===0),this.iuand(e)},n.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},n.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},n.prototype.iuxor=function(e){var r,i;this.length>e.length?(r=this,i=e):(r=e,i=this);for(var s=0;s<i.length;s++)this.words[s]=r.words[s]^i.words[s];if(this!==r)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=r.length,this.strip()},n.prototype.ixor=function(e){return f((this.negative|e.negative)===0),this.iuxor(e)},n.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},n.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},n.prototype.inotn=function(e){f(typeof e=="number"&&e>=0);var r=Math.ceil(e/26)|0,i=e%26;this._expand(r),i>0&&r--;for(var s=0;s<r;s++)this.words[s]=~this.words[s]&67108863;return i>0&&(this.words[s]=~this.words[s]&67108863>>26-i),this.strip()},n.prototype.notn=function(e){return this.clone().inotn(e)},n.prototype.setn=function(e,r){f(typeof e=="number"&&e>=0);var i=e/26|0,s=e%26;return this._expand(i+1),r?this.words[i]=this.words[i]|1<<s:this.words[i]=this.words[i]&~(1<<s),this.strip()},n.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 i,s;this.length>e.length?(i=this,s=e):(i=e,s=this);for(var h=0,c=0;c<s.length;c++)r=(i.words[c]|0)+(s.words[c]|0)+h,this.words[c]=r&67108863,h=r>>>26;for(;h!==0&&c<i.length;c++)r=(i.words[c]|0)+h,this.words[c]=r&67108863,h=r>>>26;if(this.length=i.length,h!==0)this.words[this.length]=h,this.length++;else if(i!==this)for(;c<i.length;c++)this.words[c]=i.words[c];return this},n.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)},n.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 i=this.cmp(e);if(i===0)return this.negative=0,this.length=1,this.words[0]=0,this;var s,h;i>0?(s=this,h=e):(s=e,h=this);for(var c=0,m=0;m<h.length;m++)r=(s.words[m]|0)-(h.words[m]|0)+c,c=r>>26,this.words[m]=r&67108863;for(;c!==0&&m<s.length;m++)r=(s.words[m]|0)+c,c=r>>26,this.words[m]=r&67108863;if(c===0&&m<s.length&&s!==this)for(;m<s.length;m++)this.words[m]=s.words[m];return this.length=Math.max(this.length,m),s!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(e){return this.clone().isub(e)};function E(p,e,r){r.negative=e.negative^p.negative;var i=p.length+e.length|0;r.length=i,i=i-1|0;var s=p.words[0]|0,h=e.words[0]|0,c=s*h,m=c&67108863,l=c/67108864|0;r.words[0]=m;for(var t=1;t<i;t++){for(var u=l>>>26,S=l&67108863,B=Math.min(t,e.length-1),k=Math.max(0,t-p.length+1);k<=B;k++){var q=t-k|0;s=p.words[q]|0,h=e.words[k]|0,c=s*h+S,u+=c/67108864|0,S=c&67108863}r.words[t]=S|0,l=u|0}return l!==0?r.words[t]=l|0:r.length--,r.strip()}var R=function(e,r,i){var s=e.words,h=r.words,c=i.words,m=0,l,t,u,S=s[0]|0,B=S&8191,k=S>>>13,q=s[1]|0,F=q&8191,ee=q>>>13,te=s[2]|0,O=te&8191,U=te>>>13,oe=s[3]|0,Y=oe&8191,j=oe>>>13,V=s[4]|0,G=V&8191,ie=V>>>13,me=s[5]|0,re=me&8191,ae=me>>>13,ye=s[6]|0,fe=ye&8191,he=ye>>>13,nt=s[7]|0,ce=nt&8191,be=nt>>>13,ut=s[8]|0,$=ut&8191,A=ut>>>13,I=s[9]|0,C=I&8191,H=I>>>13,ne=h[0]|0,J=ne&8191,de=ne>>>13,st=h[1]|0,le=st&8191,ve=st>>>13,ot=h[2]|0,we=ot&8191,Le=ot>>>13,bt=h[3]|0,Me=bt&8191,Ne=bt>>>13,mt=h[4]|0,xe=mt&8191,Ce=mt>>>13,vt=h[5]|0,se=vt&8191,ue=vt>>>13,ht=h[6]|0,pe=ht&8191,Se=ht>>>13,dt=h[7]|0,ge=dt&8191,De=dt>>>13,ct=h[8]|0,_e=ct&8191,Oe=ct>>>13,gt=h[9]|0,Ee=gt&8191,Pe=gt>>>13;i.negative=e.negative^r.negative,i.length=19,l=Math.imul(B,J),t=Math.imul(B,de),t=t+Math.imul(k,J)|0,u=Math.imul(k,de);var pt=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+(pt>>>26)|0,pt&=67108863,l=Math.imul(F,J),t=Math.imul(F,de),t=t+Math.imul(ee,J)|0,u=Math.imul(ee,de),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=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+(lt>>>26)|0,lt&=67108863,l=Math.imul(O,J),t=Math.imul(O,de),t=t+Math.imul(U,J)|0,u=Math.imul(U,de),l=l+Math.imul(F,le)|0,t=t+Math.imul(F,ve)|0,t=t+Math.imul(ee,le)|0,u=u+Math.imul(ee,ve)|0,l=l+Math.imul(B,we)|0,t=t+Math.imul(B,Le)|0,t=t+Math.imul(k,we)|0,u=u+Math.imul(k,Le)|0;var yt=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+(yt>>>26)|0,yt&=67108863,l=Math.imul(Y,J),t=Math.imul(Y,de),t=t+Math.imul(j,J)|0,u=Math.imul(j,de),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(F,we)|0,t=t+Math.imul(F,Le)|0,t=t+Math.imul(ee,we)|0,u=u+Math.imul(ee,Le)|0,l=l+Math.imul(B,Me)|0,t=t+Math.imul(B,Ne)|0,t=t+Math.imul(k,Me)|0,u=u+Math.imul(k,Ne)|0;var xt=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+(xt>>>26)|0,xt&=67108863,l=Math.imul(G,J),t=Math.imul(G,de),t=t+Math.imul(ie,J)|0,u=Math.imul(ie,de),l=l+Math.imul(Y,le)|0,t=t+Math.imul(Y,ve)|0,t=t+Math.imul(j,le)|0,u=u+Math.imul(j,ve)|0,l=l+Math.imul(O,we)|0,t=t+Math.imul(O,Le)|0,t=t+Math.imul(U,we)|0,u=u+Math.imul(U,Le)|0,l=l+Math.imul(F,Me)|0,t=t+Math.imul(F,Ne)|0,t=t+Math.imul(ee,Me)|0,u=u+Math.imul(ee,Ne)|0,l=l+Math.imul(B,xe)|0,t=t+Math.imul(B,Ce)|0,t=t+Math.imul(k,xe)|0,u=u+Math.imul(k,Ce)|0;var Mt=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,l=Math.imul(re,J),t=Math.imul(re,de),t=t+Math.imul(ae,J)|0,u=Math.imul(ae,de),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(Y,we)|0,t=t+Math.imul(Y,Le)|0,t=t+Math.imul(j,we)|0,u=u+Math.imul(j,Le)|0,l=l+Math.imul(O,Me)|0,t=t+Math.imul(O,Ne)|0,t=t+Math.imul(U,Me)|0,u=u+Math.imul(U,Ne)|0,l=l+Math.imul(F,xe)|0,t=t+Math.imul(F,Ce)|0,t=t+Math.imul(ee,xe)|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=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+(Et>>>26)|0,Et&=67108863,l=Math.imul(fe,J),t=Math.imul(fe,de),t=t+Math.imul(he,J)|0,u=Math.imul(he,de),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,we)|0,t=t+Math.imul(G,Le)|0,t=t+Math.imul(ie,we)|0,u=u+Math.imul(ie,Le)|0,l=l+Math.imul(Y,Me)|0,t=t+Math.imul(Y,Ne)|0,t=t+Math.imul(j,Me)|0,u=u+Math.imul(j,Ne)|0,l=l+Math.imul(O,xe)|0,t=t+Math.imul(O,Ce)|0,t=t+Math.imul(U,xe)|0,u=u+Math.imul(U,Ce)|0,l=l+Math.imul(F,se)|0,t=t+Math.imul(F,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,Se)|0,t=t+Math.imul(k,pe)|0,u=u+Math.imul(k,Se)|0;var At=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+(At>>>26)|0,At&=67108863,l=Math.imul(ce,J),t=Math.imul(ce,de),t=t+Math.imul(be,J)|0,u=Math.imul(be,de),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,we)|0,t=t+Math.imul(re,Le)|0,t=t+Math.imul(ae,we)|0,u=u+Math.imul(ae,Le)|0,l=l+Math.imul(G,Me)|0,t=t+Math.imul(G,Ne)|0,t=t+Math.imul(ie,Me)|0,u=u+Math.imul(ie,Ne)|0,l=l+Math.imul(Y,xe)|0,t=t+Math.imul(Y,Ce)|0,t=t+Math.imul(j,xe)|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(F,pe)|0,t=t+Math.imul(F,Se)|0,t=t+Math.imul(ee,pe)|0,u=u+Math.imul(ee,Se)|0,l=l+Math.imul(B,ge)|0,t=t+Math.imul(B,De)|0,t=t+Math.imul(k,ge)|0,u=u+Math.imul(k,De)|0;var Bt=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,l=Math.imul($,J),t=Math.imul($,de),t=t+Math.imul(A,J)|0,u=Math.imul(A,de),l=l+Math.imul(ce,le)|0,t=t+Math.imul(ce,ve)|0,t=t+Math.imul(be,le)|0,u=u+Math.imul(be,ve)|0,l=l+Math.imul(fe,we)|0,t=t+Math.imul(fe,Le)|0,t=t+Math.imul(he,we)|0,u=u+Math.imul(he,Le)|0,l=l+Math.imul(re,Me)|0,t=t+Math.imul(re,Ne)|0,t=t+Math.imul(ae,Me)|0,u=u+Math.imul(ae,Ne)|0,l=l+Math.imul(G,xe)|0,t=t+Math.imul(G,Ce)|0,t=t+Math.imul(ie,xe)|0,u=u+Math.imul(ie,Ce)|0,l=l+Math.imul(Y,se)|0,t=t+Math.imul(Y,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,Se)|0,t=t+Math.imul(U,pe)|0,u=u+Math.imul(U,Se)|0,l=l+Math.imul(F,ge)|0,t=t+Math.imul(F,De)|0,t=t+Math.imul(ee,ge)|0,u=u+Math.imul(ee,De)|0,l=l+Math.imul(B,_e)|0,t=t+Math.imul(B,Oe)|0,t=t+Math.imul(k,_e)|0,u=u+Math.imul(k,Oe)|0;var It=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+(It>>>26)|0,It&=67108863,l=Math.imul(C,J),t=Math.imul(C,de),t=t+Math.imul(H,J)|0,u=Math.imul(H,de),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(ce,we)|0,t=t+Math.imul(ce,Le)|0,t=t+Math.imul(be,we)|0,u=u+Math.imul(be,Le)|0,l=l+Math.imul(fe,Me)|0,t=t+Math.imul(fe,Ne)|0,t=t+Math.imul(he,Me)|0,u=u+Math.imul(he,Ne)|0,l=l+Math.imul(re,xe)|0,t=t+Math.imul(re,Ce)|0,t=t+Math.imul(ae,xe)|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(Y,pe)|0,t=t+Math.imul(Y,Se)|0,t=t+Math.imul(j,pe)|0,u=u+Math.imul(j,Se)|0,l=l+Math.imul(O,ge)|0,t=t+Math.imul(O,De)|0,t=t+Math.imul(U,ge)|0,u=u+Math.imul(U,De)|0,l=l+Math.imul(F,_e)|0,t=t+Math.imul(F,Oe)|0,t=t+Math.imul(ee,_e)|0,u=u+Math.imul(ee,Oe)|0,l=l+Math.imul(B,Ee)|0,t=t+Math.imul(B,Pe)|0,t=t+Math.imul(k,Ee)|0,u=u+Math.imul(k,Pe)|0;var Tt=(m+l|0)+((t&8191)<<13)|0;m=(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($,we)|0,t=t+Math.imul($,Le)|0,t=t+Math.imul(A,we)|0,u=u+Math.imul(A,Le)|0,l=l+Math.imul(ce,Me)|0,t=t+Math.imul(ce,Ne)|0,t=t+Math.imul(be,Me)|0,u=u+Math.imul(be,Ne)|0,l=l+Math.imul(fe,xe)|0,t=t+Math.imul(fe,Ce)|0,t=t+Math.imul(he,xe)|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,Se)|0,t=t+Math.imul(ie,pe)|0,u=u+Math.imul(ie,Se)|0,l=l+Math.imul(Y,ge)|0,t=t+Math.imul(Y,De)|0,t=t+Math.imul(j,ge)|0,u=u+Math.imul(j,De)|0,l=l+Math.imul(O,_e)|0,t=t+Math.imul(O,Oe)|0,t=t+Math.imul(U,_e)|0,u=u+Math.imul(U,Oe)|0,l=l+Math.imul(F,Ee)|0,t=t+Math.imul(F,Pe)|0,t=t+Math.imul(ee,Ee)|0,u=u+Math.imul(ee,Pe)|0;var kt=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+(kt>>>26)|0,kt&=67108863,l=Math.imul(C,we),t=Math.imul(C,Le),t=t+Math.imul(H,we)|0,u=Math.imul(H,Le),l=l+Math.imul($,Me)|0,t=t+Math.imul($,Ne)|0,t=t+Math.imul(A,Me)|0,u=u+Math.imul(A,Ne)|0,l=l+Math.imul(ce,xe)|0,t=t+Math.imul(ce,Ce)|0,t=t+Math.imul(be,xe)|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,Se)|0,t=t+Math.imul(ae,pe)|0,u=u+Math.imul(ae,Se)|0,l=l+Math.imul(G,ge)|0,t=t+Math.imul(G,De)|0,t=t+Math.imul(ie,ge)|0,u=u+Math.imul(ie,De)|0,l=l+Math.imul(Y,_e)|0,t=t+Math.imul(Y,Oe)|0,t=t+Math.imul(j,_e)|0,u=u+Math.imul(j,Oe)|0,l=l+Math.imul(O,Ee)|0,t=t+Math.imul(O,Pe)|0,t=t+Math.imul(U,Ee)|0,u=u+Math.imul(U,Pe)|0;var $t=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+($t>>>26)|0,$t&=67108863,l=Math.imul(C,Me),t=Math.imul(C,Ne),t=t+Math.imul(H,Me)|0,u=Math.imul(H,Ne),l=l+Math.imul($,xe)|0,t=t+Math.imul($,Ce)|0,t=t+Math.imul(A,xe)|0,u=u+Math.imul(A,Ce)|0,l=l+Math.imul(ce,se)|0,t=t+Math.imul(ce,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,Se)|0,t=t+Math.imul(he,pe)|0,u=u+Math.imul(he,Se)|0,l=l+Math.imul(re,ge)|0,t=t+Math.imul(re,De)|0,t=t+Math.imul(ae,ge)|0,u=u+Math.imul(ae,De)|0,l=l+Math.imul(G,_e)|0,t=t+Math.imul(G,Oe)|0,t=t+Math.imul(ie,_e)|0,u=u+Math.imul(ie,Oe)|0,l=l+Math.imul(Y,Ee)|0,t=t+Math.imul(Y,Pe)|0,t=t+Math.imul(j,Ee)|0,u=u+Math.imul(j,Pe)|0;var Pt=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,l=Math.imul(C,xe),t=Math.imul(C,Ce),t=t+Math.imul(H,xe)|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(ce,pe)|0,t=t+Math.imul(ce,Se)|0,t=t+Math.imul(be,pe)|0,u=u+Math.imul(be,Se)|0,l=l+Math.imul(fe,ge)|0,t=t+Math.imul(fe,De)|0,t=t+Math.imul(he,ge)|0,u=u+Math.imul(he,De)|0,l=l+Math.imul(re,_e)|0,t=t+Math.imul(re,Oe)|0,t=t+Math.imul(ae,_e)|0,u=u+Math.imul(ae,Oe)|0,l=l+Math.imul(G,Ee)|0,t=t+Math.imul(G,Pe)|0,t=t+Math.imul(ie,Ee)|0,u=u+Math.imul(ie,Pe)|0;var Nt=(m+l|0)+((t&8191)<<13)|0;m=(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($,Se)|0,t=t+Math.imul(A,pe)|0,u=u+Math.imul(A,Se)|0,l=l+Math.imul(ce,ge)|0,t=t+Math.imul(ce,De)|0,t=t+Math.imul(be,ge)|0,u=u+Math.imul(be,De)|0,l=l+Math.imul(fe,_e)|0,t=t+Math.imul(fe,Oe)|0,t=t+Math.imul(he,_e)|0,u=u+Math.imul(he,Oe)|0,l=l+Math.imul(re,Ee)|0,t=t+Math.imul(re,Pe)|0,t=t+Math.imul(ae,Ee)|0,u=u+Math.imul(ae,Pe)|0;var Ct=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,l=Math.imul(C,pe),t=Math.imul(C,Se),t=t+Math.imul(H,pe)|0,u=Math.imul(H,Se),l=l+Math.imul($,ge)|0,t=t+Math.imul($,De)|0,t=t+Math.imul(A,ge)|0,u=u+Math.imul(A,De)|0,l=l+Math.imul(ce,_e)|0,t=t+Math.imul(ce,Oe)|0,t=t+Math.imul(be,_e)|0,u=u+Math.imul(be,Oe)|0,l=l+Math.imul(fe,Ee)|0,t=t+Math.imul(fe,Pe)|0,t=t+Math.imul(he,Ee)|0,u=u+Math.imul(he,Pe)|0;var Lt=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,l=Math.imul(C,ge),t=Math.imul(C,De),t=t+Math.imul(H,ge)|0,u=Math.imul(H,De),l=l+Math.imul($,_e)|0,t=t+Math.imul($,Oe)|0,t=t+Math.imul(A,_e)|0,u=u+Math.imul(A,Oe)|0,l=l+Math.imul(ce,Ee)|0,t=t+Math.imul(ce,Pe)|0,t=t+Math.imul(be,Ee)|0,u=u+Math.imul(be,Pe)|0;var Dt=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,l=Math.imul(C,_e),t=Math.imul(C,Oe),t=t+Math.imul(H,_e)|0,u=Math.imul(H,Oe),l=l+Math.imul($,Ee)|0,t=t+Math.imul($,Pe)|0,t=t+Math.imul(A,Ee)|0,u=u+Math.imul(A,Pe)|0;var qt=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+(qt>>>26)|0,qt&=67108863,l=Math.imul(C,Ee),t=Math.imul(C,Pe),t=t+Math.imul(H,Ee)|0,u=Math.imul(H,Pe);var Ut=(m+l|0)+((t&8191)<<13)|0;return m=(u+(t>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,c[0]=pt,c[1]=lt,c[2]=yt,c[3]=xt,c[4]=Mt,c[5]=Et,c[6]=At,c[7]=Bt,c[8]=It,c[9]=Tt,c[10]=kt,c[11]=$t,c[12]=Pt,c[13]=Nt,c[14]=Ct,c[15]=Lt,c[16]=Dt,c[17]=qt,c[18]=Ut,m!==0&&(c[19]=m,i.length++),i};Math.imul||(R=E);function T(p,e,r){r.negative=e.negative^p.negative,r.length=p.length+e.length;for(var i=0,s=0,h=0;h<r.length-1;h++){var c=s;s=0;for(var m=i&67108863,l=Math.min(h,e.length-1),t=Math.max(0,h-p.length+1);t<=l;t++){var u=h-t,S=p.words[u]|0,B=e.words[t]|0,k=S*B,q=k&67108863;c=c+(k/67108864|0)|0,q=q+m|0,m=q&67108863,c=c+(q>>>26)|0,s+=c>>>26,c&=67108863}r.words[h]=m,i=c,c=s}return i!==0?r.words[h]=i:r.length--,r.strip()}function N(p,e,r){var i=new P;return i.mulp(p,e,r)}n.prototype.mulTo=function(e,r){var i,s=this.length+e.length;return this.length===10&&e.length===10?i=R(this,e,r):s<63?i=E(this,e,r):s<1024?i=T(this,e,r):i=N(this,e,r),i};function P(p,e){this.x=p,this.y=e}P.prototype.makeRBT=function(e){for(var r=new Array(e),i=n.prototype._countBits(e)-1,s=0;s<e;s++)r[s]=this.revBin(s,i,e);return r},P.prototype.revBin=function(e,r,i){if(e===0||e===i-1)return e;for(var s=0,h=0;h<r;h++)s|=(e&1)<<r-h-1,e>>=1;return s},P.prototype.permute=function(e,r,i,s,h,c){for(var m=0;m<c;m++)s[m]=r[e[m]],h[m]=i[e[m]]},P.prototype.transform=function(e,r,i,s,h,c){this.permute(c,e,r,i,s,h);for(var m=1;m<h;m<<=1)for(var l=m<<1,t=Math.cos(2*Math.PI/l),u=Math.sin(2*Math.PI/l),S=0;S<h;S+=l)for(var B=t,k=u,q=0;q<m;q++){var F=i[S+q],ee=s[S+q],te=i[S+q+m],O=s[S+q+m],U=B*te-k*O;O=B*O+k*te,te=U,i[S+q]=F+te,s[S+q]=ee+O,i[S+q+m]=F-te,s[S+q+m]=ee-O,q!==l&&(U=t*B-u*k,k=t*k+u*B,B=U)}},P.prototype.guessLen13b=function(e,r){var i=Math.max(r,e)|1,s=i&1,h=0;for(i=i/2|0;i;i=i>>>1)h++;return 1<<h+1+s},P.prototype.conjugate=function(e,r,i){if(!(i<=1))for(var s=0;s<i/2;s++){var h=e[s];e[s]=e[i-s-1],e[i-s-1]=h,h=r[s],r[s]=-r[i-s-1],r[i-s-1]=-h}},P.prototype.normalize13b=function(e,r){for(var i=0,s=0;s<r/2;s++){var h=Math.round(e[2*s+1]/r)*8192+Math.round(e[2*s]/r)+i;e[s]=h&67108863,h<67108864?i=0:i=h/67108864|0}return e},P.prototype.convert13b=function(e,r,i,s){for(var h=0,c=0;c<r;c++)h=h+(e[c]|0),i[2*c]=h&8191,h=h>>>13,i[2*c+1]=h&8191,h=h>>>13;for(c=2*r;c<s;++c)i[c]=0;f(h===0),f((h&-8192)===0)},P.prototype.stub=function(e){for(var r=new Array(e),i=0;i<e;i++)r[i]=0;return r},P.prototype.mulp=function(e,r,i){var s=2*this.guessLen13b(e.length,r.length),h=this.makeRBT(s),c=this.stub(s),m=new Array(s),l=new Array(s),t=new Array(s),u=new Array(s),S=new Array(s),B=new Array(s),k=i.words;k.length=s,this.convert13b(e.words,e.length,m,s),this.convert13b(r.words,r.length,u,s),this.transform(m,c,l,t,s,h),this.transform(u,c,S,B,s,h);for(var q=0;q<s;q++){var F=l[q]*S[q]-t[q]*B[q];t[q]=l[q]*B[q]+t[q]*S[q],l[q]=F}return this.conjugate(l,t,s),this.transform(l,t,k,c,s,h),this.conjugate(k,c,s),this.normalize13b(k,s),i.negative=e.negative^r.negative,i.length=e.length+r.length,i.strip()},n.prototype.mul=function(e){var r=new n(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},n.prototype.mulf=function(e){var r=new n(null);return r.words=new Array(this.length+e.length),N(this,e,r)},n.prototype.imul=function(e){return this.clone().mulTo(e,this)},n.prototype.imuln=function(e){f(typeof e=="number"),f(e<67108864);for(var r=0,i=0;i<this.length;i++){var s=(this.words[i]|0)*e,h=(s&67108863)+(r&67108863);r>>=26,r+=s/67108864|0,r+=h>>>26,this.words[i]=h&67108863}return r!==0&&(this.words[i]=r,this.length++),this.length=e===0?1:this.length,this},n.prototype.muln=function(e){return this.clone().imuln(e)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(e){var r=x(e);if(r.length===0)return new n(1);for(var i=this,s=0;s<r.length&&r[s]===0;s++,i=i.sqr());if(++s<r.length)for(var h=i.sqr();s<r.length;s++,h=h.sqr())r[s]!==0&&(i=i.mul(h));return i},n.prototype.iushln=function(e){f(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26,s=67108863>>>26-r<<26-r,h;if(r!==0){var c=0;for(h=0;h<this.length;h++){var m=this.words[h]&s,l=(this.words[h]|0)-m<<r;this.words[h]=l|c,c=m>>>26-r}c&&(this.words[h]=c,this.length++)}if(i!==0){for(h=this.length-1;h>=0;h--)this.words[h+i]=this.words[h];for(h=0;h<i;h++)this.words[h]=0;this.length+=i}return this.strip()},n.prototype.ishln=function(e){return f(this.negative===0),this.iushln(e)},n.prototype.iushrn=function(e,r,i){f(typeof e=="number"&&e>=0);var s;r?s=(r-r%26)/26:s=0;var h=e%26,c=Math.min((e-h)/26,this.length),m=67108863^67108863>>>h<<h,l=i;if(s-=c,s=Math.max(0,s),l){for(var t=0;t<c;t++)l.words[t]=this.words[t];l.length=c}if(c!==0)if(this.length>c)for(this.length-=c,t=0;t<this.length;t++)this.words[t]=this.words[t+c];else this.words[0]=0,this.length=1;var u=0;for(t=this.length-1;t>=0&&(u!==0||t>=s);t--){var S=this.words[t]|0;this.words[t]=u<<26-h|S>>>h,u=S&m}return l&&u!==0&&(l.words[l.length++]=u),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(e,r,i){return f(this.negative===0),this.iushrn(e,r,i)},n.prototype.shln=function(e){return this.clone().ishln(e)},n.prototype.ushln=function(e){return this.clone().iushln(e)},n.prototype.shrn=function(e){return this.clone().ishrn(e)},n.prototype.ushrn=function(e){return this.clone().iushrn(e)},n.prototype.testn=function(e){f(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26,s=1<<r;if(this.length<=i)return!1;var h=this.words[i];return!!(h&s)},n.prototype.imaskn=function(e){f(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26;if(f(this.negative===0,"imaskn works only with positive numbers"),this.length<=i)return this;if(r!==0&&i++,this.length=Math.min(i,this.length),r!==0){var s=67108863^67108863>>>r<<r;this.words[this.length-1]&=s}return this.strip()},n.prototype.maskn=function(e){return this.clone().imaskn(e)},n.prototype.iaddn=function(e){return f(typeof e=="number"),f(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)},n.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},n.prototype.isubn=function(e){if(f(typeof e=="number"),f(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()},n.prototype.addn=function(e){return this.clone().iaddn(e)},n.prototype.subn=function(e){return this.clone().isubn(e)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(e,r,i){var s=e.length+i,h;this._expand(s);var c,m=0;for(h=0;h<e.length;h++){c=(this.words[h+i]|0)+m;var l=(e.words[h]|0)*r;c-=l&67108863,m=(c>>26)-(l/67108864|0),this.words[h+i]=c&67108863}for(;h<this.length-i;h++)c=(this.words[h+i]|0)+m,m=c>>26,this.words[h+i]=c&67108863;if(m===0)return this.strip();for(f(m===-1),m=0,h=0;h<this.length;h++)c=-(this.words[h]|0)+m,m=c>>26,this.words[h]=c&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(e,r){var i=this.length-e.length,s=this.clone(),h=e,c=h.words[h.length-1]|0,m=this._countBits(c);i=26-m,i!==0&&(h=h.ushln(i),s.iushln(i),c=h.words[h.length-1]|0);var l=s.length-h.length,t;if(r!=="mod"){t=new n(null),t.length=l+1,t.words=new Array(t.length);for(var u=0;u<t.length;u++)t.words[u]=0}var S=s.clone()._ishlnsubmul(h,1,l);S.negative===0&&(s=S,t&&(t.words[l]=1));for(var B=l-1;B>=0;B--){var k=(s.words[h.length+B]|0)*67108864+(s.words[h.length+B-1]|0);for(k=Math.min(k/c|0,67108863),s._ishlnsubmul(h,k,B);s.negative!==0;)k--,s.negative=0,s._ishlnsubmul(h,1,B),s.isZero()||(s.negative^=1);t&&(t.words[B]=k)}return t&&t.strip(),s.strip(),r!=="div"&&i!==0&&s.iushrn(i),{div:t||null,mod:s}},n.prototype.divmod=function(e,r,i){if(f(!e.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var s,h,c;return this.negative!==0&&e.negative===0?(c=this.neg().divmod(e,r),r!=="mod"&&(s=c.div.neg()),r!=="div"&&(h=c.mod.neg(),i&&h.negative!==0&&h.iadd(e)),{div:s,mod:h}):this.negative===0&&e.negative!==0?(c=this.divmod(e.neg(),r),r!=="mod"&&(s=c.div.neg()),{div:s,mod:c.mod}):this.negative&e.negative?(c=this.neg().divmod(e.neg(),r),r!=="div"&&(h=c.mod.neg(),i&&h.negative!==0&&h.isub(e)),{div:c.div,mod:h}):e.length>this.length||this.cmp(e)<0?{div:new n(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new n(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new n(this.modn(e.words[0]))}:this._wordDiv(e,r)},n.prototype.div=function(e){return this.divmod(e,"div",!1).div},n.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},n.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},n.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var i=r.div.negative!==0?r.mod.isub(e):r.mod,s=e.ushrn(1),h=e.andln(1),c=i.cmp(s);return c<0||h===1&&c===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},n.prototype.modn=function(e){f(e<=67108863);for(var r=(1<<26)%e,i=0,s=this.length-1;s>=0;s--)i=(r*i+(this.words[s]|0))%e;return i},n.prototype.idivn=function(e){f(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var s=(this.words[i]|0)+r*67108864;this.words[i]=s/e|0,r=s%e}return this.strip()},n.prototype.divn=function(e){return this.clone().idivn(e)},n.prototype.egcd=function(e){f(e.negative===0),f(!e.isZero());var r=this,i=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var s=new n(1),h=new n(0),c=new n(0),m=new n(1),l=0;r.isEven()&&i.isEven();)r.iushrn(1),i.iushrn(1),++l;for(var t=i.clone(),u=r.clone();!r.isZero();){for(var S=0,B=1;!(r.words[0]&B)&&S<26;++S,B<<=1);if(S>0)for(r.iushrn(S);S-- >0;)(s.isOdd()||h.isOdd())&&(s.iadd(t),h.isub(u)),s.iushrn(1),h.iushrn(1);for(var k=0,q=1;!(i.words[0]&q)&&k<26;++k,q<<=1);if(k>0)for(i.iushrn(k);k-- >0;)(c.isOdd()||m.isOdd())&&(c.iadd(t),m.isub(u)),c.iushrn(1),m.iushrn(1);r.cmp(i)>=0?(r.isub(i),s.isub(c),h.isub(m)):(i.isub(r),c.isub(s),m.isub(h))}return{a:c,b:m,gcd:i.iushln(l)}},n.prototype._invmp=function(e){f(e.negative===0),f(!e.isZero());var r=this,i=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var s=new n(1),h=new n(0),c=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var m=0,l=1;!(r.words[0]&l)&&m<26;++m,l<<=1);if(m>0)for(r.iushrn(m);m-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var t=0,u=1;!(i.words[0]&u)&&t<26;++t,u<<=1);if(t>0)for(i.iushrn(t);t-- >0;)h.isOdd()&&h.iadd(c),h.iushrn(1);r.cmp(i)>=0?(r.isub(i),s.isub(h)):(i.isub(r),h.isub(s))}var S;return r.cmpn(1)===0?S=s:S=h,S.cmpn(0)<0&&S.iadd(e),S},n.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),i=e.clone();r.negative=0,i.negative=0;for(var s=0;r.isEven()&&i.isEven();s++)r.iushrn(1),i.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;i.isEven();)i.iushrn(1);var h=r.cmp(i);if(h<0){var c=r;r=i,i=c}else if(h===0||i.cmpn(1)===0)break;r.isub(i)}while(!0);return i.iushln(s)},n.prototype.invm=function(e){return this.egcd(e).a.umod(e)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(e){return this.words[0]&e},n.prototype.bincn=function(e){f(typeof e=="number");var r=e%26,i=(e-r)/26,s=1<<r;if(this.length<=i)return this._expand(i+1),this.words[i]|=s,this;for(var h=s,c=i;h!==0&&c<this.length;c++){var m=this.words[c]|0;m+=h,h=m>>>26,m&=67108863,this.words[c]=m}return h!==0&&(this.words[c]=h,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.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 i;if(this.length>1)i=1;else{r&&(e=-e),f(e<=67108863,"Number is too big");var s=this.words[0]|0;i=s===e?0:s<e?-1:1}return this.negative!==0?-i|0:i},n.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},n.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,i=this.length-1;i>=0;i--){var s=this.words[i]|0,h=e.words[i]|0;if(s!==h){s<h?r=-1:s>h&&(r=1);break}}return r},n.prototype.gtn=function(e){return this.cmpn(e)===1},n.prototype.gt=function(e){return this.cmp(e)===1},n.prototype.gten=function(e){return this.cmpn(e)>=0},n.prototype.gte=function(e){return this.cmp(e)>=0},n.prototype.ltn=function(e){return this.cmpn(e)===-1},n.prototype.lt=function(e){return this.cmp(e)===-1},n.prototype.lten=function(e){return this.cmpn(e)<=0},n.prototype.lte=function(e){return this.cmp(e)<=0},n.prototype.eqn=function(e){return this.cmpn(e)===0},n.prototype.eq=function(e){return this.cmp(e)===0},n.red=function(e){return new z(e)},n.prototype.toRed=function(e){return f(!this.red,"Already a number in reduction context"),f(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},n.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(e){return this.red=e,this},n.prototype.forceRed=function(e){return f(!this.red,"Already a number in reduction context"),this._forceRed(e)},n.prototype.redAdd=function(e){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},n.prototype.redIAdd=function(e){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},n.prototype.redSub=function(e){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},n.prototype.redISub=function(e){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},n.prototype.redShl=function(e){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},n.prototype.redMul=function(e){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},n.prototype.redIMul=function(e){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},n.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(e){return f(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(p,e){this.name=p,this.p=new n(e,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var e=new n(null);return e.words=new Array(Math.ceil(this.n/13)),e},D.prototype.ireduce=function(e){var r=e,i;do this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),i=r.bitLength();while(i>this.n);var s=i<this.n?-1:r.ucmp(this.p);return s===0?(r.words[0]=0,r.length=1):s>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")}d(Z,D),Z.prototype.split=function(e,r){for(var i=4194303,s=Math.min(e.length,9),h=0;h<s;h++)r.words[h]=e.words[h];if(r.length=s,e.length<=9){e.words[0]=0,e.length=1;return}var c=e.words[9];for(r.words[r.length++]=c&i,h=10;h<e.length;h++){var m=e.words[h]|0;e.words[h-10]=(m&i)<<4|c>>>22,c=m}c>>>=22,e.words[h-10]=c,c===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,i=0;i<e.length;i++){var s=e.words[i]|0;r+=s*977,e.words[i]=r&67108863,r=s*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")}d(W,D);function Q(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}d(Q,D);function K(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}d(K,D),K.prototype.imulK=function(e){for(var r=0,i=0;i<e.length;i++){var s=(e.words[i]|0)*19+r,h=s&67108863;s>>>=26,e.words[i]=h,r=s}return r!==0&&(e.words[e.length++]=r),e},n._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 z(p){if(typeof p=="string"){var e=n._prime(p);this.m=e.p,this.prime=e}else f(p.gtn(1),"modulus must be greater than 1"),this.m=p,this.prime=null}z.prototype._verify1=function(e){f(e.negative===0,"red works only with positives"),f(e.red,"red works only with red numbers")},z.prototype._verify2=function(e,r){f((e.negative|r.negative)===0,"red works only with positives"),f(e.red&&e.red===r.red,"red works only with red numbers")},z.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},z.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},z.prototype.add=function(e,r){this._verify2(e,r);var i=e.add(r);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},z.prototype.iadd=function(e,r){this._verify2(e,r);var i=e.iadd(r);return i.cmp(this.m)>=0&&i.isub(this.m),i},z.prototype.sub=function(e,r){this._verify2(e,r);var i=e.sub(r);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},z.prototype.isub=function(e,r){this._verify2(e,r);var i=e.isub(r);return i.cmpn(0)<0&&i.iadd(this.m),i},z.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},z.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},z.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},z.prototype.isqr=function(e){return this.imul(e,e.clone())},z.prototype.sqr=function(e){return this.mul(e,e)},z.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(f(r%2===1),r===3){var i=this.m.add(new n(1)).iushrn(2);return this.pow(e,i)}for(var s=this.m.subn(1),h=0;!s.isZero()&&s.andln(1)===0;)h++,s.iushrn(1);f(!s.isZero());var c=new n(1).toRed(this),m=c.redNeg(),l=this.m.subn(1).iushrn(1),t=this.m.bitLength();for(t=new n(2*t*t).toRed(this);this.pow(t,l).cmp(m)!==0;)t.redIAdd(m);for(var u=this.pow(t,s),S=this.pow(e,s.addn(1).iushrn(1)),B=this.pow(e,s),k=h;B.cmp(c)!==0;){for(var q=B,F=0;q.cmp(c)!==0;F++)q=q.redSqr();f(F<k);var ee=this.pow(u,new n(1).iushln(k-F-1));S=S.redMul(ee),u=ee.redSqr(),B=B.redMul(u),k=F}return S},z.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},z.prototype.pow=function(e,r){if(r.isZero())return new n(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var i=4,s=new Array(1<<i);s[0]=new n(1).toRed(this),s[1]=e;for(var h=2;h<s.length;h++)s[h]=this.mul(s[h-1],e);var c=s[0],m=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],S=t-1;S>=0;S--){var B=u>>S&1;if(c!==s[0]&&(c=this.sqr(c)),B===0&&m===0){l=0;continue}m<<=1,m|=B,l++,!(l!==i&&(h!==0||S!==0))&&(c=this.mul(c,s[m]),l=0,m=0)}t=26}return c},z.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},z.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},n.mont=function(e){return new X(e)};function X(p){z.call(this,p),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(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)}d(X,z),X.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},X.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},X.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(r),s=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=i.isub(s).iushrn(this.shift),c=h;return h.cmp(this.m)>=0?c=h.isub(this.m):h.cmpn(0)<0&&(c=h.iadd(this.m)),c._forceRed(this)},X.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new n(0)._forceRed(this);var i=e.mul(r),s=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=i.isub(s).iushrn(this.shift),c=h;return h.cmp(this.m)>=0?c=h.isub(this.m):h.cmpn(0)<0&&(c=h.iadd(this.m)),c._forceRed(this)},X.prototype.invm=function(e){var r=this.imod(e._invmp(this.m).mul(this.r2));return r._forceRed(this)}})(typeof e5>"u"||e5,pW)});var t5=St(mW=>{"use strict";var n5e=Ae(Be());Ie();Re();var ub=mW;function Ade(a,o){if(Array.isArray(a))return a.slice();if(!a)return[];var f=[];if(typeof a!="string"){for(var d=0;d<a.length;d++)f[d]=a[d]|0;return f}if(o==="hex"){a=a.replace(/[^a-z0-9]+/ig,""),a.length%2!==0&&(a="0"+a);for(var d=0;d<a.length;d+=2)f.push(parseInt(a[d]+a[d+1],16))}else for(var d=0;d<a.length;d++){var n=a.charCodeAt(d),v=n>>8,b=n&255;v?f.push(v,b):f.push(b)}return f}ub.toArray=Ade;function vW(a){return a.length===1?"0"+a:a}ub.zero2=vW;function bW(a){for(var o="",f=0;f<a.length;f++)o+=vW(a[f].toString(16));return o}ub.toHex=bW;ub.encode=function(o,f){return f==="hex"?bW(o):o}});var ja=St(gW=>{"use strict";var f5e=Ae(Be());Ie();Re();var Bs=gW,Bde=vf(),Rde=Kf(),lb=t5();Bs.assert=Rde;Bs.toArray=lb.toArray;Bs.zero2=lb.zero2;Bs.toHex=lb.toHex;Bs.encode=lb.encode;function Ide(a,o,f){var d=new Array(Math.max(a.bitLength(),f)+1),n;for(n=0;n<d.length;n+=1)d[n]=0;var v=1<<o+1,b=a.clone();for(n=0;n<d.length;n++){var y,M=b.andln(v-1);b.isOdd()?(M>(v>>1)-1?y=(v>>1)-M:y=M,b.isubn(y)):y=0,d[n]=y,b.iushrn(1)}return d}Bs.getNAF=Ide;function Tde(a,o){var f=[[],[]];a=a.clone(),o=o.clone();for(var d=0,n=0,v;a.cmpn(-d)>0||o.cmpn(-n)>0;){var b=a.andln(3)+d&3,y=o.andln(3)+n&3;b===3&&(b=-1),y===3&&(y=-1);var M;b&1?(v=a.andln(7)+d&7,(v===3||v===5)&&y===2?M=-b:M=b):M=0,f[0].push(M);var w;y&1?(v=o.andln(7)+n&7,(v===3||v===5)&&b===2?w=-y:w=y):w=0,f[1].push(w),2*d===M+1&&(d=1-d),2*n===w+1&&(n=1-n),a.iushrn(1),o.iushrn(1)}return f}Bs.getJSF=Tde;function kde(a,o,f){var d="_"+o;a.prototype[o]=function(){return this[d]!==void 0?this[d]:this[d]=f.call(this)}}Bs.cachedProperty=kde;function $de(a){return typeof a=="string"?Bs.toArray(a,"hex"):a}Bs.parseBytes=$de;function Pde(a){return new Bde(a,"hex","le")}Bs.intFromLE=Pde});var a5=St((l5e,n5)=>{var d5e=Ae(Be());Ie();Re();var r5;n5.exports=function(o){return r5||(r5=new dh(null)),r5.generate(o)};function dh(a){this.rand=a}n5.exports.Rand=dh;dh.prototype.generate=function(o){return this._rand(o)};dh.prototype._rand=function(o){if(this.rand.getBytes)return this.rand.getBytes(o);for(var f=new Uint8Array(o),d=0;d<f.length;d++)f[d]=this.rand.getByte();return f};if(typeof self=="object")self.crypto&&self.crypto.getRandomValues?dh.prototype._rand=function(o){var f=new Uint8Array(o);return self.crypto.getRandomValues(f),f}:self.msCrypto&&self.msCrypto.getRandomValues?dh.prototype._rand=function(o){var f=new Uint8Array(o);return self.msCrypto.getRandomValues(f),f}:typeof window=="object"&&(dh.prototype._rand=function(){throw new Error("Not implemented yet")});else try{if(i5=_m(),typeof i5.randomBytes!="function")throw new Error("Not supported");dh.prototype._rand=function(o){return i5.randomBytes(o)}}catch{}var i5});var q1=St((v5e,yW)=>{"use strict";var b5e=Ae(Be());Ie();Re();var Zu=vf(),O1=ja(),db=O1.getNAF,Nde=O1.getJSF,cb=O1.assert;function ch(a,o){this.type=a,this.p=new Zu(o.p,16),this.red=o.prime?Zu.red(o.prime):Zu.mont(this.p),this.zero=new Zu(0).toRed(this.red),this.one=new Zu(1).toRed(this.red),this.two=new Zu(2).toRed(this.red),this.n=o.n&&new Zu(o.n,16),this.g=o.g&&this.pointFromJSON(o.g,o.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 f=this.n&&this.p.div(this.n);!f||f.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}yW.exports=ch;ch.prototype.point=function(){throw new Error("Not implemented")};ch.prototype.validate=function(){throw new Error("Not implemented")};ch.prototype._fixedNafMul=function(o,f){cb(o.precomputed);var d=o._getDoubles(),n=db(f,1,this._bitLength),v=(1<<d.step+1)-(d.step%2===0?2:1);v/=3;var b=[],y,M;for(y=0;y<n.length;y+=d.step){M=0;for(var w=y+d.step-1;w>=y;w--)M=(M<<1)+n[w];b.push(M)}for(var g=this.jpoint(null,null,null),_=this.jpoint(null,null,null),x=v;x>0;x--){for(y=0;y<b.length;y++)M=b[y],M===x?_=_.mixedAdd(d.points[y]):M===-x&&(_=_.mixedAdd(d.points[y].neg()));g=g.add(_)}return g.toP()};ch.prototype._wnafMul=function(o,f){var d=4,n=o._getNAFPoints(d);d=n.wnd;for(var v=n.points,b=db(f,d,this._bitLength),y=this.jpoint(null,null,null),M=b.length-1;M>=0;M--){for(var w=0;M>=0&&b[M]===0;M--)w++;if(M>=0&&w++,y=y.dblp(w),M<0)break;var g=b[M];cb(g!==0),o.type==="affine"?g>0?y=y.mixedAdd(v[g-1>>1]):y=y.mixedAdd(v[-g-1>>1].neg()):g>0?y=y.add(v[g-1>>1]):y=y.add(v[-g-1>>1].neg())}return o.type==="affine"?y.toP():y};ch.prototype._wnafMulAdd=function(o,f,d,n,v){var b=this._wnafT1,y=this._wnafT2,M=this._wnafT3,w=0,g,_,x;for(g=0;g<n;g++){x=f[g];var E=x._getNAFPoints(o);b[g]=E.wnd,y[g]=E.points}for(g=n-1;g>=1;g-=2){var R=g-1,T=g;if(b[R]!==1||b[T]!==1){M[R]=db(d[R],b[R],this._bitLength),M[T]=db(d[T],b[T],this._bitLength),w=Math.max(M[R].length,w),w=Math.max(M[T].length,w);continue}var N=[f[R],null,null,f[T]];f[R].y.cmp(f[T].y)===0?(N[1]=f[R].add(f[T]),N[2]=f[R].toJ().mixedAdd(f[T].neg())):f[R].y.cmp(f[T].y.redNeg())===0?(N[1]=f[R].toJ().mixedAdd(f[T]),N[2]=f[R].add(f[T].neg())):(N[1]=f[R].toJ().mixedAdd(f[T]),N[2]=f[R].toJ().mixedAdd(f[T].neg()));var P=[-3,-1,-5,-7,0,7,5,1,3],L=Nde(d[R],d[T]);for(w=Math.max(L[0].length,w),M[R]=new Array(w),M[T]=new Array(w),_=0;_<w;_++){var D=L[0][_]|0,Z=L[1][_]|0;M[R][_]=P[(D+1)*3+(Z+1)],M[T][_]=0,y[R]=N}}var W=this.jpoint(null,null,null),Q=this._wnafT4;for(g=w;g>=0;g--){for(var K=0;g>=0;){var z=!0;for(_=0;_<n;_++)Q[_]=M[_][g]|0,Q[_]!==0&&(z=!1);if(!z)break;K++,g--}if(g>=0&&K++,W=W.dblp(K),g<0)break;for(_=0;_<n;_++){var X=Q[_];X!==0&&(X>0?x=y[_][X-1>>1]:X<0&&(x=y[_][-X-1>>1].neg()),x.type==="affine"?W=W.mixedAdd(x):W=W.add(x))}}for(g=0;g<n;g++)y[g]=null;return v?W:W.toP()};function Ho(a,o){this.curve=a,this.type=o,this.precomputed=null}ch.BasePoint=Ho;Ho.prototype.eq=function(){throw new Error("Not implemented")};Ho.prototype.validate=function(){return this.curve.validate(this)};ch.prototype.decodePoint=function(o,f){o=O1.toArray(o,f);var d=this.p.byteLength();if((o[0]===4||o[0]===6||o[0]===7)&&o.length-1===2*d){o[0]===6?cb(o[o.length-1]%2===0):o[0]===7&&cb(o[o.length-1]%2===1);var n=this.point(o.slice(1,1+d),o.slice(1+d,1+2*d));return n}else if((o[0]===2||o[0]===3)&&o.length-1===d)return this.pointFromX(o.slice(1,1+d),o[0]===3);throw new Error("Unknown point format")};Ho.prototype.encodeCompressed=function(o){return this.encode(o,!0)};Ho.prototype._encode=function(o){var f=this.curve.p.byteLength(),d=this.getX().toArray("be",f);return o?[this.getY().isEven()?2:3].concat(d):[4].concat(d,this.getY().toArray("be",f))};Ho.prototype.encode=function(o,f){return O1.encode(this._encode(f),o)};Ho.prototype.precompute=function(o){if(this.precomputed)return this;var f={doubles:null,naf:null,beta:null};return f.naf=this._getNAFPoints(8),f.doubles=this._getDoubles(4,o),f.beta=this._getBeta(),this.precomputed=f,this};Ho.prototype._hasDoubles=function(o){if(!this.precomputed)return!1;var f=this.precomputed.doubles;return f?f.points.length>=Math.ceil((o.bitLength()+1)/f.step):!1};Ho.prototype._getDoubles=function(o,f){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var d=[this],n=this,v=0;v<f;v+=o){for(var b=0;b<o;b++)n=n.dbl();d.push(n)}return{step:o,points:d}};Ho.prototype._getNAFPoints=function(o){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var f=[this],d=(1<<o)-1,n=d===1?null:this.dbl(),v=1;v<d;v++)f[v]=f[v-1].add(n);return{wnd:o,points:f}};Ho.prototype._getBeta=function(){return null};Ho.prototype.dblp=function(o){for(var f=this,d=0;d<o;d++)f=f.dbl();return f}});var MW=St((y5e,wW)=>{"use strict";var w5e=Ae(Be());Ie();Re();var Cde=ja(),ji=vf(),o5=Cn(),kd=q1(),Lde=Cde.assert;function Ko(a){kd.call(this,"short",a),this.a=new ji(a.a,16).toRed(this.red),this.b=new ji(a.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(a),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}o5(Ko,kd);wW.exports=Ko;Ko.prototype._getEndomorphism=function(o){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var f,d;if(o.beta)f=new ji(o.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);f=n[0].cmp(n[1])<0?n[0]:n[1],f=f.toRed(this.red)}if(o.lambda)d=new ji(o.lambda,16);else{var v=this._getEndoRoots(this.n);this.g.mul(v[0]).x.cmp(this.g.x.redMul(f))===0?d=v[0]:(d=v[1],Lde(this.g.mul(d).x.cmp(this.g.x.redMul(f))===0))}var b;return o.basis?b=o.basis.map(function(y){return{a:new ji(y.a,16),b:new ji(y.b,16)}}):b=this._getEndoBasis(d),{beta:f,lambda:d,basis:b}}};Ko.prototype._getEndoRoots=function(o){var f=o===this.p?this.red:ji.mont(o),d=new ji(2).toRed(f).redInvm(),n=d.redNeg(),v=new ji(3).toRed(f).redNeg().redSqrt().redMul(d),b=n.redAdd(v).fromRed(),y=n.redSub(v).fromRed();return[b,y]};Ko.prototype._getEndoBasis=function(o){for(var f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=o,n=this.n.clone(),v=new ji(1),b=new ji(0),y=new ji(0),M=new ji(1),w,g,_,x,E,R,T,N=0,P,L;d.cmpn(0)!==0;){var D=n.div(d);P=n.sub(D.mul(d)),L=y.sub(D.mul(v));var Z=M.sub(D.mul(b));if(!_&&P.cmp(f)<0)w=T.neg(),g=v,_=P.neg(),x=L;else if(_&&++N===2)break;T=P,n=d,d=P,y=v,v=L,M=b,b=Z}E=P.neg(),R=L;var W=_.sqr().add(x.sqr()),Q=E.sqr().add(R.sqr());return Q.cmp(W)>=0&&(E=w,R=g),_.negative&&(_=_.neg(),x=x.neg()),E.negative&&(E=E.neg(),R=R.neg()),[{a:_,b:x},{a:E,b:R}]};Ko.prototype._endoSplit=function(o){var f=this.endo.basis,d=f[0],n=f[1],v=n.b.mul(o).divRound(this.n),b=d.b.neg().mul(o).divRound(this.n),y=v.mul(d.a),M=b.mul(n.a),w=v.mul(d.b),g=b.mul(n.b),_=o.sub(y).sub(M),x=w.add(g).neg();return{k1:_,k2:x}};Ko.prototype.pointFromX=function(o,f){o=new ji(o,16),o.red||(o=o.toRed(this.red));var d=o.redSqr().redMul(o).redIAdd(o.redMul(this.a)).redIAdd(this.b),n=d.redSqrt();if(n.redSqr().redSub(d).cmp(this.zero)!==0)throw new Error("invalid point");var v=n.fromRed().isOdd();return(f&&!v||!f&&v)&&(n=n.redNeg()),this.point(o,n)};Ko.prototype.validate=function(o){if(o.inf)return!0;var f=o.x,d=o.y,n=this.a.redMul(f),v=f.redSqr().redMul(f).redIAdd(n).redIAdd(this.b);return d.redSqr().redISub(v).cmpn(0)===0};Ko.prototype._endoWnafMulAdd=function(o,f,d){for(var n=this._endoWnafT1,v=this._endoWnafT2,b=0;b<o.length;b++){var y=this._endoSplit(f[b]),M=o[b],w=M._getBeta();y.k1.negative&&(y.k1.ineg(),M=M.neg(!0)),y.k2.negative&&(y.k2.ineg(),w=w.neg(!0)),n[b*2]=M,n[b*2+1]=w,v[b*2]=y.k1,v[b*2+1]=y.k2}for(var g=this._wnafMulAdd(1,n,v,b*2,d),_=0;_<b*2;_++)n[_]=null,v[_]=null;return g};function Rn(a,o,f,d){kd.BasePoint.call(this,a,"affine"),o===null&&f===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new ji(o,16),this.y=new ji(f,16),d&&(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)}o5(Rn,kd.BasePoint);Ko.prototype.point=function(o,f,d){return new Rn(this,o,f,d)};Ko.prototype.pointFromJSON=function(o,f){return Rn.fromJSON(this,o,f)};Rn.prototype._getBeta=function(){if(this.curve.endo){var o=this.precomputed;if(o&&o.beta)return o.beta;var f=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(o){var d=this.curve,n=function(v){return d.point(v.x.redMul(d.endo.beta),v.y)};o.beta=f,f.precomputed={beta:null,naf:o.naf&&{wnd:o.naf.wnd,points:o.naf.points.map(n)},doubles:o.doubles&&{step:o.doubles.step,points:o.doubles.points.map(n)}}}return f}};Rn.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]};Rn.fromJSON=function(o,f,d){typeof f=="string"&&(f=JSON.parse(f));var n=o.point(f[0],f[1],d);if(!f[2])return n;function v(y){return o.point(y[0],y[1],d)}var b=f[2];return n.precomputed={beta:null,doubles:b.doubles&&{step:b.doubles.step,points:[n].concat(b.doubles.points.map(v))},naf:b.naf&&{wnd:b.naf.wnd,points:[n].concat(b.naf.points.map(v))}},n};Rn.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)+">"};Rn.prototype.isInfinity=function(){return this.inf};Rn.prototype.add=function(o){if(this.inf)return o;if(o.inf)return this;if(this.eq(o))return this.dbl();if(this.neg().eq(o))return this.curve.point(null,null);if(this.x.cmp(o.x)===0)return this.curve.point(null,null);var f=this.y.redSub(o.y);f.cmpn(0)!==0&&(f=f.redMul(this.x.redSub(o.x).redInvm()));var d=f.redSqr().redISub(this.x).redISub(o.x),n=f.redMul(this.x.redSub(d)).redISub(this.y);return this.curve.point(d,n)};Rn.prototype.dbl=function(){if(this.inf)return this;var o=this.y.redAdd(this.y);if(o.cmpn(0)===0)return this.curve.point(null,null);var f=this.curve.a,d=this.x.redSqr(),n=o.redInvm(),v=d.redAdd(d).redIAdd(d).redIAdd(f).redMul(n),b=v.redSqr().redISub(this.x.redAdd(this.x)),y=v.redMul(this.x.redSub(b)).redISub(this.y);return this.curve.point(b,y)};Rn.prototype.getX=function(){return this.x.fromRed()};Rn.prototype.getY=function(){return this.y.fromRed()};Rn.prototype.mul=function(o){return o=new ji(o,16),this.isInfinity()?this:this._hasDoubles(o)?this.curve._fixedNafMul(this,o):this.curve.endo?this.curve._endoWnafMulAdd([this],[o]):this.curve._wnafMul(this,o)};Rn.prototype.mulAdd=function(o,f,d){var n=[this,f],v=[o,d];return this.curve.endo?this.curve._endoWnafMulAdd(n,v):this.curve._wnafMulAdd(1,n,v,2)};Rn.prototype.jmulAdd=function(o,f,d){var n=[this,f],v=[o,d];return this.curve.endo?this.curve._endoWnafMulAdd(n,v,!0):this.curve._wnafMulAdd(1,n,v,2,!0)};Rn.prototype.eq=function(o){return this===o||this.inf===o.inf&&(this.inf||this.x.cmp(o.x)===0&&this.y.cmp(o.y)===0)};Rn.prototype.neg=function(o){if(this.inf)return this;var f=this.curve.point(this.x,this.y.redNeg());if(o&&this.precomputed){var d=this.precomputed,n=function(v){return v.neg()};f.precomputed={naf:d.naf&&{wnd:d.naf.wnd,points:d.naf.points.map(n)},doubles:d.doubles&&{step:d.doubles.step,points:d.doubles.points.map(n)}}}return f};Rn.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var o=this.curve.jpoint(this.x,this.y,this.curve.one);return o};function On(a,o,f,d){kd.BasePoint.call(this,a,"jacobian"),o===null&&f===null&&d===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new ji(0)):(this.x=new ji(o,16),this.y=new ji(f,16),this.z=new ji(d,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}o5(On,kd.BasePoint);Ko.prototype.jpoint=function(o,f,d){return new On(this,o,f,d)};On.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var o=this.z.redInvm(),f=o.redSqr(),d=this.x.redMul(f),n=this.y.redMul(f).redMul(o);return this.curve.point(d,n)};On.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};On.prototype.add=function(o){if(this.isInfinity())return o;if(o.isInfinity())return this;var f=o.z.redSqr(),d=this.z.redSqr(),n=this.x.redMul(f),v=o.x.redMul(d),b=this.y.redMul(f.redMul(o.z)),y=o.y.redMul(d.redMul(this.z)),M=n.redSub(v),w=b.redSub(y);if(M.cmpn(0)===0)return w.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var g=M.redSqr(),_=g.redMul(M),x=n.redMul(g),E=w.redSqr().redIAdd(_).redISub(x).redISub(x),R=w.redMul(x.redISub(E)).redISub(b.redMul(_)),T=this.z.redMul(o.z).redMul(M);return this.curve.jpoint(E,R,T)};On.prototype.mixedAdd=function(o){if(this.isInfinity())return o.toJ();if(o.isInfinity())return this;var f=this.z.redSqr(),d=this.x,n=o.x.redMul(f),v=this.y,b=o.y.redMul(f).redMul(this.z),y=d.redSub(n),M=v.redSub(b);if(y.cmpn(0)===0)return M.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var w=y.redSqr(),g=w.redMul(y),_=d.redMul(w),x=M.redSqr().redIAdd(g).redISub(_).redISub(_),E=M.redMul(_.redISub(x)).redISub(v.redMul(g)),R=this.z.redMul(y);return this.curve.jpoint(x,E,R)};On.prototype.dblp=function(o){if(o===0)return this;if(this.isInfinity())return this;if(!o)return this.dbl();var f;if(this.curve.zeroA||this.curve.threeA){var d=this;for(f=0;f<o;f++)d=d.dbl();return d}var n=this.curve.a,v=this.curve.tinv,b=this.x,y=this.y,M=this.z,w=M.redSqr().redSqr(),g=y.redAdd(y);for(f=0;f<o;f++){var _=b.redSqr(),x=g.redSqr(),E=x.redSqr(),R=_.redAdd(_).redIAdd(_).redIAdd(n.redMul(w)),T=b.redMul(x),N=R.redSqr().redISub(T.redAdd(T)),P=T.redISub(N),L=R.redMul(P);L=L.redIAdd(L).redISub(E);var D=g.redMul(M);f+1<o&&(w=w.redMul(E)),b=N,M=D,g=L}return this.curve.jpoint(b,g.redMul(v),M)};On.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()};On.prototype._zeroDbl=function(){var o,f,d;if(this.zOne){var n=this.x.redSqr(),v=this.y.redSqr(),b=v.redSqr(),y=this.x.redAdd(v).redSqr().redISub(n).redISub(b);y=y.redIAdd(y);var M=n.redAdd(n).redIAdd(n),w=M.redSqr().redISub(y).redISub(y),g=b.redIAdd(b);g=g.redIAdd(g),g=g.redIAdd(g),o=w,f=M.redMul(y.redISub(w)).redISub(g),d=this.y.redAdd(this.y)}else{var _=this.x.redSqr(),x=this.y.redSqr(),E=x.redSqr(),R=this.x.redAdd(x).redSqr().redISub(_).redISub(E);R=R.redIAdd(R);var T=_.redAdd(_).redIAdd(_),N=T.redSqr(),P=E.redIAdd(E);P=P.redIAdd(P),P=P.redIAdd(P),o=N.redISub(R).redISub(R),f=T.redMul(R.redISub(o)).redISub(P),d=this.y.redMul(this.z),d=d.redIAdd(d)}return this.curve.jpoint(o,f,d)};On.prototype._threeDbl=function(){var o,f,d;if(this.zOne){var n=this.x.redSqr(),v=this.y.redSqr(),b=v.redSqr(),y=this.x.redAdd(v).redSqr().redISub(n).redISub(b);y=y.redIAdd(y);var M=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),w=M.redSqr().redISub(y).redISub(y);o=w;var g=b.redIAdd(b);g=g.redIAdd(g),g=g.redIAdd(g),f=M.redMul(y.redISub(w)).redISub(g),d=this.y.redAdd(this.y)}else{var _=this.z.redSqr(),x=this.y.redSqr(),E=this.x.redMul(x),R=this.x.redSub(_).redMul(this.x.redAdd(_));R=R.redAdd(R).redIAdd(R);var T=E.redIAdd(E);T=T.redIAdd(T);var N=T.redAdd(T);o=R.redSqr().redISub(N),d=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),f=R.redMul(T.redISub(o)).redISub(P)}return this.curve.jpoint(o,f,d)};On.prototype._dbl=function(){var o=this.curve.a,f=this.x,d=this.y,n=this.z,v=n.redSqr().redSqr(),b=f.redSqr(),y=d.redSqr(),M=b.redAdd(b).redIAdd(b).redIAdd(o.redMul(v)),w=f.redAdd(f);w=w.redIAdd(w);var g=w.redMul(y),_=M.redSqr().redISub(g.redAdd(g)),x=g.redISub(_),E=y.redSqr();E=E.redIAdd(E),E=E.redIAdd(E),E=E.redIAdd(E);var R=M.redMul(x).redISub(E),T=d.redAdd(d).redMul(n);return this.curve.jpoint(_,R,T)};On.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var o=this.x.redSqr(),f=this.y.redSqr(),d=this.z.redSqr(),n=f.redSqr(),v=o.redAdd(o).redIAdd(o),b=v.redSqr(),y=this.x.redAdd(f).redSqr().redISub(o).redISub(n);y=y.redIAdd(y),y=y.redAdd(y).redIAdd(y),y=y.redISub(b);var M=y.redSqr(),w=n.redIAdd(n);w=w.redIAdd(w),w=w.redIAdd(w),w=w.redIAdd(w);var g=v.redIAdd(y).redSqr().redISub(b).redISub(M).redISub(w),_=f.redMul(g);_=_.redIAdd(_),_=_.redIAdd(_);var x=this.x.redMul(M).redISub(_);x=x.redIAdd(x),x=x.redIAdd(x);var E=this.y.redMul(g.redMul(w.redISub(g)).redISub(y.redMul(M)));E=E.redIAdd(E),E=E.redIAdd(E),E=E.redIAdd(E);var R=this.z.redAdd(y).redSqr().redISub(d).redISub(M);return this.curve.jpoint(x,E,R)};On.prototype.mul=function(o,f){return o=new ji(o,f),this.curve._wnafMul(this,o)};On.prototype.eq=function(o){if(o.type==="affine")return this.eq(o.toJ());if(this===o)return!0;var f=this.z.redSqr(),d=o.z.redSqr();if(this.x.redMul(d).redISub(o.x.redMul(f)).cmpn(0)!==0)return!1;var n=f.redMul(this.z),v=d.redMul(o.z);return this.y.redMul(v).redISub(o.y.redMul(n)).cmpn(0)===0};On.prototype.eqXToP=function(o){var f=this.z.redSqr(),d=o.toRed(this.curve.red).redMul(f);if(this.x.cmp(d)===0)return!0;for(var n=o.clone(),v=this.curve.redN.redMul(f);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(d.redIAdd(v),this.x.cmp(d)===0)return!0}};On.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)+">"};On.prototype.isInfinity=function(){return this.z.cmpn(0)===0}});var SW=St((x5e,xW)=>{"use strict";var S5e=Ae(Be());Ie();Re();var $d=vf(),_W=Cn(),pb=q1(),Dde=ja();function Pd(a){pb.call(this,"mont",a),this.a=new $d(a.a,16).toRed(this.red),this.b=new $d(a.b,16).toRed(this.red),this.i4=new $d(4).toRed(this.red).redInvm(),this.two=new $d(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}_W(Pd,pb);xW.exports=Pd;Pd.prototype.validate=function(o){var f=o.normalize().x,d=f.redSqr(),n=d.redMul(f).redAdd(d.redMul(this.a)).redAdd(f),v=n.redSqrt();return v.redSqr().cmp(n)===0};function In(a,o,f){pb.BasePoint.call(this,a,"projective"),o===null&&f===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new $d(o,16),this.z=new $d(f,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}_W(In,pb.BasePoint);Pd.prototype.decodePoint=function(o,f){return this.point(Dde.toArray(o,f),1)};Pd.prototype.point=function(o,f){return new In(this,o,f)};Pd.prototype.pointFromJSON=function(o){return In.fromJSON(this,o)};In.prototype.precompute=function(){};In.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};In.fromJSON=function(o,f){return new In(o,f[0],f[1]||o.one)};In.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)+">"};In.prototype.isInfinity=function(){return this.z.cmpn(0)===0};In.prototype.dbl=function(){var o=this.x.redAdd(this.z),f=o.redSqr(),d=this.x.redSub(this.z),n=d.redSqr(),v=f.redSub(n),b=f.redMul(n),y=v.redMul(n.redAdd(this.curve.a24.redMul(v)));return this.curve.point(b,y)};In.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};In.prototype.diffAdd=function(o,f){var d=this.x.redAdd(this.z),n=this.x.redSub(this.z),v=o.x.redAdd(o.z),b=o.x.redSub(o.z),y=b.redMul(d),M=v.redMul(n),w=f.z.redMul(y.redAdd(M).redSqr()),g=f.x.redMul(y.redISub(M).redSqr());return this.curve.point(w,g)};In.prototype.mul=function(o){for(var f=o.clone(),d=this,n=this.curve.point(null,null),v=this,b=[];f.cmpn(0)!==0;f.iushrn(1))b.push(f.andln(1));for(var y=b.length-1;y>=0;y--)b[y]===0?(d=d.diffAdd(n,v),n=n.dbl()):(n=d.diffAdd(n,v),d=d.dbl());return n};In.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};In.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};In.prototype.eq=function(o){return this.getX().cmp(o.getX())===0};In.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};In.prototype.getX=function(){return this.normalize(),this.x.fromRed()}});var BW=St((B5e,AW)=>{"use strict";var R5e=Ae(Be());Ie();Re();var Ode=ja(),r0=vf(),EW=Cn(),vb=q1(),qde=Ode.assert;function bf(a){this.twisted=(a.a|0)!==1,this.mOneA=this.twisted&&(a.a|0)===-1,this.extended=this.mOneA,vb.call(this,"edwards",a),this.a=new r0(a.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new r0(a.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new r0(a.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),qde(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(a.c|0)===1}EW(bf,vb);AW.exports=bf;bf.prototype._mulA=function(o){return this.mOneA?o.redNeg():this.a.redMul(o)};bf.prototype._mulC=function(o){return this.oneC?o:this.c.redMul(o)};bf.prototype.jpoint=function(o,f,d,n){return this.point(o,f,d,n)};bf.prototype.pointFromX=function(o,f){o=new r0(o,16),o.red||(o=o.toRed(this.red));var d=o.redSqr(),n=this.c2.redSub(this.a.redMul(d)),v=this.one.redSub(this.c2.redMul(this.d).redMul(d)),b=n.redMul(v.redInvm()),y=b.redSqrt();if(y.redSqr().redSub(b).cmp(this.zero)!==0)throw new Error("invalid point");var M=y.fromRed().isOdd();return(f&&!M||!f&&M)&&(y=y.redNeg()),this.point(o,y)};bf.prototype.pointFromY=function(o,f){o=new r0(o,16),o.red||(o=o.toRed(this.red));var d=o.redSqr(),n=d.redSub(this.c2),v=d.redMul(this.d).redMul(this.c2).redSub(this.a),b=n.redMul(v.redInvm());if(b.cmp(this.zero)===0){if(f)throw new Error("invalid point");return this.point(this.zero,o)}var y=b.redSqrt();if(y.redSqr().redSub(b).cmp(this.zero)!==0)throw new Error("invalid point");return y.fromRed().isOdd()!==f&&(y=y.redNeg()),this.point(y,o)};bf.prototype.validate=function(o){if(o.isInfinity())return!0;o.normalize();var f=o.x.redSqr(),d=o.y.redSqr(),n=f.redMul(this.a).redAdd(d),v=this.c2.redMul(this.one.redAdd(this.d.redMul(f).redMul(d)));return n.cmp(v)===0};function xi(a,o,f,d,n){vb.BasePoint.call(this,a,"projective"),o===null&&f===null&&d===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 r0(o,16),this.y=new r0(f,16),this.z=d?new r0(d,16):this.curve.one,this.t=n&&new r0(n,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()))))}EW(xi,vb.BasePoint);bf.prototype.pointFromJSON=function(o){return xi.fromJSON(this,o)};bf.prototype.point=function(o,f,d,n){return new xi(this,o,f,d,n)};xi.fromJSON=function(o,f){return new xi(o,f[0],f[1],f[2])};xi.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)+">"};xi.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};xi.prototype._extDbl=function(){var o=this.x.redSqr(),f=this.y.redSqr(),d=this.z.redSqr();d=d.redIAdd(d);var n=this.curve._mulA(o),v=this.x.redAdd(this.y).redSqr().redISub(o).redISub(f),b=n.redAdd(f),y=b.redSub(d),M=n.redSub(f),w=v.redMul(y),g=b.redMul(M),_=v.redMul(M),x=y.redMul(b);return this.curve.point(w,g,x,_)};xi.prototype._projDbl=function(){var o=this.x.redAdd(this.y).redSqr(),f=this.x.redSqr(),d=this.y.redSqr(),n,v,b,y,M,w;if(this.curve.twisted){y=this.curve._mulA(f);var g=y.redAdd(d);this.zOne?(n=o.redSub(f).redSub(d).redMul(g.redSub(this.curve.two)),v=g.redMul(y.redSub(d)),b=g.redSqr().redSub(g).redSub(g)):(M=this.z.redSqr(),w=g.redSub(M).redISub(M),n=o.redSub(f).redISub(d).redMul(w),v=g.redMul(y.redSub(d)),b=g.redMul(w))}else y=f.redAdd(d),M=this.curve._mulC(this.z).redSqr(),w=y.redSub(M).redSub(M),n=this.curve._mulC(o.redISub(y)).redMul(w),v=this.curve._mulC(y).redMul(f.redISub(d)),b=y.redMul(w);return this.curve.point(n,v,b)};xi.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};xi.prototype._extAdd=function(o){var f=this.y.redSub(this.x).redMul(o.y.redSub(o.x)),d=this.y.redAdd(this.x).redMul(o.y.redAdd(o.x)),n=this.t.redMul(this.curve.dd).redMul(o.t),v=this.z.redMul(o.z.redAdd(o.z)),b=d.redSub(f),y=v.redSub(n),M=v.redAdd(n),w=d.redAdd(f),g=b.redMul(y),_=M.redMul(w),x=b.redMul(w),E=y.redMul(M);return this.curve.point(g,_,E,x)};xi.prototype._projAdd=function(o){var f=this.z.redMul(o.z),d=f.redSqr(),n=this.x.redMul(o.x),v=this.y.redMul(o.y),b=this.curve.d.redMul(n).redMul(v),y=d.redSub(b),M=d.redAdd(b),w=this.x.redAdd(this.y).redMul(o.x.redAdd(o.y)).redISub(n).redISub(v),g=f.redMul(y).redMul(w),_,x;return this.curve.twisted?(_=f.redMul(M).redMul(v.redSub(this.curve._mulA(n))),x=y.redMul(M)):(_=f.redMul(M).redMul(v.redSub(n)),x=this.curve._mulC(y).redMul(M)),this.curve.point(g,_,x)};xi.prototype.add=function(o){return this.isInfinity()?o:o.isInfinity()?this:this.curve.extended?this._extAdd(o):this._projAdd(o)};xi.prototype.mul=function(o){return this._hasDoubles(o)?this.curve._fixedNafMul(this,o):this.curve._wnafMul(this,o)};xi.prototype.mulAdd=function(o,f,d){return this.curve._wnafMulAdd(1,[this,f],[o,d],2,!1)};xi.prototype.jmulAdd=function(o,f,d){return this.curve._wnafMulAdd(1,[this,f],[o,d],2,!0)};xi.prototype.normalize=function(){if(this.zOne)return this;var o=this.z.redInvm();return this.x=this.x.redMul(o),this.y=this.y.redMul(o),this.t&&(this.t=this.t.redMul(o)),this.z=this.curve.one,this.zOne=!0,this};xi.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};xi.prototype.getX=function(){return this.normalize(),this.x.fromRed()};xi.prototype.getY=function(){return this.normalize(),this.y.fromRed()};xi.prototype.eq=function(o){return this===o||this.getX().cmp(o.getX())===0&&this.getY().cmp(o.getY())===0};xi.prototype.eqXToP=function(o){var f=o.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(f)===0)return!0;for(var d=o.clone(),n=this.curve.redN.redMul(this.z);;){if(d.iadd(this.curve.n),d.cmp(this.curve.p)>=0)return!1;if(f.redIAdd(n),this.x.cmp(f)===0)return!0}};xi.prototype.toP=xi.prototype.normalize;xi.prototype.mixedAdd=xi.prototype.add});var s5=St(RW=>{"use strict";var $5e=Ae(Be());Ie();Re();var bb=RW;bb.base=q1();bb.short=MW();bb.mont=SW();bb.edwards=BW()});var TW=St((C5e,IW)=>{var L5e=Ae(Be());Ie();Re();IW.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 mb=St(PW=>{"use strict";var U5e=Ae(Be());Ie();Re();var h5=PW,ph=_d(),f5=s5(),Ude=ja(),kW=Ude.assert;function $W(a){a.type==="short"?this.curve=new f5.short(a):a.type==="edwards"?this.curve=new f5.edwards(a):this.curve=new f5.mont(a),this.g=this.curve.g,this.n=this.curve.n,this.hash=a.hash,kW(this.g.validate(),"Invalid curve"),kW(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}h5.PresetCurve=$W;function vh(a,o){Object.defineProperty(h5,a,{configurable:!0,enumerable:!0,get:function(){var f=new $W(o);return Object.defineProperty(h5,a,{configurable:!0,enumerable:!0,value:f}),f}})}vh("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:ph.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]});vh("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:ph.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]});vh("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:ph.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]});vh("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:ph.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"]});vh("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:ph.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"]});vh("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:ph.sha256,gRed:!1,g:["9"]});vh("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:ph.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var u5;try{u5=TW()}catch{u5=void 0}vh("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:ph.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",u5]})});var LW=St((H5e,CW)=>{"use strict";var K5e=Ae(Be());Ie();Re();var Fde=_d(),Gu=t5(),NW=Kf();function bh(a){if(!(this instanceof bh))return new bh(a);this.hash=a.hash,this.predResist=!!a.predResist,this.outLen=this.hash.outSize,this.minEntropy=a.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var o=Gu.toArray(a.entropy,a.entropyEnc||"hex"),f=Gu.toArray(a.nonce,a.nonceEnc||"hex"),d=Gu.toArray(a.pers,a.persEnc||"hex");NW(o.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(o,f,d)}CW.exports=bh;bh.prototype._init=function(o,f,d){var n=o.concat(f).concat(d);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var v=0;v<this.V.length;v++)this.K[v]=0,this.V[v]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656};bh.prototype._hmac=function(){return new Fde.hmac(this.hash,this.K)};bh.prototype._update=function(o){var f=this._hmac().update(this.V).update([0]);o&&(f=f.update(o)),this.K=f.digest(),this.V=this._hmac().update(this.V).digest(),o&&(this.K=this._hmac().update(this.V).update([1]).update(o).digest(),this.V=this._hmac().update(this.V).digest())};bh.prototype.reseed=function(o,f,d,n){typeof f!="string"&&(n=d,d=f,f=null),o=Gu.toArray(o,f),d=Gu.toArray(d,n),NW(o.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(o.concat(d||[])),this._reseed=1};bh.prototype.generate=function(o,f,d,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof f!="string"&&(n=d,d=f,f=null),d&&(d=Gu.toArray(d,n||"hex"),this._update(d));for(var v=[];v.length<o;)this.V=this._hmac().update(this.V).digest(),v=v.concat(this.V);var b=v.slice(0,o);return this._update(d),this._reseed++,Gu.encode(b,f)}});var OW=St((Z5e,DW)=>{"use strict";var G5e=Ae(Be());Ie();Re();var zde=vf(),Hde=ja(),l5=Hde.assert;function ta(a,o){this.ec=a,this.priv=null,this.pub=null,o.priv&&this._importPrivate(o.priv,o.privEnc),o.pub&&this._importPublic(o.pub,o.pubEnc)}DW.exports=ta;ta.fromPublic=function(o,f,d){return f instanceof ta?f:new ta(o,{pub:f,pubEnc:d})};ta.fromPrivate=function(o,f,d){return f instanceof ta?f:new ta(o,{priv:f,privEnc:d})};ta.prototype.validate=function(){var o=this.getPublic();return o.isInfinity()?{result:!1,reason:"Invalid public key"}:o.validate()?o.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"}};ta.prototype.getPublic=function(o,f){return typeof o=="string"&&(f=o,o=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),f?this.pub.encode(f,o):this.pub};ta.prototype.getPrivate=function(o){return o==="hex"?this.priv.toString(16,2):this.priv};ta.prototype._importPrivate=function(o,f){this.priv=new zde(o,f||16),this.priv=this.priv.umod(this.ec.curve.n)};ta.prototype._importPublic=function(o,f){if(o.x||o.y){this.ec.curve.type==="mont"?l5(o.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&l5(o.x&&o.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(o.x,o.y);return}this.pub=this.ec.curve.decodePoint(o,f)};ta.prototype.derive=function(o){return o.validate()||l5(o.validate(),"public point not validated"),o.mul(this.priv).getX()};ta.prototype.sign=function(o,f,d){return this.ec.sign(o,this,f,d)};ta.prototype.verify=function(o,f,d){return this.ec.verify(o,f,this,void 0,d)};ta.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}});var FW=St((Y5e,UW)=>{"use strict";var X5e=Ae(Be());Ie();Re();var gb=vf(),p5=ja(),Kde=p5.assert;function yb(a,o){if(a instanceof yb)return a;this._importDER(a,o)||(Kde(a.r&&a.s,"Signature without r or s"),this.r=new gb(a.r,16),this.s=new gb(a.s,16),a.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=a.recoveryParam)}UW.exports=yb;function jde(){this.place=0}function d5(a,o){var f=a[o.place++];if(!(f&128))return f;var d=f&15;if(d===0||d>4||a[o.place]===0)return!1;for(var n=0,v=0,b=o.place;v<d;v++,b++)n<<=8,n|=a[b],n>>>=0;return n<=127?!1:(o.place=b,n)}function qW(a){for(var o=0,f=a.length-1;!a[o]&&!(a[o+1]&128)&&o<f;)o++;return o===0?a:a.slice(o)}yb.prototype._importDER=function(o,f){o=p5.toArray(o,f);var d=new jde;if(o[d.place++]!==48)return!1;var n=d5(o,d);if(n===!1||n+d.place!==o.length||o[d.place++]!==2)return!1;var v=d5(o,d);if(v===!1||o[d.place]&128)return!1;var b=o.slice(d.place,v+d.place);if(d.place+=v,o[d.place++]!==2)return!1;var y=d5(o,d);if(y===!1||o.length!==y+d.place||o[d.place]&128)return!1;var M=o.slice(d.place,y+d.place);if(b[0]===0)if(b[1]&128)b=b.slice(1);else return!1;if(M[0]===0)if(M[1]&128)M=M.slice(1);else return!1;return this.r=new gb(b),this.s=new gb(M),this.recoveryParam=null,!0};function c5(a,o){if(o<128){a.push(o);return}var f=1+(Math.log(o)/Math.LN2>>>3);for(a.push(f|128);--f;)a.push(o>>>(f<<3)&255);a.push(o)}yb.prototype.toDER=function(o){var f=this.r.toArray(),d=this.s.toArray();for(f[0]&128&&(f=[0].concat(f)),d[0]&128&&(d=[0].concat(d)),f=qW(f),d=qW(d);!d[0]&&!(d[1]&128);)d=d.slice(1);var n=[2];c5(n,f.length),n=n.concat(f),n.push(2),c5(n,d.length);var v=n.concat(d),b=[48];return c5(b,v.length),b=b.concat(v),p5.encode(b,o)}});var KW=St((tSe,HW)=>{"use strict";var rSe=Ae(Be());Ie();Re();var Rs=vf(),zW=LW(),Wde=ja(),v5=mb(),Zde=a5(),Vu=Wde.assert,b5=OW(),wb=FW();function jo(a){if(!(this instanceof jo))return new jo(a);typeof a=="string"&&(Vu(Object.prototype.hasOwnProperty.call(v5,a),"Unknown curve "+a),a=v5[a]),a instanceof v5.PresetCurve&&(a={curve:a}),this.curve=a.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=a.curve.g,this.g.precompute(a.curve.n.bitLength()+1),this.hash=a.hash||a.curve.hash}HW.exports=jo;jo.prototype.keyPair=function(o){return new b5(this,o)};jo.prototype.keyFromPrivate=function(o,f){return b5.fromPrivate(this,o,f)};jo.prototype.keyFromPublic=function(o,f){return b5.fromPublic(this,o,f)};jo.prototype.genKeyPair=function(o){o||(o={});for(var f=new zW({hash:this.hash,pers:o.pers,persEnc:o.persEnc||"utf8",entropy:o.entropy||Zde(this.hash.hmacStrength),entropyEnc:o.entropy&&o.entropyEnc||"utf8",nonce:this.n.toArray()}),d=this.n.byteLength(),n=this.n.sub(new Rs(2));;){var v=new Rs(f.generate(d));if(!(v.cmp(n)>0))return v.iaddn(1),this.keyFromPrivate(v)}};jo.prototype._truncateToN=function(o,f,d){var n;if(Rs.isBN(o)||typeof o=="number")o=new Rs(o,16),n=o.byteLength();else if(typeof o=="object")n=o.length,o=new Rs(o,16);else{var v=o.toString();n=v.length+1>>>1,o=new Rs(v,16)}typeof d!="number"&&(d=n*8);var b=d-this.n.bitLength();return b>0&&(o=o.ushrn(b)),!f&&o.cmp(this.n)>=0?o.sub(this.n):o};jo.prototype.sign=function(o,f,d,n){if(typeof d=="object"&&(n=d,d=null),n||(n={}),typeof o!="string"&&typeof o!="number"&&!Rs.isBN(o)){Vu(typeof o=="object"&&o&&typeof o.length=="number","Expected message to be an array-like, a hex string, or a BN instance"),Vu(o.length>>>0===o.length);for(var v=0;v<o.length;v++)Vu((o[v]&255)===o[v])}f=this.keyFromPrivate(f,d),o=this._truncateToN(o,!1,n.msgBitLength),Vu(!o.isNeg(),"Can not sign a negative message");var b=this.n.byteLength(),y=f.getPrivate().toArray("be",b),M=o.toArray("be",b);Vu(new Rs(M).eq(o),"Can not sign message");for(var w=new zW({hash:this.hash,entropy:y,nonce:M,pers:n.pers,persEnc:n.persEnc||"utf8"}),g=this.n.sub(new Rs(1)),_=0;;_++){var x=n.k?n.k(_):new Rs(w.generate(this.n.byteLength()));if(x=this._truncateToN(x,!0),!(x.cmpn(1)<=0||x.cmp(g)>=0)){var E=this.g.mul(x);if(!E.isInfinity()){var R=E.getX(),T=R.umod(this.n);if(T.cmpn(0)!==0){var N=x.invm(this.n).mul(T.mul(f.getPrivate()).iadd(o));if(N=N.umod(this.n),N.cmpn(0)!==0){var P=(E.getY().isOdd()?1:0)|(R.cmp(T)!==0?2:0);return n.canonical&&N.cmp(this.nh)>0&&(N=this.n.sub(N),P^=1),new wb({r:T,s:N,recoveryParam:P})}}}}}};jo.prototype.verify=function(o,f,d,n,v){v||(v={}),o=this._truncateToN(o,!1,v.msgBitLength),d=this.keyFromPublic(d,n),f=new wb(f,"hex");var b=f.r,y=f.s;if(b.cmpn(1)<0||b.cmp(this.n)>=0||y.cmpn(1)<0||y.cmp(this.n)>=0)return!1;var M=y.invm(this.n),w=M.mul(o).umod(this.n),g=M.mul(b).umod(this.n),_;return this.curve._maxwellTrick?(_=this.g.jmulAdd(w,d.getPublic(),g),_.isInfinity()?!1:_.eqXToP(b)):(_=this.g.mulAdd(w,d.getPublic(),g),_.isInfinity()?!1:_.getX().umod(this.n).cmp(b)===0)};jo.prototype.recoverPubKey=function(a,o,f,d){Vu((3&f)===f,"The recovery param is more than two bits"),o=new wb(o,d);var n=this.n,v=new Rs(a),b=o.r,y=o.s,M=f&1,w=f>>1;if(b.cmp(this.curve.p.umod(this.curve.n))>=0&&w)throw new Error("Unable to find sencond key candinate");w?b=this.curve.pointFromX(b.add(this.curve.n),M):b=this.curve.pointFromX(b,M);var g=o.r.invm(n),_=n.sub(v).mul(g).umod(n),x=y.mul(g).umod(n);return this.g.mulAdd(_,b,x)};jo.prototype.getKeyRecoveryParam=function(a,o,f,d){if(o=new wb(o,d),o.recoveryParam!==null)return o.recoveryParam;for(var n=0;n<4;n++){var v;try{v=this.recoverPubKey(a,o,n)}catch{continue}if(v.eq(f))return n}throw new Error("Unable to find valid recovery factor")}});var GW=St((aSe,ZW)=>{"use strict";var oSe=Ae(Be());Ie();Re();var U1=ja(),WW=U1.assert,jW=U1.parseBytes,Nd=U1.cachedProperty;function Tn(a,o){this.eddsa=a,this._secret=jW(o.secret),a.isPoint(o.pub)?this._pub=o.pub:this._pubBytes=jW(o.pub)}Tn.fromPublic=function(o,f){return f instanceof Tn?f:new Tn(o,{pub:f})};Tn.fromSecret=function(o,f){return f instanceof Tn?f:new Tn(o,{secret:f})};Tn.prototype.secret=function(){return this._secret};Nd(Tn,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});Nd(Tn,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});Nd(Tn,"privBytes",function(){var o=this.eddsa,f=this.hash(),d=o.encodingLength-1,n=f.slice(0,o.encodingLength);return n[0]&=248,n[d]&=127,n[d]|=64,n});Nd(Tn,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});Nd(Tn,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});Nd(Tn,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});Tn.prototype.sign=function(o){return WW(this._secret,"KeyPair can only verify"),this.eddsa.sign(o,this)};Tn.prototype.verify=function(o,f){return this.eddsa.verify(o,f,this)};Tn.prototype.getSecret=function(o){return WW(this._secret,"KeyPair is public only"),U1.encode(this.secret(),o)};Tn.prototype.getPublic=function(o){return U1.encode(this.pubBytes(),o)};ZW.exports=Tn});var YW=St((hSe,JW)=>{"use strict";var uSe=Ae(Be());Ie();Re();var Gde=vf(),Mb=ja(),VW=Mb.assert,_b=Mb.cachedProperty,Vde=Mb.parseBytes;function Ju(a,o){this.eddsa=a,typeof o!="object"&&(o=Vde(o)),Array.isArray(o)&&(VW(o.length===a.encodingLength*2,"Signature has invalid size"),o={R:o.slice(0,a.encodingLength),S:o.slice(a.encodingLength)}),VW(o.R&&o.S,"Signature without R or S"),a.isPoint(o.R)&&(this._R=o.R),o.S instanceof Gde&&(this._S=o.S),this._Rencoded=Array.isArray(o.R)?o.R:o.Rencoded,this._Sencoded=Array.isArray(o.S)?o.S:o.Sencoded}_b(Ju,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});_b(Ju,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});_b(Ju,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});_b(Ju,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Ju.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Ju.prototype.toHex=function(){return Mb.encode(this.toBytes(),"hex").toUpperCase()};JW.exports=Ju});var rZ=St((cSe,tZ)=>{"use strict";var pSe=Ae(Be());Ie();Re();var Jde=_d(),Yde=mb(),Cd=ja(),Xde=Cd.assert,QW=Cd.parseBytes,eZ=GW(),XW=YW();function _a(a){if(Xde(a==="ed25519","only tested with ed25519 so far"),!(this instanceof _a))return new _a(a);a=Yde[a].curve,this.curve=a,this.g=a.g,this.g.precompute(a.n.bitLength()+1),this.pointClass=a.point().constructor,this.encodingLength=Math.ceil(a.n.bitLength()/8),this.hash=Jde.sha512}tZ.exports=_a;_a.prototype.sign=function(o,f){o=QW(o);var d=this.keyFromSecret(f),n=this.hashInt(d.messagePrefix(),o),v=this.g.mul(n),b=this.encodePoint(v),y=this.hashInt(b,d.pubBytes(),o).mul(d.priv()),M=n.add(y).umod(this.curve.n);return this.makeSignature({R:v,S:M,Rencoded:b})};_a.prototype.verify=function(o,f,d){if(o=QW(o),f=this.makeSignature(f),f.S().gte(f.eddsa.curve.n)||f.S().isNeg())return!1;var n=this.keyFromPublic(d),v=this.hashInt(f.Rencoded(),n.pubBytes(),o),b=this.g.mul(f.S()),y=f.R().add(n.pub().mul(v));return y.eq(b)};_a.prototype.hashInt=function(){for(var o=this.hash(),f=0;f<arguments.length;f++)o.update(arguments[f]);return Cd.intFromLE(o.digest()).umod(this.curve.n)};_a.prototype.keyFromPublic=function(o){return eZ.fromPublic(this,o)};_a.prototype.keyFromSecret=function(o){return eZ.fromSecret(this,o)};_a.prototype.makeSignature=function(o){return o instanceof XW?o:new XW(this,o)};_a.prototype.encodePoint=function(o){var f=o.getY().toArray("le",this.encodingLength);return f[this.encodingLength-1]|=o.getX().isOdd()?128:0,f};_a.prototype.decodePoint=function(o){o=Cd.parseBytes(o);var f=o.length-1,d=o.slice(0,f).concat(o[f]&-129),n=(o[f]&128)!==0,v=Cd.intFromLE(d);return this.curve.pointFromY(v,n)};_a.prototype.encodeInt=function(o){return o.toArray("le",this.encodingLength)};_a.prototype.decodeInt=function(o){return Cd.intFromLE(o)};_a.prototype.isPoint=function(o){return o instanceof this.pointClass}});var nZ=St(iZ=>{"use strict";var gSe=Ae(Be());Ie();Re();var Yu=iZ;Yu.version=cW().version;Yu.utils=ja();Yu.rand=a5();Yu.curve=s5();Yu.curves=mb();Yu.ec=KW();Yu.eddsa=rZ()});var oZ=St((MSe,aZ)=>{var _Se=Ae(Be());Ie();Re();var Qde=nZ().ec,mf=new Qde("secp256k1"),Pr=mf.curve,yi=Pr.n.constructor;function ece(a,o){let f=new yi(o);if(f.cmp(Pr.p)>=0)return null;f=f.toRed(Pr.red);let d=f.redSqr().redIMul(f).redIAdd(Pr.b).redSqrt();a===3!==d.isOdd()&&(d=d.redNeg());let n=f.redSqr().redIMul(f);return d.redSqr().redISub(n.redIAdd(Pr.b)).isZero()?mf.keyPair({pub:{x:f,y:d}}):null}function tce(a,o,f){let d=new yi(o),n=new yi(f);if(d.cmp(Pr.p)>=0||n.cmp(Pr.p)>=0||(d=d.toRed(Pr.red),n=n.toRed(Pr.red),(a===6||a===7)&&n.isOdd()!==(a===7)))return null;let v=d.redSqr().redIMul(d);return n.redSqr().redISub(v.redIAdd(Pr.b)).isZero()?mf.keyPair({pub:{x:d,y:n}}):null}function mh(a){let o=a[0];switch(o){case 2:case 3:return a.length!==33?null:ece(o,a.subarray(1,33));case 4:case 6:case 7:return a.length!==65?null:tce(o,a.subarray(1,33),a.subarray(33,65));default:return null}}function Xu(a,o){let f=o.encode(null,a.length===33);for(let d=0;d<a.length;++d)a[d]=f[d]}aZ.exports={contextRandomize(){return 0},privateKeyVerify(a){let o=new yi(a);return o.cmp(Pr.n)<0&&!o.isZero()?0:1},privateKeyNegate(a){let o=new yi(a),f=Pr.n.sub(o).umod(Pr.n).toArrayLike(Uint8Array,"be",32);return a.set(f),0},privateKeyTweakAdd(a,o){let f=new yi(o);if(f.cmp(Pr.n)>=0||(f.iadd(new yi(a)),f.cmp(Pr.n)>=0&&f.isub(Pr.n),f.isZero()))return 1;let d=f.toArrayLike(Uint8Array,"be",32);return a.set(d),0},privateKeyTweakMul(a,o){let f=new yi(o);if(f.cmp(Pr.n)>=0||f.isZero())return 1;f.imul(new yi(a)),f.cmp(Pr.n)>=0&&(f=f.umod(Pr.n));let d=f.toArrayLike(Uint8Array,"be",32);return a.set(d),0},publicKeyVerify(a){return mh(a)===null?1:0},publicKeyCreate(a,o){let f=new yi(o);if(f.cmp(Pr.n)>=0||f.isZero())return 1;let d=mf.keyFromPrivate(o).getPublic();return Xu(a,d),0},publicKeyConvert(a,o){let f=mh(o);if(f===null)return 1;let d=f.getPublic();return Xu(a,d),0},publicKeyNegate(a,o){let f=mh(o);if(f===null)return 1;let d=f.getPublic();return d.y=d.y.redNeg(),Xu(a,d),0},publicKeyCombine(a,o){let f=new Array(o.length);for(let n=0;n<o.length;++n)if(f[n]=mh(o[n]),f[n]===null)return 1;let d=f[0].getPublic();for(let n=1;n<f.length;++n)d=d.add(f[n].pub);return d.isInfinity()?2:(Xu(a,d),0)},publicKeyTweakAdd(a,o,f){let d=mh(o);if(d===null)return 1;if(f=new yi(f),f.cmp(Pr.n)>=0)return 2;let n=d.getPublic().add(Pr.g.mul(f));return n.isInfinity()?2:(Xu(a,n),0)},publicKeyTweakMul(a,o,f){let d=mh(o);if(d===null)return 1;if(f=new yi(f),f.cmp(Pr.n)>=0||f.isZero())return 2;let n=d.getPublic().mul(f);return Xu(a,n),0},signatureNormalize(a){let o=new yi(a.subarray(0,32)),f=new yi(a.subarray(32,64));return o.cmp(Pr.n)>=0||f.cmp(Pr.n)>=0?1:(f.cmp(mf.nh)===1&&a.set(Pr.n.sub(f).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(a,o){let f=o.subarray(0,32),d=o.subarray(32,64);if(new yi(f).cmp(Pr.n)>=0||new yi(d).cmp(Pr.n)>=0)return 1;let{output:n}=a,v=n.subarray(4,37);v[0]=0,v.set(f,1);let b=33,y=0;for(;b>1&&v[y]===0&&!(v[y+1]&128);--b,++y);if(v=v.subarray(y),v[0]&128||b>1&&v[0]===0&&!(v[1]&128))return 1;let M=n.subarray(39,72);M[0]=0,M.set(d,1);let w=33,g=0;for(;w>1&&M[g]===0&&!(M[g+1]&128);--w,++g);return M=M.subarray(g),M[0]&128||w>1&&M[0]===0&&!(M[1]&128)?1:(a.outputlen=6+b+w,n[0]=48,n[1]=a.outputlen-2,n[2]=2,n[3]=v.length,n.set(v,4),n[4+b]=2,n[5+b]=M.length,n.set(M,6+b),0)},signatureImport(a,o){if(o.length<8||o.length>72||o[0]!==48||o[1]!==o.length-2||o[2]!==2)return 1;let f=o[3];if(f===0||5+f>=o.length||o[4+f]!==2)return 1;let d=o[5+f];if(d===0||6+f+d!==o.length||o[4]&128||f>1&&o[4]===0&&!(o[5]&128)||o[f+6]&128||d>1&&o[f+6]===0&&!(o[f+7]&128))return 1;let n=o.subarray(4,4+f);if(n.length===33&&n[0]===0&&(n=n.subarray(1)),n.length>32)return 1;let v=o.subarray(6+f);if(v.length===33&&v[0]===0&&(v=v.slice(1)),v.length>32)throw new Error("S length is too long");let b=new yi(n);b.cmp(Pr.n)>=0&&(b=new yi(0));let y=new yi(o.subarray(6+f));return y.cmp(Pr.n)>=0&&(y=new yi(0)),a.set(b.toArrayLike(Uint8Array,"be",32),0),a.set(y.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(a,o,f,d,n){if(n){let y=n;n=M=>{let w=y(o,f,null,d,M);if(!(w instanceof Uint8Array&&w.length===32))throw new Error("This is the way");return new yi(w)}}let v=new yi(f);if(v.cmp(Pr.n)>=0||v.isZero())return 1;let b;try{b=mf.sign(o,f,{canonical:!0,k:n,pers:d})}catch{return 1}return a.signature.set(b.r.toArrayLike(Uint8Array,"be",32),0),a.signature.set(b.s.toArrayLike(Uint8Array,"be",32),32),a.recid=b.recoveryParam,0},ecdsaVerify(a,o,f){let d={r:a.subarray(0,32),s:a.subarray(32,64)},n=new yi(d.r),v=new yi(d.s);if(n.cmp(Pr.n)>=0||v.cmp(Pr.n)>=0)return 1;if(v.cmp(mf.nh)===1||n.isZero()||v.isZero())return 3;let b=mh(f);if(b===null)return 2;let y=b.getPublic();return mf.verify(o,d,y)?0:3},ecdsaRecover(a,o,f,d){let n={r:o.slice(0,32),s:o.slice(32,64)},v=new yi(n.r),b=new yi(n.s);if(v.cmp(Pr.n)>=0||b.cmp(Pr.n)>=0)return 1;if(v.isZero()||b.isZero())return 2;let y;try{y=mf.recoverPubKey(d,n,f)}catch{return 2}return Xu(a,y),0},ecdh(a,o,f,d,n,v,b){let y=mh(o);if(y===null)return 1;let M=new yi(f);if(M.cmp(Pr.n)>=0||M.isZero())return 2;let w=y.getPublic().mul(M);if(n===void 0){let g=w.encode(null,!0),_=mf.hash().update(g).digest();for(let x=0;x<32;++x)a[x]=_[x]}else{v||(v=new Uint8Array(32));let g=w.getX().toArray("be",32);for(let R=0;R<32;++R)v[R]=g[R];b||(b=new Uint8Array(32));let _=w.getY().toArray("be",32);for(let R=0;R<32;++R)b[R]=_[R];let x=n(v,b,d);if(!(x instanceof Uint8Array&&x.length===a.length))return 2;a.set(x)}return 0}}});var m5=St((ESe,sZ)=>{var ASe=Ae(Be());Ie();Re();sZ.exports=dW()(oZ())});function rce(){if(fZ)return xb;fZ=!0;var a=typeof Reflect=="object"?Reflect:null,o=a&&typeof a.apply=="function"?a.apply:function(W,Q,K){return Function.prototype.apply.call(W,Q,K)},f;a&&typeof a.ownKeys=="function"?f=a.ownKeys:Object.getOwnPropertySymbols?f=function(W){return Object.getOwnPropertyNames(W).concat(Object.getOwnPropertySymbols(W))}:f=function(W){return Object.getOwnPropertyNames(W)};function d(Z){console&&console.warn&&console.warn(Z)}var n=Number.isNaN||function(W){return W!==W};function v(){v.init.call(this)}xb=v,xb.once=P,v.EventEmitter=v,v.prototype._events=void 0,v.prototype._eventsCount=0,v.prototype._maxListeners=void 0;var b=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(v,"defaultMaxListeners",{enumerable:!0,get:function(){return b},set:function(Z){if(typeof Z!="number"||Z<0||n(Z))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Z+".");b=Z}}),v.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},v.prototype.setMaxListeners=function(W){if(typeof W!="number"||W<0||n(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?v.defaultMaxListeners:Z._maxListeners}v.prototype.getMaxListeners=function(){return M(this)},v.prototype.emit=function(W){for(var Q=[],K=1;K<arguments.length;K++)Q.push(arguments[K]);var z=W==="error",X=this._events;if(X!==void 0)z=z&&X.error===void 0;else if(!z)return!1;if(z){var p;if(Q.length>0&&(p=Q[0]),p instanceof Error)throw p;var e=new Error("Unhandled error."+(p?" ("+p.message+")":""));throw e.context=p,e}var r=X[W];if(r===void 0)return!1;if(typeof r=="function")o(r,this,Q);else for(var i=r.length,s=R(r,i),K=0;K<i;++K)o(s[K],this,Q);return!0};function w(Z,W,Q,K){var z,X,p;if(y(Q),X=Z._events,X===void 0?(X=Z._events=Object.create(null),Z._eventsCount=0):(X.newListener!==void 0&&(Z.emit("newListener",W,Q.listener?Q.listener:Q),X=Z._events),p=X[W]),p===void 0)p=X[W]=Q,++Z._eventsCount;else if(typeof p=="function"?p=X[W]=K?[Q,p]:[p,Q]:K?p.unshift(Q):p.push(Q),z=M(Z),z>0&&p.length>z&&!p.warned){p.warned=!0;var e=new Error("Possible EventEmitter memory leak detected. "+p.length+" "+String(W)+" listeners added. Use emitter.setMaxListeners() to increase limit");e.name="MaxListenersExceededWarning",e.emitter=Z,e.type=W,e.count=p.length,d(e)}return Z}v.prototype.addListener=function(W,Q){return w(this,W,Q,!1)},v.prototype.on=v.prototype.addListener,v.prototype.prependListener=function(W,Q){return w(this,W,Q,!0)};function g(){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},z=g.bind(K);return z.listener=Q,K.wrapFn=z,z}v.prototype.once=function(W,Q){return y(Q),this.on(W,_(this,W,Q)),this},v.prototype.prependOnceListener=function(W,Q){return y(Q),this.prependListener(W,_(this,W,Q)),this},v.prototype.removeListener=function(W,Q){var K,z,X,p,e;if(y(Q),z=this._events,z===void 0)return this;if(K=z[W],K===void 0)return this;if(K===Q||K.listener===Q)--this._eventsCount===0?this._events=Object.create(null):(delete z[W],z.removeListener&&this.emit("removeListener",W,K.listener||Q));else if(typeof K!="function"){for(X=-1,p=K.length-1;p>=0;p--)if(K[p]===Q||K[p].listener===Q){e=K[p].listener,X=p;break}if(X<0)return this;X===0?K.shift():T(K,X),K.length===1&&(z[W]=K[0]),z.removeListener!==void 0&&this.emit("removeListener",W,e||Q)}return this},v.prototype.off=v.prototype.removeListener,v.prototype.removeAllListeners=function(W){var Q,K,z;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 X=Object.keys(K),p;for(z=0;z<X.length;++z)p=X[z],p!=="removeListener"&&this.removeAllListeners(p);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(z=Q.length-1;z>=0;z--)this.removeListener(W,Q[z]);return this};function x(Z,W,Q){var K=Z._events;if(K===void 0)return[];var z=K[W];return z===void 0?[]:typeof z=="function"?Q?[z.listener||z]:[z]:Q?N(z):R(z,z.length)}v.prototype.listeners=function(W){return x(this,W,!0)},v.prototype.rawListeners=function(W){return x(this,W,!1)},v.listenerCount=function(Z,W){return typeof Z.listenerCount=="function"?Z.listenerCount(W):E.call(Z,W)},v.prototype.listenerCount=E;function E(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}v.prototype.eventNames=function(){return this._eventsCount>0?f(this._events):[]};function R(Z,W){for(var Q=new Array(W),K=0;K<W;++K)Q[K]=Z[K];return Q}function T(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 z(p){Z.removeListener(W,X),K(p)}function X(){typeof Z.removeListener=="function"&&Z.removeListener("error",z),Q([].slice.call(arguments))}D(Z,W,X,{once:!0}),W!=="error"&&L(Z,z,{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 z(X){K.once&&Z.removeEventListener(W,z),Q(X)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Z)}return xb}var TSe,xb,fZ,Sb,ice,nce,ace,oce,sce,fce,hZ=Bh(()=>{TSe=Ae(Be());Ie();Re();xb={},fZ=!1;Sb=rce();Sb.once;Sb.once=function(a,o){return new Promise((f,d)=>{function n(...b){v!==void 0&&a.removeListener("error",v),f(b)}let v;o!=="error"&&(v=b=>{a.removeListener(name,n),d(b)},a.once("error",v)),a.once(o,n)})};Sb.on=function(a,o){let f=[],d=[],n=null,v=!1,b={async next(){let w=f.shift();if(w)return createIterResult(w,!1);if(n){let g=Promise.reject(n);return n=null,g}return v?createIterResult(void 0,!0):new Promise((g,_)=>d.push({resolve:g,reject:_}))},async return(){a.removeListener(o,y),a.removeListener("error",M),v=!0;for(let w of d)w.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(w){n=w,a.removeListener(o,y),a.removeListener("error",M)},[Symbol.asyncIterator](){return this}};return a.on(o,y),a.on("error",M),b;function y(...w){let g=d.shift();g?g.resolve(createIterResult(w,!1)):f.push(w)}function M(w){v=!0;let g=d.shift();g?g.reject(w):n=w,b.return()}};({EventEmitter:ice,defaultMaxListeners:nce,init:ace,listenerCount:oce,on:sce,once:fce}=Sb)});var g5={};yp(g5,{EventEmitter:()=>ice,defaultMaxListeners:()=>nce,init:()=>ace,listenerCount:()=>oce,on:()=>sce,once:()=>fce});var PSe,y5=Bh(()=>{PSe=Ae(Be());Ie();Re();hZ()});var w5=St((DSe,uZ)=>{var OSe=Ae(Be());Ie();Re();uZ.exports=(y5(),h0(g5)).EventEmitter});var M5=St((FSe,lZ)=>{var zSe=Ae(Be());Ie();Re();lZ.exports={}});var mZ=St((jSe,bZ)=>{"use strict";var WSe=Ae(Be());Ie();Re();function dZ(a,o){var f=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);o&&(d=d.filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable})),f.push.apply(f,d)}return f}function cZ(a){for(var o=1;o<arguments.length;o++){var f=arguments[o]!=null?arguments[o]:{};o%2?dZ(Object(f),!0).forEach(function(d){hce(a,d,f[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(f)):dZ(Object(f)).forEach(function(d){Object.defineProperty(a,d,Object.getOwnPropertyDescriptor(f,d))})}return a}function hce(a,o,f){return o=vZ(o),o in a?Object.defineProperty(a,o,{value:f,enumerable:!0,configurable:!0,writable:!0}):a[o]=f,a}function uce(a,o){if(!(a instanceof o))throw new TypeError("Cannot call a class as a function")}function pZ(a,o){for(var f=0;f<o.length;f++){var d=o[f];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,vZ(d.key),d)}}function lce(a,o,f){return o&&pZ(a.prototype,o),f&&pZ(a,f),Object.defineProperty(a,"prototype",{writable:!1}),a}function vZ(a){var o=dce(a,"string");return typeof o=="symbol"?o:String(o)}function dce(a,o){if(typeof a!="object"||a===null)return a;var f=a[Symbol.toPrimitive];if(f!==void 0){var d=f.call(a,o||"default");if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(a)}var cce=(ku(),h0(Tu)),Eb=cce.Buffer,pce=M5(),_5=pce.inspect,vce=_5&&_5.custom||"inspect";function bce(a,o,f){Eb.prototype.copy.call(a,o,f)}bZ.exports=function(){function a(){uce(this,a),this.head=null,this.tail=null,this.length=0}return lce(a,[{key:"push",value:function(f){var d={data:f,next:null};this.length>0?this.tail.next=d:this.head=d,this.tail=d,++this.length}},{key:"unshift",value:function(f){var d={data:f,next:this.head};this.length===0&&(this.tail=d),this.head=d,++this.length}},{key:"shift",value:function(){if(this.length!==0){var f=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,f}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(f){if(this.length===0)return"";for(var d=this.head,n=""+d.data;d=d.next;)n+=f+d.data;return n}},{key:"concat",value:function(f){if(this.length===0)return Eb.alloc(0);for(var d=Eb.allocUnsafe(f>>>0),n=this.head,v=0;n;)bce(n.data,d,v),v+=n.data.length,n=n.next;return d}},{key:"consume",value:function(f,d){var n;return f<this.head.data.length?(n=this.head.data.slice(0,f),this.head.data=this.head.data.slice(f)):f===this.head.data.length?n=this.shift():n=d?this._getString(f):this._getBuffer(f),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(f){var d=this.head,n=1,v=d.data;for(f-=v.length;d=d.next;){var b=d.data,y=f>b.length?b.length:f;if(y===b.length?v+=b:v+=b.slice(0,f),f-=y,f===0){y===b.length?(++n,d.next?this.head=d.next:this.head=this.tail=null):(this.head=d,d.data=b.slice(y));break}++n}return this.length-=n,v}},{key:"_getBuffer",value:function(f){var d=Eb.allocUnsafe(f),n=this.head,v=1;for(n.data.copy(d),f-=n.data.length;n=n.next;){var b=n.data,y=f>b.length?b.length:f;if(b.copy(d,d.length-f,0,y),f-=y,f===0){y===b.length?(++v,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=b.slice(y));break}++v}return this.length-=v,d}},{key:vce,value:function(f,d){return _5(this,cZ(cZ({},d),{},{depth:0,customInspect:!1}))}}]),a}()});var S5=St((VSe,yZ)=>{"use strict";var JSe=Ae(Be());Ie();Re();function mce(a,o){var f=this,d=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return d||n?(o?o(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ft.default.nextTick(x5,this,a)):ft.default.nextTick(x5,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(v){!o&&v?f._writableState?f._writableState.errorEmitted?ft.default.nextTick(Ab,f):(f._writableState.errorEmitted=!0,ft.default.nextTick(gZ,f,v)):ft.default.nextTick(gZ,f,v):o?(ft.default.nextTick(Ab,f),o(v)):ft.default.nextTick(Ab,f)}),this)}function gZ(a,o){x5(a,o),Ab(a)}function Ab(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function gce(){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 x5(a,o){a.emit("error",o)}function yce(a,o){var f=a._readableState,d=a._writableState;f&&f.autoDestroy||d&&d.autoDestroy?a.destroy(o):a.emit("error",o)}yZ.exports={destroy:mce,undestroy:gce,errorOrDestroy:yce}});var Qu=St((QSe,_Z)=>{"use strict";var eEe=Ae(Be());Ie();Re();function wce(a,o){a.prototype=Object.create(o.prototype),a.prototype.constructor=a,a.__proto__=o}var MZ={};function Wo(a,o,f){f||(f=Error);function d(v,b,y){return typeof o=="string"?o:o(v,b,y)}var n=function(v){wce(b,v);function b(y,M,w){return v.call(this,d(y,M,w))||this}return b}(f);n.prototype.name=f.name,n.prototype.code=a,MZ[a]=n}function wZ(a,o){if(Array.isArray(a)){var f=a.length;return a=a.map(function(d){return String(d)}),f>2?"one of ".concat(o," ").concat(a.slice(0,f-1).join(", "),", or ")+a[f-1]:f===2?"one of ".concat(o," ").concat(a[0]," or ").concat(a[1]):"of ".concat(o," ").concat(a[0])}else return"of ".concat(o," ").concat(String(a))}function Mce(a,o,f){return a.substr(!f||f<0?0:+f,o.length)===o}function _ce(a,o,f){return(f===void 0||f>a.length)&&(f=a.length),a.substring(f-o.length,f)===o}function xce(a,o,f){return typeof f!="number"&&(f=0),f+o.length>a.length?!1:a.indexOf(o,f)!==-1}Wo("ERR_INVALID_OPT_VALUE",function(a,o){return'The value "'+o+'" is invalid for option "'+a+'"'},TypeError);Wo("ERR_INVALID_ARG_TYPE",function(a,o,f){var d;typeof o=="string"&&Mce(o,"not ")?(d="must not be",o=o.replace(/^not /,"")):d="must be";var n;if(_ce(a," argument"))n="The ".concat(a," ").concat(d," ").concat(wZ(o,"type"));else{var v=xce(a,".")?"property":"argument";n='The "'.concat(a,'" ').concat(v," ").concat(d," ").concat(wZ(o,"type"))}return n+=". Received type ".concat(typeof f),n},TypeError);Wo("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Wo("ERR_METHOD_NOT_IMPLEMENTED",function(a){return"The "+a+" method is not implemented"});Wo("ERR_STREAM_PREMATURE_CLOSE","Premature close");Wo("ERR_STREAM_DESTROYED",function(a){return"Cannot call "+a+" after a stream was destroyed"});Wo("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Wo("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Wo("ERR_STREAM_WRITE_AFTER_END","write after end");Wo("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Wo("ERR_UNKNOWN_ENCODING",function(a){return"Unknown encoding: "+a},TypeError);Wo("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");_Z.exports.codes=MZ});var E5=St((iEe,xZ)=>{"use strict";var nEe=Ae(Be());Ie();Re();var Sce=Qu().codes.ERR_INVALID_OPT_VALUE;function Ece(a,o,f){return a.highWaterMark!=null?a.highWaterMark:o?a[f]:null}function Ace(a,o,f,d){var n=Ece(o,d,f);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var v=d?f:"highWaterMark";throw new Sce(v,n)}return Math.floor(n)}return a.objectMode?16:16*1024}xZ.exports={getHighWaterMark:Ace}});var EZ=St((sEe,SZ)=>{var fEe=Ae(Be());Ie();Re();SZ.exports=Bce;function Bce(a,o){if(A5("noDeprecation"))return a;var f=!1;function d(){if(!f){if(A5("throwDeprecation"))throw new Error(o);A5("traceDeprecation")?console.trace(o):console.warn(o),f=!0}return a.apply(this,arguments)}return d}function A5(a){try{if(!globalThis.localStorage)return!1}catch{return!1}var o=globalThis.localStorage[a];return o==null?!1:String(o).toLowerCase()==="true"}});var I5=St((lEe,kZ)=>{"use strict";var dEe=Ae(Be());Ie();Re();kZ.exports=Wi;function BZ(a){var o=this;this.next=null,this.entry=null,this.finish=function(){e1e(o,a)}}var Ld;Wi.WritableState=z1;var Rce={deprecate:EZ()},RZ=w5(),Rb=(ku(),h0(Tu)).Buffer,Ice=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Tce(a){return Rb.from(a)}function kce(a){return Rb.isBuffer(a)||a instanceof Ice}var R5=S5(),$ce=E5(),Pce=$ce.getHighWaterMark,gh=Qu().codes,Nce=gh.ERR_INVALID_ARG_TYPE,Cce=gh.ERR_METHOD_NOT_IMPLEMENTED,Lce=gh.ERR_MULTIPLE_CALLBACK,Dce=gh.ERR_STREAM_CANNOT_PIPE,Oce=gh.ERR_STREAM_DESTROYED,qce=gh.ERR_STREAM_NULL_VALUES,Uce=gh.ERR_STREAM_WRITE_AFTER_END,Fce=gh.ERR_UNKNOWN_ENCODING,Dd=R5.errorOrDestroy;Cn()(Wi,RZ);function zce(){}function z1(a,o,f){Ld=Ld||el(),a=a||{},typeof f!="boolean"&&(f=o instanceof Ld),this.objectMode=!!a.objectMode,f&&(this.objectMode=this.objectMode||!!a.writableObjectMode),this.highWaterMark=Pce(this,a,"writableHighWaterMark",f),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=a.decodeStrings===!1;this.decodeStrings=!d,this.defaultEncoding=a.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){Vce(o,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=a.emitClose!==!1,this.autoDestroy=!!a.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new BZ(this)}z1.prototype.getBuffer=function(){for(var o=this.bufferedRequest,f=[];o;)f.push(o),o=o.next;return f};(function(){try{Object.defineProperty(z1.prototype,"buffer",{get:Rce.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Bb;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Bb=Function.prototype[Symbol.hasInstance],Object.defineProperty(Wi,Symbol.hasInstance,{value:function(o){return Bb.call(this,o)?!0:this!==Wi?!1:o&&o._writableState instanceof z1}})):Bb=function(o){return o instanceof this};function Wi(a){Ld=Ld||el();var o=this instanceof Ld;if(!o&&!Bb.call(Wi,this))return new Wi(a);this._writableState=new z1(a,this,o),this.writable=!0,a&&(typeof a.write=="function"&&(this._write=a.write),typeof a.writev=="function"&&(this._writev=a.writev),typeof a.destroy=="function"&&(this._destroy=a.destroy),typeof a.final=="function"&&(this._final=a.final)),RZ.call(this)}Wi.prototype.pipe=function(){Dd(this,new Dce)};function Hce(a,o){var f=new Uce;Dd(a,f),ft.default.nextTick(o,f)}function Kce(a,o,f,d){var n;return f===null?n=new qce:typeof f!="string"&&!o.objectMode&&(n=new Nce("chunk",["string","Buffer"],f)),n?(Dd(a,n),ft.default.nextTick(d,n),!1):!0}Wi.prototype.write=function(a,o,f){var d=this._writableState,n=!1,v=!d.objectMode&&kce(a);return v&&!Rb.isBuffer(a)&&(a=Tce(a)),typeof o=="function"&&(f=o,o=null),v?o="buffer":o||(o=d.defaultEncoding),typeof f!="function"&&(f=zce),d.ending?Hce(this,f):(v||Kce(this,d,a,f))&&(d.pendingcb++,n=Wce(this,d,v,a,o,f)),n};Wi.prototype.cork=function(){this._writableState.corked++};Wi.prototype.uncork=function(){var a=this._writableState;a.corked&&(a.corked--,!a.writing&&!a.corked&&!a.bufferProcessing&&a.bufferedRequest&&IZ(this,a))};Wi.prototype.setDefaultEncoding=function(o){if(typeof o=="string"&&(o=o.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((o+"").toLowerCase())>-1))throw new Fce(o);return this._writableState.defaultEncoding=o,this};Object.defineProperty(Wi.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function jce(a,o,f){return!a.objectMode&&a.decodeStrings!==!1&&typeof o=="string"&&(o=Rb.from(o,f)),o}Object.defineProperty(Wi.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Wce(a,o,f,d,n,v){if(!f){var b=jce(o,d,n);d!==b&&(f=!0,n="buffer",d=b)}var y=o.objectMode?1:d.length;o.length+=y;var M=o.length<o.highWaterMark;if(M||(o.needDrain=!0),o.writing||o.corked){var w=o.lastBufferedRequest;o.lastBufferedRequest={chunk:d,encoding:n,isBuf:f,callback:v,next:null},w?w.next=o.lastBufferedRequest:o.bufferedRequest=o.lastBufferedRequest,o.bufferedRequestCount+=1}else B5(a,o,!1,y,d,n,v);return M}function B5(a,o,f,d,n,v,b){o.writelen=d,o.writecb=b,o.writing=!0,o.sync=!0,o.destroyed?o.onwrite(new Oce("write")):f?a._writev(n,o.onwrite):a._write(n,v,o.onwrite),o.sync=!1}function Zce(a,o,f,d,n){--o.pendingcb,f?(ft.default.nextTick(n,d),ft.default.nextTick(F1,a,o),a._writableState.errorEmitted=!0,Dd(a,d)):(n(d),a._writableState.errorEmitted=!0,Dd(a,d),F1(a,o))}function Gce(a){a.writing=!1,a.writecb=null,a.length-=a.writelen,a.writelen=0}function Vce(a,o){var f=a._writableState,d=f.sync,n=f.writecb;if(typeof n!="function")throw new Lce;if(Gce(f),o)Zce(a,f,d,o,n);else{var v=TZ(f)||a.destroyed;!v&&!f.corked&&!f.bufferProcessing&&f.bufferedRequest&&IZ(a,f),d?ft.default.nextTick(AZ,a,f,v,n):AZ(a,f,v,n)}}function AZ(a,o,f,d){f||Jce(a,o),o.pendingcb--,d(),F1(a,o)}function Jce(a,o){o.length===0&&o.needDrain&&(o.needDrain=!1,a.emit("drain"))}function IZ(a,o){o.bufferProcessing=!0;var f=o.bufferedRequest;if(a._writev&&f&&f.next){var d=o.bufferedRequestCount,n=new Array(d),v=o.corkedRequestsFree;v.entry=f;for(var b=0,y=!0;f;)n[b]=f,f.isBuf||(y=!1),f=f.next,b+=1;n.allBuffers=y,B5(a,o,!0,o.length,n,"",v.finish),o.pendingcb++,o.lastBufferedRequest=null,v.next?(o.corkedRequestsFree=v.next,v.next=null):o.corkedRequestsFree=new BZ(o),o.bufferedRequestCount=0}else{for(;f;){var M=f.chunk,w=f.encoding,g=f.callback,_=o.objectMode?1:M.length;if(B5(a,o,!1,_,M,w,g),f=f.next,o.bufferedRequestCount--,o.writing)break}f===null&&(o.lastBufferedRequest=null)}o.bufferedRequest=f,o.bufferProcessing=!1}Wi.prototype._write=function(a,o,f){f(new Cce("_write()"))};Wi.prototype._writev=null;Wi.prototype.end=function(a,o,f){var d=this._writableState;return typeof a=="function"?(f=a,a=null,o=null):typeof o=="function"&&(f=o,o=null),a!=null&&this.write(a,o),d.corked&&(d.corked=1,this.uncork()),d.ending||Qce(this,d,f),this};Object.defineProperty(Wi.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function TZ(a){return a.ending&&a.length===0&&a.bufferedRequest===null&&!a.finished&&!a.writing}function Yce(a,o){a._final(function(f){o.pendingcb--,f&&Dd(a,f),o.prefinished=!0,a.emit("prefinish"),F1(a,o)})}function Xce(a,o){!o.prefinished&&!o.finalCalled&&(typeof a._final=="function"&&!o.destroyed?(o.pendingcb++,o.finalCalled=!0,ft.default.nextTick(Yce,a,o)):(o.prefinished=!0,a.emit("prefinish")))}function F1(a,o){var f=TZ(o);if(f&&(Xce(a,o),o.pendingcb===0&&(o.finished=!0,a.emit("finish"),o.autoDestroy))){var d=a._readableState;(!d||d.autoDestroy&&d.endEmitted)&&a.destroy()}return f}function Qce(a,o,f){o.ending=!0,F1(a,o),f&&(o.finished?ft.default.nextTick(f):a.once("finish",f)),o.ended=!0,a.writable=!1}function e1e(a,o,f){var d=a.entry;for(a.entry=null;d;){var n=d.callback;o.pendingcb--,n(f),d=d.next}o.corkedRequestsFree.next=a}Object.defineProperty(Wi.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(o){this._writableState&&(this._writableState.destroyed=o)}});Wi.prototype.destroy=R5.destroy;Wi.prototype._undestroy=R5.undestroy;Wi.prototype._destroy=function(a,o){o(a)}});var el=St((vEe,PZ)=>{"use strict";var bEe=Ae(Be());Ie();Re();var t1e=Object.keys||function(a){var o=[];for(var f in a)o.push(f);return o};PZ.exports=gf;var $Z=$5(),k5=I5();Cn()(gf,$Z);for(T5=t1e(k5.prototype),Ib=0;Ib<T5.length;Ib++)Tb=T5[Ib],gf.prototype[Tb]||(gf.prototype[Tb]=k5.prototype[Tb]);var T5,Tb,Ib;function gf(a){if(!(this instanceof gf))return new gf(a);$Z.call(this,a),k5.call(this,a),this.allowHalfOpen=!0,a&&(a.readable===!1&&(this.readable=!1),a.writable===!1&&(this.writable=!1),a.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",r1e)))}Object.defineProperty(gf.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(gf.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(gf.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function r1e(){this._writableState.ended||ft.default.nextTick(i1e,this)}function i1e(a){a.end()}Object.defineProperty(gf.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(o){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=o,this._writableState.destroyed=o)}})});var LZ=St((P5,CZ)=>{var yEe=Ae(Be());Ie();Re();var kb=(ku(),h0(Tu)),i0=kb.Buffer;function NZ(a,o){for(var f in a)o[f]=a[f]}i0.from&&i0.alloc&&i0.allocUnsafe&&i0.allocUnsafeSlow?CZ.exports=kb:(NZ(kb,P5),P5.Buffer=Od);function Od(a,o,f){return i0(a,o,f)}NZ(i0,Od);Od.from=function(a,o,f){if(typeof a=="number")throw new TypeError("Argument must not be a number");return i0(a,o,f)};Od.alloc=function(a,o,f){if(typeof a!="number")throw new TypeError("Argument must be a number");var d=i0(a);return o!==void 0?typeof f=="string"?d.fill(o,f):d.fill(o):d.fill(0),d};Od.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return i0(a)};Od.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return kb.SlowBuffer(a)}});var L5=St(OZ=>{"use strict";var xEe=Ae(Be());Ie();Re();var C5=LZ().Buffer,DZ=C5.isEncoding||function(a){switch(a=""+a,a&&a.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 n1e(a){if(!a)return"utf8";for(var o;;)switch(a){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 a;default:if(o)return;a=(""+a).toLowerCase(),o=!0}}function a1e(a){var o=n1e(a);if(typeof o!="string"&&(C5.isEncoding===DZ||!DZ(a)))throw new Error("Unknown encoding: "+a);return o||a}OZ.StringDecoder=H1;function H1(a){this.encoding=a1e(a);var o;switch(this.encoding){case"utf16le":this.text=l1e,this.end=d1e,o=4;break;case"utf8":this.fillLast=f1e,o=4;break;case"base64":this.text=c1e,this.end=p1e,o=3;break;default:this.write=v1e,this.end=b1e;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=C5.allocUnsafe(o)}H1.prototype.write=function(a){if(a.length===0)return"";var o,f;if(this.lastNeed){if(o=this.fillLast(a),o===void 0)return"";f=this.lastNeed,this.lastNeed=0}else f=0;return f<a.length?o?o+this.text(a,f):this.text(a,f):o||""};H1.prototype.end=u1e;H1.prototype.text=h1e;H1.prototype.fillLast=function(a){if(this.lastNeed<=a.length)return a.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);a.copy(this.lastChar,this.lastTotal-this.lastNeed,0,a.length),this.lastNeed-=a.length};function N5(a){return a<=127?0:a>>5===6?2:a>>4===14?3:a>>3===30?4:a>>6===2?-1:-2}function o1e(a,o,f){var d=o.length-1;if(d<f)return 0;var n=N5(o[d]);return n>=0?(n>0&&(a.lastNeed=n-1),n):--d<f||n===-2?0:(n=N5(o[d]),n>=0?(n>0&&(a.lastNeed=n-2),n):--d<f||n===-2?0:(n=N5(o[d]),n>=0?(n>0&&(n===2?n=0:a.lastNeed=n-3),n):0))}function s1e(a,o,f){if((o[0]&192)!==128)return a.lastNeed=0,"\uFFFD";if(a.lastNeed>1&&o.length>1){if((o[1]&192)!==128)return a.lastNeed=1,"\uFFFD";if(a.lastNeed>2&&o.length>2&&(o[2]&192)!==128)return a.lastNeed=2,"\uFFFD"}}function f1e(a){var o=this.lastTotal-this.lastNeed,f=s1e(this,a,o);if(f!==void 0)return f;if(this.lastNeed<=a.length)return a.copy(this.lastChar,o,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);a.copy(this.lastChar,o,0,a.length),this.lastNeed-=a.length}function h1e(a,o){var f=o1e(this,a,o);if(!this.lastNeed)return a.toString("utf8",o);this.lastTotal=f;var d=a.length-(f-this.lastNeed);return a.copy(this.lastChar,0,d),a.toString("utf8",o,d)}function u1e(a){var o=a&&a.length?this.write(a):"";return this.lastNeed?o+"\uFFFD":o}function l1e(a,o){if((a.length-o)%2===0){var f=a.toString("utf16le",o);if(f){var d=f.charCodeAt(f.length-1);if(d>=55296&&d<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=a[a.length-2],this.lastChar[1]=a[a.length-1],f.slice(0,-1)}return f}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=a[a.length-1],a.toString("utf16le",o,a.length-1)}function d1e(a){var o=a&&a.length?this.write(a):"";if(this.lastNeed){var f=this.lastTotal-this.lastNeed;return o+this.lastChar.toString("utf16le",0,f)}return o}function c1e(a,o){var f=(a.length-o)%3;return f===0?a.toString("base64",o):(this.lastNeed=3-f,this.lastTotal=3,f===1?this.lastChar[0]=a[a.length-1]:(this.lastChar[0]=a[a.length-2],this.lastChar[1]=a[a.length-1]),a.toString("base64",o,a.length-f))}function p1e(a){var o=a&&a.length?this.write(a):"";return this.lastNeed?o+this.lastChar.toString("base64",0,3-this.lastNeed):o}function v1e(a){return a.toString(this.encoding)}function b1e(a){return a&&a.length?this.write(a):""}});var $b=St((AEe,FZ)=>{"use strict";var BEe=Ae(Be());Ie();Re();var qZ=Qu().codes.ERR_STREAM_PREMATURE_CLOSE;function m1e(a){var o=!1;return function(){if(!o){o=!0;for(var f=arguments.length,d=new Array(f),n=0;n<f;n++)d[n]=arguments[n];a.apply(this,d)}}}function g1e(){}function y1e(a){return a.setHeader&&typeof a.abort=="function"}function UZ(a,o,f){if(typeof o=="function")return UZ(a,null,o);o||(o={}),f=m1e(f||g1e);var d=o.readable||o.readable!==!1&&a.readable,n=o.writable||o.writable!==!1&&a.writable,v=function(){a.writable||y()},b=a._writableState&&a._writableState.finished,y=function(){n=!1,b=!0,d||f.call(a)},M=a._readableState&&a._readableState.endEmitted,w=function(){d=!1,M=!0,n||f.call(a)},g=function(R){f.call(a,R)},_=function(){var R;if(d&&!M)return(!a._readableState||!a._readableState.ended)&&(R=new qZ),f.call(a,R);if(n&&!b)return(!a._writableState||!a._writableState.ended)&&(R=new qZ),f.call(a,R)},x=function(){a.req.on("finish",y)};return y1e(a)?(a.on("complete",y),a.on("abort",_),a.req?x():a.on("request",x)):n&&!a._writableState&&(a.on("end",v),a.on("close",v)),a.on("end",w),a.on("finish",y),o.error!==!1&&a.on("error",g),a.on("close",_),function(){a.removeListener("complete",y),a.removeListener("abort",_),a.removeListener("request",x),a.req&&a.req.removeListener("finish",y),a.removeListener("end",v),a.removeListener("close",v),a.removeListener("finish",y),a.removeListener("end",w),a.removeListener("error",g),a.removeListener("close",_)}}FZ.exports=UZ});var HZ=St((TEe,zZ)=>{"use strict";var kEe=Ae(Be());Ie();Re();var Pb;function yh(a,o,f){return o=w1e(o),o in a?Object.defineProperty(a,o,{value:f,enumerable:!0,configurable:!0,writable:!0}):a[o]=f,a}function w1e(a){var o=M1e(a,"string");return typeof o=="symbol"?o:String(o)}function M1e(a,o){if(typeof a!="object"||a===null)return a;var f=a[Symbol.toPrimitive];if(f!==void 0){var d=f.call(a,o||"default");if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(a)}var _1e=$b(),wh=Symbol("lastResolve"),tl=Symbol("lastReject"),K1=Symbol("error"),Nb=Symbol("ended"),rl=Symbol("lastPromise"),D5=Symbol("handlePromise"),il=Symbol("stream");function Mh(a,o){return{value:a,done:o}}function x1e(a){var o=a[wh];if(o!==null){var f=a[il].read();f!==null&&(a[rl]=null,a[wh]=null,a[tl]=null,o(Mh(f,!1)))}}function S1e(a){ft.default.nextTick(x1e,a)}function E1e(a,o){return function(f,d){a.then(function(){if(o[Nb]){f(Mh(void 0,!0));return}o[D5](f,d)},d)}}var A1e=Object.getPrototypeOf(function(){}),B1e=Object.setPrototypeOf((Pb={get stream(){return this[il]},next:function(){var o=this,f=this[K1];if(f!==null)return Promise.reject(f);if(this[Nb])return Promise.resolve(Mh(void 0,!0));if(this[il].destroyed)return new Promise(function(b,y){ft.default.nextTick(function(){o[K1]?y(o[K1]):b(Mh(void 0,!0))})});var d=this[rl],n;if(d)n=new Promise(E1e(d,this));else{var v=this[il].read();if(v!==null)return Promise.resolve(Mh(v,!1));n=new Promise(this[D5])}return this[rl]=n,n}},yh(Pb,Symbol.asyncIterator,function(){return this}),yh(Pb,"return",function(){var o=this;return new Promise(function(f,d){o[il].destroy(null,function(n){if(n){d(n);return}f(Mh(void 0,!0))})})}),Pb),A1e),R1e=function(o){var f,d=Object.create(B1e,(f={},yh(f,il,{value:o,writable:!0}),yh(f,wh,{value:null,writable:!0}),yh(f,tl,{value:null,writable:!0}),yh(f,K1,{value:null,writable:!0}),yh(f,Nb,{value:o._readableState.endEmitted,writable:!0}),yh(f,D5,{value:function(v,b){var y=d[il].read();y?(d[rl]=null,d[wh]=null,d[tl]=null,v(Mh(y,!1))):(d[wh]=v,d[tl]=b)},writable:!0}),f));return d[rl]=null,_1e(o,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var v=d[tl];v!==null&&(d[rl]=null,d[wh]=null,d[tl]=null,v(n)),d[K1]=n;return}var b=d[wh];b!==null&&(d[rl]=null,d[wh]=null,d[tl]=null,b(Mh(void 0,!0))),d[Nb]=!0}),o.on("readable",S1e.bind(null,d)),d};zZ.exports=R1e});var jZ=St((NEe,KZ)=>{var CEe=Ae(Be());Ie();Re();KZ.exports=function(){throw new Error("Readable.from is not available in the browser")}});var $5=St((qEe,tG)=>{"use strict";var UEe=Ae(Be());Ie();Re();tG.exports=zr;var qd;zr.ReadableState=VZ;var OEe=(y5(),h0(g5)).EventEmitter,GZ=function(o,f){return o.listeners(f).length},W1=w5(),Cb=(ku(),h0(Tu)).Buffer,I1e=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function T1e(a){return Cb.from(a)}function k1e(a){return Cb.isBuffer(a)||a instanceof I1e}var O5=M5(),Ar;O5&&O5.debuglog?Ar=O5.debuglog("stream"):Ar=function(){};var $1e=mZ(),j5=S5(),P1e=E5(),N1e=P1e.getHighWaterMark,Lb=Qu().codes,C1e=Lb.ERR_INVALID_ARG_TYPE,L1e=Lb.ERR_STREAM_PUSH_AFTER_EOF,D1e=Lb.ERR_METHOD_NOT_IMPLEMENTED,O1e=Lb.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ud,q5,U5;Cn()(zr,W1);var j1=j5.errorOrDestroy,F5=["error","close","destroy","pause","resume"];function q1e(a,o,f){if(typeof a.prependListener=="function")return a.prependListener(o,f);!a._events||!a._events[o]?a.on(o,f):Array.isArray(a._events[o])?a._events[o].unshift(f):a._events[o]=[f,a._events[o]]}function VZ(a,o,f){qd=qd||el(),a=a||{},typeof f!="boolean"&&(f=o instanceof qd),this.objectMode=!!a.objectMode,f&&(this.objectMode=this.objectMode||!!a.readableObjectMode),this.highWaterMark=N1e(this,a,"readableHighWaterMark",f),this.buffer=new $1e,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=a.emitClose!==!1,this.autoDestroy=!!a.autoDestroy,this.destroyed=!1,this.defaultEncoding=a.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,a.encoding&&(Ud||(Ud=L5().StringDecoder),this.decoder=new Ud(a.encoding),this.encoding=a.encoding)}function zr(a){if(qd=qd||el(),!(this instanceof zr))return new zr(a);var o=this instanceof qd;this._readableState=new VZ(a,this,o),this.readable=!0,a&&(typeof a.read=="function"&&(this._read=a.read),typeof a.destroy=="function"&&(this._destroy=a.destroy)),W1.call(this)}Object.defineProperty(zr.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(o){this._readableState&&(this._readableState.destroyed=o)}});zr.prototype.destroy=j5.destroy;zr.prototype._undestroy=j5.undestroy;zr.prototype._destroy=function(a,o){o(a)};zr.prototype.push=function(a,o){var f=this._readableState,d;return f.objectMode?d=!0:typeof a=="string"&&(o=o||f.defaultEncoding,o!==f.encoding&&(a=Cb.from(a,o),o=""),d=!0),JZ(this,a,o,!1,d)};zr.prototype.unshift=function(a){return JZ(this,a,null,!0,!1)};function JZ(a,o,f,d,n){Ar("readableAddChunk",o);var v=a._readableState;if(o===null)v.reading=!1,z1e(a,v);else{var b;if(n||(b=U1e(v,o)),b)j1(a,b);else if(v.objectMode||o&&o.length>0)if(typeof o!="string"&&!v.objectMode&&Object.getPrototypeOf(o)!==Cb.prototype&&(o=T1e(o)),d)v.endEmitted?j1(a,new O1e):z5(a,v,o,!0);else if(v.ended)j1(a,new L1e);else{if(v.destroyed)return!1;v.reading=!1,v.decoder&&!f?(o=v.decoder.write(o),v.objectMode||o.length!==0?z5(a,v,o,!1):K5(a,v)):z5(a,v,o,!1)}else d||(v.reading=!1,K5(a,v))}return!v.ended&&(v.length<v.highWaterMark||v.length===0)}function z5(a,o,f,d){o.flowing&&o.length===0&&!o.sync?(o.awaitDrain=0,a.emit("data",f)):(o.length+=o.objectMode?1:f.length,d?o.buffer.unshift(f):o.buffer.push(f),o.needReadable&&Db(a)),K5(a,o)}function U1e(a,o){var f;return!k1e(o)&&typeof o!="string"&&o!==void 0&&!a.objectMode&&(f=new C1e("chunk",["string","Buffer","Uint8Array"],o)),f}zr.prototype.isPaused=function(){return this._readableState.flowing===!1};zr.prototype.setEncoding=function(a){Ud||(Ud=L5().StringDecoder);var o=new Ud(a);this._readableState.decoder=o,this._readableState.encoding=this._readableState.decoder.encoding;for(var f=this._readableState.buffer.head,d="";f!==null;)d+=o.write(f.data),f=f.next;return this._readableState.buffer.clear(),d!==""&&this._readableState.buffer.push(d),this._readableState.length=d.length,this};var WZ=1073741824;function F1e(a){return a>=WZ?a=WZ:(a--,a|=a>>>1,a|=a>>>2,a|=a>>>4,a|=a>>>8,a|=a>>>16,a++),a}function ZZ(a,o){return a<=0||o.length===0&&o.ended?0:o.objectMode?1:a!==a?o.flowing&&o.length?o.buffer.head.data.length:o.length:(a>o.highWaterMark&&(o.highWaterMark=F1e(a)),a<=o.length?a:o.ended?o.length:(o.needReadable=!0,0))}zr.prototype.read=function(a){Ar("read",a),a=parseInt(a,10);var o=this._readableState,f=a;if(a!==0&&(o.emittedReadable=!1),a===0&&o.needReadable&&((o.highWaterMark!==0?o.length>=o.highWaterMark:o.length>0)||o.ended))return Ar("read: emitReadable",o.length,o.ended),o.length===0&&o.ended?H5(this):Db(this),null;if(a=ZZ(a,o),a===0&&o.ended)return o.length===0&&H5(this),null;var d=o.needReadable;Ar("need readable",d),(o.length===0||o.length-a<o.highWaterMark)&&(d=!0,Ar("length less than watermark",d)),o.ended||o.reading?(d=!1,Ar("reading or ended",d)):d&&(Ar("do read"),o.reading=!0,o.sync=!0,o.length===0&&(o.needReadable=!0),this._read(o.highWaterMark),o.sync=!1,o.reading||(a=ZZ(f,o)));var n;return a>0?n=QZ(a,o):n=null,n===null?(o.needReadable=o.length<=o.highWaterMark,a=0):(o.length-=a,o.awaitDrain=0),o.length===0&&(o.ended||(o.needReadable=!0),f!==a&&o.ended&&H5(this)),n!==null&&this.emit("data",n),n};function z1e(a,o){if(Ar("onEofChunk"),!o.ended){if(o.decoder){var f=o.decoder.end();f&&f.length&&(o.buffer.push(f),o.length+=o.objectMode?1:f.length)}o.ended=!0,o.sync?Db(a):(o.needReadable=!1,o.emittedReadable||(o.emittedReadable=!0,YZ(a)))}}function Db(a){var o=a._readableState;Ar("emitReadable",o.needReadable,o.emittedReadable),o.needReadable=!1,o.emittedReadable||(Ar("emitReadable",o.flowing),o.emittedReadable=!0,ft.default.nextTick(YZ,a))}function YZ(a){var o=a._readableState;Ar("emitReadable_",o.destroyed,o.length,o.ended),!o.destroyed&&(o.length||o.ended)&&(a.emit("readable"),o.emittedReadable=!1),o.needReadable=!o.flowing&&!o.ended&&o.length<=o.highWaterMark,W5(a)}function K5(a,o){o.readingMore||(o.readingMore=!0,ft.default.nextTick(H1e,a,o))}function H1e(a,o){for(;!o.reading&&!o.ended&&(o.length<o.highWaterMark||o.flowing&&o.length===0);){var f=o.length;if(Ar("maybeReadMore read 0"),a.read(0),f===o.length)break}o.readingMore=!1}zr.prototype._read=function(a){j1(this,new D1e("_read()"))};zr.prototype.pipe=function(a,o){var f=this,d=this._readableState;switch(d.pipesCount){case 0:d.pipes=a;break;case 1:d.pipes=[d.pipes,a];break;default:d.pipes.push(a);break}d.pipesCount+=1,Ar("pipe count=%d opts=%j",d.pipesCount,o);var n=(!o||o.end!==!1)&&a!==ft.default.stdout&&a!==ft.default.stderr,v=n?y:T;d.endEmitted?ft.default.nextTick(v):f.once("end",v),a.on("unpipe",b);function b(N,P){Ar("onunpipe"),N===f&&P&&P.hasUnpiped===!1&&(P.hasUnpiped=!0,g())}function y(){Ar("onend"),a.end()}var M=K1e(f);a.on("drain",M);var w=!1;function g(){Ar("cleanup"),a.removeListener("close",E),a.removeListener("finish",R),a.removeListener("drain",M),a.removeListener("error",x),a.removeListener("unpipe",b),f.removeListener("end",y),f.removeListener("end",T),f.removeListener("data",_),w=!0,d.awaitDrain&&(!a._writableState||a._writableState.needDrain)&&M()}f.on("data",_);function _(N){Ar("ondata");var P=a.write(N);Ar("dest.write",P),P===!1&&((d.pipesCount===1&&d.pipes===a||d.pipesCount>1&&eG(d.pipes,a)!==-1)&&!w&&(Ar("false write response, pause",d.awaitDrain),d.awaitDrain++),f.pause())}function x(N){Ar("onerror",N),T(),a.removeListener("error",x),GZ(a,"error")===0&&j1(a,N)}q1e(a,"error",x);function E(){a.removeListener("finish",R),T()}a.once("close",E);function R(){Ar("onfinish"),a.removeListener("close",E),T()}a.once("finish",R);function T(){Ar("unpipe"),f.unpipe(a)}return a.emit("pipe",f),d.flowing||(Ar("pipe resume"),f.resume()),a};function K1e(a){return function(){var f=a._readableState;Ar("pipeOnDrain",f.awaitDrain),f.awaitDrain&&f.awaitDrain--,f.awaitDrain===0&&GZ(a,"data")&&(f.flowing=!0,W5(a))}}zr.prototype.unpipe=function(a){var o=this._readableState,f={hasUnpiped:!1};if(o.pipesCount===0)return this;if(o.pipesCount===1)return a&&a!==o.pipes?this:(a||(a=o.pipes),o.pipes=null,o.pipesCount=0,o.flowing=!1,a&&a.emit("unpipe",this,f),this);if(!a){var d=o.pipes,n=o.pipesCount;o.pipes=null,o.pipesCount=0,o.flowing=!1;for(var v=0;v<n;v++)d[v].emit("unpipe",this,{hasUnpiped:!1});return this}var b=eG(o.pipes,a);return b===-1?this:(o.pipes.splice(b,1),o.pipesCount-=1,o.pipesCount===1&&(o.pipes=o.pipes[0]),a.emit("unpipe",this,f),this)};zr.prototype.on=function(a,o){var f=W1.prototype.on.call(this,a,o),d=this._readableState;return a==="data"?(d.readableListening=this.listenerCount("readable")>0,d.flowing!==!1&&this.resume()):a==="readable"&&!d.endEmitted&&!d.readableListening&&(d.readableListening=d.needReadable=!0,d.flowing=!1,d.emittedReadable=!1,Ar("on readable",d.length,d.reading),d.length?Db(this):d.reading||ft.default.nextTick(j1e,this)),f};zr.prototype.addListener=zr.prototype.on;zr.prototype.removeListener=function(a,o){var f=W1.prototype.removeListener.call(this,a,o);return a==="readable"&&ft.default.nextTick(XZ,this),f};zr.prototype.removeAllListeners=function(a){var o=W1.prototype.removeAllListeners.apply(this,arguments);return(a==="readable"||a===void 0)&&ft.default.nextTick(XZ,this),o};function XZ(a){var o=a._readableState;o.readableListening=a.listenerCount("readable")>0,o.resumeScheduled&&!o.paused?o.flowing=!0:a.listenerCount("data")>0&&a.resume()}function j1e(a){Ar("readable nexttick read 0"),a.read(0)}zr.prototype.resume=function(){var a=this._readableState;return a.flowing||(Ar("resume"),a.flowing=!a.readableListening,W1e(this,a)),a.paused=!1,this};function W1e(a,o){o.resumeScheduled||(o.resumeScheduled=!0,ft.default.nextTick(Z1e,a,o))}function Z1e(a,o){Ar("resume",o.reading),o.reading||a.read(0),o.resumeScheduled=!1,a.emit("resume"),W5(a),o.flowing&&!o.reading&&a.read(0)}zr.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 W5(a){var o=a._readableState;for(Ar("flow",o.flowing);o.flowing&&a.read()!==null;);}zr.prototype.wrap=function(a){var o=this,f=this._readableState,d=!1;a.on("end",function(){if(Ar("wrapped end"),f.decoder&&!f.ended){var b=f.decoder.end();b&&b.length&&o.push(b)}o.push(null)}),a.on("data",function(b){if(Ar("wrapped data"),f.decoder&&(b=f.decoder.write(b)),!(f.objectMode&&b==null)&&!(!f.objectMode&&(!b||!b.length))){var y=o.push(b);y||(d=!0,a.pause())}});for(var n in a)this[n]===void 0&&typeof a[n]=="function"&&(this[n]=function(y){return function(){return a[y].apply(a,arguments)}}(n));for(var v=0;v<F5.length;v++)a.on(F5[v],this.emit.bind(this,F5[v]));return this._read=function(b){Ar("wrapped _read",b),d&&(d=!1,a.resume())},this};typeof Symbol=="function"&&(zr.prototype[Symbol.asyncIterator]=function(){return q5===void 0&&(q5=HZ()),q5(this)});Object.defineProperty(zr.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(zr.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(zr.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(o){this._readableState&&(this._readableState.flowing=o)}});zr._fromList=QZ;Object.defineProperty(zr.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function QZ(a,o){if(o.length===0)return null;var f;return o.objectMode?f=o.buffer.shift():!a||a>=o.length?(o.decoder?f=o.buffer.join(""):o.buffer.length===1?f=o.buffer.first():f=o.buffer.concat(o.length),o.buffer.clear()):f=o.buffer.consume(a,o.decoder),f}function H5(a){var o=a._readableState;Ar("endReadable",o.endEmitted),o.endEmitted||(o.ended=!0,ft.default.nextTick(G1e,o,a))}function G1e(a,o){if(Ar("endReadableNT",a.endEmitted,a.length),!a.endEmitted&&a.length===0&&(a.endEmitted=!0,o.readable=!1,o.emit("end"),a.autoDestroy)){var f=o._writableState;(!f||f.autoDestroy&&f.finished)&&o.destroy()}}typeof Symbol=="function"&&(zr.from=function(a,o){return U5===void 0&&(U5=jZ()),U5(zr,a,o)});function eG(a,o){for(var f=0,d=a.length;f<d;f++)if(a[f]===o)return f;return-1}});var Z5=St((HEe,iG)=>{"use strict";var KEe=Ae(Be());Ie();Re();iG.exports=n0;var Ob=Qu().codes,V1e=Ob.ERR_METHOD_NOT_IMPLEMENTED,J1e=Ob.ERR_MULTIPLE_CALLBACK,Y1e=Ob.ERR_TRANSFORM_ALREADY_TRANSFORMING,X1e=Ob.ERR_TRANSFORM_WITH_LENGTH_0,qb=el();Cn()(n0,qb);function Q1e(a,o){var f=this._transformState;f.transforming=!1;var d=f.writecb;if(d===null)return this.emit("error",new J1e);f.writechunk=null,f.writecb=null,o!=null&&this.push(o),d(a);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function n0(a){if(!(this instanceof n0))return new n0(a);qb.call(this,a),this._transformState={afterTransform:Q1e.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,a&&(typeof a.transform=="function"&&(this._transform=a.transform),typeof a.flush=="function"&&(this._flush=a.flush)),this.on("prefinish",epe)}function epe(){var a=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(o,f){rG(a,o,f)}):rG(this,null,null)}n0.prototype.push=function(a,o){return this._transformState.needTransform=!1,qb.prototype.push.call(this,a,o)};n0.prototype._transform=function(a,o,f){f(new V1e("_transform()"))};n0.prototype._write=function(a,o,f){var d=this._transformState;if(d.writecb=f,d.writechunk=a,d.writeencoding=o,!d.transforming){var n=this._readableState;(d.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};n0.prototype._read=function(a){var o=this._transformState;o.writechunk!==null&&!o.transforming?(o.transforming=!0,this._transform(o.writechunk,o.writeencoding,o.afterTransform)):o.needTransform=!0};n0.prototype._destroy=function(a,o){qb.prototype._destroy.call(this,a,function(f){o(f)})};function rG(a,o,f){if(o)return a.emit("error",o);if(f!=null&&a.push(f),a._writableState.length)throw new X1e;if(a._transformState.transforming)throw new Y1e;return a.push(null)}});var oG=St((ZEe,aG)=>{"use strict";var GEe=Ae(Be());Ie();Re();aG.exports=Z1;var nG=Z5();Cn()(Z1,nG);function Z1(a){if(!(this instanceof Z1))return new Z1(a);nG.call(this,a)}Z1.prototype._transform=function(a,o,f){f(null,a)}});var lG=St((YEe,uG)=>{"use strict";var XEe=Ae(Be());Ie();Re();var G5;function tpe(a){var o=!1;return function(){o||(o=!0,a.apply(void 0,arguments))}}var hG=Qu().codes,rpe=hG.ERR_MISSING_ARGS,ipe=hG.ERR_STREAM_DESTROYED;function sG(a){if(a)throw a}function npe(a){return a.setHeader&&typeof a.abort=="function"}function ape(a,o,f,d){d=tpe(d);var n=!1;a.on("close",function(){n=!0}),G5===void 0&&(G5=$b()),G5(a,{readable:o,writable:f},function(b){if(b)return d(b);n=!0,d()});var v=!1;return function(b){if(!n&&!v){if(v=!0,npe(a))return a.abort();if(typeof a.destroy=="function")return a.destroy();d(b||new ipe("pipe"))}}}function fG(a){a()}function ope(a,o){return a.pipe(o)}function spe(a){return!a.length||typeof a[a.length-1]!="function"?sG:a.pop()}function fpe(){for(var a=arguments.length,o=new Array(a),f=0;f<a;f++)o[f]=arguments[f];var d=spe(o);if(Array.isArray(o[0])&&(o=o[0]),o.length<2)throw new rpe("streams");var n,v=o.map(function(b,y){var M=y<o.length-1,w=y>0;return ape(b,M,w,function(g){n||(n=g),g&&v.forEach(fG),!M&&(v.forEach(fG),d(n))})});return o.reduce(ope)}uG.exports=fpe});var V5=St((Zo,dG)=>{var tAe=Ae(Be());Ie();Re();Zo=dG.exports=$5();Zo.Stream=Zo;Zo.Readable=Zo;Zo.Writable=I5();Zo.Duplex=el();Zo.Transform=Z5();Zo.PassThrough=oG();Zo.finished=$b();Zo.pipeline=lG()});var vG=St((nAe,pG)=>{var aAe=Ae(Be());Ie();Re();var{Transform:hpe}=V5();pG.exports=a=>class cG extends hpe{constructor(f,d,n,v,b){super(b),this._rate=f,this._capacity=d,this._delimitedSuffix=n,this._hashBitLength=v,this._options=b,this._state=new a,this._state.initialize(f,d),this._finalized=!1}_transform(f,d,n){let v=null;try{this.update(f,d)}catch(b){v=b}n(v)}_flush(f){let d=null;try{this.push(this.digest())}catch(n){d=n}f(d)}update(f,d){if(!at.isBuffer(f)&&typeof f!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return at.isBuffer(f)||(f=at.from(f,d)),this._state.absorb(f),this}digest(f){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let d=this._state.squeeze(this._hashBitLength/8);return f!==void 0&&(d=d.toString(f)),this._resetState(),d}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let f=new cG(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(f._state),f._finalized=this._finalized,f}}});var gG=St((fAe,mG)=>{var hAe=Ae(Be());Ie();Re();var{Transform:upe}=V5();mG.exports=a=>class bG extends upe{constructor(f,d,n,v){super(v),this._rate=f,this._capacity=d,this._delimitedSuffix=n,this._options=v,this._state=new a,this._state.initialize(f,d),this._finalized=!1}_transform(f,d,n){let v=null;try{this.update(f,d)}catch(b){v=b}n(v)}_flush(){}_read(f){this.push(this.squeeze(f))}update(f,d){if(!at.isBuffer(f)&&typeof f!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return at.isBuffer(f)||(f=at.from(f,d)),this._state.absorb(f),this}squeeze(f,d){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let n=this._state.squeeze(f);return d!==void 0&&(n=n.toString(d)),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let f=new bG(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(f._state),f._finalized=this._finalized,f}}});var wG=St((dAe,yG)=>{var cAe=Ae(Be());Ie();Re();var lpe=vG(),dpe=gG();yG.exports=function(a){let o=lpe(a),f=dpe(a);return function(d,n){switch(typeof d=="string"?d.toLowerCase():d){case"keccak224":return new o(1152,448,null,224,n);case"keccak256":return new o(1088,512,null,256,n);case"keccak384":return new o(832,768,null,384,n);case"keccak512":return new o(576,1024,null,512,n);case"sha3-224":return new o(1152,448,6,224,n);case"sha3-256":return new o(1088,512,6,256,n);case"sha3-384":return new o(832,768,6,384,n);case"sha3-512":return new o(576,1024,6,512,n);case"shake128":return new f(1344,256,31,n);case"shake256":return new f(1088,512,31,n);default:throw new Error("Invald algorithm: "+d)}}}});var xG=St(_G=>{var mAe=Ae(Be());Ie();Re();var MG=[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];_G.p1600=function(a){for(let o=0;o<24;++o){let f=a[0]^a[10]^a[20]^a[30]^a[40],d=a[1]^a[11]^a[21]^a[31]^a[41],n=a[2]^a[12]^a[22]^a[32]^a[42],v=a[3]^a[13]^a[23]^a[33]^a[43],b=a[4]^a[14]^a[24]^a[34]^a[44],y=a[5]^a[15]^a[25]^a[35]^a[45],M=a[6]^a[16]^a[26]^a[36]^a[46],w=a[7]^a[17]^a[27]^a[37]^a[47],g=a[8]^a[18]^a[28]^a[38]^a[48],_=a[9]^a[19]^a[29]^a[39]^a[49],x=g^(n<<1|v>>>31),E=_^(v<<1|n>>>31),R=a[0]^x,T=a[1]^E,N=a[10]^x,P=a[11]^E,L=a[20]^x,D=a[21]^E,Z=a[30]^x,W=a[31]^E,Q=a[40]^x,K=a[41]^E;x=f^(b<<1|y>>>31),E=d^(y<<1|b>>>31);let z=a[2]^x,X=a[3]^E,p=a[12]^x,e=a[13]^E,r=a[22]^x,i=a[23]^E,s=a[32]^x,h=a[33]^E,c=a[42]^x,m=a[43]^E;x=n^(M<<1|w>>>31),E=v^(w<<1|M>>>31);let l=a[4]^x,t=a[5]^E,u=a[14]^x,S=a[15]^E,B=a[24]^x,k=a[25]^E,q=a[34]^x,F=a[35]^E,ee=a[44]^x,te=a[45]^E;x=b^(g<<1|_>>>31),E=y^(_<<1|g>>>31);let O=a[6]^x,U=a[7]^E,oe=a[16]^x,Y=a[17]^E,j=a[26]^x,V=a[27]^E,G=a[36]^x,ie=a[37]^E,me=a[46]^x,re=a[47]^E;x=M^(f<<1|d>>>31),E=w^(d<<1|f>>>31);let ae=a[8]^x,ye=a[9]^E,fe=a[18]^x,he=a[19]^E,nt=a[28]^x,ce=a[29]^E,be=a[38]^x,ut=a[39]^E,$=a[48]^x,A=a[49]^E,I=R,C=T,H=P<<4|N>>>28,ne=N<<4|P>>>28,J=L<<3|D>>>29,de=D<<3|L>>>29,st=W<<9|Z>>>23,le=Z<<9|W>>>23,ve=Q<<18|K>>>14,ot=K<<18|Q>>>14,we=z<<1|X>>>31,Le=X<<1|z>>>31,bt=e<<12|p>>>20,Me=p<<12|e>>>20,Ne=r<<10|i>>>22,mt=i<<10|r>>>22,xe=h<<13|s>>>19,Ce=s<<13|h>>>19,vt=c<<2|m>>>30,se=m<<2|c>>>30,ue=t<<30|l>>>2,ht=l<<30|t>>>2,pe=u<<6|S>>>26,Se=S<<6|u>>>26,dt=k<<11|B>>>21,ge=B<<11|k>>>21,De=q<<15|F>>>17,ct=F<<15|q>>>17,_e=te<<29|ee>>>3,Oe=ee<<29|te>>>3,gt=O<<28|U>>>4,Ee=U<<28|O>>>4,Pe=Y<<23|oe>>>9,pt=oe<<23|Y>>>9,lt=j<<25|V>>>7,yt=V<<25|j>>>7,xt=G<<21|ie>>>11,Mt=ie<<21|G>>>11,Et=re<<24|me>>>8,At=me<<24|re>>>8,Bt=ae<<27|ye>>>5,It=ye<<27|ae>>>5,Tt=fe<<20|he>>>12,kt=he<<20|fe>>>12,$t=ce<<7|nt>>>25,Pt=nt<<7|ce>>>25,Nt=be<<8|ut>>>24,Ct=ut<<8|be>>>24,Lt=$<<14|A>>>18,Dt=A<<14|$>>>18;a[0]=I^~bt&dt,a[1]=C^~Me&ge,a[10]=gt^~Tt&J,a[11]=Ee^~kt&de,a[20]=we^~pe&lt,a[21]=Le^~Se&yt,a[30]=Bt^~H&Ne,a[31]=It^~ne&mt,a[40]=ue^~Pe&$t,a[41]=ht^~pt&Pt,a[2]=bt^~dt&xt,a[3]=Me^~ge&Mt,a[12]=Tt^~J&xe,a[13]=kt^~de&Ce,a[22]=pe^~lt&Nt,a[23]=Se^~yt&Ct,a[32]=H^~Ne&De,a[33]=ne^~mt&ct,a[42]=Pe^~$t&st,a[43]=pt^~Pt&le,a[4]=dt^~xt&Lt,a[5]=ge^~Mt&Dt,a[14]=J^~xe&_e,a[15]=de^~Ce&Oe,a[24]=lt^~Nt&ve,a[25]=yt^~Ct&ot,a[34]=Ne^~De&Et,a[35]=mt^~ct&At,a[44]=$t^~st&vt,a[45]=Pt^~le&se,a[6]=xt^~Lt&I,a[7]=Mt^~Dt&C,a[16]=xe^~_e&gt,a[17]=Ce^~Oe&Ee,a[26]=Nt^~ve&we,a[27]=Ct^~ot&Le,a[36]=De^~Et&Bt,a[37]=ct^~At&It,a[46]=st^~vt&ue,a[47]=le^~se&ht,a[8]=Lt^~I&bt,a[9]=Dt^~C&Me,a[18]=_e^~gt&Tt,a[19]=Oe^~Ee&kt,a[28]=ve^~we&pe,a[29]=ot^~Le&Se,a[38]=Et^~Bt&H,a[39]=At^~It&ne,a[48]=vt^~ue&Pe,a[49]=se^~ht&pt,a[0]^=MG[o*2],a[1]^=MG[o*2+1]}}});var EG=St((wAe,SG)=>{var MAe=Ae(Be());Ie();Re();var Ub=xG();function Fd(){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}Fd.prototype.initialize=function(a,o){for(let f=0;f<50;++f)this.state[f]=0;this.blockSize=a/8,this.count=0,this.squeezing=!1};Fd.prototype.absorb=function(a){for(let o=0;o<a.length;++o)this.state[~~(this.count/4)]^=a[o]<<8*(this.count%4),this.count+=1,this.count===this.blockSize&&(Ub.p1600(this.state),this.count=0)};Fd.prototype.absorbLastFewBits=function(a){this.state[~~(this.count/4)]^=a<<8*(this.count%4),a&128&&this.count===this.blockSize-1&&Ub.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),Ub.p1600(this.state),this.count=0,this.squeezing=!0};Fd.prototype.squeeze=function(a){this.squeezing||this.absorbLastFewBits(1);let o=at.alloc(a);for(let f=0;f<a;++f)o[f]=this.state[~~(this.count/4)]>>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(Ub.p1600(this.state),this.count=0);return o};Fd.prototype.copy=function(a){for(let o=0;o<50;++o)a.state[o]=this.state[o];a.blockSize=this.blockSize,a.count=this.count,a.squeezing=this.squeezing};SG.exports=Fd});var BG=St((SAe,AG)=>{var EAe=Ae(Be());Ie();Re();AG.exports=wG()(EG())});var Q$e=Ae(Be(),1);Ie();Re();var qke=Ae(Be(),1);Ie();Re();var u6e=Ae(Be(),1);Ie();Re();var U2e=Ae(Be(),1);Ie();Re();var Ci={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:"EIDa_qx_PRPZQA5VhbkImJa1rMk6tp5mm9ysBCO7bk8",zone:{id:"3UF9oIeGimz28c8QPqqQi2to--CucuK_-Zkf8athZp0",version:"0.0.1"}},collectionRegistry:"zwKi27GuKS3GOlwL3EhNGH02SJDDAO5Uy43ZJwomhZ4"},AE={defaultNode:"https://forward.computer"},BE={"application/json":{type:"application/json",serialize:a=>JSON.stringify(a)}},Za={arweave:"arweave.net",ao:"ao-search-gateway.goldsky.com"};var Kr={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"}},cm={node1:"https://turbo.ardrive.io",batchSize:1,chunkSize:75e5,dispatchUploadSize:100*1024};var J2e=Ae(Be(),1);Ie();Re();var j2e=Ae(Be(),1);Ie();Re();function Ga(a){return a?/^[a-z0-9_-]{43}$/i.test(a):!1}function _p(a,o){for(let f=0;f<a.length;f++)if(a[f]&&a[f].name===o)return a[f].value;return null}function RE(a){let o=a.match(/^data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+);base64,/);return o?o[1]:null}function IE(a){return a.split(",")[1]}function TE(a){let o;if(at.isBuffer(a))o=a.length;else if(typeof a=="string")o=at.byteLength(a,"utf-8");else throw new Error("Input must be a string or a Buffer");return o}function pm(a){let o;return o=a.replace(/\[|\]/g,""),`[[${o}]]`}function Zd(a){let o;return o=a.replace(/\[|\]/g,""),o}var Sa=(...a)=>{console.log("[@permaweb/libs]",...a)};function WJ(a){return a.replace(/^[a-z]/,o=>o.toUpperCase())}function vl(a){return Array.isArray(a)?a.map(vl):a&&typeof a=="object"?Object.entries(a).reduce((o,[f,d])=>{let n=WJ(f);return o[n]=Ga(d)?d:vl(d),o},{}):a}function ZJ(a){return a.charAt(0).toLowerCase()+a.slice(1)}function Va(a){return Array.isArray(a)?a.map(Va):a&&typeof a=="object"?Object.entries(a).reduce((o,[f,d])=>{let n=Ga(f)||f.includes("-")?f:ZJ(f);return o[n]=Ga(d)?d:Va(d),o},{}):a}function qn(a,o){let f=a.charAt(0).toUpperCase()+a.slice(1);return{name:`${Kr.keys.bootloader}-${f}`,value:o}}function xp(a){return Ga(a)||a.startsWith("data")}var GJ="https://arweave.net";function Sp(a){return`${GJ}/${a}`}var t6e=Ae(Be(),1);Ie();Re();var vm={p1:"P1",end:"END"},bm={default:100};async function ks(a){let o=a.paginator?a.paginator:bm.default,f=[],d=0,n=null;if(a.ids&&!a.ids.length)return{data:f,count:d,nextCursor:n,previousCursor:null};try{let v=JJ(a),b=await YJ({gateway:a.gateway??Za.ao,query:VJ(v)});return b?.data?.transactions?.edges?.length?(f=[...b.data.transactions.edges],d=b.data.transactions.count??0,f.length<o||!b.data.transactions.pageInfo.hasNextPage?n=vm.end:n=f[f.length-1].cursor,{data:f,count:d,nextCursor:n,previousCursor:null}):{data:f,count:d,nextCursor:n,previousCursor:null}}catch(v){return console.error(v),{data:f,count:d,nextCursor:n,previousCursor:null}}}async function kE(a,o){let f=1,d=await ks(a);if(d&&d.data.length){let n=d.data;for(o&&o(`Count: ${d.count}`),o&&o(`Pages to fetch: ${Math.ceil(d.count/(a.paginator??bm.default))}`),o&&o(`Page ${f} fetched`);d.nextCursor&&d.nextCursor!==vm.end;)f+=1,o&&o(`Fetching page ${f}...`),d=await ks({...a,cursor:d.nextCursor}),d&&d.data.length&&(n=n.concat(d.data));return o&&o("All pages fetched!"),n}else o&&o("No data found");return null}function VJ(a){let o={query:`query { ${a} }`};return JSON.stringify(o)}function JJ(a){let o=a.paginator?a.paginator:bm.default,f=a.ids?JSON.stringify(a.ids):null,d=null;a.minBlock!==void 0&&a.minBlock!==null&&(d={},d.min=a.minBlock);let n=d?JSON.stringify(d).replace(/"([^"]+)":/g,"$1:"):null,v=a.tags?JSON.stringify(a.tags).replace(/"(name)":/g,"$1:").replace(/"(values)":/g,"$1:").replace(/"match"/g,"match").replace(/"FUZZY_OR"/g,"FUZZY_OR").replace(/"WILDCARD"/g,"WILDCARD"):null,b=a.owners?JSON.stringify(a.owners):null,y=a.recipients?JSON.stringify(a.recipients):null,M=a.cursor&&a.cursor!==vm.end?`"${a.cursor}"`:null,w="";if(a.sort)switch(w+="sort: ",a.sort){case"ascending":w+="HEIGHT_ASC";break;case"descending":w+="HEIGHT_DESC";break}let g=`first: ${o}`,_="",x="data { size type } owner { address } block { height timestamp }",E="";switch(a.gateway??Za.ao){case Za.arweave:break;case Za.ao:M||(_="count"),y&&(E=`recipients: ${y}`),x+=" recipient";break}let T=`
9
+ `);return n+y+v}});var uK=St(($ge,q6)=>{var Pge=Ae(Be());Ie();Re();(function(){"use strict";var a="input is invalid type",o="finalize already called",f=typeof window=="object",d=f?window:{};d.JS_SHA3_NO_WINDOW&&(f=!1);var n=!f&&typeof self=="object",v=!d.JS_SHA3_NO_NODE_JS&&typeof ft.default=="object"&&ft.default.versions&&ft.default.versions.node;v?d=globalThis:n&&(d=self);var b=!d.JS_SHA3_NO_COMMON_JS&&typeof q6=="object"&&q6.exports,y=typeof define=="function"&&define.amd,M=!d.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",w="0123456789abcdef".split(""),g=[31,7936,2031616,520093696],_=[4,1024,262144,67108864],x=[1,256,65536,16777216],E=[6,1536,393216,100663296],R=[0,8,16,24],T=[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};(d.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(F){return Object.prototype.toString.call(F)==="[object Array]"}),M&&(d.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(F){return typeof F=="object"&&F.buffer&&F.buffer.constructor===ArrayBuffer});for(var Z=function(F,ee,te){return function(O){return new B(F,ee,F).update(O)[te]()}},W=function(F,ee,te){return function(O,U){return new B(F,ee,U).update(O)[te]()}},Q=function(F,ee,te){return function(O,U,oe,Y){return s["cshake"+F].update(O,U,oe,Y)[te]()}},K=function(F,ee,te){return function(O,U,oe,Y){return s["kmac"+F].update(O,U,oe,Y)[te]()}},z=function(F,ee,te,O){for(var U=0;U<L.length;++U){var oe=L[U];F[oe]=ee(te,O,oe)}return F},X=function(F,ee){var te=Z(F,ee,"hex");return te.create=function(){return new B(F,ee,F)},te.update=function(O){return te.create().update(O)},z(te,Z,F,ee)},p=function(F,ee){var te=W(F,ee,"hex");return te.create=function(O){return new B(F,ee,O)},te.update=function(O,U){return te.create(U).update(O)},z(te,W,F,ee)},e=function(F,ee){var te=D[F],O=Q(F,ee,"hex");return O.create=function(U,oe,Y){return!oe&&!Y?s["shake"+F].create(U):new B(F,ee,U).bytepad([oe,Y],te)},O.update=function(U,oe,Y,j){return O.create(oe,Y,j).update(U)},z(O,Q,F,ee)},r=function(F,ee){var te=D[F],O=K(F,ee,"hex");return O.create=function(U,oe,Y){return new k(F,ee,oe).bytepad(["KMAC",Y],te).bytepad([U],te)},O.update=function(U,oe,Y,j){return O.create(U,Y,j).update(oe)},z(O,K,F,ee)},i=[{name:"keccak",padding:x,bits:N,createMethod:X},{name:"sha3",padding:E,bits:N,createMethod:X},{name:"shake",padding:g,bits:P,createMethod:p},{name:"cshake",padding:_,bits:P,createMethod:e},{name:"kmac",padding:_,bits:P,createMethod:r}],s={},h=[],c=0;c<i.length;++c)for(var m=i[c],l=m.bits,t=0;t<l.length;++t){var u=m.name+"_"+l[t];if(h.push(u),s[u]=m.createMethod(l[t],m.padding),m.name!=="sha3"){var S=m.name+l[t];h.push(S),s[S]=s[u]}}function B(F,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-(F<<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(F){if(this.finalized)throw new Error(o);var ee,te=typeof F;if(te!=="string"){if(te==="object"){if(F===null)throw new Error(a);if(M&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!Array.isArray(F)&&(!M||!ArrayBuffer.isView(F)))throw new Error(a)}else throw new Error(a);ee=!0}for(var O=this.blocks,U=this.byteCount,oe=F.length,Y=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<Y+1;++G)O[G]=0;if(ee)for(G=this.start;j<oe&&G<U;++j)O[G>>2]|=F[j]<<R[G++&3];else for(G=this.start;j<oe&&G<U;++j)ie=F.charCodeAt(j),ie<128?O[G>>2]|=ie<<R[G++&3]:ie<2048?(O[G>>2]|=(192|ie>>6)<<R[G++&3],O[G>>2]|=(128|ie&63)<<R[G++&3]):ie<55296||ie>=57344?(O[G>>2]|=(224|ie>>12)<<R[G++&3],O[G>>2]|=(128|ie>>6&63)<<R[G++&3],O[G>>2]|=(128|ie&63)<<R[G++&3]):(ie=65536+((ie&1023)<<10|F.charCodeAt(++j)&1023),O[G>>2]|=(240|ie>>18)<<R[G++&3],O[G>>2]|=(128|ie>>12&63)<<R[G++&3],O[G>>2]|=(128|ie>>6&63)<<R[G++&3],O[G>>2]|=(128|ie&63)<<R[G++&3]);if(this.lastByteIndex=G,G>=U){for(this.start=G-U,this.block=O[Y],G=0;G<Y;++G)V[G]^=O[G];q(V),this.reset=!0}else this.start=G}return this},B.prototype.encode=function(F,ee){var te=F&255,O=1,U=[te];for(F=F>>8,te=F&255;te>0;)U.unshift(te),F=F>>8,te=F&255,++O;return ee?U.push(O):U.unshift(O),this.update(U),U.length},B.prototype.encodeString=function(F){var ee,te=typeof F;if(te!=="string"){if(te==="object"){if(F===null)throw new Error(a);if(M&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!Array.isArray(F)&&(!M||!ArrayBuffer.isView(F)))throw new Error(a)}else throw new Error(a);ee=!0}var O=0,U=F.length;if(ee)O=U;else for(var oe=0;oe<F.length;++oe){var Y=F.charCodeAt(oe);Y<128?O+=1:Y<2048?O+=2:Y<55296||Y>=57344?O+=3:(Y=65536+((Y&1023)<<10|F.charCodeAt(++oe)&1023),O+=4)}return O+=this.encode(O*8),this.update(F),O},B.prototype.bytepad=function(F,ee){for(var te=this.encode(ee),O=0;O<F.length;++O)te+=this.encodeString(F[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 F=this.blocks,ee=this.lastByteIndex,te=this.blockCount,O=this.s;if(F[ee>>2]|=this.padding[ee&3],this.lastByteIndex===this.byteCount)for(F[0]=F[te],ee=1;ee<te+1;++ee)F[ee]=0;for(F[te-1]|=2147483648,ee=0;ee<te;++ee)O[ee]^=F[ee];q(O)}},B.prototype.toString=B.prototype.hex=function(){this.finalize();for(var F=this.blockCount,ee=this.s,te=this.outputBlocks,O=this.extraBytes,U=0,oe=0,Y="",j;oe<te;){for(U=0;U<F&&oe<te;++U,++oe)j=ee[U],Y+=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%F===0&&(q(ee),U=0)}return O&&(j=ee[U],Y+=w[j>>4&15]+w[j&15],O>1&&(Y+=w[j>>12&15]+w[j>>8&15]),O>2&&(Y+=w[j>>20&15]+w[j>>16&15])),Y},B.prototype.arrayBuffer=function(){this.finalize();var F=this.blockCount,ee=this.s,te=this.outputBlocks,O=this.extraBytes,U=0,oe=0,Y=this.outputBits>>3,j;O?j=new ArrayBuffer(te+1<<2):j=new ArrayBuffer(Y);for(var V=new Uint32Array(j);oe<te;){for(U=0;U<F&&oe<te;++U,++oe)V[oe]=ee[U];oe%F===0&&q(ee)}return O&&(V[U]=ee[U],j=j.slice(0,Y)),j},B.prototype.buffer=B.prototype.arrayBuffer,B.prototype.digest=B.prototype.array=function(){this.finalize();for(var F=this.blockCount,ee=this.s,te=this.outputBlocks,O=this.extraBytes,U=0,oe=0,Y=[],j,V;oe<te;){for(U=0;U<F&&oe<te;++U,++oe)j=oe<<2,V=ee[U],Y[j]=V&255,Y[j+1]=V>>8&255,Y[j+2]=V>>16&255,Y[j+3]=V>>24&255;oe%F===0&&q(ee)}return O&&(j=oe<<2,V=ee[U],Y[j]=V&255,O>1&&(Y[j+1]=V>>8&255),O>2&&(Y[j+2]=V>>16&255)),Y};function k(F,ee,te){B.call(this,F,ee,te)}k.prototype=new B,k.prototype.finalize=function(){return this.encode(this.outputBits,!0),B.prototype.finalize.call(this)};var q=function(F){var ee,te,O,U,oe,Y,j,V,G,ie,me,re,ae,ye,fe,he,nt,ce,be,ut,$,A,I,C,H,ne,J,de,st,le,ve,ot,we,Le,bt,Me,Ne,mt,xe,Ce,vt,se,ue,ht,pe,Se,dt,ge,De,ct,_e,Oe,gt,Ee,Pe,pt,lt,yt,xt,Mt,Et,At,Bt;for(O=0;O<48;O+=2)U=F[0]^F[10]^F[20]^F[30]^F[40],oe=F[1]^F[11]^F[21]^F[31]^F[41],Y=F[2]^F[12]^F[22]^F[32]^F[42],j=F[3]^F[13]^F[23]^F[33]^F[43],V=F[4]^F[14]^F[24]^F[34]^F[44],G=F[5]^F[15]^F[25]^F[35]^F[45],ie=F[6]^F[16]^F[26]^F[36]^F[46],me=F[7]^F[17]^F[27]^F[37]^F[47],re=F[8]^F[18]^F[28]^F[38]^F[48],ae=F[9]^F[19]^F[29]^F[39]^F[49],ee=re^(Y<<1|j>>>31),te=ae^(j<<1|Y>>>31),F[0]^=ee,F[1]^=te,F[10]^=ee,F[11]^=te,F[20]^=ee,F[21]^=te,F[30]^=ee,F[31]^=te,F[40]^=ee,F[41]^=te,ee=U^(V<<1|G>>>31),te=oe^(G<<1|V>>>31),F[2]^=ee,F[3]^=te,F[12]^=ee,F[13]^=te,F[22]^=ee,F[23]^=te,F[32]^=ee,F[33]^=te,F[42]^=ee,F[43]^=te,ee=Y^(ie<<1|me>>>31),te=j^(me<<1|ie>>>31),F[4]^=ee,F[5]^=te,F[14]^=ee,F[15]^=te,F[24]^=ee,F[25]^=te,F[34]^=ee,F[35]^=te,F[44]^=ee,F[45]^=te,ee=V^(re<<1|ae>>>31),te=G^(ae<<1|re>>>31),F[6]^=ee,F[7]^=te,F[16]^=ee,F[17]^=te,F[26]^=ee,F[27]^=te,F[36]^=ee,F[37]^=te,F[46]^=ee,F[47]^=te,ee=ie^(U<<1|oe>>>31),te=me^(oe<<1|U>>>31),F[8]^=ee,F[9]^=te,F[18]^=ee,F[19]^=te,F[28]^=ee,F[29]^=te,F[38]^=ee,F[39]^=te,F[48]^=ee,F[49]^=te,ye=F[0],fe=F[1],Se=F[11]<<4|F[10]>>>28,dt=F[10]<<4|F[11]>>>28,de=F[20]<<3|F[21]>>>29,st=F[21]<<3|F[20]>>>29,Mt=F[31]<<9|F[30]>>>23,Et=F[30]<<9|F[31]>>>23,se=F[40]<<18|F[41]>>>14,ue=F[41]<<18|F[40]>>>14,Le=F[2]<<1|F[3]>>>31,bt=F[3]<<1|F[2]>>>31,he=F[13]<<12|F[12]>>>20,nt=F[12]<<12|F[13]>>>20,ge=F[22]<<10|F[23]>>>22,De=F[23]<<10|F[22]>>>22,le=F[33]<<13|F[32]>>>19,ve=F[32]<<13|F[33]>>>19,At=F[42]<<2|F[43]>>>30,Bt=F[43]<<2|F[42]>>>30,Ee=F[5]<<30|F[4]>>>2,Pe=F[4]<<30|F[5]>>>2,Me=F[14]<<6|F[15]>>>26,Ne=F[15]<<6|F[14]>>>26,ce=F[25]<<11|F[24]>>>21,be=F[24]<<11|F[25]>>>21,ct=F[34]<<15|F[35]>>>17,_e=F[35]<<15|F[34]>>>17,ot=F[45]<<29|F[44]>>>3,we=F[44]<<29|F[45]>>>3,C=F[6]<<28|F[7]>>>4,H=F[7]<<28|F[6]>>>4,pt=F[17]<<23|F[16]>>>9,lt=F[16]<<23|F[17]>>>9,mt=F[26]<<25|F[27]>>>7,xe=F[27]<<25|F[26]>>>7,ut=F[36]<<21|F[37]>>>11,$=F[37]<<21|F[36]>>>11,Oe=F[47]<<24|F[46]>>>8,gt=F[46]<<24|F[47]>>>8,ht=F[8]<<27|F[9]>>>5,pe=F[9]<<27|F[8]>>>5,ne=F[18]<<20|F[19]>>>12,J=F[19]<<20|F[18]>>>12,yt=F[29]<<7|F[28]>>>25,xt=F[28]<<7|F[29]>>>25,Ce=F[38]<<8|F[39]>>>24,vt=F[39]<<8|F[38]>>>24,A=F[48]<<14|F[49]>>>18,I=F[49]<<14|F[48]>>>18,F[0]=ye^~he&ce,F[1]=fe^~nt&be,F[10]=C^~ne&de,F[11]=H^~J&st,F[20]=Le^~Me&mt,F[21]=bt^~Ne&xe,F[30]=ht^~Se&ge,F[31]=pe^~dt&De,F[40]=Ee^~pt&yt,F[41]=Pe^~lt&xt,F[2]=he^~ce&ut,F[3]=nt^~be&$,F[12]=ne^~de&le,F[13]=J^~st&ve,F[22]=Me^~mt&Ce,F[23]=Ne^~xe&vt,F[32]=Se^~ge&ct,F[33]=dt^~De&_e,F[42]=pt^~yt&Mt,F[43]=lt^~xt&Et,F[4]=ce^~ut&A,F[5]=be^~$&I,F[14]=de^~le&ot,F[15]=st^~ve&we,F[24]=mt^~Ce&se,F[25]=xe^~vt&ue,F[34]=ge^~ct&Oe,F[35]=De^~_e&gt,F[44]=yt^~Mt&At,F[45]=xt^~Et&Bt,F[6]=ut^~A&ye,F[7]=$^~I&fe,F[16]=le^~ot&C,F[17]=ve^~we&H,F[26]=Ce^~se&Le,F[27]=vt^~ue&bt,F[36]=ct^~Oe&ht,F[37]=_e^~gt&pe,F[46]=Mt^~At&Ee,F[47]=Et^~Bt&Pe,F[8]=A^~ye&he,F[9]=I^~fe&nt,F[18]=ot^~C&ne,F[19]=we^~H&J,F[28]=se^~Le&Me,F[29]=ue^~bt&Ne,F[38]=Oe^~ht&Se,F[39]=gt^~pe&dt,F[48]=At^~Ee&pt,F[49]=Bt^~Pe&lt,F[0]^=T[O],F[1]^=T[O+1]};if(b)q6.exports=s;else{for(c=0;c<h.length;++c)d[h[c]]=s[h[c]];y&&define(function(){return s})}})()});var fx=St((MK,sx)=>{var oye=Ae(Be());Ie();Re();(function(a,o){"use strict";function f(i,s){if(!i)throw new Error(s||"Assertion failed")}function d(i,s){i.super_=s;var h=function(){};h.prototype=s.prototype,i.prototype=new h,i.prototype.constructor=i}function n(i,s,h){if(n.isBN(i))return i;this.negative=0,this.words=null,this.length=0,this.red=null,i!==null&&((s==="le"||s==="be")&&(h=s,s=10),this._init(i||0,s||10,h||"be"))}typeof a=="object"?a.exports=n:o.BN=n,n.BN=n,n.wordSize=26;var v;try{typeof window<"u"&&typeof window.Buffer<"u"?v=window.Buffer:v=I6().Buffer}catch{}n.isBN=function(s){return s instanceof n?!0:s!==null&&typeof s=="object"&&s.constructor.wordSize===n.wordSize&&Array.isArray(s.words)},n.max=function(s,h){return s.cmp(h)>0?s:h},n.min=function(s,h){return s.cmp(h)<0?s:h},n.prototype._init=function(s,h,c){if(typeof s=="number")return this._initNumber(s,h,c);if(typeof s=="object")return this._initArray(s,h,c);h==="hex"&&(h=16),f(h===(h|0)&&h>=2&&h<=36),s=s.toString().replace(/\s+/g,"");var m=0;s[0]==="-"&&(m++,this.negative=1),m<s.length&&(h===16?this._parseHex(s,m,c):(this._parseBase(s,h,m),c==="le"&&this._initArray(this.toArray(),h,c)))},n.prototype._initNumber=function(s,h,c){s<0&&(this.negative=1,s=-s),s<67108864?(this.words=[s&67108863],this.length=1):s<4503599627370496?(this.words=[s&67108863,s/67108864&67108863],this.length=2):(f(s<9007199254740992),this.words=[s&67108863,s/67108864&67108863,1],this.length=3),c==="le"&&this._initArray(this.toArray(),h,c)},n.prototype._initArray=function(s,h,c){if(f(typeof s.length=="number"),s.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(s.length/3),this.words=new Array(this.length);for(var m=0;m<this.length;m++)this.words[m]=0;var l,t,u=0;if(c==="be")for(m=s.length-1,l=0;m>=0;m-=3)t=s[m]|s[m-1]<<8|s[m-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(c==="le")for(m=0,l=0;m<s.length;m+=3)t=s[m]|s[m+1]<<8|s[m+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 b(i,s){var h=i.charCodeAt(s);if(h>=48&&h<=57)return h-48;if(h>=65&&h<=70)return h-55;if(h>=97&&h<=102)return h-87;f(!1,"Invalid character in "+i)}function y(i,s,h){var c=b(i,h);return h-1>=s&&(c|=b(i,h-1)<<4),c}n.prototype._parseHex=function(s,h,c){this.length=Math.ceil((s.length-h)/6),this.words=new Array(this.length);for(var m=0;m<this.length;m++)this.words[m]=0;var l=0,t=0,u;if(c==="be")for(m=s.length-1;m>=h;m-=2)u=y(s,h,m)<<l,this.words[t]|=u&67108863,l>=18?(l-=18,t+=1,this.words[t]|=u>>>26):l+=8;else{var S=s.length-h;for(m=S%2===0?h+1:h;m<s.length;m+=2)u=y(s,h,m)<<l,this.words[t]|=u&67108863,l>=18?(l-=18,t+=1,this.words[t]|=u>>>26):l+=8}this._strip()};function M(i,s,h,c){for(var m=0,l=0,t=Math.min(i.length,h),u=s;u<t;u++){var S=i.charCodeAt(u)-48;m*=c,S>=49?l=S-49+10:S>=17?l=S-17+10:l=S,f(S>=0&&l<c,"Invalid character"),m+=l}return m}n.prototype._parseBase=function(s,h,c){this.words=[0],this.length=1;for(var m=0,l=1;l<=67108863;l*=h)m++;m--,l=l/h|0;for(var t=s.length-c,u=t%m,S=Math.min(t,t-u)+c,B=0,k=c;k<S;k+=m)B=M(s,k,k+m,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(s,k,s.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()},n.prototype.copy=function(s){s.words=new Array(this.length);for(var h=0;h<this.length;h++)s.words[h]=this.words[h];s.length=this.length,s.negative=this.negative,s.red=this.red};function w(i,s){i.words=s.words,i.length=s.length,i.negative=s.negative,i.red=s.red}if(n.prototype._move=function(s){w(s,this)},n.prototype.clone=function(){var s=new n(null);return this.copy(s),s},n.prototype._expand=function(s){for(;this.length<s;)this.words[this.length++]=0;return this},n.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{n.prototype[Symbol.for("nodejs.util.inspect.custom")]=g}catch{n.prototype.inspect=g}else n.prototype.inspect=g;function g(){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],E=[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];n.prototype.toString=function(s,h){s=s||10,h=h|0||1;var c;if(s===16||s==="hex"){c="";for(var m=0,l=0,t=0;t<this.length;t++){var u=this.words[t],S=((u<<m|l)&16777215).toString(16);l=u>>>24-m&16777215,m+=2,m>=26&&(m-=26,t--),l!==0||t!==this.length-1?c=_[6-S.length]+S+c:c=S+c}for(l!==0&&(c=l.toString(16)+c);c.length%h!==0;)c="0"+c;return this.negative!==0&&(c="-"+c),c}if(s===(s|0)&&s>=2&&s<=36){var B=x[s],k=E[s];c="";var q=this.clone();for(q.negative=0;!q.isZero();){var F=q.modrn(k).toString(s);q=q.idivn(k),q.isZero()?c=F+c:c=_[B-F.length]+F+c}for(this.isZero()&&(c="0"+c);c.length%h!==0;)c="0"+c;return this.negative!==0&&(c="-"+c),c}f(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var s=this.words[0];return this.length===2?s+=this.words[1]*67108864:this.length===3&&this.words[2]===1?s+=4503599627370496+this.words[1]*67108864:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-s:s},n.prototype.toJSON=function(){return this.toString(16,2)},v&&(n.prototype.toBuffer=function(s,h){return this.toArrayLike(v,s,h)}),n.prototype.toArray=function(s,h){return this.toArrayLike(Array,s,h)};var R=function(s,h){return s.allocUnsafe?s.allocUnsafe(h):new s(h)};n.prototype.toArrayLike=function(s,h,c){this._strip();var m=this.byteLength(),l=c||Math.max(1,m);f(m<=l,"byte array longer than desired length"),f(l>0,"Requested array length <= 0");var t=R(s,l),u=h==="le"?"LE":"BE";return this["_toArrayLike"+u](t,m),t},n.prototype._toArrayLikeLE=function(s,h){for(var c=0,m=0,l=0,t=0;l<this.length;l++){var u=this.words[l]<<t|m;s[c++]=u&255,c<s.length&&(s[c++]=u>>8&255),c<s.length&&(s[c++]=u>>16&255),t===6?(c<s.length&&(s[c++]=u>>24&255),m=0,t=0):(m=u>>>24,t+=2)}if(c<s.length)for(s[c++]=m;c<s.length;)s[c++]=0},n.prototype._toArrayLikeBE=function(s,h){for(var c=s.length-1,m=0,l=0,t=0;l<this.length;l++){var u=this.words[l]<<t|m;s[c--]=u&255,c>=0&&(s[c--]=u>>8&255),c>=0&&(s[c--]=u>>16&255),t===6?(c>=0&&(s[c--]=u>>24&255),m=0,t=0):(m=u>>>24,t+=2)}if(c>=0)for(s[c--]=m;c>=0;)s[c--]=0},Math.clz32?n.prototype._countBits=function(s){return 32-Math.clz32(s)}:n.prototype._countBits=function(s){var h=s,c=0;return h>=4096&&(c+=13,h>>>=13),h>=64&&(c+=7,h>>>=7),h>=8&&(c+=4,h>>>=4),h>=2&&(c+=2,h>>>=2),c+h},n.prototype._zeroBits=function(s){if(s===0)return 26;var h=s,c=0;return h&8191||(c+=13,h>>>=13),h&127||(c+=7,h>>>=7),h&15||(c+=4,h>>>=4),h&3||(c+=2,h>>>=2),h&1||c++,c},n.prototype.bitLength=function(){var s=this.words[this.length-1],h=this._countBits(s);return(this.length-1)*26+h};function T(i){for(var s=new Array(i.bitLength()),h=0;h<s.length;h++){var c=h/26|0,m=h%26;s[h]=i.words[c]>>>m&1}return s}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,h=0;h<this.length;h++){var c=this._zeroBits(this.words[h]);if(s+=c,c!==26)break}return s},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(s){return this.negative!==0?this.abs().inotn(s).iaddn(1):this.clone()},n.prototype.fromTwos=function(s){return this.testn(s-1)?this.notn(s).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(s){for(;this.length<s.length;)this.words[this.length++]=0;for(var h=0;h<s.length;h++)this.words[h]=this.words[h]|s.words[h];return this._strip()},n.prototype.ior=function(s){return f((this.negative|s.negative)===0),this.iuor(s)},n.prototype.or=function(s){return this.length>s.length?this.clone().ior(s):s.clone().ior(this)},n.prototype.uor=function(s){return this.length>s.length?this.clone().iuor(s):s.clone().iuor(this)},n.prototype.iuand=function(s){var h;this.length>s.length?h=s:h=this;for(var c=0;c<h.length;c++)this.words[c]=this.words[c]&s.words[c];return this.length=h.length,this._strip()},n.prototype.iand=function(s){return f((this.negative|s.negative)===0),this.iuand(s)},n.prototype.and=function(s){return this.length>s.length?this.clone().iand(s):s.clone().iand(this)},n.prototype.uand=function(s){return this.length>s.length?this.clone().iuand(s):s.clone().iuand(this)},n.prototype.iuxor=function(s){var h,c;this.length>s.length?(h=this,c=s):(h=s,c=this);for(var m=0;m<c.length;m++)this.words[m]=h.words[m]^c.words[m];if(this!==h)for(;m<h.length;m++)this.words[m]=h.words[m];return this.length=h.length,this._strip()},n.prototype.ixor=function(s){return f((this.negative|s.negative)===0),this.iuxor(s)},n.prototype.xor=function(s){return this.length>s.length?this.clone().ixor(s):s.clone().ixor(this)},n.prototype.uxor=function(s){return this.length>s.length?this.clone().iuxor(s):s.clone().iuxor(this)},n.prototype.inotn=function(s){f(typeof s=="number"&&s>=0);var h=Math.ceil(s/26)|0,c=s%26;this._expand(h),c>0&&h--;for(var m=0;m<h;m++)this.words[m]=~this.words[m]&67108863;return c>0&&(this.words[m]=~this.words[m]&67108863>>26-c),this._strip()},n.prototype.notn=function(s){return this.clone().inotn(s)},n.prototype.setn=function(s,h){f(typeof s=="number"&&s>=0);var c=s/26|0,m=s%26;return this._expand(c+1),h?this.words[c]=this.words[c]|1<<m:this.words[c]=this.words[c]&~(1<<m),this._strip()},n.prototype.iadd=function(s){var h;if(this.negative!==0&&s.negative===0)return this.negative=0,h=this.isub(s),this.negative^=1,this._normSign();if(this.negative===0&&s.negative!==0)return s.negative=0,h=this.isub(s),s.negative=1,h._normSign();var c,m;this.length>s.length?(c=this,m=s):(c=s,m=this);for(var l=0,t=0;t<m.length;t++)h=(c.words[t]|0)+(m.words[t]|0)+l,this.words[t]=h&67108863,l=h>>>26;for(;l!==0&&t<c.length;t++)h=(c.words[t]|0)+l,this.words[t]=h&67108863,l=h>>>26;if(this.length=c.length,l!==0)this.words[this.length]=l,this.length++;else if(c!==this)for(;t<c.length;t++)this.words[t]=c.words[t];return this},n.prototype.add=function(s){var h;return s.negative!==0&&this.negative===0?(s.negative=0,h=this.sub(s),s.negative^=1,h):s.negative===0&&this.negative!==0?(this.negative=0,h=s.sub(this),this.negative=1,h):this.length>s.length?this.clone().iadd(s):s.clone().iadd(this)},n.prototype.isub=function(s){if(s.negative!==0){s.negative=0;var h=this.iadd(s);return s.negative=1,h._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(s),this.negative=1,this._normSign();var c=this.cmp(s);if(c===0)return this.negative=0,this.length=1,this.words[0]=0,this;var m,l;c>0?(m=this,l=s):(m=s,l=this);for(var t=0,u=0;u<l.length;u++)h=(m.words[u]|0)-(l.words[u]|0)+t,t=h>>26,this.words[u]=h&67108863;for(;t!==0&&u<m.length;u++)h=(m.words[u]|0)+t,t=h>>26,this.words[u]=h&67108863;if(t===0&&u<m.length&&m!==this)for(;u<m.length;u++)this.words[u]=m.words[u];return this.length=Math.max(this.length,u),m!==this&&(this.negative=1),this._strip()},n.prototype.sub=function(s){return this.clone().isub(s)};function N(i,s,h){h.negative=s.negative^i.negative;var c=i.length+s.length|0;h.length=c,c=c-1|0;var m=i.words[0]|0,l=s.words[0]|0,t=m*l,u=t&67108863,S=t/67108864|0;h.words[0]=u;for(var B=1;B<c;B++){for(var k=S>>>26,q=S&67108863,F=Math.min(B,s.length-1),ee=Math.max(0,B-i.length+1);ee<=F;ee++){var te=B-ee|0;m=i.words[te]|0,l=s.words[ee]|0,t=m*l+q,k+=t/67108864|0,q=t&67108863}h.words[B]=q|0,S=k|0}return S!==0?h.words[B]=S|0:h.length--,h._strip()}var P=function(s,h,c){var m=s.words,l=h.words,t=c.words,u=0,S,B,k,q=m[0]|0,F=q&8191,ee=q>>>13,te=m[1]|0,O=te&8191,U=te>>>13,oe=m[2]|0,Y=oe&8191,j=oe>>>13,V=m[3]|0,G=V&8191,ie=V>>>13,me=m[4]|0,re=me&8191,ae=me>>>13,ye=m[5]|0,fe=ye&8191,he=ye>>>13,nt=m[6]|0,ce=nt&8191,be=nt>>>13,ut=m[7]|0,$=ut&8191,A=ut>>>13,I=m[8]|0,C=I&8191,H=I>>>13,ne=m[9]|0,J=ne&8191,de=ne>>>13,st=l[0]|0,le=st&8191,ve=st>>>13,ot=l[1]|0,we=ot&8191,Le=ot>>>13,bt=l[2]|0,Me=bt&8191,Ne=bt>>>13,mt=l[3]|0,xe=mt&8191,Ce=mt>>>13,vt=l[4]|0,se=vt&8191,ue=vt>>>13,ht=l[5]|0,pe=ht&8191,Se=ht>>>13,dt=l[6]|0,ge=dt&8191,De=dt>>>13,ct=l[7]|0,_e=ct&8191,Oe=ct>>>13,gt=l[8]|0,Ee=gt&8191,Pe=gt>>>13,pt=l[9]|0,lt=pt&8191,yt=pt>>>13;c.negative=s.negative^h.negative,c.length=19,S=Math.imul(F,le),B=Math.imul(F,ve),B=B+Math.imul(ee,le)|0,k=Math.imul(ee,ve);var xt=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(xt>>>26)|0,xt&=67108863,S=Math.imul(O,le),B=Math.imul(O,ve),B=B+Math.imul(U,le)|0,k=Math.imul(U,ve),S=S+Math.imul(F,we)|0,B=B+Math.imul(F,Le)|0,B=B+Math.imul(ee,we)|0,k=k+Math.imul(ee,Le)|0;var Mt=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,S=Math.imul(Y,le),B=Math.imul(Y,ve),B=B+Math.imul(j,le)|0,k=Math.imul(j,ve),S=S+Math.imul(O,we)|0,B=B+Math.imul(O,Le)|0,B=B+Math.imul(U,we)|0,k=k+Math.imul(U,Le)|0,S=S+Math.imul(F,Me)|0,B=B+Math.imul(F,Ne)|0,B=B+Math.imul(ee,Me)|0,k=k+Math.imul(ee,Ne)|0;var Et=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Et>>>26)|0,Et&=67108863,S=Math.imul(G,le),B=Math.imul(G,ve),B=B+Math.imul(ie,le)|0,k=Math.imul(ie,ve),S=S+Math.imul(Y,we)|0,B=B+Math.imul(Y,Le)|0,B=B+Math.imul(j,we)|0,k=k+Math.imul(j,Le)|0,S=S+Math.imul(O,Me)|0,B=B+Math.imul(O,Ne)|0,B=B+Math.imul(U,Me)|0,k=k+Math.imul(U,Ne)|0,S=S+Math.imul(F,xe)|0,B=B+Math.imul(F,Ce)|0,B=B+Math.imul(ee,xe)|0,k=k+Math.imul(ee,Ce)|0;var At=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(At>>>26)|0,At&=67108863,S=Math.imul(re,le),B=Math.imul(re,ve),B=B+Math.imul(ae,le)|0,k=Math.imul(ae,ve),S=S+Math.imul(G,we)|0,B=B+Math.imul(G,Le)|0,B=B+Math.imul(ie,we)|0,k=k+Math.imul(ie,Le)|0,S=S+Math.imul(Y,Me)|0,B=B+Math.imul(Y,Ne)|0,B=B+Math.imul(j,Me)|0,k=k+Math.imul(j,Ne)|0,S=S+Math.imul(O,xe)|0,B=B+Math.imul(O,Ce)|0,B=B+Math.imul(U,xe)|0,k=k+Math.imul(U,Ce)|0,S=S+Math.imul(F,se)|0,B=B+Math.imul(F,ue)|0,B=B+Math.imul(ee,se)|0,k=k+Math.imul(ee,ue)|0;var Bt=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,S=Math.imul(fe,le),B=Math.imul(fe,ve),B=B+Math.imul(he,le)|0,k=Math.imul(he,ve),S=S+Math.imul(re,we)|0,B=B+Math.imul(re,Le)|0,B=B+Math.imul(ae,we)|0,k=k+Math.imul(ae,Le)|0,S=S+Math.imul(G,Me)|0,B=B+Math.imul(G,Ne)|0,B=B+Math.imul(ie,Me)|0,k=k+Math.imul(ie,Ne)|0,S=S+Math.imul(Y,xe)|0,B=B+Math.imul(Y,Ce)|0,B=B+Math.imul(j,xe)|0,k=k+Math.imul(j,Ce)|0,S=S+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,S=S+Math.imul(F,pe)|0,B=B+Math.imul(F,Se)|0,B=B+Math.imul(ee,pe)|0,k=k+Math.imul(ee,Se)|0;var It=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(It>>>26)|0,It&=67108863,S=Math.imul(ce,le),B=Math.imul(ce,ve),B=B+Math.imul(be,le)|0,k=Math.imul(be,ve),S=S+Math.imul(fe,we)|0,B=B+Math.imul(fe,Le)|0,B=B+Math.imul(he,we)|0,k=k+Math.imul(he,Le)|0,S=S+Math.imul(re,Me)|0,B=B+Math.imul(re,Ne)|0,B=B+Math.imul(ae,Me)|0,k=k+Math.imul(ae,Ne)|0,S=S+Math.imul(G,xe)|0,B=B+Math.imul(G,Ce)|0,B=B+Math.imul(ie,xe)|0,k=k+Math.imul(ie,Ce)|0,S=S+Math.imul(Y,se)|0,B=B+Math.imul(Y,ue)|0,B=B+Math.imul(j,se)|0,k=k+Math.imul(j,ue)|0,S=S+Math.imul(O,pe)|0,B=B+Math.imul(O,Se)|0,B=B+Math.imul(U,pe)|0,k=k+Math.imul(U,Se)|0,S=S+Math.imul(F,ge)|0,B=B+Math.imul(F,De)|0,B=B+Math.imul(ee,ge)|0,k=k+Math.imul(ee,De)|0;var Tt=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,S=Math.imul($,le),B=Math.imul($,ve),B=B+Math.imul(A,le)|0,k=Math.imul(A,ve),S=S+Math.imul(ce,we)|0,B=B+Math.imul(ce,Le)|0,B=B+Math.imul(be,we)|0,k=k+Math.imul(be,Le)|0,S=S+Math.imul(fe,Me)|0,B=B+Math.imul(fe,Ne)|0,B=B+Math.imul(he,Me)|0,k=k+Math.imul(he,Ne)|0,S=S+Math.imul(re,xe)|0,B=B+Math.imul(re,Ce)|0,B=B+Math.imul(ae,xe)|0,k=k+Math.imul(ae,Ce)|0,S=S+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,S=S+Math.imul(Y,pe)|0,B=B+Math.imul(Y,Se)|0,B=B+Math.imul(j,pe)|0,k=k+Math.imul(j,Se)|0,S=S+Math.imul(O,ge)|0,B=B+Math.imul(O,De)|0,B=B+Math.imul(U,ge)|0,k=k+Math.imul(U,De)|0,S=S+Math.imul(F,_e)|0,B=B+Math.imul(F,Oe)|0,B=B+Math.imul(ee,_e)|0,k=k+Math.imul(ee,Oe)|0;var kt=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(kt>>>26)|0,kt&=67108863,S=Math.imul(C,le),B=Math.imul(C,ve),B=B+Math.imul(H,le)|0,k=Math.imul(H,ve),S=S+Math.imul($,we)|0,B=B+Math.imul($,Le)|0,B=B+Math.imul(A,we)|0,k=k+Math.imul(A,Le)|0,S=S+Math.imul(ce,Me)|0,B=B+Math.imul(ce,Ne)|0,B=B+Math.imul(be,Me)|0,k=k+Math.imul(be,Ne)|0,S=S+Math.imul(fe,xe)|0,B=B+Math.imul(fe,Ce)|0,B=B+Math.imul(he,xe)|0,k=k+Math.imul(he,Ce)|0,S=S+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,S=S+Math.imul(G,pe)|0,B=B+Math.imul(G,Se)|0,B=B+Math.imul(ie,pe)|0,k=k+Math.imul(ie,Se)|0,S=S+Math.imul(Y,ge)|0,B=B+Math.imul(Y,De)|0,B=B+Math.imul(j,ge)|0,k=k+Math.imul(j,De)|0,S=S+Math.imul(O,_e)|0,B=B+Math.imul(O,Oe)|0,B=B+Math.imul(U,_e)|0,k=k+Math.imul(U,Oe)|0,S=S+Math.imul(F,Ee)|0,B=B+Math.imul(F,Pe)|0,B=B+Math.imul(ee,Ee)|0,k=k+Math.imul(ee,Pe)|0;var $t=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+($t>>>26)|0,$t&=67108863,S=Math.imul(J,le),B=Math.imul(J,ve),B=B+Math.imul(de,le)|0,k=Math.imul(de,ve),S=S+Math.imul(C,we)|0,B=B+Math.imul(C,Le)|0,B=B+Math.imul(H,we)|0,k=k+Math.imul(H,Le)|0,S=S+Math.imul($,Me)|0,B=B+Math.imul($,Ne)|0,B=B+Math.imul(A,Me)|0,k=k+Math.imul(A,Ne)|0,S=S+Math.imul(ce,xe)|0,B=B+Math.imul(ce,Ce)|0,B=B+Math.imul(be,xe)|0,k=k+Math.imul(be,Ce)|0,S=S+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,S=S+Math.imul(re,pe)|0,B=B+Math.imul(re,Se)|0,B=B+Math.imul(ae,pe)|0,k=k+Math.imul(ae,Se)|0,S=S+Math.imul(G,ge)|0,B=B+Math.imul(G,De)|0,B=B+Math.imul(ie,ge)|0,k=k+Math.imul(ie,De)|0,S=S+Math.imul(Y,_e)|0,B=B+Math.imul(Y,Oe)|0,B=B+Math.imul(j,_e)|0,k=k+Math.imul(j,Oe)|0,S=S+Math.imul(O,Ee)|0,B=B+Math.imul(O,Pe)|0,B=B+Math.imul(U,Ee)|0,k=k+Math.imul(U,Pe)|0,S=S+Math.imul(F,lt)|0,B=B+Math.imul(F,yt)|0,B=B+Math.imul(ee,lt)|0,k=k+Math.imul(ee,yt)|0;var Pt=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,S=Math.imul(J,we),B=Math.imul(J,Le),B=B+Math.imul(de,we)|0,k=Math.imul(de,Le),S=S+Math.imul(C,Me)|0,B=B+Math.imul(C,Ne)|0,B=B+Math.imul(H,Me)|0,k=k+Math.imul(H,Ne)|0,S=S+Math.imul($,xe)|0,B=B+Math.imul($,Ce)|0,B=B+Math.imul(A,xe)|0,k=k+Math.imul(A,Ce)|0,S=S+Math.imul(ce,se)|0,B=B+Math.imul(ce,ue)|0,B=B+Math.imul(be,se)|0,k=k+Math.imul(be,ue)|0,S=S+Math.imul(fe,pe)|0,B=B+Math.imul(fe,Se)|0,B=B+Math.imul(he,pe)|0,k=k+Math.imul(he,Se)|0,S=S+Math.imul(re,ge)|0,B=B+Math.imul(re,De)|0,B=B+Math.imul(ae,ge)|0,k=k+Math.imul(ae,De)|0,S=S+Math.imul(G,_e)|0,B=B+Math.imul(G,Oe)|0,B=B+Math.imul(ie,_e)|0,k=k+Math.imul(ie,Oe)|0,S=S+Math.imul(Y,Ee)|0,B=B+Math.imul(Y,Pe)|0,B=B+Math.imul(j,Ee)|0,k=k+Math.imul(j,Pe)|0,S=S+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+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,S=Math.imul(J,Me),B=Math.imul(J,Ne),B=B+Math.imul(de,Me)|0,k=Math.imul(de,Ne),S=S+Math.imul(C,xe)|0,B=B+Math.imul(C,Ce)|0,B=B+Math.imul(H,xe)|0,k=k+Math.imul(H,Ce)|0,S=S+Math.imul($,se)|0,B=B+Math.imul($,ue)|0,B=B+Math.imul(A,se)|0,k=k+Math.imul(A,ue)|0,S=S+Math.imul(ce,pe)|0,B=B+Math.imul(ce,Se)|0,B=B+Math.imul(be,pe)|0,k=k+Math.imul(be,Se)|0,S=S+Math.imul(fe,ge)|0,B=B+Math.imul(fe,De)|0,B=B+Math.imul(he,ge)|0,k=k+Math.imul(he,De)|0,S=S+Math.imul(re,_e)|0,B=B+Math.imul(re,Oe)|0,B=B+Math.imul(ae,_e)|0,k=k+Math.imul(ae,Oe)|0,S=S+Math.imul(G,Ee)|0,B=B+Math.imul(G,Pe)|0,B=B+Math.imul(ie,Ee)|0,k=k+Math.imul(ie,Pe)|0,S=S+Math.imul(Y,lt)|0,B=B+Math.imul(Y,yt)|0,B=B+Math.imul(j,lt)|0,k=k+Math.imul(j,yt)|0;var Ct=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,S=Math.imul(J,xe),B=Math.imul(J,Ce),B=B+Math.imul(de,xe)|0,k=Math.imul(de,Ce),S=S+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,S=S+Math.imul($,pe)|0,B=B+Math.imul($,Se)|0,B=B+Math.imul(A,pe)|0,k=k+Math.imul(A,Se)|0,S=S+Math.imul(ce,ge)|0,B=B+Math.imul(ce,De)|0,B=B+Math.imul(be,ge)|0,k=k+Math.imul(be,De)|0,S=S+Math.imul(fe,_e)|0,B=B+Math.imul(fe,Oe)|0,B=B+Math.imul(he,_e)|0,k=k+Math.imul(he,Oe)|0,S=S+Math.imul(re,Ee)|0,B=B+Math.imul(re,Pe)|0,B=B+Math.imul(ae,Ee)|0,k=k+Math.imul(ae,Pe)|0,S=S+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 Lt=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,S=Math.imul(J,se),B=Math.imul(J,ue),B=B+Math.imul(de,se)|0,k=Math.imul(de,ue),S=S+Math.imul(C,pe)|0,B=B+Math.imul(C,Se)|0,B=B+Math.imul(H,pe)|0,k=k+Math.imul(H,Se)|0,S=S+Math.imul($,ge)|0,B=B+Math.imul($,De)|0,B=B+Math.imul(A,ge)|0,k=k+Math.imul(A,De)|0,S=S+Math.imul(ce,_e)|0,B=B+Math.imul(ce,Oe)|0,B=B+Math.imul(be,_e)|0,k=k+Math.imul(be,Oe)|0,S=S+Math.imul(fe,Ee)|0,B=B+Math.imul(fe,Pe)|0,B=B+Math.imul(he,Ee)|0,k=k+Math.imul(he,Pe)|0,S=S+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 Dt=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,S=Math.imul(J,pe),B=Math.imul(J,Se),B=B+Math.imul(de,pe)|0,k=Math.imul(de,Se),S=S+Math.imul(C,ge)|0,B=B+Math.imul(C,De)|0,B=B+Math.imul(H,ge)|0,k=k+Math.imul(H,De)|0,S=S+Math.imul($,_e)|0,B=B+Math.imul($,Oe)|0,B=B+Math.imul(A,_e)|0,k=k+Math.imul(A,Oe)|0,S=S+Math.imul(ce,Ee)|0,B=B+Math.imul(ce,Pe)|0,B=B+Math.imul(be,Ee)|0,k=k+Math.imul(be,Pe)|0,S=S+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 qt=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(qt>>>26)|0,qt&=67108863,S=Math.imul(J,ge),B=Math.imul(J,De),B=B+Math.imul(de,ge)|0,k=Math.imul(de,De),S=S+Math.imul(C,_e)|0,B=B+Math.imul(C,Oe)|0,B=B+Math.imul(H,_e)|0,k=k+Math.imul(H,Oe)|0,S=S+Math.imul($,Ee)|0,B=B+Math.imul($,Pe)|0,B=B+Math.imul(A,Ee)|0,k=k+Math.imul(A,Pe)|0,S=S+Math.imul(ce,lt)|0,B=B+Math.imul(ce,yt)|0,B=B+Math.imul(be,lt)|0,k=k+Math.imul(be,yt)|0;var Ut=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,S=Math.imul(J,_e),B=Math.imul(J,Oe),B=B+Math.imul(de,_e)|0,k=Math.imul(de,Oe),S=S+Math.imul(C,Ee)|0,B=B+Math.imul(C,Pe)|0,B=B+Math.imul(H,Ee)|0,k=k+Math.imul(H,Pe)|0,S=S+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 ia=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(ia>>>26)|0,ia&=67108863,S=Math.imul(J,Ee),B=Math.imul(J,Pe),B=B+Math.imul(de,Ee)|0,k=Math.imul(de,Pe),S=S+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 na=(u+S|0)+((B&8191)<<13)|0;u=(k+(B>>>13)|0)+(na>>>26)|0,na&=67108863,S=Math.imul(J,lt),B=Math.imul(J,yt),B=B+Math.imul(de,lt)|0,k=Math.imul(de,yt);var um=(u+S|0)+((B&8191)<<13)|0;return u=(k+(B>>>13)|0)+(um>>>26)|0,um&=67108863,t[0]=xt,t[1]=Mt,t[2]=Et,t[3]=At,t[4]=Bt,t[5]=It,t[6]=Tt,t[7]=kt,t[8]=$t,t[9]=Pt,t[10]=Nt,t[11]=Ct,t[12]=Lt,t[13]=Dt,t[14]=qt,t[15]=Ut,t[16]=ia,t[17]=na,t[18]=um,u!==0&&(t[19]=u,c.length++),c};Math.imul||(P=N);function L(i,s,h){h.negative=s.negative^i.negative,h.length=i.length+s.length;for(var c=0,m=0,l=0;l<h.length-1;l++){var t=m;m=0;for(var u=c&67108863,S=Math.min(l,s.length-1),B=Math.max(0,l-i.length+1);B<=S;B++){var k=l-B,q=i.words[k]|0,F=s.words[B]|0,ee=q*F,te=ee&67108863;t=t+(ee/67108864|0)|0,te=te+u|0,u=te&67108863,t=t+(te>>>26)|0,m+=t>>>26,t&=67108863}h.words[l]=u,c=t,t=m}return c!==0?h.words[l]=c:h.length--,h._strip()}function D(i,s,h){return L(i,s,h)}n.prototype.mulTo=function(s,h){var c,m=this.length+s.length;return this.length===10&&s.length===10?c=P(this,s,h):m<63?c=N(this,s,h):m<1024?c=L(this,s,h):c=D(this,s,h),c};function Z(i,s){this.x=i,this.y=s}Z.prototype.makeRBT=function(s){for(var h=new Array(s),c=n.prototype._countBits(s)-1,m=0;m<s;m++)h[m]=this.revBin(m,c,s);return h},Z.prototype.revBin=function(s,h,c){if(s===0||s===c-1)return s;for(var m=0,l=0;l<h;l++)m|=(s&1)<<h-l-1,s>>=1;return m},Z.prototype.permute=function(s,h,c,m,l,t){for(var u=0;u<t;u++)m[u]=h[s[u]],l[u]=c[s[u]]},Z.prototype.transform=function(s,h,c,m,l,t){this.permute(t,s,h,c,m,l);for(var u=1;u<l;u<<=1)for(var S=u<<1,B=Math.cos(2*Math.PI/S),k=Math.sin(2*Math.PI/S),q=0;q<l;q+=S)for(var F=B,ee=k,te=0;te<u;te++){var O=c[q+te],U=m[q+te],oe=c[q+te+u],Y=m[q+te+u],j=F*oe-ee*Y;Y=F*Y+ee*oe,oe=j,c[q+te]=O+oe,m[q+te]=U+Y,c[q+te+u]=O-oe,m[q+te+u]=U-Y,te!==S&&(j=B*F-k*ee,ee=B*ee+k*F,F=j)}},Z.prototype.guessLen13b=function(s,h){var c=Math.max(h,s)|1,m=c&1,l=0;for(c=c/2|0;c;c=c>>>1)l++;return 1<<l+1+m},Z.prototype.conjugate=function(s,h,c){if(!(c<=1))for(var m=0;m<c/2;m++){var l=s[m];s[m]=s[c-m-1],s[c-m-1]=l,l=h[m],h[m]=-h[c-m-1],h[c-m-1]=-l}},Z.prototype.normalize13b=function(s,h){for(var c=0,m=0;m<h/2;m++){var l=Math.round(s[2*m+1]/h)*8192+Math.round(s[2*m]/h)+c;s[m]=l&67108863,l<67108864?c=0:c=l/67108864|0}return s},Z.prototype.convert13b=function(s,h,c,m){for(var l=0,t=0;t<h;t++)l=l+(s[t]|0),c[2*t]=l&8191,l=l>>>13,c[2*t+1]=l&8191,l=l>>>13;for(t=2*h;t<m;++t)c[t]=0;f(l===0),f((l&-8192)===0)},Z.prototype.stub=function(s){for(var h=new Array(s),c=0;c<s;c++)h[c]=0;return h},Z.prototype.mulp=function(s,h,c){var m=2*this.guessLen13b(s.length,h.length),l=this.makeRBT(m),t=this.stub(m),u=new Array(m),S=new Array(m),B=new Array(m),k=new Array(m),q=new Array(m),F=new Array(m),ee=c.words;ee.length=m,this.convert13b(s.words,s.length,u,m),this.convert13b(h.words,h.length,k,m),this.transform(u,t,S,B,m,l),this.transform(k,t,q,F,m,l);for(var te=0;te<m;te++){var O=S[te]*q[te]-B[te]*F[te];B[te]=S[te]*F[te]+B[te]*q[te],S[te]=O}return this.conjugate(S,B,m),this.transform(S,B,ee,t,m,l),this.conjugate(ee,t,m),this.normalize13b(ee,m),c.negative=s.negative^h.negative,c.length=s.length+h.length,c._strip()},n.prototype.mul=function(s){var h=new n(null);return h.words=new Array(this.length+s.length),this.mulTo(s,h)},n.prototype.mulf=function(s){var h=new n(null);return h.words=new Array(this.length+s.length),D(this,s,h)},n.prototype.imul=function(s){return this.clone().mulTo(s,this)},n.prototype.imuln=function(s){var h=s<0;h&&(s=-s),f(typeof s=="number"),f(s<67108864);for(var c=0,m=0;m<this.length;m++){var l=(this.words[m]|0)*s,t=(l&67108863)+(c&67108863);c>>=26,c+=l/67108864|0,c+=t>>>26,this.words[m]=t&67108863}return c!==0&&(this.words[m]=c,this.length++),this.length=s===0?1:this.length,h?this.ineg():this},n.prototype.muln=function(s){return this.clone().imuln(s)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(s){var h=T(s);if(h.length===0)return new n(1);for(var c=this,m=0;m<h.length&&h[m]===0;m++,c=c.sqr());if(++m<h.length)for(var l=c.sqr();m<h.length;m++,l=l.sqr())h[m]!==0&&(c=c.mul(l));return c},n.prototype.iushln=function(s){f(typeof s=="number"&&s>=0);var h=s%26,c=(s-h)/26,m=67108863>>>26-h<<26-h,l;if(h!==0){var t=0;for(l=0;l<this.length;l++){var u=this.words[l]&m,S=(this.words[l]|0)-u<<h;this.words[l]=S|t,t=u>>>26-h}t&&(this.words[l]=t,this.length++)}if(c!==0){for(l=this.length-1;l>=0;l--)this.words[l+c]=this.words[l];for(l=0;l<c;l++)this.words[l]=0;this.length+=c}return this._strip()},n.prototype.ishln=function(s){return f(this.negative===0),this.iushln(s)},n.prototype.iushrn=function(s,h,c){f(typeof s=="number"&&s>=0);var m;h?m=(h-h%26)/26:m=0;var l=s%26,t=Math.min((s-l)/26,this.length),u=67108863^67108863>>>l<<l,S=c;if(m-=t,m=Math.max(0,m),S){for(var B=0;B<t;B++)S.words[B]=this.words[B];S.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>=m);B--){var q=this.words[B]|0;this.words[B]=k<<26-l|q>>>l,k=q&u}return S&&k!==0&&(S.words[S.length++]=k),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},n.prototype.ishrn=function(s,h,c){return f(this.negative===0),this.iushrn(s,h,c)},n.prototype.shln=function(s){return this.clone().ishln(s)},n.prototype.ushln=function(s){return this.clone().iushln(s)},n.prototype.shrn=function(s){return this.clone().ishrn(s)},n.prototype.ushrn=function(s){return this.clone().iushrn(s)},n.prototype.testn=function(s){f(typeof s=="number"&&s>=0);var h=s%26,c=(s-h)/26,m=1<<h;if(this.length<=c)return!1;var l=this.words[c];return!!(l&m)},n.prototype.imaskn=function(s){f(typeof s=="number"&&s>=0);var h=s%26,c=(s-h)/26;if(f(this.negative===0,"imaskn works only with positive numbers"),this.length<=c)return this;if(h!==0&&c++,this.length=Math.min(c,this.length),h!==0){var m=67108863^67108863>>>h<<h;this.words[this.length-1]&=m}return this._strip()},n.prototype.maskn=function(s){return this.clone().imaskn(s)},n.prototype.iaddn=function(s){return f(typeof s=="number"),f(s<67108864),s<0?this.isubn(-s):this.negative!==0?this.length===1&&(this.words[0]|0)<=s?(this.words[0]=s-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(s),this.negative=1,this):this._iaddn(s)},n.prototype._iaddn=function(s){this.words[0]+=s;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},n.prototype.isubn=function(s){if(f(typeof s=="number"),f(s<67108864),s<0)return this.iaddn(-s);if(this.negative!==0)return this.negative=0,this.iaddn(s),this.negative=1,this;if(this.words[0]-=s,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()},n.prototype.addn=function(s){return this.clone().iaddn(s)},n.prototype.subn=function(s){return this.clone().isubn(s)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(s,h,c){var m=s.length+c,l;this._expand(m);var t,u=0;for(l=0;l<s.length;l++){t=(this.words[l+c]|0)+u;var S=(s.words[l]|0)*h;t-=S&67108863,u=(t>>26)-(S/67108864|0),this.words[l+c]=t&67108863}for(;l<this.length-c;l++)t=(this.words[l+c]|0)+u,u=t>>26,this.words[l+c]=t&67108863;if(u===0)return this._strip();for(f(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()},n.prototype._wordDiv=function(s,h){var c=this.length-s.length,m=this.clone(),l=s,t=l.words[l.length-1]|0,u=this._countBits(t);c=26-u,c!==0&&(l=l.ushln(c),m.iushln(c),t=l.words[l.length-1]|0);var S=m.length-l.length,B;if(h!=="mod"){B=new n(null),B.length=S+1,B.words=new Array(B.length);for(var k=0;k<B.length;k++)B.words[k]=0}var q=m.clone()._ishlnsubmul(l,1,S);q.negative===0&&(m=q,B&&(B.words[S]=1));for(var F=S-1;F>=0;F--){var ee=(m.words[l.length+F]|0)*67108864+(m.words[l.length+F-1]|0);for(ee=Math.min(ee/t|0,67108863),m._ishlnsubmul(l,ee,F);m.negative!==0;)ee--,m.negative=0,m._ishlnsubmul(l,1,F),m.isZero()||(m.negative^=1);B&&(B.words[F]=ee)}return B&&B._strip(),m._strip(),h!=="div"&&c!==0&&m.iushrn(c),{div:B||null,mod:m}},n.prototype.divmod=function(s,h,c){if(f(!s.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var m,l,t;return this.negative!==0&&s.negative===0?(t=this.neg().divmod(s,h),h!=="mod"&&(m=t.div.neg()),h!=="div"&&(l=t.mod.neg(),c&&l.negative!==0&&l.iadd(s)),{div:m,mod:l}):this.negative===0&&s.negative!==0?(t=this.divmod(s.neg(),h),h!=="mod"&&(m=t.div.neg()),{div:m,mod:t.mod}):this.negative&s.negative?(t=this.neg().divmod(s.neg(),h),h!=="div"&&(l=t.mod.neg(),c&&l.negative!==0&&l.isub(s)),{div:t.div,mod:l}):s.length>this.length||this.cmp(s)<0?{div:new n(0),mod:this}:s.length===1?h==="div"?{div:this.divn(s.words[0]),mod:null}:h==="mod"?{div:null,mod:new n(this.modrn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new n(this.modrn(s.words[0]))}:this._wordDiv(s,h)},n.prototype.div=function(s){return this.divmod(s,"div",!1).div},n.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},n.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},n.prototype.divRound=function(s){var h=this.divmod(s);if(h.mod.isZero())return h.div;var c=h.div.negative!==0?h.mod.isub(s):h.mod,m=s.ushrn(1),l=s.andln(1),t=c.cmp(m);return t<0||l===1&&t===0?h.div:h.div.negative!==0?h.div.isubn(1):h.div.iaddn(1)},n.prototype.modrn=function(s){var h=s<0;h&&(s=-s),f(s<=67108863);for(var c=(1<<26)%s,m=0,l=this.length-1;l>=0;l--)m=(c*m+(this.words[l]|0))%s;return h?-m:m},n.prototype.modn=function(s){return this.modrn(s)},n.prototype.idivn=function(s){var h=s<0;h&&(s=-s),f(s<=67108863);for(var c=0,m=this.length-1;m>=0;m--){var l=(this.words[m]|0)+c*67108864;this.words[m]=l/s|0,c=l%s}return this._strip(),h?this.ineg():this},n.prototype.divn=function(s){return this.clone().idivn(s)},n.prototype.egcd=function(s){f(s.negative===0),f(!s.isZero());var h=this,c=s.clone();h.negative!==0?h=h.umod(s):h=h.clone();for(var m=new n(1),l=new n(0),t=new n(0),u=new n(1),S=0;h.isEven()&&c.isEven();)h.iushrn(1),c.iushrn(1),++S;for(var B=c.clone(),k=h.clone();!h.isZero();){for(var q=0,F=1;!(h.words[0]&F)&&q<26;++q,F<<=1);if(q>0)for(h.iushrn(q);q-- >0;)(m.isOdd()||l.isOdd())&&(m.iadd(B),l.isub(k)),m.iushrn(1),l.iushrn(1);for(var ee=0,te=1;!(c.words[0]&te)&&ee<26;++ee,te<<=1);if(ee>0)for(c.iushrn(ee);ee-- >0;)(t.isOdd()||u.isOdd())&&(t.iadd(B),u.isub(k)),t.iushrn(1),u.iushrn(1);h.cmp(c)>=0?(h.isub(c),m.isub(t),l.isub(u)):(c.isub(h),t.isub(m),u.isub(l))}return{a:t,b:u,gcd:c.iushln(S)}},n.prototype._invmp=function(s){f(s.negative===0),f(!s.isZero());var h=this,c=s.clone();h.negative!==0?h=h.umod(s):h=h.clone();for(var m=new n(1),l=new n(0),t=c.clone();h.cmpn(1)>0&&c.cmpn(1)>0;){for(var u=0,S=1;!(h.words[0]&S)&&u<26;++u,S<<=1);if(u>0)for(h.iushrn(u);u-- >0;)m.isOdd()&&m.iadd(t),m.iushrn(1);for(var B=0,k=1;!(c.words[0]&k)&&B<26;++B,k<<=1);if(B>0)for(c.iushrn(B);B-- >0;)l.isOdd()&&l.iadd(t),l.iushrn(1);h.cmp(c)>=0?(h.isub(c),m.isub(l)):(c.isub(h),l.isub(m))}var q;return h.cmpn(1)===0?q=m:q=l,q.cmpn(0)<0&&q.iadd(s),q},n.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var h=this.clone(),c=s.clone();h.negative=0,c.negative=0;for(var m=0;h.isEven()&&c.isEven();m++)h.iushrn(1),c.iushrn(1);do{for(;h.isEven();)h.iushrn(1);for(;c.isEven();)c.iushrn(1);var l=h.cmp(c);if(l<0){var t=h;h=c,c=t}else if(l===0||c.cmpn(1)===0)break;h.isub(c)}while(!0);return c.iushln(m)},n.prototype.invm=function(s){return this.egcd(s).a.umod(s)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(s){return this.words[0]&s},n.prototype.bincn=function(s){f(typeof s=="number");var h=s%26,c=(s-h)/26,m=1<<h;if(this.length<=c)return this._expand(c+1),this.words[c]|=m,this;for(var l=m,t=c;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},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(s){var h=s<0;if(this.negative!==0&&!h)return-1;if(this.negative===0&&h)return 1;this._strip();var c;if(this.length>1)c=1;else{h&&(s=-s),f(s<=67108863,"Number is too big");var m=this.words[0]|0;c=m===s?0:m<s?-1:1}return this.negative!==0?-c|0:c},n.prototype.cmp=function(s){if(this.negative!==0&&s.negative===0)return-1;if(this.negative===0&&s.negative!==0)return 1;var h=this.ucmp(s);return this.negative!==0?-h|0:h},n.prototype.ucmp=function(s){if(this.length>s.length)return 1;if(this.length<s.length)return-1;for(var h=0,c=this.length-1;c>=0;c--){var m=this.words[c]|0,l=s.words[c]|0;if(m!==l){m<l?h=-1:m>l&&(h=1);break}}return h},n.prototype.gtn=function(s){return this.cmpn(s)===1},n.prototype.gt=function(s){return this.cmp(s)===1},n.prototype.gten=function(s){return this.cmpn(s)>=0},n.prototype.gte=function(s){return this.cmp(s)>=0},n.prototype.ltn=function(s){return this.cmpn(s)===-1},n.prototype.lt=function(s){return this.cmp(s)===-1},n.prototype.lten=function(s){return this.cmpn(s)<=0},n.prototype.lte=function(s){return this.cmp(s)<=0},n.prototype.eqn=function(s){return this.cmpn(s)===0},n.prototype.eq=function(s){return this.cmp(s)===0},n.red=function(s){return new e(s)},n.prototype.toRed=function(s){return f(!this.red,"Already a number in reduction context"),f(this.negative===0,"red works only with positives"),s.convertTo(this)._forceRed(s)},n.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(s){return this.red=s,this},n.prototype.forceRed=function(s){return f(!this.red,"Already a number in reduction context"),this._forceRed(s)},n.prototype.redAdd=function(s){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,s)},n.prototype.redIAdd=function(s){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s)},n.prototype.redSub=function(s){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,s)},n.prototype.redISub=function(s){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,s)},n.prototype.redShl=function(s){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,s)},n.prototype.redMul=function(s){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.mul(this,s)},n.prototype.redIMul=function(s){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.imul(this,s)},n.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(s){return f(this.red&&!s.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s)};var W={k256:null,p224:null,p192:null,p25519:null};function Q(i,s){this.name=i,this.p=new n(s,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Q.prototype._tmp=function(){var s=new n(null);return s.words=new Array(Math.ceil(this.n/13)),s},Q.prototype.ireduce=function(s){var h=s,c;do this.split(h,this.tmp),h=this.imulK(h),h=h.iadd(this.tmp),c=h.bitLength();while(c>this.n);var m=c<this.n?-1:h.ucmp(this.p);return m===0?(h.words[0]=0,h.length=1):m>0?h.isub(this.p):h.strip!==void 0?h.strip():h._strip(),h},Q.prototype.split=function(s,h){s.iushrn(this.n,0,h)},Q.prototype.imulK=function(s){return s.imul(this.k)};function K(){Q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}d(K,Q),K.prototype.split=function(s,h){for(var c=4194303,m=Math.min(s.length,9),l=0;l<m;l++)h.words[l]=s.words[l];if(h.length=m,s.length<=9){s.words[0]=0,s.length=1;return}var t=s.words[9];for(h.words[h.length++]=t&c,l=10;l<s.length;l++){var u=s.words[l]|0;s.words[l-10]=(u&c)<<4|t>>>22,t=u}t>>>=22,s.words[l-10]=t,t===0&&s.length>10?s.length-=10:s.length-=9},K.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var h=0,c=0;c<s.length;c++){var m=s.words[c]|0;h+=m*977,s.words[c]=h&67108863,h=m*64+(h/67108864|0)}return s.words[s.length-1]===0&&(s.length--,s.words[s.length-1]===0&&s.length--),s};function z(){Q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}d(z,Q);function X(){Q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}d(X,Q);function p(){Q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}d(p,Q),p.prototype.imulK=function(s){for(var h=0,c=0;c<s.length;c++){var m=(s.words[c]|0)*19+h,l=m&67108863;m>>>=26,s.words[c]=l,h=m}return h!==0&&(s.words[s.length++]=h),s},n._prime=function(s){if(W[s])return W[s];var h;if(s==="k256")h=new K;else if(s==="p224")h=new z;else if(s==="p192")h=new X;else if(s==="p25519")h=new p;else throw new Error("Unknown prime "+s);return W[s]=h,h};function e(i){if(typeof i=="string"){var s=n._prime(i);this.m=s.p,this.prime=s}else f(i.gtn(1),"modulus must be greater than 1"),this.m=i,this.prime=null}e.prototype._verify1=function(s){f(s.negative===0,"red works only with positives"),f(s.red,"red works only with red numbers")},e.prototype._verify2=function(s,h){f((s.negative|h.negative)===0,"red works only with positives"),f(s.red&&s.red===h.red,"red works only with red numbers")},e.prototype.imod=function(s){return this.prime?this.prime.ireduce(s)._forceRed(this):(w(s,s.umod(this.m)._forceRed(this)),s)},e.prototype.neg=function(s){return s.isZero()?s.clone():this.m.sub(s)._forceRed(this)},e.prototype.add=function(s,h){this._verify2(s,h);var c=s.add(h);return c.cmp(this.m)>=0&&c.isub(this.m),c._forceRed(this)},e.prototype.iadd=function(s,h){this._verify2(s,h);var c=s.iadd(h);return c.cmp(this.m)>=0&&c.isub(this.m),c},e.prototype.sub=function(s,h){this._verify2(s,h);var c=s.sub(h);return c.cmpn(0)<0&&c.iadd(this.m),c._forceRed(this)},e.prototype.isub=function(s,h){this._verify2(s,h);var c=s.isub(h);return c.cmpn(0)<0&&c.iadd(this.m),c},e.prototype.shl=function(s,h){return this._verify1(s),this.imod(s.ushln(h))},e.prototype.imul=function(s,h){return this._verify2(s,h),this.imod(s.imul(h))},e.prototype.mul=function(s,h){return this._verify2(s,h),this.imod(s.mul(h))},e.prototype.isqr=function(s){return this.imul(s,s.clone())},e.prototype.sqr=function(s){return this.mul(s,s)},e.prototype.sqrt=function(s){if(s.isZero())return s.clone();var h=this.m.andln(3);if(f(h%2===1),h===3){var c=this.m.add(new n(1)).iushrn(2);return this.pow(s,c)}for(var m=this.m.subn(1),l=0;!m.isZero()&&m.andln(1)===0;)l++,m.iushrn(1);f(!m.isZero());var t=new n(1).toRed(this),u=t.redNeg(),S=this.m.subn(1).iushrn(1),B=this.m.bitLength();for(B=new n(2*B*B).toRed(this);this.pow(B,S).cmp(u)!==0;)B.redIAdd(u);for(var k=this.pow(B,m),q=this.pow(s,m.addn(1).iushrn(1)),F=this.pow(s,m),ee=l;F.cmp(t)!==0;){for(var te=F,O=0;te.cmp(t)!==0;O++)te=te.redSqr();f(O<ee);var U=this.pow(k,new n(1).iushln(ee-O-1));q=q.redMul(U),k=U.redSqr(),F=F.redMul(k),ee=O}return q},e.prototype.invm=function(s){var h=s._invmp(this.m);return h.negative!==0?(h.negative=0,this.imod(h).redNeg()):this.imod(h)},e.prototype.pow=function(s,h){if(h.isZero())return new n(1).toRed(this);if(h.cmpn(1)===0)return s.clone();var c=4,m=new Array(1<<c);m[0]=new n(1).toRed(this),m[1]=s;for(var l=2;l<m.length;l++)m[l]=this.mul(m[l-1],s);var t=m[0],u=0,S=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 F=k>>q&1;if(t!==m[0]&&(t=this.sqr(t)),F===0&&u===0){S=0;continue}u<<=1,u|=F,S++,!(S!==c&&(l!==0||q!==0))&&(t=this.mul(t,m[u]),S=0,u=0)}B=26}return t},e.prototype.convertTo=function(s){var h=s.umod(this.m);return h===s?h.clone():h},e.prototype.convertFrom=function(s){var h=s.clone();return h.red=null,h},n.mont=function(s){return new r(s)};function r(i){e.call(this,i),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(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)}d(r,e),r.prototype.convertTo=function(s){return this.imod(s.ushln(this.shift))},r.prototype.convertFrom=function(s){var h=this.imod(s.mul(this.rinv));return h.red=null,h},r.prototype.imul=function(s,h){if(s.isZero()||h.isZero())return s.words[0]=0,s.length=1,s;var c=s.imul(h),m=c.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),l=c.isub(m).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(s,h){if(s.isZero()||h.isZero())return new n(0)._forceRed(this);var c=s.mul(h),m=c.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),l=c.isub(m).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(s){var h=this.imod(s._invmp(this.m).mul(this.r2));return h._forceRed(this)}})(typeof sx>"u"||sx,MK)});var ys=St(gi=>{"use strict";var swe=Ae(Be());Ie();Re();var wue=Kf(),Mue=Cn();gi.inherits=Mue;function _ue(a,o){return(a.charCodeAt(o)&64512)!==55296||o<0||o+1>=a.length?!1:(a.charCodeAt(o+1)&64512)===56320}function xue(a,o){if(Array.isArray(a))return a.slice();if(!a)return[];var f=[];if(typeof a=="string")if(o){if(o==="hex")for(a=a.replace(/[^a-z0-9]+/ig,""),a.length%2!==0&&(a="0"+a),n=0;n<a.length;n+=2)f.push(parseInt(a[n]+a[n+1],16))}else for(var d=0,n=0;n<a.length;n++){var v=a.charCodeAt(n);v<128?f[d++]=v:v<2048?(f[d++]=v>>6|192,f[d++]=v&63|128):_ue(a,n)?(v=65536+((v&1023)<<10)+(a.charCodeAt(++n)&1023),f[d++]=v>>18|240,f[d++]=v>>12&63|128,f[d++]=v>>6&63|128,f[d++]=v&63|128):(f[d++]=v>>12|224,f[d++]=v>>6&63|128,f[d++]=v&63|128)}else for(n=0;n<a.length;n++)f[n]=a[n]|0;return f}gi.toArray=xue;function Sue(a){for(var o="",f=0;f<a.length;f++)o+=ZK(a[f].toString(16));return o}gi.toHex=Sue;function WK(a){var o=a>>>24|a>>>8&65280|a<<8&16711680|(a&255)<<24;return o>>>0}gi.htonl=WK;function Eue(a,o){for(var f="",d=0;d<a.length;d++){var n=a[d];o==="little"&&(n=WK(n)),f+=GK(n.toString(16))}return f}gi.toHex32=Eue;function ZK(a){return a.length===1?"0"+a:a}gi.zero2=ZK;function GK(a){return a.length===7?"0"+a:a.length===6?"00"+a:a.length===5?"000"+a:a.length===4?"0000"+a:a.length===3?"00000"+a:a.length===2?"000000"+a:a.length===1?"0000000"+a:a}gi.zero8=GK;function Aue(a,o,f,d){var n=f-o;wue(n%4===0);for(var v=new Array(n/4),b=0,y=o;b<v.length;b++,y+=4){var M;d==="big"?M=a[y]<<24|a[y+1]<<16|a[y+2]<<8|a[y+3]:M=a[y+3]<<24|a[y+2]<<16|a[y+1]<<8|a[y],v[b]=M>>>0}return v}gi.join32=Aue;function Bue(a,o){for(var f=new Array(a.length*4),d=0,n=0;d<a.length;d++,n+=4){var v=a[d];o==="big"?(f[n]=v>>>24,f[n+1]=v>>>16&255,f[n+2]=v>>>8&255,f[n+3]=v&255):(f[n+3]=v>>>24,f[n+2]=v>>>16&255,f[n+1]=v>>>8&255,f[n]=v&255)}return f}gi.split32=Bue;function Rue(a,o){return a>>>o|a<<32-o}gi.rotr32=Rue;function Iue(a,o){return a<<o|a>>>32-o}gi.rotl32=Iue;function Tue(a,o){return a+o>>>0}gi.sum32=Tue;function kue(a,o,f){return a+o+f>>>0}gi.sum32_3=kue;function $ue(a,o,f,d){return a+o+f+d>>>0}gi.sum32_4=$ue;function Pue(a,o,f,d,n){return a+o+f+d+n>>>0}gi.sum32_5=Pue;function Nue(a,o,f,d){var n=a[o],v=a[o+1],b=d+v>>>0,y=(b<d?1:0)+f+n;a[o]=y>>>0,a[o+1]=b}gi.sum64=Nue;function Cue(a,o,f,d){var n=o+d>>>0,v=(n<o?1:0)+a+f;return v>>>0}gi.sum64_hi=Cue;function Lue(a,o,f,d){var n=o+d;return n>>>0}gi.sum64_lo=Lue;function Due(a,o,f,d,n,v,b,y){var M=0,w=o;w=w+d>>>0,M+=w<o?1:0,w=w+v>>>0,M+=w<v?1:0,w=w+y>>>0,M+=w<y?1:0;var g=a+f+n+b+M;return g>>>0}gi.sum64_4_hi=Due;function Oue(a,o,f,d,n,v,b,y){var M=o+d+v+y;return M>>>0}gi.sum64_4_lo=Oue;function que(a,o,f,d,n,v,b,y,M,w){var g=0,_=o;_=_+d>>>0,g+=_<o?1:0,_=_+v>>>0,g+=_<v?1:0,_=_+y>>>0,g+=_<y?1:0,_=_+w>>>0,g+=_<w?1:0;var x=a+f+n+b+M+g;return x>>>0}gi.sum64_5_hi=que;function Uue(a,o,f,d,n,v,b,y,M,w){var g=o+d+v+y+w;return g>>>0}gi.sum64_5_lo=Uue;function Fue(a,o,f){var d=o<<32-f|a>>>f;return d>>>0}gi.rotr64_hi=Fue;function zue(a,o,f){var d=a<<32-f|o>>>f;return d>>>0}gi.rotr64_lo=zue;function Hue(a,o,f){return a>>>f}gi.shr64_hi=Hue;function Kue(a,o,f){var d=a<<32-f|o>>>f;return d>>>0}gi.shr64_lo=Kue});var bd=St(JK=>{"use strict";var lwe=Ae(Be());Ie();Re();var VK=ys(),jue=Kf();function H6(){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}JK.BlockHash=H6;H6.prototype.update=function(o,f){if(o=VK.toArray(o,f),this.pending?this.pending=this.pending.concat(o):this.pending=o,this.pendingTotal+=o.length,this.pending.length>=this._delta8){o=this.pending;var d=o.length%this._delta8;this.pending=o.slice(o.length-d,o.length),this.pending.length===0&&(this.pending=null),o=VK.join32(o,0,o.length-d,this.endian);for(var n=0;n<o.length;n+=this._delta32)this._update(o,n,n+this._delta32)}return this};H6.prototype.digest=function(o){return this.update(this._pad()),jue(this.pending===null),this._digest(o)};H6.prototype._pad=function(){var o=this.pendingTotal,f=this._delta8,d=f-(o+this.padLength)%f,n=new Array(d+this.padLength);n[0]=128;for(var v=1;v<d;v++)n[v]=0;if(o<<=3,this.endian==="big"){for(var b=8;b<this.padLength;b++)n[v++]=0;n[v++]=0,n[v++]=0,n[v++]=0,n[v++]=0,n[v++]=o>>>24&255,n[v++]=o>>>16&255,n[v++]=o>>>8&255,n[v++]=o&255}else for(n[v++]=o&255,n[v++]=o>>>8&255,n[v++]=o>>>16&255,n[v++]=o>>>24&255,n[v++]=0,n[v++]=0,n[v++]=0,n[v++]=0,b=8;b<this.padLength;b++)n[v++]=0;return n}});var px=St(Jf=>{"use strict";var vwe=Ae(Be());Ie();Re();var Wue=ys(),af=Wue.rotr32;function Zue(a,o,f,d){if(a===0)return YK(o,f,d);if(a===1||a===3)return QK(o,f,d);if(a===2)return XK(o,f,d)}Jf.ft_1=Zue;function YK(a,o,f){return a&o^~a&f}Jf.ch32=YK;function XK(a,o,f){return a&o^a&f^o&f}Jf.maj32=XK;function QK(a,o,f){return a^o^f}Jf.p32=QK;function Gue(a){return af(a,2)^af(a,13)^af(a,22)}Jf.s0_256=Gue;function Vue(a){return af(a,6)^af(a,11)^af(a,25)}Jf.s1_256=Vue;function Jue(a){return af(a,7)^af(a,18)^a>>>3}Jf.g0_256=Jue;function Yue(a){return af(a,17)^af(a,19)^a>>>10}Jf.g1_256=Yue});var rj=St((gwe,tj)=>{"use strict";var ywe=Ae(Be());Ie();Re();var md=ys(),Xue=bd(),Que=px(),vx=md.rotl32,k1=md.sum32,ele=md.sum32_5,tle=Que.ft_1,ej=Xue.BlockHash,rle=[1518500249,1859775393,2400959708,3395469782];function of(){if(!(this instanceof of))return new of;ej.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}md.inherits(of,ej);tj.exports=of;of.blockSize=512;of.outSize=160;of.hmacStrength=80;of.padLength=64;of.prototype._update=function(o,f){for(var d=this.W,n=0;n<16;n++)d[n]=o[f+n];for(;n<d.length;n++)d[n]=vx(d[n-3]^d[n-8]^d[n-14]^d[n-16],1);var v=this.h[0],b=this.h[1],y=this.h[2],M=this.h[3],w=this.h[4];for(n=0;n<d.length;n++){var g=~~(n/20),_=ele(vx(v,5),tle(g,b,y,M),w,d[n],rle[g]);w=M,M=y,y=vx(b,30),b=v,v=_}this.h[0]=k1(this.h[0],v),this.h[1]=k1(this.h[1],b),this.h[2]=k1(this.h[2],y),this.h[3]=k1(this.h[3],M),this.h[4]=k1(this.h[4],w)};of.prototype._digest=function(o){return o==="hex"?md.toHex32(this.h,"big"):md.split32(this.h,"big")}});var bx=St((_we,nj)=>{"use strict";var xwe=Ae(Be());Ie();Re();var gd=ys(),ile=bd(),yd=px(),nle=Kf(),ws=gd.sum32,ale=gd.sum32_4,ole=gd.sum32_5,sle=yd.ch32,fle=yd.maj32,hle=yd.s0_256,ule=yd.s1_256,lle=yd.g0_256,dle=yd.g1_256,ij=ile.BlockHash,cle=[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 sf(){if(!(this instanceof sf))return new sf;ij.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=cle,this.W=new Array(64)}gd.inherits(sf,ij);nj.exports=sf;sf.blockSize=512;sf.outSize=256;sf.hmacStrength=192;sf.padLength=64;sf.prototype._update=function(o,f){for(var d=this.W,n=0;n<16;n++)d[n]=o[f+n];for(;n<d.length;n++)d[n]=ale(dle(d[n-2]),d[n-7],lle(d[n-15]),d[n-16]);var v=this.h[0],b=this.h[1],y=this.h[2],M=this.h[3],w=this.h[4],g=this.h[5],_=this.h[6],x=this.h[7];for(nle(this.k.length===d.length),n=0;n<d.length;n++){var E=ole(x,ule(w),sle(w,g,_),this.k[n],d[n]),R=ws(hle(v),fle(v,b,y));x=_,_=g,g=w,w=ws(M,E),M=y,y=b,b=v,v=ws(E,R)}this.h[0]=ws(this.h[0],v),this.h[1]=ws(this.h[1],b),this.h[2]=ws(this.h[2],y),this.h[3]=ws(this.h[3],M),this.h[4]=ws(this.h[4],w),this.h[5]=ws(this.h[5],g),this.h[6]=ws(this.h[6],_),this.h[7]=ws(this.h[7],x)};sf.prototype._digest=function(o){return o==="hex"?gd.toHex32(this.h,"big"):gd.split32(this.h,"big")}});var sj=St((Awe,oj)=>{"use strict";var Bwe=Ae(Be());Ie();Re();var mx=ys(),aj=bx();function Yf(){if(!(this instanceof Yf))return new Yf;aj.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}mx.inherits(Yf,aj);oj.exports=Yf;Yf.blockSize=512;Yf.outSize=224;Yf.hmacStrength=192;Yf.padLength=64;Yf.prototype._digest=function(o){return o==="hex"?mx.toHex32(this.h.slice(0,7),"big"):mx.split32(this.h.slice(0,7),"big")}});var wx=St((Twe,lj)=>{"use strict";var kwe=Ae(Be());Ie();Re();var Ma=ys(),ple=bd(),vle=Kf(),ff=Ma.rotr64_hi,hf=Ma.rotr64_lo,fj=Ma.shr64_hi,hj=Ma.shr64_lo,oh=Ma.sum64,gx=Ma.sum64_hi,yx=Ma.sum64_lo,ble=Ma.sum64_4_hi,mle=Ma.sum64_4_lo,gle=Ma.sum64_5_hi,yle=Ma.sum64_5_lo,uj=ple.BlockHash,wle=[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 Ms(){if(!(this instanceof Ms))return new Ms;uj.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=wle,this.W=new Array(160)}Ma.inherits(Ms,uj);lj.exports=Ms;Ms.blockSize=1024;Ms.outSize=512;Ms.hmacStrength=192;Ms.padLength=128;Ms.prototype._prepareBlock=function(o,f){for(var d=this.W,n=0;n<32;n++)d[n]=o[f+n];for(;n<d.length;n+=2){var v=kle(d[n-4],d[n-3]),b=$le(d[n-4],d[n-3]),y=d[n-14],M=d[n-13],w=Ile(d[n-30],d[n-29]),g=Tle(d[n-30],d[n-29]),_=d[n-32],x=d[n-31];d[n]=ble(v,b,y,M,w,g,_,x),d[n+1]=mle(v,b,y,M,w,g,_,x)}};Ms.prototype._update=function(o,f){this._prepareBlock(o,f);var d=this.W,n=this.h[0],v=this.h[1],b=this.h[2],y=this.h[3],M=this.h[4],w=this.h[5],g=this.h[6],_=this.h[7],x=this.h[8],E=this.h[9],R=this.h[10],T=this.h[11],N=this.h[12],P=this.h[13],L=this.h[14],D=this.h[15];vle(this.k.length===d.length);for(var Z=0;Z<d.length;Z+=2){var W=L,Q=D,K=Ble(x,E),z=Rle(x,E),X=Mle(x,E,R,T,N,P),p=_le(x,E,R,T,N,P),e=this.k[Z],r=this.k[Z+1],i=d[Z],s=d[Z+1],h=gle(W,Q,K,z,X,p,e,r,i,s),c=yle(W,Q,K,z,X,p,e,r,i,s);W=Ele(n,v),Q=Ale(n,v),K=xle(n,v,b,y,M,w),z=Sle(n,v,b,y,M,w);var m=gx(W,Q,K,z),l=yx(W,Q,K,z);L=N,D=P,N=R,P=T,R=x,T=E,x=gx(g,_,h,c),E=yx(_,_,h,c),g=M,_=w,M=b,w=y,b=n,y=v,n=gx(h,c,m,l),v=yx(h,c,m,l)}oh(this.h,0,n,v),oh(this.h,2,b,y),oh(this.h,4,M,w),oh(this.h,6,g,_),oh(this.h,8,x,E),oh(this.h,10,R,T),oh(this.h,12,N,P),oh(this.h,14,L,D)};Ms.prototype._digest=function(o){return o==="hex"?Ma.toHex32(this.h,"big"):Ma.split32(this.h,"big")};function Mle(a,o,f,d,n){var v=a&f^~a&n;return v<0&&(v+=4294967296),v}function _le(a,o,f,d,n,v){var b=o&d^~o&v;return b<0&&(b+=4294967296),b}function xle(a,o,f,d,n){var v=a&f^a&n^f&n;return v<0&&(v+=4294967296),v}function Sle(a,o,f,d,n,v){var b=o&d^o&v^d&v;return b<0&&(b+=4294967296),b}function Ele(a,o){var f=ff(a,o,28),d=ff(o,a,2),n=ff(o,a,7),v=f^d^n;return v<0&&(v+=4294967296),v}function Ale(a,o){var f=hf(a,o,28),d=hf(o,a,2),n=hf(o,a,7),v=f^d^n;return v<0&&(v+=4294967296),v}function Ble(a,o){var f=ff(a,o,14),d=ff(a,o,18),n=ff(o,a,9),v=f^d^n;return v<0&&(v+=4294967296),v}function Rle(a,o){var f=hf(a,o,14),d=hf(a,o,18),n=hf(o,a,9),v=f^d^n;return v<0&&(v+=4294967296),v}function Ile(a,o){var f=ff(a,o,1),d=ff(a,o,8),n=fj(a,o,7),v=f^d^n;return v<0&&(v+=4294967296),v}function Tle(a,o){var f=hf(a,o,1),d=hf(a,o,8),n=hj(a,o,7),v=f^d^n;return v<0&&(v+=4294967296),v}function kle(a,o){var f=ff(a,o,19),d=ff(o,a,29),n=fj(a,o,6),v=f^d^n;return v<0&&(v+=4294967296),v}function $le(a,o){var f=hf(a,o,19),d=hf(o,a,29),n=hj(a,o,6),v=f^d^n;return v<0&&(v+=4294967296),v}});var pj=St((Nwe,cj)=>{"use strict";var Cwe=Ae(Be());Ie();Re();var Mx=ys(),dj=wx();function Xf(){if(!(this instanceof Xf))return new Xf;dj.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}Mx.inherits(Xf,dj);cj.exports=Xf;Xf.blockSize=1024;Xf.outSize=384;Xf.hmacStrength=192;Xf.padLength=128;Xf.prototype._digest=function(o){return o==="hex"?Mx.toHex32(this.h.slice(0,12),"big"):Mx.split32(this.h.slice(0,12),"big")}});var vj=St(wd=>{"use strict";var qwe=Ae(Be());Ie();Re();wd.sha1=rj();wd.sha224=sj();wd.sha256=bx();wd.sha384=pj();wd.sha512=wx()});var Mj=St(wj=>{"use strict";var Hwe=Ae(Be());Ie();Re();var Ou=ys(),Ple=bd(),K6=Ou.rotl32,bj=Ou.sum32,$1=Ou.sum32_3,mj=Ou.sum32_4,yj=Ple.BlockHash;function uf(){if(!(this instanceof uf))return new uf;yj.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}Ou.inherits(uf,yj);wj.ripemd160=uf;uf.blockSize=512;uf.outSize=160;uf.hmacStrength=192;uf.padLength=64;uf.prototype._update=function(o,f){for(var d=this.h[0],n=this.h[1],v=this.h[2],b=this.h[3],y=this.h[4],M=d,w=n,g=v,_=b,x=y,E=0;E<80;E++){var R=bj(K6(mj(d,gj(E,n,v,b),o[Lle[E]+f],Nle(E)),Ole[E]),y);d=y,y=b,b=K6(v,10),v=n,n=R,R=bj(K6(mj(M,gj(79-E,w,g,_),o[Dle[E]+f],Cle(E)),qle[E]),x),M=x,x=_,_=K6(g,10),g=w,w=R}R=$1(this.h[1],v,_),this.h[1]=$1(this.h[2],b,x),this.h[2]=$1(this.h[3],y,M),this.h[3]=$1(this.h[4],d,w),this.h[4]=$1(this.h[0],n,g),this.h[0]=R};uf.prototype._digest=function(o){return o==="hex"?Ou.toHex32(this.h,"little"):Ou.split32(this.h,"little")};function gj(a,o,f,d){return a<=15?o^f^d:a<=31?o&f|~o&d:a<=47?(o|~f)^d:a<=63?o&d|f&~d:o^(f|~d)}function Nle(a){return a<=15?0:a<=31?1518500249:a<=47?1859775393:a<=63?2400959708:2840853838}function Cle(a){return a<=15?1352829926:a<=31?1548603684:a<=47?1836072691:a<=63?2053994217:0}var Lle=[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],Dle=[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],Ole=[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],qle=[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 xj=St((Wwe,_j)=>{"use strict";var Zwe=Ae(Be());Ie();Re();var Ule=ys(),Fle=Kf();function Md(a,o,f){if(!(this instanceof Md))return new Md(a,o,f);this.Hash=a,this.blockSize=a.blockSize/8,this.outSize=a.outSize/8,this.inner=null,this.outer=null,this._init(Ule.toArray(o,f))}_j.exports=Md;Md.prototype._init=function(o){o.length>this.blockSize&&(o=new this.Hash().update(o).digest()),Fle(o.length<=this.blockSize);for(var f=o.length;f<this.blockSize;f++)o.push(0);for(f=0;f<o.length;f++)o[f]^=54;for(this.inner=new this.Hash().update(o),f=0;f<o.length;f++)o[f]^=106;this.outer=new this.Hash().update(o)};Md.prototype.update=function(o,f){return this.inner.update(o,f),this};Md.prototype.digest=function(o){return this.outer.update(this.inner.digest()),this.outer.digest(o)}});var _d=St(Sj=>{var Ywe=Ae(Be());Ie();Re();var Ln=Sj;Ln.utils=ys();Ln.common=bd();Ln.sha=vj();Ln.ripemd=Mj();Ln.hmac=xj();Ln.sha1=Ln.sha.sha1;Ln.sha256=Ln.sha.sha256;Ln.sha224=Ln.sha.sha224;Ln.sha384=Ln.sha.sha384;Ln.sha512=Ln.sha.sha512;Ln.ripemd160=Ln.ripemd.ripemd160});var zx=St((Fx,Hj)=>{"use strict";var QMe=Ae(Be());Ie();Re();(function(a){function o(t){return parseInt(t)===t}function f(t){if(!o(t.length))return!1;for(var u=0;u<t.length;u++)if(!o(t[u])||t[u]<0||t[u]>255)return!1;return!0}function d(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(!f(t))throw new Error("Array contains invalid value: "+t);return new Uint8Array(t)}if(o(t.length)&&f(t))return new Uint8Array(t);throw new Error("unsupported array-like object")}function n(t){return new Uint8Array(t)}function v(t,u,S,B,k){(B!=null||k!=null)&&(t.slice?t=t.slice(B,k):t=Array.prototype.slice.call(t,B,k)),u.set(t,S)}var b=function(){function t(S){var B=[],k=0;for(S=encodeURI(S);k<S.length;){var q=S.charCodeAt(k++);q===37?(B.push(parseInt(S.substr(k,2),16)),k+=2):B.push(q)}return d(B)}function u(S){for(var B=[],k=0;k<S.length;){var q=S[k];q<128?(B.push(String.fromCharCode(q)),k++):q>191&&q<224?(B.push(String.fromCharCode((q&31)<<6|S[k+1]&63)),k+=2):(B.push(String.fromCharCode((q&15)<<12|(S[k+1]&63)<<6|S[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 S(B){for(var k=[],q=0;q<B.length;q++){var F=B[q];k.push(u[(F&240)>>4]+u[F&15])}return k.join("")}return{toBytes:t,fromBytes:S}}(),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],g=[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],E=[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],R=[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],T=[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 z(t){for(var u=[],S=0;S<t.length;S+=4)u.push(t[S]<<24|t[S+1]<<16|t[S+2]<<8|t[S+3]);return u}var X=function(t){if(!(this instanceof X))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:d(t,!0)}),this._prepare()};X.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 S=(t+1)*4,B=this.key.length/4,k=z(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 F=0,ee=B,te;ee<S;){if(te=k[B-1],k[0]^=g[te>>16&255]<<24^g[te>>8&255]<<16^g[te&255]<<8^g[te>>24&255]^w[F]<<24,F+=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]^=g[te&255]^g[te>>8&255]<<8^g[te>>16&255]<<16^g[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<S;)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]},X.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,S=[0,0,0,0],B=z(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++)S[k]=x[B[k]>>24&255]^E[B[(k+1)%4]>>16&255]^R[B[(k+2)%4]>>8&255]^T[B[(k+3)%4]&255]^this._Ke[q][k];B=S.slice()}for(var F=n(16),ee,k=0;k<4;k++)ee=this._Ke[u][k],F[4*k]=(g[B[k]>>24&255]^ee>>24)&255,F[4*k+1]=(g[B[(k+1)%4]>>16&255]^ee>>16)&255,F[4*k+2]=(g[B[(k+2)%4]>>8&255]^ee>>8)&255,F[4*k+3]=(g[B[(k+3)%4]&255]^ee)&255;return F},X.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,S=[0,0,0,0],B=z(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++)S[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=S.slice()}for(var F=n(16),ee,k=0;k<4;k++)ee=this._Kd[u][k],F[4*k]=(_[B[k]>>24&255]^ee>>24)&255,F[4*k+1]=(_[B[(k+3)%4]>>16&255]^ee>>16)&255,F[4*k+2]=(_[B[(k+2)%4]>>8&255]^ee>>8)&255,F[4*k+3]=(_[B[(k+1)%4]&255]^ee)&255;return F};var p=function(t){if(!(this instanceof p))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new X(t)};p.prototype.encrypt=function(t){if(t=d(t),t.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var u=n(t.length),S=n(16),B=0;B<t.length;B+=16)v(t,S,0,B,B+16),S=this._aes.encrypt(S),v(S,u,B);return u},p.prototype.decrypt=function(t){if(t=d(t),t.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var u=n(t.length),S=n(16),B=0;B<t.length;B+=16)v(t,S,0,B,B+16),S=this._aes.decrypt(S),v(S,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=n(16);else if(u.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastCipherblock=d(u,!0),this._aes=new X(t)};e.prototype.encrypt=function(t){if(t=d(t),t.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var u=n(t.length),S=n(16),B=0;B<t.length;B+=16){v(t,S,0,B,B+16);for(var k=0;k<16;k++)S[k]^=this._lastCipherblock[k];this._lastCipherblock=this._aes.encrypt(S),v(this._lastCipherblock,u,B)}return u},e.prototype.decrypt=function(t){if(t=d(t),t.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var u=n(t.length),S=n(16),B=0;B<t.length;B+=16){v(t,S,0,B,B+16),S=this._aes.decrypt(S);for(var k=0;k<16;k++)u[B+k]=S[k]^this._lastCipherblock[k];v(t,this._lastCipherblock,0,B,B+16)}return u};var r=function(t,u,S){if(!(this instanceof r))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",!u)u=n(16);else if(u.length!=16)throw new Error("invalid initialation vector size (must be 16 size)");S||(S=1),this.segmentSize=S,this._shiftRegister=d(u,!0),this._aes=new X(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=d(t,!0),S,B=0;B<u.length;B+=this.segmentSize){S=this._aes.encrypt(this._shiftRegister);for(var k=0;k<this.segmentSize;k++)u[B+k]^=S[k];v(this._shiftRegister,this._shiftRegister,0,this.segmentSize),v(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=d(t,!0),S,B=0;B<u.length;B+=this.segmentSize){S=this._aes.encrypt(this._shiftRegister);for(var k=0;k<this.segmentSize;k++)u[B+k]^=S[k];v(this._shiftRegister,this._shiftRegister,0,this.segmentSize),v(t,this._shiftRegister,16-this.segmentSize,B,B+this.segmentSize)}return u};var i=function(t,u){if(!(this instanceof i))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",!u)u=n(16);else if(u.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastPrecipher=d(u,!0),this._lastPrecipherIndex=16,this._aes=new X(t)};i.prototype.encrypt=function(t){for(var u=d(t,!0),S=0;S<u.length;S++)this._lastPrecipherIndex===16&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),u[S]^=this._lastPrecipher[this._lastPrecipherIndex++];return u},i.prototype.decrypt=i.prototype.encrypt;var s=function(t){if(!(this instanceof s))throw Error("Counter must be instanitated with `new`");t!==0&&!t&&(t=1),typeof t=="number"?(this._counter=n(16),this.setValue(t)):this.setBytes(t)};s.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},s.prototype.setBytes=function(t){if(t=d(t,!0),t.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=t},s.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 s||(u=new s(u)),this._counter=u,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new X(t)};h.prototype.encrypt=function(t){for(var u=d(t,!0),S=0;S<u.length;S++)this._remainingCounterIndex===16&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),u[S]^=this._remainingCounter[this._remainingCounterIndex++];return u},h.prototype.decrypt=h.prototype.encrypt;function c(t){t=d(t,!0);var u=16-t.length%16,S=n(t.length+u);v(t,S);for(var B=t.length;B<S.length;B++)S[B]=u;return S}function m(t){if(t=d(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 S=t.length-u,B=0;B<u;B++)if(t[S+B]!==u)throw new Error("PKCS#7 invalid padding byte");var k=n(S);return v(t,k,0,0,S),k}var l={AES:X,Counter:s,ModeOfOperation:{ecb:p,cbc:e,cfb:r,ofb:i,ctr:h},utils:{hex:y,utf8:b},padding:{pkcs7:{pad:c,strip:m}},_arrayTest:{coerceArray:d,createArray:n,copyArray:v}};typeof Fx<"u"?Hj.exports=l:typeof define=="function"&&define.amd?define(l):(a.aesjs&&(l._aesjs=a.aesjs),a.aesjs=l)})(Fx)});var Wj=St((Gx,jj)=>{"use strict";var I_e=Ae(Be());Ie();Re();(function(a){function f(E){let R=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]),T=1779033703,N=3144134277,P=1013904242,L=2773480762,D=1359893119,Z=2600822924,W=528734635,Q=1541459225,K=new Uint32Array(64);function z(h){let c=0,m=h.length;for(;m>=64;){let l=T,t=N,u=P,S=L,B=D,k=Z,q=W,F=Q,ee,te,O,U,oe;for(te=0;te<16;te++)O=c+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)+(F+(R[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,F=q,q=k,k=B,B=S+U|0,S=u,u=t,t=l,l=U+oe|0;T=T+l|0,N=N+t|0,P=P+u|0,L=L+S|0,D=D+B|0,Z=Z+k|0,W=W+q|0,Q=Q+F|0,c+=64,m-=64}}z(E);let X,p=E.length%64,e=E.length/536870912|0,r=E.length<<3,i=p<56?56:120,s=E.slice(E.length-p,E.length);for(s.push(128),X=p+1;X<i;X++)s.push(0);return s.push(e>>>24&255),s.push(e>>>16&255),s.push(e>>>8&255),s.push(e>>>0&255),s.push(r>>>24&255),s.push(r>>>16&255),s.push(r>>>8&255),s.push(r>>>0&255),z(s),[T>>>24&255,T>>>16&255,T>>>8&255,T>>>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 d(E,R,T){E=E.length<=64?E:f(E);let N=64+R.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<E.length;D++)P[D]^=E[D];for(D=0;D<R.length;D++)P[64+D]=R[D];for(D=N-4;D<N;D++)P[D]=0;for(D=0;D<64;D++)L[D]=92;for(D=0;D<E.length;D++)L[D]^=E[D];function W(){for(let Q=N-1;Q>=N-4;Q--){if(P[Q]++,P[Q]<=255)return;P[Q]=0}}for(;T>=32;)W(),Z=Z.concat(f(L.concat(f(P)))),T-=32;return T>0&&(W(),Z=Z.concat(f(L.concat(f(P))).slice(0,T))),Z}function n(E,R,T,N,P){let L;for(M(E,(2*T-1)*16,P,0,16),L=0;L<2*T;L++)y(E,L*16,P,16),b(P,N),M(P,0,E,R+L*16,16);for(L=0;L<T;L++)M(E,R+L*2*16,E,L*16,16);for(L=0;L<T;L++)M(E,R+(L*2+1)*16,E,(L+T)*16,16)}function v(E,R){return E<<R|E>>>32-R}function b(E,R){M(E,0,R,0,16);for(let T=8;T>0;T-=2)R[4]^=v(R[0]+R[12],7),R[8]^=v(R[4]+R[0],9),R[12]^=v(R[8]+R[4],13),R[0]^=v(R[12]+R[8],18),R[9]^=v(R[5]+R[1],7),R[13]^=v(R[9]+R[5],9),R[1]^=v(R[13]+R[9],13),R[5]^=v(R[1]+R[13],18),R[14]^=v(R[10]+R[6],7),R[2]^=v(R[14]+R[10],9),R[6]^=v(R[2]+R[14],13),R[10]^=v(R[6]+R[2],18),R[3]^=v(R[15]+R[11],7),R[7]^=v(R[3]+R[15],9),R[11]^=v(R[7]+R[3],13),R[15]^=v(R[11]+R[7],18),R[1]^=v(R[0]+R[3],7),R[2]^=v(R[1]+R[0],9),R[3]^=v(R[2]+R[1],13),R[0]^=v(R[3]+R[2],18),R[6]^=v(R[5]+R[4],7),R[7]^=v(R[6]+R[5],9),R[4]^=v(R[7]+R[6],13),R[5]^=v(R[4]+R[7],18),R[11]^=v(R[10]+R[9],7),R[8]^=v(R[11]+R[10],9),R[9]^=v(R[8]+R[11],13),R[10]^=v(R[9]+R[8],18),R[12]^=v(R[15]+R[14],7),R[13]^=v(R[12]+R[15],9),R[14]^=v(R[13]+R[12],13),R[15]^=v(R[14]+R[13],18);for(let T=0;T<16;++T)E[T]+=R[T]}function y(E,R,T,N){for(let P=0;P<N;P++)T[P]^=E[R+P]}function M(E,R,T,N,P){for(;P--;)T[N++]=E[R++]}function w(E){if(!E||typeof E.length!="number")return!1;for(let R=0;R<E.length;R++){let T=E[R];if(typeof T!="number"||T%1||T<0||T>=256)return!1}return!0}function g(E,R){if(typeof E!="number"||E%1)throw new Error("invalid "+R);return E}function _(E,R,T,N,P,L,D){if(T=g(T,"N"),N=g(N,"r"),P=g(P,"p"),L=g(L,"dkLen"),T===0||T&T-1)throw new Error("N must be power of 2");if(T>2147483647/128/N)throw new Error("N too large");if(N>2147483647/128/P)throw new Error("r too large");if(!w(E))throw new Error("password must be an array or buffer");if(E=Array.prototype.slice.call(E),!w(R))throw new Error("salt must be an array or buffer");R=Array.prototype.slice.call(R);let Z=d(E,R,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*T),z=32*N,X=new Uint32Array(16),p=new Uint32Array(16),e=P*T*2,r=0,i=null,s=!1,h=0,c=0,m,l,t=D?parseInt(1e3/N):4294967295,u=typeof setImmediate<"u"?setImmediate:setTimeout,S=function(){if(s)return D(new Error("cancelled"),r/e);let B;switch(h){case 0:l=c*32*N,M(W,l,Q,0,z),h=1,m=0;case 1:B=T-m,B>t&&(B=t);for(let q=0;q<B;q++)M(Q,0,K,(m+q)*z,z),n(Q,z,N,X,p);if(m+=B,r+=B,D){let q=parseInt(1e3*r/e);if(q!==i){if(s=D(null,r/e),s)break;i=q}}if(m<T)break;m=0,h=2;case 2:B=T-m,B>t&&(B=t);for(let q=0;q<B;q++){let F=(2*N-1)*16,ee=Q[F]&T-1;y(K,ee*z,Q,z),n(Q,z,N,X,p)}if(m+=B,r+=B,D){let q=parseInt(1e3*r/e);if(q!==i){if(s=D(null,r/e),s)break;i=q}}if(m<T)break;if(M(Q,0,W,l,z),c++,c<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=d(E,Z,L);return D&&D(null,1,k),k}D&&u(S)};if(!D)for(;;){let B=S();if(B!=null)return B}S()}let x={scrypt:function(E,R,T,N,P,L,D){return new Promise(function(Z,W){let Q=0;D&&D(0),_(E,R,T,N,P,L,function(K,z,X){if(K)W(K);else if(X)D&&Q!==1&&D(1),Z(new Uint8Array(X));else if(D&&z!==Q)return Q=z,D(z)})})},syncScrypt:function(E,R,T,N,P,L){return new Uint8Array(_(E,R,T,N,P,L))}};typeof Gx<"u"?jj.exports=x:typeof define=="function"&&define.amd?define(x):a&&(a.scrypt&&(a._scrypt=a.scrypt),a.scrypt=x)})(Gx)});var oW=St((Qx,aW)=>{var Pxe=Ae(Be());Ie();Re();var fb=(ku(),h0(Tu)),pf=fb.Buffer;function nW(a,o){for(var f in a)o[f]=a[f]}pf.from&&pf.alloc&&pf.allocUnsafe&&pf.allocUnsafeSlow?aW.exports=fb:(nW(fb,Qx),Qx.Buffer=ju);function ju(a,o,f){return pf(a,o,f)}ju.prototype=Object.create(pf.prototype);nW(pf,ju);ju.from=function(a,o,f){if(typeof a=="number")throw new TypeError("Argument must not be a number");return pf(a,o,f)};ju.alloc=function(a,o,f){if(typeof a!="number")throw new TypeError("Argument must be a number");var d=pf(a);return o!==void 0?typeof f=="string"?d.fill(o,f):d.fill(o):d.fill(0),d};ju.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return pf(a)};ju.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return fb.SlowBuffer(a)}});var fW=St((Lxe,sW)=>{"use strict";var Dxe=Ae(Be());Ie();Re();var hb=oW().Buffer;function _de(a){if(a.length>=255)throw new TypeError("Alphabet too long");for(var o=new Uint8Array(256),f=0;f<o.length;f++)o[f]=255;for(var d=0;d<a.length;d++){var n=a.charAt(d),v=n.charCodeAt(0);if(o[v]!==255)throw new TypeError(n+" is ambiguous");o[v]=d}var b=a.length,y=a.charAt(0),M=Math.log(b)/Math.log(256),w=Math.log(256)/Math.log(b);function g(E){if((Array.isArray(E)||E instanceof Uint8Array)&&(E=hb.from(E)),!hb.isBuffer(E))throw new TypeError("Expected Buffer");if(E.length===0)return"";for(var R=0,T=0,N=0,P=E.length;N!==P&&E[N]===0;)N++,R++;for(var L=(P-N)*w+1>>>0,D=new Uint8Array(L);N!==P;){for(var Z=E[N],W=0,Q=L-1;(Z!==0||W<T)&&Q!==-1;Q--,W++)Z+=256*D[Q]>>>0,D[Q]=Z%b>>>0,Z=Z/b>>>0;if(Z!==0)throw new Error("Non-zero carry");T=W,N++}for(var K=L-T;K!==L&&D[K]===0;)K++;for(var z=y.repeat(R);K<L;++K)z+=a.charAt(D[K]);return z}function _(E){if(typeof E!="string")throw new TypeError("Expected String");if(E.length===0)return hb.alloc(0);for(var R=0,T=0,N=0;E[R]===y;)T++,R++;for(var P=(E.length-R)*M+1>>>0,L=new Uint8Array(P);R<E.length;){var D=E.charCodeAt(R);if(D>255)return;var Z=o[D];if(Z===255)return;for(var W=0,Q=P-1;(Z!==0||W<N)&&Q!==-1;Q--,W++)Z+=b*L[Q]>>>0,L[Q]=Z%256>>>0,Z=Z/256>>>0;if(Z!==0)throw new Error("Non-zero carry");N=W,R++}for(var K=P-N;K!==P&&L[K]===0;)K++;var z=hb.allocUnsafe(T+(P-K));z.fill(0,0,T);for(var X=T;K!==P;)z[X++]=L[K++];return z}function x(E){var R=_(E);if(R)return R;throw new Error("Non-base"+b+" character")}return{encode:g,decodeUnsafe:_,decode:x}}sW.exports=_de});var uW=St((Uxe,hW)=>{var Fxe=Ae(Be());Ie();Re();var xde=fW(),Sde="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";hW.exports=xde(Sde)});var dW=St((Vxe,lW)=>{var Jxe=Ae(Be());Ie();Re();var Hr={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 zo(a,o){if(!a)throw new Error(o)}function Fr(a,o,f){if(zo(o instanceof Uint8Array,`Expected ${a} to be an Uint8Array`),f!==void 0)if(Array.isArray(f)){let d=f.join(", "),n=`Expected ${a} to be an Uint8Array with length [${d}]`;zo(f.includes(o.length),n)}else{let d=`Expected ${a} to be an Uint8Array with length ${f}`;zo(o.length===f,d)}}function Wu(a){zo(Td(a)==="Boolean","Expected compressed to be a Boolean")}function As(a=f=>new Uint8Array(f),o){return typeof a=="function"&&(a=a(o)),Fr("output",a,o),a}function Td(a){return Object.prototype.toString.call(a).slice(8,-1)}lW.exports=a=>({contextRandomize(o){switch(zo(o===null||o instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),o!==null&&Fr("seed",o,32),a.contextRandomize(o)){case 1:throw new Error(Hr.CONTEXT_RANDOMIZE_UNKNOW)}},privateKeyVerify(o){return Fr("private key",o,32),a.privateKeyVerify(o)===0},privateKeyNegate(o){switch(Fr("private key",o,32),a.privateKeyNegate(o)){case 0:return o;case 1:throw new Error(Hr.IMPOSSIBLE_CASE)}},privateKeyTweakAdd(o,f){switch(Fr("private key",o,32),Fr("tweak",f,32),a.privateKeyTweakAdd(o,f)){case 0:return o;case 1:throw new Error(Hr.TWEAK_ADD)}},privateKeyTweakMul(o,f){switch(Fr("private key",o,32),Fr("tweak",f,32),a.privateKeyTweakMul(o,f)){case 0:return o;case 1:throw new Error(Hr.TWEAK_MUL)}},publicKeyVerify(o){return Fr("public key",o,[33,65]),a.publicKeyVerify(o)===0},publicKeyCreate(o,f=!0,d){switch(Fr("private key",o,32),Wu(f),d=As(d,f?33:65),a.publicKeyCreate(d,o)){case 0:return d;case 1:throw new Error(Hr.SECKEY_INVALID);case 2:throw new Error(Hr.PUBKEY_SERIALIZE)}},publicKeyConvert(o,f=!0,d){switch(Fr("public key",o,[33,65]),Wu(f),d=As(d,f?33:65),a.publicKeyConvert(d,o)){case 0:return d;case 1:throw new Error(Hr.PUBKEY_PARSE);case 2:throw new Error(Hr.PUBKEY_SERIALIZE)}},publicKeyNegate(o,f=!0,d){switch(Fr("public key",o,[33,65]),Wu(f),d=As(d,f?33:65),a.publicKeyNegate(d,o)){case 0:return d;case 1:throw new Error(Hr.PUBKEY_PARSE);case 2:throw new Error(Hr.IMPOSSIBLE_CASE);case 3:throw new Error(Hr.PUBKEY_SERIALIZE)}},publicKeyCombine(o,f=!0,d){zo(Array.isArray(o),"Expected public keys to be an Array"),zo(o.length>0,"Expected public keys array will have more than zero items");for(let n of o)Fr("public key",n,[33,65]);switch(Wu(f),d=As(d,f?33:65),a.publicKeyCombine(d,o)){case 0:return d;case 1:throw new Error(Hr.PUBKEY_PARSE);case 2:throw new Error(Hr.PUBKEY_COMBINE);case 3:throw new Error(Hr.PUBKEY_SERIALIZE)}},publicKeyTweakAdd(o,f,d=!0,n){switch(Fr("public key",o,[33,65]),Fr("tweak",f,32),Wu(d),n=As(n,d?33:65),a.publicKeyTweakAdd(n,o,f)){case 0:return n;case 1:throw new Error(Hr.PUBKEY_PARSE);case 2:throw new Error(Hr.TWEAK_ADD)}},publicKeyTweakMul(o,f,d=!0,n){switch(Fr("public key",o,[33,65]),Fr("tweak",f,32),Wu(d),n=As(n,d?33:65),a.publicKeyTweakMul(n,o,f)){case 0:return n;case 1:throw new Error(Hr.PUBKEY_PARSE);case 2:throw new Error(Hr.TWEAK_MUL)}},signatureNormalize(o){switch(Fr("signature",o,64),a.signatureNormalize(o)){case 0:return o;case 1:throw new Error(Hr.SIG_PARSE)}},signatureExport(o,f){Fr("signature",o,64),f=As(f,72);let d={output:f,outputlen:72};switch(a.signatureExport(d,o)){case 0:return f.slice(0,d.outputlen);case 1:throw new Error(Hr.SIG_PARSE);case 2:throw new Error(Hr.IMPOSSIBLE_CASE)}},signatureImport(o,f){switch(Fr("signature",o),f=As(f,64),a.signatureImport(f,o)){case 0:return f;case 1:throw new Error(Hr.SIG_PARSE);case 2:throw new Error(Hr.IMPOSSIBLE_CASE)}},ecdsaSign(o,f,d={},n){Fr("message",o,32),Fr("private key",f,32),zo(Td(d)==="Object","Expected options to be an Object"),d.data!==void 0&&Fr("options.data",d.data),d.noncefn!==void 0&&zo(Td(d.noncefn)==="Function","Expected options.noncefn to be a Function"),n=As(n,64);let v={signature:n,recid:null};switch(a.ecdsaSign(v,o,f,d.data,d.noncefn)){case 0:return v;case 1:throw new Error(Hr.SIGN);case 2:throw new Error(Hr.IMPOSSIBLE_CASE)}},ecdsaVerify(o,f,d){switch(Fr("signature",o,64),Fr("message",f,32),Fr("public key",d,[33,65]),a.ecdsaVerify(o,f,d)){case 0:return!0;case 3:return!1;case 1:throw new Error(Hr.SIG_PARSE);case 2:throw new Error(Hr.PUBKEY_PARSE)}},ecdsaRecover(o,f,d,n=!0,v){switch(Fr("signature",o,64),zo(Td(f)==="Number"&&f>=0&&f<=3,"Expected recovery id to be a Number within interval [0, 3]"),Fr("message",d,32),Wu(n),v=As(v,n?33:65),a.ecdsaRecover(v,o,f,d)){case 0:return v;case 1:throw new Error(Hr.SIG_PARSE);case 2:throw new Error(Hr.RECOVER);case 3:throw new Error(Hr.IMPOSSIBLE_CASE)}},ecdh(o,f,d={},n){switch(Fr("public key",o,[33,65]),Fr("private key",f,32),zo(Td(d)==="Object","Expected options to be an Object"),d.data!==void 0&&Fr("options.data",d.data),d.hashfn!==void 0?(zo(Td(d.hashfn)==="Function","Expected options.hashfn to be a Function"),d.xbuf!==void 0&&Fr("options.xbuf",d.xbuf,32),d.ybuf!==void 0&&Fr("options.ybuf",d.ybuf,32),Fr("output",n)):n=As(n,32),a.ecdh(n,o,f,d.data,d.hashfn,d.xbuf,d.ybuf)){case 0:return n;case 1:throw new Error(Hr.PUBKEY_PARSE);case 2:throw new Error(Hr.ECDH)}}})});var cW=St((Qxe,Ede)=>{Ede.exports={name:"elliptic",version:"6.6.1",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 vf=St((pW,e5)=>{var e5e=Ae(Be());Ie();Re();(function(a,o){"use strict";function f(p,e){if(!p)throw new Error(e||"Assertion failed")}function d(p,e){p.super_=e;var r=function(){};r.prototype=e.prototype,p.prototype=new r,p.prototype.constructor=p}function n(p,e,r){if(n.isBN(p))return p;this.negative=0,this.words=null,this.length=0,this.red=null,p!==null&&((e==="le"||e==="be")&&(r=e,e=10),this._init(p||0,e||10,r||"be"))}typeof a=="object"?a.exports=n:o.BN=n,n.BN=n,n.wordSize=26;var v;try{typeof window<"u"&&typeof window.Buffer<"u"?v=window.Buffer:v=I6().Buffer}catch{}n.isBN=function(e){return e instanceof n?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===n.wordSize&&Array.isArray(e.words)},n.max=function(e,r){return e.cmp(r)>0?e:r},n.min=function(e,r){return e.cmp(r)<0?e:r},n.prototype._init=function(e,r,i){if(typeof e=="number")return this._initNumber(e,r,i);if(typeof e=="object")return this._initArray(e,r,i);r==="hex"&&(r=16),f(r===(r|0)&&r>=2&&r<=36),e=e.toString().replace(/\s+/g,"");var s=0;e[0]==="-"&&(s++,this.negative=1),s<e.length&&(r===16?this._parseHex(e,s,i):(this._parseBase(e,r,s),i==="le"&&this._initArray(this.toArray(),r,i)))},n.prototype._initNumber=function(e,r,i){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):(f(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),i==="le"&&this._initArray(this.toArray(),r,i)},n.prototype._initArray=function(e,r,i){if(f(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 s=0;s<this.length;s++)this.words[s]=0;var h,c,m=0;if(i==="be")for(s=e.length-1,h=0;s>=0;s-=3)c=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[h]|=c<<m&67108863,this.words[h+1]=c>>>26-m&67108863,m+=24,m>=26&&(m-=26,h++);else if(i==="le")for(s=0,h=0;s<e.length;s+=3)c=e[s]|e[s+1]<<8|e[s+2]<<16,this.words[h]|=c<<m&67108863,this.words[h+1]=c>>>26-m&67108863,m+=24,m>=26&&(m-=26,h++);return this.strip()};function b(p,e){var r=p.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function y(p,e,r){var i=b(p,r);return r-1>=e&&(i|=b(p,r-1)<<4),i}n.prototype._parseHex=function(e,r,i){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var s=0;s<this.length;s++)this.words[s]=0;var h=0,c=0,m;if(i==="be")for(s=e.length-1;s>=r;s-=2)m=y(e,r,s)<<h,this.words[c]|=m&67108863,h>=18?(h-=18,c+=1,this.words[c]|=m>>>26):h+=8;else{var l=e.length-r;for(s=l%2===0?r+1:r;s<e.length;s+=2)m=y(e,r,s)<<h,this.words[c]|=m&67108863,h>=18?(h-=18,c+=1,this.words[c]|=m>>>26):h+=8}this.strip()};function M(p,e,r,i){for(var s=0,h=Math.min(p.length,r),c=e;c<h;c++){var m=p.charCodeAt(c)-48;s*=i,m>=49?s+=m-49+10:m>=17?s+=m-17+10:s+=m}return s}n.prototype._parseBase=function(e,r,i){this.words=[0],this.length=1;for(var s=0,h=1;h<=67108863;h*=r)s++;s--,h=h/r|0;for(var c=e.length-i,m=c%s,l=Math.min(c,c-m)+i,t=0,u=i;u<l;u+=s)t=M(e,u,u+s,r),this.imuln(h),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t);if(m!==0){var S=1;for(t=M(e,u,e.length,r),u=0;u<m;u++)S*=r;this.imuln(S),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t)}this.strip()},n.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},n.prototype.clone=function(){var e=new n(null);return this.copy(e),e},n.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.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"],g=[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];n.prototype.toString=function(e,r){e=e||10,r=r|0||1;var i;if(e===16||e==="hex"){i="";for(var s=0,h=0,c=0;c<this.length;c++){var m=this.words[c],l=((m<<s|h)&16777215).toString(16);h=m>>>24-s&16777215,s+=2,s>=26&&(s-=26,c--),h!==0||c!==this.length-1?i=w[6-l.length]+l+i:i=l+i}for(h!==0&&(i=h.toString(16)+i);i.length%r!==0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}if(e===(e|0)&&e>=2&&e<=36){var t=g[e],u=_[e];i="";var S=this.clone();for(S.negative=0;!S.isZero();){var B=S.modn(u).toString(e);S=S.idivn(u),S.isZero()?i=B+i:i=w[t-B.length]+B+i}for(this.isZero()&&(i="0"+i);i.length%r!==0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}f(!1,"Base should be between 2 and 36")},n.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&&f(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(e,r){return f(typeof v<"u"),this.toArrayLike(v,e,r)},n.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},n.prototype.toArrayLike=function(e,r,i){var s=this.byteLength(),h=i||Math.max(1,s);f(s<=h,"byte array longer than desired length"),f(h>0,"Requested array length <= 0"),this.strip();var c=r==="le",m=new e(h),l,t,u=this.clone();if(c){for(t=0;!u.isZero();t++)l=u.andln(255),u.iushrn(8),m[t]=l;for(;t<h;t++)m[t]=0}else{for(t=0;t<h-s;t++)m[t]=0;for(t=0;!u.isZero();t++)l=u.andln(255),u.iushrn(8),m[h-t-1]=l}return m},Math.clz32?n.prototype._countBits=function(e){return 32-Math.clz32(e)}:n.prototype._countBits=function(e){var r=e,i=0;return r>=4096&&(i+=13,r>>>=13),r>=64&&(i+=7,r>>>=7),r>=8&&(i+=4,r>>>=4),r>=2&&(i+=2,r>>>=2),i+r},n.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,i=0;return r&8191||(i+=13,r>>>=13),r&127||(i+=7,r>>>=7),r&15||(i+=4,r>>>=4),r&3||(i+=2,r>>>=2),r&1||i++,i},n.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return(this.length-1)*26+r};function x(p){for(var e=new Array(p.bitLength()),r=0;r<e.length;r++){var i=r/26|0,s=r%26;e[r]=(p.words[i]&1<<s)>>>s}return e}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var i=this._zeroBits(this.words[r]);if(e+=i,i!==26)break}return e},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},n.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.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()},n.prototype.ior=function(e){return f((this.negative|e.negative)===0),this.iuor(e)},n.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},n.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},n.prototype.iuand=function(e){var r;this.length>e.length?r=e:r=this;for(var i=0;i<r.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=r.length,this.strip()},n.prototype.iand=function(e){return f((this.negative|e.negative)===0),this.iuand(e)},n.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},n.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},n.prototype.iuxor=function(e){var r,i;this.length>e.length?(r=this,i=e):(r=e,i=this);for(var s=0;s<i.length;s++)this.words[s]=r.words[s]^i.words[s];if(this!==r)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=r.length,this.strip()},n.prototype.ixor=function(e){return f((this.negative|e.negative)===0),this.iuxor(e)},n.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},n.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},n.prototype.inotn=function(e){f(typeof e=="number"&&e>=0);var r=Math.ceil(e/26)|0,i=e%26;this._expand(r),i>0&&r--;for(var s=0;s<r;s++)this.words[s]=~this.words[s]&67108863;return i>0&&(this.words[s]=~this.words[s]&67108863>>26-i),this.strip()},n.prototype.notn=function(e){return this.clone().inotn(e)},n.prototype.setn=function(e,r){f(typeof e=="number"&&e>=0);var i=e/26|0,s=e%26;return this._expand(i+1),r?this.words[i]=this.words[i]|1<<s:this.words[i]=this.words[i]&~(1<<s),this.strip()},n.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 i,s;this.length>e.length?(i=this,s=e):(i=e,s=this);for(var h=0,c=0;c<s.length;c++)r=(i.words[c]|0)+(s.words[c]|0)+h,this.words[c]=r&67108863,h=r>>>26;for(;h!==0&&c<i.length;c++)r=(i.words[c]|0)+h,this.words[c]=r&67108863,h=r>>>26;if(this.length=i.length,h!==0)this.words[this.length]=h,this.length++;else if(i!==this)for(;c<i.length;c++)this.words[c]=i.words[c];return this},n.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)},n.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 i=this.cmp(e);if(i===0)return this.negative=0,this.length=1,this.words[0]=0,this;var s,h;i>0?(s=this,h=e):(s=e,h=this);for(var c=0,m=0;m<h.length;m++)r=(s.words[m]|0)-(h.words[m]|0)+c,c=r>>26,this.words[m]=r&67108863;for(;c!==0&&m<s.length;m++)r=(s.words[m]|0)+c,c=r>>26,this.words[m]=r&67108863;if(c===0&&m<s.length&&s!==this)for(;m<s.length;m++)this.words[m]=s.words[m];return this.length=Math.max(this.length,m),s!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(e){return this.clone().isub(e)};function E(p,e,r){r.negative=e.negative^p.negative;var i=p.length+e.length|0;r.length=i,i=i-1|0;var s=p.words[0]|0,h=e.words[0]|0,c=s*h,m=c&67108863,l=c/67108864|0;r.words[0]=m;for(var t=1;t<i;t++){for(var u=l>>>26,S=l&67108863,B=Math.min(t,e.length-1),k=Math.max(0,t-p.length+1);k<=B;k++){var q=t-k|0;s=p.words[q]|0,h=e.words[k]|0,c=s*h+S,u+=c/67108864|0,S=c&67108863}r.words[t]=S|0,l=u|0}return l!==0?r.words[t]=l|0:r.length--,r.strip()}var R=function(e,r,i){var s=e.words,h=r.words,c=i.words,m=0,l,t,u,S=s[0]|0,B=S&8191,k=S>>>13,q=s[1]|0,F=q&8191,ee=q>>>13,te=s[2]|0,O=te&8191,U=te>>>13,oe=s[3]|0,Y=oe&8191,j=oe>>>13,V=s[4]|0,G=V&8191,ie=V>>>13,me=s[5]|0,re=me&8191,ae=me>>>13,ye=s[6]|0,fe=ye&8191,he=ye>>>13,nt=s[7]|0,ce=nt&8191,be=nt>>>13,ut=s[8]|0,$=ut&8191,A=ut>>>13,I=s[9]|0,C=I&8191,H=I>>>13,ne=h[0]|0,J=ne&8191,de=ne>>>13,st=h[1]|0,le=st&8191,ve=st>>>13,ot=h[2]|0,we=ot&8191,Le=ot>>>13,bt=h[3]|0,Me=bt&8191,Ne=bt>>>13,mt=h[4]|0,xe=mt&8191,Ce=mt>>>13,vt=h[5]|0,se=vt&8191,ue=vt>>>13,ht=h[6]|0,pe=ht&8191,Se=ht>>>13,dt=h[7]|0,ge=dt&8191,De=dt>>>13,ct=h[8]|0,_e=ct&8191,Oe=ct>>>13,gt=h[9]|0,Ee=gt&8191,Pe=gt>>>13;i.negative=e.negative^r.negative,i.length=19,l=Math.imul(B,J),t=Math.imul(B,de),t=t+Math.imul(k,J)|0,u=Math.imul(k,de);var pt=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+(pt>>>26)|0,pt&=67108863,l=Math.imul(F,J),t=Math.imul(F,de),t=t+Math.imul(ee,J)|0,u=Math.imul(ee,de),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=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+(lt>>>26)|0,lt&=67108863,l=Math.imul(O,J),t=Math.imul(O,de),t=t+Math.imul(U,J)|0,u=Math.imul(U,de),l=l+Math.imul(F,le)|0,t=t+Math.imul(F,ve)|0,t=t+Math.imul(ee,le)|0,u=u+Math.imul(ee,ve)|0,l=l+Math.imul(B,we)|0,t=t+Math.imul(B,Le)|0,t=t+Math.imul(k,we)|0,u=u+Math.imul(k,Le)|0;var yt=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+(yt>>>26)|0,yt&=67108863,l=Math.imul(Y,J),t=Math.imul(Y,de),t=t+Math.imul(j,J)|0,u=Math.imul(j,de),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(F,we)|0,t=t+Math.imul(F,Le)|0,t=t+Math.imul(ee,we)|0,u=u+Math.imul(ee,Le)|0,l=l+Math.imul(B,Me)|0,t=t+Math.imul(B,Ne)|0,t=t+Math.imul(k,Me)|0,u=u+Math.imul(k,Ne)|0;var xt=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+(xt>>>26)|0,xt&=67108863,l=Math.imul(G,J),t=Math.imul(G,de),t=t+Math.imul(ie,J)|0,u=Math.imul(ie,de),l=l+Math.imul(Y,le)|0,t=t+Math.imul(Y,ve)|0,t=t+Math.imul(j,le)|0,u=u+Math.imul(j,ve)|0,l=l+Math.imul(O,we)|0,t=t+Math.imul(O,Le)|0,t=t+Math.imul(U,we)|0,u=u+Math.imul(U,Le)|0,l=l+Math.imul(F,Me)|0,t=t+Math.imul(F,Ne)|0,t=t+Math.imul(ee,Me)|0,u=u+Math.imul(ee,Ne)|0,l=l+Math.imul(B,xe)|0,t=t+Math.imul(B,Ce)|0,t=t+Math.imul(k,xe)|0,u=u+Math.imul(k,Ce)|0;var Mt=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,l=Math.imul(re,J),t=Math.imul(re,de),t=t+Math.imul(ae,J)|0,u=Math.imul(ae,de),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(Y,we)|0,t=t+Math.imul(Y,Le)|0,t=t+Math.imul(j,we)|0,u=u+Math.imul(j,Le)|0,l=l+Math.imul(O,Me)|0,t=t+Math.imul(O,Ne)|0,t=t+Math.imul(U,Me)|0,u=u+Math.imul(U,Ne)|0,l=l+Math.imul(F,xe)|0,t=t+Math.imul(F,Ce)|0,t=t+Math.imul(ee,xe)|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=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+(Et>>>26)|0,Et&=67108863,l=Math.imul(fe,J),t=Math.imul(fe,de),t=t+Math.imul(he,J)|0,u=Math.imul(he,de),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,we)|0,t=t+Math.imul(G,Le)|0,t=t+Math.imul(ie,we)|0,u=u+Math.imul(ie,Le)|0,l=l+Math.imul(Y,Me)|0,t=t+Math.imul(Y,Ne)|0,t=t+Math.imul(j,Me)|0,u=u+Math.imul(j,Ne)|0,l=l+Math.imul(O,xe)|0,t=t+Math.imul(O,Ce)|0,t=t+Math.imul(U,xe)|0,u=u+Math.imul(U,Ce)|0,l=l+Math.imul(F,se)|0,t=t+Math.imul(F,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,Se)|0,t=t+Math.imul(k,pe)|0,u=u+Math.imul(k,Se)|0;var At=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+(At>>>26)|0,At&=67108863,l=Math.imul(ce,J),t=Math.imul(ce,de),t=t+Math.imul(be,J)|0,u=Math.imul(be,de),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,we)|0,t=t+Math.imul(re,Le)|0,t=t+Math.imul(ae,we)|0,u=u+Math.imul(ae,Le)|0,l=l+Math.imul(G,Me)|0,t=t+Math.imul(G,Ne)|0,t=t+Math.imul(ie,Me)|0,u=u+Math.imul(ie,Ne)|0,l=l+Math.imul(Y,xe)|0,t=t+Math.imul(Y,Ce)|0,t=t+Math.imul(j,xe)|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(F,pe)|0,t=t+Math.imul(F,Se)|0,t=t+Math.imul(ee,pe)|0,u=u+Math.imul(ee,Se)|0,l=l+Math.imul(B,ge)|0,t=t+Math.imul(B,De)|0,t=t+Math.imul(k,ge)|0,u=u+Math.imul(k,De)|0;var Bt=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,l=Math.imul($,J),t=Math.imul($,de),t=t+Math.imul(A,J)|0,u=Math.imul(A,de),l=l+Math.imul(ce,le)|0,t=t+Math.imul(ce,ve)|0,t=t+Math.imul(be,le)|0,u=u+Math.imul(be,ve)|0,l=l+Math.imul(fe,we)|0,t=t+Math.imul(fe,Le)|0,t=t+Math.imul(he,we)|0,u=u+Math.imul(he,Le)|0,l=l+Math.imul(re,Me)|0,t=t+Math.imul(re,Ne)|0,t=t+Math.imul(ae,Me)|0,u=u+Math.imul(ae,Ne)|0,l=l+Math.imul(G,xe)|0,t=t+Math.imul(G,Ce)|0,t=t+Math.imul(ie,xe)|0,u=u+Math.imul(ie,Ce)|0,l=l+Math.imul(Y,se)|0,t=t+Math.imul(Y,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,Se)|0,t=t+Math.imul(U,pe)|0,u=u+Math.imul(U,Se)|0,l=l+Math.imul(F,ge)|0,t=t+Math.imul(F,De)|0,t=t+Math.imul(ee,ge)|0,u=u+Math.imul(ee,De)|0,l=l+Math.imul(B,_e)|0,t=t+Math.imul(B,Oe)|0,t=t+Math.imul(k,_e)|0,u=u+Math.imul(k,Oe)|0;var It=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+(It>>>26)|0,It&=67108863,l=Math.imul(C,J),t=Math.imul(C,de),t=t+Math.imul(H,J)|0,u=Math.imul(H,de),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(ce,we)|0,t=t+Math.imul(ce,Le)|0,t=t+Math.imul(be,we)|0,u=u+Math.imul(be,Le)|0,l=l+Math.imul(fe,Me)|0,t=t+Math.imul(fe,Ne)|0,t=t+Math.imul(he,Me)|0,u=u+Math.imul(he,Ne)|0,l=l+Math.imul(re,xe)|0,t=t+Math.imul(re,Ce)|0,t=t+Math.imul(ae,xe)|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(Y,pe)|0,t=t+Math.imul(Y,Se)|0,t=t+Math.imul(j,pe)|0,u=u+Math.imul(j,Se)|0,l=l+Math.imul(O,ge)|0,t=t+Math.imul(O,De)|0,t=t+Math.imul(U,ge)|0,u=u+Math.imul(U,De)|0,l=l+Math.imul(F,_e)|0,t=t+Math.imul(F,Oe)|0,t=t+Math.imul(ee,_e)|0,u=u+Math.imul(ee,Oe)|0,l=l+Math.imul(B,Ee)|0,t=t+Math.imul(B,Pe)|0,t=t+Math.imul(k,Ee)|0,u=u+Math.imul(k,Pe)|0;var Tt=(m+l|0)+((t&8191)<<13)|0;m=(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($,we)|0,t=t+Math.imul($,Le)|0,t=t+Math.imul(A,we)|0,u=u+Math.imul(A,Le)|0,l=l+Math.imul(ce,Me)|0,t=t+Math.imul(ce,Ne)|0,t=t+Math.imul(be,Me)|0,u=u+Math.imul(be,Ne)|0,l=l+Math.imul(fe,xe)|0,t=t+Math.imul(fe,Ce)|0,t=t+Math.imul(he,xe)|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,Se)|0,t=t+Math.imul(ie,pe)|0,u=u+Math.imul(ie,Se)|0,l=l+Math.imul(Y,ge)|0,t=t+Math.imul(Y,De)|0,t=t+Math.imul(j,ge)|0,u=u+Math.imul(j,De)|0,l=l+Math.imul(O,_e)|0,t=t+Math.imul(O,Oe)|0,t=t+Math.imul(U,_e)|0,u=u+Math.imul(U,Oe)|0,l=l+Math.imul(F,Ee)|0,t=t+Math.imul(F,Pe)|0,t=t+Math.imul(ee,Ee)|0,u=u+Math.imul(ee,Pe)|0;var kt=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+(kt>>>26)|0,kt&=67108863,l=Math.imul(C,we),t=Math.imul(C,Le),t=t+Math.imul(H,we)|0,u=Math.imul(H,Le),l=l+Math.imul($,Me)|0,t=t+Math.imul($,Ne)|0,t=t+Math.imul(A,Me)|0,u=u+Math.imul(A,Ne)|0,l=l+Math.imul(ce,xe)|0,t=t+Math.imul(ce,Ce)|0,t=t+Math.imul(be,xe)|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,Se)|0,t=t+Math.imul(ae,pe)|0,u=u+Math.imul(ae,Se)|0,l=l+Math.imul(G,ge)|0,t=t+Math.imul(G,De)|0,t=t+Math.imul(ie,ge)|0,u=u+Math.imul(ie,De)|0,l=l+Math.imul(Y,_e)|0,t=t+Math.imul(Y,Oe)|0,t=t+Math.imul(j,_e)|0,u=u+Math.imul(j,Oe)|0,l=l+Math.imul(O,Ee)|0,t=t+Math.imul(O,Pe)|0,t=t+Math.imul(U,Ee)|0,u=u+Math.imul(U,Pe)|0;var $t=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+($t>>>26)|0,$t&=67108863,l=Math.imul(C,Me),t=Math.imul(C,Ne),t=t+Math.imul(H,Me)|0,u=Math.imul(H,Ne),l=l+Math.imul($,xe)|0,t=t+Math.imul($,Ce)|0,t=t+Math.imul(A,xe)|0,u=u+Math.imul(A,Ce)|0,l=l+Math.imul(ce,se)|0,t=t+Math.imul(ce,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,Se)|0,t=t+Math.imul(he,pe)|0,u=u+Math.imul(he,Se)|0,l=l+Math.imul(re,ge)|0,t=t+Math.imul(re,De)|0,t=t+Math.imul(ae,ge)|0,u=u+Math.imul(ae,De)|0,l=l+Math.imul(G,_e)|0,t=t+Math.imul(G,Oe)|0,t=t+Math.imul(ie,_e)|0,u=u+Math.imul(ie,Oe)|0,l=l+Math.imul(Y,Ee)|0,t=t+Math.imul(Y,Pe)|0,t=t+Math.imul(j,Ee)|0,u=u+Math.imul(j,Pe)|0;var Pt=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,l=Math.imul(C,xe),t=Math.imul(C,Ce),t=t+Math.imul(H,xe)|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(ce,pe)|0,t=t+Math.imul(ce,Se)|0,t=t+Math.imul(be,pe)|0,u=u+Math.imul(be,Se)|0,l=l+Math.imul(fe,ge)|0,t=t+Math.imul(fe,De)|0,t=t+Math.imul(he,ge)|0,u=u+Math.imul(he,De)|0,l=l+Math.imul(re,_e)|0,t=t+Math.imul(re,Oe)|0,t=t+Math.imul(ae,_e)|0,u=u+Math.imul(ae,Oe)|0,l=l+Math.imul(G,Ee)|0,t=t+Math.imul(G,Pe)|0,t=t+Math.imul(ie,Ee)|0,u=u+Math.imul(ie,Pe)|0;var Nt=(m+l|0)+((t&8191)<<13)|0;m=(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($,Se)|0,t=t+Math.imul(A,pe)|0,u=u+Math.imul(A,Se)|0,l=l+Math.imul(ce,ge)|0,t=t+Math.imul(ce,De)|0,t=t+Math.imul(be,ge)|0,u=u+Math.imul(be,De)|0,l=l+Math.imul(fe,_e)|0,t=t+Math.imul(fe,Oe)|0,t=t+Math.imul(he,_e)|0,u=u+Math.imul(he,Oe)|0,l=l+Math.imul(re,Ee)|0,t=t+Math.imul(re,Pe)|0,t=t+Math.imul(ae,Ee)|0,u=u+Math.imul(ae,Pe)|0;var Ct=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,l=Math.imul(C,pe),t=Math.imul(C,Se),t=t+Math.imul(H,pe)|0,u=Math.imul(H,Se),l=l+Math.imul($,ge)|0,t=t+Math.imul($,De)|0,t=t+Math.imul(A,ge)|0,u=u+Math.imul(A,De)|0,l=l+Math.imul(ce,_e)|0,t=t+Math.imul(ce,Oe)|0,t=t+Math.imul(be,_e)|0,u=u+Math.imul(be,Oe)|0,l=l+Math.imul(fe,Ee)|0,t=t+Math.imul(fe,Pe)|0,t=t+Math.imul(he,Ee)|0,u=u+Math.imul(he,Pe)|0;var Lt=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,l=Math.imul(C,ge),t=Math.imul(C,De),t=t+Math.imul(H,ge)|0,u=Math.imul(H,De),l=l+Math.imul($,_e)|0,t=t+Math.imul($,Oe)|0,t=t+Math.imul(A,_e)|0,u=u+Math.imul(A,Oe)|0,l=l+Math.imul(ce,Ee)|0,t=t+Math.imul(ce,Pe)|0,t=t+Math.imul(be,Ee)|0,u=u+Math.imul(be,Pe)|0;var Dt=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,l=Math.imul(C,_e),t=Math.imul(C,Oe),t=t+Math.imul(H,_e)|0,u=Math.imul(H,Oe),l=l+Math.imul($,Ee)|0,t=t+Math.imul($,Pe)|0,t=t+Math.imul(A,Ee)|0,u=u+Math.imul(A,Pe)|0;var qt=(m+l|0)+((t&8191)<<13)|0;m=(u+(t>>>13)|0)+(qt>>>26)|0,qt&=67108863,l=Math.imul(C,Ee),t=Math.imul(C,Pe),t=t+Math.imul(H,Ee)|0,u=Math.imul(H,Pe);var Ut=(m+l|0)+((t&8191)<<13)|0;return m=(u+(t>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,c[0]=pt,c[1]=lt,c[2]=yt,c[3]=xt,c[4]=Mt,c[5]=Et,c[6]=At,c[7]=Bt,c[8]=It,c[9]=Tt,c[10]=kt,c[11]=$t,c[12]=Pt,c[13]=Nt,c[14]=Ct,c[15]=Lt,c[16]=Dt,c[17]=qt,c[18]=Ut,m!==0&&(c[19]=m,i.length++),i};Math.imul||(R=E);function T(p,e,r){r.negative=e.negative^p.negative,r.length=p.length+e.length;for(var i=0,s=0,h=0;h<r.length-1;h++){var c=s;s=0;for(var m=i&67108863,l=Math.min(h,e.length-1),t=Math.max(0,h-p.length+1);t<=l;t++){var u=h-t,S=p.words[u]|0,B=e.words[t]|0,k=S*B,q=k&67108863;c=c+(k/67108864|0)|0,q=q+m|0,m=q&67108863,c=c+(q>>>26)|0,s+=c>>>26,c&=67108863}r.words[h]=m,i=c,c=s}return i!==0?r.words[h]=i:r.length--,r.strip()}function N(p,e,r){var i=new P;return i.mulp(p,e,r)}n.prototype.mulTo=function(e,r){var i,s=this.length+e.length;return this.length===10&&e.length===10?i=R(this,e,r):s<63?i=E(this,e,r):s<1024?i=T(this,e,r):i=N(this,e,r),i};function P(p,e){this.x=p,this.y=e}P.prototype.makeRBT=function(e){for(var r=new Array(e),i=n.prototype._countBits(e)-1,s=0;s<e;s++)r[s]=this.revBin(s,i,e);return r},P.prototype.revBin=function(e,r,i){if(e===0||e===i-1)return e;for(var s=0,h=0;h<r;h++)s|=(e&1)<<r-h-1,e>>=1;return s},P.prototype.permute=function(e,r,i,s,h,c){for(var m=0;m<c;m++)s[m]=r[e[m]],h[m]=i[e[m]]},P.prototype.transform=function(e,r,i,s,h,c){this.permute(c,e,r,i,s,h);for(var m=1;m<h;m<<=1)for(var l=m<<1,t=Math.cos(2*Math.PI/l),u=Math.sin(2*Math.PI/l),S=0;S<h;S+=l)for(var B=t,k=u,q=0;q<m;q++){var F=i[S+q],ee=s[S+q],te=i[S+q+m],O=s[S+q+m],U=B*te-k*O;O=B*O+k*te,te=U,i[S+q]=F+te,s[S+q]=ee+O,i[S+q+m]=F-te,s[S+q+m]=ee-O,q!==l&&(U=t*B-u*k,k=t*k+u*B,B=U)}},P.prototype.guessLen13b=function(e,r){var i=Math.max(r,e)|1,s=i&1,h=0;for(i=i/2|0;i;i=i>>>1)h++;return 1<<h+1+s},P.prototype.conjugate=function(e,r,i){if(!(i<=1))for(var s=0;s<i/2;s++){var h=e[s];e[s]=e[i-s-1],e[i-s-1]=h,h=r[s],r[s]=-r[i-s-1],r[i-s-1]=-h}},P.prototype.normalize13b=function(e,r){for(var i=0,s=0;s<r/2;s++){var h=Math.round(e[2*s+1]/r)*8192+Math.round(e[2*s]/r)+i;e[s]=h&67108863,h<67108864?i=0:i=h/67108864|0}return e},P.prototype.convert13b=function(e,r,i,s){for(var h=0,c=0;c<r;c++)h=h+(e[c]|0),i[2*c]=h&8191,h=h>>>13,i[2*c+1]=h&8191,h=h>>>13;for(c=2*r;c<s;++c)i[c]=0;f(h===0),f((h&-8192)===0)},P.prototype.stub=function(e){for(var r=new Array(e),i=0;i<e;i++)r[i]=0;return r},P.prototype.mulp=function(e,r,i){var s=2*this.guessLen13b(e.length,r.length),h=this.makeRBT(s),c=this.stub(s),m=new Array(s),l=new Array(s),t=new Array(s),u=new Array(s),S=new Array(s),B=new Array(s),k=i.words;k.length=s,this.convert13b(e.words,e.length,m,s),this.convert13b(r.words,r.length,u,s),this.transform(m,c,l,t,s,h),this.transform(u,c,S,B,s,h);for(var q=0;q<s;q++){var F=l[q]*S[q]-t[q]*B[q];t[q]=l[q]*B[q]+t[q]*S[q],l[q]=F}return this.conjugate(l,t,s),this.transform(l,t,k,c,s,h),this.conjugate(k,c,s),this.normalize13b(k,s),i.negative=e.negative^r.negative,i.length=e.length+r.length,i.strip()},n.prototype.mul=function(e){var r=new n(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},n.prototype.mulf=function(e){var r=new n(null);return r.words=new Array(this.length+e.length),N(this,e,r)},n.prototype.imul=function(e){return this.clone().mulTo(e,this)},n.prototype.imuln=function(e){f(typeof e=="number"),f(e<67108864);for(var r=0,i=0;i<this.length;i++){var s=(this.words[i]|0)*e,h=(s&67108863)+(r&67108863);r>>=26,r+=s/67108864|0,r+=h>>>26,this.words[i]=h&67108863}return r!==0&&(this.words[i]=r,this.length++),this.length=e===0?1:this.length,this},n.prototype.muln=function(e){return this.clone().imuln(e)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(e){var r=x(e);if(r.length===0)return new n(1);for(var i=this,s=0;s<r.length&&r[s]===0;s++,i=i.sqr());if(++s<r.length)for(var h=i.sqr();s<r.length;s++,h=h.sqr())r[s]!==0&&(i=i.mul(h));return i},n.prototype.iushln=function(e){f(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26,s=67108863>>>26-r<<26-r,h;if(r!==0){var c=0;for(h=0;h<this.length;h++){var m=this.words[h]&s,l=(this.words[h]|0)-m<<r;this.words[h]=l|c,c=m>>>26-r}c&&(this.words[h]=c,this.length++)}if(i!==0){for(h=this.length-1;h>=0;h--)this.words[h+i]=this.words[h];for(h=0;h<i;h++)this.words[h]=0;this.length+=i}return this.strip()},n.prototype.ishln=function(e){return f(this.negative===0),this.iushln(e)},n.prototype.iushrn=function(e,r,i){f(typeof e=="number"&&e>=0);var s;r?s=(r-r%26)/26:s=0;var h=e%26,c=Math.min((e-h)/26,this.length),m=67108863^67108863>>>h<<h,l=i;if(s-=c,s=Math.max(0,s),l){for(var t=0;t<c;t++)l.words[t]=this.words[t];l.length=c}if(c!==0)if(this.length>c)for(this.length-=c,t=0;t<this.length;t++)this.words[t]=this.words[t+c];else this.words[0]=0,this.length=1;var u=0;for(t=this.length-1;t>=0&&(u!==0||t>=s);t--){var S=this.words[t]|0;this.words[t]=u<<26-h|S>>>h,u=S&m}return l&&u!==0&&(l.words[l.length++]=u),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(e,r,i){return f(this.negative===0),this.iushrn(e,r,i)},n.prototype.shln=function(e){return this.clone().ishln(e)},n.prototype.ushln=function(e){return this.clone().iushln(e)},n.prototype.shrn=function(e){return this.clone().ishrn(e)},n.prototype.ushrn=function(e){return this.clone().iushrn(e)},n.prototype.testn=function(e){f(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26,s=1<<r;if(this.length<=i)return!1;var h=this.words[i];return!!(h&s)},n.prototype.imaskn=function(e){f(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26;if(f(this.negative===0,"imaskn works only with positive numbers"),this.length<=i)return this;if(r!==0&&i++,this.length=Math.min(i,this.length),r!==0){var s=67108863^67108863>>>r<<r;this.words[this.length-1]&=s}return this.strip()},n.prototype.maskn=function(e){return this.clone().imaskn(e)},n.prototype.iaddn=function(e){return f(typeof e=="number"),f(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)},n.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},n.prototype.isubn=function(e){if(f(typeof e=="number"),f(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()},n.prototype.addn=function(e){return this.clone().iaddn(e)},n.prototype.subn=function(e){return this.clone().isubn(e)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(e,r,i){var s=e.length+i,h;this._expand(s);var c,m=0;for(h=0;h<e.length;h++){c=(this.words[h+i]|0)+m;var l=(e.words[h]|0)*r;c-=l&67108863,m=(c>>26)-(l/67108864|0),this.words[h+i]=c&67108863}for(;h<this.length-i;h++)c=(this.words[h+i]|0)+m,m=c>>26,this.words[h+i]=c&67108863;if(m===0)return this.strip();for(f(m===-1),m=0,h=0;h<this.length;h++)c=-(this.words[h]|0)+m,m=c>>26,this.words[h]=c&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(e,r){var i=this.length-e.length,s=this.clone(),h=e,c=h.words[h.length-1]|0,m=this._countBits(c);i=26-m,i!==0&&(h=h.ushln(i),s.iushln(i),c=h.words[h.length-1]|0);var l=s.length-h.length,t;if(r!=="mod"){t=new n(null),t.length=l+1,t.words=new Array(t.length);for(var u=0;u<t.length;u++)t.words[u]=0}var S=s.clone()._ishlnsubmul(h,1,l);S.negative===0&&(s=S,t&&(t.words[l]=1));for(var B=l-1;B>=0;B--){var k=(s.words[h.length+B]|0)*67108864+(s.words[h.length+B-1]|0);for(k=Math.min(k/c|0,67108863),s._ishlnsubmul(h,k,B);s.negative!==0;)k--,s.negative=0,s._ishlnsubmul(h,1,B),s.isZero()||(s.negative^=1);t&&(t.words[B]=k)}return t&&t.strip(),s.strip(),r!=="div"&&i!==0&&s.iushrn(i),{div:t||null,mod:s}},n.prototype.divmod=function(e,r,i){if(f(!e.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var s,h,c;return this.negative!==0&&e.negative===0?(c=this.neg().divmod(e,r),r!=="mod"&&(s=c.div.neg()),r!=="div"&&(h=c.mod.neg(),i&&h.negative!==0&&h.iadd(e)),{div:s,mod:h}):this.negative===0&&e.negative!==0?(c=this.divmod(e.neg(),r),r!=="mod"&&(s=c.div.neg()),{div:s,mod:c.mod}):this.negative&e.negative?(c=this.neg().divmod(e.neg(),r),r!=="div"&&(h=c.mod.neg(),i&&h.negative!==0&&h.isub(e)),{div:c.div,mod:h}):e.length>this.length||this.cmp(e)<0?{div:new n(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new n(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new n(this.modn(e.words[0]))}:this._wordDiv(e,r)},n.prototype.div=function(e){return this.divmod(e,"div",!1).div},n.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},n.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},n.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var i=r.div.negative!==0?r.mod.isub(e):r.mod,s=e.ushrn(1),h=e.andln(1),c=i.cmp(s);return c<0||h===1&&c===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},n.prototype.modn=function(e){f(e<=67108863);for(var r=(1<<26)%e,i=0,s=this.length-1;s>=0;s--)i=(r*i+(this.words[s]|0))%e;return i},n.prototype.idivn=function(e){f(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var s=(this.words[i]|0)+r*67108864;this.words[i]=s/e|0,r=s%e}return this.strip()},n.prototype.divn=function(e){return this.clone().idivn(e)},n.prototype.egcd=function(e){f(e.negative===0),f(!e.isZero());var r=this,i=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var s=new n(1),h=new n(0),c=new n(0),m=new n(1),l=0;r.isEven()&&i.isEven();)r.iushrn(1),i.iushrn(1),++l;for(var t=i.clone(),u=r.clone();!r.isZero();){for(var S=0,B=1;!(r.words[0]&B)&&S<26;++S,B<<=1);if(S>0)for(r.iushrn(S);S-- >0;)(s.isOdd()||h.isOdd())&&(s.iadd(t),h.isub(u)),s.iushrn(1),h.iushrn(1);for(var k=0,q=1;!(i.words[0]&q)&&k<26;++k,q<<=1);if(k>0)for(i.iushrn(k);k-- >0;)(c.isOdd()||m.isOdd())&&(c.iadd(t),m.isub(u)),c.iushrn(1),m.iushrn(1);r.cmp(i)>=0?(r.isub(i),s.isub(c),h.isub(m)):(i.isub(r),c.isub(s),m.isub(h))}return{a:c,b:m,gcd:i.iushln(l)}},n.prototype._invmp=function(e){f(e.negative===0),f(!e.isZero());var r=this,i=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var s=new n(1),h=new n(0),c=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var m=0,l=1;!(r.words[0]&l)&&m<26;++m,l<<=1);if(m>0)for(r.iushrn(m);m-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var t=0,u=1;!(i.words[0]&u)&&t<26;++t,u<<=1);if(t>0)for(i.iushrn(t);t-- >0;)h.isOdd()&&h.iadd(c),h.iushrn(1);r.cmp(i)>=0?(r.isub(i),s.isub(h)):(i.isub(r),h.isub(s))}var S;return r.cmpn(1)===0?S=s:S=h,S.cmpn(0)<0&&S.iadd(e),S},n.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),i=e.clone();r.negative=0,i.negative=0;for(var s=0;r.isEven()&&i.isEven();s++)r.iushrn(1),i.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;i.isEven();)i.iushrn(1);var h=r.cmp(i);if(h<0){var c=r;r=i,i=c}else if(h===0||i.cmpn(1)===0)break;r.isub(i)}while(!0);return i.iushln(s)},n.prototype.invm=function(e){return this.egcd(e).a.umod(e)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(e){return this.words[0]&e},n.prototype.bincn=function(e){f(typeof e=="number");var r=e%26,i=(e-r)/26,s=1<<r;if(this.length<=i)return this._expand(i+1),this.words[i]|=s,this;for(var h=s,c=i;h!==0&&c<this.length;c++){var m=this.words[c]|0;m+=h,h=m>>>26,m&=67108863,this.words[c]=m}return h!==0&&(this.words[c]=h,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.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 i;if(this.length>1)i=1;else{r&&(e=-e),f(e<=67108863,"Number is too big");var s=this.words[0]|0;i=s===e?0:s<e?-1:1}return this.negative!==0?-i|0:i},n.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},n.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,i=this.length-1;i>=0;i--){var s=this.words[i]|0,h=e.words[i]|0;if(s!==h){s<h?r=-1:s>h&&(r=1);break}}return r},n.prototype.gtn=function(e){return this.cmpn(e)===1},n.prototype.gt=function(e){return this.cmp(e)===1},n.prototype.gten=function(e){return this.cmpn(e)>=0},n.prototype.gte=function(e){return this.cmp(e)>=0},n.prototype.ltn=function(e){return this.cmpn(e)===-1},n.prototype.lt=function(e){return this.cmp(e)===-1},n.prototype.lten=function(e){return this.cmpn(e)<=0},n.prototype.lte=function(e){return this.cmp(e)<=0},n.prototype.eqn=function(e){return this.cmpn(e)===0},n.prototype.eq=function(e){return this.cmp(e)===0},n.red=function(e){return new z(e)},n.prototype.toRed=function(e){return f(!this.red,"Already a number in reduction context"),f(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},n.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(e){return this.red=e,this},n.prototype.forceRed=function(e){return f(!this.red,"Already a number in reduction context"),this._forceRed(e)},n.prototype.redAdd=function(e){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},n.prototype.redIAdd=function(e){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},n.prototype.redSub=function(e){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},n.prototype.redISub=function(e){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},n.prototype.redShl=function(e){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},n.prototype.redMul=function(e){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},n.prototype.redIMul=function(e){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},n.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(e){return f(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(p,e){this.name=p,this.p=new n(e,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var e=new n(null);return e.words=new Array(Math.ceil(this.n/13)),e},D.prototype.ireduce=function(e){var r=e,i;do this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),i=r.bitLength();while(i>this.n);var s=i<this.n?-1:r.ucmp(this.p);return s===0?(r.words[0]=0,r.length=1):s>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")}d(Z,D),Z.prototype.split=function(e,r){for(var i=4194303,s=Math.min(e.length,9),h=0;h<s;h++)r.words[h]=e.words[h];if(r.length=s,e.length<=9){e.words[0]=0,e.length=1;return}var c=e.words[9];for(r.words[r.length++]=c&i,h=10;h<e.length;h++){var m=e.words[h]|0;e.words[h-10]=(m&i)<<4|c>>>22,c=m}c>>>=22,e.words[h-10]=c,c===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,i=0;i<e.length;i++){var s=e.words[i]|0;r+=s*977,e.words[i]=r&67108863,r=s*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")}d(W,D);function Q(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}d(Q,D);function K(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}d(K,D),K.prototype.imulK=function(e){for(var r=0,i=0;i<e.length;i++){var s=(e.words[i]|0)*19+r,h=s&67108863;s>>>=26,e.words[i]=h,r=s}return r!==0&&(e.words[e.length++]=r),e},n._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 z(p){if(typeof p=="string"){var e=n._prime(p);this.m=e.p,this.prime=e}else f(p.gtn(1),"modulus must be greater than 1"),this.m=p,this.prime=null}z.prototype._verify1=function(e){f(e.negative===0,"red works only with positives"),f(e.red,"red works only with red numbers")},z.prototype._verify2=function(e,r){f((e.negative|r.negative)===0,"red works only with positives"),f(e.red&&e.red===r.red,"red works only with red numbers")},z.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},z.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},z.prototype.add=function(e,r){this._verify2(e,r);var i=e.add(r);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},z.prototype.iadd=function(e,r){this._verify2(e,r);var i=e.iadd(r);return i.cmp(this.m)>=0&&i.isub(this.m),i},z.prototype.sub=function(e,r){this._verify2(e,r);var i=e.sub(r);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},z.prototype.isub=function(e,r){this._verify2(e,r);var i=e.isub(r);return i.cmpn(0)<0&&i.iadd(this.m),i},z.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},z.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},z.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},z.prototype.isqr=function(e){return this.imul(e,e.clone())},z.prototype.sqr=function(e){return this.mul(e,e)},z.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(f(r%2===1),r===3){var i=this.m.add(new n(1)).iushrn(2);return this.pow(e,i)}for(var s=this.m.subn(1),h=0;!s.isZero()&&s.andln(1)===0;)h++,s.iushrn(1);f(!s.isZero());var c=new n(1).toRed(this),m=c.redNeg(),l=this.m.subn(1).iushrn(1),t=this.m.bitLength();for(t=new n(2*t*t).toRed(this);this.pow(t,l).cmp(m)!==0;)t.redIAdd(m);for(var u=this.pow(t,s),S=this.pow(e,s.addn(1).iushrn(1)),B=this.pow(e,s),k=h;B.cmp(c)!==0;){for(var q=B,F=0;q.cmp(c)!==0;F++)q=q.redSqr();f(F<k);var ee=this.pow(u,new n(1).iushln(k-F-1));S=S.redMul(ee),u=ee.redSqr(),B=B.redMul(u),k=F}return S},z.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},z.prototype.pow=function(e,r){if(r.isZero())return new n(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var i=4,s=new Array(1<<i);s[0]=new n(1).toRed(this),s[1]=e;for(var h=2;h<s.length;h++)s[h]=this.mul(s[h-1],e);var c=s[0],m=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],S=t-1;S>=0;S--){var B=u>>S&1;if(c!==s[0]&&(c=this.sqr(c)),B===0&&m===0){l=0;continue}m<<=1,m|=B,l++,!(l!==i&&(h!==0||S!==0))&&(c=this.mul(c,s[m]),l=0,m=0)}t=26}return c},z.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},z.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},n.mont=function(e){return new X(e)};function X(p){z.call(this,p),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(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)}d(X,z),X.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},X.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},X.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(r),s=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=i.isub(s).iushrn(this.shift),c=h;return h.cmp(this.m)>=0?c=h.isub(this.m):h.cmpn(0)<0&&(c=h.iadd(this.m)),c._forceRed(this)},X.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new n(0)._forceRed(this);var i=e.mul(r),s=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=i.isub(s).iushrn(this.shift),c=h;return h.cmp(this.m)>=0?c=h.isub(this.m):h.cmpn(0)<0&&(c=h.iadd(this.m)),c._forceRed(this)},X.prototype.invm=function(e){var r=this.imod(e._invmp(this.m).mul(this.r2));return r._forceRed(this)}})(typeof e5>"u"||e5,pW)});var t5=St(mW=>{"use strict";var n5e=Ae(Be());Ie();Re();var ub=mW;function Ade(a,o){if(Array.isArray(a))return a.slice();if(!a)return[];var f=[];if(typeof a!="string"){for(var d=0;d<a.length;d++)f[d]=a[d]|0;return f}if(o==="hex"){a=a.replace(/[^a-z0-9]+/ig,""),a.length%2!==0&&(a="0"+a);for(var d=0;d<a.length;d+=2)f.push(parseInt(a[d]+a[d+1],16))}else for(var d=0;d<a.length;d++){var n=a.charCodeAt(d),v=n>>8,b=n&255;v?f.push(v,b):f.push(b)}return f}ub.toArray=Ade;function vW(a){return a.length===1?"0"+a:a}ub.zero2=vW;function bW(a){for(var o="",f=0;f<a.length;f++)o+=vW(a[f].toString(16));return o}ub.toHex=bW;ub.encode=function(o,f){return f==="hex"?bW(o):o}});var ja=St(gW=>{"use strict";var f5e=Ae(Be());Ie();Re();var Bs=gW,Bde=vf(),Rde=Kf(),lb=t5();Bs.assert=Rde;Bs.toArray=lb.toArray;Bs.zero2=lb.zero2;Bs.toHex=lb.toHex;Bs.encode=lb.encode;function Ide(a,o,f){var d=new Array(Math.max(a.bitLength(),f)+1),n;for(n=0;n<d.length;n+=1)d[n]=0;var v=1<<o+1,b=a.clone();for(n=0;n<d.length;n++){var y,M=b.andln(v-1);b.isOdd()?(M>(v>>1)-1?y=(v>>1)-M:y=M,b.isubn(y)):y=0,d[n]=y,b.iushrn(1)}return d}Bs.getNAF=Ide;function Tde(a,o){var f=[[],[]];a=a.clone(),o=o.clone();for(var d=0,n=0,v;a.cmpn(-d)>0||o.cmpn(-n)>0;){var b=a.andln(3)+d&3,y=o.andln(3)+n&3;b===3&&(b=-1),y===3&&(y=-1);var M;b&1?(v=a.andln(7)+d&7,(v===3||v===5)&&y===2?M=-b:M=b):M=0,f[0].push(M);var w;y&1?(v=o.andln(7)+n&7,(v===3||v===5)&&b===2?w=-y:w=y):w=0,f[1].push(w),2*d===M+1&&(d=1-d),2*n===w+1&&(n=1-n),a.iushrn(1),o.iushrn(1)}return f}Bs.getJSF=Tde;function kde(a,o,f){var d="_"+o;a.prototype[o]=function(){return this[d]!==void 0?this[d]:this[d]=f.call(this)}}Bs.cachedProperty=kde;function $de(a){return typeof a=="string"?Bs.toArray(a,"hex"):a}Bs.parseBytes=$de;function Pde(a){return new Bde(a,"hex","le")}Bs.intFromLE=Pde});var a5=St((l5e,n5)=>{var d5e=Ae(Be());Ie();Re();var r5;n5.exports=function(o){return r5||(r5=new dh(null)),r5.generate(o)};function dh(a){this.rand=a}n5.exports.Rand=dh;dh.prototype.generate=function(o){return this._rand(o)};dh.prototype._rand=function(o){if(this.rand.getBytes)return this.rand.getBytes(o);for(var f=new Uint8Array(o),d=0;d<f.length;d++)f[d]=this.rand.getByte();return f};if(typeof self=="object")self.crypto&&self.crypto.getRandomValues?dh.prototype._rand=function(o){var f=new Uint8Array(o);return self.crypto.getRandomValues(f),f}:self.msCrypto&&self.msCrypto.getRandomValues?dh.prototype._rand=function(o){var f=new Uint8Array(o);return self.msCrypto.getRandomValues(f),f}:typeof window=="object"&&(dh.prototype._rand=function(){throw new Error("Not implemented yet")});else try{if(i5=_m(),typeof i5.randomBytes!="function")throw new Error("Not supported");dh.prototype._rand=function(o){return i5.randomBytes(o)}}catch{}var i5});var q1=St((v5e,yW)=>{"use strict";var b5e=Ae(Be());Ie();Re();var Zu=vf(),O1=ja(),db=O1.getNAF,Nde=O1.getJSF,cb=O1.assert;function ch(a,o){this.type=a,this.p=new Zu(o.p,16),this.red=o.prime?Zu.red(o.prime):Zu.mont(this.p),this.zero=new Zu(0).toRed(this.red),this.one=new Zu(1).toRed(this.red),this.two=new Zu(2).toRed(this.red),this.n=o.n&&new Zu(o.n,16),this.g=o.g&&this.pointFromJSON(o.g,o.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 f=this.n&&this.p.div(this.n);!f||f.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}yW.exports=ch;ch.prototype.point=function(){throw new Error("Not implemented")};ch.prototype.validate=function(){throw new Error("Not implemented")};ch.prototype._fixedNafMul=function(o,f){cb(o.precomputed);var d=o._getDoubles(),n=db(f,1,this._bitLength),v=(1<<d.step+1)-(d.step%2===0?2:1);v/=3;var b=[],y,M;for(y=0;y<n.length;y+=d.step){M=0;for(var w=y+d.step-1;w>=y;w--)M=(M<<1)+n[w];b.push(M)}for(var g=this.jpoint(null,null,null),_=this.jpoint(null,null,null),x=v;x>0;x--){for(y=0;y<b.length;y++)M=b[y],M===x?_=_.mixedAdd(d.points[y]):M===-x&&(_=_.mixedAdd(d.points[y].neg()));g=g.add(_)}return g.toP()};ch.prototype._wnafMul=function(o,f){var d=4,n=o._getNAFPoints(d);d=n.wnd;for(var v=n.points,b=db(f,d,this._bitLength),y=this.jpoint(null,null,null),M=b.length-1;M>=0;M--){for(var w=0;M>=0&&b[M]===0;M--)w++;if(M>=0&&w++,y=y.dblp(w),M<0)break;var g=b[M];cb(g!==0),o.type==="affine"?g>0?y=y.mixedAdd(v[g-1>>1]):y=y.mixedAdd(v[-g-1>>1].neg()):g>0?y=y.add(v[g-1>>1]):y=y.add(v[-g-1>>1].neg())}return o.type==="affine"?y.toP():y};ch.prototype._wnafMulAdd=function(o,f,d,n,v){var b=this._wnafT1,y=this._wnafT2,M=this._wnafT3,w=0,g,_,x;for(g=0;g<n;g++){x=f[g];var E=x._getNAFPoints(o);b[g]=E.wnd,y[g]=E.points}for(g=n-1;g>=1;g-=2){var R=g-1,T=g;if(b[R]!==1||b[T]!==1){M[R]=db(d[R],b[R],this._bitLength),M[T]=db(d[T],b[T],this._bitLength),w=Math.max(M[R].length,w),w=Math.max(M[T].length,w);continue}var N=[f[R],null,null,f[T]];f[R].y.cmp(f[T].y)===0?(N[1]=f[R].add(f[T]),N[2]=f[R].toJ().mixedAdd(f[T].neg())):f[R].y.cmp(f[T].y.redNeg())===0?(N[1]=f[R].toJ().mixedAdd(f[T]),N[2]=f[R].add(f[T].neg())):(N[1]=f[R].toJ().mixedAdd(f[T]),N[2]=f[R].toJ().mixedAdd(f[T].neg()));var P=[-3,-1,-5,-7,0,7,5,1,3],L=Nde(d[R],d[T]);for(w=Math.max(L[0].length,w),M[R]=new Array(w),M[T]=new Array(w),_=0;_<w;_++){var D=L[0][_]|0,Z=L[1][_]|0;M[R][_]=P[(D+1)*3+(Z+1)],M[T][_]=0,y[R]=N}}var W=this.jpoint(null,null,null),Q=this._wnafT4;for(g=w;g>=0;g--){for(var K=0;g>=0;){var z=!0;for(_=0;_<n;_++)Q[_]=M[_][g]|0,Q[_]!==0&&(z=!1);if(!z)break;K++,g--}if(g>=0&&K++,W=W.dblp(K),g<0)break;for(_=0;_<n;_++){var X=Q[_];X!==0&&(X>0?x=y[_][X-1>>1]:X<0&&(x=y[_][-X-1>>1].neg()),x.type==="affine"?W=W.mixedAdd(x):W=W.add(x))}}for(g=0;g<n;g++)y[g]=null;return v?W:W.toP()};function Ho(a,o){this.curve=a,this.type=o,this.precomputed=null}ch.BasePoint=Ho;Ho.prototype.eq=function(){throw new Error("Not implemented")};Ho.prototype.validate=function(){return this.curve.validate(this)};ch.prototype.decodePoint=function(o,f){o=O1.toArray(o,f);var d=this.p.byteLength();if((o[0]===4||o[0]===6||o[0]===7)&&o.length-1===2*d){o[0]===6?cb(o[o.length-1]%2===0):o[0]===7&&cb(o[o.length-1]%2===1);var n=this.point(o.slice(1,1+d),o.slice(1+d,1+2*d));return n}else if((o[0]===2||o[0]===3)&&o.length-1===d)return this.pointFromX(o.slice(1,1+d),o[0]===3);throw new Error("Unknown point format")};Ho.prototype.encodeCompressed=function(o){return this.encode(o,!0)};Ho.prototype._encode=function(o){var f=this.curve.p.byteLength(),d=this.getX().toArray("be",f);return o?[this.getY().isEven()?2:3].concat(d):[4].concat(d,this.getY().toArray("be",f))};Ho.prototype.encode=function(o,f){return O1.encode(this._encode(f),o)};Ho.prototype.precompute=function(o){if(this.precomputed)return this;var f={doubles:null,naf:null,beta:null};return f.naf=this._getNAFPoints(8),f.doubles=this._getDoubles(4,o),f.beta=this._getBeta(),this.precomputed=f,this};Ho.prototype._hasDoubles=function(o){if(!this.precomputed)return!1;var f=this.precomputed.doubles;return f?f.points.length>=Math.ceil((o.bitLength()+1)/f.step):!1};Ho.prototype._getDoubles=function(o,f){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var d=[this],n=this,v=0;v<f;v+=o){for(var b=0;b<o;b++)n=n.dbl();d.push(n)}return{step:o,points:d}};Ho.prototype._getNAFPoints=function(o){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var f=[this],d=(1<<o)-1,n=d===1?null:this.dbl(),v=1;v<d;v++)f[v]=f[v-1].add(n);return{wnd:o,points:f}};Ho.prototype._getBeta=function(){return null};Ho.prototype.dblp=function(o){for(var f=this,d=0;d<o;d++)f=f.dbl();return f}});var MW=St((y5e,wW)=>{"use strict";var w5e=Ae(Be());Ie();Re();var Cde=ja(),ji=vf(),o5=Cn(),kd=q1(),Lde=Cde.assert;function Ko(a){kd.call(this,"short",a),this.a=new ji(a.a,16).toRed(this.red),this.b=new ji(a.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(a),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}o5(Ko,kd);wW.exports=Ko;Ko.prototype._getEndomorphism=function(o){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var f,d;if(o.beta)f=new ji(o.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);f=n[0].cmp(n[1])<0?n[0]:n[1],f=f.toRed(this.red)}if(o.lambda)d=new ji(o.lambda,16);else{var v=this._getEndoRoots(this.n);this.g.mul(v[0]).x.cmp(this.g.x.redMul(f))===0?d=v[0]:(d=v[1],Lde(this.g.mul(d).x.cmp(this.g.x.redMul(f))===0))}var b;return o.basis?b=o.basis.map(function(y){return{a:new ji(y.a,16),b:new ji(y.b,16)}}):b=this._getEndoBasis(d),{beta:f,lambda:d,basis:b}}};Ko.prototype._getEndoRoots=function(o){var f=o===this.p?this.red:ji.mont(o),d=new ji(2).toRed(f).redInvm(),n=d.redNeg(),v=new ji(3).toRed(f).redNeg().redSqrt().redMul(d),b=n.redAdd(v).fromRed(),y=n.redSub(v).fromRed();return[b,y]};Ko.prototype._getEndoBasis=function(o){for(var f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=o,n=this.n.clone(),v=new ji(1),b=new ji(0),y=new ji(0),M=new ji(1),w,g,_,x,E,R,T,N=0,P,L;d.cmpn(0)!==0;){var D=n.div(d);P=n.sub(D.mul(d)),L=y.sub(D.mul(v));var Z=M.sub(D.mul(b));if(!_&&P.cmp(f)<0)w=T.neg(),g=v,_=P.neg(),x=L;else if(_&&++N===2)break;T=P,n=d,d=P,y=v,v=L,M=b,b=Z}E=P.neg(),R=L;var W=_.sqr().add(x.sqr()),Q=E.sqr().add(R.sqr());return Q.cmp(W)>=0&&(E=w,R=g),_.negative&&(_=_.neg(),x=x.neg()),E.negative&&(E=E.neg(),R=R.neg()),[{a:_,b:x},{a:E,b:R}]};Ko.prototype._endoSplit=function(o){var f=this.endo.basis,d=f[0],n=f[1],v=n.b.mul(o).divRound(this.n),b=d.b.neg().mul(o).divRound(this.n),y=v.mul(d.a),M=b.mul(n.a),w=v.mul(d.b),g=b.mul(n.b),_=o.sub(y).sub(M),x=w.add(g).neg();return{k1:_,k2:x}};Ko.prototype.pointFromX=function(o,f){o=new ji(o,16),o.red||(o=o.toRed(this.red));var d=o.redSqr().redMul(o).redIAdd(o.redMul(this.a)).redIAdd(this.b),n=d.redSqrt();if(n.redSqr().redSub(d).cmp(this.zero)!==0)throw new Error("invalid point");var v=n.fromRed().isOdd();return(f&&!v||!f&&v)&&(n=n.redNeg()),this.point(o,n)};Ko.prototype.validate=function(o){if(o.inf)return!0;var f=o.x,d=o.y,n=this.a.redMul(f),v=f.redSqr().redMul(f).redIAdd(n).redIAdd(this.b);return d.redSqr().redISub(v).cmpn(0)===0};Ko.prototype._endoWnafMulAdd=function(o,f,d){for(var n=this._endoWnafT1,v=this._endoWnafT2,b=0;b<o.length;b++){var y=this._endoSplit(f[b]),M=o[b],w=M._getBeta();y.k1.negative&&(y.k1.ineg(),M=M.neg(!0)),y.k2.negative&&(y.k2.ineg(),w=w.neg(!0)),n[b*2]=M,n[b*2+1]=w,v[b*2]=y.k1,v[b*2+1]=y.k2}for(var g=this._wnafMulAdd(1,n,v,b*2,d),_=0;_<b*2;_++)n[_]=null,v[_]=null;return g};function Rn(a,o,f,d){kd.BasePoint.call(this,a,"affine"),o===null&&f===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new ji(o,16),this.y=new ji(f,16),d&&(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)}o5(Rn,kd.BasePoint);Ko.prototype.point=function(o,f,d){return new Rn(this,o,f,d)};Ko.prototype.pointFromJSON=function(o,f){return Rn.fromJSON(this,o,f)};Rn.prototype._getBeta=function(){if(this.curve.endo){var o=this.precomputed;if(o&&o.beta)return o.beta;var f=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(o){var d=this.curve,n=function(v){return d.point(v.x.redMul(d.endo.beta),v.y)};o.beta=f,f.precomputed={beta:null,naf:o.naf&&{wnd:o.naf.wnd,points:o.naf.points.map(n)},doubles:o.doubles&&{step:o.doubles.step,points:o.doubles.points.map(n)}}}return f}};Rn.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]};Rn.fromJSON=function(o,f,d){typeof f=="string"&&(f=JSON.parse(f));var n=o.point(f[0],f[1],d);if(!f[2])return n;function v(y){return o.point(y[0],y[1],d)}var b=f[2];return n.precomputed={beta:null,doubles:b.doubles&&{step:b.doubles.step,points:[n].concat(b.doubles.points.map(v))},naf:b.naf&&{wnd:b.naf.wnd,points:[n].concat(b.naf.points.map(v))}},n};Rn.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)+">"};Rn.prototype.isInfinity=function(){return this.inf};Rn.prototype.add=function(o){if(this.inf)return o;if(o.inf)return this;if(this.eq(o))return this.dbl();if(this.neg().eq(o))return this.curve.point(null,null);if(this.x.cmp(o.x)===0)return this.curve.point(null,null);var f=this.y.redSub(o.y);f.cmpn(0)!==0&&(f=f.redMul(this.x.redSub(o.x).redInvm()));var d=f.redSqr().redISub(this.x).redISub(o.x),n=f.redMul(this.x.redSub(d)).redISub(this.y);return this.curve.point(d,n)};Rn.prototype.dbl=function(){if(this.inf)return this;var o=this.y.redAdd(this.y);if(o.cmpn(0)===0)return this.curve.point(null,null);var f=this.curve.a,d=this.x.redSqr(),n=o.redInvm(),v=d.redAdd(d).redIAdd(d).redIAdd(f).redMul(n),b=v.redSqr().redISub(this.x.redAdd(this.x)),y=v.redMul(this.x.redSub(b)).redISub(this.y);return this.curve.point(b,y)};Rn.prototype.getX=function(){return this.x.fromRed()};Rn.prototype.getY=function(){return this.y.fromRed()};Rn.prototype.mul=function(o){return o=new ji(o,16),this.isInfinity()?this:this._hasDoubles(o)?this.curve._fixedNafMul(this,o):this.curve.endo?this.curve._endoWnafMulAdd([this],[o]):this.curve._wnafMul(this,o)};Rn.prototype.mulAdd=function(o,f,d){var n=[this,f],v=[o,d];return this.curve.endo?this.curve._endoWnafMulAdd(n,v):this.curve._wnafMulAdd(1,n,v,2)};Rn.prototype.jmulAdd=function(o,f,d){var n=[this,f],v=[o,d];return this.curve.endo?this.curve._endoWnafMulAdd(n,v,!0):this.curve._wnafMulAdd(1,n,v,2,!0)};Rn.prototype.eq=function(o){return this===o||this.inf===o.inf&&(this.inf||this.x.cmp(o.x)===0&&this.y.cmp(o.y)===0)};Rn.prototype.neg=function(o){if(this.inf)return this;var f=this.curve.point(this.x,this.y.redNeg());if(o&&this.precomputed){var d=this.precomputed,n=function(v){return v.neg()};f.precomputed={naf:d.naf&&{wnd:d.naf.wnd,points:d.naf.points.map(n)},doubles:d.doubles&&{step:d.doubles.step,points:d.doubles.points.map(n)}}}return f};Rn.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var o=this.curve.jpoint(this.x,this.y,this.curve.one);return o};function On(a,o,f,d){kd.BasePoint.call(this,a,"jacobian"),o===null&&f===null&&d===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new ji(0)):(this.x=new ji(o,16),this.y=new ji(f,16),this.z=new ji(d,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}o5(On,kd.BasePoint);Ko.prototype.jpoint=function(o,f,d){return new On(this,o,f,d)};On.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var o=this.z.redInvm(),f=o.redSqr(),d=this.x.redMul(f),n=this.y.redMul(f).redMul(o);return this.curve.point(d,n)};On.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};On.prototype.add=function(o){if(this.isInfinity())return o;if(o.isInfinity())return this;var f=o.z.redSqr(),d=this.z.redSqr(),n=this.x.redMul(f),v=o.x.redMul(d),b=this.y.redMul(f.redMul(o.z)),y=o.y.redMul(d.redMul(this.z)),M=n.redSub(v),w=b.redSub(y);if(M.cmpn(0)===0)return w.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var g=M.redSqr(),_=g.redMul(M),x=n.redMul(g),E=w.redSqr().redIAdd(_).redISub(x).redISub(x),R=w.redMul(x.redISub(E)).redISub(b.redMul(_)),T=this.z.redMul(o.z).redMul(M);return this.curve.jpoint(E,R,T)};On.prototype.mixedAdd=function(o){if(this.isInfinity())return o.toJ();if(o.isInfinity())return this;var f=this.z.redSqr(),d=this.x,n=o.x.redMul(f),v=this.y,b=o.y.redMul(f).redMul(this.z),y=d.redSub(n),M=v.redSub(b);if(y.cmpn(0)===0)return M.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var w=y.redSqr(),g=w.redMul(y),_=d.redMul(w),x=M.redSqr().redIAdd(g).redISub(_).redISub(_),E=M.redMul(_.redISub(x)).redISub(v.redMul(g)),R=this.z.redMul(y);return this.curve.jpoint(x,E,R)};On.prototype.dblp=function(o){if(o===0)return this;if(this.isInfinity())return this;if(!o)return this.dbl();var f;if(this.curve.zeroA||this.curve.threeA){var d=this;for(f=0;f<o;f++)d=d.dbl();return d}var n=this.curve.a,v=this.curve.tinv,b=this.x,y=this.y,M=this.z,w=M.redSqr().redSqr(),g=y.redAdd(y);for(f=0;f<o;f++){var _=b.redSqr(),x=g.redSqr(),E=x.redSqr(),R=_.redAdd(_).redIAdd(_).redIAdd(n.redMul(w)),T=b.redMul(x),N=R.redSqr().redISub(T.redAdd(T)),P=T.redISub(N),L=R.redMul(P);L=L.redIAdd(L).redISub(E);var D=g.redMul(M);f+1<o&&(w=w.redMul(E)),b=N,M=D,g=L}return this.curve.jpoint(b,g.redMul(v),M)};On.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()};On.prototype._zeroDbl=function(){var o,f,d;if(this.zOne){var n=this.x.redSqr(),v=this.y.redSqr(),b=v.redSqr(),y=this.x.redAdd(v).redSqr().redISub(n).redISub(b);y=y.redIAdd(y);var M=n.redAdd(n).redIAdd(n),w=M.redSqr().redISub(y).redISub(y),g=b.redIAdd(b);g=g.redIAdd(g),g=g.redIAdd(g),o=w,f=M.redMul(y.redISub(w)).redISub(g),d=this.y.redAdd(this.y)}else{var _=this.x.redSqr(),x=this.y.redSqr(),E=x.redSqr(),R=this.x.redAdd(x).redSqr().redISub(_).redISub(E);R=R.redIAdd(R);var T=_.redAdd(_).redIAdd(_),N=T.redSqr(),P=E.redIAdd(E);P=P.redIAdd(P),P=P.redIAdd(P),o=N.redISub(R).redISub(R),f=T.redMul(R.redISub(o)).redISub(P),d=this.y.redMul(this.z),d=d.redIAdd(d)}return this.curve.jpoint(o,f,d)};On.prototype._threeDbl=function(){var o,f,d;if(this.zOne){var n=this.x.redSqr(),v=this.y.redSqr(),b=v.redSqr(),y=this.x.redAdd(v).redSqr().redISub(n).redISub(b);y=y.redIAdd(y);var M=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),w=M.redSqr().redISub(y).redISub(y);o=w;var g=b.redIAdd(b);g=g.redIAdd(g),g=g.redIAdd(g),f=M.redMul(y.redISub(w)).redISub(g),d=this.y.redAdd(this.y)}else{var _=this.z.redSqr(),x=this.y.redSqr(),E=this.x.redMul(x),R=this.x.redSub(_).redMul(this.x.redAdd(_));R=R.redAdd(R).redIAdd(R);var T=E.redIAdd(E);T=T.redIAdd(T);var N=T.redAdd(T);o=R.redSqr().redISub(N),d=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),f=R.redMul(T.redISub(o)).redISub(P)}return this.curve.jpoint(o,f,d)};On.prototype._dbl=function(){var o=this.curve.a,f=this.x,d=this.y,n=this.z,v=n.redSqr().redSqr(),b=f.redSqr(),y=d.redSqr(),M=b.redAdd(b).redIAdd(b).redIAdd(o.redMul(v)),w=f.redAdd(f);w=w.redIAdd(w);var g=w.redMul(y),_=M.redSqr().redISub(g.redAdd(g)),x=g.redISub(_),E=y.redSqr();E=E.redIAdd(E),E=E.redIAdd(E),E=E.redIAdd(E);var R=M.redMul(x).redISub(E),T=d.redAdd(d).redMul(n);return this.curve.jpoint(_,R,T)};On.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var o=this.x.redSqr(),f=this.y.redSqr(),d=this.z.redSqr(),n=f.redSqr(),v=o.redAdd(o).redIAdd(o),b=v.redSqr(),y=this.x.redAdd(f).redSqr().redISub(o).redISub(n);y=y.redIAdd(y),y=y.redAdd(y).redIAdd(y),y=y.redISub(b);var M=y.redSqr(),w=n.redIAdd(n);w=w.redIAdd(w),w=w.redIAdd(w),w=w.redIAdd(w);var g=v.redIAdd(y).redSqr().redISub(b).redISub(M).redISub(w),_=f.redMul(g);_=_.redIAdd(_),_=_.redIAdd(_);var x=this.x.redMul(M).redISub(_);x=x.redIAdd(x),x=x.redIAdd(x);var E=this.y.redMul(g.redMul(w.redISub(g)).redISub(y.redMul(M)));E=E.redIAdd(E),E=E.redIAdd(E),E=E.redIAdd(E);var R=this.z.redAdd(y).redSqr().redISub(d).redISub(M);return this.curve.jpoint(x,E,R)};On.prototype.mul=function(o,f){return o=new ji(o,f),this.curve._wnafMul(this,o)};On.prototype.eq=function(o){if(o.type==="affine")return this.eq(o.toJ());if(this===o)return!0;var f=this.z.redSqr(),d=o.z.redSqr();if(this.x.redMul(d).redISub(o.x.redMul(f)).cmpn(0)!==0)return!1;var n=f.redMul(this.z),v=d.redMul(o.z);return this.y.redMul(v).redISub(o.y.redMul(n)).cmpn(0)===0};On.prototype.eqXToP=function(o){var f=this.z.redSqr(),d=o.toRed(this.curve.red).redMul(f);if(this.x.cmp(d)===0)return!0;for(var n=o.clone(),v=this.curve.redN.redMul(f);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(d.redIAdd(v),this.x.cmp(d)===0)return!0}};On.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)+">"};On.prototype.isInfinity=function(){return this.z.cmpn(0)===0}});var SW=St((x5e,xW)=>{"use strict";var S5e=Ae(Be());Ie();Re();var $d=vf(),_W=Cn(),pb=q1(),Dde=ja();function Pd(a){pb.call(this,"mont",a),this.a=new $d(a.a,16).toRed(this.red),this.b=new $d(a.b,16).toRed(this.red),this.i4=new $d(4).toRed(this.red).redInvm(),this.two=new $d(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}_W(Pd,pb);xW.exports=Pd;Pd.prototype.validate=function(o){var f=o.normalize().x,d=f.redSqr(),n=d.redMul(f).redAdd(d.redMul(this.a)).redAdd(f),v=n.redSqrt();return v.redSqr().cmp(n)===0};function In(a,o,f){pb.BasePoint.call(this,a,"projective"),o===null&&f===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new $d(o,16),this.z=new $d(f,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}_W(In,pb.BasePoint);Pd.prototype.decodePoint=function(o,f){return this.point(Dde.toArray(o,f),1)};Pd.prototype.point=function(o,f){return new In(this,o,f)};Pd.prototype.pointFromJSON=function(o){return In.fromJSON(this,o)};In.prototype.precompute=function(){};In.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};In.fromJSON=function(o,f){return new In(o,f[0],f[1]||o.one)};In.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)+">"};In.prototype.isInfinity=function(){return this.z.cmpn(0)===0};In.prototype.dbl=function(){var o=this.x.redAdd(this.z),f=o.redSqr(),d=this.x.redSub(this.z),n=d.redSqr(),v=f.redSub(n),b=f.redMul(n),y=v.redMul(n.redAdd(this.curve.a24.redMul(v)));return this.curve.point(b,y)};In.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};In.prototype.diffAdd=function(o,f){var d=this.x.redAdd(this.z),n=this.x.redSub(this.z),v=o.x.redAdd(o.z),b=o.x.redSub(o.z),y=b.redMul(d),M=v.redMul(n),w=f.z.redMul(y.redAdd(M).redSqr()),g=f.x.redMul(y.redISub(M).redSqr());return this.curve.point(w,g)};In.prototype.mul=function(o){for(var f=o.clone(),d=this,n=this.curve.point(null,null),v=this,b=[];f.cmpn(0)!==0;f.iushrn(1))b.push(f.andln(1));for(var y=b.length-1;y>=0;y--)b[y]===0?(d=d.diffAdd(n,v),n=n.dbl()):(n=d.diffAdd(n,v),d=d.dbl());return n};In.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};In.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};In.prototype.eq=function(o){return this.getX().cmp(o.getX())===0};In.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};In.prototype.getX=function(){return this.normalize(),this.x.fromRed()}});var BW=St((B5e,AW)=>{"use strict";var R5e=Ae(Be());Ie();Re();var Ode=ja(),r0=vf(),EW=Cn(),vb=q1(),qde=Ode.assert;function bf(a){this.twisted=(a.a|0)!==1,this.mOneA=this.twisted&&(a.a|0)===-1,this.extended=this.mOneA,vb.call(this,"edwards",a),this.a=new r0(a.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new r0(a.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new r0(a.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),qde(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(a.c|0)===1}EW(bf,vb);AW.exports=bf;bf.prototype._mulA=function(o){return this.mOneA?o.redNeg():this.a.redMul(o)};bf.prototype._mulC=function(o){return this.oneC?o:this.c.redMul(o)};bf.prototype.jpoint=function(o,f,d,n){return this.point(o,f,d,n)};bf.prototype.pointFromX=function(o,f){o=new r0(o,16),o.red||(o=o.toRed(this.red));var d=o.redSqr(),n=this.c2.redSub(this.a.redMul(d)),v=this.one.redSub(this.c2.redMul(this.d).redMul(d)),b=n.redMul(v.redInvm()),y=b.redSqrt();if(y.redSqr().redSub(b).cmp(this.zero)!==0)throw new Error("invalid point");var M=y.fromRed().isOdd();return(f&&!M||!f&&M)&&(y=y.redNeg()),this.point(o,y)};bf.prototype.pointFromY=function(o,f){o=new r0(o,16),o.red||(o=o.toRed(this.red));var d=o.redSqr(),n=d.redSub(this.c2),v=d.redMul(this.d).redMul(this.c2).redSub(this.a),b=n.redMul(v.redInvm());if(b.cmp(this.zero)===0){if(f)throw new Error("invalid point");return this.point(this.zero,o)}var y=b.redSqrt();if(y.redSqr().redSub(b).cmp(this.zero)!==0)throw new Error("invalid point");return y.fromRed().isOdd()!==f&&(y=y.redNeg()),this.point(y,o)};bf.prototype.validate=function(o){if(o.isInfinity())return!0;o.normalize();var f=o.x.redSqr(),d=o.y.redSqr(),n=f.redMul(this.a).redAdd(d),v=this.c2.redMul(this.one.redAdd(this.d.redMul(f).redMul(d)));return n.cmp(v)===0};function xi(a,o,f,d,n){vb.BasePoint.call(this,a,"projective"),o===null&&f===null&&d===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 r0(o,16),this.y=new r0(f,16),this.z=d?new r0(d,16):this.curve.one,this.t=n&&new r0(n,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()))))}EW(xi,vb.BasePoint);bf.prototype.pointFromJSON=function(o){return xi.fromJSON(this,o)};bf.prototype.point=function(o,f,d,n){return new xi(this,o,f,d,n)};xi.fromJSON=function(o,f){return new xi(o,f[0],f[1],f[2])};xi.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)+">"};xi.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};xi.prototype._extDbl=function(){var o=this.x.redSqr(),f=this.y.redSqr(),d=this.z.redSqr();d=d.redIAdd(d);var n=this.curve._mulA(o),v=this.x.redAdd(this.y).redSqr().redISub(o).redISub(f),b=n.redAdd(f),y=b.redSub(d),M=n.redSub(f),w=v.redMul(y),g=b.redMul(M),_=v.redMul(M),x=y.redMul(b);return this.curve.point(w,g,x,_)};xi.prototype._projDbl=function(){var o=this.x.redAdd(this.y).redSqr(),f=this.x.redSqr(),d=this.y.redSqr(),n,v,b,y,M,w;if(this.curve.twisted){y=this.curve._mulA(f);var g=y.redAdd(d);this.zOne?(n=o.redSub(f).redSub(d).redMul(g.redSub(this.curve.two)),v=g.redMul(y.redSub(d)),b=g.redSqr().redSub(g).redSub(g)):(M=this.z.redSqr(),w=g.redSub(M).redISub(M),n=o.redSub(f).redISub(d).redMul(w),v=g.redMul(y.redSub(d)),b=g.redMul(w))}else y=f.redAdd(d),M=this.curve._mulC(this.z).redSqr(),w=y.redSub(M).redSub(M),n=this.curve._mulC(o.redISub(y)).redMul(w),v=this.curve._mulC(y).redMul(f.redISub(d)),b=y.redMul(w);return this.curve.point(n,v,b)};xi.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};xi.prototype._extAdd=function(o){var f=this.y.redSub(this.x).redMul(o.y.redSub(o.x)),d=this.y.redAdd(this.x).redMul(o.y.redAdd(o.x)),n=this.t.redMul(this.curve.dd).redMul(o.t),v=this.z.redMul(o.z.redAdd(o.z)),b=d.redSub(f),y=v.redSub(n),M=v.redAdd(n),w=d.redAdd(f),g=b.redMul(y),_=M.redMul(w),x=b.redMul(w),E=y.redMul(M);return this.curve.point(g,_,E,x)};xi.prototype._projAdd=function(o){var f=this.z.redMul(o.z),d=f.redSqr(),n=this.x.redMul(o.x),v=this.y.redMul(o.y),b=this.curve.d.redMul(n).redMul(v),y=d.redSub(b),M=d.redAdd(b),w=this.x.redAdd(this.y).redMul(o.x.redAdd(o.y)).redISub(n).redISub(v),g=f.redMul(y).redMul(w),_,x;return this.curve.twisted?(_=f.redMul(M).redMul(v.redSub(this.curve._mulA(n))),x=y.redMul(M)):(_=f.redMul(M).redMul(v.redSub(n)),x=this.curve._mulC(y).redMul(M)),this.curve.point(g,_,x)};xi.prototype.add=function(o){return this.isInfinity()?o:o.isInfinity()?this:this.curve.extended?this._extAdd(o):this._projAdd(o)};xi.prototype.mul=function(o){return this._hasDoubles(o)?this.curve._fixedNafMul(this,o):this.curve._wnafMul(this,o)};xi.prototype.mulAdd=function(o,f,d){return this.curve._wnafMulAdd(1,[this,f],[o,d],2,!1)};xi.prototype.jmulAdd=function(o,f,d){return this.curve._wnafMulAdd(1,[this,f],[o,d],2,!0)};xi.prototype.normalize=function(){if(this.zOne)return this;var o=this.z.redInvm();return this.x=this.x.redMul(o),this.y=this.y.redMul(o),this.t&&(this.t=this.t.redMul(o)),this.z=this.curve.one,this.zOne=!0,this};xi.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};xi.prototype.getX=function(){return this.normalize(),this.x.fromRed()};xi.prototype.getY=function(){return this.normalize(),this.y.fromRed()};xi.prototype.eq=function(o){return this===o||this.getX().cmp(o.getX())===0&&this.getY().cmp(o.getY())===0};xi.prototype.eqXToP=function(o){var f=o.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(f)===0)return!0;for(var d=o.clone(),n=this.curve.redN.redMul(this.z);;){if(d.iadd(this.curve.n),d.cmp(this.curve.p)>=0)return!1;if(f.redIAdd(n),this.x.cmp(f)===0)return!0}};xi.prototype.toP=xi.prototype.normalize;xi.prototype.mixedAdd=xi.prototype.add});var s5=St(RW=>{"use strict";var $5e=Ae(Be());Ie();Re();var bb=RW;bb.base=q1();bb.short=MW();bb.mont=SW();bb.edwards=BW()});var TW=St((C5e,IW)=>{var L5e=Ae(Be());Ie();Re();IW.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 mb=St(PW=>{"use strict";var U5e=Ae(Be());Ie();Re();var h5=PW,ph=_d(),f5=s5(),Ude=ja(),kW=Ude.assert;function $W(a){a.type==="short"?this.curve=new f5.short(a):a.type==="edwards"?this.curve=new f5.edwards(a):this.curve=new f5.mont(a),this.g=this.curve.g,this.n=this.curve.n,this.hash=a.hash,kW(this.g.validate(),"Invalid curve"),kW(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}h5.PresetCurve=$W;function vh(a,o){Object.defineProperty(h5,a,{configurable:!0,enumerable:!0,get:function(){var f=new $W(o);return Object.defineProperty(h5,a,{configurable:!0,enumerable:!0,value:f}),f}})}vh("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:ph.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]});vh("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:ph.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]});vh("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:ph.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]});vh("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:ph.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"]});vh("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:ph.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"]});vh("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:ph.sha256,gRed:!1,g:["9"]});vh("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:ph.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var u5;try{u5=TW()}catch{u5=void 0}vh("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:ph.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",u5]})});var LW=St((H5e,CW)=>{"use strict";var K5e=Ae(Be());Ie();Re();var Fde=_d(),Gu=t5(),NW=Kf();function bh(a){if(!(this instanceof bh))return new bh(a);this.hash=a.hash,this.predResist=!!a.predResist,this.outLen=this.hash.outSize,this.minEntropy=a.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var o=Gu.toArray(a.entropy,a.entropyEnc||"hex"),f=Gu.toArray(a.nonce,a.nonceEnc||"hex"),d=Gu.toArray(a.pers,a.persEnc||"hex");NW(o.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(o,f,d)}CW.exports=bh;bh.prototype._init=function(o,f,d){var n=o.concat(f).concat(d);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var v=0;v<this.V.length;v++)this.K[v]=0,this.V[v]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656};bh.prototype._hmac=function(){return new Fde.hmac(this.hash,this.K)};bh.prototype._update=function(o){var f=this._hmac().update(this.V).update([0]);o&&(f=f.update(o)),this.K=f.digest(),this.V=this._hmac().update(this.V).digest(),o&&(this.K=this._hmac().update(this.V).update([1]).update(o).digest(),this.V=this._hmac().update(this.V).digest())};bh.prototype.reseed=function(o,f,d,n){typeof f!="string"&&(n=d,d=f,f=null),o=Gu.toArray(o,f),d=Gu.toArray(d,n),NW(o.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(o.concat(d||[])),this._reseed=1};bh.prototype.generate=function(o,f,d,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof f!="string"&&(n=d,d=f,f=null),d&&(d=Gu.toArray(d,n||"hex"),this._update(d));for(var v=[];v.length<o;)this.V=this._hmac().update(this.V).digest(),v=v.concat(this.V);var b=v.slice(0,o);return this._update(d),this._reseed++,Gu.encode(b,f)}});var OW=St((Z5e,DW)=>{"use strict";var G5e=Ae(Be());Ie();Re();var zde=vf(),Hde=ja(),l5=Hde.assert;function ta(a,o){this.ec=a,this.priv=null,this.pub=null,o.priv&&this._importPrivate(o.priv,o.privEnc),o.pub&&this._importPublic(o.pub,o.pubEnc)}DW.exports=ta;ta.fromPublic=function(o,f,d){return f instanceof ta?f:new ta(o,{pub:f,pubEnc:d})};ta.fromPrivate=function(o,f,d){return f instanceof ta?f:new ta(o,{priv:f,privEnc:d})};ta.prototype.validate=function(){var o=this.getPublic();return o.isInfinity()?{result:!1,reason:"Invalid public key"}:o.validate()?o.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"}};ta.prototype.getPublic=function(o,f){return typeof o=="string"&&(f=o,o=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),f?this.pub.encode(f,o):this.pub};ta.prototype.getPrivate=function(o){return o==="hex"?this.priv.toString(16,2):this.priv};ta.prototype._importPrivate=function(o,f){this.priv=new zde(o,f||16),this.priv=this.priv.umod(this.ec.curve.n)};ta.prototype._importPublic=function(o,f){if(o.x||o.y){this.ec.curve.type==="mont"?l5(o.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&l5(o.x&&o.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(o.x,o.y);return}this.pub=this.ec.curve.decodePoint(o,f)};ta.prototype.derive=function(o){return o.validate()||l5(o.validate(),"public point not validated"),o.mul(this.priv).getX()};ta.prototype.sign=function(o,f,d){return this.ec.sign(o,this,f,d)};ta.prototype.verify=function(o,f,d){return this.ec.verify(o,f,this,void 0,d)};ta.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}});var FW=St((Y5e,UW)=>{"use strict";var X5e=Ae(Be());Ie();Re();var gb=vf(),p5=ja(),Kde=p5.assert;function yb(a,o){if(a instanceof yb)return a;this._importDER(a,o)||(Kde(a.r&&a.s,"Signature without r or s"),this.r=new gb(a.r,16),this.s=new gb(a.s,16),a.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=a.recoveryParam)}UW.exports=yb;function jde(){this.place=0}function d5(a,o){var f=a[o.place++];if(!(f&128))return f;var d=f&15;if(d===0||d>4||a[o.place]===0)return!1;for(var n=0,v=0,b=o.place;v<d;v++,b++)n<<=8,n|=a[b],n>>>=0;return n<=127?!1:(o.place=b,n)}function qW(a){for(var o=0,f=a.length-1;!a[o]&&!(a[o+1]&128)&&o<f;)o++;return o===0?a:a.slice(o)}yb.prototype._importDER=function(o,f){o=p5.toArray(o,f);var d=new jde;if(o[d.place++]!==48)return!1;var n=d5(o,d);if(n===!1||n+d.place!==o.length||o[d.place++]!==2)return!1;var v=d5(o,d);if(v===!1||o[d.place]&128)return!1;var b=o.slice(d.place,v+d.place);if(d.place+=v,o[d.place++]!==2)return!1;var y=d5(o,d);if(y===!1||o.length!==y+d.place||o[d.place]&128)return!1;var M=o.slice(d.place,y+d.place);if(b[0]===0)if(b[1]&128)b=b.slice(1);else return!1;if(M[0]===0)if(M[1]&128)M=M.slice(1);else return!1;return this.r=new gb(b),this.s=new gb(M),this.recoveryParam=null,!0};function c5(a,o){if(o<128){a.push(o);return}var f=1+(Math.log(o)/Math.LN2>>>3);for(a.push(f|128);--f;)a.push(o>>>(f<<3)&255);a.push(o)}yb.prototype.toDER=function(o){var f=this.r.toArray(),d=this.s.toArray();for(f[0]&128&&(f=[0].concat(f)),d[0]&128&&(d=[0].concat(d)),f=qW(f),d=qW(d);!d[0]&&!(d[1]&128);)d=d.slice(1);var n=[2];c5(n,f.length),n=n.concat(f),n.push(2),c5(n,d.length);var v=n.concat(d),b=[48];return c5(b,v.length),b=b.concat(v),p5.encode(b,o)}});var KW=St((tSe,HW)=>{"use strict";var rSe=Ae(Be());Ie();Re();var Rs=vf(),zW=LW(),Wde=ja(),v5=mb(),Zde=a5(),Vu=Wde.assert,b5=OW(),wb=FW();function jo(a){if(!(this instanceof jo))return new jo(a);typeof a=="string"&&(Vu(Object.prototype.hasOwnProperty.call(v5,a),"Unknown curve "+a),a=v5[a]),a instanceof v5.PresetCurve&&(a={curve:a}),this.curve=a.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=a.curve.g,this.g.precompute(a.curve.n.bitLength()+1),this.hash=a.hash||a.curve.hash}HW.exports=jo;jo.prototype.keyPair=function(o){return new b5(this,o)};jo.prototype.keyFromPrivate=function(o,f){return b5.fromPrivate(this,o,f)};jo.prototype.keyFromPublic=function(o,f){return b5.fromPublic(this,o,f)};jo.prototype.genKeyPair=function(o){o||(o={});for(var f=new zW({hash:this.hash,pers:o.pers,persEnc:o.persEnc||"utf8",entropy:o.entropy||Zde(this.hash.hmacStrength),entropyEnc:o.entropy&&o.entropyEnc||"utf8",nonce:this.n.toArray()}),d=this.n.byteLength(),n=this.n.sub(new Rs(2));;){var v=new Rs(f.generate(d));if(!(v.cmp(n)>0))return v.iaddn(1),this.keyFromPrivate(v)}};jo.prototype._truncateToN=function(o,f,d){var n;if(Rs.isBN(o)||typeof o=="number")o=new Rs(o,16),n=o.byteLength();else if(typeof o=="object")n=o.length,o=new Rs(o,16);else{var v=o.toString();n=v.length+1>>>1,o=new Rs(v,16)}typeof d!="number"&&(d=n*8);var b=d-this.n.bitLength();return b>0&&(o=o.ushrn(b)),!f&&o.cmp(this.n)>=0?o.sub(this.n):o};jo.prototype.sign=function(o,f,d,n){if(typeof d=="object"&&(n=d,d=null),n||(n={}),typeof o!="string"&&typeof o!="number"&&!Rs.isBN(o)){Vu(typeof o=="object"&&o&&typeof o.length=="number","Expected message to be an array-like, a hex string, or a BN instance"),Vu(o.length>>>0===o.length);for(var v=0;v<o.length;v++)Vu((o[v]&255)===o[v])}f=this.keyFromPrivate(f,d),o=this._truncateToN(o,!1,n.msgBitLength),Vu(!o.isNeg(),"Can not sign a negative message");var b=this.n.byteLength(),y=f.getPrivate().toArray("be",b),M=o.toArray("be",b);Vu(new Rs(M).eq(o),"Can not sign message");for(var w=new zW({hash:this.hash,entropy:y,nonce:M,pers:n.pers,persEnc:n.persEnc||"utf8"}),g=this.n.sub(new Rs(1)),_=0;;_++){var x=n.k?n.k(_):new Rs(w.generate(this.n.byteLength()));if(x=this._truncateToN(x,!0),!(x.cmpn(1)<=0||x.cmp(g)>=0)){var E=this.g.mul(x);if(!E.isInfinity()){var R=E.getX(),T=R.umod(this.n);if(T.cmpn(0)!==0){var N=x.invm(this.n).mul(T.mul(f.getPrivate()).iadd(o));if(N=N.umod(this.n),N.cmpn(0)!==0){var P=(E.getY().isOdd()?1:0)|(R.cmp(T)!==0?2:0);return n.canonical&&N.cmp(this.nh)>0&&(N=this.n.sub(N),P^=1),new wb({r:T,s:N,recoveryParam:P})}}}}}};jo.prototype.verify=function(o,f,d,n,v){v||(v={}),o=this._truncateToN(o,!1,v.msgBitLength),d=this.keyFromPublic(d,n),f=new wb(f,"hex");var b=f.r,y=f.s;if(b.cmpn(1)<0||b.cmp(this.n)>=0||y.cmpn(1)<0||y.cmp(this.n)>=0)return!1;var M=y.invm(this.n),w=M.mul(o).umod(this.n),g=M.mul(b).umod(this.n),_;return this.curve._maxwellTrick?(_=this.g.jmulAdd(w,d.getPublic(),g),_.isInfinity()?!1:_.eqXToP(b)):(_=this.g.mulAdd(w,d.getPublic(),g),_.isInfinity()?!1:_.getX().umod(this.n).cmp(b)===0)};jo.prototype.recoverPubKey=function(a,o,f,d){Vu((3&f)===f,"The recovery param is more than two bits"),o=new wb(o,d);var n=this.n,v=new Rs(a),b=o.r,y=o.s,M=f&1,w=f>>1;if(b.cmp(this.curve.p.umod(this.curve.n))>=0&&w)throw new Error("Unable to find sencond key candinate");w?b=this.curve.pointFromX(b.add(this.curve.n),M):b=this.curve.pointFromX(b,M);var g=o.r.invm(n),_=n.sub(v).mul(g).umod(n),x=y.mul(g).umod(n);return this.g.mulAdd(_,b,x)};jo.prototype.getKeyRecoveryParam=function(a,o,f,d){if(o=new wb(o,d),o.recoveryParam!==null)return o.recoveryParam;for(var n=0;n<4;n++){var v;try{v=this.recoverPubKey(a,o,n)}catch{continue}if(v.eq(f))return n}throw new Error("Unable to find valid recovery factor")}});var GW=St((aSe,ZW)=>{"use strict";var oSe=Ae(Be());Ie();Re();var U1=ja(),WW=U1.assert,jW=U1.parseBytes,Nd=U1.cachedProperty;function Tn(a,o){this.eddsa=a,this._secret=jW(o.secret),a.isPoint(o.pub)?this._pub=o.pub:this._pubBytes=jW(o.pub)}Tn.fromPublic=function(o,f){return f instanceof Tn?f:new Tn(o,{pub:f})};Tn.fromSecret=function(o,f){return f instanceof Tn?f:new Tn(o,{secret:f})};Tn.prototype.secret=function(){return this._secret};Nd(Tn,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});Nd(Tn,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});Nd(Tn,"privBytes",function(){var o=this.eddsa,f=this.hash(),d=o.encodingLength-1,n=f.slice(0,o.encodingLength);return n[0]&=248,n[d]&=127,n[d]|=64,n});Nd(Tn,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});Nd(Tn,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});Nd(Tn,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});Tn.prototype.sign=function(o){return WW(this._secret,"KeyPair can only verify"),this.eddsa.sign(o,this)};Tn.prototype.verify=function(o,f){return this.eddsa.verify(o,f,this)};Tn.prototype.getSecret=function(o){return WW(this._secret,"KeyPair is public only"),U1.encode(this.secret(),o)};Tn.prototype.getPublic=function(o){return U1.encode(this.pubBytes(),o)};ZW.exports=Tn});var YW=St((hSe,JW)=>{"use strict";var uSe=Ae(Be());Ie();Re();var Gde=vf(),Mb=ja(),VW=Mb.assert,_b=Mb.cachedProperty,Vde=Mb.parseBytes;function Ju(a,o){this.eddsa=a,typeof o!="object"&&(o=Vde(o)),Array.isArray(o)&&(VW(o.length===a.encodingLength*2,"Signature has invalid size"),o={R:o.slice(0,a.encodingLength),S:o.slice(a.encodingLength)}),VW(o.R&&o.S,"Signature without R or S"),a.isPoint(o.R)&&(this._R=o.R),o.S instanceof Gde&&(this._S=o.S),this._Rencoded=Array.isArray(o.R)?o.R:o.Rencoded,this._Sencoded=Array.isArray(o.S)?o.S:o.Sencoded}_b(Ju,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});_b(Ju,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});_b(Ju,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});_b(Ju,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Ju.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Ju.prototype.toHex=function(){return Mb.encode(this.toBytes(),"hex").toUpperCase()};JW.exports=Ju});var rZ=St((cSe,tZ)=>{"use strict";var pSe=Ae(Be());Ie();Re();var Jde=_d(),Yde=mb(),Cd=ja(),Xde=Cd.assert,QW=Cd.parseBytes,eZ=GW(),XW=YW();function _a(a){if(Xde(a==="ed25519","only tested with ed25519 so far"),!(this instanceof _a))return new _a(a);a=Yde[a].curve,this.curve=a,this.g=a.g,this.g.precompute(a.n.bitLength()+1),this.pointClass=a.point().constructor,this.encodingLength=Math.ceil(a.n.bitLength()/8),this.hash=Jde.sha512}tZ.exports=_a;_a.prototype.sign=function(o,f){o=QW(o);var d=this.keyFromSecret(f),n=this.hashInt(d.messagePrefix(),o),v=this.g.mul(n),b=this.encodePoint(v),y=this.hashInt(b,d.pubBytes(),o).mul(d.priv()),M=n.add(y).umod(this.curve.n);return this.makeSignature({R:v,S:M,Rencoded:b})};_a.prototype.verify=function(o,f,d){if(o=QW(o),f=this.makeSignature(f),f.S().gte(f.eddsa.curve.n)||f.S().isNeg())return!1;var n=this.keyFromPublic(d),v=this.hashInt(f.Rencoded(),n.pubBytes(),o),b=this.g.mul(f.S()),y=f.R().add(n.pub().mul(v));return y.eq(b)};_a.prototype.hashInt=function(){for(var o=this.hash(),f=0;f<arguments.length;f++)o.update(arguments[f]);return Cd.intFromLE(o.digest()).umod(this.curve.n)};_a.prototype.keyFromPublic=function(o){return eZ.fromPublic(this,o)};_a.prototype.keyFromSecret=function(o){return eZ.fromSecret(this,o)};_a.prototype.makeSignature=function(o){return o instanceof XW?o:new XW(this,o)};_a.prototype.encodePoint=function(o){var f=o.getY().toArray("le",this.encodingLength);return f[this.encodingLength-1]|=o.getX().isOdd()?128:0,f};_a.prototype.decodePoint=function(o){o=Cd.parseBytes(o);var f=o.length-1,d=o.slice(0,f).concat(o[f]&-129),n=(o[f]&128)!==0,v=Cd.intFromLE(d);return this.curve.pointFromY(v,n)};_a.prototype.encodeInt=function(o){return o.toArray("le",this.encodingLength)};_a.prototype.decodeInt=function(o){return Cd.intFromLE(o)};_a.prototype.isPoint=function(o){return o instanceof this.pointClass}});var nZ=St(iZ=>{"use strict";var gSe=Ae(Be());Ie();Re();var Yu=iZ;Yu.version=cW().version;Yu.utils=ja();Yu.rand=a5();Yu.curve=s5();Yu.curves=mb();Yu.ec=KW();Yu.eddsa=rZ()});var oZ=St((MSe,aZ)=>{var _Se=Ae(Be());Ie();Re();var Qde=nZ().ec,mf=new Qde("secp256k1"),Pr=mf.curve,yi=Pr.n.constructor;function ece(a,o){let f=new yi(o);if(f.cmp(Pr.p)>=0)return null;f=f.toRed(Pr.red);let d=f.redSqr().redIMul(f).redIAdd(Pr.b).redSqrt();a===3!==d.isOdd()&&(d=d.redNeg());let n=f.redSqr().redIMul(f);return d.redSqr().redISub(n.redIAdd(Pr.b)).isZero()?mf.keyPair({pub:{x:f,y:d}}):null}function tce(a,o,f){let d=new yi(o),n=new yi(f);if(d.cmp(Pr.p)>=0||n.cmp(Pr.p)>=0||(d=d.toRed(Pr.red),n=n.toRed(Pr.red),(a===6||a===7)&&n.isOdd()!==(a===7)))return null;let v=d.redSqr().redIMul(d);return n.redSqr().redISub(v.redIAdd(Pr.b)).isZero()?mf.keyPair({pub:{x:d,y:n}}):null}function mh(a){let o=a[0];switch(o){case 2:case 3:return a.length!==33?null:ece(o,a.subarray(1,33));case 4:case 6:case 7:return a.length!==65?null:tce(o,a.subarray(1,33),a.subarray(33,65));default:return null}}function Xu(a,o){let f=o.encode(null,a.length===33);for(let d=0;d<a.length;++d)a[d]=f[d]}aZ.exports={contextRandomize(){return 0},privateKeyVerify(a){let o=new yi(a);return o.cmp(Pr.n)<0&&!o.isZero()?0:1},privateKeyNegate(a){let o=new yi(a),f=Pr.n.sub(o).umod(Pr.n).toArrayLike(Uint8Array,"be",32);return a.set(f),0},privateKeyTweakAdd(a,o){let f=new yi(o);if(f.cmp(Pr.n)>=0||(f.iadd(new yi(a)),f.cmp(Pr.n)>=0&&f.isub(Pr.n),f.isZero()))return 1;let d=f.toArrayLike(Uint8Array,"be",32);return a.set(d),0},privateKeyTweakMul(a,o){let f=new yi(o);if(f.cmp(Pr.n)>=0||f.isZero())return 1;f.imul(new yi(a)),f.cmp(Pr.n)>=0&&(f=f.umod(Pr.n));let d=f.toArrayLike(Uint8Array,"be",32);return a.set(d),0},publicKeyVerify(a){return mh(a)===null?1:0},publicKeyCreate(a,o){let f=new yi(o);if(f.cmp(Pr.n)>=0||f.isZero())return 1;let d=mf.keyFromPrivate(o).getPublic();return Xu(a,d),0},publicKeyConvert(a,o){let f=mh(o);if(f===null)return 1;let d=f.getPublic();return Xu(a,d),0},publicKeyNegate(a,o){let f=mh(o);if(f===null)return 1;let d=f.getPublic();return d.y=d.y.redNeg(),Xu(a,d),0},publicKeyCombine(a,o){let f=new Array(o.length);for(let n=0;n<o.length;++n)if(f[n]=mh(o[n]),f[n]===null)return 1;let d=f[0].getPublic();for(let n=1;n<f.length;++n)d=d.add(f[n].pub);return d.isInfinity()?2:(Xu(a,d),0)},publicKeyTweakAdd(a,o,f){let d=mh(o);if(d===null)return 1;if(f=new yi(f),f.cmp(Pr.n)>=0)return 2;let n=d.getPublic().add(Pr.g.mul(f));return n.isInfinity()?2:(Xu(a,n),0)},publicKeyTweakMul(a,o,f){let d=mh(o);if(d===null)return 1;if(f=new yi(f),f.cmp(Pr.n)>=0||f.isZero())return 2;let n=d.getPublic().mul(f);return Xu(a,n),0},signatureNormalize(a){let o=new yi(a.subarray(0,32)),f=new yi(a.subarray(32,64));return o.cmp(Pr.n)>=0||f.cmp(Pr.n)>=0?1:(f.cmp(mf.nh)===1&&a.set(Pr.n.sub(f).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(a,o){let f=o.subarray(0,32),d=o.subarray(32,64);if(new yi(f).cmp(Pr.n)>=0||new yi(d).cmp(Pr.n)>=0)return 1;let{output:n}=a,v=n.subarray(4,37);v[0]=0,v.set(f,1);let b=33,y=0;for(;b>1&&v[y]===0&&!(v[y+1]&128);--b,++y);if(v=v.subarray(y),v[0]&128||b>1&&v[0]===0&&!(v[1]&128))return 1;let M=n.subarray(39,72);M[0]=0,M.set(d,1);let w=33,g=0;for(;w>1&&M[g]===0&&!(M[g+1]&128);--w,++g);return M=M.subarray(g),M[0]&128||w>1&&M[0]===0&&!(M[1]&128)?1:(a.outputlen=6+b+w,n[0]=48,n[1]=a.outputlen-2,n[2]=2,n[3]=v.length,n.set(v,4),n[4+b]=2,n[5+b]=M.length,n.set(M,6+b),0)},signatureImport(a,o){if(o.length<8||o.length>72||o[0]!==48||o[1]!==o.length-2||o[2]!==2)return 1;let f=o[3];if(f===0||5+f>=o.length||o[4+f]!==2)return 1;let d=o[5+f];if(d===0||6+f+d!==o.length||o[4]&128||f>1&&o[4]===0&&!(o[5]&128)||o[f+6]&128||d>1&&o[f+6]===0&&!(o[f+7]&128))return 1;let n=o.subarray(4,4+f);if(n.length===33&&n[0]===0&&(n=n.subarray(1)),n.length>32)return 1;let v=o.subarray(6+f);if(v.length===33&&v[0]===0&&(v=v.slice(1)),v.length>32)throw new Error("S length is too long");let b=new yi(n);b.cmp(Pr.n)>=0&&(b=new yi(0));let y=new yi(o.subarray(6+f));return y.cmp(Pr.n)>=0&&(y=new yi(0)),a.set(b.toArrayLike(Uint8Array,"be",32),0),a.set(y.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(a,o,f,d,n){if(n){let y=n;n=M=>{let w=y(o,f,null,d,M);if(!(w instanceof Uint8Array&&w.length===32))throw new Error("This is the way");return new yi(w)}}let v=new yi(f);if(v.cmp(Pr.n)>=0||v.isZero())return 1;let b;try{b=mf.sign(o,f,{canonical:!0,k:n,pers:d})}catch{return 1}return a.signature.set(b.r.toArrayLike(Uint8Array,"be",32),0),a.signature.set(b.s.toArrayLike(Uint8Array,"be",32),32),a.recid=b.recoveryParam,0},ecdsaVerify(a,o,f){let d={r:a.subarray(0,32),s:a.subarray(32,64)},n=new yi(d.r),v=new yi(d.s);if(n.cmp(Pr.n)>=0||v.cmp(Pr.n)>=0)return 1;if(v.cmp(mf.nh)===1||n.isZero()||v.isZero())return 3;let b=mh(f);if(b===null)return 2;let y=b.getPublic();return mf.verify(o,d,y)?0:3},ecdsaRecover(a,o,f,d){let n={r:o.slice(0,32),s:o.slice(32,64)},v=new yi(n.r),b=new yi(n.s);if(v.cmp(Pr.n)>=0||b.cmp(Pr.n)>=0)return 1;if(v.isZero()||b.isZero())return 2;let y;try{y=mf.recoverPubKey(d,n,f)}catch{return 2}return Xu(a,y),0},ecdh(a,o,f,d,n,v,b){let y=mh(o);if(y===null)return 1;let M=new yi(f);if(M.cmp(Pr.n)>=0||M.isZero())return 2;let w=y.getPublic().mul(M);if(n===void 0){let g=w.encode(null,!0),_=mf.hash().update(g).digest();for(let x=0;x<32;++x)a[x]=_[x]}else{v||(v=new Uint8Array(32));let g=w.getX().toArray("be",32);for(let R=0;R<32;++R)v[R]=g[R];b||(b=new Uint8Array(32));let _=w.getY().toArray("be",32);for(let R=0;R<32;++R)b[R]=_[R];let x=n(v,b,d);if(!(x instanceof Uint8Array&&x.length===a.length))return 2;a.set(x)}return 0}}});var m5=St((ESe,sZ)=>{var ASe=Ae(Be());Ie();Re();sZ.exports=dW()(oZ())});function rce(){if(fZ)return xb;fZ=!0;var a=typeof Reflect=="object"?Reflect:null,o=a&&typeof a.apply=="function"?a.apply:function(W,Q,K){return Function.prototype.apply.call(W,Q,K)},f;a&&typeof a.ownKeys=="function"?f=a.ownKeys:Object.getOwnPropertySymbols?f=function(W){return Object.getOwnPropertyNames(W).concat(Object.getOwnPropertySymbols(W))}:f=function(W){return Object.getOwnPropertyNames(W)};function d(Z){console&&console.warn&&console.warn(Z)}var n=Number.isNaN||function(W){return W!==W};function v(){v.init.call(this)}xb=v,xb.once=P,v.EventEmitter=v,v.prototype._events=void 0,v.prototype._eventsCount=0,v.prototype._maxListeners=void 0;var b=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(v,"defaultMaxListeners",{enumerable:!0,get:function(){return b},set:function(Z){if(typeof Z!="number"||Z<0||n(Z))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Z+".");b=Z}}),v.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},v.prototype.setMaxListeners=function(W){if(typeof W!="number"||W<0||n(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?v.defaultMaxListeners:Z._maxListeners}v.prototype.getMaxListeners=function(){return M(this)},v.prototype.emit=function(W){for(var Q=[],K=1;K<arguments.length;K++)Q.push(arguments[K]);var z=W==="error",X=this._events;if(X!==void 0)z=z&&X.error===void 0;else if(!z)return!1;if(z){var p;if(Q.length>0&&(p=Q[0]),p instanceof Error)throw p;var e=new Error("Unhandled error."+(p?" ("+p.message+")":""));throw e.context=p,e}var r=X[W];if(r===void 0)return!1;if(typeof r=="function")o(r,this,Q);else for(var i=r.length,s=R(r,i),K=0;K<i;++K)o(s[K],this,Q);return!0};function w(Z,W,Q,K){var z,X,p;if(y(Q),X=Z._events,X===void 0?(X=Z._events=Object.create(null),Z._eventsCount=0):(X.newListener!==void 0&&(Z.emit("newListener",W,Q.listener?Q.listener:Q),X=Z._events),p=X[W]),p===void 0)p=X[W]=Q,++Z._eventsCount;else if(typeof p=="function"?p=X[W]=K?[Q,p]:[p,Q]:K?p.unshift(Q):p.push(Q),z=M(Z),z>0&&p.length>z&&!p.warned){p.warned=!0;var e=new Error("Possible EventEmitter memory leak detected. "+p.length+" "+String(W)+" listeners added. Use emitter.setMaxListeners() to increase limit");e.name="MaxListenersExceededWarning",e.emitter=Z,e.type=W,e.count=p.length,d(e)}return Z}v.prototype.addListener=function(W,Q){return w(this,W,Q,!1)},v.prototype.on=v.prototype.addListener,v.prototype.prependListener=function(W,Q){return w(this,W,Q,!0)};function g(){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},z=g.bind(K);return z.listener=Q,K.wrapFn=z,z}v.prototype.once=function(W,Q){return y(Q),this.on(W,_(this,W,Q)),this},v.prototype.prependOnceListener=function(W,Q){return y(Q),this.prependListener(W,_(this,W,Q)),this},v.prototype.removeListener=function(W,Q){var K,z,X,p,e;if(y(Q),z=this._events,z===void 0)return this;if(K=z[W],K===void 0)return this;if(K===Q||K.listener===Q)--this._eventsCount===0?this._events=Object.create(null):(delete z[W],z.removeListener&&this.emit("removeListener",W,K.listener||Q));else if(typeof K!="function"){for(X=-1,p=K.length-1;p>=0;p--)if(K[p]===Q||K[p].listener===Q){e=K[p].listener,X=p;break}if(X<0)return this;X===0?K.shift():T(K,X),K.length===1&&(z[W]=K[0]),z.removeListener!==void 0&&this.emit("removeListener",W,e||Q)}return this},v.prototype.off=v.prototype.removeListener,v.prototype.removeAllListeners=function(W){var Q,K,z;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 X=Object.keys(K),p;for(z=0;z<X.length;++z)p=X[z],p!=="removeListener"&&this.removeAllListeners(p);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(z=Q.length-1;z>=0;z--)this.removeListener(W,Q[z]);return this};function x(Z,W,Q){var K=Z._events;if(K===void 0)return[];var z=K[W];return z===void 0?[]:typeof z=="function"?Q?[z.listener||z]:[z]:Q?N(z):R(z,z.length)}v.prototype.listeners=function(W){return x(this,W,!0)},v.prototype.rawListeners=function(W){return x(this,W,!1)},v.listenerCount=function(Z,W){return typeof Z.listenerCount=="function"?Z.listenerCount(W):E.call(Z,W)},v.prototype.listenerCount=E;function E(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}v.prototype.eventNames=function(){return this._eventsCount>0?f(this._events):[]};function R(Z,W){for(var Q=new Array(W),K=0;K<W;++K)Q[K]=Z[K];return Q}function T(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 z(p){Z.removeListener(W,X),K(p)}function X(){typeof Z.removeListener=="function"&&Z.removeListener("error",z),Q([].slice.call(arguments))}D(Z,W,X,{once:!0}),W!=="error"&&L(Z,z,{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 z(X){K.once&&Z.removeEventListener(W,z),Q(X)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Z)}return xb}var TSe,xb,fZ,Sb,ice,nce,ace,oce,sce,fce,hZ=Bh(()=>{TSe=Ae(Be());Ie();Re();xb={},fZ=!1;Sb=rce();Sb.once;Sb.once=function(a,o){return new Promise((f,d)=>{function n(...b){v!==void 0&&a.removeListener("error",v),f(b)}let v;o!=="error"&&(v=b=>{a.removeListener(name,n),d(b)},a.once("error",v)),a.once(o,n)})};Sb.on=function(a,o){let f=[],d=[],n=null,v=!1,b={async next(){let w=f.shift();if(w)return createIterResult(w,!1);if(n){let g=Promise.reject(n);return n=null,g}return v?createIterResult(void 0,!0):new Promise((g,_)=>d.push({resolve:g,reject:_}))},async return(){a.removeListener(o,y),a.removeListener("error",M),v=!0;for(let w of d)w.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(w){n=w,a.removeListener(o,y),a.removeListener("error",M)},[Symbol.asyncIterator](){return this}};return a.on(o,y),a.on("error",M),b;function y(...w){let g=d.shift();g?g.resolve(createIterResult(w,!1)):f.push(w)}function M(w){v=!0;let g=d.shift();g?g.reject(w):n=w,b.return()}};({EventEmitter:ice,defaultMaxListeners:nce,init:ace,listenerCount:oce,on:sce,once:fce}=Sb)});var g5={};yp(g5,{EventEmitter:()=>ice,defaultMaxListeners:()=>nce,init:()=>ace,listenerCount:()=>oce,on:()=>sce,once:()=>fce});var PSe,y5=Bh(()=>{PSe=Ae(Be());Ie();Re();hZ()});var w5=St((DSe,uZ)=>{var OSe=Ae(Be());Ie();Re();uZ.exports=(y5(),h0(g5)).EventEmitter});var M5=St((FSe,lZ)=>{var zSe=Ae(Be());Ie();Re();lZ.exports={}});var mZ=St((jSe,bZ)=>{"use strict";var WSe=Ae(Be());Ie();Re();function dZ(a,o){var f=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);o&&(d=d.filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable})),f.push.apply(f,d)}return f}function cZ(a){for(var o=1;o<arguments.length;o++){var f=arguments[o]!=null?arguments[o]:{};o%2?dZ(Object(f),!0).forEach(function(d){hce(a,d,f[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(f)):dZ(Object(f)).forEach(function(d){Object.defineProperty(a,d,Object.getOwnPropertyDescriptor(f,d))})}return a}function hce(a,o,f){return o=vZ(o),o in a?Object.defineProperty(a,o,{value:f,enumerable:!0,configurable:!0,writable:!0}):a[o]=f,a}function uce(a,o){if(!(a instanceof o))throw new TypeError("Cannot call a class as a function")}function pZ(a,o){for(var f=0;f<o.length;f++){var d=o[f];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,vZ(d.key),d)}}function lce(a,o,f){return o&&pZ(a.prototype,o),f&&pZ(a,f),Object.defineProperty(a,"prototype",{writable:!1}),a}function vZ(a){var o=dce(a,"string");return typeof o=="symbol"?o:String(o)}function dce(a,o){if(typeof a!="object"||a===null)return a;var f=a[Symbol.toPrimitive];if(f!==void 0){var d=f.call(a,o||"default");if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(a)}var cce=(ku(),h0(Tu)),Eb=cce.Buffer,pce=M5(),_5=pce.inspect,vce=_5&&_5.custom||"inspect";function bce(a,o,f){Eb.prototype.copy.call(a,o,f)}bZ.exports=function(){function a(){uce(this,a),this.head=null,this.tail=null,this.length=0}return lce(a,[{key:"push",value:function(f){var d={data:f,next:null};this.length>0?this.tail.next=d:this.head=d,this.tail=d,++this.length}},{key:"unshift",value:function(f){var d={data:f,next:this.head};this.length===0&&(this.tail=d),this.head=d,++this.length}},{key:"shift",value:function(){if(this.length!==0){var f=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,f}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(f){if(this.length===0)return"";for(var d=this.head,n=""+d.data;d=d.next;)n+=f+d.data;return n}},{key:"concat",value:function(f){if(this.length===0)return Eb.alloc(0);for(var d=Eb.allocUnsafe(f>>>0),n=this.head,v=0;n;)bce(n.data,d,v),v+=n.data.length,n=n.next;return d}},{key:"consume",value:function(f,d){var n;return f<this.head.data.length?(n=this.head.data.slice(0,f),this.head.data=this.head.data.slice(f)):f===this.head.data.length?n=this.shift():n=d?this._getString(f):this._getBuffer(f),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(f){var d=this.head,n=1,v=d.data;for(f-=v.length;d=d.next;){var b=d.data,y=f>b.length?b.length:f;if(y===b.length?v+=b:v+=b.slice(0,f),f-=y,f===0){y===b.length?(++n,d.next?this.head=d.next:this.head=this.tail=null):(this.head=d,d.data=b.slice(y));break}++n}return this.length-=n,v}},{key:"_getBuffer",value:function(f){var d=Eb.allocUnsafe(f),n=this.head,v=1;for(n.data.copy(d),f-=n.data.length;n=n.next;){var b=n.data,y=f>b.length?b.length:f;if(b.copy(d,d.length-f,0,y),f-=y,f===0){y===b.length?(++v,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=b.slice(y));break}++v}return this.length-=v,d}},{key:vce,value:function(f,d){return _5(this,cZ(cZ({},d),{},{depth:0,customInspect:!1}))}}]),a}()});var S5=St((VSe,yZ)=>{"use strict";var JSe=Ae(Be());Ie();Re();function mce(a,o){var f=this,d=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return d||n?(o?o(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ft.default.nextTick(x5,this,a)):ft.default.nextTick(x5,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(v){!o&&v?f._writableState?f._writableState.errorEmitted?ft.default.nextTick(Ab,f):(f._writableState.errorEmitted=!0,ft.default.nextTick(gZ,f,v)):ft.default.nextTick(gZ,f,v):o?(ft.default.nextTick(Ab,f),o(v)):ft.default.nextTick(Ab,f)}),this)}function gZ(a,o){x5(a,o),Ab(a)}function Ab(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function gce(){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 x5(a,o){a.emit("error",o)}function yce(a,o){var f=a._readableState,d=a._writableState;f&&f.autoDestroy||d&&d.autoDestroy?a.destroy(o):a.emit("error",o)}yZ.exports={destroy:mce,undestroy:gce,errorOrDestroy:yce}});var Qu=St((QSe,_Z)=>{"use strict";var eEe=Ae(Be());Ie();Re();function wce(a,o){a.prototype=Object.create(o.prototype),a.prototype.constructor=a,a.__proto__=o}var MZ={};function Wo(a,o,f){f||(f=Error);function d(v,b,y){return typeof o=="string"?o:o(v,b,y)}var n=function(v){wce(b,v);function b(y,M,w){return v.call(this,d(y,M,w))||this}return b}(f);n.prototype.name=f.name,n.prototype.code=a,MZ[a]=n}function wZ(a,o){if(Array.isArray(a)){var f=a.length;return a=a.map(function(d){return String(d)}),f>2?"one of ".concat(o," ").concat(a.slice(0,f-1).join(", "),", or ")+a[f-1]:f===2?"one of ".concat(o," ").concat(a[0]," or ").concat(a[1]):"of ".concat(o," ").concat(a[0])}else return"of ".concat(o," ").concat(String(a))}function Mce(a,o,f){return a.substr(!f||f<0?0:+f,o.length)===o}function _ce(a,o,f){return(f===void 0||f>a.length)&&(f=a.length),a.substring(f-o.length,f)===o}function xce(a,o,f){return typeof f!="number"&&(f=0),f+o.length>a.length?!1:a.indexOf(o,f)!==-1}Wo("ERR_INVALID_OPT_VALUE",function(a,o){return'The value "'+o+'" is invalid for option "'+a+'"'},TypeError);Wo("ERR_INVALID_ARG_TYPE",function(a,o,f){var d;typeof o=="string"&&Mce(o,"not ")?(d="must not be",o=o.replace(/^not /,"")):d="must be";var n;if(_ce(a," argument"))n="The ".concat(a," ").concat(d," ").concat(wZ(o,"type"));else{var v=xce(a,".")?"property":"argument";n='The "'.concat(a,'" ').concat(v," ").concat(d," ").concat(wZ(o,"type"))}return n+=". Received type ".concat(typeof f),n},TypeError);Wo("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Wo("ERR_METHOD_NOT_IMPLEMENTED",function(a){return"The "+a+" method is not implemented"});Wo("ERR_STREAM_PREMATURE_CLOSE","Premature close");Wo("ERR_STREAM_DESTROYED",function(a){return"Cannot call "+a+" after a stream was destroyed"});Wo("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Wo("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Wo("ERR_STREAM_WRITE_AFTER_END","write after end");Wo("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Wo("ERR_UNKNOWN_ENCODING",function(a){return"Unknown encoding: "+a},TypeError);Wo("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");_Z.exports.codes=MZ});var E5=St((iEe,xZ)=>{"use strict";var nEe=Ae(Be());Ie();Re();var Sce=Qu().codes.ERR_INVALID_OPT_VALUE;function Ece(a,o,f){return a.highWaterMark!=null?a.highWaterMark:o?a[f]:null}function Ace(a,o,f,d){var n=Ece(o,d,f);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var v=d?f:"highWaterMark";throw new Sce(v,n)}return Math.floor(n)}return a.objectMode?16:16*1024}xZ.exports={getHighWaterMark:Ace}});var EZ=St((sEe,SZ)=>{var fEe=Ae(Be());Ie();Re();SZ.exports=Bce;function Bce(a,o){if(A5("noDeprecation"))return a;var f=!1;function d(){if(!f){if(A5("throwDeprecation"))throw new Error(o);A5("traceDeprecation")?console.trace(o):console.warn(o),f=!0}return a.apply(this,arguments)}return d}function A5(a){try{if(!globalThis.localStorage)return!1}catch{return!1}var o=globalThis.localStorage[a];return o==null?!1:String(o).toLowerCase()==="true"}});var I5=St((lEe,kZ)=>{"use strict";var dEe=Ae(Be());Ie();Re();kZ.exports=Wi;function BZ(a){var o=this;this.next=null,this.entry=null,this.finish=function(){e1e(o,a)}}var Ld;Wi.WritableState=z1;var Rce={deprecate:EZ()},RZ=w5(),Rb=(ku(),h0(Tu)).Buffer,Ice=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Tce(a){return Rb.from(a)}function kce(a){return Rb.isBuffer(a)||a instanceof Ice}var R5=S5(),$ce=E5(),Pce=$ce.getHighWaterMark,gh=Qu().codes,Nce=gh.ERR_INVALID_ARG_TYPE,Cce=gh.ERR_METHOD_NOT_IMPLEMENTED,Lce=gh.ERR_MULTIPLE_CALLBACK,Dce=gh.ERR_STREAM_CANNOT_PIPE,Oce=gh.ERR_STREAM_DESTROYED,qce=gh.ERR_STREAM_NULL_VALUES,Uce=gh.ERR_STREAM_WRITE_AFTER_END,Fce=gh.ERR_UNKNOWN_ENCODING,Dd=R5.errorOrDestroy;Cn()(Wi,RZ);function zce(){}function z1(a,o,f){Ld=Ld||el(),a=a||{},typeof f!="boolean"&&(f=o instanceof Ld),this.objectMode=!!a.objectMode,f&&(this.objectMode=this.objectMode||!!a.writableObjectMode),this.highWaterMark=Pce(this,a,"writableHighWaterMark",f),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=a.decodeStrings===!1;this.decodeStrings=!d,this.defaultEncoding=a.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){Vce(o,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=a.emitClose!==!1,this.autoDestroy=!!a.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new BZ(this)}z1.prototype.getBuffer=function(){for(var o=this.bufferedRequest,f=[];o;)f.push(o),o=o.next;return f};(function(){try{Object.defineProperty(z1.prototype,"buffer",{get:Rce.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Bb;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Bb=Function.prototype[Symbol.hasInstance],Object.defineProperty(Wi,Symbol.hasInstance,{value:function(o){return Bb.call(this,o)?!0:this!==Wi?!1:o&&o._writableState instanceof z1}})):Bb=function(o){return o instanceof this};function Wi(a){Ld=Ld||el();var o=this instanceof Ld;if(!o&&!Bb.call(Wi,this))return new Wi(a);this._writableState=new z1(a,this,o),this.writable=!0,a&&(typeof a.write=="function"&&(this._write=a.write),typeof a.writev=="function"&&(this._writev=a.writev),typeof a.destroy=="function"&&(this._destroy=a.destroy),typeof a.final=="function"&&(this._final=a.final)),RZ.call(this)}Wi.prototype.pipe=function(){Dd(this,new Dce)};function Hce(a,o){var f=new Uce;Dd(a,f),ft.default.nextTick(o,f)}function Kce(a,o,f,d){var n;return f===null?n=new qce:typeof f!="string"&&!o.objectMode&&(n=new Nce("chunk",["string","Buffer"],f)),n?(Dd(a,n),ft.default.nextTick(d,n),!1):!0}Wi.prototype.write=function(a,o,f){var d=this._writableState,n=!1,v=!d.objectMode&&kce(a);return v&&!Rb.isBuffer(a)&&(a=Tce(a)),typeof o=="function"&&(f=o,o=null),v?o="buffer":o||(o=d.defaultEncoding),typeof f!="function"&&(f=zce),d.ending?Hce(this,f):(v||Kce(this,d,a,f))&&(d.pendingcb++,n=Wce(this,d,v,a,o,f)),n};Wi.prototype.cork=function(){this._writableState.corked++};Wi.prototype.uncork=function(){var a=this._writableState;a.corked&&(a.corked--,!a.writing&&!a.corked&&!a.bufferProcessing&&a.bufferedRequest&&IZ(this,a))};Wi.prototype.setDefaultEncoding=function(o){if(typeof o=="string"&&(o=o.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((o+"").toLowerCase())>-1))throw new Fce(o);return this._writableState.defaultEncoding=o,this};Object.defineProperty(Wi.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function jce(a,o,f){return!a.objectMode&&a.decodeStrings!==!1&&typeof o=="string"&&(o=Rb.from(o,f)),o}Object.defineProperty(Wi.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Wce(a,o,f,d,n,v){if(!f){var b=jce(o,d,n);d!==b&&(f=!0,n="buffer",d=b)}var y=o.objectMode?1:d.length;o.length+=y;var M=o.length<o.highWaterMark;if(M||(o.needDrain=!0),o.writing||o.corked){var w=o.lastBufferedRequest;o.lastBufferedRequest={chunk:d,encoding:n,isBuf:f,callback:v,next:null},w?w.next=o.lastBufferedRequest:o.bufferedRequest=o.lastBufferedRequest,o.bufferedRequestCount+=1}else B5(a,o,!1,y,d,n,v);return M}function B5(a,o,f,d,n,v,b){o.writelen=d,o.writecb=b,o.writing=!0,o.sync=!0,o.destroyed?o.onwrite(new Oce("write")):f?a._writev(n,o.onwrite):a._write(n,v,o.onwrite),o.sync=!1}function Zce(a,o,f,d,n){--o.pendingcb,f?(ft.default.nextTick(n,d),ft.default.nextTick(F1,a,o),a._writableState.errorEmitted=!0,Dd(a,d)):(n(d),a._writableState.errorEmitted=!0,Dd(a,d),F1(a,o))}function Gce(a){a.writing=!1,a.writecb=null,a.length-=a.writelen,a.writelen=0}function Vce(a,o){var f=a._writableState,d=f.sync,n=f.writecb;if(typeof n!="function")throw new Lce;if(Gce(f),o)Zce(a,f,d,o,n);else{var v=TZ(f)||a.destroyed;!v&&!f.corked&&!f.bufferProcessing&&f.bufferedRequest&&IZ(a,f),d?ft.default.nextTick(AZ,a,f,v,n):AZ(a,f,v,n)}}function AZ(a,o,f,d){f||Jce(a,o),o.pendingcb--,d(),F1(a,o)}function Jce(a,o){o.length===0&&o.needDrain&&(o.needDrain=!1,a.emit("drain"))}function IZ(a,o){o.bufferProcessing=!0;var f=o.bufferedRequest;if(a._writev&&f&&f.next){var d=o.bufferedRequestCount,n=new Array(d),v=o.corkedRequestsFree;v.entry=f;for(var b=0,y=!0;f;)n[b]=f,f.isBuf||(y=!1),f=f.next,b+=1;n.allBuffers=y,B5(a,o,!0,o.length,n,"",v.finish),o.pendingcb++,o.lastBufferedRequest=null,v.next?(o.corkedRequestsFree=v.next,v.next=null):o.corkedRequestsFree=new BZ(o),o.bufferedRequestCount=0}else{for(;f;){var M=f.chunk,w=f.encoding,g=f.callback,_=o.objectMode?1:M.length;if(B5(a,o,!1,_,M,w,g),f=f.next,o.bufferedRequestCount--,o.writing)break}f===null&&(o.lastBufferedRequest=null)}o.bufferedRequest=f,o.bufferProcessing=!1}Wi.prototype._write=function(a,o,f){f(new Cce("_write()"))};Wi.prototype._writev=null;Wi.prototype.end=function(a,o,f){var d=this._writableState;return typeof a=="function"?(f=a,a=null,o=null):typeof o=="function"&&(f=o,o=null),a!=null&&this.write(a,o),d.corked&&(d.corked=1,this.uncork()),d.ending||Qce(this,d,f),this};Object.defineProperty(Wi.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function TZ(a){return a.ending&&a.length===0&&a.bufferedRequest===null&&!a.finished&&!a.writing}function Yce(a,o){a._final(function(f){o.pendingcb--,f&&Dd(a,f),o.prefinished=!0,a.emit("prefinish"),F1(a,o)})}function Xce(a,o){!o.prefinished&&!o.finalCalled&&(typeof a._final=="function"&&!o.destroyed?(o.pendingcb++,o.finalCalled=!0,ft.default.nextTick(Yce,a,o)):(o.prefinished=!0,a.emit("prefinish")))}function F1(a,o){var f=TZ(o);if(f&&(Xce(a,o),o.pendingcb===0&&(o.finished=!0,a.emit("finish"),o.autoDestroy))){var d=a._readableState;(!d||d.autoDestroy&&d.endEmitted)&&a.destroy()}return f}function Qce(a,o,f){o.ending=!0,F1(a,o),f&&(o.finished?ft.default.nextTick(f):a.once("finish",f)),o.ended=!0,a.writable=!1}function e1e(a,o,f){var d=a.entry;for(a.entry=null;d;){var n=d.callback;o.pendingcb--,n(f),d=d.next}o.corkedRequestsFree.next=a}Object.defineProperty(Wi.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(o){this._writableState&&(this._writableState.destroyed=o)}});Wi.prototype.destroy=R5.destroy;Wi.prototype._undestroy=R5.undestroy;Wi.prototype._destroy=function(a,o){o(a)}});var el=St((vEe,PZ)=>{"use strict";var bEe=Ae(Be());Ie();Re();var t1e=Object.keys||function(a){var o=[];for(var f in a)o.push(f);return o};PZ.exports=gf;var $Z=$5(),k5=I5();Cn()(gf,$Z);for(T5=t1e(k5.prototype),Ib=0;Ib<T5.length;Ib++)Tb=T5[Ib],gf.prototype[Tb]||(gf.prototype[Tb]=k5.prototype[Tb]);var T5,Tb,Ib;function gf(a){if(!(this instanceof gf))return new gf(a);$Z.call(this,a),k5.call(this,a),this.allowHalfOpen=!0,a&&(a.readable===!1&&(this.readable=!1),a.writable===!1&&(this.writable=!1),a.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",r1e)))}Object.defineProperty(gf.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(gf.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(gf.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function r1e(){this._writableState.ended||ft.default.nextTick(i1e,this)}function i1e(a){a.end()}Object.defineProperty(gf.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(o){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=o,this._writableState.destroyed=o)}})});var LZ=St((P5,CZ)=>{var yEe=Ae(Be());Ie();Re();var kb=(ku(),h0(Tu)),i0=kb.Buffer;function NZ(a,o){for(var f in a)o[f]=a[f]}i0.from&&i0.alloc&&i0.allocUnsafe&&i0.allocUnsafeSlow?CZ.exports=kb:(NZ(kb,P5),P5.Buffer=Od);function Od(a,o,f){return i0(a,o,f)}NZ(i0,Od);Od.from=function(a,o,f){if(typeof a=="number")throw new TypeError("Argument must not be a number");return i0(a,o,f)};Od.alloc=function(a,o,f){if(typeof a!="number")throw new TypeError("Argument must be a number");var d=i0(a);return o!==void 0?typeof f=="string"?d.fill(o,f):d.fill(o):d.fill(0),d};Od.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return i0(a)};Od.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return kb.SlowBuffer(a)}});var L5=St(OZ=>{"use strict";var xEe=Ae(Be());Ie();Re();var C5=LZ().Buffer,DZ=C5.isEncoding||function(a){switch(a=""+a,a&&a.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 n1e(a){if(!a)return"utf8";for(var o;;)switch(a){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 a;default:if(o)return;a=(""+a).toLowerCase(),o=!0}}function a1e(a){var o=n1e(a);if(typeof o!="string"&&(C5.isEncoding===DZ||!DZ(a)))throw new Error("Unknown encoding: "+a);return o||a}OZ.StringDecoder=H1;function H1(a){this.encoding=a1e(a);var o;switch(this.encoding){case"utf16le":this.text=l1e,this.end=d1e,o=4;break;case"utf8":this.fillLast=f1e,o=4;break;case"base64":this.text=c1e,this.end=p1e,o=3;break;default:this.write=v1e,this.end=b1e;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=C5.allocUnsafe(o)}H1.prototype.write=function(a){if(a.length===0)return"";var o,f;if(this.lastNeed){if(o=this.fillLast(a),o===void 0)return"";f=this.lastNeed,this.lastNeed=0}else f=0;return f<a.length?o?o+this.text(a,f):this.text(a,f):o||""};H1.prototype.end=u1e;H1.prototype.text=h1e;H1.prototype.fillLast=function(a){if(this.lastNeed<=a.length)return a.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);a.copy(this.lastChar,this.lastTotal-this.lastNeed,0,a.length),this.lastNeed-=a.length};function N5(a){return a<=127?0:a>>5===6?2:a>>4===14?3:a>>3===30?4:a>>6===2?-1:-2}function o1e(a,o,f){var d=o.length-1;if(d<f)return 0;var n=N5(o[d]);return n>=0?(n>0&&(a.lastNeed=n-1),n):--d<f||n===-2?0:(n=N5(o[d]),n>=0?(n>0&&(a.lastNeed=n-2),n):--d<f||n===-2?0:(n=N5(o[d]),n>=0?(n>0&&(n===2?n=0:a.lastNeed=n-3),n):0))}function s1e(a,o,f){if((o[0]&192)!==128)return a.lastNeed=0,"\uFFFD";if(a.lastNeed>1&&o.length>1){if((o[1]&192)!==128)return a.lastNeed=1,"\uFFFD";if(a.lastNeed>2&&o.length>2&&(o[2]&192)!==128)return a.lastNeed=2,"\uFFFD"}}function f1e(a){var o=this.lastTotal-this.lastNeed,f=s1e(this,a,o);if(f!==void 0)return f;if(this.lastNeed<=a.length)return a.copy(this.lastChar,o,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);a.copy(this.lastChar,o,0,a.length),this.lastNeed-=a.length}function h1e(a,o){var f=o1e(this,a,o);if(!this.lastNeed)return a.toString("utf8",o);this.lastTotal=f;var d=a.length-(f-this.lastNeed);return a.copy(this.lastChar,0,d),a.toString("utf8",o,d)}function u1e(a){var o=a&&a.length?this.write(a):"";return this.lastNeed?o+"\uFFFD":o}function l1e(a,o){if((a.length-o)%2===0){var f=a.toString("utf16le",o);if(f){var d=f.charCodeAt(f.length-1);if(d>=55296&&d<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=a[a.length-2],this.lastChar[1]=a[a.length-1],f.slice(0,-1)}return f}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=a[a.length-1],a.toString("utf16le",o,a.length-1)}function d1e(a){var o=a&&a.length?this.write(a):"";if(this.lastNeed){var f=this.lastTotal-this.lastNeed;return o+this.lastChar.toString("utf16le",0,f)}return o}function c1e(a,o){var f=(a.length-o)%3;return f===0?a.toString("base64",o):(this.lastNeed=3-f,this.lastTotal=3,f===1?this.lastChar[0]=a[a.length-1]:(this.lastChar[0]=a[a.length-2],this.lastChar[1]=a[a.length-1]),a.toString("base64",o,a.length-f))}function p1e(a){var o=a&&a.length?this.write(a):"";return this.lastNeed?o+this.lastChar.toString("base64",0,3-this.lastNeed):o}function v1e(a){return a.toString(this.encoding)}function b1e(a){return a&&a.length?this.write(a):""}});var $b=St((AEe,FZ)=>{"use strict";var BEe=Ae(Be());Ie();Re();var qZ=Qu().codes.ERR_STREAM_PREMATURE_CLOSE;function m1e(a){var o=!1;return function(){if(!o){o=!0;for(var f=arguments.length,d=new Array(f),n=0;n<f;n++)d[n]=arguments[n];a.apply(this,d)}}}function g1e(){}function y1e(a){return a.setHeader&&typeof a.abort=="function"}function UZ(a,o,f){if(typeof o=="function")return UZ(a,null,o);o||(o={}),f=m1e(f||g1e);var d=o.readable||o.readable!==!1&&a.readable,n=o.writable||o.writable!==!1&&a.writable,v=function(){a.writable||y()},b=a._writableState&&a._writableState.finished,y=function(){n=!1,b=!0,d||f.call(a)},M=a._readableState&&a._readableState.endEmitted,w=function(){d=!1,M=!0,n||f.call(a)},g=function(R){f.call(a,R)},_=function(){var R;if(d&&!M)return(!a._readableState||!a._readableState.ended)&&(R=new qZ),f.call(a,R);if(n&&!b)return(!a._writableState||!a._writableState.ended)&&(R=new qZ),f.call(a,R)},x=function(){a.req.on("finish",y)};return y1e(a)?(a.on("complete",y),a.on("abort",_),a.req?x():a.on("request",x)):n&&!a._writableState&&(a.on("end",v),a.on("close",v)),a.on("end",w),a.on("finish",y),o.error!==!1&&a.on("error",g),a.on("close",_),function(){a.removeListener("complete",y),a.removeListener("abort",_),a.removeListener("request",x),a.req&&a.req.removeListener("finish",y),a.removeListener("end",v),a.removeListener("close",v),a.removeListener("finish",y),a.removeListener("end",w),a.removeListener("error",g),a.removeListener("close",_)}}FZ.exports=UZ});var HZ=St((TEe,zZ)=>{"use strict";var kEe=Ae(Be());Ie();Re();var Pb;function yh(a,o,f){return o=w1e(o),o in a?Object.defineProperty(a,o,{value:f,enumerable:!0,configurable:!0,writable:!0}):a[o]=f,a}function w1e(a){var o=M1e(a,"string");return typeof o=="symbol"?o:String(o)}function M1e(a,o){if(typeof a!="object"||a===null)return a;var f=a[Symbol.toPrimitive];if(f!==void 0){var d=f.call(a,o||"default");if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(a)}var _1e=$b(),wh=Symbol("lastResolve"),tl=Symbol("lastReject"),K1=Symbol("error"),Nb=Symbol("ended"),rl=Symbol("lastPromise"),D5=Symbol("handlePromise"),il=Symbol("stream");function Mh(a,o){return{value:a,done:o}}function x1e(a){var o=a[wh];if(o!==null){var f=a[il].read();f!==null&&(a[rl]=null,a[wh]=null,a[tl]=null,o(Mh(f,!1)))}}function S1e(a){ft.default.nextTick(x1e,a)}function E1e(a,o){return function(f,d){a.then(function(){if(o[Nb]){f(Mh(void 0,!0));return}o[D5](f,d)},d)}}var A1e=Object.getPrototypeOf(function(){}),B1e=Object.setPrototypeOf((Pb={get stream(){return this[il]},next:function(){var o=this,f=this[K1];if(f!==null)return Promise.reject(f);if(this[Nb])return Promise.resolve(Mh(void 0,!0));if(this[il].destroyed)return new Promise(function(b,y){ft.default.nextTick(function(){o[K1]?y(o[K1]):b(Mh(void 0,!0))})});var d=this[rl],n;if(d)n=new Promise(E1e(d,this));else{var v=this[il].read();if(v!==null)return Promise.resolve(Mh(v,!1));n=new Promise(this[D5])}return this[rl]=n,n}},yh(Pb,Symbol.asyncIterator,function(){return this}),yh(Pb,"return",function(){var o=this;return new Promise(function(f,d){o[il].destroy(null,function(n){if(n){d(n);return}f(Mh(void 0,!0))})})}),Pb),A1e),R1e=function(o){var f,d=Object.create(B1e,(f={},yh(f,il,{value:o,writable:!0}),yh(f,wh,{value:null,writable:!0}),yh(f,tl,{value:null,writable:!0}),yh(f,K1,{value:null,writable:!0}),yh(f,Nb,{value:o._readableState.endEmitted,writable:!0}),yh(f,D5,{value:function(v,b){var y=d[il].read();y?(d[rl]=null,d[wh]=null,d[tl]=null,v(Mh(y,!1))):(d[wh]=v,d[tl]=b)},writable:!0}),f));return d[rl]=null,_1e(o,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var v=d[tl];v!==null&&(d[rl]=null,d[wh]=null,d[tl]=null,v(n)),d[K1]=n;return}var b=d[wh];b!==null&&(d[rl]=null,d[wh]=null,d[tl]=null,b(Mh(void 0,!0))),d[Nb]=!0}),o.on("readable",S1e.bind(null,d)),d};zZ.exports=R1e});var jZ=St((NEe,KZ)=>{var CEe=Ae(Be());Ie();Re();KZ.exports=function(){throw new Error("Readable.from is not available in the browser")}});var $5=St((qEe,tG)=>{"use strict";var UEe=Ae(Be());Ie();Re();tG.exports=zr;var qd;zr.ReadableState=VZ;var OEe=(y5(),h0(g5)).EventEmitter,GZ=function(o,f){return o.listeners(f).length},W1=w5(),Cb=(ku(),h0(Tu)).Buffer,I1e=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function T1e(a){return Cb.from(a)}function k1e(a){return Cb.isBuffer(a)||a instanceof I1e}var O5=M5(),Ar;O5&&O5.debuglog?Ar=O5.debuglog("stream"):Ar=function(){};var $1e=mZ(),j5=S5(),P1e=E5(),N1e=P1e.getHighWaterMark,Lb=Qu().codes,C1e=Lb.ERR_INVALID_ARG_TYPE,L1e=Lb.ERR_STREAM_PUSH_AFTER_EOF,D1e=Lb.ERR_METHOD_NOT_IMPLEMENTED,O1e=Lb.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ud,q5,U5;Cn()(zr,W1);var j1=j5.errorOrDestroy,F5=["error","close","destroy","pause","resume"];function q1e(a,o,f){if(typeof a.prependListener=="function")return a.prependListener(o,f);!a._events||!a._events[o]?a.on(o,f):Array.isArray(a._events[o])?a._events[o].unshift(f):a._events[o]=[f,a._events[o]]}function VZ(a,o,f){qd=qd||el(),a=a||{},typeof f!="boolean"&&(f=o instanceof qd),this.objectMode=!!a.objectMode,f&&(this.objectMode=this.objectMode||!!a.readableObjectMode),this.highWaterMark=N1e(this,a,"readableHighWaterMark",f),this.buffer=new $1e,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=a.emitClose!==!1,this.autoDestroy=!!a.autoDestroy,this.destroyed=!1,this.defaultEncoding=a.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,a.encoding&&(Ud||(Ud=L5().StringDecoder),this.decoder=new Ud(a.encoding),this.encoding=a.encoding)}function zr(a){if(qd=qd||el(),!(this instanceof zr))return new zr(a);var o=this instanceof qd;this._readableState=new VZ(a,this,o),this.readable=!0,a&&(typeof a.read=="function"&&(this._read=a.read),typeof a.destroy=="function"&&(this._destroy=a.destroy)),W1.call(this)}Object.defineProperty(zr.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(o){this._readableState&&(this._readableState.destroyed=o)}});zr.prototype.destroy=j5.destroy;zr.prototype._undestroy=j5.undestroy;zr.prototype._destroy=function(a,o){o(a)};zr.prototype.push=function(a,o){var f=this._readableState,d;return f.objectMode?d=!0:typeof a=="string"&&(o=o||f.defaultEncoding,o!==f.encoding&&(a=Cb.from(a,o),o=""),d=!0),JZ(this,a,o,!1,d)};zr.prototype.unshift=function(a){return JZ(this,a,null,!0,!1)};function JZ(a,o,f,d,n){Ar("readableAddChunk",o);var v=a._readableState;if(o===null)v.reading=!1,z1e(a,v);else{var b;if(n||(b=U1e(v,o)),b)j1(a,b);else if(v.objectMode||o&&o.length>0)if(typeof o!="string"&&!v.objectMode&&Object.getPrototypeOf(o)!==Cb.prototype&&(o=T1e(o)),d)v.endEmitted?j1(a,new O1e):z5(a,v,o,!0);else if(v.ended)j1(a,new L1e);else{if(v.destroyed)return!1;v.reading=!1,v.decoder&&!f?(o=v.decoder.write(o),v.objectMode||o.length!==0?z5(a,v,o,!1):K5(a,v)):z5(a,v,o,!1)}else d||(v.reading=!1,K5(a,v))}return!v.ended&&(v.length<v.highWaterMark||v.length===0)}function z5(a,o,f,d){o.flowing&&o.length===0&&!o.sync?(o.awaitDrain=0,a.emit("data",f)):(o.length+=o.objectMode?1:f.length,d?o.buffer.unshift(f):o.buffer.push(f),o.needReadable&&Db(a)),K5(a,o)}function U1e(a,o){var f;return!k1e(o)&&typeof o!="string"&&o!==void 0&&!a.objectMode&&(f=new C1e("chunk",["string","Buffer","Uint8Array"],o)),f}zr.prototype.isPaused=function(){return this._readableState.flowing===!1};zr.prototype.setEncoding=function(a){Ud||(Ud=L5().StringDecoder);var o=new Ud(a);this._readableState.decoder=o,this._readableState.encoding=this._readableState.decoder.encoding;for(var f=this._readableState.buffer.head,d="";f!==null;)d+=o.write(f.data),f=f.next;return this._readableState.buffer.clear(),d!==""&&this._readableState.buffer.push(d),this._readableState.length=d.length,this};var WZ=1073741824;function F1e(a){return a>=WZ?a=WZ:(a--,a|=a>>>1,a|=a>>>2,a|=a>>>4,a|=a>>>8,a|=a>>>16,a++),a}function ZZ(a,o){return a<=0||o.length===0&&o.ended?0:o.objectMode?1:a!==a?o.flowing&&o.length?o.buffer.head.data.length:o.length:(a>o.highWaterMark&&(o.highWaterMark=F1e(a)),a<=o.length?a:o.ended?o.length:(o.needReadable=!0,0))}zr.prototype.read=function(a){Ar("read",a),a=parseInt(a,10);var o=this._readableState,f=a;if(a!==0&&(o.emittedReadable=!1),a===0&&o.needReadable&&((o.highWaterMark!==0?o.length>=o.highWaterMark:o.length>0)||o.ended))return Ar("read: emitReadable",o.length,o.ended),o.length===0&&o.ended?H5(this):Db(this),null;if(a=ZZ(a,o),a===0&&o.ended)return o.length===0&&H5(this),null;var d=o.needReadable;Ar("need readable",d),(o.length===0||o.length-a<o.highWaterMark)&&(d=!0,Ar("length less than watermark",d)),o.ended||o.reading?(d=!1,Ar("reading or ended",d)):d&&(Ar("do read"),o.reading=!0,o.sync=!0,o.length===0&&(o.needReadable=!0),this._read(o.highWaterMark),o.sync=!1,o.reading||(a=ZZ(f,o)));var n;return a>0?n=QZ(a,o):n=null,n===null?(o.needReadable=o.length<=o.highWaterMark,a=0):(o.length-=a,o.awaitDrain=0),o.length===0&&(o.ended||(o.needReadable=!0),f!==a&&o.ended&&H5(this)),n!==null&&this.emit("data",n),n};function z1e(a,o){if(Ar("onEofChunk"),!o.ended){if(o.decoder){var f=o.decoder.end();f&&f.length&&(o.buffer.push(f),o.length+=o.objectMode?1:f.length)}o.ended=!0,o.sync?Db(a):(o.needReadable=!1,o.emittedReadable||(o.emittedReadable=!0,YZ(a)))}}function Db(a){var o=a._readableState;Ar("emitReadable",o.needReadable,o.emittedReadable),o.needReadable=!1,o.emittedReadable||(Ar("emitReadable",o.flowing),o.emittedReadable=!0,ft.default.nextTick(YZ,a))}function YZ(a){var o=a._readableState;Ar("emitReadable_",o.destroyed,o.length,o.ended),!o.destroyed&&(o.length||o.ended)&&(a.emit("readable"),o.emittedReadable=!1),o.needReadable=!o.flowing&&!o.ended&&o.length<=o.highWaterMark,W5(a)}function K5(a,o){o.readingMore||(o.readingMore=!0,ft.default.nextTick(H1e,a,o))}function H1e(a,o){for(;!o.reading&&!o.ended&&(o.length<o.highWaterMark||o.flowing&&o.length===0);){var f=o.length;if(Ar("maybeReadMore read 0"),a.read(0),f===o.length)break}o.readingMore=!1}zr.prototype._read=function(a){j1(this,new D1e("_read()"))};zr.prototype.pipe=function(a,o){var f=this,d=this._readableState;switch(d.pipesCount){case 0:d.pipes=a;break;case 1:d.pipes=[d.pipes,a];break;default:d.pipes.push(a);break}d.pipesCount+=1,Ar("pipe count=%d opts=%j",d.pipesCount,o);var n=(!o||o.end!==!1)&&a!==ft.default.stdout&&a!==ft.default.stderr,v=n?y:T;d.endEmitted?ft.default.nextTick(v):f.once("end",v),a.on("unpipe",b);function b(N,P){Ar("onunpipe"),N===f&&P&&P.hasUnpiped===!1&&(P.hasUnpiped=!0,g())}function y(){Ar("onend"),a.end()}var M=K1e(f);a.on("drain",M);var w=!1;function g(){Ar("cleanup"),a.removeListener("close",E),a.removeListener("finish",R),a.removeListener("drain",M),a.removeListener("error",x),a.removeListener("unpipe",b),f.removeListener("end",y),f.removeListener("end",T),f.removeListener("data",_),w=!0,d.awaitDrain&&(!a._writableState||a._writableState.needDrain)&&M()}f.on("data",_);function _(N){Ar("ondata");var P=a.write(N);Ar("dest.write",P),P===!1&&((d.pipesCount===1&&d.pipes===a||d.pipesCount>1&&eG(d.pipes,a)!==-1)&&!w&&(Ar("false write response, pause",d.awaitDrain),d.awaitDrain++),f.pause())}function x(N){Ar("onerror",N),T(),a.removeListener("error",x),GZ(a,"error")===0&&j1(a,N)}q1e(a,"error",x);function E(){a.removeListener("finish",R),T()}a.once("close",E);function R(){Ar("onfinish"),a.removeListener("close",E),T()}a.once("finish",R);function T(){Ar("unpipe"),f.unpipe(a)}return a.emit("pipe",f),d.flowing||(Ar("pipe resume"),f.resume()),a};function K1e(a){return function(){var f=a._readableState;Ar("pipeOnDrain",f.awaitDrain),f.awaitDrain&&f.awaitDrain--,f.awaitDrain===0&&GZ(a,"data")&&(f.flowing=!0,W5(a))}}zr.prototype.unpipe=function(a){var o=this._readableState,f={hasUnpiped:!1};if(o.pipesCount===0)return this;if(o.pipesCount===1)return a&&a!==o.pipes?this:(a||(a=o.pipes),o.pipes=null,o.pipesCount=0,o.flowing=!1,a&&a.emit("unpipe",this,f),this);if(!a){var d=o.pipes,n=o.pipesCount;o.pipes=null,o.pipesCount=0,o.flowing=!1;for(var v=0;v<n;v++)d[v].emit("unpipe",this,{hasUnpiped:!1});return this}var b=eG(o.pipes,a);return b===-1?this:(o.pipes.splice(b,1),o.pipesCount-=1,o.pipesCount===1&&(o.pipes=o.pipes[0]),a.emit("unpipe",this,f),this)};zr.prototype.on=function(a,o){var f=W1.prototype.on.call(this,a,o),d=this._readableState;return a==="data"?(d.readableListening=this.listenerCount("readable")>0,d.flowing!==!1&&this.resume()):a==="readable"&&!d.endEmitted&&!d.readableListening&&(d.readableListening=d.needReadable=!0,d.flowing=!1,d.emittedReadable=!1,Ar("on readable",d.length,d.reading),d.length?Db(this):d.reading||ft.default.nextTick(j1e,this)),f};zr.prototype.addListener=zr.prototype.on;zr.prototype.removeListener=function(a,o){var f=W1.prototype.removeListener.call(this,a,o);return a==="readable"&&ft.default.nextTick(XZ,this),f};zr.prototype.removeAllListeners=function(a){var o=W1.prototype.removeAllListeners.apply(this,arguments);return(a==="readable"||a===void 0)&&ft.default.nextTick(XZ,this),o};function XZ(a){var o=a._readableState;o.readableListening=a.listenerCount("readable")>0,o.resumeScheduled&&!o.paused?o.flowing=!0:a.listenerCount("data")>0&&a.resume()}function j1e(a){Ar("readable nexttick read 0"),a.read(0)}zr.prototype.resume=function(){var a=this._readableState;return a.flowing||(Ar("resume"),a.flowing=!a.readableListening,W1e(this,a)),a.paused=!1,this};function W1e(a,o){o.resumeScheduled||(o.resumeScheduled=!0,ft.default.nextTick(Z1e,a,o))}function Z1e(a,o){Ar("resume",o.reading),o.reading||a.read(0),o.resumeScheduled=!1,a.emit("resume"),W5(a),o.flowing&&!o.reading&&a.read(0)}zr.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 W5(a){var o=a._readableState;for(Ar("flow",o.flowing);o.flowing&&a.read()!==null;);}zr.prototype.wrap=function(a){var o=this,f=this._readableState,d=!1;a.on("end",function(){if(Ar("wrapped end"),f.decoder&&!f.ended){var b=f.decoder.end();b&&b.length&&o.push(b)}o.push(null)}),a.on("data",function(b){if(Ar("wrapped data"),f.decoder&&(b=f.decoder.write(b)),!(f.objectMode&&b==null)&&!(!f.objectMode&&(!b||!b.length))){var y=o.push(b);y||(d=!0,a.pause())}});for(var n in a)this[n]===void 0&&typeof a[n]=="function"&&(this[n]=function(y){return function(){return a[y].apply(a,arguments)}}(n));for(var v=0;v<F5.length;v++)a.on(F5[v],this.emit.bind(this,F5[v]));return this._read=function(b){Ar("wrapped _read",b),d&&(d=!1,a.resume())},this};typeof Symbol=="function"&&(zr.prototype[Symbol.asyncIterator]=function(){return q5===void 0&&(q5=HZ()),q5(this)});Object.defineProperty(zr.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(zr.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(zr.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(o){this._readableState&&(this._readableState.flowing=o)}});zr._fromList=QZ;Object.defineProperty(zr.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function QZ(a,o){if(o.length===0)return null;var f;return o.objectMode?f=o.buffer.shift():!a||a>=o.length?(o.decoder?f=o.buffer.join(""):o.buffer.length===1?f=o.buffer.first():f=o.buffer.concat(o.length),o.buffer.clear()):f=o.buffer.consume(a,o.decoder),f}function H5(a){var o=a._readableState;Ar("endReadable",o.endEmitted),o.endEmitted||(o.ended=!0,ft.default.nextTick(G1e,o,a))}function G1e(a,o){if(Ar("endReadableNT",a.endEmitted,a.length),!a.endEmitted&&a.length===0&&(a.endEmitted=!0,o.readable=!1,o.emit("end"),a.autoDestroy)){var f=o._writableState;(!f||f.autoDestroy&&f.finished)&&o.destroy()}}typeof Symbol=="function"&&(zr.from=function(a,o){return U5===void 0&&(U5=jZ()),U5(zr,a,o)});function eG(a,o){for(var f=0,d=a.length;f<d;f++)if(a[f]===o)return f;return-1}});var Z5=St((HEe,iG)=>{"use strict";var KEe=Ae(Be());Ie();Re();iG.exports=n0;var Ob=Qu().codes,V1e=Ob.ERR_METHOD_NOT_IMPLEMENTED,J1e=Ob.ERR_MULTIPLE_CALLBACK,Y1e=Ob.ERR_TRANSFORM_ALREADY_TRANSFORMING,X1e=Ob.ERR_TRANSFORM_WITH_LENGTH_0,qb=el();Cn()(n0,qb);function Q1e(a,o){var f=this._transformState;f.transforming=!1;var d=f.writecb;if(d===null)return this.emit("error",new J1e);f.writechunk=null,f.writecb=null,o!=null&&this.push(o),d(a);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function n0(a){if(!(this instanceof n0))return new n0(a);qb.call(this,a),this._transformState={afterTransform:Q1e.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,a&&(typeof a.transform=="function"&&(this._transform=a.transform),typeof a.flush=="function"&&(this._flush=a.flush)),this.on("prefinish",epe)}function epe(){var a=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(o,f){rG(a,o,f)}):rG(this,null,null)}n0.prototype.push=function(a,o){return this._transformState.needTransform=!1,qb.prototype.push.call(this,a,o)};n0.prototype._transform=function(a,o,f){f(new V1e("_transform()"))};n0.prototype._write=function(a,o,f){var d=this._transformState;if(d.writecb=f,d.writechunk=a,d.writeencoding=o,!d.transforming){var n=this._readableState;(d.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};n0.prototype._read=function(a){var o=this._transformState;o.writechunk!==null&&!o.transforming?(o.transforming=!0,this._transform(o.writechunk,o.writeencoding,o.afterTransform)):o.needTransform=!0};n0.prototype._destroy=function(a,o){qb.prototype._destroy.call(this,a,function(f){o(f)})};function rG(a,o,f){if(o)return a.emit("error",o);if(f!=null&&a.push(f),a._writableState.length)throw new X1e;if(a._transformState.transforming)throw new Y1e;return a.push(null)}});var oG=St((ZEe,aG)=>{"use strict";var GEe=Ae(Be());Ie();Re();aG.exports=Z1;var nG=Z5();Cn()(Z1,nG);function Z1(a){if(!(this instanceof Z1))return new Z1(a);nG.call(this,a)}Z1.prototype._transform=function(a,o,f){f(null,a)}});var lG=St((YEe,uG)=>{"use strict";var XEe=Ae(Be());Ie();Re();var G5;function tpe(a){var o=!1;return function(){o||(o=!0,a.apply(void 0,arguments))}}var hG=Qu().codes,rpe=hG.ERR_MISSING_ARGS,ipe=hG.ERR_STREAM_DESTROYED;function sG(a){if(a)throw a}function npe(a){return a.setHeader&&typeof a.abort=="function"}function ape(a,o,f,d){d=tpe(d);var n=!1;a.on("close",function(){n=!0}),G5===void 0&&(G5=$b()),G5(a,{readable:o,writable:f},function(b){if(b)return d(b);n=!0,d()});var v=!1;return function(b){if(!n&&!v){if(v=!0,npe(a))return a.abort();if(typeof a.destroy=="function")return a.destroy();d(b||new ipe("pipe"))}}}function fG(a){a()}function ope(a,o){return a.pipe(o)}function spe(a){return!a.length||typeof a[a.length-1]!="function"?sG:a.pop()}function fpe(){for(var a=arguments.length,o=new Array(a),f=0;f<a;f++)o[f]=arguments[f];var d=spe(o);if(Array.isArray(o[0])&&(o=o[0]),o.length<2)throw new rpe("streams");var n,v=o.map(function(b,y){var M=y<o.length-1,w=y>0;return ape(b,M,w,function(g){n||(n=g),g&&v.forEach(fG),!M&&(v.forEach(fG),d(n))})});return o.reduce(ope)}uG.exports=fpe});var V5=St((Zo,dG)=>{var tAe=Ae(Be());Ie();Re();Zo=dG.exports=$5();Zo.Stream=Zo;Zo.Readable=Zo;Zo.Writable=I5();Zo.Duplex=el();Zo.Transform=Z5();Zo.PassThrough=oG();Zo.finished=$b();Zo.pipeline=lG()});var vG=St((nAe,pG)=>{var aAe=Ae(Be());Ie();Re();var{Transform:hpe}=V5();pG.exports=a=>class cG extends hpe{constructor(f,d,n,v,b){super(b),this._rate=f,this._capacity=d,this._delimitedSuffix=n,this._hashBitLength=v,this._options=b,this._state=new a,this._state.initialize(f,d),this._finalized=!1}_transform(f,d,n){let v=null;try{this.update(f,d)}catch(b){v=b}n(v)}_flush(f){let d=null;try{this.push(this.digest())}catch(n){d=n}f(d)}update(f,d){if(!at.isBuffer(f)&&typeof f!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return at.isBuffer(f)||(f=at.from(f,d)),this._state.absorb(f),this}digest(f){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let d=this._state.squeeze(this._hashBitLength/8);return f!==void 0&&(d=d.toString(f)),this._resetState(),d}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let f=new cG(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(f._state),f._finalized=this._finalized,f}}});var gG=St((fAe,mG)=>{var hAe=Ae(Be());Ie();Re();var{Transform:upe}=V5();mG.exports=a=>class bG extends upe{constructor(f,d,n,v){super(v),this._rate=f,this._capacity=d,this._delimitedSuffix=n,this._options=v,this._state=new a,this._state.initialize(f,d),this._finalized=!1}_transform(f,d,n){let v=null;try{this.update(f,d)}catch(b){v=b}n(v)}_flush(){}_read(f){this.push(this.squeeze(f))}update(f,d){if(!at.isBuffer(f)&&typeof f!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return at.isBuffer(f)||(f=at.from(f,d)),this._state.absorb(f),this}squeeze(f,d){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let n=this._state.squeeze(f);return d!==void 0&&(n=n.toString(d)),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let f=new bG(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(f._state),f._finalized=this._finalized,f}}});var wG=St((dAe,yG)=>{var cAe=Ae(Be());Ie();Re();var lpe=vG(),dpe=gG();yG.exports=function(a){let o=lpe(a),f=dpe(a);return function(d,n){switch(typeof d=="string"?d.toLowerCase():d){case"keccak224":return new o(1152,448,null,224,n);case"keccak256":return new o(1088,512,null,256,n);case"keccak384":return new o(832,768,null,384,n);case"keccak512":return new o(576,1024,null,512,n);case"sha3-224":return new o(1152,448,6,224,n);case"sha3-256":return new o(1088,512,6,256,n);case"sha3-384":return new o(832,768,6,384,n);case"sha3-512":return new o(576,1024,6,512,n);case"shake128":return new f(1344,256,31,n);case"shake256":return new f(1088,512,31,n);default:throw new Error("Invald algorithm: "+d)}}}});var xG=St(_G=>{var mAe=Ae(Be());Ie();Re();var MG=[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];_G.p1600=function(a){for(let o=0;o<24;++o){let f=a[0]^a[10]^a[20]^a[30]^a[40],d=a[1]^a[11]^a[21]^a[31]^a[41],n=a[2]^a[12]^a[22]^a[32]^a[42],v=a[3]^a[13]^a[23]^a[33]^a[43],b=a[4]^a[14]^a[24]^a[34]^a[44],y=a[5]^a[15]^a[25]^a[35]^a[45],M=a[6]^a[16]^a[26]^a[36]^a[46],w=a[7]^a[17]^a[27]^a[37]^a[47],g=a[8]^a[18]^a[28]^a[38]^a[48],_=a[9]^a[19]^a[29]^a[39]^a[49],x=g^(n<<1|v>>>31),E=_^(v<<1|n>>>31),R=a[0]^x,T=a[1]^E,N=a[10]^x,P=a[11]^E,L=a[20]^x,D=a[21]^E,Z=a[30]^x,W=a[31]^E,Q=a[40]^x,K=a[41]^E;x=f^(b<<1|y>>>31),E=d^(y<<1|b>>>31);let z=a[2]^x,X=a[3]^E,p=a[12]^x,e=a[13]^E,r=a[22]^x,i=a[23]^E,s=a[32]^x,h=a[33]^E,c=a[42]^x,m=a[43]^E;x=n^(M<<1|w>>>31),E=v^(w<<1|M>>>31);let l=a[4]^x,t=a[5]^E,u=a[14]^x,S=a[15]^E,B=a[24]^x,k=a[25]^E,q=a[34]^x,F=a[35]^E,ee=a[44]^x,te=a[45]^E;x=b^(g<<1|_>>>31),E=y^(_<<1|g>>>31);let O=a[6]^x,U=a[7]^E,oe=a[16]^x,Y=a[17]^E,j=a[26]^x,V=a[27]^E,G=a[36]^x,ie=a[37]^E,me=a[46]^x,re=a[47]^E;x=M^(f<<1|d>>>31),E=w^(d<<1|f>>>31);let ae=a[8]^x,ye=a[9]^E,fe=a[18]^x,he=a[19]^E,nt=a[28]^x,ce=a[29]^E,be=a[38]^x,ut=a[39]^E,$=a[48]^x,A=a[49]^E,I=R,C=T,H=P<<4|N>>>28,ne=N<<4|P>>>28,J=L<<3|D>>>29,de=D<<3|L>>>29,st=W<<9|Z>>>23,le=Z<<9|W>>>23,ve=Q<<18|K>>>14,ot=K<<18|Q>>>14,we=z<<1|X>>>31,Le=X<<1|z>>>31,bt=e<<12|p>>>20,Me=p<<12|e>>>20,Ne=r<<10|i>>>22,mt=i<<10|r>>>22,xe=h<<13|s>>>19,Ce=s<<13|h>>>19,vt=c<<2|m>>>30,se=m<<2|c>>>30,ue=t<<30|l>>>2,ht=l<<30|t>>>2,pe=u<<6|S>>>26,Se=S<<6|u>>>26,dt=k<<11|B>>>21,ge=B<<11|k>>>21,De=q<<15|F>>>17,ct=F<<15|q>>>17,_e=te<<29|ee>>>3,Oe=ee<<29|te>>>3,gt=O<<28|U>>>4,Ee=U<<28|O>>>4,Pe=Y<<23|oe>>>9,pt=oe<<23|Y>>>9,lt=j<<25|V>>>7,yt=V<<25|j>>>7,xt=G<<21|ie>>>11,Mt=ie<<21|G>>>11,Et=re<<24|me>>>8,At=me<<24|re>>>8,Bt=ae<<27|ye>>>5,It=ye<<27|ae>>>5,Tt=fe<<20|he>>>12,kt=he<<20|fe>>>12,$t=ce<<7|nt>>>25,Pt=nt<<7|ce>>>25,Nt=be<<8|ut>>>24,Ct=ut<<8|be>>>24,Lt=$<<14|A>>>18,Dt=A<<14|$>>>18;a[0]=I^~bt&dt,a[1]=C^~Me&ge,a[10]=gt^~Tt&J,a[11]=Ee^~kt&de,a[20]=we^~pe&lt,a[21]=Le^~Se&yt,a[30]=Bt^~H&Ne,a[31]=It^~ne&mt,a[40]=ue^~Pe&$t,a[41]=ht^~pt&Pt,a[2]=bt^~dt&xt,a[3]=Me^~ge&Mt,a[12]=Tt^~J&xe,a[13]=kt^~de&Ce,a[22]=pe^~lt&Nt,a[23]=Se^~yt&Ct,a[32]=H^~Ne&De,a[33]=ne^~mt&ct,a[42]=Pe^~$t&st,a[43]=pt^~Pt&le,a[4]=dt^~xt&Lt,a[5]=ge^~Mt&Dt,a[14]=J^~xe&_e,a[15]=de^~Ce&Oe,a[24]=lt^~Nt&ve,a[25]=yt^~Ct&ot,a[34]=Ne^~De&Et,a[35]=mt^~ct&At,a[44]=$t^~st&vt,a[45]=Pt^~le&se,a[6]=xt^~Lt&I,a[7]=Mt^~Dt&C,a[16]=xe^~_e&gt,a[17]=Ce^~Oe&Ee,a[26]=Nt^~ve&we,a[27]=Ct^~ot&Le,a[36]=De^~Et&Bt,a[37]=ct^~At&It,a[46]=st^~vt&ue,a[47]=le^~se&ht,a[8]=Lt^~I&bt,a[9]=Dt^~C&Me,a[18]=_e^~gt&Tt,a[19]=Oe^~Ee&kt,a[28]=ve^~we&pe,a[29]=ot^~Le&Se,a[38]=Et^~Bt&H,a[39]=At^~It&ne,a[48]=vt^~ue&Pe,a[49]=se^~ht&pt,a[0]^=MG[o*2],a[1]^=MG[o*2+1]}}});var EG=St((wAe,SG)=>{var MAe=Ae(Be());Ie();Re();var Ub=xG();function Fd(){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}Fd.prototype.initialize=function(a,o){for(let f=0;f<50;++f)this.state[f]=0;this.blockSize=a/8,this.count=0,this.squeezing=!1};Fd.prototype.absorb=function(a){for(let o=0;o<a.length;++o)this.state[~~(this.count/4)]^=a[o]<<8*(this.count%4),this.count+=1,this.count===this.blockSize&&(Ub.p1600(this.state),this.count=0)};Fd.prototype.absorbLastFewBits=function(a){this.state[~~(this.count/4)]^=a<<8*(this.count%4),a&128&&this.count===this.blockSize-1&&Ub.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),Ub.p1600(this.state),this.count=0,this.squeezing=!0};Fd.prototype.squeeze=function(a){this.squeezing||this.absorbLastFewBits(1);let o=at.alloc(a);for(let f=0;f<a;++f)o[f]=this.state[~~(this.count/4)]>>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(Ub.p1600(this.state),this.count=0);return o};Fd.prototype.copy=function(a){for(let o=0;o<50;++o)a.state[o]=this.state[o];a.blockSize=this.blockSize,a.count=this.count,a.squeezing=this.squeezing};SG.exports=Fd});var BG=St((SAe,AG)=>{var EAe=Ae(Be());Ie();Re();AG.exports=wG()(EG())});var Q$e=Ae(Be(),1);Ie();Re();var qke=Ae(Be(),1);Ie();Re();var u6e=Ae(Be(),1);Ie();Re();var U2e=Ae(Be(),1);Ie();Re();var Ci={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:"EIDa_qx_PRPZQA5VhbkImJa1rMk6tp5mm9ysBCO7bk8",zone:{id:"tXFz3ik55d4E6SfW9C-chAmoDkMn4Z5xHnNZaK9PjWs",version:"0.0.3"}},collectionRegistry:"zwKi27GuKS3GOlwL3EhNGH02SJDDAO5Uy43ZJwomhZ4"},AE={defaultNode:"https://forward.computer"},BE={"application/json":{type:"application/json",serialize:a=>JSON.stringify(a)}},Za={arweave:"arweave.net",ao:"ao-search-gateway.goldsky.com"};var Kr={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"}},cm={node1:"https://turbo.ardrive.io",batchSize:1,chunkSize:75e5,dispatchUploadSize:100*1024};var J2e=Ae(Be(),1);Ie();Re();var j2e=Ae(Be(),1);Ie();Re();function Ga(a){return a?/^[a-z0-9_-]{43}$/i.test(a):!1}function _p(a,o){for(let f=0;f<a.length;f++)if(a[f]&&a[f].name===o)return a[f].value;return null}function RE(a){let o=a.match(/^data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+);base64,/);return o?o[1]:null}function IE(a){return a.split(",")[1]}function TE(a){let o;if(at.isBuffer(a))o=a.length;else if(typeof a=="string")o=at.byteLength(a,"utf-8");else throw new Error("Input must be a string or a Buffer");return o}function pm(a){let o;return o=a.replace(/\[|\]/g,""),`[[${o}]]`}function Zd(a){let o;return o=a.replace(/\[|\]/g,""),o}var Sa=(...a)=>{console.log("[@permaweb/libs]",...a)};function WJ(a){return a.replace(/^[a-z]/,o=>o.toUpperCase())}function vl(a){return Array.isArray(a)?a.map(vl):a&&typeof a=="object"?Object.entries(a).reduce((o,[f,d])=>{let n=WJ(f);return o[n]=Ga(d)?d:vl(d),o},{}):a}function ZJ(a){return a.charAt(0).toLowerCase()+a.slice(1)}function Va(a){return Array.isArray(a)?a.map(Va):a&&typeof a=="object"?Object.entries(a).reduce((o,[f,d])=>{let n=Ga(f)||f.includes("-")?f:ZJ(f);return o[n]=Ga(d)?d:Va(d),o},{}):a}function qn(a,o){let f=a.charAt(0).toUpperCase()+a.slice(1);return{name:`${Kr.keys.bootloader}-${f}`,value:o}}function xp(a){return Ga(a)||a.startsWith("data")}var GJ="https://arweave.net";function Sp(a){return`${GJ}/${a}`}var t6e=Ae(Be(),1);Ie();Re();var vm={p1:"P1",end:"END"},bm={default:100};async function ks(a){let o=a.paginator?a.paginator:bm.default,f=[],d=0,n=null;if(a.ids&&!a.ids.length)return{data:f,count:d,nextCursor:n,previousCursor:null};try{let v=JJ(a),b=await YJ({gateway:a.gateway??Za.ao,query:VJ(v)});return b?.data?.transactions?.edges?.length?(f=[...b.data.transactions.edges],d=b.data.transactions.count??0,f.length<o||!b.data.transactions.pageInfo.hasNextPage?n=vm.end:n=f[f.length-1].cursor,{data:f,count:d,nextCursor:n,previousCursor:null}):{data:f,count:d,nextCursor:n,previousCursor:null}}catch(v){return console.error(v),{data:f,count:d,nextCursor:n,previousCursor:null}}}async function kE(a,o){let f=1,d=await ks(a);if(d&&d.data.length){let n=d.data;for(o&&o(`Count: ${d.count}`),o&&o(`Pages to fetch: ${Math.ceil(d.count/(a.paginator??bm.default))}`),o&&o(`Page ${f} fetched`);d.nextCursor&&d.nextCursor!==vm.end;)f+=1,o&&o(`Fetching page ${f}...`),d=await ks({...a,cursor:d.nextCursor}),d&&d.data.length&&(n=n.concat(d.data));return o&&o("All pages fetched!"),n}else o&&o("No data found");return null}function VJ(a){let o={query:`query { ${a} }`};return JSON.stringify(o)}function JJ(a){let o=a.paginator?a.paginator:bm.default,f=a.ids?JSON.stringify(a.ids):null,d=null;a.minBlock!==void 0&&a.minBlock!==null&&(d={},d.min=a.minBlock);let n=d?JSON.stringify(d).replace(/"([^"]+)":/g,"$1:"):null,v=a.tags?JSON.stringify(a.tags).replace(/"(name)":/g,"$1:").replace(/"(values)":/g,"$1:").replace(/"match"/g,"match").replace(/"FUZZY_OR"/g,"FUZZY_OR").replace(/"WILDCARD"/g,"WILDCARD"):null,b=a.owners?JSON.stringify(a.owners):null,y=a.recipients?JSON.stringify(a.recipients):null,M=a.cursor&&a.cursor!==vm.end?`"${a.cursor}"`:null,w="";if(a.sort)switch(w+="sort: ",a.sort){case"ascending":w+="HEIGHT_ASC";break;case"descending":w+="HEIGHT_DESC";break}let g=`first: ${o}`,_="",x="data { size type } owner { address } block { height timestamp }",E="";switch(a.gateway??Za.ao){case Za.arweave:break;case Za.ao:M||(_="count"),y&&(E=`recipients: ${y}`),x+=" recipient";break}let T=`
10
10
  transactions(
11
11
  ids: ${f},
12
12
  tags: ${v},
@@ -76,7 +76,7 @@ nonce: bundlr`),at.from(n))}};var $Be=Ae(Be(),1);Ie();Re();var sl=class{_publicK
76
76
  `)>=0,ee+te.replace(/\u001b\[\d\d?m/g,"").length+1},0);return F>60?q[0]+(k===""?"":k+`
77
77
  `)+" "+B.join(`,
78
78
  `)+" "+q[1]:q[0]+k+" "+B.join(", ")+" "+q[1]}Rr.types=a2e();function N(B){return Array.isArray(B)}Rr.isArray=N;function P(B){return typeof B=="boolean"}Rr.isBoolean=P;function L(B){return B===null}Rr.isNull=L;function D(B){return B==null}Rr.isNullOrUndefined=D;function Z(B){return typeof B=="number"}Rr.isNumber=Z;function W(B){return typeof B=="string"}Rr.isString=W;function Q(B){return typeof B=="symbol"}Rr.isSymbol=Q;function K(B){return B===void 0}Rr.isUndefined=K;function z(B){return X(B)&&s(B)==="[object RegExp]"}Rr.isRegExp=z,Rr.types.isRegExp=z;function X(B){return typeof B=="object"&&B!==null}Rr.isObject=X;function p(B){return X(B)&&s(B)==="[object Date]"}Rr.isDate=p,Rr.types.isDate=p;function e(B){return X(B)&&(s(B)==="[object Error]"||B instanceof Error)}Rr.isError=e,Rr.types.isNativeError=e;function r(B){return typeof B=="function"}Rr.isFunction=r;function i(B){return B===null||typeof B=="boolean"||typeof B=="number"||typeof B=="string"||typeof B=="symbol"||typeof B>"u"}Rr.isPrimitive=i,Rr.isBuffer=o2e();function s(B){return Object.prototype.toString.call(B)}function h(B){return B<10?"0"+B.toString(10):B.toString(10)}var c=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function m(){var B=new Date,k=[h(B.getHours()),h(B.getMinutes()),h(B.getSeconds())].join(":");return[B.getDate(),c[B.getMonth()],k].join(" ")}Rr.log=function(){console.log("%s - %s",m(),Rr.format.apply(Rr,arguments))},Rr.inherits=Vve(),Rr._extend=function(B,k){if(!k||!X(k))return B;for(var q=Object.keys(k),F=q.length;F--;)B[q[F]]=k[q[F]];return B};function l(B,k){return Object.prototype.hasOwnProperty.call(B,k)}var t=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Rr.promisify=function(k){if(typeof k!="function")throw new TypeError('The "original" argument must be of type Function');if(t&&k[t]){if(q=k[t],typeof q!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(q,t,{value:q,enumerable:!1,writable:!1,configurable:!0}),q}function q(){for(var F,ee,te=new Promise(function(oe,Y){F=oe,ee=Y}),O=[],U=0;U<arguments.length;U++)O.push(arguments[U]);O.push(function(oe,Y){oe?ee(oe):F(Y)});try{k.apply(this||dp,O)}catch(oe){ee(oe)}return te}return Object.setPrototypeOf(q,Object.getPrototypeOf(k)),t&&Object.defineProperty(q,t,{value:q,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(q,o(k))},Rr.promisify.custom=t;function u(B,k){if(!B){var q=new Error("Promise was rejected with a falsy value");q.reason=B,B=q}return k(B)}function S(B){if(typeof B!="function")throw new TypeError('The "original" argument must be of type Function');function k(){for(var q=[],F=0;F<arguments.length;F++)q.push(arguments[F]);var ee=q.pop();if(typeof ee!="function")throw new TypeError("The last argument must be of type Function");var te=this||dp,O=function(){return ee.apply(te,arguments)};B.apply(this||dp,q).then(function(U){a.nextTick(O.bind(null,null,U))},function(U){a.nextTick(u.bind(null,U,O))})}return Object.setPrototypeOf(k,Object.getPrototypeOf(B)),Object.defineProperties(k,o(B)),k}return Rr.callbackify=S,Rr}var Qt=s2e();Qt.format;Qt.deprecate;Qt.debuglog;Qt.inspect;Qt.types;Qt.isArray;Qt.isBoolean;Qt.isNull;Qt.isNullOrUndefined;Qt.isNumber;Qt.isString;Qt.isSymbol;Qt.isUndefined;Qt.isRegExp;Qt.isObject;Qt.isDate;Qt.isError;Qt.isFunction;Qt.isPrimitive;Qt.isBuffer;Qt.log;Qt.inherits;Qt._extend;Qt.promisify;Qt.callbackify;var kTe=Qt._extend,$Te=Qt.callbackify,PTe=Qt.debuglog,NTe=Qt.deprecate,CTe=Qt.format,LTe=Qt.inherits,DTe=Qt.inspect,OTe=Qt.isArray,qTe=Qt.isBoolean,UTe=Qt.isBuffer,FTe=Qt.isDate,zTe=Qt.isError,HTe=Qt.isFunction,KTe=Qt.isNull,jTe=Qt.isNullOrUndefined,WTe=Qt.isNumber,ZTe=Qt.isObject,GTe=Qt.isPrimitive,VTe=Qt.isRegExp,JTe=Qt.isString,YTe=Qt.isSymbol,XTe=Qt.isUndefined,QTe=Qt.log,AV=Qt.promisify,eke=Qt.types,tke=Qt.TextEncoder=globalThis.TextEncoder,rke=Qt.TextDecoder=globalThis.TextDecoder,DS={},BV=!1;function Vi(){return BV||(BV=!0,DS={ArrayIsArray(a){return Array.isArray(a)},ArrayPrototypeIncludes(a,o){return a.includes(o)},ArrayPrototypeIndexOf(a,o){return a.indexOf(o)},ArrayPrototypeJoin(a,o){return a.join(o)},ArrayPrototypeMap(a,o){return a.map(o)},ArrayPrototypePop(a,o){return a.pop(o)},ArrayPrototypePush(a,o){return a.push(o)},ArrayPrototypeSlice(a,o,f){return a.slice(o,f)},Error,FunctionPrototypeCall(a,o,...f){return a.call(o,...f)},FunctionPrototypeSymbolHasInstance(a,o){return Function.prototype[Symbol.hasInstance].call(a,o)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(a,o){return Object.defineProperties(a,o)},ObjectDefineProperty(a,o,f){return Object.defineProperty(a,o,f)},ObjectGetOwnPropertyDescriptor(a,o){return Object.getOwnPropertyDescriptor(a,o)},ObjectKeys(a){return Object.keys(a)},ObjectSetPrototypeOf(a,o){return Object.setPrototypeOf(a,o)},Promise,PromisePrototypeCatch(a,o){return a.catch(o)},PromisePrototypeThen(a,o,f){return a.then(o,f)},PromiseReject(a){return Promise.reject(a)},PromiseResolve(a){return Promise.resolve(a)},ReflectApply:Reflect.apply,RegExpPrototypeTest(a,o){return a.test(o)},SafeSet:Set,String,StringPrototypeSlice(a,o,f){return a.slice(o,f)},StringPrototypeToLowerCase(a){return a.toLowerCase()},StringPrototypeToUpperCase(a){return a.toUpperCase()},StringPrototypeTrim(a){return a.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(a,o,f){return a.set(o,f)},Boolean,Uint8Array}),DS}var cp={},RV=!1;function vp(){if(RV)return cp;RV=!0;let{AbortController:a,AbortSignal:o}=typeof self<"u"?self:typeof window<"u"?window:void 0;return cp=a,cp.AbortSignal=o,cp.default=a,cp}var Xb={},IV=!1;function fa(){if(IV)return Xb;IV=!0;let a=xh(),{kResistStopPropagation:o,SymbolDispose:f}=Vi(),d=globalThis.AbortSignal||vp().AbortSignal,n=globalThis.AbortController||vp().AbortController,v=Object.getPrototypeOf(async function(){}).constructor,b=globalThis.Blob||a.Blob,y=typeof b<"u"?function(x){return x instanceof b}:function(x){return!1},M=(_,x)=>{if(_!==void 0&&(_===null||typeof _!="object"||!("aborted"in _)))throw new ERR_INVALID_ARG_TYPE(x,"AbortSignal",_)},w=(_,x)=>{if(typeof _!="function")throw new ERR_INVALID_ARG_TYPE(x,"Function",_)};class g extends Error{constructor(x){if(!Array.isArray(x))throw new TypeError(`Expected input to be an Array, got ${typeof x}`);let E="";for(let R=0;R<x.length;R++)E+=` ${x[R].stack}
79
- `;super(E),this.name="AggregateError",this.errors=x}}return Xb={AggregateError:g,kEmptyObject:Object.freeze({}),once(_){let x=!1;return function(...E){x||(x=!0,_.apply(this,E))}},createDeferredPromise:function(){let _,x;return{promise:new Promise((R,T)=>{_=R,x=T}),resolve:_,reject:x}},promisify(_){return new Promise((x,E)=>{_((R,...T)=>R?E(R):x(...T))})},debuglog(){return function(){}},format(_,...x){return _.replace(/%([sdifj])/g,function(...[E,R]){let T=x.shift();return R==="f"?T.toFixed(6):R==="j"?JSON.stringify(T):R==="s"&&typeof T=="object"?`${T.constructor!==Object?T.constructor.name:""} {}`.trim():T.toString()})},inspect(_){switch(typeof _){case"string":if(_.includes("'"))if(_.includes('"')){if(!_.includes("`")&&!_.includes("${"))return`\`${_}\``}else return`"${_}"`;return`'${_}'`;case"number":return isNaN(_)?"NaN":Object.is(_,-0)?String(_):_;case"bigint":return`${String(_)}n`;case"boolean":case"undefined":return String(_);case"object":return"{}"}},types:{isAsyncFunction(_){return _ instanceof v},isArrayBufferView(_){return ArrayBuffer.isView(_)}},isBlob:y,deprecate(_,x){return _},addAbortListener:Sh.addAbortListener||function(x,E){if(x===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",x);M(x,"signal"),w(E,"listener");let R;return x.aborted?queueMicrotask(()=>E()):(x.addEventListener("abort",E,{__proto__:null,once:!0,[o]:!0}),R=()=>{x.removeEventListener("abort",E)}),{__proto__:null,[f](){var T;(T=R)===null||T===void 0||T()}}},AbortSignalAny:d.any||function(x){if(x.length===1)return x[0];let E=new n,R=()=>E.abort();return x.forEach(T=>{M(T,"signals"),T.addEventListener("abort",R,{once:!0})}),E.signal.addEventListener("abort",()=>{x.forEach(T=>T.removeEventListener("abort",R))},{once:!0}),E.signal}},Xb.promisify.custom=Symbol.for("nodejs.util.promisify.custom"),Xb}var OS={},TV=!1;function xa(){if(TV)return OS;TV=!0;let{format:a,inspect:o,AggregateError:f}=fa(),d=globalThis.AggregateError||f,n=Symbol("kIsNodeError"),v=["string","function","number","object","Function","Object","boolean","bigint","symbol"],b=/^([A-Z][a-z0-9]*)+$/,y="__node_internal_",M={};function w(N,P){if(!N)throw new M.ERR_INTERNAL_ASSERTION(P)}function g(N){let P="",L=N.length,D=N[0]==="-"?1:0;for(;L>=D+4;L-=3)P=`_${N.slice(L-3,L)}${P}`;return`${N.slice(0,L)}${P}`}function _(N,P,L){if(typeof P=="function")return w(P.length<=L.length,`Code: ${N}; The provided arguments length (${L.length}) does not match the required ones (${P.length}).`),P(...L);let D=(P.match(/%[dfijoOs]/g)||[]).length;return w(D===L.length,`Code: ${N}; The provided arguments length (${L.length}) does not match the required ones (${D}).`),L.length===0?P:a(P,...L)}function x(N,P,L){L||(L=Error);class D extends L{constructor(...W){super(_(N,P,W))}toString(){return`${this.name} [${N}]: ${this.message}`}}Object.defineProperties(D.prototype,{name:{value:L.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${N}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),D.prototype.code=N,D.prototype[n]=!0,M[N]=D}function E(N){let P=y+N.name;return Object.defineProperty(N,"name",{value:P}),N}function R(N,P){if(N&&P&&N!==P){if(Array.isArray(P.errors))return P.errors.push(N),P;let L=new d([P,N],P.message);return L.code=P.code,L}return N||P}class T extends Error{constructor(P="The operation was aborted",L=void 0){if(L!==void 0&&typeof L!="object")throw new M.ERR_INVALID_ARG_TYPE("options","Object",L);super(P,L),this.code="ABORT_ERR",this.name="AbortError"}}return x("ERR_ASSERTION","%s",Error),x("ERR_INVALID_ARG_TYPE",(N,P,L)=>{w(typeof N=="string","'name' must be a string"),Array.isArray(P)||(P=[P]);let D="The ";N.endsWith(" argument")?D+=`${N} `:D+=`"${N}" ${N.includes(".")?"property":"argument"} `,D+="must be ";let Z=[],W=[],Q=[];for(let z of P)w(typeof z=="string","All expected entries have to be of type string"),v.includes(z)?Z.push(z.toLowerCase()):b.test(z)?W.push(z):(w(z!=="object",'The value "object" should be written as "Object"'),Q.push(z));if(W.length>0){let z=Z.indexOf("object");z!==-1&&(Z.splice(Z,z,1),W.push("Object"))}if(Z.length>0){switch(Z.length){case 1:D+=`of type ${Z[0]}`;break;case 2:D+=`one of type ${Z[0]} or ${Z[1]}`;break;default:{let z=Z.pop();D+=`one of type ${Z.join(", ")}, or ${z}`}}(W.length>0||Q.length>0)&&(D+=" or ")}if(W.length>0){switch(W.length){case 1:D+=`an instance of ${W[0]}`;break;case 2:D+=`an instance of ${W[0]} or ${W[1]}`;break;default:{let z=W.pop();D+=`an instance of ${W.join(", ")}, or ${z}`}}Q.length>0&&(D+=" or ")}switch(Q.length){case 0:break;case 1:Q[0].toLowerCase()!==Q[0]&&(D+="an "),D+=`${Q[0]}`;break;case 2:D+=`one of ${Q[0]} or ${Q[1]}`;break;default:{let z=Q.pop();D+=`one of ${Q.join(", ")}, or ${z}`}}if(L==null)D+=`. Received ${L}`;else if(typeof L=="function"&&L.name)D+=`. Received function ${L.name}`;else if(typeof L=="object"){var K;if((K=L.constructor)!==null&&K!==void 0&&K.name)D+=`. Received an instance of ${L.constructor.name}`;else{let z=o(L,{depth:-1});D+=`. Received ${z}`}}else{let z=o(L,{colors:!1});z.length>25&&(z=`${z.slice(0,25)}...`),D+=`. Received type ${typeof L} (${z})`}return D},TypeError),x("ERR_INVALID_ARG_VALUE",(N,P,L="is invalid")=>{let D=o(P);return D.length>128&&(D=D.slice(0,128)+"..."),`The ${N.includes(".")?"property":"argument"} '${N}' ${L}. Received ${D}`},TypeError),x("ERR_INVALID_RETURN_VALUE",(N,P,L)=>{var D;let Z=L!=null&&(D=L.constructor)!==null&&D!==void 0&&D.name?`instance of ${L.constructor.name}`:`type ${typeof L}`;return`Expected ${N} to be returned from the "${P}" function but got ${Z}.`},TypeError),x("ERR_MISSING_ARGS",(...N)=>{w(N.length>0,"At least one arg needs to be specified");let P,L=N.length;switch(N=(Array.isArray(N)?N:[N]).map(D=>`"${D}"`).join(" or "),L){case 1:P+=`The ${N[0]} argument`;break;case 2:P+=`The ${N[0]} and ${N[1]} arguments`;break;default:{let D=N.pop();P+=`The ${N.join(", ")}, and ${D} arguments`}break}return`${P} must be specified`},TypeError),x("ERR_OUT_OF_RANGE",(N,P,L)=>{w(P,'Missing "range" argument');let D;return Number.isInteger(L)&&Math.abs(L)>2**32?D=g(String(L)):typeof L=="bigint"?(D=String(L),(L>2n**32n||L<-(2n**32n))&&(D=g(D)),D+="n"):D=o(L),`The value of "${N}" is out of range. It must be ${P}. Received ${D}`},RangeError),x("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),x("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),x("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),x("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),x("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),x("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),x("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),x("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),x("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),x("ERR_STREAM_WRITE_AFTER_END","write after end",Error),x("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),OS={AbortError:T,aggregateTwoErrors:E(R),hideStackFrames:E,codes:M},OS}var qS={},kV=!1;function mp(){if(kV)return qS;kV=!0;let{ArrayIsArray:a,ArrayPrototypeIncludes:o,ArrayPrototypeJoin:f,ArrayPrototypeMap:d,NumberIsInteger:n,NumberIsNaN:v,NumberMAX_SAFE_INTEGER:b,NumberMIN_SAFE_INTEGER:y,NumberParseInt:M,ObjectPrototypeHasOwnProperty:w,RegExpPrototypeExec:g,String:_,StringPrototypeToUpperCase:x,StringPrototypeTrim:E}=Vi(),{hideStackFrames:R,codes:{ERR_SOCKET_BAD_PORT:T,ERR_INVALID_ARG_TYPE:N,ERR_INVALID_ARG_VALUE:P,ERR_OUT_OF_RANGE:L,ERR_UNKNOWN_SIGNAL:D}}=xa(),{normalizeEncoding:Z}=fa(),{isAsyncFunction:W,isArrayBufferView:Q}=fa().types,K={};function z(ye){return ye===(ye|0)}function X(ye){return ye===ye>>>0}let p=/^[0-7]+$/,e="must be a 32-bit unsigned integer or an octal string";function r(ye,fe,he){if(typeof ye>"u"&&(ye=he),typeof ye=="string"){if(g(p,ye)===null)throw new P(fe,ye,e);ye=M(ye,8)}return h(ye,fe),ye}let i=R((ye,fe,he=y,nt=b)=>{if(typeof ye!="number")throw new N(fe,"number",ye);if(!n(ye))throw new L(fe,"an integer",ye);if(ye<he||ye>nt)throw new L(fe,`>= ${he} && <= ${nt}`,ye)}),s=R((ye,fe,he=-2147483648,nt=2147483647)=>{if(typeof ye!="number")throw new N(fe,"number",ye);if(!n(ye))throw new L(fe,"an integer",ye);if(ye<he||ye>nt)throw new L(fe,`>= ${he} && <= ${nt}`,ye)}),h=R((ye,fe,he=!1)=>{if(typeof ye!="number")throw new N(fe,"number",ye);if(!n(ye))throw new L(fe,"an integer",ye);let nt=he?1:0,ce=4294967295;if(ye<nt||ye>ce)throw new L(fe,`>= ${nt} && <= ${ce}`,ye)});function c(ye,fe){if(typeof ye!="string")throw new N(fe,"string",ye)}function m(ye,fe,he=void 0,nt){if(typeof ye!="number")throw new N(fe,"number",ye);if(he!=null&&ye<he||nt!=null&&ye>nt||(he!=null||nt!=null)&&v(ye))throw new L(fe,`${he!=null?`>= ${he}`:""}${he!=null&&nt!=null?" && ":""}${nt!=null?`<= ${nt}`:""}`,ye)}let l=R((ye,fe,he)=>{if(!o(he,ye)){let ce="must be one of: "+f(d(he,be=>typeof be=="string"?`'${be}'`:_(be)),", ");throw new P(fe,ye,ce)}});function t(ye,fe){if(typeof ye!="boolean")throw new N(fe,"boolean",ye)}function u(ye,fe,he){return ye==null||!w(ye,fe)?he:ye[fe]}let S=R((ye,fe,he=null)=>{let nt=u(he,"allowArray",!1),ce=u(he,"allowFunction",!1);if(!u(he,"nullable",!1)&&ye===null||!nt&&a(ye)||typeof ye!="object"&&(!ce||typeof ye!="function"))throw new N(fe,"Object",ye)}),B=R((ye,fe)=>{if(ye!=null&&typeof ye!="object"&&typeof ye!="function")throw new N(fe,"a dictionary",ye)}),k=R((ye,fe,he=0)=>{if(!a(ye))throw new N(fe,"Array",ye);if(ye.length<he){let nt=`must be longer than ${he}`;throw new P(fe,ye,nt)}});function q(ye,fe){k(ye,fe);for(let he=0;he<ye.length;he++)c(ye[he],`${fe}[${he}]`)}function F(ye,fe){k(ye,fe);for(let he=0;he<ye.length;he++)t(ye[he],`${fe}[${he}]`)}function ee(ye,fe){k(ye,fe);for(let he=0;he<ye.length;he++){let nt=ye[he],ce=`${fe}[${he}]`;if(nt==null)throw new N(ce,"AbortSignal",nt);Y(nt,ce)}}function te(ye,fe="signal"){if(c(ye,fe),K[ye]===void 0)throw K[x(ye)]!==void 0?new D(ye+" (signals must use all capital letters)"):new D(ye)}let O=R((ye,fe="buffer")=>{if(!Q(ye))throw new N(fe,["Buffer","TypedArray","DataView"],ye)});function U(ye,fe){let he=Z(fe),nt=ye.length;if(he==="hex"&&nt%2!==0)throw new P("encoding",fe,`is invalid for data of length ${nt}`)}function oe(ye,fe="Port",he=!0){if(typeof ye!="number"&&typeof ye!="string"||typeof ye=="string"&&E(ye).length===0||+ye!==+ye>>>0||ye>65535||ye===0&&!he)throw new T(fe,ye,he);return ye|0}let Y=R((ye,fe)=>{if(ye!==void 0&&(ye===null||typeof ye!="object"||!("aborted"in ye)))throw new N(fe,"AbortSignal",ye)}),j=R((ye,fe)=>{if(typeof ye!="function")throw new N(fe,"Function",ye)}),V=R((ye,fe)=>{if(typeof ye!="function"||W(ye))throw new N(fe,"Function",ye)}),G=R((ye,fe)=>{if(ye!==void 0)throw new N(fe,"undefined",ye)});function ie(ye,fe,he){if(!o(he,ye))throw new N(fe,`('${f(he,"|")}')`,ye)}let me=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function re(ye,fe){if(typeof ye>"u"||!g(me,ye))throw new P(fe,ye,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function ae(ye){if(typeof ye=="string")return re(ye,"hints"),ye;if(a(ye)){let fe=ye.length,he="";if(fe===0)return he;for(let nt=0;nt<fe;nt++){let ce=ye[nt];re(ce,"hints"),he+=ce,nt!==fe-1&&(he+=", ")}return he}throw new P("hints",ye,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}return qS={isInt32:z,isUint32:X,parseFileMode:r,validateArray:k,validateStringArray:q,validateBooleanArray:F,validateAbortSignalArray:ee,validateBoolean:t,validateBuffer:O,validateDictionary:B,validateEncoding:U,validateFunction:j,validateInt32:s,validateInteger:i,validateNumber:m,validateObject:S,validateOneOf:l,validatePlainFunction:V,validatePort:oe,validateSignalName:te,validateString:c,validateUint32:h,validateUndefined:G,validateUnion:ie,validateAbortSignal:Y,validateLinkHeaderValue:ae},qS}var US={},$V=!1;function f0(){if($V)return US;$V=!0;let{SymbolAsyncIterator:a,SymbolIterator:o,SymbolFor:f}=Vi(),d=f("nodejs.stream.destroyed"),n=f("nodejs.stream.errored"),v=f("nodejs.stream.readable"),b=f("nodejs.stream.writable"),y=f("nodejs.stream.disturbed"),M=f("nodejs.webstream.isClosedPromise"),w=f("nodejs.webstream.controllerErrorFunction");function g(u,S=!1){var B;return!!(u&&typeof u.pipe=="function"&&typeof u.on=="function"&&(!S||typeof u.pause=="function"&&typeof u.resume=="function")&&(!u._writableState||((B=u._readableState)===null||B===void 0?void 0:B.readable)!==!1)&&(!u._writableState||u._readableState))}function _(u){var S;return!!(u&&typeof u.write=="function"&&typeof u.on=="function"&&(!u._readableState||((S=u._writableState)===null||S===void 0?void 0:S.writable)!==!1))}function x(u){return!!(u&&typeof u.pipe=="function"&&u._readableState&&typeof u.on=="function"&&typeof u.write=="function")}function E(u){return u&&(u._readableState||u._writableState||typeof u.write=="function"&&typeof u.on=="function"||typeof u.pipe=="function"&&typeof u.on=="function")}function R(u){return!!(u&&!E(u)&&typeof u.pipeThrough=="function"&&typeof u.getReader=="function"&&typeof u.cancel=="function")}function T(u){return!!(u&&!E(u)&&typeof u.getWriter=="function"&&typeof u.abort=="function")}function N(u){return!!(u&&!E(u)&&typeof u.readable=="object"&&typeof u.writable=="object")}function P(u){return R(u)||T(u)||N(u)}function L(u,S){return u==null?!1:S===!0?typeof u[a]=="function":S===!1?typeof u[o]=="function":typeof u[a]=="function"||typeof u[o]=="function"}function D(u){if(!E(u))return null;let S=u._writableState,B=u._readableState,k=S||B;return!!(u.destroyed||u[d]||k!=null&&k.destroyed)}function Z(u){if(!_(u))return null;if(u.writableEnded===!0)return!0;let S=u._writableState;return S!=null&&S.errored?!1:typeof S?.ended!="boolean"?null:S.ended}function W(u,S){if(!_(u))return null;if(u.writableFinished===!0)return!0;let B=u._writableState;return B!=null&&B.errored?!1:typeof B?.finished!="boolean"?null:!!(B.finished||S===!1&&B.ended===!0&&B.length===0)}function Q(u){if(!g(u))return null;if(u.readableEnded===!0)return!0;let S=u._readableState;return!S||S.errored?!1:typeof S?.ended!="boolean"?null:S.ended}function K(u,S){if(!g(u))return null;let B=u._readableState;return B!=null&&B.errored?!1:typeof B?.endEmitted!="boolean"?null:!!(B.endEmitted||S===!1&&B.ended===!0&&B.length===0)}function z(u){return u&&u[v]!=null?u[v]:typeof u?.readable!="boolean"?null:D(u)?!1:g(u)&&u.readable&&!K(u)}function X(u){return u&&u[b]!=null?u[b]:typeof u?.writable!="boolean"?null:D(u)?!1:_(u)&&u.writable&&!Z(u)}function p(u,S){return E(u)?D(u)?!0:!(S?.readable!==!1&&z(u)||S?.writable!==!1&&X(u)):null}function e(u){var S,B;return E(u)?u.writableErrored?u.writableErrored:(S=(B=u._writableState)===null||B===void 0?void 0:B.errored)!==null&&S!==void 0?S:null:null}function r(u){var S,B;return E(u)?u.readableErrored?u.readableErrored:(S=(B=u._readableState)===null||B===void 0?void 0:B.errored)!==null&&S!==void 0?S:null:null}function i(u){if(!E(u))return null;if(typeof u.closed=="boolean")return u.closed;let S=u._writableState,B=u._readableState;return typeof S?.closed=="boolean"||typeof B?.closed=="boolean"?S?.closed||B?.closed:typeof u._closed=="boolean"&&s(u)?u._closed:null}function s(u){return typeof u._closed=="boolean"&&typeof u._defaultKeepAlive=="boolean"&&typeof u._removedConnection=="boolean"&&typeof u._removedContLen=="boolean"}function h(u){return typeof u._sent100=="boolean"&&s(u)}function c(u){var S;return typeof u._consuming=="boolean"&&typeof u._dumped=="boolean"&&((S=u.req)===null||S===void 0?void 0:S.upgradeOrConnect)===void 0}function m(u){if(!E(u))return null;let S=u._writableState,B=u._readableState,k=S||B;return!k&&h(u)||!!(k&&k.autoDestroy&&k.emitClose&&k.closed===!1)}function l(u){var S;return!!(u&&((S=u[y])!==null&&S!==void 0?S:u.readableDidRead||u.readableAborted))}function t(u){var S,B,k,q,F,ee,te,O,U,oe;return!!(u&&((S=(B=(k=(q=(F=(ee=u[n])!==null&&ee!==void 0?ee:u.readableErrored)!==null&&F!==void 0?F:u.writableErrored)!==null&&q!==void 0?q:(te=u._readableState)===null||te===void 0?void 0:te.errorEmitted)!==null&&k!==void 0?k:(O=u._writableState)===null||O===void 0?void 0:O.errorEmitted)!==null&&B!==void 0?B:(U=u._readableState)===null||U===void 0?void 0:U.errored)!==null&&S!==void 0?S:!((oe=u._writableState)===null||oe===void 0)&&oe.errored))}return US={isDestroyed:D,kIsDestroyed:d,isDisturbed:l,kIsDisturbed:y,isErrored:t,kIsErrored:n,isReadable:z,kIsReadable:v,kIsClosedPromise:M,kControllerErrorFunction:w,kIsWritable:b,isClosed:i,isDuplexNodeStream:x,isFinished:p,isIterable:L,isReadableNodeStream:g,isReadableStream:R,isReadableEnded:Q,isReadableFinished:K,isReadableErrored:r,isNodeStream:E,isWebStream:P,isWritable:X,isWritableNodeStream:_,isWritableStream:T,isWritableEnded:Z,isWritableFinished:W,isWritableErrored:e,isServerRequest:c,isServerResponse:h,willEmitClose:m,isTransformStream:N},US}var Qb={},PV=!1;function Ah(){if(PV)return Qb;PV=!0;let a=s0,{AbortError:o,codes:f}=xa(),{ERR_INVALID_ARG_TYPE:d,ERR_STREAM_PREMATURE_CLOSE:n}=f,{kEmptyObject:v,once:b}=fa(),{validateAbortSignal:y,validateFunction:M,validateObject:w,validateBoolean:g}=mp(),{Promise:_,PromisePrototypeThen:x,SymbolDispose:E}=Vi(),{isClosed:R,isReadable:T,isReadableNodeStream:N,isReadableStream:P,isReadableFinished:L,isReadableErrored:D,isWritable:Z,isWritableNodeStream:W,isWritableStream:Q,isWritableFinished:K,isWritableErrored:z,isNodeStream:X,willEmitClose:p,kIsClosedPromise:e}=f0(),r;function i(l){return l.setHeader&&typeof l.abort=="function"}let s=()=>{};function h(l,t,u){var S,B;if(arguments.length===2?(u=t,t=v):t==null?t=v:w(t,"options"),M(u,"callback"),y(t.signal,"options.signal"),u=b(u),P(l)||Q(l))return c(l,t,u);if(!X(l))throw new d("stream",["ReadableStream","WritableStream","Stream"],l);let k=(S=t.readable)!==null&&S!==void 0?S:N(l),q=(B=t.writable)!==null&&B!==void 0?B:W(l),F=l._writableState,ee=l._readableState,te=()=>{l.writable||oe()},O=p(l)&&N(l)===k&&W(l)===q,U=K(l,!1),oe=()=>{U=!0,l.destroyed&&(O=!1),!(O&&(!l.readable||k))&&(!k||Y)&&u.call(l)},Y=L(l,!1),j=()=>{Y=!0,l.destroyed&&(O=!1),!(O&&(!l.writable||q))&&(!q||U)&&u.call(l)},V=ye=>{u.call(l,ye)},G=R(l),ie=()=>{G=!0;let ye=z(l)||D(l);if(ye&&typeof ye!="boolean")return u.call(l,ye);if(k&&!Y&&N(l,!0)&&!L(l,!1))return u.call(l,new n);if(q&&!U&&!K(l,!1))return u.call(l,new n);u.call(l)},me=()=>{G=!0;let ye=z(l)||D(l);if(ye&&typeof ye!="boolean")return u.call(l,ye);u.call(l)},re=()=>{l.req.on("finish",oe)};i(l)?(l.on("complete",oe),O||l.on("abort",ie),l.req?re():l.on("request",re)):q&&!F&&(l.on("end",te),l.on("close",te)),!O&&typeof l.aborted=="boolean"&&l.on("aborted",ie),l.on("end",j),l.on("finish",oe),t.error!==!1&&l.on("error",V),l.on("close",ie),G?a.nextTick(ie):F!=null&&F.errorEmitted||ee!=null&&ee.errorEmitted?O||a.nextTick(me):(!k&&(!O||T(l))&&(U||Z(l)===!1)||!q&&(!O||Z(l))&&(Y||T(l)===!1)||ee&&l.req&&l.aborted)&&a.nextTick(me);let ae=()=>{u=s,l.removeListener("aborted",ie),l.removeListener("complete",oe),l.removeListener("abort",ie),l.removeListener("request",re),l.req&&l.req.removeListener("finish",oe),l.removeListener("end",te),l.removeListener("close",te),l.removeListener("finish",oe),l.removeListener("end",j),l.removeListener("error",V),l.removeListener("close",ie)};if(t.signal&&!G){let ye=()=>{let fe=u;ae(),fe.call(l,new o(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)a.nextTick(ye);else{r=r||fa().addAbortListener;let fe=r(t.signal,ye),he=u;u=b((...nt)=>{fe[E](),he.apply(l,nt)})}}return ae}function c(l,t,u){let S=!1,B=s;if(t.signal)if(B=()=>{S=!0,u.call(l,new o(void 0,{cause:t.signal.reason}))},t.signal.aborted)a.nextTick(B);else{r=r||fa().addAbortListener;let q=r(t.signal,B),F=u;u=b((...ee)=>{q[E](),F.apply(l,ee)})}let k=(...q)=>{S||a.nextTick(()=>u.apply(l,q))};return x(l[e].promise,k,k),s}function m(l,t){var u;let S=!1;return t===null&&(t=v),(u=t)!==null&&u!==void 0&&u.cleanup&&(g(t.cleanup,"cleanup"),S=t.cleanup),new _((B,k)=>{let q=h(l,t,F=>{S&&q(),F?k(F):B()})})}return Qb=h,Qb.finished=m,Qb}var FS={},NV=!1;function jd(){if(NV)return FS;NV=!0;let a=s0,{aggregateTwoErrors:o,codes:{ERR_MULTIPLE_CALLBACK:f},AbortError:d}=xa(),{Symbol:n}=Vi(),{kIsDestroyed:v,isDestroyed:b,isFinished:y,isServerRequest:M}=f0(),w=n("kDestroy"),g=n("kConstruct");function _(p,e,r){p&&(p.stack,e&&!e.errored&&(e.errored=p),r&&!r.errored&&(r.errored=p))}function x(p,e){let r=this._readableState,i=this._writableState,s=i||r;return i!=null&&i.destroyed||r!=null&&r.destroyed?(typeof e=="function"&&e(),this):(_(p,i,r),i&&(i.destroyed=!0),r&&(r.destroyed=!0),s.constructed?E(this,p,e):this.once(w,function(h){E(this,o(h,p),e)}),this)}function E(p,e,r){let i=!1;function s(h){if(i)return;i=!0;let c=p._readableState,m=p._writableState;_(h,m,c),m&&(m.closed=!0),c&&(c.closed=!0),typeof r=="function"&&r(h),h?a.nextTick(R,p,h):a.nextTick(T,p)}try{p._destroy(e||null,s)}catch(h){s(h)}}function R(p,e){N(p,e),T(p)}function T(p){let e=p._readableState,r=p._writableState;r&&(r.closeEmitted=!0),e&&(e.closeEmitted=!0),(r!=null&&r.emitClose||e!=null&&e.emitClose)&&p.emit("close")}function N(p,e){let r=p._readableState,i=p._writableState;i!=null&&i.errorEmitted||r!=null&&r.errorEmitted||(i&&(i.errorEmitted=!0),r&&(r.errorEmitted=!0),p.emit("error",e))}function P(){let p=this._readableState,e=this._writableState;p&&(p.constructed=!0,p.closed=!1,p.closeEmitted=!1,p.destroyed=!1,p.errored=null,p.errorEmitted=!1,p.reading=!1,p.ended=p.readable===!1,p.endEmitted=p.readable===!1),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=e.writable===!1,e.ending=e.writable===!1,e.finished=e.writable===!1)}function L(p,e,r){let i=p._readableState,s=p._writableState;if(s!=null&&s.destroyed||i!=null&&i.destroyed)return this;i!=null&&i.autoDestroy||s!=null&&s.autoDestroy?p.destroy(e):e&&(e.stack,s&&!s.errored&&(s.errored=e),i&&!i.errored&&(i.errored=e),r?a.nextTick(N,p,e):N(p,e))}function D(p,e){if(typeof p._construct!="function")return;let r=p._readableState,i=p._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),p.once(g,e),!(p.listenerCount(g)>1)&&a.nextTick(Z,p)}function Z(p){let e=!1;function r(i){if(e){L(p,i??new f);return}e=!0;let s=p._readableState,h=p._writableState,c=h||s;s&&(s.constructed=!0),h&&(h.constructed=!0),c.destroyed?p.emit(w,i):i?L(p,i,!0):a.nextTick(W,p)}try{p._construct(i=>{a.nextTick(r,i)})}catch(i){a.nextTick(r,i)}}function W(p){p.emit(g)}function Q(p){return p?.setHeader&&typeof p.abort=="function"}function K(p){p.emit("close")}function z(p,e){p.emit("error",e),a.nextTick(K,p)}function X(p,e){!p||b(p)||(!e&&!y(p)&&(e=new d),M(p)?(p.socket=null,p.destroy(e)):Q(p)?p.abort():Q(p.req)?p.req.abort():typeof p.destroy=="function"?p.destroy(e):typeof p.close=="function"?p.close():e?a.nextTick(z,p,e):a.nextTick(K,p),p.destroyed||(p[v]=!0))}return FS={construct:D,destroyer:X,destroy:x,undestroy:P,errorOrDestroy:L},FS}var zS={},CV=!1;function lE(){if(CV)return zS;CV=!0;let{ArrayIsArray:a,ObjectSetPrototypeOf:o}=Vi(),{EventEmitter:f}=Sh;function d(v){f.call(this,v)}o(d.prototype,f.prototype),o(d,f),d.prototype.pipe=function(v,b){let y=this;function M(T){v.writable&&v.write(T)===!1&&y.pause&&y.pause()}y.on("data",M);function w(){y.readable&&y.resume&&y.resume()}v.on("drain",w),!v._isStdio&&(!b||b.end!==!1)&&(y.on("end",_),y.on("close",x));let g=!1;function _(){g||(g=!0,v.end())}function x(){g||(g=!0,typeof v.destroy=="function"&&v.destroy())}function E(T){R(),f.listenerCount(this,"error")===0&&this.emit("error",T)}n(y,"error",E),n(v,"error",E);function R(){y.removeListener("data",M),v.removeListener("drain",w),y.removeListener("end",_),y.removeListener("close",x),y.removeListener("error",E),v.removeListener("error",E),y.removeListener("end",R),y.removeListener("close",R),v.removeListener("close",R)}return y.on("end",R),y.on("close",R),v.on("close",R),v.emit("pipe",y),v};function n(v,b,y){if(typeof v.prependListener=="function")return v.prependListener(b,y);!v._events||!v._events[b]?v.on(b,y):a(v._events[b])?v._events[b].unshift(y):v._events[b]=[y,v._events[b]]}return zS={Stream:d,prependListener:n},zS}var pp={},LV=!1;function im(){if(LV)return pp;LV=!0;let{SymbolDispose:a}=Vi(),{AbortError:o,codes:f}=xa(),{isNodeStream:d,isWebStream:n,kControllerErrorFunction:v}=f0(),b=Ah(),{ERR_INVALID_ARG_TYPE:y}=f,M,w=(g,_)=>{if(typeof g!="object"||!("aborted"in g))throw new y(_,"AbortSignal",g)};return pp.addAbortSignal=function(_,x){if(w(_,"signal"),!d(x)&&!n(x))throw new y("stream",["ReadableStream","WritableStream","Stream"],x);return pp.addAbortSignalNoValidate(_,x)},pp.addAbortSignalNoValidate=function(g,_){if(typeof g!="object"||!("aborted"in g))return _;let x=d(_)?()=>{_.destroy(new o(void 0,{cause:g.reason}))}:()=>{_[v](new o(void 0,{cause:g.reason}))};if(g.aborted)x();else{M=M||fa().addAbortListener;let E=M(g,x);b(_,E[a])}return _},pp}var HS={},DV=!1;function f2e(){if(DV)return HS;DV=!0;let{StringPrototypeSlice:a,SymbolIterator:o,TypedArrayPrototypeSet:f,Uint8Array:d}=Vi(),{Buffer:n}=xh(),{inspect:v}=fa();return HS=class{constructor(){this.head=null,this.tail=null,this.length=0}push(y){let M={data:y,next:null};this.length>0?this.tail.next=M:this.head=M,this.tail=M,++this.length}unshift(y){let M={data:y,next:this.head};this.length===0&&(this.tail=M),this.head=M,++this.length}shift(){if(this.length===0)return;let y=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,y}clear(){this.head=this.tail=null,this.length=0}join(y){if(this.length===0)return"";let M=this.head,w=""+M.data;for(;(M=M.next)!==null;)w+=y+M.data;return w}concat(y){if(this.length===0)return n.alloc(0);let M=n.allocUnsafe(y>>>0),w=this.head,g=0;for(;w;)f(M,w.data,g),g+=w.data.length,w=w.next;return M}consume(y,M){let w=this.head.data;if(y<w.length){let g=w.slice(0,y);return this.head.data=w.slice(y),g}return y===w.length?this.shift():M?this._getString(y):this._getBuffer(y)}first(){return this.head.data}*[o](){for(let y=this.head;y;y=y.next)yield y.data}_getString(y){let M="",w=this.head,g=0;do{let _=w.data;if(y>_.length)M+=_,y-=_.length;else{y===_.length?(M+=_,++g,w.next?this.head=w.next:this.head=this.tail=null):(M+=a(_,0,y),this.head=w,w.data=a(_,y));break}++g}while((w=w.next)!==null);return this.length-=g,M}_getBuffer(y){let M=n.allocUnsafe(y),w=y,g=this.head,_=0;do{let x=g.data;if(y>x.length)f(M,x,w-y),y-=x.length;else{y===x.length?(f(M,x,w-y),++_,g.next?this.head=g.next:this.head=this.tail=null):(f(M,new d(x.buffer,x.byteOffset,y),w-y),this.head=g,g.data=x.slice(y));break}++_}while((g=g.next)!==null);return this.length-=_,M}[Symbol.for("nodejs.util.inspect.custom")](y,M){return v(this,{...M,depth:0,customInspect:!1})}},HS}var KS={},OV=!1;function nm(){if(OV)return KS;OV=!0;let{MathFloor:a,NumberIsInteger:o}=Vi(),{validateInteger:f}=mp(),{ERR_INVALID_ARG_VALUE:d}=xa().codes,n=16*1024,v=16;function b(g,_,x){return g.highWaterMark!=null?g.highWaterMark:_?g[x]:null}function y(g){return g?v:n}function M(g,_){f(_,"value",0),g?v=_:n=_}function w(g,_,x,E){let R=b(_,E,x);if(R!=null){if(!o(R)||R<0){let T=E?`options.${x}`:"options.highWaterMark";throw new d(T,R)}return a(R)}return y(g.objectMode)}return KS={getHighWaterMark:w,getDefaultHighWaterMark:y,setDefaultHighWaterMark:M},KS}var jS={},qV=!1;function sJ(){if(qV)return jS;qV=!0;let a=s0,{PromisePrototypeThen:o,SymbolAsyncIterator:f,SymbolIterator:d}=Vi(),{Buffer:n}=xh(),{ERR_INVALID_ARG_TYPE:v,ERR_STREAM_NULL_VALUES:b}=xa().codes;function y(M,w,g){let _;if(typeof w=="string"||w instanceof n)return new M({objectMode:!0,...g,read(){this.push(w),this.push(null)}});let x;if(w&&w[f])x=!0,_=w[f]();else if(w&&w[d])x=!1,_=w[d]();else throw new v("iterable",["Iterable"],w);let E=new M({objectMode:!0,highWaterMark:1,...g}),R=!1;E._read=function(){R||(R=!0,N())},E._destroy=function(P,L){o(T(P),()=>a.nextTick(L,P),D=>a.nextTick(L,D||P))};async function T(P){let L=P!=null,D=typeof _.throw=="function";if(L&&D){let{value:Z,done:W}=await _.throw(P);if(await Z,W)return}if(typeof _.return=="function"){let{value:Z}=await _.return();await Z}}async function N(){for(;;){try{let{value:P,done:L}=x?await _.next():_.next();if(L)E.push(null);else{let D=P&&typeof P.then=="function"?await P:P;if(D===null)throw R=!1,new b;if(E.push(D))continue;R=!1}}catch(P){E.destroy(P)}break}}return E}return jS=y,jS}var WS={},UV=!1,_t=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function am(){if(UV)return WS;UV=!0;let a=s0,{ArrayPrototypeIndexOf:o,NumberIsInteger:f,NumberIsNaN:d,NumberParseInt:n,ObjectDefineProperties:v,ObjectKeys:b,ObjectSetPrototypeOf:y,Promise:M,SafeSet:w,SymbolAsyncDispose:g,SymbolAsyncIterator:_,Symbol:x}=Vi();WS=nt,nt.ReadableState=he;let{EventEmitter:E}=Sh,{Stream:R,prependListener:T}=lE(),{Buffer:N}=xh(),{addAbortSignal:P}=im(),L=Ah(),D=fa().debuglog("stream",se=>{D=se}),Z=f2e(),W=jd(),{getHighWaterMark:Q,getDefaultHighWaterMark:K}=nm(),{aggregateTwoErrors:z,codes:{ERR_INVALID_ARG_TYPE:X,ERR_METHOD_NOT_IMPLEMENTED:p,ERR_OUT_OF_RANGE:e,ERR_STREAM_PUSH_AFTER_EOF:r,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:i},AbortError:s}=xa(),{validateObject:h}=mp(),c=x("kPaused"),{StringDecoder:m}=oE,l=sJ();y(nt.prototype,R.prototype),y(nt,R);let t=()=>{},{errorOrDestroy:u}=W,S=1,B=2,k=4,q=8,F=16,ee=32,te=64,O=128,U=256,oe=512,Y=1024,j=2048,V=4096,G=8192,ie=16384,me=32768,re=65536,ae=1<<17,ye=1<<18;function fe(se){return{enumerable:!1,get(){return((this||_t).state&se)!==0},set(ue){ue?(this||_t).state|=se:(this||_t).state&=~se}}}v(he.prototype,{objectMode:fe(S),ended:fe(B),endEmitted:fe(k),reading:fe(q),constructed:fe(F),sync:fe(ee),needReadable:fe(te),emittedReadable:fe(O),readableListening:fe(U),resumeScheduled:fe(oe),errorEmitted:fe(Y),emitClose:fe(j),autoDestroy:fe(V),destroyed:fe(G),closed:fe(ie),closeEmitted:fe(me),multiAwaitDrain:fe(re),readingMore:fe(ae),dataEmitted:fe(ye)});function he(se,ue,ht){typeof ht!="boolean"&&(ht=ue instanceof o0()),(this||_t).state=j|V|F|ee,se&&se.objectMode&&((this||_t).state|=S),ht&&se&&se.readableObjectMode&&((this||_t).state|=S),(this||_t).highWaterMark=se?Q(this||_t,se,"readableHighWaterMark",ht):K(!1),(this||_t).buffer=new Z,(this||_t).length=0,(this||_t).pipes=[],(this||_t).flowing=null,(this||_t)[c]=null,se&&se.emitClose===!1&&((this||_t).state&=~j),se&&se.autoDestroy===!1&&((this||_t).state&=~V),(this||_t).errored=null,(this||_t).defaultEncoding=se&&se.defaultEncoding||"utf8",(this||_t).awaitDrainWriters=null,(this||_t).decoder=null,(this||_t).encoding=null,se&&se.encoding&&((this||_t).decoder=new m(se.encoding),(this||_t).encoding=se.encoding)}function nt(se){if(!((this||_t)instanceof nt))return new nt(se);let ue=(this||_t)instanceof o0();(this||_t)._readableState=new he(se,this||_t,ue),se&&(typeof se.read=="function"&&((this||_t)._read=se.read),typeof se.destroy=="function"&&((this||_t)._destroy=se.destroy),typeof se.construct=="function"&&((this||_t)._construct=se.construct),se.signal&&!ue&&P(se.signal,this||_t)),R.call(this||_t,se),W.construct(this||_t,()=>{(this||_t)._readableState.needReadable&&ne(this||_t,(this||_t)._readableState)})}nt.prototype.destroy=W.destroy,nt.prototype._undestroy=W.undestroy,nt.prototype._destroy=function(se,ue){ue(se)},nt.prototype[E.captureRejectionSymbol]=function(se){this.destroy(se)},nt.prototype[g]=function(){let se;return(this||_t).destroyed||(se=(this||_t).readableEnded?null:new s,this.destroy(se)),new M((ue,ht)=>L(this||_t,pe=>pe&&pe!==se?ht(pe):ue(null)))},nt.prototype.push=function(se,ue){return ce(this||_t,se,ue,!1)},nt.prototype.unshift=function(se,ue){return ce(this||_t,se,ue,!0)};function ce(se,ue,ht,pe){D("readableAddChunk",ue);let Se=se._readableState,dt;if(Se.state&S||(typeof ue=="string"?(ht=ht||Se.defaultEncoding,Se.encoding!==ht&&(pe&&Se.encoding?ue=N.from(ue,ht).toString(Se.encoding):(ue=N.from(ue,ht),ht=""))):ue instanceof N?ht="":R._isUint8Array(ue)?(ue=R._uint8ArrayToBuffer(ue),ht=""):ue!=null&&(dt=new X("chunk",["string","Buffer","Uint8Array"],ue))),dt)u(se,dt);else if(ue===null)Se.state&=~q,I(se,Se);else if(Se.state&S||ue&&ue.length>0)if(pe)if(Se.state&k)u(se,new i);else{if(Se.destroyed||Se.errored)return!1;be(se,Se,ue,!0)}else if(Se.ended)u(se,new r);else{if(Se.destroyed||Se.errored)return!1;Se.state&=~q,Se.decoder&&!ht?(ue=Se.decoder.write(ue),Se.objectMode||ue.length!==0?be(se,Se,ue,!1):ne(se,Se)):be(se,Se,ue,!1)}else pe||(Se.state&=~q,ne(se,Se));return!Se.ended&&(Se.length<Se.highWaterMark||Se.length===0)}function be(se,ue,ht,pe){ue.flowing&&ue.length===0&&!ue.sync&&se.listenerCount("data")>0?(ue.state&re?ue.awaitDrainWriters.clear():ue.awaitDrainWriters=null,ue.dataEmitted=!0,se.emit("data",ht)):(ue.length+=ue.objectMode?1:ht.length,pe?ue.buffer.unshift(ht):ue.buffer.push(ht),ue.state&te&&C(se)),ne(se,ue)}nt.prototype.isPaused=function(){let se=(this||_t)._readableState;return se[c]===!0||se.flowing===!1},nt.prototype.setEncoding=function(se){let ue=new m(se);(this||_t)._readableState.decoder=ue,(this||_t)._readableState.encoding=(this||_t)._readableState.decoder.encoding;let ht=(this||_t)._readableState.buffer,pe="";for(let Se of ht)pe+=ue.write(Se);return ht.clear(),pe!==""&&ht.push(pe),(this||_t)._readableState.length=pe.length,this||_t};let ut=1073741824;function $(se){if(se>ut)throw new e("size","<= 1GiB",se);return se--,se|=se>>>1,se|=se>>>2,se|=se>>>4,se|=se>>>8,se|=se>>>16,se++,se}function A(se,ue){return se<=0||ue.length===0&&ue.ended?0:ue.state&S?1:d(se)?ue.flowing&&ue.length?ue.buffer.first().length:ue.length:se<=ue.length?se:ue.ended?ue.length:0}nt.prototype.read=function(se){D("read",se),se===void 0?se=NaN:f(se)||(se=n(se,10));let ue=(this||_t)._readableState,ht=se;if(se>ue.highWaterMark&&(ue.highWaterMark=$(se)),se!==0&&(ue.state&=~O),se===0&&ue.needReadable&&((ue.highWaterMark!==0?ue.length>=ue.highWaterMark:ue.length>0)||ue.ended))return D("read: emitReadable",ue.length,ue.ended),ue.length===0&&ue.ended?Ne(this||_t):C(this||_t),null;if(se=A(se,ue),se===0&&ue.ended)return ue.length===0&&Ne(this||_t),null;let pe=(ue.state&te)!==0;if(D("need readable",pe),(ue.length===0||ue.length-se<ue.highWaterMark)&&(pe=!0,D("length less than watermark",pe)),ue.ended||ue.reading||ue.destroyed||ue.errored||!ue.constructed)pe=!1,D("reading, ended or constructing",pe);else if(pe){D("do read"),ue.state|=q|ee,ue.length===0&&(ue.state|=te);try{this._read(ue.highWaterMark)}catch(dt){u(this||_t,dt)}ue.state&=~ee,ue.reading||(se=A(ht,ue))}let Se;return se>0?Se=Me(se,ue):Se=null,Se===null?(ue.needReadable=ue.length<=ue.highWaterMark,se=0):(ue.length-=se,ue.multiAwaitDrain?ue.awaitDrainWriters.clear():ue.awaitDrainWriters=null),ue.length===0&&(ue.ended||(ue.needReadable=!0),ht!==se&&ue.ended&&Ne(this||_t)),Se!==null&&!ue.errorEmitted&&!ue.closeEmitted&&(ue.dataEmitted=!0,this.emit("data",Se)),Se};function I(se,ue){if(D("onEofChunk"),!ue.ended){if(ue.decoder){let ht=ue.decoder.end();ht&&ht.length&&(ue.buffer.push(ht),ue.length+=ue.objectMode?1:ht.length)}ue.ended=!0,ue.sync?C(se):(ue.needReadable=!1,ue.emittedReadable=!0,H(se))}}function C(se){let ue=se._readableState;D("emitReadable",ue.needReadable,ue.emittedReadable),ue.needReadable=!1,ue.emittedReadable||(D("emitReadable",ue.flowing),ue.emittedReadable=!0,a.nextTick(H,se))}function H(se){let ue=se._readableState;D("emitReadable_",ue.destroyed,ue.length,ue.ended),!ue.destroyed&&!ue.errored&&(ue.length||ue.ended)&&(se.emit("readable"),ue.emittedReadable=!1),ue.needReadable=!ue.flowing&&!ue.ended&&ue.length<=ue.highWaterMark,we(se)}function ne(se,ue){!ue.readingMore&&ue.constructed&&(ue.readingMore=!0,a.nextTick(J,se,ue))}function J(se,ue){for(;!ue.reading&&!ue.ended&&(ue.length<ue.highWaterMark||ue.flowing&&ue.length===0);){let ht=ue.length;if(D("maybeReadMore read 0"),se.read(0),ht===ue.length)break}ue.readingMore=!1}nt.prototype._read=function(se){throw new p("_read()")},nt.prototype.pipe=function(se,ue){let ht=this||_t,pe=(this||_t)._readableState;pe.pipes.length===1&&(pe.multiAwaitDrain||(pe.multiAwaitDrain=!0,pe.awaitDrainWriters=new w(pe.awaitDrainWriters?[pe.awaitDrainWriters]:[]))),pe.pipes.push(se),D("pipe count=%d opts=%j",pe.pipes.length,ue);let dt=(!ue||ue.end!==!1)&&se!==a.stdout&&se!==a.stderr?De:yt;pe.endEmitted?a.nextTick(dt):ht.once("end",dt),se.on("unpipe",ge);function ge(xt,Mt){D("onunpipe"),xt===ht&&Mt&&Mt.hasUnpiped===!1&&(Mt.hasUnpiped=!0,Oe())}function De(){D("onend"),se.end()}let ct,_e=!1;function Oe(){D("cleanup"),se.removeListener("close",pt),se.removeListener("finish",lt),ct&&se.removeListener("drain",ct),se.removeListener("error",Pe),se.removeListener("unpipe",ge),ht.removeListener("end",De),ht.removeListener("end",yt),ht.removeListener("data",Ee),_e=!0,ct&&pe.awaitDrainWriters&&(!se._writableState||se._writableState.needDrain)&&ct()}function gt(){_e||(pe.pipes.length===1&&pe.pipes[0]===se?(D("false write response, pause",0),pe.awaitDrainWriters=se,pe.multiAwaitDrain=!1):pe.pipes.length>1&&pe.pipes.includes(se)&&(D("false write response, pause",pe.awaitDrainWriters.size),pe.awaitDrainWriters.add(se)),ht.pause()),ct||(ct=de(ht,se),se.on("drain",ct))}ht.on("data",Ee);function Ee(xt){D("ondata");let Mt=se.write(xt);D("dest.write",Mt),Mt===!1&&gt()}function Pe(xt){if(D("onerror",xt),yt(),se.removeListener("error",Pe),se.listenerCount("error")===0){let Mt=se._writableState||se._readableState;Mt&&!Mt.errorEmitted?u(se,xt):se.emit("error",xt)}}T(se,"error",Pe);function pt(){se.removeListener("finish",lt),yt()}se.once("close",pt);function lt(){D("onfinish"),se.removeListener("close",pt),yt()}se.once("finish",lt);function yt(){D("unpipe"),ht.unpipe(se)}return se.emit("pipe",ht),se.writableNeedDrain===!0?gt():pe.flowing||(D("pipe resume"),ht.resume()),se};function de(se,ue){return function(){let pe=se._readableState;pe.awaitDrainWriters===ue?(D("pipeOnDrain",1),pe.awaitDrainWriters=null):pe.multiAwaitDrain&&(D("pipeOnDrain",pe.awaitDrainWriters.size),pe.awaitDrainWriters.delete(ue)),(!pe.awaitDrainWriters||pe.awaitDrainWriters.size===0)&&se.listenerCount("data")&&se.resume()}}nt.prototype.unpipe=function(se){let ue=(this||_t)._readableState,ht={hasUnpiped:!1};if(ue.pipes.length===0)return this||_t;if(!se){let Se=ue.pipes;ue.pipes=[],this.pause();for(let dt=0;dt<Se.length;dt++)Se[dt].emit("unpipe",this||_t,{hasUnpiped:!1});return this||_t}let pe=o(ue.pipes,se);return pe===-1?this||_t:(ue.pipes.splice(pe,1),ue.pipes.length===0&&this.pause(),se.emit("unpipe",this||_t,ht),this||_t)},nt.prototype.on=function(se,ue){let ht=R.prototype.on.call(this||_t,se,ue),pe=(this||_t)._readableState;return se==="data"?(pe.readableListening=this.listenerCount("readable")>0,pe.flowing!==!1&&this.resume()):se==="readable"&&!pe.endEmitted&&!pe.readableListening&&(pe.readableListening=pe.needReadable=!0,pe.flowing=!1,pe.emittedReadable=!1,D("on readable",pe.length,pe.reading),pe.length?C(this||_t):pe.reading||a.nextTick(le,this||_t)),ht},nt.prototype.addListener=nt.prototype.on,nt.prototype.removeListener=function(se,ue){let ht=R.prototype.removeListener.call(this||_t,se,ue);return se==="readable"&&a.nextTick(st,this||_t),ht},nt.prototype.off=nt.prototype.removeListener,nt.prototype.removeAllListeners=function(se){let ue=R.prototype.removeAllListeners.apply(this||_t,arguments);return(se==="readable"||se===void 0)&&a.nextTick(st,this||_t),ue};function st(se){let ue=se._readableState;ue.readableListening=se.listenerCount("readable")>0,ue.resumeScheduled&&ue[c]===!1?ue.flowing=!0:se.listenerCount("data")>0?se.resume():ue.readableListening||(ue.flowing=null)}function le(se){D("readable nexttick read 0"),se.read(0)}nt.prototype.resume=function(){let se=(this||_t)._readableState;return se.flowing||(D("resume"),se.flowing=!se.readableListening,ve(this||_t,se)),se[c]=!1,this||_t};function ve(se,ue){ue.resumeScheduled||(ue.resumeScheduled=!0,a.nextTick(ot,se,ue))}function ot(se,ue){D("resume",ue.reading),ue.reading||se.read(0),ue.resumeScheduled=!1,se.emit("resume"),we(se),ue.flowing&&!ue.reading&&se.read(0)}nt.prototype.pause=function(){return D("call pause flowing=%j",(this||_t)._readableState.flowing),(this||_t)._readableState.flowing!==!1&&(D("pause"),(this||_t)._readableState.flowing=!1,this.emit("pause")),(this||_t)._readableState[c]=!0,this||_t};function we(se){let ue=se._readableState;for(D("flow",ue.flowing);ue.flowing&&se.read()!==null;);}nt.prototype.wrap=function(se){let ue=!1;se.on("data",pe=>{!this.push(pe)&&se.pause&&(ue=!0,se.pause())}),se.on("end",()=>{this.push(null)}),se.on("error",pe=>{u(this||_t,pe)}),se.on("close",()=>{this.destroy()}),se.on("destroy",()=>{this.destroy()}),(this||_t)._read=()=>{ue&&se.resume&&(ue=!1,se.resume())};let ht=b(se);for(let pe=1;pe<ht.length;pe++){let Se=ht[pe];(this||_t)[Se]===void 0&&typeof se[Se]=="function"&&((this||_t)[Se]=se[Se].bind(se))}return this||_t},nt.prototype[_]=function(){return Le(this||_t)},nt.prototype.iterator=function(se){return se!==void 0&&h(se,"options"),Le(this||_t,se)};function Le(se,ue){typeof se.read!="function"&&(se=nt.wrap(se,{objectMode:!0}));let ht=bt(se,ue);return ht.stream=se,ht}async function*bt(se,ue){let ht=t;function pe(ge){(this||_t)===se?(ht(),ht=t):ht=ge}se.on("readable",pe);let Se,dt=L(se,{writable:!1},ge=>{Se=ge?z(Se,ge):null,ht(),ht=t});try{for(;;){let ge=se.destroyed?null:se.read();if(ge!==null)yield ge;else{if(Se)throw Se;if(Se===null)return;await new M(pe)}}}catch(ge){throw Se=z(Se,ge),Se}finally{(Se||ue?.destroyOnReturn!==!1)&&(Se===void 0||se._readableState.autoDestroy)?W.destroyer(se,null):(se.off("readable",pe),dt())}}v(nt.prototype,{readable:{__proto__:null,get(){let se=(this||_t)._readableState;return!!se&&se.readable!==!1&&!se.destroyed&&!se.errorEmitted&&!se.endEmitted},set(se){(this||_t)._readableState&&((this||_t)._readableState.readable=!!se)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return(this||_t)._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!((this||_t)._readableState.readable!==!1&&((this||_t)._readableState.destroyed||(this||_t)._readableState.errored)&&!(this||_t)._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return(this||_t)._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return(this||_t)._readableState&&(this||_t)._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return(this||_t)._readableState.flowing},set:function(se){(this||_t)._readableState&&((this||_t)._readableState.flowing=se)}},readableLength:{__proto__:null,enumerable:!1,get(){return(this||_t)._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return(this||_t)._readableState?(this||_t)._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return(this||_t)._readableState?(this||_t)._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return(this||_t)._readableState?(this||_t)._readableState.errored:null}},closed:{__proto__:null,get(){return(this||_t)._readableState?(this||_t)._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return(this||_t)._readableState?(this||_t)._readableState.destroyed:!1},set(se){(this||_t)._readableState&&((this||_t)._readableState.destroyed=se)}},readableEnded:{__proto__:null,enumerable:!1,get(){return(this||_t)._readableState?(this||_t)._readableState.endEmitted:!1}}}),v(he.prototype,{pipesCount:{__proto__:null,get(){return(this||_t).pipes.length}},paused:{__proto__:null,get(){return(this||_t)[c]!==!1},set(se){(this||_t)[c]=!!se}}}),nt._fromList=Me;function Me(se,ue){if(ue.length===0)return null;let ht;return ue.objectMode?ht=ue.buffer.shift():!se||se>=ue.length?(ue.decoder?ht=ue.buffer.join(""):ue.buffer.length===1?ht=ue.buffer.first():ht=ue.buffer.concat(ue.length),ue.buffer.clear()):ht=ue.buffer.consume(se,ue.decoder),ht}function Ne(se){let ue=se._readableState;D("endReadable",ue.endEmitted),ue.endEmitted||(ue.ended=!0,a.nextTick(mt,ue,se))}function mt(se,ue){if(D("endReadableNT",se.endEmitted,se.length),!se.errored&&!se.closeEmitted&&!se.endEmitted&&se.length===0){if(se.endEmitted=!0,ue.emit("end"),ue.writable&&ue.allowHalfOpen===!1)a.nextTick(xe,ue);else if(se.autoDestroy){let ht=ue._writableState;(!ht||ht.autoDestroy&&(ht.finished||ht.writable===!1))&&ue.destroy()}}}function xe(se){se.writable&&!se.writableEnded&&!se.destroyed&&se.end()}nt.from=function(se,ue){return l(nt,se,ue)};let Ce;function vt(){return Ce===void 0&&(Ce={}),Ce}return nt.fromWeb=function(se,ue){return vt().newStreamReadableFromReadableStream(se,ue)},nt.toWeb=function(se,ue){return vt().newReadableStreamFromStreamReadable(se,ue)},nt.wrap=function(se,ue){var ht,pe;return new nt({objectMode:(ht=(pe=se.readableObjectMode)!==null&&pe!==void 0?pe:se.objectMode)!==null&&ht!==void 0?ht:!0,...ue,destroy(Se,dt){W.destroyer(se,Se),dt(Se)}}).wrap(se)},WS}var ZS={},FV=!1,Ot=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function dE(){if(FV)return ZS;FV=!0;let a=s0,{ArrayPrototypeSlice:o,Error:f,FunctionPrototypeSymbolHasInstance:d,ObjectDefineProperty:n,ObjectDefineProperties:v,ObjectSetPrototypeOf:b,StringPrototypeToLowerCase:y,Symbol:M,SymbolHasInstance:w}=Vi();ZS=h,h.WritableState=i;let{EventEmitter:g}=Sh,_=lE().Stream,{Buffer:x}=xh(),E=jd(),{addAbortSignal:R}=im(),{getHighWaterMark:T,getDefaultHighWaterMark:N}=nm(),{ERR_INVALID_ARG_TYPE:P,ERR_METHOD_NOT_IMPLEMENTED:L,ERR_MULTIPLE_CALLBACK:D,ERR_STREAM_CANNOT_PIPE:Z,ERR_STREAM_DESTROYED:W,ERR_STREAM_ALREADY_FINISHED:Q,ERR_STREAM_NULL_VALUES:K,ERR_STREAM_WRITE_AFTER_END:z,ERR_UNKNOWN_ENCODING:X}=xa().codes,{errorOrDestroy:p}=E;b(h.prototype,_.prototype),b(h,_);function e(){}let r=M("kOnFinished");function i(V,G,ie){typeof ie!="boolean"&&(ie=G instanceof o0()),(this||Ot).objectMode=!!(V&&V.objectMode),ie&&((this||Ot).objectMode=(this||Ot).objectMode||!!(V&&V.writableObjectMode)),(this||Ot).highWaterMark=V?T(this||Ot,V,"writableHighWaterMark",ie):N(!1),(this||Ot).finalCalled=!1,(this||Ot).needDrain=!1,(this||Ot).ending=!1,(this||Ot).ended=!1,(this||Ot).finished=!1,(this||Ot).destroyed=!1;let me=!!(V&&V.decodeStrings===!1);(this||Ot).decodeStrings=!me,(this||Ot).defaultEncoding=V&&V.defaultEncoding||"utf8",(this||Ot).length=0,(this||Ot).writing=!1,(this||Ot).corked=0,(this||Ot).sync=!0,(this||Ot).bufferProcessing=!1,(this||Ot).onwrite=u.bind(void 0,G),(this||Ot).writecb=null,(this||Ot).writelen=0,(this||Ot).afterWriteTickInfo=null,s(this||Ot),(this||Ot).pendingcb=0,(this||Ot).constructed=!0,(this||Ot).prefinished=!1,(this||Ot).errorEmitted=!1,(this||Ot).emitClose=!V||V.emitClose!==!1,(this||Ot).autoDestroy=!V||V.autoDestroy!==!1,(this||Ot).errored=null,(this||Ot).closed=!1,(this||Ot).closeEmitted=!1,(this||Ot)[r]=[]}function s(V){V.buffered=[],V.bufferedIndex=0,V.allBuffers=!0,V.allNoop=!0}i.prototype.getBuffer=function(){return o((this||Ot).buffered,(this||Ot).bufferedIndex)},n(i.prototype,"bufferedRequestCount",{__proto__:null,get(){return(this||Ot).buffered.length-(this||Ot).bufferedIndex}});function h(V){let G=(this||Ot)instanceof o0();if(!G&&!d(h,this||Ot))return new h(V);(this||Ot)._writableState=new i(V,this||Ot,G),V&&(typeof V.write=="function"&&((this||Ot)._write=V.write),typeof V.writev=="function"&&((this||Ot)._writev=V.writev),typeof V.destroy=="function"&&((this||Ot)._destroy=V.destroy),typeof V.final=="function"&&((this||Ot)._final=V.final),typeof V.construct=="function"&&((this||Ot)._construct=V.construct),V.signal&&R(V.signal,this||Ot)),_.call(this||Ot,V),E.construct(this||Ot,()=>{let ie=(this||Ot)._writableState;ie.writing||q(this||Ot,ie),O(this||Ot,ie)})}n(h,w,{__proto__:null,value:function(V){return d(this||Ot,V)?!0:(this||Ot)!==h?!1:V&&V._writableState instanceof i}}),h.prototype.pipe=function(){p(this||Ot,new Z)};function c(V,G,ie,me){let re=V._writableState;if(typeof ie=="function")me=ie,ie=re.defaultEncoding;else{if(!ie)ie=re.defaultEncoding;else if(ie!=="buffer"&&!x.isEncoding(ie))throw new X(ie);typeof me!="function"&&(me=e)}if(G===null)throw new K;if(!re.objectMode)if(typeof G=="string")re.decodeStrings!==!1&&(G=x.from(G,ie),ie="buffer");else if(G instanceof x)ie="buffer";else if(_._isUint8Array(G))G=_._uint8ArrayToBuffer(G),ie="buffer";else throw new P("chunk",["string","Buffer","Uint8Array"],G);let ae;return re.ending?ae=new z:re.destroyed&&(ae=new W("write")),ae?(a.nextTick(me,ae),p(V,ae,!0),ae):(re.pendingcb++,m(V,re,G,ie,me))}h.prototype.write=function(V,G,ie){return c(this||Ot,V,G,ie)===!0},h.prototype.cork=function(){(this||Ot)._writableState.corked++},h.prototype.uncork=function(){let V=(this||Ot)._writableState;V.corked&&(V.corked--,V.writing||q(this||Ot,V))},h.prototype.setDefaultEncoding=function(G){if(typeof G=="string"&&(G=y(G)),!x.isEncoding(G))throw new X(G);return(this||Ot)._writableState.defaultEncoding=G,this||Ot};function m(V,G,ie,me,re){let ae=G.objectMode?1:ie.length;G.length+=ae;let ye=G.length<G.highWaterMark;return ye||(G.needDrain=!0),G.writing||G.corked||G.errored||!G.constructed?(G.buffered.push({chunk:ie,encoding:me,callback:re}),G.allBuffers&&me!=="buffer"&&(G.allBuffers=!1),G.allNoop&&re!==e&&(G.allNoop=!1)):(G.writelen=ae,G.writecb=re,G.writing=!0,G.sync=!0,V._write(ie,me,G.onwrite),G.sync=!1),ye&&!G.errored&&!G.destroyed}function l(V,G,ie,me,re,ae,ye){G.writelen=me,G.writecb=ye,G.writing=!0,G.sync=!0,G.destroyed?G.onwrite(new W("write")):ie?V._writev(re,G.onwrite):V._write(re,ae,G.onwrite),G.sync=!1}function t(V,G,ie,me){--G.pendingcb,me(ie),k(G),p(V,ie)}function u(V,G){let ie=V._writableState,me=ie.sync,re=ie.writecb;if(typeof re!="function"){p(V,new D);return}ie.writing=!1,ie.writecb=null,ie.length-=ie.writelen,ie.writelen=0,G?(G.stack,ie.errored||(ie.errored=G),V._readableState&&!V._readableState.errored&&(V._readableState.errored=G),me?a.nextTick(t,V,ie,G,re):t(V,ie,G,re)):(ie.buffered.length>ie.bufferedIndex&&q(V,ie),me?ie.afterWriteTickInfo!==null&&ie.afterWriteTickInfo.cb===re?ie.afterWriteTickInfo.count++:(ie.afterWriteTickInfo={count:1,cb:re,stream:V,state:ie},a.nextTick(S,ie.afterWriteTickInfo)):B(V,ie,1,re))}function S({stream:V,state:G,count:ie,cb:me}){return G.afterWriteTickInfo=null,B(V,G,ie,me)}function B(V,G,ie,me){for(!G.ending&&!V.destroyed&&G.length===0&&G.needDrain&&(G.needDrain=!1,V.emit("drain"));ie-- >0;)G.pendingcb--,me();G.destroyed&&k(G),O(V,G)}function k(V){if(V.writing)return;for(let re=V.bufferedIndex;re<V.buffered.length;++re){var G;let{chunk:ae,callback:ye}=V.buffered[re],fe=V.objectMode?1:ae.length;V.length-=fe,ye((G=V.errored)!==null&&G!==void 0?G:new W("write"))}let ie=V[r].splice(0);for(let re=0;re<ie.length;re++){var me;ie[re]((me=V.errored)!==null&&me!==void 0?me:new W("end"))}s(V)}function q(V,G){if(G.corked||G.bufferProcessing||G.destroyed||!G.constructed)return;let{buffered:ie,bufferedIndex:me,objectMode:re}=G,ae=ie.length-me;if(!ae)return;let ye=me;if(G.bufferProcessing=!0,ae>1&&V._writev){G.pendingcb-=ae-1;let fe=G.allNoop?e:nt=>{for(let ce=ye;ce<ie.length;++ce)ie[ce].callback(nt)},he=G.allNoop&&ye===0?ie:o(ie,ye);he.allBuffers=G.allBuffers,l(V,G,!0,G.length,he,"",fe),s(G)}else{do{let{chunk:fe,encoding:he,callback:nt}=ie[ye];ie[ye++]=null;let ce=re?1:fe.length;l(V,G,!1,ce,fe,he,nt)}while(ye<ie.length&&!G.writing);ye===ie.length?s(G):ye>256?(ie.splice(0,ye),G.bufferedIndex=0):G.bufferedIndex=ye}G.bufferProcessing=!1}h.prototype._write=function(V,G,ie){if((this||Ot)._writev)this._writev([{chunk:V,encoding:G}],ie);else throw new L("_write()")},h.prototype._writev=null,h.prototype.end=function(V,G,ie){let me=(this||Ot)._writableState;typeof V=="function"?(ie=V,V=null,G=null):typeof G=="function"&&(ie=G,G=null);let re;if(V!=null){let ae=c(this||Ot,V,G);ae instanceof f&&(re=ae)}return me.corked&&(me.corked=1,this.uncork()),re||(!me.errored&&!me.ending?(me.ending=!0,O(this||Ot,me,!0),me.ended=!0):me.finished?re=new Q("end"):me.destroyed&&(re=new W("end"))),typeof ie=="function"&&(re||me.finished?a.nextTick(ie,re):me[r].push(ie)),this||Ot};function F(V){return V.ending&&!V.destroyed&&V.constructed&&V.length===0&&!V.errored&&V.buffered.length===0&&!V.finished&&!V.writing&&!V.errorEmitted&&!V.closeEmitted}function ee(V,G){let ie=!1;function me(re){if(ie){p(V,re??D());return}if(ie=!0,G.pendingcb--,re){let ae=G[r].splice(0);for(let ye=0;ye<ae.length;ye++)ae[ye](re);p(V,re,G.sync)}else F(G)&&(G.prefinished=!0,V.emit("prefinish"),G.pendingcb++,a.nextTick(U,V,G))}G.sync=!0,G.pendingcb++;try{V._final(me)}catch(re){me(re)}G.sync=!1}function te(V,G){!G.prefinished&&!G.finalCalled&&(typeof V._final=="function"&&!G.destroyed?(G.finalCalled=!0,ee(V,G)):(G.prefinished=!0,V.emit("prefinish")))}function O(V,G,ie){F(G)&&(te(V,G),G.pendingcb===0&&(ie?(G.pendingcb++,a.nextTick((me,re)=>{F(re)?U(me,re):re.pendingcb--},V,G)):F(G)&&(G.pendingcb++,U(V,G))))}function U(V,G){G.pendingcb--,G.finished=!0;let ie=G[r].splice(0);for(let me=0;me<ie.length;me++)ie[me]();if(V.emit("finish"),G.autoDestroy){let me=V._readableState;(!me||me.autoDestroy&&(me.endEmitted||me.readable===!1))&&V.destroy()}}v(h.prototype,{closed:{__proto__:null,get(){return(this||Ot)._writableState?(this||Ot)._writableState.closed:!1}},destroyed:{__proto__:null,get(){return(this||Ot)._writableState?(this||Ot)._writableState.destroyed:!1},set(V){(this||Ot)._writableState&&((this||Ot)._writableState.destroyed=V)}},writable:{__proto__:null,get(){let V=(this||Ot)._writableState;return!!V&&V.writable!==!1&&!V.destroyed&&!V.errored&&!V.ending&&!V.ended},set(V){(this||Ot)._writableState&&((this||Ot)._writableState.writable=!!V)}},writableFinished:{__proto__:null,get(){return(this||Ot)._writableState?(this||Ot)._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return(this||Ot)._writableState?(this||Ot)._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return(this||Ot)._writableState&&(this||Ot)._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return(this||Ot)._writableState?(this||Ot)._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let V=(this||Ot)._writableState;return V?!V.destroyed&&!V.ending&&V.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return(this||Ot)._writableState&&(this||Ot)._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return(this||Ot)._writableState?(this||Ot)._writableState.corked:0}},writableLength:{__proto__:null,get(){return(this||Ot)._writableState&&(this||Ot)._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return(this||Ot)._writableState?(this||Ot)._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!((this||Ot)._writableState.writable!==!1&&((this||Ot)._writableState.destroyed||(this||Ot)._writableState.errored)&&!(this||Ot)._writableState.finished)}}});let oe=E.destroy;h.prototype.destroy=function(V,G){let ie=(this||Ot)._writableState;return!ie.destroyed&&(ie.bufferedIndex<ie.buffered.length||ie[r].length)&&a.nextTick(k,ie),oe.call(this||Ot,V,G),this||Ot},h.prototype._undestroy=E.undestroy,h.prototype._destroy=function(V,G){G(V)},h.prototype[g.captureRejectionSymbol]=function(V){this.destroy(V)};let Y;function j(){return Y===void 0&&(Y={}),Y}return h.fromWeb=function(V,G){return j().newStreamWritableFromWritableStream(V,G)},h.toWeb=function(V){return j().newWritableStreamFromStreamWritable(V)},ZS}var GS={},zV=!1;function h2e(){if(zV)return GS;zV=!0;let a=s0,o=xh(),{isReadable:f,isWritable:d,isIterable:n,isNodeStream:v,isReadableNodeStream:b,isWritableNodeStream:y,isDuplexNodeStream:M,isReadableStream:w,isWritableStream:g}=f0(),_=Ah(),{AbortError:x,codes:{ERR_INVALID_ARG_TYPE:E,ERR_INVALID_RETURN_VALUE:R}}=xa(),{destroyer:T}=jd(),N=o0(),P=am(),L=dE(),{createDeferredPromise:D}=fa(),Z=sJ(),W=globalThis.Blob||o.Blob,Q=typeof W<"u"?function(i){return i instanceof W}:function(i){return!1},K=globalThis.AbortController||vp().AbortController,{FunctionPrototypeCall:z}=Vi();class X extends N{constructor(i){super(i),i?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),i?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}GS=function r(i,s){if(M(i))return i;if(b(i))return e({readable:i});if(y(i))return e({writable:i});if(v(i))return e({writable:!1,readable:!1});if(w(i))return e({readable:P.fromWeb(i)});if(g(i))return e({writable:L.fromWeb(i)});if(typeof i=="function"){let{value:c,write:m,final:l,destroy:t}=p(i);if(n(c))return Z(X,c,{objectMode:!0,write:m,final:l,destroy:t});let u=c?.then;if(typeof u=="function"){let S,B=z(u,c,k=>{if(k!=null)throw new R("nully","body",k)},k=>{T(S,k)});return S=new X({objectMode:!0,readable:!1,write:m,final(k){l(async()=>{try{await B,a.nextTick(k,null)}catch(q){a.nextTick(k,q)}})},destroy:t})}throw new R("Iterable, AsyncIterable or AsyncFunction",s,c)}if(Q(i))return r(i.arrayBuffer());if(n(i))return Z(X,i,{objectMode:!0,writable:!1});if(w(i?.readable)&&g(i?.writable))return X.fromWeb(i);if(typeof i?.writable=="object"||typeof i?.readable=="object"){let c=i!=null&&i.readable?b(i?.readable)?i?.readable:r(i.readable):void 0,m=i!=null&&i.writable?y(i?.writable)?i?.writable:r(i.writable):void 0;return e({readable:c,writable:m})}let h=i?.then;if(typeof h=="function"){let c;return z(h,i,m=>{m!=null&&c.push(m),c.push(null)},m=>{T(c,m)}),c=new X({objectMode:!0,writable:!1,read(){}})}throw new E(s,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],i)};function p(r){let{promise:i,resolve:s}=D(),h=new K,c=h.signal;return{value:r(async function*(){for(;;){let l=i;i=null;let{chunk:t,done:u,cb:S}=await l;if(a.nextTick(S),u)return;if(c.aborted)throw new x(void 0,{cause:c.reason});({promise:i,resolve:s}=D()),yield t}}(),{signal:c}),write(l,t,u){let S=s;s=null,S({chunk:l,done:!1,cb:u})},final(l){let t=s;s=null,t({done:!0,cb:l})},destroy(l,t){h.abort(),t(l)}}}function e(r){let i=r.readable&&typeof r.readable.read!="function"?P.wrap(r.readable):r.readable,s=r.writable,h=!!f(i),c=!!d(s),m,l,t,u,S;function B(k){let q=u;u=null,q?q(k):k&&S.destroy(k)}return S=new X({readableObjectMode:!!(i!=null&&i.readableObjectMode),writableObjectMode:!!(s!=null&&s.writableObjectMode),readable:h,writable:c}),c&&(_(s,k=>{c=!1,k&&T(i,k),B(k)}),S._write=function(k,q,F){s.write(k,q)?F():m=F},S._final=function(k){s.end(),l=k},s.on("drain",function(){if(m){let k=m;m=null,k()}}),s.on("finish",function(){if(l){let k=l;l=null,k()}})),h&&(_(i,k=>{h=!1,k&&T(i,k),B(k)}),i.on("readable",function(){if(t){let k=t;t=null,k()}}),i.on("end",function(){S.push(null)}),S._read=function(){for(;;){let k=i.read();if(k===null){t=S._read;return}if(!S.push(k))return}}),S._destroy=function(k,q){!k&&u!==null&&(k=new x),t=null,m=null,l=null,u===null?q(k):(u=q,T(s,k),T(i,k))},S}return GS}var VS={},HV=!1;function o0(){if(HV)return VS;HV=!0;let{ObjectDefineProperties:a,ObjectGetOwnPropertyDescriptor:o,ObjectKeys:f,ObjectSetPrototypeOf:d}=Vi();VS=b;let n=am(),v=dE();d(b.prototype,n.prototype),d(b,n);{let g=f(v.prototype);for(let _=0;_<g.length;_++){let x=g[_];b.prototype[x]||(b.prototype[x]=v.prototype[x])}}function b(g){if(!(this instanceof b))return new b(g);n.call(this,g),v.call(this,g),g?(this.allowHalfOpen=g.allowHalfOpen!==!1,g.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),g.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}a(b.prototype,{writable:{__proto__:null,...o(v.prototype,"writable")},writableHighWaterMark:{__proto__:null,...o(v.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...o(v.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...o(v.prototype,"writableBuffer")},writableLength:{__proto__:null,...o(v.prototype,"writableLength")},writableFinished:{__proto__:null,...o(v.prototype,"writableFinished")},writableCorked:{__proto__:null,...o(v.prototype,"writableCorked")},writableEnded:{__proto__:null,...o(v.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...o(v.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(g){this._readableState&&this._writableState&&(this._readableState.destroyed=g,this._writableState.destroyed=g)}}});let y;function M(){return y===void 0&&(y={}),y}b.fromWeb=function(g,_){return M().newStreamDuplexFromReadableWritablePair(g,_)},b.toWeb=function(g){return M().newReadableWritablePairFromDuplex(g)};let w;return b.from=function(g){return w||(w=h2e()),w(g,"body")},VS}var JS={},KV=!1;function fJ(){if(KV)return JS;KV=!0;let{ObjectSetPrototypeOf:a,Symbol:o}=Vi();JS=b;let{ERR_METHOD_NOT_IMPLEMENTED:f}=xa().codes,d=o0(),{getHighWaterMark:n}=nm();a(b.prototype,d.prototype),a(b,d);let v=o("kCallback");function b(w){if(!(this instanceof b))return new b(w);let g=w?n(this,w,"readableHighWaterMark",!0):null;g===0&&(w={...w,highWaterMark:null,readableHighWaterMark:g,writableHighWaterMark:w.writableHighWaterMark||0}),d.call(this,w),this._readableState.sync=!1,this[v]=null,w&&(typeof w.transform=="function"&&(this._transform=w.transform),typeof w.flush=="function"&&(this._flush=w.flush)),this.on("prefinish",M)}function y(w){typeof this._flush=="function"&&!this.destroyed?this._flush((g,_)=>{if(g){w?w(g):this.destroy(g);return}_!=null&&this.push(_),this.push(null),w&&w()}):(this.push(null),w&&w())}function M(){this._final!==y&&y.call(this)}return b.prototype._final=y,b.prototype._transform=function(w,g,_){throw new f("_transform()")},b.prototype._write=function(w,g,_){let x=this._readableState,E=this._writableState,R=x.length;this._transform(w,g,(T,N)=>{if(T){_(T);return}N!=null&&this.push(N),E.ended||R===x.length||x.length<x.highWaterMark?_():this[v]=_})},b.prototype._read=function(){if(this[v]){let w=this[v];this[v]=null,w()}},JS}var YS={},jV=!1;function hJ(){if(jV)return YS;jV=!0;let{ObjectSetPrototypeOf:a}=Vi();YS=f;let o=fJ();a(f.prototype,o.prototype),a(f,o);function f(d){if(!(this instanceof f))return new f(d);o.call(this,d)}return f.prototype._transform=function(d,n,v){v(null,d)},YS}var XS={},WV=!1;function cE(){if(WV)return XS;WV=!0;let a=s0,{ArrayIsArray:o,Promise:f,SymbolAsyncIterator:d,SymbolDispose:n}=Vi(),v=Ah(),{once:b}=fa(),y=jd(),M=o0(),{aggregateTwoErrors:w,codes:{ERR_INVALID_ARG_TYPE:g,ERR_INVALID_RETURN_VALUE:_,ERR_MISSING_ARGS:x,ERR_STREAM_DESTROYED:E,ERR_STREAM_PREMATURE_CLOSE:R},AbortError:T}=xa(),{validateFunction:N,validateAbortSignal:P}=mp(),{isIterable:L,isReadable:D,isReadableNodeStream:Z,isNodeStream:W,isTransformStream:Q,isWebStream:K,isReadableStream:z,isReadableFinished:X}=f0(),p=globalThis.AbortController||vp().AbortController,e,r,i;function s(k,q,F){let ee=!1;k.on("close",()=>{ee=!0});let te=v(k,{readable:q,writable:F},O=>{ee=!O});return{destroy:O=>{ee||(ee=!0,y.destroyer(k,O||new E("pipe")))},cleanup:te}}function h(k){return N(k[k.length-1],"streams[stream.length - 1]"),k.pop()}function c(k){if(L(k))return k;if(Z(k))return m(k);throw new g("val",["Readable","Iterable","AsyncIterable"],k)}async function*m(k){r||(r=am()),yield*r.prototype[d].call(k)}async function l(k,q,F,{end:ee}){let te,O=null,U=j=>{if(j&&(te=j),O){let V=O;O=null,V()}},oe=()=>new f((j,V)=>{te?V(te):O=()=>{te?V(te):j()}});q.on("drain",U);let Y=v(q,{readable:!1},U);try{q.writableNeedDrain&&await oe();for await(let j of k)q.write(j)||await oe();ee&&(q.end(),await oe()),F()}catch(j){F(te!==j?w(te,j):j)}finally{Y(),q.off("drain",U)}}async function t(k,q,F,{end:ee}){Q(q)&&(q=q.writable);let te=q.getWriter();try{for await(let O of k)await te.ready,te.write(O).catch(()=>{});await te.ready,ee&&await te.close(),F()}catch(O){try{await te.abort(O),F(O)}catch(U){F(U)}}}function u(...k){return S(k,b(h(k)))}function S(k,q,F){if(k.length===1&&o(k[0])&&(k=k[0]),k.length<2)throw new x("streams");let ee=new p,te=ee.signal,O=F?.signal,U=[];P(O,"options.signal");function oe(){re(new T)}i=i||fa().addAbortListener;let Y;O&&(Y=i(O,oe));let j,V,G=[],ie=0;function me(he){re(he,--ie===0)}function re(he,nt){var ce;if(he&&(!j||j.code==="ERR_STREAM_PREMATURE_CLOSE")&&(j=he),!(!j&&!nt)){for(;G.length;)G.shift()(j);(ce=Y)===null||ce===void 0||ce[n](),ee.abort(),nt&&(j||U.forEach(be=>be()),a.nextTick(q,j,V))}}let ae;for(let he=0;he<k.length;he++){let nt=k[he],ce=he<k.length-1,be=he>0,ut=ce||F?.end!==!1,$=he===k.length-1;if(W(nt)){let A=function(I){I&&I.name!=="AbortError"&&I.code!=="ERR_STREAM_PREMATURE_CLOSE"&&me(I)};if(ut){let{destroy:I,cleanup:C}=s(nt,ce,be);G.push(I),D(nt)&&$&&U.push(C)}nt.on("error",A),D(nt)&&$&&U.push(()=>{nt.removeListener("error",A)})}if(he===0)if(typeof nt=="function"){if(ae=nt({signal:te}),!L(ae))throw new _("Iterable, AsyncIterable or Stream","source",ae)}else L(nt)||Z(nt)||Q(nt)?ae=nt:ae=M.from(nt);else if(typeof nt=="function"){if(Q(ae)){var ye;ae=c((ye=ae)===null||ye===void 0?void 0:ye.readable)}else ae=c(ae);if(ae=nt(ae,{signal:te}),ce){if(!L(ae,!0))throw new _("AsyncIterable",`transform[${he-1}]`,ae)}else{var fe;e||(e=hJ());let A=new e({objectMode:!0}),I=(fe=ae)===null||fe===void 0?void 0:fe.then;if(typeof I=="function")ie++,I.call(ae,ne=>{V=ne,ne!=null&&A.write(ne),ut&&A.end(),a.nextTick(me)},ne=>{A.destroy(ne),a.nextTick(me,ne)});else if(L(ae,!0))ie++,l(ae,A,me,{end:ut});else if(z(ae)||Q(ae)){let ne=ae.readable||ae;ie++,l(ne,A,me,{end:ut})}else throw new _("AsyncIterable or Promise","destination",ae);ae=A;let{destroy:C,cleanup:H}=s(ae,!1,!0);G.push(C),$&&U.push(H)}}else if(W(nt)){if(Z(ae)){ie+=2;let A=B(ae,nt,me,{end:ut});D(nt)&&$&&U.push(A)}else if(Q(ae)||z(ae)){let A=ae.readable||ae;ie++,l(A,nt,me,{end:ut})}else if(L(ae))ie++,l(ae,nt,me,{end:ut});else throw new g("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],ae);ae=nt}else if(K(nt)){if(Z(ae))ie++,t(c(ae),nt,me,{end:ut});else if(z(ae)||L(ae))ie++,t(ae,nt,me,{end:ut});else if(Q(ae))ie++,t(ae.readable,nt,me,{end:ut});else throw new g("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],ae);ae=nt}else ae=M.from(nt)}return(te!=null&&te.aborted||O!=null&&O.aborted)&&a.nextTick(oe),ae}function B(k,q,F,{end:ee}){let te=!1;if(q.on("close",()=>{te||F(new R)}),k.pipe(q,{end:!1}),ee){let O=function(){te=!0,q.end()};X(k)?a.nextTick(O):k.once("end",O)}else F();return v(k,{readable:!0,writable:!1},O=>{let U=k._readableState;O&&O.code==="ERR_STREAM_PREMATURE_CLOSE"&&U&&U.ended&&!U.errored&&!U.errorEmitted?k.once("end",F).once("error",F):F(O)}),v(q,{readable:!1,writable:!0},F)}return XS={pipelineImpl:S,pipeline:u},XS}var QS={},ZV=!1;function uJ(){if(ZV)return QS;ZV=!0;let{pipeline:a}=cE(),o=o0(),{destroyer:f}=jd(),{isNodeStream:d,isReadable:n,isWritable:v,isWebStream:b,isTransformStream:y,isWritableStream:M,isReadableStream:w}=f0(),{AbortError:g,codes:{ERR_INVALID_ARG_VALUE:_,ERR_MISSING_ARGS:x}}=xa(),E=Ah();return QS=function(...T){if(T.length===0)throw new x("streams");if(T.length===1)return o.from(T[0]);let N=[...T];if(typeof T[0]=="function"&&(T[0]=o.from(T[0])),typeof T[T.length-1]=="function"){let e=T.length-1;T[e]=o.from(T[e])}for(let e=0;e<T.length;++e)if(!(!d(T[e])&&!b(T[e]))){if(e<T.length-1&&!(n(T[e])||w(T[e])||y(T[e])))throw new _(`streams[${e}]`,N[e],"must be readable");if(e>0&&!(v(T[e])||M(T[e])||y(T[e])))throw new _(`streams[${e}]`,N[e],"must be writable")}let P,L,D,Z,W;function Q(e){let r=Z;Z=null,r?r(e):e?W.destroy(e):!p&&!X&&W.destroy()}let K=T[0],z=a(T,Q),X=!!(v(K)||M(K)||y(K)),p=!!(n(z)||w(z)||y(z));if(W=new o({writableObjectMode:!!(K!=null&&K.writableObjectMode),readableObjectMode:!!(z!=null&&z.readableObjectMode),writable:X,readable:p}),X){if(d(K))W._write=function(r,i,s){K.write(r,i)?s():P=s},W._final=function(r){K.end(),L=r},K.on("drain",function(){if(P){let r=P;P=null,r()}});else if(b(K)){let i=(y(K)?K.writable:K).getWriter();W._write=async function(s,h,c){try{await i.ready,i.write(s).catch(()=>{}),c()}catch(m){c(m)}},W._final=async function(s){try{await i.ready,i.close().catch(()=>{}),L=s}catch(h){s(h)}}}let e=y(z)?z.readable:z;E(e,()=>{if(L){let r=L;L=null,r()}})}if(p){if(d(z))z.on("readable",function(){if(D){let e=D;D=null,e()}}),z.on("end",function(){W.push(null)}),W._read=function(){for(;;){let e=z.read();if(e===null){D=W._read;return}if(!W.push(e))return}};else if(b(z)){let r=(y(z)?z.readable:z).getReader();W._read=async function(){for(;;)try{let{value:i,done:s}=await r.read();if(!W.push(i))return;if(s){W.push(null);return}}catch{return}}}}return W._destroy=function(e,r){!e&&Z!==null&&(e=new g),D=null,P=null,L=null,Z===null?r(e):(Z=r,d(z)&&f(z,e))},W},QS}var em={},GV=!1;function u2e(){if(GV)return em;GV=!0;let a=globalThis.AbortController||vp().AbortController,{codes:{ERR_INVALID_ARG_VALUE:o,ERR_INVALID_ARG_TYPE:f,ERR_MISSING_ARGS:d,ERR_OUT_OF_RANGE:n},AbortError:v}=xa(),{validateAbortSignal:b,validateInteger:y,validateObject:M}=mp(),w=Vi().Symbol("kWeak"),g=Vi().Symbol("kResistStopPropagation"),{finished:_}=Ah(),x=uJ(),{addAbortSignalNoValidate:E}=im(),{isWritable:R,isNodeStream:T}=f0(),{deprecate:N}=fa(),{ArrayPrototypePush:P,Boolean:L,MathFloor:D,Number:Z,NumberIsNaN:W,Promise:Q,PromiseReject:K,PromiseResolve:z,PromisePrototypeThen:X,Symbol:p}=Vi(),e=p("kEmpty"),r=p("kEof");function i(O,U){if(U!=null&&M(U,"options"),U?.signal!=null&&b(U.signal,"options.signal"),T(O)&&!R(O))throw new o("stream",O,"must be writable");let oe=x(this,O);return U!=null&&U.signal&&E(U.signal,oe),oe}function s(O,U){if(typeof O!="function")throw new f("fn",["Function","AsyncFunction"],O);U!=null&&M(U,"options"),U?.signal!=null&&b(U.signal,"options.signal");let oe=1;U?.concurrency!=null&&(oe=D(U.concurrency));let Y=oe-1;return U?.highWaterMark!=null&&(Y=D(U.highWaterMark)),y(oe,"options.concurrency",1),y(Y,"options.highWaterMark",0),Y+=oe,async function*(){let V=fa().AbortSignalAny([U?.signal].filter(L)),G=this,ie=[],me={signal:V},re,ae,ye=!1,fe=0;function he(){ye=!0,nt()}function nt(){fe-=1,ce()}function ce(){ae&&!ye&&fe<oe&&ie.length<Y&&(ae(),ae=null)}async function be(){try{for await(let ut of G){if(ye)return;if(V.aborted)throw new v;try{if(ut=O(ut,me),ut===e)continue;ut=z(ut)}catch($){ut=K($)}fe+=1,X(ut,nt,he),ie.push(ut),re&&(re(),re=null),!ye&&(ie.length>=Y||fe>=oe)&&await new Q($=>{ae=$})}ie.push(r)}catch(ut){let $=K(ut);X($,nt,he),ie.push($)}finally{ye=!0,re&&(re(),re=null)}}be();try{for(;;){for(;ie.length>0;){let ut=await ie[0];if(ut===r)return;if(V.aborted)throw new v;ut!==e&&(yield ut),ie.shift(),ce()}await new Q(ut=>{re=ut})}}finally{ye=!0,ae&&(ae(),ae=null)}}.call(this)}function h(O=void 0){return O!=null&&M(O,"options"),O?.signal!=null&&b(O.signal,"options.signal"),async function*(){let oe=0;for await(let j of this){var Y;if(O!=null&&(Y=O.signal)!==null&&Y!==void 0&&Y.aborted)throw new v({cause:O.signal.reason});yield[oe++,j]}}.call(this)}async function c(O,U=void 0){for await(let oe of u.call(this,O,U))return!0;return!1}async function m(O,U=void 0){if(typeof O!="function")throw new f("fn",["Function","AsyncFunction"],O);return!await c.call(this,async(...oe)=>!await O(...oe),U)}async function l(O,U){for await(let oe of u.call(this,O,U))return oe}async function t(O,U){if(typeof O!="function")throw new f("fn",["Function","AsyncFunction"],O);async function oe(Y,j){return await O(Y,j),e}for await(let Y of s.call(this,oe,U));}function u(O,U){if(typeof O!="function")throw new f("fn",["Function","AsyncFunction"],O);async function oe(Y,j){return await O(Y,j)?Y:e}return s.call(this,oe,U)}class S extends d{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function B(O,U,oe){var Y;if(typeof O!="function")throw new f("reducer",["Function","AsyncFunction"],O);oe!=null&&M(oe,"options"),oe?.signal!=null&&b(oe.signal,"options.signal");let j=arguments.length>1;if(oe!=null&&(Y=oe.signal)!==null&&Y!==void 0&&Y.aborted){let re=new v(void 0,{cause:oe.signal.reason});throw this.once("error",()=>{}),await _(this.destroy(re)),re}let V=new a,G=V.signal;if(oe!=null&&oe.signal){let re={once:!0,[w]:this,[g]:!0};oe.signal.addEventListener("abort",()=>V.abort(),re)}let ie=!1;try{for await(let re of this){var me;if(ie=!0,oe!=null&&(me=oe.signal)!==null&&me!==void 0&&me.aborted)throw new v;j?U=await O(U,re,{signal:G}):(U=re,j=!0)}if(!ie&&!j)throw new S}finally{V.abort()}return U}async function k(O){O!=null&&M(O,"options"),O?.signal!=null&&b(O.signal,"options.signal");let U=[];for await(let Y of this){var oe;if(O!=null&&(oe=O.signal)!==null&&oe!==void 0&&oe.aborted)throw new v(void 0,{cause:O.signal.reason});P(U,Y)}return U}function q(O,U){let oe=s.call(this,O,U);return async function*(){for await(let j of oe)yield*j}.call(this)}function F(O){if(O=Z(O),W(O))return 0;if(O<0)throw new n("number",">= 0",O);return O}function ee(O,U=void 0){return U!=null&&M(U,"options"),U?.signal!=null&&b(U.signal,"options.signal"),O=F(O),async function*(){var Y;if(U!=null&&(Y=U.signal)!==null&&Y!==void 0&&Y.aborted)throw new v;for await(let V of this){var j;if(U!=null&&(j=U.signal)!==null&&j!==void 0&&j.aborted)throw new v;O--<=0&&(yield V)}}.call(this)}function te(O,U=void 0){return U!=null&&M(U,"options"),U?.signal!=null&&b(U.signal,"options.signal"),O=F(O),async function*(){var Y;if(U!=null&&(Y=U.signal)!==null&&Y!==void 0&&Y.aborted)throw new v;for await(let V of this){var j;if(U!=null&&(j=U.signal)!==null&&j!==void 0&&j.aborted)throw new v;if(O-- >0&&(yield V),O<=0)return}}.call(this)}return em.streamReturningOperators={asIndexedPairs:N(h,"readable.asIndexedPairs will be removed in a future version."),drop:ee,filter:u,flatMap:q,map:s,take:te,compose:i},em.promiseReturningOperators={every:m,forEach:t,reduce:B,toArray:k,some:c,find:l},em}var eE={},VV=!1;function lJ(){if(VV)return eE;VV=!0;let{ArrayPrototypePop:a,Promise:o}=Vi(),{isIterable:f,isNodeStream:d,isWebStream:n}=f0(),{pipelineImpl:v}=cE(),{finished:b}=Ah();dJ();function y(...M){return new o((w,g)=>{let _,x,E=M[M.length-1];if(E&&typeof E=="object"&&!d(E)&&!f(E)&&!n(E)){let R=a(M);_=R.signal,x=R.end}v(M,(R,T)=>{R?g(R):w(T)},{signal:_,end:x})})}return eE={finished:b,pipeline:y},eE}var tE={},JV=!1,YV=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function dJ(){if(JV)return tE;JV=!0;let{Buffer:a}=xh(),{ObjectDefineProperty:o,ObjectKeys:f,ReflectApply:d}=Vi(),{promisify:{custom:n}}=fa(),{streamReturningOperators:v,promiseReturningOperators:b}=u2e(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:y}}=xa(),M=uJ(),{setDefaultHighWaterMark:w,getDefaultHighWaterMark:g}=nm(),{pipeline:_}=cE(),{destroyer:x}=jd(),E=Ah(),R=lJ(),T=f0(),N=tE=lE().Stream;N.isDestroyed=T.isDestroyed,N.isDisturbed=T.isDisturbed,N.isErrored=T.isErrored,N.isReadable=T.isReadable,N.isWritable=T.isWritable,N.Readable=am();for(let L of f(v)){let D=function(...W){if(new.target)throw y();return N.Readable.from(d(Z,this||YV,W))},Z=v[L];o(D,"name",{__proto__:null,value:Z.name}),o(D,"length",{__proto__:null,value:Z.length}),o(N.Readable.prototype,L,{__proto__:null,value:D,enumerable:!1,configurable:!0,writable:!0})}for(let L of f(b)){let D=function(...W){if(new.target)throw y();return d(Z,this||YV,W)},Z=b[L];o(D,"name",{__proto__:null,value:Z.name}),o(D,"length",{__proto__:null,value:Z.length}),o(N.Readable.prototype,L,{__proto__:null,value:D,enumerable:!1,configurable:!0,writable:!0})}N.Writable=dE(),N.Duplex=o0(),N.Transform=fJ(),N.PassThrough=hJ(),N.pipeline=_;let{addAbortSignal:P}=im();return N.addAbortSignal=P,N.finished=E,N.destroy=x,N.compose=M,N.setDefaultHighWaterMark=w,N.getDefaultHighWaterMark=g,o(N,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return R}}),o(_,n,{__proto__:null,enumerable:!0,get(){return R.pipeline}}),o(E,n,{__proto__:null,enumerable:!0,get(){return R.finished}}),N.Stream=N,N._isUint8Array=function(D){return D instanceof Uint8Array},N._uint8ArrayToBuffer=function(D){return a.from(D.buffer,D.byteOffset,D.byteLength)},tE}var Gi={},XV=!1;function l2e(){if(XV)return Gi;XV=!0;let a=dJ(),o=lJ(),f=a.Readable.destroy;return Gi=a.Readable,Gi._uint8ArrayToBuffer=a._uint8ArrayToBuffer,Gi._isUint8Array=a._isUint8Array,Gi.isDisturbed=a.isDisturbed,Gi.isErrored=a.isErrored,Gi.isReadable=a.isReadable,Gi.Readable=a.Readable,Gi.Writable=a.Writable,Gi.Duplex=a.Duplex,Gi.Transform=a.Transform,Gi.PassThrough=a.PassThrough,Gi.addAbortSignal=a.addAbortSignal,Gi.finished=a.finished,Gi.destroy=a.destroy,Gi.destroy=f,Gi.pipeline=a.pipeline,Gi.compose=a.compose,Object.defineProperty(a,"promises",{configurable:!0,enumerable:!0,get(){return o}}),Gi.Stream=a.Stream,Gi.default=Gi,Gi}var Si=l2e();Si._uint8ArrayToBuffer;Si._isUint8Array;Si.isDisturbed;Si.isErrored;Si.isReadable;Si.Readable;Si.Writable;Si.Duplex;Si.Transform;Si.PassThrough;Si.addAbortSignal;Si.finished;Si.destroy;Si.pipeline;Si.compose;Si.Stream;var QV=Si.Readable;QV.wrap=function(a,o){return o=Object.assign({objectMode:a.readableObjectMode!=null||a.objectMode!=null||!0},o),o.destroy=function(f,d){a.destroy(f),d(f)},new QV(o).wrap(a)};var nke=Si.Writable,ake=Si.Duplex,cJ=Si.Transform,pJ=Si.PassThrough,oke=Si.finished,ske=Si.pipeline,fke=Si.Stream,hke={finished:AV(Si.finished),pipeline:AV(Si.pipeline)};var dl=Ae(Ja(),1);async function vJ(a){let o=bJ(a),f=(await o.next()).value;f=await ha(o,f,32);let d=Zi(f.subarray(0,32));f=f.subarray(32);let n=64*d;f=await ha(o,f,n);let v=new Array(d);for(let M=0;M<n;M+=64)v[M/64]=[Zi(f.subarray(M,M+32)),(0,dl.default)(at.from(f.subarray(M+32,M+64)))];f=f.subarray(n);let b=32+n,y=[];for(let[M,w]of v){f=await ha(o,f,Wb),f=await ha(o,f,2);let g=Zi(f.subarray(0,2));f=f.subarray(2);let{sigLength:_,pubLength:x,sigName:E}=Ir[g];f=await ha(o,f,_);let R=f.subarray(0,_);f=f.subarray(_),f=await ha(o,f,x);let T=f.subarray(0,x);f=f.subarray(x),f=await ha(o,f,1);let N=f[0]===1;N&&(f=await ha(o,f,33));let P=N?f.subarray(1,33):at.allocUnsafe(0);f=f.subarray(N?33:1),f=await ha(o,f,1);let L=f[0]===1;L&&(f=await ha(o,f,33));let D=L?f.subarray(1,33):at.allocUnsafe(0);f=f.subarray(L?33:1),f=await ha(o,f,8);let Z=Zi(f.subarray(0,8));f=f.subarray(8),f=await ha(o,f,8);let W=Zi(f.subarray(0,8));f=f.subarray(8),f=await ha(o,f,W);let Q=f.subarray(0,W),K=Z!==0&&W!==0?zd(at.from(Q)):[];if(K.length!==Z)throw new Error("Tags lengths don't match");f=f.subarray(W);let z=new cJ;z._transform=function(i,s,h){this.push(i),h()};let X=X0([(0,fi.stringToBuffer)("dataitem"),(0,fi.stringToBuffer)("1"),(0,fi.stringToBuffer)(g.toString()),T,P,D,Q,z]),p=2+_+x+(N?33:1)+(L?33:1)+16+W,e=M-p;if(f.byteLength>e)z.write(f.subarray(0,e)),f=f.subarray(e);else{let i=f.byteLength;for(z.write(f);e>i;){if(f=(await o.next()).value,!f)throw new Error(`Not enough data bytes expected: ${e} received: ${i}`);i+=f.byteLength,i>e?z.write(f.subarray(0,f.byteLength-(i-e))):z.write(f)}f=f.subarray(f.byteLength-(i-e))}if(z.end(),w!==(0,dl.default)(Y0("sha256").update(R).digest()))throw new Error("ID doesn't match signature");if(!await ip[g].verify(T,await X,R))throw new Error("Invalid signature");y.push({id:w,sigName:E,signature:(0,dl.default)(at.from(R)),target:(0,dl.default)(at.from(P)),anchor:(0,dl.default)(at.from(D)),owner:(0,dl.default)(at.from(T)),tags:K,dataOffset:b+p,dataSize:e}),b+=p+e}return y}async function d2e(a,o,f,d){let n=fp("",f,d),v=new pJ,b=[(0,fi.stringToBuffer)("dataitem"),(0,fi.stringToBuffer)("1"),(0,fi.stringToBuffer)(n.signatureType.toString()),n.rawOwner,n.rawTarget,n.rawAnchor,n.rawTags,a],y=await X0(b),M=at.from(await f.sign(y));return n.setSignature(M),v.write(n.getRaw()),o.pipe(v)}async function ha(a,o,f){if(o.byteLength>=f)return o;let{done:d,value:n}=await a.next();if(d&&!n)throw new Error("Invalid buffer");return ha(a,at.concat([at.from(o),at.from(n)]),f)}async function*bJ(a){for await(let o of a)yield o}var c2e=vJ,p2e={readBytes:ha,getReader:bJ};var v2e={...nS,stream:pE};globalThis.arbundles??=v2e;function cl(a){return async o=>{if(Ga(o))return o;if(!a.arweave)throw new Error("Must initialize with Arweave in order to create transactions");try{return await b2e(a,{data:o})}catch(f){throw new Error(f.message??"Error resolving transaction")}}}async function b2e(a,o){let f=null,d=null,n=null;if(typeof o.data=="string"&&(f=at.from(IE(o.data),"base64"),d=RE(o.data),n=TE(f)),o.data instanceof File&&(f=new Uint8Array(await o.data.arrayBuffer()),d=o.data.type,n=o.data.size),f&&d&&n)if(n<Number(cm.dispatchUploadSize))try{let v=await a.arweave.createTransaction({data:f},"use_wallet");return v.addTag(Kr.keys.contentType,d),o.tags&&o.tags.length>0&&o.tags.forEach(y=>v.addTag(y.name,y.value)),(await globalThis.window.arweaveWallet.dispatch(v)).id}catch(v){throw new Error(v.message??"Error dispatching transaction")}else try{let v=await m2e(o.data,{tags:[{name:"Content-Type",value:d},{name:"App-Name",value:"@permaweb/libs"}]},{apiUrl:cm.node1,token:"arweave",chunkSize:5242880,batchSize:3});return console.log(v),console.log("Uploaded dataItem ID:",v.id),v.id}catch(v){throw new Error(v.message??"Error uploading transaction")}else throw new Error("Error preparing transaction data")}async function m2e(a,o,f){let{apiUrl:d,token:n,chunkSize:v,batchSize:b=3}=f,y=new hl(window.arweaveWallet),M=await y.signer.getActivePublicKey();y.publicKey=at.from(M,"base64");let w=new Uint8Array(await a.arrayBuffer()),g=fp(w,y,{...o,anchor:o.anchor||(()=>{let p=new Uint8Array(32);return crypto.getRandomValues(p),btoa(String.fromCharCode(...p)).replace(/\+/g,"-").replace(/\//g,"_").slice(0,32)})()});await g.sign(y);let _=g.getRaw(),x=new Blob([new Uint8Array(_)],{type:"application/octet-stream"}),E={"x-chunking-version":"2"},R=await fetch(`${d}/chunks/${n}/-1/-1`,{headers:E});if(!R.ok)throw new Error(`Failed to get upload ID: ${R.status} ${await R.text()}`);let T=await R.json(),N=T.id;if(v<T.min||v>T.max)throw new Error(`Configured chunkSize ${v} is out of allowed range ${T.min}-${T.max}`);let P=x.size,L=[];for(let p=0;p<P;p+=v)L.push(p);let D=new Set;(T.chunks??[]).forEach(([p])=>D.add(Number(p)));let Z=L.filter(p=>p>0&&!D.has(p)),W=D.has(0)?[]:[0],Q=Z.concat(W),K=p=>new Promise(e=>setTimeout(e,p));for(let p=0;p<Q.length;p+=b){let e=Q.slice(p,p+b);await Promise.all(e.map(async r=>{let s=await x.slice(r,r+v).arrayBuffer(),h=null;for(let c=1;c<=3;c++)try{let m=await fetch(`${d}/chunks/${n}/${N}/${r}`,{method:"POST",headers:{"Content-Type":"application/octet-stream",...E},body:s});if(!m.ok){let l=await m.text();throw m.status===402?new Error(`402 payment required: ${l}`):new Error(`Chunk upload error ${m.status}: ${l}`)}return}catch(m){if(h=m,c<3){await K(1e3*c);continue}}throw h}))}let z={"Content-Type":"application/octet-stream",...E},X=await fetch(`${d}/chunks/${n}/${N}/-1`,{method:"POST",headers:z});if(!X.ok){let p=await X.text();throw new Error(`Finalizing upload failed ${X.status}: ${p}`)}return X.json()}var Gke=Ae(Be(),1);Ie();Re();var y2e={},jke=Ae(Be(),1);Ie();Re();var z$e=Ae(Be(),1);Ie();Re();var s$e=Ae(Be(),1);Ie();Re();function mJ(a){return async(o,f)=>{let d=x2e(o);if(d)throw new Error(d);let n=null;if(o.spawnComments)try{let M=[{name:Kr.keys.onBoot,value:Ci.src.comments},{name:Kr.keys.dateCreated,value:new Date().getTime().toString()}];o.users&&M.push({name:"Auth-Users",value:JSON.stringify(o.users)}),n=await u0(a,{tags:M},f?w=>f(w):void 0),Sa(`Comments ID: ${n}`),await new Promise(w=>setTimeout(w,500))}catch(M){console.error(M)}let v=BE[o.contentType]?.serialize(o.data)??o.data,b={...o};n&&(b.commentsId=n);let y=_2e(b);try{return await u0(a,{tags:y,data:v},f?w=>f(w):void 0)}catch(M){throw new Error(M.message??"Error creating asset")}}}async function M2e(a,o,f){try{let d=Va(await _f(a,{processId:o,path:"asset",fallbackAction:"Info"}));if(f?.useGateway){let n=await ks({gateway:Za.ao,ids:[o],tags:null,owners:null,cursor:null});return{...n?.data?.[0]?wJ(n.data[0]):{},...d}}return{id:o,...d}}catch(d){throw new Error(d.message||"Error fetching atomic asset")}}function gJ(a){return async(o,f)=>await M2e(a,o,f)}async function yJ(a){try{let o=await ks({gateway:Za.arweave,ids:a??null,tags:null,owners:null,cursor:null});return o&&o.data.length?o.data.map(f=>wJ(f)):null}catch(o){throw new Error(o)}}function wJ(a){let o={id:a.node.id,owner:a.node.owner.address};for(let f of a.node.tags){let d=f.name,v=(d.startsWith(`${Kr.keys.bootloader}-`)?d.slice(`${Kr.keys.bootloader}-`.length):d).split("-").map((y,M)=>M===0?y.toLowerCase():y.charAt(0).toUpperCase()+y.slice(1).toLowerCase()).join(""),b;try{b=JSON.parse(f.value)}catch{b=f.value.toString()}o[v]=b}return o}function _2e(a){let o=[{name:Kr.keys.onBoot,value:a.src??Ci.src.asset},{name:Kr.keys.creator,value:a.creator},{name:Kr.keys.assetType,value:a.assetType},{name:Kr.keys.contentType,value:a.contentType},{name:Kr.keys.implements,value:"ANS-110"},{name:Kr.keys.dateCreated,value:new Date().getTime().toString()},qn("Name",a.name),qn("Description",a.description),qn("Topics",JSON.stringify(a.topics)),qn("Ticker","ATOMIC"),qn("Denomination",a.denomination?.toString()??"1"),qn("TotalSupply",a.supply?.toString()??"1"),qn("Transferable",a.transferable?.toString()??"true"),qn("Creator",a.creator)];if(a.metadata)for(let f in a.metadata)o.push(qn(vl(f),a.metadata[f].toString()));return a.users&&o.push({name:"Auth-Users",value:JSON.stringify(a.users)}),a.commentsId&&o.push(qn("Comments",a.commentsId)),a.tags&&a.tags.forEach(f=>o.push(f)),o}function x2e(a){if(typeof a!="object"||a===null)return"The provided arguments are invalid or empty.";let o=["name","description","topics","creator","data","contentType","assetType"];for(let f of o)if(!(f in a))return`Missing field '${f}'`;return typeof a.name!="string"||a.name.trim()===""?"Name is required":typeof a.description!="string"?"The description must be a valid string":!Array.isArray(a.topics)||a.topics.length===0?"Topics are required":typeof a.creator!="string"||a.creator.trim()===""?"Creator is required":a.data===void 0||a.data===null?"Data field is required":typeof a.contentType!="string"||a.contentType.trim()===""?"Content type must be a non-empty string":typeof a.assetType!="string"||a.assetType.trim()===""?"Type must be a non-empty string":"supply"in a&&(typeof a.supply!="number"||a.supply<=0)?"Supply must be a positive number":"denomination"in a&&(typeof a.denomination!="number"||a.denomination<=0)?"Denomination must be a positive number":"transferable"in a&&typeof a.transferable!="boolean"?"Transferable must be a boolean value":"metadata"in a&&typeof a.metadata!="object"?"Metadata must be an object":"tags"in a&&(!Array.isArray(a.tags)||a.tags.some(f=>typeof f!="object"))?"Tags must be an array of objects":"src"in a&&typeof a.src!="string"?"Source must be a valid string":null}var b$e=Ae(Be(),1);Ie();Re();var S2e="eXCtpVbcd_jZ0dmU2PZ8focaKxBGECBQ8wMib7sIVPo",vE="lJovHqM9hwNjHV5JoY9NGWtt0WD-5D4gOqNL2VWW5jk";function MJ(a){return async(o,f)=>{if(!a.signer)throw new Error("No signer provided");let d=cl(a),n=new Date().getTime().toString(),v=[{name:Kr.keys.creator,value:o.creator},{name:Kr.keys.ans110.title,value:Zd(o.title)},{name:Kr.keys.name,value:Zd(o.title)},{name:Kr.keys.ans110.description,value:Zd(o.description)}],b=null,y=null;try{b=o.banner?await d(o.thumbnail):vE,y=o.banner?await d(o.banner):S2e,o.thumbnail&&v.push({name:Kr.keys.thumbnail,value:b}),o.banner&&v.push({name:Kr.keys.banner,value:y})}catch(g){console.error(g)}let M=await fetch(Sp(Ci.src.collection));if(!M.ok)throw new Error("Unable to fetch process src");let w=await M.text();w=w.replace(/'<NAME>'/g,pm(o.title)),w=w.replace(/'<DESCRIPTION>'/g,pm(o.description)),w=w.replace(/<CREATOR>/g,o.creator),w=w.replace(/<THUMBNAIL>/g,b||vE),w=w.replace(/<BANNER>/g,y||vE),w=w.replace(/<DATECREATED>/g,n),w=w.replace(/<LASTUPDATE>/g,n);try{let g=await u0(a,{tags:v},f?_=>f(_):void 0);if(Sa("Sending eval message to collection..."),f&&f("Sending eval message to collection..."),await a.ao.message({process:g,signer:a.signer,tags:[{name:"Action",value:"Eval"}],data:w}),!o.skipRegistry){Sa("Sending collection to registry..."),f&&f("Sending collection to registry...");let _=[{name:"Action",value:"Add-Collection"},{name:"CollectionId",value:g},{name:"Name",value:Zd(o.title)},{name:"Creator",value:o.creator},{name:"DateCreated",value:n}];y&&_.push({name:"Banner",value:y}),b&&_.push({name:"Thumbnail",value:b}),await a.ao.message({process:Ci.collectionRegistry,signer:a.signer,tags:_})}if(!o.skipActivity){Sa("Creating collection activity process..."),f&&f("Creating collection activity process...");let _=[{name:"CollectionId",value:g},{name:"DateCreated",value:n},{name:"UCM-Process",value:"Collection-Activity"},{name:"On-Boot",value:Ci.src.collectionActivity}],x=await u0(a,{tags:_},f?E=>f(E):void 0);Sa("Adding activity to collection process..."),f&&f("Adding activity to collection process..."),await a.ao.message({process:g,signer:a.signer,tags:[{name:"Action",value:"Eval"}],data:`ActivityProcess = '${x}'`})}return g}catch(g){throw new Error(g.message??"Error creating collection")}}}function _J(a){return async o=>await ua(a,{processId:o.creator,action:"Run-Action",tags:[{name:"Forward-To",value:o.collectionId},{name:"Forward-Action",value:"Update-Assets"}],data:{Target:o.collectionId,Action:"Update-Assets",Input:{AssetIds:o.assetIds,UpdateType:o.updateType}}})}function xJ(a){return async o=>{let f=await _f(a,{processId:o,path:"collection",fallbackAction:"Info"});return f?Va(f):null}}function SJ(a){return async o=>{let f=o.creator?"Get-Collections-By-User":"Get-Collections",d=await Ep(a,{processId:Ci.collectionRegistry,action:f,tags:o.creator?[{name:"Creator",value:o.creator}]:null});return d&&d.Collections&&d.Collections.length?d.Collections.map(v=>({id:v.Id,title:v.Name.replace(/\[|\]/g,""),description:v.Description,creator:v.Creator,dateCreated:v.DateCreated,banner:v.Banner,thumbnail:v.Thumbnail})):null}}var _$e=Ae(Be(),1);Ie();Re();function EJ(a){return async o=>{try{if(!o.commentsId)throw new Error("Must provide commentsId");return await ua(a,{processId:o.commentsId,action:"Add-Comment",data:o.content,useRawData:!0})}catch(f){throw new Error(f.message??"Error creating comment")}}}function AJ(a){return async o=>{try{if(!o.commentsId)throw new Error("Must provide commentsId");return Va(await _f(a,{processId:o.commentsId,path:"comments",fallbackAction:"Get-Comments"}))}catch(f){throw new Error(f.message??"Error getting comments")}}}function BJ(a){return async o=>{try{if(!o.commentsId)throw new Error("Must provide commentsId");if(!o.commentId)throw new Error("Must provide commentId");return await ua(a,{processId:o.commentsId,action:"Update-Comment-Status",tags:[{name:"Comment-Id",value:o.commentId},{name:"Status",value:o.status}]})}catch(f){throw new Error(f.message??"Error updating comment status")}}}function RJ(a){return async o=>{try{if(!o.commentsId)throw new Error("Must provide commentsId");if(!o.commentId)throw new Error("Must provide commentId");return await ua(a,{processId:o.commentsId,action:"Remove-Comment",tags:[{name:"Comment-Id",value:o.commentId}]})}catch(f){throw new Error(f.message??"Error removing comment")}}}var q$e=Ae(Be(),1);Ie();Re();var T$e=Ae(Be(),1);Ie();Re();function om(a){return async(o,f)=>{try{let d=[{name:Kr.keys.onBoot,value:Ci.src.zone.id}];return o.tags&&o.tags.length&&o.tags.forEach(v=>d.push(v)),await u0(a,{data:o.data,tags:d},f?v=>f(v):void 0)}catch(d){throw new Error(d.message??"Error creating zone")}}}function sm(a){return async(o,f)=>{try{let d=Object.entries(o).map(([v,b])=>({key:v,value:b}));return await ua(a,{processId:f,action:"Zone-Update",data:d})}catch(d){throw new Error(d)}}}function IJ(a){return async(o,f)=>{try{return await ua(a,{processId:f,action:"Zone-Append",tags:[{name:"Path",value:o.path}],data:o.data})}catch(d){throw new Error(d)}}}function TJ(a){return async(o,f)=>{if(!Ga(f))throw new Error("Invalid zone address");let n=[];for(let v of o){if(!Ga(v.granteeId))throw new Error("Invalid granteeId address");if(v.type!=="wallet"&&v.type!=="process")throw new Error("Invalid role type");n.push({Id:v.granteeId,Roles:v.roles,Type:v.type,SendInvite:v.sendInvite})}try{return await ua(a,{processId:f,action:"Role-Set",tags:[],data:n})}catch(v){throw new Error(v)}}}function kJ(a){return async(o,f)=>{if(!(Ga(f)&&Ga(o.zoneToJoinId)))throw new Error("Invalid zone address");let n=[{name:"ZoneId",value:o.zoneToJoinId}];o.path&&n.push({name:"Path",value:o.path});try{return await ua(a,{processId:f,action:"Zone-Join",tags:n})}catch(v){throw new Error(v)}}}function fm(a){return async o=>{try{return Sa(`Updating zone to version ${Ci.src.zone.version} with source ${Ci.src.zone.id}`),await Gd(a,{processId:o.zoneId,evalTxId:Ci.src.zone.id}),await Gd(a,{processId:o.zoneId,evalSrc:`Zone.Version = '${Ci.src.zone.version}'; SyncState()`})}catch(f){throw new Error(f)}}}function hm(a){return async o=>{try{let f=await _f(a,{processId:o,path:"zone",fallbackAction:"Info"});return Va(f)}catch(f){throw new Error(f.message??"Error getting zone")}}}function $J(a){let o=om(a),f=cl(a);return async(d,n)=>{let v=null,b=[{name:Kr.keys.zoneType,value:Kr.values.user}],y=async M=>{let w=M.toLowerCase(),g=d[w];if(g&&xp(g))try{let _=await f(d[w]);b.push(qn(M,_))}catch(_){n?n(`Failed to resolve ${M}: ${_.message}`):console.error(_)}};d.username&&b.push(qn("Username",d.username)),d.displayName&&b.push(qn("DisplayName",d.displayName)),d.description&&b.push(qn("Description",d.description)),await Promise.all([y("Thumbnail"),y("Banner")]);try{v=await o({tags:b},n)}catch(M){throw new Error(M.message??"Error creating profile")}return v}}function PJ(a){let o=sm(a),f=cl(a);return async(d,n,v)=>{if(n){let b={Username:d.username,DisplayName:d.displayName,Description:d.description};if(d.thumbnail&&xp(d.thumbnail))try{b.Thumbnail=await f(d.thumbnail)}catch(y){v&&v(`Failed to resolve thumbnail: ${y.message}`)}else b.Thumbnail="None";if(d.banner&&xp(d.banner))try{b.Banner=await f(d.banner)}catch(y){v&&v(`Failed to resolve banner: ${y.message}`)}else b.Banner="None";try{return await o(b,n)}catch(y){throw new Error(y.message??"Error creating profile")}}else throw new Error("No profile provided")}}function NJ(a){let o=fm(a);return async f=>{try{return await o({zoneId:f.profileId})}catch(d){throw new Error(d)}}}function bE(a){let o=hm(a);return async f=>{try{let d=await o(f);if(!d)throw new Error("Error fetching profile - Not found");return{id:f,owner:d.owner,assets:d.assets,roles:d.roles,invites:d.invites,version:d.version,...d.store}}catch(d){throw new Error(d.message??"Error fetching profile")}}}function CJ(a){let o=bE(a);return async f=>{try{let d=await ks({gateway:Za.ao,tags:[{name:Kr.keys.dataProtocol,values:[Kr.values.dataProtocol]},{name:Kr.keys.zoneType,values:[Kr.values.user]}],owners:[f]});return d?.data?.length>0?(d.data.sort((n,v)=>{let b=n.node.block?.timestamp??0;return(v.node.block?.timestamp??0)-b}),await o(d.data[0].node.id)):{id:null}}catch(d){throw new Error(d.message??"Error fetching profile")}}}var J$e=Ci.src.zone.version;function A2e(a){return{createZone:om(a),updateZone:sm(a),addToZone:IJ(a),getZone:hm(a),setZoneRoles:TJ(a),joinZone:kJ(a),updateZoneVersion:fm(a),createProfile:$J(a),updateProfile:PJ(a),updateProfileVersion:NJ(a),getProfileById:bE(a),getProfileByWalletAddress:CJ(a),createAtomicAsset:mJ(a),getAtomicAsset:gJ(a),getAtomicAssets:yJ,createComment:EJ(a),getComments:AJ(a),updateCommentStatus:BJ(a),removeComment:RJ(a),createCollection:MJ(a),updateCollectionAssets:_J(a),getCollection:xJ(a),getCollections:SJ(a),resolveTransaction:cl(a),getGQLData:ks,getAggregatedGQLData:kE,createProcess:LE(a),readProcess:CE(a),readState:NE(a),sendMessage:PE(a),mapFromProcessCase:Va,mapToProcessCase:vl}}var Y$e={init:A2e};export{J$e as CurrentZoneVersion,y2e as Types,Y$e as default};
79
+ `;super(E),this.name="AggregateError",this.errors=x}}return Xb={AggregateError:g,kEmptyObject:Object.freeze({}),once(_){let x=!1;return function(...E){x||(x=!0,_.apply(this,E))}},createDeferredPromise:function(){let _,x;return{promise:new Promise((R,T)=>{_=R,x=T}),resolve:_,reject:x}},promisify(_){return new Promise((x,E)=>{_((R,...T)=>R?E(R):x(...T))})},debuglog(){return function(){}},format(_,...x){return _.replace(/%([sdifj])/g,function(...[E,R]){let T=x.shift();return R==="f"?T.toFixed(6):R==="j"?JSON.stringify(T):R==="s"&&typeof T=="object"?`${T.constructor!==Object?T.constructor.name:""} {}`.trim():T.toString()})},inspect(_){switch(typeof _){case"string":if(_.includes("'"))if(_.includes('"')){if(!_.includes("`")&&!_.includes("${"))return`\`${_}\``}else return`"${_}"`;return`'${_}'`;case"number":return isNaN(_)?"NaN":Object.is(_,-0)?String(_):_;case"bigint":return`${String(_)}n`;case"boolean":case"undefined":return String(_);case"object":return"{}"}},types:{isAsyncFunction(_){return _ instanceof v},isArrayBufferView(_){return ArrayBuffer.isView(_)}},isBlob:y,deprecate(_,x){return _},addAbortListener:Sh.addAbortListener||function(x,E){if(x===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",x);M(x,"signal"),w(E,"listener");let R;return x.aborted?queueMicrotask(()=>E()):(x.addEventListener("abort",E,{__proto__:null,once:!0,[o]:!0}),R=()=>{x.removeEventListener("abort",E)}),{__proto__:null,[f](){var T;(T=R)===null||T===void 0||T()}}},AbortSignalAny:d.any||function(x){if(x.length===1)return x[0];let E=new n,R=()=>E.abort();return x.forEach(T=>{M(T,"signals"),T.addEventListener("abort",R,{once:!0})}),E.signal.addEventListener("abort",()=>{x.forEach(T=>T.removeEventListener("abort",R))},{once:!0}),E.signal}},Xb.promisify.custom=Symbol.for("nodejs.util.promisify.custom"),Xb}var OS={},TV=!1;function xa(){if(TV)return OS;TV=!0;let{format:a,inspect:o,AggregateError:f}=fa(),d=globalThis.AggregateError||f,n=Symbol("kIsNodeError"),v=["string","function","number","object","Function","Object","boolean","bigint","symbol"],b=/^([A-Z][a-z0-9]*)+$/,y="__node_internal_",M={};function w(N,P){if(!N)throw new M.ERR_INTERNAL_ASSERTION(P)}function g(N){let P="",L=N.length,D=N[0]==="-"?1:0;for(;L>=D+4;L-=3)P=`_${N.slice(L-3,L)}${P}`;return`${N.slice(0,L)}${P}`}function _(N,P,L){if(typeof P=="function")return w(P.length<=L.length,`Code: ${N}; The provided arguments length (${L.length}) does not match the required ones (${P.length}).`),P(...L);let D=(P.match(/%[dfijoOs]/g)||[]).length;return w(D===L.length,`Code: ${N}; The provided arguments length (${L.length}) does not match the required ones (${D}).`),L.length===0?P:a(P,...L)}function x(N,P,L){L||(L=Error);class D extends L{constructor(...W){super(_(N,P,W))}toString(){return`${this.name} [${N}]: ${this.message}`}}Object.defineProperties(D.prototype,{name:{value:L.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${N}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),D.prototype.code=N,D.prototype[n]=!0,M[N]=D}function E(N){let P=y+N.name;return Object.defineProperty(N,"name",{value:P}),N}function R(N,P){if(N&&P&&N!==P){if(Array.isArray(P.errors))return P.errors.push(N),P;let L=new d([P,N],P.message);return L.code=P.code,L}return N||P}class T extends Error{constructor(P="The operation was aborted",L=void 0){if(L!==void 0&&typeof L!="object")throw new M.ERR_INVALID_ARG_TYPE("options","Object",L);super(P,L),this.code="ABORT_ERR",this.name="AbortError"}}return x("ERR_ASSERTION","%s",Error),x("ERR_INVALID_ARG_TYPE",(N,P,L)=>{w(typeof N=="string","'name' must be a string"),Array.isArray(P)||(P=[P]);let D="The ";N.endsWith(" argument")?D+=`${N} `:D+=`"${N}" ${N.includes(".")?"property":"argument"} `,D+="must be ";let Z=[],W=[],Q=[];for(let z of P)w(typeof z=="string","All expected entries have to be of type string"),v.includes(z)?Z.push(z.toLowerCase()):b.test(z)?W.push(z):(w(z!=="object",'The value "object" should be written as "Object"'),Q.push(z));if(W.length>0){let z=Z.indexOf("object");z!==-1&&(Z.splice(Z,z,1),W.push("Object"))}if(Z.length>0){switch(Z.length){case 1:D+=`of type ${Z[0]}`;break;case 2:D+=`one of type ${Z[0]} or ${Z[1]}`;break;default:{let z=Z.pop();D+=`one of type ${Z.join(", ")}, or ${z}`}}(W.length>0||Q.length>0)&&(D+=" or ")}if(W.length>0){switch(W.length){case 1:D+=`an instance of ${W[0]}`;break;case 2:D+=`an instance of ${W[0]} or ${W[1]}`;break;default:{let z=W.pop();D+=`an instance of ${W.join(", ")}, or ${z}`}}Q.length>0&&(D+=" or ")}switch(Q.length){case 0:break;case 1:Q[0].toLowerCase()!==Q[0]&&(D+="an "),D+=`${Q[0]}`;break;case 2:D+=`one of ${Q[0]} or ${Q[1]}`;break;default:{let z=Q.pop();D+=`one of ${Q.join(", ")}, or ${z}`}}if(L==null)D+=`. Received ${L}`;else if(typeof L=="function"&&L.name)D+=`. Received function ${L.name}`;else if(typeof L=="object"){var K;if((K=L.constructor)!==null&&K!==void 0&&K.name)D+=`. Received an instance of ${L.constructor.name}`;else{let z=o(L,{depth:-1});D+=`. Received ${z}`}}else{let z=o(L,{colors:!1});z.length>25&&(z=`${z.slice(0,25)}...`),D+=`. Received type ${typeof L} (${z})`}return D},TypeError),x("ERR_INVALID_ARG_VALUE",(N,P,L="is invalid")=>{let D=o(P);return D.length>128&&(D=D.slice(0,128)+"..."),`The ${N.includes(".")?"property":"argument"} '${N}' ${L}. Received ${D}`},TypeError),x("ERR_INVALID_RETURN_VALUE",(N,P,L)=>{var D;let Z=L!=null&&(D=L.constructor)!==null&&D!==void 0&&D.name?`instance of ${L.constructor.name}`:`type ${typeof L}`;return`Expected ${N} to be returned from the "${P}" function but got ${Z}.`},TypeError),x("ERR_MISSING_ARGS",(...N)=>{w(N.length>0,"At least one arg needs to be specified");let P,L=N.length;switch(N=(Array.isArray(N)?N:[N]).map(D=>`"${D}"`).join(" or "),L){case 1:P+=`The ${N[0]} argument`;break;case 2:P+=`The ${N[0]} and ${N[1]} arguments`;break;default:{let D=N.pop();P+=`The ${N.join(", ")}, and ${D} arguments`}break}return`${P} must be specified`},TypeError),x("ERR_OUT_OF_RANGE",(N,P,L)=>{w(P,'Missing "range" argument');let D;return Number.isInteger(L)&&Math.abs(L)>2**32?D=g(String(L)):typeof L=="bigint"?(D=String(L),(L>2n**32n||L<-(2n**32n))&&(D=g(D)),D+="n"):D=o(L),`The value of "${N}" is out of range. It must be ${P}. Received ${D}`},RangeError),x("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),x("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),x("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),x("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),x("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),x("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),x("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),x("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),x("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),x("ERR_STREAM_WRITE_AFTER_END","write after end",Error),x("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),OS={AbortError:T,aggregateTwoErrors:E(R),hideStackFrames:E,codes:M},OS}var qS={},kV=!1;function mp(){if(kV)return qS;kV=!0;let{ArrayIsArray:a,ArrayPrototypeIncludes:o,ArrayPrototypeJoin:f,ArrayPrototypeMap:d,NumberIsInteger:n,NumberIsNaN:v,NumberMAX_SAFE_INTEGER:b,NumberMIN_SAFE_INTEGER:y,NumberParseInt:M,ObjectPrototypeHasOwnProperty:w,RegExpPrototypeExec:g,String:_,StringPrototypeToUpperCase:x,StringPrototypeTrim:E}=Vi(),{hideStackFrames:R,codes:{ERR_SOCKET_BAD_PORT:T,ERR_INVALID_ARG_TYPE:N,ERR_INVALID_ARG_VALUE:P,ERR_OUT_OF_RANGE:L,ERR_UNKNOWN_SIGNAL:D}}=xa(),{normalizeEncoding:Z}=fa(),{isAsyncFunction:W,isArrayBufferView:Q}=fa().types,K={};function z(ye){return ye===(ye|0)}function X(ye){return ye===ye>>>0}let p=/^[0-7]+$/,e="must be a 32-bit unsigned integer or an octal string";function r(ye,fe,he){if(typeof ye>"u"&&(ye=he),typeof ye=="string"){if(g(p,ye)===null)throw new P(fe,ye,e);ye=M(ye,8)}return h(ye,fe),ye}let i=R((ye,fe,he=y,nt=b)=>{if(typeof ye!="number")throw new N(fe,"number",ye);if(!n(ye))throw new L(fe,"an integer",ye);if(ye<he||ye>nt)throw new L(fe,`>= ${he} && <= ${nt}`,ye)}),s=R((ye,fe,he=-2147483648,nt=2147483647)=>{if(typeof ye!="number")throw new N(fe,"number",ye);if(!n(ye))throw new L(fe,"an integer",ye);if(ye<he||ye>nt)throw new L(fe,`>= ${he} && <= ${nt}`,ye)}),h=R((ye,fe,he=!1)=>{if(typeof ye!="number")throw new N(fe,"number",ye);if(!n(ye))throw new L(fe,"an integer",ye);let nt=he?1:0,ce=4294967295;if(ye<nt||ye>ce)throw new L(fe,`>= ${nt} && <= ${ce}`,ye)});function c(ye,fe){if(typeof ye!="string")throw new N(fe,"string",ye)}function m(ye,fe,he=void 0,nt){if(typeof ye!="number")throw new N(fe,"number",ye);if(he!=null&&ye<he||nt!=null&&ye>nt||(he!=null||nt!=null)&&v(ye))throw new L(fe,`${he!=null?`>= ${he}`:""}${he!=null&&nt!=null?" && ":""}${nt!=null?`<= ${nt}`:""}`,ye)}let l=R((ye,fe,he)=>{if(!o(he,ye)){let ce="must be one of: "+f(d(he,be=>typeof be=="string"?`'${be}'`:_(be)),", ");throw new P(fe,ye,ce)}});function t(ye,fe){if(typeof ye!="boolean")throw new N(fe,"boolean",ye)}function u(ye,fe,he){return ye==null||!w(ye,fe)?he:ye[fe]}let S=R((ye,fe,he=null)=>{let nt=u(he,"allowArray",!1),ce=u(he,"allowFunction",!1);if(!u(he,"nullable",!1)&&ye===null||!nt&&a(ye)||typeof ye!="object"&&(!ce||typeof ye!="function"))throw new N(fe,"Object",ye)}),B=R((ye,fe)=>{if(ye!=null&&typeof ye!="object"&&typeof ye!="function")throw new N(fe,"a dictionary",ye)}),k=R((ye,fe,he=0)=>{if(!a(ye))throw new N(fe,"Array",ye);if(ye.length<he){let nt=`must be longer than ${he}`;throw new P(fe,ye,nt)}});function q(ye,fe){k(ye,fe);for(let he=0;he<ye.length;he++)c(ye[he],`${fe}[${he}]`)}function F(ye,fe){k(ye,fe);for(let he=0;he<ye.length;he++)t(ye[he],`${fe}[${he}]`)}function ee(ye,fe){k(ye,fe);for(let he=0;he<ye.length;he++){let nt=ye[he],ce=`${fe}[${he}]`;if(nt==null)throw new N(ce,"AbortSignal",nt);Y(nt,ce)}}function te(ye,fe="signal"){if(c(ye,fe),K[ye]===void 0)throw K[x(ye)]!==void 0?new D(ye+" (signals must use all capital letters)"):new D(ye)}let O=R((ye,fe="buffer")=>{if(!Q(ye))throw new N(fe,["Buffer","TypedArray","DataView"],ye)});function U(ye,fe){let he=Z(fe),nt=ye.length;if(he==="hex"&&nt%2!==0)throw new P("encoding",fe,`is invalid for data of length ${nt}`)}function oe(ye,fe="Port",he=!0){if(typeof ye!="number"&&typeof ye!="string"||typeof ye=="string"&&E(ye).length===0||+ye!==+ye>>>0||ye>65535||ye===0&&!he)throw new T(fe,ye,he);return ye|0}let Y=R((ye,fe)=>{if(ye!==void 0&&(ye===null||typeof ye!="object"||!("aborted"in ye)))throw new N(fe,"AbortSignal",ye)}),j=R((ye,fe)=>{if(typeof ye!="function")throw new N(fe,"Function",ye)}),V=R((ye,fe)=>{if(typeof ye!="function"||W(ye))throw new N(fe,"Function",ye)}),G=R((ye,fe)=>{if(ye!==void 0)throw new N(fe,"undefined",ye)});function ie(ye,fe,he){if(!o(he,ye))throw new N(fe,`('${f(he,"|")}')`,ye)}let me=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function re(ye,fe){if(typeof ye>"u"||!g(me,ye))throw new P(fe,ye,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function ae(ye){if(typeof ye=="string")return re(ye,"hints"),ye;if(a(ye)){let fe=ye.length,he="";if(fe===0)return he;for(let nt=0;nt<fe;nt++){let ce=ye[nt];re(ce,"hints"),he+=ce,nt!==fe-1&&(he+=", ")}return he}throw new P("hints",ye,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}return qS={isInt32:z,isUint32:X,parseFileMode:r,validateArray:k,validateStringArray:q,validateBooleanArray:F,validateAbortSignalArray:ee,validateBoolean:t,validateBuffer:O,validateDictionary:B,validateEncoding:U,validateFunction:j,validateInt32:s,validateInteger:i,validateNumber:m,validateObject:S,validateOneOf:l,validatePlainFunction:V,validatePort:oe,validateSignalName:te,validateString:c,validateUint32:h,validateUndefined:G,validateUnion:ie,validateAbortSignal:Y,validateLinkHeaderValue:ae},qS}var US={},$V=!1;function f0(){if($V)return US;$V=!0;let{SymbolAsyncIterator:a,SymbolIterator:o,SymbolFor:f}=Vi(),d=f("nodejs.stream.destroyed"),n=f("nodejs.stream.errored"),v=f("nodejs.stream.readable"),b=f("nodejs.stream.writable"),y=f("nodejs.stream.disturbed"),M=f("nodejs.webstream.isClosedPromise"),w=f("nodejs.webstream.controllerErrorFunction");function g(u,S=!1){var B;return!!(u&&typeof u.pipe=="function"&&typeof u.on=="function"&&(!S||typeof u.pause=="function"&&typeof u.resume=="function")&&(!u._writableState||((B=u._readableState)===null||B===void 0?void 0:B.readable)!==!1)&&(!u._writableState||u._readableState))}function _(u){var S;return!!(u&&typeof u.write=="function"&&typeof u.on=="function"&&(!u._readableState||((S=u._writableState)===null||S===void 0?void 0:S.writable)!==!1))}function x(u){return!!(u&&typeof u.pipe=="function"&&u._readableState&&typeof u.on=="function"&&typeof u.write=="function")}function E(u){return u&&(u._readableState||u._writableState||typeof u.write=="function"&&typeof u.on=="function"||typeof u.pipe=="function"&&typeof u.on=="function")}function R(u){return!!(u&&!E(u)&&typeof u.pipeThrough=="function"&&typeof u.getReader=="function"&&typeof u.cancel=="function")}function T(u){return!!(u&&!E(u)&&typeof u.getWriter=="function"&&typeof u.abort=="function")}function N(u){return!!(u&&!E(u)&&typeof u.readable=="object"&&typeof u.writable=="object")}function P(u){return R(u)||T(u)||N(u)}function L(u,S){return u==null?!1:S===!0?typeof u[a]=="function":S===!1?typeof u[o]=="function":typeof u[a]=="function"||typeof u[o]=="function"}function D(u){if(!E(u))return null;let S=u._writableState,B=u._readableState,k=S||B;return!!(u.destroyed||u[d]||k!=null&&k.destroyed)}function Z(u){if(!_(u))return null;if(u.writableEnded===!0)return!0;let S=u._writableState;return S!=null&&S.errored?!1:typeof S?.ended!="boolean"?null:S.ended}function W(u,S){if(!_(u))return null;if(u.writableFinished===!0)return!0;let B=u._writableState;return B!=null&&B.errored?!1:typeof B?.finished!="boolean"?null:!!(B.finished||S===!1&&B.ended===!0&&B.length===0)}function Q(u){if(!g(u))return null;if(u.readableEnded===!0)return!0;let S=u._readableState;return!S||S.errored?!1:typeof S?.ended!="boolean"?null:S.ended}function K(u,S){if(!g(u))return null;let B=u._readableState;return B!=null&&B.errored?!1:typeof B?.endEmitted!="boolean"?null:!!(B.endEmitted||S===!1&&B.ended===!0&&B.length===0)}function z(u){return u&&u[v]!=null?u[v]:typeof u?.readable!="boolean"?null:D(u)?!1:g(u)&&u.readable&&!K(u)}function X(u){return u&&u[b]!=null?u[b]:typeof u?.writable!="boolean"?null:D(u)?!1:_(u)&&u.writable&&!Z(u)}function p(u,S){return E(u)?D(u)?!0:!(S?.readable!==!1&&z(u)||S?.writable!==!1&&X(u)):null}function e(u){var S,B;return E(u)?u.writableErrored?u.writableErrored:(S=(B=u._writableState)===null||B===void 0?void 0:B.errored)!==null&&S!==void 0?S:null:null}function r(u){var S,B;return E(u)?u.readableErrored?u.readableErrored:(S=(B=u._readableState)===null||B===void 0?void 0:B.errored)!==null&&S!==void 0?S:null:null}function i(u){if(!E(u))return null;if(typeof u.closed=="boolean")return u.closed;let S=u._writableState,B=u._readableState;return typeof S?.closed=="boolean"||typeof B?.closed=="boolean"?S?.closed||B?.closed:typeof u._closed=="boolean"&&s(u)?u._closed:null}function s(u){return typeof u._closed=="boolean"&&typeof u._defaultKeepAlive=="boolean"&&typeof u._removedConnection=="boolean"&&typeof u._removedContLen=="boolean"}function h(u){return typeof u._sent100=="boolean"&&s(u)}function c(u){var S;return typeof u._consuming=="boolean"&&typeof u._dumped=="boolean"&&((S=u.req)===null||S===void 0?void 0:S.upgradeOrConnect)===void 0}function m(u){if(!E(u))return null;let S=u._writableState,B=u._readableState,k=S||B;return!k&&h(u)||!!(k&&k.autoDestroy&&k.emitClose&&k.closed===!1)}function l(u){var S;return!!(u&&((S=u[y])!==null&&S!==void 0?S:u.readableDidRead||u.readableAborted))}function t(u){var S,B,k,q,F,ee,te,O,U,oe;return!!(u&&((S=(B=(k=(q=(F=(ee=u[n])!==null&&ee!==void 0?ee:u.readableErrored)!==null&&F!==void 0?F:u.writableErrored)!==null&&q!==void 0?q:(te=u._readableState)===null||te===void 0?void 0:te.errorEmitted)!==null&&k!==void 0?k:(O=u._writableState)===null||O===void 0?void 0:O.errorEmitted)!==null&&B!==void 0?B:(U=u._readableState)===null||U===void 0?void 0:U.errored)!==null&&S!==void 0?S:!((oe=u._writableState)===null||oe===void 0)&&oe.errored))}return US={isDestroyed:D,kIsDestroyed:d,isDisturbed:l,kIsDisturbed:y,isErrored:t,kIsErrored:n,isReadable:z,kIsReadable:v,kIsClosedPromise:M,kControllerErrorFunction:w,kIsWritable:b,isClosed:i,isDuplexNodeStream:x,isFinished:p,isIterable:L,isReadableNodeStream:g,isReadableStream:R,isReadableEnded:Q,isReadableFinished:K,isReadableErrored:r,isNodeStream:E,isWebStream:P,isWritable:X,isWritableNodeStream:_,isWritableStream:T,isWritableEnded:Z,isWritableFinished:W,isWritableErrored:e,isServerRequest:c,isServerResponse:h,willEmitClose:m,isTransformStream:N},US}var Qb={},PV=!1;function Ah(){if(PV)return Qb;PV=!0;let a=s0,{AbortError:o,codes:f}=xa(),{ERR_INVALID_ARG_TYPE:d,ERR_STREAM_PREMATURE_CLOSE:n}=f,{kEmptyObject:v,once:b}=fa(),{validateAbortSignal:y,validateFunction:M,validateObject:w,validateBoolean:g}=mp(),{Promise:_,PromisePrototypeThen:x,SymbolDispose:E}=Vi(),{isClosed:R,isReadable:T,isReadableNodeStream:N,isReadableStream:P,isReadableFinished:L,isReadableErrored:D,isWritable:Z,isWritableNodeStream:W,isWritableStream:Q,isWritableFinished:K,isWritableErrored:z,isNodeStream:X,willEmitClose:p,kIsClosedPromise:e}=f0(),r;function i(l){return l.setHeader&&typeof l.abort=="function"}let s=()=>{};function h(l,t,u){var S,B;if(arguments.length===2?(u=t,t=v):t==null?t=v:w(t,"options"),M(u,"callback"),y(t.signal,"options.signal"),u=b(u),P(l)||Q(l))return c(l,t,u);if(!X(l))throw new d("stream",["ReadableStream","WritableStream","Stream"],l);let k=(S=t.readable)!==null&&S!==void 0?S:N(l),q=(B=t.writable)!==null&&B!==void 0?B:W(l),F=l._writableState,ee=l._readableState,te=()=>{l.writable||oe()},O=p(l)&&N(l)===k&&W(l)===q,U=K(l,!1),oe=()=>{U=!0,l.destroyed&&(O=!1),!(O&&(!l.readable||k))&&(!k||Y)&&u.call(l)},Y=L(l,!1),j=()=>{Y=!0,l.destroyed&&(O=!1),!(O&&(!l.writable||q))&&(!q||U)&&u.call(l)},V=ye=>{u.call(l,ye)},G=R(l),ie=()=>{G=!0;let ye=z(l)||D(l);if(ye&&typeof ye!="boolean")return u.call(l,ye);if(k&&!Y&&N(l,!0)&&!L(l,!1))return u.call(l,new n);if(q&&!U&&!K(l,!1))return u.call(l,new n);u.call(l)},me=()=>{G=!0;let ye=z(l)||D(l);if(ye&&typeof ye!="boolean")return u.call(l,ye);u.call(l)},re=()=>{l.req.on("finish",oe)};i(l)?(l.on("complete",oe),O||l.on("abort",ie),l.req?re():l.on("request",re)):q&&!F&&(l.on("end",te),l.on("close",te)),!O&&typeof l.aborted=="boolean"&&l.on("aborted",ie),l.on("end",j),l.on("finish",oe),t.error!==!1&&l.on("error",V),l.on("close",ie),G?a.nextTick(ie):F!=null&&F.errorEmitted||ee!=null&&ee.errorEmitted?O||a.nextTick(me):(!k&&(!O||T(l))&&(U||Z(l)===!1)||!q&&(!O||Z(l))&&(Y||T(l)===!1)||ee&&l.req&&l.aborted)&&a.nextTick(me);let ae=()=>{u=s,l.removeListener("aborted",ie),l.removeListener("complete",oe),l.removeListener("abort",ie),l.removeListener("request",re),l.req&&l.req.removeListener("finish",oe),l.removeListener("end",te),l.removeListener("close",te),l.removeListener("finish",oe),l.removeListener("end",j),l.removeListener("error",V),l.removeListener("close",ie)};if(t.signal&&!G){let ye=()=>{let fe=u;ae(),fe.call(l,new o(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)a.nextTick(ye);else{r=r||fa().addAbortListener;let fe=r(t.signal,ye),he=u;u=b((...nt)=>{fe[E](),he.apply(l,nt)})}}return ae}function c(l,t,u){let S=!1,B=s;if(t.signal)if(B=()=>{S=!0,u.call(l,new o(void 0,{cause:t.signal.reason}))},t.signal.aborted)a.nextTick(B);else{r=r||fa().addAbortListener;let q=r(t.signal,B),F=u;u=b((...ee)=>{q[E](),F.apply(l,ee)})}let k=(...q)=>{S||a.nextTick(()=>u.apply(l,q))};return x(l[e].promise,k,k),s}function m(l,t){var u;let S=!1;return t===null&&(t=v),(u=t)!==null&&u!==void 0&&u.cleanup&&(g(t.cleanup,"cleanup"),S=t.cleanup),new _((B,k)=>{let q=h(l,t,F=>{S&&q(),F?k(F):B()})})}return Qb=h,Qb.finished=m,Qb}var FS={},NV=!1;function jd(){if(NV)return FS;NV=!0;let a=s0,{aggregateTwoErrors:o,codes:{ERR_MULTIPLE_CALLBACK:f},AbortError:d}=xa(),{Symbol:n}=Vi(),{kIsDestroyed:v,isDestroyed:b,isFinished:y,isServerRequest:M}=f0(),w=n("kDestroy"),g=n("kConstruct");function _(p,e,r){p&&(p.stack,e&&!e.errored&&(e.errored=p),r&&!r.errored&&(r.errored=p))}function x(p,e){let r=this._readableState,i=this._writableState,s=i||r;return i!=null&&i.destroyed||r!=null&&r.destroyed?(typeof e=="function"&&e(),this):(_(p,i,r),i&&(i.destroyed=!0),r&&(r.destroyed=!0),s.constructed?E(this,p,e):this.once(w,function(h){E(this,o(h,p),e)}),this)}function E(p,e,r){let i=!1;function s(h){if(i)return;i=!0;let c=p._readableState,m=p._writableState;_(h,m,c),m&&(m.closed=!0),c&&(c.closed=!0),typeof r=="function"&&r(h),h?a.nextTick(R,p,h):a.nextTick(T,p)}try{p._destroy(e||null,s)}catch(h){s(h)}}function R(p,e){N(p,e),T(p)}function T(p){let e=p._readableState,r=p._writableState;r&&(r.closeEmitted=!0),e&&(e.closeEmitted=!0),(r!=null&&r.emitClose||e!=null&&e.emitClose)&&p.emit("close")}function N(p,e){let r=p._readableState,i=p._writableState;i!=null&&i.errorEmitted||r!=null&&r.errorEmitted||(i&&(i.errorEmitted=!0),r&&(r.errorEmitted=!0),p.emit("error",e))}function P(){let p=this._readableState,e=this._writableState;p&&(p.constructed=!0,p.closed=!1,p.closeEmitted=!1,p.destroyed=!1,p.errored=null,p.errorEmitted=!1,p.reading=!1,p.ended=p.readable===!1,p.endEmitted=p.readable===!1),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=e.writable===!1,e.ending=e.writable===!1,e.finished=e.writable===!1)}function L(p,e,r){let i=p._readableState,s=p._writableState;if(s!=null&&s.destroyed||i!=null&&i.destroyed)return this;i!=null&&i.autoDestroy||s!=null&&s.autoDestroy?p.destroy(e):e&&(e.stack,s&&!s.errored&&(s.errored=e),i&&!i.errored&&(i.errored=e),r?a.nextTick(N,p,e):N(p,e))}function D(p,e){if(typeof p._construct!="function")return;let r=p._readableState,i=p._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),p.once(g,e),!(p.listenerCount(g)>1)&&a.nextTick(Z,p)}function Z(p){let e=!1;function r(i){if(e){L(p,i??new f);return}e=!0;let s=p._readableState,h=p._writableState,c=h||s;s&&(s.constructed=!0),h&&(h.constructed=!0),c.destroyed?p.emit(w,i):i?L(p,i,!0):a.nextTick(W,p)}try{p._construct(i=>{a.nextTick(r,i)})}catch(i){a.nextTick(r,i)}}function W(p){p.emit(g)}function Q(p){return p?.setHeader&&typeof p.abort=="function"}function K(p){p.emit("close")}function z(p,e){p.emit("error",e),a.nextTick(K,p)}function X(p,e){!p||b(p)||(!e&&!y(p)&&(e=new d),M(p)?(p.socket=null,p.destroy(e)):Q(p)?p.abort():Q(p.req)?p.req.abort():typeof p.destroy=="function"?p.destroy(e):typeof p.close=="function"?p.close():e?a.nextTick(z,p,e):a.nextTick(K,p),p.destroyed||(p[v]=!0))}return FS={construct:D,destroyer:X,destroy:x,undestroy:P,errorOrDestroy:L},FS}var zS={},CV=!1;function lE(){if(CV)return zS;CV=!0;let{ArrayIsArray:a,ObjectSetPrototypeOf:o}=Vi(),{EventEmitter:f}=Sh;function d(v){f.call(this,v)}o(d.prototype,f.prototype),o(d,f),d.prototype.pipe=function(v,b){let y=this;function M(T){v.writable&&v.write(T)===!1&&y.pause&&y.pause()}y.on("data",M);function w(){y.readable&&y.resume&&y.resume()}v.on("drain",w),!v._isStdio&&(!b||b.end!==!1)&&(y.on("end",_),y.on("close",x));let g=!1;function _(){g||(g=!0,v.end())}function x(){g||(g=!0,typeof v.destroy=="function"&&v.destroy())}function E(T){R(),f.listenerCount(this,"error")===0&&this.emit("error",T)}n(y,"error",E),n(v,"error",E);function R(){y.removeListener("data",M),v.removeListener("drain",w),y.removeListener("end",_),y.removeListener("close",x),y.removeListener("error",E),v.removeListener("error",E),y.removeListener("end",R),y.removeListener("close",R),v.removeListener("close",R)}return y.on("end",R),y.on("close",R),v.on("close",R),v.emit("pipe",y),v};function n(v,b,y){if(typeof v.prependListener=="function")return v.prependListener(b,y);!v._events||!v._events[b]?v.on(b,y):a(v._events[b])?v._events[b].unshift(y):v._events[b]=[y,v._events[b]]}return zS={Stream:d,prependListener:n},zS}var pp={},LV=!1;function im(){if(LV)return pp;LV=!0;let{SymbolDispose:a}=Vi(),{AbortError:o,codes:f}=xa(),{isNodeStream:d,isWebStream:n,kControllerErrorFunction:v}=f0(),b=Ah(),{ERR_INVALID_ARG_TYPE:y}=f,M,w=(g,_)=>{if(typeof g!="object"||!("aborted"in g))throw new y(_,"AbortSignal",g)};return pp.addAbortSignal=function(_,x){if(w(_,"signal"),!d(x)&&!n(x))throw new y("stream",["ReadableStream","WritableStream","Stream"],x);return pp.addAbortSignalNoValidate(_,x)},pp.addAbortSignalNoValidate=function(g,_){if(typeof g!="object"||!("aborted"in g))return _;let x=d(_)?()=>{_.destroy(new o(void 0,{cause:g.reason}))}:()=>{_[v](new o(void 0,{cause:g.reason}))};if(g.aborted)x();else{M=M||fa().addAbortListener;let E=M(g,x);b(_,E[a])}return _},pp}var HS={},DV=!1;function f2e(){if(DV)return HS;DV=!0;let{StringPrototypeSlice:a,SymbolIterator:o,TypedArrayPrototypeSet:f,Uint8Array:d}=Vi(),{Buffer:n}=xh(),{inspect:v}=fa();return HS=class{constructor(){this.head=null,this.tail=null,this.length=0}push(y){let M={data:y,next:null};this.length>0?this.tail.next=M:this.head=M,this.tail=M,++this.length}unshift(y){let M={data:y,next:this.head};this.length===0&&(this.tail=M),this.head=M,++this.length}shift(){if(this.length===0)return;let y=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,y}clear(){this.head=this.tail=null,this.length=0}join(y){if(this.length===0)return"";let M=this.head,w=""+M.data;for(;(M=M.next)!==null;)w+=y+M.data;return w}concat(y){if(this.length===0)return n.alloc(0);let M=n.allocUnsafe(y>>>0),w=this.head,g=0;for(;w;)f(M,w.data,g),g+=w.data.length,w=w.next;return M}consume(y,M){let w=this.head.data;if(y<w.length){let g=w.slice(0,y);return this.head.data=w.slice(y),g}return y===w.length?this.shift():M?this._getString(y):this._getBuffer(y)}first(){return this.head.data}*[o](){for(let y=this.head;y;y=y.next)yield y.data}_getString(y){let M="",w=this.head,g=0;do{let _=w.data;if(y>_.length)M+=_,y-=_.length;else{y===_.length?(M+=_,++g,w.next?this.head=w.next:this.head=this.tail=null):(M+=a(_,0,y),this.head=w,w.data=a(_,y));break}++g}while((w=w.next)!==null);return this.length-=g,M}_getBuffer(y){let M=n.allocUnsafe(y),w=y,g=this.head,_=0;do{let x=g.data;if(y>x.length)f(M,x,w-y),y-=x.length;else{y===x.length?(f(M,x,w-y),++_,g.next?this.head=g.next:this.head=this.tail=null):(f(M,new d(x.buffer,x.byteOffset,y),w-y),this.head=g,g.data=x.slice(y));break}++_}while((g=g.next)!==null);return this.length-=_,M}[Symbol.for("nodejs.util.inspect.custom")](y,M){return v(this,{...M,depth:0,customInspect:!1})}},HS}var KS={},OV=!1;function nm(){if(OV)return KS;OV=!0;let{MathFloor:a,NumberIsInteger:o}=Vi(),{validateInteger:f}=mp(),{ERR_INVALID_ARG_VALUE:d}=xa().codes,n=16*1024,v=16;function b(g,_,x){return g.highWaterMark!=null?g.highWaterMark:_?g[x]:null}function y(g){return g?v:n}function M(g,_){f(_,"value",0),g?v=_:n=_}function w(g,_,x,E){let R=b(_,E,x);if(R!=null){if(!o(R)||R<0){let T=E?`options.${x}`:"options.highWaterMark";throw new d(T,R)}return a(R)}return y(g.objectMode)}return KS={getHighWaterMark:w,getDefaultHighWaterMark:y,setDefaultHighWaterMark:M},KS}var jS={},qV=!1;function sJ(){if(qV)return jS;qV=!0;let a=s0,{PromisePrototypeThen:o,SymbolAsyncIterator:f,SymbolIterator:d}=Vi(),{Buffer:n}=xh(),{ERR_INVALID_ARG_TYPE:v,ERR_STREAM_NULL_VALUES:b}=xa().codes;function y(M,w,g){let _;if(typeof w=="string"||w instanceof n)return new M({objectMode:!0,...g,read(){this.push(w),this.push(null)}});let x;if(w&&w[f])x=!0,_=w[f]();else if(w&&w[d])x=!1,_=w[d]();else throw new v("iterable",["Iterable"],w);let E=new M({objectMode:!0,highWaterMark:1,...g}),R=!1;E._read=function(){R||(R=!0,N())},E._destroy=function(P,L){o(T(P),()=>a.nextTick(L,P),D=>a.nextTick(L,D||P))};async function T(P){let L=P!=null,D=typeof _.throw=="function";if(L&&D){let{value:Z,done:W}=await _.throw(P);if(await Z,W)return}if(typeof _.return=="function"){let{value:Z}=await _.return();await Z}}async function N(){for(;;){try{let{value:P,done:L}=x?await _.next():_.next();if(L)E.push(null);else{let D=P&&typeof P.then=="function"?await P:P;if(D===null)throw R=!1,new b;if(E.push(D))continue;R=!1}}catch(P){E.destroy(P)}break}}return E}return jS=y,jS}var WS={},UV=!1,_t=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function am(){if(UV)return WS;UV=!0;let a=s0,{ArrayPrototypeIndexOf:o,NumberIsInteger:f,NumberIsNaN:d,NumberParseInt:n,ObjectDefineProperties:v,ObjectKeys:b,ObjectSetPrototypeOf:y,Promise:M,SafeSet:w,SymbolAsyncDispose:g,SymbolAsyncIterator:_,Symbol:x}=Vi();WS=nt,nt.ReadableState=he;let{EventEmitter:E}=Sh,{Stream:R,prependListener:T}=lE(),{Buffer:N}=xh(),{addAbortSignal:P}=im(),L=Ah(),D=fa().debuglog("stream",se=>{D=se}),Z=f2e(),W=jd(),{getHighWaterMark:Q,getDefaultHighWaterMark:K}=nm(),{aggregateTwoErrors:z,codes:{ERR_INVALID_ARG_TYPE:X,ERR_METHOD_NOT_IMPLEMENTED:p,ERR_OUT_OF_RANGE:e,ERR_STREAM_PUSH_AFTER_EOF:r,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:i},AbortError:s}=xa(),{validateObject:h}=mp(),c=x("kPaused"),{StringDecoder:m}=oE,l=sJ();y(nt.prototype,R.prototype),y(nt,R);let t=()=>{},{errorOrDestroy:u}=W,S=1,B=2,k=4,q=8,F=16,ee=32,te=64,O=128,U=256,oe=512,Y=1024,j=2048,V=4096,G=8192,ie=16384,me=32768,re=65536,ae=1<<17,ye=1<<18;function fe(se){return{enumerable:!1,get(){return((this||_t).state&se)!==0},set(ue){ue?(this||_t).state|=se:(this||_t).state&=~se}}}v(he.prototype,{objectMode:fe(S),ended:fe(B),endEmitted:fe(k),reading:fe(q),constructed:fe(F),sync:fe(ee),needReadable:fe(te),emittedReadable:fe(O),readableListening:fe(U),resumeScheduled:fe(oe),errorEmitted:fe(Y),emitClose:fe(j),autoDestroy:fe(V),destroyed:fe(G),closed:fe(ie),closeEmitted:fe(me),multiAwaitDrain:fe(re),readingMore:fe(ae),dataEmitted:fe(ye)});function he(se,ue,ht){typeof ht!="boolean"&&(ht=ue instanceof o0()),(this||_t).state=j|V|F|ee,se&&se.objectMode&&((this||_t).state|=S),ht&&se&&se.readableObjectMode&&((this||_t).state|=S),(this||_t).highWaterMark=se?Q(this||_t,se,"readableHighWaterMark",ht):K(!1),(this||_t).buffer=new Z,(this||_t).length=0,(this||_t).pipes=[],(this||_t).flowing=null,(this||_t)[c]=null,se&&se.emitClose===!1&&((this||_t).state&=~j),se&&se.autoDestroy===!1&&((this||_t).state&=~V),(this||_t).errored=null,(this||_t).defaultEncoding=se&&se.defaultEncoding||"utf8",(this||_t).awaitDrainWriters=null,(this||_t).decoder=null,(this||_t).encoding=null,se&&se.encoding&&((this||_t).decoder=new m(se.encoding),(this||_t).encoding=se.encoding)}function nt(se){if(!((this||_t)instanceof nt))return new nt(se);let ue=(this||_t)instanceof o0();(this||_t)._readableState=new he(se,this||_t,ue),se&&(typeof se.read=="function"&&((this||_t)._read=se.read),typeof se.destroy=="function"&&((this||_t)._destroy=se.destroy),typeof se.construct=="function"&&((this||_t)._construct=se.construct),se.signal&&!ue&&P(se.signal,this||_t)),R.call(this||_t,se),W.construct(this||_t,()=>{(this||_t)._readableState.needReadable&&ne(this||_t,(this||_t)._readableState)})}nt.prototype.destroy=W.destroy,nt.prototype._undestroy=W.undestroy,nt.prototype._destroy=function(se,ue){ue(se)},nt.prototype[E.captureRejectionSymbol]=function(se){this.destroy(se)},nt.prototype[g]=function(){let se;return(this||_t).destroyed||(se=(this||_t).readableEnded?null:new s,this.destroy(se)),new M((ue,ht)=>L(this||_t,pe=>pe&&pe!==se?ht(pe):ue(null)))},nt.prototype.push=function(se,ue){return ce(this||_t,se,ue,!1)},nt.prototype.unshift=function(se,ue){return ce(this||_t,se,ue,!0)};function ce(se,ue,ht,pe){D("readableAddChunk",ue);let Se=se._readableState,dt;if(Se.state&S||(typeof ue=="string"?(ht=ht||Se.defaultEncoding,Se.encoding!==ht&&(pe&&Se.encoding?ue=N.from(ue,ht).toString(Se.encoding):(ue=N.from(ue,ht),ht=""))):ue instanceof N?ht="":R._isUint8Array(ue)?(ue=R._uint8ArrayToBuffer(ue),ht=""):ue!=null&&(dt=new X("chunk",["string","Buffer","Uint8Array"],ue))),dt)u(se,dt);else if(ue===null)Se.state&=~q,I(se,Se);else if(Se.state&S||ue&&ue.length>0)if(pe)if(Se.state&k)u(se,new i);else{if(Se.destroyed||Se.errored)return!1;be(se,Se,ue,!0)}else if(Se.ended)u(se,new r);else{if(Se.destroyed||Se.errored)return!1;Se.state&=~q,Se.decoder&&!ht?(ue=Se.decoder.write(ue),Se.objectMode||ue.length!==0?be(se,Se,ue,!1):ne(se,Se)):be(se,Se,ue,!1)}else pe||(Se.state&=~q,ne(se,Se));return!Se.ended&&(Se.length<Se.highWaterMark||Se.length===0)}function be(se,ue,ht,pe){ue.flowing&&ue.length===0&&!ue.sync&&se.listenerCount("data")>0?(ue.state&re?ue.awaitDrainWriters.clear():ue.awaitDrainWriters=null,ue.dataEmitted=!0,se.emit("data",ht)):(ue.length+=ue.objectMode?1:ht.length,pe?ue.buffer.unshift(ht):ue.buffer.push(ht),ue.state&te&&C(se)),ne(se,ue)}nt.prototype.isPaused=function(){let se=(this||_t)._readableState;return se[c]===!0||se.flowing===!1},nt.prototype.setEncoding=function(se){let ue=new m(se);(this||_t)._readableState.decoder=ue,(this||_t)._readableState.encoding=(this||_t)._readableState.decoder.encoding;let ht=(this||_t)._readableState.buffer,pe="";for(let Se of ht)pe+=ue.write(Se);return ht.clear(),pe!==""&&ht.push(pe),(this||_t)._readableState.length=pe.length,this||_t};let ut=1073741824;function $(se){if(se>ut)throw new e("size","<= 1GiB",se);return se--,se|=se>>>1,se|=se>>>2,se|=se>>>4,se|=se>>>8,se|=se>>>16,se++,se}function A(se,ue){return se<=0||ue.length===0&&ue.ended?0:ue.state&S?1:d(se)?ue.flowing&&ue.length?ue.buffer.first().length:ue.length:se<=ue.length?se:ue.ended?ue.length:0}nt.prototype.read=function(se){D("read",se),se===void 0?se=NaN:f(se)||(se=n(se,10));let ue=(this||_t)._readableState,ht=se;if(se>ue.highWaterMark&&(ue.highWaterMark=$(se)),se!==0&&(ue.state&=~O),se===0&&ue.needReadable&&((ue.highWaterMark!==0?ue.length>=ue.highWaterMark:ue.length>0)||ue.ended))return D("read: emitReadable",ue.length,ue.ended),ue.length===0&&ue.ended?Ne(this||_t):C(this||_t),null;if(se=A(se,ue),se===0&&ue.ended)return ue.length===0&&Ne(this||_t),null;let pe=(ue.state&te)!==0;if(D("need readable",pe),(ue.length===0||ue.length-se<ue.highWaterMark)&&(pe=!0,D("length less than watermark",pe)),ue.ended||ue.reading||ue.destroyed||ue.errored||!ue.constructed)pe=!1,D("reading, ended or constructing",pe);else if(pe){D("do read"),ue.state|=q|ee,ue.length===0&&(ue.state|=te);try{this._read(ue.highWaterMark)}catch(dt){u(this||_t,dt)}ue.state&=~ee,ue.reading||(se=A(ht,ue))}let Se;return se>0?Se=Me(se,ue):Se=null,Se===null?(ue.needReadable=ue.length<=ue.highWaterMark,se=0):(ue.length-=se,ue.multiAwaitDrain?ue.awaitDrainWriters.clear():ue.awaitDrainWriters=null),ue.length===0&&(ue.ended||(ue.needReadable=!0),ht!==se&&ue.ended&&Ne(this||_t)),Se!==null&&!ue.errorEmitted&&!ue.closeEmitted&&(ue.dataEmitted=!0,this.emit("data",Se)),Se};function I(se,ue){if(D("onEofChunk"),!ue.ended){if(ue.decoder){let ht=ue.decoder.end();ht&&ht.length&&(ue.buffer.push(ht),ue.length+=ue.objectMode?1:ht.length)}ue.ended=!0,ue.sync?C(se):(ue.needReadable=!1,ue.emittedReadable=!0,H(se))}}function C(se){let ue=se._readableState;D("emitReadable",ue.needReadable,ue.emittedReadable),ue.needReadable=!1,ue.emittedReadable||(D("emitReadable",ue.flowing),ue.emittedReadable=!0,a.nextTick(H,se))}function H(se){let ue=se._readableState;D("emitReadable_",ue.destroyed,ue.length,ue.ended),!ue.destroyed&&!ue.errored&&(ue.length||ue.ended)&&(se.emit("readable"),ue.emittedReadable=!1),ue.needReadable=!ue.flowing&&!ue.ended&&ue.length<=ue.highWaterMark,we(se)}function ne(se,ue){!ue.readingMore&&ue.constructed&&(ue.readingMore=!0,a.nextTick(J,se,ue))}function J(se,ue){for(;!ue.reading&&!ue.ended&&(ue.length<ue.highWaterMark||ue.flowing&&ue.length===0);){let ht=ue.length;if(D("maybeReadMore read 0"),se.read(0),ht===ue.length)break}ue.readingMore=!1}nt.prototype._read=function(se){throw new p("_read()")},nt.prototype.pipe=function(se,ue){let ht=this||_t,pe=(this||_t)._readableState;pe.pipes.length===1&&(pe.multiAwaitDrain||(pe.multiAwaitDrain=!0,pe.awaitDrainWriters=new w(pe.awaitDrainWriters?[pe.awaitDrainWriters]:[]))),pe.pipes.push(se),D("pipe count=%d opts=%j",pe.pipes.length,ue);let dt=(!ue||ue.end!==!1)&&se!==a.stdout&&se!==a.stderr?De:yt;pe.endEmitted?a.nextTick(dt):ht.once("end",dt),se.on("unpipe",ge);function ge(xt,Mt){D("onunpipe"),xt===ht&&Mt&&Mt.hasUnpiped===!1&&(Mt.hasUnpiped=!0,Oe())}function De(){D("onend"),se.end()}let ct,_e=!1;function Oe(){D("cleanup"),se.removeListener("close",pt),se.removeListener("finish",lt),ct&&se.removeListener("drain",ct),se.removeListener("error",Pe),se.removeListener("unpipe",ge),ht.removeListener("end",De),ht.removeListener("end",yt),ht.removeListener("data",Ee),_e=!0,ct&&pe.awaitDrainWriters&&(!se._writableState||se._writableState.needDrain)&&ct()}function gt(){_e||(pe.pipes.length===1&&pe.pipes[0]===se?(D("false write response, pause",0),pe.awaitDrainWriters=se,pe.multiAwaitDrain=!1):pe.pipes.length>1&&pe.pipes.includes(se)&&(D("false write response, pause",pe.awaitDrainWriters.size),pe.awaitDrainWriters.add(se)),ht.pause()),ct||(ct=de(ht,se),se.on("drain",ct))}ht.on("data",Ee);function Ee(xt){D("ondata");let Mt=se.write(xt);D("dest.write",Mt),Mt===!1&&gt()}function Pe(xt){if(D("onerror",xt),yt(),se.removeListener("error",Pe),se.listenerCount("error")===0){let Mt=se._writableState||se._readableState;Mt&&!Mt.errorEmitted?u(se,xt):se.emit("error",xt)}}T(se,"error",Pe);function pt(){se.removeListener("finish",lt),yt()}se.once("close",pt);function lt(){D("onfinish"),se.removeListener("close",pt),yt()}se.once("finish",lt);function yt(){D("unpipe"),ht.unpipe(se)}return se.emit("pipe",ht),se.writableNeedDrain===!0?gt():pe.flowing||(D("pipe resume"),ht.resume()),se};function de(se,ue){return function(){let pe=se._readableState;pe.awaitDrainWriters===ue?(D("pipeOnDrain",1),pe.awaitDrainWriters=null):pe.multiAwaitDrain&&(D("pipeOnDrain",pe.awaitDrainWriters.size),pe.awaitDrainWriters.delete(ue)),(!pe.awaitDrainWriters||pe.awaitDrainWriters.size===0)&&se.listenerCount("data")&&se.resume()}}nt.prototype.unpipe=function(se){let ue=(this||_t)._readableState,ht={hasUnpiped:!1};if(ue.pipes.length===0)return this||_t;if(!se){let Se=ue.pipes;ue.pipes=[],this.pause();for(let dt=0;dt<Se.length;dt++)Se[dt].emit("unpipe",this||_t,{hasUnpiped:!1});return this||_t}let pe=o(ue.pipes,se);return pe===-1?this||_t:(ue.pipes.splice(pe,1),ue.pipes.length===0&&this.pause(),se.emit("unpipe",this||_t,ht),this||_t)},nt.prototype.on=function(se,ue){let ht=R.prototype.on.call(this||_t,se,ue),pe=(this||_t)._readableState;return se==="data"?(pe.readableListening=this.listenerCount("readable")>0,pe.flowing!==!1&&this.resume()):se==="readable"&&!pe.endEmitted&&!pe.readableListening&&(pe.readableListening=pe.needReadable=!0,pe.flowing=!1,pe.emittedReadable=!1,D("on readable",pe.length,pe.reading),pe.length?C(this||_t):pe.reading||a.nextTick(le,this||_t)),ht},nt.prototype.addListener=nt.prototype.on,nt.prototype.removeListener=function(se,ue){let ht=R.prototype.removeListener.call(this||_t,se,ue);return se==="readable"&&a.nextTick(st,this||_t),ht},nt.prototype.off=nt.prototype.removeListener,nt.prototype.removeAllListeners=function(se){let ue=R.prototype.removeAllListeners.apply(this||_t,arguments);return(se==="readable"||se===void 0)&&a.nextTick(st,this||_t),ue};function st(se){let ue=se._readableState;ue.readableListening=se.listenerCount("readable")>0,ue.resumeScheduled&&ue[c]===!1?ue.flowing=!0:se.listenerCount("data")>0?se.resume():ue.readableListening||(ue.flowing=null)}function le(se){D("readable nexttick read 0"),se.read(0)}nt.prototype.resume=function(){let se=(this||_t)._readableState;return se.flowing||(D("resume"),se.flowing=!se.readableListening,ve(this||_t,se)),se[c]=!1,this||_t};function ve(se,ue){ue.resumeScheduled||(ue.resumeScheduled=!0,a.nextTick(ot,se,ue))}function ot(se,ue){D("resume",ue.reading),ue.reading||se.read(0),ue.resumeScheduled=!1,se.emit("resume"),we(se),ue.flowing&&!ue.reading&&se.read(0)}nt.prototype.pause=function(){return D("call pause flowing=%j",(this||_t)._readableState.flowing),(this||_t)._readableState.flowing!==!1&&(D("pause"),(this||_t)._readableState.flowing=!1,this.emit("pause")),(this||_t)._readableState[c]=!0,this||_t};function we(se){let ue=se._readableState;for(D("flow",ue.flowing);ue.flowing&&se.read()!==null;);}nt.prototype.wrap=function(se){let ue=!1;se.on("data",pe=>{!this.push(pe)&&se.pause&&(ue=!0,se.pause())}),se.on("end",()=>{this.push(null)}),se.on("error",pe=>{u(this||_t,pe)}),se.on("close",()=>{this.destroy()}),se.on("destroy",()=>{this.destroy()}),(this||_t)._read=()=>{ue&&se.resume&&(ue=!1,se.resume())};let ht=b(se);for(let pe=1;pe<ht.length;pe++){let Se=ht[pe];(this||_t)[Se]===void 0&&typeof se[Se]=="function"&&((this||_t)[Se]=se[Se].bind(se))}return this||_t},nt.prototype[_]=function(){return Le(this||_t)},nt.prototype.iterator=function(se){return se!==void 0&&h(se,"options"),Le(this||_t,se)};function Le(se,ue){typeof se.read!="function"&&(se=nt.wrap(se,{objectMode:!0}));let ht=bt(se,ue);return ht.stream=se,ht}async function*bt(se,ue){let ht=t;function pe(ge){(this||_t)===se?(ht(),ht=t):ht=ge}se.on("readable",pe);let Se,dt=L(se,{writable:!1},ge=>{Se=ge?z(Se,ge):null,ht(),ht=t});try{for(;;){let ge=se.destroyed?null:se.read();if(ge!==null)yield ge;else{if(Se)throw Se;if(Se===null)return;await new M(pe)}}}catch(ge){throw Se=z(Se,ge),Se}finally{(Se||ue?.destroyOnReturn!==!1)&&(Se===void 0||se._readableState.autoDestroy)?W.destroyer(se,null):(se.off("readable",pe),dt())}}v(nt.prototype,{readable:{__proto__:null,get(){let se=(this||_t)._readableState;return!!se&&se.readable!==!1&&!se.destroyed&&!se.errorEmitted&&!se.endEmitted},set(se){(this||_t)._readableState&&((this||_t)._readableState.readable=!!se)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return(this||_t)._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!((this||_t)._readableState.readable!==!1&&((this||_t)._readableState.destroyed||(this||_t)._readableState.errored)&&!(this||_t)._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return(this||_t)._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return(this||_t)._readableState&&(this||_t)._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return(this||_t)._readableState.flowing},set:function(se){(this||_t)._readableState&&((this||_t)._readableState.flowing=se)}},readableLength:{__proto__:null,enumerable:!1,get(){return(this||_t)._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return(this||_t)._readableState?(this||_t)._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return(this||_t)._readableState?(this||_t)._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return(this||_t)._readableState?(this||_t)._readableState.errored:null}},closed:{__proto__:null,get(){return(this||_t)._readableState?(this||_t)._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return(this||_t)._readableState?(this||_t)._readableState.destroyed:!1},set(se){(this||_t)._readableState&&((this||_t)._readableState.destroyed=se)}},readableEnded:{__proto__:null,enumerable:!1,get(){return(this||_t)._readableState?(this||_t)._readableState.endEmitted:!1}}}),v(he.prototype,{pipesCount:{__proto__:null,get(){return(this||_t).pipes.length}},paused:{__proto__:null,get(){return(this||_t)[c]!==!1},set(se){(this||_t)[c]=!!se}}}),nt._fromList=Me;function Me(se,ue){if(ue.length===0)return null;let ht;return ue.objectMode?ht=ue.buffer.shift():!se||se>=ue.length?(ue.decoder?ht=ue.buffer.join(""):ue.buffer.length===1?ht=ue.buffer.first():ht=ue.buffer.concat(ue.length),ue.buffer.clear()):ht=ue.buffer.consume(se,ue.decoder),ht}function Ne(se){let ue=se._readableState;D("endReadable",ue.endEmitted),ue.endEmitted||(ue.ended=!0,a.nextTick(mt,ue,se))}function mt(se,ue){if(D("endReadableNT",se.endEmitted,se.length),!se.errored&&!se.closeEmitted&&!se.endEmitted&&se.length===0){if(se.endEmitted=!0,ue.emit("end"),ue.writable&&ue.allowHalfOpen===!1)a.nextTick(xe,ue);else if(se.autoDestroy){let ht=ue._writableState;(!ht||ht.autoDestroy&&(ht.finished||ht.writable===!1))&&ue.destroy()}}}function xe(se){se.writable&&!se.writableEnded&&!se.destroyed&&se.end()}nt.from=function(se,ue){return l(nt,se,ue)};let Ce;function vt(){return Ce===void 0&&(Ce={}),Ce}return nt.fromWeb=function(se,ue){return vt().newStreamReadableFromReadableStream(se,ue)},nt.toWeb=function(se,ue){return vt().newReadableStreamFromStreamReadable(se,ue)},nt.wrap=function(se,ue){var ht,pe;return new nt({objectMode:(ht=(pe=se.readableObjectMode)!==null&&pe!==void 0?pe:se.objectMode)!==null&&ht!==void 0?ht:!0,...ue,destroy(Se,dt){W.destroyer(se,Se),dt(Se)}}).wrap(se)},WS}var ZS={},FV=!1,Ot=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function dE(){if(FV)return ZS;FV=!0;let a=s0,{ArrayPrototypeSlice:o,Error:f,FunctionPrototypeSymbolHasInstance:d,ObjectDefineProperty:n,ObjectDefineProperties:v,ObjectSetPrototypeOf:b,StringPrototypeToLowerCase:y,Symbol:M,SymbolHasInstance:w}=Vi();ZS=h,h.WritableState=i;let{EventEmitter:g}=Sh,_=lE().Stream,{Buffer:x}=xh(),E=jd(),{addAbortSignal:R}=im(),{getHighWaterMark:T,getDefaultHighWaterMark:N}=nm(),{ERR_INVALID_ARG_TYPE:P,ERR_METHOD_NOT_IMPLEMENTED:L,ERR_MULTIPLE_CALLBACK:D,ERR_STREAM_CANNOT_PIPE:Z,ERR_STREAM_DESTROYED:W,ERR_STREAM_ALREADY_FINISHED:Q,ERR_STREAM_NULL_VALUES:K,ERR_STREAM_WRITE_AFTER_END:z,ERR_UNKNOWN_ENCODING:X}=xa().codes,{errorOrDestroy:p}=E;b(h.prototype,_.prototype),b(h,_);function e(){}let r=M("kOnFinished");function i(V,G,ie){typeof ie!="boolean"&&(ie=G instanceof o0()),(this||Ot).objectMode=!!(V&&V.objectMode),ie&&((this||Ot).objectMode=(this||Ot).objectMode||!!(V&&V.writableObjectMode)),(this||Ot).highWaterMark=V?T(this||Ot,V,"writableHighWaterMark",ie):N(!1),(this||Ot).finalCalled=!1,(this||Ot).needDrain=!1,(this||Ot).ending=!1,(this||Ot).ended=!1,(this||Ot).finished=!1,(this||Ot).destroyed=!1;let me=!!(V&&V.decodeStrings===!1);(this||Ot).decodeStrings=!me,(this||Ot).defaultEncoding=V&&V.defaultEncoding||"utf8",(this||Ot).length=0,(this||Ot).writing=!1,(this||Ot).corked=0,(this||Ot).sync=!0,(this||Ot).bufferProcessing=!1,(this||Ot).onwrite=u.bind(void 0,G),(this||Ot).writecb=null,(this||Ot).writelen=0,(this||Ot).afterWriteTickInfo=null,s(this||Ot),(this||Ot).pendingcb=0,(this||Ot).constructed=!0,(this||Ot).prefinished=!1,(this||Ot).errorEmitted=!1,(this||Ot).emitClose=!V||V.emitClose!==!1,(this||Ot).autoDestroy=!V||V.autoDestroy!==!1,(this||Ot).errored=null,(this||Ot).closed=!1,(this||Ot).closeEmitted=!1,(this||Ot)[r]=[]}function s(V){V.buffered=[],V.bufferedIndex=0,V.allBuffers=!0,V.allNoop=!0}i.prototype.getBuffer=function(){return o((this||Ot).buffered,(this||Ot).bufferedIndex)},n(i.prototype,"bufferedRequestCount",{__proto__:null,get(){return(this||Ot).buffered.length-(this||Ot).bufferedIndex}});function h(V){let G=(this||Ot)instanceof o0();if(!G&&!d(h,this||Ot))return new h(V);(this||Ot)._writableState=new i(V,this||Ot,G),V&&(typeof V.write=="function"&&((this||Ot)._write=V.write),typeof V.writev=="function"&&((this||Ot)._writev=V.writev),typeof V.destroy=="function"&&((this||Ot)._destroy=V.destroy),typeof V.final=="function"&&((this||Ot)._final=V.final),typeof V.construct=="function"&&((this||Ot)._construct=V.construct),V.signal&&R(V.signal,this||Ot)),_.call(this||Ot,V),E.construct(this||Ot,()=>{let ie=(this||Ot)._writableState;ie.writing||q(this||Ot,ie),O(this||Ot,ie)})}n(h,w,{__proto__:null,value:function(V){return d(this||Ot,V)?!0:(this||Ot)!==h?!1:V&&V._writableState instanceof i}}),h.prototype.pipe=function(){p(this||Ot,new Z)};function c(V,G,ie,me){let re=V._writableState;if(typeof ie=="function")me=ie,ie=re.defaultEncoding;else{if(!ie)ie=re.defaultEncoding;else if(ie!=="buffer"&&!x.isEncoding(ie))throw new X(ie);typeof me!="function"&&(me=e)}if(G===null)throw new K;if(!re.objectMode)if(typeof G=="string")re.decodeStrings!==!1&&(G=x.from(G,ie),ie="buffer");else if(G instanceof x)ie="buffer";else if(_._isUint8Array(G))G=_._uint8ArrayToBuffer(G),ie="buffer";else throw new P("chunk",["string","Buffer","Uint8Array"],G);let ae;return re.ending?ae=new z:re.destroyed&&(ae=new W("write")),ae?(a.nextTick(me,ae),p(V,ae,!0),ae):(re.pendingcb++,m(V,re,G,ie,me))}h.prototype.write=function(V,G,ie){return c(this||Ot,V,G,ie)===!0},h.prototype.cork=function(){(this||Ot)._writableState.corked++},h.prototype.uncork=function(){let V=(this||Ot)._writableState;V.corked&&(V.corked--,V.writing||q(this||Ot,V))},h.prototype.setDefaultEncoding=function(G){if(typeof G=="string"&&(G=y(G)),!x.isEncoding(G))throw new X(G);return(this||Ot)._writableState.defaultEncoding=G,this||Ot};function m(V,G,ie,me,re){let ae=G.objectMode?1:ie.length;G.length+=ae;let ye=G.length<G.highWaterMark;return ye||(G.needDrain=!0),G.writing||G.corked||G.errored||!G.constructed?(G.buffered.push({chunk:ie,encoding:me,callback:re}),G.allBuffers&&me!=="buffer"&&(G.allBuffers=!1),G.allNoop&&re!==e&&(G.allNoop=!1)):(G.writelen=ae,G.writecb=re,G.writing=!0,G.sync=!0,V._write(ie,me,G.onwrite),G.sync=!1),ye&&!G.errored&&!G.destroyed}function l(V,G,ie,me,re,ae,ye){G.writelen=me,G.writecb=ye,G.writing=!0,G.sync=!0,G.destroyed?G.onwrite(new W("write")):ie?V._writev(re,G.onwrite):V._write(re,ae,G.onwrite),G.sync=!1}function t(V,G,ie,me){--G.pendingcb,me(ie),k(G),p(V,ie)}function u(V,G){let ie=V._writableState,me=ie.sync,re=ie.writecb;if(typeof re!="function"){p(V,new D);return}ie.writing=!1,ie.writecb=null,ie.length-=ie.writelen,ie.writelen=0,G?(G.stack,ie.errored||(ie.errored=G),V._readableState&&!V._readableState.errored&&(V._readableState.errored=G),me?a.nextTick(t,V,ie,G,re):t(V,ie,G,re)):(ie.buffered.length>ie.bufferedIndex&&q(V,ie),me?ie.afterWriteTickInfo!==null&&ie.afterWriteTickInfo.cb===re?ie.afterWriteTickInfo.count++:(ie.afterWriteTickInfo={count:1,cb:re,stream:V,state:ie},a.nextTick(S,ie.afterWriteTickInfo)):B(V,ie,1,re))}function S({stream:V,state:G,count:ie,cb:me}){return G.afterWriteTickInfo=null,B(V,G,ie,me)}function B(V,G,ie,me){for(!G.ending&&!V.destroyed&&G.length===0&&G.needDrain&&(G.needDrain=!1,V.emit("drain"));ie-- >0;)G.pendingcb--,me();G.destroyed&&k(G),O(V,G)}function k(V){if(V.writing)return;for(let re=V.bufferedIndex;re<V.buffered.length;++re){var G;let{chunk:ae,callback:ye}=V.buffered[re],fe=V.objectMode?1:ae.length;V.length-=fe,ye((G=V.errored)!==null&&G!==void 0?G:new W("write"))}let ie=V[r].splice(0);for(let re=0;re<ie.length;re++){var me;ie[re]((me=V.errored)!==null&&me!==void 0?me:new W("end"))}s(V)}function q(V,G){if(G.corked||G.bufferProcessing||G.destroyed||!G.constructed)return;let{buffered:ie,bufferedIndex:me,objectMode:re}=G,ae=ie.length-me;if(!ae)return;let ye=me;if(G.bufferProcessing=!0,ae>1&&V._writev){G.pendingcb-=ae-1;let fe=G.allNoop?e:nt=>{for(let ce=ye;ce<ie.length;++ce)ie[ce].callback(nt)},he=G.allNoop&&ye===0?ie:o(ie,ye);he.allBuffers=G.allBuffers,l(V,G,!0,G.length,he,"",fe),s(G)}else{do{let{chunk:fe,encoding:he,callback:nt}=ie[ye];ie[ye++]=null;let ce=re?1:fe.length;l(V,G,!1,ce,fe,he,nt)}while(ye<ie.length&&!G.writing);ye===ie.length?s(G):ye>256?(ie.splice(0,ye),G.bufferedIndex=0):G.bufferedIndex=ye}G.bufferProcessing=!1}h.prototype._write=function(V,G,ie){if((this||Ot)._writev)this._writev([{chunk:V,encoding:G}],ie);else throw new L("_write()")},h.prototype._writev=null,h.prototype.end=function(V,G,ie){let me=(this||Ot)._writableState;typeof V=="function"?(ie=V,V=null,G=null):typeof G=="function"&&(ie=G,G=null);let re;if(V!=null){let ae=c(this||Ot,V,G);ae instanceof f&&(re=ae)}return me.corked&&(me.corked=1,this.uncork()),re||(!me.errored&&!me.ending?(me.ending=!0,O(this||Ot,me,!0),me.ended=!0):me.finished?re=new Q("end"):me.destroyed&&(re=new W("end"))),typeof ie=="function"&&(re||me.finished?a.nextTick(ie,re):me[r].push(ie)),this||Ot};function F(V){return V.ending&&!V.destroyed&&V.constructed&&V.length===0&&!V.errored&&V.buffered.length===0&&!V.finished&&!V.writing&&!V.errorEmitted&&!V.closeEmitted}function ee(V,G){let ie=!1;function me(re){if(ie){p(V,re??D());return}if(ie=!0,G.pendingcb--,re){let ae=G[r].splice(0);for(let ye=0;ye<ae.length;ye++)ae[ye](re);p(V,re,G.sync)}else F(G)&&(G.prefinished=!0,V.emit("prefinish"),G.pendingcb++,a.nextTick(U,V,G))}G.sync=!0,G.pendingcb++;try{V._final(me)}catch(re){me(re)}G.sync=!1}function te(V,G){!G.prefinished&&!G.finalCalled&&(typeof V._final=="function"&&!G.destroyed?(G.finalCalled=!0,ee(V,G)):(G.prefinished=!0,V.emit("prefinish")))}function O(V,G,ie){F(G)&&(te(V,G),G.pendingcb===0&&(ie?(G.pendingcb++,a.nextTick((me,re)=>{F(re)?U(me,re):re.pendingcb--},V,G)):F(G)&&(G.pendingcb++,U(V,G))))}function U(V,G){G.pendingcb--,G.finished=!0;let ie=G[r].splice(0);for(let me=0;me<ie.length;me++)ie[me]();if(V.emit("finish"),G.autoDestroy){let me=V._readableState;(!me||me.autoDestroy&&(me.endEmitted||me.readable===!1))&&V.destroy()}}v(h.prototype,{closed:{__proto__:null,get(){return(this||Ot)._writableState?(this||Ot)._writableState.closed:!1}},destroyed:{__proto__:null,get(){return(this||Ot)._writableState?(this||Ot)._writableState.destroyed:!1},set(V){(this||Ot)._writableState&&((this||Ot)._writableState.destroyed=V)}},writable:{__proto__:null,get(){let V=(this||Ot)._writableState;return!!V&&V.writable!==!1&&!V.destroyed&&!V.errored&&!V.ending&&!V.ended},set(V){(this||Ot)._writableState&&((this||Ot)._writableState.writable=!!V)}},writableFinished:{__proto__:null,get(){return(this||Ot)._writableState?(this||Ot)._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return(this||Ot)._writableState?(this||Ot)._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return(this||Ot)._writableState&&(this||Ot)._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return(this||Ot)._writableState?(this||Ot)._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let V=(this||Ot)._writableState;return V?!V.destroyed&&!V.ending&&V.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return(this||Ot)._writableState&&(this||Ot)._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return(this||Ot)._writableState?(this||Ot)._writableState.corked:0}},writableLength:{__proto__:null,get(){return(this||Ot)._writableState&&(this||Ot)._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return(this||Ot)._writableState?(this||Ot)._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!((this||Ot)._writableState.writable!==!1&&((this||Ot)._writableState.destroyed||(this||Ot)._writableState.errored)&&!(this||Ot)._writableState.finished)}}});let oe=E.destroy;h.prototype.destroy=function(V,G){let ie=(this||Ot)._writableState;return!ie.destroyed&&(ie.bufferedIndex<ie.buffered.length||ie[r].length)&&a.nextTick(k,ie),oe.call(this||Ot,V,G),this||Ot},h.prototype._undestroy=E.undestroy,h.prototype._destroy=function(V,G){G(V)},h.prototype[g.captureRejectionSymbol]=function(V){this.destroy(V)};let Y;function j(){return Y===void 0&&(Y={}),Y}return h.fromWeb=function(V,G){return j().newStreamWritableFromWritableStream(V,G)},h.toWeb=function(V){return j().newWritableStreamFromStreamWritable(V)},ZS}var GS={},zV=!1;function h2e(){if(zV)return GS;zV=!0;let a=s0,o=xh(),{isReadable:f,isWritable:d,isIterable:n,isNodeStream:v,isReadableNodeStream:b,isWritableNodeStream:y,isDuplexNodeStream:M,isReadableStream:w,isWritableStream:g}=f0(),_=Ah(),{AbortError:x,codes:{ERR_INVALID_ARG_TYPE:E,ERR_INVALID_RETURN_VALUE:R}}=xa(),{destroyer:T}=jd(),N=o0(),P=am(),L=dE(),{createDeferredPromise:D}=fa(),Z=sJ(),W=globalThis.Blob||o.Blob,Q=typeof W<"u"?function(i){return i instanceof W}:function(i){return!1},K=globalThis.AbortController||vp().AbortController,{FunctionPrototypeCall:z}=Vi();class X extends N{constructor(i){super(i),i?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),i?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}GS=function r(i,s){if(M(i))return i;if(b(i))return e({readable:i});if(y(i))return e({writable:i});if(v(i))return e({writable:!1,readable:!1});if(w(i))return e({readable:P.fromWeb(i)});if(g(i))return e({writable:L.fromWeb(i)});if(typeof i=="function"){let{value:c,write:m,final:l,destroy:t}=p(i);if(n(c))return Z(X,c,{objectMode:!0,write:m,final:l,destroy:t});let u=c?.then;if(typeof u=="function"){let S,B=z(u,c,k=>{if(k!=null)throw new R("nully","body",k)},k=>{T(S,k)});return S=new X({objectMode:!0,readable:!1,write:m,final(k){l(async()=>{try{await B,a.nextTick(k,null)}catch(q){a.nextTick(k,q)}})},destroy:t})}throw new R("Iterable, AsyncIterable or AsyncFunction",s,c)}if(Q(i))return r(i.arrayBuffer());if(n(i))return Z(X,i,{objectMode:!0,writable:!1});if(w(i?.readable)&&g(i?.writable))return X.fromWeb(i);if(typeof i?.writable=="object"||typeof i?.readable=="object"){let c=i!=null&&i.readable?b(i?.readable)?i?.readable:r(i.readable):void 0,m=i!=null&&i.writable?y(i?.writable)?i?.writable:r(i.writable):void 0;return e({readable:c,writable:m})}let h=i?.then;if(typeof h=="function"){let c;return z(h,i,m=>{m!=null&&c.push(m),c.push(null)},m=>{T(c,m)}),c=new X({objectMode:!0,writable:!1,read(){}})}throw new E(s,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],i)};function p(r){let{promise:i,resolve:s}=D(),h=new K,c=h.signal;return{value:r(async function*(){for(;;){let l=i;i=null;let{chunk:t,done:u,cb:S}=await l;if(a.nextTick(S),u)return;if(c.aborted)throw new x(void 0,{cause:c.reason});({promise:i,resolve:s}=D()),yield t}}(),{signal:c}),write(l,t,u){let S=s;s=null,S({chunk:l,done:!1,cb:u})},final(l){let t=s;s=null,t({done:!0,cb:l})},destroy(l,t){h.abort(),t(l)}}}function e(r){let i=r.readable&&typeof r.readable.read!="function"?P.wrap(r.readable):r.readable,s=r.writable,h=!!f(i),c=!!d(s),m,l,t,u,S;function B(k){let q=u;u=null,q?q(k):k&&S.destroy(k)}return S=new X({readableObjectMode:!!(i!=null&&i.readableObjectMode),writableObjectMode:!!(s!=null&&s.writableObjectMode),readable:h,writable:c}),c&&(_(s,k=>{c=!1,k&&T(i,k),B(k)}),S._write=function(k,q,F){s.write(k,q)?F():m=F},S._final=function(k){s.end(),l=k},s.on("drain",function(){if(m){let k=m;m=null,k()}}),s.on("finish",function(){if(l){let k=l;l=null,k()}})),h&&(_(i,k=>{h=!1,k&&T(i,k),B(k)}),i.on("readable",function(){if(t){let k=t;t=null,k()}}),i.on("end",function(){S.push(null)}),S._read=function(){for(;;){let k=i.read();if(k===null){t=S._read;return}if(!S.push(k))return}}),S._destroy=function(k,q){!k&&u!==null&&(k=new x),t=null,m=null,l=null,u===null?q(k):(u=q,T(s,k),T(i,k))},S}return GS}var VS={},HV=!1;function o0(){if(HV)return VS;HV=!0;let{ObjectDefineProperties:a,ObjectGetOwnPropertyDescriptor:o,ObjectKeys:f,ObjectSetPrototypeOf:d}=Vi();VS=b;let n=am(),v=dE();d(b.prototype,n.prototype),d(b,n);{let g=f(v.prototype);for(let _=0;_<g.length;_++){let x=g[_];b.prototype[x]||(b.prototype[x]=v.prototype[x])}}function b(g){if(!(this instanceof b))return new b(g);n.call(this,g),v.call(this,g),g?(this.allowHalfOpen=g.allowHalfOpen!==!1,g.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),g.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}a(b.prototype,{writable:{__proto__:null,...o(v.prototype,"writable")},writableHighWaterMark:{__proto__:null,...o(v.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...o(v.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...o(v.prototype,"writableBuffer")},writableLength:{__proto__:null,...o(v.prototype,"writableLength")},writableFinished:{__proto__:null,...o(v.prototype,"writableFinished")},writableCorked:{__proto__:null,...o(v.prototype,"writableCorked")},writableEnded:{__proto__:null,...o(v.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...o(v.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(g){this._readableState&&this._writableState&&(this._readableState.destroyed=g,this._writableState.destroyed=g)}}});let y;function M(){return y===void 0&&(y={}),y}b.fromWeb=function(g,_){return M().newStreamDuplexFromReadableWritablePair(g,_)},b.toWeb=function(g){return M().newReadableWritablePairFromDuplex(g)};let w;return b.from=function(g){return w||(w=h2e()),w(g,"body")},VS}var JS={},KV=!1;function fJ(){if(KV)return JS;KV=!0;let{ObjectSetPrototypeOf:a,Symbol:o}=Vi();JS=b;let{ERR_METHOD_NOT_IMPLEMENTED:f}=xa().codes,d=o0(),{getHighWaterMark:n}=nm();a(b.prototype,d.prototype),a(b,d);let v=o("kCallback");function b(w){if(!(this instanceof b))return new b(w);let g=w?n(this,w,"readableHighWaterMark",!0):null;g===0&&(w={...w,highWaterMark:null,readableHighWaterMark:g,writableHighWaterMark:w.writableHighWaterMark||0}),d.call(this,w),this._readableState.sync=!1,this[v]=null,w&&(typeof w.transform=="function"&&(this._transform=w.transform),typeof w.flush=="function"&&(this._flush=w.flush)),this.on("prefinish",M)}function y(w){typeof this._flush=="function"&&!this.destroyed?this._flush((g,_)=>{if(g){w?w(g):this.destroy(g);return}_!=null&&this.push(_),this.push(null),w&&w()}):(this.push(null),w&&w())}function M(){this._final!==y&&y.call(this)}return b.prototype._final=y,b.prototype._transform=function(w,g,_){throw new f("_transform()")},b.prototype._write=function(w,g,_){let x=this._readableState,E=this._writableState,R=x.length;this._transform(w,g,(T,N)=>{if(T){_(T);return}N!=null&&this.push(N),E.ended||R===x.length||x.length<x.highWaterMark?_():this[v]=_})},b.prototype._read=function(){if(this[v]){let w=this[v];this[v]=null,w()}},JS}var YS={},jV=!1;function hJ(){if(jV)return YS;jV=!0;let{ObjectSetPrototypeOf:a}=Vi();YS=f;let o=fJ();a(f.prototype,o.prototype),a(f,o);function f(d){if(!(this instanceof f))return new f(d);o.call(this,d)}return f.prototype._transform=function(d,n,v){v(null,d)},YS}var XS={},WV=!1;function cE(){if(WV)return XS;WV=!0;let a=s0,{ArrayIsArray:o,Promise:f,SymbolAsyncIterator:d,SymbolDispose:n}=Vi(),v=Ah(),{once:b}=fa(),y=jd(),M=o0(),{aggregateTwoErrors:w,codes:{ERR_INVALID_ARG_TYPE:g,ERR_INVALID_RETURN_VALUE:_,ERR_MISSING_ARGS:x,ERR_STREAM_DESTROYED:E,ERR_STREAM_PREMATURE_CLOSE:R},AbortError:T}=xa(),{validateFunction:N,validateAbortSignal:P}=mp(),{isIterable:L,isReadable:D,isReadableNodeStream:Z,isNodeStream:W,isTransformStream:Q,isWebStream:K,isReadableStream:z,isReadableFinished:X}=f0(),p=globalThis.AbortController||vp().AbortController,e,r,i;function s(k,q,F){let ee=!1;k.on("close",()=>{ee=!0});let te=v(k,{readable:q,writable:F},O=>{ee=!O});return{destroy:O=>{ee||(ee=!0,y.destroyer(k,O||new E("pipe")))},cleanup:te}}function h(k){return N(k[k.length-1],"streams[stream.length - 1]"),k.pop()}function c(k){if(L(k))return k;if(Z(k))return m(k);throw new g("val",["Readable","Iterable","AsyncIterable"],k)}async function*m(k){r||(r=am()),yield*r.prototype[d].call(k)}async function l(k,q,F,{end:ee}){let te,O=null,U=j=>{if(j&&(te=j),O){let V=O;O=null,V()}},oe=()=>new f((j,V)=>{te?V(te):O=()=>{te?V(te):j()}});q.on("drain",U);let Y=v(q,{readable:!1},U);try{q.writableNeedDrain&&await oe();for await(let j of k)q.write(j)||await oe();ee&&(q.end(),await oe()),F()}catch(j){F(te!==j?w(te,j):j)}finally{Y(),q.off("drain",U)}}async function t(k,q,F,{end:ee}){Q(q)&&(q=q.writable);let te=q.getWriter();try{for await(let O of k)await te.ready,te.write(O).catch(()=>{});await te.ready,ee&&await te.close(),F()}catch(O){try{await te.abort(O),F(O)}catch(U){F(U)}}}function u(...k){return S(k,b(h(k)))}function S(k,q,F){if(k.length===1&&o(k[0])&&(k=k[0]),k.length<2)throw new x("streams");let ee=new p,te=ee.signal,O=F?.signal,U=[];P(O,"options.signal");function oe(){re(new T)}i=i||fa().addAbortListener;let Y;O&&(Y=i(O,oe));let j,V,G=[],ie=0;function me(he){re(he,--ie===0)}function re(he,nt){var ce;if(he&&(!j||j.code==="ERR_STREAM_PREMATURE_CLOSE")&&(j=he),!(!j&&!nt)){for(;G.length;)G.shift()(j);(ce=Y)===null||ce===void 0||ce[n](),ee.abort(),nt&&(j||U.forEach(be=>be()),a.nextTick(q,j,V))}}let ae;for(let he=0;he<k.length;he++){let nt=k[he],ce=he<k.length-1,be=he>0,ut=ce||F?.end!==!1,$=he===k.length-1;if(W(nt)){let A=function(I){I&&I.name!=="AbortError"&&I.code!=="ERR_STREAM_PREMATURE_CLOSE"&&me(I)};if(ut){let{destroy:I,cleanup:C}=s(nt,ce,be);G.push(I),D(nt)&&$&&U.push(C)}nt.on("error",A),D(nt)&&$&&U.push(()=>{nt.removeListener("error",A)})}if(he===0)if(typeof nt=="function"){if(ae=nt({signal:te}),!L(ae))throw new _("Iterable, AsyncIterable or Stream","source",ae)}else L(nt)||Z(nt)||Q(nt)?ae=nt:ae=M.from(nt);else if(typeof nt=="function"){if(Q(ae)){var ye;ae=c((ye=ae)===null||ye===void 0?void 0:ye.readable)}else ae=c(ae);if(ae=nt(ae,{signal:te}),ce){if(!L(ae,!0))throw new _("AsyncIterable",`transform[${he-1}]`,ae)}else{var fe;e||(e=hJ());let A=new e({objectMode:!0}),I=(fe=ae)===null||fe===void 0?void 0:fe.then;if(typeof I=="function")ie++,I.call(ae,ne=>{V=ne,ne!=null&&A.write(ne),ut&&A.end(),a.nextTick(me)},ne=>{A.destroy(ne),a.nextTick(me,ne)});else if(L(ae,!0))ie++,l(ae,A,me,{end:ut});else if(z(ae)||Q(ae)){let ne=ae.readable||ae;ie++,l(ne,A,me,{end:ut})}else throw new _("AsyncIterable or Promise","destination",ae);ae=A;let{destroy:C,cleanup:H}=s(ae,!1,!0);G.push(C),$&&U.push(H)}}else if(W(nt)){if(Z(ae)){ie+=2;let A=B(ae,nt,me,{end:ut});D(nt)&&$&&U.push(A)}else if(Q(ae)||z(ae)){let A=ae.readable||ae;ie++,l(A,nt,me,{end:ut})}else if(L(ae))ie++,l(ae,nt,me,{end:ut});else throw new g("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],ae);ae=nt}else if(K(nt)){if(Z(ae))ie++,t(c(ae),nt,me,{end:ut});else if(z(ae)||L(ae))ie++,t(ae,nt,me,{end:ut});else if(Q(ae))ie++,t(ae.readable,nt,me,{end:ut});else throw new g("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],ae);ae=nt}else ae=M.from(nt)}return(te!=null&&te.aborted||O!=null&&O.aborted)&&a.nextTick(oe),ae}function B(k,q,F,{end:ee}){let te=!1;if(q.on("close",()=>{te||F(new R)}),k.pipe(q,{end:!1}),ee){let O=function(){te=!0,q.end()};X(k)?a.nextTick(O):k.once("end",O)}else F();return v(k,{readable:!0,writable:!1},O=>{let U=k._readableState;O&&O.code==="ERR_STREAM_PREMATURE_CLOSE"&&U&&U.ended&&!U.errored&&!U.errorEmitted?k.once("end",F).once("error",F):F(O)}),v(q,{readable:!1,writable:!0},F)}return XS={pipelineImpl:S,pipeline:u},XS}var QS={},ZV=!1;function uJ(){if(ZV)return QS;ZV=!0;let{pipeline:a}=cE(),o=o0(),{destroyer:f}=jd(),{isNodeStream:d,isReadable:n,isWritable:v,isWebStream:b,isTransformStream:y,isWritableStream:M,isReadableStream:w}=f0(),{AbortError:g,codes:{ERR_INVALID_ARG_VALUE:_,ERR_MISSING_ARGS:x}}=xa(),E=Ah();return QS=function(...T){if(T.length===0)throw new x("streams");if(T.length===1)return o.from(T[0]);let N=[...T];if(typeof T[0]=="function"&&(T[0]=o.from(T[0])),typeof T[T.length-1]=="function"){let e=T.length-1;T[e]=o.from(T[e])}for(let e=0;e<T.length;++e)if(!(!d(T[e])&&!b(T[e]))){if(e<T.length-1&&!(n(T[e])||w(T[e])||y(T[e])))throw new _(`streams[${e}]`,N[e],"must be readable");if(e>0&&!(v(T[e])||M(T[e])||y(T[e])))throw new _(`streams[${e}]`,N[e],"must be writable")}let P,L,D,Z,W;function Q(e){let r=Z;Z=null,r?r(e):e?W.destroy(e):!p&&!X&&W.destroy()}let K=T[0],z=a(T,Q),X=!!(v(K)||M(K)||y(K)),p=!!(n(z)||w(z)||y(z));if(W=new o({writableObjectMode:!!(K!=null&&K.writableObjectMode),readableObjectMode:!!(z!=null&&z.readableObjectMode),writable:X,readable:p}),X){if(d(K))W._write=function(r,i,s){K.write(r,i)?s():P=s},W._final=function(r){K.end(),L=r},K.on("drain",function(){if(P){let r=P;P=null,r()}});else if(b(K)){let i=(y(K)?K.writable:K).getWriter();W._write=async function(s,h,c){try{await i.ready,i.write(s).catch(()=>{}),c()}catch(m){c(m)}},W._final=async function(s){try{await i.ready,i.close().catch(()=>{}),L=s}catch(h){s(h)}}}let e=y(z)?z.readable:z;E(e,()=>{if(L){let r=L;L=null,r()}})}if(p){if(d(z))z.on("readable",function(){if(D){let e=D;D=null,e()}}),z.on("end",function(){W.push(null)}),W._read=function(){for(;;){let e=z.read();if(e===null){D=W._read;return}if(!W.push(e))return}};else if(b(z)){let r=(y(z)?z.readable:z).getReader();W._read=async function(){for(;;)try{let{value:i,done:s}=await r.read();if(!W.push(i))return;if(s){W.push(null);return}}catch{return}}}}return W._destroy=function(e,r){!e&&Z!==null&&(e=new g),D=null,P=null,L=null,Z===null?r(e):(Z=r,d(z)&&f(z,e))},W},QS}var em={},GV=!1;function u2e(){if(GV)return em;GV=!0;let a=globalThis.AbortController||vp().AbortController,{codes:{ERR_INVALID_ARG_VALUE:o,ERR_INVALID_ARG_TYPE:f,ERR_MISSING_ARGS:d,ERR_OUT_OF_RANGE:n},AbortError:v}=xa(),{validateAbortSignal:b,validateInteger:y,validateObject:M}=mp(),w=Vi().Symbol("kWeak"),g=Vi().Symbol("kResistStopPropagation"),{finished:_}=Ah(),x=uJ(),{addAbortSignalNoValidate:E}=im(),{isWritable:R,isNodeStream:T}=f0(),{deprecate:N}=fa(),{ArrayPrototypePush:P,Boolean:L,MathFloor:D,Number:Z,NumberIsNaN:W,Promise:Q,PromiseReject:K,PromiseResolve:z,PromisePrototypeThen:X,Symbol:p}=Vi(),e=p("kEmpty"),r=p("kEof");function i(O,U){if(U!=null&&M(U,"options"),U?.signal!=null&&b(U.signal,"options.signal"),T(O)&&!R(O))throw new o("stream",O,"must be writable");let oe=x(this,O);return U!=null&&U.signal&&E(U.signal,oe),oe}function s(O,U){if(typeof O!="function")throw new f("fn",["Function","AsyncFunction"],O);U!=null&&M(U,"options"),U?.signal!=null&&b(U.signal,"options.signal");let oe=1;U?.concurrency!=null&&(oe=D(U.concurrency));let Y=oe-1;return U?.highWaterMark!=null&&(Y=D(U.highWaterMark)),y(oe,"options.concurrency",1),y(Y,"options.highWaterMark",0),Y+=oe,async function*(){let V=fa().AbortSignalAny([U?.signal].filter(L)),G=this,ie=[],me={signal:V},re,ae,ye=!1,fe=0;function he(){ye=!0,nt()}function nt(){fe-=1,ce()}function ce(){ae&&!ye&&fe<oe&&ie.length<Y&&(ae(),ae=null)}async function be(){try{for await(let ut of G){if(ye)return;if(V.aborted)throw new v;try{if(ut=O(ut,me),ut===e)continue;ut=z(ut)}catch($){ut=K($)}fe+=1,X(ut,nt,he),ie.push(ut),re&&(re(),re=null),!ye&&(ie.length>=Y||fe>=oe)&&await new Q($=>{ae=$})}ie.push(r)}catch(ut){let $=K(ut);X($,nt,he),ie.push($)}finally{ye=!0,re&&(re(),re=null)}}be();try{for(;;){for(;ie.length>0;){let ut=await ie[0];if(ut===r)return;if(V.aborted)throw new v;ut!==e&&(yield ut),ie.shift(),ce()}await new Q(ut=>{re=ut})}}finally{ye=!0,ae&&(ae(),ae=null)}}.call(this)}function h(O=void 0){return O!=null&&M(O,"options"),O?.signal!=null&&b(O.signal,"options.signal"),async function*(){let oe=0;for await(let j of this){var Y;if(O!=null&&(Y=O.signal)!==null&&Y!==void 0&&Y.aborted)throw new v({cause:O.signal.reason});yield[oe++,j]}}.call(this)}async function c(O,U=void 0){for await(let oe of u.call(this,O,U))return!0;return!1}async function m(O,U=void 0){if(typeof O!="function")throw new f("fn",["Function","AsyncFunction"],O);return!await c.call(this,async(...oe)=>!await O(...oe),U)}async function l(O,U){for await(let oe of u.call(this,O,U))return oe}async function t(O,U){if(typeof O!="function")throw new f("fn",["Function","AsyncFunction"],O);async function oe(Y,j){return await O(Y,j),e}for await(let Y of s.call(this,oe,U));}function u(O,U){if(typeof O!="function")throw new f("fn",["Function","AsyncFunction"],O);async function oe(Y,j){return await O(Y,j)?Y:e}return s.call(this,oe,U)}class S extends d{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function B(O,U,oe){var Y;if(typeof O!="function")throw new f("reducer",["Function","AsyncFunction"],O);oe!=null&&M(oe,"options"),oe?.signal!=null&&b(oe.signal,"options.signal");let j=arguments.length>1;if(oe!=null&&(Y=oe.signal)!==null&&Y!==void 0&&Y.aborted){let re=new v(void 0,{cause:oe.signal.reason});throw this.once("error",()=>{}),await _(this.destroy(re)),re}let V=new a,G=V.signal;if(oe!=null&&oe.signal){let re={once:!0,[w]:this,[g]:!0};oe.signal.addEventListener("abort",()=>V.abort(),re)}let ie=!1;try{for await(let re of this){var me;if(ie=!0,oe!=null&&(me=oe.signal)!==null&&me!==void 0&&me.aborted)throw new v;j?U=await O(U,re,{signal:G}):(U=re,j=!0)}if(!ie&&!j)throw new S}finally{V.abort()}return U}async function k(O){O!=null&&M(O,"options"),O?.signal!=null&&b(O.signal,"options.signal");let U=[];for await(let Y of this){var oe;if(O!=null&&(oe=O.signal)!==null&&oe!==void 0&&oe.aborted)throw new v(void 0,{cause:O.signal.reason});P(U,Y)}return U}function q(O,U){let oe=s.call(this,O,U);return async function*(){for await(let j of oe)yield*j}.call(this)}function F(O){if(O=Z(O),W(O))return 0;if(O<0)throw new n("number",">= 0",O);return O}function ee(O,U=void 0){return U!=null&&M(U,"options"),U?.signal!=null&&b(U.signal,"options.signal"),O=F(O),async function*(){var Y;if(U!=null&&(Y=U.signal)!==null&&Y!==void 0&&Y.aborted)throw new v;for await(let V of this){var j;if(U!=null&&(j=U.signal)!==null&&j!==void 0&&j.aborted)throw new v;O--<=0&&(yield V)}}.call(this)}function te(O,U=void 0){return U!=null&&M(U,"options"),U?.signal!=null&&b(U.signal,"options.signal"),O=F(O),async function*(){var Y;if(U!=null&&(Y=U.signal)!==null&&Y!==void 0&&Y.aborted)throw new v;for await(let V of this){var j;if(U!=null&&(j=U.signal)!==null&&j!==void 0&&j.aborted)throw new v;if(O-- >0&&(yield V),O<=0)return}}.call(this)}return em.streamReturningOperators={asIndexedPairs:N(h,"readable.asIndexedPairs will be removed in a future version."),drop:ee,filter:u,flatMap:q,map:s,take:te,compose:i},em.promiseReturningOperators={every:m,forEach:t,reduce:B,toArray:k,some:c,find:l},em}var eE={},VV=!1;function lJ(){if(VV)return eE;VV=!0;let{ArrayPrototypePop:a,Promise:o}=Vi(),{isIterable:f,isNodeStream:d,isWebStream:n}=f0(),{pipelineImpl:v}=cE(),{finished:b}=Ah();dJ();function y(...M){return new o((w,g)=>{let _,x,E=M[M.length-1];if(E&&typeof E=="object"&&!d(E)&&!f(E)&&!n(E)){let R=a(M);_=R.signal,x=R.end}v(M,(R,T)=>{R?g(R):w(T)},{signal:_,end:x})})}return eE={finished:b,pipeline:y},eE}var tE={},JV=!1,YV=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function dJ(){if(JV)return tE;JV=!0;let{Buffer:a}=xh(),{ObjectDefineProperty:o,ObjectKeys:f,ReflectApply:d}=Vi(),{promisify:{custom:n}}=fa(),{streamReturningOperators:v,promiseReturningOperators:b}=u2e(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:y}}=xa(),M=uJ(),{setDefaultHighWaterMark:w,getDefaultHighWaterMark:g}=nm(),{pipeline:_}=cE(),{destroyer:x}=jd(),E=Ah(),R=lJ(),T=f0(),N=tE=lE().Stream;N.isDestroyed=T.isDestroyed,N.isDisturbed=T.isDisturbed,N.isErrored=T.isErrored,N.isReadable=T.isReadable,N.isWritable=T.isWritable,N.Readable=am();for(let L of f(v)){let D=function(...W){if(new.target)throw y();return N.Readable.from(d(Z,this||YV,W))},Z=v[L];o(D,"name",{__proto__:null,value:Z.name}),o(D,"length",{__proto__:null,value:Z.length}),o(N.Readable.prototype,L,{__proto__:null,value:D,enumerable:!1,configurable:!0,writable:!0})}for(let L of f(b)){let D=function(...W){if(new.target)throw y();return d(Z,this||YV,W)},Z=b[L];o(D,"name",{__proto__:null,value:Z.name}),o(D,"length",{__proto__:null,value:Z.length}),o(N.Readable.prototype,L,{__proto__:null,value:D,enumerable:!1,configurable:!0,writable:!0})}N.Writable=dE(),N.Duplex=o0(),N.Transform=fJ(),N.PassThrough=hJ(),N.pipeline=_;let{addAbortSignal:P}=im();return N.addAbortSignal=P,N.finished=E,N.destroy=x,N.compose=M,N.setDefaultHighWaterMark=w,N.getDefaultHighWaterMark=g,o(N,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return R}}),o(_,n,{__proto__:null,enumerable:!0,get(){return R.pipeline}}),o(E,n,{__proto__:null,enumerable:!0,get(){return R.finished}}),N.Stream=N,N._isUint8Array=function(D){return D instanceof Uint8Array},N._uint8ArrayToBuffer=function(D){return a.from(D.buffer,D.byteOffset,D.byteLength)},tE}var Gi={},XV=!1;function l2e(){if(XV)return Gi;XV=!0;let a=dJ(),o=lJ(),f=a.Readable.destroy;return Gi=a.Readable,Gi._uint8ArrayToBuffer=a._uint8ArrayToBuffer,Gi._isUint8Array=a._isUint8Array,Gi.isDisturbed=a.isDisturbed,Gi.isErrored=a.isErrored,Gi.isReadable=a.isReadable,Gi.Readable=a.Readable,Gi.Writable=a.Writable,Gi.Duplex=a.Duplex,Gi.Transform=a.Transform,Gi.PassThrough=a.PassThrough,Gi.addAbortSignal=a.addAbortSignal,Gi.finished=a.finished,Gi.destroy=a.destroy,Gi.destroy=f,Gi.pipeline=a.pipeline,Gi.compose=a.compose,Object.defineProperty(a,"promises",{configurable:!0,enumerable:!0,get(){return o}}),Gi.Stream=a.Stream,Gi.default=Gi,Gi}var Si=l2e();Si._uint8ArrayToBuffer;Si._isUint8Array;Si.isDisturbed;Si.isErrored;Si.isReadable;Si.Readable;Si.Writable;Si.Duplex;Si.Transform;Si.PassThrough;Si.addAbortSignal;Si.finished;Si.destroy;Si.pipeline;Si.compose;Si.Stream;var QV=Si.Readable;QV.wrap=function(a,o){return o=Object.assign({objectMode:a.readableObjectMode!=null||a.objectMode!=null||!0},o),o.destroy=function(f,d){a.destroy(f),d(f)},new QV(o).wrap(a)};var nke=Si.Writable,ake=Si.Duplex,cJ=Si.Transform,pJ=Si.PassThrough,oke=Si.finished,ske=Si.pipeline,fke=Si.Stream,hke={finished:AV(Si.finished),pipeline:AV(Si.pipeline)};var dl=Ae(Ja(),1);async function vJ(a){let o=bJ(a),f=(await o.next()).value;f=await ha(o,f,32);let d=Zi(f.subarray(0,32));f=f.subarray(32);let n=64*d;f=await ha(o,f,n);let v=new Array(d);for(let M=0;M<n;M+=64)v[M/64]=[Zi(f.subarray(M,M+32)),(0,dl.default)(at.from(f.subarray(M+32,M+64)))];f=f.subarray(n);let b=32+n,y=[];for(let[M,w]of v){f=await ha(o,f,Wb),f=await ha(o,f,2);let g=Zi(f.subarray(0,2));f=f.subarray(2);let{sigLength:_,pubLength:x,sigName:E}=Ir[g];f=await ha(o,f,_);let R=f.subarray(0,_);f=f.subarray(_),f=await ha(o,f,x);let T=f.subarray(0,x);f=f.subarray(x),f=await ha(o,f,1);let N=f[0]===1;N&&(f=await ha(o,f,33));let P=N?f.subarray(1,33):at.allocUnsafe(0);f=f.subarray(N?33:1),f=await ha(o,f,1);let L=f[0]===1;L&&(f=await ha(o,f,33));let D=L?f.subarray(1,33):at.allocUnsafe(0);f=f.subarray(L?33:1),f=await ha(o,f,8);let Z=Zi(f.subarray(0,8));f=f.subarray(8),f=await ha(o,f,8);let W=Zi(f.subarray(0,8));f=f.subarray(8),f=await ha(o,f,W);let Q=f.subarray(0,W),K=Z!==0&&W!==0?zd(at.from(Q)):[];if(K.length!==Z)throw new Error("Tags lengths don't match");f=f.subarray(W);let z=new cJ;z._transform=function(i,s,h){this.push(i),h()};let X=X0([(0,fi.stringToBuffer)("dataitem"),(0,fi.stringToBuffer)("1"),(0,fi.stringToBuffer)(g.toString()),T,P,D,Q,z]),p=2+_+x+(N?33:1)+(L?33:1)+16+W,e=M-p;if(f.byteLength>e)z.write(f.subarray(0,e)),f=f.subarray(e);else{let i=f.byteLength;for(z.write(f);e>i;){if(f=(await o.next()).value,!f)throw new Error(`Not enough data bytes expected: ${e} received: ${i}`);i+=f.byteLength,i>e?z.write(f.subarray(0,f.byteLength-(i-e))):z.write(f)}f=f.subarray(f.byteLength-(i-e))}if(z.end(),w!==(0,dl.default)(Y0("sha256").update(R).digest()))throw new Error("ID doesn't match signature");if(!await ip[g].verify(T,await X,R))throw new Error("Invalid signature");y.push({id:w,sigName:E,signature:(0,dl.default)(at.from(R)),target:(0,dl.default)(at.from(P)),anchor:(0,dl.default)(at.from(D)),owner:(0,dl.default)(at.from(T)),tags:K,dataOffset:b+p,dataSize:e}),b+=p+e}return y}async function d2e(a,o,f,d){let n=fp("",f,d),v=new pJ,b=[(0,fi.stringToBuffer)("dataitem"),(0,fi.stringToBuffer)("1"),(0,fi.stringToBuffer)(n.signatureType.toString()),n.rawOwner,n.rawTarget,n.rawAnchor,n.rawTags,a],y=await X0(b),M=at.from(await f.sign(y));return n.setSignature(M),v.write(n.getRaw()),o.pipe(v)}async function ha(a,o,f){if(o.byteLength>=f)return o;let{done:d,value:n}=await a.next();if(d&&!n)throw new Error("Invalid buffer");return ha(a,at.concat([at.from(o),at.from(n)]),f)}async function*bJ(a){for await(let o of a)yield o}var c2e=vJ,p2e={readBytes:ha,getReader:bJ};var v2e={...nS,stream:pE};globalThis.arbundles??=v2e;function cl(a){return async o=>{if(Ga(o))return o;if(!a.arweave)throw new Error("Must initialize with Arweave in order to create transactions");try{return await b2e(a,{data:o})}catch(f){throw new Error(f.message??"Error resolving transaction")}}}async function b2e(a,o){let f=null,d=null,n=null;if(typeof o.data=="string"&&(f=at.from(IE(o.data),"base64"),d=RE(o.data),n=TE(f)),o.data instanceof File&&(f=new Uint8Array(await o.data.arrayBuffer()),d=o.data.type,n=o.data.size),f&&d&&n)if(n<Number(cm.dispatchUploadSize))try{let v=await a.arweave.createTransaction({data:f},"use_wallet");return v.addTag(Kr.keys.contentType,d),o.tags&&o.tags.length>0&&o.tags.forEach(y=>v.addTag(y.name,y.value)),(await globalThis.window.arweaveWallet.dispatch(v)).id}catch(v){throw new Error(v.message??"Error dispatching transaction")}else try{let v=await m2e(o.data,{tags:[{name:"Content-Type",value:d},{name:"App-Name",value:"@permaweb/libs"}]},{apiUrl:cm.node1,token:"arweave",chunkSize:5242880,batchSize:3});return console.log(v),console.log("Uploaded dataItem ID:",v.id),v.id}catch(v){throw new Error(v.message??"Error uploading transaction")}else throw new Error("Error preparing transaction data")}async function m2e(a,o,f){let{apiUrl:d,token:n,chunkSize:v,batchSize:b=3}=f,y=new hl(window.arweaveWallet),M=await y.signer.getActivePublicKey();y.publicKey=at.from(M,"base64");let w=new Uint8Array(await a.arrayBuffer()),g=fp(w,y,{...o,anchor:o.anchor||(()=>{let p=new Uint8Array(32);return crypto.getRandomValues(p),btoa(String.fromCharCode(...p)).replace(/\+/g,"-").replace(/\//g,"_").slice(0,32)})()});await g.sign(y);let _=g.getRaw(),x=new Blob([new Uint8Array(_)],{type:"application/octet-stream"}),E={"x-chunking-version":"2"},R=await fetch(`${d}/chunks/${n}/-1/-1`,{headers:E});if(!R.ok)throw new Error(`Failed to get upload ID: ${R.status} ${await R.text()}`);let T=await R.json(),N=T.id;if(v<T.min||v>T.max)throw new Error(`Configured chunkSize ${v} is out of allowed range ${T.min}-${T.max}`);let P=x.size,L=[];for(let p=0;p<P;p+=v)L.push(p);let D=new Set;(T.chunks??[]).forEach(([p])=>D.add(Number(p)));let Z=L.filter(p=>p>0&&!D.has(p)),W=D.has(0)?[]:[0],Q=Z.concat(W),K=p=>new Promise(e=>setTimeout(e,p));for(let p=0;p<Q.length;p+=b){let e=Q.slice(p,p+b);await Promise.all(e.map(async r=>{let s=await x.slice(r,r+v).arrayBuffer(),h=null;for(let c=1;c<=3;c++)try{let m=await fetch(`${d}/chunks/${n}/${N}/${r}`,{method:"POST",headers:{"Content-Type":"application/octet-stream",...E},body:s});if(!m.ok){let l=await m.text();throw m.status===402?new Error(`402 payment required: ${l}`):new Error(`Chunk upload error ${m.status}: ${l}`)}return}catch(m){if(h=m,c<3){await K(1e3*c);continue}}throw h}))}let z={"Content-Type":"application/octet-stream",...E},X=await fetch(`${d}/chunks/${n}/${N}/-1`,{method:"POST",headers:z});if(!X.ok){let p=await X.text();throw new Error(`Finalizing upload failed ${X.status}: ${p}`)}return X.json()}var Gke=Ae(Be(),1);Ie();Re();var y2e={},jke=Ae(Be(),1);Ie();Re();var z$e=Ae(Be(),1);Ie();Re();var s$e=Ae(Be(),1);Ie();Re();function mJ(a){return async(o,f)=>{let d=x2e(o);if(d)throw new Error(d);let n=null;if(o.spawnComments)try{let M=[{name:Kr.keys.onBoot,value:Ci.src.comments},{name:Kr.keys.dateCreated,value:new Date().getTime().toString()}];o.users&&M.push({name:"Auth-Users",value:JSON.stringify(o.users)}),n=await u0(a,{tags:M},f?w=>f(w):void 0),Sa(`Comments ID: ${n}`),await new Promise(w=>setTimeout(w,500))}catch(M){console.error(M)}let v=BE[o.contentType]?.serialize(o.data)??o.data,b={...o};n&&(b.commentsId=n);let y=_2e(b);try{return await u0(a,{tags:y,data:v},f?w=>f(w):void 0)}catch(M){throw new Error(M.message??"Error creating asset")}}}async function M2e(a,o,f){try{let d=Va(await _f(a,{processId:o,path:"asset",fallbackAction:"Info"}));if(f?.useGateway){let n=await ks({gateway:Za.ao,ids:[o],tags:null,owners:null,cursor:null});return{...n?.data?.[0]?wJ(n.data[0]):{},...d}}return{id:o,...d}}catch(d){throw new Error(d.message||"Error fetching atomic asset")}}function gJ(a){return async(o,f)=>await M2e(a,o,f)}async function yJ(a){try{let o=await ks({gateway:Za.arweave,ids:a??null,tags:null,owners:null,cursor:null});return o&&o.data.length?o.data.map(f=>wJ(f)):null}catch(o){throw new Error(o)}}function wJ(a){let o={id:a.node.id,owner:a.node.owner.address};for(let f of a.node.tags){let d=f.name,v=(d.startsWith(`${Kr.keys.bootloader}-`)?d.slice(`${Kr.keys.bootloader}-`.length):d).split("-").map((y,M)=>M===0?y.toLowerCase():y.charAt(0).toUpperCase()+y.slice(1).toLowerCase()).join(""),b;try{b=JSON.parse(f.value)}catch{b=f.value.toString()}o[v]=b}return o}function _2e(a){let o=[{name:Kr.keys.onBoot,value:a.src??Ci.src.asset},{name:Kr.keys.creator,value:a.creator},{name:Kr.keys.assetType,value:a.assetType},{name:Kr.keys.contentType,value:a.contentType},{name:Kr.keys.implements,value:"ANS-110"},{name:Kr.keys.dateCreated,value:new Date().getTime().toString()},qn("Name",a.name),qn("Description",a.description),qn("Topics",JSON.stringify(a.topics)),qn("Ticker","ATOMIC"),qn("Denomination",a.denomination?.toString()??"1"),qn("TotalSupply",a.supply?.toString()??"1"),qn("Transferable",a.transferable?.toString()??"true"),qn("Creator",a.creator)];if(a.metadata)for(let f in a.metadata)o.push(qn(vl(f),a.metadata[f].toString()));return a.users&&o.push({name:"Auth-Users",value:JSON.stringify(a.users)}),a.commentsId&&o.push(qn("Comments",a.commentsId)),a.tags&&a.tags.forEach(f=>o.push(f)),o}function x2e(a){if(typeof a!="object"||a===null)return"The provided arguments are invalid or empty.";let o=["name","description","topics","creator","data","contentType","assetType"];for(let f of o)if(!(f in a))return`Missing field '${f}'`;return typeof a.name!="string"||a.name.trim()===""?"Name is required":typeof a.description!="string"?"The description must be a valid string":!Array.isArray(a.topics)||a.topics.length===0?"Topics are required":typeof a.creator!="string"||a.creator.trim()===""?"Creator is required":a.data===void 0||a.data===null?"Data field is required":typeof a.contentType!="string"||a.contentType.trim()===""?"Content type must be a non-empty string":typeof a.assetType!="string"||a.assetType.trim()===""?"Type must be a non-empty string":"supply"in a&&(typeof a.supply!="number"||a.supply<=0)?"Supply must be a positive number":"denomination"in a&&(typeof a.denomination!="number"||a.denomination<=0)?"Denomination must be a positive number":"transferable"in a&&typeof a.transferable!="boolean"?"Transferable must be a boolean value":"metadata"in a&&typeof a.metadata!="object"?"Metadata must be an object":"tags"in a&&(!Array.isArray(a.tags)||a.tags.some(f=>typeof f!="object"))?"Tags must be an array of objects":"src"in a&&typeof a.src!="string"?"Source must be a valid string":null}var b$e=Ae(Be(),1);Ie();Re();var S2e="eXCtpVbcd_jZ0dmU2PZ8focaKxBGECBQ8wMib7sIVPo",vE="lJovHqM9hwNjHV5JoY9NGWtt0WD-5D4gOqNL2VWW5jk";function MJ(a){return async(o,f)=>{if(!a.signer)throw new Error("No signer provided");let d=cl(a),n=new Date().getTime().toString(),v=[{name:Kr.keys.creator,value:o.creator},{name:Kr.keys.ans110.title,value:Zd(o.title)},{name:Kr.keys.name,value:Zd(o.title)},{name:Kr.keys.ans110.description,value:Zd(o.description)}],b=null,y=null;try{b=o.banner?await d(o.thumbnail):vE,y=o.banner?await d(o.banner):S2e,o.thumbnail&&v.push({name:Kr.keys.thumbnail,value:b}),o.banner&&v.push({name:Kr.keys.banner,value:y})}catch(g){console.error(g)}let M=await fetch(Sp(Ci.src.collection));if(!M.ok)throw new Error("Unable to fetch process src");let w=await M.text();w=w.replace(/'<NAME>'/g,pm(o.title)),w=w.replace(/'<DESCRIPTION>'/g,pm(o.description)),w=w.replace(/<CREATOR>/g,o.creator),w=w.replace(/<THUMBNAIL>/g,b||vE),w=w.replace(/<BANNER>/g,y||vE),w=w.replace(/<DATECREATED>/g,n),w=w.replace(/<LASTUPDATE>/g,n);try{let g=await u0(a,{tags:v},f?_=>f(_):void 0);if(Sa("Sending eval message to collection..."),f&&f("Sending eval message to collection..."),await a.ao.message({process:g,signer:a.signer,tags:[{name:"Action",value:"Eval"}],data:w}),!o.skipRegistry){Sa("Sending collection to registry..."),f&&f("Sending collection to registry...");let _=[{name:"Action",value:"Add-Collection"},{name:"CollectionId",value:g},{name:"Name",value:Zd(o.title)},{name:"Creator",value:o.creator},{name:"DateCreated",value:n}];y&&_.push({name:"Banner",value:y}),b&&_.push({name:"Thumbnail",value:b}),await a.ao.message({process:Ci.collectionRegistry,signer:a.signer,tags:_})}if(!o.skipActivity){Sa("Creating collection activity process..."),f&&f("Creating collection activity process...");let _=[{name:"CollectionId",value:g},{name:"DateCreated",value:n},{name:"UCM-Process",value:"Collection-Activity"},{name:"On-Boot",value:Ci.src.collectionActivity}],x=await u0(a,{tags:_},f?E=>f(E):void 0);Sa("Adding activity to collection process..."),f&&f("Adding activity to collection process..."),await a.ao.message({process:g,signer:a.signer,tags:[{name:"Action",value:"Eval"}],data:`ActivityProcess = '${x}'`})}return g}catch(g){throw new Error(g.message??"Error creating collection")}}}function _J(a){return async o=>await ua(a,{processId:o.creator,action:"Run-Action",tags:[{name:"Forward-To",value:o.collectionId},{name:"Forward-Action",value:"Update-Assets"}],data:{Target:o.collectionId,Action:"Update-Assets",Input:{AssetIds:o.assetIds,UpdateType:o.updateType}}})}function xJ(a){return async o=>{let f=await _f(a,{processId:o,path:"collection",fallbackAction:"Info"});return f?Va(f):null}}function SJ(a){return async o=>{let f=o.creator?"Get-Collections-By-User":"Get-Collections",d=await Ep(a,{processId:Ci.collectionRegistry,action:f,tags:o.creator?[{name:"Creator",value:o.creator}]:null});return d&&d.Collections&&d.Collections.length?d.Collections.map(v=>({id:v.Id,title:v.Name.replace(/\[|\]/g,""),description:v.Description,creator:v.Creator,dateCreated:v.DateCreated,banner:v.Banner,thumbnail:v.Thumbnail})):null}}var _$e=Ae(Be(),1);Ie();Re();function EJ(a){return async o=>{try{if(!o.commentsId)throw new Error("Must provide commentsId");return await ua(a,{processId:o.commentsId,action:"Add-Comment",data:o.content,useRawData:!0})}catch(f){throw new Error(f.message??"Error creating comment")}}}function AJ(a){return async o=>{try{if(!o.commentsId)throw new Error("Must provide commentsId");return Va(await _f(a,{processId:o.commentsId,path:"comments",fallbackAction:"Get-Comments"}))}catch(f){throw new Error(f.message??"Error getting comments")}}}function BJ(a){return async o=>{try{if(!o.commentsId)throw new Error("Must provide commentsId");if(!o.commentId)throw new Error("Must provide commentId");return await ua(a,{processId:o.commentsId,action:"Update-Comment-Status",tags:[{name:"Comment-Id",value:o.commentId},{name:"Status",value:o.status}]})}catch(f){throw new Error(f.message??"Error updating comment status")}}}function RJ(a){return async o=>{try{if(!o.commentsId)throw new Error("Must provide commentsId");if(!o.commentId)throw new Error("Must provide commentId");return await ua(a,{processId:o.commentsId,action:"Remove-Comment",tags:[{name:"Comment-Id",value:o.commentId}]})}catch(f){throw new Error(f.message??"Error removing comment")}}}var q$e=Ae(Be(),1);Ie();Re();var T$e=Ae(Be(),1);Ie();Re();function om(a){return async(o,f)=>{try{let d=[{name:Kr.keys.onBoot,value:Ci.src.zone.id}];return o.tags&&o.tags.length&&o.tags.forEach(v=>d.push(v)),await u0(a,{data:o.data,tags:d},f?v=>f(v):void 0)}catch(d){throw new Error(d.message??"Error creating zone")}}}function sm(a){return async(o,f)=>{try{let d=Object.entries(o).map(([v,b])=>({key:v,value:b}));return await ua(a,{processId:f,action:"Zone-Update",data:d})}catch(d){throw new Error(d)}}}function IJ(a){return async(o,f)=>{try{return await ua(a,{processId:f,action:"Zone-Append",tags:[{name:"Path",value:o.path}],data:o.data})}catch(d){throw new Error(d)}}}function TJ(a){return async(o,f)=>{if(!Ga(f))throw new Error("Invalid zone address");let n=[];for(let v of o){if(!Ga(v.granteeId))throw new Error("Invalid granteeId address");if(v.type!=="wallet"&&v.type!=="process")throw new Error("Invalid role type");n.push({Id:v.granteeId,Roles:v.roles,Type:v.type,SendInvite:v.sendInvite})}try{return await ua(a,{processId:f,action:"Role-Set",tags:[],data:n})}catch(v){throw new Error(v)}}}function kJ(a){return async(o,f)=>{if(!(Ga(f)&&Ga(o.zoneToJoinId)))throw new Error("Invalid zone address");let n=[{name:"Zone-Id",value:o.zoneToJoinId}];o.storePath&&n.push({name:"Store-Path",value:o.storePath});try{return await ua(a,{processId:f,action:"Zone-Join",tags:n})}catch(v){throw new Error(v)}}}function fm(a){return async o=>{try{return Sa(`Updating zone to version ${Ci.src.zone.version} with source ${Ci.src.zone.id}`),await Gd(a,{processId:o.zoneId,evalTxId:Ci.src.zone.id}),await Gd(a,{processId:o.zoneId,evalSrc:`Zone.Version = '${Ci.src.zone.version}'; SyncState()`})}catch(f){throw new Error(f)}}}function hm(a){return async o=>{try{let f=await _f(a,{processId:o,path:"zone",fallbackAction:"Info"});return Va(f)}catch(f){throw new Error(f.message??"Error getting zone")}}}function $J(a){let o=om(a),f=cl(a);return async(d,n)=>{let v=null,b=[{name:Kr.keys.zoneType,value:Kr.values.user}],y=async M=>{let w=M.toLowerCase(),g=d[w];if(g&&xp(g))try{let _=await f(d[w]);b.push(qn(M,_))}catch(_){n?n(`Failed to resolve ${M}: ${_.message}`):console.error(_)}};d.username&&b.push(qn("Username",d.username)),d.displayName&&b.push(qn("DisplayName",d.displayName)),d.description&&b.push(qn("Description",d.description)),await Promise.all([y("Thumbnail"),y("Banner")]);try{v=await o({tags:b},n)}catch(M){throw new Error(M.message??"Error creating profile")}return v}}function PJ(a){let o=sm(a),f=cl(a);return async(d,n,v)=>{if(n){let b={Username:d.username,DisplayName:d.displayName,Description:d.description};if(d.thumbnail&&xp(d.thumbnail))try{b.Thumbnail=await f(d.thumbnail)}catch(y){v&&v(`Failed to resolve thumbnail: ${y.message}`)}else b.Thumbnail="None";if(d.banner&&xp(d.banner))try{b.Banner=await f(d.banner)}catch(y){v&&v(`Failed to resolve banner: ${y.message}`)}else b.Banner="None";try{return await o(b,n)}catch(y){throw new Error(y.message??"Error creating profile")}}else throw new Error("No profile provided")}}function NJ(a){let o=fm(a);return async f=>{try{return await o({zoneId:f.profileId})}catch(d){throw new Error(d)}}}function bE(a){let o=hm(a);return async f=>{try{let d=await o(f);if(!d)throw new Error("Error fetching profile - Not found");return{id:f,owner:d.owner,assets:d.assets,roles:d.roles,invites:d.invites,version:d.version,...d.store}}catch(d){throw new Error(d.message??"Error fetching profile")}}}function CJ(a){let o=bE(a);return async f=>{try{let d=await ks({gateway:Za.ao,tags:[{name:Kr.keys.dataProtocol,values:[Kr.values.dataProtocol]},{name:Kr.keys.zoneType,values:[Kr.values.user]}],owners:[f]});return d?.data?.length>0?(d.data.sort((n,v)=>{let b=n.node.block?.timestamp??0;return(v.node.block?.timestamp??0)-b}),await o(d.data[0].node.id)):{id:null}}catch(d){throw new Error(d.message??"Error fetching profile")}}}var J$e=Ci.src.zone.version;function A2e(a){return{createZone:om(a),updateZone:sm(a),addToZone:IJ(a),getZone:hm(a),setZoneRoles:TJ(a),joinZone:kJ(a),updateZoneVersion:fm(a),createProfile:$J(a),updateProfile:PJ(a),updateProfileVersion:NJ(a),getProfileById:bE(a),getProfileByWalletAddress:CJ(a),createAtomicAsset:mJ(a),getAtomicAsset:gJ(a),getAtomicAssets:yJ,createComment:EJ(a),getComments:AJ(a),updateCommentStatus:BJ(a),removeComment:RJ(a),createCollection:MJ(a),updateCollectionAssets:_J(a),getCollection:xJ(a),getCollections:SJ(a),resolveTransaction:cl(a),getGQLData:ks,getAggregatedGQLData:kE,createProcess:LE(a),readProcess:CE(a),readState:NE(a),sendMessage:PE(a),mapFromProcessCase:Va,mapToProcessCase:vl}}var Y$e={init:A2e};export{J$e as CurrentZoneVersion,y2e as Types,Y$e as default};
80
80
  /*! Bundled license information:
81
81
 
82
82
  @jspm/core/nodelibs/browser/chunk-DtuTasat.js: