@dcl/explore-site 0.0.1-24138829632.commit-0946e16
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/assets/HomePage-CbNrtXMa.js +3 -0
- package/assets/QueryClientProvider-DUSjZ_J_.js +2 -0
- package/assets/RoobertPRO-Bold-DDyOqNrI.woff2 +0 -0
- package/assets/RoobertPRO-Bold-zQ2qeH97.ttf +0 -0
- package/assets/SensorsRounded-Ci-z6t1A.js +15 -0
- package/assets/___vite-browser-external_commonjs-proxy-BqV5D26a.js +1 -0
- package/assets/__federation_expose_App-BckrSixU.js +1 -0
- package/assets/__federation_fn_import-WDa0gv1I.js +1 -0
- package/assets/__federation_shared_@dcl/hooks-BmGk-LAU.js +535 -0
- package/assets/__federation_shared_@dcl/schemas-FcJQcJ28.js +1 -0
- package/assets/__federation_shared_@emotion/react-oi_M7gMJ.js +1 -0
- package/assets/__federation_shared_@emotion/styled-YrTPT9q1.js +1 -0
- package/assets/__federation_shared_@reduxjs/toolkit-R1Ell7gI.js +1 -0
- package/assets/__federation_shared_decentraland-ui2-D5N7yacO.js +357 -0
- package/assets/__federation_shared_react-B3tlNTLg.js +1 -0
- package/assets/__federation_shared_react-dom-Dsn5WX9N.js +1 -0
- package/assets/__federation_shared_react-redux-DMak3BVq.js +13 -0
- package/assets/__federation_shared_react-router-dom-CSW28ZSI.js +49 -0
- package/assets/__federation_shared_viem-DsDw7lUr.js +2 -0
- package/assets/__federation_shared_wagmi-h3zhLZbR.js +17 -0
- package/assets/__vite-optional-peer-dep_lottie-react_decentraland-ui2-BIHI7g3E.js +1 -0
- package/assets/_commonjsHelpers-C4iS2aBk.js +1 -0
- package/assets/add-Ccyt7YRh.js +15 -0
- package/assets/all-wallets-BIOtzF11.js +6 -0
- package/assets/app-store-BqACXnTM.js +17 -0
- package/assets/apple-zIEkvR7h.js +18 -0
- package/assets/arrow-bottom-CxQ54WH1.js +8 -0
- package/assets/arrow-bottom-circle-BjCA11Rn.js +11 -0
- package/assets/arrow-left-CsFQBdFD.js +8 -0
- package/assets/arrow-right-jT5LSgqq.js +8 -0
- package/assets/arrow-top-CA_1oaHw.js +8 -0
- package/assets/auto-track-UOggKKzv.js +1 -0
- package/assets/bank-81NjtLlm.js +14 -0
- package/assets/basic-CvR9b359.js +2128 -0
- package/assets/brotli_wasm_bg-NfWIZley.wasm +0 -0
- package/assets/browser-BjIqaPVu.js +14 -0
- package/assets/card-BJomEEgV.js +14 -0
- package/assets/ccip-DotuofV0.js +1 -0
- package/assets/checkmark-Cz0VZAkr.js +11 -0
- package/assets/checkmark-bold-blkVLUov.js +8 -0
- package/assets/chevron-bottom-ClawczSo.js +8 -0
- package/assets/chevron-left-DfJ9r4mv.js +8 -0
- package/assets/chevron-right-CrxmyW0K.js +8 -0
- package/assets/chevron-top-BVIfb-H3.js +8 -0
- package/assets/chrome-store-Cb5xVI0B.js +61 -0
- package/assets/clock-Bx-Kyhh-.js +8 -0
- package/assets/close-DOjpWTZi.js +8 -0
- package/assets/coinPlaceholder-BqONZM6Q.js +8 -0
- package/assets/compass-ByyIpxD6.js +8 -0
- package/assets/copy-BOu2-Xgv.js +15 -0
- package/assets/core-BGxUaCGc.js +907 -0
- package/assets/create-submenu-Bu20F8-Z.webp +0 -0
- package/assets/createClient-CSnZgvsb.js +1 -0
- package/assets/cursor-BqYz2L6D.js +3 -0
- package/assets/cursor-transparent-CWCRGDtx.js +12 -0
- package/assets/custom-welcome-background-BxlFQma9.webp +0 -0
- package/assets/defineChain-7I0Ce1VT.js +1 -0
- package/assets/desktop-Cd_vx0kT.js +9 -0
- package/assets/disconnect-D5AICJhj.js +8 -0
- package/assets/discord-26Vqbq7c.js +17 -0
- package/assets/emotion-react.browser.esm-5OnyV0Sh.js +8 -0
- package/assets/emotion-use-insertion-effect-with-fallbacks.browser.esm-B75LdcJS.js +1 -0
- package/assets/etherscan--DKVcYrP.js +6 -0
- package/assets/exclamation-triangle-DOsYf3fQ.js +4 -0
- package/assets/explore-submenu-BFVuYMi9.webp +0 -0
- package/assets/extension-DEaO3Zvk.js +8 -0
- package/assets/external-link-DcpG6wpM.js +8 -0
- package/assets/facebook-ByV0OclL.js +26 -0
- package/assets/farcaster-DI6fsEyh.js +12 -0
- package/assets/filters-Djn1aDVs.js +8 -0
- package/assets/github-B3p0LLP5.js +18 -0
- package/assets/google-ae7qga4R.js +18 -0
- package/assets/governance-submenu-VTIKvCIL.webp +0 -0
- package/assets/help-circle-BmzUA_Be.js +12 -0
- package/assets/hooks.module-Dz_XB4AG.js +1 -0
- package/assets/id-2hYEZqNH.js +12 -0
- package/assets/image-mDqi4ffo.js +4 -0
- package/assets/index-9zCVakoE.js +1 -0
- package/assets/index-BKLT1eit.js +2 -0
- package/assets/index-Biwg5bHN.js +1 -0
- package/assets/index-BzXoRVC1.js +1 -0
- package/assets/index-C05H8NDX.js +1 -0
- package/assets/index-CGCGB-at.js +1 -0
- package/assets/index-CNMKbeE1.js +5 -0
- package/assets/index-CVdhIPEJ.js +1 -0
- package/assets/index-CdOcIHYV.js +395 -0
- package/assets/index-CdrMQoR6.js +1 -0
- package/assets/index-Ctl4brHr.js +2 -0
- package/assets/index-D6O4pjzC.js +12 -0
- package/assets/index-D6ZMQedT.js +1 -0
- package/assets/index-DGVKdsht.js +1 -0
- package/assets/index-D_fJMF1A.js +1 -0
- package/assets/index-Dy0yjznp.js +1 -0
- package/assets/index-Dy0yjznp__bundled.js +9 -0
- package/assets/index-JFBsW0Hp.js +1 -0
- package/assets/index-OQ3TYt4p.js +7 -0
- package/assets/index-VfkM29PH.js +1 -0
- package/assets/index-VfkM29PH__bundled.js +24 -0
- package/assets/index-nibyPLVP.js +1 -0
- package/assets/index-pEp_vRda.js +8 -0
- package/assets/index.es-D_4_VpXc.js +38 -0
- package/assets/index.umd-6zndRFhB.js +1 -0
- package/assets/info-Bhf5PLdi.js +3 -0
- package/assets/info-circle-CZ5iih32.js +12 -0
- package/assets/inherits_browser-BlmhoU4v.js +1 -0
- package/assets/is-plan-event-enabled-DeNtQvA5.js +1 -0
- package/assets/jsx-runtime-B1l0k91v.js +1 -0
- package/assets/jsx-runtime-B1l0k91v__bundled.js +9 -0
- package/assets/learn-submenu-sfxVP5Db.webp +0 -0
- package/assets/lightbulb-CA3e26a0.js +3 -0
- package/assets/localBatchGatewayRequest-vExM5jac.js +1 -0
- package/assets/logo-pattern-D4X-bvlg.webp +0 -0
- package/assets/mail-BktjMbEk.js +8 -0
- package/assets/man-default1-BEO13leF.png +0 -0
- package/assets/marketplace-submenu-CixWTv8_.webp +0 -0
- package/assets/mobile-zfEM0JzU.js +9 -0
- package/assets/more-Dg45xuT9.js +11 -0
- package/assets/native-CJ5et6AR.js +1 -0
- package/assets/network-placeholder-duQhExzj.js +14 -0
- package/assets/nftPlaceholder-C3kMYu-p.js +8 -0
- package/assets/off-Cz636L92.js +8 -0
- package/assets/play-store-Cch0eiCp.js +32 -0
- package/assets/plus-orAhHwVf.js +13 -0
- package/assets/preload-helper-BrYcp76J.js +1 -0
- package/assets/qr-code-7plug-hj.js +6 -0
- package/assets/recycle-horizontal-B6ivY9Sz.js +9 -0
- package/assets/refresh-CqfvjhXq.js +8 -0
- package/assets/remoteEntry.js +1 -0
- package/assets/reown-logo-DGoAljI9.js +12 -0
- package/assets/reselect-BfUrOuXx.js +1 -0
- package/assets/rich-text-react-renderer_decentraland-ui2-BIHI7g3E.js +1 -0
- package/assets/search-nNK2K8mD.js +8 -0
- package/assets/secp256k1-D6s48BOl.js +1 -0
- package/assets/send-BPz2SBvc.js +15 -0
- package/assets/swapHorizontal-TvVHlgjl.js +8 -0
- package/assets/swapHorizontalBold-BTw_LG1-.js +8 -0
- package/assets/swapHorizontalMedium-C3jJnFs_.js +16 -0
- package/assets/swapHorizontalRoundedBold-nTFwdVeT.js +8 -0
- package/assets/swapVertical-CHKvPR_7.js +8 -0
- package/assets/telegram-C552IoSr.js +16 -0
- package/assets/three-dots-Nyfa4nYF.js +5 -0
- package/assets/top_background-Bnd2vX_F.webp +0 -0
- package/assets/tslib.es6-DbvBTznf.js +1 -0
- package/assets/twitch-7SJKGXSa.js +18 -0
- package/assets/twitterIcon-BBg9ypIU.js +6 -0
- package/assets/uid-CX4a_w4r.js +44 -0
- package/assets/verify-BwQ9FKM1.js +8 -0
- package/assets/verify-filled-BAdDAZxZ.js +8 -0
- package/assets/w3m-modal-BqXXR9rX.js +642 -0
- package/assets/wallet-DJsa1d3M.js +8 -0
- package/assets/wallet-placeholder-DPIkQ5vM.js +14 -0
- package/assets/walletconnect-osdnzzVU.js +30 -0
- package/assets/warning-circle-BQ9uHGTL.js +12 -0
- package/assets/webSocket-CIn5Ftst.js +3 -0
- package/assets/x-5oycQ-0v.js +12 -0
- package/dcl-logo.svg +1 -0
- package/index.html +41 -0
- package/package.json +21 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{aD as we,bR as ie,bS as q,bT as $,bU as Ce,bV as Fe,bW as nn,B as H,bX as sn,aR as Je,aK as B,f as Ye,bY as an,bZ as rn,b_ as on,b$ as cn,c0 as un,n as O,c1 as L,ak as p,ah as M,c2 as fn,c3 as dn,c4 as ln,c5 as Qe,c6 as Xe,aF as W,c7 as Le,S as et,T as tt,c8 as mn,R as $e,c9 as hn,V as De,ca as pn,cb as gn,cc as ee,J as Ge,cd as yn,v as K,ce as Ee,b as P,cf as nt,cg as bn,ch as Z,ag as C,ci as Me,bF as Se,bH as ce,bI as st,cj as xn,x as V,ao as Be,y as S,ck as at,br as rt,al as ke,aS as ae,cl as wn,cm as se,aU as En,cn as In,co as Tn,cp as vn,cq as Pn,cr as An,cs as Cn,ax as U,af as z,ay as re,a as ot,j as it,ai as ue,bu as Fn,i as fe,ct as Sn,cu as Bn,cv as kn,cw as Rn,cx as _n,aE as Nn,bs as zn,bt as qn,cy as Un,cz as Ln,Y as Re,a2 as $n,a3 as ct,ac as Dn,cA as Ie,a6 as ut,cB as Gn,s as Mn,bv as Hn,bw as On,aQ as Vn,aN as jn,bd as Wn,cC as Kn,w as ft,bL as Zn,z as _e,bG as Jn,c as Yn,bz as Qn,aj as He,cD as Xn,cE as es,cF as ts,cG as dt,u as ns,bJ as lt,cH as mt,cI as ss,bC as as,bB as rs,bD as os,ba as is,aX as cs,cJ as us,cK as fs,cL as ds,cM as Oe,cN as ls}from"./uid-CX4a_w4r.js";import{eC as Ao,aO as Co,eD as Fo,eE as So,m as Bo,l as ko,eF as Ro,aI as _o,aL as No,aM as zo,o as qo,p as Uo,A as Lo,f9 as $o,aZ as Do,aY as Go,eY as Mo,bA as Ho,eK as Oo,a_ as Vo,at as jo,b4 as Wo,eL as Ko,eM as Zo,eN as Jo,cO as Yo,eO as Qo,av as Xo,aw as ei,eP as ti,eQ as ni,b0 as si,eZ as ai,eX as ri,e$ as oi,fb as ii,H as ci,f0 as ui,eT as fi,be as di,f1 as li,f2 as mi,eG as hi,eH as pi,U as gi,cP as yi,I as bi,eU as xi,eI as wi,fe as Ei,cQ as Ii,eV as Ti,cR as vi,cS as Pi,bf as Ai,cT as Ci,ff as Fi,bh as Si,fc as Bi,cU as ki,cV as Ri,fg as _i,b8 as Ni,b9 as zi,e_ as qi,bg as Ui,aT as Li,f3 as $i,f4 as Di,f5 as Gi,bi as Mi,b5 as Hi,f7 as Oi,bc as Vi,bb as ji,f8 as Wi,bQ as Ki,eR as Zi,eW as Ji,eS as Yi,bl as Qi,cX as Xi,fa as ec,b3 as tc,bj as nc,fd as sc,bn as ac,bp as rc,f6 as oc,b7 as ic,a$ as cc,aW as uc,cY as fc,cZ as dc,b1 as lc,b2 as mc,b6 as hc,c_ as pc,by as gc,bm as yc,ft as bc,fm as xc,fn as wc,fo as Ec,fv as Ic,fp as Tc,fj as vc,d as Pc,fx as Ac,fy as Cc,fA as Fc,fB as Sc,d4 as Bc,fJ as kc,e as Rc,ar as _c,d2 as Nc,c$ as zc,d0 as qc,d3 as Uc,aq as Lc,as as $c,d1 as Dc,fK as Gc,fL as Mc,bo as Hc,bq as Oc,fM as Vc,fq as jc,fr as Wc,k as Kc,aA as Zc,aJ as Jc,fF as Yc,t as Qc,fF as Xc,bN as eu,fG as tu,fH as nu,au as su,fw as au,fs as ru,dh as ou,di as iu,dj as cu,dk as uu,dl as fu,dm as du,dn as lu,d6 as mu,dp as hu,dq as pu,dr as gu,ds as yu,dt as bu,du as xu,dv as wu,dw as Eu,dx as Iu,dy as Tu,d7 as vu,dz as Pu,dA as Au,dB as Cu,d8 as Fu,d9 as Su,da as Bu,db as ku,dc as Ru,dd as _u,d5 as Nu,de as zu,df as qu,dg as Uu,dO as Lu,dP as $u,dQ as Du,dR as Gu,dS as Mu,dT as Hu,dU as Ou,dD as Vu,dV as ju,dW as Wu,dX as Ku,dY as Zu,dZ as Ju,d_ as Yu,d$ as Qu,e0 as Xu,e1 as ef,e2 as tf,dE as nf,e3 as sf,e4 as af,dF as rf,dG as of,dH as cf,dI as uf,dJ as ff,dK as df,dC as lf,dL as mf,dM as hf,dN as pf,eh as gf,ei as yf,ej as bf,ek as xf,el as wf,em as Ef,en as If,e6 as Tf,eo as vf,ep as Pf,eq as Af,er as Cf,es as Ff,et as Sf,eu as Bf,ev as kf,ew as Rf,ex as _f,e7 as Nf,ey as zf,ez as qf,eA as Uf,e8 as Lf,e9 as $f,ea as Df,eb as Gf,ec as Mf,ed as Hf,e5 as Of,ee as Vf,ef as jf,eg as Wf,an as Kf,fu as Zf,fk as Jf,cW as Yf,fh as Qf,fI as Xf,fC as ed,bP as td,eJ as nd,fD as sd,fl as ad,az as rd,fi as od,fE as id,aJ as cd,fF as ud,fE as fd,t as dd,fF as ld,fz as md,aq as hd,as as pd,bO as gd,eB as yd,aV as bd}from"./uid-CX4a_w4r.js";import{c as ht,e as pt,p as ms,v as hs,u as ps,h as gt,w as gs,a as Te,k as ys,b as yt,d as bs,f as bt,g as xt,i as wt,j as Et,l as Ne,s as It,m as Tt,n as vt,o as Pt,q as At,r as Ct,t as xs,x as ws,y as Es,z as Is,A as Ts,B as vs,C as Ps,D as As,E as Cs,F as Fs,G as Ss,H as Bs,I as ks,J as Rs,K as _s,L as Ft,M as Ns,N as zs,O as qs,P as Us,Q as Ls,R as $s,S as Ds,T as Gs,U as Ms,V as Hs,W as Os,X as Vs,Y as js,Z as Ws,_ as Ks}from"./webSocket-CIn5Ftst.js";import{a4 as wd,a5 as Ed,a6 as Id,a7 as Td,a8 as vd,a0 as Pd,a1 as Ad,a9 as Cd,aa as Fd,$ as Sd,a3 as Bd,ad as kd,ad as Rd,ae as _d,a2 as Nd,ab as zd,ac as qd}from"./webSocket-CIn5Ftst.js";import{e as Zs,p as St,c as ze}from"./createClient-CSnZgvsb.js";import{a as Ld,n as $d,r as Dd,s as Gd,z as Md}from"./createClient-CSnZgvsb.js";import{d as Od,e as Vd,b as jd}from"./localBatchGatewayRequest-vExM5jac.js";import{ccipRequest as Kd,ccipRequest as Zd,offchainLookup as Jd,offchainLookupAbiItem as Yd,offchainLookupSignature as Qd}from"./ccip-DotuofV0.js";import{d as el,e as tl}from"./defineChain-7I0Ce1VT.js";import{secp256k1 as qe}from"./secp256k1-D6s48BOl.js";function Js(e){if(!e||e.length===0)return[];const t=[];for(const n of e){const{chainId:s,nonce:a,...r}=n,o=n.address;t.push([s?we(s):"0x",o,a?we(a):"0x",...J({},r)])}return t}function Bt(e){const{authorizationList:t}=e;if(t)for(const n of t){const{chainId:s}=n,a=n.address;if(!q(a))throw new $({address:a});if(s<0)throw new ie({chainId:s})}de(e)}function kt(e){const{blobVersionedHashes:t}=e;if(t){if(t.length===0)throw new sn;for(const n of t){const s=Je(n),a=B(Ye(n,0,1));if(s!==32)throw new an({hash:n,size:s});if(a!==rn)throw new on({hash:n,version:a})}}de(e)}function de(e){const{chainId:t,maxPriorityFeePerGas:n,maxFeePerGas:s,to:a}=e;if(t<=0)throw new ie({chainId:t});if(a&&!q(a))throw new $({address:a});if(s&&s>Ce)throw new Fe({maxFeePerGas:s});if(n&&s&&n>s)throw new nn({maxFeePerGas:s,maxPriorityFeePerGas:n})}function Rt(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:s,maxFeePerGas:a,to:r}=e;if(t<=0)throw new ie({chainId:t});if(r&&!q(r))throw new $({address:r});if(n||a)throw new H("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(s&&s>Ce)throw new Fe({maxFeePerGas:s})}function _t(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:s,maxFeePerGas:a,to:r}=e;if(r&&!q(r))throw new $({address:r});if(typeof t<"u"&&t<=0)throw new ie({chainId:t});if(n||a)throw new H("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(s&&s>Ce)throw new Fe({maxFeePerGas:s})}function le(e){if(!e||e.length===0)return[];const t=[];for(let n=0;n<e.length;n++){const{address:s,storageKeys:a}=e[n];for(let r=0;r<a.length;r++)if(a[r].length-2!==64)throw new cn({storageKey:a[r]});if(!q(s,{strict:!1}))throw new $({address:s});t.push([s,a])}return t}function Ys(e,t){const n=un(e);return n==="eip1559"?ea(e,t):n==="eip2930"?ta(e,t):n==="eip4844"?Xs(e,t):n==="eip7702"?Qs(e,t):na(e,t)}function Qs(e,t){const{authorizationList:n,chainId:s,gas:a,nonce:r,to:o,value:i,maxFeePerGas:u,maxPriorityFeePerGas:c,accessList:l,data:d}=e;Bt(e);const m=le(l),f=Js(n);return O(["0x04",L([p(s),r?p(r):"0x",c?p(c):"0x",u?p(u):"0x",a?p(a):"0x",o??"0x",i?p(i):"0x",d??"0x",m,f,...J(e,t)])])}function Xs(e,t){const{chainId:n,gas:s,nonce:a,to:r,value:o,maxFeePerBlobGas:i,maxFeePerGas:u,maxPriorityFeePerGas:c,accessList:l,data:d}=e;kt(e);let m=e.blobVersionedHashes,f=e.sidecars;if(e.blobs&&(typeof m>"u"||typeof f>"u")){const E=typeof e.blobs[0]=="string"?e.blobs:e.blobs.map(b=>M(b)),v=e.kzg,T=fn({blobs:E,kzg:v});if(typeof m>"u"&&(m=dn({commitments:T})),typeof f>"u"){const b=ln({blobs:E,commitments:T,kzg:v});f=Qe({blobs:E,commitments:T,proofs:b})}}const g=le(l),h=[p(n),a?p(a):"0x",c?p(c):"0x",u?p(u):"0x",s?p(s):"0x",r??"0x",o?p(o):"0x",d??"0x",g,i?p(i):"0x",m??[],...J(e,t)],y=[],x=[],w=[];if(f)for(let E=0;E<f.length;E++){const{blob:v,commitment:T,proof:b}=f[E];y.push(v),x.push(T),w.push(b)}return O(["0x03",f?L([h,y,x,w]):L(h)])}function ea(e,t){const{chainId:n,gas:s,nonce:a,to:r,value:o,maxFeePerGas:i,maxPriorityFeePerGas:u,accessList:c,data:l}=e;de(e);const d=le(c),m=[p(n),a?p(a):"0x",u?p(u):"0x",i?p(i):"0x",s?p(s):"0x",r??"0x",o?p(o):"0x",l??"0x",d,...J(e,t)];return O(["0x02",L(m)])}function ta(e,t){const{chainId:n,gas:s,data:a,nonce:r,to:o,value:i,accessList:u,gasPrice:c}=e;Rt(e);const l=le(u),d=[p(n),r?p(r):"0x",c?p(c):"0x",s?p(s):"0x",o??"0x",i?p(i):"0x",a??"0x",l,...J(e,t)];return O(["0x01",L(d)])}function na(e,t){const{chainId:n=0,gas:s,data:a,nonce:r,to:o,value:i,gasPrice:u}=e;_t(e);let c=[r?p(r):"0x",u?p(u):"0x",s?p(s):"0x",o??"0x",i?p(i):"0x",a??"0x"];if(t){const l=(()=>{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(t.v===35n?0n:1n);if(n>0)return BigInt(n*2)+BigInt(35n+t.v-27n);const f=27n+(t.v===27n?0n:1n);if(t.v!==f)throw new Xe({v:t.v});return f})(),d=W(t.r),m=W(t.s);c=[...c,p(l),d==="0x00"?"0x":d,m==="0x00"?"0x":m]}else n>0&&(c=[...c,p(n),"0x","0x"]);return L(c)}function J(e,t){const n=t??e,{v:s,yParity:a}=n;if(typeof n.r>"u")return[];if(typeof n.s>"u")return[];if(typeof s>"u"&&typeof a>"u")return[];const r=W(n.r),o=W(n.s);return[typeof a=="number"?a?p(1):"0x":s===0n?"0x":s===1n?p(1):s===27n?"0x":p(1),r==="0x00"?"0x":r,o==="0x00"?"0x":o]}function Wr({chains:e,id:t}){return e.find(n=>n.id===t)}function Ve(e){let t;if(typeof e=="string")t=Le(e);else{const n=et(e),s=e.length;for(let a=0;a<s;a++){const r=e[a];if(!tt(r)){t=Le(r,n);break}}}if(!t)throw new mn({signature:e});return t}function Kr(e){let t;if(typeof e=="string")t=$e(e,{modifiers:De});else{const n=et(e),s=e.length;for(let a=0;a<s;a++){const r=e[a];if(!tt(r)){t=$e(r,{modifiers:De,structs:n});break}}}if(!t)throw new hn({param:e});return t}const sa=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Nt=Uint8Array.from(new Array(16).fill(0).map((e,t)=>t)),aa=Nt.map(e=>(9*e+5)%16),zt=(()=>{const n=[[Nt],[aa]];for(let s=0;s<4;s++)for(let a of n)a.push(a[s].map(r=>sa[r]));return n})(),qt=zt[0],Ut=zt[1],Lt=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(e=>Uint8Array.from(e)),ra=qt.map((e,t)=>e.map(n=>Lt[t][n])),oa=Ut.map((e,t)=>e.map(n=>Lt[t][n])),ia=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),ca=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function je(e,t,n,s){return e===0?t^n^s:e===1?t&n|~t&s:e===2?(t|~n)^s:e===3?t&s|n&~s:t^(n|~s)}const te=new Uint32Array(16);class ua extends gn{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:t,h1:n,h2:s,h3:a,h4:r}=this;return[t,n,s,a,r]}set(t,n,s,a,r){this.h0=t|0,this.h1=n|0,this.h2=s|0,this.h3=a|0,this.h4=r|0}process(t,n){for(let f=0;f<16;f++,n+=4)te[f]=t.getUint32(n,!0);let s=this.h0|0,a=s,r=this.h1|0,o=r,i=this.h2|0,u=i,c=this.h3|0,l=c,d=this.h4|0,m=d;for(let f=0;f<5;f++){const g=4-f,h=ia[f],y=ca[f],x=qt[f],w=Ut[f],E=ra[f],v=oa[f];for(let T=0;T<16;T++){const b=ee(s+je(f,r,i,c)+te[x[T]]+h,E[T])+d|0;s=d,d=c,c=ee(i,10)|0,i=r,r=b}for(let T=0;T<16;T++){const b=ee(a+je(g,o,u,l)+te[w[T]]+y,v[T])+m|0;a=m,m=l,l=ee(u,10)|0,u=o,o=b}}this.set(this.h1+i+l|0,this.h2+c+m|0,this.h3+d+a|0,this.h4+s+o|0,this.h0+r+u|0)}roundClean(){Ge(te)}destroy(){this.destroyed=!0,Ge(this.buffer),this.set(0,0,0,0,0)}}const fa=pn(()=>new ua),da=fa;function $t(e,t="hex"){const n=(()=>{if(typeof e=="string"){if(e.length>3&&e.length%2!==0)throw new yn(e);return K(e)}return e})(),s=Ee(n,{recursiveReadLimit:Number.POSITIVE_INFINITY});return Dt(s,t)}function Dt(e,t="hex"){if(e.bytes.length===0)return t==="hex"?M(e.bytes):e.bytes;const n=e.readByte();if(n<128&&e.decrementPosition(1),n<192){const a=We(e,n,128),r=e.readBytes(a);return t==="hex"?M(r):r}const s=We(e,n,192);return la(e,s,t)}function We(e,t,n){if(n===128&&t<128)return 1;if(t<=n+55)return t-n;if(t===n+55+1)return e.readUint8();if(t===n+55+2)return e.readUint16();if(t===n+55+3)return e.readUint24();if(t===n+55+4)return e.readUint32();throw new H("Invalid RLP prefix")}function la(e,t,n){const s=e.position,a=[];for(;e.position-s<t;)a.push(Dt(e,n));return a}function ma(e){return P(e)&&Je(e)===32}function ha(e){const t=nt(e,0,1);if(t==="0x04")return"eip7702";if(t==="0x03")return"eip4844";if(t==="0x02")return"eip1559";if(t==="0x01")return"eip2930";if(t!=="0x"&&B(t)>=192)return"legacy";throw new bn({serializedType:t})}function pa(e){const t=ha(e);return t==="eip1559"?ba(e):t==="eip2930"?xa(e):t==="eip4844"?ya(e):t==="eip7702"?ga(e):wa(e)}function ga(e){const t=me(e),[n,s,a,r,o,i,u,c,l,d,m,f,g]=t;if(t.length!==10&&t.length!==13)throw new Z({attributes:{chainId:n,nonce:s,maxPriorityFeePerGas:a,maxFeePerGas:r,gas:o,to:i,value:u,data:c,accessList:l,authorizationList:d,...t.length>9?{v:m,r:f,s:g}:{}},serializedTransaction:e,type:"eip7702"});const h={chainId:B(n),type:"eip7702"};return P(i)&&i!=="0x"&&(h.to=i),P(o)&&o!=="0x"&&(h.gas=C(o)),P(c)&&c!=="0x"&&(h.data=c),P(s)&&(h.nonce=s==="0x"?0:B(s)),P(u)&&u!=="0x"&&(h.value=C(u)),P(r)&&r!=="0x"&&(h.maxFeePerGas=C(r)),P(a)&&a!=="0x"&&(h.maxPriorityFeePerGas=C(a)),l.length!==0&&l!=="0x"&&(h.accessList=he(l)),d.length!==0&&d!=="0x"&&(h.authorizationList=Ea(d)),Bt(h),{...t.length===13?Y(t):void 0,...h}}function ya(e){const t=me(e),n=t.length===4,s=n?t[0]:t,a=n?t.slice(1):[],[r,o,i,u,c,l,d,m,f,g,h,y,x,w]=s,[E,v,T]=a;if(!(s.length===11||s.length===14))throw new Z({attributes:{chainId:r,nonce:o,maxPriorityFeePerGas:i,maxFeePerGas:u,gas:c,to:l,value:d,data:m,accessList:f,...s.length>9?{v:y,r:x,s:w}:{}},serializedTransaction:e,type:"eip4844"});const b={blobVersionedHashes:h,chainId:B(r),to:l,type:"eip4844"};return P(c)&&c!=="0x"&&(b.gas=C(c)),P(m)&&m!=="0x"&&(b.data=m),P(o)&&(b.nonce=o==="0x"?0:B(o)),P(d)&&d!=="0x"&&(b.value=C(d)),P(g)&&g!=="0x"&&(b.maxFeePerBlobGas=C(g)),P(u)&&u!=="0x"&&(b.maxFeePerGas=C(u)),P(i)&&i!=="0x"&&(b.maxPriorityFeePerGas=C(i)),f.length!==0&&f!=="0x"&&(b.accessList=he(f)),E&&v&&T&&(b.sidecars=Qe({blobs:E,commitments:v,proofs:T})),kt(b),{...s.length===14?Y(s):void 0,...b}}function ba(e){const t=me(e),[n,s,a,r,o,i,u,c,l,d,m,f]=t;if(!(t.length===9||t.length===12))throw new Z({attributes:{chainId:n,nonce:s,maxPriorityFeePerGas:a,maxFeePerGas:r,gas:o,to:i,value:u,data:c,accessList:l,...t.length>9?{v:d,r:m,s:f}:{}},serializedTransaction:e,type:"eip1559"});const g={chainId:B(n),type:"eip1559"};return P(i)&&i!=="0x"&&(g.to=i),P(o)&&o!=="0x"&&(g.gas=C(o)),P(c)&&c!=="0x"&&(g.data=c),P(s)&&(g.nonce=s==="0x"?0:B(s)),P(u)&&u!=="0x"&&(g.value=C(u)),P(r)&&r!=="0x"&&(g.maxFeePerGas=C(r)),P(a)&&a!=="0x"&&(g.maxPriorityFeePerGas=C(a)),l.length!==0&&l!=="0x"&&(g.accessList=he(l)),de(g),{...t.length===12?Y(t):void 0,...g}}function xa(e){const t=me(e),[n,s,a,r,o,i,u,c,l,d,m]=t;if(!(t.length===8||t.length===11))throw new Z({attributes:{chainId:n,nonce:s,gasPrice:a,gas:r,to:o,value:i,data:u,accessList:c,...t.length>8?{v:l,r:d,s:m}:{}},serializedTransaction:e,type:"eip2930"});const f={chainId:B(n),type:"eip2930"};return P(o)&&o!=="0x"&&(f.to=o),P(r)&&r!=="0x"&&(f.gas=C(r)),P(u)&&u!=="0x"&&(f.data=u),P(s)&&(f.nonce=s==="0x"?0:B(s)),P(i)&&i!=="0x"&&(f.value=C(i)),P(a)&&a!=="0x"&&(f.gasPrice=C(a)),c.length!==0&&c!=="0x"&&(f.accessList=he(c)),Rt(f),{...t.length===11?Y(t):void 0,...f}}function wa(e){const t=$t(e,"hex"),[n,s,a,r,o,i,u,c,l]=t;if(!(t.length===6||t.length===9))throw new Z({attributes:{nonce:n,gasPrice:s,gas:a,to:r,value:o,data:i,...t.length>6?{v:u,r:c,s:l}:{}},serializedTransaction:e,type:"legacy"});const d={type:"legacy"};if(P(r)&&r!=="0x"&&(d.to=r),P(a)&&a!=="0x"&&(d.gas=C(a)),P(i)&&i!=="0x"&&(d.data=i),P(n)&&(d.nonce=n==="0x"?0:B(n)),P(o)&&o!=="0x"&&(d.value=C(o)),P(s)&&s!=="0x"&&(d.gasPrice=C(s)),_t(d),t.length===6)return d;const m=P(u)&&u!=="0x"?C(u):0n;if(l==="0x"&&c==="0x")return m>0&&(d.chainId=Number(m)),d;const f=m,g=Number((f-35n)/2n);if(g>0)d.chainId=g;else if(f!==27n&&f!==28n)throw new Xe({v:f});return d.v=f,d.s=l,d.r=c,d.yParity=f%2n===0n?1:0,d}function me(e){return $t(`0x${e.slice(4)}`,"hex")}function he(e){const t=[];for(let n=0;n<e.length;n++){const[s,a]=e[n];if(!q(s,{strict:!1}))throw new $({address:s});t.push({address:s,storageKeys:a.map(r=>ma(r)?r:W(r))})}return t}function Ea(e){const t=[];for(let n=0;n<e.length;n++){const[s,a,r,o,i,u]=e[n];t.push({address:a,chainId:s==="0x"?0:B(s),nonce:r==="0x"?0:B(r),...Y([o,i,u])})}return t}function Y(e){const t=e.slice(-3),n=t[0]==="0x"||C(t[0])===0n?27n:28n;return{r:Me(t[1],{size:32}),s:Me(t[2],{size:32}),v:n,yParity:n===27n?0:1}}async function Gt(e,t){const{account:n=e.account,blockNumber:s,blockTag:a="latest",blobs:r,data:o,gas:i,gasPrice:u,maxFeePerBlobGas:c,maxFeePerGas:l,maxPriorityFeePerGas:d,to:m,value:f,...g}=t,h=n?V(n):void 0;try{Se(t);const x=(typeof s=="bigint"?p(s):void 0)||a,w=e.chain?.formatters?.transactionRequest?.format,v=(w||ce)({...st(g,{format:w}),account:h,blobs:r,data:o,gas:i,gasPrice:u,maxFeePerBlobGas:c,maxFeePerGas:l,maxPriorityFeePerGas:d,to:m,value:f},"createAccessList"),T=await e.request({method:"eth_createAccessList",params:[v,x]});return{accessList:T.accessList,gasUsed:BigInt(T.gasUsed)}}catch(y){throw xn(y,{...t,account:h,chain:e.chain})}}async function Ia(e){const t=ht(e,{method:"eth_newBlockFilter"}),n=await e.request({method:"eth_newBlockFilter"});return{id:n,request:t(n),type:"block"}}async function Mt(e,{address:t,args:n,event:s,events:a,fromBlock:r,strict:o,toBlock:i}={}){const u=a??(s?[s]:void 0),c=ht(e,{method:"eth_newFilter"});let l=[];u&&(l=[u.flatMap(f=>pt({abi:[f],eventName:f.name,args:n}))],s&&(l=l[0]));const d=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:typeof r=="bigint"?p(r):r,toBlock:typeof i=="bigint"?p(i):i,...l.length?{topics:l}:{}}]});return{abi:u,args:n,eventName:s?s.name:void 0,fromBlock:r,id:d,request:c(d),strict:!!o,toBlock:i,type:"event"}}async function Ht(e,t){const{abi:n,address:s,args:a,functionName:r,dataSuffix:o,...i}=t,u=Be({abi:n,args:a,functionName:r});try{return await S(e,at,"estimateGas")({data:`${u}${o?o.replace("0x",""):""}`,to:s,...i})}catch(c){const l=i.account?V(i.account):void 0;throw rt(c,{abi:n,address:s,args:a,docsPath:"/docs/contract/estimateContractGas",functionName:r,sender:l?.address})}}async function Ta(e){const t=await e.request({method:"eth_blobBaseFee"});return BigInt(t)}class va extends H{constructor({address:t}){super(`No EIP-712 domain found on contract "${t}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${t}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}async function Pa(e,t){const{address:n,factory:s,factoryData:a}=t;try{const[r,o,i,u,c,l,d]=await S(e,ke,"readContract")({abi:Aa,address:n,functionName:"eip712Domain",factory:s,factoryData:a});return{domain:{name:o,version:i,chainId:Number(u),verifyingContract:c,salt:l},extensions:d,fields:r}}catch(r){const o=r;throw o.name==="ContractFunctionExecutionError"&&o.cause.name==="ContractFunctionZeroDataError"?new va({address:n}):o}}const Aa=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];async function Ca(e,{filter:t}){const n=t.strict??!1,a=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(r=>ae(r));return t.abi?ms({abi:t.abi,logs:a,strict:n}):a}function Zr(e,t){if(e.length!==t.length)throw new wn({expectedLength:e.length,givenLength:t.length});const n=[];for(let s=0;s<e.length;s++){const a=e[s],r=t[s];n.push(Ot(a,r))}return O(n)}function Ot(e,t,n=!1){if(e==="address"){const o=t;if(!q(o))throw new $({address:o});return se(o.toLowerCase(),{size:n?32:null})}if(e==="string")return En(t);if(e==="bytes")return t;if(e==="bool")return se(In(t),{size:n?32:1});const s=e.match(Tn);if(s){const[o,i,u="256"]=s,c=Number.parseInt(u,10)/8;return p(t,{size:n?32:c,signed:i==="int"})}const a=e.match(vn);if(a){const[o,i]=a;if(Number.parseInt(i,10)!==(t.length-2)/2)throw new Pn({expectedSize:Number.parseInt(i,10),givenSize:(t.length-2)/2});return se(t,{dir:"right",size:n?32:null})}const r=e.match(An);if(r&&Array.isArray(t)){const[o,i]=r,u=[];for(let c=0;c<t.length;c++)u.push(Ot(i,t[c],!0));return u.length===0?"0x":O(u)}throw new Cn(e)}function Ke(e){return!e||typeof e!="object"||!("BYTES_PER_ELEMENT"in e)?!1:e.BYTES_PER_ELEMENT===1&&e.constructor.name==="Uint8Array"}function Jr(e){return e.opcode==="CREATE2"?Sa(e):Fa(e)}function Fa(e){const t=U(z(e.from));let n=U(e.nonce);return n[0]===0&&(n=new Uint8Array([])),z(`0x${re(L([t,n],"bytes")).slice(26)}`)}function Sa(e){const t=U(z(e.from)),n=se(Ke(e.salt)?e.salt:U(e.salt),{size:32}),s="bytecodeHash"in e?Ke(e.bytecodeHash)?e.bytecodeHash:U(e.bytecodeHash):re(e.bytecode,"bytes");return z(Ye(re(ot([U("0xff"),t,n,s])),12))}function Yr(e,t){const n=t||"hex",s=da(P(e,{strict:!1})?U(e):e);return n==="bytes"?s:we(s)}function Ba(e){return nt(e,-32)===Zs}function ka(e){return hs(e)}function Qr(e){if(!Ba(e))return{signature:e};const[t,n,s]=it([{type:"address"},{type:"bytes"},{type:"bytes"}],e);return{address:t,data:n,signature:s}}function Xr(e){if(!ka(e))return{signature:e};const{authorization:t,to:n,...s}=ps(e);return{authorization:{address:t.address,chainId:t.chainId,nonce:Number(t.nonce),r:p(t.r,{size:32}),s:p(t.s,{size:32}),yParity:t.yParity},...n?{address:n}:{},...s}}async function Ra({message:e,signature:t}){return ue({hash:gt(e),signature:t})}async function _a(e){const{domain:t,message:n,primaryType:s,signature:a,types:r}=e;return ue({hash:Fn({domain:t,message:n,primaryType:s,types:r}),signature:a})}function eo(e){const{address:t,data:n,signature:s,to:a="hex"}=e,r=gs({authorization:{address:e.authorization.address,chainId:e.authorization.chainId,nonce:BigInt(e.authorization.nonce),r:BigInt(e.authorization.r),s:BigInt(e.authorization.s),yParity:e.authorization.yParity},data:n,signature:s,to:t});return a==="hex"?r:K(r)}async function to({address:e,hash:t,signature:n}){return fe(z(e),await ue({hash:t,signature:n}))}async function no({address:e,message:t,signature:n}){return fe(z(e),await Ra({message:t,signature:n}))}async function so(e){const{address:t,domain:n,message:s,primaryType:a,signature:r,types:o}=e;return fe(z(t),await _a({domain:n,message:s,primaryType:a,signature:r,types:o}))}class Na extends H{constructor({value:t}){super(`Number \`${t}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function Vt(e,t){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(e))throw new Na({value:e});let[n,s="0"]=e.split(".");const a=n.startsWith("-");if(a&&(n=n.slice(1)),s=s.replace(/(0+)$/,""),t===0)Math.round(+`.${s}`)===1&&(n=`${BigInt(n)+1n}`),s="";else if(s.length>t){const[r,o,i]=[s.slice(0,t-1),s.slice(t-1,t),s.slice(t)],u=Math.round(+`${o}.${i}`);u>9?s=`${BigInt(r)+BigInt(1)}0`.padStart(r.length+1,"0"):s=`${r}${u}`,s.length>t&&(s=s.slice(1),n=`${BigInt(n)+1n}`),s=s.slice(0,t)}else s=s.padEnd(t,"0");return BigInt(`${a?"-":""}${n}${s}`)}function ao(e,t="wei"){return Vt(e,Sn[t])}function ro(e,t="wei"){return Vt(e,Bn[t])}async function ve(e,t){const{blockNumber:n,blockTag:s=e.experimental_blockTag??"latest",blocks:a,returnFullTransactions:r,traceTransfers:o,validation:i}=t;try{const u=[];for(const m of a){const f=m.blockOverrides?kn(m.blockOverrides):void 0,g=m.calls.map(y=>{const x=y,w=x.account?V(x.account):void 0,E=x.abi?Be(x):x.data,v={...x,account:w,data:x.dataSuffix?ot([E||"0x",x.dataSuffix]):E,from:x.from??w?.address};return Se(v),ce(v)}),h=m.stateOverrides?Rn(m.stateOverrides):void 0;u.push({blockOverrides:f,calls:g,stateOverrides:h})}const l=(typeof n=="bigint"?p(n):void 0)||s;return(await e.request({method:"eth_simulateV1",params:[{blockStateCalls:u,returnFullTransactions:r,traceTransfers:o,validation:i},l]})).map((m,f)=>({..._n(m),calls:m.calls.map((g,h)=>{const{abi:y,args:x,functionName:w,to:E}=a[f].calls[h],v=g.error?.data??g.returnData,T=BigInt(g.gasUsed),b=g.logs?.map(R=>ae(R)),A=g.status==="0x1"?"success":"failure",k=y&&A==="success"&&v!=="0x"?Nn({abi:y,data:v,functionName:w}):null,N=(()=>{if(A==="success")return;let R;if(g.error?.data==="0x"?R=new zn:g.error&&(R=new qn(g.error)),!!R)return rt(R,{abi:y??[],address:E??"0x",args:x,functionName:w??"<unknown>"})})();return{data:v,gasUsed:T,logs:b,status:A,...A==="success"?{result:k}:{error:N}}})}))}catch(u){const c=u,l=Un(c,{});throw l instanceof Ln?c:l}}function Pe(e){let t=!0,n="",s=0,a="",r=!1;for(let o=0;o<e.length;o++){const i=e[o];if(["(",")",","].includes(i)&&(t=!0),i==="("&&s++,i===")"&&s--,!!t){if(s===0){if(i===" "&&["event","function","error",""].includes(a))a="";else if(a+=i,i===")"){r=!0;break}continue}if(i===" "){e[o-1]!==","&&n!==","&&n!==",("&&(n="",t=!1);continue}a+=i,n+=i}}if(!r)throw new Re("Unable to normalize signature.");return a}function Ae(e,t){const n=typeof e,s=t.type;switch(s){case"address":return Te(e,{strict:!1});case"bool":return n==="boolean";case"function":return n==="string";case"string":return n==="string";default:return s==="tuple"&&"components"in t?Object.values(t.components).every((a,r)=>Ae(Object.values(e)[r],a)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(s)?n==="number"||n==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(s)?n==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(s)?Array.isArray(e)&&e.every(a=>Ae(a,{...t,type:s.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function jt(e,t,n){for(const s in e){const a=e[s],r=t[s];if(a.type==="tuple"&&r.type==="tuple"&&"components"in a&&"components"in r)return jt(a.components,r.components,n[s]);const o=[a.type,r.type];if(o.includes("address")&&o.includes("bytes20")?!0:o.includes("address")&&o.includes("string")?Te(n[s],{strict:!1}):o.includes("address")&&o.includes("bytes")?Te(n[s],{strict:!1}):!1)return o}}function Wt(e,t={}){const{prepare:n=!0}=t,s=Array.isArray(e)||typeof e=="string"?Ve(e):e;return{...s,...n?{hash:G(s)}:{}}}function pe(e,t,n){const{args:s=[],prepare:a=!0}=n??{},r=$n(t,{strict:!1}),o=e.filter(c=>r?c.type==="function"||c.type==="error"?Kt(c)===ct(t,0,4):c.type==="event"?G(c)===t:!1:"name"in c&&c.name===t);if(o.length===0)throw new oe({name:t});if(o.length===1)return{...o[0],...a?{hash:G(o[0])}:{}};let i;for(const c of o){if(!("inputs"in c))continue;if(!s||s.length===0){if(!c.inputs||c.inputs.length===0)return{...c,...a?{hash:G(c)}:{}};continue}if(!c.inputs||c.inputs.length===0||c.inputs.length!==s.length)continue;if(s.every((d,m)=>{const f="inputs"in c&&c.inputs[m];return f?Ae(d,f):!1})){if(i&&"inputs"in i&&i.inputs){const d=jt(c.inputs,i.inputs,s);if(d)throw new qa({abiItem:c,type:d[0]},{abiItem:i,type:d[1]})}i=c}}const u=(()=>{if(i)return i;const[c,...l]=o;return{...c,overloads:l}})();if(!u)throw new oe({name:t});return{...u,...a?{hash:G(u)}:{}}}function Kt(...e){const t=(()=>{if(Array.isArray(e[0])){const[n,s]=e;return pe(n,s)}return e[0]})();return ct(G(t),0,4)}function za(...e){const t=(()=>{if(Array.isArray(e[0])){const[s,a]=e;return pe(s,a)}return e[0]})(),n=typeof t=="string"?t:Ie(t);return Pe(n)}function G(...e){const t=(()=>{if(Array.isArray(e[0])){const[n,s]=e;return pe(n,s)}return e[0]})();return typeof t!="string"&&"hash"in t&&t.hash?t.hash:ys(Dn(za(t)))}class qa extends Re{constructor(t,n){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${t.type}\` in \`${Pe(Ie(t.abiItem))}\`, and`,`\`${n.type}\` in \`${Pe(Ie(n.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}class oe extends Re{constructor({name:t,data:n,type:s="item"}){const a=t?` with name "${t}"`:n?` with data "${n}"`:"";super(`ABI ${s}${a} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}function Ua(...e){const[t,n]=(()=>{if(Array.isArray(e[0])){const[r,o]=e;return[$a(r),o]}return e})(),{bytecode:s,args:a}=n;return ut(s,t.inputs?.length&&a?.length?yt(t.inputs,a):"0x")}function La(e){return Wt(e)}function $a(e){const t=e.find(n=>n.type==="constructor");if(!t)throw new oe({name:"constructor"});return t}function Da(...e){const[t,n=[]]=(()=>{if(Array.isArray(e[0])){const[c,l,d]=e;return[Ze(c,l,{args:d}),d]}const[i,u]=e;return[i,u]})(),{overloads:s}=t,a=s?Ze([t,...s],t.name,{args:n}):t,r=Ga(a),o=n.length>0?yt(a.inputs,n):void 0;return o?ut(r,o):r}function D(e,t={}){return Wt(e,t)}function Ze(e,t,n){const s=pe(e,t,n);if(s.type!=="function")throw new oe({name:t,type:"function"});return s}function Ga(e){return Kt(e)}const Ma="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",_="0x0000000000000000000000000000000000000000",Ha="0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033";async function Oa(e,t){const{blockNumber:n,blockTag:s,calls:a,stateOverrides:r,traceAssetChanges:o,traceTransfers:i,validation:u}=t,c=t.account?V(t.account):void 0;if(o&&!c)throw new H("`account` is required when `traceAssetChanges` is true");const l=c?Ua(La("constructor(bytes, bytes)"),{bytecode:Gn,args:[Ha,Da(D("function getBalance(address)"),[c.address])]}):void 0,d=o?await Promise.all(t.calls.map(async I=>{if(!I.data&&!I.abi)return;const{accessList:F}=await Gt(e,{account:c.address,...I,data:I.abi?Be(I):I.data});return F.map(({address:j,storageKeys:X})=>X.length>0?j:null)})).then(I=>I.flat().filter(Boolean)):[],m=await ve(e,{blockNumber:n,blockTag:s,blocks:[...o?[{calls:[{data:l}],stateOverrides:r},{calls:d.map((I,F)=>({abi:[D("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[c.address],to:I,from:_,nonce:F})),stateOverrides:[{address:_,nonce:0}]}]:[],{calls:[...a,{}].map(I=>({...I,from:c?.address})),stateOverrides:r},...o?[{calls:[{data:l}]},{calls:d.map((I,F)=>({abi:[D("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[c.address],to:I,from:_,nonce:F})),stateOverrides:[{address:_,nonce:0}]},{calls:d.map((I,F)=>({to:I,abi:[D("function decimals() returns (uint256)")],functionName:"decimals",from:_,nonce:F})),stateOverrides:[{address:_,nonce:0}]},{calls:d.map((I,F)=>({to:I,abi:[D("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:_,nonce:F})),stateOverrides:[{address:_,nonce:0}]},{calls:d.map((I,F)=>({to:I,abi:[D("function symbol() returns (string)")],functionName:"symbol",from:_,nonce:F})),stateOverrides:[{address:_,nonce:0}]}]:[]],traceTransfers:i,validation:u}),f=o?m[2]:m[0],[g,h,,y,x,w,E,v]=o?m:[],{calls:T,...b}=f,A=T.slice(0,-1)??[],k=g?.calls??[],N=h?.calls??[],R=[...k,...N].map(I=>I.status==="success"?C(I.data):null),ge=y?.calls??[],Q=x?.calls??[],Zt=[...ge,...Q].map(I=>I.status==="success"?C(I.data):null),Jt=(w?.calls??[]).map(I=>I.status==="success"?I.result:null),Yt=(v?.calls??[]).map(I=>I.status==="success"?I.result:null),Qt=(E?.calls??[]).map(I=>I.status==="success"?I.result:null),ye=[];for(const[I,F]of Zt.entries()){const j=R[I];if(typeof F!="bigint"||typeof j!="bigint")continue;const X=Jt[I-1],Xt=Yt[I-1],en=Qt[I-1],Ue=I===0?{address:Ma,decimals:18,symbol:"ETH"}:{address:d[I-1],decimals:en||X?Number(X??1):void 0,symbol:Xt??void 0};ye.some(tn=>tn.token.address===Ue.address)||ye.push({token:Ue,value:{pre:j,post:F,diff:F-j}})}return{assetChanges:ye,block:b,results:A}}function Va(e,{address:t,args:n,batch:s=!0,event:a,events:r,fromBlock:o,onError:i,onLogs:u,poll:c,pollingInterval:l=e.pollingInterval,strict:d}){const m=typeof c<"u"?c:typeof o=="bigint"?!0:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc")),f=d??!1;return m?(()=>{const y=Mn(["watchEvent",t,n,s,e.uid,a,l,o]);return Hn(y,{onLogs:u,onError:i},x=>{let w;o!==void 0&&(w=o-1n);let E,v=!1;const T=On(async()=>{if(!v){try{E=await S(e,Mt,"createEventFilter")({address:t,args:n,event:a,events:r,strict:f,fromBlock:o})}catch{}v=!0;return}try{let b;if(E)b=await S(e,xt,"getFilterChanges")({filter:E});else{const A=await S(e,wt,"getBlockNumber")({});w&&w!==A?b=await S(e,Et,"getLogs")({address:t,args:n,event:a,events:r,fromBlock:w+1n,toBlock:A}):b=[],w=A}if(b.length===0)return;if(s)x.onLogs(b);else for(const A of b)x.onLogs([A])}catch(b){E&&b instanceof Wn&&(v=!1),x.onError?.(b)}},{emitOnBegin:!0,interval:l});return async()=>{E&&await S(e,bt,"uninstallFilter")({filter:E}),T()}})})():(()=>{let y=!0,x=()=>y=!1;return(async()=>{try{const w=(()=>{if(e.transport.type==="fallback"){const b=e.transport.transports.find(A=>A.config.type==="webSocket"||A.config.type==="ipc");return b?b.value:e.transport}return e.transport})(),E=r??(a?[a]:void 0);let v=[];E&&(v=[E.flatMap(A=>pt({abi:[A],eventName:A.name,args:n}))],a&&(v=v[0]));const{unsubscribe:T}=await w.subscribe({params:["logs",{address:t,topics:v}],onData(b){if(!y)return;const A=b.result;try{const{eventName:k,args:N}=bs({abi:E??[],data:A.data,topics:A.topics,strict:f}),R=ae(A,{args:N,eventName:k});u([R])}catch(k){let N,R;if(k instanceof Vn||k instanceof jn){if(d)return;N=k.abiItem.name,R=k.abiItem.inputs?.some(Q=>!("name"in Q&&Q.name))}const ge=ae(A,{args:R?[]:{},eventName:N});u([ge])}},onError(b){i?.(b)}});x=T,y||x()}catch(w){i?.(w)}})(),()=>x()})()}async function ja(e,{hash:t}){await e.request({method:`${e.mode}_dropTransaction`,params:[t]})}async function Wa(e){return e.request({method:`${e.mode}_dumpState`})}async function Ka(e){return e.mode==="ganache"?await e.request({method:"eth_mining"}):await e.request({method:`${e.mode}_getAutomine`})}async function Za(e){return await e.request({method:"txpool_content"})}async function Ja(e){const{pending:t,queued:n}=await e.request({method:"txpool_status"});return{pending:B(t),queued:B(n)}}async function Ya(e,{address:t}){await e.request({method:`${e.mode}_impersonateAccount`,params:[t]})}async function Qa(e,{seconds:t}){return await e.request({method:"evm_increaseTime",params:[p(t)]})}async function Xa(e){return await e.request({method:"txpool_inspect"})}async function er(e,{state:t}){await e.request({method:`${e.mode}_loadState`,params:[t]})}async function tr(e,{blocks:t,interval:n}){e.mode==="ganache"?await e.request({method:"evm_mine",params:[{blocks:p(t)}]}):await e.request({method:`${e.mode}_mine`,params:[p(t),p(n||0)]})}async function nr(e){await e.request({method:`${e.mode}_removeBlockTimestampInterval`})}async function sr(e,{blockNumber:t,jsonRpcUrl:n}={}){await e.request({method:`${e.mode}_reset`,params:[{forking:{blockNumber:Number(t),jsonRpcUrl:n}}]})}async function ar(e,{id:t}){await e.request({method:"evm_revert",params:[t]})}async function rr(e,t){const{accessList:n,data:s,from:a,gas:r,gasPrice:o,maxFeePerGas:i,maxPriorityFeePerGas:u,nonce:c,to:l,value:d,...m}=t,f=e.chain?.formatters?.transactionRequest?.format,h=(f||ce)({...st(m,{format:f}),accessList:n,data:s,from:a,gas:r,gasPrice:o,maxFeePerGas:i,maxPriorityFeePerGas:u,nonce:c,to:l,value:d},"sendUnsignedTransaction");return await e.request({method:"eth_sendUnsignedTransaction",params:[h]})}async function or(e,t){e.mode==="ganache"?t?await e.request({method:"miner_start"}):await e.request({method:"miner_stop"}):await e.request({method:"evm_setAutomine",params:[t]})}async function ir(e,{address:t,value:n}){e.mode==="ganache"?await e.request({method:"evm_setAccountBalance",params:[t,p(n)]}):await e.request({method:`${e.mode}_setBalance`,params:[t,p(n)]})}async function cr(e,{gasLimit:t}){await e.request({method:"evm_setBlockGasLimit",params:[p(t)]})}async function ur(e,{interval:t}){const n=e.mode==="hardhat"?t*1e3:t;await e.request({method:`${e.mode}_setBlockTimestampInterval`,params:[n]})}async function fr(e,{address:t,bytecode:n}){e.mode==="ganache"?await e.request({method:"evm_setAccountCode",params:[t,n]}):await e.request({method:`${e.mode}_setCode`,params:[t,n]})}async function dr(e,{address:t}){await e.request({method:`${e.mode}_setCoinbase`,params:[t]})}async function lr(e,{interval:t}){const n=e.mode==="hardhat"?t*1e3:t;await e.request({method:"evm_setIntervalMining",params:[n]})}async function mr(e,t){await e.request({method:`${e.mode}_setLoggingEnabled`,params:[t]})}async function hr(e,{gasPrice:t}){await e.request({method:`${e.mode}_setMinGasPrice`,params:[p(t)]})}async function pr(e,{baseFeePerGas:t}){await e.request({method:`${e.mode}_setNextBlockBaseFeePerGas`,params:[p(t)]})}async function gr(e,{timestamp:t}){await e.request({method:"evm_setNextBlockTimestamp",params:[p(t)]})}async function yr(e,{address:t,nonce:n}){await e.request({method:`${e.mode}_setNonce`,params:[t,p(n)]})}async function br(e,t){await e.request({method:`${e.mode}_setRpcUrl`,params:[t]})}async function xr(e,{address:t,index:n,value:s}){await e.request({method:`${e.mode}_setStorageAt`,params:[t,typeof n=="number"?p(n):n,s]})}async function wr(e){return await e.request({method:"evm_snapshot"})}async function Er(e,{address:t}){await e.request({method:`${e.mode}_stopImpersonatingAccount`,params:[t]})}async function Ir(e,{chain:t}){const{id:n,name:s,nativeCurrency:a,rpcUrls:r,blockExplorers:o}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:p(n),chainName:s,nativeCurrency:a,rpcUrls:r.default.http,blockExplorerUrls:o?Object.values(o).map(({url:i})=>i):void 0}]},{dedupe:!0,retryCount:0})}async function Tr(e){return e.account?.type==="local"?[e.account.address]:(await e.request({method:"eth_accounts"},{dedupe:!0})).map(n=>Kn(n))}async function vr(e){return await e.request({method:"wallet_getPermissions"},{dedupe:!0})}async function Pr(e){return(await e.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(n=>z(n))}async function Ar(e,t){return e.request({method:"wallet_requestPermissions",params:[t]},{retryCount:0})}async function Cr(e,t){const{account:n=e.account}=t;if(!n)throw new ft({docsPath:"/docs/eip7702/signAuthorization"});const s=V(n);if(!s.signAuthorization)throw new Zn({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:s.type});const a=await St(e,t);return s.signAuthorization(a)}async function Fr(e,t){const{account:n=e.account,chain:s=e.chain,...a}=t;if(!n)throw new ft({docsPath:"/docs/actions/wallet/signTransaction"});const r=V(n);Se({account:r,...t});const o=await S(e,_e,"getChainId")({});s!==null&&Jn({currentChainId:o,chain:s});const u=(s?.formatters||e.chain?.formatters)?.transactionRequest?.format||ce;return r.signTransaction?r.signTransaction({...a,chainId:o},{serializer:e.chain?.serializers?.transaction}):await e.request({method:"eth_signTransaction",params:[{...u({...a,account:r},"signTransaction"),chainId:p(o),from:r.address}]},{retryCount:0})}async function Sr(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:p(t)}]},{retryCount:0})}async function Br(e,t){return Ne.internal(e,It,"sendTransactionSync",t)}function oo({abi:e,address:t,client:n}){const s=n,[a,r]=s?"public"in s&&"wallet"in s?[s.public,s.wallet]:"public"in s?[s.public,void 0]:"wallet"in s?[void 0,s.wallet]:[s,s]:[void 0,void 0],o=a!=null,i=r!=null,u={};let c=!1,l=!1,d=!1;for(const m of e)if(m.type==="function"?m.stateMutability==="view"||m.stateMutability==="pure"?c=!0:l=!0:m.type==="event"&&(d=!0),c&&l&&d)break;return o&&(c&&(u.read=new Proxy({},{get(m,f){return(...g)=>{const{args:h,options:y}=ne(g);return S(a,ke,"readContract")({abi:e,address:t,functionName:f,args:h,...y})}}})),l&&(u.simulate=new Proxy({},{get(m,f){return(...g)=>{const{args:h,options:y}=ne(g);return S(a,Tt,"simulateContract")({abi:e,address:t,functionName:f,args:h,...y})}}})),d&&(u.createEventFilter=new Proxy({},{get(m,f){return(...g)=>{const h=e.find(w=>w.type==="event"&&w.name===f),{args:y,options:x}=be(g,h);return S(a,vt,"createContractEventFilter")({abi:e,address:t,eventName:f,args:y,...x})}}}),u.getEvents=new Proxy({},{get(m,f){return(...g)=>{const h=e.find(w=>w.type==="event"&&w.name===f),{args:y,options:x}=be(g,h);return S(a,Pt,"getContractEvents")({abi:e,address:t,eventName:f,args:y,...x})}}}),u.watchEvent=new Proxy({},{get(m,f){return(...g)=>{const h=e.find(w=>w.type==="event"&&w.name===f),{args:y,options:x}=be(g,h);return S(a,At,"watchContractEvent")({abi:e,address:t,eventName:f,args:y,...x})}}}))),i&&l&&(u.write=new Proxy({},{get(m,f){return(...g)=>{const{args:h,options:y}=ne(g);return S(r,Ne,"writeContract")({abi:e,address:t,functionName:f,args:h,...y})}}})),(o||i)&&l&&(u.estimateGas=new Proxy({},{get(m,f){return(...g)=>{const{args:h,options:y}=ne(g);return S(a??r,Ht,"estimateContractGas")({abi:e,address:t,functionName:f,args:h,...y,account:y.account??r.account})}}})),u.address=t,u.abi=e,u}function ne(e){const t=e.length&&Array.isArray(e[0]),n=t?e[0]:[],s=(t?e[1]:e[0])??{};return{args:n,options:s}}function be(e,t){let n=!1;Array.isArray(e[0])?n=!0:e.length===1?n=t.inputs.some(r=>r.indexed):e.length===2&&(n=!0);const s=n?e[0]:void 0,a=(n?e[1]:e[0])??{};return{args:s,options:a}}function kr(e){const{scheme:t,statement:n,...s}=e.match(Rr)?.groups??{},{chainId:a,expirationTime:r,issuedAt:o,notBefore:i,requestId:u,...c}=e.match(_r)?.groups??{},l=e.split("Resources:")[1]?.split(`
|
|
2
|
+
- `).slice(1);return{...s,...c,...a?{chainId:Number(a)}:{},...r?{expirationTime:new Date(r)}:{},...o?{issuedAt:new Date(o)}:{},...i?{notBefore:new Date(i)}:{},...u?{requestId:u}:{},...l?{resources:l}:{},...t?{scheme:t}:{},...n?{statement:n}:{}}}const Rr=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,_r=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;function Nr(e){const{address:t,domain:n,message:s,nonce:a,scheme:r,time:o=new Date}=e;if(n&&s.domain!==n||a&&s.nonce!==a||r&&s.scheme!==r||s.expirationTime&&o>=s.expirationTime||s.notBefore&&o<s.notBefore)return!1;try{if(!s.address||!q(s.address,{strict:!1})||t&&!fe(s.address,t))return!1}catch{return!1}return!0}async function zr(e,t){const{address:n,domain:s,message:a,nonce:r,scheme:o,signature:i,time:u=new Date,...c}=t,l=kr(a);if(!l.address||!Nr({address:n,domain:s,message:l,nonce:r,scheme:o,time:u}))return!1;const m=gt(a);return Ct(e,{address:l.address,hash:m,signature:i,...c})}function qr(e){return{call:t=>Yn(e,t),createAccessList:t=>Gt(e,t),createBlockFilter:()=>Ia(e),createContractEventFilter:t=>vt(e,t),createEventFilter:t=>Mt(e,t),createPendingTransactionFilter:()=>xs(e),estimateContractGas:t=>Ht(e,t),estimateGas:t=>at(e,t),getBalance:t=>ws(e,t),getBlobBaseFee:()=>Ta(e),getBlock:t=>Qn(e,t),getBlockNumber:t=>wt(e,t),getBlockTransactionCount:t=>Es(e,t),getBytecode:t=>He(e,t),getChainId:()=>_e(e),getCode:t=>He(e,t),getContractEvents:t=>Pt(e,t),getEip712Domain:t=>Pa(e,t),getEnsAddress:t=>Is(e,t),getEnsAvatar:t=>Ts(e,t),getEnsName:t=>vs(e,t),getEnsResolver:t=>Ps(e,t),getEnsText:t=>As(e,t),getFeeHistory:t=>Cs(e,t),estimateFeesPerGas:t=>Xn(e,t),getFilterChanges:t=>xt(e,t),getFilterLogs:t=>Ca(e,t),getGasPrice:()=>es(e),getLogs:t=>Et(e,t),getProof:t=>Fs(e,t),estimateMaxPriorityFeePerGas:t=>ts(e,t),fillTransaction:t=>dt(e,t),getStorageAt:t=>Ss(e,t),getTransaction:t=>Bs(e,t),getTransactionConfirmations:t=>ks(e,t),getTransactionCount:t=>ns(e,t),getTransactionReceipt:t=>Rs(e,t),multicall:t=>_s(e,t),prepareTransactionRequest:t=>lt(e,t),readContract:t=>ke(e,t),sendRawTransaction:t=>mt(e,t),sendRawTransactionSync:t=>Ft(e,t),simulate:t=>ve(e,t),simulateBlocks:t=>ve(e,t),simulateCalls:t=>Oa(e,t),simulateContract:t=>Tt(e,t),verifyHash:t=>Ct(e,t),verifyMessage:t=>Ns(e,t),verifySiweMessage:t=>zr(e,t),verifyTypedData:t=>zs(e,t),uninstallFilter:t=>bt(e,t),waitForTransactionReceipt:t=>qs(e,t),watchBlocks:t=>Us(e,t),watchBlockNumber:t=>Ls(e,t),watchContractEvent:t=>At(e,t),watchEvent:t=>Va(e,t),watchPendingTransactions:t=>$s(e,t)}}function io(e){const{key:t="public",name:n="Public Client"}=e;return ze({...e,key:t,name:n,type:"publicClient"}).extend(qr)}function Ur({mode:e}){return t=>{const n=t.extend(()=>({mode:e}));return{dropTransaction:s=>ja(n,s),dumpState:()=>Wa(n),getAutomine:()=>Ka(n),getTxpoolContent:()=>Za(n),getTxpoolStatus:()=>Ja(n),impersonateAccount:s=>Ya(n,s),increaseTime:s=>Qa(n,s),inspectTxpool:()=>Xa(n),loadState:s=>er(n,s),mine:s=>tr(n,s),removeBlockTimestampInterval:()=>nr(n),reset:s=>sr(n,s),revert:s=>ar(n,s),sendUnsignedTransaction:s=>rr(n,s),setAutomine:s=>or(n,s),setBalance:s=>ir(n,s),setBlockGasLimit:s=>cr(n,s),setBlockTimestampInterval:s=>ur(n,s),setCode:s=>fr(n,s),setCoinbase:s=>dr(n,s),setIntervalMining:s=>lr(n,s),setLoggingEnabled:s=>mr(n,s),setMinGasPrice:s=>hr(n,s),setNextBlockBaseFeePerGas:s=>pr(n,s),setNextBlockTimestamp:s=>gr(n,s),setNonce:s=>yr(n,s),setRpcUrl:s=>br(n,s),setStorageAt:s=>xr(n,s),snapshot:()=>wr(n),stopImpersonatingAccount:s=>Er(n,s)}}}function co(e){const{key:t="test",name:n="Test Client",mode:s}=e;return ze({...e,key:t,name:n,type:"testClient"}).extend(r=>({mode:s,...Ur({mode:s})(r)}))}function Lr(e){return{addChain:t=>Ir(e,t),deployContract:t=>Ds(e,t),fillTransaction:t=>dt(e,t),getAddresses:()=>Tr(e),getCallsStatus:t=>ss(e,t),getCapabilities:t=>Gs(e,t),getChainId:()=>_e(e),getPermissions:()=>vr(e),prepareAuthorization:t=>St(e,t),prepareTransactionRequest:t=>lt(e,t),requestAddresses:()=>Pr(e),requestPermissions:t=>Ar(e,t),sendCalls:t=>as(e,t),sendCallsSync:t=>Ms(e,t),sendRawTransaction:t=>mt(e,t),sendRawTransactionSync:t=>Ft(e,t),sendTransaction:t=>rs(e,t),sendTransactionSync:t=>It(e,t),showCallsStatus:t=>Hs(e,t),signAuthorization:t=>Cr(e,t),signMessage:t=>Os(e,t),signTransaction:t=>Fr(e,t),signTypedData:t=>Vs(e,t),switchChain:t=>Sr(e,t),waitForCallsStatus:t=>os(e,t),watchAsset:t=>js(e,t),writeContract:t=>Ne(e,t),writeContractSync:t=>Br(e,t)}}function uo(e){const{key:t="wallet",name:n="Wallet Client",transport:s}=e;return ze({...e,key:t,name:n,transport:s,type:"walletClient"}).extend(Lr)}function fo(e,t={}){const{key:n="fallback",name:s="Fallback",rank:a=!1,shouldThrow:r=$r,retryCount:o,retryDelay:i}=t;return({chain:u,pollingInterval:c=4e3,timeout:l,...d})=>{let m=e,f=()=>{};const g=Ws({key:n,name:s,async request({method:h,params:y}){let x;const w=async(E=0)=>{const v=m[E]({...d,chain:u,retryCount:0,timeout:l});try{const T=await v.request({method:h,params:y});return f({method:h,params:y,response:T,transport:v,status:"success"}),T}catch(T){if(f({error:T,method:h,params:y,transport:v,status:"error"}),r(T)||E===m.length-1||(x??=m.slice(E+1).some(b=>{const{include:A,exclude:k}=b({chain:u}).config.methods||{};return A?A.includes(h):k?!k.includes(h):!0}),!x))throw T;return w(E+1)}};return w()},retryCount:o,retryDelay:i,type:"fallback"},{onResponse:h=>f=h,transports:m.map(h=>h({chain:u,retryCount:0}))});if(a){const h=typeof a=="object"?a:{};Dr({chain:u,interval:h.interval??c,onTransports:y=>m=y,ping:h.ping,sampleCount:h.sampleCount,timeout:h.timeout,transports:m,weights:h.weights})}return g}}function $r(e){return!!("code"in e&&typeof e.code=="number"&&(e.code===is.code||e.code===cs.code||us.nodeMessage.test(e.message)||e.code===5e3))}function Dr({chain:e,interval:t=4e3,onTransports:n,ping:s,sampleCount:a=10,timeout:r=1e3,transports:o,weights:i={}}){const{stability:u=.7,latency:c=.3}=i,l=[],d=async()=>{const m=await Promise.all(o.map(async h=>{const y=h({chain:e,retryCount:0,timeout:r}),x=Date.now();let w,E;try{await(s?s({transport:y}):y.request({method:"net_listening"})),E=1}catch{E=0}finally{w=Date.now()}return{latency:w-x,success:E}}));l.push(m),l.length>a&&l.shift();const f=Math.max(...l.map(h=>Math.max(...h.map(({latency:y})=>y)))),g=o.map((h,y)=>{const x=l.map(b=>b[y].latency),E=1-x.reduce((b,A)=>b+A,0)/x.length/f,v=l.map(b=>b[y].success),T=v.reduce((b,A)=>b+A,0)/v.length;return T===0?[0,y]:[c*E+u*T,y]}).sort((h,y)=>y[0]-h[0]);n(g.map(([,h])=>o[h])),await fs(t),d()};d()}class lo extends Error{constructor(t,n){super(n),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t,this.details=n}}const xe="/docs/contract/decodeDeployData";function mo(e){const{abi:t,bytecode:n,data:s}=e;if(s===n)return{bytecode:n};const a=t.find(o=>"type"in o&&o.type==="constructor");if(!a)throw new ds({docsPath:xe});if(!("inputs"in a))throw new Oe({docsPath:xe});if(!a.inputs||a.inputs.length===0)throw new Oe({docsPath:xe});return{args:it(a.inputs,`0x${s.replace(n,"")}`),bytecode:n}}function ho(e){const t=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),n=typeof e.blobs[0]=="string"?e.blobs.map(i=>K(i)):e.blobs,s=n.reduce((i,u)=>i+u.length,0),a=Ee(new Uint8Array(s));let r=!0;for(const i of n){const u=Ee(i);for(;r&&u.position<i.length;){u.incrementPosition(1);let c=31;i.length-u.position<31&&(c=i.length-u.position);for(const l in Array.from({length:c})){const d=u.readByte();if(d===128&&!u.inspectBytes(u.remaining).includes(128)){r=!1;break}a.pushByte(d)}}}const o=a.bytes.slice(0,a.position);return t==="hex"?M(o):o}function po(e){const{sidecars:t,version:n}=e,s=e.to??(typeof t[0].blob=="string"?"hex":"bytes"),a=[];for(const{commitment:r}of t)a.push(ls({commitment:r,to:s,version:n}));return a}const Gr=2147483648;function go(e){if(e===1)return 60n;if(e>=Gr||e<0)throw new Ks({chainId:e});return BigInt((2147483648|e)>>>0)}function Mr({blobToKzgCommitment:e,computeBlobKzgProof:t}){return{blobToKzgCommitment:e,computeBlobKzgProof:t}}function yo(e,t){try{e.loadTrustedSetup(t)}catch(n){const s=n;if(!s.message.includes("trusted setup is already loaded"))throw s}return Mr(e)}function bo({r:e,yParityAndS:t}){const n=K(t),s=n[0]&128?1:0,a=n;return s===1&&(a[0]&=127),{r:e,s:M(a),yParity:s}}function xo(e){const{r:t,s:n}=qe.Signature.fromCompact(e.slice(2,130));return{r:p(t,{size:32}),yParityAndS:p(n,{size:32})}}function wo(e){const{r:t,s:n}=qe.Signature.fromCompact(e.slice(2,130)),s=+`0x${e.slice(130)}`,[a,r]=(()=>{if(s===0||s===1)return[void 0,s];if(s===27)return[BigInt(s),0];if(s===28)return[BigInt(s),1];throw new Error("Invalid yParityOrV value")})();return typeof a<"u"?{r:p(t,{size:32}),s:p(n,{size:32}),v:a,yParity:r}:{r:p(t,{size:32}),s:p(n,{size:32}),yParity:r}}async function Eo(e){const{serializedTransaction:t,signature:n}=e,s=pa(t),a=n??{r:s.r,s:s.s,v:s.v,yParity:s.yParity},r=Ys({...s,r:void 0,s:void 0,v:void 0,yParity:void 0,sidecars:void 0});return await ue({hash:re(r),signature:a})}function Io({r:e,yParityAndS:t}){return`0x${new qe.Signature(C(e),C(t)).toCompactHex()}`}function To(e){const{r:t,s:n,v:s,yParity:a}=e,r=Number(a??s-27n);let o=n;if(r===1){const i=K(n);i[0]|=128,o=M(i)}return{r:t,yParityAndS:o}}export{ds as AbiConstructorNotFoundError,Oe as AbiConstructorParamsNotFoundError,Ao as AbiDecodingDataSizeInvalidError,Co as AbiDecodingDataSizeTooSmallError,zn as AbiDecodingZeroDataError,Fo as AbiEncodingArrayLengthMismatchError,So as AbiEncodingBytesSizeMismatchError,wn as AbiEncodingLengthMismatchError,Bo as AbiErrorInputsNotFoundError,ko as AbiErrorNotFoundError,Ro as AbiErrorSignatureNotFoundError,_o as AbiEventNotFoundError,No as AbiEventSignatureEmptyTopicsError,zo as AbiEventSignatureNotFoundError,qo as AbiFunctionNotFoundError,Uo as AbiFunctionOutputsNotFoundError,Lo as AbiFunctionSignatureNotFoundError,$o as AccountStateConflictError,Do as AtomicReadyWalletRejectedUpgradeError,Go as AtomicityNotSupportedError,H as BaseError,Mo as BaseFeeScalarError,Ho as BlockNotFoundError,Oo as BundleFailedError,Vo as BundleTooLargeError,Pn as BytesSizeMismatchError,jo as CallExecutionError,Wo as ChainDisconnectedError,Ko as ChainDoesNotSupportContract,Zo as ChainMismatchError,Jo as ChainNotFoundError,Yo as CircularReferenceError,Qo as ClientChainNotConfiguredError,Xo as ContractFunctionExecutionError,ei as ContractFunctionRevertedError,ti as ContractFunctionZeroDataError,ni as CounterfactualDeploymentFailedError,Vn as DecodeLogDataMismatch,jn as DecodeLogTopicsMismatch,si as DuplicateIdError,lo as EIP1193ProviderRpcError,ai as Eip1559FeesNotSupportedError,wd as EnsAvatarInvalidNftUriError,Ed as EnsAvatarUnsupportedNamespaceError,Id as EnsAvatarUriResolutionError,Ks as EnsInvalidChainIdError,ri as EstimateGasExecutionError,us as ExecutionRevertedError,Fe as FeeCapTooHighError,oi as FeeCapTooLowError,ii as FeeConflictError,Td as FilterTypeNotSupportedError,ci as HttpRequestError,ui as InsufficientFundsError,fi as IntegerOutOfRangeError,di as InternalRpcError,li as IntrinsicGasTooHighError,mi as IntrinsicGasTooLowError,hi as InvalidAbiDecodingTypeError,pi as InvalidAbiEncodingTypeError,mn as InvalidAbiItemError,hn as InvalidAbiParameterError,gi as InvalidAbiParametersError,yi as InvalidAbiTypeParameterError,$ as InvalidAddressError,bi as InvalidArrayError,xi as InvalidBytesBooleanError,ie as InvalidChainIdError,Na as InvalidDecimalNumberError,wi as InvalidDefinitionTypeError,Ei as InvalidDomainError,Ii as InvalidFunctionModifierError,Ti as InvalidHexBooleanError,yn as InvalidHexValueError,Wn as InvalidInputRpcError,Xe as InvalidLegacyVError,vi as InvalidModifierError,Pi as InvalidParameterError,Ai as InvalidParamsRpcError,Ci as InvalidParenthesisError,Fi as InvalidPrimaryTypeError,Si as InvalidRequestRpcError,Bi as InvalidSerializableTransactionError,Z as InvalidSerializedTransactionError,bn as InvalidSerializedTransactionTypeError,ki as InvalidSignatureError,cn as InvalidStorageKeySizeError,Ri as InvalidStructSignatureError,_i as InvalidStructTypeError,Ni as JsonRpcVersionUnsupportedError,zi as LimitExceededRpcError,qi as MaxFeePerGasTooLowError,Ui as MethodNotFoundRpcError,Li as MethodNotSupportedRpcError,$i as NonceMaxValueError,Di as NonceTooHighError,Gi as NonceTooLowError,Mi as ParseRpcError,Hi as ProviderDisconnectedError,Oi as ProviderRpcError,qn as RawContractError,Vi as ResourceNotFoundRpcError,ji as ResourceUnavailableRpcError,Wi as RpcError,Ki as RpcRequestError,Zi as SizeExceedsPaddingSizeError,Ji as SizeOverflowError,Yi as SliceOffsetOutOfBoundsError,Qi as SocketClosedError,Xi as SolidityProtectedKeywordError,ec as StateAssignmentConflictError,tc as SwitchChainError,nc as TimeoutError,nn as TipAboveFeeCapError,sc as TransactionExecutionError,ac as TransactionNotFoundError,rc as TransactionReceiptNotFoundError,is as TransactionRejectedRpcError,oc as TransactionTypeNotSupportedError,ic as UnauthorizedProviderError,cc as UnknownBundleIdError,Ln as UnknownNodeError,uc as UnknownRpcError,fc as UnknownSignatureError,dc as UnknownTypeError,lc as UnsupportedChainIdError,mc as UnsupportedNonOptionalCapabilityError,Cn as UnsupportedPackedAbiType,hc as UnsupportedProviderMethodError,vd as UrlRequiredError,cs as UserRejectedRequestError,pc as WaitForCallsStatusTimeoutError,gc as WaitForTransactionReceiptTimeoutError,yc as WebSocketRequestError,Jn as assertCurrentChain,Se as assertRequest,de as assertTransactionEIP1559,Rt as assertTransactionEIP2930,_t as assertTransactionLegacy,fn as blobsToCommitments,ln as blobsToProofs,bc as boolToBytes,In as boolToHex,xc as bytesToBigInt,wc as bytesToBool,M as bytesToHex,Ec as bytesToNumber,Ic as bytesToRlp,Tc as bytesToString,Kd as ccipFetch,Zd as ccipRequest,Kn as checksumAddress,ls as commitmentToVersionedHash,dn as commitmentsToVersionedHashes,Io as compactSignatureToHex,bo as compactSignatureToSignature,ot as concat,vc as concatBytes,O as concatHex,ze as createClient,Ld as createNonceManager,io as createPublicClient,co as createTestClient,Ws as createTransport,uo as createWalletClient,Pd as custom,it as decodeAbiParameters,mo as decodeDeployData,Pc as decodeErrorResult,bs as decodeEventLog,Od as decodeFunctionData,Nn as decodeFunctionResult,Ac as defineBlock,el as defineChain,Mr as defineKzg,Cc as defineTransaction,Fc as defineTransactionReceipt,Sc as defineTransactionRequest,Gn as deploylessCallViaBytecodeBytecode,Bc as deploylessCallViaFactoryBytecode,kc as domainSeparator,Rc as encodeAbiParameters,_c as encodeDeployData,Vd as encodeErrorResult,pt as encodeEventTopics,Be as encodeFunctionData,jd as encodeFunctionResult,Zr as encodePacked,Nc as erc1155Abi,zc as erc20Abi,qc as erc20Abi_bytes32,Uc as erc4626Abi,Lc as erc6492SignatureValidatorAbi,$c as erc6492SignatureValidatorByteCode,Dc as erc721Abi,Ma as ethAddress,Sn as etherUnits,tl as extendSchema,Wr as extractChain,fo as fallback,_n as formatBlock,Gc as formatEther,Mc as formatGwei,ae as formatLog,Hc as formatTransaction,Oc as formatTransactionReceipt,ce as formatTransactionRequest,Vc as formatUnits,ho as fromBlobs,jc as fromBytes,Wc as fromHex,$t as fromRlp,Kc as getAbiItem,z as getAddress,Zc as getChainContractAddress,oo as getContract,Jr as getContractAddress,rt as getContractError,Sa as getCreate2Address,Fa as getCreateAddress,Jc as getEventSelector,Yc as getEventSignature,Qc as getFunctionSelector,Xc as getFunctionSignature,ha as getSerializedTransactionType,un as getTransactionType,eu as getTypesForEIP712Domain,Bn as gweiUnits,tu as hashDomain,gt as hashMessage,nu as hashStruct,Fn as hashTypedData,C as hexToBigInt,su as hexToBool,K as hexToBytes,xo as hexToCompactSignature,B as hexToNumber,au as hexToRlp,wo as hexToSignature,ru as hexToString,Ad as http,q as isAddress,fe as isAddressEqual,Ke as isBytes,Ba as isErc6492Signature,ka as isErc8010Signature,ma as isHash,P as isHex,re as keccak256,Cd as labelhash,ou as maxInt104,iu as maxInt112,cu as maxInt120,uu as maxInt128,fu as maxInt136,du as maxInt144,lu as maxInt152,mu as maxInt16,hu as maxInt160,pu as maxInt168,gu as maxInt176,yu as maxInt184,bu as maxInt192,xu as maxInt200,wu as maxInt208,Eu as maxInt216,Iu as maxInt224,Tu as maxInt232,vu as maxInt24,Pu as maxInt240,Au as maxInt248,Cu as maxInt256,Fu as maxInt32,Su as maxInt40,Bu as maxInt48,ku as maxInt56,Ru as maxInt64,_u as maxInt72,Nu as maxInt8,zu as maxInt80,qu as maxInt88,Uu as maxInt96,Lu as maxUint104,$u as maxUint112,Du as maxUint120,Gu as maxUint128,Mu as maxUint136,Hu as maxUint144,Ou as maxUint152,Vu as maxUint16,ju as maxUint160,Wu as maxUint168,Ku as maxUint176,Zu as maxUint184,Ju as maxUint192,Yu as maxUint200,Qu as maxUint208,Xu as maxUint216,ef as maxUint224,tf as maxUint232,nf as maxUint24,sf as maxUint240,af as maxUint248,Ce as maxUint256,rf as maxUint32,of as maxUint40,cf as maxUint48,uf as maxUint56,ff as maxUint64,df as maxUint72,lf as maxUint8,mf as maxUint80,hf as maxUint88,pf as maxUint96,gf as minInt104,yf as minInt112,bf as minInt120,xf as minInt128,wf as minInt136,Ef as minInt144,If as minInt152,Tf as minInt16,vf as minInt160,Pf as minInt168,Af as minInt176,Cf as minInt184,Ff as minInt192,Sf as minInt200,Bf as minInt208,kf as minInt216,Rf as minInt224,_f as minInt232,Nf as minInt24,zf as minInt240,qf as minInt248,Uf as minInt256,Lf as minInt32,$f as minInt40,Df as minInt48,Gf as minInt56,Mf as minInt64,Hf as minInt72,Of as minInt8,Vf as minInt80,jf as minInt88,Wf as minInt96,Kf as multicall3Abi,Fd as namehash,$d as nonceManager,Zf as numberToBytes,p as numberToHex,Jd as offchainLookup,Yd as offchainLookupAbiItem,Qd as offchainLookupSignature,se as pad,Jf as padBytes,Me as padHex,Yf as parseAbi,Ve as parseAbiItem,Kr as parseAbiParameter,Sd as parseAbiParameters,xo as parseCompactSignature,Qr as parseErc6492Signature,Xr as parseErc8010Signature,ao as parseEther,ms as parseEventLogs,ro as parseGwei,wo as parseSignature,pa as parseTransaction,Vt as parseUnits,Qf as prepareEncodeFunctionData,Bd as presignMessagePrefix,qr as publicActions,ue as recoverAddress,Ra as recoverMessageAddress,Xf as recoverPublicKey,Eo as recoverTransactionAddress,_a as recoverTypedDataAddress,Yr as ripemd160,Dd as rpcSchema,ed as rpcTransactionType,le as serializeAccessList,Io as serializeCompactSignature,Gd as serializeErc6492Signature,eo as serializeErc8010Signature,kd as serializeSignature,Ys as serializeTransaction,td as serializeTypedData,nd as setErrorConfig,yo as setupKzg,sd as sha256,$r as shouldThrow,po as sidecarsToVersionedHashes,To as signatureToCompactSignature,Rd as signatureToHex,Je as size,Ye as slice,ad as sliceBytes,nt as sliceHex,rd as stringToBytes,En as stringToHex,Mn as stringify,Ur as testActions,Qe as toBlobSidecars,od as toBlobs,U as toBytes,go as toCoinType,id as toEventHash,cd as toEventSelector,ud as toEventSignature,fd as toFunctionHash,dd as toFunctionSelector,ld as toFunctionSignature,we as toHex,_d as toPrefixedMessage,L as toRlp,md as transactionType,W as trim,hd as universalSignatureValidatorAbi,pd as universalSignatureValidatorByteCode,gd as validateTypedData,to as verifyHash,no as verifyMessage,so as verifyTypedData,Lr as walletActions,Nd as webSocket,yd as weiUnits,zd as withCache,bd as withRetry,qd as withTimeout,_ as zeroAddress,Md as zeroHash};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import{importShared as q}from"./__federation_fn_import-WDa0gv1I.js";import{k as Rn,l as _n,q as D,t as Fn,u as Kn,v as kn,C as et,c as Mn,w as at,i as An,S as nn,x as Ft,y as x,z as ot,r as W,a as st,A as wt,B as Kt,D as $n,E as V,f as xn,F as Qn,G as kt,n as ct,e as Mt,H as Nn,I as Bn,g as At,J as jn,K as Et,L as U,N as Dn,O as Un}from"./QueryClientProvider-DUSjZ_J_.js";import{R as Ma,P as Aa}from"./QueryClientProvider-DUSjZ_J_.js";import{r as en}from"./index-Dy0yjznp.js";import"./jsx-runtime-B1l0k91v.js";import{S as Hn,K as Gn,x as Wn,i as zn,y as Ln,T as Vn,z as Jn,A as Yn,B as Xn,C as Zn,D as te,E as ne,F as ee,G as oe,H as on,I as se,J as re,U as ce,s as ie,V as ae,W as ue,X as le,m as de,M as fe,N as he,O as ye,Y as ge,Q as pe,P as me,q as we,R as be,l as Ce,af as ut}from"./webSocket-CIn5Ftst.js";import{a0 as xa,a1 as Qa,a2 as Na}from"./webSocket-CIn5Ftst.js";import{c as sn,x as Ie,af as ve,cD as Se,ck as Ee,cF as Oe,al as qe,bz as Pe,aj as Te,cI as Re,cE as _e,u as Fe,bJ as Ke,bC as ke,bB as Me,bD as Ae}from"./uid-CX4a_w4r.js";import{E as $e}from"./index-CdrMQoR6.js";function b(t,n,e){const o=t[n.name];if(typeof o=="function")return o;const s=t[e];return typeof s=="function"?s:r=>n(t,r)}async function xe(t,n){const{chainId:e,...o}=n,s=t.getClient({chainId:e});return b(s,sn,"call")(o)}async function Qe(t,n){let e;if(typeof n.connector=="function"?e=t._internal.connectors.setup(n.connector):e=n.connector,e.uid===t.state.current)throw new Rn;try{t.setState(c=>({...c,status:"connecting"})),e.emitter.emit("message",{type:"connecting"});const{connector:o,...s}=n,r=await e.connect(s);return e.emitter.off("connect",t._internal.events.connect),e.emitter.on("change",t._internal.events.change),e.emitter.on("disconnect",t._internal.events.disconnect),await t.storage?.setItem("recentConnectorId",e.id),t.setState(c=>({...c,connections:new Map(c.connections).set(e.uid,{accounts:s.withCapabilities?r.accounts.map(i=>typeof i=="object"?i.address:i):r.accounts,chainId:r.chainId,connector:e}),current:e.uid,status:"connected"})),{accounts:s.withCapabilities?r.accounts.map(c=>typeof c=="object"?c:{address:c,capabilities:{}}):r.accounts,chainId:r.chainId}}catch(o){throw t.setState(s=>({...s,status:s.current?"connected":"disconnected"})),o}}const{createClient:Ne,custom:Be}=await q("viem");async function k(t,n={}){const{assertChainId:e=!0}=n;let o;if(n.connector){const{connector:l}=n;if(t.state.status==="reconnecting"&&!l.getAccounts&&!l.getChainId)throw new _n({connector:l});const[d,h]=await Promise.all([l.getAccounts().catch(g=>{if(n.account===null)return[];throw g}),l.getChainId()]);o={accounts:d,chainId:h,connector:l}}else o=t.state.connections.get(t.state.current);if(!o)throw new D;const s=n.chainId??o.chainId,r=await o.connector.getChainId();if(e&&r!==s)throw new Fn({connectionChainId:s,connectorChainId:r});const c=o.connector;if(c.getClient)return c.getClient({chainId:s});const i=Ie(n.account??o.accounts[0]);if(i&&(i.address=ve(i.address)),n.account&&!o.accounts.some(l=>l.toLowerCase()===i.address.toLowerCase()))throw new Kn({address:i.address,connector:c});const a=t.chains.find(l=>l.id===s),u=await o.connector.getProvider({chainId:s});return Ne({account:i,chain:a,name:"Connector Client",transport:l=>Be(u)({...l,retryCount:0})})}async function je(t,n){const{account:e,chainId:o,connector:s,...r}=n;let c;return typeof e=="object"&&e?.type==="local"?c=t.getClient({chainId:o}):c=await k(t,{account:e??void 0,assertChainId:!1,chainId:o,connector:s}),await b(c,Hn,"deployContract")({...r,...e?{account:e}:{},chain:o?{id:o}:null})}async function De(t,n={}){let e;if(n.connector)e=n.connector;else{const{connections:s,current:r}=t.state;e=s.get(r)?.connector}const o=t.state.connections;e&&(await e.disconnect(),e.emitter.off("change",t._internal.events.change),e.emitter.off("disconnect",t._internal.events.disconnect),e.emitter.on("connect",t._internal.events.connect),o.delete(e.uid)),t.setState(s=>{if(o.size===0)return{...s,connections:new Map,current:null,status:"disconnected"};const r=o.values().next().value;return{...s,connections:new Map(o),current:r.connector.uid}});{const s=t.state.current;if(!s)return;const r=t.state.connections.get(s)?.connector;if(!r)return;await t.storage?.setItem("recentConnectorId",r.id)}}const{weiUnits:Ue}=await q("viem");function z(t){return typeof t=="number"?t:t==="wei"?0:Math.abs(Ue[t])}const{formatUnits:lt}=await q("viem");async function He(t,n={}){const{chainId:e,formatUnits:o="gwei",...s}=n,r=t.getClient({chainId:e}),c=b(r,Se,"estimateFeesPerGas"),{gasPrice:i,maxFeePerGas:a,maxPriorityFeePerGas:u}=await c({...s,chain:r.chain}),l=z(o);return{formatted:{gasPrice:i?lt(i,l):void 0,maxFeePerGas:a?lt(a,l):void 0,maxPriorityFeePerGas:u?lt(u,l):void 0},gasPrice:i,maxFeePerGas:a,maxPriorityFeePerGas:u}}async function Ge(t,n){const{chainId:e,connector:o,...s}=n;let r;n.account?r=n.account:r=(await k(t,{account:n.account,assertChainId:!1,chainId:e,connector:o})).account;const c=t.getClient({chainId:e});return b(c,Ee,"estimateGas")({...s,account:r})}async function We(t,n={}){const{chainId:e}=n,o=t.getClient({chainId:e});return b(o,Oe,"estimateMaxPriorityFeePerGas")({chain:o.chain})}function Ot(t){const n=t.state.current,e=t.state.connections.get(n),o=e?.accounts,s=o?.[0],r=t.chains.find(i=>i.id===e?.chainId),c=t.state.status;switch(c){case"connected":return{address:s,addresses:o,chain:r,chainId:e?.chainId,connector:e?.connector,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:c};case"reconnecting":return{address:s,addresses:o,chain:r,chainId:e?.chainId,connector:e?.connector,isConnected:!!s,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:c};case"connecting":return{address:s,addresses:o,chain:r,chainId:e?.chainId,connector:e?.connector,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:c};case"disconnected":return{address:void 0,addresses:void 0,chain:void 0,chainId:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:c}}}async function ze(t,n){const{allowFailure:e=!0,chainId:o,contracts:s,...r}=n,c=t.getClient({chainId:o});return b(c,Gn,"multicall")({allowFailure:e,contracts:s,...r})}function rn(t,n){const{chainId:e,...o}=n,s=t.getClient({chainId:e});return b(s,qe,"readContract")(o)}const{ContractFunctionExecutionError:Le}=await q("viem");async function L(t,n){const{allowFailure:e=!0,blockNumber:o,blockTag:s,...r}=n,c=n.contracts;try{const i={};for(const[d,h]of c.entries()){const g=h.chainId??t.state.chainId;i[g]||(i[g]=[]),i[g]?.push({contract:h,index:d})}const a=()=>Object.entries(i).map(([d,h])=>ze(t,{...r,allowFailure:e,blockNumber:o,blockTag:s,chainId:Number.parseInt(d,10),contracts:h.map(({contract:g})=>g)})),u=(await Promise.all(a())).flat(),l=Object.values(i).flatMap(d=>d.map(({index:h})=>h));return u.reduce((d,h,g)=>(d&&(d[l[g]]=h),d),[])}catch(i){if(i instanceof Le)throw i;const a=()=>c.map(u=>rn(t,{...u,blockNumber:o,blockTag:s}));return e?(await Promise.allSettled(a())).map(u=>u.status==="fulfilled"?{result:u.value,status:"success"}:{error:u.reason,result:void 0,status:"failure"}):await Promise.all(a())}}const{formatUnits:cn,hexToString:Ve,trim:Je}=await q("viem");async function Ye(t,n){const{address:e,blockNumber:o,blockTag:s,chainId:r,token:c,unit:i="ether"}=n;if(c)try{return await $t(t,{balanceAddress:e,chainId:r,symbolType:"string",tokenAddress:c})}catch(h){if(h.name==="ContractFunctionExecutionError"){const g=await $t(t,{balanceAddress:e,chainId:r,symbolType:"bytes32",tokenAddress:c}),S=Ve(Je(g.symbol,{dir:"right"}));return{...g,symbol:S}}throw h}const a=t.getClient({chainId:r}),l=await b(a,Wn,"getBalance")(o?{address:e,blockNumber:o}:{address:e,blockTag:s}),d=t.chains.find(h=>h.id===r)??a.chain;return{decimals:d.nativeCurrency.decimals,formatted:cn(l,z(i)),symbol:d.nativeCurrency.symbol,value:l}}async function $t(t,n){const{balanceAddress:e,chainId:o,symbolType:s,tokenAddress:r,unit:c}=n,i={abi:[{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:s}]}],address:r},[a,u,l]=await L(t,{allowFailure:!1,contracts:[{...i,functionName:"balanceOf",args:[e],chainId:o},{...i,functionName:"decimals",chainId:o},{...i,functionName:"symbol",chainId:o}]}),d=cn(a??"0",z(c??u));return{decimals:u,formatted:d,symbol:l,value:a}}async function Xe(t,n={}){const{chainId:e,...o}=n,s=t.getClient({chainId:e});return{...await b(s,Pe,"getBlock")(o),chainId:s.chain.id}}function Ze(t,n={}){const{chainId:e,...o}=n,s=t.getClient({chainId:e});return b(s,zn,"getBlockNumber")(o)}function to(t,n={}){const{chainId:e,...o}=n,s=t.getClient({chainId:e});return b(s,Ln,"getBlockTransactionCount")(o)}async function no(t,n){const{chainId:e,...o}=n,s=t.getClient({chainId:e});return b(s,Te,"getBytecode")(o)}async function eo(t,n){const{connector:e,id:o}=n,s=await k(t,{connector:e});return b(s,Re,"getCallsStatus")({id:o})}async function oo(t,n={}){const{account:e,chainId:o,connector:s}=n,r=await k(t,{account:e,connector:s});return Vn(r,{account:e,chainId:o})}function xt(t){return t.state.chainId}function B(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;let e,o;if(Array.isArray(t)&&Array.isArray(n)){if(e=t.length,e!==n.length)return!1;for(o=e;o--!==0;)if(!B(t[o],n[o]))return!1;return!0}if(typeof t.valueOf=="function"&&t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(typeof t.toString=="function"&&t.toString!==Object.prototype.toString)return t.toString()===n.toString();const s=Object.keys(t);if(e=s.length,e!==Object.keys(n).length)return!1;for(o=e;o--!==0;)if(!Object.hasOwn(n,s[o]))return!1;for(o=e;o--!==0;){const r=s[o];if(r&&!B(t[r],n[r]))return!1}return!0}return t!==t&&n!==n}let dt=[];function Qt(t){const n=t.chains;return B(dt,n)?dt:(dt=n,n)}function rt(t,n={}){try{return t.getClient(n)}catch{return}}let J=[];function bt(t){const n=[...t.state.connections.values()];return t.state.status==="reconnecting"||B(J,n)?J:(J=n,n)}let Y=[];function Nt(t){const n=t.connectors;return Y.length===n.length&&Y.every((e,o)=>e===n[o])?Y:(Y=n,n)}function so(t,n){const{chainId:e,...o}=n,s=t.getClient({chainId:e});return b(s,Jn,"getEnsAddress")(o)}function ro(t,n){const{chainId:e,...o}=n,s=t.getClient({chainId:e});return b(s,Yn,"getEnsAvatar")(o)}function co(t,n){const{chainId:e,...o}=n,s=t.getClient({chainId:e});return b(s,Xn,"getEnsName")(o)}function io(t,n){const{chainId:e,...o}=n,s=t.getClient({chainId:e});return b(s,Zn,"getEnsResolver")(o)}function ao(t,n){const{chainId:e,...o}=n,s=t.getClient({chainId:e});return b(s,te,"getEnsText")(o)}function uo(t,n){const{chainId:e,...o}=n,s=t.getClient({chainId:e});return b(s,ne,"getFeeHistory")(o)}function lo(t,n={}){const{chainId:e}=n,o=t.getClient({chainId:e});return b(o,_e,"getGasPrice")({})}async function fo(t,n){const{chainId:e,...o}=n,s=t.getClient({chainId:e});return b(s,ee,"getProof")(o)}const{publicActions:ho}=await q("viem");function Ct(t,n={}){return rt(t,n)?.extend(ho)}async function yo(t,n){const{chainId:e,...o}=n,s=t.getClient({chainId:e});return b(s,oe,"getStorageAt")(o)}const{ContractFunctionExecutionError:ft,formatUnits:Bt,hexToString:jt,trim:Dt}=await q("viem");async function go(t,n){const{address:e,chainId:o,formatUnits:s=18}=n;function r(c){return[{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:c}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:c}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]}]}try{const c=r("string"),i={address:e,abi:c,chainId:o},[a,u,l,d]=await L(t,{allowFailure:!0,contracts:[{...i,functionName:"decimals"},{...i,functionName:"name"},{...i,functionName:"symbol"},{...i,functionName:"totalSupply"}]});if(u.error instanceof ft)throw u.error;if(l.error instanceof ft)throw l.error;if(a.error)throw a.error;if(d.error)throw d.error;return{address:e,decimals:a.result,name:u.result,symbol:l.result,totalSupply:{formatted:Bt(d.result,z(s)),value:d.result}}}catch(c){if(c instanceof ft){const i=r("bytes32"),a={address:e,abi:i,chainId:o},[u,l,d,h]=await L(t,{allowFailure:!1,contracts:[{...a,functionName:"decimals"},{...a,functionName:"name"},{...a,functionName:"symbol"},{...a,functionName:"totalSupply"}]});return{address:e,decimals:u,name:jt(Dt(l,{dir:"right"})),symbol:jt(Dt(d,{dir:"right"})),totalSupply:{formatted:Bt(h,z(s)),value:h}}}throw c}}function po(t,n){const{chainId:e,...o}=n,s=t.getClient({chainId:e});return b(s,on,"getTransaction")(o)}function mo(t,n){const{chainId:e,...o}=n,s=t.getClient({chainId:e});return b(s,se,"getTransactionConfirmations")(o)}async function wo(t,n){const{address:e,blockNumber:o,blockTag:s,chainId:r}=n,c=t.getClient({chainId:r});return b(c,Fe,"getTransactionCount")(o?{address:e,blockNumber:o}:{address:e,blockTag:s})}async function bo(t,n){const{chainId:e,...o}=n,s=t.getClient({chainId:e});return b(s,re,"getTransactionReceipt")(o)}const{walletActions:Co}=await q("viem");async function Io(t,n={}){return(await k(t,n)).extend(Co)}async function vo(t,n){const{account:e,chainId:o,...s}=n,r=e??Ot(t).address,c=t.getClient({chainId:o});return b(c,Ke,"prepareTransactionRequest")({...s,...r?{account:r}:{}})}let ht=!1;async function an(t,n={}){if(ht)return[];ht=!0,t.setState(u=>({...u,status:u.current?"reconnecting":"connecting"}));const e=[];if(n.connectors?.length)for(const u of n.connectors){let l;typeof u=="function"?l=t._internal.connectors.setup(u):l=u,e.push(l)}else e.push(...t.connectors);let o;try{o=await t.storage?.getItem("recentConnectorId")}catch{}const s={};for(const[,u]of t.state.connections)s[u.connector.id]=1;o&&(s[o]=0);const r=Object.keys(s).length>0?[...e].sort((u,l)=>(s[u.id]??10)-(s[l.id]??10)):e;let c=!1;const i=[],a=[];for(const u of r){const l=await u.getProvider().catch(()=>{});if(!l||a.some(g=>g===l)||!await u.isAuthorized())continue;const h=await u.connect({isReconnecting:!0}).catch(()=>null);h&&(u.emitter.off("connect",t._internal.events.connect),u.emitter.on("change",t._internal.events.change),u.emitter.on("disconnect",t._internal.events.disconnect),t.setState(g=>{const S=new Map(c?g.connections:new Map).set(u.uid,{accounts:h.accounts,chainId:h.chainId,connector:u});return{...g,current:c?g.current:u.uid,connections:S}}),i.push({accounts:h.accounts,chainId:h.chainId,connector:u}),a.push(l),c=!0)}return(t.state.status==="reconnecting"||t.state.status==="connecting")&&(c?t.setState(u=>({...u,status:"connected"})):t.setState(u=>({...u,connections:new Map,current:null,status:"disconnected"}))),ht=!1,i}async function So(t,n){const{account:e,chainId:o,connector:s,calls:r,...c}=n,i=await k(t,{account:e,assertChainId:!1,chainId:o,connector:s});return b(i,ke,"sendCalls")({...c,...typeof e<"u"?{account:e}:{},calls:r,chain:o?{id:o}:void 0})}async function Eo(t,n){const{account:e,chainId:o,connector:s,calls:r,...c}=n,i=await k(t,{account:e,assertChainId:!1,chainId:o,connector:s});return b(i,ce,"sendCallsSync")({...c,...typeof e<"u"?{account:e}:{},calls:r,chain:o?{id:o}:void 0})}async function Oo(t,n){const{account:e,chainId:o,connector:s,...r}=n;let c;return typeof e=="object"&&e?.type==="local"?c=t.getClient({chainId:o}):c=await k(t,{account:e??void 0,assertChainId:!1,chainId:o,connector:s}),await b(c,Me,"sendTransaction")({...r,...e?{account:e}:{},chain:o?{id:o}:null,gas:r.gas??void 0})}async function qo(t,n){const{account:e,chainId:o,connector:s,...r}=n;let c;return typeof e=="object"&&e?.type==="local"?c=t.getClient({chainId:o}):c=await k(t,{account:e??void 0,assertChainId:!1,chainId:o,connector:s}),await b(c,ie,"sendTransactionSync")({...r,...e?{account:e}:{},chain:o?{id:o}:null,gas:r.gas??void 0})}async function Po(t,n){const{connector:e,id:o}=n,s=await k(t,{connector:e});return ae(s,{id:o})}async function To(t,n){const{account:e,connector:o,...s}=n;let r;return typeof e=="object"&&e.type==="local"?r=t.getClient():r=await k(t,{account:e,connector:o}),b(r,ue,"signMessage")({...s,...e?{account:e}:{}})}async function Ro(t,n){const{account:e,connector:o,...s}=n;let r;return typeof e=="object"&&e.type==="local"?r=t.getClient():r=await k(t,{account:e,connector:o}),b(r,le,"signTypedData")({...s,...e?{account:e}:{}})}async function _o(t,n){const{abi:e,chainId:o,connector:s,...r}=n;let c;n.account?c=n.account:c=(await k(t,{assertChainId:!1,chainId:o,connector:s})).account;const i=t.getClient({chainId:o}),a=b(i,de,"simulateContract"),{result:u,request:l}=await a({...r,abi:e,account:c});return{chainId:i.chain.id,result:u,request:{...l,chainId:o}}}async function Fo(t,n){const{connector:e}=n,o=t.state.connections.get(e.uid);if(!o)throw new D;return await t.storage?.setItem("recentConnectorId",e.id),t.setState(s=>({...s,current:e.uid})),{accounts:o.accounts,chainId:o.chainId}}async function Ko(t,n){const{addEthereumChainParameter:e,chainId:o}=n,s=t.state.connections.get(n.connector?.uid??t.state.current);if(s){const c=s.connector;if(!c.switchChain)throw new kn({connector:c});return await c.switchChain({addEthereumChainParameter:e,chainId:o})}const r=t.chains.find(c=>c.id===o);if(!r)throw new et;return t.setState(c=>({...c,chainId:o})),r}async function ko(t,n){const{chainId:e,...o}=n,s=t.getClient({chainId:e});return b(s,fe,"verifyMessage")(o)}async function Mo(t,n){const{chainId:e,...o}=n,s=t.getClient({chainId:e});return b(s,he,"verifyTypedData")(o)}async function Ao(t,n){const{connector:e}=n,o=await k(t,{connector:e});return Ae(o,n)}const{hexToString:$o}=await q("viem");async function xo(t,n){const{chainId:e,timeout:o=0,...s}=n,r=t.getClient({chainId:e}),i=await b(r,ye,"waitForTransactionReceipt")({...s,timeout:o});if(i.status==="reverted"){const a=b(r,on,"getTransaction"),{from:u,...l}=await a({hash:i.transactionHash}),h=await b(r,sn,"call")({...l,account:u,data:l.input,gasPrice:l.type!=="eip1559"?l.gasPrice:void 0,maxFeePerGas:l.type==="eip1559"?l.maxFeePerGas:void 0,maxPriorityFeePerGas:l.type==="eip1559"?l.maxPriorityFeePerGas:void 0}),g=h?.data?$o(`0x${h.data.substring(138)}`):"unknown reason";throw new Error(g)}return{...i,chainId:r.chain.id}}function un(t,n){const{onChange:e}=n;return t.subscribe(()=>Ot(t),e,{equalityFn(o,s){const{connector:r,...c}=o,{connector:i,...a}=s;return B(c,a)&&r?.id===i?.id&&r?.uid===i?.uid}})}async function Qo(t,n){const{connector:e,...o}=n,s=await k(t,{connector:e});return b(s,ge,"watchAsset")(o)}function No(t,n){const{syncConnectedChain:e=t._internal.syncConnectedChain,...o}=n;let s;const r=a=>{s&&s();const u=t.getClient({chainId:a});return s=b(u,pe,"watchBlockNumber")(o),s},c=r(n.chainId);let i;return e&&!n.chainId&&(i=t.subscribe(({chainId:a})=>a,async a=>r(a))),()=>{c?.(),i?.()}}function Bo(t,n){const{syncConnectedChain:e=t._internal.syncConnectedChain,...o}=n;let s;const r=a=>{s&&s();const u=t.getClient({chainId:a});return s=b(u,me,"watchBlocks")(o),s},c=r(n.chainId);let i;return e&&!n.chainId&&(i=t.subscribe(({chainId:a})=>a,async a=>r(a))),()=>{c?.(),i?.()}}function jo(t,n){const{onChange:e}=n;return t.subscribe(o=>o.chainId,e)}function Do(t,n){const{onChange:e}=n;return t.subscribe(()=>rt(t),e,{equalityFn(o,s){return o?.uid===s?.uid}})}function Uo(t,n){const{onChange:e}=n;return t.subscribe(()=>bt(t),e,{equalityFn:B})}function Ho(t,n){const{onChange:e}=n;return t._internal.connectors.subscribe((o,s)=>{e(Object.values(o),s)})}function Go(t,n){const{syncConnectedChain:e=t._internal.syncConnectedChain,...o}=n;let s;const r=a=>{s&&s();const u=t.getClient({chainId:a});return s=b(u,we,"watchContractEvent")(o),s},c=r(n.chainId);let i;return e&&!n.chainId&&(i=t.subscribe(({chainId:a})=>a,async a=>r(a))),()=>{c?.(),i?.()}}function Wo(t,n){const{syncConnectedChain:e=t._internal.syncConnectedChain,...o}=n;let s;const r=a=>{s&&s();const u=t.getClient({chainId:a});return s=b(u,be,"watchPendingTransactions")(o),s},c=r(n.chainId);let i;return e&&!n.chainId&&(i=t.subscribe(({chainId:a})=>a,async a=>r(a))),()=>{c?.(),i?.()}}function zo(t,n){const{onChange:e}=n;return t.subscribe(()=>Ct(t),e,{equalityFn(o,s){return o?.uid===s?.uid}})}async function Lo(t,n){const{account:e,chainId:o,connector:s,...r}=n;let c;return typeof e=="object"&&e?.type==="local"?c=t.getClient({chainId:o}):c=await k(t,{account:e??void 0,assertChainId:!1,chainId:o,connector:s}),await b(c,Ce,"writeContract")({...r,...e?{account:e}:{},chain:o?{id:o}:null})}const{custom:Vo,fromHex:Ut,getAddress:X,keccak256:Jo,numberToHex:Ht,RpcRequestError:yt,SwitchChainError:Yo,stringToHex:Xo,UserRejectedRequestError:H}=await q("viem");ln.type="mock";function ln(t){const n=new Map,e=t.features??{defaultConnected:!1};let o=e.defaultConnected,s;return Mn(r=>({id:"mock",name:"Mock Connector",type:ln.type,async setup(){s=r.chains[0].id},async connect({chainId:c,withCapabilities:i}={}){if(e.connectError)throw typeof e.connectError=="boolean"?new H(new Error("Failed to connect.")):e.connectError;const u=await(await this.getProvider()).request({method:"eth_requestAccounts"});let l=await this.getChainId();return c&&l!==c&&(l=(await this.switchChain({chainId:c})).id),o=!0,{accounts:i?u.map(d=>({address:X(d),capabilities:{foo:{bar:d}}})):u.map(d=>X(d)),chainId:l}},async disconnect(){o=!1},async getAccounts(){if(!o)throw new D;return(await(await this.getProvider()).request({method:"eth_accounts"})).map(a=>X(a))},async getChainId(){const i=await(await this.getProvider()).request({method:"eth_chainId"});return Ut(i,"number")},async isAuthorized(){return!e.reconnect||!o?!1:!!(await this.getAccounts()).length},async switchChain({chainId:c}){const i=await this.getProvider(),a=r.chains.find(u=>u.id===c);if(!a)throw new Yo(new et);return await i.request({method:"wallet_switchEthereumChain",params:[{chainId:Ht(c)}]}),a},onAccountsChanged(c){c.length===0?this.onDisconnect():r.emitter.emit("change",{accounts:c.map(i=>X(i))})},onChainChanged(c){const i=Number(c);r.emitter.emit("change",{chainId:i})},async onDisconnect(c){r.emitter.emit("disconnect"),o=!1},async getProvider({chainId:c}={}){const a=(r.chains.find(l=>l.id===c)??r.chains[0]).rpcUrls.default.http[0];return Vo({request:async({method:l,params:d})=>{if(l==="eth_chainId")return Ht(s);if(l==="eth_requestAccounts")return t.accounts;if(l==="eth_signTypedData_v4"&&e.signTypedDataError)throw typeof e.signTypedDataError=="boolean"?new H(new Error("Failed to sign typed data.")):e.signTypedDataError;if(l==="wallet_switchEthereumChain"){if(e.switchChainError)throw typeof e.switchChainError=="boolean"?new H(new Error("Failed to switch chain.")):e.switchChainError;s=Ut(d[0].chainId,"number"),this.onChainChanged(s.toString());return}if(l==="wallet_watchAsset"){if(e.watchAssetError)throw typeof e.watchAssetError=="boolean"?new H(new Error("Failed to switch chain.")):e.watchAssetError;return o}if(l==="wallet_getCapabilities")return{"0x2105":{paymasterService:{supported:d[0]==="0x95132632579b073D12a6673e18Ab05777a6B86f8"},sessionKeys:{supported:!0}},"0x14A34":{paymasterService:{supported:d[0]==="0x95132632579b073D12a6673e18Ab05777a6B86f8"}}};if(l==="wallet_sendCalls"){const w=[],O=d[0].calls,_=d[0].from;for(const R of O){const{result:A,error:f}=await ut.http(a,{body:{method:"eth_sendTransaction",params:[{...R,...typeof _<"u"?{from:_}:{}}]}});if(f)throw new yt({body:{method:l,params:d},error:f,url:a});w.push(A)}const T=Jo(Xo(JSON.stringify(O)));return n.set(T,w),{id:T}}if(l==="wallet_getCallsStatus"){const w=n.get(d[0]);if(!w)return{atomic:!1,chainId:"0x1",id:d[0],status:100,receipts:[],version:"2.0.0"};const _=(await Promise.all(w.map(async T=>{const{result:R,error:A}=await ut.http(a,{body:{method:"eth_getTransactionReceipt",params:[T],id:0}});if(A)throw new yt({body:{method:l,params:d},error:A,url:a});return R?{blockHash:R.blockHash,blockNumber:R.blockNumber,gasUsed:R.gasUsed,logs:R.logs,status:R.status,transactionHash:R.transactionHash}:null}))).filter(T=>T!==null);return _.length===0?{atomic:!1,chainId:"0x1",id:d[0],status:100,receipts:[],version:"2.0.0"}:{atomic:!1,chainId:"0x1",id:d[0],status:200,receipts:_,version:"2.0.0"}}if(l==="wallet_showCallsStatus")return;if(l==="personal_sign"){if(e.signMessageError)throw typeof e.signMessageError=="boolean"?new H(new Error("Failed to sign message.")):e.signMessageError;l="eth_sign",d=[d[1],d[0]]}const h={method:l,params:d},{error:g,result:S}=await ut.http(a,{body:h});if(g)throw new yt({body:h,error:g,url:a});return S}})({retryCount:0})}}))}function Zo(t){if(typeof window>"u")return;const n=e=>t(e.detail);return window.addEventListener("eip6963:announceProvider",n),window.dispatchEvent(new CustomEvent("eip6963:requestProvider")),()=>window.removeEventListener("eip6963:announceProvider",n)}function ts(){const t=new Set;let n=[];const e=()=>Zo(s=>{n.some(({info:r})=>r.uuid===s.info.uuid)||(n=[...n,s],t.forEach(r=>r(n,{added:[s]})))});let o=e();return{_listeners(){return t},clear(){t.forEach(s=>s([],{removed:[...n]})),n=[]},destroy(){this.clear(),t.clear(),o?.()},findProvider({rdns:s}){return n.find(r=>r.info.rdns===s)},getProviders(){return n},reset(){this.clear(),o?.(),o=e()},subscribe(s,{emitImmediately:r}={}){return t.add(s),r&&s(n,{added:n}),()=>t.delete(s)}}}const ns=t=>(n,e,o)=>{const s=o.subscribe;return o.subscribe=(c,i,a)=>{let u=c;if(i){const l=a?.equalityFn||Object.is;let d=c(o.getState());u=h=>{const g=c(h);if(!l(d,g)){const S=d;i(d=g,S)}},a?.fireImmediately&&i(d,d)}return s(u)},t(n,e,o)},es=ns;function os(t,n){let e;try{e=t()}catch{return}return{getItem:s=>{var r;const c=a=>a===null?null:JSON.parse(a,void 0),i=(r=e.getItem(s))!=null?r:null;return i instanceof Promise?i.then(c):c(i)},setItem:(s,r)=>e.setItem(s,JSON.stringify(r,void 0)),removeItem:s=>e.removeItem(s)}}const It=t=>n=>{try{const e=t(n);return e instanceof Promise?e:{then(o){return It(o)(e)},catch(o){return this}}}catch(e){return{then(o){return this},catch(o){return It(o)(e)}}}},ss=(t,n)=>(e,o,s)=>{let r={storage:os(()=>localStorage),partialize:w=>w,version:0,merge:(w,O)=>({...O,...w}),...n},c=!1;const i=new Set,a=new Set;let u=r.storage;if(!u)return t((...w)=>{console.warn(`[zustand persist middleware] Unable to update item '${r.name}', the given storage is currently unavailable.`),e(...w)},o,s);const l=()=>{const w=r.partialize({...o()});return u.setItem(r.name,{state:w,version:r.version})},d=s.setState;s.setState=(w,O)=>{d(w,O),l()};const h=t((...w)=>{e(...w),l()},o,s);s.getInitialState=()=>h;let g;const S=()=>{var w,O;if(!u)return;c=!1,i.forEach(T=>{var R;return T((R=o())!=null?R:h)});const _=((O=r.onRehydrateStorage)==null?void 0:O.call(r,(w=o())!=null?w:h))||void 0;return It(u.getItem.bind(u))(r.name).then(T=>{if(T)if(typeof T.version=="number"&&T.version!==r.version){if(r.migrate)return[!0,r.migrate(T.state,T.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,T.state];return[!1,void 0]}).then(T=>{var R;const[A,f]=T;if(g=r.merge(f,(R=o())!=null?R:h),e(g,!0),A)return l()}).then(()=>{_?.(g,void 0),g=o(),c=!0,a.forEach(T=>T(g))}).catch(T=>{_?.(void 0,T)})};return s.persist={setOptions:w=>{r={...r,...w},w.storage&&(u=w.storage)},clearStorage:()=>{u?.removeItem(r.name)},getOptions:()=>r,rehydrate:()=>S(),hasHydrated:()=>c,onHydrate:w=>(i.add(w),()=>{i.delete(w)}),onFinishHydration:w=>(a.add(w),()=>{a.delete(w)})},r.skipHydration||S(),g||h},rs=ss,Gt=t=>{let n;const e=new Set,o=(u,l)=>{const d=typeof u=="function"?u(n):u;if(!Object.is(d,n)){const h=n;n=l??(typeof d!="object"||d===null)?d:Object.assign({},n,d),e.forEach(g=>g(n,h))}},s=()=>n,i={setState:o,getState:s,getInitialState:()=>a,subscribe:u=>(e.add(u),()=>e.delete(u))},a=n=t(o,s,i);return i},gt=t=>t?Gt(t):Gt;class cs{constructor(n){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"_emitter",{enumerable:!0,configurable:!0,writable:!0,value:new $e})}on(n,e){this._emitter.on(n,e)}once(n,e){this._emitter.once(n,e)}off(n,e){this._emitter.off(n,e)}emit(n,...e){const o=e[0];this._emitter.emit(n,{uid:this.uid,...o})}listenerCount(n){return this._emitter.listenerCount(n)}}function is(t){return new cs(t)}function dn(t,n){return JSON.parse(t,(e,o)=>{let s=o;return s?.__type==="bigint"&&(s=BigInt(s.value)),s?.__type==="Map"&&(s=new Map(s.value)),n?.(e,s)??s})}function Wt(t,n){return t.slice(0,n).join(".")||"."}function zt(t,n){const{length:e}=t;for(let o=0;o<e;++o)if(t[o]===n)return o+1;return 0}function as(t,n){const e=typeof t=="function",o=typeof n=="function",s=[],r=[];return function(i,a){if(typeof a=="object")if(s.length){const u=zt(s,this);u===0?s[s.length]=this:(s.splice(u),r.splice(u)),r[r.length]=i;const l=zt(s,a);if(l!==0)return o?n.call(this,i,a,Wt(r,l)):`[ref=${Wt(r,l)}]`}else s[0]=a,r[0]=i;return e?t.call(this,i,a):a}}function us(t,n,e,o){return JSON.stringify(t,as((s,r)=>{let c=r;return typeof c=="bigint"&&(c={__type:"bigint",value:r.toString()}),c instanceof Map&&(c={__type:"Map",value:Array.from(r.entries())}),n?.(s,c)??c},o),e??void 0)}function ls(t){const{deserialize:n=dn,key:e="wagmi",serialize:o=us,storage:s=fn}=t;function r(c){return c instanceof Promise?c.then(i=>i).catch(()=>null):c}return{...s,key:e,async getItem(c,i){const a=s.getItem(`${e}.${c}`),u=await r(a);return u?n(u)??null:i??null},async setItem(c,i){const a=`${e}.${c}`;i===null?await r(s.removeItem(a)):await r(s.setItem(a,o(i)))},async removeItem(c){await r(s.removeItem(`${e}.${c}`))}}}const fn={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};function ds(){const t=typeof window<"u"&&window.localStorage?window.localStorage:fn;return{getItem(n){return t.getItem(n)},removeItem(n){t.removeItem(n)},setItem(n,e){try{t.setItem(n,e)}catch{}}}}const vt=256;let Z=vt,tt;function fs(t=11){if(!tt||Z+t>vt*2){tt="",Z=0;for(let n=0;n<vt;n++)tt+=(256+Math.random()*256|0).toString(16).substring(1)}return tt.substring(Z,Z+++t)}const{createClient:hs}=await q("viem");function Ei(t){const{multiInjectedProviderDiscovery:n=!0,storage:e=ls({storage:ds()}),syncConnectedChain:o=!0,ssr:s=!1,...r}=t,c=typeof window<"u"&&n?ts():void 0,i=gt(()=>r.chains),a=gt(()=>{const f=[],p=new Set;for(const y of r.connectors??[]){const I=u(y);if(f.push(I),!s&&I.rdns){const C=typeof I.rdns=="string"?[I.rdns]:I.rdns;for(const F of C)p.add(F)}}if(!s&&c){const y=c.getProviders();for(const I of y)p.has(I.info.rdns)||f.push(u(l(I)))}return f});function u(f){const p=is(fs()),y={...f({emitter:p,chains:i.getState(),storage:e,transports:r.transports}),emitter:p,uid:p.uid};return p.on("connect",R),y.setup?.(),y}function l(f){const{info:p}=f,y=f.provider;return An({target:{...p,id:p.rdns,provider:y}})}const d=new Map;function h(f={}){const p=f.chainId??O.getState().chainId,y=i.getState().find(C=>C.id===p);if(f.chainId&&!y)throw new et;{const C=d.get(O.getState().chainId);if(C&&!y)return C;if(!y)throw new et}{const C=d.get(p);if(C)return C}let I;if(r.client)I=r.client({chain:y});else{const C=y.id,F=i.getState().map(K=>K.id),$={},Q=Object.entries(r);for(const[K,N]of Q)if(!(K==="chains"||K==="client"||K==="connectors"||K==="transports"))if(typeof N=="object")if(C in N)$[K]=N[C];else{if(F.some(_t=>_t in N))continue;$[K]=N}else $[K]=N;I=hs({...$,chain:y,batch:$.batch??{multicall:!0},transport:K=>r.transports[C]({...K,connectors:a})})}return d.set(p,I),I}function g(){return{chainId:i.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let S;const w="0.0.0-canary-";at.startsWith(w)?S=Number.parseInt(at.replace(w,""),10):S=Number.parseInt(at.split(".")[0]??"0",10);const O=gt(es(e?rs(g,{migrate(f,p){if(p===S)return f;const y=g(),I=_(f,y.chainId);return{...y,chainId:I}},name:"store",partialize(f){return{connections:{__type:"Map",value:Array.from(f.connections.entries()).map(([p,y])=>{const{id:I,name:C,type:F,uid:$}=y.connector;return[p,{...y,connector:{id:I,name:C,type:F,uid:$}}]})},chainId:f.chainId,current:f.current}},merge(f,p){typeof f=="object"&&f&&"status"in f&&delete f.status;const y=_(f,p.chainId);return{...p,...f,chainId:y}},skipHydration:s,storage:e,version:S}):g));O.setState(g());function _(f,p){return f&&typeof f=="object"&&"chainId"in f&&typeof f.chainId=="number"&&i.getState().some(y=>y.id===f.chainId)?f.chainId:p}o&&O.subscribe(({connections:f,current:p})=>p?f.get(p)?.chainId:void 0,f=>{if(i.getState().some(y=>y.id===f))return O.setState(y=>({...y,chainId:f??y.chainId}))}),c?.subscribe(f=>{const p=new Set,y=new Set;for(const C of a.getState())if(p.add(C.id),C.rdns){const F=typeof C.rdns=="string"?[C.rdns]:C.rdns;for(const $ of F)y.add($)}const I=[];for(const C of f){if(y.has(C.info.rdns))continue;const F=u(l(C));p.has(F.id)||I.push(F)}e&&!O.persist.hasHydrated()||a.setState(C=>[...C,...I],!0)});function T(f){O.setState(p=>{const y=p.connections.get(f.uid);return y?{...p,connections:new Map(p.connections).set(f.uid,{accounts:f.accounts??y.accounts,chainId:f.chainId??y.chainId,connector:y.connector})}:p})}function R(f){O.getState().status==="connecting"||O.getState().status==="reconnecting"||O.setState(p=>{const y=a.getState().find(I=>I.uid===f.uid);return y?(y.emitter.listenerCount("connect")&&y.emitter.off("connect",T),y.emitter.listenerCount("change")||y.emitter.on("change",T),y.emitter.listenerCount("disconnect")||y.emitter.on("disconnect",A),{...p,connections:new Map(p.connections).set(f.uid,{accounts:f.accounts,chainId:f.chainId,connector:y}),current:f.uid,status:"connected"}):p})}function A(f){O.setState(p=>{const y=p.connections.get(f.uid);if(y){const C=y.connector;C.emitter.listenerCount("change")&&y.connector.emitter.off("change",T),C.emitter.listenerCount("disconnect")&&y.connector.emitter.off("disconnect",A),C.emitter.listenerCount("connect")||y.connector.emitter.on("connect",R)}if(p.connections.delete(f.uid),p.connections.size===0)return{...p,connections:new Map,current:null,status:"disconnected"};const I=p.connections.values().next().value;return{...p,connections:new Map(p.connections),current:I.connector.uid}})}return{get chains(){return i.getState()},get connectors(){return a.getState()},storage:e,getClient:h,get state(){return O.getState()},setState(f){let p;typeof f=="function"?p=f(O.getState()):p=f;const y=g();typeof p!="object"&&(p=y),Object.keys(y).some(C=>!(C in p))&&(p=y),O.setState(p,!0)},subscribe(f,p,y){return O.subscribe(f,p,y?{...y,fireImmediately:y.emitImmediately}:void 0)},_internal:{mipd:c,async revalidate(){const f=O.getState(),p=f.connections;let y=f.current;for(const[,I]of p){const C=I.connector;C.isAuthorized&&await C.isAuthorized()||(p.delete(C.uid),y===C.uid&&(y=null))}O.setState(I=>({...I,connections:p,current:y}))},store:O,ssr:!!s,syncConnectedChain:o,transports:r.transports,chains:{setState(f){const p=typeof f=="function"?f(i.getState()):f;if(p.length!==0)return i.setState(p,!0)},subscribe(f){return i.subscribe(f)}},connectors:{providerDetailToConnector:l,setup:u,setState(f){return a.setState(typeof f=="function"?f(a.getState()):f,!0)},subscribe(f){return a.subscribe(f)}},events:{change:T,connect:R,disconnect:A}}}}function ys(t,n){const{initialState:e,reconnectOnMount:o}=n;return e&&!t._internal.store.persist.hasHydrated()&&t.setState({...e,chainId:t.chains.some(s=>s.id===e.chainId)?e.chainId:t.chains[0].id,connections:o?e.connections:new Map,status:o?"reconnecting":"disconnected"}),{async onMount(){t._internal.ssr&&(await t._internal.store.persist.rehydrate(),t._internal.mipd&&t._internal.connectors.setState(s=>{const r=new Set;for(const a of s??[])if(a.rdns){const u=Array.isArray(a.rdns)?a.rdns:[a.rdns];for(const l of u)r.add(l)}const c=[],i=t._internal.mipd?.getProviders()??[];for(const a of i){if(r.has(a.info.rdns))continue;const u=t._internal.connectors.providerDetailToConnector(a),l=t._internal.connectors.setup(u);c.push(l)}return[...s,...c]})),o?an(t):t.storage&&t.setState(s=>({...s,connections:new Map}))}}}const{ChainDisconnectedError:gs,createTransport:ps,hexToNumber:ms,ProviderDisconnectedError:Lt,withRetry:ws,withTimeout:bs}=await q("viem");function Oi(t,n={}){const{type:e}=t,{key:o="connector",name:s="Connector",retryDelay:r}=n;return c=>{const{chain:i,connectors:a}=c,u=n.retryCount??c.retryCount;return ps({key:o,name:s,request:async({method:d,params:h})=>{const g=a?.getState().find(_=>_.type===e);if(!g)throw new Lt(new Error(`Could not find connector of type "${e}" in \`connectors\` passed to \`createConfig\`.`));const S=await g.getProvider({chainId:i?.id});if(!S)throw new Lt(new Error("Provider is disconnected."));const w=ms(await ws(()=>bs(()=>S.request({method:"eth_chainId"}),{timeout:100})));if(i&&w!==i.id)throw new gs(new Error(`The current chain of the connector (id: ${w}) does not match the target chain for the request (id: ${i.id} – ${i.name}).`));const O={method:d,params:h};return S.request(O)},retryCount:u,retryDelay:r,type:"connector"})}}const{fallback:Cs}=await q("viem");function qi(t,n){return Cs(t,n)}const Pi={getItem(t){return typeof window>"u"?null:hn(document.cookie,t)??null},setItem(t,n){typeof window>"u"||(document.cookie=`${t}=${n};path=/;samesite=Lax`)},removeItem(t){typeof window>"u"||(document.cookie=`${t}=;max-age=-1;path=/`)}};function Ti(t,n){if(!n)return;const e=`${t.storage?.key}.store`,o=hn(n,e);if(o)return dn(o).state}function hn(t,n){const e=t.split("; ").find(o=>o.startsWith(`${n}=`));if(e)return e.substring(n.length+1)}function Ri(t){if(typeof t=="string")return Number.parseInt(t,t.trim().substring(0,2)==="0x"?16:10);if(typeof t=="bigint")return Number(t);if(typeof t=="number")return t;throw new Error(`Cannot normalize chainId "${t}" of type "${typeof t}"`)}var yn=class extends nn{constructor(t,n){super(),this.options=n,this.#e=t,this.#i=null,this.#c=Ft(),this.bindMethods(),this.setOptions(n)}#e;#t=void 0;#o=void 0;#n=void 0;#s;#r;#c;#i;#g;#f;#h;#u;#l;#a;#y=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Vt(this.#t,this.options)?this.#d():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return St(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return St(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#C(),this.#I(),this.#t.removeObserver(this)}setOptions(t){const n=this.options,e=this.#t;if(this.options=this.#e.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof x(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#v(),this.#t.setOptions(this.options),n._defaulted&&!ot(this.options,n)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const o=this.hasListeners();o&&Jt(this.#t,e,this.options,n)&&this.#d(),this.updateResult(),o&&(this.#t!==e||x(this.options.enabled,this.#t)!==x(n.enabled,this.#t)||W(this.options.staleTime,this.#t)!==W(n.staleTime,this.#t))&&this.#p();const s=this.#m();o&&(this.#t!==e||x(this.options.enabled,this.#t)!==x(n.enabled,this.#t)||s!==this.#a)&&this.#w(s)}getOptimisticResult(t){const n=this.#e.getQueryCache().build(this.#e,t),e=this.createResult(n,t);return vs(this,e)&&(this.#n=e,this.#r=this.options,this.#s=this.#t.state),e}getCurrentResult(){return this.#n}trackResult(t,n){return new Proxy(t,{get:(e,o)=>(this.trackProp(o),n?.(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#c.status==="pending"&&this.#c.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,o))})}trackProp(t){this.#y.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=this.#e.defaultQueryOptions(t),e=this.#e.getQueryCache().build(this.#e,n);return e.fetch().then(()=>this.createResult(e,n))}fetch(t){return this.#d({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#d(t){this.#v();let n=this.#t.fetch(this.options,t);return t?.throwOnError||(n=n.catch(st)),n}#p(){this.#C();const t=W(this.options.staleTime,this.#t);if(wt.isServer()||this.#n.isStale||!Kt(t))return;const e=$n(this.#n.dataUpdatedAt,t)+1;this.#u=V.setTimeout(()=>{this.#n.isStale||this.updateResult()},e)}#m(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#w(t){this.#I(),this.#a=t,!(wt.isServer()||x(this.options.enabled,this.#t)===!1||!Kt(this.#a)||this.#a===0)&&(this.#l=V.setInterval(()=>{(this.options.refetchIntervalInBackground||xn.isFocused())&&this.#d()},this.#a))}#b(){this.#p(),this.#w(this.#m())}#C(){this.#u&&(V.clearTimeout(this.#u),this.#u=void 0)}#I(){this.#l&&(V.clearInterval(this.#l),this.#l=void 0)}createResult(t,n){const e=this.#t,o=this.options,s=this.#n,r=this.#s,c=this.#r,a=t!==e?t.state:this.#o,{state:u}=t;let l={...u},d=!1,h;if(n._optimisticResults){const I=this.hasListeners(),C=!I&&Vt(t,n),F=I&&Jt(t,e,n,o);(C||F)&&(l={...l,...Qn(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(l.fetchStatus="idle")}let{error:g,errorUpdatedAt:S,status:w}=l;h=l.data;let O=!1;if(n.placeholderData!==void 0&&h===void 0&&w==="pending"){let I;s?.isPlaceholderData&&n.placeholderData===c?.placeholderData?(I=s.data,O=!0):I=typeof n.placeholderData=="function"?n.placeholderData(this.#h?.state.data,this.#h):n.placeholderData,I!==void 0&&(w="success",h=kt(s?.data,I,n),d=!0)}if(n.select&&h!==void 0&&!O)if(s&&h===r?.data&&n.select===this.#g)h=this.#f;else try{this.#g=n.select,h=n.select(h),h=kt(s?.data,h,n),this.#f=h,this.#i=null}catch(I){this.#i=I}this.#i&&(g=this.#i,h=this.#f,S=Date.now(),w="error");const _=l.fetchStatus==="fetching",T=w==="pending",R=w==="error",A=T&&_,f=h!==void 0,y={status:w,fetchStatus:l.fetchStatus,isPending:T,isSuccess:w==="success",isError:R,isInitialLoading:A,isLoading:A,data:h,dataUpdatedAt:l.dataUpdatedAt,error:g,errorUpdatedAt:S,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:l.dataUpdateCount>a.dataUpdateCount||l.errorUpdateCount>a.errorUpdateCount,isFetching:_,isRefetching:_&&!T,isLoadingError:R&&!f,isPaused:l.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:R&&f,isStale:qt(t,n),refetch:this.refetch,promise:this.#c,isEnabled:x(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const I=y.data!==void 0,C=y.status==="error"&&!I,F=K=>{C?K.reject(y.error):I&&K.resolve(y.data)},$=()=>{const K=this.#c=y.promise=Ft();F(K)},Q=this.#c;switch(Q.status){case"pending":t.queryHash===e.queryHash&&F(Q);break;case"fulfilled":(C||y.data!==Q.value)&&$();break;case"rejected":(!C||y.error!==Q.reason)&&$();break}}return y}updateResult(){const t=this.#n,n=this.createResult(this.#t,this.options);if(this.#s=this.#t.state,this.#r=this.options,this.#s.data!==void 0&&(this.#h=this.#t),ot(n,t))return;this.#n=n;const e=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!this.#y.size)return!0;const r=new Set(s??this.#y);return this.options.throwOnError&&r.add("error"),Object.keys(this.#n).some(c=>{const i=c;return this.#n[i]!==t[i]&&r.has(i)})};this.#S({listeners:e()})}#v(){const t=this.#e.getQueryCache().build(this.#e,this.options);if(t===this.#t)return;const n=this.#t;this.#t=t,this.#o=t.state,this.hasListeners()&&(n?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#S(t){ct.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(this.#n)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function Is(t,n){return x(n.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&n.retryOnMount===!1)}function Vt(t,n){return Is(t,n)||t.state.data!==void 0&&St(t,n,n.refetchOnMount)}function St(t,n,e){if(x(n.enabled,t)!==!1&&W(n.staleTime,t)!=="static"){const o=typeof e=="function"?e(t):e;return o==="always"||o!==!1&&qt(t,n)}return!1}function Jt(t,n,e,o){return(t!==n||x(o.enabled,t)===!1)&&(!e.suspense||t.state.status!=="error")&&qt(t,e)}function qt(t,n){return x(n.enabled,t)!==!1&&t.isStaleByTime(W(n.staleTime,t))}function vs(t,n){return!ot(t.getCurrentResult(),n)}var Ss=class extends yn{constructor(t,n){super(t,n)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t){super.setOptions({...t,behavior:Mt()})}getOptimisticResult(t){return t.behavior=Mt(),super.getOptimisticResult(t)}fetchNextPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"backward"}}})}createResult(t,n){const{state:e}=t,o=super.createResult(t,n),{isFetching:s,isRefetching:r,isError:c,isRefetchError:i}=o,a=e.fetchMeta?.fetchMore?.direction,u=c&&a==="forward",l=s&&a==="forward",d=c&&a==="backward",h=s&&a==="backward";return{...o,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Nn(n,e.data),hasPreviousPage:Bn(n,e.data),isFetchNextPageError:u,isFetchingNextPage:l,isFetchPreviousPageError:d,isFetchingPreviousPage:h,isRefetchError:i&&!u&&!d,isRefetching:r&&!l&&!h}}},Es=class extends nn{#e;#t=void 0;#o;#n;constructor(t,n){super(),this.#e=t,this.setOptions(n),this.bindMethods(),this.#s()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#e.defaultMutationOptions(t),ot(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#o,observer:this}),n?.mutationKey&&this.options.mutationKey&&At(n.mutationKey)!==At(this.options.mutationKey)?this.reset():this.#o?.state.status==="pending"&&this.#o.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#o?.removeObserver(this)}onMutationUpdate(t){this.#s(),this.#r(t)}getCurrentResult(){return this.#t}reset(){this.#o?.removeObserver(this),this.#o=void 0,this.#s(),this.#r()}mutate(t,n){return this.#n=n,this.#o?.removeObserver(this),this.#o=this.#e.getMutationCache().build(this.#e,this.options),this.#o.addObserver(this),this.#o.execute(t)}#s(){const t=this.#o?.state??jn();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#r(t){ct.batch(()=>{if(this.#n&&this.hasListeners()){const n=this.#t.variables,e=this.#t.context,o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#n.onSuccess?.(t.data,n,e,o)}catch(s){Promise.reject(s)}try{this.#n.onSettled?.(t.data,null,n,e,o)}catch(s){Promise.reject(s)}}else if(t?.type==="error"){try{this.#n.onError?.(t.error,n,e,o)}catch(s){Promise.reject(s)}try{this.#n.onSettled?.(void 0,t.error,n,e,o)}catch(s){Promise.reject(s)}}}this.listeners.forEach(n=>{n(this.#t)})})}};const gn=await q("react");var pn=gn.createContext(!1),Os=()=>gn.useContext(pn);pn.Provider;const mn=await q("react");function qs(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var Ps=mn.createContext(qs()),Ts=()=>mn.useContext(Ps);const Rs=await q("react");var _s=(t,n,e)=>{const o=e?.state.error&&typeof t.throwOnError=="function"?Et(t.throwOnError,[e.state.error,e]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||o)&&(n.isReset()||(t.retryOnMount=!1))},Fs=t=>{Rs.useEffect(()=>{t.clearReset()},[t])},Ks=({result:t,errorResetBoundary:n,throwOnError:e,query:o,suspense:s})=>t.isError&&!n.isReset()&&!t.isFetching&&o&&(s&&t.data===void 0||Et(e,[t.error,o])),ks=t=>{if(t.suspense){const e=s=>s==="static"?s:Math.max(s??1e3,1e3),o=t.staleTime;t.staleTime=typeof o=="function"?(...s)=>e(o(...s)):e(o),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},Ms=(t,n)=>t.isLoading&&t.isFetching&&!n,As=(t,n)=>t?.suspense&&n.isPending,Yt=(t,n,e)=>n.fetchOptimistic(t).catch(()=>{e.clearReset()});const nt=await q("react");function wn(t,n,e){const o=Os(),s=Ts(),r=U(),c=r.defaultQueryOptions(t);r.getDefaultOptions().queries?._experimental_beforeQuery?.(c);const i=r.getQueryCache().get(c.queryHash);c._optimisticResults=o?"isRestoring":"optimistic",ks(c),_s(c,s,i),Fs(s);const a=!r.getQueryCache().get(c.queryHash),[u]=nt.useState(()=>new n(r,c)),l=u.getOptimisticResult(c),d=!o&&t.subscribed!==!1;if(nt.useSyncExternalStore(nt.useCallback(h=>{const g=d?u.subscribe(ct.batchCalls(h)):st;return u.updateResult(),g},[u,d]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),nt.useEffect(()=>{u.setOptions(c)},[c,u]),As(c,l))throw Yt(c,u,s);if(Ks({result:l,errorResetBoundary:s,throwOnError:c.throwOnError,query:i,suspense:c.suspense}))throw l.error;return r.getDefaultOptions().queries?._experimental_afterQuery?.(c,l),c.experimental_prefetchInRender&&!wt.isServer()&&Ms(l,o)&&(a?Yt(c,u,s):i?.promise)?.catch(st).finally(()=>{u.updateResult()}),c.notifyOnChangeProps?l:u.trackResult(l)}function $s(t,n){return wn(t,yn)}const G=await q("react");function M(t,n){const e=U(),[o]=G.useState(()=>new Es(e,t));G.useEffect(()=>{o.setOptions(t)},[o,t]);const s=G.useSyncExternalStore(G.useCallback(c=>o.subscribe(ct.batchCalls(c)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),r=G.useCallback((c,i)=>{o.mutate(c,i).catch(st)},[o]);if(s.error&&Et(o.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:r,mutateAsync:s.mutate}}function xs(t,n){return wn(t,Ss)}const{useEffect:Qs,useRef:Ns}=await q("react");function Bs(t){const{children:n,config:e,initialState:o,reconnectOnMount:s=!0}=t,{onMount:r}=ys(e,{initialState:o,reconnectOnMount:s});e._internal.ssr||r();const c=Ns(!0);return Qs(()=>{if(c.current&&e._internal.ssr)return r(),()=>{c.current=!1}},[]),n}const{createContext:js,createElement:Xt}=await q("react"),bn=js(void 0);function _i(t){const{children:n,config:e}=t,o={value:e};return Xt(Bs,t,Xt(bn.Provider,o,n))}const Ds="2.19.5",Us=()=>`wagmi@${Ds}`;class Hs extends Dn{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiError"})}get docsBaseUrl(){return"https://wagmi.sh/react"}get version(){return Us()}}class Gs extends Hs{constructor(){super("`useConfig` must be used within `WagmiProvider`.",{docsPath:"/api/WagmiProvider"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiProviderNotFoundError"})}}const{useContext:Ws}=await q("react");function m(t={}){const n=t.config??Ws(bn);if(!n)throw new Gs;return n}function zs(t,n){const{onChange:e}=n;return t._internal.chains.subscribe((o,s)=>{e(o,s)})}var Cn={exports:{}},In={},vn={exports:{}},Sn={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* use-sync-external-store-shim.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var j=en;function Ls(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var Vs=typeof Object.is=="function"?Object.is:Ls,Js=j.useState,Ys=j.useEffect,Xs=j.useLayoutEffect,Zs=j.useDebugValue;function tr(t,n){var e=n(),o=Js({inst:{value:e,getSnapshot:n}}),s=o[0].inst,r=o[1];return Xs(function(){s.value=e,s.getSnapshot=n,pt(s)&&r({inst:s})},[t,e,n]),Ys(function(){return pt(s)&&r({inst:s}),t(function(){pt(s)&&r({inst:s})})},[t]),Zs(e),e}function pt(t){var n=t.getSnapshot;t=t.value;try{var e=n();return!Vs(t,e)}catch{return!0}}function nr(t,n){return n()}var er=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?nr:tr;Sn.useSyncExternalStore=j.useSyncExternalStore!==void 0?j.useSyncExternalStore:er;vn.exports=Sn;var or=vn.exports;/**
|
|
10
|
+
* @license React
|
|
11
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var it=en,sr=or;function rr(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var cr=typeof Object.is=="function"?Object.is:rr,ir=sr.useSyncExternalStore,ar=it.useRef,ur=it.useEffect,lr=it.useMemo,dr=it.useDebugValue;In.useSyncExternalStoreWithSelector=function(t,n,e,o,s){var r=ar(null);if(r.current===null){var c={hasValue:!1,value:null};r.current=c}else c=r.current;r=lr(function(){function a(g){if(!u){if(u=!0,l=g,g=o(g),s!==void 0&&c.hasValue){var S=c.value;if(s(S,g))return d=S}return d=g}if(S=d,cr(l,g))return S;var w=o(g);return s!==void 0&&s(S,w)?(l=g,S):(l=g,d=w)}var u=!1,l,d,h=e===void 0?null:e;return[function(){return a(n())},h===null?void 0:function(){return a(h())}]},[n,e,o,s]);var i=ir(t,r[0],r[1]);return ur(function(){c.hasValue=!0,c.value=i},[i]),dr(i),i};Cn.exports=In;var Pt=Cn.exports;const{useMemo:fr,useRef:hr}=await q("react"),mt=t=>typeof t=="object"&&!Array.isArray(t);function yr(t,n,e=n,o=B){const s=hr([]),r=Pt.useSyncExternalStoreWithSelector(t,n,e,c=>c,(c,i)=>{if(mt(c)&&mt(i)&&s.current.length){for(const a of s.current)if(!o(c[a],i[a]))return!1;return!0}return o(c,i)});return fr(()=>{if(mt(r)){const c={...r};let i={};for(const[a,u]of Object.entries(c))i={...i,[a]:{configurable:!1,enumerable:!0,get:()=>(s.current.includes(a)||s.current.push(a),u)}};return Object.defineProperties(c,i),c}return r},[r])}function Tt(t={}){const n=m(t);return yr(e=>un(n,{onChange:e}),()=>Ot(n))}const{useEffect:gr}=await q("react");function Fi(t={}){const{onConnect:n,onDisconnect:e}=t,o=m(t);gr(()=>un(o,{onChange(s,r){if((r.status==="reconnecting"||r.status==="connecting"&&r.address===void 0)&&s.status==="connected"){const{address:c,addresses:i,chain:a,chainId:u,connector:l}=s,d=r.status==="reconnecting"||r.status===void 0;n?.({address:c,addresses:i,chain:a,chainId:u,connector:l,isReconnected:d})}else r.status==="connected"&&s.status==="disconnected"&&e?.()}}),[o,n,e])}function Rt(t,n){return Un(t,n)}function En(t){return JSON.stringify(t,(n,e)=>pr(e)?Object.keys(e).sort().reduce((o,s)=>(o[s]=e[s],o),{}):typeof e=="bigint"?e.toString():e)}function pr(t){if(!Zt(t))return!1;const n=t.constructor;if(typeof n>"u")return!0;const e=n.prototype;return!(!Zt(e)||!e.hasOwnProperty("isPrototypeOf"))}function Zt(t){return Object.prototype.toString.call(t)==="[object Object]"}function E(t){const{_defaulted:n,behavior:e,gcTime:o,initialData:s,initialDataUpdatedAt:r,maxPages:c,meta:i,networkMode:a,queryFn:u,queryHash:l,queryKey:d,queryKeyHashFn:h,retry:g,retryDelay:S,structuralSharing:w,getPreviousPageParam:O,getNextPageParam:_,initialPageParam:T,_optimisticResults:R,enabled:A,notifyOnChangeProps:f,placeholderData:p,refetchInterval:y,refetchIntervalInBackground:I,refetchOnMount:C,refetchOnReconnect:F,refetchOnWindowFocus:$,retryOnMount:Q,select:K,staleTime:N,suspense:Pn,throwOnError:_t,config:yi,connector:gi,query:pi,...Tn}=t;return Tn}function mr(t,n={}){return{async queryFn({queryKey:e}){const{scopeKey:o,...s}=e[1];return await xe(t,{...s})??null},queryKey:wr(n)}}function wr(t){return["call",E(t)]}function br(t){return{mutationFn(n){return Qe(t,n)},mutationKey:["connect"]}}function Cr(t){return{mutationFn(n){return je(t,n)},mutationKey:["deployContract"]}}function Ir(t){return{mutationFn(n){return De(t,n)},mutationKey:["disconnect"]}}function vr(t,n={}){return{async queryFn({queryKey:e}){const{scopeKey:o,...s}=e[1];return He(t,s)},queryKey:Sr(n)}}function Sr(t={}){return["estimateFeesPerGas",E(t)]}function Er(t,n={}){return{async queryFn({queryKey:e}){const{connector:o}=n,{account:s,scopeKey:r,...c}=e[1];if(!s&&!o)throw new Error("account or connector is required");return Ge(t,{account:s,connector:o,...c})},queryKey:Or(n)}}function Or(t={}){const{connector:n,...e}=t;return["estimateGas",E(e)]}function qr(t,n={}){return{async queryFn({queryKey:e}){const{scopeKey:o,...s}=e[1];return We(t,s)},queryKey:Pr(n)}}function Pr(t={}){return["estimateMaxPriorityFeePerGas",E(t)]}function Tr(t,n={}){return{async queryFn({queryKey:e}){const{address:o,scopeKey:s,...r}=e[1];if(!o)throw new Error("address is required");return await Ye(t,{...r,address:o})??null},queryKey:Rr(n)}}function Rr(t={}){return["balance",E(t)]}function _r(t,n={}){return{async queryFn({queryKey:e}){const{scopeKey:o,...s}=e[1];return await Xe(t,s)??null},queryKey:Fr(n)}}function Fr(t={}){return["block",E(t)]}function Kr(t,n={}){return{gcTime:0,async queryFn({queryKey:e}){const{scopeKey:o,...s}=e[1];return await Ze(t,s)??null},queryKey:kr(n)}}function kr(t={}){return["blockNumber",E(t)]}function Mr(t,n={}){return{async queryFn({queryKey:e}){const{scopeKey:o,...s}=e[1];return await to(t,s)??null},queryKey:Ar(n)}}function Ar(t={}){return["blockTransactionCount",E(t)]}function $r(t,n={}){return{async queryFn({queryKey:e}){const{address:o,scopeKey:s,...r}=e[1];if(!o)throw new Error("address is required");return await no(t,{...r,address:o})??null},queryKey:xr(n)}}function xr(t){return["getBytecode",E(t)]}function Qr(t,n){return{async queryFn({queryKey:e}){const{scopeKey:o,...s}=e[1];return await eo(t,s)},queryKey:Nr(n),retry(e,o){return o instanceof D?!1:e<3}}}function Nr(t){return["callsStatus",E(t)]}function Br(t,n={}){return{async queryFn({queryKey:e}){const{scopeKey:o,...s}=e[1];return await oo(t,s)},queryKey:jr(n),retry(e,o){return o instanceof D?!1:e<3}}}function jr(t={}){return["capabilities",E(t)]}function Dr(t,n={}){return{gcTime:0,async queryFn({queryKey:e}){const{connector:o}=n,{connectorUid:s,scopeKey:r,...c}=e[1];return k(t,{...c,connector:o})},queryKey:Ur(n)}}function Ur(t={}){const{connector:n,...e}=t;return["connectorClient",{...E(e),connectorUid:n?.uid}]}function Hr(t,n={}){return{async queryFn({queryKey:e}){const{name:o,scopeKey:s,...r}=e[1];if(!o)throw new Error("name is required");return so(t,{...r,name:o})},queryKey:Gr(n)}}function Gr(t={}){return["ensAddress",E(t)]}function Wr(t,n={}){return{async queryFn({queryKey:e}){const{name:o,scopeKey:s,...r}=e[1];if(!o)throw new Error("name is required");return ro(t,{...r,name:o})},queryKey:zr(n)}}function zr(t={}){return["ensAvatar",E(t)]}function Lr(t,n={}){return{async queryFn({queryKey:e}){const{address:o,scopeKey:s,...r}=e[1];if(!o)throw new Error("address is required");return co(t,{...r,address:o})},queryKey:Vr(n)}}function Vr(t={}){return["ensName",E(t)]}function Jr(t,n={}){return{async queryFn({queryKey:e}){const{name:o,scopeKey:s,...r}=e[1];if(!o)throw new Error("name is required");return io(t,{...r,name:o})},queryKey:Yr(n)}}function Yr(t={}){return["ensResolver",E(t)]}function Xr(t,n={}){return{async queryFn({queryKey:e}){const{key:o,name:s,scopeKey:r,...c}=e[1];if(!o||!s)throw new Error("key and name are required");return ao(t,{...c,key:o,name:s})},queryKey:Zr(n)}}function Zr(t={}){return["ensText",E(t)]}function tc(t,n={}){return{async queryFn({queryKey:e}){const{blockCount:o,rewardPercentiles:s,scopeKey:r,...c}=e[1];if(!o)throw new Error("blockCount is required");if(!s)throw new Error("rewardPercentiles is required");return await uo(t,{...c,blockCount:o,rewardPercentiles:s})??null},queryKey:nc(n)}}function nc(t={}){return["feeHistory",E(t)]}function ec(t,n={}){return{async queryFn({queryKey:e}){const{scopeKey:o,...s}=e[1];return await lo(t,s)??null},queryKey:oc(n)}}function oc(t={}){return["gasPrice",E(t)]}function sc(t,n={}){return{async queryFn({queryKey:e}){const{address:o,scopeKey:s,storageKeys:r,...c}=e[1];if(!o||!r)throw new Error("address and storageKeys are required");return fo(t,{...c,address:o,storageKeys:r})},queryKey:rc(n)}}function rc(t){return["getProof",E(t)]}function cc(t,n={}){return{queryFn({queryKey:e}){const{address:o,slot:s,scopeKey:r,...c}=e[1];if(!o||!s)throw new Error("address and slot are required");return yo(t,{...c,address:o,slot:s})},queryKey:ic(n)}}function ic(t){return["getStorageAt",E(t)]}function ac(t,n={}){return{async queryFn({queryKey:e}){const{address:o,scopeKey:s,...r}=e[1];if(!o)throw new Error("address is required");return go(t,{...r,address:o})},queryKey:uc(n)}}function uc(t={}){return["token",E(t)]}function lc(t,n={}){return{async queryFn({queryKey:e}){const{blockHash:o,blockNumber:s,blockTag:r,hash:c,index:i}=e[1];if(!o&&!s&&!r&&!c)throw new Error("blockHash, blockNumber, blockTag, or hash is required");if(!c&&!i)throw new Error("index is required for blockHash, blockNumber, or blockTag");const{scopeKey:a,...u}=e[1];return po(t,u)},queryKey:dc(n)}}function dc(t={}){return["transaction",E(t)]}function fc(t,n={}){return{async queryFn({queryKey:e}){const{hash:o,transactionReceipt:s,scopeKey:r,...c}=e[1];if(!o&&!s)throw new Error("hash or transactionReceipt is required");return await mo(t,{hash:o,transactionReceipt:s,...c})??null},queryKey:hc(n)}}function hc(t={}){return["transactionConfirmations",E(t)]}function yc(t,n={}){return{async queryFn({queryKey:e}){const{address:o,scopeKey:s,...r}=e[1];if(!o)throw new Error("address is required");return await wo(t,{...r,address:o})??null},queryKey:gc(n)}}function gc(t={}){return["transactionCount",E(t)]}function pc(t,n={}){return{queryFn({queryKey:e}){const{hash:o,scopeKey:s,...r}=e[1];if(!o)throw new Error("hash is required");return bo(t,{...r,hash:o})},queryKey:mc(n)}}function mc(t){return["getTransactionReceipt",E(t)]}function wc(t,n={}){return{gcTime:0,async queryFn({queryKey:e}){const{connector:o}=n,{connectorUid:s,scopeKey:r,...c}=e[1];return Io(t,{...c,connector:o})},queryKey:bc(n)}}function bc(t={}){const{connector:n,...e}=t;return["walletClient",{...E(e),connectorUid:n?.uid}]}function Cc(t,n){return{...n.query,async queryFn({pageParam:e,queryKey:o}){const{contracts:s}=n,{cacheKey:r,scopeKey:c,...i}=o[1];return await L(t,{...i,contracts:s(e)})},queryKey:Ic(n)}}function Ic(t){const{contracts:n,query:e,...o}=t;return["infiniteReadContracts",E(o)]}function vc(t,n={}){return{queryFn({queryKey:e}){const{scopeKey:o,to:s,...r}=e[1];if(!s)throw new Error("to is required");return vo(t,{to:s,...r})},queryKey:Sc(n)}}function Sc(t){return["prepareTransactionRequest",E(t)]}function Ec(t,n={}){return{async queryFn({queryKey:e}){const o=n.abi;if(!o)throw new Error("abi is required");const{functionName:s,scopeKey:r,...c}=e[1],i=(()=>{const a=e[1];if(a.address)return{address:a.address};if(a.code)return{code:a.code};throw new Error("address or code is required")})();if(!s)throw new Error("functionName is required");return rn(t,{abi:o,functionName:s,args:c.args,...i,...c})},queryKey:Oc(n)}}function Oc(t={}){const{abi:n,...e}=t;return["readContract",E(e)]}function qc(t,n={}){return{async queryFn({queryKey:e}){const o=[],s=e[1].contracts.length;for(let i=0;i<s;i++){const a=e[1].contracts[i],u=(n.contracts?.[i]).abi;o.push({...a,abi:u})}const{scopeKey:r,...c}=e[1];return L(t,{...c,contracts:o})},queryKey:Pc(n)}}function Pc(t={}){const n=[];for(const e of t.contracts??[]){const{abi:o,...s}=e;n.push({...s,chainId:s.chainId??t.chainId})}return["readContracts",E({...t,contracts:n})]}function Tc(t){return{mutationFn(n){return an(t,n)},mutationKey:["reconnect"]}}function Rc(t){return{mutationFn(n){return So(t,n)},mutationKey:["sendCalls"]}}function _c(t){return{mutationFn(n){return Eo(t,n)},mutationKey:["sendCallsSync"]}}function Fc(t){return{mutationFn(n){return Oo(t,n)},mutationKey:["sendTransaction"]}}function Kc(t){return{mutationFn(n){return qo(t,n)},mutationKey:["sendTransactionSync"]}}function kc(t){return{mutationFn(n){return Po(t,n)},mutationKey:["showCallsStatus"]}}function Mc(t){return{mutationFn(n){return To(t,n)},mutationKey:["signMessage"]}}function Ac(t){return{mutationFn(n){return Ro(t,n)},mutationKey:["signTypedData"]}}function $c(t,n={}){return{async queryFn({queryKey:e}){const{abi:o,connector:s}=n;if(!o)throw new Error("abi is required");const{scopeKey:r,...c}=e[1],{address:i,functionName:a}=c;if(!i)throw new Error("address is required");if(!a)throw new Error("functionName is required");return _o(t,{abi:o,connector:s,...c})},queryKey:xc(n)}}function xc(t={}){const{abi:n,connector:e,...o}=t;return["simulateContract",E(o)]}function Qc(t){return{mutationFn(n){return Fo(t,n)},mutationKey:["switchAccount"]}}function Nc(t){return{mutationFn(n){return Ko(t,n)},mutationKey:["switchChain"]}}function Bc(t,n={}){return{async queryFn({queryKey:e}){const{address:o,message:s,signature:r}=e[1];if(!o||!s||!r)throw new Error("address, message, and signature are required");const{scopeKey:c,...i}=e[1];return await ko(t,i)??null},queryKey:jc(n)}}function jc(t){return["verifyMessage",E(t)]}function Dc(t,n={}){return{async queryFn({queryKey:e}){const{address:o,message:s,primaryType:r,signature:c,types:i,scopeKey:a,...u}=e[1];if(!o)throw new Error("address is required");if(!s)throw new Error("message is required");if(!r)throw new Error("primaryType is required");if(!c)throw new Error("signature is required");if(!i)throw new Error("types is required");return await Mo(t,{...u,address:o,message:s,primaryType:r,signature:c,types:i})??null},queryKey:Uc(n)}}function Uc(t){return["verifyTypedData",E(t)]}function Hc(t,n){return{async queryFn({queryKey:e}){const{scopeKey:o,id:s,...r}=e[1];if(!s)throw new Error("id is required");return await Ao(t,{...r,id:s})},queryKey:Gc(n),retry(e,o){return o instanceof D?!1:e<3}}}function Gc(t){return["callsStatus",E(t)]}function Wc(t,n={}){return{async queryFn({queryKey:e}){const{hash:o,...s}=e[1];if(!o)throw new Error("hash is required");return xo(t,{...s,onReplaced:n.onReplaced,hash:o})},queryKey:zc(n)}}function zc(t={}){const{onReplaced:n,...e}=t;return["waitForTransactionReceipt",E(e)]}function Lc(t){return{mutationFn(n){return Qo(t,n)},mutationKey:["watchAsset"]}}function Vc(t){return{mutationFn(n){return Lo(t,n)},mutationKey:["writeContract"]}}function P(t){const n=$s({...t,queryKeyHashFn:En});return n.queryKey=t.queryKey,n}function Jc(t){const n=xs({...t,queryKeyHashFn:En});return n.queryKey=t.queryKey,n}const{useSyncExternalStore:Yc}=await q("react");function v(t={}){const n=m(t);return Yc(e=>jo(n,{onChange:e}),()=>xt(n),()=>xt(n))}function Ki(t={}){const{address:n,query:e={}}=t,o=m(t),s=v({config:o}),r=Tr(o,{...t,chainId:t.chainId??s}),c=!!(n&&(e.enabled??!0));return P({...e,...r,enabled:c})}const{useEffect:Xc}=await q("react");function Zc(t={}){const{enabled:n=!0,onBlock:e,config:o,...s}=t,r=m(t),c=v({config:r}),i=t.chainId??c;Xc(()=>{if(n&&e)return Bo(r,{...s,chainId:i,onBlock:e})},[i,r,n,e,s.blockTag,s.emitMissed,s.emitOnBegin,s.includeTransactions,s.onError,s.poll,s.pollingInterval,s.syncConnectedChain])}function ki(t={}){const{query:n={},watch:e}=t,o=m(t),s=U(),r=v({config:o}),c=t.chainId??r,i=_r(o,{...t,chainId:c}),a=!!(n.enabled??!0);return Zc({config:t.config,chainId:t.chainId,...typeof e=="object"?e:{},enabled:!!(a&&(typeof e=="object"?e.enabled:e)),onBlock(u){s.setQueryData(i.queryKey,u)}}),P({...n,...i,enabled:a})}const{useEffect:ti}=await q("react");function ni(t={}){const{enabled:n=!0,onBlockNumber:e,config:o,...s}=t,r=m(t),c=v({config:r}),i=t.chainId??c;ti(()=>{if(n&&e)return No(r,{...s,chainId:i,onBlockNumber:e})},[i,r,n,e,s.onError,s.emitMissed,s.emitOnBegin,s.poll,s.pollingInterval,s.syncConnectedChain])}function Mi(t={}){const{query:n={},watch:e}=t,o=m(t),s=U(),r=v({config:o}),c=t.chainId??r,i=Kr(o,{...t,chainId:c});return ni({config:t.config,chainId:t.chainId,...typeof e=="object"?e:{},enabled:!!((n.enabled??!0)&&(typeof e=="object"?e.enabled:e)),onBlockNumber(a){s.setQueryData(i.queryKey,a)}}),P({...n,...i})}function Ai(t={}){const{query:n={}}=t,e=m(t),o=v({config:e}),s=t.chainId??o,r=Mr(e,{...t,chainId:s});return P({...n,...r})}function $i(t={}){const{address:n,query:e={}}=t,o=m(t),s=v({config:o}),r=$r(o,{...t,chainId:t.chainId??s}),c=!!(n&&(e.enabled??!0));return P({...e,...r,enabled:c})}function xi(t={}){const{query:n={}}=t,e=m(t),o=v({config:e}),s=mr(e,{...t,chainId:t.chainId??o});return P({...n,...s})}function Qi(t){const{query:n={}}=t,e=m(t),o=Qr(e,t);return P({...n,...o})}function Ni(t={}){const{account:n,query:e={}}=t,{address:o}=Tt(),s=m(t),r=Br(s,{...t,account:n??o});return P({...e,...r})}const{useSyncExternalStore:ei}=await q("react");function oi(t={}){const n=m(t);return ei(e=>zs(n,{onChange:e}),()=>Qt(n),()=>Qt(n))}function Bi(t={}){const n=m(t);return Pt.useSyncExternalStoreWithSelector(e=>Do(n,{onChange:e}),()=>rt(n,t),()=>rt(n,t),e=>e,(e,o)=>e?.uid===o?.uid)}const{useSyncExternalStore:si}=await q("react");function ri(t={}){const n=m(t);return si(e=>Ho(n,{onChange:e}),()=>Nt(n),()=>Nt(n))}const{useEffect:ci}=await q("react");function ji(t={}){const{mutation:n}=t,e=m(t),o=br(e),{mutate:s,mutateAsync:r,...c}=M({...n,...o});return ci(()=>e.subscribe(({status:i})=>i,(i,a)=>{a==="connected"&&i==="disconnected"&&c.reset()}),[e,c.reset]),{...c,connect:s,connectAsync:r,connectors:ri({config:e})}}const{useSyncExternalStore:ii}=await q("react");function On(t={}){const n=m(t);return ii(e=>Uo(n,{onChange:e}),()=>bt(n),()=>bt(n))}const{useEffect:ai,useRef:ui}=await q("react");function qn(t={}){const{query:n={},...e}=t,o=m(e),s=U(),{address:r,connector:c,status:i}=Tt({config:o}),a=v({config:o}),u=t.connector??c,{queryKey:l,...d}=Dr(o,{...t,chainId:t.chainId??a,connector:u}),h=!!((i==="connected"||i==="reconnecting"&&u?.getProvider)&&(n.enabled??!0)),g=ui(r);return ai(()=>{const S=g.current;!r&&S?(s.removeQueries({queryKey:l}),g.current=void 0):r!==S&&(s.invalidateQueries({queryKey:l}),g.current=r)},[r,s]),P({...n,...d,queryKey:l,enabled:h,staleTime:Number.POSITIVE_INFINITY})}function Di(t={}){const{mutation:n}=t,e=m(t),o=Cr(e),{mutate:s,mutateAsync:r,...c}=M({...n,...o});return{...c,deployContract:s,deployContractAsync:r}}function Ui(t={}){const{mutation:n}=t,e=m(t),o=Ir(e),{mutate:s,mutateAsync:r,...c}=M({...n,...o});return{...c,connectors:On({config:e}).map(i=>i.connector),disconnect:s,disconnectAsync:r}}function Hi(t={}){const{name:n,query:e={}}=t,o=m(t),s=v({config:o}),r=Hr(o,{...t,chainId:t.chainId??s}),c=!!(n&&(e.enabled??!0));return P({...e,...r,enabled:c})}function Gi(t={}){const{name:n,query:e={}}=t,o=m(t),s=v({config:o}),r=Wr(o,{...t,chainId:t.chainId??s}),c=!!(n&&(e.enabled??!0));return P({...e,...r,enabled:c})}function Wi(t={}){const{address:n,query:e={}}=t,o=m(t),s=v({config:o}),r=Lr(o,{...t,chainId:t.chainId??s}),c=!!(n&&(e.enabled??!0));return P({...e,...r,enabled:c})}function zi(t={}){const{name:n,query:e={}}=t,o=m(t),s=v({config:o}),r=Jr(o,{...t,chainId:t.chainId??s}),c=!!(n&&(e.enabled??!0));return P({...e,...r,enabled:c})}function Li(t={}){const{key:n,name:e,query:o={}}=t,s=m(t),r=v({config:s}),c=Xr(s,{...t,chainId:t.chainId??r}),i=!!(n&&e&&(o.enabled??!0));return P({...o,...c,enabled:i})}function Vi(t={}){const{query:n={}}=t,e=m(t),o=v({config:e}),s=vr(e,{...t,chainId:t.chainId??o});return P({...n,...s})}function Ji(t={}){const{connector:n,query:e={}}=t,o=m(t),{data:s}=qn({config:o,connector:n,query:{enabled:t.account===void 0}}),r=t.account??s?.account,c=v({config:o}),i=Er(o,{...t,account:r,chainId:t.chainId??c,connector:n}),a=!!((r||n)&&(e.enabled??!0));return P({...e,...i,enabled:a})}function Yi(t={}){const{query:n={}}=t,e=m(t),o=v({config:e}),s=qr(e,{...t,chainId:t.chainId??o});return P({...n,...s})}function Xi(t={}){const{blockCount:n,rewardPercentiles:e,query:o={}}=t,s=m(t),r=v({config:s}),c=tc(s,{...t,chainId:t.chainId??r}),i=!!(n&&e&&(o.enabled??!0));return P({...o,...c,enabled:i})}function Zi(t={}){const{query:n={}}=t,e=m(t),o=v({config:e}),s=t.chainId??o,r=ec(e,{...t,chainId:s});return P({...n,...r})}function ta(t){const{contracts:n=[],query:e}=t,o=m(t),s=v({config:o}),r=Cc(o,{...t,chainId:s,contracts:n,query:e});return Jc({...e,...r,initialPageParam:r.initialPageParam,structuralSharing:e.structuralSharing??Rt})}function na(t={}){const{to:n,query:e={}}=t,o=m(t),s=v({config:o}),r=vc(o,{...t,chainId:t.chainId??s}),c=!!(n&&(e.enabled??!0));return P({...e,...r,enabled:c})}function ea(t={}){const{address:n,storageKeys:e,query:o={}}=t,s=m(t),r=v({config:s}),c=sc(s,{...t,chainId:t.chainId??r}),i=!!(n&&e&&(o.enabled??!0));return P({...o,...c,enabled:i})}function oa(t={}){const n=m(t);return Pt.useSyncExternalStoreWithSelector(e=>zo(n,{onChange:e}),()=>Ct(n,t),()=>Ct(n,t),e=>e,(e,o)=>e?.uid===o?.uid)}function sa(t={}){const{abi:n,address:e,functionName:o,query:s={}}=t,r=t.code,c=m(t),i=v({config:c}),a=Ec(c,{...t,chainId:t.chainId??i}),u=!!((e||r)&&n&&o&&(s.enabled??!0));return P({...s,...a,enabled:u,structuralSharing:s.structuralSharing??Rt})}const{useMemo:tn}=await q("react");function ra(t={}){const{contracts:n=[],query:e={}}=t,o=m(t),s=v({config:o}),r=tn(()=>{if(n.length===0)return;const a=n[0].chainId;if(n.every(u=>u.chainId===a))return a},[n]),c=qc(o,{...t,chainId:r??s}),i=tn(()=>{let a=!1;for(const u of n){const{abi:l,address:d,functionName:h}=u;if(!l||!d||!h){a=!1;break}a=!0}return!!(a&&(e.enabled??!0))},[n,e.enabled]);return P({...c,...e,enabled:i,structuralSharing:e.structuralSharing??Rt})}function ca(t={}){const{mutation:n}=t,e=m(t),o=Tc(e),{mutate:s,mutateAsync:r,...c}=M({...n,...o});return{...c,connectors:e.connectors,reconnect:s,reconnectAsync:r}}function ia(t={}){const{mutation:n}=t,e=m(t),o=Rc(e),{mutate:s,mutateAsync:r,...c}=M({...n,...o});return{...c,sendCalls:s,sendCallsAsync:r}}function aa(t={}){const{mutation:n}=t,e=m(t),o=_c(e),{mutate:s,mutateAsync:r,...c}=M({...n,...o});return{...c,sendCallsSync:s,sendCallsSyncAsync:r}}function ua(t={}){const{mutation:n}=t,e=m(t),o=Fc(e),{mutate:s,mutateAsync:r,...c}=M({...n,...o});return{...c,sendTransaction:s,sendTransactionAsync:r}}function la(t={}){const{mutation:n}=t,e=m(t),o=Kc(e),{mutate:s,mutateAsync:r,...c}=M({...n,...o});return{...c,sendTransactionSync:s,sendTransactionSyncAsync:r}}function da(t={}){const{mutation:n}=t,e=m(t),o=kc(e),{mutate:s,mutateAsync:r,...c}=M({...n,...o});return{...c,showCallsStatus:s,showCallsStatusAsync:r}}function fa(t={}){const{mutation:n}=t,e=m(t),o=Mc(e),{mutate:s,mutateAsync:r,...c}=M({...n,...o});return{...c,signMessage:s,signMessageAsync:r}}function ha(t={}){const{mutation:n}=t,e=m(t),o=Ac(e),{mutate:s,mutateAsync:r,...c}=M({...n,...o});return{...c,signTypedData:s,signTypedDataAsync:r}}function ya(t={}){const{abi:n,address:e,connector:o,functionName:s,query:r={}}=t,c=m(t),{data:i}=qn({config:c,connector:o,query:{enabled:t.account===void 0}}),a=v({config:c}),u=$c(c,{...t,account:t.account??i?.account,chainId:t.chainId??a}),l=!!(n&&e&&s&&(r.enabled??!0));return P({...r,...u,enabled:l})}function ga(t={}){const{address:n,slot:e,query:o={}}=t,s=m(t),r=v({config:s}),c=cc(s,{...t,chainId:t.chainId??r}),i=!!(n&&e&&(o.enabled??!0));return P({...o,...c,enabled:i})}function pa(t={}){const{mutation:n}=t,e=m(t),o=Qc(e),{mutate:s,mutateAsync:r,...c}=M({...n,...o});return{...c,connectors:On({config:e}).map(i=>i.connector),switchAccount:s,switchAccountAsync:r}}function ma(t={}){const{mutation:n}=t,e=m(t),o=Nc(e),{mutate:s,mutateAsync:r,...c}=M({...n,...o});return{...c,chains:oi({config:e}),switchChain:s,switchChainAsync:r}}function wa(t={}){const{address:n,query:e={}}=t,o=m(t),s=v({config:o}),r=ac(o,{...t,chainId:t.chainId??s}),c=!!(n&&(e.enabled??!0));return P({...e,...r,enabled:c})}function ba(t={}){const{blockHash:n,blockNumber:e,blockTag:o,hash:s,query:r={}}=t,c=m(t),i=v({config:c}),a=lc(c,{...t,chainId:t.chainId??i}),u=!!(!(n&&e&&o&&s)&&(r.enabled??!0));return P({...r,...a,enabled:u})}function Ca(t={}){const{hash:n,transactionReceipt:e,query:o={}}=t,s=m(t),r=v({config:s}),c=fc(s,{...t,chainId:t.chainId??r}),i=!!(!(n&&e)&&(n||e)&&(o.enabled??!0));return P({...o,...c,enabled:i})}function Ia(t={}){const{address:n,query:e={}}=t,o=m(t),s=v({config:o}),r=yc(o,{...t,chainId:t.chainId??s}),c=!!(n&&(e.enabled??!0));return P({...e,...r,enabled:c})}function va(t={}){const{hash:n,query:e={}}=t,o=m(t),s=v({config:o}),r=pc(o,{...t,chainId:t.chainId??s}),c=!!(n&&(e.enabled??!0));return P({...e,...r,enabled:c})}function Sa(t={}){const{address:n,message:e,signature:o,query:s={}}=t,r=m(t),c=v({config:r}),i=Bc(r,{...t,chainId:t.chainId??c}),a=!!(n&&e&&o&&(s.enabled??!0));return P({...s,...i,enabled:a})}function Ea(t={}){const{address:n,message:e,primaryType:o,signature:s,types:r,query:c={}}=t,i=m(t),a=v({config:i}),u=Dc(i,{...t,chainId:t.chainId??a}),l=!!(n&&e&&o&&s&&r&&(c.enabled??!0));return P({...c,...u,enabled:l})}function Oa(t){const{id:n,query:e={}}=t,o=m(t),s=Hc(o,t),r=!!(n&&(e.enabled??!0));return P({...e,...s,enabled:r})}function qa(t={}){const{hash:n,query:e={}}=t,o=m(t),s=v({config:o}),r=Wc(o,{...t,chainId:t.chainId??s}),c=!!(n&&(e.enabled??!0));return P({...e,...r,enabled:c})}const{useEffect:li,useRef:di}=await q("react");function Pa(t={}){const{query:n={},...e}=t,o=m(e),s=U(),{address:r,connector:c,status:i}=Tt({config:o}),a=v({config:o}),u=t.connector??c,{queryKey:l,...d}=wc(o,{...t,chainId:t.chainId??a,connector:t.connector??c}),h=!!((i==="connected"||i==="reconnecting"&&u?.getProvider)&&(n.enabled??!0)),g=di(r);return li(()=>{const S=g.current;!r&&S?(s.removeQueries({queryKey:l}),g.current=void 0):r!==S&&(s.invalidateQueries({queryKey:l}),g.current=r)},[r,s]),P({...n,...d,queryKey:l,enabled:h,staleTime:Number.POSITIVE_INFINITY})}function Ta(t={}){const{mutation:n}=t,e=m(t),o=Lc(e),{mutate:s,mutateAsync:r,...c}=M({...n,...o});return{...c,watchAsset:s,watchAssetAsync:r}}const{useEffect:fi}=await q("react");function Ra(t={}){const{enabled:n=!0,onLogs:e,config:o,...s}=t,r=m(t),c=v({config:r}),i=t.chainId??c;fi(()=>{if(n&&e)return Go(r,{...s,chainId:i,onLogs:e})},[i,r,n,e,s.abi,s.address,s.args,s.batch,s.eventName,s.fromBlock,s.onError,s.poll,s.pollingInterval,s.strict,s.syncConnectedChain])}const{useEffect:hi}=await q("react");function _a(t={}){const{enabled:n=!0,onTransactions:e,config:o,...s}=t,r=m(t),c=v({config:r}),i=t.chainId??c;hi(()=>{if(n&&e)return Wo(r,{...s,chainId:i,onTransactions:e})},[i,r,n,e,s.batch,s.onError,s.poll,s.pollingInterval,s.syncConnectedChain])}function Fa(t={}){const{mutation:n}=t,e=m(t),o=Vc(e),{mutate:s,mutateAsync:r,...c}=M({...n,...o});return{...c,writeContract:s,writeContractAsync:r}}export{Hs as BaseError,et as ChainNotConfiguredError,Kn as ConnectorAccountNotFoundError,Rn as ConnectorAlreadyConnectedError,Fn as ConnectorChainMismatchError,Ma as ConnectorNotFoundError,_n as ConnectorUnavailableReconnectingError,bn as Context,Bs as Hydrate,Aa as ProviderNotFoundError,kn as SwitchChainNotSupportedError,_i as WagmiConfig,bn as WagmiContext,_i as WagmiProvider,Gs as WagmiProviderNotFoundError,Pi as cookieStorage,Ti as cookieToInitialState,Ei as createConfig,Mn as createConnector,ls as createStorage,xa as custom,B as deepEqual,dn as deserialize,qi as fallback,Qa as http,An as injected,ln as mock,fn as noopStorage,Ri as normalizeChainId,hn as parseCookie,us as serialize,Oi as unstable_connector,Tt as useAccount,Fi as useAccountEffect,Ki as useBalance,ki as useBlock,Mi as useBlockNumber,Ai as useBlockTransactionCount,$i as useBytecode,xi as useCall,Qi as useCallsStatus,Ni as useCapabilities,v as useChainId,oi as useChains,Bi as useClient,m as useConfig,ji as useConnect,On as useConnections,qn as useConnectorClient,ri as useConnectors,ta as useContractInfiniteReads,sa as useContractRead,ra as useContractReads,Fa as useContractWrite,Di as useDeployContract,Ui as useDisconnect,Hi as useEnsAddress,Gi as useEnsAvatar,Wi as useEnsName,zi as useEnsResolver,Li as useEnsText,Vi as useEstimateFeesPerGas,Ji as useEstimateGas,Yi as useEstimateMaxPriorityFeePerGas,Vi as useFeeData,Xi as useFeeHistory,Zi as useGasPrice,ta as useInfiniteReadContracts,na as usePrepareTransactionRequest,ea as useProof,oa as usePublicClient,sa as useReadContract,ra as useReadContracts,ca as useReconnect,ia as useSendCalls,aa as useSendCallsSync,ua as useSendTransaction,la as useSendTransactionSync,da as useShowCallsStatus,fa as useSignMessage,ha as useSignTypedData,ya as useSimulateContract,ga as useStorageAt,pa as useSwitchAccount,ma as useSwitchChain,wa as useToken,ba as useTransaction,Ca as useTransactionConfirmations,Ia as useTransactionCount,va as useTransactionReceipt,Sa as useVerifyMessage,Ea as useVerifyTypedData,Oa as useWaitForCallsStatus,qa as useWaitForTransactionReceipt,Pa as useWalletClient,Ta as useWatchAsset,ni as useWatchBlockNumber,Zc as useWatchBlocks,Ra as useWatchContractEvent,_a as useWatchPendingTransactions,Fa as useWriteContract,Ds as version,Na as webSocket};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var u=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function f(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function l(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var t=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};t.prototype=r.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),t}export{f as a,u as c,l as g};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{w as l}from"./core-BGxUaCGc.js";const o=l`<svg
|
|
2
|
+
width="14"
|
|
3
|
+
height="14"
|
|
4
|
+
viewBox="0 0 14 14"
|
|
5
|
+
fill="none"
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
>
|
|
8
|
+
<path
|
|
9
|
+
fill="currentColor"
|
|
10
|
+
fill-rule="evenodd"
|
|
11
|
+
clip-rule="evenodd"
|
|
12
|
+
d="M7.0023 0.875C7.48571 0.875 7.8776 1.26675 7.8776 1.75V6.125H12.2541C12.7375 6.125 13.1294 6.51675 13.1294 7C13.1294 7.48325 12.7375 7.875 12.2541 7.875H7.8776V12.25C7.8776 12.7332 7.48571 13.125 7.0023 13.125C6.51889 13.125 6.12701 12.7332 6.12701 12.25V7.875H1.75054C1.26713 7.875 0.875244 7.48325 0.875244 7C0.875244 6.51675 1.26713 6.125 1.75054 6.125H6.12701V1.75C6.12701 1.26675 6.51889 0.875 7.0023 0.875Z"
|
|
13
|
+
fill="#667dff"
|
|
14
|
+
/></svg
|
|
15
|
+
>`;export{o as addSvg};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{w as l}from"./core-BGxUaCGc.js";const o=l`<svg fill="none" viewBox="0 0 24 24">
|
|
2
|
+
<path
|
|
3
|
+
style="fill: var(--wui-color-accent-100);"
|
|
4
|
+
d="M10.2 6.6a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 6.6a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM10.2 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0Z"
|
|
5
|
+
/>
|
|
6
|
+
</svg>`;export{o as allWalletsSvg};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import{w as t}from"./core-BGxUaCGc.js";const e=t`
|
|
2
|
+
<svg width="36" height="36">
|
|
3
|
+
<path
|
|
4
|
+
d="M28.724 0H7.271A7.269 7.269 0 0 0 0 7.272v21.46A7.268 7.268 0 0 0 7.271 36H28.73A7.272 7.272 0 0 0 36 28.728V7.272A7.275 7.275 0 0 0 28.724 0Z"
|
|
5
|
+
fill="url(#a)"
|
|
6
|
+
/>
|
|
7
|
+
<path
|
|
8
|
+
d="m17.845 8.271.729-1.26a1.64 1.64 0 1 1 2.843 1.638l-7.023 12.159h5.08c1.646 0 2.569 1.935 1.853 3.276H6.434a1.632 1.632 0 0 1-1.638-1.638c0-.909.73-1.638 1.638-1.638h4.176l5.345-9.265-1.67-2.898a1.642 1.642 0 0 1 2.844-1.638l.716 1.264Zm-6.317 17.5-1.575 2.732a1.64 1.64 0 1 1-2.844-1.638l1.17-2.025c1.323-.41 2.398-.095 3.249.931Zm13.56-4.954h4.262c.909 0 1.638.729 1.638 1.638 0 .909-.73 1.638-1.638 1.638h-2.367l1.597 2.772c.45.788.185 1.782-.602 2.241a1.642 1.642 0 0 1-2.241-.603c-2.69-4.666-4.711-8.159-6.052-10.485-1.372-2.367-.391-4.743.576-5.549 1.075 1.846 2.682 4.631 4.828 8.348Z"
|
|
9
|
+
fill="#fff"
|
|
10
|
+
/>
|
|
11
|
+
<defs>
|
|
12
|
+
<linearGradient id="a" x1="18" y1="0" x2="18" y2="36" gradientUnits="userSpaceOnUse">
|
|
13
|
+
<stop stop-color="#18BFFB" />
|
|
14
|
+
<stop offset="1" stop-color="#2072F3" />
|
|
15
|
+
</linearGradient>
|
|
16
|
+
</defs>
|
|
17
|
+
</svg>`;export{e as appStoreSvg};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import{w as l}from"./core-BGxUaCGc.js";const f=l`<svg fill="none" viewBox="0 0 40 40">
|
|
2
|
+
<g clip-path="url(#a)">
|
|
3
|
+
<g clip-path="url(#b)">
|
|
4
|
+
<circle cx="20" cy="19.89" r="20" fill="#000" />
|
|
5
|
+
<g clip-path="url(#c)">
|
|
6
|
+
<path
|
|
7
|
+
fill="#fff"
|
|
8
|
+
d="M28.77 23.3c-.69 1.99-2.75 5.52-4.87 5.56-1.4.03-1.86-.84-3.46-.84-1.61 0-2.12.81-3.45.86-2.25.1-5.72-5.1-5.72-9.62 0-4.15 2.9-6.2 5.42-6.25 1.36-.02 2.64.92 3.47.92.83 0 2.38-1.13 4.02-.97.68.03 2.6.28 3.84 2.08-3.27 2.14-2.76 6.61.75 8.25ZM24.2 7.88c-2.47.1-4.49 2.69-4.2 4.84 2.28.17 4.47-2.39 4.2-4.84Z"
|
|
9
|
+
/>
|
|
10
|
+
</g>
|
|
11
|
+
</g>
|
|
12
|
+
</g>
|
|
13
|
+
<defs>
|
|
14
|
+
<clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath>
|
|
15
|
+
<clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath>
|
|
16
|
+
<clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath>
|
|
17
|
+
</defs>
|
|
18
|
+
</svg>`;export{f as appleSvg};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{w as o}from"./core-BGxUaCGc.js";const e=o`<svg fill="none" viewBox="0 0 14 15">
|
|
2
|
+
<path
|
|
3
|
+
fill="currentColor"
|
|
4
|
+
fill-rule="evenodd"
|
|
5
|
+
d="M7 1.99a1 1 0 0 1 1 1v7.58l2.46-2.46a1 1 0 0 1 1.41 1.42L7.7 13.69a1 1 0 0 1-1.41 0L2.12 9.53A1 1 0 0 1 3.54 8.1L6 10.57V3a1 1 0 0 1 1-1Z"
|
|
6
|
+
clip-rule="evenodd"
|
|
7
|
+
/>
|
|
8
|
+
</svg>`;export{e as arrowBottomSvg};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import{w as C}from"./core-BGxUaCGc.js";const e=C`<svg
|
|
2
|
+
fill="none"
|
|
3
|
+
viewBox="0 0 21 20"
|
|
4
|
+
>
|
|
5
|
+
<path
|
|
6
|
+
fill="currentColor"
|
|
7
|
+
fill-rule="evenodd"
|
|
8
|
+
d="M10.5 2.42908C6.31875 2.42908 2.92859 5.81989 2.92859 10.0034C2.92859 14.1869 6.31875 17.5777 10.5 17.5777C14.6813 17.5777 18.0714 14.1869 18.0714 10.0034C18.0714 5.81989 14.6813 2.42908 10.5 2.42908ZM0.928589 10.0034C0.928589 4.71596 5.21355 0.429077 10.5 0.429077C15.7865 0.429077 20.0714 4.71596 20.0714 10.0034C20.0714 15.2908 15.7865 19.5777 10.5 19.5777C5.21355 19.5777 0.928589 15.2908 0.928589 10.0034ZM10.5 5.75003C11.0523 5.75003 11.5 6.19774 11.5 6.75003L11.5 10.8343L12.7929 9.54137C13.1834 9.15085 13.8166 9.15085 14.2071 9.54137C14.5976 9.9319 14.5976 10.5651 14.2071 10.9556L11.2071 13.9556C10.8166 14.3461 10.1834 14.3461 9.79291 13.9556L6.79291 10.9556C6.40239 10.5651 6.40239 9.9319 6.79291 9.54137C7.18343 9.15085 7.8166 9.15085 8.20712 9.54137L9.50002 10.8343L9.50002 6.75003C9.50002 6.19774 9.94773 5.75003 10.5 5.75003Z"
|
|
9
|
+
clip-rule="evenodd"
|
|
10
|
+
/></svg
|
|
11
|
+
>`;export{e as arrowBottomCircleSvg};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{w as e}from"./core-BGxUaCGc.js";const o=e`<svg fill="none" viewBox="0 0 14 15">
|
|
2
|
+
<path
|
|
3
|
+
fill="currentColor"
|
|
4
|
+
fill-rule="evenodd"
|
|
5
|
+
d="M13 7.99a1 1 0 0 1-1 1H4.4l2.46 2.46a1 1 0 1 1-1.41 1.41L1.29 8.7a1 1 0 0 1 0-1.41L5.46 3.1a1 1 0 0 1 1.41 1.42L4.41 6.99H12a1 1 0 0 1 1 1Z"
|
|
6
|
+
clip-rule="evenodd"
|
|
7
|
+
/>
|
|
8
|
+
</svg>`;export{o as arrowLeftSvg};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{w as l}from"./core-BGxUaCGc.js";const e=l`<svg fill="none" viewBox="0 0 14 15">
|
|
2
|
+
<path
|
|
3
|
+
fill="currentColor"
|
|
4
|
+
fill-rule="evenodd"
|
|
5
|
+
d="M1 7.99a1 1 0 0 1 1-1h7.58L7.12 4.53A1 1 0 1 1 8.54 3.1l4.16 4.17a1 1 0 0 1 0 1.41l-4.16 4.17a1 1 0 1 1-1.42-1.41l2.46-2.46H2a1 1 0 0 1-1-1Z"
|
|
6
|
+
clip-rule="evenodd"
|
|
7
|
+
/>
|
|
8
|
+
</svg>`;export{e as arrowRightSvg};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{w as o}from"./core-BGxUaCGc.js";const e=o`<svg fill="none" viewBox="0 0 14 15">
|
|
2
|
+
<path
|
|
3
|
+
fill="currentColor"
|
|
4
|
+
fill-rule="evenodd"
|
|
5
|
+
d="M7 13.99a1 1 0 0 1-1-1V5.4L3.54 7.86a1 1 0 0 1-1.42-1.41L6.3 2.28a1 1 0 0 1 1.41 0l4.17 4.17a1 1 0 1 1-1.41 1.41L8 5.4v7.59a1 1 0 0 1-1 1Z"
|
|
6
|
+
clip-rule="evenodd"
|
|
7
|
+
/>
|
|
8
|
+
</svg>`;export{e as arrowTopSvg};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as d}from"./index-Ctl4brHr.js";function b(t){var r=t;return!!(r.ctrlKey||r.shiftKey||r.metaKey||r.button&&r.button==1)}function w(t,r){return!!(t.target==="_blank"&&r)}function g(t,r,e,a){var f=this,o=[];return t?(t instanceof Element?o=[t]:"toArray"in t?o=t.toArray():o=t,o.forEach(function(n){n.addEventListener("click",function(i){var c,u,s=r instanceof Function?r(n):r,v=e instanceof Function?e(n):e,h=n.getAttribute("href")||n.getAttributeNS("http://www.w3.org/1999/xlink","href")||n.getAttribute("xlink:href")||((c=n.getElementsByTagName("a")[0])===null||c===void 0?void 0:c.getAttribute("href")),l=d(f.track(s,v,a??{}),(u=f.settings.timeout)!==null&&u!==void 0?u:500);!w(n,h)&&!b(i)&&h&&(i.preventDefault?i.preventDefault():i.returnValue=!1,l.catch(console.error).then(function(){window.location.href=h}).catch(console.error))},!1)}),this):this}function y(t,r,e,a){var f=this;if(!t)return this;t instanceof HTMLFormElement&&(t=[t]);var o=t;return o.forEach(function(n){if(!(n instanceof Element))throw new TypeError("Must pass HTMLElement to trackForm/trackSubmit.");var i=function(u){var s;u.preventDefault?u.preventDefault():u.returnValue=!1;var v=r instanceof Function?r(n):r,h=e instanceof Function?e(n):e,l=d(f.track(v,h,a??{}),(s=f.settings.timeout)!==null&&s!==void 0?s:500);l.catch(console.error).then(function(){n.submit()}).catch(console.error)},c=window.jQuery||window.Zepto;c?c(n).submit(i):n.addEventListener("submit",i,!1)}),this}export{y as form,g as link};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import{w as e}from"./core-BGxUaCGc.js";const o=e`<svg
|
|
2
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
3
|
+
width="12"
|
|
4
|
+
height="13"
|
|
5
|
+
viewBox="0 0 12 13"
|
|
6
|
+
fill="none"
|
|
7
|
+
>
|
|
8
|
+
<path
|
|
9
|
+
fill-rule="evenodd"
|
|
10
|
+
clip-rule="evenodd"
|
|
11
|
+
d="M5.61391 1.57124C5.85142 1.42873 6.14813 1.42873 6.38564 1.57124L11.0793 4.38749C11.9179 4.89067 11.5612 6.17864 10.5832 6.17864H9.96398V10.0358H10.2854C10.6996 10.0358 11.0354 10.3716 11.0354 10.7858C11.0354 11.2 10.6996 11.5358 10.2854 11.5358H1.71416C1.29995 11.5358 0.964172 11.2 0.964172 10.7858C0.964172 10.3716 1.29995 10.0358 1.71416 10.0358H2.03558L2.03558 6.17864H1.41637C0.438389 6.17864 0.0816547 4.89066 0.920263 4.38749L5.61391 1.57124ZM3.53554 6.17864V10.0358H5.24979V6.17864H3.53554ZM6.74976 6.17864V10.0358H8.46401V6.17864H6.74976ZM8.64913 4.67864H3.35043L5.99978 3.089L8.64913 4.67864Z"
|
|
12
|
+
fill="currentColor"
|
|
13
|
+
/></svg
|
|
14
|
+
>`;export{o as bankSvg};
|