PageSourceSearch

https://www.xstable.ai/_next/static/chunks/3785-49197a563da9696f.js

js xstable.ai collected 2026-10-05 14:37:39 UTC 166,471 bytes, 15 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3785],{1104:(e,t,r)=>{"use strict";var n=r(55036);function i(){return"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product}function o(){return void 0!==n&&void 0!==n.versions&&void 0!==n.versions.node}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=t.isNode=t.isReactNative=void 0,t.isReactNative=i,t.isNode=o,t.isBrowser=function(){return!i()&&!o()}},3999:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Watch=void 0;class r{constructor(){this.timestamps=new Map}start(e){if(this.timestamps.has(e))throw Error(`Watch already started for label: ${e}`);this.timestamps.set(e,{started:Date.now()})}stop(e){let t=this.get(e);if(void 0!==t.elapsed)throw Error(`Watch already stopped for label: ${e}`);let r=Date.now()-t.started;this.timestamps.set(e,{started:t.started,elapsed:r})}get(e){let t=this.timestamps.get(e);if(void 0===t)throw Error(`No timestamp found for label: ${e}`);return t}elapsed(e){let t=this.get(e);return t.elapsed||Date.now()-t.started}}t.Watch=r,t.default=r},4831:(e,t,r)=>{let n=r(21723);function i(e,t,r,n,i,s){u[e]=u[e]+u[t]+i,u[n]=o(u[n]^u[e],16),u[r]=u[r]+u[n],u[t]=o(u[t]^u[r],12),u[e]=u[e]+u[t]+s,u[n]=o(u[n]^u[e],8),u[r]=u[r]+u[n],u[t]=o(u[t]^u[r],7)}function o(e,t){return e>>>t^e<<32-t}
1let s=new Uint32Array([0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]),a=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),u=new Uint32Array(16),l=new Uint32Array(16);function c(e,t){let r=0;for(r=0;r<8;r++)u[r]=e.h[r],u[r+8]=s[r];for(u[12]^=e.t,u[13]^=e.t/0x100000000,t&&(u[14]=~u[14]),r=0;r<16;r++){var n,o;l[r]=(n=e.b)[o=4*r]^n[o+1]<<8^n[o+2]<<16^n[o+3]<<24}for(r=0;r<10;r++)i(0,4,8,12,l[a[16*r+0]],l[a[16*r+1]]),i(1,5,9,13,l[a[16*r+2]],l[a[16*r+3]]),i(2,6,10,14,l[a[16*r+4]],l[a[16*r+5]]),i(3,7,11,15,l[a[16*r+6]],l[a[16*r+7]]),i(0,5,10,15,l[a[16*r+8]],l[a[16*r+9]]),i(1,6,11,12,l[a[16*r+10]],l[a[16*r+11]]),i(2,7,8,13,l[a[16*r+12]],l[a[16*r+13]]),i(3,4,9,14,l[a[16*r+14]],l[a[16*r+15]]);for(r=0;r<8;r++)e.h[r]^=u[r]^u[r+8]}function f(e,t){if(!(e>0&&e<=32))throw Error("Incorrect output length, should be in [1, 32]");let r=t?t.length:0;if(t&&!(r>0&&r<=32))throw Error("Incorrect key length, should be in [1, 32]");let n={h:new Uint32Array(s),b:new Uint8Array(64),c:0,t:0,outlen:e};return n.h[0]^=0x1010000^r<<8^e,r>0&&(d(n,t),n.c=64),n}function d(e,t){for(let r=0;r<t.length;r++)64===e.c&&(e.t+=e.c,c(e,!1),e.c=0),e.b[e.c++]=t[r]}function h(e){for(e.t+=e.c;e.c<64;)e.b[e.c++]=0;c(e,!0);let t=new Uint8Array(e.outlen);for(let r=0;r<e.outlen;r++)t[r]=e.h[r>>2]>>8*(3&r)&255;return t}function p(e,t,r){r=r||32,e=n.normalizeInput(e);let i=f(r,t);return d(i,e),h(i)}e.exports={blake2s:p,blake2sHex:function(e,t,r){let i=p(e,t,r);return n.toHex(i)},blake2sInit:f,blake2sUpdate:d,blake2sFinal:h}},6203:(e,t,r)=>{"use strict";r.d(t,{CG:()=>n});let n={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe",batchFetchMessages:"waku_batchFetchMessages"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe",batchFetchMessages:"irn_batchFetchMessages"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe",batchFetchMessages:"iridium_batchFetchMessages"}}},7227:(e,t,r)=>{"use strict";r.d(t,{IJsonRpcProvider:()=>s.kF,formatJsonRpcError:()=>o.dZ,formatJsonRpcRequest:()=>o.e_,formatJsonRpcResult:()=>o.Im,getBigIntRpcId:()=>o.eX,isHttpUrl:()=>a.q$,isJsonRpcError:()=>u.U$,isJsonRpcRequest:()=>u.p3,isJsonRpcResponse:()=>u.tq,isJsonRpcResult:()=>u.xT,isLocalhostUrl:()=>a.z,isWsUrl:()=>a.A1,parseConnectionError:()=>n.eF,payloadId:()=>o.ER}),r(72058);var n=r(32585),i=r(63768);r.o(i,"IJsonRpcProvider")&&r.d(t,{IJsonRpcProvider:function(){return i.IJsonRpcProvider}}),r.o(i,"formatJsonRpcError")&&r.d(t,{formatJsonRpcError:function(){return i.formatJsonRpcError}}),r.o(i,"formatJsonRpcRequest")&&r.d(t,{formatJsonRpcRequest:function(){return i.formatJsonRpcRequest}}),r.o(i,"formatJsonRpcResult")&&r.d(t,{formatJsonRpcResult:function(){return i.formatJsonRpcResult}}),r.o(i,"getBigIntRpcId")&&r.d(t,{getBigIntRpcId:function(){return i.getBigIntRpcId}}),r.o(i,"isHttpUrl")&&r.d(t,{isHttpUrl:function(){return i.isHttpUrl}}),r.o(i,"isJsonRpcError")&&r.d(t,{isJsonRpcError:function(){return i.isJsonRpcError}}),r.o(i,"isJsonRpcRequest")&&r.d(t,{isJsonRpcRequest:function(){return i.isJsonRpcRequest}}),r.o(i,"isJsonRpcResponse")&&r.d(t,{isJsonRpcResponse:function(){return i.isJsonRpcResponse}}),r.o(i,"isJsonRpcResult")&&r.d(t,{isJsonRpcResult:function(){return i.isJsonRpcResult}}),r.o(i,"isLocalhostUrl")&&r.d(t,{isLocalhostUrl:function(){return i.isLocalhostUrl}}),r.o(i,"isReactNative")&&r.d(t,{isReactNative:function(){return i.isReactNative}}),r.o(i,"isWsUrl")&&r.d(t,{isWsUrl:function(){return i.isWsUrl}}),r.o(i,"payloadId")&&r.d(t,{payloadId:function(){return i.payloadId}});var o=r(86122),s=r(81653),a=r(27858),u=r(60762)},9670:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});let n=r(35466);n.__exportStar(r(76529),t),n.__exportStar(r(51905),t)},11065:(e,t,r)=>{"use strict";function n(e){if("string"!=typeof e)throw Error(`Cannot safe json parse value of type ${typeof e}`);try{return JSON.parse(e.replace(/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,'$1"$2n"$3'),(e,t)=>"string"==typeof t&&t.match(/^\d+n$/)?BigInt(t.substring(0,t.length-1)):t)}catch(t){return e}}function i(e){return"string"==typeof e?e:JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString()+"n":t)||""}r.d(t,{h:()=>i,j:()=>n})},17641:(e,t,r)=>{"use strict";r.d(t,{lY:()=>x});var n=r(24040),i=r(26531);let o=BigInt(0),s=BigInt(1),a=BigInt(2),u=BigInt(7),l=BigInt(256),c=BigInt(113),f=[],d=[],h=[];for(let e=0,t=s,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],f.push(2*(5*n+r)),d.push((e+1)*(e+2)/2%64);let i=o;for(let e=0;e<7;e++)(t=(t<<s^(t>>u)*c)%l)&a&&(i^=s<<(s<<BigInt(e))-s);h.push(i)}let p=(0,n.lD)(h,!0),b=p[0],g=p[1],y=(e,t,r)=>r>32?(0,n.WM)(e,t,r):(0,n.P5)(e,t,r),m=(e,t,r)=>r>32?(0,n.im)(e,t,r):(0,n.B4)(e,t,r);class w extends i.Vw{constructor(e,t,r,n=!1,o=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=n,this.rounds=o,(0,i.Fe)(r),!(0<e&&e<200))throw Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,i.DH)(this.state)}clone(){return this._cloneInto()}keccak(){(0,i.fd)(this.state32),function(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,i=(t+2)%10,o=r[i],s=r[i+1],a=y(o,s,1)^r[n],u=m(o,s,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=a,e[t+r+1]^=u}let t=e[2],i=e[3];for(let r=0;r<24;r++){let n=d[r],o=y(t,i,n),s=m(t,i,n),a=f[r];t=e[a],i=e[a+1],e[a]=o,e[a+1]=s}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=b[n],e[1]^=g[n]}(0,i.uH)(r)}(this.state32,this.rounds),(0,i.fd)(this.state32),this.posOut=0,this.pos=0}update(e){(0,i.CC)(this),e=(0,i.ZJ)(e),(0,i.DO)(e);let{blockLen:t,state:r}=this,n=e.length;for(let i=0;i<n;){let o=Math.min(t-this.pos,n-i);for(let t=0;t<o;t++)r[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,(128&t)!=0&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,i.CC)(this,!1),(0,i.DO)(e),this.finish();let t=this.state,{blockLen:r}=this;for(let n=0,i=e.length;n<i;){this.posOut>=r&&this.keccak();let o=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,i.Fe)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,i.Ht)(e,this),this.finished)throw 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,i.uH)(this.state)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:o}=this;return e||(e=new w(t,r,n,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=o,e.destroyed=this.destroyed,e}}let x=(()=>(0,i.qj)(()=>new w(136,1,32)))()},18693:(e,t,r)=>{"use strict";r.d(t,{w:()=>o});var n=r(26531);class i extends n.Vw{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,n.sd)(e);let r=(0,n.ZJ)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let i=this.blockLen,o=new Uint8Array(i);o.set(r.length>i?e.create().update(r).digest():r);for(let e=0;e<o.length;e++)o[e]^=54;this.iHash.update(o),this.oHash=e.create();for(let e=0;e<o.length;e++)o[e]^=106;this.oHash.update(o),(0,n.uH)(o)}update(e){return(0,n.CC)(this),this.iHash.update(e),this}digestInto(e){(0,n.CC)(this),(0,n.DO)(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:t,iHash:r,finished:n,destroyed:i,blockLen:o,outputLen:s}=this;return e.finished=n,e.destroyed=i,e.blockLen=o,e.outputLen=s,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}let o=(e,t,r)=>new i(e,t).update(r).digest();o.create=(e,t)=>
1new i(e,t)},21723:e=>{function t(e){return(0x100000000+e).toString(16).substring(1)}e.exports={normalizeInput:function(e){let t;if(e instanceof Uint8Array)t=e;else if("string"==typeof e)t=new TextEncoder().encode(e);else throw Error("Input must be an string, Buffer or Uint8Array");return t},toHex:function(e){return Array.prototype.map.call(e,function(e){return(e<16?"0":"")+e.toString(16)}).join("")},debugPrint:function(e,r,n){let i="\n"+e+" = ";for(let o=0;o<r.length;o+=2){if(32===n)i+=t(r[o]).toUpperCase(),i+=" ",i+=t(r[o+1]).toUpperCase();else if(64===n)i+=t(r[o+1]).toUpperCase(),i+=t(r[o]).toUpperCase();else throw Error("Invalid size "+n);o%6==4?i+="\n"+Array(e.length+4).join(" "):o<r.length-2&&(i+=" ")}console.log(i)},testSpeed:function(e,t,r){let n=new Date().getTime(),i=new Uint8Array(t);for(let e=0;e<t;e++)i[e]=e%256;let o=new Date().getTime();console.log("Generated random input in "+(o-n)+"ms"),n=o;for(let o=0;o<r;o++){let r=e(i),o=new Date().getTime(),s=o-n;n=o,console.log("Hashed in "+s+"ms: "+r.substring(0,20)+"..."),console.log(Math.round(t/1048576/(s/1e3)*100)/100+" MB PER SECOND")}}}},22244:(e,t,r)=>{"use strict";r.d(t,{Sl:()=>i,X:()=>s,eV:()=>a,kK:()=>o});var n=r(60156);function i(e,t){if(n.Ej(e)>t)throw new n.u({givenSize:n.Ej(e),maxSize:t})}function o(e,t){if("number"==typeof t&&t>0&&t>n.Ej(e)-1)throw new n.ii({offset:t,position:"start",size:n.Ej(e)})}function s(e,t,r){if("number"==typeof t&&"number"==typeof r&&n.Ej(e)!==r-t)throw new n.ii({offset:r,position:"end",size:n.Ej(e)})}function a(e,t={}){let{dir:r,size:i=32}=t;if(0===i)return e;let o=e.replace("0x","");if(o.length>2*i)throw new n.Fl({size:Math.ceil(o.length/2),targetSize:i,type:"Hex"});return`0x${o["right"===r?"padEnd":"padStart"](2*i,"0")}`}},24040:(e,t,r)=>{"use strict";r.d(t,{B4:()=>h,CQ:()=>x,CW:()=>w,Ei:()=>f,F8:()=>v,P5:()=>d,TH:()=>E,Vl:()=>y,Vr:()=>m,WM:()=>p,WQ:()=>g,im:()=>b,jm:()=>a,lD:()=>o,qh:()=>c,rE:()=>u,ry:()=>l,xn:()=>s});let n=BigInt(0x100000000-1),i=BigInt(32);function o(e,t=!1){let r=e.length,s=new Uint32Array(r),a=new Uint32Array(r);for(let o=0;o<r;o++){let{h:r,l:u}=function(e,t=!1){return t?{h:Number(e&n),l:Number(e>>i&n)}:{h:0|Number(e>>i&n),l:0|Number(e&n)}}(e[o],t);[s[o],a[o]]=[r,u]}return[s,a]}let s=(e,t,r)=>e>>>r,a=(e,t,r)=>e<<32-r|t>>>r,u=(e,t,r)=>e>>>r|t<<32-r,l=(e,t,r)=>e<<32-r|t>>>r,c=(e,t,r)=>e<<64-r|t>>>r-32,f=(e,t,r)=>e>>>r-32|t<<64-r,d=(e,t,r)=>e<<r|t>>>32-r,h=(e,t,r)=>t<<r|e>>>32-r,p=(e,t,r)=>t<<r-32|e>>>64-r,b=(e,t,r)=>e<<r-32|t>>>64-r;function g(e,t,r,n){let i=(t>>>0)+(n>>>0);return{h:e+r+(i/0x100000000|0)|0,l:0|i}}let y=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),m=(e,t,r,n)=>t+r+n+(e/0x100000000|0)|0,w=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),x=(e,t,r,n,i)=>t+r+n+i+(e/0x100000000|0)|0,v=(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0),E=(e,t,r,n,i,o)=>t+r+n+i+o+(e/0x100000000|0)|0},25682:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(35466);n.__exportStar(r(85030),t),n.__exportStar(r(72659),t)},26531:(e,t,r)=>{"use strict";r.d(t,{Vw:()=>A,DO:()=>s,CC:()=>u,sd:()=>a,Fe:()=>o,Ht:()=>l,My:()=>y,uH:()=>f,Id:()=>D,qj:()=>S,O8:()=>d,aT:()=>x,aY:()=>i,po:()=>I,Ow:()=>h,fd:()=>p,ZJ:()=>E,DH:()=>c,AI:()=>v});let n="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;function i(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function o(e){if(!Number.isSafeInteger(e)||e<0)throw Error("positive integer expected, got "+e)}function s(e,...t){if(!i(e))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error("Uint8Array expected of length "+t+", got length="+e.length)}function a(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.createHasher");o(e.outputLen),o(e.blockLen)}function u(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function l(e,t){s(e);let r=t.outputLen;if(e.length<r)throw Error("digestInto() expects output buffer of length at least "+r)}function c(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function f(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function d(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function h(e,t){return e<<32-t|e>>>t}let p=68===new Uint8Array(new Uint32Array([0x11223344]).buffer)[0]?e=>e:function(e){for(let r=0;r<e.length;r++){var t;e[r]=(t=e[r])<<24&0xff000000|t<<8&0xff0000|t>>>8&65280|t>>>24&255}return e},b="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,g=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function y(e){if(s(e),b)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=g[e[r]];return t}let m={_0:48,_9:57,A:65,F:70,a:97,f:102};function w(e){return e>=m._0&&e<=m._9?e-m._0:e>=m.A&&e<=m.F?e-(m.A-10):e>=m.a&&e<=m.f?e-(m.a-10):void 0}function x(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);if(b)return Uint8Array.fromHex(e);let t=e.length,r=t/2;if(t%2)throw Error("hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let t=0,i=0;t<r;t++,i+=2){let r=w(e.charCodeAt(i)),o=w(e.charCodeAt(i+1));if(void 0===r||void 0===o)throw Error('hex string expected, got non-hex character "'+(e[i]+e[i+1])+'" at index '+i);n[t]=16*r+o}return n}function v(e){if("string"!=typeof e)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function E(e){return"string"==typeof e&&(e=v(e)),s(e),e}function D(...e){let t=0;for(let r=0;r<e.length;r++){let n=e[r];s(n),t+=n.length}let r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let i=e[t];r.set(i,n),n+=i.length}return r}class A{}function S(e){let t=t=>e().update(E(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function I(e=32){if(n&&"function"==typeof n.getRandomValues)return n.getRandomValues(new Uint8Array(e));if(n&&"function"==typeof n.randomBytes)return Uint8Array.from(n.randomBytes(e));throw Error("crypto.getRandomValues must be defined")}},27858:(e,t,r)=>{"use strict";function n(e,t){let r=function(e){let t=e.match(RegExp(/^\w+:/,"gi"));if(t&&t.length)return t[0]}(e);return void 0!==r&&new RegExp(t).test(r)}function i(e){return n(e,"^https?:")}function o(e){return n(e,"^wss?:")}function s(e){return RegExp("wss?://localhost(:d{2,5})?").test(e)}r.d(t,{A1:()=>o,q$:()=>i,z:()=>s})},32585:(e,t,r)=>{"use strict";r.d(t,{eF:()=>a,mE:()=>i,rI:()=>s,vG:()=>o});var n=r(72058);function i(e){return n.jf.includes(e)}function o(e){return Object.keys(n.Uf).includes(e)?n.Uf[e]:n.Uf[n.XW]}function s(e){let t=Object.values(n.Uf).find(t=>t.code===e);return t||n.Uf[n.XW]}function a(e,t,r){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?Error(`Unavailable ${r} RPC url at ${t}`):e}},33683:(e,t,r)=>{"use strict";r.d(t,{VH:()=>l,li:()=>u});var n=r(35632),i=r(39588),o=r(51205);class s extends o.H{constructor(e){super()}}let a=i.FIVE_SECONDS,u={pulse:"heartbeat_pulse"};class l extends s{constructor(e){super(e),this.events=new n.EventEmitter,this.interval=a,this.interval=e?.interval||a}static async init(e){let t=new l(e);return await t.init(),t}
1async init(){await this.initialize()}stop(){clearInterval(this.intervalRef)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async initialize(){this.intervalRef=setInterval(()=>this.pulse(),(0,i.toMiliseconds)(this.interval))}pulse(){this.events.emit(u.pulse)}}},35466:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__assign:()=>o,__asyncDelegator:()=>x,__asyncGenerator:()=>w,__asyncValues:()=>v,__await:()=>m,__awaiter:()=>c,__classPrivateFieldGet:()=>S,__classPrivateFieldSet:()=>I,__createBinding:()=>d,__decorate:()=>a,__exportStar:()=>h,__extends:()=>i,__generator:()=>f,__importDefault:()=>A,__importStar:()=>D,__makeTemplateObject:()=>E,__metadata:()=>l,__param:()=>u,__read:()=>b,__rest:()=>s,__spread:()=>g,__spreadArrays:()=>y,__values:()=>p});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function a(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}function u(e,t){return function(r,n){t(r,n,e)}}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})}function f(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){var u=[o,a];if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return s.label++,{value:u[1],done:!1};case 5:s.label++,n=u[1],u=[0];continue;case 7:u=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){s=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){s.label=u[1];break}if(6===u[0]&&s.label<i[1]){s.label=i[1],i=u;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(u);break}i[2]&&s.ops.pop(),s.trys.pop();continue}u=t.call(e,s)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function d(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function h(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function p(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function y(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)n[i]=o[s];return n}function m(e){return this instanceof m?(this.v=e,this):new m(e)}function w(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){i[e]&&(n[e]=function(t){return new Promise(function(r,n){o.push([e,t,r,n])>1||a(e,t)})})}function a(e,t){try{var r;(r=i[e](t)).value instanceof m?Promise.resolve(r.value.v).then(u,l):c(o[0][2],r)}catch(e){c(o[0][3],e)}}function u(e){a("next",e)}function l(e){a("throw",e)}function c(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function x(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:m(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function v(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=p(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){var o,s,a;o=n,s=i,a=(t=e[r](t)).done,Promise.resolve(t.value).then(function(e){o({value:e,done:a})},s)})}}}function E(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}
1function D(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function A(e){return e&&e.__esModule?e:{default:e}}function S(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}function I(e,t,r){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},35632:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(r,n){var i,o,s;function a(r){e.removeListener(t,u),n(r)}function u(){"function"==typeof e.removeListener&&e.removeListener("error",a),r([].slice.call(arguments))}b(e,t,u,{once:!0}),"error"!==t&&(i=e,o=a,s={once:!0},"function"==typeof i.on&&b(i,"error",o,s))})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function l(e,t,r,n){if(a(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]),void 0===s)s=o[t]=r,++e._eventsCount;else if("function"==typeof s?s=o[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(i=u(e))>0&&s.length>i&&!s.warned){s.warned=!0;var i,o,s,l=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,console&&console.warn&&console.warn(l)}return e}function c(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=c.bind(n);return i.listener=r,n.wrapFn=i,i}function d(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):p(i,i.length)}function h(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function p(e,t){for(var r=Array(t),n=0;n<t;++n)r[n]=e[n];return r}function b(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else if("function"==typeof e.addEventListener)e.addEventListener(t,function i(o){n.once&&e.removeEventListener(t,i),r(o)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var s,a=Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)n(u,this,t);else for(var l=u.length,c=p(u,l),r=0;r<l;++r)n(c[r],this,t);return!0},o.prototype.addListener=function(e,t){return l(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return l(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,f(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,f(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,n,i,o,s;if(a(t),void 0===(n=this._events)||void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit
1("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){s=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},37844:(e,t,r)=>{"use strict";r.d(t,{x_:()=>R});var n=r(52341),i=r(45915),o=r(60156);let s={zero:48,nine:57,A:65,F:70,a:97,f:102};function a(e){return e>=s.zero&&e<=s.nine?e-s.zero:e>=s.A&&e<=s.F?e-(s.A-10):e>=s.a&&e<=s.f?e-(s.a-10):void 0}var u=r(22244),l=r(49801);let c=new TextEncoder;i.C;class f extends i.C{constructor(e){super(`Value \`${"object"==typeof e?l.A(e):e}\` of type \`${typeof e}\` is an invalid Bytes value.`,{metaMessages:["Bytes values must be of type `Bytes`."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesTypeError"})}}class d extends i.C{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}}i.C;class h extends i.C{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}}class p extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let t=super.get(e);return super.has(e)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=this.keys().next().value;e&&this.delete(e)}return this}}let b={checksum:new p(8192)}.checksum;var g=r(17641);function y(e,t={}){var r;let{as:n="string"==typeof e?"Hex":"Bytes"}=t,s=(0,g.lY)(e instanceof Uint8Array?e:"string"==typeof e?function(e,t={}){let{size:r}=t,n=e;r&&(u.Sl(e,r),n=o.M7(e,r));let s=n.slice(2);s.length%2&&(s=`0${s}`);let l=s.length/2,c=new Uint8Array(l);for(let e=0,t=0;e<l;e++){let r=a(s.charCodeAt(t++)),n=a(s.charCodeAt(t++));if(void 0===r||void 0===n)throw new i.C(`Invalid byte sequence ("${s[t-2]}${s[t-1]}" in "${s}").`);c[e]=16*r+n}return c}(e):(r=e)instanceof Uint8Array?r:new Uint8Array(r));return"Bytes"===n?s:o.uK(s)}function m(e,t={}){let{compressed:r}=t,{prefix:n,x:i,y:o}=e;if(!1===r||"bigint"==typeof i&&"bigint"==typeof o){if(4!==n)throw new v({prefix:n,cause:new D});return}if(!0===r||"bigint"==typeof i&&void 0===o){if(3!==n&&2!==n)throw new v({prefix:n,cause:new E});return}throw new x({publicKey:e})}function w(e){if(132!==e.length&&130!==e.length&&68!==e.length)throw new A({publicKey:e});if(130===e.length)return{prefix:4,x:BigInt(o.di(e,0,32)),y:BigInt(o.di(e,32,64))};if(132===e.length){let t=Number(o.di(e,0,1));return{prefix:t,x:BigInt(o.di(e,1,33)),y:BigInt(o.di(e,33,65))}}return{prefix:Number(o.di(e,0,1)),x:BigInt(o.di(e,1,33))}}class x extends i.C{constructor({publicKey:e}){super(`Value \`${l.A(e)}\` is not a valid public key.`,{metaMessages:["Public key must contain:","- an `x` and `prefix` value (compressed)","- an `x`, `y`, and `prefix` value (uncompressed)"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidError"})}}class v extends i.C{constructor({prefix:e,cause:t}){super(`Prefix "${e}
1" is invalid.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidPrefixError"})}}class E extends i.C{constructor(){super("Prefix must be 2 or 3 for compressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidCompressedPrefixError"})}}class D extends i.C{constructor(){super("Prefix must be 4 for uncompressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidUncompressedPrefixError"})}}class A extends i.C{constructor({publicKey:e}){super(`Value \`${e}\` is an invalid public key size.`,{metaMessages:["Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).",`Received ${o.Ej(o.HT(e))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidSerializedSizeError"})}}let S=/^0x[a-fA-F0-9]{40}$/;function I(e,t={}){let{strict:r=!0}=t;if(!S.test(e))throw new C({address:e,cause:new B});if(r){if(e.toLowerCase()===e)return;if(O(e)!==e)throw new C({address:e,cause:new _})}}function O(e){if(b.has(e))return b.get(e);I(e,{strict:!1});let t=e.substring(2).toLowerCase(),r=y(function(e,t={}){let{size:r}=t,n=c.encode(e);if("number"==typeof r){var i;if(n.length>r)throw new d({givenSize:n.length,maxSize:r});return i=n,function(e,t={}){let{dir:r,size:n=32}=t;if(0===n)return e;if(e.length>n)throw new h({size:e.length,targetSize:n,type:"Bytes"});let i=new Uint8Array(n);for(let t=0;t<n;t++){let o="right"===r;i[o?t:n-t-1]=e[o?t:e.length-t-1]}return i}(i,{dir:"right",size:r})}return n}(t),{as:"Bytes"}),n=t.split("");for(let e=0;e<40;e+=2)r[e>>1]>>4>=8&&n[e]&&(n[e]=n[e].toUpperCase()),(15&r[e>>1])>=8&&n[e+1]&&(n[e+1]=n[e+1].toUpperCase());let i=`0x${n.join("")}`;return b.set(e,i),i}class C extends i.C{constructor({address:e,cause:t}){super(`Address "${e}" is invalid.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class B extends i.C{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class _ extends i.C{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}function R(e){return function(e,t={}){let r=y(`0x${(function(e,t={}){m(e);let{prefix:r,x:n,y:i}=e,{includePrefix:s=!0}=t;return o.xW(s?o.oB(r,{size:1}):"0x",o.oB(n,{size:32}),"bigint"==typeof i?o.oB(i,{size:32}):"0x")})(e).slice(4)}`).substring(26);return function(e,t={}){let{checksum:r=!1}=t;return(I(e),r)?O(e):e}(`0x${r}`,t)}(function(e){let{payload:t,signature:r}=e,{r:i,s,yParity:a}=r;var u=new n.secp256k1.Signature(BigInt(i),BigInt(s)).addRecoveryBit(a).recoverPublicKey(o.HT(t).substring(2));let l=(()=>{if(o.tf(u))return w(u);if(function(e){try{if(!(e instanceof Uint8Array)&&(!e||"object"!=typeof e||!("BYTES_PER_ELEMENT"in e)||1!==e.BYTES_PER_ELEMENT||"Uint8Array"!==e.constructor.name))throw new f(e);return!0}catch{return!1}}(u)){var e;return e=u,w(o.uK(e))}let{prefix:t,x:r,y:n}=u;return"bigint"==typeof r&&"bigint"==typeof n?{prefix:t??4,x:r,y:n}:{prefix:t,x:r}})();return m(l),l}(e))}},38204:(e,t,r)=>{let n=r(21723);function i(e,t,r){let n=e[t]+e[r],i=e[t+1]+e[r+1];n>=0x100000000&&i++,e[t]=n,e[t+1]=i}function o(e,t,r,n){let i=e[t]+r;r<0&&(i+=0x100000000);let o=e[t+1]+n;i>=0x100000000&&o++,e[t]=i,e[t+1]=o}function s(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function a(e,t,r,n,s,a){let u=f[s],l=f[s+1],d=f[a],h=f[a+1];i(c,e,t),o(c,e,u,l);let p=c[n]^c[e],b=c[n+1]^c[e+1];c[n]=b,c[n+1]=p,i(c,r,n),p=c[t]^c[r],b=c[t+1]^c[r+1],c[t]=p>>>24^b<<8,c[t+1]=b>>>24^p<<8,i(c,e,t),o(c,e,d,h),p=c[n]^c[e],b=c[n+1]^c[e+1],c[n]=p>>>16^b<<16,c[n+1]=b>>>16^p<<16,i(c,r,n),p=c[t]^c[r],b=c[t+1]^c[r+1],c[t]=b>>>31^p<<1,c[t+1]=p>>>31^b<<1}
1let u=new Uint32Array([0xf3bcc908,0x6a09e667,0x84caa73b,0xbb67ae85,0xfe94f82b,0x3c6ef372,0x5f1d36f1,0xa54ff53a,0xade682d1,0x510e527f,0x2b3e6c1f,0x9b05688c,0xfb41bd6b,0x1f83d9ab,0x137e2179,0x5be0cd19]),l=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map(function(e){return 2*e})),c=new Uint32Array(32),f=new Uint32Array(32);function d(e,t){let r=0;for(r=0;r<16;r++)c[r]=e.h[r],c[r+16]=u[r];for(c[24]=c[24]^e.t,c[25]=c[25]^e.t/0x100000000,t&&(c[28]=~c[28],c[29]=~c[29]),r=0;r<32;r++)f[r]=s(e.b,4*r);for(r=0;r<12;r++)a(0,8,16,24,l[16*r+0],l[16*r+1]),a(2,10,18,26,l[16*r+2],l[16*r+3]),a(4,12,20,28,l[16*r+4],l[16*r+5]),a(6,14,22,30,l[16*r+6],l[16*r+7]),a(0,10,20,30,l[16*r+8],l[16*r+9]),a(2,12,22,24,l[16*r+10],l[16*r+11]),a(4,14,16,26,l[16*r+12],l[16*r+13]),a(6,8,18,28,l[16*r+14],l[16*r+15]);for(r=0;r<16;r++)e.h[r]=e.h[r]^c[r]^c[r+16]}let h=new Uint8Array([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,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]);function p(e,t,r,n){if(0===e||e>64)throw Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(r&&16!==r.length)throw Error("Illegal salt, expected Uint8Array with length is 16");if(n&&16!==n.length)throw Error("Illegal personal, expected Uint8Array with length is 16");let i={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e};h.fill(0),h[0]=e,t&&(h[1]=t.length),h[2]=1,h[3]=1,r&&h.set(r,32),n&&h.set(n,48);for(let e=0;e<16;e++)i.h[e]=u[e]^s(h,4*e);return t&&(b(i,t),i.c=128),i}function b(e,t){for(let r=0;r<t.length;r++)128===e.c&&(e.t+=e.c,d(e,!1),e.c=0),e.b[e.c++]=t[r]}function g(e){for(e.t+=e.c;e.c<128;)e.b[e.c++]=0;d(e,!0);let t=new Uint8Array(e.outlen);for(let r=0;r<e.outlen;r++)t[r]=e.h[r>>2]>>8*(3&r);return t}function y(e,t,r,i,o){r=r||64,e=n.normalizeInput(e),i&&(i=n.normalizeInput(i)),o&&(o=n.normalizeInput(o));let s=p(r,t,i,o);return b(s,e),g(s)}e.exports={blake2b:y,blake2bHex:function(e,t,r,i,o){let s=y(e,t,r,i,o);return n.toHex(s)},blake2bInit:p,blake2bUpdate:b,blake2bFinal:g}},39588:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(35466);n.__exportStar(r(9670),t),n.__exportStar(r(3999),t),n.__exportStar(r(49274),t),n.__exportStar(r(25682),t)},45915:(e,t,r)=>{"use strict";r.d(t,{C:()=>n});class n extends Error{constructor(e,t={}){let r=(()=>{if(t.cause instanceof n){if(t.cause.details)return t.cause.details;if(t.cause.shortMessage)return t.cause.shortMessage}return t.cause&&"details"in t.cause&&"string"==typeof t.cause.details?t.cause.details:t.cause?.message?t.cause.message:t.details})(),i=t.cause instanceof n&&t.cause.docsPath||t.docsPath,o=`https://oxlib.sh${i??""}`;super([e||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...r||i?["",r?`Details: ${r}`:void 0,i?`See: ${o}`:void 0]:[]].filter(e=>"string"==typeof e).join("\n"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:"[email protected]"}),this.cause=t.cause,this.details=r,this.docs=o,this.docsPath=i,this.shortMessage=e}walk(e){return function e(t,r){return r?.(t)?t:t&&"object"==typeof t&&"cause"in t&&t.cause?e(t.cause,r):r?null:t}(this,e)}}},49274:(e,t,r)=>{"use strict";
vendor: 5,617 bytes, line 1
1Object.defineProperty(t,"__esModule",{value:!0}),r(35466).__exportStar(r(91017),t)},49801:(e,t,r)=>{"use strict";function n(e,t,r){return JSON.stringify(e,(e,r)=>"function"==typeof t?t(e,r):"bigint"==typeof r?r.toString()+"#__bigint":r,r)}r.d(t,{A:()=>n})},51205:(e,t,r)=>{"use strict";r.d(t,{H:()=>n});class n{}},51905:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromMiliseconds=t.toMiliseconds=void 0;let n=r(25682);t.toMiliseconds=function(e){return e*n.ONE_THOUSAND},t.fromMiliseconds=function(e){return Math.floor(e/n.ONE_THOUSAND)}},52341:(e,t,r)=>{"use strict";r.d(t,{secp256k1:()=>eD});var n=r(84410),i=r(18693),o=r(26531);let s=BigInt(0),a=BigInt(1);function u(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function l(e){if(!u(e))throw Error("Uint8Array expected")}function c(e,t){if("boolean"!=typeof t)throw Error(e+" boolean expected, got "+t)}function f(e){let t=e.toString(16);return 1&t.length?"0"+t:t}function d(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return""===e?s:BigInt("0x"+e)}let h="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,p=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function b(e){if(l(e),h)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=p[e[r]];return t}let g={_0:48,_9:57,A:65,F:70,a:97,f:102};function y(e){return e>=g._0&&e<=g._9?e-g._0:e>=g.A&&e<=g.F?e-(g.A-10):e>=g.a&&e<=g.f?e-(g.a-10):void 0}function m(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);if(h)return Uint8Array.fromHex(e);let t=e.length,r=t/2;if(t%2)throw Error("hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let t=0,i=0;t<r;t++,i+=2){let r=y(e.charCodeAt(i)),o=y(e.charCodeAt(i+1));if(void 0===r||void 0===o)throw Error('hex string expected, got non-hex character "'+(e[i]+e[i+1])+'" at index '+i);n[t]=16*r+o}return n}function w(e){return d(b(e))}function x(e){return l(e),d(b(Uint8Array.from(e).reverse()))}function v(e,t){return m(e.toString(16).padStart(2*t,"0"))}function E(e,t){return v(e,t).reverse()}function D(e,t,r){let n;if("string"==typeof t)try{n=m(t)}catch(t){throw Error(e+" must be hex string or Uint8Array, cause: "+t)}else if(u(t))n=Uint8Array.from(t);else throw Error(e+" must be hex string or Uint8Array");let i=n.length;if("number"==typeof r&&i!==r)throw Error(e+" of length "+r+" expected, got "+i);return n}function A(...e){let t=0;for(let r=0;r<e.length;r++){let n=e[r];l(n),t+=n.length}let r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let i=e[t];r.set(i,n),n+=i.length}return r}let S=e=>"bigint"==typeof e&&s<=e;function I(e,t,r){return S(e)&&S(t)&&S(r)&&t<=e&&e<r}function O(e,t,r,n){if(!I(t,r,n))throw Error("expected valid "+e+": "+r+" <= n < "+n+", got "+t)}let C=e=>(a<<BigInt(e))-a,B=e=>new Uint8Array(e),_=e=>Uint8Array.from(e),R={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||u(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};function U(e,t,r={}){let n=(t,r,n)=>{let i=R[r];if("function"!=typeof i)throw Error("invalid validator function");let o=e[t];if((!n||void 0!==o)&&!i(o,e))throw Error("param "+String(t)+" is invalid. Expected "+r+", got "+o)};for(let[e,r]of Object.entries(t))n(e,r,!1);for(let[e,t]of Object.entries(r))n(e,t,!0);return e}function N(e){let t=new WeakMap;return(r,...n)=>{let i=t.get(r);if(void 0!==i)return i;let o=e(r,...n);return t.set(r,o),o}}let P=BigInt(0),L=BigInt(1),T=BigInt(2),F=BigInt(3),k=BigInt(4),j=BigInt(5),H=BigInt(8);function z(e,t){let r=e%t;return r>=P?r:t+r}function M(e,t,r){let n=e;for(;t-- >P;)n*=n,n%=r;return n}function W(e,t){if(e===P)throw Error("invert: expected non-zero number");if(t<=P)throw Error("invert: expected positive modulus, got "+t);let r=z(e,t),n=t,i=P,o=L,s=L,a=P;for(;r!==P;){let e=n/r,t=n%r,u=i-s*e,l=o-a*e;n=r,r=t,i=s,o=a,s=u,a=l}if(n!==L)throw Error("invert: does not exist");return z(i,t)}function $(e,t){let r=(e.ORDER+L)/k,n=e.pow(t,r);if(!e.eql(e.sqr(n),t))throw Error("Cannot find square root");return n}function q(e,t){let r=(e.ORDER-j)/H,n=e.mul(t,T),i=e.pow(n,r),o=e.mul(t,i),s=e.mul(e.mul(o,T),i),a=e.mul(o,e.sub(s,e.ONE));if(!e.eql(e.sqr(a),t))throw Error("Cannot find square root");return a}let V=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function J(e,t,r=!1){let n=Array(t.length).fill(r?e.ZERO:void 0),i=t.reduce((t,r,i)=>e.is0(r)?t:(n[i]=t,e.mul(t,r)),e.ONE),o=e.inv(i);return t.reduceRight((t,r,i)=>e.is0(r)?t:(n[i]=e.mul(t,n[i]),e.mul(t,r)),o),n}function K(e,t){let r=(e.ORDER-L)/T,n=e.pow(t,r),i=e.eql(n,e.ONE),o=e.eql(n,e.ZERO),s=e.eql(n,e.neg(e.ONE));if(!i&&!o&&!s)throw Error("invalid Legendre symbol result");return i?1:o?0:-1}function Y(e,t){void 0!==t&&(0,o.Fe)(t);let r=void 0!==t?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function Z(e,t,r=!1,n={}){let i;if(e<=P)throw Error("invalid field: expected ORDER > 0, got "+e);let{nBitLength:o,nByteLength:s}=Y(e,t);if(s>2048)throw Error("invalid field: expected ORDER of <= 2048 bytes");let a=Object.freeze({ORDER:e,isLE:r,BITS:o,BYTES:s,MASK:C(o),ZERO:P,ONE:L,create:t=>z(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error("invalid field element: expected bigint, got "+typeof t);return P<=t&&t<e},is0:e=>e===P,isOdd:e=>(e&L)===L,neg:t=>z(-t,e),eql:(e,t)=>
vendor: 17,818 bytes, line 1
1e===t,sqr:t=>z(t*t,e),add:(t,r)=>z(t+r,e),sub:(t,r)=>z(t-r,e),mul:(t,r)=>z(t*r,e),pow:(e,t)=>(function(e,t,r){if(r<P)throw Error("invalid exponent, negatives unsupported");if(r===P)return e.ONE;if(r===L)return t;let n=e.ONE,i=t;for(;r>P;)r&L&&(n=e.mul(n,i)),i=e.sqr(i),r>>=L;return n})(a,e,t),div:(t,r)=>z(t*W(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>W(t,e),sqrt:n.sqrt||(t=>(i||(i=e%k===F?$:e%H===j?q:function(e){if(e<BigInt(3))throw Error("sqrt is not defined for small field");let t=e-L,r=0;for(;t%T===P;)t/=T,r++;let n=T,i=Z(e);for(;1===K(i,n);)if(n++>1e3)throw Error("Cannot find square root: probably non-prime P");if(1===r)return $;let o=i.pow(n,t),s=(t+L)/T;return function(e,n){if(e.is0(n))return n;if(1!==K(e,n))throw Error("Cannot find square root");let i=r,a=e.mul(e.ONE,o),u=e.pow(n,t),l=e.pow(n,s);for(;!e.eql(u,e.ONE);){if(e.is0(u))return e.ZERO;let t=1,r=e.sqr(u);for(;!e.eql(r,e.ONE);)if(t++,r=e.sqr(r),t===i)throw Error("Cannot find square root");let n=L<<BigInt(i-t-1),o=e.pow(a,n);i=t,a=e.sqr(o),u=e.mul(u,a),l=e.mul(l,o)}return l}}(e)),i(a,t))),toBytes:e=>r?E(e,s):v(e,s),fromBytes:e=>{if(e.length!==s)throw Error("Field.fromBytes: expected "+s+" bytes, got "+e.length);return r?x(e):w(e)},invertBatch:e=>J(a,e),cmov:(e,t,r)=>r?t:e});return Object.freeze(a)}function G(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function X(e){let t=G(e);return t+Math.ceil(t/2)}let Q=BigInt(0),ee=BigInt(1);function et(e,t){let r=t.negate();return e?r:t}function er(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw Error("invalid window size, expected [1.."+t+"], got W="+e)}function en(e,t){er(e,t);let r=Math.ceil(t/e)+1,n=2**(e-1),i=2**e;return{windows:r,windowSize:n,mask:C(e),maxNumber:i,shiftBy:BigInt(e)}}function ei(e,t,r){let{windowSize:n,mask:i,maxNumber:o,shiftBy:s}=r,a=Number(e&i),u=e>>s;a>n&&(a-=o,u+=ee);let l=t*n,c=l+Math.abs(a)-1,f=0===a;return{nextN:u,offset:c,isZero:f,isNeg:a<0,isNegF:t%2!=0,offsetF:l}}let eo=new WeakMap,es=new WeakMap;function ea(e){return es.get(e)||1}function eu(e){return U(e.Fp,V.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"})),U(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Y(e.n,e.nBitLength),...e,...{p:e.Fp.ORDER}})}function el(e){void 0!==e.lowS&&c("lowS",e.lowS),void 0!==e.prehash&&c("prehash",e.prehash)}class ec extends Error{constructor(e=""){super(e)}}let ef={Err:ec,_tlv:{encode:(e,t)=>{let{Err:r}=ef;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(1&t.length)throw new r("tlv.encode: unpadded data");let n=t.length/2,i=f(n);if(i.length/2&128)throw new r("tlv.encode: long form length too big");let o=n>127?f(i.length/2|128):"";return f(e)+o+i+t},decode(e,t){let{Err:r}=ef,n=0;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(t.length<2||t[n++]!==e)throw new r("tlv.decode: wrong tlv");let i=t[n++],o=0;if(128&i){let e=127&i;if(!e)throw new r("tlv.decode(long): indefinite length not supported");if(e>4)throw new r("tlv.decode(long): byte length is too big");let s=t.subarray(n,n+e);if(s.length!==e)throw new r("tlv.decode: length bytes not complete");if(0===s[0])throw new r("tlv.decode(long): zero leftmost byte");for(let e of s)o=o<<8|e;if(n+=e,o<128)throw new r("tlv.decode(long): not minimal encoding")}else o=i;let s=t.subarray(n,n+o);if(s.length!==o)throw new r("tlv.decode: wrong value length");return{v:s,l:t.subarray(n+o)}}},_int:{encode(e){let{Err:t}=ef;if(e<ed)throw new t("integer: negative integers are not allowed");let r=f(e);if(8&Number.parseInt(r[0],16)&&(r="00"+r),1&r.length)throw new t("unexpected DER parsing assertion: unpadded hex");return r},decode(e){let{Err:t}=ef;if(128&e[0])throw new t("invalid signature integer: negative");if(0===e[0]&&!(128&e[1]))throw new t("invalid signature integer: unnecessary leading zero");return w(e)}},toSig(e){let{Err:t,_int:r,_tlv:n}=ef,i=D("signature",e),{v:o,l:s}=n.decode(48,i);if(s.length)throw new t("invalid signature: left bytes after parsing");let{v:a,l:u}=n.decode(2,o),{v:l,l:c}=n.decode(2,u);if(c.length)throw new t("invalid signature: left bytes after parsing");return{r:r.decode(a),s:r.decode(l)}},hexFromSig(e){let{_tlv:t,_int:r}=ef,n=t.encode(2,r.encode(e.r)),i=t.encode(2,r.encode(e.s));return t.encode(48,n+i)}},ed=BigInt(0),eh=BigInt(1),ep=(BigInt(2),BigInt(3)),eb=BigInt(4),eg=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),ey=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),em=BigInt(0),ew=BigInt(1),ex=BigInt(2),ev=(e,t)=>(e+t/ex)/t,eE=Z(eg,void 0,void 0,{sqrt:function(e){let t=BigInt(3),r=BigInt(6),n=BigInt(11),i=BigInt(22),o=BigInt(23),s=BigInt(44),a=BigInt(88),u=e*e*e%eg,l=u*u*e%eg,c=M(l,t,eg)*l%eg,f=M(c,t,eg)*l%eg,d=M(f,ex,eg)*u%eg,h=M(d,n,eg)*d%eg,p=M(h,i,eg)*h%eg,b=M(p,s,eg)*p%eg,g=M(b,a,eg)*b%eg,y=M(g,s,eg)*p%eg,m=M(y,t,eg)*l%eg,w=M(m,o,eg)*h%eg,x=M(w,r,eg)*u%eg,v=M(x,ex,eg);if(!eE.eql(eE.sqr(v),e))throw Error("Cannot find square root");return v}}),eD=function(e,t){let r=t=>(function(e){let t=function(e){let t=eu(e);return U(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:r,n:n,nByteLength:i,nBitLength:o}=t,l=r.BYTES+1,f=2*r.BYTES+1;function d(e){return z(e,n)}let{ProjectivePoint:h,normPrivateKeyToScalar:p,weierstrassEquation:g,isWithinCurveOrder:y}=function(e){var t;let r=function(e){let t=eu(e);U(t,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});let{endo:r,Fp:n,a:i}=t;if(r){if(!n.eql(i,n.ZERO))throw Error("invalid endo: CURVE.a must be 0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...t})}(e),{Fp:n}=r,i=Z(r.n,r.nBitLength),o=r.toBytes||((e,t,r)=>{let i=t.toAffine();return A(Uint8Array.from([4]),n.toBytes(i.x),n.toBytes(i.y))}),l=r.fromBytes||(e=>{let t=e.subarray(1);return{x:n.fromBytes(t.subarray(0,n.BYTES)),y:n.fromBytes(t.subarray(n.BYTES,2*n.BYTES))}});function f(e){let{a:t,b:i}=r,o=n.sqr(e),s=n.mul(o,e);return n.add(n.add(s,n.mul(e,t)),i)}function d(e,t){let r=n.sqr(t),i=f(e);return n.eql(r,i)}if(!d(r.Gx,r.Gy))throw Error("bad curve params: generator point");let h=n.mul(n.pow(r.a,ep),eb),p=n.mul(n.sqr(r.b),BigInt(27));if(n.is0(n.add(h,p)))throw Error("bad curve params: a or b");function g(e){let t,{allowedPrivateKeyLengths:n,nByteLength:i,wrapPrivateKey:o,n:s}=r;if(n&&"bigint"!=typeof e){if(u(e)&&(e=b(e)),"string"!=typeof e||!n.includes(e.length))throw Error("invalid private key");e=e.padStart(2*i,"0")}try{t="bigint"==typeof e?e:w(D("private key",e,i))}catch(t){throw Error("invalid private key, expected hex or "+i+" bytes, got "+typeof e)}return o&&(t=z(t,s)),O("private key",t,eh,s),t}function y(e){if(!(e instanceof v))throw Error("ProjectivePoint expected")}let m=N((e,t)=>{let{px:r,py:i,pz:o}=e;if(n.eql(o,n.ONE))return{x:r,y:i};let s=e.is0();null==t&&(t=s?n.ONE:n.inv(o));let a=n.mul(r,t),u=n.mul(i,t),l=n.mul(o,t);if(s)return{x:n.ZERO,y:n.ZERO};if(!n.eql(l,n.ONE))throw Error("invZ was invalid");return{x:a,y:u}}),x=N(e=>{if(e.is0()){if(r.allowInfinityPoint&&!n.is0(e.py))return;throw Error("bad point: ZERO")}let{x:t,y:i}=e.toAffine();if(!n.isValid(t)||!n.isValid(i))throw Error("bad point: x or y not FE");if(!d(t,i))throw Error("bad point: equation left != right");if(!e.isTorsionFree())throw Error("bad point: not in prime-order subgroup");return!0});class v{constructor(e,t,r){if(null==e||!n.isValid(e))throw Error("x required");if(null==t||!n.isValid(t)||n.is0(t))throw Error("y required");if(null==r||!n.isValid(r))throw Error("z required");this.px=e,this.py=t,this.pz=r,Object.freeze(this)}static fromAffine(e){let{x:t,y:r}=e||{};if(!e||!n.isValid(t)||!n.isValid(r))throw Error("invalid affine point");if(e instanceof v)throw Error("projective point not allowed");let i=e=>n.eql(e,n.ZERO);return i(t)&&i(r)?v.ZERO:new v(t,r,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=J(n,e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(v.fromAffine)}static fromHex(e){let t=v.fromAffine(l(D("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return v.BASE.multiply(g(e))}static msm(e,t){return function(e,t,r,n){if(!Array.isArray(r))throw Error("array expected");r.forEach((t,r)=>{if(!(t instanceof e))throw Error("invalid point at index "+r)});if(!Array.isArray(n))throw Error("array of scalars expected");n.forEach((e,r)=>{if(!t.isValid(e))throw Error("invalid scalar at index "+r)});let i=r.length,o=n.length;if(i!==o)throw Error("arrays of points and scalars must have equal length");let u=e.ZERO,l=function(e){let t;for(t=0;e>s;e>>=a,t+=1);return t}(BigInt(i)),c=1;l>12?c=l-3:l>4?c=l-2:l>0&&(c=2);let f=C(c),d=Array(Number(f)+1).fill(u),h=Math.floor((t.BITS-1)/c)*c,p=u;for(let e=h;e>=0;e-=c){d.fill(u);for(let t=0;t<o;t++){let i=Number(n[t]>>BigInt(e)&f);d[i]=d[i].add(r[t])}let t=u;for(let e=d.length-1,r=u;e>0;e--)r=r.add(d[e]),t=t.add(r);if(p=p.add(t),0!==e)for(let e=0;e<c;e++)p=p.double()}return p}(v,i,e,t)}_setWindowSize(e){B.setWindowSize(this,e)}assertValidity(){x(this)}hasEvenY(){let{y:e}=this.toAffine();if(n.isOdd)return!n.isOdd(e);throw Error("Field doesn't support isOdd")}equals(e){y(e);let{px:t,py:r,pz:i}=this,{px:o,py:s,pz:a}=e,u=n.eql(n.mul(t,a),n.mul(o,i)),l=n.eql(n.mul(r,a),n.mul(s,i));return u&&l}negate(){return new v(this.px,n.neg(this.py),this.pz)}double(){let{a:e,b:t}=r,i=n.mul(t,ep),{px:o,py:s,pz:a}=this,u=n.ZERO,l=n.ZERO,c=n.ZERO,f=n.mul(o,o),d=n.mul(s,s),h=n.mul(a,a),p=n.mul(o,s);return p=n.add(p,p),c=n.mul(o,a),c=n.add(c,c),u=n.mul(e,c),l=n.mul(i,h),l=n.add(u,l),u=n.sub(d,l),l=n.add(d,l),l=n.mul(u,l),u=n.mul(p,u),c=n.mul(i,c),h=n.mul(e,h),p=n.sub(f,h),p=n.mul(e,p),p=n.add(p,c),c=n.add(f,f),f=n.add(c,f),f=n.add(f,h),f=n.mul(f,p),l=n.add(l,f),h=n.mul(s,a),h=n.add(h,h),f=n.mul(h,p),u=n.sub(u,f),c=n.mul(h,d),c=n.add(c,c),new v(u,l,c=n.add(c,c))}add(e){y(e);let{px:t,py:i,pz:o}=this,{px:s,py:a,pz:u}=e,l=n.ZERO,c=n.ZERO,f=n.ZERO,d=r.a,h=n.mul(r.b,ep),p=n.mul(t,s),b=n.mul(i,a),g=n.mul(o,u),m=n.add(t,i),w=n.add(s,a);m=n.mul(m,w),w=n.add(p,b),m=n.sub(m,w),w=n.add(t,o);let x=n.add(s,u);return w=n.mul(w,x),x=n.add(p,g),w=n.sub(w,x),x=n.add(i,o),l=n.add(a,u),x=n.mul(x,l),l=n.add(b,g),x=n.sub(x,l),f=n.mul(d,w),l=n.mul(h,g),f=n.add(l,f),l=n.sub(b,f),f=n.add(b,f),c=n.mul(l,f),b=n.add(p,p),b=n.add(b,p),g=n.mul(d,g),w=n.mul(h,w),b=n.add(b,g),g=n.sub(p,g),g=n.mul(d,g),w=n.add(w,g),p=n.mul(b,w),c=n.add(c,p),p=n.mul(x,w),l=n.mul(m,l),l=n.sub(l,p),p=n.mul(m,b),f=n.mul(x,f),new v(l,c,f=n.add(f,p))}subtract(e){return this.add(e.negate())}is0(){return this.equals(v.ZERO)}wNAF(e){return B.wNAFCached(this,e,v.normalizeZ)}multiplyUnsafe(e){let{endo:t,n:i}=r;O("scalar",e,ed,i);let o=v.ZERO;if(e===ed)return o;if(this.is0()||e===eh)return this;if(!t||B.hasPrecomputes(this))return B.wNAFCachedUnsafe(this,e,v.normalizeZ);let{k1neg:s,k1:a,k2neg:u,k2:l}=t.splitScalar(e),c=o,f=o,d=this;for(;a>ed||l>ed;)a&eh&&(c=c.add(d)),l&eh&&(f=f.add(d)),d=d.double(),a>>=eh,l>>=eh;return s&&(c=c.negate()),u&&(f=f.negate()),f=new v(n.mul(f.px,t.beta),f.py,f.pz),c.add(f)}multiply(e){let t,i,{endo:o,n:s}=r;if(O("scalar",e,eh,s),o){let{k1neg:r,k1:s,k2neg:a,k2:u}=o.splitScalar(e),{p:l,f:c}=this.wNAF(s),{p:f,f:d}=this.wNAF(u);l=B.constTimeNegate(r,l),f=B.constTimeNegate(a,f),f=new v(n.mul(f.px,o.beta),f.py,f.pz),t=l.add(f),i=c.add(d)}else{let{p:r,f:n}=this.wNAF(e);t=r,i=n}return v.normalizeZ([t,i])[0]}multiplyAndAddUnsafe(e,t,r){let n=v.BASE,i=(e,t)=>t!==ed&&t!==eh&&e.equals(n)?e.multiply(t):e.multiplyUnsafe(t),o=i(this,t).add(i(e,r));return o.is0()?void 0:o}toAffine(e){return m(this,e)}isTorsionFree(){let{h:e,isTorsionFree:t}=r;if(e===eh)return!0;if(t)return t(v,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:t}=r;return e===eh?this:t?t(v,this):this.multiplyUnsafe(r.h)}toRawBytes(e=!0){return c("isCompressed",e),this.assertValidity(),o(v,this,e)}toHex(e=!0){return c("isCompressed",e),b(this.toRawBytes(e))}}v.BASE=new v(r.Gx,r.Gy,n.ONE),v.ZERO=new v(n.ZERO,n.ONE,n.ZERO);let{endo:E,nBitLength:S}=r,B=(t=E?Math.ceil(S/2):S,{constTimeNegate:et,hasPrecomputes:e=>1!==ea(e),unsafeLadder(e,t,r=v.ZERO){let n=e;for(;t>Q;)t&ee&&(r=r.add(n)),n=n.double(),t>>=ee;return r},precomputeWindow(e,r){let{windows:n,windowSize:i}=en(r,t),o=[],s=e,a=s;for(let e=0;e<n;e++){a=s,o.push(a);for(let e=1;e<i;e++)a=a.add(s),o.push(a);s=a.double()}return o},wNAF(e,r,n){let i=v.ZERO,o=v.BASE,s=en(e,t);for(let e=0;e<s.windows;e++){let{nextN:t,offset:a,isZero:u,isNeg:l,isNegF:c,offsetF:f}=ei(n,e,s);n=t,u?o=o.add(et(c,r[f])):i=i.add(et(l,r[a]))}return{p:i,f:o}},wNAFUnsafe(e,r,n,i=v.ZERO){let o=en(e,t);for(let e=0;e<o.windows&&n!==Q;e++){let{nextN:t,offset:s,isZero:a,isNeg:u}=ei(n,e,o);if(n=t,!a){let e=r[s];i=i.add(u?e.negate():e)}}return i},getPrecomputes(e,t,r){let n=eo.get(t);return n||(n=this.precomputeWindow(t,e),1!==e&&eo.set(t,r(n))),n},wNAFCached(e,t,r){let n=ea(e);return this.wNAF(n,this.getPrecomputes(n,e,r),t)},wNAFCachedUnsafe(e,t,r,n){let i=ea(e);return 1===i?this.unsafeLadder(e,t,n):this.wNAFUnsafe(i,this.getPrecomputes(i,e,r),t,n)},setWindowSize(e,r){er(r,t),es.set(e,r),eo.delete(e)}});return{CURVE:r,ProjectivePoint:v,normPrivateKeyToScalar:g,weierstrassEquation:f,isWithinCurveOrder:function(e){return I(e,eh,r.n)}}}({...t,toBytes(e,t,n){let i=t.toAffine(),o=r.toBytes(i.x);return(c("isCompressed",n),n)?A(Uint8Array.from([t.hasEvenY()?2:3]),o):A(Uint8Array.from([4]),o,r.toBytes(i.y))},fromBytes(e){let t=e.length,n=e[0],i=e.subarray(1);if(t===l&&(2===n||3===n)){let e,t=w(i);if(!I(t,eh,r.ORDER))throw Error("Point is not on curve");let o=g(t);try{e=r.sqrt(o)}catch(e){throw Error("Point is not on curve"+(e instanceof Error?": "+e.message:""))}return(1&n)==1!=((e&eh)===eh)&&(e=r.neg(e)),{x:t,y:e}}if(t===f&&4===n)return{x:r.fromBytes(i.subarray(0,r.BYTES)),y:r.fromBytes(i.subarray(r.BYTES,2*r.BYTES))};throw Error("invalid Point, expected length of "+l+", or uncompressed "+f+", got "+t)}}),S=(e,t,r)=>w(e.slice(t,r));class R{constructor(e,t,r){O("r",e,eh,n),O("s",t,eh,n),this.r=e,this.s=t,null!=r&&(this.recovery=r),Object.freeze(this)}static fromCompact(e){return new R(S(e=D("compactSignature",e,2*i),0,i),S(e,i,2*i))}static fromDER(e){let{r:t,s:r}=ef.toSig(D("DER",e));return new R(t,r)}assertValidity(){}addRecoveryBit(e){return new R(this.r,this.s,e)}recoverPublicKey(e){let{r:i,s:o,recovery:s}=this,a=F(D("msgHash",e));if(null==s||![0,1,2,3].includes(s))throw Error("recovery id invalid");let u=2===s||3===s?i+t.n:i;if(u>=r.ORDER)throw Error("recovery id 2 or 3 invalid");let l=(1&s)==0?"02":"03",c=h.fromHex(l+b(v(u,r.BYTES))),f=W(u,n),p=d(-a*f),g=d(o*f),y=h.BASE.multiplyAndAddUnsafe(c,p,g);if(!y)throw Error("point at infinify");return y.assertValidity(),y}hasHighS(){return this.s>n>>eh}normalizeS(){return this.hasHighS()?new R(this.r,d(-this.s),this.recovery):this}toDERRawBytes(){return m(this.toDERHex())}toDERHex(){return ef.hexFromSig(this)}toCompactRawBytes(){return m(this.toCompactHex())}toCompactHex(){return b(v(this.r,i))+b(v(this.s,i))}}function P(e){if("bigint"==typeof e)return!1;if(e instanceof h)return!0;let n=D("key",e).length,o=r.BYTES,s=o+1;if(!t.allowedPrivateKeyLengths&&i!==s)return n===s||n===2*o+1}let T=t.bits2int||function(e){if(e.length>8192)throw Error("input is too large");let t=w(e),r=8*e.length-o;return r>0?t>>BigInt(r):t},F=t.bits2int_modN||function(e){return d(T(e))},k=C(o);function j(e){return O("num < 2^"+o,e,ed,k),v(e,i)}let H={lowS:t.lowS,prehash:!1},M={lowS:t.lowS,prehash:!1};return h.BASE._setWindowSize(8),{CURVE:t,getPublicKey:function(e,t=!0){return h.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,r=!0){if(!0===P(e))throw Error("first arg must be private key");if(!1===P(t))throw Error("second arg must be public key");return h.fromHex(t).multiply(p(e)).toRawBytes(r)},sign:function(e,i,o=H){let{seed:s,k2sig:a}=function(e,i,o=H){if(["recovered","canonical"].some(e=>e in o))throw Error("sign() legacy options not supported");let{hash:s,randomBytes:a}=t,{lowS:u,prehash:l,extraEntropy:c}=o;null==u&&(u=!0),e=D("msgHash",e),el(o),l&&(e=D("prehashed msgHash",s(e)));let f=F(e),b=p(i),g=[j(b),j(f)];if(null!=c&&!1!==c){let e=!0===c?a(r.BYTES):c;g.push(D("extraEntropy",e))}return{seed:A(...g),k2sig:function(e){var t;let r=T(e);if(!y(r))return;let i=W(r,n),o=h.BASE.multiply(r).toAffine(),s=d(o.x);if(s===ed)return;let a=d(i*d(f+s*b));if(a===ed)return;let l=2*(o.x!==s)|Number(o.y&eh),c=a;return u&&a>n>>eh&&(c=(t=a)>n>>eh?d(-t):t,l^=1),new R(s,c,l)}}}(e,i,o);return(function(e,t,r){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof r)throw Error("hmacFn must be a function");let n=B(e),i=B(e),o=0,s=()=>{n.fill(1),i.fill(0),o=0},a=(...e)=>r(i,n,...e),u=(e=B(0))=>{i=a(_([0]),e),n=a(),0!==e.length&&(i=a(_([1]),e),n=a())},l=()=>{if(o++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e<t;){let t=(n=a()).slice();r.push(t),e+=n.length}return A(...r)};return(e,t)=>{let r;for(s(),u(e);!(r=t(l()));)u();return s(),r}})(t.hash.outputLen,t.nByteLength,t.hmac)(s,a)},verify:function(e,r,i,o=M){let s,a;r=D("msgHash",r),i=D("publicKey",i);let{lowS:l,prehash:c,format:f}=o;if(el(o),"strict"in o)throw Error("options.strict was renamed to lowS");if(void 0!==f&&"compact"!==f&&"der"!==f)throw Error("format must be compact or der");
1let p="string"==typeof e||u(e),b=!p&&!f&&"object"==typeof e&&null!==e&&"bigint"==typeof e.r&&"bigint"==typeof e.s;if(!p&&!b)throw Error("invalid signature, expected Uint8Array, hex string or Signature instance");try{if(b&&(a=new R(e.r,e.s)),p){try{"compact"!==f&&(a=R.fromDER(e))}catch(e){if(!(e instanceof ef.Err))throw e}a||"der"===f||(a=R.fromCompact(e))}s=h.fromHex(i)}catch(e){return!1}if(!a||l&&a.hasHighS())return!1;c&&(r=t.hash(r));let{r:g,s:y}=a,m=F(r),w=W(y,n),x=d(m*w),v=d(g*w),E=h.BASE.multiplyAndAddUnsafe(s,x,v)?.toAffine();return!!E&&d(E.x)===g},ProjectivePoint:h,Signature:R,utils:{isValidPrivateKey(e){try{return p(e),!0}catch(e){return!1}},normPrivateKeyToScalar:p,randomPrivateKey:()=>{let e=X(t.n);return function(e,t,r=!1){let n=e.length,i=G(t),o=X(t);if(n<16||n<o||n>1024)throw Error("expected "+o+"-1024 bytes of input, got "+n);let s=z(r?x(e):w(e),t-L)+L;return r?E(s,i):v(s,i)}(t.randomBytes(e),t.n)},precompute:(e=8,t=h.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}})({...e,...{hash:t,hmac:(e,...r)=>(0,i.w)(t,e,(0,o.Id)(...r)),randomBytes:o.po}});return{...r(t),create:r}}({a:em,b:BigInt(7),Fp:eE,n:ey,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-ew*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),n=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=BigInt("0x100000000000000000000000000000000"),o=ev(t*e,ey),s=ev(-r*e,ey),a=z(e-o*t-s*n,ey),u=z(-o*r-s*t,ey),l=a>i,c=u>i;if(l&&(a=ey-a),c&&(u=ey-u),a>i||u>i)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:l,k1:a,k2neg:c,k2:u}}}},n.sc)},53768:(e,t,r)=>{"use strict";r.d(t,{o0:()=>h});var n=r(55036),i=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},o=function(e,t,r){this.name=e,this.version=t,this.os=r,this.type="browser"},s=function(e){this.version=e,this.type="node",this.name="node",this.os=n.platform},a=function(e,t,r,n){this.name=e,this.version=t,this.os=r,this.bot=n,this.type="bot-device"},u=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},l=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},c=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,f=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yaho
1o!|yandex/]],d=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function h(e){return e?p(e):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new l:"undefined"!=typeof navigator?p(navigator.userAgent):void 0!==n&&n.version?new s(n.version.slice(1)):null}function p(e){var t=""!==e&&f.reduce(function(t,r){var n=r[0],i=r[1];if(t)return t;var o=i.exec(e);return!!o&&[n,o]},!1);if(!t)return null;var r=t[0],n=t[1];if("searchbot"===r)return new u;var s=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);s?s.length<3&&(s=i(i([],s,!0),function(e){for(var t=[],r=0;r<e;r++)t.push("0");return t}(3-s.length),!0)):s=[];var l=s.join("."),h=function(e){for(var t=0,r=d.length;t<r;t++){var n=d[t],i=n[0];if(n[1].exec(e))return i}return null}(e),p=c.exec(e);return p&&p[1]?new a(r,l,h,p[1]):new o(r,l,h)}},57785:(e,t,r)=>{let n=r(38204),i=r(4831);e.exports={blake2b:n.blake2b,blake2bHex:n.blake2bHex,blake2bInit:n.blake2bInit,blake2bUpdate:n.blake2bUpdate,blake2bFinal:n.blake2bFinal,blake2s:i.blake2s,blake2sHex:i.blake2sHex,blake2sInit:i.blake2sInit,blake2sUpdate:i.blake2sUpdate,blake2sFinal:i.blake2sFinal}},60156:(e,t,r)=>{"use strict";r.d(t,{Ej:()=>h,Fl:()=>x,HT:()=>u,M7:()=>f,di:()=>d,ii:()=>w,oB:()=>c,tf:()=>p,u:()=>m,uK:()=>l,xW:()=>a});var n=r(45915),i=r(22244),o=r(49801);let s=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function a(...e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}function u(e){return e instanceof Uint8Array?l(e):Array.isArray(e)?l(new Uint8Array(e)):e}function l(e,t={}){let r="";for(let t=0;t<e.length;t++)r+=s[e[t]];let n=`0x${r}`;return"number"==typeof t.size?(i.Sl(n,t.size),f(n,t.size)):n}function c(e,t={}){var r,n;let o,{signed:s,size:a}=t,u=BigInt(e);a?o=s?(1n<<8n*BigInt(a)-1n)-1n:2n**(8n*BigInt(a))-1n:"number"==typeof e&&(o=BigInt(Number.MAX_SAFE_INTEGER));let l="bigint"==typeof o&&s?-o-1n:0;if(o&&u>o||u<l){let t="bigint"==typeof e?"n":"";throw new b({max:o?`${o}${t}`:void 0,min:`${l}${t}`,signed:s,size:a,value:`${e}${t}`})}let f=(s&&u<0?(1n<<BigInt(8*a))+BigInt(u):u).toString(16),d=`0x${f}`;return a?(r=d,n=a,i.eV(r,{dir:"left",size:n})):d}function f(e,t){return i.eV(e,{dir:"right",size:t})}function d(e,t,r,n={}){let{strict:o}=n;i.kK(e,t);let s=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return o&&i.X(s,t,r),s}function h(e){return Math.ceil((e.length-2)/2)}function p(e,t={}){let{strict:r=!1}=t;try{return!function(e,t={}){let{strict:r=!1}=t;if(!e||"string"!=typeof e)throw new g(e);if(r&&!/^0x[0-9a-fA-F]*$/.test(e)||!e.startsWith("0x"))throw new y(e)}(e,{strict:r}),!0}catch{return!1}}class b extends n.C{constructor({max:e,min:t,signed:r,size:n,value:i}){super(`Number \`${i}\` is not in safe${n?` ${8*n}-bit`:""}${r?" signed":" unsigned"} integer range ${e?`(\`${t}\` to \`${e}\`)`:`(above \`${t}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}n.C;class g extends n.C{constructor(e){super(`Value \`${"object"==typeof e?o.A(e):e}\` of type \`${typeof e}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class y extends n.C{constructor(e){super(`Value \`${e}
1\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}n.C;class m extends n.C{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}class w extends n.C{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset \`${e}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}class x extends n.C{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}},60762:(e,t,r)=>{"use strict";function n(e){return"object"==typeof e&&"id"in e&&"jsonrpc"in e&&"2.0"===e.jsonrpc}function i(e){return n(e)&&"method"in e}function o(e){return n(e)&&(s(e)||a(e))}function s(e){return"result"in e}function a(e){return"error"in e}r.d(t,{U$:()=>a,p3:()=>i,tq:()=>o,xT:()=>s})},61554:e=>{"use strict";e.exports=function(){throw Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},63768:(e,t,r)=>{"use strict";var n=r(79955);r.o(n,"IJsonRpcProvider")&&r.d(t,{IJsonRpcProvider:function(){return n.IJsonRpcProvider}}),r.o(n,"formatJsonRpcError")&&r.d(t,{formatJsonRpcError:function(){return n.formatJsonRpcError}}),r.o(n,"formatJsonRpcRequest")&&r.d(t,{formatJsonRpcRequest:function(){return n.formatJsonRpcRequest}}),r.o(n,"formatJsonRpcResult")&&r.d(t,{formatJsonRpcResult:function(){return n.formatJsonRpcResult}}),r.o(n,"getBigIntRpcId")&&r.d(t,{getBigIntRpcId:function(){return n.getBigIntRpcId}}),r.o(n,"isHttpUrl")&&r.d(t,{isHttpUrl:function(){return n.isHttpUrl}}),r.o(n,"isJsonRpcError")&&r.d(t,{isJsonRpcError:function(){return n.isJsonRpcError}}),r.o(n,"isJsonRpcRequest")&&r.d(t,{isJsonRpcRequest:function(){return n.isJsonRpcRequest}}),r.o(n,"isJsonRpcResponse")&&r.d(t,{isJsonRpcResponse:function(){return n.isJsonRpcResponse}}),r.o(n,"isJsonRpcResult")&&r.d(t,{isJsonRpcResult:function(){return n.isJsonRpcResult}}),r.o(n,"isLocalhostUrl")&&r.d(t,{isLocalhostUrl:function(){return n.isLocalhostUrl}}),r.o(n,"isReactNative")&&r.d(t,{isReactNative:function(){return n.isReactNative}}),r.o(n,"isWsUrl")&&r.d(t,{isWsUrl:function(){return n.isWsUrl}}),r.o(n,"payloadId")&&r.d(t,{payloadId:function(){return n.payloadId}})},63850:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(35632),i=r(11065),o=r(7227);let s=e=>e.split("?")[0],a="u">typeof WebSocket?WebSocket:"u">typeof r.g&&"u">typeof r.g.WebSocket?r.g.WebSocket:"u">typeof window&&"u">typeof window.WebSocket?window.WebSocket:"u">typeof self&&"u">typeof self.WebSocket?self.WebSocket:r(61554);class u{constructor(e){if(this.url=e,this.events=new n.EventEmitter,this.registering=!1,!(0,o.isWsUrl)(e))throw Error(`Provided URL is not compatible with WebSocket connection: ${e}`);this.url=e}get connected(){return"u">typeof this.socket}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){return new Promise((e,t)=>{if(typeof this.socket>"u")return void t(Error("Connection already closed"));this.socket.onclose=t=>{this.onClose(t),e()},this.socket.close()})}async send(e){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send((0,i.h)(e))}catch(t){this.onError(e.id,t)}}register(e=this.url){if(!(0,o.isWsUrl)(e))throw Error(`Provided URL is not compatible with WebSocket connection: ${e}`);if(this.registering){let e=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=e||this.events.listenerCount("open")>=e)&&this.events.setMaxListeners(e+1),new Promise((e,t)=>
1{this.events.once("register_error",e=>{this.resetMaxListeners(),t(e)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return t(Error("WebSocket connection is missing or invalid"));e(this.socket)})})}return this.url=e,this.registering=!0,new Promise((t,n)=>{let i=(0,o.isReactNative)()?void 0:{rejectUnauthorized:!(0,o.isLocalhostUrl)(e)},s=new a(e,[],i);"u">typeof WebSocket||"u">typeof r.g&&"u">typeof r.g.WebSocket||"u">typeof window&&"u">typeof window.WebSocket||"u">typeof self&&"u">typeof self.WebSocket?s.onerror=e=>{n(this.emitError(e.error))}:s.on("error",e=>{n(this.emitError(e))}),s.onopen=()=>{this.onOpen(s),t(s)}})}onOpen(e){e.onmessage=e=>this.onPayload(e),e.onclose=e=>this.onClose(e),this.socket=e,this.registering=!1,this.events.emit("open")}onClose(e){this.socket=void 0,this.registering=!1,this.events.emit("close",e)}onPayload(e){if(typeof e.data>"u")return;let t="string"==typeof e.data?(0,i.j)(e.data):e.data;this.events.emit("payload",t)}onError(e,t){let r=this.parseError(t),n=r.message||r.toString(),i=(0,o.formatJsonRpcError)(e,n);this.events.emit("payload",i)}parseError(e,t=this.url){return(0,o.parseConnectionError)(e,s(t),"WS")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}emitError(e){let t=this.parseError(Error(e?.message||`WebSocket connection failed for host: ${s(this.url)}`));return this.events.emit("register_error",t),t}}},64190:(e,t,r)=>{"use strict";r.d(t,{xW:()=>w,sH:()=>e$,dI:()=>eq});var n={};r.r(n),r.d(n,{identity:()=>_});var i={};r.r(i),r.d(i,{base2:()=>R});var o={};r.r(o),r.d(o,{base8:()=>U});var s={};r.r(s),r.d(s,{base10:()=>N});var a={};r.r(a),r.d(a,{base16:()=>P,base16upper:()=>L});var u={};r.r(u),r.d(u,{base32:()=>T,base32hex:()=>H,base32hexpad:()=>M,base32hexpadupper:()=>W,base32hexupper:()=>z,base32pad:()=>k,base32padupper:()=>j,base32upper:()=>F,base32z:()=>$});var l={};r.r(l),r.d(l,{base36:()=>q,base36upper:()=>V});var c={};r.r(c),r.d(c,{base58btc:()=>J,base58flickr:()=>K});var f={};r.r(f),r.d(f,{base64:()=>Y,base64pad:()=>Z,base64url:()=>G,base64urlpad:()=>X});var d={};r.r(d),r.d(d,{base256emoji:()=>er});var h={};r.r(h),r.d(h,{sha256:()=>ep,sha512:()=>eb});var p={};r.r(p),r.d(p,{identity:()=>eg});var b={};r.r(b),r.d(b,{code:()=>em,decode:()=>ex,encode:()=>ew,name:()=>ey});var g={};function y(e){return null!=globalThis.Buffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function m(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?y(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}function w(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));let r=m(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return y(r)}r.r(g),r.d(g,{code:()=>eA,decode:()=>eI,encode:()=>eS,name:()=>eD});let x=function(e,t){if(e.length>=255)throw TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),s=o.charCodeAt(0);if(255!==r[s])throw TypeError(o+" is ambiguous");r[s]=i}var a=e.length,u=e.charAt(0),l=Math.log(a)/Math.log(256),c=Math.log(256)/Math.log(a);function f(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;var t=0;if(" "!==e[0]){for(var n=0,i=0;e[t]===u;)n++,t++;for(var o=(e.length-t)*l+1>>>0,s=new Uint8Array(o);e[t];){var c=r[e.charCodeAt(t)];if(255===c)return;for(var f=0,d=o-1;(0!==c||f<i)&&-1!==d;d--,f++)c+=a*s[d]>>>0,s[d]=c%256>>>0,c=c/256>>>0;if(0!==c)throw Error("Non-zero carry");i=f,t++}if(" "!==e[t]){for(var h=o-i;h!==o&&0===s[h];)h++;for(var p=new Uint8Array(n+(o-h)),b=n;h!==o;)p[b++]=s[h++];return p}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,n=0,i=0,o=t.length;i!==o&&0===t[i];)i++,r++;for(var s=(o-i)*c+1>>>0,l=new Uint8Array(s);i!==o;){for(var f=t[i],d=0,h=s-1;(0!==f||d<n)&&-1!==h;h--,d++)f+=256*l[h]>>>0,l[h]=f%a>>>0,f=f/a>>>0;if(0!==f)throw Error("Non-zero carry");n=d,i++}for(var p=s-n;p!==s&&0===l[p];)p++;for(var b=u.repeat(r);p<s;++p)b+=e.charAt(l[p]);return b},decodeUnsafe:f,decode:function(e){var r=f(e);
1if(r)return r;throw Error(`Non-${t} character`)}}};new Uint8Array(0);let v=e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw Error("Unknown type, must be binary type")};class E{constructor(e,t,r){this.name=e,this.prefix=t,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class D{constructor(e,t,r){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return S(this,e)}}class A{constructor(e){this.decoders=e}or(e){return S(this,e)}decode(e){let t=e[0],r=this.decoders[t];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}let S=(e,t)=>new A({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class I{constructor(e,t,r,n){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=n,this.encoder=new E(e,t,r),this.decoder=new D(e,t,n)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}let O=({name:e,prefix:t,encode:r,decode:n})=>new I(e,t,r,n),C=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:i}=x(r,t);return O({prefix:e,name:t,encode:n,decode:e=>v(i(e))})},B=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>O({prefix:t,name:e,encode:e=>((e,t,r)=>{let n="="===t[t.length-1],i=(1<<r)-1,o="",s=0,a=0;for(let n=0;n<e.length;++n)for(a=a<<8|e[n],s+=8;s>r;)s-=r,o+=t[i&a>>s];if(s&&(o+=t[i&a<<r-s]),n)for(;o.length*r&7;)o+="=";return o})(e,n,r),decode:t=>((e,t,r,n)=>{let i={};for(let e=0;e<t.length;++e)i[t[e]]=e;let o=e.length;for(;"="===e[o-1];)--o;let s=new Uint8Array(o*r/8|0),a=0,u=0,l=0;for(let t=0;t<o;++t){let o=i[e[t]];if(void 0===o)throw SyntaxError(`Non-${n} character`);u=u<<r|o,(a+=r)>=8&&(a-=8,s[l++]=255&u>>a)}if(a>=r||255&u<<8-a)throw SyntaxError("Unexpected end of data");return s})(t,n,r,e)}),_=O({prefix:"\0",name:"identity",encode:e=>new TextDecoder().decode(e),decode:e=>new TextEncoder().encode(e)}),R=B({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),U=B({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),N=C({prefix:"9",name:"base10",alphabet:"0123456789"}),P=B({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),L=B({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),T=B({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),F=B({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),k=B({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),j=B({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),H=B({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),z=B({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),M=B({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),W=B({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),$=B({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),q=C({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),V=C({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),J=C({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),K=C({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),Y=B({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/",bitsPerChar:6}),Z=B({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),G=B({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),X=B({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),Q=Array.from("\uD83D\uDE80\uD83E\uDE90☄\uD83D\uDEF0\uD83C\uDF0C\uD83C\uDF11\uD83C\uDF12\uD83C\uDF13\uD83C\uDF14\uD83C\uDF15\uD83C\uDF16\uD83C\uDF17\uD83C\uDF18\uD83C\uDF0D\uD83C\uDF0F\uD83C\uDF0E\uD83D\uDC09☀\uD83D\uDCBB\uD83D\uDDA5\uD83D\uDCBE\uD83D\uDCBF\uD83D\uDE02❤\uD83D\uDE0D\uD83E\uDD23\uD83D\uDE0A\uD83D\uDE4F\uD83D\uDC95\uD83D\uDE2D\uD83D\uDE18\uD83D\uDC4D\uD83D\uDE05\uD83D\uDC4F\uD83D\uDE01\uD83D\uDD25\uD83E\uDD70\uD83D\uDC94\uD83D\uDC96\uD83D\uDC99\uD83D\uDE22\uD83E\uDD14\uD83D\uDE06\uD83D\uDE44\uD83D\uDCAA\uD83D\uDE09☺\uD83D\uDC4C\uD83E\uDD17\uD83D\uDC9C\uD83D\uDE14\uD83D\uDE0E\uD83D\uDE07\uD83C\uDF39\uD83E\uDD26\uD83C\uDF89\uD83D\uDC9E✌✨\uD83E\uDD37\uD83D\uDE31\uD83D\uDE0C\uD83C\uDF38\uD83D\uDE4C\uD83D\uDE0B\uD83D\uDC97\uD83D\uDC9A\uD83D\uDE0F\uD83D\uDC9B\uD83D\uDE42\uD83D\uDC93\uD83E\uDD29\uD83D\uDE04\uD83D\uDE00\uD83D\uDDA4\uD83D\uDE03\uD83D\uDCAF\uD83D\uDE48\uD83D\uDC47\uD83C\uDFB6\uD83D\uDE12\uD83E\uDD2D❣\uD83D\uDE1C\uD83D\uDC8B\uD83D\uDC40\uD83D\uDE2A\uD83D\uDE11\uD83D\uDCA5\uD83D\uDE4B\uD83D\uDE1E\uD83D\uDE29\uD83D\uDE21\uD83E\uDD2A\uD83D\uDC4A\uD83E\uDD73\uD83D\uDE25\uD83E\uDD24\uD83D\uDC49\uD83D\uDC83\uD83D\uDE33✋\uD83D\uDE1A\uD83D\uDE1D\uD83D\uDE34\uD83C\uDF1F\uD83D\uDE2C\uD83D\uDE43\uD83C\uDF40\uD83C\uDF37\uD83D\uDE3B\uD83D\uDE13⭐✅\uD83E\uDD7A\uD83C\uDF08\uD83D\uDE08\uD83E\uDD18\uD83D\uDCA6✔\uD83D\uDE23\uD83C\uDFC3\uD83D\uDC90☹\uD83C\uDF8A\uD83D\uDC98\uD83D\uDE20☝\uD83D\uDE15\uD83C\uDF3A\uD83C\uDF82\uD83C\uDF3B\uD83D\uDE10\uD83D\uDD95\uD83D\uDC9D\uD83D\uDE4A\uD83D\uDE39\uD83D\uDDE3\uD83D\uDCAB\uD83D\uDC80\uD83D\uDC51\uD83C\uDFB5\uD83E\uDD1E\uD83D\uDE1B\uD83D\uDD34\uD83D\uDE24\uD83C\uDF3C\uD83D\uDE2B⚽\uD83E\uDD19☕\uD83C\uDFC6\uD83E\uDD2B\uD83D\uDC48\uD83D\uDE2E\uD83D\uDE46\uD83C\uDF7B\uD83C\uDF43\uD83D\uDC36\uD83D\uDC81\uD83D\uDE32\uD83C\uDF3F\uD83E\uDDE1\uD83C\uDF81⚡\uD83C\uDF1E\uD83C\uDF88❌✊\uD83D\uDC4B\uD83D\uDE30\uD83E\uDD28\uD83D\uDE36\uD83E\uDD1D\uD83D\uDEB6\uD83D\uDCB0\uD83C\uDF53\uD83D\uDCA2\uD83E\uDD1F\uD83D\uDE41\uD83D\uDEA8\uD83D\uDCA8\uD83E\uDD2C✈\uD83C\uDF80\uD83C\uDF7A\uD83E\uDD13\uD83D\uDE19\uD83D\uDC9F\uD83C\uDF31\uD83D\uDE16\uD83D\uDC76\uD83E\uDD74▶➡❓\uD83D\uDC8E\uD83D\uDCB8⬇\uD83D\uDE28\uD83C\uDF1A\uD83E\uDD8B\uD83D\uDE37\uD83D\uDD7A⚠\uD83D\uDE45\uD83D\uDE1F\uD83D\uDE35\uD83D\uDC4E\uD83E\uDD32\uD83E\uDD20\uD83E\uDD27\uD83D\uDCCC\uD83D\uDD35\uD83D\uDC85\uD83E\uDDD0\uD83D\uDC3E\uD83C\uDF52\uD83D\uDE17\uD83E\uDD11\uD83C\uDF0A\uD83E\uDD2F\uD83D\uDC37☎\uD83D\uDCA7\uD83D\uDE2F\uD83D\uDC86\uD83D\uDC46\uD83C\uDFA4\uD83D\uDE47\uD83C\uDF51❄\uD83C\uDF34\uD83D\uDCA3\uD83D\uDC38\uD83D\uDC8C\uD83D\uDCCD\uD83E\uDD40\uD83E\uDD22\uD83D\uDC45\uD83D\uDCA1\uD83D\uDCA9\uD83D\uDC50\uD83D\uDCF8\uD83D\uDC7B\uD83E\uDD10\uD83E\uDD2E\uD83C\uDFBC\uD83E\uDD75\uD83D\uDEA9\uD83C\uDF4E\uD83C\uDF4A\uD83D\uDC7C\uD83D\uDC8D\uD83D\uDCE3\uD83E\uDD42"),ee=Q.reduce((e,t,r)=>(e[r]=t,e),[]),et=Q.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]),er=O({prefix:"\uD83D\uDE80",name:"base256emoji",encode:function(e){return e.reduce((e,t)=>e+=ee[t],"")},decode:function(e){let t=[];for(let r of e){let e=et[r.codePointAt(0)];if(void 0===e)throw Error(`Non-base256emoji character: ${r}`);t.push(e)}return new Uint8Array(t)}});function en(e,t,r){t=t||[];for(var n=r=r||0;e>=0x80000000;)t[r++]=255&e|128,e/=128;for(;-128&e;)t[r++]=255&e|128,e>>>=7;return t[r]=0|e,en.bytes=r-n+1,t}function ei(e,t){var r,n=0,t=t||0,i=0,o=t,s=e.length;do{if(o>=s)throw ei.bytes=0,RangeError("Could not decode varint");r=e[o++],n+=i<28?(127&r)<<i:(127&r)*Math.pow(2,i),i+=7}while(r>=128);return ei.bytes=o-t,n}let eo={encode:en,decode:ei,encodingLength:function(e){return e<128?1:e<16384?2:e<2097152?3:e<0x10000000?4:e<0x800000000?5:e<0x40000000000?6:e<0x2000000000000?7:e<0x100000000000000?8:e<0x8000000000000000?9:10}},es=(e,t=0)=>[eo.decode(e,t),eo.decode.bytes],ea=(e,t,r=0)=>(eo.encode(e,t,r),t),eu=e=>eo.encodingLength(e),el=(e,t)=>
1{let r=t.byteLength,n=eu(e),i=n+eu(r),o=new Uint8Array(i+r);return ea(e,o,0),ea(r,o,n),o.set(t,i),new ec(e,r,t,o)};class ec{constructor(e,t,r,n){this.code=e,this.size=t,this.digest=r,this.bytes=n}}let ef=({name:e,code:t,encode:r})=>new ed(e,t,r);class ed{constructor(e,t,r){this.name=e,this.code=t,this.encode=r}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?el(this.code,t):t.then(e=>el(this.code,e))}throw Error("Unknown type, must be binary type")}}let eh=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),ep=ef({name:"sha2-256",code:18,encode:eh("SHA-256")}),eb=ef({name:"sha2-512",code:19,encode:eh("SHA-512")}),eg={code:0,name:"identity",encode:v,digest:e=>el(0,v(e))},ey="raw",em=85,ew=e=>v(e),ex=e=>v(e),ev=new TextEncoder,eE=new TextDecoder,eD="json",eA=512,eS=e=>ev.encode(JSON.stringify(e)),eI=e=>JSON.parse(eE.decode(e));class eO{constructor(e,t,r,n){this.code=t,this.version=e,this.multihash=r,this.bytes=n,this.byteOffset=n.byteOffset,this.byteLength=n.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:eT,byteLength:eT,code:eL,version:eL,multihash:eL,bytes:eL,_baseCache:eT,asCID:eT})}toV0(){if(0===this.version)return this;{let{code:e,multihash:t}=this;if(e!==eR)throw Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==eU)throw Error("Cannot convert non sha2-256 multihash CID to CIDv0");return eO.createV0(t)}}toV1(){switch(this.version){case 0:{let{code:e,digest:t}=this.multihash,r=el(e,t);return eO.createV1(this.code,r)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(e){var t,r;return e&&this.code===e.code&&this.version===e.version&&((t=this.multihash)===(r=e.multihash)||t.code===r.code&&t.size===r.size&&((e,t)=>{if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0})(t.bytes,r.bytes))}toString(e){let{bytes:t,version:r,_baseCache:n}=this;return 0===r?eB(t,n,e||J.encoder):e_(t,n,e||T.encoder)}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(e){return eF(/^0\.0/,ek),!!(e&&(e[eP]||e.asCID===e))}get toBaseEncodedString(){throw Error("Deprecated, use .toString()")}get codec(){throw Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw Error('"multibaseName" property is deprecated')}get prefix(){throw Error('"prefix" property is deprecated')}static asCID(e){if(e instanceof eO)return e;if(null!=e&&e.asCID===e){let{version:t,code:r,multihash:n,bytes:i}=e;return new eO(t,r,n,i||eN(t,r,n.bytes))}if(null==e||!0!==e[eP])return null;{let{version:t,multihash:r,code:n}=e,i=(e=>{let t=v(e),[r,n]=es(t),[i,o]=es(t.subarray(n)),s=t.subarray(n+o);if(s.byteLength!==i)throw Error("Incorrect length");return new ec(r,i,s,t)})(r);return eO.create(t,n,i)}}static create(e,t,r){if("number"!=typeof t)throw Error("String codecs are no longer supported");switch(e){case 0:if(t===eR)return new eO(e,t,r,r.bytes);throw Error(`Version 0 CID must use dag-pb (code: ${eR}) block encoding`);case 1:{let n=eN(e,t,r.bytes);return new eO(e,t,r,n)}default:throw Error("Invalid version")}}static createV0(e){return eO.create(0,eR,e)}static createV1(e,t){return eO.create(1,e,t)}static decode(e){let[t,r]=eO.decodeFirst(e);if(r.length)throw Error("Incorrect length");return t}static decodeFirst(e){let t=eO.inspectBytes(e),r=t.size-t.multihashSize,n=v(e.subarray(r,r+t.multihashSize));if(n.byteLength!==t.multihashSize)throw Error("Incorrect length");let i=n.subarray(t.multihashSize-t.digestSize),o=new ec(t.multihashCode,t.digestSize,i,n);return[0===t.version?eO.createV0(o):eO.createV1(t.codec,o),e.subarray(t.size)]}static inspectBytes(e){let t=0,r=()=>{let[r,n]=es(e.subarray(t));return t+=n,r},n=r(),i=eR;if(18===n?(n=0,t=0):1===n&&(i=r()),0!==n&&1!==n)throw RangeError(`Invalid CID version ${n}`);let o=t,s=r(),a=r(),u=t+a;return{version:n,codec:i,multihashCode:s,digestSize:a,multihashSize:u-o,size:u}}static parse(e,t){let[r,n]=eC(e,t),i=eO.decode(n);return i._baseCache.set(r,e),i}}let eC=(e,t)=>{switch(e[0]){case"Q":{let r=t||J;return[J.prefix,r.decode(`${J.prefix}${e}`)]}case J.prefix:{let r=t||J;return[J.prefix,r.decode(e)]}case T.prefix:{let r=t||T;return[T.prefix,r.decode(e)]}default:if(null==t)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[e[0],t.decode(e)]}},eB=(e,t,r)=>{let{prefix:n}=r;if(n!==J.prefix)throw Error(`Cannot string encode V0 in ${r.name} encoding`);let i=t.get(n);if(null!=i)return i;{let i=r.encode(e).slice(1);return t.set(n,i),i}},e_=(e,t,r)=>{let{prefix:n}=r,i=t.get(n);if(null!=i)return i;{let i=r.encode(e);return t.set(n,i),i}},eR=112,eU=18,eN=(e,t,r)=>{let n=eu(e),i=n+eu(t),o=new Uint8Array(i+r.byteLength);return ea(e,o,0),ea(t,o,n),o.set(r,i),o}
1,eP=Symbol.for("@ipld/js-cid/CID"),eL={writable:!1,configurable:!1,enumerable:!0},eT={writable:!1,enumerable:!1,configurable:!1},eF=(e,t)=>{if(e.test("0.0.0-dev"))console.warn(t);else throw Error(t)},ek=`CID.isCID(v) is deprecated and will be removed in the next major release.
2Following code pattern:
3
4if (CID.isCID(value)) {
5  doSomethingWithCID(value)
6}
7
8Is replaced with:
9
10const cid = CID.asCID(value)
11if (cid) {
12  // Make sure to use cid instead of value
13  doSomethingWithCID(cid)
14}
15`,ej={...n,...i,...o,...s,...a,...u,...l,...c,...f,...d};function eH(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}({...h,...p});let ez=eH("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),eM=eH("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{let t=m((e=e.substring(1)).length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),eW={utf8:ez,"utf-8":ez,hex:ej.base16,latin1:eM,ascii:eM,binary:eM,...ej};function e$(e,t="utf8"){let r=eW[t];if(!r)throw Error(`Unsupported encoding "${t}"`);return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?y(globalThis.Buffer.from(e,"utf-8")):r.decoder.decode(`${r.prefix}${e}`)}
15function eq(e,t="utf8"){let r=eW[t];if(!r)throw Error(`Unsupported encoding "${t}"`);return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):r.encoder.encode(e).substring(1)}},72058:(e,t,r)=>{"use strict";r.d(t,{Uf:()=>s,XW:()=>a,fO:()=>i,jf:()=>o,zR:()=>n});let n="INTERNAL_ERROR",i="SERVER_ERROR",o=[-32700,-32600,-32601,-32602,-32603],s={PARSE_ERROR:{code:-32700,message:"Parse error"},INVALID_REQUEST:{code:-32600,message:"Invalid Request"},METHOD_NOT_FOUND:{code:-32601,message:"Method not found"},INVALID_PARAMS:{code:-32602,message:"Invalid params"},[n]:{code:-32603,message:"Internal error"},[i]:{code:-32e3,message:"Server error"}},a=i},72659:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_YEAR=t.FOUR_WEEKS=t.THREE_WEEKS=t.TWO_WEEKS=t.ONE_WEEK=t.THIRTY_DAYS=t.SEVEN_DAYS=t.FIVE_DAYS=t.THREE_DAYS=t.ONE_DAY=t.TWENTY_FOUR_HOURS=t.TWELVE_HOURS=t.SIX_HOURS=t.THREE_HOURS=t.ONE_HOUR=t.SIXTY_MINUTES=t.THIRTY_MINUTES=t.TEN_MINUTES=t.FIVE_MINUTES=t.ONE_MINUTE=t.SIXTY_SECONDS=t.THIRTY_SECONDS=t.TEN_SECONDS=t.FIVE_SECONDS=t.ONE_SECOND=void 0,t.ONE_SECOND=1,t.FIVE_SECONDS=5,t.TEN_SECONDS=10,t.THIRTY_SECONDS=30,t.SIXTY_SECONDS=60,t.ONE_MINUTE=t.SIXTY_SECONDS,t.FIVE_MINUTES=5*t.ONE_MINUTE,t.TEN_MINUTES=10*t.ONE_MINUTE,t.THIRTY_MINUTES=30*t.ONE_MINUTE,t.SIXTY_MINUTES=60*t.ONE_MINUTE,t.ONE_HOUR=t.SIXTY_MINUTES,t.THREE_HOURS=3*t.ONE_HOUR,t.SIX_HOURS=6*t.ONE_HOUR,t.TWELVE_HOURS=12*t.ONE_HOUR,t.TWENTY_FOUR_HOURS=24*t.ONE_HOUR,t.ONE_DAY=t.TWENTY_FOUR_HOURS,t.THREE_DAYS=3*t.ONE_DAY,t.FIVE_DAYS=5*t.ONE_DAY,t.SEVEN_DAYS=7*t.ONE_DAY,t.THIRTY_DAYS=30*t.ONE_DAY,t.ONE_WEEK=t.SEVEN_DAYS,t.TWO_WEEKS=2*t.ONE_WEEK,t.THREE_WEEKS=3*t.ONE_WEEK,t.FOUR_WEEKS=4*t.ONE_WEEK,t.ONE_YEAR=365*t.ONE_DAY},76529:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0,t.delay=function(e){return new Promise(t=>{setTimeout(()=>{t(!0)},e)})}},78320:(e,t,r)=>{"use strict";let n;r.d(t,{A:()=>B});let i=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,o=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,s=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function a(e,t){var r;return"__proto__"===e||"constructor"===e&&t&&"object"==typeof t&&"prototype"in t?void(r=e,console.warn(`[destr] Dropping "${r}" key to prevent prototype pollution.`)):t}function u(e,t={}){if("string"!=typeof e)return e;if('"'===e[0]&&'"'===e[e.length-1]&&-1===e.indexOf("\\"))return e.slice(1,-1);let r=e.trim();if(r.length<=9)switch(r.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return NaN;case"infinity":return 1/0;case"-infinity":return-1/0}if(!s.test(e)){if(t.strict)throw SyntaxError("[destr] Invalid JSON");return e}try{if(i.test(e)||o.test(e)){if(t.strict)throw Error("[destr] Possible prototype pollution");return JSON.parse(e,a)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}var l=r(44168).Buffer;function c(e,...t){try{var r;return(r=e(...t))&&"function"==typeof r.then?r:Promise.resolve(r)}catch(e){return Promise.reject(e)}}function f(e){if(function(e){let t=typeof e;return null===e||"object"!==t&&"function"!==t}(e))return String(e);if(function(e){let t=Object.getPrototypeOf(e);return!t||t.isPrototypeOf(Object)}(e)||Array.isArray(e))return JSON.stringify(e);if("function"==typeof e.toJSON)return f(e.toJSON());throw Error("[unstorage] Cannot stringify value!")}let d="base64:";function h(e){return e&&e.split("?")[0]?.replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,"")||""}function p(e){return(e=h(e))?e+":":""}function b(e,t,r){return e.watch?e.watch((e,n)=>t(e,r+n)):()=>{}}async function g(e){"function"==typeof e.dispose&&await c(e.dispose)}function y(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function m(e,t){let r;return(n,i)=>(()=>
15{if(r)return r;let n=indexedDB.open(e);return n.onupgradeneeded=()=>n.result.createObjectStore(t),(r=y(n)).then(e=>{e.onclose=()=>r=void 0},()=>{}),r})().then(e=>i(e.transaction(t,n).objectStore(t)))}function w(){return n||(n=m("keyval-store","keyval")),n}function x(e,t=w()){return t("readonly",t=>y(t.get(e)))}var v=r(11065);class E{constructor(){this.indexedDb=function(e={}){let t={mounts:{"":e.driver||(()=>{let e=new Map;return{name:"memory",getInstance:()=>e,hasItem:t=>e.has(t),getItem:t=>e.get(t)??null,getItemRaw:t=>e.get(t)??null,setItem(t,r){e.set(t,r)},setItemRaw(t,r){e.set(t,r)},removeItem(t){e.delete(t)},getKeys:()=>[...e.keys()],clear(){e.clear()},dispose(){e.clear()}}})()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},r=e=>{for(let r of t.mountpoints)if(e.startsWith(r))return{base:r,relativeKey:e.slice(r.length),driver:t.mounts[r]};return{base:"",relativeKey:e,driver:t.mounts[""]}},n=(e,r)=>t.mountpoints.filter(t=>t.startsWith(e)||r&&e.startsWith(t)).map(r=>({relativeBase:e.length>r.length?e.slice(r.length):void 0,mountpoint:r,driver:t.mounts[r]})),i=(e,r)=>{if(t.watching)for(let n of(r=h(r),t.watchListeners))n(e,r)},o=async()=>{if(!t.watching)for(let e in t.watching=!0,t.mounts)t.unwatch[e]=await b(t.mounts[e],i,e)},s=async()=>{if(t.watching){for(let e in t.unwatch)await t.unwatch[e]();t.unwatch={},t.watching=!1}},a=(e,t,n)=>{let i=new Map,o=e=>{let t=i.get(e.base);return t||(t={driver:e.driver,base:e.base,items:[]},i.set(e.base,t)),t};for(let n of e){let e="string"==typeof n,i=h(e?n:n.key),s=e?void 0:n.value,a=e||!n.options?t:{...t,...n.options},u=r(i);o(u).items.push({key:i,value:s,relativeKey:u.relativeKey,options:a})}return Promise.all([...i.values()].map(e=>n(e))).then(e=>e.flat())},y={hasItem(e,t={}){let{relativeKey:n,driver:i}=r(e=h(e));return c(i.hasItem,n,t)},getItem(e,t={}){let{relativeKey:n,driver:i}=r(e=h(e));return c(i.getItem,n,t).then(e=>u(e))},getItems:(e,t={})=>a(e,t,e=>e.driver.getItems?c(e.driver.getItems,e.items.map(e=>({key:e.relativeKey,options:e.options})),t).then(t=>t.map(t=>({key:function(...e){return h(e.join(":"))}(e.base,t.key),value:u(t.value)}))):Promise.all(e.items.map(t=>c(e.driver.getItem,t.relativeKey,t.options).then(e=>({key:t.key,value:u(e)}))))),getItemRaw(e,t={}){let{relativeKey:n,driver:i}=r(e=h(e));return i.getItemRaw?c(i.getItemRaw,n,t):c(i.getItem,n,t).then(e=>{var t;return"string"==typeof e&&e.startsWith(d)?(t=e.slice(d.length),globalThis.Buffer?l.from(t,"base64"):Uint8Array.from(globalThis.atob(t),e=>e.codePointAt(0))):e})},async setItem(e,t,n={}){if(void 0===t)return y.removeItem(e);let{relativeKey:o,driver:s}=r(e=h(e));s.setItem&&(await c(s.setItem,o,f(t),n),s.watch||i("update",e))},async setItems(e,t){await a(e,t,async e=>{if(e.driver.setItems)return c(e.driver.setItems,e.items.map(e=>({key:e.relativeKey,value:f(e.value),options:e.options})),t);e.driver.setItem&&await Promise.all(e.items.map(t=>c(e.driver.setItem,t.relativeKey,f(t.value),t.options)))})},async setItemRaw(e,t,n={}){if(void 0===t)return y.removeItem(e,n);let{relativeKey:o,driver:s}=r(e=h(e));if(s.setItemRaw)await c(s.setItemRaw,o,t,n);else{var a;if(!s.setItem)return;await c(s.setItem,o,"string"==typeof t?t:d+(a=t,globalThis.Buffer?l.from(a).toString("base64"):globalThis.btoa(String.fromCodePoint(...a))),n)}s.watch||i("update",e)},async removeItem(e,t={}){"boolean"==typeof t&&(t={removeMeta:t});let{relativeKey:n,driver:o}=r(e=h(e));o.removeItem&&(await c(o.removeItem,n,t),(t.removeMeta||t.removeMata)&&await c(o.removeItem,n+"$",t),o.watch||i("remove",e))},async getMeta(e,t={}){"boolean"==typeof t&&(t={nativeOnly:t});let{relativeKey:n,driver:i}=r(e=h(e)),o=Object.create(null);if(i.getMeta&&Object.assign(o,await c(i.getMeta,n,t)),!t.nativeOnly){let e=await c(i.getItem,n+"$",t).then(e=>u(e));e&&"object"==typeof e&&("string"==typeof e.atime&&(e.atime=new Date(e.atime)),"string"==typeof e.mtime&&(e.mtime=new Date(e.mtime)),Object.assign(o,e))}return o},setMeta(e,t,r={}){return this.setItem(e+"$",t,r)},removeMeta(e,t={}){return this.removeItem(e+"$",t)},async getKeys(e,t={}){let r=n(e=p(e),!0),i=[],o=[],s=!0;for(let e of r){for(let r of(e.driver.flags?.maxDepth||(s=!1),await c(e.driver.getKeys,e.relativeBase,t))){let t=e.mountpoint+h(r);i.some(e=>
15t.startsWith(e))||o.push(t)}i=[e.mountpoint,...i.filter(t=>!t.startsWith(e.mountpoint))]}let a=void 0!==t.maxDepth&&!s;return o.filter(r=>{var n;return(!a||function(e,t){if(void 0===t)return!0;let r=0,n=e.indexOf(":");for(;n>-1;)r++,n=e.indexOf(":",n+1);return r<=t}(r,t.maxDepth))&&((n=e)?r.startsWith(n)&&"$"!==r[r.length-1]:"$"!==r[r.length-1])})},async clear(e,t={}){e=p(e),await Promise.all(n(e,!1).map(async e=>e.driver.clear?c(e.driver.clear,e.relativeBase,t):e.driver.removeItem?Promise.all((await e.driver.getKeys(e.relativeBase||"",t)).map(r=>e.driver.removeItem(r,t))):void 0))},async dispose(){await Promise.all(Object.values(t.mounts).map(e=>g(e)))},watch:async e=>(await o(),t.watchListeners.push(e),async()=>{t.watchListeners=t.watchListeners.filter(t=>t!==e),0===t.watchListeners.length&&await s()}),async unwatch(){t.watchListeners=[],await s()},mount(e,r){if((e=p(e))&&t.mounts[e])throw Error(`already mounted at ${e}`);return e&&(t.mountpoints.push(e),t.mountpoints.sort((e,t)=>t.length-e.length)),t.mounts[e]=r,t.watching&&Promise.resolve(b(r,i,e)).then(r=>{t.unwatch[e]=r}).catch(console.error),y},async unmount(e,r=!0){(e=p(e))&&t.mounts[e]&&(t.watching&&e in t.unwatch&&(t.unwatch[e]?.(),delete t.unwatch[e]),r&&await g(t.mounts[e]),t.mountpoints=t.mountpoints.filter(t=>t!==e),delete t.mounts[e])},getMount(e=""){let t=r(e=h(e)+":");return{driver:t.driver,base:t.base}},getMounts:(e="",t={})=>n(e=h(e),t.parents).map(e=>({driver:e.driver,base:e.mountpoint})),keys:(e,t={})=>y.getKeys(e,t),get:(e,t={})=>y.getItem(e,t),set:(e,t,r={})=>y.setItem(e,t,r),has:(e,t={})=>y.hasItem(e,t),del:(e,t={})=>y.removeItem(e,t),remove:(e,t={})=>y.removeItem(e,t)};return y}({driver:((e={})=>{let t,r=e.base&&e.base.length>0?`${e.base}:`:"";return e.dbName&&e.storeName&&(t=m(e.dbName,e.storeName)),{name:"idb-keyval",options:e,hasItem:async e=>!(typeof await x(r+e,t)>"u"),getItem:async e=>await x(r+e,t)??null,setItem:(e,n)=>(function(e,t,r=w()){return r("readwrite",r=>(r.put(t,e),y(r.transaction)))})(r+e,n,t),removeItem:e=>(function(e,t=w()){return t("readwrite",t=>(t.delete(e),y(t.transaction)))})(r+e,t),getKeys:()=>(function(e=w()){return e("readonly",e=>{var t;if(e.getAllKeys)return y(e.getAllKeys());let r=[];return(t=e=>r.push(e.key),e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},y(e.transaction)).then(()=>r)})})(t),clear:()=>(function(e=w()){return e("readwrite",e=>(e.clear(),y(e.transaction)))})(t)}})({dbName:"WALLET_CONNECT_V2_INDEXED_DB",storeName:"keyvaluestorage"})})}async getKeys(){return this.indexedDb.getKeys()}async getEntries(){return(await this.indexedDb.getItems(await this.indexedDb.getKeys())).map(e=>[e.key,e.value])}async getItem(e){let t=await this.indexedDb.getItem(e);if(null!==t)return t}async setItem(e,t){await this.indexedDb.setItem(e,(0,v.h)(t))}async removeItem(e){await this.indexedDb.removeItem(e)}}var D="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof r.g?r.g:"u">typeof self?self:{},A={exports:{}};function S(e){var t;return[e[0],(0,v.j)(null!=(t=e[1])?t:"")]}!function(){function e(){}e.prototype.getItem=function(e){return this.hasOwnProperty(e)?String(this[e]):null},e.prototype.setItem=function(e,t){this[e]=String(t)},e.prototype.removeItem=function(e){delete this[e]},e.prototype.clear=function(){let e=this;Object.keys(e).forEach(function(t){e[t]=void 0,delete e[t]})},e.prototype.key=function(e){return e=e||0,Object.keys(this)[e]},e.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),"u">typeof D&&D.localStorage?A.exports=D.localStorage:"u">typeof window&&window.localStorage?A.exports=window.localStorage:A.exports=new e}();class I{constructor(){this.localStorage=A.exports}async getKeys(){return Object.keys(this.localStorage)}async getEntries(){return Object.entries(this.localStorage).map(S)}async getItem(e){let t=this.localStorage.getItem(e);if(null!==t)return(0,v.j)(t)}async setItem(e,t){this.localStorage.setItem(e,(0,v.h)(t))}async removeItem(e){this.localStorage.removeItem(e)}}let O=async(e,t,r)=>{let n="wc_storage_version",i=await t.getItem(n);if(i&&i>=1)return void r(t);let o=await e.getKeys();if(!o.length)return void r(t);let s=[];for(;o.length;){let r=o.shift();if(!r)continue;let n=r.toLowerCase();if(n.includes("wc@")||n.includes("walletconnect")||n.includes("wc_")||n.includes("wallet_connect")){let n=await e.getItem(r);await t.setItem(r,n),s.push(r)}}await t.setItem(n,1),r(t),C(e,s)},C=async(e,t)=>{t.length&&t.forEach(async t=>{await e.removeItem(t)})};class B{constructor(){this.initialized=!1,this.setInitialized=e=>{this.storage=e,this.initialized=!0};let e=new I;this.storage=e;try{let t=new E;O(e,t,this.setInitialized)}catch{this.initialized=!0}}async getKeys(){return await this.initialize(),this.storage.getKeys()}async getEntries(){return await this.initialize(),this.storage.getEntries()}async getItem(e){return await this.initialize(),this.storage.getItem(e)}async setItem(e,t){return await this.initialize(),this.storage.setItem(e,t)}async removeItem(e){return await this.initialize(),this.storage.removeItem(e)}async initialize(){this.initialized||await new Promise(e=>{let t=setInterval(()=>{this.initialized&&(clearInterval(t),e())},20)})}}},79955:(e,t,r)=>{"use strict";
15Object.defineProperty(t,"__esModule",{value:!0});let n=r(35466);n.__exportStar(r(80196),t),n.__exportStar(r(1104),t)},80196:(e,t,r)=>{"use strict";function n(){return(null===r.g||void 0===r.g?void 0:r.g.crypto)||(null===r.g||void 0===r.g?void 0:r.g.msCrypto)||{}}function i(){let e=n();return e.subtle||e.webkitSubtle}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowserCryptoAvailable=t.getSubtleCrypto=t.getBrowerCrypto=void 0,t.getBrowerCrypto=n,t.getSubtleCrypto=i,t.isBrowserCryptoAvailable=function(){return!!n()&&!!i()}},81109:(e,t)=>{"use strict";function r(e){let t;return"undefined"!=typeof window&&void 0!==window[e]&&(t=window[e]),t}function n(e){let t=r(e);if(!t)throw Error(`${e} is not defined in Window`);return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalStorage=t.getLocalStorageOrThrow=t.getCrypto=t.getCryptoOrThrow=t.getLocation=t.getLocationOrThrow=t.getNavigator=t.getNavigatorOrThrow=t.getDocument=t.getDocumentOrThrow=t.getFromWindowOrThrow=t.getFromWindow=void 0,t.getFromWindow=r,t.getFromWindowOrThrow=n,t.getDocumentOrThrow=function(){return n("document")},t.getDocument=function(){return r("document")},t.getNavigatorOrThrow=function(){return n("navigator")},t.getNavigator=function(){return r("navigator")},t.getLocationOrThrow=function(){return n("location")},t.getLocation=function(){return r("location")},t.getCryptoOrThrow=function(){return n("crypto")},t.getCrypto=function(){return r("crypto")},t.getLocalStorageOrThrow=function(){return n("localStorage")},t.getLocalStorage=function(){return r("localStorage")}},81653:(e,t,r)=>{"use strict";r.d(t,{kF:()=>o});
15class n{}class i extends n{constructor(){super()}}class o extends i{constructor(e){super()}}},82692:(e,t,r)=>{"use strict";var n;function i(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function o(e,t){return!!Array.isArray(t)&&(0===t.length||(e?t.every(e=>"string"==typeof e):t.every(e=>Number.isSafeInteger(e))))}function s(e,t){if("string"!=typeof t)throw Error(`${e}: string expected`);return!0}function a(e){if(!Number.isSafeInteger(e))throw Error(`invalid integer: ${e}`)}function u(e){if(!Array.isArray(e))throw Error("array expected")}function l(e,t){if(!o(!0,t))throw Error(`${e}: array of strings expected`)}function c(e,t){if(!o(!1,t))throw Error(`${e}: array of numbers expected`)}function f(...e){let t=e=>e,r=(e,t)=>r=>e(t(r));return{encode:e.map(e=>e.encode).reduceRight(r,t),decode:e.map(e=>e.decode).reduce(r,t)}}function d(e){let t="string"==typeof e?e.split(""):e,r=t.length;l("alphabet",t);let n=new Map(t.map((e,t)=>[e,t]));return{encode:n=>(u(n),n.map(n=>{if(!Number.isSafeInteger(n)||n<0||n>=r)throw Error(`alphabet.encode: digit index outside alphabet "${n}". Allowed: ${e}`);return t[n]})),decode:t=>(u(t),t.map(t=>{s("alphabet.decode",t);let r=n.get(t);if(void 0===r)throw Error(`Unknown letter: "${t}". Allowed: ${e}`);return r}))}}function h(e=""){return s("join",e),{encode:t=>(l("join.decode",t),t.join(e)),decode:t=>(s("join.decode",t),t.split(e))}}function p(e,t,r){if(t<2)throw Error(`convertRadix: invalid from=${t}, base cannot be less than 2`);if(r<2)throw Error(`convertRadix: invalid to=${r}, base cannot be less than 2`);if(u(e),!e.length)return[];let n=0,i=[],o=Array.from(e,e=>{if(a(e),e<0||e>=t)throw Error(`invalid integer: ${e}`);return e}),s=o.length;for(;;){let e=0,a=!0;for(let i=n;i<s;i++){let s=o[i],u=t*e,l=u+s;if(!Number.isSafeInteger(l)||u/t!==e||l-s!==u)throw Error("convertRadix: carry overflow");let c=l/r;e=l%r;let f=Math.floor(c);if(o[i]=f,!Number.isSafeInteger(f)||f*r+e!==l)throw Error("convertRadix: carry overflow");a&&(f?a=!1:n=i)}if(i.push(e),a)break}for(let t=0;t<e.length-1&&0===e[t];t++)i.push(0);return i.reverse()}r.d(t,{RG:()=>w,tw:()=>v});let b=(e,t)=>0===t?e:b(t,e%t),g=(e,t)=>e+(t-b(e,t)),y=(()=>{let e=[];for(let t=0;t<40;t++)e.push(2**t);return e})();function m(e,t,r,n){if(u(e),t<=0||t>32)throw Error(`convertRadix2: wrong from=${t}`);if(r<=0||r>32)throw Error(`convertRadix2: wrong to=${r}`);if(g(t,r)>32)throw Error(`convertRadix2: carry overflow from=${t} to=${r} carryBits=${g(t,r)}`);let i=0,o=0,s=y[t],l=y[r]-1,c=[];for(let n of e){if(a(n),n>=s)throw Error(`convertRadix2: invalid data word=${n} from=${t}`);if(i=i<<t|n,o+t>32)throw Error(`convertRadix2: carry overflow pos=${o} from=${t}`);for(o+=t;o>=r;o-=r)c.push((i>>o-r&l)>>>0);let e=y[o];if(void 0===e)throw Error("invalid carry");i&=e-1}if(i=i<<r-o&l,!n&&o>=t)throw Error("Excess padding");if(!n&&i>0)throw Error(`Non-zero padding: ${i}`);return n&&o>0&&c.push(i>>>0),c}let w=f(function(e,t=!1){if(a(5),e<=0||e>32)throw Error("radix2: bits should be in (0..32]");if(g(8,e)>32||g(e,8)>32)throw Error("radix2: carry overflow");return{encode:r=>{if(!i(r))throw Error("radix2.encode input should be Uint8Array");return m(Array.from(r),8,e,!t)},decode:r=>(c("radix2.decode",r),Uint8Array.from(m(r,e,8,t)))}}(5),d("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),function(e,t="="){return a(5),s("padding",t),{encode(r){for(l("padding.encode",r);r.length*e%8;)r.push(t);return r},decode(r){l("padding.decode",r);let n=r.length;if(n*e%8)throw Error("padding: invalid, string should have whole number of bytes");for(;n>0&&r[n-1]===t;n--)if((n-1)*e%8==0)throw Error("padding: invalid, string has too much padding");return r.slice(0,n)}}}(5),h("")),x="function"==typeof Uint8Array.from([]).toBase64&&"function"==typeof Uint8Array.fromBase64,v=f((n=58,a(58),{encode:e=>{if(!i(e))throw Error("radix.encode input should be Uint8Array");return p(Array.from(e),256,58)},decode:e=>(c("radix.decode",e),Uint8Array.from(p(e,58,256)))}),d("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),h("")),E=f(d("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),h(""));"function"==typeof Uint8Array.from([]).toHex&&Uint8Array.fromHex},84410:(e,t,r)=>{"use strict";r.d(t,{sc:()=>w,qt:()=>v,Zf:()=>x});var n=r(26531);
vendor: 4,273 bytes, line 15
15class i extends n.Vw{constructor(e,t,r,i){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=i,this.buffer=new Uint8Array(e),this.view=(0,n.O8)(this.buffer)}update(e){(0,n.CC)(this),e=(0,n.ZJ)(e),(0,n.DO)(e);let{view:t,buffer:r,blockLen:i}=this,o=e.length;for(let s=0;s<o;){let a=Math.min(i-this.pos,o-s);if(a===i){let t=(0,n.O8)(e);for(;i<=o-s;s+=i)this.process(t,s);continue}r.set(e.subarray(s,s+a),this.pos),this.pos+=a,s+=a,this.pos===i&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,n.CC)(this),(0,n.Ht)(e,this),this.finished=!0;let{buffer:t,view:r,blockLen:i,isLE:o}=this,{pos:s}=this;t[s++]=128,(0,n.uH)(this.buffer.subarray(s)),this.padOffset>i-s&&(this.process(r,0),s=0);for(let e=s;e<i;e++)t[e]=0;!function(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);let i=BigInt(32),o=BigInt(0xffffffff),s=Number(r>>i&o),a=Number(r&o),u=4*!!n,l=4*!n;e.setUint32(t+u,s,n),e.setUint32(t+l,a,n)}(r,i-8,BigInt(8*this.length),o),this.process(r,0);let a=(0,n.O8)(e),u=this.outputLen;if(u%4)throw Error("_sha2: outputLen should be aligned to 32bit");let l=u/4,c=this.get();if(l>c.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<l;e++)a.setUint32(4*e,c[e],o)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:r,length:n,finished:i,destroyed:o,pos:s}=this;return e.destroyed=o,e.finished=i,e.length=n,e.pos=s,n%t&&e.buffer.set(r),e}clone(){return this._cloneInto()}}let o=Uint32Array.from([0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]),s=Uint32Array.from([0xcbbb9d5d,0xc1059ed8,0x629a292a,0x367cd507,0x9159015a,0x3070dd17,0x152fecd8,0xf70e5939,0x67332667,0xffc00b31,0x8eb44a87,0x68581511,0xdb0c2e0d,0x64f98fa7,0x47b5481d,0xbefa4fa4]),a=Uint32Array.from([0x6a09e667,0xf3bcc908,0xbb67ae85,0x84caa73b,0x3c6ef372,0xfe94f82b,0xa54ff53a,0x5f1d36f1,0x510e527f,0xade682d1,0x9b05688c,0x2b3e6c1f,0x1f83d9ab,0xfb41bd6b,0x5be0cd19,0x137e2179]);var u=r(24040);let l=Uint32Array.from([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),c=new Uint32Array(64);class f extends i{constructor(e=32){super(64,e,8,!1),this.A=0|o[0],this.B=0|o[1],this.C=0|o[2],this.D=0|o[3],this.E=0|o[4],this.F=0|o[5],this.G=0|o[6],this.H=0|o[7]}get(){let{A:e,B:t,C:r,D:n,E:i,F:o,G:s,H:a}=this;return[e,t,r,n,i,o,s,a]}set(e,t,r,n,i,o,s,a){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|o,this.G=0|s,this.H=0|a}process(e,t){for(let r=0;r<16;r++,t+=4)c[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=c[e-15],r=c[e-2],i=(0,n.Ow)(t,7)^(0,n.Ow)(t,18)^t>>>3,o=(0,n.Ow)(r,17)^(0,n.Ow)(r,19)^r>>>10;c[e]=o+c[e-7]+i+c[e-16]|0}let{A:r,B:i,C:o,D:s,E:a,F:u,G:f,H:d}=this;for(let e=0;e<64;e++){var h,p,b,g;let t=d+((0,n.Ow)(a,6)^(0,n.Ow)(a,11)^(0,n.Ow)(a,25))+((h=a)&u^~h&f)+l[e]+c[e]|0,y=((0,n.Ow)(r,2)^(0,n.Ow)(r,13)^(0,n.Ow)(r,22))+((p=r)&(b=i)^p&(g=o)^b&g)|0;d=f,f=u,u=a,a=s+t|0,s=o,o=i,i=r,r=t+y|0}r=r+this.A|0,i=i+this.B|0,o=o+this.C|0,s=s+this.D|0,a=a+this.E|0,u=u+this.F|0,f=f+this.G|0,d=d+this.H|0,this.set(r,i,o,s,a,u,f,d)}roundClean(){(0,n.uH)(c)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,n.uH)(this.buffer)}}let d=u.lD(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b89
156f","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(e=>BigInt(e))),h=d[0],p=d[1],b=new Uint32Array(80),g=new Uint32Array(80);class y extends i{constructor(e=64){super(128,e,16,!1),this.Ah=0|a[0],this.Al=0|a[1],this.Bh=0|a[2],this.Bl=0|a[3],this.Ch=0|a[4],this.Cl=0|a[5],this.Dh=0|a[6],this.Dl=0|a[7],this.Eh=0|a[8],this.El=0|a[9],this.Fh=0|a[10],this.Fl=0|a[11],this.Gh=0|a[12],this.Gl=0|a[13],this.Hh=0|a[14],this.Hl=0|a[15]}get(){let{Ah:e,Al:t,Bh:r,Bl:n,Ch:i,Cl:o,Dh:s,Dl:a,Eh:u,El:l,Fh:c,Fl:f,Gh:d,Gl:h,Hh:p,Hl:b}=this;return[e,t,r,n,i,o,s,a,u,l,c,f,d,h,p,b]}set(e,t,r,n,i,o,s,a,u,l,c,f,d,h,p,b){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|i,this.Cl=0|o,this.Dh=0|s,this.Dl=0|a,this.Eh=0|u,this.El=0|l,this.Fh=0|c,this.Fl=0|f,this.Gh=0|d,this.Gl=0|h,this.Hh=0|p,this.Hl=0|b}process(e,t){for(let r=0;r<16;r++,t+=4)b[r]=e.getUint32(t),g[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){let t=0|b[e-15],r=0|g[e-15],n=u.rE(t,r,1)^u.rE(t,r,8)^u.xn(t,r,7),i=u.ry(t,r,1)^u.ry(t,r,8)^u.jm(t,r,7),o=0|b[e-2],s=0|g[e-2],a=u.rE(o,s,19)^u.qh(o,s,61)^u.xn(o,s,6),l=u.ry(o,s,19)^u.Ei(o,s,61)^u.jm(o,s,6),c=u.CW(i,l,g[e-7],g[e-16]
15),f=u.CQ(c,n,a,b[e-7],b[e-16]);b[e]=0|f,g[e]=0|c}let{Ah:r,Al:n,Bh:i,Bl:o,Ch:s,Cl:a,Dh:l,Dl:c,Eh:f,El:d,Fh:y,Fl:m,Gh:w,Gl:x,Hh:v,Hl:E}=this;for(let e=0;e<80;e++){let t=u.rE(f,d,14)^u.rE(f,d,18)^u.qh(f,d,41),D=u.ry(f,d,14)^u.ry(f,d,18)^u.Ei(f,d,41),A=f&y^~f&w,S=d&m^~d&x,I=u.F8(E,D,S,p[e],g[e]),O=u.TH(I,v,t,A,h[e],b[e]),C=0|I,B=u.rE(r,n,28)^u.qh(r,n,34)^u.qh(r,n,39),_=u.ry(r,n,28)^u.Ei(r,n,34)^u.Ei(r,n,39),R=r&i^r&s^i&s,U=n&o^n&a^o&a;v=0|w,E=0|x,w=0|y,x=0|m,y=0|f,m=0|d,({h:f,l:d}=u.WQ(0|l,0|c,0|O,0|C)),l=0|s,c=0|a,s=0|i,a=0|o,i=0|r,o=0|n;let N=u.Vl(C,_,U);r=u.Vr(N,O,B,R),n=0|N}({h:r,l:n}=u.WQ(0|this.Ah,0|this.Al,0|r,0|n)),({h:i,l:o}=u.WQ(0|this.Bh,0|this.Bl,0|i,0|o)),({h:s,l:a}=u.WQ(0|this.Ch,0|this.Cl,0|s,0|a)),({h:l,l:c}=u.WQ(0|this.Dh,0|this.Dl,0|l,0|c)),({h:f,l:d}=u.WQ(0|this.Eh,0|this.El,0|f,0|d)),({h:y,l:m}=u.WQ(0|this.Fh,0|this.Fl,0|y,0|m)),({h:w,l:x}=u.WQ(0|this.Gh,0|this.Gl,0|w,0|x)),({h:v,l:E}=u.WQ(0|this.Hh,0|this.Hl,0|v,0|E)),this.set(r,n,i,o,s,a,l,c,f,d,y,m,w,x,v,E)}roundClean(){(0,n.uH)(b,g)}destroy(){(0,n.uH)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class m extends y{constructor(){super(48),this.Ah=0|s[0],this.Al=0|s[1],this.Bh=0|s[2],this.Bl=0|s[3],this.Ch=0|s[4],this.Cl=0|s[5],this.Dh=0|s[6],this.Dl=0|s[7],this.Eh=0|s[8],this.El=0|s[9],this.Fh=0|s[10],this.Fl=0|s[11],this.Gh=0|s[12],this.Gl=0|s[13],this.Hh=0|s[14],this.Hl=0|s[15]}}let w=(0,n.qj)(()=>new f),x=(0,n.qj)(()=>new y),v=(0,n.qj)(()=>new m)},85030:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_THOUSAND=t.ONE_HUNDRED=void 0,t.ONE_HUNDRED=100,t.ONE_THOUSAND=1e3},86122:(e,t,r)=>{"use strict";r.d(t,{ER:()=>o,Im:()=>u,dZ:()=>l,eX:()=>s,e_:()=>a});var n=r(32585),i=r(72058);
15function o(e=3){return Date.now()*Math.pow(10,e)+Math.floor(Math.random()*Math.pow(10,e))}function s(e=6){return BigInt(o(e))}function a(e,t,r){return{id:r||o(),jsonrpc:"2.0",method:e,params:t}}function u(e,t){return{id:e,jsonrpc:"2.0",result:t}}function l(e,t,r){var o,s;return{id:e,jsonrpc:"2.0",error:(o=t,s=r,void 0===o?(0,n.vG)(i.zR):("string"==typeof o&&(o=Object.assign(Object.assign({},(0,n.vG)(i.fO)),{message:o})),void 0!==s&&(o.data=s),(0,n.mE)(o.code)&&(o=(0,n.rI)(o.code)),o))}}},91017:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IWatch=void 0;class r{}t.IWatch=r},95263:(e,t,r)=>{"use strict";r.d(t,{aD:()=>o});var n=r(45915),i=r(60156);function o(e){if(130!==e.length&&132!==e.length)throw new s({signature:e});let t=BigInt(i.di(e,0,32)),r=BigInt(i.di(e,32,64)),n=(()=>{let t=Number(`0x${e.slice(130)}`);if(!Number.isNaN(t))try{var r=t;if(0===r||27===r)return 0;if(1===r||28===r)return 1;if(r>=35)return+(r%2==0);throw new u({value:r})}catch{throw new a({value:t})}})();return void 0===n?{r:t,s:r}:{r:t,s:r,yParity:n}}r(49801);class s extends n.C{constructor({signature:e}){super(`Value \`${e}\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${i.Ej(i.HT(e))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}n.C,n.C,n.C;class a extends n.C{constructor({value:e}){super(`Value \`${e}\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidYParityError"})}}class u extends n.C{constructor({value:e}){super(`Value \`${e}\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidVError"})}}},96708:(e,t,r)=>{"use strict";r.d(t,{Cq:()=>tx,FA:()=>tE,TZ:()=>tv,UF:()=>tw});var n=r(39588),i=r(11065);function o(e,...t){if(!(e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error("Uint8Array expected of length "+t+", got length="+e.length)}function s(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}let a="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,u=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);function l(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array(new TextEncoder().encode(e))}(e)),o(e),e}class c{clone(){return this._cloneInto()}}function f(e=32){if(a&&"function"==typeof a.getRandomValues)return a.getRandomValues(new Uint8Array(e));if(a&&"function"==typeof a.randomBytes)return a.randomBytes(e);throw Error("crypto.getRandomValues must be defined")}class d extends c{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=u(this.buffer)}update(e){s(this);let{view:t,buffer:r,blockLen:n}=this,i=(e=l(e)).length;for(let o=0;o<i;){let s=Math.min(n-this.pos,i-o);if(s===n){let t=u(e);for(;n<=i-o;o+=n)this.process(t,o);continue}r.set(e.subarray(o,o+s),this.pos),this.pos+=s,o+=s,this.pos===n&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){s(this),function(e,t){o(e);let r=t.outputLen;if(e.length<r)throw Error("digestInto() expects output buffer of length at least "+r)}(e,this),this.finished=!0;let{buffer:t,view:r,blockLen:n,isLE:i}=this,{pos:a}=this;t[a++]=128,this.buffer.subarray(a).fill(0),this.padOffset>n-a&&(this.process(r,0),a=0);for(let e=a;e<n;e++)t[e]=0;(function(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);let i=BigInt(32),o=BigInt(0xffffffff),s=Number(r>>i&o),a=Number(r&o),u=4*!!n,l=4*!n;e.setUint32(t+u,s,n),e.setUint32(t+l,a,n)})(r,n-8,BigInt(8*this.length),i),this.process(r,0);let l=u(e),c=this.outputLen;if(c%4)throw Error("_sha2: outputLen should be aligned to 32bit");let f=c/4,d=this.get();if(f>d.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<f;e++)l.setUint32(4*e,d[e],i)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:r,length:n,finished:i,destroyed:o,pos:s}=this;return e.length=n,e.pos=s,e.finished=i,e.destroyed=o,n%t&&e.buffer.set(r),e}}let h=BigInt(0x100000000-1),p=BigInt(32),b={split:function(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let i=0;i<e.length;i++){let{h:o,l:s}=function(e,t=!1){return t?{h:Number(e&h),l:Number(e>>p&h)}:{h:0|Number(e>>p&h),l:0|Number(e&h)}}(e[i],t);[r[i],n[i]]=[o,s]}return[r,n]},shrSH:(e,t,r)=>e>>>r,shrSL:(e,t,r)=>e<<32-r|t>>>r,rotrSH:(e,t,r)=>e>>>r|t<<32-r,rotrSL:(e,t,r)=>e<<32-r|t>>>r,rotrBH:(e,t,r)=>e<<64-r|t>>>r-32,rotrBL:(e,t,r)=>e>>>r-32|t<<64-r,add:function(e,t,r,n){let i=(t>>>0)+(n>>>0);return{h:e+r+(i/0x100000000|0)|0,l:0|i}},add3L:(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),add3H:(e,t,r,n)=>t+r+n+(e/0x100000000|0)|0,add4L:(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),add4H:(e,t,r,n,i)=>t+r+n+i+(e/0x100000000|0)|0,add5H:(e,t,r,n,i,o)=>t+r+n+i+o+(e/0x100000000|0)|0,add5L:(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0)},[g,y]=b.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b89
156f","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(e=>BigInt(e))),m=new Uint32Array(80),w=new Uint32Array(80);class x extends d{constructor(){super(128,64,16,!1),this.Ah=0x6a09e667,this.Al=-0xc4336f8,this.Bh=-0x4498517b,this.Bl=-0x7b3558c5,this.Ch=0x3c6ef372,this.Cl=-0x16b07d5,this.Dh=-0x5ab00ac6,this.Dl=0x5f1d36f1,this.Eh=0x510e527f,this.El=-0x52197d2f,this.Fh=-0x64fa9774,this.Fl=0x2b3e6c1f,this.Gh=0x1f83d9ab,this.Gl=-0x4be4295,this.Hh=0x5be0cd19,this.Hl=0x137e2179}get(){let{Ah:e,Al:t,Bh:r,Bl:n,Ch:i,Cl:o,Dh:s,Dl:a,Eh:u,El:l,Fh:c,Fl:f,Gh:d,Gl:h,Hh:p,Hl:b}=this;return[e,t,r,n,i,o,s,a,u,l,c,f,d,h,p,b]}set(e,t,r,n,i,o,s,a,u,l,c,f,d,h,p,b){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|i,this.Cl=0|o,this.Dh=0|s,this.Dl=0|a,this.Eh=0|u,this.El=0|l,this.Fh=0|c,this.Fl=0|f,this.Gh=0|d,this.Gl=0|h,this.Hh=0|p,this.Hl=0|b}process(e,t){for(let r=0;r<16;r++,t+=4)m[r]=e.getUint32(t),w[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){let t=0|m[e-15],r=0|w[e-15],n=b.rotrSH(t,r,1)^b.rotrSH(t,r,8)^b.shrSH(t,r,7),i=b.rotrSL(t,r,1)^b.rotrSL(t,r,8)^b.shrSL(t,r,7),o=0|m[e-2],s=0|w[e-2],a=b.rotrSH(o,s,19)^b.rotrBH(o,s,61)^b.shrSH(o,s,6),u=b.rotrSL(o,s,19)^b.rotrBL(o,s,61)^b.shrSL(o,s,6),l=b.add4L(i,u,w[e-7],w[e-16]),c=b.add4H(l,n,a,m[e-7],m[e-16]);m[e]=0|c,w[e]=0|l}let{Ah:r,Al:n,Bh:i,Bl:o,Ch:s,Cl:a,Dh:u,Dl:l,Eh:c,El:f,Fh:d,Fl:h,Gh:p,Gl:x,Hh:v,Hl:E}=this;for(let e=0;e<80;e++){let t=b.rotrSH(c,f,14)^b.rotrSH(c,f,18)^b.rotrBH(c,f,41),D=b.rotrSL(c,f,14)^b.rotrSL(c,f,18)^b.rotrBL(c,f,41),A=c&d^~c&p,S=f&h^~f&x,I=b.add5L(E,D,S,y[e],w[e]),O=b.add5H(I,v,t,A,g[e],m[e]),C=0|I,B=b.rotrSH(r,n,28)^b.rotrBH(r,n,34)^b.rotrBH(r,n,39),_=b.rotrSL(r,n,28)^b.rotrBL(r,n,34)^b.rotrBL(r,n,39),R=r&i^r&s^i&s,U=n&o^n&a^o&a;v=0|p,E=0|x,p=0|d,x=0|h,d=0|c,h=0|f,({h:c,l:f}=b.add(0|u,0|l,0|O,0|C)),u=0|s,l=0|a,s=0|i,a=0|o,i=0|r,o=0|n;let N=b.add3L(C,_,U);r=b.add3H(N,O,B,R),n=0|N}({h:r,l:n}=b.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:i,l:o}=b.add(0|this.Bh,0|this.Bl,0|i,0|o)),({h:s,l:a}=b.add(0|this.Ch,0|this.Cl,0|s,0|a)),({h:u,l:l}=b.add(0|this.Dh,0|this.Dl,0|u,0|l)),({h:c,l:f}=b.add(0|this.Eh,0|this.El,0|c,0|f)),({h:d,l:h}=b.add(0|this.Fh,0|this.Fl,0|d,0|h)),({h:p,l:x}=b.add(0|this.Gh,0|this.Gl,0|p,0|x)),({h:v,l:E}=b.add(0|this.Hh,0|this.Hl,0|v,0|E)),this.set(r,n,i,o,s,a,u,l,c,f,d,h,p,x,v,E)}roundClean(){m.fill(0),w.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}let v=function(e){let t=t=>e().update(l(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}(()=>new x),E=BigInt(0),D=BigInt(1),A=BigInt(2);function S(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function I(e){if(!S(e))throw Error("Uint8Array expected")}function O(e,t){if("boolean"!=typeof t)throw Error(e+" boolean expected, got "+t)}let C=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function B(e){I(e);let t="";for(let r=0;r<e.length;r++)t+=C[e[r]];return t}function _(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return""===e?E:BigInt("0x"+e)}let R={_0:48,_9:57,A:65,F:70,a:97,f:102};function U(e){return e>=R._0&&e<=R._9?e-R._0:e>=R.A&&e<=R.F?e-(R.A-10):e>=R.a&&e<=R.f?e-(R.a-10):void 0}function N(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);let t=e.length,r=t/2;if(t%2)throw Error("hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let t=0,i=0;t<r;t++,i+=2){let r=U(e.charCodeAt(i)),o=U(e.charCodeAt(i+1));if(void 0===r||void 0===o)throw Error('hex string expected, got non-hex character "'+(e[i]+e[i+1])+'" at index '+i);n[t]=16*r+o}return n}function P(e){return I(e),_(B(Uint8Array.from(e).reverse()))}function L(e,t){return N(e.toString(16).padStart(2*t,"0"))}function T(e,t){return L(e,t).reverse()}function F(e,t,r){let n;if("string"==typeof t)try{n=N(t)}catch(t){throw Error(e+" must be hex string or Uint8Array, cause: "+t)}else if(S(t))n=Uint8Array.from(t);else throw Error(e+" must be hex string or Uint8Array");let i=n.length;if("number"==typeof r&&i!==r)throw Error(e+" of length "+r+" expected, got "+i);return n}function k(...e){let t=0;for(let r=0;r<e.length;r++){let n=e[r];I(n),t+=n.length}let r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let i=e[t];r.set(i,n),n+=i.length}return r}let j=e=>"bigint"==typeof e&&E<=e;function H(e,t,r,n){if(!(j(t)&&j(r)&&j(n))||!(r<=t)||!(t<n))throw Error("expected valid "+e+": "+r+" <= n < "+n+", got "+t)}let z={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||S(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};function M(e,t,r={}){let n=(t,r,n)=>{let i=z[r];if("function"!=typeof i)throw Error("invalid validator function");let o=e[t];if(!(n&&void 0===o)&&!i(o,e))throw Error("param "+String(t)+" is invali
15d. Expected "+r+", got "+o)};for(let[e,r]of Object.entries(t))n(e,r,!1);for(let[e,t]of Object.entries(r))n(e,t,!0);return e}function W(e){let t=new WeakMap;return(r,...n)=>{let i=t.get(r);if(void 0!==i)return i;let o=e(r,...n);return t.set(r,o),o}}let $=BigInt(0),q=BigInt(1),V=BigInt(2),J=BigInt(3),K=BigInt(4),Y=BigInt(5),Z=BigInt(8);function G(e,t){let r=e%t;return r>=$?r:t+r}function X(e,t,r){let n=e;for(;t-- >$;)n*=n,n%=r;return n}function Q(e,t){if(e===$)throw Error("invert: expected non-zero number");if(t<=$)throw Error("invert: expected positive modulus, got "+t);let r=G(e,t),n=t,i=$,o=q;for(;r!==$;){let e=n/r,t=n%r,s=i-o*e;n=r,r=t,i=o,o=s}if(n!==q)throw Error("invert: does not exist");return G(i,t)}let ee=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function et(e,t){let r=void 0!==t?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function er(e,t,r=!1,n={}){let i;if(e<=$)throw Error("invalid field: expected ORDER > 0, got "+e);let{nBitLength:o,nByteLength:s}=et(e,t);if(s>2048)throw Error("invalid field: expected ORDER of <= 2048 bytes");let a=Object.freeze({ORDER:e,isLE:r,BITS:o,BYTES:s,MASK:(A<<BigInt(o-1))-D,ZERO:$,ONE:q,create:t=>G(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error("invalid field element: expected bigint, got "+typeof t);return $<=t&&t<e},is0:e=>e===$,isOdd:e=>(e&q)===q,neg:t=>G(-t,e),eql:(e,t)=>e===t,sqr:t=>G(t*t,e),add:(t,r)=>G(t+r,e),sub:(t,r)=>G(t-r,e),mul:(t,r)=>G(t*r,e),pow:(e,t)=>(function(e,t,r){if(r<$)throw Error("invalid exponent, negatives unsupported");if(r===$)return e.ONE;if(r===q)return t;let n=e.ONE,i=t;for(;r>$;)r&q&&(n=e.mul(n,i)),i=e.sqr(i),r>>=q;return n})(a,e,t),div:(t,r)=>G(t*Q(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>Q(t,e),sqrt:n.sqrt||(t=>(i||(i=function(e){if(e%K===J){let t=(e+q)/K;return function(e,r){let n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw Error("Cannot find square root");return n}}if(e%Z===Y){let t=(e-Y)/Z;return function(e,r){let n=e.mul(r,V),i=e.pow(n,t),o=e.mul(r,i),s=e.mul(e.mul(o,V),i),a=e.mul(o,e.sub(s,e.ONE));if(!e.eql(e.sqr(a),r))throw Error("Cannot find square root");return a}}return function(e){let t,r,n,i=(e-q)/V;for(t=e-q,r=0;t%V===$;t/=V,r++);for(n=V;n<e&&function(e,t,r){if(t<$)throw Error("invalid exponent, negatives unsupported");if(r<=$)throw Error("invalid modulus");if(r===q)return $;let n=q;for(;t>$;)t&q&&(n=n*e%r),e=e*e%r,t>>=q;return n}(n,i,e)!==e-q;n++)if(n>1e3)throw Error("Cannot find square root: likely non-prime P");if(1===r){let t=(e+q)/K;return function(e,r){let n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw Error("Cannot find square root");return n}}let o=(t+q)/V;return function(e,s){if(e.pow(s,i)===e.neg(e.ONE))throw Error("Cannot find square root");let a=r,u=e.pow(e.mul(e.ONE,n),t),l=e.pow(s,o),c=e.pow(s,t);for(;!e.eql(c,e.ONE);){if(e.eql(c,e.ZERO))return e.ZERO;let t=1;for(let r=e.sqr(c);t<a&&!e.eql(r,e.ONE);t++)r=e.sqr(r);let r=e.pow(u,q<<BigInt(a-t-1));u=e.sqr(r),l=e.mul(l,r),c=e.mul(c,u),a=t}return l}}(e)}(e)),i(a,t))),invertBatch:e=>(function(e,t){let r=Array(t.length),n=t.reduce((t,n,i)=>e.is0(n)?t:(r[i]=t,e.mul(t,n)),e.ONE),i=e.inv(n);return t.reduceRight((t,n,i)=>e.is0(n)?t:(r[i]=e.mul(t,r[i]),e.mul(t,n)),i),r})(a,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?T(e,s):L(e,s),fromBytes:e=>{if(e.length!==s)throw Error("Field.fromBytes: expected "+s+" bytes, got "+e.length);return r?P(e):_(B(e))}});return Object.freeze(a)}let en=BigInt(0),ei=BigInt(1);function eo(e,t){let r=t.negate();return e?r:t}function es(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw Error("invalid window size, expected [1.."+t+"], got W="+e)}function ea(e,t){return es(e,t),{windows:Math.ceil(t/e)+1,windowSize:2**(e-1)}}let eu=new WeakMap,el=new WeakMap;function ec(e){return el.get(e)||1}let ef=BigInt(0),ed=BigInt(1),eh=BigInt(2),ep=BigInt(8),eb={zip215:!0};BigInt(0),BigInt(1);let eg=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),ey=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt(0);let em=BigInt(1),ew=BigInt(2);BigInt(3);let ex=BigInt(5),ev=BigInt(8),eE=er(eg,void 0,!0),eD=function(e){var t;let r=function(e){let t=(M(e.Fp,ee.reduce((e,t)=>
15(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"})),M(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...et(e.n,e.nBitLength),...e,p:e.Fp.ORDER}));return M(e,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...t})}(e),{Fp:n,n:i,prehash:o,hash:s,randomBytes:a,nByteLength:u,h:l}=r,c=eh<<BigInt(8*u)-ed,f=n.create,d=er(r.n,r.nBitLength),h=r.uvRatio||((e,t)=>{try{return{isValid:!0,value:n.sqrt(e*n.inv(t))}}catch{return{isValid:!1,value:ef}}}),p=r.adjustScalarBytes||(e=>e),b=r.domain||((e,t,r)=>{if(O("phflag",r),t.length||r)throw Error("Contexts/pre-hash are not supported");return e});function g(e,t){H("coordinate "+e,t,ef,c)}function y(e){if(!(e instanceof x))throw Error("ExtendedPoint expected")}let m=W((e,t)=>{let{ex:r,ey:i,ez:o}=e,s=e.is0();null==t&&(t=s?ep:n.inv(o));let a=f(r*t),u=f(i*t),l=f(o*t);if(s)return{x:ef,y:ed};if(l!==ed)throw Error("invZ was invalid");return{x:a,y:u}}),w=W(e=>{let{a:t,d:n}=r;if(e.is0())throw Error("bad point: ZERO");let{ex:i,ey:o,ez:s,et:a}=e,u=f(i*i),l=f(o*o),c=f(s*s),d=f(c*c),h=f(u*t);if(f(c*f(h+l))!==f(d+f(n*f(u*l))))throw Error("bad point: equation left != right (1)");if(f(i*o)!==f(s*a))throw Error("bad point: equation left != right (2)");return!0});class x{constructor(e,t,r,n){this.ex=e,this.ey=t,this.ez=r,this.et=n,g("x",e),g("y",t),g("z",r),g("t",n),Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(e){if(e instanceof x)throw Error("extended point not allowed");let{x:t,y:r}=e||{};return g("x",t),g("y",r),new x(t,r,ed,f(t*r))}static normalizeZ(e){let t=n.invertBatch(e.map(e=>e.ez));return e.map((e,r)=>e.toAffine(t[r])).map(x.fromAffine)}static msm(e,t){return function(e,t,r,n){if(function(e,t){if(!Array.isArray(e))throw Error("array expected");e.forEach((e,r)=>{if(!(e instanceof t))throw Error("invalid point at index "+r)})}(r,e),function(e,t){if(!Array.isArray(e))throw Error("array of scalars expected");e.forEach((e,r)=>{if(!t.isValid(e))throw Error("invalid scalar at index "+r)})}(n,t),r.length!==n.length)throw Error("arrays of points and scalars must have equal length");let i=e.ZERO,o=function(e){let t;for(t=0;e>E;e>>=D,t+=1);return t}(BigInt(r.length)),s=o>12?o-3:o>4?o-2:o?2:1,a=(1<<s)-1,u=Array(a+1).fill(i),l=Math.floor((t.BITS-1)/s)*s,c=i;for(let e=l;e>=0;e-=s){u.fill(i);for(let t=0;t<n.length;t++){let i=Number(n[t]>>BigInt(e)&BigInt(a));u[i]=u[i].add(r[t])}let t=i;for(let e=u.length-1,r=i;e>0;e--)r=r.add(u[e]),t=t.add(r);if(c=c.add(t),0!==e)for(let e=0;e<s;e++)c=c.double()}return c}(x,d,e,t)}_setWindowSize(e){S.setWindowSize(this,e)}assertValidity(){w(this)}equals(e){y(e);let{ex:t,ey:r,ez:n}=this,{ex:i,ey:o,ez:s}=e,a=f(t*s),u=f(i*n),l=f(r*s),c=f(o*n);return a===u&&l===c}is0(){return this.equals(x.ZERO)}negate(){return new x(f(-this.ex),this.ey,this.ez,f(-this.et))}double(){let{a:e}=r,{ex:t,ey:n,ez:i}=this,o=f(t*t),s=f(n*n),a=f(eh*f(i*i)),u=f(e*o),l=t+n,c=f(f(l*l)-o-s),d=u+s,h=d-a,p=u-s,b=f(c*h),g=f(d*p),y=f(c*p);return new x(b,g,f(h*d),y)}add(e){y(e);let{a:t,d:n}=r,{ex:i,ey:o,ez:s,et:a}=this,{ex:u,ey:l,ez:c,et:d}=e;if(t===BigInt(-1)){let e=f((o-i)*(l+u)),t=f((o+i)*(l-u)),r=f(t-e);if(r===ef)return this.double();let n=f(s*eh*d),h=f(a*eh*c),p=h+n,b=t+e,g=h-n,y=f(p*r),m=f(b*g),w=f(p*g);return new x(y,m,f(r*b),w)}let h=f(i*u),p=f(o*l),b=f(a*n*d),g=f(s*c),m=f((i+o)*(u+l)-h-p),w=g-b,v=g+b,E=f(p-t*h),D=f(m*w),A=f(v*E),S=f(m*E);return new x(D,A,f(w*v),S)}subtract(e){return this.add(e.negate())}wNAF(e){return S.wNAFCached(this,e,x.normalizeZ)}multiply(e){H("scalar",e,ed,i);let{p:t,f:r}=this.wNAF(e);return x.normalizeZ([t,r])[0]}multiplyUnsafe(e,t=x.ZERO){return H("scalar",e,ef,i),e===ef?A:this.is0()||e===ed?this:S.wNAFCachedUnsafe(this,e,x.normalizeZ,t)}isSmallOrder(){return this.multiplyUnsafe(l).is0()}isTorsionFree(){return S.unsafeLadder(this,i).is0()}toAffine(e){return m(this,e)}clearCofactor(){let{h:e}=r;return e===ed?this:this.multiplyUnsafe(e)}static fromHex(e,t=!1){let{d:i,a:o}=r,s=n.BYTES;e=F("pointHex",e,s),O("zip215",t);let a=e.slice(),u=e[s-1];a[s-1]=-129&u;let l=P(a);H("pointHex.y",l,ef,t?c:n.ORDER);let d=f(l*l),{isValid:p,value:b}=h(f(d-ed),f(i*d-o));
15if(!p)throw Error("Point.fromHex: invalid y coordinate");let g=(b&ed)===ed,y=(128&u)!=0;if(!t&&b===ef&&y)throw Error("Point.fromHex: x=0 and x_0=1");return y!==g&&(b=f(-b)),x.fromAffine({x:b,y:l})}static fromPrivateKey(e){return I(e).point}toRawBytes(){let{x:e,y:t}=this.toAffine(),r=T(t,n.BYTES);return r[r.length-1]|=e&ed?128:0,r}toHex(){return B(this.toRawBytes())}}x.BASE=new x(r.Gx,r.Gy,ed,f(r.Gx*r.Gy)),x.ZERO=new x(ef,ed,ed,ef);let{BASE:v,ZERO:A}=x,S=(t=8*u,{constTimeNegate:eo,hasPrecomputes:e=>1!==ec(e),unsafeLadder(e,t,r=x.ZERO){let n=e;for(;t>en;)t&ei&&(r=r.add(n)),n=n.double(),t>>=ei;return r},precomputeWindow(e,r){let{windows:n,windowSize:i}=ea(r,t),o=[],s=e,a=s;for(let e=0;e<n;e++){a=s,o.push(a);for(let e=1;e<i;e++)a=a.add(s),o.push(a);s=a.double()}return o},wNAF(e,r,n){let{windows:i,windowSize:o}=ea(e,t),s=x.ZERO,a=x.BASE,u=BigInt(2**e-1),l=2**e,c=BigInt(e);for(let e=0;e<i;e++){let t=e*o,i=Number(n&u);n>>=c,i>o&&(i-=l,n+=ei);let f=t+Math.abs(i)-1,d=e%2!=0,h=i<0;0===i?a=a.add(eo(d,r[t])):s=s.add(eo(h,r[f]))}return{p:s,f:a}},wNAFUnsafe(e,r,n,i=x.ZERO){let{windows:o,windowSize:s}=ea(e,t),a=BigInt(2**e-1),u=2**e,l=BigInt(e);for(let e=0;e<o;e++){let t=e*s;if(n===en)break;let o=Number(n&a);if(n>>=l,o>s&&(o-=u,n+=ei),0===o)continue;let c=r[t+Math.abs(o)-1];o<0&&(c=c.negate()),i=i.add(c)}return i},getPrecomputes(e,t,r){let n=eu.get(t);return n||(n=this.precomputeWindow(t,e),1!==e&&eu.set(t,r(n))),n},wNAFCached(e,t,r){let n=ec(e);return this.wNAF(n,this.getPrecomputes(n,e,r),t)},wNAFCachedUnsafe(e,t,r,n){let i=ec(e);return 1===i?this.unsafeLadder(e,t,n):this.wNAFUnsafe(i,this.getPrecomputes(i,e,r),t,n)},setWindowSize(e,r){es(r,t),el.set(e,r),eu.delete(e)}});function I(e){let t=n.BYTES;e=F("private key",e,t);let r=F("hashed private key",s(e),2*t),o=p(r.slice(0,t)),a=r.slice(t,2*t),u=G(P(o),i),l=v.multiply(u),c=l.toRawBytes();return{head:o,prefix:a,scalar:u,point:l,pointBytes:c}}function C(e=new Uint8Array,...t){return G(P(s(b(k(...t),F("context",e),!!o))),i)}return v._setWindowSize(8),{CURVE:r,getPublicKey:function(e){return I(e).pointBytes},sign:function(e,t,r={}){e=F("message",e),o&&(e=o(e));let{prefix:s,scalar:a,pointBytes:u}=I(t),l=C(r.context,s,e),c=v.multiply(l).toRawBytes(),f=G(l+C(r.context,c,u,e)*a,i);return H("signature.s",f,ef,i),F("result",k(c,T(f,n.BYTES)),2*n.BYTES)},verify:function(e,t,r,i=eb){let s,a,u,{context:l,zip215:c}=i,f=n.BYTES;e=F("signature",e,2*f),t=F("message",t),r=F("publicKey",r,f),void 0!==c&&O("zip215",c),o&&(t=o(t));let d=P(e.slice(f,2*f));try{s=x.fromHex(r,c),a=x.fromHex(e.slice(0,f),c),u=v.multiplyUnsafe(d)}catch{return!1}if(!c&&s.isSmallOrder())return!1;let h=C(l,a.toRawBytes(),s.toRawBytes(),t);return a.add(s.multiplyUnsafe(h)).subtract(u).clearCofactor().equals(x.ZERO)},ExtendedPoint:x,utils:{getExtendedPublicKey:I,randomPrivateKey:()=>a(n.BYTES),precompute:(e=8,t=x.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}}({a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:eE,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:ev,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:v,randomBytes:f,adjustScalarBytes:function(e){return e[0]&=248,e[31]&=127,e[31]|=64,e},uvRatio:function(e,t){let r=G(t*t*t,eg),n=function(e){let t=BigInt(10),r=BigInt(20),n=BigInt(40),i=BigInt(80),o=e*e%eg*e%eg,s=X(o,ew,eg)*o%eg,a=X(s,em,eg)*e%eg,u=X(a,ex,eg)*a%eg,l=X(u,t,eg)*u%eg,c=X(l,r,eg)*l%eg,f=X(c,n,eg)*c%eg,d=X(f,i,eg)*f%eg,h=X(d,i,eg)*f%eg,p=X(h,t,eg)*u%eg;return{pow_p_5_8:X(p,ew,eg)*e%eg,b2:o}}(e*G(r*r*t,eg)).pow_p_5_8,i=G(e*r*n,eg),o=G(t*i*i,eg),s=i,a=G(i*ey,eg),u=o===e,l=o===G(-e,eg),c=o===G(-e*ey,eg);return u&&(i=s),(l||c)&&(i=a),(G(i,eg)&q)===q&&(i=G(-i,eg)),{isValid:u||l,value:i}}}),eA="base64url",eS="utf8",eI="utf8",eO="base58btc";function eC(e){return null!=globalThis.Buffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function eB(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?eC(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}function e_(e,t){t||(t=e.reduce((e,t)=>
15e+t.length,0));let r=eB(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return eC(r)}var eR=function(e,t){if(e.length>=255)throw TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),s=o.charCodeAt(0);if(255!==r[s])throw TypeError(o+" is ambiguous");r[s]=i}var a=e.length,u=e.charAt(0),l=Math.log(a)/Math.log(256),c=Math.log(256)/Math.log(a);function f(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;var t=0;if(" "!==e[0]){for(var n=0,i=0;e[t]===u;)n++,t++;for(var o=(e.length-t)*l+1>>>0,s=new Uint8Array(o);e[t];){var c=r[e.charCodeAt(t)];if(255===c)return;for(var f=0,d=o-1;(0!==c||f<i)&&-1!==d;d--,f++)c+=a*s[d]>>>0,s[d]=c%256>>>0,c=c/256>>>0;if(0!==c)throw Error("Non-zero carry");i=f,t++}if(" "!==e[t]){for(var h=o-i;h!==o&&0===s[h];)h++;for(var p=new Uint8Array(n+(o-h)),b=n;h!==o;)p[b++]=s[h++];return p}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,n=0,i=0,o=t.length;i!==o&&0===t[i];)i++,r++;for(var s=(o-i)*c+1>>>0,l=new Uint8Array(s);i!==o;){for(var f=t[i],d=0,h=s-1;(0!==f||d<n)&&-1!==h;h--,d++)f+=256*l[h]>>>0,l[h]=f%a>>>0,f=f/a>>>0;if(0!==f)throw Error("Non-zero carry");n=d,i++}for(var p=s-n;p!==s&&0===l[p];)p++;for(var b=u.repeat(r);p<s;++p)b+=e.charAt(l[p]);return b},decodeUnsafe:f,decode:function(e){var r=f(e);if(r)return r;throw Error(`Non-${t} character`)}}};let eU=e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw Error("Unknown type, must be binary type")};class eN{constructor(e,t,r){this.name=e,this.prefix=t,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class eP{constructor(e,t,r){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return eT(this,e)}}class eL{constructor(e){this.decoders=e}or(e){return eT(this,e)}decode(e){let t=e[0],r=this.decoders[t];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}let eT=(e,t)=>new eL({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class eF{constructor(e,t,r,n){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=n,this.encoder=new eN(e,t,r),this.decoder=new eP(e,t,n)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}let ek=({name:e,prefix:t,encode:r,decode:n})=>new eF(e,t,r,n),ej=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:i}=eR(r,t);return ek({prefix:e,name:t,encode:n,decode:e=>eU(i(e))})},eH=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>ek({prefix:t,name:e,encode:e=>((e,t,r)=>{let n="="===t[t.length-1],i=(1<<r)-1,o="",s=0,a=0;for(let n=0;n<e.length;++n)for(a=a<<8|e[n],s+=8;s>r;)s-=r,o+=t[i&a>>s];if(s&&(o+=t[i&a<<r-s]),n)for(;o.length*r&7;)o+="=";return o})(e,n,r),decode:t=>((e,t,r,n)=>{let i={};for(let e=0;e<t.length;++e)i[t[e]]=e;let o=e.length;for(;"="===e[o-1];)--o;let s=new Uint8Array(o*r/8|0),a=0,u=0,l=0;for(let t=0;t<o;++t){let o=i[e[t]];if(void 0===o)throw SyntaxError(`Non-${n} character`);u=u<<r|o,(a+=r)>=8&&(a-=8,s[l++]=255&u>>a)}if(a>=r||255&u<<8-a)throw SyntaxError("Unexpected end of data");return s})(t,n,r,e)});var ez=Object.freeze({__proto__:null,identity:ek({prefix:"\0",name:"identity",encode:e=>new TextDecoder().decode(e),decode:e=>new TextEncoder().encode(e)})}),eM=Object.freeze({__proto__:null,base2:eH({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1})}),eW=Object.freeze({__proto__:null,base8:eH({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3})}),e$=Object.freeze({__proto__:null,base10:ej({prefix:"9",name:"base10",alphabet:"0123456789"})}),eq=Object.freeze({__proto__:null,base16:eH({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),base16upper:eH({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4})});let eV=eH({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),eJ=eH({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),eK=eH({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),eY=eH({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),eZ=eH({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),eG=eH({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),eX=eH({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5});var eQ=Object.freeze({__proto__:null,base32:eV,base32upper:eJ,base32pad:eK,base32padupper:eY,base32hex:eZ,base32hexupper:eG,base32hexpad:eX,base32hexpadupper:eH({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),base32z:eH({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5})}),e0=Object.freeze({__proto__:null,base36:ej({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),base36upper:ej({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"})}),e1=Object.freeze({__proto__:null,base58btc:ej({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),base58flickr:ej({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"})});let e2=eH({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
15+/",bitsPerChar:6}),e8=eH({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6});var e3=Object.freeze({__proto__:null,base64:e2,base64pad:e8,base64url:eH({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),base64urlpad:eH({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6})});let e6=Array.from("\uD83D\uDE80\uD83E\uDE90☄\uD83D\uDEF0\uD83C\uDF0C\uD83C\uDF11\uD83C\uDF12\uD83C\uDF13\uD83C\uDF14\uD83C\uDF15\uD83C\uDF16\uD83C\uDF17\uD83C\uDF18\uD83C\uDF0D\uD83C\uDF0F\uD83C\uDF0E\uD83D\uDC09☀\uD83D\uDCBB\uD83D\uDDA5\uD83D\uDCBE\uD83D\uDCBF\uD83D\uDE02❤\uD83D\uDE0D\uD83E\uDD23\uD83D\uDE0A\uD83D\uDE4F\uD83D\uDC95\uD83D\uDE2D\uD83D\uDE18\uD83D\uDC4D\uD83D\uDE05\uD83D\uDC4F\uD83D\uDE01\uD83D\uDD25\uD83E\uDD70\uD83D\uDC94\uD83D\uDC96\uD83D\uDC99\uD83D\uDE22\uD83E\uDD14\uD83D\uDE06\uD83D\uDE44\uD83D\uDCAA\uD83D\uDE09☺\uD83D\uDC4C\uD83E\uDD17\uD83D\uDC9C\uD83D\uDE14\uD83D\uDE0E\uD83D\uDE07\uD83C\uDF39\uD83E\uDD26\uD83C\uDF89\uD83D\uDC9E✌✨\uD83E\uDD37\uD83D\uDE31\uD83D\uDE0C\uD83C\uDF38\uD83D\uDE4C\uD83D\uDE0B\uD83D\uDC97\uD83D\uDC9A\uD83D\uDE0F\uD83D\uDC9B\uD83D\uDE42\uD83D\uDC93\uD83E\uDD29\uD83D\uDE04\uD83D\uDE00\uD83D\uDDA4\uD83D\uDE03\uD83D\uDCAF\uD83D\uDE48\uD83D\uDC47\uD83C\uDFB6\uD83D\uDE12\uD83E\uDD2D❣\uD83D\uDE1C\uD83D\uDC8B\uD83D\uDC40\uD83D\uDE2A\uD83D\uDE11\uD83D\uDCA5\uD83D\uDE4B\uD83D\uDE1E\uD83D\uDE29\uD83D\uDE21\uD83E\uDD2A\uD83D\uDC4A\uD83E\uDD73\uD83D\uDE25\uD83E\uDD24\uD83D\uDC49\uD83D\uDC83\uD83D\uDE33✋\uD83D\uDE1A\uD83D\uDE1D\uD83D\uDE34\uD83C\uDF1F\uD83D\uDE2C\uD83D\uDE43\uD83C\uDF40\uD83C\uDF37\uD83D\uDE3B\uD83D\uDE13⭐✅\uD83E\uDD7A\uD83C\uDF08\uD83D\uDE08\uD83E\uDD18\uD83D\uDCA6✔\uD83D\uDE23\uD83C\uDFC3\uD83D\uDC90☹\uD83C\uDF8A\uD83D\uDC98\uD83D\uDE20☝\uD83D\uDE15\uD83C\uDF3A\uD83C\uDF82\uD83C\uDF3B\uD83D\uDE10\uD83D\uDD95\uD83D\uDC9D\uD83D\uDE4A\uD83D\uDE39\uD83D\uDDE3\uD83D\uDCAB\uD83D\uDC80\uD83D\uDC51\uD83C\uDFB5\uD83E\uDD1E\uD83D\uDE1B\uD83D\uDD34\uD83D\uDE24\uD83C\uDF3C\uD83D\uDE2B⚽\uD83E\uDD19☕\uD83C\uDFC6\uD83E\uDD2B\uD83D\uDC48\uD83D\uDE2E\uD83D\uDE46\uD83C\uDF7B\uD83C\uDF43\uD83D\uDC36\uD83D\uDC81\uD83D\uDE32\uD83C\uDF3F\uD83E\uDDE1\uD83C\uDF81⚡\uD83C\uDF1E\uD83C\uDF88❌✊\uD83D\uDC4B\uD83D\uDE30\uD83E\uDD28\uD83D\uDE36\uD83E\uDD1D\uD83D\uDEB6\uD83D\uDCB0\uD83C\uDF53\uD83D\uDCA2\uD83E\uDD1F\uD83D\uDE41\uD83D\uDEA8\uD83D\uDCA8\uD83E\uDD2C✈\uD83C\uDF80\uD83C\uDF7A\uD83E\uDD13\uD83D\uDE19\uD83D\uDC9F\uD83C\uDF31\uD83D\uDE16\uD83D\uDC76\uD83E\uDD74▶➡❓\uD83D\uDC8E\uD83D\uDCB8⬇\uD83D\uDE28\uD83C\uDF1A\uD83E\uDD8B\uD83D\uDE37\uD83D\uDD7A⚠\uD83D\uDE45\uD83D\uDE1F\uD83D\uDE35\uD83D\uDC4E\uD83E\uDD32\uD83E\uDD20\uD83E\uDD27\uD83D\uDCCC\uD83D\uDD35\uD83D\uDC85\uD83E\uDDD0\uD83D\uDC3E\uD83C\uDF52\uD83D\uDE17\uD83E\uDD11\uD83C\uDF0A\uD83E\uDD2F\uD83D\uDC37☎\uD83D\uDCA7\uD83D\uDE2F\uD83D\uDC86\uD83D\uDC46\uD83C\uDFA4\uD83D\uDE47\uD83C\uDF51❄\uD83C\uDF34\uD83D\uDCA3\uD83D\uDC38\uD83D\uDC8C\uD83D\uDCCD\uD83E\uDD40\uD83E\uDD22\uD83D\uDC45\uD83D\uDCA1\uD83D\uDCA9\uD83D\uDC50\uD83D\uDCF8\uD83D\uDC7B\uD83E\uDD10\uD83E\uDD2E\uD83C\uDFBC\uD83E\uDD75\uD83D\uDEA9\uD83C\uDF4E\uD83C\uDF4A\uD83D\uDC7C\uD83D\uDC8D\uD83D\uDCE3\uD83E\uDD42"),e5=e6.reduce((e,t,r)=>(e[r]=t,e),[]),e4=e6.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);var e9=Object.freeze({__proto__:null,base256emoji:ek({prefix:"\uD83D\uDE80",name:"base256emoji",encode:function(e){return e.reduce((e,t)=>e+=e5[t],"")},decode:function(e){let t=[];for(let r of e){let e=e4[r.codePointAt(0)];if(void 0===e)throw Error(`Non-base256emoji character: ${r}`);t.push(e)}return new Uint8Array(t)}})});function e7(e,t,r){t=t||[],r=r||0;for(var n=r;e>=0x80000000;)t[r++]=255&e|128,e/=128;for(;-128&e;)t[r++]=255&e|128,e>>>=7;return t[r]=0|e,e7.bytes=r-n+1,t}var te={encode:e7,encodingLength:function(e){return e<128?1:e<16384?2:e<2097152?3:e<0x10000000?4:e<0x800000000?5:e<0x40000000000?6:e<0x2000000000000?7:e<0x100000000000000?8:e<0x8000000000000000?9:10}};let tt=(e,t,r=0)=>(te.encode(e,t,r),t),tr=e=>te.encodingLength(e),tn=(e,t)=>{let r=t.byteLength,n=tr(e),i=n+tr(r),o=new Uint8Array(i+r);return tt(e,o,0),tt(r,o,n),o.set(t,i),new ti(e,r,t,o)};
15class ti{constructor(e,t,r,n){this.code=e,this.size=t,this.digest=r,this.bytes=n}}let to=({name:e,code:t,encode:r})=>new ts(e,t,r);class ts{constructor(e,t,r){this.name=e,this.code=t,this.encode=r}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?tn(this.code,t):t.then(e=>tn(this.code,e))}throw Error("Unknown type, must be binary type")}}let ta=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t));var tu=Object.freeze({__proto__:null,sha256:to({name:"sha2-256",code:18,encode:ta("SHA-256")}),sha512:to({name:"sha2-512",code:19,encode:ta("SHA-512")})}),tl=Object.freeze({__proto__:null,identity:{code:0,name:"identity",encode:eU,digest:e=>tn(0,eU(e))}});new TextEncoder,new TextDecoder;let tc={...ez,...eM,...eW,...e$,...eq,...eQ,...e0,...e1,...e3,...e9};function tf(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}({...tu,...tl});let td=tf("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),th=tf("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{let t=eB((e=e.substring(1)).length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),tp={utf8:td,"utf-8":td,hex:tc.base16,latin1:th,ascii:th,binary:th,...tc};function tb(e,t="utf8"){let r=tp[t];if(!r)throw Error(`Unsupported encoding "${t}"`);return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):r.encoder.encode(e).substring(1)}function tg(e,t="utf8"){let r=tp[t];if(!r)throw Error(`Unsupported encoding "${t}"`);return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?eC(globalThis.Buffer.from(e,"utf-8")):r.decoder.decode(`${r.prefix}${e}`)}function ty(e){return(0,i.j)(tb(tg(e,eA),eS))}function tm(e){return tb(tg((0,i.h)(e),eS),eA)}function tw(e){return["did:key","z"+tb(e_([tg("K36",eO),e]),eO)].join(":")}function tx(e){let t=e.split("."),r=ty(t[0]),n=ty(t[1]);return{header:r,payload:n,signature:tg(t[2],eA),data:tg(t.slice(0,2).join("."),eI)}}function tv(e=f(32)){let t=eD.getPublicKey(e);return{secretKey:e_([e,t]),publicKey:t}}async function tE(e,t,r,i,o=(0,n.fromMiliseconds)(Date.now())){let s={alg:"EdDSA",typ:"JWT"},a={iss:tw(i.publicKey),sub:e,aud:t,iat:o,exp:o+r},u=tg([tm((l={header:s,payload:a}).header),tm(l.payload)].join("."),eI);var l,c={header:s,payload:a,signature:eD.sign(u,i.secretKey.slice(0,32))};return[tm(c.header),tm(c.payload),tb(c.signature,eA)].join(".")}},96776:(e,t,r)=>{"use strict";r.d(t,{F:()=>o});var n=r(35632),i=r(7227);class o extends i.IJsonRpcProvider{constructor(e){super(e),this.events=new n.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}async connect(e=this.connection){await this.open(e)}async disconnect(){await this.close()}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async request(e,t){return this.requestStrict((0,i.formatJsonRpcRequest)(e.method,e.params||[],e.id||(0,i.getBigIntRpcId)().toString()),t)}async requestStrict(e,t){return new Promise(async(r,n)=>{if(!this.connection.connected)try{await this.open()}catch(e){n(e)}this.events.on(`${e.id}`,e=>{(0,i.isJsonRpcError)(e)?n(e.error):r(e.result)});try{await this.connection.send(e,t)}catch(e){n(e)}})}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),(0,i.isJsonRpcResponse)(e)?this.events.emit(`${e.id}`,e):this.events.emit("message",{type:e.method,data:e.params})}onClose(e){e&&3e3===e.code&&this.events.emit("error",Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:""}`)),this.events.emit("disconnect")}async open(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),"string"==typeof e&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",e=>this.onPayload(e)),this.connection.on("close",e=>this.onClose(e)),this.connection.on("error",e=>this.events.emit("error",e)),this.connection.on("register_error",e=>this.onClose()),this.hasRegisteredEventListeners=!0)}}},97051:(e,t,r)=>{"use strict";t.g=void 0;let n=r(81109);t.g=function(){let e,t,r;
15try{e=n.getDocumentOrThrow(),t=n.getLocationOrThrow()}catch(e){return null}function i(...t){let r=e.getElementsByTagName("meta");for(let e=0;e<r.length;e++){let n=r[e],i=["itemprop","property","name"].map(e=>n.getAttribute(e)).filter(e=>!!e&&t.includes(e));if(i.length&&i){let e=n.getAttribute("content");if(e)return e}}return""}let o=((r=i("name","og:site_name","og:title","twitter:title"))||(r=e.title),r),s=i("description","og:description","twitter:description","keywords"),a=t.origin;return{description:s,url:a,icons:function(){let r=e.getElementsByTagName("link"),n=[];for(let e=0;e<r.length;e++){let i=r[e],o=i.getAttribute("rel");if(o&&o.toLowerCase().indexOf("icon")>-1){let e=i.getAttribute("href");if(e)if(-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let r=t.protocol+"//"+t.host;if(0===e.indexOf("/"))r+=e;else{let n=t.pathname.split("/");n.pop(),r+=n.join("/")+"/"+e}n.push(r)}else if(0===e.indexOf("//")){let r=t.protocol+e;n.push(r)}else n.push(e)}}return n}(),name:o}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.