@clicloud-app/cli 0.0.0-stage → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +13 -0
- package/README.md +28 -2
- package/dist/VERSION +1 -0
- package/dist/cli.mjs +226 -0
- package/dist/mcp.mjs +105 -0
- package/package.json +29 -4
package/dist/cli.mjs
ADDED
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __cliRequire } from "node:module"; const require = __cliRequire(import.meta.url);
|
|
3
|
+
const __w = console.warn; console.warn = (...a) => { if (!String(a[0]).startsWith("bigint: Failed to load bindings")) __w(...a); };
|
|
4
|
+
const __e = process.emitWarning; process.emitWarning = function (w, ...a) { const c = typeof a[0] === "object" ? a[0]?.code : a[1]; if (c === "DEP0040") return; return __e.call(this, w, ...a); };
|
|
5
|
+
var Qw=Object.create;var Hd=Object.defineProperty;var eS=Object.getOwnPropertyDescriptor;var tS=Object.getOwnPropertyNames;var rS=Object.getPrototypeOf,iS=Object.prototype.hasOwnProperty;var Xe=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var yt=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(i){throw r=[i],i}};var Ne=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},Wl=(t,e)=>{for(var r in e)Hd(t,r,{get:e[r],enumerable:!0})},Ph=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of tS(e))!iS.call(t,n)&&n!==r&&Hd(t,n,{get:()=>e[n],enumerable:!(i=eS(e,n))||i.enumerable});return t};var yr=(t,e,r)=>(r=t!=null?Qw(rS(t)):{},Ph(e||!t||!t.__esModule?Hd(r,"default",{value:t,enumerable:!0}):r,t)),Yl=t=>Ph(Hd({},"__esModule",{value:!0}),t);var Mh=Ne((uB,Gd)=>{(function(t){"use strict";var e=function(b){var B,k=new Float64Array(16);if(b)for(B=0;B<b.length;B++)k[B]=b[B];return k},r=function(){throw new Error("no PRNG")},i=new Uint8Array(16),n=new Uint8Array(32);n[0]=9;var a=e(),s=e([1]),o=e([56129,1]),d=e([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),h=e([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),w=e([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),A=e([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),D=e([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function I(b,B,k,f){b[B]=k>>24&255,b[B+1]=k>>16&255,b[B+2]=k>>8&255,b[B+3]=k&255,b[B+4]=f>>24&255,b[B+5]=f>>16&255,b[B+6]=f>>8&255,b[B+7]=f&255}function R(b,B,k,f,U){var X,J=0;for(X=0;X<U;X++)J|=b[B+X]^k[f+X];return(1&J-1>>>8)-1}function F(b,B,k,f){return R(b,B,k,f,16)}function $(b,B,k,f){return R(b,B,k,f,32)}function H(b,B,k,f){for(var U=f[0]&255|(f[1]&255)<<8|(f[2]&255)<<16|(f[3]&255)<<24,X=k[0]&255|(k[1]&255)<<8|(k[2]&255)<<16|(k[3]&255)<<24,J=k[4]&255|(k[5]&255)<<8|(k[6]&255)<<16|(k[7]&255)<<24,ae=k[8]&255|(k[9]&255)<<8|(k[10]&255)<<16|(k[11]&255)<<24,le=k[12]&255|(k[13]&255)<<8|(k[14]&255)<<16|(k[15]&255)<<24,Oe=f[4]&255|(f[5]&255)<<8|(f[6]&255)<<16|(f[7]&255)<<24,he=B[0]&255|(B[1]&255)<<8|(B[2]&255)<<16|(B[3]&255)<<24,Be=B[4]&255|(B[5]&255)<<8|(B[6]&255)<<16|(B[7]&255)<<24,Se=B[8]&255|(B[9]&255)<<8|(B[10]&255)<<16|(B[11]&255)<<24,Ve=B[12]&255|(B[13]&255)<<8|(B[14]&255)<<16|(B[15]&255)<<24,ze=f[8]&255|(f[9]&255)<<8|(f[10]&255)<<16|(f[11]&255)<<24,Qe=k[16]&255|(k[17]&255)<<8|(k[18]&255)<<16|(k[19]&255)<<24,Ye=k[20]&255|(k[21]&255)<<8|(k[22]&255)<<16|(k[23]&255)<<24,He=k[24]&255|(k[25]&255)<<8|(k[26]&255)<<16|(k[27]&255)<<24,qe=k[28]&255|(k[29]&255)<<8|(k[30]&255)<<16|(k[31]&255)<<24,Ge=f[12]&255|(f[13]&255)<<8|(f[14]&255)<<16|(f[15]&255)<<24,Re=U,xe=X,ve=J,be=ae,Ae=le,Ee=Oe,ie=he,ne=Be,ce=Se,de=Ve,pe=ze,fe=Qe,Ue=Ye,at=He,dt=qe,st=Ge,K,ft=0;ft<20;ft+=2)K=Re+Ue|0,Ae^=K<<7|K>>>25,K=Ae+Re|0,ce^=K<<9|K>>>23,K=ce+Ae|0,Ue^=K<<13|K>>>19,K=Ue+ce|0,Re^=K<<18|K>>>14,K=Ee+xe|0,de^=K<<7|K>>>25,K=de+Ee|0,at^=K<<9|K>>>23,K=at+de|0,xe^=K<<13|K>>>19,K=xe+at|0,Ee^=K<<18|K>>>14,K=pe+ie|0,dt^=K<<7|K>>>25,K=dt+pe|0,ve^=K<<9|K>>>23,K=ve+dt|0,ie^=K<<13|K>>>19,K=ie+ve|0,pe^=K<<18|K>>>14,K=st+fe|0,be^=K<<7|K>>>25,K=be+st|0,ne^=K<<9|K>>>23,K=ne+be|0,fe^=K<<13|K>>>19,K=fe+ne|0,st^=K<<18|K>>>14,K=Re+be|0,xe^=K<<7|K>>>25,K=xe+Re|0,ve^=K<<9|K>>>23,K=ve+xe|0,be^=K<<13|K>>>19,K=be+ve|0,Re^=K<<18|K>>>14,K=Ee+Ae|0,ie^=K<<7|K>>>25,K=ie+Ee|0,ne^=K<<9|K>>>23,K=ne+ie|0,Ae^=K<<13|K>>>19,K=Ae+ne|0,Ee^=K<<18|K>>>14,K=pe+de|0,fe^=K<<7|K>>>25,K=fe+pe|0,ce^=K<<9|K>>>23,K=ce+fe|0,de^=K<<13|K>>>19,K=de+ce|0,pe^=K<<18|K>>>14,K=st+dt|0,Ue^=K<<7|K>>>25,K=Ue+st|0,at^=K<<9|K>>>23,K=at+Ue|0,dt^=K<<13|K>>>19,K=dt+at|0,st^=K<<18|K>>>14;Re=Re+U|0,xe=xe+X|0,ve=ve+J|0,be=be+ae|0,Ae=Ae+le|0,Ee=Ee+Oe|0,ie=ie+he|0,ne=ne+Be|0,ce=ce+Se|0,de=de+Ve|0,pe=pe+ze|0,fe=fe+Qe|0,Ue=Ue+Ye|0,at=at+He|0,dt=dt+qe|0,st=st+Ge|0,b[0]=Re>>>0&255,b[1]=Re>>>8&255,b[2]=Re>>>16&255,b[3]=Re>>>24&255,b[4]=xe>>>0&255,b[5]=xe>>>8&255,b[6]=xe>>>16&255,b[7]=xe>>>24&255,b[8]=ve>>>0&255,b[9]=ve>>>8&255,b[10]=ve>>>16&255,b[11]=ve>>>24&255,b[12]=be>>>0&255,b[13]=be>>>8&255,b[14]=be>>>16&255,b[15]=be>>>24&255,b[16]=Ae>>>0&255,b[17]=Ae>>>8&255,b[18]=Ae>>>16&255,b[19]=Ae>>>24&255,b[20]=Ee>>>0&255,b[21]=Ee>>>8&255,b[22]=Ee>>>16&255,b[23]=Ee>>>24&255,b[24]=ie>>>0&255,b[25]=ie>>>8&255,b[26]=ie>>>16&255,b[27]=ie>>>24&255,b[28]=ne>>>0&255,b[29]=ne>>>8&255,b[30]=ne>>>16&255,b[31]=ne>>>24&255,b[32]=ce>>>0&255,b[33]=ce>>>8&255,b[34]=ce>>>16&255,b[35]=ce>>>24&255,b[36]=de>>>0&255,b[37]=de>>>8&255,b[38]=de>>>16&255,b[39]=de>>>24&255,b[40]=pe>>>0&255,b[41]=pe>>>8&255,b[42]=pe>>>16&255,b[43]=pe>>>24&255,b[44]=fe>>>0&255,b[45]=fe>>>8&255,b[46]=fe>>>16&255,b[47]=fe>>>24&255,b[48]=Ue>>>0&255,b[49]=Ue>>>8&255,b[50]=Ue>>>16&255,b[51]=Ue>>>24&255,b[52]=at>>>0&255,b[53]=at>>>8&255,b[54]=at>>>16&255,b[55]=at>>>24&255,b[56]=dt>>>0&255,b[57]=dt>>>8&255,b[58]=dt>>>16&255,b[59]=dt>>>24&255,b[60]=st>>>0&255,b[61]=st>>>8&255,b[62]=st>>>16&255,b[63]=st>>>24&255}function L(b,B,k,f){for(var U=f[0]&255|(f[1]&255)<<8|(f[2]&255)<<16|(f[3]&255)<<24,X=k[0]&255|(k[1]&255)<<8|(k[2]&255)<<16|(k[3]&255)<<24,J=k[4]&255|(k[5]&255)<<8|(k[6]&255)<<16|(k[7]&255)<<24,ae=k[8]&255|(k[9]&255)<<8|(k[10]&255)<<16|(k[11]&255)<<24,le=k[12]&255|(k[13]&255)<<8|(k[14]&255)<<16|(k[15]&255)<<24,Oe=f[4]&255|(f[5]&255)<<8|(f[6]&255)<<16|(f[7]&255)<<24,he=B[0]&255|(B[1]&255)<<8|(B[2]&255)<<16|(B[3]&255)<<24,Be=B[4]&255|(B[5]&255)<<8|(B[6]&255)<<16|(B[7]&255)<<24,Se=B[8]&255|(B[9]&255)<<8|(B[10]&255)<<16|(B[11]&255)<<24,Ve=B[12]&255|(B[13]&255)<<8|(B[14]&255)<<16|(B[15]&255)<<24,ze=f[8]&255|(f[9]&255)<<8|(f[10]&255)<<16|(f[11]&255)<<24,Qe=k[16]&255|(k[17]&255)<<8|(k[18]&255)<<16|(k[19]&255)<<24,Ye=k[20]&255|(k[21]&255)<<8|(k[22]&255)<<16|(k[23]&255)<<24,He=k[24]&255|(k[25]&255)<<8|(k[26]&255)<<16|(k[27]&255)<<24,qe=k[28]&255|(k[29]&255)<<8|(k[30]&255)<<16|(k[31]&255)<<24,Ge=f[12]&255|(f[13]&255)<<8|(f[14]&255)<<16|(f[15]&255)<<24,Re=U,xe=X,ve=J,be=ae,Ae=le,Ee=Oe,ie=he,ne=Be,ce=Se,de=Ve,pe=ze,fe=Qe,Ue=Ye,at=He,dt=qe,st=Ge,K,ft=0;ft<20;ft+=2)K=Re+Ue|0,Ae^=K<<7|K>>>25,K=Ae+Re|0,ce^=K<<9|K>>>23,K=ce+Ae|0,Ue^=K<<13|K>>>19,K=Ue+ce|0,Re^=K<<18|K>>>14,K=Ee+xe|0,de^=K<<7|K>>>25,K=de+Ee|0,at^=K<<9|K>>>23,K=at+de|0,xe^=K<<13|K>>>19,K=xe+at|0,Ee^=K<<18|K>>>14,K=pe+ie|0,dt^=K<<7|K>>>25,K=dt+pe|0,ve^=K<<9|K>>>23,K=ve+dt|0,ie^=K<<13|K>>>19,K=ie+ve|0,pe^=K<<18|K>>>14,K=st+fe|0,be^=K<<7|K>>>25,K=be+st|0,ne^=K<<9|K>>>23,K=ne+be|0,fe^=K<<13|K>>>19,K=fe+ne|0,st^=K<<18|K>>>14,K=Re+be|0,xe^=K<<7|K>>>25,K=xe+Re|0,ve^=K<<9|K>>>23,K=ve+xe|0,be^=K<<13|K>>>19,K=be+ve|0,Re^=K<<18|K>>>14,K=Ee+Ae|0,ie^=K<<7|K>>>25,K=ie+Ee|0,ne^=K<<9|K>>>23,K=ne+ie|0,Ae^=K<<13|K>>>19,K=Ae+ne|0,Ee^=K<<18|K>>>14,K=pe+de|0,fe^=K<<7|K>>>25,K=fe+pe|0,ce^=K<<9|K>>>23,K=ce+fe|0,de^=K<<13|K>>>19,K=de+ce|0,pe^=K<<18|K>>>14,K=st+dt|0,Ue^=K<<7|K>>>25,K=Ue+st|0,at^=K<<9|K>>>23,K=at+Ue|0,dt^=K<<13|K>>>19,K=dt+at|0,st^=K<<18|K>>>14;b[0]=Re>>>0&255,b[1]=Re>>>8&255,b[2]=Re>>>16&255,b[3]=Re>>>24&255,b[4]=Ee>>>0&255,b[5]=Ee>>>8&255,b[6]=Ee>>>16&255,b[7]=Ee>>>24&255,b[8]=pe>>>0&255,b[9]=pe>>>8&255,b[10]=pe>>>16&255,b[11]=pe>>>24&255,b[12]=st>>>0&255,b[13]=st>>>8&255,b[14]=st>>>16&255,b[15]=st>>>24&255,b[16]=ie>>>0&255,b[17]=ie>>>8&255,b[18]=ie>>>16&255,b[19]=ie>>>24&255,b[20]=ne>>>0&255,b[21]=ne>>>8&255,b[22]=ne>>>16&255,b[23]=ne>>>24&255,b[24]=ce>>>0&255,b[25]=ce>>>8&255,b[26]=ce>>>16&255,b[27]=ce>>>24&255,b[28]=de>>>0&255,b[29]=de>>>8&255,b[30]=de>>>16&255,b[31]=de>>>24&255}function q(b,B,k,f){H(b,B,k,f)}function W(b,B,k,f){L(b,B,k,f)}var se=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function N(b,B,k,f,U,X,J){var ae=new Uint8Array(16),le=new Uint8Array(64),Oe,he;for(he=0;he<16;he++)ae[he]=0;for(he=0;he<8;he++)ae[he]=X[he];for(;U>=64;){for(q(le,ae,J,se),he=0;he<64;he++)b[B+he]=k[f+he]^le[he];for(Oe=1,he=8;he<16;he++)Oe=Oe+(ae[he]&255)|0,ae[he]=Oe&255,Oe>>>=8;U-=64,B+=64,f+=64}if(U>0)for(q(le,ae,J,se),he=0;he<U;he++)b[B+he]=k[f+he]^le[he];return 0}function O(b,B,k,f,U){var X=new Uint8Array(16),J=new Uint8Array(64),ae,le;for(le=0;le<16;le++)X[le]=0;for(le=0;le<8;le++)X[le]=f[le];for(;k>=64;){for(q(J,X,U,se),le=0;le<64;le++)b[B+le]=J[le];for(ae=1,le=8;le<16;le++)ae=ae+(X[le]&255)|0,X[le]=ae&255,ae>>>=8;k-=64,B+=64}if(k>0)for(q(J,X,U,se),le=0;le<k;le++)b[B+le]=J[le];return 0}function c(b,B,k,f,U){var X=new Uint8Array(32);W(X,f,U,se);for(var J=new Uint8Array(8),ae=0;ae<8;ae++)J[ae]=f[ae+16];return O(b,B,k,J,X)}function m(b,B,k,f,U,X,J){var ae=new Uint8Array(32);W(ae,X,J,se);for(var le=new Uint8Array(8),Oe=0;Oe<8;Oe++)le[Oe]=X[Oe+16];return N(b,B,k,f,U,le,ae)}var v=function(b){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var B,k,f,U,X,J,ae,le;B=b[0]&255|(b[1]&255)<<8,this.r[0]=B&8191,k=b[2]&255|(b[3]&255)<<8,this.r[1]=(B>>>13|k<<3)&8191,f=b[4]&255|(b[5]&255)<<8,this.r[2]=(k>>>10|f<<6)&7939,U=b[6]&255|(b[7]&255)<<8,this.r[3]=(f>>>7|U<<9)&8191,X=b[8]&255|(b[9]&255)<<8,this.r[4]=(U>>>4|X<<12)&255,this.r[5]=X>>>1&8190,J=b[10]&255|(b[11]&255)<<8,this.r[6]=(X>>>14|J<<2)&8191,ae=b[12]&255|(b[13]&255)<<8,this.r[7]=(J>>>11|ae<<5)&8065,le=b[14]&255|(b[15]&255)<<8,this.r[8]=(ae>>>8|le<<8)&8191,this.r[9]=le>>>5&127,this.pad[0]=b[16]&255|(b[17]&255)<<8,this.pad[1]=b[18]&255|(b[19]&255)<<8,this.pad[2]=b[20]&255|(b[21]&255)<<8,this.pad[3]=b[22]&255|(b[23]&255)<<8,this.pad[4]=b[24]&255|(b[25]&255)<<8,this.pad[5]=b[26]&255|(b[27]&255)<<8,this.pad[6]=b[28]&255|(b[29]&255)<<8,this.pad[7]=b[30]&255|(b[31]&255)<<8};v.prototype.blocks=function(b,B,k){for(var f=this.fin?0:2048,U,X,J,ae,le,Oe,he,Be,Se,Ve,ze,Qe,Ye,He,qe,Ge,Re,xe,ve,be=this.h[0],Ae=this.h[1],Ee=this.h[2],ie=this.h[3],ne=this.h[4],ce=this.h[5],de=this.h[6],pe=this.h[7],fe=this.h[8],Ue=this.h[9],at=this.r[0],dt=this.r[1],st=this.r[2],K=this.r[3],ft=this.r[4],Nt=this.r[5],Tt=this.r[6],pt=this.r[7],St=this.r[8],Rt=this.r[9];k>=16;)U=b[B+0]&255|(b[B+1]&255)<<8,be+=U&8191,X=b[B+2]&255|(b[B+3]&255)<<8,Ae+=(U>>>13|X<<3)&8191,J=b[B+4]&255|(b[B+5]&255)<<8,Ee+=(X>>>10|J<<6)&8191,ae=b[B+6]&255|(b[B+7]&255)<<8,ie+=(J>>>7|ae<<9)&8191,le=b[B+8]&255|(b[B+9]&255)<<8,ne+=(ae>>>4|le<<12)&8191,ce+=le>>>1&8191,Oe=b[B+10]&255|(b[B+11]&255)<<8,de+=(le>>>14|Oe<<2)&8191,he=b[B+12]&255|(b[B+13]&255)<<8,pe+=(Oe>>>11|he<<5)&8191,Be=b[B+14]&255|(b[B+15]&255)<<8,fe+=(he>>>8|Be<<8)&8191,Ue+=Be>>>5|f,Se=0,Ve=Se,Ve+=be*at,Ve+=Ae*(5*Rt),Ve+=Ee*(5*St),Ve+=ie*(5*pt),Ve+=ne*(5*Tt),Se=Ve>>>13,Ve&=8191,Ve+=ce*(5*Nt),Ve+=de*(5*ft),Ve+=pe*(5*K),Ve+=fe*(5*st),Ve+=Ue*(5*dt),Se+=Ve>>>13,Ve&=8191,ze=Se,ze+=be*dt,ze+=Ae*at,ze+=Ee*(5*Rt),ze+=ie*(5*St),ze+=ne*(5*pt),Se=ze>>>13,ze&=8191,ze+=ce*(5*Tt),ze+=de*(5*Nt),ze+=pe*(5*ft),ze+=fe*(5*K),ze+=Ue*(5*st),Se+=ze>>>13,ze&=8191,Qe=Se,Qe+=be*st,Qe+=Ae*dt,Qe+=Ee*at,Qe+=ie*(5*Rt),Qe+=ne*(5*St),Se=Qe>>>13,Qe&=8191,Qe+=ce*(5*pt),Qe+=de*(5*Tt),Qe+=pe*(5*Nt),Qe+=fe*(5*ft),Qe+=Ue*(5*K),Se+=Qe>>>13,Qe&=8191,Ye=Se,Ye+=be*K,Ye+=Ae*st,Ye+=Ee*dt,Ye+=ie*at,Ye+=ne*(5*Rt),Se=Ye>>>13,Ye&=8191,Ye+=ce*(5*St),Ye+=de*(5*pt),Ye+=pe*(5*Tt),Ye+=fe*(5*Nt),Ye+=Ue*(5*ft),Se+=Ye>>>13,Ye&=8191,He=Se,He+=be*ft,He+=Ae*K,He+=Ee*st,He+=ie*dt,He+=ne*at,Se=He>>>13,He&=8191,He+=ce*(5*Rt),He+=de*(5*St),He+=pe*(5*pt),He+=fe*(5*Tt),He+=Ue*(5*Nt),Se+=He>>>13,He&=8191,qe=Se,qe+=be*Nt,qe+=Ae*ft,qe+=Ee*K,qe+=ie*st,qe+=ne*dt,Se=qe>>>13,qe&=8191,qe+=ce*at,qe+=de*(5*Rt),qe+=pe*(5*St),qe+=fe*(5*pt),qe+=Ue*(5*Tt),Se+=qe>>>13,qe&=8191,Ge=Se,Ge+=be*Tt,Ge+=Ae*Nt,Ge+=Ee*ft,Ge+=ie*K,Ge+=ne*st,Se=Ge>>>13,Ge&=8191,Ge+=ce*dt,Ge+=de*at,Ge+=pe*(5*Rt),Ge+=fe*(5*St),Ge+=Ue*(5*pt),Se+=Ge>>>13,Ge&=8191,Re=Se,Re+=be*pt,Re+=Ae*Tt,Re+=Ee*Nt,Re+=ie*ft,Re+=ne*K,Se=Re>>>13,Re&=8191,Re+=ce*st,Re+=de*dt,Re+=pe*at,Re+=fe*(5*Rt),Re+=Ue*(5*St),Se+=Re>>>13,Re&=8191,xe=Se,xe+=be*St,xe+=Ae*pt,xe+=Ee*Tt,xe+=ie*Nt,xe+=ne*ft,Se=xe>>>13,xe&=8191,xe+=ce*K,xe+=de*st,xe+=pe*dt,xe+=fe*at,xe+=Ue*(5*Rt),Se+=xe>>>13,xe&=8191,ve=Se,ve+=be*Rt,ve+=Ae*St,ve+=Ee*pt,ve+=ie*Tt,ve+=ne*Nt,Se=ve>>>13,ve&=8191,ve+=ce*ft,ve+=de*K,ve+=pe*st,ve+=fe*dt,ve+=Ue*at,Se+=ve>>>13,ve&=8191,Se=(Se<<2)+Se|0,Se=Se+Ve|0,Ve=Se&8191,Se=Se>>>13,ze+=Se,be=Ve,Ae=ze,Ee=Qe,ie=Ye,ne=He,ce=qe,de=Ge,pe=Re,fe=xe,Ue=ve,B+=16,k-=16;this.h[0]=be,this.h[1]=Ae,this.h[2]=Ee,this.h[3]=ie,this.h[4]=ne,this.h[5]=ce,this.h[6]=de,this.h[7]=pe,this.h[8]=fe,this.h[9]=Ue},v.prototype.finish=function(b,B){var k=new Uint16Array(10),f,U,X,J;if(this.leftover){for(J=this.leftover,this.buffer[J++]=1;J<16;J++)this.buffer[J]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(f=this.h[1]>>>13,this.h[1]&=8191,J=2;J<10;J++)this.h[J]+=f,f=this.h[J]>>>13,this.h[J]&=8191;for(this.h[0]+=f*5,f=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=f,f=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=f,k[0]=this.h[0]+5,f=k[0]>>>13,k[0]&=8191,J=1;J<10;J++)k[J]=this.h[J]+f,f=k[J]>>>13,k[J]&=8191;for(k[9]-=8192,U=(f^1)-1,J=0;J<10;J++)k[J]&=U;for(U=~U,J=0;J<10;J++)this.h[J]=this.h[J]&U|k[J];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,X=this.h[0]+this.pad[0],this.h[0]=X&65535,J=1;J<8;J++)X=(this.h[J]+this.pad[J]|0)+(X>>>16)|0,this.h[J]=X&65535;b[B+0]=this.h[0]>>>0&255,b[B+1]=this.h[0]>>>8&255,b[B+2]=this.h[1]>>>0&255,b[B+3]=this.h[1]>>>8&255,b[B+4]=this.h[2]>>>0&255,b[B+5]=this.h[2]>>>8&255,b[B+6]=this.h[3]>>>0&255,b[B+7]=this.h[3]>>>8&255,b[B+8]=this.h[4]>>>0&255,b[B+9]=this.h[4]>>>8&255,b[B+10]=this.h[5]>>>0&255,b[B+11]=this.h[5]>>>8&255,b[B+12]=this.h[6]>>>0&255,b[B+13]=this.h[6]>>>8&255,b[B+14]=this.h[7]>>>0&255,b[B+15]=this.h[7]>>>8&255},v.prototype.update=function(b,B,k){var f,U;if(this.leftover){for(U=16-this.leftover,U>k&&(U=k),f=0;f<U;f++)this.buffer[this.leftover+f]=b[B+f];if(k-=U,B+=U,this.leftover+=U,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(k>=16&&(U=k-k%16,this.blocks(b,B,U),B+=U,k-=U),k){for(f=0;f<k;f++)this.buffer[this.leftover+f]=b[B+f];this.leftover+=k}};function T(b,B,k,f,U,X){var J=new v(X);return J.update(k,f,U),J.finish(b,B),0}function P(b,B,k,f,U,X){var J=new Uint8Array(16);return T(J,0,k,f,U,X),F(b,B,J,0)}function _(b,B,k,f,U){var X;if(k<32)return-1;for(m(b,0,B,0,k,f,U),T(b,16,b,32,k-32,b),X=0;X<16;X++)b[X]=0;return 0}function p(b,B,k,f,U){var X,J=new Uint8Array(32);if(k<32||(c(J,0,32,f,U),P(B,16,B,32,k-32,J)!==0))return-1;for(m(b,0,B,0,k,f,U),X=0;X<32;X++)b[X]=0;return 0}function l(b,B){var k;for(k=0;k<16;k++)b[k]=B[k]|0}function g(b){var B,k,f=1;for(B=0;B<16;B++)k=b[B]+f+65535,f=Math.floor(k/65536),b[B]=k-f*65536;b[0]+=f-1+37*(f-1)}function E(b,B,k){for(var f,U=~(k-1),X=0;X<16;X++)f=U&(b[X]^B[X]),b[X]^=f,B[X]^=f}function S(b,B){var k,f,U,X=e(),J=e();for(k=0;k<16;k++)J[k]=B[k];for(g(J),g(J),g(J),f=0;f<2;f++){for(X[0]=J[0]-65517,k=1;k<15;k++)X[k]=J[k]-65535-(X[k-1]>>16&1),X[k-1]&=65535;X[15]=J[15]-32767-(X[14]>>16&1),U=X[15]>>16&1,X[14]&=65535,E(J,X,1-U)}for(k=0;k<16;k++)b[2*k]=J[k]&255,b[2*k+1]=J[k]>>8}function C(b,B){var k=new Uint8Array(32),f=new Uint8Array(32);return S(k,b),S(f,B),$(k,0,f,0)}function V(b){var B=new Uint8Array(32);return S(B,b),B[0]&1}function x(b,B){var k;for(k=0;k<16;k++)b[k]=B[2*k]+(B[2*k+1]<<8);b[15]&=32767}function y(b,B,k){for(var f=0;f<16;f++)b[f]=B[f]+k[f]}function M(b,B,k){for(var f=0;f<16;f++)b[f]=B[f]-k[f]}function te(b,B,k){var f,U,X=0,J=0,ae=0,le=0,Oe=0,he=0,Be=0,Se=0,Ve=0,ze=0,Qe=0,Ye=0,He=0,qe=0,Ge=0,Re=0,xe=0,ve=0,be=0,Ae=0,Ee=0,ie=0,ne=0,ce=0,de=0,pe=0,fe=0,Ue=0,at=0,dt=0,st=0,K=k[0],ft=k[1],Nt=k[2],Tt=k[3],pt=k[4],St=k[5],Rt=k[6],br=k[7],Mt=k[8],mr=k[9],_r=k[10],gr=k[11],kr=k[12],ti=k[13],ri=k[14],ii=k[15];f=B[0],X+=f*K,J+=f*ft,ae+=f*Nt,le+=f*Tt,Oe+=f*pt,he+=f*St,Be+=f*Rt,Se+=f*br,Ve+=f*Mt,ze+=f*mr,Qe+=f*_r,Ye+=f*gr,He+=f*kr,qe+=f*ti,Ge+=f*ri,Re+=f*ii,f=B[1],J+=f*K,ae+=f*ft,le+=f*Nt,Oe+=f*Tt,he+=f*pt,Be+=f*St,Se+=f*Rt,Ve+=f*br,ze+=f*Mt,Qe+=f*mr,Ye+=f*_r,He+=f*gr,qe+=f*kr,Ge+=f*ti,Re+=f*ri,xe+=f*ii,f=B[2],ae+=f*K,le+=f*ft,Oe+=f*Nt,he+=f*Tt,Be+=f*pt,Se+=f*St,Ve+=f*Rt,ze+=f*br,Qe+=f*Mt,Ye+=f*mr,He+=f*_r,qe+=f*gr,Ge+=f*kr,Re+=f*ti,xe+=f*ri,ve+=f*ii,f=B[3],le+=f*K,Oe+=f*ft,he+=f*Nt,Be+=f*Tt,Se+=f*pt,Ve+=f*St,ze+=f*Rt,Qe+=f*br,Ye+=f*Mt,He+=f*mr,qe+=f*_r,Ge+=f*gr,Re+=f*kr,xe+=f*ti,ve+=f*ri,be+=f*ii,f=B[4],Oe+=f*K,he+=f*ft,Be+=f*Nt,Se+=f*Tt,Ve+=f*pt,ze+=f*St,Qe+=f*Rt,Ye+=f*br,He+=f*Mt,qe+=f*mr,Ge+=f*_r,Re+=f*gr,xe+=f*kr,ve+=f*ti,be+=f*ri,Ae+=f*ii,f=B[5],he+=f*K,Be+=f*ft,Se+=f*Nt,Ve+=f*Tt,ze+=f*pt,Qe+=f*St,Ye+=f*Rt,He+=f*br,qe+=f*Mt,Ge+=f*mr,Re+=f*_r,xe+=f*gr,ve+=f*kr,be+=f*ti,Ae+=f*ri,Ee+=f*ii,f=B[6],Be+=f*K,Se+=f*ft,Ve+=f*Nt,ze+=f*Tt,Qe+=f*pt,Ye+=f*St,He+=f*Rt,qe+=f*br,Ge+=f*Mt,Re+=f*mr,xe+=f*_r,ve+=f*gr,be+=f*kr,Ae+=f*ti,Ee+=f*ri,ie+=f*ii,f=B[7],Se+=f*K,Ve+=f*ft,ze+=f*Nt,Qe+=f*Tt,Ye+=f*pt,He+=f*St,qe+=f*Rt,Ge+=f*br,Re+=f*Mt,xe+=f*mr,ve+=f*_r,be+=f*gr,Ae+=f*kr,Ee+=f*ti,ie+=f*ri,ne+=f*ii,f=B[8],Ve+=f*K,ze+=f*ft,Qe+=f*Nt,Ye+=f*Tt,He+=f*pt,qe+=f*St,Ge+=f*Rt,Re+=f*br,xe+=f*Mt,ve+=f*mr,be+=f*_r,Ae+=f*gr,Ee+=f*kr,ie+=f*ti,ne+=f*ri,ce+=f*ii,f=B[9],ze+=f*K,Qe+=f*ft,Ye+=f*Nt,He+=f*Tt,qe+=f*pt,Ge+=f*St,Re+=f*Rt,xe+=f*br,ve+=f*Mt,be+=f*mr,Ae+=f*_r,Ee+=f*gr,ie+=f*kr,ne+=f*ti,ce+=f*ri,de+=f*ii,f=B[10],Qe+=f*K,Ye+=f*ft,He+=f*Nt,qe+=f*Tt,Ge+=f*pt,Re+=f*St,xe+=f*Rt,ve+=f*br,be+=f*Mt,Ae+=f*mr,Ee+=f*_r,ie+=f*gr,ne+=f*kr,ce+=f*ti,de+=f*ri,pe+=f*ii,f=B[11],Ye+=f*K,He+=f*ft,qe+=f*Nt,Ge+=f*Tt,Re+=f*pt,xe+=f*St,ve+=f*Rt,be+=f*br,Ae+=f*Mt,Ee+=f*mr,ie+=f*_r,ne+=f*gr,ce+=f*kr,de+=f*ti,pe+=f*ri,fe+=f*ii,f=B[12],He+=f*K,qe+=f*ft,Ge+=f*Nt,Re+=f*Tt,xe+=f*pt,ve+=f*St,be+=f*Rt,Ae+=f*br,Ee+=f*Mt,ie+=f*mr,ne+=f*_r,ce+=f*gr,de+=f*kr,pe+=f*ti,fe+=f*ri,Ue+=f*ii,f=B[13],qe+=f*K,Ge+=f*ft,Re+=f*Nt,xe+=f*Tt,ve+=f*pt,be+=f*St,Ae+=f*Rt,Ee+=f*br,ie+=f*Mt,ne+=f*mr,ce+=f*_r,de+=f*gr,pe+=f*kr,fe+=f*ti,Ue+=f*ri,at+=f*ii,f=B[14],Ge+=f*K,Re+=f*ft,xe+=f*Nt,ve+=f*Tt,be+=f*pt,Ae+=f*St,Ee+=f*Rt,ie+=f*br,ne+=f*Mt,ce+=f*mr,de+=f*_r,pe+=f*gr,fe+=f*kr,Ue+=f*ti,at+=f*ri,dt+=f*ii,f=B[15],Re+=f*K,xe+=f*ft,ve+=f*Nt,be+=f*Tt,Ae+=f*pt,Ee+=f*St,ie+=f*Rt,ne+=f*br,ce+=f*Mt,de+=f*mr,pe+=f*_r,fe+=f*gr,Ue+=f*kr,at+=f*ti,dt+=f*ri,st+=f*ii,X+=38*xe,J+=38*ve,ae+=38*be,le+=38*Ae,Oe+=38*Ee,he+=38*ie,Be+=38*ne,Se+=38*ce,Ve+=38*de,ze+=38*pe,Qe+=38*fe,Ye+=38*Ue,He+=38*at,qe+=38*dt,Ge+=38*st,U=1,f=X+U+65535,U=Math.floor(f/65536),X=f-U*65536,f=J+U+65535,U=Math.floor(f/65536),J=f-U*65536,f=ae+U+65535,U=Math.floor(f/65536),ae=f-U*65536,f=le+U+65535,U=Math.floor(f/65536),le=f-U*65536,f=Oe+U+65535,U=Math.floor(f/65536),Oe=f-U*65536,f=he+U+65535,U=Math.floor(f/65536),he=f-U*65536,f=Be+U+65535,U=Math.floor(f/65536),Be=f-U*65536,f=Se+U+65535,U=Math.floor(f/65536),Se=f-U*65536,f=Ve+U+65535,U=Math.floor(f/65536),Ve=f-U*65536,f=ze+U+65535,U=Math.floor(f/65536),ze=f-U*65536,f=Qe+U+65535,U=Math.floor(f/65536),Qe=f-U*65536,f=Ye+U+65535,U=Math.floor(f/65536),Ye=f-U*65536,f=He+U+65535,U=Math.floor(f/65536),He=f-U*65536,f=qe+U+65535,U=Math.floor(f/65536),qe=f-U*65536,f=Ge+U+65535,U=Math.floor(f/65536),Ge=f-U*65536,f=Re+U+65535,U=Math.floor(f/65536),Re=f-U*65536,X+=U-1+37*(U-1),U=1,f=X+U+65535,U=Math.floor(f/65536),X=f-U*65536,f=J+U+65535,U=Math.floor(f/65536),J=f-U*65536,f=ae+U+65535,U=Math.floor(f/65536),ae=f-U*65536,f=le+U+65535,U=Math.floor(f/65536),le=f-U*65536,f=Oe+U+65535,U=Math.floor(f/65536),Oe=f-U*65536,f=he+U+65535,U=Math.floor(f/65536),he=f-U*65536,f=Be+U+65535,U=Math.floor(f/65536),Be=f-U*65536,f=Se+U+65535,U=Math.floor(f/65536),Se=f-U*65536,f=Ve+U+65535,U=Math.floor(f/65536),Ve=f-U*65536,f=ze+U+65535,U=Math.floor(f/65536),ze=f-U*65536,f=Qe+U+65535,U=Math.floor(f/65536),Qe=f-U*65536,f=Ye+U+65535,U=Math.floor(f/65536),Ye=f-U*65536,f=He+U+65535,U=Math.floor(f/65536),He=f-U*65536,f=qe+U+65535,U=Math.floor(f/65536),qe=f-U*65536,f=Ge+U+65535,U=Math.floor(f/65536),Ge=f-U*65536,f=Re+U+65535,U=Math.floor(f/65536),Re=f-U*65536,X+=U-1+37*(U-1),b[0]=X,b[1]=J,b[2]=ae,b[3]=le,b[4]=Oe,b[5]=he,b[6]=Be,b[7]=Se,b[8]=Ve,b[9]=ze,b[10]=Qe,b[11]=Ye,b[12]=He,b[13]=qe,b[14]=Ge,b[15]=Re}function re(b,B){te(b,B,B)}function oe(b,B){var k=e(),f;for(f=0;f<16;f++)k[f]=B[f];for(f=253;f>=0;f--)re(k,k),f!==2&&f!==4&&te(k,k,B);for(f=0;f<16;f++)b[f]=k[f]}function me(b,B){var k=e(),f;for(f=0;f<16;f++)k[f]=B[f];for(f=250;f>=0;f--)re(k,k),f!==1&&te(k,k,B);for(f=0;f<16;f++)b[f]=k[f]}function Ce(b,B,k){var f=new Uint8Array(32),U=new Float64Array(80),X,J,ae=e(),le=e(),Oe=e(),he=e(),Be=e(),Se=e();for(J=0;J<31;J++)f[J]=B[J];for(f[31]=B[31]&127|64,f[0]&=248,x(U,k),J=0;J<16;J++)le[J]=U[J],he[J]=ae[J]=Oe[J]=0;for(ae[0]=he[0]=1,J=254;J>=0;--J)X=f[J>>>3]>>>(J&7)&1,E(ae,le,X),E(Oe,he,X),y(Be,ae,Oe),M(ae,ae,Oe),y(Oe,le,he),M(le,le,he),re(he,Be),re(Se,ae),te(ae,Oe,ae),te(Oe,le,Be),y(Be,ae,Oe),M(ae,ae,Oe),re(le,ae),M(Oe,he,Se),te(ae,Oe,o),y(ae,ae,he),te(Oe,Oe,ae),te(ae,he,Se),te(he,le,U),re(le,Be),E(ae,le,X),E(Oe,he,X);for(J=0;J<16;J++)U[J+16]=ae[J],U[J+32]=Oe[J],U[J+48]=le[J],U[J+64]=he[J];var Ve=U.subarray(32),ze=U.subarray(16);return oe(Ve,Ve),te(ze,ze,Ve),S(b,ze),0}function Te(b,B){return Ce(b,B,n)}function gt(b,B){return r(B,32),Te(b,B)}function Fe(b,B,k){var f=new Uint8Array(32);return Ce(f,k,B),W(b,i,f,se)}var tt=_,er=p;function rt(b,B,k,f,U,X){var J=new Uint8Array(32);return Fe(J,U,X),tt(b,B,k,f,J)}function Pe(b,B,k,f,U,X){var J=new Uint8Array(32);return Fe(J,U,X),er(b,B,k,f,J)}var ds=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function tr(b,B,k,f){for(var U=new Int32Array(16),X=new Int32Array(16),J,ae,le,Oe,he,Be,Se,Ve,ze,Qe,Ye,He,qe,Ge,Re,xe,ve,be,Ae,Ee,ie,ne,ce,de,pe,fe,Ue=b[0],at=b[1],dt=b[2],st=b[3],K=b[4],ft=b[5],Nt=b[6],Tt=b[7],pt=B[0],St=B[1],Rt=B[2],br=B[3],Mt=B[4],mr=B[5],_r=B[6],gr=B[7],kr=0;f>=128;){for(Ae=0;Ae<16;Ae++)Ee=8*Ae+kr,U[Ae]=k[Ee+0]<<24|k[Ee+1]<<16|k[Ee+2]<<8|k[Ee+3],X[Ae]=k[Ee+4]<<24|k[Ee+5]<<16|k[Ee+6]<<8|k[Ee+7];for(Ae=0;Ae<80;Ae++)if(J=Ue,ae=at,le=dt,Oe=st,he=K,Be=ft,Se=Nt,Ve=Tt,ze=pt,Qe=St,Ye=Rt,He=br,qe=Mt,Ge=mr,Re=_r,xe=gr,ie=Tt,ne=gr,ce=ne&65535,de=ne>>>16,pe=ie&65535,fe=ie>>>16,ie=(K>>>14|Mt<<18)^(K>>>18|Mt<<14)^(Mt>>>9|K<<23),ne=(Mt>>>14|K<<18)^(Mt>>>18|K<<14)^(K>>>9|Mt<<23),ce+=ne&65535,de+=ne>>>16,pe+=ie&65535,fe+=ie>>>16,ie=K&ft^~K&Nt,ne=Mt&mr^~Mt&_r,ce+=ne&65535,de+=ne>>>16,pe+=ie&65535,fe+=ie>>>16,ie=ds[Ae*2],ne=ds[Ae*2+1],ce+=ne&65535,de+=ne>>>16,pe+=ie&65535,fe+=ie>>>16,ie=U[Ae%16],ne=X[Ae%16],ce+=ne&65535,de+=ne>>>16,pe+=ie&65535,fe+=ie>>>16,de+=ce>>>16,pe+=de>>>16,fe+=pe>>>16,ve=pe&65535|fe<<16,be=ce&65535|de<<16,ie=ve,ne=be,ce=ne&65535,de=ne>>>16,pe=ie&65535,fe=ie>>>16,ie=(Ue>>>28|pt<<4)^(pt>>>2|Ue<<30)^(pt>>>7|Ue<<25),ne=(pt>>>28|Ue<<4)^(Ue>>>2|pt<<30)^(Ue>>>7|pt<<25),ce+=ne&65535,de+=ne>>>16,pe+=ie&65535,fe+=ie>>>16,ie=Ue&at^Ue&dt^at&dt,ne=pt&St^pt&Rt^St&Rt,ce+=ne&65535,de+=ne>>>16,pe+=ie&65535,fe+=ie>>>16,de+=ce>>>16,pe+=de>>>16,fe+=pe>>>16,Ve=pe&65535|fe<<16,xe=ce&65535|de<<16,ie=Oe,ne=He,ce=ne&65535,de=ne>>>16,pe=ie&65535,fe=ie>>>16,ie=ve,ne=be,ce+=ne&65535,de+=ne>>>16,pe+=ie&65535,fe+=ie>>>16,de+=ce>>>16,pe+=de>>>16,fe+=pe>>>16,Oe=pe&65535|fe<<16,He=ce&65535|de<<16,at=J,dt=ae,st=le,K=Oe,ft=he,Nt=Be,Tt=Se,Ue=Ve,St=ze,Rt=Qe,br=Ye,Mt=He,mr=qe,_r=Ge,gr=Re,pt=xe,Ae%16===15)for(Ee=0;Ee<16;Ee++)ie=U[Ee],ne=X[Ee],ce=ne&65535,de=ne>>>16,pe=ie&65535,fe=ie>>>16,ie=U[(Ee+9)%16],ne=X[(Ee+9)%16],ce+=ne&65535,de+=ne>>>16,pe+=ie&65535,fe+=ie>>>16,ve=U[(Ee+1)%16],be=X[(Ee+1)%16],ie=(ve>>>1|be<<31)^(ve>>>8|be<<24)^ve>>>7,ne=(be>>>1|ve<<31)^(be>>>8|ve<<24)^(be>>>7|ve<<25),ce+=ne&65535,de+=ne>>>16,pe+=ie&65535,fe+=ie>>>16,ve=U[(Ee+14)%16],be=X[(Ee+14)%16],ie=(ve>>>19|be<<13)^(be>>>29|ve<<3)^ve>>>6,ne=(be>>>19|ve<<13)^(ve>>>29|be<<3)^(be>>>6|ve<<26),ce+=ne&65535,de+=ne>>>16,pe+=ie&65535,fe+=ie>>>16,de+=ce>>>16,pe+=de>>>16,fe+=pe>>>16,U[Ee]=pe&65535|fe<<16,X[Ee]=ce&65535|de<<16;ie=Ue,ne=pt,ce=ne&65535,de=ne>>>16,pe=ie&65535,fe=ie>>>16,ie=b[0],ne=B[0],ce+=ne&65535,de+=ne>>>16,pe+=ie&65535,fe+=ie>>>16,de+=ce>>>16,pe+=de>>>16,fe+=pe>>>16,b[0]=Ue=pe&65535|fe<<16,B[0]=pt=ce&65535|de<<16,ie=at,ne=St,ce=ne&65535,de=ne>>>16,pe=ie&65535,fe=ie>>>16,ie=b[1],ne=B[1],ce+=ne&65535,de+=ne>>>16,pe+=ie&65535,fe+=ie>>>16,de+=ce>>>16,pe+=de>>>16,fe+=pe>>>16,b[1]=at=pe&65535|fe<<16,B[1]=St=ce&65535|de<<16,ie=dt,ne=Rt,ce=ne&65535,de=ne>>>16,pe=ie&65535,fe=ie>>>16,ie=b[2],ne=B[2],ce+=ne&65535,de+=ne>>>16,pe+=ie&65535,fe+=ie>>>16,de+=ce>>>16,pe+=de>>>16,fe+=pe>>>16,b[2]=dt=pe&65535|fe<<16,B[2]=Rt=ce&65535|de<<16,ie=st,ne=br,ce=ne&65535,de=ne>>>16,pe=ie&65535,fe=ie>>>16,ie=b[3],ne=B[3],ce+=ne&65535,de+=ne>>>16,pe+=ie&65535,fe+=ie>>>16,de+=ce>>>16,pe+=de>>>16,fe+=pe>>>16,b[3]=st=pe&65535|fe<<16,B[3]=br=ce&65535|de<<16,ie=K,ne=Mt,ce=ne&65535,de=ne>>>16,pe=ie&65535,fe=ie>>>16,ie=b[4],ne=B[4],ce+=ne&65535,de+=ne>>>16,pe+=ie&65535,fe+=ie>>>16,de+=ce>>>16,pe+=de>>>16,fe+=pe>>>16,b[4]=K=pe&65535|fe<<16,B[4]=Mt=ce&65535|de<<16,ie=ft,ne=mr,ce=ne&65535,de=ne>>>16,pe=ie&65535,fe=ie>>>16,ie=b[5],ne=B[5],ce+=ne&65535,de+=ne>>>16,pe+=ie&65535,fe+=ie>>>16,de+=ce>>>16,pe+=de>>>16,fe+=pe>>>16,b[5]=ft=pe&65535|fe<<16,B[5]=mr=ce&65535|de<<16,ie=Nt,ne=_r,ce=ne&65535,de=ne>>>16,pe=ie&65535,fe=ie>>>16,ie=b[6],ne=B[6],ce+=ne&65535,de+=ne>>>16,pe+=ie&65535,fe+=ie>>>16,de+=ce>>>16,pe+=de>>>16,fe+=pe>>>16,b[6]=Nt=pe&65535|fe<<16,B[6]=_r=ce&65535|de<<16,ie=Tt,ne=gr,ce=ne&65535,de=ne>>>16,pe=ie&65535,fe=ie>>>16,ie=b[7],ne=B[7],ce+=ne&65535,de+=ne>>>16,pe+=ie&65535,fe+=ie>>>16,de+=ce>>>16,pe+=de>>>16,fe+=pe>>>16,b[7]=Tt=pe&65535|fe<<16,B[7]=gr=ce&65535|de<<16,kr+=128,f-=128}return f}function kt(b,B,k){var f=new Int32Array(8),U=new Int32Array(8),X=new Uint8Array(256),J,ae=k;for(f[0]=1779033703,f[1]=3144134277,f[2]=1013904242,f[3]=2773480762,f[4]=1359893119,f[5]=2600822924,f[6]=528734635,f[7]=1541459225,U[0]=4089235720,U[1]=2227873595,U[2]=4271175723,U[3]=1595750129,U[4]=2917565137,U[5]=725511199,U[6]=4215389547,U[7]=327033209,tr(f,U,B,k),k%=128,J=0;J<k;J++)X[J]=B[ae-k+J];for(X[k]=128,k=256-128*(k<112?1:0),X[k-9]=0,I(X,k-8,ae/536870912|0,ae<<3),tr(f,U,X,k),J=0;J<8;J++)I(b,8*J,f[J],U[J]);return 0}function hn(b,B){var k=e(),f=e(),U=e(),X=e(),J=e(),ae=e(),le=e(),Oe=e(),he=e();M(k,b[1],b[0]),M(he,B[1],B[0]),te(k,k,he),y(f,b[0],b[1]),y(he,B[0],B[1]),te(f,f,he),te(U,b[3],B[3]),te(U,U,h),te(X,b[2],B[2]),y(X,X,X),M(J,f,k),M(ae,X,U),y(le,X,U),y(Oe,f,k),te(b[0],J,ae),te(b[1],Oe,le),te(b[2],le,ae),te(b[3],J,Oe)}function rr(b,B,k){var f;for(f=0;f<4;f++)E(b[f],B[f],k)}function Wt(b,B){var k=e(),f=e(),U=e();oe(U,B[2]),te(k,B[0],U),te(f,B[1],U),S(b,f),b[31]^=V(k)<<7}function va(b,B,k){var f,U;for(l(b[0],a),l(b[1],s),l(b[2],s),l(b[3],a),U=255;U>=0;--U)f=k[U/8|0]>>(U&7)&1,rr(b,B,f),hn(B,b),hn(b,b),rr(b,B,f)}function qt(b,B){var k=[e(),e(),e(),e()];l(k[0],w),l(k[1],A),l(k[2],s),te(k[3],w,A),va(b,k,B)}function Yt(b,B,k){var f=new Uint8Array(64),U=[e(),e(),e(),e()],X;for(k||r(B,32),kt(f,B,32),f[0]&=248,f[31]&=127,f[31]|=64,qt(U,f),Wt(b,U),X=0;X<32;X++)B[X+32]=b[X];return 0}var ci=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function j(b,B){var k,f,U,X;for(f=63;f>=32;--f){for(k=0,U=f-32,X=f-12;U<X;++U)B[U]+=k-16*B[f]*ci[U-(f-32)],k=Math.floor((B[U]+128)/256),B[U]-=k*256;B[U]+=k,B[f]=0}for(k=0,U=0;U<32;U++)B[U]+=k-(B[31]>>4)*ci[U],k=B[U]>>8,B[U]&=255;for(U=0;U<32;U++)B[U]-=k*ci[U];for(f=0;f<32;f++)B[f+1]+=B[f]>>8,b[f]=B[f]&255}function Y(b){var B=new Float64Array(64),k;for(k=0;k<64;k++)B[k]=b[k];for(k=0;k<64;k++)b[k]=0;j(b,B)}function Z(b,B,k,f){var U=new Uint8Array(64),X=new Uint8Array(64),J=new Uint8Array(64),ae,le,Oe=new Float64Array(64),he=[e(),e(),e(),e()];kt(U,f,32),U[0]&=248,U[31]&=127,U[31]|=64;var Be=k+64;for(ae=0;ae<k;ae++)b[64+ae]=B[ae];for(ae=0;ae<32;ae++)b[32+ae]=U[32+ae];for(kt(J,b.subarray(32),k+32),Y(J),qt(he,J),Wt(b,he),ae=32;ae<64;ae++)b[ae]=f[ae];for(kt(X,b,k+64),Y(X),ae=0;ae<64;ae++)Oe[ae]=0;for(ae=0;ae<32;ae++)Oe[ae]=J[ae];for(ae=0;ae<32;ae++)for(le=0;le<32;le++)Oe[ae+le]+=X[ae]*U[le];return j(b.subarray(32),Oe),Be}function Q(b,B){var k=e(),f=e(),U=e(),X=e(),J=e(),ae=e(),le=e();return l(b[2],s),x(b[1],B),re(U,b[1]),te(X,U,d),M(U,U,b[2]),y(X,b[2],X),re(J,X),re(ae,J),te(le,ae,J),te(k,le,U),te(k,k,X),me(k,k),te(k,k,U),te(k,k,X),te(k,k,X),te(b[0],k,X),re(f,b[0]),te(f,f,X),C(f,U)&&te(b[0],b[0],D),re(f,b[0]),te(f,f,X),C(f,U)?-1:(V(b[0])===B[31]>>7&&M(b[0],a,b[0]),te(b[3],b[0],b[1]),0)}function ue(b,B,k,f){var U,X=new Uint8Array(32),J=new Uint8Array(64),ae=[e(),e(),e(),e()],le=[e(),e(),e(),e()];if(k<64||Q(le,f))return-1;for(U=0;U<k;U++)b[U]=B[U];for(U=0;U<32;U++)b[U+32]=f[U];if(kt(J,b,k),Y(J),va(ae,le,J),qt(le,B.subarray(32)),hn(ae,le),Wt(X,ae),k-=64,$(B,0,X,0)){for(U=0;U<k;U++)b[U]=0;return-1}for(U=0;U<k;U++)b[U]=B[U+64];return k}var De=32,Le=24,Ke=32,Ct=16,Je=32,_t=32,mn=32,$t=32,Ut=32,s1=Le,fr=Ke,hr=Ct,Pi=64,zt=32,jt=64,ro=32,sr=64;t.lowlevel={crypto_core_hsalsa20:W,crypto_stream_xor:m,crypto_stream:c,crypto_stream_salsa20_xor:N,crypto_stream_salsa20:O,crypto_onetimeauth:T,crypto_onetimeauth_verify:P,crypto_verify_16:F,crypto_verify_32:$,crypto_secretbox:_,crypto_secretbox_open:p,crypto_scalarmult:Ce,crypto_scalarmult_base:Te,crypto_box_beforenm:Fe,crypto_box_afternm:tt,crypto_box:rt,crypto_box_open:Pe,crypto_box_keypair:gt,crypto_hash:kt,crypto_sign:Z,crypto_sign_keypair:Yt,crypto_sign_open:ue,crypto_secretbox_KEYBYTES:De,crypto_secretbox_NONCEBYTES:Le,crypto_secretbox_ZEROBYTES:Ke,crypto_secretbox_BOXZEROBYTES:Ct,crypto_scalarmult_BYTES:Je,crypto_scalarmult_SCALARBYTES:_t,crypto_box_PUBLICKEYBYTES:mn,crypto_box_SECRETKEYBYTES:$t,crypto_box_BEFORENMBYTES:Ut,crypto_box_NONCEBYTES:s1,crypto_box_ZEROBYTES:fr,crypto_box_BOXZEROBYTES:hr,crypto_sign_BYTES:Pi,crypto_sign_PUBLICKEYBYTES:zt,crypto_sign_SECRETKEYBYTES:jt,crypto_sign_SEEDBYTES:ro,crypto_hash_BYTES:sr,gf:e,D:d,L:ci,pack25519:S,unpack25519:x,M:te,A:y,S:re,Z:M,pow2523:me,add:hn,set25519:l,modL:j,scalarmult:va,scalarbase:qt};function pr(b,B){if(b.length!==De)throw new Error("bad key size");if(B.length!==Le)throw new Error("bad nonce size")}function zd(b,B){if(b.length!==mn)throw new Error("bad public key size");if(B.length!==$t)throw new Error("bad secret key size")}function wt(){for(var b=0;b<arguments.length;b++)if(!(arguments[b]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function lr(b){for(var B=0;B<b.length;B++)b[B]=0}t.randomBytes=function(b){var B=new Uint8Array(b);return r(B,b),B},t.secretbox=function(b,B,k){wt(b,B,k),pr(k,B);for(var f=new Uint8Array(Ke+b.length),U=new Uint8Array(f.length),X=0;X<b.length;X++)f[X+Ke]=b[X];return _(U,f,f.length,B,k),U.subarray(Ct)},t.secretbox.open=function(b,B,k){wt(b,B,k),pr(k,B);for(var f=new Uint8Array(Ct+b.length),U=new Uint8Array(f.length),X=0;X<b.length;X++)f[X+Ct]=b[X];return f.length<32||p(U,f,f.length,B,k)!==0?null:U.subarray(Ke)},t.secretbox.keyLength=De,t.secretbox.nonceLength=Le,t.secretbox.overheadLength=Ct,t.scalarMult=function(b,B){if(wt(b,B),b.length!==_t)throw new Error("bad n size");if(B.length!==Je)throw new Error("bad p size");var k=new Uint8Array(Je);return Ce(k,b,B),k},t.scalarMult.base=function(b){if(wt(b),b.length!==_t)throw new Error("bad n size");var B=new Uint8Array(Je);return Te(B,b),B},t.scalarMult.scalarLength=_t,t.scalarMult.groupElementLength=Je,t.box=function(b,B,k,f){var U=t.box.before(k,f);return t.secretbox(b,B,U)},t.box.before=function(b,B){wt(b,B),zd(b,B);var k=new Uint8Array(Ut);return Fe(k,b,B),k},t.box.after=t.secretbox,t.box.open=function(b,B,k,f){var U=t.box.before(k,f);return t.secretbox.open(b,B,U)},t.box.open.after=t.secretbox.open,t.box.keyPair=function(){var b=new Uint8Array(mn),B=new Uint8Array($t);return gt(b,B),{publicKey:b,secretKey:B}},t.box.keyPair.fromSecretKey=function(b){if(wt(b),b.length!==$t)throw new Error("bad secret key size");var B=new Uint8Array(mn);return Te(B,b),{publicKey:B,secretKey:new Uint8Array(b)}},t.box.publicKeyLength=mn,t.box.secretKeyLength=$t,t.box.sharedKeyLength=Ut,t.box.nonceLength=s1,t.box.overheadLength=t.secretbox.overheadLength,t.sign=function(b,B){if(wt(b,B),B.length!==jt)throw new Error("bad secret key size");var k=new Uint8Array(Pi+b.length);return Z(k,b,b.length,B),k},t.sign.open=function(b,B){if(wt(b,B),B.length!==zt)throw new Error("bad public key size");var k=new Uint8Array(b.length),f=ue(k,b,b.length,B);if(f<0)return null;for(var U=new Uint8Array(f),X=0;X<U.length;X++)U[X]=k[X];return U},t.sign.detached=function(b,B){for(var k=t.sign(b,B),f=new Uint8Array(Pi),U=0;U<f.length;U++)f[U]=k[U];return f},t.sign.detached.verify=function(b,B,k){if(wt(b,B,k),B.length!==Pi)throw new Error("bad signature size");if(k.length!==zt)throw new Error("bad public key size");var f=new Uint8Array(Pi+b.length),U=new Uint8Array(Pi+b.length),X;for(X=0;X<Pi;X++)f[X]=B[X];for(X=0;X<b.length;X++)f[X+Pi]=b[X];return ue(U,f,f.length,k)>=0},t.sign.keyPair=function(){var b=new Uint8Array(zt),B=new Uint8Array(jt);return Yt(b,B),{publicKey:b,secretKey:B}},t.sign.keyPair.fromSecretKey=function(b){if(wt(b),b.length!==jt)throw new Error("bad secret key size");for(var B=new Uint8Array(zt),k=0;k<B.length;k++)B[k]=b[32+k];return{publicKey:B,secretKey:new Uint8Array(b)}},t.sign.keyPair.fromSeed=function(b){if(wt(b),b.length!==ro)throw new Error("bad seed size");for(var B=new Uint8Array(zt),k=new Uint8Array(jt),f=0;f<32;f++)k[f]=b[f];return Yt(B,k,!0),{publicKey:B,secretKey:k}},t.sign.publicKeyLength=zt,t.sign.secretKeyLength=jt,t.sign.seedLength=ro,t.sign.signatureLength=Pi,t.hash=function(b){wt(b);var B=new Uint8Array(sr);return kt(B,b,b.length),B},t.hash.hashLength=sr,t.verify=function(b,B){return wt(b,B),b.length===0||B.length===0||b.length!==B.length?!1:R(b,0,B,0,b.length)===0},t.setPRNG=function(b){r=b},(function(){var b=typeof self<"u"?self.crypto||self.msCrypto:null;if(b&&b.getRandomValues){var B=65536;t.setPRNG(function(k,f){var U,X=new Uint8Array(f);for(U=0;U<f;U+=B)b.getRandomValues(X.subarray(U,U+Math.min(f-U,B)));for(U=0;U<f;U++)k[U]=X[U];lr(X)})}else typeof Xe<"u"&&(b=Xe("crypto"),b&&b.randomBytes&&t.setPRNG(function(k,f){var U,X=b.randomBytes(f);for(U=0;U<f;U++)k[U]=X[U];lr(X)}))})()})(typeof Gd<"u"&&Gd.exports?Gd.exports:self.nacl=self.nacl||{})});var jh=Ne(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});Kd.crypto=void 0;var Sa=Xe("node:crypto");Kd.crypto=Sa&&typeof Sa=="object"&&"webcrypto"in Sa?Sa.webcrypto:Sa&&typeof Sa=="object"&&"randomBytes"in Sa?Sa:void 0});var _n=Ne($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.wrapXOFConstructorWithOpts=$e.wrapConstructorWithOpts=$e.wrapConstructor=$e.Hash=$e.nextTick=$e.swap32IfBE=$e.byteSwapIfBE=$e.swap8IfBE=$e.isLE=void 0;$e.isBytes=Wh;$e.anumber=ec;$e.abytes=ao;$e.ahash=gS;$e.aexists=yS;$e.aoutput=ES;$e.u8=vS;$e.u32=wS;$e.clean=SS;$e.createView=RS;$e.rotr=bS;$e.rotl=AS;$e.byteSwap=rc;$e.byteSwap32=Yh;$e.bytesToHex=NS;$e.hexToBytes=TS;$e.asyncLoop=IS;$e.utf8ToBytes=ic;$e.bytesToUtf8=CS;$e.toBytes=Wd;$e.kdfInputToBytes=LS;$e.concatBytes=kS;$e.checkOpts=DS;$e.createHasher=Zh;$e.createOptHasher=Jh;$e.createXOFer=Qh;$e.randomBytes=BS;var no=jh();function Wh(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function ec(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("positive integer expected, got "+t)}function ao(t,...e){if(!Wh(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function gS(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");ec(t.outputLen),ec(t.blockLen)}function yS(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function ES(t,e){ao(t);let r=e.outputLen;if(t.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}function vS(t){return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}function wS(t){return new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))}function SS(...t){for(let e=0;e<t.length;e++)t[e].fill(0)}function RS(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function bS(t,e){return t<<32-e|t>>>e}function AS(t,e){return t<<e|t>>>32-e>>>0}$e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function rc(t){return t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}$e.swap8IfBE=$e.isLE?t=>t:t=>rc(t);$e.byteSwapIfBE=$e.swap8IfBE;function Yh(t){for(let e=0;e<t.length;e++)t[e]=rc(t[e]);return t}$e.swap32IfBE=$e.isLE?t=>t:Yh;var Xh=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",OS=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function NS(t){if(ao(t),Xh)return t.toHex();let e="";for(let r=0;r<t.length;r++)e+=OS[t[r]];return e}var Hn={_0:48,_9:57,A:65,F:70,a:97,f:102};function Kh(t){if(t>=Hn._0&&t<=Hn._9)return t-Hn._0;if(t>=Hn.A&&t<=Hn.F)return t-(Hn.A-10);if(t>=Hn.a&&t<=Hn.f)return t-(Hn.a-10)}function TS(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);if(Xh)return Uint8Array.fromHex(t);let e=t.length,r=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);let i=new Uint8Array(r);for(let n=0,a=0;n<r;n++,a+=2){let s=Kh(t.charCodeAt(a)),o=Kh(t.charCodeAt(a+1));if(s===void 0||o===void 0){let d=t[a]+t[a+1];throw new Error('hex string expected, got non-hex character "'+d+'" at index '+a)}i[n]=s*16+o}return i}var xS=async()=>{};$e.nextTick=xS;async function IS(t,e,r){let i=Date.now();for(let n=0;n<t;n++){r(n);let a=Date.now()-i;a>=0&&a<e||(await(0,$e.nextTick)(),i+=a)}}function ic(t){if(typeof t!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(t))}function CS(t){return new TextDecoder().decode(t)}function Wd(t){return typeof t=="string"&&(t=ic(t)),ao(t),t}function LS(t){return typeof t=="string"&&(t=ic(t)),ao(t),t}function kS(...t){let e=0;for(let i=0;i<t.length;i++){let n=t[i];ao(n),e+=n.length}let r=new Uint8Array(e);for(let i=0,n=0;i<t.length;i++){let a=t[i];r.set(a,n),n+=a.length}return r}function DS(t,e){if(e!==void 0&&{}.toString.call(e)!=="[object Object]")throw new Error("options should be object or undefined");return Object.assign(t,e)}var tc=class{};$e.Hash=tc;function Zh(t){let e=i=>t().update(Wd(i)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}function Jh(t){let e=(i,n)=>t(n).update(Wd(i)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=i=>t(i),e}function Qh(t){let e=(i,n)=>t(n).update(Wd(i)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=i=>t(i),e}$e.wrapConstructor=Zh;$e.wrapConstructorWithOpts=Jh;$e.wrapXOFConstructorWithOpts=Qh;function BS(t=32){if(no.crypto&&typeof no.crypto.getRandomValues=="function")return no.crypto.getRandomValues(new Uint8Array(t));if(no.crypto&&typeof no.crypto.randomBytes=="function")return Uint8Array.from(no.crypto.randomBytes(t));throw new Error("crypto.getRandomValues must be defined")}});var tm=Ne(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.SHA512_IV=ui.SHA384_IV=ui.SHA224_IV=ui.SHA256_IV=ui.HashMD=void 0;ui.setBigUint64=em;ui.Chi=PS;ui.Maj=US;var gn=_n();function em(t,e,r,i){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,r,i);let n=BigInt(32),a=BigInt(4294967295),s=Number(r>>n&a),o=Number(r&a),d=i?4:0,h=i?0:4;t.setUint32(e+d,s,i),t.setUint32(e+h,o,i)}function PS(t,e,r){return t&e^~t&r}function US(t,e,r){return t&e^t&r^e&r}var nc=class extends gn.Hash{constructor(e,r,i,n){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=r,this.padOffset=i,this.isLE=n,this.buffer=new Uint8Array(e),this.view=(0,gn.createView)(this.buffer)}update(e){(0,gn.aexists)(this),e=(0,gn.toBytes)(e),(0,gn.abytes)(e);let{view:r,buffer:i,blockLen:n}=this,a=e.length;for(let s=0;s<a;){let o=Math.min(n-this.pos,a-s);if(o===n){let d=(0,gn.createView)(e);for(;n<=a-s;s+=n)this.process(d,s);continue}i.set(e.subarray(s,s+o),this.pos),this.pos+=o,s+=o,this.pos===n&&(this.process(r,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,gn.aexists)(this),(0,gn.aoutput)(e,this),this.finished=!0;let{buffer:r,view:i,blockLen:n,isLE:a}=this,{pos:s}=this;r[s++]=128,(0,gn.clean)(this.buffer.subarray(s)),this.padOffset>n-s&&(this.process(i,0),s=0);for(let A=s;A<n;A++)r[A]=0;em(i,n-8,BigInt(this.length*8),a),this.process(i,0);let o=(0,gn.createView)(e),d=this.outputLen;if(d%4)throw new Error("_sha2: outputLen should be aligned to 32bit");let h=d/4,w=this.get();if(h>w.length)throw new Error("_sha2: outputLen bigger than state");for(let A=0;A<h;A++)o.setUint32(4*A,w[A],a)}digest(){let{buffer:e,outputLen:r}=this;this.digestInto(e);let i=e.slice(0,r);return this.destroy(),i}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:r,buffer:i,length:n,finished:a,destroyed:s,pos:o}=this;return e.destroyed=s,e.finished=a,e.length=n,e.pos=o,n%r&&e.buffer.set(i),e}clone(){return this._cloneInto()}};ui.HashMD=nc;ui.SHA256_IV=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);ui.SHA224_IV=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]);ui.SHA384_IV=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]);ui.SHA512_IV=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])});var oc=Ne(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.toBig=it.shrSL=it.shrSH=it.rotrSL=it.rotrSH=it.rotrBL=it.rotrBH=it.rotr32L=it.rotr32H=it.rotlSL=it.rotlSH=it.rotlBL=it.rotlBH=it.add5L=it.add5H=it.add4L=it.add4H=it.add3L=it.add3H=void 0;it.add=_m;it.fromBig=sc;it.split=rm;var Yd=BigInt(2**32-1),ac=BigInt(32);function sc(t,e=!1){return e?{h:Number(t&Yd),l:Number(t>>ac&Yd)}:{h:Number(t>>ac&Yd)|0,l:Number(t&Yd)|0}}function rm(t,e=!1){let r=t.length,i=new Uint32Array(r),n=new Uint32Array(r);for(let a=0;a<r;a++){let{h:s,l:o}=sc(t[a],e);[i[a],n[a]]=[s,o]}return[i,n]}var im=(t,e)=>BigInt(t>>>0)<<ac|BigInt(e>>>0);it.toBig=im;var nm=(t,e,r)=>t>>>r;it.shrSH=nm;var am=(t,e,r)=>t<<32-r|e>>>r;it.shrSL=am;var sm=(t,e,r)=>t>>>r|e<<32-r;it.rotrSH=sm;var om=(t,e,r)=>t<<32-r|e>>>r;it.rotrSL=om;var dm=(t,e,r)=>t<<64-r|e>>>r-32;it.rotrBH=dm;var pm=(t,e,r)=>t>>>r-32|e<<64-r;it.rotrBL=pm;var lm=(t,e)=>e;it.rotr32H=lm;var cm=(t,e)=>t;it.rotr32L=cm;var um=(t,e,r)=>t<<r|e>>>32-r;it.rotlSH=um;var fm=(t,e,r)=>e<<r|t>>>32-r;it.rotlSL=fm;var hm=(t,e,r)=>e<<r-32|t>>>64-r;it.rotlBH=hm;var mm=(t,e,r)=>t<<r-32|e>>>64-r;it.rotlBL=mm;function _m(t,e,r,i){let n=(e>>>0)+(i>>>0);return{h:t+r+(n/2**32|0)|0,l:n|0}}var gm=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0);it.add3L=gm;var ym=(t,e,r,i)=>e+r+i+(t/2**32|0)|0;it.add3H=ym;var Em=(t,e,r,i)=>(t>>>0)+(e>>>0)+(r>>>0)+(i>>>0);it.add4L=Em;var vm=(t,e,r,i,n)=>e+r+i+n+(t/2**32|0)|0;it.add4H=vm;var wm=(t,e,r,i,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(i>>>0)+(n>>>0);it.add5L=wm;var Sm=(t,e,r,i,n,a)=>e+r+i+n+a+(t/2**32|0)|0;it.add5H=Sm;var MS={fromBig:sc,split:rm,toBig:im,shrSH:nm,shrSL:am,rotrSH:sm,rotrSL:om,rotrBH:dm,rotrBL:pm,rotr32H:lm,rotr32L:cm,rotlSH:um,rotlSL:fm,rotlBH:hm,rotlBL:mm,add:_m,add3L:gm,add3H:ym,add4L:Em,add4H:vm,add5H:Sm,add5L:wm};it.default=MS});var ep=Ne(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.sha512_224=Xt.sha512_256=Xt.sha384=Xt.sha512=Xt.sha224=Xt.sha256=Xt.SHA512_256=Xt.SHA512_224=Xt.SHA384=Xt.SHA512=Xt.SHA224=Xt.SHA256=void 0;var Me=tm(),lt=oc(),Tr=_n(),FS=Uint32Array.from([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]),Ra=new Uint32Array(64),o1=class extends Me.HashMD{constructor(e=32){super(64,e,8,!1),this.A=Me.SHA256_IV[0]|0,this.B=Me.SHA256_IV[1]|0,this.C=Me.SHA256_IV[2]|0,this.D=Me.SHA256_IV[3]|0,this.E=Me.SHA256_IV[4]|0,this.F=Me.SHA256_IV[5]|0,this.G=Me.SHA256_IV[6]|0,this.H=Me.SHA256_IV[7]|0}get(){let{A:e,B:r,C:i,D:n,E:a,F:s,G:o,H:d}=this;return[e,r,i,n,a,s,o,d]}set(e,r,i,n,a,s,o,d){this.A=e|0,this.B=r|0,this.C=i|0,this.D=n|0,this.E=a|0,this.F=s|0,this.G=o|0,this.H=d|0}process(e,r){for(let A=0;A<16;A++,r+=4)Ra[A]=e.getUint32(r,!1);for(let A=16;A<64;A++){let D=Ra[A-15],I=Ra[A-2],R=(0,Tr.rotr)(D,7)^(0,Tr.rotr)(D,18)^D>>>3,F=(0,Tr.rotr)(I,17)^(0,Tr.rotr)(I,19)^I>>>10;Ra[A]=F+Ra[A-7]+R+Ra[A-16]|0}let{A:i,B:n,C:a,D:s,E:o,F:d,G:h,H:w}=this;for(let A=0;A<64;A++){let D=(0,Tr.rotr)(o,6)^(0,Tr.rotr)(o,11)^(0,Tr.rotr)(o,25),I=w+D+(0,Me.Chi)(o,d,h)+FS[A]+Ra[A]|0,F=((0,Tr.rotr)(i,2)^(0,Tr.rotr)(i,13)^(0,Tr.rotr)(i,22))+(0,Me.Maj)(i,n,a)|0;w=h,h=d,d=o,o=s+I|0,s=a,a=n,n=i,i=I+F|0}i=i+this.A|0,n=n+this.B|0,a=a+this.C|0,s=s+this.D|0,o=o+this.E|0,d=d+this.F|0,h=h+this.G|0,w=w+this.H|0,this.set(i,n,a,s,o,d,h,w)}roundClean(){(0,Tr.clean)(Ra)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,Tr.clean)(this.buffer)}};Xt.SHA256=o1;var Xd=class extends o1{constructor(){super(28),this.A=Me.SHA224_IV[0]|0,this.B=Me.SHA224_IV[1]|0,this.C=Me.SHA224_IV[2]|0,this.D=Me.SHA224_IV[3]|0,this.E=Me.SHA224_IV[4]|0,this.F=Me.SHA224_IV[5]|0,this.G=Me.SHA224_IV[6]|0,this.H=Me.SHA224_IV[7]|0}};Xt.SHA224=Xd;var Rm=lt.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(t=>BigInt(t))),VS=Rm[0],$S=Rm[1],ba=new Uint32Array(80),Aa=new Uint32Array(80),ps=class extends Me.HashMD{constructor(e=64){super(128,e,16,!1),this.Ah=Me.SHA512_IV[0]|0,this.Al=Me.SHA512_IV[1]|0,this.Bh=Me.SHA512_IV[2]|0,this.Bl=Me.SHA512_IV[3]|0,this.Ch=Me.SHA512_IV[4]|0,this.Cl=Me.SHA512_IV[5]|0,this.Dh=Me.SHA512_IV[6]|0,this.Dl=Me.SHA512_IV[7]|0,this.Eh=Me.SHA512_IV[8]|0,this.El=Me.SHA512_IV[9]|0,this.Fh=Me.SHA512_IV[10]|0,this.Fl=Me.SHA512_IV[11]|0,this.Gh=Me.SHA512_IV[12]|0,this.Gl=Me.SHA512_IV[13]|0,this.Hh=Me.SHA512_IV[14]|0,this.Hl=Me.SHA512_IV[15]|0}get(){let{Ah:e,Al:r,Bh:i,Bl:n,Ch:a,Cl:s,Dh:o,Dl:d,Eh:h,El:w,Fh:A,Fl:D,Gh:I,Gl:R,Hh:F,Hl:$}=this;return[e,r,i,n,a,s,o,d,h,w,A,D,I,R,F,$]}set(e,r,i,n,a,s,o,d,h,w,A,D,I,R,F,$){this.Ah=e|0,this.Al=r|0,this.Bh=i|0,this.Bl=n|0,this.Ch=a|0,this.Cl=s|0,this.Dh=o|0,this.Dl=d|0,this.Eh=h|0,this.El=w|0,this.Fh=A|0,this.Fl=D|0,this.Gh=I|0,this.Gl=R|0,this.Hh=F|0,this.Hl=$|0}process(e,r){for(let q=0;q<16;q++,r+=4)ba[q]=e.getUint32(r),Aa[q]=e.getUint32(r+=4);for(let q=16;q<80;q++){let W=ba[q-15]|0,se=Aa[q-15]|0,N=lt.rotrSH(W,se,1)^lt.rotrSH(W,se,8)^lt.shrSH(W,se,7),O=lt.rotrSL(W,se,1)^lt.rotrSL(W,se,8)^lt.shrSL(W,se,7),c=ba[q-2]|0,m=Aa[q-2]|0,v=lt.rotrSH(c,m,19)^lt.rotrBH(c,m,61)^lt.shrSH(c,m,6),T=lt.rotrSL(c,m,19)^lt.rotrBL(c,m,61)^lt.shrSL(c,m,6),P=lt.add4L(O,T,Aa[q-7],Aa[q-16]),_=lt.add4H(P,N,v,ba[q-7],ba[q-16]);ba[q]=_|0,Aa[q]=P|0}let{Ah:i,Al:n,Bh:a,Bl:s,Ch:o,Cl:d,Dh:h,Dl:w,Eh:A,El:D,Fh:I,Fl:R,Gh:F,Gl:$,Hh:H,Hl:L}=this;for(let q=0;q<80;q++){let W=lt.rotrSH(A,D,14)^lt.rotrSH(A,D,18)^lt.rotrBH(A,D,41),se=lt.rotrSL(A,D,14)^lt.rotrSL(A,D,18)^lt.rotrBL(A,D,41),N=A&I^~A&F,O=D&R^~D&$,c=lt.add5L(L,se,O,$S[q],Aa[q]),m=lt.add5H(c,H,W,N,VS[q],ba[q]),v=c|0,T=lt.rotrSH(i,n,28)^lt.rotrBH(i,n,34)^lt.rotrBH(i,n,39),P=lt.rotrSL(i,n,28)^lt.rotrBL(i,n,34)^lt.rotrBL(i,n,39),_=i&a^i&o^a&o,p=n&s^n&d^s&d;H=F|0,L=$|0,F=I|0,$=R|0,I=A|0,R=D|0,{h:A,l:D}=lt.add(h|0,w|0,m|0,v|0),h=o|0,w=d|0,o=a|0,d=s|0,a=i|0,s=n|0;let l=lt.add3L(v,P,p);i=lt.add3H(l,m,T,_),n=l|0}({h:i,l:n}=lt.add(this.Ah|0,this.Al|0,i|0,n|0)),{h:a,l:s}=lt.add(this.Bh|0,this.Bl|0,a|0,s|0),{h:o,l:d}=lt.add(this.Ch|0,this.Cl|0,o|0,d|0),{h,l:w}=lt.add(this.Dh|0,this.Dl|0,h|0,w|0),{h:A,l:D}=lt.add(this.Eh|0,this.El|0,A|0,D|0),{h:I,l:R}=lt.add(this.Fh|0,this.Fl|0,I|0,R|0),{h:F,l:$}=lt.add(this.Gh|0,this.Gl|0,F|0,$|0),{h:H,l:L}=lt.add(this.Hh|0,this.Hl|0,H|0,L|0),this.set(i,n,a,s,o,d,h,w,A,D,I,R,F,$,H,L)}roundClean(){(0,Tr.clean)(ba,Aa)}destroy(){(0,Tr.clean)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}};Xt.SHA512=ps;var Zd=class extends ps{constructor(){super(48),this.Ah=Me.SHA384_IV[0]|0,this.Al=Me.SHA384_IV[1]|0,this.Bh=Me.SHA384_IV[2]|0,this.Bl=Me.SHA384_IV[3]|0,this.Ch=Me.SHA384_IV[4]|0,this.Cl=Me.SHA384_IV[5]|0,this.Dh=Me.SHA384_IV[6]|0,this.Dl=Me.SHA384_IV[7]|0,this.Eh=Me.SHA384_IV[8]|0,this.El=Me.SHA384_IV[9]|0,this.Fh=Me.SHA384_IV[10]|0,this.Fl=Me.SHA384_IV[11]|0,this.Gh=Me.SHA384_IV[12]|0,this.Gl=Me.SHA384_IV[13]|0,this.Hh=Me.SHA384_IV[14]|0,this.Hl=Me.SHA384_IV[15]|0}};Xt.SHA384=Zd;var ni=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),ai=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]),Jd=class extends ps{constructor(){super(28),this.Ah=ni[0]|0,this.Al=ni[1]|0,this.Bh=ni[2]|0,this.Bl=ni[3]|0,this.Ch=ni[4]|0,this.Cl=ni[5]|0,this.Dh=ni[6]|0,this.Dl=ni[7]|0,this.Eh=ni[8]|0,this.El=ni[9]|0,this.Fh=ni[10]|0,this.Fl=ni[11]|0,this.Gh=ni[12]|0,this.Gl=ni[13]|0,this.Hh=ni[14]|0,this.Hl=ni[15]|0}};Xt.SHA512_224=Jd;var Qd=class extends ps{constructor(){super(32),this.Ah=ai[0]|0,this.Al=ai[1]|0,this.Bh=ai[2]|0,this.Bl=ai[3]|0,this.Ch=ai[4]|0,this.Cl=ai[5]|0,this.Dh=ai[6]|0,this.Dl=ai[7]|0,this.Eh=ai[8]|0,this.El=ai[9]|0,this.Fh=ai[10]|0,this.Fl=ai[11]|0,this.Gh=ai[12]|0,this.Gl=ai[13]|0,this.Hh=ai[14]|0,this.Hl=ai[15]|0}};Xt.SHA512_256=Qd;Xt.sha256=(0,Tr.createHasher)(()=>new o1);Xt.sha224=(0,Tr.createHasher)(()=>new Xd);Xt.sha512=(0,Tr.createHasher)(()=>new ps);Xt.sha384=(0,Tr.createHasher)(()=>new Zd);Xt.sha512_256=(0,Tr.createHasher)(()=>new Qd);Xt.sha512_224=(0,Tr.createHasher)(()=>new Jd)});var qn=Ne(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.notImplemented=We.bitMask=We.utf8ToBytes=We.randomBytes=We.isBytes=We.hexToBytes=We.concatBytes=We.bytesToUtf8=We.bytesToHex=We.anumber=We.abytes=void 0;We.abool=zS;We._abool2=HS;We._abytes2=GS;We.numberToHexUnpadded=bm;We.hexToNumber=pc;We.bytesToNumberBE=qS;We.bytesToNumberLE=jS;We.numberToBytesBE=Am;We.numberToBytesLE=KS;We.numberToVarBytesBE=WS;We.ensureBytes=YS;We.equalBytes=XS;We.copyBytes=ZS;We.asciiToBytes=JS;We.inRange=Om;We.aInRange=QS;We.bitLen=eR;We.bitGet=tR;We.bitSet=rR;We.createHmacDrbg=nR;We.validateObject=sR;We.isHash=oR;We._validateObject=dR;We.memoized=lR;var yn=_n(),Gn=_n();Object.defineProperty(We,"abytes",{enumerable:!0,get:function(){return Gn.abytes}});Object.defineProperty(We,"anumber",{enumerable:!0,get:function(){return Gn.anumber}});Object.defineProperty(We,"bytesToHex",{enumerable:!0,get:function(){return Gn.bytesToHex}});Object.defineProperty(We,"bytesToUtf8",{enumerable:!0,get:function(){return Gn.bytesToUtf8}});Object.defineProperty(We,"concatBytes",{enumerable:!0,get:function(){return Gn.concatBytes}});Object.defineProperty(We,"hexToBytes",{enumerable:!0,get:function(){return Gn.hexToBytes}});Object.defineProperty(We,"isBytes",{enumerable:!0,get:function(){return Gn.isBytes}});Object.defineProperty(We,"randomBytes",{enumerable:!0,get:function(){return Gn.randomBytes}});Object.defineProperty(We,"utf8ToBytes",{enumerable:!0,get:function(){return Gn.utf8ToBytes}});var tp=BigInt(0),d1=BigInt(1);function zS(t,e){if(typeof e!="boolean")throw new Error(t+" boolean expected, got "+e)}function HS(t,e=""){if(typeof t!="boolean"){let r=e&&`"${e}"`;throw new Error(r+"expected boolean, got type="+typeof t)}return t}function GS(t,e,r=""){let i=(0,yn.isBytes)(t),n=t?.length,a=e!==void 0;if(!i||a&&n!==e){let s=r&&`"${r}" `,o=a?` of length ${e}`:"",d=i?`length=${n}`:`type=${typeof t}`;throw new Error(s+"expected Uint8Array"+o+", got "+d)}return t}function bm(t){let e=t.toString(16);return e.length&1?"0"+e:e}function pc(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);return t===""?tp:BigInt("0x"+t)}function qS(t){return pc((0,yn.bytesToHex)(t))}function jS(t){return(0,yn.abytes)(t),pc((0,yn.bytesToHex)(Uint8Array.from(t).reverse()))}function Am(t,e){return(0,yn.hexToBytes)(t.toString(16).padStart(e*2,"0"))}function KS(t,e){return Am(t,e).reverse()}function WS(t){return(0,yn.hexToBytes)(bm(t))}function YS(t,e,r){let i;if(typeof e=="string")try{i=(0,yn.hexToBytes)(e)}catch(a){throw new Error(t+" must be hex string or Uint8Array, cause: "+a)}else if((0,yn.isBytes)(e))i=Uint8Array.from(e);else throw new Error(t+" must be hex string or Uint8Array");let n=i.length;if(typeof r=="number"&&n!==r)throw new Error(t+" of length "+r+" expected, got "+n);return i}function XS(t,e){if(t.length!==e.length)return!1;let r=0;for(let i=0;i<t.length;i++)r|=t[i]^e[i];return r===0}function ZS(t){return Uint8Array.from(t)}function JS(t){return Uint8Array.from(t,(e,r)=>{let i=e.charCodeAt(0);if(e.length!==1||i>127)throw new Error(`string contains non-ASCII character "${t[r]}" with code ${i} at position ${r}`);return i})}var dc=t=>typeof t=="bigint"&&tp<=t;function Om(t,e,r){return dc(t)&&dc(e)&&dc(r)&&e<=t&&t<r}function QS(t,e,r,i){if(!Om(e,r,i))throw new Error("expected valid "+t+": "+r+" <= n < "+i+", got "+e)}function eR(t){let e;for(e=0;t>tp;t>>=d1,e+=1);return e}function tR(t,e){return t>>BigInt(e)&d1}function rR(t,e,r){return t|(r?d1:tp)<<BigInt(e)}var iR=t=>(d1<<BigInt(t))-d1;We.bitMask=iR;function nR(t,e,r){if(typeof t!="number"||t<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof r!="function")throw new Error("hmacFn must be a function");let i=I=>new Uint8Array(I),n=I=>Uint8Array.of(I),a=i(t),s=i(t),o=0,d=()=>{a.fill(1),s.fill(0),o=0},h=(...I)=>r(s,a,...I),w=(I=i(0))=>{s=h(n(0),I),a=h(),I.length!==0&&(s=h(n(1),I),a=h())},A=()=>{if(o++>=1e3)throw new Error("drbg: tried 1000 values");let I=0,R=[];for(;I<e;){a=h();let F=a.slice();R.push(F),I+=a.length}return(0,yn.concatBytes)(...R)};return(I,R)=>{d(),w(I);let F;for(;!(F=R(A()));)w();return d(),F}}var aR={bigint:t=>typeof t=="bigint",function:t=>typeof t=="function",boolean:t=>typeof t=="boolean",string:t=>typeof t=="string",stringOrUint8Array:t=>typeof t=="string"||(0,yn.isBytes)(t),isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>typeof t=="function"&&Number.isSafeInteger(t.outputLen)};function sR(t,e,r={}){let i=(n,a,s)=>{let o=aR[a];if(typeof o!="function")throw new Error("invalid validator function");let d=t[n];if(!(s&&d===void 0)&&!o(d,t))throw new Error("param "+String(n)+" is invalid. Expected "+a+", got "+d)};for(let[n,a]of Object.entries(e))i(n,a,!1);for(let[n,a]of Object.entries(r))i(n,a,!0);return t}function oR(t){return typeof t=="function"&&Number.isSafeInteger(t.outputLen)}function dR(t,e,r={}){if(!t||typeof t!="object")throw new Error("expected valid options object");function i(n,a,s){let o=t[n];if(s&&o===void 0)return;let d=typeof o;if(d!==a||o===null)throw new Error(`param "${n}" is invalid: expected ${a}, got ${d}`)}Object.entries(e).forEach(([n,a])=>i(n,a,!1)),Object.entries(r).forEach(([n,a])=>i(n,a,!0))}var pR=()=>{throw new Error("not implemented")};We.notImplemented=pR;function lR(t){let e=new WeakMap;return(r,...i)=>{let n=e.get(r);if(n!==void 0)return n;let a=t(r,...i);return e.set(r,a),a}}});var Oa=Ne(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.isNegativeLE=void 0;or.mod=Ei;or.pow=fR;or.pow2=hR;or.invert=rp;or.tonelliShanks=cc;or.FpSqrt=km;or.validateField=ER;or.FpPow=uc;or.FpInvertBatch=Dm;or.FpDiv=vR;or.FpLegendre=ip;or.FpIsSquare=wR;or.nLength=fc;or.Field=np;or.FpSqrtOdd=SR;or.FpSqrtEven=RR;or.hashToPrivateScalar=bR;or.getFieldBytesLength=hc;or.getMinHashLength=Bm;or.mapHashToField=AR;var vi=qn(),fi=BigInt(0),xr=BigInt(1),ls=BigInt(2),Nm=BigInt(3),Tm=BigInt(4),xm=BigInt(5),cR=BigInt(7),Im=BigInt(8),uR=BigInt(9),Cm=BigInt(16);function Ei(t,e){let r=t%e;return r>=fi?r:e+r}function fR(t,e,r){return uc(np(r),t,e)}function hR(t,e,r){let i=t;for(;e-- >fi;)i*=i,i%=r;return i}function rp(t,e){if(t===fi)throw new Error("invert: expected non-zero number");if(e<=fi)throw new Error("invert: expected positive modulus, got "+e);let r=Ei(t,e),i=e,n=fi,a=xr,s=xr,o=fi;for(;r!==fi;){let h=i/r,w=i%r,A=n-s*h,D=a-o*h;i=r,r=w,n=s,a=o,s=A,o=D}if(i!==xr)throw new Error("invert: does not exist");return Ei(n,e)}function lc(t,e,r){if(!t.eql(t.sqr(e),r))throw new Error("Cannot find square root")}function Lm(t,e){let r=(t.ORDER+xr)/Tm,i=t.pow(e,r);return lc(t,i,e),i}function mR(t,e){let r=(t.ORDER-xm)/Im,i=t.mul(e,ls),n=t.pow(i,r),a=t.mul(e,n),s=t.mul(t.mul(a,ls),n),o=t.mul(a,t.sub(s,t.ONE));return lc(t,o,e),o}function _R(t){let e=np(t),r=cc(t),i=r(e,e.neg(e.ONE)),n=r(e,i),a=r(e,e.neg(i)),s=(t+cR)/Cm;return(o,d)=>{let h=o.pow(d,s),w=o.mul(h,i),A=o.mul(h,n),D=o.mul(h,a),I=o.eql(o.sqr(w),d),R=o.eql(o.sqr(A),d);h=o.cmov(h,w,I),w=o.cmov(D,A,R);let F=o.eql(o.sqr(w),d),$=o.cmov(h,w,F);return lc(o,$,d),$}}function cc(t){if(t<Nm)throw new Error("sqrt is not defined for small field");let e=t-xr,r=0;for(;e%ls===fi;)e/=ls,r++;let i=ls,n=np(t);for(;ip(n,i)===1;)if(i++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(r===1)return Lm;let a=n.pow(i,e),s=(e+xr)/ls;return function(d,h){if(d.is0(h))return h;if(ip(d,h)!==1)throw new Error("Cannot find square root");let w=r,A=d.mul(d.ONE,a),D=d.pow(h,e),I=d.pow(h,s);for(;!d.eql(D,d.ONE);){if(d.is0(D))return d.ZERO;let R=1,F=d.sqr(D);for(;!d.eql(F,d.ONE);)if(R++,F=d.sqr(F),R===w)throw new Error("Cannot find square root");let $=xr<<BigInt(w-R-1),H=d.pow(A,$);w=R,A=d.sqr(H),D=d.mul(D,A),I=d.mul(I,H)}return I}}function km(t){return t%Tm===Nm?Lm:t%Im===xm?mR:t%Cm===uR?_R(t):cc(t)}var gR=(t,e)=>(Ei(t,e)&xr)===xr;or.isNegativeLE=gR;var yR=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function ER(t){let e={ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"},r=yR.reduce((i,n)=>(i[n]="function",i),e);return(0,vi._validateObject)(t,r),t}function uc(t,e,r){if(r<fi)throw new Error("invalid exponent, negatives unsupported");if(r===fi)return t.ONE;if(r===xr)return e;let i=t.ONE,n=e;for(;r>fi;)r&xr&&(i=t.mul(i,n)),n=t.sqr(n),r>>=xr;return i}function Dm(t,e,r=!1){let i=new Array(e.length).fill(r?t.ZERO:void 0),n=e.reduce((s,o,d)=>t.is0(o)?s:(i[d]=s,t.mul(s,o)),t.ONE),a=t.inv(n);return e.reduceRight((s,o,d)=>t.is0(o)?s:(i[d]=t.mul(s,i[d]),t.mul(s,o)),a),i}function vR(t,e,r){return t.mul(e,typeof r=="bigint"?rp(r,t.ORDER):t.inv(r))}function ip(t,e){let r=(t.ORDER-xr)/ls,i=t.pow(e,r),n=t.eql(i,t.ONE),a=t.eql(i,t.ZERO),s=t.eql(i,t.neg(t.ONE));if(!n&&!a&&!s)throw new Error("invalid Legendre symbol result");return n?1:a?0:-1}function wR(t,e){return ip(t,e)===1}function fc(t,e){e!==void 0&&(0,vi.anumber)(e);let r=e!==void 0?e:t.toString(2).length,i=Math.ceil(r/8);return{nBitLength:r,nByteLength:i}}function np(t,e,r=!1,i={}){if(t<=fi)throw new Error("invalid field: expected ORDER > 0, got "+t);let n,a,s=!1,o;if(typeof e=="object"&&e!=null){if(i.sqrt||r)throw new Error("cannot specify opts in two arguments");let D=e;D.BITS&&(n=D.BITS),D.sqrt&&(a=D.sqrt),typeof D.isLE=="boolean"&&(r=D.isLE),typeof D.modFromBytes=="boolean"&&(s=D.modFromBytes),o=D.allowedLengths}else typeof e=="number"&&(n=e),i.sqrt&&(a=i.sqrt);let{nBitLength:d,nByteLength:h}=fc(t,n);if(h>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let w,A=Object.freeze({ORDER:t,isLE:r,BITS:d,BYTES:h,MASK:(0,vi.bitMask)(d),ZERO:fi,ONE:xr,allowedLengths:o,create:D=>Ei(D,t),isValid:D=>{if(typeof D!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof D);return fi<=D&&D<t},is0:D=>D===fi,isValidNot0:D=>!A.is0(D)&&A.isValid(D),isOdd:D=>(D&xr)===xr,neg:D=>Ei(-D,t),eql:(D,I)=>D===I,sqr:D=>Ei(D*D,t),add:(D,I)=>Ei(D+I,t),sub:(D,I)=>Ei(D-I,t),mul:(D,I)=>Ei(D*I,t),pow:(D,I)=>uc(A,D,I),div:(D,I)=>Ei(D*rp(I,t),t),sqrN:D=>D*D,addN:(D,I)=>D+I,subN:(D,I)=>D-I,mulN:(D,I)=>D*I,inv:D=>rp(D,t),sqrt:a||(D=>(w||(w=km(t)),w(A,D))),toBytes:D=>r?(0,vi.numberToBytesLE)(D,h):(0,vi.numberToBytesBE)(D,h),fromBytes:(D,I=!0)=>{if(o){if(!o.includes(D.length)||D.length>h)throw new Error("Field.fromBytes: expected "+o+" bytes, got "+D.length);let F=new Uint8Array(h);F.set(D,r?0:F.length-D.length),D=F}if(D.length!==h)throw new Error("Field.fromBytes: expected "+h+" bytes, got "+D.length);let R=r?(0,vi.bytesToNumberLE)(D):(0,vi.bytesToNumberBE)(D);if(s&&(R=Ei(R,t)),!I&&!A.isValid(R))throw new Error("invalid field element: outside of range 0..ORDER");return R},invertBatch:D=>Dm(A,D),cmov:(D,I,R)=>R?I:D});return Object.freeze(A)}function SR(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");let r=t.sqrt(e);return t.isOdd(r)?r:t.neg(r)}function RR(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");let r=t.sqrt(e);return t.isOdd(r)?t.neg(r):r}function bR(t,e,r=!1){t=(0,vi.ensureBytes)("privateHash",t);let i=t.length,n=fc(e).nByteLength+8;if(n<24||i<n||i>1024)throw new Error("hashToPrivateScalar: expected "+n+"-1024 bytes of input, got "+i);let a=r?(0,vi.bytesToNumberLE)(t):(0,vi.bytesToNumberBE)(t);return Ei(a,e-xr)+xr}function hc(t){if(typeof t!="bigint")throw new Error("field order must be bigint");let e=t.toString(2).length;return Math.ceil(e/8)}function Bm(t){let e=hc(t);return e+Math.ceil(e/2)}function AR(t,e,r=!1){let i=t.length,n=hc(e),a=Bm(e);if(i<16||i<a||i>1024)throw new Error("expected "+a+"-1024 bytes of input, got "+i);let s=r?(0,vi.bytesToNumberLE)(t):(0,vi.bytesToNumberBE)(t),o=Ei(s,e-xr)+xr;return r?(0,vi.numberToBytesLE)(o,n):(0,vi.numberToBytesBE)(o,n)}});var ap=Ne(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.wNAF=void 0;Xi.negateCt=yc;Xi.normalizeZ=OR;Xi.mulEndoUnsafe=NR;Xi.pippenger=TR;Xi.precomputeMSMUnsafe=xR;Xi.validateBasic=IR;Xi._createCurveFields=CR;var p1=qn(),l1=Oa(),so=BigInt(0),cs=BigInt(1);function yc(t,e){let r=e.negate();return t?r:e}function OR(t,e){let r=(0,l1.FpInvertBatch)(t.Fp,e.map(i=>i.Z));return e.map((i,n)=>t.fromAffine(i.toAffine(r[n])))}function vc(t,e){if(!Number.isSafeInteger(t)||t<=0||t>e)throw new Error("invalid window size, expected [1.."+e+"], got W="+t)}function mc(t,e){vc(t,e);let r=Math.ceil(e/t)+1,i=2**(t-1),n=2**t,a=(0,p1.bitMask)(t),s=BigInt(t);return{windows:r,windowSize:i,mask:a,maxNumber:n,shiftBy:s}}function Pm(t,e,r){let{windowSize:i,mask:n,maxNumber:a,shiftBy:s}=r,o=Number(t&n),d=t>>s;o>i&&(o-=a,d+=cs);let h=e*i,w=h+Math.abs(o)-1,A=o===0,D=o<0,I=e%2!==0;return{nextN:d,offset:w,isZero:A,isNeg:D,isNegF:I,offsetF:h}}function Fm(t,e){if(!Array.isArray(t))throw new Error("array expected");t.forEach((r,i)=>{if(!(r instanceof e))throw new Error("invalid point at index "+i)})}function Vm(t,e){if(!Array.isArray(t))throw new Error("array of scalars expected");t.forEach((r,i)=>{if(!e.isValid(r))throw new Error("invalid scalar at index "+i)})}var _c=new WeakMap,$m=new WeakMap;function gc(t){return $m.get(t)||1}function Um(t){if(t!==so)throw new Error("invalid wNAF")}var Ec=class{constructor(e,r){this.BASE=e.BASE,this.ZERO=e.ZERO,this.Fn=e.Fn,this.bits=r}_unsafeLadder(e,r,i=this.ZERO){let n=e;for(;r>so;)r&cs&&(i=i.add(n)),n=n.double(),r>>=cs;return i}precomputeWindow(e,r){let{windows:i,windowSize:n}=mc(r,this.bits),a=[],s=e,o=s;for(let d=0;d<i;d++){o=s,a.push(o);for(let h=1;h<n;h++)o=o.add(s),a.push(o);s=o.double()}return a}wNAF(e,r,i){if(!this.Fn.isValid(i))throw new Error("invalid scalar");let n=this.ZERO,a=this.BASE,s=mc(e,this.bits);for(let o=0;o<s.windows;o++){let{nextN:d,offset:h,isZero:w,isNeg:A,isNegF:D,offsetF:I}=Pm(i,o,s);i=d,w?a=a.add(yc(D,r[I])):n=n.add(yc(A,r[h]))}return Um(i),{p:n,f:a}}wNAFUnsafe(e,r,i,n=this.ZERO){let a=mc(e,this.bits);for(let s=0;s<a.windows&&i!==so;s++){let{nextN:o,offset:d,isZero:h,isNeg:w}=Pm(i,s,a);if(i=o,!h){let A=r[d];n=n.add(w?A.negate():A)}}return Um(i),n}getPrecomputes(e,r,i){let n=_c.get(r);return n||(n=this.precomputeWindow(r,e),e!==1&&(typeof i=="function"&&(n=i(n)),_c.set(r,n))),n}cached(e,r,i){let n=gc(e);return this.wNAF(n,this.getPrecomputes(n,e,i),r)}unsafe(e,r,i,n){let a=gc(e);return a===1?this._unsafeLadder(e,r,n):this.wNAFUnsafe(a,this.getPrecomputes(a,e,i),r,n)}createCache(e,r){vc(r,this.bits),$m.set(e,r),_c.delete(e)}hasCache(e){return gc(e)!==1}};Xi.wNAF=Ec;function NR(t,e,r,i){let n=e,a=t.ZERO,s=t.ZERO;for(;r>so||i>so;)r&cs&&(a=a.add(n)),i&cs&&(s=s.add(n)),n=n.double(),r>>=cs,i>>=cs;return{p1:a,p2:s}}function TR(t,e,r,i){Fm(r,t),Vm(i,e);let n=r.length,a=i.length;if(n!==a)throw new Error("arrays of points and scalars must have equal length");let s=t.ZERO,o=(0,p1.bitLen)(BigInt(n)),d=1;o>12?d=o-3:o>4?d=o-2:o>0&&(d=2);let h=(0,p1.bitMask)(d),w=new Array(Number(h)+1).fill(s),A=Math.floor((e.BITS-1)/d)*d,D=s;for(let I=A;I>=0;I-=d){w.fill(s);for(let F=0;F<a;F++){let $=i[F],H=Number($>>BigInt(I)&h);w[H]=w[H].add(r[F])}let R=s;for(let F=w.length-1,$=s;F>0;F--)$=$.add(w[F]),R=R.add($);if(D=D.add(R),I!==0)for(let F=0;F<d;F++)D=D.double()}return D}function xR(t,e,r,i){vc(i,e.BITS),Fm(r,t);let n=t.ZERO,a=2**i-1,s=Math.ceil(e.BITS/i),o=(0,p1.bitMask)(i),d=r.map(h=>{let w=[];for(let A=0,D=h;A<a;A++)w.push(D),D=D.add(h);return w});return h=>{if(Vm(h,e),h.length>r.length)throw new Error("array of scalars must be smaller than array of points");let w=n;for(let A=0;A<s;A++){if(w!==n)for(let I=0;I<i;I++)w=w.double();let D=BigInt(s*i-(A+1)*i);for(let I=0;I<h.length;I++){let R=h[I],F=Number(R>>D&o);F&&(w=w.add(d[I][F-1]))}}return w}}function IR(t){return(0,l1.validateField)(t.Fp),(0,p1.validateObject)(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,l1.nLength)(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}function Mm(t,e,r){if(e){if(e.ORDER!==t)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return(0,l1.validateField)(e),e}else return(0,l1.Field)(t,{isLE:r})}function CR(t,e,r={},i){if(i===void 0&&(i=t==="edwards"),!e||typeof e!="object")throw new Error(`expected valid ${t} CURVE object`);for(let d of["p","n","h"]){let h=e[d];if(!(typeof h=="bigint"&&h>so))throw new Error(`CURVE.${d} must be positive bigint`)}let n=Mm(e.p,r.Fp,i),a=Mm(e.n,r.Fn,i),o=["Gx","Gy","a",t==="weierstrass"?"b":"d"];for(let d of o)if(!n.isValid(e[d]))throw new Error(`CURVE.${d} must be valid field element of CURVE.Fp`);return e=Object.freeze(Object.assign({},e)),{CURVE:e,Fp:n,Fn:a}}});var Gm=Ne(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.PrimeEdwardsPoint=void 0;fs.edwards=zm;fs.eddsa=Hm;fs.twistedEdwards=UR;var bt=qn(),us=ap(),LR=Oa(),Na=BigInt(0),Ur=BigInt(1),wc=BigInt(2),kR=BigInt(8);function DR(t,e,r,i){let n=t.sqr(r),a=t.sqr(i),s=t.add(t.mul(e.a,n),a),o=t.add(t.ONE,t.mul(e.d,t.mul(n,a)));return t.eql(s,o)}function zm(t,e={}){let r=(0,us._createCurveFields)("edwards",t,e,e.FpFnLE),{Fp:i,Fn:n}=r,a=r.CURVE,{h:s}=a;(0,bt._validateObject)(e,{},{uvRatio:"function"});let o=wc<<BigInt(n.BYTES*8)-Ur,d=$=>i.create($),h=e.uvRatio||(($,H)=>{try{return{isValid:!0,value:i.sqrt(i.div($,H))}}catch{return{isValid:!1,value:Na}}});if(!DR(i,a,a.Gx,a.Gy))throw new Error("bad curve params: generator point");function w($,H,L=!1){let q=L?Ur:Na;return(0,bt.aInRange)("coordinate "+$,H,q,o),H}function A($){if(!($ instanceof R))throw new Error("ExtendedPoint expected")}let D=(0,bt.memoized)(($,H)=>{let{X:L,Y:q,Z:W}=$,se=$.is0();H==null&&(H=se?kR:i.inv(W));let N=d(L*H),O=d(q*H),c=i.mul(W,H);if(se)return{x:Na,y:Ur};if(c!==Ur)throw new Error("invZ was invalid");return{x:N,y:O}}),I=(0,bt.memoized)($=>{let{a:H,d:L}=a;if($.is0())throw new Error("bad point: ZERO");let{X:q,Y:W,Z:se,T:N}=$,O=d(q*q),c=d(W*W),m=d(se*se),v=d(m*m),T=d(O*H),P=d(m*d(T+c)),_=d(v+d(L*d(O*c)));if(P!==_)throw new Error("bad point: equation left != right (1)");let p=d(q*W),l=d(se*N);if(p!==l)throw new Error("bad point: equation left != right (2)");return!0});class R{constructor(H,L,q,W){this.X=w("x",H),this.Y=w("y",L),this.Z=w("z",q,!0),this.T=w("t",W),Object.freeze(this)}static CURVE(){return a}static fromAffine(H){if(H instanceof R)throw new Error("extended point not allowed");let{x:L,y:q}=H||{};return w("x",L),w("y",q),new R(L,q,Ur,d(L*q))}static fromBytes(H,L=!1){let q=i.BYTES,{a:W,d:se}=a;H=(0,bt.copyBytes)((0,bt._abytes2)(H,q,"point")),(0,bt._abool2)(L,"zip215");let N=(0,bt.copyBytes)(H),O=H[q-1];N[q-1]=O&-129;let c=(0,bt.bytesToNumberLE)(N),m=L?o:i.ORDER;(0,bt.aInRange)("point.y",c,Na,m);let v=d(c*c),T=d(v-Ur),P=d(se*v-W),{isValid:_,value:p}=h(T,P);if(!_)throw new Error("bad point: invalid y coordinate");let l=(p&Ur)===Ur,g=(O&128)!==0;if(!L&&p===Na&&g)throw new Error("bad point: x=0 and x_0=1");return g!==l&&(p=d(-p)),R.fromAffine({x:p,y:c})}static fromHex(H,L=!1){return R.fromBytes((0,bt.ensureBytes)("point",H),L)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(H=8,L=!0){return F.createCache(this,H),L||this.multiply(wc),this}assertValidity(){I(this)}equals(H){A(H);let{X:L,Y:q,Z:W}=this,{X:se,Y:N,Z:O}=H,c=d(L*O),m=d(se*W),v=d(q*O),T=d(N*W);return c===m&&v===T}is0(){return this.equals(R.ZERO)}negate(){return new R(d(-this.X),this.Y,this.Z,d(-this.T))}double(){let{a:H}=a,{X:L,Y:q,Z:W}=this,se=d(L*L),N=d(q*q),O=d(wc*d(W*W)),c=d(H*se),m=L+q,v=d(d(m*m)-se-N),T=c+N,P=T-O,_=c-N,p=d(v*P),l=d(T*_),g=d(v*_),E=d(P*T);return new R(p,l,E,g)}add(H){A(H);let{a:L,d:q}=a,{X:W,Y:se,Z:N,T:O}=this,{X:c,Y:m,Z:v,T}=H,P=d(W*c),_=d(se*m),p=d(O*q*T),l=d(N*v),g=d((W+se)*(c+m)-P-_),E=l-p,S=l+p,C=d(_-L*P),V=d(g*E),x=d(S*C),y=d(g*C),M=d(E*S);return new R(V,x,M,y)}subtract(H){return this.add(H.negate())}multiply(H){if(!n.isValidNot0(H))throw new Error("invalid scalar: expected 1 <= sc < curve.n");let{p:L,f:q}=F.cached(this,H,W=>(0,us.normalizeZ)(R,W));return(0,us.normalizeZ)(R,[L,q])[0]}multiplyUnsafe(H,L=R.ZERO){if(!n.isValid(H))throw new Error("invalid scalar: expected 0 <= sc < curve.n");return H===Na?R.ZERO:this.is0()||H===Ur?this:F.unsafe(this,H,q=>(0,us.normalizeZ)(R,q),L)}isSmallOrder(){return this.multiplyUnsafe(s).is0()}isTorsionFree(){return F.unsafe(this,a.n).is0()}toAffine(H){return D(this,H)}clearCofactor(){return s===Ur?this:this.multiplyUnsafe(s)}toBytes(){let{x:H,y:L}=this.toAffine(),q=i.toBytes(L);return q[q.length-1]|=H&Ur?128:0,q}toHex(){return(0,bt.bytesToHex)(this.toBytes())}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get ex(){return this.X}get ey(){return this.Y}get ez(){return this.Z}get et(){return this.T}static normalizeZ(H){return(0,us.normalizeZ)(R,H)}static msm(H,L){return(0,us.pippenger)(R,n,H,L)}_setWindowSize(H){this.precompute(H)}toRawBytes(){return this.toBytes()}}R.BASE=new R(a.Gx,a.Gy,Ur,d(a.Gx*a.Gy)),R.ZERO=new R(Na,Ur,Ur,Na),R.Fp=i,R.Fn=n;let F=new us.wNAF(R,n.BITS);return R.BASE.precompute(8),R}var Sc=class{constructor(e){this.ep=e}static fromBytes(e){(0,bt.notImplemented)()}static fromHex(e){(0,bt.notImplemented)()}get x(){return this.toAffine().x}get y(){return this.toAffine().y}clearCofactor(){return this}assertValidity(){this.ep.assertValidity()}toAffine(e){return this.ep.toAffine(e)}toHex(){return(0,bt.bytesToHex)(this.toBytes())}toString(){return this.toHex()}isTorsionFree(){return!0}isSmallOrder(){return!1}add(e){return this.assertSame(e),this.init(this.ep.add(e.ep))}subtract(e){return this.assertSame(e),this.init(this.ep.subtract(e.ep))}multiply(e){return this.init(this.ep.multiply(e))}multiplyUnsafe(e){return this.init(this.ep.multiplyUnsafe(e))}double(){return this.init(this.ep.double())}negate(){return this.init(this.ep.negate())}precompute(e,r){return this.init(this.ep.precompute(e,r))}toRawBytes(){return this.toBytes()}};fs.PrimeEdwardsPoint=Sc;function Hm(t,e,r={}){if(typeof e!="function")throw new Error('"hash" function param is required');(0,bt._validateObject)(r,{},{adjustScalarBytes:"function",randomBytes:"function",domain:"function",prehash:"function",mapToCurve:"function"});let{prehash:i}=r,{BASE:n,Fp:a,Fn:s}=t,o=r.randomBytes||bt.randomBytes,d=r.adjustScalarBytes||(m=>m),h=r.domain||((m,v,T)=>{if((0,bt._abool2)(T,"phflag"),v.length||T)throw new Error("Contexts/pre-hash are not supported");return m});function w(m){return s.create((0,bt.bytesToNumberLE)(m))}function A(m){let v=q.secretKey;m=(0,bt.ensureBytes)("private key",m,v);let T=(0,bt.ensureBytes)("hashed private key",e(m),2*v),P=d(T.slice(0,v)),_=T.slice(v,2*v),p=w(P);return{head:P,prefix:_,scalar:p}}function D(m){let{head:v,prefix:T,scalar:P}=A(m),_=n.multiply(P),p=_.toBytes();return{head:v,prefix:T,scalar:P,point:_,pointBytes:p}}function I(m){return D(m).pointBytes}function R(m=Uint8Array.of(),...v){let T=(0,bt.concatBytes)(...v);return w(e(h(T,(0,bt.ensureBytes)("context",m),!!i)))}function F(m,v,T={}){m=(0,bt.ensureBytes)("message",m),i&&(m=i(m));let{prefix:P,scalar:_,pointBytes:p}=D(v),l=R(T.context,P,m),g=n.multiply(l).toBytes(),E=R(T.context,g,p,m),S=s.create(l+E*_);if(!s.isValid(S))throw new Error("sign failed: invalid s");let C=(0,bt.concatBytes)(g,s.toBytes(S));return(0,bt._abytes2)(C,q.signature,"result")}let $={zip215:!0};function H(m,v,T,P=$){let{context:_,zip215:p}=P,l=q.signature;m=(0,bt.ensureBytes)("signature",m,l),v=(0,bt.ensureBytes)("message",v),T=(0,bt.ensureBytes)("publicKey",T,q.publicKey),p!==void 0&&(0,bt._abool2)(p,"zip215"),i&&(v=i(v));let g=l/2,E=m.subarray(0,g),S=(0,bt.bytesToNumberLE)(m.subarray(g,l)),C,V,x;try{C=t.fromBytes(T,p),V=t.fromBytes(E,p),x=n.multiplyUnsafe(S)}catch{return!1}if(!p&&C.isSmallOrder())return!1;let y=R(_,V.toBytes(),C.toBytes(),v);return V.add(C.multiplyUnsafe(y)).subtract(x).clearCofactor().is0()}let L=a.BYTES,q={secretKey:L,publicKey:L,signature:2*L,seed:L};function W(m=o(q.seed)){return(0,bt._abytes2)(m,q.seed,"seed")}function se(m){let v=c.randomSecretKey(m);return{secretKey:v,publicKey:I(v)}}function N(m){return(0,bt.isBytes)(m)&&m.length===s.BYTES}function O(m,v){try{return!!t.fromBytes(m,v)}catch{return!1}}let c={getExtendedPublicKey:D,randomSecretKey:W,isValidSecretKey:N,isValidPublicKey:O,toMontgomery(m){let{y:v}=t.fromBytes(m),T=q.publicKey,P=T===32;if(!P&&T!==57)throw new Error("only defined for 25519 and 448");let _=P?a.div(Ur+v,Ur-v):a.div(v-Ur,v+Ur);return a.toBytes(_)},toMontgomerySecret(m){let v=q.secretKey;(0,bt._abytes2)(m,v);let T=e(m.subarray(0,v));return d(T).subarray(0,v)},randomPrivateKey:W,precompute(m=8,v=t.BASE){return v.precompute(m,!1)}};return Object.freeze({keygen:se,getPublicKey:I,sign:F,verify:H,utils:c,Point:t,lengths:q})}function BR(t){let e={a:t.a,d:t.d,p:t.Fp.ORDER,n:t.n,h:t.h,Gx:t.Gx,Gy:t.Gy},r=t.Fp,i=(0,LR.Field)(e.n,t.nBitLength,!0),n={Fp:r,Fn:i,uvRatio:t.uvRatio},a={randomBytes:t.randomBytes,adjustScalarBytes:t.adjustScalarBytes,domain:t.domain,prehash:t.prehash,mapToCurve:t.mapToCurve};return{CURVE:e,curveOpts:n,hash:t.hash,eddsaOpts:a}}function PR(t,e){let r=e.Point;return Object.assign({},e,{ExtendedPoint:r,CURVE:t,nBitLength:r.Fn.BITS,nByteLength:r.Fn.BYTES})}function UR(t){let{CURVE:e,curveOpts:r,hash:i,eddsaOpts:n}=BR(t),a=zm(e,r),s=Hm(a,i,n);return PR(t,s)}});var Rc=Ne(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En._DST_scalar=void 0;En.expand_message_xmd=Km;En.expand_message_xof=Wm;En.hash_to_field=sp;En.isogenyMap=VR;En.createHasher=$R;var Kr=qn(),qm=Oa(),MR=Kr.bytesToNumberBE;function Ta(t,e){if(c1(t),c1(e),t<0||t>=1<<8*e)throw new Error("invalid I2OSP input: "+t);let r=Array.from({length:e}).fill(0);for(let i=e-1;i>=0;i--)r[i]=t&255,t>>>=8;return new Uint8Array(r)}function FR(t,e){let r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t[i]^e[i];return r}function c1(t){if(!Number.isSafeInteger(t))throw new Error("number expected")}function jm(t){if(!(0,Kr.isBytes)(t)&&typeof t!="string")throw new Error("DST must be Uint8Array or string");return typeof t=="string"?(0,Kr.utf8ToBytes)(t):t}function Km(t,e,r,i){(0,Kr.abytes)(t),c1(r),e=jm(e),e.length>255&&(e=i((0,Kr.concatBytes)((0,Kr.utf8ToBytes)("H2C-OVERSIZE-DST-"),e)));let{outputLen:n,blockLen:a}=i,s=Math.ceil(r/n);if(r>65535||s>255)throw new Error("expand_message_xmd: invalid lenInBytes");let o=(0,Kr.concatBytes)(e,Ta(e.length,1)),d=Ta(0,a),h=Ta(r,2),w=new Array(s),A=i((0,Kr.concatBytes)(d,t,h,Ta(0,1),o));w[0]=i((0,Kr.concatBytes)(A,Ta(1,1),o));for(let I=1;I<=s;I++){let R=[FR(A,w[I-1]),Ta(I+1,1),o];w[I]=i((0,Kr.concatBytes)(...R))}return(0,Kr.concatBytes)(...w).slice(0,r)}function Wm(t,e,r,i,n){if((0,Kr.abytes)(t),c1(r),e=jm(e),e.length>255){let a=Math.ceil(2*i/8);e=n.create({dkLen:a}).update((0,Kr.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(e).digest()}if(r>65535||e.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return n.create({dkLen:r}).update(t).update(Ta(r,2)).update(e).update(Ta(e.length,1)).digest()}function sp(t,e,r){(0,Kr._validateObject)(r,{p:"bigint",m:"number",k:"number",hash:"function"});let{p:i,k:n,m:a,hash:s,expand:o,DST:d}=r;if(!(0,Kr.isHash)(r.hash))throw new Error("expected valid hash");(0,Kr.abytes)(t),c1(e);let h=i.toString(2).length,w=Math.ceil((h+n)/8),A=e*a*w,D;if(o==="xmd")D=Km(t,d,A,s);else if(o==="xof")D=Wm(t,d,A,n,s);else if(o==="_internal_pass")D=t;else throw new Error('expand must be "xmd" or "xof"');let I=new Array(e);for(let R=0;R<e;R++){let F=new Array(a);for(let $=0;$<a;$++){let H=w*($+R*a),L=D.subarray(H,H+w);F[$]=(0,qm.mod)(MR(L),i)}I[R]=F}return I}function VR(t,e){let r=e.map(i=>Array.from(i).reverse());return(i,n)=>{let[a,s,o,d]=r.map(A=>A.reduce((D,I)=>t.add(t.mul(D,i),I))),[h,w]=(0,qm.FpInvertBatch)(t,[s,d],!0);return i=t.mul(a,h),n=t.mul(n,t.mul(o,w)),{x:i,y:n}}}En._DST_scalar=(0,Kr.utf8ToBytes)("HashToScalar-");function $R(t,e,r){if(typeof e!="function")throw new Error("mapToCurve() must be defined");function i(a){return t.fromAffine(e(a))}function n(a){let s=a.clearCofactor();return s.equals(t.ZERO)?t.ZERO:(s.assertValidity(),s)}return{defaults:r,hashToCurve(a,s){let o=Object.assign({},r,s),d=sp(a,2,o),h=i(d[0]),w=i(d[1]);return n(h.add(w))},encodeToCurve(a,s){let o=r.encodeDST?{DST:r.encodeDST}:{},d=Object.assign({},r,o,s),h=sp(a,1,d),w=i(h[0]);return n(w)},mapToCurve(a){if(!Array.isArray(a))throw new Error("expected array of bigints");for(let s of a)if(typeof s!="bigint")throw new Error("expected array of bigints");return n(i(a))},hashToScalar(a,s){let o=t.Fn.ORDER,d=Object.assign({},r,{p:o,m:1,DST:En._DST_scalar},s);return sp(a,1,d)[0][0]}}}});var Ym=Ne(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});bc.montgomery=GR;var vn=qn(),zR=Oa(),u1=BigInt(0),oo=BigInt(1),op=BigInt(2);function HR(t){return(0,vn._validateObject)(t,{adjustScalarBytes:"function",powPminus2:"function"}),Object.freeze({...t})}function GR(t){let e=HR(t),{P:r,type:i,adjustScalarBytes:n,powPminus2:a,randomBytes:s}=e,o=i==="x25519";if(!o&&i!=="x448")throw new Error("invalid type");let d=s||vn.randomBytes,h=o?255:448,w=o?32:56,A=BigInt(o?9:5),D=BigInt(o?121665:39081),I=o?op**BigInt(254):op**BigInt(447),R=o?BigInt(8)*op**BigInt(251)-oo:BigInt(4)*op**BigInt(445)-oo,F=I+R+oo,$=_=>(0,zR.mod)(_,r),H=L(A);function L(_){return(0,vn.numberToBytesLE)($(_),w)}function q(_){let p=(0,vn.ensureBytes)("u coordinate",_,w);return o&&(p[31]&=127),$((0,vn.bytesToNumberLE)(p))}function W(_){return(0,vn.bytesToNumberLE)(n((0,vn.ensureBytes)("scalar",_,w)))}function se(_,p){let l=c(q(p),W(_));if(l===u1)throw new Error("invalid private or public key received");return L(l)}function N(_){return se(_,H)}function O(_,p,l){let g=$(_*(p-l));return p=$(p-g),l=$(l+g),{x_2:p,x_3:l}}function c(_,p){(0,vn.aInRange)("u",_,u1,r),(0,vn.aInRange)("scalar",p,I,F);let l=p,g=_,E=oo,S=u1,C=_,V=oo,x=u1;for(let M=BigInt(h-1);M>=u1;M--){let te=l>>M&oo;x^=te,{x_2:E,x_3:C}=O(x,E,C),{x_2:S,x_3:V}=O(x,S,V),x=te;let re=E+S,oe=$(re*re),me=E-S,Ce=$(me*me),Te=oe-Ce,gt=C+V,Fe=C-V,tt=$(Fe*re),er=$(gt*me),rt=tt+er,Pe=tt-er;C=$(rt*rt),V=$(g*$(Pe*Pe)),E=$(oe*Ce),S=$(Te*(oe+$(D*Te)))}({x_2:E,x_3:C}=O(x,E,C)),{x_2:S,x_3:V}=O(x,S,V);let y=a(S);return $(E*y)}let m={secretKey:w,publicKey:w,seed:w},v=(_=d(w))=>((0,vn.abytes)(_,m.seed),_);function T(_){let p=v(_);return{secretKey:p,publicKey:N(p)}}return{keygen:T,getSharedSecret:(_,p)=>se(_,p),getPublicKey:_=>N(_),scalarMult:se,scalarMultBase:N,utils:{randomSecretKey:v,randomPrivateKey:v},GuBytes:H.slice(),lengths:m}}});var o6=Ne(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.hash_to_ristretto255=et.hashToRistretto255=et.encodeToCurve=et.hashToCurve=et.RistrettoPoint=et.edwardsToMontgomery=et.ED25519_TORSION_SUBGROUP=et.ristretto255_hasher=et.ristretto255=et.ed25519_hasher=et.x25519=et.ed25519ph=et.ed25519ctx=et.ed25519=void 0;et.edwardsToMontgomeryPub=s6;et.edwardsToMontgomeryPriv=nb;var f1=ep(),pp=_n(),qR=ap(),cp=Gm(),dp=Rc(),xt=Oa(),jR=Ym(),hs=qn(),KR=BigInt(0),wn=BigInt(1),lp=BigInt(2),Qm=BigInt(3),e6=BigInt(5),Tc=BigInt(8),jn=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed"),h1={p:jn,n:BigInt("0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed"),h:Tc,a:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec"),d:BigInt("0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3"),Gx:BigInt("0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a"),Gy:BigInt("0x6666666666666666666666666666666666666666666666666666666666666658")};function t6(t){let e=BigInt(10),r=BigInt(20),i=BigInt(40),n=BigInt(80),a=jn,o=t*t%a*t%a,d=(0,xt.pow2)(o,lp,a)*o%a,h=(0,xt.pow2)(d,wn,a)*t%a,w=(0,xt.pow2)(h,e6,a)*h%a,A=(0,xt.pow2)(w,e,a)*w%a,D=(0,xt.pow2)(A,r,a)*A%a,I=(0,xt.pow2)(D,i,a)*D%a,R=(0,xt.pow2)(I,n,a)*I%a,F=(0,xt.pow2)(R,n,a)*I%a,$=(0,xt.pow2)(F,e,a)*w%a;return{pow_p_5_8:(0,xt.pow2)($,lp,a)*t%a,b2:o}}function r6(t){return t[0]&=248,t[31]&=127,t[31]|=64,t}var Ac=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");function xc(t,e){let r=jn,i=(0,xt.mod)(e*e*e,r),n=(0,xt.mod)(i*i*e,r),a=t6(t*n).pow_p_5_8,s=(0,xt.mod)(t*i*a,r),o=(0,xt.mod)(e*s*s,r),d=s,h=(0,xt.mod)(s*Ac,r),w=o===t,A=o===(0,xt.mod)(-t,r),D=o===(0,xt.mod)(-t*Ac,r);return w&&(s=d),(A||D)&&(s=h),(0,xt.isNegativeLE)(s,r)&&(s=(0,xt.mod)(-s,r)),{isValid:w||A,value:s}}var we=(0,xt.Field)(h1.p,{isLE:!0}),i6=(0,xt.Field)(h1.n,{isLE:!0}),Ic={...h1,Fp:we,hash:f1.sha512,adjustScalarBytes:r6,uvRatio:xc};et.ed25519=(0,cp.twistedEdwards)(Ic);function n6(t,e,r){if(e.length>255)throw new Error("Context is too big");return(0,pp.concatBytes)((0,pp.utf8ToBytes)("SigEd25519 no Ed25519 collisions"),new Uint8Array([r?1:0,e.length]),e,t)}et.ed25519ctx=(0,cp.twistedEdwards)({...Ic,domain:n6});et.ed25519ph=(0,cp.twistedEdwards)(Object.assign({},Ic,{domain:n6,prehash:f1.sha512}));et.x25519=(()=>{let t=we.ORDER;return(0,jR.montgomery)({P:t,type:"x25519",powPminus2:e=>{let{pow_p_5_8:r,b2:i}=t6(e);return(0,xt.mod)((0,xt.pow2)(r,Qm,t)*i,t)},adjustScalarBytes:r6})})();var WR=(jn+Qm)/Tc,YR=we.pow(lp,WR),Xm=we.sqrt(we.neg(we.ONE));function XR(t){let e=(jn-e6)/Tc,r=BigInt(486662),i=we.sqr(t);i=we.mul(i,lp);let n=we.add(i,we.ONE),a=we.neg(r),s=we.sqr(n),o=we.mul(s,n),d=we.mul(i,r);d=we.mul(d,a),d=we.add(d,s),d=we.mul(d,a);let h=we.sqr(o);s=we.sqr(h),h=we.mul(h,o),h=we.mul(h,d),s=we.mul(s,h);let w=we.pow(s,e);w=we.mul(w,h);let A=we.mul(w,Xm);s=we.sqr(w),s=we.mul(s,o);let D=we.eql(s,d),I=we.cmov(A,w,D),R=we.mul(a,i),F=we.mul(w,t);F=we.mul(F,YR);let $=we.mul(F,Xm),H=we.mul(d,i);s=we.sqr(F),s=we.mul(s,o);let L=we.eql(s,H),q=we.cmov($,F,L);s=we.sqr(I),s=we.mul(s,o);let W=we.eql(s,d),se=we.cmov(R,a,W),N=we.cmov(q,I,W),O=we.isOdd(N);return N=we.cmov(N,we.neg(N),W!==O),{xMn:se,xMd:n,yMn:N,yMd:wn}}var ZR=(0,xt.FpSqrtEven)(we,we.neg(BigInt(486664)));function JR(t){let{xMn:e,xMd:r,yMn:i,yMd:n}=XR(t),a=we.mul(e,n);a=we.mul(a,ZR);let s=we.mul(r,i),o=we.sub(e,r),d=we.add(e,r),h=we.mul(s,d),w=we.eql(h,we.ZERO);a=we.cmov(a,we.ZERO,w),s=we.cmov(s,we.ONE,w),o=we.cmov(o,we.ONE,w),d=we.cmov(d,we.ONE,w);let[A,D]=(0,xt.FpInvertBatch)(we,[s,d],!0);return{x:we.mul(a,A),y:we.mul(o,D)}}et.ed25519_hasher=(0,dp.createHasher)(et.ed25519.Point,t=>JR(t[0]),{DST:"edwards25519_XMD:SHA-512_ELL2_RO_",encodeDST:"edwards25519_XMD:SHA-512_ELL2_NU_",p:jn,m:1,k:128,expand:"xmd",hash:f1.sha512});var Oc=Ac,QR=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),eb=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),tb=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),rb=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),Zm=t=>xc(wn,t),ib=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),Nc=t=>et.ed25519.Point.Fp.create((0,hs.bytesToNumberLE)(t)&ib);function Jm(t){let{d:e}=h1,r=jn,i=H=>we.create(H),n=i(Oc*t*t),a=i((n+wn)*tb),s=BigInt(-1),o=i((s-e*n)*i(n+e)),{isValid:d,value:h}=xc(a,o),w=i(h*t);(0,xt.isNegativeLE)(w,r)||(w=i(-w)),d||(h=w),d||(s=n);let A=i(s*(n-wn)*rb-o),D=h*h,I=i((h+h)*o),R=i(A*QR),F=i(wn-D),$=i(wn+D);return new et.ed25519.Point(i(I*$),i(F*R),i(R*$),i(I*F))}function a6(t){(0,pp.abytes)(t,64);let e=Nc(t.subarray(0,32)),r=Jm(e),i=Nc(t.subarray(32,64)),n=Jm(i);return new Zi(r.add(n))}var Zi=class t extends cp.PrimeEdwardsPoint{constructor(e){super(e)}static fromAffine(e){return new t(et.ed25519.Point.fromAffine(e))}assertSame(e){if(!(e instanceof t))throw new Error("RistrettoPoint expected")}init(e){return new t(e)}static hashToCurve(e){return a6((0,hs.ensureBytes)("ristrettoHash",e,64))}static fromBytes(e){(0,pp.abytes)(e,32);let{a:r,d:i}=h1,n=jn,a=W=>we.create(W),s=Nc(e);if(!(0,hs.equalBytes)(we.toBytes(s),e)||(0,xt.isNegativeLE)(s,n))throw new Error("invalid ristretto255 encoding 1");let o=a(s*s),d=a(wn+r*o),h=a(wn-r*o),w=a(d*d),A=a(h*h),D=a(r*i*w-A),{isValid:I,value:R}=Zm(a(D*A)),F=a(R*h),$=a(R*F*D),H=a((s+s)*F);(0,xt.isNegativeLE)(H,n)&&(H=a(-H));let L=a(d*$),q=a(H*L);if(!I||(0,xt.isNegativeLE)(q,n)||L===KR)throw new Error("invalid ristretto255 encoding 2");return new t(new et.ed25519.Point(H,L,wn,q))}static fromHex(e){return t.fromBytes((0,hs.ensureBytes)("ristrettoHex",e,32))}static msm(e,r){return(0,qR.pippenger)(t,et.ed25519.Point.Fn,e,r)}toBytes(){let{X:e,Y:r,Z:i,T:n}=this.ep,a=jn,s=$=>we.create($),o=s(s(i+r)*s(i-r)),d=s(e*r),h=s(d*d),{value:w}=Zm(s(o*h)),A=s(w*o),D=s(w*d),I=s(A*D*n),R;if((0,xt.isNegativeLE)(n*I,a)){let $=s(r*Oc),H=s(e*Oc);e=$,r=H,R=s(A*eb)}else R=D;(0,xt.isNegativeLE)(e*I,a)&&(r=s(-r));let F=s((i-r)*R);return(0,xt.isNegativeLE)(F,a)&&(F=s(-F)),we.toBytes(F)}equals(e){this.assertSame(e);let{X:r,Y:i}=this.ep,{X:n,Y:a}=e.ep,s=h=>we.create(h),o=s(r*a)===s(i*n),d=s(i*a)===s(r*n);return o||d}is0(){return this.equals(t.ZERO)}};Zi.BASE=new Zi(et.ed25519.Point.BASE);Zi.ZERO=new Zi(et.ed25519.Point.ZERO);Zi.Fp=we;Zi.Fn=i6;et.ristretto255={Point:Zi};et.ristretto255_hasher={hashToCurve(t,e){let r=e?.DST||"ristretto255_XMD:SHA-512_R255MAP_RO_",i=(0,dp.expand_message_xmd)(t,r,64,f1.sha512);return a6(i)},hashToScalar(t,e={DST:dp._DST_scalar}){let r=(0,dp.expand_message_xmd)(t,e.DST,64,f1.sha512);return i6.create((0,hs.bytesToNumberLE)(r))}};et.ED25519_TORSION_SUBGROUP=["0100000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a","0000000000000000000000000000000000000000000000000000000000000080","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05","ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85","0000000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa"];function s6(t){return et.ed25519.utils.toMontgomery((0,hs.ensureBytes)("pub",t))}et.edwardsToMontgomery=s6;function nb(t){return et.ed25519.utils.toMontgomerySecret((0,hs.ensureBytes)("pub",t))}et.RistrettoPoint=Zi;et.hashToCurve=et.ed25519_hasher.hashToCurve;et.encodeToCurve=et.ed25519_hasher.encodeToCurve;et.hashToRistretto255=et.ristretto255_hasher.hashToCurve;et.hash_to_ristretto255=et.ristretto255_hasher.hashToCurve});var Lc=Ne((d6,Cc)=>{(function(t,e){"use strict";function r(_,p){if(!_)throw new Error(p||"Assertion failed")}function i(_,p){_.super_=p;var l=function(){};l.prototype=p.prototype,_.prototype=new l,_.prototype.constructor=_}function n(_,p,l){if(n.isBN(_))return _;this.negative=0,this.words=null,this.length=0,this.red=null,_!==null&&((p==="le"||p==="be")&&(l=p,p=10),this._init(_||0,p||10,l||"be"))}typeof t=="object"?t.exports=n:e.BN=n,n.BN=n,n.wordSize=26;var a;try{typeof window<"u"&&typeof window.Buffer<"u"?a=window.Buffer:a=Xe("buffer").Buffer}catch{}n.isBN=function(p){return p instanceof n?!0:p!==null&&typeof p=="object"&&p.constructor.wordSize===n.wordSize&&Array.isArray(p.words)},n.max=function(p,l){return p.cmp(l)>0?p:l},n.min=function(p,l){return p.cmp(l)<0?p:l},n.prototype._init=function(p,l,g){if(typeof p=="number")return this._initNumber(p,l,g);if(typeof p=="object")return this._initArray(p,l,g);l==="hex"&&(l=16),r(l===(l|0)&&l>=2&&l<=36),p=p.toString().replace(/\s+/g,"");var E=0;p[0]==="-"&&(E++,this.negative=1),E<p.length&&(l===16?this._parseHex(p,E,g):(this._parseBase(p,l,E),g==="le"&&this._initArray(this.toArray(),l,g)))},n.prototype._initNumber=function(p,l,g){p<0&&(this.negative=1,p=-p),p<67108864?(this.words=[p&67108863],this.length=1):p<4503599627370496?(this.words=[p&67108863,p/67108864&67108863],this.length=2):(r(p<9007199254740992),this.words=[p&67108863,p/67108864&67108863,1],this.length=3),g==="le"&&this._initArray(this.toArray(),l,g)},n.prototype._initArray=function(p,l,g){if(r(typeof p.length=="number"),p.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(p.length/3),this.words=new Array(this.length);for(var E=0;E<this.length;E++)this.words[E]=0;var S,C,V=0;if(g==="be")for(E=p.length-1,S=0;E>=0;E-=3)C=p[E]|p[E-1]<<8|p[E-2]<<16,this.words[S]|=C<<V&67108863,this.words[S+1]=C>>>26-V&67108863,V+=24,V>=26&&(V-=26,S++);else if(g==="le")for(E=0,S=0;E<p.length;E+=3)C=p[E]|p[E+1]<<8|p[E+2]<<16,this.words[S]|=C<<V&67108863,this.words[S+1]=C>>>26-V&67108863,V+=24,V>=26&&(V-=26,S++);return this._strip()};function s(_,p){var l=_.charCodeAt(p);if(l>=48&&l<=57)return l-48;if(l>=65&&l<=70)return l-55;if(l>=97&&l<=102)return l-87;r(!1,"Invalid character in "+_)}function o(_,p,l){var g=s(_,l);return l-1>=p&&(g|=s(_,l-1)<<4),g}n.prototype._parseHex=function(p,l,g){this.length=Math.ceil((p.length-l)/6),this.words=new Array(this.length);for(var E=0;E<this.length;E++)this.words[E]=0;var S=0,C=0,V;if(g==="be")for(E=p.length-1;E>=l;E-=2)V=o(p,l,E)<<S,this.words[C]|=V&67108863,S>=18?(S-=18,C+=1,this.words[C]|=V>>>26):S+=8;else{var x=p.length-l;for(E=x%2===0?l+1:l;E<p.length;E+=2)V=o(p,l,E)<<S,this.words[C]|=V&67108863,S>=18?(S-=18,C+=1,this.words[C]|=V>>>26):S+=8}this._strip()};function d(_,p,l,g){for(var E=0,S=0,C=Math.min(_.length,l),V=p;V<C;V++){var x=_.charCodeAt(V)-48;E*=g,x>=49?S=x-49+10:x>=17?S=x-17+10:S=x,r(x>=0&&S<g,"Invalid character"),E+=S}return E}n.prototype._parseBase=function(p,l,g){this.words=[0],this.length=1;for(var E=0,S=1;S<=67108863;S*=l)E++;E--,S=S/l|0;for(var C=p.length-g,V=C%E,x=Math.min(C,C-V)+g,y=0,M=g;M<x;M+=E)y=d(p,M,M+E,l),this.imuln(S),this.words[0]+y<67108864?this.words[0]+=y:this._iaddn(y);if(V!==0){var te=1;for(y=d(p,M,p.length,l),M=0;M<V;M++)te*=l;this.imuln(te),this.words[0]+y<67108864?this.words[0]+=y:this._iaddn(y)}this._strip()},n.prototype.copy=function(p){p.words=new Array(this.length);for(var l=0;l<this.length;l++)p.words[l]=this.words[l];p.length=this.length,p.negative=this.negative,p.red=this.red};function h(_,p){_.words=p.words,_.length=p.length,_.negative=p.negative,_.red=p.red}if(n.prototype._move=function(p){h(p,this)},n.prototype.clone=function(){var p=new n(null);return this.copy(p),p},n.prototype._expand=function(p){for(;this.length<p;)this.words[this.length++]=0;return this},n.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{n.prototype[Symbol.for("nodejs.util.inspect.custom")]=w}catch{n.prototype.inspect=w}else n.prototype.inspect=w;function w(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var A=["","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"],D=[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],I=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(p,l){p=p||10,l=l|0||1;var g;if(p===16||p==="hex"){g="";for(var E=0,S=0,C=0;C<this.length;C++){var V=this.words[C],x=((V<<E|S)&16777215).toString(16);S=V>>>24-E&16777215,E+=2,E>=26&&(E-=26,C--),S!==0||C!==this.length-1?g=A[6-x.length]+x+g:g=x+g}for(S!==0&&(g=S.toString(16)+g);g.length%l!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}if(p===(p|0)&&p>=2&&p<=36){var y=D[p],M=I[p];g="";var te=this.clone();for(te.negative=0;!te.isZero();){var re=te.modrn(M).toString(p);te=te.idivn(M),te.isZero()?g=re+g:g=A[y-re.length]+re+g}for(this.isZero()&&(g="0"+g);g.length%l!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var p=this.words[0];return this.length===2?p+=this.words[1]*67108864:this.length===3&&this.words[2]===1?p+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-p:p},n.prototype.toJSON=function(){return this.toString(16,2)},a&&(n.prototype.toBuffer=function(p,l){return this.toArrayLike(a,p,l)}),n.prototype.toArray=function(p,l){return this.toArrayLike(Array,p,l)};var R=function(p,l){return p.allocUnsafe?p.allocUnsafe(l):new p(l)};n.prototype.toArrayLike=function(p,l,g){this._strip();var E=this.byteLength(),S=g||Math.max(1,E);r(E<=S,"byte array longer than desired length"),r(S>0,"Requested array length <= 0");var C=R(p,S),V=l==="le"?"LE":"BE";return this["_toArrayLike"+V](C,E),C},n.prototype._toArrayLikeLE=function(p,l){for(var g=0,E=0,S=0,C=0;S<this.length;S++){var V=this.words[S]<<C|E;p[g++]=V&255,g<p.length&&(p[g++]=V>>8&255),g<p.length&&(p[g++]=V>>16&255),C===6?(g<p.length&&(p[g++]=V>>24&255),E=0,C=0):(E=V>>>24,C+=2)}if(g<p.length)for(p[g++]=E;g<p.length;)p[g++]=0},n.prototype._toArrayLikeBE=function(p,l){for(var g=p.length-1,E=0,S=0,C=0;S<this.length;S++){var V=this.words[S]<<C|E;p[g--]=V&255,g>=0&&(p[g--]=V>>8&255),g>=0&&(p[g--]=V>>16&255),C===6?(g>=0&&(p[g--]=V>>24&255),E=0,C=0):(E=V>>>24,C+=2)}if(g>=0)for(p[g--]=E;g>=0;)p[g--]=0},Math.clz32?n.prototype._countBits=function(p){return 32-Math.clz32(p)}:n.prototype._countBits=function(p){var l=p,g=0;return l>=4096&&(g+=13,l>>>=13),l>=64&&(g+=7,l>>>=7),l>=8&&(g+=4,l>>>=4),l>=2&&(g+=2,l>>>=2),g+l},n.prototype._zeroBits=function(p){if(p===0)return 26;var l=p,g=0;return(l&8191)===0&&(g+=13,l>>>=13),(l&127)===0&&(g+=7,l>>>=7),(l&15)===0&&(g+=4,l>>>=4),(l&3)===0&&(g+=2,l>>>=2),(l&1)===0&&g++,g},n.prototype.bitLength=function(){var p=this.words[this.length-1],l=this._countBits(p);return(this.length-1)*26+l};function F(_){for(var p=new Array(_.bitLength()),l=0;l<p.length;l++){var g=l/26|0,E=l%26;p[l]=_.words[g]>>>E&1}return p}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var p=0,l=0;l<this.length;l++){var g=this._zeroBits(this.words[l]);if(p+=g,g!==26)break}return p},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(p){return this.negative!==0?this.abs().inotn(p).iaddn(1):this.clone()},n.prototype.fromTwos=function(p){return this.testn(p-1)?this.notn(p).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(p){for(;this.length<p.length;)this.words[this.length++]=0;for(var l=0;l<p.length;l++)this.words[l]=this.words[l]|p.words[l];return this._strip()},n.prototype.ior=function(p){return r((this.negative|p.negative)===0),this.iuor(p)},n.prototype.or=function(p){return this.length>p.length?this.clone().ior(p):p.clone().ior(this)},n.prototype.uor=function(p){return this.length>p.length?this.clone().iuor(p):p.clone().iuor(this)},n.prototype.iuand=function(p){var l;this.length>p.length?l=p:l=this;for(var g=0;g<l.length;g++)this.words[g]=this.words[g]&p.words[g];return this.length=l.length,this._strip()},n.prototype.iand=function(p){return r((this.negative|p.negative)===0),this.iuand(p)},n.prototype.and=function(p){return this.length>p.length?this.clone().iand(p):p.clone().iand(this)},n.prototype.uand=function(p){return this.length>p.length?this.clone().iuand(p):p.clone().iuand(this)},n.prototype.iuxor=function(p){var l,g;this.length>p.length?(l=this,g=p):(l=p,g=this);for(var E=0;E<g.length;E++)this.words[E]=l.words[E]^g.words[E];if(this!==l)for(;E<l.length;E++)this.words[E]=l.words[E];return this.length=l.length,this._strip()},n.prototype.ixor=function(p){return r((this.negative|p.negative)===0),this.iuxor(p)},n.prototype.xor=function(p){return this.length>p.length?this.clone().ixor(p):p.clone().ixor(this)},n.prototype.uxor=function(p){return this.length>p.length?this.clone().iuxor(p):p.clone().iuxor(this)},n.prototype.inotn=function(p){r(typeof p=="number"&&p>=0);var l=Math.ceil(p/26)|0,g=p%26;this._expand(l),g>0&&l--;for(var E=0;E<l;E++)this.words[E]=~this.words[E]&67108863;for(g>0&&(this.words[E]=~this.words[E]&67108863>>26-g,E++);E<this.length;E++)this.words[E]=0;return this._strip()},n.prototype.notn=function(p){return this.clone().inotn(p)},n.prototype.setn=function(p,l){r(typeof p=="number"&&p>=0);var g=p/26|0,E=p%26;return this._expand(g+1),l?this.words[g]=this.words[g]|1<<E:this.words[g]=this.words[g]&~(1<<E),this._strip()},n.prototype.iadd=function(p){var l;if(this.negative!==0&&p.negative===0)return this.negative=0,l=this.isub(p),this.negative^=1,this._normSign();if(this.negative===0&&p.negative!==0)return p.negative=0,l=this.isub(p),p.negative=1,l._normSign();var g,E;this.length>p.length?(g=this,E=p):(g=p,E=this);for(var S=0,C=0;C<E.length;C++)l=(g.words[C]|0)+(E.words[C]|0)+S,this.words[C]=l&67108863,S=l>>>26;for(;S!==0&&C<g.length;C++)l=(g.words[C]|0)+S,this.words[C]=l&67108863,S=l>>>26;if(this.length=g.length,S!==0)this.words[this.length]=S,this.length++;else if(g!==this)for(;C<g.length;C++)this.words[C]=g.words[C];return this},n.prototype.add=function(p){var l;return p.negative!==0&&this.negative===0?(p.negative=0,l=this.sub(p),p.negative^=1,l):p.negative===0&&this.negative!==0?(this.negative=0,l=p.sub(this),this.negative=1,l):this.length>p.length?this.clone().iadd(p):p.clone().iadd(this)},n.prototype.isub=function(p){if(p.negative!==0){p.negative=0;var l=this.iadd(p);return p.negative=1,l._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(p),this.negative=1,this._normSign();var g=this.cmp(p);if(g===0)return this.negative=0,this.length=1,this.words[0]=0,this;var E,S;g>0?(E=this,S=p):(E=p,S=this);for(var C=0,V=0;V<S.length;V++)l=(E.words[V]|0)-(S.words[V]|0)+C,C=l>>26,this.words[V]=l&67108863;for(;C!==0&&V<E.length;V++)l=(E.words[V]|0)+C,C=l>>26,this.words[V]=l&67108863;if(C===0&&V<E.length&&E!==this)for(;V<E.length;V++)this.words[V]=E.words[V];return this.length=Math.max(this.length,V),E!==this&&(this.negative=1),this._strip()},n.prototype.sub=function(p){return this.clone().isub(p)};function $(_,p,l){l.negative=p.negative^_.negative;var g=_.length+p.length|0;l.length=g,g=g-1|0;var E=_.words[0]|0,S=p.words[0]|0,C=E*S,V=C&67108863,x=C/67108864|0;l.words[0]=V;for(var y=1;y<g;y++){for(var M=x>>>26,te=x&67108863,re=Math.min(y,p.length-1),oe=Math.max(0,y-_.length+1);oe<=re;oe++){var me=y-oe|0;E=_.words[me]|0,S=p.words[oe]|0,C=E*S+te,M+=C/67108864|0,te=C&67108863}l.words[y]=te|0,x=M|0}return x!==0?l.words[y]=x|0:l.length--,l._strip()}var H=function(p,l,g){var E=p.words,S=l.words,C=g.words,V=0,x,y,M,te=E[0]|0,re=te&8191,oe=te>>>13,me=E[1]|0,Ce=me&8191,Te=me>>>13,gt=E[2]|0,Fe=gt&8191,tt=gt>>>13,er=E[3]|0,rt=er&8191,Pe=er>>>13,ds=E[4]|0,tr=ds&8191,kt=ds>>>13,hn=E[5]|0,rr=hn&8191,Wt=hn>>>13,va=E[6]|0,qt=va&8191,Yt=va>>>13,ci=E[7]|0,j=ci&8191,Y=ci>>>13,Z=E[8]|0,Q=Z&8191,ue=Z>>>13,De=E[9]|0,Le=De&8191,Ke=De>>>13,Ct=S[0]|0,Je=Ct&8191,_t=Ct>>>13,mn=S[1]|0,$t=mn&8191,Ut=mn>>>13,s1=S[2]|0,fr=s1&8191,hr=s1>>>13,Pi=S[3]|0,zt=Pi&8191,jt=Pi>>>13,ro=S[4]|0,sr=ro&8191,pr=ro>>>13,zd=S[5]|0,wt=zd&8191,lr=zd>>>13,b=S[6]|0,B=b&8191,k=b>>>13,f=S[7]|0,U=f&8191,X=f>>>13,J=S[8]|0,ae=J&8191,le=J>>>13,Oe=S[9]|0,he=Oe&8191,Be=Oe>>>13;g.negative=p.negative^l.negative,g.length=19,x=Math.imul(re,Je),y=Math.imul(re,_t),y=y+Math.imul(oe,Je)|0,M=Math.imul(oe,_t);var Se=(V+x|0)+((y&8191)<<13)|0;V=(M+(y>>>13)|0)+(Se>>>26)|0,Se&=67108863,x=Math.imul(Ce,Je),y=Math.imul(Ce,_t),y=y+Math.imul(Te,Je)|0,M=Math.imul(Te,_t),x=x+Math.imul(re,$t)|0,y=y+Math.imul(re,Ut)|0,y=y+Math.imul(oe,$t)|0,M=M+Math.imul(oe,Ut)|0;var Ve=(V+x|0)+((y&8191)<<13)|0;V=(M+(y>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,x=Math.imul(Fe,Je),y=Math.imul(Fe,_t),y=y+Math.imul(tt,Je)|0,M=Math.imul(tt,_t),x=x+Math.imul(Ce,$t)|0,y=y+Math.imul(Ce,Ut)|0,y=y+Math.imul(Te,$t)|0,M=M+Math.imul(Te,Ut)|0,x=x+Math.imul(re,fr)|0,y=y+Math.imul(re,hr)|0,y=y+Math.imul(oe,fr)|0,M=M+Math.imul(oe,hr)|0;var ze=(V+x|0)+((y&8191)<<13)|0;V=(M+(y>>>13)|0)+(ze>>>26)|0,ze&=67108863,x=Math.imul(rt,Je),y=Math.imul(rt,_t),y=y+Math.imul(Pe,Je)|0,M=Math.imul(Pe,_t),x=x+Math.imul(Fe,$t)|0,y=y+Math.imul(Fe,Ut)|0,y=y+Math.imul(tt,$t)|0,M=M+Math.imul(tt,Ut)|0,x=x+Math.imul(Ce,fr)|0,y=y+Math.imul(Ce,hr)|0,y=y+Math.imul(Te,fr)|0,M=M+Math.imul(Te,hr)|0,x=x+Math.imul(re,zt)|0,y=y+Math.imul(re,jt)|0,y=y+Math.imul(oe,zt)|0,M=M+Math.imul(oe,jt)|0;var Qe=(V+x|0)+((y&8191)<<13)|0;V=(M+(y>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,x=Math.imul(tr,Je),y=Math.imul(tr,_t),y=y+Math.imul(kt,Je)|0,M=Math.imul(kt,_t),x=x+Math.imul(rt,$t)|0,y=y+Math.imul(rt,Ut)|0,y=y+Math.imul(Pe,$t)|0,M=M+Math.imul(Pe,Ut)|0,x=x+Math.imul(Fe,fr)|0,y=y+Math.imul(Fe,hr)|0,y=y+Math.imul(tt,fr)|0,M=M+Math.imul(tt,hr)|0,x=x+Math.imul(Ce,zt)|0,y=y+Math.imul(Ce,jt)|0,y=y+Math.imul(Te,zt)|0,M=M+Math.imul(Te,jt)|0,x=x+Math.imul(re,sr)|0,y=y+Math.imul(re,pr)|0,y=y+Math.imul(oe,sr)|0,M=M+Math.imul(oe,pr)|0;var Ye=(V+x|0)+((y&8191)<<13)|0;V=(M+(y>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,x=Math.imul(rr,Je),y=Math.imul(rr,_t),y=y+Math.imul(Wt,Je)|0,M=Math.imul(Wt,_t),x=x+Math.imul(tr,$t)|0,y=y+Math.imul(tr,Ut)|0,y=y+Math.imul(kt,$t)|0,M=M+Math.imul(kt,Ut)|0,x=x+Math.imul(rt,fr)|0,y=y+Math.imul(rt,hr)|0,y=y+Math.imul(Pe,fr)|0,M=M+Math.imul(Pe,hr)|0,x=x+Math.imul(Fe,zt)|0,y=y+Math.imul(Fe,jt)|0,y=y+Math.imul(tt,zt)|0,M=M+Math.imul(tt,jt)|0,x=x+Math.imul(Ce,sr)|0,y=y+Math.imul(Ce,pr)|0,y=y+Math.imul(Te,sr)|0,M=M+Math.imul(Te,pr)|0,x=x+Math.imul(re,wt)|0,y=y+Math.imul(re,lr)|0,y=y+Math.imul(oe,wt)|0,M=M+Math.imul(oe,lr)|0;var He=(V+x|0)+((y&8191)<<13)|0;V=(M+(y>>>13)|0)+(He>>>26)|0,He&=67108863,x=Math.imul(qt,Je),y=Math.imul(qt,_t),y=y+Math.imul(Yt,Je)|0,M=Math.imul(Yt,_t),x=x+Math.imul(rr,$t)|0,y=y+Math.imul(rr,Ut)|0,y=y+Math.imul(Wt,$t)|0,M=M+Math.imul(Wt,Ut)|0,x=x+Math.imul(tr,fr)|0,y=y+Math.imul(tr,hr)|0,y=y+Math.imul(kt,fr)|0,M=M+Math.imul(kt,hr)|0,x=x+Math.imul(rt,zt)|0,y=y+Math.imul(rt,jt)|0,y=y+Math.imul(Pe,zt)|0,M=M+Math.imul(Pe,jt)|0,x=x+Math.imul(Fe,sr)|0,y=y+Math.imul(Fe,pr)|0,y=y+Math.imul(tt,sr)|0,M=M+Math.imul(tt,pr)|0,x=x+Math.imul(Ce,wt)|0,y=y+Math.imul(Ce,lr)|0,y=y+Math.imul(Te,wt)|0,M=M+Math.imul(Te,lr)|0,x=x+Math.imul(re,B)|0,y=y+Math.imul(re,k)|0,y=y+Math.imul(oe,B)|0,M=M+Math.imul(oe,k)|0;var qe=(V+x|0)+((y&8191)<<13)|0;V=(M+(y>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(j,Je),y=Math.imul(j,_t),y=y+Math.imul(Y,Je)|0,M=Math.imul(Y,_t),x=x+Math.imul(qt,$t)|0,y=y+Math.imul(qt,Ut)|0,y=y+Math.imul(Yt,$t)|0,M=M+Math.imul(Yt,Ut)|0,x=x+Math.imul(rr,fr)|0,y=y+Math.imul(rr,hr)|0,y=y+Math.imul(Wt,fr)|0,M=M+Math.imul(Wt,hr)|0,x=x+Math.imul(tr,zt)|0,y=y+Math.imul(tr,jt)|0,y=y+Math.imul(kt,zt)|0,M=M+Math.imul(kt,jt)|0,x=x+Math.imul(rt,sr)|0,y=y+Math.imul(rt,pr)|0,y=y+Math.imul(Pe,sr)|0,M=M+Math.imul(Pe,pr)|0,x=x+Math.imul(Fe,wt)|0,y=y+Math.imul(Fe,lr)|0,y=y+Math.imul(tt,wt)|0,M=M+Math.imul(tt,lr)|0,x=x+Math.imul(Ce,B)|0,y=y+Math.imul(Ce,k)|0,y=y+Math.imul(Te,B)|0,M=M+Math.imul(Te,k)|0,x=x+Math.imul(re,U)|0,y=y+Math.imul(re,X)|0,y=y+Math.imul(oe,U)|0,M=M+Math.imul(oe,X)|0;var Ge=(V+x|0)+((y&8191)<<13)|0;V=(M+(y>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,x=Math.imul(Q,Je),y=Math.imul(Q,_t),y=y+Math.imul(ue,Je)|0,M=Math.imul(ue,_t),x=x+Math.imul(j,$t)|0,y=y+Math.imul(j,Ut)|0,y=y+Math.imul(Y,$t)|0,M=M+Math.imul(Y,Ut)|0,x=x+Math.imul(qt,fr)|0,y=y+Math.imul(qt,hr)|0,y=y+Math.imul(Yt,fr)|0,M=M+Math.imul(Yt,hr)|0,x=x+Math.imul(rr,zt)|0,y=y+Math.imul(rr,jt)|0,y=y+Math.imul(Wt,zt)|0,M=M+Math.imul(Wt,jt)|0,x=x+Math.imul(tr,sr)|0,y=y+Math.imul(tr,pr)|0,y=y+Math.imul(kt,sr)|0,M=M+Math.imul(kt,pr)|0,x=x+Math.imul(rt,wt)|0,y=y+Math.imul(rt,lr)|0,y=y+Math.imul(Pe,wt)|0,M=M+Math.imul(Pe,lr)|0,x=x+Math.imul(Fe,B)|0,y=y+Math.imul(Fe,k)|0,y=y+Math.imul(tt,B)|0,M=M+Math.imul(tt,k)|0,x=x+Math.imul(Ce,U)|0,y=y+Math.imul(Ce,X)|0,y=y+Math.imul(Te,U)|0,M=M+Math.imul(Te,X)|0,x=x+Math.imul(re,ae)|0,y=y+Math.imul(re,le)|0,y=y+Math.imul(oe,ae)|0,M=M+Math.imul(oe,le)|0;var Re=(V+x|0)+((y&8191)<<13)|0;V=(M+(y>>>13)|0)+(Re>>>26)|0,Re&=67108863,x=Math.imul(Le,Je),y=Math.imul(Le,_t),y=y+Math.imul(Ke,Je)|0,M=Math.imul(Ke,_t),x=x+Math.imul(Q,$t)|0,y=y+Math.imul(Q,Ut)|0,y=y+Math.imul(ue,$t)|0,M=M+Math.imul(ue,Ut)|0,x=x+Math.imul(j,fr)|0,y=y+Math.imul(j,hr)|0,y=y+Math.imul(Y,fr)|0,M=M+Math.imul(Y,hr)|0,x=x+Math.imul(qt,zt)|0,y=y+Math.imul(qt,jt)|0,y=y+Math.imul(Yt,zt)|0,M=M+Math.imul(Yt,jt)|0,x=x+Math.imul(rr,sr)|0,y=y+Math.imul(rr,pr)|0,y=y+Math.imul(Wt,sr)|0,M=M+Math.imul(Wt,pr)|0,x=x+Math.imul(tr,wt)|0,y=y+Math.imul(tr,lr)|0,y=y+Math.imul(kt,wt)|0,M=M+Math.imul(kt,lr)|0,x=x+Math.imul(rt,B)|0,y=y+Math.imul(rt,k)|0,y=y+Math.imul(Pe,B)|0,M=M+Math.imul(Pe,k)|0,x=x+Math.imul(Fe,U)|0,y=y+Math.imul(Fe,X)|0,y=y+Math.imul(tt,U)|0,M=M+Math.imul(tt,X)|0,x=x+Math.imul(Ce,ae)|0,y=y+Math.imul(Ce,le)|0,y=y+Math.imul(Te,ae)|0,M=M+Math.imul(Te,le)|0,x=x+Math.imul(re,he)|0,y=y+Math.imul(re,Be)|0,y=y+Math.imul(oe,he)|0,M=M+Math.imul(oe,Be)|0;var xe=(V+x|0)+((y&8191)<<13)|0;V=(M+(y>>>13)|0)+(xe>>>26)|0,xe&=67108863,x=Math.imul(Le,$t),y=Math.imul(Le,Ut),y=y+Math.imul(Ke,$t)|0,M=Math.imul(Ke,Ut),x=x+Math.imul(Q,fr)|0,y=y+Math.imul(Q,hr)|0,y=y+Math.imul(ue,fr)|0,M=M+Math.imul(ue,hr)|0,x=x+Math.imul(j,zt)|0,y=y+Math.imul(j,jt)|0,y=y+Math.imul(Y,zt)|0,M=M+Math.imul(Y,jt)|0,x=x+Math.imul(qt,sr)|0,y=y+Math.imul(qt,pr)|0,y=y+Math.imul(Yt,sr)|0,M=M+Math.imul(Yt,pr)|0,x=x+Math.imul(rr,wt)|0,y=y+Math.imul(rr,lr)|0,y=y+Math.imul(Wt,wt)|0,M=M+Math.imul(Wt,lr)|0,x=x+Math.imul(tr,B)|0,y=y+Math.imul(tr,k)|0,y=y+Math.imul(kt,B)|0,M=M+Math.imul(kt,k)|0,x=x+Math.imul(rt,U)|0,y=y+Math.imul(rt,X)|0,y=y+Math.imul(Pe,U)|0,M=M+Math.imul(Pe,X)|0,x=x+Math.imul(Fe,ae)|0,y=y+Math.imul(Fe,le)|0,y=y+Math.imul(tt,ae)|0,M=M+Math.imul(tt,le)|0,x=x+Math.imul(Ce,he)|0,y=y+Math.imul(Ce,Be)|0,y=y+Math.imul(Te,he)|0,M=M+Math.imul(Te,Be)|0;var ve=(V+x|0)+((y&8191)<<13)|0;V=(M+(y>>>13)|0)+(ve>>>26)|0,ve&=67108863,x=Math.imul(Le,fr),y=Math.imul(Le,hr),y=y+Math.imul(Ke,fr)|0,M=Math.imul(Ke,hr),x=x+Math.imul(Q,zt)|0,y=y+Math.imul(Q,jt)|0,y=y+Math.imul(ue,zt)|0,M=M+Math.imul(ue,jt)|0,x=x+Math.imul(j,sr)|0,y=y+Math.imul(j,pr)|0,y=y+Math.imul(Y,sr)|0,M=M+Math.imul(Y,pr)|0,x=x+Math.imul(qt,wt)|0,y=y+Math.imul(qt,lr)|0,y=y+Math.imul(Yt,wt)|0,M=M+Math.imul(Yt,lr)|0,x=x+Math.imul(rr,B)|0,y=y+Math.imul(rr,k)|0,y=y+Math.imul(Wt,B)|0,M=M+Math.imul(Wt,k)|0,x=x+Math.imul(tr,U)|0,y=y+Math.imul(tr,X)|0,y=y+Math.imul(kt,U)|0,M=M+Math.imul(kt,X)|0,x=x+Math.imul(rt,ae)|0,y=y+Math.imul(rt,le)|0,y=y+Math.imul(Pe,ae)|0,M=M+Math.imul(Pe,le)|0,x=x+Math.imul(Fe,he)|0,y=y+Math.imul(Fe,Be)|0,y=y+Math.imul(tt,he)|0,M=M+Math.imul(tt,Be)|0;var be=(V+x|0)+((y&8191)<<13)|0;V=(M+(y>>>13)|0)+(be>>>26)|0,be&=67108863,x=Math.imul(Le,zt),y=Math.imul(Le,jt),y=y+Math.imul(Ke,zt)|0,M=Math.imul(Ke,jt),x=x+Math.imul(Q,sr)|0,y=y+Math.imul(Q,pr)|0,y=y+Math.imul(ue,sr)|0,M=M+Math.imul(ue,pr)|0,x=x+Math.imul(j,wt)|0,y=y+Math.imul(j,lr)|0,y=y+Math.imul(Y,wt)|0,M=M+Math.imul(Y,lr)|0,x=x+Math.imul(qt,B)|0,y=y+Math.imul(qt,k)|0,y=y+Math.imul(Yt,B)|0,M=M+Math.imul(Yt,k)|0,x=x+Math.imul(rr,U)|0,y=y+Math.imul(rr,X)|0,y=y+Math.imul(Wt,U)|0,M=M+Math.imul(Wt,X)|0,x=x+Math.imul(tr,ae)|0,y=y+Math.imul(tr,le)|0,y=y+Math.imul(kt,ae)|0,M=M+Math.imul(kt,le)|0,x=x+Math.imul(rt,he)|0,y=y+Math.imul(rt,Be)|0,y=y+Math.imul(Pe,he)|0,M=M+Math.imul(Pe,Be)|0;var Ae=(V+x|0)+((y&8191)<<13)|0;V=(M+(y>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,x=Math.imul(Le,sr),y=Math.imul(Le,pr),y=y+Math.imul(Ke,sr)|0,M=Math.imul(Ke,pr),x=x+Math.imul(Q,wt)|0,y=y+Math.imul(Q,lr)|0,y=y+Math.imul(ue,wt)|0,M=M+Math.imul(ue,lr)|0,x=x+Math.imul(j,B)|0,y=y+Math.imul(j,k)|0,y=y+Math.imul(Y,B)|0,M=M+Math.imul(Y,k)|0,x=x+Math.imul(qt,U)|0,y=y+Math.imul(qt,X)|0,y=y+Math.imul(Yt,U)|0,M=M+Math.imul(Yt,X)|0,x=x+Math.imul(rr,ae)|0,y=y+Math.imul(rr,le)|0,y=y+Math.imul(Wt,ae)|0,M=M+Math.imul(Wt,le)|0,x=x+Math.imul(tr,he)|0,y=y+Math.imul(tr,Be)|0,y=y+Math.imul(kt,he)|0,M=M+Math.imul(kt,Be)|0;var Ee=(V+x|0)+((y&8191)<<13)|0;V=(M+(y>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,x=Math.imul(Le,wt),y=Math.imul(Le,lr),y=y+Math.imul(Ke,wt)|0,M=Math.imul(Ke,lr),x=x+Math.imul(Q,B)|0,y=y+Math.imul(Q,k)|0,y=y+Math.imul(ue,B)|0,M=M+Math.imul(ue,k)|0,x=x+Math.imul(j,U)|0,y=y+Math.imul(j,X)|0,y=y+Math.imul(Y,U)|0,M=M+Math.imul(Y,X)|0,x=x+Math.imul(qt,ae)|0,y=y+Math.imul(qt,le)|0,y=y+Math.imul(Yt,ae)|0,M=M+Math.imul(Yt,le)|0,x=x+Math.imul(rr,he)|0,y=y+Math.imul(rr,Be)|0,y=y+Math.imul(Wt,he)|0,M=M+Math.imul(Wt,Be)|0;var ie=(V+x|0)+((y&8191)<<13)|0;V=(M+(y>>>13)|0)+(ie>>>26)|0,ie&=67108863,x=Math.imul(Le,B),y=Math.imul(Le,k),y=y+Math.imul(Ke,B)|0,M=Math.imul(Ke,k),x=x+Math.imul(Q,U)|0,y=y+Math.imul(Q,X)|0,y=y+Math.imul(ue,U)|0,M=M+Math.imul(ue,X)|0,x=x+Math.imul(j,ae)|0,y=y+Math.imul(j,le)|0,y=y+Math.imul(Y,ae)|0,M=M+Math.imul(Y,le)|0,x=x+Math.imul(qt,he)|0,y=y+Math.imul(qt,Be)|0,y=y+Math.imul(Yt,he)|0,M=M+Math.imul(Yt,Be)|0;var ne=(V+x|0)+((y&8191)<<13)|0;V=(M+(y>>>13)|0)+(ne>>>26)|0,ne&=67108863,x=Math.imul(Le,U),y=Math.imul(Le,X),y=y+Math.imul(Ke,U)|0,M=Math.imul(Ke,X),x=x+Math.imul(Q,ae)|0,y=y+Math.imul(Q,le)|0,y=y+Math.imul(ue,ae)|0,M=M+Math.imul(ue,le)|0,x=x+Math.imul(j,he)|0,y=y+Math.imul(j,Be)|0,y=y+Math.imul(Y,he)|0,M=M+Math.imul(Y,Be)|0;var ce=(V+x|0)+((y&8191)<<13)|0;V=(M+(y>>>13)|0)+(ce>>>26)|0,ce&=67108863,x=Math.imul(Le,ae),y=Math.imul(Le,le),y=y+Math.imul(Ke,ae)|0,M=Math.imul(Ke,le),x=x+Math.imul(Q,he)|0,y=y+Math.imul(Q,Be)|0,y=y+Math.imul(ue,he)|0,M=M+Math.imul(ue,Be)|0;var de=(V+x|0)+((y&8191)<<13)|0;V=(M+(y>>>13)|0)+(de>>>26)|0,de&=67108863,x=Math.imul(Le,he),y=Math.imul(Le,Be),y=y+Math.imul(Ke,he)|0,M=Math.imul(Ke,Be);var pe=(V+x|0)+((y&8191)<<13)|0;return V=(M+(y>>>13)|0)+(pe>>>26)|0,pe&=67108863,C[0]=Se,C[1]=Ve,C[2]=ze,C[3]=Qe,C[4]=Ye,C[5]=He,C[6]=qe,C[7]=Ge,C[8]=Re,C[9]=xe,C[10]=ve,C[11]=be,C[12]=Ae,C[13]=Ee,C[14]=ie,C[15]=ne,C[16]=ce,C[17]=de,C[18]=pe,V!==0&&(C[19]=V,g.length++),g};Math.imul||(H=$);function L(_,p,l){l.negative=p.negative^_.negative,l.length=_.length+p.length;for(var g=0,E=0,S=0;S<l.length-1;S++){var C=E;E=0;for(var V=g&67108863,x=Math.min(S,p.length-1),y=Math.max(0,S-_.length+1);y<=x;y++){var M=S-y,te=_.words[M]|0,re=p.words[y]|0,oe=te*re,me=oe&67108863;C=C+(oe/67108864|0)|0,me=me+V|0,V=me&67108863,C=C+(me>>>26)|0,E+=C>>>26,C&=67108863}l.words[S]=V,g=C,C=E}return g!==0?l.words[S]=g:l.length--,l._strip()}function q(_,p,l){return L(_,p,l)}n.prototype.mulTo=function(p,l){var g,E=this.length+p.length;return this.length===10&&p.length===10?g=H(this,p,l):E<63?g=$(this,p,l):E<1024?g=L(this,p,l):g=q(this,p,l),g};function W(_,p){this.x=_,this.y=p}W.prototype.makeRBT=function(p){for(var l=new Array(p),g=n.prototype._countBits(p)-1,E=0;E<p;E++)l[E]=this.revBin(E,g,p);return l},W.prototype.revBin=function(p,l,g){if(p===0||p===g-1)return p;for(var E=0,S=0;S<l;S++)E|=(p&1)<<l-S-1,p>>=1;return E},W.prototype.permute=function(p,l,g,E,S,C){for(var V=0;V<C;V++)E[V]=l[p[V]],S[V]=g[p[V]]},W.prototype.transform=function(p,l,g,E,S,C){this.permute(C,p,l,g,E,S);for(var V=1;V<S;V<<=1)for(var x=V<<1,y=Math.cos(2*Math.PI/x),M=Math.sin(2*Math.PI/x),te=0;te<S;te+=x)for(var re=y,oe=M,me=0;me<V;me++){var Ce=g[te+me],Te=E[te+me],gt=g[te+me+V],Fe=E[te+me+V],tt=re*gt-oe*Fe;Fe=re*Fe+oe*gt,gt=tt,g[te+me]=Ce+gt,E[te+me]=Te+Fe,g[te+me+V]=Ce-gt,E[te+me+V]=Te-Fe,me!==x&&(tt=y*re-M*oe,oe=y*oe+M*re,re=tt)}},W.prototype.guessLen13b=function(p,l){var g=Math.max(l,p)|1,E=g&1,S=0;for(g=g/2|0;g;g=g>>>1)S++;return 1<<S+1+E},W.prototype.conjugate=function(p,l,g){if(!(g<=1))for(var E=0;E<g/2;E++){var S=p[E];p[E]=p[g-E-1],p[g-E-1]=S,S=l[E],l[E]=-l[g-E-1],l[g-E-1]=-S}},W.prototype.normalize13b=function(p,l){for(var g=0,E=0;E<l/2;E++){var S=Math.round(p[2*E+1]/l)*8192+Math.round(p[2*E]/l)+g;p[E]=S&67108863,S<67108864?g=0:g=S/67108864|0}return p},W.prototype.convert13b=function(p,l,g,E){for(var S=0,C=0;C<l;C++)S=S+(p[C]|0),g[2*C]=S&8191,S=S>>>13,g[2*C+1]=S&8191,S=S>>>13;for(C=2*l;C<E;++C)g[C]=0;r(S===0),r((S&-8192)===0)},W.prototype.stub=function(p){for(var l=new Array(p),g=0;g<p;g++)l[g]=0;return l},W.prototype.mulp=function(p,l,g){var E=2*this.guessLen13b(p.length,l.length),S=this.makeRBT(E),C=this.stub(E),V=new Array(E),x=new Array(E),y=new Array(E),M=new Array(E),te=new Array(E),re=new Array(E),oe=g.words;oe.length=E,this.convert13b(p.words,p.length,V,E),this.convert13b(l.words,l.length,M,E),this.transform(V,C,x,y,E,S),this.transform(M,C,te,re,E,S);for(var me=0;me<E;me++){var Ce=x[me]*te[me]-y[me]*re[me];y[me]=x[me]*re[me]+y[me]*te[me],x[me]=Ce}return this.conjugate(x,y,E),this.transform(x,y,oe,C,E,S),this.conjugate(oe,C,E),this.normalize13b(oe,E),g.negative=p.negative^l.negative,g.length=p.length+l.length,g._strip()},n.prototype.mul=function(p){var l=new n(null);return l.words=new Array(this.length+p.length),this.mulTo(p,l)},n.prototype.mulf=function(p){var l=new n(null);return l.words=new Array(this.length+p.length),q(this,p,l)},n.prototype.imul=function(p){return this.clone().mulTo(p,this)},n.prototype.imuln=function(p){var l=p<0;l&&(p=-p),r(typeof p=="number"),r(p<67108864);for(var g=0,E=0;E<this.length;E++){var S=(this.words[E]|0)*p,C=(S&67108863)+(g&67108863);g>>=26,g+=S/67108864|0,g+=C>>>26,this.words[E]=C&67108863}return g!==0&&(this.words[E]=g,this.length++),p===0&&(this.length=1,this._normSign()),l?this.ineg():this},n.prototype.muln=function(p){return this.clone().imuln(p)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(p){var l=F(p);if(l.length===0)return new n(1);for(var g=this,E=0;E<l.length&&l[E]===0;E++,g=g.sqr());if(++E<l.length)for(var S=g.sqr();E<l.length;E++,S=S.sqr())l[E]!==0&&(g=g.mul(S));return g},n.prototype.iushln=function(p){r(typeof p=="number"&&p>=0);var l=p%26,g=(p-l)/26,E=67108863>>>26-l<<26-l,S;if(l!==0){var C=0;for(S=0;S<this.length;S++){var V=this.words[S]&E,x=(this.words[S]|0)-V<<l;this.words[S]=x|C,C=V>>>26-l}C&&(this.words[S]=C,this.length++)}if(g!==0){for(S=this.length-1;S>=0;S--)this.words[S+g]=this.words[S];for(S=0;S<g;S++)this.words[S]=0;this.length+=g}return this._strip()},n.prototype.ishln=function(p){return r(this.negative===0),this.iushln(p)},n.prototype.iushrn=function(p,l,g){r(typeof p=="number"&&p>=0);var E;l?E=(l-l%26)/26:E=0;var S=p%26,C=Math.min((p-S)/26,this.length),V=67108863^67108863>>>S<<S,x=g;if(E-=C,E=Math.max(0,E),x){for(var y=0;y<C;y++)x.words[y]=this.words[y];x.length=C}if(C!==0)if(this.length>C)for(this.length-=C,y=0;y<this.length;y++)this.words[y]=this.words[y+C];else this.words[0]=0,this.length=1;var M=0;for(y=this.length-1;y>=0&&(M!==0||y>=E);y--){var te=this.words[y]|0;this.words[y]=M<<26-S|te>>>S,M=te&V}return x&&M!==0&&(x.words[x.length++]=M),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},n.prototype.ishrn=function(p,l,g){return r(this.negative===0),this.iushrn(p,l,g)},n.prototype.shln=function(p){return this.clone().ishln(p)},n.prototype.ushln=function(p){return this.clone().iushln(p)},n.prototype.shrn=function(p){return this.clone().ishrn(p)},n.prototype.ushrn=function(p){return this.clone().iushrn(p)},n.prototype.testn=function(p){r(typeof p=="number"&&p>=0);var l=p%26,g=(p-l)/26,E=1<<l;if(this.length<=g)return!1;var S=this.words[g];return!!(S&E)},n.prototype.imaskn=function(p){r(typeof p=="number"&&p>=0);var l=p%26,g=(p-l)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=g)return this;if(l!==0&&g++,this.length=Math.min(g,this.length),l!==0){var E=67108863^67108863>>>l<<l;this.words[this.length-1]&=E}return this.length===0&&(this.words[0]=0,this.length=1),this._strip()},n.prototype.maskn=function(p){return this.clone().imaskn(p)},n.prototype.iaddn=function(p){return r(typeof p=="number"),r(p<67108864),p<0?this.isubn(-p):this.negative!==0?this.length===1&&(this.words[0]|0)<=p?(this.words[0]=p-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(p),this.negative=1,this):this._iaddn(p)},n.prototype._iaddn=function(p){this.words[0]+=p;for(var l=0;l<this.length&&this.words[l]>=67108864;l++)this.words[l]-=67108864,l===this.length-1?this.words[l+1]=1:this.words[l+1]++;return this.length=Math.max(this.length,l+1),this},n.prototype.isubn=function(p){if(r(typeof p=="number"),r(p<67108864),p<0)return this.iaddn(-p);if(this.negative!==0)return this.negative=0,this.iaddn(p),this.negative=1,this;if(this.words[0]-=p,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var l=0;l<this.length&&this.words[l]<0;l++)this.words[l]+=67108864,this.words[l+1]-=1;return this._strip()},n.prototype.addn=function(p){return this.clone().iaddn(p)},n.prototype.subn=function(p){return this.clone().isubn(p)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(p,l,g){var E=p.length+g,S;this._expand(E);var C,V=0;for(S=0;S<p.length;S++){C=(this.words[S+g]|0)+V;var x=(p.words[S]|0)*l;C-=x&67108863,V=(C>>26)-(x/67108864|0),this.words[S+g]=C&67108863}for(;S<this.length-g;S++)C=(this.words[S+g]|0)+V,V=C>>26,this.words[S+g]=C&67108863;if(V===0)return this._strip();for(r(V===-1),V=0,S=0;S<this.length;S++)C=-(this.words[S]|0)+V,V=C>>26,this.words[S]=C&67108863;return this.negative=1,this._strip()},n.prototype._wordDiv=function(p,l){var g=this.length-p.length,E=this.clone(),S=p,C=S.words[S.length-1]|0,V=this._countBits(C);g=26-V,g!==0&&(S=S.ushln(g),E.iushln(g),C=S.words[S.length-1]|0);var x=E.length-S.length,y;if(l!=="mod"){y=new n(null),y.length=x+1,y.words=new Array(y.length);for(var M=0;M<y.length;M++)y.words[M]=0}var te=E.clone()._ishlnsubmul(S,1,x);te.negative===0&&(E=te,y&&(y.words[x]=1));for(var re=x-1;re>=0;re--){var oe=(E.words[S.length+re]|0)*67108864+(E.words[S.length+re-1]|0);for(oe=Math.min(oe/C|0,67108863),E._ishlnsubmul(S,oe,re);E.negative!==0;)oe--,E.negative=0,E._ishlnsubmul(S,1,re),E.isZero()||(E.negative^=1);y&&(y.words[re]=oe)}return y&&y._strip(),E._strip(),l!=="div"&&g!==0&&E.iushrn(g),{div:y||null,mod:E}},n.prototype.divmod=function(p,l,g){if(r(!p.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var E,S,C;return this.negative!==0&&p.negative===0?(C=this.neg().divmod(p,l),l!=="mod"&&(E=C.div.neg()),l!=="div"&&(S=C.mod.neg(),g&&S.negative!==0&&S.iadd(p)),{div:E,mod:S}):this.negative===0&&p.negative!==0?(C=this.divmod(p.neg(),l),l!=="mod"&&(E=C.div.neg()),{div:E,mod:C.mod}):(this.negative&p.negative)!==0?(C=this.neg().divmod(p.neg(),l),l!=="div"&&(S=C.mod.neg(),g&&S.negative!==0&&S.isub(p)),{div:C.div,mod:S}):p.length>this.length||this.cmp(p)<0?{div:new n(0),mod:this}:p.length===1?l==="div"?{div:this.divn(p.words[0]),mod:null}:l==="mod"?{div:null,mod:new n(this.modrn(p.words[0]))}:{div:this.divn(p.words[0]),mod:new n(this.modrn(p.words[0]))}:this._wordDiv(p,l)},n.prototype.div=function(p){return this.divmod(p,"div",!1).div},n.prototype.mod=function(p){return this.divmod(p,"mod",!1).mod},n.prototype.umod=function(p){return this.divmod(p,"mod",!0).mod},n.prototype.divRound=function(p){var l=this.divmod(p);if(l.mod.isZero())return l.div;var g=l.mod.abs(),E=p.abs().iushrn(1),S=p.words[0]&1,C=g.cmp(E);if(C<0||S===1&&C===0)return l.div;var V=new n(1);return V.negative=this.negative^p.negative,l.div.iadd(V)},n.prototype.modrn=function(p){var l=p<0;l&&(p=-p),r(p<=67108863);for(var g=(1<<26)%p,E=0,S=this.length-1;S>=0;S--)E=(g*E+(this.words[S]|0))%p;return l?-E:E},n.prototype.modn=function(p){return this.modrn(p)},n.prototype.idivn=function(p){var l=p<0;l&&(p=-p),r(p<=67108863);for(var g=0,E=this.length-1;E>=0;E--){var S=(this.words[E]|0)+g*67108864;this.words[E]=S/p|0,g=S%p}return this._strip(),l?this.ineg():this},n.prototype.divn=function(p){return this.clone().idivn(p)},n.prototype.egcd=function(p){r(p.negative===0),r(!p.isZero());var l=this,g=p.clone();l.negative!==0?l=l.umod(p):l=l.clone();for(var E=new n(1),S=new n(0),C=new n(0),V=new n(1),x=0;l.isEven()&&g.isEven();)l.iushrn(1),g.iushrn(1),++x;for(var y=g.clone(),M=l.clone();!l.isZero();){for(var te=0,re=1;(l.words[0]&re)===0&&te<26;++te,re<<=1);if(te>0)for(l.iushrn(te);te-- >0;)(E.isOdd()||S.isOdd())&&(E.iadd(y),S.isub(M)),E.iushrn(1),S.iushrn(1);for(var oe=0,me=1;(g.words[0]&me)===0&&oe<26;++oe,me<<=1);if(oe>0)for(g.iushrn(oe);oe-- >0;)(C.isOdd()||V.isOdd())&&(C.iadd(y),V.isub(M)),C.iushrn(1),V.iushrn(1);l.cmp(g)>=0?(l.isub(g),E.isub(C),S.isub(V)):(g.isub(l),C.isub(E),V.isub(S))}return{a:C,b:V,gcd:g.iushln(x)}},n.prototype._invmp=function(p){r(p.negative===0),r(!p.isZero());var l=this,g=p.clone();l.negative!==0?l=l.umod(p):l=l.clone();for(var E=new n(1),S=new n(0),C=g.clone();l.cmpn(1)>0&&g.cmpn(1)>0;){for(var V=0,x=1;(l.words[0]&x)===0&&V<26;++V,x<<=1);if(V>0)for(l.iushrn(V);V-- >0;)E.isOdd()&&E.iadd(C),E.iushrn(1);for(var y=0,M=1;(g.words[0]&M)===0&&y<26;++y,M<<=1);if(y>0)for(g.iushrn(y);y-- >0;)S.isOdd()&&S.iadd(C),S.iushrn(1);l.cmp(g)>=0?(l.isub(g),E.isub(S)):(g.isub(l),S.isub(E))}var te;return l.cmpn(1)===0?te=E:te=S,te.cmpn(0)<0&&te.iadd(p),te},n.prototype.gcd=function(p){if(this.isZero())return p.abs();if(p.isZero())return this.abs();var l=this.clone(),g=p.clone();l.negative=0,g.negative=0;for(var E=0;l.isEven()&&g.isEven();E++)l.iushrn(1),g.iushrn(1);do{for(;l.isEven();)l.iushrn(1);for(;g.isEven();)g.iushrn(1);var S=l.cmp(g);if(S<0){var C=l;l=g,g=C}else if(S===0||g.cmpn(1)===0)break;l.isub(g)}while(!0);return g.iushln(E)},n.prototype.invm=function(p){return this.egcd(p).a.umod(p)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(p){return this.words[0]&p},n.prototype.bincn=function(p){r(typeof p=="number");var l=p%26,g=(p-l)/26,E=1<<l;if(this.length<=g)return this._expand(g+1),this.words[g]|=E,this;for(var S=E,C=g;S!==0&&C<this.length;C++){var V=this.words[C]|0;V+=S,S=V>>>26,V&=67108863,this.words[C]=V}return S!==0&&(this.words[C]=S,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(p){var l=p<0;if(this.negative!==0&&!l)return-1;if(this.negative===0&&l)return 1;this._strip();var g;if(this.length>1)g=1;else{l&&(p=-p),r(p<=67108863,"Number is too big");var E=this.words[0]|0;g=E===p?0:E<p?-1:1}return this.negative!==0?-g|0:g},n.prototype.cmp=function(p){if(this.negative!==0&&p.negative===0)return-1;if(this.negative===0&&p.negative!==0)return 1;var l=this.ucmp(p);return this.negative!==0?-l|0:l},n.prototype.ucmp=function(p){if(this.length>p.length)return 1;if(this.length<p.length)return-1;for(var l=0,g=this.length-1;g>=0;g--){var E=this.words[g]|0,S=p.words[g]|0;if(E!==S){E<S?l=-1:E>S&&(l=1);break}}return l},n.prototype.gtn=function(p){return this.cmpn(p)===1},n.prototype.gt=function(p){return this.cmp(p)===1},n.prototype.gten=function(p){return this.cmpn(p)>=0},n.prototype.gte=function(p){return this.cmp(p)>=0},n.prototype.ltn=function(p){return this.cmpn(p)===-1},n.prototype.lt=function(p){return this.cmp(p)===-1},n.prototype.lten=function(p){return this.cmpn(p)<=0},n.prototype.lte=function(p){return this.cmp(p)<=0},n.prototype.eqn=function(p){return this.cmpn(p)===0},n.prototype.eq=function(p){return this.cmp(p)===0},n.red=function(p){return new T(p)},n.prototype.toRed=function(p){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),p.convertTo(this)._forceRed(p)},n.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(p){return this.red=p,this},n.prototype.forceRed=function(p){return r(!this.red,"Already a number in reduction context"),this._forceRed(p)},n.prototype.redAdd=function(p){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,p)},n.prototype.redIAdd=function(p){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,p)},n.prototype.redSub=function(p){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,p)},n.prototype.redISub=function(p){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,p)},n.prototype.redShl=function(p){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,p)},n.prototype.redMul=function(p){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,p),this.red.mul(this,p)},n.prototype.redIMul=function(p){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,p),this.red.imul(this,p)},n.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(p){return r(this.red&&!p.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,p)};var se={k256:null,p224:null,p192:null,p25519:null};function N(_,p){this.name=_,this.p=new n(p,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}N.prototype._tmp=function(){var p=new n(null);return p.words=new Array(Math.ceil(this.n/13)),p},N.prototype.ireduce=function(p){var l=p,g;do this.split(l,this.tmp),l=this.imulK(l),l=l.iadd(this.tmp),g=l.bitLength();while(g>this.n);var E=g<this.n?-1:l.ucmp(this.p);return E===0?(l.words[0]=0,l.length=1):E>0?l.isub(this.p):l.strip!==void 0?l.strip():l._strip(),l},N.prototype.split=function(p,l){p.iushrn(this.n,0,l)},N.prototype.imulK=function(p){return p.imul(this.k)};function O(){N.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(O,N),O.prototype.split=function(p,l){for(var g=4194303,E=Math.min(p.length,9),S=0;S<E;S++)l.words[S]=p.words[S];if(l.length=E,p.length<=9){p.words[0]=0,p.length=1;return}var C=p.words[9];for(l.words[l.length++]=C&g,S=10;S<p.length;S++){var V=p.words[S]|0;p.words[S-10]=(V&g)<<4|C>>>22,C=V}C>>>=22,p.words[S-10]=C,C===0&&p.length>10?p.length-=10:p.length-=9},O.prototype.imulK=function(p){p.words[p.length]=0,p.words[p.length+1]=0,p.length+=2;for(var l=0,g=0;g<p.length;g++){var E=p.words[g]|0;l+=E*977,p.words[g]=l&67108863,l=E*64+(l/67108864|0)}return p.words[p.length-1]===0&&(p.length--,p.words[p.length-1]===0&&p.length--),p};function c(){N.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(c,N);function m(){N.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(m,N);function v(){N.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(v,N),v.prototype.imulK=function(p){for(var l=0,g=0;g<p.length;g++){var E=(p.words[g]|0)*19+l,S=E&67108863;E>>>=26,p.words[g]=S,l=E}return l!==0&&(p.words[p.length++]=l),p},n._prime=function(p){if(se[p])return se[p];var l;if(p==="k256")l=new O;else if(p==="p224")l=new c;else if(p==="p192")l=new m;else if(p==="p25519")l=new v;else throw new Error("Unknown prime "+p);return se[p]=l,l};function T(_){if(typeof _=="string"){var p=n._prime(_);this.m=p.p,this.prime=p}else r(_.gtn(1),"modulus must be greater than 1"),this.m=_,this.prime=null}T.prototype._verify1=function(p){r(p.negative===0,"red works only with positives"),r(p.red,"red works only with red numbers")},T.prototype._verify2=function(p,l){r((p.negative|l.negative)===0,"red works only with positives"),r(p.red&&p.red===l.red,"red works only with red numbers")},T.prototype.imod=function(p){return this.prime?this.prime.ireduce(p)._forceRed(this):(h(p,p.umod(this.m)._forceRed(this)),p)},T.prototype.neg=function(p){return p.isZero()?p.clone():this.m.sub(p)._forceRed(this)},T.prototype.add=function(p,l){this._verify2(p,l);var g=p.add(l);return g.cmp(this.m)>=0&&g.isub(this.m),g._forceRed(this)},T.prototype.iadd=function(p,l){this._verify2(p,l);var g=p.iadd(l);return g.cmp(this.m)>=0&&g.isub(this.m),g},T.prototype.sub=function(p,l){this._verify2(p,l);var g=p.sub(l);return g.cmpn(0)<0&&g.iadd(this.m),g._forceRed(this)},T.prototype.isub=function(p,l){this._verify2(p,l);var g=p.isub(l);return g.cmpn(0)<0&&g.iadd(this.m),g},T.prototype.shl=function(p,l){return this._verify1(p),this.imod(p.ushln(l))},T.prototype.imul=function(p,l){return this._verify2(p,l),this.imod(p.imul(l))},T.prototype.mul=function(p,l){return this._verify2(p,l),this.imod(p.mul(l))},T.prototype.isqr=function(p){return this.imul(p,p.clone())},T.prototype.sqr=function(p){return this.mul(p,p)},T.prototype.sqrt=function(p){if(p.isZero())return p.clone();var l=this.m.andln(3);if(r(l%2===1),l===3){var g=this.m.add(new n(1)).iushrn(2);return this.pow(p,g)}for(var E=this.m.subn(1),S=0;!E.isZero()&&E.andln(1)===0;)S++,E.iushrn(1);r(!E.isZero());var C=new n(1).toRed(this),V=C.redNeg(),x=this.m.subn(1).iushrn(1),y=this.m.bitLength();for(y=new n(2*y*y).toRed(this);this.pow(y,x).cmp(V)!==0;)y.redIAdd(V);for(var M=this.pow(y,E),te=this.pow(p,E.addn(1).iushrn(1)),re=this.pow(p,E),oe=S;re.cmp(C)!==0;){for(var me=re,Ce=0;me.cmp(C)!==0;Ce++)me=me.redSqr();r(Ce<oe);var Te=this.pow(M,new n(1).iushln(oe-Ce-1));te=te.redMul(Te),M=Te.redSqr(),re=re.redMul(M),oe=Ce}return te},T.prototype.invm=function(p){var l=p._invmp(this.m);return l.negative!==0?(l.negative=0,this.imod(l).redNeg()):this.imod(l)},T.prototype.pow=function(p,l){if(l.isZero())return new n(1).toRed(this);if(l.cmpn(1)===0)return p.clone();var g=4,E=new Array(1<<g);E[0]=new n(1).toRed(this),E[1]=p;for(var S=2;S<E.length;S++)E[S]=this.mul(E[S-1],p);var C=E[0],V=0,x=0,y=l.bitLength()%26;for(y===0&&(y=26),S=l.length-1;S>=0;S--){for(var M=l.words[S],te=y-1;te>=0;te--){var re=M>>te&1;if(C!==E[0]&&(C=this.sqr(C)),re===0&&V===0){x=0;continue}V<<=1,V|=re,x++,!(x!==g&&(S!==0||te!==0))&&(C=this.mul(C,E[V]),x=0,V=0)}y=26}return C},T.prototype.convertTo=function(p){var l=p.umod(this.m);return l===p?l.clone():l},T.prototype.convertFrom=function(p){var l=p.clone();return l.red=null,l},n.mont=function(p){return new P(p)};function P(_){T.call(this,_),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(P,T),P.prototype.convertTo=function(p){return this.imod(p.ushln(this.shift))},P.prototype.convertFrom=function(p){var l=this.imod(p.mul(this.rinv));return l.red=null,l},P.prototype.imul=function(p,l){if(p.isZero()||l.isZero())return p.words[0]=0,p.length=1,p;var g=p.imul(l),E=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=g.isub(E).iushrn(this.shift),C=S;return S.cmp(this.m)>=0?C=S.isub(this.m):S.cmpn(0)<0&&(C=S.iadd(this.m)),C._forceRed(this)},P.prototype.mul=function(p,l){if(p.isZero()||l.isZero())return new n(0)._forceRed(this);var g=p.mul(l),E=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=g.isub(E).iushrn(this.shift),C=S;return S.cmp(this.m)>=0?C=S.isub(this.m):S.cmpn(0)<0&&(C=S.iadd(this.m)),C._forceRed(this)},P.prototype.invm=function(p){var l=this.imod(p._invmp(this.m).mul(this.r2));return l._forceRed(this)}})(typeof Cc>"u"||Cc,d6)});var Dc=Ne((kc,l6)=>{var up=Xe("buffer"),Sn=up.Buffer;function p6(t,e){for(var r in t)e[r]=t[r]}Sn.from&&Sn.alloc&&Sn.allocUnsafe&&Sn.allocUnsafeSlow?l6.exports=up:(p6(up,kc),kc.Buffer=ms);function ms(t,e,r){return Sn(t,e,r)}ms.prototype=Object.create(Sn.prototype);p6(Sn,ms);ms.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Sn(t,e,r)};ms.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=Sn(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};ms.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Sn(t)};ms.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return up.SlowBuffer(t)}});var u6=Ne((zP,c6)=>{"use strict";var fp=Dc().Buffer;function ab(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),r=0;r<e.length;r++)e[r]=255;for(var i=0;i<t.length;i++){var n=t.charAt(i),a=n.charCodeAt(0);if(e[a]!==255)throw new TypeError(n+" is ambiguous");e[a]=i}var s=t.length,o=t.charAt(0),d=Math.log(s)/Math.log(256),h=Math.log(256)/Math.log(s);function w(I){if((Array.isArray(I)||I instanceof Uint8Array)&&(I=fp.from(I)),!fp.isBuffer(I))throw new TypeError("Expected Buffer");if(I.length===0)return"";for(var R=0,F=0,$=0,H=I.length;$!==H&&I[$]===0;)$++,R++;for(var L=(H-$)*h+1>>>0,q=new Uint8Array(L);$!==H;){for(var W=I[$],se=0,N=L-1;(W!==0||se<F)&&N!==-1;N--,se++)W+=256*q[N]>>>0,q[N]=W%s>>>0,W=W/s>>>0;if(W!==0)throw new Error("Non-zero carry");F=se,$++}for(var O=L-F;O!==L&&q[O]===0;)O++;for(var c=o.repeat(R);O<L;++O)c+=t.charAt(q[O]);return c}function A(I){if(typeof I!="string")throw new TypeError("Expected String");if(I.length===0)return fp.alloc(0);for(var R=0,F=0,$=0;I[R]===o;)F++,R++;for(var H=(I.length-R)*d+1>>>0,L=new Uint8Array(H);R<I.length;){var q=I.charCodeAt(R);if(q>255)return;var W=e[q];if(W===255)return;for(var se=0,N=H-1;(W!==0||se<$)&&N!==-1;N--,se++)W+=s*L[N]>>>0,L[N]=W%256>>>0,W=W/256>>>0;if(W!==0)throw new Error("Non-zero carry");$=se,R++}for(var O=H-$;O!==H&&L[O]===0;)O++;var c=fp.allocUnsafe(F+(H-O));c.fill(0,0,F);for(var m=F;O!==H;)c[m++]=L[O++];return c}function D(I){var R=A(I);if(R)return R;throw new Error("Non-base"+s+" character")}return{encode:w,decodeUnsafe:A,decode:D}}c6.exports=ab});var h6=Ne((HP,f6)=>{var sb=u6(),ob="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";f6.exports=sb(ob)});var m6=Ne(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.sha224=Rn.SHA224=Rn.sha256=Rn.SHA256=void 0;var hp=ep();Rn.SHA256=hp.SHA256;Rn.sha256=hp.sha256;Rn.SHA224=hp.SHA224;Rn.sha224=hp.sha224});var g6=Ne((qP,_6)=>{"use strict";var mp=Dc().Buffer;function db(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),r=0;r<e.length;r++)e[r]=255;for(var i=0;i<t.length;i++){var n=t.charAt(i),a=n.charCodeAt(0);if(e[a]!==255)throw new TypeError(n+" is ambiguous");e[a]=i}var s=t.length,o=t.charAt(0),d=Math.log(s)/Math.log(256),h=Math.log(256)/Math.log(s);function w(I){if((Array.isArray(I)||I instanceof Uint8Array)&&(I=mp.from(I)),!mp.isBuffer(I))throw new TypeError("Expected Buffer");if(I.length===0)return"";for(var R=0,F=0,$=0,H=I.length;$!==H&&I[$]===0;)$++,R++;for(var L=(H-$)*h+1>>>0,q=new Uint8Array(L);$!==H;){for(var W=I[$],se=0,N=L-1;(W!==0||se<F)&&N!==-1;N--,se++)W+=256*q[N]>>>0,q[N]=W%s>>>0,W=W/s>>>0;if(W!==0)throw new Error("Non-zero carry");F=se,$++}for(var O=L-F;O!==L&&q[O]===0;)O++;for(var c=o.repeat(R);O<L;++O)c+=t.charAt(q[O]);return c}function A(I){if(typeof I!="string")throw new TypeError("Expected String");if(I.length===0)return mp.alloc(0);for(var R=0,F=0,$=0;I[R]===o;)F++,R++;for(var H=(I.length-R)*d+1>>>0,L=new Uint8Array(H);R<I.length;){var q=I.charCodeAt(R);if(q>255)return;var W=e[q];if(W===255)return;for(var se=0,N=H-1;(W!==0||se<$)&&N!==-1;N--,se++)W+=s*L[N]>>>0,L[N]=W%256>>>0,W=W/256>>>0;if(W!==0)throw new Error("Non-zero carry");$=se,R++}for(var O=H-$;O!==H&&L[O]===0;)O++;var c=mp.allocUnsafe(F+(H-O));c.fill(0,0,F);for(var m=F;O!==H;)c[m++]=L[O++];return c}function D(I){var R=A(I);if(R)return R;throw new Error("Non-base"+s+" character")}return{encode:w,decodeUnsafe:A,decode:D}}_6.exports=db});var E6=Ne((jP,y6)=>{var pb=g6(),lb="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";y6.exports=pb(lb)});var v6=Ne(Uc=>{"use strict";function Kn(t,e,r){return e<=t&&t<=r}function vp(t){if(t===void 0)return{};if(t===Object(t))return t;throw TypeError("Could not convert argument to dictionary")}function cb(t){for(var e=String(t),r=e.length,i=0,n=[];i<r;){var a=e.charCodeAt(i);if(a<55296||a>57343)n.push(a);else if(56320<=a&&a<=57343)n.push(65533);else if(55296<=a&&a<=56319)if(i===r-1)n.push(65533);else{var s=t.charCodeAt(i+1);if(56320<=s&&s<=57343){var o=a&1023,d=s&1023;n.push(65536+(o<<10)+d),i+=1}else n.push(65533)}i+=1}return n}function ub(t){for(var e="",r=0;r<t.length;++r){var i=t[r];i<=65535?e+=String.fromCharCode(i):(i-=65536,e+=String.fromCharCode((i>>10)+55296,(i&1023)+56320))}return e}var _p=-1;function Pc(t){this.tokens=[].slice.call(t)}Pc.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():_p},prepend:function(t){if(Array.isArray(t))for(var e=t;e.length;)this.tokens.unshift(e.pop());else this.tokens.unshift(t)},push:function(t){if(Array.isArray(t))for(var e=t;e.length;)this.tokens.push(e.shift());else this.tokens.push(t)}};var po=-1;function Bc(t,e){if(t)throw TypeError("Decoder error");return e||65533}var gp="utf-8";function yp(t,e){if(!(this instanceof yp))return new yp(t,e);if(t=t!==void 0?String(t).toLowerCase():gp,t!==gp)throw new Error("Encoding not supported. Only utf-8 is supported");e=vp(e),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=!!e.fatal,this._ignoreBOM=!!e.ignoreBOM,Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}yp.prototype={decode:function(e,r){var i;typeof e=="object"&&e instanceof ArrayBuffer?i=new Uint8Array(e):typeof e=="object"&&"buffer"in e&&e.buffer instanceof ArrayBuffer?i=new Uint8Array(e.buffer,e.byteOffset,e.byteLength):i=new Uint8Array(0),r=vp(r),this._streaming||(this._decoder=new fb({fatal:this._fatal}),this._BOMseen=!1),this._streaming=!!r.stream;for(var n=new Pc(i),a=[],s;!n.endOfStream()&&(s=this._decoder.handler(n,n.read()),s!==po);)s!==null&&(Array.isArray(s)?a.push.apply(a,s):a.push(s));if(!this._streaming){do{if(s=this._decoder.handler(n,n.read()),s===po)break;s!==null&&(Array.isArray(s)?a.push.apply(a,s):a.push(s))}while(!n.endOfStream());this._decoder=null}return a.length&&["utf-8"].indexOf(this.encoding)!==-1&&!this._ignoreBOM&&!this._BOMseen&&(a[0]===65279?(this._BOMseen=!0,a.shift()):this._BOMseen=!0),ub(a)}};function Ep(t,e){if(!(this instanceof Ep))return new Ep(t,e);if(t=t!==void 0?String(t).toLowerCase():gp,t!==gp)throw new Error("Encoding not supported. Only utf-8 is supported");e=vp(e),this._streaming=!1,this._encoder=null,this._options={fatal:!!e.fatal},Object.defineProperty(this,"encoding",{value:"utf-8"})}Ep.prototype={encode:function(e,r){e=e?String(e):"",r=vp(r),this._streaming||(this._encoder=new hb(this._options)),this._streaming=!!r.stream;for(var i=[],n=new Pc(cb(e)),a;!n.endOfStream()&&(a=this._encoder.handler(n,n.read()),a!==po);)Array.isArray(a)?i.push.apply(i,a):i.push(a);if(!this._streaming){for(;a=this._encoder.handler(n,n.read()),a!==po;)Array.isArray(a)?i.push.apply(i,a):i.push(a);this._encoder=null}return new Uint8Array(i)}};function fb(t){var e=t.fatal,r=0,i=0,n=0,a=128,s=191;this.handler=function(o,d){if(d===_p&&n!==0)return n=0,Bc(e);if(d===_p)return po;if(n===0){if(Kn(d,0,127))return d;if(Kn(d,194,223))n=1,r=d-192;else if(Kn(d,224,239))d===224&&(a=160),d===237&&(s=159),n=2,r=d-224;else if(Kn(d,240,244))d===240&&(a=144),d===244&&(s=143),n=3,r=d-240;else return Bc(e);return r=r<<6*n,null}if(!Kn(d,a,s))return r=n=i=0,a=128,s=191,o.prepend(d),Bc(e);if(a=128,s=191,i+=1,r+=d-128<<6*(n-i),i!==n)return null;var h=r;return r=n=i=0,h}}function hb(t){var e=t.fatal;this.handler=function(r,i){if(i===_p)return po;if(Kn(i,0,127))return i;var n,a;Kn(i,128,2047)?(n=1,a=192):Kn(i,2048,65535)?(n=2,a=224):Kn(i,65536,1114111)&&(n=3,a=240);for(var s=[(i>>6*n)+a];n>0;){var o=i>>6*(n-1);s.push(128|o&63),n-=1}return s}}Uc.TextEncoder=Ep;Uc.TextDecoder=yp});var A6=Ne(Ht=>{"use strict";var mb=Ht&&Ht.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),_b=Ht&&Ht.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),bn=Ht&&Ht.__decorate||function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},gb=Ht&&Ht.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&mb(e,t,r);return _b(e,t),e},w6=Ht&&Ht.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ht,"__esModule",{value:!0});Ht.deserializeUnchecked=Ht.deserialize=Ht.serialize=Ht.BinaryReader=Ht.BinaryWriter=Ht.BorshError=Ht.baseDecode=Ht.baseEncode=void 0;var xa=w6(Lc()),S6=w6(E6()),yb=gb(v6()),Eb=typeof TextDecoder!="function"?yb.TextDecoder:TextDecoder,vb=new Eb("utf-8",{fatal:!0});function wb(t){return typeof t=="string"&&(t=Buffer.from(t,"utf8")),S6.default.encode(Buffer.from(t))}Ht.baseEncode=wb;function Sb(t){return Buffer.from(S6.default.decode(t))}Ht.baseDecode=Sb;var Mc=1024,Wr=class extends Error{constructor(e){super(e),this.fieldPath=[],this.originalMessage=e}addToFieldPath(e){this.fieldPath.splice(0,0,e),this.message=this.originalMessage+": "+this.fieldPath.join(".")}};Ht.BorshError=Wr;var wp=class{constructor(){this.buf=Buffer.alloc(Mc),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=Buffer.concat([this.buf,Buffer.alloc(Mc)]))}writeU8(e){this.maybeResize(),this.buf.writeUInt8(e,this.length),this.length+=1}writeU16(e){this.maybeResize(),this.buf.writeUInt16LE(e,this.length),this.length+=2}writeU32(e){this.maybeResize(),this.buf.writeUInt32LE(e,this.length),this.length+=4}writeU64(e){this.maybeResize(),this.writeBuffer(Buffer.from(new xa.default(e).toArray("le",8)))}writeU128(e){this.maybeResize(),this.writeBuffer(Buffer.from(new xa.default(e).toArray("le",16)))}writeU256(e){this.maybeResize(),this.writeBuffer(Buffer.from(new xa.default(e).toArray("le",32)))}writeU512(e){this.maybeResize(),this.writeBuffer(Buffer.from(new xa.default(e).toArray("le",64)))}writeBuffer(e){this.buf=Buffer.concat([Buffer.from(this.buf.subarray(0,this.length)),e,Buffer.alloc(Mc)]),this.length+=e.length}writeString(e){this.maybeResize();let r=Buffer.from(e,"utf8");this.writeU32(r.length),this.writeBuffer(r)}writeFixedArray(e){this.writeBuffer(Buffer.from(e))}writeArray(e,r){this.maybeResize(),this.writeU32(e.length);for(let i of e)this.maybeResize(),r(i)}toArray(){return this.buf.subarray(0,this.length)}};Ht.BinaryWriter=wp;function An(t,e,r){let i=r.value;r.value=function(...n){try{return i.apply(this,n)}catch(a){if(a instanceof RangeError){let s=a.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(s)>=0)throw new Wr("Reached the end of buffer when deserializing")}throw a}}}var hi=class{constructor(e){this.buf=e,this.offset=0}readU8(){let e=this.buf.readUInt8(this.offset);return this.offset+=1,e}readU16(){let e=this.buf.readUInt16LE(this.offset);return this.offset+=2,e}readU32(){let e=this.buf.readUInt32LE(this.offset);return this.offset+=4,e}readU64(){let e=this.readBuffer(8);return new xa.default(e,"le")}readU128(){let e=this.readBuffer(16);return new xa.default(e,"le")}readU256(){let e=this.readBuffer(32);return new xa.default(e,"le")}readU512(){let e=this.readBuffer(64);return new xa.default(e,"le")}readBuffer(e){if(this.offset+e>this.buf.length)throw new Wr(`Expected buffer length ${e} isn't within bounds`);let r=this.buf.slice(this.offset,this.offset+e);return this.offset+=e,r}readString(){let e=this.readU32(),r=this.readBuffer(e);try{return vb.decode(r)}catch(i){throw new Wr(`Error decoding UTF-8 string: ${i}`)}}readFixedArray(e){return new Uint8Array(this.readBuffer(e))}readArray(e){let r=this.readU32(),i=Array();for(let n=0;n<r;++n)i.push(e());return i}};bn([An],hi.prototype,"readU8",null);bn([An],hi.prototype,"readU16",null);bn([An],hi.prototype,"readU32",null);bn([An],hi.prototype,"readU64",null);bn([An],hi.prototype,"readU128",null);bn([An],hi.prototype,"readU256",null);bn([An],hi.prototype,"readU512",null);bn([An],hi.prototype,"readString",null);bn([An],hi.prototype,"readFixedArray",null);bn([An],hi.prototype,"readArray",null);Ht.BinaryReader=hi;function R6(t){return t.charAt(0).toUpperCase()+t.slice(1)}function _s(t,e,r,i,n){try{if(typeof i=="string")n[`write${R6(i)}`](r);else if(i instanceof Array)if(typeof i[0]=="number"){if(r.length!==i[0])throw new Wr(`Expecting byte array of length ${i[0]}, but got ${r.length} bytes`);n.writeFixedArray(r)}else if(i.length===2&&typeof i[1]=="number"){if(r.length!==i[1])throw new Wr(`Expecting byte array of length ${i[1]}, but got ${r.length} bytes`);for(let a=0;a<i[1];a++)_s(t,null,r[a],i[0],n)}else n.writeArray(r,a=>{_s(t,e,a,i[0],n)});else if(i.kind!==void 0)switch(i.kind){case"option":{r==null?n.writeU8(0):(n.writeU8(1),_s(t,e,r,i.type,n));break}case"map":{n.writeU32(r.size),r.forEach((a,s)=>{_s(t,e,s,i.key,n),_s(t,e,a,i.value,n)});break}default:throw new Wr(`FieldType ${i} unrecognized`)}else b6(t,r,n)}catch(a){throw a instanceof Wr&&a.addToFieldPath(e),a}}function b6(t,e,r){if(typeof e.borshSerialize=="function"){e.borshSerialize(r);return}let i=t.get(e.constructor);if(!i)throw new Wr(`Class ${e.constructor.name} is missing in schema`);if(i.kind==="struct")i.fields.map(([n,a])=>{_s(t,n,e[n],a,r)});else if(i.kind==="enum"){let n=e[i.field];for(let a=0;a<i.values.length;++a){let[s,o]=i.values[a];if(s===n){r.writeU8(a),_s(t,s,e[s],o,r);break}}}else throw new Wr(`Unexpected schema kind: ${i.kind} for ${e.constructor.name}`)}function Rb(t,e,r=wp){let i=new r;return b6(t,e,i),i.toArray()}Ht.serialize=Rb;function gs(t,e,r,i){try{if(typeof r=="string")return i[`read${R6(r)}`]();if(r instanceof Array){if(typeof r[0]=="number")return i.readFixedArray(r[0]);if(typeof r[1]=="number"){let n=[];for(let a=0;a<r[1];a++)n.push(gs(t,null,r[0],i));return n}else return i.readArray(()=>gs(t,e,r[0],i))}if(r.kind==="option")return i.readU8()?gs(t,e,r.type,i):void 0;if(r.kind==="map"){let n=new Map,a=i.readU32();for(let s=0;s<a;s++){let o=gs(t,e,r.key,i),d=gs(t,e,r.value,i);n.set(o,d)}return n}return Fc(t,r,i)}catch(n){throw n instanceof Wr&&n.addToFieldPath(e),n}}function Fc(t,e,r){if(typeof e.borshDeserialize=="function")return e.borshDeserialize(r);let i=t.get(e);if(!i)throw new Wr(`Class ${e.name} is missing in schema`);if(i.kind==="struct"){let n={};for(let[a,s]of t.get(e).fields)n[a]=gs(t,a,s,r);return new e(n)}if(i.kind==="enum"){let n=r.readU8();if(n>=i.values.length)throw new Wr(`Enum index: ${n} is out of range`);let[a,s]=i.values[n],o=gs(t,a,s,r);return new e({[a]:o})}throw new Wr(`Unexpected schema kind: ${i.kind} for ${e.constructor.name}`)}function bb(t,e,r,i=hi){let n=new i(r),a=Fc(t,e,n);if(n.offset<r.length)throw new Wr(`Unexpected ${r.length-n.offset} bytes after deserialized data`);return a}Ht.deserialize=bb;function Ab(t,e,r,i=hi){let n=new i(r);return Fc(t,e,n)}Ht.deserializeUnchecked=Ab});var ys=Ne(ee=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.s16=ee.s8=ee.nu64be=ee.u48be=ee.u40be=ee.u32be=ee.u24be=ee.u16be=ee.nu64=ee.u48=ee.u40=ee.u32=ee.u24=ee.u16=ee.u8=ee.offset=ee.greedy=ee.Constant=ee.UTF8=ee.CString=ee.Blob=ee.Boolean=ee.BitField=ee.BitStructure=ee.VariantLayout=ee.Union=ee.UnionLayoutDiscriminator=ee.UnionDiscriminator=ee.Structure=ee.Sequence=ee.DoubleBE=ee.Double=ee.FloatBE=ee.Float=ee.NearInt64BE=ee.NearInt64=ee.NearUInt64BE=ee.NearUInt64=ee.IntBE=ee.Int=ee.UIntBE=ee.UInt=ee.OffsetLayout=ee.GreedyCount=ee.ExternalLayout=ee.bindConstructorLayout=ee.nameWithProperty=ee.Layout=ee.uint8ArrayToBuffer=ee.checkUint8Array=void 0;ee.constant=ee.utf8=ee.cstr=ee.blob=ee.unionLayoutDiscriminator=ee.union=ee.seq=ee.bits=ee.struct=ee.f64be=ee.f64=ee.f32be=ee.f32=ee.ns64be=ee.s48be=ee.s40be=ee.s32be=ee.s24be=ee.s16be=ee.ns64=ee.s48=ee.s40=ee.s32=ee.s24=void 0;var $c=Xe("buffer");function uo(t){if(!(t instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}ee.checkUint8Array=uo;function It(t){return uo(t),$c.Buffer.from(t.buffer,t.byteOffset,t.length)}ee.uint8ArrayToBuffer=It;var Lt=class{constructor(e,r){if(!Number.isInteger(e))throw new TypeError("span must be an integer");this.span=e,this.property=r}makeDestinationObject(){return{}}getSpan(e,r){if(0>this.span)throw new RangeError("indeterminate span");return this.span}replicate(e){let r=Object.create(this.constructor.prototype);return Object.assign(r,this),r.property=e,r}fromArray(e){}};ee.Layout=Lt;function zc(t,e){return e.property?t+"["+e.property+"]":t}ee.nameWithProperty=zc;function Ob(t,e){if(typeof t!="function")throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(t,"layout_"))throw new Error("Class is already bound to a layout");if(!(e&&e instanceof Lt))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(e,"boundConstructor_"))throw new Error("layout is already bound to a constructor");t.layout_=e,e.boundConstructor_=t,e.makeDestinationObject=(()=>new t),Object.defineProperty(t.prototype,"encode",{value(r,i){return e.encode(this,r,i)},writable:!0}),Object.defineProperty(t,"decode",{value(r,i){return e.decode(r,i)},writable:!0})}ee.bindConstructorLayout=Ob;var si=class extends Lt{isCount(){throw new Error("ExternalLayout is abstract")}};ee.ExternalLayout=si;var Sp=class extends si{constructor(e=1,r){if(!Number.isInteger(e)||0>=e)throw new TypeError("elementSpan must be a (positive) integer");super(-1,r),this.elementSpan=e}isCount(){return!0}decode(e,r=0){uo(e);let i=e.length-r;return Math.floor(i/this.elementSpan)}encode(e,r,i){return 0}};ee.GreedyCount=Sp;var m1=class extends si{constructor(e,r=0,i){if(!(e instanceof Lt))throw new TypeError("layout must be a Layout");if(!Number.isInteger(r))throw new TypeError("offset must be integer or undefined");super(e.span,i||e.property),this.layout=e,this.offset=r}isCount(){return this.layout instanceof wi||this.layout instanceof Oi}decode(e,r=0){return this.layout.decode(e,r+this.offset)}encode(e,r,i=0){return this.layout.encode(e,r,i+this.offset)}};ee.OffsetLayout=m1;var wi=class extends Lt{constructor(e,r){if(super(e,r),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(e,r=0){return It(e).readUIntLE(r,this.span)}encode(e,r,i=0){return It(r).writeUIntLE(e,i,this.span),this.span}};ee.UInt=wi;var Oi=class extends Lt{constructor(e,r){if(super(e,r),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(e,r=0){return It(e).readUIntBE(r,this.span)}encode(e,r,i=0){return It(r).writeUIntBE(e,i,this.span),this.span}};ee.UIntBE=Oi;var Wn=class extends Lt{constructor(e,r){if(super(e,r),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(e,r=0){return It(e).readIntLE(r,this.span)}encode(e,r,i=0){return It(r).writeIntLE(e,i,this.span),this.span}};ee.Int=Wn;var Ia=class extends Lt{constructor(e,r){if(super(e,r),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(e,r=0){return It(e).readIntBE(r,this.span)}encode(e,r,i=0){return It(r).writeIntBE(e,i,this.span),this.span}};ee.IntBE=Ia;var Vc=Math.pow(2,32);function Fp(t){let e=Math.floor(t/Vc),r=t-e*Vc;return{hi32:e,lo32:r}}function Vp(t,e){return t*Vc+e}var Rp=class extends Lt{constructor(e){super(8,e)}decode(e,r=0){let i=It(e),n=i.readUInt32LE(r),a=i.readUInt32LE(r+4);return Vp(a,n)}encode(e,r,i=0){let n=Fp(e),a=It(r);return a.writeUInt32LE(n.lo32,i),a.writeUInt32LE(n.hi32,i+4),8}};ee.NearUInt64=Rp;var bp=class extends Lt{constructor(e){super(8,e)}decode(e,r=0){let i=It(e),n=i.readUInt32BE(r),a=i.readUInt32BE(r+4);return Vp(n,a)}encode(e,r,i=0){let n=Fp(e),a=It(r);return a.writeUInt32BE(n.hi32,i),a.writeUInt32BE(n.lo32,i+4),8}};ee.NearUInt64BE=bp;var Ap=class extends Lt{constructor(e){super(8,e)}decode(e,r=0){let i=It(e),n=i.readUInt32LE(r),a=i.readInt32LE(r+4);return Vp(a,n)}encode(e,r,i=0){let n=Fp(e),a=It(r);return a.writeUInt32LE(n.lo32,i),a.writeInt32LE(n.hi32,i+4),8}};ee.NearInt64=Ap;var Op=class extends Lt{constructor(e){super(8,e)}decode(e,r=0){let i=It(e),n=i.readInt32BE(r),a=i.readUInt32BE(r+4);return Vp(n,a)}encode(e,r,i=0){let n=Fp(e),a=It(r);return a.writeInt32BE(n.hi32,i),a.writeUInt32BE(n.lo32,i+4),8}};ee.NearInt64BE=Op;var Np=class extends Lt{constructor(e){super(4,e)}decode(e,r=0){return It(e).readFloatLE(r)}encode(e,r,i=0){return It(r).writeFloatLE(e,i),4}};ee.Float=Np;var Tp=class extends Lt{constructor(e){super(4,e)}decode(e,r=0){return It(e).readFloatBE(r)}encode(e,r,i=0){return It(r).writeFloatBE(e,i),4}};ee.FloatBE=Tp;var xp=class extends Lt{constructor(e){super(8,e)}decode(e,r=0){return It(e).readDoubleLE(r)}encode(e,r,i=0){return It(r).writeDoubleLE(e,i),8}};ee.Double=xp;var Ip=class extends Lt{constructor(e){super(8,e)}decode(e,r=0){return It(e).readDoubleBE(r)}encode(e,r,i=0){return It(r).writeDoubleBE(e,i),8}};ee.DoubleBE=Ip;var Cp=class extends Lt{constructor(e,r,i){if(!(e instanceof Lt))throw new TypeError("elementLayout must be a Layout");if(!(r instanceof si&&r.isCount()||Number.isInteger(r)&&0<=r))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");let n=-1;!(r instanceof si)&&0<e.span&&(n=r*e.span),super(n,i),this.elementLayout=e,this.count=r}getSpan(e,r=0){if(0<=this.span)return this.span;let i=0,n=this.count;if(n instanceof si&&(n=n.decode(e,r)),0<this.elementLayout.span)i=n*this.elementLayout.span;else{let a=0;for(;a<n;)i+=this.elementLayout.getSpan(e,r+i),++a}return i}decode(e,r=0){let i=[],n=0,a=this.count;for(a instanceof si&&(a=a.decode(e,r));n<a;)i.push(this.elementLayout.decode(e,r)),r+=this.elementLayout.getSpan(e,r),n+=1;return i}encode(e,r,i=0){let n=this.elementLayout,a=e.reduce((s,o)=>s+n.encode(o,r,i+s),0);return this.count instanceof si&&this.count.encode(e.length,r,i),a}};ee.Sequence=Cp;var Lp=class extends Lt{constructor(e,r,i){if(!(Array.isArray(e)&&e.reduce((a,s)=>a&&s instanceof Lt,!0)))throw new TypeError("fields must be array of Layout instances");typeof r=="boolean"&&i===void 0&&(i=r,r=void 0);for(let a of e)if(0>a.span&&a.property===void 0)throw new Error("fields cannot contain unnamed variable-length layout");let n=-1;try{n=e.reduce((a,s)=>a+s.getSpan(),0)}catch{}super(n,r),this.fields=e,this.decodePrefixes=!!i}getSpan(e,r=0){if(0<=this.span)return this.span;let i=0;try{i=this.fields.reduce((n,a)=>{let s=a.getSpan(e,r);return r+=s,n+s},0)}catch{throw new RangeError("indeterminate span")}return i}decode(e,r=0){uo(e);let i=this.makeDestinationObject();for(let n of this.fields)if(n.property!==void 0&&(i[n.property]=n.decode(e,r)),r+=n.getSpan(e,r),this.decodePrefixes&&e.length===r)break;return i}encode(e,r,i=0){let n=i,a=0,s=0;for(let o of this.fields){let d=o.span;if(s=0<d?d:0,o.property!==void 0){let h=e[o.property];h!==void 0&&(s=o.encode(h,r,i),0>d&&(d=o.getSpan(r,i)))}a=i,i+=d}return a+s-n}fromArray(e){let r=this.makeDestinationObject();for(let i of this.fields)i.property!==void 0&&0<e.length&&(r[i.property]=e.shift());return r}layoutFor(e){if(typeof e!="string")throw new TypeError("property must be string");for(let r of this.fields)if(r.property===e)return r}offsetOf(e){if(typeof e!="string")throw new TypeError("property must be string");let r=0;for(let i of this.fields){if(i.property===e)return r;0>i.span?r=-1:0<=r&&(r+=i.span)}}};ee.Structure=Lp;var _1=class{constructor(e){this.property=e}decode(e,r){throw new Error("UnionDiscriminator is abstract")}encode(e,r,i){throw new Error("UnionDiscriminator is abstract")}};ee.UnionDiscriminator=_1;var co=class extends _1{constructor(e,r){if(!(e instanceof si&&e.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");super(r||e.property||"variant"),this.layout=e}decode(e,r){return this.layout.decode(e,r)}encode(e,r,i){return this.layout.encode(e,r,i)}};ee.UnionLayoutDiscriminator=co;var g1=class extends Lt{constructor(e,r,i){let n;if(e instanceof wi||e instanceof Oi)n=new co(new m1(e));else if(e instanceof si&&e.isCount())n=new co(e);else if(e instanceof _1)n=e;else throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(r===void 0&&(r=null),!(r===null||r instanceof Lt))throw new TypeError("defaultLayout must be null or a Layout");if(r!==null){if(0>r.span)throw new Error("defaultLayout must have constant span");r.property===void 0&&(r=r.replicate("content"))}let a=-1;r&&(a=r.span,0<=a&&(e instanceof wi||e instanceof Oi)&&(a+=n.layout.span)),super(a,i),this.discriminator=n,this.usesPrefixDiscriminator=e instanceof wi||e instanceof Oi,this.defaultLayout=r,this.registry={};let s=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(o){return s(o)},this.configGetSourceVariant=function(o){s=o.bind(this)}}getSpan(e,r=0){if(0<=this.span)return this.span;let i=this.getVariant(e,r);if(!i)throw new Error("unable to determine span for unrecognized variant");return i.getSpan(e,r)}defaultGetSourceVariant(e){if(Object.prototype.hasOwnProperty.call(e,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(e,this.defaultLayout.property))return;let r=this.registry[e[this.discriminator.property]];if(r&&(!r.layout||r.property&&Object.prototype.hasOwnProperty.call(e,r.property)))return r}else for(let r in this.registry){let i=this.registry[r];if(i.property&&Object.prototype.hasOwnProperty.call(e,i.property))return i}throw new Error("unable to infer src variant")}decode(e,r=0){let i,n=this.discriminator,a=n.decode(e,r),s=this.registry[a];if(s===void 0){let o=this.defaultLayout,d=0;this.usesPrefixDiscriminator&&(d=n.layout.span),i=this.makeDestinationObject(),i[n.property]=a,i[o.property]=o.decode(e,r+d)}else i=s.decode(e,r);return i}encode(e,r,i=0){let n=this.getSourceVariant(e);if(n===void 0){let a=this.discriminator,s=this.defaultLayout,o=0;return this.usesPrefixDiscriminator&&(o=a.layout.span),a.encode(e[a.property],r,i),o+s.encode(e[s.property],r,i+o)}return n.encode(e,r,i)}addVariant(e,r,i){let n=new kp(this,e,r,i);return this.registry[e]=n,n}getVariant(e,r=0){let i;return e instanceof Uint8Array?i=this.discriminator.decode(e,r):i=e,this.registry[i]}};ee.Union=g1;var kp=class extends Lt{constructor(e,r,i,n){if(!(e instanceof g1))throw new TypeError("union must be a Union");if(!Number.isInteger(r)||0>r)throw new TypeError("variant must be a (non-negative) integer");if(typeof i=="string"&&n===void 0&&(n=i,i=null),i){if(!(i instanceof Lt))throw new TypeError("layout must be a Layout");if(e.defaultLayout!==null&&0<=i.span&&i.span>e.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if(typeof n!="string")throw new TypeError("variant must have a String property")}let a=e.span;0>e.span&&(a=i?i.span:0,0<=a&&e.usesPrefixDiscriminator&&(a+=e.discriminator.layout.span)),super(a,n),this.union=e,this.variant=r,this.layout=i||null}getSpan(e,r=0){if(0<=this.span)return this.span;let i=0;this.union.usesPrefixDiscriminator&&(i=this.union.discriminator.layout.span);let n=0;return this.layout&&(n=this.layout.getSpan(e,r+i)),i+n}decode(e,r=0){let i=this.makeDestinationObject();if(this!==this.union.getVariant(e,r))throw new Error("variant mismatch");let n=0;return this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span),this.layout?i[this.property]=this.layout.decode(e,r+n):this.property?i[this.property]=!0:this.union.usesPrefixDiscriminator&&(i[this.union.discriminator.property]=this.variant),i}encode(e,r,i=0){let n=0;if(this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(e,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,r,i);let a=n;if(this.layout&&(this.layout.encode(e[this.property],r,i+n),a+=this.layout.getSpan(r,i+n),0<=this.union.span&&a>this.union.span))throw new Error("encoded variant overruns containing union");return a}fromArray(e){if(this.layout)return this.layout.fromArray(e)}};ee.VariantLayout=kp;function lo(t){return 0>t&&(t+=4294967296),t}var y1=class extends Lt{constructor(e,r,i){if(!(e instanceof wi||e instanceof Oi))throw new TypeError("word must be a UInt or UIntBE layout");if(typeof r=="string"&&i===void 0&&(i=r,r=!1),4<e.span)throw new RangeError("word cannot exceed 32 bits");super(e.span,i),this.word=e,this.msb=!!r,this.fields=[];let n=0;this._packedSetValue=function(a){return n=lo(a),this},this._packedGetValue=function(){return n}}decode(e,r=0){let i=this.makeDestinationObject(),n=this.word.decode(e,r);this._packedSetValue(n);for(let a of this.fields)a.property!==void 0&&(i[a.property]=a.decode(e));return i}encode(e,r,i=0){let n=this.word.decode(r,i);this._packedSetValue(n);for(let a of this.fields)if(a.property!==void 0){let s=e[a.property];s!==void 0&&a.encode(s)}return this.word.encode(this._packedGetValue(),r,i)}addField(e,r){let i=new E1(this,e,r);return this.fields.push(i),i}addBoolean(e){let r=new Dp(this,e);return this.fields.push(r),r}fieldFor(e){if(typeof e!="string")throw new TypeError("property must be string");for(let r of this.fields)if(r.property===e)return r}};ee.BitStructure=y1;var E1=class{constructor(e,r,i){if(!(e instanceof y1))throw new TypeError("container must be a BitStructure");if(!Number.isInteger(r)||0>=r)throw new TypeError("bits must be positive integer");let n=8*e.span,a=e.fields.reduce((s,o)=>s+o.bits,0);if(r+a>n)throw new Error("bits too long for span remainder ("+(n-a)+" of "+n+" remain)");this.container=e,this.bits=r,this.valueMask=(1<<r)-1,r===32&&(this.valueMask=4294967295),this.start=a,this.container.msb&&(this.start=n-a-r),this.wordMask=lo(this.valueMask<<this.start),this.property=i}decode(e,r){let i=this.container._packedGetValue();return lo(i&this.wordMask)>>>this.start}encode(e){if(typeof e!="number"||!Number.isInteger(e)||e!==lo(e&this.valueMask))throw new TypeError(zc("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);let r=this.container._packedGetValue(),i=lo(e<<this.start);this.container._packedSetValue(lo(r&~this.wordMask)|i)}};ee.BitField=E1;var Dp=class extends E1{constructor(e,r){super(e,1,r)}decode(e,r){return!!super.decode(e,r)}encode(e){typeof e=="boolean"&&(e=+e),super.encode(e)}};ee.Boolean=Dp;var Bp=class extends Lt{constructor(e,r){if(!(e instanceof si&&e.isCount()||Number.isInteger(e)&&0<=e))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");let i=-1;e instanceof si||(i=e),super(i,r),this.length=e}getSpan(e,r){let i=this.span;return 0>i&&(i=this.length.decode(e,r)),i}decode(e,r=0){let i=this.span;return 0>i&&(i=this.length.decode(e,r)),It(e).slice(r,r+i)}encode(e,r,i){let n=this.length;if(this.length instanceof si&&(n=e.length),!(e instanceof Uint8Array&&n===e.length))throw new TypeError(zc("Blob.encode",this)+" requires (length "+n+") Uint8Array as src");if(i+n>r.length)throw new RangeError("encoding overruns Uint8Array");let a=It(e);return It(r).write(a.toString("hex"),i,n,"hex"),this.length instanceof si&&this.length.encode(n,r,i),n}};ee.Blob=Bp;var Pp=class extends Lt{constructor(e){super(-1,e)}getSpan(e,r=0){uo(e);let i=r;for(;i<e.length&&e[i]!==0;)i+=1;return 1+i-r}decode(e,r=0){let i=this.getSpan(e,r);return It(e).slice(r,r+i-1).toString("utf-8")}encode(e,r,i=0){typeof e!="string"&&(e=String(e));let n=$c.Buffer.from(e,"utf8"),a=n.length;if(i+a>r.length)throw new RangeError("encoding overruns Buffer");let s=It(r);return n.copy(s,i),s[i+a]=0,a+1}};ee.CString=Pp;var Up=class extends Lt{constructor(e,r){if(typeof e=="string"&&r===void 0&&(r=e,e=void 0),e===void 0)e=-1;else if(!Number.isInteger(e))throw new TypeError("maxSpan must be an integer");super(-1,r),this.maxSpan=e}getSpan(e,r=0){return uo(e),e.length-r}decode(e,r=0){let i=this.getSpan(e,r);if(0<=this.maxSpan&&this.maxSpan<i)throw new RangeError("text length exceeds maxSpan");return It(e).slice(r,r+i).toString("utf-8")}encode(e,r,i=0){typeof e!="string"&&(e=String(e));let n=$c.Buffer.from(e,"utf8"),a=n.length;if(0<=this.maxSpan&&this.maxSpan<a)throw new RangeError("text length exceeds maxSpan");if(i+a>r.length)throw new RangeError("encoding overruns Buffer");return n.copy(It(r),i),a}};ee.UTF8=Up;var Mp=class extends Lt{constructor(e,r){super(0,r),this.value=e}decode(e,r){return this.value}encode(e,r,i){return 0}};ee.Constant=Mp;ee.greedy=((t,e)=>new Sp(t,e));ee.offset=((t,e,r)=>new m1(t,e,r));ee.u8=(t=>new wi(1,t));ee.u16=(t=>new wi(2,t));ee.u24=(t=>new wi(3,t));ee.u32=(t=>new wi(4,t));ee.u40=(t=>new wi(5,t));ee.u48=(t=>new wi(6,t));ee.nu64=(t=>new Rp(t));ee.u16be=(t=>new Oi(2,t));ee.u24be=(t=>new Oi(3,t));ee.u32be=(t=>new Oi(4,t));ee.u40be=(t=>new Oi(5,t));ee.u48be=(t=>new Oi(6,t));ee.nu64be=(t=>new bp(t));ee.s8=(t=>new Wn(1,t));ee.s16=(t=>new Wn(2,t));ee.s24=(t=>new Wn(3,t));ee.s32=(t=>new Wn(4,t));ee.s40=(t=>new Wn(5,t));ee.s48=(t=>new Wn(6,t));ee.ns64=(t=>new Ap(t));ee.s16be=(t=>new Ia(2,t));ee.s24be=(t=>new Ia(3,t));ee.s32be=(t=>new Ia(4,t));ee.s40be=(t=>new Ia(5,t));ee.s48be=(t=>new Ia(6,t));ee.ns64be=(t=>new Op(t));ee.f32=(t=>new Np(t));ee.f32be=(t=>new Tp(t));ee.f64=(t=>new xp(t));ee.f64be=(t=>new Ip(t));ee.struct=((t,e,r)=>new Lp(t,e,r));ee.bits=((t,e,r)=>new y1(t,e,r));ee.seq=((t,e,r)=>new Cp(t,e,r));ee.union=((t,e,r)=>new g1(t,e,r));ee.unionLayoutDiscriminator=((t,e)=>new co(t,e));ee.blob=((t,e)=>new Bp(t,e));ee.cstr=(t=>new Pp(t));ee.utf8=((t,e)=>new Up(t,e));ee.constant=((t,e)=>new Mp(t,e))});var hu=Ne(z=>{"use strict";var O6=1,N6=2,T6=3,x6=4,I6=5,C6=6,L6=7,k6=8,D6=9,Hc=10,Gc=-32700,qc=-32603,jc=-32602,Kc=-32601,Wc=-32600,B6=-32019,P6=-32018,U6=-32017,M6=-32016,Yc=-32015,Xc=-32014,F6=-32013,Zc=-32012,V6=-32011,Jc=-32010,Qc=-32009,$6=-32008,eu=-32007,tu=-32006,z6=-32005,ru=-32004,H6=-32003,w1=-32002,iu=-32001,G6=28e5,q6=2800001,j6=2800002,K6=2800003,W6=2800004,Y6=2800005,X6=2800006,Z6=2800007,J6=2800008,Q6=2800009,e4=2800010,t4=2800011,r4=323e4,i4=32300001,n4=3230002,a4=3230003,s4=3230004,o4=361e4,d4=3610001,p4=3610002,l4=3610003,c4=3610004,u4=3610005,f4=3610006,h4=3610007,m4=3611e3,_4=3704e3,g4=3704001,y4=3704002,E4=3704003,v4=3704004,w4=4128e3,S4=4128001,R4=4128002,nu=4615e3,b4=4615001,A4=4615002,O4=4615003,N4=4615004,T4=4615005,x4=4615006,I4=4615007,C4=4615008,L4=4615009,k4=4615010,D4=4615011,B4=4615012,P4=4615013,U4=4615014,M4=4615015,F4=4615016,V4=4615017,$4=4615018,z4=4615019,H4=4615020,G4=4615021,q4=4615022,j4=4615023,K4=4615024,W4=4615025,au=4615026,Y4=4615027,X4=4615028,Z4=4615029,J4=4615030,Q4=4615031,e3=4615032,t3=4615033,r3=4615034,i3=4615035,n3=4615036,a3=4615037,s3=4615038,o3=4615039,d3=4615040,p3=4615041,l3=4615042,c3=4615043,u3=4615044,f3=4615045,h3=4615046,m3=4615047,_3=4615048,g3=4615049,y3=4615050,E3=4615051,v3=4615052,w3=4615053,S3=4615054,R3=5508e3,b3=5508001,A3=5508002,O3=5508003,N3=5508004,T3=5508005,x3=5508006,I3=5508007,C3=5508008,L3=5508009,k3=5508010,D3=5508011,B3=5607e3,P3=5607001,U3=5607002,M3=5607003,F3=5607004,V3=5607005,$3=5607006,z3=5607007,H3=5607008,G3=5607009,q3=5607010,j3=5607011,K3=5607012,W3=5607013,Y3=5607014,X3=5607015,Z3=5607016,J3=5607017,Q3=5663e3,e5=5663001,t5=5663002,r5=5663003,i5=5663004,n5=5663005,a5=5663006,s5=5663007,o5=5663008,d5=5663009,p5=5663010,l5=5663011,c5=5663012,u5=5663013,f5=5663014,h5=5663015,m5=5663016,_5=5663017,g5=5663018,su=5663019,y5=5663020,E5=5663021,v5=5663022,ou=705e4,w5=7050001,S5=7050002,R5=7050003,b5=7050004,A5=7050005,O5=7050006,N5=7050007,T5=7050008,x5=7050009,I5=7050010,C5=7050011,L5=7050012,k5=7050013,D5=7050014,B5=7050015,P5=7050016,U5=7050017,M5=7050018,F5=7050019,V5=7050020,$5=7050021,z5=7050022,H5=7050023,G5=7050024,q5=7050025,j5=7050026,K5=7050027,W5=7050028,Y5=7050029,du=7050030,pu=7050031,X5=7050032,Z5=7050033,J5=7050034,lu=7050035,Q5=7050036,e8=7618e3,t8=7618001,r8=7618002,i8=7618003,n8=7618004,a8=7618005,s8=7618006,o8=7618007,d8=7618008,p8=7618009,l8=8078e3,c8=8078001,u8=8078002,f8=8078003,h8=8078004,m8=8078005,_8=8078006,g8=8078007,y8=8078008,E8=8078009,v8=8078010,w8=8078011,S8=8078012,R8=8078013,b8=8078014,A8=8078015,O8=8078016,N8=8078017,T8=8078018,x8=8078019,I8=8078020,C8=8078021,L8=8078022,k8=8078023,D8=81e5,B8=8100001,P8=8100002,U8=8100003,M8=819e4,F8=8190001,V8=8190002,$8=8190003,z8=8190004,H8=99e5,G8=9900001,q8=9900002,j8=9900003,K8=9900004,W8=9900005,Y8=9900006;function X8(t){return Array.isArray(t)?"%5B"+t.map(X8).join("%2C%20")+"%5D":typeof t=="bigint"?`${t}n`:encodeURIComponent(String(t!=null&&Object.getPrototypeOf(t)===null?{...t}:t))}function Nb([t,e]){return`${t}=${X8(e)}`}function Tb(t){let e=Object.entries(t).map(Nb).join("&");return Buffer.from(e,"utf8").toString("base64")}var xb={[r4]:"Account not found at address: $address",[s4]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[a4]:"Expected decoded account at address: $address",[n4]:"Failed to decode account data at address: $address",[i4]:"Accounts not found at addresses: $addresses",[Q6]:"Unable to find a viable program address bump seed.",[j6]:"$putativeAddress is not a base58-encoded address.",[G6]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[K6]:"The `CryptoKey` must be an `Ed25519` public key.",[t4]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[J6]:"Invalid seeds; point must fall off the Ed25519 curve.",[W6]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[X6]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[Z6]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[Y6]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[e4]:"Program address cannot end with PDA marker.",[q6]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[x6]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[O6]:"The network has progressed past the last block for which this transaction could have been committed.",[l8]:"Codec [$codecDescription] cannot decode empty byte arrays.",[L8]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[I8]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[m8]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[_8]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[h8]:"Encoder and decoder must either both be fixed-size or variable-size.",[y8]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[u8]:"Expected a fixed-size codec, got a variable-size one.",[R8]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[f8]:"Expected a variable-size codec, got a fixed-size one.",[x8]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[c8]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[T8]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[E8]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[v8]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[A8]:"Invalid literal union variant. Expected one of [$variants], got $value.",[g8]:"Expected [$codecDescription] to have $expected items, got $actual.",[S8]:"Invalid value $value for base $base with alphabet $alphabet.",[O8]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[w8]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[b8]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[C8]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[N8]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[k8]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[m4]:"No random values implementation could be found.",[L4]:"instruction requires an uninitialized account",[j4]:"instruction tries to borrow reference for an account which is already borrowed",[K4]:"instruction left account with an outstanding borrowed reference",[G4]:"program other than the account's owner changed the size of the account data",[T4]:"account data too small for instruction",[q4]:"instruction expected an executable account",[h3]:"An account does not have enough lamports to be rent-exempt",[_3]:"Program arithmetic overflowed",[f3]:"Failed to serialize or deserialize account data: $encodedData",[S3]:"Builtin programs must consume compute units",[e3]:"Cross-program invocation call depth too deep",[s3]:"Computational budget exceeded",[au]:"custom program error: #$code",[V4]:"instruction contains duplicate accounts",[W4]:"instruction modifications of multiply-passed account differ",[J4]:"executable accounts must be rent exempt",[X4]:"instruction changed executable accounts data",[Z4]:"instruction changed the balance of an executable account",[$4]:"instruction changed executable bit of an account",[U4]:"instruction modified data of an account it does not own",[P4]:"instruction spent from the balance of an account it does not own",[b4]:"generic instruction error",[y3]:"Provided owner is not allowed",[c3]:"Account is immutable",[u3]:"Incorrect authority provided",[I4]:"incorrect program id for instruction",[x4]:"insufficient funds for instruction",[N4]:"invalid account data for instruction",[m3]:"Invalid account owner",[A4]:"invalid program argument",[Y4]:"program returned invalid error code",[O4]:"invalid instruction data",[a3]:"Failed to reallocate account data",[n3]:"Provided seeds do not result in a valid address",[E3]:"Accounts data allocations exceeded the maximum allowed per transaction",[v3]:"Max accounts exceeded",[w3]:"Max instruction trace length exceeded",[i3]:"Length of the seed is too long for address generation",[t3]:"An account required by the instruction is missing",[C4]:"missing required signature for instruction",[B4]:"instruction illegally modified the program id of an account",[H4]:"insufficient account keys for instruction",[o3]:"Cross-program invocation with unauthorized signer or writable account",[d3]:"Failed to create program execution environment",[l3]:"Program failed to compile",[p3]:"Program failed to complete",[F4]:"instruction modified data of a read-only account",[M4]:"instruction changed the balance of a read-only account",[r3]:"Cross-program invocation reentrancy not allowed for this instruction",[z4]:"instruction modified rent epoch of an account",[D4]:"sum of account balances before and after instruction do not match",[k4]:"instruction requires an initialized account",[nu]:"",[Q4]:"Unsupported program id",[g3]:"Unsupported sysvar",[W8]:"Invalid instruction plan kind: $kind.",[r8]:"The provided instruction plan is empty.",[a8]:"No failed transaction plan result was found in the provided transaction plan result.",[n8]:"This transaction plan executor does not support non-divisible sequential plans. To support them, you may create your own executor such that multi-transaction atomicity is preserved \u2014 e.g. by targetting RPCs that support transaction bundles.",[i8]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute for more details. Note that the `cause` property is deprecated, and a future version will not set it.",[e8]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[Y8]:"Invalid transaction plan kind: $kind.",[t8]:"No more instructions to pack; the message packer has completed the instruction plan.",[s8]:"Unexpected instruction plan. Expected $expectedKind plan, got $actualKind plan.",[o8]:"Unexpected transaction plan. Expected $expectedKind plan, got $actualKind plan.",[d8]:"Unexpected transaction plan result. Expected $expectedKind plan, got $actualKind plan.",[p8]:"Expected a successful transaction plan result. I.e. there is at least one failed or cancelled transaction in the plan.",[w4]:"The instruction does not have any accounts.",[S4]:"The instruction does not have any data.",[R4]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[I6]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[N6]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[q8]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[K8]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[G8]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[H8]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[j8]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[qc]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[jc]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[Wc]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[Kc]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[Gc]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[Zc]:"$__serverMessage",[iu]:"$__serverMessage",[ru]:"$__serverMessage",[Xc]:"$__serverMessage",[U6]:"Epoch rewards period still active at slot $slot",[Jc]:"$__serverMessage",[Qc]:"$__serverMessage",[B6]:"Failed to query long-term storage; please try again",[M6]:"Minimum context slot has not been reached",[z6]:"Node is unhealthy; behind by $numSlotsBehind slots",[$6]:"No snapshot",[w1]:"Transaction simulation failed",[P6]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[eu]:"$__serverMessage",[V6]:"Transaction history is not available from this node",[tu]:"$__serverMessage",[F6]:"Transaction signature length mismatch",[H6]:"Transaction signature verification failure",[Yc]:"$__serverMessage",[_4]:"Key pair bytes must be of length 64, got $byteLength.",[g4]:"Expected private key bytes with length 32. Actual length: $actualLength.",[y4]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[v4]:"The provided private key does not match the provided public key.",[E4]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[C6]:"Lamports value must be in the range [0, 2e64-1]",[L6]:"`$value` cannot be parsed as a `BigInt`",[Hc]:"$message",[k6]:"`$value` cannot be parsed as a `Number`",[T6]:"No nonce account could be found at address `$nonceAccountAddress`",[M3]:"Expected base58 encoded application domain to decode to a byte array of length 32. Actual length: $actualLength.",[W3]:"Attempted to sign an offchain message with an address that is not a signer for it",[U3]:"Expected base58-encoded application domain string of length in the range [32, 44]. Actual length: $actualLength.",[K3]:"The signer addresses in this offchain message envelope do not match the list of required signers in the message preamble. These unexpected signers were present in the envelope: `[$unexpectedSigners]`. These required signers were missing from the envelope `[$missingSigners]`.",[B3]:"The message body provided has a byte-length of $actualBytes. The maximum allowable byte-length is $maxBytes",[z3]:"Expected message format $expectedMessageFormat, got $actualMessageFormat",[H3]:"The message length specified in the message preamble is $specifiedLength bytes. The actual length of the message is $actualLength bytes.",[G3]:"Offchain message content must be non-empty",[V3]:"Offchain message must specify the address of at least one required signer",[q3]:"Offchain message envelope must reserve space for at least one signature",[F3]:"The offchain message preamble specifies $numRequiredSignatures required signature(s), got $signaturesLength.",[X3]:"The signatories of this offchain message must be listed in lexicographical order",[Z3]:"An address must be listed no more than once among the signatories of an offchain message",[j3]:"Offchain message is missing signatures for addresses: $addresses.",[J3]:"Offchain message signature verification failed. Signature mismatch for required signatories [$signatoriesWithInvalidSignatures]. Missing signatures for signatories [$signatoriesWithMissingSignatures]",[P3]:"The message body provided contains characters whose codes fall outside the allowed range. In order to ensure clear-signing compatiblity with hardware wallets, the message may only contain line feeds and characters in the range [\\x20-\\x7e].",[Y3]:"Expected offchain message version $expectedVersion. Got $actualVersion.",[$3]:"This version of Kit does not support decoding offchain messages with version $unsupportedVersion. The current max supported version is 0.",[M8]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[V8]:"WebSocket was closed before payload could be added to the send buffer",[$8]:"WebSocket connection closed",[z8]:"WebSocket failed to connect",[F8]:"Failed to obtain a subscription id from the server",[U8]:"Could not find an API plan for RPC method: `$method`",[D8]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[P8]:"HTTP error ($statusCode): $message",[B8]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[R3]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[b3]:"The provided value does not implement the `KeyPairSigner` interface",[O3]:"The provided value does not implement the `MessageModifyingSigner` interface",[N3]:"The provided value does not implement the `MessagePartialSigner` interface",[A3]:"The provided value does not implement any of the `MessageSigner` interfaces",[x3]:"The provided value does not implement the `TransactionModifyingSigner` interface",[I3]:"The provided value does not implement the `TransactionPartialSigner` interface",[C3]:"The provided value does not implement the `TransactionSendingSigner` interface",[T3]:"The provided value does not implement any of the `TransactionSigner` interfaces",[L3]:"More than one `TransactionSendingSigner` was identified.",[k3]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[D3]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[h4]:"Cannot export a non-extractable key.",[d4]:"No digest implementation could be found.",[o4]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[p4]:`This runtime does not support the generation of Ed25519 key pairs.
|
|
6
|
+
|
|
7
|
+
Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
|
|
8
|
+
|
|
9
|
+
For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[l4]:"No signature verification implementation could be found.",[c4]:"No key generation implementation could be found.",[u4]:"No signing implementation could be found.",[f4]:"No key export implementation could be found.",[D6]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[P5]:"Transaction processing left an account with an outstanding borrowed reference",[w5]:"Account in use",[S5]:"Account loaded twice",[R5]:"Attempt to debit an account but found no record of a prior credit.",[H5]:"Transaction loads an address table account that doesn't exist",[N5]:"This transaction has already been processed",[T5]:"Blockhash not found",[x5]:"Loader call chain is too deep",[B5]:"Transactions are currently disabled due to cluster maintenance",[du]:"Transaction contains a duplicate instruction ($index) that is not allowed",[A5]:"Insufficient funds for fee",[pu]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[O5]:"This account may not be used to pay transaction fees",[C5]:"Transaction contains an invalid account reference",[q5]:"Transaction loads an address table account with invalid data",[j5]:"Transaction address table lookup uses an invalid index",[G5]:"Transaction loads an address table account with an invalid owner",[Z5]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[k5]:"This program may not be used for executing instructions",[K5]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[F5]:"Transaction loads a writable account that cannot be written",[X5]:"Transaction exceeded max loaded accounts data size cap",[I5]:"Transaction requires a fee but has no signature present",[b5]:"Attempt to load a program that does not exist",[lu]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[J5]:"ResanitizationNeeded",[D5]:"Transaction failed to sanitize accounts offsets correctly",[L5]:"Transaction did not pass signature verification",[z5]:"Transaction locked too many accounts",[Q5]:"Sum of account balances before and after transaction do not match",[ou]:"The transaction failed with the error `$errorName`",[M5]:"Transaction version is unsupported",[$5]:"Transaction would exceed account data limit within the block",[Y5]:"Transaction would exceed total account data limit",[V5]:"Transaction would exceed max account limit within the block",[U5]:"Transaction would exceed max Block Cost Limit",[W5]:"Transaction would exceed max Vote Cost Limit",[h5]:"Attempted to sign a transaction with an address that is not a signer for it",[p5]:"Transaction is missing an address at index: $index.",[m5]:"Transaction has no expected signers therefore it cannot be encoded",[y5]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[t5]:"Transaction does not have a blockhash lifetime",[r5]:"Transaction is not a durable nonce transaction",[n5]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[a5]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[o5]:"No fee payer set in CompiledTransaction",[s5]:"Could not find program address at index $index",[g5]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[su]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[l5]:"Transaction is missing a fee payer.",[c5]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[f5]:"Transaction first instruction is not advance nonce account instruction.",[u5]:"Transaction with no instructions cannot be durable nonce transaction.",[Q3]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[e5]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[_5]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[d5]:"Transaction is missing signatures for addresses: $addresses.",[i5]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[E5]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[v5]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."},Yn="i",On="t";function Ib(t,e={}){let r=xb[t];if(r.length===0)return"";let i;function n(s){if(i[On]===2){let o=r.slice(i[Yn]+1,s);a.push(o in e?`${e[o]}`:`$${o}`)}else i[On]===1&&a.push(r.slice(i[Yn],s))}let a=[];return r.split("").forEach((s,o)=>{if(o===0){i={[Yn]:0,[On]:r[0]==="\\"?0:r[0]==="$"?2:1};return}let d;switch(i[On]){case 0:d={[Yn]:o,[On]:1};break;case 1:s==="\\"?d={[Yn]:o,[On]:0}:s==="$"&&(d={[Yn]:o,[On]:2});break;case 2:s==="\\"?d={[Yn]:o,[On]:0}:s==="$"?d={[Yn]:o,[On]:2}:s.match(/\w/)||(d={[Yn]:o,[On]:1});break}d&&(i!==d&&n(o),i=d)}),n(),a.join("")}function Cb(t,e={}){if(process.env.NODE_ENV!=="production")return Ib(t,e);{let r=`Solana error #${t}; Decode this error by running \`npx @solana/errors decode -- ${t}`;return Object.keys(e).length&&(r+=` '${Tb(e)}'`),`${r}\``}}function Z8(t,e){return t instanceof Error&&t.name==="SolanaError"?e!==void 0?t.context.__code===e:!0:!1}var v1=class extends Error{cause=this.cause;context;constructor(...[t,e]){let r,i;e&&Object.entries(Object.getOwnPropertyDescriptors(e)).forEach(([a,s])=>{a==="cause"?i={cause:s.value}:(r===void 0&&(r={__code:t}),Object.defineProperty(r,a,s))});let n=Cb(t,r);super(n,i),this.context=Object.freeze(r===void 0?{__code:t}:r),this.name="SolanaError"}};function cu(...t){"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(...t)}function J8({errorCodeBaseOffset:t,getErrorContext:e,orderedErrorNames:r,rpcEnumError:i},n){let a,s;typeof i=="string"?a=i:(a=Object.keys(i)[0],s=i[a]);let o=r.indexOf(a),d=t+o,h=e(d,a,s),w=new v1(d,h);return cu(w,n),w}var Lb=["GenericError","InvalidArgument","InvalidInstructionData","InvalidAccountData","AccountDataTooSmall","InsufficientFunds","IncorrectProgramId","MissingRequiredSignature","AccountAlreadyInitialized","UninitializedAccount","UnbalancedInstruction","ModifiedProgramId","ExternalAccountLamportSpend","ExternalAccountDataModified","ReadonlyLamportChange","ReadonlyDataModified","DuplicateAccountIndex","ExecutableModified","RentEpochModified","NotEnoughAccountKeys","AccountDataSizeChanged","AccountNotExecutable","AccountBorrowFailed","AccountBorrowOutstanding","DuplicateAccountOutOfSync","Custom","InvalidError","ExecutableDataModified","ExecutableLamportChange","ExecutableAccountNotRentExempt","UnsupportedProgramId","CallDepth","MissingAccount","ReentrancyNotAllowed","MaxSeedLengthExceeded","InvalidSeeds","InvalidRealloc","ComputationalBudgetExceeded","PrivilegeEscalation","ProgramEnvironmentSetupFailure","ProgramFailedToComplete","ProgramFailedToCompile","Immutable","IncorrectAuthority","BorshIoError","AccountNotRentExempt","InvalidAccountOwner","ArithmeticOverflow","UnsupportedSysvar","IllegalOwner","MaxAccountsDataAllocationsExceeded","MaxAccountsExceeded","MaxInstructionTraceLengthExceeded","BuiltinProgramsMustConsumeComputeUnits"];function uu(t,e){let r=Number(t);return J8({errorCodeBaseOffset:4615001,getErrorContext(i,n,a){return i===nu?{errorName:n,index:r,...a!==void 0?{instructionErrorContext:a}:null}:i===au?{code:Number(a),index:r}:{index:r}},orderedErrorNames:Lb,rpcEnumError:e},uu)}var kb=["AccountInUse","AccountLoadedTwice","AccountNotFound","ProgramAccountNotFound","InsufficientFundsForFee","InvalidAccountForFee","AlreadyProcessed","BlockhashNotFound","CallChainTooDeep","MissingSignatureForFee","InvalidAccountIndex","SignatureFailure","InvalidProgramForExecution","SanitizeFailure","ClusterMaintenance","AccountBorrowOutstanding","WouldExceedMaxBlockCostLimit","UnsupportedVersion","InvalidWritableAccount","WouldExceedMaxAccountCostLimit","WouldExceedAccountDataBlockLimit","TooManyAccountLocks","AddressLookupTableNotFound","InvalidAddressLookupTableOwner","InvalidAddressLookupTableData","InvalidAddressLookupTableIndex","InvalidRentPayingAccount","WouldExceedMaxVoteCostLimit","WouldExceedAccountDataTotalLimit","DuplicateInstruction","InsufficientFundsForRent","MaxLoadedAccountsDataSizeExceeded","InvalidLoadedAccountsDataSizeLimit","ResanitizationNeeded","ProgramExecutionTemporarilyRestricted","UnbalancedTransaction"];function fu(t){return typeof t=="object"&&"InstructionError"in t?uu(...t.InstructionError):J8({errorCodeBaseOffset:7050001,getErrorContext(e,r,i){if(e===ou)return{errorName:r,...i!==void 0?{transactionErrorContext:i}:null};if(e===du)return{index:Number(i)};if(e===pu||e===lu)return{accountIndex:Number(i.account_index)}},orderedErrorNames:kb,rpcEnumError:t},fu)}function Q8(t){let e;if(Db(t)){let{code:r,data:i,message:n}=t,a=Number(r);if(a===w1){let{err:s,...o}=i,d=s?{cause:fu(s)}:null;e=new v1(w1,{...o,...d})}else{let s;switch(a){case qc:case jc:case Wc:case Kc:case Gc:case Zc:case iu:case ru:case Xc:case Jc:case Qc:case eu:case tu:case Yc:s={__serverMessage:n};break;default:typeof i=="object"&&!Array.isArray(i)&&(s=i)}e=new v1(a,s)}}else{let r=typeof t=="object"&&t!==null&&"message"in t&&typeof t.message=="string"?t.message:"Malformed JSON-RPC error with no message attribute";e=new v1(Hc,{error:t,message:r})}return cu(e,Q8),e}function Db(t){return typeof t=="object"&&t!==null&&"code"in t&&"message"in t&&(typeof t.code=="number"||typeof t.code=="bigint")&&typeof t.message=="string"}function Bb(t){let e=[w1,su];return Z8(t)&&t.cause&&e.includes(t.context.__code)?t.cause:t}z.SOLANA_ERROR__ACCOUNTS__ACCOUNT_NOT_FOUND=r4;z.SOLANA_ERROR__ACCOUNTS__EXPECTED_ALL_ACCOUNTS_TO_BE_DECODED=s4;z.SOLANA_ERROR__ACCOUNTS__EXPECTED_DECODED_ACCOUNT=a4;z.SOLANA_ERROR__ACCOUNTS__FAILED_TO_DECODE_ACCOUNT=n4;z.SOLANA_ERROR__ACCOUNTS__ONE_OR_MORE_ACCOUNTS_NOT_FOUND=i4;z.SOLANA_ERROR__ADDRESSES__FAILED_TO_FIND_VIABLE_PDA_BUMP_SEED=Q6;z.SOLANA_ERROR__ADDRESSES__INVALID_BASE58_ENCODED_ADDRESS=j6;z.SOLANA_ERROR__ADDRESSES__INVALID_BYTE_LENGTH=G6;z.SOLANA_ERROR__ADDRESSES__INVALID_ED25519_PUBLIC_KEY=K6;z.SOLANA_ERROR__ADDRESSES__INVALID_OFF_CURVE_ADDRESS=t4;z.SOLANA_ERROR__ADDRESSES__INVALID_SEEDS_POINT_ON_CURVE=J6;z.SOLANA_ERROR__ADDRESSES__MALFORMED_PDA=W6;z.SOLANA_ERROR__ADDRESSES__MAX_NUMBER_OF_PDA_SEEDS_EXCEEDED=X6;z.SOLANA_ERROR__ADDRESSES__MAX_PDA_SEED_LENGTH_EXCEEDED=Z6;z.SOLANA_ERROR__ADDRESSES__PDA_BUMP_SEED_OUT_OF_RANGE=Y6;z.SOLANA_ERROR__ADDRESSES__PDA_ENDS_WITH_PDA_MARKER=e4;z.SOLANA_ERROR__ADDRESSES__STRING_LENGTH_OUT_OF_RANGE=q6;z.SOLANA_ERROR__BLOCKHASH_STRING_LENGTH_OUT_OF_RANGE=x6;z.SOLANA_ERROR__BLOCK_HEIGHT_EXCEEDED=O6;z.SOLANA_ERROR__CODECS__CANNOT_DECODE_EMPTY_BYTE_ARRAY=l8;z.SOLANA_ERROR__CODECS__CANNOT_USE_LEXICAL_VALUES_AS_ENUM_DISCRIMINATORS=L8;z.SOLANA_ERROR__CODECS__ENCODED_BYTES_MUST_NOT_INCLUDE_SENTINEL=I8;z.SOLANA_ERROR__CODECS__ENCODER_DECODER_FIXED_SIZE_MISMATCH=m8;z.SOLANA_ERROR__CODECS__ENCODER_DECODER_MAX_SIZE_MISMATCH=_8;z.SOLANA_ERROR__CODECS__ENCODER_DECODER_SIZE_COMPATIBILITY_MISMATCH=h8;z.SOLANA_ERROR__CODECS__ENUM_DISCRIMINATOR_OUT_OF_RANGE=y8;z.SOLANA_ERROR__CODECS__EXPECTED_DECODER_TO_CONSUME_ENTIRE_BYTE_ARRAY=k8;z.SOLANA_ERROR__CODECS__EXPECTED_FIXED_LENGTH=u8;z.SOLANA_ERROR__CODECS__EXPECTED_POSITIVE_BYTE_LENGTH=R8;z.SOLANA_ERROR__CODECS__EXPECTED_VARIABLE_LENGTH=f8;z.SOLANA_ERROR__CODECS__EXPECTED_ZERO_VALUE_TO_MATCH_ITEM_FIXED_SIZE=x8;z.SOLANA_ERROR__CODECS__INVALID_BYTE_LENGTH=c8;z.SOLANA_ERROR__CODECS__INVALID_CONSTANT=T8;z.SOLANA_ERROR__CODECS__INVALID_DISCRIMINATED_UNION_VARIANT=E8;z.SOLANA_ERROR__CODECS__INVALID_ENUM_VARIANT=v8;z.SOLANA_ERROR__CODECS__INVALID_LITERAL_UNION_VARIANT=A8;z.SOLANA_ERROR__CODECS__INVALID_NUMBER_OF_ITEMS=g8;z.SOLANA_ERROR__CODECS__INVALID_STRING_FOR_BASE=S8;z.SOLANA_ERROR__CODECS__LITERAL_UNION_DISCRIMINATOR_OUT_OF_RANGE=O8;z.SOLANA_ERROR__CODECS__NUMBER_OUT_OF_RANGE=w8;z.SOLANA_ERROR__CODECS__OFFSET_OUT_OF_RANGE=b8;z.SOLANA_ERROR__CODECS__SENTINEL_MISSING_IN_DECODED_BYTES=C8;z.SOLANA_ERROR__CODECS__UNION_VARIANT_OUT_OF_RANGE=N8;z.SOLANA_ERROR__CRYPTO__RANDOM_VALUES_FUNCTION_UNIMPLEMENTED=m4;z.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_ALREADY_INITIALIZED=L4;z.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_BORROW_FAILED=j4;z.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_BORROW_OUTSTANDING=K4;z.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_DATA_SIZE_CHANGED=G4;z.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_DATA_TOO_SMALL=T4;z.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_NOT_EXECUTABLE=q4;z.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_NOT_RENT_EXEMPT=h3;z.SOLANA_ERROR__INSTRUCTION_ERROR__ARITHMETIC_OVERFLOW=_3;z.SOLANA_ERROR__INSTRUCTION_ERROR__BORSH_IO_ERROR=f3;z.SOLANA_ERROR__INSTRUCTION_ERROR__BUILTIN_PROGRAMS_MUST_CONSUME_COMPUTE_UNITS=S3;z.SOLANA_ERROR__INSTRUCTION_ERROR__CALL_DEPTH=e3;z.SOLANA_ERROR__INSTRUCTION_ERROR__COMPUTATIONAL_BUDGET_EXCEEDED=s3;z.SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM=au;z.SOLANA_ERROR__INSTRUCTION_ERROR__DUPLICATE_ACCOUNT_INDEX=V4;z.SOLANA_ERROR__INSTRUCTION_ERROR__DUPLICATE_ACCOUNT_OUT_OF_SYNC=W4;z.SOLANA_ERROR__INSTRUCTION_ERROR__EXECUTABLE_ACCOUNT_NOT_RENT_EXEMPT=J4;z.SOLANA_ERROR__INSTRUCTION_ERROR__EXECUTABLE_DATA_MODIFIED=X4;z.SOLANA_ERROR__INSTRUCTION_ERROR__EXECUTABLE_LAMPORT_CHANGE=Z4;z.SOLANA_ERROR__INSTRUCTION_ERROR__EXECUTABLE_MODIFIED=$4;z.SOLANA_ERROR__INSTRUCTION_ERROR__EXTERNAL_ACCOUNT_DATA_MODIFIED=U4;z.SOLANA_ERROR__INSTRUCTION_ERROR__EXTERNAL_ACCOUNT_LAMPORT_SPEND=P4;z.SOLANA_ERROR__INSTRUCTION_ERROR__GENERIC_ERROR=b4;z.SOLANA_ERROR__INSTRUCTION_ERROR__ILLEGAL_OWNER=y3;z.SOLANA_ERROR__INSTRUCTION_ERROR__IMMUTABLE=c3;z.SOLANA_ERROR__INSTRUCTION_ERROR__INCORRECT_AUTHORITY=u3;z.SOLANA_ERROR__INSTRUCTION_ERROR__INCORRECT_PROGRAM_ID=I4;z.SOLANA_ERROR__INSTRUCTION_ERROR__INSUFFICIENT_FUNDS=x4;z.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_ACCOUNT_DATA=N4;z.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_ACCOUNT_OWNER=m3;z.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_ARGUMENT=A4;z.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_ERROR=Y4;z.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_INSTRUCTION_DATA=O4;z.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_REALLOC=a3;z.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_SEEDS=n3;z.SOLANA_ERROR__INSTRUCTION_ERROR__MAX_ACCOUNTS_DATA_ALLOCATIONS_EXCEEDED=E3;z.SOLANA_ERROR__INSTRUCTION_ERROR__MAX_ACCOUNTS_EXCEEDED=v3;z.SOLANA_ERROR__INSTRUCTION_ERROR__MAX_INSTRUCTION_TRACE_LENGTH_EXCEEDED=w3;z.SOLANA_ERROR__INSTRUCTION_ERROR__MAX_SEED_LENGTH_EXCEEDED=i3;z.SOLANA_ERROR__INSTRUCTION_ERROR__MISSING_ACCOUNT=t3;z.SOLANA_ERROR__INSTRUCTION_ERROR__MISSING_REQUIRED_SIGNATURE=C4;z.SOLANA_ERROR__INSTRUCTION_ERROR__MODIFIED_PROGRAM_ID=B4;z.SOLANA_ERROR__INSTRUCTION_ERROR__NOT_ENOUGH_ACCOUNT_KEYS=H4;z.SOLANA_ERROR__INSTRUCTION_ERROR__PRIVILEGE_ESCALATION=o3;z.SOLANA_ERROR__INSTRUCTION_ERROR__PROGRAM_ENVIRONMENT_SETUP_FAILURE=d3;z.SOLANA_ERROR__INSTRUCTION_ERROR__PROGRAM_FAILED_TO_COMPILE=l3;z.SOLANA_ERROR__INSTRUCTION_ERROR__PROGRAM_FAILED_TO_COMPLETE=p3;z.SOLANA_ERROR__INSTRUCTION_ERROR__READONLY_DATA_MODIFIED=F4;z.SOLANA_ERROR__INSTRUCTION_ERROR__READONLY_LAMPORT_CHANGE=M4;z.SOLANA_ERROR__INSTRUCTION_ERROR__REENTRANCY_NOT_ALLOWED=r3;z.SOLANA_ERROR__INSTRUCTION_ERROR__RENT_EPOCH_MODIFIED=z4;z.SOLANA_ERROR__INSTRUCTION_ERROR__UNBALANCED_INSTRUCTION=D4;z.SOLANA_ERROR__INSTRUCTION_ERROR__UNINITIALIZED_ACCOUNT=k4;z.SOLANA_ERROR__INSTRUCTION_ERROR__UNKNOWN=nu;z.SOLANA_ERROR__INSTRUCTION_ERROR__UNSUPPORTED_PROGRAM_ID=Q4;z.SOLANA_ERROR__INSTRUCTION_ERROR__UNSUPPORTED_SYSVAR=g3;z.SOLANA_ERROR__INSTRUCTION_PLANS__EMPTY_INSTRUCTION_PLAN=r8;z.SOLANA_ERROR__INSTRUCTION_PLANS__EXPECTED_SUCCESSFUL_TRANSACTION_PLAN_RESULT=p8;z.SOLANA_ERROR__INSTRUCTION_PLANS__FAILED_SINGLE_TRANSACTION_PLAN_RESULT_NOT_FOUND=a8;z.SOLANA_ERROR__INSTRUCTION_PLANS__FAILED_TO_EXECUTE_TRANSACTION_PLAN=i8;z.SOLANA_ERROR__INSTRUCTION_PLANS__MESSAGE_CANNOT_ACCOMMODATE_PLAN=e8;z.SOLANA_ERROR__INSTRUCTION_PLANS__MESSAGE_PACKER_ALREADY_COMPLETE=t8;z.SOLANA_ERROR__INSTRUCTION_PLANS__NON_DIVISIBLE_TRANSACTION_PLANS_NOT_SUPPORTED=n8;z.SOLANA_ERROR__INSTRUCTION_PLANS__UNEXPECTED_INSTRUCTION_PLAN=s8;z.SOLANA_ERROR__INSTRUCTION_PLANS__UNEXPECTED_TRANSACTION_PLAN=o8;z.SOLANA_ERROR__INSTRUCTION_PLANS__UNEXPECTED_TRANSACTION_PLAN_RESULT=d8;z.SOLANA_ERROR__INSTRUCTION__EXPECTED_TO_HAVE_ACCOUNTS=w4;z.SOLANA_ERROR__INSTRUCTION__EXPECTED_TO_HAVE_DATA=S4;z.SOLANA_ERROR__INSTRUCTION__PROGRAM_ID_MISMATCH=R4;z.SOLANA_ERROR__INVALID_BLOCKHASH_BYTE_LENGTH=I6;z.SOLANA_ERROR__INVALID_NONCE=N6;z.SOLANA_ERROR__INVARIANT_VIOLATION__CACHED_ABORTABLE_ITERABLE_CACHE_ENTRY_MISSING=q8;z.SOLANA_ERROR__INVARIANT_VIOLATION__DATA_PUBLISHER_CHANNEL_UNIMPLEMENTED=K8;z.SOLANA_ERROR__INVARIANT_VIOLATION__INVALID_INSTRUCTION_PLAN_KIND=W8;z.SOLANA_ERROR__INVARIANT_VIOLATION__INVALID_TRANSACTION_PLAN_KIND=Y8;z.SOLANA_ERROR__INVARIANT_VIOLATION__SUBSCRIPTION_ITERATOR_MUST_NOT_POLL_BEFORE_RESOLVING_EXISTING_MESSAGE_PROMISE=G8;z.SOLANA_ERROR__INVARIANT_VIOLATION__SUBSCRIPTION_ITERATOR_STATE_MISSING=H8;z.SOLANA_ERROR__INVARIANT_VIOLATION__SWITCH_MUST_BE_EXHAUSTIVE=j8;z.SOLANA_ERROR__JSON_RPC__INTERNAL_ERROR=qc;z.SOLANA_ERROR__JSON_RPC__INVALID_PARAMS=jc;z.SOLANA_ERROR__JSON_RPC__INVALID_REQUEST=Wc;z.SOLANA_ERROR__JSON_RPC__METHOD_NOT_FOUND=Kc;z.SOLANA_ERROR__JSON_RPC__PARSE_ERROR=Gc;z.SOLANA_ERROR__JSON_RPC__SCAN_ERROR=Zc;z.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_BLOCK_CLEANED_UP=iu;z.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_BLOCK_NOT_AVAILABLE=ru;z.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_BLOCK_STATUS_NOT_AVAILABLE_YET=Xc;z.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_EPOCH_REWARDS_PERIOD_ACTIVE=U6;z.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_KEY_EXCLUDED_FROM_SECONDARY_INDEX=Jc;z.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_LONG_TERM_STORAGE_SLOT_SKIPPED=Qc;z.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_LONG_TERM_STORAGE_UNREACHABLE=B6;z.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_MIN_CONTEXT_SLOT_NOT_REACHED=M6;z.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_NODE_UNHEALTHY=z6;z.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_NO_SNAPSHOT=$6;z.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_SEND_TRANSACTION_PREFLIGHT_FAILURE=w1;z.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_SLOT_NOT_EPOCH_BOUNDARY=P6;z.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_SLOT_SKIPPED=eu;z.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_TRANSACTION_HISTORY_NOT_AVAILABLE=V6;z.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_TRANSACTION_PRECOMPILE_VERIFICATION_FAILURE=tu;z.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_TRANSACTION_SIGNATURE_LEN_MISMATCH=F6;z.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_TRANSACTION_SIGNATURE_VERIFICATION_FAILURE=H6;z.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_UNSUPPORTED_TRANSACTION_VERSION=Yc;z.SOLANA_ERROR__KEYS__INVALID_KEY_PAIR_BYTE_LENGTH=_4;z.SOLANA_ERROR__KEYS__INVALID_PRIVATE_KEY_BYTE_LENGTH=g4;z.SOLANA_ERROR__KEYS__INVALID_SIGNATURE_BYTE_LENGTH=y4;z.SOLANA_ERROR__KEYS__PUBLIC_KEY_MUST_MATCH_PRIVATE_KEY=v4;z.SOLANA_ERROR__KEYS__SIGNATURE_STRING_LENGTH_OUT_OF_RANGE=E4;z.SOLANA_ERROR__LAMPORTS_OUT_OF_RANGE=C6;z.SOLANA_ERROR__MALFORMED_BIGINT_STRING=L6;z.SOLANA_ERROR__MALFORMED_JSON_RPC_ERROR=Hc;z.SOLANA_ERROR__MALFORMED_NUMBER_STRING=k6;z.SOLANA_ERROR__NONCE_ACCOUNT_NOT_FOUND=T6;z.SOLANA_ERROR__OFFCHAIN_MESSAGE__ADDRESSES_CANNOT_SIGN_OFFCHAIN_MESSAGE=W3;z.SOLANA_ERROR__OFFCHAIN_MESSAGE__APPLICATION_DOMAIN_STRING_LENGTH_OUT_OF_RANGE=U3;z.SOLANA_ERROR__OFFCHAIN_MESSAGE__ENVELOPE_SIGNERS_MISMATCH=K3;z.SOLANA_ERROR__OFFCHAIN_MESSAGE__INVALID_APPLICATION_DOMAIN_BYTE_LENGTH=M3;z.SOLANA_ERROR__OFFCHAIN_MESSAGE__MAXIMUM_LENGTH_EXCEEDED=B3;z.SOLANA_ERROR__OFFCHAIN_MESSAGE__MESSAGE_FORMAT_MISMATCH=z3;z.SOLANA_ERROR__OFFCHAIN_MESSAGE__MESSAGE_LENGTH_MISMATCH=H3;z.SOLANA_ERROR__OFFCHAIN_MESSAGE__MESSAGE_MUST_BE_NON_EMPTY=G3;z.SOLANA_ERROR__OFFCHAIN_MESSAGE__NUM_ENVELOPE_SIGNATURES_CANNOT_BE_ZERO=q3;z.SOLANA_ERROR__OFFCHAIN_MESSAGE__NUM_REQUIRED_SIGNERS_CANNOT_BE_ZERO=V3;z.SOLANA_ERROR__OFFCHAIN_MESSAGE__NUM_SIGNATURES_MISMATCH=F3;z.SOLANA_ERROR__OFFCHAIN_MESSAGE__RESTRICTED_ASCII_BODY_CHARACTER_OUT_OF_RANGE=P3;z.SOLANA_ERROR__OFFCHAIN_MESSAGE__SIGNATORIES_MUST_BE_SORTED=X3;z.SOLANA_ERROR__OFFCHAIN_MESSAGE__SIGNATORIES_MUST_BE_UNIQUE=Z3;z.SOLANA_ERROR__OFFCHAIN_MESSAGE__SIGNATURES_MISSING=j3;z.SOLANA_ERROR__OFFCHAIN_MESSAGE__SIGNATURE_VERIFICATION_FAILURE=J3;z.SOLANA_ERROR__OFFCHAIN_MESSAGE__UNEXPECTED_VERSION=Y3;z.SOLANA_ERROR__OFFCHAIN_MESSAGE__VERSION_NUMBER_NOT_SUPPORTED=$3;z.SOLANA_ERROR__RPC_SUBSCRIPTIONS__CANNOT_CREATE_SUBSCRIPTION_PLAN=M8;z.SOLANA_ERROR__RPC_SUBSCRIPTIONS__CHANNEL_CLOSED_BEFORE_MESSAGE_BUFFERED=V8;z.SOLANA_ERROR__RPC_SUBSCRIPTIONS__CHANNEL_CONNECTION_CLOSED=$8;z.SOLANA_ERROR__RPC_SUBSCRIPTIONS__CHANNEL_FAILED_TO_CONNECT=z8;z.SOLANA_ERROR__RPC_SUBSCRIPTIONS__EXPECTED_SERVER_SUBSCRIPTION_ID=F8;z.SOLANA_ERROR__RPC__API_PLAN_MISSING_FOR_RPC_METHOD=U8;z.SOLANA_ERROR__RPC__INTEGER_OVERFLOW=D8;z.SOLANA_ERROR__RPC__TRANSPORT_HTTP_ERROR=P8;z.SOLANA_ERROR__RPC__TRANSPORT_HTTP_HEADER_FORBIDDEN=B8;z.SOLANA_ERROR__SIGNER__ADDRESS_CANNOT_HAVE_MULTIPLE_SIGNERS=R3;z.SOLANA_ERROR__SIGNER__EXPECTED_KEY_PAIR_SIGNER=b3;z.SOLANA_ERROR__SIGNER__EXPECTED_MESSAGE_MODIFYING_SIGNER=O3;z.SOLANA_ERROR__SIGNER__EXPECTED_MESSAGE_PARTIAL_SIGNER=N3;z.SOLANA_ERROR__SIGNER__EXPECTED_MESSAGE_SIGNER=A3;z.SOLANA_ERROR__SIGNER__EXPECTED_TRANSACTION_MODIFYING_SIGNER=x3;z.SOLANA_ERROR__SIGNER__EXPECTED_TRANSACTION_PARTIAL_SIGNER=I3;z.SOLANA_ERROR__SIGNER__EXPECTED_TRANSACTION_SENDING_SIGNER=C3;z.SOLANA_ERROR__SIGNER__EXPECTED_TRANSACTION_SIGNER=T3;z.SOLANA_ERROR__SIGNER__TRANSACTION_CANNOT_HAVE_MULTIPLE_SENDING_SIGNERS=L3;z.SOLANA_ERROR__SIGNER__TRANSACTION_SENDING_SIGNER_MISSING=k3;z.SOLANA_ERROR__SIGNER__WALLET_MULTISIGN_UNIMPLEMENTED=D3;z.SOLANA_ERROR__SUBTLE_CRYPTO__CANNOT_EXPORT_NON_EXTRACTABLE_KEY=h4;z.SOLANA_ERROR__SUBTLE_CRYPTO__DIGEST_UNIMPLEMENTED=d4;z.SOLANA_ERROR__SUBTLE_CRYPTO__DISALLOWED_IN_INSECURE_CONTEXT=o4;z.SOLANA_ERROR__SUBTLE_CRYPTO__ED25519_ALGORITHM_UNIMPLEMENTED=p4;z.SOLANA_ERROR__SUBTLE_CRYPTO__EXPORT_FUNCTION_UNIMPLEMENTED=l4;z.SOLANA_ERROR__SUBTLE_CRYPTO__GENERATE_FUNCTION_UNIMPLEMENTED=c4;z.SOLANA_ERROR__SUBTLE_CRYPTO__SIGN_FUNCTION_UNIMPLEMENTED=u4;z.SOLANA_ERROR__SUBTLE_CRYPTO__VERIFY_FUNCTION_UNIMPLEMENTED=f4;z.SOLANA_ERROR__TIMESTAMP_OUT_OF_RANGE=D6;z.SOLANA_ERROR__TRANSACTION_ERROR__ACCOUNT_BORROW_OUTSTANDING=P5;z.SOLANA_ERROR__TRANSACTION_ERROR__ACCOUNT_IN_USE=w5;z.SOLANA_ERROR__TRANSACTION_ERROR__ACCOUNT_LOADED_TWICE=S5;z.SOLANA_ERROR__TRANSACTION_ERROR__ACCOUNT_NOT_FOUND=R5;z.SOLANA_ERROR__TRANSACTION_ERROR__ADDRESS_LOOKUP_TABLE_NOT_FOUND=H5;z.SOLANA_ERROR__TRANSACTION_ERROR__ALREADY_PROCESSED=N5;z.SOLANA_ERROR__TRANSACTION_ERROR__BLOCKHASH_NOT_FOUND=T5;z.SOLANA_ERROR__TRANSACTION_ERROR__CALL_CHAIN_TOO_DEEP=x5;z.SOLANA_ERROR__TRANSACTION_ERROR__CLUSTER_MAINTENANCE=B5;z.SOLANA_ERROR__TRANSACTION_ERROR__DUPLICATE_INSTRUCTION=du;z.SOLANA_ERROR__TRANSACTION_ERROR__INSUFFICIENT_FUNDS_FOR_FEE=A5;z.SOLANA_ERROR__TRANSACTION_ERROR__INSUFFICIENT_FUNDS_FOR_RENT=pu;z.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_ACCOUNT_FOR_FEE=O5;z.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_ACCOUNT_INDEX=C5;z.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_ADDRESS_LOOKUP_TABLE_DATA=q5;z.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_ADDRESS_LOOKUP_TABLE_INDEX=j5;z.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_ADDRESS_LOOKUP_TABLE_OWNER=G5;z.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_LOADED_ACCOUNTS_DATA_SIZE_LIMIT=Z5;z.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_PROGRAM_FOR_EXECUTION=k5;z.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_RENT_PAYING_ACCOUNT=K5;z.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_WRITABLE_ACCOUNT=F5;z.SOLANA_ERROR__TRANSACTION_ERROR__MAX_LOADED_ACCOUNTS_DATA_SIZE_EXCEEDED=X5;z.SOLANA_ERROR__TRANSACTION_ERROR__MISSING_SIGNATURE_FOR_FEE=I5;z.SOLANA_ERROR__TRANSACTION_ERROR__PROGRAM_ACCOUNT_NOT_FOUND=b5;z.SOLANA_ERROR__TRANSACTION_ERROR__PROGRAM_EXECUTION_TEMPORARILY_RESTRICTED=lu;z.SOLANA_ERROR__TRANSACTION_ERROR__RESANITIZATION_NEEDED=J5;z.SOLANA_ERROR__TRANSACTION_ERROR__SANITIZE_FAILURE=D5;z.SOLANA_ERROR__TRANSACTION_ERROR__SIGNATURE_FAILURE=L5;z.SOLANA_ERROR__TRANSACTION_ERROR__TOO_MANY_ACCOUNT_LOCKS=z5;z.SOLANA_ERROR__TRANSACTION_ERROR__UNBALANCED_TRANSACTION=Q5;z.SOLANA_ERROR__TRANSACTION_ERROR__UNKNOWN=ou;z.SOLANA_ERROR__TRANSACTION_ERROR__UNSUPPORTED_VERSION=M5;z.SOLANA_ERROR__TRANSACTION_ERROR__WOULD_EXCEED_ACCOUNT_DATA_BLOCK_LIMIT=$5;z.SOLANA_ERROR__TRANSACTION_ERROR__WOULD_EXCEED_ACCOUNT_DATA_TOTAL_LIMIT=Y5;z.SOLANA_ERROR__TRANSACTION_ERROR__WOULD_EXCEED_MAX_ACCOUNT_COST_LIMIT=V5;z.SOLANA_ERROR__TRANSACTION_ERROR__WOULD_EXCEED_MAX_BLOCK_COST_LIMIT=U5;z.SOLANA_ERROR__TRANSACTION_ERROR__WOULD_EXCEED_MAX_VOTE_COST_LIMIT=W5;z.SOLANA_ERROR__TRANSACTION__ADDRESSES_CANNOT_SIGN_TRANSACTION=h5;z.SOLANA_ERROR__TRANSACTION__ADDRESS_MISSING=p5;z.SOLANA_ERROR__TRANSACTION__CANNOT_ENCODE_WITH_EMPTY_SIGNATURES=m5;z.SOLANA_ERROR__TRANSACTION__EXCEEDS_SIZE_LIMIT=y5;z.SOLANA_ERROR__TRANSACTION__EXPECTED_BLOCKHASH_LIFETIME=t5;z.SOLANA_ERROR__TRANSACTION__EXPECTED_NONCE_LIFETIME=r5;z.SOLANA_ERROR__TRANSACTION__FAILED_TO_DECOMPILE_ADDRESS_LOOKUP_TABLE_CONTENTS_MISSING=n5;z.SOLANA_ERROR__TRANSACTION__FAILED_TO_DECOMPILE_ADDRESS_LOOKUP_TABLE_INDEX_OUT_OF_RANGE=a5;z.SOLANA_ERROR__TRANSACTION__FAILED_TO_DECOMPILE_FEE_PAYER_MISSING=o5;z.SOLANA_ERROR__TRANSACTION__FAILED_TO_DECOMPILE_INSTRUCTION_PROGRAM_ADDRESS_NOT_FOUND=s5;z.SOLANA_ERROR__TRANSACTION__FAILED_TO_ESTIMATE_COMPUTE_LIMIT=g5;z.SOLANA_ERROR__TRANSACTION__FAILED_WHEN_SIMULATING_TO_ESTIMATE_COMPUTE_LIMIT=su;z.SOLANA_ERROR__TRANSACTION__FEE_PAYER_MISSING=l5;z.SOLANA_ERROR__TRANSACTION__FEE_PAYER_SIGNATURE_MISSING=c5;z.SOLANA_ERROR__TRANSACTION__INVALID_NONCE_TRANSACTION_FIRST_INSTRUCTION_MUST_BE_ADVANCE_NONCE=f5;z.SOLANA_ERROR__TRANSACTION__INVALID_NONCE_TRANSACTION_INSTRUCTIONS_MISSING=u5;z.SOLANA_ERROR__TRANSACTION__INVOKED_PROGRAMS_CANNOT_PAY_FEES=Q3;z.SOLANA_ERROR__TRANSACTION__INVOKED_PROGRAMS_MUST_NOT_BE_WRITABLE=e5;z.SOLANA_ERROR__TRANSACTION__MESSAGE_SIGNATURES_MISMATCH=_5;z.SOLANA_ERROR__TRANSACTION__NONCE_ACCOUNT_CANNOT_BE_IN_LOOKUP_TABLE=v5;z.SOLANA_ERROR__TRANSACTION__SIGNATURES_MISSING=d5;z.SOLANA_ERROR__TRANSACTION__VERSION_NUMBER_NOT_SUPPORTED=E5;z.SOLANA_ERROR__TRANSACTION__VERSION_NUMBER_OUT_OF_RANGE=i5;z.SolanaError=v1;z.getSolanaErrorFromInstructionError=uu;z.getSolanaErrorFromJsonRpcError=Q8;z.getSolanaErrorFromTransactionError=fu;z.isSolanaError=Z8;z.safeCaptureStackTrace=cu;z.unwrapSimulationError=Bb});var S9=Ne(Ze=>{"use strict";var Gt=hu(),Pb=t=>{let e=t.filter(a=>a.length);if(e.length===0)return t.length?t[0]:new Uint8Array;if(e.length===1)return e[0];let r=e.reduce((a,s)=>a+s.length,0),i=new Uint8Array(r),n=0;return e.forEach(a=>{i.set(a,n),n+=a.length}),i};function e9(t,e){if(t.length>=e)return t;let r=new Uint8Array(e).fill(0);return r.set(t),r}var t9=(t,e)=>e9(t.length<=e?t:t.slice(0,e),e);function r9(t,e,r){let i=r===0&&t.length===e.length?t:t.slice(r,r+e.length);return i9(i,e)}function i9(t,e){return t.length===e.length&&t.every((r,i)=>r===e[i])}function S1(t,e){return"fixedSize"in e?e.fixedSize:e.getSizeFromValue(t)}function Ji(t){return Object.freeze({...t,encode:e=>{let r=new Uint8Array(S1(e,t));return t.write(e,r,0),r}})}function Qi(t){return Object.freeze({...t,decode:(e,r=0)=>t.read(e,r)[0]})}function n9(t){return Object.freeze({...t,decode:(e,r=0)=>t.read(e,r)[0],encode:e=>{let r=new Uint8Array(S1(e,t));return t.write(e,r,0),r}})}function Er(t){return"fixedSize"in t&&typeof t.fixedSize=="number"}function mu(t){if(!Er(t))throw new Gt.SolanaError(Gt.SOLANA_ERROR__CODECS__EXPECTED_FIXED_LENGTH)}function _u(t){return!Er(t)}function Ub(t){if(!_u(t))throw new Gt.SolanaError(Gt.SOLANA_ERROR__CODECS__EXPECTED_VARIABLE_LENGTH)}function Xn(t,e){if(Er(t)!==Er(e))throw new Gt.SolanaError(Gt.SOLANA_ERROR__CODECS__ENCODER_DECODER_SIZE_COMPATIBILITY_MISMATCH);if(Er(t)&&Er(e)&&t.fixedSize!==e.fixedSize)throw new Gt.SolanaError(Gt.SOLANA_ERROR__CODECS__ENCODER_DECODER_FIXED_SIZE_MISMATCH,{decoderFixedSize:e.fixedSize,encoderFixedSize:t.fixedSize});if(!Er(t)&&!Er(e)&&t.maxSize!==e.maxSize)throw new Gt.SolanaError(Gt.SOLANA_ERROR__CODECS__ENCODER_DECODER_MAX_SIZE_MISMATCH,{decoderMaxSize:e.maxSize,encoderMaxSize:t.maxSize});return{...e,...t,decode:e.decode,encode:t.encode,read:e.read,write:t.write}}function a9(t,e){let r=((i,n,a)=>{let s=t.encode(i);if(o9(s,e)>=0)throw new Gt.SolanaError(Gt.SOLANA_ERROR__CODECS__ENCODED_BYTES_MUST_NOT_INCLUDE_SENTINEL,{encodedBytes:s,hexEncodedBytes:$p(s),hexSentinel:$p(e),sentinel:e});return n.set(s,a),a+=s.length,n.set(e,a),a+=e.length,a});return Er(t)?Ji({...t,fixedSize:t.fixedSize+e.length,write:r}):Ji({...t,...t.maxSize!=null?{maxSize:t.maxSize+e.length}:{},getSizeFromValue:i=>t.getSizeFromValue(i)+e.length,write:r})}function s9(t,e){let r=((i,n)=>{let a=n===0?i:i.slice(n),s=o9(a,e);if(s===-1)throw new Gt.SolanaError(Gt.SOLANA_ERROR__CODECS__SENTINEL_MISSING_IN_DECODED_BYTES,{decodedBytes:a,hexDecodedBytes:$p(a),hexSentinel:$p(e),sentinel:e});let o=a.slice(0,s);return[t.decode(o),n+o.length+e.length]});return Er(t)?Qi({...t,fixedSize:t.fixedSize+e.length,read:r}):Qi({...t,...t.maxSize!=null?{maxSize:t.maxSize+e.length}:{},read:r})}function Mb(t,e){return Xn(a9(t,e),s9(t,e))}function o9(t,e){return t.findIndex((r,i,n)=>e.length===1?r===e[0]:r9(n,e,i))}function $p(t){return t.reduce((e,r)=>e+r.toString(16).padStart(2,"0"),"")}function Fb(t,e,r=0){if(e.length-r<=0)throw new Gt.SolanaError(Gt.SOLANA_ERROR__CODECS__CANNOT_DECODE_EMPTY_BYTE_ARRAY,{codecDescription:t})}function gu(t,e,r,i=0){let n=r.length-i;if(n<e)throw new Gt.SolanaError(Gt.SOLANA_ERROR__CODECS__INVALID_BYTE_LENGTH,{bytesLength:n,codecDescription:t,expected:e})}function R1(t,e,r){if(e<0||e>r)throw new Gt.SolanaError(Gt.SOLANA_ERROR__CODECS__OFFSET_OUT_OF_RANGE,{bytesLength:r,codecDescription:t,offset:e})}function d9(t,e){let r=((s,o,d)=>{let h=t.encode(s);return d=e.write(h.length,o,d),o.set(h,d),d+h.length});if(Er(e)&&Er(t))return Ji({...t,fixedSize:e.fixedSize+t.fixedSize,write:r});let i=Er(e)?e.fixedSize:e.maxSize??null,n=Er(t)?t.fixedSize:t.maxSize??null,a=i!==null&&n!==null?i+n:null;return Ji({...t,...a!==null?{maxSize:a}:{},getSizeFromValue:s=>{let o=S1(s,t);return S1(o,e)+o},write:r})}function p9(t,e){let r=((s,o)=>{let[d,h]=e.read(s,o),w=Number(d);return o=h,(o>0||s.length>w)&&(s=s.slice(o,o+w)),gu("addDecoderSizePrefix",w,s),[t.decode(s),o+w]});if(Er(e)&&Er(t))return Qi({...t,fixedSize:e.fixedSize+t.fixedSize,read:r});let i=Er(e)?e.fixedSize:e.maxSize??null,n=Er(t)?t.fixedSize:t.maxSize??null,a=i!==null&&n!==null?i+n:null;return Qi({...t,...a!==null?{maxSize:a}:{},read:r})}function Vb(t,e){return Xn(d9(t,e),p9(t,e))}function $b(t,e,r){let i=t.byteOffset+(e??0),n=r??t.byteLength,a;return typeof SharedArrayBuffer>"u"?a=t.buffer:t.buffer instanceof SharedArrayBuffer?(a=new ArrayBuffer(t.length),new Uint8Array(a).set(new Uint8Array(t))):a=t.buffer,(i===0||i===-t.byteLength)&&n===t.byteLength?a:a.slice(i,i+n)}function zb(t){return Qi({...t,read(e,r){let[i,n]=t.read(e,r);if(e.length>n)throw new Gt.SolanaError(Gt.SOLANA_ERROR__CODECS__EXPECTED_DECODER_TO_CONSUME_ENTIRE_BYTE_ARRAY,{expectedLength:n,numExcessBytes:e.length-n});return[i,n]}})}function l9(t,e){return Ji({fixedSize:e,write:(r,i,n)=>{let a=t.encode(r),s=a.length>e?a.slice(0,e):a;return i.set(s,n),n+e}})}function c9(t,e){return Qi({fixedSize:e,read:(r,i)=>{gu("fixCodecSize",e,r,i),(i>0||r.length>e)&&(r=r.slice(i,i+e)),Er(t)&&(r=t9(r,t.fixedSize));let[n]=t.read(r,0);return[n,i+e]}})}function Hb(t,e){return Xn(l9(t,e),c9(t,e))}function zp(t,e){return Ji({...t,write:(r,i,n)=>{let a=h=>u9(h,i.length),s=e.preOffset?e.preOffset({bytes:i,preOffset:n,wrapBytes:a}):n;R1("offsetEncoder",s,i.length);let o=t.write(r,i,s),d=e.postOffset?e.postOffset({bytes:i,newPreOffset:s,postOffset:o,preOffset:n,wrapBytes:a}):o;return R1("offsetEncoder",d,i.length),d}})}function Hp(t,e){return Qi({...t,read:(r,i)=>{let n=h=>u9(h,r.length),a=e.preOffset?e.preOffset({bytes:r,preOffset:i,wrapBytes:n}):i;R1("offsetDecoder",a,r.length);let[s,o]=t.read(r,a),d=e.postOffset?e.postOffset({bytes:r,newPreOffset:a,postOffset:o,preOffset:i,wrapBytes:n}):o;return R1("offsetDecoder",d,r.length),[s,d]}})}function Gb(t,e){return Xn(zp(t,e),Hp(t,e))}function u9(t,e){return e===0?0:(t%e+e)%e}function Gp(t,e){if(Er(t)){let r=e(t.fixedSize);if(r<0)throw new Gt.SolanaError(Gt.SOLANA_ERROR__CODECS__EXPECTED_POSITIVE_BYTE_LENGTH,{bytesLength:r,codecDescription:"resizeEncoder"});return Ji({...t,fixedSize:r})}return Ji({...t,getSizeFromValue:r=>{let i=e(t.getSizeFromValue(r));if(i<0)throw new Gt.SolanaError(Gt.SOLANA_ERROR__CODECS__EXPECTED_POSITIVE_BYTE_LENGTH,{bytesLength:i,codecDescription:"resizeEncoder"});return i}})}function qp(t,e){if(Er(t)){let r=e(t.fixedSize);if(r<0)throw new Gt.SolanaError(Gt.SOLANA_ERROR__CODECS__EXPECTED_POSITIVE_BYTE_LENGTH,{bytesLength:r,codecDescription:"resizeDecoder"});return Qi({...t,fixedSize:r})}return t}function qb(t,e){return Xn(Gp(t,e),qp(t,e))}function f9(t,e){return zp(Gp(t,r=>r+e),{preOffset:({preOffset:r})=>r+e})}function h9(t,e){return zp(Gp(t,r=>r+e),{postOffset:({postOffset:r})=>r+e})}function m9(t,e){return Hp(qp(t,r=>r+e),{preOffset:({preOffset:r})=>r+e})}function _9(t,e){return Hp(qp(t,r=>r+e),{postOffset:({postOffset:r})=>r+e})}function jb(t,e){return Xn(f9(t,e),m9(t,e))}function Kb(t,e){return Xn(h9(t,e),_9(t,e))}function g9(t,e,r,i,n=0){for(;r<--i;){let a=t[r];e[r+n]=t[i],e[i+n]=a,r++}r===i&&(e[r+n]=t[r])}function y9(t){return mu(t),Ji({...t,write:(e,r,i)=>{let n=t.write(e,r,i);return g9(r,r,i,i+t.fixedSize),n}})}function E9(t){return mu(t),Qi({...t,read:(e,r)=>{let i=e.slice();return g9(e,i,r,r+t.fixedSize),t.read(i,r)}})}function Wb(t){return Xn(y9(t),E9(t))}function v9(t,e){return Ji({..._u(t)?{...t,getSizeFromValue:r=>t.getSizeFromValue(e(r))}:t,write:(r,i,n)=>t.write(e(r),i,n)})}function w9(t,e){return Qi({...t,read:(r,i)=>{let[n,a]=t.read(r,i);return[e(n,r,i),a]}})}function Yb(t,e,r){return n9({...v9(t,e),read:r?w9(t,r).read:t.read})}Ze.addCodecSentinel=Mb;Ze.addCodecSizePrefix=Vb;Ze.addDecoderSentinel=s9;Ze.addDecoderSizePrefix=p9;Ze.addEncoderSentinel=a9;Ze.addEncoderSizePrefix=d9;Ze.assertByteArrayHasEnoughBytesForCodec=gu;Ze.assertByteArrayIsNotEmptyForCodec=Fb;Ze.assertByteArrayOffsetIsNotOutOfRange=R1;Ze.assertIsFixedSize=mu;Ze.assertIsVariableSize=Ub;Ze.bytesEqual=i9;Ze.combineCodec=Xn;Ze.containsBytes=r9;Ze.createCodec=n9;Ze.createDecoder=Qi;Ze.createDecoderThatConsumesEntireByteArray=zb;Ze.createEncoder=Ji;Ze.fixBytes=t9;Ze.fixCodecSize=Hb;Ze.fixDecoderSize=c9;Ze.fixEncoderSize=l9;Ze.getEncodedSize=S1;Ze.isFixedSize=Er;Ze.isVariableSize=_u;Ze.mergeBytes=Pb;Ze.offsetCodec=Gb;Ze.offsetDecoder=Hp;Ze.offsetEncoder=zp;Ze.padBytes=e9;Ze.padLeftCodec=jb;Ze.padLeftDecoder=m9;Ze.padLeftEncoder=f9;Ze.padRightCodec=Kb;Ze.padRightDecoder=_9;Ze.padRightEncoder=h9;Ze.resizeCodec=qb;Ze.resizeDecoder=qp;Ze.resizeEncoder=Gp;Ze.reverseCodec=Wb;Ze.reverseDecoder=E9;Ze.reverseEncoder=y9;Ze.toArrayBuffer=$b;Ze.transformCodec=Yb;Ze.transformDecoder=w9;Ze.transformEncoder=v9});var J9=Ne(ot=>{"use strict";var R9=hu(),Ir=S9();function yu(t,e,r,i){if(i<e||i>r)throw new R9.SolanaError(R9.SOLANA_ERROR__CODECS__NUMBER_OUT_OF_RANGE,{codecDescription:t,max:r,min:e,value:i})}var b9=(t=>(t[t.Little=0]="Little",t[t.Big=1]="Big",t))(b9||{});function A9(t){return t?.endian!==1}function Ui(t){return Ir.createEncoder({fixedSize:t.size,write(e,r,i){t.range&&yu(t.name,t.range[0],t.range[1],e);let n=new ArrayBuffer(t.size);return t.set(new DataView(n),e,A9(t.config)),r.set(new Uint8Array(n),i),i+t.size}})}function Mi(t){return Ir.createDecoder({fixedSize:t.size,read(e,r=0){Ir.assertByteArrayIsNotEmptyForCodec(t.name,e,r),Ir.assertByteArrayHasEnoughBytesForCodec(t.name,t.size,e,r);let i=new DataView(Ir.toArrayBuffer(e,r,t.size));return[t.get(i,A9(t.config)),r+t.size]}})}var O9=(t={})=>Ui({config:t,name:"f32",set:(e,r,i)=>e.setFloat32(0,Number(r),i),size:4}),N9=(t={})=>Mi({config:t,get:(e,r)=>e.getFloat32(0,r),name:"f32",size:4}),Xb=(t={})=>Ir.combineCodec(O9(t),N9(t)),T9=(t={})=>Ui({config:t,name:"f64",set:(e,r,i)=>e.setFloat64(0,Number(r),i),size:8}),x9=(t={})=>Mi({config:t,get:(e,r)=>e.getFloat64(0,r),name:"f64",size:8}),Zb=(t={})=>Ir.combineCodec(T9(t),x9(t)),I9=(t={})=>Ui({config:t,name:"i128",range:[-BigInt("0x7fffffffffffffffffffffffffffffff")-1n,BigInt("0x7fffffffffffffffffffffffffffffff")],set:(e,r,i)=>{let n=i?8:0,a=i?0:8,s=0xffffffffffffffffn;e.setBigInt64(n,BigInt(r)>>64n,i),e.setBigUint64(a,BigInt(r)&s,i)},size:16}),C9=(t={})=>Mi({config:t,get:(e,r)=>{let i=r?8:0,n=r?0:8,a=e.getBigInt64(i,r),s=e.getBigUint64(n,r);return(a<<64n)+s},name:"i128",size:16}),Jb=(t={})=>Ir.combineCodec(I9(t),C9(t)),L9=(t={})=>Ui({config:t,name:"i16",range:[-+"0x7fff"-1,+"0x7fff"],set:(e,r,i)=>e.setInt16(0,Number(r),i),size:2}),k9=(t={})=>Mi({config:t,get:(e,r)=>e.getInt16(0,r),name:"i16",size:2}),Qb=(t={})=>Ir.combineCodec(L9(t),k9(t)),D9=(t={})=>Ui({config:t,name:"i32",range:[-+"0x7fffffff"-1,+"0x7fffffff"],set:(e,r,i)=>e.setInt32(0,Number(r),i),size:4}),B9=(t={})=>Mi({config:t,get:(e,r)=>e.getInt32(0,r),name:"i32",size:4}),eA=(t={})=>Ir.combineCodec(D9(t),B9(t)),P9=(t={})=>Ui({config:t,name:"i64",range:[-BigInt("0x7fffffffffffffff")-1n,BigInt("0x7fffffffffffffff")],set:(e,r,i)=>e.setBigInt64(0,BigInt(r),i),size:8}),U9=(t={})=>Mi({config:t,get:(e,r)=>e.getBigInt64(0,r),name:"i64",size:8}),tA=(t={})=>Ir.combineCodec(P9(t),U9(t)),M9=()=>Ui({name:"i8",range:[-+"0x7f"-1,+"0x7f"],set:(t,e)=>t.setInt8(0,Number(e)),size:1}),F9=()=>Mi({get:t=>t.getInt8(0),name:"i8",size:1}),rA=()=>Ir.combineCodec(M9(),F9()),V9=()=>Ir.createEncoder({getSizeFromValue:t=>t<=127?1:t<=16383?2:3,maxSize:3,write:(t,e,r)=>{yu("shortU16",0,65535,t);let i=[0];for(let n=0;;n+=1){let a=Number(t)>>n*7;if(a===0)break;let s=127&a;i[n]=s,n>0&&(i[n-1]|=128)}return e.set(i,r),r+i.length}}),$9=()=>Ir.createDecoder({maxSize:3,read:(t,e)=>{let r=0,i=0;for(;++i;){let n=i-1,a=t[e+n],s=127&a;if(r|=s<<n*7,(a&128)===0)break}return[r,e+i]}}),iA=()=>Ir.combineCodec(V9(),$9()),z9=(t={})=>Ui({config:t,name:"u128",range:[0n,BigInt("0xffffffffffffffffffffffffffffffff")],set:(e,r,i)=>{let n=i?8:0,a=i?0:8,s=0xffffffffffffffffn;e.setBigUint64(n,BigInt(r)>>64n,i),e.setBigUint64(a,BigInt(r)&s,i)},size:16}),H9=(t={})=>Mi({config:t,get:(e,r)=>{let i=r?8:0,n=r?0:8,a=e.getBigUint64(i,r),s=e.getBigUint64(n,r);return(a<<64n)+s},name:"u128",size:16}),nA=(t={})=>Ir.combineCodec(z9(t),H9(t)),G9=(t={})=>Ui({config:t,name:"u16",range:[0,+"0xffff"],set:(e,r,i)=>e.setUint16(0,Number(r),i),size:2}),q9=(t={})=>Mi({config:t,get:(e,r)=>e.getUint16(0,r),name:"u16",size:2}),aA=(t={})=>Ir.combineCodec(G9(t),q9(t)),j9=(t={})=>Ui({config:t,name:"u32",range:[0,+"0xffffffff"],set:(e,r,i)=>e.setUint32(0,Number(r),i),size:4}),K9=(t={})=>Mi({config:t,get:(e,r)=>e.getUint32(0,r),name:"u32",size:4}),sA=(t={})=>Ir.combineCodec(j9(t),K9(t)),W9=(t={})=>Ui({config:t,name:"u64",range:[0n,BigInt("0xffffffffffffffff")],set:(e,r,i)=>e.setBigUint64(0,BigInt(r),i),size:8}),Y9=(t={})=>Mi({config:t,get:(e,r)=>e.getBigUint64(0,r),name:"u64",size:8}),oA=(t={})=>Ir.combineCodec(W9(t),Y9(t)),X9=()=>Ui({name:"u8",range:[0,+"0xff"],set:(t,e)=>t.setUint8(0,Number(e)),size:1}),Z9=()=>Mi({get:t=>t.getUint8(0),name:"u8",size:1}),dA=()=>Ir.combineCodec(X9(),Z9());ot.Endian=b9;ot.assertNumberIsBetweenForCodec=yu;ot.getF32Codec=Xb;ot.getF32Decoder=N9;ot.getF32Encoder=O9;ot.getF64Codec=Zb;ot.getF64Decoder=x9;ot.getF64Encoder=T9;ot.getI128Codec=Jb;ot.getI128Decoder=C9;ot.getI128Encoder=I9;ot.getI16Codec=Qb;ot.getI16Decoder=k9;ot.getI16Encoder=L9;ot.getI32Codec=eA;ot.getI32Decoder=B9;ot.getI32Encoder=D9;ot.getI64Codec=tA;ot.getI64Decoder=U9;ot.getI64Encoder=P9;ot.getI8Codec=rA;ot.getI8Decoder=F9;ot.getI8Encoder=M9;ot.getShortU16Codec=iA;ot.getShortU16Decoder=$9;ot.getShortU16Encoder=V9;ot.getU128Codec=nA;ot.getU128Decoder=H9;ot.getU128Encoder=z9;ot.getU16Codec=aA;ot.getU16Decoder=q9;ot.getU16Encoder=G9;ot.getU32Codec=sA;ot.getU32Decoder=K9;ot.getU32Encoder=j9;ot.getU64Codec=oA;ot.getU64Decoder=Y9;ot.getU64Encoder=W9;ot.getU8Codec=dA;ot.getU8Decoder=Z9;ot.getU8Encoder=X9});var e7=Ne((jp,Q9)=>{(function(t,e){typeof jp=="object"&&typeof Q9<"u"?e(jp):typeof define=="function"&&define.amd?define(["exports"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.Superstruct={}))})(jp,(function(t){"use strict";class e extends TypeError{constructor(Y,Z){let Q,{message:ue,explanation:De,...Le}=Y,{path:Ke}=Y,Ct=Ke.length===0?ue:`At path: ${Ke.join(".")} -- ${ue}`;super(De??Ct),De!=null&&(this.cause=Ct),Object.assign(this,Le),this.name=this.constructor.name,this.failures=()=>Q??(Q=[Y,...Z()])}}function r(j){return i(j)&&typeof j[Symbol.iterator]=="function"}function i(j){return typeof j=="object"&&j!=null}function n(j){return i(j)&&!Array.isArray(j)}function a(j){if(Object.prototype.toString.call(j)!=="[object Object]")return!1;let Y=Object.getPrototypeOf(j);return Y===null||Y===Object.prototype}function s(j){return typeof j=="symbol"?j.toString():typeof j=="string"?JSON.stringify(j):`${j}`}function o(j){let{done:Y,value:Z}=j.next();return Y?void 0:Z}function d(j,Y,Z,Q){if(j===!0)return;j===!1?j={}:typeof j=="string"&&(j={message:j});let{path:ue,branch:De}=Y,{type:Le}=Z,{refinement:Ke,message:Ct=`Expected a value of type \`${Le}\`${Ke?` with refinement \`${Ke}\``:""}, but received: \`${s(Q)}\``}=j;return{value:Q,type:Le,refinement:Ke,key:ue[ue.length-1],path:ue,branch:De,...j,message:Ct}}function*h(j,Y,Z,Q){r(j)||(j=[j]);for(let ue of j){let De=d(ue,Y,Z,Q);De&&(yield De)}}function*w(j,Y,Z={}){let{path:Q=[],branch:ue=[j],coerce:De=!1,mask:Le=!1}=Z,Ke={path:Q,branch:ue,mask:Le};De&&(j=Y.coercer(j,Ke));let Ct="valid";for(let Je of Y.validator(j,Ke))Je.explanation=Z.message,Ct="not_valid",yield[Je,void 0];for(let[Je,_t,mn]of Y.entries(j,Ke)){let $t=w(_t,mn,{path:Je===void 0?Q:[...Q,Je],branch:Je===void 0?ue:[...ue,_t],coerce:De,mask:Le,message:Z.message});for(let Ut of $t)Ut[0]?(Ct=Ut[0].refinement!=null?"not_refined":"not_valid",yield[Ut[0],void 0]):De&&(_t=Ut[1],Je===void 0?j=_t:j instanceof Map?j.set(Je,_t):j instanceof Set?j.add(_t):i(j)&&(_t!==void 0||Je in j)&&(j[Je]=_t))}if(Ct!=="not_valid")for(let Je of Y.refiner(j,Ke))Je.explanation=Z.message,Ct="not_refined",yield[Je,void 0];Ct==="valid"&&(yield[void 0,j])}class A{constructor(Y){let{type:Z,schema:Q,validator:ue,refiner:De,coercer:Le=Ct=>Ct,entries:Ke=function*(){}}=Y;this.type=Z,this.schema=Q,this.entries=Ke,this.coercer=Le,ue?this.validator=(Ct,Je)=>{let _t=ue(Ct,Je);return h(_t,Je,this,Ct)}:this.validator=()=>[],De?this.refiner=(Ct,Je)=>{let _t=De(Ct,Je);return h(_t,Je,this,Ct)}:this.refiner=()=>[]}assert(Y,Z){return D(Y,this,Z)}create(Y,Z){return I(Y,this,Z)}is(Y){return F(Y,this)}mask(Y,Z){return R(Y,this,Z)}validate(Y,Z={}){return $(Y,this,Z)}}function D(j,Y,Z){let Q=$(j,Y,{message:Z});if(Q[0])throw Q[0]}function I(j,Y,Z){let Q=$(j,Y,{coerce:!0,message:Z});if(Q[0])throw Q[0];return Q[1]}function R(j,Y,Z){let Q=$(j,Y,{coerce:!0,mask:!0,message:Z});if(Q[0])throw Q[0];return Q[1]}function F(j,Y){return!$(j,Y)[0]}function $(j,Y,Z={}){let Q=w(j,Y,Z),ue=o(Q);return ue[0]?[new e(ue[0],function*(){for(let Le of Q)Le[0]&&(yield Le[0])}),void 0]:[void 0,ue[1]]}function H(...j){let Y=j[0].type==="type",Z=j.map(ue=>ue.schema),Q=Object.assign({},...Z);return Y?tt(Q):re(Q)}function L(j,Y){return new A({type:j,schema:null,validator:Y})}function q(j,Y){return new A({...j,refiner:(Z,Q)=>Z===void 0||j.refiner(Z,Q),validator(Z,Q){return Z===void 0?!0:(Y(Z,Q),j.validator(Z,Q))}})}function W(j){return new A({type:"dynamic",schema:null,*entries(Y,Z){yield*j(Y,Z).entries(Y,Z)},validator(Y,Z){return j(Y,Z).validator(Y,Z)},coercer(Y,Z){return j(Y,Z).coercer(Y,Z)},refiner(Y,Z){return j(Y,Z).refiner(Y,Z)}})}function se(j){let Y;return new A({type:"lazy",schema:null,*entries(Z,Q){Y??(Y=j()),yield*Y.entries(Z,Q)},validator(Z,Q){return Y??(Y=j()),Y.validator(Z,Q)},coercer(Z,Q){return Y??(Y=j()),Y.coercer(Z,Q)},refiner(Z,Q){return Y??(Y=j()),Y.refiner(Z,Q)}})}function N(j,Y){let{schema:Z}=j,Q={...Z};for(let ue of Y)delete Q[ue];return j.type==="type"?tt(Q):re(Q)}function O(j){let Y=j instanceof A,Z=Y?{...j.schema}:{...j};for(let Q in Z)Z[Q]=oe(Z[Q]);return Y&&j.type==="type"?tt(Z):re(Z)}function c(j,Y){let{schema:Z}=j,Q={};for(let ue of Y)Q[ue]=Z[ue];return j.type==="type"?tt(Q):re(Q)}function m(j,Y){return console.warn("superstruct@0.11 - The `struct` helper has been renamed to `define`."),L(j,Y)}function v(){return L("any",()=>!0)}function T(j){return new A({type:"array",schema:j,*entries(Y){if(j&&Array.isArray(Y))for(let[Z,Q]of Y.entries())yield[Z,Q,j]},coercer(Y){return Array.isArray(Y)?Y.slice():Y},validator(Y){return Array.isArray(Y)||`Expected an array value, but received: ${s(Y)}`}})}function P(){return L("bigint",j=>typeof j=="bigint")}function _(){return L("boolean",j=>typeof j=="boolean")}function p(){return L("date",j=>j instanceof Date&&!isNaN(j.getTime())||`Expected a valid \`Date\` object, but received: ${s(j)}`)}function l(j){let Y={},Z=j.map(Q=>s(Q)).join();for(let Q of j)Y[Q]=Q;return new A({type:"enums",schema:Y,validator(Q){return j.includes(Q)||`Expected one of \`${Z}\`, but received: ${s(Q)}`}})}function g(){return L("func",j=>typeof j=="function"||`Expected a function, but received: ${s(j)}`)}function E(j){return L("instance",Y=>Y instanceof j||`Expected a \`${j.name}\` instance, but received: ${s(Y)}`)}function S(){return L("integer",j=>typeof j=="number"&&!isNaN(j)&&Number.isInteger(j)||`Expected an integer, but received: ${s(j)}`)}function C(j){return new A({type:"intersection",schema:null,*entries(Y,Z){for(let Q of j)yield*Q.entries(Y,Z)},*validator(Y,Z){for(let Q of j)yield*Q.validator(Y,Z)},*refiner(Y,Z){for(let Q of j)yield*Q.refiner(Y,Z)}})}function V(j){let Y=s(j),Z=typeof j;return new A({type:"literal",schema:Z==="string"||Z==="number"||Z==="boolean"?j:null,validator(Q){return Q===j||`Expected the literal \`${Y}\`, but received: ${s(Q)}`}})}function x(j,Y){return new A({type:"map",schema:null,*entries(Z){if(j&&Y&&Z instanceof Map)for(let[Q,ue]of Z.entries())yield[Q,Q,j],yield[Q,ue,Y]},coercer(Z){return Z instanceof Map?new Map(Z):Z},validator(Z){return Z instanceof Map||`Expected a \`Map\` object, but received: ${s(Z)}`}})}function y(){return L("never",()=>!1)}function M(j){return new A({...j,validator:(Y,Z)=>Y===null||j.validator(Y,Z),refiner:(Y,Z)=>Y===null||j.refiner(Y,Z)})}function te(){return L("number",j=>typeof j=="number"&&!isNaN(j)||`Expected a number, but received: ${s(j)}`)}function re(j){let Y=j?Object.keys(j):[],Z=y();return new A({type:"object",schema:j||null,*entries(Q){if(j&&i(Q)){let ue=new Set(Object.keys(Q));for(let De of Y)ue.delete(De),yield[De,Q[De],j[De]];for(let De of ue)yield[De,Q[De],Z]}},validator(Q){return n(Q)||`Expected an object, but received: ${s(Q)}`},coercer(Q,ue){if(!n(Q))return Q;let De={...Q};if(ue.mask&&j)for(let Le in De)j[Le]===void 0&&delete De[Le];return De}})}function oe(j){return new A({...j,validator:(Y,Z)=>Y===void 0||j.validator(Y,Z),refiner:(Y,Z)=>Y===void 0||j.refiner(Y,Z)})}function me(j,Y){return new A({type:"record",schema:null,*entries(Z){if(i(Z))for(let Q in Z){let ue=Z[Q];yield[Q,Q,j],yield[Q,ue,Y]}},validator(Z){return n(Z)||`Expected an object, but received: ${s(Z)}`},coercer(Z){return n(Z)?{...Z}:Z}})}function Ce(){return L("regexp",j=>j instanceof RegExp)}function Te(j){return new A({type:"set",schema:null,*entries(Y){if(j&&Y instanceof Set)for(let Z of Y)yield[Z,Z,j]},coercer(Y){return Y instanceof Set?new Set(Y):Y},validator(Y){return Y instanceof Set||`Expected a \`Set\` object, but received: ${s(Y)}`}})}function gt(){return L("string",j=>typeof j=="string"||`Expected a string, but received: ${s(j)}`)}function Fe(j){let Y=y();return new A({type:"tuple",schema:null,*entries(Z){if(Array.isArray(Z)){let Q=Math.max(j.length,Z.length);for(let ue=0;ue<Q;ue++)yield[ue,Z[ue],j[ue]||Y]}},validator(Z){return Array.isArray(Z)||`Expected an array, but received: ${s(Z)}`},coercer(Z){return Array.isArray(Z)?Z.slice():Z}})}function tt(j){let Y=Object.keys(j);return new A({type:"type",schema:j,*entries(Z){if(i(Z))for(let Q of Y)yield[Q,Z[Q],j[Q]]},validator(Z){return n(Z)||`Expected an object, but received: ${s(Z)}`},coercer(Z){return n(Z)?{...Z}:Z}})}function er(j){let Y=j.map(Z=>Z.type).join(" | ");return new A({type:"union",schema:null,coercer(Z,Q){for(let ue of j){let[De,Le]=ue.validate(Z,{coerce:!0,mask:Q.mask});if(!De)return Le}return Z},validator(Z,Q){let ue=[];for(let De of j){let[...Le]=w(Z,De,Q),[Ke]=Le;if(Ke[0])for(let[Ct]of Le)Ct&&ue.push(Ct);else return[]}return[`Expected the value to satisfy a union of \`${Y}\`, but received: ${s(Z)}`,...ue]}})}function rt(){return L("unknown",()=>!0)}function Pe(j,Y,Z){return new A({...j,coercer:(Q,ue)=>F(Q,Y)?j.coercer(Z(Q,ue),ue):j.coercer(Q,ue)})}function ds(j,Y,Z={}){return Pe(j,rt(),Q=>{let ue=typeof Y=="function"?Y():Y;if(Q===void 0)return ue;if(!Z.strict&&a(Q)&&a(ue)){let De={...Q},Le=!1;for(let Ke in ue)De[Ke]===void 0&&(De[Ke]=ue[Ke],Le=!0);if(Le)return De}return Q})}function tr(j){return Pe(j,gt(),Y=>Y.trim())}function kt(j){return ci(j,"empty",Y=>{let Z=hn(Y);return Z===0||`Expected an empty ${j.type} but received one with a size of \`${Z}\``})}function hn(j){return j instanceof Map||j instanceof Set?j.size:j.length}function rr(j,Y,Z={}){let{exclusive:Q}=Z;return ci(j,"max",ue=>Q?ue<Y:ue<=Y||`Expected a ${j.type} less than ${Q?"":"or equal to "}${Y} but received \`${ue}\``)}function Wt(j,Y,Z={}){let{exclusive:Q}=Z;return ci(j,"min",ue=>Q?ue>Y:ue>=Y||`Expected a ${j.type} greater than ${Q?"":"or equal to "}${Y} but received \`${ue}\``)}function va(j){return ci(j,"nonempty",Y=>hn(Y)>0||`Expected a nonempty ${j.type} but received an empty one`)}function qt(j,Y){return ci(j,"pattern",Z=>Y.test(Z)||`Expected a ${j.type} matching \`/${Y.source}/\` but received "${Z}"`)}function Yt(j,Y,Z=Y){let Q=`Expected a ${j.type}`,ue=Y===Z?`of \`${Y}\``:`between \`${Y}\` and \`${Z}\``;return ci(j,"size",De=>{if(typeof De=="number"||De instanceof Date)return Y<=De&&De<=Z||`${Q} ${ue} but received \`${De}\``;if(De instanceof Map||De instanceof Set){let{size:Le}=De;return Y<=Le&&Le<=Z||`${Q} with a size ${ue} but received one with a size of \`${Le}\``}else{let{length:Le}=De;return Y<=Le&&Le<=Z||`${Q} with a length ${ue} but received one with a length of \`${Le}\``}})}function ci(j,Y,Z){return new A({...j,*refiner(Q,ue){yield*j.refiner(Q,ue);let De=Z(Q,ue),Le=h(De,ue,j,Q);for(let Ke of Le)yield{...Ke,refinement:Y}}})}t.Struct=A,t.StructError=e,t.any=v,t.array=T,t.assert=D,t.assign=H,t.bigint=P,t.boolean=_,t.coerce=Pe,t.create=I,t.date=p,t.defaulted=ds,t.define=L,t.deprecated=q,t.dynamic=W,t.empty=kt,t.enums=l,t.func=g,t.instance=E,t.integer=S,t.intersection=C,t.is=F,t.lazy=se,t.literal=V,t.map=x,t.mask=R,t.max=rr,t.min=Wt,t.never=y,t.nonempty=va,t.nullable=M,t.number=te,t.object=re,t.omit=N,t.optional=oe,t.partial=O,t.pattern=qt,t.pick=c,t.record=me,t.refine=ci,t.regexp=Ce,t.set=Te,t.size=Yt,t.string=gt,t.struct=m,t.trimmed=tr,t.tuple=Fe,t.type=tt,t.union=er,t.unknown=rt,t.validate=$}))});import pA from"crypto";function b1(){return Kp>Wp.length-16&&(pA.randomFillSync(Wp),Kp=0),Wp.slice(Kp,Kp+=16)}var Wp,Kp,Eu=yt(()=>{Wp=new Uint8Array(256),Kp=Wp.length});var t7,r7=yt(()=>{t7=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function lA(t){return typeof t=="string"&&t7.test(t)}var Ca,A1=yt(()=>{r7();Ca=lA});function cA(t,e=0){let r=(Yr[t[e+0]]+Yr[t[e+1]]+Yr[t[e+2]]+Yr[t[e+3]]+"-"+Yr[t[e+4]]+Yr[t[e+5]]+"-"+Yr[t[e+6]]+Yr[t[e+7]]+"-"+Yr[t[e+8]]+Yr[t[e+9]]+"-"+Yr[t[e+10]]+Yr[t[e+11]]+Yr[t[e+12]]+Yr[t[e+13]]+Yr[t[e+14]]+Yr[t[e+15]]).toLowerCase();if(!Ca(r))throw TypeError("Stringified UUID is invalid");return r}var Yr,La,O1=yt(()=>{A1();Yr=[];for(let t=0;t<256;++t)Yr.push((t+256).toString(16).substr(1));La=cA});function uA(t,e,r){let i=e&&r||0,n=e||new Array(16);t=t||{};let a=t.node||i7,s=t.clockseq!==void 0?t.clockseq:vu;if(a==null||s==null){let D=t.random||(t.rng||b1)();a==null&&(a=i7=[D[0]|1,D[1],D[2],D[3],D[4],D[5]]),s==null&&(s=vu=(D[6]<<8|D[7])&16383)}let o=t.msecs!==void 0?t.msecs:Date.now(),d=t.nsecs!==void 0?t.nsecs:Su+1,h=o-wu+(d-Su)/1e4;if(h<0&&t.clockseq===void 0&&(s=s+1&16383),(h<0||o>wu)&&t.nsecs===void 0&&(d=0),d>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");wu=o,Su=d,vu=s,o+=122192928e5;let w=((o&268435455)*1e4+d)%4294967296;n[i++]=w>>>24&255,n[i++]=w>>>16&255,n[i++]=w>>>8&255,n[i++]=w&255;let A=o/4294967296*1e4&268435455;n[i++]=A>>>8&255,n[i++]=A&255,n[i++]=A>>>24&15|16,n[i++]=A>>>16&255,n[i++]=s>>>8|128,n[i++]=s&255;for(let D=0;D<6;++D)n[i+D]=a[D];return e||La(n)}var i7,vu,wu,Su,n7,a7=yt(()=>{Eu();O1();wu=0,Su=0;n7=uA});function fA(t){if(!Ca(t))throw TypeError("Invalid UUID");let e,r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=e&255,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=e&255,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=e&255,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=e&255,r}var Yp,Ru=yt(()=>{A1();Yp=fA});function hA(t){t=unescape(encodeURIComponent(t));let e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r));return e}function Xp(t,e,r){function i(n,a,s,o){if(typeof n=="string"&&(n=hA(n)),typeof a=="string"&&(a=Yp(a)),a.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let d=new Uint8Array(16+n.length);if(d.set(a),d.set(n,a.length),d=r(d),d[6]=d[6]&15|e,d[8]=d[8]&63|128,s){o=o||0;for(let h=0;h<16;++h)s[o+h]=d[h];return s}return La(d)}try{i.name=t}catch{}return i.DNS=mA,i.URL=_A,i}var mA,_A,bu=yt(()=>{O1();Ru();mA="6ba7b810-9dad-11d1-80b4-00c04fd430c8",_A="6ba7b811-9dad-11d1-80b4-00c04fd430c8"});import gA from"crypto";function yA(t){return Array.isArray(t)?t=Buffer.from(t):typeof t=="string"&&(t=Buffer.from(t,"utf8")),gA.createHash("md5").update(t).digest()}var s7,o7=yt(()=>{s7=yA});var EA,d7,p7=yt(()=>{bu();o7();EA=Xp("v3",48,s7),d7=EA});function vA(t,e,r){t=t||{};let i=t.random||(t.rng||b1)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){r=r||0;for(let n=0;n<16;++n)e[r+n]=i[n];return e}return La(i)}var l7,c7=yt(()=>{Eu();O1();l7=vA});import wA from"crypto";function SA(t){return Array.isArray(t)?t=Buffer.from(t):typeof t=="string"&&(t=Buffer.from(t,"utf8")),wA.createHash("sha1").update(t).digest()}var u7,f7=yt(()=>{u7=SA});var RA,h7,m7=yt(()=>{bu();f7();RA=Xp("v5",80,u7),h7=RA});var _7,g7=yt(()=>{_7="00000000-0000-0000-0000-000000000000"});function bA(t){if(!Ca(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}var y7,E7=yt(()=>{A1();y7=bA});var Au={};Wl(Au,{NIL:()=>_7,parse:()=>Yp,stringify:()=>La,v1:()=>n7,v3:()=>d7,v4:()=>l7,v5:()=>h7,validate:()=>Ca,version:()=>y7});var Ou=yt(()=>{a7();p7();c7();m7();g7();E7();A1();O1();Ru()});var w7=Ne((VU,v7)=>{"use strict";var AA=(Ou(),Yl(Au)).v4,OA=function(t,e,r,i){if(typeof t!="string")throw new TypeError(t+" must be a string");i=i||{};let n=typeof i.version=="number"?i.version:2;if(n!==1&&n!==2)throw new TypeError(n+" must be 1 or 2");let a={method:t};if(n===2&&(a.jsonrpc="2.0"),e){if(typeof e!="object"&&!Array.isArray(e))throw new TypeError(e+" must be an object, array or omitted");a.params=e}if(typeof r>"u"){let s=typeof i.generator=="function"?i.generator:function(){return AA()};a.id=s(a,i)}else n===2&&r===null?i.notificationIdNull&&(a.id=null):a.id=r;return a};v7.exports=OA});var R7=Ne(($U,S7)=>{"use strict";var NA=(Ou(),Yl(Au)).v4,TA=w7(),N1=function(t,e){if(!(this instanceof N1))return new N1(t,e);e||(e={}),this.options={reviver:typeof e.reviver<"u"?e.reviver:null,replacer:typeof e.replacer<"u"?e.replacer:null,generator:typeof e.generator<"u"?e.generator:function(){return NA()},version:typeof e.version<"u"?e.version:2,notificationIdNull:typeof e.notificationIdNull=="boolean"?e.notificationIdNull:!1},this.callServer=t};S7.exports=N1;N1.prototype.request=function(t,e,r,i){let n=this,a=null,s=Array.isArray(t)&&typeof e=="function";if(this.options.version===1&&s)throw new TypeError("JSON-RPC 1.0 does not support batching");if(s||!s&&t&&typeof t=="object"&&typeof e=="function")i=e,a=t;else{typeof r=="function"&&(i=r,r=void 0);let h=typeof i=="function";try{a=TA(t,e,r,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(w){if(h){i(w);return}throw w}if(!h)return a}let d;try{d=JSON.stringify(a,this.options.replacer)}catch(h){i(h);return}return this.callServer(d,function(h,w){n._parseResponse(h,w,i)}),a};N1.prototype._parseResponse=function(t,e,r){if(t){r(t);return}if(!e){r();return}let i;try{i=JSON.parse(e,this.options.reviver)}catch(n){r(n);return}if(r.length===3)if(Array.isArray(i)){let n=function(s){return typeof s.error<"u"},a=function(s){return!n(s)};r(null,i.filter(n),i.filter(a));return}else{r(null,i.error,i.result);return}r(null,i)}});var O7=Ne((zU,A7)=>{"use strict";var vr={};A7.exports=vr;function b7(t){return t<0?-1:1}function xA(t){return t%1===.5&&(t&1)===0?Math.floor(t):Math.round(t)}function ka(t,e){e.unsigned||--t;let r=e.unsigned?0:-Math.pow(2,t),i=Math.pow(2,t)-1,n=e.moduloBitLength?Math.pow(2,e.moduloBitLength):Math.pow(2,t),a=e.moduloBitLength?Math.pow(2,e.moduloBitLength-1):Math.pow(2,t-1);return function(s,o){o||(o={});let d=+s;if(o.enforceRange){if(!Number.isFinite(d))throw new TypeError("Argument is not a finite number");if(d=b7(d)*Math.floor(Math.abs(d)),d<r||d>i)throw new TypeError("Argument is not in byte range");return d}if(!isNaN(d)&&o.clamp)return d=xA(d),d<r&&(d=r),d>i&&(d=i),d;if(!Number.isFinite(d)||d===0)return 0;if(d=b7(d)*Math.floor(Math.abs(d)),d=d%n,!e.unsigned&&d>=a)return d-n;if(e.unsigned){if(d<0)d+=n;else if(d===-0)return 0}return d}}vr.void=function(){};vr.boolean=function(t){return!!t};vr.byte=ka(8,{unsigned:!1});vr.octet=ka(8,{unsigned:!0});vr.short=ka(16,{unsigned:!1});vr["unsigned short"]=ka(16,{unsigned:!0});vr.long=ka(32,{unsigned:!1});vr["unsigned long"]=ka(32,{unsigned:!0});vr["long long"]=ka(32,{unsigned:!1,moduloBitLength:64});vr["unsigned long long"]=ka(32,{unsigned:!0,moduloBitLength:64});vr.double=function(t){let e=+t;if(!Number.isFinite(e))throw new TypeError("Argument is not a finite floating-point value");return e};vr["unrestricted double"]=function(t){let e=+t;if(isNaN(e))throw new TypeError("Argument is NaN");return e};vr.float=vr.double;vr["unrestricted float"]=vr["unrestricted double"];vr.DOMString=function(t,e){return e||(e={}),e.treatNullAsEmptyString&&t===null?"":String(t)};vr.ByteString=function(t,e){let r=String(t),i;for(let n=0;(i=r.codePointAt(n))!==void 0;++n)if(i>255)throw new TypeError("Argument is not a valid bytestring");return r};vr.USVString=function(t){let e=String(t),r=e.length,i=[];for(let n=0;n<r;++n){let a=e.charCodeAt(n);if(a<55296||a>57343)i.push(String.fromCodePoint(a));else if(56320<=a&&a<=57343)i.push(String.fromCodePoint(65533));else if(n===r-1)i.push(String.fromCodePoint(65533));else{let s=e.charCodeAt(n+1);if(56320<=s&&s<=57343){let o=a&1023,d=s&1023;i.push(String.fromCodePoint(65536+1024*o+d)),++n}else i.push(String.fromCodePoint(65533))}}return i.join("")};vr.Date=function(t,e){if(!(t instanceof Date))throw new TypeError("Argument is not a Date object");if(!isNaN(t))return t};vr.RegExp=function(t,e){return t instanceof RegExp||(t=new RegExp(t)),t}});var N7=Ne((HU,Da)=>{"use strict";Da.exports.mixin=function(e,r){let i=Object.getOwnPropertyNames(r);for(let n=0;n<i.length;++n)Object.defineProperty(e,i[n],Object.getOwnPropertyDescriptor(r,i[n]))};Da.exports.wrapperSymbol=Symbol("wrapper");Da.exports.implSymbol=Symbol("impl");Da.exports.wrapperForImpl=function(t){return t[Da.exports.wrapperSymbol]};Da.exports.implForWrapper=function(t){return t[Da.exports.implSymbol]}});var T7=Ne((GU,IA)=>{IA.exports=[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"],[[47,47],"disallowed_STD3_valid"],[[48,57],"valid"],[[58,64],"disallowed_STD3_valid"],[[65,65],"mapped",[97]],[[66,66],"mapped",[98]],[[67,67],"mapped",[99]],[[68,68],"mapped",[100]],[[69,69],"mapped",[101]],[[70,70],"mapped",[102]],[[71,71],"mapped",[103]],[[72,72],"mapped",[104]],[[73,73],"mapped",[105]],[[74,74],"mapped",[106]],[[75,75],"mapped",[107]],[[76,76],"mapped",[108]],[[77,77],"mapped",[109]],[[78,78],"mapped",[110]],[[79,79],"mapped",[111]],[[80,80],"mapped",[112]],[[81,81],"mapped",[113]],[[82,82],"mapped",[114]],[[83,83],"mapped",[115]],[[84,84],"mapped",[116]],[[85,85],"mapped",[117]],[[86,86],"mapped",[118]],[[87,87],"mapped",[119]],[[88,88],"mapped",[120]],[[89,89],"mapped",[121]],[[90,90],"mapped",[122]],[[91,96],"disallowed_STD3_valid"],[[97,122],"valid"],[[123,127],"disallowed_STD3_valid"],[[128,159],"disallowed"],[[160,160],"disallowed_STD3_mapped",[32]],[[161,167],"valid",[],"NV8"],[[168,168],"disallowed_STD3_mapped",[32,776]],[[169,169],"valid",[],"NV8"],[[170,170],"mapped",[97]],[[171,172],"valid",[],"NV8"],[[173,173],"ignored"],[[174,174],"valid",[],"NV8"],[[175,175],"disallowed_STD3_mapped",[32,772]],[[176,177],"valid",[],"NV8"],[[178,178],"mapped",[50]],[[179,179],"mapped",[51]],[[180,180],"disallowed_STD3_mapped",[32,769]],[[181,181],"mapped",[956]],[[182,182],"valid",[],"NV8"],[[183,183],"valid"],[[184,184],"disallowed_STD3_mapped",[32,807]],[[185,185],"mapped",[49]],[[186,186],"mapped",[111]],[[187,187],"valid",[],"NV8"],[[188,188],"mapped",[49,8260,52]],[[189,189],"mapped",[49,8260,50]],[[190,190],"mapped",[51,8260,52]],[[191,191],"valid",[],"NV8"],[[192,192],"mapped",[224]],[[193,193],"mapped",[225]],[[194,194],"mapped",[226]],[[195,195],"mapped",[227]],[[196,196],"mapped",[228]],[[197,197],"mapped",[229]],[[198,198],"mapped",[230]],[[199,199],"mapped",[231]],[[200,200],"mapped",[232]],[[201,201],"mapped",[233]],[[202,202],"mapped",[234]],[[203,203],"mapped",[235]],[[204,204],"mapped",[236]],[[205,205],"mapped",[237]],[[206,206],"mapped",[238]],[[207,207],"mapped",[239]],[[208,208],"mapped",[240]],[[209,209],"mapped",[241]],[[210,210],"mapped",[242]],[[211,211],"mapped",[243]],[[212,212],"mapped",[244]],[[213,213],"mapped",[245]],[[214,214],"mapped",[246]],[[215,215],"valid",[],"NV8"],[[216,216],"mapped",[248]],[[217,217],"mapped",[249]],[[218,218],"mapped",[250]],[[219,219],"mapped",[251]],[[220,220],"mapped",[252]],[[221,221],"mapped",[253]],[[222,222],"mapped",[254]],[[223,223],"deviation",[115,115]],[[224,246],"valid"],[[247,247],"valid",[],"NV8"],[[248,255],"valid"],[[256,256],"mapped",[257]],[[257,257],"valid"],[[258,258],"mapped",[259]],[[259,259],"valid"],[[260,260],"mapped",[261]],[[261,261],"valid"],[[262,262],"mapped",[263]],[[263,263],"valid"],[[264,264],"mapped",[265]],[[265,265],"valid"],[[266,266],"mapped",[267]],[[267,267],"valid"],[[268,268],"mapped",[269]],[[269,269],"valid"],[[270,270],"mapped",[271]],[[271,271],"valid"],[[272,272],"mapped",[273]],[[273,273],"valid"],[[274,274],"mapped",[275]],[[275,275],"valid"],[[276,276],"mapped",[277]],[[277,277],"valid"],[[278,278],"mapped",[279]],[[279,279],"valid"],[[280,280],"mapped",[281]],[[281,281],"valid"],[[282,282],"mapped",[283]],[[283,283],"valid"],[[284,284],"mapped",[285]],[[285,285],"valid"],[[286,286],"mapped",[287]],[[287,287],"valid"],[[288,288],"mapped",[289]],[[289,289],"valid"],[[290,290],"mapped",[291]],[[291,291],"valid"],[[292,292],"mapped",[293]],[[293,293],"valid"],[[294,294],"mapped",[295]],[[295,295],"valid"],[[296,296],"mapped",[297]],[[297,297],"valid"],[[298,298],"mapped",[299]],[[299,299],"valid"],[[300,300],"mapped",[301]],[[301,301],"valid"],[[302,302],"mapped",[303]],[[303,303],"valid"],[[304,304],"mapped",[105,775]],[[305,305],"valid"],[[306,307],"mapped",[105,106]],[[308,308],"mapped",[309]],[[309,309],"valid"],[[310,310],"mapped",[311]],[[311,312],"valid"],[[313,313],"mapped",[314]],[[314,314],"valid"],[[315,315],"mapped",[316]],[[316,316],"valid"],[[317,317],"mapped",[318]],[[318,318],"valid"],[[319,320],"mapped",[108,183]],[[321,321],"mapped",[322]],[[322,322],"valid"],[[323,323],"mapped",[324]],[[324,324],"valid"],[[325,325],"mapped",[326]],[[326,326],"valid"],[[327,327],"mapped",[328]],[[328,328],"valid"],[[329,329],"mapped",[700,110]],[[330,330],"mapped",[331]],[[331,331],"valid"],[[332,332],"mapped",[333]],[[333,333],"valid"],[[334,334],"mapped",[335]],[[335,335],"valid"],[[336,336],"mapped",[337]],[[337,337],"valid"],[[338,338],"mapped",[339]],[[339,339],"valid"],[[340,340],"mapped",[341]],[[341,341],"valid"],[[342,342],"mapped",[343]],[[343,343],"valid"],[[344,344],"mapped",[345]],[[345,345],"valid"],[[346,346],"mapped",[347]],[[347,347],"valid"],[[348,348],"mapped",[349]],[[349,349],"valid"],[[350,350],"mapped",[351]],[[351,351],"valid"],[[352,352],"mapped",[353]],[[353,353],"valid"],[[354,354],"mapped",[355]],[[355,355],"valid"],[[356,356],"mapped",[357]],[[357,357],"valid"],[[358,358],"mapped",[359]],[[359,359],"valid"],[[360,360],"mapped",[361]],[[361,361],"valid"],[[362,362],"mapped",[363]],[[363,363],"valid"],[[364,364],"mapped",[365]],[[365,365],"valid"],[[366,366],"mapped",[367]],[[367,367],"valid"],[[368,368],"mapped",[369]],[[369,369],"valid"],[[370,370],"mapped",[371]],[[371,371],"valid"],[[372,372],"mapped",[373]],[[373,373],"valid"],[[374,374],"mapped",[375]],[[375,375],"valid"],[[376,376],"mapped",[255]],[[377,377],"mapped",[378]],[[378,378],"valid"],[[379,379],"mapped",[380]],[[380,380],"valid"],[[381,381],"mapped",[382]],[[382,382],"valid"],[[383,383],"mapped",[115]],[[384,384],"valid"],[[385,385],"mapped",[595]],[[386,386],"mapped",[387]],[[387,387],"valid"],[[388,388],"mapped",[389]],[[389,389],"valid"],[[390,390],"mapped",[596]],[[391,391],"mapped",[392]],[[392,392],"valid"],[[393,393],"mapped",[598]],[[394,394],"mapped",[599]],[[395,395],"mapped",[396]],[[396,397],"valid"],[[398,398],"mapped",[477]],[[399,399],"mapped",[601]],[[400,400],"mapped",[603]],[[401,401],"mapped",[402]],[[402,402],"valid"],[[403,403],"mapped",[608]],[[404,404],"mapped",[611]],[[405,405],"valid"],[[406,406],"mapped",[617]],[[407,407],"mapped",[616]],[[408,408],"mapped",[409]],[[409,411],"valid"],[[412,412],"mapped",[623]],[[413,413],"mapped",[626]],[[414,414],"valid"],[[415,415],"mapped",[629]],[[416,416],"mapped",[417]],[[417,417],"valid"],[[418,418],"mapped",[419]],[[419,419],"valid"],[[420,420],"mapped",[421]],[[421,421],"valid"],[[422,422],"mapped",[640]],[[423,423],"mapped",[424]],[[424,424],"valid"],[[425,425],"mapped",[643]],[[426,427],"valid"],[[428,428],"mapped",[429]],[[429,429],"valid"],[[430,430],"mapped",[648]],[[431,431],"mapped",[432]],[[432,432],"valid"],[[433,433],"mapped",[650]],[[434,434],"mapped",[651]],[[435,435],"mapped",[436]],[[436,436],"valid"],[[437,437],"mapped",[438]],[[438,438],"valid"],[[439,439],"mapped",[658]],[[440,440],"mapped",[441]],[[441,443],"valid"],[[444,444],"mapped",[445]],[[445,451],"valid"],[[452,454],"mapped",[100,382]],[[455,457],"mapped",[108,106]],[[458,460],"mapped",[110,106]],[[461,461],"mapped",[462]],[[462,462],"valid"],[[463,463],"mapped",[464]],[[464,464],"valid"],[[465,465],"mapped",[466]],[[466,466],"valid"],[[467,467],"mapped",[468]],[[468,468],"valid"],[[469,469],"mapped",[470]],[[470,470],"valid"],[[471,471],"mapped",[472]],[[472,472],"valid"],[[473,473],"mapped",[474]],[[474,474],"valid"],[[475,475],"mapped",[476]],[[476,477],"valid"],[[478,478],"mapped",[479]],[[479,479],"valid"],[[480,480],"mapped",[481]],[[481,481],"valid"],[[482,482],"mapped",[483]],[[483,483],"valid"],[[484,484],"mapped",[485]],[[485,485],"valid"],[[486,486],"mapped",[487]],[[487,487],"valid"],[[488,488],"mapped",[489]],[[489,489],"valid"],[[490,490],"mapped",[491]],[[491,491],"valid"],[[492,492],"mapped",[493]],[[493,493],"valid"],[[494,494],"mapped",[495]],[[495,496],"valid"],[[497,499],"mapped",[100,122]],[[500,500],"mapped",[501]],[[501,501],"valid"],[[502,502],"mapped",[405]],[[503,503],"mapped",[447]],[[504,504],"mapped",[505]],[[505,505],"valid"],[[506,506],"mapped",[507]],[[507,507],"valid"],[[508,508],"mapped",[509]],[[509,509],"valid"],[[510,510],"mapped",[511]],[[511,511],"valid"],[[512,512],"mapped",[513]],[[513,513],"valid"],[[514,514],"mapped",[515]],[[515,515],"valid"],[[516,516],"mapped",[517]],[[517,517],"valid"],[[518,518],"mapped",[519]],[[519,519],"valid"],[[520,520],"mapped",[521]],[[521,521],"valid"],[[522,522],"mapped",[523]],[[523,523],"valid"],[[524,524],"mapped",[525]],[[525,525],"valid"],[[526,526],"mapped",[527]],[[527,527],"valid"],[[528,528],"mapped",[529]],[[529,529],"valid"],[[530,530],"mapped",[531]],[[531,531],"valid"],[[532,532],"mapped",[533]],[[533,533],"valid"],[[534,534],"mapped",[535]],[[535,535],"valid"],[[536,536],"mapped",[537]],[[537,537],"valid"],[[538,538],"mapped",[539]],[[539,539],"valid"],[[540,540],"mapped",[541]],[[541,541],"valid"],[[542,542],"mapped",[543]],[[543,543],"valid"],[[544,544],"mapped",[414]],[[545,545],"valid"],[[546,546],"mapped",[547]],[[547,547],"valid"],[[548,548],"mapped",[549]],[[549,549],"valid"],[[550,550],"mapped",[551]],[[551,551],"valid"],[[552,552],"mapped",[553]],[[553,553],"valid"],[[554,554],"mapped",[555]],[[555,555],"valid"],[[556,556],"mapped",[557]],[[557,557],"valid"],[[558,558],"mapped",[559]],[[559,559],"valid"],[[560,560],"mapped",[561]],[[561,561],"valid"],[[562,562],"mapped",[563]],[[563,563],"valid"],[[564,566],"valid"],[[567,569],"valid"],[[570,570],"mapped",[11365]],[[571,571],"mapped",[572]],[[572,572],"valid"],[[573,573],"mapped",[410]],[[574,574],"mapped",[11366]],[[575,576],"valid"],[[577,577],"mapped",[578]],[[578,578],"valid"],[[579,579],"mapped",[384]],[[580,580],"mapped",[649]],[[581,581],"mapped",[652]],[[582,582],"mapped",[583]],[[583,583],"valid"],[[584,584],"mapped",[585]],[[585,585],"valid"],[[586,586],"mapped",[587]],[[587,587],"valid"],[[588,588],"mapped",[589]],[[589,589],"valid"],[[590,590],"mapped",[591]],[[591,591],"valid"],[[592,680],"valid"],[[681,685],"valid"],[[686,687],"valid"],[[688,688],"mapped",[104]],[[689,689],"mapped",[614]],[[690,690],"mapped",[106]],[[691,691],"mapped",[114]],[[692,692],"mapped",[633]],[[693,693],"mapped",[635]],[[694,694],"mapped",[641]],[[695,695],"mapped",[119]],[[696,696],"mapped",[121]],[[697,705],"valid"],[[706,709],"valid",[],"NV8"],[[710,721],"valid"],[[722,727],"valid",[],"NV8"],[[728,728],"disallowed_STD3_mapped",[32,774]],[[729,729],"disallowed_STD3_mapped",[32,775]],[[730,730],"disallowed_STD3_mapped",[32,778]],[[731,731],"disallowed_STD3_mapped",[32,808]],[[732,732],"disallowed_STD3_mapped",[32,771]],[[733,733],"disallowed_STD3_mapped",[32,779]],[[734,734],"valid",[],"NV8"],[[735,735],"valid",[],"NV8"],[[736,736],"mapped",[611]],[[737,737],"mapped",[108]],[[738,738],"mapped",[115]],[[739,739],"mapped",[120]],[[740,740],"mapped",[661]],[[741,745],"valid",[],"NV8"],[[746,747],"valid",[],"NV8"],[[748,748],"valid"],[[749,749],"valid",[],"NV8"],[[750,750],"valid"],[[751,767],"valid",[],"NV8"],[[768,831],"valid"],[[832,832],"mapped",[768]],[[833,833],"mapped",[769]],[[834,834],"valid"],[[835,835],"mapped",[787]],[[836,836],"mapped",[776,769]],[[837,837],"mapped",[953]],[[838,846],"valid"],[[847,847],"ignored"],[[848,855],"valid"],[[856,860],"valid"],[[861,863],"valid"],[[864,865],"valid"],[[866,866],"valid"],[[867,879],"valid"],[[880,880],"mapped",[881]],[[881,881],"valid"],[[882,882],"mapped",[883]],[[883,883],"valid"],[[884,884],"mapped",[697]],[[885,885],"valid"],[[886,886],"mapped",[887]],[[887,887],"valid"],[[888,889],"disallowed"],[[890,890],"disallowed_STD3_mapped",[32,953]],[[891,893],"valid"],[[894,894],"disallowed_STD3_mapped",[59]],[[895,895],"mapped",[1011]],[[896,899],"disallowed"],[[900,900],"disallowed_STD3_mapped",[32,769]],[[901,901],"disallowed_STD3_mapped",[32,776,769]],[[902,902],"mapped",[940]],[[903,903],"mapped",[183]],[[904,904],"mapped",[941]],[[905,905],"mapped",[942]],[[906,906],"mapped",[943]],[[907,907],"disallowed"],[[908,908],"mapped",[972]],[[909,909],"disallowed"],[[910,910],"mapped",[973]],[[911,911],"mapped",[974]],[[912,912],"valid"],[[913,913],"mapped",[945]],[[914,914],"mapped",[946]],[[915,915],"mapped",[947]],[[916,916],"mapped",[948]],[[917,917],"mapped",[949]],[[918,918],"mapped",[950]],[[919,919],"mapped",[951]],[[920,920],"mapped",[952]],[[921,921],"mapped",[953]],[[922,922],"mapped",[954]],[[923,923],"mapped",[955]],[[924,924],"mapped",[956]],[[925,925],"mapped",[957]],[[926,926],"mapped",[958]],[[927,927],"mapped",[959]],[[928,928],"mapped",[960]],[[929,929],"mapped",[961]],[[930,930],"disallowed"],[[931,931],"mapped",[963]],[[932,932],"mapped",[964]],[[933,933],"mapped",[965]],[[934,934],"mapped",[966]],[[935,935],"mapped",[967]],[[936,936],"mapped",[968]],[[937,937],"mapped",[969]],[[938,938],"mapped",[970]],[[939,939],"mapped",[971]],[[940,961],"valid"],[[962,962],"deviation",[963]],[[963,974],"valid"],[[975,975],"mapped",[983]],[[976,976],"mapped",[946]],[[977,977],"mapped",[952]],[[978,978],"mapped",[965]],[[979,979],"mapped",[973]],[[980,980],"mapped",[971]],[[981,981],"mapped",[966]],[[982,982],"mapped",[960]],[[983,983],"valid"],[[984,984],"mapped",[985]],[[985,985],"valid"],[[986,986],"mapped",[987]],[[987,987],"valid"],[[988,988],"mapped",[989]],[[989,989],"valid"],[[990,990],"mapped",[991]],[[991,991],"valid"],[[992,992],"mapped",[993]],[[993,993],"valid"],[[994,994],"mapped",[995]],[[995,995],"valid"],[[996,996],"mapped",[997]],[[997,997],"valid"],[[998,998],"mapped",[999]],[[999,999],"valid"],[[1e3,1e3],"mapped",[1001]],[[1001,1001],"valid"],[[1002,1002],"mapped",[1003]],[[1003,1003],"valid"],[[1004,1004],"mapped",[1005]],[[1005,1005],"valid"],[[1006,1006],"mapped",[1007]],[[1007,1007],"valid"],[[1008,1008],"mapped",[954]],[[1009,1009],"mapped",[961]],[[1010,1010],"mapped",[963]],[[1011,1011],"valid"],[[1012,1012],"mapped",[952]],[[1013,1013],"mapped",[949]],[[1014,1014],"valid",[],"NV8"],[[1015,1015],"mapped",[1016]],[[1016,1016],"valid"],[[1017,1017],"mapped",[963]],[[1018,1018],"mapped",[1019]],[[1019,1019],"valid"],[[1020,1020],"valid"],[[1021,1021],"mapped",[891]],[[1022,1022],"mapped",[892]],[[1023,1023],"mapped",[893]],[[1024,1024],"mapped",[1104]],[[1025,1025],"mapped",[1105]],[[1026,1026],"mapped",[1106]],[[1027,1027],"mapped",[1107]],[[1028,1028],"mapped",[1108]],[[1029,1029],"mapped",[1109]],[[1030,1030],"mapped",[1110]],[[1031,1031],"mapped",[1111]],[[1032,1032],"mapped",[1112]],[[1033,1033],"mapped",[1113]],[[1034,1034],"mapped",[1114]],[[1035,1035],"mapped",[1115]],[[1036,1036],"mapped",[1116]],[[1037,1037],"mapped",[1117]],[[1038,1038],"mapped",[1118]],[[1039,1039],"mapped",[1119]],[[1040,1040],"mapped",[1072]],[[1041,1041],"mapped",[1073]],[[1042,1042],"mapped",[1074]],[[1043,1043],"mapped",[1075]],[[1044,1044],"mapped",[1076]],[[1045,1045],"mapped",[1077]],[[1046,1046],"mapped",[1078]],[[1047,1047],"mapped",[1079]],[[1048,1048],"mapped",[1080]],[[1049,1049],"mapped",[1081]],[[1050,1050],"mapped",[1082]],[[1051,1051],"mapped",[1083]],[[1052,1052],"mapped",[1084]],[[1053,1053],"mapped",[1085]],[[1054,1054],"mapped",[1086]],[[1055,1055],"mapped",[1087]],[[1056,1056],"mapped",[1088]],[[1057,1057],"mapped",[1089]],[[1058,1058],"mapped",[1090]],[[1059,1059],"mapped",[1091]],[[1060,1060],"mapped",[1092]],[[1061,1061],"mapped",[1093]],[[1062,1062],"mapped",[1094]],[[1063,1063],"mapped",[1095]],[[1064,1064],"mapped",[1096]],[[1065,1065],"mapped",[1097]],[[1066,1066],"mapped",[1098]],[[1067,1067],"mapped",[1099]],[[1068,1068],"mapped",[1100]],[[1069,1069],"mapped",[1101]],[[1070,1070],"mapped",[1102]],[[1071,1071],"mapped",[1103]],[[1072,1103],"valid"],[[1104,1104],"valid"],[[1105,1116],"valid"],[[1117,1117],"valid"],[[1118,1119],"valid"],[[1120,1120],"mapped",[1121]],[[1121,1121],"valid"],[[1122,1122],"mapped",[1123]],[[1123,1123],"valid"],[[1124,1124],"mapped",[1125]],[[1125,1125],"valid"],[[1126,1126],"mapped",[1127]],[[1127,1127],"valid"],[[1128,1128],"mapped",[1129]],[[1129,1129],"valid"],[[1130,1130],"mapped",[1131]],[[1131,1131],"valid"],[[1132,1132],"mapped",[1133]],[[1133,1133],"valid"],[[1134,1134],"mapped",[1135]],[[1135,1135],"valid"],[[1136,1136],"mapped",[1137]],[[1137,1137],"valid"],[[1138,1138],"mapped",[1139]],[[1139,1139],"valid"],[[1140,1140],"mapped",[1141]],[[1141,1141],"valid"],[[1142,1142],"mapped",[1143]],[[1143,1143],"valid"],[[1144,1144],"mapped",[1145]],[[1145,1145],"valid"],[[1146,1146],"mapped",[1147]],[[1147,1147],"valid"],[[1148,1148],"mapped",[1149]],[[1149,1149],"valid"],[[1150,1150],"mapped",[1151]],[[1151,1151],"valid"],[[1152,1152],"mapped",[1153]],[[1153,1153],"valid"],[[1154,1154],"valid",[],"NV8"],[[1155,1158],"valid"],[[1159,1159],"valid"],[[1160,1161],"valid",[],"NV8"],[[1162,1162],"mapped",[1163]],[[1163,1163],"valid"],[[1164,1164],"mapped",[1165]],[[1165,1165],"valid"],[[1166,1166],"mapped",[1167]],[[1167,1167],"valid"],[[1168,1168],"mapped",[1169]],[[1169,1169],"valid"],[[1170,1170],"mapped",[1171]],[[1171,1171],"valid"],[[1172,1172],"mapped",[1173]],[[1173,1173],"valid"],[[1174,1174],"mapped",[1175]],[[1175,1175],"valid"],[[1176,1176],"mapped",[1177]],[[1177,1177],"valid"],[[1178,1178],"mapped",[1179]],[[1179,1179],"valid"],[[1180,1180],"mapped",[1181]],[[1181,1181],"valid"],[[1182,1182],"mapped",[1183]],[[1183,1183],"valid"],[[1184,1184],"mapped",[1185]],[[1185,1185],"valid"],[[1186,1186],"mapped",[1187]],[[1187,1187],"valid"],[[1188,1188],"mapped",[1189]],[[1189,1189],"valid"],[[1190,1190],"mapped",[1191]],[[1191,1191],"valid"],[[1192,1192],"mapped",[1193]],[[1193,1193],"valid"],[[1194,1194],"mapped",[1195]],[[1195,1195],"valid"],[[1196,1196],"mapped",[1197]],[[1197,1197],"valid"],[[1198,1198],"mapped",[1199]],[[1199,1199],"valid"],[[1200,1200],"mapped",[1201]],[[1201,1201],"valid"],[[1202,1202],"mapped",[1203]],[[1203,1203],"valid"],[[1204,1204],"mapped",[1205]],[[1205,1205],"valid"],[[1206,1206],"mapped",[1207]],[[1207,1207],"valid"],[[1208,1208],"mapped",[1209]],[[1209,1209],"valid"],[[1210,1210],"mapped",[1211]],[[1211,1211],"valid"],[[1212,1212],"mapped",[1213]],[[1213,1213],"valid"],[[1214,1214],"mapped",[1215]],[[1215,1215],"valid"],[[1216,1216],"disallowed"],[[1217,1217],"mapped",[1218]],[[1218,1218],"valid"],[[1219,1219],"mapped",[1220]],[[1220,1220],"valid"],[[1221,1221],"mapped",[1222]],[[1222,1222],"valid"],[[1223,1223],"mapped",[1224]],[[1224,1224],"valid"],[[1225,1225],"mapped",[1226]],[[1226,1226],"valid"],[[1227,1227],"mapped",[1228]],[[1228,1228],"valid"],[[1229,1229],"mapped",[1230]],[[1230,1230],"valid"],[[1231,1231],"valid"],[[1232,1232],"mapped",[1233]],[[1233,1233],"valid"],[[1234,1234],"mapped",[1235]],[[1235,1235],"valid"],[[1236,1236],"mapped",[1237]],[[1237,1237],"valid"],[[1238,1238],"mapped",[1239]],[[1239,1239],"valid"],[[1240,1240],"mapped",[1241]],[[1241,1241],"valid"],[[1242,1242],"mapped",[1243]],[[1243,1243],"valid"],[[1244,1244],"mapped",[1245]],[[1245,1245],"valid"],[[1246,1246],"mapped",[1247]],[[1247,1247],"valid"],[[1248,1248],"mapped",[1249]],[[1249,1249],"valid"],[[1250,1250],"mapped",[1251]],[[1251,1251],"valid"],[[1252,1252],"mapped",[1253]],[[1253,1253],"valid"],[[1254,1254],"mapped",[1255]],[[1255,1255],"valid"],[[1256,1256],"mapped",[1257]],[[1257,1257],"valid"],[[1258,1258],"mapped",[1259]],[[1259,1259],"valid"],[[1260,1260],"mapped",[1261]],[[1261,1261],"valid"],[[1262,1262],"mapped",[1263]],[[1263,1263],"valid"],[[1264,1264],"mapped",[1265]],[[1265,1265],"valid"],[[1266,1266],"mapped",[1267]],[[1267,1267],"valid"],[[1268,1268],"mapped",[1269]],[[1269,1269],"valid"],[[1270,1270],"mapped",[1271]],[[1271,1271],"valid"],[[1272,1272],"mapped",[1273]],[[1273,1273],"valid"],[[1274,1274],"mapped",[1275]],[[1275,1275],"valid"],[[1276,1276],"mapped",[1277]],[[1277,1277],"valid"],[[1278,1278],"mapped",[1279]],[[1279,1279],"valid"],[[1280,1280],"mapped",[1281]],[[1281,1281],"valid"],[[1282,1282],"mapped",[1283]],[[1283,1283],"valid"],[[1284,1284],"mapped",[1285]],[[1285,1285],"valid"],[[1286,1286],"mapped",[1287]],[[1287,1287],"valid"],[[1288,1288],"mapped",[1289]],[[1289,1289],"valid"],[[1290,1290],"mapped",[1291]],[[1291,1291],"valid"],[[1292,1292],"mapped",[1293]],[[1293,1293],"valid"],[[1294,1294],"mapped",[1295]],[[1295,1295],"valid"],[[1296,1296],"mapped",[1297]],[[1297,1297],"valid"],[[1298,1298],"mapped",[1299]],[[1299,1299],"valid"],[[1300,1300],"mapped",[1301]],[[1301,1301],"valid"],[[1302,1302],"mapped",[1303]],[[1303,1303],"valid"],[[1304,1304],"mapped",[1305]],[[1305,1305],"valid"],[[1306,1306],"mapped",[1307]],[[1307,1307],"valid"],[[1308,1308],"mapped",[1309]],[[1309,1309],"valid"],[[1310,1310],"mapped",[1311]],[[1311,1311],"valid"],[[1312,1312],"mapped",[1313]],[[1313,1313],"valid"],[[1314,1314],"mapped",[1315]],[[1315,1315],"valid"],[[1316,1316],"mapped",[1317]],[[1317,1317],"valid"],[[1318,1318],"mapped",[1319]],[[1319,1319],"valid"],[[1320,1320],"mapped",[1321]],[[1321,1321],"valid"],[[1322,1322],"mapped",[1323]],[[1323,1323],"valid"],[[1324,1324],"mapped",[1325]],[[1325,1325],"valid"],[[1326,1326],"mapped",[1327]],[[1327,1327],"valid"],[[1328,1328],"disallowed"],[[1329,1329],"mapped",[1377]],[[1330,1330],"mapped",[1378]],[[1331,1331],"mapped",[1379]],[[1332,1332],"mapped",[1380]],[[1333,1333],"mapped",[1381]],[[1334,1334],"mapped",[1382]],[[1335,1335],"mapped",[1383]],[[1336,1336],"mapped",[1384]],[[1337,1337],"mapped",[1385]],[[1338,1338],"mapped",[1386]],[[1339,1339],"mapped",[1387]],[[1340,1340],"mapped",[1388]],[[1341,1341],"mapped",[1389]],[[1342,1342],"mapped",[1390]],[[1343,1343],"mapped",[1391]],[[1344,1344],"mapped",[1392]],[[1345,1345],"mapped",[1393]],[[1346,1346],"mapped",[1394]],[[1347,1347],"mapped",[1395]],[[1348,1348],"mapped",[1396]],[[1349,1349],"mapped",[1397]],[[1350,1350],"mapped",[1398]],[[1351,1351],"mapped",[1399]],[[1352,1352],"mapped",[1400]],[[1353,1353],"mapped",[1401]],[[1354,1354],"mapped",[1402]],[[1355,1355],"mapped",[1403]],[[1356,1356],"mapped",[1404]],[[1357,1357],"mapped",[1405]],[[1358,1358],"mapped",[1406]],[[1359,1359],"mapped",[1407]],[[1360,1360],"mapped",[1408]],[[1361,1361],"mapped",[1409]],[[1362,1362],"mapped",[1410]],[[1363,1363],"mapped",[1411]],[[1364,1364],"mapped",[1412]],[[1365,1365],"mapped",[1413]],[[1366,1366],"mapped",[1414]],[[1367,1368],"disallowed"],[[1369,1369],"valid"],[[1370,1375],"valid",[],"NV8"],[[1376,1376],"disallowed"],[[1377,1414],"valid"],[[1415,1415],"mapped",[1381,1410]],[[1416,1416],"disallowed"],[[1417,1417],"valid",[],"NV8"],[[1418,1418],"valid",[],"NV8"],[[1419,1420],"disallowed"],[[1421,1422],"valid",[],"NV8"],[[1423,1423],"valid",[],"NV8"],[[1424,1424],"disallowed"],[[1425,1441],"valid"],[[1442,1442],"valid"],[[1443,1455],"valid"],[[1456,1465],"valid"],[[1466,1466],"valid"],[[1467,1469],"valid"],[[1470,1470],"valid",[],"NV8"],[[1471,1471],"valid"],[[1472,1472],"valid",[],"NV8"],[[1473,1474],"valid"],[[1475,1475],"valid",[],"NV8"],[[1476,1476],"valid"],[[1477,1477],"valid"],[[1478,1478],"valid",[],"NV8"],[[1479,1479],"valid"],[[1480,1487],"disallowed"],[[1488,1514],"valid"],[[1515,1519],"disallowed"],[[1520,1524],"valid"],[[1525,1535],"disallowed"],[[1536,1539],"disallowed"],[[1540,1540],"disallowed"],[[1541,1541],"disallowed"],[[1542,1546],"valid",[],"NV8"],[[1547,1547],"valid",[],"NV8"],[[1548,1548],"valid",[],"NV8"],[[1549,1551],"valid",[],"NV8"],[[1552,1557],"valid"],[[1558,1562],"valid"],[[1563,1563],"valid",[],"NV8"],[[1564,1564],"disallowed"],[[1565,1565],"disallowed"],[[1566,1566],"valid",[],"NV8"],[[1567,1567],"valid",[],"NV8"],[[1568,1568],"valid"],[[1569,1594],"valid"],[[1595,1599],"valid"],[[1600,1600],"valid",[],"NV8"],[[1601,1618],"valid"],[[1619,1621],"valid"],[[1622,1624],"valid"],[[1625,1630],"valid"],[[1631,1631],"valid"],[[1632,1641],"valid"],[[1642,1645],"valid",[],"NV8"],[[1646,1647],"valid"],[[1648,1652],"valid"],[[1653,1653],"mapped",[1575,1652]],[[1654,1654],"mapped",[1608,1652]],[[1655,1655],"mapped",[1735,1652]],[[1656,1656],"mapped",[1610,1652]],[[1657,1719],"valid"],[[1720,1721],"valid"],[[1722,1726],"valid"],[[1727,1727],"valid"],[[1728,1742],"valid"],[[1743,1743],"valid"],[[1744,1747],"valid"],[[1748,1748],"valid",[],"NV8"],[[1749,1756],"valid"],[[1757,1757],"disallowed"],[[1758,1758],"valid",[],"NV8"],[[1759,1768],"valid"],[[1769,1769],"valid",[],"NV8"],[[1770,1773],"valid"],[[1774,1775],"valid"],[[1776,1785],"valid"],[[1786,1790],"valid"],[[1791,1791],"valid"],[[1792,1805],"valid",[],"NV8"],[[1806,1806],"disallowed"],[[1807,1807],"disallowed"],[[1808,1836],"valid"],[[1837,1839],"valid"],[[1840,1866],"valid"],[[1867,1868],"disallowed"],[[1869,1871],"valid"],[[1872,1901],"valid"],[[1902,1919],"valid"],[[1920,1968],"valid"],[[1969,1969],"valid"],[[1970,1983],"disallowed"],[[1984,2037],"valid"],[[2038,2042],"valid",[],"NV8"],[[2043,2047],"disallowed"],[[2048,2093],"valid"],[[2094,2095],"disallowed"],[[2096,2110],"valid",[],"NV8"],[[2111,2111],"disallowed"],[[2112,2139],"valid"],[[2140,2141],"disallowed"],[[2142,2142],"valid",[],"NV8"],[[2143,2207],"disallowed"],[[2208,2208],"valid"],[[2209,2209],"valid"],[[2210,2220],"valid"],[[2221,2226],"valid"],[[2227,2228],"valid"],[[2229,2274],"disallowed"],[[2275,2275],"valid"],[[2276,2302],"valid"],[[2303,2303],"valid"],[[2304,2304],"valid"],[[2305,2307],"valid"],[[2308,2308],"valid"],[[2309,2361],"valid"],[[2362,2363],"valid"],[[2364,2381],"valid"],[[2382,2382],"valid"],[[2383,2383],"valid"],[[2384,2388],"valid"],[[2389,2389],"valid"],[[2390,2391],"valid"],[[2392,2392],"mapped",[2325,2364]],[[2393,2393],"mapped",[2326,2364]],[[2394,2394],"mapped",[2327,2364]],[[2395,2395],"mapped",[2332,2364]],[[2396,2396],"mapped",[2337,2364]],[[2397,2397],"mapped",[2338,2364]],[[2398,2398],"mapped",[2347,2364]],[[2399,2399],"mapped",[2351,2364]],[[2400,2403],"valid"],[[2404,2405],"valid",[],"NV8"],[[2406,2415],"valid"],[[2416,2416],"valid",[],"NV8"],[[2417,2418],"valid"],[[2419,2423],"valid"],[[2424,2424],"valid"],[[2425,2426],"valid"],[[2427,2428],"valid"],[[2429,2429],"valid"],[[2430,2431],"valid"],[[2432,2432],"valid"],[[2433,2435],"valid"],[[2436,2436],"disallowed"],[[2437,2444],"valid"],[[2445,2446],"disallowed"],[[2447,2448],"valid"],[[2449,2450],"disallowed"],[[2451,2472],"valid"],[[2473,2473],"disallowed"],[[2474,2480],"valid"],[[2481,2481],"disallowed"],[[2482,2482],"valid"],[[2483,2485],"disallowed"],[[2486,2489],"valid"],[[2490,2491],"disallowed"],[[2492,2492],"valid"],[[2493,2493],"valid"],[[2494,2500],"valid"],[[2501,2502],"disallowed"],[[2503,2504],"valid"],[[2505,2506],"disallowed"],[[2507,2509],"valid"],[[2510,2510],"valid"],[[2511,2518],"disallowed"],[[2519,2519],"valid"],[[2520,2523],"disallowed"],[[2524,2524],"mapped",[2465,2492]],[[2525,2525],"mapped",[2466,2492]],[[2526,2526],"disallowed"],[[2527,2527],"mapped",[2479,2492]],[[2528,2531],"valid"],[[2532,2533],"disallowed"],[[2534,2545],"valid"],[[2546,2554],"valid",[],"NV8"],[[2555,2555],"valid",[],"NV8"],[[2556,2560],"disallowed"],[[2561,2561],"valid"],[[2562,2562],"valid"],[[2563,2563],"valid"],[[2564,2564],"disallowed"],[[2565,2570],"valid"],[[2571,2574],"disallowed"],[[2575,2576],"valid"],[[2577,2578],"disallowed"],[[2579,2600],"valid"],[[2601,2601],"disallowed"],[[2602,2608],"valid"],[[2609,2609],"disallowed"],[[2610,2610],"valid"],[[2611,2611],"mapped",[2610,2620]],[[2612,2612],"disallowed"],[[2613,2613],"valid"],[[2614,2614],"mapped",[2616,2620]],[[2615,2615],"disallowed"],[[2616,2617],"valid"],[[2618,2619],"disallowed"],[[2620,2620],"valid"],[[2621,2621],"disallowed"],[[2622,2626],"valid"],[[2627,2630],"disallowed"],[[2631,2632],"valid"],[[2633,2634],"disallowed"],[[2635,2637],"valid"],[[2638,2640],"disallowed"],[[2641,2641],"valid"],[[2642,2648],"disallowed"],[[2649,2649],"mapped",[2582,2620]],[[2650,2650],"mapped",[2583,2620]],[[2651,2651],"mapped",[2588,2620]],[[2652,2652],"valid"],[[2653,2653],"disallowed"],[[2654,2654],"mapped",[2603,2620]],[[2655,2661],"disallowed"],[[2662,2676],"valid"],[[2677,2677],"valid"],[[2678,2688],"disallowed"],[[2689,2691],"valid"],[[2692,2692],"disallowed"],[[2693,2699],"valid"],[[2700,2700],"valid"],[[2701,2701],"valid"],[[2702,2702],"disallowed"],[[2703,2705],"valid"],[[2706,2706],"disallowed"],[[2707,2728],"valid"],[[2729,2729],"disallowed"],[[2730,2736],"valid"],[[2737,2737],"disallowed"],[[2738,2739],"valid"],[[2740,2740],"disallowed"],[[2741,2745],"valid"],[[2746,2747],"disallowed"],[[2748,2757],"valid"],[[2758,2758],"disallowed"],[[2759,2761],"valid"],[[2762,2762],"disallowed"],[[2763,2765],"valid"],[[2766,2767],"disallowed"],[[2768,2768],"valid"],[[2769,2783],"disallowed"],[[2784,2784],"valid"],[[2785,2787],"valid"],[[2788,2789],"disallowed"],[[2790,2799],"valid"],[[2800,2800],"valid",[],"NV8"],[[2801,2801],"valid",[],"NV8"],[[2802,2808],"disallowed"],[[2809,2809],"valid"],[[2810,2816],"disallowed"],[[2817,2819],"valid"],[[2820,2820],"disallowed"],[[2821,2828],"valid"],[[2829,2830],"disallowed"],[[2831,2832],"valid"],[[2833,2834],"disallowed"],[[2835,2856],"valid"],[[2857,2857],"disallowed"],[[2858,2864],"valid"],[[2865,2865],"disallowed"],[[2866,2867],"valid"],[[2868,2868],"disallowed"],[[2869,2869],"valid"],[[2870,2873],"valid"],[[2874,2875],"disallowed"],[[2876,2883],"valid"],[[2884,2884],"valid"],[[2885,2886],"disallowed"],[[2887,2888],"valid"],[[2889,2890],"disallowed"],[[2891,2893],"valid"],[[2894,2901],"disallowed"],[[2902,2903],"valid"],[[2904,2907],"disallowed"],[[2908,2908],"mapped",[2849,2876]],[[2909,2909],"mapped",[2850,2876]],[[2910,2910],"disallowed"],[[2911,2913],"valid"],[[2914,2915],"valid"],[[2916,2917],"disallowed"],[[2918,2927],"valid"],[[2928,2928],"valid",[],"NV8"],[[2929,2929],"valid"],[[2930,2935],"valid",[],"NV8"],[[2936,2945],"disallowed"],[[2946,2947],"valid"],[[2948,2948],"disallowed"],[[2949,2954],"valid"],[[2955,2957],"disallowed"],[[2958,2960],"valid"],[[2961,2961],"disallowed"],[[2962,2965],"valid"],[[2966,2968],"disallowed"],[[2969,2970],"valid"],[[2971,2971],"disallowed"],[[2972,2972],"valid"],[[2973,2973],"disallowed"],[[2974,2975],"valid"],[[2976,2978],"disallowed"],[[2979,2980],"valid"],[[2981,2983],"disallowed"],[[2984,2986],"valid"],[[2987,2989],"disallowed"],[[2990,2997],"valid"],[[2998,2998],"valid"],[[2999,3001],"valid"],[[3002,3005],"disallowed"],[[3006,3010],"valid"],[[3011,3013],"disallowed"],[[3014,3016],"valid"],[[3017,3017],"disallowed"],[[3018,3021],"valid"],[[3022,3023],"disallowed"],[[3024,3024],"valid"],[[3025,3030],"disallowed"],[[3031,3031],"valid"],[[3032,3045],"disallowed"],[[3046,3046],"valid"],[[3047,3055],"valid"],[[3056,3058],"valid",[],"NV8"],[[3059,3066],"valid",[],"NV8"],[[3067,3071],"disallowed"],[[3072,3072],"valid"],[[3073,3075],"valid"],[[3076,3076],"disallowed"],[[3077,3084],"valid"],[[3085,3085],"disallowed"],[[3086,3088],"valid"],[[3089,3089],"disallowed"],[[3090,3112],"valid"],[[3113,3113],"disallowed"],[[3114,3123],"valid"],[[3124,3124],"valid"],[[3125,3129],"valid"],[[3130,3132],"disallowed"],[[3133,3133],"valid"],[[3134,3140],"valid"],[[3141,3141],"disallowed"],[[3142,3144],"valid"],[[3145,3145],"disallowed"],[[3146,3149],"valid"],[[3150,3156],"disallowed"],[[3157,3158],"valid"],[[3159,3159],"disallowed"],[[3160,3161],"valid"],[[3162,3162],"valid"],[[3163,3167],"disallowed"],[[3168,3169],"valid"],[[3170,3171],"valid"],[[3172,3173],"disallowed"],[[3174,3183],"valid"],[[3184,3191],"disallowed"],[[3192,3199],"valid",[],"NV8"],[[3200,3200],"disallowed"],[[3201,3201],"valid"],[[3202,3203],"valid"],[[3204,3204],"disallowed"],[[3205,3212],"valid"],[[3213,3213],"disallowed"],[[3214,3216],"valid"],[[3217,3217],"disallowed"],[[3218,3240],"valid"],[[3241,3241],"disallowed"],[[3242,3251],"valid"],[[3252,3252],"disallowed"],[[3253,3257],"valid"],[[3258,3259],"disallowed"],[[3260,3261],"valid"],[[3262,3268],"valid"],[[3269,3269],"disallowed"],[[3270,3272],"valid"],[[3273,3273],"disallowed"],[[3274,3277],"valid"],[[3278,3284],"disallowed"],[[3285,3286],"valid"],[[3287,3293],"disallowed"],[[3294,3294],"valid"],[[3295,3295],"disallowed"],[[3296,3297],"valid"],[[3298,3299],"valid"],[[3300,3301],"disallowed"],[[3302,3311],"valid"],[[3312,3312],"disallowed"],[[3313,3314],"valid"],[[3315,3328],"disallowed"],[[3329,3329],"valid"],[[3330,3331],"valid"],[[3332,3332],"disallowed"],[[3333,3340],"valid"],[[3341,3341],"disallowed"],[[3342,3344],"valid"],[[3345,3345],"disallowed"],[[3346,3368],"valid"],[[3369,3369],"valid"],[[3370,3385],"valid"],[[3386,3386],"valid"],[[3387,3388],"disallowed"],[[3389,3389],"valid"],[[3390,3395],"valid"],[[3396,3396],"valid"],[[3397,3397],"disallowed"],[[3398,3400],"valid"],[[3401,3401],"disallowed"],[[3402,3405],"valid"],[[3406,3406],"valid"],[[3407,3414],"disallowed"],[[3415,3415],"valid"],[[3416,3422],"disallowed"],[[3423,3423],"valid"],[[3424,3425],"valid"],[[3426,3427],"valid"],[[3428,3429],"disallowed"],[[3430,3439],"valid"],[[3440,3445],"valid",[],"NV8"],[[3446,3448],"disallowed"],[[3449,3449],"valid",[],"NV8"],[[3450,3455],"valid"],[[3456,3457],"disallowed"],[[3458,3459],"valid"],[[3460,3460],"disallowed"],[[3461,3478],"valid"],[[3479,3481],"disallowed"],[[3482,3505],"valid"],[[3506,3506],"disallowed"],[[3507,3515],"valid"],[[3516,3516],"disallowed"],[[3517,3517],"valid"],[[3518,3519],"disallowed"],[[3520,3526],"valid"],[[3527,3529],"disallowed"],[[3530,3530],"valid"],[[3531,3534],"disallowed"],[[3535,3540],"valid"],[[3541,3541],"disallowed"],[[3542,3542],"valid"],[[3543,3543],"disallowed"],[[3544,3551],"valid"],[[3552,3557],"disallowed"],[[3558,3567],"valid"],[[3568,3569],"disallowed"],[[3570,3571],"valid"],[[3572,3572],"valid",[],"NV8"],[[3573,3584],"disallowed"],[[3585,3634],"valid"],[[3635,3635],"mapped",[3661,3634]],[[3636,3642],"valid"],[[3643,3646],"disallowed"],[[3647,3647],"valid",[],"NV8"],[[3648,3662],"valid"],[[3663,3663],"valid",[],"NV8"],[[3664,3673],"valid"],[[3674,3675],"valid",[],"NV8"],[[3676,3712],"disallowed"],[[3713,3714],"valid"],[[3715,3715],"disallowed"],[[3716,3716],"valid"],[[3717,3718],"disallowed"],[[3719,3720],"valid"],[[3721,3721],"disallowed"],[[3722,3722],"valid"],[[3723,3724],"disallowed"],[[3725,3725],"valid"],[[3726,3731],"disallowed"],[[3732,3735],"valid"],[[3736,3736],"disallowed"],[[3737,3743],"valid"],[[3744,3744],"disallowed"],[[3745,3747],"valid"],[[3748,3748],"disallowed"],[[3749,3749],"valid"],[[3750,3750],"disallowed"],[[3751,3751],"valid"],[[3752,3753],"disallowed"],[[3754,3755],"valid"],[[3756,3756],"disallowed"],[[3757,3762],"valid"],[[3763,3763],"mapped",[3789,3762]],[[3764,3769],"valid"],[[3770,3770],"disallowed"],[[3771,3773],"valid"],[[3774,3775],"disallowed"],[[3776,3780],"valid"],[[3781,3781],"disallowed"],[[3782,3782],"valid"],[[3783,3783],"disallowed"],[[3784,3789],"valid"],[[3790,3791],"disallowed"],[[3792,3801],"valid"],[[3802,3803],"disallowed"],[[3804,3804],"mapped",[3755,3737]],[[3805,3805],"mapped",[3755,3745]],[[3806,3807],"valid"],[[3808,3839],"disallowed"],[[3840,3840],"valid"],[[3841,3850],"valid",[],"NV8"],[[3851,3851],"valid"],[[3852,3852],"mapped",[3851]],[[3853,3863],"valid",[],"NV8"],[[3864,3865],"valid"],[[3866,3871],"valid",[],"NV8"],[[3872,3881],"valid"],[[3882,3892],"valid",[],"NV8"],[[3893,3893],"valid"],[[3894,3894],"valid",[],"NV8"],[[3895,3895],"valid"],[[3896,3896],"valid",[],"NV8"],[[3897,3897],"valid"],[[3898,3901],"valid",[],"NV8"],[[3902,3906],"valid"],[[3907,3907],"mapped",[3906,4023]],[[3908,3911],"valid"],[[3912,3912],"disallowed"],[[3913,3916],"valid"],[[3917,3917],"mapped",[3916,4023]],[[3918,3921],"valid"],[[3922,3922],"mapped",[3921,4023]],[[3923,3926],"valid"],[[3927,3927],"mapped",[3926,4023]],[[3928,3931],"valid"],[[3932,3932],"mapped",[3931,4023]],[[3933,3944],"valid"],[[3945,3945],"mapped",[3904,4021]],[[3946,3946],"valid"],[[3947,3948],"valid"],[[3949,3952],"disallowed"],[[3953,3954],"valid"],[[3955,3955],"mapped",[3953,3954]],[[3956,3956],"valid"],[[3957,3957],"mapped",[3953,3956]],[[3958,3958],"mapped",[4018,3968]],[[3959,3959],"mapped",[4018,3953,3968]],[[3960,3960],"mapped",[4019,3968]],[[3961,3961],"mapped",[4019,3953,3968]],[[3962,3968],"valid"],[[3969,3969],"mapped",[3953,3968]],[[3970,3972],"valid"],[[3973,3973],"valid",[],"NV8"],[[3974,3979],"valid"],[[3980,3983],"valid"],[[3984,3986],"valid"],[[3987,3987],"mapped",[3986,4023]],[[3988,3989],"valid"],[[3990,3990],"valid"],[[3991,3991],"valid"],[[3992,3992],"disallowed"],[[3993,3996],"valid"],[[3997,3997],"mapped",[3996,4023]],[[3998,4001],"valid"],[[4002,4002],"mapped",[4001,4023]],[[4003,4006],"valid"],[[4007,4007],"mapped",[4006,4023]],[[4008,4011],"valid"],[[4012,4012],"mapped",[4011,4023]],[[4013,4013],"valid"],[[4014,4016],"valid"],[[4017,4023],"valid"],[[4024,4024],"valid"],[[4025,4025],"mapped",[3984,4021]],[[4026,4028],"valid"],[[4029,4029],"disallowed"],[[4030,4037],"valid",[],"NV8"],[[4038,4038],"valid"],[[4039,4044],"valid",[],"NV8"],[[4045,4045],"disallowed"],[[4046,4046],"valid",[],"NV8"],[[4047,4047],"valid",[],"NV8"],[[4048,4049],"valid",[],"NV8"],[[4050,4052],"valid",[],"NV8"],[[4053,4056],"valid",[],"NV8"],[[4057,4058],"valid",[],"NV8"],[[4059,4095],"disallowed"],[[4096,4129],"valid"],[[4130,4130],"valid"],[[4131,4135],"valid"],[[4136,4136],"valid"],[[4137,4138],"valid"],[[4139,4139],"valid"],[[4140,4146],"valid"],[[4147,4149],"valid"],[[4150,4153],"valid"],[[4154,4159],"valid"],[[4160,4169],"valid"],[[4170,4175],"valid",[],"NV8"],[[4176,4185],"valid"],[[4186,4249],"valid"],[[4250,4253],"valid"],[[4254,4255],"valid",[],"NV8"],[[4256,4293],"disallowed"],[[4294,4294],"disallowed"],[[4295,4295],"mapped",[11559]],[[4296,4300],"disallowed"],[[4301,4301],"mapped",[11565]],[[4302,4303],"disallowed"],[[4304,4342],"valid"],[[4343,4344],"valid"],[[4345,4346],"valid"],[[4347,4347],"valid",[],"NV8"],[[4348,4348],"mapped",[4316]],[[4349,4351],"valid"],[[4352,4441],"valid",[],"NV8"],[[4442,4446],"valid",[],"NV8"],[[4447,4448],"disallowed"],[[4449,4514],"valid",[],"NV8"],[[4515,4519],"valid",[],"NV8"],[[4520,4601],"valid",[],"NV8"],[[4602,4607],"valid",[],"NV8"],[[4608,4614],"valid"],[[4615,4615],"valid"],[[4616,4678],"valid"],[[4679,4679],"valid"],[[4680,4680],"valid"],[[4681,4681],"disallowed"],[[4682,4685],"valid"],[[4686,4687],"disallowed"],[[4688,4694],"valid"],[[4695,4695],"disallowed"],[[4696,4696],"valid"],[[4697,4697],"disallowed"],[[4698,4701],"valid"],[[4702,4703],"disallowed"],[[4704,4742],"valid"],[[4743,4743],"valid"],[[4744,4744],"valid"],[[4745,4745],"disallowed"],[[4746,4749],"valid"],[[4750,4751],"disallowed"],[[4752,4782],"valid"],[[4783,4783],"valid"],[[4784,4784],"valid"],[[4785,4785],"disallowed"],[[4786,4789],"valid"],[[4790,4791],"disallowed"],[[4792,4798],"valid"],[[4799,4799],"disallowed"],[[4800,4800],"valid"],[[4801,4801],"disallowed"],[[4802,4805],"valid"],[[4806,4807],"disallowed"],[[4808,4814],"valid"],[[4815,4815],"valid"],[[4816,4822],"valid"],[[4823,4823],"disallowed"],[[4824,4846],"valid"],[[4847,4847],"valid"],[[4848,4878],"valid"],[[4879,4879],"valid"],[[4880,4880],"valid"],[[4881,4881],"disallowed"],[[4882,4885],"valid"],[[4886,4887],"disallowed"],[[4888,4894],"valid"],[[4895,4895],"valid"],[[4896,4934],"valid"],[[4935,4935],"valid"],[[4936,4954],"valid"],[[4955,4956],"disallowed"],[[4957,4958],"valid"],[[4959,4959],"valid"],[[4960,4960],"valid",[],"NV8"],[[4961,4988],"valid",[],"NV8"],[[4989,4991],"disallowed"],[[4992,5007],"valid"],[[5008,5017],"valid",[],"NV8"],[[5018,5023],"disallowed"],[[5024,5108],"valid"],[[5109,5109],"valid"],[[5110,5111],"disallowed"],[[5112,5112],"mapped",[5104]],[[5113,5113],"mapped",[5105]],[[5114,5114],"mapped",[5106]],[[5115,5115],"mapped",[5107]],[[5116,5116],"mapped",[5108]],[[5117,5117],"mapped",[5109]],[[5118,5119],"disallowed"],[[5120,5120],"valid",[],"NV8"],[[5121,5740],"valid"],[[5741,5742],"valid",[],"NV8"],[[5743,5750],"valid"],[[5751,5759],"valid"],[[5760,5760],"disallowed"],[[5761,5786],"valid"],[[5787,5788],"valid",[],"NV8"],[[5789,5791],"disallowed"],[[5792,5866],"valid"],[[5867,5872],"valid",[],"NV8"],[[5873,5880],"valid"],[[5881,5887],"disallowed"],[[5888,5900],"valid"],[[5901,5901],"disallowed"],[[5902,5908],"valid"],[[5909,5919],"disallowed"],[[5920,5940],"valid"],[[5941,5942],"valid",[],"NV8"],[[5943,5951],"disallowed"],[[5952,5971],"valid"],[[5972,5983],"disallowed"],[[5984,5996],"valid"],[[5997,5997],"disallowed"],[[5998,6e3],"valid"],[[6001,6001],"disallowed"],[[6002,6003],"valid"],[[6004,6015],"disallowed"],[[6016,6067],"valid"],[[6068,6069],"disallowed"],[[6070,6099],"valid"],[[6100,6102],"valid",[],"NV8"],[[6103,6103],"valid"],[[6104,6107],"valid",[],"NV8"],[[6108,6108],"valid"],[[6109,6109],"valid"],[[6110,6111],"disallowed"],[[6112,6121],"valid"],[[6122,6127],"disallowed"],[[6128,6137],"valid",[],"NV8"],[[6138,6143],"disallowed"],[[6144,6149],"valid",[],"NV8"],[[6150,6150],"disallowed"],[[6151,6154],"valid",[],"NV8"],[[6155,6157],"ignored"],[[6158,6158],"disallowed"],[[6159,6159],"disallowed"],[[6160,6169],"valid"],[[6170,6175],"disallowed"],[[6176,6263],"valid"],[[6264,6271],"disallowed"],[[6272,6313],"valid"],[[6314,6314],"valid"],[[6315,6319],"disallowed"],[[6320,6389],"valid"],[[6390,6399],"disallowed"],[[6400,6428],"valid"],[[6429,6430],"valid"],[[6431,6431],"disallowed"],[[6432,6443],"valid"],[[6444,6447],"disallowed"],[[6448,6459],"valid"],[[6460,6463],"disallowed"],[[6464,6464],"valid",[],"NV8"],[[6465,6467],"disallowed"],[[6468,6469],"valid",[],"NV8"],[[6470,6509],"valid"],[[6510,6511],"disallowed"],[[6512,6516],"valid"],[[6517,6527],"disallowed"],[[6528,6569],"valid"],[[6570,6571],"valid"],[[6572,6575],"disallowed"],[[6576,6601],"valid"],[[6602,6607],"disallowed"],[[6608,6617],"valid"],[[6618,6618],"valid",[],"XV8"],[[6619,6621],"disallowed"],[[6622,6623],"valid",[],"NV8"],[[6624,6655],"valid",[],"NV8"],[[6656,6683],"valid"],[[6684,6685],"disallowed"],[[6686,6687],"valid",[],"NV8"],[[6688,6750],"valid"],[[6751,6751],"disallowed"],[[6752,6780],"valid"],[[6781,6782],"disallowed"],[[6783,6793],"valid"],[[6794,6799],"disallowed"],[[6800,6809],"valid"],[[6810,6815],"disallowed"],[[6816,6822],"valid",[],"NV8"],[[6823,6823],"valid"],[[6824,6829],"valid",[],"NV8"],[[6830,6831],"disallowed"],[[6832,6845],"valid"],[[6846,6846],"valid",[],"NV8"],[[6847,6911],"disallowed"],[[6912,6987],"valid"],[[6988,6991],"disallowed"],[[6992,7001],"valid"],[[7002,7018],"valid",[],"NV8"],[[7019,7027],"valid"],[[7028,7036],"valid",[],"NV8"],[[7037,7039],"disallowed"],[[7040,7082],"valid"],[[7083,7085],"valid"],[[7086,7097],"valid"],[[7098,7103],"valid"],[[7104,7155],"valid"],[[7156,7163],"disallowed"],[[7164,7167],"valid",[],"NV8"],[[7168,7223],"valid"],[[7224,7226],"disallowed"],[[7227,7231],"valid",[],"NV8"],[[7232,7241],"valid"],[[7242,7244],"disallowed"],[[7245,7293],"valid"],[[7294,7295],"valid",[],"NV8"],[[7296,7359],"disallowed"],[[7360,7367],"valid",[],"NV8"],[[7368,7375],"disallowed"],[[7376,7378],"valid"],[[7379,7379],"valid",[],"NV8"],[[7380,7410],"valid"],[[7411,7414],"valid"],[[7415,7415],"disallowed"],[[7416,7417],"valid"],[[7418,7423],"disallowed"],[[7424,7467],"valid"],[[7468,7468],"mapped",[97]],[[7469,7469],"mapped",[230]],[[7470,7470],"mapped",[98]],[[7471,7471],"valid"],[[7472,7472],"mapped",[100]],[[7473,7473],"mapped",[101]],[[7474,7474],"mapped",[477]],[[7475,7475],"mapped",[103]],[[7476,7476],"mapped",[104]],[[7477,7477],"mapped",[105]],[[7478,7478],"mapped",[106]],[[7479,7479],"mapped",[107]],[[7480,7480],"mapped",[108]],[[7481,7481],"mapped",[109]],[[7482,7482],"mapped",[110]],[[7483,7483],"valid"],[[7484,7484],"mapped",[111]],[[7485,7485],"mapped",[547]],[[7486,7486],"mapped",[112]],[[7487,7487],"mapped",[114]],[[7488,7488],"mapped",[116]],[[7489,7489],"mapped",[117]],[[7490,7490],"mapped",[119]],[[7491,7491],"mapped",[97]],[[7492,7492],"mapped",[592]],[[7493,7493],"mapped",[593]],[[7494,7494],"mapped",[7426]],[[7495,7495],"mapped",[98]],[[7496,7496],"mapped",[100]],[[7497,7497],"mapped",[101]],[[7498,7498],"mapped",[601]],[[7499,7499],"mapped",[603]],[[7500,7500],"mapped",[604]],[[7501,7501],"mapped",[103]],[[7502,7502],"valid"],[[7503,7503],"mapped",[107]],[[7504,7504],"mapped",[109]],[[7505,7505],"mapped",[331]],[[7506,7506],"mapped",[111]],[[7507,7507],"mapped",[596]],[[7508,7508],"mapped",[7446]],[[7509,7509],"mapped",[7447]],[[7510,7510],"mapped",[112]],[[7511,7511],"mapped",[116]],[[7512,7512],"mapped",[117]],[[7513,7513],"mapped",[7453]],[[7514,7514],"mapped",[623]],[[7515,7515],"mapped",[118]],[[7516,7516],"mapped",[7461]],[[7517,7517],"mapped",[946]],[[7518,7518],"mapped",[947]],[[7519,7519],"mapped",[948]],[[7520,7520],"mapped",[966]],[[7521,7521],"mapped",[967]],[[7522,7522],"mapped",[105]],[[7523,7523],"mapped",[114]],[[7524,7524],"mapped",[117]],[[7525,7525],"mapped",[118]],[[7526,7526],"mapped",[946]],[[7527,7527],"mapped",[947]],[[7528,7528],"mapped",[961]],[[7529,7529],"mapped",[966]],[[7530,7530],"mapped",[967]],[[7531,7531],"valid"],[[7532,7543],"valid"],[[7544,7544],"mapped",[1085]],[[7545,7578],"valid"],[[7579,7579],"mapped",[594]],[[7580,7580],"mapped",[99]],[[7581,7581],"mapped",[597]],[[7582,7582],"mapped",[240]],[[7583,7583],"mapped",[604]],[[7584,7584],"mapped",[102]],[[7585,7585],"mapped",[607]],[[7586,7586],"mapped",[609]],[[7587,7587],"mapped",[613]],[[7588,7588],"mapped",[616]],[[7589,7589],"mapped",[617]],[[7590,7590],"mapped",[618]],[[7591,7591],"mapped",[7547]],[[7592,7592],"mapped",[669]],[[7593,7593],"mapped",[621]],[[7594,7594],"mapped",[7557]],[[7595,7595],"mapped",[671]],[[7596,7596],"mapped",[625]],[[7597,7597],"mapped",[624]],[[7598,7598],"mapped",[626]],[[7599,7599],"mapped",[627]],[[7600,7600],"mapped",[628]],[[7601,7601],"mapped",[629]],[[7602,7602],"mapped",[632]],[[7603,7603],"mapped",[642]],[[7604,7604],"mapped",[643]],[[7605,7605],"mapped",[427]],[[7606,7606],"mapped",[649]],[[7607,7607],"mapped",[650]],[[7608,7608],"mapped",[7452]],[[7609,7609],"mapped",[651]],[[7610,7610],"mapped",[652]],[[7611,7611],"mapped",[122]],[[7612,7612],"mapped",[656]],[[7613,7613],"mapped",[657]],[[7614,7614],"mapped",[658]],[[7615,7615],"mapped",[952]],[[7616,7619],"valid"],[[7620,7626],"valid"],[[7627,7654],"valid"],[[7655,7669],"valid"],[[7670,7675],"disallowed"],[[7676,7676],"valid"],[[7677,7677],"valid"],[[7678,7679],"valid"],[[7680,7680],"mapped",[7681]],[[7681,7681],"valid"],[[7682,7682],"mapped",[7683]],[[7683,7683],"valid"],[[7684,7684],"mapped",[7685]],[[7685,7685],"valid"],[[7686,7686],"mapped",[7687]],[[7687,7687],"valid"],[[7688,7688],"mapped",[7689]],[[7689,7689],"valid"],[[7690,7690],"mapped",[7691]],[[7691,7691],"valid"],[[7692,7692],"mapped",[7693]],[[7693,7693],"valid"],[[7694,7694],"mapped",[7695]],[[7695,7695],"valid"],[[7696,7696],"mapped",[7697]],[[7697,7697],"valid"],[[7698,7698],"mapped",[7699]],[[7699,7699],"valid"],[[7700,7700],"mapped",[7701]],[[7701,7701],"valid"],[[7702,7702],"mapped",[7703]],[[7703,7703],"valid"],[[7704,7704],"mapped",[7705]],[[7705,7705],"valid"],[[7706,7706],"mapped",[7707]],[[7707,7707],"valid"],[[7708,7708],"mapped",[7709]],[[7709,7709],"valid"],[[7710,7710],"mapped",[7711]],[[7711,7711],"valid"],[[7712,7712],"mapped",[7713]],[[7713,7713],"valid"],[[7714,7714],"mapped",[7715]],[[7715,7715],"valid"],[[7716,7716],"mapped",[7717]],[[7717,7717],"valid"],[[7718,7718],"mapped",[7719]],[[7719,7719],"valid"],[[7720,7720],"mapped",[7721]],[[7721,7721],"valid"],[[7722,7722],"mapped",[7723]],[[7723,7723],"valid"],[[7724,7724],"mapped",[7725]],[[7725,7725],"valid"],[[7726,7726],"mapped",[7727]],[[7727,7727],"valid"],[[7728,7728],"mapped",[7729]],[[7729,7729],"valid"],[[7730,7730],"mapped",[7731]],[[7731,7731],"valid"],[[7732,7732],"mapped",[7733]],[[7733,7733],"valid"],[[7734,7734],"mapped",[7735]],[[7735,7735],"valid"],[[7736,7736],"mapped",[7737]],[[7737,7737],"valid"],[[7738,7738],"mapped",[7739]],[[7739,7739],"valid"],[[7740,7740],"mapped",[7741]],[[7741,7741],"valid"],[[7742,7742],"mapped",[7743]],[[7743,7743],"valid"],[[7744,7744],"mapped",[7745]],[[7745,7745],"valid"],[[7746,7746],"mapped",[7747]],[[7747,7747],"valid"],[[7748,7748],"mapped",[7749]],[[7749,7749],"valid"],[[7750,7750],"mapped",[7751]],[[7751,7751],"valid"],[[7752,7752],"mapped",[7753]],[[7753,7753],"valid"],[[7754,7754],"mapped",[7755]],[[7755,7755],"valid"],[[7756,7756],"mapped",[7757]],[[7757,7757],"valid"],[[7758,7758],"mapped",[7759]],[[7759,7759],"valid"],[[7760,7760],"mapped",[7761]],[[7761,7761],"valid"],[[7762,7762],"mapped",[7763]],[[7763,7763],"valid"],[[7764,7764],"mapped",[7765]],[[7765,7765],"valid"],[[7766,7766],"mapped",[7767]],[[7767,7767],"valid"],[[7768,7768],"mapped",[7769]],[[7769,7769],"valid"],[[7770,7770],"mapped",[7771]],[[7771,7771],"valid"],[[7772,7772],"mapped",[7773]],[[7773,7773],"valid"],[[7774,7774],"mapped",[7775]],[[7775,7775],"valid"],[[7776,7776],"mapped",[7777]],[[7777,7777],"valid"],[[7778,7778],"mapped",[7779]],[[7779,7779],"valid"],[[7780,7780],"mapped",[7781]],[[7781,7781],"valid"],[[7782,7782],"mapped",[7783]],[[7783,7783],"valid"],[[7784,7784],"mapped",[7785]],[[7785,7785],"valid"],[[7786,7786],"mapped",[7787]],[[7787,7787],"valid"],[[7788,7788],"mapped",[7789]],[[7789,7789],"valid"],[[7790,7790],"mapped",[7791]],[[7791,7791],"valid"],[[7792,7792],"mapped",[7793]],[[7793,7793],"valid"],[[7794,7794],"mapped",[7795]],[[7795,7795],"valid"],[[7796,7796],"mapped",[7797]],[[7797,7797],"valid"],[[7798,7798],"mapped",[7799]],[[7799,7799],"valid"],[[7800,7800],"mapped",[7801]],[[7801,7801],"valid"],[[7802,7802],"mapped",[7803]],[[7803,7803],"valid"],[[7804,7804],"mapped",[7805]],[[7805,7805],"valid"],[[7806,7806],"mapped",[7807]],[[7807,7807],"valid"],[[7808,7808],"mapped",[7809]],[[7809,7809],"valid"],[[7810,7810],"mapped",[7811]],[[7811,7811],"valid"],[[7812,7812],"mapped",[7813]],[[7813,7813],"valid"],[[7814,7814],"mapped",[7815]],[[7815,7815],"valid"],[[7816,7816],"mapped",[7817]],[[7817,7817],"valid"],[[7818,7818],"mapped",[7819]],[[7819,7819],"valid"],[[7820,7820],"mapped",[7821]],[[7821,7821],"valid"],[[7822,7822],"mapped",[7823]],[[7823,7823],"valid"],[[7824,7824],"mapped",[7825]],[[7825,7825],"valid"],[[7826,7826],"mapped",[7827]],[[7827,7827],"valid"],[[7828,7828],"mapped",[7829]],[[7829,7833],"valid"],[[7834,7834],"mapped",[97,702]],[[7835,7835],"mapped",[7777]],[[7836,7837],"valid"],[[7838,7838],"mapped",[115,115]],[[7839,7839],"valid"],[[7840,7840],"mapped",[7841]],[[7841,7841],"valid"],[[7842,7842],"mapped",[7843]],[[7843,7843],"valid"],[[7844,7844],"mapped",[7845]],[[7845,7845],"valid"],[[7846,7846],"mapped",[7847]],[[7847,7847],"valid"],[[7848,7848],"mapped",[7849]],[[7849,7849],"valid"],[[7850,7850],"mapped",[7851]],[[7851,7851],"valid"],[[7852,7852],"mapped",[7853]],[[7853,7853],"valid"],[[7854,7854],"mapped",[7855]],[[7855,7855],"valid"],[[7856,7856],"mapped",[7857]],[[7857,7857],"valid"],[[7858,7858],"mapped",[7859]],[[7859,7859],"valid"],[[7860,7860],"mapped",[7861]],[[7861,7861],"valid"],[[7862,7862],"mapped",[7863]],[[7863,7863],"valid"],[[7864,7864],"mapped",[7865]],[[7865,7865],"valid"],[[7866,7866],"mapped",[7867]],[[7867,7867],"valid"],[[7868,7868],"mapped",[7869]],[[7869,7869],"valid"],[[7870,7870],"mapped",[7871]],[[7871,7871],"valid"],[[7872,7872],"mapped",[7873]],[[7873,7873],"valid"],[[7874,7874],"mapped",[7875]],[[7875,7875],"valid"],[[7876,7876],"mapped",[7877]],[[7877,7877],"valid"],[[7878,7878],"mapped",[7879]],[[7879,7879],"valid"],[[7880,7880],"mapped",[7881]],[[7881,7881],"valid"],[[7882,7882],"mapped",[7883]],[[7883,7883],"valid"],[[7884,7884],"mapped",[7885]],[[7885,7885],"valid"],[[7886,7886],"mapped",[7887]],[[7887,7887],"valid"],[[7888,7888],"mapped",[7889]],[[7889,7889],"valid"],[[7890,7890],"mapped",[7891]],[[7891,7891],"valid"],[[7892,7892],"mapped",[7893]],[[7893,7893],"valid"],[[7894,7894],"mapped",[7895]],[[7895,7895],"valid"],[[7896,7896],"mapped",[7897]],[[7897,7897],"valid"],[[7898,7898],"mapped",[7899]],[[7899,7899],"valid"],[[7900,7900],"mapped",[7901]],[[7901,7901],"valid"],[[7902,7902],"mapped",[7903]],[[7903,7903],"valid"],[[7904,7904],"mapped",[7905]],[[7905,7905],"valid"],[[7906,7906],"mapped",[7907]],[[7907,7907],"valid"],[[7908,7908],"mapped",[7909]],[[7909,7909],"valid"],[[7910,7910],"mapped",[7911]],[[7911,7911],"valid"],[[7912,7912],"mapped",[7913]],[[7913,7913],"valid"],[[7914,7914],"mapped",[7915]],[[7915,7915],"valid"],[[7916,7916],"mapped",[7917]],[[7917,7917],"valid"],[[7918,7918],"mapped",[7919]],[[7919,7919],"valid"],[[7920,7920],"mapped",[7921]],[[7921,7921],"valid"],[[7922,7922],"mapped",[7923]],[[7923,7923],"valid"],[[7924,7924],"mapped",[7925]],[[7925,7925],"valid"],[[7926,7926],"mapped",[7927]],[[7927,7927],"valid"],[[7928,7928],"mapped",[7929]],[[7929,7929],"valid"],[[7930,7930],"mapped",[7931]],[[7931,7931],"valid"],[[7932,7932],"mapped",[7933]],[[7933,7933],"valid"],[[7934,7934],"mapped",[7935]],[[7935,7935],"valid"],[[7936,7943],"valid"],[[7944,7944],"mapped",[7936]],[[7945,7945],"mapped",[7937]],[[7946,7946],"mapped",[7938]],[[7947,7947],"mapped",[7939]],[[7948,7948],"mapped",[7940]],[[7949,7949],"mapped",[7941]],[[7950,7950],"mapped",[7942]],[[7951,7951],"mapped",[7943]],[[7952,7957],"valid"],[[7958,7959],"disallowed"],[[7960,7960],"mapped",[7952]],[[7961,7961],"mapped",[7953]],[[7962,7962],"mapped",[7954]],[[7963,7963],"mapped",[7955]],[[7964,7964],"mapped",[7956]],[[7965,7965],"mapped",[7957]],[[7966,7967],"disallowed"],[[7968,7975],"valid"],[[7976,7976],"mapped",[7968]],[[7977,7977],"mapped",[7969]],[[7978,7978],"mapped",[7970]],[[7979,7979],"mapped",[7971]],[[7980,7980],"mapped",[7972]],[[7981,7981],"mapped",[7973]],[[7982,7982],"mapped",[7974]],[[7983,7983],"mapped",[7975]],[[7984,7991],"valid"],[[7992,7992],"mapped",[7984]],[[7993,7993],"mapped",[7985]],[[7994,7994],"mapped",[7986]],[[7995,7995],"mapped",[7987]],[[7996,7996],"mapped",[7988]],[[7997,7997],"mapped",[7989]],[[7998,7998],"mapped",[7990]],[[7999,7999],"mapped",[7991]],[[8e3,8005],"valid"],[[8006,8007],"disallowed"],[[8008,8008],"mapped",[8e3]],[[8009,8009],"mapped",[8001]],[[8010,8010],"mapped",[8002]],[[8011,8011],"mapped",[8003]],[[8012,8012],"mapped",[8004]],[[8013,8013],"mapped",[8005]],[[8014,8015],"disallowed"],[[8016,8023],"valid"],[[8024,8024],"disallowed"],[[8025,8025],"mapped",[8017]],[[8026,8026],"disallowed"],[[8027,8027],"mapped",[8019]],[[8028,8028],"disallowed"],[[8029,8029],"mapped",[8021]],[[8030,8030],"disallowed"],[[8031,8031],"mapped",[8023]],[[8032,8039],"valid"],[[8040,8040],"mapped",[8032]],[[8041,8041],"mapped",[8033]],[[8042,8042],"mapped",[8034]],[[8043,8043],"mapped",[8035]],[[8044,8044],"mapped",[8036]],[[8045,8045],"mapped",[8037]],[[8046,8046],"mapped",[8038]],[[8047,8047],"mapped",[8039]],[[8048,8048],"valid"],[[8049,8049],"mapped",[940]],[[8050,8050],"valid"],[[8051,8051],"mapped",[941]],[[8052,8052],"valid"],[[8053,8053],"mapped",[942]],[[8054,8054],"valid"],[[8055,8055],"mapped",[943]],[[8056,8056],"valid"],[[8057,8057],"mapped",[972]],[[8058,8058],"valid"],[[8059,8059],"mapped",[973]],[[8060,8060],"valid"],[[8061,8061],"mapped",[974]],[[8062,8063],"disallowed"],[[8064,8064],"mapped",[7936,953]],[[8065,8065],"mapped",[7937,953]],[[8066,8066],"mapped",[7938,953]],[[8067,8067],"mapped",[7939,953]],[[8068,8068],"mapped",[7940,953]],[[8069,8069],"mapped",[7941,953]],[[8070,8070],"mapped",[7942,953]],[[8071,8071],"mapped",[7943,953]],[[8072,8072],"mapped",[7936,953]],[[8073,8073],"mapped",[7937,953]],[[8074,8074],"mapped",[7938,953]],[[8075,8075],"mapped",[7939,953]],[[8076,8076],"mapped",[7940,953]],[[8077,8077],"mapped",[7941,953]],[[8078,8078],"mapped",[7942,953]],[[8079,8079],"mapped",[7943,953]],[[8080,8080],"mapped",[7968,953]],[[8081,8081],"mapped",[7969,953]],[[8082,8082],"mapped",[7970,953]],[[8083,8083],"mapped",[7971,953]],[[8084,8084],"mapped",[7972,953]],[[8085,8085],"mapped",[7973,953]],[[8086,8086],"mapped",[7974,953]],[[8087,8087],"mapped",[7975,953]],[[8088,8088],"mapped",[7968,953]],[[8089,8089],"mapped",[7969,953]],[[8090,8090],"mapped",[7970,953]],[[8091,8091],"mapped",[7971,953]],[[8092,8092],"mapped",[7972,953]],[[8093,8093],"mapped",[7973,953]],[[8094,8094],"mapped",[7974,953]],[[8095,8095],"mapped",[7975,953]],[[8096,8096],"mapped",[8032,953]],[[8097,8097],"mapped",[8033,953]],[[8098,8098],"mapped",[8034,953]],[[8099,8099],"mapped",[8035,953]],[[8100,8100],"mapped",[8036,953]],[[8101,8101],"mapped",[8037,953]],[[8102,8102],"mapped",[8038,953]],[[8103,8103],"mapped",[8039,953]],[[8104,8104],"mapped",[8032,953]],[[8105,8105],"mapped",[8033,953]],[[8106,8106],"mapped",[8034,953]],[[8107,8107],"mapped",[8035,953]],[[8108,8108],"mapped",[8036,953]],[[8109,8109],"mapped",[8037,953]],[[8110,8110],"mapped",[8038,953]],[[8111,8111],"mapped",[8039,953]],[[8112,8113],"valid"],[[8114,8114],"mapped",[8048,953]],[[8115,8115],"mapped",[945,953]],[[8116,8116],"mapped",[940,953]],[[8117,8117],"disallowed"],[[8118,8118],"valid"],[[8119,8119],"mapped",[8118,953]],[[8120,8120],"mapped",[8112]],[[8121,8121],"mapped",[8113]],[[8122,8122],"mapped",[8048]],[[8123,8123],"mapped",[940]],[[8124,8124],"mapped",[945,953]],[[8125,8125],"disallowed_STD3_mapped",[32,787]],[[8126,8126],"mapped",[953]],[[8127,8127],"disallowed_STD3_mapped",[32,787]],[[8128,8128],"disallowed_STD3_mapped",[32,834]],[[8129,8129],"disallowed_STD3_mapped",[32,776,834]],[[8130,8130],"mapped",[8052,953]],[[8131,8131],"mapped",[951,953]],[[8132,8132],"mapped",[942,953]],[[8133,8133],"disallowed"],[[8134,8134],"valid"],[[8135,8135],"mapped",[8134,953]],[[8136,8136],"mapped",[8050]],[[8137,8137],"mapped",[941]],[[8138,8138],"mapped",[8052]],[[8139,8139],"mapped",[942]],[[8140,8140],"mapped",[951,953]],[[8141,8141],"disallowed_STD3_mapped",[32,787,768]],[[8142,8142],"disallowed_STD3_mapped",[32,787,769]],[[8143,8143],"disallowed_STD3_mapped",[32,787,834]],[[8144,8146],"valid"],[[8147,8147],"mapped",[912]],[[8148,8149],"disallowed"],[[8150,8151],"valid"],[[8152,8152],"mapped",[8144]],[[8153,8153],"mapped",[8145]],[[8154,8154],"mapped",[8054]],[[8155,8155],"mapped",[943]],[[8156,8156],"disallowed"],[[8157,8157],"disallowed_STD3_mapped",[32,788,768]],[[8158,8158],"disallowed_STD3_mapped",[32,788,769]],[[8159,8159],"disallowed_STD3_mapped",[32,788,834]],[[8160,8162],"valid"],[[8163,8163],"mapped",[944]],[[8164,8167],"valid"],[[8168,8168],"mapped",[8160]],[[8169,8169],"mapped",[8161]],[[8170,8170],"mapped",[8058]],[[8171,8171],"mapped",[973]],[[8172,8172],"mapped",[8165]],[[8173,8173],"disallowed_STD3_mapped",[32,776,768]],[[8174,8174],"disallowed_STD3_mapped",[32,776,769]],[[8175,8175],"disallowed_STD3_mapped",[96]],[[8176,8177],"disallowed"],[[8178,8178],"mapped",[8060,953]],[[8179,8179],"mapped",[969,953]],[[8180,8180],"mapped",[974,953]],[[8181,8181],"disallowed"],[[8182,8182],"valid"],[[8183,8183],"mapped",[8182,953]],[[8184,8184],"mapped",[8056]],[[8185,8185],"mapped",[972]],[[8186,8186],"mapped",[8060]],[[8187,8187],"mapped",[974]],[[8188,8188],"mapped",[969,953]],[[8189,8189],"disallowed_STD3_mapped",[32,769]],[[8190,8190],"disallowed_STD3_mapped",[32,788]],[[8191,8191],"disallowed"],[[8192,8202],"disallowed_STD3_mapped",[32]],[[8203,8203],"ignored"],[[8204,8205],"deviation",[]],[[8206,8207],"disallowed"],[[8208,8208],"valid",[],"NV8"],[[8209,8209],"mapped",[8208]],[[8210,8214],"valid",[],"NV8"],[[8215,8215],"disallowed_STD3_mapped",[32,819]],[[8216,8227],"valid",[],"NV8"],[[8228,8230],"disallowed"],[[8231,8231],"valid",[],"NV8"],[[8232,8238],"disallowed"],[[8239,8239],"disallowed_STD3_mapped",[32]],[[8240,8242],"valid",[],"NV8"],[[8243,8243],"mapped",[8242,8242]],[[8244,8244],"mapped",[8242,8242,8242]],[[8245,8245],"valid",[],"NV8"],[[8246,8246],"mapped",[8245,8245]],[[8247,8247],"mapped",[8245,8245,8245]],[[8248,8251],"valid",[],"NV8"],[[8252,8252],"disallowed_STD3_mapped",[33,33]],[[8253,8253],"valid",[],"NV8"],[[8254,8254],"disallowed_STD3_mapped",[32,773]],[[8255,8262],"valid",[],"NV8"],[[8263,8263],"disallowed_STD3_mapped",[63,63]],[[8264,8264],"disallowed_STD3_mapped",[63,33]],[[8265,8265],"disallowed_STD3_mapped",[33,63]],[[8266,8269],"valid",[],"NV8"],[[8270,8274],"valid",[],"NV8"],[[8275,8276],"valid",[],"NV8"],[[8277,8278],"valid",[],"NV8"],[[8279,8279],"mapped",[8242,8242,8242,8242]],[[8280,8286],"valid",[],"NV8"],[[8287,8287],"disallowed_STD3_mapped",[32]],[[8288,8288],"ignored"],[[8289,8291],"disallowed"],[[8292,8292],"ignored"],[[8293,8293],"disallowed"],[[8294,8297],"disallowed"],[[8298,8303],"disallowed"],[[8304,8304],"mapped",[48]],[[8305,8305],"mapped",[105]],[[8306,8307],"disallowed"],[[8308,8308],"mapped",[52]],[[8309,8309],"mapped",[53]],[[8310,8310],"mapped",[54]],[[8311,8311],"mapped",[55]],[[8312,8312],"mapped",[56]],[[8313,8313],"mapped",[57]],[[8314,8314],"disallowed_STD3_mapped",[43]],[[8315,8315],"mapped",[8722]],[[8316,8316],"disallowed_STD3_mapped",[61]],[[8317,8317],"disallowed_STD3_mapped",[40]],[[8318,8318],"disallowed_STD3_mapped",[41]],[[8319,8319],"mapped",[110]],[[8320,8320],"mapped",[48]],[[8321,8321],"mapped",[49]],[[8322,8322],"mapped",[50]],[[8323,8323],"mapped",[51]],[[8324,8324],"mapped",[52]],[[8325,8325],"mapped",[53]],[[8326,8326],"mapped",[54]],[[8327,8327],"mapped",[55]],[[8328,8328],"mapped",[56]],[[8329,8329],"mapped",[57]],[[8330,8330],"disallowed_STD3_mapped",[43]],[[8331,8331],"mapped",[8722]],[[8332,8332],"disallowed_STD3_mapped",[61]],[[8333,8333],"disallowed_STD3_mapped",[40]],[[8334,8334],"disallowed_STD3_mapped",[41]],[[8335,8335],"disallowed"],[[8336,8336],"mapped",[97]],[[8337,8337],"mapped",[101]],[[8338,8338],"mapped",[111]],[[8339,8339],"mapped",[120]],[[8340,8340],"mapped",[601]],[[8341,8341],"mapped",[104]],[[8342,8342],"mapped",[107]],[[8343,8343],"mapped",[108]],[[8344,8344],"mapped",[109]],[[8345,8345],"mapped",[110]],[[8346,8346],"mapped",[112]],[[8347,8347],"mapped",[115]],[[8348,8348],"mapped",[116]],[[8349,8351],"disallowed"],[[8352,8359],"valid",[],"NV8"],[[8360,8360],"mapped",[114,115]],[[8361,8362],"valid",[],"NV8"],[[8363,8363],"valid",[],"NV8"],[[8364,8364],"valid",[],"NV8"],[[8365,8367],"valid",[],"NV8"],[[8368,8369],"valid",[],"NV8"],[[8370,8373],"valid",[],"NV8"],[[8374,8376],"valid",[],"NV8"],[[8377,8377],"valid",[],"NV8"],[[8378,8378],"valid",[],"NV8"],[[8379,8381],"valid",[],"NV8"],[[8382,8382],"valid",[],"NV8"],[[8383,8399],"disallowed"],[[8400,8417],"valid",[],"NV8"],[[8418,8419],"valid",[],"NV8"],[[8420,8426],"valid",[],"NV8"],[[8427,8427],"valid",[],"NV8"],[[8428,8431],"valid",[],"NV8"],[[8432,8432],"valid",[],"NV8"],[[8433,8447],"disallowed"],[[8448,8448],"disallowed_STD3_mapped",[97,47,99]],[[8449,8449],"disallowed_STD3_mapped",[97,47,115]],[[8450,8450],"mapped",[99]],[[8451,8451],"mapped",[176,99]],[[8452,8452],"valid",[],"NV8"],[[8453,8453],"disallowed_STD3_mapped",[99,47,111]],[[8454,8454],"disallowed_STD3_mapped",[99,47,117]],[[8455,8455],"mapped",[603]],[[8456,8456],"valid",[],"NV8"],[[8457,8457],"mapped",[176,102]],[[8458,8458],"mapped",[103]],[[8459,8462],"mapped",[104]],[[8463,8463],"mapped",[295]],[[8464,8465],"mapped",[105]],[[8466,8467],"mapped",[108]],[[8468,8468],"valid",[],"NV8"],[[8469,8469],"mapped",[110]],[[8470,8470],"mapped",[110,111]],[[8471,8472],"valid",[],"NV8"],[[8473,8473],"mapped",[112]],[[8474,8474],"mapped",[113]],[[8475,8477],"mapped",[114]],[[8478,8479],"valid",[],"NV8"],[[8480,8480],"mapped",[115,109]],[[8481,8481],"mapped",[116,101,108]],[[8482,8482],"mapped",[116,109]],[[8483,8483],"valid",[],"NV8"],[[8484,8484],"mapped",[122]],[[8485,8485],"valid",[],"NV8"],[[8486,8486],"mapped",[969]],[[8487,8487],"valid",[],"NV8"],[[8488,8488],"mapped",[122]],[[8489,8489],"valid",[],"NV8"],[[8490,8490],"mapped",[107]],[[8491,8491],"mapped",[229]],[[8492,8492],"mapped",[98]],[[8493,8493],"mapped",[99]],[[8494,8494],"valid",[],"NV8"],[[8495,8496],"mapped",[101]],[[8497,8497],"mapped",[102]],[[8498,8498],"disallowed"],[[8499,8499],"mapped",[109]],[[8500,8500],"mapped",[111]],[[8501,8501],"mapped",[1488]],[[8502,8502],"mapped",[1489]],[[8503,8503],"mapped",[1490]],[[8504,8504],"mapped",[1491]],[[8505,8505],"mapped",[105]],[[8506,8506],"valid",[],"NV8"],[[8507,8507],"mapped",[102,97,120]],[[8508,8508],"mapped",[960]],[[8509,8510],"mapped",[947]],[[8511,8511],"mapped",[960]],[[8512,8512],"mapped",[8721]],[[8513,8516],"valid",[],"NV8"],[[8517,8518],"mapped",[100]],[[8519,8519],"mapped",[101]],[[8520,8520],"mapped",[105]],[[8521,8521],"mapped",[106]],[[8522,8523],"valid",[],"NV8"],[[8524,8524],"valid",[],"NV8"],[[8525,8525],"valid",[],"NV8"],[[8526,8526],"valid"],[[8527,8527],"valid",[],"NV8"],[[8528,8528],"mapped",[49,8260,55]],[[8529,8529],"mapped",[49,8260,57]],[[8530,8530],"mapped",[49,8260,49,48]],[[8531,8531],"mapped",[49,8260,51]],[[8532,8532],"mapped",[50,8260,51]],[[8533,8533],"mapped",[49,8260,53]],[[8534,8534],"mapped",[50,8260,53]],[[8535,8535],"mapped",[51,8260,53]],[[8536,8536],"mapped",[52,8260,53]],[[8537,8537],"mapped",[49,8260,54]],[[8538,8538],"mapped",[53,8260,54]],[[8539,8539],"mapped",[49,8260,56]],[[8540,8540],"mapped",[51,8260,56]],[[8541,8541],"mapped",[53,8260,56]],[[8542,8542],"mapped",[55,8260,56]],[[8543,8543],"mapped",[49,8260]],[[8544,8544],"mapped",[105]],[[8545,8545],"mapped",[105,105]],[[8546,8546],"mapped",[105,105,105]],[[8547,8547],"mapped",[105,118]],[[8548,8548],"mapped",[118]],[[8549,8549],"mapped",[118,105]],[[8550,8550],"mapped",[118,105,105]],[[8551,8551],"mapped",[118,105,105,105]],[[8552,8552],"mapped",[105,120]],[[8553,8553],"mapped",[120]],[[8554,8554],"mapped",[120,105]],[[8555,8555],"mapped",[120,105,105]],[[8556,8556],"mapped",[108]],[[8557,8557],"mapped",[99]],[[8558,8558],"mapped",[100]],[[8559,8559],"mapped",[109]],[[8560,8560],"mapped",[105]],[[8561,8561],"mapped",[105,105]],[[8562,8562],"mapped",[105,105,105]],[[8563,8563],"mapped",[105,118]],[[8564,8564],"mapped",[118]],[[8565,8565],"mapped",[118,105]],[[8566,8566],"mapped",[118,105,105]],[[8567,8567],"mapped",[118,105,105,105]],[[8568,8568],"mapped",[105,120]],[[8569,8569],"mapped",[120]],[[8570,8570],"mapped",[120,105]],[[8571,8571],"mapped",[120,105,105]],[[8572,8572],"mapped",[108]],[[8573,8573],"mapped",[99]],[[8574,8574],"mapped",[100]],[[8575,8575],"mapped",[109]],[[8576,8578],"valid",[],"NV8"],[[8579,8579],"disallowed"],[[8580,8580],"valid"],[[8581,8584],"valid",[],"NV8"],[[8585,8585],"mapped",[48,8260,51]],[[8586,8587],"valid",[],"NV8"],[[8588,8591],"disallowed"],[[8592,8682],"valid",[],"NV8"],[[8683,8691],"valid",[],"NV8"],[[8692,8703],"valid",[],"NV8"],[[8704,8747],"valid",[],"NV8"],[[8748,8748],"mapped",[8747,8747]],[[8749,8749],"mapped",[8747,8747,8747]],[[8750,8750],"valid",[],"NV8"],[[8751,8751],"mapped",[8750,8750]],[[8752,8752],"mapped",[8750,8750,8750]],[[8753,8799],"valid",[],"NV8"],[[8800,8800],"disallowed_STD3_valid"],[[8801,8813],"valid",[],"NV8"],[[8814,8815],"disallowed_STD3_valid"],[[8816,8945],"valid",[],"NV8"],[[8946,8959],"valid",[],"NV8"],[[8960,8960],"valid",[],"NV8"],[[8961,8961],"valid",[],"NV8"],[[8962,9e3],"valid",[],"NV8"],[[9001,9001],"mapped",[12296]],[[9002,9002],"mapped",[12297]],[[9003,9082],"valid",[],"NV8"],[[9083,9083],"valid",[],"NV8"],[[9084,9084],"valid",[],"NV8"],[[9085,9114],"valid",[],"NV8"],[[9115,9166],"valid",[],"NV8"],[[9167,9168],"valid",[],"NV8"],[[9169,9179],"valid",[],"NV8"],[[9180,9191],"valid",[],"NV8"],[[9192,9192],"valid",[],"NV8"],[[9193,9203],"valid",[],"NV8"],[[9204,9210],"valid",[],"NV8"],[[9211,9215],"disallowed"],[[9216,9252],"valid",[],"NV8"],[[9253,9254],"valid",[],"NV8"],[[9255,9279],"disallowed"],[[9280,9290],"valid",[],"NV8"],[[9291,9311],"disallowed"],[[9312,9312],"mapped",[49]],[[9313,9313],"mapped",[50]],[[9314,9314],"mapped",[51]],[[9315,9315],"mapped",[52]],[[9316,9316],"mapped",[53]],[[9317,9317],"mapped",[54]],[[9318,9318],"mapped",[55]],[[9319,9319],"mapped",[56]],[[9320,9320],"mapped",[57]],[[9321,9321],"mapped",[49,48]],[[9322,9322],"mapped",[49,49]],[[9323,9323],"mapped",[49,50]],[[9324,9324],"mapped",[49,51]],[[9325,9325],"mapped",[49,52]],[[9326,9326],"mapped",[49,53]],[[9327,9327],"mapped",[49,54]],[[9328,9328],"mapped",[49,55]],[[9329,9329],"mapped",[49,56]],[[9330,9330],"mapped",[49,57]],[[9331,9331],"mapped",[50,48]],[[9332,9332],"disallowed_STD3_mapped",[40,49,41]],[[9333,9333],"disallowed_STD3_mapped",[40,50,41]],[[9334,9334],"disallowed_STD3_mapped",[40,51,41]],[[9335,9335],"disallowed_STD3_mapped",[40,52,41]],[[9336,9336],"disallowed_STD3_mapped",[40,53,41]],[[9337,9337],"disallowed_STD3_mapped",[40,54,41]],[[9338,9338],"disallowed_STD3_mapped",[40,55,41]],[[9339,9339],"disallowed_STD3_mapped",[40,56,41]],[[9340,9340],"disallowed_STD3_mapped",[40,57,41]],[[9341,9341],"disallowed_STD3_mapped",[40,49,48,41]],[[9342,9342],"disallowed_STD3_mapped",[40,49,49,41]],[[9343,9343],"disallowed_STD3_mapped",[40,49,50,41]],[[9344,9344],"disallowed_STD3_mapped",[40,49,51,41]],[[9345,9345],"disallowed_STD3_mapped",[40,49,52,41]],[[9346,9346],"disallowed_STD3_mapped",[40,49,53,41]],[[9347,9347],"disallowed_STD3_mapped",[40,49,54,41]],[[9348,9348],"disallowed_STD3_mapped",[40,49,55,41]],[[9349,9349],"disallowed_STD3_mapped",[40,49,56,41]],[[9350,9350],"disallowed_STD3_mapped",[40,49,57,41]],[[9351,9351],"disallowed_STD3_mapped",[40,50,48,41]],[[9352,9371],"disallowed"],[[9372,9372],"disallowed_STD3_mapped",[40,97,41]],[[9373,9373],"disallowed_STD3_mapped",[40,98,41]],[[9374,9374],"disallowed_STD3_mapped",[40,99,41]],[[9375,9375],"disallowed_STD3_mapped",[40,100,41]],[[9376,9376],"disallowed_STD3_mapped",[40,101,41]],[[9377,9377],"disallowed_STD3_mapped",[40,102,41]],[[9378,9378],"disallowed_STD3_mapped",[40,103,41]],[[9379,9379],"disallowed_STD3_mapped",[40,104,41]],[[9380,9380],"disallowed_STD3_mapped",[40,105,41]],[[9381,9381],"disallowed_STD3_mapped",[40,106,41]],[[9382,9382],"disallowed_STD3_mapped",[40,107,41]],[[9383,9383],"disallowed_STD3_mapped",[40,108,41]],[[9384,9384],"disallowed_STD3_mapped",[40,109,41]],[[9385,9385],"disallowed_STD3_mapped",[40,110,41]],[[9386,9386],"disallowed_STD3_mapped",[40,111,41]],[[9387,9387],"disallowed_STD3_mapped",[40,112,41]],[[9388,9388],"disallowed_STD3_mapped",[40,113,41]],[[9389,9389],"disallowed_STD3_mapped",[40,114,41]],[[9390,9390],"disallowed_STD3_mapped",[40,115,41]],[[9391,9391],"disallowed_STD3_mapped",[40,116,41]],[[9392,9392],"disallowed_STD3_mapped",[40,117,41]],[[9393,9393],"disallowed_STD3_mapped",[40,118,41]],[[9394,9394],"disallowed_STD3_mapped",[40,119,41]],[[9395,9395],"disallowed_STD3_mapped",[40,120,41]],[[9396,9396],"disallowed_STD3_mapped",[40,121,41]],[[9397,9397],"disallowed_STD3_mapped",[40,122,41]],[[9398,9398],"mapped",[97]],[[9399,9399],"mapped",[98]],[[9400,9400],"mapped",[99]],[[9401,9401],"mapped",[100]],[[9402,9402],"mapped",[101]],[[9403,9403],"mapped",[102]],[[9404,9404],"mapped",[103]],[[9405,9405],"mapped",[104]],[[9406,9406],"mapped",[105]],[[9407,9407],"mapped",[106]],[[9408,9408],"mapped",[107]],[[9409,9409],"mapped",[108]],[[9410,9410],"mapped",[109]],[[9411,9411],"mapped",[110]],[[9412,9412],"mapped",[111]],[[9413,9413],"mapped",[112]],[[9414,9414],"mapped",[113]],[[9415,9415],"mapped",[114]],[[9416,9416],"mapped",[115]],[[9417,9417],"mapped",[116]],[[9418,9418],"mapped",[117]],[[9419,9419],"mapped",[118]],[[9420,9420],"mapped",[119]],[[9421,9421],"mapped",[120]],[[9422,9422],"mapped",[121]],[[9423,9423],"mapped",[122]],[[9424,9424],"mapped",[97]],[[9425,9425],"mapped",[98]],[[9426,9426],"mapped",[99]],[[9427,9427],"mapped",[100]],[[9428,9428],"mapped",[101]],[[9429,9429],"mapped",[102]],[[9430,9430],"mapped",[103]],[[9431,9431],"mapped",[104]],[[9432,9432],"mapped",[105]],[[9433,9433],"mapped",[106]],[[9434,9434],"mapped",[107]],[[9435,9435],"mapped",[108]],[[9436,9436],"mapped",[109]],[[9437,9437],"mapped",[110]],[[9438,9438],"mapped",[111]],[[9439,9439],"mapped",[112]],[[9440,9440],"mapped",[113]],[[9441,9441],"mapped",[114]],[[9442,9442],"mapped",[115]],[[9443,9443],"mapped",[116]],[[9444,9444],"mapped",[117]],[[9445,9445],"mapped",[118]],[[9446,9446],"mapped",[119]],[[9447,9447],"mapped",[120]],[[9448,9448],"mapped",[121]],[[9449,9449],"mapped",[122]],[[9450,9450],"mapped",[48]],[[9451,9470],"valid",[],"NV8"],[[9471,9471],"valid",[],"NV8"],[[9472,9621],"valid",[],"NV8"],[[9622,9631],"valid",[],"NV8"],[[9632,9711],"valid",[],"NV8"],[[9712,9719],"valid",[],"NV8"],[[9720,9727],"valid",[],"NV8"],[[9728,9747],"valid",[],"NV8"],[[9748,9749],"valid",[],"NV8"],[[9750,9751],"valid",[],"NV8"],[[9752,9752],"valid",[],"NV8"],[[9753,9753],"valid",[],"NV8"],[[9754,9839],"valid",[],"NV8"],[[9840,9841],"valid",[],"NV8"],[[9842,9853],"valid",[],"NV8"],[[9854,9855],"valid",[],"NV8"],[[9856,9865],"valid",[],"NV8"],[[9866,9873],"valid",[],"NV8"],[[9874,9884],"valid",[],"NV8"],[[9885,9885],"valid",[],"NV8"],[[9886,9887],"valid",[],"NV8"],[[9888,9889],"valid",[],"NV8"],[[9890,9905],"valid",[],"NV8"],[[9906,9906],"valid",[],"NV8"],[[9907,9916],"valid",[],"NV8"],[[9917,9919],"valid",[],"NV8"],[[9920,9923],"valid",[],"NV8"],[[9924,9933],"valid",[],"NV8"],[[9934,9934],"valid",[],"NV8"],[[9935,9953],"valid",[],"NV8"],[[9954,9954],"valid",[],"NV8"],[[9955,9955],"valid",[],"NV8"],[[9956,9959],"valid",[],"NV8"],[[9960,9983],"valid",[],"NV8"],[[9984,9984],"valid",[],"NV8"],[[9985,9988],"valid",[],"NV8"],[[9989,9989],"valid",[],"NV8"],[[9990,9993],"valid",[],"NV8"],[[9994,9995],"valid",[],"NV8"],[[9996,10023],"valid",[],"NV8"],[[10024,10024],"valid",[],"NV8"],[[10025,10059],"valid",[],"NV8"],[[10060,10060],"valid",[],"NV8"],[[10061,10061],"valid",[],"NV8"],[[10062,10062],"valid",[],"NV8"],[[10063,10066],"valid",[],"NV8"],[[10067,10069],"valid",[],"NV8"],[[10070,10070],"valid",[],"NV8"],[[10071,10071],"valid",[],"NV8"],[[10072,10078],"valid",[],"NV8"],[[10079,10080],"valid",[],"NV8"],[[10081,10087],"valid",[],"NV8"],[[10088,10101],"valid",[],"NV8"],[[10102,10132],"valid",[],"NV8"],[[10133,10135],"valid",[],"NV8"],[[10136,10159],"valid",[],"NV8"],[[10160,10160],"valid",[],"NV8"],[[10161,10174],"valid",[],"NV8"],[[10175,10175],"valid",[],"NV8"],[[10176,10182],"valid",[],"NV8"],[[10183,10186],"valid",[],"NV8"],[[10187,10187],"valid",[],"NV8"],[[10188,10188],"valid",[],"NV8"],[[10189,10189],"valid",[],"NV8"],[[10190,10191],"valid",[],"NV8"],[[10192,10219],"valid",[],"NV8"],[[10220,10223],"valid",[],"NV8"],[[10224,10239],"valid",[],"NV8"],[[10240,10495],"valid",[],"NV8"],[[10496,10763],"valid",[],"NV8"],[[10764,10764],"mapped",[8747,8747,8747,8747]],[[10765,10867],"valid",[],"NV8"],[[10868,10868],"disallowed_STD3_mapped",[58,58,61]],[[10869,10869],"disallowed_STD3_mapped",[61,61]],[[10870,10870],"disallowed_STD3_mapped",[61,61,61]],[[10871,10971],"valid",[],"NV8"],[[10972,10972],"mapped",[10973,824]],[[10973,11007],"valid",[],"NV8"],[[11008,11021],"valid",[],"NV8"],[[11022,11027],"valid",[],"NV8"],[[11028,11034],"valid",[],"NV8"],[[11035,11039],"valid",[],"NV8"],[[11040,11043],"valid",[],"NV8"],[[11044,11084],"valid",[],"NV8"],[[11085,11087],"valid",[],"NV8"],[[11088,11092],"valid",[],"NV8"],[[11093,11097],"valid",[],"NV8"],[[11098,11123],"valid",[],"NV8"],[[11124,11125],"disallowed"],[[11126,11157],"valid",[],"NV8"],[[11158,11159],"disallowed"],[[11160,11193],"valid",[],"NV8"],[[11194,11196],"disallowed"],[[11197,11208],"valid",[],"NV8"],[[11209,11209],"disallowed"],[[11210,11217],"valid",[],"NV8"],[[11218,11243],"disallowed"],[[11244,11247],"valid",[],"NV8"],[[11248,11263],"disallowed"],[[11264,11264],"mapped",[11312]],[[11265,11265],"mapped",[11313]],[[11266,11266],"mapped",[11314]],[[11267,11267],"mapped",[11315]],[[11268,11268],"mapped",[11316]],[[11269,11269],"mapped",[11317]],[[11270,11270],"mapped",[11318]],[[11271,11271],"mapped",[11319]],[[11272,11272],"mapped",[11320]],[[11273,11273],"mapped",[11321]],[[11274,11274],"mapped",[11322]],[[11275,11275],"mapped",[11323]],[[11276,11276],"mapped",[11324]],[[11277,11277],"mapped",[11325]],[[11278,11278],"mapped",[11326]],[[11279,11279],"mapped",[11327]],[[11280,11280],"mapped",[11328]],[[11281,11281],"mapped",[11329]],[[11282,11282],"mapped",[11330]],[[11283,11283],"mapped",[11331]],[[11284,11284],"mapped",[11332]],[[11285,11285],"mapped",[11333]],[[11286,11286],"mapped",[11334]],[[11287,11287],"mapped",[11335]],[[11288,11288],"mapped",[11336]],[[11289,11289],"mapped",[11337]],[[11290,11290],"mapped",[11338]],[[11291,11291],"mapped",[11339]],[[11292,11292],"mapped",[11340]],[[11293,11293],"mapped",[11341]],[[11294,11294],"mapped",[11342]],[[11295,11295],"mapped",[11343]],[[11296,11296],"mapped",[11344]],[[11297,11297],"mapped",[11345]],[[11298,11298],"mapped",[11346]],[[11299,11299],"mapped",[11347]],[[11300,11300],"mapped",[11348]],[[11301,11301],"mapped",[11349]],[[11302,11302],"mapped",[11350]],[[11303,11303],"mapped",[11351]],[[11304,11304],"mapped",[11352]],[[11305,11305],"mapped",[11353]],[[11306,11306],"mapped",[11354]],[[11307,11307],"mapped",[11355]],[[11308,11308],"mapped",[11356]],[[11309,11309],"mapped",[11357]],[[11310,11310],"mapped",[11358]],[[11311,11311],"disallowed"],[[11312,11358],"valid"],[[11359,11359],"disallowed"],[[11360,11360],"mapped",[11361]],[[11361,11361],"valid"],[[11362,11362],"mapped",[619]],[[11363,11363],"mapped",[7549]],[[11364,11364],"mapped",[637]],[[11365,11366],"valid"],[[11367,11367],"mapped",[11368]],[[11368,11368],"valid"],[[11369,11369],"mapped",[11370]],[[11370,11370],"valid"],[[11371,11371],"mapped",[11372]],[[11372,11372],"valid"],[[11373,11373],"mapped",[593]],[[11374,11374],"mapped",[625]],[[11375,11375],"mapped",[592]],[[11376,11376],"mapped",[594]],[[11377,11377],"valid"],[[11378,11378],"mapped",[11379]],[[11379,11379],"valid"],[[11380,11380],"valid"],[[11381,11381],"mapped",[11382]],[[11382,11383],"valid"],[[11384,11387],"valid"],[[11388,11388],"mapped",[106]],[[11389,11389],"mapped",[118]],[[11390,11390],"mapped",[575]],[[11391,11391],"mapped",[576]],[[11392,11392],"mapped",[11393]],[[11393,11393],"valid"],[[11394,11394],"mapped",[11395]],[[11395,11395],"valid"],[[11396,11396],"mapped",[11397]],[[11397,11397],"valid"],[[11398,11398],"mapped",[11399]],[[11399,11399],"valid"],[[11400,11400],"mapped",[11401]],[[11401,11401],"valid"],[[11402,11402],"mapped",[11403]],[[11403,11403],"valid"],[[11404,11404],"mapped",[11405]],[[11405,11405],"valid"],[[11406,11406],"mapped",[11407]],[[11407,11407],"valid"],[[11408,11408],"mapped",[11409]],[[11409,11409],"valid"],[[11410,11410],"mapped",[11411]],[[11411,11411],"valid"],[[11412,11412],"mapped",[11413]],[[11413,11413],"valid"],[[11414,11414],"mapped",[11415]],[[11415,11415],"valid"],[[11416,11416],"mapped",[11417]],[[11417,11417],"valid"],[[11418,11418],"mapped",[11419]],[[11419,11419],"valid"],[[11420,11420],"mapped",[11421]],[[11421,11421],"valid"],[[11422,11422],"mapped",[11423]],[[11423,11423],"valid"],[[11424,11424],"mapped",[11425]],[[11425,11425],"valid"],[[11426,11426],"mapped",[11427]],[[11427,11427],"valid"],[[11428,11428],"mapped",[11429]],[[11429,11429],"valid"],[[11430,11430],"mapped",[11431]],[[11431,11431],"valid"],[[11432,11432],"mapped",[11433]],[[11433,11433],"valid"],[[11434,11434],"mapped",[11435]],[[11435,11435],"valid"],[[11436,11436],"mapped",[11437]],[[11437,11437],"valid"],[[11438,11438],"mapped",[11439]],[[11439,11439],"valid"],[[11440,11440],"mapped",[11441]],[[11441,11441],"valid"],[[11442,11442],"mapped",[11443]],[[11443,11443],"valid"],[[11444,11444],"mapped",[11445]],[[11445,11445],"valid"],[[11446,11446],"mapped",[11447]],[[11447,11447],"valid"],[[11448,11448],"mapped",[11449]],[[11449,11449],"valid"],[[11450,11450],"mapped",[11451]],[[11451,11451],"valid"],[[11452,11452],"mapped",[11453]],[[11453,11453],"valid"],[[11454,11454],"mapped",[11455]],[[11455,11455],"valid"],[[11456,11456],"mapped",[11457]],[[11457,11457],"valid"],[[11458,11458],"mapped",[11459]],[[11459,11459],"valid"],[[11460,11460],"mapped",[11461]],[[11461,11461],"valid"],[[11462,11462],"mapped",[11463]],[[11463,11463],"valid"],[[11464,11464],"mapped",[11465]],[[11465,11465],"valid"],[[11466,11466],"mapped",[11467]],[[11467,11467],"valid"],[[11468,11468],"mapped",[11469]],[[11469,11469],"valid"],[[11470,11470],"mapped",[11471]],[[11471,11471],"valid"],[[11472,11472],"mapped",[11473]],[[11473,11473],"valid"],[[11474,11474],"mapped",[11475]],[[11475,11475],"valid"],[[11476,11476],"mapped",[11477]],[[11477,11477],"valid"],[[11478,11478],"mapped",[11479]],[[11479,11479],"valid"],[[11480,11480],"mapped",[11481]],[[11481,11481],"valid"],[[11482,11482],"mapped",[11483]],[[11483,11483],"valid"],[[11484,11484],"mapped",[11485]],[[11485,11485],"valid"],[[11486,11486],"mapped",[11487]],[[11487,11487],"valid"],[[11488,11488],"mapped",[11489]],[[11489,11489],"valid"],[[11490,11490],"mapped",[11491]],[[11491,11492],"valid"],[[11493,11498],"valid",[],"NV8"],[[11499,11499],"mapped",[11500]],[[11500,11500],"valid"],[[11501,11501],"mapped",[11502]],[[11502,11505],"valid"],[[11506,11506],"mapped",[11507]],[[11507,11507],"valid"],[[11508,11512],"disallowed"],[[11513,11519],"valid",[],"NV8"],[[11520,11557],"valid"],[[11558,11558],"disallowed"],[[11559,11559],"valid"],[[11560,11564],"disallowed"],[[11565,11565],"valid"],[[11566,11567],"disallowed"],[[11568,11621],"valid"],[[11622,11623],"valid"],[[11624,11630],"disallowed"],[[11631,11631],"mapped",[11617]],[[11632,11632],"valid",[],"NV8"],[[11633,11646],"disallowed"],[[11647,11647],"valid"],[[11648,11670],"valid"],[[11671,11679],"disallowed"],[[11680,11686],"valid"],[[11687,11687],"disallowed"],[[11688,11694],"valid"],[[11695,11695],"disallowed"],[[11696,11702],"valid"],[[11703,11703],"disallowed"],[[11704,11710],"valid"],[[11711,11711],"disallowed"],[[11712,11718],"valid"],[[11719,11719],"disallowed"],[[11720,11726],"valid"],[[11727,11727],"disallowed"],[[11728,11734],"valid"],[[11735,11735],"disallowed"],[[11736,11742],"valid"],[[11743,11743],"disallowed"],[[11744,11775],"valid"],[[11776,11799],"valid",[],"NV8"],[[11800,11803],"valid",[],"NV8"],[[11804,11805],"valid",[],"NV8"],[[11806,11822],"valid",[],"NV8"],[[11823,11823],"valid"],[[11824,11824],"valid",[],"NV8"],[[11825,11825],"valid",[],"NV8"],[[11826,11835],"valid",[],"NV8"],[[11836,11842],"valid",[],"NV8"],[[11843,11903],"disallowed"],[[11904,11929],"valid",[],"NV8"],[[11930,11930],"disallowed"],[[11931,11934],"valid",[],"NV8"],[[11935,11935],"mapped",[27597]],[[11936,12018],"valid",[],"NV8"],[[12019,12019],"mapped",[40863]],[[12020,12031],"disallowed"],[[12032,12032],"mapped",[19968]],[[12033,12033],"mapped",[20008]],[[12034,12034],"mapped",[20022]],[[12035,12035],"mapped",[20031]],[[12036,12036],"mapped",[20057]],[[12037,12037],"mapped",[20101]],[[12038,12038],"mapped",[20108]],[[12039,12039],"mapped",[20128]],[[12040,12040],"mapped",[20154]],[[12041,12041],"mapped",[20799]],[[12042,12042],"mapped",[20837]],[[12043,12043],"mapped",[20843]],[[12044,12044],"mapped",[20866]],[[12045,12045],"mapped",[20886]],[[12046,12046],"mapped",[20907]],[[12047,12047],"mapped",[20960]],[[12048,12048],"mapped",[20981]],[[12049,12049],"mapped",[20992]],[[12050,12050],"mapped",[21147]],[[12051,12051],"mapped",[21241]],[[12052,12052],"mapped",[21269]],[[12053,12053],"mapped",[21274]],[[12054,12054],"mapped",[21304]],[[12055,12055],"mapped",[21313]],[[12056,12056],"mapped",[21340]],[[12057,12057],"mapped",[21353]],[[12058,12058],"mapped",[21378]],[[12059,12059],"mapped",[21430]],[[12060,12060],"mapped",[21448]],[[12061,12061],"mapped",[21475]],[[12062,12062],"mapped",[22231]],[[12063,12063],"mapped",[22303]],[[12064,12064],"mapped",[22763]],[[12065,12065],"mapped",[22786]],[[12066,12066],"mapped",[22794]],[[12067,12067],"mapped",[22805]],[[12068,12068],"mapped",[22823]],[[12069,12069],"mapped",[22899]],[[12070,12070],"mapped",[23376]],[[12071,12071],"mapped",[23424]],[[12072,12072],"mapped",[23544]],[[12073,12073],"mapped",[23567]],[[12074,12074],"mapped",[23586]],[[12075,12075],"mapped",[23608]],[[12076,12076],"mapped",[23662]],[[12077,12077],"mapped",[23665]],[[12078,12078],"mapped",[24027]],[[12079,12079],"mapped",[24037]],[[12080,12080],"mapped",[24049]],[[12081,12081],"mapped",[24062]],[[12082,12082],"mapped",[24178]],[[12083,12083],"mapped",[24186]],[[12084,12084],"mapped",[24191]],[[12085,12085],"mapped",[24308]],[[12086,12086],"mapped",[24318]],[[12087,12087],"mapped",[24331]],[[12088,12088],"mapped",[24339]],[[12089,12089],"mapped",[24400]],[[12090,12090],"mapped",[24417]],[[12091,12091],"mapped",[24435]],[[12092,12092],"mapped",[24515]],[[12093,12093],"mapped",[25096]],[[12094,12094],"mapped",[25142]],[[12095,12095],"mapped",[25163]],[[12096,12096],"mapped",[25903]],[[12097,12097],"mapped",[25908]],[[12098,12098],"mapped",[25991]],[[12099,12099],"mapped",[26007]],[[12100,12100],"mapped",[26020]],[[12101,12101],"mapped",[26041]],[[12102,12102],"mapped",[26080]],[[12103,12103],"mapped",[26085]],[[12104,12104],"mapped",[26352]],[[12105,12105],"mapped",[26376]],[[12106,12106],"mapped",[26408]],[[12107,12107],"mapped",[27424]],[[12108,12108],"mapped",[27490]],[[12109,12109],"mapped",[27513]],[[12110,12110],"mapped",[27571]],[[12111,12111],"mapped",[27595]],[[12112,12112],"mapped",[27604]],[[12113,12113],"mapped",[27611]],[[12114,12114],"mapped",[27663]],[[12115,12115],"mapped",[27668]],[[12116,12116],"mapped",[27700]],[[12117,12117],"mapped",[28779]],[[12118,12118],"mapped",[29226]],[[12119,12119],"mapped",[29238]],[[12120,12120],"mapped",[29243]],[[12121,12121],"mapped",[29247]],[[12122,12122],"mapped",[29255]],[[12123,12123],"mapped",[29273]],[[12124,12124],"mapped",[29275]],[[12125,12125],"mapped",[29356]],[[12126,12126],"mapped",[29572]],[[12127,12127],"mapped",[29577]],[[12128,12128],"mapped",[29916]],[[12129,12129],"mapped",[29926]],[[12130,12130],"mapped",[29976]],[[12131,12131],"mapped",[29983]],[[12132,12132],"mapped",[29992]],[[12133,12133],"mapped",[3e4]],[[12134,12134],"mapped",[30091]],[[12135,12135],"mapped",[30098]],[[12136,12136],"mapped",[30326]],[[12137,12137],"mapped",[30333]],[[12138,12138],"mapped",[30382]],[[12139,12139],"mapped",[30399]],[[12140,12140],"mapped",[30446]],[[12141,12141],"mapped",[30683]],[[12142,12142],"mapped",[30690]],[[12143,12143],"mapped",[30707]],[[12144,12144],"mapped",[31034]],[[12145,12145],"mapped",[31160]],[[12146,12146],"mapped",[31166]],[[12147,12147],"mapped",[31348]],[[12148,12148],"mapped",[31435]],[[12149,12149],"mapped",[31481]],[[12150,12150],"mapped",[31859]],[[12151,12151],"mapped",[31992]],[[12152,12152],"mapped",[32566]],[[12153,12153],"mapped",[32593]],[[12154,12154],"mapped",[32650]],[[12155,12155],"mapped",[32701]],[[12156,12156],"mapped",[32769]],[[12157,12157],"mapped",[32780]],[[12158,12158],"mapped",[32786]],[[12159,12159],"mapped",[32819]],[[12160,12160],"mapped",[32895]],[[12161,12161],"mapped",[32905]],[[12162,12162],"mapped",[33251]],[[12163,12163],"mapped",[33258]],[[12164,12164],"mapped",[33267]],[[12165,12165],"mapped",[33276]],[[12166,12166],"mapped",[33292]],[[12167,12167],"mapped",[33307]],[[12168,12168],"mapped",[33311]],[[12169,12169],"mapped",[33390]],[[12170,12170],"mapped",[33394]],[[12171,12171],"mapped",[33400]],[[12172,12172],"mapped",[34381]],[[12173,12173],"mapped",[34411]],[[12174,12174],"mapped",[34880]],[[12175,12175],"mapped",[34892]],[[12176,12176],"mapped",[34915]],[[12177,12177],"mapped",[35198]],[[12178,12178],"mapped",[35211]],[[12179,12179],"mapped",[35282]],[[12180,12180],"mapped",[35328]],[[12181,12181],"mapped",[35895]],[[12182,12182],"mapped",[35910]],[[12183,12183],"mapped",[35925]],[[12184,12184],"mapped",[35960]],[[12185,12185],"mapped",[35997]],[[12186,12186],"mapped",[36196]],[[12187,12187],"mapped",[36208]],[[12188,12188],"mapped",[36275]],[[12189,12189],"mapped",[36523]],[[12190,12190],"mapped",[36554]],[[12191,12191],"mapped",[36763]],[[12192,12192],"mapped",[36784]],[[12193,12193],"mapped",[36789]],[[12194,12194],"mapped",[37009]],[[12195,12195],"mapped",[37193]],[[12196,12196],"mapped",[37318]],[[12197,12197],"mapped",[37324]],[[12198,12198],"mapped",[37329]],[[12199,12199],"mapped",[38263]],[[12200,12200],"mapped",[38272]],[[12201,12201],"mapped",[38428]],[[12202,12202],"mapped",[38582]],[[12203,12203],"mapped",[38585]],[[12204,12204],"mapped",[38632]],[[12205,12205],"mapped",[38737]],[[12206,12206],"mapped",[38750]],[[12207,12207],"mapped",[38754]],[[12208,12208],"mapped",[38761]],[[12209,12209],"mapped",[38859]],[[12210,12210],"mapped",[38893]],[[12211,12211],"mapped",[38899]],[[12212,12212],"mapped",[38913]],[[12213,12213],"mapped",[39080]],[[12214,12214],"mapped",[39131]],[[12215,12215],"mapped",[39135]],[[12216,12216],"mapped",[39318]],[[12217,12217],"mapped",[39321]],[[12218,12218],"mapped",[39340]],[[12219,12219],"mapped",[39592]],[[12220,12220],"mapped",[39640]],[[12221,12221],"mapped",[39647]],[[12222,12222],"mapped",[39717]],[[12223,12223],"mapped",[39727]],[[12224,12224],"mapped",[39730]],[[12225,12225],"mapped",[39740]],[[12226,12226],"mapped",[39770]],[[12227,12227],"mapped",[40165]],[[12228,12228],"mapped",[40565]],[[12229,12229],"mapped",[40575]],[[12230,12230],"mapped",[40613]],[[12231,12231],"mapped",[40635]],[[12232,12232],"mapped",[40643]],[[12233,12233],"mapped",[40653]],[[12234,12234],"mapped",[40657]],[[12235,12235],"mapped",[40697]],[[12236,12236],"mapped",[40701]],[[12237,12237],"mapped",[40718]],[[12238,12238],"mapped",[40723]],[[12239,12239],"mapped",[40736]],[[12240,12240],"mapped",[40763]],[[12241,12241],"mapped",[40778]],[[12242,12242],"mapped",[40786]],[[12243,12243],"mapped",[40845]],[[12244,12244],"mapped",[40860]],[[12245,12245],"mapped",[40864]],[[12246,12271],"disallowed"],[[12272,12283],"disallowed"],[[12284,12287],"disallowed"],[[12288,12288],"disallowed_STD3_mapped",[32]],[[12289,12289],"valid",[],"NV8"],[[12290,12290],"mapped",[46]],[[12291,12292],"valid",[],"NV8"],[[12293,12295],"valid"],[[12296,12329],"valid",[],"NV8"],[[12330,12333],"valid"],[[12334,12341],"valid",[],"NV8"],[[12342,12342],"mapped",[12306]],[[12343,12343],"valid",[],"NV8"],[[12344,12344],"mapped",[21313]],[[12345,12345],"mapped",[21316]],[[12346,12346],"mapped",[21317]],[[12347,12347],"valid",[],"NV8"],[[12348,12348],"valid"],[[12349,12349],"valid",[],"NV8"],[[12350,12350],"valid",[],"NV8"],[[12351,12351],"valid",[],"NV8"],[[12352,12352],"disallowed"],[[12353,12436],"valid"],[[12437,12438],"valid"],[[12439,12440],"disallowed"],[[12441,12442],"valid"],[[12443,12443],"disallowed_STD3_mapped",[32,12441]],[[12444,12444],"disallowed_STD3_mapped",[32,12442]],[[12445,12446],"valid"],[[12447,12447],"mapped",[12424,12426]],[[12448,12448],"valid",[],"NV8"],[[12449,12542],"valid"],[[12543,12543],"mapped",[12467,12488]],[[12544,12548],"disallowed"],[[12549,12588],"valid"],[[12589,12589],"valid"],[[12590,12592],"disallowed"],[[12593,12593],"mapped",[4352]],[[12594,12594],"mapped",[4353]],[[12595,12595],"mapped",[4522]],[[12596,12596],"mapped",[4354]],[[12597,12597],"mapped",[4524]],[[12598,12598],"mapped",[4525]],[[12599,12599],"mapped",[4355]],[[12600,12600],"mapped",[4356]],[[12601,12601],"mapped",[4357]],[[12602,12602],"mapped",[4528]],[[12603,12603],"mapped",[4529]],[[12604,12604],"mapped",[4530]],[[12605,12605],"mapped",[4531]],[[12606,12606],"mapped",[4532]],[[12607,12607],"mapped",[4533]],[[12608,12608],"mapped",[4378]],[[12609,12609],"mapped",[4358]],[[12610,12610],"mapped",[4359]],[[12611,12611],"mapped",[4360]],[[12612,12612],"mapped",[4385]],[[12613,12613],"mapped",[4361]],[[12614,12614],"mapped",[4362]],[[12615,12615],"mapped",[4363]],[[12616,12616],"mapped",[4364]],[[12617,12617],"mapped",[4365]],[[12618,12618],"mapped",[4366]],[[12619,12619],"mapped",[4367]],[[12620,12620],"mapped",[4368]],[[12621,12621],"mapped",[4369]],[[12622,12622],"mapped",[4370]],[[12623,12623],"mapped",[4449]],[[12624,12624],"mapped",[4450]],[[12625,12625],"mapped",[4451]],[[12626,12626],"mapped",[4452]],[[12627,12627],"mapped",[4453]],[[12628,12628],"mapped",[4454]],[[12629,12629],"mapped",[4455]],[[12630,12630],"mapped",[4456]],[[12631,12631],"mapped",[4457]],[[12632,12632],"mapped",[4458]],[[12633,12633],"mapped",[4459]],[[12634,12634],"mapped",[4460]],[[12635,12635],"mapped",[4461]],[[12636,12636],"mapped",[4462]],[[12637,12637],"mapped",[4463]],[[12638,12638],"mapped",[4464]],[[12639,12639],"mapped",[4465]],[[12640,12640],"mapped",[4466]],[[12641,12641],"mapped",[4467]],[[12642,12642],"mapped",[4468]],[[12643,12643],"mapped",[4469]],[[12644,12644],"disallowed"],[[12645,12645],"mapped",[4372]],[[12646,12646],"mapped",[4373]],[[12647,12647],"mapped",[4551]],[[12648,12648],"mapped",[4552]],[[12649,12649],"mapped",[4556]],[[12650,12650],"mapped",[4558]],[[12651,12651],"mapped",[4563]],[[12652,12652],"mapped",[4567]],[[12653,12653],"mapped",[4569]],[[12654,12654],"mapped",[4380]],[[12655,12655],"mapped",[4573]],[[12656,12656],"mapped",[4575]],[[12657,12657],"mapped",[4381]],[[12658,12658],"mapped",[4382]],[[12659,12659],"mapped",[4384]],[[12660,12660],"mapped",[4386]],[[12661,12661],"mapped",[4387]],[[12662,12662],"mapped",[4391]],[[12663,12663],"mapped",[4393]],[[12664,12664],"mapped",[4395]],[[12665,12665],"mapped",[4396]],[[12666,12666],"mapped",[4397]],[[12667,12667],"mapped",[4398]],[[12668,12668],"mapped",[4399]],[[12669,12669],"mapped",[4402]],[[12670,12670],"mapped",[4406]],[[12671,12671],"mapped",[4416]],[[12672,12672],"mapped",[4423]],[[12673,12673],"mapped",[4428]],[[12674,12674],"mapped",[4593]],[[12675,12675],"mapped",[4594]],[[12676,12676],"mapped",[4439]],[[12677,12677],"mapped",[4440]],[[12678,12678],"mapped",[4441]],[[12679,12679],"mapped",[4484]],[[12680,12680],"mapped",[4485]],[[12681,12681],"mapped",[4488]],[[12682,12682],"mapped",[4497]],[[12683,12683],"mapped",[4498]],[[12684,12684],"mapped",[4500]],[[12685,12685],"mapped",[4510]],[[12686,12686],"mapped",[4513]],[[12687,12687],"disallowed"],[[12688,12689],"valid",[],"NV8"],[[12690,12690],"mapped",[19968]],[[12691,12691],"mapped",[20108]],[[12692,12692],"mapped",[19977]],[[12693,12693],"mapped",[22235]],[[12694,12694],"mapped",[19978]],[[12695,12695],"mapped",[20013]],[[12696,12696],"mapped",[19979]],[[12697,12697],"mapped",[30002]],[[12698,12698],"mapped",[20057]],[[12699,12699],"mapped",[19993]],[[12700,12700],"mapped",[19969]],[[12701,12701],"mapped",[22825]],[[12702,12702],"mapped",[22320]],[[12703,12703],"mapped",[20154]],[[12704,12727],"valid"],[[12728,12730],"valid"],[[12731,12735],"disallowed"],[[12736,12751],"valid",[],"NV8"],[[12752,12771],"valid",[],"NV8"],[[12772,12783],"disallowed"],[[12784,12799],"valid"],[[12800,12800],"disallowed_STD3_mapped",[40,4352,41]],[[12801,12801],"disallowed_STD3_mapped",[40,4354,41]],[[12802,12802],"disallowed_STD3_mapped",[40,4355,41]],[[12803,12803],"disallowed_STD3_mapped",[40,4357,41]],[[12804,12804],"disallowed_STD3_mapped",[40,4358,41]],[[12805,12805],"disallowed_STD3_mapped",[40,4359,41]],[[12806,12806],"disallowed_STD3_mapped",[40,4361,41]],[[12807,12807],"disallowed_STD3_mapped",[40,4363,41]],[[12808,12808],"disallowed_STD3_mapped",[40,4364,41]],[[12809,12809],"disallowed_STD3_mapped",[40,4366,41]],[[12810,12810],"disallowed_STD3_mapped",[40,4367,41]],[[12811,12811],"disallowed_STD3_mapped",[40,4368,41]],[[12812,12812],"disallowed_STD3_mapped",[40,4369,41]],[[12813,12813],"disallowed_STD3_mapped",[40,4370,41]],[[12814,12814],"disallowed_STD3_mapped",[40,44032,41]],[[12815,12815],"disallowed_STD3_mapped",[40,45208,41]],[[12816,12816],"disallowed_STD3_mapped",[40,45796,41]],[[12817,12817],"disallowed_STD3_mapped",[40,46972,41]],[[12818,12818],"disallowed_STD3_mapped",[40,47560,41]],[[12819,12819],"disallowed_STD3_mapped",[40,48148,41]],[[12820,12820],"disallowed_STD3_mapped",[40,49324,41]],[[12821,12821],"disallowed_STD3_mapped",[40,50500,41]],[[12822,12822],"disallowed_STD3_mapped",[40,51088,41]],[[12823,12823],"disallowed_STD3_mapped",[40,52264,41]],[[12824,12824],"disallowed_STD3_mapped",[40,52852,41]],[[12825,12825],"disallowed_STD3_mapped",[40,53440,41]],[[12826,12826],"disallowed_STD3_mapped",[40,54028,41]],[[12827,12827],"disallowed_STD3_mapped",[40,54616,41]],[[12828,12828],"disallowed_STD3_mapped",[40,51452,41]],[[12829,12829],"disallowed_STD3_mapped",[40,50724,51204,41]],[[12830,12830],"disallowed_STD3_mapped",[40,50724,54980,41]],[[12831,12831],"disallowed"],[[12832,12832],"disallowed_STD3_mapped",[40,19968,41]],[[12833,12833],"disallowed_STD3_mapped",[40,20108,41]],[[12834,12834],"disallowed_STD3_mapped",[40,19977,41]],[[12835,12835],"disallowed_STD3_mapped",[40,22235,41]],[[12836,12836],"disallowed_STD3_mapped",[40,20116,41]],[[12837,12837],"disallowed_STD3_mapped",[40,20845,41]],[[12838,12838],"disallowed_STD3_mapped",[40,19971,41]],[[12839,12839],"disallowed_STD3_mapped",[40,20843,41]],[[12840,12840],"disallowed_STD3_mapped",[40,20061,41]],[[12841,12841],"disallowed_STD3_mapped",[40,21313,41]],[[12842,12842],"disallowed_STD3_mapped",[40,26376,41]],[[12843,12843],"disallowed_STD3_mapped",[40,28779,41]],[[12844,12844],"disallowed_STD3_mapped",[40,27700,41]],[[12845,12845],"disallowed_STD3_mapped",[40,26408,41]],[[12846,12846],"disallowed_STD3_mapped",[40,37329,41]],[[12847,12847],"disallowed_STD3_mapped",[40,22303,41]],[[12848,12848],"disallowed_STD3_mapped",[40,26085,41]],[[12849,12849],"disallowed_STD3_mapped",[40,26666,41]],[[12850,12850],"disallowed_STD3_mapped",[40,26377,41]],[[12851,12851],"disallowed_STD3_mapped",[40,31038,41]],[[12852,12852],"disallowed_STD3_mapped",[40,21517,41]],[[12853,12853],"disallowed_STD3_mapped",[40,29305,41]],[[12854,12854],"disallowed_STD3_mapped",[40,36001,41]],[[12855,12855],"disallowed_STD3_mapped",[40,31069,41]],[[12856,12856],"disallowed_STD3_mapped",[40,21172,41]],[[12857,12857],"disallowed_STD3_mapped",[40,20195,41]],[[12858,12858],"disallowed_STD3_mapped",[40,21628,41]],[[12859,12859],"disallowed_STD3_mapped",[40,23398,41]],[[12860,12860],"disallowed_STD3_mapped",[40,30435,41]],[[12861,12861],"disallowed_STD3_mapped",[40,20225,41]],[[12862,12862],"disallowed_STD3_mapped",[40,36039,41]],[[12863,12863],"disallowed_STD3_mapped",[40,21332,41]],[[12864,12864],"disallowed_STD3_mapped",[40,31085,41]],[[12865,12865],"disallowed_STD3_mapped",[40,20241,41]],[[12866,12866],"disallowed_STD3_mapped",[40,33258,41]],[[12867,12867],"disallowed_STD3_mapped",[40,33267,41]],[[12868,12868],"mapped",[21839]],[[12869,12869],"mapped",[24188]],[[12870,12870],"mapped",[25991]],[[12871,12871],"mapped",[31631]],[[12872,12879],"valid",[],"NV8"],[[12880,12880],"mapped",[112,116,101]],[[12881,12881],"mapped",[50,49]],[[12882,12882],"mapped",[50,50]],[[12883,12883],"mapped",[50,51]],[[12884,12884],"mapped",[50,52]],[[12885,12885],"mapped",[50,53]],[[12886,12886],"mapped",[50,54]],[[12887,12887],"mapped",[50,55]],[[12888,12888],"mapped",[50,56]],[[12889,12889],"mapped",[50,57]],[[12890,12890],"mapped",[51,48]],[[12891,12891],"mapped",[51,49]],[[12892,12892],"mapped",[51,50]],[[12893,12893],"mapped",[51,51]],[[12894,12894],"mapped",[51,52]],[[12895,12895],"mapped",[51,53]],[[12896,12896],"mapped",[4352]],[[12897,12897],"mapped",[4354]],[[12898,12898],"mapped",[4355]],[[12899,12899],"mapped",[4357]],[[12900,12900],"mapped",[4358]],[[12901,12901],"mapped",[4359]],[[12902,12902],"mapped",[4361]],[[12903,12903],"mapped",[4363]],[[12904,12904],"mapped",[4364]],[[12905,12905],"mapped",[4366]],[[12906,12906],"mapped",[4367]],[[12907,12907],"mapped",[4368]],[[12908,12908],"mapped",[4369]],[[12909,12909],"mapped",[4370]],[[12910,12910],"mapped",[44032]],[[12911,12911],"mapped",[45208]],[[12912,12912],"mapped",[45796]],[[12913,12913],"mapped",[46972]],[[12914,12914],"mapped",[47560]],[[12915,12915],"mapped",[48148]],[[12916,12916],"mapped",[49324]],[[12917,12917],"mapped",[50500]],[[12918,12918],"mapped",[51088]],[[12919,12919],"mapped",[52264]],[[12920,12920],"mapped",[52852]],[[12921,12921],"mapped",[53440]],[[12922,12922],"mapped",[54028]],[[12923,12923],"mapped",[54616]],[[12924,12924],"mapped",[52280,44256]],[[12925,12925],"mapped",[51452,51032]],[[12926,12926],"mapped",[50864]],[[12927,12927],"valid",[],"NV8"],[[12928,12928],"mapped",[19968]],[[12929,12929],"mapped",[20108]],[[12930,12930],"mapped",[19977]],[[12931,12931],"mapped",[22235]],[[12932,12932],"mapped",[20116]],[[12933,12933],"mapped",[20845]],[[12934,12934],"mapped",[19971]],[[12935,12935],"mapped",[20843]],[[12936,12936],"mapped",[20061]],[[12937,12937],"mapped",[21313]],[[12938,12938],"mapped",[26376]],[[12939,12939],"mapped",[28779]],[[12940,12940],"mapped",[27700]],[[12941,12941],"mapped",[26408]],[[12942,12942],"mapped",[37329]],[[12943,12943],"mapped",[22303]],[[12944,12944],"mapped",[26085]],[[12945,12945],"mapped",[26666]],[[12946,12946],"mapped",[26377]],[[12947,12947],"mapped",[31038]],[[12948,12948],"mapped",[21517]],[[12949,12949],"mapped",[29305]],[[12950,12950],"mapped",[36001]],[[12951,12951],"mapped",[31069]],[[12952,12952],"mapped",[21172]],[[12953,12953],"mapped",[31192]],[[12954,12954],"mapped",[30007]],[[12955,12955],"mapped",[22899]],[[12956,12956],"mapped",[36969]],[[12957,12957],"mapped",[20778]],[[12958,12958],"mapped",[21360]],[[12959,12959],"mapped",[27880]],[[12960,12960],"mapped",[38917]],[[12961,12961],"mapped",[20241]],[[12962,12962],"mapped",[20889]],[[12963,12963],"mapped",[27491]],[[12964,12964],"mapped",[19978]],[[12965,12965],"mapped",[20013]],[[12966,12966],"mapped",[19979]],[[12967,12967],"mapped",[24038]],[[12968,12968],"mapped",[21491]],[[12969,12969],"mapped",[21307]],[[12970,12970],"mapped",[23447]],[[12971,12971],"mapped",[23398]],[[12972,12972],"mapped",[30435]],[[12973,12973],"mapped",[20225]],[[12974,12974],"mapped",[36039]],[[12975,12975],"mapped",[21332]],[[12976,12976],"mapped",[22812]],[[12977,12977],"mapped",[51,54]],[[12978,12978],"mapped",[51,55]],[[12979,12979],"mapped",[51,56]],[[12980,12980],"mapped",[51,57]],[[12981,12981],"mapped",[52,48]],[[12982,12982],"mapped",[52,49]],[[12983,12983],"mapped",[52,50]],[[12984,12984],"mapped",[52,51]],[[12985,12985],"mapped",[52,52]],[[12986,12986],"mapped",[52,53]],[[12987,12987],"mapped",[52,54]],[[12988,12988],"mapped",[52,55]],[[12989,12989],"mapped",[52,56]],[[12990,12990],"mapped",[52,57]],[[12991,12991],"mapped",[53,48]],[[12992,12992],"mapped",[49,26376]],[[12993,12993],"mapped",[50,26376]],[[12994,12994],"mapped",[51,26376]],[[12995,12995],"mapped",[52,26376]],[[12996,12996],"mapped",[53,26376]],[[12997,12997],"mapped",[54,26376]],[[12998,12998],"mapped",[55,26376]],[[12999,12999],"mapped",[56,26376]],[[13e3,13e3],"mapped",[57,26376]],[[13001,13001],"mapped",[49,48,26376]],[[13002,13002],"mapped",[49,49,26376]],[[13003,13003],"mapped",[49,50,26376]],[[13004,13004],"mapped",[104,103]],[[13005,13005],"mapped",[101,114,103]],[[13006,13006],"mapped",[101,118]],[[13007,13007],"mapped",[108,116,100]],[[13008,13008],"mapped",[12450]],[[13009,13009],"mapped",[12452]],[[13010,13010],"mapped",[12454]],[[13011,13011],"mapped",[12456]],[[13012,13012],"mapped",[12458]],[[13013,13013],"mapped",[12459]],[[13014,13014],"mapped",[12461]],[[13015,13015],"mapped",[12463]],[[13016,13016],"mapped",[12465]],[[13017,13017],"mapped",[12467]],[[13018,13018],"mapped",[12469]],[[13019,13019],"mapped",[12471]],[[13020,13020],"mapped",[12473]],[[13021,13021],"mapped",[12475]],[[13022,13022],"mapped",[12477]],[[13023,13023],"mapped",[12479]],[[13024,13024],"mapped",[12481]],[[13025,13025],"mapped",[12484]],[[13026,13026],"mapped",[12486]],[[13027,13027],"mapped",[12488]],[[13028,13028],"mapped",[12490]],[[13029,13029],"mapped",[12491]],[[13030,13030],"mapped",[12492]],[[13031,13031],"mapped",[12493]],[[13032,13032],"mapped",[12494]],[[13033,13033],"mapped",[12495]],[[13034,13034],"mapped",[12498]],[[13035,13035],"mapped",[12501]],[[13036,13036],"mapped",[12504]],[[13037,13037],"mapped",[12507]],[[13038,13038],"mapped",[12510]],[[13039,13039],"mapped",[12511]],[[13040,13040],"mapped",[12512]],[[13041,13041],"mapped",[12513]],[[13042,13042],"mapped",[12514]],[[13043,13043],"mapped",[12516]],[[13044,13044],"mapped",[12518]],[[13045,13045],"mapped",[12520]],[[13046,13046],"mapped",[12521]],[[13047,13047],"mapped",[12522]],[[13048,13048],"mapped",[12523]],[[13049,13049],"mapped",[12524]],[[13050,13050],"mapped",[12525]],[[13051,13051],"mapped",[12527]],[[13052,13052],"mapped",[12528]],[[13053,13053],"mapped",[12529]],[[13054,13054],"mapped",[12530]],[[13055,13055],"disallowed"],[[13056,13056],"mapped",[12450,12497,12540,12488]],[[13057,13057],"mapped",[12450,12523,12501,12449]],[[13058,13058],"mapped",[12450,12531,12506,12450]],[[13059,13059],"mapped",[12450,12540,12523]],[[13060,13060],"mapped",[12452,12491,12531,12464]],[[13061,13061],"mapped",[12452,12531,12481]],[[13062,13062],"mapped",[12454,12457,12531]],[[13063,13063],"mapped",[12456,12473,12463,12540,12489]],[[13064,13064],"mapped",[12456,12540,12459,12540]],[[13065,13065],"mapped",[12458,12531,12473]],[[13066,13066],"mapped",[12458,12540,12512]],[[13067,13067],"mapped",[12459,12452,12522]],[[13068,13068],"mapped",[12459,12521,12483,12488]],[[13069,13069],"mapped",[12459,12525,12522,12540]],[[13070,13070],"mapped",[12460,12525,12531]],[[13071,13071],"mapped",[12460,12531,12510]],[[13072,13072],"mapped",[12462,12460]],[[13073,13073],"mapped",[12462,12491,12540]],[[13074,13074],"mapped",[12461,12517,12522,12540]],[[13075,13075],"mapped",[12462,12523,12480,12540]],[[13076,13076],"mapped",[12461,12525]],[[13077,13077],"mapped",[12461,12525,12464,12521,12512]],[[13078,13078],"mapped",[12461,12525,12513,12540,12488,12523]],[[13079,13079],"mapped",[12461,12525,12527,12483,12488]],[[13080,13080],"mapped",[12464,12521,12512]],[[13081,13081],"mapped",[12464,12521,12512,12488,12531]],[[13082,13082],"mapped",[12463,12523,12476,12452,12525]],[[13083,13083],"mapped",[12463,12525,12540,12493]],[[13084,13084],"mapped",[12465,12540,12473]],[[13085,13085],"mapped",[12467,12523,12490]],[[13086,13086],"mapped",[12467,12540,12509]],[[13087,13087],"mapped",[12469,12452,12463,12523]],[[13088,13088],"mapped",[12469,12531,12481,12540,12512]],[[13089,13089],"mapped",[12471,12522,12531,12464]],[[13090,13090],"mapped",[12475,12531,12481]],[[13091,13091],"mapped",[12475,12531,12488]],[[13092,13092],"mapped",[12480,12540,12473]],[[13093,13093],"mapped",[12487,12471]],[[13094,13094],"mapped",[12489,12523]],[[13095,13095],"mapped",[12488,12531]],[[13096,13096],"mapped",[12490,12494]],[[13097,13097],"mapped",[12494,12483,12488]],[[13098,13098],"mapped",[12495,12452,12484]],[[13099,13099],"mapped",[12497,12540,12475,12531,12488]],[[13100,13100],"mapped",[12497,12540,12484]],[[13101,13101],"mapped",[12496,12540,12524,12523]],[[13102,13102],"mapped",[12500,12450,12473,12488,12523]],[[13103,13103],"mapped",[12500,12463,12523]],[[13104,13104],"mapped",[12500,12467]],[[13105,13105],"mapped",[12499,12523]],[[13106,13106],"mapped",[12501,12449,12521,12483,12489]],[[13107,13107],"mapped",[12501,12451,12540,12488]],[[13108,13108],"mapped",[12502,12483,12471,12455,12523]],[[13109,13109],"mapped",[12501,12521,12531]],[[13110,13110],"mapped",[12504,12463,12479,12540,12523]],[[13111,13111],"mapped",[12506,12477]],[[13112,13112],"mapped",[12506,12491,12498]],[[13113,13113],"mapped",[12504,12523,12484]],[[13114,13114],"mapped",[12506,12531,12473]],[[13115,13115],"mapped",[12506,12540,12472]],[[13116,13116],"mapped",[12505,12540,12479]],[[13117,13117],"mapped",[12509,12452,12531,12488]],[[13118,13118],"mapped",[12508,12523,12488]],[[13119,13119],"mapped",[12507,12531]],[[13120,13120],"mapped",[12509,12531,12489]],[[13121,13121],"mapped",[12507,12540,12523]],[[13122,13122],"mapped",[12507,12540,12531]],[[13123,13123],"mapped",[12510,12452,12463,12525]],[[13124,13124],"mapped",[12510,12452,12523]],[[13125,13125],"mapped",[12510,12483,12495]],[[13126,13126],"mapped",[12510,12523,12463]],[[13127,13127],"mapped",[12510,12531,12471,12519,12531]],[[13128,13128],"mapped",[12511,12463,12525,12531]],[[13129,13129],"mapped",[12511,12522]],[[13130,13130],"mapped",[12511,12522,12496,12540,12523]],[[13131,13131],"mapped",[12513,12460]],[[13132,13132],"mapped",[12513,12460,12488,12531]],[[13133,13133],"mapped",[12513,12540,12488,12523]],[[13134,13134],"mapped",[12516,12540,12489]],[[13135,13135],"mapped",[12516,12540,12523]],[[13136,13136],"mapped",[12518,12450,12531]],[[13137,13137],"mapped",[12522,12483,12488,12523]],[[13138,13138],"mapped",[12522,12521]],[[13139,13139],"mapped",[12523,12500,12540]],[[13140,13140],"mapped",[12523,12540,12502,12523]],[[13141,13141],"mapped",[12524,12512]],[[13142,13142],"mapped",[12524,12531,12488,12466,12531]],[[13143,13143],"mapped",[12527,12483,12488]],[[13144,13144],"mapped",[48,28857]],[[13145,13145],"mapped",[49,28857]],[[13146,13146],"mapped",[50,28857]],[[13147,13147],"mapped",[51,28857]],[[13148,13148],"mapped",[52,28857]],[[13149,13149],"mapped",[53,28857]],[[13150,13150],"mapped",[54,28857]],[[13151,13151],"mapped",[55,28857]],[[13152,13152],"mapped",[56,28857]],[[13153,13153],"mapped",[57,28857]],[[13154,13154],"mapped",[49,48,28857]],[[13155,13155],"mapped",[49,49,28857]],[[13156,13156],"mapped",[49,50,28857]],[[13157,13157],"mapped",[49,51,28857]],[[13158,13158],"mapped",[49,52,28857]],[[13159,13159],"mapped",[49,53,28857]],[[13160,13160],"mapped",[49,54,28857]],[[13161,13161],"mapped",[49,55,28857]],[[13162,13162],"mapped",[49,56,28857]],[[13163,13163],"mapped",[49,57,28857]],[[13164,13164],"mapped",[50,48,28857]],[[13165,13165],"mapped",[50,49,28857]],[[13166,13166],"mapped",[50,50,28857]],[[13167,13167],"mapped",[50,51,28857]],[[13168,13168],"mapped",[50,52,28857]],[[13169,13169],"mapped",[104,112,97]],[[13170,13170],"mapped",[100,97]],[[13171,13171],"mapped",[97,117]],[[13172,13172],"mapped",[98,97,114]],[[13173,13173],"mapped",[111,118]],[[13174,13174],"mapped",[112,99]],[[13175,13175],"mapped",[100,109]],[[13176,13176],"mapped",[100,109,50]],[[13177,13177],"mapped",[100,109,51]],[[13178,13178],"mapped",[105,117]],[[13179,13179],"mapped",[24179,25104]],[[13180,13180],"mapped",[26157,21644]],[[13181,13181],"mapped",[22823,27491]],[[13182,13182],"mapped",[26126,27835]],[[13183,13183],"mapped",[26666,24335,20250,31038]],[[13184,13184],"mapped",[112,97]],[[13185,13185],"mapped",[110,97]],[[13186,13186],"mapped",[956,97]],[[13187,13187],"mapped",[109,97]],[[13188,13188],"mapped",[107,97]],[[13189,13189],"mapped",[107,98]],[[13190,13190],"mapped",[109,98]],[[13191,13191],"mapped",[103,98]],[[13192,13192],"mapped",[99,97,108]],[[13193,13193],"mapped",[107,99,97,108]],[[13194,13194],"mapped",[112,102]],[[13195,13195],"mapped",[110,102]],[[13196,13196],"mapped",[956,102]],[[13197,13197],"mapped",[956,103]],[[13198,13198],"mapped",[109,103]],[[13199,13199],"mapped",[107,103]],[[13200,13200],"mapped",[104,122]],[[13201,13201],"mapped",[107,104,122]],[[13202,13202],"mapped",[109,104,122]],[[13203,13203],"mapped",[103,104,122]],[[13204,13204],"mapped",[116,104,122]],[[13205,13205],"mapped",[956,108]],[[13206,13206],"mapped",[109,108]],[[13207,13207],"mapped",[100,108]],[[13208,13208],"mapped",[107,108]],[[13209,13209],"mapped",[102,109]],[[13210,13210],"mapped",[110,109]],[[13211,13211],"mapped",[956,109]],[[13212,13212],"mapped",[109,109]],[[13213,13213],"mapped",[99,109]],[[13214,13214],"mapped",[107,109]],[[13215,13215],"mapped",[109,109,50]],[[13216,13216],"mapped",[99,109,50]],[[13217,13217],"mapped",[109,50]],[[13218,13218],"mapped",[107,109,50]],[[13219,13219],"mapped",[109,109,51]],[[13220,13220],"mapped",[99,109,51]],[[13221,13221],"mapped",[109,51]],[[13222,13222],"mapped",[107,109,51]],[[13223,13223],"mapped",[109,8725,115]],[[13224,13224],"mapped",[109,8725,115,50]],[[13225,13225],"mapped",[112,97]],[[13226,13226],"mapped",[107,112,97]],[[13227,13227],"mapped",[109,112,97]],[[13228,13228],"mapped",[103,112,97]],[[13229,13229],"mapped",[114,97,100]],[[13230,13230],"mapped",[114,97,100,8725,115]],[[13231,13231],"mapped",[114,97,100,8725,115,50]],[[13232,13232],"mapped",[112,115]],[[13233,13233],"mapped",[110,115]],[[13234,13234],"mapped",[956,115]],[[13235,13235],"mapped",[109,115]],[[13236,13236],"mapped",[112,118]],[[13237,13237],"mapped",[110,118]],[[13238,13238],"mapped",[956,118]],[[13239,13239],"mapped",[109,118]],[[13240,13240],"mapped",[107,118]],[[13241,13241],"mapped",[109,118]],[[13242,13242],"mapped",[112,119]],[[13243,13243],"mapped",[110,119]],[[13244,13244],"mapped",[956,119]],[[13245,13245],"mapped",[109,119]],[[13246,13246],"mapped",[107,119]],[[13247,13247],"mapped",[109,119]],[[13248,13248],"mapped",[107,969]],[[13249,13249],"mapped",[109,969]],[[13250,13250],"disallowed"],[[13251,13251],"mapped",[98,113]],[[13252,13252],"mapped",[99,99]],[[13253,13253],"mapped",[99,100]],[[13254,13254],"mapped",[99,8725,107,103]],[[13255,13255],"disallowed"],[[13256,13256],"mapped",[100,98]],[[13257,13257],"mapped",[103,121]],[[13258,13258],"mapped",[104,97]],[[13259,13259],"mapped",[104,112]],[[13260,13260],"mapped",[105,110]],[[13261,13261],"mapped",[107,107]],[[13262,13262],"mapped",[107,109]],[[13263,13263],"mapped",[107,116]],[[13264,13264],"mapped",[108,109]],[[13265,13265],"mapped",[108,110]],[[13266,13266],"mapped",[108,111,103]],[[13267,13267],"mapped",[108,120]],[[13268,13268],"mapped",[109,98]],[[13269,13269],"mapped",[109,105,108]],[[13270,13270],"mapped",[109,111,108]],[[13271,13271],"mapped",[112,104]],[[13272,13272],"disallowed"],[[13273,13273],"mapped",[112,112,109]],[[13274,13274],"mapped",[112,114]],[[13275,13275],"mapped",[115,114]],[[13276,13276],"mapped",[115,118]],[[13277,13277],"mapped",[119,98]],[[13278,13278],"mapped",[118,8725,109]],[[13279,13279],"mapped",[97,8725,109]],[[13280,13280],"mapped",[49,26085]],[[13281,13281],"mapped",[50,26085]],[[13282,13282],"mapped",[51,26085]],[[13283,13283],"mapped",[52,26085]],[[13284,13284],"mapped",[53,26085]],[[13285,13285],"mapped",[54,26085]],[[13286,13286],"mapped",[55,26085]],[[13287,13287],"mapped",[56,26085]],[[13288,13288],"mapped",[57,26085]],[[13289,13289],"mapped",[49,48,26085]],[[13290,13290],"mapped",[49,49,26085]],[[13291,13291],"mapped",[49,50,26085]],[[13292,13292],"mapped",[49,51,26085]],[[13293,13293],"mapped",[49,52,26085]],[[13294,13294],"mapped",[49,53,26085]],[[13295,13295],"mapped",[49,54,26085]],[[13296,13296],"mapped",[49,55,26085]],[[13297,13297],"mapped",[49,56,26085]],[[13298,13298],"mapped",[49,57,26085]],[[13299,13299],"mapped",[50,48,26085]],[[13300,13300],"mapped",[50,49,26085]],[[13301,13301],"mapped",[50,50,26085]],[[13302,13302],"mapped",[50,51,26085]],[[13303,13303],"mapped",[50,52,26085]],[[13304,13304],"mapped",[50,53,26085]],[[13305,13305],"mapped",[50,54,26085]],[[13306,13306],"mapped",[50,55,26085]],[[13307,13307],"mapped",[50,56,26085]],[[13308,13308],"mapped",[50,57,26085]],[[13309,13309],"mapped",[51,48,26085]],[[13310,13310],"mapped",[51,49,26085]],[[13311,13311],"mapped",[103,97,108]],[[13312,19893],"valid"],[[19894,19903],"disallowed"],[[19904,19967],"valid",[],"NV8"],[[19968,40869],"valid"],[[40870,40891],"valid"],[[40892,40899],"valid"],[[40900,40907],"valid"],[[40908,40908],"valid"],[[40909,40917],"valid"],[[40918,40959],"disallowed"],[[40960,42124],"valid"],[[42125,42127],"disallowed"],[[42128,42145],"valid",[],"NV8"],[[42146,42147],"valid",[],"NV8"],[[42148,42163],"valid",[],"NV8"],[[42164,42164],"valid",[],"NV8"],[[42165,42176],"valid",[],"NV8"],[[42177,42177],"valid",[],"NV8"],[[42178,42180],"valid",[],"NV8"],[[42181,42181],"valid",[],"NV8"],[[42182,42182],"valid",[],"NV8"],[[42183,42191],"disallowed"],[[42192,42237],"valid"],[[42238,42239],"valid",[],"NV8"],[[42240,42508],"valid"],[[42509,42511],"valid",[],"NV8"],[[42512,42539],"valid"],[[42540,42559],"disallowed"],[[42560,42560],"mapped",[42561]],[[42561,42561],"valid"],[[42562,42562],"mapped",[42563]],[[42563,42563],"valid"],[[42564,42564],"mapped",[42565]],[[42565,42565],"valid"],[[42566,42566],"mapped",[42567]],[[42567,42567],"valid"],[[42568,42568],"mapped",[42569]],[[42569,42569],"valid"],[[42570,42570],"mapped",[42571]],[[42571,42571],"valid"],[[42572,42572],"mapped",[42573]],[[42573,42573],"valid"],[[42574,42574],"mapped",[42575]],[[42575,42575],"valid"],[[42576,42576],"mapped",[42577]],[[42577,42577],"valid"],[[42578,42578],"mapped",[42579]],[[42579,42579],"valid"],[[42580,42580],"mapped",[42581]],[[42581,42581],"valid"],[[42582,42582],"mapped",[42583]],[[42583,42583],"valid"],[[42584,42584],"mapped",[42585]],[[42585,42585],"valid"],[[42586,42586],"mapped",[42587]],[[42587,42587],"valid"],[[42588,42588],"mapped",[42589]],[[42589,42589],"valid"],[[42590,42590],"mapped",[42591]],[[42591,42591],"valid"],[[42592,42592],"mapped",[42593]],[[42593,42593],"valid"],[[42594,42594],"mapped",[42595]],[[42595,42595],"valid"],[[42596,42596],"mapped",[42597]],[[42597,42597],"valid"],[[42598,42598],"mapped",[42599]],[[42599,42599],"valid"],[[42600,42600],"mapped",[42601]],[[42601,42601],"valid"],[[42602,42602],"mapped",[42603]],[[42603,42603],"valid"],[[42604,42604],"mapped",[42605]],[[42605,42607],"valid"],[[42608,42611],"valid",[],"NV8"],[[42612,42619],"valid"],[[42620,42621],"valid"],[[42622,42622],"valid",[],"NV8"],[[42623,42623],"valid"],[[42624,42624],"mapped",[42625]],[[42625,42625],"valid"],[[42626,42626],"mapped",[42627]],[[42627,42627],"valid"],[[42628,42628],"mapped",[42629]],[[42629,42629],"valid"],[[42630,42630],"mapped",[42631]],[[42631,42631],"valid"],[[42632,42632],"mapped",[42633]],[[42633,42633],"valid"],[[42634,42634],"mapped",[42635]],[[42635,42635],"valid"],[[42636,42636],"mapped",[42637]],[[42637,42637],"valid"],[[42638,42638],"mapped",[42639]],[[42639,42639],"valid"],[[42640,42640],"mapped",[42641]],[[42641,42641],"valid"],[[42642,42642],"mapped",[42643]],[[42643,42643],"valid"],[[42644,42644],"mapped",[42645]],[[42645,42645],"valid"],[[42646,42646],"mapped",[42647]],[[42647,42647],"valid"],[[42648,42648],"mapped",[42649]],[[42649,42649],"valid"],[[42650,42650],"mapped",[42651]],[[42651,42651],"valid"],[[42652,42652],"mapped",[1098]],[[42653,42653],"mapped",[1100]],[[42654,42654],"valid"],[[42655,42655],"valid"],[[42656,42725],"valid"],[[42726,42735],"valid",[],"NV8"],[[42736,42737],"valid"],[[42738,42743],"valid",[],"NV8"],[[42744,42751],"disallowed"],[[42752,42774],"valid",[],"NV8"],[[42775,42778],"valid"],[[42779,42783],"valid"],[[42784,42785],"valid",[],"NV8"],[[42786,42786],"mapped",[42787]],[[42787,42787],"valid"],[[42788,42788],"mapped",[42789]],[[42789,42789],"valid"],[[42790,42790],"mapped",[42791]],[[42791,42791],"valid"],[[42792,42792],"mapped",[42793]],[[42793,42793],"valid"],[[42794,42794],"mapped",[42795]],[[42795,42795],"valid"],[[42796,42796],"mapped",[42797]],[[42797,42797],"valid"],[[42798,42798],"mapped",[42799]],[[42799,42801],"valid"],[[42802,42802],"mapped",[42803]],[[42803,42803],"valid"],[[42804,42804],"mapped",[42805]],[[42805,42805],"valid"],[[42806,42806],"mapped",[42807]],[[42807,42807],"valid"],[[42808,42808],"mapped",[42809]],[[42809,42809],"valid"],[[42810,42810],"mapped",[42811]],[[42811,42811],"valid"],[[42812,42812],"mapped",[42813]],[[42813,42813],"valid"],[[42814,42814],"mapped",[42815]],[[42815,42815],"valid"],[[42816,42816],"mapped",[42817]],[[42817,42817],"valid"],[[42818,42818],"mapped",[42819]],[[42819,42819],"valid"],[[42820,42820],"mapped",[42821]],[[42821,42821],"valid"],[[42822,42822],"mapped",[42823]],[[42823,42823],"valid"],[[42824,42824],"mapped",[42825]],[[42825,42825],"valid"],[[42826,42826],"mapped",[42827]],[[42827,42827],"valid"],[[42828,42828],"mapped",[42829]],[[42829,42829],"valid"],[[42830,42830],"mapped",[42831]],[[42831,42831],"valid"],[[42832,42832],"mapped",[42833]],[[42833,42833],"valid"],[[42834,42834],"mapped",[42835]],[[42835,42835],"valid"],[[42836,42836],"mapped",[42837]],[[42837,42837],"valid"],[[42838,42838],"mapped",[42839]],[[42839,42839],"valid"],[[42840,42840],"mapped",[42841]],[[42841,42841],"valid"],[[42842,42842],"mapped",[42843]],[[42843,42843],"valid"],[[42844,42844],"mapped",[42845]],[[42845,42845],"valid"],[[42846,42846],"mapped",[42847]],[[42847,42847],"valid"],[[42848,42848],"mapped",[42849]],[[42849,42849],"valid"],[[42850,42850],"mapped",[42851]],[[42851,42851],"valid"],[[42852,42852],"mapped",[42853]],[[42853,42853],"valid"],[[42854,42854],"mapped",[42855]],[[42855,42855],"valid"],[[42856,42856],"mapped",[42857]],[[42857,42857],"valid"],[[42858,42858],"mapped",[42859]],[[42859,42859],"valid"],[[42860,42860],"mapped",[42861]],[[42861,42861],"valid"],[[42862,42862],"mapped",[42863]],[[42863,42863],"valid"],[[42864,42864],"mapped",[42863]],[[42865,42872],"valid"],[[42873,42873],"mapped",[42874]],[[42874,42874],"valid"],[[42875,42875],"mapped",[42876]],[[42876,42876],"valid"],[[42877,42877],"mapped",[7545]],[[42878,42878],"mapped",[42879]],[[42879,42879],"valid"],[[42880,42880],"mapped",[42881]],[[42881,42881],"valid"],[[42882,42882],"mapped",[42883]],[[42883,42883],"valid"],[[42884,42884],"mapped",[42885]],[[42885,42885],"valid"],[[42886,42886],"mapped",[42887]],[[42887,42888],"valid"],[[42889,42890],"valid",[],"NV8"],[[42891,42891],"mapped",[42892]],[[42892,42892],"valid"],[[42893,42893],"mapped",[613]],[[42894,42894],"valid"],[[42895,42895],"valid"],[[42896,42896],"mapped",[42897]],[[42897,42897],"valid"],[[42898,42898],"mapped",[42899]],[[42899,42899],"valid"],[[42900,42901],"valid"],[[42902,42902],"mapped",[42903]],[[42903,42903],"valid"],[[42904,42904],"mapped",[42905]],[[42905,42905],"valid"],[[42906,42906],"mapped",[42907]],[[42907,42907],"valid"],[[42908,42908],"mapped",[42909]],[[42909,42909],"valid"],[[42910,42910],"mapped",[42911]],[[42911,42911],"valid"],[[42912,42912],"mapped",[42913]],[[42913,42913],"valid"],[[42914,42914],"mapped",[42915]],[[42915,42915],"valid"],[[42916,42916],"mapped",[42917]],[[42917,42917],"valid"],[[42918,42918],"mapped",[42919]],[[42919,42919],"valid"],[[42920,42920],"mapped",[42921]],[[42921,42921],"valid"],[[42922,42922],"mapped",[614]],[[42923,42923],"mapped",[604]],[[42924,42924],"mapped",[609]],[[42925,42925],"mapped",[620]],[[42926,42927],"disallowed"],[[42928,42928],"mapped",[670]],[[42929,42929],"mapped",[647]],[[42930,42930],"mapped",[669]],[[42931,42931],"mapped",[43859]],[[42932,42932],"mapped",[42933]],[[42933,42933],"valid"],[[42934,42934],"mapped",[42935]],[[42935,42935],"valid"],[[42936,42998],"disallowed"],[[42999,42999],"valid"],[[43e3,43e3],"mapped",[295]],[[43001,43001],"mapped",[339]],[[43002,43002],"valid"],[[43003,43007],"valid"],[[43008,43047],"valid"],[[43048,43051],"valid",[],"NV8"],[[43052,43055],"disallowed"],[[43056,43065],"valid",[],"NV8"],[[43066,43071],"disallowed"],[[43072,43123],"valid"],[[43124,43127],"valid",[],"NV8"],[[43128,43135],"disallowed"],[[43136,43204],"valid"],[[43205,43213],"disallowed"],[[43214,43215],"valid",[],"NV8"],[[43216,43225],"valid"],[[43226,43231],"disallowed"],[[43232,43255],"valid"],[[43256,43258],"valid",[],"NV8"],[[43259,43259],"valid"],[[43260,43260],"valid",[],"NV8"],[[43261,43261],"valid"],[[43262,43263],"disallowed"],[[43264,43309],"valid"],[[43310,43311],"valid",[],"NV8"],[[43312,43347],"valid"],[[43348,43358],"disallowed"],[[43359,43359],"valid",[],"NV8"],[[43360,43388],"valid",[],"NV8"],[[43389,43391],"disallowed"],[[43392,43456],"valid"],[[43457,43469],"valid",[],"NV8"],[[43470,43470],"disallowed"],[[43471,43481],"valid"],[[43482,43485],"disallowed"],[[43486,43487],"valid",[],"NV8"],[[43488,43518],"valid"],[[43519,43519],"disallowed"],[[43520,43574],"valid"],[[43575,43583],"disallowed"],[[43584,43597],"valid"],[[43598,43599],"disallowed"],[[43600,43609],"valid"],[[43610,43611],"disallowed"],[[43612,43615],"valid",[],"NV8"],[[43616,43638],"valid"],[[43639,43641],"valid",[],"NV8"],[[43642,43643],"valid"],[[43644,43647],"valid"],[[43648,43714],"valid"],[[43715,43738],"disallowed"],[[43739,43741],"valid"],[[43742,43743],"valid",[],"NV8"],[[43744,43759],"valid"],[[43760,43761],"valid",[],"NV8"],[[43762,43766],"valid"],[[43767,43776],"disallowed"],[[43777,43782],"valid"],[[43783,43784],"disallowed"],[[43785,43790],"valid"],[[43791,43792],"disallowed"],[[43793,43798],"valid"],[[43799,43807],"disallowed"],[[43808,43814],"valid"],[[43815,43815],"disallowed"],[[43816,43822],"valid"],[[43823,43823],"disallowed"],[[43824,43866],"valid"],[[43867,43867],"valid",[],"NV8"],[[43868,43868],"mapped",[42791]],[[43869,43869],"mapped",[43831]],[[43870,43870],"mapped",[619]],[[43871,43871],"mapped",[43858]],[[43872,43875],"valid"],[[43876,43877],"valid"],[[43878,43887],"disallowed"],[[43888,43888],"mapped",[5024]],[[43889,43889],"mapped",[5025]],[[43890,43890],"mapped",[5026]],[[43891,43891],"mapped",[5027]],[[43892,43892],"mapped",[5028]],[[43893,43893],"mapped",[5029]],[[43894,43894],"mapped",[5030]],[[43895,43895],"mapped",[5031]],[[43896,43896],"mapped",[5032]],[[43897,43897],"mapped",[5033]],[[43898,43898],"mapped",[5034]],[[43899,43899],"mapped",[5035]],[[43900,43900],"mapped",[5036]],[[43901,43901],"mapped",[5037]],[[43902,43902],"mapped",[5038]],[[43903,43903],"mapped",[5039]],[[43904,43904],"mapped",[5040]],[[43905,43905],"mapped",[5041]],[[43906,43906],"mapped",[5042]],[[43907,43907],"mapped",[5043]],[[43908,43908],"mapped",[5044]],[[43909,43909],"mapped",[5045]],[[43910,43910],"mapped",[5046]],[[43911,43911],"mapped",[5047]],[[43912,43912],"mapped",[5048]],[[43913,43913],"mapped",[5049]],[[43914,43914],"mapped",[5050]],[[43915,43915],"mapped",[5051]],[[43916,43916],"mapped",[5052]],[[43917,43917],"mapped",[5053]],[[43918,43918],"mapped",[5054]],[[43919,43919],"mapped",[5055]],[[43920,43920],"mapped",[5056]],[[43921,43921],"mapped",[5057]],[[43922,43922],"mapped",[5058]],[[43923,43923],"mapped",[5059]],[[43924,43924],"mapped",[5060]],[[43925,43925],"mapped",[5061]],[[43926,43926],"mapped",[5062]],[[43927,43927],"mapped",[5063]],[[43928,43928],"mapped",[5064]],[[43929,43929],"mapped",[5065]],[[43930,43930],"mapped",[5066]],[[43931,43931],"mapped",[5067]],[[43932,43932],"mapped",[5068]],[[43933,43933],"mapped",[5069]],[[43934,43934],"mapped",[5070]],[[43935,43935],"mapped",[5071]],[[43936,43936],"mapped",[5072]],[[43937,43937],"mapped",[5073]],[[43938,43938],"mapped",[5074]],[[43939,43939],"mapped",[5075]],[[43940,43940],"mapped",[5076]],[[43941,43941],"mapped",[5077]],[[43942,43942],"mapped",[5078]],[[43943,43943],"mapped",[5079]],[[43944,43944],"mapped",[5080]],[[43945,43945],"mapped",[5081]],[[43946,43946],"mapped",[5082]],[[43947,43947],"mapped",[5083]],[[43948,43948],"mapped",[5084]],[[43949,43949],"mapped",[5085]],[[43950,43950],"mapped",[5086]],[[43951,43951],"mapped",[5087]],[[43952,43952],"mapped",[5088]],[[43953,43953],"mapped",[5089]],[[43954,43954],"mapped",[5090]],[[43955,43955],"mapped",[5091]],[[43956,43956],"mapped",[5092]],[[43957,43957],"mapped",[5093]],[[43958,43958],"mapped",[5094]],[[43959,43959],"mapped",[5095]],[[43960,43960],"mapped",[5096]],[[43961,43961],"mapped",[5097]],[[43962,43962],"mapped",[5098]],[[43963,43963],"mapped",[5099]],[[43964,43964],"mapped",[5100]],[[43965,43965],"mapped",[5101]],[[43966,43966],"mapped",[5102]],[[43967,43967],"mapped",[5103]],[[43968,44010],"valid"],[[44011,44011],"valid",[],"NV8"],[[44012,44013],"valid"],[[44014,44015],"disallowed"],[[44016,44025],"valid"],[[44026,44031],"disallowed"],[[44032,55203],"valid"],[[55204,55215],"disallowed"],[[55216,55238],"valid",[],"NV8"],[[55239,55242],"disallowed"],[[55243,55291],"valid",[],"NV8"],[[55292,55295],"disallowed"],[[55296,57343],"disallowed"],[[57344,63743],"disallowed"],[[63744,63744],"mapped",[35912]],[[63745,63745],"mapped",[26356]],[[63746,63746],"mapped",[36554]],[[63747,63747],"mapped",[36040]],[[63748,63748],"mapped",[28369]],[[63749,63749],"mapped",[20018]],[[63750,63750],"mapped",[21477]],[[63751,63752],"mapped",[40860]],[[63753,63753],"mapped",[22865]],[[63754,63754],"mapped",[37329]],[[63755,63755],"mapped",[21895]],[[63756,63756],"mapped",[22856]],[[63757,63757],"mapped",[25078]],[[63758,63758],"mapped",[30313]],[[63759,63759],"mapped",[32645]],[[63760,63760],"mapped",[34367]],[[63761,63761],"mapped",[34746]],[[63762,63762],"mapped",[35064]],[[63763,63763],"mapped",[37007]],[[63764,63764],"mapped",[27138]],[[63765,63765],"mapped",[27931]],[[63766,63766],"mapped",[28889]],[[63767,63767],"mapped",[29662]],[[63768,63768],"mapped",[33853]],[[63769,63769],"mapped",[37226]],[[63770,63770],"mapped",[39409]],[[63771,63771],"mapped",[20098]],[[63772,63772],"mapped",[21365]],[[63773,63773],"mapped",[27396]],[[63774,63774],"mapped",[29211]],[[63775,63775],"mapped",[34349]],[[63776,63776],"mapped",[40478]],[[63777,63777],"mapped",[23888]],[[63778,63778],"mapped",[28651]],[[63779,63779],"mapped",[34253]],[[63780,63780],"mapped",[35172]],[[63781,63781],"mapped",[25289]],[[63782,63782],"mapped",[33240]],[[63783,63783],"mapped",[34847]],[[63784,63784],"mapped",[24266]],[[63785,63785],"mapped",[26391]],[[63786,63786],"mapped",[28010]],[[63787,63787],"mapped",[29436]],[[63788,63788],"mapped",[37070]],[[63789,63789],"mapped",[20358]],[[63790,63790],"mapped",[20919]],[[63791,63791],"mapped",[21214]],[[63792,63792],"mapped",[25796]],[[63793,63793],"mapped",[27347]],[[63794,63794],"mapped",[29200]],[[63795,63795],"mapped",[30439]],[[63796,63796],"mapped",[32769]],[[63797,63797],"mapped",[34310]],[[63798,63798],"mapped",[34396]],[[63799,63799],"mapped",[36335]],[[63800,63800],"mapped",[38706]],[[63801,63801],"mapped",[39791]],[[63802,63802],"mapped",[40442]],[[63803,63803],"mapped",[30860]],[[63804,63804],"mapped",[31103]],[[63805,63805],"mapped",[32160]],[[63806,63806],"mapped",[33737]],[[63807,63807],"mapped",[37636]],[[63808,63808],"mapped",[40575]],[[63809,63809],"mapped",[35542]],[[63810,63810],"mapped",[22751]],[[63811,63811],"mapped",[24324]],[[63812,63812],"mapped",[31840]],[[63813,63813],"mapped",[32894]],[[63814,63814],"mapped",[29282]],[[63815,63815],"mapped",[30922]],[[63816,63816],"mapped",[36034]],[[63817,63817],"mapped",[38647]],[[63818,63818],"mapped",[22744]],[[63819,63819],"mapped",[23650]],[[63820,63820],"mapped",[27155]],[[63821,63821],"mapped",[28122]],[[63822,63822],"mapped",[28431]],[[63823,63823],"mapped",[32047]],[[63824,63824],"mapped",[32311]],[[63825,63825],"mapped",[38475]],[[63826,63826],"mapped",[21202]],[[63827,63827],"mapped",[32907]],[[63828,63828],"mapped",[20956]],[[63829,63829],"mapped",[20940]],[[63830,63830],"mapped",[31260]],[[63831,63831],"mapped",[32190]],[[63832,63832],"mapped",[33777]],[[63833,63833],"mapped",[38517]],[[63834,63834],"mapped",[35712]],[[63835,63835],"mapped",[25295]],[[63836,63836],"mapped",[27138]],[[63837,63837],"mapped",[35582]],[[63838,63838],"mapped",[20025]],[[63839,63839],"mapped",[23527]],[[63840,63840],"mapped",[24594]],[[63841,63841],"mapped",[29575]],[[63842,63842],"mapped",[30064]],[[63843,63843],"mapped",[21271]],[[63844,63844],"mapped",[30971]],[[63845,63845],"mapped",[20415]],[[63846,63846],"mapped",[24489]],[[63847,63847],"mapped",[19981]],[[63848,63848],"mapped",[27852]],[[63849,63849],"mapped",[25976]],[[63850,63850],"mapped",[32034]],[[63851,63851],"mapped",[21443]],[[63852,63852],"mapped",[22622]],[[63853,63853],"mapped",[30465]],[[63854,63854],"mapped",[33865]],[[63855,63855],"mapped",[35498]],[[63856,63856],"mapped",[27578]],[[63857,63857],"mapped",[36784]],[[63858,63858],"mapped",[27784]],[[63859,63859],"mapped",[25342]],[[63860,63860],"mapped",[33509]],[[63861,63861],"mapped",[25504]],[[63862,63862],"mapped",[30053]],[[63863,63863],"mapped",[20142]],[[63864,63864],"mapped",[20841]],[[63865,63865],"mapped",[20937]],[[63866,63866],"mapped",[26753]],[[63867,63867],"mapped",[31975]],[[63868,63868],"mapped",[33391]],[[63869,63869],"mapped",[35538]],[[63870,63870],"mapped",[37327]],[[63871,63871],"mapped",[21237]],[[63872,63872],"mapped",[21570]],[[63873,63873],"mapped",[22899]],[[63874,63874],"mapped",[24300]],[[63875,63875],"mapped",[26053]],[[63876,63876],"mapped",[28670]],[[63877,63877],"mapped",[31018]],[[63878,63878],"mapped",[38317]],[[63879,63879],"mapped",[39530]],[[63880,63880],"mapped",[40599]],[[63881,63881],"mapped",[40654]],[[63882,63882],"mapped",[21147]],[[63883,63883],"mapped",[26310]],[[63884,63884],"mapped",[27511]],[[63885,63885],"mapped",[36706]],[[63886,63886],"mapped",[24180]],[[63887,63887],"mapped",[24976]],[[63888,63888],"mapped",[25088]],[[63889,63889],"mapped",[25754]],[[63890,63890],"mapped",[28451]],[[63891,63891],"mapped",[29001]],[[63892,63892],"mapped",[29833]],[[63893,63893],"mapped",[31178]],[[63894,63894],"mapped",[32244]],[[63895,63895],"mapped",[32879]],[[63896,63896],"mapped",[36646]],[[63897,63897],"mapped",[34030]],[[63898,63898],"mapped",[36899]],[[63899,63899],"mapped",[37706]],[[63900,63900],"mapped",[21015]],[[63901,63901],"mapped",[21155]],[[63902,63902],"mapped",[21693]],[[63903,63903],"mapped",[28872]],[[63904,63904],"mapped",[35010]],[[63905,63905],"mapped",[35498]],[[63906,63906],"mapped",[24265]],[[63907,63907],"mapped",[24565]],[[63908,63908],"mapped",[25467]],[[63909,63909],"mapped",[27566]],[[63910,63910],"mapped",[31806]],[[63911,63911],"mapped",[29557]],[[63912,63912],"mapped",[20196]],[[63913,63913],"mapped",[22265]],[[63914,63914],"mapped",[23527]],[[63915,63915],"mapped",[23994]],[[63916,63916],"mapped",[24604]],[[63917,63917],"mapped",[29618]],[[63918,63918],"mapped",[29801]],[[63919,63919],"mapped",[32666]],[[63920,63920],"mapped",[32838]],[[63921,63921],"mapped",[37428]],[[63922,63922],"mapped",[38646]],[[63923,63923],"mapped",[38728]],[[63924,63924],"mapped",[38936]],[[63925,63925],"mapped",[20363]],[[63926,63926],"mapped",[31150]],[[63927,63927],"mapped",[37300]],[[63928,63928],"mapped",[38584]],[[63929,63929],"mapped",[24801]],[[63930,63930],"mapped",[20102]],[[63931,63931],"mapped",[20698]],[[63932,63932],"mapped",[23534]],[[63933,63933],"mapped",[23615]],[[63934,63934],"mapped",[26009]],[[63935,63935],"mapped",[27138]],[[63936,63936],"mapped",[29134]],[[63937,63937],"mapped",[30274]],[[63938,63938],"mapped",[34044]],[[63939,63939],"mapped",[36988]],[[63940,63940],"mapped",[40845]],[[63941,63941],"mapped",[26248]],[[63942,63942],"mapped",[38446]],[[63943,63943],"mapped",[21129]],[[63944,63944],"mapped",[26491]],[[63945,63945],"mapped",[26611]],[[63946,63946],"mapped",[27969]],[[63947,63947],"mapped",[28316]],[[63948,63948],"mapped",[29705]],[[63949,63949],"mapped",[30041]],[[63950,63950],"mapped",[30827]],[[63951,63951],"mapped",[32016]],[[63952,63952],"mapped",[39006]],[[63953,63953],"mapped",[20845]],[[63954,63954],"mapped",[25134]],[[63955,63955],"mapped",[38520]],[[63956,63956],"mapped",[20523]],[[63957,63957],"mapped",[23833]],[[63958,63958],"mapped",[28138]],[[63959,63959],"mapped",[36650]],[[63960,63960],"mapped",[24459]],[[63961,63961],"mapped",[24900]],[[63962,63962],"mapped",[26647]],[[63963,63963],"mapped",[29575]],[[63964,63964],"mapped",[38534]],[[63965,63965],"mapped",[21033]],[[63966,63966],"mapped",[21519]],[[63967,63967],"mapped",[23653]],[[63968,63968],"mapped",[26131]],[[63969,63969],"mapped",[26446]],[[63970,63970],"mapped",[26792]],[[63971,63971],"mapped",[27877]],[[63972,63972],"mapped",[29702]],[[63973,63973],"mapped",[30178]],[[63974,63974],"mapped",[32633]],[[63975,63975],"mapped",[35023]],[[63976,63976],"mapped",[35041]],[[63977,63977],"mapped",[37324]],[[63978,63978],"mapped",[38626]],[[63979,63979],"mapped",[21311]],[[63980,63980],"mapped",[28346]],[[63981,63981],"mapped",[21533]],[[63982,63982],"mapped",[29136]],[[63983,63983],"mapped",[29848]],[[63984,63984],"mapped",[34298]],[[63985,63985],"mapped",[38563]],[[63986,63986],"mapped",[40023]],[[63987,63987],"mapped",[40607]],[[63988,63988],"mapped",[26519]],[[63989,63989],"mapped",[28107]],[[63990,63990],"mapped",[33256]],[[63991,63991],"mapped",[31435]],[[63992,63992],"mapped",[31520]],[[63993,63993],"mapped",[31890]],[[63994,63994],"mapped",[29376]],[[63995,63995],"mapped",[28825]],[[63996,63996],"mapped",[35672]],[[63997,63997],"mapped",[20160]],[[63998,63998],"mapped",[33590]],[[63999,63999],"mapped",[21050]],[[64e3,64e3],"mapped",[20999]],[[64001,64001],"mapped",[24230]],[[64002,64002],"mapped",[25299]],[[64003,64003],"mapped",[31958]],[[64004,64004],"mapped",[23429]],[[64005,64005],"mapped",[27934]],[[64006,64006],"mapped",[26292]],[[64007,64007],"mapped",[36667]],[[64008,64008],"mapped",[34892]],[[64009,64009],"mapped",[38477]],[[64010,64010],"mapped",[35211]],[[64011,64011],"mapped",[24275]],[[64012,64012],"mapped",[20800]],[[64013,64013],"mapped",[21952]],[[64014,64015],"valid"],[[64016,64016],"mapped",[22618]],[[64017,64017],"valid"],[[64018,64018],"mapped",[26228]],[[64019,64020],"valid"],[[64021,64021],"mapped",[20958]],[[64022,64022],"mapped",[29482]],[[64023,64023],"mapped",[30410]],[[64024,64024],"mapped",[31036]],[[64025,64025],"mapped",[31070]],[[64026,64026],"mapped",[31077]],[[64027,64027],"mapped",[31119]],[[64028,64028],"mapped",[38742]],[[64029,64029],"mapped",[31934]],[[64030,64030],"mapped",[32701]],[[64031,64031],"valid"],[[64032,64032],"mapped",[34322]],[[64033,64033],"valid"],[[64034,64034],"mapped",[35576]],[[64035,64036],"valid"],[[64037,64037],"mapped",[36920]],[[64038,64038],"mapped",[37117]],[[64039,64041],"valid"],[[64042,64042],"mapped",[39151]],[[64043,64043],"mapped",[39164]],[[64044,64044],"mapped",[39208]],[[64045,64045],"mapped",[40372]],[[64046,64046],"mapped",[37086]],[[64047,64047],"mapped",[38583]],[[64048,64048],"mapped",[20398]],[[64049,64049],"mapped",[20711]],[[64050,64050],"mapped",[20813]],[[64051,64051],"mapped",[21193]],[[64052,64052],"mapped",[21220]],[[64053,64053],"mapped",[21329]],[[64054,64054],"mapped",[21917]],[[64055,64055],"mapped",[22022]],[[64056,64056],"mapped",[22120]],[[64057,64057],"mapped",[22592]],[[64058,64058],"mapped",[22696]],[[64059,64059],"mapped",[23652]],[[64060,64060],"mapped",[23662]],[[64061,64061],"mapped",[24724]],[[64062,64062],"mapped",[24936]],[[64063,64063],"mapped",[24974]],[[64064,64064],"mapped",[25074]],[[64065,64065],"mapped",[25935]],[[64066,64066],"mapped",[26082]],[[64067,64067],"mapped",[26257]],[[64068,64068],"mapped",[26757]],[[64069,64069],"mapped",[28023]],[[64070,64070],"mapped",[28186]],[[64071,64071],"mapped",[28450]],[[64072,64072],"mapped",[29038]],[[64073,64073],"mapped",[29227]],[[64074,64074],"mapped",[29730]],[[64075,64075],"mapped",[30865]],[[64076,64076],"mapped",[31038]],[[64077,64077],"mapped",[31049]],[[64078,64078],"mapped",[31048]],[[64079,64079],"mapped",[31056]],[[64080,64080],"mapped",[31062]],[[64081,64081],"mapped",[31069]],[[64082,64082],"mapped",[31117]],[[64083,64083],"mapped",[31118]],[[64084,64084],"mapped",[31296]],[[64085,64085],"mapped",[31361]],[[64086,64086],"mapped",[31680]],[[64087,64087],"mapped",[32244]],[[64088,64088],"mapped",[32265]],[[64089,64089],"mapped",[32321]],[[64090,64090],"mapped",[32626]],[[64091,64091],"mapped",[32773]],[[64092,64092],"mapped",[33261]],[[64093,64094],"mapped",[33401]],[[64095,64095],"mapped",[33879]],[[64096,64096],"mapped",[35088]],[[64097,64097],"mapped",[35222]],[[64098,64098],"mapped",[35585]],[[64099,64099],"mapped",[35641]],[[64100,64100],"mapped",[36051]],[[64101,64101],"mapped",[36104]],[[64102,64102],"mapped",[36790]],[[64103,64103],"mapped",[36920]],[[64104,64104],"mapped",[38627]],[[64105,64105],"mapped",[38911]],[[64106,64106],"mapped",[38971]],[[64107,64107],"mapped",[24693]],[[64108,64108],"mapped",[148206]],[[64109,64109],"mapped",[33304]],[[64110,64111],"disallowed"],[[64112,64112],"mapped",[20006]],[[64113,64113],"mapped",[20917]],[[64114,64114],"mapped",[20840]],[[64115,64115],"mapped",[20352]],[[64116,64116],"mapped",[20805]],[[64117,64117],"mapped",[20864]],[[64118,64118],"mapped",[21191]],[[64119,64119],"mapped",[21242]],[[64120,64120],"mapped",[21917]],[[64121,64121],"mapped",[21845]],[[64122,64122],"mapped",[21913]],[[64123,64123],"mapped",[21986]],[[64124,64124],"mapped",[22618]],[[64125,64125],"mapped",[22707]],[[64126,64126],"mapped",[22852]],[[64127,64127],"mapped",[22868]],[[64128,64128],"mapped",[23138]],[[64129,64129],"mapped",[23336]],[[64130,64130],"mapped",[24274]],[[64131,64131],"mapped",[24281]],[[64132,64132],"mapped",[24425]],[[64133,64133],"mapped",[24493]],[[64134,64134],"mapped",[24792]],[[64135,64135],"mapped",[24910]],[[64136,64136],"mapped",[24840]],[[64137,64137],"mapped",[24974]],[[64138,64138],"mapped",[24928]],[[64139,64139],"mapped",[25074]],[[64140,64140],"mapped",[25140]],[[64141,64141],"mapped",[25540]],[[64142,64142],"mapped",[25628]],[[64143,64143],"mapped",[25682]],[[64144,64144],"mapped",[25942]],[[64145,64145],"mapped",[26228]],[[64146,64146],"mapped",[26391]],[[64147,64147],"mapped",[26395]],[[64148,64148],"mapped",[26454]],[[64149,64149],"mapped",[27513]],[[64150,64150],"mapped",[27578]],[[64151,64151],"mapped",[27969]],[[64152,64152],"mapped",[28379]],[[64153,64153],"mapped",[28363]],[[64154,64154],"mapped",[28450]],[[64155,64155],"mapped",[28702]],[[64156,64156],"mapped",[29038]],[[64157,64157],"mapped",[30631]],[[64158,64158],"mapped",[29237]],[[64159,64159],"mapped",[29359]],[[64160,64160],"mapped",[29482]],[[64161,64161],"mapped",[29809]],[[64162,64162],"mapped",[29958]],[[64163,64163],"mapped",[30011]],[[64164,64164],"mapped",[30237]],[[64165,64165],"mapped",[30239]],[[64166,64166],"mapped",[30410]],[[64167,64167],"mapped",[30427]],[[64168,64168],"mapped",[30452]],[[64169,64169],"mapped",[30538]],[[64170,64170],"mapped",[30528]],[[64171,64171],"mapped",[30924]],[[64172,64172],"mapped",[31409]],[[64173,64173],"mapped",[31680]],[[64174,64174],"mapped",[31867]],[[64175,64175],"mapped",[32091]],[[64176,64176],"mapped",[32244]],[[64177,64177],"mapped",[32574]],[[64178,64178],"mapped",[32773]],[[64179,64179],"mapped",[33618]],[[64180,64180],"mapped",[33775]],[[64181,64181],"mapped",[34681]],[[64182,64182],"mapped",[35137]],[[64183,64183],"mapped",[35206]],[[64184,64184],"mapped",[35222]],[[64185,64185],"mapped",[35519]],[[64186,64186],"mapped",[35576]],[[64187,64187],"mapped",[35531]],[[64188,64188],"mapped",[35585]],[[64189,64189],"mapped",[35582]],[[64190,64190],"mapped",[35565]],[[64191,64191],"mapped",[35641]],[[64192,64192],"mapped",[35722]],[[64193,64193],"mapped",[36104]],[[64194,64194],"mapped",[36664]],[[64195,64195],"mapped",[36978]],[[64196,64196],"mapped",[37273]],[[64197,64197],"mapped",[37494]],[[64198,64198],"mapped",[38524]],[[64199,64199],"mapped",[38627]],[[64200,64200],"mapped",[38742]],[[64201,64201],"mapped",[38875]],[[64202,64202],"mapped",[38911]],[[64203,64203],"mapped",[38923]],[[64204,64204],"mapped",[38971]],[[64205,64205],"mapped",[39698]],[[64206,64206],"mapped",[40860]],[[64207,64207],"mapped",[141386]],[[64208,64208],"mapped",[141380]],[[64209,64209],"mapped",[144341]],[[64210,64210],"mapped",[15261]],[[64211,64211],"mapped",[16408]],[[64212,64212],"mapped",[16441]],[[64213,64213],"mapped",[152137]],[[64214,64214],"mapped",[154832]],[[64215,64215],"mapped",[163539]],[[64216,64216],"mapped",[40771]],[[64217,64217],"mapped",[40846]],[[64218,64255],"disallowed"],[[64256,64256],"mapped",[102,102]],[[64257,64257],"mapped",[102,105]],[[64258,64258],"mapped",[102,108]],[[64259,64259],"mapped",[102,102,105]],[[64260,64260],"mapped",[102,102,108]],[[64261,64262],"mapped",[115,116]],[[64263,64274],"disallowed"],[[64275,64275],"mapped",[1396,1398]],[[64276,64276],"mapped",[1396,1381]],[[64277,64277],"mapped",[1396,1387]],[[64278,64278],"mapped",[1406,1398]],[[64279,64279],"mapped",[1396,1389]],[[64280,64284],"disallowed"],[[64285,64285],"mapped",[1497,1460]],[[64286,64286],"valid"],[[64287,64287],"mapped",[1522,1463]],[[64288,64288],"mapped",[1506]],[[64289,64289],"mapped",[1488]],[[64290,64290],"mapped",[1491]],[[64291,64291],"mapped",[1492]],[[64292,64292],"mapped",[1499]],[[64293,64293],"mapped",[1500]],[[64294,64294],"mapped",[1501]],[[64295,64295],"mapped",[1512]],[[64296,64296],"mapped",[1514]],[[64297,64297],"disallowed_STD3_mapped",[43]],[[64298,64298],"mapped",[1513,1473]],[[64299,64299],"mapped",[1513,1474]],[[64300,64300],"mapped",[1513,1468,1473]],[[64301,64301],"mapped",[1513,1468,1474]],[[64302,64302],"mapped",[1488,1463]],[[64303,64303],"mapped",[1488,1464]],[[64304,64304],"mapped",[1488,1468]],[[64305,64305],"mapped",[1489,1468]],[[64306,64306],"mapped",[1490,1468]],[[64307,64307],"mapped",[1491,1468]],[[64308,64308],"mapped",[1492,1468]],[[64309,64309],"mapped",[1493,1468]],[[64310,64310],"mapped",[1494,1468]],[[64311,64311],"disallowed"],[[64312,64312],"mapped",[1496,1468]],[[64313,64313],"mapped",[1497,1468]],[[64314,64314],"mapped",[1498,1468]],[[64315,64315],"mapped",[1499,1468]],[[64316,64316],"mapped",[1500,1468]],[[64317,64317],"disallowed"],[[64318,64318],"mapped",[1502,1468]],[[64319,64319],"disallowed"],[[64320,64320],"mapped",[1504,1468]],[[64321,64321],"mapped",[1505,1468]],[[64322,64322],"disallowed"],[[64323,64323],"mapped",[1507,1468]],[[64324,64324],"mapped",[1508,1468]],[[64325,64325],"disallowed"],[[64326,64326],"mapped",[1510,1468]],[[64327,64327],"mapped",[1511,1468]],[[64328,64328],"mapped",[1512,1468]],[[64329,64329],"mapped",[1513,1468]],[[64330,64330],"mapped",[1514,1468]],[[64331,64331],"mapped",[1493,1465]],[[64332,64332],"mapped",[1489,1471]],[[64333,64333],"mapped",[1499,1471]],[[64334,64334],"mapped",[1508,1471]],[[64335,64335],"mapped",[1488,1500]],[[64336,64337],"mapped",[1649]],[[64338,64341],"mapped",[1659]],[[64342,64345],"mapped",[1662]],[[64346,64349],"mapped",[1664]],[[64350,64353],"mapped",[1658]],[[64354,64357],"mapped",[1663]],[[64358,64361],"mapped",[1657]],[[64362,64365],"mapped",[1700]],[[64366,64369],"mapped",[1702]],[[64370,64373],"mapped",[1668]],[[64374,64377],"mapped",[1667]],[[64378,64381],"mapped",[1670]],[[64382,64385],"mapped",[1671]],[[64386,64387],"mapped",[1677]],[[64388,64389],"mapped",[1676]],[[64390,64391],"mapped",[1678]],[[64392,64393],"mapped",[1672]],[[64394,64395],"mapped",[1688]],[[64396,64397],"mapped",[1681]],[[64398,64401],"mapped",[1705]],[[64402,64405],"mapped",[1711]],[[64406,64409],"mapped",[1715]],[[64410,64413],"mapped",[1713]],[[64414,64415],"mapped",[1722]],[[64416,64419],"mapped",[1723]],[[64420,64421],"mapped",[1728]],[[64422,64425],"mapped",[1729]],[[64426,64429],"mapped",[1726]],[[64430,64431],"mapped",[1746]],[[64432,64433],"mapped",[1747]],[[64434,64449],"valid",[],"NV8"],[[64450,64466],"disallowed"],[[64467,64470],"mapped",[1709]],[[64471,64472],"mapped",[1735]],[[64473,64474],"mapped",[1734]],[[64475,64476],"mapped",[1736]],[[64477,64477],"mapped",[1735,1652]],[[64478,64479],"mapped",[1739]],[[64480,64481],"mapped",[1733]],[[64482,64483],"mapped",[1737]],[[64484,64487],"mapped",[1744]],[[64488,64489],"mapped",[1609]],[[64490,64491],"mapped",[1574,1575]],[[64492,64493],"mapped",[1574,1749]],[[64494,64495],"mapped",[1574,1608]],[[64496,64497],"mapped",[1574,1735]],[[64498,64499],"mapped",[1574,1734]],[[64500,64501],"mapped",[1574,1736]],[[64502,64504],"mapped",[1574,1744]],[[64505,64507],"mapped",[1574,1609]],[[64508,64511],"mapped",[1740]],[[64512,64512],"mapped",[1574,1580]],[[64513,64513],"mapped",[1574,1581]],[[64514,64514],"mapped",[1574,1605]],[[64515,64515],"mapped",[1574,1609]],[[64516,64516],"mapped",[1574,1610]],[[64517,64517],"mapped",[1576,1580]],[[64518,64518],"mapped",[1576,1581]],[[64519,64519],"mapped",[1576,1582]],[[64520,64520],"mapped",[1576,1605]],[[64521,64521],"mapped",[1576,1609]],[[64522,64522],"mapped",[1576,1610]],[[64523,64523],"mapped",[1578,1580]],[[64524,64524],"mapped",[1578,1581]],[[64525,64525],"mapped",[1578,1582]],[[64526,64526],"mapped",[1578,1605]],[[64527,64527],"mapped",[1578,1609]],[[64528,64528],"mapped",[1578,1610]],[[64529,64529],"mapped",[1579,1580]],[[64530,64530],"mapped",[1579,1605]],[[64531,64531],"mapped",[1579,1609]],[[64532,64532],"mapped",[1579,1610]],[[64533,64533],"mapped",[1580,1581]],[[64534,64534],"mapped",[1580,1605]],[[64535,64535],"mapped",[1581,1580]],[[64536,64536],"mapped",[1581,1605]],[[64537,64537],"mapped",[1582,1580]],[[64538,64538],"mapped",[1582,1581]],[[64539,64539],"mapped",[1582,1605]],[[64540,64540],"mapped",[1587,1580]],[[64541,64541],"mapped",[1587,1581]],[[64542,64542],"mapped",[1587,1582]],[[64543,64543],"mapped",[1587,1605]],[[64544,64544],"mapped",[1589,1581]],[[64545,64545],"mapped",[1589,1605]],[[64546,64546],"mapped",[1590,1580]],[[64547,64547],"mapped",[1590,1581]],[[64548,64548],"mapped",[1590,1582]],[[64549,64549],"mapped",[1590,1605]],[[64550,64550],"mapped",[1591,1581]],[[64551,64551],"mapped",[1591,1605]],[[64552,64552],"mapped",[1592,1605]],[[64553,64553],"mapped",[1593,1580]],[[64554,64554],"mapped",[1593,1605]],[[64555,64555],"mapped",[1594,1580]],[[64556,64556],"mapped",[1594,1605]],[[64557,64557],"mapped",[1601,1580]],[[64558,64558],"mapped",[1601,1581]],[[64559,64559],"mapped",[1601,1582]],[[64560,64560],"mapped",[1601,1605]],[[64561,64561],"mapped",[1601,1609]],[[64562,64562],"mapped",[1601,1610]],[[64563,64563],"mapped",[1602,1581]],[[64564,64564],"mapped",[1602,1605]],[[64565,64565],"mapped",[1602,1609]],[[64566,64566],"mapped",[1602,1610]],[[64567,64567],"mapped",[1603,1575]],[[64568,64568],"mapped",[1603,1580]],[[64569,64569],"mapped",[1603,1581]],[[64570,64570],"mapped",[1603,1582]],[[64571,64571],"mapped",[1603,1604]],[[64572,64572],"mapped",[1603,1605]],[[64573,64573],"mapped",[1603,1609]],[[64574,64574],"mapped",[1603,1610]],[[64575,64575],"mapped",[1604,1580]],[[64576,64576],"mapped",[1604,1581]],[[64577,64577],"mapped",[1604,1582]],[[64578,64578],"mapped",[1604,1605]],[[64579,64579],"mapped",[1604,1609]],[[64580,64580],"mapped",[1604,1610]],[[64581,64581],"mapped",[1605,1580]],[[64582,64582],"mapped",[1605,1581]],[[64583,64583],"mapped",[1605,1582]],[[64584,64584],"mapped",[1605,1605]],[[64585,64585],"mapped",[1605,1609]],[[64586,64586],"mapped",[1605,1610]],[[64587,64587],"mapped",[1606,1580]],[[64588,64588],"mapped",[1606,1581]],[[64589,64589],"mapped",[1606,1582]],[[64590,64590],"mapped",[1606,1605]],[[64591,64591],"mapped",[1606,1609]],[[64592,64592],"mapped",[1606,1610]],[[64593,64593],"mapped",[1607,1580]],[[64594,64594],"mapped",[1607,1605]],[[64595,64595],"mapped",[1607,1609]],[[64596,64596],"mapped",[1607,1610]],[[64597,64597],"mapped",[1610,1580]],[[64598,64598],"mapped",[1610,1581]],[[64599,64599],"mapped",[1610,1582]],[[64600,64600],"mapped",[1610,1605]],[[64601,64601],"mapped",[1610,1609]],[[64602,64602],"mapped",[1610,1610]],[[64603,64603],"mapped",[1584,1648]],[[64604,64604],"mapped",[1585,1648]],[[64605,64605],"mapped",[1609,1648]],[[64606,64606],"disallowed_STD3_mapped",[32,1612,1617]],[[64607,64607],"disallowed_STD3_mapped",[32,1613,1617]],[[64608,64608],"disallowed_STD3_mapped",[32,1614,1617]],[[64609,64609],"disallowed_STD3_mapped",[32,1615,1617]],[[64610,64610],"disallowed_STD3_mapped",[32,1616,1617]],[[64611,64611],"disallowed_STD3_mapped",[32,1617,1648]],[[64612,64612],"mapped",[1574,1585]],[[64613,64613],"mapped",[1574,1586]],[[64614,64614],"mapped",[1574,1605]],[[64615,64615],"mapped",[1574,1606]],[[64616,64616],"mapped",[1574,1609]],[[64617,64617],"mapped",[1574,1610]],[[64618,64618],"mapped",[1576,1585]],[[64619,64619],"mapped",[1576,1586]],[[64620,64620],"mapped",[1576,1605]],[[64621,64621],"mapped",[1576,1606]],[[64622,64622],"mapped",[1576,1609]],[[64623,64623],"mapped",[1576,1610]],[[64624,64624],"mapped",[1578,1585]],[[64625,64625],"mapped",[1578,1586]],[[64626,64626],"mapped",[1578,1605]],[[64627,64627],"mapped",[1578,1606]],[[64628,64628],"mapped",[1578,1609]],[[64629,64629],"mapped",[1578,1610]],[[64630,64630],"mapped",[1579,1585]],[[64631,64631],"mapped",[1579,1586]],[[64632,64632],"mapped",[1579,1605]],[[64633,64633],"mapped",[1579,1606]],[[64634,64634],"mapped",[1579,1609]],[[64635,64635],"mapped",[1579,1610]],[[64636,64636],"mapped",[1601,1609]],[[64637,64637],"mapped",[1601,1610]],[[64638,64638],"mapped",[1602,1609]],[[64639,64639],"mapped",[1602,1610]],[[64640,64640],"mapped",[1603,1575]],[[64641,64641],"mapped",[1603,1604]],[[64642,64642],"mapped",[1603,1605]],[[64643,64643],"mapped",[1603,1609]],[[64644,64644],"mapped",[1603,1610]],[[64645,64645],"mapped",[1604,1605]],[[64646,64646],"mapped",[1604,1609]],[[64647,64647],"mapped",[1604,1610]],[[64648,64648],"mapped",[1605,1575]],[[64649,64649],"mapped",[1605,1605]],[[64650,64650],"mapped",[1606,1585]],[[64651,64651],"mapped",[1606,1586]],[[64652,64652],"mapped",[1606,1605]],[[64653,64653],"mapped",[1606,1606]],[[64654,64654],"mapped",[1606,1609]],[[64655,64655],"mapped",[1606,1610]],[[64656,64656],"mapped",[1609,1648]],[[64657,64657],"mapped",[1610,1585]],[[64658,64658],"mapped",[1610,1586]],[[64659,64659],"mapped",[1610,1605]],[[64660,64660],"mapped",[1610,1606]],[[64661,64661],"mapped",[1610,1609]],[[64662,64662],"mapped",[1610,1610]],[[64663,64663],"mapped",[1574,1580]],[[64664,64664],"mapped",[1574,1581]],[[64665,64665],"mapped",[1574,1582]],[[64666,64666],"mapped",[1574,1605]],[[64667,64667],"mapped",[1574,1607]],[[64668,64668],"mapped",[1576,1580]],[[64669,64669],"mapped",[1576,1581]],[[64670,64670],"mapped",[1576,1582]],[[64671,64671],"mapped",[1576,1605]],[[64672,64672],"mapped",[1576,1607]],[[64673,64673],"mapped",[1578,1580]],[[64674,64674],"mapped",[1578,1581]],[[64675,64675],"mapped",[1578,1582]],[[64676,64676],"mapped",[1578,1605]],[[64677,64677],"mapped",[1578,1607]],[[64678,64678],"mapped",[1579,1605]],[[64679,64679],"mapped",[1580,1581]],[[64680,64680],"mapped",[1580,1605]],[[64681,64681],"mapped",[1581,1580]],[[64682,64682],"mapped",[1581,1605]],[[64683,64683],"mapped",[1582,1580]],[[64684,64684],"mapped",[1582,1605]],[[64685,64685],"mapped",[1587,1580]],[[64686,64686],"mapped",[1587,1581]],[[64687,64687],"mapped",[1587,1582]],[[64688,64688],"mapped",[1587,1605]],[[64689,64689],"mapped",[1589,1581]],[[64690,64690],"mapped",[1589,1582]],[[64691,64691],"mapped",[1589,1605]],[[64692,64692],"mapped",[1590,1580]],[[64693,64693],"mapped",[1590,1581]],[[64694,64694],"mapped",[1590,1582]],[[64695,64695],"mapped",[1590,1605]],[[64696,64696],"mapped",[1591,1581]],[[64697,64697],"mapped",[1592,1605]],[[64698,64698],"mapped",[1593,1580]],[[64699,64699],"mapped",[1593,1605]],[[64700,64700],"mapped",[1594,1580]],[[64701,64701],"mapped",[1594,1605]],[[64702,64702],"mapped",[1601,1580]],[[64703,64703],"mapped",[1601,1581]],[[64704,64704],"mapped",[1601,1582]],[[64705,64705],"mapped",[1601,1605]],[[64706,64706],"mapped",[1602,1581]],[[64707,64707],"mapped",[1602,1605]],[[64708,64708],"mapped",[1603,1580]],[[64709,64709],"mapped",[1603,1581]],[[64710,64710],"mapped",[1603,1582]],[[64711,64711],"mapped",[1603,1604]],[[64712,64712],"mapped",[1603,1605]],[[64713,64713],"mapped",[1604,1580]],[[64714,64714],"mapped",[1604,1581]],[[64715,64715],"mapped",[1604,1582]],[[64716,64716],"mapped",[1604,1605]],[[64717,64717],"mapped",[1604,1607]],[[64718,64718],"mapped",[1605,1580]],[[64719,64719],"mapped",[1605,1581]],[[64720,64720],"mapped",[1605,1582]],[[64721,64721],"mapped",[1605,1605]],[[64722,64722],"mapped",[1606,1580]],[[64723,64723],"mapped",[1606,1581]],[[64724,64724],"mapped",[1606,1582]],[[64725,64725],"mapped",[1606,1605]],[[64726,64726],"mapped",[1606,1607]],[[64727,64727],"mapped",[1607,1580]],[[64728,64728],"mapped",[1607,1605]],[[64729,64729],"mapped",[1607,1648]],[[64730,64730],"mapped",[1610,1580]],[[64731,64731],"mapped",[1610,1581]],[[64732,64732],"mapped",[1610,1582]],[[64733,64733],"mapped",[1610,1605]],[[64734,64734],"mapped",[1610,1607]],[[64735,64735],"mapped",[1574,1605]],[[64736,64736],"mapped",[1574,1607]],[[64737,64737],"mapped",[1576,1605]],[[64738,64738],"mapped",[1576,1607]],[[64739,64739],"mapped",[1578,1605]],[[64740,64740],"mapped",[1578,1607]],[[64741,64741],"mapped",[1579,1605]],[[64742,64742],"mapped",[1579,1607]],[[64743,64743],"mapped",[1587,1605]],[[64744,64744],"mapped",[1587,1607]],[[64745,64745],"mapped",[1588,1605]],[[64746,64746],"mapped",[1588,1607]],[[64747,64747],"mapped",[1603,1604]],[[64748,64748],"mapped",[1603,1605]],[[64749,64749],"mapped",[1604,1605]],[[64750,64750],"mapped",[1606,1605]],[[64751,64751],"mapped",[1606,1607]],[[64752,64752],"mapped",[1610,1605]],[[64753,64753],"mapped",[1610,1607]],[[64754,64754],"mapped",[1600,1614,1617]],[[64755,64755],"mapped",[1600,1615,1617]],[[64756,64756],"mapped",[1600,1616,1617]],[[64757,64757],"mapped",[1591,1609]],[[64758,64758],"mapped",[1591,1610]],[[64759,64759],"mapped",[1593,1609]],[[64760,64760],"mapped",[1593,1610]],[[64761,64761],"mapped",[1594,1609]],[[64762,64762],"mapped",[1594,1610]],[[64763,64763],"mapped",[1587,1609]],[[64764,64764],"mapped",[1587,1610]],[[64765,64765],"mapped",[1588,1609]],[[64766,64766],"mapped",[1588,1610]],[[64767,64767],"mapped",[1581,1609]],[[64768,64768],"mapped",[1581,1610]],[[64769,64769],"mapped",[1580,1609]],[[64770,64770],"mapped",[1580,1610]],[[64771,64771],"mapped",[1582,1609]],[[64772,64772],"mapped",[1582,1610]],[[64773,64773],"mapped",[1589,1609]],[[64774,64774],"mapped",[1589,1610]],[[64775,64775],"mapped",[1590,1609]],[[64776,64776],"mapped",[1590,1610]],[[64777,64777],"mapped",[1588,1580]],[[64778,64778],"mapped",[1588,1581]],[[64779,64779],"mapped",[1588,1582]],[[64780,64780],"mapped",[1588,1605]],[[64781,64781],"mapped",[1588,1585]],[[64782,64782],"mapped",[1587,1585]],[[64783,64783],"mapped",[1589,1585]],[[64784,64784],"mapped",[1590,1585]],[[64785,64785],"mapped",[1591,1609]],[[64786,64786],"mapped",[1591,1610]],[[64787,64787],"mapped",[1593,1609]],[[64788,64788],"mapped",[1593,1610]],[[64789,64789],"mapped",[1594,1609]],[[64790,64790],"mapped",[1594,1610]],[[64791,64791],"mapped",[1587,1609]],[[64792,64792],"mapped",[1587,1610]],[[64793,64793],"mapped",[1588,1609]],[[64794,64794],"mapped",[1588,1610]],[[64795,64795],"mapped",[1581,1609]],[[64796,64796],"mapped",[1581,1610]],[[64797,64797],"mapped",[1580,1609]],[[64798,64798],"mapped",[1580,1610]],[[64799,64799],"mapped",[1582,1609]],[[64800,64800],"mapped",[1582,1610]],[[64801,64801],"mapped",[1589,1609]],[[64802,64802],"mapped",[1589,1610]],[[64803,64803],"mapped",[1590,1609]],[[64804,64804],"mapped",[1590,1610]],[[64805,64805],"mapped",[1588,1580]],[[64806,64806],"mapped",[1588,1581]],[[64807,64807],"mapped",[1588,1582]],[[64808,64808],"mapped",[1588,1605]],[[64809,64809],"mapped",[1588,1585]],[[64810,64810],"mapped",[1587,1585]],[[64811,64811],"mapped",[1589,1585]],[[64812,64812],"mapped",[1590,1585]],[[64813,64813],"mapped",[1588,1580]],[[64814,64814],"mapped",[1588,1581]],[[64815,64815],"mapped",[1588,1582]],[[64816,64816],"mapped",[1588,1605]],[[64817,64817],"mapped",[1587,1607]],[[64818,64818],"mapped",[1588,1607]],[[64819,64819],"mapped",[1591,1605]],[[64820,64820],"mapped",[1587,1580]],[[64821,64821],"mapped",[1587,1581]],[[64822,64822],"mapped",[1587,1582]],[[64823,64823],"mapped",[1588,1580]],[[64824,64824],"mapped",[1588,1581]],[[64825,64825],"mapped",[1588,1582]],[[64826,64826],"mapped",[1591,1605]],[[64827,64827],"mapped",[1592,1605]],[[64828,64829],"mapped",[1575,1611]],[[64830,64831],"valid",[],"NV8"],[[64832,64847],"disallowed"],[[64848,64848],"mapped",[1578,1580,1605]],[[64849,64850],"mapped",[1578,1581,1580]],[[64851,64851],"mapped",[1578,1581,1605]],[[64852,64852],"mapped",[1578,1582,1605]],[[64853,64853],"mapped",[1578,1605,1580]],[[64854,64854],"mapped",[1578,1605,1581]],[[64855,64855],"mapped",[1578,1605,1582]],[[64856,64857],"mapped",[1580,1605,1581]],[[64858,64858],"mapped",[1581,1605,1610]],[[64859,64859],"mapped",[1581,1605,1609]],[[64860,64860],"mapped",[1587,1581,1580]],[[64861,64861],"mapped",[1587,1580,1581]],[[64862,64862],"mapped",[1587,1580,1609]],[[64863,64864],"mapped",[1587,1605,1581]],[[64865,64865],"mapped",[1587,1605,1580]],[[64866,64867],"mapped",[1587,1605,1605]],[[64868,64869],"mapped",[1589,1581,1581]],[[64870,64870],"mapped",[1589,1605,1605]],[[64871,64872],"mapped",[1588,1581,1605]],[[64873,64873],"mapped",[1588,1580,1610]],[[64874,64875],"mapped",[1588,1605,1582]],[[64876,64877],"mapped",[1588,1605,1605]],[[64878,64878],"mapped",[1590,1581,1609]],[[64879,64880],"mapped",[1590,1582,1605]],[[64881,64882],"mapped",[1591,1605,1581]],[[64883,64883],"mapped",[1591,1605,1605]],[[64884,64884],"mapped",[1591,1605,1610]],[[64885,64885],"mapped",[1593,1580,1605]],[[64886,64887],"mapped",[1593,1605,1605]],[[64888,64888],"mapped",[1593,1605,1609]],[[64889,64889],"mapped",[1594,1605,1605]],[[64890,64890],"mapped",[1594,1605,1610]],[[64891,64891],"mapped",[1594,1605,1609]],[[64892,64893],"mapped",[1601,1582,1605]],[[64894,64894],"mapped",[1602,1605,1581]],[[64895,64895],"mapped",[1602,1605,1605]],[[64896,64896],"mapped",[1604,1581,1605]],[[64897,64897],"mapped",[1604,1581,1610]],[[64898,64898],"mapped",[1604,1581,1609]],[[64899,64900],"mapped",[1604,1580,1580]],[[64901,64902],"mapped",[1604,1582,1605]],[[64903,64904],"mapped",[1604,1605,1581]],[[64905,64905],"mapped",[1605,1581,1580]],[[64906,64906],"mapped",[1605,1581,1605]],[[64907,64907],"mapped",[1605,1581,1610]],[[64908,64908],"mapped",[1605,1580,1581]],[[64909,64909],"mapped",[1605,1580,1605]],[[64910,64910],"mapped",[1605,1582,1580]],[[64911,64911],"mapped",[1605,1582,1605]],[[64912,64913],"disallowed"],[[64914,64914],"mapped",[1605,1580,1582]],[[64915,64915],"mapped",[1607,1605,1580]],[[64916,64916],"mapped",[1607,1605,1605]],[[64917,64917],"mapped",[1606,1581,1605]],[[64918,64918],"mapped",[1606,1581,1609]],[[64919,64920],"mapped",[1606,1580,1605]],[[64921,64921],"mapped",[1606,1580,1609]],[[64922,64922],"mapped",[1606,1605,1610]],[[64923,64923],"mapped",[1606,1605,1609]],[[64924,64925],"mapped",[1610,1605,1605]],[[64926,64926],"mapped",[1576,1582,1610]],[[64927,64927],"mapped",[1578,1580,1610]],[[64928,64928],"mapped",[1578,1580,1609]],[[64929,64929],"mapped",[1578,1582,1610]],[[64930,64930],"mapped",[1578,1582,1609]],[[64931,64931],"mapped",[1578,1605,1610]],[[64932,64932],"mapped",[1578,1605,1609]],[[64933,64933],"mapped",[1580,1605,1610]],[[64934,64934],"mapped",[1580,1581,1609]],[[64935,64935],"mapped",[1580,1605,1609]],[[64936,64936],"mapped",[1587,1582,1609]],[[64937,64937],"mapped",[1589,1581,1610]],[[64938,64938],"mapped",[1588,1581,1610]],[[64939,64939],"mapped",[1590,1581,1610]],[[64940,64940],"mapped",[1604,1580,1610]],[[64941,64941],"mapped",[1604,1605,1610]],[[64942,64942],"mapped",[1610,1581,1610]],[[64943,64943],"mapped",[1610,1580,1610]],[[64944,64944],"mapped",[1610,1605,1610]],[[64945,64945],"mapped",[1605,1605,1610]],[[64946,64946],"mapped",[1602,1605,1610]],[[64947,64947],"mapped",[1606,1581,1610]],[[64948,64948],"mapped",[1602,1605,1581]],[[64949,64949],"mapped",[1604,1581,1605]],[[64950,64950],"mapped",[1593,1605,1610]],[[64951,64951],"mapped",[1603,1605,1610]],[[64952,64952],"mapped",[1606,1580,1581]],[[64953,64953],"mapped",[1605,1582,1610]],[[64954,64954],"mapped",[1604,1580,1605]],[[64955,64955],"mapped",[1603,1605,1605]],[[64956,64956],"mapped",[1604,1580,1605]],[[64957,64957],"mapped",[1606,1580,1581]],[[64958,64958],"mapped",[1580,1581,1610]],[[64959,64959],"mapped",[1581,1580,1610]],[[64960,64960],"mapped",[1605,1580,1610]],[[64961,64961],"mapped",[1601,1605,1610]],[[64962,64962],"mapped",[1576,1581,1610]],[[64963,64963],"mapped",[1603,1605,1605]],[[64964,64964],"mapped",[1593,1580,1605]],[[64965,64965],"mapped",[1589,1605,1605]],[[64966,64966],"mapped",[1587,1582,1610]],[[64967,64967],"mapped",[1606,1580,1610]],[[64968,64975],"disallowed"],[[64976,65007],"disallowed"],[[65008,65008],"mapped",[1589,1604,1746]],[[65009,65009],"mapped",[1602,1604,1746]],[[65010,65010],"mapped",[1575,1604,1604,1607]],[[65011,65011],"mapped",[1575,1603,1576,1585]],[[65012,65012],"mapped",[1605,1581,1605,1583]],[[65013,65013],"mapped",[1589,1604,1593,1605]],[[65014,65014],"mapped",[1585,1587,1608,1604]],[[65015,65015],"mapped",[1593,1604,1610,1607]],[[65016,65016],"mapped",[1608,1587,1604,1605]],[[65017,65017],"mapped",[1589,1604,1609]],[[65018,65018],"disallowed_STD3_mapped",[1589,1604,1609,32,1575,1604,1604,1607,32,1593,1604,1610,1607,32,1608,1587,1604,1605]],[[65019,65019],"disallowed_STD3_mapped",[1580,1604,32,1580,1604,1575,1604,1607]],[[65020,65020],"mapped",[1585,1740,1575,1604]],[[65021,65021],"valid",[],"NV8"],[[65022,65023],"disallowed"],[[65024,65039],"ignored"],[[65040,65040],"disallowed_STD3_mapped",[44]],[[65041,65041],"mapped",[12289]],[[65042,65042],"disallowed"],[[65043,65043],"disallowed_STD3_mapped",[58]],[[65044,65044],"disallowed_STD3_mapped",[59]],[[65045,65045],"disallowed_STD3_mapped",[33]],[[65046,65046],"disallowed_STD3_mapped",[63]],[[65047,65047],"mapped",[12310]],[[65048,65048],"mapped",[12311]],[[65049,65049],"disallowed"],[[65050,65055],"disallowed"],[[65056,65059],"valid"],[[65060,65062],"valid"],[[65063,65069],"valid"],[[65070,65071],"valid"],[[65072,65072],"disallowed"],[[65073,65073],"mapped",[8212]],[[65074,65074],"mapped",[8211]],[[65075,65076],"disallowed_STD3_mapped",[95]],[[65077,65077],"disallowed_STD3_mapped",[40]],[[65078,65078],"disallowed_STD3_mapped",[41]],[[65079,65079],"disallowed_STD3_mapped",[123]],[[65080,65080],"disallowed_STD3_mapped",[125]],[[65081,65081],"mapped",[12308]],[[65082,65082],"mapped",[12309]],[[65083,65083],"mapped",[12304]],[[65084,65084],"mapped",[12305]],[[65085,65085],"mapped",[12298]],[[65086,65086],"mapped",[12299]],[[65087,65087],"mapped",[12296]],[[65088,65088],"mapped",[12297]],[[65089,65089],"mapped",[12300]],[[65090,65090],"mapped",[12301]],[[65091,65091],"mapped",[12302]],[[65092,65092],"mapped",[12303]],[[65093,65094],"valid",[],"NV8"],[[65095,65095],"disallowed_STD3_mapped",[91]],[[65096,65096],"disallowed_STD3_mapped",[93]],[[65097,65100],"disallowed_STD3_mapped",[32,773]],[[65101,65103],"disallowed_STD3_mapped",[95]],[[65104,65104],"disallowed_STD3_mapped",[44]],[[65105,65105],"mapped",[12289]],[[65106,65106],"disallowed"],[[65107,65107],"disallowed"],[[65108,65108],"disallowed_STD3_mapped",[59]],[[65109,65109],"disallowed_STD3_mapped",[58]],[[65110,65110],"disallowed_STD3_mapped",[63]],[[65111,65111],"disallowed_STD3_mapped",[33]],[[65112,65112],"mapped",[8212]],[[65113,65113],"disallowed_STD3_mapped",[40]],[[65114,65114],"disallowed_STD3_mapped",[41]],[[65115,65115],"disallowed_STD3_mapped",[123]],[[65116,65116],"disallowed_STD3_mapped",[125]],[[65117,65117],"mapped",[12308]],[[65118,65118],"mapped",[12309]],[[65119,65119],"disallowed_STD3_mapped",[35]],[[65120,65120],"disallowed_STD3_mapped",[38]],[[65121,65121],"disallowed_STD3_mapped",[42]],[[65122,65122],"disallowed_STD3_mapped",[43]],[[65123,65123],"mapped",[45]],[[65124,65124],"disallowed_STD3_mapped",[60]],[[65125,65125],"disallowed_STD3_mapped",[62]],[[65126,65126],"disallowed_STD3_mapped",[61]],[[65127,65127],"disallowed"],[[65128,65128],"disallowed_STD3_mapped",[92]],[[65129,65129],"disallowed_STD3_mapped",[36]],[[65130,65130],"disallowed_STD3_mapped",[37]],[[65131,65131],"disallowed_STD3_mapped",[64]],[[65132,65135],"disallowed"],[[65136,65136],"disallowed_STD3_mapped",[32,1611]],[[65137,65137],"mapped",[1600,1611]],[[65138,65138],"disallowed_STD3_mapped",[32,1612]],[[65139,65139],"valid"],[[65140,65140],"disallowed_STD3_mapped",[32,1613]],[[65141,65141],"disallowed"],[[65142,65142],"disallowed_STD3_mapped",[32,1614]],[[65143,65143],"mapped",[1600,1614]],[[65144,65144],"disallowed_STD3_mapped",[32,1615]],[[65145,65145],"mapped",[1600,1615]],[[65146,65146],"disallowed_STD3_mapped",[32,1616]],[[65147,65147],"mapped",[1600,1616]],[[65148,65148],"disallowed_STD3_mapped",[32,1617]],[[65149,65149],"mapped",[1600,1617]],[[65150,65150],"disallowed_STD3_mapped",[32,1618]],[[65151,65151],"mapped",[1600,1618]],[[65152,65152],"mapped",[1569]],[[65153,65154],"mapped",[1570]],[[65155,65156],"mapped",[1571]],[[65157,65158],"mapped",[1572]],[[65159,65160],"mapped",[1573]],[[65161,65164],"mapped",[1574]],[[65165,65166],"mapped",[1575]],[[65167,65170],"mapped",[1576]],[[65171,65172],"mapped",[1577]],[[65173,65176],"mapped",[1578]],[[65177,65180],"mapped",[1579]],[[65181,65184],"mapped",[1580]],[[65185,65188],"mapped",[1581]],[[65189,65192],"mapped",[1582]],[[65193,65194],"mapped",[1583]],[[65195,65196],"mapped",[1584]],[[65197,65198],"mapped",[1585]],[[65199,65200],"mapped",[1586]],[[65201,65204],"mapped",[1587]],[[65205,65208],"mapped",[1588]],[[65209,65212],"mapped",[1589]],[[65213,65216],"mapped",[1590]],[[65217,65220],"mapped",[1591]],[[65221,65224],"mapped",[1592]],[[65225,65228],"mapped",[1593]],[[65229,65232],"mapped",[1594]],[[65233,65236],"mapped",[1601]],[[65237,65240],"mapped",[1602]],[[65241,65244],"mapped",[1603]],[[65245,65248],"mapped",[1604]],[[65249,65252],"mapped",[1605]],[[65253,65256],"mapped",[1606]],[[65257,65260],"mapped",[1607]],[[65261,65262],"mapped",[1608]],[[65263,65264],"mapped",[1609]],[[65265,65268],"mapped",[1610]],[[65269,65270],"mapped",[1604,1570]],[[65271,65272],"mapped",[1604,1571]],[[65273,65274],"mapped",[1604,1573]],[[65275,65276],"mapped",[1604,1575]],[[65277,65278],"disallowed"],[[65279,65279],"ignored"],[[65280,65280],"disallowed"],[[65281,65281],"disallowed_STD3_mapped",[33]],[[65282,65282],"disallowed_STD3_mapped",[34]],[[65283,65283],"disallowed_STD3_mapped",[35]],[[65284,65284],"disallowed_STD3_mapped",[36]],[[65285,65285],"disallowed_STD3_mapped",[37]],[[65286,65286],"disallowed_STD3_mapped",[38]],[[65287,65287],"disallowed_STD3_mapped",[39]],[[65288,65288],"disallowed_STD3_mapped",[40]],[[65289,65289],"disallowed_STD3_mapped",[41]],[[65290,65290],"disallowed_STD3_mapped",[42]],[[65291,65291],"disallowed_STD3_mapped",[43]],[[65292,65292],"disallowed_STD3_mapped",[44]],[[65293,65293],"mapped",[45]],[[65294,65294],"mapped",[46]],[[65295,65295],"disallowed_STD3_mapped",[47]],[[65296,65296],"mapped",[48]],[[65297,65297],"mapped",[49]],[[65298,65298],"mapped",[50]],[[65299,65299],"mapped",[51]],[[65300,65300],"mapped",[52]],[[65301,65301],"mapped",[53]],[[65302,65302],"mapped",[54]],[[65303,65303],"mapped",[55]],[[65304,65304],"mapped",[56]],[[65305,65305],"mapped",[57]],[[65306,65306],"disallowed_STD3_mapped",[58]],[[65307,65307],"disallowed_STD3_mapped",[59]],[[65308,65308],"disallowed_STD3_mapped",[60]],[[65309,65309],"disallowed_STD3_mapped",[61]],[[65310,65310],"disallowed_STD3_mapped",[62]],[[65311,65311],"disallowed_STD3_mapped",[63]],[[65312,65312],"disallowed_STD3_mapped",[64]],[[65313,65313],"mapped",[97]],[[65314,65314],"mapped",[98]],[[65315,65315],"mapped",[99]],[[65316,65316],"mapped",[100]],[[65317,65317],"mapped",[101]],[[65318,65318],"mapped",[102]],[[65319,65319],"mapped",[103]],[[65320,65320],"mapped",[104]],[[65321,65321],"mapped",[105]],[[65322,65322],"mapped",[106]],[[65323,65323],"mapped",[107]],[[65324,65324],"mapped",[108]],[[65325,65325],"mapped",[109]],[[65326,65326],"mapped",[110]],[[65327,65327],"mapped",[111]],[[65328,65328],"mapped",[112]],[[65329,65329],"mapped",[113]],[[65330,65330],"mapped",[114]],[[65331,65331],"mapped",[115]],[[65332,65332],"mapped",[116]],[[65333,65333],"mapped",[117]],[[65334,65334],"mapped",[118]],[[65335,65335],"mapped",[119]],[[65336,65336],"mapped",[120]],[[65337,65337],"mapped",[121]],[[65338,65338],"mapped",[122]],[[65339,65339],"disallowed_STD3_mapped",[91]],[[65340,65340],"disallowed_STD3_mapped",[92]],[[65341,65341],"disallowed_STD3_mapped",[93]],[[65342,65342],"disallowed_STD3_mapped",[94]],[[65343,65343],"disallowed_STD3_mapped",[95]],[[65344,65344],"disallowed_STD3_mapped",[96]],[[65345,65345],"mapped",[97]],[[65346,65346],"mapped",[98]],[[65347,65347],"mapped",[99]],[[65348,65348],"mapped",[100]],[[65349,65349],"mapped",[101]],[[65350,65350],"mapped",[102]],[[65351,65351],"mapped",[103]],[[65352,65352],"mapped",[104]],[[65353,65353],"mapped",[105]],[[65354,65354],"mapped",[106]],[[65355,65355],"mapped",[107]],[[65356,65356],"mapped",[108]],[[65357,65357],"mapped",[109]],[[65358,65358],"mapped",[110]],[[65359,65359],"mapped",[111]],[[65360,65360],"mapped",[112]],[[65361,65361],"mapped",[113]],[[65362,65362],"mapped",[114]],[[65363,65363],"mapped",[115]],[[65364,65364],"mapped",[116]],[[65365,65365],"mapped",[117]],[[65366,65366],"mapped",[118]],[[65367,65367],"mapped",[119]],[[65368,65368],"mapped",[120]],[[65369,65369],"mapped",[121]],[[65370,65370],"mapped",[122]],[[65371,65371],"disallowed_STD3_mapped",[123]],[[65372,65372],"disallowed_STD3_mapped",[124]],[[65373,65373],"disallowed_STD3_mapped",[125]],[[65374,65374],"disallowed_STD3_mapped",[126]],[[65375,65375],"mapped",[10629]],[[65376,65376],"mapped",[10630]],[[65377,65377],"mapped",[46]],[[65378,65378],"mapped",[12300]],[[65379,65379],"mapped",[12301]],[[65380,65380],"mapped",[12289]],[[65381,65381],"mapped",[12539]],[[65382,65382],"mapped",[12530]],[[65383,65383],"mapped",[12449]],[[65384,65384],"mapped",[12451]],[[65385,65385],"mapped",[12453]],[[65386,65386],"mapped",[12455]],[[65387,65387],"mapped",[12457]],[[65388,65388],"mapped",[12515]],[[65389,65389],"mapped",[12517]],[[65390,65390],"mapped",[12519]],[[65391,65391],"mapped",[12483]],[[65392,65392],"mapped",[12540]],[[65393,65393],"mapped",[12450]],[[65394,65394],"mapped",[12452]],[[65395,65395],"mapped",[12454]],[[65396,65396],"mapped",[12456]],[[65397,65397],"mapped",[12458]],[[65398,65398],"mapped",[12459]],[[65399,65399],"mapped",[12461]],[[65400,65400],"mapped",[12463]],[[65401,65401],"mapped",[12465]],[[65402,65402],"mapped",[12467]],[[65403,65403],"mapped",[12469]],[[65404,65404],"mapped",[12471]],[[65405,65405],"mapped",[12473]],[[65406,65406],"mapped",[12475]],[[65407,65407],"mapped",[12477]],[[65408,65408],"mapped",[12479]],[[65409,65409],"mapped",[12481]],[[65410,65410],"mapped",[12484]],[[65411,65411],"mapped",[12486]],[[65412,65412],"mapped",[12488]],[[65413,65413],"mapped",[12490]],[[65414,65414],"mapped",[12491]],[[65415,65415],"mapped",[12492]],[[65416,65416],"mapped",[12493]],[[65417,65417],"mapped",[12494]],[[65418,65418],"mapped",[12495]],[[65419,65419],"mapped",[12498]],[[65420,65420],"mapped",[12501]],[[65421,65421],"mapped",[12504]],[[65422,65422],"mapped",[12507]],[[65423,65423],"mapped",[12510]],[[65424,65424],"mapped",[12511]],[[65425,65425],"mapped",[12512]],[[65426,65426],"mapped",[12513]],[[65427,65427],"mapped",[12514]],[[65428,65428],"mapped",[12516]],[[65429,65429],"mapped",[12518]],[[65430,65430],"mapped",[12520]],[[65431,65431],"mapped",[12521]],[[65432,65432],"mapped",[12522]],[[65433,65433],"mapped",[12523]],[[65434,65434],"mapped",[12524]],[[65435,65435],"mapped",[12525]],[[65436,65436],"mapped",[12527]],[[65437,65437],"mapped",[12531]],[[65438,65438],"mapped",[12441]],[[65439,65439],"mapped",[12442]],[[65440,65440],"disallowed"],[[65441,65441],"mapped",[4352]],[[65442,65442],"mapped",[4353]],[[65443,65443],"mapped",[4522]],[[65444,65444],"mapped",[4354]],[[65445,65445],"mapped",[4524]],[[65446,65446],"mapped",[4525]],[[65447,65447],"mapped",[4355]],[[65448,65448],"mapped",[4356]],[[65449,65449],"mapped",[4357]],[[65450,65450],"mapped",[4528]],[[65451,65451],"mapped",[4529]],[[65452,65452],"mapped",[4530]],[[65453,65453],"mapped",[4531]],[[65454,65454],"mapped",[4532]],[[65455,65455],"mapped",[4533]],[[65456,65456],"mapped",[4378]],[[65457,65457],"mapped",[4358]],[[65458,65458],"mapped",[4359]],[[65459,65459],"mapped",[4360]],[[65460,65460],"mapped",[4385]],[[65461,65461],"mapped",[4361]],[[65462,65462],"mapped",[4362]],[[65463,65463],"mapped",[4363]],[[65464,65464],"mapped",[4364]],[[65465,65465],"mapped",[4365]],[[65466,65466],"mapped",[4366]],[[65467,65467],"mapped",[4367]],[[65468,65468],"mapped",[4368]],[[65469,65469],"mapped",[4369]],[[65470,65470],"mapped",[4370]],[[65471,65473],"disallowed"],[[65474,65474],"mapped",[4449]],[[65475,65475],"mapped",[4450]],[[65476,65476],"mapped",[4451]],[[65477,65477],"mapped",[4452]],[[65478,65478],"mapped",[4453]],[[65479,65479],"mapped",[4454]],[[65480,65481],"disallowed"],[[65482,65482],"mapped",[4455]],[[65483,65483],"mapped",[4456]],[[65484,65484],"mapped",[4457]],[[65485,65485],"mapped",[4458]],[[65486,65486],"mapped",[4459]],[[65487,65487],"mapped",[4460]],[[65488,65489],"disallowed"],[[65490,65490],"mapped",[4461]],[[65491,65491],"mapped",[4462]],[[65492,65492],"mapped",[4463]],[[65493,65493],"mapped",[4464]],[[65494,65494],"mapped",[4465]],[[65495,65495],"mapped",[4466]],[[65496,65497],"disallowed"],[[65498,65498],"mapped",[4467]],[[65499,65499],"mapped",[4468]],[[65500,65500],"mapped",[4469]],[[65501,65503],"disallowed"],[[65504,65504],"mapped",[162]],[[65505,65505],"mapped",[163]],[[65506,65506],"mapped",[172]],[[65507,65507],"disallowed_STD3_mapped",[32,772]],[[65508,65508],"mapped",[166]],[[65509,65509],"mapped",[165]],[[65510,65510],"mapped",[8361]],[[65511,65511],"disallowed"],[[65512,65512],"mapped",[9474]],[[65513,65513],"mapped",[8592]],[[65514,65514],"mapped",[8593]],[[65515,65515],"mapped",[8594]],[[65516,65516],"mapped",[8595]],[[65517,65517],"mapped",[9632]],[[65518,65518],"mapped",[9675]],[[65519,65528],"disallowed"],[[65529,65531],"disallowed"],[[65532,65532],"disallowed"],[[65533,65533],"disallowed"],[[65534,65535],"disallowed"],[[65536,65547],"valid"],[[65548,65548],"disallowed"],[[65549,65574],"valid"],[[65575,65575],"disallowed"],[[65576,65594],"valid"],[[65595,65595],"disallowed"],[[65596,65597],"valid"],[[65598,65598],"disallowed"],[[65599,65613],"valid"],[[65614,65615],"disallowed"],[[65616,65629],"valid"],[[65630,65663],"disallowed"],[[65664,65786],"valid"],[[65787,65791],"disallowed"],[[65792,65794],"valid",[],"NV8"],[[65795,65798],"disallowed"],[[65799,65843],"valid",[],"NV8"],[[65844,65846],"disallowed"],[[65847,65855],"valid",[],"NV8"],[[65856,65930],"valid",[],"NV8"],[[65931,65932],"valid",[],"NV8"],[[65933,65935],"disallowed"],[[65936,65947],"valid",[],"NV8"],[[65948,65951],"disallowed"],[[65952,65952],"valid",[],"NV8"],[[65953,65999],"disallowed"],[[66e3,66044],"valid",[],"NV8"],[[66045,66045],"valid"],[[66046,66175],"disallowed"],[[66176,66204],"valid"],[[66205,66207],"disallowed"],[[66208,66256],"valid"],[[66257,66271],"disallowed"],[[66272,66272],"valid"],[[66273,66299],"valid",[],"NV8"],[[66300,66303],"disallowed"],[[66304,66334],"valid"],[[66335,66335],"valid"],[[66336,66339],"valid",[],"NV8"],[[66340,66351],"disallowed"],[[66352,66368],"valid"],[[66369,66369],"valid",[],"NV8"],[[66370,66377],"valid"],[[66378,66378],"valid",[],"NV8"],[[66379,66383],"disallowed"],[[66384,66426],"valid"],[[66427,66431],"disallowed"],[[66432,66461],"valid"],[[66462,66462],"disallowed"],[[66463,66463],"valid",[],"NV8"],[[66464,66499],"valid"],[[66500,66503],"disallowed"],[[66504,66511],"valid"],[[66512,66517],"valid",[],"NV8"],[[66518,66559],"disallowed"],[[66560,66560],"mapped",[66600]],[[66561,66561],"mapped",[66601]],[[66562,66562],"mapped",[66602]],[[66563,66563],"mapped",[66603]],[[66564,66564],"mapped",[66604]],[[66565,66565],"mapped",[66605]],[[66566,66566],"mapped",[66606]],[[66567,66567],"mapped",[66607]],[[66568,66568],"mapped",[66608]],[[66569,66569],"mapped",[66609]],[[66570,66570],"mapped",[66610]],[[66571,66571],"mapped",[66611]],[[66572,66572],"mapped",[66612]],[[66573,66573],"mapped",[66613]],[[66574,66574],"mapped",[66614]],[[66575,66575],"mapped",[66615]],[[66576,66576],"mapped",[66616]],[[66577,66577],"mapped",[66617]],[[66578,66578],"mapped",[66618]],[[66579,66579],"mapped",[66619]],[[66580,66580],"mapped",[66620]],[[66581,66581],"mapped",[66621]],[[66582,66582],"mapped",[66622]],[[66583,66583],"mapped",[66623]],[[66584,66584],"mapped",[66624]],[[66585,66585],"mapped",[66625]],[[66586,66586],"mapped",[66626]],[[66587,66587],"mapped",[66627]],[[66588,66588],"mapped",[66628]],[[66589,66589],"mapped",[66629]],[[66590,66590],"mapped",[66630]],[[66591,66591],"mapped",[66631]],[[66592,66592],"mapped",[66632]],[[66593,66593],"mapped",[66633]],[[66594,66594],"mapped",[66634]],[[66595,66595],"mapped",[66635]],[[66596,66596],"mapped",[66636]],[[66597,66597],"mapped",[66637]],[[66598,66598],"mapped",[66638]],[[66599,66599],"mapped",[66639]],[[66600,66637],"valid"],[[66638,66717],"valid"],[[66718,66719],"disallowed"],[[66720,66729],"valid"],[[66730,66815],"disallowed"],[[66816,66855],"valid"],[[66856,66863],"disallowed"],[[66864,66915],"valid"],[[66916,66926],"disallowed"],[[66927,66927],"valid",[],"NV8"],[[66928,67071],"disallowed"],[[67072,67382],"valid"],[[67383,67391],"disallowed"],[[67392,67413],"valid"],[[67414,67423],"disallowed"],[[67424,67431],"valid"],[[67432,67583],"disallowed"],[[67584,67589],"valid"],[[67590,67591],"disallowed"],[[67592,67592],"valid"],[[67593,67593],"disallowed"],[[67594,67637],"valid"],[[67638,67638],"disallowed"],[[67639,67640],"valid"],[[67641,67643],"disallowed"],[[67644,67644],"valid"],[[67645,67646],"disallowed"],[[67647,67647],"valid"],[[67648,67669],"valid"],[[67670,67670],"disallowed"],[[67671,67679],"valid",[],"NV8"],[[67680,67702],"valid"],[[67703,67711],"valid",[],"NV8"],[[67712,67742],"valid"],[[67743,67750],"disallowed"],[[67751,67759],"valid",[],"NV8"],[[67760,67807],"disallowed"],[[67808,67826],"valid"],[[67827,67827],"disallowed"],[[67828,67829],"valid"],[[67830,67834],"disallowed"],[[67835,67839],"valid",[],"NV8"],[[67840,67861],"valid"],[[67862,67865],"valid",[],"NV8"],[[67866,67867],"valid",[],"NV8"],[[67868,67870],"disallowed"],[[67871,67871],"valid",[],"NV8"],[[67872,67897],"valid"],[[67898,67902],"disallowed"],[[67903,67903],"valid",[],"NV8"],[[67904,67967],"disallowed"],[[67968,68023],"valid"],[[68024,68027],"disallowed"],[[68028,68029],"valid",[],"NV8"],[[68030,68031],"valid"],[[68032,68047],"valid",[],"NV8"],[[68048,68049],"disallowed"],[[68050,68095],"valid",[],"NV8"],[[68096,68099],"valid"],[[68100,68100],"disallowed"],[[68101,68102],"valid"],[[68103,68107],"disallowed"],[[68108,68115],"valid"],[[68116,68116],"disallowed"],[[68117,68119],"valid"],[[68120,68120],"disallowed"],[[68121,68147],"valid"],[[68148,68151],"disallowed"],[[68152,68154],"valid"],[[68155,68158],"disallowed"],[[68159,68159],"valid"],[[68160,68167],"valid",[],"NV8"],[[68168,68175],"disallowed"],[[68176,68184],"valid",[],"NV8"],[[68185,68191],"disallowed"],[[68192,68220],"valid"],[[68221,68223],"valid",[],"NV8"],[[68224,68252],"valid"],[[68253,68255],"valid",[],"NV8"],[[68256,68287],"disallowed"],[[68288,68295],"valid"],[[68296,68296],"valid",[],"NV8"],[[68297,68326],"valid"],[[68327,68330],"disallowed"],[[68331,68342],"valid",[],"NV8"],[[68343,68351],"disallowed"],[[68352,68405],"valid"],[[68406,68408],"disallowed"],[[68409,68415],"valid",[],"NV8"],[[68416,68437],"valid"],[[68438,68439],"disallowed"],[[68440,68447],"valid",[],"NV8"],[[68448,68466],"valid"],[[68467,68471],"disallowed"],[[68472,68479],"valid",[],"NV8"],[[68480,68497],"valid"],[[68498,68504],"disallowed"],[[68505,68508],"valid",[],"NV8"],[[68509,68520],"disallowed"],[[68521,68527],"valid",[],"NV8"],[[68528,68607],"disallowed"],[[68608,68680],"valid"],[[68681,68735],"disallowed"],[[68736,68736],"mapped",[68800]],[[68737,68737],"mapped",[68801]],[[68738,68738],"mapped",[68802]],[[68739,68739],"mapped",[68803]],[[68740,68740],"mapped",[68804]],[[68741,68741],"mapped",[68805]],[[68742,68742],"mapped",[68806]],[[68743,68743],"mapped",[68807]],[[68744,68744],"mapped",[68808]],[[68745,68745],"mapped",[68809]],[[68746,68746],"mapped",[68810]],[[68747,68747],"mapped",[68811]],[[68748,68748],"mapped",[68812]],[[68749,68749],"mapped",[68813]],[[68750,68750],"mapped",[68814]],[[68751,68751],"mapped",[68815]],[[68752,68752],"mapped",[68816]],[[68753,68753],"mapped",[68817]],[[68754,68754],"mapped",[68818]],[[68755,68755],"mapped",[68819]],[[68756,68756],"mapped",[68820]],[[68757,68757],"mapped",[68821]],[[68758,68758],"mapped",[68822]],[[68759,68759],"mapped",[68823]],[[68760,68760],"mapped",[68824]],[[68761,68761],"mapped",[68825]],[[68762,68762],"mapped",[68826]],[[68763,68763],"mapped",[68827]],[[68764,68764],"mapped",[68828]],[[68765,68765],"mapped",[68829]],[[68766,68766],"mapped",[68830]],[[68767,68767],"mapped",[68831]],[[68768,68768],"mapped",[68832]],[[68769,68769],"mapped",[68833]],[[68770,68770],"mapped",[68834]],[[68771,68771],"mapped",[68835]],[[68772,68772],"mapped",[68836]],[[68773,68773],"mapped",[68837]],[[68774,68774],"mapped",[68838]],[[68775,68775],"mapped",[68839]],[[68776,68776],"mapped",[68840]],[[68777,68777],"mapped",[68841]],[[68778,68778],"mapped",[68842]],[[68779,68779],"mapped",[68843]],[[68780,68780],"mapped",[68844]],[[68781,68781],"mapped",[68845]],[[68782,68782],"mapped",[68846]],[[68783,68783],"mapped",[68847]],[[68784,68784],"mapped",[68848]],[[68785,68785],"mapped",[68849]],[[68786,68786],"mapped",[68850]],[[68787,68799],"disallowed"],[[68800,68850],"valid"],[[68851,68857],"disallowed"],[[68858,68863],"valid",[],"NV8"],[[68864,69215],"disallowed"],[[69216,69246],"valid",[],"NV8"],[[69247,69631],"disallowed"],[[69632,69702],"valid"],[[69703,69709],"valid",[],"NV8"],[[69710,69713],"disallowed"],[[69714,69733],"valid",[],"NV8"],[[69734,69743],"valid"],[[69744,69758],"disallowed"],[[69759,69759],"valid"],[[69760,69818],"valid"],[[69819,69820],"valid",[],"NV8"],[[69821,69821],"disallowed"],[[69822,69825],"valid",[],"NV8"],[[69826,69839],"disallowed"],[[69840,69864],"valid"],[[69865,69871],"disallowed"],[[69872,69881],"valid"],[[69882,69887],"disallowed"],[[69888,69940],"valid"],[[69941,69941],"disallowed"],[[69942,69951],"valid"],[[69952,69955],"valid",[],"NV8"],[[69956,69967],"disallowed"],[[69968,70003],"valid"],[[70004,70005],"valid",[],"NV8"],[[70006,70006],"valid"],[[70007,70015],"disallowed"],[[70016,70084],"valid"],[[70085,70088],"valid",[],"NV8"],[[70089,70089],"valid",[],"NV8"],[[70090,70092],"valid"],[[70093,70093],"valid",[],"NV8"],[[70094,70095],"disallowed"],[[70096,70105],"valid"],[[70106,70106],"valid"],[[70107,70107],"valid",[],"NV8"],[[70108,70108],"valid"],[[70109,70111],"valid",[],"NV8"],[[70112,70112],"disallowed"],[[70113,70132],"valid",[],"NV8"],[[70133,70143],"disallowed"],[[70144,70161],"valid"],[[70162,70162],"disallowed"],[[70163,70199],"valid"],[[70200,70205],"valid",[],"NV8"],[[70206,70271],"disallowed"],[[70272,70278],"valid"],[[70279,70279],"disallowed"],[[70280,70280],"valid"],[[70281,70281],"disallowed"],[[70282,70285],"valid"],[[70286,70286],"disallowed"],[[70287,70301],"valid"],[[70302,70302],"disallowed"],[[70303,70312],"valid"],[[70313,70313],"valid",[],"NV8"],[[70314,70319],"disallowed"],[[70320,70378],"valid"],[[70379,70383],"disallowed"],[[70384,70393],"valid"],[[70394,70399],"disallowed"],[[70400,70400],"valid"],[[70401,70403],"valid"],[[70404,70404],"disallowed"],[[70405,70412],"valid"],[[70413,70414],"disallowed"],[[70415,70416],"valid"],[[70417,70418],"disallowed"],[[70419,70440],"valid"],[[70441,70441],"disallowed"],[[70442,70448],"valid"],[[70449,70449],"disallowed"],[[70450,70451],"valid"],[[70452,70452],"disallowed"],[[70453,70457],"valid"],[[70458,70459],"disallowed"],[[70460,70468],"valid"],[[70469,70470],"disallowed"],[[70471,70472],"valid"],[[70473,70474],"disallowed"],[[70475,70477],"valid"],[[70478,70479],"disallowed"],[[70480,70480],"valid"],[[70481,70486],"disallowed"],[[70487,70487],"valid"],[[70488,70492],"disallowed"],[[70493,70499],"valid"],[[70500,70501],"disallowed"],[[70502,70508],"valid"],[[70509,70511],"disallowed"],[[70512,70516],"valid"],[[70517,70783],"disallowed"],[[70784,70853],"valid"],[[70854,70854],"valid",[],"NV8"],[[70855,70855],"valid"],[[70856,70863],"disallowed"],[[70864,70873],"valid"],[[70874,71039],"disallowed"],[[71040,71093],"valid"],[[71094,71095],"disallowed"],[[71096,71104],"valid"],[[71105,71113],"valid",[],"NV8"],[[71114,71127],"valid",[],"NV8"],[[71128,71133],"valid"],[[71134,71167],"disallowed"],[[71168,71232],"valid"],[[71233,71235],"valid",[],"NV8"],[[71236,71236],"valid"],[[71237,71247],"disallowed"],[[71248,71257],"valid"],[[71258,71295],"disallowed"],[[71296,71351],"valid"],[[71352,71359],"disallowed"],[[71360,71369],"valid"],[[71370,71423],"disallowed"],[[71424,71449],"valid"],[[71450,71452],"disallowed"],[[71453,71467],"valid"],[[71468,71471],"disallowed"],[[71472,71481],"valid"],[[71482,71487],"valid",[],"NV8"],[[71488,71839],"disallowed"],[[71840,71840],"mapped",[71872]],[[71841,71841],"mapped",[71873]],[[71842,71842],"mapped",[71874]],[[71843,71843],"mapped",[71875]],[[71844,71844],"mapped",[71876]],[[71845,71845],"mapped",[71877]],[[71846,71846],"mapped",[71878]],[[71847,71847],"mapped",[71879]],[[71848,71848],"mapped",[71880]],[[71849,71849],"mapped",[71881]],[[71850,71850],"mapped",[71882]],[[71851,71851],"mapped",[71883]],[[71852,71852],"mapped",[71884]],[[71853,71853],"mapped",[71885]],[[71854,71854],"mapped",[71886]],[[71855,71855],"mapped",[71887]],[[71856,71856],"mapped",[71888]],[[71857,71857],"mapped",[71889]],[[71858,71858],"mapped",[71890]],[[71859,71859],"mapped",[71891]],[[71860,71860],"mapped",[71892]],[[71861,71861],"mapped",[71893]],[[71862,71862],"mapped",[71894]],[[71863,71863],"mapped",[71895]],[[71864,71864],"mapped",[71896]],[[71865,71865],"mapped",[71897]],[[71866,71866],"mapped",[71898]],[[71867,71867],"mapped",[71899]],[[71868,71868],"mapped",[71900]],[[71869,71869],"mapped",[71901]],[[71870,71870],"mapped",[71902]],[[71871,71871],"mapped",[71903]],[[71872,71913],"valid"],[[71914,71922],"valid",[],"NV8"],[[71923,71934],"disallowed"],[[71935,71935],"valid"],[[71936,72383],"disallowed"],[[72384,72440],"valid"],[[72441,73727],"disallowed"],[[73728,74606],"valid"],[[74607,74648],"valid"],[[74649,74649],"valid"],[[74650,74751],"disallowed"],[[74752,74850],"valid",[],"NV8"],[[74851,74862],"valid",[],"NV8"],[[74863,74863],"disallowed"],[[74864,74867],"valid",[],"NV8"],[[74868,74868],"valid",[],"NV8"],[[74869,74879],"disallowed"],[[74880,75075],"valid"],[[75076,77823],"disallowed"],[[77824,78894],"valid"],[[78895,82943],"disallowed"],[[82944,83526],"valid"],[[83527,92159],"disallowed"],[[92160,92728],"valid"],[[92729,92735],"disallowed"],[[92736,92766],"valid"],[[92767,92767],"disallowed"],[[92768,92777],"valid"],[[92778,92781],"disallowed"],[[92782,92783],"valid",[],"NV8"],[[92784,92879],"disallowed"],[[92880,92909],"valid"],[[92910,92911],"disallowed"],[[92912,92916],"valid"],[[92917,92917],"valid",[],"NV8"],[[92918,92927],"disallowed"],[[92928,92982],"valid"],[[92983,92991],"valid",[],"NV8"],[[92992,92995],"valid"],[[92996,92997],"valid",[],"NV8"],[[92998,93007],"disallowed"],[[93008,93017],"valid"],[[93018,93018],"disallowed"],[[93019,93025],"valid",[],"NV8"],[[93026,93026],"disallowed"],[[93027,93047],"valid"],[[93048,93052],"disallowed"],[[93053,93071],"valid"],[[93072,93951],"disallowed"],[[93952,94020],"valid"],[[94021,94031],"disallowed"],[[94032,94078],"valid"],[[94079,94094],"disallowed"],[[94095,94111],"valid"],[[94112,110591],"disallowed"],[[110592,110593],"valid"],[[110594,113663],"disallowed"],[[113664,113770],"valid"],[[113771,113775],"disallowed"],[[113776,113788],"valid"],[[113789,113791],"disallowed"],[[113792,113800],"valid"],[[113801,113807],"disallowed"],[[113808,113817],"valid"],[[113818,113819],"disallowed"],[[113820,113820],"valid",[],"NV8"],[[113821,113822],"valid"],[[113823,113823],"valid",[],"NV8"],[[113824,113827],"ignored"],[[113828,118783],"disallowed"],[[118784,119029],"valid",[],"NV8"],[[119030,119039],"disallowed"],[[119040,119078],"valid",[],"NV8"],[[119079,119080],"disallowed"],[[119081,119081],"valid",[],"NV8"],[[119082,119133],"valid",[],"NV8"],[[119134,119134],"mapped",[119127,119141]],[[119135,119135],"mapped",[119128,119141]],[[119136,119136],"mapped",[119128,119141,119150]],[[119137,119137],"mapped",[119128,119141,119151]],[[119138,119138],"mapped",[119128,119141,119152]],[[119139,119139],"mapped",[119128,119141,119153]],[[119140,119140],"mapped",[119128,119141,119154]],[[119141,119154],"valid",[],"NV8"],[[119155,119162],"disallowed"],[[119163,119226],"valid",[],"NV8"],[[119227,119227],"mapped",[119225,119141]],[[119228,119228],"mapped",[119226,119141]],[[119229,119229],"mapped",[119225,119141,119150]],[[119230,119230],"mapped",[119226,119141,119150]],[[119231,119231],"mapped",[119225,119141,119151]],[[119232,119232],"mapped",[119226,119141,119151]],[[119233,119261],"valid",[],"NV8"],[[119262,119272],"valid",[],"NV8"],[[119273,119295],"disallowed"],[[119296,119365],"valid",[],"NV8"],[[119366,119551],"disallowed"],[[119552,119638],"valid",[],"NV8"],[[119639,119647],"disallowed"],[[119648,119665],"valid",[],"NV8"],[[119666,119807],"disallowed"],[[119808,119808],"mapped",[97]],[[119809,119809],"mapped",[98]],[[119810,119810],"mapped",[99]],[[119811,119811],"mapped",[100]],[[119812,119812],"mapped",[101]],[[119813,119813],"mapped",[102]],[[119814,119814],"mapped",[103]],[[119815,119815],"mapped",[104]],[[119816,119816],"mapped",[105]],[[119817,119817],"mapped",[106]],[[119818,119818],"mapped",[107]],[[119819,119819],"mapped",[108]],[[119820,119820],"mapped",[109]],[[119821,119821],"mapped",[110]],[[119822,119822],"mapped",[111]],[[119823,119823],"mapped",[112]],[[119824,119824],"mapped",[113]],[[119825,119825],"mapped",[114]],[[119826,119826],"mapped",[115]],[[119827,119827],"mapped",[116]],[[119828,119828],"mapped",[117]],[[119829,119829],"mapped",[118]],[[119830,119830],"mapped",[119]],[[119831,119831],"mapped",[120]],[[119832,119832],"mapped",[121]],[[119833,119833],"mapped",[122]],[[119834,119834],"mapped",[97]],[[119835,119835],"mapped",[98]],[[119836,119836],"mapped",[99]],[[119837,119837],"mapped",[100]],[[119838,119838],"mapped",[101]],[[119839,119839],"mapped",[102]],[[119840,119840],"mapped",[103]],[[119841,119841],"mapped",[104]],[[119842,119842],"mapped",[105]],[[119843,119843],"mapped",[106]],[[119844,119844],"mapped",[107]],[[119845,119845],"mapped",[108]],[[119846,119846],"mapped",[109]],[[119847,119847],"mapped",[110]],[[119848,119848],"mapped",[111]],[[119849,119849],"mapped",[112]],[[119850,119850],"mapped",[113]],[[119851,119851],"mapped",[114]],[[119852,119852],"mapped",[115]],[[119853,119853],"mapped",[116]],[[119854,119854],"mapped",[117]],[[119855,119855],"mapped",[118]],[[119856,119856],"mapped",[119]],[[119857,119857],"mapped",[120]],[[119858,119858],"mapped",[121]],[[119859,119859],"mapped",[122]],[[119860,119860],"mapped",[97]],[[119861,119861],"mapped",[98]],[[119862,119862],"mapped",[99]],[[119863,119863],"mapped",[100]],[[119864,119864],"mapped",[101]],[[119865,119865],"mapped",[102]],[[119866,119866],"mapped",[103]],[[119867,119867],"mapped",[104]],[[119868,119868],"mapped",[105]],[[119869,119869],"mapped",[106]],[[119870,119870],"mapped",[107]],[[119871,119871],"mapped",[108]],[[119872,119872],"mapped",[109]],[[119873,119873],"mapped",[110]],[[119874,119874],"mapped",[111]],[[119875,119875],"mapped",[112]],[[119876,119876],"mapped",[113]],[[119877,119877],"mapped",[114]],[[119878,119878],"mapped",[115]],[[119879,119879],"mapped",[116]],[[119880,119880],"mapped",[117]],[[119881,119881],"mapped",[118]],[[119882,119882],"mapped",[119]],[[119883,119883],"mapped",[120]],[[119884,119884],"mapped",[121]],[[119885,119885],"mapped",[122]],[[119886,119886],"mapped",[97]],[[119887,119887],"mapped",[98]],[[119888,119888],"mapped",[99]],[[119889,119889],"mapped",[100]],[[119890,119890],"mapped",[101]],[[119891,119891],"mapped",[102]],[[119892,119892],"mapped",[103]],[[119893,119893],"disallowed"],[[119894,119894],"mapped",[105]],[[119895,119895],"mapped",[106]],[[119896,119896],"mapped",[107]],[[119897,119897],"mapped",[108]],[[119898,119898],"mapped",[109]],[[119899,119899],"mapped",[110]],[[119900,119900],"mapped",[111]],[[119901,119901],"mapped",[112]],[[119902,119902],"mapped",[113]],[[119903,119903],"mapped",[114]],[[119904,119904],"mapped",[115]],[[119905,119905],"mapped",[116]],[[119906,119906],"mapped",[117]],[[119907,119907],"mapped",[118]],[[119908,119908],"mapped",[119]],[[119909,119909],"mapped",[120]],[[119910,119910],"mapped",[121]],[[119911,119911],"mapped",[122]],[[119912,119912],"mapped",[97]],[[119913,119913],"mapped",[98]],[[119914,119914],"mapped",[99]],[[119915,119915],"mapped",[100]],[[119916,119916],"mapped",[101]],[[119917,119917],"mapped",[102]],[[119918,119918],"mapped",[103]],[[119919,119919],"mapped",[104]],[[119920,119920],"mapped",[105]],[[119921,119921],"mapped",[106]],[[119922,119922],"mapped",[107]],[[119923,119923],"mapped",[108]],[[119924,119924],"mapped",[109]],[[119925,119925],"mapped",[110]],[[119926,119926],"mapped",[111]],[[119927,119927],"mapped",[112]],[[119928,119928],"mapped",[113]],[[119929,119929],"mapped",[114]],[[119930,119930],"mapped",[115]],[[119931,119931],"mapped",[116]],[[119932,119932],"mapped",[117]],[[119933,119933],"mapped",[118]],[[119934,119934],"mapped",[119]],[[119935,119935],"mapped",[120]],[[119936,119936],"mapped",[121]],[[119937,119937],"mapped",[122]],[[119938,119938],"mapped",[97]],[[119939,119939],"mapped",[98]],[[119940,119940],"mapped",[99]],[[119941,119941],"mapped",[100]],[[119942,119942],"mapped",[101]],[[119943,119943],"mapped",[102]],[[119944,119944],"mapped",[103]],[[119945,119945],"mapped",[104]],[[119946,119946],"mapped",[105]],[[119947,119947],"mapped",[106]],[[119948,119948],"mapped",[107]],[[119949,119949],"mapped",[108]],[[119950,119950],"mapped",[109]],[[119951,119951],"mapped",[110]],[[119952,119952],"mapped",[111]],[[119953,119953],"mapped",[112]],[[119954,119954],"mapped",[113]],[[119955,119955],"mapped",[114]],[[119956,119956],"mapped",[115]],[[119957,119957],"mapped",[116]],[[119958,119958],"mapped",[117]],[[119959,119959],"mapped",[118]],[[119960,119960],"mapped",[119]],[[119961,119961],"mapped",[120]],[[119962,119962],"mapped",[121]],[[119963,119963],"mapped",[122]],[[119964,119964],"mapped",[97]],[[119965,119965],"disallowed"],[[119966,119966],"mapped",[99]],[[119967,119967],"mapped",[100]],[[119968,119969],"disallowed"],[[119970,119970],"mapped",[103]],[[119971,119972],"disallowed"],[[119973,119973],"mapped",[106]],[[119974,119974],"mapped",[107]],[[119975,119976],"disallowed"],[[119977,119977],"mapped",[110]],[[119978,119978],"mapped",[111]],[[119979,119979],"mapped",[112]],[[119980,119980],"mapped",[113]],[[119981,119981],"disallowed"],[[119982,119982],"mapped",[115]],[[119983,119983],"mapped",[116]],[[119984,119984],"mapped",[117]],[[119985,119985],"mapped",[118]],[[119986,119986],"mapped",[119]],[[119987,119987],"mapped",[120]],[[119988,119988],"mapped",[121]],[[119989,119989],"mapped",[122]],[[119990,119990],"mapped",[97]],[[119991,119991],"mapped",[98]],[[119992,119992],"mapped",[99]],[[119993,119993],"mapped",[100]],[[119994,119994],"disallowed"],[[119995,119995],"mapped",[102]],[[119996,119996],"disallowed"],[[119997,119997],"mapped",[104]],[[119998,119998],"mapped",[105]],[[119999,119999],"mapped",[106]],[[12e4,12e4],"mapped",[107]],[[120001,120001],"mapped",[108]],[[120002,120002],"mapped",[109]],[[120003,120003],"mapped",[110]],[[120004,120004],"disallowed"],[[120005,120005],"mapped",[112]],[[120006,120006],"mapped",[113]],[[120007,120007],"mapped",[114]],[[120008,120008],"mapped",[115]],[[120009,120009],"mapped",[116]],[[120010,120010],"mapped",[117]],[[120011,120011],"mapped",[118]],[[120012,120012],"mapped",[119]],[[120013,120013],"mapped",[120]],[[120014,120014],"mapped",[121]],[[120015,120015],"mapped",[122]],[[120016,120016],"mapped",[97]],[[120017,120017],"mapped",[98]],[[120018,120018],"mapped",[99]],[[120019,120019],"mapped",[100]],[[120020,120020],"mapped",[101]],[[120021,120021],"mapped",[102]],[[120022,120022],"mapped",[103]],[[120023,120023],"mapped",[104]],[[120024,120024],"mapped",[105]],[[120025,120025],"mapped",[106]],[[120026,120026],"mapped",[107]],[[120027,120027],"mapped",[108]],[[120028,120028],"mapped",[109]],[[120029,120029],"mapped",[110]],[[120030,120030],"mapped",[111]],[[120031,120031],"mapped",[112]],[[120032,120032],"mapped",[113]],[[120033,120033],"mapped",[114]],[[120034,120034],"mapped",[115]],[[120035,120035],"mapped",[116]],[[120036,120036],"mapped",[117]],[[120037,120037],"mapped",[118]],[[120038,120038],"mapped",[119]],[[120039,120039],"mapped",[120]],[[120040,120040],"mapped",[121]],[[120041,120041],"mapped",[122]],[[120042,120042],"mapped",[97]],[[120043,120043],"mapped",[98]],[[120044,120044],"mapped",[99]],[[120045,120045],"mapped",[100]],[[120046,120046],"mapped",[101]],[[120047,120047],"mapped",[102]],[[120048,120048],"mapped",[103]],[[120049,120049],"mapped",[104]],[[120050,120050],"mapped",[105]],[[120051,120051],"mapped",[106]],[[120052,120052],"mapped",[107]],[[120053,120053],"mapped",[108]],[[120054,120054],"mapped",[109]],[[120055,120055],"mapped",[110]],[[120056,120056],"mapped",[111]],[[120057,120057],"mapped",[112]],[[120058,120058],"mapped",[113]],[[120059,120059],"mapped",[114]],[[120060,120060],"mapped",[115]],[[120061,120061],"mapped",[116]],[[120062,120062],"mapped",[117]],[[120063,120063],"mapped",[118]],[[120064,120064],"mapped",[119]],[[120065,120065],"mapped",[120]],[[120066,120066],"mapped",[121]],[[120067,120067],"mapped",[122]],[[120068,120068],"mapped",[97]],[[120069,120069],"mapped",[98]],[[120070,120070],"disallowed"],[[120071,120071],"mapped",[100]],[[120072,120072],"mapped",[101]],[[120073,120073],"mapped",[102]],[[120074,120074],"mapped",[103]],[[120075,120076],"disallowed"],[[120077,120077],"mapped",[106]],[[120078,120078],"mapped",[107]],[[120079,120079],"mapped",[108]],[[120080,120080],"mapped",[109]],[[120081,120081],"mapped",[110]],[[120082,120082],"mapped",[111]],[[120083,120083],"mapped",[112]],[[120084,120084],"mapped",[113]],[[120085,120085],"disallowed"],[[120086,120086],"mapped",[115]],[[120087,120087],"mapped",[116]],[[120088,120088],"mapped",[117]],[[120089,120089],"mapped",[118]],[[120090,120090],"mapped",[119]],[[120091,120091],"mapped",[120]],[[120092,120092],"mapped",[121]],[[120093,120093],"disallowed"],[[120094,120094],"mapped",[97]],[[120095,120095],"mapped",[98]],[[120096,120096],"mapped",[99]],[[120097,120097],"mapped",[100]],[[120098,120098],"mapped",[101]],[[120099,120099],"mapped",[102]],[[120100,120100],"mapped",[103]],[[120101,120101],"mapped",[104]],[[120102,120102],"mapped",[105]],[[120103,120103],"mapped",[106]],[[120104,120104],"mapped",[107]],[[120105,120105],"mapped",[108]],[[120106,120106],"mapped",[109]],[[120107,120107],"mapped",[110]],[[120108,120108],"mapped",[111]],[[120109,120109],"mapped",[112]],[[120110,120110],"mapped",[113]],[[120111,120111],"mapped",[114]],[[120112,120112],"mapped",[115]],[[120113,120113],"mapped",[116]],[[120114,120114],"mapped",[117]],[[120115,120115],"mapped",[118]],[[120116,120116],"mapped",[119]],[[120117,120117],"mapped",[120]],[[120118,120118],"mapped",[121]],[[120119,120119],"mapped",[122]],[[120120,120120],"mapped",[97]],[[120121,120121],"mapped",[98]],[[120122,120122],"disallowed"],[[120123,120123],"mapped",[100]],[[120124,120124],"mapped",[101]],[[120125,120125],"mapped",[102]],[[120126,120126],"mapped",[103]],[[120127,120127],"disallowed"],[[120128,120128],"mapped",[105]],[[120129,120129],"mapped",[106]],[[120130,120130],"mapped",[107]],[[120131,120131],"mapped",[108]],[[120132,120132],"mapped",[109]],[[120133,120133],"disallowed"],[[120134,120134],"mapped",[111]],[[120135,120137],"disallowed"],[[120138,120138],"mapped",[115]],[[120139,120139],"mapped",[116]],[[120140,120140],"mapped",[117]],[[120141,120141],"mapped",[118]],[[120142,120142],"mapped",[119]],[[120143,120143],"mapped",[120]],[[120144,120144],"mapped",[121]],[[120145,120145],"disallowed"],[[120146,120146],"mapped",[97]],[[120147,120147],"mapped",[98]],[[120148,120148],"mapped",[99]],[[120149,120149],"mapped",[100]],[[120150,120150],"mapped",[101]],[[120151,120151],"mapped",[102]],[[120152,120152],"mapped",[103]],[[120153,120153],"mapped",[104]],[[120154,120154],"mapped",[105]],[[120155,120155],"mapped",[106]],[[120156,120156],"mapped",[107]],[[120157,120157],"mapped",[108]],[[120158,120158],"mapped",[109]],[[120159,120159],"mapped",[110]],[[120160,120160],"mapped",[111]],[[120161,120161],"mapped",[112]],[[120162,120162],"mapped",[113]],[[120163,120163],"mapped",[114]],[[120164,120164],"mapped",[115]],[[120165,120165],"mapped",[116]],[[120166,120166],"mapped",[117]],[[120167,120167],"mapped",[118]],[[120168,120168],"mapped",[119]],[[120169,120169],"mapped",[120]],[[120170,120170],"mapped",[121]],[[120171,120171],"mapped",[122]],[[120172,120172],"mapped",[97]],[[120173,120173],"mapped",[98]],[[120174,120174],"mapped",[99]],[[120175,120175],"mapped",[100]],[[120176,120176],"mapped",[101]],[[120177,120177],"mapped",[102]],[[120178,120178],"mapped",[103]],[[120179,120179],"mapped",[104]],[[120180,120180],"mapped",[105]],[[120181,120181],"mapped",[106]],[[120182,120182],"mapped",[107]],[[120183,120183],"mapped",[108]],[[120184,120184],"mapped",[109]],[[120185,120185],"mapped",[110]],[[120186,120186],"mapped",[111]],[[120187,120187],"mapped",[112]],[[120188,120188],"mapped",[113]],[[120189,120189],"mapped",[114]],[[120190,120190],"mapped",[115]],[[120191,120191],"mapped",[116]],[[120192,120192],"mapped",[117]],[[120193,120193],"mapped",[118]],[[120194,120194],"mapped",[119]],[[120195,120195],"mapped",[120]],[[120196,120196],"mapped",[121]],[[120197,120197],"mapped",[122]],[[120198,120198],"mapped",[97]],[[120199,120199],"mapped",[98]],[[120200,120200],"mapped",[99]],[[120201,120201],"mapped",[100]],[[120202,120202],"mapped",[101]],[[120203,120203],"mapped",[102]],[[120204,120204],"mapped",[103]],[[120205,120205],"mapped",[104]],[[120206,120206],"mapped",[105]],[[120207,120207],"mapped",[106]],[[120208,120208],"mapped",[107]],[[120209,120209],"mapped",[108]],[[120210,120210],"mapped",[109]],[[120211,120211],"mapped",[110]],[[120212,120212],"mapped",[111]],[[120213,120213],"mapped",[112]],[[120214,120214],"mapped",[113]],[[120215,120215],"mapped",[114]],[[120216,120216],"mapped",[115]],[[120217,120217],"mapped",[116]],[[120218,120218],"mapped",[117]],[[120219,120219],"mapped",[118]],[[120220,120220],"mapped",[119]],[[120221,120221],"mapped",[120]],[[120222,120222],"mapped",[121]],[[120223,120223],"mapped",[122]],[[120224,120224],"mapped",[97]],[[120225,120225],"mapped",[98]],[[120226,120226],"mapped",[99]],[[120227,120227],"mapped",[100]],[[120228,120228],"mapped",[101]],[[120229,120229],"mapped",[102]],[[120230,120230],"mapped",[103]],[[120231,120231],"mapped",[104]],[[120232,120232],"mapped",[105]],[[120233,120233],"mapped",[106]],[[120234,120234],"mapped",[107]],[[120235,120235],"mapped",[108]],[[120236,120236],"mapped",[109]],[[120237,120237],"mapped",[110]],[[120238,120238],"mapped",[111]],[[120239,120239],"mapped",[112]],[[120240,120240],"mapped",[113]],[[120241,120241],"mapped",[114]],[[120242,120242],"mapped",[115]],[[120243,120243],"mapped",[116]],[[120244,120244],"mapped",[117]],[[120245,120245],"mapped",[118]],[[120246,120246],"mapped",[119]],[[120247,120247],"mapped",[120]],[[120248,120248],"mapped",[121]],[[120249,120249],"mapped",[122]],[[120250,120250],"mapped",[97]],[[120251,120251],"mapped",[98]],[[120252,120252],"mapped",[99]],[[120253,120253],"mapped",[100]],[[120254,120254],"mapped",[101]],[[120255,120255],"mapped",[102]],[[120256,120256],"mapped",[103]],[[120257,120257],"mapped",[104]],[[120258,120258],"mapped",[105]],[[120259,120259],"mapped",[106]],[[120260,120260],"mapped",[107]],[[120261,120261],"mapped",[108]],[[120262,120262],"mapped",[109]],[[120263,120263],"mapped",[110]],[[120264,120264],"mapped",[111]],[[120265,120265],"mapped",[112]],[[120266,120266],"mapped",[113]],[[120267,120267],"mapped",[114]],[[120268,120268],"mapped",[115]],[[120269,120269],"mapped",[116]],[[120270,120270],"mapped",[117]],[[120271,120271],"mapped",[118]],[[120272,120272],"mapped",[119]],[[120273,120273],"mapped",[120]],[[120274,120274],"mapped",[121]],[[120275,120275],"mapped",[122]],[[120276,120276],"mapped",[97]],[[120277,120277],"mapped",[98]],[[120278,120278],"mapped",[99]],[[120279,120279],"mapped",[100]],[[120280,120280],"mapped",[101]],[[120281,120281],"mapped",[102]],[[120282,120282],"mapped",[103]],[[120283,120283],"mapped",[104]],[[120284,120284],"mapped",[105]],[[120285,120285],"mapped",[106]],[[120286,120286],"mapped",[107]],[[120287,120287],"mapped",[108]],[[120288,120288],"mapped",[109]],[[120289,120289],"mapped",[110]],[[120290,120290],"mapped",[111]],[[120291,120291],"mapped",[112]],[[120292,120292],"mapped",[113]],[[120293,120293],"mapped",[114]],[[120294,120294],"mapped",[115]],[[120295,120295],"mapped",[116]],[[120296,120296],"mapped",[117]],[[120297,120297],"mapped",[118]],[[120298,120298],"mapped",[119]],[[120299,120299],"mapped",[120]],[[120300,120300],"mapped",[121]],[[120301,120301],"mapped",[122]],[[120302,120302],"mapped",[97]],[[120303,120303],"mapped",[98]],[[120304,120304],"mapped",[99]],[[120305,120305],"mapped",[100]],[[120306,120306],"mapped",[101]],[[120307,120307],"mapped",[102]],[[120308,120308],"mapped",[103]],[[120309,120309],"mapped",[104]],[[120310,120310],"mapped",[105]],[[120311,120311],"mapped",[106]],[[120312,120312],"mapped",[107]],[[120313,120313],"mapped",[108]],[[120314,120314],"mapped",[109]],[[120315,120315],"mapped",[110]],[[120316,120316],"mapped",[111]],[[120317,120317],"mapped",[112]],[[120318,120318],"mapped",[113]],[[120319,120319],"mapped",[114]],[[120320,120320],"mapped",[115]],[[120321,120321],"mapped",[116]],[[120322,120322],"mapped",[117]],[[120323,120323],"mapped",[118]],[[120324,120324],"mapped",[119]],[[120325,120325],"mapped",[120]],[[120326,120326],"mapped",[121]],[[120327,120327],"mapped",[122]],[[120328,120328],"mapped",[97]],[[120329,120329],"mapped",[98]],[[120330,120330],"mapped",[99]],[[120331,120331],"mapped",[100]],[[120332,120332],"mapped",[101]],[[120333,120333],"mapped",[102]],[[120334,120334],"mapped",[103]],[[120335,120335],"mapped",[104]],[[120336,120336],"mapped",[105]],[[120337,120337],"mapped",[106]],[[120338,120338],"mapped",[107]],[[120339,120339],"mapped",[108]],[[120340,120340],"mapped",[109]],[[120341,120341],"mapped",[110]],[[120342,120342],"mapped",[111]],[[120343,120343],"mapped",[112]],[[120344,120344],"mapped",[113]],[[120345,120345],"mapped",[114]],[[120346,120346],"mapped",[115]],[[120347,120347],"mapped",[116]],[[120348,120348],"mapped",[117]],[[120349,120349],"mapped",[118]],[[120350,120350],"mapped",[119]],[[120351,120351],"mapped",[120]],[[120352,120352],"mapped",[121]],[[120353,120353],"mapped",[122]],[[120354,120354],"mapped",[97]],[[120355,120355],"mapped",[98]],[[120356,120356],"mapped",[99]],[[120357,120357],"mapped",[100]],[[120358,120358],"mapped",[101]],[[120359,120359],"mapped",[102]],[[120360,120360],"mapped",[103]],[[120361,120361],"mapped",[104]],[[120362,120362],"mapped",[105]],[[120363,120363],"mapped",[106]],[[120364,120364],"mapped",[107]],[[120365,120365],"mapped",[108]],[[120366,120366],"mapped",[109]],[[120367,120367],"mapped",[110]],[[120368,120368],"mapped",[111]],[[120369,120369],"mapped",[112]],[[120370,120370],"mapped",[113]],[[120371,120371],"mapped",[114]],[[120372,120372],"mapped",[115]],[[120373,120373],"mapped",[116]],[[120374,120374],"mapped",[117]],[[120375,120375],"mapped",[118]],[[120376,120376],"mapped",[119]],[[120377,120377],"mapped",[120]],[[120378,120378],"mapped",[121]],[[120379,120379],"mapped",[122]],[[120380,120380],"mapped",[97]],[[120381,120381],"mapped",[98]],[[120382,120382],"mapped",[99]],[[120383,120383],"mapped",[100]],[[120384,120384],"mapped",[101]],[[120385,120385],"mapped",[102]],[[120386,120386],"mapped",[103]],[[120387,120387],"mapped",[104]],[[120388,120388],"mapped",[105]],[[120389,120389],"mapped",[106]],[[120390,120390],"mapped",[107]],[[120391,120391],"mapped",[108]],[[120392,120392],"mapped",[109]],[[120393,120393],"mapped",[110]],[[120394,120394],"mapped",[111]],[[120395,120395],"mapped",[112]],[[120396,120396],"mapped",[113]],[[120397,120397],"mapped",[114]],[[120398,120398],"mapped",[115]],[[120399,120399],"mapped",[116]],[[120400,120400],"mapped",[117]],[[120401,120401],"mapped",[118]],[[120402,120402],"mapped",[119]],[[120403,120403],"mapped",[120]],[[120404,120404],"mapped",[121]],[[120405,120405],"mapped",[122]],[[120406,120406],"mapped",[97]],[[120407,120407],"mapped",[98]],[[120408,120408],"mapped",[99]],[[120409,120409],"mapped",[100]],[[120410,120410],"mapped",[101]],[[120411,120411],"mapped",[102]],[[120412,120412],"mapped",[103]],[[120413,120413],"mapped",[104]],[[120414,120414],"mapped",[105]],[[120415,120415],"mapped",[106]],[[120416,120416],"mapped",[107]],[[120417,120417],"mapped",[108]],[[120418,120418],"mapped",[109]],[[120419,120419],"mapped",[110]],[[120420,120420],"mapped",[111]],[[120421,120421],"mapped",[112]],[[120422,120422],"mapped",[113]],[[120423,120423],"mapped",[114]],[[120424,120424],"mapped",[115]],[[120425,120425],"mapped",[116]],[[120426,120426],"mapped",[117]],[[120427,120427],"mapped",[118]],[[120428,120428],"mapped",[119]],[[120429,120429],"mapped",[120]],[[120430,120430],"mapped",[121]],[[120431,120431],"mapped",[122]],[[120432,120432],"mapped",[97]],[[120433,120433],"mapped",[98]],[[120434,120434],"mapped",[99]],[[120435,120435],"mapped",[100]],[[120436,120436],"mapped",[101]],[[120437,120437],"mapped",[102]],[[120438,120438],"mapped",[103]],[[120439,120439],"mapped",[104]],[[120440,120440],"mapped",[105]],[[120441,120441],"mapped",[106]],[[120442,120442],"mapped",[107]],[[120443,120443],"mapped",[108]],[[120444,120444],"mapped",[109]],[[120445,120445],"mapped",[110]],[[120446,120446],"mapped",[111]],[[120447,120447],"mapped",[112]],[[120448,120448],"mapped",[113]],[[120449,120449],"mapped",[114]],[[120450,120450],"mapped",[115]],[[120451,120451],"mapped",[116]],[[120452,120452],"mapped",[117]],[[120453,120453],"mapped",[118]],[[120454,120454],"mapped",[119]],[[120455,120455],"mapped",[120]],[[120456,120456],"mapped",[121]],[[120457,120457],"mapped",[122]],[[120458,120458],"mapped",[97]],[[120459,120459],"mapped",[98]],[[120460,120460],"mapped",[99]],[[120461,120461],"mapped",[100]],[[120462,120462],"mapped",[101]],[[120463,120463],"mapped",[102]],[[120464,120464],"mapped",[103]],[[120465,120465],"mapped",[104]],[[120466,120466],"mapped",[105]],[[120467,120467],"mapped",[106]],[[120468,120468],"mapped",[107]],[[120469,120469],"mapped",[108]],[[120470,120470],"mapped",[109]],[[120471,120471],"mapped",[110]],[[120472,120472],"mapped",[111]],[[120473,120473],"mapped",[112]],[[120474,120474],"mapped",[113]],[[120475,120475],"mapped",[114]],[[120476,120476],"mapped",[115]],[[120477,120477],"mapped",[116]],[[120478,120478],"mapped",[117]],[[120479,120479],"mapped",[118]],[[120480,120480],"mapped",[119]],[[120481,120481],"mapped",[120]],[[120482,120482],"mapped",[121]],[[120483,120483],"mapped",[122]],[[120484,120484],"mapped",[305]],[[120485,120485],"mapped",[567]],[[120486,120487],"disallowed"],[[120488,120488],"mapped",[945]],[[120489,120489],"mapped",[946]],[[120490,120490],"mapped",[947]],[[120491,120491],"mapped",[948]],[[120492,120492],"mapped",[949]],[[120493,120493],"mapped",[950]],[[120494,120494],"mapped",[951]],[[120495,120495],"mapped",[952]],[[120496,120496],"mapped",[953]],[[120497,120497],"mapped",[954]],[[120498,120498],"mapped",[955]],[[120499,120499],"mapped",[956]],[[120500,120500],"mapped",[957]],[[120501,120501],"mapped",[958]],[[120502,120502],"mapped",[959]],[[120503,120503],"mapped",[960]],[[120504,120504],"mapped",[961]],[[120505,120505],"mapped",[952]],[[120506,120506],"mapped",[963]],[[120507,120507],"mapped",[964]],[[120508,120508],"mapped",[965]],[[120509,120509],"mapped",[966]],[[120510,120510],"mapped",[967]],[[120511,120511],"mapped",[968]],[[120512,120512],"mapped",[969]],[[120513,120513],"mapped",[8711]],[[120514,120514],"mapped",[945]],[[120515,120515],"mapped",[946]],[[120516,120516],"mapped",[947]],[[120517,120517],"mapped",[948]],[[120518,120518],"mapped",[949]],[[120519,120519],"mapped",[950]],[[120520,120520],"mapped",[951]],[[120521,120521],"mapped",[952]],[[120522,120522],"mapped",[953]],[[120523,120523],"mapped",[954]],[[120524,120524],"mapped",[955]],[[120525,120525],"mapped",[956]],[[120526,120526],"mapped",[957]],[[120527,120527],"mapped",[958]],[[120528,120528],"mapped",[959]],[[120529,120529],"mapped",[960]],[[120530,120530],"mapped",[961]],[[120531,120532],"mapped",[963]],[[120533,120533],"mapped",[964]],[[120534,120534],"mapped",[965]],[[120535,120535],"mapped",[966]],[[120536,120536],"mapped",[967]],[[120537,120537],"mapped",[968]],[[120538,120538],"mapped",[969]],[[120539,120539],"mapped",[8706]],[[120540,120540],"mapped",[949]],[[120541,120541],"mapped",[952]],[[120542,120542],"mapped",[954]],[[120543,120543],"mapped",[966]],[[120544,120544],"mapped",[961]],[[120545,120545],"mapped",[960]],[[120546,120546],"mapped",[945]],[[120547,120547],"mapped",[946]],[[120548,120548],"mapped",[947]],[[120549,120549],"mapped",[948]],[[120550,120550],"mapped",[949]],[[120551,120551],"mapped",[950]],[[120552,120552],"mapped",[951]],[[120553,120553],"mapped",[952]],[[120554,120554],"mapped",[953]],[[120555,120555],"mapped",[954]],[[120556,120556],"mapped",[955]],[[120557,120557],"mapped",[956]],[[120558,120558],"mapped",[957]],[[120559,120559],"mapped",[958]],[[120560,120560],"mapped",[959]],[[120561,120561],"mapped",[960]],[[120562,120562],"mapped",[961]],[[120563,120563],"mapped",[952]],[[120564,120564],"mapped",[963]],[[120565,120565],"mapped",[964]],[[120566,120566],"mapped",[965]],[[120567,120567],"mapped",[966]],[[120568,120568],"mapped",[967]],[[120569,120569],"mapped",[968]],[[120570,120570],"mapped",[969]],[[120571,120571],"mapped",[8711]],[[120572,120572],"mapped",[945]],[[120573,120573],"mapped",[946]],[[120574,120574],"mapped",[947]],[[120575,120575],"mapped",[948]],[[120576,120576],"mapped",[949]],[[120577,120577],"mapped",[950]],[[120578,120578],"mapped",[951]],[[120579,120579],"mapped",[952]],[[120580,120580],"mapped",[953]],[[120581,120581],"mapped",[954]],[[120582,120582],"mapped",[955]],[[120583,120583],"mapped",[956]],[[120584,120584],"mapped",[957]],[[120585,120585],"mapped",[958]],[[120586,120586],"mapped",[959]],[[120587,120587],"mapped",[960]],[[120588,120588],"mapped",[961]],[[120589,120590],"mapped",[963]],[[120591,120591],"mapped",[964]],[[120592,120592],"mapped",[965]],[[120593,120593],"mapped",[966]],[[120594,120594],"mapped",[967]],[[120595,120595],"mapped",[968]],[[120596,120596],"mapped",[969]],[[120597,120597],"mapped",[8706]],[[120598,120598],"mapped",[949]],[[120599,120599],"mapped",[952]],[[120600,120600],"mapped",[954]],[[120601,120601],"mapped",[966]],[[120602,120602],"mapped",[961]],[[120603,120603],"mapped",[960]],[[120604,120604],"mapped",[945]],[[120605,120605],"mapped",[946]],[[120606,120606],"mapped",[947]],[[120607,120607],"mapped",[948]],[[120608,120608],"mapped",[949]],[[120609,120609],"mapped",[950]],[[120610,120610],"mapped",[951]],[[120611,120611],"mapped",[952]],[[120612,120612],"mapped",[953]],[[120613,120613],"mapped",[954]],[[120614,120614],"mapped",[955]],[[120615,120615],"mapped",[956]],[[120616,120616],"mapped",[957]],[[120617,120617],"mapped",[958]],[[120618,120618],"mapped",[959]],[[120619,120619],"mapped",[960]],[[120620,120620],"mapped",[961]],[[120621,120621],"mapped",[952]],[[120622,120622],"mapped",[963]],[[120623,120623],"mapped",[964]],[[120624,120624],"mapped",[965]],[[120625,120625],"mapped",[966]],[[120626,120626],"mapped",[967]],[[120627,120627],"mapped",[968]],[[120628,120628],"mapped",[969]],[[120629,120629],"mapped",[8711]],[[120630,120630],"mapped",[945]],[[120631,120631],"mapped",[946]],[[120632,120632],"mapped",[947]],[[120633,120633],"mapped",[948]],[[120634,120634],"mapped",[949]],[[120635,120635],"mapped",[950]],[[120636,120636],"mapped",[951]],[[120637,120637],"mapped",[952]],[[120638,120638],"mapped",[953]],[[120639,120639],"mapped",[954]],[[120640,120640],"mapped",[955]],[[120641,120641],"mapped",[956]],[[120642,120642],"mapped",[957]],[[120643,120643],"mapped",[958]],[[120644,120644],"mapped",[959]],[[120645,120645],"mapped",[960]],[[120646,120646],"mapped",[961]],[[120647,120648],"mapped",[963]],[[120649,120649],"mapped",[964]],[[120650,120650],"mapped",[965]],[[120651,120651],"mapped",[966]],[[120652,120652],"mapped",[967]],[[120653,120653],"mapped",[968]],[[120654,120654],"mapped",[969]],[[120655,120655],"mapped",[8706]],[[120656,120656],"mapped",[949]],[[120657,120657],"mapped",[952]],[[120658,120658],"mapped",[954]],[[120659,120659],"mapped",[966]],[[120660,120660],"mapped",[961]],[[120661,120661],"mapped",[960]],[[120662,120662],"mapped",[945]],[[120663,120663],"mapped",[946]],[[120664,120664],"mapped",[947]],[[120665,120665],"mapped",[948]],[[120666,120666],"mapped",[949]],[[120667,120667],"mapped",[950]],[[120668,120668],"mapped",[951]],[[120669,120669],"mapped",[952]],[[120670,120670],"mapped",[953]],[[120671,120671],"mapped",[954]],[[120672,120672],"mapped",[955]],[[120673,120673],"mapped",[956]],[[120674,120674],"mapped",[957]],[[120675,120675],"mapped",[958]],[[120676,120676],"mapped",[959]],[[120677,120677],"mapped",[960]],[[120678,120678],"mapped",[961]],[[120679,120679],"mapped",[952]],[[120680,120680],"mapped",[963]],[[120681,120681],"mapped",[964]],[[120682,120682],"mapped",[965]],[[120683,120683],"mapped",[966]],[[120684,120684],"mapped",[967]],[[120685,120685],"mapped",[968]],[[120686,120686],"mapped",[969]],[[120687,120687],"mapped",[8711]],[[120688,120688],"mapped",[945]],[[120689,120689],"mapped",[946]],[[120690,120690],"mapped",[947]],[[120691,120691],"mapped",[948]],[[120692,120692],"mapped",[949]],[[120693,120693],"mapped",[950]],[[120694,120694],"mapped",[951]],[[120695,120695],"mapped",[952]],[[120696,120696],"mapped",[953]],[[120697,120697],"mapped",[954]],[[120698,120698],"mapped",[955]],[[120699,120699],"mapped",[956]],[[120700,120700],"mapped",[957]],[[120701,120701],"mapped",[958]],[[120702,120702],"mapped",[959]],[[120703,120703],"mapped",[960]],[[120704,120704],"mapped",[961]],[[120705,120706],"mapped",[963]],[[120707,120707],"mapped",[964]],[[120708,120708],"mapped",[965]],[[120709,120709],"mapped",[966]],[[120710,120710],"mapped",[967]],[[120711,120711],"mapped",[968]],[[120712,120712],"mapped",[969]],[[120713,120713],"mapped",[8706]],[[120714,120714],"mapped",[949]],[[120715,120715],"mapped",[952]],[[120716,120716],"mapped",[954]],[[120717,120717],"mapped",[966]],[[120718,120718],"mapped",[961]],[[120719,120719],"mapped",[960]],[[120720,120720],"mapped",[945]],[[120721,120721],"mapped",[946]],[[120722,120722],"mapped",[947]],[[120723,120723],"mapped",[948]],[[120724,120724],"mapped",[949]],[[120725,120725],"mapped",[950]],[[120726,120726],"mapped",[951]],[[120727,120727],"mapped",[952]],[[120728,120728],"mapped",[953]],[[120729,120729],"mapped",[954]],[[120730,120730],"mapped",[955]],[[120731,120731],"mapped",[956]],[[120732,120732],"mapped",[957]],[[120733,120733],"mapped",[958]],[[120734,120734],"mapped",[959]],[[120735,120735],"mapped",[960]],[[120736,120736],"mapped",[961]],[[120737,120737],"mapped",[952]],[[120738,120738],"mapped",[963]],[[120739,120739],"mapped",[964]],[[120740,120740],"mapped",[965]],[[120741,120741],"mapped",[966]],[[120742,120742],"mapped",[967]],[[120743,120743],"mapped",[968]],[[120744,120744],"mapped",[969]],[[120745,120745],"mapped",[8711]],[[120746,120746],"mapped",[945]],[[120747,120747],"mapped",[946]],[[120748,120748],"mapped",[947]],[[120749,120749],"mapped",[948]],[[120750,120750],"mapped",[949]],[[120751,120751],"mapped",[950]],[[120752,120752],"mapped",[951]],[[120753,120753],"mapped",[952]],[[120754,120754],"mapped",[953]],[[120755,120755],"mapped",[954]],[[120756,120756],"mapped",[955]],[[120757,120757],"mapped",[956]],[[120758,120758],"mapped",[957]],[[120759,120759],"mapped",[958]],[[120760,120760],"mapped",[959]],[[120761,120761],"mapped",[960]],[[120762,120762],"mapped",[961]],[[120763,120764],"mapped",[963]],[[120765,120765],"mapped",[964]],[[120766,120766],"mapped",[965]],[[120767,120767],"mapped",[966]],[[120768,120768],"mapped",[967]],[[120769,120769],"mapped",[968]],[[120770,120770],"mapped",[969]],[[120771,120771],"mapped",[8706]],[[120772,120772],"mapped",[949]],[[120773,120773],"mapped",[952]],[[120774,120774],"mapped",[954]],[[120775,120775],"mapped",[966]],[[120776,120776],"mapped",[961]],[[120777,120777],"mapped",[960]],[[120778,120779],"mapped",[989]],[[120780,120781],"disallowed"],[[120782,120782],"mapped",[48]],[[120783,120783],"mapped",[49]],[[120784,120784],"mapped",[50]],[[120785,120785],"mapped",[51]],[[120786,120786],"mapped",[52]],[[120787,120787],"mapped",[53]],[[120788,120788],"mapped",[54]],[[120789,120789],"mapped",[55]],[[120790,120790],"mapped",[56]],[[120791,120791],"mapped",[57]],[[120792,120792],"mapped",[48]],[[120793,120793],"mapped",[49]],[[120794,120794],"mapped",[50]],[[120795,120795],"mapped",[51]],[[120796,120796],"mapped",[52]],[[120797,120797],"mapped",[53]],[[120798,120798],"mapped",[54]],[[120799,120799],"mapped",[55]],[[120800,120800],"mapped",[56]],[[120801,120801],"mapped",[57]],[[120802,120802],"mapped",[48]],[[120803,120803],"mapped",[49]],[[120804,120804],"mapped",[50]],[[120805,120805],"mapped",[51]],[[120806,120806],"mapped",[52]],[[120807,120807],"mapped",[53]],[[120808,120808],"mapped",[54]],[[120809,120809],"mapped",[55]],[[120810,120810],"mapped",[56]],[[120811,120811],"mapped",[57]],[[120812,120812],"mapped",[48]],[[120813,120813],"mapped",[49]],[[120814,120814],"mapped",[50]],[[120815,120815],"mapped",[51]],[[120816,120816],"mapped",[52]],[[120817,120817],"mapped",[53]],[[120818,120818],"mapped",[54]],[[120819,120819],"mapped",[55]],[[120820,120820],"mapped",[56]],[[120821,120821],"mapped",[57]],[[120822,120822],"mapped",[48]],[[120823,120823],"mapped",[49]],[[120824,120824],"mapped",[50]],[[120825,120825],"mapped",[51]],[[120826,120826],"mapped",[52]],[[120827,120827],"mapped",[53]],[[120828,120828],"mapped",[54]],[[120829,120829],"mapped",[55]],[[120830,120830],"mapped",[56]],[[120831,120831],"mapped",[57]],[[120832,121343],"valid",[],"NV8"],[[121344,121398],"valid"],[[121399,121402],"valid",[],"NV8"],[[121403,121452],"valid"],[[121453,121460],"valid",[],"NV8"],[[121461,121461],"valid"],[[121462,121475],"valid",[],"NV8"],[[121476,121476],"valid"],[[121477,121483],"valid",[],"NV8"],[[121484,121498],"disallowed"],[[121499,121503],"valid"],[[121504,121504],"disallowed"],[[121505,121519],"valid"],[[121520,124927],"disallowed"],[[124928,125124],"valid"],[[125125,125126],"disallowed"],[[125127,125135],"valid",[],"NV8"],[[125136,125142],"valid"],[[125143,126463],"disallowed"],[[126464,126464],"mapped",[1575]],[[126465,126465],"mapped",[1576]],[[126466,126466],"mapped",[1580]],[[126467,126467],"mapped",[1583]],[[126468,126468],"disallowed"],[[126469,126469],"mapped",[1608]],[[126470,126470],"mapped",[1586]],[[126471,126471],"mapped",[1581]],[[126472,126472],"mapped",[1591]],[[126473,126473],"mapped",[1610]],[[126474,126474],"mapped",[1603]],[[126475,126475],"mapped",[1604]],[[126476,126476],"mapped",[1605]],[[126477,126477],"mapped",[1606]],[[126478,126478],"mapped",[1587]],[[126479,126479],"mapped",[1593]],[[126480,126480],"mapped",[1601]],[[126481,126481],"mapped",[1589]],[[126482,126482],"mapped",[1602]],[[126483,126483],"mapped",[1585]],[[126484,126484],"mapped",[1588]],[[126485,126485],"mapped",[1578]],[[126486,126486],"mapped",[1579]],[[126487,126487],"mapped",[1582]],[[126488,126488],"mapped",[1584]],[[126489,126489],"mapped",[1590]],[[126490,126490],"mapped",[1592]],[[126491,126491],"mapped",[1594]],[[126492,126492],"mapped",[1646]],[[126493,126493],"mapped",[1722]],[[126494,126494],"mapped",[1697]],[[126495,126495],"mapped",[1647]],[[126496,126496],"disallowed"],[[126497,126497],"mapped",[1576]],[[126498,126498],"mapped",[1580]],[[126499,126499],"disallowed"],[[126500,126500],"mapped",[1607]],[[126501,126502],"disallowed"],[[126503,126503],"mapped",[1581]],[[126504,126504],"disallowed"],[[126505,126505],"mapped",[1610]],[[126506,126506],"mapped",[1603]],[[126507,126507],"mapped",[1604]],[[126508,126508],"mapped",[1605]],[[126509,126509],"mapped",[1606]],[[126510,126510],"mapped",[1587]],[[126511,126511],"mapped",[1593]],[[126512,126512],"mapped",[1601]],[[126513,126513],"mapped",[1589]],[[126514,126514],"mapped",[1602]],[[126515,126515],"disallowed"],[[126516,126516],"mapped",[1588]],[[126517,126517],"mapped",[1578]],[[126518,126518],"mapped",[1579]],[[126519,126519],"mapped",[1582]],[[126520,126520],"disallowed"],[[126521,126521],"mapped",[1590]],[[126522,126522],"disallowed"],[[126523,126523],"mapped",[1594]],[[126524,126529],"disallowed"],[[126530,126530],"mapped",[1580]],[[126531,126534],"disallowed"],[[126535,126535],"mapped",[1581]],[[126536,126536],"disallowed"],[[126537,126537],"mapped",[1610]],[[126538,126538],"disallowed"],[[126539,126539],"mapped",[1604]],[[126540,126540],"disallowed"],[[126541,126541],"mapped",[1606]],[[126542,126542],"mapped",[1587]],[[126543,126543],"mapped",[1593]],[[126544,126544],"disallowed"],[[126545,126545],"mapped",[1589]],[[126546,126546],"mapped",[1602]],[[126547,126547],"disallowed"],[[126548,126548],"mapped",[1588]],[[126549,126550],"disallowed"],[[126551,126551],"mapped",[1582]],[[126552,126552],"disallowed"],[[126553,126553],"mapped",[1590]],[[126554,126554],"disallowed"],[[126555,126555],"mapped",[1594]],[[126556,126556],"disallowed"],[[126557,126557],"mapped",[1722]],[[126558,126558],"disallowed"],[[126559,126559],"mapped",[1647]],[[126560,126560],"disallowed"],[[126561,126561],"mapped",[1576]],[[126562,126562],"mapped",[1580]],[[126563,126563],"disallowed"],[[126564,126564],"mapped",[1607]],[[126565,126566],"disallowed"],[[126567,126567],"mapped",[1581]],[[126568,126568],"mapped",[1591]],[[126569,126569],"mapped",[1610]],[[126570,126570],"mapped",[1603]],[[126571,126571],"disallowed"],[[126572,126572],"mapped",[1605]],[[126573,126573],"mapped",[1606]],[[126574,126574],"mapped",[1587]],[[126575,126575],"mapped",[1593]],[[126576,126576],"mapped",[1601]],[[126577,126577],"mapped",[1589]],[[126578,126578],"mapped",[1602]],[[126579,126579],"disallowed"],[[126580,126580],"mapped",[1588]],[[126581,126581],"mapped",[1578]],[[126582,126582],"mapped",[1579]],[[126583,126583],"mapped",[1582]],[[126584,126584],"disallowed"],[[126585,126585],"mapped",[1590]],[[126586,126586],"mapped",[1592]],[[126587,126587],"mapped",[1594]],[[126588,126588],"mapped",[1646]],[[126589,126589],"disallowed"],[[126590,126590],"mapped",[1697]],[[126591,126591],"disallowed"],[[126592,126592],"mapped",[1575]],[[126593,126593],"mapped",[1576]],[[126594,126594],"mapped",[1580]],[[126595,126595],"mapped",[1583]],[[126596,126596],"mapped",[1607]],[[126597,126597],"mapped",[1608]],[[126598,126598],"mapped",[1586]],[[126599,126599],"mapped",[1581]],[[126600,126600],"mapped",[1591]],[[126601,126601],"mapped",[1610]],[[126602,126602],"disallowed"],[[126603,126603],"mapped",[1604]],[[126604,126604],"mapped",[1605]],[[126605,126605],"mapped",[1606]],[[126606,126606],"mapped",[1587]],[[126607,126607],"mapped",[1593]],[[126608,126608],"mapped",[1601]],[[126609,126609],"mapped",[1589]],[[126610,126610],"mapped",[1602]],[[126611,126611],"mapped",[1585]],[[126612,126612],"mapped",[1588]],[[126613,126613],"mapped",[1578]],[[126614,126614],"mapped",[1579]],[[126615,126615],"mapped",[1582]],[[126616,126616],"mapped",[1584]],[[126617,126617],"mapped",[1590]],[[126618,126618],"mapped",[1592]],[[126619,126619],"mapped",[1594]],[[126620,126624],"disallowed"],[[126625,126625],"mapped",[1576]],[[126626,126626],"mapped",[1580]],[[126627,126627],"mapped",[1583]],[[126628,126628],"disallowed"],[[126629,126629],"mapped",[1608]],[[126630,126630],"mapped",[1586]],[[126631,126631],"mapped",[1581]],[[126632,126632],"mapped",[1591]],[[126633,126633],"mapped",[1610]],[[126634,126634],"disallowed"],[[126635,126635],"mapped",[1604]],[[126636,126636],"mapped",[1605]],[[126637,126637],"mapped",[1606]],[[126638,126638],"mapped",[1587]],[[126639,126639],"mapped",[1593]],[[126640,126640],"mapped",[1601]],[[126641,126641],"mapped",[1589]],[[126642,126642],"mapped",[1602]],[[126643,126643],"mapped",[1585]],[[126644,126644],"mapped",[1588]],[[126645,126645],"mapped",[1578]],[[126646,126646],"mapped",[1579]],[[126647,126647],"mapped",[1582]],[[126648,126648],"mapped",[1584]],[[126649,126649],"mapped",[1590]],[[126650,126650],"mapped",[1592]],[[126651,126651],"mapped",[1594]],[[126652,126703],"disallowed"],[[126704,126705],"valid",[],"NV8"],[[126706,126975],"disallowed"],[[126976,127019],"valid",[],"NV8"],[[127020,127023],"disallowed"],[[127024,127123],"valid",[],"NV8"],[[127124,127135],"disallowed"],[[127136,127150],"valid",[],"NV8"],[[127151,127152],"disallowed"],[[127153,127166],"valid",[],"NV8"],[[127167,127167],"valid",[],"NV8"],[[127168,127168],"disallowed"],[[127169,127183],"valid",[],"NV8"],[[127184,127184],"disallowed"],[[127185,127199],"valid",[],"NV8"],[[127200,127221],"valid",[],"NV8"],[[127222,127231],"disallowed"],[[127232,127232],"disallowed"],[[127233,127233],"disallowed_STD3_mapped",[48,44]],[[127234,127234],"disallowed_STD3_mapped",[49,44]],[[127235,127235],"disallowed_STD3_mapped",[50,44]],[[127236,127236],"disallowed_STD3_mapped",[51,44]],[[127237,127237],"disallowed_STD3_mapped",[52,44]],[[127238,127238],"disallowed_STD3_mapped",[53,44]],[[127239,127239],"disallowed_STD3_mapped",[54,44]],[[127240,127240],"disallowed_STD3_mapped",[55,44]],[[127241,127241],"disallowed_STD3_mapped",[56,44]],[[127242,127242],"disallowed_STD3_mapped",[57,44]],[[127243,127244],"valid",[],"NV8"],[[127245,127247],"disallowed"],[[127248,127248],"disallowed_STD3_mapped",[40,97,41]],[[127249,127249],"disallowed_STD3_mapped",[40,98,41]],[[127250,127250],"disallowed_STD3_mapped",[40,99,41]],[[127251,127251],"disallowed_STD3_mapped",[40,100,41]],[[127252,127252],"disallowed_STD3_mapped",[40,101,41]],[[127253,127253],"disallowed_STD3_mapped",[40,102,41]],[[127254,127254],"disallowed_STD3_mapped",[40,103,41]],[[127255,127255],"disallowed_STD3_mapped",[40,104,41]],[[127256,127256],"disallowed_STD3_mapped",[40,105,41]],[[127257,127257],"disallowed_STD3_mapped",[40,106,41]],[[127258,127258],"disallowed_STD3_mapped",[40,107,41]],[[127259,127259],"disallowed_STD3_mapped",[40,108,41]],[[127260,127260],"disallowed_STD3_mapped",[40,109,41]],[[127261,127261],"disallowed_STD3_mapped",[40,110,41]],[[127262,127262],"disallowed_STD3_mapped",[40,111,41]],[[127263,127263],"disallowed_STD3_mapped",[40,112,41]],[[127264,127264],"disallowed_STD3_mapped",[40,113,41]],[[127265,127265],"disallowed_STD3_mapped",[40,114,41]],[[127266,127266],"disallowed_STD3_mapped",[40,115,41]],[[127267,127267],"disallowed_STD3_mapped",[40,116,41]],[[127268,127268],"disallowed_STD3_mapped",[40,117,41]],[[127269,127269],"disallowed_STD3_mapped",[40,118,41]],[[127270,127270],"disallowed_STD3_mapped",[40,119,41]],[[127271,127271],"disallowed_STD3_mapped",[40,120,41]],[[127272,127272],"disallowed_STD3_mapped",[40,121,41]],[[127273,127273],"disallowed_STD3_mapped",[40,122,41]],[[127274,127274],"mapped",[12308,115,12309]],[[127275,127275],"mapped",[99]],[[127276,127276],"mapped",[114]],[[127277,127277],"mapped",[99,100]],[[127278,127278],"mapped",[119,122]],[[127279,127279],"disallowed"],[[127280,127280],"mapped",[97]],[[127281,127281],"mapped",[98]],[[127282,127282],"mapped",[99]],[[127283,127283],"mapped",[100]],[[127284,127284],"mapped",[101]],[[127285,127285],"mapped",[102]],[[127286,127286],"mapped",[103]],[[127287,127287],"mapped",[104]],[[127288,127288],"mapped",[105]],[[127289,127289],"mapped",[106]],[[127290,127290],"mapped",[107]],[[127291,127291],"mapped",[108]],[[127292,127292],"mapped",[109]],[[127293,127293],"mapped",[110]],[[127294,127294],"mapped",[111]],[[127295,127295],"mapped",[112]],[[127296,127296],"mapped",[113]],[[127297,127297],"mapped",[114]],[[127298,127298],"mapped",[115]],[[127299,127299],"mapped",[116]],[[127300,127300],"mapped",[117]],[[127301,127301],"mapped",[118]],[[127302,127302],"mapped",[119]],[[127303,127303],"mapped",[120]],[[127304,127304],"mapped",[121]],[[127305,127305],"mapped",[122]],[[127306,127306],"mapped",[104,118]],[[127307,127307],"mapped",[109,118]],[[127308,127308],"mapped",[115,100]],[[127309,127309],"mapped",[115,115]],[[127310,127310],"mapped",[112,112,118]],[[127311,127311],"mapped",[119,99]],[[127312,127318],"valid",[],"NV8"],[[127319,127319],"valid",[],"NV8"],[[127320,127326],"valid",[],"NV8"],[[127327,127327],"valid",[],"NV8"],[[127328,127337],"valid",[],"NV8"],[[127338,127338],"mapped",[109,99]],[[127339,127339],"mapped",[109,100]],[[127340,127343],"disallowed"],[[127344,127352],"valid",[],"NV8"],[[127353,127353],"valid",[],"NV8"],[[127354,127354],"valid",[],"NV8"],[[127355,127356],"valid",[],"NV8"],[[127357,127358],"valid",[],"NV8"],[[127359,127359],"valid",[],"NV8"],[[127360,127369],"valid",[],"NV8"],[[127370,127373],"valid",[],"NV8"],[[127374,127375],"valid",[],"NV8"],[[127376,127376],"mapped",[100,106]],[[127377,127386],"valid",[],"NV8"],[[127387,127461],"disallowed"],[[127462,127487],"valid",[],"NV8"],[[127488,127488],"mapped",[12411,12363]],[[127489,127489],"mapped",[12467,12467]],[[127490,127490],"mapped",[12469]],[[127491,127503],"disallowed"],[[127504,127504],"mapped",[25163]],[[127505,127505],"mapped",[23383]],[[127506,127506],"mapped",[21452]],[[127507,127507],"mapped",[12487]],[[127508,127508],"mapped",[20108]],[[127509,127509],"mapped",[22810]],[[127510,127510],"mapped",[35299]],[[127511,127511],"mapped",[22825]],[[127512,127512],"mapped",[20132]],[[127513,127513],"mapped",[26144]],[[127514,127514],"mapped",[28961]],[[127515,127515],"mapped",[26009]],[[127516,127516],"mapped",[21069]],[[127517,127517],"mapped",[24460]],[[127518,127518],"mapped",[20877]],[[127519,127519],"mapped",[26032]],[[127520,127520],"mapped",[21021]],[[127521,127521],"mapped",[32066]],[[127522,127522],"mapped",[29983]],[[127523,127523],"mapped",[36009]],[[127524,127524],"mapped",[22768]],[[127525,127525],"mapped",[21561]],[[127526,127526],"mapped",[28436]],[[127527,127527],"mapped",[25237]],[[127528,127528],"mapped",[25429]],[[127529,127529],"mapped",[19968]],[[127530,127530],"mapped",[19977]],[[127531,127531],"mapped",[36938]],[[127532,127532],"mapped",[24038]],[[127533,127533],"mapped",[20013]],[[127534,127534],"mapped",[21491]],[[127535,127535],"mapped",[25351]],[[127536,127536],"mapped",[36208]],[[127537,127537],"mapped",[25171]],[[127538,127538],"mapped",[31105]],[[127539,127539],"mapped",[31354]],[[127540,127540],"mapped",[21512]],[[127541,127541],"mapped",[28288]],[[127542,127542],"mapped",[26377]],[[127543,127543],"mapped",[26376]],[[127544,127544],"mapped",[30003]],[[127545,127545],"mapped",[21106]],[[127546,127546],"mapped",[21942]],[[127547,127551],"disallowed"],[[127552,127552],"mapped",[12308,26412,12309]],[[127553,127553],"mapped",[12308,19977,12309]],[[127554,127554],"mapped",[12308,20108,12309]],[[127555,127555],"mapped",[12308,23433,12309]],[[127556,127556],"mapped",[12308,28857,12309]],[[127557,127557],"mapped",[12308,25171,12309]],[[127558,127558],"mapped",[12308,30423,12309]],[[127559,127559],"mapped",[12308,21213,12309]],[[127560,127560],"mapped",[12308,25943,12309]],[[127561,127567],"disallowed"],[[127568,127568],"mapped",[24471]],[[127569,127569],"mapped",[21487]],[[127570,127743],"disallowed"],[[127744,127776],"valid",[],"NV8"],[[127777,127788],"valid",[],"NV8"],[[127789,127791],"valid",[],"NV8"],[[127792,127797],"valid",[],"NV8"],[[127798,127798],"valid",[],"NV8"],[[127799,127868],"valid",[],"NV8"],[[127869,127869],"valid",[],"NV8"],[[127870,127871],"valid",[],"NV8"],[[127872,127891],"valid",[],"NV8"],[[127892,127903],"valid",[],"NV8"],[[127904,127940],"valid",[],"NV8"],[[127941,127941],"valid",[],"NV8"],[[127942,127946],"valid",[],"NV8"],[[127947,127950],"valid",[],"NV8"],[[127951,127955],"valid",[],"NV8"],[[127956,127967],"valid",[],"NV8"],[[127968,127984],"valid",[],"NV8"],[[127985,127991],"valid",[],"NV8"],[[127992,127999],"valid",[],"NV8"],[[128e3,128062],"valid",[],"NV8"],[[128063,128063],"valid",[],"NV8"],[[128064,128064],"valid",[],"NV8"],[[128065,128065],"valid",[],"NV8"],[[128066,128247],"valid",[],"NV8"],[[128248,128248],"valid",[],"NV8"],[[128249,128252],"valid",[],"NV8"],[[128253,128254],"valid",[],"NV8"],[[128255,128255],"valid",[],"NV8"],[[128256,128317],"valid",[],"NV8"],[[128318,128319],"valid",[],"NV8"],[[128320,128323],"valid",[],"NV8"],[[128324,128330],"valid",[],"NV8"],[[128331,128335],"valid",[],"NV8"],[[128336,128359],"valid",[],"NV8"],[[128360,128377],"valid",[],"NV8"],[[128378,128378],"disallowed"],[[128379,128419],"valid",[],"NV8"],[[128420,128420],"disallowed"],[[128421,128506],"valid",[],"NV8"],[[128507,128511],"valid",[],"NV8"],[[128512,128512],"valid",[],"NV8"],[[128513,128528],"valid",[],"NV8"],[[128529,128529],"valid",[],"NV8"],[[128530,128532],"valid",[],"NV8"],[[128533,128533],"valid",[],"NV8"],[[128534,128534],"valid",[],"NV8"],[[128535,128535],"valid",[],"NV8"],[[128536,128536],"valid",[],"NV8"],[[128537,128537],"valid",[],"NV8"],[[128538,128538],"valid",[],"NV8"],[[128539,128539],"valid",[],"NV8"],[[128540,128542],"valid",[],"NV8"],[[128543,128543],"valid",[],"NV8"],[[128544,128549],"valid",[],"NV8"],[[128550,128551],"valid",[],"NV8"],[[128552,128555],"valid",[],"NV8"],[[128556,128556],"valid",[],"NV8"],[[128557,128557],"valid",[],"NV8"],[[128558,128559],"valid",[],"NV8"],[[128560,128563],"valid",[],"NV8"],[[128564,128564],"valid",[],"NV8"],[[128565,128576],"valid",[],"NV8"],[[128577,128578],"valid",[],"NV8"],[[128579,128580],"valid",[],"NV8"],[[128581,128591],"valid",[],"NV8"],[[128592,128639],"valid",[],"NV8"],[[128640,128709],"valid",[],"NV8"],[[128710,128719],"valid",[],"NV8"],[[128720,128720],"valid",[],"NV8"],[[128721,128735],"disallowed"],[[128736,128748],"valid",[],"NV8"],[[128749,128751],"disallowed"],[[128752,128755],"valid",[],"NV8"],[[128756,128767],"disallowed"],[[128768,128883],"valid",[],"NV8"],[[128884,128895],"disallowed"],[[128896,128980],"valid",[],"NV8"],[[128981,129023],"disallowed"],[[129024,129035],"valid",[],"NV8"],[[129036,129039],"disallowed"],[[129040,129095],"valid",[],"NV8"],[[129096,129103],"disallowed"],[[129104,129113],"valid",[],"NV8"],[[129114,129119],"disallowed"],[[129120,129159],"valid",[],"NV8"],[[129160,129167],"disallowed"],[[129168,129197],"valid",[],"NV8"],[[129198,129295],"disallowed"],[[129296,129304],"valid",[],"NV8"],[[129305,129407],"disallowed"],[[129408,129412],"valid",[],"NV8"],[[129413,129471],"disallowed"],[[129472,129472],"valid",[],"NV8"],[[129473,131069],"disallowed"],[[131070,131071],"disallowed"],[[131072,173782],"valid"],[[173783,173823],"disallowed"],[[173824,177972],"valid"],[[177973,177983],"disallowed"],[[177984,178205],"valid"],[[178206,178207],"disallowed"],[[178208,183969],"valid"],[[183970,194559],"disallowed"],[[194560,194560],"mapped",[20029]],[[194561,194561],"mapped",[20024]],[[194562,194562],"mapped",[20033]],[[194563,194563],"mapped",[131362]],[[194564,194564],"mapped",[20320]],[[194565,194565],"mapped",[20398]],[[194566,194566],"mapped",[20411]],[[194567,194567],"mapped",[20482]],[[194568,194568],"mapped",[20602]],[[194569,194569],"mapped",[20633]],[[194570,194570],"mapped",[20711]],[[194571,194571],"mapped",[20687]],[[194572,194572],"mapped",[13470]],[[194573,194573],"mapped",[132666]],[[194574,194574],"mapped",[20813]],[[194575,194575],"mapped",[20820]],[[194576,194576],"mapped",[20836]],[[194577,194577],"mapped",[20855]],[[194578,194578],"mapped",[132380]],[[194579,194579],"mapped",[13497]],[[194580,194580],"mapped",[20839]],[[194581,194581],"mapped",[20877]],[[194582,194582],"mapped",[132427]],[[194583,194583],"mapped",[20887]],[[194584,194584],"mapped",[20900]],[[194585,194585],"mapped",[20172]],[[194586,194586],"mapped",[20908]],[[194587,194587],"mapped",[20917]],[[194588,194588],"mapped",[168415]],[[194589,194589],"mapped",[20981]],[[194590,194590],"mapped",[20995]],[[194591,194591],"mapped",[13535]],[[194592,194592],"mapped",[21051]],[[194593,194593],"mapped",[21062]],[[194594,194594],"mapped",[21106]],[[194595,194595],"mapped",[21111]],[[194596,194596],"mapped",[13589]],[[194597,194597],"mapped",[21191]],[[194598,194598],"mapped",[21193]],[[194599,194599],"mapped",[21220]],[[194600,194600],"mapped",[21242]],[[194601,194601],"mapped",[21253]],[[194602,194602],"mapped",[21254]],[[194603,194603],"mapped",[21271]],[[194604,194604],"mapped",[21321]],[[194605,194605],"mapped",[21329]],[[194606,194606],"mapped",[21338]],[[194607,194607],"mapped",[21363]],[[194608,194608],"mapped",[21373]],[[194609,194611],"mapped",[21375]],[[194612,194612],"mapped",[133676]],[[194613,194613],"mapped",[28784]],[[194614,194614],"mapped",[21450]],[[194615,194615],"mapped",[21471]],[[194616,194616],"mapped",[133987]],[[194617,194617],"mapped",[21483]],[[194618,194618],"mapped",[21489]],[[194619,194619],"mapped",[21510]],[[194620,194620],"mapped",[21662]],[[194621,194621],"mapped",[21560]],[[194622,194622],"mapped",[21576]],[[194623,194623],"mapped",[21608]],[[194624,194624],"mapped",[21666]],[[194625,194625],"mapped",[21750]],[[194626,194626],"mapped",[21776]],[[194627,194627],"mapped",[21843]],[[194628,194628],"mapped",[21859]],[[194629,194630],"mapped",[21892]],[[194631,194631],"mapped",[21913]],[[194632,194632],"mapped",[21931]],[[194633,194633],"mapped",[21939]],[[194634,194634],"mapped",[21954]],[[194635,194635],"mapped",[22294]],[[194636,194636],"mapped",[22022]],[[194637,194637],"mapped",[22295]],[[194638,194638],"mapped",[22097]],[[194639,194639],"mapped",[22132]],[[194640,194640],"mapped",[20999]],[[194641,194641],"mapped",[22766]],[[194642,194642],"mapped",[22478]],[[194643,194643],"mapped",[22516]],[[194644,194644],"mapped",[22541]],[[194645,194645],"mapped",[22411]],[[194646,194646],"mapped",[22578]],[[194647,194647],"mapped",[22577]],[[194648,194648],"mapped",[22700]],[[194649,194649],"mapped",[136420]],[[194650,194650],"mapped",[22770]],[[194651,194651],"mapped",[22775]],[[194652,194652],"mapped",[22790]],[[194653,194653],"mapped",[22810]],[[194654,194654],"mapped",[22818]],[[194655,194655],"mapped",[22882]],[[194656,194656],"mapped",[136872]],[[194657,194657],"mapped",[136938]],[[194658,194658],"mapped",[23020]],[[194659,194659],"mapped",[23067]],[[194660,194660],"mapped",[23079]],[[194661,194661],"mapped",[23e3]],[[194662,194662],"mapped",[23142]],[[194663,194663],"mapped",[14062]],[[194664,194664],"disallowed"],[[194665,194665],"mapped",[23304]],[[194666,194667],"mapped",[23358]],[[194668,194668],"mapped",[137672]],[[194669,194669],"mapped",[23491]],[[194670,194670],"mapped",[23512]],[[194671,194671],"mapped",[23527]],[[194672,194672],"mapped",[23539]],[[194673,194673],"mapped",[138008]],[[194674,194674],"mapped",[23551]],[[194675,194675],"mapped",[23558]],[[194676,194676],"disallowed"],[[194677,194677],"mapped",[23586]],[[194678,194678],"mapped",[14209]],[[194679,194679],"mapped",[23648]],[[194680,194680],"mapped",[23662]],[[194681,194681],"mapped",[23744]],[[194682,194682],"mapped",[23693]],[[194683,194683],"mapped",[138724]],[[194684,194684],"mapped",[23875]],[[194685,194685],"mapped",[138726]],[[194686,194686],"mapped",[23918]],[[194687,194687],"mapped",[23915]],[[194688,194688],"mapped",[23932]],[[194689,194689],"mapped",[24033]],[[194690,194690],"mapped",[24034]],[[194691,194691],"mapped",[14383]],[[194692,194692],"mapped",[24061]],[[194693,194693],"mapped",[24104]],[[194694,194694],"mapped",[24125]],[[194695,194695],"mapped",[24169]],[[194696,194696],"mapped",[14434]],[[194697,194697],"mapped",[139651]],[[194698,194698],"mapped",[14460]],[[194699,194699],"mapped",[24240]],[[194700,194700],"mapped",[24243]],[[194701,194701],"mapped",[24246]],[[194702,194702],"mapped",[24266]],[[194703,194703],"mapped",[172946]],[[194704,194704],"mapped",[24318]],[[194705,194706],"mapped",[140081]],[[194707,194707],"mapped",[33281]],[[194708,194709],"mapped",[24354]],[[194710,194710],"mapped",[14535]],[[194711,194711],"mapped",[144056]],[[194712,194712],"mapped",[156122]],[[194713,194713],"mapped",[24418]],[[194714,194714],"mapped",[24427]],[[194715,194715],"mapped",[14563]],[[194716,194716],"mapped",[24474]],[[194717,194717],"mapped",[24525]],[[194718,194718],"mapped",[24535]],[[194719,194719],"mapped",[24569]],[[194720,194720],"mapped",[24705]],[[194721,194721],"mapped",[14650]],[[194722,194722],"mapped",[14620]],[[194723,194723],"mapped",[24724]],[[194724,194724],"mapped",[141012]],[[194725,194725],"mapped",[24775]],[[194726,194726],"mapped",[24904]],[[194727,194727],"mapped",[24908]],[[194728,194728],"mapped",[24910]],[[194729,194729],"mapped",[24908]],[[194730,194730],"mapped",[24954]],[[194731,194731],"mapped",[24974]],[[194732,194732],"mapped",[25010]],[[194733,194733],"mapped",[24996]],[[194734,194734],"mapped",[25007]],[[194735,194735],"mapped",[25054]],[[194736,194736],"mapped",[25074]],[[194737,194737],"mapped",[25078]],[[194738,194738],"mapped",[25104]],[[194739,194739],"mapped",[25115]],[[194740,194740],"mapped",[25181]],[[194741,194741],"mapped",[25265]],[[194742,194742],"mapped",[25300]],[[194743,194743],"mapped",[25424]],[[194744,194744],"mapped",[142092]],[[194745,194745],"mapped",[25405]],[[194746,194746],"mapped",[25340]],[[194747,194747],"mapped",[25448]],[[194748,194748],"mapped",[25475]],[[194749,194749],"mapped",[25572]],[[194750,194750],"mapped",[142321]],[[194751,194751],"mapped",[25634]],[[194752,194752],"mapped",[25541]],[[194753,194753],"mapped",[25513]],[[194754,194754],"mapped",[14894]],[[194755,194755],"mapped",[25705]],[[194756,194756],"mapped",[25726]],[[194757,194757],"mapped",[25757]],[[194758,194758],"mapped",[25719]],[[194759,194759],"mapped",[14956]],[[194760,194760],"mapped",[25935]],[[194761,194761],"mapped",[25964]],[[194762,194762],"mapped",[143370]],[[194763,194763],"mapped",[26083]],[[194764,194764],"mapped",[26360]],[[194765,194765],"mapped",[26185]],[[194766,194766],"mapped",[15129]],[[194767,194767],"mapped",[26257]],[[194768,194768],"mapped",[15112]],[[194769,194769],"mapped",[15076]],[[194770,194770],"mapped",[20882]],[[194771,194771],"mapped",[20885]],[[194772,194772],"mapped",[26368]],[[194773,194773],"mapped",[26268]],[[194774,194774],"mapped",[32941]],[[194775,194775],"mapped",[17369]],[[194776,194776],"mapped",[26391]],[[194777,194777],"mapped",[26395]],[[194778,194778],"mapped",[26401]],[[194779,194779],"mapped",[26462]],[[194780,194780],"mapped",[26451]],[[194781,194781],"mapped",[144323]],[[194782,194782],"mapped",[15177]],[[194783,194783],"mapped",[26618]],[[194784,194784],"mapped",[26501]],[[194785,194785],"mapped",[26706]],[[194786,194786],"mapped",[26757]],[[194787,194787],"mapped",[144493]],[[194788,194788],"mapped",[26766]],[[194789,194789],"mapped",[26655]],[[194790,194790],"mapped",[26900]],[[194791,194791],"mapped",[15261]],[[194792,194792],"mapped",[26946]],[[194793,194793],"mapped",[27043]],[[194794,194794],"mapped",[27114]],[[194795,194795],"mapped",[27304]],[[194796,194796],"mapped",[145059]],[[194797,194797],"mapped",[27355]],[[194798,194798],"mapped",[15384]],[[194799,194799],"mapped",[27425]],[[194800,194800],"mapped",[145575]],[[194801,194801],"mapped",[27476]],[[194802,194802],"mapped",[15438]],[[194803,194803],"mapped",[27506]],[[194804,194804],"mapped",[27551]],[[194805,194805],"mapped",[27578]],[[194806,194806],"mapped",[27579]],[[194807,194807],"mapped",[146061]],[[194808,194808],"mapped",[138507]],[[194809,194809],"mapped",[146170]],[[194810,194810],"mapped",[27726]],[[194811,194811],"mapped",[146620]],[[194812,194812],"mapped",[27839]],[[194813,194813],"mapped",[27853]],[[194814,194814],"mapped",[27751]],[[194815,194815],"mapped",[27926]],[[194816,194816],"mapped",[27966]],[[194817,194817],"mapped",[28023]],[[194818,194818],"mapped",[27969]],[[194819,194819],"mapped",[28009]],[[194820,194820],"mapped",[28024]],[[194821,194821],"mapped",[28037]],[[194822,194822],"mapped",[146718]],[[194823,194823],"mapped",[27956]],[[194824,194824],"mapped",[28207]],[[194825,194825],"mapped",[28270]],[[194826,194826],"mapped",[15667]],[[194827,194827],"mapped",[28363]],[[194828,194828],"mapped",[28359]],[[194829,194829],"mapped",[147153]],[[194830,194830],"mapped",[28153]],[[194831,194831],"mapped",[28526]],[[194832,194832],"mapped",[147294]],[[194833,194833],"mapped",[147342]],[[194834,194834],"mapped",[28614]],[[194835,194835],"mapped",[28729]],[[194836,194836],"mapped",[28702]],[[194837,194837],"mapped",[28699]],[[194838,194838],"mapped",[15766]],[[194839,194839],"mapped",[28746]],[[194840,194840],"mapped",[28797]],[[194841,194841],"mapped",[28791]],[[194842,194842],"mapped",[28845]],[[194843,194843],"mapped",[132389]],[[194844,194844],"mapped",[28997]],[[194845,194845],"mapped",[148067]],[[194846,194846],"mapped",[29084]],[[194847,194847],"disallowed"],[[194848,194848],"mapped",[29224]],[[194849,194849],"mapped",[29237]],[[194850,194850],"mapped",[29264]],[[194851,194851],"mapped",[149e3]],[[194852,194852],"mapped",[29312]],[[194853,194853],"mapped",[29333]],[[194854,194854],"mapped",[149301]],[[194855,194855],"mapped",[149524]],[[194856,194856],"mapped",[29562]],[[194857,194857],"mapped",[29579]],[[194858,194858],"mapped",[16044]],[[194859,194859],"mapped",[29605]],[[194860,194861],"mapped",[16056]],[[194862,194862],"mapped",[29767]],[[194863,194863],"mapped",[29788]],[[194864,194864],"mapped",[29809]],[[194865,194865],"mapped",[29829]],[[194866,194866],"mapped",[29898]],[[194867,194867],"mapped",[16155]],[[194868,194868],"mapped",[29988]],[[194869,194869],"mapped",[150582]],[[194870,194870],"mapped",[30014]],[[194871,194871],"mapped",[150674]],[[194872,194872],"mapped",[30064]],[[194873,194873],"mapped",[139679]],[[194874,194874],"mapped",[30224]],[[194875,194875],"mapped",[151457]],[[194876,194876],"mapped",[151480]],[[194877,194877],"mapped",[151620]],[[194878,194878],"mapped",[16380]],[[194879,194879],"mapped",[16392]],[[194880,194880],"mapped",[30452]],[[194881,194881],"mapped",[151795]],[[194882,194882],"mapped",[151794]],[[194883,194883],"mapped",[151833]],[[194884,194884],"mapped",[151859]],[[194885,194885],"mapped",[30494]],[[194886,194887],"mapped",[30495]],[[194888,194888],"mapped",[30538]],[[194889,194889],"mapped",[16441]],[[194890,194890],"mapped",[30603]],[[194891,194891],"mapped",[16454]],[[194892,194892],"mapped",[16534]],[[194893,194893],"mapped",[152605]],[[194894,194894],"mapped",[30798]],[[194895,194895],"mapped",[30860]],[[194896,194896],"mapped",[30924]],[[194897,194897],"mapped",[16611]],[[194898,194898],"mapped",[153126]],[[194899,194899],"mapped",[31062]],[[194900,194900],"mapped",[153242]],[[194901,194901],"mapped",[153285]],[[194902,194902],"mapped",[31119]],[[194903,194903],"mapped",[31211]],[[194904,194904],"mapped",[16687]],[[194905,194905],"mapped",[31296]],[[194906,194906],"mapped",[31306]],[[194907,194907],"mapped",[31311]],[[194908,194908],"mapped",[153980]],[[194909,194910],"mapped",[154279]],[[194911,194911],"disallowed"],[[194912,194912],"mapped",[16898]],[[194913,194913],"mapped",[154539]],[[194914,194914],"mapped",[31686]],[[194915,194915],"mapped",[31689]],[[194916,194916],"mapped",[16935]],[[194917,194917],"mapped",[154752]],[[194918,194918],"mapped",[31954]],[[194919,194919],"mapped",[17056]],[[194920,194920],"mapped",[31976]],[[194921,194921],"mapped",[31971]],[[194922,194922],"mapped",[32e3]],[[194923,194923],"mapped",[155526]],[[194924,194924],"mapped",[32099]],[[194925,194925],"mapped",[17153]],[[194926,194926],"mapped",[32199]],[[194927,194927],"mapped",[32258]],[[194928,194928],"mapped",[32325]],[[194929,194929],"mapped",[17204]],[[194930,194930],"mapped",[156200]],[[194931,194931],"mapped",[156231]],[[194932,194932],"mapped",[17241]],[[194933,194933],"mapped",[156377]],[[194934,194934],"mapped",[32634]],[[194935,194935],"mapped",[156478]],[[194936,194936],"mapped",[32661]],[[194937,194937],"mapped",[32762]],[[194938,194938],"mapped",[32773]],[[194939,194939],"mapped",[156890]],[[194940,194940],"mapped",[156963]],[[194941,194941],"mapped",[32864]],[[194942,194942],"mapped",[157096]],[[194943,194943],"mapped",[32880]],[[194944,194944],"mapped",[144223]],[[194945,194945],"mapped",[17365]],[[194946,194946],"mapped",[32946]],[[194947,194947],"mapped",[33027]],[[194948,194948],"mapped",[17419]],[[194949,194949],"mapped",[33086]],[[194950,194950],"mapped",[23221]],[[194951,194951],"mapped",[157607]],[[194952,194952],"mapped",[157621]],[[194953,194953],"mapped",[144275]],[[194954,194954],"mapped",[144284]],[[194955,194955],"mapped",[33281]],[[194956,194956],"mapped",[33284]],[[194957,194957],"mapped",[36766]],[[194958,194958],"mapped",[17515]],[[194959,194959],"mapped",[33425]],[[194960,194960],"mapped",[33419]],[[194961,194961],"mapped",[33437]],[[194962,194962],"mapped",[21171]],[[194963,194963],"mapped",[33457]],[[194964,194964],"mapped",[33459]],[[194965,194965],"mapped",[33469]],[[194966,194966],"mapped",[33510]],[[194967,194967],"mapped",[158524]],[[194968,194968],"mapped",[33509]],[[194969,194969],"mapped",[33565]],[[194970,194970],"mapped",[33635]],[[194971,194971],"mapped",[33709]],[[194972,194972],"mapped",[33571]],[[194973,194973],"mapped",[33725]],[[194974,194974],"mapped",[33767]],[[194975,194975],"mapped",[33879]],[[194976,194976],"mapped",[33619]],[[194977,194977],"mapped",[33738]],[[194978,194978],"mapped",[33740]],[[194979,194979],"mapped",[33756]],[[194980,194980],"mapped",[158774]],[[194981,194981],"mapped",[159083]],[[194982,194982],"mapped",[158933]],[[194983,194983],"mapped",[17707]],[[194984,194984],"mapped",[34033]],[[194985,194985],"mapped",[34035]],[[194986,194986],"mapped",[34070]],[[194987,194987],"mapped",[160714]],[[194988,194988],"mapped",[34148]],[[194989,194989],"mapped",[159532]],[[194990,194990],"mapped",[17757]],[[194991,194991],"mapped",[17761]],[[194992,194992],"mapped",[159665]],[[194993,194993],"mapped",[159954]],[[194994,194994],"mapped",[17771]],[[194995,194995],"mapped",[34384]],[[194996,194996],"mapped",[34396]],[[194997,194997],"mapped",[34407]],[[194998,194998],"mapped",[34409]],[[194999,194999],"mapped",[34473]],[[195e3,195e3],"mapped",[34440]],[[195001,195001],"mapped",[34574]],[[195002,195002],"mapped",[34530]],[[195003,195003],"mapped",[34681]],[[195004,195004],"mapped",[34600]],[[195005,195005],"mapped",[34667]],[[195006,195006],"mapped",[34694]],[[195007,195007],"disallowed"],[[195008,195008],"mapped",[34785]],[[195009,195009],"mapped",[34817]],[[195010,195010],"mapped",[17913]],[[195011,195011],"mapped",[34912]],[[195012,195012],"mapped",[34915]],[[195013,195013],"mapped",[161383]],[[195014,195014],"mapped",[35031]],[[195015,195015],"mapped",[35038]],[[195016,195016],"mapped",[17973]],[[195017,195017],"mapped",[35066]],[[195018,195018],"mapped",[13499]],[[195019,195019],"mapped",[161966]],[[195020,195020],"mapped",[162150]],[[195021,195021],"mapped",[18110]],[[195022,195022],"mapped",[18119]],[[195023,195023],"mapped",[35488]],[[195024,195024],"mapped",[35565]],[[195025,195025],"mapped",[35722]],[[195026,195026],"mapped",[35925]],[[195027,195027],"mapped",[162984]],[[195028,195028],"mapped",[36011]],[[195029,195029],"mapped",[36033]],[[195030,195030],"mapped",[36123]],[[195031,195031],"mapped",[36215]],[[195032,195032],"mapped",[163631]],[[195033,195033],"mapped",[133124]],[[195034,195034],"mapped",[36299]],[[195035,195035],"mapped",[36284]],[[195036,195036],"mapped",[36336]],[[195037,195037],"mapped",[133342]],[[195038,195038],"mapped",[36564]],[[195039,195039],"mapped",[36664]],[[195040,195040],"mapped",[165330]],[[195041,195041],"mapped",[165357]],[[195042,195042],"mapped",[37012]],[[195043,195043],"mapped",[37105]],[[195044,195044],"mapped",[37137]],[[195045,195045],"mapped",[165678]],[[195046,195046],"mapped",[37147]],[[195047,195047],"mapped",[37432]],[[195048,195048],"mapped",[37591]],[[195049,195049],"mapped",[37592]],[[195050,195050],"mapped",[37500]],[[195051,195051],"mapped",[37881]],[[195052,195052],"mapped",[37909]],[[195053,195053],"mapped",[166906]],[[195054,195054],"mapped",[38283]],[[195055,195055],"mapped",[18837]],[[195056,195056],"mapped",[38327]],[[195057,195057],"mapped",[167287]],[[195058,195058],"mapped",[18918]],[[195059,195059],"mapped",[38595]],[[195060,195060],"mapped",[23986]],[[195061,195061],"mapped",[38691]],[[195062,195062],"mapped",[168261]],[[195063,195063],"mapped",[168474]],[[195064,195064],"mapped",[19054]],[[195065,195065],"mapped",[19062]],[[195066,195066],"mapped",[38880]],[[195067,195067],"mapped",[168970]],[[195068,195068],"mapped",[19122]],[[195069,195069],"mapped",[169110]],[[195070,195071],"mapped",[38923]],[[195072,195072],"mapped",[38953]],[[195073,195073],"mapped",[169398]],[[195074,195074],"mapped",[39138]],[[195075,195075],"mapped",[19251]],[[195076,195076],"mapped",[39209]],[[195077,195077],"mapped",[39335]],[[195078,195078],"mapped",[39362]],[[195079,195079],"mapped",[39422]],[[195080,195080],"mapped",[19406]],[[195081,195081],"mapped",[170800]],[[195082,195082],"mapped",[39698]],[[195083,195083],"mapped",[4e4]],[[195084,195084],"mapped",[40189]],[[195085,195085],"mapped",[19662]],[[195086,195086],"mapped",[19693]],[[195087,195087],"mapped",[40295]],[[195088,195088],"mapped",[172238]],[[195089,195089],"mapped",[19704]],[[195090,195090],"mapped",[172293]],[[195091,195091],"mapped",[172558]],[[195092,195092],"mapped",[172689]],[[195093,195093],"mapped",[40635]],[[195094,195094],"mapped",[19798]],[[195095,195095],"mapped",[40697]],[[195096,195096],"mapped",[40702]],[[195097,195097],"mapped",[40709]],[[195098,195098],"mapped",[40719]],[[195099,195099],"mapped",[40726]],[[195100,195100],"mapped",[40763]],[[195101,195101],"mapped",[173568]],[[195102,196605],"disallowed"],[[196606,196607],"disallowed"],[[196608,262141],"disallowed"],[[262142,262143],"disallowed"],[[262144,327677],"disallowed"],[[327678,327679],"disallowed"],[[327680,393213],"disallowed"],[[393214,393215],"disallowed"],[[393216,458749],"disallowed"],[[458750,458751],"disallowed"],[[458752,524285],"disallowed"],[[524286,524287],"disallowed"],[[524288,589821],"disallowed"],[[589822,589823],"disallowed"],[[589824,655357],"disallowed"],[[655358,655359],"disallowed"],[[655360,720893],"disallowed"],[[720894,720895],"disallowed"],[[720896,786429],"disallowed"],[[786430,786431],"disallowed"],[[786432,851965],"disallowed"],[[851966,851967],"disallowed"],[[851968,917501],"disallowed"],[[917502,917503],"disallowed"],[[917504,917504],"disallowed"],[[917505,917505],"disallowed"],[[917506,917535],"disallowed"],[[917536,917631],"disallowed"],[[917632,917759],"disallowed"],[[917760,917999],"ignored"],[[918e3,983037],"disallowed"],[[983038,983039],"disallowed"],[[983040,1048573],"disallowed"],[[1048574,1048575],"disallowed"],[[1048576,1114109],"disallowed"],[[1114110,1114111],"disallowed"]]});var D7=Ne((qU,Jp)=>{"use strict";var I7=Xe("punycode"),x7=T7(),fo={TRANSITIONAL:0,NONTRANSITIONAL:1};function C7(t){return t.split("\0").map(function(e){return e.normalize("NFC")}).join("\0")}function L7(t){for(var e=0,r=x7.length-1;e<=r;){var i=Math.floor((e+r)/2),n=x7[i];if(n[0][0]<=t&&n[0][1]>=t)return n;n[0][0]>t?r=i-1:e=i+1}return null}var CA=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function k7(t){return t.replace(CA,"_").length}function LA(t,e,r){for(var i=!1,n="",a=k7(t),s=0;s<a;++s){var o=t.codePointAt(s),d=L7(o);switch(d[1]){case"disallowed":i=!0,n+=String.fromCodePoint(o);break;case"ignored":break;case"mapped":n+=String.fromCodePoint.apply(String,d[2]);break;case"deviation":r===fo.TRANSITIONAL?n+=String.fromCodePoint.apply(String,d[2]):n+=String.fromCodePoint(o);break;case"valid":n+=String.fromCodePoint(o);break;case"disallowed_STD3_mapped":e?(i=!0,n+=String.fromCodePoint(o)):n+=String.fromCodePoint.apply(String,d[2]);break;case"disallowed_STD3_valid":e&&(i=!0),n+=String.fromCodePoint(o);break}}return{string:n,error:i}}var kA=/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/;function DA(t,e){t.substr(0,4)==="xn--"&&(t=I7.toUnicode(t),e=fo.NONTRANSITIONAL);var r=!1;(C7(t)!==t||t[3]==="-"&&t[4]==="-"||t[0]==="-"||t[t.length-1]==="-"||t.indexOf(".")!==-1||t.search(kA)===0)&&(r=!0);for(var i=k7(t),n=0;n<i;++n){var a=L7(t.codePointAt(n));if(Zp===fo.TRANSITIONAL&&a[1]!=="valid"||Zp===fo.NONTRANSITIONAL&&a[1]!=="valid"&&a[1]!=="deviation"){r=!0;break}}return{label:t,error:r}}function Zp(t,e,r){var i=LA(t,e,r);i.string=C7(i.string);for(var n=i.string.split("."),a=0;a<n.length;++a)try{var s=DA(n[a]);n[a]=s.label,i.error=i.error||s.error}catch{i.error=!0}return{string:n.join("."),error:i.error}}Jp.exports.toASCII=function(t,e,r,i){var n=Zp(t,e,r),a=n.string.split(".");if(a=a.map(function(d){try{return I7.toASCII(d)}catch{return n.error=!0,d}}),i){var s=a.slice(0,a.length-1).join(".").length;(s.length>253||s.length===0)&&(n.error=!0);for(var o=0;o<a.length;++o)if(a.length>63||a.length===0){n.error=!0;break}}return n.error?null:a.join(".")};Jp.exports.toUnicode=function(t,e){var r=Zp(t,e,fo.NONTRANSITIONAL);return{domain:r.string,error:r.error}};Jp.exports.PROCESSING_OPTIONS=fo});var Nn=Ne((jU,Ni)=>{"use strict";var ho=Xe("punycode"),B7=D7(),F7={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},Et=Symbol("failure");function P7(t){return ho.ucs2.decode(t).length}function U7(t,e){let r=t[e];return isNaN(r)?void 0:String.fromCodePoint(r)}function T1(t){return t>=48&&t<=57}function x1(t){return t>=65&&t<=90||t>=97&&t<=122}function BA(t){return x1(t)||T1(t)}function en(t){return T1(t)||t>=65&&t<=70||t>=97&&t<=102}function M7(t){return t==="."||t.toLowerCase()==="%2e"}function PA(t){return t=t.toLowerCase(),t===".."||t==="%2e."||t===".%2e"||t==="%2e%2e"}function UA(t,e){return x1(t)&&(e===58||e===124)}function V7(t){return t.length===2&&x1(t.codePointAt(0))&&(t[1]===":"||t[1]==="|")}function MA(t){return t.length===2&&x1(t.codePointAt(0))&&t[1]===":"}function FA(t){return t.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/)!==-1}function VA(t){return t.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/)!==-1}function Nu(t){return F7[t]!==void 0}function Dr(t){return Nu(t.scheme)}function $A(t){return F7[t]}function $7(t){let e=t.toString(16).toUpperCase();return e.length===1&&(e="0"+e),"%"+e}function zA(t){let e=new Buffer(t),r="";for(let i=0;i<e.length;++i)r+=$7(e[i]);return r}function HA(t){let e=new Buffer(t),r=[];for(let i=0;i<e.length;++i)e[i]!==37?r.push(e[i]):e[i]===37&&en(e[i+1])&&en(e[i+2])?(r.push(parseInt(e.slice(i+1,i+3).toString(),16)),i+=2):r.push(e[i]);return new Buffer(r).toString()}function Qp(t){return t<=31||t>126}var GA=new Set([32,34,35,60,62,63,96,123,125]);function z7(t){return Qp(t)||GA.has(t)}var qA=new Set([47,58,59,61,64,91,92,93,94,124]);function xu(t){return z7(t)||qA.has(t)}function Es(t,e){let r=String.fromCodePoint(t);return e(t)?zA(r):r}function jA(t){let e=10;return t.length>=2&&t.charAt(0)==="0"&&t.charAt(1).toLowerCase()==="x"?(t=t.substring(2),e=16):t.length>=2&&t.charAt(0)==="0"&&(t=t.substring(1),e=8),t===""?0:(e===10?/[^0-9]/:e===16?/[^0-9A-Fa-f]/:/[^0-7]/).test(t)?Et:parseInt(t,e)}function KA(t){let e=t.split(".");if(e[e.length-1]===""&&e.length>1&&e.pop(),e.length>4)return t;let r=[];for(let a of e){if(a==="")return t;let s=jA(a);if(s===Et)return t;r.push(s)}for(let a=0;a<r.length-1;++a)if(r[a]>255)return Et;if(r[r.length-1]>=Math.pow(256,5-r.length))return Et;let i=r.pop(),n=0;for(let a of r)i+=a*Math.pow(256,3-n),++n;return i}function WA(t){let e="",r=t;for(let i=1;i<=4;++i)e=String(r%256)+e,i!==4&&(e="."+e),r=Math.floor(r/256);return e}function YA(t){let e=[0,0,0,0,0,0,0,0],r=0,i=null,n=0;if(t=ho.ucs2.decode(t),t[n]===58){if(t[n+1]!==58)return Et;n+=2,++r,i=r}for(;n<t.length;){if(r===8)return Et;if(t[n]===58){if(i!==null)return Et;++n,++r,i=r;continue}let a=0,s=0;for(;s<4&&en(t[n]);)a=a*16+parseInt(U7(t,n),16),++n,++s;if(t[n]===46){if(s===0||(n-=s,r>6))return Et;let o=0;for(;t[n]!==void 0;){let d=null;if(o>0)if(t[n]===46&&o<4)++n;else return Et;if(!T1(t[n]))return Et;for(;T1(t[n]);){let h=parseInt(U7(t,n));if(d===null)d=h;else{if(d===0)return Et;d=d*10+h}if(d>255)return Et;++n}e[r]=e[r]*256+d,++o,(o===2||o===4)&&++r}if(o!==4)return Et;break}else if(t[n]===58){if(++n,t[n]===void 0)return Et}else if(t[n]!==void 0)return Et;e[r]=a,++r}if(i!==null){let a=r-i;for(r=7;r!==0&&a>0;){let s=e[i+a-1];e[i+a-1]=e[r],e[r]=s,--r,--a}}else if(i===null&&r!==8)return Et;return e}function XA(t){let e="",i=JA(t).idx,n=!1;for(let a=0;a<=7;++a)if(!(n&&t[a]===0)){if(n&&(n=!1),i===a){e+=a===0?"::":":",n=!0;continue}e+=t[a].toString(16),a!==7&&(e+=":")}return e}function Tu(t,e){if(t[0]==="[")return t[t.length-1]!=="]"?Et:YA(t.substring(1,t.length-1));if(!e)return ZA(t);let r=HA(t),i=B7.toASCII(r,!1,B7.PROCESSING_OPTIONS.NONTRANSITIONAL,!1);if(i===null||FA(i))return Et;let n=KA(i);return typeof n=="number"||n===Et?n:i}function ZA(t){if(VA(t))return Et;let e="",r=ho.ucs2.decode(t);for(let i=0;i<r.length;++i)e+=Es(r[i],Qp);return e}function JA(t){let e=null,r=1,i=null,n=0;for(let a=0;a<t.length;++a)t[a]!==0?(n>r&&(e=i,r=n),i=null,n=0):(i===null&&(i=a),++n);return n>r&&(e=i,r=n),{idx:e,len:r}}function Iu(t){return typeof t=="number"?WA(t):t instanceof Array?"["+XA(t)+"]":t}function QA(t){return t.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}function eO(t){return t.replace(/\u0009|\u000A|\u000D/g,"")}function H7(t){let e=t.path;e.length!==0&&(t.scheme==="file"&&e.length===1&&rO(e[0])||e.pop())}function G7(t){return t.username!==""||t.password!==""}function tO(t){return t.host===null||t.host===""||t.cannotBeABaseURL||t.scheme==="file"}function rO(t){return/^[A-Za-z]:$/.test(t)}function wr(t,e,r,i,n){if(this.pointer=0,this.input=t,this.base=e||null,this.encodingOverride=r||"utf-8",this.stateOverride=n,this.url=i,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:!1};let s=QA(this.input);s!==this.input&&(this.parseError=!0),this.input=s}let a=eO(this.input);for(a!==this.input&&(this.parseError=!0),this.input=a,this.state=n||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=ho.ucs2.decode(this.input);this.pointer<=this.input.length;++this.pointer){let s=this.input[this.pointer],o=isNaN(s)?void 0:String.fromCodePoint(s),d=this["parse "+this.state](s,o);if(d){if(d===Et){this.failure=!0;break}}else break}}wr.prototype["parse scheme start"]=function(e,r){if(x1(e))this.buffer+=r.toLowerCase(),this.state="scheme";else if(!this.stateOverride)this.state="no scheme",--this.pointer;else return this.parseError=!0,Et;return!0};wr.prototype["parse scheme"]=function(e,r){if(BA(e)||e===43||e===45||e===46)this.buffer+=r.toLowerCase();else if(e===58){if(this.stateOverride&&(Dr(this.url)&&!Nu(this.buffer)||!Dr(this.url)&&Nu(this.buffer)||(G7(this.url)||this.url.port!==null)&&this.buffer==="file"||this.url.scheme==="file"&&(this.url.host===""||this.url.host===null))||(this.url.scheme=this.buffer,this.buffer="",this.stateOverride))return!1;this.url.scheme==="file"?((this.input[this.pointer+1]!==47||this.input[this.pointer+2]!==47)&&(this.parseError=!0),this.state="file"):Dr(this.url)&&this.base!==null&&this.base.scheme===this.url.scheme?this.state="special relative or authority":Dr(this.url)?this.state="special authority slashes":this.input[this.pointer+1]===47?(this.state="path or authority",++this.pointer):(this.url.cannotBeABaseURL=!0,this.url.path.push(""),this.state="cannot-be-a-base-URL path")}else if(!this.stateOverride)this.buffer="",this.state="no scheme",this.pointer=-1;else return this.parseError=!0,Et;return!0};wr.prototype["parse no scheme"]=function(e){return this.base===null||this.base.cannotBeABaseURL&&e!==35?Et:(this.base.cannotBeABaseURL&&e===35?(this.url.scheme=this.base.scheme,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.url.cannotBeABaseURL=!0,this.state="fragment"):this.base.scheme==="file"?(this.state="file",--this.pointer):(this.state="relative",--this.pointer),!0)};wr.prototype["parse special relative or authority"]=function(e){return e===47&&this.input[this.pointer+1]===47?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="relative",--this.pointer),!0};wr.prototype["parse path or authority"]=function(e){return e===47?this.state="authority":(this.state="path",--this.pointer),!0};wr.prototype["parse relative"]=function(e){return this.url.scheme=this.base.scheme,isNaN(e)?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query):e===47?this.state="relative slash":e===63?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):e===35?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):Dr(this.url)&&e===92?(this.parseError=!0,this.state="relative slash"):(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(0,this.base.path.length-1),this.state="path",--this.pointer),!0};wr.prototype["parse relative slash"]=function(e){return Dr(this.url)&&(e===47||e===92)?(e===92&&(this.parseError=!0),this.state="special authority ignore slashes"):e===47?this.state="authority":(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer),!0};wr.prototype["parse special authority slashes"]=function(e){return e===47&&this.input[this.pointer+1]===47?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="special authority ignore slashes",--this.pointer),!0};wr.prototype["parse special authority ignore slashes"]=function(e){return e!==47&&e!==92?(this.state="authority",--this.pointer):this.parseError=!0,!0};wr.prototype["parse authority"]=function(e,r){if(e===64){this.parseError=!0,this.atFlag&&(this.buffer="%40"+this.buffer),this.atFlag=!0;let i=P7(this.buffer);for(let n=0;n<i;++n){let a=this.buffer.codePointAt(n);if(a===58&&!this.passwordTokenSeenFlag){this.passwordTokenSeenFlag=!0;continue}let s=Es(a,xu);this.passwordTokenSeenFlag?this.url.password+=s:this.url.username+=s}this.buffer=""}else if(isNaN(e)||e===47||e===63||e===35||Dr(this.url)&&e===92){if(this.atFlag&&this.buffer==="")return this.parseError=!0,Et;this.pointer-=P7(this.buffer)+1,this.buffer="",this.state="host"}else this.buffer+=r;return!0};wr.prototype["parse hostname"]=wr.prototype["parse host"]=function(e,r){if(this.stateOverride&&this.url.scheme==="file")--this.pointer,this.state="file host";else if(e===58&&!this.arrFlag){if(this.buffer==="")return this.parseError=!0,Et;let i=Tu(this.buffer,Dr(this.url));if(i===Et)return Et;if(this.url.host=i,this.buffer="",this.state="port",this.stateOverride==="hostname")return!1}else if(isNaN(e)||e===47||e===63||e===35||Dr(this.url)&&e===92){if(--this.pointer,Dr(this.url)&&this.buffer==="")return this.parseError=!0,Et;if(this.stateOverride&&this.buffer===""&&(G7(this.url)||this.url.port!==null))return this.parseError=!0,!1;let i=Tu(this.buffer,Dr(this.url));if(i===Et)return Et;if(this.url.host=i,this.buffer="",this.state="path start",this.stateOverride)return!1}else e===91?this.arrFlag=!0:e===93&&(this.arrFlag=!1),this.buffer+=r;return!0};wr.prototype["parse port"]=function(e,r){if(T1(e))this.buffer+=r;else if(isNaN(e)||e===47||e===63||e===35||Dr(this.url)&&e===92||this.stateOverride){if(this.buffer!==""){let i=parseInt(this.buffer);if(i>Math.pow(2,16)-1)return this.parseError=!0,Et;this.url.port=i===$A(this.url.scheme)?null:i,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}else return this.parseError=!0,Et;return!0};var iO=new Set([47,92,63,35]);wr.prototype["parse file"]=function(e){return this.url.scheme="file",e===47||e===92?(e===92&&(this.parseError=!0),this.state="file slash"):this.base!==null&&this.base.scheme==="file"?isNaN(e)?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query):e===63?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):e===35?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):(this.input.length-this.pointer-1===0||!UA(e,this.input[this.pointer+1])||this.input.length-this.pointer-1>=2&&!iO.has(this.input[this.pointer+2])?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),H7(this.url)):this.parseError=!0,this.state="path",--this.pointer):(this.state="path",--this.pointer),!0};wr.prototype["parse file slash"]=function(e){return e===47||e===92?(e===92&&(this.parseError=!0),this.state="file host"):(this.base!==null&&this.base.scheme==="file"&&(MA(this.base.path[0])?this.url.path.push(this.base.path[0]):this.url.host=this.base.host),this.state="path",--this.pointer),!0};wr.prototype["parse file host"]=function(e,r){if(isNaN(e)||e===47||e===92||e===63||e===35)if(--this.pointer,!this.stateOverride&&V7(this.buffer))this.parseError=!0,this.state="path";else if(this.buffer===""){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{let i=Tu(this.buffer,Dr(this.url));if(i===Et)return Et;if(i==="localhost"&&(i=""),this.url.host=i,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=r;return!0};wr.prototype["parse path start"]=function(e){return Dr(this.url)?(e===92&&(this.parseError=!0),this.state="path",e!==47&&e!==92&&--this.pointer):!this.stateOverride&&e===63?(this.url.query="",this.state="query"):!this.stateOverride&&e===35?(this.url.fragment="",this.state="fragment"):e!==void 0&&(this.state="path",e!==47&&--this.pointer),!0};wr.prototype["parse path"]=function(e){if(isNaN(e)||e===47||Dr(this.url)&&e===92||!this.stateOverride&&(e===63||e===35)){if(Dr(this.url)&&e===92&&(this.parseError=!0),PA(this.buffer)?(H7(this.url),e!==47&&!(Dr(this.url)&&e===92)&&this.url.path.push("")):M7(this.buffer)&&e!==47&&!(Dr(this.url)&&e===92)?this.url.path.push(""):M7(this.buffer)||(this.url.scheme==="file"&&this.url.path.length===0&&V7(this.buffer)&&(this.url.host!==""&&this.url.host!==null&&(this.parseError=!0,this.url.host=""),this.buffer=this.buffer[0]+":"),this.url.path.push(this.buffer)),this.buffer="",this.url.scheme==="file"&&(e===void 0||e===63||e===35))for(;this.url.path.length>1&&this.url.path[0]==="";)this.parseError=!0,this.url.path.shift();e===63&&(this.url.query="",this.state="query"),e===35&&(this.url.fragment="",this.state="fragment")}else e===37&&(!en(this.input[this.pointer+1])||!en(this.input[this.pointer+2]))&&(this.parseError=!0),this.buffer+=Es(e,z7);return!0};wr.prototype["parse cannot-be-a-base-URL path"]=function(e){return e===63?(this.url.query="",this.state="query"):e===35?(this.url.fragment="",this.state="fragment"):(!isNaN(e)&&e!==37&&(this.parseError=!0),e===37&&(!en(this.input[this.pointer+1])||!en(this.input[this.pointer+2]))&&(this.parseError=!0),isNaN(e)||(this.url.path[0]=this.url.path[0]+Es(e,Qp))),!0};wr.prototype["parse query"]=function(e,r){if(isNaN(e)||!this.stateOverride&&e===35){(!Dr(this.url)||this.url.scheme==="ws"||this.url.scheme==="wss")&&(this.encodingOverride="utf-8");let i=new Buffer(this.buffer);for(let n=0;n<i.length;++n)i[n]<33||i[n]>126||i[n]===34||i[n]===35||i[n]===60||i[n]===62?this.url.query+=$7(i[n]):this.url.query+=String.fromCodePoint(i[n]);this.buffer="",e===35&&(this.url.fragment="",this.state="fragment")}else e===37&&(!en(this.input[this.pointer+1])||!en(this.input[this.pointer+2]))&&(this.parseError=!0),this.buffer+=r;return!0};wr.prototype["parse fragment"]=function(e){return isNaN(e)||(e===0?this.parseError=!0:(e===37&&(!en(this.input[this.pointer+1])||!en(this.input[this.pointer+2]))&&(this.parseError=!0),this.url.fragment+=Es(e,Qp))),!0};function nO(t,e){let r=t.scheme+":";if(t.host!==null?(r+="//",(t.username!==""||t.password!=="")&&(r+=t.username,t.password!==""&&(r+=":"+t.password),r+="@"),r+=Iu(t.host),t.port!==null&&(r+=":"+t.port)):t.host===null&&t.scheme==="file"&&(r+="//"),t.cannotBeABaseURL)r+=t.path[0];else for(let i of t.path)r+="/"+i;return t.query!==null&&(r+="?"+t.query),!e&&t.fragment!==null&&(r+="#"+t.fragment),r}function aO(t){let e=t.scheme+"://";return e+=Iu(t.host),t.port!==null&&(e+=":"+t.port),e}Ni.exports.serializeURL=nO;Ni.exports.serializeURLOrigin=function(t){switch(t.scheme){case"blob":try{return Ni.exports.serializeURLOrigin(Ni.exports.parseURL(t.path[0]))}catch{return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return aO({scheme:t.scheme,host:t.host,port:t.port});case"file":return"file://";default:return"null"}};Ni.exports.basicURLParse=function(t,e){e===void 0&&(e={});let r=new wr(t,e.baseURL,e.encodingOverride,e.url,e.stateOverride);return r.failure?"failure":r.url};Ni.exports.setTheUsername=function(t,e){t.username="";let r=ho.ucs2.decode(e);for(let i=0;i<r.length;++i)t.username+=Es(r[i],xu)};Ni.exports.setThePassword=function(t,e){t.password="";let r=ho.ucs2.decode(e);for(let i=0;i<r.length;++i)t.password+=Es(r[i],xu)};Ni.exports.serializeHost=Iu;Ni.exports.cannotHaveAUsernamePasswordPort=tO;Ni.exports.serializeInteger=function(t){return String(t)};Ni.exports.parseURL=function(t,e){return e===void 0&&(e={}),Ni.exports.basicURLParse(t,{baseURL:e.baseURL,encodingOverride:e.encodingOverride})}});var j7=Ne(q7=>{"use strict";var Sr=Nn();q7.implementation=class{constructor(e){let r=e[0],i=e[1],n=null;if(i!==void 0&&(n=Sr.basicURLParse(i),n==="failure"))throw new TypeError("Invalid base URL");let a=Sr.basicURLParse(r,{baseURL:n});if(a==="failure")throw new TypeError("Invalid URL");this._url=a}get href(){return Sr.serializeURL(this._url)}set href(e){let r=Sr.basicURLParse(e);if(r==="failure")throw new TypeError("Invalid URL");this._url=r}get origin(){return Sr.serializeURLOrigin(this._url)}get protocol(){return this._url.scheme+":"}set protocol(e){Sr.basicURLParse(e+":",{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(e){Sr.cannotHaveAUsernamePasswordPort(this._url)||Sr.setTheUsername(this._url,e)}get password(){return this._url.password}set password(e){Sr.cannotHaveAUsernamePasswordPort(this._url)||Sr.setThePassword(this._url,e)}get host(){let e=this._url;return e.host===null?"":e.port===null?Sr.serializeHost(e.host):Sr.serializeHost(e.host)+":"+Sr.serializeInteger(e.port)}set host(e){this._url.cannotBeABaseURL||Sr.basicURLParse(e,{url:this._url,stateOverride:"host"})}get hostname(){return this._url.host===null?"":Sr.serializeHost(this._url.host)}set hostname(e){this._url.cannotBeABaseURL||Sr.basicURLParse(e,{url:this._url,stateOverride:"hostname"})}get port(){return this._url.port===null?"":Sr.serializeInteger(this._url.port)}set port(e){Sr.cannotHaveAUsernamePasswordPort(this._url)||(e===""?this._url.port=null:Sr.basicURLParse(e,{url:this._url,stateOverride:"port"}))}get pathname(){return this._url.cannotBeABaseURL?this._url.path[0]:this._url.path.length===0?"":"/"+this._url.path.join("/")}set pathname(e){this._url.cannotBeABaseURL||(this._url.path=[],Sr.basicURLParse(e,{url:this._url,stateOverride:"path start"}))}get search(){return this._url.query===null||this._url.query===""?"":"?"+this._url.query}set search(e){let r=this._url;if(e===""){r.query=null;return}let i=e[0]==="?"?e.substring(1):e;r.query="",Sr.basicURLParse(i,{url:r,stateOverride:"query"})}get hash(){return this._url.fragment===null||this._url.fragment===""?"":"#"+this._url.fragment}set hash(e){if(e===""){this._url.fragment=null;return}let r=e[0]==="#"?e.substring(1):e;this._url.fragment="",Sr.basicURLParse(r,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}});var Y7=Ne((YU,I1)=>{"use strict";var Fi=O7(),W7=N7(),K7=j7(),Kt=W7.implSymbol;function Mr(t){if(!this||this[Kt]||!(this instanceof Mr))throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");if(arguments.length<1)throw new TypeError("Failed to construct 'URL': 1 argument required, but only "+arguments.length+" present.");let e=[];for(let r=0;r<arguments.length&&r<2;++r)e[r]=arguments[r];e[0]=Fi.USVString(e[0]),e[1]!==void 0&&(e[1]=Fi.USVString(e[1])),I1.exports.setup(this,e)}Mr.prototype.toJSON=function(){if(!this||!I1.exports.is(this))throw new TypeError("Illegal invocation");let e=[];for(let r=0;r<arguments.length&&r<0;++r)e[r]=arguments[r];return this[Kt].toJSON.apply(this[Kt],e)};Object.defineProperty(Mr.prototype,"href",{get(){return this[Kt].href},set(t){t=Fi.USVString(t),this[Kt].href=t},enumerable:!0,configurable:!0});Mr.prototype.toString=function(){if(!this||!I1.exports.is(this))throw new TypeError("Illegal invocation");return this.href};Object.defineProperty(Mr.prototype,"origin",{get(){return this[Kt].origin},enumerable:!0,configurable:!0});Object.defineProperty(Mr.prototype,"protocol",{get(){return this[Kt].protocol},set(t){t=Fi.USVString(t),this[Kt].protocol=t},enumerable:!0,configurable:!0});Object.defineProperty(Mr.prototype,"username",{get(){return this[Kt].username},set(t){t=Fi.USVString(t),this[Kt].username=t},enumerable:!0,configurable:!0});Object.defineProperty(Mr.prototype,"password",{get(){return this[Kt].password},set(t){t=Fi.USVString(t),this[Kt].password=t},enumerable:!0,configurable:!0});Object.defineProperty(Mr.prototype,"host",{get(){return this[Kt].host},set(t){t=Fi.USVString(t),this[Kt].host=t},enumerable:!0,configurable:!0});Object.defineProperty(Mr.prototype,"hostname",{get(){return this[Kt].hostname},set(t){t=Fi.USVString(t),this[Kt].hostname=t},enumerable:!0,configurable:!0});Object.defineProperty(Mr.prototype,"port",{get(){return this[Kt].port},set(t){t=Fi.USVString(t),this[Kt].port=t},enumerable:!0,configurable:!0});Object.defineProperty(Mr.prototype,"pathname",{get(){return this[Kt].pathname},set(t){t=Fi.USVString(t),this[Kt].pathname=t},enumerable:!0,configurable:!0});Object.defineProperty(Mr.prototype,"search",{get(){return this[Kt].search},set(t){t=Fi.USVString(t),this[Kt].search=t},enumerable:!0,configurable:!0});Object.defineProperty(Mr.prototype,"hash",{get(){return this[Kt].hash},set(t){t=Fi.USVString(t),this[Kt].hash=t},enumerable:!0,configurable:!0});I1.exports={is(t){return!!t&&t[Kt]instanceof K7.implementation},create(t,e){let r=Object.create(Mr.prototype);return this.setup(r,t,e),r},setup(t,e,r){r||(r={}),r.wrapper=t,t[Kt]=new K7.implementation(e,r),t[Kt][W7.wrapperSymbol]=t},interface:Mr,expose:{Window:{URL:Mr},Worker:{URL:Mr}}}});var X7=Ne(Tn=>{"use strict";Tn.URL=Y7().interface;Tn.serializeURL=Nn().serializeURL;Tn.serializeURLOrigin=Nn().serializeURLOrigin;Tn.basicURLParse=Nn().basicURLParse;Tn.setTheUsername=Nn().setTheUsername;Tn.setThePassword=Nn().setThePassword;Tn.serializeHost=Nn().serializeHost;Tn.serializeInteger=Nn().serializeInteger;Tn.parseURL=Nn().parseURL});var d_=Ne((rn,o_)=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});function yo(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var tn=yo(Xe("stream")),e_=yo(Xe("http")),t0=yo(Xe("url")),t_=yo(X7()),sO=yo(Xe("https")),vs=yo(Xe("zlib")),oO=tn.Readable,Zn=Symbol("buffer"),Cu=Symbol("type"),L1=class t{constructor(){this[Cu]="";let e=arguments[0],r=arguments[1],i=[],n=0;if(e){let s=e,o=Number(s.length);for(let d=0;d<o;d++){let h=s[d],w;h instanceof Buffer?w=h:ArrayBuffer.isView(h)?w=Buffer.from(h.buffer,h.byteOffset,h.byteLength):h instanceof ArrayBuffer?w=Buffer.from(h):h instanceof t?w=h[Zn]:w=Buffer.from(typeof h=="string"?h:String(h)),n+=w.length,i.push(w)}}this[Zn]=Buffer.concat(i);let a=r&&r.type!==void 0&&String(r.type).toLowerCase();a&&!/[^\u0020-\u007E]/.test(a)&&(this[Cu]=a)}get size(){return this[Zn].length}get type(){return this[Cu]}text(){return Promise.resolve(this[Zn].toString())}arrayBuffer(){let e=this[Zn],r=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return Promise.resolve(r)}stream(){let e=new oO;return e._read=function(){},e.push(this[Zn]),e.push(null),e}toString(){return"[object Blob]"}slice(){let e=this.size,r=arguments[0],i=arguments[1],n,a;r===void 0?n=0:r<0?n=Math.max(e+r,0):n=Math.min(r,e),i===void 0?a=e:i<0?a=Math.max(e+i,0):a=Math.min(i,e);let s=Math.max(a-n,0),d=this[Zn].slice(n,n+s),h=new t([],{type:arguments[2]});return h[Zn]=d,h}};Object.defineProperties(L1.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}});Object.defineProperty(L1.prototype,Symbol.toStringTag,{value:"Blob",writable:!1,enumerable:!1,configurable:!0});function Xr(t,e,r){Error.call(this,t),this.message=t,this.type=e,r&&(this.code=this.errno=r.code),Error.captureStackTrace(this,this.constructor)}Xr.prototype=Object.create(Error.prototype);Xr.prototype.constructor=Xr;Xr.prototype.name="FetchError";var Bu;try{Bu=Xe("encoding").convert}catch{}var Qn=Symbol("Body internals"),Z7=tn.PassThrough;function Fr(t){var e=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.size;let n=i===void 0?0:i;var a=r.timeout;let s=a===void 0?0:a;t==null?t=null:r_(t)?t=Buffer.from(t.toString()):D1(t)||Buffer.isBuffer(t)||(Object.prototype.toString.call(t)==="[object ArrayBuffer]"?t=Buffer.from(t):ArrayBuffer.isView(t)?t=Buffer.from(t.buffer,t.byteOffset,t.byteLength):t instanceof tn||(t=Buffer.from(String(t)))),this[Qn]={body:t,disturbed:!1,error:null},this.size=n,this.timeout=s,t instanceof tn&&t.on("error",function(o){let d=o.name==="AbortError"?o:new Xr(`Invalid response body while trying to fetch ${e.url}: ${o.message}`,"system",o);e[Qn].error=d})}Fr.prototype={get body(){return this[Qn].body},get bodyUsed(){return this[Qn].disturbed},arrayBuffer(){return mo.call(this).then(function(t){return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)})},blob(){let t=this.headers&&this.headers.get("content-type")||"";return mo.call(this).then(function(e){return Object.assign(new L1([],{type:t.toLowerCase()}),{[Zn]:e})})},json(){var t=this;return mo.call(this).then(function(e){try{return JSON.parse(e.toString())}catch(r){return Fr.Promise.reject(new Xr(`invalid json response body at ${t.url} reason: ${r.message}`,"invalid-json"))}})},text(){return mo.call(this).then(function(t){return t.toString()})},buffer(){return mo.call(this)},textConverted(){var t=this;return mo.call(this).then(function(e){return dO(e,t.headers)})}};Object.defineProperties(Fr.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0}});Fr.mixIn=function(t){for(let e of Object.getOwnPropertyNames(Fr.prototype))if(!(e in t)){let r=Object.getOwnPropertyDescriptor(Fr.prototype,e);Object.defineProperty(t,e,r)}};function mo(){var t=this;if(this[Qn].disturbed)return Fr.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[Qn].disturbed=!0,this[Qn].error)return Fr.Promise.reject(this[Qn].error);let e=this.body;if(e===null)return Fr.Promise.resolve(Buffer.alloc(0));if(D1(e)&&(e=e.stream()),Buffer.isBuffer(e))return Fr.Promise.resolve(e);if(!(e instanceof tn))return Fr.Promise.resolve(Buffer.alloc(0));let r=[],i=0,n=!1;return new Fr.Promise(function(a,s){let o;t.timeout&&(o=setTimeout(function(){n=!0,s(new Xr(`Response timeout while trying to fetch ${t.url} (over ${t.timeout}ms)`,"body-timeout"))},t.timeout)),e.on("error",function(d){d.name==="AbortError"?(n=!0,s(d)):s(new Xr(`Invalid response body while trying to fetch ${t.url}: ${d.message}`,"system",d))}),e.on("data",function(d){if(!(n||d===null)){if(t.size&&i+d.length>t.size){n=!0,s(new Xr(`content size at ${t.url} over limit: ${t.size}`,"max-size"));return}i+=d.length,r.push(d)}}),e.on("end",function(){if(!n){clearTimeout(o);try{a(Buffer.concat(r,i))}catch(d){s(new Xr(`Could not create Buffer from response body for ${t.url}: ${d.message}`,"system",d))}}})})}function dO(t,e){if(typeof Bu!="function")throw new Error("The package `encoding` must be installed to use the textConverted() function");let r=e.get("content-type"),i="utf-8",n,a;return r&&(n=/charset=([^;]*)/i.exec(r)),a=t.slice(0,1024).toString(),!n&&a&&(n=/<meta.+?charset=(['"])(.+?)\1/i.exec(a)),!n&&a&&(n=/<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(a),n||(n=/<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(a),n&&n.pop()),n&&(n=/charset=(.*)/i.exec(n.pop()))),!n&&a&&(n=/<\?xml.+?encoding=(['"])(.+?)\1/i.exec(a)),n&&(i=n.pop(),(i==="gb2312"||i==="gbk")&&(i="gb18030")),Bu(t,"UTF-8",i).toString()}function r_(t){return typeof t!="object"||typeof t.append!="function"||typeof t.delete!="function"||typeof t.get!="function"||typeof t.getAll!="function"||typeof t.has!="function"||typeof t.set!="function"?!1:t.constructor.name==="URLSearchParams"||Object.prototype.toString.call(t)==="[object URLSearchParams]"||typeof t.sort=="function"}function D1(t){return typeof t=="object"&&typeof t.arrayBuffer=="function"&&typeof t.type=="string"&&typeof t.stream=="function"&&typeof t.constructor=="function"&&typeof t.constructor.name=="string"&&/^(Blob|File)$/.test(t.constructor.name)&&/^(Blob|File)$/.test(t[Symbol.toStringTag])}function i_(t){let e,r,i=t.body;if(t.bodyUsed)throw new Error("cannot clone body after it is used");return i instanceof tn&&typeof i.getBoundary!="function"&&(e=new Z7,r=new Z7,i.pipe(e),i.pipe(r),t[Qn].body=e,i=r),i}function n_(t){return t===null?null:typeof t=="string"?"text/plain;charset=UTF-8":r_(t)?"application/x-www-form-urlencoded;charset=UTF-8":D1(t)?t.type||null:Buffer.isBuffer(t)||Object.prototype.toString.call(t)==="[object ArrayBuffer]"||ArrayBuffer.isView(t)?null:typeof t.getBoundary=="function"?`multipart/form-data;boundary=${t.getBoundary()}`:t instanceof tn?null:"text/plain;charset=UTF-8"}function a_(t){let e=t.body;return e===null?0:D1(e)?e.size:Buffer.isBuffer(e)?e.length:e&&typeof e.getLengthSync=="function"&&(e._lengthRetrievers&&e._lengthRetrievers.length==0||e.hasKnownLength&&e.hasKnownLength())?e.getLengthSync():null}function pO(t,e){let r=e.body;r===null?t.end():D1(r)?r.stream().pipe(t):Buffer.isBuffer(r)?(t.write(r),t.end()):r.pipe(t)}Fr.Promise=global.Promise;var s_=/[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/,Pu=/[^\t\x20-\x7e\x80-\xff]/;function C1(t){if(t=`${t}`,s_.test(t)||t==="")throw new TypeError(`${t} is not a legal HTTP header name`)}function J7(t){if(t=`${t}`,Pu.test(t))throw new TypeError(`${t} is not a legal HTTP header value`)}function _o(t,e){e=e.toLowerCase();for(let r in t)if(r.toLowerCase()===e)return r}var Ar=Symbol("map"),$i=class t{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0;if(this[Ar]=Object.create(null),e instanceof t){let r=e.raw(),i=Object.keys(r);for(let n of i)for(let a of r[n])this.append(n,a);return}if(e!=null)if(typeof e=="object"){let r=e[Symbol.iterator];if(r!=null){if(typeof r!="function")throw new TypeError("Header pairs must be iterable");let i=[];for(let n of e){if(typeof n!="object"||typeof n[Symbol.iterator]!="function")throw new TypeError("Each header pair must be iterable");i.push(Array.from(n))}for(let n of i){if(n.length!==2)throw new TypeError("Each header pair must be a name/value tuple");this.append(n[0],n[1])}}else for(let i of Object.keys(e)){let n=e[i];this.append(i,n)}}else throw new TypeError("Provided initializer must be an object")}get(e){e=`${e}`,C1(e);let r=_o(this[Ar],e);return r===void 0?null:this[Ar][r].join(", ")}forEach(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,i=Uu(this),n=0;for(;n<i.length;){var a=i[n];let s=a[0],o=a[1];e.call(r,o,s,this),i=Uu(this),n++}}set(e,r){e=`${e}`,r=`${r}`,C1(e),J7(r);let i=_o(this[Ar],e);this[Ar][i!==void 0?i:e]=[r]}append(e,r){e=`${e}`,r=`${r}`,C1(e),J7(r);let i=_o(this[Ar],e);i!==void 0?this[Ar][i].push(r):this[Ar][e]=[r]}has(e){return e=`${e}`,C1(e),_o(this[Ar],e)!==void 0}delete(e){e=`${e}`,C1(e);let r=_o(this[Ar],e);r!==void 0&&delete this[Ar][r]}raw(){return this[Ar]}keys(){return Lu(this,"key")}values(){return Lu(this,"value")}[Symbol.iterator](){return Lu(this,"key+value")}};$i.prototype.entries=$i.prototype[Symbol.iterator];Object.defineProperty($i.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0});Object.defineProperties($i.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});function Uu(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key+value";return Object.keys(t[Ar]).sort().map(e==="key"?function(i){return i.toLowerCase()}:e==="value"?function(i){return t[Ar][i].join(", ")}:function(i){return[i.toLowerCase(),t[Ar][i].join(", ")]})}var Mu=Symbol("internal");function Lu(t,e){let r=Object.create(Fu);return r[Mu]={target:t,kind:e,index:0},r}var Fu=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==Fu)throw new TypeError("Value of `this` is not a HeadersIterator");var t=this[Mu];let e=t.target,r=t.kind,i=t.index,n=Uu(e,r),a=n.length;return i>=a?{value:void 0,done:!0}:(this[Mu].index=i+1,{value:n[i],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(Fu,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});function lO(t){let e=Object.assign({__proto__:null},t[Ar]),r=_o(t[Ar],"Host");return r!==void 0&&(e[r]=e[r][0]),e}function cO(t){let e=new $i;for(let r of Object.keys(t))if(!s_.test(r))if(Array.isArray(t[r]))for(let i of t[r])Pu.test(i)||(e[Ar][r]===void 0?e[Ar][r]=[i]:e[Ar][r].push(i));else Pu.test(t[r])||(e[Ar][r]=[t[r]]);return e}var Ba=Symbol("Response internals"),uO=e_.STATUS_CODES,Vi=class t{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Fr.call(this,e,r);let i=r.status||200,n=new $i(r.headers);if(e!=null&&!n.has("Content-Type")){let a=n_(e);a&&n.append("Content-Type",a)}this[Ba]={url:r.url,status:i,statusText:r.statusText||uO[i],headers:n,counter:r.counter}}get url(){return this[Ba].url||""}get status(){return this[Ba].status}get ok(){return this[Ba].status>=200&&this[Ba].status<300}get redirected(){return this[Ba].counter>0}get statusText(){return this[Ba].statusText}get headers(){return this[Ba].headers}clone(){return new t(i_(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}};Fr.mixIn(Vi.prototype);Object.defineProperties(Vi.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}});Object.defineProperty(Vi.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});var Jn=Symbol("Request internals"),fO=t0.URL||t_.URL,hO=t0.parse,mO=t0.format;function ku(t){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(t)&&(t=new fO(t).toString()),hO(t)}var _O="destroy"in tn.Readable.prototype;function e0(t){return typeof t=="object"&&typeof t[Jn]=="object"}function gO(t){let e=t&&typeof t=="object"&&Object.getPrototypeOf(t);return!!(e&&e.constructor.name==="AbortSignal")}var Ua=class t{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i;e0(e)?i=ku(e.url):(e&&e.href?i=ku(e.href):i=ku(`${e}`),e={});let n=r.method||e.method||"GET";if(n=n.toUpperCase(),(r.body!=null||e0(e)&&e.body!==null)&&(n==="GET"||n==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body");let a=r.body!=null?r.body:e0(e)&&e.body!==null?i_(e):null;Fr.call(this,a,{timeout:r.timeout||e.timeout||0,size:r.size||e.size||0});let s=new $i(r.headers||e.headers||{});if(a!=null&&!s.has("Content-Type")){let d=n_(a);d&&s.append("Content-Type",d)}let o=e0(e)?e.signal:null;if("signal"in r&&(o=r.signal),o!=null&&!gO(o))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[Jn]={method:n,redirect:r.redirect||e.redirect||"follow",headers:s,parsedURL:i,signal:o},this.follow=r.follow!==void 0?r.follow:e.follow!==void 0?e.follow:20,this.compress=r.compress!==void 0?r.compress:e.compress!==void 0?e.compress:!0,this.counter=r.counter||e.counter||0,this.agent=r.agent||e.agent}get method(){return this[Jn].method}get url(){return mO(this[Jn].parsedURL)}get headers(){return this[Jn].headers}get redirect(){return this[Jn].redirect}get signal(){return this[Jn].signal}clone(){return new t(this)}};Fr.mixIn(Ua.prototype);Object.defineProperty(Ua.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0});Object.defineProperties(Ua.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}});function yO(t){let e=t[Jn].parsedURL,r=new $i(t[Jn].headers);if(r.has("Accept")||r.set("Accept","*/*"),!e.protocol||!e.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(e.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(t.signal&&t.body instanceof tn.Readable&&!_O)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let i=null;if(t.body==null&&/^(POST|PUT)$/i.test(t.method)&&(i="0"),t.body!=null){let a=a_(t);typeof a=="number"&&(i=String(a))}i&&r.set("Content-Length",i),r.has("User-Agent")||r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),t.compress&&!r.has("Accept-Encoding")&&r.set("Accept-Encoding","gzip,deflate");let n=t.agent;return typeof n=="function"&&(n=n(e)),Object.assign({},e,{method:t.method,headers:lO(r),agent:n})}function go(t){Error.call(this,t),this.type="aborted",this.message=t,Error.captureStackTrace(this,this.constructor)}go.prototype=Object.create(Error.prototype);go.prototype.constructor=go;go.prototype.name="AbortError";var k1=t0.URL||t_.URL,Q7=tn.PassThrough,EO=function(e,r){let i=new k1(r).hostname,n=new k1(e).hostname;return i===n||i[i.length-n.length-1]==="."&&i.endsWith(n)},vO=function(e,r){let i=new k1(r).protocol,n=new k1(e).protocol;return i===n};function Pa(t,e){if(!Pa.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return Fr.Promise=Pa.Promise,new Pa.Promise(function(r,i){let n=new Ua(t,e),a=yO(n),s=(a.protocol==="https:"?sO:e_).request,o=n.signal,d=null,h=function(){let F=new go("The user aborted a request.");i(F),n.body&&n.body instanceof tn.Readable&&Du(n.body,F),!(!d||!d.body)&&d.body.emit("error",F)};if(o&&o.aborted){h();return}let w=function(){h(),I()},A=s(a),D;o&&o.addEventListener("abort",w);function I(){A.abort(),o&&o.removeEventListener("abort",w),clearTimeout(D)}n.timeout&&A.once("socket",function(R){D=setTimeout(function(){i(new Xr(`network timeout at: ${n.url}`,"request-timeout")),I()},n.timeout)}),A.on("error",function(R){i(new Xr(`request to ${n.url} failed, reason: ${R.message}`,"system",R)),d&&d.body&&Du(d.body,R),I()}),wO(A,function(R){o&&o.aborted||d&&d.body&&Du(d.body,R)}),parseInt(process.version.substring(1))<14&&A.on("socket",function(R){R.addListener("close",function(F){let $=R.listenerCount("data")>0;if(d&&$&&!F&&!(o&&o.aborted)){let H=new Error("Premature close");H.code="ERR_STREAM_PREMATURE_CLOSE",d.body.emit("error",H)}})}),A.on("response",function(R){clearTimeout(D);let F=cO(R.headers);if(Pa.isRedirect(R.statusCode)){let W=F.get("Location"),se=null;try{se=W===null?null:new k1(W,n.url).toString()}catch{if(n.redirect!=="manual"){i(new Xr(`uri requested responds with an invalid redirect URL: ${W}`,"invalid-redirect")),I();return}}switch(n.redirect){case"error":i(new Xr(`uri requested responds with a redirect, redirect mode is set to error: ${n.url}`,"no-redirect")),I();return;case"manual":if(se!==null)try{F.set("Location",se)}catch(O){i(O)}break;case"follow":if(se===null)break;if(n.counter>=n.follow){i(new Xr(`maximum redirect reached at: ${n.url}`,"max-redirect")),I();return}let N={headers:new $i(n.headers),follow:n.follow,counter:n.counter+1,agent:n.agent,compress:n.compress,method:n.method,body:n.body,signal:n.signal,timeout:n.timeout,size:n.size};if(!EO(n.url,se)||!vO(n.url,se))for(let O of["authorization","www-authenticate","cookie","cookie2"])N.headers.delete(O);if(R.statusCode!==303&&n.body&&a_(n)===null){i(new Xr("Cannot follow redirect with body being a readable stream","unsupported-redirect")),I();return}(R.statusCode===303||(R.statusCode===301||R.statusCode===302)&&n.method==="POST")&&(N.method="GET",N.body=void 0,N.headers.delete("content-length")),r(Pa(new Ua(se,N))),I();return}}R.once("end",function(){o&&o.removeEventListener("abort",w)});let $=R.pipe(new Q7),H={url:n.url,status:R.statusCode,statusText:R.statusMessage,headers:F,size:n.size,timeout:n.timeout,counter:n.counter},L=F.get("Content-Encoding");if(!n.compress||n.method==="HEAD"||L===null||R.statusCode===204||R.statusCode===304){d=new Vi($,H),r(d);return}let q={flush:vs.Z_SYNC_FLUSH,finishFlush:vs.Z_SYNC_FLUSH};if(L=="gzip"||L=="x-gzip"){$=$.pipe(vs.createGunzip(q)),d=new Vi($,H),r(d);return}if(L=="deflate"||L=="x-deflate"){let W=R.pipe(new Q7);W.once("data",function(se){(se[0]&15)===8?$=$.pipe(vs.createInflate()):$=$.pipe(vs.createInflateRaw()),d=new Vi($,H),r(d)}),W.on("end",function(){d||(d=new Vi($,H),r(d))});return}if(L=="br"&&typeof vs.createBrotliDecompress=="function"){$=$.pipe(vs.createBrotliDecompress()),d=new Vi($,H),r(d);return}d=new Vi($,H),r(d)}),pO(A,n)})}function wO(t,e){let r;t.on("socket",function(i){r=i}),t.on("response",function(i){let n=i.headers;n["transfer-encoding"]==="chunked"&&!n["content-length"]&&i.once("close",function(a){if(r&&r.listenerCount("data")>0&&!a){let o=new Error("Premature close");o.code="ERR_STREAM_PREMATURE_CLOSE",e(o)}})})}function Du(t,e){t.destroy?t.destroy(e):(t.emit("error",e),t.end())}Pa.isRedirect=function(t){return t===301||t===302||t===303||t===307||t===308};Pa.Promise=global.Promise;o_.exports=rn=Pa;Object.defineProperty(rn,"__esModule",{value:!0});rn.default=rn;rn.Headers=$i;rn.Request=Ua;rn.Response=Vi;rn.FetchError=Xr;rn.AbortError=go});var ea=Ne((ZU,c_)=>{"use strict";var p_=["nodebuffer","arraybuffer","fragments"],l_=typeof Blob<"u";l_&&p_.push("blob");c_.exports={BINARY_TYPES:p_,CLOSE_TIMEOUT:3e4,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:l_,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}});var B1=Ne((JU,Eo)=>{"use strict";var{websocketMask:u_,websocketUnmask:SO}=Xe("http"),{EMPTY_BUFFER:RO}=ea(),Vu=Buffer[Symbol.species];function bO(t,e){if(t.length===0)return RO;if(t.length===1)return t[0];let r=Buffer.allocUnsafe(e),i=0;for(let n=0;n<t.length;n++){let a=t[n];r.set(a,i),i+=a.length}return i<e?new Vu(r.buffer,r.byteOffset,i):r}function $u(t,e,r,i,n){for(let a=0;a<n;a++)r[i+a]=t[a]^e[a&3]}function zu(t,e){for(let r=0;r<t.length;r++)t[r]^=e[r&3]}function AO(t){return t.length===t.buffer.byteLength?t.buffer:t.buffer.slice(t.byteOffset,t.byteOffset+t.length)}function Hu(t){if(Hu.readOnly=!0,Buffer.isBuffer(t))return t;let e;return t instanceof ArrayBuffer?e=new Vu(t):ArrayBuffer.isView(t)?e=new Vu(t.buffer,t.byteOffset,t.byteLength):(e=Buffer.from(t),Hu.readOnly=!1),e}Eo.exports={concat:bO,mask:$u,toArrayBuffer:AO,toBuffer:Hu,unmask:zu};if(u_)Eo.exports.mask=function(t,e,r,i,n){n<24?$u(t,e,r,i,n):u_(t,e,r,i,n)},Eo.exports.unmask=function(t,e){t.length<24?zu(t,e):SO(t,e)};else if(!process.env.WS_NO_BUFFER_UTIL)try{let t=Xe("bufferutil");Eo.exports.mask=function(e,r,i,n,a){a<48?$u(e,r,i,n,a):t.mask(e,r,i,n,a)},Eo.exports.unmask=function(e,r){e.length<32?zu(e,r):t.unmask(e,r)}}catch{}});var m_=Ne((QU,h_)=>{"use strict";var f_=Symbol("kDone"),Gu=Symbol("kRun"),qu=class{constructor(e){this[f_]=()=>{this.pending--,this[Gu]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[Gu]()}[Gu](){if(this.pending!==this.concurrency&&this.jobs.length){let e=this.jobs.shift();this.pending++,e(this[f_])}}};h_.exports=qu});var ws=Ne((eM,E_)=>{"use strict";var P1=Xe("zlib"),__=B1(),OO=m_(),{kStatusCode:g_}=ea(),NO=Buffer[Symbol.species],TO=Buffer.from([0,0,255,255]),i0=Symbol("permessage-deflate"),ta=Symbol("total-length"),vo=Symbol("callback"),Ma=Symbol("buffers"),wo=Symbol("error"),r0,ju=class{constructor(e){if(this._options=e||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._maxPayload=this._options.maxPayload|0,this._isServer=!!this._options.isServer,this._deflate=null,this._inflate=null,this.params=null,!r0){let r=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;r0=new OO(r)}}static get extensionName(){return"permessage-deflate"}offer(){let e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits==null&&(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){let e=this._deflate[vo];this._deflate.close(),this._deflate=null,e&&e(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){let r=this._options,i=e.find(n=>!(r.serverNoContextTakeover===!1&&n.server_no_context_takeover||n.server_max_window_bits&&(r.serverMaxWindowBits===!1||typeof r.serverMaxWindowBits=="number"&&r.serverMaxWindowBits>n.server_max_window_bits)||typeof r.clientMaxWindowBits=="number"&&(typeof n.client_max_window_bits=="number"?r.clientMaxWindowBits>n.client_max_window_bits:!n.client_max_window_bits)));if(!i)throw new Error("None of the extension offers can be accepted");return r.serverNoContextTakeover&&(i.server_no_context_takeover=!0),r.clientNoContextTakeover&&(i.client_no_context_takeover=!0),typeof r.serverMaxWindowBits=="number"&&(i.server_max_window_bits=r.serverMaxWindowBits),typeof r.clientMaxWindowBits=="number"?i.client_max_window_bits=r.clientMaxWindowBits:(i.client_max_window_bits===!0||r.clientMaxWindowBits===!1)&&delete i.client_max_window_bits,i}acceptAsClient(e){let r=e[0];if(this._options.clientNoContextTakeover===!1&&r.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(!r.client_max_window_bits)typeof this._options.clientMaxWindowBits=="number"&&(r.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits=="number"&&r.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"');return r}normalizeParams(e){return e.forEach(r=>{Object.keys(r).forEach(i=>{let n=r[i];if(n.length>1)throw new Error(`Parameter "${i}" must have only a single value`);if(n=n[0],i==="client_max_window_bits"){if(n!==!0){let a=+n;if(!Number.isInteger(a)||a<8||a>15)throw new TypeError(`Invalid value for parameter "${i}": ${n}`);n=a}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${i}": ${n}`)}else if(i==="server_max_window_bits"){let a=+n;if(!Number.isInteger(a)||a<8||a>15)throw new TypeError(`Invalid value for parameter "${i}": ${n}`);n=a}else if(i==="client_no_context_takeover"||i==="server_no_context_takeover"){if(n!==!0)throw new TypeError(`Invalid value for parameter "${i}": ${n}`)}else throw new Error(`Unknown parameter "${i}"`);r[i]=n})}),e}decompress(e,r,i){r0.add(n=>{this._decompress(e,r,(a,s)=>{n(),i(a,s)})})}compress(e,r,i){r0.add(n=>{this._compress(e,r,(a,s)=>{n(),i(a,s)})})}_decompress(e,r,i){let n=this._isServer?"client":"server";if(!this._inflate){let a=`${n}_max_window_bits`,s=typeof this.params[a]!="number"?P1.Z_DEFAULT_WINDOWBITS:this.params[a];this._inflate=P1.createInflateRaw({...this._options.zlibInflateOptions,windowBits:s}),this._inflate[i0]=this,this._inflate[ta]=0,this._inflate[Ma]=[],this._inflate.on("error",IO),this._inflate.on("data",y_)}this._inflate[vo]=i,this._inflate.write(e),r&&this._inflate.write(TO),this._inflate.flush(()=>{let a=this._inflate[wo];if(a){this._inflate.close(),this._inflate=null,i(a);return}let s=__.concat(this._inflate[Ma],this._inflate[ta]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[ta]=0,this._inflate[Ma]=[],r&&this.params[`${n}_no_context_takeover`]&&this._inflate.reset()),i(null,s)})}_compress(e,r,i){let n=this._isServer?"server":"client";if(!this._deflate){let a=`${n}_max_window_bits`,s=typeof this.params[a]!="number"?P1.Z_DEFAULT_WINDOWBITS:this.params[a];this._deflate=P1.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:s}),this._deflate[ta]=0,this._deflate[Ma]=[],this._deflate.on("data",xO)}this._deflate[vo]=i,this._deflate.write(e),this._deflate.flush(P1.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let a=__.concat(this._deflate[Ma],this._deflate[ta]);r&&(a=new NO(a.buffer,a.byteOffset,a.length-4)),this._deflate[vo]=null,this._deflate[ta]=0,this._deflate[Ma]=[],r&&this.params[`${n}_no_context_takeover`]&&this._deflate.reset(),i(null,a)})}};E_.exports=ju;function xO(t){this[Ma].push(t),this[ta]+=t.length}function y_(t){if(this[ta]+=t.length,this[i0]._maxPayload<1||this[ta]<=this[i0]._maxPayload){this[Ma].push(t);return}this[wo]=new RangeError("Max payload size exceeded"),this[wo].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[wo][g_]=1009,this.removeListener("data",y_),this.reset()}function IO(t){if(this[i0]._inflate=null,this[wo]){this[vo](this[wo]);return}t[g_]=1007,this[vo](t)}});var So=Ne((tM,n0)=>{"use strict";var{isUtf8:v_}=Xe("buffer"),{hasBlob:CO}=ea(),LO=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function kO(t){return t>=1e3&&t<=1014&&t!==1004&&t!==1005&&t!==1006||t>=3e3&&t<=4999}function Ku(t){let e=t.length,r=0;for(;r<e;)if((t[r]&128)===0)r++;else if((t[r]&224)===192){if(r+1===e||(t[r+1]&192)!==128||(t[r]&254)===192)return!1;r+=2}else if((t[r]&240)===224){if(r+2>=e||(t[r+1]&192)!==128||(t[r+2]&192)!==128||t[r]===224&&(t[r+1]&224)===128||t[r]===237&&(t[r+1]&224)===160)return!1;r+=3}else if((t[r]&248)===240){if(r+3>=e||(t[r+1]&192)!==128||(t[r+2]&192)!==128||(t[r+3]&192)!==128||t[r]===240&&(t[r+1]&240)===128||t[r]===244&&t[r+1]>143||t[r]>244)return!1;r+=4}else return!1;return!0}function DO(t){return CO&&typeof t=="object"&&typeof t.arrayBuffer=="function"&&typeof t.type=="string"&&typeof t.stream=="function"&&(t[Symbol.toStringTag]==="Blob"||t[Symbol.toStringTag]==="File")}n0.exports={isBlob:DO,isValidStatusCode:kO,isValidUTF8:Ku,tokenChars:LO};if(v_)n0.exports.isValidUTF8=function(t){return t.length<24?Ku(t):v_(t)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let t=Xe("utf-8-validate");n0.exports.isValidUTF8=function(e){return e.length<32?Ku(e):t(e)}}catch{}});var o0=Ne((rM,N_)=>{"use strict";var{Writable:BO}=Xe("stream"),w_=ws(),{BINARY_TYPES:PO,EMPTY_BUFFER:S_,kStatusCode:UO,kWebSocket:MO}=ea(),{concat:Wu,toArrayBuffer:FO,unmask:VO}=B1(),{isValidStatusCode:$O,isValidUTF8:R_}=So(),a0=Buffer[Symbol.species],zi=0,b_=1,A_=2,O_=3,Yu=4,Xu=5,s0=6,Zu=class extends BO{constructor(e={}){super(),this._allowSynchronousEvents=e.allowSynchronousEvents!==void 0?e.allowSynchronousEvents:!0,this._binaryType=e.binaryType||PO[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxBufferedChunks=e.maxBufferedChunks|0,this._maxFragments=e.maxFragments|0,this._maxPayload=e.maxPayload|0,this._skipUTF8Validation=!!e.skipUTF8Validation,this[MO]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._numFragments=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=zi}_write(e,r,i){if(this._opcode===8&&this._state==zi)return i();if(this._maxBufferedChunks>0&&this._buffers.length>=this._maxBufferedChunks){i(this.createError(RangeError,"Too many buffered chunks",!1,1008,"WS_ERR_TOO_MANY_BUFFERED_PARTS"));return}this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(i)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){let i=this._buffers[0];return this._buffers[0]=new a0(i.buffer,i.byteOffset+e,i.length-e),new a0(i.buffer,i.byteOffset,e)}let r=Buffer.allocUnsafe(e);do{let i=this._buffers[0],n=r.length-e;e>=i.length?r.set(this._buffers.shift(),n):(r.set(new Uint8Array(i.buffer,i.byteOffset,e),n),this._buffers[0]=new a0(i.buffer,i.byteOffset+e,i.length-e)),e-=i.length}while(e>0);return r}startLoop(e){this._loop=!0;do switch(this._state){case zi:this.getInfo(e);break;case b_:this.getPayloadLength16(e);break;case A_:this.getPayloadLength64(e);break;case O_:this.getMask();break;case Yu:this.getData(e);break;case Xu:case s0:this._loop=!1;return}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2){this._loop=!1;return}let r=this.consume(2);if((r[0]&48)!==0){let n=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");e(n);return}let i=(r[0]&64)===64;if(i&&!this._extensions[w_.extensionName]){let n=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(n);return}if(this._fin=(r[0]&128)===128,this._opcode=r[0]&15,this._payloadLength=r[1]&127,this._opcode===0){if(i){let n=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(n);return}if(!this._fragmented){let n=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");e(n);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let n=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(n);return}this._compressed=i}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let n=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");e(n);return}if(i){let n=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(n);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let n=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");e(n);return}}else{let n=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(n);return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(r[1]&128)===128,this._isServer){if(!this._masked){let n=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");e(n);return}}else if(this._masked){let n=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");e(n);return}this._payloadLength===126?this._state=b_:this._payloadLength===127?this._state=A_:this.haveLength(e)}getPayloadLength16(e){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e)}getPayloadLength64(e){if(this._bufferedBytes<8){this._loop=!1;return}let r=this.consume(8),i=r.readUInt32BE(0);if(i>Math.pow(2,21)-1){let n=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");e(n);return}this._payloadLength=i*Math.pow(2,32)+r.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){let r=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");e(r);return}this._masked?this._state=O_:this._state=Yu}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=Yu}getData(e){let r=S_;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}r=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0&&VO(r,this._mask)}if(this._opcode>7){this.controlMessage(r,e);return}if(this._maxFragments>0&&++this._numFragments>this._maxFragments){let i=this.createError(RangeError,"Too many message fragments",!1,1008,"WS_ERR_TOO_MANY_BUFFERED_PARTS");e(i);return}if(this._compressed){this._state=Xu,this.decompress(r,e);return}r.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(r)),this.dataMessage(e)}decompress(e,r){this._extensions[w_.extensionName].decompress(e,this._fin,(n,a)=>{if(n)return r(n);if(a.length){if(this._messageLength+=a.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let s=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");r(s);return}this._fragments.push(a)}this.dataMessage(r),this._state===zi&&this.startLoop(r)})}dataMessage(e){if(!this._fin){this._state=zi;return}let r=this._messageLength,i=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._numFragments=0,this._fragments=[],this._opcode===2){let n;this._binaryType==="nodebuffer"?n=Wu(i,r):this._binaryType==="arraybuffer"?n=FO(Wu(i,r)):this._binaryType==="blob"?n=new Blob(i):n=i,this._allowSynchronousEvents?(this.emit("message",n,!0),this._state=zi):(this._state=s0,setImmediate(()=>{this.emit("message",n,!0),this._state=zi,this.startLoop(e)}))}else{let n=Wu(i,r);if(!this._skipUTF8Validation&&!R_(n)){let a=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");e(a);return}this._state===Xu||this._allowSynchronousEvents?(this.emit("message",n,!1),this._state=zi):(this._state=s0,setImmediate(()=>{this.emit("message",n,!1),this._state=zi,this.startLoop(e)}))}}controlMessage(e,r){if(this._opcode===8){if(e.length===0)this._loop=!1,this.emit("conclude",1005,S_),this.end();else{let i=e.readUInt16BE(0);if(!$O(i)){let a=this.createError(RangeError,`invalid status code ${i}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");r(a);return}let n=new a0(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!R_(n)){let a=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");r(a);return}this._loop=!1,this.emit("conclude",i,n),this.end()}this._state=zi;return}this._allowSynchronousEvents?(this.emit(this._opcode===9?"ping":"pong",e),this._state=zi):(this._state=s0,setImmediate(()=>{this.emit(this._opcode===9?"ping":"pong",e),this._state=zi,this.startLoop(r)}))}createError(e,r,i,n,a){this._loop=!1,this._errored=!0;let s=new e(i?`Invalid WebSocket frame: ${r}`:r);return Error.captureStackTrace(s,this.createError),s.code=a,s[UO]=n,s}};N_.exports=Zu});var p0=Ne((nM,I_)=>{"use strict";var{Duplex:iM}=Xe("stream"),{randomFillSync:zO}=Xe("crypto"),{types:{isUint8Array:HO}}=Xe("util"),T_=ws(),{EMPTY_BUFFER:GO,kWebSocket:qO,NOOP:jO}=ea(),{isBlob:Ro,isValidStatusCode:KO}=So(),{mask:x_,toBuffer:Ss}=B1(),Hi=Symbol("kByteLength"),WO=Buffer.alloc(4),d0=8*1024,Rs,bo=d0,nn=0,YO=1,XO=2,Ju=class t{constructor(e,r,i){this._extensions=r||{},i&&(this._generateMask=i,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=nn,this.onerror=jO,this[qO]=void 0}static frame(e,r){let i,n=!1,a=2,s=!1;r.mask&&(i=r.maskBuffer||WO,r.generateMask?r.generateMask(i):(bo===d0&&(Rs===void 0&&(Rs=Buffer.alloc(d0)),zO(Rs,0,d0),bo=0),i[0]=Rs[bo++],i[1]=Rs[bo++],i[2]=Rs[bo++],i[3]=Rs[bo++]),s=(i[0]|i[1]|i[2]|i[3])===0,a=6);let o;typeof e=="string"?(!r.mask||s)&&r[Hi]!==void 0?o=r[Hi]:(e=Buffer.from(e),o=e.length):(o=e.length,n=r.mask&&r.readOnly&&!s);let d=o;o>=65536?(a+=8,d=127):o>125&&(a+=2,d=126);let h=Buffer.allocUnsafe(n?o+a:a);return h[0]=r.fin?r.opcode|128:r.opcode,r.rsv1&&(h[0]|=64),h[1]=d,d===126?h.writeUInt16BE(o,2):d===127&&(h[2]=h[3]=0,h.writeUIntBE(o,4,6)),r.mask?(h[1]|=128,h[a-4]=i[0],h[a-3]=i[1],h[a-2]=i[2],h[a-1]=i[3],o?s?[h,e]:n?(x_(e,i,h,a,o),[h]):(x_(e,i,e,0,o),[h,e]):[h]):o?[h,e]:[h]}close(e,r,i,n){let a;if(e===void 0)a=GO;else{if(typeof e!="number"||!KO(e))throw new TypeError("First argument must be a valid error code number");if(r===void 0||!r.length)a=Buffer.allocUnsafe(2),a.writeUInt16BE(e,0);else{let o=Buffer.byteLength(r);if(o>123)throw new RangeError("The message must not be greater than 123 bytes");if(a=Buffer.allocUnsafe(2+o),a.writeUInt16BE(e,0),typeof r=="string")a.write(r,2);else if(HO(r))a.set(r,2);else throw new TypeError("Second argument must be a string or a Uint8Array")}}let s={[Hi]:a.length,fin:!0,generateMask:this._generateMask,mask:i,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._state!==nn?this.enqueue([this.dispatch,a,!1,s,n]):this.sendFrame(t.frame(a,s),n)}ping(e,r,i){let n,a;if(typeof e=="string"?(n=Buffer.byteLength(e),a=!1):Ro(e)?(n=e.size,a=!1):(e=Ss(e),n=e.length,a=Ss.readOnly),n>125)throw new RangeError("The data size must not be greater than 125 bytes");let s={[Hi]:n,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:9,readOnly:a,rsv1:!1};Ro(e)?this._state!==nn?this.enqueue([this.getBlobData,e,!1,s,i]):this.getBlobData(e,!1,s,i):this._state!==nn?this.enqueue([this.dispatch,e,!1,s,i]):this.sendFrame(t.frame(e,s),i)}pong(e,r,i){let n,a;if(typeof e=="string"?(n=Buffer.byteLength(e),a=!1):Ro(e)?(n=e.size,a=!1):(e=Ss(e),n=e.length,a=Ss.readOnly),n>125)throw new RangeError("The data size must not be greater than 125 bytes");let s={[Hi]:n,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:10,readOnly:a,rsv1:!1};Ro(e)?this._state!==nn?this.enqueue([this.getBlobData,e,!1,s,i]):this.getBlobData(e,!1,s,i):this._state!==nn?this.enqueue([this.dispatch,e,!1,s,i]):this.sendFrame(t.frame(e,s),i)}send(e,r,i){let n=this._extensions[T_.extensionName],a=r.binary?2:1,s=r.compress,o,d;typeof e=="string"?(o=Buffer.byteLength(e),d=!1):Ro(e)?(o=e.size,d=!1):(e=Ss(e),o=e.length,d=Ss.readOnly),this._firstFragment?(this._firstFragment=!1,s&&n&&n.params[n._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(s=o>=n._threshold),this._compress=s):(s=!1,a=0),r.fin&&(this._firstFragment=!0);let h={[Hi]:o,fin:r.fin,generateMask:this._generateMask,mask:r.mask,maskBuffer:this._maskBuffer,opcode:a,readOnly:d,rsv1:s};Ro(e)?this._state!==nn?this.enqueue([this.getBlobData,e,this._compress,h,i]):this.getBlobData(e,this._compress,h,i):this._state!==nn?this.enqueue([this.dispatch,e,this._compress,h,i]):this.dispatch(e,this._compress,h,i)}getBlobData(e,r,i,n){this._bufferedBytes+=i[Hi],this._state=XO,e.arrayBuffer().then(a=>{if(this._socket.destroyed){let o=new Error("The socket was closed while the blob was being read");process.nextTick(Qu,this,o,n);return}this._bufferedBytes-=i[Hi];let s=Ss(a);r?this.dispatch(s,r,i,n):(this._state=nn,this.sendFrame(t.frame(s,i),n),this.dequeue())}).catch(a=>{process.nextTick(ZO,this,a,n)})}dispatch(e,r,i,n){if(!r){this.sendFrame(t.frame(e,i),n);return}let a=this._extensions[T_.extensionName];this._bufferedBytes+=i[Hi],this._state=YO,a.compress(e,i.fin,(s,o)=>{if(this._socket.destroyed){let d=new Error("The socket was closed while data was being compressed");Qu(this,d,n);return}this._bufferedBytes-=i[Hi],this._state=nn,i.readOnly=!1,this.sendFrame(t.frame(o,i),n),this.dequeue()})}dequeue(){for(;this._state===nn&&this._queue.length;){let e=this._queue.shift();this._bufferedBytes-=e[3][Hi],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][Hi],this._queue.push(e)}sendFrame(e,r){e.length===2?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],r),this._socket.uncork()):this._socket.write(e[0],r)}};I_.exports=Ju;function Qu(t,e,r){typeof r=="function"&&r(e);for(let i=0;i<t._queue.length;i++){let n=t._queue[i],a=n[n.length-1];typeof a=="function"&&a(e)}}function ZO(t,e,r){Qu(t,e,r),t.onerror(e)}});var F_=Ne((aM,M_)=>{"use strict";var{kForOnEventAttribute:U1,kListener:e2}=ea(),C_=Symbol("kCode"),L_=Symbol("kData"),k_=Symbol("kError"),D_=Symbol("kMessage"),B_=Symbol("kReason"),Ao=Symbol("kTarget"),P_=Symbol("kType"),U_=Symbol("kWasClean"),ra=class{constructor(e){this[Ao]=null,this[P_]=e}get target(){return this[Ao]}get type(){return this[P_]}};Object.defineProperty(ra.prototype,"target",{enumerable:!0});Object.defineProperty(ra.prototype,"type",{enumerable:!0});var bs=class extends ra{constructor(e,r={}){super(e),this[C_]=r.code===void 0?0:r.code,this[B_]=r.reason===void 0?"":r.reason,this[U_]=r.wasClean===void 0?!1:r.wasClean}get code(){return this[C_]}get reason(){return this[B_]}get wasClean(){return this[U_]}};Object.defineProperty(bs.prototype,"code",{enumerable:!0});Object.defineProperty(bs.prototype,"reason",{enumerable:!0});Object.defineProperty(bs.prototype,"wasClean",{enumerable:!0});var Oo=class extends ra{constructor(e,r={}){super(e),this[k_]=r.error===void 0?null:r.error,this[D_]=r.message===void 0?"":r.message}get error(){return this[k_]}get message(){return this[D_]}};Object.defineProperty(Oo.prototype,"error",{enumerable:!0});Object.defineProperty(Oo.prototype,"message",{enumerable:!0});var M1=class extends ra{constructor(e,r={}){super(e),this[L_]=r.data===void 0?null:r.data}get data(){return this[L_]}};Object.defineProperty(M1.prototype,"data",{enumerable:!0});var JO={addEventListener(t,e,r={}){for(let n of this.listeners(t))if(!r[U1]&&n[e2]===e&&!n[U1])return;let i;if(t==="message")i=function(a,s){let o=new M1("message",{data:s?a:a.toString()});o[Ao]=this,l0(e,this,o)};else if(t==="close")i=function(a,s){let o=new bs("close",{code:a,reason:s.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});o[Ao]=this,l0(e,this,o)};else if(t==="error")i=function(a){let s=new Oo("error",{error:a,message:a.message});s[Ao]=this,l0(e,this,s)};else if(t==="open")i=function(){let a=new ra("open");a[Ao]=this,l0(e,this,a)};else return;i[U1]=!!r[U1],i[e2]=e,r.once?this.once(t,i):this.on(t,i)},removeEventListener(t,e){for(let r of this.listeners(t))if(r[e2]===e&&!r[U1]){this.removeListener(t,r);break}}};M_.exports={CloseEvent:bs,ErrorEvent:Oo,Event:ra,EventTarget:JO,MessageEvent:M1};function l0(t,e,r){typeof t=="object"&&t.handleEvent?t.handleEvent.call(t,r):t.call(e,r)}});var V1=Ne((sM,V_)=>{"use strict";var{tokenChars:F1}=So();function xn(t,e,r){t[e]===void 0?t[e]=[r]:t[e].push(r)}function QO(t){let e=Object.create(null),r=Object.create(null),i=!1,n=!1,a=!1,s,o,d=-1,h=-1,w=-1,A=0;for(;A<t.length;A++)if(h=t.charCodeAt(A),s===void 0)if(w===-1&&F1[h]===1)d===-1&&(d=A);else if(A!==0&&(h===32||h===9))w===-1&&d!==-1&&(w=A);else if(h===59||h===44){if(d===-1)throw new SyntaxError(`Unexpected character at index ${A}`);w===-1&&(w=A);let I=t.slice(d,w);h===44?(xn(e,I,r),r=Object.create(null)):s=I,d=w=-1}else throw new SyntaxError(`Unexpected character at index ${A}`);else if(o===void 0)if(w===-1&&F1[h]===1)d===-1&&(d=A);else if(h===32||h===9)w===-1&&d!==-1&&(w=A);else if(h===59||h===44){if(d===-1)throw new SyntaxError(`Unexpected character at index ${A}`);w===-1&&(w=A),xn(r,t.slice(d,w),!0),h===44&&(xn(e,s,r),r=Object.create(null),s=void 0),d=w=-1}else if(h===61&&d!==-1&&w===-1)o=t.slice(d,A),d=w=-1;else throw new SyntaxError(`Unexpected character at index ${A}`);else if(n){if(F1[h]!==1)throw new SyntaxError(`Unexpected character at index ${A}`);d===-1?d=A:i||(i=!0),n=!1}else if(a)if(F1[h]===1)d===-1&&(d=A);else if(h===34&&d!==-1)a=!1,w=A;else if(h===92)n=!0;else throw new SyntaxError(`Unexpected character at index ${A}`);else if(h===34&&t.charCodeAt(A-1)===61)a=!0;else if(w===-1&&F1[h]===1)d===-1&&(d=A);else if(d!==-1&&(h===32||h===9))w===-1&&(w=A);else if(h===59||h===44){if(d===-1)throw new SyntaxError(`Unexpected character at index ${A}`);w===-1&&(w=A);let I=t.slice(d,w);i&&(I=I.replace(/\\/g,""),i=!1),xn(r,o,I),h===44&&(xn(e,s,r),r=Object.create(null),s=void 0),o=void 0,d=w=-1}else throw new SyntaxError(`Unexpected character at index ${A}`);if(d===-1||a||h===32||h===9)throw new SyntaxError("Unexpected end of input");w===-1&&(w=A);let D=t.slice(d,w);return s===void 0?xn(e,D,r):(o===void 0?xn(r,D,!0):i?xn(r,o,D.replace(/\\/g,"")):xn(r,o,D),xn(e,s,r)),e}function eN(t){return Object.keys(t).map(e=>{let r=t[e];return Array.isArray(r)||(r=[r]),r.map(i=>[e].concat(Object.keys(i).map(n=>{let a=i[n];return Array.isArray(a)||(a=[a]),a.map(s=>s===!0?n:`${n}=${s}`).join("; ")})).join("; ")).join(", ")}).join(", ")}V_.exports={format:eN,parse:QO}});var $1=Ne((pM,J_)=>{"use strict";var tN=Xe("events"),rN=Xe("https"),iN=Xe("http"),H_=Xe("net"),nN=Xe("tls"),{randomBytes:aN,createHash:sN}=Xe("crypto"),{Duplex:oM,Readable:dM}=Xe("stream"),{URL:t2}=Xe("url"),Fa=ws(),oN=o0(),dN=p0(),{isBlob:pN}=So(),{BINARY_TYPES:$_,CLOSE_TIMEOUT:lN,EMPTY_BUFFER:c0,GUID:cN,kForOnEventAttribute:r2,kListener:uN,kStatusCode:fN,kWebSocket:Vr,NOOP:G_}=ea(),{EventTarget:{addEventListener:hN,removeEventListener:mN}}=F_(),{format:_N,parse:gN}=V1(),{toBuffer:yN}=B1(),q_=Symbol("kAborted"),i2=[8,13],ia=["CONNECTING","OPEN","CLOSING","CLOSED"],EN=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/,dr=class t extends tN{constructor(e,r,i){super(),this._binaryType=$_[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=c0,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=t.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,e!==null?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,r===void 0?!i||i.protocols===void 0?r=[]:Array.isArray(i.protocols)?r=i.protocols:r=[i.protocols]:Array.isArray(r)||(typeof r=="object"&&r!==null?(i=r,i.protocols===void 0?r=[]:Array.isArray(i.protocols)?r=i.protocols:r=[i.protocols]):r=[r]),j_(this,e,r,i)):(this._autoPong=i.autoPong,this._closeTimeout=i.closeTimeout,this._isServer=!0)}get binaryType(){return this._binaryType}set binaryType(e){$_.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,r,i){let n=new oN({allowSynchronousEvents:i.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxBufferedChunks:i.maxBufferedChunks,maxFragments:i.maxFragments,maxPayload:i.maxPayload,skipUTF8Validation:i.skipUTF8Validation}),a=new dN(e,this._extensions,i.generateMask);this._receiver=n,this._sender=a,this._socket=e,n[Vr]=this,a[Vr]=this,e[Vr]=this,n.on("conclude",SN),n.on("drain",RN),n.on("error",bN),n.on("message",AN),n.on("ping",ON),n.on("pong",NN),a.onerror=TN,e.setTimeout&&e.setTimeout(0),e.setNoDelay&&e.setNoDelay(),r.length>0&&e.unshift(r),e.on("close",Y_),e.on("data",f0),e.on("end",X_),e.on("error",Z_),this._readyState=t.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=t.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}this._extensions[Fa.extensionName]&&this._extensions[Fa.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=t.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,r){if(this.readyState!==t.CLOSED){if(this.readyState===t.CONNECTING){Ti(this,this._req,"WebSocket was closed before the connection was established");return}if(this.readyState===t.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._sender.close(e,r,!this._isServer,i=>{i||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),this._readyState=t.CLOSING,W_(this)}}pause(){this.readyState===t.CONNECTING||this.readyState===t.CLOSED||(this._paused=!0,this._socket.pause())}ping(e,r,i){if(this.readyState===t.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(i=e,e=r=void 0):typeof r=="function"&&(i=r,r=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==t.OPEN){n2(this,e,i);return}r===void 0&&(r=!this._isServer),this._sender.ping(e||c0,r,i)}pong(e,r,i){if(this.readyState===t.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(i=e,e=r=void 0):typeof r=="function"&&(i=r,r=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==t.OPEN){n2(this,e,i);return}r===void 0&&(r=!this._isServer),this._sender.pong(e||c0,r,i)}resume(){this.readyState===t.CONNECTING||this.readyState===t.CLOSED||(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(e,r,i){if(this.readyState===t.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof r=="function"&&(i=r,r={}),typeof e=="number"&&(e=e.toString()),this.readyState!==t.OPEN){n2(this,e,i);return}let n={binary:typeof e!="string",mask:!this._isServer,compress:!0,fin:!0,...r};this._extensions[Fa.extensionName]||(n.compress=!1),this._sender.send(e||c0,n,i)}terminate(){if(this.readyState!==t.CLOSED){if(this.readyState===t.CONNECTING){Ti(this,this._req,"WebSocket was closed before the connection was established");return}this._socket&&(this._readyState=t.CLOSING,this._socket.destroy())}}};Object.defineProperty(dr,"CONNECTING",{enumerable:!0,value:ia.indexOf("CONNECTING")});Object.defineProperty(dr.prototype,"CONNECTING",{enumerable:!0,value:ia.indexOf("CONNECTING")});Object.defineProperty(dr,"OPEN",{enumerable:!0,value:ia.indexOf("OPEN")});Object.defineProperty(dr.prototype,"OPEN",{enumerable:!0,value:ia.indexOf("OPEN")});Object.defineProperty(dr,"CLOSING",{enumerable:!0,value:ia.indexOf("CLOSING")});Object.defineProperty(dr.prototype,"CLOSING",{enumerable:!0,value:ia.indexOf("CLOSING")});Object.defineProperty(dr,"CLOSED",{enumerable:!0,value:ia.indexOf("CLOSED")});Object.defineProperty(dr.prototype,"CLOSED",{enumerable:!0,value:ia.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(t=>{Object.defineProperty(dr.prototype,t,{enumerable:!0})});["open","error","close","message"].forEach(t=>{Object.defineProperty(dr.prototype,`on${t}`,{enumerable:!0,get(){for(let e of this.listeners(t))if(e[r2])return e[uN];return null},set(e){for(let r of this.listeners(t))if(r[r2]){this.removeListener(t,r);break}typeof e=="function"&&this.addEventListener(t,e,{[r2]:!0})}})});dr.prototype.addEventListener=hN;dr.prototype.removeEventListener=mN;J_.exports=dr;function j_(t,e,r,i){let n={allowSynchronousEvents:!0,autoPong:!0,closeTimeout:lN,protocolVersion:i2[1],maxBufferedChunks:262144,maxFragments:16384,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...i,socketPath:void 0,hostname:void 0,protocol:void 0,protocols:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(t._autoPong=n.autoPong,t._closeTimeout=n.closeTimeout,!i2.includes(n.protocolVersion))throw new RangeError(`Unsupported protocol version: ${n.protocolVersion} (supported versions: ${i2.join(", ")})`);let a;if(e instanceof t2)a=e;else try{a=new t2(e)}catch{throw new SyntaxError(`Invalid URL: ${e}`)}a.protocol==="http:"?a.protocol="ws:":a.protocol==="https:"&&(a.protocol="wss:"),t._url=a.href;let s=a.protocol==="wss:",o=a.protocol==="ws+unix:",d;if(a.protocol!=="ws:"&&!s&&!o?d=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`:o&&!a.pathname?d="The URL's pathname is empty":a.hash&&(d="The URL contains a fragment identifier"),d){let F=new SyntaxError(d);if(t._redirects===0)throw F;u0(t,F);return}let h=s?443:80,w=aN(16).toString("base64"),A=s?rN.request:iN.request,D=new Set,I;if(n.createConnection=n.createConnection||(s?wN:vN),n.defaultPort=n.defaultPort||h,n.port=a.port||h,n.host=a.hostname.startsWith("[")?a.hostname.slice(1,-1):a.hostname,n.headers={...n.headers,"Sec-WebSocket-Version":n.protocolVersion,"Sec-WebSocket-Key":w,Connection:"Upgrade",Upgrade:"websocket"},n.path=a.pathname+a.search,n.timeout=n.handshakeTimeout,n.perMessageDeflate&&(I=new Fa({...n.perMessageDeflate,isServer:!1,maxPayload:n.maxPayload}),n.headers["Sec-WebSocket-Extensions"]=_N({[Fa.extensionName]:I.offer()})),r.length){for(let F of r){if(typeof F!="string"||!EN.test(F)||D.has(F))throw new SyntaxError("An invalid or duplicated subprotocol was specified");D.add(F)}n.headers["Sec-WebSocket-Protocol"]=r.join(",")}if(n.origin&&(n.protocolVersion<13?n.headers["Sec-WebSocket-Origin"]=n.origin:n.headers.Origin=n.origin),(a.username||a.password)&&(n.auth=`${a.username}:${a.password}`),o){let F=n.path.indexOf(":");F===-1?(n.socketPath=n.path,n.path=""):(n.socketPath=n.path.slice(0,F),n.path=n.path.slice(F+1))}let R;if(n.followRedirects){if(t._redirects===0){t._originalIpc=o,t._originalSecure=s,t._originalHostOrSocketPath=o?n.socketPath:a.host;let F=i&&i.headers;if(i={...i,headers:{}},F)for(let[$,H]of Object.entries(F))i.headers[$.toLowerCase()]=H}else if(t.listenerCount("redirect")===0){let F=o?t._originalIpc?n.socketPath===t._originalHostOrSocketPath:!1:t._originalIpc?!1:a.host===t._originalHostOrSocketPath;(!F||t._originalSecure&&!s)&&(delete n.headers.authorization,delete n.headers.cookie,F||delete n.headers.host,n.auth=void 0)}n.auth&&!i.headers.authorization&&(i.headers.authorization="Basic "+Buffer.from(n.auth).toString("base64")),R=t._req=A(n),t._redirects&&t.emit("redirect",t.url,R)}else R=t._req=A(n);n.timeout&&R.on("timeout",()=>{Ti(t,R,"Opening handshake has timed out")}),R.on("error",F=>{R===null||R[q_]||(R=t._req=null,u0(t,F))}),R.on("response",F=>{let $=F.headers.location,H=F.statusCode;if($&&n.followRedirects&&H>=300&&H<400){if(++t._redirects>n.maxRedirects){Ti(t,R,"Maximum redirects exceeded");return}R.abort();let L;try{L=new t2($,e)}catch{let W=new SyntaxError(`Invalid URL: ${$}`);u0(t,W);return}j_(t,L,r,i)}else t.emit("unexpected-response",R,F)||Ti(t,R,`Unexpected server response: ${F.statusCode}`)}),R.on("upgrade",(F,$,H)=>{if(t.emit("upgrade",F),t.readyState!==dr.CONNECTING)return;R=t._req=null;let L=F.headers.upgrade;if(L===void 0||L.toLowerCase()!=="websocket"){Ti(t,$,"Invalid Upgrade header");return}let q=sN("sha1").update(w+cN).digest("base64");if(F.headers["sec-websocket-accept"]!==q){Ti(t,$,"Invalid Sec-WebSocket-Accept header");return}let W=F.headers["sec-websocket-protocol"],se;if(W!==void 0?D.size?D.has(W)||(se="Server sent an invalid subprotocol"):se="Server sent a subprotocol but none was requested":D.size&&(se="Server sent no subprotocol"),se){Ti(t,$,se);return}W&&(t._protocol=W);let N=F.headers["sec-websocket-extensions"];if(N!==void 0){if(!I){Ti(t,$,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let O;try{O=gN(N)}catch{Ti(t,$,"Invalid Sec-WebSocket-Extensions header");return}let c=Object.keys(O);if(c.length!==1||c[0]!==Fa.extensionName){Ti(t,$,"Server indicated an extension that was not requested");return}try{I.accept(O[Fa.extensionName])}catch{Ti(t,$,"Invalid Sec-WebSocket-Extensions header");return}t._extensions[Fa.extensionName]=I}t.setSocket($,H,{allowSynchronousEvents:n.allowSynchronousEvents,generateMask:n.generateMask,maxBufferedChunks:n.maxBufferedChunks,maxFragments:n.maxFragments,maxPayload:n.maxPayload,skipUTF8Validation:n.skipUTF8Validation})}),n.finishRequest?n.finishRequest(R,t):R.end()}function u0(t,e){t._readyState=dr.CLOSING,t._errorEmitted=!0,t.emit("error",e),t.emitClose()}function vN(t){return t.path=t.socketPath,H_.connect(t)}function wN(t){return t.path=void 0,!t.servername&&t.servername!==""&&(t.servername=H_.isIP(t.host)?"":t.host),nN.connect(t)}function Ti(t,e,r){t._readyState=dr.CLOSING;let i=new Error(r);Error.captureStackTrace(i,Ti),e.setHeader?(e[q_]=!0,e.abort(),e.socket&&!e.socket.destroyed&&e.socket.destroy(),process.nextTick(u0,t,i)):(e.destroy(i),e.once("error",t.emit.bind(t,"error")),e.once("close",t.emitClose.bind(t)))}function n2(t,e,r){if(e){let i=pN(e)?e.size:yN(e).length;t._socket?t._sender._bufferedBytes+=i:t._bufferedAmount+=i}if(r){let i=new Error(`WebSocket is not open: readyState ${t.readyState} (${ia[t.readyState]})`);process.nextTick(r,i)}}function SN(t,e){let r=this[Vr];r._closeFrameReceived=!0,r._closeMessage=e,r._closeCode=t,r._socket[Vr]!==void 0&&(r._socket.removeListener("data",f0),process.nextTick(K_,r._socket),t===1005?r.close():r.close(t,e))}function RN(){let t=this[Vr];t.isPaused||t._socket.resume()}function bN(t){let e=this[Vr];e._socket[Vr]!==void 0&&(e._socket.removeListener("data",f0),process.nextTick(K_,e._socket),e.close(t[fN])),e._errorEmitted||(e._errorEmitted=!0,e.emit("error",t))}function z_(){this[Vr].emitClose()}function AN(t,e){this[Vr].emit("message",t,e)}function ON(t){let e=this[Vr];e._autoPong&&e.pong(t,!this._isServer,G_),e.emit("ping",t)}function NN(t){this[Vr].emit("pong",t)}function K_(t){t.resume()}function TN(t){let e=this[Vr];e.readyState!==dr.CLOSED&&(e.readyState===dr.OPEN&&(e._readyState=dr.CLOSING,W_(e)),this._socket.end(),e._errorEmitted||(e._errorEmitted=!0,e.emit("error",t)))}function W_(t){t._closeTimer=setTimeout(t._socket.destroy.bind(t._socket),t._closeTimeout)}function Y_(){let t=this[Vr];if(this.removeListener("close",Y_),this.removeListener("data",f0),this.removeListener("end",X_),t._readyState=dr.CLOSING,!this._readableState.endEmitted&&!t._closeFrameReceived&&!t._receiver._writableState.errorEmitted&&this._readableState.length!==0){let e=this.read(this._readableState.length);t._receiver.write(e)}t._receiver.end(),this[Vr]=void 0,clearTimeout(t._closeTimer),t._receiver._writableState.finished||t._receiver._writableState.errorEmitted?t.emitClose():(t._receiver.on("error",z_),t._receiver.on("finish",z_))}function f0(t){this[Vr]._receiver.write(t)||this.pause()}function X_(){let t=this[Vr];t._readyState=dr.CLOSING,t._receiver.end(),this.end()}function Z_(){let t=this[Vr];this.removeListener("error",Z_),this.on("error",G_),t&&(t._readyState=dr.CLOSING,this.destroy())}});var a2=Ne((cM,tg)=>{"use strict";var lM=$1(),{Duplex:xN}=Xe("stream");function Q_(t){t.emit("close")}function IN(){!this.destroyed&&this._writableState.finished&&this.destroy()}function eg(t){this.removeListener("error",eg),this.destroy(),this.listenerCount("error")===0&&this.emit("error",t)}function CN(t,e){let r=!0,i=new xN({...e,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return t.on("message",function(a,s){let o=!s&&i._readableState.objectMode?a.toString():a;i.push(o)||t.pause()}),t.once("error",function(a){i.destroyed||(r=!1,i.destroy(a))}),t.once("close",function(){i.destroyed||i.push(null)}),i._destroy=function(n,a){if(t.readyState===t.CLOSED){a(n),process.nextTick(Q_,i);return}let s=!1;t.once("error",function(d){s=!0,a(d)}),t.once("close",function(){s||a(n),process.nextTick(Q_,i)}),r&&t.terminate()},i._final=function(n){if(t.readyState===t.CONNECTING){t.once("open",function(){i._final(n)});return}t._socket!==null&&(t._socket._writableState.finished?(n(),i._readableState.endEmitted&&i.destroy()):(t._socket.once("finish",function(){n()}),t.close()))},i._read=function(){t.isPaused&&t.resume()},i._write=function(n,a,s){if(t.readyState===t.CONNECTING){t.once("open",function(){i._write(n,a,s)});return}t.send(n,s)},i.on("end",IN),i.on("error",eg),i}tg.exports=CN});var h0=Ne((uM,rg)=>{"use strict";var{tokenChars:LN}=So();function kN(t){let e=new Set,r=-1,i=-1,n=0;for(n;n<t.length;n++){let s=t.charCodeAt(n);if(i===-1&&LN[s]===1)r===-1&&(r=n);else if(n!==0&&(s===32||s===9))i===-1&&r!==-1&&(i=n);else if(s===44){if(r===-1)throw new SyntaxError(`Unexpected character at index ${n}`);i===-1&&(i=n);let o=t.slice(r,i);if(e.has(o))throw new SyntaxError(`The "${o}" subprotocol is duplicated`);e.add(o),r=i=-1}else throw new SyntaxError(`Unexpected character at index ${n}`)}if(r===-1||i!==-1)throw new SyntaxError("Unexpected end of input");let a=t.slice(r,n);if(e.has(a))throw new SyntaxError(`The "${a}" subprotocol is duplicated`);return e.add(a),e}rg.exports={parse:kN}});var o2=Ne((hM,dg)=>{"use strict";var DN=Xe("events"),m0=Xe("http"),{Duplex:fM}=Xe("stream"),{createHash:BN}=Xe("crypto"),ig=V1(),As=ws(),PN=h0(),UN=$1(),{CLOSE_TIMEOUT:MN,GUID:FN,kWebSocket:VN}=ea(),$N=/^[+/0-9A-Za-z]{22}==$/,ng=0,ag=1,og=2,s2=class extends DN{constructor(e,r){if(super(),e={allowSynchronousEvents:!0,autoPong:!0,maxBufferedChunks:256*1024,maxFragments:16*1024,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,closeTimeout:MN,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:UN,...e},e.port==null&&!e.server&&!e.noServer||e.port!=null&&(e.server||e.noServer)||e.server&&e.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(e.port!=null?(this._server=m0.createServer((i,n)=>{let a=m0.STATUS_CODES[426];n.writeHead(426,{"Content-Length":a.length,"Content-Type":"text/plain"}),n.end(a)}),this._server.listen(e.port,e.host,e.backlog,r)):e.server&&(this._server=e.server),this._server){let i=this.emit.bind(this,"connection");this._removeListeners=zN(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(n,a,s)=>{this.handleUpgrade(n,a,s,i)}})}e.perMessageDeflate===!0&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=ng}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(e){if(this._state===og){e&&this.once("close",()=>{e(new Error("The server is not running"))}),process.nextTick(z1,this);return}if(e&&this.once("close",e),this._state!==ag)if(this._state=ag,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients?this.clients.size?this._shouldEmitClose=!0:process.nextTick(z1,this):process.nextTick(z1,this);else{let r=this._server;this._removeListeners(),this._removeListeners=this._server=null,r.close(()=>{z1(this)})}}shouldHandle(e){if(this.options.path){let r=e.url.indexOf("?");if((r!==-1?e.url.slice(0,r):e.url)!==this.options.path)return!1}return!0}handleUpgrade(e,r,i,n){r.on("error",sg);let a=e.headers["sec-websocket-key"],s=e.headers.upgrade,o=+e.headers["sec-websocket-version"];if(e.method!=="GET"){Os(this,e,r,405,"Invalid HTTP method");return}if(s===void 0||s.toLowerCase()!=="websocket"){Os(this,e,r,400,"Invalid Upgrade header");return}if(a===void 0||!$N.test(a)){Os(this,e,r,400,"Missing or invalid Sec-WebSocket-Key header");return}if(o!==13&&o!==8){Os(this,e,r,400,"Missing or invalid Sec-WebSocket-Version header",{"Sec-WebSocket-Version":"13, 8"});return}if(!this.shouldHandle(e)){H1(r,400);return}let d=e.headers["sec-websocket-protocol"],h=new Set;if(d!==void 0)try{h=PN.parse(d)}catch{Os(this,e,r,400,"Invalid Sec-WebSocket-Protocol header");return}let w=e.headers["sec-websocket-extensions"],A={};if(this.options.perMessageDeflate&&w!==void 0){let D=new As({...this.options.perMessageDeflate,isServer:!0,maxPayload:this.options.maxPayload});try{let I=ig.parse(w);I[As.extensionName]&&(D.accept(I[As.extensionName]),A[As.extensionName]=D)}catch{Os(this,e,r,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let D={origin:e.headers[`${o===8?"sec-websocket-origin":"origin"}`],secure:!!(e.socket.authorized||e.socket.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(D,(I,R,F,$)=>{if(!I)return H1(r,R||401,F,$);this.completeUpgrade(A,a,h,e,r,i,n)});return}if(!this.options.verifyClient(D))return H1(r,401)}this.completeUpgrade(A,a,h,e,r,i,n)}completeUpgrade(e,r,i,n,a,s,o){if(!a.readable||!a.writable)return a.destroy();if(a[VN])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>ng)return H1(a,503);let h=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${BN("sha1").update(r+FN).digest("base64")}`],w=new this.options.WebSocket(null,void 0,this.options);if(i.size){let A=this.options.handleProtocols?this.options.handleProtocols(i,n):i.values().next().value;A&&(h.push(`Sec-WebSocket-Protocol: ${A}`),w._protocol=A)}if(e[As.extensionName]){let A=e[As.extensionName].params,D=ig.format({[As.extensionName]:[A]});h.push(`Sec-WebSocket-Extensions: ${D}`),w._extensions=e}this.emit("headers",h,n),a.write(h.concat(`\r
|
|
10
|
+
`).join(`\r
|
|
11
|
+
`)),a.removeListener("error",sg),w.setSocket(a,s,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxBufferedChunks:this.options.maxBufferedChunks,maxFragments:this.options.maxFragments,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(w),w.on("close",()=>{this.clients.delete(w),this._shouldEmitClose&&!this.clients.size&&process.nextTick(z1,this)})),o(w,n)}};dg.exports=s2;function zN(t,e){for(let r of Object.keys(e))t.on(r,e[r]);return function(){for(let i of Object.keys(e))t.removeListener(i,e[i])}}function z1(t){t._state=og,t.emit("close")}function sg(){this.destroy()}function H1(t,e,r,i){r=r||m0.STATUS_CODES[e],i={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(r),...i},t.once("finish",t.destroy),t.end(`HTTP/1.1 ${e} ${m0.STATUS_CODES[e]}\r
|
|
12
|
+
`+Object.keys(i).map(n=>`${n}: ${i[n]}`).join(`\r
|
|
13
|
+
`)+`\r
|
|
14
|
+
\r
|
|
15
|
+
`+r)}function Os(t,e,r,i,n,a){if(t.listenerCount("wsClientError")){let s=new Error(n);Error.captureStackTrace(s,Os),t.emit("wsClientError",s,r,e)}else H1(r,i,n,a)}});var cg=Ne((mM,lg)=>{"use strict";var HN=a2(),GN=V1(),qN=ws(),jN=o0(),KN=p0(),WN=h0(),an=$1(),pg=o2();an.createWebSocketStream=HN;an.extension=GN;an.PerMessageDeflate=qN;an.Receiver=jN;an.Sender=KN;an.Server=pg;an.subprotocol=WN;an.WebSocket=an;an.WebSocketServer=pg;lg.exports=an});var fg=Ne((_M,d2)=>{"use strict";var YN=Object.prototype.hasOwnProperty,mi="~";function G1(){}Object.create&&(G1.prototype=Object.create(null),new G1().__proto__||(mi=!1));function XN(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function ug(t,e,r,i,n){if(typeof r!="function")throw new TypeError("The listener must be a function");var a=new XN(r,i||t,n),s=mi?mi+e:e;return t._events[s]?t._events[s].fn?t._events[s]=[t._events[s],a]:t._events[s].push(a):(t._events[s]=a,t._eventsCount++),t}function _0(t,e){--t._eventsCount===0?t._events=new G1:delete t._events[e]}function oi(){this._events=new G1,this._eventsCount=0}oi.prototype.eventNames=function(){var e=[],r,i;if(this._eventsCount===0)return e;for(i in r=this._events)YN.call(r,i)&&e.push(mi?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(r)):e};oi.prototype.listeners=function(e){var r=mi?mi+e:e,i=this._events[r];if(!i)return[];if(i.fn)return[i.fn];for(var n=0,a=i.length,s=new Array(a);n<a;n++)s[n]=i[n].fn;return s};oi.prototype.listenerCount=function(e){var r=mi?mi+e:e,i=this._events[r];return i?i.fn?1:i.length:0};oi.prototype.emit=function(e,r,i,n,a,s){var o=mi?mi+e:e;if(!this._events[o])return!1;var d=this._events[o],h=arguments.length,w,A;if(d.fn){switch(d.once&&this.removeListener(e,d.fn,void 0,!0),h){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,r),!0;case 3:return d.fn.call(d.context,r,i),!0;case 4:return d.fn.call(d.context,r,i,n),!0;case 5:return d.fn.call(d.context,r,i,n,a),!0;case 6:return d.fn.call(d.context,r,i,n,a,s),!0}for(A=1,w=new Array(h-1);A<h;A++)w[A-1]=arguments[A];d.fn.apply(d.context,w)}else{var D=d.length,I;for(A=0;A<D;A++)switch(d[A].once&&this.removeListener(e,d[A].fn,void 0,!0),h){case 1:d[A].fn.call(d[A].context);break;case 2:d[A].fn.call(d[A].context,r);break;case 3:d[A].fn.call(d[A].context,r,i);break;case 4:d[A].fn.call(d[A].context,r,i,n);break;default:if(!w)for(I=1,w=new Array(h-1);I<h;I++)w[I-1]=arguments[I];d[A].fn.apply(d[A].context,w)}}return!0};oi.prototype.on=function(e,r,i){return ug(this,e,r,i,!1)};oi.prototype.once=function(e,r,i){return ug(this,e,r,i,!0)};oi.prototype.removeListener=function(e,r,i,n){var a=mi?mi+e:e;if(!this._events[a])return this;if(!r)return _0(this,a),this;var s=this._events[a];if(s.fn)s.fn===r&&(!n||s.once)&&(!i||s.context===i)&&_0(this,a);else{for(var o=0,d=[],h=s.length;o<h;o++)(s[o].fn!==r||n&&!s[o].once||i&&s[o].context!==i)&&d.push(s[o]);d.length?this._events[a]=d.length===1?d[0]:d:_0(this,a)}return this};oi.prototype.removeAllListeners=function(e){var r;return e?(r=mi?mi+e:e,this._events[r]&&_0(this,r)):(this._events=new G1,this._eventsCount=0),this};oi.prototype.off=oi.prototype.removeListener;oi.prototype.addListener=oi.prototype.on;oi.prefixed=mi;oi.EventEmitter=oi;typeof d2<"u"&&(d2.exports=oi)});var hg,mg=yt(()=>{hg="ffffffff-ffff-ffff-ffff-ffffffffffff"});var _g,gg=yt(()=>{_g="00000000-0000-0000-0000-000000000000"});var yg,Eg=yt(()=>{yg=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i});function ZN(t){return typeof t=="string"&&yg.test(t)}var Va,q1=yt(()=>{Eg();Va=ZN});function JN(t){if(!Va(t))throw TypeError("Invalid UUID");let e;return Uint8Array.of((e=parseInt(t.slice(0,8),16))>>>24,e>>>16&255,e>>>8&255,e&255,(e=parseInt(t.slice(9,13),16))>>>8,e&255,(e=parseInt(t.slice(14,18),16))>>>8,e&255,(e=parseInt(t.slice(19,23),16))>>>8,e&255,(e=parseInt(t.slice(24,36),16))/1099511627776&255,e/4294967296&255,e>>>24&255,e>>>16&255,e>>>8&255,e&255)}var na,j1=yt(()=>{q1();na=JN});function _i(t,e=0){return(Zr[t[e+0]]+Zr[t[e+1]]+Zr[t[e+2]]+Zr[t[e+3]]+"-"+Zr[t[e+4]]+Zr[t[e+5]]+"-"+Zr[t[e+6]]+Zr[t[e+7]]+"-"+Zr[t[e+8]]+Zr[t[e+9]]+"-"+Zr[t[e+10]]+Zr[t[e+11]]+Zr[t[e+12]]+Zr[t[e+13]]+Zr[t[e+14]]+Zr[t[e+15]]).toLowerCase()}function QN(t,e=0){let r=_i(t,e);if(!Va(r))throw TypeError("Stringified UUID is invalid");return r}var Zr,vg,aa=yt(()=>{q1();Zr=[];for(let t=0;t<256;++t)Zr.push((t+256).toString(16).slice(1));vg=QN});function sa(){return crypto.getRandomValues(eT)}var eT,g0=yt(()=>{eT=new Uint8Array(16)});function tT(t,e,r){let i,n=t?._v6??!1;if(t){let a=Object.keys(t);a.length===1&&a[0]==="_v6"&&(t=void 0)}if(t)i=wg(t.random??t.rng?.()??sa(),t.msecs,t.nsecs,t.clockseq,t.node,e,r);else{let a=Date.now(),s=sa();rT(K1,a,s),i=wg(s,K1.msecs,K1.nsecs,n?void 0:K1.clockseq,n?void 0:K1.node,e,r)}return e??_i(i)}function rT(t,e,r){return t.msecs??=-1/0,t.nsecs??=0,e===t.msecs?(t.nsecs++,t.nsecs>=1e4&&(t.node=void 0,t.nsecs=0)):e>t.msecs?t.nsecs=0:e<t.msecs&&(t.node=void 0),t.node||(t.node=r.slice(10,16),t.node[0]|=1,t.clockseq=(r[8]<<8|r[9])&16383),t.msecs=e,t}function wg(t,e,r,i,n,a,s=0){if(t.length<16)throw new Error("Random bytes length must be >= 16");if(!a)a=new Uint8Array(16),s=0;else if(s<0||s+16>a.length)throw new RangeError(`UUID byte range ${s}:${s+15} is out of buffer bounds`);e??=Date.now(),r??=0,i??=(t[8]<<8|t[9])&16383,n==null&&(n=t.slice(10,16),n[0]|=1),e+=122192928e5;let o=(e&268435455)*1e4+r,d=o>>>0;a[s++]=d>>>24&255,a[s++]=d>>>16&255,a[s++]=d>>>8&255,a[s++]=d&255;let h=(e/268435456|0)*625+(o/4294967296|0)&268435455;a[s++]=h>>>8&255,a[s++]=h&255,a[s++]=h>>>24&15|16,a[s++]=h>>>16&255,a[s++]=i>>>8|128,a[s++]=i&255;for(let w=0;w<6;++w)a[s++]=n[w];return a}var K1,y0,p2=yt(()=>{g0();aa();K1={};y0=tT});function W1(t){let e=typeof t=="string"?na(t):t,r=iT(e);return typeof t=="string"?_i(r):r}function iT(t){return Uint8Array.of((t[6]&15)<<4|t[7]>>4&15,(t[7]&15)<<4|(t[4]&240)>>4,(t[4]&15)<<4|(t[5]&240)>>4,(t[5]&15)<<4|(t[0]&240)>>4,(t[0]&15)<<4|(t[1]&240)>>4,(t[1]&15)<<4|(t[2]&240)>>4,96|t[2]&15,t[3],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}var l2=yt(()=>{j1();aa()});import{createHash as nT}from"node:crypto";function aT(t){return Array.isArray(t)?t=Buffer.from(t):typeof t=="string"&&(t=Buffer.from(t,"utf8")),nT("md5").update(t).digest()}var Sg,Rg=yt(()=>{Sg=aT});function sT(t){t=unescape(encodeURIComponent(t));let e=new Uint8Array(t.length);for(let r=0;r<t.length;++r)e[r]=t.charCodeAt(r);return e}function Y1(t,e,r,i,n,a){let s=typeof r=="string"?sT(r):r,o=typeof i=="string"?na(i):i;if(typeof i=="string"&&(i=na(i)),i?.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let d=new Uint8Array(16+s.length);if(d.set(o),d.set(s,o.length),d=e(d),d[6]=d[6]&15|t,d[8]=d[8]&63|128,n){if(a??=0,a<0||a+16>n.length)throw new RangeError(`UUID byte range ${a}:${a+15} is out of buffer bounds`);for(let h=0;h<16;++h)n[a+h]=d[h];return n}return _i(d)}var E0,v0,c2=yt(()=>{j1();aa();E0="6ba7b810-9dad-11d1-80b4-00c04fd430c8",v0="6ba7b811-9dad-11d1-80b4-00c04fd430c8"});function u2(t,e,r,i){return Y1(48,Sg,t,e,r,i)}var bg,Ag=yt(()=>{Rg();c2();u2.DNS=E0;u2.URL=v0;bg=u2});function oT(t,e,r){return!e&&!t&&crypto.randomUUID?crypto.randomUUID():dT(t,e,r)}function dT(t,e,r){t=t||{};let i=t.random??t.rng?.()??sa();if(i.length<16)throw new Error("Random bytes length must be >= 16");if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){if(r=r||0,r<0||r+16>e.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let n=0;n<16;++n)e[r+n]=i[n];return e}return _i(i)}var Og,Ng=yt(()=>{g0();aa();Og=oT});import{createHash as pT}from"node:crypto";function lT(t){return Array.isArray(t)?t=Buffer.from(t):typeof t=="string"&&(t=Buffer.from(t,"utf8")),pT("sha1").update(t).digest()}var Tg,xg=yt(()=>{Tg=lT});function f2(t,e,r,i){return Y1(80,Tg,t,e,r,i)}var Ig,Cg=yt(()=>{xg();c2();f2.DNS=E0;f2.URL=v0;Ig=f2});function cT(t,e,r){t??={},r??=0;let i=y0({...t,_v6:!0},new Uint8Array(16));if(i=W1(i),e){if(r<0||r+16>e.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let n=0;n<16;n++)e[r+n]=i[n];return e}return _i(i)}var Lg,kg=yt(()=>{aa();p2();l2();Lg=cT});function h2(t){let e=typeof t=="string"?na(t):t,r=uT(e);return typeof t=="string"?_i(r):r}function uT(t){return Uint8Array.of((t[3]&15)<<4|t[4]>>4&15,(t[4]&15)<<4|(t[5]&240)>>4,(t[5]&15)<<4|t[6]&15,t[7],(t[1]&15)<<4|(t[2]&240)>>4,(t[2]&15)<<4|(t[3]&240)>>4,16|(t[0]&240)>>4,(t[0]&15)<<4|(t[1]&240)>>4,t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}var Dg=yt(()=>{j1();aa()});function fT(t,e,r){let i;if(t)i=Bg(t.random??t.rng?.()??sa(),t.msecs,t.seq,e,r);else{let n=Date.now(),a=sa();hT(m2,n,a),i=Bg(a,m2.msecs,m2.seq,e,r)}return e??_i(i)}function hT(t,e,r){return t.msecs??=-1/0,t.seq??=0,e>t.msecs?(t.seq=Pg(r),t.msecs=e):(t.seq=t.seq+1|0,t.seq===0&&t.msecs++),t}function Bg(t,e,r,i,n=0){if(t.length<16)throw new Error("Random bytes length must be >= 16");if(!i)i=new Uint8Array(16),n=0;else if(n<0||n+16>i.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);return e??=Date.now(),r??=Pg(t),i[n++]=e/1099511627776&255,i[n++]=e/4294967296&255,i[n++]=e/16777216&255,i[n++]=e/65536&255,i[n++]=e/256&255,i[n++]=e&255,i[n++]=112|r>>>28&15,i[n++]=r>>>20&255,i[n++]=128|r>>>14&63,i[n++]=r>>>6&255,i[n++]=r<<2&255|t[10]&3,i[n++]=t[11],i[n++]=t[12],i[n++]=t[13],i[n++]=t[14],i[n++]=t[15],i}function Pg(t){return(t[6]&127)<<24|t[7]<<16|t[8]<<8|t[9]}var m2,Ug,Mg=yt(()=>{g0();aa();m2={};Ug=fT});function mT(t){if(!Va(t))throw TypeError("Invalid UUID");return parseInt(t.slice(14,15),16)}var Fg,Vg=yt(()=>{q1();Fg=mT});var $g={};Wl($g,{MAX:()=>hg,NIL:()=>_g,parse:()=>na,stringify:()=>vg,v1:()=>y0,v1ToV6:()=>W1,v3:()=>bg,v4:()=>Og,v5:()=>Ig,v6:()=>Lg,v6ToV1:()=>h2,v7:()=>Ug,validate:()=>Va,version:()=>Fg});var zg=yt(()=>{mg();gg();j1();aa();p2();l2();Ag();Ng();Cg();kg();Dg();Mg();q1();Vg()});var Wg=Ne(Ns=>{"use strict";var Hg=cg(),Gg=fg(),_T=Xe("url"),gT=(zg(),Yl($g));function qg(t){return t&&t.__esModule?t:{default:t}}var yT=qg(Hg),ET=qg(_T);function jg(t,e){return new yT.default(t,e)}var _2=class{encode(t){return JSON.stringify(t)}decode(t){return JSON.parse(t)}},Kg=class extends Gg.EventEmitter{address;rpc_id;queue;options;autoconnect;ready;reconnect;reconnect_timer_id;reconnect_interval;max_reconnects;rest_options;current_reconnects;generate_request_id;socket;webSocketFactory;dataPack;constructor(t,e="ws://localhost:8080",{autoconnect:r=!0,reconnect:i=!0,reconnect_interval:n=1e3,max_reconnects:a=5,...s}={},o,d){super(),this.webSocketFactory=t,this.queue={},this.rpc_id=0,this.address=e,this.autoconnect=r,this.ready=!1,this.reconnect=i,this.reconnect_timer_id=void 0,this.reconnect_interval=n,this.max_reconnects=a,this.rest_options=s,this.current_reconnects=0,this.generate_request_id=o||(()=>typeof this.rpc_id=="number"?++this.rpc_id:Number(this.rpc_id)+1),d?this.dataPack=d:this.dataPack=new _2,this.autoconnect&&this._connect(this.address,{autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects,...this.rest_options})}connect(){this.socket||this._connect(this.address,{autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects,...this.rest_options})}call(t,e,r,i){return!i&&typeof r=="object"&&(i=r,r=null),new Promise((n,a)=>{if(!this.ready)return a(new Error("socket not ready"));let s=this.generate_request_id(t,e),o={jsonrpc:"2.0",method:t,params:e||void 0,id:s};this.socket.send(this.dataPack.encode(o),i,d=>{if(d)return a(d);this.queue[s]={promise:[n,a]},r&&(this.queue[s].timeout=setTimeout(()=>{delete this.queue[s],a(new Error("reply timeout"))},r))})})}async login(t){let e=await this.call("rpc.login",t);if(!e)throw new Error("authentication failed");return e}async listMethods(){return await this.call("__listMethods")}notify(t,e){return new Promise((r,i)=>{if(!this.ready)return i(new Error("socket not ready"));let n={jsonrpc:"2.0",method:t,params:e};this.socket.send(this.dataPack.encode(n),a=>{if(a)return i(a);r()})})}async subscribe(t){typeof t=="string"&&(t=[t]);let e=await this.call("rpc.on",t);if(typeof t=="string"&&e[t]!=="ok")throw new Error("Failed subscribing to an event '"+t+"' with: "+e[t]);return e}async unsubscribe(t){typeof t=="string"&&(t=[t]);let e=await this.call("rpc.off",t);if(typeof t=="string"&&e[t]!=="ok")throw new Error("Failed unsubscribing from an event with: "+e);return e}close(t,e){this.socket&&this.socket.close(t||1e3,e)}setAutoReconnect(t){this.reconnect=t}setReconnectInterval(t){this.reconnect_interval=t}setMaxReconnects(t){this.max_reconnects=t}getCurrentReconnects(){return this.current_reconnects}getMaxReconnects(){return this.max_reconnects}isReconnecting(){return this.reconnect_timer_id!==void 0}willReconnect(){return this.reconnect&&(this.max_reconnects===0||this.current_reconnects<this.max_reconnects)}_connect(t,e){clearTimeout(this.reconnect_timer_id),this.socket=this.webSocketFactory(t,e),this.socket.addEventListener("open",()=>{this.ready=!0,this.emit("open"),this.current_reconnects=0}),this.socket.addEventListener("message",({data:r})=>{r instanceof ArrayBuffer&&(r=Buffer.from(r).toString());try{r=this.dataPack.decode(r)}catch{return}if(r.notification&&this.listeners(r.notification).length){if(!Object.keys(r.params).length)return this.emit(r.notification);let i=[r.notification];if(r.params.constructor===Object)i.push(r.params);else for(let n=0;n<r.params.length;n++)i.push(r.params[n]);return Promise.resolve().then(()=>{this.emit.apply(this,i)})}if(!this.queue[r.id])return r.method?Promise.resolve().then(()=>{this.emit(r.method,r?.params)}):void 0;"error"in r=="result"in r&&this.queue[r.id].promise[1](new Error('Server response malformed. Response must include either "result" or "error", but not both.')),this.queue[r.id].timeout&&clearTimeout(this.queue[r.id].timeout),r.error?this.queue[r.id].promise[1](r.error):this.queue[r.id].promise[0](r.result),delete this.queue[r.id]}),this.socket.addEventListener("error",r=>this.emit("error",r)),this.socket.addEventListener("close",({code:r,reason:i})=>{this.ready&&setTimeout(()=>this.emit("close",r,i),0),this.ready=!1,this.socket=void 0,r!==1e3&&(this.current_reconnects++,this.reconnect&&(this.max_reconnects>this.current_reconnects||this.max_reconnects===0)?this.reconnect_timer_id=setTimeout(()=>this._connect(t,e),this.reconnect_interval):this.reconnect&&this.max_reconnects>0&&this.current_reconnects>=this.max_reconnects&&setTimeout(()=>this.emit("max_reconnects_reached",r,i),1))})}},vT=class extends Gg.EventEmitter{namespaces;dataPack;wss;constructor(t,e){super(),this.namespaces={},e?this.dataPack=e:this.dataPack=new _2,this.wss=new Hg.WebSocketServer(t),this.wss.on("listening",()=>this.emit("listening")),this.wss.on("connection",(r,i)=>{let n=ET.default.parse(i.url,!0),a=n.pathname;return n.query.socket_id?r._id=n.query.socket_id:r._id=gT.v1(),r._authenticated=!1,r.on("error",s=>this.emit("socket-error",r,s)),r.on("close",()=>{this.namespaces[a].clients.delete(r._id);for(let s of Object.keys(this.namespaces[a].events)){let o=this.namespaces[a].events[s].sockets.indexOf(r._id);o>=0&&this.namespaces[a].events[s].sockets.splice(o,1)}this.emit("disconnection",r)}),this.namespaces[a]||this._generateNamespace(a),this.namespaces[a].clients.set(r._id,r),this.emit("connection",r,i),this._handleRPC(r,a)}),this.wss.on("error",r=>this.emit("error",r))}register(t,e,r="/"){return this.namespaces[r]||this._generateNamespace(r),this.namespaces[r].rpc_methods[t]={fn:e,protected:!1},{protected:()=>this._makeProtectedMethod(t,r),public:()=>this._makePublicMethod(t,r)}}setAuth(t,e="/"){this.register("rpc.login",t,e)}_makeProtectedMethod(t,e="/"){this.namespaces[e].rpc_methods[t].protected=!0}_makePublicMethod(t,e="/"){this.namespaces[e].rpc_methods[t].protected=!1}_makeProtectedEvent(t,e="/"){this.namespaces[e].events[t].protected=!0}_makePublicEvent(t,e="/"){this.namespaces[e].events[t].protected=!1}closeNamespace(t){let e=this.namespaces[t];if(e){delete e.rpc_methods,delete e.events;for(let r of e.clients.values())r.close();delete this.namespaces[t]}}event(t,e="/"){if(!this.namespaces[e])this._generateNamespace(e);else if(this.namespaces[e].events[t]!==void 0)throw new Error(`Already registered event ${e}${t}`);return this.namespaces[e].events[t]={sockets:[],protected:!1},this.on(t,(...r)=>{r.length===1&&r[0]instanceof Object&&(r=r[0]);for(let i of this.namespaces[e].events[t].sockets){let n=this.namespaces[e].clients.get(i);n&&n.send(this.dataPack.encode({notification:t,params:r}))}}),{protected:()=>this._makeProtectedEvent(t,e),public:()=>this._makePublicEvent(t,e)}}of(t){this.namespaces[t]||this._generateNamespace(t);let e=this;return{register(r,i){if(arguments.length!==2)throw new Error("must provide exactly two arguments");if(typeof r!="string")throw new Error("name must be a string");if(typeof i!="function")throw new Error("handler must be a function");return e.register(r,i,t)},event(r){if(arguments.length!==1)throw new Error("must provide exactly one argument");if(typeof r!="string")throw new Error("name must be a string");return e.event(r,t)},get eventList(){return Object.keys(e.namespaces[t].events)},emit(r,...i){let n=e.namespaces[t].events[r];if(n)for(let a of n.sockets){let s=e.namespaces[t].clients.get(a);s&&s.send(e.dataPack.encode({notification:r,params:i}))}},get name(){return t},connected(){return[...e.namespaces[t].clients.keys()].reduce((i,n)=>({...i,[n]:e.namespaces[t].clients.get(n)}),{})},clients(){return e.namespaces[t]}}}eventList(t="/"){return this.namespaces[t]?Object.keys(this.namespaces[t].events):[]}createError(t,e,r){return{code:t,message:e,data:r||null}}close(){return new Promise((t,e)=>{try{this.wss.close(),this.emit("close"),t()}catch(r){e(r)}})}_handleRPC(t,e="/"){t.on("message",async r=>{let i={};if(r instanceof ArrayBuffer&&(i.binary=!0,r=Buffer.from(r).toString()),t.readyState!==1)return;let n;try{n=this.dataPack.decode(r)}catch(s){return t.send(this.dataPack.encode({jsonrpc:"2.0",error:Si(-32700,s.toString()),id:null}),i)}if(Array.isArray(n)){if(!n.length)return t.send(this.dataPack.encode({jsonrpc:"2.0",error:Si(-32600,"Invalid array"),id:null}),i);let s=[];for(let o of n){let d=await this._runMethod(o,t._id,e);d&&s.push(d)}return s.length?t.send(this.dataPack.encode(s),i):void 0}let a=await this._runMethod(n,t._id,e);if(a)return t.send(this.dataPack.encode(a),i)})}async _runMethod(t,e,r="/"){if(typeof t!="object"||t===null)return{jsonrpc:"2.0",error:Si(-32600),id:null};if(t.jsonrpc!=="2.0")return{jsonrpc:"2.0",error:Si(-32600,"Invalid JSON RPC version"),id:t.id||null};if(!t.method)return{jsonrpc:"2.0",error:Si(-32602,"Method not specified"),id:t.id||null};if(typeof t.method!="string")return{jsonrpc:"2.0",error:Si(-32600,"Invalid method name"),id:t.id||null};if(t.params&&typeof t.params=="string")return{jsonrpc:"2.0",error:Si(-32600),id:t.id||null};if(t.method==="rpc.on"){if(!t.params)return{jsonrpc:"2.0",error:Si(-32e3),id:t.id||null};let n={},a=Object.keys(this.namespaces[r].events);for(let s of t.params){let o=a.indexOf(s),d=this.namespaces[r];if(o===-1){n[s]="provided event invalid";continue}if(d.events[a[o]].protected===!0&&d.clients.get(e)._authenticated===!1)return{jsonrpc:"2.0",error:Si(-32606),id:t.id||null};if(d.events[a[o]].sockets.indexOf(e)>=0){n[s]="socket has already been subscribed to event";continue}d.events[a[o]].sockets.push(e),n[s]="ok"}return{jsonrpc:"2.0",result:n,id:t.id||null}}else if(t.method==="rpc.off"){if(!t.params)return{jsonrpc:"2.0",error:Si(-32e3),id:t.id||null};let n={};for(let a of t.params){if(!this.namespaces[r].events[a]){n[a]="provided event invalid";continue}let s=this.namespaces[r].events[a].sockets.indexOf(e);if(s===-1){n[a]="not subscribed";continue}this.namespaces[r].events[a].sockets.splice(s,1),n[a]="ok"}return{jsonrpc:"2.0",result:n,id:t.id||null}}else if(t.method==="rpc.login"&&!t.params)return{jsonrpc:"2.0",error:Si(-32604),id:t.id||null};if(!this.namespaces[r].rpc_methods[t.method])return{jsonrpc:"2.0",error:Si(-32601),id:t.id||null};let i=null;if(this.namespaces[r].rpc_methods[t.method].protected===!0&&this.namespaces[r].clients.get(e)._authenticated===!1)return{jsonrpc:"2.0",error:Si(-32605),id:t.id||null};try{i=await this.namespaces[r].rpc_methods[t.method].fn(t.params,e)}catch(n){return t.id?n instanceof Error?{jsonrpc:"2.0",error:{code:-32e3,message:n.name,data:n.message},id:t.id}:{jsonrpc:"2.0",error:n,id:t.id}:void 0}if(t.id){if(t.method==="rpc.login"&&i===!0){let n=this.namespaces[r].clients.get(e);n&&(n._authenticated=!0,this.namespaces[r].clients.set(e,n))}return{jsonrpc:"2.0",result:i,id:t.id}}}_generateNamespace(t){this.namespaces[t]={rpc_methods:{__listMethods:{fn:()=>Object.keys(this.namespaces[t].rpc_methods),protected:!1}},clients:new Map,events:{}}}},wT=new Map([[-32e3,"Event not provided"],[-32600,"Invalid Request"],[-32601,"Method not found"],[-32602,"Invalid params"],[-32603,"Internal error"],[-32604,"Params not found"],[-32605,"Method forbidden"],[-32606,"Event forbidden"],[-32700,"Parse error"]]);function Si(t,e){let r={code:t,message:wT.get(t)||"Internal Server Error"};return e&&(r.data=e),r}var ST=class extends Kg{constructor(t="ws://localhost:8080",{autoconnect:e=!0,reconnect:r=!0,reconnect_interval:i=1e3,max_reconnects:n=5,...a}={},s){super(jg,t,{autoconnect:e,reconnect:r,reconnect_interval:i,max_reconnects:n,...a},s)}};Ns.Client=ST;Ns.CommonClient=Kg;Ns.DefaultDataPack=_2;Ns.Server=vT;Ns.WebSocket=jg;Ns.createError=Si});var iy=Ne(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.shake256=ir.shake128=ir.keccak_512=ir.keccak_384=ir.keccak_256=ir.keccak_224=ir.sha3_512=ir.sha3_384=ir.sha3_256=ir.sha3_224=ir.Keccak=void 0;ir.keccakP=ty;var Z1=oc(),di=_n(),RT=BigInt(0),X1=BigInt(1),bT=BigInt(2),AT=BigInt(7),OT=BigInt(256),NT=BigInt(113),Zg=[],Jg=[],Qg=[];for(let t=0,e=X1,r=1,i=0;t<24;t++){[r,i]=[i,(2*r+3*i)%5],Zg.push(2*(5*i+r)),Jg.push((t+1)*(t+2)/2%64);let n=RT;for(let a=0;a<7;a++)e=(e<<X1^(e>>AT)*NT)%OT,e&bT&&(n^=X1<<(X1<<BigInt(a))-X1);Qg.push(n)}var ey=(0,Z1.split)(Qg,!0),TT=ey[0],xT=ey[1],Yg=(t,e,r)=>r>32?(0,Z1.rotlBH)(t,e,r):(0,Z1.rotlSH)(t,e,r),Xg=(t,e,r)=>r>32?(0,Z1.rotlBL)(t,e,r):(0,Z1.rotlSL)(t,e,r);function ty(t,e=24){let r=new Uint32Array(10);for(let i=24-e;i<24;i++){for(let s=0;s<10;s++)r[s]=t[s]^t[s+10]^t[s+20]^t[s+30]^t[s+40];for(let s=0;s<10;s+=2){let o=(s+8)%10,d=(s+2)%10,h=r[d],w=r[d+1],A=Yg(h,w,1)^r[o],D=Xg(h,w,1)^r[o+1];for(let I=0;I<50;I+=10)t[s+I]^=A,t[s+I+1]^=D}let n=t[2],a=t[3];for(let s=0;s<24;s++){let o=Jg[s],d=Yg(n,a,o),h=Xg(n,a,o),w=Zg[s];n=t[w],a=t[w+1],t[w]=d,t[w+1]=h}for(let s=0;s<50;s+=10){for(let o=0;o<10;o++)r[o]=t[s+o];for(let o=0;o<10;o++)t[s+o]^=~r[(o+2)%10]&r[(o+4)%10]}t[0]^=TT[i],t[1]^=xT[i]}(0,di.clean)(r)}var J1=class t extends di.Hash{constructor(e,r,i,n=!1,a=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=r,this.outputLen=i,this.enableXOF=n,this.rounds=a,(0,di.anumber)(i),!(0<e&&e<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,di.u32)(this.state)}clone(){return this._cloneInto()}keccak(){(0,di.swap32IfBE)(this.state32),ty(this.state32,this.rounds),(0,di.swap32IfBE)(this.state32),this.posOut=0,this.pos=0}update(e){(0,di.aexists)(this),e=(0,di.toBytes)(e),(0,di.abytes)(e);let{blockLen:r,state:i}=this,n=e.length;for(let a=0;a<n;){let s=Math.min(r-this.pos,n-a);for(let o=0;o<s;o++)i[this.pos++]^=e[a++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:r,pos:i,blockLen:n}=this;e[i]^=r,(r&128)!==0&&i===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,di.aexists)(this,!1),(0,di.abytes)(e),this.finish();let r=this.state,{blockLen:i}=this;for(let n=0,a=e.length;n<a;){this.posOut>=i&&this.keccak();let s=Math.min(i-this.posOut,a-n);e.set(r.subarray(this.posOut,this.posOut+s),n),this.posOut+=s,n+=s}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,di.anumber)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,di.aoutput)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,di.clean)(this.state)}_cloneInto(e){let{blockLen:r,suffix:i,outputLen:n,rounds:a,enableXOF:s}=this;return e||(e=new t(r,i,n,s,a)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=a,e.suffix=i,e.outputLen=n,e.enableXOF=s,e.destroyed=this.destroyed,e}};ir.Keccak=J1;var $a=(t,e,r)=>(0,di.createHasher)(()=>new J1(e,t,r));ir.sha3_224=$a(6,144,224/8);ir.sha3_256=$a(6,136,256/8);ir.sha3_384=$a(6,104,384/8);ir.sha3_512=$a(6,72,512/8);ir.keccak_224=$a(1,144,224/8);ir.keccak_256=$a(1,136,256/8);ir.keccak_384=$a(1,104,384/8);ir.keccak_512=$a(1,72,512/8);var ry=(t,e,r)=>(0,di.createXOFer)((i={})=>new J1(e,t,i.dkLen===void 0?r:i.dkLen,!0));ir.shake128=ry(31,168,128/8);ir.shake256=ry(31,136,256/8)});var ny=Ne(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.hmac=xs.HMAC=void 0;var Ts=_n(),Q1=class extends Ts.Hash{constructor(e,r){super(),this.finished=!1,this.destroyed=!1,(0,Ts.ahash)(e);let i=(0,Ts.toBytes)(r);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let n=this.blockLen,a=new Uint8Array(n);a.set(i.length>n?e.create().update(i).digest():i);for(let s=0;s<a.length;s++)a[s]^=54;this.iHash.update(a),this.oHash=e.create();for(let s=0;s<a.length;s++)a[s]^=106;this.oHash.update(a),(0,Ts.clean)(a)}update(e){return(0,Ts.aexists)(this),this.iHash.update(e),this}digestInto(e){(0,Ts.aexists)(this),(0,Ts.abytes)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:r,iHash:i,finished:n,destroyed:a,blockLen:s,outputLen:o}=this;return e=e,e.finished=n,e.destroyed=a,e.blockLen=s,e.outputLen=o,e.oHash=r._cloneInto(e.oHash),e.iHash=i._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}};xs.HMAC=Q1;var IT=(t,e,r)=>new Q1(t,e).update(r).digest();xs.hmac=IT;xs.hmac.create=(t,e)=>new Q1(t,e)});var w2=Ne(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.DER=nr.DERErr=void 0;nr._splitEndoScalar=sy;nr._normFnElement=za;nr.weierstrassN=v2;nr.SWUFpSqrtRatio=dy;nr.mapToCurveSimpleSWU=kT;nr.ecdh=ly;nr.ecdsa=cy;nr.weierstrassPoints=DT;nr._legacyHelperEquat=fy;nr.weierstrass=MT;var CT=ny(),LT=_n(),ke=qn(),oa=ap(),To=Oa(),ay=(t,e)=>(t+(t>=0?e:-e)/In)/e;function sy(t,e,r){let[[i,n],[a,s]]=e,o=ay(s*t,r),d=ay(-n*t,r),h=t-o*i-d*a,w=-o*n-d*s,A=h<sn,D=w<sn;A&&(h=-h),D&&(w=-w);let I=(0,ke.bitMask)(Math.ceil((0,ke.bitLen)(r)/2))+Jr;if(h<sn||h>=I||w<sn||w>=I)throw new Error("splitScalar (endomorphism): failed, k="+t);return{k1neg:A,k1:h,k2neg:D,k2:w}}function y2(t){if(!["compact","recovered","der"].includes(t))throw new Error('Signature format must be "compact", "recovered", or "der"');return t}function g2(t,e){let r={};for(let i of Object.keys(e))r[i]=t[i]===void 0?e[i]:t[i];return(0,ke._abool2)(r.lowS,"lowS"),(0,ke._abool2)(r.prehash,"prehash"),r.format!==void 0&&y2(r.format),r}var w0=class extends Error{constructor(e=""){super(e)}};nr.DERErr=w0;nr.DER={Err:w0,_tlv:{encode:(t,e)=>{let{Err:r}=nr.DER;if(t<0||t>256)throw new r("tlv.encode: wrong tag");if(e.length&1)throw new r("tlv.encode: unpadded data");let i=e.length/2,n=(0,ke.numberToHexUnpadded)(i);if(n.length/2&128)throw new r("tlv.encode: long form length too big");let a=i>127?(0,ke.numberToHexUnpadded)(n.length/2|128):"";return(0,ke.numberToHexUnpadded)(t)+a+n+e},decode(t,e){let{Err:r}=nr.DER,i=0;if(t<0||t>256)throw new r("tlv.encode: wrong tag");if(e.length<2||e[i++]!==t)throw new r("tlv.decode: wrong tlv");let n=e[i++],a=!!(n&128),s=0;if(!a)s=n;else{let d=n&127;if(!d)throw new r("tlv.decode(long): indefinite length not supported");if(d>4)throw new r("tlv.decode(long): byte length is too big");let h=e.subarray(i,i+d);if(h.length!==d)throw new r("tlv.decode: length bytes not complete");if(h[0]===0)throw new r("tlv.decode(long): zero leftmost byte");for(let w of h)s=s<<8|w;if(i+=d,s<128)throw new r("tlv.decode(long): not minimal encoding")}let o=e.subarray(i,i+s);if(o.length!==s)throw new r("tlv.decode: wrong value length");return{v:o,l:e.subarray(i+s)}}},_int:{encode(t){let{Err:e}=nr.DER;if(t<sn)throw new e("integer: negative integers are not allowed");let r=(0,ke.numberToHexUnpadded)(t);if(Number.parseInt(r[0],16)&8&&(r="00"+r),r.length&1)throw new e("unexpected DER parsing assertion: unpadded hex");return r},decode(t){let{Err:e}=nr.DER;if(t[0]&128)throw new e("invalid signature integer: negative");if(t[0]===0&&!(t[1]&128))throw new e("invalid signature integer: unnecessary leading zero");return(0,ke.bytesToNumberBE)(t)}},toSig(t){let{Err:e,_int:r,_tlv:i}=nr.DER,n=(0,ke.ensureBytes)("signature",t),{v:a,l:s}=i.decode(48,n);if(s.length)throw new e("invalid signature: left bytes after parsing");let{v:o,l:d}=i.decode(2,a),{v:h,l:w}=i.decode(2,d);if(w.length)throw new e("invalid signature: left bytes after parsing");return{r:r.decode(o),s:r.decode(h)}},hexFromSig(t){let{_tlv:e,_int:r}=nr.DER,i=e.encode(2,r.encode(t.r)),n=e.encode(2,r.encode(t.s)),a=i+n;return e.encode(48,a)}};var sn=BigInt(0),Jr=BigInt(1),In=BigInt(2),No=BigInt(3),E2=BigInt(4);function za(t,e){let{BYTES:r}=t,i;if(typeof e=="bigint")i=e;else{let n=(0,ke.ensureBytes)("private key",e);try{i=t.fromBytes(n)}catch{throw new Error(`invalid private key: expected ui8a of size ${r}, got ${typeof e}`)}}if(!t.isValidNot0(i))throw new Error("invalid private key: out of range [1..N-1]");return i}function v2(t,e={}){let r=(0,oa._createCurveFields)("weierstrass",t,e),{Fp:i,Fn:n}=r,a=r.CURVE,{h:s,n:o}=a;(0,ke._validateObject)(e,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});let{endo:d}=e;if(d&&(!i.is0(a.a)||typeof d.beta!="bigint"||!Array.isArray(d.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');let h=py(i,n);function w(){if(!i.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}function A(P,_,p){let{x:l,y:g}=_.toAffine(),E=i.toBytes(l);if((0,ke._abool2)(p,"isCompressed"),p){w();let S=!i.isOdd(g);return(0,ke.concatBytes)(oy(S),E)}else return(0,ke.concatBytes)(Uint8Array.of(4),E,i.toBytes(g))}function D(P){(0,ke._abytes2)(P,void 0,"Point");let{publicKey:_,publicKeyUncompressed:p}=h,l=P.length,g=P[0],E=P.subarray(1);if(l===_&&(g===2||g===3)){let S=i.fromBytes(E);if(!i.isValid(S))throw new Error("bad point: is not on curve, wrong x");let C=F(S),V;try{V=i.sqrt(C)}catch(M){let te=M instanceof Error?": "+M.message:"";throw new Error("bad point: is not on curve, sqrt error"+te)}w();let x=i.isOdd(V);return(g&1)===1!==x&&(V=i.neg(V)),{x:S,y:V}}else if(l===p&&g===4){let S=i.BYTES,C=i.fromBytes(E.subarray(0,S)),V=i.fromBytes(E.subarray(S,S*2));if(!$(C,V))throw new Error("bad point: is not on curve");return{x:C,y:V}}else throw new Error(`bad point: got length ${l}, expected compressed=${_} or uncompressed=${p}`)}let I=e.toBytes||A,R=e.fromBytes||D;function F(P){let _=i.sqr(P),p=i.mul(_,P);return i.add(i.add(p,i.mul(P,a.a)),a.b)}function $(P,_){let p=i.sqr(_),l=F(P);return i.eql(p,l)}if(!$(a.Gx,a.Gy))throw new Error("bad curve params: generator point");let H=i.mul(i.pow(a.a,No),E2),L=i.mul(i.sqr(a.b),BigInt(27));if(i.is0(i.add(H,L)))throw new Error("bad curve params: a or b");function q(P,_,p=!1){if(!i.isValid(_)||p&&i.is0(_))throw new Error(`bad point coordinate ${P}`);return _}function W(P){if(!(P instanceof m))throw new Error("ProjectivePoint expected")}function se(P){if(!d||!d.basises)throw new Error("no endo");return sy(P,d.basises,n.ORDER)}let N=(0,ke.memoized)((P,_)=>{let{X:p,Y:l,Z:g}=P;if(i.eql(g,i.ONE))return{x:p,y:l};let E=P.is0();_==null&&(_=E?i.ONE:i.inv(g));let S=i.mul(p,_),C=i.mul(l,_),V=i.mul(g,_);if(E)return{x:i.ZERO,y:i.ZERO};if(!i.eql(V,i.ONE))throw new Error("invZ was invalid");return{x:S,y:C}}),O=(0,ke.memoized)(P=>{if(P.is0()){if(e.allowInfinityPoint&&!i.is0(P.Y))return;throw new Error("bad point: ZERO")}let{x:_,y:p}=P.toAffine();if(!i.isValid(_)||!i.isValid(p))throw new Error("bad point: x or y not field elements");if(!$(_,p))throw new Error("bad point: equation left != right");if(!P.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function c(P,_,p,l,g){return p=new m(i.mul(p.X,P),p.Y,p.Z),_=(0,oa.negateCt)(l,_),p=(0,oa.negateCt)(g,p),_.add(p)}class m{constructor(_,p,l){this.X=q("x",_),this.Y=q("y",p,!0),this.Z=q("z",l),Object.freeze(this)}static CURVE(){return a}static fromAffine(_){let{x:p,y:l}=_||{};if(!_||!i.isValid(p)||!i.isValid(l))throw new Error("invalid affine point");if(_ instanceof m)throw new Error("projective point not allowed");return i.is0(p)&&i.is0(l)?m.ZERO:new m(p,l,i.ONE)}static fromBytes(_){let p=m.fromAffine(R((0,ke._abytes2)(_,void 0,"point")));return p.assertValidity(),p}static fromHex(_){return m.fromBytes((0,ke.ensureBytes)("pointHex",_))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(_=8,p=!0){return T.createCache(this,_),p||this.multiply(No),this}assertValidity(){O(this)}hasEvenY(){let{y:_}=this.toAffine();if(!i.isOdd)throw new Error("Field doesn't support isOdd");return!i.isOdd(_)}equals(_){W(_);let{X:p,Y:l,Z:g}=this,{X:E,Y:S,Z:C}=_,V=i.eql(i.mul(p,C),i.mul(E,g)),x=i.eql(i.mul(l,C),i.mul(S,g));return V&&x}negate(){return new m(this.X,i.neg(this.Y),this.Z)}double(){let{a:_,b:p}=a,l=i.mul(p,No),{X:g,Y:E,Z:S}=this,C=i.ZERO,V=i.ZERO,x=i.ZERO,y=i.mul(g,g),M=i.mul(E,E),te=i.mul(S,S),re=i.mul(g,E);return re=i.add(re,re),x=i.mul(g,S),x=i.add(x,x),C=i.mul(_,x),V=i.mul(l,te),V=i.add(C,V),C=i.sub(M,V),V=i.add(M,V),V=i.mul(C,V),C=i.mul(re,C),x=i.mul(l,x),te=i.mul(_,te),re=i.sub(y,te),re=i.mul(_,re),re=i.add(re,x),x=i.add(y,y),y=i.add(x,y),y=i.add(y,te),y=i.mul(y,re),V=i.add(V,y),te=i.mul(E,S),te=i.add(te,te),y=i.mul(te,re),C=i.sub(C,y),x=i.mul(te,M),x=i.add(x,x),x=i.add(x,x),new m(C,V,x)}add(_){W(_);let{X:p,Y:l,Z:g}=this,{X:E,Y:S,Z:C}=_,V=i.ZERO,x=i.ZERO,y=i.ZERO,M=a.a,te=i.mul(a.b,No),re=i.mul(p,E),oe=i.mul(l,S),me=i.mul(g,C),Ce=i.add(p,l),Te=i.add(E,S);Ce=i.mul(Ce,Te),Te=i.add(re,oe),Ce=i.sub(Ce,Te),Te=i.add(p,g);let gt=i.add(E,C);return Te=i.mul(Te,gt),gt=i.add(re,me),Te=i.sub(Te,gt),gt=i.add(l,g),V=i.add(S,C),gt=i.mul(gt,V),V=i.add(oe,me),gt=i.sub(gt,V),y=i.mul(M,Te),V=i.mul(te,me),y=i.add(V,y),V=i.sub(oe,y),y=i.add(oe,y),x=i.mul(V,y),oe=i.add(re,re),oe=i.add(oe,re),me=i.mul(M,me),Te=i.mul(te,Te),oe=i.add(oe,me),me=i.sub(re,me),me=i.mul(M,me),Te=i.add(Te,me),re=i.mul(oe,Te),x=i.add(x,re),re=i.mul(gt,Te),V=i.mul(Ce,V),V=i.sub(V,re),re=i.mul(Ce,oe),y=i.mul(gt,y),y=i.add(y,re),new m(V,x,y)}subtract(_){return this.add(_.negate())}is0(){return this.equals(m.ZERO)}multiply(_){let{endo:p}=e;if(!n.isValidNot0(_))throw new Error("invalid scalar: out of range");let l,g,E=S=>T.cached(this,S,C=>(0,oa.normalizeZ)(m,C));if(p){let{k1neg:S,k1:C,k2neg:V,k2:x}=se(_),{p:y,f:M}=E(C),{p:te,f:re}=E(x);g=M.add(re),l=c(p.beta,y,te,S,V)}else{let{p:S,f:C}=E(_);l=S,g=C}return(0,oa.normalizeZ)(m,[l,g])[0]}multiplyUnsafe(_){let{endo:p}=e,l=this;if(!n.isValid(_))throw new Error("invalid scalar: out of range");if(_===sn||l.is0())return m.ZERO;if(_===Jr)return l;if(T.hasCache(this))return this.multiply(_);if(p){let{k1neg:g,k1:E,k2neg:S,k2:C}=se(_),{p1:V,p2:x}=(0,oa.mulEndoUnsafe)(m,l,E,C);return c(p.beta,V,x,g,S)}else return T.unsafe(l,_)}multiplyAndAddUnsafe(_,p,l){let g=this.multiplyUnsafe(p).add(_.multiplyUnsafe(l));return g.is0()?void 0:g}toAffine(_){return N(this,_)}isTorsionFree(){let{isTorsionFree:_}=e;return s===Jr?!0:_?_(m,this):T.unsafe(this,o).is0()}clearCofactor(){let{clearCofactor:_}=e;return s===Jr?this:_?_(m,this):this.multiplyUnsafe(s)}isSmallOrder(){return this.multiplyUnsafe(s).is0()}toBytes(_=!0){return(0,ke._abool2)(_,"isCompressed"),this.assertValidity(),I(m,this,_)}toHex(_=!0){return(0,ke.bytesToHex)(this.toBytes(_))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(_=!0){return this.toBytes(_)}_setWindowSize(_){this.precompute(_)}static normalizeZ(_){return(0,oa.normalizeZ)(m,_)}static msm(_,p){return(0,oa.pippenger)(m,n,_,p)}static fromPrivateKey(_){return m.BASE.multiply(za(n,_))}}m.BASE=new m(a.Gx,a.Gy,i.ONE),m.ZERO=new m(i.ZERO,i.ONE,i.ZERO),m.Fp=i,m.Fn=n;let v=n.BITS,T=new oa.wNAF(m,e.endo?Math.ceil(v/2):v);return m.BASE.precompute(8),m}function oy(t){return Uint8Array.of(t?2:3)}function dy(t,e){let r=t.ORDER,i=sn;for(let R=r-Jr;R%In===sn;R/=In)i+=Jr;let n=i,a=In<<n-Jr-Jr,s=a*In,o=(r-Jr)/s,d=(o-Jr)/In,h=s-Jr,w=a,A=t.pow(e,o),D=t.pow(e,(o+Jr)/In),I=(R,F)=>{let $=A,H=t.pow(F,h),L=t.sqr(H);L=t.mul(L,F);let q=t.mul(R,L);q=t.pow(q,d),q=t.mul(q,H),H=t.mul(q,F),L=t.mul(q,R);let W=t.mul(L,H);q=t.pow(W,w);let se=t.eql(q,t.ONE);H=t.mul(L,D),q=t.mul(W,$),L=t.cmov(H,L,se),W=t.cmov(q,W,se);for(let N=n;N>Jr;N--){let O=N-In;O=In<<O-Jr;let c=t.pow(W,O),m=t.eql(c,t.ONE);H=t.mul(L,$),$=t.mul($,$),c=t.mul(W,$),L=t.cmov(H,L,m),W=t.cmov(c,W,m)}return{isValid:se,value:L}};if(t.ORDER%E2===No){let R=(t.ORDER-No)/E2,F=t.sqrt(t.neg(e));I=($,H)=>{let L=t.sqr(H),q=t.mul($,H);L=t.mul(L,q);let W=t.pow(L,R);W=t.mul(W,q);let se=t.mul(W,F),N=t.mul(t.sqr(W),H),O=t.eql(N,$),c=t.cmov(se,W,O);return{isValid:O,value:c}}}return I}function kT(t,e){(0,To.validateField)(t);let{A:r,B:i,Z:n}=e;if(!t.isValid(r)||!t.isValid(i)||!t.isValid(n))throw new Error("mapToCurveSimpleSWU: invalid opts");let a=dy(t,n);if(!t.isOdd)throw new Error("Field does not have .isOdd()");return s=>{let o,d,h,w,A,D,I,R;o=t.sqr(s),o=t.mul(o,n),d=t.sqr(o),d=t.add(d,o),h=t.add(d,t.ONE),h=t.mul(h,i),w=t.cmov(n,t.neg(d),!t.eql(d,t.ZERO)),w=t.mul(w,r),d=t.sqr(h),D=t.sqr(w),A=t.mul(D,r),d=t.add(d,A),d=t.mul(d,h),D=t.mul(D,w),A=t.mul(D,i),d=t.add(d,A),I=t.mul(o,h);let{isValid:F,value:$}=a(d,D);R=t.mul(o,s),R=t.mul(R,$),I=t.cmov(I,h,F),R=t.cmov(R,$,F);let H=t.isOdd(s)===t.isOdd(R);R=t.cmov(t.neg(R),R,H);let L=(0,To.FpInvertBatch)(t,[w],!0)[0];return I=t.mul(I,L),{x:I,y:R}}}function py(t,e){return{secretKey:e.BYTES,publicKey:1+t.BYTES,publicKeyUncompressed:1+2*t.BYTES,publicKeyHasPrefix:!0,signature:2*e.BYTES}}function ly(t,e={}){let{Fn:r}=t,i=e.randomBytes||ke.randomBytes,n=Object.assign(py(t.Fp,r),{seed:(0,To.getMinHashLength)(r.ORDER)});function a(I){try{return!!za(r,I)}catch{return!1}}function s(I,R){let{publicKey:F,publicKeyUncompressed:$}=n;try{let H=I.length;return R===!0&&H!==F||R===!1&&H!==$?!1:!!t.fromBytes(I)}catch{return!1}}function o(I=i(n.seed)){return(0,To.mapHashToField)((0,ke._abytes2)(I,n.seed,"seed"),r.ORDER)}function d(I,R=!0){return t.BASE.multiply(za(r,I)).toBytes(R)}function h(I){let R=o(I);return{secretKey:R,publicKey:d(R)}}function w(I){if(typeof I=="bigint")return!1;if(I instanceof t)return!0;let{secretKey:R,publicKey:F,publicKeyUncompressed:$}=n;if(r.allowedLengths||R===F)return;let H=(0,ke.ensureBytes)("key",I).length;return H===F||H===$}function A(I,R,F=!0){if(w(I)===!0)throw new Error("first arg must be private key");if(w(R)===!1)throw new Error("second arg must be public key");let $=za(r,I);return t.fromHex(R).multiply($).toBytes(F)}return Object.freeze({getPublicKey:d,getSharedSecret:A,keygen:h,Point:t,utils:{isValidSecretKey:a,isValidPublicKey:s,randomSecretKey:o,isValidPrivateKey:a,randomPrivateKey:o,normPrivateKeyToScalar:I=>za(r,I),precompute(I=8,R=t.BASE){return R.precompute(I,!1)}},lengths:n})}function cy(t,e,r={}){(0,LT.ahash)(e),(0,ke._validateObject)(r,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});let i=r.randomBytes||ke.randomBytes,n=r.hmac||((p,...l)=>(0,CT.hmac)(e,p,(0,ke.concatBytes)(...l))),{Fp:a,Fn:s}=t,{ORDER:o,BITS:d}=s,{keygen:h,getPublicKey:w,getSharedSecret:A,utils:D,lengths:I}=ly(t,r),R={prehash:!1,lowS:typeof r.lowS=="boolean"?r.lowS:!1,format:void 0,extraEntropy:!1},F="compact";function $(p){let l=o>>Jr;return p>l}function H(p,l){if(!s.isValidNot0(l))throw new Error(`invalid signature ${p}: out of range 1..Point.Fn.ORDER`);return l}function L(p,l){y2(l);let g=I.signature,E=l==="compact"?g:l==="recovered"?g+1:void 0;return(0,ke._abytes2)(p,E,`${l} signature`)}class q{constructor(l,g,E){this.r=H("r",l),this.s=H("s",g),E!=null&&(this.recovery=E),Object.freeze(this)}static fromBytes(l,g=F){L(l,g);let E;if(g==="der"){let{r:x,s:y}=nr.DER.toSig((0,ke._abytes2)(l));return new q(x,y)}g==="recovered"&&(E=l[0],g="compact",l=l.subarray(1));let S=s.BYTES,C=l.subarray(0,S),V=l.subarray(S,S*2);return new q(s.fromBytes(C),s.fromBytes(V),E)}static fromHex(l,g){return this.fromBytes((0,ke.hexToBytes)(l),g)}addRecoveryBit(l){return new q(this.r,this.s,l)}recoverPublicKey(l){let g=a.ORDER,{r:E,s:S,recovery:C}=this;if(C==null||![0,1,2,3].includes(C))throw new Error("recovery id invalid");if(o*In<g&&C>1)throw new Error("recovery id is ambiguous for h>1 curve");let x=C===2||C===3?E+o:E;if(!a.isValid(x))throw new Error("recovery id 2 or 3 invalid");let y=a.toBytes(x),M=t.fromBytes((0,ke.concatBytes)(oy((C&1)===0),y)),te=s.inv(x),re=se((0,ke.ensureBytes)("msgHash",l)),oe=s.create(-re*te),me=s.create(S*te),Ce=t.BASE.multiplyUnsafe(oe).add(M.multiplyUnsafe(me));if(Ce.is0())throw new Error("point at infinify");return Ce.assertValidity(),Ce}hasHighS(){return $(this.s)}toBytes(l=F){if(y2(l),l==="der")return(0,ke.hexToBytes)(nr.DER.hexFromSig(this));let g=s.toBytes(this.r),E=s.toBytes(this.s);if(l==="recovered"){if(this.recovery==null)throw new Error("recovery bit must be present");return(0,ke.concatBytes)(Uint8Array.of(this.recovery),g,E)}return(0,ke.concatBytes)(g,E)}toHex(l){return(0,ke.bytesToHex)(this.toBytes(l))}assertValidity(){}static fromCompact(l){return q.fromBytes((0,ke.ensureBytes)("sig",l),"compact")}static fromDER(l){return q.fromBytes((0,ke.ensureBytes)("sig",l),"der")}normalizeS(){return this.hasHighS()?new q(this.r,s.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return(0,ke.bytesToHex)(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return(0,ke.bytesToHex)(this.toBytes("compact"))}}let W=r.bits2int||function(l){if(l.length>8192)throw new Error("input is too large");let g=(0,ke.bytesToNumberBE)(l),E=l.length*8-d;return E>0?g>>BigInt(E):g},se=r.bits2int_modN||function(l){return s.create(W(l))},N=(0,ke.bitMask)(d);function O(p){return(0,ke.aInRange)("num < 2^"+d,p,sn,N),s.toBytes(p)}function c(p,l){return(0,ke._abytes2)(p,void 0,"message"),l?(0,ke._abytes2)(e(p),void 0,"prehashed message"):p}function m(p,l,g){if(["recovered","canonical"].some(oe=>oe in g))throw new Error("sign() legacy options not supported");let{lowS:E,prehash:S,extraEntropy:C}=g2(g,R);p=c(p,S);let V=se(p),x=za(s,l),y=[O(x),O(V)];if(C!=null&&C!==!1){let oe=C===!0?i(I.secretKey):C;y.push((0,ke.ensureBytes)("extraEntropy",oe))}let M=(0,ke.concatBytes)(...y),te=V;function re(oe){let me=W(oe);if(!s.isValidNot0(me))return;let Ce=s.inv(me),Te=t.BASE.multiply(me).toAffine(),gt=s.create(Te.x);if(gt===sn)return;let Fe=s.create(Ce*s.create(te+gt*x));if(Fe===sn)return;let tt=(Te.x===gt?0:2)|Number(Te.y&Jr),er=Fe;return E&&$(Fe)&&(er=s.neg(Fe),tt^=1),new q(gt,er,tt)}return{seed:M,k2sig:re}}function v(p,l,g={}){p=(0,ke.ensureBytes)("message",p);let{seed:E,k2sig:S}=m(p,l,g);return(0,ke.createHmacDrbg)(e.outputLen,s.BYTES,n)(E,S)}function T(p){let l,g=typeof p=="string"||(0,ke.isBytes)(p),E=!g&&p!==null&&typeof p=="object"&&typeof p.r=="bigint"&&typeof p.s=="bigint";if(!g&&!E)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");if(E)l=new q(p.r,p.s);else if(g){try{l=q.fromBytes((0,ke.ensureBytes)("sig",p),"der")}catch(S){if(!(S instanceof nr.DER.Err))throw S}if(!l)try{l=q.fromBytes((0,ke.ensureBytes)("sig",p),"compact")}catch{return!1}}return l||!1}function P(p,l,g,E={}){let{lowS:S,prehash:C,format:V}=g2(E,R);if(g=(0,ke.ensureBytes)("publicKey",g),l=c((0,ke.ensureBytes)("message",l),C),"strict"in E)throw new Error("options.strict was renamed to lowS");let x=V===void 0?T(p):q.fromBytes((0,ke.ensureBytes)("sig",p),V);if(x===!1)return!1;try{let y=t.fromBytes(g);if(S&&x.hasHighS())return!1;let{r:M,s:te}=x,re=se(l),oe=s.inv(te),me=s.create(re*oe),Ce=s.create(M*oe),Te=t.BASE.multiplyUnsafe(me).add(y.multiplyUnsafe(Ce));return Te.is0()?!1:s.create(Te.x)===M}catch{return!1}}function _(p,l,g={}){let{prehash:E}=g2(g,R);return l=c(l,E),q.fromBytes(p,"recovered").recoverPublicKey(l).toBytes()}return Object.freeze({keygen:h,getPublicKey:w,getSharedSecret:A,utils:D,lengths:I,Point:t,sign:v,verify:P,recoverPublicKey:_,Signature:q,hash:e})}function DT(t){let{CURVE:e,curveOpts:r}=uy(t),i=v2(e,r);return PT(t,i)}function uy(t){let e={a:t.a,b:t.b,p:t.Fp.ORDER,n:t.n,h:t.h,Gx:t.Gx,Gy:t.Gy},r=t.Fp,i=t.allowedPrivateKeyLengths?Array.from(new Set(t.allowedPrivateKeyLengths.map(s=>Math.ceil(s/2)))):void 0,n=(0,To.Field)(e.n,{BITS:t.nBitLength,allowedLengths:i,modFromBytes:t.wrapPrivateKey}),a={Fp:r,Fn:n,allowInfinityPoint:t.allowInfinityPoint,endo:t.endo,isTorsionFree:t.isTorsionFree,clearCofactor:t.clearCofactor,fromBytes:t.fromBytes,toBytes:t.toBytes};return{CURVE:e,curveOpts:a}}function BT(t){let{CURVE:e,curveOpts:r}=uy(t),i={hmac:t.hmac,randomBytes:t.randomBytes,lowS:t.lowS,bits2int:t.bits2int,bits2int_modN:t.bits2int_modN};return{CURVE:e,curveOpts:r,hash:t.hash,ecdsaOpts:i}}function fy(t,e,r){function i(n){let a=t.sqr(n),s=t.mul(a,n);return t.add(t.add(s,t.mul(n,e)),r)}return i}function PT(t,e){let{Fp:r,Fn:i}=e;function n(s){return(0,ke.inRange)(s,Jr,i.ORDER)}let a=fy(r,t.a,t.b);return Object.assign({},{CURVE:t,Point:e,ProjectivePoint:e,normPrivateKeyToScalar:s=>za(i,s),weierstrassEquation:a,isWithinCurveOrder:n})}function UT(t,e){let r=e.Point;return Object.assign({},e,{ProjectivePoint:r,CURVE:Object.assign({},t,(0,To.nLength)(r.Fn.ORDER,r.Fn.BITS))})}function MT(t){let{CURVE:e,curveOpts:r,hash:i,ecdsaOpts:n}=BT(t),a=v2(e,r),s=cy(a,i,n);return UT(t,s)}});var hy=Ne(S0=>{"use strict";Object.defineProperty(S0,"__esModule",{value:!0});S0.getHash=VT;S0.createCurve=$T;var FT=w2();function VT(t){return{hash:t}}function $T(t,e){let r=i=>(0,FT.weierstrass)({...t,hash:i});return{...r(e),create:r}}});var by=Ne(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.encodeToCurve=Qr.hashToCurve=Qr.secp256k1_hasher=Qr.schnorr=Qr.secp256k1=void 0;var R0=ep(),yy=_n(),zT=hy(),Ey=Rc(),gi=Oa(),vy=w2(),xi=qn(),xo={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},HT={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},GT=BigInt(0),my=BigInt(1),S2=BigInt(2);function qT(t){let e=xo.p,r=BigInt(3),i=BigInt(6),n=BigInt(11),a=BigInt(22),s=BigInt(23),o=BigInt(44),d=BigInt(88),h=t*t*t%e,w=h*h*t%e,A=(0,gi.pow2)(w,r,e)*w%e,D=(0,gi.pow2)(A,r,e)*w%e,I=(0,gi.pow2)(D,S2,e)*h%e,R=(0,gi.pow2)(I,n,e)*I%e,F=(0,gi.pow2)(R,a,e)*R%e,$=(0,gi.pow2)(F,o,e)*F%e,H=(0,gi.pow2)($,d,e)*$%e,L=(0,gi.pow2)(H,o,e)*F%e,q=(0,gi.pow2)(L,r,e)*w%e,W=(0,gi.pow2)(q,s,e)*R%e,se=(0,gi.pow2)(W,i,e)*h%e,N=(0,gi.pow2)(se,S2,e);if(!da.eql(da.sqr(N),t))throw new Error("Cannot find square root");return N}var da=(0,gi.Field)(xo.p,{sqrt:qT});Qr.secp256k1=(0,zT.createCurve)({...xo,Fp:da,lowS:!0,endo:HT},R0.sha256);var _y={};function b0(t,...e){let r=_y[t];if(r===void 0){let i=(0,R0.sha256)((0,xi.utf8ToBytes)(t));r=(0,xi.concatBytes)(i,i),_y[t]=r}return(0,R0.sha256)((0,xi.concatBytes)(r,...e))}var b2=t=>t.toBytes(!0).slice(1),Io=Qr.secp256k1.Point,A2=t=>t%S2===GT;function R2(t){let{Fn:e,BASE:r}=Io,i=(0,vy._normFnElement)(e,t),n=r.multiply(i);return{scalar:A2(n.y)?i:e.neg(i),bytes:b2(n)}}function wy(t){let e=da;if(!e.isValidNot0(t))throw new Error("invalid x: Fail if x \u2265 p");let r=e.create(t*t),i=e.create(r*t+BigInt(7)),n=e.sqrt(i);A2(n)||(n=e.neg(n));let a=Io.fromAffine({x:t,y:n});return a.assertValidity(),a}var ed=xi.bytesToNumberBE;function Sy(...t){return Io.Fn.create(ed(b0("BIP0340/challenge",...t)))}function gy(t){return R2(t).bytes}function jT(t,e,r=(0,yy.randomBytes)(32)){let{Fn:i}=Io,n=(0,xi.ensureBytes)("message",t),{bytes:a,scalar:s}=R2(e),o=(0,xi.ensureBytes)("auxRand",r,32),d=i.toBytes(s^ed(b0("BIP0340/aux",o))),h=b0("BIP0340/nonce",d,a,n),{bytes:w,scalar:A}=R2(h),D=Sy(w,a,n),I=new Uint8Array(64);if(I.set(w,0),I.set(i.toBytes(i.create(A+D*s)),32),!Ry(I,n,a))throw new Error("sign: Invalid signature produced");return I}function Ry(t,e,r){let{Fn:i,BASE:n}=Io,a=(0,xi.ensureBytes)("signature",t,64),s=(0,xi.ensureBytes)("message",e),o=(0,xi.ensureBytes)("publicKey",r,32);try{let d=wy(ed(o)),h=ed(a.subarray(0,32));if(!(0,xi.inRange)(h,my,xo.p))return!1;let w=ed(a.subarray(32,64));if(!(0,xi.inRange)(w,my,xo.n))return!1;let A=Sy(i.toBytes(h),b2(d),s),D=n.multiplyUnsafe(w).add(d.multiplyUnsafe(i.neg(A))),{x:I,y:R}=D.toAffine();return!(D.is0()||!A2(R)||I!==h)}catch{return!1}}Qr.schnorr=(()=>{let r=(n=(0,yy.randomBytes)(48))=>(0,gi.mapHashToField)(n,xo.n);Qr.secp256k1.utils.randomSecretKey;function i(n){let a=r(n);return{secretKey:a,publicKey:gy(a)}}return{keygen:i,getPublicKey:gy,sign:jT,verify:Ry,Point:Io,utils:{randomSecretKey:r,randomPrivateKey:r,taggedHash:b0,lift_x:wy,pointToBytes:b2,numberToBytesBE:xi.numberToBytesBE,bytesToNumberBE:xi.bytesToNumberBE,mod:gi.mod},lengths:{secretKey:32,publicKey:32,publicKeyHasPrefix:!1,signature:64,seed:48}}})();var KT=(0,Ey.isogenyMap)(da,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(t=>t.map(e=>BigInt(e)))),WT=(0,vy.mapToCurveSimpleSWU)(da,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:da.create(BigInt("-11"))});Qr.secp256k1_hasher=(0,Ey.createHasher)(Qr.secp256k1.Point,t=>{let{x:e,y:r}=WT(da.create(t[0]));return KT(e,r)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:da.ORDER,m:1,k:128,expand:"xmd",hash:R0.sha256});Qr.hashToCurve=Qr.secp256k1_hasher.hashToCurve;Qr.encodeToCurve=Qr.secp256k1_hasher.encodeToCurve});var Ps=Ne(_e=>{"use strict";var je=Xe("buffer"),Mo=o6(),YT=Lc(),XT=h6(),Ay=m6(),O2=A6(),eE=ys(),tE=J9(),ZT=Xe("util"),JT=Xe("http"),M2=Xe("https"),u=e7(),QT=R7(),ex=d_(),Oy=Wg(),Ny=iy(),af=by();function Fo(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}function rE(t){if(t&&typeof t=="object"&&"default"in t)return t;var e=Object.create(null);return t&&Object.keys(t).forEach(function(r){if(r!=="default"){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}}),e.default=t,Object.freeze(e)}var Ty=Fo(YT),Br=Fo(XT),G=rE(eE),iE=Fo(ZT),tx=Fo(JT),rx=Fo(M2),ix=Fo(QT),nx=rE(ex),ax=Mo.ed25519.utils.randomPrivateKey,xy=()=>{let t=Mo.ed25519.utils.randomPrivateKey(),e=x0(t),r=new Uint8Array(64);return r.set(t),r.set(e,32),{publicKey:e,secretKey:r}},x0=Mo.ed25519.getPublicKey;function Iy(t){try{return Mo.ed25519.ExtendedPoint.fromHex(t),!0}catch{return!1}}var sf=(t,e)=>Mo.ed25519.sign(t,e.slice(0,32)),sx=Mo.ed25519.verify,ut=t=>je.Buffer.isBuffer(t)?t:t instanceof Uint8Array?je.Buffer.from(t.buffer,t.byteOffset,t.byteLength):je.Buffer.from(t),id=class{constructor(e){Object.assign(this,e)}encode(){return je.Buffer.from(O2.serialize(rd,this))}static decode(e){return O2.deserialize(rd,this,e)}static decodeUnchecked(e){return O2.deserializeUnchecked(rd,this,e)}},F2=class extends id{constructor(e){if(super(e),this.enum="",Object.keys(e).length!==1)throw new Error("Enum can only take single value");Object.keys(e).map(r=>{this.enum=r})}},rd=new Map,nE,aE=32,Gi=32;function ox(t){return t._bn!==void 0}var Cy=1,ye=class t extends id{constructor(e){if(super({}),this._bn=void 0,ox(e))this._bn=e._bn;else{if(typeof e=="string"){let r=Br.default.decode(e);if(r.length!=Gi)throw new Error("Invalid public key input");this._bn=new Ty.default(r)}else this._bn=new Ty.default(e);if(this._bn.byteLength()>Gi)throw new Error("Invalid public key input")}}static unique(){let e=new t(Cy);return Cy+=1,new t(e.toBuffer())}equals(e){return this._bn.eq(e._bn)}toBase58(){return Br.default.encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){let e=this.toBuffer();return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}toBuffer(){let e=this._bn.toArrayLike(je.Buffer);if(e.length===Gi)return e;let r=je.Buffer.alloc(32);return e.copy(r,32-e.length),r}get[Symbol.toStringTag](){return`PublicKey(${this.toString()})`}toString(){return this.toBase58()}static async createWithSeed(e,r,i){let n=je.Buffer.concat([e.toBuffer(),je.Buffer.from(r),i.toBuffer()]),a=Ay.sha256(n);return new t(a)}static createProgramAddressSync(e,r){let i=je.Buffer.alloc(0);e.forEach(function(a){if(a.length>aE)throw new TypeError("Max seed length exceeded");i=je.Buffer.concat([i,ut(a)])}),i=je.Buffer.concat([i,r.toBuffer(),je.Buffer.from("ProgramDerivedAddress")]);let n=Ay.sha256(i);if(Iy(n))throw new Error("Invalid seeds, address must fall off the curve");return new t(n)}static async createProgramAddress(e,r){return this.createProgramAddressSync(e,r)}static findProgramAddressSync(e,r){let i=255,n;for(;i!=0;){try{let a=e.concat(je.Buffer.from([i]));n=this.createProgramAddressSync(a,r)}catch(a){if(a instanceof TypeError)throw a;i--;continue}return[n,i]}throw new Error("Unable to find a viable program address nonce")}static async findProgramAddress(e,r){return this.findProgramAddressSync(e,r)}static isOnCurve(e){let r=new t(e);return Iy(r.toBytes())}};nE=ye;ye.default=new nE("11111111111111111111111111111111");rd.set(ye,{kind:"struct",fields:[["_bn","u256"]]});var V2=class{constructor(e){if(this._publicKey=void 0,this._secretKey=void 0,e){let r=ut(e);if(e.length!==64)throw new Error("bad secret key size");this._publicKey=r.slice(32,64),this._secretKey=r.slice(0,32)}else this._secretKey=ut(ax()),this._publicKey=ut(x0(this._secretKey))}get publicKey(){return new ye(this._publicKey)}get secretKey(){return je.Buffer.concat([this._secretKey,this._publicKey],64)}},dx=new ye("BPFLoader1111111111111111111111111111111111"),qa=1232,cd=127,Ha=64,sE=129,px=4096,nd=class extends Error{constructor(e){super(`Signature ${e} has expired: block height exceeded.`),this.signature=void 0,this.signature=e}};Object.defineProperty(nd.prototype,"name",{value:"TransactionExpiredBlockheightExceededError"});var ad=class extends Error{constructor(e,r){super(`Transaction was not confirmed in ${r.toFixed(2)} seconds. It is unknown if it succeeded or failed. Check signature ${e} using the Solana Explorer or CLI tools.`),this.signature=void 0,this.signature=e}};Object.defineProperty(ad.prototype,"name",{value:"TransactionExpiredTimeoutError"});var Ga=class extends Error{constructor(e){super(`Signature ${e} has expired: the nonce is no longer valid.`),this.signature=void 0,this.signature=e}};Object.defineProperty(Ga.prototype,"name",{value:"TransactionExpiredNonceInvalidError"});var ja=class{constructor(e,r){this.staticAccountKeys=void 0,this.accountKeysFromLookups=void 0,this.staticAccountKeys=e,this.accountKeysFromLookups=r}keySegments(){let e=[this.staticAccountKeys];return this.accountKeysFromLookups&&(e.push(this.accountKeysFromLookups.writable),e.push(this.accountKeysFromLookups.readonly)),e}get(e){for(let r of this.keySegments()){if(e<r.length)return r[e];e-=r.length}}get length(){return this.keySegments().flat().length}compileInstructions(e){if(this.length>256)throw new Error("Account index overflow encountered during compilation");let i=new Map;this.keySegments().flat().forEach((a,s)=>{i.set(a.toBase58(),s)});let n=a=>{let s=i.get(a.toBase58());if(s===void 0)throw new Error("Encountered an unknown instruction account key during compilation");return s};return e.map(a=>({programIdIndex:n(a.programId),accountKeyIndexes:a.keys.map(s=>n(s.pubkey)),data:a.data}))}},vt=(t="publicKey")=>G.blob(32,t),lx=(t="signature")=>G.blob(64,t),Cs=(t="string")=>{let e=G.struct([G.u32("length"),G.u32("lengthPadding"),G.blob(G.offset(G.u32(),-8),"chars")],t),r=e.decode.bind(e),i=e.encode.bind(e),n=e;return n.decode=(a,s)=>r(a,s).chars.toString(),n.encode=(a,s,o)=>{let d={chars:je.Buffer.from(a,"utf8")};return i(d,s,o)},n.alloc=a=>G.u32().span+G.u32().span+je.Buffer.from(a,"utf8").length,n},cx=(t="authorized")=>G.struct([vt("staker"),vt("withdrawer")],t),ux=(t="lockup")=>G.struct([G.ns64("unixTimestamp"),G.ns64("epoch"),vt("custodian")],t),fx=(t="voteInit")=>G.struct([vt("nodePubkey"),vt("authorizedVoter"),vt("authorizedWithdrawer"),G.u8("commission")],t),hx=(t="voteAuthorizeWithSeedArgs")=>G.struct([G.u32("voteAuthorizationType"),vt("currentAuthorityDerivedKeyOwnerPubkey"),Cs("currentAuthorityDerivedKeySeed"),vt("newAuthorized")],t);function oE(t,e){let r=n=>{if(n.span>=0)return n.span;if(typeof n.alloc=="function")return n.alloc(e[n.property]);if("count"in n&&"elementLayout"in n){let a=e[n.property];if(Array.isArray(a))return a.length*r(n.elementLayout)}else if("fields"in n)return oE({layout:n},e[n.property]);return 0},i=0;return t.layout.fields.forEach(n=>{i+=r(n)}),i}function Ri(t){let e=0,r=0;for(;;){let i=t.shift();if(e|=(i&127)<<r*7,r+=1,(i&128)===0)break}return e}function Ii(t,e){let r=e;for(;;){let i=r&127;if(r>>=7,r==0){t.push(i);break}else i|=128,t.push(i)}}function ht(t,e){if(!t)throw new Error(e||"Assertion failed")}var I0=class t{constructor(e,r){this.payer=void 0,this.keyMetaMap=void 0,this.payer=e,this.keyMetaMap=r}static compile(e,r){let i=new Map,n=s=>{let o=s.toBase58(),d=i.get(o);return d===void 0&&(d={isSigner:!1,isWritable:!1,isInvoked:!1},i.set(o,d)),d},a=n(r);a.isSigner=!0,a.isWritable=!0;for(let s of e){n(s.programId).isInvoked=!0;for(let o of s.keys){let d=n(o.pubkey);d.isSigner||=o.isSigner,d.isWritable||=o.isWritable}}return new t(r,i)}getMessageComponents(){let e=[...this.keyMetaMap.entries()];ht(e.length<=256,"Max static account keys length exceeded");let r=e.filter(([,d])=>d.isSigner&&d.isWritable),i=e.filter(([,d])=>d.isSigner&&!d.isWritable),n=e.filter(([,d])=>!d.isSigner&&d.isWritable),a=e.filter(([,d])=>!d.isSigner&&!d.isWritable),s={numRequiredSignatures:r.length+i.length,numReadonlySignedAccounts:i.length,numReadonlyUnsignedAccounts:a.length};{ht(r.length>0,"Expected at least one writable signer key");let[d]=r[0];ht(d===this.payer.toBase58(),"Expected first writable signer key to be the fee payer")}let o=[...r.map(([d])=>new ye(d)),...i.map(([d])=>new ye(d)),...n.map(([d])=>new ye(d)),...a.map(([d])=>new ye(d))];return[s,o]}extractTableLookup(e){let[r,i]=this.drainKeysFoundInLookupTable(e.state.addresses,s=>!s.isSigner&&!s.isInvoked&&s.isWritable),[n,a]=this.drainKeysFoundInLookupTable(e.state.addresses,s=>!s.isSigner&&!s.isInvoked&&!s.isWritable);if(!(r.length===0&&n.length===0))return[{accountKey:e.key,writableIndexes:r,readonlyIndexes:n},{writable:i,readonly:a}]}drainKeysFoundInLookupTable(e,r){let i=new Array,n=new Array;for(let[a,s]of this.keyMetaMap.entries())if(r(s)){let o=new ye(a),d=e.findIndex(h=>h.equals(o));d>=0&&(ht(d<256,"Max lookup table index exceeded"),i.push(d),n.push(o),this.keyMetaMap.delete(a))}return[i,n]}},dE="Reached end of buffer unexpectedly";function Cr(t){if(t.length===0)throw new Error(dE);return t.shift()}function Lr(t,...e){let[r]=e;if(e.length===2?r+(e[1]??0)>t.length:r>=t.length)throw new Error(dE);return t.splice(...e)}var Dn=class t{constructor(e){this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=e.header,this.accountKeys=e.accountKeys.map(r=>new ye(r)),this.recentBlockhash=e.recentBlockhash,this.instructions=e.instructions,this.instructions.forEach(r=>this.indexToProgramIds.set(r.programIdIndex,this.accountKeys[r.programIdIndex]))}get version(){return"legacy"}get staticAccountKeys(){return this.accountKeys}get compiledInstructions(){return this.instructions.map(e=>({programIdIndex:e.programIdIndex,accountKeyIndexes:e.accounts,data:Br.default.decode(e.data)}))}get addressTableLookups(){return[]}getAccountKeys(){return new ja(this.staticAccountKeys)}static compile(e){let r=I0.compile(e.instructions,e.payerKey),[i,n]=r.getMessageComponents(),s=new ja(n).compileInstructions(e.instructions).map(o=>({programIdIndex:o.programIdIndex,accounts:o.accountKeyIndexes,data:Br.default.encode(o.data)}));return new t({header:i,accountKeys:n,recentBlockhash:e.recentBlockhash,instructions:s})}isAccountSigner(e){return e<this.header.numRequiredSignatures}isAccountWritable(e){let r=this.header.numRequiredSignatures;if(e>=this.header.numRequiredSignatures){let i=e-r,a=this.accountKeys.length-r-this.header.numReadonlyUnsignedAccounts;return i<a}else{let i=r-this.header.numReadonlySignedAccounts;return e<i}}isProgramId(e){return this.indexToProgramIds.has(e)}programIds(){return[...this.indexToProgramIds.values()]}nonProgramIds(){return this.accountKeys.filter((e,r)=>!this.isProgramId(r))}serialize(){let e=this.accountKeys.length,r=[];Ii(r,e);let i=this.instructions.map(A=>{let{accounts:D,programIdIndex:I}=A,R=Array.from(Br.default.decode(A.data)),F=[];Ii(F,D.length);let $=[];return Ii($,R.length),{programIdIndex:I,keyIndicesCount:je.Buffer.from(F),keyIndices:D,dataLength:je.Buffer.from($),data:R}}),n=[];Ii(n,i.length);let a=je.Buffer.alloc(qa);je.Buffer.from(n).copy(a);let s=n.length;i.forEach(A=>{let I=G.struct([G.u8("programIdIndex"),G.blob(A.keyIndicesCount.length,"keyIndicesCount"),G.seq(G.u8("keyIndex"),A.keyIndices.length,"keyIndices"),G.blob(A.dataLength.length,"dataLength"),G.seq(G.u8("userdatum"),A.data.length,"data")]).encode(A,a,s);s+=I}),a=a.slice(0,s);let o=G.struct([G.blob(1,"numRequiredSignatures"),G.blob(1,"numReadonlySignedAccounts"),G.blob(1,"numReadonlyUnsignedAccounts"),G.blob(r.length,"keyCount"),G.seq(vt("key"),e,"keys"),vt("recentBlockhash")]),d={numRequiredSignatures:je.Buffer.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:je.Buffer.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:je.Buffer.from([this.header.numReadonlyUnsignedAccounts]),keyCount:je.Buffer.from(r),keys:this.accountKeys.map(A=>ut(A.toBytes())),recentBlockhash:Br.default.decode(this.recentBlockhash)},h=je.Buffer.alloc(2048),w=o.encode(d,h);return a.copy(h,w),h.slice(0,w+a.length)}static from(e){let r=[...e],i=Cr(r);if(i!==(i&cd))throw new Error("Versioned messages must be deserialized with VersionedMessage.deserialize()");let n=Cr(r),a=Cr(r),s=Ri(r),o=[];for(let D=0;D<s;D++){let I=Lr(r,0,Gi);o.push(new ye(je.Buffer.from(I)))}let d=Lr(r,0,Gi),h=Ri(r),w=[];for(let D=0;D<h;D++){let I=Cr(r),R=Ri(r),F=Lr(r,0,R),$=Ri(r),H=Lr(r,0,$),L=Br.default.encode(je.Buffer.from(H));w.push({programIdIndex:I,accounts:F,data:L})}let A={header:{numRequiredSignatures:i,numReadonlySignedAccounts:n,numReadonlyUnsignedAccounts:a},recentBlockhash:Br.default.encode(je.Buffer.from(d)),accountKeys:o,instructions:w};return new t(A)}},Lo=class t{constructor(e){this.header=void 0,this.staticAccountKeys=void 0,this.recentBlockhash=void 0,this.compiledInstructions=void 0,this.addressTableLookups=void 0,this.header=e.header,this.staticAccountKeys=e.staticAccountKeys,this.recentBlockhash=e.recentBlockhash,this.compiledInstructions=e.compiledInstructions,this.addressTableLookups=e.addressTableLookups}get version(){return 0}get numAccountKeysFromLookups(){let e=0;for(let r of this.addressTableLookups)e+=r.readonlyIndexes.length+r.writableIndexes.length;return e}getAccountKeys(e){let r;if(e&&"accountKeysFromLookups"in e&&e.accountKeysFromLookups){if(this.numAccountKeysFromLookups!=e.accountKeysFromLookups.writable.length+e.accountKeysFromLookups.readonly.length)throw new Error("Failed to get account keys because of a mismatch in the number of account keys from lookups");r=e.accountKeysFromLookups}else if(e&&"addressLookupTableAccounts"in e&&e.addressLookupTableAccounts)r=this.resolveAddressTableLookups(e.addressLookupTableAccounts);else if(this.addressTableLookups.length>0)throw new Error("Failed to get account keys because address table lookups were not resolved");return new ja(this.staticAccountKeys,r)}isAccountSigner(e){return e<this.header.numRequiredSignatures}isAccountWritable(e){let r=this.header.numRequiredSignatures,i=this.staticAccountKeys.length;if(e>=i){let n=e-i,a=this.addressTableLookups.reduce((s,o)=>s+o.writableIndexes.length,0);return n<a}else if(e>=this.header.numRequiredSignatures){let n=e-r,s=i-r-this.header.numReadonlyUnsignedAccounts;return n<s}else{let n=r-this.header.numReadonlySignedAccounts;return e<n}}resolveAddressTableLookups(e){let r={writable:[],readonly:[]};for(let i of this.addressTableLookups){let n=e.find(a=>a.key.equals(i.accountKey));if(!n)throw new Error(`Failed to find address lookup table account for table key ${i.accountKey.toBase58()}`);for(let a of i.writableIndexes)if(a<n.state.addresses.length)r.writable.push(n.state.addresses[a]);else throw new Error(`Failed to find address for index ${a} in address lookup table ${i.accountKey.toBase58()}`);for(let a of i.readonlyIndexes)if(a<n.state.addresses.length)r.readonly.push(n.state.addresses[a]);else throw new Error(`Failed to find address for index ${a} in address lookup table ${i.accountKey.toBase58()}`)}return r}static compile(e){let r=I0.compile(e.instructions,e.payerKey),i=new Array,n={writable:new Array,readonly:new Array},a=e.addressLookupTableAccounts||[];for(let w of a){let A=r.extractTableLookup(w);if(A!==void 0){let[D,{writable:I,readonly:R}]=A;i.push(D),n.writable.push(...I),n.readonly.push(...R)}}let[s,o]=r.getMessageComponents(),h=new ja(o,n).compileInstructions(e.instructions);return new t({header:s,staticAccountKeys:o,recentBlockhash:e.recentBlockhash,compiledInstructions:h,addressTableLookups:i})}serialize(){let e=Array();Ii(e,this.staticAccountKeys.length);let r=this.serializeInstructions(),i=Array();Ii(i,this.compiledInstructions.length);let n=this.serializeAddressTableLookups(),a=Array();Ii(a,this.addressTableLookups.length);let s=G.struct([G.u8("prefix"),G.struct([G.u8("numRequiredSignatures"),G.u8("numReadonlySignedAccounts"),G.u8("numReadonlyUnsignedAccounts")],"header"),G.blob(e.length,"staticAccountKeysLength"),G.seq(vt(),this.staticAccountKeys.length,"staticAccountKeys"),vt("recentBlockhash"),G.blob(i.length,"instructionsLength"),G.blob(r.length,"serializedInstructions"),G.blob(a.length,"addressTableLookupsLength"),G.blob(n.length,"serializedAddressTableLookups")]),o=new Uint8Array(qa),h=s.encode({prefix:128,header:this.header,staticAccountKeysLength:new Uint8Array(e),staticAccountKeys:this.staticAccountKeys.map(w=>w.toBytes()),recentBlockhash:Br.default.decode(this.recentBlockhash),instructionsLength:new Uint8Array(i),serializedInstructions:r,addressTableLookupsLength:new Uint8Array(a),serializedAddressTableLookups:n},o);return o.slice(0,h)}serializeInstructions(){let e=0,r=new Uint8Array(qa);for(let i of this.compiledInstructions){let n=Array();Ii(n,i.accountKeyIndexes.length);let a=Array();Ii(a,i.data.length);let s=G.struct([G.u8("programIdIndex"),G.blob(n.length,"encodedAccountKeyIndexesLength"),G.seq(G.u8(),i.accountKeyIndexes.length,"accountKeyIndexes"),G.blob(a.length,"encodedDataLength"),G.blob(i.data.length,"data")]);e+=s.encode({programIdIndex:i.programIdIndex,encodedAccountKeyIndexesLength:new Uint8Array(n),accountKeyIndexes:i.accountKeyIndexes,encodedDataLength:new Uint8Array(a),data:i.data},r,e)}return r.slice(0,e)}serializeAddressTableLookups(){let e=0,r=new Uint8Array(qa);for(let i of this.addressTableLookups){let n=Array();Ii(n,i.writableIndexes.length);let a=Array();Ii(a,i.readonlyIndexes.length);let s=G.struct([vt("accountKey"),G.blob(n.length,"encodedWritableIndexesLength"),G.seq(G.u8(),i.writableIndexes.length,"writableIndexes"),G.blob(a.length,"encodedReadonlyIndexesLength"),G.seq(G.u8(),i.readonlyIndexes.length,"readonlyIndexes")]);e+=s.encode({accountKey:i.accountKey.toBytes(),encodedWritableIndexesLength:new Uint8Array(n),writableIndexes:i.writableIndexes,encodedReadonlyIndexesLength:new Uint8Array(a),readonlyIndexes:i.readonlyIndexes},r,e)}return r.slice(0,e)}static deserialize(e){let r=[...e],i=Cr(r),n=i&cd;ht(i!==n,"Expected versioned message but received legacy message");let a=n;ht(a===0,`Expected versioned message with version 0 but found version ${a}`);let s={numRequiredSignatures:Cr(r),numReadonlySignedAccounts:Cr(r),numReadonlyUnsignedAccounts:Cr(r)},o=[],d=Ri(r);for(let R=0;R<d;R++)o.push(new ye(Lr(r,0,Gi)));let h=Br.default.encode(Lr(r,0,Gi)),w=Ri(r),A=[];for(let R=0;R<w;R++){let F=Cr(r),$=Ri(r),H=Lr(r,0,$),L=Ri(r),q=new Uint8Array(Lr(r,0,L));A.push({programIdIndex:F,accountKeyIndexes:H,data:q})}let D=Ri(r),I=[];for(let R=0;R<D;R++){let F=new ye(Lr(r,0,Gi)),$=Ri(r),H=Lr(r,0,$),L=Ri(r),q=Lr(r,0,L);I.push({accountKey:F,writableIndexes:H,readonlyIndexes:q})}return new t({header:s,staticAccountKeys:o,recentBlockhash:h,compiledInstructions:A,addressTableLookups:I})}},Ly=3,mx=4,_x=8,gx=16;function A0(t){let e=Lr(t,0,4);return e[0]+e[1]*2**8+e[2]*2**16+e[3]*2**24}function yx(t){let e=Lr(t,0,8),r=BigInt(0);for(let i=e.length-1;i>=0;i--)r=r<<BigInt(8)|BigInt(e[i]);return ht(r<=BigInt(Number.MAX_SAFE_INTEGER),"Expected u64 value to be within the safe integer range"),Number(r)}var sd=class t{constructor(e){this.header=void 0,this.staticAccountKeys=void 0,this.recentBlockhash=void 0,this.compiledInstructions=void 0,this.transactionConfig=void 0,this.header=e.header,this.staticAccountKeys=e.staticAccountKeys,this.recentBlockhash=e.recentBlockhash,this.compiledInstructions=e.compiledInstructions,this.transactionConfig=e.transactionConfig??{computeUnitLimit:null,heapSize:null,loadedAccountsDataSizeLimit:null,priorityFee:null}}get version(){return 1}get addressTableLookups(){return[]}getAccountKeys(){return new ja(this.staticAccountKeys)}isAccountSigner(e){return e<this.header.numRequiredSignatures}isAccountWritable(e){let r=this.header.numRequiredSignatures,i=this.staticAccountKeys.length;if(e>=i)return!1;if(e>=this.header.numRequiredSignatures){let n=e-r,s=i-r-this.header.numReadonlyUnsignedAccounts;return n<s}else{let n=r-this.header.numReadonlySignedAccounts;return e<n}}serialize(){throw new Error("Serialization of version 1 transaction messages is not supported")}static deserialize(e){let r=[...e],i=Cr(r),n=i&cd;ht(i!==n,"Expected versioned message but received legacy message");let a=n;ht(a===1,`Expected versioned message with version 1 but found version ${a}`);let s={numRequiredSignatures:Cr(r),numReadonlySignedAccounts:Cr(r),numReadonlyUnsignedAccounts:Cr(r)},o=A0(r);ht((o&-32)===0,"Unexpected bits set in the transaction config mask");let d=o&Ly;ht(d===0||d===Ly,"Expected both or neither of the priority fee bits to be set in the transaction config mask");let h=Br.default.encode(Lr(r,0,Gi)),w=Cr(r),A=Cr(r),D=[];for(let $=0;$<A;$++)D.push(new ye(Lr(r,0,Gi)));let I={computeUnitLimit:null,heapSize:null,loadedAccountsDataSizeLimit:null,priorityFee:null};d!==0&&(I.priorityFee=yx(r)),o&mx&&(I.computeUnitLimit=A0(r)),o&_x&&(I.loadedAccountsDataSizeLimit=A0(r)),o&gx&&(I.heapSize=A0(r));let R=[];for(let $=0;$<w;$++){let H=Cr(r),L=Cr(r),q=Cr(r)+Cr(r)*256;R.push({accountKeyIndexesLength:L,dataLength:q,programIdIndex:H})}let F=[];for(let $ of R)F.push({programIdIndex:$.programIdIndex,accountKeyIndexes:Lr(r,0,$.accountKeyIndexesLength),data:new Uint8Array(Lr(r,0,$.dataLength))});return ht(r.length===0,"Expected no bytes to remain after deserializing a version 1 message"),new t({header:s,staticAccountKeys:D,recentBlockhash:h,compiledInstructions:F,transactionConfig:I})}},C0={deserializeMessageVersion(t){let e=t[0],r=e&cd;return r===e?"legacy":r},deserialize:t=>{let e=C0.deserializeMessageVersion(t);if(e==="legacy")return Dn.from(t);if(e===0)return Lo.deserialize(t);if(e===1)return sd.deserialize(t);throw new Error(`Transaction message version ${e} deserialization is not supported`)}},pa=(function(t){return t[t.BLOCKHEIGHT_EXCEEDED=0]="BLOCKHEIGHT_EXCEEDED",t[t.PROCESSED=1]="PROCESSED",t[t.TIMED_OUT=2]="TIMED_OUT",t[t.NONCE_INVALID=3]="NONCE_INVALID",t})({}),Ex=je.Buffer.alloc(Ha).fill(0),Ft=class{constructor(e){this.keys=void 0,this.programId=void 0,this.data=je.Buffer.alloc(0),this.programId=e.programId,this.keys=e.keys,e.data&&(this.data=e.data)}toJSON(){return{keys:this.keys.map(({pubkey:e,isSigner:r,isWritable:i})=>({pubkey:e.toJSON(),isSigner:r,isWritable:i})),programId:this.programId.toJSON(),data:[...this.data]}}},Bt=class t{get signature(){return this.signatures.length>0?this.signatures[0].signature:null}constructor(e){if(this.signatures=[],this.feePayer=void 0,this.instructions=[],this.recentBlockhash=void 0,this.lastValidBlockHeight=void 0,this.nonceInfo=void 0,this.minNonceContextSlot=void 0,this._message=void 0,this._json=void 0,!!e)if(e.feePayer&&(this.feePayer=e.feePayer),e.signatures&&(this.signatures=e.signatures),Object.prototype.hasOwnProperty.call(e,"nonceInfo")){let{minContextSlot:r,nonceInfo:i}=e;this.minNonceContextSlot=r,this.nonceInfo=i}else if(Object.prototype.hasOwnProperty.call(e,"lastValidBlockHeight")){let{blockhash:r,lastValidBlockHeight:i}=e;this.recentBlockhash=r,this.lastValidBlockHeight=i}else{let{recentBlockhash:r,nonceInfo:i}=e;i&&(this.nonceInfo=i),this.recentBlockhash=r}}toJSON(){return{recentBlockhash:this.recentBlockhash||null,feePayer:this.feePayer?this.feePayer.toJSON():null,nonceInfo:this.nonceInfo?{nonce:this.nonceInfo.nonce,nonceInstruction:this.nonceInfo.nonceInstruction.toJSON()}:null,instructions:this.instructions.map(e=>e.toJSON()),signers:this.signatures.map(({publicKey:e})=>e.toJSON())}}add(...e){if(e.length===0)throw new Error("No instructions");return e.forEach(r=>{"instructions"in r?this.instructions=this.instructions.concat(r.instructions):"data"in r&&"programId"in r&&"keys"in r?this.instructions.push(r):this.instructions.push(new Ft(r))}),this}compileMessage(){if(this._message&&JSON.stringify(this.toJSON())===JSON.stringify(this._json))return this._message;let e,r;if(this.nonceInfo?(e=this.nonceInfo.nonce,this.instructions[0]!=this.nonceInfo.nonceInstruction?r=[this.nonceInfo.nonceInstruction,...this.instructions]:r=this.instructions):(e=this.recentBlockhash,r=this.instructions),!e)throw new Error("Transaction recentBlockhash required");r.length<1&&console.warn("No instructions provided");let i;if(this.feePayer)i=this.feePayer;else if(this.signatures.length>0&&this.signatures[0].publicKey)i=this.signatures[0].publicKey;else throw new Error("Transaction fee payer required");for(let F=0;F<r.length;F++)if(r[F].programId===void 0)throw new Error(`Transaction instruction index ${F} has undefined program id`);let n=[],a=[];r.forEach(F=>{F.keys.forEach(H=>{a.push({...H})});let $=F.programId.toString();n.includes($)||n.push($)}),n.forEach(F=>{a.push({pubkey:new ye(F),isSigner:!1,isWritable:!1})});let s=[];a.forEach(F=>{let $=F.pubkey.toString(),H=s.findIndex(L=>L.pubkey.toString()===$);H>-1?(s[H].isWritable=s[H].isWritable||F.isWritable,s[H].isSigner=s[H].isSigner||F.isSigner):s.push(F)}),s.sort(function(F,$){if(F.isSigner!==$.isSigner)return F.isSigner?-1:1;if(F.isWritable!==$.isWritable)return F.isWritable?-1:1;let H={localeMatcher:"best fit",usage:"sort",sensitivity:"variant",ignorePunctuation:!1,numeric:!1,caseFirst:"lower"};return F.pubkey.toBase58().localeCompare($.pubkey.toBase58(),"en",H)});let o=s.findIndex(F=>F.pubkey.equals(i));if(o>-1){let[F]=s.splice(o,1);F.isSigner=!0,F.isWritable=!0,s.unshift(F)}else s.unshift({pubkey:i,isSigner:!0,isWritable:!0});for(let F of this.signatures){let $=s.findIndex(H=>H.pubkey.equals(F.publicKey));if($>-1)s[$].isSigner||(s[$].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."));else throw new Error(`unknown signer: ${F.publicKey.toString()}`)}let d=0,h=0,w=0,A=[],D=[];s.forEach(({pubkey:F,isSigner:$,isWritable:H})=>{$?(A.push(F.toString()),d+=1,H||(h+=1)):(D.push(F.toString()),H||(w+=1))});let I=A.concat(D),R=r.map(F=>{let{data:$,programId:H}=F;return{programIdIndex:I.indexOf(H.toString()),accounts:F.keys.map(L=>I.indexOf(L.pubkey.toString())),data:Br.default.encode($)}});return R.forEach(F=>{ht(F.programIdIndex>=0),F.accounts.forEach($=>ht($>=0))}),new Dn({header:{numRequiredSignatures:d,numReadonlySignedAccounts:h,numReadonlyUnsignedAccounts:w},accountKeys:I,recentBlockhash:e,instructions:R})}_compile(){let e=this.compileMessage(),r=e.accountKeys.slice(0,e.header.numRequiredSignatures);return this.signatures.length===r.length&&this.signatures.every((n,a)=>r[a].equals(n.publicKey))||(this.signatures=r.map(i=>({signature:null,publicKey:i}))),e}serializeMessage(){return this._compile().serialize()}async getEstimatedFee(e){return(await e.getFeeForMessage(this.compileMessage())).value}setSigners(...e){if(e.length===0)throw new Error("No signers");let r=new Set;this.signatures=e.filter(i=>{let n=i.toString();return r.has(n)?!1:(r.add(n),!0)}).map(i=>({signature:null,publicKey:i}))}sign(...e){if(e.length===0)throw new Error("No signers");let r=new Set,i=[];for(let a of e){let s=a.publicKey.toString();r.has(s)||(r.add(s),i.push(a))}this.signatures=i.map(a=>({signature:null,publicKey:a.publicKey}));let n=this._compile();this._partialSign(n,...i)}partialSign(...e){if(e.length===0)throw new Error("No signers");let r=new Set,i=[];for(let a of e){let s=a.publicKey.toString();r.has(s)||(r.add(s),i.push(a))}let n=this._compile();this._partialSign(n,...i)}_partialSign(e,...r){let i=e.serialize();r.forEach(n=>{let a=sf(i,n.secretKey);this._addSignature(n.publicKey,ut(a))})}addSignature(e,r){this._compile(),this._addSignature(e,r)}_addSignature(e,r){ht(r.length===64);let i=this.signatures.findIndex(n=>e.equals(n.publicKey));if(i<0)throw new Error(`unknown signer: ${e.toString()}`);this.signatures[i].signature=je.Buffer.from(r)}verifySignatures(e=!0){return!this._getMessageSignednessErrors(this.serializeMessage(),e)}_getMessageSignednessErrors(e,r){let i={};for(let{signature:n,publicKey:a}of this.signatures)n===null?r&&(i.missing||=[]).push(a):sx(n,e,a.toBytes())||(i.invalid||=[]).push(a);return i.invalid||i.missing?i:void 0}serialize(e){let{requireAllSignatures:r,verifySignatures:i}=Object.assign({requireAllSignatures:!0,verifySignatures:!0},e),n=this.serializeMessage();if(i){let a=this._getMessageSignednessErrors(n,r);if(a){let s="Signature verification failed.";throw a.invalid&&(s+=`
|
|
16
|
+
Invalid signature for public key${a.invalid.length===1?"":"(s)"} [\`${a.invalid.map(o=>o.toBase58()).join("`, `")}\`].`),a.missing&&(s+=`
|
|
17
|
+
Missing signature for public key${a.missing.length===1?"":"(s)"} [\`${a.missing.map(o=>o.toBase58()).join("`, `")}\`].`),new Error(s)}}return this._serialize(n)}_serialize(e){let{signatures:r}=this,i=[];Ii(i,r.length);let n=i.length+r.length*64+e.length,a=je.Buffer.alloc(n);return ht(r.length<256),je.Buffer.from(i).copy(a,0),r.forEach(({signature:s},o)=>{s!==null&&(ht(s.length===64,"signature has invalid length"),je.Buffer.from(s).copy(a,i.length+o*64))}),e.copy(a,i.length+r.length*64),ht(a.length<=qa,`Transaction too large: ${a.length} > ${qa}`),a}get keys(){return ht(this.instructions.length===1),this.instructions[0].keys.map(e=>e.pubkey)}get programId(){return ht(this.instructions.length===1),this.instructions[0].programId}get data(){return ht(this.instructions.length===1),this.instructions[0].data}static from(e){let r=[...e],i=Ri(r),n=[];for(let a=0;a<i;a++){let s=Lr(r,0,Ha);n.push(Br.default.encode(je.Buffer.from(s)))}return t.populate(Dn.from(r),n)}static populate(e,r=[]){let i=new t;return i.recentBlockhash=e.recentBlockhash,e.header.numRequiredSignatures>0&&(i.feePayer=e.accountKeys[0]),r.forEach((n,a)=>{let s={signature:n==Br.default.encode(Ex)?null:Br.default.decode(n),publicKey:e.accountKeys[a]};i.signatures.push(s)}),e.instructions.forEach(n=>{let a=n.accounts.map(s=>{let o=e.accountKeys[s];return{pubkey:o,isSigner:i.signatures.some(d=>d.publicKey.toString()===o.toString())||e.isAccountSigner(s),isWritable:e.isAccountWritable(s)}});i.instructions.push(new Ft({keys:a,programId:e.accountKeys[n.programIdIndex],data:Br.default.decode(n.data)}))}),i._message=e,i._json=i.toJSON(),i}},$2=class t{constructor(e){this.payerKey=void 0,this.instructions=void 0,this.recentBlockhash=void 0,this.payerKey=e.payerKey,this.instructions=e.instructions,this.recentBlockhash=e.recentBlockhash}static decompile(e,r){let{header:i,compiledInstructions:n,recentBlockhash:a}=e,{numRequiredSignatures:s,numReadonlySignedAccounts:o,numReadonlyUnsignedAccounts:d}=i,h=s-o;ht(h>0,"Message header is invalid");let w=e.staticAccountKeys.length-s-d;ht(w>=0,"Message header is invalid");let A=e.getAccountKeys(r),D=A.get(0);if(D===void 0)throw new Error("Failed to decompile message because no account keys were found");let I=[];for(let R of n){let F=[];for(let H of R.accountKeyIndexes){let L=A.get(H);if(L===void 0)throw new Error(`Failed to find key for account key index ${H}`);let q=H<s,W;q?W=H<h:H<A.staticAccountKeys.length?W=H-s<w:W=H-A.staticAccountKeys.length<A.accountKeysFromLookups.writable.length,F.push({pubkey:L,isSigner:H<i.numRequiredSignatures,isWritable:W})}let $=A.get(R.programIdIndex);if($===void 0)throw new Error(`Failed to find program id for program id index ${R.programIdIndex}`);I.push(new Ft({programId:$,data:ut(R.data),keys:F}))}return new t({payerKey:D,instructions:I,recentBlockhash:a})}compileToLegacyMessage(){return Dn.compile({payerKey:this.payerKey,recentBlockhash:this.recentBlockhash,instructions:this.instructions})}compileToV0Message(e){return Lo.compile({payerKey:this.payerKey,recentBlockhash:this.recentBlockhash,instructions:this.instructions,addressLookupTableAccounts:e})}},z2=class t{get version(){return this.message.version}constructor(e,r){if(this.signatures=void 0,this.message=void 0,r!==void 0)ht(r.length===e.header.numRequiredSignatures,"Expected signatures length to be equal to the number of required signatures"),this.signatures=r;else{let i=[];for(let n=0;n<e.header.numRequiredSignatures;n++)i.push(new Uint8Array(Ha));this.signatures=i}this.message=e}serialize(){let e=this.message.serialize(),r=Array();Ii(r,this.signatures.length);let i=G.struct([G.blob(r.length,"encodedSignaturesLength"),G.seq(lx(),this.signatures.length,"signatures"),G.blob(e.length,"serializedMessage")]),n=new Uint8Array(2048),a=i.encode({encodedSignaturesLength:new Uint8Array(r),signatures:this.signatures,serializedMessage:e},n);return n.slice(0,a)}static deserialize(e){if(e[0]===sE)return this.deserializeV1(e);let r=[...e],i=[],n=Ri(r);for(let s=0;s<n;s++)i.push(new Uint8Array(Lr(r,0,Ha)));let a=C0.deserialize(new Uint8Array(r));return new t(a,i)}static deserializeV1(e){let r=e[1],i=r*Ha,n=e.length-i;ht(n>0,"Expected transaction to have enough bytes for its signatures");let a=C0.deserialize(e.slice(0,n)),s=[];for(let o=0;o<r;o++){let d=n+o*Ha;s.push(e.slice(d,d+Ha))}return new t(a,s)}sign(e){let r=this.message.serialize(),i=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures);for(let n of e){let a=i.findIndex(s=>s.equals(n.publicKey));ht(a>=0,`Cannot sign with non signer key ${n.publicKey.toBase58()}`),this.signatures[a]=sf(r,n.secretKey)}}addSignature(e,r){ht(r.byteLength===64,"Signature must be 64 bytes long");let n=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures).findIndex(a=>a.equals(e));ht(n>=0,`Can not add signature; \`${e.toBase58()}\` is not required to sign this transaction`),this.signatures[n]=r}},vx=160,wx=64,Sx=vx/wx,pE=1e3/Sx,Cn=new ye("SysvarC1ock11111111111111111111111111111111"),Rx=new ye("SysvarEpochSchedu1e111111111111111111111111"),bx=new ye("Sysvar1nstructions1111111111111111111111111"),N0=new ye("SysvarRecentB1ockHashes11111111111111111111"),ko=new ye("SysvarRent111111111111111111111111111111111"),Ax=new ye("SysvarRewards111111111111111111111111111111"),Ox=new ye("SysvarS1otHashes111111111111111111111111111"),Nx=new ye("SysvarS1otHistory11111111111111111111111111"),T0=new ye("SysvarStakeHistory1111111111111111111111111"),Ls=class extends Error{constructor({action:e,signature:r,transactionMessage:i,logs:n}){let a=n?`Logs:
|
|
18
|
+
${JSON.stringify(n.slice(-10),null,2)}. `:"",s="\nCatch the `SendTransactionError` and call `getLogs()` on it for full details.",o;switch(e){case"send":o=`Transaction ${r} resulted in an error.
|
|
19
|
+
${i}. `+a+s;break;case"simulate":o=`Simulation failed.
|
|
20
|
+
Message: ${i}.
|
|
21
|
+
`+a+s;break;default:o=`Unknown action '${(d=>d)(e)}'`}super(o),this.signature=void 0,this.transactionMessage=void 0,this.transactionLogs=void 0,this.signature=r,this.transactionMessage=i,this.transactionLogs=n||void 0}get transactionError(){return{message:this.transactionMessage,logs:Array.isArray(this.transactionLogs)?this.transactionLogs:void 0}}get logs(){let e=this.transactionLogs;if(!(e!=null&&typeof e=="object"&&"then"in e))return e}async getLogs(e){return Array.isArray(this.transactionLogs)||(this.transactionLogs=new Promise((r,i)=>{e.getTransaction(this.signature).then(n=>{if(n&&n.meta&&n.meta.logMessages){let a=n.meta.logMessages;this.transactionLogs=a,r(a)}else i(new Error("Log messages not found"))}).catch(i)})),await this.transactionLogs}},Tx={JSON_RPC_SERVER_ERROR_BLOCK_CLEANED_UP:-32001,JSON_RPC_SERVER_ERROR_SEND_TRANSACTION_PREFLIGHT_FAILURE:-32002,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_VERIFICATION_FAILURE:-32003,JSON_RPC_SERVER_ERROR_BLOCK_NOT_AVAILABLE:-32004,JSON_RPC_SERVER_ERROR_NODE_UNHEALTHY:-32005,JSON_RPC_SERVER_ERROR_TRANSACTION_PRECOMPILE_VERIFICATION_FAILURE:-32006,JSON_RPC_SERVER_ERROR_SLOT_SKIPPED:-32007,JSON_RPC_SERVER_ERROR_NO_SNAPSHOT:-32008,JSON_RPC_SERVER_ERROR_LONG_TERM_STORAGE_SLOT_SKIPPED:-32009,JSON_RPC_SERVER_ERROR_KEY_EXCLUDED_FROM_SECONDARY_INDEX:-32010,JSON_RPC_SERVER_ERROR_TRANSACTION_HISTORY_NOT_AVAILABLE:-32011,JSON_RPC_SCAN_ERROR:-32012,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_LEN_MISMATCH:-32013,JSON_RPC_SERVER_ERROR_BLOCK_STATUS_NOT_AVAILABLE_YET:-32014,JSON_RPC_SERVER_ERROR_UNSUPPORTED_TRANSACTION_VERSION:-32015,JSON_RPC_SERVER_ERROR_MIN_CONTEXT_SLOT_NOT_REACHED:-32016},Ie=class extends Error{constructor({code:e,message:r,data:i},n){super(n!=null?`${n}: ${r}`:r),this.code=void 0,this.data=void 0,this.code=e,this.data=i,this.name="SolanaJSONRPCError"}};async function H2(t,e,r,i){let n=i&&{skipPreflight:i.skipPreflight,preflightCommitment:i.preflightCommitment||i.commitment,maxRetries:i.maxRetries,minContextSlot:i.minContextSlot},a=await t.sendTransaction(e,r,n),s;if(e.recentBlockhash!=null&&e.lastValidBlockHeight!=null)s=(await t.confirmTransaction({abortSignal:i?.abortSignal,signature:a,blockhash:e.recentBlockhash,lastValidBlockHeight:e.lastValidBlockHeight},i&&i.commitment)).value;else if(e.minNonceContextSlot!=null&&e.nonceInfo!=null){let{nonceInstruction:o}=e.nonceInfo,d=o.keys[0].pubkey;s=(await t.confirmTransaction({abortSignal:i?.abortSignal,minContextSlot:e.minNonceContextSlot,nonceAccountPubkey:d,nonceValue:e.nonceInfo.nonce,signature:a},i&&i.commitment)).value}else i?.abortSignal!=null&&console.warn("sendAndConfirmTransaction(): A transaction with a deprecated confirmation strategy was supplied along with an `abortSignal`. Only transactions having `lastValidBlockHeight` or a combination of `nonceInfo` and `minNonceContextSlot` are abortable."),s=(await t.confirmTransaction(a,i&&i.commitment)).value;if(s.err)throw a!=null?new Ls({action:"send",signature:a,transactionMessage:`Status: (${JSON.stringify(s)})`}):new Error(`Transaction ${a} failed (${JSON.stringify(s)})`);return a}function Is(t){return new Promise(e=>setTimeout(e,t))}function At(t,e){let r=t.layout.span>=0?t.layout.span:oE(t,e),i=je.Buffer.alloc(r),n=Object.assign({instruction:t.index},e);return t.layout.encode(n,i),i}function Dt(t,e){let r;try{r=t.layout.decode(e)}catch(i){throw new Error("invalid instruction; "+i)}if(r.instruction!==t.index)throw new Error(`invalid instruction; instruction index mismatch ${r.instruction} != ${t.index}`);return r}var lE=G.nu64("lamportsPerSignature"),cE=G.struct([G.u32("version"),G.u32("state"),vt("authorizedPubkey"),vt("nonce"),G.struct([lE],"feeCalculator")]),G2=cE.span,L0=class t{constructor(e){this.authorizedPubkey=void 0,this.nonce=void 0,this.feeCalculator=void 0,this.authorizedPubkey=e.authorizedPubkey,this.nonce=e.nonce,this.feeCalculator=e.feeCalculator}static fromAccountData(e){let r=cE.decode(ut(e),0);return new t({authorizedPubkey:new ye(r.authorizedPubkey),nonce:new ye(r.nonce).toString(),feeCalculator:r.feeCalculator})}};function Do(t){let e=eE.blob(8,t),r=e.decode.bind(e),i=e.encode.bind(e),n=e,a=tE.getU64Codec();return n.decode=(s,o)=>{let d=r(s,o);return a.decode(d)},n.encode=(s,o,d)=>{let h=a.encode(s);return i(h,o,d)},n}var q2=class{constructor(){}static decodeInstructionType(e){this.checkProgramId(e.programId);let i=G.u32("instruction").decode(e.data),n;for(let[a,s]of Object.entries(Jt))if(s.index==i){n=a;break}if(!n)throw new Error("Instruction type incorrect; not a SystemInstruction");return n}static decodeCreateAccount(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,2);let{lamports:r,space:i,programId:n}=Dt(Jt.Create,e.data);return{fromPubkey:e.keys[0].pubkey,newAccountPubkey:e.keys[1].pubkey,lamports:r,space:i,programId:new ye(n)}}static decodeTransfer(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,2);let{lamports:r}=Dt(Jt.Transfer,e.data);return{fromPubkey:e.keys[0].pubkey,toPubkey:e.keys[1].pubkey,lamports:r}}static decodeTransferWithSeed(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);let{lamports:r,seed:i,programId:n}=Dt(Jt.TransferWithSeed,e.data);return{fromPubkey:e.keys[0].pubkey,basePubkey:e.keys[1].pubkey,toPubkey:e.keys[2].pubkey,lamports:r,seed:i,programId:new ye(n)}}static decodeAllocate(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,1);let{space:r}=Dt(Jt.Allocate,e.data);return{accountPubkey:e.keys[0].pubkey,space:r}}static decodeAllocateWithSeed(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,1);let{base:r,seed:i,space:n,programId:a}=Dt(Jt.AllocateWithSeed,e.data);return{accountPubkey:e.keys[0].pubkey,basePubkey:new ye(r),seed:i,space:n,programId:new ye(a)}}static decodeAssign(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,1);let{programId:r}=Dt(Jt.Assign,e.data);return{accountPubkey:e.keys[0].pubkey,programId:new ye(r)}}static decodeAssignWithSeed(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,1);let{base:r,seed:i,programId:n}=Dt(Jt.AssignWithSeed,e.data);return{accountPubkey:e.keys[0].pubkey,basePubkey:new ye(r),seed:i,programId:new ye(n)}}static decodeCreateWithSeed(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,2);let{base:r,seed:i,lamports:n,space:a,programId:s}=Dt(Jt.CreateWithSeed,e.data);return{fromPubkey:e.keys[0].pubkey,newAccountPubkey:e.keys[1].pubkey,basePubkey:new ye(r),seed:i,lamports:n,space:a,programId:new ye(s)}}static decodeNonceInitialize(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);let{authorized:r}=Dt(Jt.InitializeNonceAccount,e.data);return{noncePubkey:e.keys[0].pubkey,authorizedPubkey:new ye(r)}}static decodeNonceAdvance(e){return this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3),Dt(Jt.AdvanceNonceAccount,e.data),{noncePubkey:e.keys[0].pubkey,authorizedPubkey:e.keys[2].pubkey}}static decodeNonceWithdraw(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,5);let{lamports:r}=Dt(Jt.WithdrawNonceAccount,e.data);return{noncePubkey:e.keys[0].pubkey,toPubkey:e.keys[1].pubkey,authorizedPubkey:e.keys[4].pubkey,lamports:r}}static decodeNonceAuthorize(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,2);let{authorized:r}=Dt(Jt.AuthorizeNonceAccount,e.data);return{noncePubkey:e.keys[0].pubkey,authorizedPubkey:e.keys[1].pubkey,newAuthorizedPubkey:new ye(r)}}static checkProgramId(e){if(!e.equals(ei.programId))throw new Error("invalid instruction; programId is not SystemProgram")}static checkKeyLength(e,r){if(e.length<r)throw new Error(`invalid instruction; found ${e.length} keys, expected at least ${r}`)}},Jt=Object.freeze({Create:{index:0,layout:G.struct([G.u32("instruction"),G.ns64("lamports"),G.ns64("space"),vt("programId")])},Assign:{index:1,layout:G.struct([G.u32("instruction"),vt("programId")])},Transfer:{index:2,layout:G.struct([G.u32("instruction"),Do("lamports")])},CreateWithSeed:{index:3,layout:G.struct([G.u32("instruction"),vt("base"),Cs("seed"),G.ns64("lamports"),G.ns64("space"),vt("programId")])},AdvanceNonceAccount:{index:4,layout:G.struct([G.u32("instruction")])},WithdrawNonceAccount:{index:5,layout:G.struct([G.u32("instruction"),G.ns64("lamports")])},InitializeNonceAccount:{index:6,layout:G.struct([G.u32("instruction"),vt("authorized")])},AuthorizeNonceAccount:{index:7,layout:G.struct([G.u32("instruction"),vt("authorized")])},Allocate:{index:8,layout:G.struct([G.u32("instruction"),G.ns64("space")])},AllocateWithSeed:{index:9,layout:G.struct([G.u32("instruction"),vt("base"),Cs("seed"),G.ns64("space"),vt("programId")])},AssignWithSeed:{index:10,layout:G.struct([G.u32("instruction"),vt("base"),Cs("seed"),vt("programId")])},TransferWithSeed:{index:11,layout:G.struct([G.u32("instruction"),Do("lamports"),Cs("seed"),vt("programId")])},UpgradeNonceAccount:{index:12,layout:G.struct([G.u32("instruction")])}}),ei=class t{constructor(){}static createAccount(e){let r=Jt.Create,i=At(r,{lamports:e.lamports,space:e.space,programId:ut(e.programId.toBuffer())});return new Ft({keys:[{pubkey:e.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:e.newAccountPubkey,isSigner:!0,isWritable:!0}],programId:this.programId,data:i})}static transfer(e){let r,i;if("basePubkey"in e){let n=Jt.TransferWithSeed;r=At(n,{lamports:BigInt(e.lamports),seed:e.seed,programId:ut(e.programId.toBuffer())}),i=[{pubkey:e.fromPubkey,isSigner:!1,isWritable:!0},{pubkey:e.basePubkey,isSigner:!0,isWritable:!1},{pubkey:e.toPubkey,isSigner:!1,isWritable:!0}]}else{let n=Jt.Transfer;r=At(n,{lamports:BigInt(e.lamports)}),i=[{pubkey:e.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:e.toPubkey,isSigner:!1,isWritable:!0}]}return new Ft({keys:i,programId:this.programId,data:r})}static assign(e){let r,i;if("basePubkey"in e){let n=Jt.AssignWithSeed;r=At(n,{base:ut(e.basePubkey.toBuffer()),seed:e.seed,programId:ut(e.programId.toBuffer())}),i=[{pubkey:e.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:e.basePubkey,isSigner:!0,isWritable:!1}]}else{let n=Jt.Assign;r=At(n,{programId:ut(e.programId.toBuffer())}),i=[{pubkey:e.accountPubkey,isSigner:!0,isWritable:!0}]}return new Ft({keys:i,programId:this.programId,data:r})}static createAccountWithSeed(e){let r=Jt.CreateWithSeed,i=At(r,{base:ut(e.basePubkey.toBuffer()),seed:e.seed,lamports:e.lamports,space:e.space,programId:ut(e.programId.toBuffer())}),n=[{pubkey:e.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:e.newAccountPubkey,isSigner:!1,isWritable:!0}];return e.basePubkey.equals(e.fromPubkey)||n.push({pubkey:e.basePubkey,isSigner:!0,isWritable:!1}),new Ft({keys:n,programId:this.programId,data:i})}static createNonceAccount(e){let r=new Bt;"basePubkey"in e&&"seed"in e?r.add(t.createAccountWithSeed({fromPubkey:e.fromPubkey,newAccountPubkey:e.noncePubkey,basePubkey:e.basePubkey,seed:e.seed,lamports:e.lamports,space:G2,programId:this.programId})):r.add(t.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.noncePubkey,lamports:e.lamports,space:G2,programId:this.programId}));let i={noncePubkey:e.noncePubkey,authorizedPubkey:e.authorizedPubkey};return r.add(this.nonceInitialize(i)),r}static nonceInitialize(e){let r=Jt.InitializeNonceAccount,i=At(r,{authorized:ut(e.authorizedPubkey.toBuffer())}),n={keys:[{pubkey:e.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:N0,isSigner:!1,isWritable:!1},{pubkey:ko,isSigner:!1,isWritable:!1}],programId:this.programId,data:i};return new Ft(n)}static nonceAdvance(e){let r=Jt.AdvanceNonceAccount,i=At(r),n={keys:[{pubkey:e.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:N0,isSigner:!1,isWritable:!1},{pubkey:e.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:i};return new Ft(n)}static nonceWithdraw(e){let r=Jt.WithdrawNonceAccount,i=At(r,{lamports:e.lamports});return new Ft({keys:[{pubkey:e.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:e.toPubkey,isSigner:!1,isWritable:!0},{pubkey:N0,isSigner:!1,isWritable:!1},{pubkey:ko,isSigner:!1,isWritable:!1},{pubkey:e.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}static nonceAuthorize(e){let r=Jt.AuthorizeNonceAccount,i=At(r,{authorized:ut(e.newAuthorizedPubkey.toBuffer())});return new Ft({keys:[{pubkey:e.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:e.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}static allocate(e){let r,i;if("basePubkey"in e){let n=Jt.AllocateWithSeed;r=At(n,{base:ut(e.basePubkey.toBuffer()),seed:e.seed,space:e.space,programId:ut(e.programId.toBuffer())}),i=[{pubkey:e.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:e.basePubkey,isSigner:!0,isWritable:!1}]}else{let n=Jt.Allocate;r=At(n,{space:e.space}),i=[{pubkey:e.accountPubkey,isSigner:!0,isWritable:!0}]}return new Ft({keys:i,programId:this.programId,data:r})}};ei.programId=new ye("11111111111111111111111111111111");var xx=qa-300,Bo=class t{constructor(){}static getMinNumSignatures(e){return 2*(Math.ceil(e/t.chunkSize)+1+1)}static async load(e,r,i,n,a){{let A=await e.getMinimumBalanceForRentExemption(a.length),D=await e.getAccountInfo(i.publicKey,"confirmed"),I=null;if(D!==null){if(D.executable)return console.error("Program load failed, account is already executable"),!1;D.data.length!==a.length&&(I=I||new Bt,I.add(ei.allocate({accountPubkey:i.publicKey,space:a.length}))),D.owner.equals(n)||(I=I||new Bt,I.add(ei.assign({accountPubkey:i.publicKey,programId:n}))),D.lamports<A&&(I=I||new Bt,I.add(ei.transfer({fromPubkey:r.publicKey,toPubkey:i.publicKey,lamports:A-D.lamports})))}else I=new Bt().add(ei.createAccount({fromPubkey:r.publicKey,newAccountPubkey:i.publicKey,lamports:A>0?A:1,space:a.length,programId:n}));I!==null&&await H2(e,I,[r,i],{commitment:"confirmed"})}let s=G.struct([G.u32("instruction"),G.u32("offset"),G.u32("bytesLength"),G.u32("bytesLengthPadding"),G.seq(G.u8("byte"),G.offset(G.u32(),-8),"bytes")]),o=t.chunkSize,d=0,h=a,w=[];for(;h.length>0;){let A=h.slice(0,o),D=je.Buffer.alloc(o+16);s.encode({instruction:0,offset:d,bytes:A,bytesLength:0,bytesLengthPadding:0},D);let I=new Bt().add({keys:[{pubkey:i.publicKey,isSigner:!0,isWritable:!0}],programId:n,data:D});w.push(H2(e,I,[r,i],{commitment:"confirmed"})),e._rpcEndpoint.includes("solana.com")&&await Is(1e3/4),d+=o,h=h.slice(o)}await Promise.all(w);{let A=G.struct([G.u32("instruction")]),D=je.Buffer.alloc(A.span);A.encode({instruction:1},D);let I=new Bt().add({keys:[{pubkey:i.publicKey,isSigner:!0,isWritable:!0},{pubkey:ko,isSigner:!1,isWritable:!1}],programId:n,data:D}),R="processed",F=await e.sendTransaction(I,[r,i],{preflightCommitment:R}),{context:$,value:H}=await e.confirmTransaction({signature:F,lastValidBlockHeight:I.lastValidBlockHeight,blockhash:I.recentBlockhash},R);if(H.err)throw new Error(`Transaction ${F} failed (${JSON.stringify(H)})`);for(;;){try{if(await e.getSlot({commitment:R})>$.slot)break}catch{}await new Promise(L=>setTimeout(L,Math.round(pE/2)))}}return!0}};Bo.chunkSize=xx;var Ix=new ye("BPFLoader2111111111111111111111111111111111"),j2=class{static getMinNumSignatures(e){return Bo.getMinNumSignatures(e)}static load(e,r,i,n,a){return Bo.load(e,r,i,a,n)}};function uE(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Co={exports:{}},N2,ky;function Cx(){if(ky)return N2;ky=1;var t=1e3,e=t*60,r=e*60,i=r*24,n=i*7,a=i*365.25;N2=function(w,A){A=A||{};var D=typeof w;if(D==="string"&&w.length>0)return s(w);if(D==="number"&&isFinite(w))return A.long?d(w):o(w);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(w))};function s(w){if(w=String(w),!(w.length>100)){var A=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(w);if(A){var D=parseFloat(A[1]),I=(A[2]||"ms").toLowerCase();switch(I){case"years":case"year":case"yrs":case"yr":case"y":return D*a;case"weeks":case"week":case"w":return D*n;case"days":case"day":case"d":return D*i;case"hours":case"hour":case"hrs":case"hr":case"h":return D*r;case"minutes":case"minute":case"mins":case"min":case"m":return D*e;case"seconds":case"second":case"secs":case"sec":case"s":return D*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return D;default:return}}}}function o(w){var A=Math.abs(w);return A>=i?Math.round(w/i)+"d":A>=r?Math.round(w/r)+"h":A>=e?Math.round(w/e)+"m":A>=t?Math.round(w/t)+"s":w+"ms"}function d(w){var A=Math.abs(w);return A>=i?h(w,A,i,"day"):A>=r?h(w,A,r,"hour"):A>=e?h(w,A,e,"minute"):A>=t?h(w,A,t,"second"):w+" ms"}function h(w,A,D,I){var R=A>=D*1.5;return Math.round(w/D)+" "+I+(R?"s":"")}return N2}var T2,Dy;function Lx(){if(Dy)return T2;Dy=1;var t=iE.default,e=Cx();return T2=function(r){if(typeof r=="number")return r;var i=e(r);if(i===void 0){var n=new Error(t.format("humanize-ms(%j) result undefined",r));console.warn(n.stack)}return i},T2}var x2,By;function of(){return By||(By=1,x2={CURRENT_ID:Symbol("agentkeepalive#currentId"),CREATE_ID:Symbol("agentkeepalive#createId"),INIT_SOCKET:Symbol("agentkeepalive#initSocket"),CREATE_HTTPS_CONNECTION:Symbol("agentkeepalive#createHttpsConnection"),SOCKET_CREATED_TIME:Symbol("agentkeepalive#socketCreatedTime"),SOCKET_NAME:Symbol("agentkeepalive#socketName"),SOCKET_REQUEST_COUNT:Symbol("agentkeepalive#socketRequestCount"),SOCKET_REQUEST_FINISHED_COUNT:Symbol("agentkeepalive#socketRequestFinishedCount")}),x2}var I2,Py;function fE(){if(Py)return I2;Py=1;let t=tx.default.Agent,e=Lx(),r=iE.default.debuglog("agentkeepalive"),{INIT_SOCKET:i,CURRENT_ID:n,CREATE_ID:a,SOCKET_CREATED_TIME:s,SOCKET_NAME:o,SOCKET_REQUEST_COUNT:d,SOCKET_REQUEST_FINISHED_COUNT:h}=of(),w=1,A=parseInt(process.version.split(".",1)[0].substring(1));A>=11&&A<=12?w=2:A>=13&&(w=3);function D(H){console.log("[agentkeepalive:deprecated] %s",H)}class I extends t{constructor(L){L=L||{},L.keepAlive=L.keepAlive!==!1,L.freeSocketTimeout===void 0&&(L.freeSocketTimeout=4e3),L.keepAliveTimeout&&(D("options.keepAliveTimeout is deprecated, please use options.freeSocketTimeout instead"),L.freeSocketTimeout=L.keepAliveTimeout,delete L.keepAliveTimeout),L.freeSocketKeepAliveTimeout&&(D("options.freeSocketKeepAliveTimeout is deprecated, please use options.freeSocketTimeout instead"),L.freeSocketTimeout=L.freeSocketKeepAliveTimeout,delete L.freeSocketKeepAliveTimeout),L.timeout===void 0&&(L.timeout=Math.max(L.freeSocketTimeout*2,8e3)),L.timeout=e(L.timeout),L.freeSocketTimeout=e(L.freeSocketTimeout),L.socketActiveTTL=L.socketActiveTTL?e(L.socketActiveTTL):0,super(L),this[n]=0,this.createSocketCount=0,this.createSocketCountLastCheck=0,this.createSocketErrorCount=0,this.createSocketErrorCountLastCheck=0,this.closeSocketCount=0,this.closeSocketCountLastCheck=0,this.errorSocketCount=0,this.errorSocketCountLastCheck=0,this.requestCount=0,this.requestCountLastCheck=0,this.timeoutSocketCount=0,this.timeoutSocketCountLastCheck=0,this.on("free",q=>{let W=this.calcSocketTimeout(q);W>0&&q.timeout!==W&&q.setTimeout(W)})}get freeSocketKeepAliveTimeout(){return D("agent.freeSocketKeepAliveTimeout is deprecated, please use agent.options.freeSocketTimeout instead"),this.options.freeSocketTimeout}get timeout(){return D("agent.timeout is deprecated, please use agent.options.timeout instead"),this.options.timeout}get socketActiveTTL(){return D("agent.socketActiveTTL is deprecated, please use agent.options.socketActiveTTL instead"),this.options.socketActiveTTL}calcSocketTimeout(L){let q=this.options.freeSocketTimeout,W=this.options.socketActiveTTL;if(W){let se=Date.now()-L[s],N=W-se;if(N<=0)return N;q&&N<q&&(q=N)}if(q)return L.freeSocketTimeout||L.freeSocketKeepAliveTimeout||q}keepSocketAlive(L){let q=super.keepSocketAlive(L);if(!q)return q;let W=this.calcSocketTimeout(L);return typeof W>"u"?!0:W<=0?(r("%s(requests: %s, finished: %s) free but need to destroy by TTL, request count %s, diff is %s",L[o],L[d],L[h],W),!1):(L.timeout!==W&&L.setTimeout(W),!0)}reuseSocket(...L){super.reuseSocket(...L);let q=L[0],W=L[1];W.reusedSocket=!0;let se=this.options.timeout;R(q)!==se&&(q.setTimeout(se),r("%s reset timeout to %sms",q[o],se)),q[d]++,r("%s(requests: %s, finished: %s) reuse on addRequest, timeout %sms",q[o],q[d],q[h],R(q))}[a](){let L=this[n]++;return this[n]===Number.MAX_SAFE_INTEGER&&(this[n]=0),L}[i](L,q){q.timeout&&(R(L)||L.setTimeout(q.timeout)),this.options.keepAlive&&L.setNoDelay(!0),this.createSocketCount++,this.options.socketActiveTTL&&(L[s]=Date.now()),L[o]=`sock[${this[a]()}#${q._agentKey}]`.split("-----BEGIN",1)[0],L[d]=1,L[h]=0,F(this,L,q)}createConnection(L,q){let W=!1,se=(O,c)=>{if(!W){if(W=!0,O)return this.createSocketErrorCount++,q(O);this[i](c,L),q(O,c)}},N=super.createConnection(L,se);return N&&se(null,N),N}get statusChanged(){let L=this.createSocketCount!==this.createSocketCountLastCheck||this.createSocketErrorCount!==this.createSocketErrorCountLastCheck||this.closeSocketCount!==this.closeSocketCountLastCheck||this.errorSocketCount!==this.errorSocketCountLastCheck||this.timeoutSocketCount!==this.timeoutSocketCountLastCheck||this.requestCount!==this.requestCountLastCheck;return L&&(this.createSocketCountLastCheck=this.createSocketCount,this.createSocketErrorCountLastCheck=this.createSocketErrorCount,this.closeSocketCountLastCheck=this.closeSocketCount,this.errorSocketCountLastCheck=this.errorSocketCount,this.timeoutSocketCountLastCheck=this.timeoutSocketCount,this.requestCountLastCheck=this.requestCount),L}getCurrentStatus(){return{createSocketCount:this.createSocketCount,createSocketErrorCount:this.createSocketErrorCount,closeSocketCount:this.closeSocketCount,errorSocketCount:this.errorSocketCount,timeoutSocketCount:this.timeoutSocketCount,requestCount:this.requestCount,freeSockets:$(this.freeSockets),sockets:$(this.sockets),requests:$(this.requests)}}}function R(H){return H.timeout||H._idleTimeout}function F(H,L,q){r("%s create, timeout %sms",L[o],R(L));function W(){if(!L._httpMessage&&L[d]===1)return;L[h]++,H.requestCount++,r("%s(requests: %s, finished: %s) free",L[o],L[d],L[h]);let m=H.getName(q);L.writable&&H.requests[m]&&H.requests[m].length&&(L[d]++,r("%s(requests: %s, finished: %s) will be reuse on agent free event",L[o],L[d],L[h]))}L.on("free",W);function se(m){r("%s(requests: %s, finished: %s) close, isError: %s",L[o],L[d],L[h],m),H.closeSocketCount++}L.on("close",se);function N(){let m=L.listeners("timeout").length,v=R(L),T=L._httpMessage,P=T&&T.listeners("timeout").length||0;r("%s(requests: %s, finished: %s) timeout after %sms, listeners %s, defaultTimeoutListenerCount %s, hasHttpRequest %s, HttpRequest timeoutListenerCount %s",L[o],L[d],L[h],v,m,w,!!T,P),r.enabled&&r("timeout listeners: %s",L.listeners("timeout").map(p=>p.name).join(", ")),H.timeoutSocketCount++;let _=H.getName(q);if(H.freeSockets[_]&&H.freeSockets[_].indexOf(L)!==-1)L.destroy(),H.removeSocket(L,q),r("%s is free, destroy quietly",L[o]);else if(P===0){let p=new Error("Socket timeout");p.code="ERR_SOCKET_TIMEOUT",p.timeout=v,L.destroy(p),H.removeSocket(L,q),r("%s destroy with timeout error",L[o])}}L.on("timeout",N);function O(m){let v=L.listeners("error").length;r("%s(requests: %s, finished: %s) error: %s, listenerCount: %s",L[o],L[d],L[h],m,v),H.errorSocketCount++,v===1&&(r("%s emit uncaught error event",L[o]),L.removeListener("error",O),L.emit("error",m))}L.on("error",O);function c(){r("%s(requests: %s, finished: %s) agentRemove",L[o],L[d],L[h]),L.removeListener("close",se),L.removeListener("error",O),L.removeListener("free",W),L.removeListener("timeout",N),L.removeListener("agentRemove",c)}L.on("agentRemove",c)}I2=I;function $(H){let L={};for(let q in H)L[q]=H[q].length;return L}return I2}var C2,Uy;function kx(){if(Uy)return C2;Uy=1;let t=rx.default.Agent,e=fE(),{INIT_SOCKET:r,CREATE_HTTPS_CONNECTION:i}=of();class n extends e{constructor(s){super(s),this.defaultPort=443,this.protocol="https:",this.maxCachedSessions=this.options.maxCachedSessions,this.maxCachedSessions===void 0&&(this.maxCachedSessions=100),this._sessionCache={map:{},list:[]}}createConnection(s,o){let d=this[i](s,o);return this[r](d,s),d}}return n.prototype[i]=t.prototype.createConnection,["getName","_getSession","_cacheSession","_evictSession"].forEach(function(a){typeof t.prototype[a]=="function"&&(n.prototype[a]=t.prototype[a])}),C2=n,C2}var My;function Dx(){if(My)return Co.exports;My=1;let t=fE();return Co.exports=t,Co.exports.HttpAgent=t,Co.exports.HttpsAgent=kx(),Co.exports.constants=of(),Co.exports}var hE=Dx(),Bx=uE(hE),L2,Fy;function Px(){if(Fy)return L2;Fy=1;var t=Object.prototype.toString,e=Object.keys||function(i){var n=[];for(var a in i)n.push(a);return n};function r(i,n){var a,s,o,d,h,w,A;if(i===!0)return"true";if(i===!1)return"false";switch(typeof i){case"object":if(i===null)return null;if(i.toJSON&&typeof i.toJSON=="function")return r(i.toJSON(),n);if(A=t.call(i),A==="[object Array]"){for(o="[",s=i.length-1,a=0;a<s;a++)o+=r(i[a],!0)+",";return s>-1&&(o+=r(i[a],!0)),o+"]"}else if(A==="[object Object]"){for(d=e(i).sort(),s=d.length,o="",a=0;a<s;)h=d[a],w=r(i[h],!1),w!==void 0&&(o&&(o+=","),o+=JSON.stringify(h)+":"+w),a++;return"{"+o+"}"}else return JSON.stringify(i);case"function":case"undefined":return n?null:void 0;case"string":return JSON.stringify(i);default:return isFinite(i)?i:null}}return L2=function(i){var n=r(i,!1);if(n!==void 0)return""+n},L2}var Ux=Px(),Vy=uE(Ux),td=32;function k2(t){let e=0;for(;t>1;)t/=2,e++;return e}function Mx(t){return t===0?1:(t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,t|=t>>32,t+1)}var k0=class{constructor(e,r,i,n,a){this.slotsPerEpoch=void 0,this.leaderScheduleSlotOffset=void 0,this.warmup=void 0,this.firstNormalEpoch=void 0,this.firstNormalSlot=void 0,this.slotsPerEpoch=e,this.leaderScheduleSlotOffset=r,this.warmup=i,this.firstNormalEpoch=n,this.firstNormalSlot=a}getEpoch(e){return this.getEpochAndSlotIndex(e)[0]}getEpochAndSlotIndex(e){if(e<this.firstNormalSlot){let r=k2(Mx(e+td+1))-k2(td)-1,i=this.getSlotsInEpoch(r),n=e-(i-td);return[r,n]}else{let r=e-this.firstNormalSlot,i=Math.floor(r/this.slotsPerEpoch),n=this.firstNormalEpoch+i,a=r%this.slotsPerEpoch;return[n,a]}}getFirstSlotInEpoch(e){return e<=this.firstNormalEpoch?(Math.pow(2,e)-1)*td:(e-this.firstNormalEpoch)*this.slotsPerEpoch+this.firstNormalSlot}getLastSlotInEpoch(e){return this.getFirstSlotInEpoch(e)+this.getSlotsInEpoch(e)-1}getSlotsInEpoch(e){return e<this.firstNormalEpoch?Math.pow(2,e+k2(td)):this.slotsPerEpoch}},Fx=typeof globalThis.fetch=="function"?globalThis.fetch:async function(t,e){let r=typeof t=="string"&&t.slice(0,2)==="//"?"https:"+t:t;return await nx.default(r,e)},K2=class extends Oy.CommonClient{constructor(e,r,i){let n=a=>{let s=Oy.WebSocket(a,{autoconnect:!0,max_reconnects:5,reconnect:!0,reconnect_interval:1e3,...r});return"socket"in s?this.underlyingSocket=s.socket:this.underlyingSocket=s,s};super(n,e,r,i),this.underlyingSocket=void 0}call(...e){let r=this.underlyingSocket?.readyState;return r===1?super.call(...e):Promise.reject(new Error("Tried to call a JSON-RPC method `"+e[0]+"` but the socket was not `CONNECTING` or `OPEN` (`readyState` was "+r+")"))}notify(...e){let r=this.underlyingSocket?.readyState;return r===1?super.notify(...e):Promise.reject(new Error("Tried to send a JSON-RPC notification `"+e[0]+"` but the socket was not `CONNECTING` or `OPEN` (`readyState` was "+r+")"))}};function Vx(t,e){let r;try{r=t.layout.decode(e)}catch(i){throw new Error("invalid instruction; "+i)}if(r.typeIndex!==t.index)throw new Error(`invalid account data; account type mismatch ${r.typeIndex} != ${t.index}`);return r}var $y=56,od=class{constructor(e){this.key=void 0,this.state=void 0,this.key=e.key,this.state=e.state}isActive(){let e=BigInt("0xffffffffffffffff");return this.state.deactivationSlot===e}static deserialize(e){let r=Vx($x,e),i=e.length-$y;ht(i>=0,"lookup table is invalid"),ht(i%32===0,"lookup table is invalid");let n=i/32,{addresses:a}=G.struct([G.seq(vt(),n,"addresses")]).decode(e.slice($y));return{deactivationSlot:r.deactivationSlot,lastExtendedSlot:r.lastExtendedSlot,lastExtendedSlotStartIndex:r.lastExtendedStartIndex,authority:r.authority.length!==0?new ye(r.authority[0]):void 0,addresses:a.map(s=>new ye(s))}}},$x={index:1,layout:G.struct([G.u32("typeIndex"),Do("deactivationSlot"),G.nu64("lastExtendedSlot"),G.u8("lastExtendedStartIndex"),G.u8(),G.seq(vt(),G.offset(G.u8(),-1),"authority")])},zx=/^[^:]+:\/\/([^:[]+|\[[^\]]+\])(:\d+)?(.*)/i;function Hx(t){let e=t.match(zx);if(e==null)throw TypeError(`Failed to validate endpoint URL \`${t}\``);let[r,i,n,a]=e,s=t.startsWith("https:")?"wss:":"ws:",o=n==null?null:parseInt(n.slice(1),10),d=o==null?"":`:${o+1}`;return`${s}//${i}${d}${a}`}var cr=u.coerce(u.instance(ye),u.string(),t=>new ye(t)),mE=u.tuple([u.string(),u.literal("base64")]),df=u.coerce(u.instance(je.Buffer),mE,t=>je.Buffer.from(t[0],"base64")),_E=30*1e3;function Gx(t){if(/^https?:/.test(t)===!1)throw new TypeError("Endpoint URL must start with `http:` or `https:`.");return t}function Zt(t){let e,r;if(typeof t=="string")e=t;else if(t){let{commitment:i,...n}=t;e=i,r=n}return{commitment:e,config:r}}function zy(t){return t.map(e=>"memcmp"in e?{...e,memcmp:{...e.memcmp,encoding:e.memcmp.encoding??"base58"}}:e)}function gE(t){return u.union([u.type({jsonrpc:u.literal("2.0"),id:u.string(),result:t}),u.type({jsonrpc:u.literal("2.0"),id:u.string(),error:u.type({code:u.unknown(),message:u.string(),data:u.optional(u.any())})})])}var qx=gE(u.unknown());function ct(t){return u.coerce(gE(t),qx,e=>"error"in e?e:{...e,result:u.create(e.result,t)})}function Or(t){return ct(u.type({context:u.type({slot:u.number()}),value:t}))}function V0(t){return u.type({context:u.type({slot:u.number()}),value:t})}function D2(t,e){if(t===0)return new Lo({header:e.header,staticAccountKeys:e.accountKeys.map(r=>new ye(r)),recentBlockhash:e.recentBlockhash,compiledInstructions:e.instructions.map(r=>({programIdIndex:r.programIdIndex,accountKeyIndexes:r.accounts,data:Br.default.decode(r.data)})),addressTableLookups:e.addressTableLookups});if(t===1){let r=e.transactionConfig;if(r==null)throw new Error("Expected a version 1 transaction message response to have a `transactionConfig`");return new sd({header:e.header,staticAccountKeys:e.accountKeys.map(i=>new ye(i)),recentBlockhash:e.recentBlockhash,compiledInstructions:e.instructions.map(i=>({programIdIndex:i.programIdIndex,accountKeyIndexes:i.accounts,data:Br.default.decode(i.data)})),transactionConfig:r})}else return new Dn(e)}var jx=u.type({foundation:u.number(),foundationTerm:u.number(),initial:u.number(),taper:u.number(),terminal:u.number()}),Kx=ct(u.array(u.nullable(u.type({epoch:u.number(),effectiveSlot:u.number(),amount:u.number(),postBalance:u.number(),commission:u.optional(u.nullable(u.number()))})))),Wx=u.array(u.type({slot:u.number(),prioritizationFee:u.number()})),Yx=u.type({total:u.number(),validator:u.number(),foundation:u.number(),epoch:u.number()}),Xx=u.type({epoch:u.number(),slotIndex:u.number(),slotsInEpoch:u.number(),absoluteSlot:u.number(),blockHeight:u.optional(u.number()),transactionCount:u.optional(u.number())}),Zx=u.type({slotsPerEpoch:u.number(),leaderScheduleSlotOffset:u.number(),warmup:u.boolean(),firstNormalEpoch:u.number(),firstNormalSlot:u.number()}),Jx=u.record(u.string(),u.array(u.number())),Ds=u.nullable(u.union([u.type({}),u.string()])),Qx=u.type({err:Ds}),eI=u.literal("receivedSignature"),tI=u.type({"solana-core":u.string(),"feature-set":u.optional(u.number())}),rI=u.type({program:u.string(),programId:cr,parsed:u.unknown()}),iI=u.type({programId:cr,accounts:u.array(cr),data:u.string()}),Hy=Or(u.type({err:u.nullable(u.union([u.type({}),u.string()])),logs:u.nullable(u.array(u.string())),accounts:u.optional(u.nullable(u.array(u.nullable(u.type({executable:u.boolean(),owner:u.string(),lamports:u.number(),data:u.array(u.string()),rentEpoch:u.optional(u.number())}))))),unitsConsumed:u.optional(u.number()),returnData:u.optional(u.nullable(u.type({programId:u.string(),data:u.tuple([u.string(),u.literal("base64")])}))),innerInstructions:u.optional(u.nullable(u.array(u.type({index:u.number(),instructions:u.array(u.union([rI,iI]))}))))})),nI=Or(u.type({byIdentity:u.record(u.string(),u.array(u.number())),range:u.type({firstSlot:u.number(),lastSlot:u.number()})}));function aI(t,e,r,i,n,a){let s=r||Fx,o;if(a==null){let w={freeSocketTimeout:19e3,keepAlive:!0,maxSockets:25};t.startsWith("https:")?o=new hE.HttpsAgent(w):o=new Bx(w)}else if(a!==!1){let w=t.startsWith("https:");if(w&&!(a instanceof M2.Agent))throw new Error("The endpoint `"+t+"` can only be paired with an `https.Agent`. You have, instead, supplied an `http.Agent` through `httpAgent`.");if(!w&&a instanceof M2.Agent)throw new Error("The endpoint `"+t+"` can only be paired with an `http.Agent`. You have, instead, supplied an `https.Agent` through `httpAgent`.");o=a}let d;return i&&(d=async(w,A)=>{let D=await new Promise((I,R)=>{try{i(w,A,(F,$)=>I([F,$]))}catch(F){R(F)}});return await s(...D)}),new ix.default(async(w,A)=>{let D={method:"POST",body:w,agent:o,headers:Object.assign({"Content-Type":"application/json"},e||{},aC)};try{let I=5,R,F=500;for(;d?R=await d(t,D):R=await s(t,D),!(R.status!==429||n===!0||(I-=1,I===0));)console.error(`Server responded with ${R.status} ${R.statusText}. Retrying after ${F}ms delay...`),await Is(F),F*=2;let $=await R.text();R.ok?A(null,$):A(new Error(`${R.status} ${R.statusText}: ${$}`))}catch(I){I instanceof Error&&A(I)}},{})}function sI(t){return(e,r)=>new Promise((i,n)=>{t.request(e,r,(a,s)=>{if(a){n(a);return}i(s)})})}function oI(t){return e=>new Promise((r,i)=>{e.length===0&&r([]);let n=e.map(a=>t.request(a.methodName,a.args));t.request(n,(a,s)=>{if(a){i(a);return}r(s)})})}var dI=ct(jx),pI=ct(Yx),lI=ct(Wx),cI=ct(Xx),uI=ct(Zx),fI=ct(Jx),hI=ct(u.number()),mI=Or(u.type({total:u.number(),circulating:u.number(),nonCirculating:u.number(),nonCirculatingAccounts:u.array(cr)})),W2=u.type({amount:u.string(),uiAmount:u.nullable(u.number()),decimals:u.number(),uiAmountString:u.optional(u.string())}),_I=Or(u.array(u.type({address:cr,amount:u.string(),uiAmount:u.nullable(u.number()),decimals:u.number(),uiAmountString:u.optional(u.string())}))),gI=Or(u.array(u.type({pubkey:cr,account:u.type({executable:u.boolean(),owner:cr,lamports:u.number(),data:df,rentEpoch:u.number()})}))),Y2=u.type({program:u.string(),parsed:u.unknown(),space:u.number()}),yI=Or(u.array(u.type({pubkey:cr,account:u.type({executable:u.boolean(),owner:cr,lamports:u.number(),data:Y2,rentEpoch:u.number()})}))),EI=Or(u.array(u.type({lamports:u.number(),address:cr}))),dd=u.type({executable:u.boolean(),owner:cr,lamports:u.number(),data:df,rentEpoch:u.number()}),vI=u.type({pubkey:cr,account:dd}),wI=u.coerce(u.union([u.instance(je.Buffer),Y2]),u.union([mE,Y2]),t=>Array.isArray(t)?u.create(t,df):t),X2=u.type({executable:u.boolean(),owner:cr,lamports:u.number(),data:wI,rentEpoch:u.number()}),SI=u.type({pubkey:cr,account:X2}),RI=u.type({state:u.union([u.literal("active"),u.literal("inactive"),u.literal("activating"),u.literal("deactivating")]),active:u.number(),inactive:u.number()}),bI=ct(u.array(u.type({signature:u.string(),slot:u.number(),err:Ds,memo:u.nullable(u.string()),blockTime:u.optional(u.nullable(u.number()))}))),AI=ct(u.array(u.type({signature:u.string(),slot:u.number(),err:Ds,memo:u.nullable(u.string()),blockTime:u.optional(u.nullable(u.number()))}))),OI=u.type({subscription:u.number(),result:V0(dd)}),NI=u.type({pubkey:cr,account:dd}),TI=u.type({subscription:u.number(),result:V0(NI)}),xI=u.type({parent:u.number(),slot:u.number(),root:u.number()}),II=u.type({subscription:u.number(),result:xI}),CI=u.union([u.type({type:u.union([u.literal("firstShredReceived"),u.literal("completed"),u.literal("optimisticConfirmation"),u.literal("root")]),slot:u.number(),timestamp:u.number()}),u.type({type:u.literal("createdBank"),parent:u.number(),slot:u.number(),timestamp:u.number()}),u.type({type:u.literal("frozen"),slot:u.number(),timestamp:u.number(),stats:u.type({numTransactionEntries:u.number(),numSuccessfulTransactions:u.number(),numFailedTransactions:u.number(),maxTransactionsPerEntry:u.number()})}),u.type({type:u.literal("dead"),slot:u.number(),timestamp:u.number(),err:u.string()})]),LI=u.type({subscription:u.number(),result:CI}),kI=u.type({subscription:u.number(),result:V0(u.union([Qx,eI]))}),DI=u.type({subscription:u.number(),result:u.number()}),BI=u.type({pubkey:u.string(),gossip:u.nullable(u.string()),tpu:u.nullable(u.string()),rpc:u.nullable(u.string()),version:u.nullable(u.string())}),Gy=u.type({votePubkey:u.string(),nodePubkey:u.string(),activatedStake:u.number(),epochVoteAccount:u.boolean(),epochCredits:u.array(u.tuple([u.number(),u.number(),u.number()])),commission:u.number(),lastVote:u.number(),rootSlot:u.nullable(u.number())}),PI=ct(u.type({current:u.array(Gy),delinquent:u.array(Gy)})),UI=u.union([u.literal("processed"),u.literal("confirmed"),u.literal("finalized")]),MI=u.type({slot:u.number(),confirmations:u.nullable(u.number()),err:Ds,confirmationStatus:u.optional(UI)}),FI=Or(u.array(u.nullable(MI))),VI=ct(u.number()),yE=u.type({accountKey:cr,writableIndexes:u.array(u.number()),readonlyIndexes:u.array(u.number())}),EE=u.type({computeUnitLimit:u.nullable(u.number()),heapSize:u.nullable(u.number()),loadedAccountsDataSizeLimit:u.nullable(u.number()),priorityFee:u.nullable(u.number())}),pf=u.type({signatures:u.array(u.string()),message:u.type({accountKeys:u.array(u.string()),header:u.type({numRequiredSignatures:u.number(),numReadonlySignedAccounts:u.number(),numReadonlyUnsignedAccounts:u.number()}),instructions:u.array(u.type({accounts:u.array(u.number()),data:u.string(),programIdIndex:u.number()})),recentBlockhash:u.string(),addressTableLookups:u.optional(u.array(yE)),transactionConfig:u.optional(u.nullable(EE))})}),vE=u.type({pubkey:cr,signer:u.boolean(),writable:u.boolean(),source:u.optional(u.union([u.literal("transaction"),u.literal("lookupTable")]))}),wE=u.type({accountKeys:u.array(vE),signatures:u.array(u.string())}),SE=u.type({parsed:u.unknown(),program:u.string(),programId:cr}),RE=u.type({accounts:u.array(cr),data:u.string(),programId:cr}),$I=u.union([RE,SE]),zI=u.union([u.type({parsed:u.unknown(),program:u.string(),programId:u.string()}),u.type({accounts:u.array(u.string()),data:u.string(),programId:u.string()})]),bE=u.coerce($I,zI,t=>"accounts"in t?u.create(t,RE):u.create(t,SE)),AE=u.type({signatures:u.array(u.string()),message:u.type({accountKeys:u.array(vE),instructions:u.array(bE),recentBlockhash:u.string(),addressTableLookups:u.optional(u.nullable(u.array(yE))),transactionConfig:u.optional(u.nullable(EE))})}),D0=u.type({accountIndex:u.number(),mint:u.string(),owner:u.optional(u.string()),programId:u.optional(u.string()),uiTokenAmount:W2}),OE=u.type({writable:u.array(cr),readonly:u.array(cr)}),$0=u.type({err:Ds,fee:u.number(),innerInstructions:u.optional(u.nullable(u.array(u.type({index:u.number(),instructions:u.array(u.type({accounts:u.array(u.number()),data:u.string(),programIdIndex:u.number()}))})))),preBalances:u.array(u.number()),postBalances:u.array(u.number()),logMessages:u.optional(u.nullable(u.array(u.string()))),preTokenBalances:u.optional(u.nullable(u.array(D0))),postTokenBalances:u.optional(u.nullable(u.array(D0))),loadedAddresses:u.optional(OE),computeUnitsConsumed:u.optional(u.number()),costUnits:u.optional(u.number())}),lf=u.type({err:Ds,fee:u.number(),innerInstructions:u.optional(u.nullable(u.array(u.type({index:u.number(),instructions:u.array(bE)})))),preBalances:u.array(u.number()),postBalances:u.array(u.number()),logMessages:u.optional(u.nullable(u.array(u.string()))),preTokenBalances:u.optional(u.nullable(u.array(D0))),postTokenBalances:u.optional(u.nullable(u.array(D0))),loadedAddresses:u.optional(OE),computeUnitsConsumed:u.optional(u.number()),costUnits:u.optional(u.number())}),Vo=u.union([u.literal(0),u.literal(1),u.literal("legacy")]),Bs=u.type({pubkey:u.string(),lamports:u.number(),postBalance:u.nullable(u.number()),rewardType:u.nullable(u.string()),commission:u.optional(u.nullable(u.number()))}),HI=ct(u.nullable(u.type({blockhash:u.string(),previousBlockhash:u.string(),parentSlot:u.number(),transactions:u.array(u.type({transaction:pf,meta:u.nullable($0),version:u.optional(Vo)})),rewards:u.optional(u.array(Bs)),blockTime:u.nullable(u.number()),blockHeight:u.nullable(u.number())}))),GI=ct(u.nullable(u.type({blockhash:u.string(),previousBlockhash:u.string(),parentSlot:u.number(),rewards:u.optional(u.array(Bs)),blockTime:u.nullable(u.number()),blockHeight:u.nullable(u.number())}))),qI=ct(u.nullable(u.type({blockhash:u.string(),previousBlockhash:u.string(),parentSlot:u.number(),transactions:u.array(u.type({transaction:wE,meta:u.nullable($0),version:u.optional(Vo)})),rewards:u.optional(u.array(Bs)),blockTime:u.nullable(u.number()),blockHeight:u.nullable(u.number())}))),jI=ct(u.nullable(u.type({blockhash:u.string(),previousBlockhash:u.string(),parentSlot:u.number(),transactions:u.array(u.type({transaction:AE,meta:u.nullable(lf),version:u.optional(Vo)})),rewards:u.optional(u.array(Bs)),blockTime:u.nullable(u.number()),blockHeight:u.nullable(u.number())}))),KI=ct(u.nullable(u.type({blockhash:u.string(),previousBlockhash:u.string(),parentSlot:u.number(),transactions:u.array(u.type({transaction:wE,meta:u.nullable(lf),version:u.optional(Vo)})),rewards:u.optional(u.array(Bs)),blockTime:u.nullable(u.number()),blockHeight:u.nullable(u.number())}))),WI=ct(u.nullable(u.type({blockhash:u.string(),previousBlockhash:u.string(),parentSlot:u.number(),rewards:u.optional(u.array(Bs)),blockTime:u.nullable(u.number()),blockHeight:u.nullable(u.number())}))),YI=ct(u.nullable(u.type({blockhash:u.string(),previousBlockhash:u.string(),parentSlot:u.number(),transactions:u.array(u.type({transaction:pf,meta:u.nullable($0)})),rewards:u.optional(u.array(Bs)),blockTime:u.nullable(u.number())}))),qy=ct(u.nullable(u.type({blockhash:u.string(),previousBlockhash:u.string(),parentSlot:u.number(),signatures:u.array(u.string()),blockTime:u.nullable(u.number())}))),B2=ct(u.nullable(u.type({slot:u.number(),meta:u.nullable($0),blockTime:u.optional(u.nullable(u.number())),transaction:pf,version:u.optional(Vo)}))),O0=ct(u.nullable(u.type({slot:u.number(),transaction:AE,meta:u.nullable(lf),blockTime:u.optional(u.nullable(u.number())),version:u.optional(Vo)}))),XI=Or(u.type({blockhash:u.string(),lastValidBlockHeight:u.number()})),ZI=Or(u.boolean()),JI=u.type({slot:u.number(),numTransactions:u.number(),numSlots:u.number(),samplePeriodSecs:u.number()}),QI=ct(u.array(JI)),eC=Or(u.nullable(u.type({feeCalculator:u.type({lamportsPerSignature:u.number()})}))),tC=ct(u.string()),rC=ct(u.string()),iC=u.type({err:Ds,logs:u.array(u.string()),signature:u.string()}),nC=u.type({result:V0(iC),subscription:u.number()}),aC={"solana-client":"js/1.99.0"},Z2=class{constructor(e,r){this._commitment=void 0,this._confirmTransactionInitialTimeout=void 0,this._rpcEndpoint=void 0,this._rpcWsEndpoint=void 0,this._rpcClient=void 0,this._rpcRequest=void 0,this._rpcBatchRequest=void 0,this._rpcWebSocket=void 0,this._rpcWebSocketConnected=!1,this._rpcWebSocketHeartbeat=null,this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketGeneration=0,this._disableBlockhashCaching=!1,this._pollingBlockhash=!1,this._blockhashInfo={latestBlockhash:null,lastFetch:0,transactionSignatures:[],simulatedSignatures:[]},this._nextClientSubscriptionId=0,this._subscriptionDisposeFunctionsByClientSubscriptionId={},this._subscriptionHashByClientSubscriptionId={},this._subscriptionStateChangeCallbacksByHash={},this._subscriptionCallbacksByServerSubscriptionId={},this._subscriptionsByHash={},this._subscriptionsAutoDisposedByRpc=new Set,this.getBlockHeight=(()=>{let h={};return async w=>{let{commitment:A,config:D}=Zt(w),I=this._buildArgs([],A,void 0,D),R=Vy(I);return h[R]=h[R]??(async()=>{try{let F=await this._rpcRequest("getBlockHeight",I),$=u.create(F,ct(u.number()));if("error"in $)throw new Ie($.error,"failed to get block height information");return $.result}finally{delete h[R]}})(),await h[R]}})();let i,n,a,s,o,d;r&&typeof r=="string"?this._commitment=r:r&&(this._commitment=r.commitment,this._confirmTransactionInitialTimeout=r.confirmTransactionInitialTimeout,i=r.wsEndpoint,n=r.httpHeaders,a=r.fetch,s=r.fetchMiddleware,o=r.disableRetryOnRateLimit,d=r.httpAgent),this._rpcEndpoint=Gx(e),this._rpcWsEndpoint=i||Hx(e),this._rpcClient=aI(e,n,a,s,o,d),this._rpcRequest=sI(this._rpcClient),this._rpcBatchRequest=oI(this._rpcClient),this._rpcWebSocket=new K2(this._rpcWsEndpoint,{autoconnect:!1,max_reconnects:1/0}),this._rpcWebSocket.on("open",this._wsOnOpen.bind(this)),this._rpcWebSocket.on("error",this._wsOnError.bind(this)),this._rpcWebSocket.on("close",this._wsOnClose.bind(this)),this._rpcWebSocket.on("accountNotification",this._wsOnAccountNotification.bind(this)),this._rpcWebSocket.on("programNotification",this._wsOnProgramAccountNotification.bind(this)),this._rpcWebSocket.on("slotNotification",this._wsOnSlotNotification.bind(this)),this._rpcWebSocket.on("slotsUpdatesNotification",this._wsOnSlotUpdatesNotification.bind(this)),this._rpcWebSocket.on("signatureNotification",this._wsOnSignatureNotification.bind(this)),this._rpcWebSocket.on("rootNotification",this._wsOnRootNotification.bind(this)),this._rpcWebSocket.on("logsNotification",this._wsOnLogsNotification.bind(this))}get commitment(){return this._commitment}get rpcEndpoint(){return this._rpcEndpoint}async getBalanceAndContext(e,r){let{commitment:i,config:n}=Zt(r),a=this._buildArgs([e.toBase58()],i,void 0,n),s=await this._rpcRequest("getBalance",a),o=u.create(s,Or(u.number()));if("error"in o)throw new Ie(o.error,`failed to get balance for ${e.toBase58()}`);return o.result}async getBalance(e,r){return await this.getBalanceAndContext(e,r).then(i=>i.value).catch(i=>{throw new Error("failed to get balance of account "+e.toBase58()+": "+i)})}async getBlockTime(e){let r=await this._rpcRequest("getBlockTime",[e]),i=u.create(r,ct(u.nullable(u.number())));if("error"in i)throw new Ie(i.error,`failed to get block time for slot ${e}`);return i.result}async getMinimumLedgerSlot(){let e=await this._rpcRequest("minimumLedgerSlot",[]),r=u.create(e,ct(u.number()));if("error"in r)throw new Ie(r.error,"failed to get minimum ledger slot");return r.result}async getFirstAvailableBlock(){let e=await this._rpcRequest("getFirstAvailableBlock",[]),r=u.create(e,hI);if("error"in r)throw new Ie(r.error,"failed to get first available block");return r.result}async getSupply(e){let r={};typeof e=="string"?r={commitment:e}:e?r={...e,commitment:e&&e.commitment||this.commitment}:r={commitment:this.commitment};let i=await this._rpcRequest("getSupply",[r]),n=u.create(i,mI);if("error"in n)throw new Ie(n.error,"failed to get supply");return n.result}async getTokenSupply(e,r){let i=this._buildArgs([e.toBase58()],r),n=await this._rpcRequest("getTokenSupply",i),a=u.create(n,Or(W2));if("error"in a)throw new Ie(a.error,"failed to get token supply");return a.result}async getTokenAccountBalance(e,r){let i=this._buildArgs([e.toBase58()],r),n=await this._rpcRequest("getTokenAccountBalance",i),a=u.create(n,Or(W2));if("error"in a)throw new Ie(a.error,"failed to get token account balance");return a.result}async getTokenAccountsByOwner(e,r,i){let{commitment:n,config:a}=Zt(i),s=[e.toBase58()];"mint"in r?s.push({mint:r.mint.toBase58()}):s.push({programId:r.programId.toBase58()});let o=this._buildArgs(s,n,"base64",a),d=await this._rpcRequest("getTokenAccountsByOwner",o),h=u.create(d,gI);if("error"in h)throw new Ie(h.error,`failed to get token accounts owned by account ${e.toBase58()}`);return h.result}async getParsedTokenAccountsByOwner(e,r,i){let n=[e.toBase58()];"mint"in r?n.push({mint:r.mint.toBase58()}):n.push({programId:r.programId.toBase58()});let a=this._buildArgs(n,i,"jsonParsed"),s=await this._rpcRequest("getTokenAccountsByOwner",a),o=u.create(s,yI);if("error"in o)throw new Ie(o.error,`failed to get token accounts owned by account ${e.toBase58()}`);return o.result}async getLargestAccounts(e){let r={...e,commitment:e&&e.commitment||this.commitment},i=r.filter||r.commitment?[r]:[],n=await this._rpcRequest("getLargestAccounts",i),a=u.create(n,EI);if("error"in a)throw new Ie(a.error,"failed to get largest accounts");return a.result}async getTokenLargestAccounts(e,r){let i=this._buildArgs([e.toBase58()],r),n=await this._rpcRequest("getTokenLargestAccounts",i),a=u.create(n,_I);if("error"in a)throw new Ie(a.error,"failed to get token largest accounts");return a.result}async getAccountInfoAndContext(e,r){let{commitment:i,config:n}=Zt(r),a=this._buildArgs([e.toBase58()],i,"base64",n),s=await this._rpcRequest("getAccountInfo",a),o=u.create(s,Or(u.nullable(dd)));if("error"in o)throw new Ie(o.error,`failed to get info about account ${e.toBase58()}`);return o.result}async getParsedAccountInfo(e,r){let{commitment:i,config:n}=Zt(r),a=this._buildArgs([e.toBase58()],i,"jsonParsed",n),s=await this._rpcRequest("getAccountInfo",a),o=u.create(s,Or(u.nullable(X2)));if("error"in o)throw new Ie(o.error,`failed to get info about account ${e.toBase58()}`);return o.result}async getAccountInfo(e,r){try{return(await this.getAccountInfoAndContext(e,r)).value}catch(i){throw new Error("failed to get info about account "+e.toBase58()+": "+i)}}async getMultipleParsedAccounts(e,r){let{commitment:i,config:n}=Zt(r),a=e.map(h=>h.toBase58()),s=this._buildArgs([a],i,"jsonParsed",n),o=await this._rpcRequest("getMultipleAccounts",s),d=u.create(o,Or(u.array(u.nullable(X2))));if("error"in d)throw new Ie(d.error,`failed to get info for accounts ${a}`);return d.result}async getMultipleAccountsInfoAndContext(e,r){let{commitment:i,config:n}=Zt(r),a=e.map(h=>h.toBase58()),s=this._buildArgs([a],i,"base64",n),o=await this._rpcRequest("getMultipleAccounts",s),d=u.create(o,Or(u.array(u.nullable(dd))));if("error"in d)throw new Ie(d.error,`failed to get info for accounts ${a}`);return d.result}async getMultipleAccountsInfo(e,r){return(await this.getMultipleAccountsInfoAndContext(e,r)).value}async getStakeActivation(e,r,i){let{commitment:n,config:a}=Zt(r),s=this._buildArgs([e.toBase58()],n,void 0,{...a,epoch:i??a?.epoch}),o=await this._rpcRequest("getStakeActivation",s),d=u.create(o,ct(RI));if("error"in d)throw new Ie(d.error,`failed to get Stake Activation ${e.toBase58()}`);return d.result}async getProgramAccounts(e,r){let{commitment:i,config:n}=Zt(r),{encoding:a,...s}=n||{},o=this._buildArgs([e.toBase58()],i,a||"base64",{...s,...s.filters?{filters:zy(s.filters)}:null}),d=await this._rpcRequest("getProgramAccounts",o),h=u.array(vI),w=s.withContext===!0?u.create(d,Or(h)):u.create(d,ct(h));if("error"in w)throw new Ie(w.error,`failed to get accounts owned by program ${e.toBase58()}`);return w.result}async getParsedProgramAccounts(e,r){let{commitment:i,config:n}=Zt(r),a=this._buildArgs([e.toBase58()],i,"jsonParsed",n),s=await this._rpcRequest("getProgramAccounts",a),o=u.create(s,ct(u.array(SI)));if("error"in o)throw new Ie(o.error,`failed to get accounts owned by program ${e.toBase58()}`);return o.result}async confirmTransaction(e,r){let i;if(typeof e=="string")i=e;else{let a=e;if(a.abortSignal?.aborted)return Promise.reject(a.abortSignal.reason);i=a.signature}let n;try{n=Br.default.decode(i)}catch{throw new Error("signature must be base58 encoded: "+i)}return ht(n.length===64,"signature has invalid length"),typeof e=="string"?await this.confirmTransactionUsingLegacyTimeoutStrategy({commitment:r||this.commitment,signature:i}):"lastValidBlockHeight"in e?await this.confirmTransactionUsingBlockHeightExceedanceStrategy({commitment:r||this.commitment,strategy:e}):await this.confirmTransactionUsingDurableNonceStrategy({commitment:r||this.commitment,strategy:e})}getCancellationPromise(e){return new Promise((r,i)=>{e!=null&&(e.aborted?i(e.reason):e.addEventListener("abort",()=>{i(e.reason)}))})}getTransactionConfirmationPromise({commitment:e,signature:r}){let i,n,a=!1,s=new Promise((d,h)=>{try{i=this.onSignature(r,(A,D)=>{i=void 0;let I={context:D,value:A};d({__type:pa.PROCESSED,response:I})},e);let w=new Promise(A=>{i==null?A():n=this._onSubscriptionStateChange(i,D=>{D==="subscribed"&&A()})});(async()=>{if(await w,a)return;let A=await this.getSignatureStatus(r);if(a||A==null)return;let{context:D,value:I}=A;if(I!=null)if(I?.err)h(I.err);else{switch(e){case"confirmed":case"single":case"singleGossip":{if(I.confirmationStatus==="processed")return;break}case"finalized":case"max":case"root":{if(I.confirmationStatus==="processed"||I.confirmationStatus==="confirmed")return;break}case"processed":case"recent":}a=!0,d({__type:pa.PROCESSED,response:{context:D,value:I}})}})()}catch(w){h(w)}});return{abortConfirmation:()=>{n&&(n(),n=void 0),i!=null&&(this.removeSignatureListener(i),i=void 0)},confirmationPromise:s}}async confirmTransactionUsingBlockHeightExceedanceStrategy({commitment:e,strategy:{abortSignal:r,lastValidBlockHeight:i,signature:n}}){let a=!1,s=new Promise(A=>{let D=async()=>{try{return await this.getBlockHeight(e)}catch{return-1}};(async()=>{let I=await D();if(!a){for(;I<=i;)if(await Is(1e3),a||(I=await D(),a))return;A({__type:pa.BLOCKHEIGHT_EXCEEDED})}})()}),{abortConfirmation:o,confirmationPromise:d}=this.getTransactionConfirmationPromise({commitment:e,signature:n}),h=this.getCancellationPromise(r),w;try{let A=await Promise.race([h,d,s]);if(A.__type===pa.PROCESSED)w=A.response;else throw new nd(n)}finally{a=!0,o()}return w}async confirmTransactionUsingDurableNonceStrategy({commitment:e,strategy:{abortSignal:r,minContextSlot:i,nonceAccountPubkey:n,nonceValue:a,signature:s}}){let o=!1,d=new Promise(I=>{let R=a,F=null,$=async()=>{try{let{context:H,value:L}=await this.getNonceAndContext(n,{commitment:e,minContextSlot:i});return F=H.slot,L?.nonce}catch{return R}};(async()=>{if(R=await $(),!o)for(;;){if(a!==R){I({__type:pa.NONCE_INVALID,slotInWhichNonceDidAdvance:F});return}if(await Is(2e3),o||(R=await $(),o))return}})()}),{abortConfirmation:h,confirmationPromise:w}=this.getTransactionConfirmationPromise({commitment:e,signature:s}),A=this.getCancellationPromise(r),D;try{let I=await Promise.race([A,w,d]);if(I.__type===pa.PROCESSED)D=I.response;else{let R;for(;;){let F=await this.getSignatureStatus(s);if(F==null)break;if(F.context.slot<(I.slotInWhichNonceDidAdvance??i)){await Is(400);continue}R=F;break}if(R?.value){let F=e||"finalized",{confirmationStatus:$}=R.value;switch(F){case"processed":case"recent":if($!=="processed"&&$!=="confirmed"&&$!=="finalized")throw new Ga(s);break;case"confirmed":case"single":case"singleGossip":if($!=="confirmed"&&$!=="finalized")throw new Ga(s);break;case"finalized":case"max":case"root":if($!=="finalized")throw new Ga(s);break;default:}D={context:R.context,value:{err:R.value.err}}}else throw new Ga(s)}}finally{o=!0,h()}return D}async confirmTransactionUsingLegacyTimeoutStrategy({commitment:e,signature:r}){let i,n=new Promise(d=>{let h=this._confirmTransactionInitialTimeout||6e4;switch(e){case"processed":case"recent":case"single":case"confirmed":case"singleGossip":{h=this._confirmTransactionInitialTimeout||3e4;break}}i=setTimeout(()=>d({__type:pa.TIMED_OUT,timeoutMs:h}),h)}),{abortConfirmation:a,confirmationPromise:s}=this.getTransactionConfirmationPromise({commitment:e,signature:r}),o;try{let d=await Promise.race([s,n]);if(d.__type===pa.PROCESSED)o=d.response;else throw new ad(r,d.timeoutMs/1e3)}finally{clearTimeout(i),a()}return o}async getClusterNodes(){let e=await this._rpcRequest("getClusterNodes",[]),r=u.create(e,ct(u.array(BI)));if("error"in r)throw new Ie(r.error,"failed to get cluster nodes");return r.result}async getVoteAccounts(e){let r=this._buildArgs([],e),i=await this._rpcRequest("getVoteAccounts",r),n=u.create(i,PI);if("error"in n)throw new Ie(n.error,"failed to get vote accounts");return n.result}async getSlot(e){let{commitment:r,config:i}=Zt(e),n=this._buildArgs([],r,void 0,i),a=await this._rpcRequest("getSlot",n),s=u.create(a,ct(u.number()));if("error"in s)throw new Ie(s.error,"failed to get slot");return s.result}async getSlotLeader(e){let{commitment:r,config:i}=Zt(e),n=this._buildArgs([],r,void 0,i),a=await this._rpcRequest("getSlotLeader",n),s=u.create(a,ct(u.string()));if("error"in s)throw new Ie(s.error,"failed to get slot leader");return s.result}async getSlotLeaders(e,r){let i=[e,r],n=await this._rpcRequest("getSlotLeaders",i),a=u.create(n,ct(u.array(cr)));if("error"in a)throw new Ie(a.error,"failed to get slot leaders");return a.result}async getSignatureStatus(e,r){let{context:i,value:n}=await this.getSignatureStatuses([e],r);ht(n.length===1);let a=n[0];return{context:i,value:a}}async getSignatureStatuses(e,r){let i=[e];r&&i.push(r);let n=await this._rpcRequest("getSignatureStatuses",i),a=u.create(n,FI);if("error"in a)throw new Ie(a.error,"failed to get signature status");return a.result}async getTransactionCount(e){let{commitment:r,config:i}=Zt(e),n=this._buildArgs([],r,void 0,i),a=await this._rpcRequest("getTransactionCount",n),s=u.create(a,ct(u.number()));if("error"in s)throw new Ie(s.error,"failed to get transaction count");return s.result}async getTotalSupply(e){return(await this.getSupply({commitment:e,excludeNonCirculatingAccountsList:!0})).value.total}async getInflationGovernor(e){let r=this._buildArgs([],e),i=await this._rpcRequest("getInflationGovernor",r),n=u.create(i,dI);if("error"in n)throw new Ie(n.error,"failed to get inflation");return n.result}async getInflationReward(e,r,i){let{commitment:n,config:a}=Zt(i),s=this._buildArgs([e.map(h=>h.toBase58())],n,void 0,{...a,epoch:r??a?.epoch}),o=await this._rpcRequest("getInflationReward",s),d=u.create(o,Kx);if("error"in d)throw new Ie(d.error,"failed to get inflation reward");return d.result}async getInflationRate(){let e=await this._rpcRequest("getInflationRate",[]),r=u.create(e,pI);if("error"in r)throw new Ie(r.error,"failed to get inflation rate");return r.result}async getEpochInfo(e){let{commitment:r,config:i}=Zt(e),n=this._buildArgs([],r,void 0,i),a=await this._rpcRequest("getEpochInfo",n),s=u.create(a,cI);if("error"in s)throw new Ie(s.error,"failed to get epoch info");return s.result}async getEpochSchedule(){let e=await this._rpcRequest("getEpochSchedule",[]),r=u.create(e,uI);if("error"in r)throw new Ie(r.error,"failed to get epoch schedule");let i=r.result;return new k0(i.slotsPerEpoch,i.leaderScheduleSlotOffset,i.warmup,i.firstNormalEpoch,i.firstNormalSlot)}async getLeaderSchedule(){let e=await this._rpcRequest("getLeaderSchedule",[]),r=u.create(e,fI);if("error"in r)throw new Ie(r.error,"failed to get leader schedule");return r.result}async getMinimumBalanceForRentExemption(e,r){let i=this._buildArgs([e],r),n=await this._rpcRequest("getMinimumBalanceForRentExemption",i),a=u.create(n,VI);return"error"in a?(console.warn("Unable to fetch minimum balance for rent exemption"),0):a.result}async getRecentBlockhashAndContext(e){let{context:r,value:{blockhash:i}}=await this.getLatestBlockhashAndContext(e);return{context:r,value:{blockhash:i,feeCalculator:{get lamportsPerSignature(){throw new Error("The capability to fetch `lamportsPerSignature` using the `getRecentBlockhash` API is no longer offered by the network. Use the `getFeeForMessage` API to obtain the fee for a given message.")},toJSON(){return{}}}}}}async getRecentPerformanceSamples(e){let r=await this._rpcRequest("getRecentPerformanceSamples",e?[e]:[]),i=u.create(r,QI);if("error"in i)throw new Ie(i.error,"failed to get recent performance samples");return i.result}async getFeeCalculatorForBlockhash(e,r){let i=this._buildArgs([e],r),n=await this._rpcRequest("getFeeCalculatorForBlockhash",i),a=u.create(n,eC);if("error"in a)throw new Ie(a.error,"failed to get fee calculator");let{context:s,value:o}=a.result;return{context:s,value:o!==null?o.feeCalculator:null}}async getFeeForMessage(e,r){let i=ut(e.serialize()).toString("base64"),n=this._buildArgs([i],r),a=await this._rpcRequest("getFeeForMessage",n),s=u.create(a,Or(u.nullable(u.number())));if("error"in s)throw new Ie(s.error,"failed to get fee for message");if(s.result===null)throw new Error("invalid blockhash");return s.result}async getRecentPrioritizationFees(e){let r=e?.lockedWritableAccounts?.map(s=>s.toBase58()),i=r?.length?[r]:[],n=await this._rpcRequest("getRecentPrioritizationFees",i),a=u.create(n,lI);if("error"in a)throw new Ie(a.error,"failed to get recent prioritization fees");return a.result}async getRecentBlockhash(e){try{return(await this.getRecentBlockhashAndContext(e)).value}catch(r){throw new Error("failed to get recent blockhash: "+r)}}async getLatestBlockhash(e){try{return(await this.getLatestBlockhashAndContext(e)).value}catch(r){throw new Error("failed to get recent blockhash: "+r)}}async getLatestBlockhashAndContext(e){let{commitment:r,config:i}=Zt(e),n=this._buildArgs([],r,void 0,i),a=await this._rpcRequest("getLatestBlockhash",n),s=u.create(a,XI);if("error"in s)throw new Ie(s.error,"failed to get latest blockhash");return s.result}async isBlockhashValid(e,r){let{commitment:i,config:n}=Zt(r),a=this._buildArgs([e],i,void 0,n),s=await this._rpcRequest("isBlockhashValid",a),o=u.create(s,ZI);if("error"in o)throw new Ie(o.error,"failed to determine if the blockhash `"+e+"`is valid");return o.result}async getVersion(){let e=await this._rpcRequest("getVersion",[]),r=u.create(e,ct(tI));if("error"in r)throw new Ie(r.error,"failed to get version");return r.result}async getGenesisHash(){let e=await this._rpcRequest("getGenesisHash",[]),r=u.create(e,ct(u.string()));if("error"in r)throw new Ie(r.error,"failed to get genesis hash");return r.result}async getBlock(e,r){let{commitment:i,config:n}=Zt(r),a=this._buildArgsAtLeastConfirmed([e],i,void 0,n),s=await this._rpcRequest("getBlock",a);try{switch(n?.transactionDetails){case"accounts":{let o=u.create(s,qI);if("error"in o)throw o.error;return o.result}case"none":{let o=u.create(s,GI);if("error"in o)throw o.error;return o.result}default:{let o=u.create(s,HI);if("error"in o)throw o.error;let{result:d}=o;return d?{...d,transactions:d.transactions.map(({transaction:h,meta:w,version:A})=>({meta:w,transaction:{...h,message:D2(A,h.message)},version:A}))}:null}}}catch(o){throw new Ie(o,"failed to get confirmed block")}}async getParsedBlock(e,r){let{commitment:i,config:n}=Zt(r),a=this._buildArgsAtLeastConfirmed([e],i,"jsonParsed",n),s=await this._rpcRequest("getBlock",a);try{switch(n?.transactionDetails){case"accounts":{let o=u.create(s,KI);if("error"in o)throw o.error;return o.result}case"none":{let o=u.create(s,WI);if("error"in o)throw o.error;return o.result}default:{let o=u.create(s,jI);if("error"in o)throw o.error;return o.result}}}catch(o){throw new Ie(o,"failed to get block")}}async getBlockProduction(e){let r,i;if(typeof e=="string")i=e;else if(e){let{commitment:o,...d}=e;i=o,r=d}let n=this._buildArgs([],i,"base64",r),a=await this._rpcRequest("getBlockProduction",n),s=u.create(a,nI);if("error"in s)throw new Ie(s.error,"failed to get block production information");return s.result}async getTransaction(e,r){let{commitment:i,config:n}=Zt(r),a=this._buildArgsAtLeastConfirmed([e],i,void 0,n),s=await this._rpcRequest("getTransaction",a),o=u.create(s,B2);if("error"in o)throw new Ie(o.error,"failed to get transaction");let d=o.result;return d&&{...d,transaction:{...d.transaction,message:D2(d.version,d.transaction.message)}}}async getParsedTransaction(e,r){let{commitment:i,config:n}=Zt(r),a=this._buildArgsAtLeastConfirmed([e],i,"jsonParsed",n),s=await this._rpcRequest("getTransaction",a),o=u.create(s,O0);if("error"in o)throw new Ie(o.error,"failed to get transaction");return o.result}async getParsedTransactions(e,r){let{commitment:i,config:n}=Zt(r),a=e.map(d=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([d],i,"jsonParsed",n)}));return(await this._rpcBatchRequest(a)).map(d=>{let h=u.create(d,O0);if("error"in h)throw new Ie(h.error,"failed to get transactions");return h.result})}async getTransactions(e,r){let{commitment:i,config:n}=Zt(r),a=e.map(d=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([d],i,void 0,n)}));return(await this._rpcBatchRequest(a)).map(d=>{let h=u.create(d,B2);if("error"in h)throw new Ie(h.error,"failed to get transactions");let w=h.result;return w&&{...w,transaction:{...w.transaction,message:D2(w.version,w.transaction.message)}}})}async getConfirmedBlock(e,r){let i=this._buildArgsAtLeastConfirmed([e],r),n=await this._rpcRequest("getBlock",i),a=u.create(n,YI);if("error"in a)throw new Ie(a.error,"failed to get confirmed block");let s=a.result;if(!s)throw new Error("Confirmed block "+e+" not found");let o={...s,transactions:s.transactions.map(({transaction:d,meta:h})=>{let w=new Dn(d.message);return{meta:h,transaction:{...d,message:w}}})};return{...o,transactions:o.transactions.map(({transaction:d,meta:h})=>({meta:h,transaction:Bt.populate(d.message,d.signatures)}))}}async getBlocks(e,r,i){let n=this._buildArgsAtLeastConfirmed(r!==void 0?[e,r]:[e],i),a=await this._rpcRequest("getBlocks",n),s=u.create(a,ct(u.array(u.number())));if("error"in s)throw new Ie(s.error,"failed to get blocks");return s.result}async getBlockSignatures(e,r){let i=this._buildArgsAtLeastConfirmed([e],r,void 0,{transactionDetails:"signatures",rewards:!1}),n=await this._rpcRequest("getBlock",i),a=u.create(n,qy);if("error"in a)throw new Ie(a.error,"failed to get block");let s=a.result;if(!s)throw new Error("Block "+e+" not found");return s}async getConfirmedBlockSignatures(e,r){let i=this._buildArgsAtLeastConfirmed([e],r,void 0,{transactionDetails:"signatures",rewards:!1}),n=await this._rpcRequest("getBlock",i),a=u.create(n,qy);if("error"in a)throw new Ie(a.error,"failed to get confirmed block");let s=a.result;if(!s)throw new Error("Confirmed block "+e+" not found");return s}async getConfirmedTransaction(e,r){let i=this._buildArgsAtLeastConfirmed([e],r),n=await this._rpcRequest("getTransaction",i),a=u.create(n,B2);if("error"in a)throw new Ie(a.error,"failed to get transaction");let s=a.result;if(!s)return s;let o=new Dn(s.transaction.message),d=s.transaction.signatures;return{...s,transaction:Bt.populate(o,d)}}async getParsedConfirmedTransaction(e,r){let i=this._buildArgsAtLeastConfirmed([e],r,"jsonParsed"),n=await this._rpcRequest("getTransaction",i),a=u.create(n,O0);if("error"in a)throw new Ie(a.error,"failed to get confirmed transaction");return a.result}async getParsedConfirmedTransactions(e,r){let i=e.map(s=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([s],r,"jsonParsed")}));return(await this._rpcBatchRequest(i)).map(s=>{let o=u.create(s,O0);if("error"in o)throw new Ie(o.error,"failed to get confirmed transactions");return o.result})}async getConfirmedSignaturesForAddress(e,r,i){let n={},a=await this.getFirstAvailableBlock();for(;!("until"in n)&&(r--,!(r<=0||r<a));)try{let d=await this.getConfirmedBlockSignatures(r,"finalized");d.signatures.length>0&&(n.until=d.signatures[d.signatures.length-1].toString())}catch(d){if(d instanceof Error&&d.message.includes("skipped"))continue;throw d}let s=await this.getSlot("finalized");for(;!("before"in n)&&(i++,!(i>s));)try{let d=await this.getConfirmedBlockSignatures(i);d.signatures.length>0&&(n.before=d.signatures[d.signatures.length-1].toString())}catch(d){if(d instanceof Error&&d.message.includes("skipped"))continue;throw d}return(await this.getConfirmedSignaturesForAddress2(e,n)).map(d=>d.signature)}async getConfirmedSignaturesForAddress2(e,r,i){let n=this._buildArgsAtLeastConfirmed([e.toBase58()],i,void 0,r),a=await this._rpcRequest("getConfirmedSignaturesForAddress2",n),s=u.create(a,bI);if("error"in s)throw new Ie(s.error,"failed to get confirmed signatures for address");return s.result}async getSignaturesForAddress(e,r,i){let n=this._buildArgsAtLeastConfirmed([e.toBase58()],i,void 0,r),a=await this._rpcRequest("getSignaturesForAddress",n),s=u.create(a,AI);if("error"in s)throw new Ie(s.error,"failed to get signatures for address");return s.result}async getAddressLookupTable(e,r){let{context:i,value:n}=await this.getAccountInfoAndContext(e,r),a=null;return n!==null&&(a=new od({key:e,state:od.deserialize(n.data)})),{context:i,value:a}}async getNonceAndContext(e,r){let{context:i,value:n}=await this.getAccountInfoAndContext(e,r),a=null;return n!==null&&(a=L0.fromAccountData(n.data)),{context:i,value:a}}async getNonce(e,r){return await this.getNonceAndContext(e,r).then(i=>i.value).catch(i=>{throw new Error("failed to get nonce for account "+e.toBase58()+": "+i)})}async requestAirdrop(e,r){let i=await this._rpcRequest("requestAirdrop",[e.toBase58(),r]),n=u.create(i,tC);if("error"in n)throw new Ie(n.error,`airdrop to ${e.toBase58()} failed`);return n.result}async _blockhashWithExpiryBlockHeight(e){if(!e){for(;this._pollingBlockhash;)await Is(100);let i=Date.now()-this._blockhashInfo.lastFetch>=_E;if(this._blockhashInfo.latestBlockhash!==null&&!i)return this._blockhashInfo.latestBlockhash}return await this._pollNewBlockhash()}async _pollNewBlockhash(){this._pollingBlockhash=!0;try{let e=Date.now(),r=this._blockhashInfo.latestBlockhash,i=r?r.blockhash:null;for(let n=0;n<50;n++){let a=await this.getLatestBlockhash("finalized");if(i!==a.blockhash)return this._blockhashInfo={latestBlockhash:a,lastFetch:Date.now(),transactionSignatures:[],simulatedSignatures:[]},a;await Is(pE/2)}throw new Error(`Unable to obtain a new blockhash after ${Date.now()-e}ms`)}finally{this._pollingBlockhash=!1}}async getStakeMinimumDelegation(e){let{commitment:r,config:i}=Zt(e),n=this._buildArgs([],r,"base64",i),a=await this._rpcRequest("getStakeMinimumDelegation",n),s=u.create(a,Or(u.number()));if("error"in s)throw new Ie(s.error,"failed to get stake minimum delegation");return s.result}async simulateTransaction(e,r,i){if("message"in e){let F=e.serialize(),$=je.Buffer.from(F).toString("base64");if(Array.isArray(r)||i!==void 0)throw new Error("Invalid arguments");let H=r||{};H.encoding="base64","commitment"in H||(H.commitment=this.commitment),r&&typeof r=="object"&&"innerInstructions"in r&&(H.innerInstructions=r.innerInstructions);let L=[$,H],q=await this._rpcRequest("simulateTransaction",L),W=u.create(q,Hy);if("error"in W)throw new Error("failed to simulate transaction: "+W.error.message);return W.result}let n;if(e instanceof Bt){let R=e;n=new Bt,n.feePayer=R.feePayer,n.instructions=e.instructions,n.nonceInfo=R.nonceInfo,n.signatures=R.signatures}else n=Bt.populate(e),n._message=n._json=void 0;if(r!==void 0&&!Array.isArray(r))throw new Error("Invalid arguments");let a=r;if(n.nonceInfo&&a)n.sign(...a);else{let R=this._disableBlockhashCaching;for(;;){let F=await this._blockhashWithExpiryBlockHeight(R);if(n.lastValidBlockHeight=F.lastValidBlockHeight,n.recentBlockhash=F.blockhash,!a)break;if(n.sign(...a),!n.signature)throw new Error("!signature");let $=n.signature.toString("base64");if(!this._blockhashInfo.simulatedSignatures.includes($)&&!this._blockhashInfo.transactionSignatures.includes($)){this._blockhashInfo.simulatedSignatures.push($);break}else R=!0}}let s=n._compile(),o=s.serialize(),h=n._serialize(o).toString("base64"),w={encoding:"base64",commitment:this.commitment};if(i){let R=(Array.isArray(i)?i:s.nonProgramIds()).map(F=>F.toBase58());w.accounts={encoding:"base64",addresses:R}}a&&(w.sigVerify=!0),r&&typeof r=="object"&&"innerInstructions"in r&&(w.innerInstructions=r.innerInstructions);let A=[h,w],D=await this._rpcRequest("simulateTransaction",A),I=u.create(D,Hy);if("error"in I){let R;if("data"in I.error&&(R=I.error.data.logs,R&&Array.isArray(R))){let F=`
|
|
22
|
+
`,$=F+R.join(F);console.error(I.error.message,$)}throw new Ls({action:"simulate",signature:"",transactionMessage:I.error.message,logs:R})}return I.result}async sendTransaction(e,r,i){if("version"in e){if(r&&Array.isArray(r))throw new Error("Invalid arguments");let s=e.serialize();return await this.sendRawTransaction(s,r)}if(r===void 0||!Array.isArray(r))throw new Error("Invalid arguments");let n=r;if(e.nonceInfo)e.sign(...n);else{let s=this._disableBlockhashCaching;for(;;){let o=await this._blockhashWithExpiryBlockHeight(s);if(e.lastValidBlockHeight=o.lastValidBlockHeight,e.recentBlockhash=o.blockhash,e.sign(...n),!e.signature)throw new Error("!signature");let d=e.signature.toString("base64");if(this._blockhashInfo.transactionSignatures.includes(d))s=!0;else{this._blockhashInfo.transactionSignatures.push(d);break}}}let a=e.serialize();return await this.sendRawTransaction(a,i)}async sendRawTransaction(e,r){let i=ut(e).toString("base64");return await this.sendEncodedTransaction(i,r)}async sendEncodedTransaction(e,r){let i={encoding:"base64"},n=r&&r.skipPreflight,a=n===!0?"processed":r&&r.preflightCommitment||this.commitment;r&&r.maxRetries!=null&&(i.maxRetries=r.maxRetries),r&&r.minContextSlot!=null&&(i.minContextSlot=r.minContextSlot),n&&(i.skipPreflight=n),a&&(i.preflightCommitment=a);let s=[e,i],o=await this._rpcRequest("sendTransaction",s),d=u.create(o,rC);if("error"in d){let h;throw"data"in d.error&&(h=d.error.data.logs),new Ls({action:n?"send":"simulate",signature:"",transactionMessage:d.error.message,logs:h})}return d.result}_wsOnOpen(){this._rpcWebSocketConnected=!0,this._rpcWebSocketHeartbeat=setInterval(()=>{(async()=>{try{await this._rpcWebSocket.notify("ping")}catch{}})()},5e3),this._updateSubscriptions()}_wsOnError(e){this._rpcWebSocketConnected=!1,console.error("ws error:",e.message)}_wsOnClose(e){if(this._rpcWebSocketConnected=!1,this._rpcWebSocketGeneration=(this._rpcWebSocketGeneration+1)%Number.MAX_SAFE_INTEGER,this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null),this._rpcWebSocketHeartbeat&&(clearInterval(this._rpcWebSocketHeartbeat),this._rpcWebSocketHeartbeat=null),e===1e3){this._updateSubscriptions();return}this._subscriptionCallbacksByServerSubscriptionId={},Object.entries(this._subscriptionsByHash).forEach(([r,i])=>{this._setSubscription(r,{...i,state:"pending"})})}_setSubscription(e,r){let i=this._subscriptionsByHash[e]?.state;if(this._subscriptionsByHash[e]=r,i!==r.state){let n=this._subscriptionStateChangeCallbacksByHash[e];n&&n.forEach(a=>{try{a(r.state)}catch{}})}}_onSubscriptionStateChange(e,r){let i=this._subscriptionHashByClientSubscriptionId[e];if(i==null)return()=>{};let n=this._subscriptionStateChangeCallbacksByHash[i]||=new Set;return n.add(r),()=>{n.delete(r),n.size===0&&delete this._subscriptionStateChangeCallbacksByHash[i]}}async _updateSubscriptions(){if(Object.keys(this._subscriptionsByHash).length===0){this._rpcWebSocketConnected&&(this._rpcWebSocketConnected=!1,this._rpcWebSocketIdleTimeout=setTimeout(()=>{this._rpcWebSocketIdleTimeout=null;try{this._rpcWebSocket.close()}catch(i){i instanceof Error&&console.log(`Error when closing socket connection: ${i.message}`)}},500));return}if(this._rpcWebSocketIdleTimeout!==null&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketConnected=!0),!this._rpcWebSocketConnected){this._rpcWebSocket.connect();return}let e=this._rpcWebSocketGeneration,r=()=>e===this._rpcWebSocketGeneration;await Promise.all(Object.keys(this._subscriptionsByHash).map(async i=>{let n=this._subscriptionsByHash[i];if(n!==void 0)switch(n.state){case"pending":case"unsubscribed":if(n.callbacks.size===0){delete this._subscriptionsByHash[i],n.state==="unsubscribed"&&delete this._subscriptionCallbacksByServerSubscriptionId[n.serverSubscriptionId],await this._updateSubscriptions();return}await(async()=>{let{args:a,method:s}=n;try{this._setSubscription(i,{...n,state:"subscribing"});let o=await this._rpcWebSocket.call(s,a);this._setSubscription(i,{...n,serverSubscriptionId:o,state:"subscribed"}),this._subscriptionCallbacksByServerSubscriptionId[o]=n.callbacks,await this._updateSubscriptions()}catch(o){if(console.error(`Received ${o instanceof Error?"":"JSON-RPC "}error calling \`${s}\``,{args:a,error:o}),!r())return;this._setSubscription(i,{...n,state:"pending"}),await this._updateSubscriptions()}})();break;case"subscribed":n.callbacks.size===0&&await(async()=>{let{serverSubscriptionId:a,unsubscribeMethod:s}=n;if(this._subscriptionsAutoDisposedByRpc.has(a))this._subscriptionsAutoDisposedByRpc.delete(a);else{this._setSubscription(i,{...n,state:"unsubscribing"}),this._setSubscription(i,{...n,state:"unsubscribing"});try{await this._rpcWebSocket.call(s,[a])}catch(o){if(o instanceof Error&&console.error(`${s} error:`,o.message),!r())return;this._setSubscription(i,{...n,state:"subscribed"}),await this._updateSubscriptions();return}}this._setSubscription(i,{...n,state:"unsubscribed"}),await this._updateSubscriptions()})();break}}))}_handleServerNotification(e,r){let i=this._subscriptionCallbacksByServerSubscriptionId[e];i!==void 0&&i.forEach(n=>{try{n(...r)}catch(a){console.error(a)}})}_wsOnAccountNotification(e){let{result:r,subscription:i}=u.create(e,OI);this._handleServerNotification(i,[r.value,r.context])}_makeSubscription(e,r){let i=this._nextClientSubscriptionId++,n=Vy([e.method,r]),a=this._subscriptionsByHash[n];return a===void 0?this._subscriptionsByHash[n]={...e,args:r,callbacks:new Set([e.callback]),state:"pending"}:a.callbacks.add(e.callback),this._subscriptionHashByClientSubscriptionId[i]=n,this._subscriptionDisposeFunctionsByClientSubscriptionId[i]=async()=>{delete this._subscriptionDisposeFunctionsByClientSubscriptionId[i],delete this._subscriptionHashByClientSubscriptionId[i];let s=this._subscriptionsByHash[n];ht(s!==void 0,`Could not find a \`Subscription\` when tearing down client subscription #${i}`),s.callbacks.delete(e.callback),await this._updateSubscriptions()},this._updateSubscriptions(),i}onAccountChange(e,r,i){let{commitment:n,config:a}=Zt(i),s=this._buildArgs([e.toBase58()],n||this._commitment||"finalized","base64",a);return this._makeSubscription({callback:r,method:"accountSubscribe",unsubscribeMethod:"accountUnsubscribe"},s)}async removeAccountChangeListener(e){await this._unsubscribeClientSubscription(e,"account change")}_wsOnProgramAccountNotification(e){let{result:r,subscription:i}=u.create(e,TI);this._handleServerNotification(i,[{accountId:r.value.pubkey,accountInfo:r.value.account},r.context])}onProgramAccountChange(e,r,i,n){let{commitment:a,config:s}=Zt(i),o=this._buildArgs([e.toBase58()],a||this._commitment||"finalized","base64",s||(n?{filters:zy(n)}:void 0));return this._makeSubscription({callback:r,method:"programSubscribe",unsubscribeMethod:"programUnsubscribe"},o)}async removeProgramAccountChangeListener(e){await this._unsubscribeClientSubscription(e,"program account change")}onLogs(e,r,i){let n=this._buildArgs([typeof e=="object"?{mentions:[e.toString()]}:e],i||this._commitment||"finalized");return this._makeSubscription({callback:r,method:"logsSubscribe",unsubscribeMethod:"logsUnsubscribe"},n)}async removeOnLogsListener(e){await this._unsubscribeClientSubscription(e,"logs")}_wsOnLogsNotification(e){let{result:r,subscription:i}=u.create(e,nC);this._handleServerNotification(i,[r.value,r.context])}_wsOnSlotNotification(e){let{result:r,subscription:i}=u.create(e,II);this._handleServerNotification(i,[r])}onSlotChange(e){return this._makeSubscription({callback:e,method:"slotSubscribe",unsubscribeMethod:"slotUnsubscribe"},[])}async removeSlotChangeListener(e){await this._unsubscribeClientSubscription(e,"slot change")}_wsOnSlotUpdatesNotification(e){let{result:r,subscription:i}=u.create(e,LI);this._handleServerNotification(i,[r])}onSlotUpdate(e){return this._makeSubscription({callback:e,method:"slotsUpdatesSubscribe",unsubscribeMethod:"slotsUpdatesUnsubscribe"},[])}async removeSlotUpdateListener(e){await this._unsubscribeClientSubscription(e,"slot update")}async _unsubscribeClientSubscription(e,r){let i=this._subscriptionDisposeFunctionsByClientSubscriptionId[e];i?await i():console.warn(`Ignored unsubscribe request because an active subscription with id \`${e}\` for '${r}' events could not be found.`)}_buildArgs(e,r,i,n){let a=r||this._commitment;if(a||i||n){let s={};i&&(s.encoding=i),a&&(s.commitment=a),n&&(s=Object.assign(s,n)),e.push(s)}return e}_buildArgsAtLeastConfirmed(e,r,i,n){let a=r||this._commitment;if(a&&!["confirmed","finalized"].includes(a))throw new Error("Using Connection with default commitment: `"+this._commitment+"`, but method requires at least `confirmed`");return this._buildArgs(e,r,i,n)}_wsOnSignatureNotification(e){let{result:r,subscription:i}=u.create(e,kI);r.value!=="receivedSignature"&&this._subscriptionsAutoDisposedByRpc.add(i),this._handleServerNotification(i,r.value==="receivedSignature"?[{type:"received"},r.context]:[{type:"status",result:r.value},r.context])}onSignature(e,r,i){let n=this._buildArgs([e],i||this._commitment||"finalized"),a=this._makeSubscription({callback:(s,o)=>{if(s.type==="status"){r(s.result,o);try{this.removeSignatureListener(a)}catch{}}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},n);return a}onSignatureWithOptions(e,r,i){let{commitment:n,...a}={...i,commitment:i&&i.commitment||this._commitment||"finalized"},s=this._buildArgs([e],n,void 0,a),o=this._makeSubscription({callback:(d,h)=>{r(d,h);try{this.removeSignatureListener(o)}catch{}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},s);return o}async removeSignatureListener(e){await this._unsubscribeClientSubscription(e,"signature result")}_wsOnRootNotification(e){let{result:r,subscription:i}=u.create(e,DI);this._handleServerNotification(i,[r])}onRootChange(e){return this._makeSubscription({callback:e,method:"rootSubscribe",unsubscribeMethod:"rootUnsubscribe"},[])}async removeRootChangeListener(e){await this._unsubscribeClientSubscription(e,"root change")}},B0=class t{constructor(e){this._keypair=void 0,this._keypair=e??xy()}static generate(){return new t(xy())}static fromSecretKey(e,r){if(e.byteLength!==64)throw new Error("bad secret key size");let i=e.slice(32,64);if(!r||!r.skipValidation){let n=e.slice(0,32),a=x0(n);for(let s=0;s<32;s++)if(i[s]!==a[s])throw new Error("provided secretKey is invalid")}return new t({publicKey:i,secretKey:e})}static fromSeed(e){let r=x0(e),i=new Uint8Array(64);return i.set(e),i.set(r,32),new t({publicKey:r,secretKey:i})}get publicKey(){return new ye(this._keypair.publicKey)}get secretKey(){return new Uint8Array(this._keypair.secretKey)}},la=Object.freeze({CreateLookupTable:{index:0,layout:G.struct([G.u32("instruction"),Do("recentSlot"),G.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:G.struct([G.u32("instruction")])},ExtendLookupTable:{index:2,layout:G.struct([G.u32("instruction"),Do(),G.seq(vt(),G.offset(G.u32(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:G.struct([G.u32("instruction")])},CloseLookupTable:{index:4,layout:G.struct([G.u32("instruction")])}}),J2=class{constructor(){}static decodeInstructionType(e){this.checkProgramId(e.programId);let i=G.u32("instruction").decode(e.data),n;for(let[a,s]of Object.entries(la))if(s.index==i){n=a;break}if(!n)throw new Error("Invalid Instruction. Should be a LookupTable Instruction");return n}static decodeCreateLookupTable(e){this.checkProgramId(e.programId),this.checkKeysLength(e.keys,4);let{recentSlot:r}=Dt(la.CreateLookupTable,e.data);return{authority:e.keys[1].pubkey,payer:e.keys[2].pubkey,recentSlot:Number(r)}}static decodeExtendLookupTable(e){if(this.checkProgramId(e.programId),e.keys.length<2)throw new Error(`invalid instruction; found ${e.keys.length} keys, expected at least 2`);let{addresses:r}=Dt(la.ExtendLookupTable,e.data);return{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey,payer:e.keys.length>2?e.keys[2].pubkey:void 0,addresses:r.map(i=>new ye(i))}}static decodeCloseLookupTable(e){return this.checkProgramId(e.programId),this.checkKeysLength(e.keys,3),{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey,recipient:e.keys[2].pubkey}}static decodeFreezeLookupTable(e){return this.checkProgramId(e.programId),this.checkKeysLength(e.keys,2),{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey}}static decodeDeactivateLookupTable(e){return this.checkProgramId(e.programId),this.checkKeysLength(e.keys,2),{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey}}static checkProgramId(e){if(!e.equals(pd.programId))throw new Error("invalid instruction; programId is not AddressLookupTable Program")}static checkKeysLength(e,r){if(e.length<r)throw new Error(`invalid instruction; found ${e.length} keys, expected at least ${r}`)}},pd=class{constructor(){}static createLookupTable(e){let[r,i]=ye.findProgramAddressSync([e.authority.toBuffer(),tE.getU64Encoder().encode(e.recentSlot)],this.programId),n=la.CreateLookupTable,a=At(n,{recentSlot:BigInt(e.recentSlot),bumpSeed:i}),s=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1},{pubkey:e.payer,isSigner:!0,isWritable:!0},{pubkey:ei.programId,isSigner:!1,isWritable:!1}];return[new Ft({programId:this.programId,keys:s,data:a}),r]}static freezeLookupTable(e){let r=la.FreezeLookupTable,i=At(r),n=[{pubkey:e.lookupTable,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1}];return new Ft({programId:this.programId,keys:n,data:i})}static extendLookupTable(e){let r=la.ExtendLookupTable,i=At(r,{addresses:e.addresses.map(a=>a.toBytes())}),n=[{pubkey:e.lookupTable,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1}];return e.payer&&n.push({pubkey:e.payer,isSigner:!0,isWritable:!0},{pubkey:ei.programId,isSigner:!1,isWritable:!1}),new Ft({programId:this.programId,keys:n,data:i})}static deactivateLookupTable(e){let r=la.DeactivateLookupTable,i=At(r),n=[{pubkey:e.lookupTable,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1}];return new Ft({programId:this.programId,keys:n,data:i})}static closeLookupTable(e){let r=la.CloseLookupTable,i=At(r),n=[{pubkey:e.lookupTable,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1},{pubkey:e.recipient,isSigner:!1,isWritable:!0}];return new Ft({programId:this.programId,keys:n,data:i})}};pd.programId=new ye("AddressLookupTab1e1111111111111111111111111");var Q2=class{constructor(){}static decodeInstructionType(e){this.checkProgramId(e.programId);let i=G.u8("instruction").decode(e.data),n;for(let[a,s]of Object.entries(Ln))if(s.index==i){n=a;break}if(!n)throw new Error("Instruction type incorrect; not a ComputeBudgetInstruction");return n}static decodeRequestUnits(e){this.checkProgramId(e.programId);let{units:r,additionalFee:i}=Dt(Ln.RequestUnits,e.data);return{units:r,additionalFee:i}}static decodeRequestHeapFrame(e){this.checkProgramId(e.programId);let{bytes:r}=Dt(Ln.RequestHeapFrame,e.data);return{bytes:r}}static decodeSetComputeUnitLimit(e){this.checkProgramId(e.programId);let{units:r}=Dt(Ln.SetComputeUnitLimit,e.data);return{units:r}}static decodeSetComputeUnitPrice(e){this.checkProgramId(e.programId);let{microLamports:r}=Dt(Ln.SetComputeUnitPrice,e.data);return{microLamports:r}}static checkProgramId(e){if(!e.equals(ld.programId))throw new Error("invalid instruction; programId is not ComputeBudgetProgram")}},Ln=Object.freeze({RequestUnits:{index:0,layout:G.struct([G.u8("instruction"),G.u32("units"),G.u32("additionalFee")])},RequestHeapFrame:{index:1,layout:G.struct([G.u8("instruction"),G.u32("bytes")])},SetComputeUnitLimit:{index:2,layout:G.struct([G.u8("instruction"),G.u32("units")])},SetComputeUnitPrice:{index:3,layout:G.struct([G.u8("instruction"),Do("microLamports")])}}),ld=class{constructor(){}static requestUnits(e){let r=Ln.RequestUnits,i=At(r,e);return new Ft({keys:[],programId:this.programId,data:i})}static requestHeapFrame(e){let r=Ln.RequestHeapFrame,i=At(r,e);return new Ft({keys:[],programId:this.programId,data:i})}static setComputeUnitLimit(e){let r=Ln.SetComputeUnitLimit,i=At(r,e);return new Ft({keys:[],programId:this.programId,data:i})}static setComputeUnitPrice(e){let r=Ln.SetComputeUnitPrice,i=At(r,{microLamports:BigInt(e.microLamports)});return new Ft({keys:[],programId:this.programId,data:i})}};ld.programId=new ye("ComputeBudget111111111111111111111111111111");var jy=64,Ky=32,Wy=64,Yy=G.struct([G.u8("numSignatures"),G.u8("padding"),G.u16("signatureOffset"),G.u16("signatureInstructionIndex"),G.u16("publicKeyOffset"),G.u16("publicKeyInstructionIndex"),G.u16("messageDataOffset"),G.u16("messageDataSize"),G.u16("messageInstructionIndex")]),P0=class t{constructor(){}static createInstructionWithPublicKey(e){let{publicKey:r,message:i,signature:n,instructionIndex:a}=e;ht(r.length===Ky,`Public Key must be ${Ky} bytes but received ${r.length} bytes`),ht(n.length===Wy,`Signature must be ${Wy} bytes but received ${n.length} bytes`);let s=Yy.span,o=s+r.length,d=o+n.length,h=1,w=je.Buffer.alloc(d+i.length),A=a??65535;return Yy.encode({numSignatures:h,padding:0,signatureOffset:o,signatureInstructionIndex:A,publicKeyOffset:s,publicKeyInstructionIndex:A,messageDataOffset:d,messageDataSize:i.length,messageInstructionIndex:A},w),w.fill(r,s),w.fill(n,o),w.fill(i,d),new Ft({keys:[],programId:t.programId,data:w})}static createInstructionWithPrivateKey(e){let{privateKey:r,message:i,instructionIndex:n}=e;ht(r.length===jy,`Private key must be ${jy} bytes but received ${r.length} bytes`);try{let a=B0.fromSecretKey(r),s=a.publicKey.toBytes(),o=sf(i,a.secretKey);return this.createInstructionWithPublicKey({publicKey:s,message:i,signature:o,instructionIndex:n})}catch(a){throw new Error(`Error creating instruction; ${a}`)}}};P0.programId=new ye("Ed25519SigVerify111111111111111111111111111");var sC=(t,e)=>{let r=af.secp256k1.sign(t,e);return[r.toCompactRawBytes(),r.recovery]};af.secp256k1.utils.isValidPrivateKey;var oC=af.secp256k1.getPublicKey,Xy=32,P2=20,Zy=64,dC=11,U2=G.struct([G.u8("numSignatures"),G.u16("signatureOffset"),G.u8("signatureInstructionIndex"),G.u16("ethAddressOffset"),G.u8("ethAddressInstructionIndex"),G.u16("messageDataOffset"),G.u16("messageDataSize"),G.u8("messageInstructionIndex"),G.blob(20,"ethAddress"),G.blob(64,"signature"),G.u8("recoveryId")]),U0=class t{constructor(){}static publicKeyToEthAddress(e){ht(e.length===Zy,`Public key must be ${Zy} bytes but received ${e.length} bytes`);try{return je.Buffer.from(Ny.keccak_256(ut(e))).slice(-P2)}catch(r){throw new Error(`Error constructing Ethereum address: ${r}`)}}static createInstructionWithPublicKey(e){let{publicKey:r,message:i,signature:n,recoveryId:a,instructionIndex:s}=e;return t.createInstructionWithEthAddress({ethAddress:t.publicKeyToEthAddress(r),message:i,signature:n,recoveryId:a,instructionIndex:s})}static createInstructionWithEthAddress(e){let{ethAddress:r,message:i,signature:n,recoveryId:a,instructionIndex:s=0}=e,o;typeof r=="string"?r.startsWith("0x")?o=je.Buffer.from(r.substr(2),"hex"):o=je.Buffer.from(r,"hex"):o=r,ht(o.length===P2,`Address must be ${P2} bytes but received ${o.length} bytes`);let d=1+dC,h=d,w=d+o.length,A=w+n.length+1,D=1,I=je.Buffer.alloc(U2.span+i.length);return U2.encode({numSignatures:D,signatureOffset:w,signatureInstructionIndex:s,ethAddressOffset:h,ethAddressInstructionIndex:s,messageDataOffset:A,messageDataSize:i.length,messageInstructionIndex:s,signature:ut(n),ethAddress:ut(o),recoveryId:a},I),I.fill(ut(i),U2.span),new Ft({keys:[],programId:t.programId,data:I})}static createInstructionWithPrivateKey(e){let{privateKey:r,message:i,instructionIndex:n}=e;ht(r.length===Xy,`Private key must be ${Xy} bytes but received ${r.length} bytes`);try{let a=ut(r),s=oC(a,!1).slice(1),o=je.Buffer.from(Ny.keccak_256(ut(i))),[d,h]=sC(o,a);return this.createInstructionWithPublicKey({publicKey:s,message:i,signature:d,recoveryId:h,instructionIndex:n})}catch(a){throw new Error(`Error creating instruction; ${a}`)}}};U0.programId=new ye("KeccakSecp256k11111111111111111111111111111");var NE,TE=new ye("StakeConfig11111111111111111111111111111111"),M0=class{constructor(e,r){this.staker=void 0,this.withdrawer=void 0,this.staker=e,this.withdrawer=r}},ks=class{constructor(e,r,i){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=e,this.epoch=r,this.custodian=i}};NE=ks;ks.default=new NE(0,0,ye.default);var ef=class{constructor(){}static decodeInstructionType(e){this.checkProgramId(e.programId);let i=G.u32("instruction").decode(e.data),n;for(let[a,s]of Object.entries($r))if(s.index==i){n=a;break}if(!n)throw new Error("Instruction type incorrect; not a StakeInstruction");return n}static decodeInitialize(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,2);let{authorized:r,lockup:i}=Dt($r.Initialize,e.data);return{stakePubkey:e.keys[0].pubkey,authorized:new M0(new ye(r.staker),new ye(r.withdrawer)),lockup:new ks(i.unixTimestamp,i.epoch,new ye(i.custodian))}}static decodeDelegate(e){return this.checkProgramId(e.programId),this.checkKeyLength(e.keys,6),Dt($r.Delegate,e.data),{stakePubkey:e.keys[0].pubkey,votePubkey:e.keys[1].pubkey,authorizedPubkey:e.keys[5].pubkey}}static decodeAuthorize(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);let{newAuthorized:r,stakeAuthorizationType:i}=Dt($r.Authorize,e.data),n={stakePubkey:e.keys[0].pubkey,authorizedPubkey:e.keys[2].pubkey,newAuthorizedPubkey:new ye(r),stakeAuthorizationType:{index:i}};return e.keys.length>3&&(n.custodianPubkey=e.keys[3].pubkey),n}static decodeAuthorizeWithSeed(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,2);let{newAuthorized:r,stakeAuthorizationType:i,authoritySeed:n,authorityOwner:a}=Dt($r.AuthorizeWithSeed,e.data),s={stakePubkey:e.keys[0].pubkey,authorityBase:e.keys[1].pubkey,authoritySeed:n,authorityOwner:new ye(a),newAuthorizedPubkey:new ye(r),stakeAuthorizationType:{index:i}};return e.keys.length>3&&(s.custodianPubkey=e.keys[3].pubkey),s}static decodeSplit(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);let{lamports:r}=Dt($r.Split,e.data);return{stakePubkey:e.keys[0].pubkey,splitStakePubkey:e.keys[1].pubkey,authorizedPubkey:e.keys[2].pubkey,lamports:r}}static decodeMerge(e){return this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3),Dt($r.Merge,e.data),{stakePubkey:e.keys[0].pubkey,sourceStakePubKey:e.keys[1].pubkey,authorizedPubkey:e.keys[4].pubkey}}static decodeWithdraw(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,5);let{lamports:r}=Dt($r.Withdraw,e.data),i={stakePubkey:e.keys[0].pubkey,toPubkey:e.keys[1].pubkey,authorizedPubkey:e.keys[4].pubkey,lamports:r};return e.keys.length>5&&(i.custodianPubkey=e.keys[5].pubkey),i}static decodeDeactivate(e){return this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3),Dt($r.Deactivate,e.data),{stakePubkey:e.keys[0].pubkey,authorizedPubkey:e.keys[2].pubkey}}static checkProgramId(e){if(!e.equals(Po.programId))throw new Error("invalid instruction; programId is not StakeProgram")}static checkKeyLength(e,r){if(e.length<r)throw new Error(`invalid instruction; found ${e.length} keys, expected at least ${r}`)}},$r=Object.freeze({Initialize:{index:0,layout:G.struct([G.u32("instruction"),cx(),ux()])},Authorize:{index:1,layout:G.struct([G.u32("instruction"),vt("newAuthorized"),G.u32("stakeAuthorizationType")])},Delegate:{index:2,layout:G.struct([G.u32("instruction")])},Split:{index:3,layout:G.struct([G.u32("instruction"),G.ns64("lamports")])},Withdraw:{index:4,layout:G.struct([G.u32("instruction"),G.ns64("lamports")])},Deactivate:{index:5,layout:G.struct([G.u32("instruction")])},Merge:{index:7,layout:G.struct([G.u32("instruction")])},AuthorizeWithSeed:{index:8,layout:G.struct([G.u32("instruction"),vt("newAuthorized"),G.u32("stakeAuthorizationType"),Cs("authoritySeed"),vt("authorityOwner")])}}),pC=Object.freeze({Staker:{index:0},Withdrawer:{index:1}}),Po=class{constructor(){}static initialize(e){let{stakePubkey:r,authorized:i,lockup:n}=e,a=n||ks.default,s=$r.Initialize,o=At(s,{authorized:{staker:ut(i.staker.toBuffer()),withdrawer:ut(i.withdrawer.toBuffer())},lockup:{unixTimestamp:a.unixTimestamp,epoch:a.epoch,custodian:ut(a.custodian.toBuffer())}}),d={keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:ko,isSigner:!1,isWritable:!1}],programId:this.programId,data:o};return new Ft(d)}static createAccountWithSeed(e){let r=new Bt;r.add(ei.createAccountWithSeed({fromPubkey:e.fromPubkey,newAccountPubkey:e.stakePubkey,basePubkey:e.basePubkey,seed:e.seed,lamports:e.lamports,space:this.space,programId:this.programId}));let{stakePubkey:i,authorized:n,lockup:a}=e;return r.add(this.initialize({stakePubkey:i,authorized:n,lockup:a}))}static createAccount(e){let r=new Bt;r.add(ei.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.stakePubkey,lamports:e.lamports,space:this.space,programId:this.programId}));let{stakePubkey:i,authorized:n,lockup:a}=e;return r.add(this.initialize({stakePubkey:i,authorized:n,lockup:a}))}static delegate(e){let{stakePubkey:r,authorizedPubkey:i,votePubkey:n}=e,a=$r.Delegate,s=At(a);return new Bt().add({keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!1},{pubkey:Cn,isSigner:!1,isWritable:!1},{pubkey:T0,isSigner:!1,isWritable:!1},{pubkey:TE,isSigner:!1,isWritable:!1},{pubkey:i,isSigner:!0,isWritable:!1}],programId:this.programId,data:s})}static authorize(e){let{stakePubkey:r,authorizedPubkey:i,newAuthorizedPubkey:n,stakeAuthorizationType:a,custodianPubkey:s}=e,o=$r.Authorize,d=At(o,{newAuthorized:ut(n.toBuffer()),stakeAuthorizationType:a.index}),h=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:Cn,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!0,isWritable:!1}];return s&&h.push({pubkey:s,isSigner:!0,isWritable:!1}),new Bt().add({keys:h,programId:this.programId,data:d})}static authorizeWithSeed(e){let{stakePubkey:r,authorityBase:i,authoritySeed:n,authorityOwner:a,newAuthorizedPubkey:s,stakeAuthorizationType:o,custodianPubkey:d}=e,h=$r.AuthorizeWithSeed,w=At(h,{newAuthorized:ut(s.toBuffer()),stakeAuthorizationType:o.index,authoritySeed:n,authorityOwner:ut(a.toBuffer())}),A=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!0,isWritable:!1},{pubkey:Cn,isSigner:!1,isWritable:!1}];return d&&A.push({pubkey:d,isSigner:!0,isWritable:!1}),new Bt().add({keys:A,programId:this.programId,data:w})}static splitInstruction(e){let{stakePubkey:r,authorizedPubkey:i,splitStakePubkey:n,lamports:a}=e,s=$r.Split,o=At(s,{lamports:a});return new Ft({keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!0,isWritable:!1}],programId:this.programId,data:o})}static split(e,r){let i=new Bt;return i.add(ei.createAccount({fromPubkey:e.authorizedPubkey,newAccountPubkey:e.splitStakePubkey,lamports:r,space:this.space,programId:this.programId})),i.add(this.splitInstruction(e))}static splitWithSeed(e,r){let{stakePubkey:i,authorizedPubkey:n,splitStakePubkey:a,basePubkey:s,seed:o,lamports:d}=e,h=new Bt;return h.add(ei.allocate({accountPubkey:a,basePubkey:s,seed:o,space:this.space,programId:this.programId})),r&&r>0&&h.add(ei.transfer({fromPubkey:e.authorizedPubkey,toPubkey:a,lamports:r})),h.add(this.splitInstruction({stakePubkey:i,authorizedPubkey:n,splitStakePubkey:a,lamports:d}))}static merge(e){let{stakePubkey:r,sourceStakePubKey:i,authorizedPubkey:n}=e,a=$r.Merge,s=At(a);return new Bt().add({keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:Cn,isSigner:!1,isWritable:!1},{pubkey:T0,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:s})}static withdraw(e){let{stakePubkey:r,authorizedPubkey:i,toPubkey:n,lamports:a,custodianPubkey:s}=e,o=$r.Withdraw,d=At(o,{lamports:a}),h=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:Cn,isSigner:!1,isWritable:!1},{pubkey:T0,isSigner:!1,isWritable:!1},{pubkey:i,isSigner:!0,isWritable:!1}];return s&&h.push({pubkey:s,isSigner:!0,isWritable:!1}),new Bt().add({keys:h,programId:this.programId,data:d})}static deactivate(e){let{stakePubkey:r,authorizedPubkey:i}=e,n=$r.Deactivate,a=At(n);return new Bt().add({keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:Cn,isSigner:!1,isWritable:!1},{pubkey:i,isSigner:!0,isWritable:!1}],programId:this.programId,data:a})}};Po.programId=new ye("Stake11111111111111111111111111111111111111");Po.space=200;var F0=class{constructor(e,r,i,n){this.nodePubkey=void 0,this.authorizedVoter=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.nodePubkey=e,this.authorizedVoter=r,this.authorizedWithdrawer=i,this.commission=n}},tf=class{constructor(){}static decodeInstructionType(e){this.checkProgramId(e.programId);let i=G.u32("instruction").decode(e.data),n;for(let[a,s]of Object.entries(kn))if(s.index==i){n=a;break}if(!n)throw new Error("Instruction type incorrect; not a VoteInstruction");return n}static decodeInitializeAccount(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,4);let{voteInit:r}=Dt(kn.InitializeAccount,e.data);return{votePubkey:e.keys[0].pubkey,nodePubkey:e.keys[3].pubkey,voteInit:new F0(new ye(r.nodePubkey),new ye(r.authorizedVoter),new ye(r.authorizedWithdrawer),r.commission)}}static decodeAuthorize(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);let{newAuthorized:r,voteAuthorizationType:i}=Dt(kn.Authorize,e.data);return{votePubkey:e.keys[0].pubkey,authorizedPubkey:e.keys[2].pubkey,newAuthorizedPubkey:new ye(r),voteAuthorizationType:{index:i}}}static decodeAuthorizeWithSeed(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);let{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:r,currentAuthorityDerivedKeySeed:i,newAuthorized:n,voteAuthorizationType:a}}=Dt(kn.AuthorizeWithSeed,e.data);return{currentAuthorityDerivedKeyBasePubkey:e.keys[2].pubkey,currentAuthorityDerivedKeyOwnerPubkey:new ye(r),currentAuthorityDerivedKeySeed:i,newAuthorizedPubkey:new ye(n),voteAuthorizationType:{index:a},votePubkey:e.keys[0].pubkey}}static decodeWithdraw(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);let{lamports:r}=Dt(kn.Withdraw,e.data);return{votePubkey:e.keys[0].pubkey,authorizedWithdrawerPubkey:e.keys[2].pubkey,lamports:r,toPubkey:e.keys[1].pubkey}}static checkProgramId(e){if(!e.equals(Uo.programId))throw new Error("invalid instruction; programId is not VoteProgram")}static checkKeyLength(e,r){if(e.length<r)throw new Error(`invalid instruction; found ${e.length} keys, expected at least ${r}`)}},kn=Object.freeze({InitializeAccount:{index:0,layout:G.struct([G.u32("instruction"),fx()])},Authorize:{index:1,layout:G.struct([G.u32("instruction"),vt("newAuthorized"),G.u32("voteAuthorizationType")])},Withdraw:{index:3,layout:G.struct([G.u32("instruction"),G.ns64("lamports")])},UpdateValidatorIdentity:{index:4,layout:G.struct([G.u32("instruction")])},AuthorizeWithSeed:{index:10,layout:G.struct([G.u32("instruction"),hx()])}}),lC=Object.freeze({Voter:{index:0},Withdrawer:{index:1}}),Uo=class t{constructor(){}static initializeAccount(e){let{votePubkey:r,nodePubkey:i,voteInit:n}=e,a=kn.InitializeAccount,s=At(a,{voteInit:{nodePubkey:ut(n.nodePubkey.toBuffer()),authorizedVoter:ut(n.authorizedVoter.toBuffer()),authorizedWithdrawer:ut(n.authorizedWithdrawer.toBuffer()),commission:n.commission}}),o={keys:[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:ko,isSigner:!1,isWritable:!1},{pubkey:Cn,isSigner:!1,isWritable:!1},{pubkey:i,isSigner:!0,isWritable:!1}],programId:this.programId,data:s};return new Ft(o)}static createAccount(e){let r=new Bt;return r.add(ei.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.votePubkey,lamports:e.lamports,space:this.space,programId:this.programId})),r.add(this.initializeAccount({votePubkey:e.votePubkey,nodePubkey:e.voteInit.nodePubkey,voteInit:e.voteInit}))}static authorize(e){let{votePubkey:r,authorizedPubkey:i,newAuthorizedPubkey:n,voteAuthorizationType:a}=e,s=kn.Authorize,o=At(s,{newAuthorized:ut(n.toBuffer()),voteAuthorizationType:a.index}),d=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:Cn,isSigner:!1,isWritable:!1},{pubkey:i,isSigner:!0,isWritable:!1}];return new Bt().add({keys:d,programId:this.programId,data:o})}static authorizeWithSeed(e){let{currentAuthorityDerivedKeyBasePubkey:r,currentAuthorityDerivedKeyOwnerPubkey:i,currentAuthorityDerivedKeySeed:n,newAuthorizedPubkey:a,voteAuthorizationType:s,votePubkey:o}=e,d=kn.AuthorizeWithSeed,h=At(d,{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:ut(i.toBuffer()),currentAuthorityDerivedKeySeed:n,newAuthorized:ut(a.toBuffer()),voteAuthorizationType:s.index}}),w=[{pubkey:o,isSigner:!1,isWritable:!0},{pubkey:Cn,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}];return new Bt().add({keys:w,programId:this.programId,data:h})}static withdraw(e){let{votePubkey:r,authorizedWithdrawerPubkey:i,lamports:n,toPubkey:a}=e,s=kn.Withdraw,o=At(s,{lamports:n}),d=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!0,isWritable:!1}];return new Bt().add({keys:d,programId:this.programId,data:o})}static safeWithdraw(e,r,i){if(e.lamports>r-i)throw new Error("Withdraw will leave vote account with insufficient funds.");return t.withdraw(e)}static updateValidatorIdentity(e){let{votePubkey:r,authorizedWithdrawerPubkey:i,nodePubkey:n}=e,a=kn.UpdateValidatorIdentity,s=At(a),o=[{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1},{pubkey:i,isSigner:!0,isWritable:!1}];return new Bt().add({keys:o,programId:this.programId,data:s})}};Uo.programId=new ye("Vote111111111111111111111111111111111111111");Uo.space=3762;var xE=new ye("Va1idator1nfo111111111111111111111111111111"),cC=u.type({name:u.string(),website:u.optional(u.string()),details:u.optional(u.string()),iconUrl:u.optional(u.string()),keybaseUsername:u.optional(u.string())}),rf=class t{constructor(e,r){this.key=void 0,this.info=void 0,this.key=e,this.info=r}static fromConfigData(e){let r=[...e];if(Ri(r)!==2)return null;let n=[];for(let a=0;a<2;a++){let s=new ye(Lr(r,0,Gi)),o=Cr(r)===1;n.push({publicKey:s,isSigner:o})}if(n[0].publicKey.equals(xE)&&n[1].isSigner){let a=Cs().decode(je.Buffer.from(r)),s=JSON.parse(a);return u.assert(s,cC),new t(n[1].publicKey,s)}return null}},uC=new ye("Vote111111111111111111111111111111111111111"),fC=G.struct([vt("nodePubkey"),vt("authorizedWithdrawer"),G.u8("commission"),G.nu64(),G.seq(G.struct([G.nu64("slot"),G.u32("confirmationCount")]),G.offset(G.u32(),-8),"votes"),G.u8("rootSlotValid"),G.nu64("rootSlot"),G.nu64(),G.seq(G.struct([G.nu64("epoch"),vt("authorizedVoter")]),G.offset(G.u32(),-8),"authorizedVoters"),G.struct([G.seq(G.struct([vt("authorizedPubkey"),G.nu64("epochOfLastAuthorizedSwitch"),G.nu64("targetEpoch")]),32,"buf"),G.nu64("idx"),G.u8("isEmpty")],"priorVoters"),G.nu64(),G.seq(G.struct([G.nu64("epoch"),G.nu64("credits"),G.nu64("prevCredits")]),G.offset(G.u32(),-8),"epochCredits"),G.struct([G.nu64("slot"),G.nu64("timestamp")],"lastTimestamp")]),nf=class t{constructor(e){this.nodePubkey=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.rootSlot=void 0,this.votes=void 0,this.authorizedVoters=void 0,this.priorVoters=void 0,this.epochCredits=void 0,this.lastTimestamp=void 0,this.nodePubkey=e.nodePubkey,this.authorizedWithdrawer=e.authorizedWithdrawer,this.commission=e.commission,this.rootSlot=e.rootSlot,this.votes=e.votes,this.authorizedVoters=e.authorizedVoters,this.priorVoters=e.priorVoters,this.epochCredits=e.epochCredits,this.lastTimestamp=e.lastTimestamp}static fromAccountData(e){let i=fC.decode(ut(e),4),n=i.rootSlot;return i.rootSlotValid||(n=null),new t({nodePubkey:new ye(i.nodePubkey),authorizedWithdrawer:new ye(i.authorizedWithdrawer),commission:i.commission,votes:i.votes,rootSlot:n,authorizedVoters:i.authorizedVoters.map(hC),priorVoters:mC(i.priorVoters),epochCredits:i.epochCredits,lastTimestamp:i.lastTimestamp})}};function hC({authorizedVoter:t,epoch:e}){return{epoch:e,authorizedVoter:new ye(t)}}function Jy({authorizedPubkey:t,epochOfLastAuthorizedSwitch:e,targetEpoch:r}){return{authorizedPubkey:new ye(t),epochOfLastAuthorizedSwitch:e,targetEpoch:r}}function mC({buf:t,idx:e,isEmpty:r}){return r?[]:[...t.slice(e+1).map(Jy),...t.slice(0,e).map(Jy)]}var Qy={http:{devnet:"http://api.devnet.solana.com",testnet:"http://api.testnet.solana.com","mainnet-beta":"http://api.mainnet-beta.solana.com/"},https:{devnet:"https://api.devnet.solana.com",testnet:"https://api.testnet.solana.com","mainnet-beta":"https://api.mainnet-beta.solana.com/"}};function _C(t,e){let r=e===!1?"http":"https";if(!t)return Qy[r].devnet;let i=Qy[r][t];if(!i)throw new Error(`Unknown ${r} cluster: ${t}`);return i}async function gC(t,e,r,i){let n,a;r&&Object.prototype.hasOwnProperty.call(r,"lastValidBlockHeight")||r&&Object.prototype.hasOwnProperty.call(r,"nonceValue")?(n=r,a=i):a=r;let s=a&&{skipPreflight:a.skipPreflight,preflightCommitment:a.preflightCommitment||a.commitment,minContextSlot:a.minContextSlot},o=await t.sendRawTransaction(e,s),d=a&&a.commitment,w=(await(n?t.confirmTransaction(n,d):t.confirmTransaction(o,d))).value;if(w.err)throw o!=null?new Ls({action:s?.skipPreflight?"send":"simulate",signature:o,transactionMessage:`Status: (${JSON.stringify(w)})`}):new Error(`Raw transaction ${o} failed (${JSON.stringify(w)})`);return o}var yC=1e9;_e.Account=V2;_e.AddressLookupTableAccount=od;_e.AddressLookupTableInstruction=J2;_e.AddressLookupTableProgram=pd;_e.Authorized=M0;_e.BLOCKHASH_CACHE_TIMEOUT_MS=_E;_e.BPF_LOADER_DEPRECATED_PROGRAM_ID=dx;_e.BPF_LOADER_PROGRAM_ID=Ix;_e.BpfLoader=j2;_e.COMPUTE_BUDGET_INSTRUCTION_LAYOUTS=Ln;_e.ComputeBudgetInstruction=Q2;_e.ComputeBudgetProgram=ld;_e.Connection=Z2;_e.Ed25519Program=P0;_e.Enum=F2;_e.EpochSchedule=k0;_e.FeeCalculatorLayout=lE;_e.Keypair=B0;_e.LAMPORTS_PER_SOL=yC;_e.LOOKUP_TABLE_INSTRUCTION_LAYOUTS=la;_e.Loader=Bo;_e.Lockup=ks;_e.MAX_SEED_LENGTH=aE;_e.Message=Dn;_e.MessageAccountKeys=ja;_e.MessageV0=Lo;_e.MessageV1=sd;_e.NONCE_ACCOUNT_LENGTH=G2;_e.NonceAccount=L0;_e.PACKET_DATA_SIZE=qa;_e.PUBLIC_KEY_LENGTH=Gi;_e.PublicKey=ye;_e.SIGNATURE_LENGTH_IN_BYTES=Ha;_e.SOLANA_SCHEMA=rd;_e.STAKE_CONFIG_ID=TE;_e.STAKE_INSTRUCTION_LAYOUTS=$r;_e.SYSTEM_INSTRUCTION_LAYOUTS=Jt;_e.SYSVAR_CLOCK_PUBKEY=Cn;_e.SYSVAR_EPOCH_SCHEDULE_PUBKEY=Rx;_e.SYSVAR_INSTRUCTIONS_PUBKEY=bx;_e.SYSVAR_RECENT_BLOCKHASHES_PUBKEY=N0;_e.SYSVAR_RENT_PUBKEY=ko;_e.SYSVAR_REWARDS_PUBKEY=Ax;_e.SYSVAR_SLOT_HASHES_PUBKEY=Ox;_e.SYSVAR_SLOT_HISTORY_PUBKEY=Nx;_e.SYSVAR_STAKE_HISTORY_PUBKEY=T0;_e.Secp256k1Program=U0;_e.SendTransactionError=Ls;_e.SolanaJSONRPCError=Ie;_e.SolanaJSONRPCErrorCode=Tx;_e.StakeAuthorizationLayout=pC;_e.StakeInstruction=ef;_e.StakeProgram=Po;_e.Struct=id;_e.SystemInstruction=q2;_e.SystemProgram=ei;_e.Transaction=Bt;_e.TransactionExpiredBlockheightExceededError=nd;_e.TransactionExpiredNonceInvalidError=Ga;_e.TransactionExpiredTimeoutError=ad;_e.TransactionInstruction=Ft;_e.TransactionMessage=$2;_e.TransactionStatus=pa;_e.V1_TRANSACTION_SIZE_LIMIT=px;_e.VALIDATOR_INFO_KEY=xE;_e.VERSION_1_MESSAGE_PREFIX=sE;_e.VERSION_PREFIX_MASK=cd;_e.VOTE_PROGRAM_ID=uC;_e.ValidatorInfo=rf;_e.VersionedMessage=C0;_e.VersionedTransaction=z2;_e.VoteAccount=nf;_e.VoteAuthorizationLayout=lC;_e.VoteInit=F0;_e.VoteInstruction=tf;_e.VoteProgram=Uo;_e.clusterApiUrl=_C;_e.sendAndConfirmRawTransaction=gC;_e.sendAndConfirmTransaction=H2});var LE=Ne((UF,CE)=>{var z0=Xe("path").sep||"/";CE.exports=EC;function EC(t){if(typeof t!="string"||t.length<=7||t.substring(0,7)!="file://")throw new TypeError("must pass in a file:// URI to convert to a file path");var e=decodeURI(t.substring(7)),r=e.indexOf("/"),i=e.substring(0,r),n=e.substring(r+1);return i=="localhost"&&(i=""),i&&(i=z0+z0+i),n=n.replace(/^(.+)\|/,"$1:"),z0=="\\"&&(n=n.replace(/\//g,"\\")),/^.+\:/.test(n)||(n=z0+n),i+n}});var PE=Ne((zo,BE)=>{var cf=Xe("fs"),G0=Xe("path"),vC=LE(),H0=G0.join,wC=G0.dirname,kE=cf.accessSync&&function(t){try{cf.accessSync(t)}catch{return!1}return!0}||cf.existsSync||G0.existsSync,DE={arrow:process.env.NODE_BINDINGS_ARROW||" \u2192 ",compiled:process.env.NODE_BINDINGS_COMPILED_DIR||"compiled",platform:process.platform,arch:process.arch,nodePreGyp:"node-v"+process.versions.modules+"-"+process.platform+"-"+process.arch,version:process.versions.node,bindings:"bindings.node",try:[["module_root","build","bindings"],["module_root","build","Debug","bindings"],["module_root","build","Release","bindings"],["module_root","out","Debug","bindings"],["module_root","Debug","bindings"],["module_root","out","Release","bindings"],["module_root","Release","bindings"],["module_root","build","default","bindings"],["module_root","compiled","version","platform","arch","bindings"],["module_root","addon-build","release","install-root","bindings"],["module_root","addon-build","debug","install-root","bindings"],["module_root","addon-build","default","install-root","bindings"],["module_root","lib","binding","nodePreGyp","bindings"]]};function SC(t){typeof t=="string"?t={bindings:t}:t||(t={}),Object.keys(DE).map(function(d){d in t||(t[d]=DE[d])}),t.module_root||(t.module_root=zo.getRoot(zo.getFileName())),G0.extname(t.bindings)!=".node"&&(t.bindings+=".node");for(var e=typeof __webpack_require__=="function"?__non_webpack_require__:Xe,r=[],i=0,n=t.try.length,a,s,o;i<n;i++){a=H0.apply(null,t.try[i].map(function(d){return t[d]||d})),r.push(a);try{return s=t.path?e.resolve(a):e(a),t.path||(s.path=a),s}catch(d){if(d.code!=="MODULE_NOT_FOUND"&&d.code!=="QUALIFIED_PATH_RESOLUTION_FAILED"&&!/not find/i.test(d.message))throw d}}throw o=new Error(`Could not locate the bindings file. Tried:
|
|
23
|
+
`+r.map(function(d){return t.arrow+d}).join(`
|
|
24
|
+
`)),o.tries=r,o}BE.exports=zo=SC;zo.getFileName=function(e){var r=Error.prepareStackTrace,i=Error.stackTraceLimit,n={},a;Error.stackTraceLimit=10,Error.prepareStackTrace=function(o,d){for(var h=0,w=d.length;h<w;h++)if(a=d[h].getFileName(),a!==__filename)if(e){if(a!==e)return}else return},Error.captureStackTrace(n),n.stack,Error.prepareStackTrace=r,Error.stackTraceLimit=i;var s="file://";return a.indexOf(s)===0&&(a=vC(a)),a};zo.getRoot=function(e){for(var r=wC(e),i;;){if(r==="."&&(r=process.cwd()),kE(H0(r,"package.json"))||kE(H0(r,"node_modules")))return r;if(i===r)throw new Error('Could not find module root given file: "'+e+'". Do you have a `package.json` file? ');i=r,r=H0(r,"..")}}});var UE=Ne(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});var ca;try{ca=PE()("bigint_buffer")}catch{console.warn("bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)")}function RC(t){if(ca===void 0){let e=Buffer.from(t);e.reverse();let r=e.toString("hex");return r.length===0?BigInt(0):BigInt(`0x${r}`)}return ca.toBigInt(t,!1)}Ho.toBigIntLE=RC;function bC(t){if(ca===void 0){let e=t.toString("hex");return e.length===0?BigInt(0):BigInt(`0x${e}`)}return ca.toBigInt(t,!0)}Ho.toBigIntBE=bC;function AC(t,e){if(ca===void 0){let r=t.toString(16),i=Buffer.from(r.padStart(e*2,"0").slice(0,e*2),"hex");return i.reverse(),i}return ca.fromBigInt(t,Buffer.allocUnsafe(e),!1)}Ho.toBufferLE=AC;function OC(t,e){if(ca===void 0){let r=t.toString(16);return Buffer.from(r.padStart(e*2,"0").slice(0,e*2),"hex")}return ca.fromBigInt(t,Buffer.allocUnsafe(e),!0)}Ho.toBufferBE=OC});var xv=Ne(($V,sl)=>{function wv(t){return Array.isArray(t)?t:[t]}var $s=void 0,dn="",jo=" ",pi="\\",GC=/[.*+?()[\]{}^$|\\/]/,qC="\uFEFF",jC=/(?:[^\\]|^)\\$/,KC=/^\/\*{2,}$/,WC=/^\\!/,YC=/^\\#/,XC=/\r?\n/g,ZC="//",qo=47,_v=46,Ci="/",Sv="node-ignore";typeof Symbol<"u"&&(Sv=Symbol.for("node-ignore"));var Rv=Sv,Vs=(t,e,r)=>(Object.defineProperty(t,e,{value:r}),r),bv=()=>!1,gv={alnum:"0-9A-Za-z",alpha:"A-Za-z",blank:" \\t",cntrl:"\\x00-\\x1f\\x7f",digit:"0-9",graph:"!-.0-~",lower:"a-z",print:" -.0-~",punct:"!-.:-@\\[-`{-~",space:" \\t\\n\\r",upper:"A-Z",xdigit:"0-9A-Fa-f"},JC="\\]^-[",el=t=>JC.indexOf(t)<0?t:pi+t,QC="(?!\\/)",eL=(t,e)=>{if(t)return`[^\\/${e}]`;let r=`[${e}]`;return new RegExp(r).test("/")?QC+r:r},tL=(t,e)=>{let{length:r}=t,i=e+1,n=dn,a=t[i];(a==="!"||a==="^")&&(n="^",i++);let s=dn,o=dn;for(;;){let d=t[i];if(d===$s)return null;if(d===pi){let h=t[i+1];if(h===$s)return null;s+=el(h),o=h,i++}else if(d==="-"&&o&&i+1<r&&t[i+1]!=="]"){i++;let h=t[i];h===pi&&(h=t[i+=1]),o<=h&&(s+=`-${el(h)}`),o=dn}else if(d==="["&&t[i+1]===":"){let h=i+2,w=h;for(;w<r&&t[w]!=="]";)w++;if(w===r)return null;if(w>h&&t[w-1]===":"){let A=t.slice(h,w-1);if(!Object.prototype.hasOwnProperty.call(gv,A))return null;s+=gv[A],o=dn,i=w}else s+=el("["),o="[",i=h-2}else s+=el(d),o=d;if(i++,t[i]==="]")return{end:i,source:eL(n,s)}}},wf="[]",hd="\0",rL=new RegExp(`${hd}(\\d+)${hd}`,"g"),il="\uE000",nl="\uE001",yv=t=>t===hd||t===il||t===nl,iL=t=>{let e=[],r=s=>`${hd}${e.push(s)-1}${hd}`,{length:i}=t,n=dn,a=0;for(;a<i;){let s=t[a];if(s===pi){let o=t[a+1];o===$s||o===Ci&&a+2===i?n+=r(wf):o==="*"||o==="["||o===jo?n+=t.slice(a,a+2):n+=r(GC.test(o)?pi+o:yv(o)?`[${o}]`:o),a+=2}else if(yv(s))n+=r(`[${s}]`),a++;else if(s==="["){let o=tL(t,a);o===null?(n+=r(wf),a=i):(n+=r(o.source),a=o.end+1)}else n+=s,a++}return{source:n,sources:e}},Sf=null,nL=/\/(?!$)/,aL=[[/(\\+)( ?)/g,(t,e,r)=>r?e.slice(0,e.length-e.length%2)+jo:e,pi+jo],[/(^|\/)\*{3,}(?=\/|$)/g,(t,e)=>`${e}**`,"*"],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]","?"],[/^\//,()=>"^",Ci],[/\//g,()=>"\\/",Ci],[/^\^*(?:\\\*\\\*\\\/)+/,()=>"^(?:.*\\/)?","*"],[Sf,(t,e)=>!t||t[0]==="^"?t:(nL.test(e)?"^":"(?:^|\\/)")+t],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,r)=>e+6<r.length?r.slice(e+6)==="\\/"?"(?:\\/[^\\/]+)+":"(?:\\/[^\\/]+)*":`\\/${nl}`,"*"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(t,e,r)=>{let i=r.replace(/\\\*/g,"[^\\/]*");return e+i},"*"],[/(^|[^\\])((?:\\\\)*)\\\*$/,(t,e,r)=>r===dn?e+il:t,"*"],[/\\\\\\(?=[$.|*+(){^])/g,()=>pi,pi+pi],[/\\\\/g,()=>pi,pi+pi],[/\\\[([^\]/]*?)($|\])/g,(t,e,r)=>`\\[${e}${r}`,"["],[Sf,t=>{let e=t[t.length-1];return!e||e===il||e===nl?t:e===Ci?`${t}$`:`${t}(?=$|\\/$)`}]],sL=/(^|\\\/)?\uE000$/,rl="regex",Ev="checkRegex",vv="_",oL=(t,e)=>`${e?`${e}[^/]+`:"[^/]*"}(?=$|\\/$)`,dL=/\uE001$/,pL=()=>".+(?=$|\\/$)",tl="[^\\/]*",lL=(t,e)=>{let r=dn;for(let i=e+1;i<t.length&&!t[i].wildcard;i++)r+=t[i].single;return r},cL=t=>{if(t.indexOf(tl)<0)return t;let e=[],{length:r}=t,i=0;for(;i<r;){let o=t[i];if(t.startsWith(tl,i))e.push({wildcard:!0}),i+=tl.length;else if(o==="["){let d=i+1;for(t[d]==="^"&&d++,t[d]==="]"&&d++;d<r&&t[d]!=="]";)d+=t[d]===pi?2:1;d++,e.push({single:t.slice(i,d)}),i=d}else if(o===pi)e.push({single:t.slice(i,i+2)}),i+=2;else if(o==="("){let d=0,h=i;do t[h]===pi?h++:t[h]==="("?d++:t[h]===")"&&d--,h++;while(h<r&&d>0);"*+?".indexOf(t[h])>=0&&h++,e.push({boundary:t.slice(i,h)}),i=h}else o==="^"||o==="$"?(e.push({boundary:o}),i++):(e.push({single:o}),i++)}let n=dn,a=[],s=()=>{let o;a.forEach((d,h)=>{d.wildcard&&(o=h)}),a.forEach((d,h)=>{if(!d.wildcard){n+=d.single;return}n+=h===o?tl:`(?:(?!${lL(a,h)})[^\\/])*`}),a=[]};return e.forEach(o=>{if(o.boundary===void 0){a.push(o);return}s(),n+=o.boundary}),s(),n},Av=t=>{KC.test(t)&&(t="**");let{source:e,sources:r}=iL(t),i=aL.reduce((n,[a,s,o])=>a===Sf?s(n,t):o!==$s&&n.indexOf(o)<0?n:a.test(n)?n.replace(a,s.bind(t)):n,e);return r.length?i.replace(rL,(n,a)=>r[a]):i},uL=(t,e)=>{t[t.length-1]===Ci&&(e=Av(t.slice(0,-1)));let r=e.slice(0,-1),i=e[e.length-1];return i===il?`${r}$`:i===nl?`${r}.*$`:wf},Ov=t=>{let e=t.indexOf(Ci);return e<0||e===t.length-1},fL=t=>{let e=t.length-1,r=t.lastIndexOf(Ci,t[e]===Ci?e-1:e);return r<0?t:t.slice(r+1)},hL=t=>{if(t.charCodeAt(0)===qo||t.indexOf(ZC)>=0){let i=t.split(Ci).filter(Boolean);return i.pop(),i.length?i.join(Ci)+Ci:dn}let e=t.length-1,r=t.lastIndexOf(Ci,t.charCodeAt(e)===qo?e-1:e);return r<0?dn:t.slice(0,r+1)},al=t=>typeof t=="string",mL=t=>t&&al(t)&&!jC.test(t),_L=t=>t.split(XC).filter(Boolean),Rf=class{constructor(e,r,i,n,a,s){this.pattern=e,this.mark=r,this.negative=a,Vs(this,"body",i),Vs(this,"ignoreCase",n),Vs(this,"regexPrefix",s)}get _basenameOnly(){return Vs(this,"_basenameOnly",Ov(this.body))}get regex(){let e=vv+rl;return this[e]?this[e]:this._make(rl,e)}get checkRegex(){let e=vv+Ev;return this[e]?this[e]:this._make(Ev,e)}_make(e,r){let i=cL(e===rl?this.regexPrefix.replace(sL,oL).replace(dL,pL):uL(this.body,this.regexPrefix)),n=this.ignoreCase?new RegExp(i,"i"):new RegExp(i);return Vs(this,r,n)}},gL=t=>t==="\r"||t===`
|
|
25
|
+
`,yL=t=>{let e=t.length;for(;e&&gL(t[e-1]);)e--;let r=e;for(;e&&t[e-1]===jo;)e--;if(e===r)return t.slice(0,e);let i=0;for(;i<e&&t[e-i-1]===pi;)i++;return i%2?t.slice(0,e-1)+jo:t.slice(0,e)},EL=({pattern:t,mark:e},r)=>{let i=t[0]===qC?t.slice(1):t;if(i[0]==="#")return;let n=!1;i[0]==="!"&&(n=!0,i=i.slice(1));let a=i[i.length-1];if((a===jo||a==="\r"||a===`
|
|
26
|
+
`)&&(i=yL(i)),!i)return;i=i.replace(WC,"!").replace(YC,"#");let s=Av(i);return new Rf(t,e,i,r,n,s)},bf=class{constructor(e){this._ignoreCase=e,this._rules=[],this._basenameCount=0}_add(e){if(e&&e[Rv]){this._rules=this._rules.concat(e._rules._rules),this._basenameCount+=e._rules._basenameCount,this._added=!0;return}al(e)&&(e={pattern:e});let r=mL(e.pattern)&&EL(e,this._ignoreCase);r&&(this._added=!0,this._rules.push(r),Ov(r.body)&&this._basenameCount++)}add(e){return this._added=!1,wv(al(e)?_L(e):e).forEach(this._add,this),this._added&&(this._literalRules=$s),this._added}testLiteral(e){let r=this._literalRules||(this._literalRules=this._rules.filter(({body:o})=>o[o.length-(o[o.length-1]===Ci?2:1)]==="*")),i=!1,n=!1,a;for(let o=r.length-1;o>=0;o--){let d=r[o];if(d.checkRegex.test(e)){i=!d.negative,n=d.negative,a=d.negative?$s:d;break}}let s={ignored:i,unignored:n};return a&&(s.rule=a),s}test(e,r){let i=this._rules,{length:n}=i,a=this._basenameCount*2>=n,s=a?fL(e):e;for(let o=n-1;o>=0;o--){let d=i[o];if(d[r].test(a&&d._basenameOnly?s:e)){let{negative:h}=d,w={ignored:!h,unignored:h};return h||(w.rule=d),w}}return{ignored:!1,unignored:!1}}},vL=(t,e)=>{throw new e(t)},fa=(t,e,r)=>al(t)?t?fa.isNotRelative(t)?r(`path should be a \`path.relative()\`d string, but got "${e}"`,RangeError):!0:r("path must not be empty",TypeError):r(`path must be a string, but got \`${e}\``,TypeError),Nv=t=>{let e=t.charCodeAt(0);if(e===qo)return!0;if(e!==_v)return!1;if(t.length===1)return!0;let r=t.charCodeAt(1);return r===qo?!0:r!==_v?!1:t.length===2||t.charCodeAt(2)===qo};fa.isNotRelative=Nv;fa.convert=t=>t;var Af=class{constructor({ignorecase:e=!0,ignoreCase:r=e,allowRelativePaths:i=!1}={}){Vs(this,Rv,!0),this._rules=new bf(r),this._strictPathCheck=!i,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add(e){return this._rules.add(e)&&this._initCache(),this}addPattern(e){return this.add(e)}_test(e,r){let i=e&&fa.convert(e);return fa(i,e,this._strictPathCheck?vL:bv),this._t(i,r)}checkIgnore(e){if(e.charCodeAt(e.length-1)!==qo)return this.test(e);let r=this._t(e,this._testCache);if(r.ignored)return r;let i=this._rules.testLiteral(e);return i.ignored||i.unignored?i:r}_t(e,r){if(e in r)return r[e];let i=hL(e),n=i?this._t(i,r):$s;return r[e]=n&&n.ignored?n:this._rules.test(e,rl)}ignores(e){return this._test(e,this._ignoreCache).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return wv(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache)}},Of=t=>new Af(t),wL=t=>fa(t&&fa.convert(t),t,bv),Tv=()=>{let t=r=>/^\\\\\?\\/.test(r)||/["<>|\u0000-\u001F]+/u.test(r)?r:r.replace(/\\/g,"/");fa.convert=t;let e=/^[a-z]:\//i;fa.isNotRelative=r=>e.test(r)||Nv(r)};typeof process<"u"&&process.platform==="win32"&&Tv();sl.exports=Of;Of.default=Of;sl.exports.isPathValid=wL;Vs(sl.exports,Symbol.for("setupWindows"),Tv)});var MD,FD,VD,$D,zD,HD,Yw,GD,Lh,Xw=yt(()=>{MD=yr(a2(),1),FD=yr(V1(),1),VD=yr(ws(),1),$D=yr(o0(),1),zD=yr(p0(),1),HD=yr(h0(),1),Yw=yr($1(),1),GD=yr(o2(),1),Lh=Yw.default});var kh={};Wl(kh,{answer:()=>Zw,runTunnel:()=>jD});async function Zw(t,e,r){try{let i=(t.method??"GET").toUpperCase(),n=t.body?Buffer.from(t.body,"base64"):void 0,a=await r(new URL(t.url??"/",e),{method:i,headers:t.headers,body:i==="GET"||i==="HEAD"||!n?.length?void 0:n,redirect:"manual"}),s={};a.headers.forEach((d,h)=>{qD.has(h)||(s[h]=d)});let o=Buffer.from(await a.arrayBuffer());return{t:"res",id:t.id,status:a.status,headers:s,body:o.toString("base64")}}catch(i){return{t:"res",id:t.id,status:502,headers:{"content-type":"text/plain"},body:Buffer.from(`Nothing answered on ${e} (${i.message}). Is your app running?
|
|
27
|
+
`).toString("base64")}}}function jD(t){let e=t.log??(()=>{}),r=t.fetch??fetch,i=500,n=!1;return new Promise(a=>{let s=()=>{if(t.signal?.aborted)return a();let o=new Lh(t.connect),d=()=>o.close(1e3);t.signal?.addEventListener("abort",d,{once:!0}),o.on("open",()=>{i=500,t.onOpen?.()}),o.on("message",async h=>{let w;try{w=JSON.parse(String(h))}catch{return}if(w.t!=="req")return;let A=await Zw(w,t.target,r);e(`${w.method} ${w.url} \u2192 ${A.status}`),o.readyState===Lh.OPEN&&o.send(JSON.stringify(A))}),o.on("unexpected-response",(h,w)=>{w.statusCode===401&&(e("This tunnel's token isn't valid any more. Run `cli tunnel` again for a new one."),n=!0),o.terminate()}),o.on("error",()=>{}),o.on("close",()=>{if(t.signal?.removeEventListener("abort",d),t.signal?.aborted||n)return a();e(`Disconnected; reconnecting in ${Math.round(i/1e3)||1}s`),setTimeout(s,i),i=Math.min(i*2,15e3)})};s()})}var qD,Dh=yt(()=>{"use strict";Xw();qD=new Set(["content-encoding","content-length","transfer-encoding","connection"])});import{execFile as iB,spawn as nB}from"node:child_process";import{createInterface as aB}from"node:readline/promises";import{createReadStream as KD}from"node:fs";import{mkdtemp as WD,readFile as Kl,rm as YD,stat as XD}from"node:fs/promises";import{tmpdir as ZD}from"node:os";import{basename as a1,join as to,resolve as JD}from"node:path";import{parseArgs as QD}from"node:util";function nS(t){if(t.length>=255)throw new TypeError("Alphabet too long");let e=new Uint8Array(256);for(let h=0;h<e.length;h++)e[h]=255;for(let h=0;h<t.length;h++){let w=t.charAt(h),A=w.charCodeAt(0);if(e[A]!==255)throw new TypeError(w+" is ambiguous");e[A]=h}let r=t.length,i=t.charAt(0),n=Math.log(r)/Math.log(256),a=Math.log(256)/Math.log(r);function s(h){if(h instanceof Uint8Array||(ArrayBuffer.isView(h)?h=new Uint8Array(h.buffer,h.byteOffset,h.byteLength):Array.isArray(h)&&(h=Uint8Array.from(h))),!(h instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(h.length===0)return"";let w=0,A=0,D=0,I=h.length;for(;D!==I&&h[D]===0;)D++,w++;let R=(I-D)*a+1>>>0,F=new Uint8Array(R);for(;D!==I;){let L=h[D],q=0;for(let W=R-1;(L!==0||q<A)&&W!==-1;W--,q++)L+=256*F[W]>>>0,F[W]=L%r>>>0,L=L/r>>>0;if(L!==0)throw new Error("Non-zero carry");A=q,D++}let $=R-A;for(;$!==R&&F[$]===0;)$++;let H=i.repeat(w);for(;$<R;++$)H+=t.charAt(F[$]);return H}function o(h){if(typeof h!="string")throw new TypeError("Expected String");if(h.length===0)return new Uint8Array;let w=0,A=0,D=0;for(;h[w]===i;)A++,w++;let I=(h.length-w)*n+1>>>0,R=new Uint8Array(I);for(;w<h.length;){let L=h.charCodeAt(w);if(L>255)return;let q=e[L];if(q===255)return;let W=0;for(let se=I-1;(q!==0||W<D)&&se!==-1;se--,W++)q+=r*R[se]>>>0,R[se]=q%256>>>0,q=q/256>>>0;if(q!==0)throw new Error("Non-zero carry");D=W,w++}let F=I-D;for(;F!==I&&R[F]===0;)F++;let $=new Uint8Array(A+(I-F)),H=A;for(;F!==I;)$[H++]=R[F++];return $}function d(h){let w=o(h);if(w)return w;throw new Error("Non-base"+r+" character")}return{encode:s,decodeUnsafe:o,decode:d}}var Uh=nS;var aS="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",Xl=Uh(aS);var ov=yr(Mh(),1);var Fh="6.17.0";function sS(t,e,r){let i=e.split("|").map(a=>a.trim());for(let a=0;a<i.length;a++)switch(e){case"any":return;case"bigint":case"boolean":case"number":case"string":if(typeof t===e)return}let n=new Error(`invalid value for type ${e}`);throw n.code="INVALID_ARGUMENT",n.argument=`value.${r}`,n.value=t,n}function qd(t,e,r){for(let i in e){let n=e[i],a=r?r[i]:null;a&&sS(n,a,i),Object.defineProperty(t,i,{enumerable:!0,value:n,writable:!1})}}function io(t,e){if(t==null)return"null";if(e==null&&(e=new Set),typeof t=="object"){if(e.has(t))return"[Circular]";e.add(t)}if(Array.isArray(t))return"[ "+t.map(r=>io(r,e)).join(", ")+" ]";if(t instanceof Uint8Array){let r="0123456789abcdef",i="0x";for(let n=0;n<t.length;n++)i+=r[t[n]>>4],i+=r[t[n]&15];return i}if(typeof t=="object"&&typeof t.toJSON=="function")return io(t.toJSON(),e);switch(typeof t){case"boolean":case"number":case"symbol":return t.toString();case"bigint":return BigInt(t).toString();case"string":return JSON.stringify(t);case"object":{let r=Object.keys(t);return r.sort(),"{ "+r.map(i=>`${io(i,e)}: ${io(t[i],e)}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function Vh(t,e,r){let i=t;{let a=[];if(r){if("message"in r||"code"in r||"name"in r)throw new Error(`value will overwrite populated values: ${io(r)}`);for(let s in r){if(s==="shortMessage")continue;let o=r[s];a.push(s+"="+io(o))}}a.push(`code=${e}`),a.push(`version=${Fh}`),a.length&&(t+=" ("+a.join(", ")+")")}let n;switch(e){case"INVALID_ARGUMENT":n=new TypeError(t);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":n=new RangeError(t);break;default:n=new Error(t)}return qd(n,{code:e}),r&&Object.assign(n,r),n.shortMessage==null&&qd(n,{shortMessage:i}),n}function Zl(t,e,r,i){if(!t)throw Vh(e,r,i)}function Jl(t,e,r,i){Zl(t,e,"INVALID_ARGUMENT",{argument:r,value:i})}var yB=["NFD","NFC","NFKD","NFKC"].reduce((t,e)=>{try{if("test".normalize(e)!=="test")throw new Error("bad");if(e==="NFD"&&"\xE9".normalize("NFD")!=="e\u0301")throw new Error("broken");t.push(e)}catch{}return t},[]);function oS(t,e,r){if(t instanceof Uint8Array)return r?new Uint8Array(t):t;if(typeof t=="string"&&t.length%2===0&&t.match(/^0x[0-9a-f]*$/i)){let i=new Uint8Array((t.length-2)/2),n=2;for(let a=0;a<i.length;a++)i[a]=parseInt(t.substring(n,n+2),16),n+=2;return i}Jl(!1,"invalid BytesLike value",e||"value",t)}function Ql(t,e){return oS(t,e,!1)}var $h="0123456789abcdef";function jd(t){let e=Ql(t),r="0x";for(let i=0;i<e.length;i++){let n=e[i];r+=$h[(n&240)>>4]+$h[n&15]}return r}import{createHash as OB,createHmac as NB,pbkdf2Sync as TB,randomBytes as zh}from"crypto";var Hh=!1,Gh=function(t){return new Uint8Array(zh(t))},qh=Gh;function wa(t){return qh(t)}wa._=Gh;wa.lock=function(){Hh=!0};wa.register=function(t){if(Hh)throw new Error("randomBytes is locked");qh=t};Object.freeze(wa);var $o=yr(Ps(),1),ud=new $o.PublicKey("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),LF=new $o.PublicKey("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"),IE=new $o.PublicKey("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"),kF=new $o.PublicKey("So11111111111111111111111111111111111111112"),DF=new $o.PublicKey("9pan9bMn5HatX4EJdBwg9VgCa7Uz5HL8N1m5D3NdXejP");var Us=t=>{let e=t.decode.bind(t),r=t.encode.bind(t);return{decode:e,encode:r}};var ME=yr(ys(),1),Ka=yr(UE(),1);import{Buffer as uf}from"buffer";function NC(t){if(typeof t!="bigint")throw new Error("Expected a `BigInt`")}function TC(t,e){return r=>{let i=(0,ME.blob)(e,r),{encode:n,decode:a}=Us(i),s=i;return s.decode=(o,d)=>{let h=a(o,d);return t?(0,Ka.toBigIntLE)(uf.from(h)):(0,Ka.toBigIntBE)(uf.from(h))},s.encode=(o,d,h)=>{NC(o);let w;return e===0?w=uf.alloc(0):w=t?(0,Ka.toBufferLE)(o,e):(0,Ka.toBufferBE)(o,e),n(w,d,h)},s}}var xC=TC.bind(null,!0);var q0=xC(8);var IC=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,ff=Math.ceil,ji=Math.floor,bi="[BigNumber Error] ",FE=bi+"Number primitive has more than 15 significant digits: ",on=1e14,nt=14,hf=9007199254740991,mf=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],Wa=1e7,zr=1e9;function VE(t){var e,r,i,n=L.prototype={constructor:L,toString:null,valueOf:null},a=new L(1),s=20,o=4,d=-7,h=21,w=-1e7,A=1e7,D=!1,I=1,R=0,F={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xA0",suffix:""},$="0123456789abcdefghijklmnopqrstuvwxyz",H=!0;function L(c,m){var v,T,P,_,p,l,g,E,S=this;if(!(S instanceof L))return new L(c,m);if(m==null){if(c&&c._isBigNumber===!0){S.s=c.s,!c.c||c.e>A?S.c=S.e=null:c.e<w?S.c=[S.e=0]:(S.e=c.e,S.c=c.c.slice());return}if((l=typeof c=="number")&&c*0==0){if(S.s=1/c<0?(c=-c,-1):1,c===~~c){for(_=0,p=c;p>=10;p/=10,_++);_>A?S.c=S.e=null:(S.e=_,S.c=[c]);return}E=String(c)}else{if(!IC.test(E=String(c)))return i(S,E,l);S.s=E.charCodeAt(0)==45?(E=E.slice(1),-1):1}(_=E.indexOf("."))>-1&&(E=E.replace(".","")),(p=E.search(/e/i))>0?(_<0&&(_=p),_+=+E.slice(p+1),E=E.substring(0,p)):_<0&&(_=E.length)}else{if(ur(m,2,$.length,"Base"),m==10&&H)return S=new L(c),N(S,s+S.e+1,o);if(E=String(c),l=typeof c=="number"){if(c*0!=0)return i(S,E,l,m);if(S.s=1/c<0?(E=E.slice(1),-1):1,L.DEBUG&&E.replace(/^0\.0*|\./,"").length>15)throw Error(FE+c)}else S.s=E.charCodeAt(0)===45?(E=E.slice(1),-1):1;for(v=$.slice(0,m),_=p=0,g=E.length;p<g;p++)if(v.indexOf(T=E.charAt(p))<0){if(T=="."){if(p>_){_=g;continue}}else if(!P&&(E==E.toUpperCase()&&(E=E.toLowerCase())||E==E.toLowerCase()&&(E=E.toUpperCase()))){P=!0,p=-1,_=0;continue}return i(S,String(c),l,m)}l=!1,E=r(E,m,10,S.s),(_=E.indexOf("."))>-1?E=E.replace(".",""):_=E.length}for(p=0;E.charCodeAt(p)===48;p++);for(g=E.length;E.charCodeAt(--g)===48;);if(E=E.slice(p,++g)){if(g-=p,l&&L.DEBUG&&g>15&&(c>hf||c!==ji(c)))throw Error(FE+S.s*c);if((_=_-p-1)>A)S.c=S.e=null;else if(_<w)S.c=[S.e=0];else{if(S.e=_,S.c=[],p=(_+1)%nt,_<0&&(p+=nt),p<g){for(p&&S.c.push(+E.slice(0,p)),g-=nt;p<g;)S.c.push(+E.slice(p,p+=nt));p=nt-(E=E.slice(p)).length}else p-=g;for(;p--;E+="0");S.c.push(+E)}}else S.c=[S.e=0]}L.clone=VE,L.ROUND_UP=0,L.ROUND_DOWN=1,L.ROUND_CEIL=2,L.ROUND_FLOOR=3,L.ROUND_HALF_UP=4,L.ROUND_HALF_DOWN=5,L.ROUND_HALF_EVEN=6,L.ROUND_HALF_CEIL=7,L.ROUND_HALF_FLOOR=8,L.EUCLID=9,L.config=L.set=function(c){var m,v;if(c!=null)if(typeof c=="object"){if(c.hasOwnProperty(m="DECIMAL_PLACES")&&(v=c[m],ur(v,0,zr,m),s=v),c.hasOwnProperty(m="ROUNDING_MODE")&&(v=c[m],ur(v,0,8,m),o=v),c.hasOwnProperty(m="EXPONENTIAL_AT")&&(v=c[m],v&&v.pop?(ur(v[0],-zr,0,m),ur(v[1],0,zr,m),d=v[0],h=v[1]):(ur(v,-zr,zr,m),d=-(h=v<0?-v:v))),c.hasOwnProperty(m="RANGE"))if(v=c[m],v&&v.pop)ur(v[0],-zr,-1,m),ur(v[1],1,zr,m),w=v[0],A=v[1];else if(ur(v,-zr,zr,m),v)w=-(A=v<0?-v:v);else throw Error(bi+m+" cannot be zero: "+v);if(c.hasOwnProperty(m="CRYPTO"))if(v=c[m],v===!!v)if(v)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))D=v;else throw D=!v,Error(bi+"crypto unavailable");else D=v;else throw Error(bi+m+" not true or false: "+v);if(c.hasOwnProperty(m="MODULO_MODE")&&(v=c[m],ur(v,0,9,m),I=v),c.hasOwnProperty(m="POW_PRECISION")&&(v=c[m],ur(v,0,zr,m),R=v),c.hasOwnProperty(m="FORMAT"))if(v=c[m],typeof v=="object")F=v;else throw Error(bi+m+" not an object: "+v);if(c.hasOwnProperty(m="ALPHABET"))if(v=c[m],typeof v=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(v))H=v.slice(0,10)=="0123456789",$=v;else throw Error(bi+m+" invalid: "+v)}else throw Error(bi+"Object expected: "+c);return{DECIMAL_PLACES:s,ROUNDING_MODE:o,EXPONENTIAL_AT:[d,h],RANGE:[w,A],CRYPTO:D,MODULO_MODE:I,POW_PRECISION:R,FORMAT:F,ALPHABET:$}},L.isBigNumber=function(c){if(!c||c._isBigNumber!==!0)return!1;if(!L.DEBUG)return!0;var m,v,T=c.c,P=c.e,_=c.s;e:if({}.toString.call(T)=="[object Array]"){if((_===1||_===-1)&&P>=-zr&&P<=zr&&P===ji(P)){if(T[0]===0){if(P===0&&T.length===1)return!0;break e}if(m=(P+1)%nt,m<1&&(m+=nt),String(T[0]).length==m){for(m=0;m<T.length;m++)if(v=T[m],v<0||v>=on||v!==ji(v))break e;if(v!==0)return!0}}}else if(T===null&&P===null&&(_===null||_===1||_===-1))return!0;throw Error(bi+"Invalid BigNumber: "+c)},L.maximum=L.max=function(){return W(arguments,-1)},L.minimum=L.min=function(){return W(arguments,1)},L.random=(function(){var c=9007199254740992,m=Math.random()*c&2097151?function(){return ji(Math.random()*c)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(v){var T,P,_,p,l,g=0,E=[],S=new L(a);if(v==null?v=s:ur(v,0,zr),p=ff(v/nt),D)if(crypto.getRandomValues){for(T=crypto.getRandomValues(new Uint32Array(p*=2));g<p;)l=T[g]*131072+(T[g+1]>>>11),l>=9e15?(P=crypto.getRandomValues(new Uint32Array(2)),T[g]=P[0],T[g+1]=P[1]):(E.push(l%1e14),g+=2);g=p/2}else if(crypto.randomBytes){for(T=crypto.randomBytes(p*=7);g<p;)l=(T[g]&31)*281474976710656+T[g+1]*1099511627776+T[g+2]*4294967296+T[g+3]*16777216+(T[g+4]<<16)+(T[g+5]<<8)+T[g+6],l>=9e15?crypto.randomBytes(7).copy(T,g):(E.push(l%1e14),g+=7);g=p/7}else throw D=!1,Error(bi+"crypto unavailable");if(!D)for(;g<p;)l=m(),l<9e15&&(E[g++]=l%1e14);for(p=E[--g],v%=nt,p&&v&&(l=mf[nt-v],E[g]=ji(p/l)*l);E[g]===0;E.pop(),g--);if(g<0)E=[_=0];else{for(_=-1;E[0]===0;E.splice(0,1),_-=nt);for(g=1,l=E[0];l>=10;l/=10,g++);g<nt&&(_-=nt-g)}return S.e=_,S.c=E,S}})(),L.sum=function(){for(var c=1,m=arguments,v=new L(m[0]);c<m.length;)v=v.plus(m[c++]);return v},r=(function(){var c="0123456789";function m(v,T,P,_){for(var p,l=[0],g,E=0,S=v.length;E<S;){for(g=l.length;g--;l[g]*=T);for(l[0]+=_.indexOf(v.charAt(E++)),p=0;p<l.length;p++)l[p]>P-1&&(l[p+1]==null&&(l[p+1]=0),l[p+1]+=l[p]/P|0,l[p]%=P)}return l.reverse()}return function(v,T,P,_,p){var l,g,E,S,C,V,x,y,M=v.indexOf("."),te=s,re=o;for(M>=0&&(S=R,R=0,v=v.replace(".",""),y=new L(T),V=y.pow(v.length-M),R=S,y.c=m(ua(qi(V.c),V.e,"0"),10,P,c),y.e=y.c.length),x=m(v,T,P,p?(l=$,c):(l=c,$)),E=S=x.length;x[--S]==0;x.pop());if(!x[0])return l.charAt(0);if(M<0?--E:(V.c=x,V.e=E,V.s=_,V=e(V,y,te,re,P),x=V.c,C=V.r,E=V.e),g=E+te+1,M=x[g],S=P/2,C=C||g<0||x[g+1]!=null,C=re<4?(M!=null||C)&&(re==0||re==(V.s<0?3:2)):M>S||M==S&&(re==4||C||re==6&&x[g-1]&1||re==(V.s<0?8:7)),g<1||!x[0])v=C?ua(l.charAt(1),-te,l.charAt(0)):l.charAt(0);else{if(x.length=g,C)for(--P;++x[--g]>P;)x[g]=0,g||(++E,x=[1].concat(x));for(S=x.length;!x[--S];);for(M=0,v="";M<=S;v+=l.charAt(x[M++]));v=ua(v,E,l.charAt(0))}return v}})(),e=(function(){function c(T,P,_){var p,l,g,E,S=0,C=T.length,V=P%Wa,x=P/Wa|0;for(T=T.slice();C--;)g=T[C]%Wa,E=T[C]/Wa|0,p=x*g+E*V,l=V*g+p%Wa*Wa+S,S=(l/_|0)+(p/Wa|0)+x*E,T[C]=l%_;return S&&(T=[S].concat(T)),T}function m(T,P,_,p){var l,g;if(_!=p)g=_>p?1:-1;else for(l=g=0;l<_;l++)if(T[l]!=P[l]){g=T[l]>P[l]?1:-1;break}return g}function v(T,P,_,p){for(var l=0;_--;)T[_]-=l,l=T[_]<P[_]?1:0,T[_]=l*p+T[_]-P[_];for(;!T[0]&&T.length>1;T.splice(0,1));}return function(T,P,_,p,l){var g,E,S,C,V,x,y,M,te,re,oe,me,Ce,Te,gt,Fe,tt,er=T.s==P.s?1:-1,rt=T.c,Pe=P.c;if(!rt||!rt[0]||!Pe||!Pe[0])return new L(!T.s||!P.s||(rt?Pe&&rt[0]==Pe[0]:!Pe)?NaN:rt&&rt[0]==0||!Pe?er*0:er/0);for(M=new L(er),te=M.c=[],E=T.e-P.e,er=_+E+1,l||(l=on,E=Ki(T.e/nt)-Ki(P.e/nt),er=er/nt|0),S=0;Pe[S]==(rt[S]||0);S++);if(Pe[S]>(rt[S]||0)&&E--,er<0)te.push(1),C=!0;else{for(Te=rt.length,Fe=Pe.length,S=0,er+=2,V=ji(l/(Pe[0]+1)),V>1&&(Pe=c(Pe,V,l),rt=c(rt,V,l),Fe=Pe.length,Te=rt.length),Ce=Fe,re=rt.slice(0,Fe),oe=re.length;oe<Fe;re[oe++]=0);tt=Pe.slice(),tt=[0].concat(tt),gt=Pe[0],Pe[1]>=l/2&>++;do{if(V=0,g=m(Pe,re,Fe,oe),g<0){if(me=re[0],Fe!=oe&&(me=me*l+(re[1]||0)),V=ji(me/gt),V>1)for(V>=l&&(V=l-1),x=c(Pe,V,l),y=x.length,oe=re.length;m(x,re,y,oe)==1;)V--,v(x,Fe<y?tt:Pe,y,l),y=x.length,g=1;else V==0&&(g=V=1),x=Pe.slice(),y=x.length;if(y<oe&&(x=[0].concat(x)),v(re,x,oe,l),oe=re.length,g==-1)for(;m(Pe,re,Fe,oe)<1;)V++,v(re,Fe<oe?tt:Pe,oe,l),oe=re.length}else g===0&&(V++,re=[0]);te[S++]=V,re[0]?re[oe++]=rt[Ce]||0:(re=[rt[Ce]],oe=1)}while((Ce++<Te||re[0]!=null)&&er--);C=re[0]!=null,te[0]||te.splice(0,1)}if(l==on){for(S=1,er=te[0];er>=10;er/=10,S++);N(M,_+(M.e=S+E*nt-1)+1,p,C)}else M.e=E,M.r=+C;return M}})();function q(c,m,v,T){var P,_,p,l,g;if(v==null?v=o:ur(v,0,8),!c.c)return c.toString();if(P=c.c[0],p=c.e,m==null)g=qi(c.c),g=T==1||T==2&&(p<=d||p>=h)?K0(g,p):ua(g,p,"0");else if(c=N(new L(c),m,v),_=c.e,g=qi(c.c),l=g.length,T==1||T==2&&(m<=_||_<=d)){for(;l<m;g+="0",l++);g=K0(g,_)}else if(m-=p+(T===2&&_>p),g=ua(g,_,"0"),_+1>l){if(--m>0)for(g+=".";m--;g+="0");}else if(m+=_-l,m>0)for(_+1==l&&(g+=".");m--;g+="0");return c.s<0&&P?"-"+g:g}function W(c,m){for(var v,T,P=1,_=new L(c[0]);P<c.length;P++)T=new L(c[P]),(!T.s||(v=Ms(_,T))===m||v===0&&_.s===m)&&(_=T);return _}function se(c,m,v){for(var T=1,P=m.length;!m[--P];m.pop());for(P=m[0];P>=10;P/=10,T++);return(v=T+v*nt-1)>A?c.c=c.e=null:v<w?c.c=[c.e=0]:(c.e=v,c.c=m),c}i=(function(){var c=/^(-?)0([xbo])(?=\w[\w.]*$)/i,m=/^([^.]+)\.$/,v=/^\.([^.]+)$/,T=/^-?(Infinity|NaN)$/,P=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(_,p,l,g){var E,S=l?p:p.replace(P,"");if(T.test(S))_.s=isNaN(S)?null:S<0?-1:1;else{if(!l&&(S=S.replace(c,function(C,V,x){return E=(x=x.toLowerCase())=="x"?16:x=="b"?2:8,!g||g==E?V:C}),g&&(E=g,S=S.replace(m,"$1").replace(v,"0.$1")),p!=S))return new L(S,E);if(L.DEBUG)throw Error(bi+"Not a"+(g?" base "+g:"")+" number: "+p);_.s=null}_.c=_.e=null}})();function N(c,m,v,T){var P,_,p,l,g,E,S,C=c.c,V=mf;if(C){e:{for(P=1,l=C[0];l>=10;l/=10,P++);if(_=m-P,_<0)_+=nt,p=m,g=C[E=0],S=ji(g/V[P-p-1]%10);else if(E=ff((_+1)/nt),E>=C.length)if(T){for(;C.length<=E;C.push(0));g=S=0,P=1,_%=nt,p=_-nt+1}else break e;else{for(g=l=C[E],P=1;l>=10;l/=10,P++);_%=nt,p=_-nt+P,S=p<0?0:ji(g/V[P-p-1]%10)}if(T=T||m<0||C[E+1]!=null||(p<0?g:g%V[P-p-1]),T=v<4?(S||T)&&(v==0||v==(c.s<0?3:2)):S>5||S==5&&(v==4||T||v==6&&(_>0?p>0?g/V[P-p]:0:C[E-1])%10&1||v==(c.s<0?8:7)),m<1||!C[0])return C.length=0,T?(m-=c.e+1,C[0]=V[(nt-m%nt)%nt],c.e=-m||0):C[0]=c.e=0,c;if(_==0?(C.length=E,l=1,E--):(C.length=E+1,l=V[nt-_],C[E]=p>0?ji(g/V[P-p]%V[p])*l:0),T)for(;;)if(E==0){for(_=1,p=C[0];p>=10;p/=10,_++);for(p=C[0]+=l,l=1;p>=10;p/=10,l++);_!=l&&(c.e++,C[0]==on&&(C[0]=1));break}else{if(C[E]+=l,C[E]!=on)break;C[E--]=0,l=1}for(_=C.length;C[--_]===0;C.pop());}c.e>A?c.c=c.e=null:c.e<w&&(c.c=[c.e=0])}return c}function O(c){var m,v=c.e;return v===null?c.toString():(m=qi(c.c),m=v<=d||v>=h?K0(m,v):ua(m,v,"0"),c.s<0?"-"+m:m)}return n.absoluteValue=n.abs=function(){var c=new L(this);return c.s<0&&(c.s=1),c},n.comparedTo=function(c,m){return Ms(this,new L(c,m))},n.decimalPlaces=n.dp=function(c,m){var v,T,P,_=this;if(c!=null)return ur(c,0,zr),m==null?m=o:ur(m,0,8),N(new L(_),c+_.e+1,m);if(!(v=_.c))return null;if(T=((P=v.length-1)-Ki(this.e/nt))*nt,P=v[P])for(;P%10==0;P/=10,T--);return T<0&&(T=0),T},n.dividedBy=n.div=function(c,m){return e(this,new L(c,m),s,o)},n.dividedToIntegerBy=n.idiv=function(c,m){return e(this,new L(c,m),0,1)},n.exponentiatedBy=n.pow=function(c,m){var v,T,P,_,p,l,g,E,S,C=this;if(c=new L(c),c.c&&!c.isInteger())throw Error(bi+"Exponent not an integer: "+O(c));if(m!=null&&(m=new L(m)),l=c.e>14,!C.c||!C.c[0]||C.c[0]==1&&!C.e&&C.c.length==1||!c.c||!c.c[0])return S=new L(Math.pow(+O(C),l?c.s*(2-j0(c)):+O(c))),m?S.mod(m):S;if(g=c.s<0,m){if(m.c?!m.c[0]:!m.s)return new L(NaN);T=!g&&C.isInteger()&&m.isInteger(),T&&(C=C.mod(m))}else{if(c.e>9&&(C.e>0||C.e<-1||(C.e==0?C.c[0]>1||l&&C.c[1]>=24e7:C.c[0]<8e13||l&&C.c[0]<=9999975e7)))return _=C.s<0&&j0(c)?-0:0,C.e>-1&&(_=1/_),new L(g?1/_:_);R&&(_=ff(R/nt+2))}for(l?(v=new L(.5),g&&(c.s=1),E=j0(c)):(P=Math.abs(+O(c)),E=P%2),S=new L(a);;){if(E){if(S=S.times(C),!S.c)break;_?S.c.length>_&&(S.c.length=_):T&&(S=S.mod(m))}if(P){if(P=ji(P/2),P===0)break;E=P%2}else if(c=c.times(v),N(c,c.e+1,1),c.e>14)E=j0(c);else{if(P=+O(c),P===0)break;E=P%2}C=C.times(C),_?C.c&&C.c.length>_&&(C.c.length=_):T&&(C=C.mod(m))}return T?S:(g&&(S=a.div(S)),m?S.mod(m):_?N(S,R,o,p):S)},n.integerValue=function(c){var m=new L(this);return c==null?c=o:ur(c,0,8),N(m,m.e+1,c)},n.isEqualTo=n.eq=function(c,m){return Ms(this,new L(c,m))===0},n.isFinite=function(){return!!this.c},n.isGreaterThan=n.gt=function(c,m){return Ms(this,new L(c,m))>0},n.isGreaterThanOrEqualTo=n.gte=function(c,m){return(m=Ms(this,new L(c,m)))===1||m===0},n.isInteger=function(){return!!this.c&&Ki(this.e/nt)>this.c.length-2},n.isLessThan=n.lt=function(c,m){return Ms(this,new L(c,m))<0},n.isLessThanOrEqualTo=n.lte=function(c,m){return(m=Ms(this,new L(c,m)))===-1||m===0},n.isNaN=function(){return!this.s},n.isNegative=function(){return this.s<0},n.isPositive=function(){return this.s>0},n.isZero=function(){return!!this.c&&this.c[0]==0},n.minus=function(c,m){var v,T,P,_,p=this,l=p.s;if(c=new L(c,m),m=c.s,!l||!m)return new L(NaN);if(l!=m)return c.s=-m,p.plus(c);var g=p.e/nt,E=c.e/nt,S=p.c,C=c.c;if(!g||!E){if(!S||!C)return S?(c.s=-m,c):new L(C?p:NaN);if(!S[0]||!C[0])return C[0]?(c.s=-m,c):new L(S[0]?p:o==3?-0:0)}if(g=Ki(g),E=Ki(E),S=S.slice(),l=g-E){for((_=l<0)?(l=-l,P=S):(E=g,P=C),P.reverse(),m=l;m--;P.push(0));P.reverse()}else for(T=(_=(l=S.length)<(m=C.length))?l:m,l=m=0;m<T;m++)if(S[m]!=C[m]){_=S[m]<C[m];break}if(_&&(P=S,S=C,C=P,c.s=-c.s),m=(T=C.length)-(v=S.length),m>0)for(;m--;S[v++]=0);for(m=on-1;T>l;){if(S[--T]<C[T]){for(v=T;v&&!S[--v];S[v]=m);--S[v],S[T]+=on}S[T]-=C[T]}for(;S[0]==0;S.splice(0,1),--E);return S[0]?se(c,S,E):(c.s=o==3?-1:1,c.c=[c.e=0],c)},n.modulo=n.mod=function(c,m){var v,T,P=this;return c=new L(c,m),!P.c||!c.s||c.c&&!c.c[0]?new L(NaN):!c.c||P.c&&!P.c[0]?new L(P):(I==9?(T=c.s,c.s=1,v=e(P,c,0,3),c.s=T,v.s*=T):v=e(P,c,0,I),c=P.minus(v.times(c)),!c.c[0]&&I==1&&(c.s=P.s),c)},n.multipliedBy=n.times=function(c,m){var v,T,P,_,p,l,g,E,S,C,V,x,y,M,te,re=this,oe=re.c,me=(c=new L(c,m)).c;if(!oe||!me||!oe[0]||!me[0])return!re.s||!c.s||oe&&!oe[0]&&!me||me&&!me[0]&&!oe?c.c=c.e=c.s=null:(c.s*=re.s,!oe||!me?c.c=c.e=null:(c.c=[0],c.e=0)),c;for(T=Ki(re.e/nt)+Ki(c.e/nt),c.s*=re.s,g=oe.length,C=me.length,g<C&&(y=oe,oe=me,me=y,P=g,g=C,C=P),P=g+C,y=[];P--;y.push(0));for(M=on,te=Wa,P=C;--P>=0;){for(v=0,V=me[P]%te,x=me[P]/te|0,p=g,_=P+p;_>P;)E=oe[--p]%te,S=oe[p]/te|0,l=x*E+S*V,E=V*E+l%te*te+y[_]+v,v=(E/M|0)+(l/te|0)+x*S,y[_--]=E%M;y[_]=v}return v?++T:y.splice(0,1),se(c,y,T)},n.negated=function(){var c=new L(this);return c.s=-c.s||null,c},n.plus=function(c,m){var v,T=this,P=T.s;if(c=new L(c,m),m=c.s,!P||!m)return new L(NaN);if(P!=m)return c.s=-m,T.minus(c);var _=T.e/nt,p=c.e/nt,l=T.c,g=c.c;if(!_||!p){if(!l||!g)return new L(P/0);if(!l[0]||!g[0])return g[0]?c:new L(l[0]?T:P*0)}if(_=Ki(_),p=Ki(p),l=l.slice(),P=_-p){for(P>0?(p=_,v=g):(P=-P,v=l),v.reverse();P--;v.push(0));v.reverse()}for(P=l.length,m=g.length,P-m<0&&(v=g,g=l,l=v,m=P),P=0;m;)P=(l[--m]=l[m]+g[m]+P)/on|0,l[m]=on===l[m]?0:l[m]%on;return P&&(l=[P].concat(l),++p),se(c,l,p)},n.precision=n.sd=function(c,m){var v,T,P,_=this;if(c!=null&&c!==!!c)return ur(c,1,zr),m==null?m=o:ur(m,0,8),N(new L(_),c,m);if(!(v=_.c))return null;if(P=v.length-1,T=P*nt+1,P=v[P]){for(;P%10==0;P/=10,T--);for(P=v[0];P>=10;P/=10,T++);}return c&&_.e+1>T&&(T=_.e+1),T},n.shiftedBy=function(c){return ur(c,-hf,hf),this.times("1e"+c)},n.squareRoot=n.sqrt=function(){var c,m,v,T,P,_=this,p=_.c,l=_.s,g=_.e,E=s+4,S=new L("0.5");if(l!==1||!p||!p[0])return new L(!l||l<0&&(!p||p[0])?NaN:p?_:1/0);if(l=Math.sqrt(+O(_)),l==0||l==1/0?(m=qi(p),(m.length+g)%2==0&&(m+="0"),l=Math.sqrt(+m),g=Ki((g+1)/2)-(g<0||g%2),l==1/0?m="5e"+g:(m=l.toExponential(),m=m.slice(0,m.indexOf("e")+1)+g),v=new L(m)):v=new L(l+""),v.c[0]){for(g=v.e,l=g+E,l<3&&(l=0);;)if(P=v,v=S.times(P.plus(e(_,P,E,1))),qi(P.c).slice(0,l)===(m=qi(v.c)).slice(0,l))if(v.e<g&&--l,m=m.slice(l-3,l+1),m=="9999"||!T&&m=="4999"){if(!T&&(N(P,P.e+s+2,0),P.times(P).eq(_))){v=P;break}E+=4,l+=4,T=1}else{(!+m||!+m.slice(1)&&m.charAt(0)=="5")&&(N(v,v.e+s+2,1),c=!v.times(v).eq(_));break}}return N(v,v.e+s+1,o,c)},n.toExponential=function(c,m){return c!=null&&(ur(c,0,zr),c++),q(this,c,m,1)},n.toFixed=function(c,m){return c!=null&&(ur(c,0,zr),c=c+this.e+1),q(this,c,m)},n.toFormat=function(c,m,v){var T,P=this;if(v==null)c!=null&&m&&typeof m=="object"?(v=m,m=null):c&&typeof c=="object"?(v=c,c=m=null):v=F;else if(typeof v!="object")throw Error(bi+"Argument not an object: "+v);if(T=P.toFixed(c,m),P.c){var _,p=T.split("."),l=+v.groupSize,g=+v.secondaryGroupSize,E=v.groupSeparator||"",S=p[0],C=p[1],V=P.s<0,x=V?S.slice(1):S,y=x.length;if(g&&(_=l,l=g,g=_,y-=_),l>0&&y>0){for(_=y%l||l,S=x.substr(0,_);_<y;_+=l)S+=E+x.substr(_,l);g>0&&(S+=E+x.slice(_)),V&&(S="-"+S)}T=C?S+(v.decimalSeparator||"")+((g=+v.fractionGroupSize)?C.replace(new RegExp("\\d{"+g+"}\\B","g"),"$&"+(v.fractionGroupSeparator||"")):C):S}return(v.prefix||"")+T+(v.suffix||"")},n.toFraction=function(c){var m,v,T,P,_,p,l,g,E,S,C,V,x=this,y=x.c;if(c!=null&&(l=new L(c),!l.isInteger()&&(l.c||l.s!==1)||l.lt(a)))throw Error(bi+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+O(l));if(!y)return new L(x);for(m=new L(a),E=v=new L(a),T=g=new L(a),V=qi(y),_=m.e=V.length-x.e-1,m.c[0]=mf[(p=_%nt)<0?nt+p:p],c=!c||l.comparedTo(m)>0?_>0?m:E:l,p=A,A=1/0,l=new L(V),g.c[0]=0;S=e(l,m,0,1),P=v.plus(S.times(T)),P.comparedTo(c)!=1;)v=T,T=P,E=g.plus(S.times(P=E)),g=P,m=l.minus(S.times(P=m)),l=P;return P=e(c.minus(v),T,0,1),g=g.plus(P.times(E)),v=v.plus(P.times(T)),g.s=E.s=x.s,_=_*2,C=e(E,T,_,o).minus(x).abs().comparedTo(e(g,v,_,o).minus(x).abs())<1?[E,T]:[g,v],A=p,C},n.toNumber=function(){return+O(this)},n.toPrecision=function(c,m){return c!=null&&ur(c,1,zr),q(this,c,m,2)},n.toString=function(c){var m,v=this,T=v.s,P=v.e;return P===null?T?(m="Infinity",T<0&&(m="-"+m)):m="NaN":(c==null?m=P<=d||P>=h?K0(qi(v.c),P):ua(qi(v.c),P,"0"):c===10&&H?(v=N(new L(v),s+P+1,o),m=ua(qi(v.c),v.e,"0")):(ur(c,2,$.length,"Base"),m=r(ua(qi(v.c),P,"0"),10,c,T,!0)),T<0&&v.c[0]&&(m="-"+m)),m},n.valueOf=n.toJSON=function(){return O(this)},n._isBigNumber=!0,n[Symbol.toStringTag]="BigNumber",n[Symbol.for("nodejs.util.inspect.custom")]=n.valueOf,t!=null&&L.set(t),L}function Ki(t){var e=t|0;return t>0||t===e?e:e-1}function qi(t){for(var e,r,i=1,n=t.length,a=t[0]+"";i<n;){for(e=t[i++]+"",r=nt-e.length;r--;e="0"+e);a+=e}for(n=a.length;a.charCodeAt(--n)===48;);return a.slice(0,n+1||1)}function Ms(t,e){var r,i,n=t.c,a=e.c,s=t.s,o=e.s,d=t.e,h=e.e;if(!s||!o)return null;if(r=n&&!n[0],i=a&&!a[0],r||i)return r?i?0:-o:s;if(s!=o)return s;if(r=s<0,i=d==h,!n||!a)return i?0:!n^r?1:-1;if(!i)return d>h^r?1:-1;for(o=(d=n.length)<(h=a.length)?d:h,s=0;s<o;s++)if(n[s]!=a[s])return n[s]>a[s]^r?1:-1;return d==h?0:d>h^r?1:-1}function ur(t,e,r,i){if(t<e||t>r||t!==ji(t))throw Error(bi+(i||"Argument")+(typeof t=="number"?t<e||t>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(t))}function j0(t){var e=t.c.length-1;return Ki(t.e/nt)==e&&t.c[e]%2!=0}function K0(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function ua(t,e,r){var i,n;if(e<0){for(n=r+".";++e;n+=r);t=n+t}else if(i=t.length,++e>i){for(n=r,e-=i;--e;n+=r);t+=n}else e<i&&(t=t.slice(0,e)+"."+t.slice(e));return t}var CC=VE(),$E=CC;var WF=new $E("1e+18");var zE=yr(ys(),1);var HE=t=>{let e=(0,zE.u8)(t),{encode:r,decode:i}=Us(e),n=e;return n.decode=(a,s)=>!!i(a,s),n.encode=(a,s,o)=>{let d=Number(a);return r(d,s,o)},n};var GE=yr(ys(),1),qE=yr(Ps(),1);var _f=t=>{let e=(0,GE.blob)(32,t),{encode:r,decode:i}=Us(e),n=e;return n.decode=(a,s)=>{let o=i(a,s);return new qE.PublicKey(o)},n.encode=(a,s,o)=>{let d=a.toBuffer();return r(d,s,o)},n};var gf=class extends Error{constructor(e){super(e)}};var W0=class extends gf{constructor(){super(...arguments),this.name="TokenOwnerOffCurveError"}};var Y0;(function(t){t[t.InitializeMint=0]="InitializeMint",t[t.InitializeAccount=1]="InitializeAccount",t[t.InitializeMultisig=2]="InitializeMultisig",t[t.Transfer=3]="Transfer",t[t.Approve=4]="Approve",t[t.Revoke=5]="Revoke",t[t.SetAuthority=6]="SetAuthority",t[t.MintTo=7]="MintTo",t[t.Burn=8]="Burn",t[t.CloseAccount=9]="CloseAccount",t[t.FreezeAccount=10]="FreezeAccount",t[t.ThawAccount=11]="ThawAccount",t[t.TransferChecked=12]="TransferChecked",t[t.ApproveChecked=13]="ApproveChecked",t[t.MintToChecked=14]="MintToChecked",t[t.BurnChecked=15]="BurnChecked",t[t.InitializeAccount2=16]="InitializeAccount2",t[t.SyncNative=17]="SyncNative",t[t.InitializeAccount3=18]="InitializeAccount3",t[t.InitializeMultisig2=19]="InitializeMultisig2",t[t.InitializeMint2=20]="InitializeMint2",t[t.GetAccountDataSize=21]="GetAccountDataSize",t[t.InitializeImmutableOwner=22]="InitializeImmutableOwner",t[t.AmountToUiAmount=23]="AmountToUiAmount",t[t.UiAmountToAmount=24]="UiAmountToAmount",t[t.InitializeMintCloseAuthority=25]="InitializeMintCloseAuthority",t[t.TransferFeeExtension=26]="TransferFeeExtension",t[t.ConfidentialTransferExtension=27]="ConfidentialTransferExtension",t[t.DefaultAccountStateExtension=28]="DefaultAccountStateExtension",t[t.Reallocate=29]="Reallocate",t[t.MemoTransferExtension=30]="MemoTransferExtension",t[t.CreateNativeMint=31]="CreateNativeMint",t[t.InitializeNonTransferableMint=32]="InitializeNonTransferableMint",t[t.InterestBearingMintExtension=33]="InterestBearingMintExtension",t[t.CpiGuardExtension=34]="CpiGuardExtension",t[t.InitializePermanentDelegate=35]="InitializePermanentDelegate",t[t.TransferHookExtension=36]="TransferHookExtension",t[t.MetadataPointerExtension=39]="MetadataPointerExtension",t[t.GroupPointerExtension=40]="GroupPointerExtension",t[t.GroupMemberPointerExtension=41]="GroupMemberPointerExtension",t[t.ScaledUiAmountExtension=43]="ScaledUiAmountExtension",t[t.PausableExtension=44]="PausableExtension",t[t.UnwrapLamports=45]="UnwrapLamports",t[t.PermissionedBurnExtension=46]="PermissionedBurnExtension"})(Y0||(Y0={}));var Fs=yr(ys(),1);var yf=yr(Ps(),1);var jE=yr(Ps(),1);function KE(t,e,r){if(r.length){t.push({pubkey:e,isSigner:!1,isWritable:!1});for(let i of r)t.push({pubkey:i instanceof jE.PublicKey?i:i.publicKey,isSigner:!0,isWritable:!1})}else t.push({pubkey:e,isSigner:!0,isWritable:!1});return t}var fd=yr(ys(),1);var YE=yr(Ps(),1);var WE=(0,fd.struct)([(0,fd.u8)("instruction"),q0("amount"),(0,fd.u8)("decimals")]);function XE(t,e,r,i,n,a,s=[],o=ud){let d=KE([{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:e,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!1,isWritable:!0}],i,s),h=Buffer.alloc(WE.span);return WE.encode({instruction:Y0.TransferChecked,amount:BigInt(n),decimals:a},h),new YE.TransactionInstruction({keys:d,programId:o,data:h})}var LC=(0,Fs.struct)([(0,Fs.u32)("mintAuthorityOption"),_f("mintAuthority"),q0("supply"),(0,Fs.u8)("decimals"),HE("isInitialized"),(0,Fs.u32)("freezeAuthorityOption"),_f("freezeAuthority")]),wV=LC.span;function Ef(t,e,r=!1,i=ud,n=IE){if(!r&&!yf.PublicKey.isOnCurve(e.toBuffer()))throw new W0;let[a]=yf.PublicKey.findProgramAddressSync([e.toBuffer(),i.toBuffer(),t.toBuffer()],n);return a}var Ya=yr(Ps(),1);var kC=6;function ZE(t,e,r){let i=DC(t.publicKey,e,r);return i.partialSign(t),BC(i)}function DC(t,e,r){let i=e.extra.feePayer;if(!i)throw new Error("Solana payment requirements need extra.feePayer");let n=new Ya.PublicKey(e.asset),a=Ef(n,t,!0),s=Ef(n,new Ya.PublicKey(e.payTo),!0),o=new Ya.Transaction({feePayer:new Ya.PublicKey(i),recentBlockhash:r});return o.add(Ya.ComputeBudgetProgram.setComputeUnitLimit({units:4e4})),o.add(XE(a,n,s,t,BigInt(e.amount),kC)),o}var BC=t=>t.serialize({requireAllSignatures:!1,verifySignatures:!1}).toString("base64");var JE="payment-required",QE="payment-signature";var X0=t=>t.startsWith("solana:"),Z0=t=>t.startsWith("eip155:");var ev=t=>Buffer.from(JSON.stringify(t),"utf8").toString("base64");function tv(t){return JSON.parse(Buffer.from(t,"base64").toString("utf8"))}function PC(t){let e=t.match(/^eip155:(\d+)$/);if(!e)throw new Error(`Unsupported network ${t}; only eip155:<chainId> is supported`);return BigInt(e[1])}var rv={TransferWithAuthorization:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"validAfter",type:"uint256"},{name:"validBefore",type:"uint256"},{name:"nonce",type:"bytes32"}]};function iv(t){if(!t.extra.name||!t.extra.version)throw new Error("EVM payment requirements need extra.name and extra.version");return{name:t.extra.name,version:t.extra.version,chainId:PC(t.network),verifyingContract:t.asset}}async function av(t,e,r={}){let i=r.pick?r.pick(e.accepts):e.accepts.find(o=>Z0(o.network));if(!i)throw new Error("No EVM payment option offered");if(i.scheme!=="exact")throw new Error(`Unsupported scheme ${i.scheme}`);let n=Math.floor((r.now??Date.now())/1e3),a={from:await t.getAddress(),to:i.payTo,value:i.amount,validAfter:String(n-60),validBefore:String(n+i.maxTimeoutSeconds),nonce:jd(wa(32))},s=await t.signTypedData(iv(i),rv,a);return{x402Version:2,resource:e.resource,accepted:i,payload:{signature:s,authorization:a}}}async function sv(t,e,r){let i=r.pick?r.pick(e.accepts):e.accepts.find(a=>X0(a.network));if(!i)throw new Error("No Solana payment option offered");if(i.scheme!=="exact")throw new Error(`Unsupported scheme ${i.scheme}`);let n=ZE(t,i,await r.recentBlockhash());return{x402Version:2,resource:e.resource,accepted:i,payload:{transaction:n}}}var Bn=class extends Error{constructor(r,i){super(i?.error?.message??`CLI API error ${r}`);this.status=r;this.body=i}status;body;get code(){return this.body?.error?.code}},J0=class{constructor(e){this.opts=e;this.token=e.token,this.f=e.fetch??fetch}opts;token;f;get baseUrl(){return this.opts.baseUrl.replace(/\/$/,"")}get canSignIn(){return!!(this.opts.signer||this.opts.solanaSigner)}async login(){let e,r;if(this.opts.signer){let s=this.opts.signer;e=await s.getAddress(),r=o=>s.signMessage(o)}else if(this.opts.solanaSigner){let s=this.opts.solanaSigner;e=s.publicKey.toBase58(),r=async o=>Xl.encode(ov.default.sign.detached(new TextEncoder().encode(o),s.secretKey))}else throw new Error("Signing in needs a wallet: set CLI_AGENT_PRIVATE_KEY (EVM) or CLI_AGENT_SOLANA_KEY");let i=await this.raw("POST","/v1/auth/challenge",{address:e},!1),n=await r(i.message),a=await this.raw("POST","/v1/auth/verify",{message:i.message,signature:n},!1);return this.token=a.token,{wallet:a.wallet,token:a.token}}async signMessage(e){let r=this.opts.signer;return r?{address:await r.getAddress(),signature:await r.signMessage(e)}:null}async walletAddress(){return this.opts.signer?this.opts.signer.getAddress():null}async request(e,r,i,n){!this.token&&this.canSignIn&&await this.login();try{return await this.raw(e,r,i,!0,n)}catch(a){if(a instanceof Bn&&a.status===401&&this.canSignIn)return await this.login(),this.raw(e,r,i,!0,n);throw a}}chooseNetwork(e,r){let i=o=>e.accepts.some(d=>o==="base"?Z0(d.network):X0(d.network)),n=o=>i(o)&&(o==="base"?!!this.opts.signer:!!this.opts.solanaSigner);if(r){if(!i(r))throw new Error(`CLI did not offer ${r} for this payment`);if(!n(r))throw new Error(`No ${r} wallet configured`);return r}let s=(this.opts.preferNetwork==="solana"?["solana","base"]:["base","solana"]).find(n);if(!s)throw new Error("No configured wallet matches the networks CLI offered");return s}async pay(e,r){let i=this.chooseNetwork(e,r),n;if(i==="base")n=await av(this.opts.signer,e,{now:this.opts.now?.()});else{if(!this.opts.recentBlockhash)throw new Error("Paying on Solana needs a recentBlockhash source (an RPC URL)");n=await sv(this.opts.solanaSigner,e,{recentBlockhash:this.opts.recentBlockhash})}let a=e.resource.url.startsWith(this.baseUrl)?e.resource.url.slice(this.baseUrl.length):e.resource.url;return this.raw("POST",a,void 0,!1,{[QE]:ev(n)})}async topup(e,r,i){try{throw await this.raw("POST",`/v1/projects/${e}/topup?amount=${r}`,void 0,!1),new Error("Expected a 402 payment challenge")}catch(n){if(!(n instanceof Bn)||n.status!==402||n.code!=="PAYMENT_REQUIRED")throw n;return this.pay(n.body,i)}}async raw(e,r,i,n,a={}){let s={...a};i!==void 0&&(s["content-type"]="application/json"),n&&this.token&&(s.authorization=`Bearer ${this.token}`);let o=await this.f(`${this.baseUrl}${r}`,{method:e,headers:s,body:i===void 0?void 0:JSON.stringify(i)}),d=await o.text(),h;if(d)try{h=JSON.parse(d)}catch{h=d}if(!o.ok){let w=o.headers.get(JE);throw o.status===402&&w&&h&&typeof h=="object"&&!h.accepts&&Object.assign(h,tv(w)),new Bn(o.status,h)}return h}};import{existsSync as dv}from"node:fs";import{chmod as UC,mkdir as MC,readFile as pv,rm as FC,writeFile as lv}from"node:fs/promises";import{homedir as VC}from"node:os";import{dirname as $C,join as Go,parse as zC}from"node:path";var HC="https://api.clicloud.app",cv=".cli.json";function uv(t){return t.CLI_CONFIG_DIR??Go(t.XDG_CONFIG_HOME??Go(VC(),".config"),"cli")}async function fv(t){let e=Go(uv(t),"config.json"),r={api:HC};if(dv(e))try{r={...r,...JSON.parse(await pv(e,"utf8"))}}catch{}return t.CLI_API_URL&&(r.api=t.CLI_API_URL),t.CLI_TOKEN&&(r.token=t.CLI_TOKEN),r.api=r.api.replace(/\/$/,""),r}async function vf(t,e){let r=uv(t);await MC(r,{recursive:!0,mode:448});let i=Go(r,"config.json");await lv(i,`${JSON.stringify(e,null,2)}
|
|
28
|
+
`,{mode:384}),await UC(i,384)}async function hv(t){let e=t,r=zC(e).root;for(;;){let i=Go(e,cv);if(dv(i))try{return{file:i,link:JSON.parse(await pv(i,"utf8"))}}catch{return null}if(e===r)return null;e=$C(e)}}async function Q0(t,e){let r=Go(t,cv);return await lv(r,`${JSON.stringify(e,null,2)}
|
|
29
|
+
`),r}async function mv(t){await FC(t,{force:!0})}var Ch=yr(xv(),1);import{execFile as xD}from"node:child_process";import{existsSync as jl}from"node:fs";import{readdir as ID,readFile as jw,stat as CD}from"node:fs/promises";import{join as os,relative as LD,sep as kD}from"node:path";import{promisify as DD}from"node:util";import bL from"events";import Ai from"fs";import{EventEmitter as wh}from"node:events";import cw from"node:stream";import{StringDecoder as AL}from"node:string_decoder";import hw from"node:path";import t1 from"node:fs";import{dirname as ML,parse as FL}from"path";import{EventEmitter as KL}from"events";import rh from"assert";import{Buffer as Zs}from"buffer";import*as Dv from"zlib";import WL from"zlib";import{posix as Wo}from"node:path";import{basename as Sk}from"node:path";import Dl from"fs";import Vn from"fs";import zv from"path";import{win32 as Bk}from"node:path";import Yv from"path";import Iw from"node:fs";import Jk from"node:assert";import{randomBytes as Cw}from"node:crypto";import Ot from"node:fs";import Pr from"node:path";import Lw from"fs";import Gl from"node:fs";import kd from"node:path";import Di from"node:fs";import aD from"node:fs/promises";import Ul from"node:path";import{join as Hw}from"node:path";import ki from"node:fs";import qw from"node:path";var SL=Object.defineProperty,RL=(t,e)=>{for(var r in e)SL(t,r,{get:e[r],enumerable:!0})},Iv=typeof process=="object"&&process?process:{stdout:null,stderr:null},OL=t=>!!t&&typeof t=="object"&&(t instanceof eo||t instanceof cw||NL(t)||TL(t)),NL=t=>!!t&&typeof t=="object"&&t instanceof wh&&typeof t.pipe=="function"&&t.pipe!==cw.Writable.prototype.pipe,TL=t=>!!t&&typeof t=="object"&&t instanceof wh&&typeof t.write=="function"&&typeof t.end=="function",ha=Symbol("EOF"),ma=Symbol("maybeEmitEnd"),Xa=Symbol("emittedEnd"),ol=Symbol("emittingEnd"),md=Symbol("emittedError"),dl=Symbol("closed"),Cv=Symbol("read"),pl=Symbol("flush"),Lv=Symbol("flushChunk"),pn=Symbol("encoding"),Ko=Symbol("decoder"),Hr=Symbol("flowing"),_d=Symbol("paused"),Jo=Symbol("resume"),Gr=Symbol("buffer"),yi=Symbol("pipes"),qr=Symbol("bufferLength"),Nf=Symbol("bufferPush"),ll=Symbol("bufferShift"),li=Symbol("objectMode"),Nr=Symbol("destroyed"),Tf=Symbol("error"),xf=Symbol("emitData"),kv=Symbol("emitEnd"),If=Symbol("emitEnd2"),Pn=Symbol("async"),Cf=Symbol("abort"),cl=Symbol("aborted"),gd=Symbol("signal"),zs=Symbol("dataListeners"),Li=Symbol("discarded"),yd=t=>Promise.resolve().then(t),xL=t=>t(),IL=t=>t==="end"||t==="finish"||t==="prefinish",CL=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,LL=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),uw=class{src;dest;opts;ondrain;constructor(t,e,r){this.src=t,this.dest=e,this.opts=r,this.ondrain=()=>t[Jo](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},kL=class extends uw{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,e,r){super(t,e,r),this.proxyErrors=i=>this.dest.emit("error",i),t.on("error",this.proxyErrors)}},DL=t=>!!t.objectMode,BL=t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer",eo=class extends wh{[Hr]=!1;[_d]=!1;[yi]=[];[Gr]=[];[li];[pn];[Pn];[Ko];[ha]=!1;[Xa]=!1;[ol]=!1;[dl]=!1;[md]=null;[qr]=0;[Nr]=!1;[gd];[cl]=!1;[zs]=0;[Li]=!1;writable=!0;readable=!0;constructor(...t){let e=t[0]||{};if(super(),e.objectMode&&typeof e.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");DL(e)?(this[li]=!0,this[pn]=null):BL(e)?(this[pn]=e.encoding,this[li]=!1):(this[li]=!1,this[pn]=null),this[Pn]=!!e.async,this[Ko]=this[pn]?new AL(this[pn]):null,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[Gr]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[yi]});let{signal:r}=e;r&&(this[gd]=r,r.aborted?this[Cf]():r.addEventListener("abort",()=>this[Cf]()))}get bufferLength(){return this[qr]}get encoding(){return this[pn]}set encoding(t){throw new Error("Encoding must be set at instantiation time")}setEncoding(t){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[li]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Pn]}set async(t){this[Pn]=this[Pn]||!!t}[Cf](){this[cl]=!0,this.emit("abort",this[gd]?.reason),this.destroy(this[gd]?.reason)}get aborted(){return this[cl]}set aborted(t){}write(t,e,r){if(this[cl])return!1;if(this[ha])throw new Error("write after end");if(this[Nr])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof e=="function"&&(r=e,e="utf8"),e||(e="utf8");let i=this[Pn]?yd:xL;if(!this[li]&&!Buffer.isBuffer(t)){if(LL(t))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if(CL(t))t=Buffer.from(t);else if(typeof t!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[li]?(this[Hr]&&this[qr]!==0&&this[pl](!0),this[Hr]?this.emit("data",t):this[Nf](t),this[qr]!==0&&this.emit("readable"),r&&i(r),this[Hr]):t.length?(typeof t=="string"&&!(e===this[pn]&&!this[Ko]?.lastNeed)&&(t=Buffer.from(t,e)),Buffer.isBuffer(t)&&this[pn]&&(t=this[Ko].write(t)),this[Hr]&&this[qr]!==0&&this[pl](!0),this[Hr]?this.emit("data",t):this[Nf](t),this[qr]!==0&&this.emit("readable"),r&&i(r),this[Hr]):(this[qr]!==0&&this.emit("readable"),r&&i(r),this[Hr])}read(t){if(this[Nr])return null;if(this[Li]=!1,this[qr]===0||t===0||t&&t>this[qr])return this[ma](),null;this[li]&&(t=null),this[Gr].length>1&&!this[li]&&(this[Gr]=[this[pn]?this[Gr].join(""):Buffer.concat(this[Gr],this[qr])]);let e=this[Cv](t||null,this[Gr][0]);return this[ma](),e}[Cv](t,e){if(this[li])this[ll]();else{let r=e;t===r.length||t===null?this[ll]():typeof r=="string"?(this[Gr][0]=r.slice(t),e=r.slice(0,t),this[qr]-=t):(this[Gr][0]=r.subarray(t),e=r.subarray(0,t),this[qr]-=t)}return this.emit("data",e),!this[Gr].length&&!this[ha]&&this.emit("drain"),e}end(t,e,r){return typeof t=="function"&&(r=t,t=void 0),typeof e=="function"&&(r=e,e="utf8"),t!==void 0&&this.write(t,e),r&&this.once("end",r),this[ha]=!0,this.writable=!1,(this[Hr]||!this[_d])&&this[ma](),this}[Jo](){this[Nr]||(!this[zs]&&!this[yi].length&&(this[Li]=!0),this[_d]=!1,this[Hr]=!0,this.emit("resume"),this[Gr].length?this[pl]():this[ha]?this[ma]():this.emit("drain"))}resume(){return this[Jo]()}pause(){this[Hr]=!1,this[_d]=!0,this[Li]=!1}get destroyed(){return this[Nr]}get flowing(){return this[Hr]}get paused(){return this[_d]}[Nf](t){this[li]?this[qr]+=1:this[qr]+=t.length,this[Gr].push(t)}[ll](){return this[li]?this[qr]-=1:this[qr]-=this[Gr][0].length,this[Gr].shift()}[pl](t=!1){do;while(this[Lv](this[ll]())&&this[Gr].length);!t&&!this[Gr].length&&!this[ha]&&this.emit("drain")}[Lv](t){return this.emit("data",t),this[Hr]}pipe(t,e){if(this[Nr])return t;this[Li]=!1;let r=this[Xa];return e=e||{},t===Iv.stdout||t===Iv.stderr?e.end=!1:e.end=e.end!==!1,e.proxyErrors=!!e.proxyErrors,r?e.end&&t.end():(this[yi].push(e.proxyErrors?new kL(this,t,e):new uw(this,t,e)),this[Pn]?yd(()=>this[Jo]()):this[Jo]()),t}unpipe(t){let e=this[yi].find(r=>r.dest===t);e&&(this[yi].length===1?(this[Hr]&&this[zs]===0&&(this[Hr]=!1),this[yi]=[]):this[yi].splice(this[yi].indexOf(e),1),e.unpipe())}addListener(t,e){return this.on(t,e)}on(t,e){let r=super.on(t,e);if(t==="data")this[Li]=!1,this[zs]++,!this[yi].length&&!this[Hr]&&this[Jo]();else if(t==="readable"&&this[qr]!==0)super.emit("readable");else if(IL(t)&&this[Xa])super.emit(t),this.removeAllListeners(t);else if(t==="error"&&this[md]){let i=e;this[Pn]?yd(()=>i.call(this,this[md])):i.call(this,this[md])}return r}removeListener(t,e){return this.off(t,e)}off(t,e){let r=super.off(t,e);return t==="data"&&(this[zs]=this.listeners("data").length,this[zs]===0&&!this[Li]&&!this[yi].length&&(this[Hr]=!1)),r}removeAllListeners(t){let e=super.removeAllListeners(t);return(t==="data"||t===void 0)&&(this[zs]=0,!this[Li]&&!this[yi].length&&(this[Hr]=!1)),e}get emittedEnd(){return this[Xa]}[ma](){!this[ol]&&!this[Xa]&&!this[Nr]&&this[Gr].length===0&&this[ha]&&(this[ol]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[dl]&&this.emit("close"),this[ol]=!1)}emit(t,...e){let r=e[0];if(t!=="error"&&t!=="close"&&t!==Nr&&this[Nr])return!1;if(t==="data")return!this[li]&&!r?!1:this[Pn]?(yd(()=>this[xf](r)),!0):this[xf](r);if(t==="end")return this[kv]();if(t==="close"){if(this[dl]=!0,!this[Xa]&&!this[Nr])return!1;let n=super.emit("close");return this.removeAllListeners("close"),n}else if(t==="error"){this[md]=r,super.emit(Tf,r);let n=!this[gd]||this.listeners("error").length?super.emit("error",r):!1;return this[ma](),n}else if(t==="resume"){let n=super.emit("resume");return this[ma](),n}else if(t==="finish"||t==="prefinish"){let n=super.emit(t);return this.removeAllListeners(t),n}let i=super.emit(t,...e);return this[ma](),i}[xf](t){for(let r of this[yi])r.dest.write(t)===!1&&this.pause();let e=this[Li]?!1:super.emit("data",t);return this[ma](),e}[kv](){return this[Xa]?!1:(this[Xa]=!0,this.readable=!1,this[Pn]?(yd(()=>this[If]()),!0):this[If]())}[If](){if(this[Ko]){let e=this[Ko].end();if(e){for(let r of this[yi])r.dest.write(e);this[Li]||super.emit("data",e)}}for(let e of this[yi])e.end();let t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){let t=Object.assign([],{dataLength:0});this[li]||(t.dataLength=0);let e=this.promise();return this.on("data",r=>{t.push(r),this[li]||(t.dataLength+=r.length)}),await e,t}async concat(){if(this[li])throw new Error("cannot concat in objectMode");let t=await this.collect();return this[pn]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise((t,e)=>{this.on(Nr,()=>e(new Error("stream destroyed"))),this.on("error",r=>e(r)),this.on("end",()=>t())})}[Symbol.asyncIterator](){this[Li]=!1;let t=!1,e=async()=>(this.pause(),t=!0,{value:void 0,done:!0});return{next:()=>{if(t)return e();let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[ha])return e();let i,n,a=h=>{this.off("data",s),this.off("end",o),this.off(Nr,d),e(),n(h)},s=h=>{this.off("error",a),this.off("end",o),this.off(Nr,d),this.pause(),i({value:h,done:!!this[ha]})},o=()=>{this.off("error",a),this.off("data",s),this.off(Nr,d),e(),i({done:!0,value:void 0})},d=()=>a(new Error("stream destroyed"));return new Promise((h,w)=>{n=w,i=h,this.once(Nr,d),this.once("error",a),this.once("end",o),this.once("data",s)})},throw:e,return:e,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[Li]=!1;let t=!1,e=()=>(this.pause(),this.off(Tf,e),this.off(Nr,e),this.off("end",e),t=!0,{done:!0,value:void 0}),r=()=>{if(t)return e();let i=this.read();return i===null?e():{done:!1,value:i}};return this.once("end",e),this.once(Tf,e),this.once(Nr,e),{next:r,throw:e,return:e,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(t){if(this[Nr])return t?this.emit("error",t):this.emit(Nr),this;this[Nr]=!0,this[Li]=!0,this[Gr].length=0,this[qr]=0;let e=this;return typeof e.close=="function"&&!this[dl]&&e.close(),t?this.emit("error",t):this.emit(Nr),this}static get isStream(){return OL}},PL=Ai.writev,as=Symbol("_autoClose"),fn=Symbol("_close"),Ed=Symbol("_ended"),Pt=Symbol("_fd"),Lf=Symbol("_finished"),Ea=Symbol("_flags"),kf=Symbol("_flush"),eh=Symbol("_handleChunk"),th=Symbol("_makeBuf"),Cd=Symbol("_mode"),ul=Symbol("_needDrain"),i1=Symbol("_onerror"),n1=Symbol("_onopen"),Df=Symbol("_onread"),Qo=Symbol("_onwrite"),ss=Symbol("_open"),un=Symbol("_path"),es=Symbol("_pos"),Un=Symbol("_queue"),e1=Symbol("_read"),Bf=Symbol("_readSize"),ya=Symbol("_reading"),vd=Symbol("_remain"),Pf=Symbol("_size"),Sl=Symbol("_write"),Hs=Symbol("_writing"),Rl=Symbol("_defaultFlag"),Xs=Symbol("_errored"),Sh=class extends eo{[Xs]=!1;[Pt];[un];[Bf];[ya]=!1;[Pf];[vd];[as];constructor(t,e){if(e=e||{},super(e),this.readable=!0,this.writable=!1,typeof t!="string")throw new TypeError("path must be a string");this[Xs]=!1,this[Pt]=typeof e.fd=="number"?e.fd:void 0,this[un]=t,this[Bf]=e.readSize||16*1024*1024,this[ya]=!1,this[Pf]=typeof e.size=="number"?e.size:1/0,this[vd]=this[Pf],this[as]=typeof e.autoClose=="boolean"?e.autoClose:!0,typeof this[Pt]=="number"?this[e1]():this[ss]()}get fd(){return this[Pt]}get path(){return this[un]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[ss](){Ai.open(this[un],"r",(t,e)=>this[n1](t,e))}[n1](t,e){t?this[i1](t):(this[Pt]=e,this.emit("open",e),this[e1]())}[th](){return Buffer.allocUnsafe(Math.min(this[Bf],this[vd]))}[e1](){if(!this[ya]){this[ya]=!0;let t=this[th]();if(t.length===0)return process.nextTick(()=>this[Df](null,0,t));Ai.read(this[Pt],t,0,t.length,null,(e,r,i)=>this[Df](e,r,i))}}[Df](t,e,r){this[ya]=!1,t?this[i1](t):this[eh](e,r)&&this[e1]()}[fn](){if(this[as]&&typeof this[Pt]=="number"){let t=this[Pt];this[Pt]=void 0,Ai.close(t,e=>e?this.emit("error",e):this.emit("close"))}}[i1](t){this[ya]=!0,this[fn](),this.emit("error",t)}[eh](t,e){let r=!1;return this[vd]-=t,t>0&&(r=super.write(t<e.length?e.subarray(0,t):e)),(t===0||this[vd]<=0)&&(r=!1,this[fn](),super.end()),r}emit(t,...e){switch(t){case"prefinish":case"finish":return!1;case"drain":return typeof this[Pt]=="number"&&this[e1](),!1;case"error":return this[Xs]?!1:(this[Xs]=!0,super.emit(t,...e));default:return super.emit(t,...e)}}},UL=class extends Sh{[ss](){let t=!0;try{this[n1](null,Ai.openSync(this[un],"r")),t=!1}finally{t&&this[fn]()}}[e1](){let t=!0;try{if(!this[ya]){this[ya]=!0;do{let e=this[th](),r=e.length===0?0:Ai.readSync(this[Pt],e,0,e.length,null);if(!this[eh](r,e))break}while(!0);this[ya]=!1}t=!1}finally{t&&this[fn]()}}[fn](){if(this[as]&&typeof this[Pt]=="number"){let t=this[Pt];this[Pt]=void 0,Ai.closeSync(t),this.emit("close")}}},Ml=class extends bL{readable=!1;writable=!0;[Xs]=!1;[Hs]=!1;[Ed]=!1;[Un]=[];[ul]=!1;[un];[Cd];[as];[Pt];[Rl];[Ea];[Lf]=!1;[es];constructor(t,e){e=e||{},super(e),this[un]=t,this[Pt]=typeof e.fd=="number"?e.fd:void 0,this[Cd]=e.mode===void 0?438:e.mode,this[es]=typeof e.start=="number"?e.start:void 0,this[as]=typeof e.autoClose=="boolean"?e.autoClose:!0;let r=this[es]!==void 0?"r+":"w";this[Rl]=e.flags===void 0,this[Ea]=e.flags===void 0?r:e.flags,this[Pt]===void 0&&this[ss]()}emit(t,...e){if(t==="error"){if(this[Xs])return!1;this[Xs]=!0}return super.emit(t,...e)}get fd(){return this[Pt]}get path(){return this[un]}[i1](t){this[fn](),this[Hs]=!0,this.emit("error",t)}[ss](){Ai.open(this[un],this[Ea],this[Cd],(t,e)=>this[n1](t,e))}[n1](t,e){this[Rl]&&this[Ea]==="r+"&&t&&t.code==="ENOENT"?(this[Ea]="w",this[ss]()):t?this[i1](t):(this[Pt]=e,this.emit("open",e),this[Hs]||this[kf]())}end(t,e){return t&&this.write(t,e),this[Ed]=!0,!this[Hs]&&!this[Un].length&&typeof this[Pt]=="number"&&this[Qo](null,0),this}write(t,e){return typeof t=="string"&&(t=Buffer.from(t,e)),this[Ed]?(this.emit("error",new Error("write() after end()")),!1):this[Pt]===void 0||this[Hs]||this[Un].length?(this[Un].push(t),this[ul]=!0,!1):(this[Hs]=!0,this[Sl](t),!0)}[Sl](t){Ai.write(this[Pt],t,0,t.length,this[es],(e,r)=>this[Qo](e,r))}[Qo](t,e){t?this[i1](t):(this[es]!==void 0&&typeof e=="number"&&(this[es]+=e),this[Un].length?this[kf]():(this[Hs]=!1,this[Ed]&&!this[Lf]?(this[Lf]=!0,this[fn](),this.emit("finish")):this[ul]&&(this[ul]=!1,this.emit("drain"))))}[kf](){if(this[Un].length===0)this[Ed]&&this[Qo](null,0);else if(this[Un].length===1)this[Sl](this[Un].pop());else{let t=this[Un];this[Un]=[],PL(this[Pt],t,this[es],(e,r)=>this[Qo](e,r))}}[fn](){if(this[as]&&typeof this[Pt]=="number"){let t=this[Pt];this[Pt]=void 0,Ai.close(t,e=>e?this.emit("error",e):this.emit("close"))}}},fw=class extends Ml{[ss](){let t;if(this[Rl]&&this[Ea]==="r+")try{t=Ai.openSync(this[un],this[Ea],this[Cd])}catch(e){if(e?.code==="ENOENT")return this[Ea]="w",this[ss]();throw e}else t=Ai.openSync(this[un],this[Ea],this[Cd]);this[n1](null,t)}[fn](){if(this[as]&&typeof this[Pt]=="number"){let t=this[Pt];this[Pt]=void 0,Ai.closeSync(t),this.emit("close")}}[Sl](t){let e=!0;try{this[Qo](null,Ai.writeSync(this[Pt],t,0,t.length,this[es])),e=!1}finally{if(e)try{this[fn]()}catch{}}}},VL=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"],["onentry","onReadEntry"]]),$L=t=>!!t.sync&&!!t.file,zL=t=>!t.sync&&!!t.file,HL=t=>!!t.sync&&!t.file,GL=t=>!t.sync&&!t.file,qL=t=>!!t.file,jL=t=>VL.get(t)||t,Rh=(t={})=>{if(!t)return{};let e={};for(let[r,i]of Object.entries(t)){let n=jL(r);e[n]=i}return e.chmod===void 0&&e.noChmod===!1&&(e.chmod=!0),delete e.noChmod,e},Vd=(t,e,r,i,n)=>Object.assign((a=[],s,o)=>{Array.isArray(a)&&(s=a,a={}),typeof s=="function"&&(o=s,s=void 0),s=s?Array.from(s):[];let d=Rh(a);if(n?.(d,s),$L(d)){if(typeof o=="function")throw new TypeError("callback not supported for sync tar functions");return t(d,s)}else if(zL(d)){let h=e(d,s);return o?h.then(()=>o(),o):h}else if(HL(d)){if(typeof o=="function")throw new TypeError("callback not supported for sync tar functions");return r(d,s)}else if(GL(d)){if(typeof o=="function")throw new TypeError("callback only supported with file option");return i(d,s)}throw new Error("impossible options??")},{syncFile:t,asyncFile:e,syncNoFile:r,asyncNoFile:i,validate:n}),YL=WL.constants||{ZLIB_VERNUM:4736},zn=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},YL)),XL=Zs.concat,Bv=Object.getOwnPropertyDescriptor(Zs,"concat"),ZL=t=>t,Uf=Bv?.writable===!0||Bv?.set!==void 0?t=>{Zs.concat=t?ZL:XL}:t=>{},Js=Symbol("_superWrite"),fl=class extends Error{code;errno;constructor(t,e){super("zlib: "+t.message,{cause:t}),this.code=t.code,this.errno=t.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+t.message,Error.captureStackTrace(this,e??this.constructor)}get name(){return"ZlibError"}},Mf=Symbol("flushFlag"),bh=class extends eo{#e=!1;#r=!1;#i;#a;#n;#t;#s;get sawError(){return this.#e}get handle(){return this.#t}get flushFlag(){return this.#i}constructor(t,e){if(!t||typeof t!="object")throw new TypeError("invalid options for ZlibBase constructor");if(super(t),this.#i=t.flush??0,this.#a=t.finishFlush??0,this.#n=t.fullFlushFlag??0,typeof Dv[e]!="function")throw new TypeError("Compression method not supported: "+e);try{this.#t=new Dv[e](t)}catch(r){throw new fl(r,this.constructor)}this.#s=r=>{this.#e||(this.#e=!0,this.close(),this.emit("error",r))},this.#t?.on("error",r=>this.#s(new fl(r))),this.once("end",()=>this.close)}close(){this.#t&&(this.#t.close(),this.#t=void 0,this.emit("close"))}reset(){if(!this.#e)return rh(this.#t,"zlib binding closed"),this.#t.reset?.()}flush(t){this.ended||(typeof t!="number"&&(t=this.#n),this.write(Object.assign(Zs.alloc(0),{[Mf]:t})))}end(t,e,r){return typeof t=="function"&&(r=t,e=void 0,t=void 0),typeof e=="function"&&(r=e,e=void 0),t&&(e?this.write(t,e):this.write(t)),this.flush(this.#a),this.#r=!0,super.end(r)}get ended(){return this.#r}[Js](t){return super.write(t)}write(t,e,r){if(typeof e=="function"&&(r=e,e="utf8"),typeof t=="string"&&(t=Zs.from(t,e)),this.#e)return;rh(this.#t,"zlib binding closed");let i=this.#t._handle,n=i.close;i.close=()=>{};let a=this.#t.close;this.#t.close=()=>{},Uf(!0);let s;try{let d=typeof t[Mf]=="number"?t[Mf]:this.#i;s=this.#t._processChunk(t,d),Uf(!1)}catch(d){Uf(!1),this.#s(new fl(d,this.write))}finally{this.#t&&(this.#t._handle=i,i.close=n,this.#t.close=a,this.#t.removeAllListeners("error"))}this.#t&&this.#t.on("error",d=>this.#s(new fl(d,this.write)));let o;if(s)if(Array.isArray(s)&&s.length>0){let d=s[0];o=this[Js](Zs.from(d));for(let h=1;h<s.length;h++)o=this[Js](s[h])}else o=this[Js](Zs.from(s));return r&&r(),o}},mw=class extends bh{#e;#r;constructor(t,e){t=t||{},t.flush=t.flush||zn.Z_NO_FLUSH,t.finishFlush=t.finishFlush||zn.Z_FINISH,t.fullFlushFlag=zn.Z_FULL_FLUSH,super(t,e),this.#e=t.level,this.#r=t.strategy}params(t,e){if(!this.sawError){if(!this.handle)throw new Error("cannot switch params when binding is closed");if(!this.handle.params)throw new Error("not supported in this implementation");if(this.#e!==t||this.#r!==e){this.flush(zn.Z_SYNC_FLUSH),rh(this.handle,"zlib binding closed");let r=this.handle.flush;this.handle.flush=(i,n)=>{typeof i=="function"&&(n=i,i=this.flushFlag),this.flush(i),n?.()};try{this.handle.params(t,e)}finally{this.handle.flush=r}this.handle&&(this.#e=t,this.#r=e)}}}},JL=class extends mw{#e;constructor(t){super(t,"Gzip"),this.#e=t&&!!t.portable}[Js](t){return this.#e?(this.#e=!1,t[9]=255,super[Js](t)):super[Js](t)}},QL=class extends mw{constructor(t){super(t,"Unzip")}},_w=class extends bh{constructor(t,e){t=t||{},t.flush=t.flush||zn.BROTLI_OPERATION_PROCESS,t.finishFlush=t.finishFlush||zn.BROTLI_OPERATION_FINISH,t.fullFlushFlag=zn.BROTLI_OPERATION_FLUSH,super(t,e)}},ek=class extends _w{constructor(t){super(t,"BrotliCompress")}},tk=class extends _w{constructor(t){super(t,"BrotliDecompress")}},gw=class extends bh{constructor(t,e){t=t||{},t.flush=t.flush||zn.ZSTD_e_continue,t.finishFlush=t.finishFlush||zn.ZSTD_e_end,t.fullFlushFlag=zn.ZSTD_e_flush,super(t,e)}},rk=class extends gw{constructor(t){super(t,"ZstdCompress")}},ik=class extends gw{constructor(t){super(t,"ZstdDecompress")}},nk=(t,e)=>{if(Number.isSafeInteger(t))t<0?sk(t,e):ak(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},ak=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},sk=(t,e)=>{e[0]=255;var r=!1;t=t*-1;for(var i=e.length;i>1;i--){var n=t&255;t=Math.floor(t/256),r?e[i-1]=yw(n):n===0?e[i-1]=0:(r=!0,e[i-1]=Ew(n))}},ok=t=>{let e=t[0],r=e===128?pk(t.subarray(1,t.length)):e===255?dk(t):null;if(r===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(r))throw Error("parsed number outside of javascript safe integer range");return r},dk=t=>{for(var e=t.length,r=0,i=!1,n=e-1;n>-1;n--){var a=Number(t[n]),s;i?s=yw(a):a===0?s=a:(i=!0,s=Ew(a)),s!==0&&(r-=s*Math.pow(256,e-n-1))}return r},pk=t=>{for(var e=t.length,r=0,i=e-1;i>-1;i--){var n=Number(t[i]);n!==0&&(r+=n*Math.pow(256,e-i-1))}return r},yw=t=>(255^t)&255,Ew=t=>(255^t)+1&255,lk={};RL(lk,{code:()=>Ah,isCode:()=>bl,isName:()=>ck,name:()=>Fl,normalFsTypes:()=>vw});var bl=t=>Fl.has(t),ck=t=>Ah.has(t),vw=new Set(["0","","1","2","3","4","5","6","7","D"]),Fl=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]),Ah=new Map(Array.from(Fl).map(t=>[t[1],t[0]])),uk=t=>t===void 0||t<0?void 0:t,Qs=class{cksumValid=!1;needPax=!1;nullBlock=!1;block;path;mode;uid;gid;size;cksum;#e="Unsupported";linkpath;uname;gname;devmaj=0;devmin=0;atime;ctime;mtime;charset;comment;constructor(t,e=0,r,i){Buffer.isBuffer(t)?this.decode(t,e||0,r,i):t&&this.#r(t)}decode(t,e,r,i){if(e||(e=0),!t||!(t.length>=e+512))throw new Error("need 512 bytes for header");let n=Gs(t,e+156,1),a=vw.has(n),s=a?r:void 0,o=a?i:void 0;if(this.path=s?.path??Gs(t,e,100),this.mode=s?.mode??o?.mode??ts(t,e+100,8),this.uid=s?.uid??o?.uid??ts(t,e+108,8),this.gid=s?.gid??o?.gid??ts(t,e+116,8),this.size=uk(s?.size??o?.size??ts(t,e+124,12)),this.mtime=s?.mtime??o?.mtime??Ff(t,e+136,12),this.cksum=ts(t,e+148,12),o&&this.#r(o,!0),s&&this.#r(s),bl(n)&&(this.#e=n||"0"),this.#e==="0"&&this.path.slice(-1)==="/"&&(this.#e="5"),this.#e==="5"&&(this.size=0),this.linkpath=Gs(t,e+157,100),t.subarray(e+257,e+265).toString()==="ustar\x0000")if(this.uname=s?.uname??o?.uname??Gs(t,e+265,32),this.gname=s?.gname??o?.gname??Gs(t,e+297,32),this.devmaj=s?.devmaj??o?.devmaj??ts(t,e+329,8)??0,this.devmin=s?.devmin??o?.devmin??ts(t,e+337,8)??0,t[e+475]!==0){let h=Gs(t,e+345,155);this.path=h+"/"+this.path}else{let h=Gs(t,e+345,130);h&&(this.path=h+"/"+this.path),this.atime=r?.atime??i?.atime??Ff(t,e+476,12),this.ctime=r?.ctime??i?.ctime??Ff(t,e+488,12)}let d=256;for(let h=e;h<e+148;h++)d+=t[h];for(let h=e+156;h<e+512;h++)d+=t[h];this.cksumValid=d===this.cksum,this.cksum===void 0&&d===256&&(this.nullBlock=!0)}#r(t,e=!1){Object.assign(this,Object.fromEntries(Object.entries(t).filter(([r,i])=>!(i==null||r==="size"&&Number(i)<0||r==="path"&&e||r==="linkpath"&&e||r==="global"))))}encode(t,e=0){if(t||(t=this.block=Buffer.alloc(512)),this.#e==="Unsupported"&&(this.#e="0"),!(t.length>=e+512))throw new Error("need 512 bytes for header");let r=this.ctime||this.atime?130:155,i=fk(this.path||"",r),n=i[0],a=i[1];this.needPax=!!i[2],this.needPax=qs(t,e,100,n)||this.needPax,this.needPax=rs(t,e+100,8,this.mode)||this.needPax,this.needPax=rs(t,e+108,8,this.uid)||this.needPax,this.needPax=rs(t,e+116,8,this.gid)||this.needPax,this.needPax=rs(t,e+124,12,this.size)||this.needPax,this.needPax=Vf(t,e+136,12,this.mtime)||this.needPax,t[e+156]=Number(this.#e.codePointAt(0)),this.needPax=qs(t,e+157,100,this.linkpath)||this.needPax,t.write("ustar\x0000",e+257,8),this.needPax=qs(t,e+265,32,this.uname)||this.needPax,this.needPax=qs(t,e+297,32,this.gname)||this.needPax,this.needPax=rs(t,e+329,8,this.devmaj)||this.needPax,this.needPax=rs(t,e+337,8,this.devmin)||this.needPax,this.needPax=qs(t,e+345,r,a)||this.needPax,t[e+475]!==0?this.needPax=qs(t,e+345,155,a)||this.needPax:(this.needPax=qs(t,e+345,130,a)||this.needPax,this.needPax=Vf(t,e+476,12,this.atime)||this.needPax,this.needPax=Vf(t,e+488,12,this.ctime)||this.needPax);let s=256;for(let o=e;o<e+148;o++)s+=t[o];for(let o=e+156;o<e+512;o++)s+=t[o];return this.cksum=s,rs(t,e+148,8,this.cksum),this.cksumValid=!0,this.needPax}get type(){return this.#e==="Unsupported"?this.#e:Fl.get(this.#e)}get typeKey(){return this.#e}set type(t){let e=String(Ah.get(t));if(bl(e)||e==="Unsupported")this.#e=e;else if(bl(t))this.#e=t;else throw new TypeError("invalid entry type: "+t)}},fk=(t,e)=>{let r=t,i="",n,a=Wo.parse(t).root||".";if(Buffer.byteLength(r)<100)n=[r,i,!1];else{i=Wo.dirname(r),r=Wo.basename(r);do Buffer.byteLength(r)<=100&&Buffer.byteLength(i)<=e?n=[r,i,!1]:Buffer.byteLength(r)>100&&Buffer.byteLength(i)<=e?n=[r.slice(0,99),i,!0]:(r=Wo.join(Wo.basename(i),r),i=Wo.dirname(i));while(i!==a&&n===void 0);n||(n=[t.slice(0,99),"",!0])}return n},Gs=(t,e,r)=>t.subarray(e,e+r).toString("utf8").replace(/\0.*/,""),Ff=(t,e,r)=>hk(ts(t,e,r)),hk=t=>t===void 0?void 0:new Date(t*1e3),ts=(t,e,r)=>Number(t[e])&128?ok(t.subarray(e,e+r)):_k(t,e,r),mk=t=>isNaN(t)?void 0:t,_k=(t,e,r)=>mk(parseInt(t.subarray(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),gk={12:8589934591,8:2097151},rs=(t,e,r,i)=>i===void 0?!1:i>gk[r]||i<0?(nk(i,t.subarray(e,e+r)),!0):(yk(t,e,r,i),!1),yk=(t,e,r,i)=>t.write(Ek(i,r),e,r,"ascii"),Ek=(t,e)=>vk(Math.floor(t).toString(8),e),vk=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",Vf=(t,e,r,i)=>i===void 0?!1:rs(t,e,r,i.getTime()/1e3),wk=new Array(156).join("\0"),qs=(t,e,r,i)=>i===void 0?!1:(t.write(i+wk,e,r,"utf8"),i.length!==Buffer.byteLength(i)||i.length>r),kl=class ww{atime;mtime;ctime;charset;comment;gid;uid;gname;uname;linkpath;dev;ino;nlink;path;size;mode;global;constructor(e,r=!1){this.atime=e.atime,this.charset=e.charset,this.comment=e.comment,this.ctime=e.ctime,this.dev=e.dev,this.gid=e.gid,this.global=r,this.gname=e.gname,this.ino=e.ino,this.linkpath=e.linkpath,this.mtime=e.mtime,this.nlink=e.nlink,this.path=e.path,this.size=e.size,this.uid=e.uid,this.uname=e.uname}encode(){let e=this.encodeBody();if(e==="")return Buffer.allocUnsafe(0);let r=Buffer.byteLength(e),i=512*Math.ceil(1+r/512),n=Buffer.allocUnsafe(i);for(let a=0;a<512;a++)n[a]=0;new Qs({path:("PaxHeader/"+Sk(this.path??"")).slice(0,99),mode:this.mode||420,uid:this.uid,gid:this.gid,size:r,mtime:this.mtime,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime,ctime:this.ctime}).encode(n),n.write(e,512,r,"utf8");for(let a=r+512;a<n.length;a++)n[a]=0;return n}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===void 0)return"";let r=this[e],i=r instanceof Date?r.getTime()/1e3:r,n=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+i+`
|
|
30
|
+
`,a=Buffer.byteLength(n),s=Math.floor(Math.log(a)/Math.log(10))+1;return a+s>=Math.pow(10,s)&&(s+=1),s+a+n}static parse(e,r,i=!1){return new ww(Rk(bk(e),r),i)}},Rk=(t,e)=>e?Object.assign({},e,t):t,bk=t=>t.replace(/\n$/,"").split(`
|
|
31
|
+
`).reduce(Ak,Object.create(null)),Ak=(t,e)=>{let r=parseInt(e,10);if(r!==Buffer.byteLength(e)+1)return t;e=e.slice((r+" ").length);let i=e.split("="),n=i.shift();if(!n)return t;let a=n.replace(/^SCHILY\.(dev|ino|nlink)/,"$1"),s=i.join("=").replace(/\0.*/,"");switch(a){case"path":case"linkpath":case"type":case"charset":case"comment":case"gname":case"uname":t[a]=s;break;case"ctime":case"atime":case"mtime":t[a]=new Date(Number(s)*1e3);break;case"size":let o=+s;o>=0&&(t[a]=o);break;case"gid":case"uid":case"dev":case"ino":case"nlink":case"mode":t[a]=+s;break}return t},Ok=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,mt=Ok!=="win32"?t=>String(t):t=>String(t).replaceAll(/\\/g,"/"),Nk=class extends eo{extended;globalExtended;header;startBlockSize;blockRemain;remain;type;meta=!1;ignore=!1;path;mode;uid;gid;uname;gname;size=0;mtime;atime;ctime;linkpath;dev;ino;nlink;invalid=!1;absolute;unsupported=!1;constructor(t,e,r){switch(super({}),this.pause(),this.extended=e,this.globalExtended=r,this.header=t,this.remain=t.size??0,this.startBlockSize=512*Math.ceil(this.remain/512),this.blockRemain=this.startBlockSize,this.type=t.type,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}if(!t.path)throw new Error("no path provided for tar.ReadEntry");this.path=mt(t.path),this.mode=t.mode,this.mode&&(this.mode=this.mode&4095),this.uid=t.uid,this.gid=t.gid,this.uname=t.uname,this.gname=t.gname,this.size=this.remain,this.mtime=t.mtime,this.atime=t.atime,this.ctime=t.ctime,this.linkpath=t.linkpath?mt(t.linkpath):void 0,this.uname=t.uname,this.gname=t.gname,e&&this.#e(e),r&&this.#e(r,!0)}write(t){let e=t.length;if(e>this.blockRemain)throw new Error("writing more to entry than is appropriate");let r=this.remain,i=this.blockRemain;return this.remain=Math.max(0,r-e),this.blockRemain=Math.max(0,i-e),this.ignore?!0:r>=e?super.write(t):super.write(t.subarray(0,r))}#e(t,e=!1){t.path&&(t.path=mt(t.path)),t.linkpath&&(t.linkpath=mt(t.linkpath)),Object.assign(this,Object.fromEntries(Object.entries(t).filter(([r,i])=>!(i==null||r==="path"&&e))))}},Vl=(t,e,r,i={})=>{t.file&&(i.file=t.file),t.cwd&&(i.cwd=t.cwd),i.code=r instanceof Error&&r.code||e,i.tarCode=e,!t.strict&&i.recoverable!==!1?(r instanceof Error&&(i=Object.assign(r,i),r=r.message),t.emit("warn",e,r,i)):r instanceof Error?t.emit("error",Object.assign(r,i)):t.emit("error",Object.assign(new Error(`${e}: ${r}`),i))},Tk=1024*1024,ih=Buffer.from([31,139]),nh=Buffer.from([40,181,47,253]),xk=Math.max(ih.length,nh.length),Wi=Symbol("state"),js=Symbol("writeEntry"),_a=Symbol("readEntry"),$f=Symbol("nextEntry"),Pv=Symbol("processEntry"),Mn=Symbol("extendedHeader"),wd=Symbol("globalExtendedHeader"),Za=Symbol("meta"),Uv=Symbol("emitMeta"),ar=Symbol("buffer"),ga=Symbol("queue"),Ja=Symbol("ended"),zf=Symbol("emittedEnd"),Ks=Symbol("emit"),Rr=Symbol("unzip"),hl=Symbol("consumeChunk"),ml=Symbol("consumeChunkSub"),Hf=Symbol("consumeBody"),Mv=Symbol("consumeMeta"),Fv=Symbol("consumeHeader"),Sd=Symbol("consuming"),Gf=Symbol("bufferConcat"),_l=Symbol("maybeEnd"),Yo=Symbol("writing"),Fn=Symbol("aborted"),gl=Symbol("onDone"),Ws=Symbol("sawValidEntry"),yl=Symbol("sawNullBlock"),El=Symbol("sawEOF"),Vv=Symbol("closeStream"),Ik=1e3,Rd=Symbol("compressedBytesRead"),qf=Symbol("decompressedBytesRead"),$v=Symbol("checkDecompressionRatio"),Ck=()=>!0,Fd=class extends KL{file;strict;maxMetaEntrySize;filter;brotli;zstd;maxDecompressionRatio;writable=!0;readable=!1;[ga]=[];[ar];[_a];[js];[Wi]="begin";[Za]="";[Mn];[wd];[Ja]=!1;[Rr];[Fn]=!1;[Ws];[yl]=!1;[El]=!1;[Yo]=!1;[Sd]=!1;[zf]=!1;[Rd]=0;[qf]=0;constructor(t={}){super(),this.file=t.file||"",this.on(gl,()=>{(this[Wi]==="begin"||this[Ws]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),t.ondone?this.on(gl,t.ondone):this.on(gl,()=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!t.strict,this.maxDecompressionRatio=typeof t.maxDecompressionRatio=="number"?t.maxDecompressionRatio:Ik,this.maxMetaEntrySize=t.maxMetaEntrySize||Tk,this.filter=typeof t.filter=="function"?t.filter:Ck;let e=t.file&&(t.file.endsWith(".tar.br")||t.file.endsWith(".tbr"));this.brotli=!(t.gzip||t.zstd)&&t.brotli!==void 0?t.brotli:e?void 0:!1;let r=t.file&&(t.file.endsWith(".tar.zst")||t.file.endsWith(".tzst"));this.zstd=!(t.gzip||t.brotli)&&t.zstd!==void 0?t.zstd:r?!0:void 0,this.on("end",()=>this[Vv]()),typeof t.onwarn=="function"&&this.on("warn",t.onwarn),typeof t.onReadEntry=="function"&&this.on("entry",t.onReadEntry)}warn(t,e,r={}){Vl(this,t,e,r)}[Fv](t,e){this[Ws]===void 0&&(this[Ws]=!1);let r;try{r=new Qs(t,e,this[Mn],this[wd])}catch(i){return this.warn("TAR_ENTRY_INVALID",i)}if(r.nullBlock)this[yl]?(this[El]=!0,this[Wi]==="begin"&&(this[Wi]="header"),this[Ks]("eof")):(this[yl]=!0,this[Ks]("nullBlock"));else if(this[yl]=!1,!r.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:r});else if(!r.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:r});else{let i=r.type;if(/^(Symbolic)?Link$/.test(i)&&!r.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:r});else if(!/^(Symbolic)?Link$/.test(i)&&!/^(Global)?ExtendedHeader$/.test(i)&&r.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:r});else{let n=this[js]=new Nk(r,this[Mn],this[wd]);if(!this[Ws])if(n.remain){let a=()=>{n.invalid||(this[Ws]=!0)};n.on("end",a)}else this[Ws]=!0;n.meta?n.size>this.maxMetaEntrySize?(n.ignore=!0,this[Ks]("ignoredEntry",n),this[Wi]="ignore",n.resume()):n.size>0&&(this[Za]="",n.on("data",a=>this[Za]+=a),this[Wi]="meta"):(this[Mn]=void 0,n.ignore=n.ignore||!this.filter(n.path,n),n.ignore?(this[Ks]("ignoredEntry",n),this[Wi]=n.remain?"ignore":"header",n.resume()):(n.remain?this[Wi]="body":(this[Wi]="header",n.end()),this[_a]?this[ga].push(n):(this[ga].push(n),this[$f]())))}}}[Vv](){queueMicrotask(()=>this.emit("close"))}[Pv](t){let e=!0;if(!t)this[_a]=void 0,e=!1;else if(Array.isArray(t)){let[r,...i]=t;this.emit(r,...i)}else this[_a]=t,this.emit("entry",t),t.emittedEnd||(t.on("end",()=>this[$f]()),e=!1);return e}[$f](){do;while(this[Pv](this[ga].shift()));if(this[ga].length===0){let t=this[_a];!t||t.flowing||t.size===t.remain?this[Yo]||this.emit("drain"):t.once("drain",()=>this.emit("drain"))}}[Hf](t,e){let r=this[js];if(!r)throw new Error("attempt to consume body without entry??");let i=r.blockRemain??0,n=i>=t.length&&e===0?t:t.subarray(e,e+i);return r.write(n),r.blockRemain||(this[Wi]="header",this[js]=void 0,r.end()),n.length}[Mv](t,e){let r=this[js],i=this[Hf](t,e);return!this[js]&&r&&this[Uv](r),i}[Ks](t,e,r){this[ga].length===0&&!this[_a]?this.emit(t,e,r):this[ga].push([t,e,r])}[Uv](t){switch(this[Ks]("meta",this[Za]),t.type){case"ExtendedHeader":case"OldExtendedHeader":this[Mn]=kl.parse(this[Za],this[Mn],!1);break;case"GlobalExtendedHeader":this[wd]=kl.parse(this[Za],this[wd],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":{let e=this[Mn]??Object.create(null);this[Mn]=e,e.path=this[Za].replace(/\0.*/,"");break}case"NextFileHasLongLinkpath":{let e=this[Mn]||Object.create(null);this[Mn]=e,e.linkpath=this[Za].replace(/\0.*/,"");break}default:throw new Error("unknown meta: "+t.type)}}abort(t){if(!this[Fn]){if(this[Rr]){let e=this[Rr];e.write=()=>!0,e.end=()=>e,e.emit=()=>!1,e.destroy?.()}this[Fn]=!0,this.emit("abort",t),this.warn("TAR_ABORT",t,{recoverable:!1})}}[$v](t){this[qf]+=t.length;let e=this[qf]/this[Rd];return e>this.maxDecompressionRatio?(this.abort(new Error(`max decompression ratio exceeded: ${e.toFixed(2)} > ${this.maxDecompressionRatio}`)),!1):!0}write(t,e,r){if(typeof e=="function"&&(r=e,e=void 0),typeof t=="string"&&(t=Buffer.from(t,typeof e=="string"?e:"utf8")),this[Fn])return r?.(),!1;if((this[Rr]===void 0||this.brotli===void 0&&this[Rr]===!1)&&t){if(this[ar]&&(t=Buffer.concat([this[ar],t]),this[ar]=void 0),t.length<xk)return this[ar]=t,r?.(),!0;for(let s=0;this[Rr]===void 0&&s<ih.length;s++)t[s]!==ih[s]&&(this[Rr]=!1);let n=!1;if(this[Rr]===!1&&this.zstd!==!1){n=!0;for(let s=0;s<nh.length;s++)if(t[s]!==nh[s]){n=!1;break}}let a=this.brotli===void 0&&!n;if(this[Rr]===!1&&a)if(t.length<512)if(this[Ja])this.brotli=!0;else return this[ar]=t,r?.(),!0;else try{new Qs(t.subarray(0,512)),this.brotli=!1}catch{this.brotli=!0}if(this[Rr]===void 0||this[Rr]===!1&&(this.brotli||n)){let s=this[Ja];this[Ja]=!1,this[Rr]=this[Rr]===void 0?new QL({}):n?new ik({}):new tk({}),this[Rr].on("data",d=>{this[$v](d)&&this[hl](d)}),this[Rr].on("error",d=>{this[Fn]||this.abort(d)}),this[Rr].on("end",()=>{this[Ja]=!0,this[hl]()}),this[Yo]=!0,this[Rd]+=t.length;let o=!!this[Rr][s?"end":"write"](t);return this[Yo]=!1,r?.(),o}}this[Yo]=!0,this[Rr]?(this[Rd]+=t.length,this[Rr].write(t)):this[hl](t),this[Yo]=!1;let i=this[ga].length>0?!1:this[_a]?this[_a].flowing:!0;return!i&&this[ga].length===0&&this[_a]?.once("drain",()=>this.emit("drain")),r?.(),i}[Gf](t){t&&!this[Fn]&&(this[ar]=this[ar]?Buffer.concat([this[ar],t]):t)}[_l](){if(this[Ja]&&!this[zf]&&!this[Fn]&&!this[Sd]){this[zf]=!0;let t=this[js];if(t?.blockRemain){let e=this[ar]?this[ar].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${t.blockRemain} more bytes, only ${e} available)`,{entry:t}),this[ar]&&t.write(this[ar]),t.end()}this[Ks](gl)}}[hl](t){if(this[Sd]&&t)this[Gf](t);else if(!t&&!this[ar])this[_l]();else if(t){if(this[Sd]=!0,this[ar]){this[Gf](t);let e=this[ar];this[ar]=void 0,this[ml](e)}else this[ml](t);for(;this[ar]&&this[ar]?.length>=512&&!this[Fn]&&!this[El];){let e=this[ar];this[ar]=void 0,this[ml](e)}this[Sd]=!1}(!this[ar]||this[Ja])&&this[_l]()}[ml](t){let e=0,r=t.length;for(;e+512<=r&&!this[Fn]&&!this[El];)switch(this[Wi]){case"begin":case"header":this[Fv](t,e),e+=512;break;case"ignore":case"body":e+=this[Hf](t,e);break;case"meta":e+=this[Mv](t,e);break;default:throw new Error("invalid state: "+this[Wi])}e<r&&(this[ar]=this[ar]?Buffer.concat([t.subarray(e),this[ar]]):t.subarray(e))}end(t,e,r){return typeof t=="function"&&(r=t,e=void 0,t=void 0),typeof e=="function"&&(r=e,e=void 0),typeof t=="string"&&(t=Buffer.from(t,e)),r&&this.once("finish",r),this[Fn]||(this[Rr]?(t&&(this[Rd]+=t.length,this[Rr].write(t)),this[Rr].end()):(this[Ja]=!0,(this.brotli===void 0||this.zstd===void 0)&&(t=t||Buffer.alloc(0)),t&&this.write(t),this[_l]())),this}},Ld=t=>{let e=t.length-1,r=-1;for(;e>-1&&t.charAt(e)==="/";)r=e,e--;return r===-1?t:t.slice(0,r)},Lk=t=>{let e=t.onReadEntry;t.onReadEntry=e?r=>{e(r),r.resume()}:r=>r.resume()},Sw=(t,e)=>{let r=new Map(e.map(s=>[Ld(s),!0])),i=t.filter,n=100,a=(s,o="",d=0)=>{if(d>=n)return r.set(s,!1),!1;let h=o||FL(s).root||".",w;if(s===h)w=!1;else{let A=r.get(s);w=A!==void 0?A:a(ML(s),h,d+1)}return r.set(s,w),w};t.filter=i?(s,o)=>i(s,o)&&a(Ld(s)):s=>a(Ld(s))},kk=t=>{let e=new Fd(t),r=t.file,i;try{i=t1.openSync(r,"r");let n=t1.fstatSync(i),a=t.maxReadSize||16*1024*1024;if(n.size<a){let s=Buffer.allocUnsafe(n.size),o=t1.readSync(i,s,0,n.size,0);e.end(o===s.byteLength?s:s.subarray(0,o))}else{let s=0,o=Buffer.allocUnsafe(a);for(;s<n.size;){let d=t1.readSync(i,o,0,a,s);if(d===0)break;s+=d,e.write(o.subarray(0,d))}e.end()}}finally{if(typeof i=="number")try{t1.closeSync(i)}catch{}}},Dk=(t,e)=>{let r=new Fd(t),i=t.maxReadSize||16*1024*1024,n=t.file;return new Promise((a,s)=>{r.on("error",s),r.on("end",a),t1.stat(n,(o,d)=>{if(o)s(o);else{let h=new Sh(n,{readSize:i,size:d.size});h.on("error",s),h.pipe(r)}})})},$l=Vd(kk,Dk,t=>new Fd(t),t=>new Fd(t),(t,e)=>{e?.length&&Sw(t,e),t.noResume||Lk(t)}),Rw=(t,e,r)=>(t&=4095,r&&(t=(t|384)&-19),e&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t),{isAbsolute:Pk,parse:Hv}=Bk,Oh=t=>{let e="",r=Hv(t);for(;Pk(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=Hv(t)}return[e,t]},zl=["|","<",">","?",":"],Nh=zl.map(t=>String.fromCodePoint(61440+Number(t.codePointAt(0)))),Uk=new Map(zl.map((t,e)=>[t,Nh[e]])),Mk=new Map(Nh.map((t,e)=>[t,zl[e]])),Gv=t=>zl.reduce((e,r)=>e.split(r).join(Uk.get(r)),t),Fk=t=>Nh.reduce((e,r)=>e.split(r).join(Mk.get(r)),t),bw=(t,e)=>e?(t=mt(t).replace(/^\.(\/|$)/,""),Ld(e)+"/"+t):mt(t),Vk=16*1024*1024,qv=Symbol("process"),jv=Symbol("file"),Kv=Symbol("directory"),ah=Symbol("symlink"),Wv=Symbol("hardlink"),bd=Symbol("header"),Al=Symbol("read"),sh=Symbol("lstat"),Ol=Symbol("onlstat"),oh=Symbol("onread"),dh=Symbol("onreadlink"),ph=Symbol("openfile"),lh=Symbol("onopenfile"),is=Symbol("close"),Bl=Symbol("mode"),ch=Symbol("awaitDrain"),jf=Symbol("ondrain"),$n=Symbol("prefix"),Aw=class extends eo{path;portable;myuid=process.getuid&&process.getuid()||0;myuser=process.env.USER||"";maxReadSize;linkCache;statCache;preservePaths;cwd;strict;mtime;noPax;noMtime;prefix;fd;blockLen=0;blockRemain=0;buf;pos=0;remain=0;length=0;offset=0;win32;absolute;header;type;linkpath;stat;onWriteEntry;#e=!1;constructor(t,e={}){let r=Rh(e);super(),this.path=mt(t),this.portable=!!r.portable,this.maxReadSize=r.maxReadSize||Vk,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=mt(r.cwd||process.cwd()),this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.mtime=r.mtime,this.prefix=r.prefix?mt(r.prefix):void 0,this.onWriteEntry=r.onWriteEntry,typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[a,s]=Oh(this.path);a&&typeof s=="string"&&(this.path=s,i=a)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=Fk(this.path.replaceAll(/\\/g,"/")),t=t.replaceAll(/\\/g,"/")),this.absolute=mt(r.absolute||zv.resolve(this.cwd,t)),this.path===""&&(this.path="./"),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path});let n=this.statCache.get(this.absolute);n?this[Ol](n):this[sh]()}warn(t,e,r={}){return Vl(this,t,e,r)}emit(t,...e){return t==="error"&&(this.#e=!0),super.emit(t,...e)}[sh](){Vn.lstat(this.absolute,(t,e)=>{if(t)return this.emit("error",t);this[Ol](e)})}[Ol](t){this.statCache.set(this.absolute,t),this.stat=t,t.isFile()||(t.size=0),this.type=Hk(t),this.emit("stat",t),this[qv]()}[qv](){switch(this.type){case"File":return this[jv]();case"Directory":return this[Kv]();case"SymbolicLink":return this[ah]();default:return this.end()}}[Bl](t){return Rw(t,this.type==="Directory",this.portable)}[$n](t){return bw(t,this.prefix)}[bd](){if(!this.stat)throw new Error("cannot write header before stat");this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.onWriteEntry?.(this),this.header=new Qs({path:this[$n](this.path),linkpath:this.type==="Link"&&this.linkpath!==void 0?this[$n](this.linkpath):this.linkpath,mode:this[Bl](this.stat.mode),uid:this.portable?void 0:this.stat.uid,gid:this.portable?void 0:this.stat.gid,size:this.stat.size,mtime:this.noMtime?void 0:this.mtime||this.stat.mtime,type:this.type==="Unsupported"?void 0:this.type,uname:this.portable?void 0:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?void 0:this.stat.atime,ctime:this.portable?void 0:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new kl({atime:this.portable?void 0:this.header.atime,ctime:this.portable?void 0:this.header.ctime,gid:this.portable?void 0:this.header.gid,mtime:this.noMtime?void 0:this.mtime||this.header.mtime,path:this[$n](this.path),linkpath:this.type==="Link"&&this.linkpath!==void 0?this[$n](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?void 0:this.header.uid,uname:this.portable?void 0:this.header.uname,dev:this.portable?void 0:this.stat.dev,ino:this.portable?void 0:this.stat.ino,nlink:this.portable?void 0:this.stat.nlink}).encode());let t=this.header?.block;if(!t)throw new Error("failed to encode header");super.write(t)}[Kv](){if(!this.stat)throw new Error("cannot create directory entry without stat");this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[bd](),this.end()}[ah](){Vn.readlink(this.absolute,(t,e)=>{if(t)return this.emit("error",t);this[dh](e)})}[dh](t){this.linkpath=mt(t),this[bd](),this.end()}[Wv](t){if(!this.stat)throw new Error("cannot create link entry without stat");this.type="Link",this.linkpath=mt(zv.relative(this.cwd,t)),this.stat.size=0,this[bd](),this.end()}[jv](){if(!this.stat)throw new Error("cannot create file entry without stat");if(this.stat.nlink>1){let t=`${this.stat.dev}:${this.stat.ino}`,e=this.linkCache.get(t);if(e?.indexOf(this.cwd)===0)return this[Wv](e);this.linkCache.set(t,this.absolute)}if(this[bd](),this.stat.size===0)return this.end();this[ph]()}[ph](){Vn.open(this.absolute,"r",(t,e)=>{if(t)return this.emit("error",t);this[lh](e)})}[lh](t){if(this.fd=t,this.#e)return this[is]();if(!this.stat)throw new Error("should stat before calling onopenfile");this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let e=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(e),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[Al]()}[Al](){let{fd:t,buf:e,offset:r,length:i,pos:n}=this;if(t===void 0||e===void 0)throw new Error("cannot read file without first opening");Vn.read(t,e,r,i,n,(a,s)=>{if(a)return this[is](()=>this.emit("error",a));this[oh](s)})}[is](t=()=>{}){this.fd!==void 0&&Vn.close(this.fd,t)}[oh](t){if(t<=0&&this.remain>0){let r=Object.assign(new Error("encountered unexpected EOF"),{path:this.absolute,syscall:"read",code:"EOF"});return this[is](()=>this.emit("error",r))}if(t>this.remain){let r=Object.assign(new Error("did not encounter expected EOF"),{path:this.absolute,syscall:"read",code:"EOF"});return this[is](()=>this.emit("error",r))}if(!this.buf)throw new Error("should have created buffer prior to reading");if(t===this.remain)for(let r=t;r<this.length&&t<this.blockRemain;r++)this.buf[r+this.offset]=0,t++,this.remain++;let e=this.offset===0&&t===this.buf.length?this.buf:this.buf.subarray(this.offset,this.offset+t);this.write(e)?this[jf]():this[ch](()=>this[jf]())}[ch](t){this.once("drain",t)}write(t,e,r){if(typeof e=="function"&&(r=e,e=void 0),typeof t=="string"&&(t=Buffer.from(t,typeof e=="string"?e:"utf8")),this.blockRemain<t.length){let i=Object.assign(new Error("writing more data than expected"),{path:this.absolute});return this.emit("error",i)}return this.remain-=t.length,this.blockRemain-=t.length,this.pos+=t.length,this.offset+=t.length,super.write(t,null,r)}[jf](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[is](t=>t?this.emit("error",t):this.end());if(!this.buf)throw new Error("buffer lost somehow in ONDRAIN");this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[Al]()}},$k=class extends Aw{sync=!0;[sh](){this[Ol](Vn.lstatSync(this.absolute))}[ah](){this[dh](Vn.readlinkSync(this.absolute))}[ph](){this[lh](Vn.openSync(this.absolute,"r"))}[Al](){let t=!0;try{let{fd:e,buf:r,offset:i,length:n,pos:a}=this;if(e===void 0||r===void 0)throw new Error("fd and buf must be set in READ method");let s=Vn.readSync(e,r,i,n,a);this[oh](s),t=!1}finally{if(t)try{this[is](()=>{})}catch{}}}[ch](t){t()}[is](t=()=>{}){this.fd!==void 0&&Vn.closeSync(this.fd),t()}},zk=class extends eo{blockLen=0;blockRemain=0;buf=0;pos=0;remain=0;length=0;preservePaths;portable;strict;noPax;noMtime;readEntry;type;prefix;path;mode;uid;gid;uname;gname;header;mtime;atime;ctime;linkpath;size;onWriteEntry;warn(t,e,r={}){return Vl(this,t,e,r)}constructor(t,e={}){let r=Rh(e);super(),this.preservePaths=!!r.preservePaths,this.portable=!!r.portable,this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.onWriteEntry=r.onWriteEntry,this.readEntry=t;let{type:i}=t;if(i==="Unsupported")throw new Error("writing entry that should be ignored");this.type=i,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix,this.path=mt(t.path),this.mode=t.mode!==void 0?this[Bl](t.mode):void 0,this.uid=this.portable?void 0:t.uid,this.gid=this.portable?void 0:t.gid,this.uname=this.portable?void 0:t.uname,this.gname=this.portable?void 0:t.gname,this.size=t.size,this.mtime=this.noMtime?void 0:r.mtime||t.mtime,this.atime=this.portable?void 0:t.atime,this.ctime=this.portable?void 0:t.ctime,this.linkpath=t.linkpath!==void 0?mt(t.linkpath):void 0,typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let n=!1;if(!this.preservePaths){let[s,o]=Oh(this.path);s&&typeof o=="string"&&(this.path=o,n=s)}this.remain=t.size,this.blockRemain=t.startBlockSize,this.onWriteEntry?.(this),this.header=new Qs({path:this[$n](this.path),linkpath:this.type==="Link"&&this.linkpath!==void 0?this[$n](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?void 0:this.uid,gid:this.portable?void 0:this.gid,size:this.size,mtime:this.noMtime?void 0:this.mtime,type:this.type,uname:this.portable?void 0:this.uname,atime:this.portable?void 0:this.atime,ctime:this.portable?void 0:this.ctime}),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.header.encode()&&!this.noPax&&super.write(new kl({atime:this.portable?void 0:this.atime,ctime:this.portable?void 0:this.ctime,gid:this.portable?void 0:this.gid,mtime:this.noMtime?void 0:this.mtime,path:this[$n](this.path),linkpath:this.type==="Link"&&this.linkpath!==void 0?this[$n](this.linkpath):this.linkpath,size:this.size,uid:this.portable?void 0:this.uid,uname:this.portable?void 0:this.uname,dev:this.portable?void 0:this.readEntry.dev,ino:this.portable?void 0:this.readEntry.ino,nlink:this.portable?void 0:this.readEntry.nlink}).encode());let a=this.header?.block;if(!a)throw new Error("failed to encode header");super.write(a),t.pipe(this)}[$n](t){return bw(t,this.prefix)}[Bl](t){return Rw(t,this.type==="Directory",this.portable)}write(t,e,r){typeof e=="function"&&(r=e,e=void 0),typeof t=="string"&&(t=Buffer.from(t,typeof e=="string"?e:"utf8"));let i=t.length;if(i>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=i,super.write(t,r)}end(t,e,r){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),typeof t=="function"&&(r=t,e=void 0,t=void 0),typeof e=="function"&&(r=e,e=void 0),typeof t=="string"&&(t=Buffer.from(t,e??"utf8")),r&&this.once("finish",r),t?super.end(t,r):super.end(r),this}},Hk=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported",Gk=class r1{tail;head;length=0;static create(e=[]){return new r1(e)}constructor(e=[]){for(let r of e)this.push(r)}*[Symbol.iterator](){for(let e=this.head;e;e=e.next)yield e.value}removeNode(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");let r=e.next,i=e.prev;return r&&(r.prev=i),i&&(i.next=r),e===this.head&&(this.head=r),e===this.tail&&(this.tail=i),this.length--,e.next=void 0,e.prev=void 0,e.list=void 0,r}unshiftNode(e){if(e===this.head)return;e.list&&e.list.removeNode(e);let r=this.head;e.list=this,e.next=r,r&&(r.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}pushNode(e){if(e===this.tail)return;e.list&&e.list.removeNode(e);let r=this.tail;e.list=this,e.prev=r,r&&(r.next=e),this.tail=e,this.head||(this.head=e),this.length++}push(...e){for(let r=0,i=e.length;r<i;r++)jk(this,e[r]);return this.length}unshift(...e){for(var r=0,i=e.length;r<i;r++)Kk(this,e[r]);return this.length}pop(){if(!this.tail)return;let e=this.tail.value,r=this.tail;return this.tail=this.tail.prev,this.tail?this.tail.next=void 0:this.head=void 0,r.list=void 0,this.length--,e}shift(){if(!this.head)return;let e=this.head.value,r=this.head;return this.head=this.head.next,this.head?this.head.prev=void 0:this.tail=void 0,r.list=void 0,this.length--,e}forEach(e,r){r=r||this;for(let i=this.head,n=0;i;n++)e.call(r,i.value,n,this),i=i.next}forEachReverse(e,r){r=r||this;for(let i=this.tail,n=this.length-1;i;n--)e.call(r,i.value,n,this),i=i.prev}get(e){let r=0,i=this.head;for(;i&&r<e;r++)i=i.next;if(r===e&&i)return i.value}getReverse(e){let r=0,i=this.tail;for(;i&&r<e;r++)i=i.prev;if(r===e&&i)return i.value}map(e,r){r=r||this;let i=new r1;for(let n=this.head;n;)i.push(e.call(r,n.value,this)),n=n.next;return i}mapReverse(e,r){r=r||this;var i=new r1;for(let n=this.tail;n;)i.push(e.call(r,n.value,this)),n=n.prev;return i}reduce(e,r){let i,n=this.head;if(arguments.length>1)i=r;else if(this.head)n=this.head.next,i=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=0;n;a++)i=e(i,n.value,a),n=n.next;return i}reduceReverse(e,r){let i,n=this.tail;if(arguments.length>1)i=r;else if(this.tail)n=this.tail.prev,i=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(let a=this.length-1;n;a--)i=e(i,n.value,a),n=n.prev;return i}toArray(){let e=new Array(this.length);for(let r=0,i=this.head;i;r++)e[r]=i.value,i=i.next;return e}toArrayReverse(){let e=new Array(this.length);for(let r=0,i=this.tail;i;r++)e[r]=i.value,i=i.prev;return e}slice(e=0,r=this.length){r<0&&(r+=this.length),e<0&&(e+=this.length);let i=new r1;if(r<e||r<0)return i;e<0&&(e=0),r>this.length&&(r=this.length);let n=this.head,a=0;for(a=0;n&&a<e;a++)n=n.next;for(;n&&a<r;a++,n=n.next)i.push(n.value);return i}sliceReverse(e=0,r=this.length){r<0&&(r+=this.length),e<0&&(e+=this.length);let i=new r1;if(r<e||r<0)return i;e<0&&(e=0),r>this.length&&(r=this.length);let n=this.length,a=this.tail;for(;a&&n>r;n--)a=a.prev;for(;a&&n>e;n--,a=a.prev)i.push(a.value);return i}splice(e,r=0,...i){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);let n=this.head;for(let s=0;n&&s<e;s++)n=n.next;let a=[];for(let s=0;n&&s<r;s++)a.push(n.value),n=this.removeNode(n);n?n!==this.tail&&(n=n.prev):n=this.tail;for(let s of i)n=qk(this,n,s);return a}reverse(){let e=this.head,r=this.tail;for(let i=e;i;i=i.prev){let n=i.prev;i.prev=i.next,i.next=n}return this.head=r,this.tail=e,this}};function qk(t,e,r){let i=e,n=e?e.next:t.head,a=new Th(r,i,n,t);return a.next===void 0&&(t.tail=a),a.prev===void 0&&(t.head=a),t.length++,a}function jk(t,e){t.tail=new Th(e,t.tail,void 0,t),t.head||(t.head=t.tail),t.length++}function Kk(t,e){t.head=new Th(e,void 0,t.head,t),t.tail||(t.tail=t.head),t.length++}var Th=class{list;next;prev;value;constructor(t,e,r,i){this.list=i,this.value=t,e?(e.next=this,this.prev=e):this.prev=void 0,r?(r.prev=this,this.next=r):this.next=void 0}},Xv=class{path;absolute;entry;stat;readdir;pending=!1;pendingLink=!1;ignore=!1;piped=!1;constructor(t,e){this.path=t||"./",this.absolute=e}},Zv=Buffer.alloc(1024),Nl=Symbol("onStat"),Ad=Symbol("ended"),ln=Symbol("queue"),Od=Symbol("pendingLinks"),Qa=Symbol("current"),Ys=Symbol("process"),Nd=Symbol("processing"),vl=Symbol("processJob"),cn=Symbol("jobs"),Kf=Symbol("jobDone"),Tl=Symbol("addFSEntry"),Jv=Symbol("addTarEntry"),uh=Symbol("stat"),fh=Symbol("readdir"),xl=Symbol("onreaddir"),Il=Symbol("pipe"),Qv=Symbol("entry"),Wf=Symbol("entryOpt"),Cl=Symbol("writeEntryClass"),Ow=Symbol("write"),Yf=Symbol("ondrain"),Hl=class extends eo{sync=!1;opt;cwd;maxReadSize;preservePaths;strict;noPax;prefix;linkCache;statCache;file;portable;zip;readdirCache;noDirRecurse;follow;noMtime;mtime;filter;jobs;[Cl];onWriteEntry;[ln];[Od]=new Map;[cn]=0;[Nd]=!1;[Ad]=!1;constructor(t={}){if(super(),this.opt=t,this.file=t.file||"",this.cwd=t.cwd||process.cwd(),this.maxReadSize=t.maxReadSize,this.preservePaths=!!t.preservePaths,this.strict=!!t.strict,this.noPax=!!t.noPax,this.prefix=mt(t.prefix||""),this.linkCache=t.linkCache||new Map,this.statCache=t.statCache||new Map,this.readdirCache=t.readdirCache||new Map,this.onWriteEntry=t.onWriteEntry,this[Cl]=Aw,typeof t.onwarn=="function"&&this.on("warn",t.onwarn),this.portable=!!t.portable,t.gzip||t.brotli||t.zstd){if((t.gzip?1:0)+(t.brotli?1:0)+(t.zstd?1:0)>1)throw new TypeError("gzip, brotli, zstd are mutually exclusive");if(t.gzip&&(typeof t.gzip!="object"&&(t.gzip={}),this.portable&&(t.gzip.portable=!0),this.zip=new JL(t.gzip)),t.brotli&&(typeof t.brotli!="object"&&(t.brotli={}),this.zip=new ek(t.brotli)),t.zstd&&(typeof t.zstd!="object"&&(t.zstd={}),this.zip=new rk(t.zstd)),!this.zip)throw new Error("impossible");let e=this.zip;e.on("data",r=>super.write(r)),e.on("end",()=>super.end()),e.on("drain",()=>this[Yf]()),this.on("resume",()=>e.resume())}else this.on("drain",this[Yf]);this.noDirRecurse=!!t.noDirRecurse,this.follow=!!t.follow,this.noMtime=!!t.noMtime,t.mtime&&(this.mtime=t.mtime),this.filter=typeof t.filter=="function"?t.filter:()=>!0,this[ln]=new Gk,this[cn]=0,this.jobs=Number(t.jobs)||4,this[Nd]=!1,this[Ad]=!1}[Ow](t){return super.write(t)}add(t){return this.write(t),this}end(t,e,r){return typeof t=="function"&&(r=t,t=void 0),typeof e=="function"&&(r=e,e=void 0),t&&this.add(t),this[Ad]=!0,this[Ys](),r&&r(),this}write(t){if(this[Ad])throw new Error("write after end");return typeof t=="string"?this[Tl](t):this[Jv](t),this.flowing}[Jv](t){let e=mt(Yv.resolve(this.cwd,t.path));if(!this.filter(t.path,t))t.resume();else{let r=new Xv(t.path,e);r.entry=new zk(t,this[Wf](r)),r.entry.on("end",()=>this[Kf](r)),this[cn]+=1,this[ln].push(r)}this[Ys]()}[Tl](t){let e=mt(Yv.resolve(this.cwd,t));this[ln].push(new Xv(t,e)),this[Ys]()}[uh](t){t.pending=!0,this[cn]+=1;let e=this.follow?"stat":"lstat";Dl[e](t.absolute,(r,i)=>{t.pending=!1,this[cn]-=1,r?this.emit("error",r):this[Nl](t,i)})}[Nl](t,e){if(this.statCache.set(t.absolute,e),t.stat=e,!this.filter(t.path,e))t.ignore=!0;else if(e.isFile()&&e.nlink>1&&!this.linkCache.get(`${e.dev}:${e.ino}`)&&!this.sync)if(t===this[Qa])this[vl](t);else{let r=`${e.dev}:${e.ino}`,i=this[Od].get(r);i?i.push(t):this[Od].set(r,[t]),t.pendingLink=!0,t.pending=!0}this[Ys]()}[fh](t){t.pending=!0,this[cn]+=1,Dl.readdir(t.absolute,(e,r)=>{if(t.pending=!1,this[cn]-=1,e)return this.emit("error",e);this[xl](t,r)})}[xl](t,e){this.readdirCache.set(t.absolute,e),t.readdir=e,this[Ys]()}[Ys](){if(!this[Nd]){this[Nd]=!0;for(let t=this[ln].head;t&&this[cn]<this.jobs;t=t.next)if(this[vl](t.value),t.value.ignore){let e=t.next;this[ln].removeNode(t),t.next=e}this[Nd]=!1,this[Ad]&&this[ln].length===0&&this[cn]===0&&(this.zip?this.zip.end(Zv):(super.write(Zv),super.end()))}}get[Qa](){return this[ln]&&this[ln].head&&this[ln].head.value}[Kf](t){this[ln].shift(),this[cn]-=1;let{stat:e}=t;if(e&&e.isFile()&&e.nlink>1){let r=`${e.dev}:${e.ino}`,i=this[Od].get(r);if(i){this[Od].delete(r);for(let n of i)n.pending=!1,this[vl](n)}}this[Ys]()}[vl](t){if(t.pending&&t.pendingLink&&t===this[Qa]&&(t.pending=!1,t.pendingLink=!1),!t.pending){if(t.entry){t===this[Qa]&&!t.piped&&this[Il](t);return}if(!t.stat){let e=this.statCache.get(t.absolute);e?this[Nl](t,e):this[uh](t)}if(t.stat&&!t.ignore){if(!this.noDirRecurse&&t.stat.isDirectory()&&!t.readdir){let e=this.readdirCache.get(t.absolute);if(e?this[xl](t,e):this[fh](t),!t.readdir)return}if(t.entry=this[Qv](t),!t.entry){t.ignore=!0;return}t===this[Qa]&&!t.piped&&this[Il](t)}}}[Wf](t){return{onwarn:(e,r,i)=>this.warn(e,r,i),noPax:this.noPax,cwd:this.cwd,absolute:t.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix,onWriteEntry:this.onWriteEntry}}[Qv](t){this[cn]+=1;try{return new this[Cl](t.path,this[Wf](t)).on("end",()=>this[Kf](t)).on("error",e=>this.emit("error",e))}catch(e){this.emit("error",e)}}[Yf](){this[Qa]&&this[Qa].entry&&this[Qa].entry.resume()}[Il](t){t.piped=!0,t.readdir&&t.readdir.forEach(i=>{let n=t.path,a=n==="./"?"":n.replace(/\/*$/,"/");this[Tl](a+i)});let e=t.entry,r=this.zip;if(!e)throw new Error("cannot pipe without source");r?e.on("data",i=>{r.write(i)||e.pause()}):e.on("data",i=>{super.write(i)||e.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}warn(t,e,r={}){Vl(this,t,e,r)}},xh=class extends Hl{sync=!0;constructor(t){super(t),this[Cl]=$k}pause(){}resume(){}[uh](t){let e=this.follow?"statSync":"lstatSync";this[Nl](t,Dl[e](t.absolute))}[fh](t){this[xl](t,Dl.readdirSync(t.absolute))}[Il](t){let e=t.entry,r=this.zip;if(t.readdir&&t.readdir.forEach(i=>{let n=t.path,a=n==="./"?"":n.replace(/\/*$/,"/");this[Tl](a+i)}),!e)throw new Error("Cannot pipe without source");r?e.on("data",i=>{r.write(i)}):e.on("data",i=>{super[Ow](i)})}},Wk=(t,e)=>{let r=new xh(t),i=new fw(t.file,{mode:t.mode||438});r.pipe(i),Nw(r,e)},Yk=(t,e)=>{let r=new Hl(t),i=new Ml(t.file,{mode:t.mode||438});r.pipe(i);let n=new Promise((a,s)=>{i.on("error",s),i.on("close",a),r.on("error",s)});return Tw(r,e).catch(a=>r.emit("error",a)),n},Nw=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?$l({file:hw.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onReadEntry:i=>t.add(i)}):t.add(r)}),t.end()},Tw=async(t,e)=>{for(let r of e)r.charAt(0)==="@"?await $l({file:hw.resolve(String(t.cwd),r.slice(1)),noResume:!0,onReadEntry:i=>{t.add(i)}}):t.add(r);t.end()},Xk=(t,e)=>{let r=new xh(t);return Nw(r,e),r},Zk=(t,e)=>{let r=new Hl(t);return Tw(r,e).catch(i=>r.emit("error",i)),r},xw=Vd(Wk,Yk,Xk,Zk,(t,e)=>{if(!e?.length)throw new TypeError("no paths specified to add to archive")}),Qk=process.env.__FAKE_PLATFORM__||process.platform,kw=Qk==="win32",{O_CREAT:Dw,O_NOFOLLOW:ew,O_TRUNC:Bw,O_WRONLY:Pw}=Lw.constants,Uw=Number(process.env.__FAKE_FS_O_FILENAME__)||Lw.constants.UV_FS_O_FILEMAP||0,eD=kw&&!!Uw,tD=512*1024,rD=Uw|Bw|Dw|Pw,tw=!kw&&typeof ew=="number"?ew|Bw|Dw|Pw:null,Mw=tw!==null?()=>tw:eD?t=>t<tD?rD:"w":()=>"w",hh=(t,e,r)=>{try{return Gl.lchownSync(t,e,r)}catch(i){if(i?.code!=="ENOENT")throw i}},Pl=(t,e,r,i)=>{Gl.lchown(t,e,r,n=>{i(n&&n?.code!=="ENOENT"?n:null)})},iD=(t,e,r,i,n)=>{if(e.isDirectory())Fw(kd.resolve(t,e.name),r,i,a=>{if(a)return n(a);let s=kd.resolve(t,e.name);Pl(s,r,i,n)});else{let a=kd.resolve(t,e.name);Pl(a,r,i,n)}},Fw=(t,e,r,i)=>{Gl.readdir(t,{withFileTypes:!0},(n,a)=>{if(n){if(n.code==="ENOENT")return i();if(n.code!=="ENOTDIR"&&n.code!=="ENOTSUP")return i(n)}if(n||!a.length)return Pl(t,e,r,i);let s=a.length,o=null,d=h=>{if(!o){if(h)return i(o=h);if(--s===0)return Pl(t,e,r,i)}};for(let h of a)iD(t,h,e,r,d)})},nD=(t,e,r,i)=>{e.isDirectory()&&Vw(kd.resolve(t,e.name),r,i),hh(kd.resolve(t,e.name),r,i)},Vw=(t,e,r)=>{let i;try{i=Gl.readdirSync(t,{withFileTypes:!0})}catch(n){let a=n;if(a?.code==="ENOENT")return;if(a?.code==="ENOTDIR"||a?.code==="ENOTSUP")return hh(t,e,r);throw a}for(let n of i)nD(t,n,e,r);return hh(t,e,r)},$w=class extends Error{path;code;syscall="chdir";constructor(t,e){super(`${e}: Cannot cd into '${t}'`),this.path=t,this.code=e}get name(){return"CwdError"}},ql=class extends Error{path;symlink;syscall="symlink";code="TAR_SYMLINK_ERROR";constructor(t,e){super("TAR_SYMLINK_ERROR: Cannot extract through symbolic link"),this.symlink=t,this.path=e}get name(){return"SymlinkError"}},sD=(t,e)=>{Di.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new $w(t,r?.code||"ENOTDIR")),e(r)})},oD=(t,e,r)=>{t=mt(t);let i=e.umask??18,n=e.mode|448,a=(n&i)!==0,s=e.uid,o=e.gid,d=typeof s=="number"&&typeof o=="number"&&(s!==e.processUid||o!==e.processGid),h=e.preserve,w=e.unlink,A=mt(e.cwd),D=(R,F)=>{R?r(R):F&&d?Fw(F,s,o,$=>D($)):a?Di.chmod(t,n,r):r()};if(t===A)return sD(t,D);if(h)return aD.mkdir(t,{mode:n,recursive:!0}).then(R=>D(null,R??void 0),D);let I=mt(Ul.relative(A,t)).split("/");mh(A,I,n,w,A,void 0,D)},mh=(t,e,r,i,n,a,s)=>{if(e.length===0)return s(null,a);let o=e.shift(),d=mt(Ul.resolve(t+"/"+o));Di.mkdir(d,r,zw(d,e,r,i,n,a,s))},zw=(t,e,r,i,n,a,s)=>o=>{o?Di.lstat(t,(d,h)=>{if(d)d.path=d.path&&mt(d.path),s(d);else if(h.isDirectory())mh(t,e,r,i,n,a,s);else if(i)Di.unlink(t,w=>{if(w)return s(w);Di.mkdir(t,r,zw(t,e,r,i,n,a,s))});else{if(h.isSymbolicLink())return s(new ql(t,t+"/"+e.join("/")));s(o)}}):(a=a||t,mh(t,e,r,i,n,a,s))},dD=t=>{let e=!1,r;try{e=Di.statSync(t).isDirectory()}catch(i){r=i?.code}finally{if(!e)throw new $w(t,r??"ENOTDIR")}},pD=(t,e)=>{t=mt(t);let r=e.umask??18,i=e.mode|448,n=(i&r)!==0,a=e.uid,s=e.gid,o=typeof a=="number"&&typeof s=="number"&&(a!==e.processUid||s!==e.processGid),d=e.preserve,h=e.unlink,w=mt(e.cwd),A=R=>{R&&o&&Vw(R,a,s),n&&Di.chmodSync(t,i)};if(t===w)return dD(w),A();if(d)return A(Di.mkdirSync(t,{mode:i,recursive:!0})??void 0);let D=mt(Ul.relative(w,t)).split("/"),I;for(let R=D.shift(),F=w;R&&(F+="/"+R);R=D.shift()){F=mt(Ul.resolve(F));try{Di.mkdirSync(F,i),I=I||F}catch{let $=Di.lstatSync(F);if($.isDirectory())continue;if(h){Di.unlinkSync(F),Di.mkdirSync(F,i),I=I||F;continue}else if($.isSymbolicLink())return new ql(F,F+"/"+D.join("/"))}}return A(I)},Xf=Object.create(null),rw=1e4,Xo=new Set,lD=t=>{Xo.has(t)?Xo.delete(t):Xf[t]=t.normalize("NFD").toLocaleLowerCase("en").toLocaleUpperCase("en"),Xo.add(t);let e=Xf[t],r=Xo.size-rw;if(r>rw/10){for(let i of Xo)if(Xo.delete(i),delete Xf[i],--r<=0)break}return e},cD=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,uD=cD==="win32",fD=t=>t.split("/").slice(0,-1).reduce((e,r)=>{let i=e.at(-1);return i!==void 0&&(r=Hw(i,r)),e.push(r||"/"),e},[]),hD=class{#e=new Map;#r=new Map;#i=new Set;reserve(t,e){t=uD?["win32 parallelization disabled"]:t.map(i=>Ld(Hw(lD(i))));let r=new Set(t.map(i=>fD(i)).reduce((i,n)=>i.concat(n)));this.#r.set(e,{dirs:r,paths:t});for(let i of t){let n=this.#e.get(i);n?n.push(e):this.#e.set(i,[e])}for(let i of r){let n=this.#e.get(i);if(!n)this.#e.set(i,[new Set([e])]);else{let a=n.at(-1);a instanceof Set?a.add(e):n.push(new Set([e]))}}return this.#n(e)}#a(t){let e=this.#r.get(t);if(!e)throw new Error("function does not have any path reservations");return{paths:e.paths.map(r=>this.#e.get(r)),dirs:[...e.dirs].map(r=>this.#e.get(r))}}check(t){let{paths:e,dirs:r}=this.#a(t);return e.every(i=>i&&i[0]===t)&&r.every(i=>i&&i[0]instanceof Set&&i[0].has(t))}#n(t){return this.#i.has(t)||!this.check(t)?!1:(this.#i.add(t),t(()=>this.#t(t)),!0)}#t(t){if(!this.#i.has(t))return!1;let e=this.#r.get(t);if(!e)throw new Error("invalid reservation");let{paths:r,dirs:i}=e,n=new Set;for(let a of r){let s=this.#e.get(a);if(!s||s?.[0]!==t)continue;let o=s[1];if(!o){this.#e.delete(a);continue}if(s.shift(),typeof o=="function")n.add(o);else for(let d of o)n.add(d)}for(let a of i){let s=this.#e.get(a),o=s?.[0];if(!(!s||!(o instanceof Set)))if(o.size===1&&s.length===1){this.#e.delete(a);continue}else if(o.size===1){s.shift();let d=s[0];typeof d=="function"&&n.add(d)}else o.delete(t)}return this.#i.delete(t),n.forEach(a=>this.#n(a)),!0}},mD=()=>process.umask(),iw=Symbol("onEntry"),_h=Symbol("checkFs"),nw=Symbol("checkFs2"),gh=Symbol("isReusable"),Yi=Symbol("makeFs"),yh=Symbol("file"),Eh=Symbol("directory"),Ll=Symbol("link"),aw=Symbol("symlink"),sw=Symbol("hardlink"),Id=Symbol("ensureNoSymlink"),ow=Symbol("unsupported"),dw=Symbol("checkPath"),Zf=Symbol("stripAbsolutePath"),ns=Symbol("mkdir"),jr=Symbol("onError"),wl=Symbol("pending"),pw=Symbol("pend"),Zo=Symbol("unpend"),Jf=Symbol("ended"),Qf=Symbol("maybeClose"),vh=Symbol("skip"),Dd=Symbol("doChown"),Bd=Symbol("uid"),Pd=Symbol("gid"),Ud=Symbol("checkedCwd"),_D=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Md=_D==="win32",gD=1024,yD=(t,e)=>{if(!Md)return Ot.unlink(t,e);let r=t+".DELETE."+Cw(16).toString("hex");Ot.rename(t,r,i=>{if(i)return e(i);Ot.unlink(r,e)})},ED=t=>{if(!Md)return Ot.unlinkSync(t);let e=t+".DELETE."+Cw(16).toString("hex");Ot.renameSync(t,e),Ot.unlinkSync(e)},lw=(t,e,r)=>t!==void 0&&t===t>>>0?t:e!==void 0&&e===e>>>0?e:r,Ih=class extends Fd{[Jf]=!1;[Ud]=!1;[wl]=0;reservations=new hD;transform;writable=!0;readable=!1;uid;gid;setOwner;preserveOwner;processGid;processUid;maxDepth;forceChown;win32;newer;keep;noMtime;preservePaths;unlink;cwd;strip;processUmask;umask;dmode;fmode;chmod;constructor(t={}){if(t.ondone=()=>{this[Jf]=!0,this[Qf]()},super(t),this.transform=t.transform,this.chmod=!!t.chmod,typeof t.uid=="number"||typeof t.gid=="number"){if(typeof t.uid!="number"||typeof t.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(t.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=t.uid,this.gid=t.gid,this.setOwner=!0}else this.uid=void 0,this.gid=void 0,this.setOwner=!1;this.preserveOwner=t.preserveOwner===void 0&&typeof t.uid!="number"?process.getuid?.()===0:!!t.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():void 0,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():void 0,this.maxDepth=typeof t.maxDepth=="number"?t.maxDepth:gD,this.forceChown=t.forceChown===!0,this.win32=!!t.win32||Md,this.newer=!!t.newer,this.keep=!!t.keep,this.noMtime=!!t.noMtime,this.preservePaths=!!t.preservePaths,this.unlink=!!t.unlink,this.cwd=mt(Pr.resolve(t.cwd||process.cwd())),this.strip=Number(t.strip)||0,this.processUmask=this.chmod?typeof t.processUmask=="number"?t.processUmask:mD():0,this.umask=typeof t.umask=="number"?t.umask:this.processUmask,this.dmode=t.dmode||511&~this.umask,this.fmode=t.fmode||438&~this.umask,this.on("entry",e=>this[iw](e))}warn(t,e,r={}){return(t==="TAR_BAD_ARCHIVE"||t==="TAR_ABORT")&&(r.recoverable=!1),super.warn(t,e,r)}[Qf](){this[Jf]&&this[wl]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[Zf](t,e){let r=t[e],{type:i}=t;if(!r||this.preservePaths)return!0;let[n,a]=Oh(r),s=a.replaceAll(/\\/g,"/").split("/");if(s.includes("..")||Md&&/^[a-z]:\.\.$/i.test(s[0]??"")){if(e==="path"||i==="Link")return this.warn("TAR_ENTRY_ERROR",`${e} contains '..'`,{entry:t,[e]:r}),!1;let o=Pr.posix.dirname(t.path),d=Pr.posix.normalize(Pr.posix.join(o,s.join("/")));if(d.startsWith("../")||d==="..")return this.warn("TAR_ENTRY_ERROR",`${e} escapes extraction directory`,{entry:t,[e]:r}),!1}return n&&(t[e]=String(a),this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute ${e}`,{entry:t,[e]:r})),!0}[dw](t){let e=mt(t.path),r=e.split("/");if(this.strip){if(r.length<this.strip)return!1;if(t.type==="Link"){let i=mt(String(t.linkpath)).split("/");if(i.length>=this.strip)t.linkpath=i.slice(this.strip).join("/");else return!1}r.splice(0,this.strip),t.path=r.join("/")}if(isFinite(this.maxDepth)&&r.length>this.maxDepth)return this.warn("TAR_ENTRY_ERROR","path excessively deep",{entry:t,path:e,depth:r.length,maxDepth:this.maxDepth}),!1;if(!this[Zf](t,"path")||!this[Zf](t,"linkpath"))return!1;if(t.absolute=Pr.isAbsolute(t.path)?mt(Pr.resolve(t.path)):mt(Pr.resolve(this.cwd,t.path)),!this.preservePaths&&typeof t.absolute=="string"&&t.absolute.indexOf(this.cwd+"/")!==0&&t.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:t,path:mt(t.path),resolvedPath:t.absolute,cwd:this.cwd}),!1;if(t.absolute===this.cwd&&t.type!=="Directory"&&t.type!=="GNUDumpDir")return!1;if(this.win32){let{root:i}=Pr.win32.parse(String(t.absolute));t.absolute=i+Gv(String(t.absolute).slice(i.length));let{root:n}=Pr.win32.parse(t.path);t.path=n+Gv(t.path.slice(n.length))}return!0}[iw](t){if(!this[dw](t))return t.resume();switch(Jk.equal(typeof t.absolute,"string"),t.type){case"Directory":case"GNUDumpDir":t.mode&&(t.mode=t.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[_h](t);default:return this[ow](t)}}[jr](t,e){t.name==="CwdError"?this.emit("error",t):(this.warn("TAR_ENTRY_ERROR",t,{entry:e}),this[Zo](),e.resume())}[ns](t,e,r){oD(mt(t),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cwd:this.cwd,mode:e},r)}[Dd](t){return this.forceChown||this.preserveOwner&&(typeof t.uid=="number"&&t.uid!==this.processUid||typeof t.gid=="number"&&t.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[Bd](t){return lw(this.uid,t.uid,this.processUid)}[Pd](t){return lw(this.gid,t.gid,this.processGid)}[yh](t,e){let r=typeof t.mode=="number"?t.mode&4095:this.fmode,i=new Ml(String(t.absolute),{flags:Mw(t.size),mode:r,autoClose:!1});i.on("error",o=>{i.fd&&Ot.close(i.fd,()=>{}),i.write=()=>!0,this[jr](o,t),e()});let n=1,a=o=>{if(o){i.fd&&Ot.close(i.fd,()=>{}),this[jr](o,t),e();return}--n===0&&i.fd!==void 0&&Ot.close(i.fd,d=>{d?this[jr](d,t):this[Zo](),e()})};i.on("finish",()=>{let o=String(t.absolute),d=i.fd;if(typeof d=="number"&&t.mtime&&!this.noMtime){n++;let h=t.atime||new Date,w=t.mtime;Ot.futimes(d,h,w,A=>A?Ot.utimes(o,h,w,D=>a(D&&A)):a())}if(typeof d=="number"&&this[Dd](t)){n++;let h=this[Bd](t),w=this[Pd](t);typeof h=="number"&&typeof w=="number"&&Ot.fchown(d,h,w,A=>A?Ot.chown(o,h,w,D=>a(D&&A)):a())}a()});let s=this.transform&&this.transform(t)||t;s!==t&&(s.on("error",o=>{this[jr](o,t),e()}),t.pipe(s)),s.pipe(i)}[Eh](t,e){let r=typeof t.mode=="number"?t.mode&4095:this.dmode;this[ns](String(t.absolute),r,i=>{if(i){this[jr](i,t),e();return}let n=1,a=()=>{--n===0&&(e(),this[Zo](),t.resume())};t.mtime&&!this.noMtime&&(n++,Ot.utimes(String(t.absolute),t.atime||new Date,t.mtime,a)),this[Dd](t)&&(n++,Ot.chown(String(t.absolute),Number(this[Bd](t)),Number(this[Pd](t)),a)),a()})}[ow](t){t.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${t.type}`,{entry:t}),t.resume()}[aw](t,e){let r=mt(Pr.relative(this.cwd,Pr.resolve(Pr.dirname(String(t.absolute)),String(t.linkpath)))).split("/");this[Id](t,this.cwd,r,()=>this[Ll](t,String(t.linkpath),"symlink",e),i=>{this[jr](i,t),e()})}[sw](t,e){let r=mt(Pr.resolve(this.cwd,String(t.linkpath))),i=mt(String(t.linkpath)).split("/");this[Id](t,this.cwd,i,()=>this[Ll](t,r,"link",e),n=>{this[jr](n,t),e()})}[Id](t,e,r,i,n){let a=r.shift();if(this.preservePaths||a===void 0)return i();let s=Pr.resolve(e,a);Ot.lstat(s,(o,d)=>{if(o)return i();if(d?.isSymbolicLink())return n(new ql(s,Pr.resolve(s,r.join("/"))));this[Id](t,s,r,i,n)})}[pw](){this[wl]++}[Zo](){this[wl]--,this[Qf]()}[vh](t){this[Zo](),t.resume()}[gh](t,e){return t.type==="File"&&!this.unlink&&e.isFile()&&e.nlink<=1&&!Md}[_h](t){this[pw]();let e=[t.path];t.linkpath&&e.push(t.linkpath),this.reservations.reserve(e,r=>this[nw](t,r))}[nw](t,e){let r=s=>{e(s)},i=()=>{this[ns](this.cwd,this.dmode,s=>{if(s){this[jr](s,t),r();return}this[Ud]=!0,n()})},n=()=>{if(t.absolute!==this.cwd){let s=mt(Pr.dirname(String(t.absolute)));if(s!==this.cwd)return this[ns](s,this.dmode,o=>{if(o){this[jr](o,t),r();return}a()})}a()},a=()=>{Ot.lstat(String(t.absolute),(s,o)=>{if(o&&(this.keep||this.newer&&o.mtime>(t.mtime??o.mtime))){this[vh](t),r();return}if(s||this[gh](t,o))return this[Yi](null,t,r);if(o.isDirectory()){if(t.type==="Directory"){let d=this.chmod&&t.mode&&(o.mode&4095)!==t.mode,h=w=>this[Yi](w??null,t,r);return d?Ot.chmod(String(t.absolute),Number(t.mode),h):h()}if(t.absolute!==this.cwd)return Ot.rmdir(String(t.absolute),d=>this[Yi](d??null,t,r))}if(t.absolute===this.cwd)return this[Yi](null,t,r);yD(String(t.absolute),d=>this[Yi](d??null,t,r))})};this[Ud]?n():i()}[Yi](t,e,r){if(t){this[jr](t,e),r();return}switch(e.type){case"File":case"OldFile":case"ContiguousFile":return this[yh](e,r);case"Link":return this[sw](e,r);case"SymbolicLink":return this[aw](e,r);case"Directory":case"GNUDumpDir":return this[Eh](e,r)}}[Ll](t,e,r,i){Ot[r](e,String(t.absolute),n=>{n?this[jr](n,t):(this[Zo](),t.resume()),i()})}},Td=t=>{try{return[null,t()]}catch(e){return[e,null]}},Gw=class extends Ih{sync=!0;[Yi](t,e){return super[Yi](t,e,()=>{})}[_h](t){if(!this[Ud]){let n=this[ns](this.cwd,this.dmode);if(n)return this[jr](n,t);this[Ud]=!0}if(t.absolute!==this.cwd){let n=mt(Pr.dirname(String(t.absolute)));if(n!==this.cwd){let a=this[ns](n,this.dmode);if(a)return this[jr](a,t)}}let[e,r]=Td(()=>Ot.lstatSync(String(t.absolute)));if(r&&(this.keep||this.newer&&r.mtime>(t.mtime??r.mtime)))return this[vh](t);if(e||this[gh](t,r))return this[Yi](null,t);if(r.isDirectory()){if(t.type==="Directory"){let a=this.chmod&&t.mode&&(r.mode&4095)!==t.mode,[s]=a?Td(()=>{Ot.chmodSync(String(t.absolute),Number(t.mode))}):[];return this[Yi](s,t)}let[n]=Td(()=>Ot.rmdirSync(String(t.absolute)));this[Yi](n,t)}let[i]=t.absolute===this.cwd?[]:Td(()=>ED(String(t.absolute)));this[Yi](i,t)}[yh](t,e){let r=typeof t.mode=="number"?t.mode&4095:this.fmode,i=s=>{let o;try{Ot.closeSync(n)}catch(d){o=d}(s||o)&&this[jr](s||o,t),e()},n;try{n=Ot.openSync(String(t.absolute),Mw(t.size),r)}catch(s){return i(s)}let a=this.transform&&this.transform(t)||t;a!==t&&(a.on("error",s=>this[jr](s,t)),t.pipe(a)),a.on("data",s=>{try{Ot.writeSync(n,s,0,s.length)}catch(o){i(o)}}),a.on("end",()=>{let s=null;if(t.mtime&&!this.noMtime){let o=t.atime||new Date,d=t.mtime;try{Ot.futimesSync(n,o,d)}catch(h){try{Ot.utimesSync(String(t.absolute),o,d)}catch{s=h}}}if(this[Dd](t)){let o=this[Bd](t),d=this[Pd](t);try{Ot.fchownSync(n,Number(o),Number(d))}catch(h){try{Ot.chownSync(String(t.absolute),Number(o),Number(d))}catch{s=s||h}}}i(s)})}[Eh](t,e){let r=typeof t.mode=="number"?t.mode&4095:this.dmode,i=this[ns](String(t.absolute),r);if(i){this[jr](i,t),e();return}if(t.mtime&&!this.noMtime)try{Ot.utimesSync(String(t.absolute),t.atime||new Date,t.mtime)}catch{}if(this[Dd](t))try{Ot.chownSync(String(t.absolute),Number(this[Bd](t)),Number(this[Pd](t)))}catch{}e(),t.resume()}[ns](t,e){try{return pD(mt(t),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cwd:this.cwd,mode:e})}catch(r){return r}}[Id](t,e,r,i,n){if(this.preservePaths||r.length===0)return i();let a=e;for(let s of r){a=Pr.resolve(a,s);let[o,d]=Td(()=>Ot.lstatSync(a));if(o)return i();if(d.isSymbolicLink())return n(new ql(a,Pr.resolve(e,r.join("/"))))}i()}[Ll](t,e,r,i){let n=`${r}Sync`;try{Ot[n](e,String(t.absolute)),i(),t.resume()}catch(a){return this[jr](a,t)}}},vD=t=>{let e=new Gw(t),r=t.file,i=Iw.statSync(r),n=t.maxReadSize||16*1024*1024;new UL(r,{readSize:n,size:i.size}).pipe(e)},wD=(t,e)=>{let r=new Ih(t),i=t.maxReadSize||16*1024*1024,n=t.file;return new Promise((a,s)=>{r.on("error",s),r.on("close",a),Iw.stat(n,(o,d)=>{if(o)s(o);else{let h=new Sh(n,{readSize:i,size:d.size});h.on("error",s),h.pipe(r)}})})},E$=Vd(vD,wD,t=>new Gw(t),t=>new Ih(t),(t,e)=>{e?.length&&Sw(t,e)}),SD=(t,e)=>{let r=new xh(t),i=!0,n,a;try{try{n=ki.openSync(t.file,"r+")}catch(d){if(d?.code==="ENOENT")n=ki.openSync(t.file,"w+");else throw d}let s=ki.fstatSync(n),o=Buffer.alloc(512);e:for(a=0;a<s.size;a+=512){for(let w=0,A=0;w<512;w+=A){if(A=ki.readSync(n,o,w,o.length-w,a+w),a===0&&o[0]===31&&o[1]===139)throw new Error("cannot append to compressed archives");if(!A)break e}let d=new Qs(o);if(!d.cksumValid)break;let h=512*Math.ceil((d.size||0)/512);if(a+h+512>s.size)break;a+=h,t.mtimeCache&&d.mtime&&t.mtimeCache.set(String(d.path),d.mtime)}i=!1,RD(t,r,a,n,e)}finally{if(i)try{ki.closeSync(n)}catch{}}},RD=(t,e,r,i,n)=>{let a=new fw(t.file,{fd:i,start:r});e.pipe(a),AD(e,n)},bD=(t,e)=>{e=Array.from(e);let r=new Hl(t),i=(n,a,s)=>{let o=(D,I)=>{D?ki.close(n,R=>s(D)):s(null,I)},d=0;if(a===0)return o(null,0);let h=0,w=Buffer.alloc(512),A=(D,I)=>{if(D||I===void 0)return o(D);if(h+=I,h<512&&I)return ki.read(n,w,h,w.length-h,d+h,A);if(d===0&&w[0]===31&&w[1]===139)return o(new Error("cannot append to compressed archives"));if(h<512)return o(null,d);let R=new Qs(w);if(!R.cksumValid)return o(null,d);let F=512*Math.ceil((R.size??0)/512);if(d+F+512>a||(d+=F+512,d>=a))return o(null,d);t.mtimeCache&&R.mtime&&t.mtimeCache.set(String(R.path),R.mtime),h=0,ki.read(n,w,0,512,d,A)};ki.read(n,w,0,512,d,A)};return new Promise((n,a)=>{r.on("error",a);let s="r+",o=(d,h)=>{if(d&&d.code==="ENOENT"&&s==="r+")return s="w+",ki.open(t.file,s,o);if(d||!h)return a(d);ki.fstat(h,(w,A)=>{if(w)return ki.close(h,()=>a(w));i(h,A.size,(D,I)=>{if(D)return a(D);let R=new Ml(t.file,{fd:h,start:I});r.pipe(R),R.on("error",a),R.on("close",n),OD(r,e)})})};ki.open(t.file,s,o)})},AD=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?$l({file:qw.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onReadEntry:i=>t.add(i)}):t.add(r)}),t.end()},OD=async(t,e)=>{for(let r of e)r.charAt(0)==="@"?await $l({file:qw.resolve(String(t.cwd),r.slice(1)),noResume:!0,onReadEntry:i=>t.add(i)}):t.add(r);t.end()},xd=Vd(SD,bD,()=>{throw new TypeError("file is required")},()=>{throw new TypeError("file is required")},(t,e)=>{if(!qL(t))throw new TypeError("file is required");if(t.gzip||t.brotli||t.zstd||t.file.endsWith(".br")||t.file.endsWith(".tbr"))throw new TypeError("cannot append to compressed archives");if(!e?.length)throw new TypeError("no paths specified to add/replace")}),S$=Vd(xd.syncFile,xd.asyncFile,xd.syncNoFile,xd.asyncNoFile,(t,e=[])=>{xd.validate?.(t,e),ND(t)}),ND=t=>{let e=t.filter;t.mtimeCache||(t.mtimeCache=new Map),t.filter=e?(r,i)=>e(r,i)&&!((t.mtimeCache?.get(r)??i.mtime??0)>(i.mtime??0)):(r,i)=>!((t.mtimeCache?.get(r)??i.mtime??0)>(i.mtime??0))};var Kw=[".git","node_modules",".cli.json",".DS_Store"];async function BD(t){if(!jl(os(t,".git")))return null;try{let{stdout:e}=await DD(xD)("git",["-C",t,"ls-files","-z","--cached","--others","--exclude-standard"],{maxBuffer:67108864});return e.split("\0").filter(Boolean)}catch{return null}}async function PD(t,e){let r=[],i=async n=>{for(let a of await ID(n,{withFileTypes:!0})){let s=LD(t,os(n,a.name)).split(kD).join("/");e.ignores(a.isDirectory()?`${s}/`:s)||(a.isDirectory()?await i(os(n,a.name)):(a.isFile()||a.isSymbolicLink())&&r.push(s))}};return await i(t),r}async function UD(t){let e=(0,Ch.default)().add(Kw.flatMap(i=>[i,`${i}/`]));for(let i of[".gitignore",".cliignore"])jl(os(t,i))&&e.add(await jw(os(t,i),"utf8"));let r=await BD(t);if(r){let i=(0,Ch.default)().add(Kw.flatMap(a=>[a,`${a}/`]));jl(os(t,".cliignore"))&&i.add(await jw(os(t,".cliignore"),"utf8"));let n=[];for(let a of r)!i.ignores(a)&&jl(os(t,a))&&n.push(a);return n.sort()}return(await PD(t,e)).sort()}async function Ww(t,e){let r=await UD(t);if(!r.length)throw new Error("Nothing to upload: the folder is empty or everything in it is ignored.");return await xw({gzip:!0,cwd:t,file:e,portable:!0,noMtime:!1,follow:!1},r),{files:r.length,bytes:(await CD(e)).size}}var ge=class extends Error{},eB=`cli: deploy and run apps on CLI
|
|
32
|
+
|
|
33
|
+
Usage: cli <command> [options]
|
|
34
|
+
|
|
35
|
+
Getting started
|
|
36
|
+
login [--email you@x.com] [--token cli_\u2026] Sign in (email code by default)
|
|
37
|
+
logout Forget the saved session
|
|
38
|
+
whoami Who you're signed in as
|
|
39
|
+
init [name] Create a project and link this folder to it
|
|
40
|
+
link [--project id] [--service name] Link this folder to an existing project
|
|
41
|
+
unlink Remove this folder's link
|
|
42
|
+
|
|
43
|
+
Deploying
|
|
44
|
+
up [path] [--service name] [--port n] [--message text] [--detach]
|
|
45
|
+
Upload this folder and deploy it
|
|
46
|
+
add postgres|mysql|redis|mongo [--name n] Add a database and connect it to the service
|
|
47
|
+
add --image <ref> [--name n] [--port n] [--start "cmd"]
|
|
48
|
+
Add a service from a Docker image and deploy it
|
|
49
|
+
(private: CLI_REGISTRY_USER / CLI_REGISTRY_PASSWORD)
|
|
50
|
+
deploy [--service name] Redeploy from the service's source
|
|
51
|
+
status Services, URLs and recent deploys
|
|
52
|
+
logs [-f] [-n lines] [--deploy id] App output (follow with -f), or a deploy's build logs
|
|
53
|
+
[--grep text|/regex/] [--level error|warn] Search the last 5000 lines
|
|
54
|
+
open Open the service's URL
|
|
55
|
+
rm [service] [--delete-data] [--yes] Delete a service (its data is kept unless --delete-data)
|
|
56
|
+
|
|
57
|
+
Configuration
|
|
58
|
+
env List variables
|
|
59
|
+
env set KEY=value \u2026 [--plain] Set variables (hidden unless --plain)
|
|
60
|
+
env unset KEY \u2026 Remove variables
|
|
61
|
+
domains List domains
|
|
62
|
+
domains generate [name] Get a hosted <name>.<app domain> address
|
|
63
|
+
domains add <hostname> Add your own domain (prints DNS records)
|
|
64
|
+
domains verify <id> | rm <id> Check DNS / remove a domain
|
|
65
|
+
|
|
66
|
+
Databases
|
|
67
|
+
db create postgres|mysql|redis|mongo [--name n] [--link]
|
|
68
|
+
Create a private database (--link: connect it to the service)
|
|
69
|
+
db link <database> [--var NAME] Give the service its connection URL
|
|
70
|
+
db backups <database> List backups
|
|
71
|
+
db backup <database> Back up now
|
|
72
|
+
db restore <backupId> [--yes] Replace the data with a backup
|
|
73
|
+
|
|
74
|
+
Running
|
|
75
|
+
scale <n> Run n copies behind the address (next deploy)
|
|
76
|
+
volume add <path> | volume rm Persistent disk for the service (next deploy)
|
|
77
|
+
health Up or down, uptime and recent incidents
|
|
78
|
+
cron List cron jobs (schedules are UTC)
|
|
79
|
+
cron add <name> "<schedule>" "<command>" e.g. cron add backup "0 3 * * *" "node backup.js"
|
|
80
|
+
cron run|logs|pause|resume|rm <name> Run now, last output, pause, resume, delete
|
|
81
|
+
|
|
82
|
+
Variables
|
|
83
|
+
env import [file] Set variables from a .env file (default .env)
|
|
84
|
+
env check Check that every \${{service.KEY}} reference resolves
|
|
85
|
+
vars Project-wide shared variables (use as \${{shared.KEY}})
|
|
86
|
+
vars set KEY=value \u2026 | vars unset KEY \u2026 Change shared variables
|
|
87
|
+
|
|
88
|
+
Templates
|
|
89
|
+
templates One-click stacks you can deploy
|
|
90
|
+
template <id> [key=value \u2026] Deploy one into this project (inputs as key=value)
|
|
91
|
+
|
|
92
|
+
Agents and safety
|
|
93
|
+
approvals Requests from agents waiting for a person
|
|
94
|
+
approve <id> | deny <id> Decide one
|
|
95
|
+
keys API keys for agents and CI
|
|
96
|
+
keys create <name> [--role agent] [--days 90] [--cap usd]
|
|
97
|
+
keys revoke <id> | keys revoke-all Revoke one, or every key and agent at once
|
|
98
|
+
events [-f] [--kinds deploy_failed,\u2026] What happened in the project (follow with -f)
|
|
99
|
+
notify Alert channels
|
|
100
|
+
notify add slack|discord <webhook-url> Send alerts to Slack or Discord
|
|
101
|
+
notify add telegram <bot-token> <chat-id> Send alerts to Telegram
|
|
102
|
+
notify test|rm <id> Send a test message / remove a channel
|
|
103
|
+
|
|
104
|
+
Environments
|
|
105
|
+
environments Production and its copies (staging, dev\u2026)
|
|
106
|
+
environments create <name> [--from env] Copy services and variables, with fresh databases
|
|
107
|
+
environments rm <name> Delete an environment and its data
|
|
108
|
+
-e, --environment <name> Run any command against an environment
|
|
109
|
+
|
|
110
|
+
Running locally and remotely
|
|
111
|
+
run <command\u2026> Run a local command with the service's variables
|
|
112
|
+
dev [--tunnel port] [--no-db] <command\u2026> Like run, with the project's databases opened to this
|
|
113
|
+
machine for 4 hours (--tunnel: public URL as PUBLIC_URL)
|
|
114
|
+
tunnel <port> [--name n] A public https address for a port on this machine
|
|
115
|
+
|
|
116
|
+
Storage, queues and GPUs
|
|
117
|
+
buckets | bucket create <name> [--public] Object storage (the linked service gets BUCKET_URL/TOKEN)
|
|
118
|
+
bucket put <bucket> <file> [key] Upload a file
|
|
119
|
+
bucket url <bucket> <key> [--days n] A link anyone can open until it expires
|
|
120
|
+
queues | queue create <name> [--push /p] Message queues (pull, or pushed to the service at /p)
|
|
121
|
+
gpu [kind [count] | off] GPUs for the service (no argument: what's offered)
|
|
122
|
+
|
|
123
|
+
Moving in and working with agents
|
|
124
|
+
import [provider] [--apply] Recreate a Railway/Heroku/Render/Fly/Vercel/Compose setup here (or a CLI export)
|
|
125
|
+
export [--no-dumps] [--out file] Download everything needed to run this project elsewhere
|
|
126
|
+
shadow <service> [--percent n] [--minutes n] Try the next version on a copy of live traffic
|
|
127
|
+
fixes <deployId> What fixed failures like this one elsewhere
|
|
128
|
+
provenance <deployId> The signed record of how a build was made
|
|
129
|
+
[--from <railway project|heroku app>] \u2026through their API (RAILWAY_TOKEN / HEROKU_API_KEY)
|
|
130
|
+
find <words> [--tag t] Search the directory of paid APIs
|
|
131
|
+
changes [id] [approve|reject] Changes agents proposed, built as previews
|
|
132
|
+
|
|
133
|
+
Money
|
|
134
|
+
earnings What paid routes, streams and subscriptions earned
|
|
135
|
+
withdraw <usd> <address> [--network n] Send earnings to a wallet (owners; second factor)
|
|
136
|
+
deposit [card <usd>] This project's USDC deposit address, or pay by card
|
|
137
|
+
statement [YYYY-MM] [--csv] The month's statement (printable or for accounting)
|
|
138
|
+
|
|
139
|
+
Secrets and trust
|
|
140
|
+
secrets Syncs and rotations
|
|
141
|
+
secrets sync doppler <token> Keep variables in step with Doppler (also vault, http)
|
|
142
|
+
[--shared] [--redeploy] \u2026into shared variables / redeploy on change
|
|
143
|
+
secrets rotate <KEY> [--every days] Rotate a secret now and on a schedule (databases: no KEY)
|
|
144
|
+
agents Agents' track records (score, deploys, undos)
|
|
145
|
+
receipts [on|off] Seal the audit log on chain
|
|
146
|
+
|
|
147
|
+
Debugging
|
|
148
|
+
ask "<question>" Ask the service's logs, deploys and errors a question
|
|
149
|
+
errors [id] [--all] Grouped exceptions from the app (OpenTelemetry)
|
|
150
|
+
errors resolve|ignore|reopen <id> Mark one
|
|
151
|
+
traces [--slow] [--failed] Recent requests with timings, and the slowest routes
|
|
152
|
+
exec "<command>" Run a command in the live container
|
|
153
|
+
shell A command prompt inside the live container
|
|
154
|
+
sleep <minutes>|off Sleep after this long without traffic (wakes on request)
|
|
155
|
+
db query <database> "<sql>" [--write] Query Postgres or MySQL (read-only unless --write)
|
|
156
|
+
db tables <database> List tables with row counts
|
|
157
|
+
db connect <database> [--public|--private] Connection URL; --public opens a port for your machine
|
|
158
|
+
|
|
159
|
+
Team
|
|
160
|
+
members Who has access, and their roles
|
|
161
|
+
members add <email> [--role developer] Invite someone (viewer, developer, admin)
|
|
162
|
+
members rm <email|wallet> Remove someone
|
|
163
|
+
audit [-n 20] Who changed what
|
|
164
|
+
|
|
165
|
+
Money
|
|
166
|
+
usage [--hours 24] Spend, burn rate, runway and plan advice
|
|
167
|
+
topup <usd> Add credit by card (opens checkout)
|
|
168
|
+
|
|
169
|
+
Options: --json for machine-readable output, --project/--service to override the link,
|
|
170
|
+
--dry-run on deploy, scale, volume, db create, template and rm to see the plan without changing anything.
|
|
171
|
+
Environment: CLI_TOKEN and CLI_API_URL override the saved config (handy in CI).`,Vt=t=>`$${(t/1e6).toFixed(t!==0&&Math.abs(t)<1e4?4:2)}`,$d=t=>t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/1024/1024).toFixed(1)} MB`,Bi=(t,e=Date.now())=>{let r=Math.max(0,Math.round((e-t)/1e3));return r<60?`${r}s ago`:r<3600?`${Math.round(r/60)}m ago`:r<86400?`${Math.round(r/3600)}h ago`:`${Math.round(r/86400)}d ago`};function Qt(t){let e=t.map(i=>i.map(n=>n==null?"":String(n))),r=e[0].map((i,n)=>Math.max(...e.map(a=>a[n]?.length??0)));return e.map(i=>i.map((n,a)=>a===i.length-1?n:n.padEnd(r[a])).join(" ").trimEnd())}var tB=new Set(["healthy","failed","cancelled","superseded"]),rB={queued:"Queued",building:"Building",deploying:"Starting",healthy:"Live",failed:"Failed",cancelled:"Cancelled"};async function Jw(t,e){let{values:r,positionals:i}=QD({args:t,allowPositionals:!0,strict:!1,options:{json:{type:"boolean"},help:{type:"boolean",short:"h"},email:{type:"string"},token:{type:"string"},api:{type:"string"},project:{type:"string"},service:{type:"string"},port:{type:"string"},message:{type:"string",short:"m"},detach:{type:"boolean",short:"d"},follow:{type:"boolean",short:"f"},lines:{type:"string",short:"n"},deploy:{type:"string"},plain:{type:"boolean"},name:{type:"string"},var:{type:"string"},yes:{type:"boolean",short:"y"},link:{type:"boolean"},image:{type:"string"},start:{type:"string"},hours:{type:"string"},role:{type:"string"},"dry-run":{type:"boolean"},"delete-data":{type:"boolean"},grep:{type:"string"},level:{type:"string"},environment:{type:"string",short:"e"},from:{type:"string"},write:{type:"boolean"},public:{type:"boolean"},private:{type:"boolean"},days:{type:"string"},cap:{type:"string"},kinds:{type:"string"},tunnel:{type:"string"},"no-db":{type:"boolean"},slow:{type:"boolean"},all:{type:"boolean"},push:{type:"string"},shared:{type:"boolean"},every:{type:"string"},redeploy:{type:"boolean"},csv:{type:"boolean"},apply:{type:"boolean"},tag:{type:"string"},network:{type:"string"},failed:{type:"boolean"}}}),[n,...a]=i,s=!!r.json,o=N=>typeof r[N]=="string"?r[N]:void 0,d=(N,O)=>s?e.out(JSON.stringify(N,null,2)):O(),h=e.sleep??(N=>new Promise(O=>setTimeout(O,N))),w=Number(e.env.CLI_POLL_MS??1500);if(!n||r.help||n==="help")return e.out(eB),n||r.help?0:1;let A=await fv(e.env);o("api")&&(A.api=o("api").replace(/\/$/,""));let D=()=>new J0({baseUrl:A.api,token:A.token}),I=!!r["dry-run"],R=async(N,O,c)=>{if(!A.token)throw new ge("Not signed in. Run `cli login` first (or set CLI_TOKEN).");let m=I&&N!=="GET"?`${O}${O.includes("?")?"&":"?"}dryRun=true`:O;return D().request(N,m,c,e.env.CLI_APPROVAL&&N!=="GET"?{"x-cli-approval":e.env.CLI_APPROVAL}:void 0)},F=N=>N?.dryRun?(d(N,()=>{e.out("Plan (nothing was changed):");for(let[O,c]of Object.entries(N.plan??{}))e.out(` ${O}: ${typeof c=="number"&&/cost|Cost|PerHour/.test(O)?`${Vt(c)}/h`:typeof c=="object"?JSON.stringify(c):c}`)}),!0):!1,$=await hv(e.cwd),H=async()=>{let N=o("project")??$?.link.projectId;if(!N)throw new ge("This folder isn't linked to a project. Run `cli init` to create one or `cli link` to pick one.");return N},L=null,q=async()=>{let N=await H(),O=o("environment")??e.env.CLI_ENVIRONMENT;if(!O||O==="production")return N;if(L)return L;let c=await R("GET",`/v1/projects/${N}/environments`),m=c.environments.find(v=>v.name===O||v.id===O);if(!m)throw new ge(`No ${O} environment. Environments: ${c.environments.map(v=>v.name).join(", ")}. Create one with \`cli environments create ${O}\`.`);return L=m.id},W=async(N,O={})=>{let c=await q(),m=await R("GET",`/v1/projects/${c}`),v=N??o("service")??$?.link.serviceId;if(v){let P=m.services.find(_=>_.id===v||_.name===v);if(P||O.allowMissing)return P??null;throw new ge(`No service "${v}" in ${m.name}. Services: ${m.services.map(_=>_.name).join(", ")||"none yet"}.`)}let T=m.services.filter(P=>P.kind==="app"&&!P.preview);if(T.length===1)return T[0];if(O.allowMissing)return null;throw new ge(T.length?`Pick a service with --service (${T.map(P=>P.name).join(", ")}).`:"No services yet. Deploy one with `cli up`.")},se=async N=>{let O="";for(;;){let c=await R("GET",`/v1/deploys/${N}`);if(c.status!==O&&!s&&e.out(` ${rB[c.status]??c.status}${c.status==="healthy"&&c.url?`: ${c.url}`:""}`),O=c.status,tB.has(c.status)){if(s&&e.out(JSON.stringify(c,null,2)),c.status==="healthy")return 0;if(c.error&&!s){e.err(`
|
|
172
|
+
${c.error.code}: ${c.error.summary??""}`);for(let m of c.error.detail?.evidence??[])e.err(` > ${m}`);c.error.remediation?.forEach((m,v)=>e.err(` ${v+1}. ${m}`)),e.err(`
|
|
173
|
+
Full logs: cli logs --deploy ${c.id}`)}return 1}await h(w)}};try{switch(n){case"login":{if(o("token")){A.token=o("token");let N=await R("GET","/v1/me");A.principal=N.wallet}else{let N=o("email")??(await e.prompt("Email: ")).trim();if(!N)throw new ge("An email is needed to sign in.");await D().request("POST","/v1/auth/email/start",{email:N}),e.out(`We sent a 6-digit code to ${N}.`);let O=(await e.prompt("Code: ")).replace(/\D/g,""),c=await D().request("POST","/v1/auth/email/verify",{email:N,code:O});A.token=c.token,A.principal=c.principal}return await vf(e.env,A),d({principal:A.principal,api:A.api},()=>e.out(`Signed in as ${(A.principal??"").replace(/^email:/,"")}.`)),0}case"logout":return A.token&&await D().request("POST","/v1/auth/logout").catch(()=>{}),await vf(e.env,{api:A.api}),e.out("Signed out."),0;case"whoami":{let N=await R("GET","/v1/me");return d(N,()=>e.out(`${N.email??(N.github?`@${N.github.login}`:N.wallet)} on ${A.api}, ${N.projects.length} project${N.projects.length===1?"":"s"}`)),0}case"projects":{if(a[0]==="create"){let O=await R("POST","/v1/projects",{name:a[1]??a1(e.cwd)});return d(O,()=>e.out(`Created ${O.name} (${O.id}).`)),0}let{projects:N}=await R("GET","/v1/projects");return d(N,()=>N.length?Qt([["ID","NAME","CREDIT"],...N.map(O=>[O.id,O.name,Vt(O.balance)])]).forEach(O=>e.out(O)):e.out("No projects yet. Run `cli init`.")),0}case"init":{let N=a[0]??a1(e.cwd),O=await R("POST","/v1/projects",{name:N}),c=await Q0(e.cwd,{projectId:O.id});return d({project:O,linkFile:c},()=>{e.out(`Created project ${O.name} and linked this folder (${a1(c)}).`),e.out("Add credit with `cli topup 10`, then run `cli up`.")}),0}case"link":{let N=o("project");if(!N){let{projects:m}=await R("GET","/v1/projects");if(!m.length)throw new ge("You have no projects. Run `cli init` to create one.");m.forEach((T,P)=>e.out(` ${P+1}. ${T.name} (${T.id})`));let v=Number((await e.prompt("Project number: ")).trim());if(N=m[v-1]?.id,!N)throw new ge("That isn't one of the listed projects.")}let O=await R("GET",`/v1/projects/${N}`),c={projectId:O.id};if(o("service")){let m=O.services.find(v=>v.id===o("service")||v.name===o("service"));if(!m)throw new ge(`No service "${o("service")}" in ${O.name}.`);c.serviceId=m.id}return await Q0(e.cwd,c),d(c,()=>e.out(`Linked this folder to ${O.name}${c.serviceId?` / ${o("service")}`:""}.`)),0}case"unlink":{if(!$)throw new ge("This folder isn't linked.");return await mv($.file),e.out("Unlinked."),0}case"up":{let N=await q(),O=a[0]?to(e.cwd,a[0]):e.cwd;if(!(await XD(O).catch(()=>null))?.isDirectory())throw new ge(`${O} isn't a folder.`);let c=await W(void 0,{allowMissing:!0});if(!c){let v=(o("service")??a1(O)).toLowerCase().replace(/[^a-z0-9-]/g,"-").replace(/^[^a-z]+/,"").slice(0,40)||"app";c=await R("POST",`/v1/projects/${N}/services`,{name:v,source:{type:"upload"},port:Number(o("port")??8080)}),s||e.out(`Created service ${c.name} (port ${c.port}).`)}$&&!$.link.serviceId&&$.link.projectId===N&&await Q0(e.cwd,{...$.link,serviceId:c.id});let m=await WD(to(ZD(),"cli-up-"));try{let v=to(m,"src.tgz"),T=await Ww(O,v),P=(await D().request("GET","/v1/config").catch(()=>({}))).uploadMaxMb;if(P&&T.bytes>P*1024*1024)throw new ge(`This folder packs to ${$d(T.bytes)}, over the ${P} MB upload limit. List large files or build output in .cliignore.`);s||e.out(`Uploading ${T.files} files (${$d(T.bytes)}) to ${c.name}\u2026`);let _=o("message")?`?message=${encodeURIComponent(o("message"))}`:"",p=await fetch(`${A.api}/v1/services/${c.id}/deploys/upload${_}`,{method:"POST",headers:{authorization:`Bearer ${A.token}`,"content-type":"application/gzip","content-length":String(T.bytes)},body:KD(v),duplex:"half"}),l=await p.json().catch(()=>({}));if(!p.ok)throw new Bn(p.status,l);return r.detach?(d(l,()=>e.out(`Deploy ${l.id} started. Check it with \`cli status\`.`)),0):(s||e.out(`Deploy ${l.id}`),await se(l.id))}finally{await YD(m,{recursive:!0,force:!0})}}case"add":{let N=await q();if(o("image")){let v=o("image"),T=(o("name")??v.split("/").pop().split(/[:@]/)[0]).toLowerCase().replace(/[^a-z0-9-]/g,"-").replace(/^[^a-z]+/,"").slice(0,40)||"app",P=e.env.CLI_REGISTRY_USER&&e.env.CLI_REGISTRY_PASSWORD?{username:e.env.CLI_REGISTRY_USER,password:e.env.CLI_REGISTRY_PASSWORD,...v.includes(".")&&v.split("/")[0].includes(".")?{server:v.split("/")[0]}:{}}:void 0,_=await R("POST",`/v1/projects/${N}/services`,{name:T,source:{type:"image",image:v,...P?{registry:P}:{}},...o("port")?{port:Number(o("port"))}:{},...o("start")?{startCommand:o("start")}:{}});s||e.out(`Created ${_.name} from ${v}${P?" (private registry)":""}.`);let p=await R("POST",`/v1/services/${_.id}/deploys`);return r.detach?(d({service:_,deploy:p},()=>e.out(`Deploy ${p.id} started.`)),0):await se(p.id)}let O=a[0];if(!["postgres","mysql","redis","mongo"].includes(O??""))throw new ge("Usage: cli add postgres|mysql|redis|mongo, or cli add --image <ref>");let c=await W(void 0,{allowMissing:!0}),m=await R("POST",`/v1/projects/${N}/databases`,{kind:O,...o("name")?{name:o("name")}:{},...c?{linkTo:c.id}:{}});return d(m,()=>{e.out(`Creating ${m.name}, private to this project at ${m.database.host}:${m.database.port}.`),m.linked&&e.out(`${m.linked.var} is set on ${c.name}. Run \`cli deploy\` once ${m.name} is up.`)}),0}case"deploy":{let N=await W(),O=await R("POST",`/v1/services/${N.id}/deploys`);return F(O)?0:r.detach?(d(O,()=>e.out(`Deploy ${O.id} started.`)),0):(s||e.out(`Deploy ${O.id}`),await se(O.id))}case"environments":{let N=await H(),O=a[0];if(O==="create"){if(!a[1])throw new ge("Usage: cli environments create <name> [--from production]");let m=await R("POST",`/v1/projects/${N}/environments`,{name:a[1],...o("from")?{from:o("from")}:{}});return F(m)||d(m,()=>{e.out(`Created ${m.environment} with ${m.services.map(v=>v.name).join(", ")||"no services"}. Nothing runs until you deploy.`),e.out(`Use it with --environment ${m.environment}, e.g. cli deploy -e ${m.environment}`)}),0}if(O==="rm"){if(!a[1])throw new ge("Usage: cli environments rm <name>");let v=(await R("GET",`/v1/projects/${N}/environments`)).environments.find(T=>T.name===a[1]);if(!v)throw new ge(`No ${a[1]} environment.`);if(v.production)throw new ge("Production is the project itself.");return!r.yes&&(await e.prompt(`Delete ${v.name} and all its data? Type its name: `)).trim()!==v.name?1:(await R("DELETE",`/v1/projects/${v.id}`),e.out(`Deleted ${v.name}.`),0)}let c=await R("GET",`/v1/projects/${N}/environments`);return d(c.environments,()=>e.out(Qt([["NAME","SERVICES","RUNNING","ID"],...c.environments.map(m=>[m.name,m.services,m.running,m.id])]).join(`
|
|
174
|
+
`))),0}case"run":{let N=await W();if(!a.length)throw new ge("Usage: cli run <command\u2026>, e.g. cli run npm run dev");let O=await R("GET",`/v1/services/${N.id}/env/export`);if(O.missing?.length&&e.err(`Warning: ${O.missing.join(", ")} don't point at anything.`),!e.spawn)throw new ge("Running local commands isn't available here.");return await e.spawn(a[0],a.slice(1),O.vars)}case"dev":{let N=await W();if(!a.length)throw new ge("Usage: cli dev [--no-db] [--tunnel port] <command\u2026>, e.g. cli dev npm run dev");if(!e.spawn)throw new ge("Running local commands isn't available here.");let c={...(await R("GET",`/v1/services/${N.id}/env/export`)).vars};if(!r["no-db"]){let T=(await R("GET",`/v1/projects/${N.projectId}`)).services;for(let P of T.filter(_=>_.kind!=="app"&&_.id!==N.id)){let _=await R("GET",`/v1/services/${P.id}/connection`).catch(()=>null),p=_?Object.keys(c).filter(g=>c[g]===_.private.url):[];if(!p.length)continue;await R("PATCH",`/v1/services/${P.id}`,{publicTcp:{hours:4,allowFrom:"me"}});let l=await R("GET",`/v1/services/${P.id}/connection`);if(l.public){for(let g of p)c[g]=l.public.url;e.err(`${P.name}: reachable from this machine only, for 4 hours (${p.join(", ")})`)}}}let m=o("tunnel"),v;if(m){let T=await R("POST",`/v1/projects/${N.projectId}/tunnels`,{name:N.name.toLowerCase().replace(/[^a-z0-9-]/g,"-").slice(0,30)||"dev"}),P=new AbortController;v=()=>P.abort();let{runTunnel:_}=await Promise.resolve().then(()=>(Dh(),kh));_({connect:`${A.api.replace(/^http/,"ws")}/v1/tunnels/connect?token=${T.token}`,target:`http://127.0.0.1:${m}`,signal:P.signal,log:p=>e.err(`tunnel: ${p}`)}),c.PUBLIC_URL=T.url,e.err(`Public address for port ${m}: ${T.url}`)}try{return await e.spawn(a[0],a.slice(1),c)}finally{v?.()}}case"ask":{let N=await W(),O=a.join(" ").trim();if(O.length<3)throw new ge('Usage: cli ask "<question>", e.g. cli ask "why did checkout start failing?"');let c=await R("POST",`/v1/services/${N.id}/ask`,{question:O});return d(c,()=>{e.out(c.answer),c.evidence?.length&&e.out(`
|
|
175
|
+
From the logs:
|
|
176
|
+
${c.evidence.map(m=>` ${m}`).join(`
|
|
177
|
+
`)}`),c.next?.length&&e.out(`
|
|
178
|
+
Next:
|
|
179
|
+
${c.next.map(m=>` - ${m}`).join(`
|
|
180
|
+
`)}`)}),0}case"errors":{let N=await q();if(a[0]==="resolve"||a[0]==="ignore"||a[0]==="reopen"){if(!a[1])throw new ge(`Usage: cli errors ${a[0]} <id>`);let c=await R("PATCH",`/v1/errors/${a[1]}`,{status:a[0]==="resolve"?"resolved":a[0]==="ignore"?"ignored":"open"});return d(c,()=>e.out(`${c.id} is ${c.status}`)),0}if(a[0]){let c=await R("GET",`/v1/errors/${a[0]}`);return d(c,()=>{e.out(`${c.type}: ${c.message}
|
|
181
|
+
${c.count} times, first ${new Date(c.firstSeen).toISOString()}, last ${new Date(c.lastSeen).toISOString()} (${c.status})
|
|
182
|
+
`),e.out(c.stack||c.frame),c.traceIds.length&&e.out(`
|
|
183
|
+
Traces: ${c.traceIds.slice(0,5).join(", ")}`)}),0}let O=await R("GET",`/v1/projects/${N}/errors?status=${r.all?"":"open"}`);return d(O.errors,()=>e.out(O.errors.length?Qt([["ID","COUNT","LAST SEEN","ERROR"],...O.errors.map(c=>[c.id,String(c.count),Bi(c.lastSeen),`${c.type}: ${c.message}`.slice(0,80)])]).join(`
|
|
184
|
+
`):"No open errors. (Apps report them through OpenTelemetry; CLI sets it up at deploy.)")),0}case"traces":{let N=await W(),O=await R("GET",`/v1/services/${N.id}/traces?sort=${r.slow?"slow":"recent"}${r.failed?"&failed=1":""}&limit=20`);return d(O,()=>{if(!O.traces.length)return e.out("No traces yet. Any OpenTelemetry SDK in the app sends them; the variables are already set.");e.out(Qt([["TRACE","WHEN","MS","REQUEST"],...O.traces.map(c=>[c.traceId.slice(0,16),Bi(c.at),String(c.ms),`${c.failed?"\u2717 ":""}${c.name}${c.status?` \u2192 ${c.status}`:""}`])]).join(`
|
|
185
|
+
`)),O.routes.length&&e.out(`
|
|
186
|
+
${Qt([["ROUTE","REQUESTS","P50","P95","ERRORS"],...O.routes.slice(0,10).map(c=>[c.name,String(c.requests),`${c.p50}ms`,`${c.p95}ms`,`${Math.round(c.errorRate*100)}%`])]).join(`
|
|
187
|
+
`)}`)}),0}case"buckets":case"bucket":{let N=await q(),O=n==="buckets"?"ls":a[0]??"ls",c=async()=>(await R("GET",`/v1/projects/${N}/buckets`)).buckets,m=async v=>{if(!v)throw new ge(`Usage: cli bucket ${O} <bucket> \u2026`);let T=(await c()).find(P=>P.name===v||P.id===v);if(!T)throw new ge(`No bucket ${v}. Create it with \`cli bucket create ${v}\`.`);return T};if(O==="ls"){let v=await c();return d(v,()=>e.out(v.length?Qt([["NAME","OBJECTS","SIZE","ACCESS"],...v.map(T=>[T.name,String(T.objects),`${(T.bytes/1e6).toFixed(1)} MB`,T.public?"public reads":"token or signed link"])]).join(`
|
|
188
|
+
`):"No buckets yet. `cli bucket create uploads` makes one and gives the linked service BUCKET_URL and BUCKET_TOKEN.")),0}if(O==="create"){if(!a[1])throw new ge("Usage: cli bucket create <name> [--public]");let v=await W(void 0,{allowMissing:!0}).catch(()=>null),T=await R("POST",`/v1/projects/${N}/buckets`,{name:a[1],public:!!r.public,...v?.kind==="app"?{link:{serviceId:v.id}}:{}});return d(T,()=>{e.out(`Created ${T.name}${T.linked.length?`; ${v.name} gets ${T.linked.join(", ")} on its next deploy`:""}.`),T.linked.length||e.out(`Token (shown once): ${T.token}`)}),0}if(O==="put"){let v=await m(a[1]);if(!a[2])throw new ge("Usage: cli bucket put <bucket> <file> [key]");let T=a[3]??a[2].split("/").pop(),P=await Kl(a[2]),_=await fetch(`${A.api}/v1/buckets/${v.id}/o/${T.split("/").map(encodeURIComponent).join("/")}`,{method:"PUT",headers:{authorization:`Bearer ${A.token}`,"content-type":"application/octet-stream"},body:P}),p=await _.json();if(!_.ok)throw new ge(p.error?.message??`Upload failed (${_.status})`);return d(p,()=>e.out(`${T}: ${p.size} bytes`)),0}if(O==="url"){let v=await m(a[1]);if(!a[2])throw new ge("Usage: cli bucket url <bucket> <key> [--days n]");let T=await R("POST",`/v1/buckets/${v.id}/sign`,{key:a[2],seconds:Math.round(Number(o("days")??1)*86400)});return d(T,()=>e.out(T.url)),0}throw new ge("Usage: cli bucket ls | create <name> [--public] | put <bucket> <file> [key] | url <bucket> <key>")}case"queues":case"queue":{let N=await q(),O=n==="queues"?"ls":a[0]??"ls";if(O==="ls"){let c=(await R("GET",`/v1/projects/${N}/queues`)).queues;return d(c,()=>e.out(c.length?Qt([["NAME","READY","IN FLIGHT","DEAD","DELIVERY"],...c.map(m=>[m.name,String(m.ready),String(m.inFlight),String(m.dead),m.push?`push to ${m.push.path}`:"pull"])]).join(`
|
|
189
|
+
`):"No queues yet. `cli queue create jobs` makes one.")),0}if(O==="create"){if(!a[1])throw new ge("Usage: cli queue create <name> [--push /path]");let c=await W(void 0,{allowMissing:!0}).catch(()=>null),m=o("push"),v=await R("POST",`/v1/projects/${N}/queues`,{name:a[1],...c&&c.kind==="app"?{link:{serviceIds:[c.id]}}:{},...m&&c?{push:{serviceId:c.id,path:m}}:{}});return d(v,()=>e.out(`Created ${v.name}${c?`; ${c.name} gets QUEUE_URL and QUEUE_TOKEN on its next deploy`:`. Token (shown once): ${v.token}`}.${m?` Messages are POSTed to ${m}.`:""}`)),0}throw new ge("Usage: cli queues | queue create <name> [--push /path]")}case"gpu":{let N=await W();if(!a[0]){let m=await R("GET",`/v1/projects/${N.projectId}/gpus`);return d(m,()=>{e.out(N.gpu?`${N.name} has ${N.gpu.count} ${N.gpu.kind}.`:`${N.name} has no GPU.`),e.out(m.kinds.length?`Offered: ${m.kinds.map(v=>`${v.kind} ($${v.usdPerHour}/h)`).join(", ")}`:"This server offers no GPUs.");for(let v of m.servers)e.out(` ${v.name} (${v.region}): ${v.kinds.map(T=>`${T.free}/${T.count} ${T.kind} free`).join(", ")}`)}),0}let O=a[0]==="off"?{gpu:null}:{gpu:{kind:a[0],count:Number(a[1]??1)}},c=await R("PATCH",`/v1/services/${N.id}`,O);return F(c)||d(c,()=>e.out(c.gpu?`${N.name}: ${c.gpu.count} ${c.gpu.kind}, ${Vt(c.hourlyCost)}/h at most. ${c.note}`:`${N.name}: no GPU. ${c.note}`)),0}case"secrets":{let N=await q(),O=a[0];if(O==="sync"){let v=a[1],T=r.shared?null:await W(),P=v==="doppler"?{provider:v,token:a[2]}:v==="vault"?{provider:v,url:a[2],path:a[3],token:a[4]}:v==="http"?{provider:v,url:a[2],token:a[3]}:{};if(!P.provider||!P.token)throw new ge("Usage: cli secrets sync doppler <token> | vault <url> <path> <token> | http <url> <token> [--shared] [--redeploy]");let _=await R("POST",`/v1/projects/${N}/secret-syncs`,{...P,serviceId:T?.id??null,autoDeploy:!!r.redeploy});return d(_,()=>e.out(_.error?`Added, but the first pull failed: ${_.error}`:`Syncing ${_.keys.length} variables from ${v} into ${T?T.name:"shared variables"} every 5 minutes${_.autoDeploy?", redeploying on change":""}.`)),0}if(O==="rotate"){let v=await W();if(!a[1]&&v.kind==="app")throw new ge("Usage: cli secrets rotate <KEY> [--every days] (databases: cli secrets rotate --service db)");let P=(await R("GET",`/v1/projects/${N}/rotations`)).rotations.find(p=>p.serviceId===v.id&&(v.kind!=="app"||p.key===a[1]));P||(P=await R("POST",`/v1/services/${v.id}/rotations`,{...v.kind==="app"?{key:a[1]}:{},everyDays:Number(o("every")??30)}));let _=await R("POST",`/v1/rotations/${P.id}/rotate`);return d(_,()=>e.out(`${P.key} rotated; next in ${P.everyDays} days.${_.redeployed.length?` Redeploying ${_.redeployed.length} ${_.redeployed.length===1?"service":"services"}.`:""}`)),0}let c=(await R("GET",`/v1/projects/${N}/secret-syncs`)).syncs,m=(await R("GET",`/v1/projects/${N}/rotations`)).rotations;return d({syncs:c,rotations:m},()=>{e.out(c.length?Qt([["SYNC","FROM","KEYS","LAST","STATUS"],...c.map(v=>[v.id,v.provider,String(v.keys.length),v.lastSyncedAt?Bi(v.lastSyncedAt):"never",v.error??"ok"])]).join(`
|
|
190
|
+
`):"No secret syncs. `cli secrets sync doppler <token>` adds one."),m.length&&e.out(`
|
|
191
|
+
${Qt([["ROTATES","EVERY","LAST"],...m.map(v=>[v.key,`${v.everyDays}d`,v.lastRotatedAt?Bi(v.lastRotatedAt):"never"])]).join(`
|
|
192
|
+
`)}`)}),0}case"agents":{let N=await q(),O=await R("GET",`/v1/projects/${N}/agents`);return d(O,()=>{if(!O.agents.length)return e.out("No agent activity in the last 30 days.");e.out(Qt([["AGENT","SCORE","ACTIONS","DEPLOYS","UNDONE","DENIED",""],...O.agents.map(c=>[c.actor,String(c.score),String(c.actions),`${c.deploys.live} live / ${c.deploys.failed} failed`,String(c.undone),String(c.approvals.denied),c.trusted?"trusted":""])]).join(`
|
|
193
|
+
`)),e.out(O.trustAbove===null?`
|
|
194
|
+
No agent skips approvals. An admin can change that: PUT /v1/projects/:id/trust.`:`
|
|
195
|
+
Agents scoring ${O.trustAbove}+ over 10+ actions skip spending and production approvals.`)}),0}case"receipts":{let N=await q();if(a[0]==="on"||a[0]==="off"){let c=await R("PUT",`/v1/projects/${N}/receipts`,{enabled:a[0]==="on"});return d(c,()=>e.out(c.note)),0}let O=await R("GET",`/v1/projects/${N}/receipts`);return d(O,()=>{e.out(O.enabled?`On: the audit log is sealed every few hours${O.anchoredBy?` and anchored on chain ${O.chainId} by ${O.anchoredBy}`:""}.`:"Off. `cli receipts on` starts sealing the audit log on chain."),O.receipts.length&&e.out(Qt([["RECEIPT","ENTRIES","ROOT","TX","WHEN"],...O.receipts.slice(0,10).map(c=>[c.id,String(c.entries),`${c.root.slice(0,18)}\u2026`,c.txHash?`${c.txHash.slice(0,18)}\u2026`:c.status,Bi(c.createdAt)])]).join(`
|
|
196
|
+
`))}),0}case"earnings":{let N=await q(),O=await R("GET",`/v1/projects/${N}/earnings`);return d(O,()=>{e.out(`Earned ${Vt(O.earned)}, withdrawn ${Vt(O.withdrawn)}, available ${Vt(O.available)}.`);for(let c of O.last30Days)e.out(` last 30 days from ${c.source}: ${Vt(c.amount)}`);O.payouts.length&&e.out(`
|
|
197
|
+
${Qt([["PAYOUT","AMOUNT","TO","STATUS","WHEN"],...O.payouts.slice(0,10).map(c=>[c.id,Vt(c.amount),`${c.address.slice(0,10)}\u2026`,c.status,Bi(c.createdAt)])]).join(`
|
|
198
|
+
`)}`),O.networks.length||e.out(`
|
|
199
|
+
Withdrawals aren't set up on this server.`)}),0}case"withdraw":{let N=await q(),[O,c]=a;if(!O||!c)throw new ge("Usage: cli withdraw <usd> <address> [--network eip155:8453]");let m=o("network")??(c.startsWith("0x")?"eip155:8453":void 0);if(!m)throw new ge("Say which network with --network");let v=await R("POST",`/v1/projects/${N}/withdrawals`,{amount:Math.round(Number(O)*1e6),address:c,network:m});return d(v,()=>e.out(`${Vt(v.amount)} to ${c}: ${v.note}`)),0}case"deposit":{let N=await q();if(a[0]==="card"){let c=await R("POST",`/v1/projects/${N}/onramp`,{usd:Number(a[1]??20)});return d(c,()=>e.out(c.url?`Open this to pay by card: ${c.url}`:`${c.note}
|
|
200
|
+
${c.address} (${c.network})`)),0}let O=await R("GET",`/v1/projects/${N}/deposit-address`);return d(O,()=>e.out(`Send USDC on ${O.network} to:
|
|
201
|
+
${O.address}
|
|
202
|
+
It's credited after a few confirmations. \`cli deposit card 50\` pays by card.`)),0}case"statement":{let N=await q(),O=a[0]??new Date().toISOString().slice(0,7);if(r.csv){let m=await fetch(`${A.api}/v1/projects/${N}/statements/${O}.csv`,{headers:{authorization:`Bearer ${A.token}`}});return e.out(await m.text()),m.ok?0:1}let c=await R("GET",`/v1/projects/${N}/statements/${O}`);return d(c,()=>{e.out(`${c.projectName}, ${O}`),e.out(Qt([["","USDC"],["Opening balance",Vt(c.opening)],["Paid in",Vt(c.totals.paidIn)],["Earned",Vt(c.totals.earned)],["Hosting",Vt(-c.totals.hosting)],["Withdrawn",Vt(-c.totals.withdrawn)],["Closing balance",Vt(c.closing)]]).join(`
|
|
203
|
+
`)),e.out(`
|
|
204
|
+
Printable: ${A.api}/v1/projects/${N}/statements/${O}.html (signed in)`)}),0}case"import":{let N=await q(),O={cli:["cli-export.json"],railway:["railway.json","railway.toml"],heroku:["Procfile","app.json"],render:["render.yaml","render.yml"],fly:["fly.toml"],vercel:["vercel.json","package.json"],compose:["docker-compose.yml","docker-compose.yaml","compose.yml","compose.yaml"]},c={},m=a[0];for(let[P,_]of Object.entries(O))for(let p of _){let l=await Kl(to(e.cwd,p),"utf8").catch(()=>null);l!==null&&(c[p]=l,!m&&p!=="package.json"&&(m=P))}if(!m)throw new ge("No railway.json, Procfile, render.yaml, fly.toml, vercel.json, docker-compose.yml or cli-export.json here. Usage: cli import [railway|heroku|render|fly|vercel|compose|cli] [--apply]");if(m==="cli"){let{readdir:P}=await import("node:fs/promises");for(let _ of await P(to(e.cwd,"env")).catch(()=>[]))_.endsWith(".env")&&(c[`env/${_}`]=await Kl(to(e.cwd,"env",_),"utf8"));delete c["docker-compose.yml"]}let v={provider:m,files:c,apply:!!r.apply,name:a1(e.cwd)};m==="railway"&&process.env.RAILWAY_TOKEN&&o("from")&&(v.railway={token:process.env.RAILWAY_TOKEN,projectId:o("from")}),m==="heroku"&&process.env.HEROKU_API_KEY&&o("from")&&(v.heroku={token:process.env.HEROKU_API_KEY,app:o("from")});let T=await R("POST",`/v1/projects/${N}/import`,v);return d(T,()=>{e.out(`${r.apply?"Imported":"Would import"} from ${m}:`);for(let P of T.services)e.out(` ${P.name} (${P.kind})${P.startCommand?`: ${P.startCommand}`:""}${Object.keys(P.links).length?`, ${Object.keys(P.links).join(", ")} linked`:""}${P.cron.length?`, ${P.cron.length} cron`:""}`);for(let P of T.warnings)e.out(` ! ${P}`);T.clashes?.length&&e.out(` Already here: ${T.clashes.join(", ")}`),e.out(r.apply?`
|
|
205
|
+
${T.next}`:`
|
|
206
|
+
About ${Vt(T.hourlyCost)}/h at most. Run \`cli import ${m} --apply\` to create it.`)}),0}case"export":{let N=await q();if(!A.token)throw new ge("Not signed in. Run `cli login` first (or set CLI_TOKEN).");let O=await fetch(`${A.api}/v1/projects/${N}/export${r["no-dumps"]?"?dumps=false":""}`,{headers:{authorization:`Bearer ${A.token}`}});if(!O.ok){let v=await O.json().catch(()=>({}));return e.err(v.error?.message??`Export failed (${O.status})`),1}let c=o("out")??/filename="([^"]+)"/.exec(O.headers.get("content-disposition")??"")?.[1]??"cli-export.tar.gz",{writeFile:m}=await import("node:fs/promises");return await m(to(e.cwd,c),Buffer.from(await O.arrayBuffer()),{mode:384}),e.out(`Saved ${c}. It holds secrets: keep it safe. Unpack it and see README.md to run it anywhere with Docker Compose.`),0}case"shadow":{let N=await W(a[0]),O={};o("percent")&&(O.percent=Number(o("percent"))),o("minutes")&&(O.minutes=Number(o("minutes"))),r["include-writes"]&&(O.includeWrites=!0),r["auto-promote"]&&(O.promoteIfHealthy=!0);let c=await R("POST",`/v1/services/${N.id}/shadow`,O);return d(c,()=>e.out(c.dryRun?`Would run the next version of ${N.name} on ${c.plan.copies} for ${c.plan.minutes} minutes.`:`Building ${c.id}; it'll get a copy of live traffic once it starts. Decide with: cli api POST /v1/deploys/${c.id}/shadow '{"action":"promote"}'`)),0}case"fixes":{let N=await R("GET",`/v1/deploys/${a[0]}/fixes`);return d(N,()=>{if(!N.suggestions.length&&!N.related.length)return e.out("Nothing known about failures like this yet.");e.out(`Failures like "${N.signature}" were fixed by:`);for(let O of[...N.suggestions,...N.related])e.out(` ${O.description} (worked ${O.successes}x in ${O.projects} project${O.projects===1?"":"s"}${O.failures?`, didn't help ${O.failures}x`:""}${O.yours?", including yours":""})`)}),0}case"provenance":{let N=await R("GET",`/v1/deploys/${a[0]}/provenance`);return d(N,()=>e.out(`Signed (key ${N.keyId}): ${N.image.name} sha256:${N.image.digest.sha256}
|
|
207
|
+
from ${N.source.repository??N.source.type} @ ${N.source.ref??"?"}, built ${N.builtAt} by ${N.builder}`)),0}case"find":{let N=a.join(" "),O=await D().request("GET",`/v1/directory?q=${encodeURIComponent(N)}${o("tag")?`&tag=${encodeURIComponent(o("tag"))}`:""}`);return d(O.results,()=>e.out(O.results.length?Qt([["API","FROM","UPTIME","PAID CALLS (30D)","SERVICE"],...O.results.map(c=>[c.title,Vt(c.priceFrom),`${(c.uptime30*100).toFixed(1)}%`,String(c.paidRequests30),c.serviceId])]).join(`
|
|
208
|
+
`):"Nothing listed matches. List your own paid service with PUT /v1/services/:id/listing.")),0}case"changes":{let N=await q();if(a[0]&&(a[1]==="approve"||a[1]==="reject")){let c=await R("POST",`/v1/changes/${a[0]}/${a[1]==="approve"?"apply":"reject"}`);return d(c,()=>e.out(a[1]==="approve"?`Applied; deploying ${c.deployId}.`:"Rejected; the preview copy is gone.")),0}if(a[0]){let c=await R("GET",`/v1/changes/${a[0]}`);return d(c,()=>{e.out(`${c.title} (${c.status})`),c.summary&&e.out(`${c.summary.text}
|
|
209
|
+
Risk: ${c.summary.risk}${c.summary.reasons.length?` (${c.summary.reasons.join("; ")})`:""}`),c.previewUrl&&e.out(`Preview: ${c.previewUrl}`),c.status==="ready"&&e.out(`
|
|
210
|
+
cli changes ${c.id} approve | cli changes ${c.id} reject`)}),0}let O=await R("GET",`/v1/projects/${N}/changes`);return d(O.changes,()=>e.out(O.changes.length?Qt([["CHANGE","STATUS","RISK","TITLE","BY"],...O.changes.map(c=>[c.id,c.status,c.summary?.risk??"",c.title.slice(0,50),c.createdBy])]).join(`
|
|
211
|
+
`):"No proposed changes.")),0}case"tunnel":{let N=a[0];if(!N||!/^\d{2,5}$/.test(N))throw new ge("Usage: cli tunnel <port> [--name n], e.g. cli tunnel 3000");let O=await q(),c=(o("name")??`dev-${N}`).toLowerCase().replace(/[^a-z0-9-]/g,"-").slice(0,30),m=await R("POST",`/v1/projects/${O}/tunnels`,{name:c});d({id:m.id,url:m.url,host:m.host},()=>{e.out(`${m.url} \u2192 http://localhost:${N}`),e.out("Requests are shown below. Ctrl-C to stop.")});let{runTunnel:v}=await Promise.resolve().then(()=>(Dh(),kh));return await v({connect:`${A.api.replace(/^http/,"ws")}/v1/tunnels/connect?token=${m.token}`,target:`http://127.0.0.1:${N}`,signal:e.signal,log:T=>e.out(T)}),await R("DELETE",`/v1/projects/${O}/tunnels/${m.id}`).catch(()=>{}),0}case"exec":{let N=await W(),O=a.join(" ");if(!O)throw new ge('Usage: cli exec "<command>"');let c=await R("POST",`/v1/services/${N.id}/exec`,{command:O});return d(c,()=>{c.output&&e.out(c.output.replace(/\n$/,"")),c.timedOut&&e.err("(timed out)")}),c.exitCode??1}case"shell":{let N=await W();e.out(`Connected to ${N.name}. Each line runs in the live container; \`cd\` is remembered. Type exit to leave.`);let O="";for(;;){if(e.signal?.aborted)return 0;let c=(await e.prompt(`${N.name}${O?`:${O}`:""}$ `)).trim();if(!c)continue;if(c==="exit"||c==="quit")return 0;let m=c.match(/^cd(?:\s+(.+))?$/),v=m?`cd ${O?`'${O}' && cd `:""}${m[1]??"~"} && pwd`:`${O?`cd '${O}' && `:""}${c}`,T=await R("POST",`/v1/services/${N.id}/exec`,{command:v});m&&T.exitCode===0?O=T.output.trim():T.output&&e.out(T.output.replace(/\n$/,"")),T.exitCode!==0&&!m&&e.err(T.timedOut?"(timed out)":`(exit ${T.exitCode??"?"})`)}}case"sleep":{let N=await W(),O=a[0];if(!O)throw new ge("Usage: cli sleep <minutes>|off");let c=O==="off"?null:Number(O);if(c!==null&&!(Number.isInteger(c)&&c>=5))throw new ge("Pick at least 5 minutes, or off.");return await R("PATCH",`/v1/services/${N.id}`,{sleepAfterMinutes:c}),e.out(c===null?`${N.name} stays on.`:`${N.name} sleeps after ${c} minutes without traffic and wakes on the next request.`),0}case"rm":{let N=await W(a[0]),O=!!r["delete-data"],c=`/v1/services/${N.id}${O?"?deleteData=true":""}`;return I?(F(await R("DELETE",c)),0):!r.yes&&(await e.prompt(`Delete ${N.name}${O?" AND its data":""}? Type its name to confirm: `)).trim()!==N.name?(e.err("Not deleted."),1):(await R("DELETE",c),e.out(`Deleted ${N.name}.`),0)}case"status":{let N=await q(),O=await R("GET",`/v1/projects/${N}`);return d(O,()=>{if(e.out(`${O.name}: ${Vt(O.balance)} credit${O.status==="suspended"?", PAUSED (out of credit)":O.underReview?", ON HOLD":""}`),!O.services.length)return e.out("No services yet. Run `cli up`.");e.out(""),Qt([["SERVICE","KIND","STATUS","ADDRESS"],...O.services.map(c=>[c.name,c.preview?`preview #${c.preview.pr}`:c.kind,c.status,c.url??(c.database?`${c.database.host}:${c.database.port} (private)`:"")])]).forEach(c=>e.out(c))}),0}case"open":{let N=await W();if(!N.url)throw new ge(`${N.name} has no public address yet.`);return e.out(N.url),e.open?.(N.url),0}case"logs":{if(o("deploy")){let P=await R("GET",`/v1/deploys/${o("deploy")}/logs`);return d(P,()=>{e.out("--- build ---"),e.out(P.build||"(none)"),e.out("--- runtime ---"),e.out(P.runtime||"(none)")}),0}let N=await W(),O=Number(o("lines")??200);if(!r.follow){let P=o("grep")?`&q=${encodeURIComponent(o("grep"))}`:"",_=o("level")?`&level=${o("level")}`:"",p=await R("GET",`/v1/services/${N.id}/logs?tail=${O}${P}${_}`);return d(p,()=>p.lines.forEach(l=>e.out(l))),0}let c=await fetch(`${A.api}/v1/services/${N.id}/logs/stream?tail=${O}`,{headers:{authorization:`Bearer ${A.token}`,accept:"text/event-stream"},signal:e.signal});if(!c.ok||!c.body)throw new Bn(c.status,await c.json().catch(()=>({})));let m=c.body.getReader(),v=new TextDecoder,T="";try{for(;;){let{done:P,value:_}=await m.read();if(P)break;T+=v.decode(_,{stream:!0});let p;for(;(p=T.indexOf(`
|
|
212
|
+
|
|
213
|
+
`))>=0;){let l=T.slice(0,p);T=T.slice(p+2),l.startsWith("data: ")?e.out(l.slice(6)):l.startsWith("event: end")&&e.err(`(${N.name} stopped)`)}}}catch(P){if(!e.signal?.aborted)throw P}return 0}case"env":{let N=await W(),O=a[0];if(O==="set"){let m=a.slice(1);if(!m.length)throw new ge("Usage: cli env set KEY=value \u2026");let v={};for(let T of m){let P=T.indexOf("=");if(P<=0)throw new ge(`"${T}" isn't KEY=value.`);v[T.slice(0,P)]=T.slice(P+1)}return await R("PUT",`/v1/services/${N.id}/env`,{vars:v,secret:!r.plain}),e.out(`Set ${Object.keys(v).join(", ")} on ${N.name}. Run \`cli deploy\` to apply.`),0}if(O==="unset"){let m=a.slice(1);if(!m.length)throw new ge("Usage: cli env unset KEY \u2026");return await R("PUT",`/v1/services/${N.id}/env`,{vars:Object.fromEntries(m.map(v=>[v,null]))}),e.out(`Removed ${m.join(", ")} from ${N.name}. Run \`cli deploy\` to apply.`),0}if(O==="import"){let m=JD(e.cwd,a[1]??".env"),v=await Kl(m,"utf8").catch(()=>{throw new ge(`Can't read ${m}.`)}),T=await R("PUT",`/v1/services/${N.id}/env`,{dotenv:v,secret:r.plain?!1:void 0});return d(T,()=>{e.out(`Imported ${a1(m)} into ${N.name}. Run \`cli deploy\` to apply.`),T.missingReferences?.length&&e.err(`Warning: ${T.missingReferences.join(", ")} don't point at anything yet.`)}),0}if(O==="check"){let m=await R("GET",`/v1/services/${N.id}/env/check`);return d(m,()=>{m.references.length||e.out("No references.");for(let v of m.references)e.out(`${v.ok?"ok ":"MISSING"} ${v.var} \u2192 \${{${v.service}.${v.key}}}`)}),m.missing.length?1:0}let c=await R("GET",`/v1/services/${N.id}`);return d(c.env,()=>c.env.length?c.env.forEach(m=>e.out(`${m.key}=${m.secret?"(hidden)":m.value}`)):e.out("No variables.")),0}case"vars":{let N=await q(),O=a[0];if(O==="set"||O==="unset"){let m={};for(let v of a.slice(1))if(O==="unset")m[v]=null;else{let T=v.indexOf("=");if(T<=0)throw new ge(`"${v}" isn't KEY=value.`);m[v.slice(0,T)]=v.slice(T+1)}if(!Object.keys(m).length)throw new ge(`Usage: cli vars ${O} ${O==="set"?"KEY=value":"KEY"} \u2026`);return await R("PUT",`/v1/projects/${N}/variables`,{vars:m,secret:!r.plain}),e.out(`${O==="set"?"Set":"Removed"} ${Object.keys(m).join(", ")}. Services pick them up on their next deploy.`),0}let c=await R("GET",`/v1/projects/${N}/variables`);return d(c.variables,()=>c.variables.length?c.variables.forEach(m=>e.out(`${m.key}=${m.secret?"(hidden)":m.value}`)):e.out("No shared variables. Add one with `cli vars set KEY=value`.")),0}case"templates":{let N=await D().request("GET","/v1/templates");return d(N.templates,()=>{e.out(Qt([["ID","NAME","COST/H","WHAT IT IS"],...N.templates.map(O=>[O.id,O.name,Vt(O.hourlyCost),O.description])]).join(`
|
|
214
|
+
`)),e.out(`
|
|
215
|
+
Deploy one: cli template <id> [key=value \u2026]`)}),0}case"template":{let N=await q(),O=a[0];if(!O)throw new ge("Usage: cli template <id> [key=value \u2026]. List them with `cli templates`.");let c={};for(let v of a.slice(1)){let T=v.indexOf("=");if(T<=0)throw new ge(`"${v}" isn't key=value.`);c[v.slice(0,T)]=v.slice(T+1)}let m=await R("POST",`/v1/projects/${N}/templates/${O}`,{inputs:c});return F(m)||d(m,()=>{e.out(`Created ${m.services.map(v=>v.name).join(", ")} (up to ${Vt(m.hourlyCost)}/h).`),e.out(m.next)}),0}case"approvals":{let N=await q(),O=await R("GET",`/v1/projects/${N}/approvals?status=pending`);return d(O,()=>{O.approvals.length||e.out("Nothing waiting.");for(let c of O.approvals)e.out(`${c.id} ${c.actor.replace(/^email:/,"")} wants to ${c.summary} (${Bi(c.createdAt)})`)}),0}case"approve":case"deny":{if(!a[0])throw new ge(`Usage: cli ${n} <approval id>`);let N=await R("POST",`/v1/approvals/${a[0]}/${n}`);return d(N,()=>e.out(`${n==="approve"?"Approved":"Denied"}: ${N.summary}`)),0}case"keys":{let N=await q(),O=a[0];if(O==="create"){if(!a[1])throw new ge("Usage: cli keys create <name> [--role agent] [--days 90] [--cap usd]");let m=await R("POST",`/v1/projects/${N}/keys`,{name:a[1],role:o("role")??"agent",expiresInDays:o("days")?o("days")==="never"?null:Number(o("days")):90,spendCap:o("cap")?Math.round(Number(o("cap"))*1e6):null});return d(m,()=>{e.out(`Created ${m.name} (${m.role}${m.expiresAt?`, expires ${new Date(m.expiresAt).toISOString().slice(0,10)}`:""}). The token is shown once:`),e.out(m.token)}),0}if(O==="revoke"){if(!a[1])throw new ge("Usage: cli keys revoke <id>");return await R("DELETE",`/v1/projects/${N}/keys/${a[1]}`),e.out(`Revoked ${a[1]}.`),0}if(O==="revoke-all"){if(!r.yes&&(await e.prompt("Revoke every API key and remove every agent from this project? [y/N] ")).trim().toLowerCase()!=="y")return 1;let m=await R("POST",`/v1/projects/${N}/keys/revoke-all`);return d(m,()=>e.out(`Revoked ${m.keys} key${m.keys===1?"":"s"} and removed ${m.agents.length} agent${m.agents.length===1?"":"s"}.`)),0}let c=await R("GET",`/v1/projects/${N}/keys`);return d(c.keys,()=>{if(!c.keys.length)return e.out("No API keys. Create one with `cli keys create <name>`.");e.out(Qt([["ID","NAME","ROLE","TOKEN","LAST USED","STATUS"],...c.keys.map(m=>[m.id,m.name,m.role??"-",`${m.prefix}\u2026`,m.lastUsedAt?Bi(m.lastUsedAt):"never",m.active?"active":m.revokedAt?"revoked":"expired"])]).join(`
|
|
216
|
+
`))}),0}case"events":{let N=await q(),O=o("kinds")?`&kinds=${o("kinds")}`:"",c=await R("GET",`/v1/projects/${N}/events?limit=${Number(o("lines")??20)}${O}`),m=T=>s?e.out(JSON.stringify(T)):e.out(`${new Date(T.at).toISOString().slice(11,19)} ${T.kind.padEnd(18)} ${T.text}`);if(c.events.forEach(m),!r.follow)return 0;let v=c.next;for(;!e.signal?.aborted;)await h(w),c=await R("GET",`/v1/projects/${N}/events?after=${v}${O}`),c.events.forEach(m),v=c.next;return 0}case"notify":{let N=await q(),O=a[0];if(O==="add"){let m=a[1],v=m==="telegram"?{kind:m,botToken:a[2],chatId:a[3]}:{kind:m,url:a[2]};if(!m||!a[2]||m==="telegram"&&!a[3])throw new ge("Usage: cli notify add slack|discord|webhook <url>, or cli notify add telegram <bot-token> <chat-id>");let T=await R("POST",`/v1/projects/${N}/channels`,v);return d(T,()=>e.out(T.test.ok?`Added ${T.label}. A test message is on its way.`:`Added ${T.label}, but the test message failed: ${T.test.error}`)),0}if(O==="test"||O==="rm"){if(!a[1])throw new ge(`Usage: cli notify ${O} <id>`);if(O==="rm")await R("DELETE",`/v1/projects/${N}/channels/${a[1]}`),e.out(`Removed ${a[1]}.`);else{let m=await R("POST",`/v1/projects/${N}/channels/${a[1]}/test`);e.out(m.ok?"Sent.":`Failed: ${m.error}`)}return 0}let c=await R("GET",`/v1/projects/${N}/channels`);return d(c.channels,()=>c.channels.length?e.out(Qt([["ID","WHERE","ALERTS"],...c.channels.map(m=>[m.id,m.label,m.kinds.join(", ")])]).join(`
|
|
217
|
+
`)):e.out("No alert channels. Add one with `cli notify add slack <url>`.")),0}case"domains":{let N=a[0];if(N==="verify"||N==="rm"){let v=a[1];if(!v)throw new ge(`Usage: cli domains ${N} <id>`);if(N==="rm")return await R("DELETE",`/v1/domains/${v}`),e.out("Removed."),0;try{let T=await R("POST",`/v1/domains/${v}/verify`);return d(T,()=>e.out(`${T.hostname} is live: ${T.url}`)),0}catch(T){if(!(T instanceof Bn)||T.code!=="DOMAIN_NOT_VERIFIED")throw T;return d(T.body,()=>{e.err("Not yet:");for(let P of T.body.error.details.problems)e.err(` - ${P}`);e.err("DNS changes can take a few minutes. Try again shortly.")}),1}}let O=await W(),c=v=>{for(let T of v.records??[])e.out(` ${T.type.padEnd(5)} ${T.name} -> ${T.value}`)};if(N==="generate"){let v=await R("POST",`/v1/services/${O.id}/domains/generate`,a[1]?{subdomain:a[1]}:{});return d(v,()=>e.out(`${O.name} is live at ${v.url}`)),0}if(N==="add"){if(!a[1])throw new ge("Usage: cli domains add <hostname>");let v=await R("POST",`/v1/services/${O.id}/domains`,{hostname:a[1]});return d(v,()=>{e.out(`Add these records at your DNS provider, then run \`cli domains verify ${v.id}\`:`),c(v)}),0}let{domains:m}=await R("GET",`/v1/services/${O.id}/domains`);return d(m,()=>{O.url&&e.out(`${O.url.replace(/^https:\/\//,"")} (default)`);for(let v of m)e.out(`${v.hostname} ${v.status==="active"?"live":"waiting for DNS"}${v.generated?" (generated)":""} ${v.id}`),v.status!=="active"&&c(v);m.length||e.out("No other domains. Try `cli domains generate`.")}),0}case"db":{let N=a[0];if(N==="create"){let O=a[1];if(!["postgres","mysql","redis","mongo"].includes(O??""))throw new ge("Usage: cli db create postgres|mysql|redis|mongo [--name n] [--link]");let c=await q(),m=r.link?await W():null,v=await R("POST",`/v1/projects/${c}/databases`,{kind:O,...o("name")?{name:o("name")}:{},...m?{linkTo:m.id}:{},...o("var")?{var:o("var")}:{}});return F(v)||d(v,()=>{e.out(`Creating ${v.name} (${O}). It's private to this project at ${v.database.host}:${v.database.port}.`),v.linked?e.out(`${v.linked.var} is set on ${m.name}. Run \`cli deploy\` once ${v.name} is up.`):e.out(`Connect a service with \`cli db link ${v.name}\`.`)}),0}if(N==="link"){if(!a[1])throw new ge("Usage: cli db link <database> [--var NAME]");let O=await W(a[1]),c=await W(o("service")),m=await R("POST",`/v1/services/${c.id}/link`,{databaseId:O.id,...o("var")?{var:o("var")}:{}});return d(m,()=>e.out(`${m.var} on ${c.name} now points at ${O.name}. Run \`cli deploy\` to apply.`)),0}if(N==="query"||N==="tables"){if(!a[1]||N==="query"&&!a[2])throw new ge(N==="query"?'Usage: cli db query <database> "select \u2026" [--write]':"Usage: cli db tables <database>");let O=await W(a[1]);if(N==="tables"){let m=await R("GET",`/v1/services/${O.id}/tables`);return d(m.tables,()=>m.tables.length?e.out(Qt([["TABLE","ROWS"],...m.tables.map(v=>[v.schema&&v.schema!=="public"?`${v.schema}.${v.name}`:v.name,v.rows??"?"])]).join(`
|
|
218
|
+
`)):e.out("No tables yet.")),0}let c=await R("POST",`/v1/services/${O.id}/query`,{sql:a.slice(2).join(" "),readOnly:!r.write});return d(c,()=>{c.columns.length&&e.out(Qt([c.columns,...c.rows]).join(`
|
|
219
|
+
`)),e.out(`(${c.status}${c.truncated?", more not shown":""})`)}),0}if(N==="connect"){if(!a[1])throw new ge("Usage: cli db connect <database> [--public|--private]");let O=await W(a[1]);(r.public||r.private)&&await R("PATCH",`/v1/services/${O.id}`,{publicTcp:!!r.public});let c=await R("GET",`/v1/services/${O.id}/connection`);return d(c,()=>{e.out(`From services in this project:
|
|
220
|
+
${c.private.url}`),c.public?e.out(`From your machine (public until you run \`cli db connect ${O.name} --private\`):
|
|
221
|
+
${c.public.url}`):e.out(`To connect from your machine, run \`cli db connect ${O.name} --public\`.`)}),0}if(N==="backups"||N==="backup"){if(!a[1])throw new ge(`Usage: cli db ${N} <database>`);let O=await W(a[1]);if(N==="backup"){let m=await R("POST",`/v1/services/${O.id}/backups`),v=m;for(;v.status==="running";)await h(w),v=await R("GET",`/v1/backups/${m.id}`);return d(v,()=>v.status==="done"?e.out(`Backed up ${O.name}: ${v.id} (${$d(v.sizeBytes??0)})`):e.err(`Backup failed: ${v.error}`)),v.status==="done"?0:1}let c=await R("GET",`/v1/services/${O.id}/backups`);return d(c,()=>{if(!c.backups.length)return e.out(`No backups of ${O.name} yet. They run daily; \`cli db backup ${O.name}\` makes one now.`);Qt([["ID","WHEN","KIND","STATUS","SIZE"],...c.backups.map(m=>[m.id,Bi(m.createdAt),m.kind.replace("_","-"),m.status,m.sizeBytes?$d(m.sizeBytes):""])]).forEach(m=>e.out(m)),e.out(`Kept for ${c.retentionDays} days.${c.storage?` Storing ${$d(c.storage.bytes)}, about ${Vt(c.storage.monthly)} a month ($${c.storage.usdPerGbMonth.toFixed(2)}/GB-month).`:""}`)}),0}if(N==="restore"){let O=a[1];if(!O)throw new ge("Usage: cli db restore <backupId> [--yes]");let c=await R("GET",`/v1/backups/${O}`),m=await q(),T=(await R("GET",`/v1/projects/${m}`)).services.find(p=>p.id===c.serviceId);if(!T)throw new ge("That backup's database isn't in the linked project.");if(!r.yes&&(await e.prompt(`This replaces all data in ${T.name} with the backup from ${Bi(c.createdAt)}. A safety backup is taken first.
|
|
222
|
+
Type ${T.name} to confirm: `)).trim()!==T.name)throw new ge("Not restored.");let P=await R("POST",`/v1/backups/${O}/restore`,{confirm:T.name}),_=P;for(;_.status==="running";)await h(w),_=await R("GET",`/v1/restores/${P.id}`);return d(_,()=>_.status==="done"?e.out(`Restored ${T.name}. To undo, restore the safety backup ${_.safetyBackupId}.`):e.err(`Restore failed: ${_.error}`)),_.status==="done"?0:1}throw new ge("Usage: cli db create|link|backups|backup|restore \u2026")}case"scale":{let N=Number(a[0]);if(!Number.isInteger(N)||N<1)throw new ge("Usage: cli scale <1-10>");let O=await W(),c=await R("PATCH",`/v1/services/${O.id}`,{replicas:N});return F(c)||d(c,()=>e.out(`${O.name} will run ${N} ${N===1?"copy":"copies"} from the next deploy (\`cli deploy\`). Each copy is billed as a full plan.`)),0}case"volume":{let N=await W();if(a[0]==="add"){if(!a[1])throw new ge("Usage: cli volume add /data");let O=await R("PATCH",`/v1/services/${N.id}`,{volume:{mountPath:a[1]}});return F(O)||d(O,()=>e.out(`${N.name} gets a persistent disk at ${O.volume.mountPath} from the next deploy. Deploys restart it rather than overlap.`)),0}return a[0]==="rm"?(await R("PATCH",`/v1/services/${N.id}`,{volume:null}),e.out(`Detached the volume from ${N.name} (its data is kept until the service is deleted with its data).`),0):(d(N.volume,()=>e.out(N.volume?`Volume at ${N.volume.mountPath}`:"No volume. Add one with `cli volume add /data`.")),0)}case"health":{let N=await W(),O=await R("GET",`/v1/services/${N.id}/health`),c=m=>`${(m*100).toFixed(m===1?0:2)}%`;return d(O,()=>{e.out(`${N.name}: ${O.status.toUpperCase()}${O.reason&&O.status==="down"?` (${O.reason})`:""}. Uptime ${c(O.uptime.day)} today, ${c(O.uptime.week)} this week.`);for(let m of O.incidents.slice(0,5))e.out(` ${Bi(m.startedAt)}: ${m.reason}${m.endedAt?`, lasted ${Math.max(1,Math.round((m.endedAt-m.startedAt)/6e4))} min`:", ongoing"}`)}),0}case"cron":{let N=await W(),{jobs:O}=await R("GET",`/v1/services/${N.id}/cron`),c=T=>{let P=O.find(_=>_.name===T||_.id===T);if(!P)throw new ge(`No cron job "${T}" on ${N.name}.`);return P},m=a[0];if(!m)return d(O,()=>O.length?Qt([["NAME","SCHEDULE (UTC)","NEXT","LAST"],...O.map(T=>[T.name,T.schedule,T.enabled?T.nextRunAt?new Date(T.nextRunAt).toISOString().slice(0,16).replace("T"," "):"":"paused",T.lastRun?`${T.lastRun.status} ${Bi(T.lastRun.startedAt)}`:""])]).forEach(T=>e.out(T)):e.out('No cron jobs. Add one: cli cron add nightly "0 3 * * *" "node scripts/nightly.js"')),0;if(m==="add"){let[,T,P,_]=a;if(!T||!P||!_)throw new ge('Usage: cli cron add <name> "<schedule>" "<command>"');let p=await R("POST",`/v1/services/${N.id}/cron`,{name:T,schedule:P,command:_});return d(p,()=>e.out(`Added ${p.name}: ${p.schedule} (UTC). Next run ${new Date(p.nextRunAt).toISOString().slice(0,16).replace("T"," ")}.`)),0}let v=c(a[1]);if(m==="rm")return await R("DELETE",`/v1/cron/${v.id}`),e.out(`Deleted ${v.name}.`),0;if(m==="pause"||m==="resume")return await R("PATCH",`/v1/cron/${v.id}`,{enabled:m==="resume"}),e.out(`${m==="pause"?"Paused":"Resumed"} ${v.name}.`),0;if(m==="run"||m==="logs"){let T=m==="run"?await R("POST",`/v1/cron/${v.id}/run`):(await R("GET",`/v1/cron/${v.id}/runs`)).runs[0];if(!T)throw new ge(`${v.name} hasn't run yet.`);for(;T.status==="running";)await h(w),T=await R("GET",`/v1/cron-runs/${T.id}`);let P=await R("GET",`/v1/cron-runs/${T.id}`);return d(P,()=>{P.logs&&e.out(P.logs.replace(/\n$/,"")),e.err(`(${P.status}${P.exitCode!==null?`, exit ${P.exitCode}`:""}${P.reason?`: ${P.reason}`:""}${P.seconds?`, ${P.seconds.toFixed(1)}s`:""})`)}),P.status==="succeeded"?0:1}throw new ge("Usage: cli cron [add|run|logs|pause|resume|rm] \u2026")}case"members":{let N=await q();if(a[0]==="add"){let c=a[1];if(!c)throw new ge("Usage: cli members add <email> [--role viewer|developer|admin]");let m=await R("POST",`/v1/projects/${N}/members`,{...c.includes("@")?{email:c}:{wallet:c},role:o("role")??"developer"});return d(m,()=>e.out(`Added ${c} as ${m.role}.${c.includes("@")?" They'll get an email to sign in.":""}`)),0}if(a[0]==="rm"){let c=a[1];if(!c)throw new ge("Usage: cli members rm <email|wallet>");return await R("DELETE",`/v1/projects/${N}/members/${encodeURIComponent(c.includes("@")&&!c.startsWith("email:")?`email:${c.toLowerCase()}`:c)}`),e.out(`Removed ${c}.`),0}let O=await R("GET",`/v1/projects/${N}`);return d(O.members,()=>Qt([["MEMBER","ROLE","SPEND CAP"],...O.members.map(c=>[c.wallet.replace(/^email:/,""),c.role,c.spendCap===null?"":Vt(c.spendCap)])]).forEach(c=>e.out(c))),0}case"audit":{let N=await q(),O=await R("GET",`/v1/projects/${N}/audit?limit=${Number(o("lines")??20)}`);return d(O.entries,()=>O.entries.length?Qt([["WHEN","WHO","WHAT","TARGET"],...O.entries.map(c=>[Bi(c.at),c.actor.replace(/^email:/,""),c.action,c.target??""])]).forEach(c=>e.out(c)):e.out("Nothing yet.")),0}case"usage":{let N=await q(),O=Number(o("hours")??24),c=await R("GET",`/v1/projects/${N}/usage?hours=${O}`),m=(await R("GET",`/v1/projects/${N}`)).services,v=await Promise.all(m.map(async T=>({s:T,u:await R("GET",`/v1/services/${T.id}/usage?hours=${O}`)})));return d({project:c,services:v.map(T=>T.u)},()=>{let T=c.points.reduce((P,_)=>P+_.cost,0);e.out(`Credit ${Vt(c.balance)}. Spending about ${Vt(c.burnPerHour)}/hour${c.burnBasis==="plans"?" (estimated from plans)":""}.`),c.runwayHours!==null&&e.out(`That lasts about ${c.runwayHours>=48?`${Math.floor(c.runwayHours/24)} days`:`${Math.floor(c.runwayHours)} hours`}.`),e.out(`Last ${O}h: ${Vt(T)}.`),v.length&&(e.out(""),Qt([["SERVICE","CPU","MEMORY",`COST (${O}h)`,"ADVICE"],...v.map(({s:P,u:_})=>[P.name,`${Math.round(_.utilization.cpu*100)}% of ${_.plan.cpu}`,`${Math.round(_.utilization.memory*100)}% of ${_.plan.memMb}MB`,Vt(_.totals.cost),_.advice.action==="keep"?"":`${_.advice.action} to ${_.advice.plan.cpu} vCPU / ${_.advice.plan.memMb}MB`])]).forEach(P=>e.out(P))),c.lowBalanceAlert===null&&e.out(`
|
|
223
|
+
Tip: get warned before credit runs out in the dashboard's Credit panel.`)}),0}case"topup":{let N=await q(),O=Number(a[0]);if(!(O>0))throw new ge("Usage: cli topup <usd>, e.g. cli topup 10");let c=await R("POST",`/v1/projects/${N}/topup/card`,{amountUsd:O});return d(c,()=>{e.out(`Pay ${Vt(c.chargeCents*1e4)} (including the ${Vt(c.feeCents*1e4)} card fee) for ${Vt(c.credit)} of credit:`),e.out(c.checkoutUrl)}),e.open?.(c.checkoutUrl),0}default:throw new ge(`Unknown command "${n}". Run \`cli help\`.`)}}catch(N){if(N instanceof ge)return e.err(N.message),2;if(N instanceof Bn){let O=N.body?.error;if(s)e.out(JSON.stringify(N.body,null,2));else if(O?.code==="APPROVAL_REQUIRED")e.err(`Waiting for approval: ${O.details.summary}`),e.err(` Approve or deny it here: ${O.details.approveUrl}`),e.err(` Then run the same command again with CLI_APPROVAL=${O.details.approvalId}`);else{e.err(O?`${O.code}: ${O.message}`:N.message);for(let c of O?.remediation??[])e.err(` - ${c}`);N.status===401&&e.err(" - Run `cli login` to sign in again.")}return 1}return e.err(N instanceof Error?N.message:String(N)),1}}var Bh=new AbortController;process.on("SIGINT",()=>{Bh.signal.aborted&&process.exit(130),Bh.abort()});var sB=t=>{if(!process.stdout.isTTY||process.env.CI)return;let e=process.platform==="darwin"?"open":process.platform==="win32"?"explorer":"xdg-open";iB(e,[t],()=>{})},oB=await Jw(process.argv.slice(2),{out:t=>process.stdout.write(`${t}
|
|
224
|
+
`),err:t=>process.stderr.write(`${t}
|
|
225
|
+
`),prompt:async t=>{let e=aB({input:process.stdin,output:process.stderr});try{return await e.question(t)}finally{e.close()}},env:process.env,cwd:process.cwd(),signal:Bh.signal,open:sB,spawn:(t,e,r)=>new Promise(i=>{let n=nB(t,e,{stdio:"inherit",env:{...process.env,...r},shell:process.platform==="win32"});n.on("exit",(a,s)=>i(a??(s?128:1))),n.on("error",a=>{process.stderr.write(`${a.message}
|
|
226
|
+
`),i(127)})})});process.exit(oB);
|