@dcl/shop 0.1.0-29002316303.commit-bd5d006 → 0.1.0-29030398160.commit-dedc8ac
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/{AnimatedBackground-DwJTekmu.js → AnimatedBackground-8aI4vJAl.js} +3 -3
- package/assets/{Assets-CPKwtXeG.js → Assets-O86HcPf_.js} +1 -1
- package/assets/{Button-B97LSmPW.js → Button-D1faXtxc.js} +1 -1
- package/assets/{Cart-B4-XSYhj.js → Cart-wT4YY2XB.js} +1 -1
- package/assets/{CircularProgress-BtAdS3mK.js → CircularProgress-ByISsJtD.js} +1 -1
- package/assets/{Collection-BITbBunr.js → Collection-B-SrzrlP.js} +1 -1
- package/assets/{Creator-DpWvb_eV.js → Creator-3SRIb5GI.js} +1 -1
- package/assets/{ExchangeController-CLNl7X0L.js → ExchangeController-CtvD9TxU.js} +1 -1
- package/assets/{GetCredits-XZdYVDK_.js → GetCredits-BntbDm9-.js} +2 -2
- package/assets/{HelpersUtil-U7ylXlSU.js → HelpersUtil-zGctDzqI.js} +1 -1
- package/assets/{ImportListings-vVpgd0RJ.js → ImportListings-DvqpDa-s.js} +1 -1
- package/assets/ItemDetail-CjSWRE3L.js +2 -0
- package/assets/ItemDetail-eaGx2XMJ.css +1 -0
- package/assets/{Market-D9b86TWl.js → Market-Hqywp2wQ.js} +1 -1
- package/assets/{MenuItem-BaS9dwAb.js → MenuItem-BzIPsU3-.js} +1 -1
- package/assets/{MyAssets-LesZayzn.js → MyAssets-nfsXXyUv.js} +1 -1
- package/assets/{MyFavorites-BFGd3qul.js → MyFavorites-B6_8hr5-.js} +1 -1
- package/assets/{MyPurchases-4O1sYgPa.js → MyPurchases-33hyTefC.js} +1 -1
- package/assets/{NotFound-jVMYZTzX.js → NotFound-DXluG5-7.js} +1 -1
- package/assets/{RealCheckout-Emv2rnKJ.js → RealCheckout-tQms6dAo.js} +1 -1
- package/assets/{ShopFooterInner-B7Kra_gV.js → ShopFooterInner-DV3X__jb.js} +2 -2
- package/assets/{Success-CL0-vvGw.js → Success-BblXOFEG.js} +1 -1
- package/assets/{SvgIcon-Bjkj3_CR.js → SvgIcon-CVoRZ89M.js} +1 -1
- package/assets/{SwapController-3n2vq1CX.js → SwapController-BEHLqATV.js} +1 -1
- package/assets/{TradeService-DlzFKIi0.js → TradeService-a9BKe-Oz.js} +1 -1
- package/assets/{W3MFrameProviderSingleton-DFy8mL1o.js → W3MFrameProviderSingleton-HtGM3kiI.js} +3 -3
- package/assets/{WebCryptoP256-CdfoKLvV.js → WebCryptoP256-bPjiT7wY.js} +1 -1
- package/assets/{basic-DF0x-8j0.js → basic-awR2CJat.js} +1 -1
- package/assets/{biconomy-uNfxxgSz.js → biconomy-CBCMLM9k.js} +1 -1
- package/assets/{buy-BmZCwbRH.js → buy-C8v-ou6b.js} +1 -1
- package/assets/{buy-gasless-BMlSkNzH.js → buy-gasless-CUtIigP0.js} +1 -1
- package/assets/{ccip-BN7uV5yj.js → ccip-BMCE_sFa.js} +1 -1
- package/assets/{ccip-DILTAFEl.js → ccip-DiW7RkRR.js} +1 -1
- package/assets/{collection-DjHYkCfI.js → collection-D-oaSVfu.js} +1 -1
- package/assets/{controller-49iaLet1.js → controller-CJz3LUjz.js} +2 -2
- package/assets/{core-yZGJ8DUA.js → core-CGoVaJvD.js} +4 -4
- package/assets/{custom-CFJfKM8I.js → custom-CLQCvu9h.js} +1 -1
- package/assets/{data-capture-C_3s7u5X.js → data-capture-C1enk8q3.js} +1 -1
- package/assets/{decimals-BOuBNygx.js → decimals-C8GSUqDy.js} +1 -1
- package/assets/decimals-DnNelAv5.js +1 -0
- package/assets/{detectExtension-By3YFrnI.js → detectExtension-Bdev6B_Y.js} +1 -1
- package/assets/{email-_2DjjRcX.js → email-DI1UmfjV.js} +1 -1
- package/assets/{embedded-wallet-d37hEAVQ.js → embedded-wallet-CUaCp934.js} +1 -1
- package/assets/{engine-CgBHIO_B.js → engine-NUwMDIUh.js} +1 -1
- package/assets/{estimate-l1-fee-DKPdSv11.js → estimate-l1-fee-CkQ_-gw6.js} +1 -1
- package/assets/{eth_estimateGas-BNAPD8y1.js → eth_estimateGas-DaI_qfS7.js} +1 -1
- package/assets/{eth_getStorageAt-D4Oc0EWh.js → eth_getStorageAt-DqNZYObO.js} +1 -1
- package/assets/{eth_getTransactionCount-BuGy0oh_.js → eth_getTransactionCount-BBYhaRkF.js} +1 -1
- package/assets/{extractIPFS-Djm4b9om.js → extractIPFS-COY4B3_o.js} +1 -1
- package/assets/{features-Nu8ft-DR.js → features-DW4K2ZKu.js} +1 -1
- package/assets/{fetchTokenMetadata-C9gZA1VK.js → fetchTokenMetadata-D4vVc_nQ.js} +2 -2
- package/assets/{generateUtilityClasses-wRCEHwkd.js → generateUtilityClasses-D15hK3nM.js} +1 -1
- package/assets/{get-ecosystem-wallet-info-BKi9d9La.js → get-ecosystem-wallet-info-QCLNyKk6.js} +1 -1
- package/assets/{getBalance-VU8hTXaX.js → getBalance-CndsdQzG.js} +1 -1
- package/assets/{getInstalledModules-BfvNNyZ9.js → getInstalledModules-BZgUgPCr.js} +1 -1
- package/assets/{getNFT-xdz2YHeO.js → getNFT-BQyw29TQ.js} +1 -1
- package/assets/{getNFT-BX-0ukXu.js → getNFT-Bw4qn7ry.js} +2 -2
- package/assets/{hashTypedData-D3ppM4iK.js → hashTypedData-CaO8N883.js} +1 -1
- package/assets/{hashTypedData-Bw8VSnQz.js → hashTypedData-Er6Ia-O7.js} +1 -1
- package/assets/{import-DXI6xe8g.js → import-NJqh-zgj.js} +1 -1
- package/assets/{in-app-wallet-calls-a76AHLUS.js → in-app-wallet-calls-BDq_Ik7W.js} +1 -1
- package/assets/{index-BWvbpA_w.js → index-2l5r0dRI.js} +2 -2
- package/assets/{index-DxOJU9tq.js → index-AgzyxgSU.js} +1 -1
- package/assets/{index-Ck71AH1s.js → index-BABCyrjx.js} +1 -1
- package/assets/{index-DgQBo3-C.js → index-BEzzzIlC.js} +1 -1
- package/assets/{index-DVS4Kd2_.js → index-BKg37Q5D.js} +1 -1
- package/assets/{index-CjhsNe2w.js → index-BRyy9_FL.js} +1 -1
- package/assets/{index-KJnoTXad.js → index-BUaGOTLN.js} +1 -1
- package/assets/{index-C5AZvu78.js → index-BZIVWDQd.js} +1 -1
- package/assets/{index-DFiTZkQC.js → index-BdBYQDrP.js} +1 -1
- package/assets/{index-BuWxIV02.js → index-BexyLNIk.js} +1 -1
- package/assets/{index-DXx-pvKF.js → index-Bo34Cx12.js} +1 -1
- package/assets/{index-DstXS_u0.js → index-BoZx7TrW.js} +1 -1
- package/assets/{index-Cl7b1h3u.js → index-BqIdYoG8.js} +1 -1
- package/assets/{index-BBKLOgxD.js → index-BseAcDfV.js} +3 -3
- package/assets/{index-C1uNu9ax.js → index-Buf412yH.js} +1 -1
- package/assets/{index-BMs28WEG.js → index-C1RysQbA.js} +1 -1
- package/assets/{index-BjjXbPFz.js → index-C6QyIhnE.js} +1 -1
- package/assets/{index-CVHG3ouX.js → index-C6xmzvY-.js} +1 -1
- package/assets/{index-fG-RLqf5.js → index-CCxw-foK.js} +1 -1
- package/assets/{index-DYJKRlpr.js → index-CDAYsxA6.js} +1 -1
- package/assets/{index-CeNkoKMh.js → index-CDOPdFEN.js} +1 -1
- package/assets/{index-DVAU0FU0.js → index-CRhrr6gN.js} +1 -1
- package/assets/{index-DmD_WwXV.js → index-CWHR1ZBn.js} +1 -1
- package/assets/{index-CMVEud4W.js → index-CWz8eoAl.js} +1 -1
- package/assets/{index-Cxqt8VVu.js → index-CfKqUBFA.js} +2 -2
- package/assets/{index-CWcJTahC.js → index-CmcvhZsS.js} +1 -1
- package/assets/{index-BLPu_LFY.js → index-CyDCPwX2.js} +1 -1
- package/assets/{index-DZvqB6PN.js → index-D-VYD1II.js} +1 -1
- package/assets/{index-Bdx6iTiN.js → index-DJCTaNyE.js} +1 -1
- package/assets/{index-BX5dsPOx.js → index-DRm7xERf.js} +1 -1
- package/assets/{index-CLhk7eut.js → index-DVQRwKte.js} +1 -1
- package/assets/{index-ClHveqxo.js → index-DXfwhNfH.js} +2 -2
- package/assets/{index-YHrFkKjE.js → index-Dav5KOrd.js} +1 -1
- package/assets/{index-PHWeiOni.js → index-Ddmzqmxk.js} +1 -1
- package/assets/{index-BhOVY5qU.js → index-DieH8QTn.js} +1 -1
- package/assets/{index-CWf2wa-0.js → index-Dm67LTtv.js} +1 -1
- package/assets/{index-BwiZgchN.js → index-Dmfk0azd.js} +5 -5
- package/assets/{index-B9vZwW3s.js → index-Dq7Rlnvq.js} +1 -1
- package/assets/{index-Dr4xkIv9.js → index-DrcFvB51.js} +1 -1
- package/assets/{index-CXT4WA4W.js → index-DwQ4pw8v.js} +1 -1
- package/assets/{index-N4GX97C1.js → index-FcUvAZuZ.js} +1 -1
- package/assets/{index-D0eai65M.js → index-FrZezou7.js} +1 -1
- package/assets/{index-91ey6P2k.js → index-Gr3BFRx7.js} +1 -1
- package/assets/{index-3d5QRDC9.js → index-Hn-DbSZA.js} +1 -1
- package/assets/{index-Ce5-l4iN.js → index-KUsuHO11.js} +1 -1
- package/assets/{index-BOA0blvN.js → index-LDSpzB15.js} +1 -1
- package/assets/{index-BBK9Y4XF.js → index-P5U8LYs6.js} +1 -1
- package/assets/{index-B5srtbdi.js → index-PQMQyCqV.js} +1 -1
- package/assets/{index-DdnPAJ5X.js → index-ccNJtibX.js} +3 -3
- package/assets/{index-cp9iLCgk.js → index-emGKKyxf.js} +1 -1
- package/assets/{index-B_Kzpf8Y.js → index-j1oJp18p.js} +1 -1
- package/assets/{index-D8G2r3X0.js → index-mLXaZKmk.js} +1 -1
- package/assets/{index-DQv23Ja8.js → index-zGd0k6zk.js} +1 -1
- package/assets/{index.es-DtnPa4kO.js → index.es-7keraYJG.js} +4 -4
- package/assets/{index.es-DiOmCt3r.js → index.es-C2X55s9j.js} +1 -1
- package/assets/{index.es-CJd9j6O2.js → index.es-DZDKrrOX.js} +1 -1
- package/assets/{localBatchGatewayRequest-Boe2Uu3X.js → localBatchGatewayRequest-ntoba0Xt.js} +1 -1
- package/assets/{mana-rate-DwCj8Lv7.js → mana-rate-D_DTt_S8.js} +1 -1
- package/assets/network-CFFySFe9.js +1 -0
- package/assets/{networks-BXNVDVMe.js → networks-DvMCxuQT.js} +1 -1
- package/assets/{onramp-tCaDlitG.js → onramp-D4LFsmfg.js} +1 -1
- package/assets/{openzeppelin-DM-htEyG.js → openzeppelin-CJAun2pO.js} +1 -1
- package/assets/{ownerOf-DuQIqO9x.js → ownerOf-DrmYf79A.js} +1 -1
- package/assets/{parseNft-DmhbhONn.js → parseNft-Yzo9Plhx.js} +2 -2
- package/assets/{parseSignature-DYYcQU1L.js → parseSignature-3yq9FfJP.js} +3 -3
- package/assets/{parseSignature-B1dR6bl6.js → parseSignature-h2iJV3NZ.js} +1 -1
- package/assets/{pay-with-exchange-BVaMyGE7.js → pay-with-exchange-BWW2tZIp.js} +1 -1
- package/assets/{qr-overlay-CiH5yqmN.js → qr-overlay-hYqgRnm0.js} +1 -1
- package/assets/{receive-Bavon8LG.js → receive-BMHwXxqP.js} +1 -1
- package/assets/{resolveImplementation-DRvgKkHA.js → resolveImplementation-DS1nY4sc.js} +1 -1
- package/assets/{rpc-XOogimcY.js → rpc-BC6ESxMB.js} +1 -1
- package/assets/{secp256k1-sRaQf1d2.js → secp256k1-BQuyxdaC.js} +1 -1
- package/assets/{secp256k1-Ct-bO2J8.js → secp256k1-CrZRZ9L5.js} +1 -1
- package/assets/{secp256k1-DC-J_61z.js → secp256k1-DNCGSF8O.js} +1 -1
- package/assets/{send-DnIZiu_D.js → send-B62L18Hx.js} +1 -1
- package/assets/{send-batch-transaction-CPO0kOsY.js → send-batch-transaction-De_pBpa_.js} +1 -1
- package/assets/{send-eip712-transaction-8M5PxXck.js → send-eip712-transaction-D-GzcP3o.js} +2 -2
- package/assets/{send-gasless-transaction-xI_ZhuLr.js → send-gasless-transaction-Iil1KVOe.js} +2 -2
- package/assets/{sendRawTransaction-Ch9UQm_d.js → sendRawTransaction-BqauPPYf.js} +3 -3
- package/assets/{serializeTransaction-BxoemPoM.js → serializeTransaction-B4qzULZO.js} +1 -1
- package/assets/{session-proposal-jGuqVux9.js → session-proposal-C4Cz1cln.js} +1 -1
- package/assets/{session-request-Cz0M4rti.js → session-request-De0p90UO.js} +2 -2
- package/assets/{sha256-CXOl0v9Q.js → sha256-bg_KfcLv.js} +1 -1
- package/assets/{signing-COLj5Qif.js → signing-BGpVago5.js} +4 -4
- package/assets/{socials-D55PbtcI.js → socials-vOukOtuh.js} +1 -1
- package/assets/{swaps-BlC7Enst.js → swaps-FEWWVCcs.js} +1 -1
- package/assets/{thirdweb-BLwDJ3T1.js → thirdweb-C8ToELvu.js} +3 -3
- package/assets/{totalSupply-CPrbwtW0.js → totalSupply-C5jxuFw1.js} +1 -1
- package/assets/{transactionReceipt-DqVp3Jfu.js → transactionReceipt-CbcThGoC.js} +1 -1
- package/assets/{transactions-CdBXyHvH.js → transactions-CaxBviMm.js} +1 -1
- package/assets/{useInfiniteGrid-DQrjB0ET.js → useInfiniteGrid-BiC1UMEK.js} +1 -1
- package/assets/{verifyHash-C_IzpMMF.js → verifyHash-JbNzrsYR.js} +1 -1
- package/assets/{w3m-modal-Cc-pA8Rt.js → w3m-modal-BUwENQ4T.js} +1 -1
- package/assets/{w3m-modal-DMA1xH6X.js → w3m-modal-BfRGsEzF.js} +1 -1
- package/assets/{wait-for-tx-receipt-F3kc-N-x.js → wait-for-tx-receipt-BJDKOLGI.js} +1 -1
- package/assets/{wallet-kind-DKOf0fdN.js → wallet-kind-CuaDlRao.js} +1 -1
- package/assets/{wallets-BsJncPFm.js → wallets-BnBHCJi8.js} +6 -6
- package/assets/{web-connector-B9GX2O4t.js → web-connector-CJKlFm6H.js} +3 -3
- package/assets/{writeContract-CzKKPc3I.js → writeContract-CtBYiULm.js} +1 -1
- package/assets/{zoraTestnet-BPw878mz.js → zoraTestnet-CJMxifqR.js} +1 -1
- package/index.html +8 -8
- package/package.json +2 -2
- package/assets/ItemDetail-C-RZG-7m.css +0 -1
- package/assets/ItemDetail-CagXeXhf.js +0 -2
- package/assets/decimals-Bw5QzAzB.js +0 -1
- package/assets/network-CAHzpPTI.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as d,i as p,b as m}from"./lit-element-B3y9oplH.js";import{n as h}from"./class-map-CxwNmq0D.js";import{r as f,v as r}from"./index-
|
|
1
|
+
import{a as d,i as p,b as m}from"./lit-element-B3y9oplH.js";import{n as h}from"./class-map-CxwNmq0D.js";import{r as f,v as r}from"./index-BseAcDfV.js";import{c as x}from"./index-Bo34Cx12.js";const g=d`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/native-7uSYstXA.js","assets/ethers-DHDSyreX.js","assets/react-Vu6nbGi5.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{p as gt,b as Yt,i as Zt,I as Qt,m as bt,s as ut,A as D,e as Xt,g as U,d as te,f as N,r as ee,h as ae,j as ne,k as re,w as se,n as oe,o as ie,q as ce,t as ue,v as de,u as le,x as Q,y as me,z as fe,B as he,C as $,D as pe,E as ye,F as ge,G as be,H as we,J as xe,K as Ee,L as Ie,M as Te,N as St,O as At,P as Ce,Q as Pt,R as _t,S as Rt,T as ve,U as dt,V as qt,W as Se,X as Ae,Y as Ft,Z as Pe,_ as Ut,$ as J,a0 as _e,a1 as kt,a2 as Re,a3 as qe,a4 as lt,a5 as Fe,a6 as Ue,a7 as ke,a8 as Be,a9 as Ne,aa as Bt,ab as Le}from"./parseSignature-DYYcQU1L.js";import{ac as Ir,ad as Tr,ae as Cr,af as vr,ag as Sr,ah as Ar,ai as Pr,aj as _r,ak as Rr,al as qr,am as Fr,an as Ur,ao as kr,ap as Br,aq as Nr,ar as Lr,as as Mr,at as Dr,au as zr,av as Gr,aw as $r,ax as Hr,ay as Or,az as jr,aA as Wr,aB as Vr,aC as Jr,aD as Kr,aE as Yr,aF as Zr,aG as Qr,aH as Xr,aI as ts,aJ as es,aK as as,aL as ns,aM as rs,aN as ss,aO as os,aP as is,aQ as cs,aR as us,aS as ds,aT as ls,aU as ms,aV as fs,aW as hs,aX as ps,aY as ys,aZ as gs,a_ as bs,a$ as ws,b0 as xs,b1 as Es,b2 as Is,b3 as Ts,b4 as Cs,b5 as vs,b6 as Ss,b7 as As,b8 as Ps,b9 as _s,ba as Rs,bb as qs,bc as Fs,bd as Us,be as ks,bf as Bs,bg as Ns,bh as Ls,bi as Ms,bj as Ds,bk as zs,bl as Gs,bm as $s,bn as Hs,bo as Os,bp as js,bq as Ws,br as Vs,bs as Js,bt as Ks,bu as Ys,bv as Zs,bw as Qs,bx as Xs,by as to,bz as eo,br as ao,bA as no,bB as ro,bC as so,bD as oo,bE as io,bF as co,bG as uo,bH as lo,bH as mo,bI as fo,bJ as ho,bi as po,bj as yo,bK as go,bL as bo,bM as wo,bN as xo,bO as Eo}from"./parseSignature-DYYcQU1L.js";import{T as B,b9 as k,U as Me,I as Y,ba as De,G as ze,bb as Ge,X as H,_ as ct,$ as G,B as mt,D as E,P as $e,a7 as He,bc as j,a6 as wt,R as Nt,bd as Lt,d as Mt,L as R,F as ft,A as F,be as A,M as Oe,N as je,bf as We,bg as xt,aG as ht,J as Ve,bh as Je,bi as Ke,bj as Ye,bk as Et}from"./signing-COLj5Qif.js";import{bl as To,bm as Co,bn as vo,bo as So,bp as Ao,bq as Po,br as _o,bs as Ro,bt as qo,bu as Fo,bv as Uo,bw as ko,bx as Bo,by as No,bz as Lo,Q as Mo,bA as Do,bB as zo,bC as Go,bD as $o,bE as Ho,bF as Oo,bG as jo,bH as Wo,bI as Vo,bJ as Jo,bK as Ko,bL as Yo,bM as Zo,bN as Qo,bO as Xo,bP as ti,bQ as ei,bR as ai,bS as ni,bT as ri,bU as si,bV as oi,E as ii,bW as ci,bX as ui,bY as di,bZ as li,b_ as mi,p as fi,b$ as hi,at as pi,au as yi,c0 as gi,c1 as bi,c2 as wi,c3 as xi,c4 as Ei,f as Ii,c4 as Ti,c5 as Ci,c6 as vi,c7 as Si,c8 as Ai,c9 as Pi,ca as _i,cb as Ri,cc as qi,cd as Fi,C as Ui,ce as ki,c3 as Bi,c4 as Ni,ce as Li,f as Mi,c4 as Di,z as zi}from"./signing-COLj5Qif.js";import{w as Ze,h as Qe,g as Xe,v as ta,s as ea}from"./hashTypedData-D3ppM4iK.js";import{I as $i,a as Hi,b as Oi,d as ji,c as Wi,e as Vi}from"./hashTypedData-D3ppM4iK.js";import{T as aa,a as Z,W as It,b as na,U as ra,R as sa}from"./rpc-XOogimcY.js";import{A as Ki,c as Yi,B as Zi,C as Qi,D as Xi,H as tc,I as ec,d as ac,e as nc,f as rc,J as sc,L as oc,M as ic,h as cc,P as uc,i as dc,j as lc,k as mc,l as fc,m as hc,S as pc,n as yc,o as gc,p as bc,q as wc,r as xc,s as Ec}from"./rpc-XOogimcY.js";import{_ as oa}from"./index-BwiZgchN.js";import{t as ia,H as ca}from"./sha256-CXOl0v9Q.js";import{b as Tc,h as Cc,a as vc,c as Sc,d as Ac,e as Pc,f as _c,g as Rc,i as qc,j as Fc,k as Uc,l as kc,n as Bc,o as Nc,p as Lc,q as Mc,r as Dc,u as zc,v as Gc,w as $c,x as Hc,y as Oc,z as jc,A as Wc,B as Vc,C as Jc,D as Kc,E as Yc,F as Zc,G as Qc,I as Xc,J as tu,K as eu,L as au,M as nu,N as ru,O as su,P as ou,Q as iu,R as cu,S as uu,m as du,T as lu,U as mu,V as fu,W as hu,X as pu,Y as yu,Z as gu,_ as bu,$ as wu,a0 as xu,a1 as Eu,a2 as Iu,a3 as Tu,a4 as Cu,a5 as vu,a6 as Su,a7 as Au,a8 as Pu,a9 as _u,aa as Ru,ab as qu,ac as Fu,ad as Uu,ae as ku,af as Bu,ag as Nu,ah as Lu,ai as Mu,aj as Du,ak as zu,al as Gu,am as $u,an as Hu,ao as Ou,ap as ju,aq as Wu,ar as Vu,as as Ju,at as Ku,au as Yu,av as Zu,aw as Qu,ax as Xu,ay as td,az as ed,aA as ad,aB as nd,aC as rd,aD as sd,aE as od,aF as id,aG as cd,aH as ud,aI as dd,aJ as ld,aK as md,s as fd}from"./sha256-CXOl0v9Q.js";import{ccipRequest as pd,ccipRequest as yd,offchainLookup as gd,offchainLookupAbiItem as bd,offchainLookupSignature as wd}from"./ccip-BN7uV5yj.js";import{d as Ed,a as Id,f as Td}from"./transactionReceipt-DqVp3Jfu.js";import"./utils-nbkSUjEy.js";import"./ethers-DHDSyreX.js";import"./react-Vu6nbGi5.js";function jn(t){let e;if(typeof t=="string")e=gt(t,{modifiers:bt});else{const a=Yt(t),n=t.length;for(let r=0;r<n;r++){const s=t[r];if(!Zt(s)){e=gt(s,{modifiers:bt,structs:a});break}}}if(!e)throw new Qt({param:t});return e}async function M(t,e){return M.internal(t,ut,"sendTransaction",e)}(function(t){async function e(a,n,r,s){const{abi:u,account:d=a.account,address:c,args:i,dataSuffix:f,functionName:m,...h}=s;if(typeof d>"u")throw new D({docsPath:"/docs/contract/writeContract"});const o=d?N(d):null,p=Xt({abi:u,args:i,functionName:m});try{return await U(a,n,r)({data:`${p}${f?f.replace("0x",""):""}`,to:c,account:o,...h})}catch(l){throw te(l,{abi:u,address:c,args:i,docsPath:"/docs/contract/writeContract",functionName:m,sender:o==null?void 0:o.address})}}t.internal=e})(M||(M={}));function Wn({abi:t,address:e,client:a}){const n=a,[r,s]=n?"public"in n&&"wallet"in n?[n.public,n.wallet]:"public"in n?[n.public,void 0]:"wallet"in n?[void 0,n.wallet]:[n,n]:[void 0,void 0],u=r!=null,d=s!=null,c={};let i=!1,f=!1,m=!1;for(const h of t)if(h.type==="function"?h.stateMutability==="view"||h.stateMutability==="pure"?i=!0:f=!0:h.type==="event"&&(m=!0),i&&f&&m)break;return u&&(i&&(c.read=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(r,ee,"readContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),f&&(c.simulate=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(r,ae,"simulateContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),m&&(c.createEventFilter=new Proxy({},{get(h,o){return(...p)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,l);return U(r,ne,"createContractEventFilter")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.getEvents=new Proxy({},{get(h,o){return(...p)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,l);return U(r,re,"getContractEvents")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.watchEvent=new Proxy({},{get(h,o){return(...p)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,l);return U(r,se,"watchContractEvent")({abi:t,address:e,eventName:o,args:y,...w})}}}))),d&&f&&(c.write=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(s,M,"writeContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),(u||d)&&f&&(c.estimateGas=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(r??s,oe,"estimateContractGas")({abi:t,address:e,functionName:o,args:l,...y,account:y.account??s.account})}}})),c.address=e,c.abi=t,c}function W(t){const e=t.length&&Array.isArray(t[0]),a=e?t[0]:[],n=(e?t[1]:t[0])??{};return{args:a,options:n}}function rt(t,e){let a=!1;Array.isArray(t[0])?a=!0:t.length===1?a=e.inputs.some(s=>s.indexed):t.length===2&&(a=!0);const n=a?t[0]:void 0,r=(a?t[1]:t[0])??{};return{args:n,options:r}}function Tt(t){return!t||typeof t!="object"||!("BYTES_PER_ELEMENT"in t)?!1:t.BYTES_PER_ELEMENT===1&&t.constructor.name==="Uint8Array"}function Vn(t){return t.opcode==="CREATE2"?da(t):ua(t)}function ua(t){const e=B(k(t.from));let a=B(t.nonce);return a[0]===0&&(a=new Uint8Array([])),k(`0x${Y(ia([e,a],"bytes")).slice(26)}`)}function da(t){const e=B(k(t.from)),a=Me(Tt(t.salt)?t.salt:B(t.salt),{size:32}),n="bytecodeHash"in t?Tt(t.bytecodeHash)?t.bytecodeHash:B(t.bytecodeHash):Y(t.bytecode,"bytes");return k(De(Y(ze([B("0xff"),e,a,n])),12))}function Jn({chains:t,id:e}){return t.find(a=>a.id===e)}function Dt(t,e="hex"){const a=(()=>{if(typeof t=="string"){if(t.length>3&&t.length%2!==0)throw new Ge(t);return H(t)}return t})(),n=ct(a,{recursiveReadLimit:Number.POSITIVE_INFINITY});return zt(n,e)}function zt(t,e="hex"){if(t.bytes.length===0)return e==="hex"?G(t.bytes):t.bytes;const a=t.readByte();if(a<128&&t.decrementPosition(1),a<192){const r=Ct(t,a,128),s=t.readBytes(r);return e==="hex"?G(s):s}const n=Ct(t,a,192);return la(t,n,e)}function Ct(t,e,a){if(a===128&&e<128)return 1;if(e<=a+55)return e-a;if(e===a+55+1)return t.readUint8();if(e===a+55+2)return t.readUint16();if(e===a+55+3)return t.readUint24();if(e===a+55+4)return t.readUint32();throw new mt("Invalid RLP prefix")}function la(t,e,a){const n=t.position,r=[];for(;t.position-n<e;)r.push(zt(t,a));return r}function ma(t){return E(t)&&$e(t)===32}const fa=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Gt=Uint8Array.from(new Array(16).fill(0).map((t,e)=>e)),ha=Gt.map(t=>(9*t+5)%16),$t=(()=>{const a=[[Gt],[ha]];for(let n=0;n<4;n++)for(let r of a)r.push(r[n].map(s=>fa[s]));return a})(),Ht=$t[0],Ot=$t[1],jt=[[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(t=>Uint8Array.from(t)),pa=Ht.map((t,e)=>t.map(a=>jt[e][a])),ya=Ot.map((t,e)=>t.map(a=>jt[e][a])),ga=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),ba=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function vt(t,e,a,n){return t===0?e^a^n:t===1?e&a|~e&n:t===2?(e|~a)^n:t===3?e&n|a&~n:e^(a|~n)}const V=new Uint32Array(16);class wa extends ca{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:a,h2:n,h3:r,h4:s}=this;return[e,a,n,r,s]}set(e,a,n,r,s){this.h0=e|0,this.h1=a|0,this.h2=n|0,this.h3=r|0,this.h4=s|0}process(e,a){for(let o=0;o<16;o++,a+=4)V[o]=e.getUint32(a,!0);let n=this.h0|0,r=n,s=this.h1|0,u=s,d=this.h2|0,c=d,i=this.h3|0,f=i,m=this.h4|0,h=m;for(let o=0;o<5;o++){const p=4-o,l=ga[o],y=ba[o],w=Ht[o],g=Ot[o],C=pa[o],b=ya[o];for(let x=0;x<16;x++){const I=j(n+vt(o,s,d,i)+V[w[x]]+l,C[x])+m|0;n=m,m=i,i=j(d,10)|0,d=s,s=I}for(let x=0;x<16;x++){const I=j(r+vt(p,u,c,f)+V[g[x]]+y,b[x])+h|0;r=h,h=f,f=j(c,10)|0,c=u,u=I}}this.set(this.h1+d+f|0,this.h2+i+h|0,this.h3+m+r|0,this.h4+n+u|0,this.h0+s+c|0)}roundClean(){wt(V)}destroy(){this.destroyed=!0,wt(this.buffer),this.set(0,0,0,0,0)}}const xa=He(()=>new wa),Ea=xa;function Kn(t,e){const a=e||"hex",n=Ea(E(t,{strict:!1})?B(t):t);return a==="bytes"?n:Nt(n)}const st=new Map;async function Ia(t){const{getSocket:e,keepAlive:a=!0,key:n="socket",reconnect:r=!0,url:s}=t,{interval:u=3e4}=typeof a=="object"?a:{},{attempts:d=5,delay:c=2e3}=typeof r=="object"?r:{},i=JSON.stringify({keepAlive:a,key:n,url:s,reconnect:r});let f=st.get(i);if(f)return f;let m=0;const{schedule:h}=ie({id:i,fn:async()=>{const l=new Map,y=new Map;let w,g,C,b=!1;function x(){if(r&&m<d){if(b)return;b=!0,m++,g==null||g.close(),setTimeout(async()=>{await I().catch(console.error),b=!1},c)}else l.clear(),y.clear()}async function I(){const T=await e({onClose(){var v,P;for(const S of l.values())(v=S.onError)==null||v.call(S,new Z({url:s}));for(const S of y.values())(P=S.onError)==null||P.call(S,new Z({url:s}));x()},onError(v){var P,S;w=v;for(const _ of l.values())(P=_.onError)==null||P.call(_,w);for(const _ of y.values())(S=_.onError)==null||S.call(_,w);x()},onOpen(){w=void 0,m=0},onResponse(v){const P=v.method==="eth_subscription",S=P?v.params.subscription:v.id,_=P?y:l,q=_.get(S);q&&q.onResponse(v),P||_.delete(S)}});if(g=T,a&&(C&&clearInterval(C),C=setInterval(()=>{var v;return(v=g.ping)==null?void 0:v.call(g)},u)),r&&y.size>0){const v=y.entries();for(const[P,{onResponse:S,body:_,onError:q}]of v)_&&(y.delete(P),f==null||f.request({body:_,onResponse:S,onError:q}))}return T}return await I(),w=void 0,f={close(){C&&clearInterval(C),g.close(),st.delete(i)},get socket(){return g},request({body:T,onError:v,onResponse:P}){w&&v&&v(w);const S=T.id??ce.take(),_=q=>{var z;typeof q.id=="number"&&S!==q.id||(T.method==="eth_subscribe"&&typeof q.result=="string"&&y.set(q.result,{onResponse:_,onError:v,body:T}),T.method==="eth_unsubscribe"&&y.delete((z=T.params)==null?void 0:z[0]),P(q))};l.set(S,{onResponse:_,onError:v});try{g.request({body:{jsonrpc:"2.0",id:S,...T}})}catch(q){v==null||v(q)}},requestAsync({body:T,timeout:v=1e4}){return Ze(()=>new Promise((P,S)=>this.request({body:T,onError:S,onResponse:P})),{errorInstance:new aa({body:T,url:s}),timeout:v})},requests:l,subscriptions:y,url:s},st.set(i,f),[f]}}),[o,[p]]=await h();return p}async function K(t,e={}){const{keepAlive:a,reconnect:n}=e;return Ia({async getSocket({onClose:r,onError:s,onOpen:u,onResponse:d}){const c=await oa(()=>import("./native-7uSYstXA.js").then(o=>o.n),__vite__mapDeps([0,1,2])).then(o=>o.WebSocket),i=new c(t);function f(){i.removeEventListener("close",f),i.removeEventListener("message",m),i.removeEventListener("error",s),i.removeEventListener("open",u),r()}function m({data:o}){if(!(typeof o=="string"&&o.trim().length===0))try{const p=JSON.parse(o);d(p)}catch(p){s(p)}}i.addEventListener("close",f),i.addEventListener("message",m),i.addEventListener("error",s),i.addEventListener("open",u),i.readyState===c.CONNECTING&&await new Promise((o,p)=>{i&&(i.onopen=o,i.onerror=p)});const{close:h}=i;return Object.assign(i,{close(){h.bind(i)(),f()},ping(){try{if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({url:i.url,cause:new Z({url:i.url})});const o={jsonrpc:"2.0",id:null,method:"net_version",params:[]};i.send(JSON.stringify(o))}catch(o){s(o)}},request({body:o}){if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({body:o,url:i.url,cause:new Z({url:i.url})});return i.send(JSON.stringify(o))}})},keepAlive:a,reconnect:n,url:t})}async function Ta(t){const e=await K(t);return Object.assign(e.socket,{requests:e.requests,subscriptions:e.subscriptions})}function Ca(t){return Lt(t,-32)===ue}function va(t){return de(t)}function Yn(t){if(!Ca(t))return{signature:t};const[e,a,n]=Mt([{type:"address"},{type:"bytes"},{type:"bytes"}],t);return{address:e,data:a,signature:n}}function Zn(t){if(!va(t))return{signature:t};const{authorization:e,to:a,...n}=le(t);return{authorization:{address:e.address,chainId:e.chainId,nonce:Number(e.nonce),r:R(e.r,{size:32}),s:R(e.s,{size:32}),yParity:e.yParity},...a?{address:a}:{},...n}}async function Sa({message:t,signature:e}){return Q({hash:me(t),signature:e})}async function Aa(t){const{domain:e,message:a,primaryType:n,signature:r,types:s}=t;return Q({hash:Qe({domain:e,message:a,primaryType:n,types:s}),signature:r})}function Qn(t){const{address:e,data:a,signature:n,to:r="hex"}=t,s=fe({authorization:{address:t.authorization.address,chainId:t.authorization.chainId,nonce:BigInt(t.authorization.nonce),r:BigInt(t.authorization.r),s:BigInt(t.authorization.s),yParity:t.authorization.yParity},data:a,signature:n,to:e});return r==="hex"?s:H(s)}async function Xn({address:t,hash:e,signature:a}){return ft(k(t),await Q({hash:e,signature:a}))}async function tr({address:t,message:e,signature:a}){return ft(k(t),await Sa({message:e,signature:a}))}async function er(t){const{address:e,domain:a,message:n,primaryType:r,signature:s,types:u}=t;return ft(k(e),await Aa({domain:a,message:n,primaryType:r,signature:s,types:u}))}function Pa(t){const e=Lt(t,0,1);if(e==="0x04")return"eip7702";if(e==="0x03")return"eip4844";if(e==="0x02")return"eip1559";if(e==="0x01")return"eip2930";if(e!=="0x"&&F(e)>=192)return"legacy";throw new he({serializedType:e})}function _a(t){const e=Pa(t);return e==="eip1559"?Fa(t):e==="eip2930"?Ua(t):e==="eip4844"?qa(t):e==="eip7702"?Ra(t):ka(t)}function Ra(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,h,o,p]=e;if(e.length!==10&&e.length!==13)throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,authorizationList:m,...e.length>9?{v:h,r:o,s:p}:{}},serializedTransaction:t,type:"eip7702"});const l={chainId:F(a),type:"eip7702"};return E(d)&&d!=="0x"&&(l.to=d),E(u)&&u!=="0x"&&(l.gas=A(u)),E(i)&&i!=="0x"&&(l.data=i),E(n)&&(l.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(l.value=A(c)),E(s)&&s!=="0x"&&(l.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(l.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(l.accessList=tt(f)),m.length!==0&&m!=="0x"&&(l.authorizationList=Ba(m)),we(l),{...e.length===13?O(e):void 0,...l}}function qa(t){const e=X(t),a=e.length===4,n=a?e[0]:e,r=a?e.slice(1):[],[s,u,d,c,i,f,m,h,o,p,l,y,w,g]=n,[C,b,x]=r;if(!(n.length===11||n.length===14))throw new $({attributes:{chainId:s,nonce:u,maxPriorityFeePerGas:d,maxFeePerGas:c,gas:i,to:f,value:m,data:h,accessList:o,...n.length>9?{v:y,r:w,s:g}:{}},serializedTransaction:t,type:"eip4844"});const I={blobVersionedHashes:l,chainId:F(s),to:f,type:"eip4844"};return E(i)&&i!=="0x"&&(I.gas=A(i)),E(h)&&h!=="0x"&&(I.data=h),E(u)&&(I.nonce=u==="0x"?0:F(u)),E(m)&&m!=="0x"&&(I.value=A(m)),E(p)&&p!=="0x"&&(I.maxFeePerBlobGas=A(p)),E(c)&&c!=="0x"&&(I.maxFeePerGas=A(c)),E(d)&&d!=="0x"&&(I.maxPriorityFeePerGas=A(d)),o.length!==0&&o!=="0x"&&(I.accessList=tt(o)),C&&b&&x&&(I.sidecars=ge({blobs:C,commitments:b,proofs:x})),be(I),{...n.length===14?O(n):void 0,...I}}function Fa(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,h,o]=e;if(!(e.length===9||e.length===12))throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,...e.length>9?{v:m,r:h,s:o}:{}},serializedTransaction:t,type:"eip1559"});const p={chainId:F(a),type:"eip1559"};return E(d)&&d!=="0x"&&(p.to=d),E(u)&&u!=="0x"&&(p.gas=A(u)),E(i)&&i!=="0x"&&(p.data=i),E(n)&&(p.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(p.value=A(c)),E(s)&&s!=="0x"&&(p.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(p.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(p.accessList=tt(f)),pe(p),{...e.length===12?O(e):void 0,...p}}function Ua(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,h]=e;if(!(e.length===8||e.length===11))throw new $({attributes:{chainId:a,nonce:n,gasPrice:r,gas:s,to:u,value:d,data:c,accessList:i,...e.length>8?{v:f,r:m,s:h}:{}},serializedTransaction:t,type:"eip2930"});const o={chainId:F(a),type:"eip2930"};return E(u)&&u!=="0x"&&(o.to=u),E(s)&&s!=="0x"&&(o.gas=A(s)),E(c)&&c!=="0x"&&(o.data=c),E(n)&&(o.nonce=n==="0x"?0:F(n)),E(d)&&d!=="0x"&&(o.value=A(d)),E(r)&&r!=="0x"&&(o.gasPrice=A(r)),i.length!==0&&i!=="0x"&&(o.accessList=tt(i)),ye(o),{...e.length===11?O(e):void 0,...o}}function ka(t){const e=Dt(t,"hex"),[a,n,r,s,u,d,c,i,f]=e;if(!(e.length===6||e.length===9))throw new $({attributes:{nonce:a,gasPrice:n,gas:r,to:s,value:u,data:d,...e.length>6?{v:c,r:i,s:f}:{}},serializedTransaction:t,type:"legacy"});const m={type:"legacy"};if(E(s)&&s!=="0x"&&(m.to=s),E(r)&&r!=="0x"&&(m.gas=A(r)),E(d)&&d!=="0x"&&(m.data=d),E(a)&&(m.nonce=a==="0x"?0:F(a)),E(u)&&u!=="0x"&&(m.value=A(u)),E(n)&&n!=="0x"&&(m.gasPrice=A(n)),xe(m),e.length===6)return m;const h=E(c)&&c!=="0x"?A(c):0n;if(f==="0x"&&i==="0x")return h>0&&(m.chainId=Number(h)),m;const o=h,p=Number((o-35n)/2n);if(p>0)m.chainId=p;else if(o!==27n&&o!==28n)throw new Ee({v:o});return m.v=o,m.s=f,m.r=i,m.yParity=o%2n===0n?1:0,m}function X(t){return Dt(`0x${t.slice(4)}`,"hex")}function tt(t){const e=[];for(let a=0;a<t.length;a++){const[n,r]=t[a];if(!Oe(n,{strict:!1}))throw new je({address:n});e.push({address:n,storageKeys:r.map(s=>ma(s)?s:We(s))})}return e}function Ba(t){const e=[];for(let a=0;a<t.length;a++){const[n,r,s,u,d,c]=t[a];e.push({address:r,chainId:n==="0x"?0:F(n),nonce:s==="0x"?0:F(s),...O([u,d,c])})}return e}function O(t){const e=t.slice(-3),a=e[0]==="0x"||A(e[0])===0n?27n:28n;return{r:xt(e[1],{size:32}),s:xt(e[2],{size:32}),v:a,yParity:a===27n?0:1}}class Na extends mt{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function Wt(t,e){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(t))throw new Na({value:t});let[a,n="0"]=t.split(".");const r=a.startsWith("-");if(r&&(a=a.slice(1)),n=n.replace(/(0+)$/,""),e===0)Math.round(+`.${n}`)===1&&(a=`${BigInt(a)+1n}`),n="";else if(n.length>e){const[s,u,d]=[n.slice(0,e-1),n.slice(e-1,e),n.slice(e)],c=Math.round(+`${u}.${d}`);c>9?n=`${BigInt(s)+BigInt(1)}0`.padStart(s.length+1,"0"):n=`${s}${c}`,n.length>e&&(n=n.slice(1),a=`${BigInt(a)+1n}`),n=n.slice(0,e)}else n=n.padEnd(e,"0");return BigInt(`${r?"-":""}${a}${n}`)}function ar(t,e="wei"){return Wt(t,Ie[e])}function nr(t,e="wei"){return Wt(t,Te[e])}async function La(t,{hash:e}){await t.request({method:`${t.mode}_dropTransaction`,params:[e]})}async function Ma(t){return t.request({method:`${t.mode}_dumpState`})}async function Da(t){return t.mode==="ganache"?await t.request({method:"eth_mining"}):await t.request({method:`${t.mode}_getAutomine`})}async function za(t){return await t.request({method:"txpool_content"})}async function Ga(t){const{pending:e,queued:a}=await t.request({method:"txpool_status"});return{pending:F(e),queued:F(a)}}async function $a(t,{address:e}){await t.request({method:`${t.mode}_impersonateAccount`,params:[e]})}async function Ha(t,{seconds:e}){return await t.request({method:"evm_increaseTime",params:[R(e)]})}async function Oa(t){return await t.request({method:"txpool_inspect"})}async function ja(t,{state:e}){await t.request({method:`${t.mode}_loadState`,params:[e]})}async function Wa(t,{blocks:e,interval:a}){t.mode==="ganache"?await t.request({method:"evm_mine",params:[{blocks:R(e)}]}):await t.request({method:`${t.mode}_mine`,params:[R(e),R(a||0)]})}async function Va(t){await t.request({method:`${t.mode}_removeBlockTimestampInterval`})}async function Ja(t,{blockNumber:e,jsonRpcUrl:a}={}){await t.request({method:`${t.mode}_reset`,params:[{forking:{blockNumber:Number(e),jsonRpcUrl:a}}]})}async function Ka(t,{id:e}){await t.request({method:"evm_revert",params:[e]})}async function Ya(t,e){var w,g,C;const{accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:m,...h}=e,o=(C=(g=(w=t.chain)==null?void 0:w.formatters)==null?void 0:g.transactionRequest)==null?void 0:C.format,l=(o||ht)({...St(h,{format:o}),accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:m},"sendUnsignedTransaction");return await t.request({method:"eth_sendUnsignedTransaction",params:[l]})}async function Za(t,e){t.mode==="ganache"?e?await t.request({method:"miner_start"}):await t.request({method:"miner_stop"}):await t.request({method:"evm_setAutomine",params:[e]})}async function Qa(t,{address:e,value:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountBalance",params:[e,R(a)]}):await t.request({method:`${t.mode}_setBalance`,params:[e,R(a)]})}async function Xa(t,{gasLimit:e}){await t.request({method:"evm_setBlockGasLimit",params:[R(e)]})}async function tn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:`${t.mode}_setBlockTimestampInterval`,params:[a]})}async function en(t,{address:e,bytecode:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountCode",params:[e,a]}):await t.request({method:`${t.mode}_setCode`,params:[e,a]})}async function an(t,{address:e}){await t.request({method:`${t.mode}_setCoinbase`,params:[e]})}async function nn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:"evm_setIntervalMining",params:[a]})}async function rn(t,e){await t.request({method:`${t.mode}_setLoggingEnabled`,params:[e]})}async function sn(t,{gasPrice:e}){await t.request({method:`${t.mode}_setMinGasPrice`,params:[R(e)]})}async function on(t,{baseFeePerGas:e}){await t.request({method:`${t.mode}_setNextBlockBaseFeePerGas`,params:[R(e)]})}async function cn(t,{timestamp:e}){await t.request({method:"evm_setNextBlockTimestamp",params:[R(e)]})}async function un(t,{address:e,nonce:a}){await t.request({method:`${t.mode}_setNonce`,params:[e,R(a)]})}async function dn(t,e){await t.request({method:`${t.mode}_setRpcUrl`,params:[e]})}async function ln(t,{address:e,index:a,value:n}){await t.request({method:`${t.mode}_setStorageAt`,params:[e,typeof a=="number"?R(a):a,n]})}async function mn(t){return await t.request({method:"evm_snapshot"})}async function fn(t,{address:e}){await t.request({method:`${t.mode}_stopImpersonatingAccount`,params:[e]})}function hn({mode:t}){return e=>{const a=e.extend(()=>({mode:t}));return{dropTransaction:n=>La(a,n),dumpState:()=>Ma(a),getAutomine:()=>Da(a),getTxpoolContent:()=>za(a),getTxpoolStatus:()=>Ga(a),impersonateAccount:n=>$a(a,n),increaseTime:n=>Ha(a,n),inspectTxpool:()=>Oa(a),loadState:n=>ja(a,n),mine:n=>Wa(a,n),removeBlockTimestampInterval:()=>Va(a),reset:n=>Ja(a,n),revert:n=>Ka(a,n),sendUnsignedTransaction:n=>Ya(a,n),setAutomine:n=>Za(a,n),setBalance:n=>Qa(a,n),setBlockGasLimit:n=>Xa(a,n),setBlockTimestampInterval:n=>tn(a,n),setCode:n=>en(a,n),setCoinbase:n=>an(a,n),setIntervalMining:n=>nn(a,n),setLoggingEnabled:n=>rn(a,n),setMinGasPrice:n=>sn(a,n),setNextBlockBaseFeePerGas:n=>on(a,n),setNextBlockTimestamp:n=>cn(a,n),setNonce:n=>un(a,n),setRpcUrl:n=>dn(a,n),setStorageAt:n=>ln(a,n),snapshot:()=>mn(a),stopImpersonatingAccount:n=>fn(a,n)}}}function rr(t){const{key:e="test",name:a="Test Client",mode:n}=t;return At({...t,key:e,name:a,type:"testClient"}).extend(s=>({mode:n,...hn({mode:n})(s)}))}async function pn(t,{chain:e}){const{id:a,name:n,nativeCurrency:r,rpcUrls:s,blockExplorers:u}=e;await t.request({method:"wallet_addEthereumChain",params:[{chainId:R(a),chainName:n,nativeCurrency:r,rpcUrls:s.default.http,blockExplorerUrls:u?Object.values(u).map(({url:d})=>d):void 0}]},{dedupe:!0,retryCount:0})}function yn(t,e){const{abi:a,args:n,bytecode:r,...s}=e,u=Ce({abi:a,args:n,bytecode:r});return ut(t,{...s,...s.authorizationList?{to:null}:{},data:u})}async function gn(t){var a;return((a=t.account)==null?void 0:a.type)==="local"?[t.account.address]:(await t.request({method:"eth_accounts"},{dedupe:!0})).map(n=>Ve(n))}async function bn(t,e={}){const{account:a=t.account,chainId:n}=e,r=a?N(a):void 0,s=n?[r==null?void 0:r.address,[R(n)]]:[r==null?void 0:r.address],u=await t.request({method:"wallet_getCapabilities",params:s}),d={};for(const[c,i]of Object.entries(u)){d[Number(c)]={};for(let[f,m]of Object.entries(i))f==="addSubAccount"&&(f="unstable_addSubAccount"),d[Number(c)][f]=m}return typeof n=="number"?d[n]:d}async function wn(t){return await t.request({method:"wallet_getPermissions"},{dedupe:!0})}async function xn(t){return(await t.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(a=>k(a))}async function En(t,e){return t.request({method:"wallet_requestPermissions",params:[e]},{retryCount:0})}async function In(t,e){const{chain:a=t.chain}=e,n=e.timeout??Math.max(((a==null?void 0:a.blockTime)??0)*3,5e3),r=await Pt(t,e);return await _t(t,{...e,id:r.id,timeout:n})}const ot=new Je(128);async function Vt(t,e){var x,I,T,v;const{account:a=t.account,chain:n=t.chain,accessList:r,authorizationList:s,blobs:u,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:o,pollingInterval:p,throwOnReceiptRevert:l,type:y,value:w,...g}=e,C=e.timeout??Math.max(((n==null?void 0:n.blockTime)??0)*3,5e3);if(typeof a>"u")throw new D({docsPath:"/docs/actions/wallet/sendTransactionSync"});const b=a?N(a):null;try{Rt(e);const P=await(async()=>{if(e.to)return e.to;if(e.to!==null&&s&&s.length>0)return await ve({authorization:s[0]}).catch(()=>{throw new mt("`to` is required. Could not infer from `authorizationList`.")})})();if((b==null?void 0:b.type)==="json-rpc"||b===null){let S;n!==null&&(S=await U(t,dt,"getChainId")({}),qt({currentChainId:S,chain:n}));const _=(T=(I=(x=t.chain)==null?void 0:x.formatters)==null?void 0:I.transactionRequest)==null?void 0:T.format,z=(_||ht)({...St(g,{format:_}),accessList:r,account:b,authorizationList:s,blobs:u,chainId:S,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:o,to:P,type:y,value:w},"sendTransaction"),pt=ot.get(t.uid),Jt=pt?"wallet_sendTransaction":"eth_sendTransaction",Kt=await(async()=>{try{return await t.request({method:Jt,params:[z]},{retryCount:0})}catch(yt){if(pt===!1)throw yt;const L=yt;if(L.name==="InvalidInputRpcError"||L.name==="InvalidParamsRpcError"||L.name==="MethodNotFoundRpcError"||L.name==="MethodNotSupportedRpcError")return await t.request({method:"wallet_sendTransaction",params:[z]},{retryCount:0}).then(at=>(ot.set(t.uid,!0),at)).catch(at=>{const nt=at;throw nt.name==="MethodNotFoundRpcError"||nt.name==="MethodNotSupportedRpcError"?(ot.set(t.uid,!1),L):nt});throw L}})(),et=await U(t,Se,"waitForTransactionReceipt")({checkReplacement:!1,hash:Kt,pollingInterval:p,timeout:C});if(l&&et.status==="reverted")throw new Ae({receipt:et});return et}if((b==null?void 0:b.type)==="local"){const S=await U(t,Ft,"prepareTransactionRequest")({account:b,accessList:r,authorizationList:s,blobs:u,chain:n,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:o,nonceManager:b.nonceManager,parameters:[...Pe,"sidecars"],type:y,value:w,...g,to:P}),_=(v=n==null?void 0:n.serializers)==null?void 0:v.transaction,q=await b.signTransaction(S,{serializer:_});return await U(t,Ut,"sendRawTransactionSync")({serializedTransaction:q,throwOnReceiptRevert:l})}throw(b==null?void 0:b.type)==="smart"?new J({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new J({docsPath:"/docs/actions/wallet/sendTransactionSync",type:b==null?void 0:b.type})}catch(P){throw P instanceof J?P:_e(P,{...e,account:b,chain:e.chain||void 0})}}async function Tn(t,e){const{id:a}=e;await t.request({method:"wallet_showCallsStatus",params:[a]})}async function Cn(t,e){const{account:a=t.account}=e;if(!a)throw new D({docsPath:"/docs/eip7702/signAuthorization"});const n=N(a);if(!n.signAuthorization)throw new J({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:n.type});const r=await kt(t,e);return n.signAuthorization(r)}async function vn(t,{account:e=t.account,message:a}){if(!e)throw new D({docsPath:"/docs/actions/wallet/signMessage"});const n=N(e);if(n.signMessage)return n.signMessage({message:a});const r=typeof a=="string"?Ke(a):a.raw instanceof Uint8Array?Nt(a.raw):a.raw;return t.request({method:"personal_sign",params:[r,n.address]},{retryCount:0})}async function Sn(t,e){var i,f,m,h;const{account:a=t.account,chain:n=t.chain,...r}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTransaction"});const s=N(a);Rt({account:s,...e});const u=await U(t,dt,"getChainId")({});n!==null&&qt({currentChainId:u,chain:n});const d=(n==null?void 0:n.formatters)||((i=t.chain)==null?void 0:i.formatters),c=((f=d==null?void 0:d.transactionRequest)==null?void 0:f.format)||ht;return s.signTransaction?s.signTransaction({...r,chainId:u},{serializer:(h=(m=t.chain)==null?void 0:m.serializers)==null?void 0:h.transaction}):await t.request({method:"eth_signTransaction",params:[{...c({...r,account:s},"signTransaction"),chainId:R(u),from:s.address}]},{retryCount:0})}async function An(t,e){const{account:a=t.account,domain:n,message:r,primaryType:s}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTypedData"});const u=N(a),d={EIP712Domain:Xe({domain:n}),...e.types};if(ta({domain:n,message:r,primaryType:s,types:d}),u.signTypedData)return u.signTypedData({domain:n,message:r,primaryType:s,types:d});const c=ea({domain:n,message:r,primaryType:s,types:d});return t.request({method:"eth_signTypedData_v4",params:[u.address,c]},{retryCount:0})}async function Pn(t,{id:e}){await t.request({method:"wallet_switchEthereumChain",params:[{chainId:R(e)}]},{retryCount:0})}async function _n(t,e){return await t.request({method:"wallet_watchAsset",params:e},{retryCount:0})}async function Rn(t,e){return M.internal(t,Vt,"sendTransactionSync",e)}function qn(t){return{addChain:e=>pn(t,e),deployContract:e=>yn(t,e),getAddresses:()=>gn(t),getCallsStatus:e=>qe(t,e),getCapabilities:e=>bn(t,e),getChainId:()=>dt(t),getPermissions:()=>wn(t),prepareAuthorization:e=>kt(t,e),prepareTransactionRequest:e=>Ft(t,e),requestAddresses:()=>xn(t),requestPermissions:e=>En(t,e),sendCalls:e=>Pt(t,e),sendCallsSync:e=>In(t,e),sendRawTransaction:e=>Re(t,e),sendRawTransactionSync:e=>Ut(t,e),sendTransaction:e=>ut(t,e),sendTransactionSync:e=>Vt(t,e),showCallsStatus:e=>Tn(t,e),signAuthorization:e=>Cn(t,e),signMessage:e=>vn(t,e),signTransaction:e=>Sn(t,e),signTypedData:e=>An(t,e),switchChain:e=>Pn(t,e),waitForCallsStatus:e=>_t(t,e),watchAsset:e=>_n(t,e),writeContract:e=>M(t,e),writeContractSync:e=>Rn(t,e)}}function sr(t){const{key:e="wallet",name:a="Wallet Client",transport:n}=t;return At({...t,key:e,name:a,transport:n,type:"walletClient"}).extend(qn)}function or(t,e={}){const{key:a="custom",methods:n,name:r="Custom Provider",retryDelay:s}=e;return({retryCount:u})=>lt({key:a,methods:n,name:r,request:t.request.bind(t),retryCount:e.retryCount??u,retryDelay:s,type:"custom"})}function ir(t,e={}){const{key:a="fallback",name:n="Fallback",rank:r=!1,shouldThrow:s=Fn,retryCount:u,retryDelay:d}=e;return(({chain:c,pollingInterval:i=4e3,timeout:f,...m})=>{let h=t,o=()=>{};const p=lt({key:a,name:n,async request({method:l,params:y}){let w;const g=async(C=0)=>{const b=h[C]({...m,chain:c,retryCount:0,timeout:f});try{const x=await b.request({method:l,params:y});return o({method:l,params:y,response:x,transport:b,status:"success"}),x}catch(x){if(o({error:x,method:l,params:y,transport:b,status:"error"}),s(x)||C===h.length-1||(w??(w=h.slice(C+1).some(I=>{const{include:T,exclude:v}=I({chain:c}).config.methods||{};return T?T.includes(l):v?!v.includes(l):!0})),!w))throw x;return g(C+1)}};return g()},retryCount:u,retryDelay:d,type:"fallback"},{onResponse:l=>o=l,transports:h.map(l=>l({chain:c,retryCount:0}))});if(r){const l=typeof r=="object"?r:{};Un({chain:c,interval:l.interval??i,onTransports:y=>h=y,ping:l.ping,sampleCount:l.sampleCount,timeout:l.timeout,transports:h,weights:l.weights})}return p})}function Fn(t){return!!("code"in t&&typeof t.code=="number"&&(t.code===na.code||t.code===ra.code||Fe.nodeMessage.test(t.message)||t.code===5e3))}function Un({chain:t,interval:e=4e3,onTransports:a,ping:n,sampleCount:r=10,timeout:s=1e3,transports:u,weights:d={}}){const{stability:c=.7,latency:i=.3}=d,f=[],m=async()=>{const h=await Promise.all(u.map(async l=>{const y=l({chain:t,retryCount:0,timeout:s}),w=Date.now();let g,C;try{await(n?n({transport:y}):y.request({method:"net_listening"})),C=1}catch{C=0}finally{g=Date.now()}return{latency:g-w,success:C}}));f.push(h),f.length>r&&f.shift();const o=Math.max(...f.map(l=>Math.max(...l.map(({latency:y})=>y)))),p=u.map((l,y)=>{const w=f.map(I=>I[y].latency),C=1-w.reduce((I,T)=>I+T,0)/w.length/o,b=f.map(I=>I[y].success),x=b.reduce((I,T)=>I+T,0)/b.length;return x===0?[0,y]:[i*C+c*x,y]}).sort((l,y)=>y[0]-l[0]);a(p.map(([,l])=>u[l])),await Ue(e),m()};m()}function cr(t,e={}){const{keepAlive:a,key:n="webSocket",methods:r,name:s="WebSocket JSON-RPC",reconnect:u,retryDelay:d}=e;return({chain:c,retryCount:i,timeout:f})=>{var l;const m=e.retryCount??i,h=f??e.timeout??1e4,o=t||((l=c==null?void 0:c.rpcUrls.default.webSocket)==null?void 0:l[0]),p={keepAlive:a,reconnect:u};if(!o)throw new ke;return lt({key:n,methods:r,name:s,async request({method:y,params:w}){const g={method:y,params:w},C=await K(o,p),{error:b,result:x}=await C.requestAsync({body:g,timeout:h});if(b)throw new sa({body:g,error:b,url:o});return x},retryCount:m,retryDelay:d,timeout:h,type:"webSocket"},{getSocket(){return Ta(o)},getRpcClient(){return K(o,p)},async subscribe({params:y,onData:w,onError:g}){const C=await K(o,p),{result:b}=await new Promise((x,I)=>C.request({body:{method:"eth_subscribe",params:y},onError(T){I(T),g==null||g(T)},onResponse(T){if(T.error){I(T.error),g==null||g(T.error);return}if(typeof T.id=="number"){x(T);return}T.method==="eth_subscription"&&w(T.params)}}));return{subscriptionId:b,async unsubscribe(){return new Promise(x=>C.request({body:{method:"eth_unsubscribe",params:[b]},onResponse:x}))}}}})}}class ur extends Error{constructor(e,a){super(a),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=e,this.details=a}}const it="/docs/contract/decodeDeployData";function dr(t){const{abi:e,bytecode:a,data:n}=t;if(n===a)return{bytecode:a};const r=e.find(u=>"type"in u&&u.type==="constructor");if(!r)throw new Ye({docsPath:it});if(!("inputs"in r))throw new Et({docsPath:it});if(!r.inputs||r.inputs.length===0)throw new Et({docsPath:it});return{args:Mt(r.inputs,`0x${n.replace(a,"")}`),bytecode:a}}function lr(t){const e=t.to??(typeof t.blobs[0]=="string"?"hex":"bytes"),a=typeof t.blobs[0]=="string"?t.blobs.map(d=>H(d)):t.blobs,n=a.reduce((d,c)=>d+c.length,0),r=ct(new Uint8Array(n));let s=!0;for(const d of a){const c=ct(d);for(;s&&c.position<d.length;){c.incrementPosition(1);let i=31;d.length-c.position<31&&(i=d.length-c.position);for(const f in Array.from({length:i})){const m=c.readByte();if(m===128&&!c.inspectBytes(c.remaining).includes(128)){s=!1;break}r.pushByte(m)}}}const u=r.bytes.slice(0,r.position);return e==="hex"?G(u):u}function mr(t){const{sidecars:e,version:a}=t,n=t.to??(typeof e[0].blob=="string"?"hex":"bytes"),r=[];for(const{commitment:s}of e)r.push(Be({commitment:s,to:n,version:a}));return r}const kn=2147483648;function fr(t){if(t===1)return 60n;if(t>=kn||t<0)throw new Ne({chainId:t});return BigInt((2147483648|t)>>>0)}function Bn({blobToKzgCommitment:t,computeBlobKzgProof:e}){return{blobToKzgCommitment:t,computeBlobKzgProof:e}}function hr(t,e){try{t.loadTrustedSetup(e)}catch(a){const n=a;if(!n.message.includes("trusted setup is already loaded"))throw n}return Bn(t)}function pr({r:t,yParityAndS:e}){const a=H(e),n=a[0]&128?1:0,r=a;return n===1&&(r[0]&=127),{r:t,s:G(r),yParity:n}}function yr(t){const{r:e,s:a}=Bt.Signature.fromCompact(t.slice(2,130));return{r:R(e,{size:32}),yParityAndS:R(a,{size:32})}}async function gr(t){const{serializedTransaction:e,signature:a}=t,n=_a(e),r=a??{r:n.r,s:n.s,v:n.v,yParity:n.yParity},s=Le({...n,r:void 0,s:void 0,v:void 0,yParity:void 0,sidecars:void 0});return await Q({hash:Y(s),signature:r})}function br({r:t,yParityAndS:e}){return`0x${new Bt.Signature(A(t),A(e)).toCompactHex()}`}function wr(t){const{r:e,s:a,v:n,yParity:r}=t,s=Number(r??n-27n);let u=a;if(s===1){const d=H(a);d[0]|=128,u=G(d)}return{r:e,yParityAndS:u}}export{Ye as AbiConstructorNotFoundError,Et as AbiConstructorParamsNotFoundError,To as AbiDecodingDataSizeInvalidError,Co as AbiDecodingDataSizeTooSmallError,vo as AbiDecodingZeroDataError,So as AbiEncodingArrayLengthMismatchError,Ao as AbiEncodingBytesSizeMismatchError,Po as AbiEncodingLengthMismatchError,_o as AbiErrorInputsNotFoundError,Ro as AbiErrorNotFoundError,qo as AbiErrorSignatureNotFoundError,Fo as AbiEventNotFoundError,Uo as AbiEventSignatureEmptyTopicsError,ko as AbiEventSignatureNotFoundError,Bo as AbiFunctionNotFoundError,No as AbiFunctionOutputsNotFoundError,Lo as AbiFunctionSignatureNotFoundError,Ir as AccountStateConflictError,Ki as AtomicReadyWalletRejectedUpgradeError,Yi as AtomicityNotSupportedError,mt as BaseError,Tr as BaseFeeScalarError,Cr as BlockNotFoundError,vr as BundleFailedError,Zi as BundleTooLargeError,Mo as BytesSizeMismatchError,Sr as CallExecutionError,Qi as ChainDisconnectedError,Ar as ChainDoesNotSupportContract,Pr as ChainMismatchError,_r as ChainNotFoundError,Rr as CircularReferenceError,qr as ClientChainNotConfiguredError,Fr as ContractFunctionExecutionError,Ur as ContractFunctionRevertedError,kr as ContractFunctionZeroDataError,Br as CounterfactualDeploymentFailedError,Do as DecodeLogDataMismatch,zo as DecodeLogTopicsMismatch,Xi as DuplicateIdError,ur as EIP1193ProviderRpcError,Nr as Eip1559FeesNotSupportedError,Lr as EnsAvatarInvalidNftUriError,Mr as EnsAvatarUnsupportedNamespaceError,Dr as EnsAvatarUriResolutionError,Ne as EnsInvalidChainIdError,zr as EstimateGasExecutionError,Fe as ExecutionRevertedError,Gr as FeeCapTooHighError,$r as FeeCapTooLowError,Hr as FeeConflictError,Go as FilterTypeNotSupportedError,tc as HttpRequestError,Or as InsufficientFundsError,$o as IntegerOutOfRangeError,ec as InternalRpcError,jr as IntrinsicGasTooHighError,Wr as IntrinsicGasTooLowError,Ho as InvalidAbiDecodingTypeError,Oo as InvalidAbiEncodingTypeError,Vr as InvalidAbiItemError,Qt as InvalidAbiParameterError,Jr as InvalidAbiParametersError,Kr as InvalidAbiTypeParameterError,je as InvalidAddressError,jo as InvalidArrayError,Wo as InvalidBytesBooleanError,Yr as InvalidChainIdError,Na as InvalidDecimalNumberError,Vo as InvalidDefinitionTypeError,$i as InvalidDomainError,Zr as InvalidFunctionModifierError,Jo as InvalidHexBooleanError,Ge as InvalidHexValueError,ac as InvalidInputRpcError,Ee as InvalidLegacyVError,Qr as InvalidModifierError,Xr as InvalidParameterError,nc as InvalidParamsRpcError,ts as InvalidParenthesisError,Hi as InvalidPrimaryTypeError,rc as InvalidRequestRpcError,es as InvalidSerializableTransactionError,$ as InvalidSerializedTransactionError,he as InvalidSerializedTransactionTypeError,as as InvalidSignatureError,ns as InvalidStorageKeySizeError,rs as InvalidStructSignatureError,Oi as InvalidStructTypeError,sc as JsonRpcVersionUnsupportedError,oc as LimitExceededRpcError,ss as MaxFeePerGasTooLowError,ic as MethodNotFoundRpcError,cc as MethodNotSupportedRpcError,os as NonceMaxValueError,is as NonceTooHighError,cs as NonceTooLowError,uc as ParseRpcError,dc as ProviderDisconnectedError,lc as ProviderRpcError,us as RawContractError,mc as ResourceNotFoundRpcError,fc as ResourceUnavailableRpcError,hc as RpcError,sa as RpcRequestError,Ko as SizeExceedsPaddingSizeError,Yo as SizeOverflowError,Zo as SliceOffsetOutOfBoundsError,Z as SocketClosedError,ds as SolidityProtectedKeywordError,ls as StateAssignmentConflictError,pc as SwitchChainError,aa as TimeoutError,ms as TipAboveFeeCapError,fs as TransactionExecutionError,hs as TransactionNotFoundError,ps as TransactionReceiptNotFoundError,na as TransactionRejectedRpcError,ys as TransactionTypeNotSupportedError,yc as UnauthorizedProviderError,gc as UnknownBundleIdError,gs as UnknownNodeError,bc as UnknownRpcError,bs as UnknownSignatureError,ws as UnknownTypeError,wc as UnsupportedChainIdError,xc as UnsupportedNonOptionalCapabilityError,Qo as UnsupportedPackedAbiType,Ec as UnsupportedProviderMethodError,ke as UrlRequiredError,ra as UserRejectedRequestError,xs as WaitForCallsStatusTimeoutError,Es as WaitForTransactionReceiptTimeoutError,It as WebSocketRequestError,qt as assertCurrentChain,Rt as assertRequest,pe as assertTransactionEIP1559,ye as assertTransactionEIP2930,xe as assertTransactionLegacy,Is as blobsToCommitments,Ts as blobsToProofs,Xo as boolToBytes,ti as boolToHex,ei as bytesToBigInt,ai as bytesToBool,G as bytesToHex,ni as bytesToNumber,Tc as bytesToRlp,ri as bytesToString,pd as ccipFetch,yd as ccipRequest,Ve as checksumAddress,Be as commitmentToVersionedHash,Cs as commitmentsToVersionedHashes,br as compactSignatureToHex,pr as compactSignatureToSignature,ze as concat,si as concatBytes,oi as concatHex,At as createClient,vs as createNonceManager,Ss as createPublicClient,rr as createTestClient,lt as createTransport,sr as createWalletClient,or as custom,Mt as decodeAbiParameters,dr as decodeDeployData,ii as decodeErrorResult,ci as decodeEventLog,As as decodeFunctionData,Ps as decodeFunctionResult,ui as defineBlock,di as defineChain,Bn as defineKzg,li as defineTransaction,Ed as defineTransactionReceipt,mi as defineTransactionRequest,_s as deploylessCallViaBytecodeBytecode,Rs as deploylessCallViaFactoryBytecode,ji as domainSeparator,fi as encodeAbiParameters,Ce as encodeDeployData,qs as encodeErrorResult,hi as encodeEventTopics,Xt as encodeFunctionData,Fs as encodeFunctionResult,Us as encodePacked,ks as erc1155Abi,Bs as erc20Abi,Ns as erc20Abi_bytes32,Ls as erc4626Abi,Ms as erc6492SignatureValidatorAbi,Ds as erc6492SignatureValidatorByteCode,zs as erc721Abi,Gs as ethAddress,Ie as etherUnits,Jn as extractChain,ir as fallback,pi as formatBlock,$s as formatEther,Hs as formatGwei,Id as formatLog,yi as formatTransaction,Td as formatTransactionReceipt,ht as formatTransactionRequest,Os as formatUnits,lr as fromBlobs,gi as fromBytes,bi as fromHex,Dt as fromRlp,wi as getAbiItem,k as getAddress,js as getChainContractAddress,Wn as getContract,Vn as getContractAddress,te as getContractError,da as getCreate2Address,ua as getCreateAddress,xi as getEventSelector,Ei as getEventSignature,Ii as getFunctionSelector,Ti as getFunctionSignature,Pa as getSerializedTransactionType,Ws as getTransactionType,Xe as getTypesForEIP712Domain,Te as gweiUnits,Wi as hashDomain,me as hashMessage,Vi as hashStruct,Qe as hashTypedData,A as hexToBigInt,Ci as hexToBool,H as hexToBytes,yr as hexToCompactSignature,F as hexToNumber,Cc as hexToRlp,Vs as hexToSignature,vi as hexToString,Js as http,Oe as isAddress,ft as isAddressEqual,Tt as isBytes,Ca as isErc6492Signature,va as isErc8010Signature,ma as isHash,E as isHex,Y as keccak256,Ks as labelhash,vc as maxInt104,Sc as maxInt112,Ac as maxInt120,Pc as maxInt128,_c as maxInt136,Rc as maxInt144,qc as maxInt152,Fc as maxInt16,Uc as maxInt160,kc as maxInt168,Bc as maxInt176,Nc as maxInt184,Lc as maxInt192,Mc as maxInt200,Dc as maxInt208,zc as maxInt216,Gc as maxInt224,$c as maxInt232,Hc as maxInt24,Oc as maxInt240,jc as maxInt248,Wc as maxInt256,Vc as maxInt32,Jc as maxInt40,Kc as maxInt48,Yc as maxInt56,Zc as maxInt64,Qc as maxInt72,Xc as maxInt8,tu as maxInt80,eu as maxInt88,au as maxInt96,nu as maxUint104,ru as maxUint112,su as maxUint120,ou as maxUint128,iu as maxUint136,cu as maxUint144,uu as maxUint152,du as maxUint16,lu as maxUint160,mu as maxUint168,fu as maxUint176,hu as maxUint184,pu as maxUint192,yu as maxUint200,gu as maxUint208,bu as maxUint216,wu as maxUint224,xu as maxUint232,Eu as maxUint24,Iu as maxUint240,Tu as maxUint248,Cu as maxUint256,vu as maxUint32,Su as maxUint40,Au as maxUint48,Pu as maxUint56,_u as maxUint64,Ru as maxUint72,qu as maxUint8,Fu as maxUint80,Uu as maxUint88,ku as maxUint96,Bu as minInt104,Nu as minInt112,Lu as minInt120,Mu as minInt128,Du as minInt136,zu as minInt144,Gu as minInt152,$u as minInt16,Hu as minInt160,Ou as minInt168,ju as minInt176,Wu as minInt184,Vu as minInt192,Ju as minInt200,Ku as minInt208,Yu as minInt216,Zu as minInt224,Qu as minInt232,Xu as minInt24,td as minInt240,ed as minInt248,ad as minInt256,nd as minInt32,rd as minInt40,sd as minInt48,od as minInt56,id as minInt64,cd as minInt72,ud as minInt8,dd as minInt80,ld as minInt88,md as minInt96,Ys as multicall3Abi,Zs as namehash,Qs as nonceManager,Si as numberToBytes,R as numberToHex,gd as offchainLookup,bd as offchainLookupAbiItem,wd as offchainLookupSignature,Me as pad,Ai as padBytes,xt as padHex,Xs as parseAbi,to as parseAbiItem,jn as parseAbiParameter,eo as parseAbiParameters,yr as parseCompactSignature,Yn as parseErc6492Signature,Zn as parseErc8010Signature,ar as parseEther,Pi as parseEventLogs,nr as parseGwei,ao as parseSignature,_a as parseTransaction,Wt as parseUnits,no as prepareEncodeFunctionData,ro as presignMessagePrefix,so as publicActions,Q as recoverAddress,Sa as recoverMessageAddress,oo as recoverPublicKey,gr as recoverTransactionAddress,Aa as recoverTypedDataAddress,Kn as ripemd160,io as rpcSchema,_i as rpcTransactionType,co as serializeAccessList,br as serializeCompactSignature,uo as serializeErc6492Signature,Qn as serializeErc8010Signature,lo as serializeSignature,Le as serializeTransaction,ea as serializeTypedData,Ri as setErrorConfig,hr as setupKzg,fd as sha256,Fn as shouldThrow,mr as sidecarsToVersionedHashes,wr as signatureToCompactSignature,mo as signatureToHex,$e as size,De as slice,qi as sliceBytes,Lt as sliceHex,Fi as stringToBytes,Ke as stringToHex,Ui as stringify,hn as testActions,ge as toBlobSidecars,fo as toBlobs,B as toBytes,fr as toCoinType,ki as toEventHash,Bi as toEventSelector,Ni as toEventSignature,Li as toFunctionHash,Mi as toFunctionSelector,Di as toFunctionSignature,Nt as toHex,ho as toPrefixedMessage,ia as toRlp,zi as transactionType,We as trim,po as universalSignatureValidatorAbi,yo as universalSignatureValidatorByteCode,ta as validateTypedData,Xn as verifyHash,tr as verifyMessage,er as verifyTypedData,qn as walletActions,cr as webSocket,go as weiUnits,bo as withCache,wo as withRetry,Ze as withTimeout,xo as zeroAddress,Eo as zeroHash};
|
|
2
|
+
import{p as gt,b as Yt,i as Zt,I as Qt,m as bt,s as ut,A as D,e as Xt,g as U,d as te,f as N,r as ee,h as ae,j as ne,k as re,w as se,n as oe,o as ie,q as ce,t as ue,v as de,u as le,x as Q,y as me,z as fe,B as he,C as $,D as pe,E as ye,F as ge,G as be,H as we,J as xe,K as Ee,L as Ie,M as Te,N as St,O as At,P as Ce,Q as Pt,R as _t,S as Rt,T as ve,U as dt,V as qt,W as Se,X as Ae,Y as Ft,Z as Pe,_ as Ut,$ as J,a0 as _e,a1 as kt,a2 as Re,a3 as qe,a4 as lt,a5 as Fe,a6 as Ue,a7 as ke,a8 as Be,a9 as Ne,aa as Bt,ab as Le}from"./parseSignature-3yq9FfJP.js";import{ac as Ir,ad as Tr,ae as Cr,af as vr,ag as Sr,ah as Ar,ai as Pr,aj as _r,ak as Rr,al as qr,am as Fr,an as Ur,ao as kr,ap as Br,aq as Nr,ar as Lr,as as Mr,at as Dr,au as zr,av as Gr,aw as $r,ax as Hr,ay as Or,az as jr,aA as Wr,aB as Vr,aC as Jr,aD as Kr,aE as Yr,aF as Zr,aG as Qr,aH as Xr,aI as ts,aJ as es,aK as as,aL as ns,aM as rs,aN as ss,aO as os,aP as is,aQ as cs,aR as us,aS as ds,aT as ls,aU as ms,aV as fs,aW as hs,aX as ps,aY as ys,aZ as gs,a_ as bs,a$ as ws,b0 as xs,b1 as Es,b2 as Is,b3 as Ts,b4 as Cs,b5 as vs,b6 as Ss,b7 as As,b8 as Ps,b9 as _s,ba as Rs,bb as qs,bc as Fs,bd as Us,be as ks,bf as Bs,bg as Ns,bh as Ls,bi as Ms,bj as Ds,bk as zs,bl as Gs,bm as $s,bn as Hs,bo as Os,bp as js,bq as Ws,br as Vs,bs as Js,bt as Ks,bu as Ys,bv as Zs,bw as Qs,bx as Xs,by as to,bz as eo,br as ao,bA as no,bB as ro,bC as so,bD as oo,bE as io,bF as co,bG as uo,bH as lo,bH as mo,bI as fo,bJ as ho,bi as po,bj as yo,bK as go,bL as bo,bM as wo,bN as xo,bO as Eo}from"./parseSignature-3yq9FfJP.js";import{T as B,b9 as k,U as Me,I as Y,ba as De,G as ze,bb as Ge,X as H,_ as ct,$ as G,B as mt,D as E,P as $e,a7 as He,bc as j,a6 as wt,R as Nt,bd as Lt,d as Mt,L as R,F as ft,A as F,be as A,M as Oe,N as je,bf as We,bg as xt,aG as ht,J as Ve,bh as Je,bi as Ke,bj as Ye,bk as Et}from"./signing-BGpVago5.js";import{bl as To,bm as Co,bn as vo,bo as So,bp as Ao,bq as Po,br as _o,bs as Ro,bt as qo,bu as Fo,bv as Uo,bw as ko,bx as Bo,by as No,bz as Lo,Q as Mo,bA as Do,bB as zo,bC as Go,bD as $o,bE as Ho,bF as Oo,bG as jo,bH as Wo,bI as Vo,bJ as Jo,bK as Ko,bL as Yo,bM as Zo,bN as Qo,bO as Xo,bP as ti,bQ as ei,bR as ai,bS as ni,bT as ri,bU as si,bV as oi,E as ii,bW as ci,bX as ui,bY as di,bZ as li,b_ as mi,p as fi,b$ as hi,at as pi,au as yi,c0 as gi,c1 as bi,c2 as wi,c3 as xi,c4 as Ei,f as Ii,c4 as Ti,c5 as Ci,c6 as vi,c7 as Si,c8 as Ai,c9 as Pi,ca as _i,cb as Ri,cc as qi,cd as Fi,C as Ui,ce as ki,c3 as Bi,c4 as Ni,ce as Li,f as Mi,c4 as Di,z as zi}from"./signing-BGpVago5.js";import{w as Ze,h as Qe,g as Xe,v as ta,s as ea}from"./hashTypedData-CaO8N883.js";import{I as $i,a as Hi,b as Oi,d as ji,c as Wi,e as Vi}from"./hashTypedData-CaO8N883.js";import{T as aa,a as Z,W as It,b as na,U as ra,R as sa}from"./rpc-BC6ESxMB.js";import{A as Ki,c as Yi,B as Zi,C as Qi,D as Xi,H as tc,I as ec,d as ac,e as nc,f as rc,J as sc,L as oc,M as ic,h as cc,P as uc,i as dc,j as lc,k as mc,l as fc,m as hc,S as pc,n as yc,o as gc,p as bc,q as wc,r as xc,s as Ec}from"./rpc-BC6ESxMB.js";import{_ as oa}from"./index-Dmfk0azd.js";import{t as ia,H as ca}from"./sha256-bg_KfcLv.js";import{b as Tc,h as Cc,a as vc,c as Sc,d as Ac,e as Pc,f as _c,g as Rc,i as qc,j as Fc,k as Uc,l as kc,n as Bc,o as Nc,p as Lc,q as Mc,r as Dc,u as zc,v as Gc,w as $c,x as Hc,y as Oc,z as jc,A as Wc,B as Vc,C as Jc,D as Kc,E as Yc,F as Zc,G as Qc,I as Xc,J as tu,K as eu,L as au,M as nu,N as ru,O as su,P as ou,Q as iu,R as cu,S as uu,m as du,T as lu,U as mu,V as fu,W as hu,X as pu,Y as yu,Z as gu,_ as bu,$ as wu,a0 as xu,a1 as Eu,a2 as Iu,a3 as Tu,a4 as Cu,a5 as vu,a6 as Su,a7 as Au,a8 as Pu,a9 as _u,aa as Ru,ab as qu,ac as Fu,ad as Uu,ae as ku,af as Bu,ag as Nu,ah as Lu,ai as Mu,aj as Du,ak as zu,al as Gu,am as $u,an as Hu,ao as Ou,ap as ju,aq as Wu,ar as Vu,as as Ju,at as Ku,au as Yu,av as Zu,aw as Qu,ax as Xu,ay as td,az as ed,aA as ad,aB as nd,aC as rd,aD as sd,aE as od,aF as id,aG as cd,aH as ud,aI as dd,aJ as ld,aK as md,s as fd}from"./sha256-bg_KfcLv.js";import{ccipRequest as pd,ccipRequest as yd,offchainLookup as gd,offchainLookupAbiItem as bd,offchainLookupSignature as wd}from"./ccip-BMCE_sFa.js";import{d as Ed,a as Id,f as Td}from"./transactionReceipt-CbcThGoC.js";import"./utils-nbkSUjEy.js";import"./ethers-DHDSyreX.js";import"./react-Vu6nbGi5.js";function jn(t){let e;if(typeof t=="string")e=gt(t,{modifiers:bt});else{const a=Yt(t),n=t.length;for(let r=0;r<n;r++){const s=t[r];if(!Zt(s)){e=gt(s,{modifiers:bt,structs:a});break}}}if(!e)throw new Qt({param:t});return e}async function M(t,e){return M.internal(t,ut,"sendTransaction",e)}(function(t){async function e(a,n,r,s){const{abi:u,account:d=a.account,address:c,args:i,dataSuffix:f,functionName:m,...h}=s;if(typeof d>"u")throw new D({docsPath:"/docs/contract/writeContract"});const o=d?N(d):null,p=Xt({abi:u,args:i,functionName:m});try{return await U(a,n,r)({data:`${p}${f?f.replace("0x",""):""}`,to:c,account:o,...h})}catch(l){throw te(l,{abi:u,address:c,args:i,docsPath:"/docs/contract/writeContract",functionName:m,sender:o==null?void 0:o.address})}}t.internal=e})(M||(M={}));function Wn({abi:t,address:e,client:a}){const n=a,[r,s]=n?"public"in n&&"wallet"in n?[n.public,n.wallet]:"public"in n?[n.public,void 0]:"wallet"in n?[void 0,n.wallet]:[n,n]:[void 0,void 0],u=r!=null,d=s!=null,c={};let i=!1,f=!1,m=!1;for(const h of t)if(h.type==="function"?h.stateMutability==="view"||h.stateMutability==="pure"?i=!0:f=!0:h.type==="event"&&(m=!0),i&&f&&m)break;return u&&(i&&(c.read=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(r,ee,"readContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),f&&(c.simulate=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(r,ae,"simulateContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),m&&(c.createEventFilter=new Proxy({},{get(h,o){return(...p)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,l);return U(r,ne,"createContractEventFilter")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.getEvents=new Proxy({},{get(h,o){return(...p)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,l);return U(r,re,"getContractEvents")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.watchEvent=new Proxy({},{get(h,o){return(...p)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,l);return U(r,se,"watchContractEvent")({abi:t,address:e,eventName:o,args:y,...w})}}}))),d&&f&&(c.write=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(s,M,"writeContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),(u||d)&&f&&(c.estimateGas=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(r??s,oe,"estimateContractGas")({abi:t,address:e,functionName:o,args:l,...y,account:y.account??s.account})}}})),c.address=e,c.abi=t,c}function W(t){const e=t.length&&Array.isArray(t[0]),a=e?t[0]:[],n=(e?t[1]:t[0])??{};return{args:a,options:n}}function rt(t,e){let a=!1;Array.isArray(t[0])?a=!0:t.length===1?a=e.inputs.some(s=>s.indexed):t.length===2&&(a=!0);const n=a?t[0]:void 0,r=(a?t[1]:t[0])??{};return{args:n,options:r}}function Tt(t){return!t||typeof t!="object"||!("BYTES_PER_ELEMENT"in t)?!1:t.BYTES_PER_ELEMENT===1&&t.constructor.name==="Uint8Array"}function Vn(t){return t.opcode==="CREATE2"?da(t):ua(t)}function ua(t){const e=B(k(t.from));let a=B(t.nonce);return a[0]===0&&(a=new Uint8Array([])),k(`0x${Y(ia([e,a],"bytes")).slice(26)}`)}function da(t){const e=B(k(t.from)),a=Me(Tt(t.salt)?t.salt:B(t.salt),{size:32}),n="bytecodeHash"in t?Tt(t.bytecodeHash)?t.bytecodeHash:B(t.bytecodeHash):Y(t.bytecode,"bytes");return k(De(Y(ze([B("0xff"),e,a,n])),12))}function Jn({chains:t,id:e}){return t.find(a=>a.id===e)}function Dt(t,e="hex"){const a=(()=>{if(typeof t=="string"){if(t.length>3&&t.length%2!==0)throw new Ge(t);return H(t)}return t})(),n=ct(a,{recursiveReadLimit:Number.POSITIVE_INFINITY});return zt(n,e)}function zt(t,e="hex"){if(t.bytes.length===0)return e==="hex"?G(t.bytes):t.bytes;const a=t.readByte();if(a<128&&t.decrementPosition(1),a<192){const r=Ct(t,a,128),s=t.readBytes(r);return e==="hex"?G(s):s}const n=Ct(t,a,192);return la(t,n,e)}function Ct(t,e,a){if(a===128&&e<128)return 1;if(e<=a+55)return e-a;if(e===a+55+1)return t.readUint8();if(e===a+55+2)return t.readUint16();if(e===a+55+3)return t.readUint24();if(e===a+55+4)return t.readUint32();throw new mt("Invalid RLP prefix")}function la(t,e,a){const n=t.position,r=[];for(;t.position-n<e;)r.push(zt(t,a));return r}function ma(t){return E(t)&&$e(t)===32}const fa=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Gt=Uint8Array.from(new Array(16).fill(0).map((t,e)=>e)),ha=Gt.map(t=>(9*t+5)%16),$t=(()=>{const a=[[Gt],[ha]];for(let n=0;n<4;n++)for(let r of a)r.push(r[n].map(s=>fa[s]));return a})(),Ht=$t[0],Ot=$t[1],jt=[[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(t=>Uint8Array.from(t)),pa=Ht.map((t,e)=>t.map(a=>jt[e][a])),ya=Ot.map((t,e)=>t.map(a=>jt[e][a])),ga=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),ba=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function vt(t,e,a,n){return t===0?e^a^n:t===1?e&a|~e&n:t===2?(e|~a)^n:t===3?e&n|a&~n:e^(a|~n)}const V=new Uint32Array(16);class wa extends ca{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:a,h2:n,h3:r,h4:s}=this;return[e,a,n,r,s]}set(e,a,n,r,s){this.h0=e|0,this.h1=a|0,this.h2=n|0,this.h3=r|0,this.h4=s|0}process(e,a){for(let o=0;o<16;o++,a+=4)V[o]=e.getUint32(a,!0);let n=this.h0|0,r=n,s=this.h1|0,u=s,d=this.h2|0,c=d,i=this.h3|0,f=i,m=this.h4|0,h=m;for(let o=0;o<5;o++){const p=4-o,l=ga[o],y=ba[o],w=Ht[o],g=Ot[o],C=pa[o],b=ya[o];for(let x=0;x<16;x++){const I=j(n+vt(o,s,d,i)+V[w[x]]+l,C[x])+m|0;n=m,m=i,i=j(d,10)|0,d=s,s=I}for(let x=0;x<16;x++){const I=j(r+vt(p,u,c,f)+V[g[x]]+y,b[x])+h|0;r=h,h=f,f=j(c,10)|0,c=u,u=I}}this.set(this.h1+d+f|0,this.h2+i+h|0,this.h3+m+r|0,this.h4+n+u|0,this.h0+s+c|0)}roundClean(){wt(V)}destroy(){this.destroyed=!0,wt(this.buffer),this.set(0,0,0,0,0)}}const xa=He(()=>new wa),Ea=xa;function Kn(t,e){const a=e||"hex",n=Ea(E(t,{strict:!1})?B(t):t);return a==="bytes"?n:Nt(n)}const st=new Map;async function Ia(t){const{getSocket:e,keepAlive:a=!0,key:n="socket",reconnect:r=!0,url:s}=t,{interval:u=3e4}=typeof a=="object"?a:{},{attempts:d=5,delay:c=2e3}=typeof r=="object"?r:{},i=JSON.stringify({keepAlive:a,key:n,url:s,reconnect:r});let f=st.get(i);if(f)return f;let m=0;const{schedule:h}=ie({id:i,fn:async()=>{const l=new Map,y=new Map;let w,g,C,b=!1;function x(){if(r&&m<d){if(b)return;b=!0,m++,g==null||g.close(),setTimeout(async()=>{await I().catch(console.error),b=!1},c)}else l.clear(),y.clear()}async function I(){const T=await e({onClose(){var v,P;for(const S of l.values())(v=S.onError)==null||v.call(S,new Z({url:s}));for(const S of y.values())(P=S.onError)==null||P.call(S,new Z({url:s}));x()},onError(v){var P,S;w=v;for(const _ of l.values())(P=_.onError)==null||P.call(_,w);for(const _ of y.values())(S=_.onError)==null||S.call(_,w);x()},onOpen(){w=void 0,m=0},onResponse(v){const P=v.method==="eth_subscription",S=P?v.params.subscription:v.id,_=P?y:l,q=_.get(S);q&&q.onResponse(v),P||_.delete(S)}});if(g=T,a&&(C&&clearInterval(C),C=setInterval(()=>{var v;return(v=g.ping)==null?void 0:v.call(g)},u)),r&&y.size>0){const v=y.entries();for(const[P,{onResponse:S,body:_,onError:q}]of v)_&&(y.delete(P),f==null||f.request({body:_,onResponse:S,onError:q}))}return T}return await I(),w=void 0,f={close(){C&&clearInterval(C),g.close(),st.delete(i)},get socket(){return g},request({body:T,onError:v,onResponse:P}){w&&v&&v(w);const S=T.id??ce.take(),_=q=>{var z;typeof q.id=="number"&&S!==q.id||(T.method==="eth_subscribe"&&typeof q.result=="string"&&y.set(q.result,{onResponse:_,onError:v,body:T}),T.method==="eth_unsubscribe"&&y.delete((z=T.params)==null?void 0:z[0]),P(q))};l.set(S,{onResponse:_,onError:v});try{g.request({body:{jsonrpc:"2.0",id:S,...T}})}catch(q){v==null||v(q)}},requestAsync({body:T,timeout:v=1e4}){return Ze(()=>new Promise((P,S)=>this.request({body:T,onError:S,onResponse:P})),{errorInstance:new aa({body:T,url:s}),timeout:v})},requests:l,subscriptions:y,url:s},st.set(i,f),[f]}}),[o,[p]]=await h();return p}async function K(t,e={}){const{keepAlive:a,reconnect:n}=e;return Ia({async getSocket({onClose:r,onError:s,onOpen:u,onResponse:d}){const c=await oa(()=>import("./native-7uSYstXA.js").then(o=>o.n),__vite__mapDeps([0,1,2])).then(o=>o.WebSocket),i=new c(t);function f(){i.removeEventListener("close",f),i.removeEventListener("message",m),i.removeEventListener("error",s),i.removeEventListener("open",u),r()}function m({data:o}){if(!(typeof o=="string"&&o.trim().length===0))try{const p=JSON.parse(o);d(p)}catch(p){s(p)}}i.addEventListener("close",f),i.addEventListener("message",m),i.addEventListener("error",s),i.addEventListener("open",u),i.readyState===c.CONNECTING&&await new Promise((o,p)=>{i&&(i.onopen=o,i.onerror=p)});const{close:h}=i;return Object.assign(i,{close(){h.bind(i)(),f()},ping(){try{if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({url:i.url,cause:new Z({url:i.url})});const o={jsonrpc:"2.0",id:null,method:"net_version",params:[]};i.send(JSON.stringify(o))}catch(o){s(o)}},request({body:o}){if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({body:o,url:i.url,cause:new Z({url:i.url})});return i.send(JSON.stringify(o))}})},keepAlive:a,reconnect:n,url:t})}async function Ta(t){const e=await K(t);return Object.assign(e.socket,{requests:e.requests,subscriptions:e.subscriptions})}function Ca(t){return Lt(t,-32)===ue}function va(t){return de(t)}function Yn(t){if(!Ca(t))return{signature:t};const[e,a,n]=Mt([{type:"address"},{type:"bytes"},{type:"bytes"}],t);return{address:e,data:a,signature:n}}function Zn(t){if(!va(t))return{signature:t};const{authorization:e,to:a,...n}=le(t);return{authorization:{address:e.address,chainId:e.chainId,nonce:Number(e.nonce),r:R(e.r,{size:32}),s:R(e.s,{size:32}),yParity:e.yParity},...a?{address:a}:{},...n}}async function Sa({message:t,signature:e}){return Q({hash:me(t),signature:e})}async function Aa(t){const{domain:e,message:a,primaryType:n,signature:r,types:s}=t;return Q({hash:Qe({domain:e,message:a,primaryType:n,types:s}),signature:r})}function Qn(t){const{address:e,data:a,signature:n,to:r="hex"}=t,s=fe({authorization:{address:t.authorization.address,chainId:t.authorization.chainId,nonce:BigInt(t.authorization.nonce),r:BigInt(t.authorization.r),s:BigInt(t.authorization.s),yParity:t.authorization.yParity},data:a,signature:n,to:e});return r==="hex"?s:H(s)}async function Xn({address:t,hash:e,signature:a}){return ft(k(t),await Q({hash:e,signature:a}))}async function tr({address:t,message:e,signature:a}){return ft(k(t),await Sa({message:e,signature:a}))}async function er(t){const{address:e,domain:a,message:n,primaryType:r,signature:s,types:u}=t;return ft(k(e),await Aa({domain:a,message:n,primaryType:r,signature:s,types:u}))}function Pa(t){const e=Lt(t,0,1);if(e==="0x04")return"eip7702";if(e==="0x03")return"eip4844";if(e==="0x02")return"eip1559";if(e==="0x01")return"eip2930";if(e!=="0x"&&F(e)>=192)return"legacy";throw new he({serializedType:e})}function _a(t){const e=Pa(t);return e==="eip1559"?Fa(t):e==="eip2930"?Ua(t):e==="eip4844"?qa(t):e==="eip7702"?Ra(t):ka(t)}function Ra(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,h,o,p]=e;if(e.length!==10&&e.length!==13)throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,authorizationList:m,...e.length>9?{v:h,r:o,s:p}:{}},serializedTransaction:t,type:"eip7702"});const l={chainId:F(a),type:"eip7702"};return E(d)&&d!=="0x"&&(l.to=d),E(u)&&u!=="0x"&&(l.gas=A(u)),E(i)&&i!=="0x"&&(l.data=i),E(n)&&(l.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(l.value=A(c)),E(s)&&s!=="0x"&&(l.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(l.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(l.accessList=tt(f)),m.length!==0&&m!=="0x"&&(l.authorizationList=Ba(m)),we(l),{...e.length===13?O(e):void 0,...l}}function qa(t){const e=X(t),a=e.length===4,n=a?e[0]:e,r=a?e.slice(1):[],[s,u,d,c,i,f,m,h,o,p,l,y,w,g]=n,[C,b,x]=r;if(!(n.length===11||n.length===14))throw new $({attributes:{chainId:s,nonce:u,maxPriorityFeePerGas:d,maxFeePerGas:c,gas:i,to:f,value:m,data:h,accessList:o,...n.length>9?{v:y,r:w,s:g}:{}},serializedTransaction:t,type:"eip4844"});const I={blobVersionedHashes:l,chainId:F(s),to:f,type:"eip4844"};return E(i)&&i!=="0x"&&(I.gas=A(i)),E(h)&&h!=="0x"&&(I.data=h),E(u)&&(I.nonce=u==="0x"?0:F(u)),E(m)&&m!=="0x"&&(I.value=A(m)),E(p)&&p!=="0x"&&(I.maxFeePerBlobGas=A(p)),E(c)&&c!=="0x"&&(I.maxFeePerGas=A(c)),E(d)&&d!=="0x"&&(I.maxPriorityFeePerGas=A(d)),o.length!==0&&o!=="0x"&&(I.accessList=tt(o)),C&&b&&x&&(I.sidecars=ge({blobs:C,commitments:b,proofs:x})),be(I),{...n.length===14?O(n):void 0,...I}}function Fa(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,h,o]=e;if(!(e.length===9||e.length===12))throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,...e.length>9?{v:m,r:h,s:o}:{}},serializedTransaction:t,type:"eip1559"});const p={chainId:F(a),type:"eip1559"};return E(d)&&d!=="0x"&&(p.to=d),E(u)&&u!=="0x"&&(p.gas=A(u)),E(i)&&i!=="0x"&&(p.data=i),E(n)&&(p.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(p.value=A(c)),E(s)&&s!=="0x"&&(p.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(p.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(p.accessList=tt(f)),pe(p),{...e.length===12?O(e):void 0,...p}}function Ua(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,h]=e;if(!(e.length===8||e.length===11))throw new $({attributes:{chainId:a,nonce:n,gasPrice:r,gas:s,to:u,value:d,data:c,accessList:i,...e.length>8?{v:f,r:m,s:h}:{}},serializedTransaction:t,type:"eip2930"});const o={chainId:F(a),type:"eip2930"};return E(u)&&u!=="0x"&&(o.to=u),E(s)&&s!=="0x"&&(o.gas=A(s)),E(c)&&c!=="0x"&&(o.data=c),E(n)&&(o.nonce=n==="0x"?0:F(n)),E(d)&&d!=="0x"&&(o.value=A(d)),E(r)&&r!=="0x"&&(o.gasPrice=A(r)),i.length!==0&&i!=="0x"&&(o.accessList=tt(i)),ye(o),{...e.length===11?O(e):void 0,...o}}function ka(t){const e=Dt(t,"hex"),[a,n,r,s,u,d,c,i,f]=e;if(!(e.length===6||e.length===9))throw new $({attributes:{nonce:a,gasPrice:n,gas:r,to:s,value:u,data:d,...e.length>6?{v:c,r:i,s:f}:{}},serializedTransaction:t,type:"legacy"});const m={type:"legacy"};if(E(s)&&s!=="0x"&&(m.to=s),E(r)&&r!=="0x"&&(m.gas=A(r)),E(d)&&d!=="0x"&&(m.data=d),E(a)&&(m.nonce=a==="0x"?0:F(a)),E(u)&&u!=="0x"&&(m.value=A(u)),E(n)&&n!=="0x"&&(m.gasPrice=A(n)),xe(m),e.length===6)return m;const h=E(c)&&c!=="0x"?A(c):0n;if(f==="0x"&&i==="0x")return h>0&&(m.chainId=Number(h)),m;const o=h,p=Number((o-35n)/2n);if(p>0)m.chainId=p;else if(o!==27n&&o!==28n)throw new Ee({v:o});return m.v=o,m.s=f,m.r=i,m.yParity=o%2n===0n?1:0,m}function X(t){return Dt(`0x${t.slice(4)}`,"hex")}function tt(t){const e=[];for(let a=0;a<t.length;a++){const[n,r]=t[a];if(!Oe(n,{strict:!1}))throw new je({address:n});e.push({address:n,storageKeys:r.map(s=>ma(s)?s:We(s))})}return e}function Ba(t){const e=[];for(let a=0;a<t.length;a++){const[n,r,s,u,d,c]=t[a];e.push({address:r,chainId:n==="0x"?0:F(n),nonce:s==="0x"?0:F(s),...O([u,d,c])})}return e}function O(t){const e=t.slice(-3),a=e[0]==="0x"||A(e[0])===0n?27n:28n;return{r:xt(e[1],{size:32}),s:xt(e[2],{size:32}),v:a,yParity:a===27n?0:1}}class Na extends mt{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function Wt(t,e){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(t))throw new Na({value:t});let[a,n="0"]=t.split(".");const r=a.startsWith("-");if(r&&(a=a.slice(1)),n=n.replace(/(0+)$/,""),e===0)Math.round(+`.${n}`)===1&&(a=`${BigInt(a)+1n}`),n="";else if(n.length>e){const[s,u,d]=[n.slice(0,e-1),n.slice(e-1,e),n.slice(e)],c=Math.round(+`${u}.${d}`);c>9?n=`${BigInt(s)+BigInt(1)}0`.padStart(s.length+1,"0"):n=`${s}${c}`,n.length>e&&(n=n.slice(1),a=`${BigInt(a)+1n}`),n=n.slice(0,e)}else n=n.padEnd(e,"0");return BigInt(`${r?"-":""}${a}${n}`)}function ar(t,e="wei"){return Wt(t,Ie[e])}function nr(t,e="wei"){return Wt(t,Te[e])}async function La(t,{hash:e}){await t.request({method:`${t.mode}_dropTransaction`,params:[e]})}async function Ma(t){return t.request({method:`${t.mode}_dumpState`})}async function Da(t){return t.mode==="ganache"?await t.request({method:"eth_mining"}):await t.request({method:`${t.mode}_getAutomine`})}async function za(t){return await t.request({method:"txpool_content"})}async function Ga(t){const{pending:e,queued:a}=await t.request({method:"txpool_status"});return{pending:F(e),queued:F(a)}}async function $a(t,{address:e}){await t.request({method:`${t.mode}_impersonateAccount`,params:[e]})}async function Ha(t,{seconds:e}){return await t.request({method:"evm_increaseTime",params:[R(e)]})}async function Oa(t){return await t.request({method:"txpool_inspect"})}async function ja(t,{state:e}){await t.request({method:`${t.mode}_loadState`,params:[e]})}async function Wa(t,{blocks:e,interval:a}){t.mode==="ganache"?await t.request({method:"evm_mine",params:[{blocks:R(e)}]}):await t.request({method:`${t.mode}_mine`,params:[R(e),R(a||0)]})}async function Va(t){await t.request({method:`${t.mode}_removeBlockTimestampInterval`})}async function Ja(t,{blockNumber:e,jsonRpcUrl:a}={}){await t.request({method:`${t.mode}_reset`,params:[{forking:{blockNumber:Number(e),jsonRpcUrl:a}}]})}async function Ka(t,{id:e}){await t.request({method:"evm_revert",params:[e]})}async function Ya(t,e){var w,g,C;const{accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:m,...h}=e,o=(C=(g=(w=t.chain)==null?void 0:w.formatters)==null?void 0:g.transactionRequest)==null?void 0:C.format,l=(o||ht)({...St(h,{format:o}),accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:m},"sendUnsignedTransaction");return await t.request({method:"eth_sendUnsignedTransaction",params:[l]})}async function Za(t,e){t.mode==="ganache"?e?await t.request({method:"miner_start"}):await t.request({method:"miner_stop"}):await t.request({method:"evm_setAutomine",params:[e]})}async function Qa(t,{address:e,value:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountBalance",params:[e,R(a)]}):await t.request({method:`${t.mode}_setBalance`,params:[e,R(a)]})}async function Xa(t,{gasLimit:e}){await t.request({method:"evm_setBlockGasLimit",params:[R(e)]})}async function tn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:`${t.mode}_setBlockTimestampInterval`,params:[a]})}async function en(t,{address:e,bytecode:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountCode",params:[e,a]}):await t.request({method:`${t.mode}_setCode`,params:[e,a]})}async function an(t,{address:e}){await t.request({method:`${t.mode}_setCoinbase`,params:[e]})}async function nn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:"evm_setIntervalMining",params:[a]})}async function rn(t,e){await t.request({method:`${t.mode}_setLoggingEnabled`,params:[e]})}async function sn(t,{gasPrice:e}){await t.request({method:`${t.mode}_setMinGasPrice`,params:[R(e)]})}async function on(t,{baseFeePerGas:e}){await t.request({method:`${t.mode}_setNextBlockBaseFeePerGas`,params:[R(e)]})}async function cn(t,{timestamp:e}){await t.request({method:"evm_setNextBlockTimestamp",params:[R(e)]})}async function un(t,{address:e,nonce:a}){await t.request({method:`${t.mode}_setNonce`,params:[e,R(a)]})}async function dn(t,e){await t.request({method:`${t.mode}_setRpcUrl`,params:[e]})}async function ln(t,{address:e,index:a,value:n}){await t.request({method:`${t.mode}_setStorageAt`,params:[e,typeof a=="number"?R(a):a,n]})}async function mn(t){return await t.request({method:"evm_snapshot"})}async function fn(t,{address:e}){await t.request({method:`${t.mode}_stopImpersonatingAccount`,params:[e]})}function hn({mode:t}){return e=>{const a=e.extend(()=>({mode:t}));return{dropTransaction:n=>La(a,n),dumpState:()=>Ma(a),getAutomine:()=>Da(a),getTxpoolContent:()=>za(a),getTxpoolStatus:()=>Ga(a),impersonateAccount:n=>$a(a,n),increaseTime:n=>Ha(a,n),inspectTxpool:()=>Oa(a),loadState:n=>ja(a,n),mine:n=>Wa(a,n),removeBlockTimestampInterval:()=>Va(a),reset:n=>Ja(a,n),revert:n=>Ka(a,n),sendUnsignedTransaction:n=>Ya(a,n),setAutomine:n=>Za(a,n),setBalance:n=>Qa(a,n),setBlockGasLimit:n=>Xa(a,n),setBlockTimestampInterval:n=>tn(a,n),setCode:n=>en(a,n),setCoinbase:n=>an(a,n),setIntervalMining:n=>nn(a,n),setLoggingEnabled:n=>rn(a,n),setMinGasPrice:n=>sn(a,n),setNextBlockBaseFeePerGas:n=>on(a,n),setNextBlockTimestamp:n=>cn(a,n),setNonce:n=>un(a,n),setRpcUrl:n=>dn(a,n),setStorageAt:n=>ln(a,n),snapshot:()=>mn(a),stopImpersonatingAccount:n=>fn(a,n)}}}function rr(t){const{key:e="test",name:a="Test Client",mode:n}=t;return At({...t,key:e,name:a,type:"testClient"}).extend(s=>({mode:n,...hn({mode:n})(s)}))}async function pn(t,{chain:e}){const{id:a,name:n,nativeCurrency:r,rpcUrls:s,blockExplorers:u}=e;await t.request({method:"wallet_addEthereumChain",params:[{chainId:R(a),chainName:n,nativeCurrency:r,rpcUrls:s.default.http,blockExplorerUrls:u?Object.values(u).map(({url:d})=>d):void 0}]},{dedupe:!0,retryCount:0})}function yn(t,e){const{abi:a,args:n,bytecode:r,...s}=e,u=Ce({abi:a,args:n,bytecode:r});return ut(t,{...s,...s.authorizationList?{to:null}:{},data:u})}async function gn(t){var a;return((a=t.account)==null?void 0:a.type)==="local"?[t.account.address]:(await t.request({method:"eth_accounts"},{dedupe:!0})).map(n=>Ve(n))}async function bn(t,e={}){const{account:a=t.account,chainId:n}=e,r=a?N(a):void 0,s=n?[r==null?void 0:r.address,[R(n)]]:[r==null?void 0:r.address],u=await t.request({method:"wallet_getCapabilities",params:s}),d={};for(const[c,i]of Object.entries(u)){d[Number(c)]={};for(let[f,m]of Object.entries(i))f==="addSubAccount"&&(f="unstable_addSubAccount"),d[Number(c)][f]=m}return typeof n=="number"?d[n]:d}async function wn(t){return await t.request({method:"wallet_getPermissions"},{dedupe:!0})}async function xn(t){return(await t.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(a=>k(a))}async function En(t,e){return t.request({method:"wallet_requestPermissions",params:[e]},{retryCount:0})}async function In(t,e){const{chain:a=t.chain}=e,n=e.timeout??Math.max(((a==null?void 0:a.blockTime)??0)*3,5e3),r=await Pt(t,e);return await _t(t,{...e,id:r.id,timeout:n})}const ot=new Je(128);async function Vt(t,e){var x,I,T,v;const{account:a=t.account,chain:n=t.chain,accessList:r,authorizationList:s,blobs:u,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:o,pollingInterval:p,throwOnReceiptRevert:l,type:y,value:w,...g}=e,C=e.timeout??Math.max(((n==null?void 0:n.blockTime)??0)*3,5e3);if(typeof a>"u")throw new D({docsPath:"/docs/actions/wallet/sendTransactionSync"});const b=a?N(a):null;try{Rt(e);const P=await(async()=>{if(e.to)return e.to;if(e.to!==null&&s&&s.length>0)return await ve({authorization:s[0]}).catch(()=>{throw new mt("`to` is required. Could not infer from `authorizationList`.")})})();if((b==null?void 0:b.type)==="json-rpc"||b===null){let S;n!==null&&(S=await U(t,dt,"getChainId")({}),qt({currentChainId:S,chain:n}));const _=(T=(I=(x=t.chain)==null?void 0:x.formatters)==null?void 0:I.transactionRequest)==null?void 0:T.format,z=(_||ht)({...St(g,{format:_}),accessList:r,account:b,authorizationList:s,blobs:u,chainId:S,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:o,to:P,type:y,value:w},"sendTransaction"),pt=ot.get(t.uid),Jt=pt?"wallet_sendTransaction":"eth_sendTransaction",Kt=await(async()=>{try{return await t.request({method:Jt,params:[z]},{retryCount:0})}catch(yt){if(pt===!1)throw yt;const L=yt;if(L.name==="InvalidInputRpcError"||L.name==="InvalidParamsRpcError"||L.name==="MethodNotFoundRpcError"||L.name==="MethodNotSupportedRpcError")return await t.request({method:"wallet_sendTransaction",params:[z]},{retryCount:0}).then(at=>(ot.set(t.uid,!0),at)).catch(at=>{const nt=at;throw nt.name==="MethodNotFoundRpcError"||nt.name==="MethodNotSupportedRpcError"?(ot.set(t.uid,!1),L):nt});throw L}})(),et=await U(t,Se,"waitForTransactionReceipt")({checkReplacement:!1,hash:Kt,pollingInterval:p,timeout:C});if(l&&et.status==="reverted")throw new Ae({receipt:et});return et}if((b==null?void 0:b.type)==="local"){const S=await U(t,Ft,"prepareTransactionRequest")({account:b,accessList:r,authorizationList:s,blobs:u,chain:n,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:o,nonceManager:b.nonceManager,parameters:[...Pe,"sidecars"],type:y,value:w,...g,to:P}),_=(v=n==null?void 0:n.serializers)==null?void 0:v.transaction,q=await b.signTransaction(S,{serializer:_});return await U(t,Ut,"sendRawTransactionSync")({serializedTransaction:q,throwOnReceiptRevert:l})}throw(b==null?void 0:b.type)==="smart"?new J({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new J({docsPath:"/docs/actions/wallet/sendTransactionSync",type:b==null?void 0:b.type})}catch(P){throw P instanceof J?P:_e(P,{...e,account:b,chain:e.chain||void 0})}}async function Tn(t,e){const{id:a}=e;await t.request({method:"wallet_showCallsStatus",params:[a]})}async function Cn(t,e){const{account:a=t.account}=e;if(!a)throw new D({docsPath:"/docs/eip7702/signAuthorization"});const n=N(a);if(!n.signAuthorization)throw new J({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:n.type});const r=await kt(t,e);return n.signAuthorization(r)}async function vn(t,{account:e=t.account,message:a}){if(!e)throw new D({docsPath:"/docs/actions/wallet/signMessage"});const n=N(e);if(n.signMessage)return n.signMessage({message:a});const r=typeof a=="string"?Ke(a):a.raw instanceof Uint8Array?Nt(a.raw):a.raw;return t.request({method:"personal_sign",params:[r,n.address]},{retryCount:0})}async function Sn(t,e){var i,f,m,h;const{account:a=t.account,chain:n=t.chain,...r}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTransaction"});const s=N(a);Rt({account:s,...e});const u=await U(t,dt,"getChainId")({});n!==null&&qt({currentChainId:u,chain:n});const d=(n==null?void 0:n.formatters)||((i=t.chain)==null?void 0:i.formatters),c=((f=d==null?void 0:d.transactionRequest)==null?void 0:f.format)||ht;return s.signTransaction?s.signTransaction({...r,chainId:u},{serializer:(h=(m=t.chain)==null?void 0:m.serializers)==null?void 0:h.transaction}):await t.request({method:"eth_signTransaction",params:[{...c({...r,account:s},"signTransaction"),chainId:R(u),from:s.address}]},{retryCount:0})}async function An(t,e){const{account:a=t.account,domain:n,message:r,primaryType:s}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTypedData"});const u=N(a),d={EIP712Domain:Xe({domain:n}),...e.types};if(ta({domain:n,message:r,primaryType:s,types:d}),u.signTypedData)return u.signTypedData({domain:n,message:r,primaryType:s,types:d});const c=ea({domain:n,message:r,primaryType:s,types:d});return t.request({method:"eth_signTypedData_v4",params:[u.address,c]},{retryCount:0})}async function Pn(t,{id:e}){await t.request({method:"wallet_switchEthereumChain",params:[{chainId:R(e)}]},{retryCount:0})}async function _n(t,e){return await t.request({method:"wallet_watchAsset",params:e},{retryCount:0})}async function Rn(t,e){return M.internal(t,Vt,"sendTransactionSync",e)}function qn(t){return{addChain:e=>pn(t,e),deployContract:e=>yn(t,e),getAddresses:()=>gn(t),getCallsStatus:e=>qe(t,e),getCapabilities:e=>bn(t,e),getChainId:()=>dt(t),getPermissions:()=>wn(t),prepareAuthorization:e=>kt(t,e),prepareTransactionRequest:e=>Ft(t,e),requestAddresses:()=>xn(t),requestPermissions:e=>En(t,e),sendCalls:e=>Pt(t,e),sendCallsSync:e=>In(t,e),sendRawTransaction:e=>Re(t,e),sendRawTransactionSync:e=>Ut(t,e),sendTransaction:e=>ut(t,e),sendTransactionSync:e=>Vt(t,e),showCallsStatus:e=>Tn(t,e),signAuthorization:e=>Cn(t,e),signMessage:e=>vn(t,e),signTransaction:e=>Sn(t,e),signTypedData:e=>An(t,e),switchChain:e=>Pn(t,e),waitForCallsStatus:e=>_t(t,e),watchAsset:e=>_n(t,e),writeContract:e=>M(t,e),writeContractSync:e=>Rn(t,e)}}function sr(t){const{key:e="wallet",name:a="Wallet Client",transport:n}=t;return At({...t,key:e,name:a,transport:n,type:"walletClient"}).extend(qn)}function or(t,e={}){const{key:a="custom",methods:n,name:r="Custom Provider",retryDelay:s}=e;return({retryCount:u})=>lt({key:a,methods:n,name:r,request:t.request.bind(t),retryCount:e.retryCount??u,retryDelay:s,type:"custom"})}function ir(t,e={}){const{key:a="fallback",name:n="Fallback",rank:r=!1,shouldThrow:s=Fn,retryCount:u,retryDelay:d}=e;return(({chain:c,pollingInterval:i=4e3,timeout:f,...m})=>{let h=t,o=()=>{};const p=lt({key:a,name:n,async request({method:l,params:y}){let w;const g=async(C=0)=>{const b=h[C]({...m,chain:c,retryCount:0,timeout:f});try{const x=await b.request({method:l,params:y});return o({method:l,params:y,response:x,transport:b,status:"success"}),x}catch(x){if(o({error:x,method:l,params:y,transport:b,status:"error"}),s(x)||C===h.length-1||(w??(w=h.slice(C+1).some(I=>{const{include:T,exclude:v}=I({chain:c}).config.methods||{};return T?T.includes(l):v?!v.includes(l):!0})),!w))throw x;return g(C+1)}};return g()},retryCount:u,retryDelay:d,type:"fallback"},{onResponse:l=>o=l,transports:h.map(l=>l({chain:c,retryCount:0}))});if(r){const l=typeof r=="object"?r:{};Un({chain:c,interval:l.interval??i,onTransports:y=>h=y,ping:l.ping,sampleCount:l.sampleCount,timeout:l.timeout,transports:h,weights:l.weights})}return p})}function Fn(t){return!!("code"in t&&typeof t.code=="number"&&(t.code===na.code||t.code===ra.code||Fe.nodeMessage.test(t.message)||t.code===5e3))}function Un({chain:t,interval:e=4e3,onTransports:a,ping:n,sampleCount:r=10,timeout:s=1e3,transports:u,weights:d={}}){const{stability:c=.7,latency:i=.3}=d,f=[],m=async()=>{const h=await Promise.all(u.map(async l=>{const y=l({chain:t,retryCount:0,timeout:s}),w=Date.now();let g,C;try{await(n?n({transport:y}):y.request({method:"net_listening"})),C=1}catch{C=0}finally{g=Date.now()}return{latency:g-w,success:C}}));f.push(h),f.length>r&&f.shift();const o=Math.max(...f.map(l=>Math.max(...l.map(({latency:y})=>y)))),p=u.map((l,y)=>{const w=f.map(I=>I[y].latency),C=1-w.reduce((I,T)=>I+T,0)/w.length/o,b=f.map(I=>I[y].success),x=b.reduce((I,T)=>I+T,0)/b.length;return x===0?[0,y]:[i*C+c*x,y]}).sort((l,y)=>y[0]-l[0]);a(p.map(([,l])=>u[l])),await Ue(e),m()};m()}function cr(t,e={}){const{keepAlive:a,key:n="webSocket",methods:r,name:s="WebSocket JSON-RPC",reconnect:u,retryDelay:d}=e;return({chain:c,retryCount:i,timeout:f})=>{var l;const m=e.retryCount??i,h=f??e.timeout??1e4,o=t||((l=c==null?void 0:c.rpcUrls.default.webSocket)==null?void 0:l[0]),p={keepAlive:a,reconnect:u};if(!o)throw new ke;return lt({key:n,methods:r,name:s,async request({method:y,params:w}){const g={method:y,params:w},C=await K(o,p),{error:b,result:x}=await C.requestAsync({body:g,timeout:h});if(b)throw new sa({body:g,error:b,url:o});return x},retryCount:m,retryDelay:d,timeout:h,type:"webSocket"},{getSocket(){return Ta(o)},getRpcClient(){return K(o,p)},async subscribe({params:y,onData:w,onError:g}){const C=await K(o,p),{result:b}=await new Promise((x,I)=>C.request({body:{method:"eth_subscribe",params:y},onError(T){I(T),g==null||g(T)},onResponse(T){if(T.error){I(T.error),g==null||g(T.error);return}if(typeof T.id=="number"){x(T);return}T.method==="eth_subscription"&&w(T.params)}}));return{subscriptionId:b,async unsubscribe(){return new Promise(x=>C.request({body:{method:"eth_unsubscribe",params:[b]},onResponse:x}))}}}})}}class ur extends Error{constructor(e,a){super(a),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=e,this.details=a}}const it="/docs/contract/decodeDeployData";function dr(t){const{abi:e,bytecode:a,data:n}=t;if(n===a)return{bytecode:a};const r=e.find(u=>"type"in u&&u.type==="constructor");if(!r)throw new Ye({docsPath:it});if(!("inputs"in r))throw new Et({docsPath:it});if(!r.inputs||r.inputs.length===0)throw new Et({docsPath:it});return{args:Mt(r.inputs,`0x${n.replace(a,"")}`),bytecode:a}}function lr(t){const e=t.to??(typeof t.blobs[0]=="string"?"hex":"bytes"),a=typeof t.blobs[0]=="string"?t.blobs.map(d=>H(d)):t.blobs,n=a.reduce((d,c)=>d+c.length,0),r=ct(new Uint8Array(n));let s=!0;for(const d of a){const c=ct(d);for(;s&&c.position<d.length;){c.incrementPosition(1);let i=31;d.length-c.position<31&&(i=d.length-c.position);for(const f in Array.from({length:i})){const m=c.readByte();if(m===128&&!c.inspectBytes(c.remaining).includes(128)){s=!1;break}r.pushByte(m)}}}const u=r.bytes.slice(0,r.position);return e==="hex"?G(u):u}function mr(t){const{sidecars:e,version:a}=t,n=t.to??(typeof e[0].blob=="string"?"hex":"bytes"),r=[];for(const{commitment:s}of e)r.push(Be({commitment:s,to:n,version:a}));return r}const kn=2147483648;function fr(t){if(t===1)return 60n;if(t>=kn||t<0)throw new Ne({chainId:t});return BigInt((2147483648|t)>>>0)}function Bn({blobToKzgCommitment:t,computeBlobKzgProof:e}){return{blobToKzgCommitment:t,computeBlobKzgProof:e}}function hr(t,e){try{t.loadTrustedSetup(e)}catch(a){const n=a;if(!n.message.includes("trusted setup is already loaded"))throw n}return Bn(t)}function pr({r:t,yParityAndS:e}){const a=H(e),n=a[0]&128?1:0,r=a;return n===1&&(r[0]&=127),{r:t,s:G(r),yParity:n}}function yr(t){const{r:e,s:a}=Bt.Signature.fromCompact(t.slice(2,130));return{r:R(e,{size:32}),yParityAndS:R(a,{size:32})}}async function gr(t){const{serializedTransaction:e,signature:a}=t,n=_a(e),r=a??{r:n.r,s:n.s,v:n.v,yParity:n.yParity},s=Le({...n,r:void 0,s:void 0,v:void 0,yParity:void 0,sidecars:void 0});return await Q({hash:Y(s),signature:r})}function br({r:t,yParityAndS:e}){return`0x${new Bt.Signature(A(t),A(e)).toCompactHex()}`}function wr(t){const{r:e,s:a,v:n,yParity:r}=t,s=Number(r??n-27n);let u=a;if(s===1){const d=H(a);d[0]|=128,u=G(d)}return{r:e,yParityAndS:u}}export{Ye as AbiConstructorNotFoundError,Et as AbiConstructorParamsNotFoundError,To as AbiDecodingDataSizeInvalidError,Co as AbiDecodingDataSizeTooSmallError,vo as AbiDecodingZeroDataError,So as AbiEncodingArrayLengthMismatchError,Ao as AbiEncodingBytesSizeMismatchError,Po as AbiEncodingLengthMismatchError,_o as AbiErrorInputsNotFoundError,Ro as AbiErrorNotFoundError,qo as AbiErrorSignatureNotFoundError,Fo as AbiEventNotFoundError,Uo as AbiEventSignatureEmptyTopicsError,ko as AbiEventSignatureNotFoundError,Bo as AbiFunctionNotFoundError,No as AbiFunctionOutputsNotFoundError,Lo as AbiFunctionSignatureNotFoundError,Ir as AccountStateConflictError,Ki as AtomicReadyWalletRejectedUpgradeError,Yi as AtomicityNotSupportedError,mt as BaseError,Tr as BaseFeeScalarError,Cr as BlockNotFoundError,vr as BundleFailedError,Zi as BundleTooLargeError,Mo as BytesSizeMismatchError,Sr as CallExecutionError,Qi as ChainDisconnectedError,Ar as ChainDoesNotSupportContract,Pr as ChainMismatchError,_r as ChainNotFoundError,Rr as CircularReferenceError,qr as ClientChainNotConfiguredError,Fr as ContractFunctionExecutionError,Ur as ContractFunctionRevertedError,kr as ContractFunctionZeroDataError,Br as CounterfactualDeploymentFailedError,Do as DecodeLogDataMismatch,zo as DecodeLogTopicsMismatch,Xi as DuplicateIdError,ur as EIP1193ProviderRpcError,Nr as Eip1559FeesNotSupportedError,Lr as EnsAvatarInvalidNftUriError,Mr as EnsAvatarUnsupportedNamespaceError,Dr as EnsAvatarUriResolutionError,Ne as EnsInvalidChainIdError,zr as EstimateGasExecutionError,Fe as ExecutionRevertedError,Gr as FeeCapTooHighError,$r as FeeCapTooLowError,Hr as FeeConflictError,Go as FilterTypeNotSupportedError,tc as HttpRequestError,Or as InsufficientFundsError,$o as IntegerOutOfRangeError,ec as InternalRpcError,jr as IntrinsicGasTooHighError,Wr as IntrinsicGasTooLowError,Ho as InvalidAbiDecodingTypeError,Oo as InvalidAbiEncodingTypeError,Vr as InvalidAbiItemError,Qt as InvalidAbiParameterError,Jr as InvalidAbiParametersError,Kr as InvalidAbiTypeParameterError,je as InvalidAddressError,jo as InvalidArrayError,Wo as InvalidBytesBooleanError,Yr as InvalidChainIdError,Na as InvalidDecimalNumberError,Vo as InvalidDefinitionTypeError,$i as InvalidDomainError,Zr as InvalidFunctionModifierError,Jo as InvalidHexBooleanError,Ge as InvalidHexValueError,ac as InvalidInputRpcError,Ee as InvalidLegacyVError,Qr as InvalidModifierError,Xr as InvalidParameterError,nc as InvalidParamsRpcError,ts as InvalidParenthesisError,Hi as InvalidPrimaryTypeError,rc as InvalidRequestRpcError,es as InvalidSerializableTransactionError,$ as InvalidSerializedTransactionError,he as InvalidSerializedTransactionTypeError,as as InvalidSignatureError,ns as InvalidStorageKeySizeError,rs as InvalidStructSignatureError,Oi as InvalidStructTypeError,sc as JsonRpcVersionUnsupportedError,oc as LimitExceededRpcError,ss as MaxFeePerGasTooLowError,ic as MethodNotFoundRpcError,cc as MethodNotSupportedRpcError,os as NonceMaxValueError,is as NonceTooHighError,cs as NonceTooLowError,uc as ParseRpcError,dc as ProviderDisconnectedError,lc as ProviderRpcError,us as RawContractError,mc as ResourceNotFoundRpcError,fc as ResourceUnavailableRpcError,hc as RpcError,sa as RpcRequestError,Ko as SizeExceedsPaddingSizeError,Yo as SizeOverflowError,Zo as SliceOffsetOutOfBoundsError,Z as SocketClosedError,ds as SolidityProtectedKeywordError,ls as StateAssignmentConflictError,pc as SwitchChainError,aa as TimeoutError,ms as TipAboveFeeCapError,fs as TransactionExecutionError,hs as TransactionNotFoundError,ps as TransactionReceiptNotFoundError,na as TransactionRejectedRpcError,ys as TransactionTypeNotSupportedError,yc as UnauthorizedProviderError,gc as UnknownBundleIdError,gs as UnknownNodeError,bc as UnknownRpcError,bs as UnknownSignatureError,ws as UnknownTypeError,wc as UnsupportedChainIdError,xc as UnsupportedNonOptionalCapabilityError,Qo as UnsupportedPackedAbiType,Ec as UnsupportedProviderMethodError,ke as UrlRequiredError,ra as UserRejectedRequestError,xs as WaitForCallsStatusTimeoutError,Es as WaitForTransactionReceiptTimeoutError,It as WebSocketRequestError,qt as assertCurrentChain,Rt as assertRequest,pe as assertTransactionEIP1559,ye as assertTransactionEIP2930,xe as assertTransactionLegacy,Is as blobsToCommitments,Ts as blobsToProofs,Xo as boolToBytes,ti as boolToHex,ei as bytesToBigInt,ai as bytesToBool,G as bytesToHex,ni as bytesToNumber,Tc as bytesToRlp,ri as bytesToString,pd as ccipFetch,yd as ccipRequest,Ve as checksumAddress,Be as commitmentToVersionedHash,Cs as commitmentsToVersionedHashes,br as compactSignatureToHex,pr as compactSignatureToSignature,ze as concat,si as concatBytes,oi as concatHex,At as createClient,vs as createNonceManager,Ss as createPublicClient,rr as createTestClient,lt as createTransport,sr as createWalletClient,or as custom,Mt as decodeAbiParameters,dr as decodeDeployData,ii as decodeErrorResult,ci as decodeEventLog,As as decodeFunctionData,Ps as decodeFunctionResult,ui as defineBlock,di as defineChain,Bn as defineKzg,li as defineTransaction,Ed as defineTransactionReceipt,mi as defineTransactionRequest,_s as deploylessCallViaBytecodeBytecode,Rs as deploylessCallViaFactoryBytecode,ji as domainSeparator,fi as encodeAbiParameters,Ce as encodeDeployData,qs as encodeErrorResult,hi as encodeEventTopics,Xt as encodeFunctionData,Fs as encodeFunctionResult,Us as encodePacked,ks as erc1155Abi,Bs as erc20Abi,Ns as erc20Abi_bytes32,Ls as erc4626Abi,Ms as erc6492SignatureValidatorAbi,Ds as erc6492SignatureValidatorByteCode,zs as erc721Abi,Gs as ethAddress,Ie as etherUnits,Jn as extractChain,ir as fallback,pi as formatBlock,$s as formatEther,Hs as formatGwei,Id as formatLog,yi as formatTransaction,Td as formatTransactionReceipt,ht as formatTransactionRequest,Os as formatUnits,lr as fromBlobs,gi as fromBytes,bi as fromHex,Dt as fromRlp,wi as getAbiItem,k as getAddress,js as getChainContractAddress,Wn as getContract,Vn as getContractAddress,te as getContractError,da as getCreate2Address,ua as getCreateAddress,xi as getEventSelector,Ei as getEventSignature,Ii as getFunctionSelector,Ti as getFunctionSignature,Pa as getSerializedTransactionType,Ws as getTransactionType,Xe as getTypesForEIP712Domain,Te as gweiUnits,Wi as hashDomain,me as hashMessage,Vi as hashStruct,Qe as hashTypedData,A as hexToBigInt,Ci as hexToBool,H as hexToBytes,yr as hexToCompactSignature,F as hexToNumber,Cc as hexToRlp,Vs as hexToSignature,vi as hexToString,Js as http,Oe as isAddress,ft as isAddressEqual,Tt as isBytes,Ca as isErc6492Signature,va as isErc8010Signature,ma as isHash,E as isHex,Y as keccak256,Ks as labelhash,vc as maxInt104,Sc as maxInt112,Ac as maxInt120,Pc as maxInt128,_c as maxInt136,Rc as maxInt144,qc as maxInt152,Fc as maxInt16,Uc as maxInt160,kc as maxInt168,Bc as maxInt176,Nc as maxInt184,Lc as maxInt192,Mc as maxInt200,Dc as maxInt208,zc as maxInt216,Gc as maxInt224,$c as maxInt232,Hc as maxInt24,Oc as maxInt240,jc as maxInt248,Wc as maxInt256,Vc as maxInt32,Jc as maxInt40,Kc as maxInt48,Yc as maxInt56,Zc as maxInt64,Qc as maxInt72,Xc as maxInt8,tu as maxInt80,eu as maxInt88,au as maxInt96,nu as maxUint104,ru as maxUint112,su as maxUint120,ou as maxUint128,iu as maxUint136,cu as maxUint144,uu as maxUint152,du as maxUint16,lu as maxUint160,mu as maxUint168,fu as maxUint176,hu as maxUint184,pu as maxUint192,yu as maxUint200,gu as maxUint208,bu as maxUint216,wu as maxUint224,xu as maxUint232,Eu as maxUint24,Iu as maxUint240,Tu as maxUint248,Cu as maxUint256,vu as maxUint32,Su as maxUint40,Au as maxUint48,Pu as maxUint56,_u as maxUint64,Ru as maxUint72,qu as maxUint8,Fu as maxUint80,Uu as maxUint88,ku as maxUint96,Bu as minInt104,Nu as minInt112,Lu as minInt120,Mu as minInt128,Du as minInt136,zu as minInt144,Gu as minInt152,$u as minInt16,Hu as minInt160,Ou as minInt168,ju as minInt176,Wu as minInt184,Vu as minInt192,Ju as minInt200,Ku as minInt208,Yu as minInt216,Zu as minInt224,Qu as minInt232,Xu as minInt24,td as minInt240,ed as minInt248,ad as minInt256,nd as minInt32,rd as minInt40,sd as minInt48,od as minInt56,id as minInt64,cd as minInt72,ud as minInt8,dd as minInt80,ld as minInt88,md as minInt96,Ys as multicall3Abi,Zs as namehash,Qs as nonceManager,Si as numberToBytes,R as numberToHex,gd as offchainLookup,bd as offchainLookupAbiItem,wd as offchainLookupSignature,Me as pad,Ai as padBytes,xt as padHex,Xs as parseAbi,to as parseAbiItem,jn as parseAbiParameter,eo as parseAbiParameters,yr as parseCompactSignature,Yn as parseErc6492Signature,Zn as parseErc8010Signature,ar as parseEther,Pi as parseEventLogs,nr as parseGwei,ao as parseSignature,_a as parseTransaction,Wt as parseUnits,no as prepareEncodeFunctionData,ro as presignMessagePrefix,so as publicActions,Q as recoverAddress,Sa as recoverMessageAddress,oo as recoverPublicKey,gr as recoverTransactionAddress,Aa as recoverTypedDataAddress,Kn as ripemd160,io as rpcSchema,_i as rpcTransactionType,co as serializeAccessList,br as serializeCompactSignature,uo as serializeErc6492Signature,Qn as serializeErc8010Signature,lo as serializeSignature,Le as serializeTransaction,ea as serializeTypedData,Ri as setErrorConfig,hr as setupKzg,fd as sha256,Fn as shouldThrow,mr as sidecarsToVersionedHashes,wr as signatureToCompactSignature,mo as signatureToHex,$e as size,De as slice,qi as sliceBytes,Lt as sliceHex,Fi as stringToBytes,Ke as stringToHex,Ui as stringify,hn as testActions,ge as toBlobSidecars,fo as toBlobs,B as toBytes,fr as toCoinType,ki as toEventHash,Bi as toEventSelector,Ni as toEventSignature,Li as toFunctionHash,Mi as toFunctionSelector,Di as toFunctionSignature,Nt as toHex,ho as toPrefixedMessage,ia as toRlp,zi as transactionType,We as trim,po as universalSignatureValidatorAbi,yo as universalSignatureValidatorByteCode,ta as validateTypedData,Xn as verifyHash,tr as verifyMessage,er as verifyTypedData,qn as walletActions,cr as webSocket,go as weiUnits,bo as withCache,wo as withRetry,Ze as withTimeout,xo as zeroAddress,Eo as zeroHash};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as Oa,c as On,g as mt,r as E,j as z,l as Pa,k as Gt}from"./react-Vu6nbGi5.js";import{p as It,c as $a,u as dn,B as Ra}from"./index-B5srtbdi.js";import{E as Iu}from"./index-B5srtbdi.js";import{h as jo,i as qo,j as _o,a as Ue,k as ka,l as Yt,m as gt,b as yt,e as Ca,n as Ea,o as Ia,p as Ba,q as Aa,d as vr,s as Wo,g as No,c as Ho,f as Ma,t as Ta,r as La}from"./index-CLIR3TTD.js";import{p as xr}from"./ethers-DHDSyreX.js";import{c as Da}from"./index-CMVEud4W.js";import{n as Ke}from"./SvgIcon-Bjkj3_CR.js";import{L as ja,_ as Et,b as j,e as hr,M as Bt,N as qa,u as mr,s as Ge,g as zo,a as Vo,c as lt,d as me,p as st,O as Fo,J as Xt}from"./generateUtilityClasses-wRCEHwkd.js";import{a as zt,g as lr,o as rt,b as un,l as _a,m as Wa,n as Na,p as Ha,r as Zt,j as za,k as vn}from"./Button-B97LSmPW.js";import{P as Va,c as tt,e as Sr,j as Fa,i as ur,f as Ua,G as Ga,d as Ya,M as Xa,h as Za}from"./MenuItem-BaS9dwAb.js";import"./index-BwiZgchN.js";import"./CircularProgress-BtAdS3mK.js";var wr,Pn;function Uo(){if(Pn)return wr;Pn=1;var e=Object.prototype.toString;return wr=function(r){var o=e.call(r),n=o==="[object Arguments]";return n||(n=o!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&e.call(r.callee)==="[object Function]"),n},wr}var Or,$n;function Ka(){if($n)return Or;$n=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=Uo(),n=Object.prototype.propertyIsEnumerable,s=!n.call({toString:null},"toString"),i=n.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(g){var v=g.constructor;return v&&v.prototype===g},c={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=(function(){if(typeof window>"u")return!1;for(var g in window)try{if(!c["$"+g]&&t.call(window,g)&&window[g]!==null&&typeof window[g]=="object")try{l(window[g])}catch{return!0}}catch{return!0}return!1})(),d=function(g){if(typeof window>"u"||!f)return l(g);try{return l(g)}catch{return!1}};e=function(v){var m=v!==null&&typeof v=="object",y=r.call(v)==="[object Function]",$=o(v),C=m&&r.call(v)==="[object String]",x=[];if(!m&&!y&&!$)throw new TypeError("Object.keys called on a non-object");var S=i&&y;if(C&&v.length>0&&!t.call(v,0))for(var O=0;O<v.length;++O)x.push(String(O));if($&&v.length>0)for(var P=0;P<v.length;++P)x.push(String(P));else for(var B in v)!(S&&B==="prototype")&&t.call(v,B)&&x.push(String(B));if(s)for(var T=d(v),I=0;I<a.length;++I)!(T&&a[I]==="constructor")&&t.call(v,a[I])&&x.push(a[I]);return x}}return Or=e,Or}var Pr,Rn;function hn(){if(Rn)return Pr;Rn=1;var e=Array.prototype.slice,t=Uo(),r=Object.keys,o=r?function(i){return r(i)}:Ka(),n=Object.keys;return o.shim=function(){if(Object.keys){var i=(function(){var a=Object.keys(arguments);return a&&a.length===arguments.length})(1,2);i||(Object.keys=function(l){return t(l)?n(e.call(l)):n(l)})}else Object.keys=o;return Object.keys||o},Pr=o,Pr}var $r,kn;function bt(){if(kn)return $r;kn=1;var e=hn(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r=Object.prototype.toString,o=Array.prototype.concat,n=qo(),s=function(c){return typeof c=="function"&&r.call(c)==="[object Function]"},i=jo()(),a=function(c,f,d,g){if(f in c){if(g===!0){if(c[f]===d)return}else if(!s(g)||!g())return}i?n(c,f,d,!0):n(c,f,d)},l=function(c,f){var d=arguments.length>2?arguments[2]:{},g=e(f);t&&(g=o.call(g,Object.getOwnPropertySymbols(f)));for(var v=0;v<g.length;v+=1)a(c,g[v],f[g[v]],d[g[v]])};return l.supportsDescriptors=!!i,$r=l,$r}var Rr,Cn;function Go(){if(Cn)return Rr;Cn=1;var e=hn(),t=_o()(),r=Ue(),o=ka(),n=r("Array.prototype.push"),s=r("Object.prototype.propertyIsEnumerable"),i=t?o.getOwnPropertySymbols:null;return Rr=function(l,c){if(l==null)throw new TypeError("target must be an object");var f=o(l);if(arguments.length===1)return f;for(var d=1;d<arguments.length;++d){var g=o(arguments[d]),v=e(g),m=t&&(o.getOwnPropertySymbols||i);if(m)for(var y=m(g),$=0;$<y.length;++$){var C=y[$];s(g,C)&&n(v,C)}for(var x=0;x<v.length;++x){var S=v[x];if(s(g,S)){var O=g[S];f[S]=O}}}return f},Rr}var kr,En;function Yo(){if(En)return kr;En=1;var e=Go(),t=function(){if(!Object.assign)return!1;for(var o="abcdefghijklmnopqrst",n=o.split(""),s={},i=0;i<n.length;++i)s[n[i]]=n[i];var a=Object.assign({},s),l="";for(var c in a)l+=c;return o!==l},r=function(){if(!Object.assign||!Object.preventExtensions)return!1;var o=Object.preventExtensions({1:2});try{Object.assign(o,"xy")}catch{return o[1]==="y"}return!1};return kr=function(){return!Object.assign||t()||r()?e:Object.assign},kr}var Cr,In;function Ja(){if(In)return Cr;In=1;var e=bt(),t=Yo();return Cr=function(){var o=t();return e(Object,{assign:o},{assign:function(){return Object.assign!==o}}),o},Cr}var Er,Bn;function Qa(){if(Bn)return Er;Bn=1;var e=bt(),t=Yt(),r=Go(),o=Yo(),n=Ja(),s=t.apply(o()),i=function(l,c){return s(Object,arguments)};return e(i,{getPolyfill:o,implementation:r,shim:n}),Er=i,Er}var Ir,An;function Xo(){if(An)return Ir;An=1;var e=gt(),t=Yt(),r=t(e("String.prototype.indexOf"));return Ir=function(n,s){var i=e(n,!!s);return typeof i=="function"&&r(n,".prototype.")>-1?t(i):i},Ir}var Br,Mn;function ei(){if(Mn)return Br;Mn=1;var e=function(){return typeof(function(){}).name=="string"},t=Object.getOwnPropertyDescriptor;if(t)try{t([],"length")}catch{t=null}e.functionsHaveConfigurableNames=function(){if(!e()||!t)return!1;var n=t(function(){},"name");return!!n&&!!n.configurable};var r=Function.prototype.bind;return e.boundFunctionsHaveNames=function(){return e()&&typeof r=="function"&&(function(){}).bind().name!==""},Br=e,Br}var Ar,Tn;function ti(){if(Tn)return Ar;Tn=1;var e=qo(),t=jo()(),r=ei().functionsHaveConfigurableNames(),o=yt();return Ar=function(s,i){if(typeof s!="function")throw new o("`fn` is not a function");var a=arguments.length>2&&!!arguments[2];return(!a||r)&&(t?e(s,"name",i,!0,!0):e(s,"name",i)),s},Ar}var Mr,Ln;function Zo(){if(Ln)return Mr;Ln=1;var e=ti(),t=yt(),r=Object;return Mr=e(function(){if(this==null||this!==r(this))throw new t("RegExp.prototype.flags getter called on non-object");var n="";return this.hasIndices&&(n+="d"),this.global&&(n+="g"),this.ignoreCase&&(n+="i"),this.multiline&&(n+="m"),this.dotAll&&(n+="s"),this.unicode&&(n+="u"),this.unicodeSets&&(n+="v"),this.sticky&&(n+="y"),n},"get flags",!0),Mr}var Tr,Dn;function Ko(){if(Dn)return Tr;Dn=1;var e=Zo(),t=bt().supportsDescriptors,r=Object.getOwnPropertyDescriptor;return Tr=function(){if(t&&/a/mig.flags==="gim"){var n=r(RegExp.prototype,"flags");if(n&&typeof n.get=="function"&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var s="",i={};if(Object.defineProperty(i,"hasIndices",{get:function(){s+="d"}}),Object.defineProperty(i,"sticky",{get:function(){s+="y"}}),n.get.call(i),s==="dy")return n.get}}return e},Tr}var Lr,jn;function ri(){if(jn)return Lr;jn=1;var e=bt().supportsDescriptors,t=Ko(),r=Ia(),o=Object.defineProperty,n=Ea(),s=Ca(),i=/a/;return Lr=function(){if(!e||!s)throw new n("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var l=t(),c=s(i),f=r(c,"flags");return(!f||f.get!==l)&&o(c,"flags",{configurable:!0,enumerable:!1,get:l}),l},Lr}var Dr,qn;function ni(){if(qn)return Dr;qn=1;var e=bt(),t=Yt(),r=Zo(),o=Ko(),n=ri(),s=t(o());return e(s,{getPolyfill:o,implementation:r,shim:n}),Dr=s,Dr}var At={exports:{}};const oi={},ai=Object.freeze(Object.defineProperty({__proto__:null,default:oi},Symbol.toStringTag,{value:"Module"})),ii=Oa(ai);var jr,_n;function gr(){if(_n)return jr;_n=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,o=e&&Map.prototype.forEach,n=typeof Set=="function"&&Set.prototype,s=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,i=n&&s&&typeof s.get=="function"?s.get:null,a=n&&Set.prototype.forEach,l=typeof WeakMap=="function"&&WeakMap.prototype,c=l?WeakMap.prototype.has:null,f=typeof WeakSet=="function"&&WeakSet.prototype,d=f?WeakSet.prototype.has:null,g=typeof WeakRef=="function"&&WeakRef.prototype,v=g?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,y=Object.prototype.toString,$=Function.prototype.toString,C=String.prototype.match,x=String.prototype.slice,S=String.prototype.replace,O=String.prototype.toUpperCase,P=String.prototype.toLowerCase,B=RegExp.prototype.test,T=Array.prototype.concat,I=Array.prototype.join,R=Array.prototype.slice,A=Math.floor,W=typeof BigInt=="function"?BigInt.prototype.valueOf:null,F=Object.getOwnPropertySymbols,q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ie=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Z=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ie||!0)?Symbol.toStringTag:null,oe=Object.prototype.propertyIsEnumerable,U=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(u){return u.__proto__}:null);function ce(u,p){if(u===1/0||u===-1/0||u!==u||u&&u>-1e3&&u<1e3||B.call(/e/,p))return p;var G=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof u=="number"){var se=u<0?-A(-u):A(u);if(se!==u){var le=String(se),V=x.call(p,le.length+1);return S.call(le,G,"$&_")+"."+S.call(S.call(V,/([0-9]{3})/g,"$&_"),/_$/,"")}}return S.call(p,G,"$&_")}var ue=ii,Ce=ue.custom,Ee=te(Ce)?Ce:null,Se={__proto__:null,double:'"',single:"'"},ge={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};jr=function u(p,G,se,le){var V=G||{};if(pe(V,"quoteStyle")&&!pe(Se,V.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(pe(V,"maxStringLength")&&(typeof V.maxStringLength=="number"?V.maxStringLength<0&&V.maxStringLength!==1/0:V.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Be=pe(V,"customInspect")?V.customInspect:!0;if(typeof Be!="boolean"&&Be!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(pe(V,"indent")&&V.indent!==null&&V.indent!==" "&&!(parseInt(V.indent,10)===V.indent&&V.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(pe(V,"numericSeparator")&&typeof V.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var je=V.numericSeparator;if(typeof p>"u")return"undefined";if(p===null)return"null";if(typeof p=="boolean")return p?"true":"false";if(typeof p=="string")return Oe(p,V);if(typeof p=="number"){if(p===0)return 1/0/p>0?"0":"-0";var be=String(p);return je?ce(p,be):be}if(typeof p=="bigint"){var Ae=String(p)+"n";return je?ce(p,Ae):Ae}var ct=typeof V.depth>"u"?5:V.depth;if(typeof se>"u"&&(se=0),se>=ct&&ct>0&&typeof p=="object")return L(p)?"[Array]":"[Object]";var Ne=K(V,se);if(typeof le>"u")le=[];else if(ae(le,p)>=0)return"[Circular]";function Re(xe,Pt,br){if(Pt&&(le=R.call(le),le.push(Pt)),br){var Qt={depth:V.depth};return pe(V,"quoteStyle")&&(Qt.quoteStyle=V.quoteStyle),u(xe,Qt,se+1,le)}return u(xe,V,se+1,le)}if(typeof p=="function"&&!ne(p)){var ot=_e(p),xt=$e(p,Re);return"[Function"+(ot?": "+ot:" (anonymous)")+"]"+(xt.length>0?" { "+I.call(xt,", ")+" }":"")}if(te(p)){var St=ie?S.call(String(p),/^(Symbol\(.*\))_[^)]*$/,"$1"):q.call(p);return typeof p=="object"&&!ie?k(St):St}if(we(p)){for(var Je="<"+P.call(String(p.nodeName)),ft=p.attributes||[],at=0;at<ft.length;at++)Je+=" "+ft[at].name+"="+h(w(ft[at].value),"double",V);return Je+=">",p.childNodes&&p.childNodes.length&&(Je+="..."),Je+="</"+P.call(String(p.nodeName))+">",Je}if(L(p)){if(p.length===0)return"[]";var pt=$e(p,Re);return Ne&&!re(pt)?"["+Pe(pt,Ne)+"]":"[ "+I.call(pt,", ")+" ]"}if(ee(p)){var Qe=$e(p,Re);return!("cause"in Error.prototype)&&"cause"in p&&!oe.call(p,"cause")?"{ ["+String(p)+"] "+I.call(T.call("[cause]: "+Re(p.cause),Qe),", ")+" }":Qe.length===0?"["+String(p)+"]":"{ ["+String(p)+"] "+I.call(Qe,", ")+" }"}if(typeof p=="object"&&Be){if(Ee&&typeof p[Ee]=="function"&&ue)return ue(p,{depth:ct-se});if(Be!=="symbol"&&typeof p.inspect=="function")return p.inspect()}if(ye(p)){var wt=[];return o&&o.call(p,function(xe,Pt){wt.push(Re(Pt,p,!0)+" => "+Re(xe,p))}),Q("Map",r.call(p),wt,Ne)}if(Ie(p)){var it=[];return a&&a.call(p,function(xe){it.push(Re(xe,p))}),Q("Set",i.call(p),it,Ne)}if(Le(p))return M("WeakMap");if(We(p))return M("WeakSet");if(De(p))return M("WeakRef");if(N(p))return k(Re(Number(p)));if(X(p))return k(Re(W.call(p)));if(Y(p))return k(m.call(p));if(J(p))return k(Re(String(p)));if(typeof window<"u"&&p===window)return"{ [object Window] }";if(typeof globalThis<"u"&&p===globalThis||typeof On<"u"&&p===On)return"{ [object globalThis] }";if(!D(p)&&!ne(p)){var et=$e(p,Re),Ot=U?U(p)===Object.prototype:p instanceof Object||p.constructor===Object,de=p instanceof Object?"":"null prototype",ve=!Ot&&Z&&Object(p)===p&&Z in p?x.call(fe(p),8,-1):de?"Object":"",dt=Ot||typeof p.constructor!="function"?"":p.constructor.name?p.constructor.name+" ":"",Ye=dt+(ve||de?"["+I.call(T.call([],ve||[],de||[]),": ")+"] ":"");return et.length===0?Ye+"{}":Ne?Ye+"{"+Pe(et,Ne)+"}":Ye+"{ "+I.call(et,", ")+" }"}return String(p)};function h(u,p,G){var se=G.quoteStyle||p,le=Se[se];return le+u+le}function w(u){return S.call(String(u),/"/g,""")}function _(u){return!Z||!(typeof u=="object"&&(Z in u||typeof u[Z]<"u"))}function L(u){return fe(u)==="[object Array]"&&_(u)}function D(u){return fe(u)==="[object Date]"&&_(u)}function ne(u){return fe(u)==="[object RegExp]"&&_(u)}function ee(u){return fe(u)==="[object Error]"&&_(u)}function J(u){return fe(u)==="[object String]"&&_(u)}function N(u){return fe(u)==="[object Number]"&&_(u)}function Y(u){return fe(u)==="[object Boolean]"&&_(u)}function te(u){if(ie)return u&&typeof u=="object"&&u instanceof Symbol;if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||!q)return!1;try{return q.call(u),!0}catch{}return!1}function X(u){if(!u||typeof u!="object"||!W)return!1;try{return W.call(u),!0}catch{}return!1}var he=Object.prototype.hasOwnProperty||function(u){return u in this};function pe(u,p){return he.call(u,p)}function fe(u){return y.call(u)}function _e(u){if(u.name)return u.name;var p=C.call($.call(u),/^function\s*([\w$]+)/);return p?p[1]:null}function ae(u,p){if(u.indexOf)return u.indexOf(p);for(var G=0,se=u.length;G<se;G++)if(u[G]===p)return G;return-1}function ye(u){if(!r||!u||typeof u!="object")return!1;try{r.call(u);try{i.call(u)}catch{return!0}return u instanceof Map}catch{}return!1}function Le(u){if(!c||!u||typeof u!="object")return!1;try{c.call(u,c);try{d.call(u,d)}catch{return!0}return u instanceof WeakMap}catch{}return!1}function De(u){if(!v||!u||typeof u!="object")return!1;try{return v.call(u),!0}catch{}return!1}function Ie(u){if(!i||!u||typeof u!="object")return!1;try{i.call(u);try{r.call(u)}catch{return!0}return u instanceof Set}catch{}return!1}function We(u){if(!d||!u||typeof u!="object")return!1;try{d.call(u,d);try{c.call(u,c)}catch{return!0}return u instanceof WeakSet}catch{}return!1}function we(u){return!u||typeof u!="object"?!1:typeof HTMLElement<"u"&&u instanceof HTMLElement?!0:typeof u.nodeName=="string"&&typeof u.getAttribute=="function"}function Oe(u,p){if(u.length>p.maxStringLength){var G=u.length-p.maxStringLength,se="... "+G+" more character"+(G>1?"s":"");return Oe(x.call(u,0,p.maxStringLength),p)+se}var le=ge[p.quoteStyle||"single"];le.lastIndex=0;var V=S.call(S.call(u,le,"\\$1"),/[\x00-\x1f]/g,b);return h(V,"single",p)}function b(u){var p=u.charCodeAt(0),G={8:"b",9:"t",10:"n",12:"f",13:"r"}[p];return G?"\\"+G:"\\x"+(p<16?"0":"")+O.call(p.toString(16))}function k(u){return"Object("+u+")"}function M(u){return u+" { ? }"}function Q(u,p,G,se){var le=se?Pe(G,se):I.call(G,", ");return u+" ("+p+") {"+le+"}"}function re(u){for(var p=0;p<u.length;p++)if(ae(u[p],`
|
|
1
|
+
import{e as Oa,c as On,g as mt,r as E,j as z,l as Pa,k as Gt}from"./react-Vu6nbGi5.js";import{p as It,c as $a,u as dn,B as Ra}from"./index-PQMQyCqV.js";import{E as Iu}from"./index-PQMQyCqV.js";import{h as jo,i as qo,j as _o,a as Ue,k as ka,l as Yt,m as gt,b as yt,e as Ca,n as Ea,o as Ia,p as Ba,q as Aa,d as vr,s as Wo,g as No,c as Ho,f as Ma,t as Ta,r as La}from"./index-CLIR3TTD.js";import{p as xr}from"./ethers-DHDSyreX.js";import{c as Da}from"./index-CWz8eoAl.js";import{n as Ke}from"./SvgIcon-CVoRZ89M.js";import{L as ja,_ as Et,b as j,e as hr,M as Bt,N as qa,u as mr,s as Ge,g as zo,a as Vo,c as lt,d as me,p as st,O as Fo,J as Xt}from"./generateUtilityClasses-D15hK3nM.js";import{a as zt,g as lr,o as rt,b as un,l as _a,m as Wa,n as Na,p as Ha,r as Zt,j as za,k as vn}from"./Button-D1faXtxc.js";import{P as Va,c as tt,e as Sr,j as Fa,i as ur,f as Ua,G as Ga,d as Ya,M as Xa,h as Za}from"./MenuItem-BzIPsU3-.js";import"./index-Dmfk0azd.js";import"./CircularProgress-ByISsJtD.js";var wr,Pn;function Uo(){if(Pn)return wr;Pn=1;var e=Object.prototype.toString;return wr=function(r){var o=e.call(r),n=o==="[object Arguments]";return n||(n=o!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&e.call(r.callee)==="[object Function]"),n},wr}var Or,$n;function Ka(){if($n)return Or;$n=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=Uo(),n=Object.prototype.propertyIsEnumerable,s=!n.call({toString:null},"toString"),i=n.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(g){var v=g.constructor;return v&&v.prototype===g},c={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=(function(){if(typeof window>"u")return!1;for(var g in window)try{if(!c["$"+g]&&t.call(window,g)&&window[g]!==null&&typeof window[g]=="object")try{l(window[g])}catch{return!0}}catch{return!0}return!1})(),d=function(g){if(typeof window>"u"||!f)return l(g);try{return l(g)}catch{return!1}};e=function(v){var m=v!==null&&typeof v=="object",y=r.call(v)==="[object Function]",$=o(v),C=m&&r.call(v)==="[object String]",x=[];if(!m&&!y&&!$)throw new TypeError("Object.keys called on a non-object");var S=i&&y;if(C&&v.length>0&&!t.call(v,0))for(var O=0;O<v.length;++O)x.push(String(O));if($&&v.length>0)for(var P=0;P<v.length;++P)x.push(String(P));else for(var B in v)!(S&&B==="prototype")&&t.call(v,B)&&x.push(String(B));if(s)for(var T=d(v),I=0;I<a.length;++I)!(T&&a[I]==="constructor")&&t.call(v,a[I])&&x.push(a[I]);return x}}return Or=e,Or}var Pr,Rn;function hn(){if(Rn)return Pr;Rn=1;var e=Array.prototype.slice,t=Uo(),r=Object.keys,o=r?function(i){return r(i)}:Ka(),n=Object.keys;return o.shim=function(){if(Object.keys){var i=(function(){var a=Object.keys(arguments);return a&&a.length===arguments.length})(1,2);i||(Object.keys=function(l){return t(l)?n(e.call(l)):n(l)})}else Object.keys=o;return Object.keys||o},Pr=o,Pr}var $r,kn;function bt(){if(kn)return $r;kn=1;var e=hn(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r=Object.prototype.toString,o=Array.prototype.concat,n=qo(),s=function(c){return typeof c=="function"&&r.call(c)==="[object Function]"},i=jo()(),a=function(c,f,d,g){if(f in c){if(g===!0){if(c[f]===d)return}else if(!s(g)||!g())return}i?n(c,f,d,!0):n(c,f,d)},l=function(c,f){var d=arguments.length>2?arguments[2]:{},g=e(f);t&&(g=o.call(g,Object.getOwnPropertySymbols(f)));for(var v=0;v<g.length;v+=1)a(c,g[v],f[g[v]],d[g[v]])};return l.supportsDescriptors=!!i,$r=l,$r}var Rr,Cn;function Go(){if(Cn)return Rr;Cn=1;var e=hn(),t=_o()(),r=Ue(),o=ka(),n=r("Array.prototype.push"),s=r("Object.prototype.propertyIsEnumerable"),i=t?o.getOwnPropertySymbols:null;return Rr=function(l,c){if(l==null)throw new TypeError("target must be an object");var f=o(l);if(arguments.length===1)return f;for(var d=1;d<arguments.length;++d){var g=o(arguments[d]),v=e(g),m=t&&(o.getOwnPropertySymbols||i);if(m)for(var y=m(g),$=0;$<y.length;++$){var C=y[$];s(g,C)&&n(v,C)}for(var x=0;x<v.length;++x){var S=v[x];if(s(g,S)){var O=g[S];f[S]=O}}}return f},Rr}var kr,En;function Yo(){if(En)return kr;En=1;var e=Go(),t=function(){if(!Object.assign)return!1;for(var o="abcdefghijklmnopqrst",n=o.split(""),s={},i=0;i<n.length;++i)s[n[i]]=n[i];var a=Object.assign({},s),l="";for(var c in a)l+=c;return o!==l},r=function(){if(!Object.assign||!Object.preventExtensions)return!1;var o=Object.preventExtensions({1:2});try{Object.assign(o,"xy")}catch{return o[1]==="y"}return!1};return kr=function(){return!Object.assign||t()||r()?e:Object.assign},kr}var Cr,In;function Ja(){if(In)return Cr;In=1;var e=bt(),t=Yo();return Cr=function(){var o=t();return e(Object,{assign:o},{assign:function(){return Object.assign!==o}}),o},Cr}var Er,Bn;function Qa(){if(Bn)return Er;Bn=1;var e=bt(),t=Yt(),r=Go(),o=Yo(),n=Ja(),s=t.apply(o()),i=function(l,c){return s(Object,arguments)};return e(i,{getPolyfill:o,implementation:r,shim:n}),Er=i,Er}var Ir,An;function Xo(){if(An)return Ir;An=1;var e=gt(),t=Yt(),r=t(e("String.prototype.indexOf"));return Ir=function(n,s){var i=e(n,!!s);return typeof i=="function"&&r(n,".prototype.")>-1?t(i):i},Ir}var Br,Mn;function ei(){if(Mn)return Br;Mn=1;var e=function(){return typeof(function(){}).name=="string"},t=Object.getOwnPropertyDescriptor;if(t)try{t([],"length")}catch{t=null}e.functionsHaveConfigurableNames=function(){if(!e()||!t)return!1;var n=t(function(){},"name");return!!n&&!!n.configurable};var r=Function.prototype.bind;return e.boundFunctionsHaveNames=function(){return e()&&typeof r=="function"&&(function(){}).bind().name!==""},Br=e,Br}var Ar,Tn;function ti(){if(Tn)return Ar;Tn=1;var e=qo(),t=jo()(),r=ei().functionsHaveConfigurableNames(),o=yt();return Ar=function(s,i){if(typeof s!="function")throw new o("`fn` is not a function");var a=arguments.length>2&&!!arguments[2];return(!a||r)&&(t?e(s,"name",i,!0,!0):e(s,"name",i)),s},Ar}var Mr,Ln;function Zo(){if(Ln)return Mr;Ln=1;var e=ti(),t=yt(),r=Object;return Mr=e(function(){if(this==null||this!==r(this))throw new t("RegExp.prototype.flags getter called on non-object");var n="";return this.hasIndices&&(n+="d"),this.global&&(n+="g"),this.ignoreCase&&(n+="i"),this.multiline&&(n+="m"),this.dotAll&&(n+="s"),this.unicode&&(n+="u"),this.unicodeSets&&(n+="v"),this.sticky&&(n+="y"),n},"get flags",!0),Mr}var Tr,Dn;function Ko(){if(Dn)return Tr;Dn=1;var e=Zo(),t=bt().supportsDescriptors,r=Object.getOwnPropertyDescriptor;return Tr=function(){if(t&&/a/mig.flags==="gim"){var n=r(RegExp.prototype,"flags");if(n&&typeof n.get=="function"&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var s="",i={};if(Object.defineProperty(i,"hasIndices",{get:function(){s+="d"}}),Object.defineProperty(i,"sticky",{get:function(){s+="y"}}),n.get.call(i),s==="dy")return n.get}}return e},Tr}var Lr,jn;function ri(){if(jn)return Lr;jn=1;var e=bt().supportsDescriptors,t=Ko(),r=Ia(),o=Object.defineProperty,n=Ea(),s=Ca(),i=/a/;return Lr=function(){if(!e||!s)throw new n("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var l=t(),c=s(i),f=r(c,"flags");return(!f||f.get!==l)&&o(c,"flags",{configurable:!0,enumerable:!1,get:l}),l},Lr}var Dr,qn;function ni(){if(qn)return Dr;qn=1;var e=bt(),t=Yt(),r=Zo(),o=Ko(),n=ri(),s=t(o());return e(s,{getPolyfill:o,implementation:r,shim:n}),Dr=s,Dr}var At={exports:{}};const oi={},ai=Object.freeze(Object.defineProperty({__proto__:null,default:oi},Symbol.toStringTag,{value:"Module"})),ii=Oa(ai);var jr,_n;function gr(){if(_n)return jr;_n=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,o=e&&Map.prototype.forEach,n=typeof Set=="function"&&Set.prototype,s=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,i=n&&s&&typeof s.get=="function"?s.get:null,a=n&&Set.prototype.forEach,l=typeof WeakMap=="function"&&WeakMap.prototype,c=l?WeakMap.prototype.has:null,f=typeof WeakSet=="function"&&WeakSet.prototype,d=f?WeakSet.prototype.has:null,g=typeof WeakRef=="function"&&WeakRef.prototype,v=g?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,y=Object.prototype.toString,$=Function.prototype.toString,C=String.prototype.match,x=String.prototype.slice,S=String.prototype.replace,O=String.prototype.toUpperCase,P=String.prototype.toLowerCase,B=RegExp.prototype.test,T=Array.prototype.concat,I=Array.prototype.join,R=Array.prototype.slice,A=Math.floor,W=typeof BigInt=="function"?BigInt.prototype.valueOf:null,F=Object.getOwnPropertySymbols,q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ie=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Z=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ie||!0)?Symbol.toStringTag:null,oe=Object.prototype.propertyIsEnumerable,U=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(u){return u.__proto__}:null);function ce(u,p){if(u===1/0||u===-1/0||u!==u||u&&u>-1e3&&u<1e3||B.call(/e/,p))return p;var G=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof u=="number"){var se=u<0?-A(-u):A(u);if(se!==u){var le=String(se),V=x.call(p,le.length+1);return S.call(le,G,"$&_")+"."+S.call(S.call(V,/([0-9]{3})/g,"$&_"),/_$/,"")}}return S.call(p,G,"$&_")}var ue=ii,Ce=ue.custom,Ee=te(Ce)?Ce:null,Se={__proto__:null,double:'"',single:"'"},ge={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};jr=function u(p,G,se,le){var V=G||{};if(pe(V,"quoteStyle")&&!pe(Se,V.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(pe(V,"maxStringLength")&&(typeof V.maxStringLength=="number"?V.maxStringLength<0&&V.maxStringLength!==1/0:V.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Be=pe(V,"customInspect")?V.customInspect:!0;if(typeof Be!="boolean"&&Be!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(pe(V,"indent")&&V.indent!==null&&V.indent!==" "&&!(parseInt(V.indent,10)===V.indent&&V.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(pe(V,"numericSeparator")&&typeof V.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var je=V.numericSeparator;if(typeof p>"u")return"undefined";if(p===null)return"null";if(typeof p=="boolean")return p?"true":"false";if(typeof p=="string")return Oe(p,V);if(typeof p=="number"){if(p===0)return 1/0/p>0?"0":"-0";var be=String(p);return je?ce(p,be):be}if(typeof p=="bigint"){var Ae=String(p)+"n";return je?ce(p,Ae):Ae}var ct=typeof V.depth>"u"?5:V.depth;if(typeof se>"u"&&(se=0),se>=ct&&ct>0&&typeof p=="object")return L(p)?"[Array]":"[Object]";var Ne=K(V,se);if(typeof le>"u")le=[];else if(ae(le,p)>=0)return"[Circular]";function Re(xe,Pt,br){if(Pt&&(le=R.call(le),le.push(Pt)),br){var Qt={depth:V.depth};return pe(V,"quoteStyle")&&(Qt.quoteStyle=V.quoteStyle),u(xe,Qt,se+1,le)}return u(xe,V,se+1,le)}if(typeof p=="function"&&!ne(p)){var ot=_e(p),xt=$e(p,Re);return"[Function"+(ot?": "+ot:" (anonymous)")+"]"+(xt.length>0?" { "+I.call(xt,", ")+" }":"")}if(te(p)){var St=ie?S.call(String(p),/^(Symbol\(.*\))_[^)]*$/,"$1"):q.call(p);return typeof p=="object"&&!ie?k(St):St}if(we(p)){for(var Je="<"+P.call(String(p.nodeName)),ft=p.attributes||[],at=0;at<ft.length;at++)Je+=" "+ft[at].name+"="+h(w(ft[at].value),"double",V);return Je+=">",p.childNodes&&p.childNodes.length&&(Je+="..."),Je+="</"+P.call(String(p.nodeName))+">",Je}if(L(p)){if(p.length===0)return"[]";var pt=$e(p,Re);return Ne&&!re(pt)?"["+Pe(pt,Ne)+"]":"[ "+I.call(pt,", ")+" ]"}if(ee(p)){var Qe=$e(p,Re);return!("cause"in Error.prototype)&&"cause"in p&&!oe.call(p,"cause")?"{ ["+String(p)+"] "+I.call(T.call("[cause]: "+Re(p.cause),Qe),", ")+" }":Qe.length===0?"["+String(p)+"]":"{ ["+String(p)+"] "+I.call(Qe,", ")+" }"}if(typeof p=="object"&&Be){if(Ee&&typeof p[Ee]=="function"&&ue)return ue(p,{depth:ct-se});if(Be!=="symbol"&&typeof p.inspect=="function")return p.inspect()}if(ye(p)){var wt=[];return o&&o.call(p,function(xe,Pt){wt.push(Re(Pt,p,!0)+" => "+Re(xe,p))}),Q("Map",r.call(p),wt,Ne)}if(Ie(p)){var it=[];return a&&a.call(p,function(xe){it.push(Re(xe,p))}),Q("Set",i.call(p),it,Ne)}if(Le(p))return M("WeakMap");if(We(p))return M("WeakSet");if(De(p))return M("WeakRef");if(N(p))return k(Re(Number(p)));if(X(p))return k(Re(W.call(p)));if(Y(p))return k(m.call(p));if(J(p))return k(Re(String(p)));if(typeof window<"u"&&p===window)return"{ [object Window] }";if(typeof globalThis<"u"&&p===globalThis||typeof On<"u"&&p===On)return"{ [object globalThis] }";if(!D(p)&&!ne(p)){var et=$e(p,Re),Ot=U?U(p)===Object.prototype:p instanceof Object||p.constructor===Object,de=p instanceof Object?"":"null prototype",ve=!Ot&&Z&&Object(p)===p&&Z in p?x.call(fe(p),8,-1):de?"Object":"",dt=Ot||typeof p.constructor!="function"?"":p.constructor.name?p.constructor.name+" ":"",Ye=dt+(ve||de?"["+I.call(T.call([],ve||[],de||[]),": ")+"] ":"");return et.length===0?Ye+"{}":Ne?Ye+"{"+Pe(et,Ne)+"}":Ye+"{ "+I.call(et,", ")+" }"}return String(p)};function h(u,p,G){var se=G.quoteStyle||p,le=Se[se];return le+u+le}function w(u){return S.call(String(u),/"/g,""")}function _(u){return!Z||!(typeof u=="object"&&(Z in u||typeof u[Z]<"u"))}function L(u){return fe(u)==="[object Array]"&&_(u)}function D(u){return fe(u)==="[object Date]"&&_(u)}function ne(u){return fe(u)==="[object RegExp]"&&_(u)}function ee(u){return fe(u)==="[object Error]"&&_(u)}function J(u){return fe(u)==="[object String]"&&_(u)}function N(u){return fe(u)==="[object Number]"&&_(u)}function Y(u){return fe(u)==="[object Boolean]"&&_(u)}function te(u){if(ie)return u&&typeof u=="object"&&u instanceof Symbol;if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||!q)return!1;try{return q.call(u),!0}catch{}return!1}function X(u){if(!u||typeof u!="object"||!W)return!1;try{return W.call(u),!0}catch{}return!1}var he=Object.prototype.hasOwnProperty||function(u){return u in this};function pe(u,p){return he.call(u,p)}function fe(u){return y.call(u)}function _e(u){if(u.name)return u.name;var p=C.call($.call(u),/^function\s*([\w$]+)/);return p?p[1]:null}function ae(u,p){if(u.indexOf)return u.indexOf(p);for(var G=0,se=u.length;G<se;G++)if(u[G]===p)return G;return-1}function ye(u){if(!r||!u||typeof u!="object")return!1;try{r.call(u);try{i.call(u)}catch{return!0}return u instanceof Map}catch{}return!1}function Le(u){if(!c||!u||typeof u!="object")return!1;try{c.call(u,c);try{d.call(u,d)}catch{return!0}return u instanceof WeakMap}catch{}return!1}function De(u){if(!v||!u||typeof u!="object")return!1;try{return v.call(u),!0}catch{}return!1}function Ie(u){if(!i||!u||typeof u!="object")return!1;try{i.call(u);try{r.call(u)}catch{return!0}return u instanceof Set}catch{}return!1}function We(u){if(!d||!u||typeof u!="object")return!1;try{d.call(u,d);try{c.call(u,c)}catch{return!0}return u instanceof WeakSet}catch{}return!1}function we(u){return!u||typeof u!="object"?!1:typeof HTMLElement<"u"&&u instanceof HTMLElement?!0:typeof u.nodeName=="string"&&typeof u.getAttribute=="function"}function Oe(u,p){if(u.length>p.maxStringLength){var G=u.length-p.maxStringLength,se="... "+G+" more character"+(G>1?"s":"");return Oe(x.call(u,0,p.maxStringLength),p)+se}var le=ge[p.quoteStyle||"single"];le.lastIndex=0;var V=S.call(S.call(u,le,"\\$1"),/[\x00-\x1f]/g,b);return h(V,"single",p)}function b(u){var p=u.charCodeAt(0),G={8:"b",9:"t",10:"n",12:"f",13:"r"}[p];return G?"\\"+G:"\\x"+(p<16?"0":"")+O.call(p.toString(16))}function k(u){return"Object("+u+")"}function M(u){return u+" { ? }"}function Q(u,p,G,se){var le=se?Pe(G,se):I.call(G,", ");return u+" ("+p+") {"+le+"}"}function re(u){for(var p=0;p<u.length;p++)if(ae(u[p],`
|
|
2
2
|
`)>=0)return!1;return!0}function K(u,p){var G;if(u.indent===" ")G=" ";else if(typeof u.indent=="number"&&u.indent>0)G=I.call(Array(u.indent+1)," ");else return null;return{base:G,prev:I.call(Array(p+1),G)}}function Pe(u,p){if(u.length===0)return"";var G=`
|
|
3
3
|
`+p.prev+p.base;return G+I.call(u,","+G)+`
|
|
4
4
|
`+p.prev}function $e(u,p){var G=L(u),se=[];if(G){se.length=u.length;for(var le=0;le<u.length;le++)se[le]=pe(u,le)?p(u[le],u):""}var V=typeof F=="function"?F(u):[],Be;if(ie){Be={};for(var je=0;je<V.length;je++)Be["$"+V[je]]=V[je]}for(var be in u)pe(u,be)&&(G&&String(Number(be))===be&&be<u.length||ie&&Be["$"+be]instanceof Symbol||(B.call(/[^\w$]/,be)?se.push(p(be,u)+": "+p(u[be],u)):se.push(be+": "+p(u[be],u))));if(typeof F=="function")for(var Ae=0;Ae<V.length;Ae++)oe.call(u,V[Ae])&&se.push("["+p(V[Ae])+"]: "+p(u[V[Ae]],u));return se}return jr}var qr,Wn;function si(){if(Wn)return qr;Wn=1;var e=gr(),t=yt(),r=function(a,l,c){for(var f=a,d;(d=f.next)!=null;f=d)if(d.key===l)return f.next=d.next,c||(d.next=a.next,a.next=d),d},o=function(a,l){if(a){var c=r(a,l);return c&&c.value}},n=function(a,l,c){var f=r(a,l);f?f.value=c:a.next={key:l,next:a.next,value:c}},s=function(a,l){return a?!!r(a,l):!1},i=function(a,l){if(a)return r(a,l,!0)};return qr=function(){var l,c={assert:function(f){if(!c.has(f))throw new t("Side channel does not contain "+e(f))},delete:function(f){var d=i(l,f);return d&&l&&!l.next&&(l=void 0),!!d},get:function(f){return o(l,f)},has:function(f){return s(l,f)},set:function(f,d){l||(l={next:void 0}),n(l,f,d)}};return c},qr}var _r,Nn;function Jo(){if(Nn)return _r;Nn=1;var e=gt(),t=Ue(),r=gr(),o=yt(),n=e("%Map%",!0),s=t("Map.prototype.get",!0),i=t("Map.prototype.set",!0),a=t("Map.prototype.has",!0),l=t("Map.prototype.delete",!0),c=t("Map.prototype.size",!0);return _r=!!n&&function(){var d,g={assert:function(v){if(!g.has(v))throw new o("Side channel does not contain "+r(v))},delete:function(v){if(d){var m=l(d,v);return c(d)===0&&(d=void 0),m}return!1},get:function(v){if(d)return s(d,v)},has:function(v){return d?a(d,v):!1},set:function(v,m){d||(d=new n),i(d,v,m)}};return g},_r}var Wr,Hn;function li(){if(Hn)return Wr;Hn=1;var e=gt(),t=Ue(),r=gr(),o=Jo(),n=yt(),s=e("%WeakMap%",!0),i=t("WeakMap.prototype.get",!0),a=t("WeakMap.prototype.set",!0),l=t("WeakMap.prototype.has",!0),c=t("WeakMap.prototype.delete",!0);return Wr=s?function(){var d,g,v={assert:function(m){if(!v.has(m))throw new n("Side channel does not contain "+r(m))},delete:function(m){if(s&&m&&(typeof m=="object"||typeof m=="function")){if(d)return c(d,m)}else if(o&&g)return g.delete(m);return!1},get:function(m){return s&&m&&(typeof m=="object"||typeof m=="function")&&d?i(d,m):g&&g.get(m)},has:function(m){return s&&m&&(typeof m=="object"||typeof m=="function")&&d?l(d,m):!!g&&g.has(m)},set:function(m,y){s&&m&&(typeof m=="object"||typeof m=="function")?(d||(d=new s),a(d,m,y)):o&&(g||(g=o()),g.set(m,y))}};return v}:o,Wr}var Nr,zn;function Qo(){if(zn)return Nr;zn=1;var e=yt(),t=gr(),r=si(),o=Jo(),n=li(),s=n||o||r;return Nr=function(){var a,l={assert:function(c){if(!l.has(c)){var f=c&&Object(c)===c?"the given object key":t(c);throw new e("Side channel does not contain "+f)}},delete:function(c){return!!a&&a.delete(c)},get:function(c){return a&&a.get(c)},has:function(c){return!!a&&a.has(c)},set:function(c,f){a||(a=s()),a.set(c,f)}};return l},Nr}var Hr,Vn;function ui(){if(Vn)return Hr;Vn=1;var e=Ba(),t=Qo()(),r=yt(),o={assert:function(n,s){if(!n||typeof n!="object"&&typeof n!="function")throw new r("`O` is not an object");if(typeof s!="string")throw new r("`slot` must be a string");if(t.assert(n),!o.has(n,s))throw new r("`"+s+"` is not present on `O`")},get:function(n,s){if(!n||typeof n!="object"&&typeof n!="function")throw new r("`O` is not an object");if(typeof s!="string")throw new r("`slot` must be a string");var i=t.get(n);return i&&i["$"+s]},has:function(n,s){if(!n||typeof n!="object"&&typeof n!="function")throw new r("`O` is not an object");if(typeof s!="string")throw new r("`slot` must be a string");var i=t.get(n);return!!i&&e(i,"$"+s)},set:function(n,s,i){if(!n||typeof n!="object"&&typeof n!="function")throw new r("`O` is not an object");if(typeof s!="string")throw new r("`slot` must be a string");var a=t.get(n);a||(a={},t.set(n,a)),a["$"+s]=i}};return Object.freeze&&Object.freeze(o),Hr=o,Hr}var zr,Fn;function ci(){if(Fn)return zr;Fn=1;var e=ui(),t=Aa(),r=typeof StopIteration=="object"?StopIteration:null;return zr=function(n){if(!r)throw new t("this environment lacks StopIteration");e.set(n,"[[Done]]",!1);var s={next:function(){var a=e.get(this,"[[Iterator]]"),l=!!e.get(a,"[[Done]]");try{return{done:l,value:l?void 0:a.next()}}catch(c){if(e.set(a,"[[Done]]",!0),c!==r)throw c;return{done:!0,value:void 0}}}};return e.set(s,"[[Iterator]]",n),s},zr}var Vr,Un;function ea(){if(Un)return Vr;Un=1;var e=Ue(),t=e("String.prototype.valueOf"),r=function(a){try{return t(a),!0}catch{return!1}},o=e("Object.prototype.toString"),n="[object String]",s=vr()();return Vr=function(a){return typeof a=="string"?!0:!a||typeof a!="object"?!1:s?r(a):o(a)===n},Vr}var Fr,Gn;function ta(){if(Gn)return Fr;Gn=1;var e=typeof Map=="function"&&Map.prototype?Map:null,t=typeof Set=="function"&&Set.prototype?Set:null,r;e||(r=function(i){return!1});var o=e?Map.prototype.has:null,n=t?Set.prototype.has:null;return!r&&!o&&(r=function(i){return!1}),Fr=r||function(i){if(!i||typeof i!="object")return!1;try{if(o.call(i),n)try{n.call(i)}catch{return!0}return i instanceof e}catch{}return!1},Fr}var Ur,Yn;function ra(){if(Yn)return Ur;Yn=1;var e=typeof Map=="function"&&Map.prototype?Map:null,t=typeof Set=="function"&&Set.prototype?Set:null,r;t||(r=function(i){return!1});var o=e?Map.prototype.has:null,n=t?Set.prototype.has:null;return!r&&!n&&(r=function(i){return!1}),Ur=r||function(i){if(!i||typeof i!="object")return!1;try{if(n.call(i),o)try{o.call(i)}catch{return!0}return i instanceof t}catch{}return!1},Ur}var Xn;function fi(){if(Xn)return At.exports;Xn=1;var e=No(),t=ci();if(Wo()()||_o()()){var r=Symbol.iterator;At.exports=function(R){if(R!=null&&typeof R[r]<"u")return R[r]();if(e(R))return Array.prototype[r].call(R)}}else{var o=Ho(),n=ea(),s=gt(),i=s("%Map%",!0),a=s("%Set%",!0),l=Xo(),c=l("Array.prototype.push"),f=l("String.prototype.charCodeAt"),d=l("String.prototype.slice"),g=function(R,A){var W=R.length;if(A+1>=W)return A+1;var F=f(R,A);if(F<55296||F>56319)return A+1;var q=f(R,A+1);return q<56320||q>57343?A+1:A+2},v=function(R){var A=0;return{next:function(){var F=A>=R.length,q;return F||(q=R[A],A+=1),{done:F,value:q}}}},m=function(R,A){if(o(R)||e(R))return v(R);if(n(R)){var W=0;return{next:function(){var q=g(R,W),ie=d(R,W,q);return W=q,{done:q>R.length,value:ie}}}}if(A&&typeof R["_es6-shim iterator_"]<"u")return R["_es6-shim iterator_"]()};if(!i&&!a)At.exports=function(R){if(R!=null)return m(R,!0)};else{var y=ta(),$=ra(),C=l("Map.prototype.forEach",!0),x=l("Set.prototype.forEach",!0);if(typeof xr>"u"||!xr.versions||!xr.versions.node)var S=l("Map.prototype.iterator",!0),O=l("Set.prototype.iterator",!0);var P=l("Map.prototype.@@iterator",!0)||l("Map.prototype._es6-shim iterator_",!0),B=l("Set.prototype.@@iterator",!0)||l("Set.prototype._es6-shim iterator_",!0),T=function(R){if(y(R)){if(S)return t(S(R));if(P)return P(R);if(C){var A=[];return C(R,function(F,q){c(A,[q,F])}),v(A)}}if($(R)){if(O)return t(O(R));if(B)return B(R);if(x){var W=[];return x(R,function(F){c(W,F)}),v(W)}}};At.exports=function(R){return T(R)||m(R)}}}return At.exports}var Gr,Zn;function na(){if(Zn)return Gr;Zn=1;var e=function(t){return t!==t};return Gr=function(r,o){return r===0&&o===0?1/r===1/o:!!(r===o||e(r)&&e(o))},Gr}var Yr,Kn;function oa(){if(Kn)return Yr;Kn=1;var e=na();return Yr=function(){return typeof Object.is=="function"?Object.is:e},Yr}var Xr,Jn;function pi(){if(Jn)return Xr;Jn=1;var e=oa(),t=bt();return Xr=function(){var o=e();return t(Object,{is:o},{is:function(){return Object.is!==o}}),o},Xr}var Zr,Qn;function di(){if(Qn)return Zr;Qn=1;var e=bt(),t=Yt(),r=na(),o=oa(),n=pi(),s=t(o(),Object);return e(s,{getPolyfill:o,implementation:r,shim:n}),Zr=s,Zr}var Kr,eo;function aa(){if(eo)return Kr;eo=1;var e=Yt(),t=Ue(),r=gt(),o=r("%ArrayBuffer%",!0),n=t("ArrayBuffer.prototype.byteLength",!0),s=t("Object.prototype.toString"),i=!!o&&!n&&new o(0).slice,a=!!i&&e(i);return Kr=n||a?function(c){if(!c||typeof c!="object")return!1;try{return n?n(c):a(c,0),!0}catch{return!1}}:o?function(c){return s(c)==="[object ArrayBuffer]"}:function(c){return!1},Kr}var Jr,to;function vi(){if(to)return Jr;to=1;var e=Ue(),t=e("Date.prototype.getDay"),r=function(a){try{return t(a),!0}catch{return!1}},o=e("Object.prototype.toString"),n="[object Date]",s=vr()();return Jr=function(a){return typeof a!="object"||a===null?!1:s?r(a):o(a)===n},Jr}var Qr,ro;function hi(){if(ro)return Qr;ro=1;var e=Ue(),t=e("SharedArrayBuffer.prototype.byteLength",!0);return Qr=t?function(o){if(!o||typeof o!="object")return!1;try{return t(o),!0}catch{return!1}}:function(o){return!1},Qr}var en,no;function mi(){if(no)return en;no=1;var e=Ue(),t=e("Number.prototype.toString"),r=function(a){try{return t(a),!0}catch{return!1}},o=e("Object.prototype.toString"),n="[object Number]",s=vr()();return en=function(a){return typeof a=="number"?!0:!a||typeof a!="object"?!1:s?r(a):o(a)===n},en}var tn,oo;function gi(){if(oo)return tn;oo=1;var e=Ue(),t=e("Boolean.prototype.toString"),r=e("Object.prototype.toString"),o=function(a){try{return t(a),!0}catch{return!1}},n="[object Boolean]",s=vr()();return tn=function(a){return typeof a=="boolean"?!0:a===null||typeof a!="object"?!1:s?o(a):r(a)===n},tn}var er={exports:{}},ao;function yi(){if(ao)return er.exports;ao=1;var e=Ue(),t=e("Object.prototype.toString"),r=Wo()(),o=Ma();if(r){var n=e("Symbol.prototype.toString"),s=o(/^Symbol\(.*\)$/),i=function(l){return typeof l.valueOf()!="symbol"?!1:s(n(l))};er.exports=function(l){if(typeof l=="symbol")return!0;if(!l||typeof l!="object"||t(l)!=="[object Symbol]")return!1;try{return i(l)}catch{return!1}}}else er.exports=function(l){return!1};return er.exports}var tr={exports:{}},rn,io;function bi(){if(io)return rn;io=1;var e=typeof BigInt<"u"&&BigInt;return rn=function(){return typeof e=="function"&&typeof BigInt=="function"&&typeof e(42)=="bigint"&&typeof BigInt(42)=="bigint"},rn}var so;function xi(){if(so)return tr.exports;so=1;var e=bi()();if(e){var t=BigInt.prototype.valueOf,r=function(n){try{return t.call(n),!0}catch{}return!1};tr.exports=function(n){return n===null||typeof n>"u"||typeof n=="boolean"||typeof n=="string"||typeof n=="number"||typeof n=="symbol"||typeof n=="function"?!1:typeof n=="bigint"?!0:r(n)}}else tr.exports=function(n){return!1};return tr.exports}var nn,lo;function Si(){if(lo)return nn;lo=1;var e=ea(),t=mi(),r=gi(),o=yi(),n=xi();return nn=function(i){if(i==null||typeof i!="object"&&typeof i!="function")return null;if(e(i))return"String";if(t(i))return"Number";if(r(i))return"Boolean";if(o(i))return"Symbol";if(n(i))return"BigInt"},nn}var on,uo;function wi(){if(uo)return on;uo=1;var e=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,t=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,r;e||(r=function(i){return!1});var o=e?e.prototype.has:null,n=t?t.prototype.has:null;return!r&&!o&&(r=function(i){return!1}),on=r||function(i){if(!i||typeof i!="object")return!1;try{if(o.call(i,o),n)try{n.call(i,n)}catch{return!0}return i instanceof e}catch{}return!1},on}var rr={exports:{}},co;function Oi(){if(co)return rr.exports;co=1;var e=gt(),t=Ue(),r=e("%WeakSet%",!0),o=t("WeakSet.prototype.has",!0);if(o){var n=t("WeakMap.prototype.has",!0);rr.exports=function(i){if(!i||typeof i!="object")return!1;try{if(o(i,o),n)try{n(i,n)}catch{return!0}return i instanceof r}catch{}return!1}}else rr.exports=function(i){return!1};return rr.exports}var an,fo;function Pi(){if(fo)return an;fo=1;var e=ta(),t=ra(),r=wi(),o=Oi();return an=function(s){if(s&&typeof s=="object"){if(e(s))return"Map";if(t(s))return"Set";if(r(s))return"WeakMap";if(o(s))return"WeakSet"}return!1},an}var sn,po;function $i(){if(po)return sn;po=1;var e=Ue(),t=e("ArrayBuffer.prototype.byteLength",!0),r=aa();return sn=function(n){return r(n)?t?t(n):n.byteLength:NaN},sn}var ln,vo;function Ri(){if(vo)return ln;vo=1;var e=Qa(),t=Xo(),r=ni(),o=gt(),n=fi(),s=Qo(),i=di(),a=No(),l=Ho(),c=aa(),f=vi(),d=Ta(),g=hi(),v=hn(),m=Si(),y=Pi(),$=La(),C=$i(),x=t("SharedArrayBuffer.prototype.byteLength",!0),S=t("Date.prototype.getTime"),O=Object.getPrototypeOf,P=t("Object.prototype.toString"),B=o("%Set%",!0),T=t("Map.prototype.has",!0),I=t("Map.prototype.get",!0),R=t("Map.prototype.size",!0),A=t("Set.prototype.add",!0),W=t("Set.prototype.delete",!0),F=t("Set.prototype.has",!0),q=t("Set.prototype.size",!0);function ie(h,w,_,L){for(var D=n(h),ne;(ne=D.next())&&!ne.done;)if(ue(w,ne.value,_,L))return W(h,ne.value),!0;return!1}function Z(h){if(typeof h>"u")return null;if(typeof h!="object")return typeof h=="symbol"?!1:typeof h=="string"||typeof h=="number"?+h==+h:!0}function oe(h,w,_,L,D,ne){var ee=Z(_);if(ee!=null)return ee;var J=I(w,ee),N=e({},D,{strict:!1});return typeof J>"u"&&!T(w,ee)||!ue(L,J,N,ne)?!1:!T(h,ee)&&ue(L,J,N,ne)}function U(h,w,_){var L=Z(_);return L??(F(w,L)&&!F(h,L))}function ce(h,w,_,L,D,ne){for(var ee=n(h),J,N;(J=ee.next())&&!J.done;)if(N=J.value,ue(_,N,D,ne)&&ue(L,I(w,N),D,ne))return W(h,N),!0;return!1}function ue(h,w,_,L){var D=_||{};if(D.strict?i(h,w):h===w)return!0;var ne=m(h),ee=m(w);if(ne!==ee)return!1;if(!h||!w||typeof h!="object"&&typeof w!="object")return D.strict?i(h,w):h==w;var J=L.has(h),N=L.has(w),Y;if(J&&N){if(L.get(h)===L.get(w))return!0}else Y={};return J||L.set(h,Y),N||L.set(w,Y),ge(h,w,D,L)}function Ce(h){return!h||typeof h!="object"||typeof h.length!="number"||typeof h.copy!="function"||typeof h.slice!="function"||h.length>0&&typeof h[0]!="number"?!1:!!(h.constructor&&h.constructor.isBuffer&&h.constructor.isBuffer(h))}function Ee(h,w,_,L){if(q(h)!==q(w))return!1;for(var D=n(h),ne=n(w),ee,J,N;(ee=D.next())&&!ee.done;)if(ee.value&&typeof ee.value=="object")N||(N=new B),A(N,ee.value);else if(!F(w,ee.value)){if(_.strict||!U(h,w,ee.value))return!1;N||(N=new B),A(N,ee.value)}if(N){for(;(J=ne.next())&&!J.done;)if(J.value&&typeof J.value=="object"){if(!ie(N,J.value,_.strict,L))return!1}else if(!_.strict&&!F(h,J.value)&&!ie(N,J.value,_.strict,L))return!1;return q(N)===0}return!0}function Se(h,w,_,L){if(R(h)!==R(w))return!1;for(var D=n(h),ne=n(w),ee,J,N,Y,te,X;(ee=D.next())&&!ee.done;)if(Y=ee.value[0],te=ee.value[1],Y&&typeof Y=="object")N||(N=new B),A(N,Y);else if(X=I(w,Y),typeof X>"u"&&!T(w,Y)||!ue(te,X,_,L)){if(_.strict||!oe(h,w,Y,te,_,L))return!1;N||(N=new B),A(N,Y)}if(N){for(;(J=ne.next())&&!J.done;)if(Y=J.value[0],X=J.value[1],Y&&typeof Y=="object"){if(!ce(N,h,Y,X,_,L))return!1}else if(!_.strict&&(!h.has(Y)||!ue(I(h,Y),X,_,L))&&!ce(N,h,Y,X,e({},_,{strict:!1}),L))return!1;return q(N)===0}return!0}function ge(h,w,_,L){var D,ne;if(typeof h!=typeof w||h==null||w==null||P(h)!==P(w)||a(h)!==a(w))return!1;var ee=l(h),J=l(w);if(ee!==J)return!1;var N=h instanceof Error,Y=w instanceof Error;if(N!==Y||(N||Y)&&(h.name!==w.name||h.message!==w.message))return!1;var te=d(h),X=d(w);if(te!==X||(te||X)&&(h.source!==w.source||r(h)!==r(w)))return!1;var he=f(h),pe=f(w);if(he!==pe||(he||pe)&&S(h)!==S(w)||_.strict&&O&&O(h)!==O(w))return!1;var fe=$(h),_e=$(w);if(fe!==_e)return!1;if(fe||_e){if(h.length!==w.length)return!1;for(D=0;D<h.length;D++)if(h[D]!==w[D])return!1;return!0}var ae=Ce(h),ye=Ce(w);if(ae!==ye)return!1;if(ae||ye){if(h.length!==w.length)return!1;for(D=0;D<h.length;D++)if(h[D]!==w[D])return!1;return!0}var Le=c(h),De=c(w);if(Le!==De)return!1;if(Le||De)return C(h)!==C(w)?!1:typeof Uint8Array=="function"&&ue(new Uint8Array(h),new Uint8Array(w),_,L);var Ie=g(h),We=g(w);if(Ie!==We)return!1;if(Ie||We)return x(h)!==x(w)?!1:typeof Uint8Array=="function"&&ue(new Uint8Array(h),new Uint8Array(w),_,L);if(typeof h!=typeof w)return!1;var we=v(h),Oe=v(w);if(we.length!==Oe.length)return!1;for(we.sort(),Oe.sort(),D=we.length-1;D>=0;D--)if(we[D]!=Oe[D])return!1;for(D=we.length-1;D>=0;D--)if(ne=we[D],!ue(h[ne],w[ne],_,L))return!1;var b=y(h),k=y(w);return b!==k?!1:b==="Set"||k==="Set"?Ee(h,w,_,L):b==="Map"?Se(h,w,_,L):!0}return ln=function(w,_,L){return ue(w,_,L,s())},ln}var ki=Ri();const ho=mt(ki);function Ci(){let e=null;return(t,r,...o)=>{e&&clearTimeout(e),e=setTimeout(t,r,...o)}}const Ei=Ke("iframe")({background:"transparent",border:0,width:"100%",height:"100%"}),Ii=Ci(),H=(e,t)=>t==null||t===""?"":Array.isArray(t)?t.length>0?t.map(r=>`${e}=${encodeURIComponent(String(r))}`).join("&"):"":`${e}=${encodeURIComponent(String(t))}`,Bi=e=>{const{dev:t=!1,baseUrl:r=Da.get("WEARABLE_PREVIEW_URL"),unity:o=!1,onLoad:n=()=>{},onError:s=()=>{},onUpdate:i=()=>{},...a}=e,[l,c]=E.useState({isReady:!1,pendingOptions:null}),f=E.useRef(null),d=E.useRef(null),g=E.useMemo(()=>{const{contractAddress:C,tokenId:x,itemId:S,profile:O,urns:P,urls:B,base64s:T,skin:I,hair:R,eyes:A,bodyShape:W,emote:F,camera:q,projection:ie,zoom:Z,background:oe,offsetX:U,offsetY:ce,offsetZ:ue,cameraX:Ce,cameraY:Ee,cameraZ:Se,wheelZoom:ge,wheelPrecision:h,wheelStart:w,disableBackground:_,disableAutoRotate:L,disableAutoCenter:D,disableFace:ne,disableDefaultWearables:ee,disableDefaultEmotes:J,disableFadeEffect:N,showSceneBoundaries:Y,showThumbnailBoundaries:te,panning:X,lockAlpha:he,lockBeta:pe,lockRadius:fe,peerUrl:_e,nftServerUrl:ae,marketplaceServerUrl:ye,type:Le,unityMode:De,username:Ie,socialEmote:We}=a,we=H("contract",C),Oe=H("token",x),b=H("item",S),k=H("profile",O),M=H("urn",P),Q=H("url",B),re=H("base64",T),K=H("skin",I),Pe=H("hair",R),$e=H("eyes",A),u=H("bodyShape",W),p=H("emote",F),G=H("camera",q),se=H("projection",ie),le=H("zoom",Z),V=H("background",oe),Be=H("offsetX",U),je=H("offsetY",ce),be=H("offsetZ",ue),Ae=H("cameraX",Ce),ct=H("cameraY",Ee),Ne=H("cameraZ",Se),Re=H("wheelZoom",ge),ot=H("wheelPrecision",h),xt=H("wheelStart",w),St=H("disableBackground",_),Je=H("disableAutoRotate",L),ft=H("disableAutoCenter",D),at=H("disableFace",ne),pt=H("disableDefaultWearables",ee),Qe=H("disableDefaultEmotes",J),wt=H("disableFadeEffect",N),it=H("showSceneBoundaries",Y),et=H("showThumbnailBoundaries",te),Ot=H("peerUrl",_e),ve=H("marketplaceServerUrl",ye??ae),dt=H("type",Le),Ye=H("panning",X),xe=H("lockAlpha",he),Pt=H("lockBeta",pe),br=H("lockRadius",fe),Qt=H("env",t?"dev":void 0),ya=H("unity",o),ba=H("mode",De),xa=H("username",Ie),Sa=H("socialEmote",We);return r+"?"+[we,Oe,b,k,M,Q,re,K,Pe,$e,u,p,G,se,le,V,Be,je,be,Ae,ct,Ne,Re,ot,xt,St,Je,ft,at,pt,Qe,wt,it,et,Ot,ve,dt,Ye,xe,Pt,br,Qt,ya,ba,xa,Sa].filter(wa=>!!wa).join("&")},[a,r,t,o]),v=E.useMemo(()=>{const C={};for(const x in a)typeof a[x]!="function"&&(C[x]=a[x]);return C},[a]),m=E.useCallback(C=>{var S;const x=d.current;(!x||!ho(C,x))&&((S=f.current)!=null&&S.contentWindow&&It.sendMessage(f.current.contentWindow,It.PreviewMessageType.UPDATE,{options:C}),i(C),d.current=C)},[i]),y=E.useCallback(()=>{f.current?typeof window<"u"&&(l.isReady?m(v):ho(l.pendingOptions,v)||c(C=>({...C,pendingOptions:v,url:g}))):console.warn("Could not send update, iframe is not referenced")},[v,l.pendingOptions,l.isReady,m]),$=E.useCallback(C=>{var O;const{origin:x}=C;if(x!==r||!((O=C.data)!=null&&O.type))return;switch(C.data.type){case It.PreviewMessageType.LOAD:{const P=C.data.payload;n(P==null?void 0:P.renderer);break}case It.PreviewMessageType.ERROR:{const P=C.data.payload;s(new Error(P.message));break}case It.PreviewMessageType.READY:{c(P=>P.isReady?P:P.pendingOptions!==null?(m(P.pendingOptions),{...P,isReady:!0,pendingOptions:null}):{...P,isReady:!0});break}}},[r,n,s,m]);return E.useEffect(()=>(window.addEventListener("message",$,!1),()=>{window.removeEventListener("message",$,!1)}),[$]),E.useEffect(()=>{e.blob&&y()},[e.blob,y]),E.useEffect(()=>{Ii(y,500)},[y]),e.tokenId&&e.itemId&&console.warn("You should NOT use `tokenId` and `itemId` props simultaneously"),z.jsx(Ei,{id:e.id,src:g,ref:f,allow:"autoplay"})};Bi.createController=$a;function Ai(e){return E.Children.toArray(e).filter(t=>E.isValidElement(t))}const Mi={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Ti(e,t,r=(o,n)=>o===n){return e.length===t.length&&e.every((o,n)=>r(o,t[n]))}const Li={disableDefaultClasses:!1},Di=E.createContext(Li);function ji(e){const{disableDefaultClasses:t}=E.useContext(Di);return r=>t?"":e(r)}const ia="base";function qi(e){return`${ia}--${e}`}function _i(e,t){return`${ia}-${e}-${t}`}function Wi(e,t){const r=ja[t];return r?qi(r):_i(e,t)}function mo(e){return e.substring(2).toLowerCase()}function Ni(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Hi(e){const{children:t,disableReactTree:r=!1,mouseEvent:o="onClick",onClickAway:n,touchEvent:s="onTouchEnd"}=e,i=E.useRef(!1),a=E.useRef(null),l=E.useRef(!1),c=E.useRef(!1);E.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const f=zt(t.ref,a),d=lr(m=>{const y=c.current;c.current=!1;const $=rt(a.current);if(!l.current||!a.current||"clientX"in m&&Ni(m,$))return;if(i.current){i.current=!1;return}let C;m.composedPath?C=m.composedPath().indexOf(a.current)>-1:C=!$.documentElement.contains(m.target)||a.current.contains(m.target),!C&&(r||!y)&&n(m)}),g=m=>y=>{c.current=!0;const $=t.props[m];$&&$(y)},v={ref:f};return s!==!1&&(v[s]=g(s)),E.useEffect(()=>{if(s!==!1){const m=mo(s),y=rt(a.current),$=()=>{i.current=!0};return y.addEventListener(m,d),y.addEventListener("touchmove",$),()=>{y.removeEventListener(m,d),y.removeEventListener("touchmove",$)}}},[d,s]),o!==!1&&(v[o]=g(o)),E.useEffect(()=>{if(o!==!1){const m=mo(o),y=rt(a.current);return y.addEventListener(m,d),()=>{y.removeEventListener(m,d)}}},[d,o]),z.jsx(E.Fragment,{children:E.cloneElement(t,v)})}var Me="top",Ve="bottom",Fe="right",Te="left",mn="auto",Kt=[Me,Ve,Fe,Te],$t="start",Vt="end",zi="clippingParents",sa="viewport",Mt="popper",Vi="reference",go=Kt.reduce(function(e,t){return e.concat([t+"-"+$t,t+"-"+Vt])},[]),la=[].concat(Kt,[mn]).reduce(function(e,t){return e.concat([t,t+"-"+$t,t+"-"+Vt])},[]),Fi="beforeRead",Ui="read",Gi="afterRead",Yi="beforeMain",Xi="main",Zi="afterMain",Ki="beforeWrite",Ji="write",Qi="afterWrite",es=[Fi,Ui,Gi,Yi,Xi,Zi,Ki,Ji,Qi];function Ze(e){return e?(e.nodeName||"").toLowerCase():null}function qe(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ht(e){var t=qe(e).Element;return e instanceof t||e instanceof Element}function ze(e){var t=qe(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function gn(e){if(typeof ShadowRoot>"u")return!1;var t=qe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ts(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},n=t.attributes[r]||{},s=t.elements[r];!ze(s)||!Ze(s)||(Object.assign(s.style,o),Object.keys(n).forEach(function(i){var a=n[i];a===!1?s.removeAttribute(i):s.setAttribute(i,a===!0?"":a)}))})}function rs(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var n=t.elements[o],s=t.attributes[o]||{},i=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),a=i.reduce(function(l,c){return l[c]="",l},{});!ze(n)||!Ze(n)||(Object.assign(n.style,a),Object.keys(s).forEach(function(l){n.removeAttribute(l)}))})}}const ns={name:"applyStyles",enabled:!0,phase:"write",fn:ts,effect:rs,requires:["computeStyles"]};function Xe(e){return e.split("-")[0]}var vt=Math.max,fr=Math.min,Rt=Math.round;function cn(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ua(){return!/^((?!chrome|android).)*safari/i.test(cn())}function kt(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),n=1,s=1;t&&ze(e)&&(n=e.offsetWidth>0&&Rt(o.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Rt(o.height)/e.offsetHeight||1);var i=ht(e)?qe(e):window,a=i.visualViewport,l=!ua()&&r,c=(o.left+(l&&a?a.offsetLeft:0))/n,f=(o.top+(l&&a?a.offsetTop:0))/s,d=o.width/n,g=o.height/s;return{width:d,height:g,top:f,right:c+d,bottom:f+g,left:c,x:c,y:f}}function yn(e){var t=kt(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function ca(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&gn(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function nt(e){return qe(e).getComputedStyle(e)}function os(e){return["table","td","th"].indexOf(Ze(e))>=0}function ut(e){return((ht(e)?e.ownerDocument:e.document)||window.document).documentElement}function yr(e){return Ze(e)==="html"?e:e.assignedSlot||e.parentNode||(gn(e)?e.host:null)||ut(e)}function yo(e){return!ze(e)||nt(e).position==="fixed"?null:e.offsetParent}function as(e){var t=/firefox/i.test(cn()),r=/Trident/i.test(cn());if(r&&ze(e)){var o=nt(e);if(o.position==="fixed")return null}var n=yr(e);for(gn(n)&&(n=n.host);ze(n)&&["html","body"].indexOf(Ze(n))<0;){var s=nt(n);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return n;n=n.parentNode}return null}function Jt(e){for(var t=qe(e),r=yo(e);r&&os(r)&&nt(r).position==="static";)r=yo(r);return r&&(Ze(r)==="html"||Ze(r)==="body"&&nt(r).position==="static")?t:r||as(e)||t}function bn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Wt(e,t,r){return vt(e,fr(t,r))}function is(e,t,r){var o=Wt(e,t,r);return o>r?r:o}function fa(){return{top:0,right:0,bottom:0,left:0}}function pa(e){return Object.assign({},fa(),e)}function da(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var ss=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,pa(typeof t!="number"?t:da(t,Kt))};function ls(e){var t,r=e.state,o=e.name,n=e.options,s=r.elements.arrow,i=r.modifiersData.popperOffsets,a=Xe(r.placement),l=bn(a),c=[Te,Fe].indexOf(a)>=0,f=c?"height":"width";if(!(!s||!i)){var d=ss(n.padding,r),g=yn(s),v=l==="y"?Me:Te,m=l==="y"?Ve:Fe,y=r.rects.reference[f]+r.rects.reference[l]-i[l]-r.rects.popper[f],$=i[l]-r.rects.reference[l],C=Jt(s),x=C?l==="y"?C.clientHeight||0:C.clientWidth||0:0,S=y/2-$/2,O=d[v],P=x-g[f]-d[m],B=x/2-g[f]/2+S,T=Wt(O,B,P),I=l;r.modifiersData[o]=(t={},t[I]=T,t.centerOffset=T-B,t)}}function us(e){var t=e.state,r=e.options,o=r.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||ca(t.elements.popper,n)&&(t.elements.arrow=n))}const cs={name:"arrow",enabled:!0,phase:"main",fn:ls,effect:us,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ct(e){return e.split("-")[1]}var fs={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ps(e,t){var r=e.x,o=e.y,n=t.devicePixelRatio||1;return{x:Rt(r*n)/n||0,y:Rt(o*n)/n||0}}function bo(e){var t,r=e.popper,o=e.popperRect,n=e.placement,s=e.variation,i=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,d=e.isFixed,g=i.x,v=g===void 0?0:g,m=i.y,y=m===void 0?0:m,$=typeof f=="function"?f({x:v,y}):{x:v,y};v=$.x,y=$.y;var C=i.hasOwnProperty("x"),x=i.hasOwnProperty("y"),S=Te,O=Me,P=window;if(c){var B=Jt(r),T="clientHeight",I="clientWidth";if(B===qe(r)&&(B=ut(r),nt(B).position!=="static"&&a==="absolute"&&(T="scrollHeight",I="scrollWidth")),B=B,n===Me||(n===Te||n===Fe)&&s===Vt){O=Ve;var R=d&&B===P&&P.visualViewport?P.visualViewport.height:B[T];y-=R-o.height,y*=l?1:-1}if(n===Te||(n===Me||n===Ve)&&s===Vt){S=Fe;var A=d&&B===P&&P.visualViewport?P.visualViewport.width:B[I];v-=A-o.width,v*=l?1:-1}}var W=Object.assign({position:a},c&&fs),F=f===!0?ps({x:v,y},qe(r)):{x:v,y};if(v=F.x,y=F.y,l){var q;return Object.assign({},W,(q={},q[O]=x?"0":"",q[S]=C?"0":"",q.transform=(P.devicePixelRatio||1)<=1?"translate("+v+"px, "+y+"px)":"translate3d("+v+"px, "+y+"px, 0)",q))}return Object.assign({},W,(t={},t[O]=x?y+"px":"",t[S]=C?v+"px":"",t.transform="",t))}function ds(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=o===void 0?!0:o,s=r.adaptive,i=s===void 0?!0:s,a=r.roundOffsets,l=a===void 0?!0:a,c={placement:Xe(t.placement),variation:Ct(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,bo(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,bo(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const vs={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ds,data:{}};var nr={passive:!0};function hs(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,s=n===void 0?!0:n,i=o.resize,a=i===void 0?!0:i,l=qe(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(f){f.addEventListener("scroll",r.update,nr)}),a&&l.addEventListener("resize",r.update,nr),function(){s&&c.forEach(function(f){f.removeEventListener("scroll",r.update,nr)}),a&&l.removeEventListener("resize",r.update,nr)}}const ms={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:hs,data:{}};var gs={left:"right",right:"left",bottom:"top",top:"bottom"};function cr(e){return e.replace(/left|right|bottom|top/g,function(t){return gs[t]})}var ys={start:"end",end:"start"};function xo(e){return e.replace(/start|end/g,function(t){return ys[t]})}function xn(e){var t=qe(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function Sn(e){return kt(ut(e)).left+xn(e).scrollLeft}function bs(e,t){var r=qe(e),o=ut(e),n=r.visualViewport,s=o.clientWidth,i=o.clientHeight,a=0,l=0;if(n){s=n.width,i=n.height;var c=ua();(c||!c&&t==="fixed")&&(a=n.offsetLeft,l=n.offsetTop)}return{width:s,height:i,x:a+Sn(e),y:l}}function xs(e){var t,r=ut(e),o=xn(e),n=(t=e.ownerDocument)==null?void 0:t.body,s=vt(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),i=vt(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-o.scrollLeft+Sn(e),l=-o.scrollTop;return nt(n||r).direction==="rtl"&&(a+=vt(r.clientWidth,n?n.clientWidth:0)-s),{width:s,height:i,x:a,y:l}}function wn(e){var t=nt(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function va(e){return["html","body","#document"].indexOf(Ze(e))>=0?e.ownerDocument.body:ze(e)&&wn(e)?e:va(yr(e))}function Nt(e,t){var r;t===void 0&&(t=[]);var o=va(e),n=o===((r=e.ownerDocument)==null?void 0:r.body),s=qe(o),i=n?[s].concat(s.visualViewport||[],wn(o)?o:[]):o,a=t.concat(i);return n?a:a.concat(Nt(yr(i)))}function fn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ss(e,t){var r=kt(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function So(e,t,r){return t===sa?fn(bs(e,r)):ht(t)?Ss(t,r):fn(xs(ut(e)))}function ws(e){var t=Nt(yr(e)),r=["absolute","fixed"].indexOf(nt(e).position)>=0,o=r&&ze(e)?Jt(e):e;return ht(o)?t.filter(function(n){return ht(n)&&ca(n,o)&&Ze(n)!=="body"}):[]}function Os(e,t,r,o){var n=t==="clippingParents"?ws(e):[].concat(t),s=[].concat(n,[r]),i=s[0],a=s.reduce(function(l,c){var f=So(e,c,o);return l.top=vt(f.top,l.top),l.right=fr(f.right,l.right),l.bottom=fr(f.bottom,l.bottom),l.left=vt(f.left,l.left),l},So(e,i,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ha(e){var t=e.reference,r=e.element,o=e.placement,n=o?Xe(o):null,s=o?Ct(o):null,i=t.x+t.width/2-r.width/2,a=t.y+t.height/2-r.height/2,l;switch(n){case Me:l={x:i,y:t.y-r.height};break;case Ve:l={x:i,y:t.y+t.height};break;case Fe:l={x:t.x+t.width,y:a};break;case Te:l={x:t.x-r.width,y:a};break;default:l={x:t.x,y:t.y}}var c=n?bn(n):null;if(c!=null){var f=c==="y"?"height":"width";switch(s){case $t:l[c]=l[c]-(t[f]/2-r[f]/2);break;case Vt:l[c]=l[c]+(t[f]/2-r[f]/2);break}}return l}function Ft(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=o===void 0?e.placement:o,s=r.strategy,i=s===void 0?e.strategy:s,a=r.boundary,l=a===void 0?zi:a,c=r.rootBoundary,f=c===void 0?sa:c,d=r.elementContext,g=d===void 0?Mt:d,v=r.altBoundary,m=v===void 0?!1:v,y=r.padding,$=y===void 0?0:y,C=pa(typeof $!="number"?$:da($,Kt)),x=g===Mt?Vi:Mt,S=e.rects.popper,O=e.elements[m?x:g],P=Os(ht(O)?O:O.contextElement||ut(e.elements.popper),l,f,i),B=kt(e.elements.reference),T=ha({reference:B,element:S,placement:n}),I=fn(Object.assign({},S,T)),R=g===Mt?I:B,A={top:P.top-R.top+C.top,bottom:R.bottom-P.bottom+C.bottom,left:P.left-R.left+C.left,right:R.right-P.right+C.right},W=e.modifiersData.offset;if(g===Mt&&W){var F=W[n];Object.keys(A).forEach(function(q){var ie=[Fe,Ve].indexOf(q)>=0?1:-1,Z=[Me,Ve].indexOf(q)>=0?"y":"x";A[q]+=F[Z]*ie})}return A}function Ps(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=r.boundary,s=r.rootBoundary,i=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?la:l,f=Ct(o),d=f?a?go:go.filter(function(m){return Ct(m)===f}):Kt,g=d.filter(function(m){return c.indexOf(m)>=0});g.length===0&&(g=d);var v=g.reduce(function(m,y){return m[y]=Ft(e,{placement:y,boundary:n,rootBoundary:s,padding:i})[Xe(y)],m},{});return Object.keys(v).sort(function(m,y){return v[m]-v[y]})}function $s(e){if(Xe(e)===mn)return[];var t=cr(e);return[xo(e),t,xo(t)]}function Rs(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var n=r.mainAxis,s=n===void 0?!0:n,i=r.altAxis,a=i===void 0?!0:i,l=r.fallbackPlacements,c=r.padding,f=r.boundary,d=r.rootBoundary,g=r.altBoundary,v=r.flipVariations,m=v===void 0?!0:v,y=r.allowedAutoPlacements,$=t.options.placement,C=Xe($),x=C===$,S=l||(x||!m?[cr($)]:$s($)),O=[$].concat(S).reduce(function(h,w){return h.concat(Xe(w)===mn?Ps(t,{placement:w,boundary:f,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:y}):w)},[]),P=t.rects.reference,B=t.rects.popper,T=new Map,I=!0,R=O[0],A=0;A<O.length;A++){var W=O[A],F=Xe(W),q=Ct(W)===$t,ie=[Me,Ve].indexOf(F)>=0,Z=ie?"width":"height",oe=Ft(t,{placement:W,boundary:f,rootBoundary:d,altBoundary:g,padding:c}),U=ie?q?Fe:Te:q?Ve:Me;P[Z]>B[Z]&&(U=cr(U));var ce=cr(U),ue=[];if(s&&ue.push(oe[F]<=0),a&&ue.push(oe[U]<=0,oe[ce]<=0),ue.every(function(h){return h})){R=W,I=!1;break}T.set(W,ue)}if(I)for(var Ce=m?3:1,Ee=function(w){var _=O.find(function(L){var D=T.get(L);if(D)return D.slice(0,w).every(function(ne){return ne})});if(_)return R=_,"break"},Se=Ce;Se>0;Se--){var ge=Ee(Se);if(ge==="break")break}t.placement!==R&&(t.modifiersData[o]._skip=!0,t.placement=R,t.reset=!0)}}const ks={name:"flip",enabled:!0,phase:"main",fn:Rs,requiresIfExists:["offset"],data:{_skip:!1}};function wo(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Oo(e){return[Me,Fe,Ve,Te].some(function(t){return e[t]>=0})}function Cs(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,s=t.modifiersData.preventOverflow,i=Ft(t,{elementContext:"reference"}),a=Ft(t,{altBoundary:!0}),l=wo(i,o),c=wo(a,n,s),f=Oo(l),d=Oo(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":d})}const Es={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Cs};function Is(e,t,r){var o=Xe(e),n=[Te,Me].indexOf(o)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=s[0],a=s[1];return i=i||0,a=(a||0)*n,[Te,Fe].indexOf(o)>=0?{x:a,y:i}:{x:i,y:a}}function Bs(e){var t=e.state,r=e.options,o=e.name,n=r.offset,s=n===void 0?[0,0]:n,i=la.reduce(function(f,d){return f[d]=Is(d,t.rects,s),f},{}),a=i[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=i}const As={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Bs};function Ms(e){var t=e.state,r=e.name;t.modifiersData[r]=ha({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Ts={name:"popperOffsets",enabled:!0,phase:"read",fn:Ms,data:{}};function Ls(e){return e==="x"?"y":"x"}function Ds(e){var t=e.state,r=e.options,o=e.name,n=r.mainAxis,s=n===void 0?!0:n,i=r.altAxis,a=i===void 0?!1:i,l=r.boundary,c=r.rootBoundary,f=r.altBoundary,d=r.padding,g=r.tether,v=g===void 0?!0:g,m=r.tetherOffset,y=m===void 0?0:m,$=Ft(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:f}),C=Xe(t.placement),x=Ct(t.placement),S=!x,O=bn(C),P=Ls(O),B=t.modifiersData.popperOffsets,T=t.rects.reference,I=t.rects.popper,R=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,A=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),W=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(B){if(s){var q,ie=O==="y"?Me:Te,Z=O==="y"?Ve:Fe,oe=O==="y"?"height":"width",U=B[O],ce=U+$[ie],ue=U-$[Z],Ce=v?-I[oe]/2:0,Ee=x===$t?T[oe]:I[oe],Se=x===$t?-I[oe]:-T[oe],ge=t.elements.arrow,h=v&&ge?yn(ge):{width:0,height:0},w=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:fa(),_=w[ie],L=w[Z],D=Wt(0,T[oe],h[oe]),ne=S?T[oe]/2-Ce-D-_-A.mainAxis:Ee-D-_-A.mainAxis,ee=S?-T[oe]/2+Ce+D+L+A.mainAxis:Se+D+L+A.mainAxis,J=t.elements.arrow&&Jt(t.elements.arrow),N=J?O==="y"?J.clientTop||0:J.clientLeft||0:0,Y=(q=W==null?void 0:W[O])!=null?q:0,te=U+ne-Y-N,X=U+ee-Y,he=Wt(v?fr(ce,te):ce,U,v?vt(ue,X):ue);B[O]=he,F[O]=he-U}if(a){var pe,fe=O==="x"?Me:Te,_e=O==="x"?Ve:Fe,ae=B[P],ye=P==="y"?"height":"width",Le=ae+$[fe],De=ae-$[_e],Ie=[Me,Te].indexOf(C)!==-1,We=(pe=W==null?void 0:W[P])!=null?pe:0,we=Ie?Le:ae-T[ye]-I[ye]-We+A.altAxis,Oe=Ie?ae+T[ye]+I[ye]-We-A.altAxis:De,b=v&&Ie?is(we,ae,Oe):Wt(v?we:Le,ae,v?Oe:De);B[P]=b,F[P]=b-ae}t.modifiersData[o]=F}}const js={name:"preventOverflow",enabled:!0,phase:"main",fn:Ds,requiresIfExists:["offset"]};function qs(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function _s(e){return e===qe(e)||!ze(e)?xn(e):qs(e)}function Ws(e){var t=e.getBoundingClientRect(),r=Rt(t.width)/e.offsetWidth||1,o=Rt(t.height)/e.offsetHeight||1;return r!==1||o!==1}function Ns(e,t,r){r===void 0&&(r=!1);var o=ze(t),n=ze(t)&&Ws(t),s=ut(t),i=kt(e,n,r),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!r)&&((Ze(t)!=="body"||wn(s))&&(a=_s(t)),ze(t)?(l=kt(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Sn(s))),{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function Hs(e){var t=new Map,r=new Set,o=[];e.forEach(function(s){t.set(s.name,s)});function n(s){r.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(a){if(!r.has(a)){var l=t.get(a);l&&n(l)}}),o.push(s)}return e.forEach(function(s){r.has(s.name)||n(s)}),o}function zs(e){var t=Hs(e);return es.reduce(function(r,o){return r.concat(t.filter(function(n){return n.phase===o}))},[])}function Vs(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Fs(e){var t=e.reduce(function(r,o){var n=r[o.name];return r[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var Po={placement:"bottom",modifiers:[],strategy:"absolute"};function $o(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function Us(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,o=r===void 0?[]:r,n=t.defaultOptions,s=n===void 0?Po:n;return function(a,l,c){c===void 0&&(c=s);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},Po,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],g=!1,v={state:f,setOptions:function(C){var x=typeof C=="function"?C(f.options):C;y(),f.options=Object.assign({},s,f.options,x),f.scrollParents={reference:ht(a)?Nt(a):a.contextElement?Nt(a.contextElement):[],popper:Nt(l)};var S=zs(Fs([].concat(o,f.options.modifiers)));return f.orderedModifiers=S.filter(function(O){return O.enabled}),m(),v.update()},forceUpdate:function(){if(!g){var C=f.elements,x=C.reference,S=C.popper;if($o(x,S)){f.rects={reference:Ns(x,Jt(S),f.options.strategy==="fixed"),popper:yn(S)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(A){return f.modifiersData[A.name]=Object.assign({},A.data)});for(var O=0;O<f.orderedModifiers.length;O++){if(f.reset===!0){f.reset=!1,O=-1;continue}var P=f.orderedModifiers[O],B=P.fn,T=P.options,I=T===void 0?{}:T,R=P.name;typeof B=="function"&&(f=B({state:f,options:I,name:R,instance:v})||f)}}}},update:Vs(function(){return new Promise(function($){v.forceUpdate(),$(f)})}),destroy:function(){y(),g=!0}};if(!$o(a,l))return v;v.setOptions(c).then(function($){!g&&c.onFirstUpdate&&c.onFirstUpdate($)});function m(){f.orderedModifiers.forEach(function($){var C=$.name,x=$.options,S=x===void 0?{}:x,O=$.effect;if(typeof O=="function"){var P=O({state:f,name:C,instance:v,options:S}),B=function(){};d.push(P||B)}})}function y(){d.forEach(function($){return $()}),d=[]}return v}}var Gs=[ms,Ts,vs,ns,As,ks,js,cs,Es],Ys=Us({defaultModifiers:Gs});const Xs="Popper";function Zs(e){return Wi(Xs,e)}const Ks=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Js=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Qs(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function pn(e){return typeof e=="function"?e():e}function el(e){return e.nodeType!==void 0}const tl=()=>hr({root:["root"]},ji(Zs)),rl={},nl=E.forwardRef(function(t,r){var o;const{anchorEl:n,children:s,direction:i,disablePortal:a,modifiers:l,open:c,placement:f,popperOptions:d,popperRef:g,slotProps:v={},slots:m={},TransitionProps:y}=t,$=Et(t,Ks),C=E.useRef(null),x=zt(C,r),S=E.useRef(null),O=zt(S,g),P=E.useRef(O);un(()=>{P.current=O},[O]),E.useImperativeHandle(g,()=>S.current,[]);const B=Qs(f,i),[T,I]=E.useState(B),[R,A]=E.useState(pn(n));E.useEffect(()=>{S.current&&S.current.forceUpdate()}),E.useEffect(()=>{n&&A(pn(n))},[n]),un(()=>{if(!R||!c)return;const Z=ce=>{I(ce.placement)};let oe=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:ce})=>{Z(ce)}}];l!=null&&(oe=oe.concat(l)),d&&d.modifiers!=null&&(oe=oe.concat(d.modifiers));const U=Ys(R,C.current,j({placement:B},d,{modifiers:oe}));return P.current(U),()=>{U.destroy(),P.current(null)}},[R,a,l,c,d,B]);const W={placement:T};y!==null&&(W.TransitionProps=y);const F=tl(),q=(o=m.root)!=null?o:"div",ie=tt({elementType:q,externalSlotProps:v.root,externalForwardedProps:$,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:F.root});return z.jsx(q,j({},ie,{children:typeof s=="function"?s(W):s}))}),ol=E.forwardRef(function(t,r){const{anchorEl:o,children:n,container:s,direction:i="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:f,placement:d="bottom",popperOptions:g=rl,popperRef:v,style:m,transition:y=!1,slotProps:$={},slots:C={}}=t,x=Et(t,Js),[S,O]=E.useState(!0),P=()=>{O(!1)},B=()=>{O(!0)};if(!l&&!f&&(!y||S))return null;let T;if(s)T=s;else if(o){const A=pn(o);T=A&&el(A)?rt(A).body:rt(null).body}const I=!f&&l&&(!y||S)?"none":void 0,R=y?{in:f,onEnter:P,onExited:B}:void 0;return z.jsx(Va,{disablePortal:a,container:T,children:z.jsx(nl,j({anchorEl:o,direction:i,disablePortal:a,modifiers:c,ref:r,open:y?!S:f,placement:d,popperOptions:g,popperRef:v,slotProps:$,slots:C},x,{style:j({position:"fixed",top:0,left:0,display:I},m),TransitionProps:R,children:n}))})}),al=2;function ma(e,t){return e-t}function Ro(e,t){var r;const{index:o}=(r=e.reduce((n,s,i)=>{const a=Math.abs(t-s);return n===null||a<n.distance||a===n.distance?{distance:a,index:i}:n},null))!=null?r:{};return o}function or(e,t){if(t.current!==void 0&&e.changedTouches){const r=e;for(let o=0;o<r.changedTouches.length;o+=1){const n=r.changedTouches[o];if(n.identifier===t.current)return{x:n.clientX,y:n.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function pr(e,t,r){return(e-t)*100/(r-t)}function il(e,t,r){return(r-t)*e+t}function sl(e){if(Math.abs(e)<1){const r=e.toExponential().split("e-"),o=r[0].split(".")[1];return(o?o.length:0)+parseInt(r[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function ll(e,t,r){const o=Math.round((e-r)/t)*t+r;return Number(o.toFixed(sl(t)))}function ko({values:e,newValue:t,index:r}){const o=e.slice();return o[r]=t,o.sort(ma)}function ar({sliderRef:e,activeIndex:t,setActive:r}){var o,n;const s=rt(e.current);if(!((o=e.current)!=null&&o.contains(s.activeElement))||Number(s==null||(n=s.activeElement)==null?void 0:n.getAttribute("data-index"))!==t){var i;(i=e.current)==null||i.querySelector(`[type="range"][data-index="${t}"]`).focus()}r&&r(t)}function ir(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?Ti(e,t):!1}const ul={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},cl=e=>e;let sr;function Co(){return sr===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?sr=CSS.supports("touch-action","none"):sr=!0),sr}function fl(e){const{"aria-labelledby":t,defaultValue:r,disabled:o=!1,disableSwap:n=!1,isRtl:s=!1,marks:i=!1,max:a=100,min:l=0,name:c,onChange:f,onChangeCommitted:d,orientation:g="horizontal",rootRef:v,scale:m=cl,step:y=1,shiftStep:$=10,tabIndex:C,value:x}=e,S=E.useRef(),[O,P]=E.useState(-1),[B,T]=E.useState(-1),[I,R]=E.useState(!1),A=E.useRef(0),[W,F]=_a({controlled:x,default:r??l,name:"Slider"}),q=f&&((b,k,M)=>{const Q=b.nativeEvent||b,re=new Q.constructor(Q.type,Q);Object.defineProperty(re,"target",{writable:!0,value:{value:k,name:c}}),f(re,k,M)}),ie=Array.isArray(W);let Z=ie?W.slice().sort(ma):[W];Z=Z.map(b=>b==null?l:Bt(b,l,a));const oe=i===!0&&y!==null?[...Array(Math.floor((a-l)/y)+1)].map((b,k)=>({value:l+y*k})):i||[],U=oe.map(b=>b.value),{isFocusVisibleRef:ce,onBlur:ue,onFocus:Ce,ref:Ee}=Wa(),[Se,ge]=E.useState(-1),h=E.useRef(),w=zt(Ee,h),_=zt(v,w),L=b=>k=>{var M;const Q=Number(k.currentTarget.getAttribute("data-index"));Ce(k),ce.current===!0&&ge(Q),T(Q),b==null||(M=b.onFocus)==null||M.call(b,k)},D=b=>k=>{var M;ue(k),ce.current===!1&&ge(-1),T(-1),b==null||(M=b.onBlur)==null||M.call(b,k)},ne=(b,k)=>{const M=Number(b.currentTarget.getAttribute("data-index")),Q=Z[M],re=U.indexOf(Q);let K=k;if(oe&&y==null){const Pe=U[U.length-1];K>Pe?K=Pe:K<U[0]?K=U[0]:K=K<Q?U[re-1]:U[re+1]}if(K=Bt(K,l,a),ie){n&&(K=Bt(K,Z[M-1]||-1/0,Z[M+1]||1/0));const Pe=K;K=ko({values:Z,newValue:K,index:M});let $e=M;n||($e=K.indexOf(Pe)),ar({sliderRef:h,activeIndex:$e})}F(K),ge(M),q&&!ir(K,W)&&q(b,K,M),d&&d(b,K)},ee=b=>k=>{var M;if(y!==null){const Q=Number(k.currentTarget.getAttribute("data-index")),re=Z[Q];let K=null;(k.key==="ArrowLeft"||k.key==="ArrowDown")&&k.shiftKey||k.key==="PageDown"?K=Math.max(re-$,l):((k.key==="ArrowRight"||k.key==="ArrowUp")&&k.shiftKey||k.key==="PageUp")&&(K=Math.min(re+$,a)),K!==null&&(ne(k,K),k.preventDefault())}b==null||(M=b.onKeyDown)==null||M.call(b,k)};un(()=>{if(o&&h.current.contains(document.activeElement)){var b;(b=document.activeElement)==null||b.blur()}},[o]),o&&O!==-1&&P(-1),o&&Se!==-1&&ge(-1);const J=b=>k=>{var M;(M=b.onChange)==null||M.call(b,k),ne(k,k.target.valueAsNumber)},N=E.useRef();let Y=g;s&&g==="horizontal"&&(Y+="-reverse");const te=({finger:b,move:k=!1})=>{const{current:M}=h,{width:Q,height:re,bottom:K,left:Pe}=M.getBoundingClientRect();let $e;Y.indexOf("vertical")===0?$e=(K-b.y)/re:$e=(b.x-Pe)/Q,Y.indexOf("-reverse")!==-1&&($e=1-$e);let u;if(u=il($e,l,a),y)u=ll(u,y,l);else{const G=Ro(U,u);u=U[G]}u=Bt(u,l,a);let p=0;if(ie){k?p=N.current:p=Ro(Z,u),n&&(u=Bt(u,Z[p-1]||-1/0,Z[p+1]||1/0));const G=u;u=ko({values:Z,newValue:u,index:p}),n&&k||(p=u.indexOf(G),N.current=p)}return{newValue:u,activeIndex:p}},X=lr(b=>{const k=or(b,S);if(!k)return;if(A.current+=1,b.type==="mousemove"&&b.buttons===0){he(b);return}const{newValue:M,activeIndex:Q}=te({finger:k,move:!0});ar({sliderRef:h,activeIndex:Q,setActive:P}),F(M),!I&&A.current>al&&R(!0),q&&!ir(M,W)&&q(b,M,Q)}),he=lr(b=>{const k=or(b,S);if(R(!1),!k)return;const{newValue:M}=te({finger:k,move:!0});P(-1),b.type==="touchend"&&T(-1),d&&d(b,M),S.current=void 0,fe()}),pe=lr(b=>{if(o)return;Co()||b.preventDefault();const k=b.changedTouches[0];k!=null&&(S.current=k.identifier);const M=or(b,S);if(M!==!1){const{newValue:re,activeIndex:K}=te({finger:M});ar({sliderRef:h,activeIndex:K,setActive:P}),F(re),q&&!ir(re,W)&&q(b,re,K)}A.current=0;const Q=rt(h.current);Q.addEventListener("touchmove",X,{passive:!0}),Q.addEventListener("touchend",he,{passive:!0})}),fe=E.useCallback(()=>{const b=rt(h.current);b.removeEventListener("mousemove",X),b.removeEventListener("mouseup",he),b.removeEventListener("touchmove",X),b.removeEventListener("touchend",he)},[he,X]);E.useEffect(()=>{const{current:b}=h;return b.addEventListener("touchstart",pe,{passive:Co()}),()=>{b.removeEventListener("touchstart",pe),fe()}},[fe,pe]),E.useEffect(()=>{o&&fe()},[o,fe]);const _e=b=>k=>{var M;if((M=b.onMouseDown)==null||M.call(b,k),o||k.defaultPrevented||k.button!==0)return;k.preventDefault();const Q=or(k,S);if(Q!==!1){const{newValue:K,activeIndex:Pe}=te({finger:Q});ar({sliderRef:h,activeIndex:Pe,setActive:P}),F(K),q&&!ir(K,W)&&q(k,K,Pe)}A.current=0;const re=rt(h.current);re.addEventListener("mousemove",X,{passive:!0}),re.addEventListener("mouseup",he)},ae=pr(ie?Z[0]:l,l,a),ye=pr(Z[Z.length-1],l,a)-ae,Le=(b={})=>{const k=Sr(b),M={onMouseDown:_e(k||{})},Q=j({},k,M);return j({},b,{ref:_},Q)},De=b=>k=>{var M;(M=b.onMouseOver)==null||M.call(b,k);const Q=Number(k.currentTarget.getAttribute("data-index"));T(Q)},Ie=b=>k=>{var M;(M=b.onMouseLeave)==null||M.call(b,k),T(-1)};return{active:O,axis:Y,axisProps:ul,dragging:I,focusedThumbIndex:Se,getHiddenInputProps:(b={})=>{var k;const M=Sr(b),Q={onChange:J(M||{}),onFocus:L(M||{}),onBlur:D(M||{}),onKeyDown:ee(M||{})},re=j({},M,Q);return j({tabIndex:C,"aria-labelledby":t,"aria-orientation":g,"aria-valuemax":m(a),"aria-valuemin":m(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(k=e.step)!=null?k:void 0,disabled:o},b,re,{style:j({},Mi,{direction:s?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Le,getThumbProps:(b={})=>{const k=Sr(b),M={onMouseOver:De(k||{}),onMouseLeave:Ie(k||{})};return j({},b,k,M)},marks:oe,open:B,range:ie,rootRef:_,trackLeap:ye,trackOffset:ae,values:Z,getThumbStyle:b=>({pointerEvents:O!==-1&&O!==b?"none":void 0})}}var Tt={},Eo;function pl(){if(Eo)return Tt;Eo=1,Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.default=void 0;var e=o(Pa()),t=qa;function r(i){if(typeof WeakMap!="function")return null;var a=new WeakMap,l=new WeakMap;return(r=function(c){return c?l:a})(i)}function o(i,a){if(i&&i.__esModule)return i;if(i===null||typeof i!="object"&&typeof i!="function")return{default:i};var l=r(a);if(l&&l.has(i))return l.get(i);var c={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in i)if(d!=="default"&&Object.prototype.hasOwnProperty.call(i,d)){var g=f?Object.getOwnPropertyDescriptor(i,d):null;g&&(g.get||g.set)?Object.defineProperty(c,d,g):c[d]=i[d]}return c.default=i,l&&l.set(i,c),c}function n(i){return Object.keys(i).length===0}function s(i=null){const a=e.useContext(t.ThemeContext);return!a||n(a)?i:a}return Tt.default=s,Tt}var dl=pl();const vl=mt(dl),hl=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],ml=Ge(ol,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gl=E.forwardRef(function(t,r){var o;const n=vl(),s=mr({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:l,componentsProps:c,container:f,disablePortal:d,keepMounted:g,modifiers:v,open:m,placement:y,popperOptions:$,popperRef:C,transition:x,slots:S,slotProps:O}=s,P=Et(s,hl),B=(o=S==null?void 0:S.root)!=null?o:l==null?void 0:l.Root,T=j({anchorEl:i,container:f,disablePortal:d,keepMounted:g,modifiers:v,open:m,placement:y,popperOptions:$,popperRef:C,transition:x},P);return z.jsx(ml,j({as:a,direction:n==null?void 0:n.direction,slots:{root:B},slotProps:O??c},T,{ref:r}))});function yl(e){return zo("MuiButtonGroup",e)}const ke=Vo("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),bl=["children","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"],xl=(e,t)=>{const{ownerState:r}=e;return[{[`& .${ke.grouped}`]:t.grouped},{[`& .${ke.grouped}`]:t[`grouped${me(r.orientation)}`]},{[`& .${ke.grouped}`]:t[`grouped${me(r.variant)}`]},{[`& .${ke.grouped}`]:t[`grouped${me(r.variant)}${me(r.orientation)}`]},{[`& .${ke.grouped}`]:t[`grouped${me(r.variant)}${me(r.color)}`]},{[`& .${ke.firstButton}`]:t.firstButton},{[`& .${ke.lastButton}`]:t.lastButton},{[`& .${ke.middleButton}`]:t.middleButton},t.root,t[r.variant],r.disableElevation===!0&&t.disableElevation,r.fullWidth&&t.fullWidth,r.orientation==="vertical"&&t.vertical]},Sl=e=>{const{classes:t,color:r,disabled:o,disableElevation:n,fullWidth:s,orientation:i,variant:a}=e,l={root:["root",a,i==="vertical"&&"vertical",s&&"fullWidth",n&&"disableElevation"],grouped:["grouped",`grouped${me(i)}`,`grouped${me(a)}`,`grouped${me(a)}${me(i)}`,`grouped${me(a)}${me(r)}`,o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return hr(l,yl,t)},wl=Ge("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:xl})(({theme:e,ownerState:t})=>j({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[2]},t.disableElevation&&{boxShadow:"none"},t.fullWidth&&{width:"100%"},t.orientation==="vertical"&&{flexDirection:"column"},{[`& .${ke.grouped}`]:j({minWidth:40,"&:hover":j({},t.variant==="contained"&&{boxShadow:"none"})},t.variant==="contained"&&{boxShadow:"none"}),[`& .${ke.firstButton},& .${ke.middleButton}`]:j({},t.orientation==="horizontal"&&{borderTopRightRadius:0,borderBottomRightRadius:0},t.orientation==="vertical"&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},t.variant==="text"&&t.orientation==="horizontal"&&{borderRight:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${ke.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}},t.variant==="text"&&t.orientation==="vertical"&&{borderBottom:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${ke.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}},t.variant==="text"&&t.color!=="inherit"&&{borderColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:st.alpha(e.palette[t.color].main,.5)},t.variant==="outlined"&&t.orientation==="horizontal"&&{borderRightColor:"transparent"},t.variant==="outlined"&&t.orientation==="vertical"&&{borderBottomColor:"transparent"},t.variant==="contained"&&t.orientation==="horizontal"&&{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${ke.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}},t.variant==="contained"&&t.orientation==="vertical"&&{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${ke.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}},t.variant==="contained"&&t.color!=="inherit"&&{borderColor:(e.vars||e).palette[t.color].dark},{"&:hover":j({},t.variant==="outlined"&&t.orientation==="horizontal"&&{borderRightColor:"currentColor"},t.variant==="outlined"&&t.orientation==="vertical"&&{borderBottomColor:"currentColor"})}),[`& .${ke.lastButton},& .${ke.middleButton}`]:j({},t.orientation==="horizontal"&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t.orientation==="vertical"&&{borderTopRightRadius:0,borderTopLeftRadius:0},t.variant==="outlined"&&t.orientation==="horizontal"&&{marginLeft:-1},t.variant==="outlined"&&t.orientation==="vertical"&&{marginTop:-1})})),Ol=E.forwardRef(function(t,r){const o=mr({props:t,name:"MuiButtonGroup"}),{children:n,className:s,color:i="primary",component:a="div",disabled:l=!1,disableElevation:c=!1,disableFocusRipple:f=!1,disableRipple:d=!1,fullWidth:g=!1,orientation:v="horizontal",size:m="medium",variant:y="outlined"}=o,$=Et(o,bl),C=j({},o,{color:i,component:a,disabled:l,disableElevation:c,disableFocusRipple:f,disableRipple:d,fullWidth:g,orientation:v,size:m,variant:y}),x=Sl(C),S=E.useMemo(()=>({className:x.grouped,color:i,disabled:l,disableElevation:c,disableFocusRipple:f,disableRipple:d,fullWidth:g,size:m,variant:y}),[i,l,c,f,d,g,m,y,x.grouped]),O=Ai(n),P=O.length,B=T=>{const I=T===0,R=T===P-1;return I&&R?"":I?x.firstButton:R?x.lastButton:x.middleButton};return z.jsx(wl,j({as:a,role:"group",className:lt(x.root,s),ref:r,ownerState:C},$,{children:z.jsx(Na.Provider,{value:S,children:O.map((T,I)=>z.jsx(Ha.Provider,{value:B(I),children:T},I))})}))}),Pl=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],$l=e=>{const{absolute:t,children:r,classes:o,flexItem:n,light:s,orientation:i,textAlign:a,variant:l}=e;return hr({root:["root",t&&"absolute",l,s&&"light",i==="vertical"&&"vertical",n&&"flexItem",r&&"withChildren",r&&i==="vertical"&&"withChildrenVertical",a==="right"&&i!=="vertical"&&"textAlignRight",a==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},Fa,o)},Rl=Ge("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>j({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:st.alpha(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>j({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>j({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>j({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>j({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),kl=Ge("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>j({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),ga=E.forwardRef(function(t,r){const o=mr({props:t,name:"MuiDivider"}),{absolute:n=!1,children:s,className:i,component:a=s?"div":"hr",flexItem:l=!1,light:c=!1,orientation:f="horizontal",role:d=a!=="hr"?"separator":void 0,textAlign:g="center",variant:v="fullWidth"}=o,m=Et(o,Pl),y=j({},o,{absolute:n,component:a,flexItem:l,light:c,orientation:f,role:d,textAlign:g,variant:v}),$=$l(y);return z.jsx(Rl,j({as:a,className:lt($.root,i),role:d,ref:r,ownerState:y},m,{children:s?z.jsx(kl,{className:$.wrapper,ownerState:y,children:s}):null}))});ga.muiSkipListHighlight=!0;const Cl=e=>!e||!ur(e);function El(e){return zo("MuiSlider",e)}const He=Vo("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Il=e=>{const{open:t}=e;return{offset:lt(t&&He.valueLabelOpen),circle:He.valueLabelCircle,label:He.valueLabelLabel}};function Bl(e){const{children:t,className:r,value:o}=e,n=Il(e);return t?E.cloneElement(t,{className:lt(t.props.className)},z.jsxs(E.Fragment,{children:[t.props.children,z.jsx("span",{className:lt(n.offset,r),"aria-hidden":!0,children:z.jsx("span",{className:n.circle,children:z.jsx("span",{className:n.label,children:o})})})]})):null}const Al=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Io(e){return e}const Ml=Ge("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${me(r.color)}`],r.size!=="medium"&&t[`size${me(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${He.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${He.dragging}`]:{[`& .${He.thumb}, & .${He.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var o;return((o=e.vars)!=null?o:e).palette[r].main}).map(r=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),Tl=Ge("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),Ll=Ge("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var o;return((o=e.vars)!=null?o:e).palette[r].main}).map(r=>({props:{color:r,track:"inverted"},style:j({},e.vars?{backgroundColor:e.vars.palette.Slider[`${r}Track`],borderColor:e.vars.palette.Slider[`${r}Track`]}:j({backgroundColor:st.lighten(e.palette[r].main,.62),borderColor:st.lighten(e.palette[r].main,.62)},e.applyStyles("dark",{backgroundColor:st.darken(e.palette[r].main,.5)}),e.applyStyles("dark",{borderColor:st.darken(e.palette[r].main,.5)})))}))]}}),Dl=Ge("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${me(r.color)}`],r.size!=="medium"&&t[`thumbSize${me(r.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${He.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var o;return((o=e.vars)!=null?o:e).palette[r].main}).map(r=>({props:{color:r},style:{[`&:hover, &.${He.focusVisible}`]:j({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${st.alpha(e.palette[r].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${He.active}`]:j({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${st.alpha(e.palette[r].main,.16)}`})}}))]}}),jl=Ge(Bl,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>j({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${He.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${He.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),ql=Ge("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Fo(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),_l=Ge("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Fo(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>j({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),Wl=e=>{const{disabled:t,dragging:r,marked:o,orientation:n,track:s,classes:i,color:a,size:l}=e,c={root:["root",t&&"disabled",r&&"dragging",o&&"marked",n==="vertical"&&"vertical",s==="inverted"&&"trackInverted",s===!1&&"trackFalse",a&&`color${me(a)}`,l&&`size${me(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${me(l)}`,a&&`thumbColor${me(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return hr(c,El,i)},Nl=({children:e})=>e,Hl=E.forwardRef(function(t,r){var o,n,s,i,a,l,c,f,d,g,v,m,y,$,C,x,S,O,P,B,T,I,R,A;const W=mr({props:t,name:"MuiSlider"}),F=Ua(),{"aria-label":q,"aria-valuetext":ie,"aria-labelledby":Z,component:oe="span",components:U={},componentsProps:ce={},color:ue="primary",classes:Ce,className:Ee,disableSwap:Se=!1,disabled:ge=!1,getAriaLabel:h,getAriaValueText:w,marks:_=!1,max:L=100,min:D=0,orientation:ne="horizontal",shiftStep:ee=10,size:J="medium",step:N=1,scale:Y=Io,slotProps:te,slots:X,track:he="normal",valueLabelDisplay:pe="off",valueLabelFormat:fe=Io}=W,_e=Et(W,Al),ae=j({},W,{isRtl:F,max:L,min:D,classes:Ce,disabled:ge,disableSwap:Se,orientation:ne,marks:_,color:ue,size:J,step:N,shiftStep:ee,scale:Y,track:he,valueLabelDisplay:pe,valueLabelFormat:fe}),{axisProps:ye,getRootProps:Le,getHiddenInputProps:De,getThumbProps:Ie,open:We,active:we,axis:Oe,focusedThumbIndex:b,range:k,dragging:M,marks:Q,values:re,trackOffset:K,trackLeap:Pe,getThumbStyle:$e}=fl(j({},ae,{rootRef:r}));ae.marked=Q.length>0&&Q.some(de=>de.label),ae.dragging=M,ae.focusedThumbIndex=b;const u=Wl(ae),p=(o=(n=X==null?void 0:X.root)!=null?n:U.Root)!=null?o:Ml,G=(s=(i=X==null?void 0:X.rail)!=null?i:U.Rail)!=null?s:Tl,se=(a=(l=X==null?void 0:X.track)!=null?l:U.Track)!=null?a:Ll,le=(c=(f=X==null?void 0:X.thumb)!=null?f:U.Thumb)!=null?c:Dl,V=(d=(g=X==null?void 0:X.valueLabel)!=null?g:U.ValueLabel)!=null?d:jl,Be=(v=(m=X==null?void 0:X.mark)!=null?m:U.Mark)!=null?v:ql,je=(y=($=X==null?void 0:X.markLabel)!=null?$:U.MarkLabel)!=null?y:_l,be=(C=(x=X==null?void 0:X.input)!=null?x:U.Input)!=null?C:"input",Ae=(S=te==null?void 0:te.root)!=null?S:ce.root,ct=(O=te==null?void 0:te.rail)!=null?O:ce.rail,Ne=(P=te==null?void 0:te.track)!=null?P:ce.track,Re=(B=te==null?void 0:te.thumb)!=null?B:ce.thumb,ot=(T=te==null?void 0:te.valueLabel)!=null?T:ce.valueLabel,xt=(I=te==null?void 0:te.mark)!=null?I:ce.mark,St=(R=te==null?void 0:te.markLabel)!=null?R:ce.markLabel,Je=(A=te==null?void 0:te.input)!=null?A:ce.input,ft=tt({elementType:p,getSlotProps:Le,externalSlotProps:Ae,externalForwardedProps:_e,additionalProps:j({},Cl(p)&&{as:oe}),ownerState:j({},ae,Ae==null?void 0:Ae.ownerState),className:[u.root,Ee]}),at=tt({elementType:G,externalSlotProps:ct,ownerState:ae,className:u.rail}),pt=tt({elementType:se,externalSlotProps:Ne,additionalProps:{style:j({},ye[Oe].offset(K),ye[Oe].leap(Pe))},ownerState:j({},ae,Ne==null?void 0:Ne.ownerState),className:u.track}),Qe=tt({elementType:le,getSlotProps:Ie,externalSlotProps:Re,ownerState:j({},ae,Re==null?void 0:Re.ownerState),className:u.thumb}),wt=tt({elementType:V,externalSlotProps:ot,ownerState:j({},ae,ot==null?void 0:ot.ownerState),className:u.valueLabel}),it=tt({elementType:Be,externalSlotProps:xt,ownerState:ae,className:u.mark}),et=tt({elementType:je,externalSlotProps:St,ownerState:ae,className:u.markLabel}),Ot=tt({elementType:be,getSlotProps:De,externalSlotProps:Je,ownerState:ae});return z.jsxs(p,j({},ft,{children:[z.jsx(G,j({},at)),z.jsx(se,j({},pt)),Q.filter(de=>de.value>=D&&de.value<=L).map((de,ve)=>{const dt=pr(de.value,D,L),Ye=ye[Oe].offset(dt);let xe;return he===!1?xe=re.indexOf(de.value)!==-1:xe=he==="normal"&&(k?de.value>=re[0]&&de.value<=re[re.length-1]:de.value<=re[0])||he==="inverted"&&(k?de.value<=re[0]||de.value>=re[re.length-1]:de.value>=re[0]),z.jsxs(E.Fragment,{children:[z.jsx(Be,j({"data-index":ve},it,!ur(Be)&&{markActive:xe},{style:j({},Ye,it.style),className:lt(it.className,xe&&u.markActive)})),de.label!=null?z.jsx(je,j({"aria-hidden":!0,"data-index":ve},et,!ur(je)&&{markLabelActive:xe},{style:j({},Ye,et.style),className:lt(u.markLabel,et.className,xe&&u.markLabelActive),children:de.label})):null]},ve)}),re.map((de,ve)=>{const dt=pr(de,D,L),Ye=ye[Oe].offset(dt),xe=pe==="off"?Nl:V;return z.jsx(xe,j({},!ur(xe)&&{valueLabelFormat:fe,valueLabelDisplay:pe,value:typeof fe=="function"?fe(Y(de),ve):fe,index:ve,open:We===ve||we===ve||pe==="on",disabled:ge},wt,{children:z.jsx(le,j({"data-index":ve},Qe,{className:lt(u.thumb,Qe.className,we===ve&&u.active,b===ve&&u.focusVisible),style:j({},Ye,$e(ve),Qe.style),children:z.jsx(be,j({"data-index":ve,"aria-label":h?h(ve):q,"aria-valuenow":Y(de),"aria-labelledby":Z,"aria-valuetext":w?w(Y(de),ve):ie,value:re[ve]},Ot))}))}),ve)})]}))});var Lt={},Bo;function zl(){if(Bo)return Lt;Bo=1;var e=Xt();Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.default=void 0;var t=e(Zt()),r=Gt();return Lt.default=(0,t.default)((0,r.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),Lt}var Vl=zl();const Fl=mt(Vl);var Dt={},Ao;function Ul(){if(Ao)return Dt;Ao=1;var e=Xt();Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.default=void 0;var t=e(Zt()),r=Gt();return Dt.default=(0,t.default)((0,r.jsx)("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp"),Dt}var Gl=Ul();const Yl=mt(Gl),Xl=Ke(za)(({theme:e})=>({gap:e.spacing(1)})),Zl=Ke(ga)(({theme:e})=>({height:"calc(100% + 8px)",marginTop:e.spacing(-.5),borderColor:e.palette.common.white})),Kl=Ke(Ga)(({placement:e})=>({transformOrigin:e==="bottom"?"center top":"center bottom"})),$u=({wearablePreviewId:e,className:t,wearablePreviewController:r,selectedAnimation:o,onSelectAnimation:n,renderAnimationSelector:s})=>{const{controllerRef:i,isReady:a}=dn(e,r),[l,c]=E.useState(!1),f=E.useRef(null),[d,g]=E.useState(void 0),[v,m]=E.useState(0);E.useEffect(()=>{if(!d||!o)return;const x=d.findIndex(S=>S.title===o.title);m(x>=0?x:0)},[d,o]),E.useEffect(()=>{!a||!i.current||d!==void 0||Promise.all([i.current.emote.getSocialEmoteAnimations(),i.current.emote.getPlayingSocialEmoteAnimation()]).then(([x,S])=>{if(g(x),S){n==null||n(S);const O=(x==null?void 0:x.findIndex(P=>P.title===S.title))??-1;m(O>=0?O:0)}}).catch(x=>{console.error("Error checking social emote:",x),g(null)})},[d,a,i,n]);const y=E.useCallback((x,S)=>{c(!1),m(S),d!=null&&d[S]&&(n==null||n(d[S]))},[d,n]),$=E.useCallback(()=>{c(x=>!x)},[]),C=E.useCallback(x=>{var S;(S=f.current)!=null&&S.contains(x.target)||c(!1)},[]);return!d||d.length===0?null:s&&n?s({socialEmoteAnimations:d,selectedAnimation:o??d[0],onSelectAnimation:n}):z.jsxs(E.Fragment,{children:[z.jsx(Ol,{className:t,variant:"contained",ref:f,"aria-label":"Button group with a nested menu",children:z.jsxs(Xl,{size:"small","aria-controls":l?"split-button-menu":void 0,"aria-expanded":l?"true":void 0,"aria-label":"select merge strategy","aria-haspopup":"menu",onClick:$,children:[d[v].title,z.jsx(Zl,{orientation:"vertical",flexItem:!0}),l?z.jsx(Yl,{}):z.jsx(Fl,{})]})}),z.jsx(gl,{open:l,anchorEl:f.current,role:void 0,transition:!0,disablePortal:!0,className:`${t}__popper`,children:({TransitionProps:x,placement:S})=>z.jsx(Kl,{...x,placement:S,children:z.jsx(Ya,{children:z.jsx(Hi,{onClickAway:C,children:z.jsx(Xa,{id:"split-button-menu",autoFocusItem:!0,children:d.map((O,P)=>z.jsx(Za,{selected:P===v,onClick:B=>y(B,P),children:O.title},O.title))})})})})})]})};var jt={},Mo;function Jl(){if(Mo)return jt;Mo=1;var e=Xt();Object.defineProperty(jt,"__esModule",{value:!0}),jt.default=void 0;var t=e(Zt()),r=Gt();return jt.default=(0,t.default)((0,r.jsx)("path",{d:"M16 17.01V10h-2v7.01h-3L15 21l4-3.99zM9 3 5 6.99h3V14h2V6.99h3z"}),"SwapVert"),jt}var Ql=Jl();const eu=mt(Ql);var Ht;(function(e){e.TOP="top",e.BOTTOM="bottom",e.CENTER="center"})(Ht||(Ht={}));var Ut;(function(e){e.LEFT="left",e.RIGHT="right"})(Ut||(Ut={}));const tu=Ke(vn)(({horizontalPosition:e=Ht.CENTER,verticalPosition:t=Ut.RIGHT})=>({position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",...e===Ht.TOP?{justifyContent:"flex-start"}:e===Ht.BOTTOM?{justifyContent:"flex-end"}:{justifyContent:"center"},...t===Ut.RIGHT?{justifyContent:"flex-end"}:{justifyContent:"flex-start"},pointerEvents:"none","& > *":{pointerEvents:"auto"}})),ru=Ke(vn)({display:"flex",alignItems:"center",flexDirection:"column"}),nu=Ke(vn)({display:"flex",alignItems:"center",color:"#736e7d"}),ou=Ke(Hl)(({theme:e})=>({height:256,color:"#736e7d","& .MuiSlider-rail":{width:2,opacity:1,backgroundColor:"#000000",paddingBottom:e.spacing(4)},"& .MuiSlider-track":{width:2,border:"none",backgroundColor:"#000000"},"& .MuiSlider-thumb":{height:32,width:8,borderRadius:4,backgroundColor:"#736e7d",translate:"0px 16px",boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.16), inset 0px 1px 0px rgba(255, 255, 255, 0.16)","&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.16), inset 0px 1px 0px rgba(255, 255, 255, 0.16)"},"&::before":{display:"none"}}})),Ru=({wearablePreviewId:e,vertical:t,className:r,verticalPosition:o=Ut.RIGHT,wearablePreviewController:n})=>{const{controllerRef:s}=dn(e,n),i=E.useCallback((a,l)=>{var f;const c=Array.isArray(l)?l[0]:l;(f=s.current)==null||f.scene.panCamera({y:c*-1})},[s]);return z.jsx(tu,{className:r,verticalPosition:o,children:t?z.jsxs(ru,{children:[z.jsx(nu,{children:z.jsx(eu,{})}),z.jsx(ou,{orientation:"vertical",defaultValue:0,step:.1,min:-2,max:2,onChange:i})]}):null})};var qt={},To;function au(){if(To)return qt;To=1;var e=Xt();Object.defineProperty(qt,"__esModule",{value:!0}),qt.default=void 0;var t=e(Zt()),r=Gt();return qt.default=(0,t.default)((0,r.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),qt}var iu=au();const su=mt(iu);var _t={},Lo;function lu(){if(Lo)return _t;Lo=1;var e=Xt();Object.defineProperty(_t,"__esModule",{value:!0}),_t.default=void 0;var t=e(Zt()),r=Gt();return _t.default=(0,t.default)((0,r.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove"),_t}var uu=lu();const cu=mt(uu);var dr;(function(e){e.LEFT="left",e.RIGHT="right"})(dr||(dr={}));const fu=Ke("div")(({position:e})=>({display:"flex",flexDirection:"column",position:"absolute",top:"12px",...e===dr.LEFT?{left:"12px"}:{right:"12px"}})),Do=Ke(Ra)({width:"32px",height:"32px",minWidth:"unset",padding:0,backgroundColor:"rgba(0, 0, 0, 0.64) !important",borderRadius:0,display:"flex",justifyContent:"center",alignItems:"center","&:hover":{transform:"none"},"& i.icon":{margin:"0 !important"}}),pu=.1,ku=({wearablePreviewId:e,className:t,position:r=dr.LEFT,wearablePreviewController:o,zoomDelta:n=pu})=>{const{controllerRef:s}=dn(e,o),i=E.useCallback(async()=>{var l;await((l=s.current)==null?void 0:l.scene.changeZoom(n))},[n,s]),a=E.useCallback(async()=>{var l;await((l=s.current)==null?void 0:l.scene.changeZoom(-n))},[n,s]);return z.jsxs(fu,{className:t,position:r,children:[z.jsx(Do,{className:"ZoomIn",onClick:i,children:z.jsx(su,{})}),z.jsx(Do,{className:"ZoomOut",onClick:a,children:z.jsx(cu,{})})]})};export{$u as AnimationControls,Iu as EmoteControls,Ru as TranslationControls,Bi as WearablePreview,ku as ZoomControls,dn as useWearablePreviewController};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as f,b as l,a as ee}from"./lit-element-B3y9oplH.js";import{n as c,o as w,r as u,a as Ii}from"./class-map-CxwNmq0D.js";import{d as v,r as _,e as W}from"./index-
|
|
1
|
+
import{i as f,b as l,a as ee}from"./lit-element-B3y9oplH.js";import{n as c,o as w,r as u,a as Ii}from"./class-map-CxwNmq0D.js";import{d as v,r as _,e as W}from"./index-BseAcDfV.js";import{c as p,U as F}from"./index-Bo34Cx12.js";import"./index-P5U8LYs6.js";import"./index-C1RysQbA.js";import"./index-emGKKyxf.js";import{O as m,C as d,L as Ee,q as E,b as y,M as P,E as C,t as me,o as b,R as h,d as D,S as A,k as x,l as ze,W as Fe,ak as Xt,aj as he,a3 as J,a1 as qi,z as I,am as tt,A as _i,F as Ki,D as Gi,y as Xi,T as ft,V as Yt,X as Qt,a9 as Yi,ao as Qi,Z as Bt,ap as Ji}from"./W3MFrameProviderSingleton-HtGM3kiI.js";import"./index-BdBYQDrP.js";import{W as Ls,a as js}from"./index-BqIdYoG8.js";import"./index-Dm67LTtv.js";import"./index-LDSpzB15.js";import"./index-DwQ4pw8v.js";import{au as S}from"./NetworkUtil-Ddexw9-U.js";import{H as Jt}from"./HelpersUtil-zGctDzqI.js";import{n as Zi}from"./index-DrcFvB51.js";import{E as Q}from"./ExchangeController-CtvD9TxU.js";import"./index-BZIVWDQd.js";import"./index-CDAYsxA6.js";import"./index-BRyy9_FL.js";import{M as mt}from"./MathUtil-BGCe3rZ3.js";import"./index-Dav5KOrd.js";import{e as Zt,n as ei}from"./ref-BsAZ42-h.js";import"./index-FrZezou7.js";import"./index-D-VYD1II.js";import"./index-BEzzzIlC.js";import"./index-BUaGOTLN.js";import{O as bt}from"./index-DJCTaNyE.js";import{e as en}from"./index-DVQRwKte.js";import"./index-CDOPdFEN.js";import"./index-CWHR1ZBn.js";import{N as tn}from"./NavigationUtil-DmfK5sOV.js";import"./index-BexyLNIk.js";import"./index-Dmfk0azd.js";import"./react-Vu6nbGi5.js";import"./ethers-DHDSyreX.js";import"./index-DXfwhNfH.js";import"./index-CyDCPwX2.js";import"./index-CdfeQ7YK.js";import"./index-nibyPLVP.js";import"./index-BKg37Q5D.js";import"./index.es-C2X55s9j.js";import"./browser-ponyfill-rND5WOqr.js";import"./ConstantsUtil-DrWe0yob.js";import"./async-directive-BRxn_Py3.js";import"./browser-DHYOtFa8.js";const nn=v`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
}
|