@ar.io/sdk 2.2.0-alpha.4 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/web.bundle.min.js +1 -1
- package/lib/cjs/version.js +1 -1
- package/lib/esm/version.js +1 -1
- package/lib/types/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -135,7 +135,7 @@ use chrome, FireFox or Internet Explorer 11`)}var n=Fi(),f=pp(),a=n.Buffer,c=n.k
|
|
|
135
135
|
`))},gi.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},gi}var Qm,RK,v3,kK,TK,e2,IK,tS,BK,rS,OK,iS,PK,nS,NK,Pn,aS,CK,sn,oS,LK,fn,sS,DK,ii,fS,$K,xa,uS,UK,gr,hS,qK,Yi,qMe,jK,lS,m3,FK,cS,zK,dS,HK,pS,ZK,vS,KK,mS,WK,gS,VK,yS,bS,GK,zMe,wS,YK,_S,JK,MS,XK,SS,QK,ES,eW,KMe,AS,tW,xS,rW,RS,iW,kS,nW,TS,ru,IS,aW,Fn,BS,oW,OS,sW,PS,fW,NS,uW,VQ,CS,hW,LS,lW,DS,cW,g3,$S,dW,US,pW,zf,qS,vW,Qo,y3,mW,es,gW,jS,yW,FS,bW,zS,wW,HS,_W,ZS,MW,E0,SW,KS,EW,b3,w3,AW,WS,xW,_3,RW,VS,kW,GS,TW,YS,IW,JS,BW,XS,OW,QS,PW,iee,eE,CW,tE,LW,js,rE,DW,Ka,iE,$W,ni,nE,UW,Hf,aE,qW,M3,jW,En,S3,FW,Ji,Fs,zW,Du,HW,zs,ZW,oee,KW,oE,Fe,fee,WW,sE,ze,Po,VW,t2,GW,E3,YW,JW,fE,XW,uE,QW,hE,eV,lE,tV,Nn,cE,rV,un,dE,iV,hn,pE,nV,ai,vE,aV,Ra,mE,oV,yr,gE,sV,Xi,gSe,fV,yE,H8,nu,dee,pee,VR,vee,A3,GR,wSe,_Se,A0,mee,MSe,gee,cV,wE,ESe,yee,ASe,Jl,$0,k2,k8,K0,JR,W0,kSe,TSe,ISe,_E,dV,BSe,ME,pV,OSe,SE,vV,NSe,mV,Nk,x3,XR,$Se,USe,x0,wee,qSe,EE,_ee,Mee,jSe,Ql,U0,T2,T8,V0,ek,G0,HSe,ZSe,KSe,AE,bV,WSe,xE,wV,GSe,RE,_V,YSe,Eee,Aee,Z8,JSe,XSe,QSe,eEe,h8,xee,Ree,kee,iEe,kE,Tee,nEe,aEe,uEe,Iee,tk,rk,of,TE,AV,zn,IE,xV,BE,RV,OE,kV,PE,TV,Pee,NE,IV,CE,BV,LE,OV,R3,DE,PV,$E,NV,Zf,UE,CV,ts,k3,LV,rs,DV,qE,$V,jE,UV,FE,qV,zE,jV,HE,FV,R0,zV,ZE,HV,T3,I3,ZV,KE,KV,B3,WV,WE,VV,VE,GV,GE,YV,YE,JV,JE,XV,XE,QV,Fee,QE,tG,eA,rG,Zs,tA,iG,Wa,rA,nG,oi,iA,aG,Kf,nA,oG,O3,sG,An,P3,fG,Qi,Ks,uG,$u,hG,Ws,lG,Zee,cG,aA,He,Wee,dG,oA,Ze,B8,Do,TEe,Y1,k0,IEe,pG,Fu,vG,BEe,OEe,N3,bp,c8,Vee,Gee,PEe,Yee,NEe,CEe,$k,sA,LEe,Jee,DEe,r2,i2,n2,a2,o2,s2,Uk,Cn,Xee,wp,si,$Ee,Qee,UEe,qEe,jEe,ete,ln,WEe,tte,VEe,GEe,YEe,QEe,cn,eAe,rte,tAe,rAe,iAe,sAe,Oa,fAe,uAe,hAe,lAe,cAe,dAe,br,pAe,ite,vAe,_G,mAe,nte,en,_Ae,MAe,SAe,EAe,AAe,Kl,xAe,ate,qk,Wn,xG,ote,RAe,fc,kAe,TAe,IAe,ste,Z2,BAe,fte,OAe,Y0,ute,PAe,NAe,CAe,hte,w2,LAe,ik,nk,DAe,lte,cte,$Ae,UAe,ak,dte,kG,pte,Qf,qAe,jAe,FAe,zAe,TG,tu,HAe,w8,fA,mte,B2,uA,ZAe,IG,BG,rp,O2,KAe,hA,WAe,O8,gte,sf,rd,C3,NG,CG,yte,VAe,bte,jk,LG,ca,wte,YAe,_te,Mte,JAe,XAe,L3,Ste,exe,Ete,ec,rxe,ip,Ate,P8,xte,$h,ixe,H0,_2,nxe,axe,K2,Rte,oxe,ok,DG,kte,M2,sxe,Tte,sk,Ite,_8,Bte,lxe,cxe,fk,pxe,UG,vxe,Ote,gxe,M8,lA,Fk,rf,W2,N8,yxe,aa,Qa,cp,bxe,wxe,fi,_xe,Co,Pte,FG,Mxe,Sxe,Nte,eu,Exe,dA,Cte,Lte,I0,Axe,G8,tn,hk,xxe,dp,Dte,Rxe,$te,kxe,Txe,xn,lk,Ute,Ixe,Kh,Bxe,qte,Oxe,Pxe,Nxe,as,ZG,KG,Cxe,Wl,Jf,jte,zk,tc,qh,WG,Lxe,et,Fte,zte,oa,Hte,pA,Dxe,x8,vA,Hk,Zte,Kte,B0,$xe,Wte,Vte,Uxe,to,qxe,YG,jxe,ck,Fxe,zxe,Hxe,Zxe,JG,mA,Gte,Yte,Li,Vu,af,XG,Wxe,Vxe,Gxe,Yxe,Jxe,QG,Xxe,$3,tRe,np,Ll,rRe,eY,yA,iRe,Jte,nRe,rc,tY,Zk,Kk,q3,os,Wf,aRe,oRe,j3,ere,C8,vk,sRe,uRe,Oi,hRe,lRe,_p,fY,dRe,tre,$o,pRe,vRe,Gu,Yu,rre,ire,Dl,_A,MA,mRe,gRe,yRe,bRe,nre,wRe,are,zu,Uu,ore,up,PRe,Mp,NRe,Vf,CRe,LRe,DRe,$Re,URe,qRe,jRe,FRe,sre,zRe,fre,ure,hp,HRe,ZRe,SA,f2,KRe,WRe,hre,VRe,lre,GRe,EA,cre,dre,YRe,AA,pre,JRe,ap,vre,Q0,XRe,z3,cY,u2,dY,mre,gre,tke,rke,ike,nke,ake,oke,ske,Y8,Da,yre,fke,J0,bre,uke,wre,P0,D2,H3,hke,Z3,_re,J8,Kn,xA,lp,lke,Mre,cke,sp,vY,L8,dke,Sre,pke,Zh,mY,D8,vke,mke,Wk,K3,mk,gke,X8,gk,Vl,RA,gY,Are,yke,yY,xre,bke,N0,bY,kA,wke,Rre,TA,W3,_ke,$2,wY,_Y,X1,Mke,Ske,Q8,Eke,V3,Ake,kre,xke,Rke,kke,fp,Tke,MY,SY,EY,Ike,e4,C0,IA,AY,is,ma,Tre,Bke,G3,xY,Vr,BA,kY,$r,OA,TY,Ul,IY,PA,BY,NA,OY,ql,CA,NY,LA,DA,CY,$A,LY,da,UA,$Y,qA,jA,UY,FA,qY,Bre,au,jY,Nke,Vk,Cke,Lke,Dke,FY,$ke,Uke,qke,jke,iu,ou,Fke,zke,Hke,Ore,Zke,Kke,Wke,Vke,Gke,Pre,Yke,Jke,Xke,Qke,eTe,Y3,No,tTe,rTe,iTe,nTe,zA,r4,Nre,yk,eo,X0,aTe,oTe,$8,sTe,fTe,hTe,HA,h2,lTe,KY,cTe,dTe,Vn,J3,Cre,U8,VY,pTe,vTe,Z0,mTe,Lre,ga,Hh,gTe,yTe,ns,bTe,wTe,bk,Dre,$re,JY,MTe,Ure,STe,KA,ETe,XY,QY,WA,ATe,xTe,Gf,RTe,kTe,eJ,tJ,rJ,TTe,ITe,BTe,l2,OTe,z0,q8,R2,wk,qre,nJ,aJ,jre,_k,Fre,_i,PTe,NTe,CTe,uJ,ju,c2,X3,Q3,hJ,e8,lJ,t8,VA,cJ,dJ,GA,pJ,LTe,YA,vJ,Ni,L0,mJ,Zre,gJ,JA,$e,XA,yJ,UTe,Kre,bJ,QA,Ke,ex,wJ,tx,_J,rx,MJ,ix,SJ,nx,EJ,ax,AJ,ox,xJ,bn,RJ,sx,kJ,TJ,IJ,fx,BJ,ux,OJ,hx,PJ,lx,NJ,cx,CJ,dx,LJ,px,DJ,vx,$J,mx,UJ,gx,qJ,yx,jJ,bx,FJ,wx,zJ,Yre,HJ,_x,We,Mx,ZJ,Sx,KJ,r8,WJ,Ex,VJ,jl,GJ,Ax,YJ,xx,JJ,Rx,XJ,kx,QJ,Tx,eX,Ix,tX,Bx,rX,Ox,iX,Px,nX,Nx,aX,Cx,oX,Qs,sX,sIe,Lx,fX,Dx,uX,iie,d2,hX,$x,lX,Ux,cX,Hn,nie,dX,qx,Ve,jx,pX,pa,Fx,vX,zx,mX,sie,gX,Hx,Ge,Zx,yX,Kx,bX,Wx,wX,Fl,_X,ep,MX,i8,mi,SX,Mi,n8,EX,a8,Vx,AX,xX,Gx,RX,bIe,Yx,kX,Ci,D0,TX,p2,IX,lie,BX,Jx,Ue,Xx,OX,MIe,cie,PX,Qx,Ye,eR,NX,tR,CX,rR,LX,iR,DX,nR,$X,aR,UX,oR,qX,wn,jX,sR,FX,zX,HX,fR,ZX,uR,KX,hR,WX,lR,VX,cR,GX,dR,YX,pR,JX,vR,XX,mR,QX,gR,eQ,yR,tQ,bR,rQ,wR,iQ,mie,nQ,_R,Je,MR,aQ,SR,oQ,o8,sQ,ER,fQ,zl,uQ,AR,hQ,xR,lQ,RR,cQ,kR,dQ,TR,pQ,IR,vQ,BR,mQ,OR,gQ,PR,yQ,NR,bQ,CR,wQ,ef,_Q,HIe,LR,MQ,DR,SQ,Sie,v2,EQ,$R,AQ,UR,xQ,Zn,Eie,RQ,qR,Xe,jR,kQ,va,FR,TQ,zR,IQ,Rie,BQ,HR,Qe,ZR,OQ,KR,PQ,WR,NQ,Hl,CQ,tp,LQ,s8,gi,DQ,Mr,rBe,iBe,nBe,aBe,oBe,sBe,fBe,uBe,hBe,lBe,cBe,dBe,pBe,vBe,mBe,gBe,yBe,bBe,wBe,_Be,MBe,SBe,EBe,ABe,xBe,RBe,kBe,TBe,IBe,BBe,OBe,PBe,NBe,CBe,LBe,DBe,$Be,UBe,qBe,jBe,Iie=an(()=>{"use strict";Be();Pe();Oe();yh();Ef();X6();Sf();Mu();ph();_s();bs();Qm={},RK=!1;v3={},kK=!1,TK=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;e2={},IK=!1;tS={},BK=!1;rS={},OK=!1;iS={},PK=!1;nS={},NK=!1,Pn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;aS={},CK=!1,sn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;oS={},LK=!1,fn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;sS={},DK=!1,ii=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;fS={},$K=!1,xa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;uS={},UK=!1,gr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;hS={},qK=!1,Yi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;qMe={},jK=!1,lS={exports:qMe};m3={},FK=!1;cS={},zK=!1;dS={},HK=!1;pS={},ZK=!1;vS={},KK=!1;mS={},WK=!1;gS={},VK=!1,yS=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;bS={},GK=!1,zMe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;wS={},YK=!1;_S={},JK=!1;MS={},XK=!1;SS={},QK=!1;ES={},eW=!1,KMe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;AS={},tW=!1;xS={},rW=!1;RS={},iW=!1;kS={},nW=!1,TS=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;ru=WMe();ru.Readable;ru.Writable;ru.Duplex;ru.Transform;ru.PassThrough;ru.finished;ru.pipeline;ru.Stream;yw(ru.finished),yw(ru.pipeline);IS={},aW=!1,Fn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;BS={},oW=!1;OS={},sW=!1;PS={},fW=!1;NS={},uW=!1;VQ={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}},CS={},hW=!1;LS={},lW=!1;DS={},cW=!1,g3=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;$S={},dW=!1;US={},pW=!1,zf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;qS={},vW=!1,Qo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;y3={},mW=!1;es={},gW=!1;jS={},yW=!1;FS={},bW=!1;zS={},wW=!1;HS={},_W=!1;ZS={},MW=!1;E0={},SW=!1;KS={},EW=!1,b3=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;w3={},AW=!1;WS={},xW=!1;_3={},RW=!1;VS={},kW=!1;GS={},TW=!1;YS={},IW=!1;JS={},BW=!1;XS={},OW=!1;QS={},PW=!1;iee={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}},eE={},CW=!1;tE={},LW=!1,js=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;rE={},DW=!1,Ka=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;iE={},$W=!1,ni=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;nE={},UW=!1,Hf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;aE={},qW=!1;M3={},jW=!1,En=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;S3={},FW=!1,Ji=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Fs={},zW=!1;Du={},HW=!1;zs={},ZW=!1;oee={},KW=!1,oE={exports:oee},Fe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;fee={},WW=!1,sE={exports:fee},ze=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Po={},VW=!1;t2={},GW=!1;E3={},YW=!1,JW=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;fE={},XW=!1;uE={},QW=!1;hE={},eV=!1;lE={},tV=!1,Nn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;cE={},rV=!1,un=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;dE={},iV=!1,hn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;pE={},nV=!1,ai=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;vE={},aV=!1,Ra=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;mE={},oV=!1,yr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;gE={},sV=!1,Xi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;gSe={},fV=!1,yE={exports:gSe};H8=on.EventEmitter,nu={},dee={};Hs("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError),Hs("ERR_INVALID_ARG_TYPE",function(t,e,n){let f;var a;let c;return typeof e=="string"&&(a="not ",e.substr(0,a.length)===a)?(f="must not be",e=e.replace(/^not /,"")):f="must be",function(l,p,w){return(w===void 0||w>l.length)&&(w=l.length),l.substring(w-p.length,w)===p}(t," argument")?c=`The ${t} ${f} ${uV(e,"type")}`:c=`The "${t}" ${function(l,p,w){return typeof w!="number"&&(w=0),!(w+p.length>l.length)&&l.indexOf(p,w)!==-1}(t,".")?"property":"argument"} ${f} ${uV(e,"type")}`,c+=`. Received type ${typeof n}`,c},TypeError),Hs("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),Hs("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"}),Hs("ERR_STREAM_PREMATURE_CLOSE","Premature close"),Hs("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"}),Hs("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),Hs("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),Hs("ERR_STREAM_WRITE_AFTER_END","write after end"),Hs("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),Hs("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError),Hs("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),nu.codes=dee;pee=function(){throw new Error("Readable.from is not available in the browser")},VR=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;vee=function(t,e){if(bE("noDeprecation"))return t;var n=!1;return function(){if(!n){if(bE("throwDeprecation"))throw new Error(e);bE("traceDeprecation")?console.trace(e):console.warn(e),n=!0}return t.apply(this||VR,arguments)}};A3=jr.Buffer,GR=Yt.inspect,wSe=GR&&GR.custom||"inspect",_Se=function(){function t(){(function(f,a){if(!(f instanceof a))throw new TypeError("Cannot call a class as a function")})(this,t),this.head=null,this.tail=null,this.length=0}var e,n;return e=t,(n=[{key:"push",value:function(f){var a={data:f,next:null};this.length>0?this.tail.next=a:this.head=a,this.tail=a,++this.length}},{key:"unshift",value:function(f){var a={data:f,next:this.head};this.length===0&&(this.tail=a),this.head=a,++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 a=this.head,c=""+a.data;a=a.next;)c+=f+a.data;return c}},{key:"concat",value:function(f){if(this.length===0)return A3.alloc(0);for(var a,c,l,p=A3.allocUnsafe(f>>>0),w=this.head,m=0;w;)a=w.data,c=p,l=m,A3.prototype.copy.call(a,c,l),m+=w.data.length,w=w.next;return p}},{key:"consume",value:function(f,a){var c;return f<this.head.data.length?(c=this.head.data.slice(0,f),this.head.data=this.head.data.slice(f)):c=f===this.head.data.length?this.shift():a?this._getString(f):this._getBuffer(f),c}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(f){var a=this.head,c=1,l=a.data;for(f-=l.length;a=a.next;){var p=a.data,w=f>p.length?p.length:f;if(w===p.length?l+=p:l+=p.slice(0,f),(f-=w)==0){w===p.length?(++c,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=p.slice(w));break}++c}return this.length-=c,l}},{key:"_getBuffer",value:function(f){var a=A3.allocUnsafe(f),c=this.head,l=1;for(c.data.copy(a),f-=c.data.length;c=c.next;){var p=c.data,w=f>p.length?p.length:f;if(p.copy(a,a.length-f,0,w),(f-=w)==0){w===p.length?(++l,c.next?this.head=c.next:this.head=this.tail=null):(this.head=c,c.data=p.slice(w));break}++l}return this.length-=l,a}},{key:wSe,value:function(f,a){return GR(this,function(c){for(var l=1;l<arguments.length;l++){var p=arguments[l]!=null?arguments[l]:{};l%2?hV(Object(p),!0).forEach(function(w){ySe(c,w,p[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(p)):hV(Object(p)).forEach(function(w){Object.defineProperty(c,w,Object.getOwnPropertyDescriptor(p,w))})}return c}({},a,{depth:0,customInspect:!1}))}}])&&bSe(e.prototype,n),t}(),A0=Ur;mee={destroy:function(t,e){var n=this,f=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return f||a?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,A0.nextTick(YR,this,t)):A0.nextTick(YR,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(c){!e&&c?n._writableState?n._writableState.errorEmitted?A0.nextTick(f8,n):(n._writableState.errorEmitted=!0,A0.nextTick(lV,n,c)):A0.nextTick(lV,n,c):e?(A0.nextTick(f8,n),e(c)):A0.nextTick(f8,n)}),this)},undestroy:function(){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)},errorOrDestroy:function(t,e){var n=t._readableState,f=t._writableState;n&&n.autoDestroy||f&&f.autoDestroy?t.destroy(e):t.emit("error",e)}},MSe=nu.codes.ERR_INVALID_OPT_VALUE,gee={getHighWaterMark:function(t,e,n,f){var a=function(c,l,p){return c.highWaterMark!=null?c.highWaterMark:l?c[p]:null}(e,f,n);if(a!=null){if(!isFinite(a)||Math.floor(a)!==a||a<0)throw new MSe(f?n:"highWaterMark",a);return Math.floor(a)}return t.objectMode?16:16384}},cV=nu.codes.ERR_STREAM_PREMATURE_CLOSE;ESe=function t(e,n,f){if(typeof n=="function")return t(e,null,n);n||(n={}),f=function(A){var T=!1;return function(){if(!T){T=!0;for(var I=arguments.length,B=new Array(I),P=0;P<I;P++)B[P]=arguments[P];A.apply(this,B)}}}(f||SSe);var a=n.readable||n.readable!==!1&&e.readable,c=n.writable||n.writable!==!1&&e.writable,l=function(){e.writable||w()},p=e._writableState&&e._writableState.finished,w=function(){c=!1,p=!0,a||f.call(e)},m=e._readableState&&e._readableState.endEmitted,y=function(){a=!1,m=!0,c||f.call(e)},g=function(A){f.call(e,A)},S=function(){var A;return a&&!m?(e._readableState&&e._readableState.ended||(A=new cV),f.call(e,A)):c&&!p?(e._writableState&&e._writableState.ended||(A=new cV),f.call(e,A)):void 0},x=function(){e.req.on("finish",w)};return function(A){return A.setHeader&&typeof A.abort=="function"}(e)?(e.on("complete",w),e.on("abort",S),e.req?x():e.on("request",x)):c&&!e._writableState&&(e.on("end",l),e.on("close",l)),e.on("end",y),e.on("finish",w),n.error!==!1&&e.on("error",g),e.on("close",S),function(){e.removeListener("complete",w),e.removeListener("abort",S),e.removeListener("request",x),e.req&&e.req.removeListener("finish",w),e.removeListener("end",l),e.removeListener("close",l),e.removeListener("finish",w),e.removeListener("end",y),e.removeListener("error",g),e.removeListener("close",S)}},yee=Ur;ASe=ESe,Jl=Symbol("lastResolve"),$0=Symbol("lastReject"),k2=Symbol("error"),k8=Symbol("ended"),K0=Symbol("lastPromise"),JR=Symbol("handlePromise"),W0=Symbol("stream");kSe=Object.getPrototypeOf(function(){}),TSe=Object.setPrototypeOf((Yl(wE={get stream(){return this[W0]},next:function(){var t=this,e=this[k2];if(e!==null)return Promise.reject(e);if(this[k8])return Promise.resolve(nc(void 0,!0));if(this[W0].destroyed)return new Promise(function(c,l){yee.nextTick(function(){t[k2]?l(t[k2]):c(nc(void 0,!0))})});var n,f=this[K0];if(f)n=new Promise(function(c,l){return function(p,w){c.then(function(){if(l[k8])return p(nc(void 0,!0)),void 0;l[JR](p,w)},w)}}(f,this));else{var a=this[W0].read();if(a!==null)return Promise.resolve(nc(a,!1));n=new Promise(this[JR])}return this[K0]=n,n}},Symbol.asyncIterator,function(){return this}),Yl(wE,"return",function(){var t=this;return new Promise(function(e,n){t[W0].destroy(null,function(f){if(f)return n(f),void 0;e(nc(void 0,!0))})})}),wE),kSe),ISe=function(t){var e,n=Object.create(TSe,(Yl(e={},W0,{value:t,writable:!0}),Yl(e,Jl,{value:null,writable:!0}),Yl(e,$0,{value:null,writable:!0}),Yl(e,k2,{value:null,writable:!0}),Yl(e,k8,{value:t._readableState.endEmitted,writable:!0}),Yl(e,JR,{value:function(f,a){var c=n[W0].read();c?(n[K0]=null,n[Jl]=null,n[$0]=null,f(nc(c,!1))):(n[Jl]=f,n[$0]=a)},writable:!0}),e));return n[K0]=null,ASe(t,function(f){if(f&&f.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=n[$0];return a!==null&&(n[K0]=null,n[Jl]=null,n[$0]=null,a(f)),n[k2]=f,void 0}var c=n[Jl];c!==null&&(n[K0]=null,n[Jl]=null,n[$0]=null,c(nc(void 0,!0))),n[k8]=!0}),t.on("readable",RSe.bind(null,n)),n},_E={},dV=!1,BSe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;ME={},pV=!1,OSe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;SE={},vV=!1;NSe=bee(),mV=nu.codes.ERR_STREAM_PREMATURE_CLOSE;Nk=function t(e,n,f){if(typeof n=="function")return t(e,null,n);n||(n={}),f=function(A){var T=!1;return function(){if(!T){T=!0;for(var I=arguments.length,B=new Array(I),P=0;P<I;P++)B[P]=arguments[P];A.apply(this,B)}}}(f||CSe);var a=n.readable||n.readable!==!1&&e.readable,c=n.writable||n.writable!==!1&&e.writable,l=function(){e.writable||w()},p=e._writableState&&e._writableState.finished,w=function(){c=!1,p=!0,a||f.call(e)},m=e._readableState&&e._readableState.endEmitted,y=function(){a=!1,m=!0,c||f.call(e)},g=function(A){f.call(e,A)},S=function(){var A;return a&&!m?(e._readableState&&e._readableState.ended||(A=new mV),f.call(e,A)):c&&!p?(e._writableState&&e._writableState.ended||(A=new mV),f.call(e,A)):void 0},x=function(){e.req.on("finish",w)};return function(A){return A.setHeader&&typeof A.abort=="function"}(e)?(e.on("complete",w),e.on("abort",S),e.req?x():e.on("request",x)):c&&!e._writableState&&(e.on("end",l),e.on("close",l)),e.on("end",y),e.on("finish",w),n.error!==!1&&e.on("error",g),e.on("close",S),function(){e.removeListener("complete",w),e.removeListener("abort",S),e.removeListener("request",x),e.req&&e.req.removeListener("finish",w),e.removeListener("end",l),e.removeListener("close",l),e.removeListener("finish",w),e.removeListener("end",y),e.removeListener("error",g),e.removeListener("close",S)}};x3=jr.Buffer,XR=Yt.inspect,$Se=XR&&XR.custom||"inspect",USe=function(){function t(){(function(f,a){if(!(f instanceof a))throw new TypeError("Cannot call a class as a function")})(this,t),this.head=null,this.tail=null,this.length=0}var e,n;return e=t,(n=[{key:"push",value:function(f){var a={data:f,next:null};this.length>0?this.tail.next=a:this.head=a,this.tail=a,++this.length}},{key:"unshift",value:function(f){var a={data:f,next:this.head};this.length===0&&(this.tail=a),this.head=a,++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 a=this.head,c=""+a.data;a=a.next;)c+=f+a.data;return c}},{key:"concat",value:function(f){if(this.length===0)return x3.alloc(0);for(var a,c,l,p=x3.allocUnsafe(f>>>0),w=this.head,m=0;w;)a=w.data,c=p,l=m,x3.prototype.copy.call(a,c,l),m+=w.data.length,w=w.next;return p}},{key:"consume",value:function(f,a){var c;return f<this.head.data.length?(c=this.head.data.slice(0,f),this.head.data=this.head.data.slice(f)):c=f===this.head.data.length?this.shift():a?this._getString(f):this._getBuffer(f),c}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(f){var a=this.head,c=1,l=a.data;for(f-=l.length;a=a.next;){var p=a.data,w=f>p.length?p.length:f;if(w===p.length?l+=p:l+=p.slice(0,f),(f-=w)==0){w===p.length?(++c,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=p.slice(w));break}++c}return this.length-=c,l}},{key:"_getBuffer",value:function(f){var a=x3.allocUnsafe(f),c=this.head,l=1;for(c.data.copy(a),f-=c.data.length;c=c.next;){var p=c.data,w=f>p.length?p.length:f;if(p.copy(a,a.length-f,0,w),(f-=w)==0){w===p.length?(++l,c.next?this.head=c.next:this.head=this.tail=null):(this.head=c,c.data=p.slice(w));break}++l}return this.length-=l,a}},{key:$Se,value:function(f,a){return XR(this,function(c){for(var l=1;l<arguments.length;l++){var p=arguments[l]!=null?arguments[l]:{};l%2?gV(Object(p),!0).forEach(function(w){LSe(c,w,p[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(p)):gV(Object(p)).forEach(function(w){Object.defineProperty(c,w,Object.getOwnPropertyDescriptor(p,w))})}return c}({},a,{depth:0,customInspect:!1}))}}])&&DSe(e.prototype,n),t}(),x0=Ur;wee={destroy:function(t,e){var n=this,f=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return f||a?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,x0.nextTick(QR,this,t)):x0.nextTick(QR,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(c){!e&&c?n._writableState?n._writableState.errorEmitted?x0.nextTick(u8,n):(n._writableState.errorEmitted=!0,x0.nextTick(yV,n,c)):x0.nextTick(yV,n,c):e?(x0.nextTick(u8,n),e(c)):x0.nextTick(u8,n)}),this)},undestroy:function(){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)},errorOrDestroy:function(t,e){var n=t._readableState,f=t._writableState;n&&n.autoDestroy||f&&f.autoDestroy?t.destroy(e):t.emit("error",e)}},qSe=nu.codes.ERR_INVALID_OPT_VALUE,_ee={getHighWaterMark:function(t,e,n,f){var a=function(c,l,p){return c.highWaterMark!=null?c.highWaterMark:l?c[p]:null}(e,f,n);if(a!=null){if(!isFinite(a)||Math.floor(a)!==a||a<0)throw new qSe(f?n:"highWaterMark",a);return Math.floor(a)}return t.objectMode?16:16384}},Mee=Ur;jSe=Nk,Ql=Symbol("lastResolve"),U0=Symbol("lastReject"),T2=Symbol("error"),T8=Symbol("ended"),V0=Symbol("lastPromise"),ek=Symbol("handlePromise"),G0=Symbol("stream");HSe=Object.getPrototypeOf(function(){}),ZSe=Object.setPrototypeOf((Xl(EE={get stream(){return this[G0]},next:function(){var t=this,e=this[T2];if(e!==null)return Promise.reject(e);if(this[T8])return Promise.resolve(ac(void 0,!0));if(this[G0].destroyed)return new Promise(function(c,l){Mee.nextTick(function(){t[T2]?l(t[T2]):c(ac(void 0,!0))})});var n,f=this[V0];if(f)n=new Promise(function(c,l){return function(p,w){c.then(function(){if(l[T8])return p(ac(void 0,!0)),void 0;l[ek](p,w)},w)}}(f,this));else{var a=this[G0].read();if(a!==null)return Promise.resolve(ac(a,!1));n=new Promise(this[ek])}return this[V0]=n,n}},Symbol.asyncIterator,function(){return this}),Xl(EE,"return",function(){var t=this;return new Promise(function(e,n){t[G0].destroy(null,function(f){if(f)return n(f),void 0;e(ac(void 0,!0))})})}),EE),HSe),KSe=function(t){var e,n=Object.create(ZSe,(Xl(e={},G0,{value:t,writable:!0}),Xl(e,Ql,{value:null,writable:!0}),Xl(e,U0,{value:null,writable:!0}),Xl(e,T2,{value:null,writable:!0}),Xl(e,T8,{value:t._readableState.endEmitted,writable:!0}),Xl(e,ek,{value:function(f,a){var c=n[G0].read();c?(n[V0]=null,n[Ql]=null,n[U0]=null,f(ac(c,!1))):(n[Ql]=f,n[U0]=a)},writable:!0}),e));return n[V0]=null,jSe(t,function(f){if(f&&f.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=n[U0];return a!==null&&(n[V0]=null,n[Ql]=null,n[U0]=null,a(f)),n[T2]=f,void 0}var c=n[Ql];c!==null&&(n[V0]=null,n[Ql]=null,n[U0]=null,c(ac(void 0,!0))),n[T8]=!0}),t.on("readable",zSe.bind(null,n)),n},AE={},bV=!1,WSe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;xE={},wV=!1,GSe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;RE={},_V=!1;YSe=See(),Eee=N2();Aee=zh;Z8=nu.codes,JSe=Z8.ERR_METHOD_NOT_IMPLEMENTED,XSe=Z8.ERR_MULTIPLE_CALLBACK,QSe=Z8.ERR_TRANSFORM_ALREADY_TRANSFORMING,eEe=Z8.ERR_TRANSFORM_WITH_LENGTH_0,h8=Eee;ei(zh,h8),zh.prototype.push=function(t,e){return this._transformState.needTransform=!1,h8.prototype.push.call(this,t,e)},zh.prototype._transform=function(t,e,n){n(new JSe("_transform()"))},zh.prototype._write=function(t,e,n){var f=this._transformState;if(f.writecb=n,f.writechunk=t,f.writeencoding=e,!f.transforming){var a=this._readableState;(f.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},zh.prototype._read=function(t){var e=this._transformState;e.writechunk===null||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},zh.prototype._destroy=function(t,e){h8.prototype._destroy.call(this,t,function(n){e(n)})};xee=Aee;Ree=C2;kee=xee;ei(C2,kee),C2.prototype._transform=function(t,e,n){n(null,t)};iEe=Ree,Tee=nu.codes,nEe=Tee.ERR_MISSING_ARGS,aEe=Tee.ERR_STREAM_DESTROYED;uEe=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var f,a=fEe(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new nEe("streams");var c=e.map(function(l,p){var w=p<e.length-1;return oEe(l,w,p>0,function(m){f||(f=m),m&&c.forEach(EV),w||(c.forEach(EV),a(f))})});return e.reduce(sEe)},tk=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Iee=tf;rk=on.EventEmitter;ei(tf,rk),tf.Readable=NSe,tf.Writable=YSe,tf.Duplex=Eee,tf.Transform=xee,tf.PassThrough=iEe,tf.finished=Nk,tf.pipeline=uEe,tf.Stream=tf,tf.prototype.pipe=function(t,e){var n=this||tk;function f(y){t.writable&&t.write(y)===!1&&n.pause&&n.pause()}function a(){n.readable&&n.resume&&n.resume()}n.on("data",f),t.on("drain",a),t._isStdio||e&&e.end===!1||(n.on("end",l),n.on("close",p));var c=!1;function l(){c||(c=!0,t.end())}function p(){c||(c=!0,typeof t.destroy=="function"&&t.destroy())}function w(y){if(m(),rk.listenerCount(this||tk,"error")===0)throw y}function m(){n.removeListener("data",f),t.removeListener("drain",a),n.removeListener("end",l),n.removeListener("close",p),n.removeListener("error",w),t.removeListener("error",w),n.removeListener("end",m),n.removeListener("close",m),t.removeListener("close",m)}return n.on("error",w),t.on("error",w),n.on("end",m),n.on("close",m),t.on("close",m),t.emit("pipe",n),t};of=Iee;of.Readable;of.Writable;of.Duplex;of.Transform;of.PassThrough;of.finished;of.pipeline;of.Stream;TE={},AV=!1,zn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;IE={},xV=!1;BE={},RV=!1;OE={},kV=!1;PE={},TV=!1;Pee={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}},NE={},IV=!1;CE={},BV=!1;LE={},OV=!1,R3=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;DE={},PV=!1;$E={},NV=!1,Zf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;UE={},CV=!1,ts=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;k3={},LV=!1;rs={},DV=!1;qE={},$V=!1;jE={},UV=!1;FE={},qV=!1;zE={},jV=!1;HE={},FV=!1;R0={},zV=!1;ZE={},HV=!1,T3=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;I3={},ZV=!1;KE={},KV=!1;B3={},WV=!1;WE={},VV=!1;VE={},GV=!1;GE={},YV=!1;YE={},JV=!1;JE={},XV=!1;XE={},QV=!1;Fee={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}},QE={},tG=!1;eA={},rG=!1,Zs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;tA={},iG=!1,Wa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;rA={},nG=!1,oi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;iA={},aG=!1,Kf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;nA={},oG=!1;O3={},sG=!1,An=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;P3={},fG=!1,Qi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Ks={},uG=!1;$u={},hG=!1;Ws={},lG=!1;Zee={},cG=!1,aA={exports:Zee},He=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Wee={},dG=!1,oA={exports:Wee},Ze=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;B8=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,Do={},TEe=function(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1},Y1=function(t){if(Object.keys)return Object.keys(t);var e=[];for(var n in t)e.push(n);return e},k0=function(t,e){if(t.forEach)return t.forEach(e);for(var n=0;n<t.length;n++)e(t[n],n,t)},IEe=function(){try{return Object.defineProperty({},"_",{}),function(t,e,n){Object.defineProperty(t,e,{writable:!0,enumerable:!1,configurable:!0,value:n})}}catch{return function(e,n,f){e[n]=f}}}(),pG=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];l8.prototype={};Fu=Do.Script=function(t){if(!((this||B8)instanceof Fu))return new Fu(t);(this||B8).code=t};Fu.prototype.runInContext=function(t){if(!(t instanceof l8))throw new TypeError("needs a 'context' argument.");var e=document.createElement("iframe");e.style||(e.style={}),e.style.display="none",document.body.appendChild(e);var n=e.contentWindow,f=n.eval,a=n.execScript;!f&&a&&(a.call(n,"null"),f=n.eval),k0(Y1(t),function(p){n[p]=t[p]}),k0(pG,function(p){t[p]&&(n[p]=t[p])});var c=Y1(n),l=f.call(n,(this||B8).code);return k0(Y1(n),function(p){(p in t||TEe(c,p)===-1)&&(t[p]=n[p])}),k0(pG,function(p){p in t||IEe(t,p,n[p])}),document.body.removeChild(e),l},Fu.prototype.runInThisContext=function(){return eval((this||B8).code)},Fu.prototype.runInNewContext=function(t){var e=Fu.createContext(t),n=this.runInContext(e);return t&&k0(Y1(e),function(f){t[f]=e[f]}),n},k0(Y1(Fu.prototype),function(t){Do[t]=Fu[t]=function(e){var n=Fu(e);return n[t].apply(n,[].slice.call(arguments,1))}}),Do.isContext=function(t){return t instanceof l8},Do.createScript=function(t){return Do.Script(t)},Do.createContext=Fu.createContext=function(t){var e=new l8;return typeof t=="object"&&k0(Y1(t),function(n){e[n]=t[n]}),e};Do.Script;Do.createContext;Do.createScript;Do.isContext;Do.runInContext;Do.runInNewContext;Do.runInThisContext;vG=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,BEe=Ur,OEe=Bi.Buffer,N3=vG.crypto||vG.msCrypto,bp=N3&&N3.getRandomValues?function(t,e){if(t>4294967295)throw new RangeError("requested too many random bytes");var n=OEe.allocUnsafe(t);if(t>0)if(t>65536)for(var f=0;f<t;f+=65536)N3.getRandomValues(n.slice(f,f+65536));else N3.getRandomValues(n);return typeof e=="function"?BEe.nextTick(function(){e(null,n)}):n}:function(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
136
136
|
Use Chrome, Firefox or Internet Explorer 11`)},c8=Bi.Buffer,Vee=of.Transform;ei(Zl,Vee),Zl.prototype._transform=function(t,e,n){var f=null;try{this.update(t,e)}catch(a){f=a}n(f)},Zl.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(n){e=n}t(e)},Zl.prototype.update=function(t,e){if(function(p,w){if(!c8.isBuffer(p)&&typeof p!="string")throw new TypeError(w+" must be a string or a buffer")}(t,"Data"),this._finalized)throw new Error("Digest already called");c8.isBuffer(t)||(t=c8.from(t,e));for(var n=this._block,f=0;this._blockOffset+t.length-f>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)n[a++]=t[f++];this._update(),this._blockOffset=0}for(;f<t.length;)n[this._blockOffset++]=t[f++];for(var c=0,l=8*t.length;l>0;++c)this._length[c]+=l,(l=this._length[c]/4294967296|0)>0&&(this._length[c]-=4294967296*l);return this},Zl.prototype._update=function(){throw new Error("_update is not implemented")},Zl.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();t!==void 0&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return e},Zl.prototype._digest=function(){throw new Error("_digest is not implemented")};Gee=Zl,PEe=ei,Yee=Gee,NEe=Bi.Buffer,CEe=new Array(16);PEe(d8,Yee),d8.prototype._update=function(){for(var t=CEe,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var n=this._a,f=this._b,a=this._c,c=this._d;n=Va(n,f,a,c,t[0],3614090360,7),c=Va(c,n,f,a,t[1],3905402710,12),a=Va(a,c,n,f,t[2],606105819,17),f=Va(f,a,c,n,t[3],3250441966,22),n=Va(n,f,a,c,t[4],4118548399,7),c=Va(c,n,f,a,t[5],1200080426,12),a=Va(a,c,n,f,t[6],2821735955,17),f=Va(f,a,c,n,t[7],4249261313,22),n=Va(n,f,a,c,t[8],1770035416,7),c=Va(c,n,f,a,t[9],2336552879,12),a=Va(a,c,n,f,t[10],4294925233,17),f=Va(f,a,c,n,t[11],2304563134,22),n=Va(n,f,a,c,t[12],1804603682,7),c=Va(c,n,f,a,t[13],4254626195,12),a=Va(a,c,n,f,t[14],2792965006,17),n=Ga(n,f=Va(f,a,c,n,t[15],1236535329,22),a,c,t[1],4129170786,5),c=Ga(c,n,f,a,t[6],3225465664,9),a=Ga(a,c,n,f,t[11],643717713,14),f=Ga(f,a,c,n,t[0],3921069994,20),n=Ga(n,f,a,c,t[5],3593408605,5),c=Ga(c,n,f,a,t[10],38016083,9),a=Ga(a,c,n,f,t[15],3634488961,14),f=Ga(f,a,c,n,t[4],3889429448,20),n=Ga(n,f,a,c,t[9],568446438,5),c=Ga(c,n,f,a,t[14],3275163606,9),a=Ga(a,c,n,f,t[3],4107603335,14),f=Ga(f,a,c,n,t[8],1163531501,20),n=Ga(n,f,a,c,t[13],2850285829,5),c=Ga(c,n,f,a,t[2],4243563512,9),a=Ga(a,c,n,f,t[7],1735328473,14),n=Ya(n,f=Ga(f,a,c,n,t[12],2368359562,20),a,c,t[5],4294588738,4),c=Ya(c,n,f,a,t[8],2272392833,11),a=Ya(a,c,n,f,t[11],1839030562,16),f=Ya(f,a,c,n,t[14],4259657740,23),n=Ya(n,f,a,c,t[1],2763975236,4),c=Ya(c,n,f,a,t[4],1272893353,11),a=Ya(a,c,n,f,t[7],4139469664,16),f=Ya(f,a,c,n,t[10],3200236656,23),n=Ya(n,f,a,c,t[13],681279174,4),c=Ya(c,n,f,a,t[0],3936430074,11),a=Ya(a,c,n,f,t[3],3572445317,16),f=Ya(f,a,c,n,t[6],76029189,23),n=Ya(n,f,a,c,t[9],3654602809,4),c=Ya(c,n,f,a,t[12],3873151461,11),a=Ya(a,c,n,f,t[15],530742520,16),n=Ja(n,f=Ya(f,a,c,n,t[2],3299628645,23),a,c,t[0],4096336452,6),c=Ja(c,n,f,a,t[7],1126891415,10),a=Ja(a,c,n,f,t[14],2878612391,15),f=Ja(f,a,c,n,t[5],4237533241,21),n=Ja(n,f,a,c,t[12],1700485571,6),c=Ja(c,n,f,a,t[3],2399980690,10),a=Ja(a,c,n,f,t[10],4293915773,15),f=Ja(f,a,c,n,t[1],2240044497,21),n=Ja(n,f,a,c,t[8],1873313359,6),c=Ja(c,n,f,a,t[15],4264355552,10),a=Ja(a,c,n,f,t[6],2734768916,15),f=Ja(f,a,c,n,t[13],1309151649,21),n=Ja(n,f,a,c,t[4],4149444226,6),c=Ja(c,n,f,a,t[11],3174756917,10),a=Ja(a,c,n,f,t[2],718787259,15),f=Ja(f,a,c,n,t[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+f|0,this._c=this._c+a|0,this._d=this._d+c|0},d8.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=NEe.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t};$k=d8,sA=jr.Buffer,LEe=ei,Jee=Gee,DEe=new Array(16),r2=[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],i2=[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],n2=[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],a2=[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],o2=[0,1518500249,1859775393,2400959708,2840853838],s2=[1352829926,1548603684,1836072691,2053994217,0];LEe(p8,Jee),p8.prototype._update=function(){for(var t=DEe,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var n=0|this._a,f=0|this._b,a=0|this._c,c=0|this._d,l=0|this._e,p=0|this._a,w=0|this._b,m=0|this._c,y=0|this._d,g=0|this._e,S=0;S<80;S+=1){var x,A;S<16?(x=mG(n,f,a,c,l,t[r2[S]],o2[0],n2[S]),A=wG(p,w,m,y,g,t[i2[S]],s2[0],a2[S])):S<32?(x=gG(n,f,a,c,l,t[r2[S]],o2[1],n2[S]),A=bG(p,w,m,y,g,t[i2[S]],s2[1],a2[S])):S<48?(x=yG(n,f,a,c,l,t[r2[S]],o2[2],n2[S]),A=yG(p,w,m,y,g,t[i2[S]],s2[2],a2[S])):S<64?(x=bG(n,f,a,c,l,t[r2[S]],o2[3],n2[S]),A=gG(p,w,m,y,g,t[i2[S]],s2[3],a2[S])):(x=wG(n,f,a,c,l,t[r2[S]],o2[4],n2[S]),A=mG(p,w,m,y,g,t[i2[S]],s2[4],a2[S])),n=l,l=c,c=td(a,10),a=f,f=x,p=g,g=y,y=td(m,10),m=w,w=A}var T=this._b+a+y|0;this._b=this._c+c+g|0,this._c=this._d+l+p|0,this._d=this._e+n+w|0,this._e=this._a+f+m|0,this._a=T},p8.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=sA.alloc?sA.alloc(20):new sA(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t};Uk=p8,Cn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,Xee=Bi.Buffer;v8.prototype.update=function(t,e){typeof t=="string"&&(e=e||"utf8",t=Xee.from(t,e));for(var n=(this||Cn)._block,f=(this||Cn)._blockSize,a=t.length,c=(this||Cn)._len,l=0;l<a;){for(var p=c%f,w=Math.min(a-l,f-p),m=0;m<w;m++)n[p+m]=t[l+m];l+=w,(c+=w)%f==0&&this._update(n)}return(this||Cn)._len+=a,this||Cn},v8.prototype.digest=function(t){var e=(this||Cn)._len%(this||Cn)._blockSize;(this||Cn)._block[e]=128,(this||Cn)._block.fill(0,e+1),e>=(this||Cn)._finalSize&&(this._update((this||Cn)._block),(this||Cn)._block.fill(0));var n=8*(this||Cn)._len;if(n<=4294967295)(this||Cn)._block.writeUInt32BE(n,(this||Cn)._blockSize-4);else{var f=(4294967295&n)>>>0,a=(n-f)/4294967296;(this||Cn)._block.writeUInt32BE(a,(this||Cn)._blockSize-8),(this||Cn)._block.writeUInt32BE(f,(this||Cn)._blockSize-4)}this._update((this||Cn)._block);var c=this._hash();return t?c.toString(t):c},v8.prototype._update=function(){throw new Error("_update must be implemented by subclass")};wp=v8,si=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,$Ee=ei,Qee=wp,UEe=Bi.Buffer,qEe=[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],jEe=new Array(64);$Ee(m2,Qee),m2.prototype.init=function(){return(this||si)._a=1779033703,(this||si)._b=3144134277,(this||si)._c=1013904242,(this||si)._d=2773480762,(this||si)._e=1359893119,(this||si)._f=2600822924,(this||si)._g=528734635,(this||si)._h=1541459225,this||si},m2.prototype._update=function(t){for(var e,n=(this||si)._w,f=0|(this||si)._a,a=0|(this||si)._b,c=0|(this||si)._c,l=0|(this||si)._d,p=0|(this||si)._e,w=0|(this||si)._f,m=0|(this||si)._g,y=0|(this||si)._h,g=0;g<16;++g)n[g]=t.readInt32BE(4*g);for(;g<64;++g)n[g]=0|(((e=n[g-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+n[g-7]+KEe(n[g-15])+n[g-16];for(var S=0;S<64;++S){var x=y+ZEe(p)+FEe(p,w,m)+qEe[S]+n[S]|0,A=HEe(f)+zEe(f,a,c)|0;y=m,m=w,w=p,p=l+x|0,l=c,c=a,a=f,f=x+A|0}(this||si)._a=f+(this||si)._a|0,(this||si)._b=a+(this||si)._b|0,(this||si)._c=c+(this||si)._c|0,(this||si)._d=l+(this||si)._d|0,(this||si)._e=p+(this||si)._e|0,(this||si)._f=w+(this||si)._f|0,(this||si)._g=m+(this||si)._g|0,(this||si)._h=y+(this||si)._h|0},m2.prototype._hash=function(){var t=UEe.allocUnsafe(32);return t.writeInt32BE((this||si)._a,0),t.writeInt32BE((this||si)._b,4),t.writeInt32BE((this||si)._c,8),t.writeInt32BE((this||si)._d,12),t.writeInt32BE((this||si)._e,16),t.writeInt32BE((this||si)._f,20),t.writeInt32BE((this||si)._g,24),t.writeInt32BE((this||si)._h,28),t};ete=m2,ln=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,WEe=ei,tte=wp,VEe=Bi.Buffer,GEe=[1518500249,1859775393,-1894007588,-899497514],YEe=new Array(80);WEe(g2,tte),g2.prototype.init=function(){return(this||ln)._a=1732584193,(this||ln)._b=4023233417,(this||ln)._c=2562383102,(this||ln)._d=271733878,(this||ln)._e=3285377520,this||ln},g2.prototype._update=function(t){for(var e,n=(this||ln)._w,f=0|(this||ln)._a,a=0|(this||ln)._b,c=0|(this||ln)._c,l=0|(this||ln)._d,p=0|(this||ln)._e,w=0;w<16;++w)n[w]=t.readInt32BE(4*w);for(;w<80;++w)n[w]=n[w-3]^n[w-8]^n[w-14]^n[w-16];for(var m=0;m<80;++m){var y=~~(m/20),g=0|((e=f)<<5|e>>>27)+XEe(y,a,c,l)+p+n[m]+GEe[y];p=l,l=c,c=JEe(a),a=f,f=g}(this||ln)._a=f+(this||ln)._a|0,(this||ln)._b=a+(this||ln)._b|0,(this||ln)._c=c+(this||ln)._c|0,(this||ln)._d=l+(this||ln)._d|0,(this||ln)._e=p+(this||ln)._e|0},g2.prototype._hash=function(){var t=VEe.allocUnsafe(20);return t.writeInt32BE(0|(this||ln)._a,0),t.writeInt32BE(0|(this||ln)._b,4),t.writeInt32BE(0|(this||ln)._c,8),t.writeInt32BE(0|(this||ln)._d,12),t.writeInt32BE(0|(this||ln)._e,16),t};QEe=g2,cn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,eAe=ei,rte=wp,tAe=Bi.Buffer,rAe=[1518500249,1859775393,-1894007588,-899497514],iAe=new Array(80);eAe(y2,rte),y2.prototype.init=function(){return(this||cn)._a=1732584193,(this||cn)._b=4023233417,(this||cn)._c=2562383102,(this||cn)._d=271733878,(this||cn)._e=3285377520,this||cn},y2.prototype._update=function(t){for(var e,n=(this||cn)._w,f=0|(this||cn)._a,a=0|(this||cn)._b,c=0|(this||cn)._c,l=0|(this||cn)._d,p=0|(this||cn)._e,w=0;w<16;++w)n[w]=t.readInt32BE(4*w);for(;w<80;++w)n[w]=(e=n[w-3]^n[w-8]^n[w-14]^n[w-16])<<1|e>>>31;for(var m=0;m<80;++m){var y=~~(m/20),g=nAe(f)+oAe(y,a,c,l)+p+n[m]+rAe[y]|0;p=l,l=c,c=aAe(a),a=f,f=g}(this||cn)._a=f+(this||cn)._a|0,(this||cn)._b=a+(this||cn)._b|0,(this||cn)._c=c+(this||cn)._c|0,(this||cn)._d=l+(this||cn)._d|0,(this||cn)._e=p+(this||cn)._e|0},y2.prototype._hash=function(){var t=tAe.allocUnsafe(20);return t.writeInt32BE(0|(this||cn)._a,0),t.writeInt32BE(0|(this||cn)._b,4),t.writeInt32BE(0|(this||cn)._c,8),t.writeInt32BE(0|(this||cn)._d,12),t.writeInt32BE(0|(this||cn)._e,16),t};sAe=y2,Oa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,fAe=ei,uAe=ete,hAe=wp,lAe=Bi.Buffer,cAe=new Array(64);fAe(m8,uAe),m8.prototype.init=function(){return(this||Oa)._a=3238371032,(this||Oa)._b=914150663,(this||Oa)._c=812702999,(this||Oa)._d=4144912697,(this||Oa)._e=4290775857,(this||Oa)._f=1750603025,(this||Oa)._g=1694076839,(this||Oa)._h=3204075428,this||Oa},m8.prototype._hash=function(){var t=lAe.allocUnsafe(28);return t.writeInt32BE((this||Oa)._a,0),t.writeInt32BE((this||Oa)._b,4),t.writeInt32BE((this||Oa)._c,8),t.writeInt32BE((this||Oa)._d,12),t.writeInt32BE((this||Oa)._e,16),t.writeInt32BE((this||Oa)._f,20),t.writeInt32BE((this||Oa)._g,24),t};dAe=m8,br=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,pAe=ei,ite=wp,vAe=Bi.Buffer,_G=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],mAe=new Array(160);pAe(b2,ite),b2.prototype.init=function(){return(this||br)._ah=1779033703,(this||br)._bh=3144134277,(this||br)._ch=1013904242,(this||br)._dh=2773480762,(this||br)._eh=1359893119,(this||br)._fh=2600822924,(this||br)._gh=528734635,(this||br)._hh=1541459225,(this||br)._al=4089235720,(this||br)._bl=2227873595,(this||br)._cl=4271175723,(this||br)._dl=1595750129,(this||br)._el=2917565137,(this||br)._fl=725511199,(this||br)._gl=4215389547,(this||br)._hl=327033209,this||br},b2.prototype._update=function(t){for(var e=(this||br)._w,n=0|(this||br)._ah,f=0|(this||br)._bh,a=0|(this||br)._ch,c=0|(this||br)._dh,l=0|(this||br)._eh,p=0|(this||br)._fh,w=0|(this||br)._gh,m=0|(this||br)._hh,y=0|(this||br)._al,g=0|(this||br)._bl,S=0|(this||br)._cl,x=0|(this||br)._dl,A=0|(this||br)._el,T=0|(this||br)._fl,I=0|(this||br)._gl,B=0|(this||br)._hl,P=0;P<32;P+=2)e[P]=t.readInt32BE(4*P),e[P+1]=t.readInt32BE(4*P+4);for(;P<160;P+=2){var C=e[P-30],q=e[P-30+1],Z=gAe(C,q),G=yAe(q,C),j=bAe(C=e[P-4],q=e[P-4+1]),z=wAe(q,C),J=e[P-14],E=e[P-14+1],i=e[P-32],s=e[P-32+1],u=G+E|0,d=Z+J+ka(u,G)|0;d=(d=d+j+ka(u=u+z|0,z)|0)+i+ka(u=u+s|0,s)|0,e[P]=d,e[P+1]=u}for(var v=0;v<160;v+=2){d=e[v],u=e[v+1];var _=SG(n,f,a),R=SG(y,g,S),o=EG(n,y),r=EG(y,n),h=AG(l,A),b=AG(A,l),M=_G[v],k=_G[v+1],D=MG(l,p,w),Q=MG(A,T,I),W=B+b|0,X=m+h+ka(W,B)|0;X=(X=(X=X+D+ka(W=W+Q|0,Q)|0)+M+ka(W=W+k|0,k)|0)+d+ka(W=W+u|0,u)|0;var V=r+R|0,Y=o+_+ka(V,r)|0;m=w,B=I,w=p,I=T,p=l,T=A,l=c+X+ka(A=x+W|0,x)|0,c=a,x=S,a=f,S=g,f=n,g=y,n=X+Y+ka(y=W+V|0,W)|0}(this||br)._al=(this||br)._al+y|0,(this||br)._bl=(this||br)._bl+g|0,(this||br)._cl=(this||br)._cl+S|0,(this||br)._dl=(this||br)._dl+x|0,(this||br)._el=(this||br)._el+A|0,(this||br)._fl=(this||br)._fl+T|0,(this||br)._gl=(this||br)._gl+I|0,(this||br)._hl=(this||br)._hl+B|0,(this||br)._ah=(this||br)._ah+n+ka((this||br)._al,y)|0,(this||br)._bh=(this||br)._bh+f+ka((this||br)._bl,g)|0,(this||br)._ch=(this||br)._ch+a+ka((this||br)._cl,S)|0,(this||br)._dh=(this||br)._dh+c+ka((this||br)._dl,x)|0,(this||br)._eh=(this||br)._eh+l+ka((this||br)._el,A)|0,(this||br)._fh=(this||br)._fh+p+ka((this||br)._fl,T)|0,(this||br)._gh=(this||br)._gh+w+ka((this||br)._gl,I)|0,(this||br)._hh=(this||br)._hh+m+ka((this||br)._hl,B)|0},b2.prototype._hash=function(){var t=vAe.allocUnsafe(64);function e(n,f,a){t.writeInt32BE(n,a),t.writeInt32BE(f,a+4)}return e((this||br)._ah,(this||br)._al,0),e((this||br)._bh,(this||br)._bl,8),e((this||br)._ch,(this||br)._cl,16),e((this||br)._dh,(this||br)._dl,24),e((this||br)._eh,(this||br)._el,32),e((this||br)._fh,(this||br)._fl,40),e((this||br)._gh,(this||br)._gl,48),e((this||br)._hh,(this||br)._hl,56),t};nte=b2,en=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,_Ae=ei,MAe=nte,SAe=wp,EAe=Bi.Buffer,AAe=new Array(160);_Ae(g8,MAe),g8.prototype.init=function(){return(this||en)._ah=3418070365,(this||en)._bh=1654270250,(this||en)._ch=2438529370,(this||en)._dh=355462360,(this||en)._eh=1731405415,(this||en)._fh=2394180231,(this||en)._gh=3675008525,(this||en)._hh=1203062813,(this||en)._al=3238371032,(this||en)._bl=914150663,(this||en)._cl=812702999,(this||en)._dl=4144912697,(this||en)._el=4290775857,(this||en)._fl=1750603025,(this||en)._gl=1694076839,(this||en)._hl=3204075428,this||en},g8.prototype._hash=function(){var t=EAe.allocUnsafe(48);function e(n,f,a){t.writeInt32BE(n,a),t.writeInt32BE(f,a+4)}return e((this||en)._ah,(this||en)._al,0),e((this||en)._bh,(this||en)._bl,8),e((this||en)._ch,(this||en)._cl,16),e((this||en)._dh,(this||en)._dl,24),e((this||en)._eh,(this||en)._el,32),e((this||en)._fh,(this||en)._fl,40),t};xAe=g8,ate={exports:Kl={}};(Kl=ate.exports=function(t){t=t.toLowerCase();var e=Kl[t];if(!e)throw new Error(t+" is not supported (we accept pull requests)");return new e}).sha=QEe,Kl.sha1=sAe,Kl.sha224=dAe,Kl.sha256=ete,Kl.sha384=xAe,Kl.sha512=nte;qk=ate.exports,Wn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,xG=Bi.Buffer,ote=of.Transform,RAe=ia.StringDecoder;ei(Yf,ote),Yf.prototype.update=function(t,e,n){typeof t=="string"&&(t=xG.from(t,e));var f=this._update(t);return(this||Wn).hashMode?this||Wn:(n&&(f=this._toString(f,n)),f)},Yf.prototype.setAutoPadding=function(){},Yf.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},Yf.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},Yf.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},Yf.prototype._transform=function(t,e,n){var f;try{(this||Wn).hashMode?this._update(t):this.push(this._update(t))}catch(a){f=a}finally{n(f)}},Yf.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(n){e=n}t(e)},Yf.prototype._finalOrDigest=function(t){var e=this.__final()||xG.alloc(0);return t&&(e=this._toString(e,t,!0)),e},Yf.prototype._toString=function(t,e,n){if((this||Wn)._decoder||((this||Wn)._decoder=new RAe(e),(this||Wn)._encoding=e),(this||Wn)._encoding!==e)throw new Error("can't switch encodings");var f=(this||Wn)._decoder.write(t);return n&&(f+=(this||Wn)._decoder.end()),f};fc=Yf,kAe=$k,TAe=Uk,IAe=qk,ste=fc;ei(y8,ste),y8.prototype._update=function(t){this._hash.update(t)},y8.prototype._final=function(){return this._hash.digest()};Z2=function(t){return(t=t.toLowerCase())==="md5"?new kAe:t==="rmd160"||t==="ripemd160"?new TAe:new y8(IAe(t))},BAe=$k,fte=function(t){return new BAe().update(t).digest()},OAe=ei,Y0=Bi.Buffer,ute=fc,PAe=Y0.alloc(128);OAe(b8,ute),b8.prototype._update=function(t){this._hash.push(t)},b8.prototype._final=function(){var t=this._alg(Y0.concat(this._hash));return this._alg(Y0.concat([this._opad,t]))};NAe=ei,CAe=b8,hte=fc,w2=Bi.Buffer,LAe=fte,ik=Uk,nk=qk,DAe=w2.alloc(128);NAe(I2,hte),I2.prototype._update=function(t){this._hash.update(t)},I2.prototype._final=function(){var t=this._hash.digest();return(this._alg==="rmd160"?new ik:nk(this._alg)).update(this._opad).update(t).digest()};lte=function(t,e){return(t=t.toLowerCase())==="rmd160"||t==="ripemd160"?new I2("rmd160",e):t==="md5"?new CAe(LAe,e):new I2(t,e)},cte={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}},$Ae=jr.Buffer,UAe=Math.pow(2,30)-1;dte=function(t,e,n,f){if(RG(t,"Password"),RG(e,"Salt"),typeof n!="number")throw new TypeError("Iterations not a number");if(n<0)throw new TypeError("Bad iterations");if(typeof f!="number")throw new TypeError("Key length not a number");if(f<0||f>UAe||f!=f)throw new TypeError("Bad key length")},kG=Ur;kG.browser?ak="utf-8":ak=parseInt(kG.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";pte=ak,Qf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,qAe=fte,jAe=Uk,FAe=qk,zAe=dte,TG=pte,tu=Bi.Buffer,HAe=tu.alloc(128),w8={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};vte.prototype.run=function(t,e){return t.copy(e,(this||Qf).blocksize),this.hash(e).copy((this||Qf).opad,(this||Qf).blocksize),this.hash((this||Qf).opad)};mte=function(t,e,n,f,a){zAe(t,e,n,f),tu.isBuffer(t)||(t=tu.from(t,TG)),tu.isBuffer(e)||(e=tu.from(e,TG));var c=new vte(a=a||"sha1",t,e.length),l=tu.allocUnsafe(f),p=tu.allocUnsafe(e.length+4);e.copy(p,0,0,e.length);for(var w=0,m=w8[a],y=Math.ceil(f/m),g=1;g<=y;g++){p.writeUInt32BE(g,e.length);for(var S=c.run(p,c.ipad1),x=S,A=1;A<n;A++){x=c.run(x,c.ipad2);for(var T=0;T<m;T++)S[T]^=x[T]}S.copy(l,w),w+=m}return l},B2=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,uA=Ur,ZAe=dte,IG=pte,BG=mte,rp=Bi.Buffer,O2=B2.crypto&&B2.crypto.subtle,KAe={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},hA=[];WAe=function(t,e,n,f,a,c){typeof a=="function"&&(c=a,a=void 0);var l=KAe[(a=a||"sha1").toLowerCase()];if(!l||typeof B2.Promise!="function")return uA.nextTick(function(){var p;try{p=BG(t,e,n,f,a)}catch(w){return c(w)}c(null,p)});if(ZAe(t,e,n,f),typeof c!="function")throw new Error("No callback provided to pbkdf2");rp.isBuffer(t)||(t=rp.from(t,IG)),rp.isBuffer(e)||(e=rp.from(e,IG)),function(p,w){p.then(function(m){uA.nextTick(function(){w(null,m)})},function(m){uA.nextTick(function(){w(m)})})}(function(p){if(B2.process&&!B2.process.browser||!O2||!O2.importKey||!O2.deriveBits)return Promise.resolve(!1);if(hA[p]!==void 0)return hA[p];var w=OG(fA=fA||rp.alloc(8),fA,10,128,p).then(function(){return!0}).catch(function(){return!1});return hA[p]=w,w}(l).then(function(p){return p?OG(t,e,n,f,l):BG(t,e,n,f,a)}),c)},O8={};O8.pbkdf2=WAe,O8.pbkdf2Sync=mte;gte=PG,PG.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)};sf=gte,rd={readUInt32BE:function(t,e){return(t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e])>>>0},writeUInt32BE:function(t,e,n){t[0+n]=e>>>24,t[1+n]=e>>>16&255,t[2+n]=e>>>8&255,t[3+n]=255&e},ip:function(t,e,n,f){for(var a=0,c=0,l=6;l>=0;l-=2){for(var p=0;p<=24;p+=8)a<<=1,a|=e>>>p+l&1;for(p=0;p<=24;p+=8)a<<=1,a|=t>>>p+l&1}for(l=6;l>=0;l-=2){for(p=1;p<=25;p+=8)c<<=1,c|=e>>>p+l&1;for(p=1;p<=25;p+=8)c<<=1,c|=t>>>p+l&1}n[f+0]=a>>>0,n[f+1]=c>>>0},rip:function(t,e,n,f){for(var a=0,c=0,l=0;l<4;l++)for(var p=24;p>=0;p-=8)a<<=1,a|=e>>>p+l&1,a<<=1,a|=t>>>p+l&1;for(l=4;l<8;l++)for(p=24;p>=0;p-=8)c<<=1,c|=e>>>p+l&1,c<<=1,c|=t>>>p+l&1;n[f+0]=a>>>0,n[f+1]=c>>>0},pc1:function(t,e,n,f){for(var a=0,c=0,l=7;l>=5;l--){for(var p=0;p<=24;p+=8)a<<=1,a|=e>>p+l&1;for(p=0;p<=24;p+=8)a<<=1,a|=t>>p+l&1}for(p=0;p<=24;p+=8)a<<=1,a|=e>>p+l&1;for(l=1;l<=3;l++){for(p=0;p<=24;p+=8)c<<=1,c|=e>>p+l&1;for(p=0;p<=24;p+=8)c<<=1,c|=t>>p+l&1}for(p=0;p<=24;p+=8)c<<=1,c|=t>>p+l&1;n[f+0]=a>>>0,n[f+1]=c>>>0},r28shl:function(t,e){return t<<e&268435455|t>>>28-e}},C3=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];rd.pc2=function(t,e,n,f){for(var a=0,c=0,l=C3.length>>>1,p=0;p<l;p++)a<<=1,a|=t>>>C3[p]&1;for(p=l;p<C3.length;p++)c<<=1,c|=e>>>C3[p]&1;n[f+0]=a>>>0,n[f+1]=c>>>0},rd.expand=function(t,e,n){var f=0,a=0;f=(1&t)<<5|t>>>27;for(var c=23;c>=15;c-=4)f<<=6,f|=t>>>c&63;for(c=11;c>=3;c-=4)a|=t>>>c&63,a<<=6;a|=(31&t)<<1|t>>>31,e[n+0]=f>>>0,e[n+1]=a>>>0};NG=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];rd.substitute=function(t,e){for(var n=0,f=0;f<4;f++)n<<=4,n|=NG[64*f+(t>>>18-6*f&63)];for(f=0;f<4;f++)n<<=4,n|=NG[256+64*f+(e>>>18-6*f&63)];return n>>>0};CG=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];rd.permute=function(t){for(var e=0,n=0;n<CG.length;n++)e<<=1,e|=t>>>CG[n]&1;return e>>>0},rd.padSplit=function(t,e,n){for(var f=t.toString(2);f.length<e;)f="0"+f;for(var a=[],c=0;c<e;c+=n)a.push(f.slice(c,c+n));return a.join(" ")};VAe=sf;yte=Vs,Vs.prototype._init=function(){},Vs.prototype.update=function(t){return t.length===0?[]:this.type==="decrypt"?this._updateDecrypt(t):this._updateEncrypt(t)},Vs.prototype._buffer=function(t,e){for(var n=Math.min(this.buffer.length-this.bufferOff,t.length-e),f=0;f<n;f++)this.buffer[this.bufferOff+f]=t[e+f];return this.bufferOff+=n,n},Vs.prototype._flushBuffer=function(t,e){return this._update(this.buffer,0,t,e),this.bufferOff=0,this.blockSize},Vs.prototype._updateEncrypt=function(t){var e=0,n=0,f=(this.bufferOff+t.length)/this.blockSize|0,a=new Array(f*this.blockSize);this.bufferOff!==0&&(e+=this._buffer(t,e),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(a,n)));for(var c=t.length-(t.length-e)%this.blockSize;e<c;e+=this.blockSize)this._update(t,e,a,n),n+=this.blockSize;for(;e<t.length;e++,this.bufferOff++)this.buffer[this.bufferOff]=t[e];return a},Vs.prototype._updateDecrypt=function(t){for(var e=0,n=0,f=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,a=new Array(f*this.blockSize);f>0;f--)e+=this._buffer(t,e),n+=this._flushBuffer(a,n);return e+=this._buffer(t,e),a},Vs.prototype.final=function(t){var e,n;return t&&(e=this.update(t)),n=this.type==="encrypt"?this._finalEncrypt():this._finalDecrypt(),e?e.concat(n):n},Vs.prototype._pad=function(t,e){if(e===0)return!1;for(;e<t.length;)t[e++]=0;return!0},Vs.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=new Array(this.blockSize);return this._update(this.buffer,0,t,0),t},Vs.prototype._unpad=function(t){return t},Vs.prototype._finalDecrypt=function(){VAe.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=new Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)};jk=yte,LG=sf,ca=rd,wte=jk;ei(Wu,wte),bte=Wu,Wu.create=function(t){return new Wu(t)};YAe=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];Wu.prototype.deriveKeys=function(t,e){t.keys=new Array(32),LG.equal(e.length,this.blockSize,"Invalid key length");var n=ca.readUInt32BE(e,0),f=ca.readUInt32BE(e,4);ca.pc1(n,f,t.tmp,0),n=t.tmp[0],f=t.tmp[1];for(var a=0;a<t.keys.length;a+=2){var c=YAe[a>>>1];n=ca.r28shl(n,c),f=ca.r28shl(f,c),ca.pc2(n,f,t.keys,a)}},Wu.prototype._update=function(t,e,n,f){var a=this._desState,c=ca.readUInt32BE(t,e),l=ca.readUInt32BE(t,e+4);ca.ip(c,l,a.tmp,0),c=a.tmp[0],l=a.tmp[1],this.type==="encrypt"?this._encrypt(a,c,l,a.tmp,0):this._decrypt(a,c,l,a.tmp,0),c=a.tmp[0],l=a.tmp[1],ca.writeUInt32BE(n,c,f),ca.writeUInt32BE(n,l,f+4)},Wu.prototype._pad=function(t,e){for(var n=t.length-e,f=e;f<t.length;f++)t[f]=n;return!0},Wu.prototype._unpad=function(t){for(var e=t[t.length-1],n=t.length-e;n<t.length;n++)LG.equal(t[n],e);return t.slice(0,t.length-e)},Wu.prototype._encrypt=function(t,e,n,f,a){for(var c=e,l=n,p=0;p<t.keys.length;p+=2){var w=t.keys[p],m=t.keys[p+1];ca.expand(l,t.tmp,0),w^=t.tmp[0],m^=t.tmp[1];var y=ca.substitute(w,m),g=l;l=(c^ca.permute(y))>>>0,c=g}ca.rip(l,c,f,a)},Wu.prototype._decrypt=function(t,e,n,f,a){for(var c=n,l=e,p=t.keys.length-2;p>=0;p-=2){var w=t.keys[p],m=t.keys[p+1];ca.expand(c,t.tmp,0),w^=t.tmp[0],m^=t.tmp[1];var y=ca.substitute(w,m),g=c;c=(l^ca.permute(y))>>>0,l=g}ca.rip(c,l,f,a)};_te=bte,Mte={},JAe=sf,XAe=ei,L3={};Mte.instantiate=function(t){function e(c){t.call(this,c),this._cbcInit()}XAe(e,t);for(var n=Object.keys(L3),f=0;f<n.length;f++){var a=n[f];e.prototype[a]=L3[a]}return e.create=function(c){return new e(c)},e},L3._cbcInit=function(){var t=new QAe(this.options.iv);this._cbcState=t},L3._update=function(t,e,n,f){var a=this._cbcState,c=this.constructor.super_.prototype,l=a.iv;if(this.type==="encrypt"){for(var p=0;p<this.blockSize;p++)l[p]^=t[e+p];for(c._update.call(this,l,0,n,f),p=0;p<this.blockSize;p++)l[p]=n[f+p]}else{for(c._update.call(this,t,e,n,f),p=0;p<this.blockSize;p++)n[f+p]^=l[p];for(p=0;p<this.blockSize;p++)l[p]=t[e+p]}};exe=sf,Ete=jk,ec=_te;ei(T0,Ete),Ste=T0,T0.create=function(t){return new T0(t)},T0.prototype._update=function(t,e,n,f){var a=this._edeState;a.ciphers[0]._update(t,e,n,f),a.ciphers[1]._update(n,f,n,f),a.ciphers[2]._update(n,f,n,f)},T0.prototype._pad=ec.prototype._pad,T0.prototype._unpad=ec.prototype._unpad;rxe=Ste,ip={};ip.utils=rd,ip.Cipher=jk,ip.DES=_te,ip.CBC=Mte,ip.EDE=rxe;P8=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,xte=fc,$h=ip,ixe=ei,H0=Bi.Buffer,_2={"des-ede3-cbc":$h.CBC.instantiate($h.EDE),"des-ede3":$h.EDE,"des-ede-cbc":$h.CBC.instantiate($h.EDE),"des-ede":$h.EDE,"des-cbc":$h.CBC.instantiate($h.DES),"des-ecb":$h.DES};_2.des=_2["des-cbc"],_2.des3=_2["des-ede3-cbc"],Ate=D3,ixe(D3,xte),D3.prototype._update=function(t){return H0.from((this||P8)._des.update(t))},D3.prototype._final=function(){return H0.from((this||P8)._des.final())};nxe=Ate,axe=jr.Buffer,K2=function(t,e){for(var n=Math.min(t.length,e.length),f=new axe(n),a=0;a<n;++a)f[a]=t[a]^e[a];return f},Rte=function(t){for(var e,n=t.length;n--;){if((e=t.readUInt8(n))!==255){e++,t.writeUInt8(e,n);break}t.writeUInt8(0,n)}},oxe={encrypt:function(t,e){return t._cipher.encryptBlock(e)},decrypt:function(t,e){return t._cipher.decryptBlock(e)}},ok={},DG=K2;ok.encrypt=function(t,e){var n=DG(e,t._prev);return t._prev=t._cipher.encryptBlock(n),t._prev},ok.decrypt=function(t,e){var n=t._prev;t._prev=e;var f=t._cipher.decryptBlock(e);return DG(f,n)};kte={},M2=Bi.Buffer,sxe=K2;kte.encrypt=function(t,e,n){for(var f,a=M2.allocUnsafe(0);e.length;){if(t._cache.length===0&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=M2.allocUnsafe(0)),!(t._cache.length<=e.length)){a=M2.concat([a,$G(t,e,n)]);break}f=t._cache.length,a=M2.concat([a,$G(t,e.slice(0,f),n)]),e=e.slice(f)}return a};Tte={},sk=Bi.Buffer;Tte.encrypt=function(t,e,n){for(var f=e.length,a=sk.allocUnsafe(f),c=-1;++c<f;)a[c]=fxe(t,e[c],n);return a};Ite={},_8=Bi.Buffer;Ite.encrypt=function(t,e,n){for(var f=e.length,a=_8.allocUnsafe(f),c=-1;++c<f;)a[c]=uxe(t,e[c],n);return a};Bte={},lxe=jr.Buffer,cxe=K2;Bte.encrypt=function(t,e){for(;t._cache.length<e.length;)t._cache=lxe.concat([t._cache,dxe(t)]);var n=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),cxe(e,n)};fk={},pxe=K2,UG=Bi.Buffer,vxe=Rte;fk.encrypt=function(t,e){var n=Math.ceil(e.length/16),f=t._cache.length;t._cache=UG.concat([t._cache,UG.allocUnsafe(16*n)]);for(var a=0;a<n;a++){var c=mxe(t),l=f+16*a;t._cache.writeUInt32BE(c[0],l+0),t._cache.writeUInt32BE(c[1],l+4),t._cache.writeUInt32BE(c[2],l+8),t._cache.writeUInt32BE(c[3],l+12)}var p=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),pxe(e,p)};Ote={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}},gxe={ECB:oxe,CBC:ok,CFB:kte,CFB8:Tte,CFB1:Ite,OFB:Bte,CTR:fk,GCM:fk},M8=Ote;for(lA in M8)M8[lA].module=gxe[M8[lA].mode];Fk=M8,rf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,W2={},N8=Bi.Buffer;yxe=[0,1,2,4,8,16,32,64,128,27,54],aa=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var n=[],f=[],a=[[],[],[],[]],c=[[],[],[],[]],l=0,p=0,w=0;w<256;++w){var m=p^p<<1^p<<2^p<<3^p<<4;m=m>>>8^255&m^99,n[l]=m,f[m]=l;var y=t[l],g=t[y],S=t[g],x=257*t[m]^16843008*m;a[0][l]=x<<24|x>>>8,a[1][l]=x<<16|x>>>16,a[2][l]=x<<8|x>>>24,a[3][l]=x,x=16843009*S^65537*g^257*y^16843008*l,c[0][m]=x<<24|x>>>8,c[1][m]=x<<16|x>>>16,c[2][m]=x<<8|x>>>24,c[3][m]=x,l===0?l=p=1:(l=y^t[t[t[S^y]]],p^=t[t[p]])}return{SBOX:n,INV_SBOX:f,SUB_MIX:a,INV_SUB_MIX:c}}();Gs.blockSize=16,Gs.keySize=32,Gs.prototype.blockSize=Gs.blockSize,Gs.prototype.keySize=Gs.keySize,Gs.prototype._reset=function(){for(var t=(this||rf)._key,e=t.length,n=e+6,f=4*(n+1),a=[],c=0;c<e;c++)a[c]=t[c];for(c=e;c<f;c++){var l=a[c-1];c%e==0?(l=l<<8|l>>>24,l=aa.SBOX[l>>>24]<<24|aa.SBOX[l>>>16&255]<<16|aa.SBOX[l>>>8&255]<<8|aa.SBOX[255&l],l^=yxe[c/e|0]<<24):e>6&&c%e==4&&(l=aa.SBOX[l>>>24]<<24|aa.SBOX[l>>>16&255]<<16|aa.SBOX[l>>>8&255]<<8|aa.SBOX[255&l]),a[c]=a[c-e]^l}for(var p=[],w=0;w<f;w++){var m=f-w,y=a[m-(w%4?0:4)];p[w]=w<4||m<=4?y:aa.INV_SUB_MIX[0][aa.SBOX[y>>>24]]^aa.INV_SUB_MIX[1][aa.SBOX[y>>>16&255]]^aa.INV_SUB_MIX[2][aa.SBOX[y>>>8&255]]^aa.INV_SUB_MIX[3][aa.SBOX[255&y]]}(this||rf)._nRounds=n,(this||rf)._keySchedule=a,(this||rf)._invKeySchedule=p},Gs.prototype.encryptBlockRaw=function(t){return qG(t=uk(t),(this||rf)._keySchedule,aa.SUB_MIX,aa.SBOX,(this||rf)._nRounds)},Gs.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),n=N8.allocUnsafe(16);return n.writeUInt32BE(e[0],0),n.writeUInt32BE(e[1],4),n.writeUInt32BE(e[2],8),n.writeUInt32BE(e[3],12),n},Gs.prototype.decryptBlock=function(t){var e=(t=uk(t))[1];t[1]=t[3],t[3]=e;var n=qG(t,(this||rf)._invKeySchedule,aa.INV_SUB_MIX,aa.INV_SBOX,(this||rf)._nRounds),f=N8.allocUnsafe(16);return f.writeUInt32BE(n[0],0),f.writeUInt32BE(n[3],4),f.writeUInt32BE(n[2],8),f.writeUInt32BE(n[1],12),f},Gs.prototype.scrub=function(){cA((this||rf)._keySchedule),cA((this||rf)._invKeySchedule),cA((this||rf)._key)},W2.AES=Gs;Qa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,cp=Bi.Buffer,bxe=cp.alloc(16,0);S2.prototype.ghash=function(t){for(var e=-1;++e<t.length;)(this||Qa).state[e]^=t[e];this._multiply()},S2.prototype._multiply=function(){for(var t,e,n,f=[(t=(this||Qa).h).readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)],a=[0,0,0,0],c=-1;++c<128;){for((this||Qa).state[~~(c/8)]&1<<7-c%8&&(a[0]^=f[0],a[1]^=f[1],a[2]^=f[2],a[3]^=f[3]),n=(1&f[3])!=0,e=3;e>0;e--)f[e]=f[e]>>>1|(1&f[e-1])<<31;f[0]=f[0]>>>1,n&&(f[0]=f[0]^225<<24)}(this||Qa).state=jG(a)},S2.prototype.update=function(t){var e;for((this||Qa).cache=cp.concat([(this||Qa).cache,t]);(this||Qa).cache.length>=16;)e=(this||Qa).cache.slice(0,16),(this||Qa).cache=(this||Qa).cache.slice(16),this.ghash(e)},S2.prototype.final=function(t,e){return(this||Qa).cache.length&&this.ghash(cp.concat([(this||Qa).cache,bxe],16)),this.ghash(jG([0,t,0,e])),(this||Qa).state};wxe=S2,fi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,_xe=W2,Co=Bi.Buffer,Pte=fc,FG=wxe,Mxe=K2,Sxe=Rte;ei(q0,Pte),q0.prototype._update=function(t){if(!(this||fi)._called&&(this||fi)._alen){var e=16-(this||fi)._alen%16;e<16&&(e=Co.alloc(e,0),(this||fi)._ghash.update(e))}(this||fi)._called=!0;var n=(this||fi)._mode.encrypt(this||fi,t);return(this||fi)._decrypt?(this||fi)._ghash.update(t):(this||fi)._ghash.update(n),(this||fi)._len+=t.length,n},q0.prototype._final=function(){if((this||fi)._decrypt&&!(this||fi)._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=Mxe((this||fi)._ghash.final(8*(this||fi)._alen,8*(this||fi)._len),(this||fi)._cipher.encryptBlock((this||fi)._finID));if((this||fi)._decrypt&&function(e,n){var f=0;e.length!==n.length&&f++;for(var a=Math.min(e.length,n.length),c=0;c<a;++c)f+=e[c]^n[c];return f}(t,(this||fi)._authTag))throw new Error("Unsupported state or unable to authenticate data");(this||fi)._authTag=t,(this||fi)._cipher.scrub()},q0.prototype.getAuthTag=function(){if((this||fi)._decrypt||!Co.isBuffer((this||fi)._authTag))throw new Error("Attempting to get auth tag in unsupported state");return(this||fi)._authTag},q0.prototype.setAuthTag=function(t){if(!(this||fi)._decrypt)throw new Error("Attempting to set auth tag in unsupported state");(this||fi)._authTag=t},q0.prototype.setAAD=function(t){if((this||fi)._called)throw new Error("Attempting to set AAD in unsupported state");(this||fi)._ghash.update(t),(this||fi)._alen+=t.length};Nte=q0,eu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,Exe=W2,dA=Bi.Buffer,Cte=fc;ei(S8,Cte),S8.prototype._update=function(t){return(this||eu)._mode.encrypt(this||eu,t,(this||eu)._decrypt)},S8.prototype._final=function(){(this||eu)._cipher.scrub()};Lte=S8,I0=Bi.Buffer,Axe=$k,G8=function(t,e,n,f){if(I0.isBuffer(t)||(t=I0.from(t,"binary")),e&&(I0.isBuffer(e)||(e=I0.from(e,"binary")),e.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=n/8,c=I0.alloc(a),l=I0.alloc(f||0),p=I0.alloc(0);a>0||f>0;){var w=new Axe;w.update(p),w.update(t),e&&w.update(e),p=w.digest();var m=0;if(a>0){var y=c.length-a;m=Math.min(a,p.length),p.copy(c,y,0,m),a-=m}if(m<p.length&&f>0){var g=l.length-f,S=Math.min(f,p.length-m);p.copy(l,g,m,m+S),f-=S}}return p.fill(0),{key:c,iv:l}},tn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,hk={},xxe=Nte,dp=Bi.Buffer,Dte=Fk,Rxe=Lte,$te=fc,kxe=W2,Txe=G8;ei(E2,$te),E2.prototype._update=function(t){var e,n;(this||tn)._cache.add(t);for(var f=[];e=(this||tn)._cache.get((this||tn)._autopadding);)n=(this||tn)._mode.decrypt(this||tn,e),f.push(n);return dp.concat(f)},E2.prototype._final=function(){var t=(this||tn)._cache.flush();if((this||tn)._autopadding)return function(e){var n=e[15];if(n<1||n>16)throw new Error("unable to decrypt data");for(var f=-1;++f<n;)if(e[f+(16-n)]!==n)throw new Error("unable to decrypt data");if(n!==16)return e.slice(0,16-n)}((this||tn)._mode.decrypt(this||tn,t));if(t)throw new Error("data not multiple of block length")},E2.prototype.setAutoPadding=function(t){return(this||tn)._autopadding=!!t,this||tn},E8.prototype.add=function(t){(this||tn).cache=dp.concat([(this||tn).cache,t])},E8.prototype.get=function(t){var e;if(t){if((this||tn).cache.length>16)return e=(this||tn).cache.slice(0,16),(this||tn).cache=(this||tn).cache.slice(16),e}else if((this||tn).cache.length>=16)return e=(this||tn).cache.slice(0,16),(this||tn).cache=(this||tn).cache.slice(16),e;return null},E8.prototype.flush=function(){if((this||tn).cache.length)return(this||tn).cache},hk.createDecipher=function(t,e){var n=Dte[t.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var f=Txe(e,!1,n.key,n.iv);return zG(t,f.key,f.iv)},hk.createDecipheriv=zG;xn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,lk={},Ute=Fk,Ixe=Nte,Kh=Bi.Buffer,Bxe=Lte,qte=fc,Oxe=W2,Pxe=G8;ei(L2,qte),L2.prototype._update=function(t){var e,n;(this||xn)._cache.add(t);for(var f=[];e=(this||xn)._cache.get();)n=(this||xn)._mode.encrypt(this||xn,e),f.push(n);return Kh.concat(f)};Nxe=Kh.alloc(16,16);L2.prototype._final=function(){var t=(this||xn)._cache.flush();if((this||xn)._autopadding)return t=(this||xn)._mode.encrypt(this||xn,t),(this||xn)._cipher.scrub(),t;if(!t.equals(Nxe))throw(this||xn)._cipher.scrub(),new Error("data not multiple of block length")},L2.prototype.setAutoPadding=function(t){return(this||xn)._autopadding=!!t,this||xn},A8.prototype.add=function(t){(this||xn).cache=Kh.concat([(this||xn).cache,t])},A8.prototype.get=function(){if((this||xn).cache.length>15){var t=(this||xn).cache.slice(0,16);return(this||xn).cache=(this||xn).cache.slice(16),t}return null},A8.prototype.flush=function(){for(var t=16-(this||xn).cache.length,e=Kh.allocUnsafe(t),n=-1;++n<t;)e.writeUInt8(t,n);return Kh.concat([(this||xn).cache,e])},lk.createCipheriv=HG,lk.createCipher=function(t,e){var n=Ute[t.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var f=Pxe(e,!1,n.key,n.iv);return HG(t,f.key,f.iv)};as={},ZG=lk,KG=hk,Cxe=Ote;as.createCipher=as.Cipher=ZG.createCipher,as.createCipheriv=as.Cipheriv=ZG.createCipheriv,as.createDecipher=as.Decipher=KG.createDecipher,as.createDecipheriv=as.Decipheriv=KG.createDecipheriv,as.listCiphers=as.getCiphers=function(){return Object.keys(Cxe)};Wl={"des-ecb":{key:8,iv:0}};Wl["des-cbc"]=Wl.des={key:8,iv:8},Wl["des-ede3-cbc"]=Wl.des3={key:24,iv:8},Wl["des-ede3"]={key:24,iv:0},Wl["des-ede-cbc"]={key:16,iv:8},Wl["des-ede"]={key:16,iv:0};Jf={},jte=nxe,zk=as,tc=Fk,qh=Wl,WG=G8;Jf.createCipher=Jf.Cipher=function(t,e){var n,f;if(t=t.toLowerCase(),tc[t])n=tc[t].key,f=tc[t].iv;else{if(!qh[t])throw new TypeError("invalid suite type");n=8*qh[t].key,f=qh[t].iv}var a=WG(e,!1,n,f);return VG(t,a.key,a.iv)},Jf.createCipheriv=Jf.Cipheriv=VG,Jf.createDecipher=Jf.Decipher=function(t,e){var n,f;if(t=t.toLowerCase(),tc[t])n=tc[t].key,f=tc[t].iv;else{if(!qh[t])throw new TypeError("invalid suite type");n=8*qh[t].key,f=qh[t].iv}var a=WG(e,!1,n,f);return GG(t,a.key,a.iv)},Jf.createDecipheriv=Jf.Decipheriv=GG,Jf.listCiphers=Jf.getCiphers=function(){return Object.keys(qh).concat(zk.getCiphers())};Lxe=Object.freeze({}),et=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,Fte={},zte={exports:Fte};(function(t,e){function n(j,z){if(!j)throw new Error(z||"Assertion failed")}function f(j,z){j.super_=z;var J=function(){};J.prototype=z.prototype,j.prototype=new J,j.prototype.constructor=j}function a(j,z,J){if(a.isBN(j))return j;(this||et).negative=0,(this||et).words=null,(this||et).length=0,(this||et).red=null,j!==null&&(z!=="le"&&z!=="be"||(J=z,z=10),this._init(j||0,z||10,J||"be"))}var c;typeof t=="object"?t.exports=a:e.BN=a,a.BN=a,a.wordSize=26;try{c=Lxe.Buffer}catch{}function l(j,z,J){for(var E=0,i=Math.min(j.length,J),s=z;s<i;s++){var u=j.charCodeAt(s)-48;E<<=4,E|=u>=49&&u<=54?u-49+10:u>=17&&u<=22?u-17+10:15&u}return E}function p(j,z,J,E){for(var i=0,s=Math.min(j.length,J),u=z;u<s;u++){var d=j.charCodeAt(u)-48;i*=E,i+=d>=49?d-49+10:d>=17?d-17+10:d}return i}a.isBN=function(j){return j instanceof a||j!==null&&typeof j=="object"&&j.constructor.wordSize===a.wordSize&&Array.isArray(j.words)},a.max=function(j,z){return j.cmp(z)>0?j:z},a.min=function(j,z){return j.cmp(z)<0?j:z},a.prototype._init=function(j,z,J){if(typeof j=="number")return this._initNumber(j,z,J);if(typeof j=="object")return this._initArray(j,z,J);z==="hex"&&(z=16),n(z===(0|z)&&z>=2&&z<=36);var E=0;(j=j.toString().replace(/\s+/g,""))[0]==="-"&&E++,z===16?this._parseHex(j,E):this._parseBase(j,z,E),j[0]==="-"&&((this||et).negative=1),this.strip(),J==="le"&&this._initArray(this.toArray(),z,J)},a.prototype._initNumber=function(j,z,J){j<0&&((this||et).negative=1,j=-j),j<67108864?((this||et).words=[67108863&j],(this||et).length=1):j<4503599627370496?((this||et).words=[67108863&j,j/67108864&67108863],(this||et).length=2):(n(j<9007199254740992),(this||et).words=[67108863&j,j/67108864&67108863,1],(this||et).length=3),J==="le"&&this._initArray(this.toArray(),z,J)},a.prototype._initArray=function(j,z,J){if(n(typeof j.length=="number"),j.length<=0)return(this||et).words=[0],(this||et).length=1,this||et;(this||et).length=Math.ceil(j.length/3),(this||et).words=new Array((this||et).length);for(var E=0;E<(this||et).length;E++)(this||et).words[E]=0;var i,s,u=0;if(J==="be")for(E=j.length-1,i=0;E>=0;E-=3)s=j[E]|j[E-1]<<8|j[E-2]<<16,(this||et).words[i]|=s<<u&67108863,(this||et).words[i+1]=s>>>26-u&67108863,(u+=24)>=26&&(u-=26,i++);else if(J==="le")for(E=0,i=0;E<j.length;E+=3)s=j[E]|j[E+1]<<8|j[E+2]<<16,(this||et).words[i]|=s<<u&67108863,(this||et).words[i+1]=s>>>26-u&67108863,(u+=24)>=26&&(u-=26,i++);return this.strip()},a.prototype._parseHex=function(j,z){(this||et).length=Math.ceil((j.length-z)/6),(this||et).words=new Array((this||et).length);for(var J=0;J<(this||et).length;J++)(this||et).words[J]=0;var E,i,s=0;for(J=j.length-6,E=0;J>=z;J-=6)i=l(j,J,J+6),(this||et).words[E]|=i<<s&67108863,(this||et).words[E+1]|=i>>>26-s&4194303,(s+=24)>=26&&(s-=26,E++);J+6!==z&&(i=l(j,z,J+6),(this||et).words[E]|=i<<s&67108863,(this||et).words[E+1]|=i>>>26-s&4194303),this.strip()},a.prototype._parseBase=function(j,z,J){(this||et).words=[0],(this||et).length=1;for(var E=0,i=1;i<=67108863;i*=z)E++;E--,i=i/z|0;for(var s=j.length-J,u=s%E,d=Math.min(s,s-u)+J,v=0,_=J;_<d;_+=E)v=p(j,_,_+E,z),this.imuln(i),(this||et).words[0]+v<67108864?(this||et).words[0]+=v:this._iaddn(v);if(u!==0){var R=1;for(v=p(j,_,j.length,z),_=0;_<u;_++)R*=z;this.imuln(R),(this||et).words[0]+v<67108864?(this||et).words[0]+=v:this._iaddn(v)}},a.prototype.copy=function(j){j.words=new Array((this||et).length);for(var z=0;z<(this||et).length;z++)j.words[z]=(this||et).words[z];j.length=(this||et).length,j.negative=(this||et).negative,j.red=(this||et).red},a.prototype.clone=function(){var j=new a(null);return this.copy(j),j},a.prototype._expand=function(j){for(;(this||et).length<j;)(this||et).words[(this||et).length++]=0;return this||et},a.prototype.strip=function(){for(;(this||et).length>1&&(this||et).words[(this||et).length-1]===0;)(this||et).length--;return this._normSign()},a.prototype._normSign=function(){return(this||et).length===1&&(this||et).words[0]===0&&((this||et).negative=0),this||et},a.prototype.inspect=function(){return((this||et).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"],m=[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],y=[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];function g(j,z,J){J.negative=z.negative^j.negative;var E=j.length+z.length|0;J.length=E,E=E-1|0;var i=0|j.words[0],s=0|z.words[0],u=i*s,d=67108863&u,v=u/67108864|0;J.words[0]=d;for(var _=1;_<E;_++){for(var R=v>>>26,o=67108863&v,r=Math.min(_,z.length-1),h=Math.max(0,_-j.length+1);h<=r;h++){var b=_-h|0;R+=(u=(i=0|j.words[b])*(s=0|z.words[h])+o)/67108864|0,o=67108863&u}J.words[_]=0|o,v=0|R}return v!==0?J.words[_]=0|v:J.length--,J.strip()}a.prototype.toString=function(j,z){var J;if(z=0|z||1,(j=j||10)===16||j==="hex"){J="";for(var E=0,i=0,s=0;s<(this||et).length;s++){var u=(this||et).words[s],d=(16777215&(u<<E|i)).toString(16);J=(i=u>>>24-E&16777215)!==0||s!==(this||et).length-1?w[6-d.length]+d+J:d+J,(E+=2)>=26&&(E-=26,s--)}for(i!==0&&(J=i.toString(16)+J);J.length%z!=0;)J="0"+J;return(this||et).negative!==0&&(J="-"+J),J}if(j===(0|j)&&j>=2&&j<=36){var v=m[j],_=y[j];J="";var R=this.clone();for(R.negative=0;!R.isZero();){var o=R.modn(_).toString(j);J=(R=R.idivn(_)).isZero()?o+J:w[v-o.length]+o+J}for(this.isZero()&&(J="0"+J);J.length%z!=0;)J="0"+J;return(this||et).negative!==0&&(J="-"+J),J}n(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var j=(this||et).words[0];return(this||et).length===2?j+=67108864*(this||et).words[1]:(this||et).length===3&&(this||et).words[2]===1?j+=4503599627370496+67108864*(this||et).words[1]:(this||et).length>2&&n(!1,"Number can only safely store up to 53 bits"),(this||et).negative!==0?-j:j},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(j,z){return n(c!==void 0),this.toArrayLike(c,j,z)},a.prototype.toArray=function(j,z){return this.toArrayLike(Array,j,z)},a.prototype.toArrayLike=function(j,z,J){var E=this.byteLength(),i=J||Math.max(1,E);n(E<=i,"byte array longer than desired length"),n(i>0,"Requested array length <= 0"),this.strip();var s,u,d=z==="le",v=new j(i),_=this.clone();if(d){for(u=0;!_.isZero();u++)s=_.andln(255),_.iushrn(8),v[u]=s;for(;u<i;u++)v[u]=0}else{for(u=0;u<i-E;u++)v[u]=0;for(u=0;!_.isZero();u++)s=_.andln(255),_.iushrn(8),v[i-u-1]=s}return v},Math.clz32?a.prototype._countBits=function(j){return 32-Math.clz32(j)}:a.prototype._countBits=function(j){var z=j,J=0;return z>=4096&&(J+=13,z>>>=13),z>=64&&(J+=7,z>>>=7),z>=8&&(J+=4,z>>>=4),z>=2&&(J+=2,z>>>=2),J+z},a.prototype._zeroBits=function(j){if(j===0)return 26;var z=j,J=0;return!(8191&z)&&(J+=13,z>>>=13),!(127&z)&&(J+=7,z>>>=7),!(15&z)&&(J+=4,z>>>=4),!(3&z)&&(J+=2,z>>>=2),!(1&z)&&J++,J},a.prototype.bitLength=function(){var j=(this||et).words[(this||et).length-1],z=this._countBits(j);return 26*((this||et).length-1)+z},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,z=0;z<(this||et).length;z++){var J=this._zeroBits((this||et).words[z]);if(j+=J,J!==26)break}return j},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(j){return(this||et).negative!==0?this.abs().inotn(j).iaddn(1):this.clone()},a.prototype.fromTwos=function(j){return this.testn(j-1)?this.notn(j).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return(this||et).negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||((this||et).negative^=1),this||et},a.prototype.iuor=function(j){for(;(this||et).length<j.length;)(this||et).words[(this||et).length++]=0;for(var z=0;z<j.length;z++)(this||et).words[z]=(this||et).words[z]|j.words[z];return this.strip()},a.prototype.ior=function(j){return n(((this||et).negative|j.negative)==0),this.iuor(j)},a.prototype.or=function(j){return(this||et).length>j.length?this.clone().ior(j):j.clone().ior(this||et)},a.prototype.uor=function(j){return(this||et).length>j.length?this.clone().iuor(j):j.clone().iuor(this||et)},a.prototype.iuand=function(j){var z;z=(this||et).length>j.length?j:this||et;for(var J=0;J<z.length;J++)(this||et).words[J]=(this||et).words[J]&j.words[J];return(this||et).length=z.length,this.strip()},a.prototype.iand=function(j){return n(((this||et).negative|j.negative)==0),this.iuand(j)},a.prototype.and=function(j){return(this||et).length>j.length?this.clone().iand(j):j.clone().iand(this||et)},a.prototype.uand=function(j){return(this||et).length>j.length?this.clone().iuand(j):j.clone().iuand(this||et)},a.prototype.iuxor=function(j){var z,J;(this||et).length>j.length?(z=this||et,J=j):(z=j,J=this||et);for(var E=0;E<J.length;E++)(this||et).words[E]=z.words[E]^J.words[E];if((this||et)!==z)for(;E<z.length;E++)(this||et).words[E]=z.words[E];return(this||et).length=z.length,this.strip()},a.prototype.ixor=function(j){return n(((this||et).negative|j.negative)==0),this.iuxor(j)},a.prototype.xor=function(j){return(this||et).length>j.length?this.clone().ixor(j):j.clone().ixor(this||et)},a.prototype.uxor=function(j){return(this||et).length>j.length?this.clone().iuxor(j):j.clone().iuxor(this||et)},a.prototype.inotn=function(j){n(typeof j=="number"&&j>=0);var z=0|Math.ceil(j/26),J=j%26;this._expand(z),J>0&&z--;for(var E=0;E<z;E++)(this||et).words[E]=67108863&~(this||et).words[E];return J>0&&((this||et).words[E]=~(this||et).words[E]&67108863>>26-J),this.strip()},a.prototype.notn=function(j){return this.clone().inotn(j)},a.prototype.setn=function(j,z){n(typeof j=="number"&&j>=0);var J=j/26|0,E=j%26;return this._expand(J+1),(this||et).words[J]=z?(this||et).words[J]|1<<E:(this||et).words[J]&~(1<<E),this.strip()},a.prototype.iadd=function(j){var z,J,E;if((this||et).negative!==0&&j.negative===0)return(this||et).negative=0,z=this.isub(j),(this||et).negative^=1,this._normSign();if((this||et).negative===0&&j.negative!==0)return j.negative=0,z=this.isub(j),j.negative=1,z._normSign();(this||et).length>j.length?(J=this||et,E=j):(J=j,E=this||et);for(var i=0,s=0;s<E.length;s++)z=(0|J.words[s])+(0|E.words[s])+i,(this||et).words[s]=67108863&z,i=z>>>26;for(;i!==0&&s<J.length;s++)z=(0|J.words[s])+i,(this||et).words[s]=67108863&z,i=z>>>26;if((this||et).length=J.length,i!==0)(this||et).words[(this||et).length]=i,(this||et).length++;else if(J!==(this||et))for(;s<J.length;s++)(this||et).words[s]=J.words[s];return this||et},a.prototype.add=function(j){var z;return j.negative!==0&&(this||et).negative===0?(j.negative=0,z=this.sub(j),j.negative^=1,z):j.negative===0&&(this||et).negative!==0?((this||et).negative=0,z=j.sub(this||et),(this||et).negative=1,z):(this||et).length>j.length?this.clone().iadd(j):j.clone().iadd(this||et)},a.prototype.isub=function(j){if(j.negative!==0){j.negative=0;var z=this.iadd(j);return j.negative=1,z._normSign()}if((this||et).negative!==0)return(this||et).negative=0,this.iadd(j),(this||et).negative=1,this._normSign();var J,E,i=this.cmp(j);if(i===0)return(this||et).negative=0,(this||et).length=1,(this||et).words[0]=0,this||et;i>0?(J=this||et,E=j):(J=j,E=this||et);for(var s=0,u=0;u<E.length;u++)s=(z=(0|J.words[u])-(0|E.words[u])+s)>>26,(this||et).words[u]=67108863&z;for(;s!==0&&u<J.length;u++)s=(z=(0|J.words[u])+s)>>26,(this||et).words[u]=67108863&z;if(s===0&&u<J.length&&J!==(this||et))for(;u<J.length;u++)(this||et).words[u]=J.words[u];return(this||et).length=Math.max((this||et).length,u),J!==(this||et)&&((this||et).negative=1),this.strip()},a.prototype.sub=function(j){return this.clone().isub(j)};var S=function(j,z,J){var E,i,s,u=j.words,d=z.words,v=J.words,_=0,R=0|u[0],o=8191&R,r=R>>>13,h=0|u[1],b=8191&h,M=h>>>13,k=0|u[2],D=8191&k,Q=k>>>13,W=0|u[3],X=8191&W,V=W>>>13,Y=0|u[4],ae=8191&Y,te=Y>>>13,U=0|u[5],K=8191&U,ie=U>>>13,fe=0|u[6],de=8191&fe,he=fe>>>13,pe=0|u[7],De=8191&pe,Ae=pe>>>13,_e=0|u[8],ut=8191&_e,qe=_e>>>13,Te=0|u[9],mt=8191&Te,ne=Te>>>13,O=0|d[0],N=8191&O,$=O>>>13,ee=0|d[1],re=8191&ee,se=ee>>>13,ce=0|d[2],st=8191&ce,ye=ce>>>13,be=0|d[3],me=8191&be,ke=be>>>13,je=0|d[4],le=8191&je,Ie=je>>>13,Se=0|d[5],Ee=8191&Se,Me=Se>>>13,Re=0|d[6],wt=8191&Re,Ne=Re>>>13,Ce=0|d[7],At=8191&Ce,dt=Ce>>>13,rt=0|d[8],Et=8191&rt,lt=rt>>>13,ot=0|d[9],It=8191&ot,pt=ot>>>13;J.negative=j.negative^z.negative,J.length=19;var ft=(_+(E=Math.imul(o,N))|0)+((8191&(i=(i=Math.imul(o,$))+Math.imul(r,N)|0))<<13)|0;_=((s=Math.imul(r,$))+(i>>>13)|0)+(ft>>>26)|0,ft&=67108863,E=Math.imul(b,N),i=(i=Math.imul(b,$))+Math.imul(M,N)|0,s=Math.imul(M,$);var Tt=(_+(E=E+Math.imul(o,re)|0)|0)+((8191&(i=(i=i+Math.imul(o,se)|0)+Math.imul(r,re)|0))<<13)|0;_=((s=s+Math.imul(r,se)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,E=Math.imul(D,N),i=(i=Math.imul(D,$))+Math.imul(Q,N)|0,s=Math.imul(Q,$),E=E+Math.imul(b,re)|0,i=(i=i+Math.imul(b,se)|0)+Math.imul(M,re)|0,s=s+Math.imul(M,se)|0;var vt=(_+(E=E+Math.imul(o,st)|0)|0)+((8191&(i=(i=i+Math.imul(o,ye)|0)+Math.imul(r,st)|0))<<13)|0;_=((s=s+Math.imul(r,ye)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,E=Math.imul(X,N),i=(i=Math.imul(X,$))+Math.imul(V,N)|0,s=Math.imul(V,$),E=E+Math.imul(D,re)|0,i=(i=i+Math.imul(D,se)|0)+Math.imul(Q,re)|0,s=s+Math.imul(Q,se)|0,E=E+Math.imul(b,st)|0,i=(i=i+Math.imul(b,ye)|0)+Math.imul(M,st)|0,s=s+Math.imul(M,ye)|0;var at=(_+(E=E+Math.imul(o,me)|0)|0)+((8191&(i=(i=i+Math.imul(o,ke)|0)+Math.imul(r,me)|0))<<13)|0;_=((s=s+Math.imul(r,ke)|0)+(i>>>13)|0)+(at>>>26)|0,at&=67108863,E=Math.imul(ae,N),i=(i=Math.imul(ae,$))+Math.imul(te,N)|0,s=Math.imul(te,$),E=E+Math.imul(X,re)|0,i=(i=i+Math.imul(X,se)|0)+Math.imul(V,re)|0,s=s+Math.imul(V,se)|0,E=E+Math.imul(D,st)|0,i=(i=i+Math.imul(D,ye)|0)+Math.imul(Q,st)|0,s=s+Math.imul(Q,ye)|0,E=E+Math.imul(b,me)|0,i=(i=i+Math.imul(b,ke)|0)+Math.imul(M,me)|0,s=s+Math.imul(M,ke)|0;var Bt=(_+(E=E+Math.imul(o,le)|0)|0)+((8191&(i=(i=i+Math.imul(o,Ie)|0)+Math.imul(r,le)|0))<<13)|0;_=((s=s+Math.imul(r,Ie)|0)+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,E=Math.imul(K,N),i=(i=Math.imul(K,$))+Math.imul(ie,N)|0,s=Math.imul(ie,$),E=E+Math.imul(ae,re)|0,i=(i=i+Math.imul(ae,se)|0)+Math.imul(te,re)|0,s=s+Math.imul(te,se)|0,E=E+Math.imul(X,st)|0,i=(i=i+Math.imul(X,ye)|0)+Math.imul(V,st)|0,s=s+Math.imul(V,ye)|0,E=E+Math.imul(D,me)|0,i=(i=i+Math.imul(D,ke)|0)+Math.imul(Q,me)|0,s=s+Math.imul(Q,ke)|0,E=E+Math.imul(b,le)|0,i=(i=i+Math.imul(b,Ie)|0)+Math.imul(M,le)|0,s=s+Math.imul(M,Ie)|0;var Wt=(_+(E=E+Math.imul(o,Ee)|0)|0)+((8191&(i=(i=i+Math.imul(o,Me)|0)+Math.imul(r,Ee)|0))<<13)|0;_=((s=s+Math.imul(r,Me)|0)+(i>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,E=Math.imul(de,N),i=(i=Math.imul(de,$))+Math.imul(he,N)|0,s=Math.imul(he,$),E=E+Math.imul(K,re)|0,i=(i=i+Math.imul(K,se)|0)+Math.imul(ie,re)|0,s=s+Math.imul(ie,se)|0,E=E+Math.imul(ae,st)|0,i=(i=i+Math.imul(ae,ye)|0)+Math.imul(te,st)|0,s=s+Math.imul(te,ye)|0,E=E+Math.imul(X,me)|0,i=(i=i+Math.imul(X,ke)|0)+Math.imul(V,me)|0,s=s+Math.imul(V,ke)|0,E=E+Math.imul(D,le)|0,i=(i=i+Math.imul(D,Ie)|0)+Math.imul(Q,le)|0,s=s+Math.imul(Q,Ie)|0,E=E+Math.imul(b,Ee)|0,i=(i=i+Math.imul(b,Me)|0)+Math.imul(M,Ee)|0,s=s+Math.imul(M,Me)|0;var Pt=(_+(E=E+Math.imul(o,wt)|0)|0)+((8191&(i=(i=i+Math.imul(o,Ne)|0)+Math.imul(r,wt)|0))<<13)|0;_=((s=s+Math.imul(r,Ne)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,E=Math.imul(De,N),i=(i=Math.imul(De,$))+Math.imul(Ae,N)|0,s=Math.imul(Ae,$),E=E+Math.imul(de,re)|0,i=(i=i+Math.imul(de,se)|0)+Math.imul(he,re)|0,s=s+Math.imul(he,se)|0,E=E+Math.imul(K,st)|0,i=(i=i+Math.imul(K,ye)|0)+Math.imul(ie,st)|0,s=s+Math.imul(ie,ye)|0,E=E+Math.imul(ae,me)|0,i=(i=i+Math.imul(ae,ke)|0)+Math.imul(te,me)|0,s=s+Math.imul(te,ke)|0,E=E+Math.imul(X,le)|0,i=(i=i+Math.imul(X,Ie)|0)+Math.imul(V,le)|0,s=s+Math.imul(V,Ie)|0,E=E+Math.imul(D,Ee)|0,i=(i=i+Math.imul(D,Me)|0)+Math.imul(Q,Ee)|0,s=s+Math.imul(Q,Me)|0,E=E+Math.imul(b,wt)|0,i=(i=i+Math.imul(b,Ne)|0)+Math.imul(M,wt)|0,s=s+Math.imul(M,Ne)|0;var Nt=(_+(E=E+Math.imul(o,At)|0)|0)+((8191&(i=(i=i+Math.imul(o,dt)|0)+Math.imul(r,At)|0))<<13)|0;_=((s=s+Math.imul(r,dt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,E=Math.imul(ut,N),i=(i=Math.imul(ut,$))+Math.imul(qe,N)|0,s=Math.imul(qe,$),E=E+Math.imul(De,re)|0,i=(i=i+Math.imul(De,se)|0)+Math.imul(Ae,re)|0,s=s+Math.imul(Ae,se)|0,E=E+Math.imul(de,st)|0,i=(i=i+Math.imul(de,ye)|0)+Math.imul(he,st)|0,s=s+Math.imul(he,ye)|0,E=E+Math.imul(K,me)|0,i=(i=i+Math.imul(K,ke)|0)+Math.imul(ie,me)|0,s=s+Math.imul(ie,ke)|0,E=E+Math.imul(ae,le)|0,i=(i=i+Math.imul(ae,Ie)|0)+Math.imul(te,le)|0,s=s+Math.imul(te,Ie)|0,E=E+Math.imul(X,Ee)|0,i=(i=i+Math.imul(X,Me)|0)+Math.imul(V,Ee)|0,s=s+Math.imul(V,Me)|0,E=E+Math.imul(D,wt)|0,i=(i=i+Math.imul(D,Ne)|0)+Math.imul(Q,wt)|0,s=s+Math.imul(Q,Ne)|0,E=E+Math.imul(b,At)|0,i=(i=i+Math.imul(b,dt)|0)+Math.imul(M,At)|0,s=s+Math.imul(M,dt)|0;var dr=(_+(E=E+Math.imul(o,Et)|0)|0)+((8191&(i=(i=i+Math.imul(o,lt)|0)+Math.imul(r,Et)|0))<<13)|0;_=((s=s+Math.imul(r,lt)|0)+(i>>>13)|0)+(dr>>>26)|0,dr&=67108863,E=Math.imul(mt,N),i=(i=Math.imul(mt,$))+Math.imul(ne,N)|0,s=Math.imul(ne,$),E=E+Math.imul(ut,re)|0,i=(i=i+Math.imul(ut,se)|0)+Math.imul(qe,re)|0,s=s+Math.imul(qe,se)|0,E=E+Math.imul(De,st)|0,i=(i=i+Math.imul(De,ye)|0)+Math.imul(Ae,st)|0,s=s+Math.imul(Ae,ye)|0,E=E+Math.imul(de,me)|0,i=(i=i+Math.imul(de,ke)|0)+Math.imul(he,me)|0,s=s+Math.imul(he,ke)|0,E=E+Math.imul(K,le)|0,i=(i=i+Math.imul(K,Ie)|0)+Math.imul(ie,le)|0,s=s+Math.imul(ie,Ie)|0,E=E+Math.imul(ae,Ee)|0,i=(i=i+Math.imul(ae,Me)|0)+Math.imul(te,Ee)|0,s=s+Math.imul(te,Me)|0,E=E+Math.imul(X,wt)|0,i=(i=i+Math.imul(X,Ne)|0)+Math.imul(V,wt)|0,s=s+Math.imul(V,Ne)|0,E=E+Math.imul(D,At)|0,i=(i=i+Math.imul(D,dt)|0)+Math.imul(Q,At)|0,s=s+Math.imul(Q,dt)|0,E=E+Math.imul(b,Et)|0,i=(i=i+Math.imul(b,lt)|0)+Math.imul(M,Et)|0,s=s+Math.imul(M,lt)|0;var qt=(_+(E=E+Math.imul(o,It)|0)|0)+((8191&(i=(i=i+Math.imul(o,pt)|0)+Math.imul(r,It)|0))<<13)|0;_=((s=s+Math.imul(r,pt)|0)+(i>>>13)|0)+(qt>>>26)|0,qt&=67108863,E=Math.imul(mt,re),i=(i=Math.imul(mt,se))+Math.imul(ne,re)|0,s=Math.imul(ne,se),E=E+Math.imul(ut,st)|0,i=(i=i+Math.imul(ut,ye)|0)+Math.imul(qe,st)|0,s=s+Math.imul(qe,ye)|0,E=E+Math.imul(De,me)|0,i=(i=i+Math.imul(De,ke)|0)+Math.imul(Ae,me)|0,s=s+Math.imul(Ae,ke)|0,E=E+Math.imul(de,le)|0,i=(i=i+Math.imul(de,Ie)|0)+Math.imul(he,le)|0,s=s+Math.imul(he,Ie)|0,E=E+Math.imul(K,Ee)|0,i=(i=i+Math.imul(K,Me)|0)+Math.imul(ie,Ee)|0,s=s+Math.imul(ie,Me)|0,E=E+Math.imul(ae,wt)|0,i=(i=i+Math.imul(ae,Ne)|0)+Math.imul(te,wt)|0,s=s+Math.imul(te,Ne)|0,E=E+Math.imul(X,At)|0,i=(i=i+Math.imul(X,dt)|0)+Math.imul(V,At)|0,s=s+Math.imul(V,dt)|0,E=E+Math.imul(D,Et)|0,i=(i=i+Math.imul(D,lt)|0)+Math.imul(Q,Et)|0,s=s+Math.imul(Q,lt)|0;var Dt=(_+(E=E+Math.imul(b,It)|0)|0)+((8191&(i=(i=i+Math.imul(b,pt)|0)+Math.imul(M,It)|0))<<13)|0;_=((s=s+Math.imul(M,pt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,E=Math.imul(mt,st),i=(i=Math.imul(mt,ye))+Math.imul(ne,st)|0,s=Math.imul(ne,ye),E=E+Math.imul(ut,me)|0,i=(i=i+Math.imul(ut,ke)|0)+Math.imul(qe,me)|0,s=s+Math.imul(qe,ke)|0,E=E+Math.imul(De,le)|0,i=(i=i+Math.imul(De,Ie)|0)+Math.imul(Ae,le)|0,s=s+Math.imul(Ae,Ie)|0,E=E+Math.imul(de,Ee)|0,i=(i=i+Math.imul(de,Me)|0)+Math.imul(he,Ee)|0,s=s+Math.imul(he,Me)|0,E=E+Math.imul(K,wt)|0,i=(i=i+Math.imul(K,Ne)|0)+Math.imul(ie,wt)|0,s=s+Math.imul(ie,Ne)|0,E=E+Math.imul(ae,At)|0,i=(i=i+Math.imul(ae,dt)|0)+Math.imul(te,At)|0,s=s+Math.imul(te,dt)|0,E=E+Math.imul(X,Et)|0,i=(i=i+Math.imul(X,lt)|0)+Math.imul(V,Et)|0,s=s+Math.imul(V,lt)|0;var rr=(_+(E=E+Math.imul(D,It)|0)|0)+((8191&(i=(i=i+Math.imul(D,pt)|0)+Math.imul(Q,It)|0))<<13)|0;_=((s=s+Math.imul(Q,pt)|0)+(i>>>13)|0)+(rr>>>26)|0,rr&=67108863,E=Math.imul(mt,me),i=(i=Math.imul(mt,ke))+Math.imul(ne,me)|0,s=Math.imul(ne,ke),E=E+Math.imul(ut,le)|0,i=(i=i+Math.imul(ut,Ie)|0)+Math.imul(qe,le)|0,s=s+Math.imul(qe,Ie)|0,E=E+Math.imul(De,Ee)|0,i=(i=i+Math.imul(De,Me)|0)+Math.imul(Ae,Ee)|0,s=s+Math.imul(Ae,Me)|0,E=E+Math.imul(de,wt)|0,i=(i=i+Math.imul(de,Ne)|0)+Math.imul(he,wt)|0,s=s+Math.imul(he,Ne)|0,E=E+Math.imul(K,At)|0,i=(i=i+Math.imul(K,dt)|0)+Math.imul(ie,At)|0,s=s+Math.imul(ie,dt)|0,E=E+Math.imul(ae,Et)|0,i=(i=i+Math.imul(ae,lt)|0)+Math.imul(te,Et)|0,s=s+Math.imul(te,lt)|0;var sr=(_+(E=E+Math.imul(X,It)|0)|0)+((8191&(i=(i=i+Math.imul(X,pt)|0)+Math.imul(V,It)|0))<<13)|0;_=((s=s+Math.imul(V,pt)|0)+(i>>>13)|0)+(sr>>>26)|0,sr&=67108863,E=Math.imul(mt,le),i=(i=Math.imul(mt,Ie))+Math.imul(ne,le)|0,s=Math.imul(ne,Ie),E=E+Math.imul(ut,Ee)|0,i=(i=i+Math.imul(ut,Me)|0)+Math.imul(qe,Ee)|0,s=s+Math.imul(qe,Me)|0,E=E+Math.imul(De,wt)|0,i=(i=i+Math.imul(De,Ne)|0)+Math.imul(Ae,wt)|0,s=s+Math.imul(Ae,Ne)|0,E=E+Math.imul(de,At)|0,i=(i=i+Math.imul(de,dt)|0)+Math.imul(he,At)|0,s=s+Math.imul(he,dt)|0,E=E+Math.imul(K,Et)|0,i=(i=i+Math.imul(K,lt)|0)+Math.imul(ie,Et)|0,s=s+Math.imul(ie,lt)|0;var ir=(_+(E=E+Math.imul(ae,It)|0)|0)+((8191&(i=(i=i+Math.imul(ae,pt)|0)+Math.imul(te,It)|0))<<13)|0;_=((s=s+Math.imul(te,pt)|0)+(i>>>13)|0)+(ir>>>26)|0,ir&=67108863,E=Math.imul(mt,Ee),i=(i=Math.imul(mt,Me))+Math.imul(ne,Ee)|0,s=Math.imul(ne,Me),E=E+Math.imul(ut,wt)|0,i=(i=i+Math.imul(ut,Ne)|0)+Math.imul(qe,wt)|0,s=s+Math.imul(qe,Ne)|0,E=E+Math.imul(De,At)|0,i=(i=i+Math.imul(De,dt)|0)+Math.imul(Ae,At)|0,s=s+Math.imul(Ae,dt)|0,E=E+Math.imul(de,Et)|0,i=(i=i+Math.imul(de,lt)|0)+Math.imul(he,Et)|0,s=s+Math.imul(he,lt)|0;var lr=(_+(E=E+Math.imul(K,It)|0)|0)+((8191&(i=(i=i+Math.imul(K,pt)|0)+Math.imul(ie,It)|0))<<13)|0;_=((s=s+Math.imul(ie,pt)|0)+(i>>>13)|0)+(lr>>>26)|0,lr&=67108863,E=Math.imul(mt,wt),i=(i=Math.imul(mt,Ne))+Math.imul(ne,wt)|0,s=Math.imul(ne,Ne),E=E+Math.imul(ut,At)|0,i=(i=i+Math.imul(ut,dt)|0)+Math.imul(qe,At)|0,s=s+Math.imul(qe,dt)|0,E=E+Math.imul(De,Et)|0,i=(i=i+Math.imul(De,lt)|0)+Math.imul(Ae,Et)|0,s=s+Math.imul(Ae,lt)|0;var nr=(_+(E=E+Math.imul(de,It)|0)|0)+((8191&(i=(i=i+Math.imul(de,pt)|0)+Math.imul(he,It)|0))<<13)|0;_=((s=s+Math.imul(he,pt)|0)+(i>>>13)|0)+(nr>>>26)|0,nr&=67108863,E=Math.imul(mt,At),i=(i=Math.imul(mt,dt))+Math.imul(ne,At)|0,s=Math.imul(ne,dt),E=E+Math.imul(ut,Et)|0,i=(i=i+Math.imul(ut,lt)|0)+Math.imul(qe,Et)|0,s=s+Math.imul(qe,lt)|0;var ur=(_+(E=E+Math.imul(De,It)|0)|0)+((8191&(i=(i=i+Math.imul(De,pt)|0)+Math.imul(Ae,It)|0))<<13)|0;_=((s=s+Math.imul(Ae,pt)|0)+(i>>>13)|0)+(ur>>>26)|0,ur&=67108863,E=Math.imul(mt,Et),i=(i=Math.imul(mt,lt))+Math.imul(ne,Et)|0,s=Math.imul(ne,lt);var it=(_+(E=E+Math.imul(ut,It)|0)|0)+((8191&(i=(i=i+Math.imul(ut,pt)|0)+Math.imul(qe,It)|0))<<13)|0;_=((s=s+Math.imul(qe,pt)|0)+(i>>>13)|0)+(it>>>26)|0,it&=67108863;var we=(_+(E=Math.imul(mt,It))|0)+((8191&(i=(i=Math.imul(mt,pt))+Math.imul(ne,It)|0))<<13)|0;return _=((s=Math.imul(ne,pt))+(i>>>13)|0)+(we>>>26)|0,we&=67108863,v[0]=ft,v[1]=Tt,v[2]=vt,v[3]=at,v[4]=Bt,v[5]=Wt,v[6]=Pt,v[7]=Nt,v[8]=dr,v[9]=qt,v[10]=Dt,v[11]=rr,v[12]=sr,v[13]=ir,v[14]=lr,v[15]=nr,v[16]=ur,v[17]=it,v[18]=we,_!==0&&(v[19]=_,J.length++),J};function x(j,z,J){return new A().mulp(j,z,J)}function A(j,z){(this||et).x=j,(this||et).y=z}Math.imul||(S=g),a.prototype.mulTo=function(j,z){var J=(this||et).length+j.length;return(this||et).length===10&&j.length===10?S(this||et,j,z):J<63?g(this||et,j,z):J<1024?function(E,i,s){s.negative=i.negative^E.negative,s.length=E.length+i.length;for(var u=0,d=0,v=0;v<s.length-1;v++){var _=d;d=0;for(var R=67108863&u,o=Math.min(v,i.length-1),r=Math.max(0,v-E.length+1);r<=o;r++){var h=v-r,b=(0|E.words[h])*(0|i.words[r]),M=67108863&b;R=67108863&(M=M+R|0),d+=(_=(_=_+(b/67108864|0)|0)+(M>>>26)|0)>>>26,_&=67108863}s.words[v]=R,u=_,_=d}return u!==0?s.words[v]=u:s.length--,s.strip()}(this||et,j,z):x(this||et,j,z)},A.prototype.makeRBT=function(j){for(var z=new Array(j),J=a.prototype._countBits(j)-1,E=0;E<j;E++)z[E]=this.revBin(E,J,j);return z},A.prototype.revBin=function(j,z,J){if(j===0||j===J-1)return j;for(var E=0,i=0;i<z;i++)E|=(1&j)<<z-i-1,j>>=1;return E},A.prototype.permute=function(j,z,J,E,i,s){for(var u=0;u<s;u++)E[u]=z[j[u]],i[u]=J[j[u]]},A.prototype.transform=function(j,z,J,E,i,s){this.permute(s,j,z,J,E,i);for(var u=1;u<i;u<<=1)for(var d=u<<1,v=Math.cos(2*Math.PI/d),_=Math.sin(2*Math.PI/d),R=0;R<i;R+=d)for(var o=v,r=_,h=0;h<u;h++){var b=J[R+h],M=E[R+h],k=J[R+h+u],D=E[R+h+u],Q=o*k-r*D;D=o*D+r*k,k=Q,J[R+h]=b+k,E[R+h]=M+D,J[R+h+u]=b-k,E[R+h+u]=M-D,h!==d&&(Q=v*o-_*r,r=v*r+_*o,o=Q)}},A.prototype.guessLen13b=function(j,z){var J=1|Math.max(z,j),E=1&J,i=0;for(J=J/2|0;J;J>>>=1)i++;return 1<<i+1+E},A.prototype.conjugate=function(j,z,J){if(!(J<=1))for(var E=0;E<J/2;E++){var i=j[E];j[E]=j[J-E-1],j[J-E-1]=i,i=z[E],z[E]=-z[J-E-1],z[J-E-1]=-i}},A.prototype.normalize13b=function(j,z){for(var J=0,E=0;E<z/2;E++){var i=8192*Math.round(j[2*E+1]/z)+Math.round(j[2*E]/z)+J;j[E]=67108863&i,J=i<67108864?0:i/67108864|0}return j},A.prototype.convert13b=function(j,z,J,E){for(var i=0,s=0;s<z;s++)i+=0|j[s],J[2*s]=8191&i,i>>>=13,J[2*s+1]=8191&i,i>>>=13;for(s=2*z;s<E;++s)J[s]=0;n(i===0),n((-8192&i)==0)},A.prototype.stub=function(j){for(var z=new Array(j),J=0;J<j;J++)z[J]=0;return z},A.prototype.mulp=function(j,z,J){var E=2*this.guessLen13b(j.length,z.length),i=this.makeRBT(E),s=this.stub(E),u=new Array(E),d=new Array(E),v=new Array(E),_=new Array(E),R=new Array(E),o=new Array(E),r=J.words;r.length=E,this.convert13b(j.words,j.length,u,E),this.convert13b(z.words,z.length,_,E),this.transform(u,s,d,v,E,i),this.transform(_,s,R,o,E,i);for(var h=0;h<E;h++){var b=d[h]*R[h]-v[h]*o[h];v[h]=d[h]*o[h]+v[h]*R[h],d[h]=b}return this.conjugate(d,v,E),this.transform(d,v,r,s,E,i),this.conjugate(r,s,E),this.normalize13b(r,E),J.negative=j.negative^z.negative,J.length=j.length+z.length,J.strip()},a.prototype.mul=function(j){var z=new a(null);return z.words=new Array((this||et).length+j.length),this.mulTo(j,z)},a.prototype.mulf=function(j){var z=new a(null);return z.words=new Array((this||et).length+j.length),x(this||et,j,z)},a.prototype.imul=function(j){return this.clone().mulTo(j,this||et)},a.prototype.imuln=function(j){n(typeof j=="number"),n(j<67108864);for(var z=0,J=0;J<(this||et).length;J++){var E=(0|(this||et).words[J])*j,i=(67108863&E)+(67108863&z);z>>=26,z+=E/67108864|0,z+=i>>>26,(this||et).words[J]=67108863&i}return z!==0&&((this||et).words[J]=z,(this||et).length++),this||et},a.prototype.muln=function(j){return this.clone().imuln(j)},a.prototype.sqr=function(){return this.mul(this||et)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(j){var z=function(s){for(var u=new Array(s.bitLength()),d=0;d<u.length;d++){var v=d/26|0,_=d%26;u[d]=(s.words[v]&1<<_)>>>_}return u}(j);if(z.length===0)return new a(1);for(var J=this||et,E=0;E<z.length&&z[E]===0;E++,J=J.sqr());if(++E<z.length)for(var i=J.sqr();E<z.length;E++,i=i.sqr())z[E]!==0&&(J=J.mul(i));return J},a.prototype.iushln=function(j){n(typeof j=="number"&&j>=0);var z,J=j%26,E=(j-J)/26,i=67108863>>>26-J<<26-J;if(J!==0){var s=0;for(z=0;z<(this||et).length;z++){var u=(this||et).words[z]&i,d=(0|(this||et).words[z])-u<<J;(this||et).words[z]=d|s,s=u>>>26-J}s&&((this||et).words[z]=s,(this||et).length++)}if(E!==0){for(z=(this||et).length-1;z>=0;z--)(this||et).words[z+E]=(this||et).words[z];for(z=0;z<E;z++)(this||et).words[z]=0;(this||et).length+=E}return this.strip()},a.prototype.ishln=function(j){return n((this||et).negative===0),this.iushln(j)},a.prototype.iushrn=function(j,z,J){var E;n(typeof j=="number"&&j>=0),E=z?(z-z%26)/26:0;var i=j%26,s=Math.min((j-i)/26,(this||et).length),u=67108863^67108863>>>i<<i,d=J;if(E-=s,E=Math.max(0,E),d){for(var v=0;v<s;v++)d.words[v]=(this||et).words[v];d.length=s}if(s!==0)if((this||et).length>s)for((this||et).length-=s,v=0;v<(this||et).length;v++)(this||et).words[v]=(this||et).words[v+s];else(this||et).words[0]=0,(this||et).length=1;var _=0;for(v=(this||et).length-1;v>=0&&(_!==0||v>=E);v--){var R=0|(this||et).words[v];(this||et).words[v]=_<<26-i|R>>>i,_=R&u}return d&&_!==0&&(d.words[d.length++]=_),(this||et).length===0&&((this||et).words[0]=0,(this||et).length=1),this.strip()},a.prototype.ishrn=function(j,z,J){return n((this||et).negative===0),this.iushrn(j,z,J)},a.prototype.shln=function(j){return this.clone().ishln(j)},a.prototype.ushln=function(j){return this.clone().iushln(j)},a.prototype.shrn=function(j){return this.clone().ishrn(j)},a.prototype.ushrn=function(j){return this.clone().iushrn(j)},a.prototype.testn=function(j){n(typeof j=="number"&&j>=0);var z=j%26,J=(j-z)/26,E=1<<z;return!((this||et).length<=J)&&!!((this||et).words[J]&E)},a.prototype.imaskn=function(j){n(typeof j=="number"&&j>=0);var z=j%26,J=(j-z)/26;if(n((this||et).negative===0,"imaskn works only with positive numbers"),(this||et).length<=J)return this||et;if(z!==0&&J++,(this||et).length=Math.min(J,(this||et).length),z!==0){var E=67108863^67108863>>>z<<z;(this||et).words[(this||et).length-1]&=E}return this.strip()},a.prototype.maskn=function(j){return this.clone().imaskn(j)},a.prototype.iaddn=function(j){return n(typeof j=="number"),n(j<67108864),j<0?this.isubn(-j):(this||et).negative!==0?(this||et).length===1&&(0|(this||et).words[0])<j?((this||et).words[0]=j-(0|(this||et).words[0]),(this||et).negative=0,this||et):((this||et).negative=0,this.isubn(j),(this||et).negative=1,this||et):this._iaddn(j)},a.prototype._iaddn=function(j){(this||et).words[0]+=j;for(var z=0;z<(this||et).length&&(this||et).words[z]>=67108864;z++)(this||et).words[z]-=67108864,z===(this||et).length-1?(this||et).words[z+1]=1:(this||et).words[z+1]++;return(this||et).length=Math.max((this||et).length,z+1),this||et},a.prototype.isubn=function(j){if(n(typeof j=="number"),n(j<67108864),j<0)return this.iaddn(-j);if((this||et).negative!==0)return(this||et).negative=0,this.iaddn(j),(this||et).negative=1,this||et;if((this||et).words[0]-=j,(this||et).length===1&&(this||et).words[0]<0)(this||et).words[0]=-(this||et).words[0],(this||et).negative=1;else for(var z=0;z<(this||et).length&&(this||et).words[z]<0;z++)(this||et).words[z]+=67108864,(this||et).words[z+1]-=1;return this.strip()},a.prototype.addn=function(j){return this.clone().iaddn(j)},a.prototype.subn=function(j){return this.clone().isubn(j)},a.prototype.iabs=function(){return(this||et).negative=0,this||et},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(j,z,J){var E,i,s=j.length+J;this._expand(s);var u=0;for(E=0;E<j.length;E++){i=(0|(this||et).words[E+J])+u;var d=(0|j.words[E])*z;u=((i-=67108863&d)>>26)-(d/67108864|0),(this||et).words[E+J]=67108863&i}for(;E<(this||et).length-J;E++)u=(i=(0|(this||et).words[E+J])+u)>>26,(this||et).words[E+J]=67108863&i;if(u===0)return this.strip();for(n(u===-1),u=0,E=0;E<(this||et).length;E++)u=(i=-(0|(this||et).words[E])+u)>>26,(this||et).words[E]=67108863&i;return(this||et).negative=1,this.strip()},a.prototype._wordDiv=function(j,z){var J=((this||et).length,j.length),E=this.clone(),i=j,s=0|i.words[i.length-1];(J=26-this._countBits(s))!==0&&(i=i.ushln(J),E.iushln(J),s=0|i.words[i.length-1]);var u,d=E.length-i.length;if(z!=="mod"){(u=new a(null)).length=d+1,u.words=new Array(u.length);for(var v=0;v<u.length;v++)u.words[v]=0}var _=E.clone()._ishlnsubmul(i,1,d);_.negative===0&&(E=_,u&&(u.words[d]=1));for(var R=d-1;R>=0;R--){var o=67108864*(0|E.words[i.length+R])+(0|E.words[i.length+R-1]);for(o=Math.min(o/s|0,67108863),E._ishlnsubmul(i,o,R);E.negative!==0;)o--,E.negative=0,E._ishlnsubmul(i,1,R),E.isZero()||(E.negative^=1);u&&(u.words[R]=o)}return u&&u.strip(),E.strip(),z!=="div"&&J!==0&&E.iushrn(J),{div:u||null,mod:E}},a.prototype.divmod=function(j,z,J){return n(!j.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:(this||et).negative!==0&&j.negative===0?(s=this.neg().divmod(j,z),z!=="mod"&&(E=s.div.neg()),z!=="div"&&(i=s.mod.neg(),J&&i.negative!==0&&i.iadd(j)),{div:E,mod:i}):(this||et).negative===0&&j.negative!==0?(s=this.divmod(j.neg(),z),z!=="mod"&&(E=s.div.neg()),{div:E,mod:s.mod}):(this||et).negative&j.negative?(s=this.neg().divmod(j.neg(),z),z!=="div"&&(i=s.mod.neg(),J&&i.negative!==0&&i.isub(j)),{div:s.div,mod:i}):j.length>(this||et).length||this.cmp(j)<0?{div:new a(0),mod:this||et}:j.length===1?z==="div"?{div:this.divn(j.words[0]),mod:null}:z==="mod"?{div:null,mod:new a(this.modn(j.words[0]))}:{div:this.divn(j.words[0]),mod:new a(this.modn(j.words[0]))}:this._wordDiv(j,z);var E,i,s},a.prototype.div=function(j){return this.divmod(j,"div",!1).div},a.prototype.mod=function(j){return this.divmod(j,"mod",!1).mod},a.prototype.umod=function(j){return this.divmod(j,"mod",!0).mod},a.prototype.divRound=function(j){var z=this.divmod(j);if(z.mod.isZero())return z.div;var J=z.div.negative!==0?z.mod.isub(j):z.mod,E=j.ushrn(1),i=j.andln(1),s=J.cmp(E);return s<0||i===1&&s===0?z.div:z.div.negative!==0?z.div.isubn(1):z.div.iaddn(1)},a.prototype.modn=function(j){n(j<=67108863);for(var z=(1<<26)%j,J=0,E=(this||et).length-1;E>=0;E--)J=(z*J+(0|(this||et).words[E]))%j;return J},a.prototype.idivn=function(j){n(j<=67108863);for(var z=0,J=(this||et).length-1;J>=0;J--){var E=(0|(this||et).words[J])+67108864*z;(this||et).words[J]=E/j|0,z=E%j}return this.strip()},a.prototype.divn=function(j){return this.clone().idivn(j)},a.prototype.egcd=function(j){n(j.negative===0),n(!j.isZero());var z=this||et,J=j.clone();z=z.negative!==0?z.umod(j):z.clone();for(var E=new a(1),i=new a(0),s=new a(0),u=new a(1),d=0;z.isEven()&&J.isEven();)z.iushrn(1),J.iushrn(1),++d;for(var v=J.clone(),_=z.clone();!z.isZero();){for(var R=0,o=1;!(z.words[0]&o)&&R<26;++R,o<<=1);if(R>0)for(z.iushrn(R);R-- >0;)(E.isOdd()||i.isOdd())&&(E.iadd(v),i.isub(_)),E.iushrn(1),i.iushrn(1);for(var r=0,h=1;!(J.words[0]&h)&&r<26;++r,h<<=1);if(r>0)for(J.iushrn(r);r-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(v),u.isub(_)),s.iushrn(1),u.iushrn(1);z.cmp(J)>=0?(z.isub(J),E.isub(s),i.isub(u)):(J.isub(z),s.isub(E),u.isub(i))}return{a:s,b:u,gcd:J.iushln(d)}},a.prototype._invmp=function(j){n(j.negative===0),n(!j.isZero());var z=this||et,J=j.clone();z=z.negative!==0?z.umod(j):z.clone();for(var E,i=new a(1),s=new a(0),u=J.clone();z.cmpn(1)>0&&J.cmpn(1)>0;){for(var d=0,v=1;!(z.words[0]&v)&&d<26;++d,v<<=1);if(d>0)for(z.iushrn(d);d-- >0;)i.isOdd()&&i.iadd(u),i.iushrn(1);for(var _=0,R=1;!(J.words[0]&R)&&_<26;++_,R<<=1);if(_>0)for(J.iushrn(_);_-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);z.cmp(J)>=0?(z.isub(J),i.isub(s)):(J.isub(z),s.isub(i))}return(E=z.cmpn(1)===0?i:s).cmpn(0)<0&&E.iadd(j),E},a.prototype.gcd=function(j){if(this.isZero())return j.abs();if(j.isZero())return this.abs();var z=this.clone(),J=j.clone();z.negative=0,J.negative=0;for(var E=0;z.isEven()&&J.isEven();E++)z.iushrn(1),J.iushrn(1);for(;;){for(;z.isEven();)z.iushrn(1);for(;J.isEven();)J.iushrn(1);var i=z.cmp(J);if(i<0){var s=z;z=J,J=s}else if(i===0||J.cmpn(1)===0)break;z.isub(J)}return J.iushln(E)},a.prototype.invm=function(j){return this.egcd(j).a.umod(j)},a.prototype.isEven=function(){return(1&(this||et).words[0])==0},a.prototype.isOdd=function(){return(1&(this||et).words[0])==1},a.prototype.andln=function(j){return(this||et).words[0]&j},a.prototype.bincn=function(j){n(typeof j=="number");var z=j%26,J=(j-z)/26,E=1<<z;if((this||et).length<=J)return this._expand(J+1),(this||et).words[J]|=E,this||et;for(var i=E,s=J;i!==0&&s<(this||et).length;s++){var u=0|(this||et).words[s];i=(u+=i)>>>26,u&=67108863,(this||et).words[s]=u}return i!==0&&((this||et).words[s]=i,(this||et).length++),this||et},a.prototype.isZero=function(){return(this||et).length===1&&(this||et).words[0]===0},a.prototype.cmpn=function(j){var z,J=j<0;if((this||et).negative!==0&&!J)return-1;if((this||et).negative===0&&J)return 1;if(this.strip(),(this||et).length>1)z=1;else{J&&(j=-j),n(j<=67108863,"Number is too big");var E=0|(this||et).words[0];z=E===j?0:E<j?-1:1}return(this||et).negative!==0?0|-z:z},a.prototype.cmp=function(j){if((this||et).negative!==0&&j.negative===0)return-1;if((this||et).negative===0&&j.negative!==0)return 1;var z=this.ucmp(j);return(this||et).negative!==0?0|-z:z},a.prototype.ucmp=function(j){if((this||et).length>j.length)return 1;if((this||et).length<j.length)return-1;for(var z=0,J=(this||et).length-1;J>=0;J--){var E=0|(this||et).words[J],i=0|j.words[J];if(E!==i){E<i?z=-1:E>i&&(z=1);break}}return z},a.prototype.gtn=function(j){return this.cmpn(j)===1},a.prototype.gt=function(j){return this.cmp(j)===1},a.prototype.gten=function(j){return this.cmpn(j)>=0},a.prototype.gte=function(j){return this.cmp(j)>=0},a.prototype.ltn=function(j){return this.cmpn(j)===-1},a.prototype.lt=function(j){return this.cmp(j)===-1},a.prototype.lten=function(j){return this.cmpn(j)<=0},a.prototype.lte=function(j){return this.cmp(j)<=0},a.prototype.eqn=function(j){return this.cmpn(j)===0},a.prototype.eq=function(j){return this.cmp(j)===0},a.red=function(j){return new Z(j)},a.prototype.toRed=function(j){return n(!(this||et).red,"Already a number in reduction context"),n((this||et).negative===0,"red works only with positives"),j.convertTo(this||et)._forceRed(j)},a.prototype.fromRed=function(){return n((this||et).red,"fromRed works only with numbers in reduction context"),(this||et).red.convertFrom(this||et)},a.prototype._forceRed=function(j){return(this||et).red=j,this||et},a.prototype.forceRed=function(j){return n(!(this||et).red,"Already a number in reduction context"),this._forceRed(j)},a.prototype.redAdd=function(j){return n((this||et).red,"redAdd works only with red numbers"),(this||et).red.add(this||et,j)},a.prototype.redIAdd=function(j){return n((this||et).red,"redIAdd works only with red numbers"),(this||et).red.iadd(this||et,j)},a.prototype.redSub=function(j){return n((this||et).red,"redSub works only with red numbers"),(this||et).red.sub(this||et,j)},a.prototype.redISub=function(j){return n((this||et).red,"redISub works only with red numbers"),(this||et).red.isub(this||et,j)},a.prototype.redShl=function(j){return n((this||et).red,"redShl works only with red numbers"),(this||et).red.shl(this||et,j)},a.prototype.redMul=function(j){return n((this||et).red,"redMul works only with red numbers"),(this||et).red._verify2(this||et,j),(this||et).red.mul(this||et,j)},a.prototype.redIMul=function(j){return n((this||et).red,"redMul works only with red numbers"),(this||et).red._verify2(this||et,j),(this||et).red.imul(this||et,j)},a.prototype.redSqr=function(){return n((this||et).red,"redSqr works only with red numbers"),(this||et).red._verify1(this||et),(this||et).red.sqr(this||et)},a.prototype.redISqr=function(){return n((this||et).red,"redISqr works only with red numbers"),(this||et).red._verify1(this||et),(this||et).red.isqr(this||et)},a.prototype.redSqrt=function(){return n((this||et).red,"redSqrt works only with red numbers"),(this||et).red._verify1(this||et),(this||et).red.sqrt(this||et)},a.prototype.redInvm=function(){return n((this||et).red,"redInvm works only with red numbers"),(this||et).red._verify1(this||et),(this||et).red.invm(this||et)},a.prototype.redNeg=function(){return n((this||et).red,"redNeg works only with red numbers"),(this||et).red._verify1(this||et),(this||et).red.neg(this||et)},a.prototype.redPow=function(j){return n((this||et).red&&!j.red,"redPow(normalNum)"),(this||et).red._verify1(this||et),(this||et).red.pow(this||et,j)};var T={k256:null,p224:null,p192:null,p25519:null};function I(j,z){(this||et).name=j,(this||et).p=new a(z,16),(this||et).n=(this||et).p.bitLength(),(this||et).k=new a(1).iushln((this||et).n).isub((this||et).p),(this||et).tmp=this._tmp()}function B(){I.call(this||et,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function P(){I.call(this||et,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function C(){I.call(this||et,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function q(){I.call(this||et,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function Z(j){if(typeof j=="string"){var z=a._prime(j);(this||et).m=z.p,(this||et).prime=z}else n(j.gtn(1),"modulus must be greater than 1"),(this||et).m=j,(this||et).prime=null}function G(j){Z.call(this||et,j),(this||et).shift=(this||et).m.bitLength(),(this||et).shift%26!=0&&((this||et).shift+=26-(this||et).shift%26),(this||et).r=new a(1).iushln((this||et).shift),(this||et).r2=this.imod((this||et).r.sqr()),(this||et).rinv=(this||et).r._invmp((this||et).m),(this||et).minv=(this||et).rinv.mul((this||et).r).isubn(1).div((this||et).m),(this||et).minv=(this||et).minv.umod((this||et).r),(this||et).minv=(this||et).r.sub((this||et).minv)}I.prototype._tmp=function(){var j=new a(null);return j.words=new Array(Math.ceil((this||et).n/13)),j},I.prototype.ireduce=function(j){var z,J=j;do this.split(J,(this||et).tmp),z=(J=(J=this.imulK(J)).iadd((this||et).tmp)).bitLength();while(z>(this||et).n);var E=z<(this||et).n?-1:J.ucmp((this||et).p);return E===0?(J.words[0]=0,J.length=1):E>0?J.isub((this||et).p):J.strip(),J},I.prototype.split=function(j,z){j.iushrn((this||et).n,0,z)},I.prototype.imulK=function(j){return j.imul((this||et).k)},f(B,I),B.prototype.split=function(j,z){for(var J=Math.min(j.length,9),E=0;E<J;E++)z.words[E]=j.words[E];if(z.length=J,j.length<=9)return j.words[0]=0,j.length=1,void 0;var i=j.words[9];for(z.words[z.length++]=4194303&i,E=10;E<j.length;E++){var s=0|j.words[E];j.words[E-10]=(4194303&s)<<4|i>>>22,i=s}i>>>=22,j.words[E-10]=i,i===0&&j.length>10?j.length-=10:j.length-=9},B.prototype.imulK=function(j){j.words[j.length]=0,j.words[j.length+1]=0,j.length+=2;for(var z=0,J=0;J<j.length;J++){var E=0|j.words[J];z+=977*E,j.words[J]=67108863&z,z=64*E+(z/67108864|0)}return j.words[j.length-1]===0&&(j.length--,j.words[j.length-1]===0&&j.length--),j},f(P,I),f(C,I),f(q,I),q.prototype.imulK=function(j){for(var z=0,J=0;J<j.length;J++){var E=19*(0|j.words[J])+z,i=67108863&E;E>>>=26,j.words[J]=i,z=E}return z!==0&&(j.words[j.length++]=z),j},a._prime=function(j){if(T[j])return T[j];var z;if(j==="k256")z=new B;else if(j==="p224")z=new P;else if(j==="p192")z=new C;else{if(j!=="p25519")throw new Error("Unknown prime "+j);z=new q}return T[j]=z,z},Z.prototype._verify1=function(j){n(j.negative===0,"red works only with positives"),n(j.red,"red works only with red numbers")},Z.prototype._verify2=function(j,z){n((j.negative|z.negative)==0,"red works only with positives"),n(j.red&&j.red===z.red,"red works only with red numbers")},Z.prototype.imod=function(j){return(this||et).prime?(this||et).prime.ireduce(j)._forceRed(this||et):j.umod((this||et).m)._forceRed(this||et)},Z.prototype.neg=function(j){return j.isZero()?j.clone():(this||et).m.sub(j)._forceRed(this||et)},Z.prototype.add=function(j,z){this._verify2(j,z);var J=j.add(z);return J.cmp((this||et).m)>=0&&J.isub((this||et).m),J._forceRed(this||et)},Z.prototype.iadd=function(j,z){this._verify2(j,z);var J=j.iadd(z);return J.cmp((this||et).m)>=0&&J.isub((this||et).m),J},Z.prototype.sub=function(j,z){this._verify2(j,z);var J=j.sub(z);return J.cmpn(0)<0&&J.iadd((this||et).m),J._forceRed(this||et)},Z.prototype.isub=function(j,z){this._verify2(j,z);var J=j.isub(z);return J.cmpn(0)<0&&J.iadd((this||et).m),J},Z.prototype.shl=function(j,z){return this._verify1(j),this.imod(j.ushln(z))},Z.prototype.imul=function(j,z){return this._verify2(j,z),this.imod(j.imul(z))},Z.prototype.mul=function(j,z){return this._verify2(j,z),this.imod(j.mul(z))},Z.prototype.isqr=function(j){return this.imul(j,j.clone())},Z.prototype.sqr=function(j){return this.mul(j,j)},Z.prototype.sqrt=function(j){if(j.isZero())return j.clone();var z=(this||et).m.andln(3);if(n(z%2==1),z===3){var J=(this||et).m.add(new a(1)).iushrn(2);return this.pow(j,J)}for(var E=(this||et).m.subn(1),i=0;!E.isZero()&&E.andln(1)===0;)i++,E.iushrn(1);n(!E.isZero());var s=new a(1).toRed(this||et),u=s.redNeg(),d=(this||et).m.subn(1).iushrn(1),v=(this||et).m.bitLength();for(v=new a(2*v*v).toRed(this||et);this.pow(v,d).cmp(u)!==0;)v.redIAdd(u);for(var _=this.pow(v,E),R=this.pow(j,E.addn(1).iushrn(1)),o=this.pow(j,E),r=i;o.cmp(s)!==0;){for(var h=o,b=0;h.cmp(s)!==0;b++)h=h.redSqr();n(b<r);var M=this.pow(_,new a(1).iushln(r-b-1));R=R.redMul(M),_=M.redSqr(),o=o.redMul(_),r=b}return R},Z.prototype.invm=function(j){var z=j._invmp((this||et).m);return z.negative!==0?(z.negative=0,this.imod(z).redNeg()):this.imod(z)},Z.prototype.pow=function(j,z){if(z.isZero())return new a(1).toRed(this||et);if(z.cmpn(1)===0)return j.clone();var J=new Array(16);J[0]=new a(1).toRed(this||et),J[1]=j;for(var E=2;E<J.length;E++)J[E]=this.mul(J[E-1],j);var i=J[0],s=0,u=0,d=z.bitLength()%26;for(d===0&&(d=26),E=z.length-1;E>=0;E--){for(var v=z.words[E],_=d-1;_>=0;_--){var R=v>>_&1;i!==J[0]&&(i=this.sqr(i)),R!==0||s!==0?(s<<=1,s|=R,(++u===4||E===0&&_===0)&&(i=this.mul(i,J[s]),u=0,s=0)):u=0}d=26}return i},Z.prototype.convertTo=function(j){var z=j.umod((this||et).m);return z===j?z.clone():z},Z.prototype.convertFrom=function(j){var z=j.clone();return z.red=null,z},a.mont=function(j){return new G(j)},f(G,Z),G.prototype.convertTo=function(j){return this.imod(j.ushln((this||et).shift))},G.prototype.convertFrom=function(j){var z=this.imod(j.mul((this||et).rinv));return z.red=null,z},G.prototype.imul=function(j,z){if(j.isZero()||z.isZero())return j.words[0]=0,j.length=1,j;var J=j.imul(z),E=J.maskn((this||et).shift).mul((this||et).minv).imaskn((this||et).shift).mul((this||et).m),i=J.isub(E).iushrn((this||et).shift),s=i;return i.cmp((this||et).m)>=0?s=i.isub((this||et).m):i.cmpn(0)<0&&(s=i.iadd((this||et).m)),s._forceRed(this||et)},G.prototype.mul=function(j,z){if(j.isZero()||z.isZero())return new a(0)._forceRed(this||et);var J=j.mul(z),E=J.maskn((this||et).shift).mul((this||et).minv).imaskn((this||et).shift).mul((this||et).m),i=J.isub(E).iushrn((this||et).shift),s=i;return i.cmp((this||et).m)>=0?s=i.isub((this||et).m):i.cmpn(0)<0&&(s=i.iadd((this||et).m)),s._forceRed(this||et)},G.prototype.invm=function(j){return this.imod(j._invmp((this||et).m).mul((this||et).r2))._forceRed(this||et)}})(zte,Fte);oa=zte.exports,Dxe=Object.freeze({}),x8=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;if((Hte=function(t){return pA||(pA=new Cl(null)),pA.generate(t)}).Rand=Cl,Cl.prototype.generate=function(t){return this._rand(t)},Cl.prototype._rand=function(t){if((this||x8).rand.getBytes)return(this||x8).rand.getBytes(t);for(var e=new Uint8Array(t),n=0;n<e.length;n++)e[n]=(this||x8).rand.getByte();return e},typeof self=="object")self.crypto&&self.crypto.getRandomValues?Cl.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?Cl.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:typeof window=="object"&&(Cl.prototype._rand=function(){throw new Error("Not implemented yet")});else try{if(vA=Dxe,typeof vA.randomBytes!="function")throw new Error("Not supported");Cl.prototype._rand=function(t){return vA.randomBytes(t)}}catch(t){}Hk=Hte,Kte=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,B0=oa,$xe=Hk;Zte=O0,O0.create=function(t){return new O0(t)},O0.prototype._randbelow=function(t){var e=t.bitLength(),n=Math.ceil(e/8);do var f=new B0((this||Kte).rand.generate(n));while(f.cmp(t)>=0);return f},O0.prototype._randrange=function(t,e){var n=e.sub(t);return t.add(this._randbelow(n))},O0.prototype.test=function(t,e,n){var f=t.bitLength(),a=B0.mont(t),c=new B0(1).toRed(a);e||(e=Math.max(1,f/48|0));for(var l=t.subn(1),p=0;!l.testn(p);p++);for(var w=t.shrn(p),m=l.toRed(a);e>0;e--){var y=this._randrange(new B0(2),l);n&&n(y);var g=y.toRed(a).redPow(w);if(g.cmp(c)!==0&&g.cmp(m)!==0){for(var S=1;S<p;S++){if((g=g.redSqr()).cmp(c)===0)return!1;if(g.cmp(m)===0)break}if(S===p)return!1}}return!0},O0.prototype.getDivisor=function(t,e){var n=t.bitLength(),f=B0.mont(t),a=new B0(1).toRed(f);e||(e=Math.max(1,n/48|0));for(var c=t.subn(1),l=0;!c.testn(l);l++);for(var p=t.shrn(l),w=c.toRed(f);e>0;e--){var m=this._randrange(new B0(2),c),y=t.gcd(m);if(y.cmpn(1)!==0)return y;var g=m.toRed(f).redPow(p);if(g.cmp(a)!==0&&g.cmp(w)!==0){for(var S=1;S<l;S++){if((g=g.redSqr()).cmp(a)===0)return g.fromRed().subn(1).gcd(t);if(g.cmp(w)===0)break}if(S===l)return(g=g.redSqr()).fromRed().subn(1).gcd(t)}}return!1};Wte=Zte,Uxe=bp;Vte=gA,gA.simpleSieve=dk,gA.fermatTest=pk;to=oa,qxe=new to(24),YG=new Wte,jxe=new to(1),ck=new to(2),Fxe=new to(5),zxe=(new to(16),new to(8),new to(10)),Hxe=new to(3),Zxe=(new to(7),new to(11)),JG=new to(4),mA=(new to(12),null);Yte=Vte,Li=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,Vu=jr.Buffer,af=oa,XG=new Wte,Wxe=new af(24),Vxe=new af(11),Gxe=new af(10),Yxe=new af(3),Jxe=new af(7),QG=Yte,Xxe=bp;Gte=Uh;$3={};Object.defineProperty(Uh.prototype,"verifyError",{enumerable:!0,get:function(){return typeof(this||Li)._primeCode!="number"&&((this||Li)._primeCode=function(t,e){var n=e.toString("hex"),f=[n,t.toString(16)].join("_");if(f in $3)return $3[f];var a,c=0;if(t.isEven()||!QG.simpleSieve||!QG.fermatTest(t)||!XG.test(t))return c+=1,c+=n==="02"||n==="05"?8:4,$3[f]=c,c;switch(XG.test(t.shrn(1))||(c+=2),n){case"02":t.mod(Wxe).cmp(Vxe)&&(c+=8);break;case"05":(a=t.mod(Gxe)).cmp(Yxe)&&a.cmp(Jxe)&&(c+=8);break;default:c+=4}return $3[f]=c,c}((this||Li).__prime,(this||Li).__gen)),(this||Li)._primeCode}}),Uh.prototype.generateKeys=function(){return(this||Li)._priv||((this||Li)._priv=new af(Xxe((this||Li)._primeLen))),(this||Li)._pub=(this||Li)._gen.toRed((this||Li)._prime).redPow((this||Li)._priv).fromRed(),this.getPublicKey()},Uh.prototype.computeSecret=function(t){var e=(t=(t=new af(t)).toRed((this||Li)._prime)).redPow((this||Li)._priv).fromRed(),n=new Vu(e.toArray()),f=this.getPrime();if(n.length<f.length){var a=new Vu(f.length-n.length);a.fill(0),n=Vu.concat([a,n])}return n},Uh.prototype.getPublicKey=function(t){return U3((this||Li)._pub,t)},Uh.prototype.getPrivateKey=function(t){return U3((this||Li)._priv,t)},Uh.prototype.getPrime=function(t){return U3((this||Li).__prime,t)},Uh.prototype.getGenerator=function(t){return U3((this||Li)._gen,t)},Uh.prototype.setGenerator=function(t,e){return e=e||"utf8",Vu.isBuffer(t)||(t=new Vu(t,e)),(this||Li).__gen=t,(this||Li)._gen=new af(t),this||Li};tRe=Gte,np={},Ll=jr.Buffer,rRe=Yte,eY={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}},yA=tRe,iRe={binary:!0,hex:!0,base64:!0};np.DiffieHellmanGroup=np.createDiffieHellmanGroup=np.getDiffieHellman=function(t){var e=new Ll(eY[t].prime,"hex"),n=new Ll(eY[t].gen,"hex");return new yA(e,n)},np.createDiffieHellman=np.DiffieHellman=function t(e,n,f,a){return Ll.isBuffer(n)||iRe[n]===void 0?t(e,"binary",n,f):(n=n||"binary",a=a||"binary",f=f||new Ll([2]),Ll.isBuffer(f)||(f=new Ll(f,a)),typeof e=="number"?new yA(rRe(e,f),f,!0):(Ll.isBuffer(e)||(e=new Ll(e,n)),new yA(e,f,!0)))};nRe=jr.Buffer,rc=oa,tY=bp;Jte=rY,rY.getr=Xte;Zk=Jte,Kk={},q3=Kk;q3.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if(typeof t!="string"){for(var f=0;f<t.length;f++)n[f]=0|t[f];return n}if(e==="hex")for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),f=0;f<t.length;f+=2)n.push(parseInt(t[f]+t[f+1],16));else for(f=0;f<t.length;f++){var a=t.charCodeAt(f),c=a>>8,l=255&a;c?n.push(c,l):n.push(l)}return n},q3.zero2=Qte,q3.toHex=iY,q3.encode=function(t,e){return e==="hex"?iY(t):t};os={},Wf=os,aRe=oa,oRe=sf,j3=Kk;Wf.assert=oRe,Wf.toArray=j3.toArray,Wf.zero2=j3.zero2,Wf.toHex=j3.toHex,Wf.encode=j3.encode,Wf.getNAF=function(t,e,n){var f=new Array(Math.max(t.bitLength(),n)+1);f.fill(0);for(var a=1<<e+1,c=t.clone(),l=0;l<f.length;l++){var p,w=c.andln(a-1);c.isOdd()?(p=w>(a>>1)-1?(a>>1)-w:w,c.isubn(p)):p=0,f[l]=p,c.iushrn(1)}return f},Wf.getJSF=function(t,e){var n=[[],[]];t=t.clone(),e=e.clone();for(var f=0,a=0;t.cmpn(-f)>0||e.cmpn(-a)>0;){var c,l,p,w=t.andln(3)+f&3,m=e.andln(3)+a&3;w===3&&(w=-1),m===3&&(m=-1),(1&w)==0?c=0:c=(p=t.andln(7)+f&7)!==3&&p!==5||m!==2?w:-w,n[0].push(c),(1&m)==0?l=0:l=(p=e.andln(7)+a&7)!==3&&p!==5||w!==2?m:-m,n[1].push(l),2*f===c+1&&(f=1-f),2*a===l+1&&(a=1-a),t.iushrn(1),e.iushrn(1)}return n},Wf.cachedProperty=function(t,e,n){var f="_"+e;t.prototype[e]=function(){return this[f]!==void 0?this[f]:this[f]=n.call(this)}},Wf.parseBytes=function(t){return typeof t=="string"?Wf.toArray(t,"hex"):t},Wf.intFromLE=function(t){return new aRe(t,"hex","le")};C8=oa,vk=os,sRe=vk.assert;ere=R8,R8.prototype._importDER=function(t,e){t=vk.toArray(t,e);var n=new fRe;if(t[n.place++]!==48||bA(t,n)+n.place!==t.length||t[n.place++]!==2)return!1;var f=bA(t,n),a=t.slice(n.place,f+n.place);if(n.place+=f,t[n.place++]!==2)return!1;var c=bA(t,n);if(t.length!==c+n.place)return!1;var l=t.slice(n.place,c+n.place);return a[0]===0&&128&a[1]&&(a=a.slice(1)),l[0]===0&&128&l[1]&&(l=l.slice(1)),this.r=new C8(a),this.s=new C8(l),this.recoveryParam=null,!0},R8.prototype.toDER=function(t){var e=this.r.toArray(),n=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&n[0]&&(n=[0].concat(n)),e=nY(e),n=nY(n);!(n[0]||128&n[1]);)n=n.slice(1);var f=[2];wA(f,e.length),(f=f.concat(e)).push(2),wA(f,n.length);var a=f.concat(n),c=[48];return wA(c,a.length),c=c.concat(a),vk.encode(c,t)};uRe=ere,Oi={},hRe=sf,lRe=ei;Oi.inherits=lRe,Oi.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if(typeof t=="string")if(e){if(e==="hex")for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),a=0;a<t.length;a+=2)n.push(parseInt(t[a]+t[a+1],16))}else for(var f=0,a=0;a<t.length;a++){var c=t.charCodeAt(a);c<128?n[f++]=c:c<2048?(n[f++]=c>>6|192,n[f++]=63&c|128):cRe(t,a)?(c=65536+((1023&c)<<10)+(1023&t.charCodeAt(++a)),n[f++]=c>>18|240,n[f++]=c>>12&63|128,n[f++]=c>>6&63|128,n[f++]=63&c|128):(n[f++]=c>>12|224,n[f++]=c>>6&63|128,n[f++]=63&c|128)}else for(a=0;a<t.length;a++)n[a]=0|t[a];return n},Oi.toHex=function(t){for(var e="",n=0;n<t.length;n++)e+=oY(t[n].toString(16));return e},Oi.htonl=aY,Oi.toHex32=function(t,e){for(var n="",f=0;f<t.length;f++){var a=t[f];e==="little"&&(a=aY(a)),n+=sY(a.toString(16))}return n},Oi.zero2=oY,Oi.zero8=sY,Oi.join32=function(t,e,n,f){var a=n-e;hRe(a%4==0);for(var c=new Array(a/4),l=0,p=e;l<c.length;l++,p+=4){var w;w=f==="big"?t[p]<<24|t[p+1]<<16|t[p+2]<<8|t[p+3]:t[p+3]<<24|t[p+2]<<16|t[p+1]<<8|t[p],c[l]=w>>>0}return c},Oi.split32=function(t,e){for(var n=new Array(4*t.length),f=0,a=0;f<t.length;f++,a+=4){var c=t[f];e==="big"?(n[a]=c>>>24,n[a+1]=c>>>16&255,n[a+2]=c>>>8&255,n[a+3]=255&c):(n[a+3]=c>>>24,n[a+2]=c>>>16&255,n[a+1]=c>>>8&255,n[a]=255&c)}return n},Oi.rotr32=function(t,e){return t>>>e|t<<32-e},Oi.rotl32=function(t,e){return t<<e|t>>>32-e},Oi.sum32=function(t,e){return t+e>>>0},Oi.sum32_3=function(t,e,n){return t+e+n>>>0},Oi.sum32_4=function(t,e,n,f){return t+e+n+f>>>0},Oi.sum32_5=function(t,e,n,f,a){return t+e+n+f+a>>>0},Oi.sum64=function(t,e,n,f){var a=t[e],c=f+t[e+1]>>>0,l=(c<f?1:0)+n+a;t[e]=l>>>0,t[e+1]=c},Oi.sum64_hi=function(t,e,n,f){return(e+f>>>0<e?1:0)+t+n>>>0},Oi.sum64_lo=function(t,e,n,f){return e+f>>>0},Oi.sum64_4_hi=function(t,e,n,f,a,c,l,p){var w=0,m=e;return w+=(m=m+f>>>0)<e?1:0,w+=(m=m+c>>>0)<c?1:0,t+n+a+l+(w+=(m=m+p>>>0)<p?1:0)>>>0},Oi.sum64_4_lo=function(t,e,n,f,a,c,l,p){return e+f+c+p>>>0},Oi.sum64_5_hi=function(t,e,n,f,a,c,l,p,w,m){var y=0,g=e;return y+=(g=g+f>>>0)<e?1:0,y+=(g=g+c>>>0)<c?1:0,y+=(g=g+p>>>0)<p?1:0,t+n+a+l+w+(y+=(g=g+m>>>0)<m?1:0)>>>0},Oi.sum64_5_lo=function(t,e,n,f,a,c,l,p,w,m){return e+f+c+p+m>>>0},Oi.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},Oi.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},Oi.shr64_hi=function(t,e,n){return t>>>n},Oi.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0};_p={},fY=Oi,dRe=sf;_p.BlockHash=F3,F3.prototype.update=function(t,e){if(t=fY.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),this.pending.length===0&&(this.pending=null),t=fY.join32(t,0,t.length-n,this.endian);for(var f=0;f<t.length;f+=this._delta32)this._update(t,f,f+this._delta32)}return this},F3.prototype.digest=function(t){return this.update(this._pad()),dRe(this.pending===null),this._digest(t)},F3.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,f=new Array(n+this.padLength);f[0]=128;for(var a=1;a<n;a++)f[a]=0;if(t<<=3,this.endian==="big"){for(var c=8;c<this.padLength;c++)f[a++]=0;f[a++]=0,f[a++]=0,f[a++]=0,f[a++]=0,f[a++]=t>>>24&255,f[a++]=t>>>16&255,f[a++]=t>>>8&255,f[a++]=255&t}else for(f[a++]=255&t,f[a++]=t>>>8&255,f[a++]=t>>>16&255,f[a++]=t>>>24&255,f[a++]=0,f[a++]=0,f[a++]=0,f[a++]=0,c=8;c<this.padLength;c++)f[a++]=0;return f};$o=Oi,pRe=_p,vRe=sf,Gu=$o.rotr64_hi,Yu=$o.rotr64_lo,rre=$o.shr64_hi,ire=$o.shr64_lo,Dl=$o.sum64,_A=$o.sum64_hi,MA=$o.sum64_lo,mRe=$o.sum64_4_hi,gRe=$o.sum64_4_lo,yRe=$o.sum64_5_hi,bRe=$o.sum64_5_lo,nre=pRe.BlockHash,wRe=[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];$o.inherits(Xf,nre),tre=Xf,Xf.blockSize=1024,Xf.outSize=512,Xf.hmacStrength=192,Xf.padLength=128,Xf.prototype._prepareBlock=function(t,e){for(var n=this.W,f=0;f<32;f++)n[f]=t[e+f];for(;f<n.length;f+=2){var a=BRe(n[f-4],n[f-3]),c=ORe(n[f-4],n[f-3]),l=n[f-14],p=n[f-13],w=TRe(n[f-30],n[f-29]),m=IRe(n[f-30],n[f-29]),y=n[f-32],g=n[f-31];n[f]=mRe(a,c,l,p,w,m,y,g),n[f+1]=gRe(a,c,l,p,w,m,y,g)}},Xf.prototype._update=function(t,e){this._prepareBlock(t,e);var n=this.W,f=this.h[0],a=this.h[1],c=this.h[2],l=this.h[3],p=this.h[4],w=this.h[5],m=this.h[6],y=this.h[7],g=this.h[8],S=this.h[9],x=this.h[10],A=this.h[11],T=this.h[12],I=this.h[13],B=this.h[14],P=this.h[15];vRe(this.k.length===n.length);for(var C=0;C<n.length;C+=2){var q=B,Z=P,G=RRe(g,S),j=kRe(g,S),z=_Re(g,S,x,A,T),J=MRe(g,S,x,A,T,I),E=this.k[C],i=this.k[C+1],s=n[C],u=n[C+1],d=yRe(q,Z,G,j,z,J,E,i,s,u),v=bRe(q,Z,G,j,z,J,E,i,s,u);q=ARe(f,a),Z=xRe(f,a),G=SRe(f,a,c,l,p),j=ERe(f,a,c,l,p,w);var _=_A(q,Z,G,j),R=MA(q,Z,G,j);B=T,P=I,T=x,I=A,x=g,A=S,g=_A(m,y,d,v),S=MA(y,y,d,v),m=p,y=w,p=c,w=l,c=f,l=a,f=_A(d,v,_,R),a=MA(d,v,_,R)}Dl(this.h,0,f,a),Dl(this.h,2,c,l),Dl(this.h,4,p,w),Dl(this.h,6,m,y),Dl(this.h,8,g,S),Dl(this.h,10,x,A),Dl(this.h,12,T,I),Dl(this.h,14,B,P)},Xf.prototype._digest=function(t){return t==="hex"?$o.toHex32(this.h,"big"):$o.split32(this.h,"big")};are=tre,zu={},Uu=Oi.rotr32;zu.ft_1=function(t,e,n,f){return t===0?uY(e,n,f):t===1||t===3?lY(e,n,f):t===2?hY(e,n,f):void 0},zu.ch32=uY,zu.maj32=hY,zu.p32=lY,zu.s0_256=function(t){return Uu(t,2)^Uu(t,13)^Uu(t,22)},zu.s1_256=function(t){return Uu(t,6)^Uu(t,11)^Uu(t,25)},zu.g0_256=function(t){return Uu(t,7)^Uu(t,18)^t>>>3},zu.g1_256=function(t){return Uu(t,17)^Uu(t,19)^t>>>10};up=Oi,PRe=_p,Mp=zu,NRe=sf,Vf=up.sum32,CRe=up.sum32_4,LRe=up.sum32_5,DRe=Mp.ch32,$Re=Mp.maj32,URe=Mp.s0_256,qRe=Mp.s1_256,jRe=Mp.g0_256,FRe=Mp.g1_256,sre=PRe.BlockHash,zRe=[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];up.inherits(Hu,sre),ore=Hu,Hu.blockSize=512,Hu.outSize=256,Hu.hmacStrength=192,Hu.padLength=64,Hu.prototype._update=function(t,e){for(var n=this.W,f=0;f<16;f++)n[f]=t[e+f];for(;f<n.length;f++)n[f]=CRe(FRe(n[f-2]),n[f-7],jRe(n[f-15]),n[f-16]);var a=this.h[0],c=this.h[1],l=this.h[2],p=this.h[3],w=this.h[4],m=this.h[5],y=this.h[6],g=this.h[7];for(NRe(this.k.length===n.length),f=0;f<n.length;f++){var S=LRe(g,qRe(w),DRe(w,m,y),this.k[f],n[f]),x=Vf(URe(a),$Re(a,c,l));g=y,y=m,m=w,w=Vf(p,S),p=l,l=c,c=a,a=Vf(S,x)}this.h[0]=Vf(this.h[0],a),this.h[1]=Vf(this.h[1],c),this.h[2]=Vf(this.h[2],l),this.h[3]=Vf(this.h[3],p),this.h[4]=Vf(this.h[4],w),this.h[5]=Vf(this.h[5],m),this.h[6]=Vf(this.h[6],y),this.h[7]=Vf(this.h[7],g)},Hu.prototype._digest=function(t){return t==="hex"?up.toHex32(this.h,"big"):up.split32(this.h,"big")};fre=ore,hp=Oi,HRe=_p,ZRe=zu,SA=hp.rotl32,f2=hp.sum32,KRe=hp.sum32_5,WRe=ZRe.ft_1,hre=HRe.BlockHash,VRe=[1518500249,1859775393,2400959708,3395469782];hp.inherits(Zu,hre),ure=Zu,Zu.blockSize=512,Zu.outSize=160,Zu.hmacStrength=80,Zu.padLength=64,Zu.prototype._update=function(t,e){for(var n=this.W,f=0;f<16;f++)n[f]=t[e+f];for(;f<n.length;f++)n[f]=SA(n[f-3]^n[f-8]^n[f-14]^n[f-16],1);var a=this.h[0],c=this.h[1],l=this.h[2],p=this.h[3],w=this.h[4];for(f=0;f<n.length;f++){var m=~~(f/20),y=KRe(SA(a,5),WRe(m,c,l,p),w,n[f],VRe[m]);w=p,p=l,l=SA(c,30),c=a,a=y}this.h[0]=f2(this.h[0],a),this.h[1]=f2(this.h[1],c),this.h[2]=f2(this.h[2],l),this.h[3]=f2(this.h[3],p),this.h[4]=f2(this.h[4],w)},Zu.prototype._digest=function(t){return t==="hex"?hp.toHex32(this.h,"big"):hp.split32(this.h,"big")};GRe=ure,EA=Oi,cre=fre;EA.inherits(jh,cre),lre=jh,jh.blockSize=512,jh.outSize=224,jh.hmacStrength=192,jh.padLength=64,jh.prototype._digest=function(t){return t==="hex"?EA.toHex32(this.h.slice(0,7),"big"):EA.split32(this.h.slice(0,7),"big")};YRe=lre,AA=Oi,pre=are;AA.inherits(Fh,pre),dre=Fh,Fh.blockSize=1024,Fh.outSize=384,Fh.hmacStrength=192,Fh.padLength=128,Fh.prototype._digest=function(t){return t==="hex"?AA.toHex32(this.h.slice(0,12),"big"):AA.split32(this.h.slice(0,12),"big")};JRe=dre,ap={};ap.sha1=GRe,ap.sha224=YRe,ap.sha256=fre,ap.sha384=JRe,ap.sha512=are;vre={},Q0=Oi,XRe=_p,z3=Q0.rotl32,cY=Q0.sum32,u2=Q0.sum32_3,dY=Q0.sum32_4,mre=XRe.BlockHash;Q0.inherits(Ku,mre),vre.ripemd160=Ku,Ku.blockSize=512,Ku.outSize=160,Ku.hmacStrength=192,Ku.padLength=64,Ku.prototype._update=function(t,e){for(var n=this.h[0],f=this.h[1],a=this.h[2],c=this.h[3],l=this.h[4],p=n,w=f,m=a,y=c,g=l,S=0;S<80;S++){var x=cY(z3(dY(n,pY(S,f,a,c),t[tke[S]+e],QRe(S)),ike[S]),l);n=l,l=c,c=z3(a,10),a=f,f=x,x=cY(z3(dY(p,pY(79-S,w,m,y),t[rke[S]+e],eke(S)),nke[S]),g),p=g,g=y,y=z3(m,10),m=w,w=x}x=u2(this.h[1],a,y),this.h[1]=u2(this.h[2],c,g),this.h[2]=u2(this.h[3],l,p),this.h[3]=u2(this.h[4],n,w),this.h[4]=u2(this.h[0],f,m),this.h[0]=x},Ku.prototype._digest=function(t){return t==="hex"?Q0.toHex32(this.h,"little"):Q0.split32(this.h,"little")};tke=[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],rke=[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],ike=[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],nke=[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],ake=Oi,oke=sf;gre=op,op.prototype._init=function(t){t.length>this.blockSize&&(t=new this.Hash().update(t).digest()),oke(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=new this.Hash().update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=new this.Hash().update(t)},op.prototype.update=function(t,e){return this.inner.update(t,e),this},op.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)};ske=gre,Y8={},Da=Y8;Da.utils=Oi,Da.common=_p,Da.sha=ap,Da.ripemd=vre,Da.hmac=ske,Da.sha1=Da.sha.sha1,Da.sha256=Da.sha.sha256,Da.sha224=Da.sha.sha224,Da.sha384=Da.sha.sha384,Da.sha512=Da.sha.sha512,Da.ripemd160=Da.ripemd.ripemd160;fke=Y8,J0=Kk,bre=sf;yre=ic,ic.prototype._init=function(t,e,n){var f=t.concat(e).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var a=0;a<this.V.length;a++)this.K[a]=0,this.V[a]=1;this._update(f),this._reseed=1,this.reseedInterval=281474976710656},ic.prototype._hmac=function(){return new fke.hmac(this.hash,this.K)},ic.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},ic.prototype.reseed=function(t,e,n,f){typeof e!="string"&&(f=n,n=e,e=null),t=J0.toArray(t,e),n=J0.toArray(n,f),bre(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1},ic.prototype.generate=function(t,e,n,f){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof e!="string"&&(f=n,n=e,e=null),n&&(n=J0.toArray(n,f||"hex"),this._update(n));for(var a=[];a.length<t;)this.V=this._hmac().update(this.V).digest(),a=a.concat(this.V);var c=a.slice(0,t);return this._update(n),this._reseed++,J0.encode(c,e)};uke=yre,P0=oa,D2=os,H3=D2.getNAF,hke=D2.getJSF,Z3=D2.assert;wre=$l,$l.prototype.point=function(){throw new Error("Not implemented")},$l.prototype.validate=function(){throw new Error("Not implemented")},$l.prototype._fixedNafMul=function(t,e){Z3(t.precomputed);var n=t._getDoubles(),f=H3(e,1,this._bitLength),a=(1<<n.step+1)-(n.step%2==0?2:1);a/=3;for(var c=[],l=0;l<f.length;l+=n.step){var p=0;for(e=l+n.step-1;e>=l;e--)p=(p<<1)+f[e];c.push(p)}for(var w=this.jpoint(null,null,null),m=this.jpoint(null,null,null),y=a;y>0;y--){for(l=0;l<c.length;l++)(p=c[l])===y?m=m.mixedAdd(n.points[l]):p===-y&&(m=m.mixedAdd(n.points[l].neg()));w=w.add(m)}return w.toP()},$l.prototype._wnafMul=function(t,e){var n=4,f=t._getNAFPoints(n);n=f.wnd;for(var a=f.points,c=H3(e,n,this._bitLength),l=this.jpoint(null,null,null),p=c.length-1;p>=0;p--){for(e=0;p>=0&&c[p]===0;p--)e++;if(p>=0&&e++,l=l.dblp(e),p<0)break;var w=c[p];Z3(w!==0),l=t.type==="affine"?w>0?l.mixedAdd(a[w-1>>1]):l.mixedAdd(a[-w-1>>1].neg()):w>0?l.add(a[w-1>>1]):l.add(a[-w-1>>1].neg())}return t.type==="affine"?l.toP():l},$l.prototype._wnafMulAdd=function(t,e,n,f,a){for(var c=this._wnafT1,l=this._wnafT2,p=this._wnafT3,w=0,m=0;m<f;m++){var y=(j=e[m])._getNAFPoints(t);c[m]=y.wnd,l[m]=y.points}for(m=f-1;m>=1;m-=2){var g=m-1,S=m;if(c[g]===1&&c[S]===1){var x=[e[g],null,null,e[S]];e[g].y.cmp(e[S].y)===0?(x[1]=e[g].add(e[S]),x[2]=e[g].toJ().mixedAdd(e[S].neg())):e[g].y.cmp(e[S].y.redNeg())===0?(x[1]=e[g].toJ().mixedAdd(e[S]),x[2]=e[g].add(e[S].neg())):(x[1]=e[g].toJ().mixedAdd(e[S]),x[2]=e[g].toJ().mixedAdd(e[S].neg()));var A=[-3,-1,-5,-7,0,7,5,1,3],T=hke(n[g],n[S]);w=Math.max(T[0].length,w),p[g]=new Array(w),p[S]=new Array(w);for(var I=0;I<w;I++){var B=0|T[0][I],P=0|T[1][I];p[g][I]=A[3*(B+1)+(P+1)],p[S][I]=0,l[g]=x}}else p[g]=H3(n[g],c[g],this._bitLength),p[S]=H3(n[S],c[S],this._bitLength),w=Math.max(p[g].length,w),w=Math.max(p[S].length,w)}var C=this.jpoint(null,null,null),q=this._wnafT4;for(m=w;m>=0;m--){for(var Z=0;m>=0;){var G=!0;for(I=0;I<f;I++)q[I]=0|p[I][m],q[I]!==0&&(G=!1);if(!G)break;Z++,m--}if(m>=0&&Z++,C=C.dblp(Z),m<0)break;for(I=0;I<f;I++){var j,z=q[I];z!==0&&(z>0?j=l[I][z-1>>1]:z<0&&(j=l[I][-z-1>>1].neg()),C=j.type==="affine"?C.mixedAdd(j):C.add(j))}}for(m=0;m<f;m++)l[m]=null;return a?C:C.toP()},$l.BasePoint=Ys,Ys.prototype.eq=function(){throw new Error("Not implemented")},Ys.prototype.validate=function(){return this.curve.validate(this)},$l.prototype.decodePoint=function(t,e){t=D2.toArray(t,e);var n=this.p.byteLength();if((t[0]===4||t[0]===6||t[0]===7)&&t.length-1==2*n)return t[0]===6?Z3(t[t.length-1]%2==0):t[0]===7&&Z3(t[t.length-1]%2==1),this.point(t.slice(1,1+n),t.slice(1+n,1+2*n));if((t[0]===2||t[0]===3)&&t.length-1===n)return this.pointFromX(t.slice(1,1+n),t[0]===3);throw new Error("Unknown point format")},Ys.prototype.encodeCompressed=function(t){return this.encode(t,!0)},Ys.prototype._encode=function(t){var e=this.curve.p.byteLength(),n=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",e))},Ys.prototype.encode=function(t,e){return D2.encode(this._encode(e),t)},Ys.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},Ys.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},Ys.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],f=this,a=0;a<e;a+=t){for(var c=0;c<t;c++)f=f.dbl();n.push(f)}return{step:t,points:n}},Ys.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],n=(1<<t)-1,f=n===1?null:this.dbl(),a=1;a<n;a++)e[a]=e[a-1].add(f);return{wnd:t,points:e}},Ys.prototype._getBeta=function(){return null},Ys.prototype.dblp=function(t){for(var e=this,n=0;n<t;n++)e=e.dbl();return e};J8=wre,Kn=oa,xA=ei,lp=J8,lke=os.assert;xA(Js,lp),_re=Js,Js.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){var e,n;if(t.beta)e=new Kn(t.beta,16).toRed(this.red);else{var f=this._getEndoRoots(this.p);e=(e=f[0].cmp(f[1])<0?f[0]:f[1]).toRed(this.red)}if(t.lambda)n=new Kn(t.lambda,16);else{var a=this._getEndoRoots(this.n);this.g.mul(a[0]).x.cmp(this.g.x.redMul(e))===0?n=a[0]:(n=a[1],lke(this.g.mul(n).x.cmp(this.g.x.redMul(e))===0))}return{beta:e,lambda:n,basis:t.basis?t.basis.map(function(c){return{a:new Kn(c.a,16),b:new Kn(c.b,16)}}):this._getEndoBasis(n)}}},Js.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:Kn.mont(t),n=new Kn(2).toRed(e).redInvm(),f=n.redNeg(),a=new Kn(3).toRed(e).redNeg().redSqrt().redMul(n);return[f.redAdd(a).fromRed(),f.redSub(a).fromRed()]},Js.prototype._getEndoBasis=function(t){for(var e,n,f,a,c,l,p,w,m,y=this.n.ushrn(Math.floor(this.n.bitLength()/2)),g=t,S=this.n.clone(),x=new Kn(1),A=new Kn(0),T=new Kn(0),I=new Kn(1),B=0;g.cmpn(0)!==0;){var P=S.div(g);w=S.sub(P.mul(g)),m=T.sub(P.mul(x));var C=I.sub(P.mul(A));if(!f&&w.cmp(y)<0)e=p.neg(),n=x,f=w.neg(),a=m;else if(f&&++B==2)break;p=w,S=g,g=w,T=x,x=m,I=A,A=C}c=w.neg(),l=m;var q=f.sqr().add(a.sqr());return c.sqr().add(l.sqr()).cmp(q)>=0&&(c=e,l=n),f.negative&&(f=f.neg(),a=a.neg()),c.negative&&(c=c.neg(),l=l.neg()),[{a:f,b:a},{a:c,b:l}]},Js.prototype._endoSplit=function(t){var e=this.endo.basis,n=e[0],f=e[1],a=f.b.mul(t).divRound(this.n),c=n.b.neg().mul(t).divRound(this.n),l=a.mul(n.a),p=c.mul(f.a),w=a.mul(n.b),m=c.mul(f.b);return{k1:t.sub(l).sub(p),k2:w.add(m).neg()}},Js.prototype.pointFromX=function(t,e){(t=new Kn(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),f=n.redSqrt();if(f.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var a=f.fromRed().isOdd();return(e&&!a||!e&&a)&&(f=f.redNeg()),this.point(t,f)},Js.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,n=t.y,f=this.a.redMul(e),a=e.redSqr().redMul(e).redIAdd(f).redIAdd(this.b);return n.redSqr().redISub(a).cmpn(0)===0},Js.prototype._endoWnafMulAdd=function(t,e,n){for(var f=this._endoWnafT1,a=this._endoWnafT2,c=0;c<t.length;c++){var l=this._endoSplit(e[c]),p=t[c],w=p._getBeta();l.k1.negative&&(l.k1.ineg(),p=p.neg(!0)),l.k2.negative&&(l.k2.ineg(),w=w.neg(!0)),f[2*c]=p,f[2*c+1]=w,a[2*c]=l.k1,a[2*c+1]=l.k2}for(var m=this._wnafMulAdd(1,f,a,2*c,n),y=0;y<2*c;y++)f[y]=null,a[y]=null;return m},xA(Ta,lp.BasePoint),Js.prototype.point=function(t,e,n){return new Ta(this,t,e,n)},Js.prototype.pointFromJSON=function(t,e){return Ta.fromJSON(this,t,e)},Ta.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var n=this.curve,f=function(a){return n.point(a.x.redMul(n.endo.beta),a.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(f)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(f)}}}return e}},Ta.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]},Ta.fromJSON=function(t,e,n){typeof e=="string"&&(e=JSON.parse(e));var f=t.point(e[0],e[1],n);if(!e[2])return f;function a(l){return t.point(l[0],l[1],n)}var c=e[2];return f.precomputed={beta:null,doubles:c.doubles&&{step:c.doubles.step,points:[f].concat(c.doubles.points.map(a))},naf:c.naf&&{wnd:c.naf.wnd,points:[f].concat(c.naf.points.map(a))}},f},Ta.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)+">"},Ta.prototype.isInfinity=function(){return this.inf},Ta.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(this.x.cmp(t.x)===0)return this.curve.point(null,null);var e=this.y.redSub(t.y);e.cmpn(0)!==0&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var n=e.redSqr().redISub(this.x).redISub(t.x),f=e.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,f)},Ta.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(t.cmpn(0)===0)return this.curve.point(null,null);var e=this.curve.a,n=this.x.redSqr(),f=t.redInvm(),a=n.redAdd(n).redIAdd(n).redIAdd(e).redMul(f),c=a.redSqr().redISub(this.x.redAdd(this.x)),l=a.redMul(this.x.redSub(c)).redISub(this.y);return this.curve.point(c,l)},Ta.prototype.getX=function(){return this.x.fromRed()},Ta.prototype.getY=function(){return this.y.fromRed()},Ta.prototype.mul=function(t){return t=new Kn(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},Ta.prototype.mulAdd=function(t,e,n){var f=[this,e],a=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(f,a):this.curve._wnafMulAdd(1,f,a,2)},Ta.prototype.jmulAdd=function(t,e,n){var f=[this,e],a=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(f,a,!0):this.curve._wnafMulAdd(1,f,a,2,!0)},Ta.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||this.x.cmp(t.x)===0&&this.y.cmp(t.y)===0)},Ta.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var n=this.precomputed,f=function(a){return a.neg()};e.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(f)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(f)}}}return e},Ta.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},xA($a,lp.BasePoint),Js.prototype.jpoint=function(t,e,n){return new $a(this,t,e,n)},$a.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),n=this.x.redMul(e),f=this.y.redMul(e).redMul(t);return this.curve.point(n,f)},$a.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},$a.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),n=this.z.redSqr(),f=this.x.redMul(e),a=t.x.redMul(n),c=this.y.redMul(e.redMul(t.z)),l=t.y.redMul(n.redMul(this.z)),p=f.redSub(a),w=c.redSub(l);if(p.cmpn(0)===0)return w.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var m=p.redSqr(),y=m.redMul(p),g=f.redMul(m),S=w.redSqr().redIAdd(y).redISub(g).redISub(g),x=w.redMul(g.redISub(S)).redISub(c.redMul(y)),A=this.z.redMul(t.z).redMul(p);return this.curve.jpoint(S,x,A)},$a.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),n=this.x,f=t.x.redMul(e),a=this.y,c=t.y.redMul(e).redMul(this.z),l=n.redSub(f),p=a.redSub(c);if(l.cmpn(0)===0)return p.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var w=l.redSqr(),m=w.redMul(l),y=n.redMul(w),g=p.redSqr().redIAdd(m).redISub(y).redISub(y),S=p.redMul(y.redISub(g)).redISub(a.redMul(m)),x=this.z.redMul(l);return this.curve.jpoint(g,S,x)},$a.prototype.dblp=function(t){if(t===0)return this;if(this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var e=this,n=0;n<t;n++)e=e.dbl();return e}var f=this.curve.a,a=this.curve.tinv,c=this.x,l=this.y,p=this.z,w=p.redSqr().redSqr(),m=l.redAdd(l);for(n=0;n<t;n++){var y=c.redSqr(),g=m.redSqr(),S=g.redSqr(),x=y.redAdd(y).redIAdd(y).redIAdd(f.redMul(w)),A=c.redMul(g),T=x.redSqr().redISub(A.redAdd(A)),I=A.redISub(T),B=x.redMul(I);B=B.redIAdd(B).redISub(S);var P=m.redMul(p);n+1<t&&(w=w.redMul(S)),c=T,p=P,m=B}return this.curve.jpoint(c,m.redMul(a),p)},$a.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},$a.prototype._zeroDbl=function(){var t,e,n;if(this.zOne){var f=this.x.redSqr(),a=this.y.redSqr(),c=a.redSqr(),l=this.x.redAdd(a).redSqr().redISub(f).redISub(c);l=l.redIAdd(l);var p=f.redAdd(f).redIAdd(f),w=p.redSqr().redISub(l).redISub(l),m=c.redIAdd(c);m=(m=m.redIAdd(m)).redIAdd(m),t=w,e=p.redMul(l.redISub(w)).redISub(m),n=this.y.redAdd(this.y)}else{var y=this.x.redSqr(),g=this.y.redSqr(),S=g.redSqr(),x=this.x.redAdd(g).redSqr().redISub(y).redISub(S);x=x.redIAdd(x);var A=y.redAdd(y).redIAdd(y),T=A.redSqr(),I=S.redIAdd(S);I=(I=I.redIAdd(I)).redIAdd(I),t=T.redISub(x).redISub(x),e=A.redMul(x.redISub(t)).redISub(I),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(t,e,n)},$a.prototype._threeDbl=function(){var t,e,n;if(this.zOne){var f=this.x.redSqr(),a=this.y.redSqr(),c=a.redSqr(),l=this.x.redAdd(a).redSqr().redISub(f).redISub(c);l=l.redIAdd(l);var p=f.redAdd(f).redIAdd(f).redIAdd(this.curve.a),w=p.redSqr().redISub(l).redISub(l);t=w;var m=c.redIAdd(c);m=(m=m.redIAdd(m)).redIAdd(m),e=p.redMul(l.redISub(w)).redISub(m),n=this.y.redAdd(this.y)}else{var y=this.z.redSqr(),g=this.y.redSqr(),S=this.x.redMul(g),x=this.x.redSub(y).redMul(this.x.redAdd(y));x=x.redAdd(x).redIAdd(x);var A=S.redIAdd(S),T=(A=A.redIAdd(A)).redAdd(A);t=x.redSqr().redISub(T),n=this.y.redAdd(this.z).redSqr().redISub(g).redISub(y);var I=g.redSqr();I=(I=(I=I.redIAdd(I)).redIAdd(I)).redIAdd(I),e=x.redMul(A.redISub(t)).redISub(I)}return this.curve.jpoint(t,e,n)},$a.prototype._dbl=function(){var t=this.curve.a,e=this.x,n=this.y,f=this.z,a=f.redSqr().redSqr(),c=e.redSqr(),l=n.redSqr(),p=c.redAdd(c).redIAdd(c).redIAdd(t.redMul(a)),w=e.redAdd(e),m=(w=w.redIAdd(w)).redMul(l),y=p.redSqr().redISub(m.redAdd(m)),g=m.redISub(y),S=l.redSqr();S=(S=(S=S.redIAdd(S)).redIAdd(S)).redIAdd(S);var x=p.redMul(g).redISub(S),A=n.redAdd(n).redMul(f);return this.curve.jpoint(y,x,A)},$a.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),n=this.z.redSqr(),f=e.redSqr(),a=t.redAdd(t).redIAdd(t),c=a.redSqr(),l=this.x.redAdd(e).redSqr().redISub(t).redISub(f),p=(l=(l=(l=l.redIAdd(l)).redAdd(l).redIAdd(l)).redISub(c)).redSqr(),w=f.redIAdd(f);w=(w=(w=w.redIAdd(w)).redIAdd(w)).redIAdd(w);var m=a.redIAdd(l).redSqr().redISub(c).redISub(p).redISub(w),y=e.redMul(m);y=(y=y.redIAdd(y)).redIAdd(y);var g=this.x.redMul(p).redISub(y);g=(g=g.redIAdd(g)).redIAdd(g);var S=this.y.redMul(m.redMul(w.redISub(m)).redISub(l.redMul(p)));S=(S=(S=S.redIAdd(S)).redIAdd(S)).redIAdd(S);var x=this.z.redAdd(l).redSqr().redISub(n).redISub(p);return this.curve.jpoint(g,S,x)},$a.prototype.mul=function(t,e){return t=new Kn(t,e),this.curve._wnafMul(this,t)},$a.prototype.eq=function(t){if(t.type==="affine")return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),n=t.z.redSqr();if(this.x.redMul(n).redISub(t.x.redMul(e)).cmpn(0)!==0)return!1;var f=e.redMul(this.z),a=n.redMul(t.z);return this.y.redMul(a).redISub(t.y.redMul(f)).cmpn(0)===0},$a.prototype.eqXToP=function(t){var e=this.z.redSqr(),n=t.toRed(this.curve.red).redMul(e);if(this.x.cmp(n)===0)return!0;for(var f=t.clone(),a=this.curve.redN.redMul(e);;){if(f.iadd(this.curve.n),f.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(a),this.x.cmp(n)===0)return!0}},$a.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)+">"},$a.prototype.isInfinity=function(){return this.z.cmpn(0)===0};cke=_re,sp=oa,vY=ei,L8=J8,dke=os;vY(J1,L8),Mre=J1,J1.prototype.validate=function(t){var e=t.normalize().x,n=e.redSqr(),f=n.redMul(e).redAdd(n.redMul(this.a)).redAdd(e);return f.redSqrt().redSqr().cmp(f)===0},vY(Ia,L8.BasePoint),J1.prototype.decodePoint=function(t,e){return this.point(dke.toArray(t,e),1)},J1.prototype.point=function(t,e){return new Ia(this,t,e)},J1.prototype.pointFromJSON=function(t){return Ia.fromJSON(this,t)},Ia.prototype.precompute=function(){},Ia.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},Ia.fromJSON=function(t,e){return new Ia(t,e[0],e[1]||t.one)},Ia.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)+">"},Ia.prototype.isInfinity=function(){return this.z.cmpn(0)===0},Ia.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),n=t.redSub(e),f=t.redMul(e),a=n.redMul(e.redAdd(this.curve.a24.redMul(n)));return this.curve.point(f,a)},Ia.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},Ia.prototype.diffAdd=function(t,e){var n=this.x.redAdd(this.z),f=this.x.redSub(this.z),a=t.x.redAdd(t.z),c=t.x.redSub(t.z).redMul(n),l=a.redMul(f),p=e.z.redMul(c.redAdd(l).redSqr()),w=e.x.redMul(c.redISub(l).redSqr());return this.curve.point(p,w)},Ia.prototype.mul=function(t){for(var e=t.clone(),n=this,f=this.curve.point(null,null),a=[];e.cmpn(0)!==0;e.iushrn(1))a.push(e.andln(1));for(var c=a.length-1;c>=0;c--)a[c]===0?(n=n.diffAdd(f,this),f=f.dbl()):(f=n.diffAdd(f,this),n=n.dbl());return f},Ia.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},Ia.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},Ia.prototype.eq=function(t){return this.getX().cmp(t.getX())===0},Ia.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},Ia.prototype.getX=function(){return this.normalize(),this.x.fromRed()};pke=Mre,Zh=oa,mY=ei,D8=J8,vke=os.assert;mY(qu,D8),Sre=qu,qu.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},qu.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},qu.prototype.jpoint=function(t,e,n,f){return this.point(t,e,n,f)},qu.prototype.pointFromX=function(t,e){(t=new Zh(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr(),f=this.c2.redSub(this.a.redMul(n)),a=this.one.redSub(this.c2.redMul(this.d).redMul(n)),c=f.redMul(a.redInvm()),l=c.redSqrt();if(l.redSqr().redSub(c).cmp(this.zero)!==0)throw new Error("invalid point");var p=l.fromRed().isOdd();return(e&&!p||!e&&p)&&(l=l.redNeg()),this.point(t,l)},qu.prototype.pointFromY=function(t,e){(t=new Zh(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr(),f=n.redSub(this.c2),a=n.redMul(this.d).redMul(this.c2).redSub(this.a),c=f.redMul(a.redInvm());if(c.cmp(this.zero)===0){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var l=c.redSqrt();if(l.redSqr().redSub(c).cmp(this.zero)!==0)throw new Error("invalid point");return l.fromRed().isOdd()!==e&&(l=l.redNeg()),this.point(l,t)},qu.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),n=t.y.redSqr(),f=e.redMul(this.a).redAdd(n),a=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(n)));return f.cmp(a)===0},mY(Tn,D8.BasePoint),qu.prototype.pointFromJSON=function(t){return Tn.fromJSON(this,t)},qu.prototype.point=function(t,e,n,f){return new Tn(this,t,e,n,f)},Tn.fromJSON=function(t,e){return new Tn(t,e[0],e[1],e[2])},Tn.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)+">"},Tn.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},Tn.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var f=this.curve._mulA(t),a=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),c=f.redAdd(e),l=c.redSub(n),p=f.redSub(e),w=a.redMul(l),m=c.redMul(p),y=a.redMul(p),g=l.redMul(c);return this.curve.point(w,m,g,y)},Tn.prototype._projDbl=function(){var t,e,n,f=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var l=(m=this.curve._mulA(a)).redAdd(c);if(this.zOne)t=f.redSub(a).redSub(c).redMul(l.redSub(this.curve.two)),e=l.redMul(m.redSub(c)),n=l.redSqr().redSub(l).redSub(l);else{var p=this.z.redSqr(),w=l.redSub(p).redISub(p);t=f.redSub(a).redISub(c).redMul(w),e=l.redMul(m.redSub(c)),n=l.redMul(w)}}else{var m=a.redAdd(c);p=this.curve._mulC(this.z).redSqr(),w=m.redSub(p).redSub(p),t=this.curve._mulC(f.redISub(m)).redMul(w),e=this.curve._mulC(m).redMul(a.redISub(c)),n=m.redMul(w)}return this.curve.point(t,e,n)},Tn.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},Tn.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),n=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),f=this.t.redMul(this.curve.dd).redMul(t.t),a=this.z.redMul(t.z.redAdd(t.z)),c=n.redSub(e),l=a.redSub(f),p=a.redAdd(f),w=n.redAdd(e),m=c.redMul(l),y=p.redMul(w),g=c.redMul(w),S=l.redMul(p);return this.curve.point(m,y,S,g)},Tn.prototype._projAdd=function(t){var e,n,f=this.z.redMul(t.z),a=f.redSqr(),c=this.x.redMul(t.x),l=this.y.redMul(t.y),p=this.curve.d.redMul(c).redMul(l),w=a.redSub(p),m=a.redAdd(p),y=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(c).redISub(l),g=f.redMul(w).redMul(y);return this.curve.twisted?(e=f.redMul(m).redMul(l.redSub(this.curve._mulA(c))),n=w.redMul(m)):(e=f.redMul(m).redMul(l.redSub(c)),n=this.curve._mulC(w).redMul(m)),this.curve.point(g,e,n)},Tn.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},Tn.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},Tn.prototype.mulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!1)},Tn.prototype.jmulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!0)},Tn.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},Tn.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},Tn.prototype.getX=function(){return this.normalize(),this.x.fromRed()},Tn.prototype.getY=function(){return this.normalize(),this.y.fromRed()},Tn.prototype.eq=function(t){return this===t||this.getX().cmp(t.getX())===0&&this.getY().cmp(t.getY())===0},Tn.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(e)===0)return!0;for(var n=t.clone(),f=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(f),this.x.cmp(e)===0)return!0}},Tn.prototype.toP=Tn.prototype.normalize,Tn.prototype.mixedAdd=Tn.prototype.add;mke=Sre,Wk={},K3=Wk;K3.base=J8,K3.short=cke,K3.mont=pke,K3.edwards=mke;gke={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"]]}},X8={},gk=X8,Vl=Y8,RA=Wk,gY=os.assert;gk.PresetCurve=Ere,Gl("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:Vl.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),Gl("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:Vl.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),Gl("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:Vl.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),Gl("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:Vl.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"]}),Gl("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:Vl.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"]}),Gl("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Vl.sha256,gRed:!1,g:["9"]}),Gl("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:Vl.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{mk=gke}catch(t){mk=void 0}Gl("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:Vl.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",mk]});yke=oa,yY=os.assert;Are=Xa,Xa.fromPublic=function(t,e,n){return e instanceof Xa?e:new Xa(t,{pub:e,pubEnc:n})},Xa.fromPrivate=function(t,e,n){return e instanceof Xa?e:new Xa(t,{priv:e,privEnc:n})},Xa.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.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"}},Xa.prototype.getPublic=function(t,e){return typeof t=="string"&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},Xa.prototype.getPrivate=function(t){return t==="hex"?this.priv.toString(16,2):this.priv},Xa.prototype._importPrivate=function(t,e){this.priv=new yke(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},Xa.prototype._importPublic=function(t,e){if(t.x||t.y)return this.ec.curve.type==="mont"?yY(t.x,"Need x coordinate"):this.ec.curve.type!=="short"&&this.ec.curve.type!=="edwards"||yY(t.x&&t.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(t.x,t.y),void 0;this.pub=this.ec.curve.decodePoint(t,e)},Xa.prototype.derive=function(t){return t.mul(this.priv).getX()},Xa.prototype.sign=function(t,e,n){return this.ec.sign(t,this,e,n)},Xa.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},Xa.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};bke=Are,N0=oa,bY=uke,kA=X8,wke=Hk,Rre=os.assert,TA=bke,W3=uRe;xre=nf,nf.prototype.keyPair=function(t){return new TA(this,t)},nf.prototype.keyFromPrivate=function(t,e){return TA.fromPrivate(this,t,e)},nf.prototype.keyFromPublic=function(t,e){return TA.fromPublic(this,t,e)},nf.prototype.genKeyPair=function(t){t||(t={});for(var e=new bY({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||wke(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),f=this.n.sub(new N0(2));;){var a=new N0(e.generate(n));if(!(a.cmp(f)>0))return a.iaddn(1),this.keyFromPrivate(a)}},nf.prototype._truncateToN=function(t,e){var n=8*t.byteLength()-this.n.bitLength();return n>0&&(t=t.ushrn(n)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},nf.prototype.sign=function(t,e,n,f){typeof n=="object"&&(f=n,n=null),f||(f={}),e=this.keyFromPrivate(e,n),t=this._truncateToN(new N0(t,16));for(var a=this.n.byteLength(),c=e.getPrivate().toArray("be",a),l=t.toArray("be",a),p=new bY({hash:this.hash,entropy:c,nonce:l,pers:f.pers,persEnc:f.persEnc||"utf8"}),w=this.n.sub(new N0(1)),m=0;;m++){var y=f.k?f.k(m):new N0(p.generate(this.n.byteLength()));if(!((y=this._truncateToN(y,!0)).cmpn(1)<=0||y.cmp(w)>=0)){var g=this.g.mul(y);if(!g.isInfinity()){var S=g.getX(),x=S.umod(this.n);if(x.cmpn(0)!==0){var A=y.invm(this.n).mul(x.mul(e.getPrivate()).iadd(t));if((A=A.umod(this.n)).cmpn(0)!==0){var T=(g.getY().isOdd()?1:0)|(S.cmp(x)!==0?2:0);return f.canonical&&A.cmp(this.nh)>0&&(A=this.n.sub(A),T^=1),new W3({r:x,s:A,recoveryParam:T})}}}}}},nf.prototype.verify=function(t,e,n,f){t=this._truncateToN(new N0(t,16)),n=this.keyFromPublic(n,f);var a=(e=new W3(e,"hex")).r,c=e.s;if(a.cmpn(1)<0||a.cmp(this.n)>=0||c.cmpn(1)<0||c.cmp(this.n)>=0)return!1;var l,p=c.invm(this.n),w=p.mul(t).umod(this.n),m=p.mul(a).umod(this.n);return this.curve._maxwellTrick?!(l=this.g.jmulAdd(w,n.getPublic(),m)).isInfinity()&&l.eqXToP(a):!(l=this.g.mulAdd(w,n.getPublic(),m)).isInfinity()&&l.getX().umod(this.n).cmp(a)===0},nf.prototype.recoverPubKey=function(t,e,n,f){Rre((3&n)===n,"The recovery param is more than two bits"),e=new W3(e,f);var a=this.n,c=new N0(t),l=e.r,p=e.s,w=1&n,m=n>>1;if(l.cmp(this.curve.p.umod(this.curve.n))>=0&&m)throw new Error("Unable to find sencond key candinate");l=m?this.curve.pointFromX(l.add(this.curve.n),w):this.curve.pointFromX(l,w);var y=e.r.invm(a),g=a.sub(c).mul(y).umod(a),S=p.mul(y).umod(a);return this.g.mulAdd(g,l,S)},nf.prototype.getKeyRecoveryParam=function(t,e,n,f){if((e=new W3(e,f)).recoveryParam!==null)return e.recoveryParam;for(var a=0;a<4;a++){var c;try{c=this.recoverPubKey(t,e,a)}catch{continue}if(c.eq(n))return a}throw new Error("Unable to find valid recovery factor")};_ke=xre,$2=os,wY=$2.assert,_Y=$2.parseBytes,X1=$2.cachedProperty;Ba.fromPublic=function(t,e){return e instanceof Ba?e:new Ba(t,{pub:e})},Ba.fromSecret=function(t,e){return e instanceof Ba?e:new Ba(t,{secret:e})},Ba.prototype.secret=function(){return this._secret},X1(Ba,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),X1(Ba,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),X1(Ba,"privBytes",function(){var t=this.eddsa,e=this.hash(),n=t.encodingLength-1,f=e.slice(0,t.encodingLength);return f[0]&=248,f[n]&=127,f[n]|=64,f}),X1(Ba,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),X1(Ba,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),X1(Ba,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),Ba.prototype.sign=function(t){return wY(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},Ba.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},Ba.prototype.getSecret=function(t){return wY(this._secret,"KeyPair is public only"),$2.encode(this.secret(),t)},Ba.prototype.getPublic=function(t){return $2.encode(this.pubBytes(),t)};Mke=Ba,Ske=oa,Q8=os,Eke=Q8.assert,V3=Q8.cachedProperty,Ake=Q8.parseBytes;V3(j0,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),V3(j0,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),V3(j0,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),V3(j0,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),j0.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},j0.prototype.toHex=function(){return Q8.encode(this.toBytes(),"hex").toUpperCase()};xke=j0,Rke=Y8,kke=X8,fp=os,Tke=fp.assert,MY=fp.parseBytes,SY=Mke,EY=xke;kre=Lo,Lo.prototype.sign=function(t,e){t=MY(t);var n=this.keyFromSecret(e),f=this.hashInt(n.messagePrefix(),t),a=this.g.mul(f),c=this.encodePoint(a),l=this.hashInt(c,n.pubBytes(),t).mul(n.priv()),p=f.add(l).umod(this.curve.n);return this.makeSignature({R:a,S:p,Rencoded:c})},Lo.prototype.verify=function(t,e,n){t=MY(t),e=this.makeSignature(e);var f=this.keyFromPublic(n),a=this.hashInt(e.Rencoded(),f.pubBytes(),t),c=this.g.mul(e.S());return e.R().add(f.pub().mul(a)).eq(c)},Lo.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return fp.intFromLE(t.digest()).umod(this.curve.n)},Lo.prototype.keyFromPublic=function(t){return SY.fromPublic(this,t)},Lo.prototype.keyFromSecret=function(t){return SY.fromSecret(this,t)},Lo.prototype.makeSignature=function(t){return t instanceof EY?t:new EY(this,t)},Lo.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},Lo.prototype.decodePoint=function(t){var e=(t=fp.parseBytes(t)).length-1,n=t.slice(0,e).concat(-129&t[e]),f=(128&t[e])!=0,a=fp.intFromLE(n);return this.curve.pointFromY(a,f)},Lo.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},Lo.prototype.decodeInt=function(t){return fp.intFromLE(t)},Lo.prototype.isPoint=function(t){return t instanceof this.pointClass};Ike=kre,e4={},C0=e4;C0.version=["elliptic","6.5.2","EC cryptography","lib/elliptic.js",["lib"],{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},{type:"git",url:"git@github.com:indutny/elliptic"},["EC","Elliptic","curve","Cryptography"],"Fedor Indutny <fedor@indutny.com>","MIT",{url:"https://github.com/indutny/elliptic/issues"},"https://github.com/indutny/elliptic",{brfs:"^1.4.3",coveralls:"^3.0.8",grunt:"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.2",jscs:"^3.0.7",jshint:"^2.10.3",mocha:"^6.2.2"},{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"}][1],C0.utils=os,C0.rand=Hk,C0.curve=Wk,C0.curves=X8,C0.ec=_ke,C0.eddsa=Ike;IA={},AY=!1,is=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,ma=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,Tre={},Bke=ei;Tre.Reporter=Xs,Xs.prototype.isError=function(t){return t instanceof Q1},Xs.prototype.save=function(){var t=(this||ma)._reporterState;return{obj:t.obj,pathLen:t.path.length}},Xs.prototype.restore=function(t){var e=(this||ma)._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},Xs.prototype.enterKey=function(t){return(this||ma)._reporterState.path.push(t)},Xs.prototype.exitKey=function(t){var e=(this||ma)._reporterState;e.path=e.path.slice(0,t-1)},Xs.prototype.leaveKey=function(t,e,n){var f=(this||ma)._reporterState;this.exitKey(t),f.obj!==null&&(f.obj[e]=n)},Xs.prototype.path=function(){return(this||ma)._reporterState.path.join("/")},Xs.prototype.enterObject=function(){var t=(this||ma)._reporterState,e=t.obj;return t.obj={},e},Xs.prototype.leaveObject=function(t){var e=(this||ma)._reporterState,n=e.obj;return e.obj=t,n},Xs.prototype.error=function(t){var e,n=(this||ma)._reporterState,f=t instanceof Q1;if(e=f?t:new Q1(n.path.map(function(a){return"["+JSON.stringify(a)+"]"}).join(""),t.message||t,t.stack),!n.options.partial)throw e;return f||n.errors.push(e),e},Xs.prototype.wrapResult=function(t){var e=(this||ma)._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},Bke(Q1,Error),Q1.prototype.rethrow=function(t){if((this||ma).message=t+" at: "+((this||ma).path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this||ma,Q1),!(this||ma).stack)try{throw new Error((this||ma).message)}catch(e){(this||ma).stack=e.stack}return this||ma};G3={},xY=!1,Vr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;BA={},kY=!1,$r=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,OA={},TY=!1;Ul={},IY=!1,PA={},BY=!1;NA={},OY=!1,ql=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;CA={},NY=!1,LA=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,DA={},CY=!1;$A={},LY=!1,da=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;UA={},$Y=!1,qA=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,jA={},UY=!1;FA={},qY=!1;Bre=t4(),au=Bre,jY=au.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),Nke=au.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),Vk=au.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),Cke=au.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(Vk),this.key("subjectPublicKey").bitstr())}),Lke=au.define("RelativeDistinguishedName",function(){this.setof(Nke)}),Dke=au.define("RDNSequence",function(){this.seqof(Lke)}),FY=au.define("Name",function(){this.choice({rdnSequence:this.use(Dke)})}),$ke=au.define("Validity",function(){this.seq().obj(this.key("notBefore").use(jY),this.key("notAfter").use(jY))}),Uke=au.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),qke=au.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(Vk),this.key("issuer").use(FY),this.key("validity").use($ke),this.key("subject").use(FY),this.key("subjectPublicKeyInfo").use(Cke),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(Uke).optional())}),jke=au.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(qke),this.key("signatureAlgorithm").use(Vk),this.key("signatureValue").bitstr())}),iu={},ou=Bre;iu.certificate=jke;Fke=ou.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});iu.RSAPrivateKey=Fke;zke=ou.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});iu.RSAPublicKey=zke;Hke=ou.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(Ore),this.key("subjectPublicKey").bitstr())});iu.PublicKey=Hke;Ore=ou.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),Zke=ou.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(Ore),this.key("subjectPrivateKey").octstr())});iu.PrivateKey=Zke;Kke=ou.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});iu.EncryptedPrivateKey=Kke;Wke=ou.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});iu.DSAPrivateKey=Wke,iu.DSAparam=ou.define("DSAparam",function(){this.int()});Vke=ou.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(Gke),this.key("publicKey").optional().explicit(1).bitstr())});iu.ECPrivateKey=Vke;Gke=ou.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});iu.signature=ou.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())});Yke=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,Jke=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,Xke=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,Qke=G8,eTe=as,Y3=Bi.Buffer,No=iu,tTe={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"},rTe=function(t,e){var n,f=t.toString(),a=f.match(Yke);if(a){var c="aes"+a[1],l=Y3.from(a[2],"hex"),p=Y3.from(a[3].replace(/[\r\n]/g,""),"base64"),w=Qke(e,l.slice(0,8),parseInt(a[1],10)).key,m=[],y=eTe.createDecipheriv(c,w,l);m.push(y.update(p)),m.push(y.final()),n=Y3.concat(m)}else{var g=f.match(Xke);n=new Y3(g[2].replace(/[\r\n]/g,""),"base64")}return{tag:f.match(Jke)[1],data:n}},iTe=as,nTe=O8,zA=Bi.Buffer;Pre=zY,zY.signature=No.signature;r4=Pre,Nre={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"},yk={},eo=jr.Buffer,X0=lte,aTe=Zk,oTe=e4.ec,$8=oa,sTe=r4,fTe=Nre;(yk=function(t,e,n,f,a){var c=sTe(e);if(c.curve){if(f!=="ecdsa"&&f!=="ecdsa/rsa")throw new Error("wrong private key type");return function(m,y){var g=fTe[y.curve.join(".")];if(!g)throw new Error("unknown curve "+y.curve.join("."));var S=new oTe(g).keyFromPrivate(y.privateKey).sign(m);return new eo(S.toDER())}(t,c)}if(c.type==="dsa"){if(f!=="dsa")throw new Error("wrong private key type");return function(m,y,g){for(var S,x=y.params.priv_key,A=y.params.p,T=y.params.q,I=y.params.g,B=new $8(0),P=Gk(m,T).mod(T),C=!1,q=HY(x,T,m,g);C===!1;)S=ZY(T,q,g),B=uTe(I,S,A,T),(C=S.invm(T).imul(P.add(x.mul(B))).mod(T)).cmpn(0)===0&&(C=!1,B=new $8(0));return function(Z,G){Z=Z.toArray(),G=G.toArray(),128&Z[0]&&(Z=[0].concat(Z)),128&G[0]&&(G=[0].concat(G));var j=[48,Z.length+G.length+4,2,Z.length];return j=j.concat(Z,[2,G.length],G),new eo(j)}(B,C)}(t,c,n)}if(f!=="rsa"&&f!=="ecdsa/rsa")throw new Error("wrong private key type");t=eo.concat([a,t]);for(var l=c.modulus.byteLength(),p=[0,1];t.length+p.length+1<l;)p.push(255);p.push(0);for(var w=-1;++w<t.length;)p.push(t[w]);return aTe(p,c)}).getKey=HY,yk.makeKey=ZY;hTe=yk,HA=jr.Buffer,h2=oa,lTe=e4.ec,KY=r4,cTe=Nre;dTe=function(t,e,n,f,a){var c=KY(n);if(c.type==="ec"){if(f!=="ecdsa"&&f!=="ecdsa/rsa")throw new Error("wrong public key type");return function(S,x,A){var T=cTe[A.data.algorithm.curve.join(".")];if(!T)throw new Error("unknown curve "+A.data.algorithm.curve.join("."));var I=new lTe(T),B=A.data.subjectPrivateKey.data;return I.verify(x,S,B)}(t,e,c)}if(c.type==="dsa"){if(f!=="dsa")throw new Error("wrong public key type");return function(S,x,A){var T=A.data.p,I=A.data.q,B=A.data.g,P=A.data.pub_key,C=KY.signature.decode(S,"der"),q=C.s,Z=C.r;WY(q,I),WY(Z,I);var G=h2.mont(T),j=q.invm(I);return B.toRed(G).redPow(new h2(x).mul(j).mod(I)).fromRed().mul(P.toRed(G).redPow(Z.mul(j).mod(I)).fromRed()).mod(T).mod(I).cmp(Z)===0}(t,e,c)}if(f!=="rsa"&&f!=="ecdsa/rsa")throw new Error("wrong public key type");e=HA.concat([a,e]);for(var l=c.modulus.byteLength(),p=[1],w=0;e.length+p.length+2<l;)p.push(255),w++;p.push(0);for(var m=-1;++m<e.length;)p.push(e[m]);p=new HA(p);var y=h2.mont(c.modulus);t=(t=new h2(t).toRed(y)).redPow(new h2(c.publicExponent)),t=new HA(t.fromRed().toArray());var g=w<8?1:0;for(l=Math.min(t.length,p.length),t.length!==p.length&&(g=1),m=-1;++m<l;)g|=t[m]^p[m];return g===0},Vn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,J3=jr.Buffer,Cre=Z2,U8=of,VY=ei,pTe=hTe,vTe=dTe,Z0=cte;Object.keys(Z0).forEach(function(t){Z0[t].id=new J3(Z0[t].id,"hex"),Z0[t.toLowerCase()]=Z0[t]}),VY(A2,U8.Writable),A2.prototype._write=function(t,e,n){(this||Vn)._hash.update(t),n()},A2.prototype.update=function(t,e){return typeof t=="string"&&(t=new J3(t,e)),(this||Vn)._hash.update(t),this||Vn},A2.prototype.sign=function(t,e){this.end();var n=(this||Vn)._hash.digest(),f=pTe(n,t,(this||Vn)._hashType,(this||Vn)._signType,(this||Vn)._tag);return e?f.toString(e):f},VY(x2,U8.Writable),x2.prototype._write=function(t,e,n){(this||Vn)._hash.update(t),n()},x2.prototype.update=function(t,e){return typeof t=="string"&&(t=new J3(t,e)),(this||Vn)._hash.update(t),this||Vn},x2.prototype.verify=function(t,e,n){typeof e=="string"&&(e=new J3(e,n)),this.end();var f=(this||Vn)._hash.digest();return vTe(e,f,t,(this||Vn)._signType,(this||Vn)._tag)};mTe={Sign:GY,Verify:YY,createSign:GY,createVerify:YY},ga=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,Hh=jr.Buffer,gTe=e4,yTe=oa;Lre=function(t){return new F0(t)};ns={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};ns.p224=ns.secp224r1,ns.p256=ns.secp256r1=ns.prime256v1,ns.p192=ns.secp192r1=ns.prime192v1,ns.p384=ns.secp384r1,ns.p521=ns.secp521r1,F0.prototype.generateKeys=function(t,e){return(this||ga).keys=(this||ga).curve.genKeyPair(),this.getPublicKey(t,e)},F0.prototype.computeSecret=function(t,e,n){return e=e||"utf8",Hh.isBuffer(t)||(t=new Hh(t,e)),ZA((this||ga).curve.keyFromPublic(t).getPublic().mul((this||ga).keys.getPrivate()).getX(),n,(this||ga).curveType.byteLength)},F0.prototype.getPublicKey=function(t,e){var n=(this||ga).keys.getPublic(e==="compressed",!0);return e==="hybrid"&&(n[n.length-1]%2?n[0]=7:n[0]=6),ZA(n,t)},F0.prototype.getPrivateKey=function(t){return ZA((this||ga).keys.getPrivate(),t)},F0.prototype.setPublicKey=function(t,e){return e=e||"utf8",Hh.isBuffer(t)||(t=new Hh(t,e)),(this||ga).keys._importPublic(t),this||ga},F0.prototype.setPrivateKey=function(t,e){e=e||"utf8",Hh.isBuffer(t)||(t=new Hh(t,e));var n=new yTe(t);return n=n.toString(16),(this||ga).keys=(this||ga).curve.genKeyPair(),(this||ga).keys._importPrivate(n),this||ga};bTe=Lre,wTe=Z2,bk=Bi.Buffer;Dre=function(t,e){for(var n,f=bk.alloc(0),a=0;f.length<e;)n=_Te(a++),f=bk.concat([f,wTe("sha1").update(t).update(n).digest()]);return f.slice(0,e)},$re=function(t,e){for(var n=t.length,f=-1;++f<n;)t[f]^=e[f];return t},JY=oa,MTe=Bi.Buffer,Ure=function(t,e){return MTe.from(t.toRed(JY.mont(e.modulus)).redPow(new JY(e.publicExponent)).fromRed().toArray())},STe=r4,KA=bp,ETe=Z2,XY=Dre,QY=$re,WA=oa,ATe=Ure,xTe=Zk,Gf=Bi.Buffer,RTe=function(t,e,n){var f;f=t.padding?t.padding:n?1:4;var a,c=STe(t);if(f===4)a=function(l,p){var w=l.modulus.byteLength(),m=p.length,y=ETe("sha1").update(Gf.alloc(0)).digest(),g=y.length,S=2*g;if(m>w-S-2)throw new Error("message too long");var x=Gf.alloc(w-m-S-2),A=w-g-1,T=KA(g),I=QY(Gf.concat([y,x,Gf.alloc(1,1),p],A),XY(T,A)),B=QY(T,XY(I,g));return new WA(Gf.concat([Gf.alloc(1),B,I],w))}(c,e);else if(f===1)a=function(l,p,w){var m,y=p.length,g=l.modulus.byteLength();if(y>g-11)throw new Error("message too long");return m=w?Gf.alloc(g-y-3,255):function(S){for(var x,A=Gf.allocUnsafe(S),T=0,I=KA(2*S),B=0;T<S;)B===I.length&&(I=KA(2*S),B=0),(x=I[B++])&&(A[T++]=x);return A}(g-y-3),new WA(Gf.concat([Gf.from([0,w?1:2]),m,Gf.alloc(1),p],g))}(c,e,n);else{if(f!==3)throw new Error("unknown padding");if((a=new WA(e)).cmp(c.modulus)>=0)throw new Error("data too long for modulus")}return n?xTe(a,c):ATe(a,c)},kTe=r4,eJ=Dre,tJ=$re,rJ=oa,TTe=Zk,ITe=Z2,BTe=Ure,l2=Bi.Buffer,OTe=function(t,e,n){var f;f=t.padding?t.padding:n?1:4;var a,c=kTe(t),l=c.modulus.byteLength();if(e.length>l||new rJ(e).cmp(c.modulus)>=0)throw new Error("decryption error");a=n?BTe(new rJ(e),c):TTe(e,c);var p=l2.alloc(l-a.length);if(a=l2.concat([p,a],l),f===4)return function(w,m){var y=w.modulus.byteLength(),g=ITe("sha1").update(l2.alloc(0)).digest(),S=g.length;if(m[0]!==0)throw new Error("decryption error");var x=m.slice(1,S+1),A=m.slice(S+1),T=tJ(x,eJ(A,S)),I=tJ(A,eJ(T,y-S-1));if(function(P,C){P=l2.from(P),C=l2.from(C);var q=0,Z=P.length;P.length!==C.length&&(q++,Z=Math.min(P.length,C.length));for(var G=-1;++G<Z;)q+=P[G]^C[G];return q}(g,I.slice(0,S)))throw new Error("decryption error");for(var B=S;I[B]===0;)B++;if(I[B++]!==1)throw new Error("decryption error");return I.slice(B)}(c,a);if(f===1)return function(w,m,y){for(var g=m.slice(0,2),S=2,x=0;m[S++]!==0;)if(S>=m.length){x++;break}var A=m.slice(2,S-1);if((g.toString("hex")!=="0002"&&!y||g.toString("hex")!=="0001"&&y)&&x++,A.length<8&&x++,x)throw new Error("decryption error");return m.slice(S)}(0,a,n);if(f===3)return a;throw new Error("unknown padding")},z0={};z0.publicEncrypt=RTe,z0.privateDecrypt=OTe,z0.privateEncrypt=function(t,e){return z0.publicEncrypt(t,e,!0)},z0.publicDecrypt=function(t,e){return z0.privateDecrypt(t,e,!0)};q8=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,R2={},wk=Ur;qre=Bi,nJ=bp,aJ=qre.Buffer,jre=qre.kMaxLength,_k=q8.crypto||q8.msCrypto,Fre=Math.pow(2,32)-1;_k&&_k.getRandomValues||!wk.browser?(R2.randomFill=function(t,e,n,f){if(!(aJ.isBuffer(t)||t instanceof q8.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof e=="function")f=e,e=0,n=t.length;else if(typeof n=="function")f=n,n=t.length-e;else if(typeof f!="function")throw new TypeError('"cb" argument must be a function');return oJ(e,t.length),sJ(n,e,t.length),fJ(t,e,n,f)},R2.randomFillSync=function(t,e,n){if(e===void 0&&(e=0),!(aJ.isBuffer(t)||t instanceof q8.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return oJ(e,t.length),n===void 0&&(n=t.length-e),sJ(n,e,t.length),fJ(t,e,n)}):(R2.randomFill=iJ,R2.randomFillSync=iJ);_i={};_i.randomBytes=_i.rng=_i.pseudoRandomBytes=_i.prng=bp,_i.createHash=_i.Hash=Z2,_i.createHmac=_i.Hmac=lte;PTe=cte,NTe=Object.keys(PTe),CTe=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(NTe);_i.getHashes=function(){return CTe};uJ=O8;_i.pbkdf2=uJ.pbkdf2,_i.pbkdf2Sync=uJ.pbkdf2Sync;ju=Jf;_i.Cipher=ju.Cipher,_i.createCipher=ju.createCipher,_i.Cipheriv=ju.Cipheriv,_i.createCipheriv=ju.createCipheriv,_i.Decipher=ju.Decipher,_i.createDecipher=ju.createDecipher,_i.Decipheriv=ju.Decipheriv,_i.createDecipheriv=ju.createDecipheriv,_i.getCiphers=ju.getCiphers,_i.listCiphers=ju.listCiphers;c2=np;_i.DiffieHellmanGroup=c2.DiffieHellmanGroup,_i.createDiffieHellmanGroup=c2.createDiffieHellmanGroup,_i.getDiffieHellman=c2.getDiffieHellman,_i.createDiffieHellman=c2.createDiffieHellman,_i.DiffieHellman=c2.DiffieHellman;X3=mTe;_i.createSign=X3.createSign,_i.Sign=X3.Sign,_i.createVerify=X3.createVerify,_i.Verify=X3.Verify,_i.createECDH=bTe;Q3=z0;_i.publicEncrypt=Q3.publicEncrypt,_i.privateEncrypt=Q3.privateEncrypt,_i.publicDecrypt=Q3.publicDecrypt,_i.privateDecrypt=Q3.privateDecrypt;hJ=R2;_i.randomFill=hJ.randomFill,_i.randomFillSync=hJ.randomFillSync,_i.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
|
|
137
137
|
`))},_i.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6};e8={},lJ=!1,t8=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;VA={},cJ=!1,dJ=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;GA={},pJ=!1;LTe={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}},YA={},vJ=!1,Ni=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;L0={},mJ=!1;Zre={},gJ=!1,JA={exports:Zre},$e=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;XA={},yJ=!1;UTe={_args:[["elliptic@6.5.4","C:\\Users\\guybe\\Projects\\rollup-plugin-jspm"]],_from:"elliptic@6.5.4",_id:"elliptic@6.5.4",_inBundle:!1,_integrity:"sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==",_location:"/@jspm/core/elliptic",_phantomChildren:{},_requested:{type:"version",registry:!0,raw:"elliptic@6.5.4",name:"elliptic",escapedName:"elliptic",rawSpec:"6.5.4",saveSpec:null,fetchSpec:"6.5.4"},_requiredBy:["/@jspm/core/browserify-sign","/@jspm/core/create-ecdh"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz",_spec:"6.5.4",_where:"C:\\Users\\guybe\\Projects\\rollup-plugin-jspm",author:{name:"Fedor Indutny",email:"fedor@indutny.com"},bugs:{url:"https://github.com/indutny/elliptic/issues"},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"},description:"EC cryptography",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"},files:["lib"],homepage:"https://github.com/indutny/elliptic",keywords:["EC","Elliptic","curve","Cryptography"],license:"MIT",main:"lib/elliptic.js",name:"elliptic",repository:{type:"git",url:"git+ssh://git@github.com/indutny/elliptic.git"},scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",test:"npm run lint && npm run unit",unit:"istanbul test _mocha --reporter=spec test/index.js",version:"grunt dist && git add dist/"},version:"6.5.4"},Kre={},bJ=!1,QA={exports:Kre},Ke=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;ex={},wJ=!1;tx={},_J=!1;rx={},MJ=!1;ix={},SJ=!1;nx={},EJ=!1;ax={},AJ=!1;ox={},xJ=!1;bn={},RJ=!1;sx={},kJ=!1;TJ={},IJ=!1;fx={},BJ=!1;ux={},OJ=!1;hx={},PJ=!1;lx={},NJ=!1;cx={},CJ=!1;dx={},LJ=!1;px={},DJ=!1;vx={},$J=!1;mx={},UJ=!1;gx={},qJ=!1;yx={},jJ=!1;bx={},FJ=!1;wx={},zJ=!1;Yre={},HJ=!1,_x={exports:Yre},We=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Mx={},ZJ=!1;Sx={},KJ=!1;r8={},WJ=!1;Ex={},VJ=!1;jl={},GJ=!1;Ax={},YJ=!1;xx={},JJ=!1;Rx={},XJ=!1;kx={},QJ=!1;Tx={},eX=!1;Ix={},tX=!1;Bx={},rX=!1;Ox={},iX=!1;Px={},nX=!1;Nx={},aX=!1;Cx={},oX=!1;Qs={},sX=!1;sIe={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"},Lx={},fX=!1;Dx={},uX=!1;iie={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"},d2={},hX=!1;$x={},lX=!1;Ux={},cX=!1,Hn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;nie={},dX=!1,qx={exports:nie},Ve=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;jx={},pX=!1,pa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Fx={},vX=!1;zx={},mX=!1;sie={},gX=!1,Hx={exports:sie},Ge=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Zx={},yX=!1;Kx={},bX=!1;Wx={},wX=!1;Fl={},_X=!1;ep={},MX=!1,i8=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;mi={},SX=!1;Mi=yIe();Mi.Cipher;Mi.Cipheriv;Mi.Decipher;Mi.Decipheriv;Mi.DiffieHellman;Mi.DiffieHellmanGroup;Mi.Hash;Mi.Hmac;Mi.Sign;Mi.Verify;Mi.constants;Mi.createCipher;Mi.createCipheriv;Mi.createCredentials;Mi.createDecipher;Mi.createDecipheriv;Mi.createDiffieHellman;Mi.createDiffieHellmanGroup;Mi.createECDH;Mi.createHash;Mi.createHmac;Mi.createSign;Mi.createVerify;Mi.getCiphers;Mi.getDiffieHellman;Mi.getHashes;Mi.listCiphers;Mi.pbkdf2;Mi.pbkdf2Sync;Mi.privateDecrypt;Mi.privateEncrypt;Mi.prng;Mi.pseudoRandomBytes;Mi.publicDecrypt;Mi.publicEncrypt;Mi.randomBytes;Mi.randomFill;Mi.randomFillSync;Mi.rng;n8={},EX=!1,a8=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Vx={},AX=!1,xX=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Gx={},RX=!1;bIe={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}},Yx={},kX=!1,Ci=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;D0={},TX=!1;p2={},IX=!1;lie={},BX=!1,Jx={exports:lie},Ue=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Xx={},OX=!1;MIe={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}},cie={},PX=!1,Qx={exports:cie},Ye=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;eR={},NX=!1;tR={},CX=!1;rR={},LX=!1;iR={},DX=!1;nR={},$X=!1;aR={},UX=!1;oR={},qX=!1;wn={},jX=!1;sR={},FX=!1;zX={},HX=!1;fR={},ZX=!1;uR={},KX=!1;hR={},WX=!1;lR={},VX=!1;cR={},GX=!1;dR={},YX=!1;pR={},JX=!1;vR={},XX=!1;mR={},QX=!1;gR={},eQ=!1;yR={},tQ=!1;bR={},rQ=!1;wR={},iQ=!1;mie={},nQ=!1,_R={exports:mie},Je=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;MR={},aQ=!1;SR={},oQ=!1;o8={},sQ=!1;ER={},fQ=!1;zl={},uQ=!1;AR={},hQ=!1;xR={},lQ=!1;RR={},cQ=!1;kR={},dQ=!1;TR={},pQ=!1;IR={},vQ=!1;BR={},mQ=!1;OR={},gQ=!1;PR={},yQ=!1;NR={},bQ=!1;CR={},wQ=!1;ef={},_Q=!1;HIe={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"},LR={},MQ=!1;DR={},SQ=!1;Sie={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"},v2={},EQ=!1;$R={},AQ=!1;UR={},xQ=!1,Zn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Eie={},RQ=!1,qR={exports:Eie},Xe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;jR={},kQ=!1,va=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;FR={},TQ=!1;zR={},IQ=!1;Rie={},BQ=!1,HR={exports:Rie},Qe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;ZR={},OQ=!1;KR={},PQ=!1;WR={},NQ=!1;Hl={},CQ=!1;tp={},LQ=!1,s8=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;gi={},DQ=!1;Mr=tBe();Mr.randomBytes;Mr.rng;Mr.pseudoRandomBytes;Mr.prng;Mr.createHash;Mr.Hash;Mr.createHmac;Mr.Hmac;Mr.getHashes;Mr.pbkdf2;Mr.pbkdf2Sync;Mr.Cipher;Mr.createCipher;Mr.Cipheriv;Mr.createCipheriv;Mr.Decipher;Mr.createDecipher;Mr.Decipheriv;Mr.createDecipheriv;Mr.getCiphers;Mr.listCiphers;Mr.DiffieHellmanGroup;Mr.createDiffieHellmanGroup;Mr.getDiffieHellman;Mr.createDiffieHellman;Mr.DiffieHellman;Mr.createSign;Mr.Sign;Mr.createVerify;Mr.Verify;Mr.createECDH;Mr.publicEncrypt;Mr.privateEncrypt;Mr.publicDecrypt;Mr.privateDecrypt;Mr.randomFill;Mr.randomFillSync;Mr.createCredentials;Mr.constants;Mr.webcrypto=globalThis.crypto;rBe=Mr.Cipher,iBe=Mr.Cipheriv,nBe=Mr.Decipher,aBe=Mr.Decipheriv,oBe=Mr.DiffieHellman,sBe=Mr.DiffieHellmanGroup,fBe=Mr.Hash,uBe=Mr.Hmac,hBe=Mr.Sign,lBe=Mr.Verify,cBe=Mr.constants,dBe=Mr.createCipher,pBe=Mr.createCipheriv,vBe=Mr.createCredentials,mBe=Mr.createDecipher,gBe=Mr.createDecipheriv,yBe=Mr.createDiffieHellman,bBe=Mr.createDiffieHellmanGroup,wBe=Mr.createECDH,_Be=Mr.createHash,MBe=Mr.createHmac,SBe=Mr.createSign,EBe=Mr.createVerify,ABe=Mr.getCiphers,xBe=Mr.getDiffieHellman,RBe=Mr.getHashes,kBe=Mr.listCiphers,TBe=Mr.pbkdf2,IBe=Mr.pbkdf2Sync,BBe=Mr.privateDecrypt,OBe=Mr.privateEncrypt,PBe=Mr.prng,NBe=Mr.pseudoRandomBytes,CBe=Mr.publicDecrypt,LBe=Mr.publicEncrypt,DBe=Mr.randomBytes,$Be=Mr.randomFill,UBe=Mr.randomFillSync,qBe=Mr.rng,jBe=Mr.webcrypto});var Oie=Zt(Gh=>{"use strict";Be();Pe();Oe();var FBe=Gh&&Gh.__createBinding||(Object.create?function(t,e,n,f){f===void 0&&(f=n);var a=Object.getOwnPropertyDescriptor(e,n);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,f,a)}:function(t,e,n,f){f===void 0&&(f=n),t[f]=e[n]}),zBe=Gh&&Gh.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),HBe=Gh&&Gh.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&FBe(e,t,n);return zBe(e,t),e};Object.defineProperty(Gh,"__esModule",{value:!0});var Bie=xK(),hf=HBe((Iie(),Zi(Tie))),bT=class{keyLength=4096;publicExponent=65537;hashAlgorithm="sha256";encryptionAlgorithm="aes-256-cbc";generateJWK(){if(typeof hf.generateKeyPair!="function")throw new Error("Keypair generation not supported in this version of Node, only supported in versions 10+");return new Promise((e,n)=>{hf.generateKeyPair("rsa",{modulusLength:this.keyLength,publicExponent:this.publicExponent,privateKeyEncoding:{type:"pkcs1",format:"pem"},publicKeyEncoding:{type:"pkcs1",format:"pem"}},(f,a,c)=>{f&&n(f),e(this.pemToJWK(c))})})}sign(e,n,{saltLength:f}={}){return new Promise((a,c)=>{a(hf.createSign(this.hashAlgorithm).update(n).sign({key:this.jwkToPem(e),padding:hf.constants.RSA_PKCS1_PSS_PADDING,saltLength:f}))})}verify(e,n,f){return new Promise((a,c)=>{let l={kty:"RSA",e:"AQAB",n:e},p=this.jwkToPem(l);a(hf.createVerify(this.hashAlgorithm).update(n).verify({key:p,padding:hf.constants.RSA_PKCS1_PSS_PADDING},f))})}hash(e,n="SHA-256"){if(typeof e=="string")throw new TypeError("Data must be a Uint8Array");return new Promise((f,a)=>{f(hf.createHash(this.parseHashAlgorithm(n)).update(e).digest())})}async encrypt(e,n,f){let a=hf.pbkdf2Sync(n,f=f||"salt",1e5,32,this.hashAlgorithm),c=hf.randomBytes(16),l=hf.createCipheriv(this.encryptionAlgorithm,a,c);return St.concat([c,l.update(e),l.final()])}async decrypt(e,n,f){try{let a=hf.pbkdf2Sync(n,f=f||"salt",1e5,32,this.hashAlgorithm),c=e.slice(0,16),l=e.slice(16),p=hf.createDecipheriv(this.encryptionAlgorithm,a,c);return St.concat([p.update(l),p.final()])}catch{throw new Error("Failed to decrypt")}}jwkToPem(e){return(0,Bie.jwkTopem)(e)}pemToJWK(e){return(0,Bie.pemTojwk)(e)}parseHashAlgorithm(e){switch(e){case"SHA-256":return"sha256";case"SHA-384":return"sha384";default:throw new Error(`Algorithm not supported: ${e}`)}}};Gh.default=bT});var Pie=Zt(_T=>{"use strict";Be();Pe();Oe();Object.defineProperty(_T,"__esModule",{value:!0});var wT=class{api;constructor(e){this.api=e}getInfo(){return this.api.get("info").then(e=>e.data)}getPeers(){return this.api.get("peers").then(e=>e.data)}};_T.default=wT});var G2=Zt(V2=>{"use strict";Be();Pe();Oe();Object.defineProperty(V2,"__esModule",{value:!0});V2.getError=void 0;var MT=class extends Error{type;response;constructor(e,n={}){n.message?super(n.message):super(),this.type=e,this.response=n.response}getType(){return this.type}};V2.default=MT;function ZBe(t){let e=t.data;if(typeof t.data=="string")try{e=JSON.parse(t.data)}catch{}if(t.data instanceof ArrayBuffer||t.data instanceof Uint8Array)try{e=JSON.parse(e.toString())}catch{}return e?e.error||e:t.statusText||"unknown"}V2.getError=ZBe});var Lie=Zt(u4=>{"use strict";Be();Pe();Oe();u4.byteLength=WBe;u4.toByteArray=GBe;u4.fromByteArray=XBe;var Qu=[],lf=[],KBe=typeof Uint8Array<"u"?Uint8Array:Array,ST="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(id=0,Nie=ST.length;id<Nie;++id)Qu[id]=ST[id],lf[ST.charCodeAt(id)]=id;var id,Nie;lf[45]=62;lf[95]=63;function Cie(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");n===-1&&(n=e);var f=n===e?0:4-n%4;return[n,f]}function WBe(t){var e=Cie(t),n=e[0],f=e[1];return(n+f)*3/4-f}function VBe(t,e,n){return(e+n)*3/4-n}function GBe(t){var e,n=Cie(t),f=n[0],a=n[1],c=new KBe(VBe(t,f,a)),l=0,p=a>0?f-4:f,w;for(w=0;w<p;w+=4)e=lf[t.charCodeAt(w)]<<18|lf[t.charCodeAt(w+1)]<<12|lf[t.charCodeAt(w+2)]<<6|lf[t.charCodeAt(w+3)],c[l++]=e>>16&255,c[l++]=e>>8&255,c[l++]=e&255;return a===2&&(e=lf[t.charCodeAt(w)]<<2|lf[t.charCodeAt(w+1)]>>4,c[l++]=e&255),a===1&&(e=lf[t.charCodeAt(w)]<<10|lf[t.charCodeAt(w+1)]<<4|lf[t.charCodeAt(w+2)]>>2,c[l++]=e>>8&255,c[l++]=e&255),c}function YBe(t){return Qu[t>>18&63]+Qu[t>>12&63]+Qu[t>>6&63]+Qu[t&63]}function JBe(t,e,n){for(var f,a=[],c=e;c<n;c+=3)f=(t[c]<<16&16711680)+(t[c+1]<<8&65280)+(t[c+2]&255),a.push(YBe(f));return a.join("")}function XBe(t){for(var e,n=t.length,f=n%3,a=[],c=16383,l=0,p=n-f;l<p;l+=c)a.push(JBe(t,l,l+c>p?p:l+c));return f===1?(e=t[n-1],a.push(Qu[e>>2]+Qu[e<<4&63]+"==")):f===2&&(e=(t[n-2]<<8)+t[n-1],a.push(Qu[e>>10]+Qu[e>>4&63]+Qu[e<<2&63]+"=")),a.join("")}});var Yh=Zt(_n=>{"use strict";Be();Pe();Oe();var QBe=_n&&_n.__createBinding||(Object.create?function(t,e,n,f){f===void 0&&(f=n);var a=Object.getOwnPropertyDescriptor(e,n);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,f,a)}:function(t,e,n,f){f===void 0&&(f=n),t[f]=e[n]}),eOe=_n&&_n.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),tOe=_n&&_n.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&QBe(e,t,n);return eOe(e,t),e};Object.defineProperty(_n,"__esModule",{value:!0});_n.b64UrlDecode=_n.b64UrlEncode=_n.bufferTob64Url=_n.bufferTob64=_n.b64UrlToBuffer=_n.stringToB64Url=_n.stringToBuffer=_n.bufferToString=_n.b64UrlToString=_n.concatBuffers=void 0;var Die=tOe(Lie());function rOe(t){let e=0;for(let a=0;a<t.length;a++)e+=t[a].byteLength;let n=new Uint8Array(e),f=0;n.set(new Uint8Array(t[0]),f),f+=t[0].byteLength;for(let a=1;a<t.length;a++)n.set(new Uint8Array(t[a]),f),f+=t[a].byteLength;return n}_n.concatBuffers=rOe;function iOe(t){let e=qie(t);return $ie(e)}_n.b64UrlToString=iOe;function $ie(t){return new TextDecoder("utf-8",{fatal:!0}).decode(t)}_n.bufferToString=$ie;function Uie(t){return new TextEncoder().encode(t)}_n.stringToBuffer=Uie;function nOe(t){return Fie(Uie(t))}_n.stringToB64Url=nOe;function qie(t){return new Uint8Array(Die.toByteArray(Hie(t)))}_n.b64UrlToBuffer=qie;function jie(t){return Die.fromByteArray(new Uint8Array(t))}_n.bufferTob64=jie;function Fie(t){return zie(jie(t))}_n.bufferTob64Url=Fie;function zie(t){return t.replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}_n.b64UrlEncode=zie;function Hie(t){t=t.replace(/\-/g,"+").replace(/\_/g,"/");let e;return t.length%4==0?e=0:e=4-t.length%4,t.concat("=".repeat(e))}_n.b64UrlDecode=Hie});var Wie=Zt(Y2=>{"use strict";Be();Pe();Oe();var aOe=Y2&&Y2.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Y2,"__esModule",{value:!0});var ss=aOe(h4());async function Zie(t){if(Array.isArray(t)){let f=ss.default.utils.concatBuffers([ss.default.utils.stringToBuffer("list"),ss.default.utils.stringToBuffer(t.length.toString())]);return await Kie(t,await ss.default.crypto.hash(f,"SHA-384"))}let e=ss.default.utils.concatBuffers([ss.default.utils.stringToBuffer("blob"),ss.default.utils.stringToBuffer(t.byteLength.toString())]),n=ss.default.utils.concatBuffers([await ss.default.crypto.hash(e,"SHA-384"),await ss.default.crypto.hash(t,"SHA-384")]);return await ss.default.crypto.hash(n,"SHA-384")}Y2.default=Zie;async function Kie(t,e){if(t.length<1)return e;let n=ss.default.utils.concatBuffers([e,await Zie(t[0])]),f=await ss.default.crypto.hash(n,"SHA-384");return await Kie(t.slice(1),f)}});var TT=Zt(Si=>{"use strict";Be();Pe();Oe();var oOe=Si&&Si.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Si,"__esModule",{value:!0});Si.debug=Si.validatePath=Si.arrayCompare=Si.bufferToInt=Si.intToBuffer=Si.arrayFlatten=Si.generateProofs=Si.buildLayers=Si.generateTransactionChunks=Si.generateTree=Si.computeRootHash=Si.generateLeaves=Si.chunkData=Si.MIN_CHUNK_SIZE=Si.MAX_CHUNK_SIZE=void 0;var l4=oOe(h4()),Vie=Yh();Si.MAX_CHUNK_SIZE=256*1024;Si.MIN_CHUNK_SIZE=32*1024;var X2=32,Sp=32;async function AT(t){let e=[],n=t,f=0;for(;n.byteLength>=Si.MAX_CHUNK_SIZE;){let a=Si.MAX_CHUNK_SIZE,c=n.byteLength-Si.MAX_CHUNK_SIZE;c>0&&c<Si.MIN_CHUNK_SIZE&&(a=Math.ceil(n.byteLength/2));let l=n.slice(0,a),p=await l4.default.crypto.hash(l);f+=l.byteLength,e.push({dataHash:p,minByteRange:f-l.byteLength,maxByteRange:f}),n=n.slice(a)}return e.push({dataHash:await l4.default.crypto.hash(n),minByteRange:f,maxByteRange:f+n.byteLength}),e}Si.chunkData=AT;async function xT(t){return Promise.all(t.map(async({dataHash:e,minByteRange:n,maxByteRange:f})=>({type:"leaf",id:await Pa(await Promise.all([Pa(e),Pa(Q2(f))])),dataHash:e,minByteRange:n,maxByteRange:f})))}Si.generateLeaves=xT;async function sOe(t){return(await Gie(t)).id}Si.computeRootHash=sOe;async function Gie(t){return await c4(await xT(await AT(t)))}Si.generateTree=Gie;async function fOe(t){let e=await AT(t),n=await xT(e),f=await c4(n),a=await Yie(f),c=e.slice(-1)[0];return c.maxByteRange-c.minByteRange===0&&(e.splice(e.length-1,1),a.splice(a.length-1,1)),{data_root:f.id,chunks:e,proofs:a}}Si.generateTransactionChunks=fOe;async function c4(t,e=0){if(t.length<2)return t[0];let n=[];for(let f=0;f<t.length;f+=2)n.push(await uOe(t[f],t[f+1]));return c4(n,e+1)}Si.buildLayers=c4;function Yie(t){let e=ET(t);return Array.isArray(e)?RT(e):[e]}Si.generateProofs=Yie;function ET(t,e=new Uint8Array,n=0){if(t.type=="leaf")return{offset:t.maxByteRange-1,proof:(0,Vie.concatBuffers)([e,t.dataHash,Q2(t.maxByteRange)])};if(t.type=="branch"){let f=(0,Vie.concatBuffers)([e,t.leftChild.id,t.rightChild.id,Q2(t.byteRange)]);return[ET(t.leftChild,f,n+1),ET(t.rightChild,f,n+1)]}throw new Error("Unexpected node type")}function RT(t){let e=[];return t.forEach(n=>{Array.isArray(n)?e.push(...RT(n)):e.push(n)}),e}Si.arrayFlatten=RT;async function uOe(t,e){return e?{type:"branch",id:await Pa([await Pa(t.id),await Pa(e.id),await Pa(Q2(t.maxByteRange))]),byteRange:t.maxByteRange,maxByteRange:e.maxByteRange,leftChild:t,rightChild:e}:t}async function Pa(t){return Array.isArray(t)&&(t=l4.default.utils.concatBuffers(t)),new Uint8Array(await l4.default.crypto.hash(t))}function Q2(t){let e=new Uint8Array(X2);for(var n=e.length-1;n>=0;n--){var f=t%256;e[n]=f,t=(t-f)/256}return e}Si.intToBuffer=Q2;function kT(t){let e=0;for(var n=0;n<t.length;n++)e*=256,e+=t[n];return e}Si.bufferToInt=kT;var hOe=(t,e)=>t.every((n,f)=>e[f]===n);Si.arrayCompare=hOe;async function J2(t,e,n,f,a){if(f<=0)return!1;if(e>=f)return J2(t,0,f-1,f,a);if(e<0)return J2(t,0,0,f,a);if(a.length==Sp+X2){let g=a.slice(0,Sp),S=a.slice(g.length,g.length+X2),x=await Pa([await Pa(g),await Pa(S)]);return(0,Si.arrayCompare)(t,x)?{offset:f-1,leftBound:n,rightBound:f,chunkSize:f-n}:!1}let c=a.slice(0,Sp),l=a.slice(c.length,c.length+Sp),p=a.slice(c.length+l.length,c.length+l.length+X2),w=kT(p),m=a.slice(c.length+l.length+p.length),y=await Pa([await Pa(c),await Pa(l),await Pa(p)]);return(0,Si.arrayCompare)(t,y)?e<w?await J2(c,e,n,Math.min(f,w),m):await J2(l,e,Math.max(n,w),f,m):!1}Si.validatePath=J2;async function Jie(t,e=""){if(t.byteLength<1)return e;let n=t.slice(0,Sp),f=t.slice(n.length,n.length+Sp),a=t.slice(n.length+f.length,n.length+f.length+X2),c=kT(a),l=t.slice(n.length+f.length+a.length),p=await Pa([await Pa(n),await Pa(f),await Pa(a)]),w=`${e}
|
|
138
|
-
${JSON.stringify(St.from(n))},${JSON.stringify(St.from(f))},${c} => ${JSON.stringify(p)}`;return Jie(l,w)}Si.debug=Jie});var p4=Zt(fs=>{"use strict";Be();Pe();Oe();var lOe=fs&&fs.__createBinding||(Object.create?function(t,e,n,f){f===void 0&&(f=n);var a=Object.getOwnPropertyDescriptor(e,n);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,f,a)}:function(t,e,n,f){f===void 0&&(f=n),t[f]=e[n]}),cOe=fs&&fs.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),dOe=fs&&fs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&lOe(e,t,n);return cOe(e,t),e},pOe=fs&&fs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(fs,"__esModule",{value:!0});fs.Tag=void 0;var ya=dOe(Yh()),vOe=pOe(Wie()),mOe=TT(),d4=class{get(e,n){if(!Object.getOwnPropertyNames(this).includes(e))throw new Error(`Field "${e}" is not a property of the Arweave Transaction class.`);if(this[e]instanceof Uint8Array)return n&&n.decode&&n.string?ya.bufferToString(this[e]):n&&n.decode&&!n.string?this[e]:ya.bufferTob64Url(this[e]);if(this[e]instanceof Array){if(n?.decode!==void 0||n?.string!==void 0)throw e==="tags"&&console.warn(`Did you mean to use 'transaction["tags"]' ?`),new Error("Cannot decode or stringify an array.");return this[e]}return n&&n.decode==!0?n&&n.string?ya.b64UrlToString(this[e]):ya.b64UrlToBuffer(this[e]):this[e]}},eg=class extends d4{name;value;constructor(e,n,f=!1){super(),this.name=e,this.value=n}};fs.Tag=eg;var IT=class extends d4{format=2;id="";last_tx="";owner="";tags=[];target="";quantity="0";data_size="0";data=new Uint8Array;data_root="";reward="0";signature="";chunks;constructor(e={}){super(),Object.assign(this,e),typeof this.data=="string"&&(this.data=ya.b64UrlToBuffer(this.data)),e.tags&&(this.tags=e.tags.map(n=>new eg(n.name,n.value)))}addTag(e,n){this.tags.push(new eg(ya.stringToB64Url(e),ya.stringToB64Url(n)))}toJSON(){return{format:this.format,id:this.id,last_tx:this.last_tx,owner:this.owner,tags:this.tags,target:this.target,quantity:this.quantity,data:ya.bufferTob64Url(this.data),data_size:this.data_size,data_root:this.data_root,data_tree:this.data_tree,reward:this.reward,signature:this.signature}}setOwner(e){this.owner=e}setSignature({id:e,owner:n,reward:f,tags:a,signature:c}){this.id=e,this.owner=n,f&&(this.reward=f),a&&(this.tags=a),this.signature=c}async prepareChunks(e){!this.chunks&&e.byteLength>0&&(this.chunks=await(0,mOe.generateTransactionChunks)(e),this.data_root=ya.bufferTob64Url(this.chunks.data_root)),!this.chunks&&e.byteLength===0&&(this.chunks={chunks:[],data_root:new Uint8Array,proofs:[]},this.data_root="")}getChunk(e,n){if(!this.chunks)throw new Error("Chunks have not been prepared");let f=this.chunks.proofs[e],a=this.chunks.chunks[e];return{data_root:this.data_root,data_size:this.data_size,data_path:ya.bufferTob64Url(f.proof),offset:f.offset.toString(),chunk:ya.bufferTob64Url(n.slice(a.minByteRange,a.maxByteRange))}}async getSignatureData(){switch(this.format){case 1:let e=this.tags.reduce((f,a)=>ya.concatBuffers([f,a.get("name",{decode:!0,string:!1}),a.get("value",{decode:!0,string:!1})]),new Uint8Array);return ya.concatBuffers([this.get("owner",{decode:!0,string:!1}),this.get("target",{decode:!0,string:!1}),this.get("data",{decode:!0,string:!1}),ya.stringToBuffer(this.quantity),ya.stringToBuffer(this.reward),this.get("last_tx",{decode:!0,string:!1}),e]);case 2:this.data_root||await this.prepareChunks(this.data);let n=this.tags.map(f=>[f.get("name",{decode:!0,string:!1}),f.get("value",{decode:!0,string:!1})]);return await(0,vOe.default)([ya.stringToBuffer(this.format.toString()),this.get("owner",{decode:!0,string:!1}),this.get("target",{decode:!0,string:!1}),ya.stringToBuffer(this.quantity),ya.stringToBuffer(this.reward),this.get("last_tx",{decode:!0,string:!1}),n,ya.stringToBuffer(this.data_size),this.get("data_root",{decode:!0,string:!1})]);default:throw new Error(`Unexpected transaction format: ${this.format}`)}}};fs.default=IT});var tne=Zt(cf=>{"use strict";Be();Pe();Oe();var gOe=cf&&cf.__createBinding||(Object.create?function(t,e,n,f){f===void 0&&(f=n);var a=Object.getOwnPropertyDescriptor(e,n);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,f,a)}:function(t,e,n,f){f===void 0&&(f=n),t[f]=e[n]}),yOe=cf&&cf.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),bOe=cf&&cf.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&gOe(e,t,n);return yOe(e,t),e},wOe=cf&&cf.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(cf,"__esModule",{value:!0});cf.TransactionUploader=void 0;var Xie=wOe(p4()),_Oe=bOe(Yh()),BT=G2(),MOe=TT(),Qie=1,SOe=["invalid_json","chunk_too_big","data_path_too_big","offset_too_big","data_size_too_big","chunk_proof_ratio_not_attractive","invalid_proof"],ene=1e3*40,OT=class t{api;chunkIndex=0;txPosted=!1;transaction;lastRequestTimeEnd=0;totalErrors=0;data;lastResponseStatus=0;lastResponseError="";get isComplete(){return this.txPosted&&this.chunkIndex===this.transaction.chunks.chunks.length}get totalChunks(){return this.transaction.chunks.chunks.length}get uploadedChunks(){return this.chunkIndex}get pctComplete(){return Math.trunc(this.uploadedChunks/this.totalChunks*100)}constructor(e,n){if(this.api=e,!n.id)throw new Error("Transaction is not signed");if(!n.chunks)throw new Error("Transaction chunks not prepared");this.data=n.data,this.transaction=new Xie.default(Object.assign({},n,{data:new Uint8Array(0)}))}async uploadChunk(e){if(this.isComplete)throw new Error("Upload is already complete");if(this.lastResponseError!==""?this.totalErrors++:this.totalErrors=0,this.totalErrors===100)throw new Error(`Unable to complete upload: ${this.lastResponseStatus}: ${this.lastResponseError}`);let n=this.lastResponseError===""?0:Math.max(this.lastRequestTimeEnd+ene-Date.now(),ene);if(n>0&&(n=n-n*Math.random()*.3,await new Promise(l=>setTimeout(l,n))),this.lastResponseError="",!this.txPosted){await this.postTransaction();return}e&&(this.chunkIndex=e);let f=this.transaction.getChunk(e||this.chunkIndex,this.data);if(!await(0,MOe.validatePath)(this.transaction.chunks.data_root,parseInt(f.offset),0,parseInt(f.data_size),_Oe.b64UrlToBuffer(f.data_path)))throw new Error(`Unable to validate chunk ${this.chunkIndex}`);let c=await this.api.post("chunk",this.transaction.getChunk(this.chunkIndex,this.data)).catch(l=>(console.error(l.message),{status:-1,data:{error:l.message}}));if(this.lastRequestTimeEnd=Date.now(),this.lastResponseStatus=c.status,this.lastResponseStatus==200)this.chunkIndex++;else if(this.lastResponseError=(0,BT.getError)(c),SOe.includes(this.lastResponseError))throw new Error(`Fatal error uploading chunk ${this.chunkIndex}: ${this.lastResponseError}`)}static async fromSerialized(e,n,f){if(!n||typeof n.chunkIndex!="number"||typeof n.transaction!="object")throw new Error("Serialized object does not match expected format.");var a=new Xie.default(n.transaction);a.chunks||await a.prepareChunks(f);let c=new t(e,a);if(c.chunkIndex=n.chunkIndex,c.lastRequestTimeEnd=n.lastRequestTimeEnd,c.lastResponseError=n.lastResponseError,c.lastResponseStatus=n.lastResponseStatus,c.txPosted=n.txPosted,c.data=f,c.transaction.data_root!==n.transaction.data_root)throw new Error("Data mismatch: Uploader doesn't match provided data.");return c}static async fromTransactionId(e,n){let f=await e.get(`tx/${n}`);if(f.status!==200)throw new Error(`Tx ${n} not found: ${f.status}`);let a=f.data;return a.data=new Uint8Array(0),{txPosted:!0,chunkIndex:0,lastResponseError:"",lastRequestTimeEnd:0,lastResponseStatus:0,transaction:a}}toJSON(){return{chunkIndex:this.chunkIndex,transaction:this.transaction,lastRequestTimeEnd:this.lastRequestTimeEnd,lastResponseStatus:this.lastResponseStatus,lastResponseError:this.lastResponseError,txPosted:this.txPosted}}async postTransaction(){if(this.totalChunks<=Qie){this.transaction.data=this.data;let f=await this.api.post("tx",this.transaction).catch(a=>(console.error(a),{status:-1,data:{error:a.message}}));if(this.lastRequestTimeEnd=Date.now(),this.lastResponseStatus=f.status,this.transaction.data=new Uint8Array(0),f.status>=200&&f.status<300){this.txPosted=!0,this.chunkIndex=Qie;return}throw this.lastResponseError=(0,BT.getError)(f),new Error(`Unable to upload transaction: ${f.status}, ${this.lastResponseError}`)}let n=await this.api.post("tx",this.transaction);if(this.lastRequestTimeEnd=Date.now(),this.lastResponseStatus=n.status,!(n.status>=200&&n.status<300))throw this.lastResponseError=(0,BT.getError)(n),new Error(`Unable to upload transaction: ${n.status}, ${this.lastResponseError}`);this.txPosted=!0}};cf.TransactionUploader=OT});var v4=Zt((tXe,rne)=>{"use strict";Be();Pe();Oe();rne.exports={}});var nne=Zt(su=>{"use strict";Be();Pe();Oe();var EOe=su&&su.__createBinding||(Object.create?function(t,e,n,f){f===void 0&&(f=n);var a=Object.getOwnPropertyDescriptor(e,n);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,f,a)}:function(t,e,n,f){f===void 0&&(f=n),t[f]=e[n]}),AOe=su&&su.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),xOe=su&&su.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&EOe(e,t,n);return AOe(e,t),e},ine=su&&su.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(su,"__esModule",{value:!0});var PT=ine(G2()),Jh=ine(p4()),tg=xOe(Yh()),NT=tne();v4();var CT=class{api;crypto;chunks;constructor(e,n,f){this.api=e,this.crypto=n,this.chunks=f}async getTransactionAnchor(){let e=await this.api.get("tx_anchor");if(!e.data.match(/^[a-z0-9_-]{43,}/i)||!e.ok)throw new Error(`Could not getTransactionAnchor. Received: ${e.data}. Status: ${e.status}, ${e.statusText}`);return e.data}async getPrice(e,n){let f=n?`price/${e}/${n}`:`price/${e}`,a=await this.api.get(f);if(!/^\d+$/.test(a.data)||!a.ok)throw new Error(`Could not getPrice. Received: ${a.data}. Status: ${a.status}, ${a.statusText}`);return a.data}async get(e){let n=await this.api.get(`tx/${e}`);if(n.status==200){let f=parseInt(n.data.data_size);if(n.data.format>=2&&f>0&&f<=1024*1024*12){let a=await this.getData(e);return new Jh.default({...n.data,data:a})}return new Jh.default({...n.data,format:n.data.format||1})}throw n.status==404?new PT.default("TX_NOT_FOUND"):n.status==410?new PT.default("TX_FAILED"):new PT.default("TX_INVALID")}fromRaw(e){return new Jh.default(e)}async search(e,n){return this.api.post("arql",{op:"equals",expr1:e,expr2:n}).then(f=>f.data?f.data:[])}getStatus(e){return this.api.get(`tx/${e}/status`).then(n=>n.status==200?{status:200,confirmed:n.data}:{status:n.status,confirmed:null})}async getData(e,n){let f;try{f=await this.chunks.downloadChunkedData(e)}catch(a){console.error(`Error while trying to download chunked data for ${e}`),console.error(a)}if(!f){console.warn(`Falling back to gateway cache for ${e}`);try{let{data:a,ok:c,status:l,statusText:p}=await this.api.get(`/${e}`,{responseType:"arraybuffer"});if(!c)throw new Error("Bad http status code",{cause:{status:l,statusText:p}});f=a}catch(a){console.error(`Error while trying to download contiguous data from gateway cache for ${e}`),console.error(a)}}if(!f)throw new Error(`${e} data was not found!`);return n&&n.decode&&!n.string?f:n&&n.decode&&n.string?tg.bufferToString(f):tg.bufferTob64Url(f)}async sign(e,n,f){let c=typeof n=="object"&&(p=>{let w=!0;return["n","e","d","p","q","dp","dq","qi"].map(m=>!(m in p)&&(w=!1)),w})(n),l=typeof arweaveWallet=="object";if(!c&&!l)throw new Error("No valid JWK or external wallet found to sign transaction.");if(c){e.setOwner(n.n);let p=await e.getSignatureData(),w=await this.crypto.sign(n,p,f),m=await this.crypto.hash(w);e.setSignature({id:tg.bufferTob64Url(m),owner:n.n,signature:tg.bufferTob64Url(w)})}else if(l){try{(await arweaveWallet.getPermissions()).includes("SIGN_TRANSACTION")||await arweaveWallet.connect(["SIGN_TRANSACTION"])}catch{}let p=await arweaveWallet.sign(e,f);e.setSignature({id:p.id,owner:p.owner,reward:p.reward,tags:p.tags,signature:p.signature})}else throw new Error("An error occurred while signing. Check wallet is valid")}async verify(e){let n=await e.getSignatureData(),f=e.get("signature",{decode:!0,string:!1}),a=tg.bufferTob64Url(await this.crypto.hash(f));if(e.id!==a)throw new Error("Invalid transaction signature or ID! The transaction ID doesn't match the expected SHA-256 hash of the signature.");return this.crypto.verify(e.owner,n,f)}async post(e){if(typeof e=="string"?e=new Jh.default(JSON.parse(e)):typeof e.readInt32BE=="function"?e=new Jh.default(JSON.parse(e.toString())):typeof e=="object"&&!(e instanceof Jh.default)&&(e=new Jh.default(e)),!(e instanceof Jh.default))throw new Error("Must be Transaction object");e.chunks||await e.prepareChunks(e.data);let n=await this.getUploader(e,e.data);try{for(;!n.isComplete;)await n.uploadChunk()}catch(f){if(n.lastResponseStatus>0)return{status:n.lastResponseStatus,statusText:n.lastResponseError,data:{error:n.lastResponseError}};throw f}return{status:200,statusText:"OK",data:{}}}async getUploader(e,n){let f;if(n instanceof ArrayBuffer&&(n=new Uint8Array(n)),e instanceof Jh.default){if(n||(n=e.data),!(n instanceof Uint8Array))throw new Error("Data format is invalid");e.chunks||await e.prepareChunks(n),f=new NT.TransactionUploader(this.api,e),(!f.data||f.data.length===0)&&(f.data=n)}else{if(typeof e=="string"&&(e=await NT.TransactionUploader.fromTransactionId(this.api,e)),!n||!(n instanceof Uint8Array))throw new Error("Must provide data when resuming upload");f=await NT.TransactionUploader.fromSerialized(this.api,e,n)}return f}async*upload(e,n){let f=await this.getUploader(e,n);for(;!f.isComplete;)await f.uploadChunk(),yield f;return f}};su.default=CT});var one=Zt(Xh=>{"use strict";Be();Pe();Oe();var ROe=Xh&&Xh.__createBinding||(Object.create?function(t,e,n,f){f===void 0&&(f=n);var a=Object.getOwnPropertyDescriptor(e,n);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,f,a)}:function(t,e,n,f){f===void 0&&(f=n),t[f]=e[n]}),kOe=Xh&&Xh.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),TOe=Xh&&Xh.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&ROe(e,t,n);return kOe(e,t),e};Object.defineProperty(Xh,"__esModule",{value:!0});var ane=TOe(Yh());v4();var LT=class{api;crypto;constructor(e,n){this.api=e,this.crypto=n}getBalance(e){return this.api.get(`wallet/${e}/balance`).then(n=>n.data)}getLastTransactionID(e){return this.api.get(`wallet/${e}/last_tx`).then(n=>n.data)}generate(){return this.crypto.generateJWK()}async jwkToAddress(e){return!e||e==="use_wallet"?this.getAddress():this.getAddress(e)}async getAddress(e){if(!e||e==="use_wallet"){try{await arweaveWallet.connect(["ACCESS_ADDRESS"])}catch{}return arweaveWallet.getActiveAddress()}else return this.ownerToAddress(e.n)}async ownerToAddress(e){return ane.bufferTob64Url(await this.crypto.hash(ane.b64UrlToBuffer(e)))}};Xh.default=LT});var fne=Zt(fu=>{"use strict";Be();Pe();Oe();var IOe=fu&&fu.__createBinding||(Object.create?function(t,e,n,f){f===void 0&&(f=n);var a=Object.getOwnPropertyDescriptor(e,n);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,f,a)}:function(t,e,n,f){f===void 0&&(f=n),t[f]=e[n]}),BOe=fu&&fu.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),OOe=fu&&fu.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&IOe(e,t,n);return BOe(e,t),e};Object.defineProperty(fu,"__esModule",{value:!0});fu.SiloResource=void 0;var sne=OOe(Yh()),DT=class{api;crypto;transactions;constructor(e,n,f){this.api=e,this.crypto=n,this.transactions=f}async get(e){if(!e)throw new Error("No Silo URI specified");let n=await this.parseUri(e),f=await this.transactions.search("Silo-Name",n.getAccessKey());if(f.length==0)throw new Error(`No data could be found for the Silo URI: ${e}`);let a=await this.transactions.get(f[0]);if(!a)throw new Error(`No data could be found for the Silo URI: ${e}`);let c=a.get("data",{decode:!0,string:!1});return this.crypto.decrypt(c,n.getEncryptionKey())}async readTransactionData(e,n){if(!n)throw new Error("No Silo URI specified");let f=await this.parseUri(n),a=e.get("data",{decode:!0,string:!1});return this.crypto.decrypt(a,f.getEncryptionKey())}async parseUri(e){let n=e.match(/^([a-z0-9-_]+)\.([0-9]+)/i);if(!n)throw new Error("Invalid Silo name, must be a name in the format of [a-z0-9]+.[0-9]+, e.g. 'bubble.7'");let f=n[1],a=Math.pow(2,parseInt(n[2])),c=await this.hash(sne.stringToBuffer(f),a),l=sne.bufferTob64(c.slice(0,15)),p=await this.hash(c.slice(16,31),1);return new m4(e,l,p)}async hash(e,n){let f=await this.crypto.hash(e);for(let a=0;a<n-1;a++)f=await this.crypto.hash(f);return f}};fu.default=DT;var m4=class{uri;accessKey;encryptionKey;constructor(e,n,f){this.uri=e,this.accessKey=n,this.encryptionKey=f}getUri(){return this.uri}getAccessKey(){return this.accessKey}getEncryptionKey(){return this.encryptionKey}};fu.SiloResource=m4});var hne=Zt(Qh=>{"use strict";Be();Pe();Oe();var POe=Qh&&Qh.__createBinding||(Object.create?function(t,e,n,f){f===void 0&&(f=n);var a=Object.getOwnPropertyDescriptor(e,n);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,f,a)}:function(t,e,n,f){f===void 0&&(f=n),t[f]=e[n]}),NOe=Qh&&Qh.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),COe=Qh&&Qh.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&POe(e,t,n);return NOe(e,t),e};Object.defineProperty(Qh,"__esModule",{value:!0});var une=G2(),LOe=COe(Yh()),$T=class{api;constructor(e){this.api=e}async getTransactionOffset(e){let n=await this.api.get(`tx/${e}/offset`);if(n.status===200)return n.data;throw new Error(`Unable to get transaction offset: ${(0,une.getError)(n)}`)}async getChunk(e){let n=await this.api.get(`chunk/${e}`);if(n.status===200)return n.data;throw new Error(`Unable to get chunk: ${(0,une.getError)(n)}`)}async getChunkData(e){let n=await this.getChunk(e);return LOe.b64UrlToBuffer(n.chunk)}firstChunkOffset(e){return parseInt(e.offset)-parseInt(e.size)+1}async downloadChunkedData(e){let n=await this.getTransactionOffset(e),f=parseInt(n.size),c=parseInt(n.offset)-f+1,l=new Uint8Array(f),p=0;for(;p<f;){this.api.config.logging&&console.log(`[chunk] ${p}/${f}`);let w;try{w=await this.getChunkData(c+p)}catch{console.error(`[chunk] Failed to fetch chunk at offset ${c+p}`),console.error("[chunk] This could indicate that the chunk wasn't uploaded or hasn't yet seeded properly to a particular gateway/node")}if(w)l.set(w,p),p+=w.length;else throw new Error(`Couldn't complete data download at ${p}/${f}`)}return l}};Qh.default=$T});var cne=Zt(rg=>{"use strict";Be();Pe();Oe();var DOe=rg&&rg.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(rg,"__esModule",{value:!0});var lne=DOe(G2());v4();var UT=class t{api;network;static HASH_ENDPOINT="block/hash/";static HEIGHT_ENDPOINT="block/height/";constructor(e,n){this.api=e,this.network=n}async get(e){let n=await this.api.get(`${t.HASH_ENDPOINT}${e}`);if(n.status===200)return n.data;throw n.status===404?new lne.default("BLOCK_NOT_FOUND"):new Error(`Error while loading block data: ${n}`)}async getByHeight(e){let n=await this.api.get(`${t.HEIGHT_ENDPOINT}${e}`);if(n.status===200)return n.data;throw n.status===404?new lne.default("BLOCK_NOT_FOUND"):new Error(`Error while loading block data: ${n}`)}async getCurrent(){let{current:e}=await this.network.getInfo();return await this.get(e)}};rg.default=UT});var h4=Zt(uu=>{"use strict";Be();Pe();Oe();var $Oe=uu&&uu.__createBinding||(Object.create?function(t,e,n,f){f===void 0&&(f=n);var a=Object.getOwnPropertyDescriptor(e,n);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,f,a)}:function(t,e,n,f){f===void 0&&(f=n),t[f]=e[n]}),UOe=uu&&uu.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),qOe=uu&&uu.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&$Oe(e,t,n);return UOe(e,t),e},eh=uu&&uu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(uu,"__esModule",{value:!0});var jOe=eh(LZ()),FOe=eh(DZ()),zOe=eh(Oie()),HOe=eh(Pie()),ZOe=eh(nne()),KOe=eh(one()),dne=eh(p4()),ig=qOe(Yh()),WOe=eh(fne()),VOe=eh(hne()),GOe=eh(cne()),qT=class t{api;wallets;transactions;network;blocks;ar;silo;chunks;static init;static crypto=new zOe.default;static utils=ig;constructor(e){this.api=new FOe.default(e),this.wallets=new KOe.default(this.api,t.crypto),this.chunks=new VOe.default(this.api),this.transactions=new ZOe.default(this.api,t.crypto,this.chunks),this.silo=new WOe.default(this.api,this.crypto,this.transactions),this.network=new HOe.default(this.api),this.blocks=new GOe.default(this.api,this.network),this.ar=new jOe.default}get crypto(){return t.crypto}get utils(){return t.utils}getConfig(){return{api:this.api.getConfig(),crypto:null}}async createTransaction(e,n){let f={};if(Object.assign(f,e),!e.data&&!(e.target&&e.quantity))throw new Error("A new Arweave transaction must have a 'data' value, or 'target' and 'quantity' values.");if(e.owner==null&&n&&n!=="use_wallet"&&(f.owner=n.n),e.last_tx==null&&(f.last_tx=await this.transactions.getTransactionAnchor()),typeof e.data=="string"&&(e.data=ig.stringToBuffer(e.data)),e.data instanceof ArrayBuffer&&(e.data=new Uint8Array(e.data)),e.data&&!(e.data instanceof Uint8Array))throw new Error("Expected data to be a string, Uint8Array or ArrayBuffer");if(e.reward==null){let c=e.data?e.data.byteLength:0;f.reward=await this.transactions.getPrice(c,f.target)}f.data_root="",f.data_size=e.data?e.data.byteLength.toString():"0",f.data=e.data||new Uint8Array(0);let a=new dne.default(f);return await a.getSignatureData(),a}async createSiloTransaction(e,n,f){let a={};if(Object.assign(a,e),!e.data)throw new Error("Silo transactions must have a 'data' value");if(!f)throw new Error("No Silo URI specified.");if(e.target||e.quantity)throw new Error("Silo transactions can only be used for storing data, sending AR to other wallets isn't supported.");if(e.owner==null){if(!n||!n.n)throw new Error("A new Arweave transaction must either have an 'owner' attribute, or you must provide the jwk parameter.");a.owner=n.n}e.last_tx==null&&(a.last_tx=await this.transactions.getTransactionAnchor());let c=await this.silo.parseUri(f);if(typeof e.data=="string"){let p=await this.crypto.encrypt(ig.stringToBuffer(e.data),c.getEncryptionKey());a.reward=await this.transactions.getPrice(p.byteLength),a.data=ig.bufferTob64Url(p)}if(e.data instanceof Uint8Array){let p=await this.crypto.encrypt(e.data,c.getEncryptionKey());a.reward=await this.transactions.getPrice(p.byteLength),a.data=ig.bufferTob64Url(p)}let l=new dne.default(a);return l.addTag("Silo-Name",c.getAccessKey()),l.addTag("Silo-Version","0.1.0"),l}arql(e){return this.api.post("/arql",e).then(n=>n.data||[])}};uu.default=qT});var vne=Zt((FT,pne)=>{"use strict";Be();Pe();Oe();var YOe=FT&&FT.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},jT=YOe(h4());jT.default.init=function(t={}){return new jT.default(t)};pne.exports=jT.default});var nae=Zt((_ot,iae)=>{"use strict";Be();Pe();Oe();var lNe=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);iae.exports=t=>!lNe.has(t&&t.code)});var dae=Zt((Fot,_I)=>{"use strict";Be();Pe();Oe();var MNe=Object.prototype.hasOwnProperty,yo="~";function mg(){}Object.create&&(mg.prototype=Object.create(null),new mg().__proto__||(yo=!1));function SNe(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function cae(t,e,n,f,a){if(typeof n!="function")throw new TypeError("The listener must be a function");var c=new SNe(n,f||t,a),l=yo?yo+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],c]:t._events[l].push(c):(t._events[l]=c,t._eventsCount++),t}function U4(t,e){--t._eventsCount===0?t._events=new mg:delete t._events[e]}function io(){this._events=new mg,this._eventsCount=0}io.prototype.eventNames=function(){var e=[],n,f;if(this._eventsCount===0)return e;for(f in n=this._events)MNe.call(n,f)&&e.push(yo?f.slice(1):f);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(n)):e};io.prototype.listeners=function(e){var n=yo?yo+e:e,f=this._events[n];if(!f)return[];if(f.fn)return[f.fn];for(var a=0,c=f.length,l=new Array(c);a<c;a++)l[a]=f[a].fn;return l};io.prototype.listenerCount=function(e){var n=yo?yo+e:e,f=this._events[n];return f?f.fn?1:f.length:0};io.prototype.emit=function(e,n,f,a,c,l){var p=yo?yo+e:e;if(!this._events[p])return!1;var w=this._events[p],m=arguments.length,y,g;if(w.fn){switch(w.once&&this.removeListener(e,w.fn,void 0,!0),m){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,n),!0;case 3:return w.fn.call(w.context,n,f),!0;case 4:return w.fn.call(w.context,n,f,a),!0;case 5:return w.fn.call(w.context,n,f,a,c),!0;case 6:return w.fn.call(w.context,n,f,a,c,l),!0}for(g=1,y=new Array(m-1);g<m;g++)y[g-1]=arguments[g];w.fn.apply(w.context,y)}else{var S=w.length,x;for(g=0;g<S;g++)switch(w[g].once&&this.removeListener(e,w[g].fn,void 0,!0),m){case 1:w[g].fn.call(w[g].context);break;case 2:w[g].fn.call(w[g].context,n);break;case 3:w[g].fn.call(w[g].context,n,f);break;case 4:w[g].fn.call(w[g].context,n,f,a);break;default:if(!y)for(x=1,y=new Array(m-1);x<m;x++)y[x-1]=arguments[x];w[g].fn.apply(w[g].context,y)}}return!0};io.prototype.on=function(e,n,f){return cae(this,e,n,f,!1)};io.prototype.once=function(e,n,f){return cae(this,e,n,f,!0)};io.prototype.removeListener=function(e,n,f,a){var c=yo?yo+e:e;if(!this._events[c])return this;if(!n)return U4(this,c),this;var l=this._events[c];if(l.fn)l.fn===n&&(!a||l.once)&&(!f||l.context===f)&&U4(this,c);else{for(var p=0,w=[],m=l.length;p<m;p++)(l[p].fn!==n||a&&!l[p].once||f&&l[p].context!==f)&&w.push(l[p]);w.length?this._events[c]=w.length===1?w[0]:w:U4(this,c)}return this};io.prototype.removeAllListeners=function(e){var n;return e?(n=yo?yo+e:e,this._events[n]&&U4(this,n)):(this._events=new mg,this._eventsCount=0),this};io.prototype.off=io.prototype.removeListener;io.prototype.addListener=io.prototype.on;io.prefixed=yo;io.EventEmitter=io;typeof _I<"u"&&(_I.exports=io)});Be();Pe();Oe();var gae=Rd(tw(),1);Be();Pe();Oe();Be();Pe();Oe();Be();Pe();Oe();Be();Pe();Oe();var YP=new RegExp("^[a-zA-Z0-9_-]{43}$"),YNe=new RegExp("^(?:(?!-)[A-Za-z0-9-]{1,63}(?<!-)\\.)+[A-Za-z]{1,63}$"),JNe=new RegExp("^[0-9]{12},[0-9]{13},[a-fA-F0-9]{64}$"),XNe=gt.env.ARNS_REGISTRY_TX??"bLAgYxAdX2Ry-nt6aH2ixgvJXbpsEYm28NgJgyqfs-U",QNe="_NctcA2sRy1-J4OmIQZbYFPM17piNcbdBPH2ncX2RL8",Hoe="GaQrvEMKBpkjofgnBi_B3IgIDmY_XYelVLB6GcRGrHc",eCe=Hoe,Id="agYcCFJtrMG6cqMuZfskIkFTGvUPddICmtQSBIoPdiA",wy="i_le_yKKPVstLTDSmkHRqf-wYphMnwB9OhleiTgMkWc",rw=1e6,JP="cbn0KKrBZH7hdNkNokuXLtGryrWM--PjSTBqIzw9Kkk",iw="BVZZ0_ME8uq3zChN6bA6WsPmFhVpGDJ7Rb7l4qoGIDM",XP="_GQ33BkPtZrqxA84vM8Zk-N2aO0toNNu_C-l-rawrBA";var nw=class t{constructor(e){this.positiveFiniteInteger=e;if(!Number.isFinite(this.positiveFiniteInteger)||!Number.isInteger(this.positiveFiniteInteger)||this.positiveFiniteInteger<0)throw new Error(`Number must be a non-negative integer value! ${e}`)}[Symbol.toPrimitive](e){return e==="string"&&this.toString(),this.positiveFiniteInteger}plus(e){return new t(this.positiveFiniteInteger+e.positiveFiniteInteger)}minus(e){return new t(this.positiveFiniteInteger-e.positiveFiniteInteger)}isGreaterThan(e){return this.positiveFiniteInteger>e.positiveFiniteInteger}isGreaterThanOrEqualTo(e){return this.positiveFiniteInteger>=e.positiveFiniteInteger}isLessThan(e){return this.positiveFiniteInteger<e.positiveFiniteInteger}isLessThanOrEqualTo(e){return this.positiveFiniteInteger<=e.positiveFiniteInteger}toString(){return`${this.positiveFiniteInteger}`}valueOf(){return this.positiveFiniteInteger}toJSON(){return this.positiveFiniteInteger}equals(e){return this.positiveFiniteInteger===e.positiveFiniteInteger}},aw=class{value;constructor(e){if(!Number.isFinite(e)||e<0)throw new Error("IOToken must be a non-negative finite number");this.value=+e.toFixed(6)}valueOf(){return this.value}toMIO(){return new ow(Math.floor(this.value*rw))}toString(){return`${this.value}`}},ow=class t extends nw{constructor(e){super(e)}multiply(e){let n=Math.floor(this.valueOf()*e.valueOf());return new t(n)}divide(e){if(e.valueOf()===0)throw new Error("Cannot divide by zero");let n=Math.floor(this.valueOf()/e.valueOf());return new t(n)}plus(e){let n=super.plus(e);return new t(n.valueOf())}minus(e){let n=super.minus(e);return new t(n.valueOf())}toIO(){return new aw(this.valueOf()/rw)}};Be();Pe();Oe();Be();Pe();Oe();var QP=t=>YP.test(t);function lCe(t){return t!==void 0&&!isNaN(parseInt(t.toString()))}function fh(t){return"process"in t}function uh(t){return"processId"in t&&typeof t.processId=="string"&&QP(t.processId)===!0}function gCe(t){return t.type==="lease"}Be();Pe();Oe();Be();Pe();Oe();var wf=class extends Error{constructor(e){super(e),this.name=this.constructor.name}},eN=class extends wf{},tN=class extends wf{},rN=class extends wf{constructor(e,n){super(`Failed request: ${e}: ${n}`)}},iN=class extends wf{},_y=class extends wf{},nN=class extends wf{constructor(){super("Invalid signer. Please provide a valid signer to interact with the contract.")}},gu=class extends wf{constructor(){super("Invalid contract configuration")}},aN=class extends wf{constructor(){super("Invalid process configuration")}},oN=class extends wf{};Be();Pe();Oe();var Pf=Rd(lz(),1);Be();Pe();Oe();var h1="2.2.0-alpha.3";var Nf=class t{logger;silent=!1;static default=new t;constructor({level:e="info"}={}){e==="none"&&(this.silent=!0),typeof window<"u"?this.logger=console:this.logger=(0,Pf.createLogger)({level:e,silent:this.silent,defaultMeta:{name:"ar-io-sdk",version:h1},format:Pf.format.combine(Pf.format.timestamp(),Pf.format.json()),transports:[new Pf.transports.Console({format:Pf.format.combine(Pf.format.timestamp(),Pf.format.json())})]})}info(e,...n){this.silent||this.logger.info(e,...n)}warn(e,...n){this.silent||this.logger.warn(e,...n)}error(e,...n){this.silent||this.logger.error(e,...n)}debug(e,...n){this.silent||this.logger.debug(e,...n)}setLogLevel(e){this.silent=e==="none","silent"in this.logger&&(this.logger.silent=e==="none"),"level"in this.logger&&(this.logger.level=e)}};Be();Pe();Oe();Be();Pe();Oe();Be();Pe();Oe();var Rbe=Object.create,rM=Object.defineProperty,kbe=Object.getOwnPropertyDescriptor,Dz=Object.getOwnPropertyNames,Tbe=Object.getPrototypeOf,Ibe=Object.prototype.hasOwnProperty,Go=(t,e)=>function(){return e||(0,t[Dz(t)[0]])((e={exports:{}}).exports,e),e.exports},$z=(t,e)=>{for(var n in e)rM(t,n,{get:e[n],enumerable:!0})},Bbe=(t,e,n,f)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Dz(e))!Ibe.call(t,a)&&a!==n&&rM(t,a,{get:()=>e[a],enumerable:!(f=kbe(e,a))||f.enumerable});return t},iM=(t,e,n)=>(n=t!=null?Rbe(Tbe(t)):{},Bbe(e||!t||!t.__esModule?rM(n,"default",{value:t,enumerable:!0}):n,t)),Obe=Go({"node_modules/obliterator/iterator.js"(t,e){function n(f){if(typeof f!="function")throw new Error("obliterator/iterator: expecting a function!");this.next=f}typeof Symbol<"u"&&(n.prototype[Symbol.iterator]=function(){return this}),n.of=function(){var f=arguments,a=f.length,c=0;return new n(function(){return c>=a?{done:!0}:{done:!1,value:f[c++]}})},n.empty=function(){var f=new n(function(){return{done:!0}});return f},n.fromSequence=function(f){var a=0,c=f.length;return new n(function(){return a>=c?{done:!0}:{done:!1,value:f[a++]}})},n.is=function(f){return f instanceof n?!0:typeof f=="object"&&f!==null&&typeof f.next=="function"},e.exports=n}}),Pbe=Go({"node_modules/obliterator/support.js"(t){t.ARRAY_BUFFER_SUPPORT=typeof ArrayBuffer<"u",t.SYMBOL_SUPPORT=typeof Symbol<"u"}}),nM=Go({"node_modules/obliterator/foreach.js"(t,e){var n=Pbe(),f=n.ARRAY_BUFFER_SUPPORT,a=n.SYMBOL_SUPPORT;e.exports=function(l,p){var w,m,y,g,S;if(!l)throw new Error("obliterator/forEach: invalid iterable.");if(typeof p!="function")throw new Error("obliterator/forEach: expecting a callback.");if(Array.isArray(l)||f&&ArrayBuffer.isView(l)||typeof l=="string"||l.toString()==="[object Arguments]"){for(y=0,g=l.length;y<g;y++)p(l[y],y);return}if(typeof l.forEach=="function"){l.forEach(p);return}if(a&&Symbol.iterator in l&&typeof l.next!="function"&&(l=l[Symbol.iterator]()),typeof l.next=="function"){for(w=l,y=0;S=w.next(),S.done!==!0;)p(S.value,y),y++;return}for(m in l)l.hasOwnProperty(m)&&p(l[m],m)}}}),aM=Go({"node_modules/mnemonist/utils/typed-arrays.js"(t){var e=Math.pow(2,8)-1,n=Math.pow(2,16)-1,f=Math.pow(2,32)-1,a=Math.pow(2,7)-1,c=Math.pow(2,15)-1,l=Math.pow(2,31)-1;t.getPointerArray=function(w){var m=w-1;if(m<=e)return Uint8Array;if(m<=n)return Uint16Array;if(m<=f)return Uint32Array;throw new Error("mnemonist: Pointer Array of size > 4294967295 is not supported.")},t.getSignedPointerArray=function(w){var m=w-1;return m<=a?Int8Array:m<=c?Int16Array:m<=l?Int32Array:Float64Array},t.getNumberType=function(w){return w===(w|0)?Math.sign(w)===-1?w<=127&&w>=-128?Int8Array:w<=32767&&w>=-32768?Int16Array:Int32Array:w<=255?Uint8Array:w<=65535?Uint16Array:Uint32Array:Float64Array};var p={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};t.getMinimalRepresentation=function(w,m){var y=null,g=0,S,x,A,T,I;for(T=0,I=w.length;T<I;T++)A=m?m(w[T]):w[T],x=t.getNumberType(A),S=p[x.name],S>g&&(g=S,y=x);return y},t.isTypedArray=function(w){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView(w)},t.concat=function(){var w=0,m,y,g;for(m=0,g=arguments.length;m<g;m++)w+=arguments[m].length;var S=new arguments[0].constructor(w);for(m=0,y=0;m<g;m++)S.set(arguments[m],y),y+=arguments[m].length;return S},t.indices=function(w){for(var m=t.getPointerArray(w),y=new m(w),g=0;g<w;g++)y[g]=g;return y}}}),Uz=Go({"node_modules/mnemonist/utils/iterables.js"(t){var e=nM(),n=aM();function f(p){return Array.isArray(p)||n.isTypedArray(p)}function a(p){if(typeof p.length=="number")return p.length;if(typeof p.size=="number")return p.size}function c(p){var w=a(p),m=typeof w=="number"?new Array(w):[],y=0;return e(p,function(g){m[y++]=g}),m}function l(p){var w=a(p),m=typeof w=="number"?n.getPointerArray(w):Array,y=typeof w=="number"?new Array(w):[],g=typeof w=="number"?new m(w):[],S=0;return e(p,function(x){y[S]=x,g[S]=S++}),[y,g]}t.isArrayLike=f,t.guessLength=a,t.toArray=c,t.toArrayWithIndices=l}}),Nbe=Go({"node_modules/mnemonist/lru-cache.js"(t,e){var n=Obe(),f=nM(),a=aM(),c=Uz();function l(p,w,m){if(arguments.length<2&&(m=p,p=null,w=null),this.capacity=m,typeof this.capacity!="number"||this.capacity<=0)throw new Error("mnemonist/lru-cache: capacity should be positive number.");if(!isFinite(this.capacity)||Math.floor(this.capacity)!==this.capacity)throw new Error("mnemonist/lru-cache: capacity should be a finite positive integer.");var y=a.getPointerArray(m);this.forward=new y(m),this.backward=new y(m),this.K=typeof p=="function"?new p(m):new Array(m),this.V=typeof w=="function"?new w(m):new Array(m),this.size=0,this.head=0,this.tail=0,this.items={}}l.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items={}},l.prototype.splayOnTop=function(p){var w=this.head;if(this.head===p)return this;var m=this.backward[p],y=this.forward[p];return this.tail===p?this.tail=m:this.backward[y]=m,this.forward[m]=y,this.backward[w]=p,this.head=p,this.forward[p]=w,this},l.prototype.set=function(p,w){var m=this.items[p];if(typeof m<"u"){this.splayOnTop(m),this.V[m]=w;return}this.size<this.capacity?m=this.size++:(m=this.tail,this.tail=this.backward[m],delete this.items[this.K[m]]),this.items[p]=m,this.K[m]=p,this.V[m]=w,this.forward[m]=this.head,this.backward[this.head]=m,this.head=m},l.prototype.setpop=function(p,w){var m=null,y=null,g=this.items[p];return typeof g<"u"?(this.splayOnTop(g),m=this.V[g],this.V[g]=w,{evicted:!1,key:p,value:m}):(this.size<this.capacity?g=this.size++:(g=this.tail,this.tail=this.backward[g],m=this.V[g],y=this.K[g],delete this.items[y]),this.items[p]=g,this.K[g]=p,this.V[g]=w,this.forward[g]=this.head,this.backward[this.head]=g,this.head=g,y?{evicted:!0,key:y,value:m}:null)},l.prototype.has=function(p){return p in this.items},l.prototype.get=function(p){var w=this.items[p];if(!(typeof w>"u"))return this.splayOnTop(w),this.V[w]},l.prototype.peek=function(p){var w=this.items[p];if(!(typeof w>"u"))return this.V[w]},l.prototype.forEach=function(p,w){w=arguments.length>1?w:this;for(var m=0,y=this.size,g=this.head,S=this.K,x=this.V,A=this.forward;m<y;)p.call(w,x[g],S[g],this),g=A[g],m++},l.prototype.keys=function(){var p=0,w=this.size,m=this.head,y=this.K,g=this.forward;return new n(function(){if(p>=w)return{done:!0};var S=y[m];return p++,p<w&&(m=g[m]),{done:!1,value:S}})},l.prototype.values=function(){var p=0,w=this.size,m=this.head,y=this.V,g=this.forward;return new n(function(){if(p>=w)return{done:!0};var S=y[m];return p++,p<w&&(m=g[m]),{done:!1,value:S}})},l.prototype.entries=function(){var p=0,w=this.size,m=this.head,y=this.K,g=this.V,S=this.forward;return new n(function(){if(p>=w)return{done:!0};var x=y[m],A=g[m];return p++,p<w&&(m=S[m]),{done:!1,value:[x,A]}})},typeof Symbol<"u"&&(l.prototype[Symbol.iterator]=l.prototype.entries),l.prototype.inspect=function(){for(var p=new Map,w=this.entries(),m;m=w.next(),!m.done;)p.set(m.value[0],m.value[1]);return Object.defineProperty(p,"constructor",{value:l,enumerable:!1}),p},typeof Symbol<"u"&&(l.prototype[Symbol.for("nodejs.util.inspect.custom")]=l.prototype.inspect),l.from=function(p,w,m,y){if(arguments.length<2){if(y=c.guessLength(p),typeof y!="number")throw new Error("mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.")}else arguments.length===2&&(y=w,w=null,m=null);var g=new l(w,m,y);return f(p,function(S,x){g.set(x,S)}),g},e.exports=l}}),Cbe=Go({"node_modules/mnemonist/lru-map.js"(t,e){var n=Nbe(),f=nM(),a=aM(),c=Uz();function l(p,w,m){if(arguments.length<2&&(m=p,p=null,w=null),this.capacity=m,typeof this.capacity!="number"||this.capacity<=0)throw new Error("mnemonist/lru-map: capacity should be positive number.");if(!isFinite(this.capacity)||Math.floor(this.capacity)!==this.capacity)throw new Error("mnemonist/lru-map: capacity should be a finite positive integer.");var y=a.getPointerArray(m);this.forward=new y(m),this.backward=new y(m),this.K=typeof p=="function"?new p(m):new Array(m),this.V=typeof w=="function"?new w(m):new Array(m),this.size=0,this.head=0,this.tail=0,this.items=new Map}l.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items.clear()},l.prototype.set=function(p,w){var m=this.items.get(p);if(typeof m<"u"){this.splayOnTop(m),this.V[m]=w;return}this.size<this.capacity?m=this.size++:(m=this.tail,this.tail=this.backward[m],this.items.delete(this.K[m])),this.items.set(p,m),this.K[m]=p,this.V[m]=w,this.forward[m]=this.head,this.backward[this.head]=m,this.head=m},l.prototype.setpop=function(p,w){var m=null,y=null,g=this.items.get(p);return typeof g<"u"?(this.splayOnTop(g),m=this.V[g],this.V[g]=w,{evicted:!1,key:p,value:m}):(this.size<this.capacity?g=this.size++:(g=this.tail,this.tail=this.backward[g],m=this.V[g],y=this.K[g],this.items.delete(y)),this.items.set(p,g),this.K[g]=p,this.V[g]=w,this.forward[g]=this.head,this.backward[this.head]=g,this.head=g,y?{evicted:!0,key:y,value:m}:null)},l.prototype.has=function(p){return this.items.has(p)},l.prototype.get=function(p){var w=this.items.get(p);if(!(typeof w>"u"))return this.splayOnTop(w),this.V[w]},l.prototype.peek=function(p){var w=this.items.get(p);if(!(typeof w>"u"))return this.V[w]},l.prototype.splayOnTop=n.prototype.splayOnTop,l.prototype.forEach=n.prototype.forEach,l.prototype.keys=n.prototype.keys,l.prototype.values=n.prototype.values,l.prototype.entries=n.prototype.entries,typeof Symbol<"u"&&(l.prototype[Symbol.iterator]=l.prototype.entries),l.prototype.inspect=n.prototype.inspect,l.from=function(p,w,m,y){if(arguments.length<2){if(y=c.guessLength(p),typeof y!="number")throw new Error("mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.")}else arguments.length===2&&(y=w,w=null,m=null);var g=new l(w,m,y);return f(p,function(S,x){g.set(x,S)}),g},e.exports=l}}),Lbe=Go({"node_modules/ms/index.js"(t,e){var n=1e3,f=n*60,a=f*60,c=a*24,l=c*7,p=c*365.25;e.exports=function(S,x){x=x||{};var A=typeof S;if(A==="string"&&S.length>0)return w(S);if(A==="number"&&isFinite(S))return x.long?y(S):m(S);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(S))};function w(S){if(S=String(S),!(S.length>100)){var x=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(S);if(x){var A=parseFloat(x[1]),T=(x[2]||"ms").toLowerCase();switch(T){case"years":case"year":case"yrs":case"yr":case"y":return A*p;case"weeks":case"week":case"w":return A*l;case"days":case"day":case"d":return A*c;case"hours":case"hour":case"hrs":case"hr":case"h":return A*a;case"minutes":case"minute":case"mins":case"min":case"m":return A*f;case"seconds":case"second":case"secs":case"sec":case"s":return A*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return A;default:return}}}}function m(S){var x=Math.abs(S);return x>=c?Math.round(S/c)+"d":x>=a?Math.round(S/a)+"h":x>=f?Math.round(S/f)+"m":x>=n?Math.round(S/n)+"s":S+"ms"}function y(S){var x=Math.abs(S);return x>=c?g(S,x,c,"day"):x>=a?g(S,x,a,"hour"):x>=f?g(S,x,f,"minute"):x>=n?g(S,x,n,"second"):S+" ms"}function g(S,x,A,T){var I=x>=A*1.5;return Math.round(S/A)+" "+T+(I?"s":"")}}}),Dbe=Go({"node_modules/debug/src/common.js"(t,e){function n(f){c.debug=c,c.default=c,c.coerce=g,c.disable=w,c.enable=p,c.enabled=m,c.humanize=Lbe(),c.destroy=S,Object.keys(f).forEach(x=>{c[x]=f[x]}),c.names=[],c.skips=[],c.formatters={};function a(x){let A=0;for(let T=0;T<x.length;T++)A=(A<<5)-A+x.charCodeAt(T),A|=0;return c.colors[Math.abs(A)%c.colors.length]}c.selectColor=a;function c(x){let A,T=null,I,B;function P(...C){if(!P.enabled)return;let q=P,Z=Number(new Date),G=Z-(A||Z);q.diff=G,q.prev=A,q.curr=Z,A=Z,C[0]=c.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");let j=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(J,E)=>{if(J==="%%")return"%";j++;let i=c.formatters[E];if(typeof i=="function"){let s=C[j];J=i.call(q,s),C.splice(j,1),j--}return J}),c.formatArgs.call(q,C),(q.log||c.log).apply(q,C)}return P.namespace=x,P.useColors=c.useColors(),P.color=c.selectColor(x),P.extend=l,P.destroy=c.destroy,Object.defineProperty(P,"enabled",{enumerable:!0,configurable:!1,get:()=>T!==null?T:(I!==c.namespaces&&(I=c.namespaces,B=c.enabled(x)),B),set:C=>{T=C}}),typeof c.init=="function"&&c.init(P),P}function l(x,A){let T=c(this.namespace+(typeof A>"u"?":":A)+x);return T.log=this.log,T}function p(x){c.save(x),c.namespaces=x,c.names=[],c.skips=[];let A,T=(typeof x=="string"?x:"").split(/[\s,]+/),I=T.length;for(A=0;A<I;A++)T[A]&&(x=T[A].replace(/\*/g,".*?"),x[0]==="-"?c.skips.push(new RegExp("^"+x.slice(1)+"$")):c.names.push(new RegExp("^"+x+"$")))}function w(){let x=[...c.names.map(y),...c.skips.map(y).map(A=>"-"+A)].join(",");return c.enable(""),x}function m(x){if(x[x.length-1]==="*")return!0;let A,T;for(A=0,T=c.skips.length;A<T;A++)if(c.skips[A].test(x))return!1;for(A=0,T=c.names.length;A<T;A++)if(c.names[A].test(x))return!0;return!1}function y(x){return x.toString().substring(2,x.toString().length-2).replace(/\.\*\?$/,"*")}function g(x){return x instanceof Error?x.stack||x.message:x}function S(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return c.enable(c.load()),c}e.exports=n}}),$be=Go({"node_modules/debug/src/browser.js"(t,e){t.formatArgs=f,t.save=a,t.load=c,t.useColors=n,t.storage=l(),t.destroy=(()=>{let w=!1;return()=>{w||(w=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function f(w){if(w[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+w[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let m="color: "+this.color;w.splice(1,0,m,"color: inherit");let y=0,g=0;w[0].replace(/%[a-zA-Z%]/g,S=>{S!=="%%"&&(y++,S==="%c"&&(g=y))}),w.splice(g,0,m)}t.log=console.debug||console.log||(()=>{});function a(w){try{w?t.storage.setItem("debug",w):t.storage.removeItem("debug")}catch{}}function c(){let w;try{w=t.storage.getItem("debug")}catch{}return!w&&typeof gt<"u"&&"env"in gt&&(w=gt.env.DEBUG),w}function l(){try{return localStorage}catch{}}e.exports=Dbe()(t);var{formatters:p}=e.exports;p.j=function(w){try{return JSON.stringify(w)}catch(m){return"[UnexpectedJSONParseError]: "+m.message}}}}),Ube=Go({"node_modules/base64-js/index.js"(t){"use strict";t.byteLength=w,t.toByteArray=y,t.fromByteArray=x;var e=[],n=[],f=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(c=0,l=a.length;c<l;++c)e[c]=a[c],n[a.charCodeAt(c)]=c;var c,l;n[45]=62,n[95]=63;function p(A){var T=A.length;if(T%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var I=A.indexOf("=");I===-1&&(I=T);var B=I===T?0:4-I%4;return[I,B]}function w(A){var T=p(A),I=T[0],B=T[1];return(I+B)*3/4-B}function m(A,T,I){return(T+I)*3/4-I}function y(A){var T,I=p(A),B=I[0],P=I[1],C=new f(m(A,B,P)),q=0,Z=P>0?B-4:B,G;for(G=0;G<Z;G+=4)T=n[A.charCodeAt(G)]<<18|n[A.charCodeAt(G+1)]<<12|n[A.charCodeAt(G+2)]<<6|n[A.charCodeAt(G+3)],C[q++]=T>>16&255,C[q++]=T>>8&255,C[q++]=T&255;return P===2&&(T=n[A.charCodeAt(G)]<<2|n[A.charCodeAt(G+1)]>>4,C[q++]=T&255),P===1&&(T=n[A.charCodeAt(G)]<<10|n[A.charCodeAt(G+1)]<<4|n[A.charCodeAt(G+2)]>>2,C[q++]=T>>8&255,C[q++]=T&255),C}function g(A){return e[A>>18&63]+e[A>>12&63]+e[A>>6&63]+e[A&63]}function S(A,T,I){for(var B,P=[],C=T;C<I;C+=3)B=(A[C]<<16&16711680)+(A[C+1]<<8&65280)+(A[C+2]&255),P.push(g(B));return P.join("")}function x(A){for(var T,I=A.length,B=I%3,P=[],C=16383,q=0,Z=I-B;q<Z;q+=C)P.push(S(A,q,q+C>Z?Z:q+C));return B===1?(T=A[I-1],P.push(e[T>>2]+e[T<<4&63]+"==")):B===2&&(T=(A[I-2]<<8)+A[I-1],P.push(e[T>>10]+e[T>>4&63]+e[T<<2&63]+"=")),P.join("")}}}),qbe=Go({"node_modules/ieee754/index.js"(t){t.read=function(e,n,f,a,c){var l,p,w=c*8-a-1,m=(1<<w)-1,y=m>>1,g=-7,S=f?c-1:0,x=f?-1:1,A=e[n+S];for(S+=x,l=A&(1<<-g)-1,A>>=-g,g+=w;g>0;l=l*256+e[n+S],S+=x,g-=8);for(p=l&(1<<-g)-1,l>>=-g,g+=a;g>0;p=p*256+e[n+S],S+=x,g-=8);if(l===0)l=1-y;else{if(l===m)return p?NaN:(A?-1:1)*(1/0);p=p+Math.pow(2,a),l=l-y}return(A?-1:1)*p*Math.pow(2,l-a)},t.write=function(e,n,f,a,c,l){var p,w,m,y=l*8-c-1,g=(1<<y)-1,S=g>>1,x=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=a?0:l-1,T=a?1:-1,I=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(w=isNaN(n)?1:0,p=g):(p=Math.floor(Math.log(n)/Math.LN2),n*(m=Math.pow(2,-p))<1&&(p--,m*=2),p+S>=1?n+=x/m:n+=x*Math.pow(2,1-S),n*m>=2&&(p++,m/=2),p+S>=g?(w=0,p=g):p+S>=1?(w=(n*m-1)*Math.pow(2,c),p=p+S):(w=n*Math.pow(2,S-1)*Math.pow(2,c),p=0));c>=8;e[f+A]=w&255,A+=T,w/=256,c-=8);for(p=p<<c|w,y+=c;y>0;e[f+A]=p&255,A+=T,p/=256,y-=8);e[f+A-T]|=I*128}}}),jbe=Go({"node_modules/buffer/index.js"(t){"use strict";var e=Ube(),n=qbe(),f=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=p,t.SlowBuffer=P,t.INSPECT_MAX_BYTES=50;var a=2147483647;t.kMaxLength=a,p.TYPED_ARRAY_SUPPORT=c(),!p.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function c(){try{let O=new Uint8Array(1),N={foo:function(){return 42}};return Object.setPrototypeOf(N,Uint8Array.prototype),Object.setPrototypeOf(O,N),O.foo()===42}catch{return!1}}Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}});function l(O){if(O>a)throw new RangeError('The value "'+O+'" is invalid for option "size"');let N=new Uint8Array(O);return Object.setPrototypeOf(N,p.prototype),N}function p(O,N,$){if(typeof O=="number"){if(typeof N=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(O)}return w(O,N,$)}p.poolSize=8192;function w(O,N,$){if(typeof O=="string")return S(O,N);if(ArrayBuffer.isView(O))return A(O);if(O==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof O);if(ut(O,ArrayBuffer)||O&&ut(O.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ut(O,SharedArrayBuffer)||O&&ut(O.buffer,SharedArrayBuffer)))return T(O,N,$);if(typeof O=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let ee=O.valueOf&&O.valueOf();if(ee!=null&&ee!==O)return p.from(ee,N,$);let re=I(O);if(re)return re;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof O[Symbol.toPrimitive]=="function")return p.from(O[Symbol.toPrimitive]("string"),N,$);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof O)}p.from=function(O,N,$){return w(O,N,$)},Object.setPrototypeOf(p.prototype,Uint8Array.prototype),Object.setPrototypeOf(p,Uint8Array);function m(O){if(typeof O!="number")throw new TypeError('"size" argument must be of type number');if(O<0)throw new RangeError('The value "'+O+'" is invalid for option "size"')}function y(O,N,$){return m(O),O<=0?l(O):N!==void 0?typeof $=="string"?l(O).fill(N,$):l(O).fill(N):l(O)}p.alloc=function(O,N,$){return y(O,N,$)};function g(O){return m(O),l(O<0?0:B(O)|0)}p.allocUnsafe=function(O){return g(O)},p.allocUnsafeSlow=function(O){return g(O)};function S(O,N){if((typeof N!="string"||N==="")&&(N="utf8"),!p.isEncoding(N))throw new TypeError("Unknown encoding: "+N);let $=C(O,N)|0,ee=l($),re=ee.write(O,N);return re!==$&&(ee=ee.slice(0,re)),ee}function x(O){let N=O.length<0?0:B(O.length)|0,$=l(N);for(let ee=0;ee<N;ee+=1)$[ee]=O[ee]&255;return $}function A(O){if(ut(O,Uint8Array)){let N=new Uint8Array(O);return T(N.buffer,N.byteOffset,N.byteLength)}return x(O)}function T(O,N,$){if(N<0||O.byteLength<N)throw new RangeError('"offset" is outside of buffer bounds');if(O.byteLength<N+($||0))throw new RangeError('"length" is outside of buffer bounds');let ee;return N===void 0&&$===void 0?ee=new Uint8Array(O):$===void 0?ee=new Uint8Array(O,N):ee=new Uint8Array(O,N,$),Object.setPrototypeOf(ee,p.prototype),ee}function I(O){if(p.isBuffer(O)){let N=B(O.length)|0,$=l(N);return $.length===0||O.copy($,0,0,N),$}if(O.length!==void 0)return typeof O.length!="number"||qe(O.length)?l(0):x(O);if(O.type==="Buffer"&&Array.isArray(O.data))return x(O.data)}function B(O){if(O>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return O|0}function P(O){return+O!=O&&(O=0),p.alloc(+O)}p.isBuffer=function(N){return N!=null&&N._isBuffer===!0&&N!==p.prototype},p.compare=function(N,$){if(ut(N,Uint8Array)&&(N=p.from(N,N.offset,N.byteLength)),ut($,Uint8Array)&&($=p.from($,$.offset,$.byteLength)),!p.isBuffer(N)||!p.isBuffer($))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(N===$)return 0;let ee=N.length,re=$.length;for(let se=0,ce=Math.min(ee,re);se<ce;++se)if(N[se]!==$[se]){ee=N[se],re=$[se];break}return ee<re?-1:re<ee?1:0},p.isEncoding=function(N){switch(String(N).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},p.concat=function(N,$){if(!Array.isArray(N))throw new TypeError('"list" argument must be an Array of Buffers');if(N.length===0)return p.alloc(0);let ee;if($===void 0)for($=0,ee=0;ee<N.length;++ee)$+=N[ee].length;let re=p.allocUnsafe($),se=0;for(ee=0;ee<N.length;++ee){let ce=N[ee];if(ut(ce,Uint8Array))se+ce.length>re.length?(p.isBuffer(ce)||(ce=p.from(ce)),ce.copy(re,se)):Uint8Array.prototype.set.call(re,ce,se);else if(p.isBuffer(ce))ce.copy(re,se);else throw new TypeError('"list" argument must be an Array of Buffers');se+=ce.length}return re};function C(O,N){if(p.isBuffer(O))return O.length;if(ArrayBuffer.isView(O)||ut(O,ArrayBuffer))return O.byteLength;if(typeof O!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof O);let $=O.length,ee=arguments.length>2&&arguments[2]===!0;if(!ee&&$===0)return 0;let re=!1;for(;;)switch(N){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":return he(O).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $*2;case"hex":return $>>>1;case"base64":return Ae(O).length;default:if(re)return ee?-1:he(O).length;N=(""+N).toLowerCase(),re=!0}}p.byteLength=C;function q(O,N,$){let ee=!1;if((N===void 0||N<0)&&(N=0),N>this.length||(($===void 0||$>this.length)&&($=this.length),$<=0)||($>>>=0,N>>>=0,$<=N))return"";for(O||(O="utf8");;)switch(O){case"hex":return r(this,N,$);case"utf8":case"utf-8":return d(this,N,$);case"ascii":return R(this,N,$);case"latin1":case"binary":return o(this,N,$);case"base64":return u(this,N,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h(this,N,$);default:if(ee)throw new TypeError("Unknown encoding: "+O);O=(O+"").toLowerCase(),ee=!0}}p.prototype._isBuffer=!0;function Z(O,N,$){let ee=O[N];O[N]=O[$],O[$]=ee}p.prototype.swap16=function(){let N=this.length;if(N%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let $=0;$<N;$+=2)Z(this,$,$+1);return this},p.prototype.swap32=function(){let N=this.length;if(N%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let $=0;$<N;$+=4)Z(this,$,$+3),Z(this,$+1,$+2);return this},p.prototype.swap64=function(){let N=this.length;if(N%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let $=0;$<N;$+=8)Z(this,$,$+7),Z(this,$+1,$+6),Z(this,$+2,$+5),Z(this,$+3,$+4);return this},p.prototype.toString=function(){let N=this.length;return N===0?"":arguments.length===0?d(this,0,N):q.apply(this,arguments)},p.prototype.toLocaleString=p.prototype.toString,p.prototype.equals=function(N){if(!p.isBuffer(N))throw new TypeError("Argument must be a Buffer");return this===N?!0:p.compare(this,N)===0},p.prototype.inspect=function(){let N="",$=t.INSPECT_MAX_BYTES;return N=this.toString("hex",0,$).replace(/(.{2})/g,"$1 ").trim(),this.length>$&&(N+=" ... "),"<Buffer "+N+">"},f&&(p.prototype[f]=p.prototype.inspect),p.prototype.compare=function(N,$,ee,re,se){if(ut(N,Uint8Array)&&(N=p.from(N,N.offset,N.byteLength)),!p.isBuffer(N))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof N);if($===void 0&&($=0),ee===void 0&&(ee=N?N.length:0),re===void 0&&(re=0),se===void 0&&(se=this.length),$<0||ee>N.length||re<0||se>this.length)throw new RangeError("out of range index");if(re>=se&&$>=ee)return 0;if(re>=se)return-1;if($>=ee)return 1;if($>>>=0,ee>>>=0,re>>>=0,se>>>=0,this===N)return 0;let ce=se-re,st=ee-$,ye=Math.min(ce,st),be=this.slice(re,se),me=N.slice($,ee);for(let ke=0;ke<ye;++ke)if(be[ke]!==me[ke]){ce=be[ke],st=me[ke];break}return ce<st?-1:st<ce?1:0};function G(O,N,$,ee,re){if(O.length===0)return-1;if(typeof $=="string"?(ee=$,$=0):$>2147483647?$=2147483647:$<-2147483648&&($=-2147483648),$=+$,qe($)&&($=re?0:O.length-1),$<0&&($=O.length+$),$>=O.length){if(re)return-1;$=O.length-1}else if($<0)if(re)$=0;else return-1;if(typeof N=="string"&&(N=p.from(N,ee)),p.isBuffer(N))return N.length===0?-1:j(O,N,$,ee,re);if(typeof N=="number")return N=N&255,typeof Uint8Array.prototype.indexOf=="function"?re?Uint8Array.prototype.indexOf.call(O,N,$):Uint8Array.prototype.lastIndexOf.call(O,N,$):j(O,[N],$,ee,re);throw new TypeError("val must be string, number or Buffer")}function j(O,N,$,ee,re){let se=1,ce=O.length,st=N.length;if(ee!==void 0&&(ee=String(ee).toLowerCase(),ee==="ucs2"||ee==="ucs-2"||ee==="utf16le"||ee==="utf-16le")){if(O.length<2||N.length<2)return-1;se=2,ce/=2,st/=2,$/=2}function ye(me,ke){return se===1?me[ke]:me.readUInt16BE(ke*se)}let be;if(re){let me=-1;for(be=$;be<ce;be++)if(ye(O,be)===ye(N,me===-1?0:be-me)){if(me===-1&&(me=be),be-me+1===st)return me*se}else me!==-1&&(be-=be-me),me=-1}else for($+st>ce&&($=ce-st),be=$;be>=0;be--){let me=!0;for(let ke=0;ke<st;ke++)if(ye(O,be+ke)!==ye(N,ke)){me=!1;break}if(me)return be}return-1}p.prototype.includes=function(N,$,ee){return this.indexOf(N,$,ee)!==-1},p.prototype.indexOf=function(N,$,ee){return G(this,N,$,ee,!0)},p.prototype.lastIndexOf=function(N,$,ee){return G(this,N,$,ee,!1)};function z(O,N,$,ee){$=Number($)||0;let re=O.length-$;ee?(ee=Number(ee),ee>re&&(ee=re)):ee=re;let se=N.length;ee>se/2&&(ee=se/2);let ce;for(ce=0;ce<ee;++ce){let st=parseInt(N.substr(ce*2,2),16);if(qe(st))return ce;O[$+ce]=st}return ce}function J(O,N,$,ee){return _e(he(N,O.length-$),O,$,ee)}function E(O,N,$,ee){return _e(pe(N),O,$,ee)}function i(O,N,$,ee){return _e(Ae(N),O,$,ee)}function s(O,N,$,ee){return _e(De(N,O.length-$),O,$,ee)}p.prototype.write=function(N,$,ee,re){if($===void 0)re="utf8",ee=this.length,$=0;else if(ee===void 0&&typeof $=="string")re=$,ee=this.length,$=0;else if(isFinite($))$=$>>>0,isFinite(ee)?(ee=ee>>>0,re===void 0&&(re="utf8")):(re=ee,ee=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let se=this.length-$;if((ee===void 0||ee>se)&&(ee=se),N.length>0&&(ee<0||$<0)||$>this.length)throw new RangeError("Attempt to write outside buffer bounds");re||(re="utf8");let ce=!1;for(;;)switch(re){case"hex":return z(this,N,$,ee);case"utf8":case"utf-8":return J(this,N,$,ee);case"ascii":case"latin1":case"binary":return E(this,N,$,ee);case"base64":return i(this,N,$,ee);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s(this,N,$,ee);default:if(ce)throw new TypeError("Unknown encoding: "+re);re=(""+re).toLowerCase(),ce=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function u(O,N,$){return N===0&&$===O.length?e.fromByteArray(O):e.fromByteArray(O.slice(N,$))}function d(O,N,$){$=Math.min(O.length,$);let ee=[],re=N;for(;re<$;){let se=O[re],ce=null,st=se>239?4:se>223?3:se>191?2:1;if(re+st<=$){let ye,be,me,ke;switch(st){case 1:se<128&&(ce=se);break;case 2:ye=O[re+1],(ye&192)===128&&(ke=(se&31)<<6|ye&63,ke>127&&(ce=ke));break;case 3:ye=O[re+1],be=O[re+2],(ye&192)===128&&(be&192)===128&&(ke=(se&15)<<12|(ye&63)<<6|be&63,ke>2047&&(ke<55296||ke>57343)&&(ce=ke));break;case 4:ye=O[re+1],be=O[re+2],me=O[re+3],(ye&192)===128&&(be&192)===128&&(me&192)===128&&(ke=(se&15)<<18|(ye&63)<<12|(be&63)<<6|me&63,ke>65535&&ke<1114112&&(ce=ke))}}ce===null?(ce=65533,st=1):ce>65535&&(ce-=65536,ee.push(ce>>>10&1023|55296),ce=56320|ce&1023),ee.push(ce),re+=st}return _(ee)}var v=4096;function _(O){let N=O.length;if(N<=v)return String.fromCharCode.apply(String,O);let $="",ee=0;for(;ee<N;)$+=String.fromCharCode.apply(String,O.slice(ee,ee+=v));return $}function R(O,N,$){let ee="";$=Math.min(O.length,$);for(let re=N;re<$;++re)ee+=String.fromCharCode(O[re]&127);return ee}function o(O,N,$){let ee="";$=Math.min(O.length,$);for(let re=N;re<$;++re)ee+=String.fromCharCode(O[re]);return ee}function r(O,N,$){let ee=O.length;(!N||N<0)&&(N=0),(!$||$<0||$>ee)&&($=ee);let re="";for(let se=N;se<$;++se)re+=Te[O[se]];return re}function h(O,N,$){let ee=O.slice(N,$),re="";for(let se=0;se<ee.length-1;se+=2)re+=String.fromCharCode(ee[se]+ee[se+1]*256);return re}p.prototype.slice=function(N,$){let ee=this.length;N=~~N,$=$===void 0?ee:~~$,N<0?(N+=ee,N<0&&(N=0)):N>ee&&(N=ee),$<0?($+=ee,$<0&&($=0)):$>ee&&($=ee),$<N&&($=N);let re=this.subarray(N,$);return Object.setPrototypeOf(re,p.prototype),re};function b(O,N,$){if(O%1!==0||O<0)throw new RangeError("offset is not uint");if(O+N>$)throw new RangeError("Trying to access beyond buffer length")}p.prototype.readUintLE=p.prototype.readUIntLE=function(N,$,ee){N=N>>>0,$=$>>>0,ee||b(N,$,this.length);let re=this[N],se=1,ce=0;for(;++ce<$&&(se*=256);)re+=this[N+ce]*se;return re},p.prototype.readUintBE=p.prototype.readUIntBE=function(N,$,ee){N=N>>>0,$=$>>>0,ee||b(N,$,this.length);let re=this[N+--$],se=1;for(;$>0&&(se*=256);)re+=this[N+--$]*se;return re},p.prototype.readUint8=p.prototype.readUInt8=function(N,$){return N=N>>>0,$||b(N,1,this.length),this[N]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(N,$){return N=N>>>0,$||b(N,2,this.length),this[N]|this[N+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(N,$){return N=N>>>0,$||b(N,2,this.length),this[N]<<8|this[N+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(N,$){return N=N>>>0,$||b(N,4,this.length),(this[N]|this[N+1]<<8|this[N+2]<<16)+this[N+3]*16777216},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(N,$){return N=N>>>0,$||b(N,4,this.length),this[N]*16777216+(this[N+1]<<16|this[N+2]<<8|this[N+3])},p.prototype.readBigUInt64LE=mt(function(N){N=N>>>0,K(N,"offset");let $=this[N],ee=this[N+7];($===void 0||ee===void 0)&&ie(N,this.length-8);let re=$+this[++N]*2**8+this[++N]*2**16+this[++N]*2**24,se=this[++N]+this[++N]*2**8+this[++N]*2**16+ee*2**24;return BigInt(re)+(BigInt(se)<<BigInt(32))}),p.prototype.readBigUInt64BE=mt(function(N){N=N>>>0,K(N,"offset");let $=this[N],ee=this[N+7];($===void 0||ee===void 0)&&ie(N,this.length-8);let re=$*2**24+this[++N]*2**16+this[++N]*2**8+this[++N],se=this[++N]*2**24+this[++N]*2**16+this[++N]*2**8+ee;return(BigInt(re)<<BigInt(32))+BigInt(se)}),p.prototype.readIntLE=function(N,$,ee){N=N>>>0,$=$>>>0,ee||b(N,$,this.length);let re=this[N],se=1,ce=0;for(;++ce<$&&(se*=256);)re+=this[N+ce]*se;return se*=128,re>=se&&(re-=Math.pow(2,8*$)),re},p.prototype.readIntBE=function(N,$,ee){N=N>>>0,$=$>>>0,ee||b(N,$,this.length);let re=$,se=1,ce=this[N+--re];for(;re>0&&(se*=256);)ce+=this[N+--re]*se;return se*=128,ce>=se&&(ce-=Math.pow(2,8*$)),ce},p.prototype.readInt8=function(N,$){return N=N>>>0,$||b(N,1,this.length),this[N]&128?(255-this[N]+1)*-1:this[N]},p.prototype.readInt16LE=function(N,$){N=N>>>0,$||b(N,2,this.length);let ee=this[N]|this[N+1]<<8;return ee&32768?ee|4294901760:ee},p.prototype.readInt16BE=function(N,$){N=N>>>0,$||b(N,2,this.length);let ee=this[N+1]|this[N]<<8;return ee&32768?ee|4294901760:ee},p.prototype.readInt32LE=function(N,$){return N=N>>>0,$||b(N,4,this.length),this[N]|this[N+1]<<8|this[N+2]<<16|this[N+3]<<24},p.prototype.readInt32BE=function(N,$){return N=N>>>0,$||b(N,4,this.length),this[N]<<24|this[N+1]<<16|this[N+2]<<8|this[N+3]},p.prototype.readBigInt64LE=mt(function(N){N=N>>>0,K(N,"offset");let $=this[N],ee=this[N+7];($===void 0||ee===void 0)&&ie(N,this.length-8);let re=this[N+4]+this[N+5]*2**8+this[N+6]*2**16+(ee<<24);return(BigInt(re)<<BigInt(32))+BigInt($+this[++N]*2**8+this[++N]*2**16+this[++N]*2**24)}),p.prototype.readBigInt64BE=mt(function(N){N=N>>>0,K(N,"offset");let $=this[N],ee=this[N+7];($===void 0||ee===void 0)&&ie(N,this.length-8);let re=($<<24)+this[++N]*2**16+this[++N]*2**8+this[++N];return(BigInt(re)<<BigInt(32))+BigInt(this[++N]*2**24+this[++N]*2**16+this[++N]*2**8+ee)}),p.prototype.readFloatLE=function(N,$){return N=N>>>0,$||b(N,4,this.length),n.read(this,N,!0,23,4)},p.prototype.readFloatBE=function(N,$){return N=N>>>0,$||b(N,4,this.length),n.read(this,N,!1,23,4)},p.prototype.readDoubleLE=function(N,$){return N=N>>>0,$||b(N,8,this.length),n.read(this,N,!0,52,8)},p.prototype.readDoubleBE=function(N,$){return N=N>>>0,$||b(N,8,this.length),n.read(this,N,!1,52,8)};function M(O,N,$,ee,re,se){if(!p.isBuffer(O))throw new TypeError('"buffer" argument must be a Buffer instance');if(N>re||N<se)throw new RangeError('"value" argument is out of bounds');if($+ee>O.length)throw new RangeError("Index out of range")}p.prototype.writeUintLE=p.prototype.writeUIntLE=function(N,$,ee,re){if(N=+N,$=$>>>0,ee=ee>>>0,!re){let st=Math.pow(2,8*ee)-1;M(this,N,$,ee,st,0)}let se=1,ce=0;for(this[$]=N&255;++ce<ee&&(se*=256);)this[$+ce]=N/se&255;return $+ee},p.prototype.writeUintBE=p.prototype.writeUIntBE=function(N,$,ee,re){if(N=+N,$=$>>>0,ee=ee>>>0,!re){let st=Math.pow(2,8*ee)-1;M(this,N,$,ee,st,0)}let se=ee-1,ce=1;for(this[$+se]=N&255;--se>=0&&(ce*=256);)this[$+se]=N/ce&255;return $+ee},p.prototype.writeUint8=p.prototype.writeUInt8=function(N,$,ee){return N=+N,$=$>>>0,ee||M(this,N,$,1,255,0),this[$]=N&255,$+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(N,$,ee){return N=+N,$=$>>>0,ee||M(this,N,$,2,65535,0),this[$]=N&255,this[$+1]=N>>>8,$+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(N,$,ee){return N=+N,$=$>>>0,ee||M(this,N,$,2,65535,0),this[$]=N>>>8,this[$+1]=N&255,$+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(N,$,ee){return N=+N,$=$>>>0,ee||M(this,N,$,4,4294967295,0),this[$+3]=N>>>24,this[$+2]=N>>>16,this[$+1]=N>>>8,this[$]=N&255,$+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(N,$,ee){return N=+N,$=$>>>0,ee||M(this,N,$,4,4294967295,0),this[$]=N>>>24,this[$+1]=N>>>16,this[$+2]=N>>>8,this[$+3]=N&255,$+4};function k(O,N,$,ee,re){U(N,ee,re,O,$,7);let se=Number(N&BigInt(4294967295));O[$++]=se,se=se>>8,O[$++]=se,se=se>>8,O[$++]=se,se=se>>8,O[$++]=se;let ce=Number(N>>BigInt(32)&BigInt(4294967295));return O[$++]=ce,ce=ce>>8,O[$++]=ce,ce=ce>>8,O[$++]=ce,ce=ce>>8,O[$++]=ce,$}function D(O,N,$,ee,re){U(N,ee,re,O,$,7);let se=Number(N&BigInt(4294967295));O[$+7]=se,se=se>>8,O[$+6]=se,se=se>>8,O[$+5]=se,se=se>>8,O[$+4]=se;let ce=Number(N>>BigInt(32)&BigInt(4294967295));return O[$+3]=ce,ce=ce>>8,O[$+2]=ce,ce=ce>>8,O[$+1]=ce,ce=ce>>8,O[$]=ce,$+8}p.prototype.writeBigUInt64LE=mt(function(N,$=0){return k(this,N,$,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeBigUInt64BE=mt(function(N,$=0){return D(this,N,$,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeIntLE=function(N,$,ee,re){if(N=+N,$=$>>>0,!re){let ye=Math.pow(2,8*ee-1);M(this,N,$,ee,ye-1,-ye)}let se=0,ce=1,st=0;for(this[$]=N&255;++se<ee&&(ce*=256);)N<0&&st===0&&this[$+se-1]!==0&&(st=1),this[$+se]=(N/ce>>0)-st&255;return $+ee},p.prototype.writeIntBE=function(N,$,ee,re){if(N=+N,$=$>>>0,!re){let ye=Math.pow(2,8*ee-1);M(this,N,$,ee,ye-1,-ye)}let se=ee-1,ce=1,st=0;for(this[$+se]=N&255;--se>=0&&(ce*=256);)N<0&&st===0&&this[$+se+1]!==0&&(st=1),this[$+se]=(N/ce>>0)-st&255;return $+ee},p.prototype.writeInt8=function(N,$,ee){return N=+N,$=$>>>0,ee||M(this,N,$,1,127,-128),N<0&&(N=255+N+1),this[$]=N&255,$+1},p.prototype.writeInt16LE=function(N,$,ee){return N=+N,$=$>>>0,ee||M(this,N,$,2,32767,-32768),this[$]=N&255,this[$+1]=N>>>8,$+2},p.prototype.writeInt16BE=function(N,$,ee){return N=+N,$=$>>>0,ee||M(this,N,$,2,32767,-32768),this[$]=N>>>8,this[$+1]=N&255,$+2},p.prototype.writeInt32LE=function(N,$,ee){return N=+N,$=$>>>0,ee||M(this,N,$,4,2147483647,-2147483648),this[$]=N&255,this[$+1]=N>>>8,this[$+2]=N>>>16,this[$+3]=N>>>24,$+4},p.prototype.writeInt32BE=function(N,$,ee){return N=+N,$=$>>>0,ee||M(this,N,$,4,2147483647,-2147483648),N<0&&(N=4294967295+N+1),this[$]=N>>>24,this[$+1]=N>>>16,this[$+2]=N>>>8,this[$+3]=N&255,$+4},p.prototype.writeBigInt64LE=mt(function(N,$=0){return k(this,N,$,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),p.prototype.writeBigInt64BE=mt(function(N,$=0){return D(this,N,$,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Q(O,N,$,ee,re,se){if($+ee>O.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("Index out of range")}function W(O,N,$,ee,re){return N=+N,$=$>>>0,re||Q(O,N,$,4,34028234663852886e22,-34028234663852886e22),n.write(O,N,$,ee,23,4),$+4}p.prototype.writeFloatLE=function(N,$,ee){return W(this,N,$,!0,ee)},p.prototype.writeFloatBE=function(N,$,ee){return W(this,N,$,!1,ee)};function X(O,N,$,ee,re){return N=+N,$=$>>>0,re||Q(O,N,$,8,17976931348623157e292,-17976931348623157e292),n.write(O,N,$,ee,52,8),$+8}p.prototype.writeDoubleLE=function(N,$,ee){return X(this,N,$,!0,ee)},p.prototype.writeDoubleBE=function(N,$,ee){return X(this,N,$,!1,ee)},p.prototype.copy=function(N,$,ee,re){if(!p.isBuffer(N))throw new TypeError("argument should be a Buffer");if(ee||(ee=0),!re&&re!==0&&(re=this.length),$>=N.length&&($=N.length),$||($=0),re>0&&re<ee&&(re=ee),re===ee||N.length===0||this.length===0)return 0;if($<0)throw new RangeError("targetStart out of bounds");if(ee<0||ee>=this.length)throw new RangeError("Index out of range");if(re<0)throw new RangeError("sourceEnd out of bounds");re>this.length&&(re=this.length),N.length-$<re-ee&&(re=N.length-$+ee);let se=re-ee;return this===N&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin($,ee,re):Uint8Array.prototype.set.call(N,this.subarray(ee,re),$),se},p.prototype.fill=function(N,$,ee,re){if(typeof N=="string"){if(typeof $=="string"?(re=$,$=0,ee=this.length):typeof ee=="string"&&(re=ee,ee=this.length),re!==void 0&&typeof re!="string")throw new TypeError("encoding must be a string");if(typeof re=="string"&&!p.isEncoding(re))throw new TypeError("Unknown encoding: "+re);if(N.length===1){let ce=N.charCodeAt(0);(re==="utf8"&&ce<128||re==="latin1")&&(N=ce)}}else typeof N=="number"?N=N&255:typeof N=="boolean"&&(N=Number(N));if($<0||this.length<$||this.length<ee)throw new RangeError("Out of range index");if(ee<=$)return this;$=$>>>0,ee=ee===void 0?this.length:ee>>>0,N||(N=0);let se;if(typeof N=="number")for(se=$;se<ee;++se)this[se]=N;else{let ce=p.isBuffer(N)?N:p.from(N,re),st=ce.length;if(st===0)throw new TypeError('The value "'+N+'" is invalid for argument "value"');for(se=0;se<ee-$;++se)this[se+$]=ce[se%st]}return this};var V={};function Y(O,N,$){V[O]=class extends ${constructor(){super(),Object.defineProperty(this,"message",{value:N.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${O}]`,this.stack,delete this.name}get code(){return O}set code(re){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:re,writable:!0})}toString(){return`${this.name} [${O}]: ${this.message}`}}}Y("ERR_BUFFER_OUT_OF_BOUNDS",function(O){return O?`${O} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Y("ERR_INVALID_ARG_TYPE",function(O,N){return`The "${O}" argument must be of type number. Received type ${typeof N}`},TypeError),Y("ERR_OUT_OF_RANGE",function(O,N,$){let ee=`The value of "${O}" is out of range.`,re=$;return Number.isInteger($)&&Math.abs($)>2**32?re=ae(String($)):typeof $=="bigint"&&(re=String($),($>BigInt(2)**BigInt(32)||$<-(BigInt(2)**BigInt(32)))&&(re=ae(re)),re+="n"),ee+=` It must be ${N}. Received ${re}`,ee},RangeError);function ae(O){let N="",$=O.length,ee=O[0]==="-"?1:0;for(;$>=ee+4;$-=3)N=`_${O.slice($-3,$)}${N}`;return`${O.slice(0,$)}${N}`}function te(O,N,$){K(N,"offset"),(O[N]===void 0||O[N+$]===void 0)&&ie(N,O.length-($+1))}function U(O,N,$,ee,re,se){if(O>$||O<N){let ce=typeof N=="bigint"?"n":"",st;throw se>3?N===0||N===BigInt(0)?st=`>= 0${ce} and < 2${ce} ** ${(se+1)*8}${ce}`:st=`>= -(2${ce} ** ${(se+1)*8-1}${ce}) and < 2 ** ${(se+1)*8-1}${ce}`:st=`>= ${N}${ce} and <= ${$}${ce}`,new V.ERR_OUT_OF_RANGE("value",st,O)}te(ee,re,se)}function K(O,N){if(typeof O!="number")throw new V.ERR_INVALID_ARG_TYPE(N,"number",O)}function ie(O,N,$){throw Math.floor(O)!==O?(K(O,$),new V.ERR_OUT_OF_RANGE($||"offset","an integer",O)):N<0?new V.ERR_BUFFER_OUT_OF_BOUNDS:new V.ERR_OUT_OF_RANGE($||"offset",`>= ${$?1:0} and <= ${N}`,O)}var fe=/[^+/0-9A-Za-z-_]/g;function de(O){if(O=O.split("=")[0],O=O.trim().replace(fe,""),O.length<2)return"";for(;O.length%4!==0;)O=O+"=";return O}function he(O,N){N=N||1/0;let $,ee=O.length,re=null,se=[];for(let ce=0;ce<ee;++ce){if($=O.charCodeAt(ce),$>55295&&$<57344){if(!re){if($>56319){(N-=3)>-1&&se.push(239,191,189);continue}else if(ce+1===ee){(N-=3)>-1&&se.push(239,191,189);continue}re=$;continue}if($<56320){(N-=3)>-1&&se.push(239,191,189),re=$;continue}$=(re-55296<<10|$-56320)+65536}else re&&(N-=3)>-1&&se.push(239,191,189);if(re=null,$<128){if((N-=1)<0)break;se.push($)}else if($<2048){if((N-=2)<0)break;se.push($>>6|192,$&63|128)}else if($<65536){if((N-=3)<0)break;se.push($>>12|224,$>>6&63|128,$&63|128)}else if($<1114112){if((N-=4)<0)break;se.push($>>18|240,$>>12&63|128,$>>6&63|128,$&63|128)}else throw new Error("Invalid code point")}return se}function pe(O){let N=[];for(let $=0;$<O.length;++$)N.push(O.charCodeAt($)&255);return N}function De(O,N){let $,ee,re,se=[];for(let ce=0;ce<O.length&&!((N-=2)<0);++ce)$=O.charCodeAt(ce),ee=$>>8,re=$%256,se.push(re),se.push(ee);return se}function Ae(O){return e.toByteArray(de(O))}function _e(O,N,$,ee){let re;for(re=0;re<ee&&!(re+$>=N.length||re>=O.length);++re)N[re+$]=O[re];return re}function ut(O,N){return O instanceof N||O!=null&&O.constructor!=null&&O.constructor.name!=null&&O.constructor.name===N.name}function qe(O){return O!==O}var Te=function(){let O="0123456789abcdef",N=new Array(256);for(let $=0;$<16;++$){let ee=$*16;for(let re=0;re<16;++re)N[ee+re]=O[$]+O[re]}return N}();function mt(O){return typeof BigInt>"u"?ne:O}function ne(){throw new Error("BigInt not supported")}}}),Fbe={"@@functional/placeholder":!0};function Bn(t){return t===Fbe}function co(t){return function e(n){return arguments.length===0||Bn(n)?e:t.apply(this,arguments)}}function la(t){return function e(n,f){switch(arguments.length){case 0:return e;case 1:return Bn(n)?e:co(function(a){return t(n,a)});default:return Bn(n)&&Bn(f)?e:Bn(n)?co(function(a){return t(a,f)}):Bn(f)?co(function(a){return t(n,a)}):t(n,f)}}}function Zb(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(n){return e.apply(this,arguments)};case 2:return function(n,f){return e.apply(this,arguments)};case 3:return function(n,f,a){return e.apply(this,arguments)};case 4:return function(n,f,a,c){return e.apply(this,arguments)};case 5:return function(n,f,a,c,l){return e.apply(this,arguments)};case 6:return function(n,f,a,c,l,p){return e.apply(this,arguments)};case 7:return function(n,f,a,c,l,p,w){return e.apply(this,arguments)};case 8:return function(n,f,a,c,l,p,w,m){return e.apply(this,arguments)};case 9:return function(n,f,a,c,l,p,w,m,y){return e.apply(this,arguments)};case 10:return function(n,f,a,c,l,p,w,m,y,g){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function qz(t,e,n){return function(){for(var f=[],a=0,c=t,l=0,p=!1;l<e.length||a<arguments.length;){var w;l<e.length&&(!Bn(e[l])||a>=arguments.length)?w=e[l]:(w=arguments[a],a+=1),f[l]=w,Bn(w)?p=!0:c-=1,l+=1}return!p&&c<=0?n.apply(this,f):Zb(Math.max(0,c),qz(t,f,n))}}var zbe=la(function(t,e){return t===1?co(e):Zb(t,qz(t,[],e))}),jz=zbe;function oM(t){return function e(n,f,a){switch(arguments.length){case 0:return e;case 1:return Bn(n)?e:la(function(c,l){return t(n,c,l)});case 2:return Bn(n)&&Bn(f)?e:Bn(n)?la(function(c,l){return t(c,f,l)}):Bn(f)?la(function(c,l){return t(n,c,l)}):co(function(c){return t(n,f,c)});default:return Bn(n)&&Bn(f)&&Bn(a)?e:Bn(n)&&Bn(f)?la(function(c,l){return t(c,l,a)}):Bn(n)&&Bn(a)?la(function(c,l){return t(c,f,l)}):Bn(f)&&Bn(a)?la(function(c,l){return t(n,c,l)}):Bn(n)?co(function(c){return t(c,f,a)}):Bn(f)?co(function(c){return t(n,c,a)}):Bn(a)?co(function(c){return t(n,f,c)}):t(n,f,a)}}}var sM=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function Hbe(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function fM(t,e,n){return function(){if(arguments.length===0)return n();var f=arguments[arguments.length-1];if(!sM(f)){for(var a=0;a<t.length;){if(typeof f[t[a]]=="function")return f[t[a]].apply(f,Array.prototype.slice.call(arguments,0,-1));a+=1}if(Hbe(f)){var c=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return c(f)}}return n.apply(this,arguments)}}function Zbe(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}var um={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};function cz(t){for(var e=[],n;!(n=t.next()).done;)e.push(n.value);return e}function dz(t,e,n){for(var f=0,a=n.length;f<a;){if(t(e,n[f]))return!0;f+=1}return!1}function Kbe(t){var e=String(t).match(/^function (\w*)/);return e==null?"":e[1]}function _b(t,e){return Object.prototype.hasOwnProperty.call(e,t)}function Wbe(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var M_=typeof Object.is=="function"?Object.is:Wbe,pz=Object.prototype.toString,Vbe=function(){return pz.call(arguments)==="[object Arguments]"?function(t){return pz.call(t)==="[object Arguments]"}:function(t){return _b("callee",t)}}(),Gbe=Vbe,Ybe=!{toString:null}.propertyIsEnumerable("toString"),vz=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],mz=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),Jbe=function(t,e){for(var n=0;n<t.length;){if(t[n]===e)return!0;n+=1}return!1},Xbe=co(typeof Object.keys=="function"&&!mz?function(t){return Object(t)!==t?[]:Object.keys(t)}:function(t){if(Object(t)!==t)return[];var e,n,f=[],a=mz&&Gbe(t);for(e in t)_b(e,t)&&(!a||e!=="length")&&(f[f.length]=e);if(Ybe)for(n=vz.length-1;n>=0;)e=vz[n],_b(e,t)&&!Jbe(f,e)&&(f[f.length]=e),n-=1;return f}),y1=Xbe,Qbe=co(function(t){return t===null?"Null":t===void 0?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}),gz=Qbe;function yz(t,e,n,f){var a=cz(t),c=cz(e);function l(p,w){return uM(p,w,n.slice(),f.slice())}return!dz(function(p,w){return!dz(l,w,p)},c,a)}function uM(t,e,n,f){if(M_(t,e))return!0;var a=gz(t);if(a!==gz(e))return!1;if(typeof t["fantasy-land/equals"]=="function"||typeof e["fantasy-land/equals"]=="function")return typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e)&&typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t);if(typeof t.equals=="function"||typeof e.equals=="function")return typeof t.equals=="function"&&t.equals(e)&&typeof e.equals=="function"&&e.equals(t);switch(a){case"Arguments":case"Array":case"Object":if(typeof t.constructor=="function"&&Kbe(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(!(typeof t==typeof e&&M_(t.valueOf(),e.valueOf())))return!1;break;case"Date":if(!M_(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(!(t.source===e.source&&t.global===e.global&&t.ignoreCase===e.ignoreCase&&t.multiline===e.multiline&&t.sticky===e.sticky&&t.unicode===e.unicode))return!1;break}for(var c=n.length-1;c>=0;){if(n[c]===t)return f[c]===e;c-=1}switch(a){case"Map":return t.size!==e.size?!1:yz(t.entries(),e.entries(),n.concat([t]),f.concat([e]));case"Set":return t.size!==e.size?!1:yz(t.values(),e.values(),n.concat([t]),f.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var l=y1(t);if(l.length!==y1(e).length)return!1;var p=n.concat([t]),w=f.concat([e]);for(c=l.length-1;c>=0;){var m=l[c];if(!(_b(m,e)&&uM(e[m],t[m],p,w)))return!1;c-=1}return!0}var e3e=la(function(t,e){return uM(t,e,[],[])}),Fz=e3e;function t3e(t,e,n){var f,a;if(typeof t.indexOf=="function")switch(typeof e){case"number":if(e===0){for(f=1/e;n<t.length;){if(a=t[n],a===0&&1/a===f)return n;n+=1}return-1}else if(e!==e){for(;n<t.length;){if(a=t[n],typeof a=="number"&&a!==a)return n;n+=1}return-1}return t.indexOf(e,n);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,n);case"object":if(e===null)return t.indexOf(e,n)}for(;n<t.length;){if(Fz(t[n],e))return n;n+=1}return-1}function r3e(t,e){return t3e(e,t,0)>=0}function sm(t,e){for(var n=0,f=e.length,a=Array(f);n<f;)a[n]=t(e[n]),n+=1;return a}function S_(t){var e=t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+e.replace(/"/g,'\\"')+'"'}var Yv=function(t){return(t<10?"0":"")+t},i3e=typeof Date.prototype.toISOString=="function"?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+Yv(t.getUTCMonth()+1)+"-"+Yv(t.getUTCDate())+"T"+Yv(t.getUTCHours())+":"+Yv(t.getUTCMinutes())+":"+Yv(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"},n3e=i3e;function a3e(t){return function(){return!t.apply(this,arguments)}}function zz(t,e,n){for(var f=0,a=n.length;f<a;)e=t(e,n[f]),f+=1;return e}function o3e(t,e){for(var n=0,f=e.length,a=[];n<f;)t(e[n])&&(a[a.length]=e[n]),n+=1;return a}function s3e(t){return Object.prototype.toString.call(t)==="[object Object]"}var f3e=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=um.init,t.prototype["@@transducer/result"]=um.result,t.prototype["@@transducer/step"]=function(e,n){return this.f(n)?this.xf["@@transducer/step"](e,n):e},t}();function u3e(t){return function(e){return new f3e(t,e)}}var h3e=la(fM(["fantasy-land/filter","filter"],u3e,function(t,e){return s3e(e)?zz(function(n,f){return t(e[f])&&(n[f]=e[f]),n},{},y1(e)):o3e(t,e)})),l3e=h3e,c3e=la(function(t,e){return l3e(a3e(t),e)}),d3e=c3e;function Hz(t,e){var n=function(c){var l=e.concat([t]);return r3e(c,l)?"<Circular>":Hz(c,l)},f=function(c,l){return sm(function(p){return S_(p)+": "+n(c[p])},l.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+sm(n,t).join(", ")+"))";case"[object Array]":return"["+sm(n,t).concat(f(t,d3e(function(c){return/^\d+$/.test(c)},y1(t)))).join(", ")+"]";case"[object Boolean]":return typeof t=="object"?"new Boolean("+n(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?n(NaN):S_(n3e(t)))+")";case"[object Map]":return"new Map("+n(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return typeof t=="object"?"new Number("+n(t.valueOf())+")":1/t===-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+n(Array.from(t).sort())+")";case"[object String]":return typeof t=="object"?"new String("+n(t.valueOf())+")":S_(t);case"[object Undefined]":return"undefined";default:if(typeof t.toString=="function"){var a=t.toString();if(a!=="[object Object]")return a}return"{"+f(t,y1(t)).join(", ")+"}"}}var p3e=co(function(t){return Hz(t,[])}),bz=p3e,v3e=la(function(t,e){if(t===e)return e;function n(p,w){if(p>w!=w>p)return w>p?w:p}var f=n(t,e);if(f!==void 0)return f;var a=n(typeof t,typeof e);if(a!==void 0)return a===typeof t?t:e;var c=bz(t),l=n(c,bz(e));return l!==void 0&&l===c?t:e}),m3e=v3e,g3e=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=um.init,t.prototype["@@transducer/result"]=um.result,t.prototype["@@transducer/step"]=function(e,n){return this.xf["@@transducer/step"](e,this.f(n))},t}(),y3e=function(t){return function(e){return new g3e(t,e)}},b3e=y3e,w3e=la(fM(["fantasy-land/map","map"],b3e,function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return jz(e.length,function(){return t.call(this,e.apply(this,arguments))});case"[object Object]":return zz(function(n,f){return n[f]=t(e[f]),n},{},y1(e));default:return sm(t,e)}})),_3e=w3e,Zz=Number.isInteger||function(t){return t<<0===t};function Kz(t){return Object.prototype.toString.call(t)==="[object String]"}function Wz(t,e){var n=t<0?e.length+t:t;return Kz(e)?e.charAt(n):e[n]}var M3e=la(function(t,e){if(e!=null)return Zz(t)?Wz(t,e):e[t]}),Kb=M3e,S3e=la(function(t,e){return _3e(Kb(t),e)}),E3e=S3e,A3e=co(function(t){return sM(t)?!0:!t||typeof t!="object"||Kz(t)?!1:t.length===0?!0:t.length>0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1}),x3e=A3e,wz=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function R3e(t,e,n){return function(f,a,c){if(x3e(c))return t(f,a,c);if(c==null)return a;if(typeof c["fantasy-land/reduce"]=="function")return e(f,a,c,"fantasy-land/reduce");if(c[wz]!=null)return n(f,a,c[wz]());if(typeof c.next=="function")return n(f,a,c);if(typeof c.reduce=="function")return e(f,a,c,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function k3e(t,e,n){for(var f=0,a=n.length;f<a;){if(e=t["@@transducer/step"](e,n[f]),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}f+=1}return t["@@transducer/result"](e)}var T3e=la(function(t,e){return Zb(t.length,function(){return t.apply(e,arguments)})}),I3e=T3e;function B3e(t,e,n){for(var f=n.next();!f.done;){if(e=t["@@transducer/step"](e,f.value),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}f=n.next()}return t["@@transducer/result"](e)}function O3e(t,e,n,f){return t["@@transducer/result"](n[f](I3e(t["@@transducer/step"],t),e))}var P3e=R3e(k3e,O3e,B3e),N3e=P3e,C3e=function(){function t(e){this.f=e}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(e){return e},t.prototype["@@transducer/step"]=function(e,n){return this.f(e,n)},t}();function L3e(t){return new C3e(t)}var D3e=oM(function(t,e,n){return N3e(typeof t=="function"?L3e(t):t,e,n)}),Vz=D3e;function $3e(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function Gz(t,e){return function(){var n=arguments.length;if(n===0)return e();var f=arguments[n-1];return sM(f)||typeof f[t]!="function"?e.apply(this,arguments):f[t].apply(f,Array.prototype.slice.call(arguments,0,n-1))}}var U3e=oM(Gz("slice",function(t,e,n){return Array.prototype.slice.call(n,t,e)})),q3e=U3e,j3e=co(Gz("tail",q3e(1,1/0))),F3e=j3e;function Yz(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Zb(arguments[0].length,Vz($3e,arguments[0],F3e(arguments)))}var z3e=la(function(t,e){return jz(Vz(m3e,0,E3e("length",e)),function(){var n=arguments,f=this;return t.apply(f,sm(function(a){return a.apply(f,n)},e))})}),H3e=z3e,Z3e=la(function(t,e){return e==null||e!==e?t:e}),B_=Z3e,K3e=function(){function t(e,n){this.xf=n,this.f=e,this.found=!1}return t.prototype["@@transducer/init"]=um.init,t.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,void 0)),this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,n){return this.f(n)&&(this.found=!0,e=Zbe(this.xf["@@transducer/step"](e,n))),e},t}();function W3e(t){return function(e){return new K3e(t,e)}}var V3e=la(fM(["find"],W3e,function(t,e){for(var n=0,f=e.length;n<f;){if(t(e[n]))return e[n];n+=1}})),G3e=V3e,Y3e=co(function(t){return H3e(function(){return Array.prototype.slice.call(arguments,0)},t)}),J3e=Y3e;function X3e(t,e){for(var n=e,f=0;f<t.length;f+=1){if(n==null)return;var a=t[f];Zz(a)?n=Wz(a,n):n=n[a]}return n}var Q3e=la(X3e),Jz=Q3e,e8e=oM(function(t,e,n){return Fz(t,Kb(e,n))}),t8e=e8e,Mb=class extends Error{name="InvalidSchedulerLocation"},r8e=class extends Error{name="SchedulerTagNotFound"},i8e=class extends Error{name="TransactionNotFound"},n8e="Url",a8e="Time-To-Live",o8e="Scheduler",O_=t=>Yz(B_([]),G3e(t8e(t,"name")),B_({}),Kb("value")),Xz=t=>Yz(e=>{if(!e)throw new i8e(t);return e},Kb("tags"),B_([]));function Qz({fetch:t,GRAPHQL_URL:e}){return async({query:n,variables:f})=>t(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:n,variables:f})}).then(a=>a.json())}function s8e({fetch:t,GRAPHQL_URL:e}){let n=Qz({fetch:t,GRAPHQL_URL:e}),f=eH({fetch:t,GRAPHQL_URL:e}),a=`
|
|
138
|
+
${JSON.stringify(St.from(n))},${JSON.stringify(St.from(f))},${c} => ${JSON.stringify(p)}`;return Jie(l,w)}Si.debug=Jie});var p4=Zt(fs=>{"use strict";Be();Pe();Oe();var lOe=fs&&fs.__createBinding||(Object.create?function(t,e,n,f){f===void 0&&(f=n);var a=Object.getOwnPropertyDescriptor(e,n);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,f,a)}:function(t,e,n,f){f===void 0&&(f=n),t[f]=e[n]}),cOe=fs&&fs.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),dOe=fs&&fs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&lOe(e,t,n);return cOe(e,t),e},pOe=fs&&fs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(fs,"__esModule",{value:!0});fs.Tag=void 0;var ya=dOe(Yh()),vOe=pOe(Wie()),mOe=TT(),d4=class{get(e,n){if(!Object.getOwnPropertyNames(this).includes(e))throw new Error(`Field "${e}" is not a property of the Arweave Transaction class.`);if(this[e]instanceof Uint8Array)return n&&n.decode&&n.string?ya.bufferToString(this[e]):n&&n.decode&&!n.string?this[e]:ya.bufferTob64Url(this[e]);if(this[e]instanceof Array){if(n?.decode!==void 0||n?.string!==void 0)throw e==="tags"&&console.warn(`Did you mean to use 'transaction["tags"]' ?`),new Error("Cannot decode or stringify an array.");return this[e]}return n&&n.decode==!0?n&&n.string?ya.b64UrlToString(this[e]):ya.b64UrlToBuffer(this[e]):this[e]}},eg=class extends d4{name;value;constructor(e,n,f=!1){super(),this.name=e,this.value=n}};fs.Tag=eg;var IT=class extends d4{format=2;id="";last_tx="";owner="";tags=[];target="";quantity="0";data_size="0";data=new Uint8Array;data_root="";reward="0";signature="";chunks;constructor(e={}){super(),Object.assign(this,e),typeof this.data=="string"&&(this.data=ya.b64UrlToBuffer(this.data)),e.tags&&(this.tags=e.tags.map(n=>new eg(n.name,n.value)))}addTag(e,n){this.tags.push(new eg(ya.stringToB64Url(e),ya.stringToB64Url(n)))}toJSON(){return{format:this.format,id:this.id,last_tx:this.last_tx,owner:this.owner,tags:this.tags,target:this.target,quantity:this.quantity,data:ya.bufferTob64Url(this.data),data_size:this.data_size,data_root:this.data_root,data_tree:this.data_tree,reward:this.reward,signature:this.signature}}setOwner(e){this.owner=e}setSignature({id:e,owner:n,reward:f,tags:a,signature:c}){this.id=e,this.owner=n,f&&(this.reward=f),a&&(this.tags=a),this.signature=c}async prepareChunks(e){!this.chunks&&e.byteLength>0&&(this.chunks=await(0,mOe.generateTransactionChunks)(e),this.data_root=ya.bufferTob64Url(this.chunks.data_root)),!this.chunks&&e.byteLength===0&&(this.chunks={chunks:[],data_root:new Uint8Array,proofs:[]},this.data_root="")}getChunk(e,n){if(!this.chunks)throw new Error("Chunks have not been prepared");let f=this.chunks.proofs[e],a=this.chunks.chunks[e];return{data_root:this.data_root,data_size:this.data_size,data_path:ya.bufferTob64Url(f.proof),offset:f.offset.toString(),chunk:ya.bufferTob64Url(n.slice(a.minByteRange,a.maxByteRange))}}async getSignatureData(){switch(this.format){case 1:let e=this.tags.reduce((f,a)=>ya.concatBuffers([f,a.get("name",{decode:!0,string:!1}),a.get("value",{decode:!0,string:!1})]),new Uint8Array);return ya.concatBuffers([this.get("owner",{decode:!0,string:!1}),this.get("target",{decode:!0,string:!1}),this.get("data",{decode:!0,string:!1}),ya.stringToBuffer(this.quantity),ya.stringToBuffer(this.reward),this.get("last_tx",{decode:!0,string:!1}),e]);case 2:this.data_root||await this.prepareChunks(this.data);let n=this.tags.map(f=>[f.get("name",{decode:!0,string:!1}),f.get("value",{decode:!0,string:!1})]);return await(0,vOe.default)([ya.stringToBuffer(this.format.toString()),this.get("owner",{decode:!0,string:!1}),this.get("target",{decode:!0,string:!1}),ya.stringToBuffer(this.quantity),ya.stringToBuffer(this.reward),this.get("last_tx",{decode:!0,string:!1}),n,ya.stringToBuffer(this.data_size),this.get("data_root",{decode:!0,string:!1})]);default:throw new Error(`Unexpected transaction format: ${this.format}`)}}};fs.default=IT});var tne=Zt(cf=>{"use strict";Be();Pe();Oe();var gOe=cf&&cf.__createBinding||(Object.create?function(t,e,n,f){f===void 0&&(f=n);var a=Object.getOwnPropertyDescriptor(e,n);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,f,a)}:function(t,e,n,f){f===void 0&&(f=n),t[f]=e[n]}),yOe=cf&&cf.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),bOe=cf&&cf.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&gOe(e,t,n);return yOe(e,t),e},wOe=cf&&cf.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(cf,"__esModule",{value:!0});cf.TransactionUploader=void 0;var Xie=wOe(p4()),_Oe=bOe(Yh()),BT=G2(),MOe=TT(),Qie=1,SOe=["invalid_json","chunk_too_big","data_path_too_big","offset_too_big","data_size_too_big","chunk_proof_ratio_not_attractive","invalid_proof"],ene=1e3*40,OT=class t{api;chunkIndex=0;txPosted=!1;transaction;lastRequestTimeEnd=0;totalErrors=0;data;lastResponseStatus=0;lastResponseError="";get isComplete(){return this.txPosted&&this.chunkIndex===this.transaction.chunks.chunks.length}get totalChunks(){return this.transaction.chunks.chunks.length}get uploadedChunks(){return this.chunkIndex}get pctComplete(){return Math.trunc(this.uploadedChunks/this.totalChunks*100)}constructor(e,n){if(this.api=e,!n.id)throw new Error("Transaction is not signed");if(!n.chunks)throw new Error("Transaction chunks not prepared");this.data=n.data,this.transaction=new Xie.default(Object.assign({},n,{data:new Uint8Array(0)}))}async uploadChunk(e){if(this.isComplete)throw new Error("Upload is already complete");if(this.lastResponseError!==""?this.totalErrors++:this.totalErrors=0,this.totalErrors===100)throw new Error(`Unable to complete upload: ${this.lastResponseStatus}: ${this.lastResponseError}`);let n=this.lastResponseError===""?0:Math.max(this.lastRequestTimeEnd+ene-Date.now(),ene);if(n>0&&(n=n-n*Math.random()*.3,await new Promise(l=>setTimeout(l,n))),this.lastResponseError="",!this.txPosted){await this.postTransaction();return}e&&(this.chunkIndex=e);let f=this.transaction.getChunk(e||this.chunkIndex,this.data);if(!await(0,MOe.validatePath)(this.transaction.chunks.data_root,parseInt(f.offset),0,parseInt(f.data_size),_Oe.b64UrlToBuffer(f.data_path)))throw new Error(`Unable to validate chunk ${this.chunkIndex}`);let c=await this.api.post("chunk",this.transaction.getChunk(this.chunkIndex,this.data)).catch(l=>(console.error(l.message),{status:-1,data:{error:l.message}}));if(this.lastRequestTimeEnd=Date.now(),this.lastResponseStatus=c.status,this.lastResponseStatus==200)this.chunkIndex++;else if(this.lastResponseError=(0,BT.getError)(c),SOe.includes(this.lastResponseError))throw new Error(`Fatal error uploading chunk ${this.chunkIndex}: ${this.lastResponseError}`)}static async fromSerialized(e,n,f){if(!n||typeof n.chunkIndex!="number"||typeof n.transaction!="object")throw new Error("Serialized object does not match expected format.");var a=new Xie.default(n.transaction);a.chunks||await a.prepareChunks(f);let c=new t(e,a);if(c.chunkIndex=n.chunkIndex,c.lastRequestTimeEnd=n.lastRequestTimeEnd,c.lastResponseError=n.lastResponseError,c.lastResponseStatus=n.lastResponseStatus,c.txPosted=n.txPosted,c.data=f,c.transaction.data_root!==n.transaction.data_root)throw new Error("Data mismatch: Uploader doesn't match provided data.");return c}static async fromTransactionId(e,n){let f=await e.get(`tx/${n}`);if(f.status!==200)throw new Error(`Tx ${n} not found: ${f.status}`);let a=f.data;return a.data=new Uint8Array(0),{txPosted:!0,chunkIndex:0,lastResponseError:"",lastRequestTimeEnd:0,lastResponseStatus:0,transaction:a}}toJSON(){return{chunkIndex:this.chunkIndex,transaction:this.transaction,lastRequestTimeEnd:this.lastRequestTimeEnd,lastResponseStatus:this.lastResponseStatus,lastResponseError:this.lastResponseError,txPosted:this.txPosted}}async postTransaction(){if(this.totalChunks<=Qie){this.transaction.data=this.data;let f=await this.api.post("tx",this.transaction).catch(a=>(console.error(a),{status:-1,data:{error:a.message}}));if(this.lastRequestTimeEnd=Date.now(),this.lastResponseStatus=f.status,this.transaction.data=new Uint8Array(0),f.status>=200&&f.status<300){this.txPosted=!0,this.chunkIndex=Qie;return}throw this.lastResponseError=(0,BT.getError)(f),new Error(`Unable to upload transaction: ${f.status}, ${this.lastResponseError}`)}let n=await this.api.post("tx",this.transaction);if(this.lastRequestTimeEnd=Date.now(),this.lastResponseStatus=n.status,!(n.status>=200&&n.status<300))throw this.lastResponseError=(0,BT.getError)(n),new Error(`Unable to upload transaction: ${n.status}, ${this.lastResponseError}`);this.txPosted=!0}};cf.TransactionUploader=OT});var v4=Zt((tXe,rne)=>{"use strict";Be();Pe();Oe();rne.exports={}});var nne=Zt(su=>{"use strict";Be();Pe();Oe();var EOe=su&&su.__createBinding||(Object.create?function(t,e,n,f){f===void 0&&(f=n);var a=Object.getOwnPropertyDescriptor(e,n);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,f,a)}:function(t,e,n,f){f===void 0&&(f=n),t[f]=e[n]}),AOe=su&&su.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),xOe=su&&su.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&EOe(e,t,n);return AOe(e,t),e},ine=su&&su.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(su,"__esModule",{value:!0});var PT=ine(G2()),Jh=ine(p4()),tg=xOe(Yh()),NT=tne();v4();var CT=class{api;crypto;chunks;constructor(e,n,f){this.api=e,this.crypto=n,this.chunks=f}async getTransactionAnchor(){let e=await this.api.get("tx_anchor");if(!e.data.match(/^[a-z0-9_-]{43,}/i)||!e.ok)throw new Error(`Could not getTransactionAnchor. Received: ${e.data}. Status: ${e.status}, ${e.statusText}`);return e.data}async getPrice(e,n){let f=n?`price/${e}/${n}`:`price/${e}`,a=await this.api.get(f);if(!/^\d+$/.test(a.data)||!a.ok)throw new Error(`Could not getPrice. Received: ${a.data}. Status: ${a.status}, ${a.statusText}`);return a.data}async get(e){let n=await this.api.get(`tx/${e}`);if(n.status==200){let f=parseInt(n.data.data_size);if(n.data.format>=2&&f>0&&f<=1024*1024*12){let a=await this.getData(e);return new Jh.default({...n.data,data:a})}return new Jh.default({...n.data,format:n.data.format||1})}throw n.status==404?new PT.default("TX_NOT_FOUND"):n.status==410?new PT.default("TX_FAILED"):new PT.default("TX_INVALID")}fromRaw(e){return new Jh.default(e)}async search(e,n){return this.api.post("arql",{op:"equals",expr1:e,expr2:n}).then(f=>f.data?f.data:[])}getStatus(e){return this.api.get(`tx/${e}/status`).then(n=>n.status==200?{status:200,confirmed:n.data}:{status:n.status,confirmed:null})}async getData(e,n){let f;try{f=await this.chunks.downloadChunkedData(e)}catch(a){console.error(`Error while trying to download chunked data for ${e}`),console.error(a)}if(!f){console.warn(`Falling back to gateway cache for ${e}`);try{let{data:a,ok:c,status:l,statusText:p}=await this.api.get(`/${e}`,{responseType:"arraybuffer"});if(!c)throw new Error("Bad http status code",{cause:{status:l,statusText:p}});f=a}catch(a){console.error(`Error while trying to download contiguous data from gateway cache for ${e}`),console.error(a)}}if(!f)throw new Error(`${e} data was not found!`);return n&&n.decode&&!n.string?f:n&&n.decode&&n.string?tg.bufferToString(f):tg.bufferTob64Url(f)}async sign(e,n,f){let c=typeof n=="object"&&(p=>{let w=!0;return["n","e","d","p","q","dp","dq","qi"].map(m=>!(m in p)&&(w=!1)),w})(n),l=typeof arweaveWallet=="object";if(!c&&!l)throw new Error("No valid JWK or external wallet found to sign transaction.");if(c){e.setOwner(n.n);let p=await e.getSignatureData(),w=await this.crypto.sign(n,p,f),m=await this.crypto.hash(w);e.setSignature({id:tg.bufferTob64Url(m),owner:n.n,signature:tg.bufferTob64Url(w)})}else if(l){try{(await arweaveWallet.getPermissions()).includes("SIGN_TRANSACTION")||await arweaveWallet.connect(["SIGN_TRANSACTION"])}catch{}let p=await arweaveWallet.sign(e,f);e.setSignature({id:p.id,owner:p.owner,reward:p.reward,tags:p.tags,signature:p.signature})}else throw new Error("An error occurred while signing. Check wallet is valid")}async verify(e){let n=await e.getSignatureData(),f=e.get("signature",{decode:!0,string:!1}),a=tg.bufferTob64Url(await this.crypto.hash(f));if(e.id!==a)throw new Error("Invalid transaction signature or ID! The transaction ID doesn't match the expected SHA-256 hash of the signature.");return this.crypto.verify(e.owner,n,f)}async post(e){if(typeof e=="string"?e=new Jh.default(JSON.parse(e)):typeof e.readInt32BE=="function"?e=new Jh.default(JSON.parse(e.toString())):typeof e=="object"&&!(e instanceof Jh.default)&&(e=new Jh.default(e)),!(e instanceof Jh.default))throw new Error("Must be Transaction object");e.chunks||await e.prepareChunks(e.data);let n=await this.getUploader(e,e.data);try{for(;!n.isComplete;)await n.uploadChunk()}catch(f){if(n.lastResponseStatus>0)return{status:n.lastResponseStatus,statusText:n.lastResponseError,data:{error:n.lastResponseError}};throw f}return{status:200,statusText:"OK",data:{}}}async getUploader(e,n){let f;if(n instanceof ArrayBuffer&&(n=new Uint8Array(n)),e instanceof Jh.default){if(n||(n=e.data),!(n instanceof Uint8Array))throw new Error("Data format is invalid");e.chunks||await e.prepareChunks(n),f=new NT.TransactionUploader(this.api,e),(!f.data||f.data.length===0)&&(f.data=n)}else{if(typeof e=="string"&&(e=await NT.TransactionUploader.fromTransactionId(this.api,e)),!n||!(n instanceof Uint8Array))throw new Error("Must provide data when resuming upload");f=await NT.TransactionUploader.fromSerialized(this.api,e,n)}return f}async*upload(e,n){let f=await this.getUploader(e,n);for(;!f.isComplete;)await f.uploadChunk(),yield f;return f}};su.default=CT});var one=Zt(Xh=>{"use strict";Be();Pe();Oe();var ROe=Xh&&Xh.__createBinding||(Object.create?function(t,e,n,f){f===void 0&&(f=n);var a=Object.getOwnPropertyDescriptor(e,n);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,f,a)}:function(t,e,n,f){f===void 0&&(f=n),t[f]=e[n]}),kOe=Xh&&Xh.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),TOe=Xh&&Xh.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&ROe(e,t,n);return kOe(e,t),e};Object.defineProperty(Xh,"__esModule",{value:!0});var ane=TOe(Yh());v4();var LT=class{api;crypto;constructor(e,n){this.api=e,this.crypto=n}getBalance(e){return this.api.get(`wallet/${e}/balance`).then(n=>n.data)}getLastTransactionID(e){return this.api.get(`wallet/${e}/last_tx`).then(n=>n.data)}generate(){return this.crypto.generateJWK()}async jwkToAddress(e){return!e||e==="use_wallet"?this.getAddress():this.getAddress(e)}async getAddress(e){if(!e||e==="use_wallet"){try{await arweaveWallet.connect(["ACCESS_ADDRESS"])}catch{}return arweaveWallet.getActiveAddress()}else return this.ownerToAddress(e.n)}async ownerToAddress(e){return ane.bufferTob64Url(await this.crypto.hash(ane.b64UrlToBuffer(e)))}};Xh.default=LT});var fne=Zt(fu=>{"use strict";Be();Pe();Oe();var IOe=fu&&fu.__createBinding||(Object.create?function(t,e,n,f){f===void 0&&(f=n);var a=Object.getOwnPropertyDescriptor(e,n);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,f,a)}:function(t,e,n,f){f===void 0&&(f=n),t[f]=e[n]}),BOe=fu&&fu.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),OOe=fu&&fu.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&IOe(e,t,n);return BOe(e,t),e};Object.defineProperty(fu,"__esModule",{value:!0});fu.SiloResource=void 0;var sne=OOe(Yh()),DT=class{api;crypto;transactions;constructor(e,n,f){this.api=e,this.crypto=n,this.transactions=f}async get(e){if(!e)throw new Error("No Silo URI specified");let n=await this.parseUri(e),f=await this.transactions.search("Silo-Name",n.getAccessKey());if(f.length==0)throw new Error(`No data could be found for the Silo URI: ${e}`);let a=await this.transactions.get(f[0]);if(!a)throw new Error(`No data could be found for the Silo URI: ${e}`);let c=a.get("data",{decode:!0,string:!1});return this.crypto.decrypt(c,n.getEncryptionKey())}async readTransactionData(e,n){if(!n)throw new Error("No Silo URI specified");let f=await this.parseUri(n),a=e.get("data",{decode:!0,string:!1});return this.crypto.decrypt(a,f.getEncryptionKey())}async parseUri(e){let n=e.match(/^([a-z0-9-_]+)\.([0-9]+)/i);if(!n)throw new Error("Invalid Silo name, must be a name in the format of [a-z0-9]+.[0-9]+, e.g. 'bubble.7'");let f=n[1],a=Math.pow(2,parseInt(n[2])),c=await this.hash(sne.stringToBuffer(f),a),l=sne.bufferTob64(c.slice(0,15)),p=await this.hash(c.slice(16,31),1);return new m4(e,l,p)}async hash(e,n){let f=await this.crypto.hash(e);for(let a=0;a<n-1;a++)f=await this.crypto.hash(f);return f}};fu.default=DT;var m4=class{uri;accessKey;encryptionKey;constructor(e,n,f){this.uri=e,this.accessKey=n,this.encryptionKey=f}getUri(){return this.uri}getAccessKey(){return this.accessKey}getEncryptionKey(){return this.encryptionKey}};fu.SiloResource=m4});var hne=Zt(Qh=>{"use strict";Be();Pe();Oe();var POe=Qh&&Qh.__createBinding||(Object.create?function(t,e,n,f){f===void 0&&(f=n);var a=Object.getOwnPropertyDescriptor(e,n);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,f,a)}:function(t,e,n,f){f===void 0&&(f=n),t[f]=e[n]}),NOe=Qh&&Qh.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),COe=Qh&&Qh.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&POe(e,t,n);return NOe(e,t),e};Object.defineProperty(Qh,"__esModule",{value:!0});var une=G2(),LOe=COe(Yh()),$T=class{api;constructor(e){this.api=e}async getTransactionOffset(e){let n=await this.api.get(`tx/${e}/offset`);if(n.status===200)return n.data;throw new Error(`Unable to get transaction offset: ${(0,une.getError)(n)}`)}async getChunk(e){let n=await this.api.get(`chunk/${e}`);if(n.status===200)return n.data;throw new Error(`Unable to get chunk: ${(0,une.getError)(n)}`)}async getChunkData(e){let n=await this.getChunk(e);return LOe.b64UrlToBuffer(n.chunk)}firstChunkOffset(e){return parseInt(e.offset)-parseInt(e.size)+1}async downloadChunkedData(e){let n=await this.getTransactionOffset(e),f=parseInt(n.size),c=parseInt(n.offset)-f+1,l=new Uint8Array(f),p=0;for(;p<f;){this.api.config.logging&&console.log(`[chunk] ${p}/${f}`);let w;try{w=await this.getChunkData(c+p)}catch{console.error(`[chunk] Failed to fetch chunk at offset ${c+p}`),console.error("[chunk] This could indicate that the chunk wasn't uploaded or hasn't yet seeded properly to a particular gateway/node")}if(w)l.set(w,p),p+=w.length;else throw new Error(`Couldn't complete data download at ${p}/${f}`)}return l}};Qh.default=$T});var cne=Zt(rg=>{"use strict";Be();Pe();Oe();var DOe=rg&&rg.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(rg,"__esModule",{value:!0});var lne=DOe(G2());v4();var UT=class t{api;network;static HASH_ENDPOINT="block/hash/";static HEIGHT_ENDPOINT="block/height/";constructor(e,n){this.api=e,this.network=n}async get(e){let n=await this.api.get(`${t.HASH_ENDPOINT}${e}`);if(n.status===200)return n.data;throw n.status===404?new lne.default("BLOCK_NOT_FOUND"):new Error(`Error while loading block data: ${n}`)}async getByHeight(e){let n=await this.api.get(`${t.HEIGHT_ENDPOINT}${e}`);if(n.status===200)return n.data;throw n.status===404?new lne.default("BLOCK_NOT_FOUND"):new Error(`Error while loading block data: ${n}`)}async getCurrent(){let{current:e}=await this.network.getInfo();return await this.get(e)}};rg.default=UT});var h4=Zt(uu=>{"use strict";Be();Pe();Oe();var $Oe=uu&&uu.__createBinding||(Object.create?function(t,e,n,f){f===void 0&&(f=n);var a=Object.getOwnPropertyDescriptor(e,n);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,f,a)}:function(t,e,n,f){f===void 0&&(f=n),t[f]=e[n]}),UOe=uu&&uu.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),qOe=uu&&uu.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&$Oe(e,t,n);return UOe(e,t),e},eh=uu&&uu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(uu,"__esModule",{value:!0});var jOe=eh(LZ()),FOe=eh(DZ()),zOe=eh(Oie()),HOe=eh(Pie()),ZOe=eh(nne()),KOe=eh(one()),dne=eh(p4()),ig=qOe(Yh()),WOe=eh(fne()),VOe=eh(hne()),GOe=eh(cne()),qT=class t{api;wallets;transactions;network;blocks;ar;silo;chunks;static init;static crypto=new zOe.default;static utils=ig;constructor(e){this.api=new FOe.default(e),this.wallets=new KOe.default(this.api,t.crypto),this.chunks=new VOe.default(this.api),this.transactions=new ZOe.default(this.api,t.crypto,this.chunks),this.silo=new WOe.default(this.api,this.crypto,this.transactions),this.network=new HOe.default(this.api),this.blocks=new GOe.default(this.api,this.network),this.ar=new jOe.default}get crypto(){return t.crypto}get utils(){return t.utils}getConfig(){return{api:this.api.getConfig(),crypto:null}}async createTransaction(e,n){let f={};if(Object.assign(f,e),!e.data&&!(e.target&&e.quantity))throw new Error("A new Arweave transaction must have a 'data' value, or 'target' and 'quantity' values.");if(e.owner==null&&n&&n!=="use_wallet"&&(f.owner=n.n),e.last_tx==null&&(f.last_tx=await this.transactions.getTransactionAnchor()),typeof e.data=="string"&&(e.data=ig.stringToBuffer(e.data)),e.data instanceof ArrayBuffer&&(e.data=new Uint8Array(e.data)),e.data&&!(e.data instanceof Uint8Array))throw new Error("Expected data to be a string, Uint8Array or ArrayBuffer");if(e.reward==null){let c=e.data?e.data.byteLength:0;f.reward=await this.transactions.getPrice(c,f.target)}f.data_root="",f.data_size=e.data?e.data.byteLength.toString():"0",f.data=e.data||new Uint8Array(0);let a=new dne.default(f);return await a.getSignatureData(),a}async createSiloTransaction(e,n,f){let a={};if(Object.assign(a,e),!e.data)throw new Error("Silo transactions must have a 'data' value");if(!f)throw new Error("No Silo URI specified.");if(e.target||e.quantity)throw new Error("Silo transactions can only be used for storing data, sending AR to other wallets isn't supported.");if(e.owner==null){if(!n||!n.n)throw new Error("A new Arweave transaction must either have an 'owner' attribute, or you must provide the jwk parameter.");a.owner=n.n}e.last_tx==null&&(a.last_tx=await this.transactions.getTransactionAnchor());let c=await this.silo.parseUri(f);if(typeof e.data=="string"){let p=await this.crypto.encrypt(ig.stringToBuffer(e.data),c.getEncryptionKey());a.reward=await this.transactions.getPrice(p.byteLength),a.data=ig.bufferTob64Url(p)}if(e.data instanceof Uint8Array){let p=await this.crypto.encrypt(e.data,c.getEncryptionKey());a.reward=await this.transactions.getPrice(p.byteLength),a.data=ig.bufferTob64Url(p)}let l=new dne.default(a);return l.addTag("Silo-Name",c.getAccessKey()),l.addTag("Silo-Version","0.1.0"),l}arql(e){return this.api.post("/arql",e).then(n=>n.data||[])}};uu.default=qT});var vne=Zt((FT,pne)=>{"use strict";Be();Pe();Oe();var YOe=FT&&FT.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},jT=YOe(h4());jT.default.init=function(t={}){return new jT.default(t)};pne.exports=jT.default});var nae=Zt((_ot,iae)=>{"use strict";Be();Pe();Oe();var lNe=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);iae.exports=t=>!lNe.has(t&&t.code)});var dae=Zt((Fot,_I)=>{"use strict";Be();Pe();Oe();var MNe=Object.prototype.hasOwnProperty,yo="~";function mg(){}Object.create&&(mg.prototype=Object.create(null),new mg().__proto__||(yo=!1));function SNe(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function cae(t,e,n,f,a){if(typeof n!="function")throw new TypeError("The listener must be a function");var c=new SNe(n,f||t,a),l=yo?yo+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],c]:t._events[l].push(c):(t._events[l]=c,t._eventsCount++),t}function U4(t,e){--t._eventsCount===0?t._events=new mg:delete t._events[e]}function io(){this._events=new mg,this._eventsCount=0}io.prototype.eventNames=function(){var e=[],n,f;if(this._eventsCount===0)return e;for(f in n=this._events)MNe.call(n,f)&&e.push(yo?f.slice(1):f);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(n)):e};io.prototype.listeners=function(e){var n=yo?yo+e:e,f=this._events[n];if(!f)return[];if(f.fn)return[f.fn];for(var a=0,c=f.length,l=new Array(c);a<c;a++)l[a]=f[a].fn;return l};io.prototype.listenerCount=function(e){var n=yo?yo+e:e,f=this._events[n];return f?f.fn?1:f.length:0};io.prototype.emit=function(e,n,f,a,c,l){var p=yo?yo+e:e;if(!this._events[p])return!1;var w=this._events[p],m=arguments.length,y,g;if(w.fn){switch(w.once&&this.removeListener(e,w.fn,void 0,!0),m){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,n),!0;case 3:return w.fn.call(w.context,n,f),!0;case 4:return w.fn.call(w.context,n,f,a),!0;case 5:return w.fn.call(w.context,n,f,a,c),!0;case 6:return w.fn.call(w.context,n,f,a,c,l),!0}for(g=1,y=new Array(m-1);g<m;g++)y[g-1]=arguments[g];w.fn.apply(w.context,y)}else{var S=w.length,x;for(g=0;g<S;g++)switch(w[g].once&&this.removeListener(e,w[g].fn,void 0,!0),m){case 1:w[g].fn.call(w[g].context);break;case 2:w[g].fn.call(w[g].context,n);break;case 3:w[g].fn.call(w[g].context,n,f);break;case 4:w[g].fn.call(w[g].context,n,f,a);break;default:if(!y)for(x=1,y=new Array(m-1);x<m;x++)y[x-1]=arguments[x];w[g].fn.apply(w[g].context,y)}}return!0};io.prototype.on=function(e,n,f){return cae(this,e,n,f,!1)};io.prototype.once=function(e,n,f){return cae(this,e,n,f,!0)};io.prototype.removeListener=function(e,n,f,a){var c=yo?yo+e:e;if(!this._events[c])return this;if(!n)return U4(this,c),this;var l=this._events[c];if(l.fn)l.fn===n&&(!a||l.once)&&(!f||l.context===f)&&U4(this,c);else{for(var p=0,w=[],m=l.length;p<m;p++)(l[p].fn!==n||a&&!l[p].once||f&&l[p].context!==f)&&w.push(l[p]);w.length?this._events[c]=w.length===1?w[0]:w:U4(this,c)}return this};io.prototype.removeAllListeners=function(e){var n;return e?(n=yo?yo+e:e,this._events[n]&&U4(this,n)):(this._events=new mg,this._eventsCount=0),this};io.prototype.off=io.prototype.removeListener;io.prototype.addListener=io.prototype.on;io.prefixed=yo;io.EventEmitter=io;typeof _I<"u"&&(_I.exports=io)});Be();Pe();Oe();var gae=Rd(tw(),1);Be();Pe();Oe();Be();Pe();Oe();Be();Pe();Oe();Be();Pe();Oe();var YP=new RegExp("^[a-zA-Z0-9_-]{43}$"),YNe=new RegExp("^(?:(?!-)[A-Za-z0-9-]{1,63}(?<!-)\\.)+[A-Za-z]{1,63}$"),JNe=new RegExp("^[0-9]{12},[0-9]{13},[a-fA-F0-9]{64}$"),XNe=gt.env.ARNS_REGISTRY_TX??"bLAgYxAdX2Ry-nt6aH2ixgvJXbpsEYm28NgJgyqfs-U",QNe="_NctcA2sRy1-J4OmIQZbYFPM17piNcbdBPH2ncX2RL8",Hoe="GaQrvEMKBpkjofgnBi_B3IgIDmY_XYelVLB6GcRGrHc",eCe=Hoe,Id="agYcCFJtrMG6cqMuZfskIkFTGvUPddICmtQSBIoPdiA",wy="i_le_yKKPVstLTDSmkHRqf-wYphMnwB9OhleiTgMkWc",rw=1e6,JP="cbn0KKrBZH7hdNkNokuXLtGryrWM--PjSTBqIzw9Kkk",iw="BVZZ0_ME8uq3zChN6bA6WsPmFhVpGDJ7Rb7l4qoGIDM",XP="_GQ33BkPtZrqxA84vM8Zk-N2aO0toNNu_C-l-rawrBA";var nw=class t{constructor(e){this.positiveFiniteInteger=e;if(!Number.isFinite(this.positiveFiniteInteger)||!Number.isInteger(this.positiveFiniteInteger)||this.positiveFiniteInteger<0)throw new Error(`Number must be a non-negative integer value! ${e}`)}[Symbol.toPrimitive](e){return e==="string"&&this.toString(),this.positiveFiniteInteger}plus(e){return new t(this.positiveFiniteInteger+e.positiveFiniteInteger)}minus(e){return new t(this.positiveFiniteInteger-e.positiveFiniteInteger)}isGreaterThan(e){return this.positiveFiniteInteger>e.positiveFiniteInteger}isGreaterThanOrEqualTo(e){return this.positiveFiniteInteger>=e.positiveFiniteInteger}isLessThan(e){return this.positiveFiniteInteger<e.positiveFiniteInteger}isLessThanOrEqualTo(e){return this.positiveFiniteInteger<=e.positiveFiniteInteger}toString(){return`${this.positiveFiniteInteger}`}valueOf(){return this.positiveFiniteInteger}toJSON(){return this.positiveFiniteInteger}equals(e){return this.positiveFiniteInteger===e.positiveFiniteInteger}},aw=class{value;constructor(e){if(!Number.isFinite(e)||e<0)throw new Error("IOToken must be a non-negative finite number");this.value=+e.toFixed(6)}valueOf(){return this.value}toMIO(){return new ow(Math.floor(this.value*rw))}toString(){return`${this.value}`}},ow=class t extends nw{constructor(e){super(e)}multiply(e){let n=Math.floor(this.valueOf()*e.valueOf());return new t(n)}divide(e){if(e.valueOf()===0)throw new Error("Cannot divide by zero");let n=Math.floor(this.valueOf()/e.valueOf());return new t(n)}plus(e){let n=super.plus(e);return new t(n.valueOf())}minus(e){let n=super.minus(e);return new t(n.valueOf())}toIO(){return new aw(this.valueOf()/rw)}};Be();Pe();Oe();Be();Pe();Oe();var QP=t=>YP.test(t);function lCe(t){return t!==void 0&&!isNaN(parseInt(t.toString()))}function fh(t){return"process"in t}function uh(t){return"processId"in t&&typeof t.processId=="string"&&QP(t.processId)===!0}function gCe(t){return t.type==="lease"}Be();Pe();Oe();Be();Pe();Oe();var wf=class extends Error{constructor(e){super(e),this.name=this.constructor.name}},eN=class extends wf{},tN=class extends wf{},rN=class extends wf{constructor(e,n){super(`Failed request: ${e}: ${n}`)}},iN=class extends wf{},_y=class extends wf{},nN=class extends wf{constructor(){super("Invalid signer. Please provide a valid signer to interact with the contract.")}},gu=class extends wf{constructor(){super("Invalid contract configuration")}},aN=class extends wf{constructor(){super("Invalid process configuration")}},oN=class extends wf{};Be();Pe();Oe();var Pf=Rd(lz(),1);Be();Pe();Oe();var h1="2.2.0-alpha.4";var Nf=class t{logger;silent=!1;static default=new t;constructor({level:e="info"}={}){e==="none"&&(this.silent=!0),typeof window<"u"?this.logger=console:this.logger=(0,Pf.createLogger)({level:e,silent:this.silent,defaultMeta:{name:"ar-io-sdk",version:h1},format:Pf.format.combine(Pf.format.timestamp(),Pf.format.json()),transports:[new Pf.transports.Console({format:Pf.format.combine(Pf.format.timestamp(),Pf.format.json())})]})}info(e,...n){this.silent||this.logger.info(e,...n)}warn(e,...n){this.silent||this.logger.warn(e,...n)}error(e,...n){this.silent||this.logger.error(e,...n)}debug(e,...n){this.silent||this.logger.debug(e,...n)}setLogLevel(e){this.silent=e==="none","silent"in this.logger&&(this.logger.silent=e==="none"),"level"in this.logger&&(this.logger.level=e)}};Be();Pe();Oe();Be();Pe();Oe();Be();Pe();Oe();var Rbe=Object.create,rM=Object.defineProperty,kbe=Object.getOwnPropertyDescriptor,Dz=Object.getOwnPropertyNames,Tbe=Object.getPrototypeOf,Ibe=Object.prototype.hasOwnProperty,Go=(t,e)=>function(){return e||(0,t[Dz(t)[0]])((e={exports:{}}).exports,e),e.exports},$z=(t,e)=>{for(var n in e)rM(t,n,{get:e[n],enumerable:!0})},Bbe=(t,e,n,f)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Dz(e))!Ibe.call(t,a)&&a!==n&&rM(t,a,{get:()=>e[a],enumerable:!(f=kbe(e,a))||f.enumerable});return t},iM=(t,e,n)=>(n=t!=null?Rbe(Tbe(t)):{},Bbe(e||!t||!t.__esModule?rM(n,"default",{value:t,enumerable:!0}):n,t)),Obe=Go({"node_modules/obliterator/iterator.js"(t,e){function n(f){if(typeof f!="function")throw new Error("obliterator/iterator: expecting a function!");this.next=f}typeof Symbol<"u"&&(n.prototype[Symbol.iterator]=function(){return this}),n.of=function(){var f=arguments,a=f.length,c=0;return new n(function(){return c>=a?{done:!0}:{done:!1,value:f[c++]}})},n.empty=function(){var f=new n(function(){return{done:!0}});return f},n.fromSequence=function(f){var a=0,c=f.length;return new n(function(){return a>=c?{done:!0}:{done:!1,value:f[a++]}})},n.is=function(f){return f instanceof n?!0:typeof f=="object"&&f!==null&&typeof f.next=="function"},e.exports=n}}),Pbe=Go({"node_modules/obliterator/support.js"(t){t.ARRAY_BUFFER_SUPPORT=typeof ArrayBuffer<"u",t.SYMBOL_SUPPORT=typeof Symbol<"u"}}),nM=Go({"node_modules/obliterator/foreach.js"(t,e){var n=Pbe(),f=n.ARRAY_BUFFER_SUPPORT,a=n.SYMBOL_SUPPORT;e.exports=function(l,p){var w,m,y,g,S;if(!l)throw new Error("obliterator/forEach: invalid iterable.");if(typeof p!="function")throw new Error("obliterator/forEach: expecting a callback.");if(Array.isArray(l)||f&&ArrayBuffer.isView(l)||typeof l=="string"||l.toString()==="[object Arguments]"){for(y=0,g=l.length;y<g;y++)p(l[y],y);return}if(typeof l.forEach=="function"){l.forEach(p);return}if(a&&Symbol.iterator in l&&typeof l.next!="function"&&(l=l[Symbol.iterator]()),typeof l.next=="function"){for(w=l,y=0;S=w.next(),S.done!==!0;)p(S.value,y),y++;return}for(m in l)l.hasOwnProperty(m)&&p(l[m],m)}}}),aM=Go({"node_modules/mnemonist/utils/typed-arrays.js"(t){var e=Math.pow(2,8)-1,n=Math.pow(2,16)-1,f=Math.pow(2,32)-1,a=Math.pow(2,7)-1,c=Math.pow(2,15)-1,l=Math.pow(2,31)-1;t.getPointerArray=function(w){var m=w-1;if(m<=e)return Uint8Array;if(m<=n)return Uint16Array;if(m<=f)return Uint32Array;throw new Error("mnemonist: Pointer Array of size > 4294967295 is not supported.")},t.getSignedPointerArray=function(w){var m=w-1;return m<=a?Int8Array:m<=c?Int16Array:m<=l?Int32Array:Float64Array},t.getNumberType=function(w){return w===(w|0)?Math.sign(w)===-1?w<=127&&w>=-128?Int8Array:w<=32767&&w>=-32768?Int16Array:Int32Array:w<=255?Uint8Array:w<=65535?Uint16Array:Uint32Array:Float64Array};var p={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};t.getMinimalRepresentation=function(w,m){var y=null,g=0,S,x,A,T,I;for(T=0,I=w.length;T<I;T++)A=m?m(w[T]):w[T],x=t.getNumberType(A),S=p[x.name],S>g&&(g=S,y=x);return y},t.isTypedArray=function(w){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView(w)},t.concat=function(){var w=0,m,y,g;for(m=0,g=arguments.length;m<g;m++)w+=arguments[m].length;var S=new arguments[0].constructor(w);for(m=0,y=0;m<g;m++)S.set(arguments[m],y),y+=arguments[m].length;return S},t.indices=function(w){for(var m=t.getPointerArray(w),y=new m(w),g=0;g<w;g++)y[g]=g;return y}}}),Uz=Go({"node_modules/mnemonist/utils/iterables.js"(t){var e=nM(),n=aM();function f(p){return Array.isArray(p)||n.isTypedArray(p)}function a(p){if(typeof p.length=="number")return p.length;if(typeof p.size=="number")return p.size}function c(p){var w=a(p),m=typeof w=="number"?new Array(w):[],y=0;return e(p,function(g){m[y++]=g}),m}function l(p){var w=a(p),m=typeof w=="number"?n.getPointerArray(w):Array,y=typeof w=="number"?new Array(w):[],g=typeof w=="number"?new m(w):[],S=0;return e(p,function(x){y[S]=x,g[S]=S++}),[y,g]}t.isArrayLike=f,t.guessLength=a,t.toArray=c,t.toArrayWithIndices=l}}),Nbe=Go({"node_modules/mnemonist/lru-cache.js"(t,e){var n=Obe(),f=nM(),a=aM(),c=Uz();function l(p,w,m){if(arguments.length<2&&(m=p,p=null,w=null),this.capacity=m,typeof this.capacity!="number"||this.capacity<=0)throw new Error("mnemonist/lru-cache: capacity should be positive number.");if(!isFinite(this.capacity)||Math.floor(this.capacity)!==this.capacity)throw new Error("mnemonist/lru-cache: capacity should be a finite positive integer.");var y=a.getPointerArray(m);this.forward=new y(m),this.backward=new y(m),this.K=typeof p=="function"?new p(m):new Array(m),this.V=typeof w=="function"?new w(m):new Array(m),this.size=0,this.head=0,this.tail=0,this.items={}}l.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items={}},l.prototype.splayOnTop=function(p){var w=this.head;if(this.head===p)return this;var m=this.backward[p],y=this.forward[p];return this.tail===p?this.tail=m:this.backward[y]=m,this.forward[m]=y,this.backward[w]=p,this.head=p,this.forward[p]=w,this},l.prototype.set=function(p,w){var m=this.items[p];if(typeof m<"u"){this.splayOnTop(m),this.V[m]=w;return}this.size<this.capacity?m=this.size++:(m=this.tail,this.tail=this.backward[m],delete this.items[this.K[m]]),this.items[p]=m,this.K[m]=p,this.V[m]=w,this.forward[m]=this.head,this.backward[this.head]=m,this.head=m},l.prototype.setpop=function(p,w){var m=null,y=null,g=this.items[p];return typeof g<"u"?(this.splayOnTop(g),m=this.V[g],this.V[g]=w,{evicted:!1,key:p,value:m}):(this.size<this.capacity?g=this.size++:(g=this.tail,this.tail=this.backward[g],m=this.V[g],y=this.K[g],delete this.items[y]),this.items[p]=g,this.K[g]=p,this.V[g]=w,this.forward[g]=this.head,this.backward[this.head]=g,this.head=g,y?{evicted:!0,key:y,value:m}:null)},l.prototype.has=function(p){return p in this.items},l.prototype.get=function(p){var w=this.items[p];if(!(typeof w>"u"))return this.splayOnTop(w),this.V[w]},l.prototype.peek=function(p){var w=this.items[p];if(!(typeof w>"u"))return this.V[w]},l.prototype.forEach=function(p,w){w=arguments.length>1?w:this;for(var m=0,y=this.size,g=this.head,S=this.K,x=this.V,A=this.forward;m<y;)p.call(w,x[g],S[g],this),g=A[g],m++},l.prototype.keys=function(){var p=0,w=this.size,m=this.head,y=this.K,g=this.forward;return new n(function(){if(p>=w)return{done:!0};var S=y[m];return p++,p<w&&(m=g[m]),{done:!1,value:S}})},l.prototype.values=function(){var p=0,w=this.size,m=this.head,y=this.V,g=this.forward;return new n(function(){if(p>=w)return{done:!0};var S=y[m];return p++,p<w&&(m=g[m]),{done:!1,value:S}})},l.prototype.entries=function(){var p=0,w=this.size,m=this.head,y=this.K,g=this.V,S=this.forward;return new n(function(){if(p>=w)return{done:!0};var x=y[m],A=g[m];return p++,p<w&&(m=S[m]),{done:!1,value:[x,A]}})},typeof Symbol<"u"&&(l.prototype[Symbol.iterator]=l.prototype.entries),l.prototype.inspect=function(){for(var p=new Map,w=this.entries(),m;m=w.next(),!m.done;)p.set(m.value[0],m.value[1]);return Object.defineProperty(p,"constructor",{value:l,enumerable:!1}),p},typeof Symbol<"u"&&(l.prototype[Symbol.for("nodejs.util.inspect.custom")]=l.prototype.inspect),l.from=function(p,w,m,y){if(arguments.length<2){if(y=c.guessLength(p),typeof y!="number")throw new Error("mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.")}else arguments.length===2&&(y=w,w=null,m=null);var g=new l(w,m,y);return f(p,function(S,x){g.set(x,S)}),g},e.exports=l}}),Cbe=Go({"node_modules/mnemonist/lru-map.js"(t,e){var n=Nbe(),f=nM(),a=aM(),c=Uz();function l(p,w,m){if(arguments.length<2&&(m=p,p=null,w=null),this.capacity=m,typeof this.capacity!="number"||this.capacity<=0)throw new Error("mnemonist/lru-map: capacity should be positive number.");if(!isFinite(this.capacity)||Math.floor(this.capacity)!==this.capacity)throw new Error("mnemonist/lru-map: capacity should be a finite positive integer.");var y=a.getPointerArray(m);this.forward=new y(m),this.backward=new y(m),this.K=typeof p=="function"?new p(m):new Array(m),this.V=typeof w=="function"?new w(m):new Array(m),this.size=0,this.head=0,this.tail=0,this.items=new Map}l.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items.clear()},l.prototype.set=function(p,w){var m=this.items.get(p);if(typeof m<"u"){this.splayOnTop(m),this.V[m]=w;return}this.size<this.capacity?m=this.size++:(m=this.tail,this.tail=this.backward[m],this.items.delete(this.K[m])),this.items.set(p,m),this.K[m]=p,this.V[m]=w,this.forward[m]=this.head,this.backward[this.head]=m,this.head=m},l.prototype.setpop=function(p,w){var m=null,y=null,g=this.items.get(p);return typeof g<"u"?(this.splayOnTop(g),m=this.V[g],this.V[g]=w,{evicted:!1,key:p,value:m}):(this.size<this.capacity?g=this.size++:(g=this.tail,this.tail=this.backward[g],m=this.V[g],y=this.K[g],this.items.delete(y)),this.items.set(p,g),this.K[g]=p,this.V[g]=w,this.forward[g]=this.head,this.backward[this.head]=g,this.head=g,y?{evicted:!0,key:y,value:m}:null)},l.prototype.has=function(p){return this.items.has(p)},l.prototype.get=function(p){var w=this.items.get(p);if(!(typeof w>"u"))return this.splayOnTop(w),this.V[w]},l.prototype.peek=function(p){var w=this.items.get(p);if(!(typeof w>"u"))return this.V[w]},l.prototype.splayOnTop=n.prototype.splayOnTop,l.prototype.forEach=n.prototype.forEach,l.prototype.keys=n.prototype.keys,l.prototype.values=n.prototype.values,l.prototype.entries=n.prototype.entries,typeof Symbol<"u"&&(l.prototype[Symbol.iterator]=l.prototype.entries),l.prototype.inspect=n.prototype.inspect,l.from=function(p,w,m,y){if(arguments.length<2){if(y=c.guessLength(p),typeof y!="number")throw new Error("mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.")}else arguments.length===2&&(y=w,w=null,m=null);var g=new l(w,m,y);return f(p,function(S,x){g.set(x,S)}),g},e.exports=l}}),Lbe=Go({"node_modules/ms/index.js"(t,e){var n=1e3,f=n*60,a=f*60,c=a*24,l=c*7,p=c*365.25;e.exports=function(S,x){x=x||{};var A=typeof S;if(A==="string"&&S.length>0)return w(S);if(A==="number"&&isFinite(S))return x.long?y(S):m(S);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(S))};function w(S){if(S=String(S),!(S.length>100)){var x=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(S);if(x){var A=parseFloat(x[1]),T=(x[2]||"ms").toLowerCase();switch(T){case"years":case"year":case"yrs":case"yr":case"y":return A*p;case"weeks":case"week":case"w":return A*l;case"days":case"day":case"d":return A*c;case"hours":case"hour":case"hrs":case"hr":case"h":return A*a;case"minutes":case"minute":case"mins":case"min":case"m":return A*f;case"seconds":case"second":case"secs":case"sec":case"s":return A*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return A;default:return}}}}function m(S){var x=Math.abs(S);return x>=c?Math.round(S/c)+"d":x>=a?Math.round(S/a)+"h":x>=f?Math.round(S/f)+"m":x>=n?Math.round(S/n)+"s":S+"ms"}function y(S){var x=Math.abs(S);return x>=c?g(S,x,c,"day"):x>=a?g(S,x,a,"hour"):x>=f?g(S,x,f,"minute"):x>=n?g(S,x,n,"second"):S+" ms"}function g(S,x,A,T){var I=x>=A*1.5;return Math.round(S/A)+" "+T+(I?"s":"")}}}),Dbe=Go({"node_modules/debug/src/common.js"(t,e){function n(f){c.debug=c,c.default=c,c.coerce=g,c.disable=w,c.enable=p,c.enabled=m,c.humanize=Lbe(),c.destroy=S,Object.keys(f).forEach(x=>{c[x]=f[x]}),c.names=[],c.skips=[],c.formatters={};function a(x){let A=0;for(let T=0;T<x.length;T++)A=(A<<5)-A+x.charCodeAt(T),A|=0;return c.colors[Math.abs(A)%c.colors.length]}c.selectColor=a;function c(x){let A,T=null,I,B;function P(...C){if(!P.enabled)return;let q=P,Z=Number(new Date),G=Z-(A||Z);q.diff=G,q.prev=A,q.curr=Z,A=Z,C[0]=c.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");let j=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(J,E)=>{if(J==="%%")return"%";j++;let i=c.formatters[E];if(typeof i=="function"){let s=C[j];J=i.call(q,s),C.splice(j,1),j--}return J}),c.formatArgs.call(q,C),(q.log||c.log).apply(q,C)}return P.namespace=x,P.useColors=c.useColors(),P.color=c.selectColor(x),P.extend=l,P.destroy=c.destroy,Object.defineProperty(P,"enabled",{enumerable:!0,configurable:!1,get:()=>T!==null?T:(I!==c.namespaces&&(I=c.namespaces,B=c.enabled(x)),B),set:C=>{T=C}}),typeof c.init=="function"&&c.init(P),P}function l(x,A){let T=c(this.namespace+(typeof A>"u"?":":A)+x);return T.log=this.log,T}function p(x){c.save(x),c.namespaces=x,c.names=[],c.skips=[];let A,T=(typeof x=="string"?x:"").split(/[\s,]+/),I=T.length;for(A=0;A<I;A++)T[A]&&(x=T[A].replace(/\*/g,".*?"),x[0]==="-"?c.skips.push(new RegExp("^"+x.slice(1)+"$")):c.names.push(new RegExp("^"+x+"$")))}function w(){let x=[...c.names.map(y),...c.skips.map(y).map(A=>"-"+A)].join(",");return c.enable(""),x}function m(x){if(x[x.length-1]==="*")return!0;let A,T;for(A=0,T=c.skips.length;A<T;A++)if(c.skips[A].test(x))return!1;for(A=0,T=c.names.length;A<T;A++)if(c.names[A].test(x))return!0;return!1}function y(x){return x.toString().substring(2,x.toString().length-2).replace(/\.\*\?$/,"*")}function g(x){return x instanceof Error?x.stack||x.message:x}function S(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return c.enable(c.load()),c}e.exports=n}}),$be=Go({"node_modules/debug/src/browser.js"(t,e){t.formatArgs=f,t.save=a,t.load=c,t.useColors=n,t.storage=l(),t.destroy=(()=>{let w=!1;return()=>{w||(w=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function f(w){if(w[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+w[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let m="color: "+this.color;w.splice(1,0,m,"color: inherit");let y=0,g=0;w[0].replace(/%[a-zA-Z%]/g,S=>{S!=="%%"&&(y++,S==="%c"&&(g=y))}),w.splice(g,0,m)}t.log=console.debug||console.log||(()=>{});function a(w){try{w?t.storage.setItem("debug",w):t.storage.removeItem("debug")}catch{}}function c(){let w;try{w=t.storage.getItem("debug")}catch{}return!w&&typeof gt<"u"&&"env"in gt&&(w=gt.env.DEBUG),w}function l(){try{return localStorage}catch{}}e.exports=Dbe()(t);var{formatters:p}=e.exports;p.j=function(w){try{return JSON.stringify(w)}catch(m){return"[UnexpectedJSONParseError]: "+m.message}}}}),Ube=Go({"node_modules/base64-js/index.js"(t){"use strict";t.byteLength=w,t.toByteArray=y,t.fromByteArray=x;var e=[],n=[],f=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(c=0,l=a.length;c<l;++c)e[c]=a[c],n[a.charCodeAt(c)]=c;var c,l;n[45]=62,n[95]=63;function p(A){var T=A.length;if(T%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var I=A.indexOf("=");I===-1&&(I=T);var B=I===T?0:4-I%4;return[I,B]}function w(A){var T=p(A),I=T[0],B=T[1];return(I+B)*3/4-B}function m(A,T,I){return(T+I)*3/4-I}function y(A){var T,I=p(A),B=I[0],P=I[1],C=new f(m(A,B,P)),q=0,Z=P>0?B-4:B,G;for(G=0;G<Z;G+=4)T=n[A.charCodeAt(G)]<<18|n[A.charCodeAt(G+1)]<<12|n[A.charCodeAt(G+2)]<<6|n[A.charCodeAt(G+3)],C[q++]=T>>16&255,C[q++]=T>>8&255,C[q++]=T&255;return P===2&&(T=n[A.charCodeAt(G)]<<2|n[A.charCodeAt(G+1)]>>4,C[q++]=T&255),P===1&&(T=n[A.charCodeAt(G)]<<10|n[A.charCodeAt(G+1)]<<4|n[A.charCodeAt(G+2)]>>2,C[q++]=T>>8&255,C[q++]=T&255),C}function g(A){return e[A>>18&63]+e[A>>12&63]+e[A>>6&63]+e[A&63]}function S(A,T,I){for(var B,P=[],C=T;C<I;C+=3)B=(A[C]<<16&16711680)+(A[C+1]<<8&65280)+(A[C+2]&255),P.push(g(B));return P.join("")}function x(A){for(var T,I=A.length,B=I%3,P=[],C=16383,q=0,Z=I-B;q<Z;q+=C)P.push(S(A,q,q+C>Z?Z:q+C));return B===1?(T=A[I-1],P.push(e[T>>2]+e[T<<4&63]+"==")):B===2&&(T=(A[I-2]<<8)+A[I-1],P.push(e[T>>10]+e[T>>4&63]+e[T<<2&63]+"=")),P.join("")}}}),qbe=Go({"node_modules/ieee754/index.js"(t){t.read=function(e,n,f,a,c){var l,p,w=c*8-a-1,m=(1<<w)-1,y=m>>1,g=-7,S=f?c-1:0,x=f?-1:1,A=e[n+S];for(S+=x,l=A&(1<<-g)-1,A>>=-g,g+=w;g>0;l=l*256+e[n+S],S+=x,g-=8);for(p=l&(1<<-g)-1,l>>=-g,g+=a;g>0;p=p*256+e[n+S],S+=x,g-=8);if(l===0)l=1-y;else{if(l===m)return p?NaN:(A?-1:1)*(1/0);p=p+Math.pow(2,a),l=l-y}return(A?-1:1)*p*Math.pow(2,l-a)},t.write=function(e,n,f,a,c,l){var p,w,m,y=l*8-c-1,g=(1<<y)-1,S=g>>1,x=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=a?0:l-1,T=a?1:-1,I=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(w=isNaN(n)?1:0,p=g):(p=Math.floor(Math.log(n)/Math.LN2),n*(m=Math.pow(2,-p))<1&&(p--,m*=2),p+S>=1?n+=x/m:n+=x*Math.pow(2,1-S),n*m>=2&&(p++,m/=2),p+S>=g?(w=0,p=g):p+S>=1?(w=(n*m-1)*Math.pow(2,c),p=p+S):(w=n*Math.pow(2,S-1)*Math.pow(2,c),p=0));c>=8;e[f+A]=w&255,A+=T,w/=256,c-=8);for(p=p<<c|w,y+=c;y>0;e[f+A]=p&255,A+=T,p/=256,y-=8);e[f+A-T]|=I*128}}}),jbe=Go({"node_modules/buffer/index.js"(t){"use strict";var e=Ube(),n=qbe(),f=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=p,t.SlowBuffer=P,t.INSPECT_MAX_BYTES=50;var a=2147483647;t.kMaxLength=a,p.TYPED_ARRAY_SUPPORT=c(),!p.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function c(){try{let O=new Uint8Array(1),N={foo:function(){return 42}};return Object.setPrototypeOf(N,Uint8Array.prototype),Object.setPrototypeOf(O,N),O.foo()===42}catch{return!1}}Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}});function l(O){if(O>a)throw new RangeError('The value "'+O+'" is invalid for option "size"');let N=new Uint8Array(O);return Object.setPrototypeOf(N,p.prototype),N}function p(O,N,$){if(typeof O=="number"){if(typeof N=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(O)}return w(O,N,$)}p.poolSize=8192;function w(O,N,$){if(typeof O=="string")return S(O,N);if(ArrayBuffer.isView(O))return A(O);if(O==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof O);if(ut(O,ArrayBuffer)||O&&ut(O.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ut(O,SharedArrayBuffer)||O&&ut(O.buffer,SharedArrayBuffer)))return T(O,N,$);if(typeof O=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let ee=O.valueOf&&O.valueOf();if(ee!=null&&ee!==O)return p.from(ee,N,$);let re=I(O);if(re)return re;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof O[Symbol.toPrimitive]=="function")return p.from(O[Symbol.toPrimitive]("string"),N,$);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof O)}p.from=function(O,N,$){return w(O,N,$)},Object.setPrototypeOf(p.prototype,Uint8Array.prototype),Object.setPrototypeOf(p,Uint8Array);function m(O){if(typeof O!="number")throw new TypeError('"size" argument must be of type number');if(O<0)throw new RangeError('The value "'+O+'" is invalid for option "size"')}function y(O,N,$){return m(O),O<=0?l(O):N!==void 0?typeof $=="string"?l(O).fill(N,$):l(O).fill(N):l(O)}p.alloc=function(O,N,$){return y(O,N,$)};function g(O){return m(O),l(O<0?0:B(O)|0)}p.allocUnsafe=function(O){return g(O)},p.allocUnsafeSlow=function(O){return g(O)};function S(O,N){if((typeof N!="string"||N==="")&&(N="utf8"),!p.isEncoding(N))throw new TypeError("Unknown encoding: "+N);let $=C(O,N)|0,ee=l($),re=ee.write(O,N);return re!==$&&(ee=ee.slice(0,re)),ee}function x(O){let N=O.length<0?0:B(O.length)|0,$=l(N);for(let ee=0;ee<N;ee+=1)$[ee]=O[ee]&255;return $}function A(O){if(ut(O,Uint8Array)){let N=new Uint8Array(O);return T(N.buffer,N.byteOffset,N.byteLength)}return x(O)}function T(O,N,$){if(N<0||O.byteLength<N)throw new RangeError('"offset" is outside of buffer bounds');if(O.byteLength<N+($||0))throw new RangeError('"length" is outside of buffer bounds');let ee;return N===void 0&&$===void 0?ee=new Uint8Array(O):$===void 0?ee=new Uint8Array(O,N):ee=new Uint8Array(O,N,$),Object.setPrototypeOf(ee,p.prototype),ee}function I(O){if(p.isBuffer(O)){let N=B(O.length)|0,$=l(N);return $.length===0||O.copy($,0,0,N),$}if(O.length!==void 0)return typeof O.length!="number"||qe(O.length)?l(0):x(O);if(O.type==="Buffer"&&Array.isArray(O.data))return x(O.data)}function B(O){if(O>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return O|0}function P(O){return+O!=O&&(O=0),p.alloc(+O)}p.isBuffer=function(N){return N!=null&&N._isBuffer===!0&&N!==p.prototype},p.compare=function(N,$){if(ut(N,Uint8Array)&&(N=p.from(N,N.offset,N.byteLength)),ut($,Uint8Array)&&($=p.from($,$.offset,$.byteLength)),!p.isBuffer(N)||!p.isBuffer($))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(N===$)return 0;let ee=N.length,re=$.length;for(let se=0,ce=Math.min(ee,re);se<ce;++se)if(N[se]!==$[se]){ee=N[se],re=$[se];break}return ee<re?-1:re<ee?1:0},p.isEncoding=function(N){switch(String(N).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},p.concat=function(N,$){if(!Array.isArray(N))throw new TypeError('"list" argument must be an Array of Buffers');if(N.length===0)return p.alloc(0);let ee;if($===void 0)for($=0,ee=0;ee<N.length;++ee)$+=N[ee].length;let re=p.allocUnsafe($),se=0;for(ee=0;ee<N.length;++ee){let ce=N[ee];if(ut(ce,Uint8Array))se+ce.length>re.length?(p.isBuffer(ce)||(ce=p.from(ce)),ce.copy(re,se)):Uint8Array.prototype.set.call(re,ce,se);else if(p.isBuffer(ce))ce.copy(re,se);else throw new TypeError('"list" argument must be an Array of Buffers');se+=ce.length}return re};function C(O,N){if(p.isBuffer(O))return O.length;if(ArrayBuffer.isView(O)||ut(O,ArrayBuffer))return O.byteLength;if(typeof O!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof O);let $=O.length,ee=arguments.length>2&&arguments[2]===!0;if(!ee&&$===0)return 0;let re=!1;for(;;)switch(N){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":return he(O).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $*2;case"hex":return $>>>1;case"base64":return Ae(O).length;default:if(re)return ee?-1:he(O).length;N=(""+N).toLowerCase(),re=!0}}p.byteLength=C;function q(O,N,$){let ee=!1;if((N===void 0||N<0)&&(N=0),N>this.length||(($===void 0||$>this.length)&&($=this.length),$<=0)||($>>>=0,N>>>=0,$<=N))return"";for(O||(O="utf8");;)switch(O){case"hex":return r(this,N,$);case"utf8":case"utf-8":return d(this,N,$);case"ascii":return R(this,N,$);case"latin1":case"binary":return o(this,N,$);case"base64":return u(this,N,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h(this,N,$);default:if(ee)throw new TypeError("Unknown encoding: "+O);O=(O+"").toLowerCase(),ee=!0}}p.prototype._isBuffer=!0;function Z(O,N,$){let ee=O[N];O[N]=O[$],O[$]=ee}p.prototype.swap16=function(){let N=this.length;if(N%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let $=0;$<N;$+=2)Z(this,$,$+1);return this},p.prototype.swap32=function(){let N=this.length;if(N%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let $=0;$<N;$+=4)Z(this,$,$+3),Z(this,$+1,$+2);return this},p.prototype.swap64=function(){let N=this.length;if(N%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let $=0;$<N;$+=8)Z(this,$,$+7),Z(this,$+1,$+6),Z(this,$+2,$+5),Z(this,$+3,$+4);return this},p.prototype.toString=function(){let N=this.length;return N===0?"":arguments.length===0?d(this,0,N):q.apply(this,arguments)},p.prototype.toLocaleString=p.prototype.toString,p.prototype.equals=function(N){if(!p.isBuffer(N))throw new TypeError("Argument must be a Buffer");return this===N?!0:p.compare(this,N)===0},p.prototype.inspect=function(){let N="",$=t.INSPECT_MAX_BYTES;return N=this.toString("hex",0,$).replace(/(.{2})/g,"$1 ").trim(),this.length>$&&(N+=" ... "),"<Buffer "+N+">"},f&&(p.prototype[f]=p.prototype.inspect),p.prototype.compare=function(N,$,ee,re,se){if(ut(N,Uint8Array)&&(N=p.from(N,N.offset,N.byteLength)),!p.isBuffer(N))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof N);if($===void 0&&($=0),ee===void 0&&(ee=N?N.length:0),re===void 0&&(re=0),se===void 0&&(se=this.length),$<0||ee>N.length||re<0||se>this.length)throw new RangeError("out of range index");if(re>=se&&$>=ee)return 0;if(re>=se)return-1;if($>=ee)return 1;if($>>>=0,ee>>>=0,re>>>=0,se>>>=0,this===N)return 0;let ce=se-re,st=ee-$,ye=Math.min(ce,st),be=this.slice(re,se),me=N.slice($,ee);for(let ke=0;ke<ye;++ke)if(be[ke]!==me[ke]){ce=be[ke],st=me[ke];break}return ce<st?-1:st<ce?1:0};function G(O,N,$,ee,re){if(O.length===0)return-1;if(typeof $=="string"?(ee=$,$=0):$>2147483647?$=2147483647:$<-2147483648&&($=-2147483648),$=+$,qe($)&&($=re?0:O.length-1),$<0&&($=O.length+$),$>=O.length){if(re)return-1;$=O.length-1}else if($<0)if(re)$=0;else return-1;if(typeof N=="string"&&(N=p.from(N,ee)),p.isBuffer(N))return N.length===0?-1:j(O,N,$,ee,re);if(typeof N=="number")return N=N&255,typeof Uint8Array.prototype.indexOf=="function"?re?Uint8Array.prototype.indexOf.call(O,N,$):Uint8Array.prototype.lastIndexOf.call(O,N,$):j(O,[N],$,ee,re);throw new TypeError("val must be string, number or Buffer")}function j(O,N,$,ee,re){let se=1,ce=O.length,st=N.length;if(ee!==void 0&&(ee=String(ee).toLowerCase(),ee==="ucs2"||ee==="ucs-2"||ee==="utf16le"||ee==="utf-16le")){if(O.length<2||N.length<2)return-1;se=2,ce/=2,st/=2,$/=2}function ye(me,ke){return se===1?me[ke]:me.readUInt16BE(ke*se)}let be;if(re){let me=-1;for(be=$;be<ce;be++)if(ye(O,be)===ye(N,me===-1?0:be-me)){if(me===-1&&(me=be),be-me+1===st)return me*se}else me!==-1&&(be-=be-me),me=-1}else for($+st>ce&&($=ce-st),be=$;be>=0;be--){let me=!0;for(let ke=0;ke<st;ke++)if(ye(O,be+ke)!==ye(N,ke)){me=!1;break}if(me)return be}return-1}p.prototype.includes=function(N,$,ee){return this.indexOf(N,$,ee)!==-1},p.prototype.indexOf=function(N,$,ee){return G(this,N,$,ee,!0)},p.prototype.lastIndexOf=function(N,$,ee){return G(this,N,$,ee,!1)};function z(O,N,$,ee){$=Number($)||0;let re=O.length-$;ee?(ee=Number(ee),ee>re&&(ee=re)):ee=re;let se=N.length;ee>se/2&&(ee=se/2);let ce;for(ce=0;ce<ee;++ce){let st=parseInt(N.substr(ce*2,2),16);if(qe(st))return ce;O[$+ce]=st}return ce}function J(O,N,$,ee){return _e(he(N,O.length-$),O,$,ee)}function E(O,N,$,ee){return _e(pe(N),O,$,ee)}function i(O,N,$,ee){return _e(Ae(N),O,$,ee)}function s(O,N,$,ee){return _e(De(N,O.length-$),O,$,ee)}p.prototype.write=function(N,$,ee,re){if($===void 0)re="utf8",ee=this.length,$=0;else if(ee===void 0&&typeof $=="string")re=$,ee=this.length,$=0;else if(isFinite($))$=$>>>0,isFinite(ee)?(ee=ee>>>0,re===void 0&&(re="utf8")):(re=ee,ee=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let se=this.length-$;if((ee===void 0||ee>se)&&(ee=se),N.length>0&&(ee<0||$<0)||$>this.length)throw new RangeError("Attempt to write outside buffer bounds");re||(re="utf8");let ce=!1;for(;;)switch(re){case"hex":return z(this,N,$,ee);case"utf8":case"utf-8":return J(this,N,$,ee);case"ascii":case"latin1":case"binary":return E(this,N,$,ee);case"base64":return i(this,N,$,ee);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s(this,N,$,ee);default:if(ce)throw new TypeError("Unknown encoding: "+re);re=(""+re).toLowerCase(),ce=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function u(O,N,$){return N===0&&$===O.length?e.fromByteArray(O):e.fromByteArray(O.slice(N,$))}function d(O,N,$){$=Math.min(O.length,$);let ee=[],re=N;for(;re<$;){let se=O[re],ce=null,st=se>239?4:se>223?3:se>191?2:1;if(re+st<=$){let ye,be,me,ke;switch(st){case 1:se<128&&(ce=se);break;case 2:ye=O[re+1],(ye&192)===128&&(ke=(se&31)<<6|ye&63,ke>127&&(ce=ke));break;case 3:ye=O[re+1],be=O[re+2],(ye&192)===128&&(be&192)===128&&(ke=(se&15)<<12|(ye&63)<<6|be&63,ke>2047&&(ke<55296||ke>57343)&&(ce=ke));break;case 4:ye=O[re+1],be=O[re+2],me=O[re+3],(ye&192)===128&&(be&192)===128&&(me&192)===128&&(ke=(se&15)<<18|(ye&63)<<12|(be&63)<<6|me&63,ke>65535&&ke<1114112&&(ce=ke))}}ce===null?(ce=65533,st=1):ce>65535&&(ce-=65536,ee.push(ce>>>10&1023|55296),ce=56320|ce&1023),ee.push(ce),re+=st}return _(ee)}var v=4096;function _(O){let N=O.length;if(N<=v)return String.fromCharCode.apply(String,O);let $="",ee=0;for(;ee<N;)$+=String.fromCharCode.apply(String,O.slice(ee,ee+=v));return $}function R(O,N,$){let ee="";$=Math.min(O.length,$);for(let re=N;re<$;++re)ee+=String.fromCharCode(O[re]&127);return ee}function o(O,N,$){let ee="";$=Math.min(O.length,$);for(let re=N;re<$;++re)ee+=String.fromCharCode(O[re]);return ee}function r(O,N,$){let ee=O.length;(!N||N<0)&&(N=0),(!$||$<0||$>ee)&&($=ee);let re="";for(let se=N;se<$;++se)re+=Te[O[se]];return re}function h(O,N,$){let ee=O.slice(N,$),re="";for(let se=0;se<ee.length-1;se+=2)re+=String.fromCharCode(ee[se]+ee[se+1]*256);return re}p.prototype.slice=function(N,$){let ee=this.length;N=~~N,$=$===void 0?ee:~~$,N<0?(N+=ee,N<0&&(N=0)):N>ee&&(N=ee),$<0?($+=ee,$<0&&($=0)):$>ee&&($=ee),$<N&&($=N);let re=this.subarray(N,$);return Object.setPrototypeOf(re,p.prototype),re};function b(O,N,$){if(O%1!==0||O<0)throw new RangeError("offset is not uint");if(O+N>$)throw new RangeError("Trying to access beyond buffer length")}p.prototype.readUintLE=p.prototype.readUIntLE=function(N,$,ee){N=N>>>0,$=$>>>0,ee||b(N,$,this.length);let re=this[N],se=1,ce=0;for(;++ce<$&&(se*=256);)re+=this[N+ce]*se;return re},p.prototype.readUintBE=p.prototype.readUIntBE=function(N,$,ee){N=N>>>0,$=$>>>0,ee||b(N,$,this.length);let re=this[N+--$],se=1;for(;$>0&&(se*=256);)re+=this[N+--$]*se;return re},p.prototype.readUint8=p.prototype.readUInt8=function(N,$){return N=N>>>0,$||b(N,1,this.length),this[N]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(N,$){return N=N>>>0,$||b(N,2,this.length),this[N]|this[N+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(N,$){return N=N>>>0,$||b(N,2,this.length),this[N]<<8|this[N+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(N,$){return N=N>>>0,$||b(N,4,this.length),(this[N]|this[N+1]<<8|this[N+2]<<16)+this[N+3]*16777216},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(N,$){return N=N>>>0,$||b(N,4,this.length),this[N]*16777216+(this[N+1]<<16|this[N+2]<<8|this[N+3])},p.prototype.readBigUInt64LE=mt(function(N){N=N>>>0,K(N,"offset");let $=this[N],ee=this[N+7];($===void 0||ee===void 0)&&ie(N,this.length-8);let re=$+this[++N]*2**8+this[++N]*2**16+this[++N]*2**24,se=this[++N]+this[++N]*2**8+this[++N]*2**16+ee*2**24;return BigInt(re)+(BigInt(se)<<BigInt(32))}),p.prototype.readBigUInt64BE=mt(function(N){N=N>>>0,K(N,"offset");let $=this[N],ee=this[N+7];($===void 0||ee===void 0)&&ie(N,this.length-8);let re=$*2**24+this[++N]*2**16+this[++N]*2**8+this[++N],se=this[++N]*2**24+this[++N]*2**16+this[++N]*2**8+ee;return(BigInt(re)<<BigInt(32))+BigInt(se)}),p.prototype.readIntLE=function(N,$,ee){N=N>>>0,$=$>>>0,ee||b(N,$,this.length);let re=this[N],se=1,ce=0;for(;++ce<$&&(se*=256);)re+=this[N+ce]*se;return se*=128,re>=se&&(re-=Math.pow(2,8*$)),re},p.prototype.readIntBE=function(N,$,ee){N=N>>>0,$=$>>>0,ee||b(N,$,this.length);let re=$,se=1,ce=this[N+--re];for(;re>0&&(se*=256);)ce+=this[N+--re]*se;return se*=128,ce>=se&&(ce-=Math.pow(2,8*$)),ce},p.prototype.readInt8=function(N,$){return N=N>>>0,$||b(N,1,this.length),this[N]&128?(255-this[N]+1)*-1:this[N]},p.prototype.readInt16LE=function(N,$){N=N>>>0,$||b(N,2,this.length);let ee=this[N]|this[N+1]<<8;return ee&32768?ee|4294901760:ee},p.prototype.readInt16BE=function(N,$){N=N>>>0,$||b(N,2,this.length);let ee=this[N+1]|this[N]<<8;return ee&32768?ee|4294901760:ee},p.prototype.readInt32LE=function(N,$){return N=N>>>0,$||b(N,4,this.length),this[N]|this[N+1]<<8|this[N+2]<<16|this[N+3]<<24},p.prototype.readInt32BE=function(N,$){return N=N>>>0,$||b(N,4,this.length),this[N]<<24|this[N+1]<<16|this[N+2]<<8|this[N+3]},p.prototype.readBigInt64LE=mt(function(N){N=N>>>0,K(N,"offset");let $=this[N],ee=this[N+7];($===void 0||ee===void 0)&&ie(N,this.length-8);let re=this[N+4]+this[N+5]*2**8+this[N+6]*2**16+(ee<<24);return(BigInt(re)<<BigInt(32))+BigInt($+this[++N]*2**8+this[++N]*2**16+this[++N]*2**24)}),p.prototype.readBigInt64BE=mt(function(N){N=N>>>0,K(N,"offset");let $=this[N],ee=this[N+7];($===void 0||ee===void 0)&&ie(N,this.length-8);let re=($<<24)+this[++N]*2**16+this[++N]*2**8+this[++N];return(BigInt(re)<<BigInt(32))+BigInt(this[++N]*2**24+this[++N]*2**16+this[++N]*2**8+ee)}),p.prototype.readFloatLE=function(N,$){return N=N>>>0,$||b(N,4,this.length),n.read(this,N,!0,23,4)},p.prototype.readFloatBE=function(N,$){return N=N>>>0,$||b(N,4,this.length),n.read(this,N,!1,23,4)},p.prototype.readDoubleLE=function(N,$){return N=N>>>0,$||b(N,8,this.length),n.read(this,N,!0,52,8)},p.prototype.readDoubleBE=function(N,$){return N=N>>>0,$||b(N,8,this.length),n.read(this,N,!1,52,8)};function M(O,N,$,ee,re,se){if(!p.isBuffer(O))throw new TypeError('"buffer" argument must be a Buffer instance');if(N>re||N<se)throw new RangeError('"value" argument is out of bounds');if($+ee>O.length)throw new RangeError("Index out of range")}p.prototype.writeUintLE=p.prototype.writeUIntLE=function(N,$,ee,re){if(N=+N,$=$>>>0,ee=ee>>>0,!re){let st=Math.pow(2,8*ee)-1;M(this,N,$,ee,st,0)}let se=1,ce=0;for(this[$]=N&255;++ce<ee&&(se*=256);)this[$+ce]=N/se&255;return $+ee},p.prototype.writeUintBE=p.prototype.writeUIntBE=function(N,$,ee,re){if(N=+N,$=$>>>0,ee=ee>>>0,!re){let st=Math.pow(2,8*ee)-1;M(this,N,$,ee,st,0)}let se=ee-1,ce=1;for(this[$+se]=N&255;--se>=0&&(ce*=256);)this[$+se]=N/ce&255;return $+ee},p.prototype.writeUint8=p.prototype.writeUInt8=function(N,$,ee){return N=+N,$=$>>>0,ee||M(this,N,$,1,255,0),this[$]=N&255,$+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(N,$,ee){return N=+N,$=$>>>0,ee||M(this,N,$,2,65535,0),this[$]=N&255,this[$+1]=N>>>8,$+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(N,$,ee){return N=+N,$=$>>>0,ee||M(this,N,$,2,65535,0),this[$]=N>>>8,this[$+1]=N&255,$+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(N,$,ee){return N=+N,$=$>>>0,ee||M(this,N,$,4,4294967295,0),this[$+3]=N>>>24,this[$+2]=N>>>16,this[$+1]=N>>>8,this[$]=N&255,$+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(N,$,ee){return N=+N,$=$>>>0,ee||M(this,N,$,4,4294967295,0),this[$]=N>>>24,this[$+1]=N>>>16,this[$+2]=N>>>8,this[$+3]=N&255,$+4};function k(O,N,$,ee,re){U(N,ee,re,O,$,7);let se=Number(N&BigInt(4294967295));O[$++]=se,se=se>>8,O[$++]=se,se=se>>8,O[$++]=se,se=se>>8,O[$++]=se;let ce=Number(N>>BigInt(32)&BigInt(4294967295));return O[$++]=ce,ce=ce>>8,O[$++]=ce,ce=ce>>8,O[$++]=ce,ce=ce>>8,O[$++]=ce,$}function D(O,N,$,ee,re){U(N,ee,re,O,$,7);let se=Number(N&BigInt(4294967295));O[$+7]=se,se=se>>8,O[$+6]=se,se=se>>8,O[$+5]=se,se=se>>8,O[$+4]=se;let ce=Number(N>>BigInt(32)&BigInt(4294967295));return O[$+3]=ce,ce=ce>>8,O[$+2]=ce,ce=ce>>8,O[$+1]=ce,ce=ce>>8,O[$]=ce,$+8}p.prototype.writeBigUInt64LE=mt(function(N,$=0){return k(this,N,$,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeBigUInt64BE=mt(function(N,$=0){return D(this,N,$,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeIntLE=function(N,$,ee,re){if(N=+N,$=$>>>0,!re){let ye=Math.pow(2,8*ee-1);M(this,N,$,ee,ye-1,-ye)}let se=0,ce=1,st=0;for(this[$]=N&255;++se<ee&&(ce*=256);)N<0&&st===0&&this[$+se-1]!==0&&(st=1),this[$+se]=(N/ce>>0)-st&255;return $+ee},p.prototype.writeIntBE=function(N,$,ee,re){if(N=+N,$=$>>>0,!re){let ye=Math.pow(2,8*ee-1);M(this,N,$,ee,ye-1,-ye)}let se=ee-1,ce=1,st=0;for(this[$+se]=N&255;--se>=0&&(ce*=256);)N<0&&st===0&&this[$+se+1]!==0&&(st=1),this[$+se]=(N/ce>>0)-st&255;return $+ee},p.prototype.writeInt8=function(N,$,ee){return N=+N,$=$>>>0,ee||M(this,N,$,1,127,-128),N<0&&(N=255+N+1),this[$]=N&255,$+1},p.prototype.writeInt16LE=function(N,$,ee){return N=+N,$=$>>>0,ee||M(this,N,$,2,32767,-32768),this[$]=N&255,this[$+1]=N>>>8,$+2},p.prototype.writeInt16BE=function(N,$,ee){return N=+N,$=$>>>0,ee||M(this,N,$,2,32767,-32768),this[$]=N>>>8,this[$+1]=N&255,$+2},p.prototype.writeInt32LE=function(N,$,ee){return N=+N,$=$>>>0,ee||M(this,N,$,4,2147483647,-2147483648),this[$]=N&255,this[$+1]=N>>>8,this[$+2]=N>>>16,this[$+3]=N>>>24,$+4},p.prototype.writeInt32BE=function(N,$,ee){return N=+N,$=$>>>0,ee||M(this,N,$,4,2147483647,-2147483648),N<0&&(N=4294967295+N+1),this[$]=N>>>24,this[$+1]=N>>>16,this[$+2]=N>>>8,this[$+3]=N&255,$+4},p.prototype.writeBigInt64LE=mt(function(N,$=0){return k(this,N,$,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),p.prototype.writeBigInt64BE=mt(function(N,$=0){return D(this,N,$,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Q(O,N,$,ee,re,se){if($+ee>O.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("Index out of range")}function W(O,N,$,ee,re){return N=+N,$=$>>>0,re||Q(O,N,$,4,34028234663852886e22,-34028234663852886e22),n.write(O,N,$,ee,23,4),$+4}p.prototype.writeFloatLE=function(N,$,ee){return W(this,N,$,!0,ee)},p.prototype.writeFloatBE=function(N,$,ee){return W(this,N,$,!1,ee)};function X(O,N,$,ee,re){return N=+N,$=$>>>0,re||Q(O,N,$,8,17976931348623157e292,-17976931348623157e292),n.write(O,N,$,ee,52,8),$+8}p.prototype.writeDoubleLE=function(N,$,ee){return X(this,N,$,!0,ee)},p.prototype.writeDoubleBE=function(N,$,ee){return X(this,N,$,!1,ee)},p.prototype.copy=function(N,$,ee,re){if(!p.isBuffer(N))throw new TypeError("argument should be a Buffer");if(ee||(ee=0),!re&&re!==0&&(re=this.length),$>=N.length&&($=N.length),$||($=0),re>0&&re<ee&&(re=ee),re===ee||N.length===0||this.length===0)return 0;if($<0)throw new RangeError("targetStart out of bounds");if(ee<0||ee>=this.length)throw new RangeError("Index out of range");if(re<0)throw new RangeError("sourceEnd out of bounds");re>this.length&&(re=this.length),N.length-$<re-ee&&(re=N.length-$+ee);let se=re-ee;return this===N&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin($,ee,re):Uint8Array.prototype.set.call(N,this.subarray(ee,re),$),se},p.prototype.fill=function(N,$,ee,re){if(typeof N=="string"){if(typeof $=="string"?(re=$,$=0,ee=this.length):typeof ee=="string"&&(re=ee,ee=this.length),re!==void 0&&typeof re!="string")throw new TypeError("encoding must be a string");if(typeof re=="string"&&!p.isEncoding(re))throw new TypeError("Unknown encoding: "+re);if(N.length===1){let ce=N.charCodeAt(0);(re==="utf8"&&ce<128||re==="latin1")&&(N=ce)}}else typeof N=="number"?N=N&255:typeof N=="boolean"&&(N=Number(N));if($<0||this.length<$||this.length<ee)throw new RangeError("Out of range index");if(ee<=$)return this;$=$>>>0,ee=ee===void 0?this.length:ee>>>0,N||(N=0);let se;if(typeof N=="number")for(se=$;se<ee;++se)this[se]=N;else{let ce=p.isBuffer(N)?N:p.from(N,re),st=ce.length;if(st===0)throw new TypeError('The value "'+N+'" is invalid for argument "value"');for(se=0;se<ee-$;++se)this[se+$]=ce[se%st]}return this};var V={};function Y(O,N,$){V[O]=class extends ${constructor(){super(),Object.defineProperty(this,"message",{value:N.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${O}]`,this.stack,delete this.name}get code(){return O}set code(re){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:re,writable:!0})}toString(){return`${this.name} [${O}]: ${this.message}`}}}Y("ERR_BUFFER_OUT_OF_BOUNDS",function(O){return O?`${O} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Y("ERR_INVALID_ARG_TYPE",function(O,N){return`The "${O}" argument must be of type number. Received type ${typeof N}`},TypeError),Y("ERR_OUT_OF_RANGE",function(O,N,$){let ee=`The value of "${O}" is out of range.`,re=$;return Number.isInteger($)&&Math.abs($)>2**32?re=ae(String($)):typeof $=="bigint"&&(re=String($),($>BigInt(2)**BigInt(32)||$<-(BigInt(2)**BigInt(32)))&&(re=ae(re)),re+="n"),ee+=` It must be ${N}. Received ${re}`,ee},RangeError);function ae(O){let N="",$=O.length,ee=O[0]==="-"?1:0;for(;$>=ee+4;$-=3)N=`_${O.slice($-3,$)}${N}`;return`${O.slice(0,$)}${N}`}function te(O,N,$){K(N,"offset"),(O[N]===void 0||O[N+$]===void 0)&&ie(N,O.length-($+1))}function U(O,N,$,ee,re,se){if(O>$||O<N){let ce=typeof N=="bigint"?"n":"",st;throw se>3?N===0||N===BigInt(0)?st=`>= 0${ce} and < 2${ce} ** ${(se+1)*8}${ce}`:st=`>= -(2${ce} ** ${(se+1)*8-1}${ce}) and < 2 ** ${(se+1)*8-1}${ce}`:st=`>= ${N}${ce} and <= ${$}${ce}`,new V.ERR_OUT_OF_RANGE("value",st,O)}te(ee,re,se)}function K(O,N){if(typeof O!="number")throw new V.ERR_INVALID_ARG_TYPE(N,"number",O)}function ie(O,N,$){throw Math.floor(O)!==O?(K(O,$),new V.ERR_OUT_OF_RANGE($||"offset","an integer",O)):N<0?new V.ERR_BUFFER_OUT_OF_BOUNDS:new V.ERR_OUT_OF_RANGE($||"offset",`>= ${$?1:0} and <= ${N}`,O)}var fe=/[^+/0-9A-Za-z-_]/g;function de(O){if(O=O.split("=")[0],O=O.trim().replace(fe,""),O.length<2)return"";for(;O.length%4!==0;)O=O+"=";return O}function he(O,N){N=N||1/0;let $,ee=O.length,re=null,se=[];for(let ce=0;ce<ee;++ce){if($=O.charCodeAt(ce),$>55295&&$<57344){if(!re){if($>56319){(N-=3)>-1&&se.push(239,191,189);continue}else if(ce+1===ee){(N-=3)>-1&&se.push(239,191,189);continue}re=$;continue}if($<56320){(N-=3)>-1&&se.push(239,191,189),re=$;continue}$=(re-55296<<10|$-56320)+65536}else re&&(N-=3)>-1&&se.push(239,191,189);if(re=null,$<128){if((N-=1)<0)break;se.push($)}else if($<2048){if((N-=2)<0)break;se.push($>>6|192,$&63|128)}else if($<65536){if((N-=3)<0)break;se.push($>>12|224,$>>6&63|128,$&63|128)}else if($<1114112){if((N-=4)<0)break;se.push($>>18|240,$>>12&63|128,$>>6&63|128,$&63|128)}else throw new Error("Invalid code point")}return se}function pe(O){let N=[];for(let $=0;$<O.length;++$)N.push(O.charCodeAt($)&255);return N}function De(O,N){let $,ee,re,se=[];for(let ce=0;ce<O.length&&!((N-=2)<0);++ce)$=O.charCodeAt(ce),ee=$>>8,re=$%256,se.push(re),se.push(ee);return se}function Ae(O){return e.toByteArray(de(O))}function _e(O,N,$,ee){let re;for(re=0;re<ee&&!(re+$>=N.length||re>=O.length);++re)N[re+$]=O[re];return re}function ut(O,N){return O instanceof N||O!=null&&O.constructor!=null&&O.constructor.name!=null&&O.constructor.name===N.name}function qe(O){return O!==O}var Te=function(){let O="0123456789abcdef",N=new Array(256);for(let $=0;$<16;++$){let ee=$*16;for(let re=0;re<16;++re)N[ee+re]=O[$]+O[re]}return N}();function mt(O){return typeof BigInt>"u"?ne:O}function ne(){throw new Error("BigInt not supported")}}}),Fbe={"@@functional/placeholder":!0};function Bn(t){return t===Fbe}function co(t){return function e(n){return arguments.length===0||Bn(n)?e:t.apply(this,arguments)}}function la(t){return function e(n,f){switch(arguments.length){case 0:return e;case 1:return Bn(n)?e:co(function(a){return t(n,a)});default:return Bn(n)&&Bn(f)?e:Bn(n)?co(function(a){return t(a,f)}):Bn(f)?co(function(a){return t(n,a)}):t(n,f)}}}function Zb(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(n){return e.apply(this,arguments)};case 2:return function(n,f){return e.apply(this,arguments)};case 3:return function(n,f,a){return e.apply(this,arguments)};case 4:return function(n,f,a,c){return e.apply(this,arguments)};case 5:return function(n,f,a,c,l){return e.apply(this,arguments)};case 6:return function(n,f,a,c,l,p){return e.apply(this,arguments)};case 7:return function(n,f,a,c,l,p,w){return e.apply(this,arguments)};case 8:return function(n,f,a,c,l,p,w,m){return e.apply(this,arguments)};case 9:return function(n,f,a,c,l,p,w,m,y){return e.apply(this,arguments)};case 10:return function(n,f,a,c,l,p,w,m,y,g){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function qz(t,e,n){return function(){for(var f=[],a=0,c=t,l=0,p=!1;l<e.length||a<arguments.length;){var w;l<e.length&&(!Bn(e[l])||a>=arguments.length)?w=e[l]:(w=arguments[a],a+=1),f[l]=w,Bn(w)?p=!0:c-=1,l+=1}return!p&&c<=0?n.apply(this,f):Zb(Math.max(0,c),qz(t,f,n))}}var zbe=la(function(t,e){return t===1?co(e):Zb(t,qz(t,[],e))}),jz=zbe;function oM(t){return function e(n,f,a){switch(arguments.length){case 0:return e;case 1:return Bn(n)?e:la(function(c,l){return t(n,c,l)});case 2:return Bn(n)&&Bn(f)?e:Bn(n)?la(function(c,l){return t(c,f,l)}):Bn(f)?la(function(c,l){return t(n,c,l)}):co(function(c){return t(n,f,c)});default:return Bn(n)&&Bn(f)&&Bn(a)?e:Bn(n)&&Bn(f)?la(function(c,l){return t(c,l,a)}):Bn(n)&&Bn(a)?la(function(c,l){return t(c,f,l)}):Bn(f)&&Bn(a)?la(function(c,l){return t(n,c,l)}):Bn(n)?co(function(c){return t(c,f,a)}):Bn(f)?co(function(c){return t(n,c,a)}):Bn(a)?co(function(c){return t(n,f,c)}):t(n,f,a)}}}var sM=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function Hbe(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function fM(t,e,n){return function(){if(arguments.length===0)return n();var f=arguments[arguments.length-1];if(!sM(f)){for(var a=0;a<t.length;){if(typeof f[t[a]]=="function")return f[t[a]].apply(f,Array.prototype.slice.call(arguments,0,-1));a+=1}if(Hbe(f)){var c=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return c(f)}}return n.apply(this,arguments)}}function Zbe(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}var um={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};function cz(t){for(var e=[],n;!(n=t.next()).done;)e.push(n.value);return e}function dz(t,e,n){for(var f=0,a=n.length;f<a;){if(t(e,n[f]))return!0;f+=1}return!1}function Kbe(t){var e=String(t).match(/^function (\w*)/);return e==null?"":e[1]}function _b(t,e){return Object.prototype.hasOwnProperty.call(e,t)}function Wbe(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var M_=typeof Object.is=="function"?Object.is:Wbe,pz=Object.prototype.toString,Vbe=function(){return pz.call(arguments)==="[object Arguments]"?function(t){return pz.call(t)==="[object Arguments]"}:function(t){return _b("callee",t)}}(),Gbe=Vbe,Ybe=!{toString:null}.propertyIsEnumerable("toString"),vz=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],mz=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),Jbe=function(t,e){for(var n=0;n<t.length;){if(t[n]===e)return!0;n+=1}return!1},Xbe=co(typeof Object.keys=="function"&&!mz?function(t){return Object(t)!==t?[]:Object.keys(t)}:function(t){if(Object(t)!==t)return[];var e,n,f=[],a=mz&&Gbe(t);for(e in t)_b(e,t)&&(!a||e!=="length")&&(f[f.length]=e);if(Ybe)for(n=vz.length-1;n>=0;)e=vz[n],_b(e,t)&&!Jbe(f,e)&&(f[f.length]=e),n-=1;return f}),y1=Xbe,Qbe=co(function(t){return t===null?"Null":t===void 0?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}),gz=Qbe;function yz(t,e,n,f){var a=cz(t),c=cz(e);function l(p,w){return uM(p,w,n.slice(),f.slice())}return!dz(function(p,w){return!dz(l,w,p)},c,a)}function uM(t,e,n,f){if(M_(t,e))return!0;var a=gz(t);if(a!==gz(e))return!1;if(typeof t["fantasy-land/equals"]=="function"||typeof e["fantasy-land/equals"]=="function")return typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e)&&typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t);if(typeof t.equals=="function"||typeof e.equals=="function")return typeof t.equals=="function"&&t.equals(e)&&typeof e.equals=="function"&&e.equals(t);switch(a){case"Arguments":case"Array":case"Object":if(typeof t.constructor=="function"&&Kbe(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(!(typeof t==typeof e&&M_(t.valueOf(),e.valueOf())))return!1;break;case"Date":if(!M_(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(!(t.source===e.source&&t.global===e.global&&t.ignoreCase===e.ignoreCase&&t.multiline===e.multiline&&t.sticky===e.sticky&&t.unicode===e.unicode))return!1;break}for(var c=n.length-1;c>=0;){if(n[c]===t)return f[c]===e;c-=1}switch(a){case"Map":return t.size!==e.size?!1:yz(t.entries(),e.entries(),n.concat([t]),f.concat([e]));case"Set":return t.size!==e.size?!1:yz(t.values(),e.values(),n.concat([t]),f.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var l=y1(t);if(l.length!==y1(e).length)return!1;var p=n.concat([t]),w=f.concat([e]);for(c=l.length-1;c>=0;){var m=l[c];if(!(_b(m,e)&&uM(e[m],t[m],p,w)))return!1;c-=1}return!0}var e3e=la(function(t,e){return uM(t,e,[],[])}),Fz=e3e;function t3e(t,e,n){var f,a;if(typeof t.indexOf=="function")switch(typeof e){case"number":if(e===0){for(f=1/e;n<t.length;){if(a=t[n],a===0&&1/a===f)return n;n+=1}return-1}else if(e!==e){for(;n<t.length;){if(a=t[n],typeof a=="number"&&a!==a)return n;n+=1}return-1}return t.indexOf(e,n);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,n);case"object":if(e===null)return t.indexOf(e,n)}for(;n<t.length;){if(Fz(t[n],e))return n;n+=1}return-1}function r3e(t,e){return t3e(e,t,0)>=0}function sm(t,e){for(var n=0,f=e.length,a=Array(f);n<f;)a[n]=t(e[n]),n+=1;return a}function S_(t){var e=t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+e.replace(/"/g,'\\"')+'"'}var Yv=function(t){return(t<10?"0":"")+t},i3e=typeof Date.prototype.toISOString=="function"?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+Yv(t.getUTCMonth()+1)+"-"+Yv(t.getUTCDate())+"T"+Yv(t.getUTCHours())+":"+Yv(t.getUTCMinutes())+":"+Yv(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"},n3e=i3e;function a3e(t){return function(){return!t.apply(this,arguments)}}function zz(t,e,n){for(var f=0,a=n.length;f<a;)e=t(e,n[f]),f+=1;return e}function o3e(t,e){for(var n=0,f=e.length,a=[];n<f;)t(e[n])&&(a[a.length]=e[n]),n+=1;return a}function s3e(t){return Object.prototype.toString.call(t)==="[object Object]"}var f3e=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=um.init,t.prototype["@@transducer/result"]=um.result,t.prototype["@@transducer/step"]=function(e,n){return this.f(n)?this.xf["@@transducer/step"](e,n):e},t}();function u3e(t){return function(e){return new f3e(t,e)}}var h3e=la(fM(["fantasy-land/filter","filter"],u3e,function(t,e){return s3e(e)?zz(function(n,f){return t(e[f])&&(n[f]=e[f]),n},{},y1(e)):o3e(t,e)})),l3e=h3e,c3e=la(function(t,e){return l3e(a3e(t),e)}),d3e=c3e;function Hz(t,e){var n=function(c){var l=e.concat([t]);return r3e(c,l)?"<Circular>":Hz(c,l)},f=function(c,l){return sm(function(p){return S_(p)+": "+n(c[p])},l.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+sm(n,t).join(", ")+"))";case"[object Array]":return"["+sm(n,t).concat(f(t,d3e(function(c){return/^\d+$/.test(c)},y1(t)))).join(", ")+"]";case"[object Boolean]":return typeof t=="object"?"new Boolean("+n(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?n(NaN):S_(n3e(t)))+")";case"[object Map]":return"new Map("+n(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return typeof t=="object"?"new Number("+n(t.valueOf())+")":1/t===-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+n(Array.from(t).sort())+")";case"[object String]":return typeof t=="object"?"new String("+n(t.valueOf())+")":S_(t);case"[object Undefined]":return"undefined";default:if(typeof t.toString=="function"){var a=t.toString();if(a!=="[object Object]")return a}return"{"+f(t,y1(t)).join(", ")+"}"}}var p3e=co(function(t){return Hz(t,[])}),bz=p3e,v3e=la(function(t,e){if(t===e)return e;function n(p,w){if(p>w!=w>p)return w>p?w:p}var f=n(t,e);if(f!==void 0)return f;var a=n(typeof t,typeof e);if(a!==void 0)return a===typeof t?t:e;var c=bz(t),l=n(c,bz(e));return l!==void 0&&l===c?t:e}),m3e=v3e,g3e=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=um.init,t.prototype["@@transducer/result"]=um.result,t.prototype["@@transducer/step"]=function(e,n){return this.xf["@@transducer/step"](e,this.f(n))},t}(),y3e=function(t){return function(e){return new g3e(t,e)}},b3e=y3e,w3e=la(fM(["fantasy-land/map","map"],b3e,function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return jz(e.length,function(){return t.call(this,e.apply(this,arguments))});case"[object Object]":return zz(function(n,f){return n[f]=t(e[f]),n},{},y1(e));default:return sm(t,e)}})),_3e=w3e,Zz=Number.isInteger||function(t){return t<<0===t};function Kz(t){return Object.prototype.toString.call(t)==="[object String]"}function Wz(t,e){var n=t<0?e.length+t:t;return Kz(e)?e.charAt(n):e[n]}var M3e=la(function(t,e){if(e!=null)return Zz(t)?Wz(t,e):e[t]}),Kb=M3e,S3e=la(function(t,e){return _3e(Kb(t),e)}),E3e=S3e,A3e=co(function(t){return sM(t)?!0:!t||typeof t!="object"||Kz(t)?!1:t.length===0?!0:t.length>0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1}),x3e=A3e,wz=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function R3e(t,e,n){return function(f,a,c){if(x3e(c))return t(f,a,c);if(c==null)return a;if(typeof c["fantasy-land/reduce"]=="function")return e(f,a,c,"fantasy-land/reduce");if(c[wz]!=null)return n(f,a,c[wz]());if(typeof c.next=="function")return n(f,a,c);if(typeof c.reduce=="function")return e(f,a,c,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function k3e(t,e,n){for(var f=0,a=n.length;f<a;){if(e=t["@@transducer/step"](e,n[f]),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}f+=1}return t["@@transducer/result"](e)}var T3e=la(function(t,e){return Zb(t.length,function(){return t.apply(e,arguments)})}),I3e=T3e;function B3e(t,e,n){for(var f=n.next();!f.done;){if(e=t["@@transducer/step"](e,f.value),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}f=n.next()}return t["@@transducer/result"](e)}function O3e(t,e,n,f){return t["@@transducer/result"](n[f](I3e(t["@@transducer/step"],t),e))}var P3e=R3e(k3e,O3e,B3e),N3e=P3e,C3e=function(){function t(e){this.f=e}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(e){return e},t.prototype["@@transducer/step"]=function(e,n){return this.f(e,n)},t}();function L3e(t){return new C3e(t)}var D3e=oM(function(t,e,n){return N3e(typeof t=="function"?L3e(t):t,e,n)}),Vz=D3e;function $3e(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function Gz(t,e){return function(){var n=arguments.length;if(n===0)return e();var f=arguments[n-1];return sM(f)||typeof f[t]!="function"?e.apply(this,arguments):f[t].apply(f,Array.prototype.slice.call(arguments,0,n-1))}}var U3e=oM(Gz("slice",function(t,e,n){return Array.prototype.slice.call(n,t,e)})),q3e=U3e,j3e=co(Gz("tail",q3e(1,1/0))),F3e=j3e;function Yz(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Zb(arguments[0].length,Vz($3e,arguments[0],F3e(arguments)))}var z3e=la(function(t,e){return jz(Vz(m3e,0,E3e("length",e)),function(){var n=arguments,f=this;return t.apply(f,sm(function(a){return a.apply(f,n)},e))})}),H3e=z3e,Z3e=la(function(t,e){return e==null||e!==e?t:e}),B_=Z3e,K3e=function(){function t(e,n){this.xf=n,this.f=e,this.found=!1}return t.prototype["@@transducer/init"]=um.init,t.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,void 0)),this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,n){return this.f(n)&&(this.found=!0,e=Zbe(this.xf["@@transducer/step"](e,n))),e},t}();function W3e(t){return function(e){return new K3e(t,e)}}var V3e=la(fM(["find"],W3e,function(t,e){for(var n=0,f=e.length;n<f;){if(t(e[n]))return e[n];n+=1}})),G3e=V3e,Y3e=co(function(t){return H3e(function(){return Array.prototype.slice.call(arguments,0)},t)}),J3e=Y3e;function X3e(t,e){for(var n=e,f=0;f<t.length;f+=1){if(n==null)return;var a=t[f];Zz(a)?n=Wz(a,n):n=n[a]}return n}var Q3e=la(X3e),Jz=Q3e,e8e=oM(function(t,e,n){return Fz(t,Kb(e,n))}),t8e=e8e,Mb=class extends Error{name="InvalidSchedulerLocation"},r8e=class extends Error{name="SchedulerTagNotFound"},i8e=class extends Error{name="TransactionNotFound"},n8e="Url",a8e="Time-To-Live",o8e="Scheduler",O_=t=>Yz(B_([]),G3e(t8e(t,"name")),B_({}),Kb("value")),Xz=t=>Yz(e=>{if(!e)throw new i8e(t);return e},Kb("tags"),B_([]));function Qz({fetch:t,GRAPHQL_URL:e}){return async({query:n,variables:f})=>t(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:n,variables:f})}).then(a=>a.json())}function s8e({fetch:t,GRAPHQL_URL:e}){let n=Qz({fetch:t,GRAPHQL_URL:e}),f=eH({fetch:t,GRAPHQL_URL:e}),a=`
|
|
139
139
|
query GetTransactions ($transactionIds: [ID!]!) {
|
|
140
140
|
transactions(ids: $transactionIds) {
|
|
141
141
|
edges {
|