@wormhole-foundation/wormhole-connect 1.2.0-beta.0-development → 1.3.0-beta.0-development
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/aptos-DZ2rfUfg.js +3 -0
- package/dist/assets/{aptos-fvUGRJ4h.js → aptos-g3DaQf0b.js} +61 -61
- package/dist/assets/{ccip-DLVsVRZh.js → ccip-CTWg50DB.js} +1 -1
- package/dist/assets/{chunk-U2PRGW4O-BklU2g_V.js → chunk-U2PRGW4O-_uqZ791P.js} +1 -1
- package/dist/assets/evm-CUAh52pb.js +2 -0
- package/dist/assets/{evm-D7r3Ne49.js → evm-Dpe6bb4m.js} +4 -4
- package/dist/assets/index-B169l5cS.js +1 -0
- package/dist/assets/{index-BINzPDaS.js → index-B2zKde8M.js} +1 -1
- package/dist/assets/{index-BmcqXpQd.js → index-B85n1wgg.js} +1 -1
- package/dist/assets/{index-BOsp0gGs.js → index-BGPIDyz6.js} +1 -1
- package/dist/assets/index-BT5QH3hv.js +1 -0
- package/dist/assets/{index-5UpuI6jk.js → index-BbXYZkyr.js} +1 -1
- package/dist/assets/{index-C_VIzW7c.js → index-Bwgv1Ind.js} +1 -1
- package/dist/assets/{index-P4tasYP-.js → index-CFWDbus8.js} +1 -1
- package/dist/assets/{index-BKYhAEpg.js → index-CJV78alS.js} +1 -1
- package/dist/assets/{index-DAS-UCcB.js → index-Ck17eoCG.js} +1 -1
- package/dist/assets/{index-C0ho2skw.js → index-CpdwiPRU.js} +2 -2
- package/dist/assets/{index-C02sy3fv.js → index-DVtwRIfn.js} +1 -1
- package/dist/assets/{index-D3TIHxII.js → index-jE0RsYBN.js} +1 -1
- package/dist/assets/{index.es-wOiA40sy.js → index.es-CEXOl433.js} +2 -2
- package/dist/assets/{signer-BzqNQC8X.js → signer-D8BxqoWW.js} +1 -1
- package/dist/assets/{solana--aMZfCgL.js → solana-Cu2aa7vE.js} +1 -1
- package/dist/assets/solana-Ddk7It-E.js +2 -0
- package/dist/assets/{sui-C76oYlao.js → sui-BXAKH3nv.js} +3 -3
- package/dist/assets/unsignedTransaction-DsxtoHjl.js +1 -0
- package/dist/main.js +28 -28
- package/dist/src/config/mainnet/tokens.d.ts.map +1 -1
- package/dist/src/config/testnet/tokens.d.ts.map +1 -1
- package/dist/src/hooks/useWalletCompatibility.d.ts +14 -0
- package/dist/src/hooks/useWalletCompatibility.d.ts.map +1 -0
- package/dist/src/utils/index.d.ts +1 -1
- package/dist/src/utils/index.d.ts.map +1 -1
- package/dist/src/utils/wallet/aptos.d.ts.map +1 -1
- package/dist/src/views/v2/Bridge/index.d.ts.map +1 -1
- package/lib/{aptos-BZuWMk3D.mjs → aptos-BADK10fB.mjs} +871 -870
- package/lib/{aptos-2J8A-FZO.mjs → aptos-CNLtQdwF.mjs} +59 -57
- package/lib/{aptos-DL1Hgg15.js → aptos-DeODB5kZ.js} +4 -4
- package/lib/aptos-DhXgHrnl.js +2 -0
- package/lib/{base64-Bit1A1if.js → base64-CEPDNsRw.js} +1 -1
- package/lib/{base64-BdSgqiJl.mjs → base64-w49IrkvT.mjs} +1 -1
- package/lib/{ccip-CMkUITDS.js → ccip-PRIyWWAN.js} +1 -1
- package/lib/{ccip-Cw8-T0j-.mjs → ccip-VK5volw3.mjs} +1 -1
- package/lib/{chunk-U2PRGW4O-CMIP41vB.mjs → chunk-U2PRGW4O-Ch5UM-YX.mjs} +6 -3
- package/lib/{chunk-U2PRGW4O-CuEEOygo.js → chunk-U2PRGW4O-D9odrfIU.js} +5 -5
- package/lib/{events-Bs7CEKn9.js → events-Bu0pqh5u.js} +1 -1
- package/lib/{events-CpDIhB3C.mjs → events-jOp8E97m.mjs} +1 -1
- package/lib/{evm-CK7UNFtq.js → evm-3jPN9QHX.js} +1 -1
- package/lib/{evm-DfX7cWQI.mjs → evm-B13HZSOG.mjs} +6 -6
- package/lib/{evm-1S_EvV1A.mjs → evm-CZgBqG6_.mjs} +7 -7
- package/lib/{evm-D5NO24dh.js → evm-Y4sMK_A1.js} +4 -4
- package/lib/index-1qQOAFE2.mjs +102 -0
- package/lib/{index-C6iaLaJq.mjs → index-BAhBSTHO.mjs} +18418 -18338
- package/lib/{index-wW7H3ciQ.mjs → index-BDForJp0.mjs} +2 -2
- package/lib/{index-CqSLXgKG.js → index-BFbkaHZM.js} +1 -1
- package/lib/{index-CqfWDHV0.mjs → index-BHdCskLu.mjs} +2 -2
- package/lib/{index-DKZeU-Xf.js → index-BRf1dmcD.js} +1 -1
- package/lib/{index-BPtbGGHy.mjs → index-BVuV_rfV.mjs} +3 -3
- package/lib/{index-CXWWVJUC.js → index-BX2v7vz2.js} +1 -1
- package/lib/{index-Q-iWWETw.mjs → index-BZknHaxy.mjs} +70 -70
- package/lib/{index-CwNerYWM.js → index-Brzu_xNS.js} +1 -1
- package/lib/{index-D_BTWvYp.mjs → index-BuWkXqNE.mjs} +2 -2
- package/lib/{index-BXPqhxjc.js → index-C2Rk8dJm.js} +1 -1
- package/lib/{index-C8__BuqK.mjs → index-CKnJa2J4.mjs} +1 -1
- package/lib/{index-DhxGcoTC.mjs → index-CdUjuPf9.mjs} +5 -5
- package/lib/{index-D5xkWCZ3.mjs → index-CkQ2SX_N.mjs} +48 -57
- package/lib/{index-o0AEhklr.mjs → index-CpOpT2eM.mjs} +2 -2
- package/lib/{index-hk3iRhUd.mjs → index-CtVdS94F.mjs} +4 -4
- package/lib/{index-8nlb2LGX.js → index-CzRLTmkg.js} +1 -1
- package/lib/{index-DbiW1-3L.mjs → index-D4DQMA-o.mjs} +1 -1
- package/lib/{index-hIJ0h_GZ.js → index-D5ta6SAe.js} +91 -91
- package/lib/{index-v3UQ6KEC.js → index-D9KxVP2I.js} +1 -1
- package/lib/index-DBmgmviv.js +1 -0
- package/lib/{index-S1YybQMR.js → index-DFS9XfYE.js} +1 -1
- package/lib/{index-7_XTrYay.js → index-DL5itoYd.js} +1 -1
- package/lib/index-DOqilxLu.js +1 -0
- package/lib/{index-C42d1PS9.js → index-DT5QhFiG.js} +1 -1
- package/lib/{index-CbJWXG7l.mjs → index-DcL6du1P.mjs} +2 -2
- package/lib/{index-7Jgokx3S.js → index-DfRhe8kL.js} +1 -1
- package/lib/{index-B96enquk.js → index-DjDJigyM.js} +1 -1
- package/lib/{index-BNn38QYa.mjs → index-DkNDirHr.mjs} +2 -2
- package/lib/{index-BfBNSTY8.js → index-Dr6Wkn1g.js} +1 -1
- package/lib/{index-D2Bw_LRJ.js → index-Dw4_1FXq.js} +1 -1
- package/lib/{index-Cqiy61ub.mjs → index-DzeE34W2.mjs} +1 -1
- package/lib/{index-TVlE0v9D.js → index-EVkJCI6W.js} +1 -1
- package/lib/{index-vWXFBAHR.js → index-OdUgDqqR.js} +1 -1
- package/lib/{index-B-ZKCWaX.js → index-dYeh9TN5.js} +1 -1
- package/lib/{index-BDbrAqgW.mjs → index-hnhyQbEN.mjs} +5 -5
- package/lib/{index-Bm1zXhFz.mjs → index-ieIOqnbv.mjs} +1 -1
- package/lib/{index-B-UHVwW1.mjs → index-v8vynoP2.mjs} +2 -2
- package/lib/{index-BzHjroj_.mjs → index-yIiSwVLU.mjs} +2 -2
- package/lib/{index.es-DN28d137.js → index.es-D9Co2OZW.js} +2 -2
- package/lib/{index.es-BnuWmVuS.mjs → index.es-jvUS3_-Z.mjs} +5 -5
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/lib/{signer-YETmMcF8.js → signer-BvZ7J3Rl.js} +1 -1
- package/lib/{signer-D5i4Nnyi.mjs → signer-CsfCFMWy.mjs} +1 -1
- package/lib/solana-BD_xWaS3.js +1 -0
- package/lib/{solana-C7qBFXj3.js → solana-BfiZpxkP.js} +1 -1
- package/lib/solana-ChpC_WNg.mjs +16 -0
- package/lib/{solana-DtBRFbad.mjs → solana-Dh_0HpA8.mjs} +4 -4
- package/lib/{solanaEmbed.esm-BER_HE9G.js → solanaEmbed.esm-B3b-A7RS.js} +1 -1
- package/lib/{solanaEmbed.esm-Bb5iLp3o.mjs → solanaEmbed.esm-BCE4UL9u.mjs} +2 -2
- package/lib/src/config/mainnet/tokens.d.ts.map +1 -1
- package/lib/src/config/testnet/tokens.d.ts.map +1 -1
- package/lib/src/hooks/useWalletCompatibility.d.ts +14 -0
- package/lib/src/hooks/useWalletCompatibility.d.ts.map +1 -0
- package/lib/src/utils/index.d.ts +1 -1
- package/lib/src/utils/index.d.ts.map +1 -1
- package/lib/src/utils/wallet/aptos.d.ts.map +1 -1
- package/lib/src/views/v2/Bridge/index.d.ts.map +1 -1
- package/lib/{sui-De3Fl_fo.js → sui-BhOuuPtT.js} +1 -1
- package/lib/{sui-1QFb30Ta.mjs → sui-Cc0SlN9d.mjs} +1 -1
- package/lib/{sui-DAyysPh2.mjs → sui-DmasAl1E.mjs} +5 -5
- package/lib/{sui-c1d9xieM.js → sui-RIp5yjOC.js} +2 -2
- package/lib/unsignedTransaction-BDOQhqcZ.mjs +16 -0
- package/lib/unsignedTransaction-C1YeEl4G.js +1 -0
- package/lib/{utf8-BxTDE5Vo.mjs → utf8-V9eCtEDc.mjs} +1 -1
- package/lib/{utf8-B-nUZvyF.js → utf8-lSE3VJ2A.js} +1 -1
- package/package.json +17 -17
- package/dist/assets/aptos-De-iCK2S.js +0 -3
- package/dist/assets/evm-BBq1KqPa.js +0 -2
- package/dist/assets/index-LPMvkG3A.js +0 -1
- package/dist/assets/solana-DTptRMWs.js +0 -2
- package/lib/aptos-DcCwQMe7.js +0 -2
- package/lib/index-Bq2G38s-.js +0 -1
- package/lib/solana-B9GQ_Umb.js +0 -1
- package/lib/solana-tevnHUxv.mjs +0 -16
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ee=require("./index-hIJ0h_GZ.js"),JT=require("./events-Bs7CEKn9.js");var jd={exports:{}};(function(e,t){t=e.exports=ee.require_stream_readable(),t.Stream=t,t.Readable=t,t.Writable=ee.require_stream_writable(),t.Duplex=ee.require_stream_duplex(),t.Transform=ee.require_stream_transform(),t.PassThrough=ee.require_stream_passthrough(),t.finished=ee.requireEndOfStream(),t.pipeline=ee.requirePipeline()})(jd,jd.exports);var Do=jd.exports,Jb={};const wy=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];Jb.p1600=function(e){for(let t=0;t<24;++t){const r=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],d=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],l=e[7]^e[17]^e[27]^e[37]^e[47],h=e[8]^e[18]^e[28]^e[38]^e[48],g=e[9]^e[19]^e[29]^e[39]^e[49];let b=h^(a<<1|s>>>31),_=g^(s<<1|a>>>31);const T=e[0]^b,k=e[1]^_,E=e[10]^b,R=e[11]^_,v=e[20]^b,w=e[21]^_,S=e[30]^b,H=e[31]^_,Q=e[40]^b,ie=e[41]^_;b=r^(u<<1|d>>>31),_=i^(d<<1|u>>>31);const he=e[2]^b,le=e[3]^_,Ee=e[12]^b,ve=e[13]^_,m=e[22]^b,O=e[23]^_,P=e[32]^b,Z=e[33]^_,ae=e[42]^b,X=e[43]^_;b=a^(c<<1|l>>>31),_=s^(l<<1|c>>>31);const ne=e[4]^b,F=e[5]^_,x=e[14]^b,Y=e[15]^_,B=e[24]^b,j=e[25]^_,$=e[34]^b,U=e[35]^_,G=e[44]^b,de=e[45]^_;b=u^(h<<1|g>>>31),_=d^(g<<1|h>>>31);const oe=e[6]^b,fe=e[7]^_,Se=e[16]^b,Be=e[17]^_,Me=e[26]^b,z=e[27]^_,J=e[36]^b,ge=e[37]^_,Ne=e[46]^b,Oe=e[47]^_;b=c^(r<<1|i>>>31),_=l^(i<<1|r>>>31);const je=e[8]^b,me=e[9]^_,Ye=e[18]^b,et=e[19]^_,re=e[28]^b,xe=e[29]^_,M=e[38]^b,ce=e[39]^_,De=e[48]^b,Ve=e[49]^_,Ue=T,ke=k,Xe=R<<4|E>>>28,D=E<<4|R>>>28,Re=v<<3|w>>>29,$e=w<<3|v>>>29,qe=H<<9|S>>>23,C=S<<9|H>>>23,K=Q<<18|ie>>>14,A=ie<<18|Q>>>14,Te=he<<1|le>>>31,Ke=le<<1|he>>>31,p=ve<<12|Ee>>>20,_e=Ee<<12|ve>>>20,Ie=m<<10|O>>>22,L=O<<10|m>>>22,ue=Z<<13|P>>>19,Ae=P<<13|Z>>>19,Je=ae<<2|X>>>30,N=X<<2|ae>>>30,W=F<<30|ne>>>2,Ce=ne<<30|F>>>2,ze=x<<6|Y>>>26,Ge=Y<<6|x>>>26,rt=j<<11|B>>>21,ot=B<<11|j>>>21,bt=$<<15|U>>>17,ht=U<<15|$>>>17,ar=de<<29|G>>>3,fr=G<<29|de>>>3,wt=oe<<28|fe>>>4,Dt=fe<<28|oe>>>4,St=Be<<23|Se>>>9,Ot=Se<<23|Be>>>9,qt=Me<<25|z>>>7,tr=z<<25|Me>>>7,Gt=J<<21|ge>>>11,Vt=ge<<21|J>>>11,$n=Oe<<24|Ne>>>8,yn=Ne<<24|Oe>>>8,xn=je<<27|me>>>5,_n=me<<27|je>>>5,bn=Ye<<20|et>>>12,Wr=et<<20|Ye>>>12,Oi=xe<<7|re>>>25,mn=re<<7|xe>>>25,ri=M<<8|ce>>>24,ni=ce<<8|M>>>24,ii=De<<14|Ve>>>18,oi=Ve<<14|De>>>18;e[0]=Ue^~p&rt,e[1]=ke^~_e&ot,e[10]=wt^~bn&Re,e[11]=Dt^~Wr&$e,e[20]=Te^~ze&qt,e[21]=Ke^~Ge&tr,e[30]=xn^~Xe&Ie,e[31]=_n^~D&L,e[40]=W^~St&Oi,e[41]=Ce^~Ot&mn,e[2]=p^~rt&Gt,e[3]=_e^~ot&Vt,e[12]=bn^~Re&ue,e[13]=Wr^~$e&Ae,e[22]=ze^~qt&ri,e[23]=Ge^~tr&ni,e[32]=Xe^~Ie&bt,e[33]=D^~L&ht,e[42]=St^~Oi&qe,e[43]=Ot^~mn&C,e[4]=rt^~Gt&ii,e[5]=ot^~Vt&oi,e[14]=Re^~ue&ar,e[15]=$e^~Ae&fr,e[24]=qt^~ri&K,e[25]=tr^~ni&A,e[34]=Ie^~bt&$n,e[35]=L^~ht&yn,e[44]=Oi^~qe&Je,e[45]=mn^~C&N,e[6]=Gt^~ii&Ue,e[7]=Vt^~oi&ke,e[16]=ue^~ar&wt,e[17]=Ae^~fr&Dt,e[26]=ri^~K&Te,e[27]=ni^~A&Ke,e[36]=bt^~$n&xn,e[37]=ht^~yn&_n,e[46]=qe^~Je&W,e[47]=C^~N&Ce,e[8]=ii^~Ue&p,e[9]=oi^~ke&_e,e[18]=ar^~wt&bn,e[19]=fr^~Dt&Wr,e[28]=K^~Te&ze,e[29]=A^~Ke&Ge,e[38]=$n^~xn&Xe,e[39]=yn^~_n&D,e[48]=Je^~W&St,e[49]=N^~Ce&Ot,e[0]^=wy[t*2],e[1]^=wy[t*2+1]}};const bu=Jb;function Ba(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}Ba.prototype.initialize=function(e,t){for(let r=0;r<50;++r)this.state[r]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1};Ba.prototype.absorb=function(e){for(let t=0;t<e.length;++t)this.state[~~(this.count/4)]^=e[t]<<8*(this.count%4),this.count+=1,this.count===this.blockSize&&(bu.p1600(this.state),this.count=0)};Ba.prototype.absorbLastFewBits=function(e){this.state[~~(this.count/4)]^=e<<8*(this.count%4),e&128&&this.count===this.blockSize-1&&bu.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),bu.p1600(this.state),this.count=0,this.squeezing=!0};Ba.prototype.squeeze=function(e){this.squeezing||this.absorbLastFewBits(1);const t=ee.dist.Buffer.alloc(e);for(let r=0;r<e;++r)t[r]=this.state[~~(this.count/4)]>>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(bu.p1600(this.state),this.count=0);return t};Ba.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing};var XT=YT;function YT(e){e=e||{};var t=e.max||Number.MAX_SAFE_INTEGER,r=typeof e.start<"u"?e.start:Math.floor(Math.random()*t);return function(){return r=r%t,r++}}const QT=ee.getDefaultExportFromCjs(XT);var kd={exports:{}},xc,Ey;function eO(){if(Ey)return xc;Ey=1;var e=1e3,t=e*60,r=t*60,i=r*24,a=i*7,s=i*365.25;xc=function(h,g){g=g||{};var b=typeof h;if(b==="string"&&h.length>0)return u(h);if(b==="number"&&isFinite(h))return g.long?c(h):d(h);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(h))};function u(h){if(h=String(h),!(h.length>100)){var g=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(h);if(g){var b=parseFloat(g[1]),_=(g[2]||"ms").toLowerCase();switch(_){case"years":case"year":case"yrs":case"yr":case"y":return b*s;case"weeks":case"week":case"w":return b*a;case"days":case"day":case"d":return b*i;case"hours":case"hour":case"hrs":case"hr":case"h":return b*r;case"minutes":case"minute":case"mins":case"min":case"m":return b*t;case"seconds":case"second":case"secs":case"sec":case"s":return b*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return b;default:return}}}}function d(h){var g=Math.abs(h);return g>=i?Math.round(h/i)+"d":g>=r?Math.round(h/r)+"h":g>=t?Math.round(h/t)+"m":g>=e?Math.round(h/e)+"s":h+"ms"}function c(h){var g=Math.abs(h);return g>=i?l(h,g,i,"day"):g>=r?l(h,g,r,"hour"):g>=t?l(h,g,t,"minute"):g>=e?l(h,g,e,"second"):h+" ms"}function l(h,g,b,_){var T=g>=b*1.5;return Math.round(h/b)+" "+_+(T?"s":"")}return xc}function tO(e){r.debug=r,r.default=r,r.coerce=c,r.disable=u,r.enable=a,r.enabled=d,r.humanize=eO(),r.destroy=l,Object.keys(e).forEach(h=>{r[h]=e[h]}),r.names=[],r.skips=[],r.formatters={};function t(h){let g=0;for(let b=0;b<h.length;b++)g=(g<<5)-g+h.charCodeAt(b),g|=0;return r.colors[Math.abs(g)%r.colors.length]}r.selectColor=t;function r(h){let g,b=null,_,T;function k(...E){if(!k.enabled)return;const R=k,v=Number(new Date),w=v-(g||v);R.diff=w,R.prev=g,R.curr=v,g=v,E[0]=r.coerce(E[0]),typeof E[0]!="string"&&E.unshift("%O");let S=0;E[0]=E[0].replace(/%([a-zA-Z%])/g,(Q,ie)=>{if(Q==="%%")return"%";S++;const he=r.formatters[ie];if(typeof he=="function"){const le=E[S];Q=he.call(R,le),E.splice(S,1),S--}return Q}),r.formatArgs.call(R,E),(R.log||r.log).apply(R,E)}return k.namespace=h,k.useColors=r.useColors(),k.color=r.selectColor(h),k.extend=i,k.destroy=r.destroy,Object.defineProperty(k,"enabled",{enumerable:!0,configurable:!1,get:()=>b!==null?b:(_!==r.namespaces&&(_=r.namespaces,T=r.enabled(h)),T),set:E=>{b=E}}),typeof r.init=="function"&&r.init(k),k}function i(h,g){const b=r(this.namespace+(typeof g>"u"?":":g)+h);return b.log=this.log,b}function a(h){r.save(h),r.namespaces=h,r.names=[],r.skips=[];const g=(typeof h=="string"?h:"").trim().replace(" ",",").split(",").filter(Boolean);for(const b of g)b[0]==="-"?r.skips.push(b.slice(1)):r.names.push(b)}function s(h,g){let b=0,_=0,T=-1,k=0;for(;b<h.length;)if(_<g.length&&(g[_]===h[b]||g[_]==="*"))g[_]==="*"?(T=_,k=b,_++):(b++,_++);else if(T!==-1)_=T+1,k++,b=k;else return!1;for(;_<g.length&&g[_]==="*";)_++;return _===g.length}function u(){const h=[...r.names,...r.skips.map(g=>"-"+g)].join(",");return r.enable(""),h}function d(h){for(const g of r.skips)if(s(h,g))return!1;for(const g of r.names)if(s(h,g))return!0;return!1}function c(h){return h instanceof Error?h.stack||h.message:h}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}var rO=tO;(function(e,t){t.formatArgs=i,t.save=a,t.load=s,t.useColors=r,t.storage=u(),t.destroy=(()=>{let c=!1;return()=>{c||(c=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let c;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(c=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(c[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function i(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;c.splice(1,0,l,"color: inherit");let h=0,g=0;c[0].replace(/%[a-zA-Z%]/g,b=>{b!=="%%"&&(h++,b==="%c"&&(g=h))}),c.splice(g,0,l)}t.log=console.debug||console.log||(()=>{});function a(c){try{c?t.storage.setItem("debug",c):t.storage.removeItem("debug")}catch{}}function s(){let c;try{c=t.storage.getItem("debug")}catch{}return!c&&typeof ee.dist.process<"u"&&"env"in ee.dist.process&&(c=ee.dist.process.env.DEBUG),c}function u(){try{return localStorage}catch{}}e.exports=rO(t);const{formatters:d}=e.exports;d.j=function(c){try{return JSON.stringify(c)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}})(kd,kd.exports);var nO=kd.exports,hn={},Ei={},ph=Ta;Ta.default=Ta;Ta.stable=Qb;Ta.stableStringify=Qb;var mu="[...]",Xb="[Circular]",Wi=[],qi=[];function Yb(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function Ta(e,t,r,i){typeof i>"u"&&(i=Yb()),Ud(e,"",0,[],void 0,0,i);var a;try{qi.length===0?a=JSON.stringify(e,t,r):a=JSON.stringify(e,em(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Wi.length!==0;){var s=Wi.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return a}function Io(e,t,r,i){var a=Object.getOwnPropertyDescriptor(i,r);a.get!==void 0?a.configurable?(Object.defineProperty(i,r,{value:e}),Wi.push([i,r,t,a])):qi.push([t,r,e]):(i[r]=e,Wi.push([i,r,t]))}function Ud(e,t,r,i,a,s,u){s+=1;var d;if(typeof e=="object"&&e!==null){for(d=0;d<i.length;d++)if(i[d]===e){Io(Xb,e,t,a);return}if(typeof u.depthLimit<"u"&&s>u.depthLimit){Io(mu,e,t,a);return}if(typeof u.edgesLimit<"u"&&r+1>u.edgesLimit){Io(mu,e,t,a);return}if(i.push(e),Array.isArray(e))for(d=0;d<e.length;d++)Ud(e[d],d,d,i,e,s,u);else{var c=Object.keys(e);for(d=0;d<c.length;d++){var l=c[d];Ud(e[l],l,d,i,e,s,u)}}i.pop()}}function iO(e,t){return e<t?-1:e>t?1:0}function Qb(e,t,r,i){typeof i>"u"&&(i=Yb());var a=qd(e,"",0,[],void 0,0,i)||e,s;try{qi.length===0?s=JSON.stringify(a,t,r):s=JSON.stringify(a,em(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Wi.length!==0;){var u=Wi.pop();u.length===4?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return s}function qd(e,t,r,i,a,s,u){s+=1;var d;if(typeof e=="object"&&e!==null){for(d=0;d<i.length;d++)if(i[d]===e){Io(Xb,e,t,a);return}try{if(typeof e.toJSON=="function")return}catch{return}if(typeof u.depthLimit<"u"&&s>u.depthLimit){Io(mu,e,t,a);return}if(typeof u.edgesLimit<"u"&&r+1>u.edgesLimit){Io(mu,e,t,a);return}if(i.push(e),Array.isArray(e))for(d=0;d<e.length;d++)qd(e[d],d,d,i,e,s,u);else{var c={},l=Object.keys(e).sort(iO);for(d=0;d<l.length;d++){var h=l[d];qd(e[h],h,d,i,e,s,u),c[h]=e[h]}if(typeof a<"u")Wi.push([a,t,e]),a[t]=c;else return c}i.pop()}}function em(e){return e=typeof e<"u"?e:function(t,r){return r},function(t,r){if(qi.length>0)for(var i=0;i<qi.length;i++){var a=qi[i];if(a[1]===t&&a[0]===r){r=a[2],qi.splice(i,1);break}}return e.call(this,t,r)}}const oO=ee.getDefaultExportFromCjs(ph);Object.defineProperty(Ei,"__esModule",{value:!0});Ei.EthereumProviderError=Ei.EthereumRpcError=void 0;const aO=ph;class tm extends Error{constructor(t,r,i){if(!Number.isInteger(t))throw new Error('"code" must be an integer.');if(!r||typeof r!="string")throw new Error('"message" must be a nonempty string.');super(r),this.code=t,i!==void 0&&(this.data=i)}serialize(){const t={code:this.code,message:this.message};return this.data!==void 0&&(t.data=this.data),this.stack&&(t.stack=this.stack),t}toString(){return aO.default(this.serialize(),fO,2)}}Ei.EthereumRpcError=tm;let sO=class extends tm{constructor(t,r,i){if(!uO(t))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(t,r,i)}};Ei.EthereumProviderError=sO;function uO(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}function fO(e,t){if(t!=="[Circular]")return t}var gh={},Si={};Object.defineProperty(Si,"__esModule",{value:!0});Si.errorValues=Si.errorCodes=void 0;Si.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}};Si.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.serializeError=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const t=Si,r=Ei,i=t.errorCodes.rpc.internal,a="Unspecified error message. This is a bug, please report it.",s={code:i,message:u(i)};e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function u(b,_=a){if(Number.isInteger(b)){const T=b.toString();if(g(t.errorValues,T))return t.errorValues[T].message;if(l(b))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return _}e.getMessageFromCode=u;function d(b){if(!Number.isInteger(b))return!1;const _=b.toString();return!!(t.errorValues[_]||l(b))}e.isValidCode=d;function c(b,{fallbackError:_=s,shouldIncludeStack:T=!1}={}){var k,E;if(!_||!Number.isInteger(_.code)||typeof _.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(b instanceof r.EthereumRpcError)return b.serialize();const R={};if(b&&typeof b=="object"&&!Array.isArray(b)&&g(b,"code")&&d(b.code)){const w=b;R.code=w.code,w.message&&typeof w.message=="string"?(R.message=w.message,g(w,"data")&&(R.data=w.data)):(R.message=u(R.code),R.data={originalError:h(b)})}else{R.code=_.code;const w=(k=b)===null||k===void 0?void 0:k.message;R.message=w&&typeof w=="string"?w:_.message,R.data={originalError:h(b)}}const v=(E=b)===null||E===void 0?void 0:E.stack;return T&&b&&v&&typeof v=="string"&&(R.stack=v),R}e.serializeError=c;function l(b){return b>=-32099&&b<=-32e3}function h(b){return b&&typeof b=="object"&&!Array.isArray(b)?Object.assign({},b):b}function g(b,_){return Object.prototype.hasOwnProperty.call(b,_)}})(gh);var Lu={};Object.defineProperty(Lu,"__esModule",{value:!0});Lu.ethErrors=void 0;const yh=Ei,rm=gh,_r=Si;Lu.ethErrors={rpc:{parse:e=>Yr(_r.errorCodes.rpc.parse,e),invalidRequest:e=>Yr(_r.errorCodes.rpc.invalidRequest,e),invalidParams:e=>Yr(_r.errorCodes.rpc.invalidParams,e),methodNotFound:e=>Yr(_r.errorCodes.rpc.methodNotFound,e),internal:e=>Yr(_r.errorCodes.rpc.internal,e),server:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return Yr(t,e)},invalidInput:e=>Yr(_r.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>Yr(_r.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>Yr(_r.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>Yr(_r.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>Yr(_r.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>Yr(_r.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>ha(_r.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>ha(_r.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>ha(_r.errorCodes.provider.unsupportedMethod,e),disconnected:e=>ha(_r.errorCodes.provider.disconnected,e),chainDisconnected:e=>ha(_r.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:r,data:i}=e;if(!r||typeof r!="string")throw new Error('"message" must be a nonempty string');return new yh.EthereumProviderError(t,r,i)}}};function Yr(e,t){const[r,i]=nm(t);return new yh.EthereumRpcError(e,r||rm.getMessageFromCode(e),i)}function ha(e,t){const[r,i]=nm(t);return new yh.EthereumProviderError(e,r||rm.getMessageFromCode(e),i)}function nm(e){if(e){if(typeof e=="string")return[e];if(typeof e=="object"&&!Array.isArray(e)){const{message:t,data:r}=e;if(t&&typeof t!="string")throw new Error("Must specify string message.");return[t||void 0,r]}}return[]}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getMessageFromCode=e.serializeError=e.EthereumProviderError=e.EthereumRpcError=e.ethErrors=e.errorCodes=void 0;const t=Ei;Object.defineProperty(e,"EthereumRpcError",{enumerable:!0,get:function(){return t.EthereumRpcError}}),Object.defineProperty(e,"EthereumProviderError",{enumerable:!0,get:function(){return t.EthereumProviderError}});const r=gh;Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return r.serializeError}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return r.getMessageFromCode}});const i=Lu;Object.defineProperty(e,"ethErrors",{enumerable:!0,get:function(){return i.ethErrors}});const a=Si;Object.defineProperty(e,"errorCodes",{enumerable:!0,get:function(){return a.errorCodes}})})(hn);var Dc,Sy;function cO(){if(Sy)return Dc;Sy=1,Dc=t;var e=Object.prototype.hasOwnProperty;function t(){for(var r={},i=0;i<arguments.length;i++){var a=arguments[i];for(var s in a)e.call(a,s)&&(r[s]=a[s])}return r}return Dc}var Mc={exports:{}},Fc={},jc={},kc={},Uc,Ay;function _h(){return Ay||(Ay=1,Uc=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var a=42;t[r]=a;for(var s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var u=Object.getOwnPropertySymbols(t);if(u.length!==1||u[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var d=Object.getOwnPropertyDescriptor(t,r);if(d.value!==a||d.enumerable!==!0)return!1}return!0}),Uc}var qc,Ry;function bh(){if(Ry)return qc;Ry=1;var e=_h();return qc=function(){return e()&&!!Symbol.toStringTag},qc}var Hc,Iy;function im(){return Iy||(Iy=1,Hc=Object),Hc}var Wc,Ty;function lO(){return Ty||(Ty=1,Wc=Error),Wc}var zc,Oy;function dO(){return Oy||(Oy=1,zc=EvalError),zc}var Gc,Py;function hO(){return Py||(Py=1,Gc=RangeError),Gc}var Vc,Cy;function pO(){return Cy||(Cy=1,Vc=ReferenceError),Vc}var Zc,Ly;function om(){return Ly||(Ly=1,Zc=SyntaxError),Zc}var Kc,Ny;function Ri(){return Ny||(Ny=1,Kc=TypeError),Kc}var Jc,By;function gO(){return By||(By=1,Jc=URIError),Jc}var Xc,$y;function yO(){return $y||($y=1,Xc=Math.abs),Xc}var Yc,xy;function _O(){return xy||(xy=1,Yc=Math.floor),Yc}var Qc,Dy;function bO(){return Dy||(Dy=1,Qc=Math.max),Qc}var el,My;function mO(){return My||(My=1,el=Math.min),el}var tl,Fy;function vO(){return Fy||(Fy=1,tl=Math.pow),tl}var rl,jy;function wO(){return jy||(jy=1,rl=Object.getOwnPropertyDescriptor),rl}var nl,ky;function $a(){if(ky)return nl;ky=1;var e=wO();if(e)try{e([],"length")}catch{e=null}return nl=e,nl}var du=Object.defineProperty||!1;if(du)try{du({},"a",{value:1})}catch{du=!1}var Nu=du,il,Uy;function EO(){if(Uy)return il;Uy=1;var e=typeof Symbol<"u"&&Symbol,t=_h();return il=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},il}var ol,qy;function SO(){if(qy)return ol;qy=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,i="[object Function]",a=function(c,l){for(var h=[],g=0;g<c.length;g+=1)h[g]=c[g];for(var b=0;b<l.length;b+=1)h[b+c.length]=l[b];return h},s=function(c,l){for(var h=[],g=l,b=0;g<c.length;g+=1,b+=1)h[b]=c[g];return h},u=function(d,c){for(var l="",h=0;h<d.length;h+=1)l+=d[h],h+1<d.length&&(l+=c);return l};return ol=function(c){var l=this;if(typeof l!="function"||t.apply(l)!==i)throw new TypeError(e+l);for(var h=s(arguments,1),g,b=function(){if(this instanceof g){var R=l.apply(this,a(h,arguments));return Object(R)===R?R:this}return l.apply(c,a(h,arguments))},_=r(0,l.length-h.length),T=[],k=0;k<_;k++)T[k]="$"+k;if(g=Function("binder","return function ("+u(T,",")+"){ return binder.apply(this,arguments); }")(b),l.prototype){var E=function(){};E.prototype=l.prototype,g.prototype=new E,E.prototype=null}return g},ol}var al,Hy;function xa(){if(Hy)return al;Hy=1;var e=SO();return al=Function.prototype.bind||e,al}var sl,Wy;function mh(){return Wy||(Wy=1,sl=Function.prototype.call),sl}var ul,zy;function vh(){return zy||(zy=1,ul=Function.prototype.apply),ul}var AO=typeof Reflect<"u"&&Reflect&&Reflect.apply,RO=xa(),IO=vh(),TO=mh(),OO=AO,am=OO||RO.call(TO,IO),PO=xa(),CO=Ri(),LO=mh(),NO=am,wh=function(t){if(t.length<1||typeof t[0]!="function")throw new CO("a function is required");return NO(PO,LO,t)},fl,Gy;function BO(){if(Gy)return fl;Gy=1;var e=wh,t=$a(),r;try{r=[].__proto__===Array.prototype}catch(u){if(!u||typeof u!="object"||!("code"in u)||u.code!=="ERR_PROTO_ACCESS")throw u}var i=!!r&&t&&t(Object.prototype,"__proto__"),a=Object,s=a.getPrototypeOf;return fl=i&&typeof i.get=="function"?e([i.get]):typeof s=="function"?function(d){return s(d==null?d:a(d))}:!1,fl}var cl,Vy;function $O(){if(Vy)return cl;Vy=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=xa();return cl=r.call(e,t),cl}var ll,Zy;function Da(){if(Zy)return ll;Zy=1;var e,t=im(),r=lO(),i=dO(),a=hO(),s=pO(),u=om(),d=Ri(),c=gO(),l=yO(),h=_O(),g=bO(),b=mO(),_=vO(),T=Function,k=function(G){try{return T('"use strict"; return ('+G+").constructor;")()}catch{}},E=$a(),R=Nu,v=function(){throw new d},w=E?function(){try{return arguments.callee,v}catch{try{return E(arguments,"callee").get}catch{return v}}}():v,S=EO()(),H=BO(),Q=typeof Reflect=="function"&&Reflect.getPrototypeOf||t.getPrototypeOf||H,ie=vh(),he=mh(),le={},Ee=typeof Uint8Array>"u"||!Q?e:Q(Uint8Array),ve={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":S&&Q?Q([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":le,"%AsyncGenerator%":le,"%AsyncGeneratorFunction%":le,"%AsyncIteratorPrototype%":le,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":i,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":T,"%GeneratorFunction%":le,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":S&&Q?Q(Q([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!S||!Q?e:Q(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":E,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!S||!Q?e:Q(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&Q?Q(""[Symbol.iterator]()):e,"%Symbol%":S?Symbol:e,"%SyntaxError%":u,"%ThrowTypeError%":w,"%TypedArray%":Ee,"%TypeError%":d,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":he,"%Function.prototype.apply%":ie,"%Object.defineProperty%":R,"%Math.abs%":l,"%Math.floor%":h,"%Math.max%":g,"%Math.min%":b,"%Math.pow%":_};if(Q)try{null.error}catch(G){var m=Q(Q(G));ve["%Error.prototype%"]=m}var O=function G(de){var oe;if(de==="%AsyncFunction%")oe=k("async function () {}");else if(de==="%GeneratorFunction%")oe=k("function* () {}");else if(de==="%AsyncGeneratorFunction%")oe=k("async function* () {}");else if(de==="%AsyncGenerator%"){var fe=G("%AsyncGeneratorFunction%");fe&&(oe=fe.prototype)}else if(de==="%AsyncIteratorPrototype%"){var Se=G("%AsyncGenerator%");Se&&Q&&(oe=Q(Se.prototype))}return ve[de]=oe,oe},P={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Z=xa(),ae=$O(),X=Z.call(he,Array.prototype.concat),ne=Z.call(ie,Array.prototype.splice),F=Z.call(he,String.prototype.replace),x=Z.call(he,String.prototype.slice),Y=Z.call(he,RegExp.prototype.exec),B=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,j=/\\(\\)?/g,$=function(de){var oe=x(de,0,1),fe=x(de,-1);if(oe==="%"&&fe!=="%")throw new u("invalid intrinsic syntax, expected closing `%`");if(fe==="%"&&oe!=="%")throw new u("invalid intrinsic syntax, expected opening `%`");var Se=[];return F(de,B,function(Be,Me,z,J){Se[Se.length]=z?F(J,j,"$1"):Me||Be}),Se},U=function(de,oe){var fe=de,Se;if(ae(P,fe)&&(Se=P[fe],fe="%"+Se[0]+"%"),ae(ve,fe)){var Be=ve[fe];if(Be===le&&(Be=O(fe)),typeof Be>"u"&&!oe)throw new d("intrinsic "+de+" exists, but is not available. Please file an issue!");return{alias:Se,name:fe,value:Be}}throw new u("intrinsic "+de+" does not exist!")};return ll=function(de,oe){if(typeof de!="string"||de.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof oe!="boolean")throw new d('"allowMissing" argument must be a boolean');if(Y(/^%?[^%]*%?$/,de)===null)throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var fe=$(de),Se=fe.length>0?fe[0]:"",Be=U("%"+Se+"%",oe),Me=Be.name,z=Be.value,J=!1,ge=Be.alias;ge&&(Se=ge[0],ne(fe,X([0,1],ge)));for(var Ne=1,Oe=!0;Ne<fe.length;Ne+=1){var je=fe[Ne],me=x(je,0,1),Ye=x(je,-1);if((me==='"'||me==="'"||me==="`"||Ye==='"'||Ye==="'"||Ye==="`")&&me!==Ye)throw new u("property names with quotes must have matching quotes");if((je==="constructor"||!Oe)&&(J=!0),Se+="."+je,Me="%"+Se+"%",ae(ve,Me))z=ve[Me];else if(z!=null){if(!(je in z)){if(!oe)throw new d("base intrinsic for "+de+" exists, but the property is not available.");return}if(E&&Ne+1>=fe.length){var et=E(z,je);Oe=!!et,Oe&&"get"in et&&!("originalValue"in et.get)?z=et.get:z=z[je]}else Oe=ae(z,je),z=z[je];Oe&&!J&&(ve[Me]=z)}}return z},ll}var sm=Da(),um=wh,xO=um([sm("%String.prototype.indexOf%")]),Ma=function(t,r){var i=sm(t,!!r);return typeof i=="function"&&xO(t,".prototype.")>-1?um([i]):i},dl,Ky;function DO(){if(Ky)return dl;Ky=1;var e=bh()(),t=Ma,r=t("Object.prototype.toString"),i=function(d){return e&&d&&typeof d=="object"&&Symbol.toStringTag in d?!1:r(d)==="[object Arguments]"},a=function(d){return i(d)?!0:d!==null&&typeof d=="object"&&"length"in d&&typeof d.length=="number"&&d.length>=0&&r(d)!=="[object Array]"&&"callee"in d&&r(d.callee)==="[object Function]"},s=function(){return i(arguments)}();return i.isLegacyArguments=a,dl=s?i:a,dl}var hl,Jy;function MO(){if(Jy)return hl;Jy=1;var e=Object.prototype.toString,t=Function.prototype.toString,r=/^\s*(?:function)?\*/,i=bh()(),a=Object.getPrototypeOf,s=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch{}},u;return hl=function(c){if(typeof c!="function")return!1;if(r.test(t.call(c)))return!0;if(!i){var l=e.call(c);return l==="[object GeneratorFunction]"}if(!a)return!1;if(typeof u>"u"){var h=s();u=h?a(h):!1}return a(c)===u},hl}var pl,Xy;function FO(){if(Xy)return pl;Xy=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,i;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw i}}),i={},t(function(){throw 42},null,r)}catch(v){v!==i&&(t=null)}else t=null;var a=/^\s*class\b/,s=function(w){try{var S=e.call(w);return a.test(S)}catch{return!1}},u=function(w){try{return s(w)?!1:(e.call(w),!0)}catch{return!1}},d=Object.prototype.toString,c="[object Object]",l="[object Function]",h="[object GeneratorFunction]",g="[object HTMLAllCollection]",b="[object HTML document.all class]",_="[object HTMLCollection]",T=typeof Symbol=="function"&&!!Symbol.toStringTag,k=!(0 in[,]),E=function(){return!1};if(typeof document=="object"){var R=document.all;d.call(R)===d.call(document.all)&&(E=function(w){if((k||!w)&&(typeof w>"u"||typeof w=="object"))try{var S=d.call(w);return(S===g||S===b||S===_||S===c)&&w("")==null}catch{}return!1})}return pl=t?function(w){if(E(w))return!0;if(!w||typeof w!="function"&&typeof w!="object")return!1;try{t(w,null,r)}catch(S){if(S!==i)return!1}return!s(w)&&u(w)}:function(w){if(E(w))return!0;if(!w||typeof w!="function"&&typeof w!="object")return!1;if(T)return u(w);if(s(w))return!1;var S=d.call(w);return S!==l&&S!==h&&!/^\[object HTML/.test(S)?!1:u(w)},pl}var gl,Yy;function jO(){if(Yy)return gl;Yy=1;var e=FO(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,i=function(c,l,h){for(var g=0,b=c.length;g<b;g++)r.call(c,g)&&(h==null?l(c[g],g,c):l.call(h,c[g],g,c))},a=function(c,l,h){for(var g=0,b=c.length;g<b;g++)h==null?l(c.charAt(g),g,c):l.call(h,c.charAt(g),g,c)},s=function(c,l,h){for(var g in c)r.call(c,g)&&(h==null?l(c[g],g,c):l.call(h,c[g],g,c))},u=function(c,l,h){if(!e(l))throw new TypeError("iterator must be a function");var g;arguments.length>=3&&(g=h),t.call(c)==="[object Array]"?i(c,l,g):typeof c=="string"?a(c,l,g):s(c,l,g)};return gl=u,gl}var yl,Qy;function kO(){return Qy||(Qy=1,yl=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),yl}var _l,e0;function UO(){if(e0)return _l;e0=1;var e=kO(),t=typeof globalThis>"u"?ee.commonjsGlobal:globalThis;return _l=function(){for(var i=[],a=0;a<e.length;a++)typeof t[e[a]]=="function"&&(i[i.length]=e[a]);return i},_l}var fm={exports:{}},t0=Nu,qO=om(),vo=Ri(),r0=$a(),cm=function(t,r,i){if(!t||typeof t!="object"&&typeof t!="function")throw new vo("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new vo("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new vo("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new vo("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new vo("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new vo("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,d=arguments.length>6?arguments[6]:!1,c=!!r0&&r0(t,r);if(t0)t0(t,r,{configurable:u===null&&c?c.configurable:!u,enumerable:a===null&&c?c.enumerable:!a,value:i,writable:s===null&&c?c.writable:!s});else if(d||!a&&!s&&!u)t[r]=i;else throw new qO("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Hd=Nu,lm=function(){return!!Hd};lm.hasArrayLengthDefineBug=function(){if(!Hd)return null;try{return Hd([],"length",{value:1}).length!==1}catch{return!0}};var dm=lm,HO=Da(),n0=cm,WO=dm(),i0=$a(),o0=Ri(),zO=HO("%Math.floor%"),GO=function(t,r){if(typeof t!="function")throw new o0("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||zO(r)!==r)throw new o0("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],a=!0,s=!0;if("length"in t&&i0){var u=i0(t,"length");u&&!u.configurable&&(a=!1),u&&!u.writable&&(s=!1)}return(a||s||!i)&&(WO?n0(t,"length",r,!0,!0):n0(t,"length",r)),t},VO=xa(),ZO=vh(),KO=am,JO=function(){return KO(VO,ZO,arguments)};(function(e){var t=GO,r=Nu,i=wh,a=JO;e.exports=function(u){var d=i(arguments),c=u.length-(arguments.length-1);return t(d,1+(c>0?c:0),!0)},r?r(e.exports,"apply",{value:a}):e.exports.apply=a})(fm);var Bu=fm.exports,bl,a0;function hm(){if(a0)return bl;a0=1;var e=jO(),t=UO(),r=Bu,i=Ma,a=$a(),s=i("Object.prototype.toString"),u=bh()(),d=typeof globalThis>"u"?ee.commonjsGlobal:globalThis,c=t(),l=i("String.prototype.slice"),h=Object.getPrototypeOf,g=i("Array.prototype.indexOf",!0)||function(E,R){for(var v=0;v<E.length;v+=1)if(E[v]===R)return v;return-1},b={__proto__:null};u&&a&&h?e(c,function(k){var E=new d[k];if(Symbol.toStringTag in E){var R=h(E),v=a(R,Symbol.toStringTag);if(!v){var w=h(R);v=a(w,Symbol.toStringTag)}b["$"+k]=r(v.get)}}):e(c,function(k){var E=new d[k],R=E.slice||E.set;R&&(b["$"+k]=r(R))});var _=function(E){var R=!1;return e(b,function(v,w){if(!R)try{"$"+v(E)===w&&(R=l(w,1))}catch{}}),R},T=function(E){var R=!1;return e(b,function(v,w){if(!R)try{v(E),R=l(w,1)}catch{}}),R};return bl=function(E){if(!E||typeof E!="object")return!1;if(!u){var R=l(s(E),8,-1);return g(c,R)>-1?R:R!=="Object"?!1:T(E)}return a?_(E):null},bl}var ml,s0;function XO(){if(s0)return ml;s0=1;var e=hm();return ml=function(r){return!!e(r)},ml}var u0;function YO(){return u0||(u0=1,function(e){var t=DO(),r=MO(),i=hm(),a=XO();function s(me){return me.call.bind(me)}var u=typeof BigInt<"u",d=typeof Symbol<"u",c=s(Object.prototype.toString),l=s(Number.prototype.valueOf),h=s(String.prototype.valueOf),g=s(Boolean.prototype.valueOf);if(u)var b=s(BigInt.prototype.valueOf);if(d)var _=s(Symbol.prototype.valueOf);function T(me,Ye){if(typeof me!="object")return!1;try{return Ye(me),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=a;function k(me){return typeof Promise<"u"&&me instanceof Promise||me!==null&&typeof me=="object"&&typeof me.then=="function"&&typeof me.catch=="function"}e.isPromise=k;function E(me){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(me):a(me)||j(me)}e.isArrayBufferView=E;function R(me){return i(me)==="Uint8Array"}e.isUint8Array=R;function v(me){return i(me)==="Uint8ClampedArray"}e.isUint8ClampedArray=v;function w(me){return i(me)==="Uint16Array"}e.isUint16Array=w;function S(me){return i(me)==="Uint32Array"}e.isUint32Array=S;function H(me){return i(me)==="Int8Array"}e.isInt8Array=H;function Q(me){return i(me)==="Int16Array"}e.isInt16Array=Q;function ie(me){return i(me)==="Int32Array"}e.isInt32Array=ie;function he(me){return i(me)==="Float32Array"}e.isFloat32Array=he;function le(me){return i(me)==="Float64Array"}e.isFloat64Array=le;function Ee(me){return i(me)==="BigInt64Array"}e.isBigInt64Array=Ee;function ve(me){return i(me)==="BigUint64Array"}e.isBigUint64Array=ve;function m(me){return c(me)==="[object Map]"}m.working=typeof Map<"u"&&m(new Map);function O(me){return typeof Map>"u"?!1:m.working?m(me):me instanceof Map}e.isMap=O;function P(me){return c(me)==="[object Set]"}P.working=typeof Set<"u"&&P(new Set);function Z(me){return typeof Set>"u"?!1:P.working?P(me):me instanceof Set}e.isSet=Z;function ae(me){return c(me)==="[object WeakMap]"}ae.working=typeof WeakMap<"u"&&ae(new WeakMap);function X(me){return typeof WeakMap>"u"?!1:ae.working?ae(me):me instanceof WeakMap}e.isWeakMap=X;function ne(me){return c(me)==="[object WeakSet]"}ne.working=typeof WeakSet<"u"&&ne(new WeakSet);function F(me){return ne(me)}e.isWeakSet=F;function x(me){return c(me)==="[object ArrayBuffer]"}x.working=typeof ArrayBuffer<"u"&&x(new ArrayBuffer);function Y(me){return typeof ArrayBuffer>"u"?!1:x.working?x(me):me instanceof ArrayBuffer}e.isArrayBuffer=Y;function B(me){return c(me)==="[object DataView]"}B.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&B(new DataView(new ArrayBuffer(1),0,1));function j(me){return typeof DataView>"u"?!1:B.working?B(me):me instanceof DataView}e.isDataView=j;var $=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function U(me){return c(me)==="[object SharedArrayBuffer]"}function G(me){return typeof $>"u"?!1:(typeof U.working>"u"&&(U.working=U(new $)),U.working?U(me):me instanceof $)}e.isSharedArrayBuffer=G;function de(me){return c(me)==="[object AsyncFunction]"}e.isAsyncFunction=de;function oe(me){return c(me)==="[object Map Iterator]"}e.isMapIterator=oe;function fe(me){return c(me)==="[object Set Iterator]"}e.isSetIterator=fe;function Se(me){return c(me)==="[object Generator]"}e.isGeneratorObject=Se;function Be(me){return c(me)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=Be;function Me(me){return T(me,l)}e.isNumberObject=Me;function z(me){return T(me,h)}e.isStringObject=z;function J(me){return T(me,g)}e.isBooleanObject=J;function ge(me){return u&&T(me,b)}e.isBigIntObject=ge;function Ne(me){return d&&T(me,_)}e.isSymbolObject=Ne;function Oe(me){return Me(me)||z(me)||J(me)||ge(me)||Ne(me)}e.isBoxedPrimitive=Oe;function je(me){return typeof Uint8Array<"u"&&(Y(me)||G(me))}e.isAnyArrayBuffer=je,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(me){Object.defineProperty(e,me,{enumerable:!1,value:function(){throw new Error(me+" is not supported in userland")}})})}(kc)),kc}var vl,f0;function QO(){return f0||(f0=1,vl=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),vl}var c0;function zi(){return c0||(c0=1,function(e){var t=Object.getOwnPropertyDescriptors||function(j){for(var $=Object.keys(j),U={},G=0;G<$.length;G++)U[$[G]]=Object.getOwnPropertyDescriptor(j,$[G]);return U},r=/%[sdj%]/g;e.format=function(B){if(!H(B)){for(var j=[],$=0;$<arguments.length;$++)j.push(u(arguments[$]));return j.join(" ")}for(var $=1,U=arguments,G=U.length,de=String(B).replace(r,function(fe){if(fe==="%%")return"%";if($>=G)return fe;switch(fe){case"%s":return String(U[$++]);case"%d":return Number(U[$++]);case"%j":try{return JSON.stringify(U[$++])}catch{return"[Circular]"}default:return fe}}),oe=U[$];$<G;oe=U[++$])v(oe)||!le(oe)?de+=" "+oe:de+=" "+u(oe);return de},e.deprecate=function(B,j){if(typeof ee.dist.process<"u"&&ee.dist.process.noDeprecation===!0)return B;if(typeof ee.dist.process>"u")return function(){return e.deprecate(B,j).apply(this,arguments)};var $=!1;function U(){if(!$){if(ee.dist.process.throwDeprecation)throw new Error(j);ee.dist.process.traceDeprecation?console.trace(j):console.error(j),$=!0}return B.apply(this,arguments)}return U};var i={},a=/^$/;if(ee.dist.process.env.NODE_DEBUG){var s=ee.dist.process.env.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+s+"$","i")}e.debuglog=function(B){if(B=B.toUpperCase(),!i[B])if(a.test(B)){var j=ee.dist.process.pid;i[B]=function(){var $=e.format.apply(e,arguments);console.error("%s %d: %s",B,j,$)}}else i[B]=function(){};return i[B]};function u(B,j){var $={seen:[],stylize:c};return arguments.length>=3&&($.depth=arguments[2]),arguments.length>=4&&($.colors=arguments[3]),R(j)?$.showHidden=j:j&&e._extend($,j),ie($.showHidden)&&($.showHidden=!1),ie($.depth)&&($.depth=2),ie($.colors)&&($.colors=!1),ie($.customInspect)&&($.customInspect=!0),$.colors&&($.stylize=d),h($,B,$.depth)}e.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function d(B,j){var $=u.styles[j];return $?"\x1B["+u.colors[$][0]+"m"+B+"\x1B["+u.colors[$][1]+"m":B}function c(B,j){return B}function l(B){var j={};return B.forEach(function($,U){j[$]=!0}),j}function h(B,j,$){if(B.customInspect&&j&&m(j.inspect)&&j.inspect!==e.inspect&&!(j.constructor&&j.constructor.prototype===j)){var U=j.inspect($,B);return H(U)||(U=h(B,U,$)),U}var G=g(B,j);if(G)return G;var de=Object.keys(j),oe=l(de);if(B.showHidden&&(de=Object.getOwnPropertyNames(j)),ve(j)&&(de.indexOf("message")>=0||de.indexOf("description")>=0))return b(j);if(de.length===0){if(m(j)){var fe=j.name?": "+j.name:"";return B.stylize("[Function"+fe+"]","special")}if(he(j))return B.stylize(RegExp.prototype.toString.call(j),"regexp");if(Ee(j))return B.stylize(Date.prototype.toString.call(j),"date");if(ve(j))return b(j)}var Se="",Be=!1,Me=["{","}"];if(E(j)&&(Be=!0,Me=["[","]"]),m(j)){var z=j.name?": "+j.name:"";Se=" [Function"+z+"]"}if(he(j)&&(Se=" "+RegExp.prototype.toString.call(j)),Ee(j)&&(Se=" "+Date.prototype.toUTCString.call(j)),ve(j)&&(Se=" "+b(j)),de.length===0&&(!Be||j.length==0))return Me[0]+Se+Me[1];if($<0)return he(j)?B.stylize(RegExp.prototype.toString.call(j),"regexp"):B.stylize("[Object]","special");B.seen.push(j);var J;return Be?J=_(B,j,$,oe,de):J=de.map(function(ge){return T(B,j,$,oe,ge,Be)}),B.seen.pop(),k(J,Se,Me)}function g(B,j){if(ie(j))return B.stylize("undefined","undefined");if(H(j)){var $="'"+JSON.stringify(j).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return B.stylize($,"string")}if(S(j))return B.stylize(""+j,"number");if(R(j))return B.stylize(""+j,"boolean");if(v(j))return B.stylize("null","null")}function b(B){return"["+Error.prototype.toString.call(B)+"]"}function _(B,j,$,U,G){for(var de=[],oe=0,fe=j.length;oe<fe;++oe)ne(j,String(oe))?de.push(T(B,j,$,U,String(oe),!0)):de.push("");return G.forEach(function(Se){Se.match(/^\d+$/)||de.push(T(B,j,$,U,Se,!0))}),de}function T(B,j,$,U,G,de){var oe,fe,Se;if(Se=Object.getOwnPropertyDescriptor(j,G)||{value:j[G]},Se.get?Se.set?fe=B.stylize("[Getter/Setter]","special"):fe=B.stylize("[Getter]","special"):Se.set&&(fe=B.stylize("[Setter]","special")),ne(U,G)||(oe="["+G+"]"),fe||(B.seen.indexOf(Se.value)<0?(v($)?fe=h(B,Se.value,null):fe=h(B,Se.value,$-1),fe.indexOf(`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ee=require("./index-D5ta6SAe.js"),JT=require("./events-Bu0pqh5u.js");var jd={exports:{}};(function(e,t){t=e.exports=ee.require_stream_readable(),t.Stream=t,t.Readable=t,t.Writable=ee.require_stream_writable(),t.Duplex=ee.require_stream_duplex(),t.Transform=ee.require_stream_transform(),t.PassThrough=ee.require_stream_passthrough(),t.finished=ee.requireEndOfStream(),t.pipeline=ee.requirePipeline()})(jd,jd.exports);var Do=jd.exports,Jb={};const wy=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];Jb.p1600=function(e){for(let t=0;t<24;++t){const r=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],d=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],l=e[7]^e[17]^e[27]^e[37]^e[47],h=e[8]^e[18]^e[28]^e[38]^e[48],g=e[9]^e[19]^e[29]^e[39]^e[49];let b=h^(a<<1|s>>>31),_=g^(s<<1|a>>>31);const T=e[0]^b,k=e[1]^_,E=e[10]^b,R=e[11]^_,v=e[20]^b,w=e[21]^_,S=e[30]^b,H=e[31]^_,Q=e[40]^b,ie=e[41]^_;b=r^(u<<1|d>>>31),_=i^(d<<1|u>>>31);const he=e[2]^b,le=e[3]^_,Ee=e[12]^b,ve=e[13]^_,m=e[22]^b,O=e[23]^_,P=e[32]^b,Z=e[33]^_,ae=e[42]^b,X=e[43]^_;b=a^(c<<1|l>>>31),_=s^(l<<1|c>>>31);const ne=e[4]^b,F=e[5]^_,x=e[14]^b,Y=e[15]^_,B=e[24]^b,j=e[25]^_,$=e[34]^b,U=e[35]^_,G=e[44]^b,de=e[45]^_;b=u^(h<<1|g>>>31),_=d^(g<<1|h>>>31);const oe=e[6]^b,fe=e[7]^_,Se=e[16]^b,Be=e[17]^_,Me=e[26]^b,z=e[27]^_,J=e[36]^b,ge=e[37]^_,Ne=e[46]^b,Oe=e[47]^_;b=c^(r<<1|i>>>31),_=l^(i<<1|r>>>31);const je=e[8]^b,me=e[9]^_,Ye=e[18]^b,et=e[19]^_,re=e[28]^b,xe=e[29]^_,M=e[38]^b,ce=e[39]^_,De=e[48]^b,Ve=e[49]^_,Ue=T,ke=k,Xe=R<<4|E>>>28,D=E<<4|R>>>28,Re=v<<3|w>>>29,$e=w<<3|v>>>29,qe=H<<9|S>>>23,C=S<<9|H>>>23,K=Q<<18|ie>>>14,A=ie<<18|Q>>>14,Te=he<<1|le>>>31,Ke=le<<1|he>>>31,p=ve<<12|Ee>>>20,_e=Ee<<12|ve>>>20,Ie=m<<10|O>>>22,L=O<<10|m>>>22,ue=Z<<13|P>>>19,Ae=P<<13|Z>>>19,Je=ae<<2|X>>>30,N=X<<2|ae>>>30,W=F<<30|ne>>>2,Ce=ne<<30|F>>>2,ze=x<<6|Y>>>26,Ge=Y<<6|x>>>26,rt=j<<11|B>>>21,ot=B<<11|j>>>21,bt=$<<15|U>>>17,ht=U<<15|$>>>17,ar=de<<29|G>>>3,fr=G<<29|de>>>3,wt=oe<<28|fe>>>4,Dt=fe<<28|oe>>>4,St=Be<<23|Se>>>9,Ot=Se<<23|Be>>>9,qt=Me<<25|z>>>7,tr=z<<25|Me>>>7,Gt=J<<21|ge>>>11,Vt=ge<<21|J>>>11,$n=Oe<<24|Ne>>>8,yn=Ne<<24|Oe>>>8,xn=je<<27|me>>>5,_n=me<<27|je>>>5,bn=Ye<<20|et>>>12,Wr=et<<20|Ye>>>12,Oi=xe<<7|re>>>25,mn=re<<7|xe>>>25,ri=M<<8|ce>>>24,ni=ce<<8|M>>>24,ii=De<<14|Ve>>>18,oi=Ve<<14|De>>>18;e[0]=Ue^~p&rt,e[1]=ke^~_e&ot,e[10]=wt^~bn&Re,e[11]=Dt^~Wr&$e,e[20]=Te^~ze&qt,e[21]=Ke^~Ge&tr,e[30]=xn^~Xe&Ie,e[31]=_n^~D&L,e[40]=W^~St&Oi,e[41]=Ce^~Ot&mn,e[2]=p^~rt&Gt,e[3]=_e^~ot&Vt,e[12]=bn^~Re&ue,e[13]=Wr^~$e&Ae,e[22]=ze^~qt&ri,e[23]=Ge^~tr&ni,e[32]=Xe^~Ie&bt,e[33]=D^~L&ht,e[42]=St^~Oi&qe,e[43]=Ot^~mn&C,e[4]=rt^~Gt&ii,e[5]=ot^~Vt&oi,e[14]=Re^~ue&ar,e[15]=$e^~Ae&fr,e[24]=qt^~ri&K,e[25]=tr^~ni&A,e[34]=Ie^~bt&$n,e[35]=L^~ht&yn,e[44]=Oi^~qe&Je,e[45]=mn^~C&N,e[6]=Gt^~ii&Ue,e[7]=Vt^~oi&ke,e[16]=ue^~ar&wt,e[17]=Ae^~fr&Dt,e[26]=ri^~K&Te,e[27]=ni^~A&Ke,e[36]=bt^~$n&xn,e[37]=ht^~yn&_n,e[46]=qe^~Je&W,e[47]=C^~N&Ce,e[8]=ii^~Ue&p,e[9]=oi^~ke&_e,e[18]=ar^~wt&bn,e[19]=fr^~Dt&Wr,e[28]=K^~Te&ze,e[29]=A^~Ke&Ge,e[38]=$n^~xn&Xe,e[39]=yn^~_n&D,e[48]=Je^~W&St,e[49]=N^~Ce&Ot,e[0]^=wy[t*2],e[1]^=wy[t*2+1]}};const bu=Jb;function Ba(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}Ba.prototype.initialize=function(e,t){for(let r=0;r<50;++r)this.state[r]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1};Ba.prototype.absorb=function(e){for(let t=0;t<e.length;++t)this.state[~~(this.count/4)]^=e[t]<<8*(this.count%4),this.count+=1,this.count===this.blockSize&&(bu.p1600(this.state),this.count=0)};Ba.prototype.absorbLastFewBits=function(e){this.state[~~(this.count/4)]^=e<<8*(this.count%4),e&128&&this.count===this.blockSize-1&&bu.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),bu.p1600(this.state),this.count=0,this.squeezing=!0};Ba.prototype.squeeze=function(e){this.squeezing||this.absorbLastFewBits(1);const t=ee.dist.Buffer.alloc(e);for(let r=0;r<e;++r)t[r]=this.state[~~(this.count/4)]>>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(bu.p1600(this.state),this.count=0);return t};Ba.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing};var XT=YT;function YT(e){e=e||{};var t=e.max||Number.MAX_SAFE_INTEGER,r=typeof e.start<"u"?e.start:Math.floor(Math.random()*t);return function(){return r=r%t,r++}}const QT=ee.getDefaultExportFromCjs(XT);var kd={exports:{}},xc,Ey;function eO(){if(Ey)return xc;Ey=1;var e=1e3,t=e*60,r=t*60,i=r*24,a=i*7,s=i*365.25;xc=function(h,g){g=g||{};var b=typeof h;if(b==="string"&&h.length>0)return u(h);if(b==="number"&&isFinite(h))return g.long?c(h):d(h);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(h))};function u(h){if(h=String(h),!(h.length>100)){var g=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(h);if(g){var b=parseFloat(g[1]),_=(g[2]||"ms").toLowerCase();switch(_){case"years":case"year":case"yrs":case"yr":case"y":return b*s;case"weeks":case"week":case"w":return b*a;case"days":case"day":case"d":return b*i;case"hours":case"hour":case"hrs":case"hr":case"h":return b*r;case"minutes":case"minute":case"mins":case"min":case"m":return b*t;case"seconds":case"second":case"secs":case"sec":case"s":return b*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return b;default:return}}}}function d(h){var g=Math.abs(h);return g>=i?Math.round(h/i)+"d":g>=r?Math.round(h/r)+"h":g>=t?Math.round(h/t)+"m":g>=e?Math.round(h/e)+"s":h+"ms"}function c(h){var g=Math.abs(h);return g>=i?l(h,g,i,"day"):g>=r?l(h,g,r,"hour"):g>=t?l(h,g,t,"minute"):g>=e?l(h,g,e,"second"):h+" ms"}function l(h,g,b,_){var T=g>=b*1.5;return Math.round(h/b)+" "+_+(T?"s":"")}return xc}function tO(e){r.debug=r,r.default=r,r.coerce=c,r.disable=u,r.enable=a,r.enabled=d,r.humanize=eO(),r.destroy=l,Object.keys(e).forEach(h=>{r[h]=e[h]}),r.names=[],r.skips=[],r.formatters={};function t(h){let g=0;for(let b=0;b<h.length;b++)g=(g<<5)-g+h.charCodeAt(b),g|=0;return r.colors[Math.abs(g)%r.colors.length]}r.selectColor=t;function r(h){let g,b=null,_,T;function k(...E){if(!k.enabled)return;const R=k,v=Number(new Date),w=v-(g||v);R.diff=w,R.prev=g,R.curr=v,g=v,E[0]=r.coerce(E[0]),typeof E[0]!="string"&&E.unshift("%O");let S=0;E[0]=E[0].replace(/%([a-zA-Z%])/g,(Q,ie)=>{if(Q==="%%")return"%";S++;const he=r.formatters[ie];if(typeof he=="function"){const le=E[S];Q=he.call(R,le),E.splice(S,1),S--}return Q}),r.formatArgs.call(R,E),(R.log||r.log).apply(R,E)}return k.namespace=h,k.useColors=r.useColors(),k.color=r.selectColor(h),k.extend=i,k.destroy=r.destroy,Object.defineProperty(k,"enabled",{enumerable:!0,configurable:!1,get:()=>b!==null?b:(_!==r.namespaces&&(_=r.namespaces,T=r.enabled(h)),T),set:E=>{b=E}}),typeof r.init=="function"&&r.init(k),k}function i(h,g){const b=r(this.namespace+(typeof g>"u"?":":g)+h);return b.log=this.log,b}function a(h){r.save(h),r.namespaces=h,r.names=[],r.skips=[];const g=(typeof h=="string"?h:"").trim().replace(" ",",").split(",").filter(Boolean);for(const b of g)b[0]==="-"?r.skips.push(b.slice(1)):r.names.push(b)}function s(h,g){let b=0,_=0,T=-1,k=0;for(;b<h.length;)if(_<g.length&&(g[_]===h[b]||g[_]==="*"))g[_]==="*"?(T=_,k=b,_++):(b++,_++);else if(T!==-1)_=T+1,k++,b=k;else return!1;for(;_<g.length&&g[_]==="*";)_++;return _===g.length}function u(){const h=[...r.names,...r.skips.map(g=>"-"+g)].join(",");return r.enable(""),h}function d(h){for(const g of r.skips)if(s(h,g))return!1;for(const g of r.names)if(s(h,g))return!0;return!1}function c(h){return h instanceof Error?h.stack||h.message:h}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}var rO=tO;(function(e,t){t.formatArgs=i,t.save=a,t.load=s,t.useColors=r,t.storage=u(),t.destroy=(()=>{let c=!1;return()=>{c||(c=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let c;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(c=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(c[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function i(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;c.splice(1,0,l,"color: inherit");let h=0,g=0;c[0].replace(/%[a-zA-Z%]/g,b=>{b!=="%%"&&(h++,b==="%c"&&(g=h))}),c.splice(g,0,l)}t.log=console.debug||console.log||(()=>{});function a(c){try{c?t.storage.setItem("debug",c):t.storage.removeItem("debug")}catch{}}function s(){let c;try{c=t.storage.getItem("debug")}catch{}return!c&&typeof ee.dist.process<"u"&&"env"in ee.dist.process&&(c=ee.dist.process.env.DEBUG),c}function u(){try{return localStorage}catch{}}e.exports=rO(t);const{formatters:d}=e.exports;d.j=function(c){try{return JSON.stringify(c)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}})(kd,kd.exports);var nO=kd.exports,hn={},Ei={},ph=Ta;Ta.default=Ta;Ta.stable=Qb;Ta.stableStringify=Qb;var mu="[...]",Xb="[Circular]",Wi=[],qi=[];function Yb(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function Ta(e,t,r,i){typeof i>"u"&&(i=Yb()),Ud(e,"",0,[],void 0,0,i);var a;try{qi.length===0?a=JSON.stringify(e,t,r):a=JSON.stringify(e,em(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Wi.length!==0;){var s=Wi.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return a}function Io(e,t,r,i){var a=Object.getOwnPropertyDescriptor(i,r);a.get!==void 0?a.configurable?(Object.defineProperty(i,r,{value:e}),Wi.push([i,r,t,a])):qi.push([t,r,e]):(i[r]=e,Wi.push([i,r,t]))}function Ud(e,t,r,i,a,s,u){s+=1;var d;if(typeof e=="object"&&e!==null){for(d=0;d<i.length;d++)if(i[d]===e){Io(Xb,e,t,a);return}if(typeof u.depthLimit<"u"&&s>u.depthLimit){Io(mu,e,t,a);return}if(typeof u.edgesLimit<"u"&&r+1>u.edgesLimit){Io(mu,e,t,a);return}if(i.push(e),Array.isArray(e))for(d=0;d<e.length;d++)Ud(e[d],d,d,i,e,s,u);else{var c=Object.keys(e);for(d=0;d<c.length;d++){var l=c[d];Ud(e[l],l,d,i,e,s,u)}}i.pop()}}function iO(e,t){return e<t?-1:e>t?1:0}function Qb(e,t,r,i){typeof i>"u"&&(i=Yb());var a=qd(e,"",0,[],void 0,0,i)||e,s;try{qi.length===0?s=JSON.stringify(a,t,r):s=JSON.stringify(a,em(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Wi.length!==0;){var u=Wi.pop();u.length===4?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return s}function qd(e,t,r,i,a,s,u){s+=1;var d;if(typeof e=="object"&&e!==null){for(d=0;d<i.length;d++)if(i[d]===e){Io(Xb,e,t,a);return}try{if(typeof e.toJSON=="function")return}catch{return}if(typeof u.depthLimit<"u"&&s>u.depthLimit){Io(mu,e,t,a);return}if(typeof u.edgesLimit<"u"&&r+1>u.edgesLimit){Io(mu,e,t,a);return}if(i.push(e),Array.isArray(e))for(d=0;d<e.length;d++)qd(e[d],d,d,i,e,s,u);else{var c={},l=Object.keys(e).sort(iO);for(d=0;d<l.length;d++){var h=l[d];qd(e[h],h,d,i,e,s,u),c[h]=e[h]}if(typeof a<"u")Wi.push([a,t,e]),a[t]=c;else return c}i.pop()}}function em(e){return e=typeof e<"u"?e:function(t,r){return r},function(t,r){if(qi.length>0)for(var i=0;i<qi.length;i++){var a=qi[i];if(a[1]===t&&a[0]===r){r=a[2],qi.splice(i,1);break}}return e.call(this,t,r)}}const oO=ee.getDefaultExportFromCjs(ph);Object.defineProperty(Ei,"__esModule",{value:!0});Ei.EthereumProviderError=Ei.EthereumRpcError=void 0;const aO=ph;class tm extends Error{constructor(t,r,i){if(!Number.isInteger(t))throw new Error('"code" must be an integer.');if(!r||typeof r!="string")throw new Error('"message" must be a nonempty string.');super(r),this.code=t,i!==void 0&&(this.data=i)}serialize(){const t={code:this.code,message:this.message};return this.data!==void 0&&(t.data=this.data),this.stack&&(t.stack=this.stack),t}toString(){return aO.default(this.serialize(),fO,2)}}Ei.EthereumRpcError=tm;let sO=class extends tm{constructor(t,r,i){if(!uO(t))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(t,r,i)}};Ei.EthereumProviderError=sO;function uO(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}function fO(e,t){if(t!=="[Circular]")return t}var gh={},Si={};Object.defineProperty(Si,"__esModule",{value:!0});Si.errorValues=Si.errorCodes=void 0;Si.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}};Si.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.serializeError=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const t=Si,r=Ei,i=t.errorCodes.rpc.internal,a="Unspecified error message. This is a bug, please report it.",s={code:i,message:u(i)};e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function u(b,_=a){if(Number.isInteger(b)){const T=b.toString();if(g(t.errorValues,T))return t.errorValues[T].message;if(l(b))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return _}e.getMessageFromCode=u;function d(b){if(!Number.isInteger(b))return!1;const _=b.toString();return!!(t.errorValues[_]||l(b))}e.isValidCode=d;function c(b,{fallbackError:_=s,shouldIncludeStack:T=!1}={}){var k,E;if(!_||!Number.isInteger(_.code)||typeof _.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(b instanceof r.EthereumRpcError)return b.serialize();const R={};if(b&&typeof b=="object"&&!Array.isArray(b)&&g(b,"code")&&d(b.code)){const w=b;R.code=w.code,w.message&&typeof w.message=="string"?(R.message=w.message,g(w,"data")&&(R.data=w.data)):(R.message=u(R.code),R.data={originalError:h(b)})}else{R.code=_.code;const w=(k=b)===null||k===void 0?void 0:k.message;R.message=w&&typeof w=="string"?w:_.message,R.data={originalError:h(b)}}const v=(E=b)===null||E===void 0?void 0:E.stack;return T&&b&&v&&typeof v=="string"&&(R.stack=v),R}e.serializeError=c;function l(b){return b>=-32099&&b<=-32e3}function h(b){return b&&typeof b=="object"&&!Array.isArray(b)?Object.assign({},b):b}function g(b,_){return Object.prototype.hasOwnProperty.call(b,_)}})(gh);var Lu={};Object.defineProperty(Lu,"__esModule",{value:!0});Lu.ethErrors=void 0;const yh=Ei,rm=gh,_r=Si;Lu.ethErrors={rpc:{parse:e=>Yr(_r.errorCodes.rpc.parse,e),invalidRequest:e=>Yr(_r.errorCodes.rpc.invalidRequest,e),invalidParams:e=>Yr(_r.errorCodes.rpc.invalidParams,e),methodNotFound:e=>Yr(_r.errorCodes.rpc.methodNotFound,e),internal:e=>Yr(_r.errorCodes.rpc.internal,e),server:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return Yr(t,e)},invalidInput:e=>Yr(_r.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>Yr(_r.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>Yr(_r.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>Yr(_r.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>Yr(_r.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>Yr(_r.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>ha(_r.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>ha(_r.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>ha(_r.errorCodes.provider.unsupportedMethod,e),disconnected:e=>ha(_r.errorCodes.provider.disconnected,e),chainDisconnected:e=>ha(_r.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:r,data:i}=e;if(!r||typeof r!="string")throw new Error('"message" must be a nonempty string');return new yh.EthereumProviderError(t,r,i)}}};function Yr(e,t){const[r,i]=nm(t);return new yh.EthereumRpcError(e,r||rm.getMessageFromCode(e),i)}function ha(e,t){const[r,i]=nm(t);return new yh.EthereumProviderError(e,r||rm.getMessageFromCode(e),i)}function nm(e){if(e){if(typeof e=="string")return[e];if(typeof e=="object"&&!Array.isArray(e)){const{message:t,data:r}=e;if(t&&typeof t!="string")throw new Error("Must specify string message.");return[t||void 0,r]}}return[]}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getMessageFromCode=e.serializeError=e.EthereumProviderError=e.EthereumRpcError=e.ethErrors=e.errorCodes=void 0;const t=Ei;Object.defineProperty(e,"EthereumRpcError",{enumerable:!0,get:function(){return t.EthereumRpcError}}),Object.defineProperty(e,"EthereumProviderError",{enumerable:!0,get:function(){return t.EthereumProviderError}});const r=gh;Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return r.serializeError}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return r.getMessageFromCode}});const i=Lu;Object.defineProperty(e,"ethErrors",{enumerable:!0,get:function(){return i.ethErrors}});const a=Si;Object.defineProperty(e,"errorCodes",{enumerable:!0,get:function(){return a.errorCodes}})})(hn);var Dc,Sy;function cO(){if(Sy)return Dc;Sy=1,Dc=t;var e=Object.prototype.hasOwnProperty;function t(){for(var r={},i=0;i<arguments.length;i++){var a=arguments[i];for(var s in a)e.call(a,s)&&(r[s]=a[s])}return r}return Dc}var Mc={exports:{}},Fc={},jc={},kc={},Uc,Ay;function _h(){return Ay||(Ay=1,Uc=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var a=42;t[r]=a;for(var s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var u=Object.getOwnPropertySymbols(t);if(u.length!==1||u[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var d=Object.getOwnPropertyDescriptor(t,r);if(d.value!==a||d.enumerable!==!0)return!1}return!0}),Uc}var qc,Ry;function bh(){if(Ry)return qc;Ry=1;var e=_h();return qc=function(){return e()&&!!Symbol.toStringTag},qc}var Hc,Iy;function im(){return Iy||(Iy=1,Hc=Object),Hc}var Wc,Ty;function lO(){return Ty||(Ty=1,Wc=Error),Wc}var zc,Oy;function dO(){return Oy||(Oy=1,zc=EvalError),zc}var Gc,Py;function hO(){return Py||(Py=1,Gc=RangeError),Gc}var Vc,Cy;function pO(){return Cy||(Cy=1,Vc=ReferenceError),Vc}var Zc,Ly;function om(){return Ly||(Ly=1,Zc=SyntaxError),Zc}var Kc,Ny;function Ri(){return Ny||(Ny=1,Kc=TypeError),Kc}var Jc,By;function gO(){return By||(By=1,Jc=URIError),Jc}var Xc,$y;function yO(){return $y||($y=1,Xc=Math.abs),Xc}var Yc,xy;function _O(){return xy||(xy=1,Yc=Math.floor),Yc}var Qc,Dy;function bO(){return Dy||(Dy=1,Qc=Math.max),Qc}var el,My;function mO(){return My||(My=1,el=Math.min),el}var tl,Fy;function vO(){return Fy||(Fy=1,tl=Math.pow),tl}var rl,jy;function wO(){return jy||(jy=1,rl=Object.getOwnPropertyDescriptor),rl}var nl,ky;function $a(){if(ky)return nl;ky=1;var e=wO();if(e)try{e([],"length")}catch{e=null}return nl=e,nl}var du=Object.defineProperty||!1;if(du)try{du({},"a",{value:1})}catch{du=!1}var Nu=du,il,Uy;function EO(){if(Uy)return il;Uy=1;var e=typeof Symbol<"u"&&Symbol,t=_h();return il=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},il}var ol,qy;function SO(){if(qy)return ol;qy=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,i="[object Function]",a=function(c,l){for(var h=[],g=0;g<c.length;g+=1)h[g]=c[g];for(var b=0;b<l.length;b+=1)h[b+c.length]=l[b];return h},s=function(c,l){for(var h=[],g=l,b=0;g<c.length;g+=1,b+=1)h[b]=c[g];return h},u=function(d,c){for(var l="",h=0;h<d.length;h+=1)l+=d[h],h+1<d.length&&(l+=c);return l};return ol=function(c){var l=this;if(typeof l!="function"||t.apply(l)!==i)throw new TypeError(e+l);for(var h=s(arguments,1),g,b=function(){if(this instanceof g){var R=l.apply(this,a(h,arguments));return Object(R)===R?R:this}return l.apply(c,a(h,arguments))},_=r(0,l.length-h.length),T=[],k=0;k<_;k++)T[k]="$"+k;if(g=Function("binder","return function ("+u(T,",")+"){ return binder.apply(this,arguments); }")(b),l.prototype){var E=function(){};E.prototype=l.prototype,g.prototype=new E,E.prototype=null}return g},ol}var al,Hy;function xa(){if(Hy)return al;Hy=1;var e=SO();return al=Function.prototype.bind||e,al}var sl,Wy;function mh(){return Wy||(Wy=1,sl=Function.prototype.call),sl}var ul,zy;function vh(){return zy||(zy=1,ul=Function.prototype.apply),ul}var AO=typeof Reflect<"u"&&Reflect&&Reflect.apply,RO=xa(),IO=vh(),TO=mh(),OO=AO,am=OO||RO.call(TO,IO),PO=xa(),CO=Ri(),LO=mh(),NO=am,wh=function(t){if(t.length<1||typeof t[0]!="function")throw new CO("a function is required");return NO(PO,LO,t)},fl,Gy;function BO(){if(Gy)return fl;Gy=1;var e=wh,t=$a(),r;try{r=[].__proto__===Array.prototype}catch(u){if(!u||typeof u!="object"||!("code"in u)||u.code!=="ERR_PROTO_ACCESS")throw u}var i=!!r&&t&&t(Object.prototype,"__proto__"),a=Object,s=a.getPrototypeOf;return fl=i&&typeof i.get=="function"?e([i.get]):typeof s=="function"?function(d){return s(d==null?d:a(d))}:!1,fl}var cl,Vy;function $O(){if(Vy)return cl;Vy=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=xa();return cl=r.call(e,t),cl}var ll,Zy;function Da(){if(Zy)return ll;Zy=1;var e,t=im(),r=lO(),i=dO(),a=hO(),s=pO(),u=om(),d=Ri(),c=gO(),l=yO(),h=_O(),g=bO(),b=mO(),_=vO(),T=Function,k=function(G){try{return T('"use strict"; return ('+G+").constructor;")()}catch{}},E=$a(),R=Nu,v=function(){throw new d},w=E?function(){try{return arguments.callee,v}catch{try{return E(arguments,"callee").get}catch{return v}}}():v,S=EO()(),H=BO(),Q=typeof Reflect=="function"&&Reflect.getPrototypeOf||t.getPrototypeOf||H,ie=vh(),he=mh(),le={},Ee=typeof Uint8Array>"u"||!Q?e:Q(Uint8Array),ve={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":S&&Q?Q([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":le,"%AsyncGenerator%":le,"%AsyncGeneratorFunction%":le,"%AsyncIteratorPrototype%":le,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":i,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":T,"%GeneratorFunction%":le,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":S&&Q?Q(Q([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!S||!Q?e:Q(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":E,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!S||!Q?e:Q(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&Q?Q(""[Symbol.iterator]()):e,"%Symbol%":S?Symbol:e,"%SyntaxError%":u,"%ThrowTypeError%":w,"%TypedArray%":Ee,"%TypeError%":d,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":he,"%Function.prototype.apply%":ie,"%Object.defineProperty%":R,"%Math.abs%":l,"%Math.floor%":h,"%Math.max%":g,"%Math.min%":b,"%Math.pow%":_};if(Q)try{null.error}catch(G){var m=Q(Q(G));ve["%Error.prototype%"]=m}var O=function G(de){var oe;if(de==="%AsyncFunction%")oe=k("async function () {}");else if(de==="%GeneratorFunction%")oe=k("function* () {}");else if(de==="%AsyncGeneratorFunction%")oe=k("async function* () {}");else if(de==="%AsyncGenerator%"){var fe=G("%AsyncGeneratorFunction%");fe&&(oe=fe.prototype)}else if(de==="%AsyncIteratorPrototype%"){var Se=G("%AsyncGenerator%");Se&&Q&&(oe=Q(Se.prototype))}return ve[de]=oe,oe},P={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Z=xa(),ae=$O(),X=Z.call(he,Array.prototype.concat),ne=Z.call(ie,Array.prototype.splice),F=Z.call(he,String.prototype.replace),x=Z.call(he,String.prototype.slice),Y=Z.call(he,RegExp.prototype.exec),B=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,j=/\\(\\)?/g,$=function(de){var oe=x(de,0,1),fe=x(de,-1);if(oe==="%"&&fe!=="%")throw new u("invalid intrinsic syntax, expected closing `%`");if(fe==="%"&&oe!=="%")throw new u("invalid intrinsic syntax, expected opening `%`");var Se=[];return F(de,B,function(Be,Me,z,J){Se[Se.length]=z?F(J,j,"$1"):Me||Be}),Se},U=function(de,oe){var fe=de,Se;if(ae(P,fe)&&(Se=P[fe],fe="%"+Se[0]+"%"),ae(ve,fe)){var Be=ve[fe];if(Be===le&&(Be=O(fe)),typeof Be>"u"&&!oe)throw new d("intrinsic "+de+" exists, but is not available. Please file an issue!");return{alias:Se,name:fe,value:Be}}throw new u("intrinsic "+de+" does not exist!")};return ll=function(de,oe){if(typeof de!="string"||de.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof oe!="boolean")throw new d('"allowMissing" argument must be a boolean');if(Y(/^%?[^%]*%?$/,de)===null)throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var fe=$(de),Se=fe.length>0?fe[0]:"",Be=U("%"+Se+"%",oe),Me=Be.name,z=Be.value,J=!1,ge=Be.alias;ge&&(Se=ge[0],ne(fe,X([0,1],ge)));for(var Ne=1,Oe=!0;Ne<fe.length;Ne+=1){var je=fe[Ne],me=x(je,0,1),Ye=x(je,-1);if((me==='"'||me==="'"||me==="`"||Ye==='"'||Ye==="'"||Ye==="`")&&me!==Ye)throw new u("property names with quotes must have matching quotes");if((je==="constructor"||!Oe)&&(J=!0),Se+="."+je,Me="%"+Se+"%",ae(ve,Me))z=ve[Me];else if(z!=null){if(!(je in z)){if(!oe)throw new d("base intrinsic for "+de+" exists, but the property is not available.");return}if(E&&Ne+1>=fe.length){var et=E(z,je);Oe=!!et,Oe&&"get"in et&&!("originalValue"in et.get)?z=et.get:z=z[je]}else Oe=ae(z,je),z=z[je];Oe&&!J&&(ve[Me]=z)}}return z},ll}var sm=Da(),um=wh,xO=um([sm("%String.prototype.indexOf%")]),Ma=function(t,r){var i=sm(t,!!r);return typeof i=="function"&&xO(t,".prototype.")>-1?um([i]):i},dl,Ky;function DO(){if(Ky)return dl;Ky=1;var e=bh()(),t=Ma,r=t("Object.prototype.toString"),i=function(d){return e&&d&&typeof d=="object"&&Symbol.toStringTag in d?!1:r(d)==="[object Arguments]"},a=function(d){return i(d)?!0:d!==null&&typeof d=="object"&&"length"in d&&typeof d.length=="number"&&d.length>=0&&r(d)!=="[object Array]"&&"callee"in d&&r(d.callee)==="[object Function]"},s=function(){return i(arguments)}();return i.isLegacyArguments=a,dl=s?i:a,dl}var hl,Jy;function MO(){if(Jy)return hl;Jy=1;var e=Object.prototype.toString,t=Function.prototype.toString,r=/^\s*(?:function)?\*/,i=bh()(),a=Object.getPrototypeOf,s=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch{}},u;return hl=function(c){if(typeof c!="function")return!1;if(r.test(t.call(c)))return!0;if(!i){var l=e.call(c);return l==="[object GeneratorFunction]"}if(!a)return!1;if(typeof u>"u"){var h=s();u=h?a(h):!1}return a(c)===u},hl}var pl,Xy;function FO(){if(Xy)return pl;Xy=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,i;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw i}}),i={},t(function(){throw 42},null,r)}catch(v){v!==i&&(t=null)}else t=null;var a=/^\s*class\b/,s=function(w){try{var S=e.call(w);return a.test(S)}catch{return!1}},u=function(w){try{return s(w)?!1:(e.call(w),!0)}catch{return!1}},d=Object.prototype.toString,c="[object Object]",l="[object Function]",h="[object GeneratorFunction]",g="[object HTMLAllCollection]",b="[object HTML document.all class]",_="[object HTMLCollection]",T=typeof Symbol=="function"&&!!Symbol.toStringTag,k=!(0 in[,]),E=function(){return!1};if(typeof document=="object"){var R=document.all;d.call(R)===d.call(document.all)&&(E=function(w){if((k||!w)&&(typeof w>"u"||typeof w=="object"))try{var S=d.call(w);return(S===g||S===b||S===_||S===c)&&w("")==null}catch{}return!1})}return pl=t?function(w){if(E(w))return!0;if(!w||typeof w!="function"&&typeof w!="object")return!1;try{t(w,null,r)}catch(S){if(S!==i)return!1}return!s(w)&&u(w)}:function(w){if(E(w))return!0;if(!w||typeof w!="function"&&typeof w!="object")return!1;if(T)return u(w);if(s(w))return!1;var S=d.call(w);return S!==l&&S!==h&&!/^\[object HTML/.test(S)?!1:u(w)},pl}var gl,Yy;function jO(){if(Yy)return gl;Yy=1;var e=FO(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,i=function(c,l,h){for(var g=0,b=c.length;g<b;g++)r.call(c,g)&&(h==null?l(c[g],g,c):l.call(h,c[g],g,c))},a=function(c,l,h){for(var g=0,b=c.length;g<b;g++)h==null?l(c.charAt(g),g,c):l.call(h,c.charAt(g),g,c)},s=function(c,l,h){for(var g in c)r.call(c,g)&&(h==null?l(c[g],g,c):l.call(h,c[g],g,c))},u=function(c,l,h){if(!e(l))throw new TypeError("iterator must be a function");var g;arguments.length>=3&&(g=h),t.call(c)==="[object Array]"?i(c,l,g):typeof c=="string"?a(c,l,g):s(c,l,g)};return gl=u,gl}var yl,Qy;function kO(){return Qy||(Qy=1,yl=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),yl}var _l,e0;function UO(){if(e0)return _l;e0=1;var e=kO(),t=typeof globalThis>"u"?ee.commonjsGlobal:globalThis;return _l=function(){for(var i=[],a=0;a<e.length;a++)typeof t[e[a]]=="function"&&(i[i.length]=e[a]);return i},_l}var fm={exports:{}},t0=Nu,qO=om(),vo=Ri(),r0=$a(),cm=function(t,r,i){if(!t||typeof t!="object"&&typeof t!="function")throw new vo("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new vo("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new vo("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new vo("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new vo("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new vo("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,d=arguments.length>6?arguments[6]:!1,c=!!r0&&r0(t,r);if(t0)t0(t,r,{configurable:u===null&&c?c.configurable:!u,enumerable:a===null&&c?c.enumerable:!a,value:i,writable:s===null&&c?c.writable:!s});else if(d||!a&&!s&&!u)t[r]=i;else throw new qO("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Hd=Nu,lm=function(){return!!Hd};lm.hasArrayLengthDefineBug=function(){if(!Hd)return null;try{return Hd([],"length",{value:1}).length!==1}catch{return!0}};var dm=lm,HO=Da(),n0=cm,WO=dm(),i0=$a(),o0=Ri(),zO=HO("%Math.floor%"),GO=function(t,r){if(typeof t!="function")throw new o0("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||zO(r)!==r)throw new o0("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],a=!0,s=!0;if("length"in t&&i0){var u=i0(t,"length");u&&!u.configurable&&(a=!1),u&&!u.writable&&(s=!1)}return(a||s||!i)&&(WO?n0(t,"length",r,!0,!0):n0(t,"length",r)),t},VO=xa(),ZO=vh(),KO=am,JO=function(){return KO(VO,ZO,arguments)};(function(e){var t=GO,r=Nu,i=wh,a=JO;e.exports=function(u){var d=i(arguments),c=u.length-(arguments.length-1);return t(d,1+(c>0?c:0),!0)},r?r(e.exports,"apply",{value:a}):e.exports.apply=a})(fm);var Bu=fm.exports,bl,a0;function hm(){if(a0)return bl;a0=1;var e=jO(),t=UO(),r=Bu,i=Ma,a=$a(),s=i("Object.prototype.toString"),u=bh()(),d=typeof globalThis>"u"?ee.commonjsGlobal:globalThis,c=t(),l=i("String.prototype.slice"),h=Object.getPrototypeOf,g=i("Array.prototype.indexOf",!0)||function(E,R){for(var v=0;v<E.length;v+=1)if(E[v]===R)return v;return-1},b={__proto__:null};u&&a&&h?e(c,function(k){var E=new d[k];if(Symbol.toStringTag in E){var R=h(E),v=a(R,Symbol.toStringTag);if(!v){var w=h(R);v=a(w,Symbol.toStringTag)}b["$"+k]=r(v.get)}}):e(c,function(k){var E=new d[k],R=E.slice||E.set;R&&(b["$"+k]=r(R))});var _=function(E){var R=!1;return e(b,function(v,w){if(!R)try{"$"+v(E)===w&&(R=l(w,1))}catch{}}),R},T=function(E){var R=!1;return e(b,function(v,w){if(!R)try{v(E),R=l(w,1)}catch{}}),R};return bl=function(E){if(!E||typeof E!="object")return!1;if(!u){var R=l(s(E),8,-1);return g(c,R)>-1?R:R!=="Object"?!1:T(E)}return a?_(E):null},bl}var ml,s0;function XO(){if(s0)return ml;s0=1;var e=hm();return ml=function(r){return!!e(r)},ml}var u0;function YO(){return u0||(u0=1,function(e){var t=DO(),r=MO(),i=hm(),a=XO();function s(me){return me.call.bind(me)}var u=typeof BigInt<"u",d=typeof Symbol<"u",c=s(Object.prototype.toString),l=s(Number.prototype.valueOf),h=s(String.prototype.valueOf),g=s(Boolean.prototype.valueOf);if(u)var b=s(BigInt.prototype.valueOf);if(d)var _=s(Symbol.prototype.valueOf);function T(me,Ye){if(typeof me!="object")return!1;try{return Ye(me),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=a;function k(me){return typeof Promise<"u"&&me instanceof Promise||me!==null&&typeof me=="object"&&typeof me.then=="function"&&typeof me.catch=="function"}e.isPromise=k;function E(me){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(me):a(me)||j(me)}e.isArrayBufferView=E;function R(me){return i(me)==="Uint8Array"}e.isUint8Array=R;function v(me){return i(me)==="Uint8ClampedArray"}e.isUint8ClampedArray=v;function w(me){return i(me)==="Uint16Array"}e.isUint16Array=w;function S(me){return i(me)==="Uint32Array"}e.isUint32Array=S;function H(me){return i(me)==="Int8Array"}e.isInt8Array=H;function Q(me){return i(me)==="Int16Array"}e.isInt16Array=Q;function ie(me){return i(me)==="Int32Array"}e.isInt32Array=ie;function he(me){return i(me)==="Float32Array"}e.isFloat32Array=he;function le(me){return i(me)==="Float64Array"}e.isFloat64Array=le;function Ee(me){return i(me)==="BigInt64Array"}e.isBigInt64Array=Ee;function ve(me){return i(me)==="BigUint64Array"}e.isBigUint64Array=ve;function m(me){return c(me)==="[object Map]"}m.working=typeof Map<"u"&&m(new Map);function O(me){return typeof Map>"u"?!1:m.working?m(me):me instanceof Map}e.isMap=O;function P(me){return c(me)==="[object Set]"}P.working=typeof Set<"u"&&P(new Set);function Z(me){return typeof Set>"u"?!1:P.working?P(me):me instanceof Set}e.isSet=Z;function ae(me){return c(me)==="[object WeakMap]"}ae.working=typeof WeakMap<"u"&&ae(new WeakMap);function X(me){return typeof WeakMap>"u"?!1:ae.working?ae(me):me instanceof WeakMap}e.isWeakMap=X;function ne(me){return c(me)==="[object WeakSet]"}ne.working=typeof WeakSet<"u"&&ne(new WeakSet);function F(me){return ne(me)}e.isWeakSet=F;function x(me){return c(me)==="[object ArrayBuffer]"}x.working=typeof ArrayBuffer<"u"&&x(new ArrayBuffer);function Y(me){return typeof ArrayBuffer>"u"?!1:x.working?x(me):me instanceof ArrayBuffer}e.isArrayBuffer=Y;function B(me){return c(me)==="[object DataView]"}B.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&B(new DataView(new ArrayBuffer(1),0,1));function j(me){return typeof DataView>"u"?!1:B.working?B(me):me instanceof DataView}e.isDataView=j;var $=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function U(me){return c(me)==="[object SharedArrayBuffer]"}function G(me){return typeof $>"u"?!1:(typeof U.working>"u"&&(U.working=U(new $)),U.working?U(me):me instanceof $)}e.isSharedArrayBuffer=G;function de(me){return c(me)==="[object AsyncFunction]"}e.isAsyncFunction=de;function oe(me){return c(me)==="[object Map Iterator]"}e.isMapIterator=oe;function fe(me){return c(me)==="[object Set Iterator]"}e.isSetIterator=fe;function Se(me){return c(me)==="[object Generator]"}e.isGeneratorObject=Se;function Be(me){return c(me)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=Be;function Me(me){return T(me,l)}e.isNumberObject=Me;function z(me){return T(me,h)}e.isStringObject=z;function J(me){return T(me,g)}e.isBooleanObject=J;function ge(me){return u&&T(me,b)}e.isBigIntObject=ge;function Ne(me){return d&&T(me,_)}e.isSymbolObject=Ne;function Oe(me){return Me(me)||z(me)||J(me)||ge(me)||Ne(me)}e.isBoxedPrimitive=Oe;function je(me){return typeof Uint8Array<"u"&&(Y(me)||G(me))}e.isAnyArrayBuffer=je,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(me){Object.defineProperty(e,me,{enumerable:!1,value:function(){throw new Error(me+" is not supported in userland")}})})}(kc)),kc}var vl,f0;function QO(){return f0||(f0=1,vl=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),vl}var c0;function zi(){return c0||(c0=1,function(e){var t=Object.getOwnPropertyDescriptors||function(j){for(var $=Object.keys(j),U={},G=0;G<$.length;G++)U[$[G]]=Object.getOwnPropertyDescriptor(j,$[G]);return U},r=/%[sdj%]/g;e.format=function(B){if(!H(B)){for(var j=[],$=0;$<arguments.length;$++)j.push(u(arguments[$]));return j.join(" ")}for(var $=1,U=arguments,G=U.length,de=String(B).replace(r,function(fe){if(fe==="%%")return"%";if($>=G)return fe;switch(fe){case"%s":return String(U[$++]);case"%d":return Number(U[$++]);case"%j":try{return JSON.stringify(U[$++])}catch{return"[Circular]"}default:return fe}}),oe=U[$];$<G;oe=U[++$])v(oe)||!le(oe)?de+=" "+oe:de+=" "+u(oe);return de},e.deprecate=function(B,j){if(typeof ee.dist.process<"u"&&ee.dist.process.noDeprecation===!0)return B;if(typeof ee.dist.process>"u")return function(){return e.deprecate(B,j).apply(this,arguments)};var $=!1;function U(){if(!$){if(ee.dist.process.throwDeprecation)throw new Error(j);ee.dist.process.traceDeprecation?console.trace(j):console.error(j),$=!0}return B.apply(this,arguments)}return U};var i={},a=/^$/;if(ee.dist.process.env.NODE_DEBUG){var s=ee.dist.process.env.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+s+"$","i")}e.debuglog=function(B){if(B=B.toUpperCase(),!i[B])if(a.test(B)){var j=ee.dist.process.pid;i[B]=function(){var $=e.format.apply(e,arguments);console.error("%s %d: %s",B,j,$)}}else i[B]=function(){};return i[B]};function u(B,j){var $={seen:[],stylize:c};return arguments.length>=3&&($.depth=arguments[2]),arguments.length>=4&&($.colors=arguments[3]),R(j)?$.showHidden=j:j&&e._extend($,j),ie($.showHidden)&&($.showHidden=!1),ie($.depth)&&($.depth=2),ie($.colors)&&($.colors=!1),ie($.customInspect)&&($.customInspect=!0),$.colors&&($.stylize=d),h($,B,$.depth)}e.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function d(B,j){var $=u.styles[j];return $?"\x1B["+u.colors[$][0]+"m"+B+"\x1B["+u.colors[$][1]+"m":B}function c(B,j){return B}function l(B){var j={};return B.forEach(function($,U){j[$]=!0}),j}function h(B,j,$){if(B.customInspect&&j&&m(j.inspect)&&j.inspect!==e.inspect&&!(j.constructor&&j.constructor.prototype===j)){var U=j.inspect($,B);return H(U)||(U=h(B,U,$)),U}var G=g(B,j);if(G)return G;var de=Object.keys(j),oe=l(de);if(B.showHidden&&(de=Object.getOwnPropertyNames(j)),ve(j)&&(de.indexOf("message")>=0||de.indexOf("description")>=0))return b(j);if(de.length===0){if(m(j)){var fe=j.name?": "+j.name:"";return B.stylize("[Function"+fe+"]","special")}if(he(j))return B.stylize(RegExp.prototype.toString.call(j),"regexp");if(Ee(j))return B.stylize(Date.prototype.toString.call(j),"date");if(ve(j))return b(j)}var Se="",Be=!1,Me=["{","}"];if(E(j)&&(Be=!0,Me=["[","]"]),m(j)){var z=j.name?": "+j.name:"";Se=" [Function"+z+"]"}if(he(j)&&(Se=" "+RegExp.prototype.toString.call(j)),Ee(j)&&(Se=" "+Date.prototype.toUTCString.call(j)),ve(j)&&(Se=" "+b(j)),de.length===0&&(!Be||j.length==0))return Me[0]+Se+Me[1];if($<0)return he(j)?B.stylize(RegExp.prototype.toString.call(j),"regexp"):B.stylize("[Object]","special");B.seen.push(j);var J;return Be?J=_(B,j,$,oe,de):J=de.map(function(ge){return T(B,j,$,oe,ge,Be)}),B.seen.pop(),k(J,Se,Me)}function g(B,j){if(ie(j))return B.stylize("undefined","undefined");if(H(j)){var $="'"+JSON.stringify(j).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return B.stylize($,"string")}if(S(j))return B.stylize(""+j,"number");if(R(j))return B.stylize(""+j,"boolean");if(v(j))return B.stylize("null","null")}function b(B){return"["+Error.prototype.toString.call(B)+"]"}function _(B,j,$,U,G){for(var de=[],oe=0,fe=j.length;oe<fe;++oe)ne(j,String(oe))?de.push(T(B,j,$,U,String(oe),!0)):de.push("");return G.forEach(function(Se){Se.match(/^\d+$/)||de.push(T(B,j,$,U,Se,!0))}),de}function T(B,j,$,U,G,de){var oe,fe,Se;if(Se=Object.getOwnPropertyDescriptor(j,G)||{value:j[G]},Se.get?Se.set?fe=B.stylize("[Getter/Setter]","special"):fe=B.stylize("[Getter]","special"):Se.set&&(fe=B.stylize("[Setter]","special")),ne(U,G)||(oe="["+G+"]"),fe||(B.seen.indexOf(Se.value)<0?(v($)?fe=h(B,Se.value,null):fe=h(B,Se.value,$-1),fe.indexOf(`
|
|
2
2
|
`)>-1&&(de?fe=fe.split(`
|
|
3
3
|
`).map(function(Be){return" "+Be}).join(`
|
|
4
4
|
`).slice(2):fe=`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { e as yO } from "./events-
|
|
1
|
+
import { co as oO, cp as aO, cq as sO, cr as uO, cs as fO, ct as cO, cu as lO, U as We, av as Oi, au as ct, cv as vh, cn as Fa, ax as $n, cw as Qi, cx as dO, cm as hO, cy as om, cz as Oy, cA as pO, cB as gO, cC as ot, ab as Py } from "./index-BAhBSTHO.mjs";
|
|
2
|
+
import { e as yO } from "./events-jOp8E97m.mjs";
|
|
3
3
|
var zd = { exports: {} };
|
|
4
4
|
(function(e, t) {
|
|
5
5
|
t = e.exports = oO(), t.Stream = t, t.Readable = t, t.Writable = aO(), t.Duplex = sO(), t.Transform = uO(), t.PassThrough = fO(), t.finished = cO(), t.pipeline = lO();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../src/config/mainnet/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAE1E,eAAO,MAAM,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../src/config/mainnet/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAE1E,eAAO,MAAM,cAAc,EAAE,YAy3B5B,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,qBAwkBpC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../src/config/testnet/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAE1E,eAAO,MAAM,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../src/config/testnet/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAE1E,eAAO,MAAM,cAAc,EAAE,YAkc5B,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,qBA+IpC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Chain } from '@wormhole-foundation/sdk';
|
|
2
|
+
import { WalletData } from '../store/wallet';
|
|
3
|
+
export type WalletCompatibilityResult = {
|
|
4
|
+
isCompatible: boolean;
|
|
5
|
+
warning?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const useWalletCompatibility: ({ sendingWallet, receivingWallet, sourceChain, destChain, routes, }: {
|
|
8
|
+
sendingWallet: WalletData;
|
|
9
|
+
receivingWallet: WalletData;
|
|
10
|
+
sourceChain?: Chain;
|
|
11
|
+
destChain?: Chain;
|
|
12
|
+
routes: string[];
|
|
13
|
+
}) => WalletCompatibilityResult;
|
|
14
|
+
//# sourceMappingURL=useWalletCompatibility.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWalletCompatibility.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWalletCompatibility.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG7C,MAAM,MAAM,yBAAyB,GAAG;IACtC,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,sBAAsB,wEAMhC;IACD,aAAa,EAAE,UAAU,CAAC;IAC1B,eAAe,EAAE,UAAU,CAAC;IAC5B,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB,KAAG,yBA6BH,CAAC"}
|
package/lib/src/utils/index.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export declare const calculateUSDPrice: (amount?: sdkAmount.Amount | number, tok
|
|
|
45
45
|
* // => false
|
|
46
46
|
*/
|
|
47
47
|
export declare const isEmptyObject: (value: object | null | undefined) => boolean;
|
|
48
|
-
export declare const
|
|
48
|
+
export declare const getTokenExplorerUrl: (chain: Chain, address: string) => string;
|
|
49
49
|
export declare const isFrankensteinToken: (token: TokenConfig, chain: Chain) => boolean;
|
|
50
50
|
export declare const isWrappedToken: (token: TokenConfig, chain: Chain) => boolean;
|
|
51
51
|
export declare const isCanonicalToken: (token: TokenConfig, chain: Chain) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAG7C,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EACL,KAAK,EAEL,MAAM,IAAI,SAAS,EACpB,MAAM,0BAA0B,CAAC;AAGlC,eAAO,MAAM,YAAY,IAAI,CAAC;AAC9B,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAErC,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAGtD;AAMD,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,SAAI,GAAG,MAAM,CAO5D;AAED,wBAAgB,UAAU,CACxB,MAAM,EAAE,MAAM,EACd,UAAU,SAAI,EACd,UAAU,SAAI,GACb,MAAM,CAIR;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAQpE;AAED,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,OAAO,GAAG,SAAS,EAC/B,OAAO,EAAE,MAAM,GACd,MAAM,CAQR;AAED,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,GAAG,MAAM,GACvB,WAAW,GAAG,SAAS,CAEzB;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,WAAW,CAIxD;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,WAAW,GAAG,WAAW,CAe/D;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAG7D;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,GAAG,SAAS,CAOtE;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM,CAwBvE;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,WAAW,CAIrD;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,GAAG,MAAM,CAwBzE;AAyBD,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,WAY/C;AAED,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,UAEpC;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,WASnD;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS,CAMtD;AAED,wBAAsB,KAAK,CAAC,OAAO,EAAE,MAAM,oBAE1C;AAED,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,EACZ,SAAS,CAAC,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,UAuBjB;AAED,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,WAE1D;AAED,eAAO,MAAM,UAAU,WAAY,WAAW,EAAE,SAAS,KAAK,kBAa7D,CAAC;AAEF,eAAO,MAAM,aAAa,gBACX,WAAW,SACjB,WAAW,KACjB,MAAM,GAAG,SAMX,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,MAAM,GAAG,SAAS,KAAG,MAaxD,CAAC;AAEF,eAAO,MAAM,oBAAoB,YACtB,SAAS,CAAC,MAAM,GAAG,MAAM,gBACpB,WAAW,GAAG,IAAI,UACxB,WAAW,KAClB,MAAM,GAAG,SAaX,CAAC;AAEF,eAAO,MAAM,iBAAiB,YACnB,SAAS,CAAC,MAAM,GAAG,MAAM,gBACpB,WAAW,GAAG,IAAI,UACxB,WAAW,KAClB,MAEF,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,aAAa,UAAW,MAAM,GAAG,IAAI,GAAG,SAAS,YAa7D,CAAC;AAEF,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAG7C,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EACL,KAAK,EAEL,MAAM,IAAI,SAAS,EACpB,MAAM,0BAA0B,CAAC;AAGlC,eAAO,MAAM,YAAY,IAAI,CAAC;AAC9B,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAErC,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAGtD;AAMD,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,SAAI,GAAG,MAAM,CAO5D;AAED,wBAAgB,UAAU,CACxB,MAAM,EAAE,MAAM,EACd,UAAU,SAAI,EACd,UAAU,SAAI,GACb,MAAM,CAIR;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAQpE;AAED,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,OAAO,GAAG,SAAS,EAC/B,OAAO,EAAE,MAAM,GACd,MAAM,CAQR;AAED,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,GAAG,MAAM,GACvB,WAAW,GAAG,SAAS,CAEzB;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,WAAW,CAIxD;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,WAAW,GAAG,WAAW,CAe/D;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAG7D;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,GAAG,SAAS,CAOtE;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM,CAwBvE;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,WAAW,CAIrD;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,GAAG,MAAM,CAwBzE;AAyBD,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,WAY/C;AAED,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,UAEpC;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,WASnD;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS,CAMtD;AAED,wBAAsB,KAAK,CAAC,OAAO,EAAE,MAAM,oBAE1C;AAED,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,EACZ,SAAS,CAAC,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,UAuBjB;AAED,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,WAE1D;AAED,eAAO,MAAM,UAAU,WAAY,WAAW,EAAE,SAAS,KAAK,kBAa7D,CAAC;AAEF,eAAO,MAAM,aAAa,gBACX,WAAW,SACjB,WAAW,KACjB,MAAM,GAAG,SAMX,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,MAAM,GAAG,SAAS,KAAG,MAaxD,CAAC;AAEF,eAAO,MAAM,oBAAoB,YACtB,SAAS,CAAC,MAAM,GAAG,MAAM,gBACpB,WAAW,GAAG,IAAI,UACxB,WAAW,KAClB,MAAM,GAAG,SAaX,CAAC;AAEF,eAAO,MAAM,iBAAiB,YACnB,SAAS,CAAC,MAAM,GAAG,MAAM,gBACpB,WAAW,GAAG,IAAI,UACxB,WAAW,KAClB,MAEF,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,aAAa,UAAW,MAAM,GAAG,IAAI,GAAG,SAAS,YAa7D,CAAC;AAEF,eAAO,MAAM,mBAAmB,UAAW,KAAK,WAAW,MAAM,WAiBhE,CAAC;AAMF,eAAO,MAAM,mBAAmB,UAAW,WAAW,SAAS,KAAK,YA8BnE,CAAC;AAEF,eAAO,MAAM,cAAc,UAAW,WAAW,SAAS,KAAK,YAE9D,CAAC;AAIF,eAAO,MAAM,gBAAgB,UAAW,WAAW,SAAS,KAAK,YAEhE,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,WAAW,YAE9C,CAAC;AAEF,eAAO,MAAM,mBAAmB,OAAQ,MAAM,KAAG,MAQhD,CAAC;AAGF,eAAO,MAAM,oBAAoB,OAAQ,MAAM,KAAG,MAqBjD,CAAC;AAEF,eAAO,MAAM,cAAc,YAAa,MAAM,WAU7C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aptos.d.ts","sourceRoot":"","sources":["../../../../src/utils/wallet/aptos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AAE5D,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"aptos.d.ts","sourceRoot":"","sources":["../../../../src/utils/wallet/aptos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AAE5D,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAGlE,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EACL,wBAAwB,EACxB,WAAW,EACZ,MAAM,gCAAgC,CAAC;AAIxC,wBAAgB,YAAY,gCAY3B;AAED,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,wBAAwB,CAAC,OAAO,EAAE,WAAW,CAAC,EACvD,MAAM,EAAE,MAAM,GAAG,SAAS,gJA6B3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/views/v2/Bridge/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/views/v2/Bridge/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAkG5D;;;GAGG;AACH,QAAA,MAAM,MAAM,yBA6ZX,CAAC;AAEF,eAAe,MAAM,CAAC"}
|