@ar.io/sdk 2.0.0-alpha.5 → 2.0.0-alpha.6
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
|
@@ -136,7 +136,7 @@ use chrome, FireFox or Internet Explorer 11`)}var n=Ei(),u=e1(),a=n.Buffer,d=n.k
|
|
|
136
136
|
`))},ri.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},ri}var B2,jK,Ky,FK,zK,O2,HK,Q_,KK,eM,ZK,tM,WK,rM,GK,pn,iM,VK,ji,nM,JK,Fi,aM,YK,Kr,oM,XK,la,sM,QK,pr,fM,eZ,Bi,r_e,tZ,uM,Zy,rZ,hM,iZ,lM,nZ,cM,aZ,dM,oZ,pM,sZ,vM,fZ,mM,gM,uZ,a_e,yM,hZ,bM,lZ,wM,cZ,_M,dZ,MM,pZ,f_e,SM,vZ,EM,mZ,AM,gZ,RM,yZ,xM,Tf,TM,bZ,En,kM,wZ,IM,_Z,BM,MZ,OM,SZ,fQ,PM,EZ,NM,AZ,CM,RZ,Wy,LM,xZ,DM,TZ,vf,$M,kZ,Io,Gy,IZ,Bo,BZ,UM,OZ,qM,PZ,jM,NZ,FM,CZ,zM,LZ,w0,DZ,HM,$Z,Vy,Jy,UZ,KM,qZ,Yy,jZ,ZM,FZ,WM,zZ,GM,HZ,VM,KZ,JM,ZZ,YM,WZ,gQ,XM,VZ,QM,JZ,gs,eS,YZ,Ia,tS,XZ,Zr,rS,QZ,mf,iS,eW,Xy,tW,on,Qy,rW,Oi,ys,iW,nu,nW,bs,aW,wQ,oW,nS,Fe,MQ,sW,aS,ze,ho,fW,P2,uW,eb,hW,lW,oS,cW,sS,dW,fS,pW,uS,vW,vn,hS,mW,zi,lS,gW,Hi,cS,yW,Wr,dS,bW,ca,pS,wW,vr,vS,_W,Pi,P_e,MW,mS,w3,If,xQ,TQ,ZR,kQ,tb,WR,L_e,D_e,_0,IQ,$_e,BQ,RW,yS,q_e,OQ,j_e,sl,N0,ov,n3,F0,VR,z0,H_e,K_e,Z_e,bS,xW,W_e,wS,TW,G_e,_S,kW,J_e,IW,Ox,rb,JR,eMe,tMe,M0,NQ,rMe,MS,CQ,LQ,iMe,ul,C0,sv,a3,H0,XR,K0,oMe,sMe,fMe,SS,PW,uMe,ES,NW,lMe,AS,CW,cMe,$Q,UQ,_3,dMe,pMe,vMe,mMe,qb,qQ,jQ,FQ,bMe,RS,zQ,wMe,_Me,AMe,HQ,QR,ex,Cs,xS,UW,An,TS,qW,kS,jW,IS,FW,BS,zW,WQ,OS,HW,PS,KW,NS,ZW,ib,CS,WW,LS,GW,gf,DS,VW,Oo,nb,JW,Po,YW,$S,XW,US,QW,qS,eG,jS,tG,FS,rG,S0,iG,zS,nG,ab,ob,aG,HS,oG,sb,sG,KS,fG,ZS,uG,WS,hG,GS,lG,VS,cG,JS,dG,ree,YS,vG,XS,mG,_s,QS,gG,Ba,eE,yG,Gr,tE,bG,yf,rE,wG,fb,_G,sn,ub,MG,Ni,Ms,SG,au,EG,Ss,AG,aee,RG,iE,He,see,xG,nE,Ke,s3,vo,KMe,Ld,E0,ZMe,TG,uu,kG,WMe,GMe,hb,a1,Fb,fee,uee,VMe,hee,JMe,YMe,Lx,aE,XMe,lee,QMe,N2,C2,L2,D2,$2,U2,Dx,mn,cee,o1,Vr,eSe,dee,tSe,rSe,iSe,pee,Ki,uSe,vee,hSe,lSe,cSe,vSe,Zi,mSe,mee,gSe,ySe,bSe,SSe,ga,ESe,ASe,RSe,xSe,TSe,kSe,mr,ISe,gee,BSe,CG,OSe,yee,Ci,DSe,$Se,USe,qSe,jSe,rl,FSe,bee,$x,kn,qG,wee,zSe,yl,HSe,KSe,ZSe,_ee,Sv,WSe,Mee,GSe,Z0,See,VSe,JSe,YSe,Eee,X2,XSe,tx,rx,QSe,Aee,Ree,eEe,tEe,ix,xee,FG,Tee,Af,rEe,iEe,nEe,aEe,zG,xf,oEe,Jb,oE,Iee,uv,sE,sEe,HG,KG,Fd,hv,fEe,fE,uEe,f3,Bee,Ls,X0,lb,GG,VG,Oee,hEe,Pee,Ux,JG,Jn,Nee,cEe,Cee,Lee,dEe,pEe,cb,Dee,mEe,$ee,hl,yEe,zd,Uee,u3,qee,Xu,bEe,q0,Q2,wEe,_Ee,Ev,jee,MEe,nx,YG,Fee,ev,SEe,zee,ax,Hee,Yb,Kee,xEe,TEe,ox,IEe,QG,BEe,Zee,PEe,Xb,uE,qx,Os,Av,h3,NEe,zn,Da,Xd,CEe,LEe,Jr,DEe,co,Wee,rV,$Ee,UEe,Gee,Rf,qEe,lE,Vee,Jee,R0,jEe,A3,Li,fx,FEe,Qd,Yee,zEe,Xee,HEe,KEe,fn,ux,Qee,ZEe,oh,WEe,ete,GEe,VEe,JEe,Lo,aV,oV,YEe,il,Sf,tte,jx,ll,eh,sV,XEe,et,rte,ite,Hn,nte,cE,QEe,r3,dE,Fx,ate,ote,x0,eAe,ste,fte,tAe,Ua,rAe,hV,iAe,hx,nAe,aAe,oAe,sAe,lV,pE,ute,hte,_i,vu,Ns,cV,uAe,hAe,lAe,cAe,dAe,dV,pAe,pb,gAe,Hd,Zh,yAe,pV,mE,bAe,lte,wAe,cl,vV,zx,Hx,mb,Do,bf,_Ae,MAe,gb,pte,l3,dx,SAe,AAe,gi,RAe,xAe,s1,MV,kAe,vte,mo,IAe,BAe,mu,gu,mte,gte,Wh,bE,wE,OAe,PAe,NAe,CAe,yte,LAe,bte,hu,ou,wte,Vd,VAe,f1,JAe,wf,YAe,XAe,QAe,eRe,tRe,rRe,iRe,nRe,_te,aRe,Mte,Ste,Jd,oRe,sRe,_E,q2,fRe,uRe,Ete,hRe,Ate,lRe,ME,Rte,xte,cRe,SE,Tte,dRe,Kd,kte,V0,pRe,bb,RV,j2,xV,Ite,Bte,gRe,yRe,bRe,wRe,_Re,MRe,SRe,R3,_a,Ote,ERe,W0,Pte,ARe,Nte,k0,vv,wb,RRe,_b,Cte,x3,Tn,EE,Yd,xRe,Lte,TRe,Wd,kV,c3,kRe,Dte,IRe,ah,IV,d3,BRe,ORe,Kx,Mb,px,PRe,T3,vx,nl,AE,BV,Ute,NRe,OV,qte,CRe,I0,PV,RE,LRe,jte,xE,Sb,DRe,mv,NV,CV,$d,$Re,URe,k3,qRe,Eb,jRe,Fte,FRe,zRe,HRe,Gd,KRe,LV,DV,$V,ZRe,I3,B0,TE,UV,No,ea,zte,WRe,Ab,qV,Lr,kE,FV,kr,IE,zV,Vh,HV,BE,KV,OE,ZV,Jh,PE,GV,NE,CE,VV,LE,JV,Yn,DE,XV,$E,UE,QV,qE,eJ,Kte,Bf,tJ,JRe,Zx,YRe,XRe,QRe,rJ,exe,txe,rxe,ixe,kf,Of,nxe,axe,oxe,Zte,sxe,fxe,uxe,hxe,lxe,Wte,cxe,dxe,pxe,vxe,mxe,Rb,lo,gxe,yxe,bxe,wxe,jE,O3,Gte,mx,$a,G0,_xe,Mxe,p3,Sxe,Exe,Rxe,FE,F2,xxe,oJ,Txe,kxe,In,xb,Vte,v3,fJ,Ixe,Bxe,j0,Oxe,Jte,ta,nh,Pxe,Nxe,Co,Cxe,Lxe,gx,Yte,Xte,lJ,$xe,Qte,Uxe,HE,qxe,cJ,dJ,KE,jxe,Fxe,_f,zxe,Hxe,pJ,vJ,mJ,Kxe,Zxe,Wxe,z2,Gxe,U0,m3,av,yx,ere,yJ,bJ,tre,bx,rre,ai,Vxe,Jxe,Yxe,SJ,fu,H2,Tb,kb,EJ,Ib,AJ,Bb,ZE,RJ,xJ,WE,TJ,Xxe,GE,kJ,bi,O0,IJ,are,BJ,VE,$e,JE,OJ,tTe,ore,PJ,YE,Ze,XE,NJ,QE,CJ,eA,LJ,tA,DJ,rA,$J,iA,UJ,nA,qJ,en,jJ,aA,FJ,zJ,HJ,oA,KJ,sA,ZJ,fA,WJ,uA,GJ,hA,VJ,lA,JJ,cA,YJ,dA,XJ,pA,QJ,vA,eY,mA,tY,gA,rY,yA,iY,hre,nY,bA,We,wA,aY,_A,oY,Ob,sY,MA,fY,Yh,uY,SA,hY,EA,lY,AA,cY,RA,dY,xA,pY,TA,vY,kA,mY,IA,gY,BA,yY,OA,bY,PA,wY,ks,_Y,STe,NA,MY,CA,SY,gre,K2,EY,LA,AY,DA,RY,Rn,yre,xY,$A,Ge,UA,TY,Xn,qA,kY,jA,IY,_re,BY,FA,Ve,zA,OY,HA,PY,KA,NY,Xh,CY,qd,LY,Pb,ti,DY,oi,Nb,$Y,Cb,ZA,UY,qY,WA,jY,CTe,GA,FY,wi,P0,zY,Z2,HY,Are,KY,VA,Ue,JA,ZY,$Te,Rre,WY,YA,Je,XA,GY,QA,VY,eR,JY,tR,YY,rR,XY,iR,QY,nR,eX,tn,tX,aR,rX,iX,nX,oR,aX,sR,oX,fR,sX,uR,fX,hR,uX,lR,hX,cR,lX,dR,cX,pR,dX,vR,pX,mR,vX,gR,mX,yR,gX,Ire,yX,bR,Ye,wR,bX,_R,wX,Lb,_X,MR,MX,Qh,SX,SR,EX,ER,AX,AR,RX,RR,xX,xR,TX,TR,kX,kR,IX,IR,BX,BR,OX,OR,PX,PR,NX,Is,CX,oke,NR,LX,CR,DX,Dre,W2,$X,LR,UX,DR,qX,xn,$re,jX,$R,Xe,UR,FX,Qn,qR,zX,jR,HX,jre,KX,FR,Qe,zR,ZX,HR,WX,KR,GX,el,VX,jd,JX,Db,ri,YX,wr,yke,bke,wke,_ke,Mke,Ske,Eke,Ake,Rke,xke,Tke,kke,Ike,Bke,Oke,Pke,Nke,Cke,Lke,Dke,$ke,Uke,qke,jke,Fke,zke,Hke,Kke,Zke,Wke,Gke,Vke,Jke,Yke,Xke,Qke,eIe,tIe,rIe,iIe,Hre=Ui(()=>{"use strict";Te();Ie();ke();Cu();Xs();v6();Ys();Kf();Bu();Yo();Vo();B2={},jK=!1;Ky={},FK=!1,zK=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;O2={},HK=!1;Q_={},KK=!1;eM={},ZK=!1;tM={},WK=!1;rM={},GK=!1,pn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;iM={},VK=!1,ji=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;nM={},JK=!1,Fi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;aM={},YK=!1,Kr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;oM={},XK=!1,la=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;sM={},QK=!1,pr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;fM={},eZ=!1,Bi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;r_e={},tZ=!1,uM={exports:r_e};Zy={},rZ=!1;hM={},iZ=!1;lM={},nZ=!1;cM={},aZ=!1;dM={},oZ=!1;pM={},sZ=!1;vM={},fZ=!1,mM=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;gM={},uZ=!1,a_e=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;yM={},hZ=!1;bM={},lZ=!1;wM={},cZ=!1;_M={},dZ=!1;MM={},pZ=!1,f_e=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;SM={},vZ=!1;EM={},mZ=!1;AM={},gZ=!1;RM={},yZ=!1,xM=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Tf=u_e();Tf.Readable;Tf.Writable;Tf.Duplex;Tf.Transform;Tf.PassThrough;Tf.finished;Tf.pipeline;Tf.Stream;M4(Tf.finished),M4(Tf.pipeline);TM={},bZ=!1,En=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;kM={},wZ=!1;IM={},_Z=!1;BM={},MZ=!1;OM={},SZ=!1;fQ={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"}},PM={},EZ=!1;NM={},AZ=!1;CM={},RZ=!1,Wy=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;LM={},xZ=!1;DM={},TZ=!1,vf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;$M={},kZ=!1,Io=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Gy={},IZ=!1;Bo={},BZ=!1;UM={},OZ=!1;qM={},PZ=!1;jM={},NZ=!1;FM={},CZ=!1;zM={},LZ=!1;w0={},DZ=!1;HM={},$Z=!1,Vy=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Jy={},UZ=!1;KM={},qZ=!1;Yy={},jZ=!1;ZM={},FZ=!1;WM={},zZ=!1;GM={},HZ=!1;VM={},KZ=!1;JM={},ZZ=!1;YM={},WZ=!1;gQ={"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"}},XM={},VZ=!1;QM={},JZ=!1,gs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;eS={},YZ=!1,Ia=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;tS={},XZ=!1,Zr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;rS={},QZ=!1,mf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;iS={},eW=!1;Xy={},tW=!1,on=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Qy={},rW=!1,Oi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;ys={},iW=!1;nu={},nW=!1;bs={},aW=!1;wQ={},oW=!1,nS={exports:wQ},Fe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;MQ={},sW=!1,aS={exports:MQ},ze=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;ho={},fW=!1;P2={},uW=!1;eb={},hW=!1,lW=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;oS={},cW=!1;sS={},dW=!1;fS={},pW=!1;uS={},vW=!1,vn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;hS={},mW=!1,zi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;lS={},gW=!1,Hi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;cS={},yW=!1,Wr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;dS={},bW=!1,ca=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;pS={},wW=!1,vr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;vS={},_W=!1,Pi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;P_e={},MW=!1,mS={exports:P_e};w3=qi.EventEmitter,If={},xQ={};ws("ERR_INVALID_OPT_VALUE",function(e,r){return'The value "'+r+'" is invalid for option "'+e+'"'},TypeError),ws("ERR_INVALID_ARG_TYPE",function(e,r,n){let u;var a;let d;return typeof r=="string"&&(a="not ",r.substr(0,a.length)===a)?(u="must not be",r=r.replace(/^not /,"")):u="must be",function(l,v,w){return(w===void 0||w>l.length)&&(w=l.length),l.substring(w-v.length,w)===v}(e," argument")?d=`The ${e} ${u} ${SW(r,"type")}`:d=`The "${e}" ${function(l,v,w){return typeof w!="number"&&(w=0),!(w+v.length>l.length)&&l.indexOf(v,w)!==-1}(e,".")?"property":"argument"} ${u} ${SW(r,"type")}`,d+=`. Received type ${typeof n}`,d},TypeError),ws("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),ws("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),ws("ERR_STREAM_PREMATURE_CLOSE","Premature close"),ws("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),ws("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),ws("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),ws("ERR_STREAM_WRITE_AFTER_END","write after end"),ws("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),ws("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),ws("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),If.codes=xQ;TQ=function(){throw new Error("Readable.from is not available in the browser")},ZR=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;kQ=function(e,r){if(gS("noDeprecation"))return e;var n=!1;return function(){if(!n){if(gS("throwDeprecation"))throw new Error(r);gS("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return e.apply(this||ZR,arguments)}};tb=Pr.Buffer,WR=Jt.inspect,L_e=WR&&WR.custom||"inspect",D_e=function(){function e(){(function(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")})(this,e),this.head=null,this.tail=null,this.length=0}var r,n;return r=e,(n=[{key:"push",value:function(u){var a={data:u,next:null};this.length>0?this.tail.next=a:this.head=a,this.tail=a,++this.length}},{key:"unshift",value:function(u){var a={data:u,next:this.head};this.length===0&&(this.tail=a),this.head=a,++this.length}},{key:"shift",value:function(){if(this.length!==0){var u=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,u}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(u){if(this.length===0)return"";for(var a=this.head,d=""+a.data;a=a.next;)d+=u+a.data;return d}},{key:"concat",value:function(u){if(this.length===0)return tb.alloc(0);for(var a,d,l,v=tb.allocUnsafe(u>>>0),w=this.head,m=0;w;)a=w.data,d=v,l=m,tb.prototype.copy.call(a,d,l),m+=w.data.length,w=w.next;return v}},{key:"consume",value:function(u,a){var d;return u<this.head.data.length?(d=this.head.data.slice(0,u),this.head.data=this.head.data.slice(u)):d=u===this.head.data.length?this.shift():a?this._getString(u):this._getBuffer(u),d}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(u){var a=this.head,d=1,l=a.data;for(u-=l.length;a=a.next;){var v=a.data,w=u>v.length?v.length:u;if(w===v.length?l+=v:l+=v.slice(0,u),(u-=w)==0){w===v.length?(++d,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=v.slice(w));break}++d}return this.length-=d,l}},{key:"_getBuffer",value:function(u){var a=tb.allocUnsafe(u),d=this.head,l=1;for(d.data.copy(a),u-=d.data.length;d=d.next;){var v=d.data,w=u>v.length?v.length:u;if(v.copy(a,a.length-u,0,w),(u-=w)==0){w===v.length?(++l,d.next?this.head=d.next:this.head=this.tail=null):(this.head=d,d.data=v.slice(w));break}++l}return this.length-=l,a}},{key:L_e,value:function(u,a){return WR(this,function(d){for(var l=1;l<arguments.length;l++){var v=arguments[l]!=null?arguments[l]:{};l%2?EW(Object(v),!0).forEach(function(w){N_e(d,w,v[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(v)):EW(Object(v)).forEach(function(w){Object.defineProperty(d,w,Object.getOwnPropertyDescriptor(v,w))})}return d}({},a,{depth:0,customInspect:!1}))}}])&&C_e(r.prototype,n),e}(),_0=Br;IQ={destroy:function(e,r){var n=this,u=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return u||a?(r?r(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,_0.nextTick(GR,this,e)):_0.nextTick(GR,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(d){!r&&d?n._writableState?n._writableState.errorEmitted?_0.nextTick($b,n):(n._writableState.errorEmitted=!0,_0.nextTick(AW,n,d)):_0.nextTick(AW,n,d):r?(_0.nextTick($b,n),r(d)):_0.nextTick($b,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(e,r){var n=e._readableState,u=e._writableState;n&&n.autoDestroy||u&&u.autoDestroy?e.destroy(r):e.emit("error",r)}},$_e=If.codes.ERR_INVALID_OPT_VALUE,BQ={getHighWaterMark:function(e,r,n,u){var a=function(d,l,v){return d.highWaterMark!=null?d.highWaterMark:l?d[v]:null}(r,u,n);if(a!=null){if(!isFinite(a)||Math.floor(a)!==a||a<0)throw new $_e(u?n:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}},RW=If.codes.ERR_STREAM_PREMATURE_CLOSE;q_e=function e(r,n,u){if(typeof n=="function")return e(r,null,n);n||(n={}),u=function(A){var k=!1;return function(){if(!k){k=!0;for(var I=arguments.length,B=new Array(I),P=0;P<I;P++)B[P]=arguments[P];A.apply(this,B)}}}(u||U_e);var a=n.readable||n.readable!==!1&&r.readable,d=n.writable||n.writable!==!1&&r.writable,l=function(){r.writable||w()},v=r._writableState&&r._writableState.finished,w=function(){d=!1,v=!0,a||u.call(r)},m=r._readableState&&r._readableState.endEmitted,y=function(){a=!1,m=!0,d||u.call(r)},g=function(A){u.call(r,A)},S=function(){var A;return a&&!m?(r._readableState&&r._readableState.ended||(A=new RW),u.call(r,A)):d&&!v?(r._writableState&&r._writableState.ended||(A=new RW),u.call(r,A)):void 0},R=function(){r.req.on("finish",w)};return function(A){return A.setHeader&&typeof A.abort=="function"}(r)?(r.on("complete",w),r.on("abort",S),r.req?R():r.on("request",R)):d&&!r._writableState&&(r.on("end",l),r.on("close",l)),r.on("end",y),r.on("finish",w),n.error!==!1&&r.on("error",g),r.on("close",S),function(){r.removeListener("complete",w),r.removeListener("abort",S),r.removeListener("request",R),r.req&&r.req.removeListener("finish",w),r.removeListener("end",l),r.removeListener("close",l),r.removeListener("finish",w),r.removeListener("end",y),r.removeListener("error",g),r.removeListener("close",S)}},OQ=Br;j_e=q_e,sl=Symbol("lastResolve"),N0=Symbol("lastReject"),ov=Symbol("error"),n3=Symbol("ended"),F0=Symbol("lastPromise"),VR=Symbol("handlePromise"),z0=Symbol("stream");H_e=Object.getPrototypeOf(function(){}),K_e=Object.setPrototypeOf((ol(yS={get stream(){return this[z0]},next:function(){var e=this,r=this[ov];if(r!==null)return Promise.reject(r);if(this[n3])return Promise.resolve(pl(void 0,!0));if(this[z0].destroyed)return new Promise(function(d,l){OQ.nextTick(function(){e[ov]?l(e[ov]):d(pl(void 0,!0))})});var n,u=this[F0];if(u)n=new Promise(function(d,l){return function(v,w){d.then(function(){if(l[n3])return v(pl(void 0,!0)),void 0;l[VR](v,w)},w)}}(u,this));else{var a=this[z0].read();if(a!==null)return Promise.resolve(pl(a,!1));n=new Promise(this[VR])}return this[F0]=n,n}},Symbol.asyncIterator,function(){return this}),ol(yS,"return",function(){var e=this;return new Promise(function(r,n){e[z0].destroy(null,function(u){if(u)return n(u),void 0;r(pl(void 0,!0))})})}),yS),H_e),Z_e=function(e){var r,n=Object.create(K_e,(ol(r={},z0,{value:e,writable:!0}),ol(r,sl,{value:null,writable:!0}),ol(r,N0,{value:null,writable:!0}),ol(r,ov,{value:null,writable:!0}),ol(r,n3,{value:e._readableState.endEmitted,writable:!0}),ol(r,VR,{value:function(u,a){var d=n[z0].read();d?(n[F0]=null,n[sl]=null,n[N0]=null,u(pl(d,!1))):(n[sl]=u,n[N0]=a)},writable:!0}),r));return n[F0]=null,j_e(e,function(u){if(u&&u.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=n[N0];return a!==null&&(n[F0]=null,n[sl]=null,n[N0]=null,a(u)),n[ov]=u,void 0}var d=n[sl];d!==null&&(n[F0]=null,n[sl]=null,n[N0]=null,d(pl(void 0,!0))),n[n3]=!0}),e.on("readable",z_e.bind(null,n)),n},bS={},xW=!1,W_e=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;wS={},TW=!1,G_e=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;_S={},kW=!1;J_e=PQ(),IW=If.codes.ERR_STREAM_PREMATURE_CLOSE;Ox=function e(r,n,u){if(typeof n=="function")return e(r,null,n);n||(n={}),u=function(A){var k=!1;return function(){if(!k){k=!0;for(var I=arguments.length,B=new Array(I),P=0;P<I;P++)B[P]=arguments[P];A.apply(this,B)}}}(u||Y_e);var a=n.readable||n.readable!==!1&&r.readable,d=n.writable||n.writable!==!1&&r.writable,l=function(){r.writable||w()},v=r._writableState&&r._writableState.finished,w=function(){d=!1,v=!0,a||u.call(r)},m=r._readableState&&r._readableState.endEmitted,y=function(){a=!1,m=!0,d||u.call(r)},g=function(A){u.call(r,A)},S=function(){var A;return a&&!m?(r._readableState&&r._readableState.ended||(A=new IW),u.call(r,A)):d&&!v?(r._writableState&&r._writableState.ended||(A=new IW),u.call(r,A)):void 0},R=function(){r.req.on("finish",w)};return function(A){return A.setHeader&&typeof A.abort=="function"}(r)?(r.on("complete",w),r.on("abort",S),r.req?R():r.on("request",R)):d&&!r._writableState&&(r.on("end",l),r.on("close",l)),r.on("end",y),r.on("finish",w),n.error!==!1&&r.on("error",g),r.on("close",S),function(){r.removeListener("complete",w),r.removeListener("abort",S),r.removeListener("request",R),r.req&&r.req.removeListener("finish",w),r.removeListener("end",l),r.removeListener("close",l),r.removeListener("finish",w),r.removeListener("end",y),r.removeListener("error",g),r.removeListener("close",S)}};rb=Pr.Buffer,JR=Jt.inspect,eMe=JR&&JR.custom||"inspect",tMe=function(){function e(){(function(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")})(this,e),this.head=null,this.tail=null,this.length=0}var r,n;return r=e,(n=[{key:"push",value:function(u){var a={data:u,next:null};this.length>0?this.tail.next=a:this.head=a,this.tail=a,++this.length}},{key:"unshift",value:function(u){var a={data:u,next:this.head};this.length===0&&(this.tail=a),this.head=a,++this.length}},{key:"shift",value:function(){if(this.length!==0){var u=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,u}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(u){if(this.length===0)return"";for(var a=this.head,d=""+a.data;a=a.next;)d+=u+a.data;return d}},{key:"concat",value:function(u){if(this.length===0)return rb.alloc(0);for(var a,d,l,v=rb.allocUnsafe(u>>>0),w=this.head,m=0;w;)a=w.data,d=v,l=m,rb.prototype.copy.call(a,d,l),m+=w.data.length,w=w.next;return v}},{key:"consume",value:function(u,a){var d;return u<this.head.data.length?(d=this.head.data.slice(0,u),this.head.data=this.head.data.slice(u)):d=u===this.head.data.length?this.shift():a?this._getString(u):this._getBuffer(u),d}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(u){var a=this.head,d=1,l=a.data;for(u-=l.length;a=a.next;){var v=a.data,w=u>v.length?v.length:u;if(w===v.length?l+=v:l+=v.slice(0,u),(u-=w)==0){w===v.length?(++d,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=v.slice(w));break}++d}return this.length-=d,l}},{key:"_getBuffer",value:function(u){var a=rb.allocUnsafe(u),d=this.head,l=1;for(d.data.copy(a),u-=d.data.length;d=d.next;){var v=d.data,w=u>v.length?v.length:u;if(v.copy(a,a.length-u,0,w),(u-=w)==0){w===v.length?(++l,d.next?this.head=d.next:this.head=this.tail=null):(this.head=d,d.data=v.slice(w));break}++l}return this.length-=l,a}},{key:eMe,value:function(u,a){return JR(this,function(d){for(var l=1;l<arguments.length;l++){var v=arguments[l]!=null?arguments[l]:{};l%2?BW(Object(v),!0).forEach(function(w){X_e(d,w,v[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(v)):BW(Object(v)).forEach(function(w){Object.defineProperty(d,w,Object.getOwnPropertyDescriptor(v,w))})}return d}({},a,{depth:0,customInspect:!1}))}}])&&Q_e(r.prototype,n),e}(),M0=Br;NQ={destroy:function(e,r){var n=this,u=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return u||a?(r?r(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,M0.nextTick(YR,this,e)):M0.nextTick(YR,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(d){!r&&d?n._writableState?n._writableState.errorEmitted?M0.nextTick(Ub,n):(n._writableState.errorEmitted=!0,M0.nextTick(OW,n,d)):M0.nextTick(OW,n,d):r?(M0.nextTick(Ub,n),r(d)):M0.nextTick(Ub,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(e,r){var n=e._readableState,u=e._writableState;n&&n.autoDestroy||u&&u.autoDestroy?e.destroy(r):e.emit("error",r)}},rMe=If.codes.ERR_INVALID_OPT_VALUE,CQ={getHighWaterMark:function(e,r,n,u){var a=function(d,l,v){return d.highWaterMark!=null?d.highWaterMark:l?d[v]:null}(r,u,n);if(a!=null){if(!isFinite(a)||Math.floor(a)!==a||a<0)throw new rMe(u?n:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}},LQ=Br;iMe=Ox,ul=Symbol("lastResolve"),C0=Symbol("lastReject"),sv=Symbol("error"),a3=Symbol("ended"),H0=Symbol("lastPromise"),XR=Symbol("handlePromise"),K0=Symbol("stream");oMe=Object.getPrototypeOf(function(){}),sMe=Object.setPrototypeOf((fl(MS={get stream(){return this[K0]},next:function(){var e=this,r=this[sv];if(r!==null)return Promise.reject(r);if(this[a3])return Promise.resolve(vl(void 0,!0));if(this[K0].destroyed)return new Promise(function(d,l){LQ.nextTick(function(){e[sv]?l(e[sv]):d(vl(void 0,!0))})});var n,u=this[H0];if(u)n=new Promise(function(d,l){return function(v,w){d.then(function(){if(l[a3])return v(vl(void 0,!0)),void 0;l[XR](v,w)},w)}}(u,this));else{var a=this[K0].read();if(a!==null)return Promise.resolve(vl(a,!1));n=new Promise(this[XR])}return this[H0]=n,n}},Symbol.asyncIterator,function(){return this}),fl(MS,"return",function(){var e=this;return new Promise(function(r,n){e[K0].destroy(null,function(u){if(u)return n(u),void 0;r(vl(void 0,!0))})})}),MS),oMe),fMe=function(e){var r,n=Object.create(sMe,(fl(r={},K0,{value:e,writable:!0}),fl(r,ul,{value:null,writable:!0}),fl(r,C0,{value:null,writable:!0}),fl(r,sv,{value:null,writable:!0}),fl(r,a3,{value:e._readableState.endEmitted,writable:!0}),fl(r,XR,{value:function(u,a){var d=n[K0].read();d?(n[H0]=null,n[ul]=null,n[C0]=null,u(vl(d,!1))):(n[ul]=u,n[C0]=a)},writable:!0}),r));return n[H0]=null,iMe(e,function(u){if(u&&u.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=n[C0];return a!==null&&(n[H0]=null,n[ul]=null,n[C0]=null,a(u)),n[sv]=u,void 0}var d=n[ul];d!==null&&(n[H0]=null,n[ul]=null,n[C0]=null,d(vl(void 0,!0))),n[a3]=!0}),e.on("readable",aMe.bind(null,n)),n},SS={},PW=!1,uMe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;ES={},NW=!1,lMe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;AS={},CW=!1;cMe=DQ(),$Q=cv();UQ=ih;_3=If.codes,dMe=_3.ERR_METHOD_NOT_IMPLEMENTED,pMe=_3.ERR_MULTIPLE_CALLBACK,vMe=_3.ERR_TRANSFORM_ALREADY_TRANSFORMING,mMe=_3.ERR_TRANSFORM_WITH_LENGTH_0,qb=$Q;jr(ih,qb),ih.prototype.push=function(e,r){return this._transformState.needTransform=!1,qb.prototype.push.call(this,e,r)},ih.prototype._transform=function(e,r,n){n(new dMe("_transform()"))},ih.prototype._write=function(e,r,n){var u=this._transformState;if(u.writecb=n,u.writechunk=e,u.writeencoding=r,!u.transforming){var a=this._readableState;(u.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},ih.prototype._read=function(e){var r=this._transformState;r.writechunk===null||r.transforming?r.needTransform=!0:(r.transforming=!0,this._transform(r.writechunk,r.writeencoding,r.afterTransform))},ih.prototype._destroy=function(e,r){qb.prototype._destroy.call(this,e,function(n){r(n)})};qQ=UQ;jQ=dv;FQ=qQ;jr(dv,FQ),dv.prototype._transform=function(e,r,n){n(null,e)};bMe=jQ,zQ=If.codes,wMe=zQ.ERR_MISSING_ARGS,_Me=zQ.ERR_STREAM_DESTROYED;AMe=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var u,a=EMe(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new wMe("streams");var d=r.map(function(l,v){var w=v<r.length-1;return MMe(l,w,v>0,function(m){u||(u=m),m&&d.forEach($W),w||(d.forEach($W),a(u))})});return r.reduce(SMe)},QR=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;HQ=Bs;ex=qi.EventEmitter;jr(Bs,ex),Bs.Readable=J_e,Bs.Writable=cMe,Bs.Duplex=$Q,Bs.Transform=qQ,Bs.PassThrough=bMe,Bs.finished=Ox,Bs.pipeline=AMe,Bs.Stream=Bs,Bs.prototype.pipe=function(e,r){var n=this||QR;function u(y){e.writable&&e.write(y)===!1&&n.pause&&n.pause()}function a(){n.readable&&n.resume&&n.resume()}n.on("data",u),e.on("drain",a),e._isStdio||r&&r.end===!1||(n.on("end",l),n.on("close",v));var d=!1;function l(){d||(d=!0,e.end())}function v(){d||(d=!0,typeof e.destroy=="function"&&e.destroy())}function w(y){if(m(),ex.listenerCount(this||QR,"error")===0)throw y}function m(){n.removeListener("data",u),e.removeListener("drain",a),n.removeListener("end",l),n.removeListener("close",v),n.removeListener("error",w),e.removeListener("error",w),n.removeListener("end",m),n.removeListener("close",m),e.removeListener("close",m)}return n.on("error",w),e.on("error",w),n.on("end",m),n.on("close",m),e.on("close",m),e.emit("pipe",n),e};Cs=HQ;Cs.Readable;Cs.Writable;Cs.Duplex;Cs.Transform;Cs.PassThrough;Cs.finished;Cs.pipeline;Cs.Stream;xS={},UW=!1,An=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;TS={},qW=!1;kS={},jW=!1;IS={},FW=!1;BS={},zW=!1;WQ={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"}},OS={},HW=!1;PS={},KW=!1;NS={},ZW=!1,ib=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;CS={},WW=!1;LS={},GW=!1,gf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;DS={},VW=!1,Oo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;nb={},JW=!1;Po={},YW=!1;$S={},XW=!1;US={},QW=!1;qS={},eG=!1;jS={},tG=!1;FS={},rG=!1;S0={},iG=!1;zS={},nG=!1,ab=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;ob={},aG=!1;HS={},oG=!1;sb={},sG=!1;KS={},fG=!1;ZS={},uG=!1;WS={},hG=!1;GS={},lG=!1;VS={},cG=!1;JS={},dG=!1;ree={"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"}},YS={},vG=!1;XS={},mG=!1,_s=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;QS={},gG=!1,Ba=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;eE={},yG=!1,Gr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;tE={},bG=!1,yf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;rE={},wG=!1;fb={},_G=!1,sn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;ub={},MG=!1,Ni=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;Ms={},SG=!1;au={},EG=!1;Ss={},AG=!1;aee={},RG=!1,iE={exports:aee},He=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;see={},xG=!1,nE={exports:see},Ke=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;s3=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,vo={},KMe=function(e,r){if(e.indexOf)return e.indexOf(r);for(var n=0;n<e.length;n++)if(e[n]===r)return n;return-1},Ld=function(e){if(Object.keys)return Object.keys(e);var r=[];for(var n in e)r.push(n);return r},E0=function(e,r){if(e.forEach)return e.forEach(r);for(var n=0;n<e.length;n++)r(e[n],n,e)},ZMe=function(){try{return Object.defineProperty({},"_",{}),function(e,r,n){Object.defineProperty(e,r,{writable:!0,enumerable:!1,configurable:!0,value:n})}}catch{return function(r,n,u){r[n]=u}}}(),TG=["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"];jb.prototype={};uu=vo.Script=function(e){if(!((this||s3)instanceof uu))return new uu(e);(this||s3).code=e};uu.prototype.runInContext=function(e){if(!(e instanceof jb))throw new TypeError("needs a 'context' argument.");var r=document.createElement("iframe");r.style||(r.style={}),r.style.display="none",document.body.appendChild(r);var n=r.contentWindow,u=n.eval,a=n.execScript;!u&&a&&(a.call(n,"null"),u=n.eval),E0(Ld(e),function(v){n[v]=e[v]}),E0(TG,function(v){e[v]&&(n[v]=e[v])});var d=Ld(n),l=u.call(n,(this||s3).code);return E0(Ld(n),function(v){(v in e||KMe(d,v)===-1)&&(e[v]=n[v])}),E0(TG,function(v){v in e||ZMe(e,v,n[v])}),document.body.removeChild(r),l},uu.prototype.runInThisContext=function(){return eval((this||s3).code)},uu.prototype.runInNewContext=function(e){var r=uu.createContext(e),n=this.runInContext(r);return e&&E0(Ld(r),function(u){e[u]=r[u]}),n},E0(Ld(uu.prototype),function(e){vo[e]=uu[e]=function(r){var n=uu(r);return n[e].apply(n,[].slice.call(arguments,1))}}),vo.isContext=function(e){return e instanceof jb},vo.createScript=function(e){return vo.Script(e)},vo.createContext=uu.createContext=function(e){var r=new jb;return typeof e=="object"&&E0(Ld(e),function(n){r[n]=e[n]}),r};vo.Script;vo.createContext;vo.createScript;vo.isContext;vo.runInContext;vo.runInNewContext;vo.runInThisContext;kG=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,WMe=Br,GMe=mi.Buffer,hb=kG.crypto||kG.msCrypto,a1=hb&&hb.getRandomValues?function(e,r){if(e>4294967295)throw new RangeError("requested too many random bytes");var n=GMe.allocUnsafe(e);if(e>0)if(e>65536)for(var u=0;u<e;u+=65536)hb.getRandomValues(n.slice(u,u+65536));else hb.getRandomValues(n);return typeof r=="function"?WMe.nextTick(function(){r(null,n)}):n}:function(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
137
137
|
Use Chrome, Firefox or Internet Explorer 11`)},Fb=mi.Buffer,fee=Cs.Transform;jr(tl,fee),tl.prototype._transform=function(e,r,n){var u=null;try{this.update(e,r)}catch(a){u=a}n(u)},tl.prototype._flush=function(e){var r=null;try{this.push(this.digest())}catch(n){r=n}e(r)},tl.prototype.update=function(e,r){if(function(v,w){if(!Fb.isBuffer(v)&&typeof v!="string")throw new TypeError(w+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");Fb.isBuffer(e)||(e=Fb.from(e,r));for(var n=this._block,u=0;this._blockOffset+e.length-u>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)n[a++]=e[u++];this._update(),this._blockOffset=0}for(;u<e.length;)n[this._blockOffset++]=e[u++];for(var d=0,l=8*e.length;l>0;++d)this._length[d]+=l,(l=this._length[d]/4294967296|0)>0&&(this._length[d]-=4294967296*l);return this},tl.prototype._update=function(){throw new Error("_update is not implemented")},tl.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var r=this._digest();e!==void 0&&(r=r.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return r},tl.prototype._digest=function(){throw new Error("_digest is not implemented")};uee=tl,VMe=jr,hee=uee,JMe=mi.Buffer,YMe=new Array(16);VMe(zb,hee),zb.prototype._update=function(){for(var e=YMe,r=0;r<16;++r)e[r]=this._block.readInt32LE(4*r);var n=this._a,u=this._b,a=this._c,d=this._d;n=Oa(n,u,a,d,e[0],3614090360,7),d=Oa(d,n,u,a,e[1],3905402710,12),a=Oa(a,d,n,u,e[2],606105819,17),u=Oa(u,a,d,n,e[3],3250441966,22),n=Oa(n,u,a,d,e[4],4118548399,7),d=Oa(d,n,u,a,e[5],1200080426,12),a=Oa(a,d,n,u,e[6],2821735955,17),u=Oa(u,a,d,n,e[7],4249261313,22),n=Oa(n,u,a,d,e[8],1770035416,7),d=Oa(d,n,u,a,e[9],2336552879,12),a=Oa(a,d,n,u,e[10],4294925233,17),u=Oa(u,a,d,n,e[11],2304563134,22),n=Oa(n,u,a,d,e[12],1804603682,7),d=Oa(d,n,u,a,e[13],4254626195,12),a=Oa(a,d,n,u,e[14],2792965006,17),n=Pa(n,u=Oa(u,a,d,n,e[15],1236535329,22),a,d,e[1],4129170786,5),d=Pa(d,n,u,a,e[6],3225465664,9),a=Pa(a,d,n,u,e[11],643717713,14),u=Pa(u,a,d,n,e[0],3921069994,20),n=Pa(n,u,a,d,e[5],3593408605,5),d=Pa(d,n,u,a,e[10],38016083,9),a=Pa(a,d,n,u,e[15],3634488961,14),u=Pa(u,a,d,n,e[4],3889429448,20),n=Pa(n,u,a,d,e[9],568446438,5),d=Pa(d,n,u,a,e[14],3275163606,9),a=Pa(a,d,n,u,e[3],4107603335,14),u=Pa(u,a,d,n,e[8],1163531501,20),n=Pa(n,u,a,d,e[13],2850285829,5),d=Pa(d,n,u,a,e[2],4243563512,9),a=Pa(a,d,n,u,e[7],1735328473,14),n=Na(n,u=Pa(u,a,d,n,e[12],2368359562,20),a,d,e[5],4294588738,4),d=Na(d,n,u,a,e[8],2272392833,11),a=Na(a,d,n,u,e[11],1839030562,16),u=Na(u,a,d,n,e[14],4259657740,23),n=Na(n,u,a,d,e[1],2763975236,4),d=Na(d,n,u,a,e[4],1272893353,11),a=Na(a,d,n,u,e[7],4139469664,16),u=Na(u,a,d,n,e[10],3200236656,23),n=Na(n,u,a,d,e[13],681279174,4),d=Na(d,n,u,a,e[0],3936430074,11),a=Na(a,d,n,u,e[3],3572445317,16),u=Na(u,a,d,n,e[6],76029189,23),n=Na(n,u,a,d,e[9],3654602809,4),d=Na(d,n,u,a,e[12],3873151461,11),a=Na(a,d,n,u,e[15],530742520,16),n=Ca(n,u=Na(u,a,d,n,e[2],3299628645,23),a,d,e[0],4096336452,6),d=Ca(d,n,u,a,e[7],1126891415,10),a=Ca(a,d,n,u,e[14],2878612391,15),u=Ca(u,a,d,n,e[5],4237533241,21),n=Ca(n,u,a,d,e[12],1700485571,6),d=Ca(d,n,u,a,e[3],2399980690,10),a=Ca(a,d,n,u,e[10],4293915773,15),u=Ca(u,a,d,n,e[1],2240044497,21),n=Ca(n,u,a,d,e[8],1873313359,6),d=Ca(d,n,u,a,e[15],4264355552,10),a=Ca(a,d,n,u,e[6],2734768916,15),u=Ca(u,a,d,n,e[13],1309151649,21),n=Ca(n,u,a,d,e[4],4149444226,6),d=Ca(d,n,u,a,e[11],3174756917,10),a=Ca(a,d,n,u,e[2],718787259,15),u=Ca(u,a,d,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+u|0,this._c=this._c+a|0,this._d=this._d+d|0},zb.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 e=JMe.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e};Lx=zb,aE=Pr.Buffer,XMe=jr,lee=uee,QMe=new Array(16),N2=[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],C2=[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],L2=[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],D2=[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],$2=[0,1518500249,1859775393,2400959708,2840853838],U2=[1352829926,1548603684,1836072691,2053994217,0];XMe(Hb,lee),Hb.prototype._update=function(){for(var e=QMe,r=0;r<16;++r)e[r]=this._block.readInt32LE(4*r);for(var n=0|this._a,u=0|this._b,a=0|this._c,d=0|this._d,l=0|this._e,v=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 R,A;S<16?(R=IG(n,u,a,d,l,e[N2[S]],$2[0],L2[S]),A=NG(v,w,m,y,g,e[C2[S]],U2[0],D2[S])):S<32?(R=BG(n,u,a,d,l,e[N2[S]],$2[1],L2[S]),A=PG(v,w,m,y,g,e[C2[S]],U2[1],D2[S])):S<48?(R=OG(n,u,a,d,l,e[N2[S]],$2[2],L2[S]),A=OG(v,w,m,y,g,e[C2[S]],U2[2],D2[S])):S<64?(R=PG(n,u,a,d,l,e[N2[S]],$2[3],L2[S]),A=BG(v,w,m,y,g,e[C2[S]],U2[3],D2[S])):(R=NG(n,u,a,d,l,e[N2[S]],$2[4],L2[S]),A=IG(v,w,m,y,g,e[C2[S]],U2[4],D2[S])),n=l,l=d,d=Y0(a,10),a=u,u=R,v=g,g=y,y=Y0(m,10),m=w,w=A}var k=this._b+a+y|0;this._b=this._c+d+g|0,this._c=this._d+l+v|0,this._d=this._e+n+w|0,this._e=this._a+u+m|0,this._a=k},Hb.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 e=aE.alloc?aE.alloc(20):new aE(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e};Dx=Hb,mn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,cee=mi.Buffer;Kb.prototype.update=function(e,r){typeof e=="string"&&(r=r||"utf8",e=cee.from(e,r));for(var n=(this||mn)._block,u=(this||mn)._blockSize,a=e.length,d=(this||mn)._len,l=0;l<a;){for(var v=d%u,w=Math.min(a-l,u-v),m=0;m<w;m++)n[v+m]=e[l+m];l+=w,(d+=w)%u==0&&this._update(n)}return(this||mn)._len+=a,this||mn},Kb.prototype.digest=function(e){var r=(this||mn)._len%(this||mn)._blockSize;(this||mn)._block[r]=128,(this||mn)._block.fill(0,r+1),r>=(this||mn)._finalSize&&(this._update((this||mn)._block),(this||mn)._block.fill(0));var n=8*(this||mn)._len;if(n<=4294967295)(this||mn)._block.writeUInt32BE(n,(this||mn)._blockSize-4);else{var u=(4294967295&n)>>>0,a=(n-u)/4294967296;(this||mn)._block.writeUInt32BE(a,(this||mn)._blockSize-8),(this||mn)._block.writeUInt32BE(u,(this||mn)._blockSize-4)}this._update((this||mn)._block);var d=this._hash();return e?d.toString(e):d},Kb.prototype._update=function(){throw new Error("_update must be implemented by subclass")};o1=Kb,Vr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,eSe=jr,dee=o1,tSe=mi.Buffer,rSe=[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],iSe=new Array(64);eSe(G2,dee),G2.prototype.init=function(){return(this||Vr)._a=1779033703,(this||Vr)._b=3144134277,(this||Vr)._c=1013904242,(this||Vr)._d=2773480762,(this||Vr)._e=1359893119,(this||Vr)._f=2600822924,(this||Vr)._g=528734635,(this||Vr)._h=1541459225,this||Vr},G2.prototype._update=function(e){for(var r,n=(this||Vr)._w,u=0|(this||Vr)._a,a=0|(this||Vr)._b,d=0|(this||Vr)._c,l=0|(this||Vr)._d,v=0|(this||Vr)._e,w=0|(this||Vr)._f,m=0|(this||Vr)._g,y=0|(this||Vr)._h,g=0;g<16;++g)n[g]=e.readInt32BE(4*g);for(;g<64;++g)n[g]=0|(((r=n[g-2])>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+n[g-7]+fSe(n[g-15])+n[g-16];for(var S=0;S<64;++S){var R=y+sSe(v)+nSe(v,w,m)+rSe[S]+n[S]|0,A=oSe(u)+aSe(u,a,d)|0;y=m,m=w,w=v,v=l+R|0,l=d,d=a,a=u,u=R+A|0}(this||Vr)._a=u+(this||Vr)._a|0,(this||Vr)._b=a+(this||Vr)._b|0,(this||Vr)._c=d+(this||Vr)._c|0,(this||Vr)._d=l+(this||Vr)._d|0,(this||Vr)._e=v+(this||Vr)._e|0,(this||Vr)._f=w+(this||Vr)._f|0,(this||Vr)._g=m+(this||Vr)._g|0,(this||Vr)._h=y+(this||Vr)._h|0},G2.prototype._hash=function(){var e=tSe.allocUnsafe(32);return e.writeInt32BE((this||Vr)._a,0),e.writeInt32BE((this||Vr)._b,4),e.writeInt32BE((this||Vr)._c,8),e.writeInt32BE((this||Vr)._d,12),e.writeInt32BE((this||Vr)._e,16),e.writeInt32BE((this||Vr)._f,20),e.writeInt32BE((this||Vr)._g,24),e.writeInt32BE((this||Vr)._h,28),e};pee=G2,Ki=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,uSe=jr,vee=o1,hSe=mi.Buffer,lSe=[1518500249,1859775393,-1894007588,-899497514],cSe=new Array(80);uSe(V2,vee),V2.prototype.init=function(){return(this||Ki)._a=1732584193,(this||Ki)._b=4023233417,(this||Ki)._c=2562383102,(this||Ki)._d=271733878,(this||Ki)._e=3285377520,this||Ki},V2.prototype._update=function(e){for(var r,n=(this||Ki)._w,u=0|(this||Ki)._a,a=0|(this||Ki)._b,d=0|(this||Ki)._c,l=0|(this||Ki)._d,v=0|(this||Ki)._e,w=0;w<16;++w)n[w]=e.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|((r=u)<<5|r>>>27)+pSe(y,a,d,l)+v+n[m]+lSe[y];v=l,l=d,d=dSe(a),a=u,u=g}(this||Ki)._a=u+(this||Ki)._a|0,(this||Ki)._b=a+(this||Ki)._b|0,(this||Ki)._c=d+(this||Ki)._c|0,(this||Ki)._d=l+(this||Ki)._d|0,(this||Ki)._e=v+(this||Ki)._e|0},V2.prototype._hash=function(){var e=hSe.allocUnsafe(20);return e.writeInt32BE(0|(this||Ki)._a,0),e.writeInt32BE(0|(this||Ki)._b,4),e.writeInt32BE(0|(this||Ki)._c,8),e.writeInt32BE(0|(this||Ki)._d,12),e.writeInt32BE(0|(this||Ki)._e,16),e};vSe=V2,Zi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,mSe=jr,mee=o1,gSe=mi.Buffer,ySe=[1518500249,1859775393,-1894007588,-899497514],bSe=new Array(80);mSe(J2,mee),J2.prototype.init=function(){return(this||Zi)._a=1732584193,(this||Zi)._b=4023233417,(this||Zi)._c=2562383102,(this||Zi)._d=271733878,(this||Zi)._e=3285377520,this||Zi},J2.prototype._update=function(e){for(var r,n=(this||Zi)._w,u=0|(this||Zi)._a,a=0|(this||Zi)._b,d=0|(this||Zi)._c,l=0|(this||Zi)._d,v=0|(this||Zi)._e,w=0;w<16;++w)n[w]=e.readInt32BE(4*w);for(;w<80;++w)n[w]=(r=n[w-3]^n[w-8]^n[w-14]^n[w-16])<<1|r>>>31;for(var m=0;m<80;++m){var y=~~(m/20),g=wSe(u)+MSe(y,a,d,l)+v+n[m]+ySe[y]|0;v=l,l=d,d=_Se(a),a=u,u=g}(this||Zi)._a=u+(this||Zi)._a|0,(this||Zi)._b=a+(this||Zi)._b|0,(this||Zi)._c=d+(this||Zi)._c|0,(this||Zi)._d=l+(this||Zi)._d|0,(this||Zi)._e=v+(this||Zi)._e|0},J2.prototype._hash=function(){var e=gSe.allocUnsafe(20);return e.writeInt32BE(0|(this||Zi)._a,0),e.writeInt32BE(0|(this||Zi)._b,4),e.writeInt32BE(0|(this||Zi)._c,8),e.writeInt32BE(0|(this||Zi)._d,12),e.writeInt32BE(0|(this||Zi)._e,16),e};SSe=J2,ga=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,ESe=jr,ASe=pee,RSe=o1,xSe=mi.Buffer,TSe=new Array(64);ESe(Zb,ASe),Zb.prototype.init=function(){return(this||ga)._a=3238371032,(this||ga)._b=914150663,(this||ga)._c=812702999,(this||ga)._d=4144912697,(this||ga)._e=4290775857,(this||ga)._f=1750603025,(this||ga)._g=1694076839,(this||ga)._h=3204075428,this||ga},Zb.prototype._hash=function(){var e=xSe.allocUnsafe(28);return e.writeInt32BE((this||ga)._a,0),e.writeInt32BE((this||ga)._b,4),e.writeInt32BE((this||ga)._c,8),e.writeInt32BE((this||ga)._d,12),e.writeInt32BE((this||ga)._e,16),e.writeInt32BE((this||ga)._f,20),e.writeInt32BE((this||ga)._g,24),e};kSe=Zb,mr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,ISe=jr,gee=o1,BSe=mi.Buffer,CG=[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],OSe=new Array(160);ISe(Y2,gee),Y2.prototype.init=function(){return(this||mr)._ah=1779033703,(this||mr)._bh=3144134277,(this||mr)._ch=1013904242,(this||mr)._dh=2773480762,(this||mr)._eh=1359893119,(this||mr)._fh=2600822924,(this||mr)._gh=528734635,(this||mr)._hh=1541459225,(this||mr)._al=4089235720,(this||mr)._bl=2227873595,(this||mr)._cl=4271175723,(this||mr)._dl=1595750129,(this||mr)._el=2917565137,(this||mr)._fl=725511199,(this||mr)._gl=4215389547,(this||mr)._hl=327033209,this||mr},Y2.prototype._update=function(e){for(var r=(this||mr)._w,n=0|(this||mr)._ah,u=0|(this||mr)._bh,a=0|(this||mr)._ch,d=0|(this||mr)._dh,l=0|(this||mr)._eh,v=0|(this||mr)._fh,w=0|(this||mr)._gh,m=0|(this||mr)._hh,y=0|(this||mr)._al,g=0|(this||mr)._bl,S=0|(this||mr)._cl,R=0|(this||mr)._dl,A=0|(this||mr)._el,k=0|(this||mr)._fl,I=0|(this||mr)._gl,B=0|(this||mr)._hl,P=0;P<32;P+=2)r[P]=e.readInt32BE(4*P),r[P+1]=e.readInt32BE(4*P+4);for(;P<160;P+=2){var C=r[P-30],q=r[P-30+1],K=PSe(C,q),V=NSe(q,C),j=CSe(C=r[P-4],q=r[P-4+1]),z=LSe(q,C),Y=r[P-14],E=r[P-14+1],i=r[P-32],s=r[P-32+1],f=V+E|0,c=K+Y+da(f,V)|0;c=(c=c+j+da(f=f+z|0,z)|0)+i+da(f=f+s|0,s)|0,r[P]=c,r[P+1]=f}for(var p=0;p<160;p+=2){c=r[p],f=r[p+1];var _=DG(n,u,a),x=DG(y,g,S),o=$G(n,y),t=$G(y,n),h=UG(l,A),b=UG(A,l),M=CG[p],T=CG[p+1],D=LG(l,v,w),Q=LG(A,k,I),W=B+b|0,X=m+h+da(W,B)|0;X=(X=(X=X+D+da(W=W+Q|0,Q)|0)+M+da(W=W+T|0,T)|0)+c+da(W=W+f|0,f)|0;var G=t+x|0,J=o+_+da(G,t)|0;m=w,B=I,w=v,I=k,v=l,k=A,l=d+X+da(A=R+W|0,R)|0,d=a,R=S,a=u,S=g,u=n,g=y,n=X+J+da(y=W+G|0,W)|0}(this||mr)._al=(this||mr)._al+y|0,(this||mr)._bl=(this||mr)._bl+g|0,(this||mr)._cl=(this||mr)._cl+S|0,(this||mr)._dl=(this||mr)._dl+R|0,(this||mr)._el=(this||mr)._el+A|0,(this||mr)._fl=(this||mr)._fl+k|0,(this||mr)._gl=(this||mr)._gl+I|0,(this||mr)._hl=(this||mr)._hl+B|0,(this||mr)._ah=(this||mr)._ah+n+da((this||mr)._al,y)|0,(this||mr)._bh=(this||mr)._bh+u+da((this||mr)._bl,g)|0,(this||mr)._ch=(this||mr)._ch+a+da((this||mr)._cl,S)|0,(this||mr)._dh=(this||mr)._dh+d+da((this||mr)._dl,R)|0,(this||mr)._eh=(this||mr)._eh+l+da((this||mr)._el,A)|0,(this||mr)._fh=(this||mr)._fh+v+da((this||mr)._fl,k)|0,(this||mr)._gh=(this||mr)._gh+w+da((this||mr)._gl,I)|0,(this||mr)._hh=(this||mr)._hh+m+da((this||mr)._hl,B)|0},Y2.prototype._hash=function(){var e=BSe.allocUnsafe(64);function r(n,u,a){e.writeInt32BE(n,a),e.writeInt32BE(u,a+4)}return r((this||mr)._ah,(this||mr)._al,0),r((this||mr)._bh,(this||mr)._bl,8),r((this||mr)._ch,(this||mr)._cl,16),r((this||mr)._dh,(this||mr)._dl,24),r((this||mr)._eh,(this||mr)._el,32),r((this||mr)._fh,(this||mr)._fl,40),r((this||mr)._gh,(this||mr)._gl,48),r((this||mr)._hh,(this||mr)._hl,56),e};yee=Y2,Ci=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,DSe=jr,$Se=yee,USe=o1,qSe=mi.Buffer,jSe=new Array(160);DSe(Wb,$Se),Wb.prototype.init=function(){return(this||Ci)._ah=3418070365,(this||Ci)._bh=1654270250,(this||Ci)._ch=2438529370,(this||Ci)._dh=355462360,(this||Ci)._eh=1731405415,(this||Ci)._fh=2394180231,(this||Ci)._gh=3675008525,(this||Ci)._hh=1203062813,(this||Ci)._al=3238371032,(this||Ci)._bl=914150663,(this||Ci)._cl=812702999,(this||Ci)._dl=4144912697,(this||Ci)._el=4290775857,(this||Ci)._fl=1750603025,(this||Ci)._gl=1694076839,(this||Ci)._hl=3204075428,this||Ci},Wb.prototype._hash=function(){var e=qSe.allocUnsafe(48);function r(n,u,a){e.writeInt32BE(n,a),e.writeInt32BE(u,a+4)}return r((this||Ci)._ah,(this||Ci)._al,0),r((this||Ci)._bh,(this||Ci)._bl,8),r((this||Ci)._ch,(this||Ci)._cl,16),r((this||Ci)._dh,(this||Ci)._dl,24),r((this||Ci)._eh,(this||Ci)._el,32),r((this||Ci)._fh,(this||Ci)._fl,40),e};FSe=Wb,bee={exports:rl={}};(rl=bee.exports=function(e){e=e.toLowerCase();var r=rl[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r}).sha=vSe,rl.sha1=SSe,rl.sha224=kSe,rl.sha256=pee,rl.sha384=FSe,rl.sha512=yee;$x=bee.exports,kn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,qG=mi.Buffer,wee=Cs.Transform,zSe=qn.StringDecoder;jr(Mf,wee),Mf.prototype.update=function(e,r,n){typeof e=="string"&&(e=qG.from(e,r));var u=this._update(e);return(this||kn).hashMode?this||kn:(n&&(u=this._toString(u,n)),u)},Mf.prototype.setAutoPadding=function(){},Mf.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},Mf.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},Mf.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},Mf.prototype._transform=function(e,r,n){var u;try{(this||kn).hashMode?this._update(e):this.push(this._update(e))}catch(a){u=a}finally{n(u)}},Mf.prototype._flush=function(e){var r;try{this.push(this.__final())}catch(n){r=n}e(r)},Mf.prototype._finalOrDigest=function(e){var r=this.__final()||qG.alloc(0);return e&&(r=this._toString(r,e,!0)),r},Mf.prototype._toString=function(e,r,n){if((this||kn)._decoder||((this||kn)._decoder=new zSe(r),(this||kn)._encoding=r),(this||kn)._encoding!==r)throw new Error("can't switch encodings");var u=(this||kn)._decoder.write(e);return n&&(u+=(this||kn)._decoder.end()),u};yl=Mf,HSe=Lx,KSe=Dx,ZSe=$x,_ee=yl;jr(Gb,_ee),Gb.prototype._update=function(e){this._hash.update(e)},Gb.prototype._final=function(){return this._hash.digest()};Sv=function(e){return(e=e.toLowerCase())==="md5"?new HSe:e==="rmd160"||e==="ripemd160"?new KSe:new Gb(ZSe(e))},WSe=Lx,Mee=function(e){return new WSe().update(e).digest()},GSe=jr,Z0=mi.Buffer,See=yl,VSe=Z0.alloc(128);GSe(Vb,See),Vb.prototype._update=function(e){this._hash.push(e)},Vb.prototype._final=function(){var e=this._alg(Z0.concat(this._hash));return this._alg(Z0.concat([this._opad,e]))};JSe=jr,YSe=Vb,Eee=yl,X2=mi.Buffer,XSe=Mee,tx=Dx,rx=$x,QSe=X2.alloc(128);JSe(fv,Eee),fv.prototype._update=function(e){this._hash.update(e)},fv.prototype._final=function(){var e=this._hash.digest();return(this._alg==="rmd160"?new tx:rx(this._alg)).update(this._opad).update(e).digest()};Aee=function(e,r){return(e=e.toLowerCase())==="rmd160"||e==="ripemd160"?new fv("rmd160",r):e==="md5"?new YSe(XSe,r):new fv(e,r)},Ree={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"}},eEe=Pr.Buffer,tEe=Math.pow(2,30)-1;xee=function(e,r,n,u){if(jG(e,"Password"),jG(r,"Salt"),typeof n!="number")throw new TypeError("Iterations not a number");if(n<0)throw new TypeError("Bad iterations");if(typeof u!="number")throw new TypeError("Key length not a number");if(u<0||u>tEe||u!=u)throw new TypeError("Bad key length")},FG=Br;FG.browser?ix="utf-8":ix=parseInt(FG.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";Tee=ix,Af=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,rEe=Mee,iEe=Dx,nEe=$x,aEe=xee,zG=Tee,xf=mi.Buffer,oEe=xf.alloc(128),Jb={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};kee.prototype.run=function(e,r){return e.copy(r,(this||Af).blocksize),this.hash(r).copy((this||Af).opad,(this||Af).blocksize),this.hash((this||Af).opad)};Iee=function(e,r,n,u,a){aEe(e,r,n,u),xf.isBuffer(e)||(e=xf.from(e,zG)),xf.isBuffer(r)||(r=xf.from(r,zG));var d=new kee(a=a||"sha1",e,r.length),l=xf.allocUnsafe(u),v=xf.allocUnsafe(r.length+4);r.copy(v,0,0,r.length);for(var w=0,m=Jb[a],y=Math.ceil(u/m),g=1;g<=y;g++){v.writeUInt32BE(g,r.length);for(var S=d.run(v,d.ipad1),R=S,A=1;A<n;A++){R=d.run(R,d.ipad2);for(var k=0;k<m;k++)S[k]^=R[k]}S.copy(l,w),w+=m}return l},uv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,sE=Br,sEe=xee,HG=Tee,KG=Iee,Fd=mi.Buffer,hv=uv.crypto&&uv.crypto.subtle,fEe={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"},fE=[];uEe=function(e,r,n,u,a,d){typeof a=="function"&&(d=a,a=void 0);var l=fEe[(a=a||"sha1").toLowerCase()];if(!l||typeof uv.Promise!="function")return sE.nextTick(function(){var v;try{v=KG(e,r,n,u,a)}catch(w){return d(w)}d(null,v)});if(sEe(e,r,n,u),typeof d!="function")throw new Error("No callback provided to pbkdf2");Fd.isBuffer(e)||(e=Fd.from(e,HG)),Fd.isBuffer(r)||(r=Fd.from(r,HG)),function(v,w){v.then(function(m){sE.nextTick(function(){w(null,m)})},function(m){sE.nextTick(function(){w(m)})})}(function(v){if(uv.process&&!uv.process.browser||!hv||!hv.importKey||!hv.deriveBits)return Promise.resolve(!1);if(fE[v]!==void 0)return fE[v];var w=ZG(oE=oE||Fd.alloc(8),oE,10,128,v).then(function(){return!0}).catch(function(){return!1});return fE[v]=w,w}(l).then(function(v){return v?ZG(e,r,n,u,l):KG(e,r,n,u,a)}),d)},f3={};f3.pbkdf2=uEe,f3.pbkdf2Sync=Iee;Bee=WG,WG.equal=function(e,r,n){if(e!=r)throw new Error(n||"Assertion failed: "+e+" != "+r)};Ls=Bee,X0={readUInt32BE:function(e,r){return(e[0+r]<<24|e[1+r]<<16|e[2+r]<<8|e[3+r])>>>0},writeUInt32BE:function(e,r,n){e[0+n]=r>>>24,e[1+n]=r>>>16&255,e[2+n]=r>>>8&255,e[3+n]=255&r},ip:function(e,r,n,u){for(var a=0,d=0,l=6;l>=0;l-=2){for(var v=0;v<=24;v+=8)a<<=1,a|=r>>>v+l&1;for(v=0;v<=24;v+=8)a<<=1,a|=e>>>v+l&1}for(l=6;l>=0;l-=2){for(v=1;v<=25;v+=8)d<<=1,d|=r>>>v+l&1;for(v=1;v<=25;v+=8)d<<=1,d|=e>>>v+l&1}n[u+0]=a>>>0,n[u+1]=d>>>0},rip:function(e,r,n,u){for(var a=0,d=0,l=0;l<4;l++)for(var v=24;v>=0;v-=8)a<<=1,a|=r>>>v+l&1,a<<=1,a|=e>>>v+l&1;for(l=4;l<8;l++)for(v=24;v>=0;v-=8)d<<=1,d|=r>>>v+l&1,d<<=1,d|=e>>>v+l&1;n[u+0]=a>>>0,n[u+1]=d>>>0},pc1:function(e,r,n,u){for(var a=0,d=0,l=7;l>=5;l--){for(var v=0;v<=24;v+=8)a<<=1,a|=r>>v+l&1;for(v=0;v<=24;v+=8)a<<=1,a|=e>>v+l&1}for(v=0;v<=24;v+=8)a<<=1,a|=r>>v+l&1;for(l=1;l<=3;l++){for(v=0;v<=24;v+=8)d<<=1,d|=r>>v+l&1;for(v=0;v<=24;v+=8)d<<=1,d|=e>>v+l&1}for(v=0;v<=24;v+=8)d<<=1,d|=e>>v+l&1;n[u+0]=a>>>0,n[u+1]=d>>>0},r28shl:function(e,r){return e<<r&268435455|e>>>28-r}},lb=[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];X0.pc2=function(e,r,n,u){for(var a=0,d=0,l=lb.length>>>1,v=0;v<l;v++)a<<=1,a|=e>>>lb[v]&1;for(v=l;v<lb.length;v++)d<<=1,d|=r>>>lb[v]&1;n[u+0]=a>>>0,n[u+1]=d>>>0},X0.expand=function(e,r,n){var u=0,a=0;u=(1&e)<<5|e>>>27;for(var d=23;d>=15;d-=4)u<<=6,u|=e>>>d&63;for(d=11;d>=3;d-=4)a|=e>>>d&63,a<<=6;a|=(31&e)<<1|e>>>31,r[n+0]=u>>>0,r[n+1]=a>>>0};GG=[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];X0.substitute=function(e,r){for(var n=0,u=0;u<4;u++)n<<=4,n|=GG[64*u+(e>>>18-6*u&63)];for(u=0;u<4;u++)n<<=4,n|=GG[256+64*u+(r>>>18-6*u&63)];return n>>>0};VG=[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];X0.permute=function(e){for(var r=0,n=0;n<VG.length;n++)r<<=1,r|=e>>>VG[n]&1;return r>>>0},X0.padSplit=function(e,r,n){for(var u=e.toString(2);u.length<r;)u="0"+u;for(var a=[],d=0;d<r;d+=n)a.push(u.slice(d,d+n));return a.join(" ")};hEe=Ls;Oee=Es,Es.prototype._init=function(){},Es.prototype.update=function(e){return e.length===0?[]:this.type==="decrypt"?this._updateDecrypt(e):this._updateEncrypt(e)},Es.prototype._buffer=function(e,r){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-r),u=0;u<n;u++)this.buffer[this.bufferOff+u]=e[r+u];return this.bufferOff+=n,n},Es.prototype._flushBuffer=function(e,r){return this._update(this.buffer,0,e,r),this.bufferOff=0,this.blockSize},Es.prototype._updateEncrypt=function(e){var r=0,n=0,u=(this.bufferOff+e.length)/this.blockSize|0,a=new Array(u*this.blockSize);this.bufferOff!==0&&(r+=this._buffer(e,r),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(a,n)));for(var d=e.length-(e.length-r)%this.blockSize;r<d;r+=this.blockSize)this._update(e,r,a,n),n+=this.blockSize;for(;r<e.length;r++,this.bufferOff++)this.buffer[this.bufferOff]=e[r];return a},Es.prototype._updateDecrypt=function(e){for(var r=0,n=0,u=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,a=new Array(u*this.blockSize);u>0;u--)r+=this._buffer(e,r),n+=this._flushBuffer(a,n);return r+=this._buffer(e,r),a},Es.prototype.final=function(e){var r,n;return e&&(r=this.update(e)),n=this.type==="encrypt"?this._finalEncrypt():this._finalDecrypt(),r?r.concat(n):n},Es.prototype._pad=function(e,r){if(r===0)return!1;for(;r<e.length;)e[r++]=0;return!0},Es.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},Es.prototype._unpad=function(e){return e},Es.prototype._finalDecrypt=function(){hEe.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)};Ux=Oee,JG=Ls,Jn=X0,Nee=Ux;jr(pu,Nee),Pee=pu,pu.create=function(e){return new pu(e)};cEe=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];pu.prototype.deriveKeys=function(e,r){e.keys=new Array(32),JG.equal(r.length,this.blockSize,"Invalid key length");var n=Jn.readUInt32BE(r,0),u=Jn.readUInt32BE(r,4);Jn.pc1(n,u,e.tmp,0),n=e.tmp[0],u=e.tmp[1];for(var a=0;a<e.keys.length;a+=2){var d=cEe[a>>>1];n=Jn.r28shl(n,d),u=Jn.r28shl(u,d),Jn.pc2(n,u,e.keys,a)}},pu.prototype._update=function(e,r,n,u){var a=this._desState,d=Jn.readUInt32BE(e,r),l=Jn.readUInt32BE(e,r+4);Jn.ip(d,l,a.tmp,0),d=a.tmp[0],l=a.tmp[1],this.type==="encrypt"?this._encrypt(a,d,l,a.tmp,0):this._decrypt(a,d,l,a.tmp,0),d=a.tmp[0],l=a.tmp[1],Jn.writeUInt32BE(n,d,u),Jn.writeUInt32BE(n,l,u+4)},pu.prototype._pad=function(e,r){for(var n=e.length-r,u=r;u<e.length;u++)e[u]=n;return!0},pu.prototype._unpad=function(e){for(var r=e[e.length-1],n=e.length-r;n<e.length;n++)JG.equal(e[n],r);return e.slice(0,e.length-r)},pu.prototype._encrypt=function(e,r,n,u,a){for(var d=r,l=n,v=0;v<e.keys.length;v+=2){var w=e.keys[v],m=e.keys[v+1];Jn.expand(l,e.tmp,0),w^=e.tmp[0],m^=e.tmp[1];var y=Jn.substitute(w,m),g=l;l=(d^Jn.permute(y))>>>0,d=g}Jn.rip(l,d,u,a)},pu.prototype._decrypt=function(e,r,n,u,a){for(var d=n,l=r,v=e.keys.length-2;v>=0;v-=2){var w=e.keys[v],m=e.keys[v+1];Jn.expand(d,e.tmp,0),w^=e.tmp[0],m^=e.tmp[1];var y=Jn.substitute(w,m),g=d;d=(l^Jn.permute(y))>>>0,l=g}Jn.rip(d,l,u,a)};Cee=Pee,Lee={},dEe=Ls,pEe=jr,cb={};Lee.instantiate=function(e){function r(d){e.call(this,d),this._cbcInit()}pEe(r,e);for(var n=Object.keys(cb),u=0;u<n.length;u++){var a=n[u];r.prototype[a]=cb[a]}return r.create=function(d){return new r(d)},r},cb._cbcInit=function(){var e=new vEe(this.options.iv);this._cbcState=e},cb._update=function(e,r,n,u){var a=this._cbcState,d=this.constructor.super_.prototype,l=a.iv;if(this.type==="encrypt"){for(var v=0;v<this.blockSize;v++)l[v]^=e[r+v];for(d._update.call(this,l,0,n,u),v=0;v<this.blockSize;v++)l[v]=n[u+v]}else{for(d._update.call(this,e,r,n,u),v=0;v<this.blockSize;v++)n[u+v]^=l[v];for(v=0;v<this.blockSize;v++)l[v]=e[r+v]}};mEe=Ls,$ee=Ux,hl=Cee;jr(A0,$ee),Dee=A0,A0.create=function(e){return new A0(e)},A0.prototype._update=function(e,r,n,u){var a=this._edeState;a.ciphers[0]._update(e,r,n,u),a.ciphers[1]._update(n,u,n,u),a.ciphers[2]._update(n,u,n,u)},A0.prototype._pad=hl.prototype._pad,A0.prototype._unpad=hl.prototype._unpad;yEe=Dee,zd={};zd.utils=X0,zd.Cipher=Ux,zd.DES=Cee,zd.CBC=Lee,zd.EDE=yEe;u3=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,qee=yl,Xu=zd,bEe=jr,q0=mi.Buffer,Q2={"des-ede3-cbc":Xu.CBC.instantiate(Xu.EDE),"des-ede3":Xu.EDE,"des-ede-cbc":Xu.CBC.instantiate(Xu.EDE),"des-ede":Xu.EDE,"des-cbc":Xu.CBC.instantiate(Xu.DES),"des-ecb":Xu.DES};Q2.des=Q2["des-cbc"],Q2.des3=Q2["des-ede3-cbc"],Uee=db,bEe(db,qee),db.prototype._update=function(e){return q0.from((this||u3)._des.update(e))},db.prototype._final=function(){return q0.from((this||u3)._des.final())};wEe=Uee,_Ee=Pr.Buffer,Ev=function(e,r){for(var n=Math.min(e.length,r.length),u=new _Ee(n),a=0;a<n;++a)u[a]=e[a]^r[a];return u},jee=function(e){for(var r,n=e.length;n--;){if((r=e.readUInt8(n))!==255){r++,e.writeUInt8(r,n);break}e.writeUInt8(0,n)}},MEe={encrypt:function(e,r){return e._cipher.encryptBlock(r)},decrypt:function(e,r){return e._cipher.decryptBlock(r)}},nx={},YG=Ev;nx.encrypt=function(e,r){var n=YG(r,e._prev);return e._prev=e._cipher.encryptBlock(n),e._prev},nx.decrypt=function(e,r){var n=e._prev;e._prev=r;var u=e._cipher.decryptBlock(r);return YG(u,n)};Fee={},ev=mi.Buffer,SEe=Ev;Fee.encrypt=function(e,r,n){for(var u,a=ev.allocUnsafe(0);r.length;){if(e._cache.length===0&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=ev.allocUnsafe(0)),!(e._cache.length<=r.length)){a=ev.concat([a,XG(e,r,n)]);break}u=e._cache.length,a=ev.concat([a,XG(e,r.slice(0,u),n)]),r=r.slice(u)}return a};zee={},ax=mi.Buffer;zee.encrypt=function(e,r,n){for(var u=r.length,a=ax.allocUnsafe(u),d=-1;++d<u;)a[d]=EEe(e,r[d],n);return a};Hee={},Yb=mi.Buffer;Hee.encrypt=function(e,r,n){for(var u=r.length,a=Yb.allocUnsafe(u),d=-1;++d<u;)a[d]=AEe(e,r[d],n);return a};Kee={},xEe=Pr.Buffer,TEe=Ev;Kee.encrypt=function(e,r){for(;e._cache.length<r.length;)e._cache=xEe.concat([e._cache,kEe(e)]);var n=e._cache.slice(0,r.length);return e._cache=e._cache.slice(r.length),TEe(r,n)};ox={},IEe=Ev,QG=mi.Buffer,BEe=jee;ox.encrypt=function(e,r){var n=Math.ceil(r.length/16),u=e._cache.length;e._cache=QG.concat([e._cache,QG.allocUnsafe(16*n)]);for(var a=0;a<n;a++){var d=OEe(e),l=u+16*a;e._cache.writeUInt32BE(d[0],l+0),e._cache.writeUInt32BE(d[1],l+4),e._cache.writeUInt32BE(d[2],l+8),e._cache.writeUInt32BE(d[3],l+12)}var v=e._cache.slice(0,r.length);return e._cache=e._cache.slice(r.length),IEe(r,v)};Zee={"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"}},PEe={ECB:MEe,CBC:nx,CFB:Fee,CFB8:zee,CFB1:Hee,OFB:Kee,CTR:ox,GCM:ox},Xb=Zee;for(uE in Xb)Xb[uE].module=PEe[Xb[uE].mode];qx=Xb,Os=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,Av={},h3=mi.Buffer;NEe=[0,1,2,4,8,16,32,64,128,27,54],zn=function(){for(var e=new Array(256),r=0;r<256;r++)e[r]=r<128?r<<1:r<<1^283;for(var n=[],u=[],a=[[],[],[],[]],d=[[],[],[],[]],l=0,v=0,w=0;w<256;++w){var m=v^v<<1^v<<2^v<<3^v<<4;m=m>>>8^255&m^99,n[l]=m,u[m]=l;var y=e[l],g=e[y],S=e[g],R=257*e[m]^16843008*m;a[0][l]=R<<24|R>>>8,a[1][l]=R<<16|R>>>16,a[2][l]=R<<8|R>>>24,a[3][l]=R,R=16843009*S^65537*g^257*y^16843008*l,d[0][m]=R<<24|R>>>8,d[1][m]=R<<16|R>>>16,d[2][m]=R<<8|R>>>24,d[3][m]=R,l===0?l=v=1:(l=y^e[e[e[S^y]]],v^=e[e[v]])}return{SBOX:n,INV_SBOX:u,SUB_MIX:a,INV_SUB_MIX:d}}();As.blockSize=16,As.keySize=32,As.prototype.blockSize=As.blockSize,As.prototype.keySize=As.keySize,As.prototype._reset=function(){for(var e=(this||Os)._key,r=e.length,n=r+6,u=4*(n+1),a=[],d=0;d<r;d++)a[d]=e[d];for(d=r;d<u;d++){var l=a[d-1];d%r==0?(l=l<<8|l>>>24,l=zn.SBOX[l>>>24]<<24|zn.SBOX[l>>>16&255]<<16|zn.SBOX[l>>>8&255]<<8|zn.SBOX[255&l],l^=NEe[d/r|0]<<24):r>6&&d%r==4&&(l=zn.SBOX[l>>>24]<<24|zn.SBOX[l>>>16&255]<<16|zn.SBOX[l>>>8&255]<<8|zn.SBOX[255&l]),a[d]=a[d-r]^l}for(var v=[],w=0;w<u;w++){var m=u-w,y=a[m-(w%4?0:4)];v[w]=w<4||m<=4?y:zn.INV_SUB_MIX[0][zn.SBOX[y>>>24]]^zn.INV_SUB_MIX[1][zn.SBOX[y>>>16&255]]^zn.INV_SUB_MIX[2][zn.SBOX[y>>>8&255]]^zn.INV_SUB_MIX[3][zn.SBOX[255&y]]}(this||Os)._nRounds=n,(this||Os)._keySchedule=a,(this||Os)._invKeySchedule=v},As.prototype.encryptBlockRaw=function(e){return eV(e=sx(e),(this||Os)._keySchedule,zn.SUB_MIX,zn.SBOX,(this||Os)._nRounds)},As.prototype.encryptBlock=function(e){var r=this.encryptBlockRaw(e),n=h3.allocUnsafe(16);return n.writeUInt32BE(r[0],0),n.writeUInt32BE(r[1],4),n.writeUInt32BE(r[2],8),n.writeUInt32BE(r[3],12),n},As.prototype.decryptBlock=function(e){var r=(e=sx(e))[1];e[1]=e[3],e[3]=r;var n=eV(e,(this||Os)._invKeySchedule,zn.INV_SUB_MIX,zn.INV_SBOX,(this||Os)._nRounds),u=h3.allocUnsafe(16);return u.writeUInt32BE(n[0],0),u.writeUInt32BE(n[3],4),u.writeUInt32BE(n[2],8),u.writeUInt32BE(n[1],12),u},As.prototype.scrub=function(){hE((this||Os)._keySchedule),hE((this||Os)._invKeySchedule),hE((this||Os)._key)},Av.AES=As;Da=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,Xd=mi.Buffer,CEe=Xd.alloc(16,0);tv.prototype.ghash=function(e){for(var r=-1;++r<e.length;)(this||Da).state[r]^=e[r];this._multiply()},tv.prototype._multiply=function(){for(var e,r,n,u=[(e=(this||Da).h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],a=[0,0,0,0],d=-1;++d<128;){for((this||Da).state[~~(d/8)]&1<<7-d%8&&(a[0]^=u[0],a[1]^=u[1],a[2]^=u[2],a[3]^=u[3]),n=(1&u[3])!=0,r=3;r>0;r--)u[r]=u[r]>>>1|(1&u[r-1])<<31;u[0]=u[0]>>>1,n&&(u[0]=u[0]^225<<24)}(this||Da).state=tV(a)},tv.prototype.update=function(e){var r;for((this||Da).cache=Xd.concat([(this||Da).cache,e]);(this||Da).cache.length>=16;)r=(this||Da).cache.slice(0,16),(this||Da).cache=(this||Da).cache.slice(16),this.ghash(r)},tv.prototype.final=function(e,r){return(this||Da).cache.length&&this.ghash(Xd.concat([(this||Da).cache,CEe],16)),this.ghash(tV([0,e,0,r])),(this||Da).state};LEe=tv,Jr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,DEe=Av,co=mi.Buffer,Wee=yl,rV=LEe,$Ee=Ev,UEe=jee;jr(L0,Wee),L0.prototype._update=function(e){if(!(this||Jr)._called&&(this||Jr)._alen){var r=16-(this||Jr)._alen%16;r<16&&(r=co.alloc(r,0),(this||Jr)._ghash.update(r))}(this||Jr)._called=!0;var n=(this||Jr)._mode.encrypt(this||Jr,e);return(this||Jr)._decrypt?(this||Jr)._ghash.update(e):(this||Jr)._ghash.update(n),(this||Jr)._len+=e.length,n},L0.prototype._final=function(){if((this||Jr)._decrypt&&!(this||Jr)._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=$Ee((this||Jr)._ghash.final(8*(this||Jr)._alen,8*(this||Jr)._len),(this||Jr)._cipher.encryptBlock((this||Jr)._finID));if((this||Jr)._decrypt&&function(r,n){var u=0;r.length!==n.length&&u++;for(var a=Math.min(r.length,n.length),d=0;d<a;++d)u+=r[d]^n[d];return u}(e,(this||Jr)._authTag))throw new Error("Unsupported state or unable to authenticate data");(this||Jr)._authTag=e,(this||Jr)._cipher.scrub()},L0.prototype.getAuthTag=function(){if((this||Jr)._decrypt||!co.isBuffer((this||Jr)._authTag))throw new Error("Attempting to get auth tag in unsupported state");return(this||Jr)._authTag},L0.prototype.setAuthTag=function(e){if(!(this||Jr)._decrypt)throw new Error("Attempting to set auth tag in unsupported state");(this||Jr)._authTag=e},L0.prototype.setAAD=function(e){if((this||Jr)._called)throw new Error("Attempting to set AAD in unsupported state");(this||Jr)._ghash.update(e),(this||Jr)._alen+=e.length};Gee=L0,Rf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,qEe=Av,lE=mi.Buffer,Vee=yl;jr(Qb,Vee),Qb.prototype._update=function(e){return(this||Rf)._mode.encrypt(this||Rf,e,(this||Rf)._decrypt)},Qb.prototype._final=function(){(this||Rf)._cipher.scrub()};Jee=Qb,R0=mi.Buffer,jEe=Lx,A3=function(e,r,n,u){if(R0.isBuffer(e)||(e=R0.from(e,"binary")),r&&(R0.isBuffer(r)||(r=R0.from(r,"binary")),r.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=n/8,d=R0.alloc(a),l=R0.alloc(u||0),v=R0.alloc(0);a>0||u>0;){var w=new jEe;w.update(v),w.update(e),r&&w.update(r),v=w.digest();var m=0;if(a>0){var y=d.length-a;m=Math.min(a,v.length),v.copy(d,y,0,m),a-=m}if(m<v.length&&u>0){var g=l.length-u,S=Math.min(u,v.length-m);v.copy(l,g,m,m+S),u-=S}}return v.fill(0),{key:d,iv:l}},Li=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,fx={},FEe=Gee,Qd=mi.Buffer,Yee=qx,zEe=Jee,Xee=yl,HEe=Av,KEe=A3;jr(rv,Xee),rv.prototype._update=function(e){var r,n;(this||Li)._cache.add(e);for(var u=[];r=(this||Li)._cache.get((this||Li)._autopadding);)n=(this||Li)._mode.decrypt(this||Li,r),u.push(n);return Qd.concat(u)},rv.prototype._final=function(){var e=(this||Li)._cache.flush();if((this||Li)._autopadding)return function(r){var n=r[15];if(n<1||n>16)throw new Error("unable to decrypt data");for(var u=-1;++u<n;)if(r[u+(16-n)]!==n)throw new Error("unable to decrypt data");if(n!==16)return r.slice(0,16-n)}((this||Li)._mode.decrypt(this||Li,e));if(e)throw new Error("data not multiple of block length")},rv.prototype.setAutoPadding=function(e){return(this||Li)._autopadding=!!e,this||Li},e3.prototype.add=function(e){(this||Li).cache=Qd.concat([(this||Li).cache,e])},e3.prototype.get=function(e){var r;if(e){if((this||Li).cache.length>16)return r=(this||Li).cache.slice(0,16),(this||Li).cache=(this||Li).cache.slice(16),r}else if((this||Li).cache.length>=16)return r=(this||Li).cache.slice(0,16),(this||Li).cache=(this||Li).cache.slice(16),r;return null},e3.prototype.flush=function(){if((this||Li).cache.length)return(this||Li).cache},fx.createDecipher=function(e,r){var n=Yee[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var u=KEe(r,!1,n.key,n.iv);return iV(e,u.key,u.iv)},fx.createDecipheriv=iV;fn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,ux={},Qee=qx,ZEe=Gee,oh=mi.Buffer,WEe=Jee,ete=yl,GEe=Av,VEe=A3;jr(pv,ete),pv.prototype._update=function(e){var r,n;(this||fn)._cache.add(e);for(var u=[];r=(this||fn)._cache.get();)n=(this||fn)._mode.encrypt(this||fn,r),u.push(n);return oh.concat(u)};JEe=oh.alloc(16,16);pv.prototype._final=function(){var e=(this||fn)._cache.flush();if((this||fn)._autopadding)return e=(this||fn)._mode.encrypt(this||fn,e),(this||fn)._cipher.scrub(),e;if(!e.equals(JEe))throw(this||fn)._cipher.scrub(),new Error("data not multiple of block length")},pv.prototype.setAutoPadding=function(e){return(this||fn)._autopadding=!!e,this||fn},t3.prototype.add=function(e){(this||fn).cache=oh.concat([(this||fn).cache,e])},t3.prototype.get=function(){if((this||fn).cache.length>15){var e=(this||fn).cache.slice(0,16);return(this||fn).cache=(this||fn).cache.slice(16),e}return null},t3.prototype.flush=function(){for(var e=16-(this||fn).cache.length,r=oh.allocUnsafe(e),n=-1;++n<e;)r.writeUInt8(e,n);return oh.concat([(this||fn).cache,r])},ux.createCipheriv=nV,ux.createCipher=function(e,r){var n=Qee[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var u=VEe(r,!1,n.key,n.iv);return nV(e,u.key,u.iv)};Lo={},aV=ux,oV=fx,YEe=Zee;Lo.createCipher=Lo.Cipher=aV.createCipher,Lo.createCipheriv=Lo.Cipheriv=aV.createCipheriv,Lo.createDecipher=Lo.Decipher=oV.createDecipher,Lo.createDecipheriv=Lo.Decipheriv=oV.createDecipheriv,Lo.listCiphers=Lo.getCiphers=function(){return Object.keys(YEe)};il={"des-ecb":{key:8,iv:0}};il["des-cbc"]=il.des={key:8,iv:8},il["des-ede3-cbc"]=il.des3={key:24,iv:8},il["des-ede3"]={key:24,iv:0},il["des-ede-cbc"]={key:16,iv:8},il["des-ede"]={key:16,iv:0};Sf={},tte=wEe,jx=Lo,ll=qx,eh=il,sV=A3;Sf.createCipher=Sf.Cipher=function(e,r){var n,u;if(e=e.toLowerCase(),ll[e])n=ll[e].key,u=ll[e].iv;else{if(!eh[e])throw new TypeError("invalid suite type");n=8*eh[e].key,u=eh[e].iv}var a=sV(r,!1,n,u);return fV(e,a.key,a.iv)},Sf.createCipheriv=Sf.Cipheriv=fV,Sf.createDecipher=Sf.Decipher=function(e,r){var n,u;if(e=e.toLowerCase(),ll[e])n=ll[e].key,u=ll[e].iv;else{if(!eh[e])throw new TypeError("invalid suite type");n=8*eh[e].key,u=eh[e].iv}var a=sV(r,!1,n,u);return uV(e,a.key,a.iv)},Sf.createDecipheriv=Sf.Decipheriv=uV,Sf.listCiphers=Sf.getCiphers=function(){return Object.keys(eh).concat(jx.getCiphers())};XEe=Object.freeze({}),et=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,rte={},ite={exports:rte};(function(e,r){function n(j,z){if(!j)throw new Error(z||"Assertion failed")}function u(j,z){j.super_=z;var Y=function(){};Y.prototype=z.prototype,j.prototype=new Y,j.prototype.constructor=j}function a(j,z,Y){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"||(Y=z,z=10),this._init(j||0,z||10,Y||"be"))}var d;typeof e=="object"?e.exports=a:r.BN=a,a.BN=a,a.wordSize=26;try{d=XEe.Buffer}catch{}function l(j,z,Y){for(var E=0,i=Math.min(j.length,Y),s=z;s<i;s++){var f=j.charCodeAt(s)-48;E<<=4,E|=f>=49&&f<=54?f-49+10:f>=17&&f<=22?f-17+10:15&f}return E}function v(j,z,Y,E){for(var i=0,s=Math.min(j.length,Y),f=z;f<s;f++){var c=j.charCodeAt(f)-48;i*=E,i+=c>=49?c-49+10:c>=17?c-17+10:c}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,Y){if(typeof j=="number")return this._initNumber(j,z,Y);if(typeof j=="object")return this._initArray(j,z,Y);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(),Y==="le"&&this._initArray(this.toArray(),z,Y)},a.prototype._initNumber=function(j,z,Y){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),Y==="le"&&this._initArray(this.toArray(),z,Y)},a.prototype._initArray=function(j,z,Y){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,f=0;if(Y==="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<<f&67108863,(this||et).words[i+1]=s>>>26-f&67108863,(f+=24)>=26&&(f-=26,i++);else if(Y==="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<<f&67108863,(this||et).words[i+1]=s>>>26-f&67108863,(f+=24)>=26&&(f-=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 Y=0;Y<(this||et).length;Y++)(this||et).words[Y]=0;var E,i,s=0;for(Y=j.length-6,E=0;Y>=z;Y-=6)i=l(j,Y,Y+6),(this||et).words[E]|=i<<s&67108863,(this||et).words[E+1]|=i>>>26-s&4194303,(s+=24)>=26&&(s-=26,E++);Y+6!==z&&(i=l(j,z,Y+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,Y){(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-Y,f=s%E,c=Math.min(s,s-f)+Y,p=0,_=Y;_<c;_+=E)p=v(j,_,_+E,z),this.imuln(i),(this||et).words[0]+p<67108864?(this||et).words[0]+=p:this._iaddn(p);if(f!==0){var x=1;for(p=v(j,_,j.length,z),_=0;_<f;_++)x*=z;this.imuln(x),(this||et).words[0]+p<67108864?(this||et).words[0]+=p:this._iaddn(p)}},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,Y){Y.negative=z.negative^j.negative;var E=j.length+z.length|0;Y.length=E,E=E-1|0;var i=0|j.words[0],s=0|z.words[0],f=i*s,c=67108863&f,p=f/67108864|0;Y.words[0]=c;for(var _=1;_<E;_++){for(var x=p>>>26,o=67108863&p,t=Math.min(_,z.length-1),h=Math.max(0,_-j.length+1);h<=t;h++){var b=_-h|0;x+=(f=(i=0|j.words[b])*(s=0|z.words[h])+o)/67108864|0,o=67108863&f}Y.words[_]=0|o,p=0|x}return p!==0?Y.words[_]=0|p:Y.length--,Y.strip()}a.prototype.toString=function(j,z){var Y;if(z=0|z||1,(j=j||10)===16||j==="hex"){Y="";for(var E=0,i=0,s=0;s<(this||et).length;s++){var f=(this||et).words[s],c=(16777215&(f<<E|i)).toString(16);Y=(i=f>>>24-E&16777215)!==0||s!==(this||et).length-1?w[6-c.length]+c+Y:c+Y,(E+=2)>=26&&(E-=26,s--)}for(i!==0&&(Y=i.toString(16)+Y);Y.length%z!=0;)Y="0"+Y;return(this||et).negative!==0&&(Y="-"+Y),Y}if(j===(0|j)&&j>=2&&j<=36){var p=m[j],_=y[j];Y="";var x=this.clone();for(x.negative=0;!x.isZero();){var o=x.modn(_).toString(j);Y=(x=x.idivn(_)).isZero()?o+Y:w[p-o.length]+o+Y}for(this.isZero()&&(Y="0"+Y);Y.length%z!=0;)Y="0"+Y;return(this||et).negative!==0&&(Y="-"+Y),Y}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(d!==void 0),this.toArrayLike(d,j,z)},a.prototype.toArray=function(j,z){return this.toArrayLike(Array,j,z)},a.prototype.toArrayLike=function(j,z,Y){var E=this.byteLength(),i=Y||Math.max(1,E);n(E<=i,"byte array longer than desired length"),n(i>0,"Requested array length <= 0"),this.strip();var s,f,c=z==="le",p=new j(i),_=this.clone();if(c){for(f=0;!_.isZero();f++)s=_.andln(255),_.iushrn(8),p[f]=s;for(;f<i;f++)p[f]=0}else{for(f=0;f<i-E;f++)p[f]=0;for(f=0;!_.isZero();f++)s=_.andln(255),_.iushrn(8),p[i-f-1]=s}return p},Math.clz32?a.prototype._countBits=function(j){return 32-Math.clz32(j)}:a.prototype._countBits=function(j){var z=j,Y=0;return z>=4096&&(Y+=13,z>>>=13),z>=64&&(Y+=7,z>>>=7),z>=8&&(Y+=4,z>>>=4),z>=2&&(Y+=2,z>>>=2),Y+z},a.prototype._zeroBits=function(j){if(j===0)return 26;var z=j,Y=0;return!(8191&z)&&(Y+=13,z>>>=13),!(127&z)&&(Y+=7,z>>>=7),!(15&z)&&(Y+=4,z>>>=4),!(3&z)&&(Y+=2,z>>>=2),!(1&z)&&Y++,Y},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 Y=this._zeroBits((this||et).words[z]);if(j+=Y,Y!==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 Y=0;Y<z.length;Y++)(this||et).words[Y]=(this||et).words[Y]&j.words[Y];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,Y;(this||et).length>j.length?(z=this||et,Y=j):(z=j,Y=this||et);for(var E=0;E<Y.length;E++)(this||et).words[E]=z.words[E]^Y.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),Y=j%26;this._expand(z),Y>0&&z--;for(var E=0;E<z;E++)(this||et).words[E]=67108863&~(this||et).words[E];return Y>0&&((this||et).words[E]=~(this||et).words[E]&67108863>>26-Y),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 Y=j/26|0,E=j%26;return this._expand(Y+1),(this||et).words[Y]=z?(this||et).words[Y]|1<<E:(this||et).words[Y]&~(1<<E),this.strip()},a.prototype.iadd=function(j){var z,Y,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?(Y=this||et,E=j):(Y=j,E=this||et);for(var i=0,s=0;s<E.length;s++)z=(0|Y.words[s])+(0|E.words[s])+i,(this||et).words[s]=67108863&z,i=z>>>26;for(;i!==0&&s<Y.length;s++)z=(0|Y.words[s])+i,(this||et).words[s]=67108863&z,i=z>>>26;if((this||et).length=Y.length,i!==0)(this||et).words[(this||et).length]=i,(this||et).length++;else if(Y!==(this||et))for(;s<Y.length;s++)(this||et).words[s]=Y.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 Y,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?(Y=this||et,E=j):(Y=j,E=this||et);for(var s=0,f=0;f<E.length;f++)s=(z=(0|Y.words[f])-(0|E.words[f])+s)>>26,(this||et).words[f]=67108863&z;for(;s!==0&&f<Y.length;f++)s=(z=(0|Y.words[f])+s)>>26,(this||et).words[f]=67108863&z;if(s===0&&f<Y.length&&Y!==(this||et))for(;f<Y.length;f++)(this||et).words[f]=Y.words[f];return(this||et).length=Math.max((this||et).length,f),Y!==(this||et)&&((this||et).negative=1),this.strip()},a.prototype.sub=function(j){return this.clone().isub(j)};var S=function(j,z,Y){var E,i,s,f=j.words,c=z.words,p=Y.words,_=0,x=0|f[0],o=8191&x,t=x>>>13,h=0|f[1],b=8191&h,M=h>>>13,T=0|f[2],D=8191&T,Q=T>>>13,W=0|f[3],X=8191&W,G=W>>>13,J=0|f[4],ae=8191&J,te=J>>>13,U=0|f[5],Z=8191&U,ie=U>>>13,fe=0|f[6],de=8191&fe,he=fe>>>13,pe=0|f[7],De=8191&pe,Ae=pe>>>13,_e=0|f[8],ut=8191&_e,qe=_e>>>13,Oe=0|f[9],mt=8191&Oe,ne=Oe>>>13,O=0|c[0],N=8191&O,$=O>>>13,ee=0|c[1],re=8191&ee,se=ee>>>13,ce=0|c[2],st=8191&ce,ye=ce>>>13,be=0|c[3],me=8191&be,Be=be>>>13,je=0|c[4],le=8191&je,Pe=je>>>13,Se=0|c[5],Ee=8191&Se,Me=Se>>>13,xe=0|c[6],_t=8191&xe,Ne=xe>>>13,Ce=0|c[7],Rt=8191&Ce,dt=Ce>>>13,rt=0|c[8],At=8191&rt,lt=rt>>>13,ot=0|c[9],It=8191&ot,pt=ot>>>13;Y.negative=j.negative^z.negative,Y.length=19;var ft=(_+(E=Math.imul(o,N))|0)+((8191&(i=(i=Math.imul(o,$))+Math.imul(t,N)|0))<<13)|0;_=((s=Math.imul(t,$))+(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 kt=(_+(E=E+Math.imul(o,re)|0)|0)+((8191&(i=(i=i+Math.imul(o,se)|0)+Math.imul(t,re)|0))<<13)|0;_=((s=s+Math.imul(t,se)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=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(t,st)|0))<<13)|0;_=((s=s+Math.imul(t,ye)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,E=Math.imul(X,N),i=(i=Math.imul(X,$))+Math.imul(G,N)|0,s=Math.imul(G,$),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,Be)|0)+Math.imul(t,me)|0))<<13)|0;_=((s=s+Math.imul(t,Be)|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(G,re)|0,s=s+Math.imul(G,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,Be)|0)+Math.imul(M,me)|0,s=s+Math.imul(M,Be)|0;var Bt=(_+(E=E+Math.imul(o,le)|0)|0)+((8191&(i=(i=i+Math.imul(o,Pe)|0)+Math.imul(t,le)|0))<<13)|0;_=((s=s+Math.imul(t,Pe)|0)+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,E=Math.imul(Z,N),i=(i=Math.imul(Z,$))+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(G,st)|0,s=s+Math.imul(G,ye)|0,E=E+Math.imul(D,me)|0,i=(i=i+Math.imul(D,Be)|0)+Math.imul(Q,me)|0,s=s+Math.imul(Q,Be)|0,E=E+Math.imul(b,le)|0,i=(i=i+Math.imul(b,Pe)|0)+Math.imul(M,le)|0,s=s+Math.imul(M,Pe)|0;var Wt=(_+(E=E+Math.imul(o,Ee)|0)|0)+((8191&(i=(i=i+Math.imul(o,Me)|0)+Math.imul(t,Ee)|0))<<13)|0;_=((s=s+Math.imul(t,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(Z,re)|0,i=(i=i+Math.imul(Z,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,Be)|0)+Math.imul(G,me)|0,s=s+Math.imul(G,Be)|0,E=E+Math.imul(D,le)|0,i=(i=i+Math.imul(D,Pe)|0)+Math.imul(Q,le)|0,s=s+Math.imul(Q,Pe)|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,_t)|0)|0)+((8191&(i=(i=i+Math.imul(o,Ne)|0)+Math.imul(t,_t)|0))<<13)|0;_=((s=s+Math.imul(t,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(Z,st)|0,i=(i=i+Math.imul(Z,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,Be)|0)+Math.imul(te,me)|0,s=s+Math.imul(te,Be)|0,E=E+Math.imul(X,le)|0,i=(i=i+Math.imul(X,Pe)|0)+Math.imul(G,le)|0,s=s+Math.imul(G,Pe)|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,_t)|0,i=(i=i+Math.imul(b,Ne)|0)+Math.imul(M,_t)|0,s=s+Math.imul(M,Ne)|0;var Nt=(_+(E=E+Math.imul(o,Rt)|0)|0)+((8191&(i=(i=i+Math.imul(o,dt)|0)+Math.imul(t,Rt)|0))<<13)|0;_=((s=s+Math.imul(t,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(Z,me)|0,i=(i=i+Math.imul(Z,Be)|0)+Math.imul(ie,me)|0,s=s+Math.imul(ie,Be)|0,E=E+Math.imul(ae,le)|0,i=(i=i+Math.imul(ae,Pe)|0)+Math.imul(te,le)|0,s=s+Math.imul(te,Pe)|0,E=E+Math.imul(X,Ee)|0,i=(i=i+Math.imul(X,Me)|0)+Math.imul(G,Ee)|0,s=s+Math.imul(G,Me)|0,E=E+Math.imul(D,_t)|0,i=(i=i+Math.imul(D,Ne)|0)+Math.imul(Q,_t)|0,s=s+Math.imul(Q,Ne)|0,E=E+Math.imul(b,Rt)|0,i=(i=i+Math.imul(b,dt)|0)+Math.imul(M,Rt)|0,s=s+Math.imul(M,dt)|0;var cr=(_+(E=E+Math.imul(o,At)|0)|0)+((8191&(i=(i=i+Math.imul(o,lt)|0)+Math.imul(t,At)|0))<<13)|0;_=((s=s+Math.imul(t,lt)|0)+(i>>>13)|0)+(cr>>>26)|0,cr&=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,Be)|0)+Math.imul(he,me)|0,s=s+Math.imul(he,Be)|0,E=E+Math.imul(Z,le)|0,i=(i=i+Math.imul(Z,Pe)|0)+Math.imul(ie,le)|0,s=s+Math.imul(ie,Pe)|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,_t)|0,i=(i=i+Math.imul(X,Ne)|0)+Math.imul(G,_t)|0,s=s+Math.imul(G,Ne)|0,E=E+Math.imul(D,Rt)|0,i=(i=i+Math.imul(D,dt)|0)+Math.imul(Q,Rt)|0,s=s+Math.imul(Q,dt)|0,E=E+Math.imul(b,At)|0,i=(i=i+Math.imul(b,lt)|0)+Math.imul(M,At)|0,s=s+Math.imul(M,lt)|0;var jt=(_+(E=E+Math.imul(o,It)|0)|0)+((8191&(i=(i=i+Math.imul(o,pt)|0)+Math.imul(t,It)|0))<<13)|0;_=((s=s+Math.imul(t,pt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=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,Be)|0)+Math.imul(Ae,me)|0,s=s+Math.imul(Ae,Be)|0,E=E+Math.imul(de,le)|0,i=(i=i+Math.imul(de,Pe)|0)+Math.imul(he,le)|0,s=s+Math.imul(he,Pe)|0,E=E+Math.imul(Z,Ee)|0,i=(i=i+Math.imul(Z,Me)|0)+Math.imul(ie,Ee)|0,s=s+Math.imul(ie,Me)|0,E=E+Math.imul(ae,_t)|0,i=(i=i+Math.imul(ae,Ne)|0)+Math.imul(te,_t)|0,s=s+Math.imul(te,Ne)|0,E=E+Math.imul(X,Rt)|0,i=(i=i+Math.imul(X,dt)|0)+Math.imul(G,Rt)|0,s=s+Math.imul(G,dt)|0,E=E+Math.imul(D,At)|0,i=(i=i+Math.imul(D,lt)|0)+Math.imul(Q,At)|0,s=s+Math.imul(Q,lt)|0;var $t=(_+(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)+($t>>>26)|0,$t&=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,Be)|0)+Math.imul(qe,me)|0,s=s+Math.imul(qe,Be)|0,E=E+Math.imul(De,le)|0,i=(i=i+Math.imul(De,Pe)|0)+Math.imul(Ae,le)|0,s=s+Math.imul(Ae,Pe)|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(Z,_t)|0,i=(i=i+Math.imul(Z,Ne)|0)+Math.imul(ie,_t)|0,s=s+Math.imul(ie,Ne)|0,E=E+Math.imul(ae,Rt)|0,i=(i=i+Math.imul(ae,dt)|0)+Math.imul(te,Rt)|0,s=s+Math.imul(te,dt)|0,E=E+Math.imul(X,At)|0,i=(i=i+Math.imul(X,lt)|0)+Math.imul(G,At)|0,s=s+Math.imul(G,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,Be))+Math.imul(ne,me)|0,s=Math.imul(ne,Be),E=E+Math.imul(ut,le)|0,i=(i=i+Math.imul(ut,Pe)|0)+Math.imul(qe,le)|0,s=s+Math.imul(qe,Pe)|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,_t)|0,i=(i=i+Math.imul(de,Ne)|0)+Math.imul(he,_t)|0,s=s+Math.imul(he,Ne)|0,E=E+Math.imul(Z,Rt)|0,i=(i=i+Math.imul(Z,dt)|0)+Math.imul(ie,Rt)|0,s=s+Math.imul(ie,dt)|0,E=E+Math.imul(ae,At)|0,i=(i=i+Math.imul(ae,lt)|0)+Math.imul(te,At)|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(G,It)|0))<<13)|0;_=((s=s+Math.imul(G,pt)|0)+(i>>>13)|0)+(sr>>>26)|0,sr&=67108863,E=Math.imul(mt,le),i=(i=Math.imul(mt,Pe))+Math.imul(ne,le)|0,s=Math.imul(ne,Pe),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,_t)|0,i=(i=i+Math.imul(De,Ne)|0)+Math.imul(Ae,_t)|0,s=s+Math.imul(Ae,Ne)|0,E=E+Math.imul(de,Rt)|0,i=(i=i+Math.imul(de,dt)|0)+Math.imul(he,Rt)|0,s=s+Math.imul(he,dt)|0,E=E+Math.imul(Z,At)|0,i=(i=i+Math.imul(Z,lt)|0)+Math.imul(ie,At)|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,_t)|0,i=(i=i+Math.imul(ut,Ne)|0)+Math.imul(qe,_t)|0,s=s+Math.imul(qe,Ne)|0,E=E+Math.imul(De,Rt)|0,i=(i=i+Math.imul(De,dt)|0)+Math.imul(Ae,Rt)|0,s=s+Math.imul(Ae,dt)|0,E=E+Math.imul(de,At)|0,i=(i=i+Math.imul(de,lt)|0)+Math.imul(he,At)|0,s=s+Math.imul(he,lt)|0;var hr=(_+(E=E+Math.imul(Z,It)|0)|0)+((8191&(i=(i=i+Math.imul(Z,pt)|0)+Math.imul(ie,It)|0))<<13)|0;_=((s=s+Math.imul(ie,pt)|0)+(i>>>13)|0)+(hr>>>26)|0,hr&=67108863,E=Math.imul(mt,_t),i=(i=Math.imul(mt,Ne))+Math.imul(ne,_t)|0,s=Math.imul(ne,Ne),E=E+Math.imul(ut,Rt)|0,i=(i=i+Math.imul(ut,dt)|0)+Math.imul(qe,Rt)|0,s=s+Math.imul(qe,dt)|0,E=E+Math.imul(De,At)|0,i=(i=i+Math.imul(De,lt)|0)+Math.imul(Ae,At)|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,Rt),i=(i=Math.imul(mt,dt))+Math.imul(ne,Rt)|0,s=Math.imul(ne,dt),E=E+Math.imul(ut,At)|0,i=(i=i+Math.imul(ut,lt)|0)+Math.imul(qe,At)|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,At),i=(i=Math.imul(mt,lt))+Math.imul(ne,At)|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,p[0]=ft,p[1]=kt,p[2]=vt,p[3]=at,p[4]=Bt,p[5]=Wt,p[6]=Pt,p[7]=Nt,p[8]=cr,p[9]=jt,p[10]=$t,p[11]=rr,p[12]=sr,p[13]=ir,p[14]=hr,p[15]=nr,p[16]=ur,p[17]=it,p[18]=we,_!==0&&(p[19]=_,Y.length++),Y};function R(j,z,Y){return new A().mulp(j,z,Y)}function A(j,z){(this||et).x=j,(this||et).y=z}Math.imul||(S=g),a.prototype.mulTo=function(j,z){var Y=(this||et).length+j.length;return(this||et).length===10&&j.length===10?S(this||et,j,z):Y<63?g(this||et,j,z):Y<1024?function(E,i,s){s.negative=i.negative^E.negative,s.length=E.length+i.length;for(var f=0,c=0,p=0;p<s.length-1;p++){var _=c;c=0;for(var x=67108863&f,o=Math.min(p,i.length-1),t=Math.max(0,p-E.length+1);t<=o;t++){var h=p-t,b=(0|E.words[h])*(0|i.words[t]),M=67108863&b;x=67108863&(M=M+x|0),c+=(_=(_=_+(b/67108864|0)|0)+(M>>>26)|0)>>>26,_&=67108863}s.words[p]=x,f=_,_=c}return f!==0?s.words[p]=f:s.length--,s.strip()}(this||et,j,z):R(this||et,j,z)},A.prototype.makeRBT=function(j){for(var z=new Array(j),Y=a.prototype._countBits(j)-1,E=0;E<j;E++)z[E]=this.revBin(E,Y,j);return z},A.prototype.revBin=function(j,z,Y){if(j===0||j===Y-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,Y,E,i,s){for(var f=0;f<s;f++)E[f]=z[j[f]],i[f]=Y[j[f]]},A.prototype.transform=function(j,z,Y,E,i,s){this.permute(s,j,z,Y,E,i);for(var f=1;f<i;f<<=1)for(var c=f<<1,p=Math.cos(2*Math.PI/c),_=Math.sin(2*Math.PI/c),x=0;x<i;x+=c)for(var o=p,t=_,h=0;h<f;h++){var b=Y[x+h],M=E[x+h],T=Y[x+h+f],D=E[x+h+f],Q=o*T-t*D;D=o*D+t*T,T=Q,Y[x+h]=b+T,E[x+h]=M+D,Y[x+h+f]=b-T,E[x+h+f]=M-D,h!==c&&(Q=p*o-_*t,t=p*t+_*o,o=Q)}},A.prototype.guessLen13b=function(j,z){var Y=1|Math.max(z,j),E=1&Y,i=0;for(Y=Y/2|0;Y;Y>>>=1)i++;return 1<<i+1+E},A.prototype.conjugate=function(j,z,Y){if(!(Y<=1))for(var E=0;E<Y/2;E++){var i=j[E];j[E]=j[Y-E-1],j[Y-E-1]=i,i=z[E],z[E]=-z[Y-E-1],z[Y-E-1]=-i}},A.prototype.normalize13b=function(j,z){for(var Y=0,E=0;E<z/2;E++){var i=8192*Math.round(j[2*E+1]/z)+Math.round(j[2*E]/z)+Y;j[E]=67108863&i,Y=i<67108864?0:i/67108864|0}return j},A.prototype.convert13b=function(j,z,Y,E){for(var i=0,s=0;s<z;s++)i+=0|j[s],Y[2*s]=8191&i,i>>>=13,Y[2*s+1]=8191&i,i>>>=13;for(s=2*z;s<E;++s)Y[s]=0;n(i===0),n((-8192&i)==0)},A.prototype.stub=function(j){for(var z=new Array(j),Y=0;Y<j;Y++)z[Y]=0;return z},A.prototype.mulp=function(j,z,Y){var E=2*this.guessLen13b(j.length,z.length),i=this.makeRBT(E),s=this.stub(E),f=new Array(E),c=new Array(E),p=new Array(E),_=new Array(E),x=new Array(E),o=new Array(E),t=Y.words;t.length=E,this.convert13b(j.words,j.length,f,E),this.convert13b(z.words,z.length,_,E),this.transform(f,s,c,p,E,i),this.transform(_,s,x,o,E,i);for(var h=0;h<E;h++){var b=c[h]*x[h]-p[h]*o[h];p[h]=c[h]*o[h]+p[h]*x[h],c[h]=b}return this.conjugate(c,p,E),this.transform(c,p,t,s,E,i),this.conjugate(t,s,E),this.normalize13b(t,E),Y.negative=j.negative^z.negative,Y.length=j.length+z.length,Y.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),R(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,Y=0;Y<(this||et).length;Y++){var E=(0|(this||et).words[Y])*j,i=(67108863&E)+(67108863&z);z>>=26,z+=E/67108864|0,z+=i>>>26,(this||et).words[Y]=67108863&i}return z!==0&&((this||et).words[Y]=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 f=new Array(s.bitLength()),c=0;c<f.length;c++){var p=c/26|0,_=c%26;f[c]=(s.words[p]&1<<_)>>>_}return f}(j);if(z.length===0)return new a(1);for(var Y=this||et,E=0;E<z.length&&z[E]===0;E++,Y=Y.sqr());if(++E<z.length)for(var i=Y.sqr();E<z.length;E++,i=i.sqr())z[E]!==0&&(Y=Y.mul(i));return Y},a.prototype.iushln=function(j){n(typeof j=="number"&&j>=0);var z,Y=j%26,E=(j-Y)/26,i=67108863>>>26-Y<<26-Y;if(Y!==0){var s=0;for(z=0;z<(this||et).length;z++){var f=(this||et).words[z]&i,c=(0|(this||et).words[z])-f<<Y;(this||et).words[z]=c|s,s=f>>>26-Y}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,Y){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),f=67108863^67108863>>>i<<i,c=Y;if(E-=s,E=Math.max(0,E),c){for(var p=0;p<s;p++)c.words[p]=(this||et).words[p];c.length=s}if(s!==0)if((this||et).length>s)for((this||et).length-=s,p=0;p<(this||et).length;p++)(this||et).words[p]=(this||et).words[p+s];else(this||et).words[0]=0,(this||et).length=1;var _=0;for(p=(this||et).length-1;p>=0&&(_!==0||p>=E);p--){var x=0|(this||et).words[p];(this||et).words[p]=_<<26-i|x>>>i,_=x&f}return c&&_!==0&&(c.words[c.length++]=_),(this||et).length===0&&((this||et).words[0]=0,(this||et).length=1),this.strip()},a.prototype.ishrn=function(j,z,Y){return n((this||et).negative===0),this.iushrn(j,z,Y)},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,Y=(j-z)/26,E=1<<z;return!((this||et).length<=Y)&&!!((this||et).words[Y]&E)},a.prototype.imaskn=function(j){n(typeof j=="number"&&j>=0);var z=j%26,Y=(j-z)/26;if(n((this||et).negative===0,"imaskn works only with positive numbers"),(this||et).length<=Y)return this||et;if(z!==0&&Y++,(this||et).length=Math.min(Y,(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,Y){var E,i,s=j.length+Y;this._expand(s);var f=0;for(E=0;E<j.length;E++){i=(0|(this||et).words[E+Y])+f;var c=(0|j.words[E])*z;f=((i-=67108863&c)>>26)-(c/67108864|0),(this||et).words[E+Y]=67108863&i}for(;E<(this||et).length-Y;E++)f=(i=(0|(this||et).words[E+Y])+f)>>26,(this||et).words[E+Y]=67108863&i;if(f===0)return this.strip();for(n(f===-1),f=0,E=0;E<(this||et).length;E++)f=(i=-(0|(this||et).words[E])+f)>>26,(this||et).words[E]=67108863&i;return(this||et).negative=1,this.strip()},a.prototype._wordDiv=function(j,z){var Y=((this||et).length,j.length),E=this.clone(),i=j,s=0|i.words[i.length-1];(Y=26-this._countBits(s))!==0&&(i=i.ushln(Y),E.iushln(Y),s=0|i.words[i.length-1]);var f,c=E.length-i.length;if(z!=="mod"){(f=new a(null)).length=c+1,f.words=new Array(f.length);for(var p=0;p<f.length;p++)f.words[p]=0}var _=E.clone()._ishlnsubmul(i,1,c);_.negative===0&&(E=_,f&&(f.words[c]=1));for(var x=c-1;x>=0;x--){var o=67108864*(0|E.words[i.length+x])+(0|E.words[i.length+x-1]);for(o=Math.min(o/s|0,67108863),E._ishlnsubmul(i,o,x);E.negative!==0;)o--,E.negative=0,E._ishlnsubmul(i,1,x),E.isZero()||(E.negative^=1);f&&(f.words[x]=o)}return f&&f.strip(),E.strip(),z!=="div"&&Y!==0&&E.iushrn(Y),{div:f||null,mod:E}},a.prototype.divmod=function(j,z,Y){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(),Y&&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(),Y&&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 Y=z.div.negative!==0?z.mod.isub(j):z.mod,E=j.ushrn(1),i=j.andln(1),s=Y.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,Y=0,E=(this||et).length-1;E>=0;E--)Y=(z*Y+(0|(this||et).words[E]))%j;return Y},a.prototype.idivn=function(j){n(j<=67108863);for(var z=0,Y=(this||et).length-1;Y>=0;Y--){var E=(0|(this||et).words[Y])+67108864*z;(this||et).words[Y]=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,Y=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),f=new a(1),c=0;z.isEven()&&Y.isEven();)z.iushrn(1),Y.iushrn(1),++c;for(var p=Y.clone(),_=z.clone();!z.isZero();){for(var x=0,o=1;!(z.words[0]&o)&&x<26;++x,o<<=1);if(x>0)for(z.iushrn(x);x-- >0;)(E.isOdd()||i.isOdd())&&(E.iadd(p),i.isub(_)),E.iushrn(1),i.iushrn(1);for(var t=0,h=1;!(Y.words[0]&h)&&t<26;++t,h<<=1);if(t>0)for(Y.iushrn(t);t-- >0;)(s.isOdd()||f.isOdd())&&(s.iadd(p),f.isub(_)),s.iushrn(1),f.iushrn(1);z.cmp(Y)>=0?(z.isub(Y),E.isub(s),i.isub(f)):(Y.isub(z),s.isub(E),f.isub(i))}return{a:s,b:f,gcd:Y.iushln(c)}},a.prototype._invmp=function(j){n(j.negative===0),n(!j.isZero());var z=this||et,Y=j.clone();z=z.negative!==0?z.umod(j):z.clone();for(var E,i=new a(1),s=new a(0),f=Y.clone();z.cmpn(1)>0&&Y.cmpn(1)>0;){for(var c=0,p=1;!(z.words[0]&p)&&c<26;++c,p<<=1);if(c>0)for(z.iushrn(c);c-- >0;)i.isOdd()&&i.iadd(f),i.iushrn(1);for(var _=0,x=1;!(Y.words[0]&x)&&_<26;++_,x<<=1);if(_>0)for(Y.iushrn(_);_-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);z.cmp(Y)>=0?(z.isub(Y),i.isub(s)):(Y.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(),Y=j.clone();z.negative=0,Y.negative=0;for(var E=0;z.isEven()&&Y.isEven();E++)z.iushrn(1),Y.iushrn(1);for(;;){for(;z.isEven();)z.iushrn(1);for(;Y.isEven();)Y.iushrn(1);var i=z.cmp(Y);if(i<0){var s=z;z=Y,Y=s}else if(i===0||Y.cmpn(1)===0)break;z.isub(Y)}return Y.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,Y=(j-z)/26,E=1<<z;if((this||et).length<=Y)return this._expand(Y+1),(this||et).words[Y]|=E,this||et;for(var i=E,s=Y;i!==0&&s<(this||et).length;s++){var f=0|(this||et).words[s];i=(f+=i)>>>26,f&=67108863,(this||et).words[s]=f}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,Y=j<0;if((this||et).negative!==0&&!Y)return-1;if((this||et).negative===0&&Y)return 1;if(this.strip(),(this||et).length>1)z=1;else{Y&&(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,Y=(this||et).length-1;Y>=0;Y--){var E=0|(this||et).words[Y],i=0|j.words[Y];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 K(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 k={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 K(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 V(j){K.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,Y=j;do this.split(Y,(this||et).tmp),z=(Y=(Y=this.imulK(Y)).iadd((this||et).tmp)).bitLength();while(z>(this||et).n);var E=z<(this||et).n?-1:Y.ucmp((this||et).p);return E===0?(Y.words[0]=0,Y.length=1):E>0?Y.isub((this||et).p):Y.strip(),Y},I.prototype.split=function(j,z){j.iushrn((this||et).n,0,z)},I.prototype.imulK=function(j){return j.imul((this||et).k)},u(B,I),B.prototype.split=function(j,z){for(var Y=Math.min(j.length,9),E=0;E<Y;E++)z.words[E]=j.words[E];if(z.length=Y,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,Y=0;Y<j.length;Y++){var E=0|j.words[Y];z+=977*E,j.words[Y]=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},u(P,I),u(C,I),u(q,I),q.prototype.imulK=function(j){for(var z=0,Y=0;Y<j.length;Y++){var E=19*(0|j.words[Y])+z,i=67108863&E;E>>>=26,j.words[Y]=i,z=E}return z!==0&&(j.words[j.length++]=z),j},a._prime=function(j){if(k[j])return k[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 k[j]=z,z},K.prototype._verify1=function(j){n(j.negative===0,"red works only with positives"),n(j.red,"red works only with red numbers")},K.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")},K.prototype.imod=function(j){return(this||et).prime?(this||et).prime.ireduce(j)._forceRed(this||et):j.umod((this||et).m)._forceRed(this||et)},K.prototype.neg=function(j){return j.isZero()?j.clone():(this||et).m.sub(j)._forceRed(this||et)},K.prototype.add=function(j,z){this._verify2(j,z);var Y=j.add(z);return Y.cmp((this||et).m)>=0&&Y.isub((this||et).m),Y._forceRed(this||et)},K.prototype.iadd=function(j,z){this._verify2(j,z);var Y=j.iadd(z);return Y.cmp((this||et).m)>=0&&Y.isub((this||et).m),Y},K.prototype.sub=function(j,z){this._verify2(j,z);var Y=j.sub(z);return Y.cmpn(0)<0&&Y.iadd((this||et).m),Y._forceRed(this||et)},K.prototype.isub=function(j,z){this._verify2(j,z);var Y=j.isub(z);return Y.cmpn(0)<0&&Y.iadd((this||et).m),Y},K.prototype.shl=function(j,z){return this._verify1(j),this.imod(j.ushln(z))},K.prototype.imul=function(j,z){return this._verify2(j,z),this.imod(j.imul(z))},K.prototype.mul=function(j,z){return this._verify2(j,z),this.imod(j.mul(z))},K.prototype.isqr=function(j){return this.imul(j,j.clone())},K.prototype.sqr=function(j){return this.mul(j,j)},K.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 Y=(this||et).m.add(new a(1)).iushrn(2);return this.pow(j,Y)}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),f=s.redNeg(),c=(this||et).m.subn(1).iushrn(1),p=(this||et).m.bitLength();for(p=new a(2*p*p).toRed(this||et);this.pow(p,c).cmp(f)!==0;)p.redIAdd(f);for(var _=this.pow(p,E),x=this.pow(j,E.addn(1).iushrn(1)),o=this.pow(j,E),t=i;o.cmp(s)!==0;){for(var h=o,b=0;h.cmp(s)!==0;b++)h=h.redSqr();n(b<t);var M=this.pow(_,new a(1).iushln(t-b-1));x=x.redMul(M),_=M.redSqr(),o=o.redMul(_),t=b}return x},K.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)},K.prototype.pow=function(j,z){if(z.isZero())return new a(1).toRed(this||et);if(z.cmpn(1)===0)return j.clone();var Y=new Array(16);Y[0]=new a(1).toRed(this||et),Y[1]=j;for(var E=2;E<Y.length;E++)Y[E]=this.mul(Y[E-1],j);var i=Y[0],s=0,f=0,c=z.bitLength()%26;for(c===0&&(c=26),E=z.length-1;E>=0;E--){for(var p=z.words[E],_=c-1;_>=0;_--){var x=p>>_&1;i!==Y[0]&&(i=this.sqr(i)),x!==0||s!==0?(s<<=1,s|=x,(++f===4||E===0&&_===0)&&(i=this.mul(i,Y[s]),f=0,s=0)):f=0}c=26}return i},K.prototype.convertTo=function(j){var z=j.umod((this||et).m);return z===j?z.clone():z},K.prototype.convertFrom=function(j){var z=j.clone();return z.red=null,z},a.mont=function(j){return new V(j)},u(V,K),V.prototype.convertTo=function(j){return this.imod(j.ushln((this||et).shift))},V.prototype.convertFrom=function(j){var z=this.imod(j.mul((this||et).rinv));return z.red=null,z},V.prototype.imul=function(j,z){if(j.isZero()||z.isZero())return j.words[0]=0,j.length=1,j;var Y=j.imul(z),E=Y.maskn((this||et).shift).mul((this||et).minv).imaskn((this||et).shift).mul((this||et).m),i=Y.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)},V.prototype.mul=function(j,z){if(j.isZero()||z.isZero())return new a(0)._forceRed(this||et);var Y=j.mul(z),E=Y.maskn((this||et).shift).mul((this||et).minv).imaskn((this||et).shift).mul((this||et).m),i=Y.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)},V.prototype.invm=function(j){return this.imod(j._invmp((this||et).m).mul((this||et).r2))._forceRed(this||et)}})(ite,rte);Hn=ite.exports,QEe=Object.freeze({}),r3=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;if((nte=function(e){return cE||(cE=new Kh(null)),cE.generate(e)}).Rand=Kh,Kh.prototype.generate=function(e){return this._rand(e)},Kh.prototype._rand=function(e){if((this||r3).rand.getBytes)return(this||r3).rand.getBytes(e);for(var r=new Uint8Array(e),n=0;n<r.length;n++)r[n]=(this||r3).rand.getByte();return r},typeof self=="object")self.crypto&&self.crypto.getRandomValues?Kh.prototype._rand=function(e){var r=new Uint8Array(e);return self.crypto.getRandomValues(r),r}:self.msCrypto&&self.msCrypto.getRandomValues?Kh.prototype._rand=function(e){var r=new Uint8Array(e);return self.msCrypto.getRandomValues(r),r}:typeof window=="object"&&(Kh.prototype._rand=function(){throw new Error("Not implemented yet")});else try{if(dE=QEe,typeof dE.randomBytes!="function")throw new Error("Not supported");Kh.prototype._rand=function(e){return dE.randomBytes(e)}}catch(e){}Fx=nte,ote=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,x0=Hn,eAe=Fx;ate=T0,T0.create=function(e){return new T0(e)},T0.prototype._randbelow=function(e){var r=e.bitLength(),n=Math.ceil(r/8);do var u=new x0((this||ote).rand.generate(n));while(u.cmp(e)>=0);return u},T0.prototype._randrange=function(e,r){var n=r.sub(e);return e.add(this._randbelow(n))},T0.prototype.test=function(e,r,n){var u=e.bitLength(),a=x0.mont(e),d=new x0(1).toRed(a);r||(r=Math.max(1,u/48|0));for(var l=e.subn(1),v=0;!l.testn(v);v++);for(var w=e.shrn(v),m=l.toRed(a);r>0;r--){var y=this._randrange(new x0(2),l);n&&n(y);var g=y.toRed(a).redPow(w);if(g.cmp(d)!==0&&g.cmp(m)!==0){for(var S=1;S<v;S++){if((g=g.redSqr()).cmp(d)===0)return!1;if(g.cmp(m)===0)break}if(S===v)return!1}}return!0},T0.prototype.getDivisor=function(e,r){var n=e.bitLength(),u=x0.mont(e),a=new x0(1).toRed(u);r||(r=Math.max(1,n/48|0));for(var d=e.subn(1),l=0;!d.testn(l);l++);for(var v=e.shrn(l),w=d.toRed(u);r>0;r--){var m=this._randrange(new x0(2),d),y=e.gcd(m);if(y.cmpn(1)!==0)return y;var g=m.toRed(u).redPow(v);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(e);if(g.cmp(w)===0)break}if(S===l)return(g=g.redSqr()).fromRed().subn(1).gcd(e)}}return!1};ste=ate,tAe=a1;fte=vE,vE.simpleSieve=lx,vE.fermatTest=cx;Ua=Hn,rAe=new Ua(24),hV=new ste,iAe=new Ua(1),hx=new Ua(2),nAe=new Ua(5),aAe=(new Ua(16),new Ua(8),new Ua(10)),oAe=new Ua(3),sAe=(new Ua(7),new Ua(11)),lV=new Ua(4),pE=(new Ua(12),null);hte=fte,_i=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,vu=Pr.Buffer,Ns=Hn,cV=new ste,uAe=new Ns(24),hAe=new Ns(11),lAe=new Ns(10),cAe=new Ns(3),dAe=new Ns(7),dV=hte,pAe=a1;ute=Qu;pb={};Object.defineProperty(Qu.prototype,"verifyError",{enumerable:!0,get:function(){return typeof(this||_i)._primeCode!="number"&&((this||_i)._primeCode=function(e,r){var n=r.toString("hex"),u=[n,e.toString(16)].join("_");if(u in pb)return pb[u];var a,d=0;if(e.isEven()||!dV.simpleSieve||!dV.fermatTest(e)||!cV.test(e))return d+=1,d+=n==="02"||n==="05"?8:4,pb[u]=d,d;switch(cV.test(e.shrn(1))||(d+=2),n){case"02":e.mod(uAe).cmp(hAe)&&(d+=8);break;case"05":(a=e.mod(lAe)).cmp(cAe)&&a.cmp(dAe)&&(d+=8);break;default:d+=4}return pb[u]=d,d}((this||_i).__prime,(this||_i).__gen)),(this||_i)._primeCode}}),Qu.prototype.generateKeys=function(){return(this||_i)._priv||((this||_i)._priv=new Ns(pAe((this||_i)._primeLen))),(this||_i)._pub=(this||_i)._gen.toRed((this||_i)._prime).redPow((this||_i)._priv).fromRed(),this.getPublicKey()},Qu.prototype.computeSecret=function(e){var r=(e=(e=new Ns(e)).toRed((this||_i)._prime)).redPow((this||_i)._priv).fromRed(),n=new vu(r.toArray()),u=this.getPrime();if(n.length<u.length){var a=new vu(u.length-n.length);a.fill(0),n=vu.concat([a,n])}return n},Qu.prototype.getPublicKey=function(e){return vb((this||_i)._pub,e)},Qu.prototype.getPrivateKey=function(e){return vb((this||_i)._priv,e)},Qu.prototype.getPrime=function(e){return vb((this||_i).__prime,e)},Qu.prototype.getGenerator=function(e){return vb((this||_i)._gen,e)},Qu.prototype.setGenerator=function(e,r){return r=r||"utf8",vu.isBuffer(e)||(e=new vu(e,r)),(this||_i).__gen=e,(this||_i)._gen=new Ns(e),this||_i};gAe=ute,Hd={},Zh=Pr.Buffer,yAe=hte,pV={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"}},mE=gAe,bAe={binary:!0,hex:!0,base64:!0};Hd.DiffieHellmanGroup=Hd.createDiffieHellmanGroup=Hd.getDiffieHellman=function(e){var r=new Zh(pV[e].prime,"hex"),n=new Zh(pV[e].gen,"hex");return new mE(r,n)},Hd.createDiffieHellman=Hd.DiffieHellman=function e(r,n,u,a){return Zh.isBuffer(n)||bAe[n]===void 0?e(r,"binary",n,u):(n=n||"binary",a=a||"binary",u=u||new Zh([2]),Zh.isBuffer(u)||(u=new Zh(u,a)),typeof r=="number"?new mE(yAe(r,u),u,!0):(Zh.isBuffer(r)||(r=new Zh(r,n)),new mE(r,u,!0)))};wAe=Pr.Buffer,cl=Hn,vV=a1;lte=mV,mV.getr=cte;zx=lte,Hx={},mb=Hx;mb.toArray=function(e,r){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if(typeof e!="string"){for(var u=0;u<e.length;u++)n[u]=0|e[u];return n}if(r==="hex")for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),u=0;u<e.length;u+=2)n.push(parseInt(e[u]+e[u+1],16));else for(u=0;u<e.length;u++){var a=e.charCodeAt(u),d=a>>8,l=255&a;d?n.push(d,l):n.push(l)}return n},mb.zero2=dte,mb.toHex=gV,mb.encode=function(e,r){return r==="hex"?gV(e):e};Do={},bf=Do,_Ae=Hn,MAe=Ls,gb=Hx;bf.assert=MAe,bf.toArray=gb.toArray,bf.zero2=gb.zero2,bf.toHex=gb.toHex,bf.encode=gb.encode,bf.getNAF=function(e,r,n){var u=new Array(Math.max(e.bitLength(),n)+1);u.fill(0);for(var a=1<<r+1,d=e.clone(),l=0;l<u.length;l++){var v,w=d.andln(a-1);d.isOdd()?(v=w>(a>>1)-1?(a>>1)-w:w,d.isubn(v)):v=0,u[l]=v,d.iushrn(1)}return u},bf.getJSF=function(e,r){var n=[[],[]];e=e.clone(),r=r.clone();for(var u=0,a=0;e.cmpn(-u)>0||r.cmpn(-a)>0;){var d,l,v,w=e.andln(3)+u&3,m=r.andln(3)+a&3;w===3&&(w=-1),m===3&&(m=-1),(1&w)==0?d=0:d=(v=e.andln(7)+u&7)!==3&&v!==5||m!==2?w:-w,n[0].push(d),(1&m)==0?l=0:l=(v=r.andln(7)+a&7)!==3&&v!==5||w!==2?m:-m,n[1].push(l),2*u===d+1&&(u=1-u),2*a===l+1&&(a=1-a),e.iushrn(1),r.iushrn(1)}return n},bf.cachedProperty=function(e,r,n){var u="_"+r;e.prototype[r]=function(){return this[u]!==void 0?this[u]:this[u]=n.call(this)}},bf.parseBytes=function(e){return typeof e=="string"?bf.toArray(e,"hex"):e},bf.intFromLE=function(e){return new _Ae(e,"hex","le")};l3=Hn,dx=Do,SAe=dx.assert;pte=i3,i3.prototype._importDER=function(e,r){e=dx.toArray(e,r);var n=new EAe;if(e[n.place++]!==48||gE(e,n)+n.place!==e.length||e[n.place++]!==2)return!1;var u=gE(e,n),a=e.slice(n.place,u+n.place);if(n.place+=u,e[n.place++]!==2)return!1;var d=gE(e,n);if(e.length!==d+n.place)return!1;var l=e.slice(n.place,d+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 l3(a),this.s=new l3(l),this.recoveryParam=null,!0},i3.prototype.toDER=function(e){var r=this.r.toArray(),n=this.s.toArray();for(128&r[0]&&(r=[0].concat(r)),128&n[0]&&(n=[0].concat(n)),r=yV(r),n=yV(n);!(n[0]||128&n[1]);)n=n.slice(1);var u=[2];yE(u,r.length),(u=u.concat(r)).push(2),yE(u,n.length);var a=u.concat(n),d=[48];return yE(d,a.length),d=d.concat(a),dx.encode(d,e)};AAe=pte,gi={},RAe=Ls,xAe=jr;gi.inherits=xAe,gi.toArray=function(e,r){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if(typeof e=="string")if(r){if(r==="hex")for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),a=0;a<e.length;a+=2)n.push(parseInt(e[a]+e[a+1],16))}else for(var u=0,a=0;a<e.length;a++){var d=e.charCodeAt(a);d<128?n[u++]=d:d<2048?(n[u++]=d>>6|192,n[u++]=63&d|128):TAe(e,a)?(d=65536+((1023&d)<<10)+(1023&e.charCodeAt(++a)),n[u++]=d>>18|240,n[u++]=d>>12&63|128,n[u++]=d>>6&63|128,n[u++]=63&d|128):(n[u++]=d>>12|224,n[u++]=d>>6&63|128,n[u++]=63&d|128)}else for(a=0;a<e.length;a++)n[a]=0|e[a];return n},gi.toHex=function(e){for(var r="",n=0;n<e.length;n++)r+=wV(e[n].toString(16));return r},gi.htonl=bV,gi.toHex32=function(e,r){for(var n="",u=0;u<e.length;u++){var a=e[u];r==="little"&&(a=bV(a)),n+=_V(a.toString(16))}return n},gi.zero2=wV,gi.zero8=_V,gi.join32=function(e,r,n,u){var a=n-r;RAe(a%4==0);for(var d=new Array(a/4),l=0,v=r;l<d.length;l++,v+=4){var w;w=u==="big"?e[v]<<24|e[v+1]<<16|e[v+2]<<8|e[v+3]:e[v+3]<<24|e[v+2]<<16|e[v+1]<<8|e[v],d[l]=w>>>0}return d},gi.split32=function(e,r){for(var n=new Array(4*e.length),u=0,a=0;u<e.length;u++,a+=4){var d=e[u];r==="big"?(n[a]=d>>>24,n[a+1]=d>>>16&255,n[a+2]=d>>>8&255,n[a+3]=255&d):(n[a+3]=d>>>24,n[a+2]=d>>>16&255,n[a+1]=d>>>8&255,n[a]=255&d)}return n},gi.rotr32=function(e,r){return e>>>r|e<<32-r},gi.rotl32=function(e,r){return e<<r|e>>>32-r},gi.sum32=function(e,r){return e+r>>>0},gi.sum32_3=function(e,r,n){return e+r+n>>>0},gi.sum32_4=function(e,r,n,u){return e+r+n+u>>>0},gi.sum32_5=function(e,r,n,u,a){return e+r+n+u+a>>>0},gi.sum64=function(e,r,n,u){var a=e[r],d=u+e[r+1]>>>0,l=(d<u?1:0)+n+a;e[r]=l>>>0,e[r+1]=d},gi.sum64_hi=function(e,r,n,u){return(r+u>>>0<r?1:0)+e+n>>>0},gi.sum64_lo=function(e,r,n,u){return r+u>>>0},gi.sum64_4_hi=function(e,r,n,u,a,d,l,v){var w=0,m=r;return w+=(m=m+u>>>0)<r?1:0,w+=(m=m+d>>>0)<d?1:0,e+n+a+l+(w+=(m=m+v>>>0)<v?1:0)>>>0},gi.sum64_4_lo=function(e,r,n,u,a,d,l,v){return r+u+d+v>>>0},gi.sum64_5_hi=function(e,r,n,u,a,d,l,v,w,m){var y=0,g=r;return y+=(g=g+u>>>0)<r?1:0,y+=(g=g+d>>>0)<d?1:0,y+=(g=g+v>>>0)<v?1:0,e+n+a+l+w+(y+=(g=g+m>>>0)<m?1:0)>>>0},gi.sum64_5_lo=function(e,r,n,u,a,d,l,v,w,m){return r+u+d+v+m>>>0},gi.rotr64_hi=function(e,r,n){return(r<<32-n|e>>>n)>>>0},gi.rotr64_lo=function(e,r,n){return(e<<32-n|r>>>n)>>>0},gi.shr64_hi=function(e,r,n){return e>>>n},gi.shr64_lo=function(e,r,n){return(e<<32-n|r>>>n)>>>0};s1={},MV=gi,kAe=Ls;s1.BlockHash=yb,yb.prototype.update=function(e,r){if(e=MV.toArray(e,r),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),this.pending.length===0&&(this.pending=null),e=MV.join32(e,0,e.length-n,this.endian);for(var u=0;u<e.length;u+=this._delta32)this._update(e,u,u+this._delta32)}return this},yb.prototype.digest=function(e){return this.update(this._pad()),kAe(this.pending===null),this._digest(e)},yb.prototype._pad=function(){var e=this.pendingTotal,r=this._delta8,n=r-(e+this.padLength)%r,u=new Array(n+this.padLength);u[0]=128;for(var a=1;a<n;a++)u[a]=0;if(e<<=3,this.endian==="big"){for(var d=8;d<this.padLength;d++)u[a++]=0;u[a++]=0,u[a++]=0,u[a++]=0,u[a++]=0,u[a++]=e>>>24&255,u[a++]=e>>>16&255,u[a++]=e>>>8&255,u[a++]=255&e}else for(u[a++]=255&e,u[a++]=e>>>8&255,u[a++]=e>>>16&255,u[a++]=e>>>24&255,u[a++]=0,u[a++]=0,u[a++]=0,u[a++]=0,d=8;d<this.padLength;d++)u[a++]=0;return u};mo=gi,IAe=s1,BAe=Ls,mu=mo.rotr64_hi,gu=mo.rotr64_lo,mte=mo.shr64_hi,gte=mo.shr64_lo,Wh=mo.sum64,bE=mo.sum64_hi,wE=mo.sum64_lo,OAe=mo.sum64_4_hi,PAe=mo.sum64_4_lo,NAe=mo.sum64_5_hi,CAe=mo.sum64_5_lo,yte=IAe.BlockHash,LAe=[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];mo.inherits(Ef,yte),vte=Ef,Ef.blockSize=1024,Ef.outSize=512,Ef.hmacStrength=192,Ef.padLength=128,Ef.prototype._prepareBlock=function(e,r){for(var n=this.W,u=0;u<32;u++)n[u]=e[r+u];for(;u<n.length;u+=2){var a=WAe(n[u-4],n[u-3]),d=GAe(n[u-4],n[u-3]),l=n[u-14],v=n[u-13],w=KAe(n[u-30],n[u-29]),m=ZAe(n[u-30],n[u-29]),y=n[u-32],g=n[u-31];n[u]=OAe(a,d,l,v,w,m,y,g),n[u+1]=PAe(a,d,l,v,w,m,y,g)}},Ef.prototype._update=function(e,r){this._prepareBlock(e,r);var n=this.W,u=this.h[0],a=this.h[1],d=this.h[2],l=this.h[3],v=this.h[4],w=this.h[5],m=this.h[6],y=this.h[7],g=this.h[8],S=this.h[9],R=this.h[10],A=this.h[11],k=this.h[12],I=this.h[13],B=this.h[14],P=this.h[15];BAe(this.k.length===n.length);for(var C=0;C<n.length;C+=2){var q=B,K=P,V=zAe(g,S),j=HAe(g,S),z=DAe(g,S,R,A,k),Y=$Ae(g,S,R,A,k,I),E=this.k[C],i=this.k[C+1],s=n[C],f=n[C+1],c=NAe(q,K,V,j,z,Y,E,i,s,f),p=CAe(q,K,V,j,z,Y,E,i,s,f);q=jAe(u,a),K=FAe(u,a),V=UAe(u,a,d,l,v),j=qAe(u,a,d,l,v,w);var _=bE(q,K,V,j),x=wE(q,K,V,j);B=k,P=I,k=R,I=A,R=g,A=S,g=bE(m,y,c,p),S=wE(y,y,c,p),m=v,y=w,v=d,w=l,d=u,l=a,u=bE(c,p,_,x),a=wE(c,p,_,x)}Wh(this.h,0,u,a),Wh(this.h,2,d,l),Wh(this.h,4,v,w),Wh(this.h,6,m,y),Wh(this.h,8,g,S),Wh(this.h,10,R,A),Wh(this.h,12,k,I),Wh(this.h,14,B,P)},Ef.prototype._digest=function(e){return e==="hex"?mo.toHex32(this.h,"big"):mo.split32(this.h,"big")};bte=vte,hu={},ou=gi.rotr32;hu.ft_1=function(e,r,n,u){return e===0?SV(r,n,u):e===1||e===3?AV(r,n,u):e===2?EV(r,n,u):void 0},hu.ch32=SV,hu.maj32=EV,hu.p32=AV,hu.s0_256=function(e){return ou(e,2)^ou(e,13)^ou(e,22)},hu.s1_256=function(e){return ou(e,6)^ou(e,11)^ou(e,25)},hu.g0_256=function(e){return ou(e,7)^ou(e,18)^e>>>3},hu.g1_256=function(e){return ou(e,17)^ou(e,19)^e>>>10};Vd=gi,VAe=s1,f1=hu,JAe=Ls,wf=Vd.sum32,YAe=Vd.sum32_4,XAe=Vd.sum32_5,QAe=f1.ch32,eRe=f1.maj32,tRe=f1.s0_256,rRe=f1.s1_256,iRe=f1.g0_256,nRe=f1.g1_256,_te=VAe.BlockHash,aRe=[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];Vd.inherits(lu,_te),wte=lu,lu.blockSize=512,lu.outSize=256,lu.hmacStrength=192,lu.padLength=64,lu.prototype._update=function(e,r){for(var n=this.W,u=0;u<16;u++)n[u]=e[r+u];for(;u<n.length;u++)n[u]=YAe(nRe(n[u-2]),n[u-7],iRe(n[u-15]),n[u-16]);var a=this.h[0],d=this.h[1],l=this.h[2],v=this.h[3],w=this.h[4],m=this.h[5],y=this.h[6],g=this.h[7];for(JAe(this.k.length===n.length),u=0;u<n.length;u++){var S=XAe(g,rRe(w),QAe(w,m,y),this.k[u],n[u]),R=wf(tRe(a),eRe(a,d,l));g=y,y=m,m=w,w=wf(v,S),v=l,l=d,d=a,a=wf(S,R)}this.h[0]=wf(this.h[0],a),this.h[1]=wf(this.h[1],d),this.h[2]=wf(this.h[2],l),this.h[3]=wf(this.h[3],v),this.h[4]=wf(this.h[4],w),this.h[5]=wf(this.h[5],m),this.h[6]=wf(this.h[6],y),this.h[7]=wf(this.h[7],g)},lu.prototype._digest=function(e){return e==="hex"?Vd.toHex32(this.h,"big"):Vd.split32(this.h,"big")};Mte=wte,Jd=gi,oRe=s1,sRe=hu,_E=Jd.rotl32,q2=Jd.sum32,fRe=Jd.sum32_5,uRe=sRe.ft_1,Ete=oRe.BlockHash,hRe=[1518500249,1859775393,2400959708,3395469782];Jd.inherits(cu,Ete),Ste=cu,cu.blockSize=512,cu.outSize=160,cu.hmacStrength=80,cu.padLength=64,cu.prototype._update=function(e,r){for(var n=this.W,u=0;u<16;u++)n[u]=e[r+u];for(;u<n.length;u++)n[u]=_E(n[u-3]^n[u-8]^n[u-14]^n[u-16],1);var a=this.h[0],d=this.h[1],l=this.h[2],v=this.h[3],w=this.h[4];for(u=0;u<n.length;u++){var m=~~(u/20),y=fRe(_E(a,5),uRe(m,d,l,v),w,n[u],hRe[m]);w=v,v=l,l=_E(d,30),d=a,a=y}this.h[0]=q2(this.h[0],a),this.h[1]=q2(this.h[1],d),this.h[2]=q2(this.h[2],l),this.h[3]=q2(this.h[3],v),this.h[4]=q2(this.h[4],w)},cu.prototype._digest=function(e){return e==="hex"?Jd.toHex32(this.h,"big"):Jd.split32(this.h,"big")};lRe=Ste,ME=gi,Rte=Mte;ME.inherits(th,Rte),Ate=th,th.blockSize=512,th.outSize=224,th.hmacStrength=192,th.padLength=64,th.prototype._digest=function(e){return e==="hex"?ME.toHex32(this.h.slice(0,7),"big"):ME.split32(this.h.slice(0,7),"big")};cRe=Ate,SE=gi,Tte=bte;SE.inherits(rh,Tte),xte=rh,rh.blockSize=1024,rh.outSize=384,rh.hmacStrength=192,rh.padLength=128,rh.prototype._digest=function(e){return e==="hex"?SE.toHex32(this.h.slice(0,12),"big"):SE.split32(this.h.slice(0,12),"big")};dRe=xte,Kd={};Kd.sha1=lRe,Kd.sha224=cRe,Kd.sha256=Mte,Kd.sha384=dRe,Kd.sha512=bte;kte={},V0=gi,pRe=s1,bb=V0.rotl32,RV=V0.sum32,j2=V0.sum32_3,xV=V0.sum32_4,Ite=pRe.BlockHash;V0.inherits(du,Ite),kte.ripemd160=du,du.blockSize=512,du.outSize=160,du.hmacStrength=192,du.padLength=64,du.prototype._update=function(e,r){for(var n=this.h[0],u=this.h[1],a=this.h[2],d=this.h[3],l=this.h[4],v=n,w=u,m=a,y=d,g=l,S=0;S<80;S++){var R=RV(bb(xV(n,TV(S,u,a,d),e[gRe[S]+r],vRe(S)),bRe[S]),l);n=l,l=d,d=bb(a,10),a=u,u=R,R=RV(bb(xV(v,TV(79-S,w,m,y),e[yRe[S]+r],mRe(S)),wRe[S]),g),v=g,g=y,y=bb(m,10),m=w,w=R}R=j2(this.h[1],a,y),this.h[1]=j2(this.h[2],d,g),this.h[2]=j2(this.h[3],l,v),this.h[3]=j2(this.h[4],n,w),this.h[4]=j2(this.h[0],u,m),this.h[0]=R},du.prototype._digest=function(e){return e==="hex"?V0.toHex32(this.h,"little"):V0.split32(this.h,"little")};gRe=[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],yRe=[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],bRe=[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],wRe=[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],_Re=gi,MRe=Ls;Bte=Zd,Zd.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),MRe(e.length<=this.blockSize);for(var r=e.length;r<this.blockSize;r++)e.push(0);for(r=0;r<e.length;r++)e[r]^=54;for(this.inner=new this.Hash().update(e),r=0;r<e.length;r++)e[r]^=106;this.outer=new this.Hash().update(e)},Zd.prototype.update=function(e,r){return this.inner.update(e,r),this},Zd.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)};SRe=Bte,R3={},_a=R3;_a.utils=gi,_a.common=s1,_a.sha=Kd,_a.ripemd=kte,_a.hmac=SRe,_a.sha1=_a.sha.sha1,_a.sha256=_a.sha.sha256,_a.sha224=_a.sha.sha224,_a.sha384=_a.sha.sha384,_a.sha512=_a.sha.sha512,_a.ripemd160=_a.ripemd.ripemd160;ERe=R3,W0=Hx,Pte=Ls;Ote=dl,dl.prototype._init=function(e,r,n){var u=e.concat(r).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(u),this._reseed=1,this.reseedInterval=281474976710656},dl.prototype._hmac=function(){return new ERe.hmac(this.hash,this.K)},dl.prototype._update=function(e){var r=this._hmac().update(this.V).update([0]);e&&(r=r.update(e)),this.K=r.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},dl.prototype.reseed=function(e,r,n,u){typeof r!="string"&&(u=n,n=r,r=null),e=W0.toArray(e,r),n=W0.toArray(n,u),Pte(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},dl.prototype.generate=function(e,r,n,u){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(u=n,n=r,r=null),n&&(n=W0.toArray(n,u||"hex"),this._update(n));for(var a=[];a.length<e;)this.V=this._hmac().update(this.V).digest(),a=a.concat(this.V);var d=a.slice(0,e);return this._update(n),this._reseed++,W0.encode(d,r)};ARe=Ote,k0=Hn,vv=Do,wb=vv.getNAF,RRe=vv.getJSF,_b=vv.assert;Nte=Gh,Gh.prototype.point=function(){throw new Error("Not implemented")},Gh.prototype.validate=function(){throw new Error("Not implemented")},Gh.prototype._fixedNafMul=function(e,r){_b(e.precomputed);var n=e._getDoubles(),u=wb(r,1,this._bitLength),a=(1<<n.step+1)-(n.step%2==0?2:1);a/=3;for(var d=[],l=0;l<u.length;l+=n.step){var v=0;for(r=l+n.step-1;r>=l;r--)v=(v<<1)+u[r];d.push(v)}for(var w=this.jpoint(null,null,null),m=this.jpoint(null,null,null),y=a;y>0;y--){for(l=0;l<d.length;l++)(v=d[l])===y?m=m.mixedAdd(n.points[l]):v===-y&&(m=m.mixedAdd(n.points[l].neg()));w=w.add(m)}return w.toP()},Gh.prototype._wnafMul=function(e,r){var n=4,u=e._getNAFPoints(n);n=u.wnd;for(var a=u.points,d=wb(r,n,this._bitLength),l=this.jpoint(null,null,null),v=d.length-1;v>=0;v--){for(r=0;v>=0&&d[v]===0;v--)r++;if(v>=0&&r++,l=l.dblp(r),v<0)break;var w=d[v];_b(w!==0),l=e.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 e.type==="affine"?l.toP():l},Gh.prototype._wnafMulAdd=function(e,r,n,u,a){for(var d=this._wnafT1,l=this._wnafT2,v=this._wnafT3,w=0,m=0;m<u;m++){var y=(j=r[m])._getNAFPoints(e);d[m]=y.wnd,l[m]=y.points}for(m=u-1;m>=1;m-=2){var g=m-1,S=m;if(d[g]===1&&d[S]===1){var R=[r[g],null,null,r[S]];r[g].y.cmp(r[S].y)===0?(R[1]=r[g].add(r[S]),R[2]=r[g].toJ().mixedAdd(r[S].neg())):r[g].y.cmp(r[S].y.redNeg())===0?(R[1]=r[g].toJ().mixedAdd(r[S]),R[2]=r[g].add(r[S].neg())):(R[1]=r[g].toJ().mixedAdd(r[S]),R[2]=r[g].toJ().mixedAdd(r[S].neg()));var A=[-3,-1,-5,-7,0,7,5,1,3],k=RRe(n[g],n[S]);w=Math.max(k[0].length,w),v[g]=new Array(w),v[S]=new Array(w);for(var I=0;I<w;I++){var B=0|k[0][I],P=0|k[1][I];v[g][I]=A[3*(B+1)+(P+1)],v[S][I]=0,l[g]=R}}else v[g]=wb(n[g],d[g],this._bitLength),v[S]=wb(n[S],d[S],this._bitLength),w=Math.max(v[g].length,w),w=Math.max(v[S].length,w)}var C=this.jpoint(null,null,null),q=this._wnafT4;for(m=w;m>=0;m--){for(var K=0;m>=0;){var V=!0;for(I=0;I<u;I++)q[I]=0|v[I][m],q[I]!==0&&(V=!1);if(!V)break;K++,m--}if(m>=0&&K++,C=C.dblp(K),m<0)break;for(I=0;I<u;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<u;m++)l[m]=null;return a?C:C.toP()},Gh.BasePoint=Rs,Rs.prototype.eq=function(){throw new Error("Not implemented")},Rs.prototype.validate=function(){return this.curve.validate(this)},Gh.prototype.decodePoint=function(e,r){e=vv.toArray(e,r);var n=this.p.byteLength();if((e[0]===4||e[0]===6||e[0]===7)&&e.length-1==2*n)return e[0]===6?_b(e[e.length-1]%2==0):e[0]===7&&_b(e[e.length-1]%2==1),this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));if((e[0]===2||e[0]===3)&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),e[0]===3);throw new Error("Unknown point format")},Rs.prototype.encodeCompressed=function(e){return this.encode(e,!0)},Rs.prototype._encode=function(e){var r=this.curve.p.byteLength(),n=this.getX().toArray("be",r);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",r))},Rs.prototype.encode=function(e,r){return vv.encode(this._encode(r),e)},Rs.prototype.precompute=function(e){if(this.precomputed)return this;var r={doubles:null,naf:null,beta:null};return r.naf=this._getNAFPoints(8),r.doubles=this._getDoubles(4,e),r.beta=this._getBeta(),this.precomputed=r,this},Rs.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var r=this.precomputed.doubles;return!!r&&r.points.length>=Math.ceil((e.bitLength()+1)/r.step)},Rs.prototype._getDoubles=function(e,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],u=this,a=0;a<r;a+=e){for(var d=0;d<e;d++)u=u.dbl();n.push(u)}return{step:e,points:n}},Rs.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var r=[this],n=(1<<e)-1,u=n===1?null:this.dbl(),a=1;a<n;a++)r[a]=r[a-1].add(u);return{wnd:e,points:r}},Rs.prototype._getBeta=function(){return null},Rs.prototype.dblp=function(e){for(var r=this,n=0;n<e;n++)r=r.dbl();return r};x3=Nte,Tn=Hn,EE=jr,Yd=x3,xRe=Do.assert;EE(xs,Yd),Cte=xs,xs.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){var r,n;if(e.beta)r=new Tn(e.beta,16).toRed(this.red);else{var u=this._getEndoRoots(this.p);r=(r=u[0].cmp(u[1])<0?u[0]:u[1]).toRed(this.red)}if(e.lambda)n=new Tn(e.lambda,16);else{var a=this._getEndoRoots(this.n);this.g.mul(a[0]).x.cmp(this.g.x.redMul(r))===0?n=a[0]:(n=a[1],xRe(this.g.mul(n).x.cmp(this.g.x.redMul(r))===0))}return{beta:r,lambda:n,basis:e.basis?e.basis.map(function(d){return{a:new Tn(d.a,16),b:new Tn(d.b,16)}}):this._getEndoBasis(n)}}},xs.prototype._getEndoRoots=function(e){var r=e===this.p?this.red:Tn.mont(e),n=new Tn(2).toRed(r).redInvm(),u=n.redNeg(),a=new Tn(3).toRed(r).redNeg().redSqrt().redMul(n);return[u.redAdd(a).fromRed(),u.redSub(a).fromRed()]},xs.prototype._getEndoBasis=function(e){for(var r,n,u,a,d,l,v,w,m,y=this.n.ushrn(Math.floor(this.n.bitLength()/2)),g=e,S=this.n.clone(),R=new Tn(1),A=new Tn(0),k=new Tn(0),I=new Tn(1),B=0;g.cmpn(0)!==0;){var P=S.div(g);w=S.sub(P.mul(g)),m=k.sub(P.mul(R));var C=I.sub(P.mul(A));if(!u&&w.cmp(y)<0)r=v.neg(),n=R,u=w.neg(),a=m;else if(u&&++B==2)break;v=w,S=g,g=w,k=R,R=m,I=A,A=C}d=w.neg(),l=m;var q=u.sqr().add(a.sqr());return d.sqr().add(l.sqr()).cmp(q)>=0&&(d=r,l=n),u.negative&&(u=u.neg(),a=a.neg()),d.negative&&(d=d.neg(),l=l.neg()),[{a:u,b:a},{a:d,b:l}]},xs.prototype._endoSplit=function(e){var r=this.endo.basis,n=r[0],u=r[1],a=u.b.mul(e).divRound(this.n),d=n.b.neg().mul(e).divRound(this.n),l=a.mul(n.a),v=d.mul(u.a),w=a.mul(n.b),m=d.mul(u.b);return{k1:e.sub(l).sub(v),k2:w.add(m).neg()}},xs.prototype.pointFromX=function(e,r){(e=new Tn(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),u=n.redSqrt();if(u.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var a=u.fromRed().isOdd();return(r&&!a||!r&&a)&&(u=u.redNeg()),this.point(e,u)},xs.prototype.validate=function(e){if(e.inf)return!0;var r=e.x,n=e.y,u=this.a.redMul(r),a=r.redSqr().redMul(r).redIAdd(u).redIAdd(this.b);return n.redSqr().redISub(a).cmpn(0)===0},xs.prototype._endoWnafMulAdd=function(e,r,n){for(var u=this._endoWnafT1,a=this._endoWnafT2,d=0;d<e.length;d++){var l=this._endoSplit(r[d]),v=e[d],w=v._getBeta();l.k1.negative&&(l.k1.ineg(),v=v.neg(!0)),l.k2.negative&&(l.k2.ineg(),w=w.neg(!0)),u[2*d]=v,u[2*d+1]=w,a[2*d]=l.k1,a[2*d+1]=l.k2}for(var m=this._wnafMulAdd(1,u,a,2*d,n),y=0;y<2*d;y++)u[y]=null,a[y]=null;return m},EE(pa,Yd.BasePoint),xs.prototype.point=function(e,r,n){return new pa(this,e,r,n)},xs.prototype.pointFromJSON=function(e,r){return pa.fromJSON(this,e,r)},pa.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var r=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var n=this.curve,u=function(a){return n.point(a.x.redMul(n.endo.beta),a.y)};e.beta=r,r.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(u)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(u)}}}return r}},pa.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]},pa.fromJSON=function(e,r,n){typeof r=="string"&&(r=JSON.parse(r));var u=e.point(r[0],r[1],n);if(!r[2])return u;function a(l){return e.point(l[0],l[1],n)}var d=r[2];return u.precomputed={beta:null,doubles:d.doubles&&{step:d.doubles.step,points:[u].concat(d.doubles.points.map(a))},naf:d.naf&&{wnd:d.naf.wnd,points:[u].concat(d.naf.points.map(a))}},u},pa.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)+">"},pa.prototype.isInfinity=function(){return this.inf},pa.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var r=this.y.redSub(e.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(e.x).redInvm()));var n=r.redSqr().redISub(this.x).redISub(e.x),u=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,u)},pa.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a,n=this.x.redSqr(),u=e.redInvm(),a=n.redAdd(n).redIAdd(n).redIAdd(r).redMul(u),d=a.redSqr().redISub(this.x.redAdd(this.x)),l=a.redMul(this.x.redSub(d)).redISub(this.y);return this.curve.point(d,l)},pa.prototype.getX=function(){return this.x.fromRed()},pa.prototype.getY=function(){return this.y.fromRed()},pa.prototype.mul=function(e){return e=new Tn(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},pa.prototype.mulAdd=function(e,r,n){var u=[this,r],a=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(u,a):this.curve._wnafMulAdd(1,u,a,2)},pa.prototype.jmulAdd=function(e,r,n){var u=[this,r],a=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(u,a,!0):this.curve._wnafMulAdd(1,u,a,2,!0)},pa.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)},pa.prototype.neg=function(e){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,u=function(a){return a.neg()};r.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(u)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(u)}}}return r},pa.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},EE(Ma,Yd.BasePoint),xs.prototype.jpoint=function(e,r,n){return new Ma(this,e,r,n)},Ma.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),r=e.redSqr(),n=this.x.redMul(r),u=this.y.redMul(r).redMul(e);return this.curve.point(n,u)},Ma.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},Ma.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var r=e.z.redSqr(),n=this.z.redSqr(),u=this.x.redMul(r),a=e.x.redMul(n),d=this.y.redMul(r.redMul(e.z)),l=e.y.redMul(n.redMul(this.z)),v=u.redSub(a),w=d.redSub(l);if(v.cmpn(0)===0)return w.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var m=v.redSqr(),y=m.redMul(v),g=u.redMul(m),S=w.redSqr().redIAdd(y).redISub(g).redISub(g),R=w.redMul(g.redISub(S)).redISub(d.redMul(y)),A=this.z.redMul(e.z).redMul(v);return this.curve.jpoint(S,R,A)},Ma.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var r=this.z.redSqr(),n=this.x,u=e.x.redMul(r),a=this.y,d=e.y.redMul(r).redMul(this.z),l=n.redSub(u),v=a.redSub(d);if(l.cmpn(0)===0)return v.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var w=l.redSqr(),m=w.redMul(l),y=n.redMul(w),g=v.redSqr().redIAdd(m).redISub(y).redISub(y),S=v.redMul(y.redISub(g)).redISub(a.redMul(m)),R=this.z.redMul(l);return this.curve.jpoint(g,S,R)},Ma.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var r=this,n=0;n<e;n++)r=r.dbl();return r}var u=this.curve.a,a=this.curve.tinv,d=this.x,l=this.y,v=this.z,w=v.redSqr().redSqr(),m=l.redAdd(l);for(n=0;n<e;n++){var y=d.redSqr(),g=m.redSqr(),S=g.redSqr(),R=y.redAdd(y).redIAdd(y).redIAdd(u.redMul(w)),A=d.redMul(g),k=R.redSqr().redISub(A.redAdd(A)),I=A.redISub(k),B=R.redMul(I);B=B.redIAdd(B).redISub(S);var P=m.redMul(v);n+1<e&&(w=w.redMul(S)),d=k,v=P,m=B}return this.curve.jpoint(d,m.redMul(a),v)},Ma.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},Ma.prototype._zeroDbl=function(){var e,r,n;if(this.zOne){var u=this.x.redSqr(),a=this.y.redSqr(),d=a.redSqr(),l=this.x.redAdd(a).redSqr().redISub(u).redISub(d);l=l.redIAdd(l);var v=u.redAdd(u).redIAdd(u),w=v.redSqr().redISub(l).redISub(l),m=d.redIAdd(d);m=(m=m.redIAdd(m)).redIAdd(m),e=w,r=v.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(),R=this.x.redAdd(g).redSqr().redISub(y).redISub(S);R=R.redIAdd(R);var A=y.redAdd(y).redIAdd(y),k=A.redSqr(),I=S.redIAdd(S);I=(I=I.redIAdd(I)).redIAdd(I),e=k.redISub(R).redISub(R),r=A.redMul(R.redISub(e)).redISub(I),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(e,r,n)},Ma.prototype._threeDbl=function(){var e,r,n;if(this.zOne){var u=this.x.redSqr(),a=this.y.redSqr(),d=a.redSqr(),l=this.x.redAdd(a).redSqr().redISub(u).redISub(d);l=l.redIAdd(l);var v=u.redAdd(u).redIAdd(u).redIAdd(this.curve.a),w=v.redSqr().redISub(l).redISub(l);e=w;var m=d.redIAdd(d);m=(m=m.redIAdd(m)).redIAdd(m),r=v.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),R=this.x.redSub(y).redMul(this.x.redAdd(y));R=R.redAdd(R).redIAdd(R);var A=S.redIAdd(S),k=(A=A.redIAdd(A)).redAdd(A);e=R.redSqr().redISub(k),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),r=R.redMul(A.redISub(e)).redISub(I)}return this.curve.jpoint(e,r,n)},Ma.prototype._dbl=function(){var e=this.curve.a,r=this.x,n=this.y,u=this.z,a=u.redSqr().redSqr(),d=r.redSqr(),l=n.redSqr(),v=d.redAdd(d).redIAdd(d).redIAdd(e.redMul(a)),w=r.redAdd(r),m=(w=w.redIAdd(w)).redMul(l),y=v.redSqr().redISub(m.redAdd(m)),g=m.redISub(y),S=l.redSqr();S=(S=(S=S.redIAdd(S)).redIAdd(S)).redIAdd(S);var R=v.redMul(g).redISub(S),A=n.redAdd(n).redMul(u);return this.curve.jpoint(y,R,A)},Ma.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),r=this.y.redSqr(),n=this.z.redSqr(),u=r.redSqr(),a=e.redAdd(e).redIAdd(e),d=a.redSqr(),l=this.x.redAdd(r).redSqr().redISub(e).redISub(u),v=(l=(l=(l=l.redIAdd(l)).redAdd(l).redIAdd(l)).redISub(d)).redSqr(),w=u.redIAdd(u);w=(w=(w=w.redIAdd(w)).redIAdd(w)).redIAdd(w);var m=a.redIAdd(l).redSqr().redISub(d).redISub(v).redISub(w),y=r.redMul(m);y=(y=y.redIAdd(y)).redIAdd(y);var g=this.x.redMul(v).redISub(y);g=(g=g.redIAdd(g)).redIAdd(g);var S=this.y.redMul(m.redMul(w.redISub(m)).redISub(l.redMul(v)));S=(S=(S=S.redIAdd(S)).redIAdd(S)).redIAdd(S);var R=this.z.redAdd(l).redSqr().redISub(n).redISub(v);return this.curve.jpoint(g,S,R)},Ma.prototype.mul=function(e,r){return e=new Tn(e,r),this.curve._wnafMul(this,e)},Ma.prototype.eq=function(e){if(e.type==="affine")return this.eq(e.toJ());if(this===e)return!0;var r=this.z.redSqr(),n=e.z.redSqr();if(this.x.redMul(n).redISub(e.x.redMul(r)).cmpn(0)!==0)return!1;var u=r.redMul(this.z),a=n.redMul(e.z);return this.y.redMul(a).redISub(e.y.redMul(u)).cmpn(0)===0},Ma.prototype.eqXToP=function(e){var r=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(r);if(this.x.cmp(n)===0)return!0;for(var u=e.clone(),a=this.curve.redN.redMul(r);;){if(u.iadd(this.curve.n),u.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(a),this.x.cmp(n)===0)return!0}},Ma.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)+">"},Ma.prototype.isInfinity=function(){return this.z.cmpn(0)===0};TRe=Cte,Wd=Hn,kV=jr,c3=x3,kRe=Do;kV(Dd,c3),Lte=Dd,Dd.prototype.validate=function(e){var r=e.normalize().x,n=r.redSqr(),u=n.redMul(r).redAdd(n.redMul(this.a)).redAdd(r);return u.redSqrt().redSqr().cmp(u)===0},kV(va,c3.BasePoint),Dd.prototype.decodePoint=function(e,r){return this.point(kRe.toArray(e,r),1)},Dd.prototype.point=function(e,r){return new va(this,e,r)},Dd.prototype.pointFromJSON=function(e){return va.fromJSON(this,e)},va.prototype.precompute=function(){},va.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},va.fromJSON=function(e,r){return new va(e,r[0],r[1]||e.one)},va.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)+">"},va.prototype.isInfinity=function(){return this.z.cmpn(0)===0},va.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),r=this.x.redSub(this.z).redSqr(),n=e.redSub(r),u=e.redMul(r),a=n.redMul(r.redAdd(this.curve.a24.redMul(n)));return this.curve.point(u,a)},va.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},va.prototype.diffAdd=function(e,r){var n=this.x.redAdd(this.z),u=this.x.redSub(this.z),a=e.x.redAdd(e.z),d=e.x.redSub(e.z).redMul(n),l=a.redMul(u),v=r.z.redMul(d.redAdd(l).redSqr()),w=r.x.redMul(d.redISub(l).redSqr());return this.curve.point(v,w)},va.prototype.mul=function(e){for(var r=e.clone(),n=this,u=this.curve.point(null,null),a=[];r.cmpn(0)!==0;r.iushrn(1))a.push(r.andln(1));for(var d=a.length-1;d>=0;d--)a[d]===0?(n=n.diffAdd(u,this),u=u.dbl()):(u=n.diffAdd(u,this),n=n.dbl());return u},va.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},va.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},va.prototype.eq=function(e){return this.getX().cmp(e.getX())===0},va.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},va.prototype.getX=function(){return this.normalize(),this.x.fromRed()};IRe=Lte,ah=Hn,IV=jr,d3=x3,BRe=Do.assert;IV(su,d3),Dte=su,su.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},su.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},su.prototype.jpoint=function(e,r,n,u){return this.point(e,r,n,u)},su.prototype.pointFromX=function(e,r){(e=new ah(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),u=this.c2.redSub(this.a.redMul(n)),a=this.one.redSub(this.c2.redMul(this.d).redMul(n)),d=u.redMul(a.redInvm()),l=d.redSqrt();if(l.redSqr().redSub(d).cmp(this.zero)!==0)throw new Error("invalid point");var v=l.fromRed().isOdd();return(r&&!v||!r&&v)&&(l=l.redNeg()),this.point(e,l)},su.prototype.pointFromY=function(e,r){(e=new ah(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),u=n.redSub(this.c2),a=n.redMul(this.d).redMul(this.c2).redSub(this.a),d=u.redMul(a.redInvm());if(d.cmp(this.zero)===0){if(r)throw new Error("invalid point");return this.point(this.zero,e)}var l=d.redSqrt();if(l.redSqr().redSub(d).cmp(this.zero)!==0)throw new Error("invalid point");return l.fromRed().isOdd()!==r&&(l=l.redNeg()),this.point(l,e)},su.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var r=e.x.redSqr(),n=e.y.redSqr(),u=r.redMul(this.a).redAdd(n),a=this.c2.redMul(this.one.redAdd(this.d.redMul(r).redMul(n)));return u.cmp(a)===0},IV(hn,d3.BasePoint),su.prototype.pointFromJSON=function(e){return hn.fromJSON(this,e)},su.prototype.point=function(e,r,n,u){return new hn(this,e,r,n,u)},hn.fromJSON=function(e,r){return new hn(e,r[0],r[1],r[2])},hn.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)+">"},hn.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},hn.prototype._extDbl=function(){var e=this.x.redSqr(),r=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var u=this.curve._mulA(e),a=this.x.redAdd(this.y).redSqr().redISub(e).redISub(r),d=u.redAdd(r),l=d.redSub(n),v=u.redSub(r),w=a.redMul(l),m=d.redMul(v),y=a.redMul(v),g=l.redMul(d);return this.curve.point(w,m,g,y)},hn.prototype._projDbl=function(){var e,r,n,u=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),d=this.y.redSqr();if(this.curve.twisted){var l=(m=this.curve._mulA(a)).redAdd(d);if(this.zOne)e=u.redSub(a).redSub(d).redMul(l.redSub(this.curve.two)),r=l.redMul(m.redSub(d)),n=l.redSqr().redSub(l).redSub(l);else{var v=this.z.redSqr(),w=l.redSub(v).redISub(v);e=u.redSub(a).redISub(d).redMul(w),r=l.redMul(m.redSub(d)),n=l.redMul(w)}}else{var m=a.redAdd(d);v=this.curve._mulC(this.z).redSqr(),w=m.redSub(v).redSub(v),e=this.curve._mulC(u.redISub(m)).redMul(w),r=this.curve._mulC(m).redMul(a.redISub(d)),n=m.redMul(w)}return this.curve.point(e,r,n)},hn.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},hn.prototype._extAdd=function(e){var r=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),u=this.t.redMul(this.curve.dd).redMul(e.t),a=this.z.redMul(e.z.redAdd(e.z)),d=n.redSub(r),l=a.redSub(u),v=a.redAdd(u),w=n.redAdd(r),m=d.redMul(l),y=v.redMul(w),g=d.redMul(w),S=l.redMul(v);return this.curve.point(m,y,S,g)},hn.prototype._projAdd=function(e){var r,n,u=this.z.redMul(e.z),a=u.redSqr(),d=this.x.redMul(e.x),l=this.y.redMul(e.y),v=this.curve.d.redMul(d).redMul(l),w=a.redSub(v),m=a.redAdd(v),y=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(d).redISub(l),g=u.redMul(w).redMul(y);return this.curve.twisted?(r=u.redMul(m).redMul(l.redSub(this.curve._mulA(d))),n=w.redMul(m)):(r=u.redMul(m).redMul(l.redSub(d)),n=this.curve._mulC(w).redMul(m)),this.curve.point(g,r,n)},hn.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},hn.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},hn.prototype.mulAdd=function(e,r,n){return this.curve._wnafMulAdd(1,[this,r],[e,n],2,!1)},hn.prototype.jmulAdd=function(e,r,n){return this.curve._wnafMulAdd(1,[this,r],[e,n],2,!0)},hn.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},hn.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},hn.prototype.getX=function(){return this.normalize(),this.x.fromRed()},hn.prototype.getY=function(){return this.normalize(),this.y.fromRed()},hn.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0},hn.prototype.eqXToP=function(e){var r=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(r)===0)return!0;for(var n=e.clone(),u=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(u),this.x.cmp(r)===0)return!0}},hn.prototype.toP=hn.prototype.normalize,hn.prototype.mixedAdd=hn.prototype.add;ORe=Dte,Kx={},Mb=Kx;Mb.base=x3,Mb.short=TRe,Mb.mont=IRe,Mb.edwards=ORe;PRe={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"]]}},T3={},vx=T3,nl=R3,AE=Kx,BV=Do.assert;vx.PresetCurve=$te,al("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:nl.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),al("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:nl.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),al("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:nl.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),al("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:nl.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"]}),al("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:nl.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"]}),al("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:nl.sha256,gRed:!1,g:["9"]}),al("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:nl.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{px=PRe}catch(e){px=void 0}al("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:nl.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",px]});NRe=Hn,OV=Do.assert;Ute=La,La.fromPublic=function(e,r,n){return r instanceof La?r:new La(e,{pub:r,pubEnc:n})},La.fromPrivate=function(e,r,n){return r instanceof La?r:new La(e,{priv:r,privEnc:n})},La.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.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"}},La.prototype.getPublic=function(e,r){return typeof e=="string"&&(r=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),r?this.pub.encode(r,e):this.pub},La.prototype.getPrivate=function(e){return e==="hex"?this.priv.toString(16,2):this.priv},La.prototype._importPrivate=function(e,r){this.priv=new NRe(e,r||16),this.priv=this.priv.umod(this.ec.curve.n)},La.prototype._importPublic=function(e,r){if(e.x||e.y)return this.ec.curve.type==="mont"?OV(e.x,"Need x coordinate"):this.ec.curve.type!=="short"&&this.ec.curve.type!=="edwards"||OV(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y),void 0;this.pub=this.ec.curve.decodePoint(e,r)},La.prototype.derive=function(e){return e.mul(this.priv).getX()},La.prototype.sign=function(e,r,n){return this.ec.sign(e,this,r,n)},La.prototype.verify=function(e,r){return this.ec.verify(e,r,this)},La.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};CRe=Ute,I0=Hn,PV=ARe,RE=T3,LRe=Fx,jte=Do.assert,xE=CRe,Sb=AAe;qte=Ps,Ps.prototype.keyPair=function(e){return new xE(this,e)},Ps.prototype.keyFromPrivate=function(e,r){return xE.fromPrivate(this,e,r)},Ps.prototype.keyFromPublic=function(e,r){return xE.fromPublic(this,e,r)},Ps.prototype.genKeyPair=function(e){e||(e={});for(var r=new PV({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||LRe(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),u=this.n.sub(new I0(2));;){var a=new I0(r.generate(n));if(!(a.cmp(u)>0))return a.iaddn(1),this.keyFromPrivate(a)}},Ps.prototype._truncateToN=function(e,r){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!r&&e.cmp(this.n)>=0?e.sub(this.n):e},Ps.prototype.sign=function(e,r,n,u){typeof n=="object"&&(u=n,n=null),u||(u={}),r=this.keyFromPrivate(r,n),e=this._truncateToN(new I0(e,16));for(var a=this.n.byteLength(),d=r.getPrivate().toArray("be",a),l=e.toArray("be",a),v=new PV({hash:this.hash,entropy:d,nonce:l,pers:u.pers,persEnc:u.persEnc||"utf8"}),w=this.n.sub(new I0(1)),m=0;;m++){var y=u.k?u.k(m):new I0(v.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(),R=S.umod(this.n);if(R.cmpn(0)!==0){var A=y.invm(this.n).mul(R.mul(r.getPrivate()).iadd(e));if((A=A.umod(this.n)).cmpn(0)!==0){var k=(g.getY().isOdd()?1:0)|(S.cmp(R)!==0?2:0);return u.canonical&&A.cmp(this.nh)>0&&(A=this.n.sub(A),k^=1),new Sb({r:R,s:A,recoveryParam:k})}}}}}},Ps.prototype.verify=function(e,r,n,u){e=this._truncateToN(new I0(e,16)),n=this.keyFromPublic(n,u);var a=(r=new Sb(r,"hex")).r,d=r.s;if(a.cmpn(1)<0||a.cmp(this.n)>=0||d.cmpn(1)<0||d.cmp(this.n)>=0)return!1;var l,v=d.invm(this.n),w=v.mul(e).umod(this.n),m=v.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},Ps.prototype.recoverPubKey=function(e,r,n,u){jte((3&n)===n,"The recovery param is more than two bits"),r=new Sb(r,u);var a=this.n,d=new I0(e),l=r.r,v=r.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=r.r.invm(a),g=a.sub(d).mul(y).umod(a),S=v.mul(y).umod(a);return this.g.mulAdd(g,l,S)},Ps.prototype.getKeyRecoveryParam=function(e,r,n,u){if((r=new Sb(r,u)).recoveryParam!==null)return r.recoveryParam;for(var a=0;a<4;a++){var d;try{d=this.recoverPubKey(e,r,a)}catch{continue}if(d.eq(n))return a}throw new Error("Unable to find valid recovery factor")};DRe=qte,mv=Do,NV=mv.assert,CV=mv.parseBytes,$d=mv.cachedProperty;ma.fromPublic=function(e,r){return r instanceof ma?r:new ma(e,{pub:r})},ma.fromSecret=function(e,r){return r instanceof ma?r:new ma(e,{secret:r})},ma.prototype.secret=function(){return this._secret},$d(ma,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),$d(ma,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),$d(ma,"privBytes",function(){var e=this.eddsa,r=this.hash(),n=e.encodingLength-1,u=r.slice(0,e.encodingLength);return u[0]&=248,u[n]&=127,u[n]|=64,u}),$d(ma,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),$d(ma,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),$d(ma,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),ma.prototype.sign=function(e){return NV(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},ma.prototype.verify=function(e,r){return this.eddsa.verify(e,r,this)},ma.prototype.getSecret=function(e){return NV(this._secret,"KeyPair is public only"),mv.encode(this.secret(),e)},ma.prototype.getPublic=function(e){return mv.encode(this.pubBytes(),e)};$Re=ma,URe=Hn,k3=Do,qRe=k3.assert,Eb=k3.cachedProperty,jRe=k3.parseBytes;Eb(D0,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),Eb(D0,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),Eb(D0,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),Eb(D0,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),D0.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},D0.prototype.toHex=function(){return k3.encode(this.toBytes(),"hex").toUpperCase()};FRe=D0,zRe=R3,HRe=T3,Gd=Do,KRe=Gd.assert,LV=Gd.parseBytes,DV=$Re,$V=FRe;Fte=po,po.prototype.sign=function(e,r){e=LV(e);var n=this.keyFromSecret(r),u=this.hashInt(n.messagePrefix(),e),a=this.g.mul(u),d=this.encodePoint(a),l=this.hashInt(d,n.pubBytes(),e).mul(n.priv()),v=u.add(l).umod(this.curve.n);return this.makeSignature({R:a,S:v,Rencoded:d})},po.prototype.verify=function(e,r,n){e=LV(e),r=this.makeSignature(r);var u=this.keyFromPublic(n),a=this.hashInt(r.Rencoded(),u.pubBytes(),e),d=this.g.mul(r.S());return r.R().add(u.pub().mul(a)).eq(d)},po.prototype.hashInt=function(){for(var e=this.hash(),r=0;r<arguments.length;r++)e.update(arguments[r]);return Gd.intFromLE(e.digest()).umod(this.curve.n)},po.prototype.keyFromPublic=function(e){return DV.fromPublic(this,e)},po.prototype.keyFromSecret=function(e){return DV.fromSecret(this,e)},po.prototype.makeSignature=function(e){return e instanceof $V?e:new $V(this,e)},po.prototype.encodePoint=function(e){var r=e.getY().toArray("le",this.encodingLength);return r[this.encodingLength-1]|=e.getX().isOdd()?128:0,r},po.prototype.decodePoint=function(e){var r=(e=Gd.parseBytes(e)).length-1,n=e.slice(0,r).concat(-129&e[r]),u=(128&e[r])!=0,a=Gd.intFromLE(n);return this.curve.pointFromY(a,u)},po.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},po.prototype.decodeInt=function(e){return Gd.intFromLE(e)},po.prototype.isPoint=function(e){return e instanceof this.pointClass};ZRe=Fte,I3={},B0=I3;B0.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],B0.utils=Do,B0.rand=Fx,B0.curve=Kx,B0.curves=T3,B0.ec=DRe,B0.eddsa=ZRe;TE={},UV=!1,No=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,ea=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,zte={},WRe=jr;zte.Reporter=Ts,Ts.prototype.isError=function(e){return e instanceof Ud},Ts.prototype.save=function(){var e=(this||ea)._reporterState;return{obj:e.obj,pathLen:e.path.length}},Ts.prototype.restore=function(e){var r=(this||ea)._reporterState;r.obj=e.obj,r.path=r.path.slice(0,e.pathLen)},Ts.prototype.enterKey=function(e){return(this||ea)._reporterState.path.push(e)},Ts.prototype.exitKey=function(e){var r=(this||ea)._reporterState;r.path=r.path.slice(0,e-1)},Ts.prototype.leaveKey=function(e,r,n){var u=(this||ea)._reporterState;this.exitKey(e),u.obj!==null&&(u.obj[r]=n)},Ts.prototype.path=function(){return(this||ea)._reporterState.path.join("/")},Ts.prototype.enterObject=function(){var e=(this||ea)._reporterState,r=e.obj;return e.obj={},r},Ts.prototype.leaveObject=function(e){var r=(this||ea)._reporterState,n=r.obj;return r.obj=e,n},Ts.prototype.error=function(e){var r,n=(this||ea)._reporterState,u=e instanceof Ud;if(r=u?e:new Ud(n.path.map(function(a){return"["+JSON.stringify(a)+"]"}).join(""),e.message||e,e.stack),!n.options.partial)throw r;return u||n.errors.push(r),r},Ts.prototype.wrapResult=function(e){var r=(this||ea)._reporterState;return r.options.partial?{result:this.isError(e)?null:e,errors:r.errors}:e},WRe(Ud,Error),Ud.prototype.rethrow=function(e){if((this||ea).message=e+" at: "+((this||ea).path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this||ea,Ud),!(this||ea).stack)try{throw new Error((this||ea).message)}catch(r){(this||ea).stack=r.stack}return this||ea};Ab={},qV=!1,Lr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;kE={},FV=!1,kr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,IE={},zV=!1;Vh={},HV=!1,BE={},KV=!1;OE={},ZV=!1,Jh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;PE={},GV=!1,NE=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,CE={},VV=!1;LE={},JV=!1,Yn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;DE={},XV=!1,$E=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,UE={},QV=!1;qE={},eJ=!1;Kte=B3(),Bf=Kte,tJ=Bf.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),JRe=Bf.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),Zx=Bf.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),YRe=Bf.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(Zx),this.key("subjectPublicKey").bitstr())}),XRe=Bf.define("RelativeDistinguishedName",function(){this.setof(JRe)}),QRe=Bf.define("RDNSequence",function(){this.seqof(XRe)}),rJ=Bf.define("Name",function(){this.choice({rdnSequence:this.use(QRe)})}),exe=Bf.define("Validity",function(){this.seq().obj(this.key("notBefore").use(tJ),this.key("notAfter").use(tJ))}),txe=Bf.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),rxe=Bf.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(Zx),this.key("issuer").use(rJ),this.key("validity").use(exe),this.key("subject").use(rJ),this.key("subjectPublicKeyInfo").use(YRe),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(txe).optional())}),ixe=Bf.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(rxe),this.key("signatureAlgorithm").use(Zx),this.key("signatureValue").bitstr())}),kf={},Of=Kte;kf.certificate=ixe;nxe=Of.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())});kf.RSAPrivateKey=nxe;axe=Of.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});kf.RSAPublicKey=axe;oxe=Of.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(Zte),this.key("subjectPublicKey").bitstr())});kf.PublicKey=oxe;Zte=Of.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())}),sxe=Of.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(Zte),this.key("subjectPrivateKey").octstr())});kf.PrivateKey=sxe;fxe=Of.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())});kf.EncryptedPrivateKey=fxe;uxe=Of.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())});kf.DSAPrivateKey=uxe,kf.DSAparam=Of.define("DSAparam",function(){this.int()});hxe=Of.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(lxe),this.key("publicKey").optional().explicit(1).bitstr())});kf.ECPrivateKey=hxe;lxe=Of.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});kf.signature=Of.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())});cxe=/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,dxe=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,pxe=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,vxe=A3,mxe=Lo,Rb=mi.Buffer,lo=kf,gxe={"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"},yxe=function(e,r){var n,u=e.toString(),a=u.match(cxe);if(a){var d="aes"+a[1],l=Rb.from(a[2],"hex"),v=Rb.from(a[3].replace(/[\r\n]/g,""),"base64"),w=vxe(r,l.slice(0,8),parseInt(a[1],10)).key,m=[],y=mxe.createDecipheriv(d,w,l);m.push(y.update(v)),m.push(y.final()),n=Rb.concat(m)}else{var g=u.match(pxe);n=new Rb(g[2].replace(/[\r\n]/g,""),"base64")}return{tag:u.match(dxe)[1],data:n}},bxe=Lo,wxe=f3,jE=mi.Buffer;Wte=iJ,iJ.signature=lo.signature;O3=Wte,Gte={"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"},mx={},$a=Pr.Buffer,G0=Aee,_xe=zx,Mxe=I3.ec,p3=Hn,Sxe=O3,Exe=Gte;(mx=function(e,r,n,u,a){var d=Sxe(r);if(d.curve){if(u!=="ecdsa"&&u!=="ecdsa/rsa")throw new Error("wrong private key type");return function(m,y){var g=Exe[y.curve.join(".")];if(!g)throw new Error("unknown curve "+y.curve.join("."));var S=new Mxe(g).keyFromPrivate(y.privateKey).sign(m);return new $a(S.toDER())}(e,d)}if(d.type==="dsa"){if(u!=="dsa")throw new Error("wrong private key type");return function(m,y,g){for(var S,R=y.params.priv_key,A=y.params.p,k=y.params.q,I=y.params.g,B=new p3(0),P=Wx(m,k).mod(k),C=!1,q=nJ(R,k,m,g);C===!1;)S=aJ(k,q,g),B=Axe(I,S,A,k),(C=S.invm(k).imul(P.add(R.mul(B))).mod(k)).cmpn(0)===0&&(C=!1,B=new p3(0));return function(K,V){K=K.toArray(),V=V.toArray(),128&K[0]&&(K=[0].concat(K)),128&V[0]&&(V=[0].concat(V));var j=[48,K.length+V.length+4,2,K.length];return j=j.concat(K,[2,V.length],V),new $a(j)}(B,C)}(e,d,n)}if(u!=="rsa"&&u!=="ecdsa/rsa")throw new Error("wrong private key type");e=$a.concat([a,e]);for(var l=d.modulus.byteLength(),v=[0,1];e.length+v.length+1<l;)v.push(255);v.push(0);for(var w=-1;++w<e.length;)v.push(e[w]);return _xe(v,d)}).getKey=nJ,mx.makeKey=aJ;Rxe=mx,FE=Pr.Buffer,F2=Hn,xxe=I3.ec,oJ=O3,Txe=Gte;kxe=function(e,r,n,u,a){var d=oJ(n);if(d.type==="ec"){if(u!=="ecdsa"&&u!=="ecdsa/rsa")throw new Error("wrong public key type");return function(S,R,A){var k=Txe[A.data.algorithm.curve.join(".")];if(!k)throw new Error("unknown curve "+A.data.algorithm.curve.join("."));var I=new xxe(k),B=A.data.subjectPrivateKey.data;return I.verify(R,S,B)}(e,r,d)}if(d.type==="dsa"){if(u!=="dsa")throw new Error("wrong public key type");return function(S,R,A){var k=A.data.p,I=A.data.q,B=A.data.g,P=A.data.pub_key,C=oJ.signature.decode(S,"der"),q=C.s,K=C.r;sJ(q,I),sJ(K,I);var V=F2.mont(k),j=q.invm(I);return B.toRed(V).redPow(new F2(R).mul(j).mod(I)).fromRed().mul(P.toRed(V).redPow(K.mul(j).mod(I)).fromRed()).mod(k).mod(I).cmp(K)===0}(e,r,d)}if(u!=="rsa"&&u!=="ecdsa/rsa")throw new Error("wrong public key type");r=FE.concat([a,r]);for(var l=d.modulus.byteLength(),v=[1],w=0;r.length+v.length+2<l;)v.push(255),w++;v.push(0);for(var m=-1;++m<r.length;)v.push(r[m]);v=new FE(v);var y=F2.mont(d.modulus);e=(e=new F2(e).toRed(y)).redPow(new F2(d.publicExponent)),e=new FE(e.fromRed().toArray());var g=w<8?1:0;for(l=Math.min(e.length,v.length),e.length!==v.length&&(g=1),m=-1;++m<l;)g|=e[m]^v[m];return g===0},In=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,xb=Pr.Buffer,Vte=Sv,v3=Cs,fJ=jr,Ixe=Rxe,Bxe=kxe,j0=Ree;Object.keys(j0).forEach(function(e){j0[e].id=new xb(j0[e].id,"hex"),j0[e.toLowerCase()]=j0[e]}),fJ(iv,v3.Writable),iv.prototype._write=function(e,r,n){(this||In)._hash.update(e),n()},iv.prototype.update=function(e,r){return typeof e=="string"&&(e=new xb(e,r)),(this||In)._hash.update(e),this||In},iv.prototype.sign=function(e,r){this.end();var n=(this||In)._hash.digest(),u=Ixe(n,e,(this||In)._hashType,(this||In)._signType,(this||In)._tag);return r?u.toString(r):u},fJ(nv,v3.Writable),nv.prototype._write=function(e,r,n){(this||In)._hash.update(e),n()},nv.prototype.update=function(e,r){return typeof e=="string"&&(e=new xb(e,r)),(this||In)._hash.update(e),this||In},nv.prototype.verify=function(e,r,n){typeof r=="string"&&(r=new xb(r,n)),this.end();var u=(this||In)._hash.digest();return Bxe(r,u,e,(this||In)._signType,(this||In)._tag)};Oxe={Sign:uJ,Verify:hJ,createSign:uJ,createVerify:hJ},ta=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,nh=Pr.Buffer,Pxe=I3,Nxe=Hn;Jte=function(e){return new $0(e)};Co={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}};Co.p224=Co.secp224r1,Co.p256=Co.secp256r1=Co.prime256v1,Co.p192=Co.secp192r1=Co.prime192v1,Co.p384=Co.secp384r1,Co.p521=Co.secp521r1,$0.prototype.generateKeys=function(e,r){return(this||ta).keys=(this||ta).curve.genKeyPair(),this.getPublicKey(e,r)},$0.prototype.computeSecret=function(e,r,n){return r=r||"utf8",nh.isBuffer(e)||(e=new nh(e,r)),zE((this||ta).curve.keyFromPublic(e).getPublic().mul((this||ta).keys.getPrivate()).getX(),n,(this||ta).curveType.byteLength)},$0.prototype.getPublicKey=function(e,r){var n=(this||ta).keys.getPublic(r==="compressed",!0);return r==="hybrid"&&(n[n.length-1]%2?n[0]=7:n[0]=6),zE(n,e)},$0.prototype.getPrivateKey=function(e){return zE((this||ta).keys.getPrivate(),e)},$0.prototype.setPublicKey=function(e,r){return r=r||"utf8",nh.isBuffer(e)||(e=new nh(e,r)),(this||ta).keys._importPublic(e),this||ta},$0.prototype.setPrivateKey=function(e,r){r=r||"utf8",nh.isBuffer(e)||(e=new nh(e,r));var n=new Nxe(e);return n=n.toString(16),(this||ta).keys=(this||ta).curve.genKeyPair(),(this||ta).keys._importPrivate(n),this||ta};Cxe=Jte,Lxe=Sv,gx=mi.Buffer;Yte=function(e,r){for(var n,u=gx.alloc(0),a=0;u.length<r;)n=Dxe(a++),u=gx.concat([u,Lxe("sha1").update(e).update(n).digest()]);return u.slice(0,r)},Xte=function(e,r){for(var n=e.length,u=-1;++u<n;)e[u]^=r[u];return e},lJ=Hn,$xe=mi.Buffer,Qte=function(e,r){return $xe.from(e.toRed(lJ.mont(r.modulus)).redPow(new lJ(r.publicExponent)).fromRed().toArray())},Uxe=O3,HE=a1,qxe=Sv,cJ=Yte,dJ=Xte,KE=Hn,jxe=Qte,Fxe=zx,_f=mi.Buffer,zxe=function(e,r,n){var u;u=e.padding?e.padding:n?1:4;var a,d=Uxe(e);if(u===4)a=function(l,v){var w=l.modulus.byteLength(),m=v.length,y=qxe("sha1").update(_f.alloc(0)).digest(),g=y.length,S=2*g;if(m>w-S-2)throw new Error("message too long");var R=_f.alloc(w-m-S-2),A=w-g-1,k=HE(g),I=dJ(_f.concat([y,R,_f.alloc(1,1),v],A),cJ(k,A)),B=dJ(k,cJ(I,g));return new KE(_f.concat([_f.alloc(1),B,I],w))}(d,r);else if(u===1)a=function(l,v,w){var m,y=v.length,g=l.modulus.byteLength();if(y>g-11)throw new Error("message too long");return m=w?_f.alloc(g-y-3,255):function(S){for(var R,A=_f.allocUnsafe(S),k=0,I=HE(2*S),B=0;k<S;)B===I.length&&(I=HE(2*S),B=0),(R=I[B++])&&(A[k++]=R);return A}(g-y-3),new KE(_f.concat([_f.from([0,w?1:2]),m,_f.alloc(1),v],g))}(d,r,n);else{if(u!==3)throw new Error("unknown padding");if((a=new KE(r)).cmp(d.modulus)>=0)throw new Error("data too long for modulus")}return n?Fxe(a,d):jxe(a,d)},Hxe=O3,pJ=Yte,vJ=Xte,mJ=Hn,Kxe=zx,Zxe=Sv,Wxe=Qte,z2=mi.Buffer,Gxe=function(e,r,n){var u;u=e.padding?e.padding:n?1:4;var a,d=Hxe(e),l=d.modulus.byteLength();if(r.length>l||new mJ(r).cmp(d.modulus)>=0)throw new Error("decryption error");a=n?Wxe(new mJ(r),d):Kxe(r,d);var v=z2.alloc(l-a.length);if(a=z2.concat([v,a],l),u===4)return function(w,m){var y=w.modulus.byteLength(),g=Zxe("sha1").update(z2.alloc(0)).digest(),S=g.length;if(m[0]!==0)throw new Error("decryption error");var R=m.slice(1,S+1),A=m.slice(S+1),k=vJ(R,pJ(A,S)),I=vJ(A,pJ(k,y-S-1));if(function(P,C){P=z2.from(P),C=z2.from(C);var q=0,K=P.length;P.length!==C.length&&(q++,K=Math.min(P.length,C.length));for(var V=-1;++V<K;)q+=P[V]^C[V];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)}(d,a);if(u===1)return function(w,m,y){for(var g=m.slice(0,2),S=2,R=0;m[S++]!==0;)if(S>=m.length){R++;break}var A=m.slice(2,S-1);if((g.toString("hex")!=="0002"&&!y||g.toString("hex")!=="0001"&&y)&&R++,A.length<8&&R++,R)throw new Error("decryption error");return m.slice(S)}(0,a,n);if(u===3)return a;throw new Error("unknown padding")},U0={};U0.publicEncrypt=zxe,U0.privateDecrypt=Gxe,U0.privateEncrypt=function(e,r){return U0.publicEncrypt(e,r,!0)},U0.publicDecrypt=function(e,r){return U0.privateDecrypt(e,r,!0)};m3=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,av={},yx=Br;ere=mi,yJ=a1,bJ=ere.Buffer,tre=ere.kMaxLength,bx=m3.crypto||m3.msCrypto,rre=Math.pow(2,32)-1;bx&&bx.getRandomValues||!yx.browser?(av.randomFill=function(e,r,n,u){if(!(bJ.isBuffer(e)||e instanceof m3.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof r=="function")u=r,r=0,n=e.length;else if(typeof n=="function")u=n,n=e.length-r;else if(typeof u!="function")throw new TypeError('"cb" argument must be a function');return wJ(r,e.length),_J(n,r,e.length),MJ(e,r,n,u)},av.randomFillSync=function(e,r,n){if(r===void 0&&(r=0),!(bJ.isBuffer(e)||e instanceof m3.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return wJ(r,e.length),n===void 0&&(n=e.length-r),_J(n,r,e.length),MJ(e,r,n)}):(av.randomFill=gJ,av.randomFillSync=gJ);ai={};ai.randomBytes=ai.rng=ai.pseudoRandomBytes=ai.prng=a1,ai.createHash=ai.Hash=Sv,ai.createHmac=ai.Hmac=Aee;Vxe=Ree,Jxe=Object.keys(Vxe),Yxe=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Jxe);ai.getHashes=function(){return Yxe};SJ=f3;ai.pbkdf2=SJ.pbkdf2,ai.pbkdf2Sync=SJ.pbkdf2Sync;fu=Sf;ai.Cipher=fu.Cipher,ai.createCipher=fu.createCipher,ai.Cipheriv=fu.Cipheriv,ai.createCipheriv=fu.createCipheriv,ai.Decipher=fu.Decipher,ai.createDecipher=fu.createDecipher,ai.Decipheriv=fu.Decipheriv,ai.createDecipheriv=fu.createDecipheriv,ai.getCiphers=fu.getCiphers,ai.listCiphers=fu.listCiphers;H2=Hd;ai.DiffieHellmanGroup=H2.DiffieHellmanGroup,ai.createDiffieHellmanGroup=H2.createDiffieHellmanGroup,ai.getDiffieHellman=H2.getDiffieHellman,ai.createDiffieHellman=H2.createDiffieHellman,ai.DiffieHellman=H2.DiffieHellman;Tb=Oxe;ai.createSign=Tb.createSign,ai.Sign=Tb.Sign,ai.createVerify=Tb.createVerify,ai.Verify=Tb.Verify,ai.createECDH=Cxe;kb=U0;ai.publicEncrypt=kb.publicEncrypt,ai.privateEncrypt=kb.privateEncrypt,ai.publicDecrypt=kb.publicDecrypt,ai.privateDecrypt=kb.privateDecrypt;EJ=av;ai.randomFill=EJ.randomFill,ai.randomFillSync=EJ.randomFillSync,ai.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
|
|
138
138
|
`))},ai.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};Ib={},AJ=!1,Bb=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;ZE={},RJ=!1,xJ=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;WE={},TJ=!1;Xxe={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"}},GE={},kJ=!1,bi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;O0={},IJ=!1;are={},BJ=!1,VE={exports:are},$e=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;JE={},OJ=!1;tTe={_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"},ore={},PJ=!1,YE={exports:ore},Ze=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;XE={},NJ=!1;QE={},CJ=!1;eA={},LJ=!1;tA={},DJ=!1;rA={},$J=!1;iA={},UJ=!1;nA={},qJ=!1;en={},jJ=!1;aA={},FJ=!1;zJ={},HJ=!1;oA={},KJ=!1;sA={},ZJ=!1;fA={},WJ=!1;uA={},GJ=!1;hA={},VJ=!1;lA={},JJ=!1;cA={},YJ=!1;dA={},XJ=!1;pA={},QJ=!1;vA={},eY=!1;mA={},tY=!1;gA={},rY=!1;yA={},iY=!1;hre={},nY=!1,bA={exports:hre},We=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;wA={},aY=!1;_A={},oY=!1;Ob={},sY=!1;MA={},fY=!1;Yh={},uY=!1;SA={},hY=!1;EA={},lY=!1;AA={},cY=!1;RA={},dY=!1;xA={},pY=!1;TA={},vY=!1;kA={},mY=!1;IA={},gY=!1;BA={},yY=!1;OA={},bY=!1;PA={},wY=!1;ks={},_Y=!1;STe={"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"},NA={},MY=!1;CA={},SY=!1;gre={"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"},K2={},EY=!1;LA={},AY=!1;DA={},RY=!1,Rn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;yre={},xY=!1,$A={exports:yre},Ge=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;UA={},TY=!1,Xn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;qA={},kY=!1;jA={},IY=!1;_re={},BY=!1,FA={exports:_re},Ve=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;zA={},OY=!1;HA={},PY=!1;KA={},NY=!1;Xh={},CY=!1;qd={},LY=!1,Pb=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;ti={},DY=!1;oi=NTe();oi.Cipher;oi.Cipheriv;oi.Decipher;oi.Decipheriv;oi.DiffieHellman;oi.DiffieHellmanGroup;oi.Hash;oi.Hmac;oi.Sign;oi.Verify;oi.constants;oi.createCipher;oi.createCipheriv;oi.createCredentials;oi.createDecipher;oi.createDecipheriv;oi.createDiffieHellman;oi.createDiffieHellmanGroup;oi.createECDH;oi.createHash;oi.createHmac;oi.createSign;oi.createVerify;oi.getCiphers;oi.getDiffieHellman;oi.getHashes;oi.listCiphers;oi.pbkdf2;oi.pbkdf2Sync;oi.privateDecrypt;oi.privateEncrypt;oi.prng;oi.pseudoRandomBytes;oi.publicDecrypt;oi.publicEncrypt;oi.randomBytes;oi.randomFill;oi.randomFillSync;oi.rng;Nb={},$Y=!1,Cb=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;ZA={},UY=!1,qY=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;WA={},jY=!1;CTe={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"}},GA={},FY=!1,wi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;P0={},zY=!1;Z2={},HY=!1;Are={},KY=!1,VA={exports:Are},Ue=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;JA={},ZY=!1;$Te={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"}},Rre={},WY=!1,YA={exports:Rre},Je=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;XA={},GY=!1;QA={},VY=!1;eR={},JY=!1;tR={},YY=!1;rR={},XY=!1;iR={},QY=!1;nR={},eX=!1;tn={},tX=!1;aR={},rX=!1;iX={},nX=!1;oR={},aX=!1;sR={},oX=!1;fR={},sX=!1;uR={},fX=!1;hR={},uX=!1;lR={},hX=!1;cR={},lX=!1;dR={},cX=!1;pR={},dX=!1;vR={},pX=!1;mR={},vX=!1;gR={},mX=!1;yR={},gX=!1;Ire={},yX=!1,bR={exports:Ire},Ye=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;wR={},bX=!1;_R={},wX=!1;Lb={},_X=!1;MR={},MX=!1;Qh={},SX=!1;SR={},EX=!1;ER={},AX=!1;AR={},RX=!1;RR={},xX=!1;xR={},TX=!1;TR={},kX=!1;kR={},IX=!1;IR={},BX=!1;BR={},OX=!1;OR={},PX=!1;PR={},NX=!1;Is={},CX=!1;oke={"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"},NR={},LX=!1;CR={},DX=!1;Dre={"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"},W2={},$X=!1;LR={},UX=!1;DR={},qX=!1,xn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;$re={},jX=!1,$R={exports:$re},Xe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;UR={},FX=!1,Qn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;qR={},zX=!1;jR={},HX=!1;jre={},KX=!1,FR={exports:jre},Qe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;zR={},ZX=!1;HR={},WX=!1;KR={},GX=!1;el={},VX=!1;jd={},JX=!1,Db=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;ri={},YX=!1;wr=gke();wr.randomBytes;wr.rng;wr.pseudoRandomBytes;wr.prng;wr.createHash;wr.Hash;wr.createHmac;wr.Hmac;wr.getHashes;wr.pbkdf2;wr.pbkdf2Sync;wr.Cipher;wr.createCipher;wr.Cipheriv;wr.createCipheriv;wr.Decipher;wr.createDecipher;wr.Decipheriv;wr.createDecipheriv;wr.getCiphers;wr.listCiphers;wr.DiffieHellmanGroup;wr.createDiffieHellmanGroup;wr.getDiffieHellman;wr.createDiffieHellman;wr.DiffieHellman;wr.createSign;wr.Sign;wr.createVerify;wr.Verify;wr.createECDH;wr.publicEncrypt;wr.privateEncrypt;wr.publicDecrypt;wr.privateDecrypt;wr.randomFill;wr.randomFillSync;wr.createCredentials;wr.constants;wr.webcrypto=globalThis.crypto;yke=wr.Cipher,bke=wr.Cipheriv,wke=wr.Decipher,_ke=wr.Decipheriv,Mke=wr.DiffieHellman,Ske=wr.DiffieHellmanGroup,Eke=wr.Hash,Ake=wr.Hmac,Rke=wr.Sign,xke=wr.Verify,Tke=wr.constants,kke=wr.createCipher,Ike=wr.createCipheriv,Bke=wr.createCredentials,Oke=wr.createDecipher,Pke=wr.createDecipheriv,Nke=wr.createDiffieHellman,Cke=wr.createDiffieHellmanGroup,Lke=wr.createECDH,Dke=wr.createHash,$ke=wr.createHmac,Uke=wr.createSign,qke=wr.createVerify,jke=wr.getCiphers,Fke=wr.getDiffieHellman,zke=wr.getHashes,Hke=wr.listCiphers,Kke=wr.pbkdf2,Zke=wr.pbkdf2Sync,Wke=wr.privateDecrypt,Gke=wr.privateEncrypt,Vke=wr.prng,Jke=wr.pseudoRandomBytes,Yke=wr.publicDecrypt,Xke=wr.publicEncrypt,Qke=wr.randomBytes,eIe=wr.randomFill,tIe=wr.randomFillSync,rIe=wr.rng,iIe=wr.webcrypto});var Zre=Dt(uh=>{"use strict";Te();Ie();ke();var nIe=uh&&uh.__createBinding||(Object.create?function(e,r,n,u){u===void 0&&(u=n);var a=Object.getOwnPropertyDescriptor(r,n);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,u,a)}:function(e,r,n,u){u===void 0&&(u=n),e[u]=r[n]}),aIe=uh&&uh.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),oIe=uh&&uh.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&nIe(r,e,n);return aIe(r,e),r};Object.defineProperty(uh,"__esModule",{value:!0});var Kre=qK(),Us=oIe((Hre(),xi(zre))),gT=class{keyLength=4096;publicExponent=65537;hashAlgorithm="sha256";encryptionAlgorithm="aes-256-cbc";generateJWK(){if(typeof Us.generateKeyPair!="function")throw new Error("Keypair generation not supported in this version of Node, only supported in versions 10+");return new Promise((r,n)=>{Us.generateKeyPair("rsa",{modulusLength:this.keyLength,publicExponent:this.publicExponent,privateKeyEncoding:{type:"pkcs1",format:"pem"},publicKeyEncoding:{type:"pkcs1",format:"pem"}},(u,a,d)=>{u&&n(u),r(this.pemToJWK(d))})})}sign(r,n,{saltLength:u}={}){return new Promise((a,d)=>{a(Us.createSign(this.hashAlgorithm).update(n).sign({key:this.jwkToPem(r),padding:Us.constants.RSA_PKCS1_PSS_PADDING,saltLength:u}))})}verify(r,n,u){return new Promise((a,d)=>{let l={kty:"RSA",e:"AQAB",n:r},v=this.jwkToPem(l);a(Us.createVerify(this.hashAlgorithm).update(n).verify({key:v,padding:Us.constants.RSA_PKCS1_PSS_PADDING},u))})}hash(r,n="SHA-256"){if(typeof r=="string")throw new TypeError("Data must be a Uint8Array");return new Promise((u,a)=>{u(Us.createHash(this.parseHashAlgorithm(n)).update(r).digest())})}async encrypt(r,n,u){let a=Us.pbkdf2Sync(n,u=u||"salt",1e5,32,this.hashAlgorithm),d=Us.randomBytes(16),l=Us.createCipheriv(this.encryptionAlgorithm,a,d);return bt.concat([d,l.update(r),l.final()])}async decrypt(r,n,u){try{let a=Us.pbkdf2Sync(n,u=u||"salt",1e5,32,this.hashAlgorithm),d=r.slice(0,16),l=r.slice(16),v=Us.createDecipheriv(this.encryptionAlgorithm,a,d);return bt.concat([v.update(l),v.final()])}catch{throw new Error("Failed to decrypt")}}jwkToPem(r){return(0,Kre.jwkTopem)(r)}pemToJWK(r){return(0,Kre.pemTojwk)(r)}parseHashAlgorithm(r){switch(r){case"SHA-256":return"sha256";case"SHA-384":return"sha384";default:throw new Error(`Algorithm not supported: ${r}`)}}};uh.default=gT});var Wre=Dt(bT=>{"use strict";Te();Ie();ke();Object.defineProperty(bT,"__esModule",{value:!0});var yT=class{api;constructor(r){this.api=r}getInfo(){return this.api.get("info").then(r=>r.data)}getPeers(){return this.api.get("peers").then(r=>r.data)}};bT.default=yT});var xv=Dt(Rv=>{"use strict";Te();Ie();ke();Object.defineProperty(Rv,"__esModule",{value:!0});Rv.getError=void 0;var wT=class extends Error{type;response;constructor(r,n={}){n.message?super(n.message):super(),this.type=r,this.response=n.response}getType(){return this.type}};Rv.default=wT;function sIe(e){let r=e.data;if(typeof e.data=="string")try{r=JSON.parse(e.data)}catch{}if(e.data instanceof ArrayBuffer||e.data instanceof Uint8Array)try{r=JSON.parse(r.toString())}catch{}return r?r.error||r:e.statusText||"unknown"}Rv.getError=sIe});var hh=Dt(rn=>{"use strict";Te();Ie();ke();var fIe=rn&&rn.__createBinding||(Object.create?function(e,r,n,u){u===void 0&&(u=n);var a=Object.getOwnPropertyDescriptor(r,n);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,u,a)}:function(e,r,n,u){u===void 0&&(u=n),e[u]=r[n]}),uIe=rn&&rn.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),hIe=rn&&rn.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&fIe(r,e,n);return uIe(r,e),r};Object.defineProperty(rn,"__esModule",{value:!0});rn.b64UrlDecode=rn.b64UrlEncode=rn.bufferTob64Url=rn.bufferTob64=rn.b64UrlToBuffer=rn.stringToB64Url=rn.stringToBuffer=rn.bufferToString=rn.b64UrlToString=rn.concatBuffers=void 0;var Gre=hIe(P7());function lIe(e){let r=0;for(let a=0;a<e.length;a++)r+=e[a].byteLength;let n=new Uint8Array(r),u=0;n.set(new Uint8Array(e[0]),u),u+=e[0].byteLength;for(let a=1;a<e.length;a++)n.set(new Uint8Array(e[a]),u),u+=e[a].byteLength;return n}rn.concatBuffers=lIe;function cIe(e){let r=Yre(e);return Vre(r)}rn.b64UrlToString=cIe;function Vre(e){return new TextDecoder("utf-8",{fatal:!0}).decode(e)}rn.bufferToString=Vre;function Jre(e){return new TextEncoder().encode(e)}rn.stringToBuffer=Jre;function dIe(e){return Qre(Jre(e))}rn.stringToB64Url=dIe;function Yre(e){return new Uint8Array(Gre.toByteArray(tie(e)))}rn.b64UrlToBuffer=Yre;function Xre(e){return Gre.fromByteArray(new Uint8Array(e))}rn.bufferTob64=Xre;function Qre(e){return eie(Xre(e))}rn.bufferTob64Url=Qre;function eie(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}rn.b64UrlEncode=eie;function tie(e){e=e.replace(/\-/g,"+").replace(/\_/g,"/");let r;return e.length%4==0?r=0:r=4-e.length%4,e.concat("=".repeat(r))}rn.b64UrlDecode=tie});var nie=Dt(Tv=>{"use strict";Te();Ie();ke();var pIe=Tv&&Tv.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Tv,"__esModule",{value:!0});var $o=pIe(U3());async function rie(e){if(Array.isArray(e)){let u=$o.default.utils.concatBuffers([$o.default.utils.stringToBuffer("list"),$o.default.utils.stringToBuffer(e.length.toString())]);return await iie(e,await $o.default.crypto.hash(u,"SHA-384"))}let r=$o.default.utils.concatBuffers([$o.default.utils.stringToBuffer("blob"),$o.default.utils.stringToBuffer(e.byteLength.toString())]),n=$o.default.utils.concatBuffers([await $o.default.crypto.hash(r,"SHA-384"),await $o.default.crypto.hash(e,"SHA-384")]);return await $o.default.crypto.hash(n,"SHA-384")}Tv.default=rie;async function iie(e,r){if(e.length<1)return r;let n=$o.default.utils.concatBuffers([r,await rie(e[0])]),u=await $o.default.crypto.hash(n,"SHA-384");return await iie(e.slice(1),u)}});var RT=Dt(si=>{"use strict";Te();Ie();ke();var vIe=si&&si.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};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 q3=vIe(U3()),aie=hh();si.MAX_CHUNK_SIZE=256*1024;si.MIN_CHUNK_SIZE=32*1024;var Iv=32,u1=32;async function MT(e){let r=[],n=e,u=0;for(;n.byteLength>=si.MAX_CHUNK_SIZE;){let a=si.MAX_CHUNK_SIZE,d=n.byteLength-si.MAX_CHUNK_SIZE;d>0&&d<si.MIN_CHUNK_SIZE&&(a=Math.ceil(n.byteLength/2));let l=n.slice(0,a),v=await q3.default.crypto.hash(l);u+=l.byteLength,r.push({dataHash:v,minByteRange:u-l.byteLength,maxByteRange:u}),n=n.slice(a)}return r.push({dataHash:await q3.default.crypto.hash(n),minByteRange:u,maxByteRange:u+n.byteLength}),r}si.chunkData=MT;async function ST(e){return Promise.all(e.map(async({dataHash:r,minByteRange:n,maxByteRange:u})=>({type:"leaf",id:await ya(await Promise.all([ya(r),ya(Bv(u))])),dataHash:r,minByteRange:n,maxByteRange:u})))}si.generateLeaves=ST;async function mIe(e){return(await oie(e)).id}si.computeRootHash=mIe;async function oie(e){return await j3(await ST(await MT(e)))}si.generateTree=oie;async function gIe(e){let r=await MT(e),n=await ST(r),u=await j3(n),a=await sie(u),d=r.slice(-1)[0];return d.maxByteRange-d.minByteRange===0&&(r.splice(r.length-1,1),a.splice(a.length-1,1)),{data_root:u.id,chunks:r,proofs:a}}si.generateTransactionChunks=gIe;async function j3(e,r=0){if(e.length<2)return e[0];let n=[];for(let u=0;u<e.length;u+=2)n.push(await yIe(e[u],e[u+1]));return j3(n,r+1)}si.buildLayers=j3;function sie(e){let r=_T(e);return Array.isArray(r)?ET(r):[r]}si.generateProofs=sie;function _T(e,r=new Uint8Array,n=0){if(e.type=="leaf")return{offset:e.maxByteRange-1,proof:(0,aie.concatBuffers)([r,e.dataHash,Bv(e.maxByteRange)])};if(e.type=="branch"){let u=(0,aie.concatBuffers)([r,e.leftChild.id,e.rightChild.id,Bv(e.byteRange)]);return[_T(e.leftChild,u,n+1),_T(e.rightChild,u,n+1)]}throw new Error("Unexpected node type")}function ET(e){let r=[];return e.forEach(n=>{Array.isArray(n)?r.push(...ET(n)):r.push(n)}),r}si.arrayFlatten=ET;async function yIe(e,r){return r?{type:"branch",id:await ya([await ya(e.id),await ya(r.id),await ya(Bv(e.maxByteRange))]),byteRange:e.maxByteRange,maxByteRange:r.maxByteRange,leftChild:e,rightChild:r}:e}async function ya(e){return Array.isArray(e)&&(e=q3.default.utils.concatBuffers(e)),new Uint8Array(await q3.default.crypto.hash(e))}function Bv(e){let r=new Uint8Array(Iv);for(var n=r.length-1;n>=0;n--){var u=e%256;r[n]=u,e=(e-u)/256}return r}si.intToBuffer=Bv;function AT(e){let r=0;for(var n=0;n<e.length;n++)r*=256,r+=e[n];return r}si.bufferToInt=AT;var bIe=(e,r)=>e.every((n,u)=>r[u]===n);si.arrayCompare=bIe;async function kv(e,r,n,u,a){if(u<=0)return!1;if(r>=u)return kv(e,0,u-1,u,a);if(r<0)return kv(e,0,0,u,a);if(a.length==u1+Iv){let g=a.slice(0,u1),S=a.slice(g.length,g.length+Iv),R=await ya([await ya(g),await ya(S)]);return(0,si.arrayCompare)(e,R)?{offset:u-1,leftBound:n,rightBound:u,chunkSize:u-n}:!1}let d=a.slice(0,u1),l=a.slice(d.length,d.length+u1),v=a.slice(d.length+l.length,d.length+l.length+Iv),w=AT(v),m=a.slice(d.length+l.length+v.length),y=await ya([await ya(d),await ya(l),await ya(v)]);return(0,si.arrayCompare)(e,y)?r<w?await kv(d,r,n,Math.min(u,w),m):await kv(l,r,Math.max(n,w),u,m):!1}si.validatePath=kv;async function fie(e,r=""){if(e.byteLength<1)return r;let n=e.slice(0,u1),u=e.slice(n.length,n.length+u1),a=e.slice(n.length+u.length,n.length+u.length+Iv),d=AT(a),l=e.slice(n.length+u.length+a.length),v=await ya([await ya(n),await ya(u),await ya(a)]),w=`${r}
|
|
139
|
-
${JSON.stringify(bt.from(n))},${JSON.stringify(bt.from(u))},${d} => ${JSON.stringify(v)}`;return fie(l,w)}si.debug=fie});var z3=Dt(Uo=>{"use strict";Te();Ie();ke();var wIe=Uo&&Uo.__createBinding||(Object.create?function(e,r,n,u){u===void 0&&(u=n);var a=Object.getOwnPropertyDescriptor(r,n);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,u,a)}:function(e,r,n,u){u===void 0&&(u=n),e[u]=r[n]}),_Ie=Uo&&Uo.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),MIe=Uo&&Uo.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&wIe(r,e,n);return _Ie(r,e),r},SIe=Uo&&Uo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Uo,"__esModule",{value:!0});Uo.Tag=void 0;var ra=MIe(hh()),EIe=SIe(nie()),AIe=RT(),F3=class{get(r,n){if(!Object.getOwnPropertyNames(this).includes(r))throw new Error(`Field "${r}" is not a property of the Arweave Transaction class.`);if(this[r]instanceof Uint8Array)return n&&n.decode&&n.string?ra.bufferToString(this[r]):n&&n.decode&&!n.string?this[r]:ra.bufferTob64Url(this[r]);if(this[r]instanceof Array){if(n?.decode!==void 0||n?.string!==void 0)throw r==="tags"&&console.warn(`Did you mean to use 'transaction["tags"]' ?`),new Error("Cannot decode or stringify an array.");return this[r]}return n&&n.decode==!0?n&&n.string?ra.b64UrlToString(this[r]):ra.b64UrlToBuffer(this[r]):this[r]}},Ov=class extends F3{name;value;constructor(r,n,u=!1){super(),this.name=r,this.value=n}};Uo.Tag=Ov;var xT=class extends F3{format=2;id="";last_tx="";owner="";tags=[];target="";quantity="0";data_size="0";data=new Uint8Array;data_root="";reward="0";signature="";chunks;constructor(r={}){super(),Object.assign(this,r),typeof this.data=="string"&&(this.data=ra.b64UrlToBuffer(this.data)),r.tags&&(this.tags=r.tags.map(n=>new Ov(n.name,n.value)))}addTag(r,n){this.tags.push(new Ov(ra.stringToB64Url(r),ra.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:ra.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(r){this.owner=r}setSignature({id:r,owner:n,reward:u,tags:a,signature:d}){this.id=r,this.owner=n,u&&(this.reward=u),a&&(this.tags=a),this.signature=d}async prepareChunks(r){!this.chunks&&r.byteLength>0&&(this.chunks=await(0,AIe.generateTransactionChunks)(r),this.data_root=ra.bufferTob64Url(this.chunks.data_root)),!this.chunks&&r.byteLength===0&&(this.chunks={chunks:[],data_root:new Uint8Array,proofs:[]},this.data_root="")}getChunk(r,n){if(!this.chunks)throw new Error("Chunks have not been prepared");let u=this.chunks.proofs[r],a=this.chunks.chunks[r];return{data_root:this.data_root,data_size:this.data_size,data_path:ra.bufferTob64Url(u.proof),offset:u.offset.toString(),chunk:ra.bufferTob64Url(n.slice(a.minByteRange,a.maxByteRange))}}async getSignatureData(){switch(this.format){case 1:let r=this.tags.reduce((u,a)=>ra.concatBuffers([u,a.get("name",{decode:!0,string:!1}),a.get("value",{decode:!0,string:!1})]),new Uint8Array);return ra.concatBuffers([this.get("owner",{decode:!0,string:!1}),this.get("target",{decode:!0,string:!1}),this.get("data",{decode:!0,string:!1}),ra.stringToBuffer(this.quantity),ra.stringToBuffer(this.reward),this.get("last_tx",{decode:!0,string:!1}),r]);case 2:this.data_root||await this.prepareChunks(this.data);let n=this.tags.map(u=>[u.get("name",{decode:!0,string:!1}),u.get("value",{decode:!0,string:!1})]);return await(0,EIe.default)([ra.stringToBuffer(this.format.toString()),this.get("owner",{decode:!0,string:!1}),this.get("target",{decode:!0,string:!1}),ra.stringToBuffer(this.quantity),ra.stringToBuffer(this.reward),this.get("last_tx",{decode:!0,string:!1}),n,ra.stringToBuffer(this.data_size),this.get("data_root",{decode:!0,string:!1})]);default:throw new Error(`Unexpected transaction format: ${this.format}`)}}};Uo.default=xT});var cie=Dt(qs=>{"use strict";Te();Ie();ke();var RIe=qs&&qs.__createBinding||(Object.create?function(e,r,n,u){u===void 0&&(u=n);var a=Object.getOwnPropertyDescriptor(r,n);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,u,a)}:function(e,r,n,u){u===void 0&&(u=n),e[u]=r[n]}),xIe=qs&&qs.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),TIe=qs&&qs.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&RIe(r,e,n);return xIe(r,e),r},kIe=qs&&qs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qs,"__esModule",{value:!0});qs.TransactionUploader=void 0;var uie=kIe(z3()),IIe=TIe(hh()),TT=xv(),BIe=RT(),hie=1,OIe=["invalid_json","chunk_too_big","data_path_too_big","offset_too_big","data_size_too_big","chunk_proof_ratio_not_attractive","invalid_proof"],lie=1e3*40,kT=class e{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(r,n){if(this.api=r,!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 uie.default(Object.assign({},n,{data:new Uint8Array(0)}))}async uploadChunk(r){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+lie-Date.now(),lie);if(n>0&&(n=n-n*Math.random()*.3,await new Promise(l=>setTimeout(l,n))),this.lastResponseError="",!this.txPosted){await this.postTransaction();return}r&&(this.chunkIndex=r);let u=this.transaction.getChunk(r||this.chunkIndex,this.data);if(!await(0,BIe.validatePath)(this.transaction.chunks.data_root,parseInt(u.offset),0,parseInt(u.data_size),IIe.b64UrlToBuffer(u.data_path)))throw new Error(`Unable to validate chunk ${this.chunkIndex}`);let d=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=d.status,this.lastResponseStatus==200)this.chunkIndex++;else if(this.lastResponseError=(0,TT.getError)(d),OIe.includes(this.lastResponseError))throw new Error(`Fatal error uploading chunk ${this.chunkIndex}: ${this.lastResponseError}`)}static async fromSerialized(r,n,u){if(!n||typeof n.chunkIndex!="number"||typeof n.transaction!="object")throw new Error("Serialized object does not match expected format.");var a=new uie.default(n.transaction);a.chunks||await a.prepareChunks(u);let d=new e(r,a);if(d.chunkIndex=n.chunkIndex,d.lastRequestTimeEnd=n.lastRequestTimeEnd,d.lastResponseError=n.lastResponseError,d.lastResponseStatus=n.lastResponseStatus,d.txPosted=n.txPosted,d.data=u,d.transaction.data_root!==n.transaction.data_root)throw new Error("Data mismatch: Uploader doesn't match provided data.");return d}static async fromTransactionId(r,n){let u=await r.get(`tx/${n}`);if(u.status!==200)throw new Error(`Tx ${n} not found: ${u.status}`);let a=u.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<=hie){this.transaction.data=this.data;let u=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=u.status,this.transaction.data=new Uint8Array(0),u.status>=200&&u.status<300){this.txPosted=!0,this.chunkIndex=hie;return}throw this.lastResponseError=(0,TT.getError)(u),new Error(`Unable to upload transaction: ${u.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,TT.getError)(n),new Error(`Unable to upload transaction: ${n.status}, ${this.lastResponseError}`);this.txPosted=!0}};qs.TransactionUploader=kT});var pie=Dt(Pf=>{"use strict";Te();Ie();ke();var PIe=Pf&&Pf.__createBinding||(Object.create?function(e,r,n,u){u===void 0&&(u=n);var a=Object.getOwnPropertyDescriptor(r,n);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,u,a)}:function(e,r,n,u){u===void 0&&(u=n),e[u]=r[n]}),NIe=Pf&&Pf.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),CIe=Pf&&Pf.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&PIe(r,e,n);return NIe(r,e),r},die=Pf&&Pf.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pf,"__esModule",{value:!0});var IT=die(xv()),lh=die(z3()),Pv=CIe(hh()),BT=cie();s0();var OT=class{api;crypto;chunks;constructor(r,n,u){this.api=r,this.crypto=n,this.chunks=u}async getTransactionAnchor(){let r=await this.api.get("tx_anchor");if(!r.data.match(/^[a-z0-9_-]{43,}/i)||!r.ok)throw new Error(`Could not getTransactionAnchor. Received: ${r.data}. Status: ${r.status}, ${r.statusText}`);return r.data}async getPrice(r,n){let u=n?`price/${r}/${n}`:`price/${r}`,a=await this.api.get(u);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(r){let n=await this.api.get(`tx/${r}`);if(n.status==200){let u=parseInt(n.data.data_size);if(n.data.format>=2&&u>0&&u<=1024*1024*12){let a=await this.getData(r);return new lh.default({...n.data,data:a})}return new lh.default({...n.data,format:n.data.format||1})}throw n.status==404?new IT.default("TX_NOT_FOUND"):n.status==410?new IT.default("TX_FAILED"):new IT.default("TX_INVALID")}fromRaw(r){return new lh.default(r)}async search(r,n){return this.api.post("arql",{op:"equals",expr1:r,expr2:n}).then(u=>u.data?u.data:[])}getStatus(r){return this.api.get(`tx/${r}/status`).then(n=>n.status==200?{status:200,confirmed:n.data}:{status:n.status,confirmed:null})}async getData(r,n){let u;try{u=await this.chunks.downloadChunkedData(r)}catch(a){console.error(`Error while trying to download chunked data for ${r}`),console.error(a)}if(!u){console.warn(`Falling back to gateway cache for ${r}`);try{let{data:a,ok:d,status:l,statusText:v}=await this.api.get(`/${r}`,{responseType:"arraybuffer"});if(!d)throw new Error("Bad http status code",{cause:{status:l,statusText:v}});u=a}catch(a){console.error(`Error while trying to download contiguous data from gateway cache for ${r}`),console.error(a)}}if(!u)throw new Error(`${r} data was not found!`);return n&&n.decode&&!n.string?u:n&&n.decode&&n.string?Pv.bufferToString(u):Pv.bufferTob64Url(u)}async sign(r,n,u){let d=typeof n=="object"&&(v=>{let w=!0;return["n","e","d","p","q","dp","dq","qi"].map(m=>!(m in v)&&(w=!1)),w})(n),l=typeof arweaveWallet=="object";if(!d&&!l)throw new Error("No valid JWK or external wallet found to sign transaction.");if(d){r.setOwner(n.n);let v=await r.getSignatureData(),w=await this.crypto.sign(n,v,u),m=await this.crypto.hash(w);r.setSignature({id:Pv.bufferTob64Url(m),owner:n.n,signature:Pv.bufferTob64Url(w)})}else if(l){try{(await arweaveWallet.getPermissions()).includes("SIGN_TRANSACTION")||await arweaveWallet.connect(["SIGN_TRANSACTION"])}catch{}let v=await arweaveWallet.sign(r,u);r.setSignature({id:v.id,owner:v.owner,reward:v.reward,tags:v.tags,signature:v.signature})}else throw new Error("An error occurred while signing. Check wallet is valid")}async verify(r){let n=await r.getSignatureData(),u=r.get("signature",{decode:!0,string:!1}),a=Pv.bufferTob64Url(await this.crypto.hash(u));if(r.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(r.owner,n,u)}async post(r){if(typeof r=="string"?r=new lh.default(JSON.parse(r)):typeof r.readInt32BE=="function"?r=new lh.default(JSON.parse(r.toString())):typeof r=="object"&&!(r instanceof lh.default)&&(r=new lh.default(r)),!(r instanceof lh.default))throw new Error("Must be Transaction object");r.chunks||await r.prepareChunks(r.data);let n=await this.getUploader(r,r.data);try{for(;!n.isComplete;)await n.uploadChunk()}catch(u){if(n.lastResponseStatus>0)return{status:n.lastResponseStatus,statusText:n.lastResponseError,data:{error:n.lastResponseError}};throw u}return{status:200,statusText:"OK",data:{}}}async getUploader(r,n){let u;if(n instanceof ArrayBuffer&&(n=new Uint8Array(n)),r instanceof lh.default){if(n||(n=r.data),!(n instanceof Uint8Array))throw new Error("Data format is invalid");r.chunks||await r.prepareChunks(n),u=new BT.TransactionUploader(this.api,r),(!u.data||u.data.length===0)&&(u.data=n)}else{if(typeof r=="string"&&(r=await BT.TransactionUploader.fromTransactionId(this.api,r)),!n||!(n instanceof Uint8Array))throw new Error("Must provide data when resuming upload");u=await BT.TransactionUploader.fromSerialized(this.api,r,n)}return u}async*upload(r,n){let u=await this.getUploader(r,n);for(;!u.isComplete;)await u.uploadChunk(),yield u;return u}};Pf.default=OT});var mie=Dt(ch=>{"use strict";Te();Ie();ke();var LIe=ch&&ch.__createBinding||(Object.create?function(e,r,n,u){u===void 0&&(u=n);var a=Object.getOwnPropertyDescriptor(r,n);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,u,a)}:function(e,r,n,u){u===void 0&&(u=n),e[u]=r[n]}),DIe=ch&&ch.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),$Ie=ch&&ch.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&LIe(r,e,n);return DIe(r,e),r};Object.defineProperty(ch,"__esModule",{value:!0});var vie=$Ie(hh());s0();var PT=class{api;crypto;constructor(r,n){this.api=r,this.crypto=n}getBalance(r){return this.api.get(`wallet/${r}/balance`).then(n=>n.data)}getLastTransactionID(r){return this.api.get(`wallet/${r}/last_tx`).then(n=>n.data)}generate(){return this.crypto.generateJWK()}async jwkToAddress(r){return!r||r==="use_wallet"?this.getAddress():this.getAddress(r)}async getAddress(r){if(!r||r==="use_wallet"){try{await arweaveWallet.connect(["ACCESS_ADDRESS"])}catch{}return arweaveWallet.getActiveAddress()}else return this.ownerToAddress(r.n)}async ownerToAddress(r){return vie.bufferTob64Url(await this.crypto.hash(vie.b64UrlToBuffer(r)))}};ch.default=PT});var yie=Dt(Nf=>{"use strict";Te();Ie();ke();var UIe=Nf&&Nf.__createBinding||(Object.create?function(e,r,n,u){u===void 0&&(u=n);var a=Object.getOwnPropertyDescriptor(r,n);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,u,a)}:function(e,r,n,u){u===void 0&&(u=n),e[u]=r[n]}),qIe=Nf&&Nf.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),jIe=Nf&&Nf.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&UIe(r,e,n);return qIe(r,e),r};Object.defineProperty(Nf,"__esModule",{value:!0});Nf.SiloResource=void 0;var gie=jIe(hh()),NT=class{api;crypto;transactions;constructor(r,n,u){this.api=r,this.crypto=n,this.transactions=u}async get(r){if(!r)throw new Error("No Silo URI specified");let n=await this.parseUri(r),u=await this.transactions.search("Silo-Name",n.getAccessKey());if(u.length==0)throw new Error(`No data could be found for the Silo URI: ${r}`);let a=await this.transactions.get(u[0]);if(!a)throw new Error(`No data could be found for the Silo URI: ${r}`);let d=a.get("data",{decode:!0,string:!1});return this.crypto.decrypt(d,n.getEncryptionKey())}async readTransactionData(r,n){if(!n)throw new Error("No Silo URI specified");let u=await this.parseUri(n),a=r.get("data",{decode:!0,string:!1});return this.crypto.decrypt(a,u.getEncryptionKey())}async parseUri(r){let n=r.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 u=n[1],a=Math.pow(2,parseInt(n[2])),d=await this.hash(gie.stringToBuffer(u),a),l=gie.bufferTob64(d.slice(0,15)),v=await this.hash(d.slice(16,31),1);return new H3(r,l,v)}async hash(r,n){let u=await this.crypto.hash(r);for(let a=0;a<n-1;a++)u=await this.crypto.hash(u);return u}};Nf.default=NT;var H3=class{uri;accessKey;encryptionKey;constructor(r,n,u){this.uri=r,this.accessKey=n,this.encryptionKey=u}getUri(){return this.uri}getAccessKey(){return this.accessKey}getEncryptionKey(){return this.encryptionKey}};Nf.SiloResource=H3});var wie=Dt(dh=>{"use strict";Te();Ie();ke();var FIe=dh&&dh.__createBinding||(Object.create?function(e,r,n,u){u===void 0&&(u=n);var a=Object.getOwnPropertyDescriptor(r,n);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,u,a)}:function(e,r,n,u){u===void 0&&(u=n),e[u]=r[n]}),zIe=dh&&dh.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),HIe=dh&&dh.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&FIe(r,e,n);return zIe(r,e),r};Object.defineProperty(dh,"__esModule",{value:!0});var bie=xv(),KIe=HIe(hh()),CT=class{api;constructor(r){this.api=r}async getTransactionOffset(r){let n=await this.api.get(`tx/${r}/offset`);if(n.status===200)return n.data;throw new Error(`Unable to get transaction offset: ${(0,bie.getError)(n)}`)}async getChunk(r){let n=await this.api.get(`chunk/${r}`);if(n.status===200)return n.data;throw new Error(`Unable to get chunk: ${(0,bie.getError)(n)}`)}async getChunkData(r){let n=await this.getChunk(r);return KIe.b64UrlToBuffer(n.chunk)}firstChunkOffset(r){return parseInt(r.offset)-parseInt(r.size)+1}async downloadChunkedData(r){let n=await this.getTransactionOffset(r),u=parseInt(n.size),d=parseInt(n.offset)-u+1,l=new Uint8Array(u),v=0;for(;v<u;){this.api.config.logging&&console.log(`[chunk] ${v}/${u}`);let w;try{w=await this.getChunkData(d+v)}catch{console.error(`[chunk] Failed to fetch chunk at offset ${d+v}`),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,v),v+=w.length;else throw new Error(`Couldn't complete data download at ${v}/${u}`)}return l}};dh.default=CT});var Mie=Dt(Nv=>{"use strict";Te();Ie();ke();var ZIe=Nv&&Nv.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Nv,"__esModule",{value:!0});var _ie=ZIe(xv());s0();var LT=class e{api;network;static HASH_ENDPOINT="block/hash/";static HEIGHT_ENDPOINT="block/height/";constructor(r,n){this.api=r,this.network=n}async get(r){let n=await this.api.get(`${e.HASH_ENDPOINT}${r}`);if(n.status===200)return n.data;throw n.status===404?new _ie.default("BLOCK_NOT_FOUND"):new Error(`Error while loading block data: ${n}`)}async getByHeight(r){let n=await this.api.get(`${e.HEIGHT_ENDPOINT}${r}`);if(n.status===200)return n.data;throw n.status===404?new _ie.default("BLOCK_NOT_FOUND"):new Error(`Error while loading block data: ${n}`)}async getCurrent(){let{current:r}=await this.network.getInfo();return await this.get(r)}};Nv.default=LT});var U3=Dt(Cf=>{"use strict";Te();Ie();ke();var WIe=Cf&&Cf.__createBinding||(Object.create?function(e,r,n,u){u===void 0&&(u=n);var a=Object.getOwnPropertyDescriptor(r,n);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,u,a)}:function(e,r,n,u){u===void 0&&(u=n),e[u]=r[n]}),GIe=Cf&&Cf.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),VIe=Cf&&Cf.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&WIe(r,e,n);return GIe(r,e),r},wu=Cf&&Cf.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Cf,"__esModule",{value:!0});var JIe=wu(JH()),YIe=wu(YH()),XIe=wu(Zre()),QIe=wu(Wre()),eBe=wu(pie()),tBe=wu(mie()),Sie=wu(z3()),Cv=VIe(hh()),rBe=wu(yie()),iBe=wu(wie()),nBe=wu(Mie()),DT=class e{api;wallets;transactions;network;blocks;ar;silo;chunks;static init;static crypto=new XIe.default;static utils=Cv;constructor(r){this.api=new YIe.default(r),this.wallets=new tBe.default(this.api,e.crypto),this.chunks=new iBe.default(this.api),this.transactions=new eBe.default(this.api,e.crypto,this.chunks),this.silo=new rBe.default(this.api,this.crypto,this.transactions),this.network=new QIe.default(this.api),this.blocks=new nBe.default(this.api,this.network),this.ar=new JIe.default}get crypto(){return e.crypto}get utils(){return e.utils}getConfig(){return{api:this.api.getConfig(),crypto:null}}async createTransaction(r,n){let u={};if(Object.assign(u,r),!r.data&&!(r.target&&r.quantity))throw new Error("A new Arweave transaction must have a 'data' value, or 'target' and 'quantity' values.");if(r.owner==null&&n&&n!=="use_wallet"&&(u.owner=n.n),r.last_tx==null&&(u.last_tx=await this.transactions.getTransactionAnchor()),typeof r.data=="string"&&(r.data=Cv.stringToBuffer(r.data)),r.data instanceof ArrayBuffer&&(r.data=new Uint8Array(r.data)),r.data&&!(r.data instanceof Uint8Array))throw new Error("Expected data to be a string, Uint8Array or ArrayBuffer");if(r.reward==null){let d=r.data?r.data.byteLength:0;u.reward=await this.transactions.getPrice(d,u.target)}u.data_root="",u.data_size=r.data?r.data.byteLength.toString():"0",u.data=r.data||new Uint8Array(0);let a=new Sie.default(u);return await a.getSignatureData(),a}async createSiloTransaction(r,n,u){let a={};if(Object.assign(a,r),!r.data)throw new Error("Silo transactions must have a 'data' value");if(!u)throw new Error("No Silo URI specified.");if(r.target||r.quantity)throw new Error("Silo transactions can only be used for storing data, sending AR to other wallets isn't supported.");if(r.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}r.last_tx==null&&(a.last_tx=await this.transactions.getTransactionAnchor());let d=await this.silo.parseUri(u);if(typeof r.data=="string"){let v=await this.crypto.encrypt(Cv.stringToBuffer(r.data),d.getEncryptionKey());a.reward=await this.transactions.getPrice(v.byteLength),a.data=Cv.bufferTob64Url(v)}if(r.data instanceof Uint8Array){let v=await this.crypto.encrypt(r.data,d.getEncryptionKey());a.reward=await this.transactions.getPrice(v.byteLength),a.data=Cv.bufferTob64Url(v)}let l=new Sie.default(a);return l.addTag("Silo-Name",d.getAccessKey()),l.addTag("Silo-Version","0.1.0"),l}arql(r){return this.api.post("/arql",r).then(n=>n.data||[])}};Cf.default=DT});var Aie=Dt((UT,Eie)=>{"use strict";Te();Ie();ke();var aBe=UT&&UT.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},$T=aBe(U3());$T.default.init=function(e={}){return new $T.default(e)};Eie.exports=$T.default});Te();Ie();ke();var Tie=Sl(o4(),1);Te();Ie();ke();Te();Ie();ke();var tae=["gateway","gateways","prescribedObservers","record","auction","balance","epoch","priceForInteraction"],rae=["delegateStake","decreaseDelegateStake","joinNetwork","increaseOperatorStake","decreaseOperatorStake","updateGatewaySettings","saveObservations","extendRecord","buyRecord","increaseUndernameCount","transfer"],RBe=[...tae,...rae],xBe={GATEWAY:"gateway",GATEWAYS:"gateways",PRESCRIBED_OBSERVERS:"prescribedObservers",DELEGATE_STAKE:"delegateStake",DECREASE_DELEGATE_STAKE:"decreaseDelegateStake",JOIN_NETWORK:"joinNetwork",INCREASE_OPERATOR_STAKE:"increaseOperatorStake",DECREASE_OPERATOR_STAKE:"decreaseOperatorStake",UPDATE_GATEWAY_SETTINGS:"updateGatewaySettings",SAVE_OBSERVATIONS:"saveObservations",EXTEND_RECORD:"extendRecord",INCREASE_UNDERNAME_COUNT:"increaseUndernameCount",RECORD:"record",AUCTION:"auction",TRANSFER:"transfer",BALANCE:"balance",PRICE_FOR_INTERACTION:"priceForInteraction",EPOCH:"epoch",BUY_RECORD:"buyRecord"},iae=(n=>(n.IO="IO",n.MIO="mIO",n))(iae||{}),TBe={TRANSFER:"transfer",SET_CONTROLLER:"setController",REMOVE_CONTROLLER:"removeController",SET_NAME:"setName",SET_TICKER:"setTicker",SET_RECORD:"setRecord",REMOVE_RECORD:"removeRecord",BALANCE:"balance",EVOLVE:"evolve"};Te();Ie();ke();Te();Ie();ke();Te();Ie();ke();var lO=new RegExp("^[a-zA-Z0-9_-]{43}$"),LBe=new RegExp("^(?:(?!-)[A-Za-z0-9-]{1,63}(?<!-)\\.)+[A-Za-z]{1,63}$"),DBe=new RegExp("^[0-9]{12},[0-9]{13},[a-fA-F0-9]{64}$"),$Be=gt.env.ARNS_REGISTRY_TX??"bLAgYxAdX2Ry-nt6aH2ixgvJXbpsEYm28NgJgyqfs-U",UBe="_NctcA2sRy1-J4OmIQZbYFPM17piNcbdBPH2ncX2RL8",nae="GaQrvEMKBpkjofgnBi_B3IgIDmY_XYelVLB6GcRGrHc",qBe=nae,_c="agYcCFJtrMG6cqMuZfskIkFTGvUPddICmtQSBIoPdiA",s4=1e6,cO="cbn0KKrBZH7hdNkNokuXLtGryrWM--PjSTBqIzw9Kkk",dO="3OlGzE5mrsN2GsxCYM0Tae1KzWepGOr5a94deOWmApM",pO="_GQ33BkPtZrqxA84vM8Zk-N2aO0toNNu_C-l-rawrBA";var f4=class e{constructor(r){this.positiveFiniteInteger=r;if(!Number.isFinite(this.positiveFiniteInteger)||!Number.isInteger(this.positiveFiniteInteger)||this.positiveFiniteInteger<0)throw new Error(`Number must be a non-negative integer value! ${r}`)}[Symbol.toPrimitive](r){return r==="string"&&this.toString(),this.positiveFiniteInteger}plus(r){return new e(this.positiveFiniteInteger+r.positiveFiniteInteger)}minus(r){return new e(this.positiveFiniteInteger-r.positiveFiniteInteger)}isGreaterThan(r){return this.positiveFiniteInteger>r.positiveFiniteInteger}isGreaterThanOrEqualTo(r){return this.positiveFiniteInteger>=r.positiveFiniteInteger}isLessThan(r){return this.positiveFiniteInteger<r.positiveFiniteInteger}isLessThanOrEqualTo(r){return this.positiveFiniteInteger<=r.positiveFiniteInteger}toString(){return`${this.positiveFiniteInteger}`}valueOf(){return this.positiveFiniteInteger}toJSON(){return this.positiveFiniteInteger}equals(r){return this.positiveFiniteInteger===r.positiveFiniteInteger}},u4=class{value;constructor(r){if(!Number.isFinite(r)||r<0)throw new Error("IOToken must be a non-negative finite number");this.value=+r.toFixed(6)}valueOf(){return this.value}toMIO(){return new h4(Math.floor(this.value*s4))}toString(){return`${this.value}`}},h4=class e extends f4{constructor(r){super(r)}multiply(r){let n=Math.floor(this.valueOf()*r.valueOf());return new e(n)}divide(r){if(r.valueOf()===0)throw new Error("Cannot divide by zero");let n=Math.floor(this.valueOf()/r.valueOf());return new e(n)}plus(r){let n=super.plus(r);return new e(n.valueOf())}minus(r){let n=super.minus(r);return new e(n.valueOf())}toIO(){return new u4(this.valueOf()/s4)}};Te();Ie();ke();Te();Ie();ke();var vO=e=>lO.test(e);function YBe(e){return e!==void 0&&!isNaN(parseInt(e.toString()))}function Mc(e){return"process"in e}function Sc(e){return"processId"in e&&typeof e.processId=="string"&&vO(e.processId)===!0}function iOe(e){return e.type==="lease"&&e.endTimestamp!==void 0}Te();Ie();ke();Te();Ie();ke();var Gs=class extends Error{constructor(r){super(r),this.name=this.constructor.name}},mO=class extends Gs{},gO=class extends Gs{},yO=class extends Gs{constructor(r,n){super(`Failed request: ${r}: ${n}`)}},bO=class extends Gs{},$m=class extends Gs{},wO=class extends Gs{constructor(){super("Invalid signer. Please provide a valid signer to interact with the contract.")}},Eh=class extends Gs{constructor(){super("Invalid contract configuration")}},_O=class extends Gs{constructor(){super("Invalid process configuration")}},MO=class extends Gs{};Te();Ie();ke();var ff=Sl(xj(),1);Te();Ie();ke();var id="2.0.0-alpha.4";var nd=class e{logger;silent=!1;static default=new e;constructor({level:r="info"}={}){if(r==="none"){this.silent=!0;return}this.logger=(0,ff.createLogger)({level:r,silent:this.silent,defaultMeta:{name:"ar-io-sdk",version:id},format:ff.format.combine(ff.format.timestamp(),ff.format.json())}),typeof window<"u"?this.logger=console:this.logger.add(new ff.transports.Console({format:ff.format.combine(ff.format.timestamp(),ff.format.json())}))}info(r,...n){this.silent||this.logger.info(r,...n)}warn(r,...n){this.silent||this.logger.warn(r,...n)}error(r,...n){this.silent||this.logger.error(r,...n)}debug(r,...n){this.silent||this.logger.debug(r,...n)}setLogLevel(r){"silent"in this.logger&&(this.logger.silent=r==="none"),"level"in this.logger&&(this.logger.level=r)}};Te();Ie();ke();var Ip=class{static init({signer:r,...n}){if(Mc(n)||Sc(n))return r?new R7({signer:r,...n}):new O6(n);throw new Eh}},O6=class{process;constructor(r){if(Mc(r))this.process=r.process;else if(Sc(r))this.process=new is({processId:r.processId});else throw new Eh}async getState(){let r=[{name:"Action",value:"State"}];return await this.process.read({tags:r})}async getInfo(){let r=[{name:"Action",value:"Info"}];return await this.process.read({tags:r})}async getRecord({undername:r}){let n=[{name:"Sub-Domain",value:r},{name:"Action",value:"Record"}];return await this.process.read({tags:n})}async getRecords(){let r=[{name:"Action",value:"Records"}];return await this.process.read({tags:r})}async getOwner(){return(await this.getInfo()).Owner}async getControllers(){let r=[{name:"Action",value:"Controllers"}];return await this.process.read({tags:r})}async getName(){return(await this.getInfo()).Name}async getTicker(){return(await this.getInfo()).Ticker}async getBalances(){let r=[{name:"Action",value:"Balances"}];return await this.process.read({tags:r})}async getBalance({address:r}){let n=[{name:"Action",value:"Balance"},{name:"Recipient",value:r}];return await this.process.read({tags:n})}},R7=class extends O6{signer;constructor({signer:r,...n}){super(n),this.signer=r}async transfer({target:r}){let n=[{name:"Action",value:"Transfer"},{name:"Recipient",value:r}];return this.process.send({tags:n,data:{},signer:this.signer})}async addController({controller:r}){let n=[{name:"Action",value:"Add-Controller"},{name:"Controller",value:r}];return this.process.send({tags:n,data:{},signer:this.signer})}async removeController({controller:r}){let n=[{name:"Action",value:"Remove-Controller"},{name:"Controller",value:r}];return this.process.send({tags:n,data:{},signer:this.signer})}async setRecord({undername:r,transactionId:n,ttlSeconds:u}){return this.process.send({tags:[{name:"Action",value:"Set-Record"},{name:"Sub-Domain",value:r},{name:"Transaction-Id",value:n},{name:"TTL-Seconds",value:u.toString()}],data:{transactionId:n,ttlSeconds:u},signer:this.signer})}async removeRecord({undername:r}){return this.process.send({tags:[{name:"Action",value:"Remove-Record"},{name:"Sub-Domain",value:r}],data:{undername:r},signer:this.signer})}async setTicker({ticker:r}){return this.process.send({tags:[{name:"Action",value:"Set-Ticker"},{name:"Ticker",value:r}],data:{ticker:r},signer:this.signer})}async setName({name:r}){return this.process.send({tags:[{name:"Action",value:"Set-Name"},{name:"Name",value:r}],data:{name:r},signer:this.signer})}};Te();Ie();ke();var Yz=Sl(cF(),1);Te();Ie();ke();Te();Ie();ke();var Rye=Object.create,O9=Object.defineProperty,xye=Object.getOwnPropertyDescriptor,LF=Object.getOwnPropertyNames,Tye=Object.getPrototypeOf,kye=Object.prototype.hasOwnProperty,To=(e,r)=>function(){return r||(0,e[LF(e)[0]])((r={exports:{}}).exports,r),r.exports},DF=(e,r)=>{for(var n in r)O9(e,n,{get:r[n],enumerable:!0})},Iye=(e,r,n,u)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of LF(r))!kye.call(e,a)&&a!==n&&O9(e,a,{get:()=>r[a],enumerable:!(u=xye(r,a))||u.enumerable});return e},P9=(e,r,n)=>(n=e!=null?Rye(Tye(e)):{},Iye(r||!e||!e.__esModule?O9(n,"default",{value:e,enumerable:!0}):n,e)),Bye=To({"node_modules/obliterator/iterator.js"(e,r){function n(u){if(typeof u!="function")throw new Error("obliterator/iterator: expecting a function!");this.next=u}typeof Symbol<"u"&&(n.prototype[Symbol.iterator]=function(){return this}),n.of=function(){var u=arguments,a=u.length,d=0;return new n(function(){return d>=a?{done:!0}:{done:!1,value:u[d++]}})},n.empty=function(){var u=new n(function(){return{done:!0}});return u},n.fromSequence=function(u){var a=0,d=u.length;return new n(function(){return a>=d?{done:!0}:{done:!1,value:u[a++]}})},n.is=function(u){return u instanceof n?!0:typeof u=="object"&&u!==null&&typeof u.next=="function"},r.exports=n}}),Oye=To({"node_modules/obliterator/support.js"(e){e.ARRAY_BUFFER_SUPPORT=typeof ArrayBuffer<"u",e.SYMBOL_SUPPORT=typeof Symbol<"u"}}),N9=To({"node_modules/obliterator/foreach.js"(e,r){var n=Oye(),u=n.ARRAY_BUFFER_SUPPORT,a=n.SYMBOL_SUPPORT;r.exports=function(l,v){var w,m,y,g,S;if(!l)throw new Error("obliterator/forEach: invalid iterable.");if(typeof v!="function")throw new Error("obliterator/forEach: expecting a callback.");if(Array.isArray(l)||u&&ArrayBuffer.isView(l)||typeof l=="string"||l.toString()==="[object Arguments]"){for(y=0,g=l.length;y<g;y++)v(l[y],y);return}if(typeof l.forEach=="function"){l.forEach(v);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;)v(S.value,y),y++;return}for(m in l)l.hasOwnProperty(m)&&v(l[m],m)}}}),C9=To({"node_modules/mnemonist/utils/typed-arrays.js"(e){var r=Math.pow(2,8)-1,n=Math.pow(2,16)-1,u=Math.pow(2,32)-1,a=Math.pow(2,7)-1,d=Math.pow(2,15)-1,l=Math.pow(2,31)-1;e.getPointerArray=function(w){var m=w-1;if(m<=r)return Uint8Array;if(m<=n)return Uint16Array;if(m<=u)return Uint32Array;throw new Error("mnemonist: Pointer Array of size > 4294967295 is not supported.")},e.getSignedPointerArray=function(w){var m=w-1;return m<=a?Int8Array:m<=d?Int16Array:m<=l?Int32Array:Float64Array},e.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 v={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};e.getMinimalRepresentation=function(w,m){var y=null,g=0,S,R,A,k,I;for(k=0,I=w.length;k<I;k++)A=m?m(w[k]):w[k],R=e.getNumberType(A),S=v[R.name],S>g&&(g=S,y=R);return y},e.isTypedArray=function(w){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView(w)},e.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},e.indices=function(w){for(var m=e.getPointerArray(w),y=new m(w),g=0;g<w;g++)y[g]=g;return y}}}),$F=To({"node_modules/mnemonist/utils/iterables.js"(e){var r=N9(),n=C9();function u(v){return Array.isArray(v)||n.isTypedArray(v)}function a(v){if(typeof v.length=="number")return v.length;if(typeof v.size=="number")return v.size}function d(v){var w=a(v),m=typeof w=="number"?new Array(w):[],y=0;return r(v,function(g){m[y++]=g}),m}function l(v){var w=a(v),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 r(v,function(R){y[S]=R,g[S]=S++}),[y,g]}e.isArrayLike=u,e.guessLength=a,e.toArray=d,e.toArrayWithIndices=l}}),Pye=To({"node_modules/mnemonist/lru-cache.js"(e,r){var n=Bye(),u=N9(),a=C9(),d=$F();function l(v,w,m){if(arguments.length<2&&(m=v,v=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 v=="function"?new v(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(v){var w=this.head;if(this.head===v)return this;var m=this.backward[v],y=this.forward[v];return this.tail===v?this.tail=m:this.backward[y]=m,this.forward[m]=y,this.backward[w]=v,this.head=v,this.forward[v]=w,this},l.prototype.set=function(v,w){var m=this.items[v];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[v]=m,this.K[m]=v,this.V[m]=w,this.forward[m]=this.head,this.backward[this.head]=m,this.head=m},l.prototype.setpop=function(v,w){var m=null,y=null,g=this.items[v];return typeof g<"u"?(this.splayOnTop(g),m=this.V[g],this.V[g]=w,{evicted:!1,key:v,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[v]=g,this.K[g]=v,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(v){return v in this.items},l.prototype.get=function(v){var w=this.items[v];if(!(typeof w>"u"))return this.splayOnTop(w),this.V[w]},l.prototype.peek=function(v){var w=this.items[v];if(!(typeof w>"u"))return this.V[w]},l.prototype.forEach=function(v,w){w=arguments.length>1?w:this;for(var m=0,y=this.size,g=this.head,S=this.K,R=this.V,A=this.forward;m<y;)v.call(w,R[g],S[g],this),g=A[g],m++},l.prototype.keys=function(){var v=0,w=this.size,m=this.head,y=this.K,g=this.forward;return new n(function(){if(v>=w)return{done:!0};var S=y[m];return v++,v<w&&(m=g[m]),{done:!1,value:S}})},l.prototype.values=function(){var v=0,w=this.size,m=this.head,y=this.V,g=this.forward;return new n(function(){if(v>=w)return{done:!0};var S=y[m];return v++,v<w&&(m=g[m]),{done:!1,value:S}})},l.prototype.entries=function(){var v=0,w=this.size,m=this.head,y=this.K,g=this.V,S=this.forward;return new n(function(){if(v>=w)return{done:!0};var R=y[m],A=g[m];return v++,v<w&&(m=S[m]),{done:!1,value:[R,A]}})},typeof Symbol<"u"&&(l.prototype[Symbol.iterator]=l.prototype.entries),l.prototype.inspect=function(){for(var v=new Map,w=this.entries(),m;m=w.next(),!m.done;)v.set(m.value[0],m.value[1]);return Object.defineProperty(v,"constructor",{value:l,enumerable:!1}),v},typeof Symbol<"u"&&(l.prototype[Symbol.for("nodejs.util.inspect.custom")]=l.prototype.inspect),l.from=function(v,w,m,y){if(arguments.length<2){if(y=d.guessLength(v),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 u(v,function(S,R){g.set(R,S)}),g},r.exports=l}}),Nye=To({"node_modules/mnemonist/lru-map.js"(e,r){var n=Pye(),u=N9(),a=C9(),d=$F();function l(v,w,m){if(arguments.length<2&&(m=v,v=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 v=="function"?new v(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(v,w){var m=this.items.get(v);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(v,m),this.K[m]=v,this.V[m]=w,this.forward[m]=this.head,this.backward[this.head]=m,this.head=m},l.prototype.setpop=function(v,w){var m=null,y=null,g=this.items.get(v);return typeof g<"u"?(this.splayOnTop(g),m=this.V[g],this.V[g]=w,{evicted:!1,key:v,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(v,g),this.K[g]=v,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(v){return this.items.has(v)},l.prototype.get=function(v){var w=this.items.get(v);if(!(typeof w>"u"))return this.splayOnTop(w),this.V[w]},l.prototype.peek=function(v){var w=this.items.get(v);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(v,w,m,y){if(arguments.length<2){if(y=d.guessLength(v),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 u(v,function(S,R){g.set(R,S)}),g},r.exports=l}}),Cye=To({"node_modules/ms/index.js"(e,r){var n=1e3,u=n*60,a=u*60,d=a*24,l=d*7,v=d*365.25;r.exports=function(S,R){R=R||{};var A=typeof S;if(A==="string"&&S.length>0)return w(S);if(A==="number"&&isFinite(S))return R.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 R=/^(-?(?:\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(R){var A=parseFloat(R[1]),k=(R[2]||"ms").toLowerCase();switch(k){case"years":case"year":case"yrs":case"yr":case"y":return A*v;case"weeks":case"week":case"w":return A*l;case"days":case"day":case"d":return A*d;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*u;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 R=Math.abs(S);return R>=d?Math.round(S/d)+"d":R>=a?Math.round(S/a)+"h":R>=u?Math.round(S/u)+"m":R>=n?Math.round(S/n)+"s":S+"ms"}function y(S){var R=Math.abs(S);return R>=d?g(S,R,d,"day"):R>=a?g(S,R,a,"hour"):R>=u?g(S,R,u,"minute"):R>=n?g(S,R,n,"second"):S+" ms"}function g(S,R,A,k){var I=R>=A*1.5;return Math.round(S/A)+" "+k+(I?"s":"")}}}),Lye=To({"node_modules/debug/src/common.js"(e,r){function n(u){d.debug=d,d.default=d,d.coerce=g,d.disable=w,d.enable=v,d.enabled=m,d.humanize=Cye(),d.destroy=S,Object.keys(u).forEach(R=>{d[R]=u[R]}),d.names=[],d.skips=[],d.formatters={};function a(R){let A=0;for(let k=0;k<R.length;k++)A=(A<<5)-A+R.charCodeAt(k),A|=0;return d.colors[Math.abs(A)%d.colors.length]}d.selectColor=a;function d(R){let A,k=null,I,B;function P(...C){if(!P.enabled)return;let q=P,K=Number(new Date),V=K-(A||K);q.diff=V,q.prev=A,q.curr=K,A=K,C[0]=d.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");let j=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(Y,E)=>{if(Y==="%%")return"%";j++;let i=d.formatters[E];if(typeof i=="function"){let s=C[j];Y=i.call(q,s),C.splice(j,1),j--}return Y}),d.formatArgs.call(q,C),(q.log||d.log).apply(q,C)}return P.namespace=R,P.useColors=d.useColors(),P.color=d.selectColor(R),P.extend=l,P.destroy=d.destroy,Object.defineProperty(P,"enabled",{enumerable:!0,configurable:!1,get:()=>k!==null?k:(I!==d.namespaces&&(I=d.namespaces,B=d.enabled(R)),B),set:C=>{k=C}}),typeof d.init=="function"&&d.init(P),P}function l(R,A){let k=d(this.namespace+(typeof A>"u"?":":A)+R);return k.log=this.log,k}function v(R){d.save(R),d.namespaces=R,d.names=[],d.skips=[];let A,k=(typeof R=="string"?R:"").split(/[\s,]+/),I=k.length;for(A=0;A<I;A++)k[A]&&(R=k[A].replace(/\*/g,".*?"),R[0]==="-"?d.skips.push(new RegExp("^"+R.slice(1)+"$")):d.names.push(new RegExp("^"+R+"$")))}function w(){let R=[...d.names.map(y),...d.skips.map(y).map(A=>"-"+A)].join(",");return d.enable(""),R}function m(R){if(R[R.length-1]==="*")return!0;let A,k;for(A=0,k=d.skips.length;A<k;A++)if(d.skips[A].test(R))return!1;for(A=0,k=d.names.length;A<k;A++)if(d.names[A].test(R))return!0;return!1}function y(R){return R.toString().substring(2,R.toString().length-2).replace(/\.\*\?$/,"*")}function g(R){return R instanceof Error?R.stack||R.message:R}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 d.enable(d.load()),d}r.exports=n}}),Dye=To({"node_modules/debug/src/browser.js"(e,r){e.formatArgs=u,e.save=a,e.load=d,e.useColors=n,e.storage=l(),e.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`."))}})(),e.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 u(w){if(w[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+w[0]+(this.useColors?"%c ":" ")+"+"+r.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)}e.log=console.debug||console.log||(()=>{});function a(w){try{w?e.storage.setItem("debug",w):e.storage.removeItem("debug")}catch{}}function d(){let w;try{w=e.storage.getItem("debug")}catch{}return!w&&typeof gt<"u"&&"env"in gt&&(w=gt.env.DEBUG),w}function l(){try{return localStorage}catch{}}r.exports=Lye()(e);var{formatters:v}=r.exports;v.j=function(w){try{return JSON.stringify(w)}catch(m){return"[UnexpectedJSONParseError]: "+m.message}}}}),$ye=To({"node_modules/base64-js/index.js"(e){"use strict";e.byteLength=w,e.toByteArray=y,e.fromByteArray=R;var r=[],n=[],u=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(d=0,l=a.length;d<l;++d)r[d]=a[d],n[a.charCodeAt(d)]=d;var d,l;n[45]=62,n[95]=63;function v(A){var k=A.length;if(k%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var I=A.indexOf("=");I===-1&&(I=k);var B=I===k?0:4-I%4;return[I,B]}function w(A){var k=v(A),I=k[0],B=k[1];return(I+B)*3/4-B}function m(A,k,I){return(k+I)*3/4-I}function y(A){var k,I=v(A),B=I[0],P=I[1],C=new u(m(A,B,P)),q=0,K=P>0?B-4:B,V;for(V=0;V<K;V+=4)k=n[A.charCodeAt(V)]<<18|n[A.charCodeAt(V+1)]<<12|n[A.charCodeAt(V+2)]<<6|n[A.charCodeAt(V+3)],C[q++]=k>>16&255,C[q++]=k>>8&255,C[q++]=k&255;return P===2&&(k=n[A.charCodeAt(V)]<<2|n[A.charCodeAt(V+1)]>>4,C[q++]=k&255),P===1&&(k=n[A.charCodeAt(V)]<<10|n[A.charCodeAt(V+1)]<<4|n[A.charCodeAt(V+2)]>>2,C[q++]=k>>8&255,C[q++]=k&255),C}function g(A){return r[A>>18&63]+r[A>>12&63]+r[A>>6&63]+r[A&63]}function S(A,k,I){for(var B,P=[],C=k;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 R(A){for(var k,I=A.length,B=I%3,P=[],C=16383,q=0,K=I-B;q<K;q+=C)P.push(S(A,q,q+C>K?K:q+C));return B===1?(k=A[I-1],P.push(r[k>>2]+r[k<<4&63]+"==")):B===2&&(k=(A[I-2]<<8)+A[I-1],P.push(r[k>>10]+r[k>>4&63]+r[k<<2&63]+"=")),P.join("")}}}),Uye=To({"node_modules/ieee754/index.js"(e){e.read=function(r,n,u,a,d){var l,v,w=d*8-a-1,m=(1<<w)-1,y=m>>1,g=-7,S=u?d-1:0,R=u?-1:1,A=r[n+S];for(S+=R,l=A&(1<<-g)-1,A>>=-g,g+=w;g>0;l=l*256+r[n+S],S+=R,g-=8);for(v=l&(1<<-g)-1,l>>=-g,g+=a;g>0;v=v*256+r[n+S],S+=R,g-=8);if(l===0)l=1-y;else{if(l===m)return v?NaN:(A?-1:1)*(1/0);v=v+Math.pow(2,a),l=l-y}return(A?-1:1)*v*Math.pow(2,l-a)},e.write=function(r,n,u,a,d,l){var v,w,m,y=l*8-d-1,g=(1<<y)-1,S=g>>1,R=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=a?0:l-1,k=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,v=g):(v=Math.floor(Math.log(n)/Math.LN2),n*(m=Math.pow(2,-v))<1&&(v--,m*=2),v+S>=1?n+=R/m:n+=R*Math.pow(2,1-S),n*m>=2&&(v++,m/=2),v+S>=g?(w=0,v=g):v+S>=1?(w=(n*m-1)*Math.pow(2,d),v=v+S):(w=n*Math.pow(2,S-1)*Math.pow(2,d),v=0));d>=8;r[u+A]=w&255,A+=k,w/=256,d-=8);for(v=v<<d|w,y+=d;y>0;r[u+A]=v&255,A+=k,v/=256,y-=8);r[u+A-k]|=I*128}}}),qye=To({"node_modules/buffer/index.js"(e){"use strict";var r=$ye(),n=Uye(),u=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=v,e.SlowBuffer=P,e.INSPECT_MAX_BYTES=50;var a=2147483647;e.kMaxLength=a,v.TYPED_ARRAY_SUPPORT=d(),!v.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function d(){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(v.prototype,"parent",{enumerable:!0,get:function(){if(v.isBuffer(this))return this.buffer}}),Object.defineProperty(v.prototype,"offset",{enumerable:!0,get:function(){if(v.isBuffer(this))return this.byteOffset}});function 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,v.prototype),N}function v(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,$)}v.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 k(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 v.from(ee,N,$);let re=I(O);if(re)return re;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof O[Symbol.toPrimitive]=="function")return v.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)}v.from=function(O,N,$){return w(O,N,$)},Object.setPrototypeOf(v.prototype,Uint8Array.prototype),Object.setPrototypeOf(v,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)}v.alloc=function(O,N,$){return y(O,N,$)};function g(O){return m(O),l(O<0?0:B(O)|0)}v.allocUnsafe=function(O){return g(O)},v.allocUnsafeSlow=function(O){return g(O)};function S(O,N){if((typeof N!="string"||N==="")&&(N="utf8"),!v.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 R(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 k(N.buffer,N.byteOffset,N.byteLength)}return R(O)}function k(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,v.prototype),ee}function I(O){if(v.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):R(O);if(O.type==="Buffer"&&Array.isArray(O.data))return R(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),v.alloc(+O)}v.isBuffer=function(N){return N!=null&&N._isBuffer===!0&&N!==v.prototype},v.compare=function(N,$){if(ut(N,Uint8Array)&&(N=v.from(N,N.offset,N.byteLength)),ut($,Uint8Array)&&($=v.from($,$.offset,$.byteLength)),!v.isBuffer(N)||!v.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},v.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}},v.concat=function(N,$){if(!Array.isArray(N))throw new TypeError('"list" argument must be an Array of Buffers');if(N.length===0)return v.alloc(0);let ee;if($===void 0)for($=0,ee=0;ee<N.length;++ee)$+=N[ee].length;let re=v.allocUnsafe($),se=0;for(ee=0;ee<N.length;++ee){let ce=N[ee];if(ut(ce,Uint8Array))se+ce.length>re.length?(v.isBuffer(ce)||(ce=v.from(ce)),ce.copy(re,se)):Uint8Array.prototype.set.call(re,ce,se);else if(v.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(v.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}}v.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 t(this,N,$);case"utf8":case"utf-8":return c(this,N,$);case"ascii":return x(this,N,$);case"latin1":case"binary":return o(this,N,$);case"base64":return f(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}}v.prototype._isBuffer=!0;function K(O,N,$){let ee=O[N];O[N]=O[$],O[$]=ee}v.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)K(this,$,$+1);return this},v.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)K(this,$,$+3),K(this,$+1,$+2);return this},v.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)K(this,$,$+7),K(this,$+1,$+6),K(this,$+2,$+5),K(this,$+3,$+4);return this},v.prototype.toString=function(){let N=this.length;return N===0?"":arguments.length===0?c(this,0,N):q.apply(this,arguments)},v.prototype.toLocaleString=v.prototype.toString,v.prototype.equals=function(N){if(!v.isBuffer(N))throw new TypeError("Argument must be a Buffer");return this===N?!0:v.compare(this,N)===0},v.prototype.inspect=function(){let N="",$=e.INSPECT_MAX_BYTES;return N=this.toString("hex",0,$).replace(/(.{2})/g,"$1 ").trim(),this.length>$&&(N+=" ... "),"<Buffer "+N+">"},u&&(v.prototype[u]=v.prototype.inspect),v.prototype.compare=function(N,$,ee,re,se){if(ut(N,Uint8Array)&&(N=v.from(N,N.offset,N.byteLength)),!v.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 Be=0;Be<ye;++Be)if(be[Be]!==me[Be]){ce=be[Be],st=me[Be];break}return ce<st?-1:st<ce?1:0};function V(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=v.from(N,ee)),v.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,Be){return se===1?me[Be]:me.readUInt16BE(Be*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 Be=0;Be<st;Be++)if(ye(O,be+Be)!==ye(N,Be)){me=!1;break}if(me)return be}return-1}v.prototype.includes=function(N,$,ee){return this.indexOf(N,$,ee)!==-1},v.prototype.indexOf=function(N,$,ee){return V(this,N,$,ee,!0)},v.prototype.lastIndexOf=function(N,$,ee){return V(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 Y(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)}v.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 Y(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}},v.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function f(O,N,$){return N===0&&$===O.length?r.fromByteArray(O):r.fromByteArray(O.slice(N,$))}function c(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,Be;switch(st){case 1:se<128&&(ce=se);break;case 2:ye=O[re+1],(ye&192)===128&&(Be=(se&31)<<6|ye&63,Be>127&&(ce=Be));break;case 3:ye=O[re+1],be=O[re+2],(ye&192)===128&&(be&192)===128&&(Be=(se&15)<<12|(ye&63)<<6|be&63,Be>2047&&(Be<55296||Be>57343)&&(ce=Be));break;case 4:ye=O[re+1],be=O[re+2],me=O[re+3],(ye&192)===128&&(be&192)===128&&(me&192)===128&&(Be=(se&15)<<18|(ye&63)<<12|(be&63)<<6|me&63,Be>65535&&Be<1114112&&(ce=Be))}}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 p=4096;function _(O){let N=O.length;if(N<=p)return String.fromCharCode.apply(String,O);let $="",ee=0;for(;ee<N;)$+=String.fromCharCode.apply(String,O.slice(ee,ee+=p));return $}function x(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 t(O,N,$){let ee=O.length;(!N||N<0)&&(N=0),(!$||$<0||$>ee)&&($=ee);let re="";for(let se=N;se<$;++se)re+=Oe[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}v.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,v.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")}v.prototype.readUintLE=v.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},v.prototype.readUintBE=v.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},v.prototype.readUint8=v.prototype.readUInt8=function(N,$){return N=N>>>0,$||b(N,1,this.length),this[N]},v.prototype.readUint16LE=v.prototype.readUInt16LE=function(N,$){return N=N>>>0,$||b(N,2,this.length),this[N]|this[N+1]<<8},v.prototype.readUint16BE=v.prototype.readUInt16BE=function(N,$){return N=N>>>0,$||b(N,2,this.length),this[N]<<8|this[N+1]},v.prototype.readUint32LE=v.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},v.prototype.readUint32BE=v.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])},v.prototype.readBigUInt64LE=mt(function(N){N=N>>>0,Z(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))}),v.prototype.readBigUInt64BE=mt(function(N){N=N>>>0,Z(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)}),v.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},v.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},v.prototype.readInt8=function(N,$){return N=N>>>0,$||b(N,1,this.length),this[N]&128?(255-this[N]+1)*-1:this[N]},v.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},v.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},v.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},v.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]},v.prototype.readBigInt64LE=mt(function(N){N=N>>>0,Z(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)}),v.prototype.readBigInt64BE=mt(function(N){N=N>>>0,Z(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)}),v.prototype.readFloatLE=function(N,$){return N=N>>>0,$||b(N,4,this.length),n.read(this,N,!0,23,4)},v.prototype.readFloatBE=function(N,$){return N=N>>>0,$||b(N,4,this.length),n.read(this,N,!1,23,4)},v.prototype.readDoubleLE=function(N,$){return N=N>>>0,$||b(N,8,this.length),n.read(this,N,!0,52,8)},v.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(!v.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")}v.prototype.writeUintLE=v.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},v.prototype.writeUintBE=v.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},v.prototype.writeUint8=v.prototype.writeUInt8=function(N,$,ee){return N=+N,$=$>>>0,ee||M(this,N,$,1,255,0),this[$]=N&255,$+1},v.prototype.writeUint16LE=v.prototype.writeUInt16LE=function(N,$,ee){return N=+N,$=$>>>0,ee||M(this,N,$,2,65535,0),this[$]=N&255,this[$+1]=N>>>8,$+2},v.prototype.writeUint16BE=v.prototype.writeUInt16BE=function(N,$,ee){return N=+N,$=$>>>0,ee||M(this,N,$,2,65535,0),this[$]=N>>>8,this[$+1]=N&255,$+2},v.prototype.writeUint32LE=v.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},v.prototype.writeUint32BE=v.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 T(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}v.prototype.writeBigUInt64LE=mt(function(N,$=0){return T(this,N,$,BigInt(0),BigInt("0xffffffffffffffff"))}),v.prototype.writeBigUInt64BE=mt(function(N,$=0){return D(this,N,$,BigInt(0),BigInt("0xffffffffffffffff"))}),v.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},v.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},v.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},v.prototype.writeInt16LE=function(N,$,ee){return N=+N,$=$>>>0,ee||M(this,N,$,2,32767,-32768),this[$]=N&255,this[$+1]=N>>>8,$+2},v.prototype.writeInt16BE=function(N,$,ee){return N=+N,$=$>>>0,ee||M(this,N,$,2,32767,-32768),this[$]=N>>>8,this[$+1]=N&255,$+2},v.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},v.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},v.prototype.writeBigInt64LE=mt(function(N,$=0){return T(this,N,$,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),v.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}v.prototype.writeFloatLE=function(N,$,ee){return W(this,N,$,!0,ee)},v.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}v.prototype.writeDoubleLE=function(N,$,ee){return X(this,N,$,!0,ee)},v.prototype.writeDoubleBE=function(N,$,ee){return X(this,N,$,!1,ee)},v.prototype.copy=function(N,$,ee,re){if(!v.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},v.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"&&!v.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=v.isBuffer(N)?N:v.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 G={};function J(O,N,$){G[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}`}}}J("ERR_BUFFER_OUT_OF_BOUNDS",function(O){return O?`${O} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),J("ERR_INVALID_ARG_TYPE",function(O,N){return`The "${O}" argument must be of type number. Received type ${typeof N}`},TypeError),J("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,$){Z(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 G.ERR_OUT_OF_RANGE("value",st,O)}te(ee,re,se)}function Z(O,N){if(typeof O!="number")throw new G.ERR_INVALID_ARG_TYPE(N,"number",O)}function ie(O,N,$){throw Math.floor(O)!==O?(Z(O,$),new G.ERR_OUT_OF_RANGE($||"offset","an integer",O)):N<0?new G.ERR_BUFFER_OUT_OF_BOUNDS:new G.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 r.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 Oe=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")}}});function cn(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function Ga(e){return function r(n){return arguments.length===0||cn(n)?r:e.apply(this,arguments)}}function Cn(e){return function r(n,u){switch(arguments.length){case 0:return r;case 1:return cn(n)?r:Ga(function(a){return e(n,a)});default:return cn(n)&&cn(u)?r:cn(n)?Ga(function(a){return e(a,u)}):cn(u)?Ga(function(a){return e(n,a)}):e(n,u)}}}function uy(e,r){switch(e){case 0:return function(){return r.apply(this,arguments)};case 1:return function(n){return r.apply(this,arguments)};case 2:return function(n,u){return r.apply(this,arguments)};case 3:return function(n,u,a){return r.apply(this,arguments)};case 4:return function(n,u,a,d){return r.apply(this,arguments)};case 5:return function(n,u,a,d,l){return r.apply(this,arguments)};case 6:return function(n,u,a,d,l,v){return r.apply(this,arguments)};case 7:return function(n,u,a,d,l,v,w){return r.apply(this,arguments)};case 8:return function(n,u,a,d,l,v,w,m){return r.apply(this,arguments)};case 9:return function(n,u,a,d,l,v,w,m,y){return r.apply(this,arguments)};case 10:return function(n,u,a,d,l,v,w,m,y,g){return r.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function UF(e,r,n){return function(){for(var u=[],a=0,d=e,l=0,v=!1;l<r.length||a<arguments.length;){var w;l<r.length&&(!cn(r[l])||a>=arguments.length)?w=r[l]:(w=arguments[a],a+=1),u[l]=w,cn(w)?v=!0:d-=1,l+=1}return!v&&d<=0?n.apply(this,u):uy(Math.max(0,d),UF(e,u,n))}}var jye=Cn(function(e,r){return e===1?Ga(r):uy(e,UF(e,[],r))}),qF=jye;function L9(e){return function r(n,u,a){switch(arguments.length){case 0:return r;case 1:return cn(n)?r:Cn(function(d,l){return e(n,d,l)});case 2:return cn(n)&&cn(u)?r:cn(n)?Cn(function(d,l){return e(d,u,l)}):cn(u)?Cn(function(d,l){return e(n,d,l)}):Ga(function(d){return e(n,u,d)});default:return cn(n)&&cn(u)&&cn(a)?r:cn(n)&&cn(u)?Cn(function(d,l){return e(d,l,a)}):cn(n)&&cn(a)?Cn(function(d,l){return e(d,u,l)}):cn(u)&&cn(a)?Cn(function(d,l){return e(n,d,l)}):cn(n)?Ga(function(d){return e(d,u,a)}):cn(u)?Ga(function(d){return e(n,d,a)}):cn(a)?Ga(function(d){return e(n,u,d)}):e(n,u,a)}}}var D9=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function Fye(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function $9(e,r,n){return function(){if(arguments.length===0)return n();var u=arguments[arguments.length-1];if(!D9(u)){for(var a=0;a<e.length;){if(typeof u[e[a]]=="function")return u[e[a]].apply(u,Array.prototype.slice.call(arguments,0,-1));a+=1}if(Fye(u)){var d=r.apply(null,Array.prototype.slice.call(arguments,0,-1));return d(u)}}return n.apply(this,arguments)}}function zye(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var Jp={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}};function dF(e){for(var r=[],n;!(n=e.next()).done;)r.push(n.value);return r}function pF(e,r,n){for(var u=0,a=n.length;u<a;){if(e(r,n[u]))return!0;u+=1}return!1}function Hye(e){var r=String(e).match(/^function (\w*)/);return r==null?"":r[1]}function W6(e,r){return Object.prototype.hasOwnProperty.call(r,e)}function Kye(e,r){return e===r?e!==0||1/e===1/r:e!==e&&r!==r}var f9=typeof Object.is=="function"?Object.is:Kye,vF=Object.prototype.toString,Zye=function(){return vF.call(arguments)==="[object Arguments]"?function(e){return vF.call(e)==="[object Arguments]"}:function(e){return W6("callee",e)}}(),Wye=Zye,Gye=!{toString:null}.propertyIsEnumerable("toString"),mF=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],gF=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),Vye=function(e,r){for(var n=0;n<e.length;){if(e[n]===r)return!0;n+=1}return!1},Jye=Ga(typeof Object.keys=="function"&&!gF?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var r,n,u=[],a=gF&&Wye(e);for(r in e)W6(r,e)&&(!a||r!=="length")&&(u[u.length]=r);if(Gye)for(n=mF.length-1;n>=0;)r=mF[n],W6(r,e)&&!Vye(u,r)&&(u[u.length]=r),n-=1;return u}),cd=Jye,Yye=Ga(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}),yF=Yye;function bF(e,r,n,u){var a=dF(e),d=dF(r);function l(v,w){return U9(v,w,n.slice(),u.slice())}return!pF(function(v,w){return!pF(l,w,v)},d,a)}function U9(e,r,n,u){if(f9(e,r))return!0;var a=yF(e);if(a!==yF(r))return!1;if(typeof e["fantasy-land/equals"]=="function"||typeof r["fantasy-land/equals"]=="function")return typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](r)&&typeof r["fantasy-land/equals"]=="function"&&r["fantasy-land/equals"](e);if(typeof e.equals=="function"||typeof r.equals=="function")return typeof e.equals=="function"&&e.equals(r)&&typeof r.equals=="function"&&r.equals(e);switch(a){case"Arguments":case"Array":case"Object":if(typeof e.constructor=="function"&&Hye(e.constructor)==="Promise")return e===r;break;case"Boolean":case"Number":case"String":if(!(typeof e==typeof r&&f9(e.valueOf(),r.valueOf())))return!1;break;case"Date":if(!f9(e.valueOf(),r.valueOf()))return!1;break;case"Error":return e.name===r.name&&e.message===r.message;case"RegExp":if(!(e.source===r.source&&e.global===r.global&&e.ignoreCase===r.ignoreCase&&e.multiline===r.multiline&&e.sticky===r.sticky&&e.unicode===r.unicode))return!1;break}for(var d=n.length-1;d>=0;){if(n[d]===e)return u[d]===r;d-=1}switch(a){case"Map":return e.size!==r.size?!1:bF(e.entries(),r.entries(),n.concat([e]),u.concat([r]));case"Set":return e.size!==r.size?!1:bF(e.values(),r.values(),n.concat([e]),u.concat([r]));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=cd(e);if(l.length!==cd(r).length)return!1;var v=n.concat([e]),w=u.concat([r]);for(d=l.length-1;d>=0;){var m=l[d];if(!(W6(m,r)&&U9(r[m],e[m],v,w)))return!1;d-=1}return!0}var Xye=Cn(function(e,r){return U9(e,r,[],[])}),jF=Xye;function Qye(e,r,n){var u,a;if(typeof e.indexOf=="function")switch(typeof r){case"number":if(r===0){for(u=1/r;n<e.length;){if(a=e[n],a===0&&1/a===u)return n;n+=1}return-1}else if(r!==r){for(;n<e.length;){if(a=e[n],typeof a=="number"&&a!==a)return n;n+=1}return-1}return e.indexOf(r,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(r,n);case"object":if(r===null)return e.indexOf(r,n)}for(;n<e.length;){if(jF(e[n],r))return n;n+=1}return-1}function ebe(e,r){return Qye(r,e,0)>=0}function Gp(e,r){for(var n=0,u=r.length,a=Array(u);n<u;)a[n]=e(r[n]),n+=1;return a}function u9(e){var r=e.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'"'+r.replace(/"/g,'\\"')+'"'}var Fp=function(e){return(e<10?"0":"")+e},tbe=typeof Date.prototype.toISOString=="function"?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Fp(e.getUTCMonth()+1)+"-"+Fp(e.getUTCDate())+"T"+Fp(e.getUTCHours())+":"+Fp(e.getUTCMinutes())+":"+Fp(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"},rbe=tbe;function ibe(e){return function(){return!e.apply(this,arguments)}}function FF(e,r,n){for(var u=0,a=n.length;u<a;)r=e(r,n[u]),u+=1;return r}function nbe(e,r){for(var n=0,u=r.length,a=[];n<u;)e(r[n])&&(a[a.length]=r[n]),n+=1;return a}function abe(e){return Object.prototype.toString.call(e)==="[object Object]"}var obe=function(){function e(r,n){this.xf=n,this.f=r}return e.prototype["@@transducer/init"]=Jp.init,e.prototype["@@transducer/result"]=Jp.result,e.prototype["@@transducer/step"]=function(r,n){return this.f(n)?this.xf["@@transducer/step"](r,n):r},e}();function sbe(e){return function(r){return new obe(e,r)}}var fbe=Cn($9(["fantasy-land/filter","filter"],sbe,function(e,r){return abe(r)?FF(function(n,u){return e(r[u])&&(n[u]=r[u]),n},{},cd(r)):nbe(e,r)})),ube=fbe,hbe=Cn(function(e,r){return ube(ibe(e),r)}),lbe=hbe;function zF(e,r){var n=function(d){var l=r.concat([e]);return ebe(d,l)?"<Circular>":zF(d,l)},u=function(d,l){return Gp(function(v){return u9(v)+": "+n(d[v])},l.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+Gp(n,e).join(", ")+"))";case"[object Array]":return"["+Gp(n,e).concat(u(e,lbe(function(d){return/^\d+$/.test(d)},cd(e)))).join(", ")+"]";case"[object Boolean]":return typeof e=="object"?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):u9(rbe(e)))+")";case"[object Map]":return"new Map("+n(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return typeof e=="object"?"new Number("+n(e.valueOf())+")":1/e===-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+n(Array.from(e).sort())+")";case"[object String]":return typeof e=="object"?"new String("+n(e.valueOf())+")":u9(e);case"[object Undefined]":return"undefined";default:if(typeof e.toString=="function"){var a=e.toString();if(a!=="[object Object]")return a}return"{"+u(e,cd(e)).join(", ")+"}"}}var cbe=Ga(function(e){return zF(e,[])}),wF=cbe,dbe=Cn(function(e,r){if(e===r)return r;function n(v,w){if(v>w!=w>v)return w>v?w:v}var u=n(e,r);if(u!==void 0)return u;var a=n(typeof e,typeof r);if(a!==void 0)return a===typeof e?e:r;var d=wF(e),l=n(d,wF(r));return l!==void 0&&l===d?e:r}),pbe=dbe,vbe=function(){function e(r,n){this.xf=n,this.f=r}return e.prototype["@@transducer/init"]=Jp.init,e.prototype["@@transducer/result"]=Jp.result,e.prototype["@@transducer/step"]=function(r,n){return this.xf["@@transducer/step"](r,this.f(n))},e}(),mbe=function(e){return function(r){return new vbe(e,r)}},gbe=mbe,ybe=Cn($9(["fantasy-land/map","map"],gbe,function(e,r){switch(Object.prototype.toString.call(r)){case"[object Function]":return qF(r.length,function(){return e.call(this,r.apply(this,arguments))});case"[object Object]":return FF(function(n,u){return n[u]=e(r[u]),n},{},cd(r));default:return Gp(e,r)}})),bbe=ybe,HF=Number.isInteger||function(e){return e<<0===e};function KF(e){return Object.prototype.toString.call(e)==="[object String]"}var wbe=Cn(function(e,r){var n=e<0?r.length+e:e;return KF(r)?r.charAt(n):r[n]}),ZF=wbe,_be=Cn(function(e,r){if(r!=null)return HF(e)?ZF(e,r):r[e]}),hy=_be,Mbe=Cn(function(e,r){return bbe(hy(e),r)}),Sbe=Mbe,Ebe=Ga(function(e){return D9(e)?!0:!e||typeof e!="object"||KF(e)?!1:e.length===0?!0:e.length>0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1}),Abe=Ebe,_F=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function Rbe(e,r,n){return function(u,a,d){if(Abe(d))return e(u,a,d);if(d==null)return a;if(typeof d["fantasy-land/reduce"]=="function")return r(u,a,d,"fantasy-land/reduce");if(d[_F]!=null)return n(u,a,d[_F]());if(typeof d.next=="function")return n(u,a,d);if(typeof d.reduce=="function")return r(u,a,d,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function xbe(e,r,n){for(var u=0,a=n.length;u<a;){if(r=e["@@transducer/step"](r,n[u]),r&&r["@@transducer/reduced"]){r=r["@@transducer/value"];break}u+=1}return e["@@transducer/result"](r)}var Tbe=Cn(function(e,r){return uy(e.length,function(){return e.apply(r,arguments)})}),kbe=Tbe;function Ibe(e,r,n){for(var u=n.next();!u.done;){if(r=e["@@transducer/step"](r,u.value),r&&r["@@transducer/reduced"]){r=r["@@transducer/value"];break}u=n.next()}return e["@@transducer/result"](r)}function Bbe(e,r,n,u){return e["@@transducer/result"](n[u](kbe(e["@@transducer/step"],e),r))}var Obe=Rbe(xbe,Bbe,Ibe),Pbe=Obe,Nbe=function(){function e(r){this.f=r}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(r){return r},e.prototype["@@transducer/step"]=function(r,n){return this.f(r,n)},e}();function Cbe(e){return new Nbe(e)}var Lbe=L9(function(e,r,n){return Pbe(typeof e=="function"?Cbe(e):e,r,n)}),WF=Lbe;function Dbe(e,r){return function(){return r.call(this,e.apply(this,arguments))}}function GF(e,r){return function(){var n=arguments.length;if(n===0)return r();var u=arguments[n-1];return D9(u)||typeof u[e]!="function"?r.apply(this,arguments):u[e].apply(u,Array.prototype.slice.call(arguments,0,n-1))}}var $be=L9(GF("slice",function(e,r,n){return Array.prototype.slice.call(n,e,r)})),Ube=$be,qbe=Ga(GF("tail",Ube(1,1/0))),jbe=qbe;function VF(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return uy(arguments[0].length,WF(Dbe,arguments[0],jbe(arguments)))}var Fbe=Cn(function(e,r){return qF(WF(pbe,0,Sbe("length",r)),function(){var n=arguments,u=this;return e.apply(u,Gp(function(a){return a.apply(u,n)},r))})}),zbe=Fbe,Hbe=Cn(function(e,r){return r==null||r!==r?e:r}),m9=Hbe,Kbe=function(){function e(r,n){this.xf=n,this.f=r,this.found=!1}return e.prototype["@@transducer/init"]=Jp.init,e.prototype["@@transducer/result"]=function(r){return this.found||(r=this.xf["@@transducer/step"](r,void 0)),this.xf["@@transducer/result"](r)},e.prototype["@@transducer/step"]=function(r,n){return this.f(n)&&(this.found=!0,r=zye(this.xf["@@transducer/step"](r,n))),r},e}();function Zbe(e){return function(r){return new Kbe(e,r)}}var Wbe=Cn($9(["find"],Zbe,function(e,r){for(var n=0,u=r.length;n<u;){if(e(r[n]))return r[n];n+=1}})),Gbe=Wbe,Vbe=Ga(function(e){return zbe(function(){return Array.prototype.slice.call(arguments,0)},e)}),Jbe=Vbe,Ybe=Cn(function(e,r){return e.map(function(n){for(var u=r,a=0,d;a<n.length;){if(u==null)return;d=n[a],u=HF(d)?ZF(d,u):u[d],a+=1}return u})}),Xbe=Ybe,Qbe=Cn(function(e,r){return Xbe([e],r)[0]}),JF=Qbe,e3e=L9(function(e,r,n){return jF(e,hy(r,n))}),t3e=e3e,G6=class extends Error{name="InvalidSchedulerLocation"},r3e=class extends Error{name="SchedulerTagNotFound"},i3e=class extends Error{name="TransactionNotFound"},n3e="Url",a3e="Time-To-Live",o3e="Scheduler",g9=e=>VF(m9([]),Gbe(t3e(e,"name")),m9({}),hy("value")),YF=e=>VF(r=>{if(!r)throw new i3e(e);return r},hy("tags"),m9([]));function XF({fetch:e,GRAPHQL_URL:r}){return async({query:n,variables:u})=>e(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:n,variables:u})}).then(a=>a.json())}function s3e({fetch:e,GRAPHQL_URL:r}){let n=XF({fetch:e,GRAPHQL_URL:r}),u=QF({fetch:e,GRAPHQL_URL:r}),a=`
|
|
139
|
+
${JSON.stringify(bt.from(n))},${JSON.stringify(bt.from(u))},${d} => ${JSON.stringify(v)}`;return fie(l,w)}si.debug=fie});var z3=Dt(Uo=>{"use strict";Te();Ie();ke();var wIe=Uo&&Uo.__createBinding||(Object.create?function(e,r,n,u){u===void 0&&(u=n);var a=Object.getOwnPropertyDescriptor(r,n);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,u,a)}:function(e,r,n,u){u===void 0&&(u=n),e[u]=r[n]}),_Ie=Uo&&Uo.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),MIe=Uo&&Uo.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&wIe(r,e,n);return _Ie(r,e),r},SIe=Uo&&Uo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Uo,"__esModule",{value:!0});Uo.Tag=void 0;var ra=MIe(hh()),EIe=SIe(nie()),AIe=RT(),F3=class{get(r,n){if(!Object.getOwnPropertyNames(this).includes(r))throw new Error(`Field "${r}" is not a property of the Arweave Transaction class.`);if(this[r]instanceof Uint8Array)return n&&n.decode&&n.string?ra.bufferToString(this[r]):n&&n.decode&&!n.string?this[r]:ra.bufferTob64Url(this[r]);if(this[r]instanceof Array){if(n?.decode!==void 0||n?.string!==void 0)throw r==="tags"&&console.warn(`Did you mean to use 'transaction["tags"]' ?`),new Error("Cannot decode or stringify an array.");return this[r]}return n&&n.decode==!0?n&&n.string?ra.b64UrlToString(this[r]):ra.b64UrlToBuffer(this[r]):this[r]}},Ov=class extends F3{name;value;constructor(r,n,u=!1){super(),this.name=r,this.value=n}};Uo.Tag=Ov;var xT=class extends F3{format=2;id="";last_tx="";owner="";tags=[];target="";quantity="0";data_size="0";data=new Uint8Array;data_root="";reward="0";signature="";chunks;constructor(r={}){super(),Object.assign(this,r),typeof this.data=="string"&&(this.data=ra.b64UrlToBuffer(this.data)),r.tags&&(this.tags=r.tags.map(n=>new Ov(n.name,n.value)))}addTag(r,n){this.tags.push(new Ov(ra.stringToB64Url(r),ra.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:ra.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(r){this.owner=r}setSignature({id:r,owner:n,reward:u,tags:a,signature:d}){this.id=r,this.owner=n,u&&(this.reward=u),a&&(this.tags=a),this.signature=d}async prepareChunks(r){!this.chunks&&r.byteLength>0&&(this.chunks=await(0,AIe.generateTransactionChunks)(r),this.data_root=ra.bufferTob64Url(this.chunks.data_root)),!this.chunks&&r.byteLength===0&&(this.chunks={chunks:[],data_root:new Uint8Array,proofs:[]},this.data_root="")}getChunk(r,n){if(!this.chunks)throw new Error("Chunks have not been prepared");let u=this.chunks.proofs[r],a=this.chunks.chunks[r];return{data_root:this.data_root,data_size:this.data_size,data_path:ra.bufferTob64Url(u.proof),offset:u.offset.toString(),chunk:ra.bufferTob64Url(n.slice(a.minByteRange,a.maxByteRange))}}async getSignatureData(){switch(this.format){case 1:let r=this.tags.reduce((u,a)=>ra.concatBuffers([u,a.get("name",{decode:!0,string:!1}),a.get("value",{decode:!0,string:!1})]),new Uint8Array);return ra.concatBuffers([this.get("owner",{decode:!0,string:!1}),this.get("target",{decode:!0,string:!1}),this.get("data",{decode:!0,string:!1}),ra.stringToBuffer(this.quantity),ra.stringToBuffer(this.reward),this.get("last_tx",{decode:!0,string:!1}),r]);case 2:this.data_root||await this.prepareChunks(this.data);let n=this.tags.map(u=>[u.get("name",{decode:!0,string:!1}),u.get("value",{decode:!0,string:!1})]);return await(0,EIe.default)([ra.stringToBuffer(this.format.toString()),this.get("owner",{decode:!0,string:!1}),this.get("target",{decode:!0,string:!1}),ra.stringToBuffer(this.quantity),ra.stringToBuffer(this.reward),this.get("last_tx",{decode:!0,string:!1}),n,ra.stringToBuffer(this.data_size),this.get("data_root",{decode:!0,string:!1})]);default:throw new Error(`Unexpected transaction format: ${this.format}`)}}};Uo.default=xT});var cie=Dt(qs=>{"use strict";Te();Ie();ke();var RIe=qs&&qs.__createBinding||(Object.create?function(e,r,n,u){u===void 0&&(u=n);var a=Object.getOwnPropertyDescriptor(r,n);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,u,a)}:function(e,r,n,u){u===void 0&&(u=n),e[u]=r[n]}),xIe=qs&&qs.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),TIe=qs&&qs.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&RIe(r,e,n);return xIe(r,e),r},kIe=qs&&qs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qs,"__esModule",{value:!0});qs.TransactionUploader=void 0;var uie=kIe(z3()),IIe=TIe(hh()),TT=xv(),BIe=RT(),hie=1,OIe=["invalid_json","chunk_too_big","data_path_too_big","offset_too_big","data_size_too_big","chunk_proof_ratio_not_attractive","invalid_proof"],lie=1e3*40,kT=class e{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(r,n){if(this.api=r,!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 uie.default(Object.assign({},n,{data:new Uint8Array(0)}))}async uploadChunk(r){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+lie-Date.now(),lie);if(n>0&&(n=n-n*Math.random()*.3,await new Promise(l=>setTimeout(l,n))),this.lastResponseError="",!this.txPosted){await this.postTransaction();return}r&&(this.chunkIndex=r);let u=this.transaction.getChunk(r||this.chunkIndex,this.data);if(!await(0,BIe.validatePath)(this.transaction.chunks.data_root,parseInt(u.offset),0,parseInt(u.data_size),IIe.b64UrlToBuffer(u.data_path)))throw new Error(`Unable to validate chunk ${this.chunkIndex}`);let d=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=d.status,this.lastResponseStatus==200)this.chunkIndex++;else if(this.lastResponseError=(0,TT.getError)(d),OIe.includes(this.lastResponseError))throw new Error(`Fatal error uploading chunk ${this.chunkIndex}: ${this.lastResponseError}`)}static async fromSerialized(r,n,u){if(!n||typeof n.chunkIndex!="number"||typeof n.transaction!="object")throw new Error("Serialized object does not match expected format.");var a=new uie.default(n.transaction);a.chunks||await a.prepareChunks(u);let d=new e(r,a);if(d.chunkIndex=n.chunkIndex,d.lastRequestTimeEnd=n.lastRequestTimeEnd,d.lastResponseError=n.lastResponseError,d.lastResponseStatus=n.lastResponseStatus,d.txPosted=n.txPosted,d.data=u,d.transaction.data_root!==n.transaction.data_root)throw new Error("Data mismatch: Uploader doesn't match provided data.");return d}static async fromTransactionId(r,n){let u=await r.get(`tx/${n}`);if(u.status!==200)throw new Error(`Tx ${n} not found: ${u.status}`);let a=u.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<=hie){this.transaction.data=this.data;let u=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=u.status,this.transaction.data=new Uint8Array(0),u.status>=200&&u.status<300){this.txPosted=!0,this.chunkIndex=hie;return}throw this.lastResponseError=(0,TT.getError)(u),new Error(`Unable to upload transaction: ${u.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,TT.getError)(n),new Error(`Unable to upload transaction: ${n.status}, ${this.lastResponseError}`);this.txPosted=!0}};qs.TransactionUploader=kT});var pie=Dt(Pf=>{"use strict";Te();Ie();ke();var PIe=Pf&&Pf.__createBinding||(Object.create?function(e,r,n,u){u===void 0&&(u=n);var a=Object.getOwnPropertyDescriptor(r,n);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,u,a)}:function(e,r,n,u){u===void 0&&(u=n),e[u]=r[n]}),NIe=Pf&&Pf.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),CIe=Pf&&Pf.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&PIe(r,e,n);return NIe(r,e),r},die=Pf&&Pf.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pf,"__esModule",{value:!0});var IT=die(xv()),lh=die(z3()),Pv=CIe(hh()),BT=cie();s0();var OT=class{api;crypto;chunks;constructor(r,n,u){this.api=r,this.crypto=n,this.chunks=u}async getTransactionAnchor(){let r=await this.api.get("tx_anchor");if(!r.data.match(/^[a-z0-9_-]{43,}/i)||!r.ok)throw new Error(`Could not getTransactionAnchor. Received: ${r.data}. Status: ${r.status}, ${r.statusText}`);return r.data}async getPrice(r,n){let u=n?`price/${r}/${n}`:`price/${r}`,a=await this.api.get(u);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(r){let n=await this.api.get(`tx/${r}`);if(n.status==200){let u=parseInt(n.data.data_size);if(n.data.format>=2&&u>0&&u<=1024*1024*12){let a=await this.getData(r);return new lh.default({...n.data,data:a})}return new lh.default({...n.data,format:n.data.format||1})}throw n.status==404?new IT.default("TX_NOT_FOUND"):n.status==410?new IT.default("TX_FAILED"):new IT.default("TX_INVALID")}fromRaw(r){return new lh.default(r)}async search(r,n){return this.api.post("arql",{op:"equals",expr1:r,expr2:n}).then(u=>u.data?u.data:[])}getStatus(r){return this.api.get(`tx/${r}/status`).then(n=>n.status==200?{status:200,confirmed:n.data}:{status:n.status,confirmed:null})}async getData(r,n){let u;try{u=await this.chunks.downloadChunkedData(r)}catch(a){console.error(`Error while trying to download chunked data for ${r}`),console.error(a)}if(!u){console.warn(`Falling back to gateway cache for ${r}`);try{let{data:a,ok:d,status:l,statusText:v}=await this.api.get(`/${r}`,{responseType:"arraybuffer"});if(!d)throw new Error("Bad http status code",{cause:{status:l,statusText:v}});u=a}catch(a){console.error(`Error while trying to download contiguous data from gateway cache for ${r}`),console.error(a)}}if(!u)throw new Error(`${r} data was not found!`);return n&&n.decode&&!n.string?u:n&&n.decode&&n.string?Pv.bufferToString(u):Pv.bufferTob64Url(u)}async sign(r,n,u){let d=typeof n=="object"&&(v=>{let w=!0;return["n","e","d","p","q","dp","dq","qi"].map(m=>!(m in v)&&(w=!1)),w})(n),l=typeof arweaveWallet=="object";if(!d&&!l)throw new Error("No valid JWK or external wallet found to sign transaction.");if(d){r.setOwner(n.n);let v=await r.getSignatureData(),w=await this.crypto.sign(n,v,u),m=await this.crypto.hash(w);r.setSignature({id:Pv.bufferTob64Url(m),owner:n.n,signature:Pv.bufferTob64Url(w)})}else if(l){try{(await arweaveWallet.getPermissions()).includes("SIGN_TRANSACTION")||await arweaveWallet.connect(["SIGN_TRANSACTION"])}catch{}let v=await arweaveWallet.sign(r,u);r.setSignature({id:v.id,owner:v.owner,reward:v.reward,tags:v.tags,signature:v.signature})}else throw new Error("An error occurred while signing. Check wallet is valid")}async verify(r){let n=await r.getSignatureData(),u=r.get("signature",{decode:!0,string:!1}),a=Pv.bufferTob64Url(await this.crypto.hash(u));if(r.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(r.owner,n,u)}async post(r){if(typeof r=="string"?r=new lh.default(JSON.parse(r)):typeof r.readInt32BE=="function"?r=new lh.default(JSON.parse(r.toString())):typeof r=="object"&&!(r instanceof lh.default)&&(r=new lh.default(r)),!(r instanceof lh.default))throw new Error("Must be Transaction object");r.chunks||await r.prepareChunks(r.data);let n=await this.getUploader(r,r.data);try{for(;!n.isComplete;)await n.uploadChunk()}catch(u){if(n.lastResponseStatus>0)return{status:n.lastResponseStatus,statusText:n.lastResponseError,data:{error:n.lastResponseError}};throw u}return{status:200,statusText:"OK",data:{}}}async getUploader(r,n){let u;if(n instanceof ArrayBuffer&&(n=new Uint8Array(n)),r instanceof lh.default){if(n||(n=r.data),!(n instanceof Uint8Array))throw new Error("Data format is invalid");r.chunks||await r.prepareChunks(n),u=new BT.TransactionUploader(this.api,r),(!u.data||u.data.length===0)&&(u.data=n)}else{if(typeof r=="string"&&(r=await BT.TransactionUploader.fromTransactionId(this.api,r)),!n||!(n instanceof Uint8Array))throw new Error("Must provide data when resuming upload");u=await BT.TransactionUploader.fromSerialized(this.api,r,n)}return u}async*upload(r,n){let u=await this.getUploader(r,n);for(;!u.isComplete;)await u.uploadChunk(),yield u;return u}};Pf.default=OT});var mie=Dt(ch=>{"use strict";Te();Ie();ke();var LIe=ch&&ch.__createBinding||(Object.create?function(e,r,n,u){u===void 0&&(u=n);var a=Object.getOwnPropertyDescriptor(r,n);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,u,a)}:function(e,r,n,u){u===void 0&&(u=n),e[u]=r[n]}),DIe=ch&&ch.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),$Ie=ch&&ch.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&LIe(r,e,n);return DIe(r,e),r};Object.defineProperty(ch,"__esModule",{value:!0});var vie=$Ie(hh());s0();var PT=class{api;crypto;constructor(r,n){this.api=r,this.crypto=n}getBalance(r){return this.api.get(`wallet/${r}/balance`).then(n=>n.data)}getLastTransactionID(r){return this.api.get(`wallet/${r}/last_tx`).then(n=>n.data)}generate(){return this.crypto.generateJWK()}async jwkToAddress(r){return!r||r==="use_wallet"?this.getAddress():this.getAddress(r)}async getAddress(r){if(!r||r==="use_wallet"){try{await arweaveWallet.connect(["ACCESS_ADDRESS"])}catch{}return arweaveWallet.getActiveAddress()}else return this.ownerToAddress(r.n)}async ownerToAddress(r){return vie.bufferTob64Url(await this.crypto.hash(vie.b64UrlToBuffer(r)))}};ch.default=PT});var yie=Dt(Nf=>{"use strict";Te();Ie();ke();var UIe=Nf&&Nf.__createBinding||(Object.create?function(e,r,n,u){u===void 0&&(u=n);var a=Object.getOwnPropertyDescriptor(r,n);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,u,a)}:function(e,r,n,u){u===void 0&&(u=n),e[u]=r[n]}),qIe=Nf&&Nf.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),jIe=Nf&&Nf.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&UIe(r,e,n);return qIe(r,e),r};Object.defineProperty(Nf,"__esModule",{value:!0});Nf.SiloResource=void 0;var gie=jIe(hh()),NT=class{api;crypto;transactions;constructor(r,n,u){this.api=r,this.crypto=n,this.transactions=u}async get(r){if(!r)throw new Error("No Silo URI specified");let n=await this.parseUri(r),u=await this.transactions.search("Silo-Name",n.getAccessKey());if(u.length==0)throw new Error(`No data could be found for the Silo URI: ${r}`);let a=await this.transactions.get(u[0]);if(!a)throw new Error(`No data could be found for the Silo URI: ${r}`);let d=a.get("data",{decode:!0,string:!1});return this.crypto.decrypt(d,n.getEncryptionKey())}async readTransactionData(r,n){if(!n)throw new Error("No Silo URI specified");let u=await this.parseUri(n),a=r.get("data",{decode:!0,string:!1});return this.crypto.decrypt(a,u.getEncryptionKey())}async parseUri(r){let n=r.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 u=n[1],a=Math.pow(2,parseInt(n[2])),d=await this.hash(gie.stringToBuffer(u),a),l=gie.bufferTob64(d.slice(0,15)),v=await this.hash(d.slice(16,31),1);return new H3(r,l,v)}async hash(r,n){let u=await this.crypto.hash(r);for(let a=0;a<n-1;a++)u=await this.crypto.hash(u);return u}};Nf.default=NT;var H3=class{uri;accessKey;encryptionKey;constructor(r,n,u){this.uri=r,this.accessKey=n,this.encryptionKey=u}getUri(){return this.uri}getAccessKey(){return this.accessKey}getEncryptionKey(){return this.encryptionKey}};Nf.SiloResource=H3});var wie=Dt(dh=>{"use strict";Te();Ie();ke();var FIe=dh&&dh.__createBinding||(Object.create?function(e,r,n,u){u===void 0&&(u=n);var a=Object.getOwnPropertyDescriptor(r,n);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,u,a)}:function(e,r,n,u){u===void 0&&(u=n),e[u]=r[n]}),zIe=dh&&dh.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),HIe=dh&&dh.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&FIe(r,e,n);return zIe(r,e),r};Object.defineProperty(dh,"__esModule",{value:!0});var bie=xv(),KIe=HIe(hh()),CT=class{api;constructor(r){this.api=r}async getTransactionOffset(r){let n=await this.api.get(`tx/${r}/offset`);if(n.status===200)return n.data;throw new Error(`Unable to get transaction offset: ${(0,bie.getError)(n)}`)}async getChunk(r){let n=await this.api.get(`chunk/${r}`);if(n.status===200)return n.data;throw new Error(`Unable to get chunk: ${(0,bie.getError)(n)}`)}async getChunkData(r){let n=await this.getChunk(r);return KIe.b64UrlToBuffer(n.chunk)}firstChunkOffset(r){return parseInt(r.offset)-parseInt(r.size)+1}async downloadChunkedData(r){let n=await this.getTransactionOffset(r),u=parseInt(n.size),d=parseInt(n.offset)-u+1,l=new Uint8Array(u),v=0;for(;v<u;){this.api.config.logging&&console.log(`[chunk] ${v}/${u}`);let w;try{w=await this.getChunkData(d+v)}catch{console.error(`[chunk] Failed to fetch chunk at offset ${d+v}`),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,v),v+=w.length;else throw new Error(`Couldn't complete data download at ${v}/${u}`)}return l}};dh.default=CT});var Mie=Dt(Nv=>{"use strict";Te();Ie();ke();var ZIe=Nv&&Nv.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Nv,"__esModule",{value:!0});var _ie=ZIe(xv());s0();var LT=class e{api;network;static HASH_ENDPOINT="block/hash/";static HEIGHT_ENDPOINT="block/height/";constructor(r,n){this.api=r,this.network=n}async get(r){let n=await this.api.get(`${e.HASH_ENDPOINT}${r}`);if(n.status===200)return n.data;throw n.status===404?new _ie.default("BLOCK_NOT_FOUND"):new Error(`Error while loading block data: ${n}`)}async getByHeight(r){let n=await this.api.get(`${e.HEIGHT_ENDPOINT}${r}`);if(n.status===200)return n.data;throw n.status===404?new _ie.default("BLOCK_NOT_FOUND"):new Error(`Error while loading block data: ${n}`)}async getCurrent(){let{current:r}=await this.network.getInfo();return await this.get(r)}};Nv.default=LT});var U3=Dt(Cf=>{"use strict";Te();Ie();ke();var WIe=Cf&&Cf.__createBinding||(Object.create?function(e,r,n,u){u===void 0&&(u=n);var a=Object.getOwnPropertyDescriptor(r,n);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,u,a)}:function(e,r,n,u){u===void 0&&(u=n),e[u]=r[n]}),GIe=Cf&&Cf.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),VIe=Cf&&Cf.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&WIe(r,e,n);return GIe(r,e),r},wu=Cf&&Cf.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Cf,"__esModule",{value:!0});var JIe=wu(JH()),YIe=wu(YH()),XIe=wu(Zre()),QIe=wu(Wre()),eBe=wu(pie()),tBe=wu(mie()),Sie=wu(z3()),Cv=VIe(hh()),rBe=wu(yie()),iBe=wu(wie()),nBe=wu(Mie()),DT=class e{api;wallets;transactions;network;blocks;ar;silo;chunks;static init;static crypto=new XIe.default;static utils=Cv;constructor(r){this.api=new YIe.default(r),this.wallets=new tBe.default(this.api,e.crypto),this.chunks=new iBe.default(this.api),this.transactions=new eBe.default(this.api,e.crypto,this.chunks),this.silo=new rBe.default(this.api,this.crypto,this.transactions),this.network=new QIe.default(this.api),this.blocks=new nBe.default(this.api,this.network),this.ar=new JIe.default}get crypto(){return e.crypto}get utils(){return e.utils}getConfig(){return{api:this.api.getConfig(),crypto:null}}async createTransaction(r,n){let u={};if(Object.assign(u,r),!r.data&&!(r.target&&r.quantity))throw new Error("A new Arweave transaction must have a 'data' value, or 'target' and 'quantity' values.");if(r.owner==null&&n&&n!=="use_wallet"&&(u.owner=n.n),r.last_tx==null&&(u.last_tx=await this.transactions.getTransactionAnchor()),typeof r.data=="string"&&(r.data=Cv.stringToBuffer(r.data)),r.data instanceof ArrayBuffer&&(r.data=new Uint8Array(r.data)),r.data&&!(r.data instanceof Uint8Array))throw new Error("Expected data to be a string, Uint8Array or ArrayBuffer");if(r.reward==null){let d=r.data?r.data.byteLength:0;u.reward=await this.transactions.getPrice(d,u.target)}u.data_root="",u.data_size=r.data?r.data.byteLength.toString():"0",u.data=r.data||new Uint8Array(0);let a=new Sie.default(u);return await a.getSignatureData(),a}async createSiloTransaction(r,n,u){let a={};if(Object.assign(a,r),!r.data)throw new Error("Silo transactions must have a 'data' value");if(!u)throw new Error("No Silo URI specified.");if(r.target||r.quantity)throw new Error("Silo transactions can only be used for storing data, sending AR to other wallets isn't supported.");if(r.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}r.last_tx==null&&(a.last_tx=await this.transactions.getTransactionAnchor());let d=await this.silo.parseUri(u);if(typeof r.data=="string"){let v=await this.crypto.encrypt(Cv.stringToBuffer(r.data),d.getEncryptionKey());a.reward=await this.transactions.getPrice(v.byteLength),a.data=Cv.bufferTob64Url(v)}if(r.data instanceof Uint8Array){let v=await this.crypto.encrypt(r.data,d.getEncryptionKey());a.reward=await this.transactions.getPrice(v.byteLength),a.data=Cv.bufferTob64Url(v)}let l=new Sie.default(a);return l.addTag("Silo-Name",d.getAccessKey()),l.addTag("Silo-Version","0.1.0"),l}arql(r){return this.api.post("/arql",r).then(n=>n.data||[])}};Cf.default=DT});var Aie=Dt((UT,Eie)=>{"use strict";Te();Ie();ke();var aBe=UT&&UT.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},$T=aBe(U3());$T.default.init=function(e={}){return new $T.default(e)};Eie.exports=$T.default});Te();Ie();ke();var Tie=Sl(o4(),1);Te();Ie();ke();Te();Ie();ke();var tae=["gateway","gateways","prescribedObservers","record","auction","balance","epoch","priceForInteraction"],rae=["delegateStake","decreaseDelegateStake","joinNetwork","increaseOperatorStake","decreaseOperatorStake","updateGatewaySettings","saveObservations","extendRecord","buyRecord","increaseUndernameCount","transfer"],RBe=[...tae,...rae],xBe={GATEWAY:"gateway",GATEWAYS:"gateways",PRESCRIBED_OBSERVERS:"prescribedObservers",DELEGATE_STAKE:"delegateStake",DECREASE_DELEGATE_STAKE:"decreaseDelegateStake",JOIN_NETWORK:"joinNetwork",INCREASE_OPERATOR_STAKE:"increaseOperatorStake",DECREASE_OPERATOR_STAKE:"decreaseOperatorStake",UPDATE_GATEWAY_SETTINGS:"updateGatewaySettings",SAVE_OBSERVATIONS:"saveObservations",EXTEND_RECORD:"extendRecord",INCREASE_UNDERNAME_COUNT:"increaseUndernameCount",RECORD:"record",AUCTION:"auction",TRANSFER:"transfer",BALANCE:"balance",PRICE_FOR_INTERACTION:"priceForInteraction",EPOCH:"epoch",BUY_RECORD:"buyRecord"},iae=(n=>(n.IO="IO",n.MIO="mIO",n))(iae||{}),TBe={TRANSFER:"transfer",SET_CONTROLLER:"setController",REMOVE_CONTROLLER:"removeController",SET_NAME:"setName",SET_TICKER:"setTicker",SET_RECORD:"setRecord",REMOVE_RECORD:"removeRecord",BALANCE:"balance",EVOLVE:"evolve"};Te();Ie();ke();Te();Ie();ke();Te();Ie();ke();var lO=new RegExp("^[a-zA-Z0-9_-]{43}$"),LBe=new RegExp("^(?:(?!-)[A-Za-z0-9-]{1,63}(?<!-)\\.)+[A-Za-z]{1,63}$"),DBe=new RegExp("^[0-9]{12},[0-9]{13},[a-fA-F0-9]{64}$"),$Be=gt.env.ARNS_REGISTRY_TX??"bLAgYxAdX2Ry-nt6aH2ixgvJXbpsEYm28NgJgyqfs-U",UBe="_NctcA2sRy1-J4OmIQZbYFPM17piNcbdBPH2ncX2RL8",nae="GaQrvEMKBpkjofgnBi_B3IgIDmY_XYelVLB6GcRGrHc",qBe=nae,_c="agYcCFJtrMG6cqMuZfskIkFTGvUPddICmtQSBIoPdiA",s4=1e6,cO="cbn0KKrBZH7hdNkNokuXLtGryrWM--PjSTBqIzw9Kkk",dO="3OlGzE5mrsN2GsxCYM0Tae1KzWepGOr5a94deOWmApM",pO="_GQ33BkPtZrqxA84vM8Zk-N2aO0toNNu_C-l-rawrBA";var f4=class e{constructor(r){this.positiveFiniteInteger=r;if(!Number.isFinite(this.positiveFiniteInteger)||!Number.isInteger(this.positiveFiniteInteger)||this.positiveFiniteInteger<0)throw new Error(`Number must be a non-negative integer value! ${r}`)}[Symbol.toPrimitive](r){return r==="string"&&this.toString(),this.positiveFiniteInteger}plus(r){return new e(this.positiveFiniteInteger+r.positiveFiniteInteger)}minus(r){return new e(this.positiveFiniteInteger-r.positiveFiniteInteger)}isGreaterThan(r){return this.positiveFiniteInteger>r.positiveFiniteInteger}isGreaterThanOrEqualTo(r){return this.positiveFiniteInteger>=r.positiveFiniteInteger}isLessThan(r){return this.positiveFiniteInteger<r.positiveFiniteInteger}isLessThanOrEqualTo(r){return this.positiveFiniteInteger<=r.positiveFiniteInteger}toString(){return`${this.positiveFiniteInteger}`}valueOf(){return this.positiveFiniteInteger}toJSON(){return this.positiveFiniteInteger}equals(r){return this.positiveFiniteInteger===r.positiveFiniteInteger}},u4=class{value;constructor(r){if(!Number.isFinite(r)||r<0)throw new Error("IOToken must be a non-negative finite number");this.value=+r.toFixed(6)}valueOf(){return this.value}toMIO(){return new h4(Math.floor(this.value*s4))}toString(){return`${this.value}`}},h4=class e extends f4{constructor(r){super(r)}multiply(r){let n=Math.floor(this.valueOf()*r.valueOf());return new e(n)}divide(r){if(r.valueOf()===0)throw new Error("Cannot divide by zero");let n=Math.floor(this.valueOf()/r.valueOf());return new e(n)}plus(r){let n=super.plus(r);return new e(n.valueOf())}minus(r){let n=super.minus(r);return new e(n.valueOf())}toIO(){return new u4(this.valueOf()/s4)}};Te();Ie();ke();Te();Ie();ke();var vO=e=>lO.test(e);function YBe(e){return e!==void 0&&!isNaN(parseInt(e.toString()))}function Mc(e){return"process"in e}function Sc(e){return"processId"in e&&typeof e.processId=="string"&&vO(e.processId)===!0}function iOe(e){return e.type==="lease"&&e.endTimestamp!==void 0}Te();Ie();ke();Te();Ie();ke();var Gs=class extends Error{constructor(r){super(r),this.name=this.constructor.name}},mO=class extends Gs{},gO=class extends Gs{},yO=class extends Gs{constructor(r,n){super(`Failed request: ${r}: ${n}`)}},bO=class extends Gs{},$m=class extends Gs{},wO=class extends Gs{constructor(){super("Invalid signer. Please provide a valid signer to interact with the contract.")}},Eh=class extends Gs{constructor(){super("Invalid contract configuration")}},_O=class extends Gs{constructor(){super("Invalid process configuration")}},MO=class extends Gs{};Te();Ie();ke();var ff=Sl(xj(),1);Te();Ie();ke();var id="2.0.0-alpha.5";var nd=class e{logger;silent=!1;static default=new e;constructor({level:r="info"}={}){if(r==="none"){this.silent=!0;return}this.logger=(0,ff.createLogger)({level:r,silent:this.silent,defaultMeta:{name:"ar-io-sdk",version:id},format:ff.format.combine(ff.format.timestamp(),ff.format.json())}),typeof window<"u"?this.logger=console:this.logger.add(new ff.transports.Console({format:ff.format.combine(ff.format.timestamp(),ff.format.json())}))}info(r,...n){this.silent||this.logger.info(r,...n)}warn(r,...n){this.silent||this.logger.warn(r,...n)}error(r,...n){this.silent||this.logger.error(r,...n)}debug(r,...n){this.silent||this.logger.debug(r,...n)}setLogLevel(r){"silent"in this.logger&&(this.logger.silent=r==="none"),"level"in this.logger&&(this.logger.level=r)}};Te();Ie();ke();var Ip=class{static init({signer:r,...n}){if(Mc(n)||Sc(n))return r?new R7({signer:r,...n}):new O6(n);throw new Eh}},O6=class{process;constructor(r){if(Mc(r))this.process=r.process;else if(Sc(r))this.process=new is({processId:r.processId});else throw new Eh}async getState(){let r=[{name:"Action",value:"State"}];return await this.process.read({tags:r})}async getInfo(){let r=[{name:"Action",value:"Info"}];return await this.process.read({tags:r})}async getRecord({undername:r}){let n=[{name:"Sub-Domain",value:r},{name:"Action",value:"Record"}];return await this.process.read({tags:n})}async getRecords(){let r=[{name:"Action",value:"Records"}];return await this.process.read({tags:r})}async getOwner(){return(await this.getInfo()).Owner}async getControllers(){let r=[{name:"Action",value:"Controllers"}];return await this.process.read({tags:r})}async getName(){return(await this.getInfo()).Name}async getTicker(){return(await this.getInfo()).Ticker}async getBalances(){let r=[{name:"Action",value:"Balances"}];return await this.process.read({tags:r})}async getBalance({address:r}){let n=[{name:"Action",value:"Balance"},{name:"Recipient",value:r}];return await this.process.read({tags:n})}},R7=class extends O6{signer;constructor({signer:r,...n}){super(n),this.signer=r}async transfer({target:r}){let n=[{name:"Action",value:"Transfer"},{name:"Recipient",value:r}];return this.process.send({tags:n,data:{},signer:this.signer})}async addController({controller:r}){let n=[{name:"Action",value:"Add-Controller"},{name:"Controller",value:r}];return this.process.send({tags:n,data:{},signer:this.signer})}async removeController({controller:r}){let n=[{name:"Action",value:"Remove-Controller"},{name:"Controller",value:r}];return this.process.send({tags:n,data:{},signer:this.signer})}async setRecord({undername:r,transactionId:n,ttlSeconds:u}){return this.process.send({tags:[{name:"Action",value:"Set-Record"},{name:"Sub-Domain",value:r},{name:"Transaction-Id",value:n},{name:"TTL-Seconds",value:u.toString()}],data:{transactionId:n,ttlSeconds:u},signer:this.signer})}async removeRecord({undername:r}){return this.process.send({tags:[{name:"Action",value:"Remove-Record"},{name:"Sub-Domain",value:r}],data:{undername:r},signer:this.signer})}async setTicker({ticker:r}){return this.process.send({tags:[{name:"Action",value:"Set-Ticker"},{name:"Ticker",value:r}],data:{ticker:r},signer:this.signer})}async setName({name:r}){return this.process.send({tags:[{name:"Action",value:"Set-Name"},{name:"Name",value:r}],data:{name:r},signer:this.signer})}};Te();Ie();ke();var Yz=Sl(cF(),1);Te();Ie();ke();Te();Ie();ke();var Rye=Object.create,O9=Object.defineProperty,xye=Object.getOwnPropertyDescriptor,LF=Object.getOwnPropertyNames,Tye=Object.getPrototypeOf,kye=Object.prototype.hasOwnProperty,To=(e,r)=>function(){return r||(0,e[LF(e)[0]])((r={exports:{}}).exports,r),r.exports},DF=(e,r)=>{for(var n in r)O9(e,n,{get:r[n],enumerable:!0})},Iye=(e,r,n,u)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of LF(r))!kye.call(e,a)&&a!==n&&O9(e,a,{get:()=>r[a],enumerable:!(u=xye(r,a))||u.enumerable});return e},P9=(e,r,n)=>(n=e!=null?Rye(Tye(e)):{},Iye(r||!e||!e.__esModule?O9(n,"default",{value:e,enumerable:!0}):n,e)),Bye=To({"node_modules/obliterator/iterator.js"(e,r){function n(u){if(typeof u!="function")throw new Error("obliterator/iterator: expecting a function!");this.next=u}typeof Symbol<"u"&&(n.prototype[Symbol.iterator]=function(){return this}),n.of=function(){var u=arguments,a=u.length,d=0;return new n(function(){return d>=a?{done:!0}:{done:!1,value:u[d++]}})},n.empty=function(){var u=new n(function(){return{done:!0}});return u},n.fromSequence=function(u){var a=0,d=u.length;return new n(function(){return a>=d?{done:!0}:{done:!1,value:u[a++]}})},n.is=function(u){return u instanceof n?!0:typeof u=="object"&&u!==null&&typeof u.next=="function"},r.exports=n}}),Oye=To({"node_modules/obliterator/support.js"(e){e.ARRAY_BUFFER_SUPPORT=typeof ArrayBuffer<"u",e.SYMBOL_SUPPORT=typeof Symbol<"u"}}),N9=To({"node_modules/obliterator/foreach.js"(e,r){var n=Oye(),u=n.ARRAY_BUFFER_SUPPORT,a=n.SYMBOL_SUPPORT;r.exports=function(l,v){var w,m,y,g,S;if(!l)throw new Error("obliterator/forEach: invalid iterable.");if(typeof v!="function")throw new Error("obliterator/forEach: expecting a callback.");if(Array.isArray(l)||u&&ArrayBuffer.isView(l)||typeof l=="string"||l.toString()==="[object Arguments]"){for(y=0,g=l.length;y<g;y++)v(l[y],y);return}if(typeof l.forEach=="function"){l.forEach(v);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;)v(S.value,y),y++;return}for(m in l)l.hasOwnProperty(m)&&v(l[m],m)}}}),C9=To({"node_modules/mnemonist/utils/typed-arrays.js"(e){var r=Math.pow(2,8)-1,n=Math.pow(2,16)-1,u=Math.pow(2,32)-1,a=Math.pow(2,7)-1,d=Math.pow(2,15)-1,l=Math.pow(2,31)-1;e.getPointerArray=function(w){var m=w-1;if(m<=r)return Uint8Array;if(m<=n)return Uint16Array;if(m<=u)return Uint32Array;throw new Error("mnemonist: Pointer Array of size > 4294967295 is not supported.")},e.getSignedPointerArray=function(w){var m=w-1;return m<=a?Int8Array:m<=d?Int16Array:m<=l?Int32Array:Float64Array},e.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 v={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};e.getMinimalRepresentation=function(w,m){var y=null,g=0,S,R,A,k,I;for(k=0,I=w.length;k<I;k++)A=m?m(w[k]):w[k],R=e.getNumberType(A),S=v[R.name],S>g&&(g=S,y=R);return y},e.isTypedArray=function(w){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView(w)},e.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},e.indices=function(w){for(var m=e.getPointerArray(w),y=new m(w),g=0;g<w;g++)y[g]=g;return y}}}),$F=To({"node_modules/mnemonist/utils/iterables.js"(e){var r=N9(),n=C9();function u(v){return Array.isArray(v)||n.isTypedArray(v)}function a(v){if(typeof v.length=="number")return v.length;if(typeof v.size=="number")return v.size}function d(v){var w=a(v),m=typeof w=="number"?new Array(w):[],y=0;return r(v,function(g){m[y++]=g}),m}function l(v){var w=a(v),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 r(v,function(R){y[S]=R,g[S]=S++}),[y,g]}e.isArrayLike=u,e.guessLength=a,e.toArray=d,e.toArrayWithIndices=l}}),Pye=To({"node_modules/mnemonist/lru-cache.js"(e,r){var n=Bye(),u=N9(),a=C9(),d=$F();function l(v,w,m){if(arguments.length<2&&(m=v,v=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 v=="function"?new v(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(v){var w=this.head;if(this.head===v)return this;var m=this.backward[v],y=this.forward[v];return this.tail===v?this.tail=m:this.backward[y]=m,this.forward[m]=y,this.backward[w]=v,this.head=v,this.forward[v]=w,this},l.prototype.set=function(v,w){var m=this.items[v];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[v]=m,this.K[m]=v,this.V[m]=w,this.forward[m]=this.head,this.backward[this.head]=m,this.head=m},l.prototype.setpop=function(v,w){var m=null,y=null,g=this.items[v];return typeof g<"u"?(this.splayOnTop(g),m=this.V[g],this.V[g]=w,{evicted:!1,key:v,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[v]=g,this.K[g]=v,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(v){return v in this.items},l.prototype.get=function(v){var w=this.items[v];if(!(typeof w>"u"))return this.splayOnTop(w),this.V[w]},l.prototype.peek=function(v){var w=this.items[v];if(!(typeof w>"u"))return this.V[w]},l.prototype.forEach=function(v,w){w=arguments.length>1?w:this;for(var m=0,y=this.size,g=this.head,S=this.K,R=this.V,A=this.forward;m<y;)v.call(w,R[g],S[g],this),g=A[g],m++},l.prototype.keys=function(){var v=0,w=this.size,m=this.head,y=this.K,g=this.forward;return new n(function(){if(v>=w)return{done:!0};var S=y[m];return v++,v<w&&(m=g[m]),{done:!1,value:S}})},l.prototype.values=function(){var v=0,w=this.size,m=this.head,y=this.V,g=this.forward;return new n(function(){if(v>=w)return{done:!0};var S=y[m];return v++,v<w&&(m=g[m]),{done:!1,value:S}})},l.prototype.entries=function(){var v=0,w=this.size,m=this.head,y=this.K,g=this.V,S=this.forward;return new n(function(){if(v>=w)return{done:!0};var R=y[m],A=g[m];return v++,v<w&&(m=S[m]),{done:!1,value:[R,A]}})},typeof Symbol<"u"&&(l.prototype[Symbol.iterator]=l.prototype.entries),l.prototype.inspect=function(){for(var v=new Map,w=this.entries(),m;m=w.next(),!m.done;)v.set(m.value[0],m.value[1]);return Object.defineProperty(v,"constructor",{value:l,enumerable:!1}),v},typeof Symbol<"u"&&(l.prototype[Symbol.for("nodejs.util.inspect.custom")]=l.prototype.inspect),l.from=function(v,w,m,y){if(arguments.length<2){if(y=d.guessLength(v),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 u(v,function(S,R){g.set(R,S)}),g},r.exports=l}}),Nye=To({"node_modules/mnemonist/lru-map.js"(e,r){var n=Pye(),u=N9(),a=C9(),d=$F();function l(v,w,m){if(arguments.length<2&&(m=v,v=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 v=="function"?new v(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(v,w){var m=this.items.get(v);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(v,m),this.K[m]=v,this.V[m]=w,this.forward[m]=this.head,this.backward[this.head]=m,this.head=m},l.prototype.setpop=function(v,w){var m=null,y=null,g=this.items.get(v);return typeof g<"u"?(this.splayOnTop(g),m=this.V[g],this.V[g]=w,{evicted:!1,key:v,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(v,g),this.K[g]=v,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(v){return this.items.has(v)},l.prototype.get=function(v){var w=this.items.get(v);if(!(typeof w>"u"))return this.splayOnTop(w),this.V[w]},l.prototype.peek=function(v){var w=this.items.get(v);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(v,w,m,y){if(arguments.length<2){if(y=d.guessLength(v),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 u(v,function(S,R){g.set(R,S)}),g},r.exports=l}}),Cye=To({"node_modules/ms/index.js"(e,r){var n=1e3,u=n*60,a=u*60,d=a*24,l=d*7,v=d*365.25;r.exports=function(S,R){R=R||{};var A=typeof S;if(A==="string"&&S.length>0)return w(S);if(A==="number"&&isFinite(S))return R.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 R=/^(-?(?:\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(R){var A=parseFloat(R[1]),k=(R[2]||"ms").toLowerCase();switch(k){case"years":case"year":case"yrs":case"yr":case"y":return A*v;case"weeks":case"week":case"w":return A*l;case"days":case"day":case"d":return A*d;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*u;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 R=Math.abs(S);return R>=d?Math.round(S/d)+"d":R>=a?Math.round(S/a)+"h":R>=u?Math.round(S/u)+"m":R>=n?Math.round(S/n)+"s":S+"ms"}function y(S){var R=Math.abs(S);return R>=d?g(S,R,d,"day"):R>=a?g(S,R,a,"hour"):R>=u?g(S,R,u,"minute"):R>=n?g(S,R,n,"second"):S+" ms"}function g(S,R,A,k){var I=R>=A*1.5;return Math.round(S/A)+" "+k+(I?"s":"")}}}),Lye=To({"node_modules/debug/src/common.js"(e,r){function n(u){d.debug=d,d.default=d,d.coerce=g,d.disable=w,d.enable=v,d.enabled=m,d.humanize=Cye(),d.destroy=S,Object.keys(u).forEach(R=>{d[R]=u[R]}),d.names=[],d.skips=[],d.formatters={};function a(R){let A=0;for(let k=0;k<R.length;k++)A=(A<<5)-A+R.charCodeAt(k),A|=0;return d.colors[Math.abs(A)%d.colors.length]}d.selectColor=a;function d(R){let A,k=null,I,B;function P(...C){if(!P.enabled)return;let q=P,K=Number(new Date),V=K-(A||K);q.diff=V,q.prev=A,q.curr=K,A=K,C[0]=d.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");let j=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(Y,E)=>{if(Y==="%%")return"%";j++;let i=d.formatters[E];if(typeof i=="function"){let s=C[j];Y=i.call(q,s),C.splice(j,1),j--}return Y}),d.formatArgs.call(q,C),(q.log||d.log).apply(q,C)}return P.namespace=R,P.useColors=d.useColors(),P.color=d.selectColor(R),P.extend=l,P.destroy=d.destroy,Object.defineProperty(P,"enabled",{enumerable:!0,configurable:!1,get:()=>k!==null?k:(I!==d.namespaces&&(I=d.namespaces,B=d.enabled(R)),B),set:C=>{k=C}}),typeof d.init=="function"&&d.init(P),P}function l(R,A){let k=d(this.namespace+(typeof A>"u"?":":A)+R);return k.log=this.log,k}function v(R){d.save(R),d.namespaces=R,d.names=[],d.skips=[];let A,k=(typeof R=="string"?R:"").split(/[\s,]+/),I=k.length;for(A=0;A<I;A++)k[A]&&(R=k[A].replace(/\*/g,".*?"),R[0]==="-"?d.skips.push(new RegExp("^"+R.slice(1)+"$")):d.names.push(new RegExp("^"+R+"$")))}function w(){let R=[...d.names.map(y),...d.skips.map(y).map(A=>"-"+A)].join(",");return d.enable(""),R}function m(R){if(R[R.length-1]==="*")return!0;let A,k;for(A=0,k=d.skips.length;A<k;A++)if(d.skips[A].test(R))return!1;for(A=0,k=d.names.length;A<k;A++)if(d.names[A].test(R))return!0;return!1}function y(R){return R.toString().substring(2,R.toString().length-2).replace(/\.\*\?$/,"*")}function g(R){return R instanceof Error?R.stack||R.message:R}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 d.enable(d.load()),d}r.exports=n}}),Dye=To({"node_modules/debug/src/browser.js"(e,r){e.formatArgs=u,e.save=a,e.load=d,e.useColors=n,e.storage=l(),e.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`."))}})(),e.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 u(w){if(w[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+w[0]+(this.useColors?"%c ":" ")+"+"+r.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)}e.log=console.debug||console.log||(()=>{});function a(w){try{w?e.storage.setItem("debug",w):e.storage.removeItem("debug")}catch{}}function d(){let w;try{w=e.storage.getItem("debug")}catch{}return!w&&typeof gt<"u"&&"env"in gt&&(w=gt.env.DEBUG),w}function l(){try{return localStorage}catch{}}r.exports=Lye()(e);var{formatters:v}=r.exports;v.j=function(w){try{return JSON.stringify(w)}catch(m){return"[UnexpectedJSONParseError]: "+m.message}}}}),$ye=To({"node_modules/base64-js/index.js"(e){"use strict";e.byteLength=w,e.toByteArray=y,e.fromByteArray=R;var r=[],n=[],u=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(d=0,l=a.length;d<l;++d)r[d]=a[d],n[a.charCodeAt(d)]=d;var d,l;n[45]=62,n[95]=63;function v(A){var k=A.length;if(k%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var I=A.indexOf("=");I===-1&&(I=k);var B=I===k?0:4-I%4;return[I,B]}function w(A){var k=v(A),I=k[0],B=k[1];return(I+B)*3/4-B}function m(A,k,I){return(k+I)*3/4-I}function y(A){var k,I=v(A),B=I[0],P=I[1],C=new u(m(A,B,P)),q=0,K=P>0?B-4:B,V;for(V=0;V<K;V+=4)k=n[A.charCodeAt(V)]<<18|n[A.charCodeAt(V+1)]<<12|n[A.charCodeAt(V+2)]<<6|n[A.charCodeAt(V+3)],C[q++]=k>>16&255,C[q++]=k>>8&255,C[q++]=k&255;return P===2&&(k=n[A.charCodeAt(V)]<<2|n[A.charCodeAt(V+1)]>>4,C[q++]=k&255),P===1&&(k=n[A.charCodeAt(V)]<<10|n[A.charCodeAt(V+1)]<<4|n[A.charCodeAt(V+2)]>>2,C[q++]=k>>8&255,C[q++]=k&255),C}function g(A){return r[A>>18&63]+r[A>>12&63]+r[A>>6&63]+r[A&63]}function S(A,k,I){for(var B,P=[],C=k;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 R(A){for(var k,I=A.length,B=I%3,P=[],C=16383,q=0,K=I-B;q<K;q+=C)P.push(S(A,q,q+C>K?K:q+C));return B===1?(k=A[I-1],P.push(r[k>>2]+r[k<<4&63]+"==")):B===2&&(k=(A[I-2]<<8)+A[I-1],P.push(r[k>>10]+r[k>>4&63]+r[k<<2&63]+"=")),P.join("")}}}),Uye=To({"node_modules/ieee754/index.js"(e){e.read=function(r,n,u,a,d){var l,v,w=d*8-a-1,m=(1<<w)-1,y=m>>1,g=-7,S=u?d-1:0,R=u?-1:1,A=r[n+S];for(S+=R,l=A&(1<<-g)-1,A>>=-g,g+=w;g>0;l=l*256+r[n+S],S+=R,g-=8);for(v=l&(1<<-g)-1,l>>=-g,g+=a;g>0;v=v*256+r[n+S],S+=R,g-=8);if(l===0)l=1-y;else{if(l===m)return v?NaN:(A?-1:1)*(1/0);v=v+Math.pow(2,a),l=l-y}return(A?-1:1)*v*Math.pow(2,l-a)},e.write=function(r,n,u,a,d,l){var v,w,m,y=l*8-d-1,g=(1<<y)-1,S=g>>1,R=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=a?0:l-1,k=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,v=g):(v=Math.floor(Math.log(n)/Math.LN2),n*(m=Math.pow(2,-v))<1&&(v--,m*=2),v+S>=1?n+=R/m:n+=R*Math.pow(2,1-S),n*m>=2&&(v++,m/=2),v+S>=g?(w=0,v=g):v+S>=1?(w=(n*m-1)*Math.pow(2,d),v=v+S):(w=n*Math.pow(2,S-1)*Math.pow(2,d),v=0));d>=8;r[u+A]=w&255,A+=k,w/=256,d-=8);for(v=v<<d|w,y+=d;y>0;r[u+A]=v&255,A+=k,v/=256,y-=8);r[u+A-k]|=I*128}}}),qye=To({"node_modules/buffer/index.js"(e){"use strict";var r=$ye(),n=Uye(),u=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=v,e.SlowBuffer=P,e.INSPECT_MAX_BYTES=50;var a=2147483647;e.kMaxLength=a,v.TYPED_ARRAY_SUPPORT=d(),!v.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function d(){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(v.prototype,"parent",{enumerable:!0,get:function(){if(v.isBuffer(this))return this.buffer}}),Object.defineProperty(v.prototype,"offset",{enumerable:!0,get:function(){if(v.isBuffer(this))return this.byteOffset}});function 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,v.prototype),N}function v(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,$)}v.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 k(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 v.from(ee,N,$);let re=I(O);if(re)return re;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof O[Symbol.toPrimitive]=="function")return v.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)}v.from=function(O,N,$){return w(O,N,$)},Object.setPrototypeOf(v.prototype,Uint8Array.prototype),Object.setPrototypeOf(v,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)}v.alloc=function(O,N,$){return y(O,N,$)};function g(O){return m(O),l(O<0?0:B(O)|0)}v.allocUnsafe=function(O){return g(O)},v.allocUnsafeSlow=function(O){return g(O)};function S(O,N){if((typeof N!="string"||N==="")&&(N="utf8"),!v.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 R(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 k(N.buffer,N.byteOffset,N.byteLength)}return R(O)}function k(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,v.prototype),ee}function I(O){if(v.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):R(O);if(O.type==="Buffer"&&Array.isArray(O.data))return R(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),v.alloc(+O)}v.isBuffer=function(N){return N!=null&&N._isBuffer===!0&&N!==v.prototype},v.compare=function(N,$){if(ut(N,Uint8Array)&&(N=v.from(N,N.offset,N.byteLength)),ut($,Uint8Array)&&($=v.from($,$.offset,$.byteLength)),!v.isBuffer(N)||!v.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},v.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}},v.concat=function(N,$){if(!Array.isArray(N))throw new TypeError('"list" argument must be an Array of Buffers');if(N.length===0)return v.alloc(0);let ee;if($===void 0)for($=0,ee=0;ee<N.length;++ee)$+=N[ee].length;let re=v.allocUnsafe($),se=0;for(ee=0;ee<N.length;++ee){let ce=N[ee];if(ut(ce,Uint8Array))se+ce.length>re.length?(v.isBuffer(ce)||(ce=v.from(ce)),ce.copy(re,se)):Uint8Array.prototype.set.call(re,ce,se);else if(v.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(v.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}}v.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 t(this,N,$);case"utf8":case"utf-8":return c(this,N,$);case"ascii":return x(this,N,$);case"latin1":case"binary":return o(this,N,$);case"base64":return f(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}}v.prototype._isBuffer=!0;function K(O,N,$){let ee=O[N];O[N]=O[$],O[$]=ee}v.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)K(this,$,$+1);return this},v.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)K(this,$,$+3),K(this,$+1,$+2);return this},v.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)K(this,$,$+7),K(this,$+1,$+6),K(this,$+2,$+5),K(this,$+3,$+4);return this},v.prototype.toString=function(){let N=this.length;return N===0?"":arguments.length===0?c(this,0,N):q.apply(this,arguments)},v.prototype.toLocaleString=v.prototype.toString,v.prototype.equals=function(N){if(!v.isBuffer(N))throw new TypeError("Argument must be a Buffer");return this===N?!0:v.compare(this,N)===0},v.prototype.inspect=function(){let N="",$=e.INSPECT_MAX_BYTES;return N=this.toString("hex",0,$).replace(/(.{2})/g,"$1 ").trim(),this.length>$&&(N+=" ... "),"<Buffer "+N+">"},u&&(v.prototype[u]=v.prototype.inspect),v.prototype.compare=function(N,$,ee,re,se){if(ut(N,Uint8Array)&&(N=v.from(N,N.offset,N.byteLength)),!v.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 Be=0;Be<ye;++Be)if(be[Be]!==me[Be]){ce=be[Be],st=me[Be];break}return ce<st?-1:st<ce?1:0};function V(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=v.from(N,ee)),v.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,Be){return se===1?me[Be]:me.readUInt16BE(Be*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 Be=0;Be<st;Be++)if(ye(O,be+Be)!==ye(N,Be)){me=!1;break}if(me)return be}return-1}v.prototype.includes=function(N,$,ee){return this.indexOf(N,$,ee)!==-1},v.prototype.indexOf=function(N,$,ee){return V(this,N,$,ee,!0)},v.prototype.lastIndexOf=function(N,$,ee){return V(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 Y(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)}v.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 Y(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}},v.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function f(O,N,$){return N===0&&$===O.length?r.fromByteArray(O):r.fromByteArray(O.slice(N,$))}function c(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,Be;switch(st){case 1:se<128&&(ce=se);break;case 2:ye=O[re+1],(ye&192)===128&&(Be=(se&31)<<6|ye&63,Be>127&&(ce=Be));break;case 3:ye=O[re+1],be=O[re+2],(ye&192)===128&&(be&192)===128&&(Be=(se&15)<<12|(ye&63)<<6|be&63,Be>2047&&(Be<55296||Be>57343)&&(ce=Be));break;case 4:ye=O[re+1],be=O[re+2],me=O[re+3],(ye&192)===128&&(be&192)===128&&(me&192)===128&&(Be=(se&15)<<18|(ye&63)<<12|(be&63)<<6|me&63,Be>65535&&Be<1114112&&(ce=Be))}}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 p=4096;function _(O){let N=O.length;if(N<=p)return String.fromCharCode.apply(String,O);let $="",ee=0;for(;ee<N;)$+=String.fromCharCode.apply(String,O.slice(ee,ee+=p));return $}function x(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 t(O,N,$){let ee=O.length;(!N||N<0)&&(N=0),(!$||$<0||$>ee)&&($=ee);let re="";for(let se=N;se<$;++se)re+=Oe[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}v.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,v.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")}v.prototype.readUintLE=v.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},v.prototype.readUintBE=v.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},v.prototype.readUint8=v.prototype.readUInt8=function(N,$){return N=N>>>0,$||b(N,1,this.length),this[N]},v.prototype.readUint16LE=v.prototype.readUInt16LE=function(N,$){return N=N>>>0,$||b(N,2,this.length),this[N]|this[N+1]<<8},v.prototype.readUint16BE=v.prototype.readUInt16BE=function(N,$){return N=N>>>0,$||b(N,2,this.length),this[N]<<8|this[N+1]},v.prototype.readUint32LE=v.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},v.prototype.readUint32BE=v.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])},v.prototype.readBigUInt64LE=mt(function(N){N=N>>>0,Z(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))}),v.prototype.readBigUInt64BE=mt(function(N){N=N>>>0,Z(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)}),v.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},v.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},v.prototype.readInt8=function(N,$){return N=N>>>0,$||b(N,1,this.length),this[N]&128?(255-this[N]+1)*-1:this[N]},v.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},v.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},v.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},v.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]},v.prototype.readBigInt64LE=mt(function(N){N=N>>>0,Z(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)}),v.prototype.readBigInt64BE=mt(function(N){N=N>>>0,Z(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)}),v.prototype.readFloatLE=function(N,$){return N=N>>>0,$||b(N,4,this.length),n.read(this,N,!0,23,4)},v.prototype.readFloatBE=function(N,$){return N=N>>>0,$||b(N,4,this.length),n.read(this,N,!1,23,4)},v.prototype.readDoubleLE=function(N,$){return N=N>>>0,$||b(N,8,this.length),n.read(this,N,!0,52,8)},v.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(!v.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")}v.prototype.writeUintLE=v.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},v.prototype.writeUintBE=v.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},v.prototype.writeUint8=v.prototype.writeUInt8=function(N,$,ee){return N=+N,$=$>>>0,ee||M(this,N,$,1,255,0),this[$]=N&255,$+1},v.prototype.writeUint16LE=v.prototype.writeUInt16LE=function(N,$,ee){return N=+N,$=$>>>0,ee||M(this,N,$,2,65535,0),this[$]=N&255,this[$+1]=N>>>8,$+2},v.prototype.writeUint16BE=v.prototype.writeUInt16BE=function(N,$,ee){return N=+N,$=$>>>0,ee||M(this,N,$,2,65535,0),this[$]=N>>>8,this[$+1]=N&255,$+2},v.prototype.writeUint32LE=v.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},v.prototype.writeUint32BE=v.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 T(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}v.prototype.writeBigUInt64LE=mt(function(N,$=0){return T(this,N,$,BigInt(0),BigInt("0xffffffffffffffff"))}),v.prototype.writeBigUInt64BE=mt(function(N,$=0){return D(this,N,$,BigInt(0),BigInt("0xffffffffffffffff"))}),v.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},v.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},v.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},v.prototype.writeInt16LE=function(N,$,ee){return N=+N,$=$>>>0,ee||M(this,N,$,2,32767,-32768),this[$]=N&255,this[$+1]=N>>>8,$+2},v.prototype.writeInt16BE=function(N,$,ee){return N=+N,$=$>>>0,ee||M(this,N,$,2,32767,-32768),this[$]=N>>>8,this[$+1]=N&255,$+2},v.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},v.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},v.prototype.writeBigInt64LE=mt(function(N,$=0){return T(this,N,$,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),v.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}v.prototype.writeFloatLE=function(N,$,ee){return W(this,N,$,!0,ee)},v.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}v.prototype.writeDoubleLE=function(N,$,ee){return X(this,N,$,!0,ee)},v.prototype.writeDoubleBE=function(N,$,ee){return X(this,N,$,!1,ee)},v.prototype.copy=function(N,$,ee,re){if(!v.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},v.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"&&!v.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=v.isBuffer(N)?N:v.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 G={};function J(O,N,$){G[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}`}}}J("ERR_BUFFER_OUT_OF_BOUNDS",function(O){return O?`${O} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),J("ERR_INVALID_ARG_TYPE",function(O,N){return`The "${O}" argument must be of type number. Received type ${typeof N}`},TypeError),J("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,$){Z(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 G.ERR_OUT_OF_RANGE("value",st,O)}te(ee,re,se)}function Z(O,N){if(typeof O!="number")throw new G.ERR_INVALID_ARG_TYPE(N,"number",O)}function ie(O,N,$){throw Math.floor(O)!==O?(Z(O,$),new G.ERR_OUT_OF_RANGE($||"offset","an integer",O)):N<0?new G.ERR_BUFFER_OUT_OF_BOUNDS:new G.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 r.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 Oe=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")}}});function cn(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function Ga(e){return function r(n){return arguments.length===0||cn(n)?r:e.apply(this,arguments)}}function Cn(e){return function r(n,u){switch(arguments.length){case 0:return r;case 1:return cn(n)?r:Ga(function(a){return e(n,a)});default:return cn(n)&&cn(u)?r:cn(n)?Ga(function(a){return e(a,u)}):cn(u)?Ga(function(a){return e(n,a)}):e(n,u)}}}function uy(e,r){switch(e){case 0:return function(){return r.apply(this,arguments)};case 1:return function(n){return r.apply(this,arguments)};case 2:return function(n,u){return r.apply(this,arguments)};case 3:return function(n,u,a){return r.apply(this,arguments)};case 4:return function(n,u,a,d){return r.apply(this,arguments)};case 5:return function(n,u,a,d,l){return r.apply(this,arguments)};case 6:return function(n,u,a,d,l,v){return r.apply(this,arguments)};case 7:return function(n,u,a,d,l,v,w){return r.apply(this,arguments)};case 8:return function(n,u,a,d,l,v,w,m){return r.apply(this,arguments)};case 9:return function(n,u,a,d,l,v,w,m,y){return r.apply(this,arguments)};case 10:return function(n,u,a,d,l,v,w,m,y,g){return r.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function UF(e,r,n){return function(){for(var u=[],a=0,d=e,l=0,v=!1;l<r.length||a<arguments.length;){var w;l<r.length&&(!cn(r[l])||a>=arguments.length)?w=r[l]:(w=arguments[a],a+=1),u[l]=w,cn(w)?v=!0:d-=1,l+=1}return!v&&d<=0?n.apply(this,u):uy(Math.max(0,d),UF(e,u,n))}}var jye=Cn(function(e,r){return e===1?Ga(r):uy(e,UF(e,[],r))}),qF=jye;function L9(e){return function r(n,u,a){switch(arguments.length){case 0:return r;case 1:return cn(n)?r:Cn(function(d,l){return e(n,d,l)});case 2:return cn(n)&&cn(u)?r:cn(n)?Cn(function(d,l){return e(d,u,l)}):cn(u)?Cn(function(d,l){return e(n,d,l)}):Ga(function(d){return e(n,u,d)});default:return cn(n)&&cn(u)&&cn(a)?r:cn(n)&&cn(u)?Cn(function(d,l){return e(d,l,a)}):cn(n)&&cn(a)?Cn(function(d,l){return e(d,u,l)}):cn(u)&&cn(a)?Cn(function(d,l){return e(n,d,l)}):cn(n)?Ga(function(d){return e(d,u,a)}):cn(u)?Ga(function(d){return e(n,d,a)}):cn(a)?Ga(function(d){return e(n,u,d)}):e(n,u,a)}}}var D9=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function Fye(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function $9(e,r,n){return function(){if(arguments.length===0)return n();var u=arguments[arguments.length-1];if(!D9(u)){for(var a=0;a<e.length;){if(typeof u[e[a]]=="function")return u[e[a]].apply(u,Array.prototype.slice.call(arguments,0,-1));a+=1}if(Fye(u)){var d=r.apply(null,Array.prototype.slice.call(arguments,0,-1));return d(u)}}return n.apply(this,arguments)}}function zye(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var Jp={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}};function dF(e){for(var r=[],n;!(n=e.next()).done;)r.push(n.value);return r}function pF(e,r,n){for(var u=0,a=n.length;u<a;){if(e(r,n[u]))return!0;u+=1}return!1}function Hye(e){var r=String(e).match(/^function (\w*)/);return r==null?"":r[1]}function W6(e,r){return Object.prototype.hasOwnProperty.call(r,e)}function Kye(e,r){return e===r?e!==0||1/e===1/r:e!==e&&r!==r}var f9=typeof Object.is=="function"?Object.is:Kye,vF=Object.prototype.toString,Zye=function(){return vF.call(arguments)==="[object Arguments]"?function(e){return vF.call(e)==="[object Arguments]"}:function(e){return W6("callee",e)}}(),Wye=Zye,Gye=!{toString:null}.propertyIsEnumerable("toString"),mF=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],gF=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),Vye=function(e,r){for(var n=0;n<e.length;){if(e[n]===r)return!0;n+=1}return!1},Jye=Ga(typeof Object.keys=="function"&&!gF?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var r,n,u=[],a=gF&&Wye(e);for(r in e)W6(r,e)&&(!a||r!=="length")&&(u[u.length]=r);if(Gye)for(n=mF.length-1;n>=0;)r=mF[n],W6(r,e)&&!Vye(u,r)&&(u[u.length]=r),n-=1;return u}),cd=Jye,Yye=Ga(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}),yF=Yye;function bF(e,r,n,u){var a=dF(e),d=dF(r);function l(v,w){return U9(v,w,n.slice(),u.slice())}return!pF(function(v,w){return!pF(l,w,v)},d,a)}function U9(e,r,n,u){if(f9(e,r))return!0;var a=yF(e);if(a!==yF(r))return!1;if(typeof e["fantasy-land/equals"]=="function"||typeof r["fantasy-land/equals"]=="function")return typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](r)&&typeof r["fantasy-land/equals"]=="function"&&r["fantasy-land/equals"](e);if(typeof e.equals=="function"||typeof r.equals=="function")return typeof e.equals=="function"&&e.equals(r)&&typeof r.equals=="function"&&r.equals(e);switch(a){case"Arguments":case"Array":case"Object":if(typeof e.constructor=="function"&&Hye(e.constructor)==="Promise")return e===r;break;case"Boolean":case"Number":case"String":if(!(typeof e==typeof r&&f9(e.valueOf(),r.valueOf())))return!1;break;case"Date":if(!f9(e.valueOf(),r.valueOf()))return!1;break;case"Error":return e.name===r.name&&e.message===r.message;case"RegExp":if(!(e.source===r.source&&e.global===r.global&&e.ignoreCase===r.ignoreCase&&e.multiline===r.multiline&&e.sticky===r.sticky&&e.unicode===r.unicode))return!1;break}for(var d=n.length-1;d>=0;){if(n[d]===e)return u[d]===r;d-=1}switch(a){case"Map":return e.size!==r.size?!1:bF(e.entries(),r.entries(),n.concat([e]),u.concat([r]));case"Set":return e.size!==r.size?!1:bF(e.values(),r.values(),n.concat([e]),u.concat([r]));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=cd(e);if(l.length!==cd(r).length)return!1;var v=n.concat([e]),w=u.concat([r]);for(d=l.length-1;d>=0;){var m=l[d];if(!(W6(m,r)&&U9(r[m],e[m],v,w)))return!1;d-=1}return!0}var Xye=Cn(function(e,r){return U9(e,r,[],[])}),jF=Xye;function Qye(e,r,n){var u,a;if(typeof e.indexOf=="function")switch(typeof r){case"number":if(r===0){for(u=1/r;n<e.length;){if(a=e[n],a===0&&1/a===u)return n;n+=1}return-1}else if(r!==r){for(;n<e.length;){if(a=e[n],typeof a=="number"&&a!==a)return n;n+=1}return-1}return e.indexOf(r,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(r,n);case"object":if(r===null)return e.indexOf(r,n)}for(;n<e.length;){if(jF(e[n],r))return n;n+=1}return-1}function ebe(e,r){return Qye(r,e,0)>=0}function Gp(e,r){for(var n=0,u=r.length,a=Array(u);n<u;)a[n]=e(r[n]),n+=1;return a}function u9(e){var r=e.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'"'+r.replace(/"/g,'\\"')+'"'}var Fp=function(e){return(e<10?"0":"")+e},tbe=typeof Date.prototype.toISOString=="function"?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Fp(e.getUTCMonth()+1)+"-"+Fp(e.getUTCDate())+"T"+Fp(e.getUTCHours())+":"+Fp(e.getUTCMinutes())+":"+Fp(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"},rbe=tbe;function ibe(e){return function(){return!e.apply(this,arguments)}}function FF(e,r,n){for(var u=0,a=n.length;u<a;)r=e(r,n[u]),u+=1;return r}function nbe(e,r){for(var n=0,u=r.length,a=[];n<u;)e(r[n])&&(a[a.length]=r[n]),n+=1;return a}function abe(e){return Object.prototype.toString.call(e)==="[object Object]"}var obe=function(){function e(r,n){this.xf=n,this.f=r}return e.prototype["@@transducer/init"]=Jp.init,e.prototype["@@transducer/result"]=Jp.result,e.prototype["@@transducer/step"]=function(r,n){return this.f(n)?this.xf["@@transducer/step"](r,n):r},e}();function sbe(e){return function(r){return new obe(e,r)}}var fbe=Cn($9(["fantasy-land/filter","filter"],sbe,function(e,r){return abe(r)?FF(function(n,u){return e(r[u])&&(n[u]=r[u]),n},{},cd(r)):nbe(e,r)})),ube=fbe,hbe=Cn(function(e,r){return ube(ibe(e),r)}),lbe=hbe;function zF(e,r){var n=function(d){var l=r.concat([e]);return ebe(d,l)?"<Circular>":zF(d,l)},u=function(d,l){return Gp(function(v){return u9(v)+": "+n(d[v])},l.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+Gp(n,e).join(", ")+"))";case"[object Array]":return"["+Gp(n,e).concat(u(e,lbe(function(d){return/^\d+$/.test(d)},cd(e)))).join(", ")+"]";case"[object Boolean]":return typeof e=="object"?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):u9(rbe(e)))+")";case"[object Map]":return"new Map("+n(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return typeof e=="object"?"new Number("+n(e.valueOf())+")":1/e===-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+n(Array.from(e).sort())+")";case"[object String]":return typeof e=="object"?"new String("+n(e.valueOf())+")":u9(e);case"[object Undefined]":return"undefined";default:if(typeof e.toString=="function"){var a=e.toString();if(a!=="[object Object]")return a}return"{"+u(e,cd(e)).join(", ")+"}"}}var cbe=Ga(function(e){return zF(e,[])}),wF=cbe,dbe=Cn(function(e,r){if(e===r)return r;function n(v,w){if(v>w!=w>v)return w>v?w:v}var u=n(e,r);if(u!==void 0)return u;var a=n(typeof e,typeof r);if(a!==void 0)return a===typeof e?e:r;var d=wF(e),l=n(d,wF(r));return l!==void 0&&l===d?e:r}),pbe=dbe,vbe=function(){function e(r,n){this.xf=n,this.f=r}return e.prototype["@@transducer/init"]=Jp.init,e.prototype["@@transducer/result"]=Jp.result,e.prototype["@@transducer/step"]=function(r,n){return this.xf["@@transducer/step"](r,this.f(n))},e}(),mbe=function(e){return function(r){return new vbe(e,r)}},gbe=mbe,ybe=Cn($9(["fantasy-land/map","map"],gbe,function(e,r){switch(Object.prototype.toString.call(r)){case"[object Function]":return qF(r.length,function(){return e.call(this,r.apply(this,arguments))});case"[object Object]":return FF(function(n,u){return n[u]=e(r[u]),n},{},cd(r));default:return Gp(e,r)}})),bbe=ybe,HF=Number.isInteger||function(e){return e<<0===e};function KF(e){return Object.prototype.toString.call(e)==="[object String]"}var wbe=Cn(function(e,r){var n=e<0?r.length+e:e;return KF(r)?r.charAt(n):r[n]}),ZF=wbe,_be=Cn(function(e,r){if(r!=null)return HF(e)?ZF(e,r):r[e]}),hy=_be,Mbe=Cn(function(e,r){return bbe(hy(e),r)}),Sbe=Mbe,Ebe=Ga(function(e){return D9(e)?!0:!e||typeof e!="object"||KF(e)?!1:e.length===0?!0:e.length>0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1}),Abe=Ebe,_F=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function Rbe(e,r,n){return function(u,a,d){if(Abe(d))return e(u,a,d);if(d==null)return a;if(typeof d["fantasy-land/reduce"]=="function")return r(u,a,d,"fantasy-land/reduce");if(d[_F]!=null)return n(u,a,d[_F]());if(typeof d.next=="function")return n(u,a,d);if(typeof d.reduce=="function")return r(u,a,d,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function xbe(e,r,n){for(var u=0,a=n.length;u<a;){if(r=e["@@transducer/step"](r,n[u]),r&&r["@@transducer/reduced"]){r=r["@@transducer/value"];break}u+=1}return e["@@transducer/result"](r)}var Tbe=Cn(function(e,r){return uy(e.length,function(){return e.apply(r,arguments)})}),kbe=Tbe;function Ibe(e,r,n){for(var u=n.next();!u.done;){if(r=e["@@transducer/step"](r,u.value),r&&r["@@transducer/reduced"]){r=r["@@transducer/value"];break}u=n.next()}return e["@@transducer/result"](r)}function Bbe(e,r,n,u){return e["@@transducer/result"](n[u](kbe(e["@@transducer/step"],e),r))}var Obe=Rbe(xbe,Bbe,Ibe),Pbe=Obe,Nbe=function(){function e(r){this.f=r}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(r){return r},e.prototype["@@transducer/step"]=function(r,n){return this.f(r,n)},e}();function Cbe(e){return new Nbe(e)}var Lbe=L9(function(e,r,n){return Pbe(typeof e=="function"?Cbe(e):e,r,n)}),WF=Lbe;function Dbe(e,r){return function(){return r.call(this,e.apply(this,arguments))}}function GF(e,r){return function(){var n=arguments.length;if(n===0)return r();var u=arguments[n-1];return D9(u)||typeof u[e]!="function"?r.apply(this,arguments):u[e].apply(u,Array.prototype.slice.call(arguments,0,n-1))}}var $be=L9(GF("slice",function(e,r,n){return Array.prototype.slice.call(n,e,r)})),Ube=$be,qbe=Ga(GF("tail",Ube(1,1/0))),jbe=qbe;function VF(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return uy(arguments[0].length,WF(Dbe,arguments[0],jbe(arguments)))}var Fbe=Cn(function(e,r){return qF(WF(pbe,0,Sbe("length",r)),function(){var n=arguments,u=this;return e.apply(u,Gp(function(a){return a.apply(u,n)},r))})}),zbe=Fbe,Hbe=Cn(function(e,r){return r==null||r!==r?e:r}),m9=Hbe,Kbe=function(){function e(r,n){this.xf=n,this.f=r,this.found=!1}return e.prototype["@@transducer/init"]=Jp.init,e.prototype["@@transducer/result"]=function(r){return this.found||(r=this.xf["@@transducer/step"](r,void 0)),this.xf["@@transducer/result"](r)},e.prototype["@@transducer/step"]=function(r,n){return this.f(n)&&(this.found=!0,r=zye(this.xf["@@transducer/step"](r,n))),r},e}();function Zbe(e){return function(r){return new Kbe(e,r)}}var Wbe=Cn($9(["find"],Zbe,function(e,r){for(var n=0,u=r.length;n<u;){if(e(r[n]))return r[n];n+=1}})),Gbe=Wbe,Vbe=Ga(function(e){return zbe(function(){return Array.prototype.slice.call(arguments,0)},e)}),Jbe=Vbe,Ybe=Cn(function(e,r){return e.map(function(n){for(var u=r,a=0,d;a<n.length;){if(u==null)return;d=n[a],u=HF(d)?ZF(d,u):u[d],a+=1}return u})}),Xbe=Ybe,Qbe=Cn(function(e,r){return Xbe([e],r)[0]}),JF=Qbe,e3e=L9(function(e,r,n){return jF(e,hy(r,n))}),t3e=e3e,G6=class extends Error{name="InvalidSchedulerLocation"},r3e=class extends Error{name="SchedulerTagNotFound"},i3e=class extends Error{name="TransactionNotFound"},n3e="Url",a3e="Time-To-Live",o3e="Scheduler",g9=e=>VF(m9([]),Gbe(t3e(e,"name")),m9({}),hy("value")),YF=e=>VF(r=>{if(!r)throw new i3e(e);return r},hy("tags"),m9([]));function XF({fetch:e,GRAPHQL_URL:r}){return async({query:n,variables:u})=>e(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:n,variables:u})}).then(a=>a.json())}function s3e({fetch:e,GRAPHQL_URL:r}){let n=XF({fetch:e,GRAPHQL_URL:r}),u=QF({fetch:e,GRAPHQL_URL:r}),a=`
|
|
140
140
|
query GetTransactions ($transactionIds: [ID!]!) {
|
|
141
141
|
transactions(ids: $transactionIds) {
|
|
142
142
|
edges {
|