@dcl/shop 0.1.0-29820315471.commit-e34db25 → 0.1.0-29842546509.commit-9321ed0
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-DQ46urVV.js → AnimatedBackground-CpD4azi2.js} +3 -3
- package/assets/{Assets-5wZu90xj.js → Assets-D3UQqWYv.js} +1 -1
- package/assets/Cart-BTzfi4XX.js +3 -0
- package/assets/{CircularProgress-CfcEerVP.js → CircularProgress-Diq42zDa.js} +4 -4
- package/assets/{Collection-Bi7w1GKJ.js → Collection-C1gray1q.js} +6 -6
- package/assets/{CollectionCarousel-Bu8qPKKJ.js → CollectionCarousel-Su-Z1nF7.js} +1 -1
- package/assets/{Creator-B13Gi9z4.js → Creator-Caa3VNPC.js} +1 -1
- package/assets/{CssVarsProvider-CvtfLfCd.js → CssVarsProvider-9L72NL5y.js} +3 -3
- package/assets/{ExchangeController-B9D_7PXu.js → ExchangeController-Dx4qeF41.js} +1 -1
- package/assets/GetCredits-DX1eiFT9.js +1 -0
- package/assets/{HelpersUtil-CNtn9Kzj.js → HelpersUtil-CVaHX5I0.js} +1 -1
- package/assets/{ImportListings-hNp1sEuT.js → ImportListings-BKMbUHyp.js} +2 -2
- package/assets/ItemDetail-Bbh8gvnt.js +48 -0
- package/assets/{LoadMore-CwKrPv19.js → LoadMore-O4DX_7vg.js} +1 -1
- package/assets/{MarketCheckout-D-VQDb7F.js → MarketCheckout-rUkLpvLK.js} +1 -1
- package/assets/MyAssets-CQHv1izk.js +7 -0
- package/assets/{MyFavorites-CdAcz-wK.js → MyFavorites-DzooEDTl.js} +1 -1
- package/assets/{MyPurchases-Bw8Lb-63.js → MyPurchases-CHvG_Z0u.js} +1 -1
- package/assets/{NotFound-C3wbCG4q.js → NotFound-Cm2xdnvh.js} +1 -1
- package/assets/PrimaryListModal-CQLHGKtA.js +1 -0
- package/assets/{StoreSettings-BhJ4tKkZ.js → StoreSettings-CaOtAVWs.js} +5 -5
- package/assets/{Success-CiXoIPVr.js → Success-hmqx-31C.js} +2 -2
- package/assets/{SwapController-53Vi_fXW.js → SwapController-BoTtiWz_.js} +1 -1
- package/assets/{TradeService-C8gY38rG.js → TradeService-wOOx4LfF.js} +1 -1
- package/assets/{W3MFrameProviderSingleton-CaYG210l.js → W3MFrameProviderSingleton-DdXvw0GT.js} +3 -3
- package/assets/{WebCryptoP256-DtgFm5FB.js → WebCryptoP256-DplJpmWw.js} +1 -1
- package/assets/{basic-Ch9NQwrH.js → basic-gyOPqk-z.js} +1 -1
- package/assets/{biconomy-TNDCvsRI.js → biconomy-UVLr_gX2.js} +1 -1
- package/assets/{buy-BPkraJ17.js → buy-B1dela3y.js} +1 -1
- package/assets/{buy-gasless-uVyAhlxN.js → buy-gasless-Dd7g2EOb.js} +1 -1
- package/assets/{cart-checkout-Co7t_k8J.js → cart-checkout-BGyVbAnU.js} +1 -1
- package/assets/{categories-pY-U0UXm.js → categories-DGAkVv39.js} +1 -1
- package/assets/{ccip-BAHa2VFa.js → ccip-B5H9PYgE.js} +1 -1
- package/assets/{ccip-scmwpqQC.js → ccip-BwyWY-5W.js} +1 -1
- package/assets/collection-Dj0UO6A8.js +1 -0
- package/assets/{controller-DGvMtERc.js → controller-CNvp38sW.js} +2 -2
- package/assets/{core-DflkIDmd.js → core-BuTmfnDO.js} +4 -4
- package/assets/{custom-DclbkPm_.js → custom-AzDnARiB.js} +1 -1
- package/assets/{data-capture-D7FmI-WY.js → data-capture-CSfFUSsx.js} +1 -1
- package/assets/{decimals-B34hEReu.js → decimals-9VC5prnp.js} +1 -1
- package/assets/{decimals-Cd90iC1A.js → decimals-CgBMbKmx.js} +1 -1
- package/assets/{detectExtension-BCqIz4gv.js → detectExtension-BqOd3Bu-.js} +1 -1
- package/assets/{email-B6HsCs0u.js → email-C9i0Gajg.js} +1 -1
- package/assets/{embedded-wallet-cye2mSzK.js → embedded-wallet-BEHagNmA.js} +1 -1
- package/assets/emotion-styled.browser.esm-qnTJSlwi.js +1 -0
- package/assets/{engine-CMumcr4T.js → engine-Dju27jhc.js} +1 -1
- package/assets/{errors-qUwGIanA.js → errors-UirjYlqN.js} +1 -1
- package/assets/{estimate-l1-fee-DebL8v3Z.js → estimate-l1-fee-CXA-7fQg.js} +1 -1
- package/assets/{eth_estimateGas-2pKUTcbV.js → eth_estimateGas-Bp7rqFOP.js} +1 -1
- package/assets/{eth_getStorageAt-CFTZVftG.js → eth_getStorageAt-D5eoja8P.js} +1 -1
- package/assets/{eth_getTransactionCount-39Gh8JUo.js → eth_getTransactionCount-C7wA7Kya.js} +1 -1
- package/assets/{extractIPFS-PVH2EVQE.js → extractIPFS-CZ6KIYgU.js} +1 -1
- package/assets/{features-D9Taji2F.js → features-CUQxBKNG.js} +1 -1
- package/assets/{fetchTokenMetadata-DM2B3NZz.js → fetchTokenMetadata-BFnxXbAd.js} +2 -2
- package/assets/{get-ecosystem-wallet-info-kEbf8Llc.js → get-ecosystem-wallet-info-DClE6CNQ.js} +1 -1
- package/assets/{getBalance-B4GGi_h8.js → getBalance-BW2tkFwm.js} +1 -1
- package/assets/{getInstalledModules-W39oQBw8.js → getInstalledModules-BjCN5fY7.js} +1 -1
- package/assets/{getNFT-COMLY0k-.js → getNFT-A8I7QU7c.js} +1 -1
- package/assets/{getNFT-_ore7rdY.js → getNFT-CQBhplyk.js} +2 -2
- package/assets/{getOverlayAlpha-BX66SxOu.js → getOverlayAlpha-BbisUv6F.js} +1 -1
- package/assets/{hashTypedData-CxL0SEsX.js → hashTypedData-BE61kXBX.js} +1 -1
- package/assets/{hashTypedData-C9Vn70Lp.js → hashTypedData-C-cd52UI.js} +1 -1
- package/assets/{import-C7kEB_S5.js → import-U21zX42V.js} +1 -1
- package/assets/{in-app-wallet-calls-Dv5D-qmW.js → in-app-wallet-calls-COdrbaQd.js} +1 -1
- package/assets/{index--KLajle8.js → index-2Ps9ND5D.js} +1 -1
- package/assets/{index-CobH2y5K.js → index-3ywnJvSO.js} +1 -1
- package/assets/{index-C-PXxORu.js → index-B7_ZTJgS.js} +1 -1
- package/assets/{index-sBxcn5Yg.js → index-BDSBJHh0.js} +1 -1
- package/assets/{index-BhokrOsa.js → index-BG7HXbm5.js} +1 -1
- package/assets/{index-BZ2A41zN.js → index-BJTKQhV8.js} +1 -1
- package/assets/{index-CTJrkNxC.js → index-BLlP71ei.js} +1 -1
- package/assets/{index-CUImhRoy.js → index-BRZU29EO.js} +1 -1
- package/assets/{index-D1hhOo8i.js → index-BTpn82ck.js} +1 -1
- package/assets/{index-txCoS8XJ.js → index-BXoEX0LF.js} +1 -1
- package/assets/{index-BPURGbOI.js → index-B_DYNK0p.js} +2 -2
- package/assets/{index-3j2VRNSj.js → index-BbwpVs44.js} +2 -2
- package/assets/{index-BtOJu30H.js → index-Bi7A4OhJ.js} +1 -1
- package/assets/{index-DTSgeQ5D.js → index-BtWBj6Af.js} +1 -1
- package/assets/{index-VhulZp0_.js → index-C3-7Y2XQ.js} +1 -1
- package/assets/{index-boL29_Yj.js → index-C89kko53.js} +1 -1
- package/assets/{index-xAQNqr4T.js → index-C8MsuiTF.js} +1 -1
- package/assets/{index-DEN3gLrI.js → index-CC63Imtj.js} +1 -1
- package/assets/{index-CigjJrdx.js → index-CIPOyWcz.js} +1 -1
- package/assets/{index-B6A_pOmU.js → index-CKLx84x6.js} +1 -1
- package/assets/{index-CcSs3xun.js → index-CNHeMoTf.js} +1 -1
- package/assets/{index-Dc1jVnMf.js → index-CaFo6MNc.js} +3 -3
- package/assets/{index-CFcehHl6.js → index-Cay9LHwQ.js} +1 -1
- package/assets/{index-W7cyhQOk.js → index-Chyha2y1.js} +1 -1
- package/assets/{index-CzWl3qk_.js → index-CjRIGcVo.js} +1 -1
- package/assets/{index-BznxuYKb.js → index-D-5bkeWr.js} +1 -1
- package/assets/{index-CkezkMvS.js → index-D0OG--76.js} +2 -2
- package/assets/{index-CcFuTBt3.js → index-D1y_7SUl.js} +1 -1
- package/assets/{index-BHvu7he_.js → index-D2Btfj2f.js} +1 -1
- package/assets/{index-Tvwwbs5L.js → index-DG6FVhAC.js} +1 -1
- package/assets/{index-DuRVCvRc.js → index-DGJ-icG_.js} +1 -1
- package/assets/{index-I594L5Wd.js → index-DOYkzg8s.js} +1 -1
- package/assets/{index-BbQ0ahsR.css → index-DPHDecnV.css} +1 -1
- package/assets/{index-BoB0Y302.js → index-DXF8dQf_.js} +1 -1
- package/assets/{index-DpRVy6UQ.js → index-DZf65m6Q.js} +1 -1
- package/assets/{index-Bbub8cs6.js → index-D_6r6MGN.js} +3 -3
- package/assets/{index-BdsoQlUk.js → index-DabupnD7.js} +1 -1
- package/assets/{index-CF-ZZ_LW.js → index-Dc-FCzcP.js} +1 -1
- package/assets/index-DdKkZ1Lj.js +2 -0
- package/assets/{index-DXDtFVPs.js → index-Ddx_rMxr.js} +1 -1
- package/assets/{index-BB3seE1H.js → index-DiGdTf_a.js} +1 -1
- package/assets/index-DkLziN-4.js +231 -0
- package/assets/{index-BXG5dCKJ.js → index-Do2ywXf0.js} +1 -1
- package/assets/{index-nyWvMhrR.js → index-DsoFUpzH.js} +1 -1
- package/assets/{index-DbYRql_-.js → index-DtQvODFY.js} +1 -1
- package/assets/{index-DCPsmlPD.js → index-Dy9UEH5H.js} +1 -1
- package/assets/{index-BvjAr8nY.js → index-IlKjOw66.js} +1 -1
- package/assets/{index-BNabonCc.js → index-NPFJH5aq.js} +1 -1
- package/assets/{index-D5DA5XrX.js → index-WBH-r8wY.js} +1 -1
- package/assets/{index-D9VTjnkt.js → index-e6S5D9jo.js} +1 -1
- package/assets/{index-BmTc8K12.js → index-nTpCUsGR.js} +1 -1
- package/assets/{index-B1ztebBZ.js → index-nV78it5W.js} +1 -1
- package/assets/{index.es-CX7mxtcH.js → index.es-B5BbUoZc.js} +4 -4
- package/assets/{index.es-Dzc3VMLo.js → index.es-D5_DLam3.js} +1 -1
- package/assets/{index.es-DHRIRbEx.js → index.es-DDq0aq8p.js} +1 -1
- package/assets/{localBatchGatewayRequest-DPQULVCl.js → localBatchGatewayRequest-DVWvmWuO.js} +1 -1
- package/assets/{mana-rate-BWFOkvpC.js → mana-rate-CqkveB3D.js} +1 -1
- package/assets/{networks-h2z6LNz5.js → networks-BjHHyPur.js} +1 -1
- package/assets/{onramp-DkkFwfD-.js → onramp-kPzdQpfb.js} +1 -1
- package/assets/{openzeppelin-Dt8oZ76u.js → openzeppelin-DOJ727PR.js} +1 -1
- package/assets/{ownerOf-D61ptJju.js → ownerOf-D69S8pXi.js} +1 -1
- package/assets/{parseNft-DF9_xc-W.js → parseNft-C4n-mowD.js} +2 -2
- package/assets/{parseSignature-BGy6ebQm.js → parseSignature-BRZuUR8w.js} +1 -1
- package/assets/{parseSignature-CoN-flwV.js → parseSignature-CaalnObB.js} +3 -3
- package/assets/{pay-with-exchange-CrvAas-k.js → pay-with-exchange-D80avj-b.js} +1 -1
- package/assets/{qr-overlay-_AYDDd2P.js → qr-overlay-DVT08IDB.js} +1 -1
- package/assets/{receive-BikF2OCK.js → receive-M4IPM7Ph.js} +1 -1
- package/assets/{resolveImplementation-CyERb8Bt.js → resolveImplementation-CHCmpxV2.js} +1 -1
- package/assets/{rpc-Bj2mehcE.js → rpc-uK2Otrei.js} +1 -1
- package/assets/{secp256k1-4S_gx5U_.js → secp256k1-BFONvueK.js} +1 -1
- package/assets/{secp256k1-BwiABSKe.js → secp256k1-D8fIl0aD.js} +1 -1
- package/assets/{secp256k1-BlXhQE61.js → secp256k1-DgpvP6R0.js} +1 -1
- package/assets/{send-batch-transaction-NCJfUQmg.js → send-batch-transaction-CP35fkqm.js} +1 -1
- package/assets/{send-eip712-transaction-DyB2yZtW.js → send-eip712-transaction-DLMBp-3H.js} +2 -2
- package/assets/{send-gasless-transaction-DxbiAsWR.js → send-gasless-transaction-BtVD4DN5.js} +2 -2
- package/assets/{send-B7leZ2sF.js → send-w4Ix8n56.js} +1 -1
- package/assets/{sendRawTransaction-CXnui5Km.js → sendRawTransaction-2KWo-N-V.js} +3 -3
- package/assets/{serializeTransaction-BA8Lx_h7.js → serializeTransaction-9HR-LrYr.js} +1 -1
- package/assets/{session-proposal-ZPunDXaI.js → session-proposal-CkaGCSrv.js} +1 -1
- package/assets/{session-request-D_b2ouvA.js → session-request-Cn_2Y-jY.js} +2 -2
- package/assets/{sha256-D2Fo41ck.js → sha256-BKPxKApM.js} +1 -1
- package/assets/{signing-CP2v_dlr.js → signing-2kjDw3zV.js} +4 -4
- package/assets/{socials-xqF7U9Yn.js → socials-CVEMspCh.js} +1 -1
- package/assets/{swaps-B3ujQJZz.js → swaps-BPGThNG4.js} +1 -1
- package/assets/{thirdweb-B7ea2PEt.js → thirdweb-C0S5kfOA.js} +3 -3
- package/assets/{totalSupply-D22_m4j2.js → totalSupply-DHPUJmNP.js} +1 -1
- package/assets/{trade-encoding-cvcruSuW.js → trade-encoding-j_wZd1-j.js} +1 -1
- package/assets/{transactionReceipt-9wnHZrRL.js → transactionReceipt-Dlb-aH3i.js} +1 -1
- package/assets/{transactions-Nu8-9WNT.js → transactions-DkgyEJFa.js} +1 -1
- package/assets/useCreditPacks-CZrPuU50.js +1 -0
- package/assets/{useInfiniteGrid-ClIfwXAY.js → useInfiniteGrid-CpjNJcvu.js} +1 -1
- package/assets/{useStore-BPgnQXlK.js → useStore-BiFpmikY.js} +1 -1
- package/assets/useTheme-CUKi-fkK.js +1 -0
- package/assets/{useTheme-HWLX9NSW.js → useTheme-Dfa-fM20.js} +1 -1
- package/assets/{verifyHash-DMHtO2BR.js → verifyHash-ioGoqswc.js} +1 -1
- package/assets/{w3m-modal-Cx_nmtny.js → w3m-modal-BAKNrM0t.js} +1 -1
- package/assets/{w3m-modal-wqk18fis.js → w3m-modal-CLpZJeQd.js} +1 -1
- package/assets/{wait-for-tx-receipt-BPkFazzP.js → wait-for-tx-receipt-lYEZMs5k.js} +1 -1
- package/assets/{wallets-CmM_4Vm-.js → wallets-CtOsy9m8.js} +6 -6
- package/assets/{web-connector-B01y8d6Z.js → web-connector-m174MKL_.js} +3 -3
- package/assets/{writeContract-BTRFLrl9.js → writeContract-DPWAZqQk.js} +1 -1
- package/assets/{zoraTestnet-Bq4RAmQw.js → zoraTestnet-BejTHMIV.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/assets/Cart-DDgcOTzw.js +0 -3
- package/assets/GetCredits-C3rj35ez.js +0 -1
- package/assets/ItemDetail-BqrPvIRT.js +0 -29
- package/assets/MyAssets-CzmZ_l10.js +0 -7
- package/assets/collection-BdgBOuhz.js +0 -1
- package/assets/emotion-styled.browser.esm-B-hzcBrK.js +0 -1
- package/assets/index-d4x-ttpO.js +0 -231
- package/assets/index-vqW6dFQp.js +0 -2
- package/assets/payments-DEbBixXM.js +0 -1
- package/assets/useTheme-BwxUDr5G.js +0 -1
package/assets/index-d4x-ttpO.js
DELETED
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CigjJrdx.js","assets/react-yytiy0wi.js","assets/dcl-schemas-BICTSpB5.js","assets/index-D9VTjnkt.js","assets/emotion-styled.browser.esm-B-hzcBrK.js","assets/colors-LINLm1ux.js","assets/sentry-BPJvc5GU.js","assets/ethers-w2AslR0v.js","assets/intl-CBcMB1D2.js","assets/index-CkezkMvS.js","assets/events-DQ172AOg.js","assets/TradeService-C8gY38rG.js","assets/index-HN6Rk25C.js","assets/index-B1ztebBZ.js","assets/index-sFssfP96.js","assets/index-DEN3gLrI.js","assets/useTheme-HWLX9NSW.js","assets/CircularProgress-CfcEerVP.js","assets/useTheme-BwxUDr5G.js","assets/getOverlayAlpha-BX66SxOu.js","assets/AnimatedBackground-DQ46urVV.js","assets/AnimatedBackground-CiurwFBv.css","assets/Assets-5wZu90xj.js","assets/categories-pY-U0UXm.js","assets/categories-_8oO8Yih.css","assets/mana-rate-BWFOkvpC.js","assets/MarketCheckout-D-VQDb7F.js","assets/buy-BPkraJ17.js","assets/trade-encoding-cvcruSuW.js","assets/buy-gasless-uVyAhlxN.js","assets/errors-qUwGIanA.js","assets/ErrorNotice-CKeOu_Oi.js","assets/LoadMore-CwKrPv19.js","assets/useInfiniteGrid-ClIfwXAY.js","assets/ItemDetail-BqrPvIRT.js","assets/payments-DEbBixXM.js","assets/resume-buy-Bf0zIH7y.js","assets/address-DrURAr9O.js","assets/CollectionCarousel-Bu8qPKKJ.js","assets/CollectionCarousel-BRpR9AB4.css","assets/ItemDetail-CV-0-ZkB.css","assets/Collection-Bi7w1GKJ.js","assets/collection-BdgBOuhz.js","assets/collection-CrgnzsVL.css","assets/useStore-BPgnQXlK.js","assets/Collection-Dpog3TvS.css","assets/Creator-B13Gi9z4.js","assets/Creator-Cpx_caba.css","assets/StoreSettings-BhJ4tKkZ.js","assets/StoreSettings-Bk5IXwNu.css","assets/MyAssets-CzmZ_l10.js","assets/import-C7kEB_S5.js","assets/wallet-kind-B9P1TeIH.js","assets/MyAssets-FkZXy017.css","assets/MyFavorites-CdAcz-wK.js","assets/MyPurchases-Bw8Lb-63.js","assets/ImportListings-hNp1sEuT.js","assets/ImportListings-Dx8BzO4r.css","assets/Cart-DDgcOTzw.js","assets/cart-checkout-Co7t_k8J.js","assets/Cart-DXZzP7Af.css","assets/GetCredits-C3rj35ez.js","assets/Success-CiXoIPVr.js","assets/NotFound-C3wbCG4q.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var $h=Object.defineProperty;var au=e=>{throw TypeError(e)};var Dh=(e,t,r)=>t in e?$h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Xr=(e,t,r)=>Dh(e,typeof t!="symbol"?t+"":t,r),si=(e,t,r)=>t.has(e)||au("Cannot "+r);var G=(e,t,r)=>(si(e,t,"read from private field"),r?r.call(e):t.get(e)),Oe=(e,t,r)=>t.has(e)?au("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),be=(e,t,r,n)=>(si(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Fe=(e,t,r)=>(si(e,t,"access private method"),r);var Js=(e,t,r,n)=>({set _(o){be(e,t,o,r)},get _(){return G(e,t,n)}});import{r as oe,j as f,l as Ic,i as O2,g as Ca,R as j2,c as kc,a as il,h as qh,L as En,e as Zr,k as Uh,u as Vh,b as L2,m as Un,n as Hh,o as jt,N as iu,p as zh,B as Gh}from"./react-yytiy0wi.js";import{b as Wh,d as nr,a as cu}from"./dcl-schemas-BICTSpB5.js";import{p as pa,i as Zh,B as Kh,s as Yh,a as Qh,E as lu}from"./sentry-BPJvc5GU.js";import{W as Jh,k as Xh,h as uu,f as B2}from"./ethers-w2AslR0v.js";import{_ as _n,D as e1,i as t1,a as cl,c as r1,b as n1,f as o1,d as s1,e as a1}from"./intl-CBcMB1D2.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(o){if(o.ep)return;o.ep=!0;const s=r(o);fetch(o.href,s)}})();var rs=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Sn,nn,eo,x2,i1=(x2=class extends rs{constructor(){super();Oe(this,Sn);Oe(this,nn);Oe(this,eo);be(this,eo,t=>{if(typeof window<"u"&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){G(this,nn)||this.setEventListener(G(this,eo))}onUnsubscribe(){var t;this.hasListeners()||((t=G(this,nn))==null||t.call(this),be(this,nn,void 0))}setEventListener(t){var r;be(this,eo,t),(r=G(this,nn))==null||r.call(this),be(this,nn,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){G(this,Sn)!==t&&(be(this,Sn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof G(this,Sn)=="boolean"?G(this,Sn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Sn=new WeakMap,nn=new WeakMap,eo=new WeakMap,x2),ll=new i1,c1={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},on,al,S2,l1=(S2=class{constructor(){Oe(this,on,c1);Oe(this,al,!1)}setTimeoutProvider(e){be(this,on,e)}setTimeout(e,t){return G(this,on).setTimeout(e,t)}clearTimeout(e){G(this,on).clearTimeout(e)}setInterval(e,t){return G(this,on).setInterval(e,t)}clearInterval(e){G(this,on).clearInterval(e)}},on=new WeakMap,al=new WeakMap,S2),xn=new l1;function u1(e){setTimeout(e,0)}var d1=typeof window>"u"||"Deno"in globalThis;function Kt(){}function f1(e,t){return typeof e=="function"?e(t):e}function Rc(e){return typeof e=="number"&&e>=0&&e!==1/0}function M2(e,t){return Math.max(e+(t||0)-Date.now(),0)}function fn(e,t){return typeof e=="function"?e(t):e}function er(e,t){return typeof e=="function"?e(t):e}function du(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:s,queryKey:i,stale:u}=e;if(i){if(n){if(t.queryHash!==ul(i,t.options))return!1}else if(!Uo(t.queryKey,i))return!1}if(r!=="all"){const d=t.isActive();if(r==="active"&&!d||r==="inactive"&&d)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||o&&o!==t.state.fetchStatus||s&&!s(t))}function fu(e,t){const{exact:r,status:n,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(r){if(qo(t.options.mutationKey)!==qo(s))return!1}else if(!Uo(t.options.mutationKey,s))return!1}return!(n&&t.state.status!==n||o&&!o(t))}function ul(e,t){return((t==null?void 0:t.queryKeyHashFn)||qo)(e)}function qo(e){return JSON.stringify(e,(t,r)=>Nc(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):r)}function Uo(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Uo(e[r],t[r])):!1}var h1=Object.prototype.hasOwnProperty;function F2(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=hu(e)&&hu(t);if(!n&&!(Nc(e)&&Nc(t)))return t;const s=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),u=i.length,d=n?new Array(u):{};let h=0;for(let p=0;p<u;p++){const m=n?p:i[p],b=e[m],E=t[m];if(b===E){d[m]=b,(n?p<s:h1.call(e,m))&&h++;continue}if(b===null||E===null||typeof b!="object"||typeof E!="object"){d[m]=E;continue}const A=F2(b,E,r+1);d[m]=A,A===b&&h++}return s===u&&h===s?e:d}function Pc(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function hu(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Nc(e){if(!pu(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!pu(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function pu(e){return Object.prototype.toString.call(e)==="[object Object]"}function p1(e){return new Promise(t=>{xn.setTimeout(t,e)})}function Oc(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?F2(e,t):t}function ai(e){return e}function m1(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function g1(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var dl=Symbol();function $2(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===dl?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function D2(e,t){return typeof e=="function"?e(...t):!!e}function y1(e,t,r){let n=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=t()),n||(n=!0,o.aborted?r():o.addEventListener("abort",r,{once:!0})),o)}),e}var Vo=(()=>{let e=()=>d1;return{isServer(){return e()},setIsServer(t){e=t}}})();function jc(){let e,t;const r=new Promise((o,s)=>{e=o,t=s});r.status="pending",r.catch(()=>{});function n(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{n({status:"fulfilled",value:o}),e(o)},r.reject=o=>{n({status:"rejected",reason:o}),t(o)},r}var v1=u1;function b1(){let e=[],t=0,r=u=>{u()},n=u=>{u()},o=v1;const s=u=>{t?e.push(u):o(()=>{r(u)})},i=()=>{const u=e;e=[],u.length&&o(()=>{n(()=>{u.forEach(d=>{r(d)})})})};return{batch:u=>{let d;t++;try{d=u()}finally{t--,t||i()}return d},batchCalls:u=>(...d)=>{s(()=>{u(...d)})},schedule:s,setNotifyFunction:u=>{r=u},setBatchNotifyFunction:u=>{n=u},setScheduler:u=>{o=u}}}var kt=b1(),to,sn,ro,C2,w1=(C2=class extends rs{constructor(){super();Oe(this,to,!0);Oe(this,sn);Oe(this,ro);be(this,ro,t=>{if(typeof window<"u"&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){G(this,sn)||this.setEventListener(G(this,ro))}onUnsubscribe(){var t;this.hasListeners()||((t=G(this,sn))==null||t.call(this),be(this,sn,void 0))}setEventListener(t){var r;be(this,ro,t),(r=G(this,sn))==null||r.call(this),be(this,sn,t(this.setOnline.bind(this)))}setOnline(t){G(this,to)!==t&&(be(this,to,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return G(this,to)}},to=new WeakMap,sn=new WeakMap,ro=new WeakMap,C2),wa=new w1;function _1(e){return Math.min(1e3*2**e,3e4)}function q2(e){return(e??"online")==="online"?wa.isOnline():!0}var Lc=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function U2(e){let t=!1,r=0,n;const o=jc(),s=()=>o.status!=="pending",i=g=>{var T;if(!s()){const H=new Lc(g);b(H),(T=e.onCancel)==null||T.call(e,H)}},u=()=>{t=!0},d=()=>{t=!1},h=()=>ll.isFocused()&&(e.networkMode==="always"||wa.isOnline())&&e.canRun(),p=()=>q2(e.networkMode)&&e.canRun(),m=g=>{s()||(n==null||n(),o.resolve(g))},b=g=>{s()||(n==null||n(),o.reject(g))},E=()=>new Promise(g=>{var T;n=H=>{(s()||h())&&g(H)},(T=e.onPause)==null||T.call(e)}).then(()=>{var g;n=void 0,s()||(g=e.onContinue)==null||g.call(e)}),A=()=>{if(s())return;let g;const T=r===0?e.initialPromise:void 0;try{g=T??e.fn()}catch(H){g=Promise.reject(H)}Promise.resolve(g).then(m).catch(H=>{var q;if(s())return;const v=e.retry??(Vo.isServer()?0:3),k=e.retryDelay??_1,w=typeof k=="function"?k(r,H):k,Y=v===!0||typeof v=="number"&&r<v||typeof v=="function"&&v(r,H);if(t||!Y){b(H);return}r++,(q=e.onFail)==null||q.call(e,r,H),p1(w).then(()=>h()?void 0:E()).then(()=>{t?b(H):A()})})};return{promise:o,status:()=>o.status,cancel:i,continue:()=>(n==null||n(),o),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?A():E().then(A),o)}}var Cn,T2,V2=(T2=class{constructor(){Oe(this,Cn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Rc(this.gcTime)&&be(this,Cn,xn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Vo.isServer()?1/0:300*1e3))}clearGcTimeout(){G(this,Cn)!==void 0&&(xn.clearTimeout(G(this,Cn)),be(this,Cn,void 0))}},Cn=new WeakMap,T2);function E1(e){return{onFetch:(t,r)=>{var p,m,b,E,A;const n=t.options,o=(b=(m=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:m.fetchMore)==null?void 0:b.direction,s=((E=t.state.data)==null?void 0:E.pages)||[],i=((A=t.state.data)==null?void 0:A.pageParams)||[];let u={pages:[],pageParams:[]},d=0;const h=async()=>{let g=!1;const T=k=>{y1(k,()=>t.signal,()=>g=!0)},H=$2(t.options,t.fetchOptions),v=async(k,w,Y)=>{if(g)return Promise.reject(t.signal.reason);if(w==null&&k.pages.length)return Promise.resolve(k);const S=(()=>{const ne={client:t.client,queryKey:t.queryKey,pageParam:w,direction:Y?"backward":"forward",meta:t.options.meta};return T(ne),ne})(),$=await H(S),{maxPages:J}=t.options,W=Y?g1:m1;return{pages:W(k.pages,$,J),pageParams:W(k.pageParams,w,J)}};if(o&&s.length){const k=o==="backward",w=k?H2:Bc,Y={pages:s,pageParams:i},q=w(n,Y);u=await v(Y,q,k)}else{const k=e??s.length;do{const w=d===0?i[0]??n.initialPageParam:Bc(n,u);if(d>0&&w==null)break;u=await v(u,w),d++}while(d<k)}return u};t.options.persister?t.fetchFn=()=>{var g,T;return(T=(g=t.options).persister)==null?void 0:T.call(g,h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=h}}}function Bc(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function H2(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}function W6(e,t){return t?Bc(e,t)!=null:!1}function Z6(e,t){return!t||!e.getPreviousPageParam?!1:H2(e,t)!=null}var no,Tn,oo,ar,An,wt,Qo,In,Xt,z2,Vr,A2,x1=(A2=class extends V2{constructor(t){super();Oe(this,Xt);Oe(this,no);Oe(this,Tn);Oe(this,oo);Oe(this,ar);Oe(this,An);Oe(this,wt);Oe(this,Qo);Oe(this,In);be(this,In,!1),be(this,Qo,t.defaultOptions),this.setOptions(t.options),this.observers=[],be(this,An,t.client),be(this,ar,G(this,An).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,be(this,Tn,gu(this.options)),this.state=t.state??G(this,Tn),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return G(this,no)}get promise(){var t;return(t=G(this,wt))==null?void 0:t.promise}setOptions(t){if(this.options={...G(this,Qo),...t},t!=null&&t._type&&be(this,no,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=gu(this.options);r.data!==void 0&&(this.setState(mu(r.data,r.dataUpdatedAt)),be(this,Tn,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&G(this,ar).remove(this)}setData(t,r){const n=Oc(this.state.data,t,this.options);return Fe(this,Xt,Vr).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t){Fe(this,Xt,Vr).call(this,{type:"setState",state:t})}cancel(t){var n,o;const r=(n=G(this,wt))==null?void 0:n.promise;return(o=G(this,wt))==null||o.cancel(t),r?r.then(Kt).catch(Kt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return G(this,Tn)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>er(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===dl||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>fn(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!M2(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=G(this,wt))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=G(this,wt))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),G(this,ar).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(G(this,wt)&&(G(this,In)||Fe(this,Xt,z2).call(this)?G(this,wt).cancel({revert:!0}):G(this,wt).cancelRetry()),this.scheduleGc()),G(this,ar).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Fe(this,Xt,Vr).call(this,{type:"invalidate"})}async fetch(t,r){var h,p,m,b,E,A,g,T,H,v,k;if(this.state.fetchStatus!=="idle"&&((h=G(this,wt))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(G(this,wt))return G(this,wt).continueRetry(),G(this,wt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const w=this.observers.find(Y=>Y.options.queryFn);w&&this.setOptions(w.options)}const n=new AbortController,o=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(be(this,In,!0),n.signal)})},s=()=>{const w=$2(this.options,r),q=(()=>{const S={client:G(this,An),queryKey:this.queryKey,meta:this.meta};return o(S),S})();return be(this,In,!1),this.options.persister?this.options.persister(w,q,this):w(q)},u=(()=>{const w={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:G(this,An),state:this.state,fetchFn:s};return o(w),w})(),d=G(this,no)==="infinite"?E1(this.options.pages):this.options.behavior;d==null||d.onFetch(u,this),be(this,oo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=u.fetchOptions)==null?void 0:p.meta))&&Fe(this,Xt,Vr).call(this,{type:"fetch",meta:(m=u.fetchOptions)==null?void 0:m.meta}),be(this,wt,U2({initialPromise:r==null?void 0:r.initialPromise,fn:u.fetchFn,onCancel:w=>{w instanceof Lc&&w.revert&&this.setState({...G(this,oo),fetchStatus:"idle"}),n.abort()},onFail:(w,Y)=>{Fe(this,Xt,Vr).call(this,{type:"failed",failureCount:w,error:Y})},onPause:()=>{Fe(this,Xt,Vr).call(this,{type:"pause"})},onContinue:()=>{Fe(this,Xt,Vr).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0}));try{const w=await G(this,wt).start();if(w===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(w),(E=(b=G(this,ar).config).onSuccess)==null||E.call(b,w,this),(g=(A=G(this,ar).config).onSettled)==null||g.call(A,w,this.state.error,this),w}catch(w){if(w instanceof Lc){if(w.silent)return G(this,wt).promise;if(w.revert){if(this.state.data===void 0)throw w;return this.state.data}}throw Fe(this,Xt,Vr).call(this,{type:"error",error:w}),(H=(T=G(this,ar).config).onError)==null||H.call(T,w,this),(k=(v=G(this,ar).config).onSettled)==null||k.call(v,this.state.data,w,this),w}finally{this.scheduleGc()}}},no=new WeakMap,Tn=new WeakMap,oo=new WeakMap,ar=new WeakMap,An=new WeakMap,wt=new WeakMap,Qo=new WeakMap,In=new WeakMap,Xt=new WeakSet,z2=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Vr=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...G2(n.data,this.options),fetchMeta:t.meta??null};case"success":const o={...n,...mu(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return be(this,oo,t.manual?o:void 0),o;case"error":const s=t.error;return{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),kt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),G(this,ar).notify({query:this,type:"updated",action:t})})},A2);function G2(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:q2(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function mu(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function gu(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Zt,De,Jo,$t,kn,so,Hr,an,Xo,ao,io,Rn,Pn,cn,co,We,jo,Mc,Fc,$c,Dc,qc,Uc,Vc,W2,I2,S1=(I2=class extends rs{constructor(t,r){super();Oe(this,We);Oe(this,Zt);Oe(this,De);Oe(this,Jo);Oe(this,$t);Oe(this,kn);Oe(this,so);Oe(this,Hr);Oe(this,an);Oe(this,Xo);Oe(this,ao);Oe(this,io);Oe(this,Rn);Oe(this,Pn);Oe(this,cn);Oe(this,co,new Set);this.options=r,be(this,Zt,t),be(this,an,null),be(this,Hr,jc()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(G(this,De).addObserver(this),yu(G(this,De),this.options)?Fe(this,We,jo).call(this):this.updateResult(),Fe(this,We,Dc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Hc(G(this,De),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Hc(G(this,De),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Fe(this,We,qc).call(this),Fe(this,We,Uc).call(this),G(this,De).removeObserver(this)}setOptions(t){const r=this.options,n=G(this,De);if(this.options=G(this,Zt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof er(this.options.enabled,G(this,De))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Fe(this,We,Vc).call(this),G(this,De).setOptions(this.options),r._defaulted&&!Pc(this.options,r)&&G(this,Zt).getQueryCache().notify({type:"observerOptionsUpdated",query:G(this,De),observer:this});const o=this.hasListeners();o&&vu(G(this,De),n,this.options,r)&&Fe(this,We,jo).call(this),this.updateResult(),o&&(G(this,De)!==n||er(this.options.enabled,G(this,De))!==er(r.enabled,G(this,De))||fn(this.options.staleTime,G(this,De))!==fn(r.staleTime,G(this,De)))&&Fe(this,We,Mc).call(this);const s=Fe(this,We,Fc).call(this);o&&(G(this,De)!==n||er(this.options.enabled,G(this,De))!==er(r.enabled,G(this,De))||s!==G(this,cn))&&Fe(this,We,$c).call(this,s)}getOptimisticResult(t){const r=G(this,Zt).getQueryCache().build(G(this,Zt),t),n=this.createResult(r,t);return T1(this,n)&&(be(this,$t,n),be(this,so,this.options),be(this,kn,G(this,De).state)),n}getCurrentResult(){return G(this,$t)}trackResult(t,r){return new Proxy(t,{get:(n,o)=>(this.trackProp(o),r==null||r(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&G(this,Hr).status==="pending"&&G(this,Hr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,o))})}trackProp(t){G(this,co).add(t)}getCurrentQuery(){return G(this,De)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=G(this,Zt).defaultQueryOptions(t),n=G(this,Zt).getQueryCache().build(G(this,Zt),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return Fe(this,We,jo).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),G(this,$t)))}createResult(t,r){var J;const n=G(this,De),o=this.options,s=G(this,$t),i=G(this,kn),u=G(this,so),h=t!==n?t.state:G(this,Jo),{state:p}=t;let m={...p},b=!1,E;if(r._optimisticResults){const W=this.hasListeners(),ne=!W&&yu(t,r),X=W&&vu(t,n,r,o);(ne||X)&&(m={...m,...G2(p.data,t.options)}),r._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:A,errorUpdatedAt:g,status:T}=m;E=m.data;let H=!1;if(r.placeholderData!==void 0&&E===void 0&&T==="pending"){let W;s!=null&&s.isPlaceholderData&&r.placeholderData===(u==null?void 0:u.placeholderData)?(W=s.data,H=!0):W=typeof r.placeholderData=="function"?r.placeholderData((J=G(this,io))==null?void 0:J.state.data,G(this,io)):r.placeholderData,W!==void 0&&(T="success",E=Oc(s==null?void 0:s.data,W,r),b=!0)}if(r.select&&E!==void 0&&!H)if(s&&E===(i==null?void 0:i.data)&&r.select===G(this,Xo))E=G(this,ao);else try{be(this,Xo,r.select),E=r.select(E),E=Oc(s==null?void 0:s.data,E,r),be(this,ao,E),be(this,an,null)}catch(W){be(this,an,W)}G(this,an)&&(A=G(this,an),E=G(this,ao),g=Date.now(),T="error");const v=m.fetchStatus==="fetching",k=T==="pending",w=T==="error",Y=k&&v,q=E!==void 0,$={status:T,fetchStatus:m.fetchStatus,isPending:k,isSuccess:T==="success",isError:w,isInitialLoading:Y,isLoading:Y,data:E,dataUpdatedAt:m.dataUpdatedAt,error:A,errorUpdatedAt:g,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:m.dataUpdateCount>h.dataUpdateCount||m.errorUpdateCount>h.errorUpdateCount,isFetching:v,isRefetching:v&&!k,isLoadingError:w&&!q,isPaused:m.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:w&&q,isStale:fl(t,r),refetch:this.refetch,promise:G(this,Hr),isEnabled:er(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const W=$.data!==void 0,ne=$.status==="error"&&!W,X=K=>{ne?K.reject($.error):W&&K.resolve($.data)},B=()=>{const K=be(this,Hr,$.promise=jc());X(K)},P=G(this,Hr);switch(P.status){case"pending":t.queryHash===n.queryHash&&X(P);break;case"fulfilled":(ne||$.data!==P.value)&&B();break;case"rejected":(!ne||$.error!==P.reason)&&B();break}}return $}updateResult(){const t=G(this,$t),r=this.createResult(G(this,De),this.options);if(be(this,kn,G(this,De).state),be(this,so,this.options),G(this,kn).data!==void 0&&be(this,io,G(this,De)),Pc(r,t))return;be(this,$t,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!G(this,co).size)return!0;const i=new Set(s??G(this,co));return this.options.throwOnError&&i.add("error"),Object.keys(G(this,$t)).some(u=>{const d=u;return G(this,$t)[d]!==t[d]&&i.has(d)})};Fe(this,We,W2).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Fe(this,We,Dc).call(this)}},Zt=new WeakMap,De=new WeakMap,Jo=new WeakMap,$t=new WeakMap,kn=new WeakMap,so=new WeakMap,Hr=new WeakMap,an=new WeakMap,Xo=new WeakMap,ao=new WeakMap,io=new WeakMap,Rn=new WeakMap,Pn=new WeakMap,cn=new WeakMap,co=new WeakMap,We=new WeakSet,jo=function(t){Fe(this,We,Vc).call(this);let r=G(this,De).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(Kt)),r},Mc=function(){Fe(this,We,qc).call(this);const t=fn(this.options.staleTime,G(this,De));if(Vo.isServer()||G(this,$t).isStale||!Rc(t))return;const n=M2(G(this,$t).dataUpdatedAt,t)+1;be(this,Rn,xn.setTimeout(()=>{G(this,$t).isStale||this.updateResult()},n))},Fc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(G(this,De)):this.options.refetchInterval)??!1},$c=function(t){Fe(this,We,Uc).call(this),be(this,cn,t),!(Vo.isServer()||er(this.options.enabled,G(this,De))===!1||!Rc(G(this,cn))||G(this,cn)===0)&&be(this,Pn,xn.setInterval(()=>{(this.options.refetchIntervalInBackground||ll.isFocused())&&Fe(this,We,jo).call(this)},G(this,cn)))},Dc=function(){Fe(this,We,Mc).call(this),Fe(this,We,$c).call(this,Fe(this,We,Fc).call(this))},qc=function(){G(this,Rn)!==void 0&&(xn.clearTimeout(G(this,Rn)),be(this,Rn,void 0))},Uc=function(){G(this,Pn)!==void 0&&(xn.clearInterval(G(this,Pn)),be(this,Pn,void 0))},Vc=function(){const t=G(this,Zt).getQueryCache().build(G(this,Zt),this.options);if(t===G(this,De))return;const r=G(this,De);be(this,De,t),be(this,Jo,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},W2=function(t){kt.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(G(this,$t))}),G(this,Zt).getQueryCache().notify({query:G(this,De),type:"observerResultsUpdated"})})},I2);function C1(e,t){return er(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&er(t.retryOnMount,e)===!1)}function yu(e,t){return C1(e,t)||e.state.data!==void 0&&Hc(e,t,t.refetchOnMount)}function Hc(e,t,r){if(er(t.enabled,e)!==!1&&fn(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&fl(e,t)}return!1}function vu(e,t,r,n){return(e!==t||er(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&fl(e,r)}function fl(e,t){return er(t.enabled,e)!==!1&&e.isStaleByTime(fn(t.staleTime,e))}function T1(e,t){return!Pc(e.getCurrentResult(),t)}var es,Cr,Bt,Nn,Tr,tn,k2,A1=(k2=class extends V2{constructor(t){super();Oe(this,Tr);Oe(this,es);Oe(this,Cr);Oe(this,Bt);Oe(this,Nn);be(this,es,t.client),this.mutationId=t.mutationId,be(this,Bt,t.mutationCache),be(this,Cr,[]),this.state=t.state||I1(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){G(this,Cr).includes(t)||(G(this,Cr).push(t),this.clearGcTimeout(),G(this,Bt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){be(this,Cr,G(this,Cr).filter(r=>r!==t)),this.scheduleGc(),G(this,Bt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){G(this,Cr).length||(this.state.status==="pending"?this.scheduleGc():G(this,Bt).remove(this))}continue(){var t;return((t=G(this,Nn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,u,d,h,p,m,b,E,A,g,T,H,v,k,w,Y,q,S;const r=()=>{Fe(this,Tr,tn).call(this,{type:"continue"})},n={client:G(this,es),meta:this.options.meta,mutationKey:this.options.mutationKey};be(this,Nn,U2({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:($,J)=>{Fe(this,Tr,tn).call(this,{type:"failed",failureCount:$,error:J})},onPause:()=>{Fe(this,Tr,tn).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>G(this,Bt).canRun(this)}));const o=this.state.status==="pending",s=!G(this,Nn).canStart();try{if(o)r();else{Fe(this,Tr,tn).call(this,{type:"pending",variables:t,isPaused:s}),G(this,Bt).config.onMutate&&await G(this,Bt).config.onMutate(t,this,n);const J=await((u=(i=this.options).onMutate)==null?void 0:u.call(i,t,n));J!==this.state.context&&Fe(this,Tr,tn).call(this,{type:"pending",context:J,variables:t,isPaused:s})}const $=await G(this,Nn).start();return await((h=(d=G(this,Bt).config).onSuccess)==null?void 0:h.call(d,$,t,this.state.context,this,n)),await((m=(p=this.options).onSuccess)==null?void 0:m.call(p,$,t,this.state.context,n)),await((E=(b=G(this,Bt).config).onSettled)==null?void 0:E.call(b,$,null,this.state.variables,this.state.context,this,n)),await((g=(A=this.options).onSettled)==null?void 0:g.call(A,$,null,t,this.state.context,n)),Fe(this,Tr,tn).call(this,{type:"success",data:$}),$}catch($){try{await((H=(T=G(this,Bt).config).onError)==null?void 0:H.call(T,$,t,this.state.context,this,n))}catch(J){Promise.reject(J)}try{await((k=(v=this.options).onError)==null?void 0:k.call(v,$,t,this.state.context,n))}catch(J){Promise.reject(J)}try{await((Y=(w=G(this,Bt).config).onSettled)==null?void 0:Y.call(w,void 0,$,this.state.variables,this.state.context,this,n))}catch(J){Promise.reject(J)}try{await((S=(q=this.options).onSettled)==null?void 0:S.call(q,void 0,$,t,this.state.context,n))}catch(J){Promise.reject(J)}throw Fe(this,Tr,tn).call(this,{type:"error",error:$}),$}finally{G(this,Bt).runNext(this)}}},es=new WeakMap,Cr=new WeakMap,Bt=new WeakMap,Nn=new WeakMap,Tr=new WeakSet,tn=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),kt.batch(()=>{G(this,Cr).forEach(n=>{n.onMutationUpdate(t)}),G(this,Bt).notify({mutation:this,type:"updated",action:t})})},k2);function I1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var zr,fr,ts,R2,k1=(R2=class extends rs{constructor(t={}){super();Oe(this,zr);Oe(this,fr);Oe(this,ts);this.config=t,be(this,zr,new Set),be(this,fr,new Map),be(this,ts,0)}build(t,r,n){const o=new A1({client:t,mutationCache:this,mutationId:++Js(this,ts)._,options:t.defaultMutationOptions(r),state:n});return this.add(o),o}add(t){G(this,zr).add(t);const r=Xs(t);if(typeof r=="string"){const n=G(this,fr).get(r);n?n.push(t):G(this,fr).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(G(this,zr).delete(t)){const r=Xs(t);if(typeof r=="string"){const n=G(this,fr).get(r);if(n)if(n.length>1){const o=n.indexOf(t);o!==-1&&n.splice(o,1)}else n[0]===t&&G(this,fr).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=Xs(t);if(typeof r=="string"){const n=G(this,fr).get(r),o=n==null?void 0:n.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var n;const r=Xs(t);if(typeof r=="string"){const o=(n=G(this,fr).get(r))==null?void 0:n.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){kt.batch(()=>{G(this,zr).forEach(t=>{this.notify({type:"removed",mutation:t})}),G(this,zr).clear(),G(this,fr).clear()})}getAll(){return Array.from(G(this,zr))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>fu(r,n))}findAll(t={}){return this.getAll().filter(r=>fu(t,r))}notify(t){kt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return kt.batch(()=>Promise.all(t.map(r=>r.continue().catch(Kt))))}},zr=new WeakMap,fr=new WeakMap,ts=new WeakMap,R2);function Xs(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Ar,P2,R1=(P2=class extends rs{constructor(t={}){super();Oe(this,Ar);this.config=t,be(this,Ar,new Map)}build(t,r,n){const o=r.queryKey,s=r.queryHash??ul(o,r);let i=this.get(s);return i||(i=new x1({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){G(this,Ar).has(t.queryHash)||(G(this,Ar).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=G(this,Ar).get(t.queryHash);r&&(t.destroy(),r===t&&G(this,Ar).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){kt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return G(this,Ar).get(t)}getAll(){return[...G(this,Ar).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>du(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>du(t,n)):r}notify(t){kt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){kt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){kt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ar=new WeakMap,P2),dt,ln,un,lo,uo,dn,fo,ho,N2,P1=(N2=class{constructor(e={}){Oe(this,dt);Oe(this,ln);Oe(this,un);Oe(this,lo);Oe(this,uo);Oe(this,dn);Oe(this,fo);Oe(this,ho);be(this,dt,e.queryCache||new R1),be(this,ln,e.mutationCache||new k1),be(this,un,e.defaultOptions||{}),be(this,lo,new Map),be(this,uo,new Map),be(this,dn,0)}mount(){Js(this,dn)._++,G(this,dn)===1&&(be(this,fo,ll.subscribe(async e=>{e&&(await this.resumePausedMutations(),G(this,dt).onFocus())})),be(this,ho,wa.subscribe(async e=>{e&&(await this.resumePausedMutations(),G(this,dt).onOnline())})))}unmount(){var e,t;Js(this,dn)._--,G(this,dn)===0&&((e=G(this,fo))==null||e.call(this),be(this,fo,void 0),(t=G(this,ho))==null||t.call(this),be(this,ho,void 0))}isFetching(e){return G(this,dt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return G(this,ln).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=G(this,dt).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=G(this,dt).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(fn(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return G(this,dt).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),o=G(this,dt).get(n.queryHash),s=o==null?void 0:o.state.data,i=f1(t,s);if(i!==void 0)return G(this,dt).build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return kt.batch(()=>G(this,dt).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=G(this,dt).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=G(this,dt);kt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=G(this,dt);return kt.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=kt.batch(()=>G(this,dt).findAll(e).map(o=>o.cancel(r)));return Promise.all(n).then(Kt).catch(Kt)}invalidateQueries(e,t={}){return kt.batch(()=>(G(this,dt).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=kt.batch(()=>G(this,dt).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,r);return r.throwOnError||(s=s.catch(Kt)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(n).then(Kt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=G(this,dt).build(this,t);return r.isStaleByTime(fn(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Kt).catch(Kt)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Kt).catch(Kt)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return wa.isOnline()?G(this,ln).resumePausedMutations():Promise.resolve()}getQueryCache(){return G(this,dt)}getMutationCache(){return G(this,ln)}getDefaultOptions(){return G(this,un)}setDefaultOptions(e){be(this,un,e)}setQueryDefaults(e,t){G(this,lo).set(qo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...G(this,lo).values()],r={};return t.forEach(n=>{Uo(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){G(this,uo).set(qo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...G(this,uo).values()],r={};return t.forEach(n=>{Uo(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...G(this,un).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ul(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===dl&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...G(this,un).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){G(this,dt).clear(),G(this,ln).clear()}},dt=new WeakMap,ln=new WeakMap,un=new WeakMap,lo=new WeakMap,uo=new WeakMap,dn=new WeakMap,fo=new WeakMap,ho=new WeakMap,N2),Z2=oe.createContext(void 0),N1=e=>{const t=oe.useContext(Z2);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},O1=({client:e,children:t})=>(oe.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),f.jsx(Z2.Provider,{value:e,children:t})),K2=oe.createContext(!1),j1=()=>oe.useContext(K2);K2.Provider;function L1(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var B1=oe.createContext(L1()),M1=()=>oe.useContext(B1),F1=(e,t,r)=>{const n=r!=null&&r.state.error&&typeof e.throwOnError=="function"?D2(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))},$1=e=>{oe.useEffect(()=>{e.clearReset()},[e])},D1=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(o&&e.data===void 0||D2(r,[e.error,n])),q1=e=>{if(e.suspense){const r=o=>o==="static"?o:Math.max(o??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...o)=>r(n(...o)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},U1=(e,t)=>e.isLoading&&e.isFetching&&!t,V1=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,bu=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function H1(e,t,r){var E,A,g,T;const n=j1(),o=M1(),s=N1(),i=s.defaultQueryOptions(e);(A=(E=s.getDefaultOptions().queries)==null?void 0:E._experimental_beforeQuery)==null||A.call(E,i);const u=s.getQueryCache().get(i.queryHash),d=e.subscribed!==!1;i._optimisticResults=n?"isRestoring":d?"optimistic":void 0,q1(i),F1(i,o,u),$1(o);const h=!s.getQueryCache().get(i.queryHash),[p]=oe.useState(()=>new t(s,i)),m=p.getOptimisticResult(i),b=!n&&d;if(oe.useSyncExternalStore(oe.useCallback(H=>{const v=b?p.subscribe(kt.batchCalls(H)):Kt;return p.updateResult(),v},[p,b]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),oe.useEffect(()=>{p.setOptions(i)},[i,p]),V1(i,m))throw bu(i,p,o);if(D1({result:m,errorResetBoundary:o,throwOnError:i.throwOnError,query:u,suspense:i.suspense}))throw m.error;if((T=(g=s.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||T.call(g,i,m),i.experimental_prefetchInRender&&!Vo.isServer()&&U1(m,n)){const H=h?bu(i,p,o):u==null?void 0:u.promise;H==null||H.catch(Kt).finally(()=>{p.updateResult()})}return i.notifyOnChangeProps?m:p.trackResult(m)}function Gr(e,t){return H1(e,S1)}const z1="modulepreload",G1=function(e){return"https://cdn.decentraland.org/@dcl/shop/0.1.0-29820315471.commit-e34db25/"+e},wu={},xt=function(t,r,n){let o=Promise.resolve();if(r&&r.length>0){let i=function(h){return Promise.all(h.map(p=>Promise.resolve(p).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));o=i(r.map(h=>{if(h=G1(h),h in wu)return;wu[h]=!0;const p=h.endsWith(".css"),m=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${m}`))return;const b=document.createElement("link");if(b.rel=p?"stylesheet":z1,p||(b.as="script"),b.crossOrigin="",b.href=h,d&&b.setAttribute("nonce",d),document.head.appendChild(b),p)return new Promise((E,A)=>{b.addEventListener("load",E),b.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${h}`)))})}))}function s(i){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=i,window.dispatchEvent(u),!u.defaultPrevented)throw i}return o.then(i=>{for(const u of i||[])u.status==="rejected"&&s(u.reason);return t().catch(s)})},W1="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20%2011H7.83l5.59-5.59L12%204l-8%208%208%208%201.41-1.41L7.83%2013H20v-2z'%20fill='%23000'/%3e%3c/svg%3e",Z1="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='NotificationsFilled'%3e%3cpath%20id='Vector'%20d='M12%2021.75C13.1%2021.75%2014%2020.85%2014%2019.75H10C10%2020.85%2010.89%2021.75%2012%2021.75ZM18%2015.75V10.75C18%207.68%2016.36%205.11%2013.5%204.43V3.75C13.5%202.92%2012.83%202.25%2012%202.25C11.17%202.25%2010.5%202.92%2010.5%203.75V4.43C7.63%205.11%206%207.67%206%2010.75V15.75L4%2017.75V18.75H20V17.75L18%2015.75Z'%20fill='var(--fill-0,%20%23242129)'/%3e%3c/g%3e%3c/svg%3e",K1="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2059.7045%2058.9085'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Slider%20Arrows'%3e%3cpath%20id='Oval'%20opacity='0.8'%20d='M29.8522%201.59244C45.437%201.59244%2058.1117%2014.0437%2058.112%2029.4538C58.112%2044.8641%2045.4372%2057.3161%2029.8522%2057.3161C14.2672%2057.3161%201.59244%2044.8641%201.59244%2029.4538C1.5927%2014.0437%2014.2674%201.59247%2029.8522%201.59244Z'%20fill='var(--fill-0,%20white)'%20stroke='var(--stroke-0,%20white)'%20stroke-width='3.18424'/%3e%3cg%20id='bounds'%3e%3c/g%3e%3cpath%20id='icon'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M40.2842%2029.0164L25.652%2043.0901C24.8014%2043.9083%2023.4222%2043.9083%2022.5716%2043.0901C21.721%2042.2719%2021.721%2040.9454%2022.5716%2040.1272L34.1233%2029.0164L22.5716%2017.9056C21.721%2017.0874%2021.721%2015.7609%2022.5716%2014.9427C23.4222%2014.1245%2024.8014%2014.1245%2025.652%2014.9427L40.2842%2029.0164Z'%20fill='var(--fill-0,%20black)'/%3e%3c/g%3e%3c/svg%3e",Y1="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='boxicons:cart'%3e%3cpath%20id='Vector'%20d='M17.5%205H5.875L4.95%202.23333C4.8941%202.06782%204.78759%201.92405%204.64552%201.82237C4.50346%201.72068%204.33304%201.66622%204.15833%201.66667H1.65833V3.33333H3.55833L6.50833%2012.1917C6.61872%2012.5243%206.83113%2012.8136%207.11538%2013.0185C7.39962%2013.2235%207.74124%2013.3337%208.09167%2013.3333H14.4167C14.7558%2013.3327%2015.0867%2013.2287%2015.3651%2013.0351C15.6435%2012.8416%2015.8563%2012.5677%2015.975%2012.25L18.275%206.125C18.3667%205.86667%2018.3333%205.58333%2018.1833%205.35833C18.1068%205.24795%2018.0046%205.15771%2017.8856%205.09532C17.7667%205.03292%2017.6344%205.00022%2017.5%205ZM14.425%2011.6667H8.1L6.43333%206.66667H16.3L14.425%2011.6667ZM8.33333%2015C7.89131%2015%207.46738%2015.1756%207.15482%2015.4882C6.84226%2015.8007%206.66667%2016.2246%206.66667%2016.6667C6.66667%2017.1087%206.84226%2017.5326%207.15482%2017.8452C7.46738%2018.1577%207.89131%2018.3333%208.33333%2018.3333C8.77536%2018.3333%209.19928%2018.1577%209.51184%2017.8452C9.82441%2017.5326%2010%2017.1087%2010%2016.6667C10%2016.2246%209.82441%2015.8007%209.51184%2015.4882C9.19928%2015.1756%208.77536%2015%208.33333%2015ZM14.1667%2015C13.7246%2015%2013.3007%2015.1756%2012.9882%2015.4882C12.6756%2015.8007%2012.5%2016.2246%2012.5%2016.6667C12.5%2017.1087%2012.6756%2017.5326%2012.9882%2017.8452C13.3007%2018.1577%2013.7246%2018.3333%2014.1667%2018.3333C14.6087%2018.3333%2015.0326%2018.1577%2015.3452%2017.8452C15.6577%2017.5326%2015.8333%2017.1087%2015.8333%2016.6667C15.8333%2016.2246%2015.6577%2015.8007%2015.3452%2015.4882C15.0326%2015.1756%2014.6087%2015%2014.1667%2015Z'%20fill='var(--fill-0,%20%23FCFCFC)'/%3e%3c/g%3e%3c/svg%3e",Q1="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='boxicons:cart'%3e%3cpath%20id='Vector'%20d='M28%207.99935H9.39999L7.91999%203.57269C7.83054%203.30786%207.66012%203.07784%207.43283%202.91514C7.20553%202.75245%206.93285%202.6653%206.65332%202.66602H2.65332V5.33269H5.69332L10.4133%2019.506C10.5899%2020.0382%2010.9298%2020.5011%2011.3846%2020.829C11.8394%2021.157%2012.386%2021.3332%2012.9467%2021.3327H23.0667C23.6092%2021.3317%2024.1386%2021.1653%2024.5841%2020.8556C25.0297%2020.5459%2025.3701%2020.1076%2025.56%2019.5994L29.24%209.79935C29.3867%209.38602%2029.3333%208.93269%2029.0933%208.57269C28.9708%208.39607%2028.8074%208.25169%2028.617%208.15186C28.4266%208.05203%2028.2149%207.99971%2028%207.99935ZM23.08%2018.666H12.96L10.2933%2010.666H26.08L23.08%2018.666ZM13.3333%2023.9994C12.6261%2023.9994%2011.9478%2024.2803%2011.4477%2024.7804C10.9476%2025.2805%2010.6667%2025.9588%2010.6667%2026.666C10.6667%2027.3733%2010.9476%2028.0515%2011.4477%2028.5516C11.9478%2029.0517%2012.6261%2029.3327%2013.3333%2029.3327C14.0406%2029.3327%2014.7188%2029.0517%2015.2189%2028.5516C15.719%2028.0515%2016%2027.3733%2016%2026.666C16%2025.9588%2015.719%2025.2805%2015.2189%2024.7804C14.7188%2024.2803%2014.0406%2023.9994%2013.3333%2023.9994ZM22.6667%2023.9994C21.9594%2023.9994%2021.2811%2024.2803%2020.781%2024.7804C20.2809%2025.2805%2020%2025.9588%2020%2026.666C20%2027.3733%2020.2809%2028.0515%2020.781%2028.5516C21.2811%2029.0517%2021.9594%2029.3327%2022.6667%2029.3327C23.3739%2029.3327%2024.0522%2029.0517%2024.5523%2028.5516C25.0524%2028.0515%2025.3333%2027.3733%2025.3333%2026.666C25.3333%2025.9588%2025.0524%2025.2805%2024.5523%2024.7804C24.0522%2024.2803%2023.3739%2023.9994%2022.6667%2023.9994Z'%20fill='var(--fill-0,%20black)'/%3e%3c/g%3e%3c/svg%3e",J1="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11%203c.3%203.2%201.8%204.7%205%205-3.2.3-4.7%201.8-5%205-.3-3.2-1.8-4.7-5-5%203.2-.3%204.7-1.8%205-5Z'%20fill='%235E5B67'/%3e%3cpath%20d='M18%2012c.15%201.6.9%202.35%202.5%202.5-1.6.15-2.35.9-2.5%202.5-.15-1.6-.9-2.35-2.5-2.5%201.6-.15%202.35-.9%202.5-2.5Z'%20fill='%235E5B67'/%3e%3c/svg%3e",X1="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='FeetIcon'%3e%3crect%20id='Rectangle%20498'%20opacity='0'%20width='24'%20height='24'%20fill='var(--fill-0,%20%235E5B67)'/%3e%3cpath%20id='Subtract'%20d='M8.67877%207.59546C9.27547%207.68481%2010.5876%208.37254%2011.9796%209.33179C13.6367%2010.4694%2015.3779%2011.1166%2017.0792%2011.4959C21.962%2012.5666%2022.4879%2012.3658%2022.2891%2013.7263C22.2891%2013.7932%2022.2676%2013.883%2022.2676%2013.95C22.157%2015.333%2019.9912%2016.4039%2017.3399%2016.4041H3.5069C2.40745%2016.4041%201.47953%2016.5953%201.71295%2014.3738C1.72283%2014.2802%201.74457%2014.2358%201.77936%2014.196C1.82355%2012.4559%201.51845%209.26601%202.37897%209.69605C2.97909%209.9961%203.64729%2010.7195%206.51373%2010.7195C7.37513%2010.7194%207.92741%2010.2285%208.1485%209.9607C7.97172%209.46986%207.70704%208.44348%208.23737%207.77417C8.34775%207.64049%208.50223%207.57333%208.67877%207.59546ZM16.6866%2012.0955C16.5071%2012.5325%2016.0943%2013.8265%2015.879%2014.4558C18.8932%2014.6655%2020.9526%2014.0106%2021.2628%2013.407C21.5725%2012.8033%2017.4945%2012.3577%2016.6866%2012.0955ZM5.78815%2014.3074H6.71979L8.73346%2011.9382H7.83307L5.78815%2014.3074ZM7.64362%2014.3074H8.57526L10.588%2011.9382H9.68854L7.64362%2014.3074Z'%20fill='var(--fill-0,%20%235E5B67)'/%3e%3c/g%3e%3c/svg%3e",ep="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.5%2021a1%201%200%200%201-1-1v-3.9l-1.7-2a1.75%201.75%200%200%201%202.6-2.3l.6.7V6.2a1.45%201.45%200%200%201%202.9%200v2.9a1.25%201.25%200%200%201%202.5%200%201.25%201.25%200%200%201%202.5%200%201.25%201.25%200%200%201%202.5%200v4.7a5.5%205.5%200%200%201-5.5%205.5H7.5Z'%20fill='%235E5B67'/%3e%3c/svg%3e",tp="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='HairIcon'%3e%3cpath%20id='Fill%201'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.90903%206.68957C2.64951%208.31027%205.45007%2016.2983%206.37802%2016.4457C6.993%2016.9543%206.68432%2013.2024%208.35893%2011.2067C10.3928%2014.596%2015.8155%2013.5116%2015.8155%2013.5116C15.8155%2013.5116%2017.9863%2015.4901%2016.7697%2019.0678C19.1676%2016.6943%2021.4051%208.18384%2015.5426%205.35227C14.6995%204.94483%2013.7468%204.82985%2012.8112%204.80409C11.0211%204.7559%208.98297%205.1204%208.01303%206.62564'%20fill='var(--fill-0,%20%235E5B67)'/%3e%3c/g%3e%3c/svg%3e",rp="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='LowerBodyIcon'%3e%3cpath%20id='Vector'%20d='M20.3922%2016.5581L18.8251%208.28912V5.88885C18.8251%205.61998%2018.5888%205.4%2018.3001%205.4H5.70002C5.41127%205.4%205.17501%205.61998%205.17501%205.88885V8.28912L3.60788%2016.5581C3.56063%2016.8098%203.73126%2017.0542%203.99901%2017.1178L10.299%2018.5844C10.341%2018.5941%2010.383%2018.599%2010.425%2018.599C10.6534%2018.599%2010.8634%2018.4573%2010.929%2018.2446L11.9528%2014.9082L12.8007%2018.225C12.8322%2018.3522%2012.9188%2018.4597%2013.0369%2018.5281C13.155%2018.5966%2013.2994%2018.6161%2013.4333%2018.5868L19.9958%2017.1202C20.2688%2017.0591%2020.4394%2016.8123%2020.3922%2016.5581ZM17.7751%207.84426H6.22502V6.37771H17.7751V7.84426Z'%20fill='var(--fill-0,%20%235E5B67)'/%3e%3c/g%3e%3c/svg%3e",np="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20.5%2015.2A8.5%208.5%200%201%201%2010.2%203.6a6.7%206.7%200%201%200%2010.3%2011.6Z'%20fill='%235E5B67'/%3e%3c/svg%3e",op="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='UpperBodyIcon'%3e%3cpath%20id='TopIcon'%20d='M14.3596%205.13528C14.537%204.86646%2014.8726%204.72006%2015.1672%204.84621L20.6506%207.81594C20.9417%207.94063%2021.0776%208.27979%2020.9543%208.57375L19.5373%2011.2368C19.4137%2011.5309%2019.0766%2011.6682%2018.7853%2011.5435L17.3713%2010.938L17.9719%2019.2212C17.9719%2019.5406%2017.715%2019.8003%2017.3986%2019.8003H6.61053C6.29436%2019.8001%206.03826%2019.5404%206.03826%2019.2212L6.63787%2010.9048L5.15057%2011.5415C4.85933%2011.6661%204.5231%2011.5288%204.39959%2011.2349L3.04607%208.57278C2.9225%208.27868%203.05842%207.93864%203.34979%207.81399L8.77068%204.84621C9.06528%204.72018%209.40093%204.86646%209.5783%205.13528C9.78488%205.44867%2010.0513%205.72049%2010.3635%205.93313C10.8376%206.256%2011.397%206.42894%2011.9689%206.42922C12.5409%206.42896%2013.1002%206.25602%2013.5744%205.93313C13.8866%205.72052%2014.153%205.44864%2014.3596%205.13528ZM11.1369%209.49172C11.086%209.49172%2011.0405%209.52472%2011.0236%209.57278L9.6242%2013.5532C9.59677%2013.6313%209.65475%2013.7134%209.73748%2013.7134H10.8986C10.9764%2013.7134%2011.0342%2013.7863%2011.0158%2013.8618L10.3019%2016.7866C10.2718%2016.9102%2010.4296%2016.9899%2010.5109%2016.8921L14.2053%2012.4419C14.27%2012.3637%2014.2141%2012.2447%2014.1125%2012.2447H13.1672C13.0777%2012.2447%2013.0194%2012.1506%2013.0597%2012.0708L14.2795%209.66653C14.3199%209.58681%2014.2623%209.49199%2014.173%209.49172H11.1369Z'%20fill='var(--fill-0,%20%235E5B67)'/%3e%3c/g%3e%3c/svg%3e",sp="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2017.8%2019.5778'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group'%3e%3cpath%20id='Vector'%20d='M8.9%200.9V3.34444M12.9%2018.6778H16.9L15.1222%200.9H2.67778L0.900004%2018.6778H4.9L8.9%207.56667L12.9%2018.6778Z'%20stroke='var(--stroke-0,%20white)'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_2'%20d='M5.78888%200.9C5.78888%200.9%205.78888%203.56667%204.89999%204.45556C4.0111%205.34444%202.18888%205.78889%202.18888%205.78889M12.0111%200.9C12.0111%200.9%2012.0111%203.56667%2012.9%204.45556C13.7889%205.34444%2015.6111%205.78889%2015.6111%205.78889'%20stroke='var(--stroke-0,%20white)'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e",ap="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='ExpandMoreFilled'%3e%3cpath%20id='Vector'%20d='M13.825%206.9125L10%2010.7292L6.175%206.9125L5%208.0875L10%2013.0875L15%208.0875L13.825%206.9125Z'%20fill='var(--fill-0,%20%23242129)'/%3e%3c/g%3e%3c/svg%3e",ip="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='12'%20cy='12'%20r='9'%20stroke='%23000'%20stroke-width='2'/%3e%3cpath%20d='M12%207V12L15.5%2014'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",cp="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16%201H4a2%202%200%200%200-2%202v12h2V3h12V1zm3%204H8a2%202%200%200%200-2%202v14a2%202%200%200%200%202%202h11a2%202%200%200%200%202-2V7a2%202%200%200%200-2-2zm0%2016H8V7h11v14z'%20fill='%23000'/%3e%3c/svg%3e",lp="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%201.75a10.25%2010.25%200%201%200%200%2020.5%2010.25%2010.25%200%200%200%200-20.5Zm0%205.9%204.68%208.1a0.9%200.9%200%200%201-0.78%201.35H8.1a0.9%200.9%200%200%201-0.78-1.35L12%207.65Z'%20fill='%23242129'/%3e%3c/svg%3e",up="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16%201.3335C7.89987%201.3335%201.33337%207.89999%201.33337%2016.0002C1.33337%2024.1003%207.89987%2030.6668%2016%2030.6668C24.1002%2030.6668%2030.6667%2024.1003%2030.6667%2016.0002C30.6667%207.89999%2024.1002%201.3335%2016%201.3335ZM8.97013%2010.9972C11.1295%209.39269%2013.1764%209.33459%2013.4239%209.3336C13.4403%209.33353%2013.4488%209.33372%2013.4488%209.33372L13.6088%209.52564C10.7296%2010.3414%209.41797%2011.6051%209.41797%2011.6051C9.41797%2011.6051%209.76991%2011.4131%2010.3617%2011.1572C12.0732%2010.4054%2013.4328%2010.2135%2013.9927%2010.1495L14.0284%2010.1435C14.1091%2010.1297%2014.1807%2010.1175%2014.2646%2010.1175C15.2403%209.98956%2016.344%209.95753%2017.4957%2010.0855C19.0153%2010.2614%2020.6468%2010.7093%2022.3103%2011.6051C22.3103%2011.6051%2021.0467%2010.4054%2018.3275%209.58964L18.5514%209.33372C18.5514%209.33372%2020.7428%209.28572%2023.0301%2010.9972C23.0301%2010.9972%2025.3335%2015.1401%2025.3335%2020.2426C25.3335%2020.2418%2025.3297%2020.2474%2025.3222%2020.2587C25.1861%2020.4629%2023.8039%2022.5358%2020.4549%2022.6419C20.4549%2022.6419%2019.879%2021.9542%2019.3992%2021.3623C21.4946%2020.7705%2022.2943%2019.4749%2022.2943%2019.4749C21.6385%2019.9067%2021.0147%2020.2106%2020.4549%2020.4186C19.6551%2020.7545%2018.8873%2020.9624%2018.1355%2021.1063C16.5999%2021.3943%2015.1923%2021.3143%2013.9927%2021.0904C13.0809%2020.9144%2012.2971%2020.6745%2011.6413%2020.4026C11.2734%2020.2586%2010.8736%2020.0826%2010.4737%2019.8587C10.4497%2019.8427%2010.4257%2019.8307%2010.4017%2019.8187L10.4017%2019.8187L10.4016%2019.8187C10.3777%2019.8067%2010.3537%2019.7947%2010.3297%2019.7787C10.3175%2019.7726%2010.3076%2019.7665%2010.2992%2019.7613C10.2855%2019.7529%2010.2757%2019.7468%2010.2658%2019.7468C9.97786%2019.5868%209.81787%2019.4749%209.81787%2019.4749C9.81787%2019.4749%2010.5856%2020.7385%2012.6171%2021.3463C12.1372%2021.9541%2011.5454%2022.6579%2011.5454%2022.6579C8.01038%2022.5459%206.66679%2020.2426%206.66679%2020.2426C6.66679%2015.1401%208.97013%2010.9972%208.97013%2010.9972ZM14.6485%2016.9955C14.6645%2016.0198%2013.9287%2015.236%2013.017%2015.236C12.1053%2015.236%2011.3855%2016.0198%2011.3855%2016.9955C11.3855%2017.9712%2012.1213%2018.755%2013.017%2018.755C13.9287%2018.755%2014.6485%2017.9712%2014.6485%2016.9955ZM18.8552%2015.236C19.751%2015.236%2020.4868%2016.0198%2020.4868%2016.9955C20.4868%2017.9712%2019.767%2018.755%2018.8552%2018.755C17.9595%2018.755%2017.2237%2017.9712%2017.2237%2016.9955C17.2237%2016.0198%2017.9435%2015.236%2018.8552%2015.236Z'%20fill='white'/%3e%3c/svg%3e",dp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M19%203.2%209.5%205.3v9.9A3.6%203.6%200%201%200%2011.5%2018.4V9.1L17%207.9v4.3a3.6%203.6%200%201%200%202-3.24V3.2Z'/%3e%3c/svg%3e",fp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill-rule='evenodd'%3e%3cpath%20d='M12%202a10%2010%200%201%200%200%2020%2010%2010%200%200%200%200-20ZM8.8%208.6a1.4%201.4%200%201%201%200%202.8%201.4%201.4%200%200%201%200-2.8Zm6.4%200a1.4%201.4%200%201%201%200%202.8%201.4%201.4%200%200%201%200-2.8ZM6.9%2013.9h10.2a5.1%205.1%200%200%201-10.2%200Z'/%3e%3c/svg%3e",hp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M8.5%2022A5.5%205.5%200%200%201%203%2016.5v-3.3a1.25%201.25%200%200%201%202.5%200v1.8h.5V5.4a1.3%201.3%200%200%201%202.6%200V11h.5V4.1a1.3%201.3%200%200%201%202.6%200V11h.5V4.7a1.3%201.3%200%200%201%202.6%200V11h.5V6.9a1.25%201.25%200%200%201%202.5%200v7.6A7.5%207.5%200%200%201%2010%2022Z'/%3e%3c/svg%3e",pp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill-rule='evenodd'%3e%3cpath%20d='M12%202a8%208%200%200%200-8%208v11.2a.7.7%200%200%200%201.15.54L7.2%2020l2.05%201.7a.7.7%200%200%200%20.9%200L12%2020l1.85%201.7a.7.7%200%200%200%20.9%200L16.8%2020l2.05%201.74A.7.7%200%200%200%2020%2021.2V10a8%208%200%200%200-8-8ZM9.3%208.8a1.5%201.5%200%201%200%200%203%201.5%201.5%200%200%200%200-3Zm5.4%200a1.5%201.5%200%201%200%200%203%201.5%201.5%200%200%200%200-3Z'/%3e%3c/svg%3e",mp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M6.5%205a2.4%202.4%200%201%201%200%204.8%202.4%202.4%200%200%201%200-4.8Zm11%200a2.4%202.4%200%201%201%200%204.8%202.4%202.4%200%200%201%200-4.8Zm-11%209.2a2.4%202.4%200%201%201%200%204.8%202.4%202.4%200%200%201%200-4.8Zm11%200a2.4%202.4%200%201%201%200%204.8%202.4%202.4%200%200%201%200-4.8Z'/%3e%3c/svg%3e",gp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M12%202.2a2.5%202.5%200%201%201%200%205%202.5%202.5%200%200%201%200-5ZM9.2%208.2h5.6a2%202%200%200%201%202%202v4.6a1%201%200%200%201-2%200v-3.3h-.5v9.3a1.1%201.1%200%200%201-2.2%200v-5.3h-.6v5.3a1.1%201.1%200%200%201-2.2%200v-9.3h-.5v3.3a1%201%200%200%201-2%200v-4.6a2%202%200%200%201%202-2Z'/%3e%3c/svg%3e",yp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill-rule='evenodd'%3e%3cpath%20d='M4%203.5h16a2.5%202.5%200%200%201%202.5%202.5v8a2.5%202.5%200%200%201-2.5%202.5h-7.3l-4.7%203.9a.7.7%200%200%201-1.15-.54V16.5H4A2.5%202.5%200%200%201%201.5%2014V6A2.5%202.5%200%200%201%204%203.5ZM8%208.7a1.3%201.3%200%201%200%200%202.6%201.3%201.3%200%200%200%200-2.6Zm4%200a1.3%201.3%200%201%200%200%202.6%201.3%201.3%200%200%200%200-2.6Zm4%200a1.3%201.3%200%201%200%200%202.6%201.3%201.3%200%200%200%200-2.6Z'/%3e%3c/svg%3e",vp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M13.6%202%204.5%2013.4a.7.7%200%200%200%20.55%201.14H10l-1.1%207.02a.55.55%200%200%200%20.99.42l9.6-11.98a.7.7%200%200%200-.55-1.14H13.2l1.35-6.06A.55.55%200%200%200%2013.6%202Z'/%3e%3c/svg%3e",bp="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='mdi:ethereum'%3e%3crect%20width='16'%20height='16'%20rx='8'%20fill='url(%23paint0_linear_0_1668)'/%3e%3cpath%20id='Vector'%20d='M7.58334%201.99997L4%208.01999L7.58334%2010.17L11.1667%208.01999L7.58334%201.99997ZM4%208.73665L7.58334%2013.7533L11.1667%208.73665L7.58334%2010.8867L4%208.73665Z'%20fill='var(--fill-0,%20%23FCFCFC)'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_0_1668'%20x1='8'%20y1='0'%20x2='8'%20y2='16'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%230E0E0E'/%3e%3cstop%20offset='1'%20stop-color='%23787878'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",wp="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M19%2019H5V5h7V3H5a2%202%200%200%200-2%202v14a2%202%200%200%200%202%202h14a2%202%200%200%200%202-2v-7h-2v7zM14%203v2h3.59l-9.83%209.83%201.41%201.41L19%206.41V10h2V3h-7z'%20fill='%23000'/%3e%3c/svg%3e",_p="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16%201.3335C7.89987%201.3335%201.33337%207.89999%201.33337%2016.0002C1.33337%2024.1003%207.89987%2030.6668%2016%2030.6668C24.1002%2030.6668%2030.6667%2024.1003%2030.6667%2016.0002C30.6667%207.89999%2024.1002%201.3335%2016%201.3335ZM18.0025%208.00024L20.1612%208.00357C20.3484%208.00391%2020.5001%208.14989%2020.5001%208.32982V10.7724C20.5001%2010.9525%2020.3482%2011.0986%2020.1609%2011.0986L18.7067%2011.0991C17.7041%2011.0991%2017.5207%2011.4746%2017.5207%2012.2143V13.7534H20.0594C20.1494%2013.7534%2020.236%2013.7878%2020.2996%2013.8491C20.3631%2013.9103%2020.399%2013.9932%2020.399%2014.0798L20.3979%2016.7103C20.3979%2016.8905%2020.2461%2017.0365%2020.0585%2017.0365H17.5207V23.674C17.5207%2023.8541%2017.3689%2024.0002%2017.1813%2024.0002H14.3495C14.1619%2024.0002%2014.01%2023.8543%2014.01%2023.674V17.0365H11.8396C11.6522%2017.0365%2011.5001%2016.8905%2011.5001%2016.7103V14.0798C11.5001%2013.8995%2011.652%2013.7534%2011.8396%2013.7534H14.01V11.9379C14.01%209.54576%2015.5773%208.00024%2018.0025%208.00024Z'%20fill='white'/%3e%3c/svg%3e",Ep="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='currentColor'%20d='M4.25%205.61C6.27%208.2%2010%2013%2010%2013v6c0%20.55.45%201%201%201h2c.55%200%201-.45%201-1v-6s3.72-4.8%205.74-7.39A.998.998%200%200%200%2018.95%204H5.04c-.83%200-1.3.95-.79%201.61z'/%3e%3c/svg%3e",xp="data:image/svg+xml,%3csvg%20viewBox='0%200%2014.4093%2021'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.630405%201.06971C0.118387%201.27166%20-0.132525%201.85083%200.0703418%202.36248L4.5%208.65001L6%2011.9743L2.91857%2015L0.947687%2019.8337C0.843152%2020.4432%201.31259%2021%201.93098%2021C2.42738%2021%202.84826%2020.635%202.91857%2020.1437L4.64492%2016.1279L8.58256%2012.9801L7.80317%2019.8459C7.73334%2020.4611%208.21456%2021%208.8337%2021C9.35359%2021%209.79314%2020.6151%209.86178%2020.0998L10.9439%2011.9743L10.4357%208.65001L14.2341%203.18092C14.6814%202.53679%2014.2205%201.65543%2013.4362%201.65543C13.113%201.65543%2012.8109%201.81622%2012.6304%202.08436L10.6697%204.85006C9.93601%205.88499%208.74611%206.5%207.4775%206.5C6.23405%206.5%205.06462%205.90901%204.32709%204.9079L1.93098%201.65543C1.73952%201.12899%201.15151%200.864182%200.630405%201.06971Z'%20fill='%23000'/%3e%3ccircle%20cx='7.50271'%20cy='2.50271'%20r='2.50271'%20fill='%23000'/%3e%3c/svg%3e",Sp="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='12'%20cy='8'%20r='5.5'%20stroke='%23000'%20stroke-width='2'/%3e%3cpath%20d='M12%2013.5V22M8.5%2018.5h7'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'/%3e%3c/svg%3e",Cp="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='9.5'%20cy='14.5'%20r='5.5'%20stroke='%23000'%20stroke-width='2'/%3e%3cpath%20d='M13.4%2010.6%2020%204M14.5%204H20v5.5'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Tp="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='12'%20cy='12'%20r='4.5'%20stroke='%23000'%20stroke-width='2'/%3e%3cpath%20d='M15.4%208.6%2020%204M15%204h5v5'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12%2016.5V21M9%2019h6'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'/%3e%3c/svg%3e",Ap="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Favourite'%3e%3cpath%20id='heart%20icn'%20d='M6.17811%203.05867H6.19666C6.80699%203.05543%207.41165%203.18384%207.9701%203.43562C8.24268%203.55854%208.50168%203.70952%208.74256%203.88582C8.99505%204.07064%209.22797%204.28333%209.4369%204.52058L10.0004%205.16023L10.5629%204.52058C10.7719%204.28322%2011.0056%204.0707%2011.2582%203.88582C11.4991%203.70952%2011.758%203.55853%2012.0306%203.43562C12.5891%203.18387%2013.1938%203.05538%2013.8041%203.05867H13.8217C14.3276%203.04916%2014.8305%203.14205%2015.3012%203.33211C15.7719%203.5222%2016.2012%203.80588%2016.5639%204.16707C16.9265%204.52829%2017.2153%204.9597%2017.4125%205.4366C17.6097%205.91346%2017.7114%206.42568%2017.7113%206.94343C17.7113%208.58332%2016.9202%2010.1174%2015.6849%2011.5919C14.4485%2013.0677%2012.8407%2014.4001%2011.3295%2015.6495C11.0556%2015.8759%2010.7842%2016.0996%2010.5219%2016.3194C10.2242%2016.5685%209.78111%2016.5679%209.4828%2016.3165C9.19652%2016.0752%208.89983%2015.8289%208.59999%2015.5802C7.09694%2014.3334%205.50709%2013.0123%204.28651%2011.5499C3.06753%2010.0893%202.28846%208.57068%202.28846%206.94343C2.28839%206.42571%202.39012%205.91344%202.58729%205.4366C2.78449%204.95973%203.07328%204.52828%203.43592%204.16707C3.79856%203.80588%204.2279%203.52221%204.69862%203.33211C5.1693%203.14203%205.6722%203.04918%206.17811%203.05867Z'%20fill='var(--fill-0,%20%23242129)'/%3e%3c/g%3e%3c/svg%3e",Ip="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Favourite'%3e%3cpath%20id='heart%20icn'%20d='M6.17811%203.05867H6.19666C6.80699%203.05543%207.41165%203.18384%207.9701%203.43562C8.24268%203.55854%208.50168%203.70952%208.74256%203.88582C8.99505%204.07064%209.22797%204.28333%209.4369%204.52058L10.0004%205.16023L10.5629%204.52058C10.7719%204.28322%2011.0056%204.0707%2011.2582%203.88582C11.4991%203.70952%2011.758%203.55853%2012.0306%203.43562C12.5891%203.18387%2013.1938%203.05538%2013.8041%203.05867H13.8217C14.3276%203.04916%2014.8305%203.14205%2015.3012%203.33211C15.7719%203.5222%2016.2012%203.80588%2016.5639%204.16707C16.9265%204.52829%2017.2153%204.9597%2017.4125%205.4366C17.6097%205.91346%2017.7114%206.42568%2017.7113%206.94343C17.7113%208.58332%2016.9202%2010.1174%2015.6849%2011.5919C14.4485%2013.0677%2012.8407%2014.4001%2011.3295%2015.6495C11.0556%2015.8759%2010.7842%2016.0996%2010.5219%2016.3194C10.2242%2016.5685%209.78111%2016.5679%209.4828%2016.3165C9.19652%2016.0752%208.89983%2015.8289%208.59999%2015.5802C7.09694%2014.3334%205.50709%2013.0123%204.28651%2011.5499C3.06753%2010.0893%202.28846%208.57068%202.28846%206.94343C2.28839%206.42571%202.39012%205.91344%202.58729%205.4366C2.78449%204.95973%203.07328%204.52828%203.43592%204.16707C3.79856%203.80588%204.2279%203.52221%204.69862%203.33211C5.1693%203.14203%205.6722%203.04918%206.17811%203.05867Z'%20stroke='var(--stroke-0,%20%23242129)'%20stroke-width='1.5'/%3e%3c/g%3e%3c/svg%3e",kp="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2060%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group'%3e%3cpath%20id='Vector'%20d='M30%2060C46.5685%2060%2060%2046.5685%2060%2030C60%2013.4315%2046.5685%200%2030%200C13.4315%200%200%2013.4315%200%2030C0%2046.5685%2013.4315%2060%2030%2060Z'%20fill='url(%23paint0_linear_0_1856)'/%3e%3cpath%20id='Vector_2'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M21.2549%2019.4982V41.9982H40.0049L21.2549%2019.4982Z'%20fill='url(%23paint1_linear_0_1856)'/%3e%3cpath%20id='Vector_3'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.50488%2041.9982H21.2549V19.4982L2.50488%2041.9982Z'%20fill='var(--fill-0,%20white)'/%3e%3cpath%20id='Vector_4'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.00023%2048.0018C7.71023%2050.2668%209.73523%2052.2918%2012.0002%2054.0018H48.0002C50.2652%2052.2918%2052.2902%2050.2668%2054.0002%2048.0018H6.00023Z'%20fill='var(--fill-0,%20%23FC9965)'/%3e%3cpath%20id='Vector_5'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.0005%2053.9964C17.0105%2057.7614%2023.2505%2059.9964%2030.0005%2059.9964C36.7505%2059.9964%2042.9905%2057.7614%2048.0005%2053.9964H12.0005Z'%20fill='var(--fill-0,%20%23FF2D55)'/%3e%3cpath%20id='Vector_6'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M40.2449%2031.4964V47.9964H53.9999L40.2449%2031.4964Z'%20fill='url(%23paint2_linear_0_1856)'/%3e%3cpath%20id='Vector_7'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M40.2449%2041.9982H2.50488C3.43488%2044.1432%204.61988%2046.1532%205.99988%2047.9982H40.2599V41.9982H40.2449V41.9982Z'%20fill='var(--fill-0,%20%23FFBC5B)'/%3e%3cpath%20id='Vector_8'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M26.5047%2047.9964H40.2447V31.4964L26.5047%2047.9964Z'%20fill='var(--fill-0,%20white)'/%3e%3cpath%20id='Vector_9'%20d='M40.2449%2026.9982C44.387%2026.9982%2047.7449%2023.6403%2047.7449%2019.4982C47.7449%2015.3561%2044.387%2011.9982%2040.2449%2011.9982C36.1028%2011.9982%2032.7449%2015.3561%2032.7449%2019.4982C32.7449%2023.6403%2036.1028%2026.9982%2040.2449%2026.9982Z'%20fill='var(--fill-0,%20%23FFC95B)'/%3e%3cpath%20id='Vector_10'%20d='M21.255%2015C23.3261%2015%2025.005%2013.3211%2025.005%2011.25C25.005%209.17893%2023.3261%207.5%2021.255%207.5C19.1839%207.5%2017.505%209.17893%2017.505%2011.25C17.505%2013.3211%2019.1839%2015%2021.255%2015Z'%20fill='var(--fill-0,%20%23FFC95B)'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_0_1856'%20x1='51.213'%20y1='8.787'%20x2='8.787'%20y2='51.213'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_0_1856'%20x1='30.6235'%20y1='19.4982'%20x2='30.6235'%20y2='41.9982'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A524B3'/%3e%3cstop%20offset='1'%20stop-color='%23FF2D55'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_0_1856'%20x1='47.1177'%20y1='31.4964'%20x2='47.1177'%20y2='47.9964'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A524B3'/%3e%3cstop%20offset='1'%20stop-color='%23FF2D55'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",Rp="data:image/svg+xml,%3csvg%20width='100%25'%20height='100%25'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3%2017.25V21h3.75L17.81%209.94l-3.75-3.75L3%2017.25zM20.71%207.04c.39-.39.39-1.02%200-1.41l-2.34-2.34a.9959.9959%200%2000-1.41%200l-1.83%201.83%203.75%203.75%201.83-1.83z'%20fill='%23000'/%3e%3c/svg%3e",Pp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='currentColor'%20d='M11%205h2v6h6v2h-6v6h-2v-6H5v-2h6z'/%3e%3c/svg%3e",Np="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2021.3333%2020.7151'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='search%20copy'%3e%3cg%20id='bounds'%3e%3c/g%3e%3cpath%20id='icon'%20d='M9.4032%203.45251C12.6323%203.45276%2015.2498%205.99465%2015.2499%209.13025C15.2499%2010.2591%2014.9095%2011.3103%2014.3245%2012.1943C14.3033%2012.2264%2014.3121%2012.2656%2014.3397%2012.2924L17.4296%2015.2924C17.8936%2015.743%2017.8935%2016.4735%2017.4296%2016.9242C16.9654%2017.3748%2016.213%2017.3748%2015.7489%2016.9242L12.6591%2013.9242C12.6315%2013.8974%2012.5925%2013.8886%2012.5598%2013.909C11.6491%2014.4775%2010.5654%2014.808%209.40222%2014.808C6.17313%2014.8077%203.55554%2012.2658%203.55554%209.13025C3.55556%205.99453%206.1739%203.45251%209.4032%203.45251ZM9.40222%205.42126C7.2926%205.42147%205.58291%207.08166%205.58289%209.13025C5.58289%2011.1788%207.29252%2012.84%209.40222%2012.8402C11.512%2012.8402%2013.2225%2011.1789%2013.2225%209.13025C13.2225%207.08159%2011.512%205.42126%209.40222%205.42126Z'%20fill='var(--fill-0,%20%23242129)'/%3e%3c/g%3e%3c/svg%3e",Op="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4%208v5c0%201%20.8%201.8%202%202h13c1%200%202-.6%202-1.6%200-.7-.4-1.2-1-1.5L11%208V6H4Z'%20stroke='%23000'%20stroke-width='2'%20stroke-linejoin='round'/%3e%3c/svg%3e",jp="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%2021v-9c-2%200-3-1.6-3-3%200-1%201-1.6%202-1l1%201V5c0-1%202-1%202%200v4h6c1%200%202%20.8%202%202v5c0%203-2%205-5%205H8Z'%20stroke='%23000'%20stroke-width='2'%20stroke-linejoin='round'/%3e%3c/svg%3e",Lp="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='12'%20cy='8'%20r='4'%20stroke='%23000'%20stroke-width='2'/%3e%3cpath%20d='M5%2020c0-3.9%203.1-7%207-7s7%203.1%207%207'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'/%3e%3c/svg%3e",Bp="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3%2012%2012%203h8v8l-9%209-8-8Z'%20stroke='%23000'%20stroke-width='2'%20stroke-linejoin='round'/%3e%3ccircle%20cx='16.5'%20cy='7.5'%20r='1.5'%20fill='%23000'/%3e%3c/svg%3e",Mp="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7%203h10l-1%2018h-3L12%2010l-1%2011H8L7%203Z'%20stroke='%23000'%20stroke-width='2'%20stroke-linejoin='round'/%3e%3c/svg%3e",Fp="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%203%204%206l2%204%202-1v9h8v-9l2%201%202-4-5-3c-.5%201.6-5.5%201.6-6%200Z'%20stroke='%23000'%20stroke-width='2'%20stroke-linejoin='round'/%3e%3c/svg%3e",$p="data:image/svg+xml,%3csvg%20width='19'%20height='18'%20viewBox='0%200%2019%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.17684%207.94806C9.12161%207.94806%209.07684%207.90329%209.07684%207.84806V2.6359C9.07684%202.53961%208.95409%202.49895%208.89661%202.57621L3.63031%209.65401C3.50759%209.81893%203.62531%2010.0532%203.83088%2010.0532H6.823C6.87823%2010.0532%206.923%2010.098%206.923%2010.1532V15.3654C6.923%2015.4617%207.04575%2015.5024%207.10323%2015.4251L12.3695%208.3473C12.4922%208.18237%2012.3745%207.94806%2012.169%207.94806H9.17684Z'%20fill='white'%20stroke='white'%20stroke-width='0.75'/%3e%3c/svg%3e",Dp="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4%207h16M9%207V5c0-.6.4-1%201-1h4c.6%200%201%20.4%201%201v2m2%200-1%2013c0%20.6-.4%201-1%201H8c-.6%200-1-.4-1-1L6%207'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",qp="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16%201.3335C7.89987%201.3335%201.33337%207.89999%201.33337%2016.0002C1.33337%2024.1003%207.89987%2030.6668%2016%2030.6668C24.1002%2030.6668%2030.6667%2024.1003%2030.6667%2016.0002C30.6667%207.89999%2024.1002%201.3335%2016%201.3335ZM23.2822%2010.9531C24.0001%2010.9531%2024.7181%2010.7452%2025.3335%2010.4335C24.8206%2011.1609%2024.2052%2011.8883%2023.5899%2012.304V12.8236C23.5899%2017.6038%2020.0001%2023.1114%2013.436%2023.1114C11.4873%2023.1114%209.53858%2022.4879%208.00012%2021.4487H8.82063C10.4617%2021.4487%2012.0001%2020.8252%2013.2309%2019.8899C11.5899%2019.8899%2010.2565%2018.8508%209.84628%2017.3959C10.154%2017.4998%2010.3591%2017.4998%2010.5642%2017.4998C10.8719%2017.4998%2011.1796%2017.4998%2011.4873%2017.3959C9.84628%2017.0842%208.61551%2015.6293%208.61551%2013.8628C9.12833%2014.0706%209.64115%2014.2784%2010.2565%2014.2784C9.23089%2013.6549%208.61551%2012.5118%208.61551%2011.2648C8.61551%2010.5374%208.82063%209.91391%209.12833%209.39433C10.8719%2011.5766%2013.5386%2013.0314%2016.5129%2013.1353C16.4104%2012.8236%2016.4104%2012.6158%2016.4104%2012.304V12.304C16.4104%2010.3296%2018.0514%208.66691%2020.0001%208.66691C21.0258%208.66691%2021.9488%209.08258%2022.5642%209.81C23.3847%209.70608%2024.1027%209.39433%2024.8206%208.97866C24.6155%209.81%2024.0001%2010.5374%2023.2822%2010.9531Z'%20fill='white'/%3e%3c/svg%3e",Up="data:image/svg+xml,%3csvg%20width='100%25'%20height='100%25'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11%2014V6.83L8.41%209.41%207%208l5-5%205%205-1.41%201.41L13%206.83V14h-2zM5%2021c-.55%200-1.02-.196-1.412-.587A1.926%201.926%200%20013%2019v-3h2v3h14v-3h2v3c0%20.55-.196%201.02-.588%201.413A1.926%201.926%200%200119%2021H5z'%20fill='%23000'/%3e%3c/svg%3e",Vp="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Icon%20Right'%3e%3cpath%20id='Vector'%20d='M9.705%206L8.295%207.41L12.875%2012L8.295%2016.59L9.705%2018L15.705%2012L9.705%206Z'%20fill='var(--fill-0,%20%23691FA9)'/%3e%3c/g%3e%3c/svg%3e",Hp="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16%201.3335C7.89987%201.3335%201.33337%207.89999%201.33337%2016.0002C1.33337%2024.1003%207.89987%2030.6668%2016%2030.6668C24.1002%2030.6668%2030.6667%2024.1003%2030.6667%2016.0002C30.6667%207.89999%2024.1002%201.3335%2016%201.3335ZM23.0696%208.93076C19.162%205.02309%2012.8376%205.02372%208.93064%208.93076C5.02301%2012.8384%205.02356%2019.1627%208.93064%2023.0697C12.8382%2026.9774%2019.1626%2026.9768%2023.0696%2023.0697C26.9773%2019.1621%2026.9767%2012.8378%2023.0696%208.93076ZM10.842%2020.5386C10.3153%2020.8572%209.81563%2021.2269%209.34851%2021.6446C8.1448%2020.2307%207.43241%2018.4914%207.29951%2016.6374H10.2389C10.2876%2018.0129%2010.4939%2019.3361%2010.842%2020.5386ZM21.7614%2016.6374H24.7008C24.5678%2018.4914%2023.8555%2020.2307%2022.6518%2021.6446C22.1846%2021.2269%2021.685%2020.8572%2021.1583%2020.5386C21.5064%2019.3361%2021.7126%2018.0129%2021.7614%2016.6374ZM21.1583%2011.4619C21.6849%2011.1433%2022.1846%2010.7736%2022.6517%2010.3559C23.8555%2011.7699%2024.5678%2013.5091%2024.7008%2015.3631H21.7614C21.7126%2013.9876%2021.5064%2012.6644%2021.1583%2011.4619ZM19.607%2010.8411C18.6782%2011.2633%2017.6763%2011.5192%2016.6372%2011.5936V7.36829C18.071%207.78174%2019.0668%209.45011%2019.607%2010.8411ZM16.6372%2015.3632V12.8702C17.8128%2012.7969%2018.9479%2012.5214%2020.0035%2012.0599C20.2776%2013.0823%2020.4425%2014.1996%2020.4866%2015.3632H16.6372ZM16.6372%2019.1304V16.6374H20.4866C20.4425%2017.801%2020.2776%2018.9183%2020.0035%2019.9406C18.9479%2019.4792%2017.8128%2019.2036%2016.6372%2019.1304ZM16.6372%2024.6322V20.407C17.6763%2020.4813%2018.6782%2020.7372%2019.607%2021.1594C19.0667%2022.5506%2018.0709%2024.2188%2016.6372%2024.6322ZM12.3933%2021.1594C13.3221%2020.7372%2014.3239%2020.4813%2015.363%2020.407V24.6322C13.9293%2024.2188%2012.9335%2022.5505%2012.3933%2021.1594ZM15.363%2016.6374V19.1304C14.1875%2019.2036%2013.0523%2019.4792%2011.9968%2019.9406C11.7226%2018.9183%2011.5577%2017.801%2011.5136%2016.6374H15.363ZM15.363%2012.8702V15.3632H11.5136C11.5577%2014.1996%2011.7226%2013.0823%2011.9968%2012.0599C13.0523%2012.5214%2014.1875%2012.7969%2015.363%2012.8702ZM15.363%207.36833V11.5936C14.3239%2011.5192%2013.3221%2011.2633%2012.3933%2010.8412C12.9334%209.45014%2013.9293%207.78178%2015.363%207.36833ZM10.2428%209.44663C10.9249%208.84579%2011.6857%208.36154%2012.5013%208.00441C11.9912%208.67363%2011.5854%209.43801%2011.2678%2010.2246C10.91%209.99244%2010.5675%209.73288%2010.2428%209.44663ZM21.7575%209.44663C21.4328%209.73288%2021.0902%209.99244%2020.7325%2010.2246C20.4148%209.43808%2020.009%208.67371%2019.499%208.00441C20.3145%208.36154%2021.0754%208.84579%2021.7575%209.44663ZM19.4989%2023.9961C20.009%2023.3269%2020.4148%2022.5625%2020.7325%2021.776C21.0902%2022.0081%2021.4328%2022.2677%2021.7574%2022.5539C21.0754%2023.1547%2020.3145%2023.639%2019.4989%2023.9961ZM10.2428%2022.5539C10.5675%2022.2677%2010.91%2022.0081%2011.2678%2021.776C11.5854%2022.5625%2011.9913%2023.327%2012.5013%2023.9961C11.6857%2023.639%2010.9249%2023.1547%2010.2428%2022.5539ZM10.8419%2011.4619C10.4938%2012.6644%2010.2876%2013.9877%2010.2388%2015.3632H7.29947C7.43241%2013.5091%208.14476%2011.7699%209.34847%2010.356C9.81563%2010.7737%2010.3153%2011.1433%2010.8419%2011.4619Z'%20fill='white'/%3e%3c/svg%3e",zp=Object.assign({"../../assets/icons/arrow-left.svg":W1,"../../assets/icons/bell.svg":Z1,"../../assets/icons/carousel-arrow.svg":K1,"../../assets/icons/cart-solid.svg":Y1,"../../assets/icons/cart.svg":Q1,"../../assets/icons/cat-accessories.svg":J1,"../../assets/icons/cat-feet.svg":X1,"../../assets/icons/cat-handwear.svg":ep,"../../assets/icons/cat-head.svg":tp,"../../assets/icons/cat-lower.svg":rp,"../../assets/icons/cat-skins.svg":np,"../../assets/icons/cat-upper.svg":op,"../../assets/icons/category-eyewear.svg":sp,"../../assets/icons/chevron-down.svg":ap,"../../assets/icons/clock.svg":ip,"../../assets/icons/copy.svg":cp,"../../assets/icons/credits.svg":lp,"../../assets/icons/discord.svg":up,"../../assets/icons/emote-dance.svg":dp,"../../assets/icons/emote-fun.svg":fp,"../../assets/icons/emote-greetings.svg":hp,"../../assets/icons/emote-horror.svg":pp,"../../assets/icons/emote-misc.svg":mp,"../../assets/icons/emote-poses.svg":gp,"../../assets/icons/emote-reactions.svg":yp,"../../assets/icons/emote-stunt.svg":vp,"../../assets/icons/ethereum.svg":bp,"../../assets/icons/external-link.svg":wp,"../../assets/icons/facebook.svg":_p,"../../assets/icons/filter.svg":Ep,"../../assets/icons/fitting-room.svg":xp,"../../assets/icons/gender-female.svg":Sp,"../../assets/icons/gender-male.svg":Cp,"../../assets/icons/gender-unisex.svg":Tp,"../../assets/icons/heart-solid.svg":Ap,"../../assets/icons/heart.svg":Ip,"../../assets/icons/mana-logo.svg":kp,"../../assets/icons/pen.svg":Rp,"../../assets/icons/plus.svg":Pp,"../../assets/icons/search.svg":Np,"../../assets/icons/slot-feet.svg":Op,"../../assets/icons/slot-hands.svg":jp,"../../assets/icons/slot-head.svg":Lp,"../../assets/icons/slot-item.svg":Bp,"../../assets/icons/slot-lower.svg":Mp,"../../assets/icons/slot-upper.svg":Fp,"../../assets/icons/smart.svg":$p,"../../assets/icons/trash.svg":Dp,"../../assets/icons/twitter.svg":qp,"../../assets/icons/upload.svg":Up,"../../assets/icons/view-all-arrow.svg":Vp,"../../assets/icons/website.svg":Hp}),Y2={};for(const[e,t]of Object.entries(zp))Y2[e.slice(e.lastIndexOf("/")+1,-4)]=t;function _t({name:e,size:t,className:r,style:n,...o}){const s=Y2[e],i={"--icon-url":s?`url("${s}")`:void 0,...t!=null?{width:t,height:t}:null,...n},u=o["aria-label"]==null&&o.role==null;return f.jsx("span",{"aria-hidden":u||void 0,...o,className:r?`ico ${r}`:"ico",style:i})}function Ke(){return Ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ke.apply(null,arguments)}function Gp(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Wp(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Zp=(function(){function e(r){var n=this;this._insertTag=function(o){var s;n.tags.length===0?n.insertionPoint?s=n.insertionPoint.nextSibling:n.prepend?s=n.container.firstChild:s=n.before:s=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,s),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Wp(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Gp(o);try{s.insertRule(n,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e})(),Lt="-ms-",_a="-moz-",ze="-webkit-",Q2="comm",hl="rule",pl="decl",Kp="@import",J2="@keyframes",Yp="@layer",Qp=Math.abs,Ta=String.fromCharCode,Jp=Object.assign;function Xp(e,t){return It(e,0)^45?(((t<<2^It(e,0))<<2^It(e,1))<<2^It(e,2))<<2^It(e,3):0}function X2(e){return e.trim()}function em(e,t){return(e=t.exec(e))?e[0]:e}function Ge(e,t,r){return e.replace(t,r)}function zc(e,t){return e.indexOf(t)}function It(e,t){return e.charCodeAt(t)|0}function Ho(e,t,r){return e.slice(t,r)}function Ir(e){return e.length}function ml(e){return e.length}function ea(e,t){return t.push(e),e}function tm(e,t){return e.map(t).join("")}var Aa=1,po=1,ef=0,Yt=0,gt=0,vo="";function Ia(e,t,r,n,o,s,i){return{value:e,root:t,parent:r,type:n,props:o,children:s,line:Aa,column:po,length:i,return:""}}function To(e,t){return Jp(Ia("",null,null,"",null,null,0),e,{length:-e.length},t)}function rm(){return gt}function nm(){return gt=Yt>0?It(vo,--Yt):0,po--,gt===10&&(po=1,Aa--),gt}function rr(){return gt=Yt<ef?It(vo,Yt++):0,po++,gt===10&&(po=1,Aa++),gt}function Rr(){return It(vo,Yt)}function ma(){return Yt}function ns(e,t){return Ho(vo,e,t)}function zo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function tf(e){return Aa=po=1,ef=Ir(vo=e),Yt=0,[]}function rf(e){return vo="",e}function ga(e){return X2(ns(Yt-1,Gc(e===91?e+2:e===40?e+1:e)))}function om(e){for(;(gt=Rr())&><33;)rr();return zo(e)>2||zo(gt)>3?"":" "}function sm(e,t){for(;--t&&rr()&&!(gt<48||gt>102||gt>57&><65||gt>70&><97););return ns(e,ma()+(t<6&&Rr()==32&&rr()==32))}function Gc(e){for(;rr();)switch(gt){case e:return Yt;case 34:case 39:e!==34&&e!==39&&Gc(gt);break;case 40:e===41&&Gc(e);break;case 92:rr();break}return Yt}function am(e,t){for(;rr()&&e+gt!==57;)if(e+gt===84&&Rr()===47)break;return"/*"+ns(t,Yt-1)+"*"+Ta(e===47?e:rr())}function im(e){for(;!zo(Rr());)rr();return ns(e,Yt)}function cm(e){return rf(ya("",null,null,null,[""],e=tf(e),0,[0],e))}function ya(e,t,r,n,o,s,i,u,d){for(var h=0,p=0,m=i,b=0,E=0,A=0,g=1,T=1,H=1,v=0,k="",w=o,Y=s,q=n,S=k;T;)switch(A=v,v=rr()){case 40:if(A!=108&&It(S,m-1)==58){zc(S+=Ge(ga(v),"&","&\f"),"&\f")!=-1&&(H=-1);break}case 34:case 39:case 91:S+=ga(v);break;case 9:case 10:case 13:case 32:S+=om(A);break;case 92:S+=sm(ma()-1,7);continue;case 47:switch(Rr()){case 42:case 47:ea(lm(am(rr(),ma()),t,r),d);break;default:S+="/"}break;case 123*g:u[h++]=Ir(S)*H;case 125*g:case 59:case 0:switch(v){case 0:case 125:T=0;case 59+p:H==-1&&(S=Ge(S,/\f/g,"")),E>0&&Ir(S)-m&&ea(E>32?Eu(S+";",n,r,m-1):Eu(Ge(S," ","")+";",n,r,m-2),d);break;case 59:S+=";";default:if(ea(q=_u(S,t,r,h,p,o,u,k,w=[],Y=[],m),s),v===123)if(p===0)ya(S,t,q,q,w,s,m,u,Y);else switch(b===99&&It(S,3)===110?100:b){case 100:case 108:case 109:case 115:ya(e,q,q,n&&ea(_u(e,q,q,0,0,o,u,k,o,w=[],m),Y),o,Y,m,u,n?w:Y);break;default:ya(S,q,q,q,[""],Y,0,u,Y)}}h=p=E=0,g=H=1,k=S="",m=i;break;case 58:m=1+Ir(S),E=A;default:if(g<1){if(v==123)--g;else if(v==125&&g++==0&&nm()==125)continue}switch(S+=Ta(v),v*g){case 38:H=p>0?1:(S+="\f",-1);break;case 44:u[h++]=(Ir(S)-1)*H,H=1;break;case 64:Rr()===45&&(S+=ga(rr())),b=Rr(),p=m=Ir(k=S+=im(ma())),v++;break;case 45:A===45&&Ir(S)==2&&(g=0)}}return s}function _u(e,t,r,n,o,s,i,u,d,h,p){for(var m=o-1,b=o===0?s:[""],E=ml(b),A=0,g=0,T=0;A<n;++A)for(var H=0,v=Ho(e,m+1,m=Qp(g=i[A])),k=e;H<E;++H)(k=X2(g>0?b[H]+" "+v:Ge(v,/&\f/g,b[H])))&&(d[T++]=k);return Ia(e,t,r,o===0?hl:u,d,h,p)}function lm(e,t,r){return Ia(e,t,r,Q2,Ta(rm()),Ho(e,2,-2),0)}function Eu(e,t,r,n){return Ia(e,t,r,pl,Ho(e,0,n),Ho(e,n+1,-1),n)}function Yn(e,t){for(var r="",n=ml(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function um(e,t,r,n){switch(e.type){case Yp:if(e.children.length)break;case Kp:case pl:return e.return=e.return||e.value;case Q2:return"";case J2:return e.return=e.value+"{"+Yn(e.children,n)+"}";case hl:e.value=e.props.join(",")}return Ir(r=Yn(e.children,n))?e.return=e.value+"{"+r+"}":""}function dm(e){var t=ml(e);return function(r,n,o,s){for(var i="",u=0;u<t;u++)i+=e[u](r,n,o,s)||"";return i}}function fm(e){return function(t){t.root||(t=t.return)&&e(t)}}function nf(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var hm=function(t,r,n){for(var o=0,s=0;o=s,s=Rr(),o===38&&s===12&&(r[n]=1),!zo(s);)rr();return ns(t,Yt)},pm=function(t,r){var n=-1,o=44;do switch(zo(o)){case 0:o===38&&Rr()===12&&(r[n]=1),t[n]+=hm(Yt-1,r,n);break;case 2:t[n]+=ga(o);break;case 4:if(o===44){t[++n]=Rr()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Ta(o)}while(o=rr());return t},mm=function(t,r){return rf(pm(tf(t),r))},xu=new WeakMap,gm=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!xu.get(n))&&!o){xu.set(t,!0);for(var s=[],i=mm(r,s),u=n.props,d=0,h=0;d<i.length;d++)for(var p=0;p<u.length;p++,h++)t.props[h]=s[d]?i[d].replace(/&\f/g,u[p]):u[p]+" "+i[d]}}},ym=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function of(e,t){switch(Xp(e,t)){case 5103:return ze+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ze+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ze+e+_a+e+Lt+e+e;case 6828:case 4268:return ze+e+Lt+e+e;case 6165:return ze+e+Lt+"flex-"+e+e;case 5187:return ze+e+Ge(e,/(\w+).+(:[^]+)/,ze+"box-$1$2"+Lt+"flex-$1$2")+e;case 5443:return ze+e+Lt+"flex-item-"+Ge(e,/flex-|-self/,"")+e;case 4675:return ze+e+Lt+"flex-line-pack"+Ge(e,/align-content|flex-|-self/,"")+e;case 5548:return ze+e+Lt+Ge(e,"shrink","negative")+e;case 5292:return ze+e+Lt+Ge(e,"basis","preferred-size")+e;case 6060:return ze+"box-"+Ge(e,"-grow","")+ze+e+Lt+Ge(e,"grow","positive")+e;case 4554:return ze+Ge(e,/([^-])(transform)/g,"$1"+ze+"$2")+e;case 6187:return Ge(Ge(Ge(e,/(zoom-|grab)/,ze+"$1"),/(image-set)/,ze+"$1"),e,"")+e;case 5495:case 3959:return Ge(e,/(image-set\([^]*)/,ze+"$1$`$1");case 4968:return Ge(Ge(e,/(.+:)(flex-)?(.*)/,ze+"box-pack:$3"+Lt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ze+e+e;case 4095:case 3583:case 4068:case 2532:return Ge(e,/(.+)-inline(.+)/,ze+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ir(e)-1-t>6)switch(It(e,t+1)){case 109:if(It(e,t+4)!==45)break;case 102:return Ge(e,/(.+:)(.+)-([^]+)/,"$1"+ze+"$2-$3$1"+_a+(It(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~zc(e,"stretch")?of(Ge(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(It(e,t+1)!==115)break;case 6444:switch(It(e,Ir(e)-3-(~zc(e,"!important")&&10))){case 107:return Ge(e,":",":"+ze)+e;case 101:return Ge(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ze+(It(e,14)===45?"inline-":"")+"box$3$1"+ze+"$2$3$1"+Lt+"$2box$3")+e}break;case 5936:switch(It(e,t+11)){case 114:return ze+e+Lt+Ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ze+e+Lt+Ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ze+e+Lt+Ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ze+e+Lt+e+e}return e}var vm=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case pl:t.return=of(t.value,t.length);break;case J2:return Yn([To(t,{value:Ge(t.value,"@","@"+ze)})],o);case hl:if(t.length)return tm(t.props,function(s){switch(em(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Yn([To(t,{props:[Ge(s,/:(read-\w+)/,":"+_a+"$1")]})],o);case"::placeholder":return Yn([To(t,{props:[Ge(s,/:(plac\w+)/,":"+ze+"input-$1")]}),To(t,{props:[Ge(s,/:(plac\w+)/,":"+_a+"$1")]}),To(t,{props:[Ge(s,/:(plac\w+)/,Lt+"input-$1")]})],o)}return""})}},bm=[vm],sf=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(g){var T=g.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||bm,s={},i,u=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(g){for(var T=g.getAttribute("data-emotion").split(" "),H=1;H<T.length;H++)s[T[H]]=!0;u.push(g)});var d,h=[gm,ym];{var p,m=[um,fm(function(g){p.insert(g)})],b=dm(h.concat(o,m)),E=function(T){return Yn(cm(T),b)};d=function(T,H,v,k){p=v,E(T?T+"{"+H.styles+"}":H.styles),k&&(A.inserted[H.name]=!0)}}var A={key:r,sheet:new Zp({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:d};return A.sheet.hydrate(u),A},wm=!0;function af(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var gl=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||wm===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},yl=function(t,r,n){gl(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function _m(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Em={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},xm=/[A-Z]|^ms/g,Sm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,cf=function(t){return t.charCodeAt(1)===45},Su=function(t){return t!=null&&typeof t!="boolean"},ii=nf(function(e){return cf(e)?e:e.replace(xm,"-$&").toLowerCase()}),Cu=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Sm,function(n,o,s){return kr={name:o,styles:s,next:kr},o})}return Em[t]!==1&&!cf(t)&&typeof r=="number"&&r!==0?r+"px":r};function Go(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return kr={name:o.name,styles:o.styles,next:kr},o.name;var s=r;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)kr={name:i.name,styles:i.styles,next:kr},i=i.next;var u=s.styles+";";return u}return Cm(e,t,r)}case"function":{if(e!==void 0){var d=kr,h=r(e);return kr=d,Go(e,t,h)}break}}var p=r;if(t==null)return p;var m=t[p];return m!==void 0?m:p}function Cm(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Go(e,t,r[o])+";";else for(var s in r){var i=r[s];if(typeof i!="object"){var u=i;t!=null&&t[u]!==void 0?n+=s+"{"+t[u]+"}":Su(u)&&(n+=ii(s)+":"+Cu(s,u)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var d=0;d<i.length;d++)Su(i[d])&&(n+=ii(s)+":"+Cu(s,i[d])+";");else{var h=Go(e,t,i);switch(s){case"animation":case"animationName":{n+=ii(s)+":"+h+";";break}default:n+=s+"{"+h+"}"}}}return n}var Tu=/label:\s*([^\s;{]+)\s*(;|$)/g,kr;function os(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";kr=void 0;var s=e[0];if(s==null||s.raw===void 0)n=!1,o+=Go(r,t,s);else{var i=s;o+=i[0]}for(var u=1;u<e.length;u++)if(o+=Go(r,t,e[u]),n){var d=s;o+=d[u]}Tu.lastIndex=0;for(var h="",p;(p=Tu.exec(o))!==null;)h+="-"+p[1];var m=_m(o)+h;return{name:m,styles:o,next:kr}}var Tm=function(t){return t()},lf=Ic.useInsertionEffect?Ic.useInsertionEffect:!1,uf=lf||Tm,Au=lf||oe.useLayoutEffect,df=oe.createContext(typeof HTMLElement<"u"?sf({key:"css"}):null),Am=df.Provider,vl=function(t){return oe.forwardRef(function(r,n){var o=oe.useContext(df);return t(r,o,n)})},ka=oe.createContext({}),bl={}.hasOwnProperty,Wc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Im=function(t,r){var n={};for(var o in r)bl.call(r,o)&&(n[o]=r[o]);return n[Wc]=t,n},km=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return gl(r,n,o),uf(function(){return yl(r,n,o)}),null},Rm=vl(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[Wc],s=[n],i="";typeof e.className=="string"?i=af(t.registered,s,e.className):e.className!=null&&(i=e.className+" ");var u=os(s,void 0,oe.useContext(ka));i+=t.key+"-"+u.name;var d={};for(var h in e)bl.call(e,h)&&h!=="css"&&h!==Wc&&(d[h]=e[h]);return d.className=i,r&&(d.ref=r),oe.createElement(oe.Fragment,null,oe.createElement(km,{cache:t,serialized:u,isStringTag:typeof o=="string"}),oe.createElement(o,d))}),Pm=Rm,Iu=function(t,r){var n=arguments;if(r==null||!bl.call(r,"css"))return oe.createElement.apply(void 0,n);var o=n.length,s=new Array(o);s[0]=Pm,s[1]=Im(t,r);for(var i=2;i<o;i++)s[i]=n[i];return oe.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Iu||(Iu={}));var Nm=vl(function(e,t){var r=e.styles,n=os([r],void 0,oe.useContext(ka)),o=oe.useRef();return Au(function(){var s=t.key+"-global",i=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),u=!1,d=document.querySelector('style[data-emotion="'+s+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),d!==null&&(u=!0,d.setAttribute("data-emotion",s),i.hydrate([d])),o.current=[i,u],function(){i.flush()}},[t]),Au(function(){var s=o.current,i=s[0],u=s[1];if(u){s[1]=!1;return}if(n.next!==void 0&&yl(t,n.next,!0),i.tags.length){var d=i.tags[i.tags.length-1].nextElementSibling;i.before=d,i.flush()}t.insert("",n,i,!1)},[t,n.name]),null});function wl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return os(t)}function ff(){var e=wl.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Om=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,jm=nf(function(e){return Om.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Lm=jm,Bm=function(t){return t!=="theme"},ku=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Lm:Bm},Ru=function(t,r,n){var o;if(r){var s=r.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(i){return t.__emotion_forwardProp(i)&&s(i)}:s}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},Mm=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return gl(r,n,o),uf(function(){return yl(r,n,o)}),null},Fm=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,s,i;r!==void 0&&(s=r.label,i=r.target);var u=Ru(t,r,n),d=u||ku(o),h=!d("as");return function(){var p=arguments,m=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&m.push("label:"+s+";"),p[0]==null||p[0].raw===void 0)m.push.apply(m,p);else{var b=p[0];m.push(b[0]);for(var E=p.length,A=1;A<E;A++)m.push(p[A],b[A])}var g=vl(function(T,H,v){var k=h&&T.as||o,w="",Y=[],q=T;if(T.theme==null){q={};for(var S in T)q[S]=T[S];q.theme=oe.useContext(ka)}typeof T.className=="string"?w=af(H.registered,Y,T.className):T.className!=null&&(w=T.className+" ");var $=os(m.concat(Y),H.registered,q);w+=H.key+"-"+$.name,i!==void 0&&(w+=" "+i);var J=h&&u===void 0?ku(k):d,W={};for(var ne in T)h&&ne==="as"||J(ne)&&(W[ne]=T[ne]);return W.className=w,v&&(W.ref=v),oe.createElement(oe.Fragment,null,oe.createElement(Mm,{cache:H,serialized:$,isStringTag:typeof k=="string"}),oe.createElement(k,W))});return g.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=o,g.__emotion_styles=m,g.__emotion_forwardProp=u,Object.defineProperty(g,"toString",{value:function(){return"."+i}}),g.withComponent=function(T,H){var v=e(T,Ke({},r,H,{shouldForwardProp:Ru(g,H,!0)}));return v.apply(void 0,m)},g}},$m=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Et=Fm.bind(null);$m.forEach(function(e){Et[e]=Et(e)});const Dm={text:"#161518",muted:"#716b7c",line:"#e6e4ea",lineStrong:"#a09ba8",media:"#ecebed",accent:"#691fa9",magenta:"#c640cd",brandViolet:"#a524b3",blackBtn:"#242129",softWhite:"#fcfcfc",okStrong:"#1f8a4c",errStrong:"#d64545",white:"#ffffff"},qm={amethyst:"linear-gradient(180deg, #c640cd 0%, #691fa9 100%)"},Um={card:"12px",btn:"8px"},Pu={mobile:768,sm:720,md:820,lg:900},Vm={down:e=>`@media (max-width: ${Pu[e]}px)`,up:e=>`@media (min-width: ${Pu[e]+1}px)`},Qe={colors:Dm,gradients:qm,radius:Um,media:Vm},Hm=Et.div`
|
|
3
|
-
position: fixed;
|
|
4
|
-
top: 0;
|
|
5
|
-
left: 0;
|
|
6
|
-
right: 0;
|
|
7
|
-
height: 92px;
|
|
8
|
-
background: #16141a;
|
|
9
|
-
z-index: 50;
|
|
10
|
-
|
|
11
|
-
${Qe.media.down("mobile")} {
|
|
12
|
-
height: 64px;
|
|
13
|
-
}
|
|
14
|
-
`,zm=oe.lazy(()=>xt(()=>import("./index-CigjJrdx.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])).then(e=>({default:e.Navbar})));function Gm(e){return f.jsx(oe.Suspense,{fallback:f.jsx(Hm,{"aria-hidden":!0}),children:f.jsx(zm,{...e})})}const Wm={},Nu=e=>{let t;const r=new Set,n=(p,m)=>{const b=typeof p=="function"?p(t):p;if(!Object.is(b,t)){const E=t;t=m??(typeof b!="object"||b===null)?b:Object.assign({},t,b),r.forEach(A=>A(t,E))}},o=()=>t,d={setState:n,getState:o,getInitialState:()=>h,subscribe:p=>(r.add(p),()=>r.delete(p)),destroy:()=>{(Wm?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},h=t=e(n,o,d);return d},Zm=e=>e?Nu(e):Nu;var ci={exports:{}},li={},ui={exports:{}},di={};/**
|
|
15
|
-
* @license React
|
|
16
|
-
* use-sync-external-store-shim.production.js
|
|
17
|
-
*
|
|
18
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
19
|
-
*
|
|
20
|
-
* This source code is licensed under the MIT license found in the
|
|
21
|
-
* LICENSE file in the root directory of this source tree.
|
|
22
|
-
*/var Ou;function Km(){if(Ou)return di;Ou=1;var e=O2();function t(m,b){return m===b&&(m!==0||1/m===1/b)||m!==m&&b!==b}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,s=e.useLayoutEffect,i=e.useDebugValue;function u(m,b){var E=b(),A=n({inst:{value:E,getSnapshot:b}}),g=A[0].inst,T=A[1];return s(function(){g.value=E,g.getSnapshot=b,d(g)&&T({inst:g})},[m,E,b]),o(function(){return d(g)&&T({inst:g}),m(function(){d(g)&&T({inst:g})})},[m]),i(E),E}function d(m){var b=m.getSnapshot;m=m.value;try{var E=b();return!r(m,E)}catch{return!0}}function h(m,b){return b()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:u;return di.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,di}var ju;function Ym(){return ju||(ju=1,ui.exports=Km()),ui.exports}/**
|
|
23
|
-
* @license React
|
|
24
|
-
* use-sync-external-store-shim/with-selector.production.js
|
|
25
|
-
*
|
|
26
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
27
|
-
*
|
|
28
|
-
* This source code is licensed under the MIT license found in the
|
|
29
|
-
* LICENSE file in the root directory of this source tree.
|
|
30
|
-
*/var Lu;function Qm(){if(Lu)return li;Lu=1;var e=O2(),t=Ym();function r(h,p){return h===p&&(h!==0||1/h===1/p)||h!==h&&p!==p}var n=typeof Object.is=="function"?Object.is:r,o=t.useSyncExternalStore,s=e.useRef,i=e.useEffect,u=e.useMemo,d=e.useDebugValue;return li.useSyncExternalStoreWithSelector=function(h,p,m,b,E){var A=s(null);if(A.current===null){var g={hasValue:!1,value:null};A.current=g}else g=A.current;A=u(function(){function H(q){if(!v){if(v=!0,k=q,q=b(q),E!==void 0&&g.hasValue){var S=g.value;if(E(S,q))return w=S}return w=q}if(S=w,n(k,q))return S;var $=b(q);return E!==void 0&&E(S,$)?(k=q,S):(k=q,w=$)}var v=!1,k,w,Y=m===void 0?null:m;return[function(){return H(p())},Y===null?void 0:function(){return H(Y())}]},[p,m,b,E]);var T=o(h,A[0],A[1]);return i(function(){g.hasValue=!0,g.value=T},[T]),d(T),T},li}var Bu;function Jm(){return Bu||(Bu=1,ci.exports=Qm()),ci.exports}var Xm=Jm();const eg=Ca(Xm),hf={},{useDebugValue:tg}=j2,{useSyncExternalStoreWithSelector:rg}=eg;let Mu=!1;const ng=e=>e;function og(e,t=ng,r){(hf?"production":void 0)!=="production"&&r&&!Mu&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Mu=!0);const n=rg(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return tg(n),n}const Fu=e=>{(hf?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?Zm(e):e,r=(n,o)=>og(t,n,o);return Object.assign(r,t),r},jn=e=>e?Fu(e):Fu;var gn={},ur={},Lo={exports:{}},sg=Lo.exports,$u;function Ra(){return $u||($u=1,(function(e,t){(function(r,n){n(t)})(sg,(function(r){function n(a){if(a.jsonrpc="2.0",!a.id||typeof a.id!="number"||Math.floor(a.id)!==a.id)throw new Error(`Invalid RPC message(invalid id) message: ${JSON.stringify(a)}`);if(!a.method||typeof a.method!="string"||a.method.trim().length===0)throw new Error(`Invalid RPC message(invalid method) message: ${JSON.stringify(a)}`);if(!a.params||typeof a.params!="object")throw new Error(`Invalid RPC message(invalid params) message: ${JSON.stringify(a)}`);return a}var o={};function s(){let a,l;const y=new Promise(((I,j)=>{a=V=>{I(V),y.isPending=!1},l=V=>{j(V),y.isPending=!1}})).catch((I=>Promise.reject(I)));return y.resolve=a,y.reject=l,"finally"in y||(y.finally=I=>{y.then(I),y.catch(I)}),y.isPending=!0,y}Object.defineProperty(o,"__esModule",{value:!0});var i=o.future=s;o.default=s;var u={exports:{}};/**
|
|
31
|
-
* [js-sha3]{@link https://github.com/emn178/js-sha3}
|
|
32
|
-
*
|
|
33
|
-
* @version 0.8.0
|
|
34
|
-
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
35
|
-
* @copyright Chen, Yi-Cyuan 2015-2018
|
|
36
|
-
* @license MIT
|
|
37
|
-
*/(function(a){(function(){var l="input is invalid type",y=typeof window=="object",I=y?window:{};I.JS_SHA3_NO_WINDOW&&(y=!1);var j=!y&&typeof self=="object";!I.JS_SHA3_NO_NODE_JS&&typeof pa=="object"&&pa.versions&&pa.versions.node?I=kc:j&&(I=self);var V=!I.JS_SHA3_NO_COMMON_JS&&a.exports,se=!I.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",pe="0123456789abcdef".split(""),Ie=[4,1024,262144,67108864],Pe=[0,8,16,24],Mt=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],it=[224,256,384,512],ge=[128,256],St=["hex","buffer","arrayBuffer","array","digest"],Xe={128:168,256:136};!I.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(c){return Object.prototype.toString.call(c)==="[object Array]"}),!se||!I.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(c){return typeof c=="object"&&c.buffer&&c.buffer.constructor===ArrayBuffer});for(var et=function(c,_,N){return function(C){return new Ue(c,_,c).update(C)[N]()}},Pt=function(c,_,N){return function(C,L){return new Ue(c,_,L).update(C)[N]()}},Lr=function(c,_,N){return function(C,L,M,F){return Ct["cshake"+c].update(C,L,M,F)[N]()}},vr=function(c,_,N){return function(C,L,M,F){return Ct["kmac"+c].update(C,L,M,F)[N]()}},Nt=function(c,_,N,C){for(var L=0;L<St.length;++L){var M=St[L];c[M]=_(N,C,M)}return c},br=function(c,_){var N=et(c,_,"hex");return N.create=function(){return new Ue(c,_,c)},N.update=function(C){return N.create().update(C)},Nt(N,et,c,_)},Yr=[{name:"keccak",padding:[1,256,65536,16777216],bits:it,createMethod:br},{name:"sha3",padding:[6,1536,393216,100663296],bits:it,createMethod:br},{name:"shake",padding:[31,7936,2031616,520093696],bits:ge,createMethod:function(c,_){var N=Pt(c,_,"hex");return N.create=function(C){return new Ue(c,_,C)},N.update=function(C,L){return N.create(L).update(C)},Nt(N,Pt,c,_)}},{name:"cshake",padding:Ie,bits:ge,createMethod:function(c,_){var N=Xe[c],C=Lr(c,0,"hex");return C.create=function(L,M,F){return M||F?new Ue(c,_,L).bytepad([M,F],N):Ct["shake"+c].create(L)},C.update=function(L,M,F,ee){return C.create(M,F,ee).update(L)},Nt(C,Lr,c,_)}},{name:"kmac",padding:Ie,bits:ge,createMethod:function(c,_){var N=Xe[c],C=vr(c,0,"hex");return C.create=function(L,M,F){return new Jt(c,_,M).bytepad(["KMAC",F],N).bytepad([L],N)},C.update=function(L,M,F,ee){return C.create(L,F,ee).update(M)},Nt(C,vr,c,_)}}],Ct={},Br=[],Ot=0;Ot<Yr.length;++Ot)for(var wr=Yr[Ot],ue=wr.bits,Mr=0;Mr<ue.length;++Mr){var Dn=wr.name+"_"+ue[Mr];if(Br.push(Dn),Ct[Dn]=wr.createMethod(ue[Mr],wr.padding),wr.name!=="sha3"){var qn=wr.name+ue[Mr];Br.push(qn),Ct[qn]=Ct[Dn]}}function Ue(c,_,N){this.blocks=[],this.s=[],this.padding=_,this.outputBits=N,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(c<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=N>>5,this.extraBytes=(31&N)>>3;for(var C=0;C<50;++C)this.s[C]=0}function Jt(c,_,N){Ue.call(this,c,_,N)}Ue.prototype.update=function(c){if(this.finalized)throw new Error("finalize already called");var _,N=typeof c;if(N!=="string"){if(N!=="object")throw new Error(l);if(c===null)throw new Error(l);if(se&&c.constructor===ArrayBuffer)c=new Uint8Array(c);else if(!(Array.isArray(c)||se&&ArrayBuffer.isView(c)))throw new Error(l);_=!0}for(var C,L,M=this.blocks,F=this.byteCount,ee=c.length,re=this.blockCount,te=0,me=this.s;te<ee;){if(this.reset)for(this.reset=!1,M[0]=this.block,C=1;C<re+1;++C)M[C]=0;if(_)for(C=this.start;te<ee&&C<F;++te)M[C>>2]|=c[te]<<Pe[3&C++];else for(C=this.start;te<ee&&C<F;++te)(L=c.charCodeAt(te))<128?M[C>>2]|=L<<Pe[3&C++]:L<2048?(M[C>>2]|=(192|L>>6)<<Pe[3&C++],M[C>>2]|=(128|63&L)<<Pe[3&C++]):L<55296||L>=57344?(M[C>>2]|=(224|L>>12)<<Pe[3&C++],M[C>>2]|=(128|L>>6&63)<<Pe[3&C++],M[C>>2]|=(128|63&L)<<Pe[3&C++]):(L=65536+((1023&L)<<10|1023&c.charCodeAt(++te)),M[C>>2]|=(240|L>>18)<<Pe[3&C++],M[C>>2]|=(128|L>>12&63)<<Pe[3&C++],M[C>>2]|=(128|L>>6&63)<<Pe[3&C++],M[C>>2]|=(128|63&L)<<Pe[3&C++]);if(this.lastByteIndex=C,C>=F){for(this.start=C-F,this.block=M[re],C=0;C<re;++C)me[C]^=M[C];x(me),this.reset=!0}else this.start=C}return this},Ue.prototype.encode=function(c,_){var N=255&c,C=1,L=[N];for(N=255&(c>>=8);N>0;)L.unshift(N),N=255&(c>>=8),++C;return _?L.push(C):L.unshift(C),this.update(L),L.length},Ue.prototype.encodeString=function(c){var _,N=typeof c;if(N!=="string"){if(N!=="object")throw new Error(l);if(c===null)throw new Error(l);if(se&&c.constructor===ArrayBuffer)c=new Uint8Array(c);else if(!(Array.isArray(c)||se&&ArrayBuffer.isView(c)))throw new Error(l);_=!0}var C=0,L=c.length;if(_)C=L;else for(var M=0;M<c.length;++M){var F=c.charCodeAt(M);F<128?C+=1:F<2048?C+=2:F<55296||F>=57344?C+=3:(F=65536+((1023&F)<<10|1023&c.charCodeAt(++M)),C+=4)}return C+=this.encode(8*C),this.update(c),C},Ue.prototype.bytepad=function(c,_){for(var N=this.encode(_),C=0;C<c.length;++C)N+=this.encodeString(c[C]);var L=_-N%_,M=[];return M.length=L,this.update(M),this},Ue.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var c=this.blocks,_=this.lastByteIndex,N=this.blockCount,C=this.s;if(c[_>>2]|=this.padding[3&_],this.lastByteIndex===this.byteCount)for(c[0]=c[N],_=1;_<N+1;++_)c[_]=0;for(c[N-1]|=2147483648,_=0;_<N;++_)C[_]^=c[_];x(C)}},Ue.prototype.toString=Ue.prototype.hex=function(){this.finalize();for(var c,_=this.blockCount,N=this.s,C=this.outputBlocks,L=this.extraBytes,M=0,F=0,ee="";F<C;){for(M=0;M<_&&F<C;++M,++F)c=N[M],ee+=pe[c>>4&15]+pe[15&c]+pe[c>>12&15]+pe[c>>8&15]+pe[c>>20&15]+pe[c>>16&15]+pe[c>>28&15]+pe[c>>24&15];F%_==0&&(x(N),M=0)}return L&&(c=N[M],ee+=pe[c>>4&15]+pe[15&c],L>1&&(ee+=pe[c>>12&15]+pe[c>>8&15]),L>2&&(ee+=pe[c>>20&15]+pe[c>>16&15])),ee},Ue.prototype.arrayBuffer=function(){this.finalize();var c,_=this.blockCount,N=this.s,C=this.outputBlocks,L=this.extraBytes,M=0,F=0,ee=this.outputBits>>3;c=L?new ArrayBuffer(C+1<<2):new ArrayBuffer(ee);for(var re=new Uint32Array(c);F<C;){for(M=0;M<_&&F<C;++M,++F)re[F]=N[M];F%_==0&&x(N)}return L&&(re[M]=N[M],c=c.slice(0,ee)),c},Ue.prototype.buffer=Ue.prototype.arrayBuffer,Ue.prototype.digest=Ue.prototype.array=function(){this.finalize();for(var c,_,N=this.blockCount,C=this.s,L=this.outputBlocks,M=this.extraBytes,F=0,ee=0,re=[];ee<L;){for(F=0;F<N&&ee<L;++F,++ee)c=ee<<2,_=C[F],re[c]=255&_,re[c+1]=_>>8&255,re[c+2]=_>>16&255,re[c+3]=_>>24&255;ee%N==0&&x(C)}return M&&(c=ee<<2,_=C[F],re[c]=255&_,M>1&&(re[c+1]=_>>8&255),M>2&&(re[c+2]=_>>16&255)),re},Jt.prototype=new Ue,Jt.prototype.finalize=function(){return this.encode(this.outputBits,!0),Ue.prototype.finalize.call(this)};var x=function(c){var _,N,C,L,M,F,ee,re,te,me,ke,je,$e,tt,ot,Me,Ve,ht,Fr,Qr,Jr,Ft,_r,Tt,mt,Je,ms,gs,ys,vs,bs,ws,_s,Es,xs,Ss,Cs,Ts,As,Is,ks,Rs,Ps,Ns,Os,js,Ls,Bs,Ms,Fs,$s,Ds,qs,Us,Vs,Hs,zs,Gs,Ws,Zs,Ks,Ys,Qs;for(C=0;C<48;C+=2)L=c[0]^c[10]^c[20]^c[30]^c[40],M=c[1]^c[11]^c[21]^c[31]^c[41],F=c[2]^c[12]^c[22]^c[32]^c[42],ee=c[3]^c[13]^c[23]^c[33]^c[43],re=c[4]^c[14]^c[24]^c[34]^c[44],te=c[5]^c[15]^c[25]^c[35]^c[45],me=c[6]^c[16]^c[26]^c[36]^c[46],ke=c[7]^c[17]^c[27]^c[37]^c[47],_=(je=c[8]^c[18]^c[28]^c[38]^c[48])^(F<<1|ee>>>31),N=($e=c[9]^c[19]^c[29]^c[39]^c[49])^(ee<<1|F>>>31),c[0]^=_,c[1]^=N,c[10]^=_,c[11]^=N,c[20]^=_,c[21]^=N,c[30]^=_,c[31]^=N,c[40]^=_,c[41]^=N,_=L^(re<<1|te>>>31),N=M^(te<<1|re>>>31),c[2]^=_,c[3]^=N,c[12]^=_,c[13]^=N,c[22]^=_,c[23]^=N,c[32]^=_,c[33]^=N,c[42]^=_,c[43]^=N,_=F^(me<<1|ke>>>31),N=ee^(ke<<1|me>>>31),c[4]^=_,c[5]^=N,c[14]^=_,c[15]^=N,c[24]^=_,c[25]^=N,c[34]^=_,c[35]^=N,c[44]^=_,c[45]^=N,_=re^(je<<1|$e>>>31),N=te^($e<<1|je>>>31),c[6]^=_,c[7]^=N,c[16]^=_,c[17]^=N,c[26]^=_,c[27]^=N,c[36]^=_,c[37]^=N,c[46]^=_,c[47]^=N,_=me^(L<<1|M>>>31),N=ke^(M<<1|L>>>31),c[8]^=_,c[9]^=N,c[18]^=_,c[19]^=N,c[28]^=_,c[29]^=N,c[38]^=_,c[39]^=N,c[48]^=_,c[49]^=N,tt=c[0],ot=c[1],js=c[11]<<4|c[10]>>>28,Ls=c[10]<<4|c[11]>>>28,gs=c[20]<<3|c[21]>>>29,ys=c[21]<<3|c[20]>>>29,Zs=c[31]<<9|c[30]>>>23,Ks=c[30]<<9|c[31]>>>23,Rs=c[40]<<18|c[41]>>>14,Ps=c[41]<<18|c[40]>>>14,Es=c[2]<<1|c[3]>>>31,xs=c[3]<<1|c[2]>>>31,Me=c[13]<<12|c[12]>>>20,Ve=c[12]<<12|c[13]>>>20,Bs=c[22]<<10|c[23]>>>22,Ms=c[23]<<10|c[22]>>>22,vs=c[33]<<13|c[32]>>>19,bs=c[32]<<13|c[33]>>>19,Ys=c[42]<<2|c[43]>>>30,Qs=c[43]<<2|c[42]>>>30,Us=c[5]<<30|c[4]>>>2,Vs=c[4]<<30|c[5]>>>2,Ss=c[14]<<6|c[15]>>>26,Cs=c[15]<<6|c[14]>>>26,ht=c[25]<<11|c[24]>>>21,Fr=c[24]<<11|c[25]>>>21,Fs=c[34]<<15|c[35]>>>17,$s=c[35]<<15|c[34]>>>17,ws=c[45]<<29|c[44]>>>3,_s=c[44]<<29|c[45]>>>3,Tt=c[6]<<28|c[7]>>>4,mt=c[7]<<28|c[6]>>>4,Hs=c[17]<<23|c[16]>>>9,zs=c[16]<<23|c[17]>>>9,Ts=c[26]<<25|c[27]>>>7,As=c[27]<<25|c[26]>>>7,Qr=c[36]<<21|c[37]>>>11,Jr=c[37]<<21|c[36]>>>11,Ds=c[47]<<24|c[46]>>>8,qs=c[46]<<24|c[47]>>>8,Ns=c[8]<<27|c[9]>>>5,Os=c[9]<<27|c[8]>>>5,Je=c[18]<<20|c[19]>>>12,ms=c[19]<<20|c[18]>>>12,Gs=c[29]<<7|c[28]>>>25,Ws=c[28]<<7|c[29]>>>25,Is=c[38]<<8|c[39]>>>24,ks=c[39]<<8|c[38]>>>24,Ft=c[48]<<14|c[49]>>>18,_r=c[49]<<14|c[48]>>>18,c[0]=tt^~Me&ht,c[1]=ot^~Ve&Fr,c[10]=Tt^~Je&gs,c[11]=mt^~ms&ys,c[20]=Es^~Ss&Ts,c[21]=xs^~Cs&As,c[30]=Ns^~js&Bs,c[31]=Os^~Ls&Ms,c[40]=Us^~Hs&Gs,c[41]=Vs^~zs&Ws,c[2]=Me^~ht&Qr,c[3]=Ve^~Fr&Jr,c[12]=Je^~gs&vs,c[13]=ms^~ys&bs,c[22]=Ss^~Ts&Is,c[23]=Cs^~As&ks,c[32]=js^~Bs&Fs,c[33]=Ls^~Ms&$s,c[42]=Hs^~Gs&Zs,c[43]=zs^~Ws&Ks,c[4]=ht^~Qr&Ft,c[5]=Fr^~Jr&_r,c[14]=gs^~vs&ws,c[15]=ys^~bs&_s,c[24]=Ts^~Is&Rs,c[25]=As^~ks&Ps,c[34]=Bs^~Fs&Ds,c[35]=Ms^~$s&qs,c[44]=Gs^~Zs&Ys,c[45]=Ws^~Ks&Qs,c[6]=Qr^~Ft&tt,c[7]=Jr^~_r&ot,c[16]=vs^~ws&Tt,c[17]=bs^~_s&mt,c[26]=Is^~Rs&Es,c[27]=ks^~Ps&xs,c[36]=Fs^~Ds&Ns,c[37]=$s^~qs&Os,c[46]=Zs^~Ys&Us,c[47]=Ks^~Qs&Vs,c[8]=Ft^~tt&Me,c[9]=_r^~ot&Ve,c[18]=ws^~Tt&Je,c[19]=_s^~mt&ms,c[28]=Rs^~Es&Ss,c[29]=Ps^~xs&Cs,c[38]=Ds^~Ns&js,c[39]=qs^~Os&Ls,c[48]=Ys^~Us&Hs,c[49]=Qs^~Vs&zs,c[0]^=Mt[C],c[1]^=Mt[C+1]};if(V)a.exports=Ct;else for(Ot=0;Ot<Br.length;++Ot)I[Br[Ot]]=Ct[Br[Ot]]})()})(u);var d=u.exports,h=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,p=Math.ceil,m=Math.floor,b="[BigNumber Error] ",E=b+"Number primitive has more than 15 significant digits: ",A=1e14,g=14,T=9007199254740991,H=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],v=1e7,k=1e9;function w(a){var l=0|a;return a>0||a===l?l:l-1}function Y(a){for(var l,y,I=1,j=a.length,V=a[0]+"";I<j;){for(l=a[I++]+"",y=g-l.length;y--;l="0"+l);V+=l}for(j=V.length;V.charCodeAt(--j)===48;);return V.slice(0,j+1||1)}function q(a,l){var y,I,j=a.c,V=l.c,se=a.s,pe=l.s,Ie=a.e,Pe=l.e;if(!se||!pe)return null;if(y=j&&!j[0],I=V&&!V[0],y||I)return y?I?0:-pe:se;if(se!=pe)return se;if(y=se<0,I=Ie==Pe,!j||!V)return I?0:!j^y?1:-1;if(!I)return Ie>Pe^y?1:-1;for(pe=(Ie=j.length)<(Pe=V.length)?Ie:Pe,se=0;se<pe;se++)if(j[se]!=V[se])return j[se]>V[se]^y?1:-1;return Ie==Pe?0:Ie>Pe^y?1:-1}function S(a,l,y,I){if(a<l||a>y||a!==m(a))throw Error(b+(I||"Argument")+(typeof a=="number"?a<l||a>y?" out of range: ":" not an integer: ":" not a primitive number: ")+String(a))}function $(a){var l=a.c.length-1;return w(a.e/g)==l&&a.c[l]%2!=0}function J(a,l){return(a.length>1?a.charAt(0)+"."+a.slice(1):a)+(l<0?"e":"e+")+l}function W(a,l,y){var I,j;if(l<0){for(j=y+".";++l;j+=y);a=j+a}else if(++l>(I=a.length)){for(j=y,l-=I;--l;j+=y);a+=j}else l<I&&(a=a.slice(0,l)+"."+a.slice(l));return a}var ne=(function a(l){var y,I,j,V,se,pe,Ie,Pe,Mt,it,ge=ue.prototype={constructor:ue,toString:null,valueOf:null},St=new ue(1),Xe=20,et=4,Pt=-7,Lr=21,vr=-1e7,Nt=1e7,br=!1,Yr=1,Ct=0,Br={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},Ot="0123456789abcdefghijklmnopqrstuvwxyz",wr=!0;function ue(x,c){var _,N,C,L,M,F,ee,re,te=this;if(!(te instanceof ue))return new ue(x,c);if(c==null){if(x&&x._isBigNumber===!0)return te.s=x.s,void(!x.c||x.e>Nt?te.c=te.e=null:x.e<vr?te.c=[te.e=0]:(te.e=x.e,te.c=x.c.slice()));if((F=typeof x=="number")&&0*x==0){if(te.s=1/x<0?(x=-x,-1):1,x===~~x){for(L=0,M=x;M>=10;M/=10,L++);return void(L>Nt?te.c=te.e=null:(te.e=L,te.c=[x]))}re=String(x)}else{if(!h.test(re=String(x)))return j(te,re,F);te.s=re.charCodeAt(0)==45?(re=re.slice(1),-1):1}(L=re.indexOf("."))>-1&&(re=re.replace(".","")),(M=re.search(/e/i))>0?(L<0&&(L=M),L+=+re.slice(M+1),re=re.substring(0,M)):L<0&&(L=re.length)}else{if(S(c,2,Ot.length,"Base"),c==10&&wr)return Ue(te=new ue(x),Xe+te.e+1,et);if(re=String(x),F=typeof x=="number"){if(0*x!=0)return j(te,re,F,c);if(te.s=1/x<0?(re=re.slice(1),-1):1,ue.DEBUG&&re.replace(/^0\.0*|\./,"").length>15)throw Error(E+x)}else te.s=re.charCodeAt(0)===45?(re=re.slice(1),-1):1;for(_=Ot.slice(0,c),L=M=0,ee=re.length;M<ee;M++)if(_.indexOf(N=re.charAt(M))<0){if(N=="."){if(M>L){L=ee;continue}}else if(!C&&(re==re.toUpperCase()&&(re=re.toLowerCase())||re==re.toLowerCase()&&(re=re.toUpperCase()))){C=!0,M=-1,L=0;continue}return j(te,String(x),F,c)}F=!1,(L=(re=I(re,c,10,te.s)).indexOf("."))>-1?re=re.replace(".",""):L=re.length}for(M=0;re.charCodeAt(M)===48;M++);for(ee=re.length;re.charCodeAt(--ee)===48;);if(re=re.slice(M,++ee)){if(ee-=M,F&&ue.DEBUG&&ee>15&&(x>T||x!==m(x)))throw Error(E+te.s*x);if((L=L-M-1)>Nt)te.c=te.e=null;else if(L<vr)te.c=[te.e=0];else{if(te.e=L,te.c=[],M=(L+1)%g,L<0&&(M+=g),M<ee){for(M&&te.c.push(+re.slice(0,M)),ee-=g;M<ee;)te.c.push(+re.slice(M,M+=g));M=g-(re=re.slice(M)).length}else M-=ee;for(;M--;re+="0");te.c.push(+re)}}else te.c=[te.e=0]}function Mr(x,c,_,N){var C,L,M,F,ee;if(_==null?_=et:S(_,0,8),!x.c)return x.toString();if(C=x.c[0],M=x.e,c==null)ee=Y(x.c),ee=N==1||N==2&&(M<=Pt||M>=Lr)?J(ee,M):W(ee,M,"0");else if(L=(x=Ue(new ue(x),c,_)).e,F=(ee=Y(x.c)).length,N==1||N==2&&(c<=L||L<=Pt)){for(;F<c;ee+="0",F++);ee=J(ee,L)}else if(c-=M,ee=W(ee,L,"0"),L+1>F){if(--c>0)for(ee+=".";c--;ee+="0");}else if((c+=L-F)>0)for(L+1==F&&(ee+=".");c--;ee+="0");return x.s<0&&C?"-"+ee:ee}function Dn(x,c){for(var _,N=1,C=new ue(x[0]);N<x.length;N++){if(!(_=new ue(x[N])).s){C=_;break}c.call(C,_)&&(C=_)}return C}function qn(x,c,_){for(var N=1,C=c.length;!c[--C];c.pop());for(C=c[0];C>=10;C/=10,N++);return(_=N+_*g-1)>Nt?x.c=x.e=null:_<vr?x.c=[x.e=0]:(x.e=_,x.c=c),x}function Ue(x,c,_,N){var C,L,M,F,ee,re,te,me=x.c,ke=H;if(me){e:{for(C=1,F=me[0];F>=10;F/=10,C++);if((L=c-C)<0)L+=g,M=c,te=(ee=me[re=0])/ke[C-M-1]%10|0;else if((re=p((L+1)/g))>=me.length){if(!N)break e;for(;me.length<=re;me.push(0));ee=te=0,C=1,M=(L%=g)-g+1}else{for(ee=F=me[re],C=1;F>=10;F/=10,C++);te=(M=(L%=g)-g+C)<0?0:ee/ke[C-M-1]%10|0}if(N=N||c<0||me[re+1]!=null||(M<0?ee:ee%ke[C-M-1]),N=_<4?(te||N)&&(_==0||_==(x.s<0?3:2)):te>5||te==5&&(_==4||N||_==6&&(L>0?M>0?ee/ke[C-M]:0:me[re-1])%10&1||_==(x.s<0?8:7)),c<1||!me[0])return me.length=0,N?(c-=x.e+1,me[0]=ke[(g-c%g)%g],x.e=-c||0):me[0]=x.e=0,x;if(L==0?(me.length=re,F=1,re--):(me.length=re+1,F=ke[g-L],me[re]=M>0?m(ee/ke[C-M]%ke[M])*F:0),N)for(;;){if(re==0){for(L=1,M=me[0];M>=10;M/=10,L++);for(M=me[0]+=F,F=1;M>=10;M/=10,F++);L!=F&&(x.e++,me[0]==A&&(me[0]=1));break}if(me[re]+=F,me[re]!=A)break;me[re--]=0,F=1}for(L=me.length;me[--L]===0;me.pop());}x.e>Nt?x.c=x.e=null:x.e<vr&&(x.c=[x.e=0])}return x}function Jt(x){var c,_=x.e;return _===null?x.toString():(c=Y(x.c),c=_<=Pt||_>=Lr?J(c,_):W(c,_,"0"),x.s<0?"-"+c:c)}return ue.clone=a,ue.ROUND_UP=0,ue.ROUND_DOWN=1,ue.ROUND_CEIL=2,ue.ROUND_FLOOR=3,ue.ROUND_HALF_UP=4,ue.ROUND_HALF_DOWN=5,ue.ROUND_HALF_EVEN=6,ue.ROUND_HALF_CEIL=7,ue.ROUND_HALF_FLOOR=8,ue.EUCLID=9,ue.config=ue.set=function(x){var c,_;if(x!=null){if(typeof x!="object")throw Error(b+"Object expected: "+x);if(x.hasOwnProperty(c="DECIMAL_PLACES")&&(S(_=x[c],0,k,c),Xe=_),x.hasOwnProperty(c="ROUNDING_MODE")&&(S(_=x[c],0,8,c),et=_),x.hasOwnProperty(c="EXPONENTIAL_AT")&&((_=x[c])&&_.pop?(S(_[0],-k,0,c),S(_[1],0,k,c),Pt=_[0],Lr=_[1]):(S(_,-k,k,c),Pt=-(Lr=_<0?-_:_))),x.hasOwnProperty(c="RANGE"))if((_=x[c])&&_.pop)S(_[0],-k,-1,c),S(_[1],1,k,c),vr=_[0],Nt=_[1];else{if(S(_,-k,k,c),!_)throw Error(b+c+" cannot be zero: "+_);vr=-(Nt=_<0?-_:_)}if(x.hasOwnProperty(c="CRYPTO")){if((_=x[c])!==!!_)throw Error(b+c+" not true or false: "+_);if(_){if(typeof crypto>"u"||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw br=!_,Error(b+"crypto unavailable");br=_}else br=_}if(x.hasOwnProperty(c="MODULO_MODE")&&(S(_=x[c],0,9,c),Yr=_),x.hasOwnProperty(c="POW_PRECISION")&&(S(_=x[c],0,k,c),Ct=_),x.hasOwnProperty(c="FORMAT")){if(typeof(_=x[c])!="object")throw Error(b+c+" not an object: "+_);Br=_}if(x.hasOwnProperty(c="ALPHABET")){if(typeof(_=x[c])!="string"||/^.?$|[+\-.\s]|(.).*\1/.test(_))throw Error(b+c+" invalid: "+_);wr=_.slice(0,10)=="0123456789",Ot=_}}return{DECIMAL_PLACES:Xe,ROUNDING_MODE:et,EXPONENTIAL_AT:[Pt,Lr],RANGE:[vr,Nt],CRYPTO:br,MODULO_MODE:Yr,POW_PRECISION:Ct,FORMAT:Br,ALPHABET:Ot}},ue.isBigNumber=function(x){if(!x||x._isBigNumber!==!0)return!1;if(!ue.DEBUG)return!0;var c,_,N=x.c,C=x.e,L=x.s;e:if({}.toString.call(N)=="[object Array]"){if((L===1||L===-1)&&C>=-k&&C<=k&&C===m(C)){if(N[0]===0){if(C===0&&N.length===1)return!0;break e}if((c=(C+1)%g)<1&&(c+=g),String(N[0]).length==c){for(c=0;c<N.length;c++)if((_=N[c])<0||_>=A||_!==m(_))break e;if(_!==0)return!0}}}else if(N===null&&C===null&&(L===null||L===1||L===-1))return!0;throw Error(b+"Invalid BigNumber: "+x)},ue.maximum=ue.max=function(){return Dn(arguments,ge.lt)},ue.minimum=ue.min=function(){return Dn(arguments,ge.gt)},ue.random=(V=9007199254740992,se=Math.random()*V&2097151?function(){return m(Math.random()*V)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(x){var c,_,N,C,L,M=0,F=[],ee=new ue(St);if(x==null?x=Xe:S(x,0,k),C=p(x/g),br)if(crypto.getRandomValues){for(c=crypto.getRandomValues(new Uint32Array(C*=2));M<C;)(L=131072*c[M]+(c[M+1]>>>11))>=9e15?(_=crypto.getRandomValues(new Uint32Array(2)),c[M]=_[0],c[M+1]=_[1]):(F.push(L%1e14),M+=2);M=C/2}else{if(!crypto.randomBytes)throw br=!1,Error(b+"crypto unavailable");for(c=crypto.randomBytes(C*=7);M<C;)(L=281474976710656*(31&c[M])+1099511627776*c[M+1]+4294967296*c[M+2]+16777216*c[M+3]+(c[M+4]<<16)+(c[M+5]<<8)+c[M+6])>=9e15?crypto.randomBytes(7).copy(c,M):(F.push(L%1e14),M+=7);M=C/7}if(!br)for(;M<C;)(L=se())<9e15&&(F[M++]=L%1e14);for(C=F[--M],x%=g,C&&x&&(L=H[g-x],F[M]=m(C/L)*L);F[M]===0;F.pop(),M--);if(M<0)F=[N=0];else{for(N=-1;F[0]===0;F.splice(0,1),N-=g);for(M=1,L=F[0];L>=10;L/=10,M++);M<g&&(N-=g-M)}return ee.e=N,ee.c=F,ee}),ue.sum=function(){for(var x=1,c=arguments,_=new ue(c[0]);x<c.length;)_=_.plus(c[x++]);return _},I=(function(){var x="0123456789";function c(_,N,C,L){for(var M,F,ee=[0],re=0,te=_.length;re<te;){for(F=ee.length;F--;ee[F]*=N);for(ee[0]+=L.indexOf(_.charAt(re++)),M=0;M<ee.length;M++)ee[M]>C-1&&(ee[M+1]==null&&(ee[M+1]=0),ee[M+1]+=ee[M]/C|0,ee[M]%=C)}return ee.reverse()}return function(_,N,C,L,M){var F,ee,re,te,me,ke,je,$e,tt=_.indexOf("."),ot=Xe,Me=et;for(tt>=0&&(te=Ct,Ct=0,_=_.replace(".",""),ke=($e=new ue(N)).pow(_.length-tt),Ct=te,$e.c=c(W(Y(ke.c),ke.e,"0"),10,C,x),$e.e=$e.c.length),re=te=(je=c(_,N,C,M?(F=Ot,x):(F=x,Ot))).length;je[--te]==0;je.pop());if(!je[0])return F.charAt(0);if(tt<0?--re:(ke.c=je,ke.e=re,ke.s=L,je=(ke=y(ke,$e,ot,Me,C)).c,me=ke.r,re=ke.e),tt=je[ee=re+ot+1],te=C/2,me=me||ee<0||je[ee+1]!=null,me=Me<4?(tt!=null||me)&&(Me==0||Me==(ke.s<0?3:2)):tt>te||tt==te&&(Me==4||me||Me==6&&1&je[ee-1]||Me==(ke.s<0?8:7)),ee<1||!je[0])_=me?W(F.charAt(1),-ot,F.charAt(0)):F.charAt(0);else{if(je.length=ee,me)for(--C;++je[--ee]>C;)je[ee]=0,ee||(++re,je=[1].concat(je));for(te=je.length;!je[--te];);for(tt=0,_="";tt<=te;_+=F.charAt(je[tt++]));_=W(_,re,F.charAt(0))}return _}})(),y=(function(){function x(N,C,L){var M,F,ee,re,te=0,me=N.length,ke=C%v,je=C/v|0;for(N=N.slice();me--;)te=((F=ke*(ee=N[me]%v)+(M=je*ee+(re=N[me]/v|0)*ke)%v*v+te)/L|0)+(M/v|0)+je*re,N[me]=F%L;return te&&(N=[te].concat(N)),N}function c(N,C,L,M){var F,ee;if(L!=M)ee=L>M?1:-1;else for(F=ee=0;F<L;F++)if(N[F]!=C[F]){ee=N[F]>C[F]?1:-1;break}return ee}function _(N,C,L,M){for(var F=0;L--;)N[L]-=F,F=N[L]<C[L]?1:0,N[L]=F*M+N[L]-C[L];for(;!N[0]&&N.length>1;N.splice(0,1));}return function(N,C,L,M,F){var ee,re,te,me,ke,je,$e,tt,ot,Me,Ve,ht,Fr,Qr,Jr,Ft,_r,Tt=N.s==C.s?1:-1,mt=N.c,Je=C.c;if(!(mt&&mt[0]&&Je&&Je[0]))return new ue(N.s&&C.s&&(mt?!Je||mt[0]!=Je[0]:Je)?mt&&mt[0]==0||!Je?0*Tt:Tt/0:NaN);for(ot=(tt=new ue(Tt)).c=[],Tt=L+(re=N.e-C.e)+1,F||(F=A,re=w(N.e/g)-w(C.e/g),Tt=Tt/g|0),te=0;Je[te]==(mt[te]||0);te++);if(Je[te]>(mt[te]||0)&&re--,Tt<0)ot.push(1),me=!0;else{for(Qr=mt.length,Ft=Je.length,te=0,Tt+=2,(ke=m(F/(Je[0]+1)))>1&&(Je=x(Je,ke,F),mt=x(mt,ke,F),Ft=Je.length,Qr=mt.length),Fr=Ft,Ve=(Me=mt.slice(0,Ft)).length;Ve<Ft;Me[Ve++]=0);_r=Je.slice(),_r=[0].concat(_r),Jr=Je[0],Je[1]>=F/2&&Jr++;do{if(ke=0,(ee=c(Je,Me,Ft,Ve))<0){if(ht=Me[0],Ft!=Ve&&(ht=ht*F+(Me[1]||0)),(ke=m(ht/Jr))>1)for(ke>=F&&(ke=F-1),$e=(je=x(Je,ke,F)).length,Ve=Me.length;c(je,Me,$e,Ve)==1;)ke--,_(je,Ft<$e?_r:Je,$e,F),$e=je.length,ee=1;else ke==0&&(ee=ke=1),$e=(je=Je.slice()).length;if($e<Ve&&(je=[0].concat(je)),_(Me,je,Ve,F),Ve=Me.length,ee==-1)for(;c(Je,Me,Ft,Ve)<1;)ke++,_(Me,Ft<Ve?_r:Je,Ve,F),Ve=Me.length}else ee===0&&(ke++,Me=[0]);ot[te++]=ke,Me[0]?Me[Ve++]=mt[Fr]||0:(Me=[mt[Fr]],Ve=1)}while((Fr++<Qr||Me[0]!=null)&&Tt--);me=Me[0]!=null,ot[0]||ot.splice(0,1)}if(F==A){for(te=1,Tt=ot[0];Tt>=10;Tt/=10,te++);Ue(tt,L+(tt.e=te+re*g-1)+1,M,me)}else tt.e=re,tt.r=+me;return tt}})(),pe=/^(-?)0([xbo])(?=\w[\w.]*$)/i,Ie=/^([^.]+)\.$/,Pe=/^\.([^.]+)$/,Mt=/^-?(Infinity|NaN)$/,it=/^\s*\+(?=[\w.])|^\s+|\s+$/g,j=function(x,c,_,N){var C,L=_?c:c.replace(it,"");if(Mt.test(L))x.s=isNaN(L)?null:L<0?-1:1;else{if(!_&&(L=L.replace(pe,(function(M,F,ee){return C=(ee=ee.toLowerCase())=="x"?16:ee=="b"?2:8,N&&N!=C?M:F})),N&&(C=N,L=L.replace(Ie,"$1").replace(Pe,"0.$1")),c!=L))return new ue(L,C);if(ue.DEBUG)throw Error(b+"Not a"+(N?" base "+N:"")+" number: "+c);x.s=null}x.c=x.e=null},ge.absoluteValue=ge.abs=function(){var x=new ue(this);return x.s<0&&(x.s=1),x},ge.comparedTo=function(x,c){return q(this,new ue(x,c))},ge.decimalPlaces=ge.dp=function(x,c){var _,N,C,L=this;if(x!=null)return S(x,0,k),c==null?c=et:S(c,0,8),Ue(new ue(L),x+L.e+1,c);if(!(_=L.c))return null;if(N=((C=_.length-1)-w(this.e/g))*g,C=_[C])for(;C%10==0;C/=10,N--);return N<0&&(N=0),N},ge.dividedBy=ge.div=function(x,c){return y(this,new ue(x,c),Xe,et)},ge.dividedToIntegerBy=ge.idiv=function(x,c){return y(this,new ue(x,c),0,1)},ge.exponentiatedBy=ge.pow=function(x,c){var _,N,C,L,M,F,ee,re,te=this;if((x=new ue(x)).c&&!x.isInteger())throw Error(b+"Exponent not an integer: "+Jt(x));if(c!=null&&(c=new ue(c)),M=x.e>14,!te.c||!te.c[0]||te.c[0]==1&&!te.e&&te.c.length==1||!x.c||!x.c[0])return re=new ue(Math.pow(+Jt(te),M?x.s*(2-$(x)):+Jt(x))),c?re.mod(c):re;if(F=x.s<0,c){if(c.c?!c.c[0]:!c.s)return new ue(NaN);(N=!F&&te.isInteger()&&c.isInteger())&&(te=te.mod(c))}else{if(x.e>9&&(te.e>0||te.e<-1||(te.e==0?te.c[0]>1||M&&te.c[1]>=24e7:te.c[0]<8e13||M&&te.c[0]<=9999975e7)))return L=te.s<0&&$(x)?-0:0,te.e>-1&&(L=1/L),new ue(F?1/L:L);Ct&&(L=p(Ct/g+2))}for(M?(_=new ue(.5),F&&(x.s=1),ee=$(x)):ee=(C=Math.abs(+Jt(x)))%2,re=new ue(St);;){if(ee){if(!(re=re.times(te)).c)break;L?re.c.length>L&&(re.c.length=L):N&&(re=re.mod(c))}if(C){if((C=m(C/2))===0)break;ee=C%2}else if(Ue(x=x.times(_),x.e+1,1),x.e>14)ee=$(x);else{if((C=+Jt(x))==0)break;ee=C%2}te=te.times(te),L?te.c&&te.c.length>L&&(te.c.length=L):N&&(te=te.mod(c))}return N?re:(F&&(re=St.div(re)),c?re.mod(c):L?Ue(re,Ct,et,void 0):re)},ge.integerValue=function(x){var c=new ue(this);return x==null?x=et:S(x,0,8),Ue(c,c.e+1,x)},ge.isEqualTo=ge.eq=function(x,c){return q(this,new ue(x,c))===0},ge.isFinite=function(){return!!this.c},ge.isGreaterThan=ge.gt=function(x,c){return q(this,new ue(x,c))>0},ge.isGreaterThanOrEqualTo=ge.gte=function(x,c){return(c=q(this,new ue(x,c)))===1||c===0},ge.isInteger=function(){return!!this.c&&w(this.e/g)>this.c.length-2},ge.isLessThan=ge.lt=function(x,c){return q(this,new ue(x,c))<0},ge.isLessThanOrEqualTo=ge.lte=function(x,c){return(c=q(this,new ue(x,c)))===-1||c===0},ge.isNaN=function(){return!this.s},ge.isNegative=function(){return this.s<0},ge.isPositive=function(){return this.s>0},ge.isZero=function(){return!!this.c&&this.c[0]==0},ge.minus=function(x,c){var _,N,C,L,M=this,F=M.s;if(c=(x=new ue(x,c)).s,!F||!c)return new ue(NaN);if(F!=c)return x.s=-c,M.plus(x);var ee=M.e/g,re=x.e/g,te=M.c,me=x.c;if(!ee||!re){if(!te||!me)return te?(x.s=-c,x):new ue(me?M:NaN);if(!te[0]||!me[0])return me[0]?(x.s=-c,x):new ue(te[0]?M:et==3?-0:0)}if(ee=w(ee),re=w(re),te=te.slice(),F=ee-re){for((L=F<0)?(F=-F,C=te):(re=ee,C=me),C.reverse(),c=F;c--;C.push(0));C.reverse()}else for(N=(L=(F=te.length)<(c=me.length))?F:c,F=c=0;c<N;c++)if(te[c]!=me[c]){L=te[c]<me[c];break}if(L&&(C=te,te=me,me=C,x.s=-x.s),(c=(N=me.length)-(_=te.length))>0)for(;c--;te[_++]=0);for(c=A-1;N>F;){if(te[--N]<me[N]){for(_=N;_&&!te[--_];te[_]=c);--te[_],te[N]+=A}te[N]-=me[N]}for(;te[0]==0;te.splice(0,1),--re);return te[0]?qn(x,te,re):(x.s=et==3?-1:1,x.c=[x.e=0],x)},ge.modulo=ge.mod=function(x,c){var _,N,C=this;return x=new ue(x,c),!C.c||!x.s||x.c&&!x.c[0]?new ue(NaN):!x.c||C.c&&!C.c[0]?new ue(C):(Yr==9?(N=x.s,x.s=1,_=y(C,x,0,3),x.s=N,_.s*=N):_=y(C,x,0,Yr),(x=C.minus(_.times(x))).c[0]||Yr!=1||(x.s=C.s),x)},ge.multipliedBy=ge.times=function(x,c){var _,N,C,L,M,F,ee,re,te,me,ke,je,$e,tt,ot,Me=this,Ve=Me.c,ht=(x=new ue(x,c)).c;if(!(Ve&&ht&&Ve[0]&&ht[0]))return!Me.s||!x.s||Ve&&!Ve[0]&&!ht||ht&&!ht[0]&&!Ve?x.c=x.e=x.s=null:(x.s*=Me.s,Ve&&ht?(x.c=[0],x.e=0):x.c=x.e=null),x;for(N=w(Me.e/g)+w(x.e/g),x.s*=Me.s,(ee=Ve.length)<(me=ht.length)&&($e=Ve,Ve=ht,ht=$e,C=ee,ee=me,me=C),C=ee+me,$e=[];C--;$e.push(0));for(tt=A,ot=v,C=me;--C>=0;){for(_=0,ke=ht[C]%ot,je=ht[C]/ot|0,L=C+(M=ee);L>C;)_=((re=ke*(re=Ve[--M]%ot)+(F=je*re+(te=Ve[M]/ot|0)*ke)%ot*ot+$e[L]+_)/tt|0)+(F/ot|0)+je*te,$e[L--]=re%tt;$e[L]=_}return _?++N:$e.splice(0,1),qn(x,$e,N)},ge.negated=function(){var x=new ue(this);return x.s=-x.s||null,x},ge.plus=function(x,c){var _,N=this,C=N.s;if(c=(x=new ue(x,c)).s,!C||!c)return new ue(NaN);if(C!=c)return x.s=-c,N.minus(x);var L=N.e/g,M=x.e/g,F=N.c,ee=x.c;if(!L||!M){if(!F||!ee)return new ue(C/0);if(!F[0]||!ee[0])return ee[0]?x:new ue(F[0]?N:0*C)}if(L=w(L),M=w(M),F=F.slice(),C=L-M){for(C>0?(M=L,_=ee):(C=-C,_=F),_.reverse();C--;_.push(0));_.reverse()}for((C=F.length)-(c=ee.length)<0&&(_=ee,ee=F,F=_,c=C),C=0;c;)C=(F[--c]=F[c]+ee[c]+C)/A|0,F[c]=A===F[c]?0:F[c]%A;return C&&(F=[C].concat(F),++M),qn(x,F,M)},ge.precision=ge.sd=function(x,c){var _,N,C,L=this;if(x!=null&&x!==!!x)return S(x,1,k),c==null?c=et:S(c,0,8),Ue(new ue(L),x,c);if(!(_=L.c))return null;if(N=(C=_.length-1)*g+1,C=_[C]){for(;C%10==0;C/=10,N--);for(C=_[0];C>=10;C/=10,N++);}return x&&L.e+1>N&&(N=L.e+1),N},ge.shiftedBy=function(x){return S(x,-9007199254740991,T),this.times("1e"+x)},ge.squareRoot=ge.sqrt=function(){var x,c,_,N,C,L=this,M=L.c,F=L.s,ee=L.e,re=Xe+4,te=new ue("0.5");if(F!==1||!M||!M[0])return new ue(!F||F<0&&(!M||M[0])?NaN:M?L:1/0);if((F=Math.sqrt(+Jt(L)))==0||F==1/0?(((c=Y(M)).length+ee)%2==0&&(c+="0"),F=Math.sqrt(+c),ee=w((ee+1)/2)-(ee<0||ee%2),_=new ue(c=F==1/0?"5e"+ee:(c=F.toExponential()).slice(0,c.indexOf("e")+1)+ee)):_=new ue(F+""),_.c[0]){for((F=(ee=_.e)+re)<3&&(F=0);;)if(C=_,_=te.times(C.plus(y(L,C,re,1))),Y(C.c).slice(0,F)===(c=Y(_.c)).slice(0,F)){if(_.e<ee&&--F,(c=c.slice(F-3,F+1))!="9999"&&(N||c!="4999")){+c&&(+c.slice(1)||c.charAt(0)!="5")||(Ue(_,_.e+Xe+2,1),x=!_.times(_).eq(L));break}if(!N&&(Ue(C,C.e+Xe+2,0),C.times(C).eq(L))){_=C;break}re+=4,F+=4,N=1}}return Ue(_,_.e+Xe+1,et,x)},ge.toExponential=function(x,c){return x!=null&&(S(x,0,k),x++),Mr(this,x,c,1)},ge.toFixed=function(x,c){return x!=null&&(S(x,0,k),x=x+this.e+1),Mr(this,x,c)},ge.toFormat=function(x,c,_){var N,C=this;if(_==null)x!=null&&c&&typeof c=="object"?(_=c,c=null):x&&typeof x=="object"?(_=x,x=c=null):_=Br;else if(typeof _!="object")throw Error(b+"Argument not an object: "+_);if(N=C.toFixed(x,c),C.c){var L,M=N.split("."),F=+_.groupSize,ee=+_.secondaryGroupSize,re=_.groupSeparator||"",te=M[0],me=M[1],ke=C.s<0,je=ke?te.slice(1):te,$e=je.length;if(ee&&(L=F,F=ee,ee=L,$e-=L),F>0&&$e>0){for(L=$e%F||F,te=je.substr(0,L);L<$e;L+=F)te+=re+je.substr(L,F);ee>0&&(te+=re+je.slice(L)),ke&&(te="-"+te)}N=me?te+(_.decimalSeparator||"")+((ee=+_.fractionGroupSize)?me.replace(new RegExp("\\d{"+ee+"}\\B","g"),"$&"+(_.fractionGroupSeparator||"")):me):te}return(_.prefix||"")+N+(_.suffix||"")},ge.toFraction=function(x){var c,_,N,C,L,M,F,ee,re,te,me,ke,je=this,$e=je.c;if(x!=null&&(!(F=new ue(x)).isInteger()&&(F.c||F.s!==1)||F.lt(St)))throw Error(b+"Argument "+(F.isInteger()?"out of range: ":"not an integer: ")+Jt(F));if(!$e)return new ue(je);for(c=new ue(St),re=_=new ue(St),N=ee=new ue(St),ke=Y($e),L=c.e=ke.length-je.e-1,c.c[0]=H[(M=L%g)<0?g+M:M],x=!x||F.comparedTo(c)>0?L>0?c:re:F,M=Nt,Nt=1/0,F=new ue(ke),ee.c[0]=0;te=y(F,c,0,1),(C=_.plus(te.times(N))).comparedTo(x)!=1;)_=N,N=C,re=ee.plus(te.times(C=re)),ee=C,c=F.minus(te.times(C=c)),F=C;return C=y(x.minus(_),N,0,1),ee=ee.plus(C.times(re)),_=_.plus(C.times(N)),ee.s=re.s=je.s,me=y(re,N,L*=2,et).minus(je).abs().comparedTo(y(ee,_,L,et).minus(je).abs())<1?[re,N]:[ee,_],Nt=M,me},ge.toNumber=function(){return+Jt(this)},ge.toPrecision=function(x,c){return x!=null&&S(x,1,k),Mr(this,x,c,2)},ge.toString=function(x){var c,_=this,N=_.s,C=_.e;return C===null?N?(c="Infinity",N<0&&(c="-"+c)):c="NaN":(x==null?c=C<=Pt||C>=Lr?J(Y(_.c),C):W(Y(_.c),C,"0"):x===10&&wr?c=W(Y((_=Ue(new ue(_),Xe+C+1,et)).c),_.e,"0"):(S(x,2,Ot.length,"Base"),c=I(W(Y(_.c),C,"0"),10,x,N,!0)),N<0&&_.c[0]&&(c="-"+c)),c},ge.valueOf=ge.toJSON=function(){return Jt(this)},ge._isBigNumber=!0,ge[Symbol.toStringTag]="BigNumber",ge[Symbol.for("nodejs.util.inspect.custom")]=ge.valueOf,l!=null&&ue.set(l),ue})();const X={ROUNDING_MODE:ne.ROUND_DOWN};function B(a){return new TextEncoder().encode(a)}function P(a){return typeof a=="string"?P(U(a)):new TextDecoder().decode(a)}ne.config(X);const K="UNKNOWN_ERROR",Z="INVALID_ARGUMENT";function D(a,l=K,y={}){const I=[];Object.keys(y).forEach((se=>{try{I.push(se+"="+JSON.stringify(y[se]))}catch{I.push(se+"="+JSON.stringify(y[se].toString()))}}));const j=a;I.length&&(a+=" ("+I.join(", ")+")");const V=new Error(a);return V.reason=j,V.code=l,Object.keys(y).forEach((function(se){V[se]=y[se]})),V}function U(a){if(typeof a!="string")throw new Error("hexToBytes only accept strings, got: "+typeof a);if(a.substr(0,2)==="0x")return U(a.substr(2));const l=new Uint8Array(Math.ceil(a.length/2));let y=0;for(let I=0;I<a.length;I+=2){const j=parseInt(a.substr(I,2),16);if(isNaN(j))throw new Error("Cannot read hex string:"+JSON.stringify(a));l[y]=j,y++}return l}function R(a){return Array.from(a).map((l=>l.toString(16).padStart(2,"0"))).join("")}function O(a,l){if(typeof a=="string"){if(l&&l.encoding==="hex"&&typeof a=="string"){let y=a;y.length>2&&y.substr(0,2)==="0x"&&(y=y.substr(2));const I=U(y);return d.keccak256(I)}return d.keccak256(B(a))}return d.keccak256(a)}const z={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};function Q(a,l,y){return new Array(l-a.length+1).join(y||"0")+a}function ce(a){let l="",y=0;const I=a.length;for(a.substring(0,2)==="0x"&&(y=2);y<I;y+=2){const j=parseInt(a.substr(y,2),16);l+=String.fromCharCode(j)}return l}function ie(a){return Ht(a)&&a.name&&a.name.indexOf("(")!==-1?a.name:a.name+"("+de(!1,a.inputs||[]).join(",")+")"}function le(...a){const l=a.reduce(((j,V)=>j+V.length),0),y=new Uint8Array(l);let I=0;for(const j of a)y.set(j,I),I+=j.length;return y}function de(a,l){const y=[];return l.forEach((function(I){if(typeof I.components=="object"){if(I.type.substring(0,5)!=="tuple")throw new Error("components found but type is not tuple; report on GitHub");let j="";const V=I.type.indexOf("[");V>=0&&(j=I.type.substring(V));const se=de(a,I.components);y.push("("+se.join(",")+")"+j)}else y.push(I.type)})),y}function Re(a){const l=a.indexOf("("),y=a.indexOf(")");return l!==-1&&y!==-1?a.substr(0,l):a}function we(a){const l=a.indexOf("("),y=a.indexOf(")");return l!==-1&&y!==-1?a.substr(l+1,y-l-1).replace(" ",""):""}function xe(a){return a==null?a:Be(a).toNumber()}function ye(a){return Be(a).toNumber()}function He(a){return Vt(a)?a.toString(10):""+a}function qe(a){return typeof a=="string"&&!a.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(a)?"0x"+a:Ae(a)}function he(a){if(typeof a=="string")return a.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(a)?Ae(a):"0x"+R(B(a));if(a instanceof Uint8Array)return"0x"+R(a);throw new Error(`toStringData: Error trying to convert ${a} (${typeof a}) to a hex string.`)}function fe(a){return typeof a=="boolean"?a:Be(a).toNumber()!==0}function ve(a){const l=Be(a),y=l.toString(16);return l.isLessThan(0)?"-0x"+y.substr(1):"0x"+y}function Ae(a){if(_o(a))return ve(+a);if(Vt(a))return ve(a);if(Rt(a)){const l=a;if(l.indexOf("-0x")===0)return ve(l);if(l.indexOf("0x")===0)return l;if(!isFinite(l))return R(B(l))}if(a instanceof Uint8Array)return"0x"+R(a);if(sr(a)||Ht(a))throw new Error("toHex can only be called with scalar values, not objects or arrays");return ve(a)}function Le(a){const l=a?a.toLowerCase():"ether",y=z[l];if(y===void 0)throw new Error("This unit doesn't exists, please use the one of the following units"+JSON.stringify(z,null,2));return new ne(y,10)}function Be(a){let l=a||0;return Vt(l)?l:(typeof l=="string"&&(l=l.trim()),typeof l!="string"||l.indexOf("0x")!==0&&l.indexOf("-0x")!==0?l instanceof Uint8Array?new ne(R(l),16):new ne(l,10):new ne(l.replace("0x","").toLowerCase(),16))}function ft(a){return new ne(new Array(a).fill("1").join(""),2)}function nt(a,l=256){const y=Be(a).integerValue();return y.isLessThan(0)?ft(l).plus(y).plus(1):y}function qt(a,l){return Q(a.toString(2),l,"0")[0]==="1"}function Ut(a){if(typeof a!="string")throw D("invalid address",Z,{arg:"address",value:a});if(a.trim().match(/^(0x)?[0-9a-fA-F]{40}$/))return a.trim().substring(0,2)!=="0x"&&(a="0x"+a),gr(a);throw D("invalid address",Z,{arg:"address",value:a})}function or(a,l=256){if(qt(a,l)){const y=ft(l);return a.minus(y).minus(1)}return a}function Or(a){return/^0x[0-9a-f]{40}$/i.test(a)}function Qt(a){return!!/^(0x)?[0-9a-f]{40}$/i.test(a)&&(!(!/^(0x)?[0-9a-f]{40}$/.test(a)&&!/^(0x)?[0-9A-F]{40}$/.test(a))||Mn(a))}function Mn(a){const l=a.replace("0x",""),y=O(l.toLowerCase());for(let I=0;I<40;I++)if(parseInt(y[I],16)>7&&l[I].toUpperCase()!==l[I]||parseInt(y[I],16)<=7&&l[I].toLowerCase()!==l[I])return!1;return!0}function gr(a){if(a===void 0)return"";const l=a.toLowerCase().replace("0x",""),y=O(l);let I="0x";for(let j=0;j<l.length;j++)parseInt(y[j],16)>7?I+=l[j].toUpperCase():I+=l[j];return I}function yt(a){if(!Array.isArray(a))throw new Error(`Value was not an array: ${JSON.stringify(a)}`);return a}function Kr(a){return Or(a)?a:/^[0-9a-f]{40}$/.test(a)?"0x"+a:"0x"+Q(Ae(a).substr(2),40)}function Vt(a){return a instanceof ne}function Rt(a){return typeof a=="string"||a&&a.constructor&&a.constructor.name==="String"}function Ht(a){return a!==null&&!Array.isArray(a)&&typeof a=="object"}function _o(a){return typeof a=="boolean"}function sr(a){return Array.isArray(a)}var Ka,Fn;function Ya(a,l){if(!a)throw new Error("jsonrpc method should be specified!");if(typeof a!="string")throw new Error(`jsonrpc must be a string, got ${typeof a}!`);return r.messageId++,{jsonrpc:"2.0",id:r.messageId,method:a,params:l||[]}}function Dl(a){return Array.isArray(a)?a.every(l):l(a);function l(y){return!!y&&(y.error===void 0||y.error===null)&&y.jsonrpc==="2.0"&&y.id!==null&&"result"in y&&y.result!==void 0}}r.TransactionStatus=void 0,(Ka=r.TransactionStatus||(r.TransactionStatus={})).pending="pending",Ka.confirmed="confirmed",Ka.failed="failed",r.TransactionType=void 0,(Fn=r.TransactionType||(r.TransactionType={})).queued="queued",Fn.dropped="dropped",Fn.replaced="replaced",Fn.pending="pending",Fn.reverted="reverted",Fn.confirmed="confirmed",r.messageId=0;function Qa(a){return Be(a)}function ql(a){return a==="latest"||a==="pending"||a==="earliest"}function mn(a){return a===void 0?"latest":vt(a)}function vt(a){return a==null?null:ql(a)?a:Ae(a)}function Ja(a){return a.from&&(a.from=zt(a.from)),a.to&&(a.to=zt(a.to)),a.gasPrice!==void 0&&(a.gasPrice=ve(a.gasPrice)),a.gas!==void 0&&(a.gas=ve(a.gas)),a.value!==void 0&&(a.value=ve(a.value)),a.nonce!==void 0&&(a.nonce=ve(a.nonce)),a.data&&!a.data.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(a.data)&&(a.data="0x"+a.data),a}function $n(a){if(typeof a!="string")throw new Error("The provided input for transactionId is not a string, got: "+JSON.stringify(a));if(a.indexOf("0x")!==0)throw new Error("TransactionID must start with 0x, got: "+JSON.stringify(a));if(a.length!==66)throw new Error("TransactionID must be a 32 byte hex, got: "+JSON.stringify(a));return a}function Xa(a){if(typeof a!="object")throw new Error("Did not provide transaction options");if(!a.from)throw new Error('Missing "from" in transaction options');return a.from=zt(a.from),a.to&&(a.to=zt(a.to)),a.gasPrice!==void 0&&(a.gasPrice=ve(a.gasPrice)),a.gas!==void 0&&(a.gas=ve(a.gas)),a.value!==void 0&&(a.value=ve(a.value)),a.nonce!==void 0&&(a.nonce=ve(a.nonce)),a.data&&!a.data.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(a.data)&&(a.data="0x"+a.data),a}function Eo(a){return a?(a.blockNumber!==null&&(a.blockNumber=ye(a.blockNumber)),a.transactionIndex!==null&&(a.transactionIndex=ye(a.transactionIndex)),a.nonce=ye(a.nonce),a.gas=ye(a.gas),a.gasPrice=Be(a.gasPrice),a.value=Be(a.value),a):null}function Ul(a){return a?(a.blockNumber!==null&&(a.blockNumber=ye(a.blockNumber)),a.transactionIndex!==null&&(a.transactionIndex=ye(a.transactionIndex)),a.cumulativeGasUsed=ye(a.cumulativeGasUsed),a.gasUsed=ye(a.gasUsed),a.effectiveGasPrice!==void 0&&a.effectiveGasPrice!==null&&(a.effectiveGasPrice=ye(a.effectiveGasPrice)),a.logs&&sr(a.logs)&&(a.logs=a.logs.map((function(l){return ds(l)}))),a.status=ye(a.status||""),a):null}function xo(a){return a?(a.gasLimit=ye(a.gasLimit),a.gasUsed=ye(a.gasUsed),a.size=ye(a.size),a.timestamp=ye(a.timestamp),a.number!==null&&(a.number=ye(a.number)),a.difficulty=Be(a.difficulty),a.totalDifficulty=Be(a.totalDifficulty),sr(a.transactions)&&a.transactions.forEach((function(l,y){Rt(l)||(a.transactions[y]=Eo(l)||a.transactions[y])})),a):null}function ds(a){return a&&(a.blockNumber&&(a.blockNumber=ye(a.blockNumber)),a.transactionIndex&&(a.transactionIndex=ye(a.transactionIndex)),a.logIndex&&(a.logIndex=ye(a.logIndex)),a)}function zt(a){if(Or(a))return a;if(Qt(a))return"0x"+a;throw new Error(`Invalid address: ${JSON.stringify(a)}`)}function Vl(a){return a}function Hl(a){return a&&(a.startingBlock=ye(a.startingBlock),a.currentBlock=ye(a.currentBlock),a.highestBlock=ye(a.highestBlock),a.knownStates&&(a.knownStates=ye(a.knownStates),a.pulledStates=ye(a.pulledStates)),a)}function ei(a){if(a===null)throw D("cannot convert null value to array",Z,{arg:"value",value:a});if(a instanceof Uint8Array)return new Uint8Array(a);if(typeof a=="string"){const l=a.match(/^(0x)?[0-9a-fA-F]*$/);if(!l)throw D("invalid hexidecimal string",Z,{arg:"value",value:a});if(l[1]!=="0x")throw D("hex string must have 0x prefix",Z,{arg:"value",value:a});(a=a.substring(2)).length%2&&(a="0"+a);const y=[];for(let I=0;I<a.length;I+=2)y.push(parseInt(a.substr(I,2),16));return new Uint8Array(y)}if((function(l){if(!l||parseInt(String(l.length))!==l.length||typeof l=="string")return!1;for(let y=0;y<l.length;y++){const I=l[y];if(I<0||I>=256||parseInt(String(I))!==I)return!1}return!0})(a))return new Uint8Array(a);throw D("invalid arrayify value",void 0,{arg:"value",value:a,type:typeof a})}function zl(a,l,y){Object.defineProperty(a,l,{enumerable:!0,value:y,writable:!1})}const Ah=new ne(-1),Ih=new ne(0),kh=new ne(1),Gl=new ne("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function Wl(a){return(function(l,y){function I(se){return new Error('unexpected character "'+l[se]+'" at position '+se+' in "'+l+'"')}const j={type:"",name:"",state:{allowType:!0}};let V=j;for(let se=0;se<l.length;se++){const pe=l[se];switch(pe){case"(":if(!V.state.allowParams)throw I(se);V.state.allowType=!1,V.type=So(V.type),V.components=[{type:"",name:"",parent:V,state:{allowType:!0}}],V=V.components[0];break;case")":delete V.state,V.name==="indexed"&&(V.indexed=!0,V.name=""),V.type=So(V.type);const Ie=V;if(V=V.parent,!V)throw I(se);delete Ie.parent,V.state.allowParams=!1,V.state.allowName=!0,V.state.allowArray=!0;break;case",":delete V.state,V.name==="indexed"&&(V.indexed=!0,V.name=""),V.type=So(V.type);const Pe={type:"",name:"",parent:V.parent,state:{allowType:!0}};V.parent.components.push(Pe),delete V.parent,V=Pe;break;case" ":V.state.allowType&&V.type!==""&&(V.type=So(V.type),delete V.state.allowType,V.state.allowName=!0,V.state.allowParams=!0),V.state.allowName&&V.name!==""&&(V.name==="indexed"?(V.indexed=!0,V.name=""):V.state.allowName=!1);break;case"[":if(!V.state.allowArray)throw I(se);V.type+=pe,V.state.allowArray=!1,V.state.allowName=!1,V.state.readArray=!0;break;case"]":if(!V.state.readArray)throw I(se);V.type+=pe,V.state.readArray=!1,V.state.allowArray=!0,V.state.allowName=!0;break;default:if(V.state.allowType)V.type+=pe,V.state.allowParams=!0,V.state.allowArray=!0;else if(V.state.allowName)V.name+=pe,delete V.state.allowArray;else{if(!V.state.readArray)throw I(se);V.type+=pe}}}if(V.parent)throw new Error("unexpected eof");return delete j.state,V.name==="indexed"&&(V.indexed=!0,V.name=""),j.type=So(j.type),j})(a)}function So(a){return a.match(/^uint($|[^1-9])/)?a="uint256"+a.substring(4):a.match(/^int($|[^1-9])/)&&(a="int256"+a.substring(3)),a}const Rh=new RegExp(/^bytes([0-9]*)$/),Zl=new RegExp(/^(u?int)([0-9]*)$/),Ph=new RegExp(/^(.*)\[([0-9]*)\]$/),Nh=function(a,l){const y=a.match(Zl);return y&&parseInt(y[2])<=48?l.toNumber():l};class yr{constructor(l,y,I,j="",V){this.coerceFunc=l,this.name=y,this.type=I,this.localName=j,this.dynamic=V}}class Oh extends yr{constructor(l){super(l.coerceFunc,l.name,l.type,void 0,l.dynamic),zl(this,"coder",l)}encode(l){return this.coder.encode(l)}decode(l,y){return this.coder.decode(l,y)}}class jh extends yr{constructor(l,y){super(l,"null","",y,!1)}encode(l){return ei([])}decode(l,y){if(y>l.length)throw new Error("invalid null");return{consumed:0,value:this.coerceFunc("null",void 0)}}}function fs(a,l){return new ne(a.toString(2).substr(-l),2)}class Kl extends yr{constructor(l,y,I,j){const V=(I?"int":"uint")+8*y;super(l,V,V,j,!1),this.size=y,this.signed=I}encode(l){try{let y=Be(l);if(this.signed){let j=fs(Gl,8*this.size-1);if(y.gt(j))throw new Error("out-of-bounds");if(j=j.plus(kh).multipliedBy(Ah),y.lt(j))throw new Error("out-of-bounds")}else if(y.lt(Ih)||y.gt(fs(Gl,8*this.size)))throw new Error("out-of-bounds");y=fs(nt(y,8*this.size),8*this.size),this.signed&&(y=nt(or(y,8*this.size),256));const I=Q(nt(y).toString(16),64);if(I.indexOf("NaN")!==-1)throw D("invalid number value, NaN",Z,{arg:this.localName,coderType:this.name,value:l,v:y,twosComplement:nt(y),twosComplement16:nt(y).toString(16),pad:Q(nt(y).toString(16),64),size:this.size});return U(I)}catch(y){throw D("invalid number value",Z,{arg:this.localName,coderType:this.name,value:l,message:y.toString()})}}decode(l,y){if(l.length<y+32)throw D("insufficient data for "+this.name+" type",Z,{arg:this.localName,coderType:this.name,value:Ae(l.slice(y,y+32))});const I=32-this.size;let j=new ne(R(l.slice(y+I,y+32)),16);return j=this.signed?or(j,8*this.size):fs(j,8*this.size),{consumed:32,value:this.coerceFunc(this.name,j)}}}const jr=new Kl((function(a,l){return l}),32,!1,"none");class Yl extends yr{constructor(l,y,I){const j="bytes"+y;super(l,j,j,I,!1),this.length=y}encode(l){const y=new Uint8Array(32);try{if(typeof l=="string"&&l.length%2!=0)throw new Error("hex string cannot be odd-length");const I=ei(l);if(I.length>this.length)throw new Error("incorrect data length");y.set(I)}catch(I){throw D("invalid "+this.name+" value. Use hex strings or Uint8Array",Z,{arg:this.localName,coderType:this.name,value:I.value||l,details:I.message})}return y}decode(l,y){if(l.length<y+32)throw D("insufficient data for "+this.name+" type",Z,{arg:this.localName,coderType:this.name,value:Ae(l.slice(y,y+32))});return{consumed:32,value:this.coerceFunc(this.name,l.slice(y,y+this.length))}}}function Ql(a){const l=32*Math.ceil(a.length/32),y=new Uint8Array(l-a.length);return le(jr.encode(a.length),a,y)}function Jl(a,l,y){if(a.length<l+32)throw D("insufficient data for dynamicBytes length",Z,{arg:y,coderType:"dynamicBytes",value:Ae(a.slice(l,l+32))});let I=jr.decode(a,l).value;try{I=I.toNumber()}catch(j){throw j("dynamic bytes count too large",Z,{arg:y,coderType:"dynamicBytes",value:I.toString()})}if(a.length<l+32+I)throw D("insufficient data for dynamicBytes type",Z,{arg:y,coderType:"dynamicBytes",value:Ae(a.slice(l,l+32+I))});return{consumed:32+32*Math.ceil(I/32),value:a.slice(l+32,l+32+I)}}function hs(a){return 32*Math.ceil(a/32)}function Xl(a,l){if(!Array.isArray(l)){if(!l||typeof l!="object")throw D("invalid tuple value",Z,{coderType:"tuple",value:l});{const Ie=[];a.forEach((function(Pe){Ie.push(l[Pe.localName])})),l=Ie}}if(a.length!==l.length)throw D("types/value length mismatch",Z,{coderType:"tuple",value:l});const y=[];a.forEach((function(Ie,Pe){y.push({dynamic:Ie.dynamic,value:Ie.encode(l[Pe])})}));let I=0,j=0;y.forEach((function(Ie){Ie.dynamic?(I+=32,j+=hs(Ie.value.length)):I+=hs(Ie.value.length)}));let V=0,se=I;const pe=new Uint8Array(I+j);return y.forEach((function(Ie){Ie.dynamic?(pe.set(jr.encode(se),V),V+=32,pe.set(Ie.value,se),se+=hs(Ie.value.length)):(pe.set(Ie.value,V),V+=hs(Ie.value.length))})),pe}class Lh extends Array{}class Bh extends yr{constructor(l,y,I,j){super(l,"array",y.type+"["+(I>=0?I:"")+"]",j,I===-1||y.dynamic),this.coder=y,this.length=I}encode(l){if(!Array.isArray(l))throw D("expected array value",Z,{arg:this.localName,coderType:"array",value:l});let y=this.length,I=new Uint8Array(0);y===-1&&(y=l.length,I=jr.encode(y)),(function(V,se,pe){if(pe||(pe=""),V<se)throw D("missing argument"+pe,"MISSING_ARGUMENT",{count:V,expectedCount:se});if(V>se)throw D("too many arguments"+pe,"UNEXPECTED_ARGUMENT",{count:V,expectedCount:se})})(y,l.length,"in coder array"+(this.localName?" "+this.localName:""));const j=[];for(let V=0;V<l.length;V++)j.push(this.coder);return le(I,Xl(j,l))}decode(l,y){let I=0,j=this.length;if(j===-1){let pe;try{pe=jr.decode(l,y)}catch(Ie){throw D("insufficient data for dynamic array length",Z,{arg:this.localName,coderType:"array",value:Ie.value})}try{j=pe.value.toNumber()}catch{throw D("array count too large",Z,{arg:this.localName,coderType:"array",value:pe.value.toString()})}I+=pe.consumed,y+=pe.consumed}const V=[];for(let pe=0;pe<j;pe++)V.push(new Oh(this.coder));const se=(function(pe,Ie,Pe){const Mt=Pe;let it=0;const ge=[];return pe.forEach((function(St){let Xe;if(St.dynamic){const et=jr.decode(Ie,Pe);Xe=St.decode(Ie,Mt+et.value.toNumber()),Xe.consumed=et.consumed}else Xe=St.decode(Ie,Pe);Xe.value!==void 0&&ge.push(Xe.value),Pe+=Xe.consumed,it+=Xe.consumed})),{value:ge,consumed:it}})(V,l,y);return se.consumed+=I,se.value=this.coerceFunc(this.type,se.value),se}}class ti extends yr{constructor(l,y,I){let j=!1;const V=[];y.forEach((function(se){se.dynamic&&(j=!0),V.push(se.type)})),super(l,"tuple","tuple("+V.join(",")+")",I,j),this.coders=y}encode(l){return Xl(this.coders,l)}decode(l,y){const I=(function(j,V,se){const pe=se;let Ie=0;const Pe=new Lh;return j.forEach((function(Mt){let it;if(Mt.dynamic){const ge=jr.decode(V,se);it=Mt.decode(V,pe+ge.value.toNumber()),it.consumed=ge.consumed}else it=Mt.decode(V,se);it.value!==void 0&&Pe.push(it.value),se+=it.consumed,Ie+=it.consumed})),j.forEach((function(Mt,it){let ge=Mt.localName;ge&&(ge==="length"&&(ge="_length"),Pe[ge]!==null&&Pe[ge]!==void 0||(Pe[ge]=Pe[it]))})),{value:Pe,consumed:Ie}})(this.coders,l,y);return I.value=this.coerceFunc(this.type,I.value),I}}const Mh={address:class extends yr{constructor(a,l){super(a,"address","address",l,!1)}encode(a){const l=new Uint8Array(32),y=a.trim();if(!Qt(y))throw D("invalid address format",Z,{arg:this.localName,coderType:"address",value:a});try{l.set(U(zt(y)),12)}catch(I){throw D(`invalid address (${I.message})`,Z,{arg:this.localName,coderType:"address",value:a})}return l}decode(a,l){if(a.length<l+32)throw D("insufficuent data for address type",Z,{arg:this.localName,coderType:"address",value:Ae(a.slice(l,l+32)),missingBytes:l+32-a.length});return{consumed:32,value:this.coerceFunc("address",Ut(Ae(a.slice(l+12,l+32))))}}},bool:class extends yr{constructor(a,l){super(a,"bool","bool",l,!1)}encode(a){return jr.encode(a?1:0)}decode(a,l){try{const y=jr.decode(a,l);return{consumed:y.consumed,value:this.coerceFunc("bool",!y.value.isZero())}}catch(y){throw y.reason==="insufficient data for uint256 type"?D("insufficient data for boolean type",Z,{arg:this.localName,coderType:"boolean",value:y.value}):y}}},string:class extends yr{constructor(a,l){super(a,"string","string",l,!0)}encode(a){if(typeof a!="string")throw D("invalid string value",Z,{arg:this.localName,coderType:"string",value:a});return Ql(B(a))}decode(a,l){const y=Jl(a,l,this.localName);return y.value=this.coerceFunc("string",P(y.value)),y}},bytes:class extends yr{constructor(a,l){super(a,"bytes","bytes",l,!0)}encode(a){try{return Ql(ei(a))}catch(l){throw l("invalid bytes value",Z,{arg:this.localName,coderType:"bytes",value:l.value})}}decode(a,l){const y=Jl(a,l,this.localName);return y.value=this.coerceFunc("bytes",y.value),y}},function:class extends Yl{constructor(a,l){super(a,24,l)}}};function ps(a,l){const y=Mh[l.type];if(y)return new y(a,l.name);let I=l.type.match(Zl);if(I){const j=parseInt(I[2]||"256");if(j===0||j>256||j%8!=0)throw D("invalid "+I[1]+" bit length",Z,{arg:"param",value:l});return new Kl(a,j/8,I[1]==="int",l.name)}if(I=l.type.match(Rh),I){const j=parseInt(I[1]);if(j===0||j>32)throw D("invalid bytes length",Z,{arg:"param",value:l});return new Yl(a,j,l.name)}if(I=l.type.match(Ph),I){const j=Object.assign({},l),V=parseInt(I[2]||"-1");return j.type=I[1],new Bh(a,ps(a,j),V,l.name)}if(l.type.substring(0,5)==="tuple")return(function(j,V,se){V||(V=[]);const pe=V.map((Ie=>ps(j,Ie)));return new ti(j,pe,se)})(a,l.components,l.name);if(l.type==="")return new jh(a,l.name);throw D("invalid type",Z,{arg:"type",value:l.type,fullType:l})}class ri{constructor(l){(function(y,I){if(!(y instanceof I))throw D("missing new","MISSING_NEW",{name:I.name})})(this,ri),l||(l=Nh),zl(this,"coerceFunc",l)}encode(l,y){if(l.length!==y.length)throw D("types/values length mismatch",Z,{count:{types:l.length,values:y.length},value:{types:l,values:y}});const I=l.map((j=>typeof j=="string"?Wl(j):j)).map((j=>ps(this.coerceFunc,j)));return new ti(this.coerceFunc,I,"_").encode(y)}decode(l,y){const I=l.map((j=>typeof j=="string"?Wl(j):j)).map((j=>ps(this.coerceFunc,j)));return new ti(this.coerceFunc,I,"_").decode(y,0).value}}const eu=new ri;var tu,Ee;function Se(a,l,y,I){var j,V=arguments.length,se=V<3?l:I;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")se=Reflect.decorate(a,l,y,I);else for(var pe=a.length-1;pe>=0;pe--)(j=a[pe])&&(se=(V<3?j(se):V>3?j(l,y,se):j(l,y))||se);return V>3&&se&&Object.defineProperty(l,y,se),se}function Ce(a,l){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(a,l)}r.coder=void 0,(tu=r.coder||(r.coder={})).encodeParams=function(a,l){return R(eu.encode(a,l))},tu.decodeParams=function(a,l){if(a.length>0&&(!l||l==="0x"||l==="0X"))throw new Error("Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.");return eu.decode(a,U("0x"+l.replace(/0x/i,"")))},typeof SuppressedError=="function"&&SuppressedError;class Ne{constructor(l){this.callName=l.callName,this.params=l.params||0,this.inputFormatter=l.inputFormatter||null,this.outputFormatter=l.outputFormatter}validateArgs(l){if(l.length!==this.params)throw y=this.callName,I=l.length,j=this.params,new Error(`Invalid number of input parameters to RPC method "${y}" given: ${I}, expected: ${j}`);var y,I,j}formatInput(l){return this.inputFormatter?this.inputFormatter.map((function(y,I){return y?y(l[I]):l[I]})):l}formatOutput(l){return l!==null?this.outputFormatter(l):null}toPayload(l){const y=this.formatInput(l);return this.validateArgs(y),{method:this.callName,params:y}}async execute(l,...y){const I=this.toPayload(y);if(!l)throw new Error("Missing RequestManager in method#exec");const j=await l.sendAsync(I);return this.formatOutput(j)}}class Gt{constructor(l){this.getter=l.getter,this.outputFormatter=l.outputFormatter}formatOutput(l){return this.outputFormatter(l)}async execute(l,...y){const I=await l.sendAsync({method:this.getter,params:[]});return this.formatOutput(I)}}function ru(a){return new Promise((l=>setTimeout(l,a)))}r.eth=void 0,(Ee=r.eth||(r.eth={})).eth_getBalance=new Ne({callName:"eth_getBalance",params:2,inputFormatter:[zt,mn],outputFormatter:Qa}),Ee.eth_getStorageAt=new Ne({callName:"eth_getStorageAt",params:3,inputFormatter:[zt,Ae,mn],outputFormatter:qe}),Ee.eth_getCode=new Ne({callName:"eth_getCode",params:2,inputFormatter:[zt,mn],outputFormatter:qe}),Ee.eth_getBlockByHash=new Ne({callName:"eth_getBlockByHash",params:2,inputFormatter:[vt,function(a){return!!a}],outputFormatter:xo}),Ee.eth_getBlockByNumber=new Ne({callName:"eth_getBlockByNumber",params:2,inputFormatter:[vt,function(a){return!!a}],outputFormatter:xo}),Ee.eth_getUncleByBlockHashAndIndex=new Ne({callName:"eth_getUncleByBlockHashAndIndex",params:2,inputFormatter:[vt,Ae],outputFormatter:xo}),Ee.eth_getUncleByBlockNumberAndIndex=new Ne({callName:"eth_getUncleByBlockNumberAndIndex",params:2,inputFormatter:[vt,Ae],outputFormatter:xo}),Ee.eth_getBlockTransactionCountByHash=new Ne({callName:"eth_getBlockTransactionCountByHash",params:1,inputFormatter:[vt],outputFormatter:ye}),Ee.eth_getBlockTransactionCountByNumber=new Ne({callName:"eth_getBlockTransactionCountByNumber",params:1,inputFormatter:[vt],outputFormatter:ye}),Ee.eth_getUncleCountByBlockHash=new Ne({callName:"eth_getUncleCountByBlockHash",params:1,inputFormatter:[vt],outputFormatter:ye}),Ee.eth_getUncleCountByBlockNumber=new Ne({callName:"eth_getUncleCountByBlockNumber",params:1,inputFormatter:[vt],outputFormatter:ye}),Ee.eth_getTransactionByHash=new Ne({callName:"eth_getTransactionByHash",params:1,inputFormatter:[$n],outputFormatter:Eo}),Ee.eth_getTransactionByBlockHashAndIndex=new Ne({callName:"eth_getTransactionByBlockHashAndIndex",params:2,inputFormatter:[vt,Ae],outputFormatter:Eo}),Ee.eth_getTransactionByBlockNumberAndIndex=new Ne({callName:"eth_getTransactionByBlockNumberAndIndex",params:2,inputFormatter:[vt,Ae],outputFormatter:Eo}),Ee.eth_getTransactionReceipt=new Ne({callName:"eth_getTransactionReceipt",params:1,inputFormatter:[$n],outputFormatter:Ul}),Ee.eth_getTransactionCount=new Ne({callName:"eth_getTransactionCount",params:2,inputFormatter:[zt,mn],outputFormatter:ye}),Ee.eth_sendRawTransaction=new Ne({callName:"eth_sendRawTransaction",params:1,inputFormatter:[null],outputFormatter:qe}),Ee.web3_sha3=new Ne({callName:"web3_sha3",params:1,inputFormatter:[null],outputFormatter:qe}),Ee.eth_sendTransaction=new Ne({callName:"eth_sendTransaction",params:1,inputFormatter:[Xa],outputFormatter:qe}),Ee.eth_sign=new Ne({callName:"eth_sign",params:2,inputFormatter:[zt,null],outputFormatter:qe}),Ee.eth_call=new Ne({callName:"eth_call",params:2,inputFormatter:[Ja,mn],outputFormatter:qe}),Ee.eth_estimateGas=new Ne({callName:"eth_estimateGas",params:1,inputFormatter:[Ja],outputFormatter:ye}),Ee.eth_submitWork=new Ne({callName:"eth_submitWork",params:3,inputFormatter:[null,null,null],outputFormatter:fe}),Ee.eth_getWork=new Ne({callName:"eth_getWork",params:0,inputFormatter:[],outputFormatter:yt}),Ee.eth_coinbase=new Gt({getter:"eth_coinbase",outputFormatter:Kr}),Ee.eth_mining=new Gt({getter:"eth_mining",outputFormatter:fe}),Ee.eth_hashrate=new Gt({getter:"eth_hashrate",outputFormatter:ye}),Ee.eth_syncing=new Gt({getter:"eth_syncing",outputFormatter:Hl}),Ee.eth_gasPrice=new Gt({getter:"eth_gasPrice",outputFormatter:Qa}),Ee.eth_accounts=new Gt({getter:"eth_accounts",outputFormatter:yt}),Ee.eth_blockNumber=new Gt({getter:"eth_blockNumber",outputFormatter:ye}),Ee.eth_protocolVersion=new Gt({getter:"eth_protocolVersion",outputFormatter:ye}),Ee.web3_clientVersion=new Gt({getter:"web3_clientVersion",outputFormatter:He}),Ee.net_version=new Gt({getter:"net_version",outputFormatter:He}),Ee.shh_version=new Ne({callName:"shh_version",params:0,inputFormatter:[],outputFormatter:ye}),Ee.shh_post=new Ne({callName:"shh_post",params:1,inputFormatter:[null],outputFormatter:fe}),Ee.personal_newAccount=new Ne({callName:"personal_newAccount",params:1,inputFormatter:[null],outputFormatter:Kr}),Ee.personal_importRawKey=new Ne({callName:"personal_importRawKey",params:2,inputFormatter:[null,null],outputFormatter:Kr}),Ee.personal_sign=new Ne({callName:"personal_sign",params:3,inputFormatter:[he,zt,null],outputFormatter:qe}),Ee.personal_ecRecover=new Ne({callName:"personal_ecRecover",params:2,inputFormatter:[he,null],outputFormatter:Kr}),Ee.personal_unlockAccount=new Ne({callName:"personal_unlockAccount",params:3,inputFormatter:[zt,null,xe],outputFormatter:fe}),Ee.personal_sendTransaction=new Ne({callName:"personal_sendTransaction",params:2,inputFormatter:[Xa,null],outputFormatter:qe}),Ee.personal_lockAccount=new Ne({callName:"personal_lockAccount",params:1,inputFormatter:[zt],outputFormatter:fe}),Ee.personal_listAccounts=new Gt({getter:"personal_listAccounts",outputFormatter:yt}),Ee.net_listening=new Gt({getter:"net_listening",outputFormatter:fe}),Ee.net_peerCount=new Gt({getter:"net_peerCount",outputFormatter:ye}),Ee.eth_newFilter=new Ne({callName:"eth_newFilter",params:1,inputFormatter:[Vl],outputFormatter:Ae}),Ee.eth_getLogs=new Ne({callName:"eth_getLogs",params:1,inputFormatter:[yt],outputFormatter:yt}),Ee.eth_newBlockFilter=new Ne({callName:"eth_newBlockFilter",params:0,inputFormatter:[],outputFormatter:Ae}),Ee.eth_newPendingTransactionFilter=new Ne({callName:"eth_newPendingTransactionFilter",params:0,inputFormatter:[],outputFormatter:Ae}),Ee.eth_uninstallFilter=new Ne({callName:"eth_uninstallFilter",params:1,inputFormatter:[Ae],outputFormatter:fe}),Ee.eth_getFilterLogs=new Ne({callName:"eth_getFilterLogs",params:1,inputFormatter:[Ae],outputFormatter:yt}),Ee.eth_getFilterChanges=new Ne({callName:"eth_getFilterChanges",params:1,inputFormatter:[Ae],outputFormatter:yt}),Ee.eth_submitHashrate=new Ne({callName:"eth_submitHashrate",params:2,inputFormatter:[null,null],outputFormatter:fe}),Ee.shh_newIdentity=new Ne({callName:"shh_newIdentity",params:0,inputFormatter:[],outputFormatter:qe}),Ee.shh_hasIdentity=new Ne({callName:"shh_hasIdentity",params:1,inputFormatter:[null],outputFormatter:fe}),Ee.shh_newGroup=new Ne({callName:"shh_newGroup",params:0,inputFormatter:[],outputFormatter:qe}),Ee.shh_addToGroup=new Ne({callName:"shh_addToGroup",params:1,inputFormatter:[null],outputFormatter:fe}),Ee.shh_newFilter=new Ne({callName:"shh_newFilter",params:1,inputFormatter:[null],outputFormatter:Ae}),Ee.shh_uninstallFilter=new Ne({callName:"shh_uninstallFilter",params:1,inputFormatter:[null],outputFormatter:fe}),Ee.shh_getLogs=new Ne({callName:"shh_getLogs",params:1,inputFormatter:[null],outputFormatter:yt}),Ee.shh_getFilterMessages=new Ne({callName:"shh_getFilterMessages",params:1,inputFormatter:[null],outputFormatter:yt}),Ee.shh_getFilterChanges=new Ne({callName:"shh_getFilterChanges",params:1,inputFormatter:[null],outputFormatter:yt}),Ee.shh_getMessages=new Ne({callName:"shh_getMessages",params:1,inputFormatter:[null],outputFormatter:yt});function Te(a,l){const y=r.eth[l];if(!y)throw new Error(`Could not find the method/property named ${l.toString()}`);Object.defineProperty(a,l,{value:function(...I){return y.execute(this,...I)}})}class _e{constructor(l){this.provider=l,this.requests=new Map}async sendAsync(l){const y=await this.provider;if(!y)throw new Error("Provider not set or invalid");const I=Ya(l.method,l.params),j=i();return this.requests.set(I.id,j),y.sendAsync(I,((V,se)=>{this.requests.delete(I.id),V?j.reject(V):Dl(se)?j.resolve(se.result):j.reject((function(pe){const Ie=pe&&pe.error&&pe.error.message?pe.error.message:"Invalid JSON RPC response: "+JSON.stringify(pe);return new Error(Ie)})(se))})),j}setProvider(l){this.provider=l}async getConfirmedTransaction(l){const y=await this.waitForCompletion(l);if(this.isFailure(y))throw new Error(`Transaction "${l}" failed`);return y}async waitForCompletion(l,y){const I=$n(l);if(await this.isTxDropped(I,y)){const j=await this.getTransactionAndReceipt(I);return Object.assign(Object.assign({},j),{status:r.TransactionStatus.failed})}for(;;){const j=await this.getTransactionAndReceipt(I);if(!this.isPending(j)&&j.receipt)return Object.assign(Object.assign({},j),{status:this.isFailure(j)?r.TransactionStatus.failed:r.TransactionStatus.confirmed});await ru(2e3)}}async getTransaction(l){let y,I=null;const j=$n(l);try{const se=(await this.eth_accounts())[0];se&&(I=await this.eth_getTransactionCount(se,"latest"))}catch{I=null}try{if(y=await this.eth_getTransactionByHash(j),y===null)return null}catch{return null}if(y.blockNumber===null){if(I!==null){if(y.nonce<I)return{hash:j,type:r.TransactionType.replaced,nonce:y.nonce};if(y.nonce>I)return{hash:j,type:r.TransactionType.queued,nonce:y.nonce}}return Object.assign({type:r.TransactionType.pending},y)}let V;try{if(V=await this.eth_getTransactionReceipt(j),V===null||V.status===0)return Object.assign({type:r.TransactionType.reverted},y)}catch{return null}return Object.assign(Object.assign({type:r.TransactionType.confirmed},y),{receipt:V})}async isTxDropped(l,y=15){let I=y;for(;I>0;){if(await this.getTransactionAndReceipt(l)!==null)return!1;I-=1,await ru(2e3)}return!0}async getTransactionAndReceipt(l){l=$n(l);const[y,I]=await Promise.all([this.eth_getTransactionByHash(l),this.eth_getTransactionReceipt(l)]);return Object.assign(Object.assign({},y),{receipt:I})}isPending(l){return l&&l.blockNumber===null}isFailure(l){return l&&(!l.receipt||l.receipt.status===0)}}Se([Te,Ce("design:type",Function)],_e.prototype,"web3_clientVersion",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"web3_sha3",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"net_version",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"net_peerCount",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"net_listening",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_protocolVersion",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_syncing",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_coinbase",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_mining",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_hashrate",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_gasPrice",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_accounts",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_blockNumber",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getBalance",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getStorageAt",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getTransactionCount",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getBlockTransactionCountByHash",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getBlockTransactionCountByNumber",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getUncleCountByBlockHash",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getUncleCountByBlockNumber",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getCode",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_sign",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_sendTransaction",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_sendRawTransaction",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_call",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_estimateGas",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getBlockByHash",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getBlockByNumber",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getTransactionByHash",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getTransactionByBlockHashAndIndex",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getTransactionByBlockNumberAndIndex",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getTransactionReceipt",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getUncleByBlockHashAndIndex",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getUncleByBlockNumberAndIndex",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_newFilter",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_newBlockFilter",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_newPendingTransactionFilter",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_uninstallFilter",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getFilterChanges",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getFilterLogs",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getLogs",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_getWork",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_submitWork",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"eth_submitHashrate",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"shh_post",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"shh_version",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"shh_newIdentity",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"shh_hasIdentity",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"shh_newGroup",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"shh_addToGroup",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"shh_newFilter",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"shh_uninstallFilter",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"shh_getFilterChanges",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"shh_getMessages",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"personal_unlockAccount",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"personal_newAccount",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"personal_listAccounts",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"personal_lockAccount",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"personal_importRawKey",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"personal_sendTransaction",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"personal_sign",void 0),Se([Te,Ce("design:type",Function)],_e.prototype,"personal_ecRecover",void 0);class nu{constructor(l){this.json=l,this._inputTypes=l.inputs||[],this._outputTypes=l.outputs||[],this._constant=!!l.constant,this._payable=!!l.payable||l.stateMutability==="payable",this.needsToBeTransaction=this._payable||"constant"in l&&!l.constant||l.stateMutability==="nonpayable",this._name=ie(l)}extractDefaultBlock(l){return l.length>this._inputTypes.length&&!Ht(l[l.length-1])&&mn(l.pop())||"latest"}validateArgs(l){if(l.some((V=>V===void 0)))throw new Error("Invalid call, some arguments are undefined");const y=l.filter((function(V){return!(Ht(V)===!0&&sr(V)===!1&&Vt(V)===!1&&!(V instanceof Uint8Array))}));if(y.length!==this._inputTypes.length)throw I=y.length,j=this._inputTypes.length,new Error(`Invalid number of arguments to Solidity function. given: ${I}, expected: ${j}`);var I,j}toPayload(l){let y={to:void 0,data:void 0,value:void 0,from:void 0};l.length>this._inputTypes.length&&Ht(l[l.length-1])&&(y=l.pop()),this.validateArgs(l);const I=this.signature();let j=r.coder.encodeParams(this._inputTypes,l);return j.indexOf("0x")===0&&(j=j.substr(2)),y.data="0x"+I+j,y}signature(){return O(this._name).slice(0,8)}unpackOutput(l){if(!l)return;const y=l.length>=2?l.slice(2):l,I=r.coder.decodeParams(this._outputTypes,y);return I.length===1?I[0]:I}async execute(l,y,...I){if(!l)throw new Error(`Cannot call function ${this.displayName()} because there is no requestManager`);if(this.needsToBeTransaction){const j=this.toPayload(I);if(j.to=y,j.value>0&&!this._payable)throw new Error("Cannot send value to non-payable function");if(!j.from)throw new Error('Missing "from" in transaction options');return await l.eth_sendTransaction(j)}{const j=this.extractDefaultBlock(I),V=this.toPayload(I);V.to=y;const se=await l.eth_call(V,j);return this.unpackOutput(se)}}estimateGas(l,y,...I){if(!(l instanceof _e))throw new Error("estimateGas needs to receive a RequestManager as first argument");const j=this.toPayload(I);return j.to=y,l.eth_estimateGas(j)}displayName(){return Re(this._name)}typeName(){return we(this._name)||"void"}attachToContract(l){const y=this.displayName(),I=Object.assign(((...j)=>this.execute(l.requestManager,l.address,...j)),{estimateGas:this.estimateGas.bind(this,l.requestManager,l.address),toPayload:(...j)=>this.toPayload(j),toRPCMessage:(...j)=>{const V=this.extractDefaultBlock(j),se=this.toPayload(j);return se.to=l.address,{method:"eth_call",params:[se,V]}},unpackOutput:j=>this.unpackOutput(j)});l[y]||(l[y]=I),l[y][this.typeName()]=I}}function ou(a){if(a==null)return null;const l=String(a).toString();return l.indexOf("0x")===0?l:R(B(l))}class ni{constructor(l){this.requestManager=l,this.isStarted=!1,this.isDisposed=!1,this.formatter=y=>y,this.filterId=i(),this.callbacks=[],this.stopSemaphore=i()}async watch(l){if(this.isDisposed)throw new Error("The filter was disposed");l&&(this.callbacks.push(l),this.isStarted||await this.start())}async start(){if(this.isDisposed)throw new Error("The filter was disposed");if(!this.isStarted){this.isStarted=!0;try{const l=await this.getNewFilter();if(!l)throw new Error("Could not create a filter, response: "+JSON.stringify(l));this.filterId.resolve(l)}catch(l){throw l}this.stopSemaphore=i(),await this.poll()}}async stop(){if(!this.isStarted||this.isDisposed)return;this.isDisposed=!0;const l=await this.filterId;if(this.isStarted=!1,this.stopSemaphore&&await this.stopSemaphore,await this.uninstall()!==!0)throw new Error(`Couldn't stop the eth filter: ${l}`)}async poll(){if(this.isStarted){if(this.callbacks.length){const y=await this.getChanges();y&&this.callbacks.forEach((I=>{this.formatter?y.forEach((j=>{I(this.formatter(j))})):y.forEach((j=>I(j)))}))}this.stopSemaphore.resolve(1),this.isStarted&&(this.stopSemaphore=i(),setTimeout((l=()=>this.poll(),function(){l().catch((y=>console.error(y)))}),500))}else this.stopSemaphore.resolve(1);var l}}class Co extends ni{constructor(l,y,I=(j=>j)){super(l),this.requestManager=l,this.options=y,this.formatter=I,this.options=this.options||{},this.options.topics=this.options.topics||[],this.options.topics=this.options.topics.map((function(j){return ou(j)})),this.options={topics:this.options.topics,address:this.options.address?this.options.address:void 0,fromBlock:typeof this.options.fromBlock=="number"||typeof this.options.fromBlock=="string"?vt(this.options.fromBlock)||void 0:"latest",toBlock:typeof this.options.toBlock=="number"||typeof this.options.toBlock=="string"?vt(this.options.toBlock)||void 0:"latest"}}async getLogs(){this.isStarted||await this.start();const l=await this.filterId;return this.requestManager.eth_getFilterLogs(l)}async getNewFilter(){return this.requestManager.eth_newFilter(this.options)}async getChanges(){const l=await this.filterId;return this.requestManager.eth_getFilterChanges(l)}async uninstall(){const l=await this.filterId;return this.requestManager.eth_uninstallFilter(l)}}class oi{constructor(l,y,I){this.requestManager=l,this.address=I,this._anonymous=!1,this._params=y.inputs||[],this._name=ie(y),this._anonymous=y.anonymous||!1}types(l){return this._params.filter((function(y){return y.indexed===l}))}displayName(){return Re(this._name)}typeName(){return we(this._name)||"void"}signature(){return O(this._name)}encode(l={},y={}){const I={topics:[],address:this.address};y.fromBlock!==void 0&&(I.fromBlock=vt(y.fromBlock)||void 0),y.toBlock!==void 0&&(I.toBlock=vt(y.toBlock)||void 0),I.topics=I.topics||[],this._anonymous||I.topics.push("0x"+this.signature());const j=this._params.filter((function(V){return V.indexed===!0})).map((function(V){const se=l[V.name];return se==null?null:sr(se)?se.map((function(pe){return"0x"+r.coder.encodeParams([V],[pe])})):"0x"+r.coder.encodeParams([V],[se])}));return I.topics=I.topics.concat(j),I}decode(l){l.data=l.data||"",l.topics=l.topics||[];const y=(this._anonymous?l.topics:l.topics.slice(1)).map((function(pe){return pe.slice(2)})).join(""),I=r.coder.decodeParams(this.types(!0),y),j=l.data.slice(2),V=r.coder.decodeParams(this.types(!1),j),se=this._params.reduce((function(pe,Ie){return pe[Ie.name]=Ie.indexed?I.shift():V.shift(),pe}),{});return Object.assign(Object.assign({},ds(l)),{event:this.displayName(),address:l.address,args:se})}async execute(l,y){const I=this.encode(l,y),j=this.decode.bind(this);return new Co(this.requestManager,I,j)}attachToContract(l){const y=this.execute.bind(this),I=this.displayName();l.events[I]||(l.events[I]=y),l.events[I][this.typeName()]=this.execute.bind(this,l)}}class Fh{constructor(l,y,I){this._requestManager=l,this._json=y,this._address=I}encode(l={}){const y={address:this._address};return l.fromBlock!==void 0&&(y.fromBlock=vt(l.fromBlock)||void 0),l.toBlock!==void 0&&(y.toBlock=vt(l.toBlock)||void 0),y}decode(l){l.data=l.data||"";const y=sr(l.topics)&&Rt(l.topics[0])?l.topics[0].slice(2):"",I=this._json.filter((function(j){return y===O(ie(j))}))[0];return I?new oi(this._requestManager,I,this._address).decode(l):ds(l)}async execute(l){const y=this.encode(l),I=this.decode.bind(this);return new Co(this._requestManager,y,I)}getAllEventsFunction(){return this.execute.bind(this)}}class su{constructor(l,y,I){var j;this.requestManager=l,this.abi=y,this.address=I,this.events={},this.transactionHash=null,this.address=I,this.abi=y,(j=this).abi.filter((function(V){return V.type==="function"})).map((function(V){return new nu(V)})).forEach((function(V){V.attachToContract(j)})),this.allEvents=(function(V){const se=V.abi.filter((function(Ie){return Ie.type==="event"})),pe=new Fh(V.requestManager,se,V.address);return se.map((function(Ie){return new oi(V.requestManager,Ie,V.address)})).forEach((function(Ie){Ie.attachToContract(V)})),pe.getAllEventsFunction()})(this)}}r.AbstractFilter=ni,r.BigNumber=ne,r.Contract=su,r.ContractFactory=class{constructor(a,l){this.requestManager=a,this.abi=l}async deploy(...a){let l;const y=a[a.length-1];if(Ht(y)&&!sr(y)&&(l=a.pop()),!l)throw new Error("Missing options object");if(!l.data||typeof l.data!="string")throw new Error("Invalid options.data");if(ye(l.value)>0&&!(this.abi.filter((function(Pe){return Pe.type==="constructor"&&Pe.inputs.length===a.length}))[0]||{}).payable)throw new Error("Cannot send value to non-payable constructor");const I=(j=this.abi,V=a,j.filter((function(Pe){return Pe.type==="constructor"&&Pe.inputs&&Pe.inputs.length===V.length})).map((function(Pe){return Pe.inputs||[]})).map((function(Pe){return r.coder.encodeParams(Pe,V)}))[0]||"");var j,V;l.data+=I,l.gas||(l.gas=await this.requestManager.eth_estimateGas(l));const se=await this.requestManager.eth_sendTransaction(l);if(!se)throw new Error("Error while sending contract creation transaction. A TxHash was not retrieved");const pe=await(async function(Pe,Mt){const it=i();let ge=0;const St=()=>{ge++,ge>50?it.reject(new Error("Contract transaction couldn't be found after 50 blocks")):Pe.eth_getTransactionReceipt(Mt).then((Pt=>{Pt&&Pt.blockHash?it.resolve(Pt):setTimeout(St,1e3)}),(Pt=>it.reject(Pt)))};St();const Xe=await it,et=await Pe.eth_getCode(Xe.contractAddress,"latest");if(et&&et.length>3)return Xe.contractAddress;throw Object.assign(new Error("The contract code couldn't be stored, please check your gas amount."),{response:et,receipt:Xe})})(this.requestManager,se),Ie=await this.at(pe);return Ie.transactionHash=se,Ie}async at(a){if(!Qt(a))throw new TypeError(`Invalid address ${JSON.stringify(a)}`);return new su(this.requestManager,this.abi,a)}},r.EthBlockFilter=class extends Co{constructor(a){super(a,{})}async getNewFilter(){return this.requestManager.eth_newBlockFilter()}},r.EthFilter=Co,r.EthPendingTransactionFilter=class extends Co{constructor(a){super(a,{})}async getNewFilter(){return this.requestManager.eth_newPendingTransactionFilter()}},r.HTTPProvider=class{constructor(a,l={}){this.host=a,this.options=l,this.debug=!1,this.host=a||"http://localhost:8545"}send(){throw new Error("Sync requests are deprecated")}sendAsync(a,l){try{let y=null;y=a instanceof Array?a.map((V=>n(V))):n(a);const I=this.options.fetch||globalThis.fetch;if(I===void 0)throw new Error("There is no global fetch object nor it was provided. Please install and import isomorphic-fetch");const j={body:JSON.stringify(y),method:"POST",headers:Object.assign(Object.assign({},this.options.headers),{"Content-Type":"application/json"})};this.debug&&console.log("SEND >> "+j.body),I(this.host,j).then((async V=>{if(V.ok){const se=await V.json();this.debug&&console.log("RECV << "+JSON.stringify(se)),se.error?l(Object.assign(new Error(se.error.json||se.error),se.error)):l(null,se)}else{const se=(typeof V.text=="function"?await V.text().catch((()=>"")):"").trim().slice(0,512),pe="External error. response code: "+V.status+(se?" — "+se:"");this.debug&&console.log("ERR << "+pe),l(new Error(pe))}}),(V=>{this.debug&&console.log("ERR << "+JSON.stringify(V)),l(V)}))}catch(y){this.debug&&console.log("ERR << "+JSON.stringify(y)),l(y)}}},r.Method=Ne,r.Property=Gt,r.RequestManager=_e,r.SHHFilter=class extends ni{constructor(a,l){super(a),this.requestManager=a,this.options=l,this.options=this.options||{topics:[]},this.options.topics=this.options.topics||[],this.options.topics=this.options.topics.map((function(y){return ou(y)})),this.options={topics:this.options.topics,to:this.options.to}}async getMessages(){const a=await this.filterId;return this.requestManager.shh_getMessages(a)}async getNewFilter(){return this.requestManager.shh_newFilter(this.options)}async getChanges(){const a=await this.filterId;return this.requestManager.shh_getFilterChanges(a)}async uninstall(){const a=await this.filterId;return this.requestManager.shh_uninstallFilter(a)}},r.SolidityEvent=oi,r.SolidityFunction=nu,r.WebSocketProvider=class{constructor(a,l={}){this.url=a,this.options=l,this.isDisposed=!1,this.responseCallbacks=new Map,this.notificationCallbacks=new Set,this.debug=!1,this.lastChunk="",this.connect()}dispose(){this.isDisposed=!0;const a=this.connection;this.timeout(new Error("Provider disposed.")),a.then((l=>l.close())).catch((l=>{this.debug&&console.error(l)}))}send(){throw new Error("Sync requests are deprecated")}sendAsync(a,l){const y=[];let I;if(a instanceof Array)I=Promise.all(a.map((j=>{const V=i();try{const se=n(j);y.push(se),this.responseCallbacks.set(se.id,V)}catch(se){V.reject(se)}return V})));else{const j=i();try{const V=n(a);y.push(V),this.responseCallbacks.set(V.id,j)}catch(V){j.reject(V)}I=j}I.then((j=>l(null,j)),(j=>l(j))),this.connection.then((j=>{y.forEach((V=>{const se=JSON.stringify(V);this.debug&&console.log("SEND >> "+se),j.send(se)}))}),(j=>{l(j)}))}parseResponse(a){const l=[];return a.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach((y=>{let I=y;this.lastChunk&&(I=this.lastChunk+I);let j=null;try{j=JSON.parse(I)}catch{return this.lastChunk=I,clearTimeout(this.lastChunkTimeout),void(this.lastChunkTimeout=setTimeout((()=>{this.timeout()}),15e3))}clearTimeout(this.lastChunkTimeout),this.lastChunk="",j&&l.push(j)})),l}processMessage(a){if("id"in a){const l=a.id,y=this.responseCallbacks.get(l);if(!y)return void console.error("Error: Received a response for an unknown request",a);this.responseCallbacks.delete(l),a.error!==void 0&&a.error!==null?y.reject(Object.assign(new Error(a.error.message||a.error),a.error)):"result"in a&&y.resolve(a)}else this.notificationCallbacks.forEach((l=>l(null,a)))}timeout(a){this.connection&&this.connection.isPending||(this.connection=i());const l=a||new Error("Connection timeout");this.responseCallbacks.forEach((y=>y.reject(l))),this.responseCallbacks.clear(),this.isDisposed||setTimeout((()=>this.connect()),1e3)}connect(){this.connection&&!this.connection.isPending&&this.connection.then((y=>y.close())).catch((y=>{this.debug&&console.error(y)})),this.connection&&this.connection.isPending||(this.connection=i()),this.lastChunk="";const a=this.options.WebSocketConstructor||(typeof WebSocket<"u"?WebSocket:void 0);if(!a)throw new Error("Please provide a WebSocketConstructor");const l=new a(this.url,this.options.protocol);l.onopen=()=>{this.connection.resolve(l)},l.onerror=y=>{const I=new Error("Error in web socket");I.data=y,this.timeout(I)},l.onclose=y=>{this.timeout(new Error(`Connection closed (${y&&y.reason||"Unknown reason"})`))},l.onmessage=y=>{const I=typeof y.data=="string"?y.data:"";this.debug&&console.log("RECV << "+y.data),this.parseResponse(I).forEach((j=>{j instanceof Array?j.forEach((V=>this.processMessage(V))):this.processMessage(j)}))}}},r.bytesToHex=R,r.bytesToUtf8String=P,r.concatBytes=le,r.default=_e,r.extractDisplayName=Re,r.extractTypeName=we,r.fromAscii=function(a,l=0){let y="";for(let I=0;I<a.length;I++){const j=a.charCodeAt(I).toString(16);y+=j.length<2?"0"+j:j}return"0x"+y.padEnd(l,"0")},r.fromDecimal=ve,r.fromTwosComplement=or,r.fromWei=function(a,l){const y=Be(a).dividedBy(Le(l));return Vt(a)?y:y.toString(10)},r.getAddress=Ut,r.getValueOfUnit=Le,r.hexToBytes=U,r.inputAddressFormatter=zt,r.inputBlockNumberFormatter=vt,r.inputCallFormatter=Ja,r.inputDefaultBlockNumberFormatter=mn,r.inputFilterOptions=Vl,r.inputPostFormatter=function(a){return a?(a.ttl=ve(a.ttl),a.workToProve=ve(a.workToProve),a.priority=ve(a.priority),sr(a.topics)||(a.topics=a.topics?[a.topics]:[]),a.topics=a.topics.map((function(l){return l.indexOf("0x")===0?l:"0x"+R(B(l))})),a):null},r.inputTransactionFormatter=Xa,r.inputTransactionId=$n,r.isAddress=Qt,r.isArray=sr,r.isBigNumber=Vt,r.isBloom=function(a){return!!/^(0x)?[0-9a-f]{512}$/i.test(a)&&!!/^(0x)?[0-9a-f]{512}$/i.test(a)},r.isBoolean=_o,r.isChecksumAddress=Mn,r.isFunction=function(a){return typeof a=="function"},r.isHex=function(a){return typeof a=="string"&&/^0x[0-9a-fA-F]+$/.test(a)},r.isJson=function(a){try{return!!JSON.parse(a)}catch{return!1}},r.isObject=Ht,r.isPredefinedBlockNumber=ql,r.isStrictAddress=Or,r.isString=Rt,r.isTopic=function(a){return!!/^(0x)?[0-9a-f]{64}$/i.test(a)&&!!/^(0x)?[0-9a-f]{64}$/i.test(a)},r.isValidResponse=Dl,r.outputBigNumberFormatter=Qa,r.outputBlockFormatter=xo,r.outputLogFormatter=ds,r.outputPostFormatter=function(a){return a?(a.expiry=ye(a.expiry),a.sent=ye(a.sent),a.ttl=ye(a.ttl),a.workProved=ye(a.workProved),a.topics||(a.topics=[]),a.topics=a.topics.map((function(l){return ce(l)})),a):null},r.outputSyncingFormatter=Hl,r.outputTransactionFormatter=Eo,r.outputTransactionReceiptFormatter=Ul,r.padLeft=Q,r.padRight=function(a,l,y){return a+new Array(l-a.length+1).join(y||"0")},r.sha3=O,r.signedIsNegative=qt,r.stringToUtf8Bytes=B,r.toAddress=Kr,r.toArray=yt,r.toAscii=ce,r.toBatchPayload=function(a){return a.map((function(l){return Ya(l.method,l.params)}))},r.toBigNumber=Be,r.toBoolean=fe,r.toChecksumAddress=gr,r.toData=qe,r.toDecimal=ye,r.toHex=Ae,r.toJsonRpcRequest=Ya,r.toNullDecimal=xe,r.toString=He,r.toStringData=he,r.toTwosComplement=nt,r.toWei=function(a,l){const y=Be(a).times(Le(l));return Vt(a)?y:y.toString(10)},r.transformToFullName=ie,Object.defineProperty(r,"__esModule",{value:!0})}))})(Lo,Lo.exports)),Lo.exports}var ta={},Du;function ag(){if(Du)return ta;Du=1,Object.defineProperty(ta,"__esModule",{value:!0}),ta.SignatureValidator=t;const e=Ra();async function t(r,n){const o=[{constant:!0,inputs:[{name:"hash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"magicValue",type:"bytes4"}],payable:!1,stateMutability:"view",type:"function"}];return await new e.ContractFactory(r,o).at(n)}return ta}var Er={},fi={},hi={},yn={},$r={},bt={},qu;function _l(){if(qu)return bt;qu=1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.output=bt.exists=bt.hash=bt.bytes=bt.bool=bt.number=bt.isBytes=void 0;function e(d){if(!Number.isSafeInteger(d)||d<0)throw new Error(`positive integer expected, not ${d}`)}bt.number=e;function t(d){if(typeof d!="boolean")throw new Error(`boolean expected, not ${d}`)}bt.bool=t;function r(d){return d instanceof Uint8Array||d!=null&&typeof d=="object"&&d.constructor.name==="Uint8Array"}bt.isBytes=r;function n(d,...h){if(!r(d))throw new Error("Uint8Array expected");if(h.length>0&&!h.includes(d.length))throw new Error(`Uint8Array expected of length ${h}, not of length=${d.length}`)}bt.bytes=n;function o(d){if(typeof d!="function"||typeof d.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");e(d.outputLen),e(d.blockLen)}bt.hash=o;function s(d,h=!0){if(d.destroyed)throw new Error("Hash instance has been destroyed");if(h&&d.finished)throw new Error("Hash#digest() has already been called")}bt.exists=s;function i(d,h){n(d);const p=h.outputLen;if(d.length<p)throw new Error(`digestInto() expects output buffer of length at least ${p}`)}bt.output=i;const u={number:e,bool:t,bytes:n,hash:o,exists:s,output:i};return bt.default=u,bt}var pi={},Ao={},Uu;function ig(){return Uu||(Uu=1,Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.crypto=void 0,Ao.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0),Ao}var Vu;function ss(){return Vu||(Vu=1,(function(e){/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(e,"__esModule",{value:!0}),e.randomBytes=e.wrapXOFConstructorWithOpts=e.wrapConstructorWithOpts=e.wrapConstructor=e.checkOpts=e.Hash=e.concatBytes=e.toBytes=e.utf8ToBytes=e.asyncLoop=e.nextTick=e.hexToBytes=e.bytesToHex=e.byteSwap32=e.byteSwapIfBE=e.byteSwap=e.isLE=e.rotl=e.rotr=e.createView=e.u32=e.u8=e.isBytes=void 0;const t=ig(),r=_l();function n(X){return X instanceof Uint8Array||X!=null&&typeof X=="object"&&X.constructor.name==="Uint8Array"}e.isBytes=n;const o=X=>new Uint8Array(X.buffer,X.byteOffset,X.byteLength);e.u8=o;const s=X=>new Uint32Array(X.buffer,X.byteOffset,Math.floor(X.byteLength/4));e.u32=s;const i=X=>new DataView(X.buffer,X.byteOffset,X.byteLength);e.createView=i;const u=(X,B)=>X<<32-B|X>>>B;e.rotr=u;const d=(X,B)=>X<<B|X>>>32-B>>>0;e.rotl=d,e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;const h=X=>X<<24&4278190080|X<<8&16711680|X>>>8&65280|X>>>24&255;e.byteSwap=h,e.byteSwapIfBE=e.isLE?X=>X:X=>(0,e.byteSwap)(X);function p(X){for(let B=0;B<X.length;B++)X[B]=(0,e.byteSwap)(X[B])}e.byteSwap32=p;const m=Array.from({length:256},(X,B)=>B.toString(16).padStart(2,"0"));function b(X){(0,r.bytes)(X);let B="";for(let P=0;P<X.length;P++)B+=m[X[P]];return B}e.bytesToHex=b;const E={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function A(X){if(X>=E._0&&X<=E._9)return X-E._0;if(X>=E._A&&X<=E._F)return X-(E._A-10);if(X>=E._a&&X<=E._f)return X-(E._a-10)}function g(X){if(typeof X!="string")throw new Error("hex string expected, got "+typeof X);const B=X.length,P=B/2;if(B%2)throw new Error("padded hex string expected, got unpadded hex of length "+B);const K=new Uint8Array(P);for(let Z=0,D=0;Z<P;Z++,D+=2){const U=A(X.charCodeAt(D)),R=A(X.charCodeAt(D+1));if(U===void 0||R===void 0){const O=X[D]+X[D+1];throw new Error('hex string expected, got non-hex character "'+O+'" at index '+D)}K[Z]=U*16+R}return K}e.hexToBytes=g;const T=async()=>{};e.nextTick=T;async function H(X,B,P){let K=Date.now();for(let Z=0;Z<X;Z++){P(Z);const D=Date.now()-K;D>=0&&D<B||(await(0,e.nextTick)(),K+=D)}}e.asyncLoop=H;function v(X){if(typeof X!="string")throw new Error(`utf8ToBytes expected string, got ${typeof X}`);return new Uint8Array(new TextEncoder().encode(X))}e.utf8ToBytes=v;function k(X){return typeof X=="string"&&(X=v(X)),(0,r.bytes)(X),X}e.toBytes=k;function w(...X){let B=0;for(let K=0;K<X.length;K++){const Z=X[K];(0,r.bytes)(Z),B+=Z.length}const P=new Uint8Array(B);for(let K=0,Z=0;K<X.length;K++){const D=X[K];P.set(D,Z),Z+=D.length}return P}e.concatBytes=w;class Y{clone(){return this._cloneInto()}}e.Hash=Y;const q={}.toString;function S(X,B){if(B!==void 0&&q.call(B)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(X,B)}e.checkOpts=S;function $(X){const B=K=>X().update(k(K)).digest(),P=X();return B.outputLen=P.outputLen,B.blockLen=P.blockLen,B.create=()=>X(),B}e.wrapConstructor=$;function J(X){const B=(K,Z)=>X(Z).update(k(K)).digest(),P=X({});return B.outputLen=P.outputLen,B.blockLen=P.blockLen,B.create=K=>X(K),B}e.wrapConstructorWithOpts=J;function W(X){const B=(K,Z)=>X(Z).update(k(K)).digest(),P=X({});return B.outputLen=P.outputLen,B.blockLen=P.blockLen,B.create=K=>X(K),B}e.wrapXOFConstructorWithOpts=W;function ne(X=32){if(t.crypto&&typeof t.crypto.getRandomValues=="function")return t.crypto.getRandomValues(new Uint8Array(X));throw new Error("crypto.getRandomValues must be defined")}e.randomBytes=ne})(pi)),pi}var Hu;function cg(){if(Hu)return $r;Hu=1,Object.defineProperty($r,"__esModule",{value:!0}),$r.HashMD=$r.Maj=$r.Chi=void 0;const e=_l(),t=ss();function r(i,u,d,h){if(typeof i.setBigUint64=="function")return i.setBigUint64(u,d,h);const p=BigInt(32),m=BigInt(4294967295),b=Number(d>>p&m),E=Number(d&m),A=h?4:0,g=h?0:4;i.setUint32(u+A,b,h),i.setUint32(u+g,E,h)}const n=(i,u,d)=>i&u^~i&d;$r.Chi=n;const o=(i,u,d)=>i&u^i&d^u&d;$r.Maj=o;class s extends t.Hash{constructor(u,d,h,p){super(),this.blockLen=u,this.outputLen=d,this.padOffset=h,this.isLE=p,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(u),this.view=(0,t.createView)(this.buffer)}update(u){(0,e.exists)(this);const{view:d,buffer:h,blockLen:p}=this;u=(0,t.toBytes)(u);const m=u.length;for(let b=0;b<m;){const E=Math.min(p-this.pos,m-b);if(E===p){const A=(0,t.createView)(u);for(;p<=m-b;b+=p)this.process(A,b);continue}h.set(u.subarray(b,b+E),this.pos),this.pos+=E,b+=E,this.pos===p&&(this.process(d,0),this.pos=0)}return this.length+=u.length,this.roundClean(),this}digestInto(u){(0,e.exists)(this),(0,e.output)(u,this),this.finished=!0;const{buffer:d,view:h,blockLen:p,isLE:m}=this;let{pos:b}=this;d[b++]=128,this.buffer.subarray(b).fill(0),this.padOffset>p-b&&(this.process(h,0),b=0);for(let H=b;H<p;H++)d[H]=0;r(h,p-8,BigInt(this.length*8),m),this.process(h,0);const E=(0,t.createView)(u),A=this.outputLen;if(A%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const g=A/4,T=this.get();if(g>T.length)throw new Error("_sha2: outputLen bigger than state");for(let H=0;H<g;H++)E.setUint32(4*H,T[H],m)}digest(){const{buffer:u,outputLen:d}=this;this.digestInto(u);const h=u.slice(0,d);return this.destroy(),h}_cloneInto(u){u||(u=new this.constructor),u.set(...this.get());const{blockLen:d,buffer:h,length:p,finished:m,destroyed:b,pos:E}=this;return u.length=p,u.pos=E,u.finished=m,u.destroyed=b,p%d&&u.buffer.set(h),u}}return $r.HashMD=s,$r}var zu;function lg(){if(zu)return yn;zu=1,Object.defineProperty(yn,"__esModule",{value:!0}),yn.sha224=yn.sha256=void 0;const e=cg(),t=ss(),r=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),n=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),o=new Uint32Array(64);class s extends e.HashMD{constructor(){super(64,32,8,!1),this.A=n[0]|0,this.B=n[1]|0,this.C=n[2]|0,this.D=n[3]|0,this.E=n[4]|0,this.F=n[5]|0,this.G=n[6]|0,this.H=n[7]|0}get(){const{A:d,B:h,C:p,D:m,E:b,F:E,G:A,H:g}=this;return[d,h,p,m,b,E,A,g]}set(d,h,p,m,b,E,A,g){this.A=d|0,this.B=h|0,this.C=p|0,this.D=m|0,this.E=b|0,this.F=E|0,this.G=A|0,this.H=g|0}process(d,h){for(let v=0;v<16;v++,h+=4)o[v]=d.getUint32(h,!1);for(let v=16;v<64;v++){const k=o[v-15],w=o[v-2],Y=(0,t.rotr)(k,7)^(0,t.rotr)(k,18)^k>>>3,q=(0,t.rotr)(w,17)^(0,t.rotr)(w,19)^w>>>10;o[v]=q+o[v-7]+Y+o[v-16]|0}let{A:p,B:m,C:b,D:E,E:A,F:g,G:T,H}=this;for(let v=0;v<64;v++){const k=(0,t.rotr)(A,6)^(0,t.rotr)(A,11)^(0,t.rotr)(A,25),w=H+k+(0,e.Chi)(A,g,T)+r[v]+o[v]|0,q=((0,t.rotr)(p,2)^(0,t.rotr)(p,13)^(0,t.rotr)(p,22))+(0,e.Maj)(p,m,b)|0;H=T,T=g,g=A,A=E+w|0,E=b,b=m,m=p,p=w+q|0}p=p+this.A|0,m=m+this.B|0,b=b+this.C|0,E=E+this.D|0,A=A+this.E|0,g=g+this.F|0,T=T+this.G|0,H=H+this.H|0,this.set(p,m,b,E,A,g,T,H)}roundClean(){o.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class i extends s{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}return yn.sha256=(0,t.wrapConstructor)(()=>new s),yn.sha224=(0,t.wrapConstructor)(()=>new i),yn}var Io={},mi={},Gu;function ug(){return Gu||(Gu=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=e.HMAC=void 0;const t=_l(),r=ss();class n extends r.Hash{constructor(i,u){super(),this.finished=!1,this.destroyed=!1,(0,t.hash)(i);const d=(0,r.toBytes)(u);if(this.iHash=i.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const h=this.blockLen,p=new Uint8Array(h);p.set(d.length>h?i.create().update(d).digest():d);for(let m=0;m<p.length;m++)p[m]^=54;this.iHash.update(p),this.oHash=i.create();for(let m=0;m<p.length;m++)p[m]^=106;this.oHash.update(p),p.fill(0)}update(i){return(0,t.exists)(this),this.iHash.update(i),this}digestInto(i){(0,t.exists)(this),(0,t.bytes)(i,this.outputLen),this.finished=!0,this.iHash.digestInto(i),this.oHash.update(i),this.oHash.digestInto(i),this.destroy()}digest(){const i=new Uint8Array(this.oHash.outputLen);return this.digestInto(i),i}_cloneInto(i){i||(i=Object.create(Object.getPrototypeOf(this),{}));const{oHash:u,iHash:d,finished:h,destroyed:p,blockLen:m,outputLen:b}=this;return i=i,i.finished=h,i.destroyed=p,i.blockLen=m,i.outputLen=b,i.oHash=u._cloneInto(i.oHash),i.iHash=d._cloneInto(i.iHash),i}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}e.HMAC=n;const o=(s,i,u)=>new n(s,i).update(u).digest();e.hmac=o,e.hmac.create=(s,i)=>new n(s,i)})(mi)),mi}var gi={},ko={},st={},rt={},Wu;function mo(){if(Wu)return rt;Wu=1,Object.defineProperty(rt,"__esModule",{value:!0}),rt.bitMask=void 0,rt.isBytes=n,rt.abytes=o,rt.bytesToHex=i,rt.numberToHexUnpadded=u,rt.hexToNumber=d,rt.hexToBytes=m,rt.bytesToNumberBE=b,rt.bytesToNumberLE=E,rt.numberToBytesBE=A,rt.numberToBytesLE=g,rt.numberToVarBytesBE=T,rt.ensureBytes=H,rt.concatBytes=v,rt.equalBytes=k,rt.utf8ToBytes=w,rt.bitLen=Y,rt.bitGet=q,rt.bitSet=S,rt.createHmacDrbg=ne,rt.validateObject=B;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=BigInt(0),t=BigInt(1),r=BigInt(2);function n(P){return P instanceof Uint8Array||P!=null&&typeof P=="object"&&P.constructor.name==="Uint8Array"}function o(P){if(!n(P))throw new Error("Uint8Array expected")}const s=Array.from({length:256},(P,K)=>K.toString(16).padStart(2,"0"));function i(P){o(P);let K="";for(let Z=0;Z<P.length;Z++)K+=s[P[Z]];return K}function u(P){const K=P.toString(16);return K.length&1?`0${K}`:K}function d(P){if(typeof P!="string")throw new Error("hex string expected, got "+typeof P);return BigInt(P===""?"0":`0x${P}`)}const h={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function p(P){if(P>=h._0&&P<=h._9)return P-h._0;if(P>=h._A&&P<=h._F)return P-(h._A-10);if(P>=h._a&&P<=h._f)return P-(h._a-10)}function m(P){if(typeof P!="string")throw new Error("hex string expected, got "+typeof P);const K=P.length,Z=K/2;if(K%2)throw new Error("padded hex string expected, got unpadded hex of length "+K);const D=new Uint8Array(Z);for(let U=0,R=0;U<Z;U++,R+=2){const O=p(P.charCodeAt(R)),z=p(P.charCodeAt(R+1));if(O===void 0||z===void 0){const Q=P[R]+P[R+1];throw new Error('hex string expected, got non-hex character "'+Q+'" at index '+R)}D[U]=O*16+z}return D}function b(P){return d(i(P))}function E(P){return o(P),d(i(Uint8Array.from(P).reverse()))}function A(P,K){return m(P.toString(16).padStart(K*2,"0"))}function g(P,K){return A(P,K).reverse()}function T(P){return m(u(P))}function H(P,K,Z){let D;if(typeof K=="string")try{D=m(K)}catch(R){throw new Error(`${P} must be valid hex string, got "${K}". Cause: ${R}`)}else if(n(K))D=Uint8Array.from(K);else throw new Error(`${P} must be hex string or Uint8Array`);const U=D.length;if(typeof Z=="number"&&U!==Z)throw new Error(`${P} expected ${Z} bytes, got ${U}`);return D}function v(...P){let K=0;for(let D=0;D<P.length;D++){const U=P[D];o(U),K+=U.length}const Z=new Uint8Array(K);for(let D=0,U=0;D<P.length;D++){const R=P[D];Z.set(R,U),U+=R.length}return Z}function k(P,K){if(P.length!==K.length)return!1;let Z=0;for(let D=0;D<P.length;D++)Z|=P[D]^K[D];return Z===0}function w(P){if(typeof P!="string")throw new Error(`utf8ToBytes expected string, got ${typeof P}`);return new Uint8Array(new TextEncoder().encode(P))}function Y(P){let K;for(K=0;P>e;P>>=t,K+=1);return K}function q(P,K){return P>>BigInt(K)&t}function S(P,K,Z){return P|(Z?t:e)<<BigInt(K)}const $=P=>(r<<BigInt(P-1))-t;rt.bitMask=$;const J=P=>new Uint8Array(P),W=P=>Uint8Array.from(P);function ne(P,K,Z){if(typeof P!="number"||P<2)throw new Error("hashLen must be a number");if(typeof K!="number"||K<2)throw new Error("qByteLen must be a number");if(typeof Z!="function")throw new Error("hmacFn must be a function");let D=J(P),U=J(P),R=0;const O=()=>{D.fill(1),U.fill(0),R=0},z=(...le)=>Z(U,D,...le),Q=(le=J())=>{U=z(W([0]),le),D=z(),le.length!==0&&(U=z(W([1]),le),D=z())},ce=()=>{if(R++>=1e3)throw new Error("drbg: tried 1000 values");let le=0;const de=[];for(;le<K;){D=z();const Re=D.slice();de.push(Re),le+=D.length}return v(...de)};return(le,de)=>{O(),Q(le);let Re;for(;!(Re=de(ce()));)Q();return O(),Re}}const X={bigint:P=>typeof P=="bigint",function:P=>typeof P=="function",boolean:P=>typeof P=="boolean",string:P=>typeof P=="string",stringOrUint8Array:P=>typeof P=="string"||n(P),isSafeInteger:P=>Number.isSafeInteger(P),array:P=>Array.isArray(P),field:(P,K)=>K.Fp.isValid(P),hash:P=>typeof P=="function"&&Number.isSafeInteger(P.outputLen)};function B(P,K,Z={}){const D=(U,R,O)=>{const z=X[R];if(typeof z!="function")throw new Error(`Invalid validator "${R}", expected function`);const Q=P[U];if(!(O&&Q===void 0)&&!z(Q,P))throw new Error(`Invalid param ${String(U)}=${Q} (${typeof Q}), expected ${R}`)};for(const[U,R]of Object.entries(K))D(U,R,!1);for(const[U,R]of Object.entries(Z))D(U,R,!0);return P}return rt}var Zu;function Pa(){if(Zu)return st;Zu=1,Object.defineProperty(st,"__esModule",{value:!0}),st.isNegativeLE=void 0,st.mod=d,st.pow=h,st.pow2=p,st.invert=m,st.tonelliShanks=b,st.FpSqrt=E,st.validateField=T,st.FpPow=H,st.FpInvertBatch=v,st.FpDiv=k,st.FpIsSquare=w,st.nLength=Y,st.Field=q,st.FpSqrtOdd=S,st.FpSqrtEven=$,st.hashToPrivateScalar=J,st.getFieldBytesLength=W,st.getMinHashLength=ne,st.mapHashToField=X;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=mo(),t=BigInt(0),r=BigInt(1),n=BigInt(2),o=BigInt(3),s=BigInt(4),i=BigInt(5),u=BigInt(8);BigInt(9),BigInt(16);function d(B,P){const K=B%P;return K>=t?K:P+K}function h(B,P,K){if(K<=t||P<t)throw new Error("Expected power/modulo > 0");if(K===r)return t;let Z=r;for(;P>t;)P&r&&(Z=Z*B%K),B=B*B%K,P>>=r;return Z}function p(B,P,K){let Z=B;for(;P-- >t;)Z*=Z,Z%=K;return Z}function m(B,P){if(B===t||P<=t)throw new Error(`invert: expected positive integers, got n=${B} mod=${P}`);let K=d(B,P),Z=P,D=t,U=r;for(;K!==t;){const O=Z/K,z=Z%K,Q=D-U*O;Z=K,K=z,D=U,U=Q}if(Z!==r)throw new Error("invert: does not exist");return d(D,P)}function b(B){const P=(B-r)/n;let K,Z,D;for(K=B-r,Z=0;K%n===t;K/=n,Z++);for(D=n;D<B&&h(D,P,B)!==B-r;D++);if(Z===1){const R=(B+r)/s;return function(z,Q){const ce=z.pow(Q,R);if(!z.eql(z.sqr(ce),Q))throw new Error("Cannot find square root");return ce}}const U=(K+r)/n;return function(O,z){if(O.pow(z,P)===O.neg(O.ONE))throw new Error("Cannot find square root");let Q=Z,ce=O.pow(O.mul(O.ONE,D),K),ie=O.pow(z,U),le=O.pow(z,K);for(;!O.eql(le,O.ONE);){if(O.eql(le,O.ZERO))return O.ZERO;let de=1;for(let we=O.sqr(le);de<Q&&!O.eql(we,O.ONE);de++)we=O.sqr(we);const Re=O.pow(ce,r<<BigInt(Q-de-1));ce=O.sqr(Re),ie=O.mul(ie,Re),le=O.mul(le,ce),Q=de}return ie}}function E(B){if(B%s===o){const P=(B+r)/s;return function(Z,D){const U=Z.pow(D,P);if(!Z.eql(Z.sqr(U),D))throw new Error("Cannot find square root");return U}}if(B%u===i){const P=(B-i)/u;return function(Z,D){const U=Z.mul(D,n),R=Z.pow(U,P),O=Z.mul(D,R),z=Z.mul(Z.mul(O,n),R),Q=Z.mul(O,Z.sub(z,Z.ONE));if(!Z.eql(Z.sqr(Q),D))throw new Error("Cannot find square root");return Q}}return b(B)}const A=(B,P)=>(d(B,P)&r)===r;st.isNegativeLE=A;const g=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function T(B){const P={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},K=g.reduce((Z,D)=>(Z[D]="function",Z),P);return(0,e.validateObject)(B,K)}function H(B,P,K){if(K<t)throw new Error("Expected power > 0");if(K===t)return B.ONE;if(K===r)return P;let Z=B.ONE,D=P;for(;K>t;)K&r&&(Z=B.mul(Z,D)),D=B.sqr(D),K>>=r;return Z}function v(B,P){const K=new Array(P.length),Z=P.reduce((U,R,O)=>B.is0(R)?U:(K[O]=U,B.mul(U,R)),B.ONE),D=B.inv(Z);return P.reduceRight((U,R,O)=>B.is0(R)?U:(K[O]=B.mul(U,K[O]),B.mul(U,R)),D),K}function k(B,P,K){return B.mul(P,typeof K=="bigint"?m(K,B.ORDER):B.inv(K))}function w(B){const P=(B.ORDER-r)/n;return K=>{const Z=B.pow(K,P);return B.eql(Z,B.ZERO)||B.eql(Z,B.ONE)}}function Y(B,P){const K=P!==void 0?P:B.toString(2).length,Z=Math.ceil(K/8);return{nBitLength:K,nByteLength:Z}}function q(B,P,K=!1,Z={}){if(B<=t)throw new Error(`Expected Field ORDER > 0, got ${B}`);const{nBitLength:D,nByteLength:U}=Y(B,P);if(U>2048)throw new Error("Field lengths over 2048 bytes are not supported");const R=E(B),O=Object.freeze({ORDER:B,BITS:D,BYTES:U,MASK:(0,e.bitMask)(D),ZERO:t,ONE:r,create:z=>d(z,B),isValid:z=>{if(typeof z!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof z}`);return t<=z&&z<B},is0:z=>z===t,isOdd:z=>(z&r)===r,neg:z=>d(-z,B),eql:(z,Q)=>z===Q,sqr:z=>d(z*z,B),add:(z,Q)=>d(z+Q,B),sub:(z,Q)=>d(z-Q,B),mul:(z,Q)=>d(z*Q,B),pow:(z,Q)=>H(O,z,Q),div:(z,Q)=>d(z*m(Q,B),B),sqrN:z=>z*z,addN:(z,Q)=>z+Q,subN:(z,Q)=>z-Q,mulN:(z,Q)=>z*Q,inv:z=>m(z,B),sqrt:Z.sqrt||(z=>R(O,z)),invertBatch:z=>v(O,z),cmov:(z,Q,ce)=>ce?Q:z,toBytes:z=>K?(0,e.numberToBytesLE)(z,U):(0,e.numberToBytesBE)(z,U),fromBytes:z=>{if(z.length!==U)throw new Error(`Fp.fromBytes: expected ${U}, got ${z.length}`);return K?(0,e.bytesToNumberLE)(z):(0,e.bytesToNumberBE)(z)}});return Object.freeze(O)}function S(B,P){if(!B.isOdd)throw new Error("Field doesn't have isOdd");const K=B.sqrt(P);return B.isOdd(K)?K:B.neg(K)}function $(B,P){if(!B.isOdd)throw new Error("Field doesn't have isOdd");const K=B.sqrt(P);return B.isOdd(K)?B.neg(K):K}function J(B,P,K=!1){B=(0,e.ensureBytes)("privateHash",B);const Z=B.length,D=Y(P).nByteLength+8;if(D<24||Z<D||Z>1024)throw new Error(`hashToPrivateScalar: expected ${D}-1024 bytes of input, got ${Z}`);const U=K?(0,e.bytesToNumberLE)(B):(0,e.bytesToNumberBE)(B);return d(U,P-r)+r}function W(B){if(typeof B!="bigint")throw new Error("field order must be bigint");const P=B.toString(2).length;return Math.ceil(P/8)}function ne(B){const P=W(B);return P+Math.ceil(P/2)}function X(B,P,K=!1){const Z=B.length,D=W(P),U=ne(P);if(Z<16||Z<U||Z>1024)throw new Error(`expected ${U}-1024 bytes of input, got ${Z}`);const R=K?(0,e.bytesToNumberBE)(B):(0,e.bytesToNumberLE)(B),O=d(R,P-r)+r;return K?(0,e.numberToBytesLE)(O,D):(0,e.numberToBytesBE)(O,D)}return st}var Ku;function dg(){if(Ku)return ko;Ku=1,Object.defineProperty(ko,"__esModule",{value:!0}),ko.wNAF=o,ko.validateBasic=s;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=Pa(),t=mo(),r=BigInt(0),n=BigInt(1);function o(i,u){const d=(p,m)=>{const b=m.negate();return p?b:m},h=p=>{const m=Math.ceil(u/p)+1,b=2**(p-1);return{windows:m,windowSize:b}};return{constTimeNegate:d,unsafeLadder(p,m){let b=i.ZERO,E=p;for(;m>r;)m&n&&(b=b.add(E)),E=E.double(),m>>=n;return b},precomputeWindow(p,m){const{windows:b,windowSize:E}=h(m),A=[];let g=p,T=g;for(let H=0;H<b;H++){T=g,A.push(T);for(let v=1;v<E;v++)T=T.add(g),A.push(T);g=T.double()}return A},wNAF(p,m,b){const{windows:E,windowSize:A}=h(p);let g=i.ZERO,T=i.BASE;const H=BigInt(2**p-1),v=2**p,k=BigInt(p);for(let w=0;w<E;w++){const Y=w*A;let q=Number(b&H);b>>=k,q>A&&(q-=v,b+=n);const S=Y,$=Y+Math.abs(q)-1,J=w%2!==0,W=q<0;q===0?T=T.add(d(J,m[S])):g=g.add(d(W,m[$]))}return{p:g,f:T}},wNAFCached(p,m,b,E){const A=p._WINDOW_SIZE||1;let g=m.get(p);return g||(g=this.precomputeWindow(p,A),A!==1&&m.set(p,E(g))),this.wNAF(A,g,b)}}}function s(i){return(0,e.validateField)(i.Fp),(0,t.validateObject)(i,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,e.nLength)(i.n,i.nBitLength),...i,p:i.Fp.ORDER})}return ko}var Yu;function pf(){return Yu||(Yu=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DER=void 0,e.weierstrassPoints=E,e.weierstrass=g,e.SWUFpSqrtRatio=T,e.mapToCurveSimpleSWU=H;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const t=dg(),r=Pa(),n=mo(),o=mo();function s(v){const k=(0,t.validateBasic)(v);n.validateObject(k,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:w,Fp:Y,a:q}=k;if(w){if(!Y.eql(q,Y.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof w!="object"||typeof w.beta!="bigint"||typeof w.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...k})}const{bytesToNumberBE:i,hexToBytes:u}=n;e.DER={Err:class extends Error{constructor(k=""){super(k)}},_parseInt(v){const{Err:k}=e.DER;if(v.length<2||v[0]!==2)throw new k("Invalid signature integer tag");const w=v[1],Y=v.subarray(2,w+2);if(!w||Y.length!==w)throw new k("Invalid signature integer: wrong length");if(Y[0]&128)throw new k("Invalid signature integer: negative");if(Y[0]===0&&!(Y[1]&128))throw new k("Invalid signature integer: unnecessary leading zero");return{d:i(Y),l:v.subarray(w+2)}},toSig(v){const{Err:k}=e.DER,w=typeof v=="string"?u(v):v;n.abytes(w);let Y=w.length;if(Y<2||w[0]!=48)throw new k("Invalid signature tag");if(w[1]!==Y-2)throw new k("Invalid signature: incorrect length");const{d:q,l:S}=e.DER._parseInt(w.subarray(2)),{d:$,l:J}=e.DER._parseInt(S);if(J.length)throw new k("Invalid signature: left bytes after parsing");return{r:q,s:$}},hexFromSig(v){const k=ne=>Number.parseInt(ne[0],16)&8?"00"+ne:ne,w=ne=>{const X=ne.toString(16);return X.length&1?`0${X}`:X},Y=k(w(v.s)),q=k(w(v.r)),S=Y.length/2,$=q.length/2,J=w(S),W=w($);return`30${w($+S+4)}02${W}${q}02${J}${Y}`}};const d=BigInt(0),h=BigInt(1),p=BigInt(2),m=BigInt(3),b=BigInt(4);function E(v){const k=s(v),{Fp:w}=k,Y=k.toBytes||((Z,D,U)=>{const R=D.toAffine();return n.concatBytes(Uint8Array.from([4]),w.toBytes(R.x),w.toBytes(R.y))}),q=k.fromBytes||(Z=>{const D=Z.subarray(1),U=w.fromBytes(D.subarray(0,w.BYTES)),R=w.fromBytes(D.subarray(w.BYTES,2*w.BYTES));return{x:U,y:R}});function S(Z){const{a:D,b:U}=k,R=w.sqr(Z),O=w.mul(R,Z);return w.add(w.add(O,w.mul(Z,D)),U)}if(!w.eql(w.sqr(k.Gy),S(k.Gx)))throw new Error("bad generator point: equation left != right");function $(Z){return typeof Z=="bigint"&&d<Z&&Z<k.n}function J(Z){if(!$(Z))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function W(Z){const{allowedPrivateKeyLengths:D,nByteLength:U,wrapPrivateKey:R,n:O}=k;if(D&&typeof Z!="bigint"){if(n.isBytes(Z)&&(Z=n.bytesToHex(Z)),typeof Z!="string"||!D.includes(Z.length))throw new Error("Invalid key");Z=Z.padStart(U*2,"0")}let z;try{z=typeof Z=="bigint"?Z:n.bytesToNumberBE((0,o.ensureBytes)("private key",Z,U))}catch{throw new Error(`private key must be ${U} bytes, hex or bigint, not ${typeof Z}`)}return R&&(z=r.mod(z,O)),J(z),z}const ne=new Map;function X(Z){if(!(Z instanceof B))throw new Error("ProjectivePoint expected")}class B{constructor(D,U,R){if(this.px=D,this.py=U,this.pz=R,D==null||!w.isValid(D))throw new Error("x required");if(U==null||!w.isValid(U))throw new Error("y required");if(R==null||!w.isValid(R))throw new Error("z required")}static fromAffine(D){const{x:U,y:R}=D||{};if(!D||!w.isValid(U)||!w.isValid(R))throw new Error("invalid affine point");if(D instanceof B)throw new Error("projective point not allowed");const O=z=>w.eql(z,w.ZERO);return O(U)&&O(R)?B.ZERO:new B(U,R,w.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(D){const U=w.invertBatch(D.map(R=>R.pz));return D.map((R,O)=>R.toAffine(U[O])).map(B.fromAffine)}static fromHex(D){const U=B.fromAffine(q((0,o.ensureBytes)("pointHex",D)));return U.assertValidity(),U}static fromPrivateKey(D){return B.BASE.multiply(W(D))}_setWindowSize(D){this._WINDOW_SIZE=D,ne.delete(this)}assertValidity(){if(this.is0()){if(k.allowInfinityPoint&&!w.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:D,y:U}=this.toAffine();if(!w.isValid(D)||!w.isValid(U))throw new Error("bad point: x or y not FE");const R=w.sqr(U),O=S(D);if(!w.eql(R,O))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:D}=this.toAffine();if(w.isOdd)return!w.isOdd(D);throw new Error("Field doesn't support isOdd")}equals(D){X(D);const{px:U,py:R,pz:O}=this,{px:z,py:Q,pz:ce}=D,ie=w.eql(w.mul(U,ce),w.mul(z,O)),le=w.eql(w.mul(R,ce),w.mul(Q,O));return ie&&le}negate(){return new B(this.px,w.neg(this.py),this.pz)}double(){const{a:D,b:U}=k,R=w.mul(U,m),{px:O,py:z,pz:Q}=this;let ce=w.ZERO,ie=w.ZERO,le=w.ZERO,de=w.mul(O,O),Re=w.mul(z,z),we=w.mul(Q,Q),xe=w.mul(O,z);return xe=w.add(xe,xe),le=w.mul(O,Q),le=w.add(le,le),ce=w.mul(D,le),ie=w.mul(R,we),ie=w.add(ce,ie),ce=w.sub(Re,ie),ie=w.add(Re,ie),ie=w.mul(ce,ie),ce=w.mul(xe,ce),le=w.mul(R,le),we=w.mul(D,we),xe=w.sub(de,we),xe=w.mul(D,xe),xe=w.add(xe,le),le=w.add(de,de),de=w.add(le,de),de=w.add(de,we),de=w.mul(de,xe),ie=w.add(ie,de),we=w.mul(z,Q),we=w.add(we,we),de=w.mul(we,xe),ce=w.sub(ce,de),le=w.mul(we,Re),le=w.add(le,le),le=w.add(le,le),new B(ce,ie,le)}add(D){X(D);const{px:U,py:R,pz:O}=this,{px:z,py:Q,pz:ce}=D;let ie=w.ZERO,le=w.ZERO,de=w.ZERO;const Re=k.a,we=w.mul(k.b,m);let xe=w.mul(U,z),ye=w.mul(R,Q),He=w.mul(O,ce),qe=w.add(U,R),he=w.add(z,Q);qe=w.mul(qe,he),he=w.add(xe,ye),qe=w.sub(qe,he),he=w.add(U,O);let fe=w.add(z,ce);return he=w.mul(he,fe),fe=w.add(xe,He),he=w.sub(he,fe),fe=w.add(R,O),ie=w.add(Q,ce),fe=w.mul(fe,ie),ie=w.add(ye,He),fe=w.sub(fe,ie),de=w.mul(Re,he),ie=w.mul(we,He),de=w.add(ie,de),ie=w.sub(ye,de),de=w.add(ye,de),le=w.mul(ie,de),ye=w.add(xe,xe),ye=w.add(ye,xe),He=w.mul(Re,He),he=w.mul(we,he),ye=w.add(ye,He),He=w.sub(xe,He),He=w.mul(Re,He),he=w.add(he,He),xe=w.mul(ye,he),le=w.add(le,xe),xe=w.mul(fe,he),ie=w.mul(qe,ie),ie=w.sub(ie,xe),xe=w.mul(qe,ye),de=w.mul(fe,de),de=w.add(de,xe),new B(ie,le,de)}subtract(D){return this.add(D.negate())}is0(){return this.equals(B.ZERO)}wNAF(D){return K.wNAFCached(this,ne,D,U=>{const R=w.invertBatch(U.map(O=>O.pz));return U.map((O,z)=>O.toAffine(R[z])).map(B.fromAffine)})}multiplyUnsafe(D){const U=B.ZERO;if(D===d)return U;if(J(D),D===h)return this;const{endo:R}=k;if(!R)return K.unsafeLadder(this,D);let{k1neg:O,k1:z,k2neg:Q,k2:ce}=R.splitScalar(D),ie=U,le=U,de=this;for(;z>d||ce>d;)z&h&&(ie=ie.add(de)),ce&h&&(le=le.add(de)),de=de.double(),z>>=h,ce>>=h;return O&&(ie=ie.negate()),Q&&(le=le.negate()),le=new B(w.mul(le.px,R.beta),le.py,le.pz),ie.add(le)}multiply(D){J(D);let U=D,R,O;const{endo:z}=k;if(z){const{k1neg:Q,k1:ce,k2neg:ie,k2:le}=z.splitScalar(U);let{p:de,f:Re}=this.wNAF(ce),{p:we,f:xe}=this.wNAF(le);de=K.constTimeNegate(Q,de),we=K.constTimeNegate(ie,we),we=new B(w.mul(we.px,z.beta),we.py,we.pz),R=de.add(we),O=Re.add(xe)}else{const{p:Q,f:ce}=this.wNAF(U);R=Q,O=ce}return B.normalizeZ([R,O])[0]}multiplyAndAddUnsafe(D,U,R){const O=B.BASE,z=(ce,ie)=>ie===d||ie===h||!ce.equals(O)?ce.multiplyUnsafe(ie):ce.multiply(ie),Q=z(this,U).add(z(D,R));return Q.is0()?void 0:Q}toAffine(D){const{px:U,py:R,pz:O}=this,z=this.is0();D==null&&(D=z?w.ONE:w.inv(O));const Q=w.mul(U,D),ce=w.mul(R,D),ie=w.mul(O,D);if(z)return{x:w.ZERO,y:w.ZERO};if(!w.eql(ie,w.ONE))throw new Error("invZ was invalid");return{x:Q,y:ce}}isTorsionFree(){const{h:D,isTorsionFree:U}=k;if(D===h)return!0;if(U)return U(B,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:D,clearCofactor:U}=k;return D===h?this:U?U(B,this):this.multiplyUnsafe(k.h)}toRawBytes(D=!0){return this.assertValidity(),Y(B,this,D)}toHex(D=!0){return n.bytesToHex(this.toRawBytes(D))}}B.BASE=new B(k.Gx,k.Gy,w.ONE),B.ZERO=new B(w.ZERO,w.ONE,w.ZERO);const P=k.nBitLength,K=(0,t.wNAF)(B,k.endo?Math.ceil(P/2):P);return{CURVE:k,ProjectivePoint:B,normPrivateKeyToScalar:W,weierstrassEquation:S,isWithinCurveOrder:$}}function A(v){const k=(0,t.validateBasic)(v);return n.validateObject(k,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...k})}function g(v){const k=A(v),{Fp:w,n:Y}=k,q=w.BYTES+1,S=2*w.BYTES+1;function $(he){return d<he&&he<w.ORDER}function J(he){return r.mod(he,Y)}function W(he){return r.invert(he,Y)}const{ProjectivePoint:ne,normPrivateKeyToScalar:X,weierstrassEquation:B,isWithinCurveOrder:P}=E({...k,toBytes(he,fe,ve){const Ae=fe.toAffine(),Le=w.toBytes(Ae.x),Be=n.concatBytes;return ve?Be(Uint8Array.from([fe.hasEvenY()?2:3]),Le):Be(Uint8Array.from([4]),Le,w.toBytes(Ae.y))},fromBytes(he){const fe=he.length,ve=he[0],Ae=he.subarray(1);if(fe===q&&(ve===2||ve===3)){const Le=n.bytesToNumberBE(Ae);if(!$(Le))throw new Error("Point is not on curve");const Be=B(Le);let ft;try{ft=w.sqrt(Be)}catch(Ut){const or=Ut instanceof Error?": "+Ut.message:"";throw new Error("Point is not on curve"+or)}const nt=(ft&h)===h;return(ve&1)===1!==nt&&(ft=w.neg(ft)),{x:Le,y:ft}}else if(fe===S&&ve===4){const Le=w.fromBytes(Ae.subarray(0,w.BYTES)),Be=w.fromBytes(Ae.subarray(w.BYTES,2*w.BYTES));return{x:Le,y:Be}}else throw new Error(`Point of length ${fe} was invalid. Expected ${q} compressed bytes or ${S} uncompressed bytes`)}}),K=he=>n.bytesToHex(n.numberToBytesBE(he,k.nByteLength));function Z(he){const fe=Y>>h;return he>fe}function D(he){return Z(he)?J(-he):he}const U=(he,fe,ve)=>n.bytesToNumberBE(he.slice(fe,ve));class R{constructor(fe,ve,Ae){this.r=fe,this.s=ve,this.recovery=Ae,this.assertValidity()}static fromCompact(fe){const ve=k.nByteLength;return fe=(0,o.ensureBytes)("compactSignature",fe,ve*2),new R(U(fe,0,ve),U(fe,ve,2*ve))}static fromDER(fe){const{r:ve,s:Ae}=e.DER.toSig((0,o.ensureBytes)("DER",fe));return new R(ve,Ae)}assertValidity(){if(!P(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!P(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(fe){return new R(this.r,this.s,fe)}recoverPublicKey(fe){const{r:ve,s:Ae,recovery:Le}=this,Be=le((0,o.ensureBytes)("msgHash",fe));if(Le==null||![0,1,2,3].includes(Le))throw new Error("recovery id invalid");const ft=Le===2||Le===3?ve+k.n:ve;if(ft>=w.ORDER)throw new Error("recovery id 2 or 3 invalid");const nt=(Le&1)===0?"02":"03",qt=ne.fromHex(nt+K(ft)),Ut=W(ft),or=J(-Be*Ut),Or=J(Ae*Ut),Qt=ne.BASE.multiplyAndAddUnsafe(qt,or,Or);if(!Qt)throw new Error("point at infinify");return Qt.assertValidity(),Qt}hasHighS(){return Z(this.s)}normalizeS(){return this.hasHighS()?new R(this.r,J(-this.s),this.recovery):this}toDERRawBytes(){return n.hexToBytes(this.toDERHex())}toDERHex(){return e.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return n.hexToBytes(this.toCompactHex())}toCompactHex(){return K(this.r)+K(this.s)}}const O={isValidPrivateKey(he){try{return X(he),!0}catch{return!1}},normPrivateKeyToScalar:X,randomPrivateKey:()=>{const he=r.getMinHashLength(k.n);return r.mapHashToField(k.randomBytes(he),k.n)},precompute(he=8,fe=ne.BASE){return fe._setWindowSize(he),fe.multiply(BigInt(3)),fe}};function z(he,fe=!0){return ne.fromPrivateKey(he).toRawBytes(fe)}function Q(he){const fe=n.isBytes(he),ve=typeof he=="string",Ae=(fe||ve)&&he.length;return fe?Ae===q||Ae===S:ve?Ae===2*q||Ae===2*S:he instanceof ne}function ce(he,fe,ve=!0){if(Q(he))throw new Error("first arg must be private key");if(!Q(fe))throw new Error("second arg must be public key");return ne.fromHex(fe).multiply(X(he)).toRawBytes(ve)}const ie=k.bits2int||function(he){const fe=n.bytesToNumberBE(he),ve=he.length*8-k.nBitLength;return ve>0?fe>>BigInt(ve):fe},le=k.bits2int_modN||function(he){return J(ie(he))},de=n.bitMask(k.nBitLength);function Re(he){if(typeof he!="bigint")throw new Error("bigint expected");if(!(d<=he&&he<de))throw new Error(`bigint expected < 2^${k.nBitLength}`);return n.numberToBytesBE(he,k.nByteLength)}function we(he,fe,ve=xe){if(["recovered","canonical"].some(gr=>gr in ve))throw new Error("sign() legacy options not supported");const{hash:Ae,randomBytes:Le}=k;let{lowS:Be,prehash:ft,extraEntropy:nt}=ve;Be==null&&(Be=!0),he=(0,o.ensureBytes)("msgHash",he),ft&&(he=(0,o.ensureBytes)("prehashed msgHash",Ae(he)));const qt=le(he),Ut=X(fe),or=[Re(Ut),Re(qt)];if(nt!=null&&nt!==!1){const gr=nt===!0?Le(w.BYTES):nt;or.push((0,o.ensureBytes)("extraEntropy",gr))}const Or=n.concatBytes(...or),Qt=qt;function Mn(gr){const yt=ie(gr);if(!P(yt))return;const Kr=W(yt),Vt=ne.BASE.multiply(yt).toAffine(),Rt=J(Vt.x);if(Rt===d)return;const Ht=J(Kr*J(Qt+Rt*Ut));if(Ht===d)return;let _o=(Vt.x===Rt?0:2)|Number(Vt.y&h),sr=Ht;return Be&&Z(Ht)&&(sr=D(Ht),_o^=1),new R(Rt,sr,_o)}return{seed:Or,k2sig:Mn}}const xe={lowS:k.lowS,prehash:!1},ye={lowS:k.lowS,prehash:!1};function He(he,fe,ve=xe){const{seed:Ae,k2sig:Le}=we(he,fe,ve),Be=k;return n.createHmacDrbg(Be.hash.outputLen,Be.nByteLength,Be.hmac)(Ae,Le)}ne.BASE._setWindowSize(8);function qe(he,fe,ve,Ae=ye){var Vt;const Le=he;if(fe=(0,o.ensureBytes)("msgHash",fe),ve=(0,o.ensureBytes)("publicKey",ve),"strict"in Ae)throw new Error("options.strict was renamed to lowS");const{lowS:Be,prehash:ft}=Ae;let nt,qt;try{if(typeof Le=="string"||n.isBytes(Le))try{nt=R.fromDER(Le)}catch(Rt){if(!(Rt instanceof e.DER.Err))throw Rt;nt=R.fromCompact(Le)}else if(typeof Le=="object"&&typeof Le.r=="bigint"&&typeof Le.s=="bigint"){const{r:Rt,s:Ht}=Le;nt=new R(Rt,Ht)}else throw new Error("PARSE");qt=ne.fromHex(ve)}catch(Rt){if(Rt.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(Be&&nt.hasHighS())return!1;ft&&(fe=k.hash(fe));const{r:Ut,s:or}=nt,Or=le(fe),Qt=W(or),Mn=J(Or*Qt),gr=J(Ut*Qt),yt=(Vt=ne.BASE.multiplyAndAddUnsafe(qt,Mn,gr))==null?void 0:Vt.toAffine();return yt?J(yt.x)===Ut:!1}return{CURVE:k,getPublicKey:z,getSharedSecret:ce,sign:He,verify:qe,ProjectivePoint:ne,Signature:R,utils:O}}function T(v,k){const w=v.ORDER;let Y=d;for(let Z=w-h;Z%p===d;Z/=p)Y+=h;const q=Y,S=p<<q-h-h,$=S*p,J=(w-h)/$,W=(J-h)/p,ne=$-h,X=S,B=v.pow(k,J),P=v.pow(k,(J+h)/p);let K=(Z,D)=>{let U=B,R=v.pow(D,ne),O=v.sqr(R);O=v.mul(O,D);let z=v.mul(Z,O);z=v.pow(z,W),z=v.mul(z,R),R=v.mul(z,D),O=v.mul(z,Z);let Q=v.mul(O,R);z=v.pow(Q,X);let ce=v.eql(z,v.ONE);R=v.mul(O,P),z=v.mul(Q,U),O=v.cmov(R,O,ce),Q=v.cmov(z,Q,ce);for(let ie=q;ie>h;ie--){let le=ie-p;le=p<<le-h;let de=v.pow(Q,le);const Re=v.eql(de,v.ONE);R=v.mul(O,U),U=v.mul(U,U),de=v.mul(Q,U),O=v.cmov(R,O,Re),Q=v.cmov(de,Q,Re)}return{isValid:ce,value:O}};if(v.ORDER%b===m){const Z=(v.ORDER-m)/b,D=v.sqrt(v.neg(k));K=(U,R)=>{let O=v.sqr(R);const z=v.mul(U,R);O=v.mul(O,z);let Q=v.pow(O,Z);Q=v.mul(Q,z);const ce=v.mul(Q,D),ie=v.mul(v.sqr(Q),R),le=v.eql(ie,U);let de=v.cmov(ce,Q,le);return{isValid:le,value:de}}}return K}function H(v,k){if(r.validateField(v),!v.isValid(k.A)||!v.isValid(k.B)||!v.isValid(k.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const w=T(v,k.Z);if(!v.isOdd)throw new Error("Fp.isOdd is not implemented!");return Y=>{let q,S,$,J,W,ne,X,B;q=v.sqr(Y),q=v.mul(q,k.Z),S=v.sqr(q),S=v.add(S,q),$=v.add(S,v.ONE),$=v.mul($,k.B),J=v.cmov(k.Z,v.neg(S),!v.eql(S,v.ZERO)),J=v.mul(J,k.A),S=v.sqr($),ne=v.sqr(J),W=v.mul(ne,k.A),S=v.add(S,W),S=v.mul(S,$),ne=v.mul(ne,J),W=v.mul(ne,k.B),S=v.add(S,W),X=v.mul(q,$);const{isValid:P,value:K}=w(S,ne);B=v.mul(q,Y),B=v.mul(B,K),X=v.cmov(X,$,P),B=v.cmov(B,K,P);const Z=v.isOdd(Y)===v.isOdd(B);return B=v.cmov(v.neg(B),B,Z),X=v.div(X,J),{x:X,y:B}}}})(gi)),gi}var Qu;function fg(){if(Qu)return Io;Qu=1,Object.defineProperty(Io,"__esModule",{value:!0}),Io.getHash=n,Io.createCurve=o;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=ug(),t=ss(),r=pf();function n(s){return{hash:s,hmac:(i,...u)=>(0,e.hmac)(s,i,(0,t.concatBytes)(...u)),randomBytes:t.randomBytes}}function o(s,i){const u=d=>(0,r.weierstrass)({...s,...n(d)});return Object.freeze({...u(i),create:u})}return Io}var en={},Ju;function hg(){if(Ju)return en;Ju=1,Object.defineProperty(en,"__esModule",{value:!0}),en.expand_message_xmd=i,en.expand_message_xof=u,en.hash_to_field=d,en.isogenyMap=h,en.createHasher=p;const e=Pa(),t=mo(),r=t.bytesToNumberBE;function n(m,b){if(m<0||m>=1<<8*b)throw new Error(`bad I2OSP call: value=${m} length=${b}`);const E=Array.from({length:b}).fill(0);for(let A=b-1;A>=0;A--)E[A]=m&255,m>>>=8;return new Uint8Array(E)}function o(m,b){const E=new Uint8Array(m.length);for(let A=0;A<m.length;A++)E[A]=m[A]^b[A];return E}function s(m){if(!Number.isSafeInteger(m))throw new Error("number expected")}function i(m,b,E,A){(0,t.abytes)(m),(0,t.abytes)(b),s(E),b.length>255&&(b=A((0,t.concatBytes)((0,t.utf8ToBytes)("H2C-OVERSIZE-DST-"),b)));const{outputLen:g,blockLen:T}=A,H=Math.ceil(E/g);if(H>255)throw new Error("Invalid xmd length");const v=(0,t.concatBytes)(b,n(b.length,1)),k=n(0,T),w=n(E,2),Y=new Array(H),q=A((0,t.concatBytes)(k,m,w,n(0,1),v));Y[0]=A((0,t.concatBytes)(q,n(1,1),v));for(let $=1;$<=H;$++){const J=[o(q,Y[$-1]),n($+1,1),v];Y[$]=A((0,t.concatBytes)(...J))}return(0,t.concatBytes)(...Y).slice(0,E)}function u(m,b,E,A,g){if((0,t.abytes)(m),(0,t.abytes)(b),s(E),b.length>255){const T=Math.ceil(2*A/8);b=g.create({dkLen:T}).update((0,t.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(b).digest()}if(E>65535||b.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return g.create({dkLen:E}).update(m).update(n(E,2)).update(b).update(n(b.length,1)).digest()}function d(m,b,E){(0,t.validateObject)(E,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:A,k:g,m:T,hash:H,expand:v,DST:k}=E;(0,t.abytes)(m),s(b);const w=typeof k=="string"?(0,t.utf8ToBytes)(k):k,Y=A.toString(2).length,q=Math.ceil((Y+g)/8),S=b*T*q;let $;if(v==="xmd")$=i(m,w,S,H);else if(v==="xof")$=u(m,w,S,g,H);else if(v==="_internal_pass")$=m;else throw new Error('expand must be "xmd" or "xof"');const J=new Array(b);for(let W=0;W<b;W++){const ne=new Array(T);for(let X=0;X<T;X++){const B=q*(X+W*T),P=$.subarray(B,B+q);ne[X]=(0,e.mod)(r(P),A)}J[W]=ne}return J}function h(m,b){const E=b.map(A=>Array.from(A).reverse());return(A,g)=>{const[T,H,v,k]=E.map(w=>w.reduce((Y,q)=>m.add(m.mul(Y,A),q)));return A=m.div(T,H),g=m.mul(g,m.div(v,k)),{x:A,y:g}}}function p(m,b,E){if(typeof b!="function")throw new Error("mapToCurve() must be defined");return{hashToCurve(A,g){const T=d(A,2,{...E,DST:E.DST,...g}),H=m.fromAffine(b(T[0])),v=m.fromAffine(b(T[1])),k=H.add(v).clearCofactor();return k.assertValidity(),k},encodeToCurve(A,g){const T=d(A,1,{...E,DST:E.encodeDST,...g}),H=m.fromAffine(b(T[0])).clearCofactor();return H.assertValidity(),H},mapToCurve(A){if(!Array.isArray(A))throw new Error("mapToCurve: expected array of bigints");for(const T of A)if(typeof T!="bigint")throw new Error(`mapToCurve: expected array of bigints, got ${T} in array`);const g=m.fromAffine(b(A)).clearCofactor();return g.assertValidity(),g}}}return en}var Xu;function pg(){return Xu||(Xu=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.encodeToCurve=e.hashToCurve=e.schnorr=e.secp256k1=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const t=lg(),r=ss(),n=fg(),o=hg(),s=Pa(),i=mo(),u=pf(),d=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),h=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),p=BigInt(1),m=BigInt(2),b=(R,O)=>(R+O/m)/O;function E(R){const O=d,z=BigInt(3),Q=BigInt(6),ce=BigInt(11),ie=BigInt(22),le=BigInt(23),de=BigInt(44),Re=BigInt(88),we=R*R*R%O,xe=we*we*R%O,ye=(0,s.pow2)(xe,z,O)*xe%O,He=(0,s.pow2)(ye,z,O)*xe%O,qe=(0,s.pow2)(He,m,O)*we%O,he=(0,s.pow2)(qe,ce,O)*qe%O,fe=(0,s.pow2)(he,ie,O)*he%O,ve=(0,s.pow2)(fe,de,O)*fe%O,Ae=(0,s.pow2)(ve,Re,O)*ve%O,Le=(0,s.pow2)(Ae,de,O)*fe%O,Be=(0,s.pow2)(Le,z,O)*xe%O,ft=(0,s.pow2)(Be,le,O)*he%O,nt=(0,s.pow2)(ft,Q,O)*we%O,qt=(0,s.pow2)(nt,m,O);if(!A.eql(A.sqr(qt),R))throw new Error("Cannot find square root");return qt}const A=(0,s.Field)(d,void 0,void 0,{sqrt:E});e.secp256k1=(0,n.createCurve)({a:BigInt(0),b:BigInt(7),Fp:A,n:h,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:R=>{const O=h,z=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),Q=-p*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),ce=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),ie=z,le=BigInt("0x100000000000000000000000000000000"),de=b(ie*R,O),Re=b(-Q*R,O);let we=(0,s.mod)(R-de*z-Re*ce,O),xe=(0,s.mod)(-de*Q-Re*ie,O);const ye=we>le,He=xe>le;if(ye&&(we=O-we),He&&(xe=O-xe),we>le||xe>le)throw new Error("splitScalar: Endomorphism failed, k="+R);return{k1neg:ye,k1:we,k2neg:He,k2:xe}}}},t.sha256);const g=BigInt(0),T=R=>typeof R=="bigint"&&g<R&&R<d,H=R=>typeof R=="bigint"&&g<R&&R<h,v={};function k(R,...O){let z=v[R];if(z===void 0){const Q=(0,t.sha256)(Uint8Array.from(R,ce=>ce.charCodeAt(0)));z=(0,i.concatBytes)(Q,Q),v[R]=z}return(0,t.sha256)((0,i.concatBytes)(z,...O))}const w=R=>R.toRawBytes(!0).slice(1),Y=R=>(0,i.numberToBytesBE)(R,32),q=R=>(0,s.mod)(R,d),S=R=>(0,s.mod)(R,h),$=e.secp256k1.ProjectivePoint,J=(R,O,z)=>$.BASE.multiplyAndAddUnsafe(R,O,z);function W(R){let O=e.secp256k1.utils.normPrivateKeyToScalar(R),z=$.fromPrivateKey(O);return{scalar:z.hasEvenY()?O:S(-O),bytes:w(z)}}function ne(R){if(!T(R))throw new Error("bad x: need 0 < x < p");const O=q(R*R),z=q(O*R+BigInt(7));let Q=E(z);Q%m!==g&&(Q=q(-Q));const ce=new $(R,Q,p);return ce.assertValidity(),ce}function X(...R){return S((0,i.bytesToNumberBE)(k("BIP0340/challenge",...R)))}function B(R){return W(R).bytes}function P(R,O,z=(0,r.randomBytes)(32)){const Q=(0,i.ensureBytes)("message",R),{bytes:ce,scalar:ie}=W(O),le=(0,i.ensureBytes)("auxRand",z,32),de=Y(ie^(0,i.bytesToNumberBE)(k("BIP0340/aux",le))),Re=k("BIP0340/nonce",de,ce,Q),we=S((0,i.bytesToNumberBE)(Re));if(we===g)throw new Error("sign failed: k is zero");const{bytes:xe,scalar:ye}=W(we),He=X(xe,ce,Q),qe=new Uint8Array(64);if(qe.set(xe,0),qe.set(Y(S(ye+He*ie)),32),!K(qe,Q,ce))throw new Error("sign: Invalid signature produced");return qe}function K(R,O,z){const Q=(0,i.ensureBytes)("signature",R,64),ce=(0,i.ensureBytes)("message",O),ie=(0,i.ensureBytes)("publicKey",z,32);try{const le=ne((0,i.bytesToNumberBE)(ie)),de=(0,i.bytesToNumberBE)(Q.subarray(0,32));if(!T(de))return!1;const Re=(0,i.bytesToNumberBE)(Q.subarray(32,64));if(!H(Re))return!1;const we=X(Y(de),w(le),ce),xe=J(le,Re,S(-we));return!(!xe||!xe.hasEvenY()||xe.toAffine().x!==de)}catch{return!1}}e.schnorr={getPublicKey:B,sign:P,verify:K,utils:{randomPrivateKey:e.secp256k1.utils.randomPrivateKey,lift_x:ne,pointToBytes:w,numberToBytesBE:i.numberToBytesBE,bytesToNumberBE:i.bytesToNumberBE,taggedHash:k,mod:s.mod}};const Z=(0,o.isogenyMap)(A,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(R=>R.map(O=>BigInt(O)))),D=(0,u.mapToCurveSimpleSWU)(A,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:A.create(BigInt("-11"))}),U=(0,o.createHasher)(e.secp256k1.ProjectivePoint,R=>{const{x:O,y:z}=D(A.create(R[0]));return Z(O,z)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:A.ORDER,m:1,k:128,expand:"xmd",hash:t.sha256});e.hashToCurve=U.hashToCurve,e.encodeToCurve=U.encodeToCurve})(hi)),hi}var e0;function mg(){return e0||(e0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.secp256k1=void 0;var t=pg();Object.defineProperty(e,"secp256k1",{enumerable:!0,get:function(){return t.secp256k1}})})(fi)),fi}var t0;function gg(){if(t0)return Er;t0=1,Object.defineProperty(Er,"__esModule",{value:!0}),Er.recoverPublicKey=r,Er.recoverAddressFromEthSignature=o,Er.sign=s,Er.createEthereumMessageHash=i,Er.ethSign=u,Er.computeAddress=d,Er.createUnsafeIdentity=h;const e=Ra(),t=mg();function r(p,m){if(p.length!==65)throw new Error("Invalid signature length "+p.length);const b=p[64];if(b!==27&&b!==28)throw new Error(`Invalid signature recovery value: ${b}. Expected 27 or 28.`);const E=p.slice(0,p.length-1),A=b===28?1:0;return t.secp256k1.Signature.fromCompact(E).addRecoveryBit(A).recoverPublicKey(m).toRawBytes(!1).slice(1)}function n(p){if(p.length!==65)throw new Error("Invalid ethereum signature");const m=p[64];if(m===0||m===1){const b=new Uint8Array(p);return b[64]=m+27,b}return p}function o(p,m){if(typeof p=="string"){if((0,e.isHex)(p))return o((0,e.hexToBytes)(p),m);throw new Error("String signatures must be encoded in hex")}return d(r(n(p),i(m)))}function s(p,m){const b=t.secp256k1.sign(m,p),E=b.recovery===1?"1c":"1b";return"0x"+b.toCompactHex()+E}function i(p){const m=typeof p=="string"?(0,e.stringToUtf8Bytes)(p):p,b=(0,e.concatBytes)((0,e.stringToUtf8Bytes)(`Ethereum Signed Message:
|
|
38
|
-
`),(0,e.stringToUtf8Bytes)(String(m.length)),m);return(0,e.hexToBytes)((0,e.sha3)(b))}function u(p,m){return s(p,i(m))}function d(p){let m;if(p.length===65&&p[0]===4)m=p.slice(1);else if(p.length===64)m=p;else throw new Error(`Invalid public key length: ${p.length}. Expected 64 bytes, or 65 bytes with a leading 0x04 uncompressed prefix.`);return(0,e.getAddress)((0,e.sha3)(m).substring(24))}function h(){const p=t.secp256k1.utils.randomPrivateKey(),m=t.secp256k1.getPublicKey(p,!1).slice(1),b=d(m);return{privateKey:(0,e.bytesToHex)(p),publicKey:(0,e.bytesToHex)(m),address:b}}return Er}var ra={},r0;function yg(){if(r0)return ra;r0=1,Object.defineProperty(ra,"__esModule",{value:!0});const e=Ra();class t{constructor(n,o=!0){Xr(this,"requestManager");Xr(this,"checkedBlocks");Xr(this,"saveBlocks");Xr(this,"savedBlocks");Xr(this,"requests");Xr(this,"blockTime");Xr(this,"firstTimestamp");this.requestManager=n,this.checkedBlocks={},this.saveBlocks=o,this.savedBlocks={},this.requests=0}async fillBlockTime(){const n=await this.getBlockWrapper("latest"),o=await this.getBlockWrapper(1);return this.blockTime=(n.timestamp-o.timestamp)/(Number(n.number)-1),this.firstTimestamp=o.timestamp,{blockTime:this.blockTime,firstTimestamp:this.firstTimestamp}}async getDate(n,o=!0){const s=n/1e3,i=Date.now()/1e3;let u=this.firstTimestamp,d=this.blockTime;if((u===void 0||d===void 0)&&({firstTimestamp:u,blockTime:d}=await this.fillBlockTime()),s<u)return{block:1,timestamp:s};const h=this.savedBlocks.latest;if(s>=i||h&&s>h.timestamp)return{block:(0,e.toBigNumber)(await this.requestManager.eth_blockNumber()).toNumber(),timestamp:s};this.checkedBlocks[s]=[];const p=await this.getBlockWrapper(Math.ceil((s-u)/d));return{block:await this.findBetter(s,p,o,d),timestamp:s}}async findBetter(n,o,s,i){let u=i??this.blockTime??(await this.fillBlockTime()).blockTime;if(await this.isBetterBlock(n,o,s))return o.number;const d=n-o.timestamp;let h=Math.ceil(d/u);h===0&&(h=d<0?-1:1);const p=await this.getBlockWrapper(this.getNextBlock(n,o.number,h));return u=Math.abs((o.timestamp-p.timestamp)/(o.number-p.number)),this.findBetter(n,p,s,u)}async isBetterBlock(n,o,s){const i=o.timestamp;if(s){if(i<n)return!1;const u=await this.getBlockWrapper(o.number-1);if(i>=n&&u.timestamp<n)return!0}else{if(i>=n)return!1;const u=await this.getBlockWrapper(o.number+1);if(i<n&&u.timestamp>=n)return!0}return!1}getNextBlock(n,o,s){const i=o+s;if(this.checkedBlocks[n].includes(i)){const u=s<0?s+1:s-1;if(u===0)throw new Error(`Could not find an unchecked block for timestamp ${n}`);return this.getNextBlock(n,o,u)}return this.checkedBlocks[n].push(i),i}async getBlockWrapper(n){if(!this.saveBlocks){const i=await this.requestManager.eth_getBlockByNumber(n,!1);return{number:(0,e.toBigNumber)(i.number).toNumber(),timestamp:(0,e.toBigNumber)(i.timestamp).toNumber()}}const o=n.toString();if(this.savedBlocks[o])return this.savedBlocks[o];if(typeof n=="number"&&this.savedBlocks.latest&&this.savedBlocks.latest.number<=n)return this.savedBlocks.latest;const{timestamp:s}=await this.requestManager.eth_getBlockByNumber(n,!1);return this.savedBlocks[o]={number:(0,e.toBigNumber)(n==="latest"?await this.requestManager.eth_blockNumber():n).toNumber(),timestamp:(0,e.toBigNumber)(s).toNumber()},this.requests++,this.savedBlocks[o]}}return ra.default=t,ra}var na={},n0;function vg(){if(n0)return na;n0=1,Object.defineProperty(na,"__esModule",{value:!0}),na.moveMinutes=e;function e(t){const r=new Date;return r.setMinutes(r.getMinutes()+t),r}return na}var yi={},o0;function mf(){return o0||(o0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AuthLink=e.AuthLinkType=e.AuthChain=void 0;const t=Wh();Object.defineProperty(e,"AuthChain",{enumerable:!0,get:function(){return t.AuthChain}}),Object.defineProperty(e,"AuthLink",{enumerable:!0,get:function(){return t.AuthLink}}),Object.defineProperty(e,"AuthLinkType",{enumerable:!0,get:function(){return t.AuthLinkType}})})(yi)),yi}var s0;function gf(){return s0||(s0=1,(function(e){var t=ur&&ur.__createBinding||(Object.create?(function(U,R,O,z){z===void 0&&(z=O);var Q=Object.getOwnPropertyDescriptor(R,O);(!Q||("get"in Q?!R.__esModule:Q.writable||Q.configurable))&&(Q={enumerable:!0,get:function(){return R[O]}}),Object.defineProperty(U,z,Q)}):(function(U,R,O,z){z===void 0&&(z=O),U[z]=R[O]})),r=ur&&ur.__setModuleDefault||(Object.create?(function(U,R){Object.defineProperty(U,"default",{enumerable:!0,value:R})}):function(U,R){U.default=R}),n=ur&&ur.__importStar||(function(){var U=function(R){return U=Object.getOwnPropertyNames||function(O){var z=[];for(var Q in O)Object.prototype.hasOwnProperty.call(O,Q)&&(z[z.length]=Q);return z},U(R)};return function(R){if(R&&R.__esModule)return R;var O={};if(R!=null)for(var z=U(R),Q=0;Q<z.length;Q++)z[Q]!=="default"&&t(O,R,z[Q]);return r(O,R),O}})(),o=ur&&ur.__importDefault||function(U){return U&&U.__esModule?U:{default:U}};Object.defineProperty(e,"__esModule",{value:!0}),e.parseEmphemeralPayload=e.EIP_1654_SIGNED_ENTITY_VALIDATOR=e.ECDSA_EIP_1654_EPHEMERAL_VALIDATOR=e.ECDSA_PERSONAL_EPHEMERAL_VALIDATOR=e.ECDSA_SIGNED_ENTITY_VALIDATOR=e.SIGNER_VALIDATOR=e.Authenticator=e.createEthereumMessageHash=e.ERC1654_MAGIC_VALUE=e.VALID_SIGNATURE=void 0,e.validateSignature=b,e.isValidAuthChain=E,e.createEIP1271MessageHash=A,e.createSimpleAuthChain=g,e.createAuthChain=T,e.initializeAuthChain=H,e.signPayload=v,e.createSignature=k,e.ownerAddress=w,e.getEphemeralMessage=Y,e.getEphemeralSignatureType=X,e.getSignedIdentitySignatureType=B,e.parseEphemeralPayload=P,e.isValidEIP1271Signature=K;const s=n(Ra()),i=ag(),u=gg(),d=o(yg()),h=vg(),p=mf();e.VALID_SIGNATURE="VALID_SIGNATURE",e.ERC1654_MAGIC_VALUE="1626ba7e";const m=132;async function b(U,R,O,z=Date.now()){let Q="";if(!E(R))return{ok:!1,message:"ERROR: Malformed authChain"};for(const ie of R){const le=D(ie.type);try{const{nextAuthority:de}=await le(Q,ie,{provider:O,dateToValidateExpirationInMillis:z});Q=de||""}catch(de){const Re=de instanceof Error?de.message:String(de);return{ok:!1,message:`ERROR. Link type: ${ie.type}. ${Re}.`}}}const ce=Q===U;return{ok:ce,message:ce?void 0:`ERROR: Invalid final authority. Expected: ${U}. Current ${Q}.`}}function E(U){for(const[R,O]of U.entries())if(R===0&&O.type!==p.AuthLinkType.SIGNER||O.type===p.AuthLinkType.SIGNER&&R!==0)return!1;return!0}function A(U){return(0,s.hexToBytes)((0,s.sha3)((0,s.stringToUtf8Bytes)(U)))}function g(U,R,O){return[{type:p.AuthLinkType.SIGNER,payload:R,signature:""},{type:B(O),payload:U,signature:O}]}function T(U,R,O,z){const Q=(0,h.moveMinutes)(O),ce=Y(R.address,Q),ie=k(U,ce),le=k(R,z);return[{type:p.AuthLinkType.SIGNER,payload:U.address,signature:""},{type:p.AuthLinkType.ECDSA_PERSONAL_EPHEMERAL,payload:ce,signature:ie},{type:p.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY,payload:z,signature:le}]}async function H(U,R,O,z){const Q=(0,h.moveMinutes)(O),ce=Y(R.address,Q),ie=await z(ce),le=[{type:p.AuthLinkType.SIGNER,payload:U,signature:""},{type:X(ie),payload:ce,signature:ie}];return{ephemeralIdentity:R,expiration:Q,authChain:le}}function v(U,R){const O=k(U.ephemeralIdentity,R);return[...U.authChain,{type:p.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY,payload:R,signature:O}]}e.createEthereumMessageHash=u.createEthereumMessageHash;function k(U,R){return(0,u.ethSign)((0,s.hexToBytes)(U.privateKey),R)}function w(U){return U.length>0&&U[0].type===p.AuthLinkType.SIGNER?U[0].payload:"Invalid-Owner-Address"}function Y(U,R){return`Decentraland Login
|
|
39
|
-
Ephemeral address: ${U}
|
|
40
|
-
Expiration: ${R.toISOString()}`}e.Authenticator={validateSignature:b,isValidAuthChain:E,createEIP1271MessageHash:A,createSimpleAuthChain:g,createAuthChain:T,initializeAuthChain:H,signPayload:v,createEthereumMessageHash:e.createEthereumMessageHash,createSignature:k,ownerAddress:w,getEphemeralMessage:Y};const q=async(U,R)=>({nextAuthority:R.payload});e.SIGNER_VALIDATOR=q;const S=async(U,R)=>{if(!R.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'ECDSA_SIGNED_ENTITY_VALIDATOR'");const O=(0,u.recoverAddressFromEthSignature)(R.signature,R.payload),z=U.toLocaleLowerCase(),Q=O.toLocaleLowerCase();if(z===Q)return{nextAuthority:R.payload};throw new Error(`Invalid signer address. Expected: ${z}. Actual: ${Q}`)};e.ECDSA_SIGNED_ENTITY_VALIDATOR=S;const $=async(U,R,O)=>{if(!R.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'ECDSA_PERSONAL_EPHEMERAL_VALIDATOR'");const{message:z,ephemeralAddress:Q,expiration:ce}=P(R.payload),ie=(O==null?void 0:O.dateToValidateExpirationInMillis)||Date.now();if(ce>ie){const le=(0,u.recoverAddressFromEthSignature)(R.signature,z),de=U.toLocaleLowerCase(),Re=le.toLocaleLowerCase();if(de===Re)return{nextAuthority:Q};throw new Error(`Invalid signer address. Expected: ${de}. Actual: ${Re}`)}throw new Error(`Ephemeral key expired. Expiration: ${ce}. Test: ${ie}`)};e.ECDSA_PERSONAL_EPHEMERAL_VALIDATOR=$;const J=async(U,R,O)=>{if(!R.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'ECDSA_EIP_1654_EPHEMERAL_VALIDATOR'");const{message:z,ephemeralAddress:Q,expiration:ce}=P(R.payload),ie=(O==null?void 0:O.dateToValidateExpirationInMillis)||Date.now();if(ce>ie&&await Z(O==null?void 0:O.provider,U,z,R.signature,ie))return{nextAuthority:Q};throw new Error(`Ephemeral key expired. Expiration: ${ce}. Test: ${ie}`)};e.ECDSA_EIP_1654_EPHEMERAL_VALIDATOR=J;const W=async(U,R,O)=>{if(!R.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'EIP_1654_SIGNED_ENTITY_VALIDATOR'");if(!O)throw new Error("Missing validation options for 'EIP_1654_SIGNED_ENTITY_VALIDATOR'");if(await Z(O.provider,U,R.payload,R.signature,O.dateToValidateExpirationInMillis))return{nextAuthority:R.payload};throw new Error("Invalid validation")};e.EIP_1654_SIGNED_ENTITY_VALIDATOR=W;const ne=async(U,R)=>({error:"Error Validator."});function X(U){return U.length===m?p.AuthLinkType.ECDSA_PERSONAL_EPHEMERAL:p.AuthLinkType.ECDSA_EIP_1654_EPHEMERAL}function B(U){return U.length===m?p.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY:p.AuthLinkType.ECDSA_EIP_1654_SIGNED_ENTITY}function P(U){const R=U.replace(/\r/g,""),O=R.split(`
|
|
41
|
-
`),z="Ephemeral address: ",Q="Expiration: ";if(O.length<3||!O[1].startsWith(z)||!O[2].startsWith(Q))throw new Error(`Invalid ephemeral payload. Expected 3 lines with "${z}" on line 2 and "${Q}" on line 3.`);const ce=O[1].substring(z.length),ie=O[2].substring(Q.length),le=Date.parse(ie);if(Number.isNaN(le))throw new Error(`Invalid expiration date in ephemeral payload: "${ie}"`);return{message:R,ephemeralAddress:ce,expiration:le}}e.parseEmphemeralPayload=P;async function K(U,R,O,z){const Q=A(R),ce=(0,s.hexToBytes)(O);let ie;try{ie=(0,s.bytesToHex)(await U.isValidSignature(Q,ce,z))}catch{}if(ie===e.ERC1654_MAGIC_VALUE)return!0;const le=(0,u.createEthereumMessageHash)(R);try{ie=(0,s.bytesToHex)(await U.isValidSignature(le,ce,z))}catch{}return ie===e.ERC1654_MAGIC_VALUE}async function Z(U,R,O,z,Q){if(!U)throw new Error("Missing provider");const ce=new s.default(U),ie=await(0,i.SignatureValidator)(ce,R);let le=await K(ie,O,z);if(le)return!0;const de=new d.default(ce);try{const{block:Re}=await de.getDate(Q,!1);if(le=await K(ie,O,z,Re),le)return!0}catch(Re){const we=Re instanceof Error?Re.message:String(Re);throw new Error(`Invalid validation. Error: ${we}`)}throw new Error(`Invalid validation. Expected: ${e.ERC1654_MAGIC_VALUE}. Actual: ${le}`)}function D(U){switch(U){case p.AuthLinkType.SIGNER:return e.SIGNER_VALIDATOR;case p.AuthLinkType.ECDSA_PERSONAL_EPHEMERAL:return e.ECDSA_PERSONAL_EPHEMERAL_VALIDATOR;case p.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY:return e.ECDSA_SIGNED_ENTITY_VALIDATOR;case p.AuthLinkType.ECDSA_EIP_1654_EPHEMERAL:return e.ECDSA_EIP_1654_EPHEMERAL_VALIDATOR;case p.AuthLinkType.ECDSA_EIP_1654_SIGNED_ENTITY:return e.EIP_1654_SIGNED_ENTITY_VALIDATOR;default:return ne}}})(ur)),ur}var Dr={},a0;function bg(){return a0||(a0=1,Object.defineProperty(Dr,"__esModule",{value:!0}),Dr.AUTH_METADATA_HEADER=Dr.AUTH_TIMESTAMP_HEADER=Dr.AUTH_CHAIN_HEADER_PREFIX=void 0,Dr.AUTH_CHAIN_HEADER_PREFIX="x-identity-auth-chain-",Dr.AUTH_TIMESTAMP_HEADER="x-identity-timestamp",Dr.AUTH_METADATA_HEADER="x-identity-metadata"),Dr}var i0;function wg(){return i0||(i0=1,(function(e){var t=gn&&gn.__createBinding||(Object.create?(function(n,o,s,i){i===void 0&&(i=s);var u=Object.getOwnPropertyDescriptor(o,s);(!u||("get"in u?!o.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return o[s]}}),Object.defineProperty(n,i,u)}):(function(n,o,s,i){i===void 0&&(i=s),n[i]=o[s]})),r=gn&&gn.__exportStar||function(n,o){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(o,s)&&t(o,n,s)};Object.defineProperty(e,"__esModule",{value:!0}),r(gf(),e),r(bg(),e),r(mf(),e)})(gn)),gn}var _g=wg(),vn={},dr={},oa={exports:{}},sa={exports:{}},c0;function El(){return c0||(c0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){if(n==null)throw new TypeError("Expected a string but received a ".concat(n));if(n.constructor.name!=="String")throw new TypeError("Expected a string but received a ".concat(n.constructor.name))}e.exports=t.default,e.exports.default=t.default})(sa,sa.exports)),sa.exports}var aa={exports:{}},l0;function Eg(){return l0||(l0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function r(o){return Object.prototype.toString.call(o)==="[object RegExp]"}function n(o,s){for(var i=0;i<s.length;i++){var u=s[i];if(o===u||r(u)&&u.test(o))return!0}return!1}e.exports=t.default,e.exports.default=t.default})(aa,aa.exports)),aa.exports}var ia={exports:{}},u0;function xg(){return u0||(u0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(o,s){return o.indexOf(s)!==-1};t.default=r,e.exports=t.default,e.exports.default=t.default})(ia,ia.exports)),ia.exports}var ca={exports:{}},la={exports:{}},d0;function yf(){return d0||(d0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function r(o){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},r(o)}function n(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;(r(o)!=="object"||o===null)&&(o={});for(var i in s)typeof o[i]>"u"&&(o[i]=s[i]);return o}e.exports=t.default,e.exports.default=t.default})(la,la.exports)),la.exports}var f0;function Sg(){return f0||(f0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=o(El()),n=o(yf());function o(u){return u&&u.__esModule?u:{default:u}}var s={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function i(u,d){(0,r.default)(u),d=(0,n.default)(d,s),d.allow_trailing_dot&&u[u.length-1]==="."&&(u=u.substring(0,u.length-1)),d.allow_wildcard===!0&&u.indexOf("*.")===0&&(u=u.substring(2));var h=u.split("."),p=h[h.length-1];return d.require_tld&&(h.length<2||!d.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(p)||/\s/.test(p))||!d.allow_numeric_tld&&/^\d+$/.test(p)?!1:h.every(function(m){return!(m.length>63&&!d.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(m)||/[\uff01-\uff5e]/.test(m)||/^-|-$/.test(m)||!d.allow_underscores&&/_/.test(m))})}e.exports=t.default,e.exports.default=t.default})(ca,ca.exports)),ca.exports}var ua={exports:{}},h0;function Cg(){return h0||(h0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var r=n(El());function n(m){return m&&m.__esModule?m:{default:m}}function o(m){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},o(m)}var s="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",i="(".concat(s,"[.]){3}").concat(s),u=new RegExp("^".concat(i,"$")),d="(?:[0-9a-fA-F]{1,4})",h=new RegExp("^("+"(?:".concat(d,":){7}(?:").concat(d,"|:)|")+"(?:".concat(d,":){6}(?:").concat(i,"|:").concat(d,"|:)|")+"(?:".concat(d,":){5}(?::").concat(i,"|(:").concat(d,"){1,2}|:)|")+"(?:".concat(d,":){4}(?:(:").concat(d,"){0,1}:").concat(i,"|(:").concat(d,"){1,3}|:)|")+"(?:".concat(d,":){3}(?:(:").concat(d,"){0,2}:").concat(i,"|(:").concat(d,"){1,4}|:)|")+"(?:".concat(d,":){2}(?:(:").concat(d,"){0,3}:").concat(i,"|(:").concat(d,"){1,5}|:)|")+"(?:".concat(d,":){1}(?:(:").concat(d,"){0,4}:").concat(i,"|(:").concat(d,"){1,6}|:)|")+"(?::((?::".concat(d,"){0,5}:").concat(i,"|(?::").concat(d,"){1,7}|:))")+")(%[0-9a-zA-Z.]{1,})?$");function p(m){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,r.default)(m);var E=(o(b)==="object"?b.version:arguments[1])||"";return E?E.toString()==="4"?u.test(m):E.toString()==="6"?h.test(m):!1:p(m,{version:4})||p(m,{version:6})}e.exports=t.default,e.exports.default=t.default})(ua,ua.exports)),ua.exports}var p0;function Tg(){return p0||(p0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=H;var r=d(El()),n=d(Eg()),o=d(xg()),s=d(Sg()),i=d(Cg()),u=d(yf());function d(v){return v&&v.__esModule?v:{default:v}}function h(v,k){return A(v)||E(v,k)||m(v,k)||p()}function p(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
42
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m(v,k){if(v){if(typeof v=="string")return b(v,k);var w={}.toString.call(v).slice(8,-1);return w==="Object"&&v.constructor&&(w=v.constructor.name),w==="Map"||w==="Set"?Array.from(v):w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w)?b(v,k):void 0}}function b(v,k){(k==null||k>v.length)&&(k=v.length);for(var w=0,Y=Array(k);w<k;w++)Y[w]=v[w];return Y}function E(v,k){var w=v==null?null:typeof Symbol<"u"&&v[Symbol.iterator]||v["@@iterator"];if(w!=null){var Y,q,S,$,J=[],W=!0,ne=!1;try{if(S=(w=w.call(v)).next,k!==0)for(;!(W=(Y=S.call(w)).done)&&(J.push(Y.value),J.length!==k);W=!0);}catch(X){ne=!0,q=X}finally{try{if(!W&&w.return!=null&&($=w.return(),Object($)!==$))return}finally{if(ne)throw q}}return J}}function A(v){if(Array.isArray(v))return v}var g={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0,max_allowed_length:2084},T=/^\[([^\]]+)\](?::([0-9]+))?$/;function H(v,k){if((0,r.default)(v),!v||/[\s<>]/.test(v)||v.indexOf("mailto:")===0||(k=(0,u.default)(k,g),k.validate_length&&v.length>k.max_allowed_length)||!k.allow_fragments&&(0,o.default)(v,"#")||!k.allow_query_components&&((0,o.default)(v,"?")||(0,o.default)(v,"&")))return!1;var w,Y,q,S,$,J,W,ne;W=v.split("#"),v=W.shift(),W=v.split("?"),v=W.shift();var X=v.match(/^([a-z][a-z0-9+\-.]*):/i),B=!1,P=function(qe){return B=!0,w=qe.toLowerCase(),k.require_valid_protocol&&k.protocols.indexOf(w)===-1?!1:v.substring(X[0].length)};if(X){var K=X[1],Z=v.substring(X[0].length),D=Z.slice(0,2)==="//";if(D){if(v=P(K),v===!1)return!1}else{var U=Z.indexOf("/"),R=U===-1?Z:Z.substring(0,U),O=R.indexOf("@");if(O!==-1){var z=R.substring(0,O),Q=/^[a-zA-Z0-9\-_.%:]*$/,ce=Q.test(z),ie=/%[0-9a-fA-F]{2}/.test(z);if(ce&&!ie){if(k.require_protocol)return!1}else if(v=P(K),v===!1)return!1}else{var le=/^[0-9]/.test(Z);if(le){if(k.require_protocol)return!1}else if(v=P(K),v===!1)return!1}}}else if(k.require_protocol)return!1;if(v.slice(0,2)==="//"){if(!B&&!k.allow_protocol_relative_urls)return!1;v=v.slice(2)}if(v==="")return!1;if(W=v.split("/"),v=W.shift(),v===""&&!k.require_host)return!0;if(W=v.split("@"),W.length>1){if(k.disallow_auth||W[0]===""||(Y=W.shift(),Y.indexOf(":")>=0&&Y.split(":").length>2))return!1;var de=Y.split(":"),Re=h(de,2),we=Re[0],xe=Re[1];if(we===""&&xe==="")return!1}S=W.join("@"),J=null,ne=null;var ye=S.match(T);if(ye?(q="",ne=ye[1],J=ye[2]||null):(W=S.split(":"),q=W.shift(),W.length&&(J=W.join(":"))),J!==null&&J.length>0){if($=parseInt(J,10),!/^[0-9]+$/.test(J)||$<=0||$>65535)return!1}else if(k.require_port)return!1;return k.host_whitelist?(0,n.default)(q,k.host_whitelist):q===""&&!k.require_host?!0:!(!(0,i.default)(q)&&!(0,s.default)(q,k)&&(!ne||!(0,i.default)(ne,6))||(q=q||ne,k.host_blacklist&&(0,n.default)(q,k.host_blacklist)))}e.exports=t.default,e.exports.default=t.default})(oa,oa.exports)),oa.exports}var vi={},m0;function vf(){return m0||(m0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.localStorageClearIdentity=e.localStorageStoreIdentity=e.localStorageGetIdentity=e.createMessage=e.SINGLE_SIGN_ON_TARGET=e.Action=void 0;var t;(function(u){u.GET="get",u.STORE="store",u.CLEAR="clear",u.PING="ping"})(t||(e.Action=t={})),e.SINGLE_SIGN_ON_TARGET="single-sign-on";function r(u){return{target:e.SINGLE_SIGN_ON_TARGET,...u}}e.createMessage=r;function n(u){const d=localStorage.getItem(i(u));if(!d)return null;let h;try{h=JSON.parse(d)}catch{return s(u),null}return h.expiration=new Date(h.expiration),h.expiration.getTime()<=Date.now()?(s(u),null):h}e.localStorageGetIdentity=n;function o(u,d){new Date(d.expiration).getTime()>Date.now()&&localStorage.setItem(i(u),JSON.stringify(d))}e.localStorageStoreIdentity=o;function s(u){localStorage.removeItem(i(u))}e.localStorageClearIdentity=s;function i(u){if(!/^0x[a-fA-F0-9]{40}$/.test(u))throw new Error("User must be a valid ethereum address");return`single-sign-on-${u.toLowerCase()}`}})(vi)),vi}var g0;function Ag(){if(g0)return dr;g0=1,Object.defineProperty(dr,"__esModule",{value:!0}),dr.clearIdentity=dr.storeIdentity=dr.getIdentity=dr.init=void 0;const e=Tg(),t=vf(),r=t.SINGLE_SIGN_ON_TARGET,n=500,o=5;let s=0,i="";const u={protocols:["https"],require_protocol:!0};function d(T,H={}){if(!(0,e.default)(T,{...u,...H}))throw new Error(`Invalid url: ${T}`);if(i)throw new Error("Already initialized");const v=document.createElement("iframe");v.id=r,v.src=T,v.style.width="0",v.style.height="0",v.style.border="none",v.style.position="absolute",document.body.appendChild(v),i=T}dr.init=d;async function h(T){let H;try{H=(await E(await b(),t.Action.GET,{user:T})).identity??null}catch(v){g(v),H=(0,t.localStorageGetIdentity)(T)}return H}dr.getIdentity=h;async function p(T,H){try{await E(await b(),t.Action.STORE,{user:T,identity:H})}catch(v){g(v),(0,t.localStorageStoreIdentity)(T,H)}}dr.storeIdentity=p;async function m(T){try{await E(await b(),t.Action.CLEAR,{user:T})}catch(H){g(H),(0,t.localStorageClearIdentity)(T)}}dr.clearIdentity=m;async function b(){if(!i)throw new Error("Not initialized");for(let T=0;T<o;T++){const H=document.getElementById(r),v=H==null?void 0:H.contentWindow;if(!v){await A(n);continue}try{await E(v,t.Action.PING,{},n)}catch{continue}return v}throw new Error("Could not get iframe because it is not ready or cannot be communicated with")}async function E(T,H,v,k=0){s++;const w=s;let Y=null;const q=new Promise((S,$)=>{Y=({data:J})=>{!J||J.target!==t.SINGLE_SIGN_ON_TARGET||J.id!==w||(J.error?$(new Error(J.error)):S(J))},window.addEventListener("message",Y)});T.postMessage((0,t.createMessage)({id:w,action:H,...v}),i);try{return await(k?Promise.race([q,new Promise((S,$)=>setTimeout(()=>$(new Error("Did not receive a response in time")),k))]):q)}catch(S){throw S}finally{Y&&window.removeEventListener("message",Y)}}function A(T){return new Promise(H=>setTimeout(H,T))}function g(T){console.warn("Could not get identity from iframe, falling back to localStorage. Error:",T.message)}return dr}var y0;function Ig(){return y0||(y0=1,(function(e){var t=vn&&vn.__createBinding||(Object.create?(function(n,o,s,i){i===void 0&&(i=s);var u=Object.getOwnPropertyDescriptor(o,s);(!u||("get"in u?!o.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return o[s]}}),Object.defineProperty(n,i,u)}):(function(n,o,s,i){i===void 0&&(i=s),n[i]=o[s]})),r=vn&&vn.__exportStar||function(n,o){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(o,s)&&t(o,n,s)};Object.defineProperty(e,"__esModule",{value:!0}),r(Ag(),e),r(vf(),e)})(vn)),vn}var Zc=Ig();function kg(e){const{host:t}=e;return t.endsWith(".org")||t.endsWith(".co")?Pr.PRODUCTION:t.endsWith(".today")||t.endsWith(".net")?Pr.STAGING:t.endsWith(".io")||t.endsWith(".zone")?Pr.DEVELOPMENT:null}function Rg(e){const t=new URLSearchParams(e.search),r=t.get("ENV")||t.get("env");if(r){const n=r.toLowerCase();if(wf(n))return n}return null}var v0={},Pr;(function(e){e.DEVELOPMENT="dev",e.STAGING="stg",e.PRODUCTION="prod"})(Pr||(Pr={}));function bf(){return Object.values(Pr)}function wf(e){return bf().includes(e)}function da(e){if(wf(e))return e;throw new Error(`Invalid value for DCL_DEFAULT_ENV. Found "${e}", possible values are ${bf().map(t=>`"${t}"`).join(", ")}.`)}function Pg(e={}){const{DCL_DEFAULT_ENV:t,REACT_APP_DCL_DEFAULT_ENV:r,VITE_DCL_DEFAULT_ENV:n,GATSBY_DCL_DEFAULT_ENV:o}=e;if(t&&r&&t!==r)throw new Error("You have defined both DCL_DEFAULT_ENV and REACT_APP_DCL_DEFAULT_ENV with different values");if(t&&n&&t!==n)throw new Error("You have defined both DCL_DEFAULT_ENV and VITE_DCL_DEFAULT_ENV with different values");if(t&&o&&t!==o)throw new Error("You have defined both DCL_DEFAULT_ENV and GATSBY_DCL_DEFAULT_ENV with different values");if(r&&o&&r!==o)throw new Error("You have defined both REACT_APP_DCL_DEFAULT_ENV and GATSBY_DCL_DEFAULT_ENV with different values");return t?da(t):r?da(r):n?da(n):o?da(o):Pr.PRODUCTION}function Ng(e){if(typeof window<"u"){const r=Rg(window.location);if(r)return r;const n=kg(window.location);if(n)return n}return Pg(typeof e>"u"&&typeof pa=="object"&&typeof v0=="object"?v0:e)}function Og(e,t){const r=Ng(t==null?void 0:t.systemEnvVariables),n=e[r];return{get:(o,s="")=>{if(!n)throw new Error(`Could not find a config for env=${r}`);return o in n?n[o]:s},is:o=>r===o,getEnv:()=>r}}const jg="development",Lg="80002",Bg="https://marketplace-api.decentraland.zone",Mg="https://marketplace-api.decentraland.zone",Fg="/auth",$g="https://rpc.decentraland.org/amoy",Dg="https://credits.decentraland.zone",qg="https://builder-api.decentraland.zone",Ug="https://peer.decentraland.zone",Vg="https://decentraland.zone/profile",Hg="",zg="pk_test_51TtW4PBS62I2c52AfO6XxarHwrACg9Zbacgeai73klSZbUleKajNN9gkSwRSlwCZHfWrdKZQyVhH0komsYEDB5ub00j4pzRj4c",Gg="",Wg="",Zg={ENVIRONMENT:jg,CHAIN_ID:Lg,MARKETPLACE_SERVER_URL:Bg,NFT_API_URL:Mg,AUTH_URL:Fg,RPC_URL:$g,CREDITS_SERVER_URL:Dg,BUILDER_SERVER_URL:qg,PEER_URL:Ug,PROFILE_URL:Vg,SHOP_SERVER_URL:Hg,STRIPE_PUBLISHABLE_KEY:zg,SEGMENT_WRITE_KEY:Gg,SENTRY_DSN:Wg},Kg="staging",Yg="80002",Qg="https://marketplace-api.decentraland.zone",Jg="https://marketplace-api.decentraland.zone",Xg="/auth",ey="https://rpc.decentraland.org/amoy",ty="https://credits.decentraland.zone",ry="https://builder-api.decentraland.zone",ny="https://peer.decentraland.zone",oy="https://decentraland.zone/profile",sy="",ay="pk_test_51TtW4PBS62I2c52AfO6XxarHwrACg9Zbacgeai73klSZbUleKajNN9gkSwRSlwCZHfWrdKZQyVhH0komsYEDB5ub00j4pzRj4c",iy="",cy="",ly={ENVIRONMENT:Kg,CHAIN_ID:Yg,MARKETPLACE_SERVER_URL:Qg,NFT_API_URL:Jg,AUTH_URL:Xg,RPC_URL:ey,CREDITS_SERVER_URL:ty,BUILDER_SERVER_URL:ry,PEER_URL:ny,PROFILE_URL:oy,SHOP_SERVER_URL:sy,STRIPE_PUBLISHABLE_KEY:ay,SEGMENT_WRITE_KEY:iy,SENTRY_DSN:cy},uy="production",dy="137",fy="https://marketplace-api.decentraland.org",hy="https://marketplace-api.decentraland.org",py="/auth",my="https://rpc.decentraland.org/polygon",gy="https://credits.decentraland.org",yy="https://builder-api.decentraland.org",vy="https://peer.decentraland.org",by="https://decentraland.org/profile",wy="",_y="",Ey="",xy="",Sy={ENVIRONMENT:uy,CHAIN_ID:dy,MARKETPLACE_SERVER_URL:fy,NFT_API_URL:hy,AUTH_URL:py,RPC_URL:my,CREDITS_SERVER_URL:gy,BUILDER_SERVER_URL:yy,PEER_URL:vy,PROFILE_URL:by,SHOP_SERVER_URL:wy,STRIPE_PUBLISHABLE_KEY:_y,SEGMENT_WRITE_KEY:Ey,SENTRY_DSN:xy},Cy={},Wt=Og({[Pr.DEVELOPMENT]:Zg,[Pr.STAGING]:ly,[Pr.PRODUCTION]:Sy},{systemEnvVariables:{VITE_DCL_DEFAULT_ENV:"dev"}}),At=Cy,Ze={marketplaceServerUrl:At.VITE_MARKETPLACE_SERVER_URL??Wt.get("MARKETPLACE_SERVER_URL"),nftApiUrl:At.VITE_NFT_API_URL??Wt.get("NFT_API_URL"),chainId:Number(At.VITE_CHAIN_ID??Wt.get("CHAIN_ID")),authUrl:At.VITE_AUTH_URL??Wt.get("AUTH_URL"),rpcUrl:At.VITE_RPC_URL??Wt.get("RPC_URL"),creditsServerUrl:At.VITE_CREDITS_SERVER_URL??Wt.get("CREDITS_SERVER_URL"),builderServerUrl:At.VITE_BUILDER_SERVER_URL??Wt.get("BUILDER_SERVER_URL"),peerUrl:At.VITE_PEER_URL??Wt.get("PEER_URL"),profileUrl:At.VITE_PROFILE_URL??Wt.get("PROFILE_URL"),shopServerUrl:At.VITE_SHOP_SERVER_URL??Wt.get("SHOP_SERVER_URL"),stripePublishableKey:At.VITE_STRIPE_PK??Wt.get("STRIPE_PUBLISHABLE_KEY"),segmentWriteKey:At.VITE_SEGMENT_WRITE_KEY??Wt.get("SEGMENT_WRITE_KEY"),sentryDsn:At.VITE_SENTRY_DSN??Wt.get("SENTRY_DSN"),sentryEnvironment:At.VITE_SENTRY_ENVIRONMENT??(Number(At.VITE_CHAIN_ID??Wt.get("CHAIN_ID"))===80002?"dev":"prod"),sentryRelease:At.VITE_SENTRY_RELEASE??`shop@${At.VITE_APP_VERSION??"0.0.0-dev"}`},Ty=744*60;async function _f(){return(await xt(async()=>{const{connection:e}=await import("./index-CkezkMvS.js").then(t=>t.i);return{connection:e}},__vite__mapDeps([9,2,1,10]))).connection}async function Ay(e){if(!e.account)throw new Error("No account returned by the wallet");const t=e.account.toLowerCase(),r=new Jh(e.provider),n=r.getSigner();let o=Zc.localStorageGetIdentity(t);if(!o){const s=Xh.createRandom();o=await _g.Authenticator.initializeAuthChain(t,{address:s.address,publicKey:uu(s.publicKey),privateKey:uu(s.privateKey)},Ty,i=>n.signMessage(i)),Zc.localStorageStoreIdentity(t,o)}return{address:t,chainId:e.chainId,signer:n,web3Provider:r,identity:o,providerType:e.providerType}}function Iy(){const e=encodeURIComponent(window.location.href);window.location.replace(`${Ze.authUrl}/login?redirectTo=${e}`)}async function ky(){try{const t=await(await _f()).tryPreviousConnection();return!t.account||!Zc.localStorageGetIdentity(t.account.toLowerCase())?null:await Ay(t)}catch{return null}}async function Ry(){try{await(await _f()).disconnect()}catch{}}const Py=typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`s-${String(performance.now())}`,Ny=Ze.chainId===80002?"amoy":"polygon",Oy=Ze.chainId===80002?"dev":"prod";function xl(){return window.analytics}function jy(){let e;try{e=bo.getState().session}catch{e=null}return{address:(e==null?void 0:e.address)??null,is_signed_in:!!e,session_id:Py,network:Ny,app_env:Oy}}function pr(e,t={}){const r={...jy(),...t},n=xl();n&&n.track(e,r)}function Ly(e,t={}){const r=xl();r&&r.identify(e.toLowerCase(),t)}function By(){const e=xl();e!=null&&e.reset&&e.reset()}function My(e){pr("Shop Viewed Page",{page:e})}function b0(e){return e===nr.ProviderType.MAGIC||e===nr.ProviderType.MAGIC_TEST?"magic":"wallet"}function Fy(e){const t=`shop:seen:${e.toLowerCase()}`;try{return localStorage.getItem(t)?!1:(localStorage.setItem(t,"1"),!0)}catch{return!1}}function Wo(e){return Math.round(e*10)/100}function Sl(e){return!e.tokenId}function Y6(e){return{item_id:e.itemId??null,contract_address:e.contractAddress,token_id:e.tokenId??null,trade_id:e.tradeId??null,price_credits:e.priceCredits,price_usd:Wo(e.priceCredits),rarity:e.rarity,creator:e.creator||null,is_primary:Sl(e)}}function Q6(e){const t=e.reduce((n,o)=>n+o.priceCredits,0),r=e.some(Sl);return{items:e.map(n=>({item_id:n.itemId??null,contract_address:n.contractAddress,token_id:n.tokenId??null,price_usd:Wo(n.priceCredits)})),value_credits:t,value_usd:Wo(t),purchase_type:r?"item":"nft_resale",is_primary:r}}function $y(e){const t=e;if((t==null?void 0:t.code)===4001)return"user_rejected";const r=((t==null?void 0:t.message)??"").toLowerCase();return r.includes("reject")||r.includes("denied")||r.includes("cancel")?"user_rejected":r.includes("insufficient")?"insufficient_credits":r.includes("not for sale")||r.includes("no active listing")||r.includes("sold")?"not_for_sale":"unknown"}function J6(e){return $y(e)==="user_rejected"}function Dy(e){const t=window;if(t.analytics&&t.analytics.invoked)return;const r=t.analytics||[];r.invoked=!0,r.methods=["track","identify","page","group","alias","ready","on","once","off","reset","setAnonymousId"],r.factory=n=>(...o)=>(r.push([n,...o]),r);for(const n of r.methods)r[n]=r.factory(n);r.load=n=>{const o=document.createElement("script");o.async=!0,o.src=`https://cdn.segment.com/analytics.js/v1/${encodeURIComponent(n)}/analytics.min.js`,document.head.appendChild(o)},t.analytics=r,r.load(e),r.page()}let w0=!1;function qy(){if(w0)return;w0=!0;const e=Ze.segmentWriteKey;e&&Dy(e)}let Kc=null;function Uy(e){Kc=e}function _0(e,t={}){const r=typeof t.flow=="string"?`error in ${t.flow}`:"error";if(console.error(`[shop] ${r}`,e,t),Kc)try{Kc(e,t)}catch{}}const Vy=/0x[a-fA-F0-9]{130}\b/g,Hy=/0x[a-fA-F0-9]{64}\b/g,zy=/(sk_[a-z]+_[A-Za-z0-9]+|pi_[A-Za-z0-9]+_secret_[A-Za-z0-9]+|[A-Za-z0-9-]*secret[A-Za-z0-9-]*)/gi,Gy=/(signature|private|identity|authchain|auth_chain|ephemeral|token|secret|password|cookie|authorization)/i;function Ro(e){return e.replace(Vy,"<signature>").replace(zy,"<secret>").replace(Hy,"<hex32>")}function Wy(e){var r;e.message&&(e.message=Ro(e.message));for(const n of((r=e.exception)==null?void 0:r.values)??[])n.value&&(n.value=Ro(n.value));for(const n of e.breadcrumbs??[])n.message&&(n.message=Ro(n.message));e.request&&(e.request.url&&(e.request.url=Ro(e.request.url)),delete e.request.cookies,delete e.request.headers);const t=n=>{if(n)for(const o of Object.keys(n)){if(Gy.test(o)){delete n[o];continue}typeof n[o]=="string"&&(n[o]=Ro(n[o]))}};return t(e.tags),t(e.extra),e}let E0=!1;function Zy(){if(E0)return;const e=Ze.sentryDsn;if(!e)return;E0=!0,Zh({dsn:e,environment:Ze.sentryEnvironment,release:Ze.sentryRelease,integrations:[new Kh],tracesSampleRate:.01,sendDefaultPii:!1,ignoreErrors:[/user rejected/i,/user denied/i,"ResizeObserver loop limit exceeded"],beforeSend:Wy});const t=Ky();t&&Yh({id:t}),Uy((r,n)=>Qh(r,{extra:n}))}function Ky(){var e;try{return((e=bo.getState().session)==null?void 0:e.address)??null}catch{return null}}const x0="shop-favorites";let va=null;const Ef=e=>e?`${x0}:${e.toLowerCase()}`:x0;function S0(e){var t;try{const r=localStorage.getItem(Ef(e));if(!r)return{};const n=JSON.parse(r);if(!n||typeof n!="object")return{};const o=n,s="state"in n&&((t=o.state)!=null&&t.items)?o.state.items:n;return s&&typeof s=="object"?s:{}}catch{return{}}}function C0(e){try{localStorage.setItem(Ef(va),JSON.stringify(e))}catch{}}const Ea=jn(e=>({items:S0(va),toggle:t=>e(r=>{const n={...r.items};return n[t.id]?delete n[t.id]:n[t.id]=t,C0(n),{items:n}}),remove:t=>e(r=>{const n={...r.items};return delete n[t],C0(n),{items:n}}),reloadFor:t=>{va=t?t.toLowerCase():null,e({items:S0(va)})}})),T0="shop:followed-creators:v1",Yy=200;let Cl=null;const xf=e=>e?`${T0}:${e.toLowerCase()}`:T0;function A0(){try{const e=localStorage.getItem(xf(Cl));if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(r=>typeof r=="string"):[]}catch{return[]}}function I0(e){try{localStorage.setItem(xf(Cl),JSON.stringify(e))}catch{}}const Yc=jn((e,t)=>({followed:A0(),isFollowing:r=>t().followed.includes(r.toLowerCase()),follow:r=>{const n=r.toLowerCase();if(!n||t().followed.includes(n))return;const o=[n,...t().followed].slice(0,Yy);I0(o),e({followed:o}),pr("Shop Followed Creator",{creator_address:n,following_count:o.length})},unfollow:r=>{const n=r.toLowerCase();if(!t().followed.includes(n))return;const o=t().followed.filter(s=>s!==n);I0(o),e({followed:o}),pr("Shop Unfollowed Creator",{creator_address:n,following_count:o.length})},toggle:r=>t().isFollowing(r)?t().unfollow(r):t().follow(r),reloadFor:r=>{Cl=r?r.toLowerCase():null,e({followed:A0()})}})),bi="shop:signing_in",bo=jn(e=>({session:null,connecting:!1,error:null,signIn:()=>{try{sessionStorage.setItem(bi,"1")}catch{}Iy()},disconnect:async()=>{pr("Shop Signed Out");try{await Ry()}catch(t){_0(t,{flow:"wallet",step:"disconnect"})}By(),Ea.getState().reloadFor(null),Yc.getState().reloadFor(null),e({session:null})},restore:async()=>{let t;try{t=await ky()}catch(n){_0(n,{flow:"wallet",step:"restore"});return}if(!t)return;e({session:t}),Ea.getState().reloadFor(t.address),Yc.getState().reloadFor(t.address),Ly(t.address,{sign_in_method:b0(t.providerType)});let r=!1;try{r=sessionStorage.getItem(bi)==="1",r&&sessionStorage.removeItem(bi)}catch{}r&&pr("Shop Signed In",{method:b0(t.providerType),is_new_user:Fy(t.address)})}}));async function Sf(e){var n;const t=await fetch(`${Ze.peerUrl}/lambdas/profiles/${e.toLowerCase()}`);if(!t.ok)return;const r=await t.json();return(n=r==null?void 0:r.avatars)==null?void 0:n[0]}function Na(e){return Gr({queryKey:["profile",e],enabled:!!e,staleTime:5*6e4,queryFn:()=>Sf(e)})}var qr={},wi={},k0;function Cf(){return k0||(k0=1,Object.defineProperty(wi,"__esModule",{value:!0})),wi}var Ur={},xr={},Vn={},bn={},R0={},Po,P0;function mr(){if(P0)return Po;P0=1;var e=function(t){return t&&t.Math===Math&&t};return Po=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof kc=="object"&&kc)||e(typeof Po=="object"&&Po)||(function(){return this})()||Function("return this")(),Po}var _i,N0;function Ln(){return N0||(N0=1,_i=function(e){try{return!!e()}catch{return!0}}),_i}var Ei,O0;function Oa(){if(O0)return Ei;O0=1;var e=Ln();return Ei=!e(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),Ei}var xi,j0;function Qy(){if(j0)return xi;j0=1;var e=Oa(),t=Function.prototype,r=t.apply,n=t.call;return xi=typeof Reflect=="object"&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),xi}var Si,L0;function wo(){if(L0)return Si;L0=1;var e=Oa(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return Si=e?n:function(o){return function(){return r.apply(o,arguments)}},Si}var Ci,B0;function Tf(){if(B0)return Ci;B0=1;var e=wo(),t=e({}.toString),r=e("".slice);return Ci=function(n){return r(t(n),8,-1)},Ci}var Ti,M0;function Af(){if(M0)return Ti;M0=1;var e=Tf(),t=wo();return Ti=function(r){if(e(r)==="Function")return t(r)},Ti}var Ai,F0;function Bn(){if(F0)return Ai;F0=1;var e=typeof document=="object"&&document.all;return Ai=typeof e>"u"&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"},Ai}var Ii={},ki,$0;function as(){if($0)return ki;$0=1;var e=Ln();return ki=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),ki}var Ri,D0;function Tl(){if(D0)return Ri;D0=1;var e=Oa(),t=Function.prototype.call;return Ri=e?t.bind(t):function(){return t.apply(t,arguments)},Ri}var Pi={},q0;function Jy(){if(q0)return Pi;q0=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return Pi.f=r?function(o){var s=t(this,o);return!!s&&s.enumerable}:e,Pi}var Ni,U0;function If(){return U0||(U0=1,Ni=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}),Ni}var Oi,V0;function Xy(){if(V0)return Oi;V0=1;var e=wo(),t=Ln(),r=Tf(),n=Object,o=e("".split);return Oi=t(function(){return!n("z").propertyIsEnumerable(0)})?function(s){return r(s)==="String"?o(s,""):n(s)}:n,Oi}var ji,H0;function kf(){return H0||(H0=1,ji=function(e){return e==null}),ji}var Li,z0;function Rf(){if(z0)return Li;z0=1;var e=kf(),t=TypeError;return Li=function(r){if(e(r))throw new t("Can't call method on "+r);return r},Li}var Bi,G0;function ev(){if(G0)return Bi;G0=1;var e=Xy(),t=Rf();return Bi=function(r){return e(t(r))},Bi}var Mi,W0;function ja(){if(W0)return Mi;W0=1;var e=Bn();return Mi=function(t){return typeof t=="object"?t!==null:e(t)},Mi}var Fi,Z0;function Pf(){return Z0||(Z0=1,Fi={}),Fi}var $i,K0;function tv(){if(K0)return $i;K0=1;var e=Pf(),t=mr(),r=Bn(),n=function(o){return r(o)?o:void 0};return $i=function(o,s){return arguments.length<2?n(e[o])||n(t[o]):e[o]&&e[o][s]||t[o]&&t[o][s]},$i}var Di,Y0;function rv(){if(Y0)return Di;Y0=1;var e=wo();return Di=e({}.isPrototypeOf),Di}var qi,Q0;function nv(){if(Q0)return qi;Q0=1;var e=mr(),t=e.navigator,r=t&&t.userAgent;return qi=r?String(r):"",qi}var Ui,J0;function ov(){if(J0)return Ui;J0=1;var e=mr(),t=nv(),r=e.process,n=e.Deno,o=r&&r.versions||n&&n.version,s=o&&o.v8,i,u;return s&&(i=s.split("."),u=i[0]>0&&i[0]<4?1:+(i[0]+i[1])),!u&&t&&(i=t.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=t.match(/Chrome\/(\d+)/),i&&(u=+i[1]))),Ui=u,Ui}var Vi,X0;function Nf(){if(X0)return Vi;X0=1;var e=ov(),t=Ln(),r=mr(),n=r.String;return Vi=!!Object.getOwnPropertySymbols&&!t(function(){var o=Symbol("symbol detection");return!n(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&e&&e<41}),Vi}var Hi,ed;function Of(){if(ed)return Hi;ed=1;var e=Nf();return Hi=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Hi}var zi,td;function jf(){if(td)return zi;td=1;var e=tv(),t=Bn(),r=rv(),n=Of(),o=Object;return zi=n?function(s){return typeof s=="symbol"}:function(s){var i=e("Symbol");return t(i)&&r(i.prototype,o(s))},zi}var Gi,rd;function sv(){if(rd)return Gi;rd=1;var e=String;return Gi=function(t){try{return e(t)}catch{return"Object"}},Gi}var Wi,nd;function Lf(){if(nd)return Wi;nd=1;var e=Bn(),t=sv(),r=TypeError;return Wi=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")},Wi}var Zi,od;function av(){if(od)return Zi;od=1;var e=Lf(),t=kf();return Zi=function(r,n){var o=r[n];return t(o)?void 0:e(o)},Zi}var Ki,sd;function iv(){if(sd)return Ki;sd=1;var e=Tl(),t=Bn(),r=ja(),n=TypeError;return Ki=function(o,s){var i,u;if(s==="string"&&t(i=o.toString)&&!r(u=e(i,o))||t(i=o.valueOf)&&!r(u=e(i,o))||s!=="string"&&t(i=o.toString)&&!r(u=e(i,o)))return u;throw new n("Can't convert object to primitive value")},Ki}var Yi={exports:{}},Qi,ad;function cv(){return ad||(ad=1,Qi=!0),Qi}var Ji,id;function lv(){if(id)return Ji;id=1;var e=mr(),t=Object.defineProperty;return Ji=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch{e[r]=n}return n},Ji}var cd;function uv(){if(cd)return Yi.exports;cd=1;var e=cv(),t=mr(),r=lv(),n="__core-js_shared__",o=Yi.exports=t[n]||r(n,{});return(o.versions||(o.versions=[])).push({version:"3.49.0",mode:e?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Yi.exports}var Xi,ld;function dv(){if(ld)return Xi;ld=1;var e=uv();return Xi=function(t,r){return e[t]||(e[t]=r||{})},Xi}var ec,ud;function fv(){if(ud)return ec;ud=1;var e=Rf(),t=Object;return ec=function(r){return t(e(r))},ec}var tc,dd;function Al(){if(dd)return tc;dd=1;var e=wo(),t=fv(),r=e({}.hasOwnProperty);return tc=Object.hasOwn||function(o,s){return r(t(o),s)},tc}var rc,fd;function hv(){if(fd)return rc;fd=1;var e=wo(),t=0,r=Math.random(),n=e(1.1.toString);return rc=function(o){return"Symbol("+(o===void 0?"":o)+")_"+n(++t+r,36)},rc}var nc,hd;function pv(){if(hd)return nc;hd=1;var e=mr(),t=dv(),r=Al(),n=hv(),o=Nf(),s=Of(),i=e.Symbol,u=t("wks"),d=s?i.for||i:i&&i.withoutSetter||n;return nc=function(h){return r(u,h)||(u[h]=o&&r(i,h)?i[h]:d("Symbol."+h)),u[h]},nc}var oc,pd;function mv(){if(pd)return oc;pd=1;var e=Tl(),t=ja(),r=jf(),n=av(),o=iv(),s=pv(),i=TypeError,u=s("toPrimitive");return oc=function(d,h){if(!t(d)||r(d))return d;var p=n(d,u),m;if(p){if(h===void 0&&(h="default"),m=e(p,d,h),!t(m)||r(m))return m;throw new i("Can't convert object to primitive value")}return h===void 0&&(h="number"),o(d,h)},oc}var sc,md;function Bf(){if(md)return sc;md=1;var e=mv(),t=jf();return sc=function(r){var n=e(r,"string");return t(n)?n:n+""},sc}var ac,gd;function gv(){if(gd)return ac;gd=1;var e=mr(),t=ja(),r=e.document,n=t(r)&&t(r.createElement);return ac=function(o){return n?r.createElement(o):{}},ac}var ic,yd;function Mf(){if(yd)return ic;yd=1;var e=as(),t=Ln(),r=gv();return ic=!e&&!t(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),ic}var vd;function yv(){if(vd)return Ii;vd=1;var e=as(),t=Tl(),r=Jy(),n=If(),o=ev(),s=Bf(),i=Al(),u=Mf(),d=Object.getOwnPropertyDescriptor;return Ii.f=e?d:function(p,m){if(p=o(p),m=s(m),u)try{return d(p,m)}catch{}if(i(p,m))return n(!t(r.f,p,m),p[m])},Ii}var cc,bd;function vv(){if(bd)return cc;bd=1;var e=Ln(),t=Bn(),r=/#|\.prototype\./,n=function(d,h){var p=s[o(d)];return p===u?!0:p===i?!1:t(h)?e(h):!!h},o=n.normalize=function(d){return String(d).replace(r,".").toLowerCase()},s=n.data={},i=n.NATIVE="N",u=n.POLYFILL="P";return cc=n,cc}var lc,wd;function bv(){if(wd)return lc;wd=1;var e=Af(),t=Lf(),r=Oa(),n=e(e.bind);return lc=function(o,s){return t(o),s===void 0?o:r?n(o,s):function(){return o.apply(s,arguments)}},lc}var uc={},dc,_d;function wv(){if(_d)return dc;_d=1;var e=as(),t=Ln();return dc=e&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),dc}var fc,Ed;function _v(){if(Ed)return fc;Ed=1;var e=ja(),t=String,r=TypeError;return fc=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")},fc}var xd;function Ev(){if(xd)return uc;xd=1;var e=as(),t=Mf(),r=wv(),n=_v(),o=Bf(),s=TypeError,i=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",p="writable";return uc.f=e?r?function(b,E,A){if(n(b),E=o(E),n(A),typeof b=="function"&&E==="prototype"&&"value"in A&&p in A&&!A[p]){var g=u(b,E);g&&g[p]&&(b[E]=A.value,A={configurable:h in A?A[h]:g[h],enumerable:d in A?A[d]:g[d],writable:!1})}return i(b,E,A)}:i:function(b,E,A){if(n(b),E=o(E),n(A),t)try{return i(b,E,A)}catch{}if("get"in A||"set"in A)throw new s("Accessors not supported");return"value"in A&&(b[E]=A.value),b},uc}var hc,Sd;function xv(){if(Sd)return hc;Sd=1;var e=as(),t=Ev(),r=If();return hc=e?function(n,o,s){return t.f(n,o,r(1,s))}:function(n,o,s){return n[o]=s,n},hc}var pc,Cd;function Sv(){if(Cd)return pc;Cd=1;var e=mr(),t=Qy(),r=Af(),n=Bn(),o=yv().f,s=vv(),i=Pf(),u=bv(),d=xv(),h=Al(),p=function(m){var b=function(E,A,g){if(this instanceof b){switch(arguments.length){case 0:return new m;case 1:return new m(E);case 2:return new m(E,A)}return new m(E,A,g)}return t(m,this,arguments)};return b.prototype=m.prototype,b};return pc=function(m,b){var E=m.target,A=m.global,g=m.stat,T=m.proto,H=A?e:g?e[E]:e[E]&&e[E].prototype,v=A?i:i[E]||d(i,E,{})[E],k=v.prototype,w,Y,q,S,$,J,W,ne,X;for(S in b)w=s(A?S:E+(g?".":"#")+S,m.forced),Y=!w&&H&&h(H,S),J=v[S],Y&&(m.dontCallGetSet?(X=o(H,S),W=X&&X.value):W=H[S]),$=Y&&W?W:b[S],!(!w&&!T&&typeof J==typeof $)&&(m.bind&&Y?ne=u($,e):m.wrap&&Y?ne=p($):T&&n($)?ne=r($):ne=$,(m.sham||$&&$.sham||J&&J.sham)&&d(ne,"sham",!0),d(v,S,ne),T&&(q=E+"Prototype",h(i,q)||d(i,q,{}),d(i[q],S,$),m.real&&k&&(w||!k[S])&&d(k,S,$)))},pc}var Td;function Cv(){if(Td)return R0;Td=1;var e=Sv(),t=mr();return e({global:!0,forced:t.globalThis!==t},{globalThis:t}),R0}var mc,Ad;function Tv(){return Ad||(Ad=1,Cv(),mc=mr()),mc}var gc,Id;function Av(){if(Id)return gc;Id=1;var e=Tv();return gc=e,gc}var kd;function Ff(){if(kd)return bn;kd=1;var e=bn&&bn.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(bn,"__esModule",{value:!0}),bn.getImplementation=void 0;var t=e(Av());function r(n,o){var s,i=(s=n[o])!==null&&s!==void 0?s:t.default[o];if(!i)throw new ReferenceError('"'+o+'" is not defined');return i}return bn.getImplementation=r,bn}var Rd;function $f(){if(Rd)return Vn;Rd=1;var e=Vn&&Vn.__values||function(u){var d=typeof Symbol=="function"&&Symbol.iterator,h=d&&u[d],p=0;if(h)return h.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&p>=u.length&&(u=void 0),{value:u&&u[p++],done:!u}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Vn,"__esModule",{value:!0});var t=gf(),r=Ff(),n="x-identity-auth-chain-",o="x-identity-timestamp",s="x-identity-metadata";function i(u){u===void 0&&(u={});var d=(0,r.getImplementation)(u,"Headers");return function(p,m,b,E,A){var g,T,H=new d(A),v=String(Date.now()),k=JSON.stringify(E),w=[m,b,v,k].join(":").toLowerCase(),Y=0,q=t.Authenticator.signPayload(p,w);try{for(var S=e(q),$=S.next();!$.done;$=S.next()){var J=$.value;H.set(n+Y,JSON.stringify(J)),Y++}}catch(W){g={error:W}}finally{try{$&&!$.done&&(T=S.return)&&T.call(S)}finally{if(g)throw g.error}}return H.set(o,v),H.set(s,k),H}}return Vn.default=i,Vn}var Pd;function Df(){if(Pd)return xr;Pd=1;var e=xr&&xr.__assign||function(){return e=Object.assign||function(i){for(var u,d=1,h=arguments.length;d<h;d++){u=arguments[d];for(var p in u)Object.prototype.hasOwnProperty.call(u,p)&&(i[p]=u[p])}return i},e.apply(this,arguments)},t=xr&&xr.__rest||function(i,u){var d={};for(var h in i)Object.prototype.hasOwnProperty.call(i,h)&&u.indexOf(h)<0&&(d[h]=i[h]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,h=Object.getOwnPropertySymbols(i);p<h.length;p++)u.indexOf(h[p])<0&&Object.prototype.propertyIsEnumerable.call(i,h[p])&&(d[h[p]]=i[h[p]]);return d},r=xr&&xr.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(xr,"__esModule",{value:!0});var n=r($f()),o=Ff();function s(i){i===void 0&&(i={});var u=(0,n.default)(i),d=(0,o.getImplementation)(i,"URL"),h=(0,o.getImplementation)(i,"Request"),p=(0,o.getImplementation)(i,"fetch");return function(b,E){if(E&&E.identity){var A=E.identity,g=E.metadata,T=t(E,["identity","metadata"]);if(typeof b=="string"||b instanceof d||globalThis.URL&&b instanceof globalThis.URL){var H=typeof b=="string"?new d(b):b,v=new h(H.toString(),e(e({},T),{headers:u(A,E.method||"GET",H.pathname,g||{},T==null?void 0:T.headers)}));return p(v)}var k=new d(b.url),w=new h(b),Y=u(A,b.method||"GET",k.pathname,g||{});return Y.forEach(function(q,S){w.headers.set(S,q)}),p(w)}return p(b,E)}}return xr.default=s,xr}var Nd;function Iv(){return Nd||(Nd=1,(function(e){var t=Ur&&Ur.__createBinding||(Object.create?(function(i,u,d,h){h===void 0&&(h=d),Object.defineProperty(i,h,{enumerable:!0,get:function(){return u[d]}})}):(function(i,u,d,h){h===void 0&&(h=d),i[h]=u[d]})),r=Ur&&Ur.__exportStar||function(i,u){for(var d in i)d!=="default"&&!Object.prototype.hasOwnProperty.call(u,d)&&t(u,i,d)},n=Ur&&Ur.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.signedHeaderFactory=e.signedFetchFactory=void 0,r(Cf(),e);var o=Df();Object.defineProperty(e,"signedFetchFactory",{enumerable:!0,get:function(){return n(o).default}});var s=$f();Object.defineProperty(e,"signedHeaderFactory",{enumerable:!0,get:function(){return n(s).default}})})(Ur)),Ur}var Od;function kv(){return Od||(Od=1,(function(e){var t=qr&&qr.__createBinding||(Object.create?(function(s,i,u,d){d===void 0&&(d=u),Object.defineProperty(s,d,{enumerable:!0,get:function(){return i[u]}})}):(function(s,i,u,d){d===void 0&&(d=u),s[d]=i[u]})),r=qr&&qr.__exportStar||function(s,i){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(i,u)&&t(i,s,u)},n=qr&&qr.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),r(Cf(),e),r(Iv(),e);var o=n(Df());e.default=(0,o.default)()})(qr)),qr}var Rv=kv();const La=Ca(Rv);async function Pv(e,t){const r=`${Ze.creditsServerUrl}/users/${e.toLowerCase()}/credits`,n=await La(r,{method:"GET",identity:t,metadata:{}});if(!n.ok)throw new Error(`getUserCredits ${n.status}: ${await n.text()}`);return n.json()}async function Nv(e,t){const{usd:r}=await Pv(e,t);return r??{balanceCents:0,credits:0}}async function X6(e,t,r){const n=`${Ze.creditsServerUrl}/credits/authorize`,o=await La(n,{method:"POST",identity:e,metadata:{},headers:{"Content-Type":"application/json"},body:JSON.stringify({usdPriceCents:t,tradeId:r})});if(!o.ok)throw new Error(`authorizeUsdCredit ${o.status}: ${await o.text()}`);return o.json()}async function e8(e,t,r){const n=new URLSearchParams;n.set("status","all"),n.set("limit",String(r.first)),(r==null?void 0:r.skip)!=null&&n.set("offset",String(r.skip));const o=n.toString(),s=`${Ze.creditsServerUrl}/users/${e.toLowerCase()}/purchases${o?`?${o}`:""}`,i=await La(s,{method:"GET",identity:t,metadata:{}});if(!i.ok)throw new Error(`fetchUserPurchases ${i.status}: ${await i.text()}`);const u=await i.json(),d=u.purchases??[],h=(r==null?void 0:r.skip)??0,p=r==null?void 0:r.first,m=typeof u.total=="number"?u.total:h+d.length+(d.length>=p?1:0);return{items:d,total:m}}async function t8(e,t){if(t.length===0)return 0;const r=`${Ze.creditsServerUrl}/credits/authorize/cancel`,n=await La(r,{method:"POST",identity:e,metadata:{},headers:{"Content-Type":"application/json"},body:JSON.stringify({salts:t})});if(!n.ok)throw new Error(`cancelUsdIntents ${n.status}: ${await n.text()}`);return(await n.json()).released??0}async function r8(e,t=1e3){const r=await fetch(`${Ze.creditsServerUrl}/dev/mint-usd`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({address:e.toLowerCase(),usdCents:t})});if(!r.ok)throw new Error(`devMintUsd ${r.status}: ${await r.text()}`);return r.json()}function Ov(e){return Gr({queryKey:["usd-balance",e==null?void 0:e.address],enabled:!!e,staleTime:3e4,queryFn:async()=>Nv(e.address,e.identity)})}function jv(e,t){return t?"—":(e==null?void 0:e.credits)??0}const Lv={};function qf(e,t){let r;try{r=e()}catch{return}return{getItem:o=>{var s;const i=d=>d===null?null:JSON.parse(d,void 0),u=(s=r.getItem(o))!=null?s:null;return u instanceof Promise?u.then(i):i(u)},setItem:(o,s)=>r.setItem(o,JSON.stringify(s,void 0)),removeItem:o=>r.removeItem(o)}}const Zo=e=>t=>{try{const r=e(t);return r instanceof Promise?r:{then(n){return Zo(n)(r)},catch(n){return this}}}catch(r){return{then(n){return this},catch(n){return Zo(n)(r)}}}},Bv=(e,t)=>(r,n,o)=>{let s={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:T=>T,version:0,merge:(T,H)=>({...H,...T}),...t},i=!1;const u=new Set,d=new Set;let h;try{h=s.getStorage()}catch{}if(!h)return e((...T)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),r(...T)},n,o);const p=Zo(s.serialize),m=()=>{const T=s.partialize({...n()});let H;const v=p({state:T,version:s.version}).then(k=>h.setItem(s.name,k)).catch(k=>{H=k});if(H)throw H;return v},b=o.setState;o.setState=(T,H)=>{b(T,H),m()};const E=e((...T)=>{r(...T),m()},n,o);let A;const g=()=>{var T;if(!h)return;i=!1,u.forEach(v=>v(n()));const H=((T=s.onRehydrateStorage)==null?void 0:T.call(s,n()))||void 0;return Zo(h.getItem.bind(h))(s.name).then(v=>{if(v)return s.deserialize(v)}).then(v=>{if(v)if(typeof v.version=="number"&&v.version!==s.version){if(s.migrate)return s.migrate(v.state,v.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return v.state}).then(v=>{var k;return A=s.merge(v,(k=n())!=null?k:E),r(A,!0),m()}).then(()=>{H==null||H(A,void 0),i=!0,d.forEach(v=>v(A))}).catch(v=>{H==null||H(void 0,v)})};return o.persist={setOptions:T=>{s={...s,...T},T.getStorage&&(h=T.getStorage())},clearStorage:()=>{h==null||h.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>g(),hasHydrated:()=>i,onHydrate:T=>(u.add(T),()=>{u.delete(T)}),onFinishHydration:T=>(d.add(T),()=>{d.delete(T)})},g(),A||E},Mv=(e,t)=>(r,n,o)=>{let s={storage:qf(()=>localStorage),partialize:g=>g,version:0,merge:(g,T)=>({...T,...g}),...t},i=!1;const u=new Set,d=new Set;let h=s.storage;if(!h)return e((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),r(...g)},n,o);const p=()=>{const g=s.partialize({...n()});return h.setItem(s.name,{state:g,version:s.version})},m=o.setState;o.setState=(g,T)=>{m(g,T),p()};const b=e((...g)=>{r(...g),p()},n,o);o.getInitialState=()=>b;let E;const A=()=>{var g,T;if(!h)return;i=!1,u.forEach(v=>{var k;return v((k=n())!=null?k:b)});const H=((T=s.onRehydrateStorage)==null?void 0:T.call(s,(g=n())!=null?g:b))||void 0;return Zo(h.getItem.bind(h))(s.name).then(v=>{if(v)if(typeof v.version=="number"&&v.version!==s.version){if(s.migrate)return[!0,s.migrate(v.state,v.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,v.state];return[!1,void 0]}).then(v=>{var k;const[w,Y]=v;if(E=s.merge(Y,(k=n())!=null?k:b),r(E,!0),w)return p()}).then(()=>{H==null||H(E,void 0),E=n(),i=!0,d.forEach(v=>v(E))}).catch(v=>{H==null||H(void 0,v)})};return o.persist={setOptions:g=>{s={...s,...g},g.storage&&(h=g.storage)},clearStorage:()=>{h==null||h.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>A(),hasHydrated:()=>i,onHydrate:g=>(u.add(g),()=>{u.delete(g)}),onFinishHydration:g=>(d.add(g),()=>{d.delete(g)})},s.skipHydration||A(),E||b},Fv=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((Lv?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),Bv(e,t)):Mv(e,t),$v=Fv,Bo=e=>!e.tokenId,yc=e=>typeof e.available=="number"?e.available:1/0,Dv=e=>Wo(e.reduce((t,r)=>t+r.priceCredits*r.quantity,0)),vc=e=>{const t=Math.floor(e.quantity??1),r=Bo(e)?Math.max(1,Number.isFinite(t)?t:1):1;return{...e,quantity:r}},Dt=jn()($v((e,t)=>({items:[],open:!1,justAddedCount:0,fittingOpen:!1,add:(r,n="grid")=>{const o=Bo(r),s=t().items.find(u=>u.id===r.id);if(s&&!o){e({open:!0});return}if(s&&s.quantity>=yc(s)){e({open:!0});return}e(u=>s?{items:u.items.map(d=>d.id===r.id?{...d,quantity:d.quantity+1}:d),open:!0,justAddedCount:(u.open?u.justAddedCount:0)+1}:{items:[...u.items,vc(r)],open:!0,justAddedCount:(u.open?u.justAddedCount:0)+1});const i=t().items;pr("Shop Added To Cart",{item_id:r.itemId??null,contract_address:r.contractAddress,price_credits:r.priceCredits,price_usd:Wo(r.priceCredits),is_primary:o,source:n,cart_size:i.length,cart_value_usd:Dv(i)})},remove:r=>{const n=t().items.find(o=>o.id===r);e(o=>({items:o.items.filter(s=>s.id!==r)})),n&&pr("Shop Removed From Cart",{item_id:n.itemId??null,cart_size:t().items.length})},setQuantity:(r,n)=>e(o=>({items:o.items.map(s=>{if(s.id!==r||!Bo(s))return s;const i=Math.max(1,Math.min(Math.floor(n),yc(s)));return{...s,quantity:Number.isFinite(i)?i:1}})})),increment:r=>e(n=>({items:n.items.map(o=>o.id===r&&Bo(o)&&o.quantity<yc(o)?{...o,quantity:o.quantity+1}:o)})),decrement:r=>e(n=>({items:n.items.map(o=>o.id===r&&Bo(o)&&o.quantity>1?{...o,quantity:o.quantity-1}:o)})),clear:()=>e({items:[]}),restore:r=>e(n=>n.items.length?{}:{items:r.map(vc)}),setOpen:r=>e({open:r,justAddedCount:0}),setFittingOpen:r=>e(r?{fittingOpen:r,open:!1}:{fittingOpen:r})}),{name:"dcl_shop_cart",version:2,storage:qf(()=>localStorage),partialize:e=>({items:e.items}),migrate:e=>{const t=e;return t!=null&&t.items?{items:t.items.map(vc)}:t}})),go={name:"credits",nameSingular:"credit",symbol:"◈",iconName:"credits"};function n8(e){return`${e} ${e===1?go.nameSingular:go.name}`}const qv=Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2});function Kn(e){return qv.format(e)}function Fo(e){return e.toLocaleString("en")}function hr({className:e}){return f.jsx(_t,{name:go.iconName,className:e})}function Uf(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}function Uv(e){t1(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Vv=_n(_n({},e1),{textComponent:oe.Fragment});function Hv(e){return function(t){return e(oe.Children.toArray(t))}}var Il=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=oe.createContext(null)):oe.createContext(null);Il.Consumer;var zv=Il.Provider,Gv=zv,Wv=Il;function Vf(){var e=oe.useContext(Wv);return Uv(e),e}var Qc;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(Qc||(Qc={}));var Jc;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Jc||(Jc={}));function Hf(e){var t=function(r){var n=Vf(),o=r.value,s=r.children,i=cl(r,["value","children"]),u=typeof o=="string"?new Date(o||0):o,d=e==="formatDate"?n.formatDateToParts(u,i):n.formatTimeToParts(u,i);return s(d)};return t.displayName=Jc[e],t}function is(e){var t=function(r){var n=Vf(),o=r.value,s=r.children,i=cl(r,["value","children"]),u=n[e](o,i);if(typeof s=="function")return s(u);var d=n.textComponent||oe.Fragment;return oe.createElement(d,null,u)};return t.displayName=Qc[e],t}function zf(e){return e&&Object.keys(e).reduce(function(t,r){var n=e[r];return t[r]=n1(n)?Hv(n):n,t},{})}var jd=function(e,t,r,n){for(var o=[],s=4;s<arguments.length;s++)o[s-4]=arguments[s];var i=zf(n),u=o1.apply(void 0,s1([e,t,r,i],o,!1));return Array.isArray(u)?oe.Children.toArray(u):u},Zv=function(e,t){var r=e.defaultRichTextElements,n=cl(e,["defaultRichTextElements"]),o=zf(r),s=r1(_n(_n(_n({},Vv),n),{defaultRichTextElements:o}),t),i={locale:s.locale,timeZone:s.timeZone,fallbackOnEmptyString:s.fallbackOnEmptyString,formats:s.formats,defaultLocale:s.defaultLocale,defaultFormats:s.defaultFormats,messages:s.messages,onError:s.onError,defaultRichTextElements:o};return _n(_n({},s),{formatMessage:jd.bind(null,i,s.formatters),$t:jd.bind(null,i,s.formatters)})};is("formatDate");is("formatTime");is("formatNumber");is("formatList");is("formatDisplayName");Hf("formatDate");Hf("formatTime");const Kv={rejected:"You cancelled the request.",insufficient:"You don't have enough {currency} — get more first.",soldOrRemoved:"This item was just sold or removed.",cantBuyOwn:"You can't buy your own listing."},Yv={overview:"Overview",collectibles:"Collectibles",myAssets:"My Assets",myFavorites:"My Favorites",myPurchases:"My Purchases",searchPlaceholder:"Search items…",searchAria:"Search the shop",yourBalance:"Your {currency}",getCredits:"Get {currency}",cart:"Cart"},Qv={suggestions:"Search suggestions",recent:"Recent searches",clearRecent:"Clear",removeRecent:"Remove “{query}” from recent searches",searching:"Searching…",noResults:"No results match “{query}”",seeAll:"See all {count} results",clear:"Clear search",creators:"Creators",collections:"Collections",items:"Items",byCreator:"By {name}"},Jv={breadcrumb:"Collectibles",fallbackTitle:"Collection",category:"Category",viewProfile:"View profile",copyAddress:"Copy account",copied:"Copied",empty:"This collection has no items to show.",error:"Couldn’t load this collection — please try again.",breadcrumbAria:"Breadcrumb",priceMin:"Minimum price",priceMax:"Maximum price",priceMinPlaceholder:"Min",priceMaxPlaceholder:"Max",priceHint:"Price in {currency}"},Xv={viewCollection:"View collection",itemCount:"{count, plural, one {# Item} other {# Items}}"},e3={shopAll:"Shop All",wearables:"Wearables",emotes:"Emotes",collections:"Collections",head:"Head",upperBody:"Upper Body",handwear:"Handwear",lowerBody:"Lower Body",feet:"Feet",accessories:"Accessories",skins:"Skins",dance:"Dance",stunt:"Stunt",greetings:"Greetings",fun:"Fun",poses:"Poses",reactions:"Reactions",horror:"Horror",miscellaneous:"Miscellaneous"},t3={breadcrumb:"Assets",category:"Category",fallbackName:"Creator",viewProfile:"View profile",editStore:"Edit store",link:{website:"Website",twitter:"Twitter",discord:"Discord",facebook:"Facebook"},follow:"Follow",following:"Following",followTitle:"Follow creator",unfollowTitle:"Unfollow creator",empty:"This creator has no items to show yet.",collectionsCount:"{count, plural, one {# collection} other {# collections}}",collectionsEmpty:"This creator hasn’t published any collections yet.",error:"Couldn’t load this creator — please try again.",breadcrumbAria:"Breadcrumb",priceMin:"Minimum price",priceMax:"Maximum price",priceMinPlaceholder:"Min",priceMaxPlaceholder:"Max",priceHint:"Price in {currency}"},r3={title:"Store settings",back:"Back to your store",signInPrompt:"Sign in to set up your store.",signIn:"Sign in",seeAsGuest:"See store as guest",loading:"Loading your store…",cover:"Store cover",upload:"Upload your own",description:"Description",website:"Website",twitter:"Twitter handle",discord:"Discord invite ID",facebook:"Facebook handle",save:"Save",saving:"Saving…",saved:"Store saved.",saveError:"Couldn’t save your store — please try again.",sizeError:"Maximum cover size is {max}; the image you chose is {current}.",linkError:"Link should start with {value}"},n3={title:"Page not found",body:"The page you’re looking for isn’t here. Let’s get you back to the shop.",cta:"Browse Collectibles"},o3={empty:{title:"Your cart is empty",body:"Find something you love and it’ll show up here.",cta:"Browse Collectibles"},panelTitle:"Cart: {count, plural, one {# Item} other {# Items}}",goBack:"Go back",fittingRoom:"Fitting Room",removeFromCart:"Remove {name} from cart",increaseQuantity:"Increase quantity",decreaseQuantity:"Decrease quantity of {name}",removeFromFavorites:"Remove {name} from favorites",addToFavorites:"Add {name} to favorites",remove:"Remove {name}",removeTitle:"Remove",clearCart:"Clear cart",purchaseSummary:"Purchase Summary",totalItems:"Total: {count, plural, one {# item} other {# items}}",working:"Working…",priceChanged:"Prices or availability changed since you added these — review the updated total and confirm to buy.",youMightAlsoLike:"You might also like",status:{reviewing:"Reviewing your cart…"},error:{insufficient:"You don't have enough {currency} — get more first.",noneAvailable:"None of these items are available to buy right now.",listingChanged:"One or more items changed — please review your cart and try again."},drop:{unavailable:"{count} no longer available",own:"{count} you can't buy (your own listing)",and:"and",removed:"Removed {items} from your cart."}},s3={title:"Purchase {currency}",subtitle:"Get {currency} and start shopping in the Marketplace!",learnMore:"Learn more",canceledNote:"Payment canceled — no charge was made. Pick a pack whenever you’re ready.",packBadge:"Recommended",packAria:"Get {amount} for ${usd}",creditsAmount:"{credits} {currency}",redirecting:"Redirecting to secure checkout…",processing:"Completing purchase",successTitle:"Your purchase was successful!",successBody:"Your {currency} are ready to spend in the Marketplace.",creditsAdded:"Added to your account",buyMore:"Buy more {currency}",startShopping:"Start shopping",pendingTitle:"Your {currency} are on the way",pendingBody:"Your payment went through. It’s taking a little longer than usual to confirm — your balance will update automatically as soon as it lands, no need to pay again.",done:"Done",errorTitle:"Something went wrong",tryAgain:"Try again",errorCanceled:"You cancelled the request.",errorSignIn:"Sign in to get {currency}.",errorTimeout:"This is taking longer than usual — your {currency} will appear shortly.",errorGeneric:"Couldn’t complete your purchase — please try again.",errorGrant:"Couldn’t add your {currency} — please try again."},a3={price:"Price"},i3={sale:"SALE",saleWithDiscount:"SALE -{pct}%",smart:"Smart",addToFavorites:"Add to favorites",removeFromFavorites:"Remove from favorites",marketPrice:"Market price",unavailable:"Unavailable",buyNow:"Buy now",yourItem:"Your item",inCart:"In cart",addToCart:"Add to cart"},c3={titleBuy:"Buy Asset",titleNoFunds:"Buy Credits and Item",titleComplete:"Purchase complete!",dialogAria:"Buy {name}",close:"Close",dclBalance:"DCL Balance:",myCreditsBalance:"My Credits Balance:",signInToCheckout:"Sign in to check out.",insufficientFunds:"Insufficient Funds.",warningNeedToBuy:"You will need to buy",warningCreditsAmount:"{count} Credits",warningToPurchase:"to purchase {count, plural, one {this item.} other {these items.}}",cancel:"Cancel",buy:"Buy",completingPurchase:"Completing Purchase…",completingTransaction:"Completing transaction…",successBody:"You can find your item in the My Assets tab.",myAssets:"My assets",tryInWorld:"Try in world",itemFallback:"Item",error:{generic:"Couldn't complete the purchase — please try again.",creditsCheckout:"Couldn't start the credits checkout — please try again."}},l3={titleBuy:"Buy Assets",titleNoFunds:"Buy Credits and Items",dialogAria:"Check out your cart",qty:"× {count}"},u3={finalPrice:"Final price",lockedForPurchase:"Locked for this purchase",todaysPrice:"Today’s price",lockingPrice:"Locking today’s price…",yourBalance:"Your balance:",needMore:"You’ll need a few more {currency} to buy this.",confirming:"Confirming your purchase…",buying:"Buying…",confirmPurchase:"Confirm purchase",error:{insufficient:"Not enough {currency} — get more first.",soldOrRemoved:"This item was just sold or removed. Refreshing the market…",generic:"Couldn't complete checkout — please try again."}},d3={genderMale:"Male",genderFemale:"Female",genderUnisex:"Unisex",categoryEmote:"Emote",categoryWearable:"Wearable",moreFromCollection:"More from this collection",notForSale:"Not for sale",checking:"Checking…",maxInCart:"Max in cart",notAvailableTitle:"This item isn’t available",notAvailableBody:"It may have been delisted or moved. Browse Collectibles for something else.",breadcrumbAria:"Breadcrumb",itemFallback:"Item",description:"Description",showLess:"Show less",readMore:"Read more",creator:"Creator",collection:"Collection",price:"Price",stock:"Stock",ownItemPrefix:"This is your item — manage it in",ownItemSuffix:"."},f3={finalizing:"Finalizing your purchase…",processing:"Processing your purchase…",indexingBefore:"Payment confirmed — adding",indexingAfter:"to your wardrobe. Almost there.",confirmingBefore:"Confirming",confirmingAfter:"on-chain. This usually takes a few seconds — keep this tab open.",itemCount:"{count, plural, one {# item} other {# items}}",viewTransaction:"View transaction ↗",stillProcessingTitle:"Still processing…",timedOutBefore:"This is taking longer than usual to confirm. Your purchase may still complete — check",timedOutAfter:"in a few minutes to see the final status. No need to buy again.",viewMyPurchases:"View my purchases",keepShopping:"Keep shopping",failedTitle:"Your purchase didn’t go through",failedBody:"The transaction failed on-chain, so nothing was delivered. Your credits weren’t spent (any hold is released shortly) — you can try again.",backToShop:"Back to shop",title:"It’s yours!",heroInWardrobe:"is now in your wardrobe.",itemsInWardrobe:"{count, plural, one {# item is now in your wardrobe.} other {# items are now in your wardrobe.}}",viewOrder:"View order",useItInWorld:"Use it in-world"},h3={loading:"Loading preview",shownOnBody:"Shown on a {shape} body — this item isn’t made for your avatar’s shape.",previewMode:"Preview mode",onAvatar:"On avatar",item:"Item"},p3={filters:"Filters",closeFilters:"Close filters",category:"Category",min:"Min",max:"Max",priceTo:"to",minPriceAria:"Minimum price",maxPriceAria:"Maximum price",minPriceSliderAria:"Minimum price slider",maxPriceSliderAria:"Maximum price slider",rarity:"Rarity",clearFilters:"Clear Filters",apply:"Apply",marketUnavailable:"Some market prices are temporarily unavailable — buying those items is paused for a moment. Please try again shortly.",loadError:"Couldn’t load items — please try again.",noItems:"No items match your filters."},m3={signInPrompt:"Sign in to sell your items.",removedFromSale:"“{name}” is no longer for sale.",removeListingError:"Couldn’t remove the listing — please try again.",importTitle:"Import your listings",importSub:"You have {count, plural, one {# item} other {# items}} for sale elsewhere — bring them into the Shop.",import:"Import",ownedTitle:"Items you own",ownedSub:"Wearables & emotes you’ve bought — resell them in the Shop.",ownedError:"Couldn’t load your items — please try again.",viewItem:"View {name}",onSale:"On sale",removing:"Removing…",removeListing:"Remove listing",putOnSale:"Put on sale",ownedEmpty:"No items in your wardrobe yet.",creationsTitle:"Your creations",creationsSub:"Items you made. Put them on sale in the Shop — set a price in {currency} and buyers pay with {currency}.",collectionsError:"We couldn’t load your collections right now. Please try again in a moment.",nothingToPublish:"You don’t have any items to publish yet.",available:"{count, number} available"},g3={processing:"Processing",completed:"Completed",itemFallback:"Item",signInTitle:"Sign in to see your purchases",signInBody:"Your order history shows up here once you sign in.",emptyTitle:"No purchases yet",emptyBody:"When you buy something it’ll appear here.",orderCount:"{count, plural, one {# order} other {# orders}}"},y3={emptyTitle:"No favorites yet",emptyBody:"Tap the heart on any item to save it here.",itemCount:"{count, plural, one {# item} other {# items}}"},v3={viewAll:"View all",previous:"Previous",next:"Next",carouselPages:"{title} pages",goToPage:"Go to page {page}",heroTitle:"Fashion week outfits",exploreCollection:"Explore collection",featuredProducts:"Featured Products",newCreations:"New Creations",promoEmotesAria:"Best rated emotes — explore collection",promoEmotesAlt:"Best rated emotes",promoOutfitsAria:"Week selected outfits — explore collection",promoOutfitsAlt:"Week selected outfits",emptyTitle:"New drops are on the way",emptyBody:"There are no items on sale right now — check back soon."},b3={crash:{title:"Something went wrong",body:"This page hit an unexpected error. Try reloading.",reload:"Reload"}},w3={removeFromCart:"Remove {name} from cart",increaseQuantity:"Increase quantity",decreaseQuantity:"Decrease quantity of {name}",removeItem:"Remove {name}",remove:"Remove",dialogLabel:"Shopping cart",title:"Shopping Cart ({count})",close:"Close",bannerCount:"{count, plural, one {# Item} other {# Items}}",bannerAdded:"successfully added to cart!",total:"Total: {count, plural, one {# item} other {# items}}",goToCart:"Go to cart",continueShopping:"Continue shopping"},_3={sortNewest:"Newest",sortCheapest:"Cheapest",sortMostExpensive:"Most Expensive",sortName:"Name (A–Z)",count:"{count, plural, one {# Item} other {# Items}}",forQuery:"for “{query}”",rarity:"Rarity",clearAll:"Clear all",filters:"Filters",sortBy:"Sort by"},E3={added:"Added {count, plural, one {# item} other {# items}} to your cart.",forSale:"{count} for sale",allInCart:"All in cart",addAll:"Add all ({count}) to cart"},x3={newsletterTitle:"Get the weekly highlights in your inbox",newsletterFrameTitle:"Newsletter signup",connect:"Connect",gettingStarted:"Getting Started",resources:"Resources",menu:"Menu",linkWhatIs:"What is Decentraland",linkDownload:"Download",linkSystemRequirements:"System Requirements",linkFaqs:"FAQs",linkContactSupport:"Contact Support",linkMarketplace:"Marketplace",linkCreatorHub:"Creator Hub",linkDocs:"Docs",linkBlog:"Blog",linkVote:"Vote",linkPrivacy:"Privacy Policy",linkTerms:"Terms of Use",linkContentPolicy:"Content Policy",linkEthics:"Code of Ethics"},S3={viewAll:"View all",scrollLeft:"Scroll left",scrollRight:"Scroll right",pages:"Carousel pages",goToPage:"Go to page {page}"},C3={title:"Week Top Creators",thisWeek:"This Week",rank:"Rank",creator:"Creator",collections:"Collections",sales:"Sales",volume:"Volume"},T3={loading:"Loading…",loadMore:"Load more"},A3={title:"Recently viewed"},I3={title:"From creators you follow"},k3={loading:"Loading"},R3={label:"Purchase successful"},P3={creations:{title:"Your creations",sub:"Items you made. Put them on sale in the Shop."},owned:{title:"Items you own",sub:"Things you've bought elsewhere — resell them in the Shop."},toastUpdated:"Your Shop is updated.",signInTitle:"Import your listings",signInBody:"Sign in to bring the items you already sell into the Shop.",emptyTitle:"You're all caught up",emptyBody:"Everything you sell is already in the Shop — nothing to import.",goToMyAssets:"Go to My Assets",eyebrow:"Import to the Shop",titleLead:"Bring your listings",titleAccent:"into the Shop",lede:"These items are already for sale elsewhere. We suggested a price in {currency} for each — matched to today's rate and rounded up. Adjust anything, then list them.",rate:"1 {currency} = $0.10 · prices rounded up",includeItem:"Include {name}",itemFallback:"Item",priceAria:"Price in {currency} for {name}",resetTo:"Reset to",list:"List",selectedSummary:"{count, plural, one {# item} other {# items}} selected · ${usd}",listAll:"List all ({count})"},N3={errorGeneric:"Couldn't list your item — please try again.",errorWholeNumber:"Enter a whole number of credits",statusPreparing:"Getting your item ready…",statusListing:"Listing your item…",statusPublishing:"Publishing…",toastOnSale:"“{name}” is now on sale!",successTitle:"It’s on sale! 🎉",listedFor:"Listed for",viewInShop:"View in Shop",listTitle:"List “{name}”",priceLabel:"Price ({currency})",pricedInWhole:"Priced in whole {currency} (1 {currencySingular} = $0.10).",cancel:"Cancel",listing:"Listing…",putOnSale:"Put on sale"},O3={errorGeneric:"Couldn't publish your item — please try again.",errorWholeNumber:"Enter a whole number of credits",statusEnabling:"Enabling sales for this collection…",statusPublishing:"Publishing your item…",statusFinishing:"Finishing up…",toastOnSale:"“{name}” is now on sale!",listing:"Listing…",enableAndPutOnSale:"Enable & put on sale",putOnSale:"Put on sale",successTitle:"It’s on sale! 🎉",listedFor:"Listed for",dotAvailable:"· {count, plural, one {# available} other {# available}}",viewInShop:"View in Shop",publishTitle:"Publish “{name}”",fromCollection:"From your collection “{collectionName}” · {count, plural, one {# available} other {# available}}",priceLabel:"Price ({currency})",pricedInWhole:"Priced in whole {currency} (1 {currencySingular} = $0.10).",firstTimeConfirm:"First time selling from “{collectionName}”? It needs a one-time approval, then you’ll confirm the listing — two quick confirmations. After this, listing more items from this collection is a single step.",firstTimeManaged:"First time selling from “{collectionName}”? Setting it up takes a moment — after that, listing more items from this collection is instant.",readyConfirm:"This collection is ready — publishing is a single confirmation.",readyManaged:"This collection is ready — publishing is instant.",cancel:"Cancel",checking:"Checking…"},j3={successTitle:"You're in the Shop! 🎉",nothingTitle:"Nothing listed",listedSummary:"{count, plural, one {# item is} other {# items are}} now for sale with {currency}.",noneListed:"No items were listed.",skippedSummary:"{count, plural, one {# skipped} other {# skipped}} — you can try those again anytime.",unlistedSummary:"{count, plural, one {# item was taken off the old marketplace but couldn't be re-listed — re-list it from My Assets.} other {# items were taken off the old marketplace but couldn't be re-listed — re-list them from My Assets.}}",goToMyAssets:"Go to My Assets",viewInShop:"View in Shop",listingTitle:"Listing your items",subConfirm:"We take down each old listing and re-list it for credits — confirm each step.",subManaged:"Moving your items to the Shop.",progressCount:"{current} of {total}",itemFallback:"Item",statusConfirm:"Confirm…",statusAdding:"Adding…",statusSkipped:"Skipped",statusFailed:"Failed",unlistedTooltip:"Removed from the old marketplace but not re-listed — re-list it from My Assets.",statusUnlisted:"Not listed",hintConfirm:"A couple of quick confirmations pop up per item (take down + re-list). Keep this open.",hintManaged:"This only takes a moment — keep this open.",statusWaiting:"Waiting"},L3={title:"Fitting room",close:"Close",wearable:"Wearable",emptyStageTitle:"Nothing on right now.",emptyStageBody:"Turn on an item from the list to try it.",sub:"Mix and match your cart. Turn items on and off to see the look.",emote:"Emote",conflictTooltip:"Only one item per slot can be worn",onePerSlot:"1 per slot",madeForShape:"This item is made for the {shape} body shape",shapeOnly:"{shape} only",removeFromCart:"Remove {name} from cart",remove:"Remove",itemCount:"{count, plural, one {# item} other {# items}}",checkout:"Checkout"},B3={male:"Male",female:"Female"},M3={collectibles:{title:"Browse Collectibles",searchTitle:"Search results for “{query}”",description:"Browse thousands of wearables and emotes for your Decentraland avatar. Filter by category, rarity, and price to find your next look."},item:{notFoundTitle:"Item not available",fallbackDescription:"{name} — {rarity} {category} by {creator} on the Decentraland Shop."},collection:{description:"Explore every wearable and emote in the {name} collection on the Decentraland Shop."},creator:{description:"Discover wearables and emotes by {name} on the Decentraland Shop."},import:{title:"Import Listings"},storeSettings:{title:"Store Settings"},success:{title:"Purchase Complete"},notFound:{title:"Page Not Found"}},F3={errors:Kv,nav:Yv,search:Qv,collection:Jv,collectionCard:Xv,categories:e3,creator:t3,storeSettings:r3,notFound:n3,cart:o3,getCredits:s3,filter:a3,assetCard:i3,buyModal:c3,cartCheckout:l3,marketCheckout:u3,itemDetail:d3,success:f3,itemPreview:h3,assets:p3,myAssets:m3,myPurchases:g3,myFavorites:y3,overview:v3,app:b3,cartPopover:w3,filterBar:_3,addAll:E3,footer:x3,collectionCarousel:S3,weekTopCreators:C3,loadMore:T3,recentlyViewed:A3,followedCreators:I3,spinner:k3,successAnimation:R3,importListings:P3,sellModal:N3,primaryList:O3,migrate:j3,fittingRoom:L3,bodyShape:B3,seo:M3},$3={rejected:"Cancelaste la solicitud.",insufficient:"No tienes suficientes {currency}. Consigue más primero.",soldOrRemoved:"Este artículo acaba de venderse o eliminarse.",cantBuyOwn:"No puedes comprar tu propia publicación."},D3={overview:"Inicio",collectibles:"Coleccionables",myAssets:"Mis artículos",myFavorites:"Mis favoritos",myPurchases:"Mis compras",searchPlaceholder:"Busca artículos…",searchAria:"Buscar en la tienda",yourBalance:"Tus {currency}",getCredits:"Conseguir {currency}",cart:"Carrito"},q3={suggestions:"Sugerencias de búsqueda",recent:"Búsquedas recientes",clearRecent:"Limpiar",removeRecent:"Quitar «{query}» de las búsquedas recientes",searching:"Buscando…",noResults:"Ningún resultado coincide con «{query}»",seeAll:"Ver los {count} resultados",clear:"Limpiar búsqueda",creators:"Creadores",collections:"Colecciones",items:"Artículos",byCreator:"Por {name}"},U3={breadcrumb:"Coleccionables",fallbackTitle:"Colección",category:"Categoría",viewProfile:"Ver perfil",copyAddress:"Copiar cuenta",copied:"Copiado",empty:"Esta colección no tiene artículos para mostrar.",error:"No pudimos cargar esta colección. Inténtalo de nuevo.",breadcrumbAria:"Ruta de navegación",priceMin:"Precio mínimo",priceMax:"Precio máximo",priceMinPlaceholder:"Mín",priceMaxPlaceholder:"Máx",priceHint:"Precio en {currency}"},V3={viewCollection:"Ver colección",itemCount:"{count, plural, one {# Artículo} other {# Artículos}}"},H3={shopAll:"Ver todo",wearables:"Wearables",emotes:"Emotes",collections:"Colecciones",head:"Cabeza",upperBody:"Torso",handwear:"Manos",lowerBody:"Piernas",feet:"Pies",accessories:"Accesorios",skins:"Skins",dance:"Baile",stunt:"Truco",greetings:"Saludos",fun:"Divertido",poses:"Poses",reactions:"Reacciones",horror:"Horror",miscellaneous:"Misceláneos"},z3={breadcrumb:"Artículos",category:"Categoría",fallbackName:"Creador",viewProfile:"Ver perfil",editStore:"Editar tienda",link:{website:"Sitio web",twitter:"Twitter",discord:"Discord",facebook:"Facebook"},follow:"Seguir",following:"Siguiendo",followTitle:"Seguir al creador",unfollowTitle:"Dejar de seguir al creador",empty:"Este creador todavía no tiene artículos para mostrar.",collectionsCount:"{count, plural, one {# colección} other {# colecciones}}",collectionsEmpty:"Este creador todavía no ha publicado colecciones.",error:"No pudimos cargar este creador. Prueba de nuevo.",breadcrumbAria:"Ruta de navegación",priceMin:"Precio mínimo",priceMax:"Precio máximo",priceMinPlaceholder:"Mín",priceMaxPlaceholder:"Máx",priceHint:"Precio en {currency}"},G3={title:"Configuración de la tienda",back:"Volver a tu tienda",signInPrompt:"Inicia sesión para configurar tu tienda.",signIn:"Iniciar sesión",seeAsGuest:"Ver tienda como visitante",loading:"Cargando tu tienda…",cover:"Portada de la tienda",upload:"Sube tu portada",description:"Descripción",website:"Sitio web",twitter:"Usuario de Twitter",discord:"ID de invitación de Discord",facebook:"Usuario de Facebook",save:"Guardar",saving:"Guardando…",saved:"Tienda guardada.",saveError:"No pudimos guardar tu tienda. Prueba de nuevo.",sizeError:"El tamaño máximo de la portada es {max}; la imagen que elegiste pesa {current}.",linkError:"El enlace debe comenzar con {value}"},W3={title:"Página no encontrada",body:"La página que buscas no está aquí. Volvamos a la tienda.",cta:"Ver coleccionables"},Z3={empty:{title:"Tu carrito está vacío",body:"Encuentra algo que te guste y aparecerá aquí.",cta:"Ver coleccionables"},panelTitle:"Carrito: {count, plural, one {# artículo} other {# artículos}}",goBack:"Volver",fittingRoom:"Probador",removeFromCart:"Quitar {name} del carrito",increaseQuantity:"Aumentar cantidad",decreaseQuantity:"Disminuir cantidad de {name}",removeFromFavorites:"Quitar {name} de favoritos",addToFavorites:"Agregar {name} a favoritos",remove:"Quitar {name}",removeTitle:"Quitar",clearCart:"Vaciar carrito",purchaseSummary:"Resumen de compra",totalItems:"Total: {count, plural, one {# artículo} other {# artículos}}",working:"Procesando…",priceChanged:"Los precios o la disponibilidad cambiaron desde que los agregaste. Revisa el total actualizado y confirma para comprar.",youMightAlsoLike:"También te puede gustar",status:{reviewing:"Revisando tu carrito…"},error:{insufficient:"No tienes suficientes {currency}. Consigue más primero.",noneAvailable:"Ninguno de estos artículos está disponible para comprar en este momento.",listingChanged:"Uno o más artículos cambiaron. Revisa tu carrito e inténtalo de nuevo."},drop:{unavailable:"{count, plural, one {# que ya no está disponible} other {# que ya no están disponibles}}",own:"{count} que no puedes comprar (tu propia publicación)",and:"y",removed:"Eliminamos {items} de tu carrito."}},K3={title:"Comprar {currency}",subtitle:"¡Consigue {currency} y empieza a comprar en el Marketplace!",learnMore:"Más información",canceledNote:"Pago cancelado: no se realizó ningún cargo. Elige un paquete cuando quieras.",packBadge:"Recomendado",packAria:"Consigue {amount} por ${usd}",creditsAmount:"{credits} {currency}",redirecting:"Redirigiendo al pago seguro…",processing:"Completando la compra",successTitle:"¡Tu compra se realizó con éxito!",successBody:"Tus {currency} están listos para gastar en el Marketplace.",creditsAdded:"Añadidos a tu cuenta",buyMore:"Comprar más {currency}",startShopping:"Empezar a comprar",pendingTitle:"Tus {currency} están en camino",pendingBody:"Tu pago se procesó correctamente. Está tardando un poco más de lo habitual en confirmarse; tu saldo se actualizará automáticamente en cuanto llegue, no necesitas pagar de nuevo.",done:"Listo",errorTitle:"Algo salió mal",tryAgain:"Intentar de nuevo",errorCanceled:"Cancelaste la solicitud.",errorSignIn:"Inicia sesión para conseguir {currency}.",errorTimeout:"Esto está tardando más de lo habitual; tus {currency} aparecerán en breve.",errorGeneric:"No pudimos completar tu compra. Inténtalo de nuevo.",errorGrant:"No pudimos añadir tus {currency}. Inténtalo de nuevo."},Y3={price:"Precio"},Q3={sale:"OFERTA",saleWithDiscount:"OFERTA -{pct}%",smart:"Smart",addToFavorites:"Agregar a favoritos",removeFromFavorites:"Quitar de favoritos",marketPrice:"Precio de mercado",unavailable:"No disponible",buyNow:"Comprar ahora",yourItem:"Tu artículo",inCart:"En el carrito",addToCart:"Agregar al carrito"},J3={titleBuy:"Comprar artículo",titleNoFunds:"Comprar créditos y artículo",titleComplete:"¡Compra completada!",dialogAria:"Comprar {name}",close:"Cerrar",dclBalance:"Saldo de DCL:",myCreditsBalance:"Saldo de mis créditos:",signInToCheckout:"Inicia sesión para finalizar la compra.",insufficientFunds:"Fondos insuficientes.",warningNeedToBuy:"Necesitarás comprar",warningCreditsAmount:"{count} créditos",warningToPurchase:"para comprar {count, plural, one {este artículo.} other {estos artículos.}}",cancel:"Cancelar",buy:"Comprar",completingPurchase:"Completando la compra…",completingTransaction:"Completando la transacción…",successBody:"Puedes encontrar tu artículo en la pestaña Mis artículos.",myAssets:"Mis artículos",tryInWorld:"Probar en el mundo",itemFallback:"Artículo",error:{generic:"No pudimos completar la compra. Inténtalo de nuevo.",creditsCheckout:"No pudimos iniciar el pago de créditos. Inténtalo de nuevo."}},X3={titleBuy:"Comprar artículos",titleNoFunds:"Comprar créditos y artículos",dialogAria:"Finaliza la compra de tu carrito",qty:"× {count}"},eb={finalPrice:"Precio final",lockedForPurchase:"Fijado para esta compra",todaysPrice:"Precio de hoy",lockingPrice:"Fijando el precio de hoy…",yourBalance:"Tu saldo:",needMore:"Necesitarás algunos {currency} más para comprar esto.",confirming:"Confirmando tu compra…",buying:"Comprando…",confirmPurchase:"Confirmar compra",error:{insufficient:"No tienes suficientes {currency}. Consigue más primero.",soldOrRemoved:"Este artículo acaba de venderse o eliminarse. Actualizando el mercado…",generic:"No pudimos completar la compra. Inténtalo de nuevo."}},tb={genderMale:"Masculino",genderFemale:"Femenino",genderUnisex:"Unisex",categoryEmote:"Emote",categoryWearable:"Wearable",moreFromCollection:"Más de esta colección",notForSale:"No está a la venta",checking:"Comprobando…",maxInCart:"Máximo en el carrito",notAvailableTitle:"Este artículo no está disponible",notAvailableBody:"Puede que se haya retirado o movido. Explora los coleccionables para encontrar otra cosa.",breadcrumbAria:"Ruta de navegación",itemFallback:"Artículo",description:"Descripción",showLess:"Ver menos",readMore:"Leer más",creator:"Creador",collection:"Colección",price:"Precio",stock:"Stock",ownItemPrefix:"Este es tu artículo: gestiónalo en",ownItemSuffix:"."},rb={finalizing:"Finalizando tu compra…",processing:"Procesando tu compra…",indexingBefore:"Pago confirmado: añadiendo",indexingAfter:"a tu guardarropa. Ya casi está.",confirmingBefore:"Confirmando",confirmingAfter:"en la cadena. Esto suele tardar unos segundos; mantén esta pestaña abierta.",itemCount:"{count, plural, one {# artículo} other {# artículos}}",viewTransaction:"Ver transacción ↗",stillProcessingTitle:"Sigue procesándose…",timedOutBefore:"Esto está tardando más de lo habitual en confirmarse. Puede que tu compra aún se complete: revisa",timedOutAfter:"en unos minutos para ver el estado final. No necesitas comprar de nuevo.",viewMyPurchases:"Ver mis compras",keepShopping:"Seguir comprando",failedTitle:"Tu compra no se completó",failedBody:"La transacción falló en la cadena, así que no se entregó nada. No se gastaron tus créditos (cualquier retención se libera en breve); puedes intentarlo de nuevo.",backToShop:"Volver a la tienda",title:"¡Ya es tuyo!",heroInWardrobe:"ya está en tu guardarropa.",itemsInWardrobe:"{count, plural, one {# artículo ya está en tu guardarropa.} other {# artículos ya están en tu guardarropa.}}",viewOrder:"Ver pedido",useItInWorld:"Úsalo en el mundo"},nb={loading:"Cargando vista previa",shownOnBody:"Se muestra en un cuerpo {shape}: este artículo no está hecho para la forma de tu avatar.",previewMode:"Modo de vista previa",onAvatar:"En el avatar",item:"Artículo"},ob={filters:"Filtros",closeFilters:"Cerrar filtros",category:"Categoría",min:"Mín",max:"Máx",priceTo:"a",minPriceAria:"Precio mínimo",maxPriceAria:"Precio máximo",minPriceSliderAria:"Control deslizante de precio mínimo",maxPriceSliderAria:"Control deslizante de precio máximo",rarity:"Rareza",clearFilters:"Borrar filtros",apply:"Aplicar",marketUnavailable:"Algunos precios de mercado no están disponibles temporalmente; la compra de esos artículos está pausada por un momento. Inténtalo de nuevo en breve.",loadError:"No pudimos cargar los artículos. Inténtalo de nuevo.",noItems:"Ningún artículo coincide con tus filtros."},sb={signInPrompt:"Inicia sesión para vender tus artículos.",removedFromSale:"«{name}» ya no está a la venta.",removeListingError:"No pudimos quitar la publicación. Inténtalo de nuevo.",importTitle:"Importa tus publicaciones",importSub:"Tienes {count, plural, one {# artículo} other {# artículos}} a la venta en otro lugar; tráelos a la tienda.",import:"Importar",ownedTitle:"Artículos que tienes",ownedSub:"Wearables y emotes que compraste: revéndelos en la tienda.",ownedError:"No pudimos cargar tus artículos. Inténtalo de nuevo.",viewItem:"Ver {name}",onSale:"A la venta",removing:"Quitando…",removeListing:"Quitar publicación",putOnSale:"Poner a la venta",ownedEmpty:"Todavía no tienes artículos en tu armario.",creationsTitle:"Tus creaciones",creationsSub:"Artículos que creaste. Ponlos a la venta en la tienda: fija un precio en {currency} y los compradores pagan con {currency}.",collectionsError:"No pudimos cargar tus colecciones en este momento. Inténtalo de nuevo en un momento.",nothingToPublish:"Todavía no tienes artículos para publicar.",available:"{count, plural, one {# disponible} other {# disponibles}}"},ab={processing:"Procesando",completed:"Completada",itemFallback:"Artículo",signInTitle:"Inicia sesión para ver tus compras",signInBody:"Tu historial de pedidos aparecerá aquí cuando inicies sesión.",emptyTitle:"Aún no tienes compras",emptyBody:"Cuando compres algo, aparecerá aquí.",orderCount:"{count, plural, one {# pedido} other {# pedidos}}"},ib={emptyTitle:"Aún no tienes favoritos",emptyBody:"Toca el corazón en cualquier artículo para guardarlo aquí.",itemCount:"{count, plural, one {# artículo} other {# artículos}}"},cb={viewAll:"Ver todo",previous:"Anterior",next:"Siguiente",carouselPages:"Páginas de {title}",goToPage:"Ir a la página {page}",heroTitle:"Outfits de la semana de la moda",exploreCollection:"Explorar colección",featuredProducts:"Productos destacados",newCreations:"Nuevas creaciones",promoEmotesAria:"Emotes mejor valorados: explorar colección",promoEmotesAlt:"Emotes mejor valorados",promoOutfitsAria:"Outfits seleccionados de la semana: explorar colección",promoOutfitsAlt:"Outfits seleccionados de la semana",emptyTitle:"Se avecinan nuevos lanzamientos",emptyBody:"No hay artículos a la venta en este momento; vuelve pronto."},lb={crash:{title:"Algo salió mal",body:"Esta página tuvo un error inesperado. Prueba a recargar.",reload:"Recargar"}},ub={removeFromCart:"Quitar {name} del carrito",increaseQuantity:"Aumentar cantidad",decreaseQuantity:"Disminuir cantidad de {name}",removeItem:"Quitar {name}",remove:"Quitar",dialogLabel:"Carrito de compras",title:"Carrito de compras ({count})",close:"Cerrar",bannerCount:"{count, plural, one {# artículo} other {# artículos}}",bannerAdded:"añadido al carrito correctamente.",total:"Total: {count, plural, one {# artículo} other {# artículos}}",goToCart:"Ir al carrito",continueShopping:"Seguir comprando"},db={sortNewest:"Más recientes",sortCheapest:"Más baratos",sortMostExpensive:"Más caros",sortName:"Nombre (A–Z)",count:"{count, plural, one {# artículo} other {# artículos}}",forQuery:"para “{query}”",rarity:"Rareza",clearAll:"Borrar todo",filters:"Filtros",sortBy:"Ordenar por"},fb={added:"{count, plural, one {Se añadió # artículo a tu carrito.} other {Se añadieron # artículos a tu carrito.}}",forSale:"{count} en venta",allInCart:"Todo en el carrito",addAll:"Añadir todo ({count}) al carrito"},hb={newsletterTitle:"Recibe lo más destacado de la semana en tu correo",newsletterFrameTitle:"Suscripción al boletín",connect:"Conecta",gettingStarted:"Primeros pasos",resources:"Recursos",menu:"Menú",linkWhatIs:"Qué es Decentraland",linkDownload:"Descargar",linkSystemRequirements:"Requisitos del sistema",linkFaqs:"Preguntas frecuentes",linkContactSupport:"Contactar con soporte",linkMarketplace:"Marketplace",linkCreatorHub:"Creator Hub",linkDocs:"Documentación",linkBlog:"Blog",linkVote:"Votar",linkPrivacy:"Política de privacidad",linkTerms:"Términos de uso",linkContentPolicy:"Política de contenido",linkEthics:"Código de ética"},pb={viewAll:"Ver todo",scrollLeft:"Desplazar a la izquierda",scrollRight:"Desplazar a la derecha",pages:"Páginas del carrusel",goToPage:"Ir a la página {page}"},mb={title:"Mejores creadores de la semana",thisWeek:"Esta semana",rank:"Posición",creator:"Creador",collections:"Colecciones",sales:"Ventas",volume:"Volumen"},gb={loading:"Cargando…",loadMore:"Cargar más"},yb={title:"Vistos recientemente"},vb={title:"De creadores que sigues"},bb={loading:"Cargando"},wb={label:"Compra exitosa"},_b={creations:{title:"Tus creaciones",sub:"Artículos que creaste. Ponlos a la venta en la Tienda."},owned:{title:"Artículos que posees",sub:"Cosas que compraste en otro lugar — revéndelas en la Tienda."},toastUpdated:"Tu Tienda está actualizada.",signInTitle:"Importa tus publicaciones",signInBody:"Inicia sesión para traer a la Tienda los artículos que ya vendes.",emptyTitle:"Estás al día",emptyBody:"Todo lo que vendes ya está en la Tienda — no hay nada que importar.",goToMyAssets:"Ir a Mis artículos",eyebrow:"Importar a la Tienda",titleLead:"Trae tus publicaciones",titleAccent:"a la Tienda",lede:"Estos artículos ya están a la venta en otro lugar. Sugerimos un precio en {currency} para cada uno, ajustado a la tasa de hoy y redondeado hacia arriba. Ajusta lo que quieras y publícalos.",rate:"1 {currency} = $0.10 · precios redondeados hacia arriba",includeItem:"Incluir {name}",itemFallback:"Artículo",priceAria:"Precio en {currency} para {name}",resetTo:"Restablecer a",list:"Publicar",selectedSummary:"{count, plural, one {# artículo seleccionado} other {# artículos seleccionados}} · ${usd}",listAll:"Publicar todo ({count})"},Eb={errorGeneric:"No pudimos publicar tu artículo. Inténtalo de nuevo.",errorWholeNumber:"Introduce un número entero de credits",statusPreparing:"Preparando tu artículo…",statusListing:"Publicando tu artículo…",statusPublishing:"Publicando…",toastOnSale:"¡«{name}» ya está a la venta!",successTitle:"¡Ya está a la venta! 🎉",listedFor:"Publicado por",viewInShop:"Ver en la Tienda",listTitle:"Publicar «{name}»",priceLabel:"Precio ({currency})",pricedInWhole:"Con precio en {currency} enteros (1 {currencySingular} = $0.10).",cancel:"Cancelar",listing:"Publicando…",putOnSale:"Poner a la venta"},xb={errorGeneric:"No pudimos publicar tu artículo. Inténtalo de nuevo.",errorWholeNumber:"Introduce un número entero de credits",statusEnabling:"Activando las ventas de esta colección…",statusPublishing:"Publicando tu artículo…",statusFinishing:"Finalizando…",toastOnSale:"¡«{name}» ya está a la venta!",listing:"Publicando…",enableAndPutOnSale:"Activar y poner a la venta",putOnSale:"Poner a la venta",successTitle:"¡Ya está a la venta! 🎉",listedFor:"Publicado por",dotAvailable:"· {count, plural, one {# disponible} other {# disponibles}}",viewInShop:"Ver en la Tienda",publishTitle:"Publicar «{name}»",fromCollection:"De tu colección «{collectionName}» · {count, plural, one {# disponible} other {# disponibles}}",priceLabel:"Precio ({currency})",pricedInWhole:"Con precio en {currency} enteros (1 {currencySingular} = $0.10).",firstTimeConfirm:"¿Es la primera vez que vendes de «{collectionName}»? Necesita una aprobación única y luego confirmarás la publicación — dos confirmaciones rápidas. Después de esto, publicar más artículos de esta colección es un solo paso.",firstTimeManaged:"¿Es la primera vez que vendes de «{collectionName}»? Configurarlo lleva un momento — después, publicar más artículos de esta colección es instantáneo.",readyConfirm:"Esta colección está lista — publicar es una sola confirmación.",readyManaged:"Esta colección está lista — publicar es instantáneo.",cancel:"Cancelar",checking:"Comprobando…"},Sb={successTitle:"¡Estás en la Tienda! 🎉",nothingTitle:"No se publicó nada",listedSummary:"{count, plural, one {# artículo está} other {# artículos están}} ahora a la venta con {currency}.",noneListed:"No se publicó ningún artículo.",skippedSummary:"{count, plural, one {# omitido} other {# omitidos}} — puedes volver a intentarlo cuando quieras.",unlistedSummary:"{count, plural, one {# artículo se retiró del marketplace anterior pero no se pudo volver a publicar — vuelve a publicarlo desde Mis artículos.} other {# artículos se retiraron del marketplace anterior pero no se pudieron volver a publicar — vuelve a publicarlos desde Mis artículos.}}",goToMyAssets:"Ir a Mis artículos",viewInShop:"Ver en la Tienda",listingTitle:"Publicando tus artículos",subConfirm:"Retiramos cada publicación anterior y la volvemos a publicar por credits — confirma cada paso.",subManaged:"Moviendo tus artículos a la Tienda.",progressCount:"{current} de {total}",itemFallback:"Artículo",statusConfirm:"Confirma…",statusAdding:"Añadiendo…",statusSkipped:"Omitido",statusFailed:"Falló",unlistedTooltip:"Se retiró del marketplace anterior pero no se volvió a publicar — vuelve a publicarlo desde Mis artículos.",statusUnlisted:"No publicado",hintConfirm:"Aparecerán un par de confirmaciones rápidas por artículo (retirar + volver a publicar). Mantén esto abierto.",hintManaged:"Esto solo lleva un momento — mantén esto abierto.",statusWaiting:"Esperando"},Cb={title:"Probador",close:"Cerrar",wearable:"Wearable",emptyStageTitle:"No hay nada puesto ahora mismo.",emptyStageBody:"Activa un artículo de la lista para probarlo.",sub:"Combina los artículos de tu carrito. Activa y desactiva artículos para ver el look.",emote:"Emote",conflictTooltip:"Solo se puede llevar un artículo por espacio",onePerSlot:"1 por espacio",madeForShape:"Este artículo está hecho para el cuerpo {shape}",shapeOnly:"Solo {shape}",removeFromCart:"Quitar {name} del carrito",remove:"Quitar",itemCount:"{count, plural, one {# artículo} other {# artículos}}",checkout:"Finalizar compra"},Tb={male:"Masculino",female:"Femenino"},Ab={collectibles:{title:"Explorar coleccionables",searchTitle:"Resultados para «{query}»",description:"Explora miles de wearables y emotes para tu avatar de Decentraland. Filtra por categoría, rareza y precio para encontrar tu próximo look."},item:{notFoundTitle:"Artículo no disponible",fallbackDescription:"{name}: {rarity} {category} de {creator} en la Decentraland Shop."},collection:{description:"Explora todos los wearables y emotes de la colección {name} en la Decentraland Shop."},creator:{description:"Descubre wearables y emotes de {name} en la Decentraland Shop."},import:{title:"Importar artículos"},storeSettings:{title:"Configuración de la tienda"},success:{title:"Compra completada"},notFound:{title:"Página no encontrada"}},Ib={errors:$3,nav:D3,search:q3,collection:U3,collectionCard:V3,categories:H3,creator:z3,storeSettings:G3,notFound:W3,cart:Z3,getCredits:K3,filter:Y3,assetCard:Q3,buyModal:J3,cartCheckout:X3,marketCheckout:eb,itemDetail:tb,success:rb,itemPreview:nb,assets:ob,myAssets:sb,myPurchases:ab,myFavorites:ib,overview:cb,app:lb,cartPopover:ub,filterBar:db,addAll:fb,footer:hb,collectionCarousel:pb,weekTopCreators:mb,loadMore:gb,recentlyViewed:yb,followedCreators:vb,spinner:bb,successAnimation:wb,importListings:_b,sellModal:Eb,primaryList:xb,migrate:Sb,fittingRoom:Cb,bodyShape:Tb,seo:Ab},ba=["en","es"];function Xc(e,t="",r={}){for(const[n,o]of Object.entries(e)){const s=t?`${t}.${n}`:n;o&&typeof o=="object"&&!Array.isArray(o)?Xc(o,s,r):r[s]=String(o)}return r}const kb={en:Xc(F3),es:Xc(Ib)},Rb=a1(),bc={};function kl(e){return bc[e]||(bc[e]=Zv({locale:e,defaultLocale:"en",messages:kb[e],onError:()=>{}},Rb)),bc[e]}let Gf=kl("en");function Pb(e){Gf=kl(e)}function ae(e,t){return Gf.formatMessage({id:e},t)}const Nb=Et.span`
|
|
43
|
-
font-size: 12px;
|
|
44
|
-
white-space: nowrap;
|
|
45
|
-
overflow: hidden;
|
|
46
|
-
text-overflow: ellipsis;
|
|
47
|
-
`,Ob=Et.span``,Wf=wl`
|
|
48
|
-
width: 18px;
|
|
49
|
-
height: 18px;
|
|
50
|
-
border-radius: 50%;
|
|
51
|
-
object-fit: cover;
|
|
52
|
-
flex: none;
|
|
53
|
-
background: ${Qe.colors.media};
|
|
54
|
-
`,jb=Et.span`
|
|
55
|
-
${Wf};
|
|
56
|
-
|
|
57
|
-
&[data-letter] {
|
|
58
|
-
display: inline-flex;
|
|
59
|
-
align-items: center;
|
|
60
|
-
justify-content: center;
|
|
61
|
-
color: ${Qe.colors.white};
|
|
62
|
-
font-size: 11px;
|
|
63
|
-
font-weight: 700;
|
|
64
|
-
line-height: 1;
|
|
65
|
-
text-transform: uppercase;
|
|
66
|
-
}
|
|
67
|
-
`,Lb=Et.img`
|
|
68
|
-
${Wf};
|
|
69
|
-
`,Ld=Et.span`
|
|
70
|
-
display: inline-flex;
|
|
71
|
-
align-items: center;
|
|
72
|
-
gap: 6px;
|
|
73
|
-
color: ${Qe.colors.muted};
|
|
74
|
-
font-size: 12px;
|
|
75
|
-
min-width: 0;
|
|
76
|
-
|
|
77
|
-
&[data-link] {
|
|
78
|
-
background: none;
|
|
79
|
-
border: 0;
|
|
80
|
-
padding: 0;
|
|
81
|
-
margin: 0;
|
|
82
|
-
font: inherit;
|
|
83
|
-
cursor: pointer;
|
|
84
|
-
max-width: 100%;
|
|
85
|
-
}
|
|
86
|
-
&[data-link]:hover [data-testid='creator-name'] {
|
|
87
|
-
color: ${Qe.colors.text};
|
|
88
|
-
text-decoration: underline;
|
|
89
|
-
}
|
|
90
|
-
`;function Bb(e){return/^0x[a-fA-F0-9]{40}$/.test(e)?`${e.slice(0,6)}…${e.slice(-4)}`:e}function Mb(e){let t=0;for(let r=0;r<e.length;r++)t=t*31+e.charCodeAt(r)>>>0;return`hsl(${t%360}, 52%, 45%)`}function Fb(e,t){var r;return(((r=e==null?void 0:e.trim())==null?void 0:r[0])||t.replace(/^0x/i,"")[0]||"?").toUpperCase()}function Rl({address:e,className:t,linkToProfile:r,hidePrefix:n}){var E,A;const o=il(),{data:s}=Na(e),i=(A=(E=s==null?void 0:s.avatar)==null?void 0:E.snapshots)==null?void 0:A.face256,[u,d]=oe.useState(!1);if(oe.useEffect(()=>d(!1),[i]),!e)return null;const h=s!=null&&s.name?Uf(s.name):Bb(e),m=!!i&&!u?f.jsx(Lb,{"data-avatar":!0,"data-testid":"creator-ava",src:i,alt:"",loading:"lazy",onError:()=>d(!0)}):f.jsx(jb,{"data-avatar":!0,"data-letter":!0,"data-testid":"creator-ava-letter",style:{backgroundColor:Mb(e)},"aria-hidden":!0,children:Fb(s==null?void 0:s.name,e)}),b=f.jsxs(f.Fragment,{children:[m,f.jsxs(Nb,{"data-testid":"creator-name",children:[n?null:ae("search.byCreator",{name:""}),f.jsx(Ob,{"data-testid":"creator-display",children:h})]})]});return r?f.jsx(Ld,{as:"button","data-link":!0,className:t,"data-testid":"creator",onClick:g=>{g.stopPropagation(),o(`/assets/creator/${e}`)},children:b}):f.jsx(Ld,{className:t,"data-testid":"creator",children:b})}function Zf(){return f.jsxs("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":!0,focusable:"false",children:[f.jsx("circle",{cx:"10",cy:"10",r:"10",fill:"#1ea672"}),f.jsx("path",{d:"M5.8 10.3l2.7 2.7 5.7-6",stroke:"#fff",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})]})}function $b({item:e,onRemove:t,onIncrement:r,onDecrement:n}){const o=!e.tokenId,s=e.quantity,i=typeof e.available=="number"&&s>=e.available,u=e.priceCredits*s;return f.jsxs("li",{className:"cartd__card",children:[f.jsxs("div",{className:"cartd__thumb",children:[e.thumbnail?f.jsx("img",{src:e.thumbnail,alt:e.name}):null,f.jsx("span",{className:"cartd__thumb-check",children:f.jsx(Zf,{})})]}),f.jsxs("div",{className:"cartd__info",children:[f.jsxs("div",{children:[f.jsx("div",{className:"cartd__name",title:e.name,children:e.name}),e.creator?f.jsx(Rl,{address:e.creator,className:"cartd__by"}):null]}),f.jsxs("div",{className:"cartd__rowbottom",children:[o?f.jsxs("div",{className:"cartd__stepper",children:[f.jsx("button",{className:"cartd__step",onClick:()=>n(e.id),disabled:s<=1,"aria-label":ae("cartPopover.decreaseQuantity",{name:e.name}),children:f.jsx("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,focusable:"false",children:f.jsx("path",{d:"M3.5 8h9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}),f.jsx("span",{className:"cartd__qty",children:s}),f.jsx("button",{className:"cartd__step",onClick:()=>r(e.id),disabled:i,"aria-label":ae("cartPopover.increaseQuantity"),children:f.jsx("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,focusable:"false",children:f.jsx("path",{d:"M8 3.5v9M3.5 8h9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})]}):null,f.jsxs("div",{className:"cartd__price",title:Fo(u),children:[f.jsx(hr,{className:"cartd__diamond"}),Kn(u)]})]})]}),f.jsx("button",{className:"cartd__del",onClick:()=>t(e.id),"aria-label":ae("cartPopover.removeItem",{name:e.name}),title:ae("cartPopover.remove"),children:f.jsx(_t,{name:"trash"})})]})}function Db(){const e=Dt(p=>p.items),t=Dt(p=>p.open),r=Dt(p=>p.justAddedCount),n=Dt(p=>p.setOpen),o=Dt(p=>p.remove),s=Dt(p=>p.increment),i=Dt(p=>p.decrement),u=oe.useRef(null),d=e.reduce((p,m)=>p+m.priceCredits*m.quantity,0),h=e.reduce((p,m)=>p+m.quantity,0);return oe.useEffect(()=>{if(!t)return;const p=m=>{m.key==="Escape"&&n(!1)};return document.addEventListener("keydown",p),()=>document.removeEventListener("keydown",p)},[t,n]),!t||h===0?null:qh.createPortal(f.jsxs("div",{className:"cartd",role:"dialog","aria-modal":"true","aria-label":ae("cartPopover.dialogLabel"),children:[f.jsx("div",{className:"cartd__scrim",onClick:()=>n(!1)}),f.jsxs("aside",{className:"cartd__panel",ref:u,children:[f.jsxs("header",{className:"cartd__head",children:[f.jsx("h2",{className:"cartd__title",children:ae("cartPopover.title",{count:h})}),f.jsx("button",{className:"cartd__close",onClick:()=>n(!1),"aria-label":ae("cartPopover.close"),children:f.jsx("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,focusable:"false",children:f.jsx("path",{d:"M5 5l14 14M19 5L5 19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})]}),f.jsxs("div",{className:"cartd__body",children:[r>0?f.jsxs("div",{className:"cartd__banner",children:[f.jsx("span",{className:"cartd__banner-check",children:f.jsx(Zf,{})}),f.jsxs("p",{children:[f.jsx("strong",{children:ae("cartPopover.bannerCount",{count:r})})," ",ae("cartPopover.bannerAdded")]})]}):null,f.jsx("ul",{className:"cartd__list",children:e.map(p=>f.jsx($b,{item:p,onRemove:o,onIncrement:s,onDecrement:i},p.id))})]}),f.jsxs("footer",{className:"cartd__foot",children:[f.jsxs("div",{className:"cartd__totalrow",children:[f.jsx("span",{className:"cartd__total-label",children:ae("cartPopover.total",{count:h})}),f.jsxs("span",{className:"cartd__total-val",title:Fo(d),children:[f.jsx(hr,{className:"cartd__total-diamond"}),Kn(d)]})]}),f.jsxs("div",{className:"cartd__ctas",children:[f.jsx(En,{className:"cartd__cta cartd__cta--primary",to:"/cart",onClick:()=>n(!1),children:ae("cartPopover.goToCart")}),f.jsx("button",{className:"cartd__cta cartd__cta--secondary",onClick:()=>n(!1),children:ae("cartPopover.continueShopping")})]})]})]})]}),document.body)}var No={},wc={exports:{}},Bd;function Pl(){return Bd||(Bd=1,(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(wc)),wc.exports}var _c={};function rn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Kf(e){if(oe.isValidElement(e)||!rn(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Kf(e[r])}),t}function Nr(e,t,r={clone:!0}){const n=r.clone?Ke({},e):e;return rn(e)&&rn(t)&&Object.keys(t).forEach(o=>{oe.isValidElement(t[o])?n[o]=t[o]:rn(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&rn(e[o])?n[o]=Nr(e[o],t[o],r):r.clone?n[o]=rn(t[o])?Kf(t[o]):t[o]:n[o]=t[o]}),n}const qb=Object.freeze(Object.defineProperty({__proto__:null,default:Nr,isPlainObject:rn},Symbol.toStringTag,{value:"Module"}));function Ko(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const Ub=Object.freeze(Object.defineProperty({__proto__:null,default:Ko},Symbol.toStringTag,{value:"Module"}));var Ec={exports:{}},Ye={};/**
|
|
91
|
-
* @license React
|
|
92
|
-
* react-is.production.js
|
|
93
|
-
*
|
|
94
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
95
|
-
*
|
|
96
|
-
* This source code is licensed under the MIT license found in the
|
|
97
|
-
* LICENSE file in the root directory of this source tree.
|
|
98
|
-
*/var Md;function Vb(){if(Md)return Ye;Md=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),E=Symbol.for("react.client.reference");function A(g){if(typeof g=="object"&&g!==null){var T=g.$$typeof;switch(T){case e:switch(g=g.type,g){case r:case o:case n:case d:case h:case b:return g;default:switch(g=g&&g.$$typeof,g){case i:case u:case m:case p:return g;case s:return g;default:return T}}case t:return T}}}return Ye.ContextConsumer=s,Ye.ContextProvider=i,Ye.Element=e,Ye.ForwardRef=u,Ye.Fragment=r,Ye.Lazy=m,Ye.Memo=p,Ye.Portal=t,Ye.Profiler=o,Ye.StrictMode=n,Ye.Suspense=d,Ye.SuspenseList=h,Ye.isContextConsumer=function(g){return A(g)===s},Ye.isContextProvider=function(g){return A(g)===i},Ye.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},Ye.isForwardRef=function(g){return A(g)===u},Ye.isFragment=function(g){return A(g)===r},Ye.isLazy=function(g){return A(g)===m},Ye.isMemo=function(g){return A(g)===p},Ye.isPortal=function(g){return A(g)===t},Ye.isProfiler=function(g){return A(g)===o},Ye.isStrictMode=function(g){return A(g)===n},Ye.isSuspense=function(g){return A(g)===d},Ye.isSuspenseList=function(g){return A(g)===h},Ye.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===o||g===n||g===d||g===h||typeof g=="object"&&g!==null&&(g.$$typeof===m||g.$$typeof===p||g.$$typeof===i||g.$$typeof===s||g.$$typeof===u||g.$$typeof===E||g.getModuleId!==void 0)},Ye.typeOf=A,Ye}var Fd;function Hb(){return Fd||(Fd=1,Ec.exports=Vb()),Ec.exports}var $d=Hb();const zb=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Yf(e){const t=`${e}`.match(zb);return t&&t[1]||""}function Qf(e,t=""){return e.displayName||e.name||Yf(e)||t}function Dd(e,t,r){const n=Qf(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Gb(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Qf(e,"Component");if(typeof e=="object")switch(e.$$typeof){case $d.ForwardRef:return Dd(e,e.render,"ForwardRef");case $d.Memo:return Dd(e,e.type,"memo");default:return}}}const Wb=Object.freeze(Object.defineProperty({__proto__:null,default:Gb,getFunctionName:Yf},Symbol.toStringTag,{value:"Module"}));function hn(e){if(typeof e!="string")throw new Error(Ko(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Zb=Object.freeze(Object.defineProperty({__proto__:null,default:hn},Symbol.toStringTag,{value:"Module"}));function Kb(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function Yb(e,t=166){let r;function n(...o){const s=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(s,t)}return n.clear=()=>{clearTimeout(r)},n}function Qb(e,t){return()=>null}function Jb(e,t){var r,n;return oe.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function Jf(e){return e&&e.ownerDocument||document}function Xb(e){return Jf(e).defaultView||window}function ew(e,t){return()=>null}function Xf(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const eh=typeof window<"u"?oe.useLayoutEffect:oe.useEffect;let qd=0;function tw(e){const[t,r]=oe.useState(e),n=e||t;return oe.useEffect(()=>{t==null&&(qd+=1,r(`mui-${qd}`))},[t]),n}const Ud=Ic.useId;function rw(e){if(Ud!==void 0){const t=Ud();return e??t}return tw(e)}function nw(e,t,r,n,o){return null}function ow({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=oe.useRef(e!==void 0),[s,i]=oe.useState(t),u=o?e:s,d=oe.useCallback(h=>{o||i(h)},[]);return[u,d]}function sw(e){const t=oe.useRef(e);return eh(()=>{t.current=e}),oe.useRef((...r)=>(0,t.current)(...r)).current}function aw(...e){return oe.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Xf(r,t)})},e)}const Vd={};function iw(e,t){const r=oe.useRef(Vd);return r.current===Vd&&(r.current=e(t)),r}const cw=[];function lw(e){oe.useEffect(e,cw)}class Ba{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ba}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function o8(){const e=iw(Ba.create).current;return lw(e.disposeEffect),e}let Ma=!0,el=!1;const uw=new Ba,dw={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function fw(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&dw[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function hw(e){e.metaKey||e.altKey||e.ctrlKey||(Ma=!0)}function xc(){Ma=!1}function pw(){this.visibilityState==="hidden"&&el&&(Ma=!0)}function mw(e){e.addEventListener("keydown",hw,!0),e.addEventListener("mousedown",xc,!0),e.addEventListener("pointerdown",xc,!0),e.addEventListener("touchstart",xc,!0),e.addEventListener("visibilitychange",pw,!0)}function gw(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Ma||fw(t)}function yw(){const e=oe.useCallback(o=>{o!=null&&mw(o.ownerDocument)},[]),t=oe.useRef(!1);function r(){return t.current?(el=!0,uw.start(100,()=>{el=!1}),t.current=!1,!0):!1}function n(o){return gw(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function tl(e,t){const r=Ke({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=Ke({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},s=t[n];r[n]={},!s||!Object.keys(s)?r[n]=o:!o||!Object.keys(o)?r[n]=s:(r[n]=Ke({},s),Object.keys(o).forEach(i=>{r[n][i]=tl(o[i],s[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function vw(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((s,i)=>{if(i){const u=t(i);u!==""&&s.push(u),r&&r[i]&&s.push(r[i])}return s},[]).join(" ")}),n}const Hd=e=>e,bw=()=>{let e=Hd;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Hd}}},th=bw(),ww={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function rh(e,t,r="Mui"){const n=ww[t];return n?`${r}-${n}`:`${th.generate(e)}-${t}`}function _w(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=rh(e,o,r)}),n}function Ew(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const xw=Object.freeze(Object.defineProperty({__proto__:null,default:Ew},Symbol.toStringTag,{value:"Module"}));function pn(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function nh(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=nh(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Sw(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=nh(e))&&(n&&(n+=" "),n+=t);return n}const oh=oe.createContext(void 0);function s8({value:e,children:t}){return f.jsx(oh.Provider,{value:e,children:t})}function Cw(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?tl(o.defaultProps,n):!o.styleOverrides&&!o.variants?tl(o,n):n}function Tw({props:e,name:t}){const r=oe.useContext(oh);return Cw({props:e,name:t,theme:{components:r}})}function Aw(e){return Tw(e)}var wn={},Sc={exports:{}},zd;function Iw(){return zd||(zd=1,(function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var s in o)({}).hasOwnProperty.call(o,s)&&(r[s]=o[s])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Sc)),Sc.exports}var Cc={exports:{}},Gd;function kw(){return Gd||(Gd=1,(function(e){function t(r,n){if(r==null)return{};var o={};for(var s in r)if({}.hasOwnProperty.call(r,s)){if(n.indexOf(s)!==-1)continue;o[s]=r[s]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Cc)),Cc.exports}function Rw(e,t){const r=sf({key:"css",prepend:e});if(t){const n=r.insert;r.insert=(...o)=>(o[1].styles.match(/^@layer\s+[^{]*$/)||(o[1].styles=`@layer mui {${o[1].styles}}`),n(...o))}return r}const Tc=new Map;function Pw(e){const{injectFirst:t,enableCssLayer:r,children:n}=e,o=oe.useMemo(()=>{const s=`${t}-${r}`;if(typeof document=="object"&&Tc.has(s))return Tc.get(s);const i=Rw(t,r);return Tc.set(s,i),i},[t,r]);return t||r?f.jsx(Am,{value:o,children:n}):n}function Nw(e){return e==null||Object.keys(e).length===0}function Ow(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(Nw(o)?r:o):t;return f.jsx(Nm,{styles:n})}function jw(e,t){return Et(e,t)}const Lw=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Wd=[];function Bw(e){return Wd[0]=e,os(Wd)}const Mw=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Ow,StyledEngineProvider:Pw,ThemeContext:ka,css:wl,default:jw,internal_processStyles:Lw,internal_serializeStyles:Bw,keyframes:ff},Symbol.toStringTag,{value:"Module"})),Fw=Zr(Mw),$w=Zr(qb),Dw=Zr(Zb),qw=Zr(Wb),Uw=["values","unit","step"],Vw=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>Ke({},r,{[n.key]:n.val}),{})};function sh(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=pn(e,Uw),s=Vw(t),i=Object.keys(s);function u(b){return`@media (min-width:${typeof t[b]=="number"?t[b]:b}${r})`}function d(b){return`@media (max-width:${(typeof t[b]=="number"?t[b]:b)-n/100}${r})`}function h(b,E){const A=i.indexOf(E);return`@media (min-width:${typeof t[b]=="number"?t[b]:b}${r}) and (max-width:${(A!==-1&&typeof t[i[A]]=="number"?t[i[A]]:E)-n/100}${r})`}function p(b){return i.indexOf(b)+1<i.length?h(b,i[i.indexOf(b)+1]):u(b)}function m(b){const E=i.indexOf(b);return E===0?u(i[1]):E===i.length-1?d(i[E]):h(b,i[i.indexOf(b)+1]).replace("@media","@media not all and")}return Ke({keys:i,values:s,up:u,down:d,between:h,only:p,not:m,unit:r},o)}const Hw={borderRadius:4};function $o(e,t){return t?Nr(e,t,{clone:!1}):e}const Nl={xs:0,sm:600,md:900,lg:1200,xl:1536},Zd={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Nl[e]}px)`};function Wr(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const s=n.breakpoints||Zd;return t.reduce((i,u,d)=>(i[s.up(s.keys[d])]=r(t[d]),i),{})}if(typeof t=="object"){const s=n.breakpoints||Zd;return Object.keys(t).reduce((i,u)=>{if(Object.keys(s.values||Nl).indexOf(u)!==-1){const d=s.up(u);i[d]=r(t[u],u)}else{const d=u;i[d]=t[d]}return i},{})}return r(t)}function zw(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const s=e.up(o);return n[s]={},n},{}))||{}}function Kd(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function Fa(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function xa(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Fa(e,r)||n,t&&(o=t(o,n,e)),o}function pt(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,s=i=>{if(i[t]==null)return null;const u=i[t],d=i.theme,h=Fa(d,n)||{};return Wr(i,u,m=>{let b=xa(h,o,m);return m===b&&typeof m=="string"&&(b=xa(h,o,`${t}${m==="default"?"":hn(m)}`,m)),r===!1?b:{[r]:b}})};return s.propTypes={},s.filterProps=[t],s}function Gw(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Ww={m:"margin",p:"padding"},Zw={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Yd={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Kw=Gw(e=>{if(e.length>2)if(Yd[e])e=Yd[e];else return[e];const[t,r]=e.split(""),n=Ww[t],o=Zw[r]||"";return Array.isArray(o)?o.map(s=>n+s):[n+o]}),Ol=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],jl=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Ol,...jl];function cs(e,t,r,n){var o;const s=(o=Fa(e,t,!1))!=null?o:r;return typeof s=="number"?i=>typeof i=="string"?i:s*i:Array.isArray(s)?i=>typeof i=="string"?i:s[i]:typeof s=="function"?s:()=>{}}function ah(e){return cs(e,"spacing",8)}function ls(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function Yw(e,t){return r=>e.reduce((n,o)=>(n[o]=ls(t,r),n),{})}function Qw(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=Kw(r),s=Yw(o,n),i=e[r];return Wr(e,i,s)}function ih(e,t){const r=ah(e.theme);return Object.keys(e).map(n=>Qw(e,t,n,r)).reduce($o,{})}function lt(e){return ih(e,Ol)}lt.propTypes={};lt.filterProps=Ol;function ut(e){return ih(e,jl)}ut.propTypes={};ut.filterProps=jl;function Jw(e=8){if(e.mui)return e;const t=ah({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(s=>{const i=t(s);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function $a(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(s=>{n[s]=o}),n),{}),r=n=>Object.keys(n).reduce((o,s)=>t[s]?$o(o,t[s](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function ir(e){return typeof e!="number"?e:`${e}px solid`}function lr(e,t){return pt({prop:e,themeKey:"borders",transform:t})}const Xw=lr("border",ir),e5=lr("borderTop",ir),t5=lr("borderRight",ir),r5=lr("borderBottom",ir),n5=lr("borderLeft",ir),o5=lr("borderColor"),s5=lr("borderTopColor"),a5=lr("borderRightColor"),i5=lr("borderBottomColor"),c5=lr("borderLeftColor"),l5=lr("outline",ir),u5=lr("outlineColor"),Da=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=cs(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:ls(t,n)});return Wr(e,e.borderRadius,r)}return null};Da.propTypes={};Da.filterProps=["borderRadius"];$a(Xw,e5,t5,r5,n5,o5,s5,a5,i5,c5,Da,l5,u5);const qa=e=>{if(e.gap!==void 0&&e.gap!==null){const t=cs(e.theme,"spacing",8),r=n=>({gap:ls(t,n)});return Wr(e,e.gap,r)}return null};qa.propTypes={};qa.filterProps=["gap"];const Ua=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=cs(e.theme,"spacing",8),r=n=>({columnGap:ls(t,n)});return Wr(e,e.columnGap,r)}return null};Ua.propTypes={};Ua.filterProps=["columnGap"];const Va=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=cs(e.theme,"spacing",8),r=n=>({rowGap:ls(t,n)});return Wr(e,e.rowGap,r)}return null};Va.propTypes={};Va.filterProps=["rowGap"];const d5=pt({prop:"gridColumn"}),f5=pt({prop:"gridRow"}),h5=pt({prop:"gridAutoFlow"}),p5=pt({prop:"gridAutoColumns"}),m5=pt({prop:"gridAutoRows"}),g5=pt({prop:"gridTemplateColumns"}),y5=pt({prop:"gridTemplateRows"}),v5=pt({prop:"gridTemplateAreas"}),b5=pt({prop:"gridArea"});$a(qa,Ua,Va,d5,f5,h5,p5,m5,g5,y5,v5,b5);function Qn(e,t){return t==="grey"?t:e}const w5=pt({prop:"color",themeKey:"palette",transform:Qn}),_5=pt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Qn}),E5=pt({prop:"backgroundColor",themeKey:"palette",transform:Qn});$a(w5,_5,E5);function tr(e){return e<=1&&e!==0?`${e*100}%`:e}const x5=pt({prop:"width",transform:tr}),Ll=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const s=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||Nl[r];return s?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:tr(r)}};return Wr(e,e.maxWidth,t)}return null};Ll.filterProps=["maxWidth"];const S5=pt({prop:"minWidth",transform:tr}),C5=pt({prop:"height",transform:tr}),T5=pt({prop:"maxHeight",transform:tr}),A5=pt({prop:"minHeight",transform:tr});pt({prop:"size",cssProperty:"width",transform:tr});pt({prop:"size",cssProperty:"height",transform:tr});const I5=pt({prop:"boxSizing"});$a(x5,Ll,S5,C5,T5,A5,I5);const us={border:{themeKey:"borders",transform:ir},borderTop:{themeKey:"borders",transform:ir},borderRight:{themeKey:"borders",transform:ir},borderBottom:{themeKey:"borders",transform:ir},borderLeft:{themeKey:"borders",transform:ir},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ir},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Da},color:{themeKey:"palette",transform:Qn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Qn},backgroundColor:{themeKey:"palette",transform:Qn},p:{style:ut},pt:{style:ut},pr:{style:ut},pb:{style:ut},pl:{style:ut},px:{style:ut},py:{style:ut},padding:{style:ut},paddingTop:{style:ut},paddingRight:{style:ut},paddingBottom:{style:ut},paddingLeft:{style:ut},paddingX:{style:ut},paddingY:{style:ut},paddingInline:{style:ut},paddingInlineStart:{style:ut},paddingInlineEnd:{style:ut},paddingBlock:{style:ut},paddingBlockStart:{style:ut},paddingBlockEnd:{style:ut},m:{style:lt},mt:{style:lt},mr:{style:lt},mb:{style:lt},ml:{style:lt},mx:{style:lt},my:{style:lt},margin:{style:lt},marginTop:{style:lt},marginRight:{style:lt},marginBottom:{style:lt},marginLeft:{style:lt},marginX:{style:lt},marginY:{style:lt},marginInline:{style:lt},marginInlineStart:{style:lt},marginInlineEnd:{style:lt},marginBlock:{style:lt},marginBlockStart:{style:lt},marginBlockEnd:{style:lt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:qa},rowGap:{style:Va},columnGap:{style:Ua},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:tr},maxWidth:{style:Ll},minWidth:{transform:tr},height:{transform:tr},maxHeight:{transform:tr},minHeight:{transform:tr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function k5(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function R5(e,t){return typeof e=="function"?e(t):e}function ch(){function e(r,n,o,s){const i={[r]:n,theme:o},u=s[r];if(!u)return{[r]:n};const{cssProperty:d=r,themeKey:h,transform:p,style:m}=u;if(n==null)return null;if(h==="typography"&&n==="inherit")return{[r]:n};const b=Fa(o,h)||{};return m?m(i):Wr(i,n,A=>{let g=xa(b,p,A);return A===g&&typeof A=="string"&&(g=xa(b,p,`${r}${A==="default"?"":hn(A)}`,A)),d===!1?g:{[d]:g}})}function t(r){var n;const{sx:o,theme:s={},nested:i}=r||{};if(!o)return null;const u=(n=s.unstable_sxConfig)!=null?n:us;function d(h){let p=h;if(typeof h=="function")p=h(s);else if(typeof h!="object")return h;if(!p)return null;const m=zw(s.breakpoints),b=Object.keys(m);let E=m;return Object.keys(p).forEach(A=>{const g=R5(p[A],s);if(g!=null)if(typeof g=="object")if(u[A])E=$o(E,e(A,g,s,u));else{const T=Wr({theme:s},g,H=>({[A]:H}));k5(T,g)?E[A]=t({sx:g,theme:s,nested:!0}):E=$o(E,T)}else E=$o(E,e(A,g,s,u))}),!i&&s.modularCssLayers?{"@layer sx":Kd(b,E)}:Kd(b,E)}return Array.isArray(o)?o.map(d):d(o)}return t}const Ha=ch();Ha.filterProps=["sx"];function lh(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const P5=["breakpoints","palette","spacing","shape"];function uh(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:s={}}=e,i=pn(e,P5),u=sh(r),d=Jw(o);let h=Nr({breakpoints:u,direction:"ltr",components:{},palette:Ke({mode:"light"},n),spacing:d,shape:Ke({},Hw,s)},i);return h.applyStyles=lh,h=t.reduce((p,m)=>Nr(p,m),h),h.unstable_sxConfig=Ke({},us,i==null?void 0:i.unstable_sxConfig),h.unstable_sx=function(m){return Ha({sx:m,theme:this})},h}const N5=Object.freeze(Object.defineProperty({__proto__:null,default:uh,private_createBreakpoints:sh,unstable_applyStyles:lh},Symbol.toStringTag,{value:"Module"})),O5=Zr(N5),j5=["sx"],L5=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:us;return Object.keys(e).forEach(s=>{o[s]?n.systemProps[s]=e[s]:n.otherProps[s]=e[s]}),n};function B5(e){const{sx:t}=e,r=pn(e,j5),{systemProps:n,otherProps:o}=L5(r);let s;return Array.isArray(t)?s=[n,...t]:typeof t=="function"?s=(...i)=>{const u=t(...i);return rn(u)?Ke({},n,u):n}:s=Ke({},n,t),Ke({},o,{sx:s})}const M5=Object.freeze(Object.defineProperty({__proto__:null,default:Ha,extendSxProp:B5,unstable_createStyleFunctionSx:ch,unstable_defaultSxConfig:us},Symbol.toStringTag,{value:"Module"})),F5=Zr(M5);var Qd;function $5(){if(Qd)return wn;Qd=1;var e=Pl();Object.defineProperty(wn,"__esModule",{value:!0}),wn.default=Y,wn.shouldForwardProp=A,wn.systemDefaultTheme=void 0;var t=e(Iw()),r=e(kw()),n=m(Fw),o=$w;e(Dw),e(qw);var s=e(O5),i=e(F5);const u=["ownerState"],d=["variants"],h=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(q){if(typeof WeakMap!="function")return null;var S=new WeakMap,$=new WeakMap;return(p=function(J){return J?$:S})(q)}function m(q,S){if(q&&q.__esModule)return q;if(q===null||typeof q!="object"&&typeof q!="function")return{default:q};var $=p(S);if($&&$.has(q))return $.get(q);var J={__proto__:null},W=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ne in q)if(ne!=="default"&&Object.prototype.hasOwnProperty.call(q,ne)){var X=W?Object.getOwnPropertyDescriptor(q,ne):null;X&&(X.get||X.set)?Object.defineProperty(J,ne,X):J[ne]=q[ne]}return J.default=q,$&&$.set(q,J),J}function b(q){return Object.keys(q).length===0}function E(q){return typeof q=="string"&&q.charCodeAt(0)>96}function A(q){return q!=="ownerState"&&q!=="theme"&&q!=="sx"&&q!=="as"}function g(q,S){return S&&q&&typeof q=="object"&&q.styles&&!q.styles.startsWith("@layer")&&(q.styles=`@layer ${S}{${String(q.styles)}}`),q}const T=wn.systemDefaultTheme=(0,s.default)(),H=q=>q&&q.charAt(0).toLowerCase()+q.slice(1);function v({defaultTheme:q,theme:S,themeId:$}){return b(S)?q:S[$]||S}function k(q){return q?(S,$)=>$[q]:null}function w(q,S,$){let{ownerState:J}=S,W=(0,r.default)(S,u);const ne=typeof q=="function"?q((0,t.default)({ownerState:J},W)):q;if(Array.isArray(ne))return ne.flatMap(X=>w(X,(0,t.default)({ownerState:J},W),$));if(ne&&typeof ne=="object"&&Array.isArray(ne.variants)){const{variants:X=[]}=ne;let P=(0,r.default)(ne,d);return X.forEach(K=>{let Z=!0;if(typeof K.props=="function"?Z=K.props((0,t.default)({ownerState:J},W,J)):Object.keys(K.props).forEach(D=>{(J==null?void 0:J[D])!==K.props[D]&&W[D]!==K.props[D]&&(Z=!1)}),Z){Array.isArray(P)||(P=[P]);const D=typeof K.style=="function"?K.style((0,t.default)({ownerState:J},W,J)):K.style;P.push($?g((0,n.internal_serializeStyles)(D),$):D)}}),P}return $?g((0,n.internal_serializeStyles)(ne),$):ne}function Y(q={}){const{themeId:S,defaultTheme:$=T,rootShouldForwardProp:J=A,slotShouldForwardProp:W=A}=q,ne=X=>(0,i.default)((0,t.default)({},X,{theme:v((0,t.default)({},X,{defaultTheme:$,themeId:S}))}));return ne.__mui_systemSx=!0,(X,B={})=>{(0,n.internal_processStyles)(X,we=>we.filter(xe=>!(xe!=null&&xe.__mui_systemSx)));const{name:P,slot:K,skipVariantsResolver:Z,skipSx:D,overridesResolver:U=k(H(K))}=B,R=(0,r.default)(B,h),O=P&&P.startsWith("Mui")||K?"components":"custom",z=Z!==void 0?Z:K&&K!=="Root"&&K!=="root"||!1,Q=D||!1;let ce,ie=A;K==="Root"||K==="root"?ie=J:K?ie=W:E(X)&&(ie=void 0);const le=(0,n.default)(X,(0,t.default)({shouldForwardProp:ie,label:ce},R)),de=we=>typeof we=="function"&&we.__emotion_real!==we||(0,o.isPlainObject)(we)?xe=>{const ye=v({theme:xe.theme,defaultTheme:$,themeId:S});return w(we,(0,t.default)({},xe,{theme:ye}),ye.modularCssLayers?O:void 0)}:we,Re=(we,...xe)=>{let ye=de(we);const He=xe?xe.map(de):[];P&&U&&He.push(fe=>{const ve=v((0,t.default)({},fe,{defaultTheme:$,themeId:S}));if(!ve.components||!ve.components[P]||!ve.components[P].styleOverrides)return null;const Ae=ve.components[P].styleOverrides,Le={};return Object.entries(Ae).forEach(([Be,ft])=>{Le[Be]=w(ft,(0,t.default)({},fe,{theme:ve}),ve.modularCssLayers?"theme":void 0)}),U(fe,Le)}),P&&!z&&He.push(fe=>{var ve;const Ae=v((0,t.default)({},fe,{defaultTheme:$,themeId:S})),Le=Ae==null||(ve=Ae.components)==null||(ve=ve[P])==null?void 0:ve.variants;return w({variants:Le},(0,t.default)({},fe,{theme:Ae}),Ae.modularCssLayers?"theme":void 0)}),Q||He.push(ne);const qe=He.length-xe.length;if(Array.isArray(we)&&qe>0){const fe=new Array(qe).fill("");ye=[...we,...fe],ye.raw=[...we.raw,...fe]}const he=le(ye,...He);return X.muiName&&(he.muiName=X.muiName),he};return le.withConfig&&(Re.withConfig=le.withConfig),Re}}return wn}var D5=$5();const q5=Ca(D5);function U5(e,t){return Ke({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ct={};const V5=Zr(Ub),H5=Zr(xw);var Jd;function z5(){if(Jd)return ct;Jd=1;var e=Pl();Object.defineProperty(ct,"__esModule",{value:!0}),ct.alpha=A,ct.blend=q,ct.colorChannel=void 0,ct.darken=T,ct.decomposeColor=i,ct.emphasize=w,ct.getContrastRatio=E,ct.getLuminance=b,ct.hexToRgb=o,ct.hslToRgb=m,ct.lighten=v,ct.private_safeAlpha=g,ct.private_safeColorChannel=void 0,ct.private_safeDarken=H,ct.private_safeEmphasize=Y,ct.private_safeLighten=k,ct.recomposeColor=h,ct.rgbToHex=p;var t=e(V5),r=e(H5);function n(S,$=0,J=1){return(0,r.default)(S,$,J)}function o(S){S=S.slice(1);const $=new RegExp(`.{1,${S.length>=6?2:1}}`,"g");let J=S.match($);return J&&J[0].length===1&&(J=J.map(W=>W+W)),J?`rgb${J.length===4?"a":""}(${J.map((W,ne)=>ne<3?parseInt(W,16):Math.round(parseInt(W,16)/255*1e3)/1e3).join(", ")})`:""}function s(S){const $=S.toString(16);return $.length===1?`0${$}`:$}function i(S){if(S.type)return S;if(S.charAt(0)==="#")return i(o(S));const $=S.indexOf("("),J=S.substring(0,$);if(["rgb","rgba","hsl","hsla","color"].indexOf(J)===-1)throw new Error((0,t.default)(9,S));let W=S.substring($+1,S.length-1),ne;if(J==="color"){if(W=W.split(" "),ne=W.shift(),W.length===4&&W[3].charAt(0)==="/"&&(W[3]=W[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(ne)===-1)throw new Error((0,t.default)(10,ne))}else W=W.split(",");return W=W.map(X=>parseFloat(X)),{type:J,values:W,colorSpace:ne}}const u=S=>{const $=i(S);return $.values.slice(0,3).map((J,W)=>$.type.indexOf("hsl")!==-1&&W!==0?`${J}%`:J).join(" ")};ct.colorChannel=u;const d=(S,$)=>{try{return u(S)}catch{return S}};ct.private_safeColorChannel=d;function h(S){const{type:$,colorSpace:J}=S;let{values:W}=S;return $.indexOf("rgb")!==-1?W=W.map((ne,X)=>X<3?parseInt(ne,10):ne):$.indexOf("hsl")!==-1&&(W[1]=`${W[1]}%`,W[2]=`${W[2]}%`),$.indexOf("color")!==-1?W=`${J} ${W.join(" ")}`:W=`${W.join(", ")}`,`${$}(${W})`}function p(S){if(S.indexOf("#")===0)return S;const{values:$}=i(S);return`#${$.map((J,W)=>s(W===3?Math.round(255*J):J)).join("")}`}function m(S){S=i(S);const{values:$}=S,J=$[0],W=$[1]/100,ne=$[2]/100,X=W*Math.min(ne,1-ne),B=(Z,D=(Z+J/30)%12)=>ne-X*Math.max(Math.min(D-3,9-D,1),-1);let P="rgb";const K=[Math.round(B(0)*255),Math.round(B(8)*255),Math.round(B(4)*255)];return S.type==="hsla"&&(P+="a",K.push($[3])),h({type:P,values:K})}function b(S){S=i(S);let $=S.type==="hsl"||S.type==="hsla"?i(m(S)).values:S.values;return $=$.map(J=>(S.type!=="color"&&(J/=255),J<=.03928?J/12.92:((J+.055)/1.055)**2.4)),Number((.2126*$[0]+.7152*$[1]+.0722*$[2]).toFixed(3))}function E(S,$){const J=b(S),W=b($);return(Math.max(J,W)+.05)/(Math.min(J,W)+.05)}function A(S,$){return S=i(S),$=n($),(S.type==="rgb"||S.type==="hsl")&&(S.type+="a"),S.type==="color"?S.values[3]=`/${$}`:S.values[3]=$,h(S)}function g(S,$,J){try{return A(S,$)}catch{return S}}function T(S,$){if(S=i(S),$=n($),S.type.indexOf("hsl")!==-1)S.values[2]*=1-$;else if(S.type.indexOf("rgb")!==-1||S.type.indexOf("color")!==-1)for(let J=0;J<3;J+=1)S.values[J]*=1-$;return h(S)}function H(S,$,J){try{return T(S,$)}catch{return S}}function v(S,$){if(S=i(S),$=n($),S.type.indexOf("hsl")!==-1)S.values[2]+=(100-S.values[2])*$;else if(S.type.indexOf("rgb")!==-1)for(let J=0;J<3;J+=1)S.values[J]+=(255-S.values[J])*$;else if(S.type.indexOf("color")!==-1)for(let J=0;J<3;J+=1)S.values[J]+=(1-S.values[J])*$;return h(S)}function k(S,$,J){try{return v(S,$)}catch{return S}}function w(S,$=.15){return b(S)>.5?T(S,$):v(S,$)}function Y(S,$,J){try{return w(S,$)}catch{return S}}function q(S,$,J,W=1){const ne=(K,Z)=>Math.round((K**(1/W)*(1-J)+Z**(1/W)*J)**W),X=i(S),B=i($),P=[ne(X.values[0],B.values[0]),ne(X.values[1],B.values[1]),ne(X.values[2],B.values[2])];return h({type:"rgb",values:P})}return ct}var rl=z5();const Yo={black:"#000",white:"#fff"},G5={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Hn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},zn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Oo={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Gn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Wn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Zn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},W5=["mode","contrastThreshold","tonalOffset"],Xd={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Yo.white,default:Yo.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Ac={text:{primary:Yo.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Yo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function e2(e,t,r,n){const o=n.light||n,s=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=rl.lighten(e.main,o):t==="dark"&&(e.dark=rl.darken(e.main,s)))}function Z5(e="light"){return e==="dark"?{main:Gn[200],light:Gn[50],dark:Gn[400]}:{main:Gn[700],light:Gn[400],dark:Gn[800]}}function K5(e="light"){return e==="dark"?{main:Hn[200],light:Hn[50],dark:Hn[400]}:{main:Hn[500],light:Hn[300],dark:Hn[700]}}function Y5(e="light"){return e==="dark"?{main:zn[500],light:zn[300],dark:zn[700]}:{main:zn[700],light:zn[400],dark:zn[800]}}function Q5(e="light"){return e==="dark"?{main:Wn[400],light:Wn[300],dark:Wn[700]}:{main:Wn[700],light:Wn[500],dark:Wn[900]}}function J5(e="light"){return e==="dark"?{main:Zn[400],light:Zn[300],dark:Zn[700]}:{main:Zn[800],light:Zn[500],dark:Zn[900]}}function X5(e="light"){return e==="dark"?{main:Oo[400],light:Oo[300],dark:Oo[700]}:{main:"#ed6c02",light:Oo[500],dark:Oo[900]}}function e_(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=pn(e,W5),s=e.primary||Z5(t),i=e.secondary||K5(t),u=e.error||Y5(t),d=e.info||Q5(t),h=e.success||J5(t),p=e.warning||X5(t);function m(g){return rl.getContrastRatio(g,Ac.text.primary)>=r?Ac.text.primary:Xd.text.primary}const b=({color:g,name:T,mainShade:H=500,lightShade:v=300,darkShade:k=700})=>{if(g=Ke({},g),!g.main&&g[H]&&(g.main=g[H]),!g.hasOwnProperty("main"))throw new Error(Ko(11,T?` (${T})`:"",H));if(typeof g.main!="string")throw new Error(Ko(12,T?` (${T})`:"",JSON.stringify(g.main)));return e2(g,"light",v,n),e2(g,"dark",k,n),g.contrastText||(g.contrastText=m(g.main)),g},E={dark:Ac,light:Xd};return Nr(Ke({common:Ke({},Yo),mode:t,primary:b({color:s,name:"primary"}),secondary:b({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:b({color:u,name:"error"}),warning:b({color:p,name:"warning"}),info:b({color:d,name:"info"}),success:b({color:h,name:"success"}),grey:G5,contrastThreshold:r,getContrastText:m,augmentColor:b,tonalOffset:n},E[t]),o)}const t_=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function r_(e){return Math.round(e*1e5)/1e5}const t2={textTransform:"uppercase"},r2='"Roboto", "Helvetica", "Arial", sans-serif';function n_(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=r2,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:h=16,allVariants:p,pxToRem:m}=r,b=pn(r,t_),E=o/14,A=m||(H=>`${H/h*E}rem`),g=(H,v,k,w,Y)=>Ke({fontFamily:n,fontWeight:H,fontSize:A(v),lineHeight:k},n===r2?{letterSpacing:`${r_(w/v)}em`}:{},Y,p),T={h1:g(s,96,1.167,-1.5),h2:g(s,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(u,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(u,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(u,14,1.75,.4,t2),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,t2),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Nr(Ke({htmlFontSize:h,pxToRem:A,fontFamily:n,fontSize:o,fontWeightLight:s,fontWeightRegular:i,fontWeightMedium:u,fontWeightBold:d},T),b,{clone:!1})}const o_=.2,s_=.14,a_=.12;function at(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${o_})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${s_})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${a_})`].join(",")}const i_=["none",at(0,2,1,-1,0,1,1,0,0,1,3,0),at(0,3,1,-2,0,2,2,0,0,1,5,0),at(0,3,3,-2,0,3,4,0,0,1,8,0),at(0,2,4,-1,0,4,5,0,0,1,10,0),at(0,3,5,-1,0,5,8,0,0,1,14,0),at(0,3,5,-1,0,6,10,0,0,1,18,0),at(0,4,5,-2,0,7,10,1,0,2,16,1),at(0,5,5,-3,0,8,10,1,0,3,14,2),at(0,5,6,-3,0,9,12,1,0,3,16,2),at(0,6,6,-3,0,10,14,1,0,4,18,3),at(0,6,7,-4,0,11,15,1,0,4,20,3),at(0,7,8,-4,0,12,17,2,0,5,22,4),at(0,7,8,-4,0,13,19,2,0,5,24,4),at(0,7,9,-4,0,14,21,2,0,5,26,4),at(0,8,9,-5,0,15,22,2,0,6,28,5),at(0,8,10,-5,0,16,24,2,0,6,30,5),at(0,8,11,-5,0,17,26,2,0,6,32,5),at(0,9,11,-5,0,18,28,2,0,7,34,6),at(0,9,12,-6,0,19,29,2,0,7,36,6),at(0,10,13,-6,0,20,31,3,0,8,38,7),at(0,10,13,-6,0,21,33,3,0,8,40,7),at(0,10,14,-6,0,22,35,3,0,8,42,7),at(0,11,14,-7,0,23,36,3,0,9,44,8),at(0,11,15,-7,0,24,38,3,0,9,46,8)],c_=["duration","easing","delay"],l_={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},u_={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function n2(e){return`${Math.round(e)}ms`}function d_(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function f_(e){const t=Ke({},l_,e.easing),r=Ke({},u_,e.duration);return Ke({getAutoHeightDuration:d_,create:(o=["all"],s={})=>{const{duration:i=r.standard,easing:u=t.easeInOut,delay:d=0}=s;return pn(s,c_),(Array.isArray(o)?o:[o]).map(h=>`${h} ${typeof i=="string"?i:n2(i)} ${u} ${typeof d=="string"?d:n2(d)}`).join(",")}},e,{easing:t,duration:r})}const h_={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},p_=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function dh(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:s={}}=e,i=pn(e,p_);if(e.vars)throw new Error(Ko(18));const u=e_(n),d=uh(e);let h=Nr(d,{mixins:U5(d.breakpoints,r),palette:u,shadows:i_.slice(),typography:n_(u,s),transitions:f_(o),zIndex:Ke({},h_)});return h=Nr(h,i),h=t.reduce((p,m)=>Nr(p,m),h),h.unstable_sxConfig=Ke({},us,i==null?void 0:i.unstable_sxConfig),h.unstable_sx=function(m){return Ha({sx:m,theme:this})},h}function a8(...e){return dh(...e)}const m_=dh(),g_="$$material";function y_(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const v_=e=>y_(e)&&e!=="classes",b_=q5({themeId:g_,defaultTheme:m_,rootShouldForwardProp:v_});function w_(e){return rh("MuiSvgIcon",e)}_w("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const __=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],E_=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${hn(t)}`,`fontSize${hn(r)}`]};return vw(o,w_,n)},x_=b_("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${hn(r.color)}`],t[`fontSize${hn(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,s,i,u,d,h,p,m,b,E,A;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(i=s.pxToRem)==null?void 0:i.call(s,20))||"1.25rem",medium:((u=e.typography)==null||(d=u.pxToRem)==null?void 0:d.call(u,24))||"1.5rem",large:((h=e.typography)==null||(p=h.pxToRem)==null?void 0:p.call(h,35))||"2.1875rem"}[t.fontSize],color:(m=(b=(e.vars||e).palette)==null||(b=b[t.color])==null?void 0:b.main)!=null?m:{action:(E=(e.vars||e).palette)==null||(E=E.action)==null?void 0:E.active,disabled:(A=(e.vars||e).palette)==null||(A=A.action)==null?void 0:A.disabled,inherit:void 0}[t.color]}}),nl=oe.forwardRef(function(t,r){const n=Aw({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:i="inherit",component:u="svg",fontSize:d="medium",htmlColor:h,inheritViewBox:p=!1,titleAccess:m,viewBox:b="0 0 24 24"}=n,E=pn(n,__),A=oe.isValidElement(o)&&o.type==="svg",g=Ke({},n,{color:i,component:u,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:b,hasSvgAsChild:A}),T={};p||(T.viewBox=b);const H=E_(g);return f.jsxs(x_,Ke({as:u,className:Sw(H.root,s),focusable:"false",color:h,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:r},T,E,A&&o.props,{ownerState:g,children:[A?o.props.children:o,m?f.jsx("title",{children:m}):null]}))});nl.muiName="SvgIcon";function S_(e,t){function r(n,o){return f.jsx(nl,Ke({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=nl.muiName,oe.memo(oe.forwardRef(r))}const C_={configure:e=>{th.configure(e)}},T_=Object.freeze(Object.defineProperty({__proto__:null,capitalize:hn,createChainedFunction:Kb,createSvgIcon:S_,debounce:Yb,deprecatedPropType:Qb,isMuiElement:Jb,ownerDocument:Jf,ownerWindow:Xb,requirePropFactory:ew,setRef:Xf,unstable_ClassNameGenerator:C_,unstable_useEnhancedEffect:eh,unstable_useId:rw,unsupportedProp:nw,useControlled:ow,useEventCallback:sw,useForkRef:aw,useIsFocusVisible:yw},Symbol.toStringTag,{value:"Module"})),A_=Zr(T_);var o2;function I_(){return o2||(o2=1,(function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=A_})(_c)),_c}var s2;function k_(){if(s2)return No;s2=1;var e=Pl();Object.defineProperty(No,"__esModule",{value:!0}),No.default=void 0;var t=e(I_()),r=Uh();return No.default=(0,t.default)((0,r.jsx)("path",{d:"M18.3 5.71a.9959.9959 0 0 0-1.41 0L12 10.59 7.11 5.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"}),"CloseRounded"),No}var R_=k_();const fh=Ca(R_),za=`${Ze.nftApiUrl}/v1`;function hh(e){if(!e)return 0;try{return Math.ceil(Number(B2(e))*10)}catch{return 0}}function i8(e){if(!e)return 0;try{const t=BigInt(e),r=10n**16n;return Number((t+r-1n)/r)}catch{return 0}}async function c8(e,t){var n,o,s;const r=new URLSearchParams({contractAddresses:e,itemId:t,first:"1"});try{const i=await fetch(`${Ze.nftApiUrl}/v2/catalog?${r.toString()}`);if(!i.ok)return"";const{data:u}=await i.json(),d=(n=u==null?void 0:u[0])==null?void 0:n.data;return(((o=d==null?void 0:d.wearable)==null?void 0:o.description)??((s=d==null?void 0:d.emote)==null?void 0:s.description)??"").trim()}catch{return""}}async function l8(e){const{listings:t}=await Ga({contractAddress:e,first:200}),r={};for(const n of t)n.listingType!=="primary"||n.itemId==null||(r[String(n.itemId)]={isOnSale:!0,priceCredits:n.priceCredits,tradeId:n.tradeId});return r}async function P_(e,t){var s;const r=new URLSearchParams({contractAddress:e,tokenId:t,first:"1"}),n=await fetch(`${za}/nfts?${r.toString()}`);if(!n.ok)return null;const{data:o}=await n.json();return((s=o==null?void 0:o[0])==null?void 0:s.nft)??null}function Bl(e){return{id:e.tradeId,tradeId:e.tradeId,name:e.name,creator:e.creator,contractAddress:e.contractAddress,itemId:e.itemId,tokenId:e.tokenId??void 0,category:e.category,wearableCategory:e.wearableCategory??void 0,rarity:e.rarity,network:e.network,chainId:e.chainId,thumbnail:e.thumbnail,priceCredits:e.priceCredits,gender:e.gender??null,isSmart:e.isSmart??!1,available:e.listingType==="primary"?e.available:void 0,compareAtCredits:e.compareAtCredits!=null&&e.compareAtCredits>e.priceCredits?e.compareAtCredits:void 0,saleEndsAt:e.saleEndsAt!=null?e.saleEndsAt*1e3:void 0}}async function Ga(e){var o,s;const t=new URLSearchParams;(e.category==="wearable"||e.category==="emote")&&t.set("category",e.category),e.first!=null&&t.set("first",String(e.first)),e.skip!=null&&t.set("skip",String(e.skip)),e.contractAddress&&t.set("contractAddress",e.contractAddress),e.itemId!=null&&t.set("itemId",e.itemId),e.creator&&t.set("creator",e.creator),(o=e.rarities)!=null&&o.length&&t.set("rarity",e.rarities.join(",")),(s=e.wearableCategories)!=null&&s.length&&t.set("wearableCategory",e.wearableCategories.join(",")),e.minPriceCredits!=null&&t.set("minPriceCredits",String(e.minPriceCredits)),e.maxPriceCredits!=null&&t.set("maxPriceCredits",String(e.maxPriceCredits)),e.search&&t.set("search",e.search),e.sortBy&&t.set("sortBy",e.sortBy);const r=await fetch(`${Ze.marketplaceServerUrl}/v3/catalog/shop?${t.toString()}`);if(!r.ok)throw new Error(`fetchShopListings ${r.status}`);const n=await r.json();return{listings:n.data??[],total:n.total??0}}async function u8(e,t){const{listings:r}=await Ga({contractAddress:e,itemId:t,first:1});return r[0]?Bl(r[0]):null}async function ph({first:e=100,...t}={}){const{listings:r,total:n}=await Ga({...t,first:e});return{items:r.map(Bl),total:n}}function N_(e){return{...Bl(e),source:e.source,manaWei:e.manaWei??null}}async function d8({first:e=100,...t}={}){var i,u;const r=new URLSearchParams;(t.category==="wearable"||t.category==="emote")&&r.set("category",t.category),r.set("first",String(e)),t.skip!=null&&r.set("skip",String(t.skip)),t.contractAddress&&r.set("contractAddress",t.contractAddress),t.itemId!=null&&r.set("itemId",t.itemId),t.creator&&r.set("creator",t.creator),(i=t.rarities)!=null&&i.length&&r.set("rarity",t.rarities.join(",")),(u=t.wearableCategories)!=null&&u.length&&r.set("wearableCategory",t.wearableCategories.join(",")),t.minPriceCredits!=null&&r.set("minPriceCredits",String(t.minPriceCredits)),t.maxPriceCredits!=null&&r.set("maxPriceCredits",String(t.maxPriceCredits)),t.search&&r.set("search",t.search),t.sortBy&&r.set("sortBy",t.sortBy);const n=await fetch(`${Ze.marketplaceServerUrl}/v3/catalog/unified?${r.toString()}`);if(!n.ok)throw new Error(`fetchUnified ${n.status}`);const o=await n.json(),s=o.data??[];return{items:s.map(N_),total:o.total??s.length}}async function f8(e,t,r){try{const n=new URLSearchParams({owner:e.toLowerCase(),contractAddress:t,itemId:r,first:"1"}),o=await fetch(`${za}/nfts?${n.toString()}`);if(!o.ok)return!1;const{total:s}=await o.json();return(s??0)>0}catch{return!1}}async function h8(e,{category:t="wearable",first:r=48,skip:n=0}={}){const o=new URLSearchParams({owner:e.toLowerCase(),category:t,first:String(r),skip:String(n),sortBy:"newest",orderDirection:"desc"}),s=await fetch(`${za}/nfts?${o.toString()}`);if(!s.ok)throw new Error(`Failed to fetch assets (${s.status})`);const{data:i,total:u}=await s.json();return{assets:i.map(h=>{var p,m,b,E,A;return{id:h.nft.id,contractAddress:h.nft.contractAddress,tokenId:h.nft.tokenId,itemId:h.nft.itemId??null,name:h.nft.name,category:h.nft.category,image:h.nft.image,rarity:((m=(p=h.nft.data)==null?void 0:p.wearable)==null?void 0:m.rarity)??((E=(b=h.nft.data)==null?void 0:b.emote)==null?void 0:E.rarity),network:h.nft.network,chainId:h.nft.chainId,isOnSale:h.order!=null,listingPrice:h.order?hh(h.order.price):void 0,tradeId:(A=h.order)==null?void 0:A.tradeId}}),total:u}}const O_="dcl:marketplace";async function p8(e,t){const{TradeService:r}=await xt(async()=>{const{TradeService:o}=await import("./TradeService-C8gY38rG.js");return{TradeService:o}},__vite__mapDeps([11,7,1,6,2,12,9,10,8]));return new r(O_,Ze.marketplaceServerUrl,()=>t).addTrade(e)}class mh extends Error{constructor(t){super("fetchTrade 404"),this.tradeId=t,this.name="TradeNotFoundError"}}async function Ml(e){var n;const t=await fetch(`${Ze.marketplaceServerUrl}/v1/trades/${e}`);if(t.status===404)throw(n=t.body)==null||n.cancel(),new mh(e);if(!t.ok)throw new Error(`fetchTrade ${t.status}`);const r=await t.json();return r.data??r}async function m8(e){if(e.tradeId)try{return await Ml(e.tradeId)}catch(t){if(!(t instanceof mh)||!e.itemId)throw t}return e.itemId?L_(e.contractAddress,e.itemId):null}async function j_(e,t){const r=new URLSearchParams({contractAddress:e,itemId:t,first:"1"}),n=await fetch(`${za}/items?${r.toString()}`);if(!n.ok)return null;const{data:o}=await n.json();return(o==null?void 0:o[0])??null}async function g8(e){var d,h;let t;try{t=await Ml(e)}catch{return null}const r=(d=t.sent)==null?void 0:d[0],n=(h=t.received)==null?void 0:h[0],o=hh(n==null?void 0:n.amount),s=(r==null?void 0:r.contractAddress)??"",i=(r==null?void 0:r.value)??"";if(!s)return{name:"Item",thumbnail:"",credits:o,contractAddress:""};if((r==null?void 0:r.assetType)===nr.TradeAssetType.COLLECTION_ITEM){const p=await j_(s,i);return{name:(p==null?void 0:p.name)??"Item",thumbnail:(p==null?void 0:p.thumbnail)??"",credits:o,contractAddress:s,itemId:i}}const u=await P_(s,i);return{name:(u==null?void 0:u.name)??`#${i}`,thumbnail:(u==null?void 0:u.image)??"",credits:o,contractAddress:s,tokenId:i}}async function L_(e,t){var o;const{listings:r}=await Ga({contractAddress:e,itemId:t,first:1}),n=(o=r[0])==null?void 0:o.tradeId;return n?Ml(n):null}async function B_(e,t=4){const r=new URLSearchParams({search:e,first:String(t)}),n=await fetch(`${Ze.nftApiUrl}/v1/collections?${r.toString()}`);if(!n.ok)throw new Error(`fetchCollectionSuggestions ${n.status}`);const{data:o}=await n.json();return(o??[]).filter(s=>s.contractAddress&&s.name).map(s=>({contractAddress:s.contractAddress,name:s.name,creator:s.creator??""}))}async function M_(e,t){var i,u,d;const r=new URLSearchParams({category:"ens",search:e,first:String(t)}),n=await fetch(`${Ze.nftApiUrl}/v1/nfts?${r.toString()}`);if(!n.ok)throw new Error(`fetchNameOwners ${n.status}`);const{data:o}=await n.json(),s=new Map;for(const h of o??[]){const p=(u=(i=h.nft)==null?void 0:i.owner)==null?void 0:u.toLowerCase(),m=(d=h.nft)==null?void 0:d.name;p&&m&&!s.has(p)&&s.set(p,m)}return s}async function F_(e){if(e.length===0)return new Map;const t=new URLSearchParams({sortBy:"most_collections"});for(const s of e)t.append("address",s);const r=await fetch(`${Ze.nftApiUrl}/v1/accounts?${t.toString()}`);if(!r.ok)throw new Error(`fetchSellerCounts ${r.status}`);const{data:n}=await r.json(),o=new Map;for(const s of n??[])(s.collections??0)>0&&o.set(s.address.toLowerCase(),s.collections??0);return o}async function $_(e,t=4,r=20){const n=e.trim();if(!n)return[];const o=await M_(n,r);if(o.size===0)return[];const s=await F_([...o.keys()]),i=[...o.keys()].filter(u=>s.has(u)).slice(0,t);return i.length===0?[]:Promise.all(i.map(async u=>{var h,p;const d=await Sf(u);return{address:u,name:(d==null?void 0:d.name)||(o.get(u)??u),face:(p=(h=d==null?void 0:d.avatar)==null?void 0:h.snapshots)==null?void 0:p.face256}}))}function D_(e){if(!e||e.length===0)return null;const t=e.some(n=>n.includes("Male")),r=e.some(n=>n.includes("Female"));return t&&r?"unisex":t?"male":r?"female":null}function gh(e){var t,r,n,o,s,i,u,d;return{id:e.id,name:e.name,creator:e.creator??"",contractAddress:e.contractAddress,itemId:e.itemId??null,category:e.category,wearableCategory:((r=(t=e.data)==null?void 0:t.wearable)==null?void 0:r.category)??((o=(n=e.data)==null?void 0:n.emote)==null?void 0:o.category),rarity:e.rarity??"common",isSmart:!!((i=(s=e.data)==null?void 0:s.wearable)!=null&&i.isSmart),network:e.network,chainId:e.chainId,thumbnail:e.thumbnail??"",priceCredits:e.priceCredits??0,gender:D_((d=(u=e.data)==null?void 0:u.wearable)==null?void 0:d.bodyShapes)}}async function q_(e,{first:t=20,skip:r=0,category:n,rarities:o,wearableCategories:s,minPriceCredits:i,maxPriceCredits:u,sortBy:d}={}){const h=new URLSearchParams({contractAddress:e,first:String(t),skip:String(r),includeSocialEmotes:"false"});n&&n!=="all"&&h.set("category",n),o==null||o.forEach(A=>h.append("rarity",A)),s==null||s.forEach(A=>h.append("wearableCategory",A)),i!=null&&h.set("minPrice",String(i)),u!=null&&h.set("maxPrice",String(u)),d&&h.set("sortBy",d);const p=await fetch(`${Ze.marketplaceServerUrl}/v3/catalog/items?${h.toString()}`);if(!p.ok)throw new Error(`fetchCollectionItems ${p.status}`);const{data:m,total:b}=await p.json(),E=(m??[]).map(gh);return{items:E,total:b??r+E.length}}async function U_(e,{first:t=60,skip:r=0}={}){const n=new URLSearchParams({creator:e,first:String(t),skip:String(r),includeSocialEmotes:"false"}),o=await fetch(`${Ze.marketplaceServerUrl}/v3/catalog/items?${n.toString()}`);if(!o.ok)throw new Error(`fetchCreatorItems ${o.status}`);const{data:s,total:i}=await o.json(),u=(s??[]).map(gh);return{items:u,total:i??r+u.length}}async function y8(e,{first:t=24,skip:r=0}={}){const n=new URLSearchParams({creator:e,first:String(t),skip:String(r),sortBy:"newest"}),o=await fetch(`${Ze.nftApiUrl}/v1/collections?${n.toString()}`);if(!o.ok)throw new Error(`fetchCreatorCollections ${o.status}`);const{data:s,total:i}=await o.json(),u=(s??[]).map(d=>({contractAddress:d.contractAddress,name:d.name??"",creator:d.creator??"",itemCount:d.size??0}));return{collections:u,total:i??r+u.length}}async function v8(e){const t=new URLSearchParams({contractAddress:e,first:"1"}),r=await fetch(`${Ze.nftApiUrl}/v1/collections?${t.toString()}`);if(!r.ok)throw new Error(`fetchCollection ${r.status}`);const{data:n}=await r.json(),o=n==null?void 0:n[0];return o&&o.contractAddress?{contractAddress:o.contractAddress,name:o.name??"",creator:o.creator??""}:null}const a2="radial-gradient(#c0bdc6, #a09ba8)",i2="#E6E6E6";function yh(e){const t=typeof e=="string"?e.replace("#",""):"";return t.length<6?null:[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}function V_([e,t,r]){return .299*e+.587*t+.114*r}function vh(e){return e&&nr.Rarity.getColor(e.toLowerCase())||i2}function H_(e,t=.3){const r=yh(vh(e));return r?`rgba(${r[0]}, ${r[1]}, ${r[2]}, ${t})`:`rgba(160, 155, 168, ${t})`}function z_(e,t=120){const r=vh(e),n=yh(r);if(!n)return"#161518";const o=V_(n);if(o<=t)return r;const s=t/o,i=u=>Math.round(u*s).toString(16).padStart(2,"0");return`#${i(n[0])}${i(n[1])}${i(n[2])}`}function G_(e){const t=Uf(e??"Common");try{const r=nr.Rarity.getMaxSupply((e??"common").toLowerCase());if(r>0)return`${t} rarity — only ${r.toLocaleString()} can ever be minted`}catch{}return`${t} rarity`}function W_(e){try{const[t,r]=nr.Rarity.getGradient((e??"common").toLowerCase());return!t||!r?a2:`radial-gradient(${t}, ${r})`}catch{return a2}}const bh=4;function Z_(e,t=!0){return Gr({queryKey:["collection-preview",e],queryFn:()=>q_(e,{first:bh}),enabled:t,staleTime:5*6e4})}function K_({items:e,className:t}){const r=e.slice(0,bh);return f.jsx("span",{className:`coll-thumb${t?` ${t}`:""}`,"data-count":r.length,"aria-hidden":!0,children:r.map(n=>f.jsx("span",{className:"coll-thumb__cell","data-testid":"coll-thumb-cell",style:{backgroundImage:W_(n.rarity)},children:n.thumbnail?f.jsx("img",{src:n.thumbnail,alt:"",loading:"lazy"}):null},n.id))})}function Y_({contractAddress:e,className:t,fallback:r=null}){const{data:n}=Z_(e),o=(n==null?void 0:n.items)??[];return o.length===0?f.jsx(f.Fragment,{children:r}):f.jsx(K_,{items:o,className:t})}function Q_(e){return/^0x[a-fA-F0-9]{40}$/.test(e)?`${e.slice(0,6)}…${e.slice(-4)}`:e}function c2({address:e,className:t}){const{data:r}=Na(e),n=(r==null?void 0:r.name)||Q_(e);return f.jsx("span",{className:t,children:ae("search.byCreator",{name:n})})}function J_({contractAddress:e}){return f.jsx(Y_,{contractAddress:e,className:"search-pop__collthumb",fallback:f.jsx("span",{className:"search-pop__thumb search-pop__thumb--icon",children:f.jsx(_t,{name:"search"})})})}const X_=5,e4=2;function t4({query:e,recent:t,onSelectItem:r,onSelectCollection:n,onSelectCreator:o,onRunSearch:s,onRemoveRecent:i,onClearRecent:u}){const d=e.length>=e4,{data:h,isFetching:p}=Gr({queryKey:["search-suggest",e],queryFn:()=>ph({search:e,first:X_}),enabled:d,placeholderData:ai,staleTime:3e4}),{data:m=[]}=Gr({queryKey:["search-suggest-collections",e],queryFn:()=>B_(e),enabled:d,placeholderData:ai,staleTime:3e4}),{data:b=[]}=Gr({queryKey:["search-suggest-creators",e],queryFn:()=>$_(e),enabled:d,placeholderData:ai,staleTime:3e4}),E=d?(h==null?void 0:h.items)??[]:[],A=(h==null?void 0:h.total)??0;if(!d)return t.length===0?null:f.jsxs("div",{className:"search-pop","data-testid":"search-pop",role:"listbox","aria-label":ae("search.suggestions"),children:[f.jsxs("div",{className:"search-pop__section-head",children:[f.jsx("span",{children:ae("search.recent")}),f.jsx("button",{type:"button",className:"search-pop__clear",onClick:u,children:ae("search.clearRecent")})]}),f.jsx("ul",{className:"search-pop__list",children:t.map(T=>f.jsxs("li",{className:"search-pop__recent",children:[f.jsxs("button",{type:"button",className:"search-pop__recent-btn",onClick:()=>s(T),children:[f.jsx(_t,{name:"search",size:16,color:"var(--muted)"}),f.jsx("span",{className:"search-pop__recent-text",children:T})]}),f.jsx("button",{type:"button",className:"search-pop__recent-remove","aria-label":ae("search.removeRecent",{query:T}),onClick:()=>i(T),children:f.jsx(fh,{})})]},T))})]});const g=E.length===0&&m.length===0&&b.length===0;return f.jsx("div",{className:"search-pop","data-testid":"search-pop",role:"listbox","aria-label":ae("search.suggestions"),children:g?f.jsx("p",{className:"search-pop__empty",children:p?ae("search.searching"):ae("search.noResults",{query:e})}):f.jsxs(f.Fragment,{children:[E.length>0?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"search-pop__section-head",children:f.jsx("span",{children:ae("search.items")})}),f.jsx("ul",{className:"search-pop__list",children:E.map(T=>f.jsx("li",{children:f.jsxs("button",{type:"button",className:"search-pop__row","data-testid":"search-pop-row","data-kind":"item",onClick:()=>r(T),children:[f.jsx("span",{className:"search-pop__thumb",children:T.thumbnail?f.jsx("img",{src:T.thumbnail,alt:""}):null}),f.jsxs("span",{className:"search-pop__text",children:[f.jsx("span",{className:"search-pop__name",title:T.name,children:T.name}),T.creator?f.jsx(c2,{address:T.creator,className:"search-pop__sub"}):null]}),f.jsxs("span",{className:"search-pop__price",children:[f.jsx(hr,{className:"ccy-mark"})," ",T.priceCredits]})]})},T.id))})]}):null,m.length>0?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"search-pop__section-head",children:f.jsx("span",{children:ae("search.collections")})}),f.jsx("ul",{className:"search-pop__list",children:m.map(T=>f.jsx("li",{children:f.jsxs("button",{type:"button",className:"search-pop__row search-pop__row--collection","data-testid":"search-pop-row","data-kind":"collection",onClick:()=>n(T),children:[f.jsx(J_,{contractAddress:T.contractAddress}),f.jsxs("span",{className:"search-pop__text",children:[f.jsx("span",{className:"search-pop__name",title:T.name,children:T.name}),T.creator?f.jsx(c2,{address:T.creator,className:"search-pop__sub"}):null]})]})},T.contractAddress))})]}):null,b.length>0?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"search-pop__section-head",children:f.jsx("span",{children:ae("search.creators")})}),f.jsx("ul",{className:"search-pop__list",children:b.map(T=>f.jsx("li",{children:f.jsxs("button",{type:"button",className:"search-pop__row search-pop__row--creator","data-testid":"search-pop-row","data-kind":"creator",onClick:()=>o(T),children:[f.jsx("span",{className:"search-pop__thumb search-pop__thumb--round",children:T.face?f.jsx("img",{src:T.face,alt:""}):null}),f.jsx("span",{className:"search-pop__text",children:f.jsx("span",{className:"search-pop__name",title:T.name,children:T.name})})]})},T.address))})]}):null,A>0?f.jsx("button",{type:"button",className:"search-pop__seeall",onClick:()=>s(e),children:ae("search.seeAll",{count:A.toLocaleString()})}):null]})})}const Wa="shop:recent-searches",wh=8;function Sa(){try{const e=localStorage.getItem(Wa);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(r=>typeof r=="string"&&r.length>0).slice(0,wh):[]}catch{return[]}}function fa(e){const t=e.trim();if(t)try{const r=[t,...Sa().filter(n=>n.toLowerCase()!==t.toLowerCase())].slice(0,wh);localStorage.setItem(Wa,JSON.stringify(r))}catch{}}function r4(e){try{const t=Sa().filter(r=>r.toLowerCase()!==e.trim().toLowerCase());localStorage.setItem(Wa,JSON.stringify(t))}catch{}}function n4(){try{localStorage.removeItem(Wa)}catch{}}function o4(){const{session:e,connecting:t,signIn:r,disconnect:n,restore:o}=bo(),s=e==null?void 0:e.address,{data:i,isLoading:u}=Na(s),{data:d,isError:h,isLoading:p}=Ov(e),m=Dt(Q=>Q.items.reduce((ce,ie)=>ce+ie.quantity,0)),b=Dt(Q=>Q.setOpen),E=il(),[A]=Vh(),{pathname:g}=L2(),T=/^\/(assets|item|collection|creator)(\/|$)/.test(g),H=A.get("q")??"",[v,k]=oe.useState(H),[w,Y]=oe.useState(H),[q,S]=oe.useState(!1),[$,J]=oe.useState([]),W=oe.useRef(),ne=oe.useRef(null);oe.useEffect(()=>{o()},[o]),oe.useEffect(()=>{k(H),Y(H)},[H]),oe.useEffect(()=>{if(!q)return;const Q=ce=>{ne.current&&!ne.current.contains(ce.target)&&S(!1)};return document.addEventListener("mousedown",Q),()=>document.removeEventListener("mousedown",Q)},[q]);function X(){J(Sa()),S(!0)}function B(Q){const ce=Q.trim();S(!1),ce&&fa(ce),E(ce?`/assets?q=${encodeURIComponent(ce)}`:"/assets",{replace:!0})}function P(Q){S(!1),v.trim()&&fa(v.trim()),pr("Shop Search Suggestion Clicked",{query:v.trim(),type:"item",item_id:Q.id});const ce=Q.tokenId??Q.itemId;Q.contractAddress&&ce?E(`/item/${Q.contractAddress}/${ce}`,{state:{item:Q,tradeId:Q.tradeId}}):B(v)}function K(Q){S(!1),v.trim()&&fa(v.trim()),pr("Shop Search Suggestion Clicked",{query:v.trim(),type:"collection",contract_address:Q.contractAddress}),E(`/collection/${Q.contractAddress}`)}function Z(Q){S(!1),v.trim()&&fa(v.trim()),pr("Shop Search Suggestion Clicked",{query:v.trim(),type:"creator",creator_address:Q.address}),E(`/assets/creator/${Q.address}`)}function D(Q){k(Q),S(!0),W.current&&clearTimeout(W.current),W.current=setTimeout(()=>Y(Q.trim()),300)}function U(){k(""),Y(""),S(!1),E("/assets",{replace:!0})}function R(Q){r4(Q),J(Sa())}function O(){n4(),J([])}function z(Q){if(Q.key==="Escape"){S(!1);return}Q.key==="Enter"&&(W.current&&clearTimeout(W.current),B(v))}return f.jsxs(f.Fragment,{children:[f.jsx(Gm,{activePage:"shop",isSignedIn:!!e,isSigningIn:t,isLoadingProfile:!!e&&u,address:s,avatar:i,onClickSignIn:()=>r(),onClickSignOut:()=>void n()}),f.jsxs("div",{className:"subnav",children:[f.jsxs("nav",{className:"subnav__tabs",children:[f.jsx(Un,{to:"/overview",children:ae("nav.overview")}),f.jsx(Un,{to:"/assets",className:()=>T?"active":"",children:ae("nav.collectibles")}),f.jsx(Un,{to:"/my-assets",children:ae("nav.myAssets")}),e?f.jsx(Un,{to:"/my-purchases",children:ae("nav.myPurchases")}):null]}),f.jsxs("div",{className:"subnav__search",ref:ne,children:[f.jsx(_t,{name:"search",color:"var(--muted)"}),f.jsx("input",{value:v,"aria-label":ae("nav.searchAria"),placeholder:ae("nav.searchPlaceholder"),onChange:Q=>D(Q.target.value),onFocus:X,onKeyDown:z}),v?f.jsx("button",{type:"button",className:"subnav__search-clear","data-testid":"subnav-search-clear","aria-label":ae("search.clear"),onClick:U,children:f.jsx(fh,{})}):null,q?f.jsx(t4,{query:w,recent:$,onSelectItem:P,onSelectCollection:K,onSelectCreator:Z,onRunSearch:B,onRemoveRecent:R,onClearRecent:O}):null]}),e?f.jsxs("span",{className:"subnav__balance","data-testid":"subnav-balance",title:ae("nav.yourBalance",{currency:go.name}),children:[f.jsx(hr,{className:"subnav__balance-ico"}),p?f.jsx("span",{className:"skeleton subnav__balance-skel","aria-hidden":!0}):jv(d,h)]}):null,f.jsxs(Un,{to:"/credits",className:"subnav__credits",children:[f.jsx(hr,{className:"subnav__credits-ico"}),ae("nav.getCredits",{currency:go.name})]}),f.jsx(Un,{to:"/my-favorites",className:"subnav__fav","aria-label":ae("nav.myFavorites"),children:f.jsx(_t,{name:"heart"})}),f.jsxs("div",{className:"subnav__cart-wrap",children:[f.jsxs("button",{type:"button",className:"subnav__cart","data-testid":"subnav-cart","aria-label":ae("nav.cart"),onClick:()=>m>0?b(!0):E("/cart"),children:[f.jsx(_t,{name:"cart",size:28}),m>0?f.jsx("span",{className:"subnav__cart-badge","data-testid":"subnav-cart-badge",children:m}):null]}),f.jsx(Db,{})]})]})]})}let s4=0;const Do=jn(e=>({toasts:[],push:t=>{const r=++s4;return e(n=>({toasts:[...n.toasts,{...t,id:r}]})),r},dismiss:t=>e(r=>({toasts:r.toasts.filter(n=>n.id!==t)}))})),b8={success:e=>Do.getState().push({message:e,kind:"success"}),error:e=>Do.getState().push({message:e,kind:"error"}),info:e=>Do.getState().push({message:e,kind:"info"})},a4=ff`
|
|
99
|
-
from {
|
|
100
|
-
opacity: 0;
|
|
101
|
-
transform: translateX(24px) scale(0.96);
|
|
102
|
-
}
|
|
103
|
-
to {
|
|
104
|
-
opacity: 1;
|
|
105
|
-
transform: translateX(0) scale(1);
|
|
106
|
-
}
|
|
107
|
-
`,i4=Et.div`
|
|
108
|
-
position: fixed;
|
|
109
|
-
top: 18px;
|
|
110
|
-
right: 18px;
|
|
111
|
-
z-index: 1000;
|
|
112
|
-
display: flex;
|
|
113
|
-
flex-direction: column;
|
|
114
|
-
gap: 10px;
|
|
115
|
-
max-width: min(92vw, 380px);
|
|
116
|
-
`,c4=Et.span`
|
|
117
|
-
flex: 0 0 22px;
|
|
118
|
-
width: 22px;
|
|
119
|
-
height: 22px;
|
|
120
|
-
border-radius: 50%;
|
|
121
|
-
display: grid;
|
|
122
|
-
place-items: center;
|
|
123
|
-
color: ${Qe.colors.white};
|
|
124
|
-
font-weight: 800;
|
|
125
|
-
font-size: 13px;
|
|
126
|
-
background: ${Qe.colors.accent};
|
|
127
|
-
|
|
128
|
-
&[data-kind='success'] {
|
|
129
|
-
background: ${Qe.colors.okStrong};
|
|
130
|
-
}
|
|
131
|
-
&[data-kind='error'] {
|
|
132
|
-
background: ${Qe.colors.errStrong};
|
|
133
|
-
}
|
|
134
|
-
`,l4=Et.span`
|
|
135
|
-
font-size: 14px;
|
|
136
|
-
font-weight: 600;
|
|
137
|
-
line-height: 1.35;
|
|
138
|
-
`,u4=Et.div`
|
|
139
|
-
display: flex;
|
|
140
|
-
align-items: center;
|
|
141
|
-
gap: 12px;
|
|
142
|
-
padding: 13px 16px;
|
|
143
|
-
border-radius: ${Qe.radius.card};
|
|
144
|
-
background: ${Qe.colors.white};
|
|
145
|
-
color: ${Qe.colors.text};
|
|
146
|
-
box-shadow: 0 12px 32px rgba(20, 20, 30, 0.18);
|
|
147
|
-
cursor: pointer;
|
|
148
|
-
border-left: 4px solid ${Qe.colors.accent};
|
|
149
|
-
animation: ${a4} 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
|
|
150
|
-
|
|
151
|
-
&[data-kind='success'] {
|
|
152
|
-
border-left-color: ${Qe.colors.okStrong};
|
|
153
|
-
}
|
|
154
|
-
&[data-kind='error'] {
|
|
155
|
-
border-left-color: ${Qe.colors.errStrong};
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
@media (prefers-reduced-motion: reduce) {
|
|
159
|
-
animation: none;
|
|
160
|
-
}
|
|
161
|
-
`,d4={success:"✓",error:"!",info:"i"};function f4({t:e}){const t=Do(r=>r.dismiss);return oe.useEffect(()=>{const r=setTimeout(()=>t(e.id),4500);return()=>clearTimeout(r)},[e.id,t]),f.jsxs(u4,{"data-testid":"toast","data-kind":e.kind,role:e.kind==="error"?"alert":"status",onClick:()=>t(e.id),children:[f.jsx(c4,{"data-kind":e.kind,"aria-hidden":!0,children:d4[e.kind]}),f.jsx(l4,{children:e.message})]})}function h4(){const e=Do(t=>t.toasts);return e.length===0?null:f.jsx(i4,{"data-testid":"toaster","aria-live":"polite",children:e.map(t=>f.jsx(f4,{t},t.id))})}const p4=oe.lazy(()=>xt(()=>import("./index-B1ztebBZ.js"),__vite__mapDeps([13,1,2,14,6,15,4,16,17,3,18,19,7,8])).then(e=>({default:e.WearablePreview})));function _h(e){return f.jsx(oe.Suspense,{fallback:null,children:f.jsx(p4,{...e})})}function m4(e){return e.itemId?`urn:decentraland:${Ze.chainId===80002?"amoy":"matic"}:collections-v2:${e.contractAddress.toLowerCase()}:${e.itemId}`:null}const Jn=nr.BodyShape.MALE,Xn=nr.BodyShape.FEMALE;function ol(e){if(e.category==="emote")return[Jn,Xn];switch(e.gender){case"male":return[Jn];case"female":return[Xn];default:return[Jn,Xn]}}function g4(e){var r;const t=(r=e==null?void 0:e.avatar)==null?void 0:r.bodyShape;return t?t.includes("BaseFemale")?Xn:Jn:null}function Fl(e,t){return t==null||ol(e).includes(t)}function l2(e){return ae(e===Xn?"bodyShape.female":"bodyShape.male")}function y4(e){let t=0,r=0;for(const n of e)n.category!=="emote"&&(n.gender==="male"?t++:n.gender==="female"&&r++);return t===0&&r===0?null:r>t?Xn:Jn}function On(e){return e.category!=="emote"}function yo(e){return On(e)?e.wearableCategory??`unknown:${e.id}`:null}const v4=new Set(["hat","helmet","mask","tiara","top_head","hair","facial_hair","eyewear","earring","eyes","eyebrows","mouth"]);function b4(e){if(!On(e))return"item";const t=e.wearableCategory;return t?v4.has(t)?"head":t==="upper_body"?"upper":t==="lower_body"?"lower":t==="feet"?"feet":t==="hands"||t==="hands_wear"?"hands":"item":"item"}function u2(e,t=null){const r=new Set,n=new Set;for(const o of e){const s=yo(o);s==null||n.has(s)||Fl(o,t)&&(n.add(s),r.add(o.id))}return r}function w4(e,t,r){if(!On(t))return e;const n=new Set(e);if(n.has(t.id))return n.delete(t.id),n;const o=yo(t);if(o!=null)for(const s of r)s.id!==t.id&&n.has(s.id)&&yo(s)===o&&n.delete(s.id);return n.add(t.id),n}function _4(e){const t=new Map;for(const n of e){const o=yo(n);if(o==null)continue;const s=t.get(o)??[];s.push(n.id),t.set(o,s)}const r=new Set;for(const n of t.values())n.length>1&&n.forEach(o=>r.add(o));return r}function E4(e,t,r=null){const n=[];for(const o of e){if(!t.has(o.id)||!On(o)||!Fl(o,r))continue;const s=m4(o);s&&n.push(s)}return n}const x4=Et.button`
|
|
162
|
-
border: 0;
|
|
163
|
-
border-radius: ${Qe.radius.btn};
|
|
164
|
-
padding: 12px 22px;
|
|
165
|
-
font-weight: 700;
|
|
166
|
-
font-size: 15px;
|
|
167
|
-
background: ${Qe.colors.blackBtn};
|
|
168
|
-
color: ${Qe.colors.white};
|
|
169
|
-
text-decoration: none; /* so an as=Link / as=a element renders without an underline; no-op on button */
|
|
170
|
-
transition:
|
|
171
|
-
background 0.15s ease,
|
|
172
|
-
filter 0.15s ease,
|
|
173
|
-
transform 0.12s ease;
|
|
174
|
-
|
|
175
|
-
&:disabled {
|
|
176
|
-
opacity: 0.55;
|
|
177
|
-
cursor: default;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
/* Primary CTA = Amethyst gradient (Figma "Add to cart" primary), solid purple on hover/press. */
|
|
181
|
-
&[data-variant='purple'] {
|
|
182
|
-
background: ${Qe.gradients.amethyst};
|
|
183
|
-
color: ${Qe.colors.softWhite};
|
|
184
|
-
text-transform: uppercase;
|
|
185
|
-
letter-spacing: 0.046em;
|
|
186
|
-
font-size: 13px;
|
|
187
|
-
}
|
|
188
|
-
&[data-variant='purple']:hover:not(:disabled) {
|
|
189
|
-
background: ${Qe.colors.accent};
|
|
190
|
-
}
|
|
191
|
-
&[data-variant='purple']:active:not(:disabled) {
|
|
192
|
-
background: ${Qe.colors.accent};
|
|
193
|
-
transform: translateY(1px);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
/* Outlined primary (Figma outlined variant): magenta border, purple label. */
|
|
197
|
-
&[data-variant='outline'] {
|
|
198
|
-
background: ${Qe.colors.white};
|
|
199
|
-
border: 2px solid ${Qe.colors.magenta};
|
|
200
|
-
color: ${Qe.colors.accent};
|
|
201
|
-
text-transform: uppercase;
|
|
202
|
-
letter-spacing: 0.046em;
|
|
203
|
-
font-size: 13px;
|
|
204
|
-
font-weight: 600;
|
|
205
|
-
}
|
|
206
|
-
&[data-variant='outline']:hover:not(:disabled) {
|
|
207
|
-
background: rgba(198, 64, 205, 0.06);
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
&[data-variant='ghost'] {
|
|
211
|
-
background: ${Qe.colors.white};
|
|
212
|
-
border: 1px solid ${Qe.colors.lineStrong};
|
|
213
|
-
color: ${Qe.colors.text};
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
&[data-size='sm'] {
|
|
217
|
-
padding: 8px 12px;
|
|
218
|
-
font-size: 13px;
|
|
219
|
-
}
|
|
220
|
-
`;function S4({as:e,variant:t="default",size:r="md",...n},o){const s=x4;return f.jsx(s,{as:e,ref:o,"data-variant":t,"data-size":r,...n})}const Za=oe.forwardRef(S4),C4=oe.lazy(()=>xt(()=>import("./AnimatedBackground-DQ46urVV.js"),__vite__mapDeps([20,1,21]))),T4=Et(Za)`
|
|
221
|
-
flex: none;
|
|
222
|
-
`,A4={head:"slot-head",upper:"slot-upper",lower:"slot-lower",feet:"slot-feet",hands:"slot-hands",item:"slot-item"};function d2(e){return!e||e.startsWith("unknown:")?ae("fittingRoom.wearable"):e.charAt(0).toUpperCase()+e.slice(1).replace(/_/g," ")}function I4(){const e=Dt(Y=>Y.fittingOpen),t=Dt(Y=>Y.setFittingOpen),r=Dt(Y=>Y.items),n=Dt(Y=>Y.remove),o=il(),s=bo(Y=>{var q;return(q=Y.session)==null?void 0:q.address}),{data:i,isFetched:u}=Na(s),d=!s||u,h=!!s&&!!i,p=h?s:"default",m=g4(i)??y4(r)??Jn,[b,E]=oe.useState(()=>u2(r,m)),[A,g]=oe.useState(!1);oe.useEffect(()=>{e&&E(u2(r,m))},[e,m]),oe.useEffect(()=>{const Y=new Set(r.map(q=>q.id));E(q=>{const S=new Set([...q].filter($=>Y.has($)));return S.size===q.size?q:S})},[r]);const T=oe.useMemo(()=>_4(r),[r]),H=oe.useMemo(()=>E4(r,b,m),[r,b,m]),v=r.reduce((Y,q)=>Y+q.priceCredits*q.quantity,0),k=H.join(",");oe.useEffect(()=>{g(!1)},[k,p]);const w=oe.useRef(!1);return oe.useEffect(()=>{if(!e){w.current=!1;return}w.current||(w.current=!0,pr("Shop Tried On Outfit",{cart_size:r.length,wearables:r.filter(On).length,emotes:r.filter(Y=>!On(Y)).length,cart_value_credits:v}))},[e,r,v]),oe.useEffect(()=>{if(!e)return;const Y=q=>{q.key==="Escape"&&t(!1)};return document.addEventListener("keydown",Y),()=>document.removeEventListener("keydown",Y)},[e,t]),!e||r.length===0?null:f.jsxs("div",{className:"fitting",role:"dialog","aria-modal":"true","aria-label":ae("fittingRoom.title"),children:[f.jsx("div",{className:"fitting__scrim",onClick:()=>t(!1)}),f.jsxs("div",{className:"fitting__panel",children:[f.jsx("button",{className:"fitting__close",onClick:()=>t(!1),"aria-label":ae("fittingRoom.close"),children:"×"}),f.jsxs("div",{className:"fitting__stage",children:[f.jsx(oe.Suspense,{fallback:null,children:f.jsx(C4,{})}),d?H.length>0?f.jsxs(f.Fragment,{children:[f.jsx(_h,{profile:p,bodyShape:h?void 0:m,urns:H,type:nr.PreviewType.AVATAR,emote:nr.PreviewEmote.FASHION,disableBackground:!0,disableFadeEffect:!0,dev:Ze.chainId===80002,onLoad:()=>g(!0)},p),A?null:f.jsx("div",{className:"fitting__loading","aria-hidden":!0,children:f.jsx("span",{className:"fitting__spinner"})})]}):f.jsxs("div",{className:"fitting__empty-stage",children:[f.jsx("p",{children:ae("fittingRoom.emptyStageTitle")}),f.jsx("p",{className:"muted",children:ae("fittingRoom.emptyStageBody")})]}):f.jsx("div",{className:"fitting__loading","aria-hidden":!0,children:f.jsx("span",{className:"fitting__spinner"})})]}),f.jsxs("div",{className:"fitting__side",children:[f.jsxs("div",{className:"fitting__head",children:[f.jsx("h2",{className:"fitting__title",children:ae("fittingRoom.title")}),f.jsx("p",{className:"fitting__sub muted",children:ae("fittingRoom.sub")})]}),f.jsx("div",{className:"fitting__items",children:r.map(Y=>{const q=On(Y),S=q&&!Fl(Y,m),$=b.has(Y.id),J=T.has(Y.id);return f.jsxs("div",{className:`fitting-row${$?" is-on":""}${S?" is-incompatible":""}`,"data-testid":"fitting-row",children:[f.jsxs("label",{className:"fitting-row__toggle",children:[f.jsx("input",{type:"checkbox",checked:$,disabled:!q||S,onChange:()=>E(W=>w4(W,Y,r))}),f.jsx("span",{className:"fitting-row__box","aria-hidden":!0})]}),f.jsx("div",{className:"fitting-row__thumb",children:Y.thumbnail?f.jsx("img",{src:Y.thumbnail,alt:Y.name}):null}),f.jsxs("div",{className:"fitting-row__info",children:[f.jsx("div",{className:"fitting-row__name",title:Y.name,children:Y.name}),f.jsxs("div",{className:"fitting-row__meta",children:[f.jsx(_t,{name:A4[q?b4(Y):"item"],size:16,color:"var(--muted)",title:q?d2(yo(Y)):ae("fittingRoom.emote"),role:"img","aria-label":q?d2(yo(Y)):ae("fittingRoom.emote")}),J&&!S?f.jsx("span",{className:"fitting-row__conflict",title:ae("fittingRoom.conflictTooltip"),children:ae("fittingRoom.onePerSlot")}):null,S?f.jsx("span",{className:"fitting-row__incompat",title:ae("fittingRoom.madeForShape",{shape:l2(ol(Y)[0])}),children:ae("fittingRoom.shapeOnly",{shape:l2(ol(Y)[0])})}):null]})]}),f.jsxs("div",{className:"fitting-row__price",children:[f.jsx(hr,{className:"fitting-row__diamond"}),Y.priceCredits]}),f.jsx("button",{className:"fitting-row__remove",onClick:()=>n(Y.id),"aria-label":ae("fittingRoom.removeFromCart",{name:Y.name}),title:ae("fittingRoom.remove"),children:f.jsx(_t,{name:"trash",size:18})})]},Y.id)})}),f.jsxs("div",{className:"fitting__foot",children:[f.jsxs("div",{className:"fitting__total",children:[ae("fittingRoom.itemCount",{count:r.length})," ·"," ",f.jsxs("strong",{children:[go.symbol," ",v]})]}),f.jsx(T4,{variant:"purple",onClick:()=>{t(!1),o("/cart")},children:ae("fittingRoom.checkout")})]})]})]})]})}const Eh="shop:locale";function k4(){var e;try{const t=new URLSearchParams(window.location.search).get("lang");if(t&&ba.includes(t))return t;const r=localStorage.getItem(Eh);if(r&&ba.includes(r))return r;const n=(e=navigator.language)==null?void 0:e.slice(0,2);if(n&&ba.includes(n))return n}catch{}return"en"}const sl=jn(e=>({locale:k4(),setLocale:t=>{try{localStorage.setItem(Eh,t)}catch{}e({locale:t})}})),R4="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",f2=[{label:"footer.linkWhatIs",url:"https://docs.decentraland.org/introduction/about-decentraland"},{label:"footer.linkDownload",url:"https://decentraland.org/download"},{label:"footer.linkSystemRequirements",url:"https://docs.decentraland.org/in-world/settings-and-performance"},{label:"footer.linkFaqs",url:"https://docs.decentraland.org/faqs/decentraland-101"},{label:"footer.linkContactSupport",url:"https://decentraland.org/help/"}],h2=[{label:"footer.linkMarketplace",url:"https://decentraland.org/marketplace"},{label:"footer.linkCreatorHub",url:"https://decentraland.org/create/"},{label:"footer.linkDocs",url:"https://docs.decentraland.org"},{label:"footer.linkBlog",url:"https://decentraland.org/blog/"},{label:"footer.linkVote",url:"https://decentraland.org/dao"}],P4=[{name:"Discord",url:"https://dcl.gg/discord",icon:j4},{name:"GitHub",url:"https://github.com/decentraland",icon:L4},{name:"X",url:"https://x.com/decentraland",icon:B4},{name:"Instagram",url:"https://instagram.com/decentraland_foundation/",icon:M4},{name:"YouTube",url:"https://youtube.com/@decentraland_foundation",icon:F4},{name:"TikTok",url:"https://tiktok.com/@decentraland_fdn",icon:$4},{name:"LinkedIn",url:"https://linkedin.com/company/decentralandorg",icon:D4}],N4=[{label:"footer.linkPrivacy",url:"https://decentraland.org/privacy/"},{label:"footer.linkTerms",url:"https://decentraland.org/terms/"},{label:"footer.linkContentPolicy",url:"https://decentraland.org/content/"},{label:"footer.linkEthics",url:"https://decentraland.org/ethics/"}],ha={en:{label:"English",flag:"🇺🇸"},es:{label:"Español",flag:"🇪🇸"}};function p2(){return f.jsx("div",{className:"dcl-footer__social",children:P4.map(({name:e,url:t,icon:r})=>f.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer","aria-label":e,children:f.jsx(r,{})},e))})}function O4(){const e=sl(h=>h.locale),t=sl(h=>h.setLocale),[r,n]=oe.useState(null),[o,s]=oe.useState(!1),i=oe.useRef(null),u=ha[e]??ha.en;oe.useEffect(()=>{if(!o)return;const h=p=>{i.current&&!i.current.contains(p.target)&&s(!1)};return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[o]);const d=h=>n(p=>p===h?null:h);return f.jsxs("footer",{className:"dcl-footer",children:[f.jsxs("div",{className:"dcl-footer__main",children:[f.jsxs("div",{className:"dcl-footer__left",children:[f.jsx("span",{className:"dcl-footer__wordmark",children:"Decentraland"}),f.jsxs("div",{className:"dcl-footer__news",children:[f.jsx("p",{className:"dcl-footer__news-title",children:ae("footer.newsletterTitle")}),f.jsx("iframe",{className:"dcl-footer__news-frame",src:R4,height:"65",frameBorder:"0",scrolling:"no",title:ae("footer.newsletterFrameTitle")})]}),f.jsxs("div",{className:"dcl-footer__connect dcl-footer__connect--desktop",children:[f.jsx("p",{className:"dcl-footer__label",children:ae("footer.connect")}),f.jsx(p2,{})]})]}),f.jsxs("div",{className:"dcl-footer__right",children:[f.jsxs("div",{className:"dcl-footer__col",children:[f.jsx("p",{className:"dcl-footer__label",children:ae("footer.gettingStarted")}),f2.map(h=>f.jsx("a",{className:"dcl-footer__link",href:h.url,target:"_blank",rel:"noopener noreferrer",children:ae(h.label)},h.label))]}),f.jsxs("div",{className:"dcl-footer__col",children:[f.jsx("p",{className:"dcl-footer__label",children:ae("footer.resources")}),h2.map(h=>f.jsx("a",{className:"dcl-footer__link",href:h.url,target:"_blank",rel:"noopener noreferrer",children:ae(h.label)},h.label))]})]}),f.jsxs("div",{className:"dcl-footer__mobile-menu",children:[f.jsx("p",{className:"dcl-footer__menu-label",children:ae("footer.menu")}),[{key:"getting-started",label:ae("footer.gettingStarted"),links:f2},{key:"resources",label:ae("footer.resources"),links:h2}].map(h=>f.jsxs("div",{children:[f.jsxs("button",{type:"button",className:"dcl-footer__dropdown","aria-expanded":r===h.key,onClick:()=>d(h.key),children:[h.label,f.jsx("span",{className:`dcl-footer__chev${r===h.key?" is-open":""}`,children:f.jsx(m2,{})})]}),f.jsx("div",{className:`dcl-footer__dropdown-content${r===h.key?" is-open":""}`,children:h.links.map(p=>f.jsx("a",{className:"dcl-footer__mlink",href:p.url,target:"_blank",rel:"noopener noreferrer",children:ae(p.label)},p.label))})]},h.key))]}),f.jsxs("div",{className:"dcl-footer__connect dcl-footer__connect--mobile",children:[f.jsx("p",{className:"dcl-footer__label",children:ae("footer.connect")}),f.jsx(p2,{})]})]}),f.jsxs("div",{className:"dcl-footer__bottom",children:[f.jsxs("div",{className:"dcl-footer__bottom-left",children:[f.jsxs("div",{className:"dcl-footer__lang",ref:i,children:[f.jsxs("button",{type:"button",className:"dcl-footer__lang-btn",onClick:()=>s(h=>!h),children:[f.jsx("span",{"aria-hidden":!0,children:u.flag}),u.label,f.jsx("span",{className:`dcl-footer__chev${o?" is-open":""}`,children:f.jsx(m2,{})})]}),o?f.jsx("div",{className:"dcl-footer__lang-menu",children:ba.map(h=>f.jsxs("button",{className:h===e?"is-active":"",onClick:()=>{t(h),s(!1)},children:[f.jsx("span",{"aria-hidden":!0,children:ha[h].flag}),ha[h].label]},h))}):null]}),f.jsx("div",{className:"dcl-footer__legal",children:N4.map(h=>f.jsx("a",{className:"dcl-footer__legal-link",href:h.url,target:"_blank",rel:"noopener noreferrer",children:ae(h.label)},h.label))})]}),f.jsxs("span",{className:"dcl-footer__copy",children:["© ",new Date().getFullYear()," Decentraland"]})]})]})}function j4(){return f.jsx("svg",{viewBox:"0 0 28 22",fill:"currentColor",width:"26",height:"20","aria-hidden":!0,children:f.jsx("path",{d:"M23.7 1.84A23.25 23.25 0 0 0 17.96 0c-.25.45-.54 1.05-.74 1.53a21.5 21.5 0 0 0-6.45 0C10.57 1.05 10.27.45 10.02 0A23.2 23.2 0 0 0 4.27 1.85C.62 7.34-.38 12.7.12 18a23.37 23.37 0 0 0 7.13 3.6 17.4 17.4 0 0 0 1.53-2.49 15.17 15.17 0 0 1-2.41-1.16c.2-.15.4-.3.59-.46a16.63 16.63 0 0 0 14.1 0c.19.16.39.31.58.46-.77.45-1.57.84-2.41 1.16.44.87.96 1.7 1.53 2.49a23.3 23.3 0 0 0 7.14-3.61c.58-6.15-1-11.47-4.1-16.15ZM9.35 14.74c-1.4 0-2.54-1.28-2.54-2.85s1.12-2.86 2.54-2.86 2.56 1.29 2.54 2.86c0 1.57-1.12 2.85-2.54 2.85Zm9.38 0c-1.4 0-2.54-1.28-2.54-2.85s1.12-2.86 2.54-2.86 2.56 1.29 2.54 2.86c0 1.57-1.12 2.85-2.54 2.85Z"})})}function L4(){return f.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:f.jsx("path",{d:"M12 .3a12 12 0 0 0-3.8 23.38c.6.12.82-.26.82-.58v-2.02c-3.34.73-4.04-1.61-4.04-1.61-.55-1.39-1.34-1.76-1.34-1.76-1.08-.74.08-.73.08-.73 1.2.09 1.84 1.24 1.84 1.24 1.07 1.83 2.8 1.3 3.49 1 .1-.78.42-1.3.76-1.6-2.67-.31-5.47-1.34-5.47-5.93 0-1.31.47-2.38 1.24-3.22-.13-.3-.54-1.52.12-3.18 0 0 1-.33 3.3 1.23a11.5 11.5 0 0 1 6.02 0c2.28-1.56 3.29-1.23 3.29-1.23.66 1.66.25 2.88.12 3.18a4.65 4.65 0 0 1 1.24 3.22c0 4.61-2.81 5.62-5.48 5.92.43.37.81 1.1.81 2.22v3.29c0 .32.22.7.82.58A12 12 0 0 0 12 .3Z"})})}function B4(){return f.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"22",height:"22","aria-hidden":!0,children:f.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231 5.45-6.231Zm-1.161 17.52h1.833L7.084 4.126H5.117L17.083 19.77Z"})})}function M4(){return f.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:f.jsx("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069ZM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0Zm0 5.838a6.162 6.162 0 1 0 0 12.324 6.162 6.162 0 0 0 0-12.324ZM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8Zm6.406-11.845a1.44 1.44 0 1 0 0 2.881 1.44 1.44 0 0 0 0-2.881Z"})})}function F4(){return f.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:f.jsx("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.546 12 3.546 12 3.546s-7.505 0-9.377.504A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.504 9.376.504 9.376.504s7.505 0 9.377-.504a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814ZM9.545 15.568V8.432L15.818 12l-6.273 3.568Z"})})}function $4(){return f.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"22",height:"22","aria-hidden":!0,children:f.jsx("path",{d:"M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07Z"})})}function D4(){return f.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:f.jsx("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286ZM5.337 7.433a2.062 2.062 0 1 1 0-4.123 2.062 2.062 0 0 1 0 4.123ZM6.863 20.452H3.804V9h3.059v11.452ZM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003Z"})})}function m2(){return f.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"18",height:"18","aria-hidden":!0,children:f.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41Z"})})}const cr=jn((e,t)=>({item:null,anchor:null,ready:!1,token:0,show:(r,n)=>{var s;const o=t();((s=o.item)==null?void 0:s.id)===r.id&&o.anchor===n||e(i=>({item:r,anchor:n,ready:!1,token:i.token+1}))},hide:()=>e({item:null,anchor:null,ready:!1}),setReady:()=>e({ready:!0})})),g2="hover-preview";function q4(){const e=cr(T=>T.item),t=cr(T=>T.anchor),r=cr(T=>T.token),n=cr(T=>T.ready),o=cr(T=>T.setReady),[s,i]=oe.useState(!1),[u,d]=oe.useState(!1),h=oe.useRef(!1),p=oe.useRef(-1),[m,b]=oe.useState(null);oe.useEffect(()=>{if(typeof window.requestIdleCallback=="function"){const H=window.requestIdleCallback(()=>i(!0),{timeout:3e3});return()=>window.cancelIdleCallback(H)}const T=window.setTimeout(()=>i(!0),1500);return()=>window.clearTimeout(T)},[]),oe.useEffect(()=>{if(!t){b(null);return}let T=0;const H=()=>b(t.getBoundingClientRect());H();const v=()=>{cancelAnimationFrame(T),T=requestAnimationFrame(H)};return window.addEventListener("scroll",v,!0),window.addEventListener("resize",v),()=>{cancelAnimationFrame(T),window.removeEventListener("scroll",v,!0),window.removeEventListener("resize",v)}},[t]),oe.useEffect(()=>{if(!e)return;const T=document.getElementById(g2);if(!(T!=null&&T.contentWindow)||!h.current)return;p.current=r;const H=e.category==="emote";cu.sendMessage(T.contentWindow,cu.PreviewMessageType.UPDATE,{options:{contractAddress:e.contractAddress,itemId:e.itemId??void 0,profile:"default",type:H?void 0:nr.PreviewType.AVATAR,emote:H?void 0:nr.PreviewEmote.FASHION,disableBackground:!0,disableFadeEffect:!0}})},[e,r,u]);function E(){if(!h.current){h.current=!0,d(!0);return}const T=cr.getState();T.item&&T.token===p.current&&o()}if(!s)return null;const g=!!e&&!!m?{position:"fixed",left:m.left,top:m.top,width:m.width,height:m.height,zIndex:5,pointerEvents:"none",opacity:n?1:0,transition:"opacity .25s ease"}:{position:"fixed",left:-9999,top:-9999,width:2,height:2,opacity:0,pointerEvents:"none",overflow:"hidden"};return f.jsx("div",{className:"hover-preview","aria-hidden":!0,style:g,children:f.jsx(_h,{id:g2,profile:"default",disableBackground:!0,disableFadeEffect:!0,dev:Ze.chainId===80002,onLoad:E})})}function U4(){const e=bo(t=>t.session);oe.useEffect(()=>{if(!e||e.providerType!==nr.ProviderType.INJECTED)return;const t=e.web3Provider.provider;if(!(t!=null&&t.on)||!t.removeListener)return;const r=e.address.toLowerCase(),n=(...o)=>{var u;((u=(o[0]??[])[0])==null?void 0:u.toLowerCase())!==r&&window.location.reload()};return t.on("accountsChanged",n),()=>{var o;return(o=t.removeListener)==null?void 0:o.call(t,"accountsChanged",n)}},[e])}function V4(e,t){return!t||!e.creator?!1:Sl(e)&&e.creator.toLowerCase()===t.toLowerCase()}function w8(e,t){return!!e.signer&&!!t&&e.signer.toLowerCase()===t.toLowerCase()}const y2={head:"cat-head",hat:"cat-head",hair:"cat-head",facial_hair:"cat-head",eyes:"cat-head",eyebrows:"cat-head",mouth:"cat-head",mask:"cat-head",helmet:"cat-head",tiara:"cat-head",top_head:"cat-head",upper_body:"cat-upper",hands_wear:"cat-handwear",lower_body:"cat-lower",feet:"cat-feet",earring:"cat-accessories",eyewear:"cat-accessories",skin:"cat-skins",dance:"emote-dance",stunt:"emote-stunt",greetings:"emote-greetings",fun:"emote-fun",poses:"emote-poses",reactions:"emote-reactions",horror:"emote-horror"};function H4(e){var r;const t=(r=e.wearableCategory)==null?void 0:r.toLowerCase();return t&&y2[t]?y2[t]:e.category==="emote"?"emote-misc":null}function z4(e){return e==="male"?"gender-male":e==="female"?"gender-female":e==="unisex"?"gender-unisex":null}function G4(e,t=Date.now()){const{priceCredits:r,compareAtCredits:n,saleEndsAt:o}=e;return!(n==null||!(n>r)||o!=null&&o<=t)}function W4(e,t){if(!(e>0)||!(t>=0)||t>=e)return 0;const r=Math.round((1-t/e)*100);return Math.min(99,Math.max(1,r))}function Mo(e,t=Date.now()){return e==null?1/0:Math.max(0,e-t)}function Z4(e){if(!isFinite(e)||e<=0)return"";const t=Math.floor(e/1e3),r=Math.floor(t/86400),n=Math.floor(t%86400/3600),o=Math.floor(t%3600/60),s=t%60;return r>0?n>0?`${r}d ${n}h`:`${r}d`:n>0?`${n}h ${o}m`:o>0?`${o}m ${s}s`:`${s}s`}function v2(e){return!isFinite(e)||e<=0?0:e<36e5?1e3:6e4}function K4({endsAt:e,className:t,testId:r,iconSize:n=13}){const[o,s]=oe.useState(()=>Mo(e));oe.useEffect(()=>{if(s(Mo(e)),e==null)return;let u;const d=()=>{const p=Mo(e);s(p);const m=v2(p);m>0&&(u=setTimeout(d,m))},h=v2(Mo(e));return h>0&&(u=setTimeout(d,h)),()=>clearTimeout(u)},[e]);const i=Z4(o);return i?f.jsxs("span",{className:t??"sale-countdown","data-testid":r,children:[f.jsx(_t,{name:"clock",size:n}),i]}):null}function Y4(e){const[,t]=oe.useState(0);return oe.useEffect(()=>{const r=Mo(e.saleEndsAt);if(!isFinite(r)||r<=0||r>2147483647)return;const n=setTimeout(()=>t(o=>o+1),r+1);return()=>clearTimeout(n)},[e.saleEndsAt]),G4(e)}const Q4=120;function $l(e){const{item:t}=e,r=e.mode==="market",n=oe.useRef(),o=oe.useRef(null),s=Dt(W=>W.add),i=Dt(W=>W.items.some(ne=>ne.id===t.id)),u=bo(W=>{var ne;return(ne=W.session)==null?void 0:ne.address}),d=V4(t,u),h=Ea(W=>W.toggle),p=Ea(W=>!!W.items[t.id]),m=cr(W=>W.show),b=cr(W=>W.hide),E=cr(W=>{var ne;return((ne=W.item)==null?void 0:ne.id)===t.id}),A=cr(W=>{var ne;return((ne=W.item)==null?void 0:ne.id)===t.id?W.ready:!1}),g=!!t.contractAddress&&!!t.itemId,T=t.tokenId??t.itemId,H=!!t.contractAddress&&!!T,v=`/item/${t.contractAddress}/${T}`;function k(){typeof window<"u"&&window.matchMedia&&!window.matchMedia("(hover: hover)").matches||(n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{g&&o.current&&m(t,o.current)},Q4))}function w(){var W;n.current&&clearTimeout(n.current),((W=cr.getState().item)==null?void 0:W.id)===t.id&&b()}oe.useEffect(()=>()=>{var W;n.current&&clearTimeout(n.current),((W=cr.getState().item)==null?void 0:W.id)===t.id&&b()},[t.id,b]);const Y=H4(t),q=z4(t.gender),S=Y4({priceCredits:t.priceCredits,compareAtCredits:t.compareAtCredits,saleEndsAt:t.saleEndsAt}),$=!r&&S,J=$?W4(t.compareAtCredits,t.priceCredits):0;return f.jsxs("article",{className:"card","data-testid":"card",style:H?{cursor:"pointer"}:void 0,onMouseEnter:k,onMouseLeave:w,children:[H?f.jsx(En,{className:"card__link","data-testid":"card-link",to:v,state:e.mode==="market"?{item:t,market:!0,marketPriceCredits:e.marketPriceCredits}:{item:t,tradeId:t.tradeId},"aria-label":t.name}):null,f.jsx("button",{className:`card__fav${p?" is-on":""}`,"data-testid":"card-fav",onClick:W=>{W.stopPropagation(),h(t)},"aria-label":ae(p?"assetCard.removeFromFavorites":"assetCard.addToFavorites"),children:f.jsx(_t,{name:p?"heart-solid":"heart",size:18})}),f.jsxs("div",{className:"card__media",ref:o,children:[$?f.jsx("span",{className:"card__sale-badge","data-testid":"card-sale-badge",children:J>0?ae("assetCard.saleWithDiscount",{pct:J}):ae("assetCard.sale")}):null,t.thumbnail?f.jsx("img",{className:`card__img${E&&A?" card__img--hidden":""}`,src:t.thumbnail,alt:t.name,loading:"lazy"}):null]}),f.jsxs("div",{className:"card__body",children:[f.jsxs("div",{className:"card__top",children:[f.jsxs("div",{className:"card__desc",children:[f.jsx("div",{className:"card__name",title:t.name,children:t.name}),t.creator?f.jsx(Rl,{address:t.creator,className:"card__creator",linkToProfile:!0}):f.jsx("div",{className:"card__creator",children:" "})]}),r&&e.mode==="market"?f.jsxs("div",{className:"card__price card__price--market","data-testid":"card-price-market",children:[f.jsx("span",{className:"card__approx","aria-hidden":!0,children:"≈"}),f.jsx(hr,{className:"card__diamond"}),e.marketPriceCredits==null?"—":Kn(e.marketPriceCredits)]}):$?f.jsxs("div",{className:"card__price card__price--sale",children:[f.jsxs("span",{className:"card__price-now","data-testid":"card-price-now",title:Fo(t.priceCredits),children:[f.jsx(hr,{className:"card__diamond"}),Kn(t.priceCredits)]}),f.jsxs("span",{className:"card__price-was","data-testid":"card-price-was",title:Fo(t.compareAtCredits),children:[f.jsx(hr,{className:"card__diamond card__diamond--was"}),Kn(t.compareAtCredits)]}),f.jsx(K4,{endsAt:t.saleEndsAt,className:"card__countdown",testId:"card-countdown"})]}):f.jsxs("div",{className:"card__price",title:Fo(t.priceCredits),children:[f.jsx(hr,{className:"card__diamond"}),Kn(t.priceCredits)]})]}),f.jsxs("div",{className:"card__action",children:[f.jsxs("div",{className:"card__chips",children:[r?f.jsx("span",{className:"chip chip--market","data-testid":"chip-market",children:ae("assetCard.marketPrice")}):null,f.jsx("span",{className:"chip chip--rarity",style:{background:H_(t.rarity),color:z_(t.rarity)},title:G_(t.rarity),children:t.rarity}),t.isSmart?f.jsxs("span",{className:"chip chip--smart","data-testid":"chip-smart",children:[f.jsx(_t,{name:"smart",size:13}),ae("assetCard.smart")]}):null,Y?f.jsx("span",{className:"chip chip--icon",children:f.jsx(_t,{name:Y})}):null,q?f.jsx("span",{className:"chip chip--icon",children:f.jsx(_t,{name:q})}):null]}),r&&e.mode==="market"?f.jsx("button",{className:"card__add-round",onClick:W=>{W.stopPropagation(),e.onBuyNow(t)},disabled:e.marketPriceCredits==null,"aria-label":e.marketPriceCredits==null?ae("assetCard.unavailable"):ae("assetCard.buyNow"),children:f.jsx(_t,{name:"plus"})}):f.jsx("button",{className:`card__add-round${i?" is-in":""}`,onClick:W=>{W.stopPropagation(),d||s(t,"grid")},disabled:i||d,"aria-label":ae(d?"assetCard.yourItem":i?"assetCard.inCart":"assetCard.addToCart"),children:f.jsx(_t,{name:"plus"})}),r&&e.mode==="market"?f.jsx("button",{className:"card__cart","data-testid":"card-cart",onClick:W=>{W.stopPropagation(),e.onBuyNow(t)},disabled:e.marketPriceCredits==null,children:e.marketPriceCredits==null?ae("assetCard.unavailable"):ae("assetCard.buyNow")}):f.jsxs("button",{className:`card__cart${i?" is-in":""}`,"data-testid":"card-cart",onClick:W=>{W.stopPropagation(),d||s(t,"grid")},disabled:i||d,children:[d?null:f.jsx(_t,{name:"cart-solid"}),ae(d?"assetCard.yourItem":i?"assetCard.inCart":"assetCard.addToCart")]})]})]})]})}const J4=8,X4=8,e6=12;function t6(){const t=Yc(o=>o.followed).slice(0,J4),{data:r=[],isLoading:n}=Gr({queryKey:["followed-creators-row",t.join(",")],enabled:t.length>0,queryFn:async()=>{const o=await Promise.all(t.map(s=>U_(s,{first:X4}).then(i=>i.items).catch(()=>[])));return r6(o).filter(s=>s.priceCredits>0).slice(0,e6)}});return t.length===0||!n&&r.length===0?null:f.jsxs("section",{className:"row",children:[f.jsx("div",{className:"row__head",children:f.jsx("h2",{className:"row__title",children:ae("followedCreators.title")})}),f.jsx("div",{className:"row__track",children:n?Array.from({length:6}).map((o,s)=>f.jsx("div",{className:"card card--skeleton"},s)):r.map(o=>f.jsx($l,{item:o},o.id))})]})}function r6(e){const t=[],r=new Set,n=e.reduce((o,s)=>Math.max(o,s.length),0);for(let o=0;o<n;o++)for(const s of e){const i=s[o];i&&!r.has(i.id)&&(r.add(i.id),t.push(i))}return t}const xh="shop:recently-viewed",Sh=12;function Ch(){try{const e=localStorage.getItem(xh);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.slice(0,Sh):[]}catch{return[]}}function _8(e){if(e!=null&&e.id)try{const t=[e,...Ch().filter(r=>r.id!==e.id)].slice(0,Sh);localStorage.setItem(xh,JSON.stringify(t))}catch{}}function n6({excludeId:e}){const t=oe.useMemo(()=>Ch().filter(r=>r.id!==e),[e]);return t.length===0?null:f.jsxs("section",{className:"row",children:[f.jsx("div",{className:"row__head",children:f.jsx("h2",{className:"row__title",children:ae("recentlyViewed.title")})}),f.jsx("div",{className:"row__track",children:t.map(r=>f.jsx($l,{item:r},r.id))})]})}async function o6(e="week",t=10,r="most_volume"){const n=new URLSearchParams({sortBy:r,first:String(t)}),o=await fetch(`${Ze.marketplaceServerUrl}/v1/rankings/creators/${e}?${n.toString()}`);if(!o.ok)throw new Error(`fetchTopCreators ${o.status}`);return(await o.json()).data??[]}const b2=10;function s6(e){try{return Math.floor(Number(B2(e))).toLocaleString("en-US")}catch{return"0"}}function a6({rank:e,creator:t}){return f.jsxs("tr",{className:"ov-creators__row",children:[f.jsx("td",{className:"ov-creators__rank-cell",children:f.jsx("span",{className:"ov-creators__rank",children:e})}),f.jsx("td",{className:"ov-creators__creator-cell",children:f.jsx(Rl,{address:t.id,className:"ov-creators__creator",linkToProfile:!0})}),f.jsx("td",{className:"ov-creators__num",children:t.collections.toLocaleString("en-US")}),f.jsx("td",{className:"ov-creators__num",children:t.sales.toLocaleString("en-US")}),f.jsxs("td",{className:"ov-creators__num ov-creators__volume",children:[f.jsx(hr,{className:"ov-creators__coin"}),s6(t.earned)]})]})}function i6(){return f.jsxs("tr",{className:"ov-creators__row",children:[f.jsx("td",{className:"ov-creators__rank-cell",children:f.jsx("span",{className:"ov-creators__rank ov-creators__rank--skeleton"})}),f.jsx("td",{className:"ov-creators__creator-cell",children:f.jsx("span",{className:"ov-creators__skeleton ov-creators__skeleton--creator"})}),f.jsx("td",{className:"ov-creators__num",children:f.jsx("span",{className:"ov-creators__skeleton"})}),f.jsx("td",{className:"ov-creators__num",children:f.jsx("span",{className:"ov-creators__skeleton"})}),f.jsx("td",{className:"ov-creators__num",children:f.jsx("span",{className:"ov-creators__skeleton"})})]})}function c6(){const{data:e,isLoading:t,isError:r}=Gr({queryKey:["rankings","creators","week"],queryFn:()=>o6("week",b2)}),n=e??[];return r||!t&&n.length===0?null:f.jsxs("section",{className:"ov-creators",children:[f.jsxs("div",{className:"ov-creators__head",children:[f.jsx("h2",{className:"ov-creators__title",children:ae("weekTopCreators.title")}),f.jsx("span",{className:"ov-creators__period",children:ae("weekTopCreators.thisWeek")})]}),f.jsx("div",{className:"ov-creators__scroll",children:f.jsxs("table",{className:"ov-creators__table",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"ov-creators__header",children:[f.jsx("th",{className:"ov-creators__th ov-creators__th--rank",scope:"col",children:ae("weekTopCreators.rank")}),f.jsx("th",{className:"ov-creators__th",scope:"col",children:ae("weekTopCreators.creator")}),f.jsx("th",{className:"ov-creators__th ov-creators__th--num",scope:"col",children:ae("weekTopCreators.collections")}),f.jsx("th",{className:"ov-creators__th ov-creators__th--num",scope:"col",children:ae("weekTopCreators.sales")}),f.jsx("th",{className:"ov-creators__th ov-creators__th--num",scope:"col",children:ae("weekTopCreators.volume")})]})}),f.jsx("tbody",{children:t?Array.from({length:b2}).map((o,s)=>f.jsx(i6,{},s)):n.map((o,s)=>f.jsx(a6,{rank:s+1,creator:o},o.id))})]})})]})}const Th="Decentraland Shop",l6=`${Th} | Wearables & Emotes for Your Avatar`,u6="Discover wearables and emotes to make your Decentraland avatar your own. Explore thousands of unique looks and find your style in seconds.";function Sr(e,t,r){let n=document.head.querySelector(`meta[${e}="${t}"]`);n||(n=document.createElement("meta"),n.setAttribute(e,t),document.head.appendChild(n)),n.setAttribute("content",r)}function d6(e,t){let r=document.head.querySelector(`link[rel="${e}"]`);r||(r=document.createElement("link"),r.setAttribute("rel",e),document.head.appendChild(r)),r.setAttribute("href",t)}function f6(e={}){const{title:t,description:r=u6,image:n,type:o="website",noindex:s=!1,canonicalPath:i}=e;oe.useEffect(()=>{if(typeof window>"u")return;const u=window.location.origin,d=u+(i??window.location.pathname),h=n??`${u}https://cdn.decentraland.org/@dcl/shop/0.1.0-29820315471.commit-e34db25/og-image.png`,p=t?`${t} | ${Th}`:l6;document.title=p,Sr("name","description",r),Sr("name","robots",s?"noindex,nofollow":"index,follow"),d6("canonical",d),Sr("property","og:title",p),Sr("property","og:description",r),Sr("property","og:url",d),Sr("property","og:image",h),Sr("property","og:type",o),Sr("name","twitter:title",p),Sr("name","twitter:description",r),Sr("name","twitter:image",h)},[t,r,n,o,s,i])}const w2="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2059.7045%2058.9085'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Slider%20Arrows'%3e%3cpath%20id='Oval'%20opacity='0.8'%20d='M29.8522%201.59244C45.437%201.59244%2058.1117%2014.0437%2058.112%2029.4538C58.112%2044.8641%2045.4372%2057.3161%2029.8522%2057.3161C14.2672%2057.3161%201.59244%2044.8641%201.59244%2029.4538C1.5927%2014.0437%2014.2674%201.59247%2029.8522%201.59244Z'%20fill='var(--fill-0,%20white)'%20stroke='var(--stroke-0,%20white)'%20stroke-width='3.18424'/%3e%3cg%20id='bounds'%3e%3c/g%3e%3cpath%20id='icon'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M40.2842%2029.0164L25.652%2043.0901C24.8014%2043.9083%2023.4222%2043.9083%2022.5716%2043.0901C21.721%2042.2719%2021.721%2040.9454%2022.5716%2040.1272L34.1233%2029.0164L22.5716%2017.9056C21.721%2017.0874%2021.721%2015.7609%2022.5716%2014.9427C23.4222%2014.1245%2024.8014%2014.1245%2025.652%2014.9427L40.2842%2029.0164Z'%20fill='var(--fill-0,%20black)'/%3e%3c/g%3e%3c/svg%3e",h6="https://cdn.decentraland.org/@dcl/shop/0.1.0-29820315471.commit-e34db25/assets/hero-fashion-week-B9LOzkde.png",p6="https://cdn.decentraland.org/@dcl/shop/0.1.0-29820315471.commit-e34db25/assets/promo-best-rated-emotes-C6kNvB-a.png",m6="https://cdn.decentraland.org/@dcl/shop/0.1.0-29820315471.commit-e34db25/assets/promo-week-selected-outfits-BBmkZYZx.png",g6=Et(Za)`
|
|
223
|
-
margin-top: 10px;
|
|
224
|
-
`,y6=Et(Za)`
|
|
225
|
-
height: 40px;
|
|
226
|
-
padding: 0 16px;
|
|
227
|
-
display: inline-flex;
|
|
228
|
-
align-items: center;
|
|
229
|
-
`,_2=6;function E2({title:e,items:t,loading:r}){const n=oe.useRef(null),[o,s]=oe.useState(1),[i,u]=oe.useState(0),d=r?_2:t.length,h=oe.useCallback(()=>{const b=n.current;if(!b)return;const E=b.clientWidth;if(E<=0)return;const A=Math.max(1,Math.ceil((b.scrollWidth-E)/E)+1);s(A),u(Math.min(A-1,Math.round(b.scrollLeft/E)));const g=b.querySelector(".card__media"),T=b.parentElement;T&&T.style.setProperty("--ov-arrow-top",`${12+(g?g.offsetHeight:150)/2}px`)},[]);oe.useEffect(()=>{h();const b=n.current;if(!b)return;const E=()=>u(Math.round(b.scrollLeft/Math.max(1,b.clientWidth)));return b.addEventListener("scroll",E,{passive:!0}),window.addEventListener("resize",h),()=>{b.removeEventListener("scroll",E),window.removeEventListener("resize",h)}},[h,d]);const p=oe.useCallback(b=>{const E=n.current;if(!E)return;const A=Math.max(0,Math.min(o-1,b));E.scrollTo({left:A*E.clientWidth,behavior:"smooth"})},[o]),m=!r&&o>1;return f.jsxs("section",{className:"row ov-carousel",children:[f.jsxs("div",{className:"row__head",children:[f.jsx("h2",{className:"row__title",children:e}),f.jsxs(En,{className:"row__viewall",to:"/assets",children:[ae("overview.viewAll")," ",f.jsx(_t,{name:"view-all-arrow",size:18})]})]}),f.jsxs("div",{className:"ov-carousel__viewport",children:[m?f.jsx("button",{className:"ov-arrow ov-arrow--left",onClick:()=>p(i-1),disabled:i<=0,"aria-label":ae("overview.previous"),children:f.jsx("img",{src:w2,alt:"","aria-hidden":!0})}):null,f.jsx("div",{className:"ov-carousel__track",ref:n,children:r?Array.from({length:_2}).map((b,E)=>f.jsx("div",{className:"card card--skeleton"},E)):t.map(b=>f.jsx($l,{item:b},b.id))}),m?f.jsx("button",{className:"ov-arrow ov-arrow--right",onClick:()=>p(i+1),disabled:i>=o-1,"aria-label":ae("overview.next"),children:f.jsx("img",{src:w2,alt:"","aria-hidden":!0})}):null]}),m?f.jsx("div",{className:"ov-carousel__dots","aria-label":ae("overview.carouselPages",{title:e}),children:Array.from({length:o}).map((b,E)=>f.jsx("button",{className:`ov-dot${E===i?" is-active":""}`,onClick:()=>p(E),"aria-label":ae("overview.goToPage",{page:E+1}),"aria-current":E===i?"true":void 0},E))}):null]})}function v6(){f6({});const{data:e,isLoading:t}=Gr({queryKey:["overview-listings"],queryFn:()=>ph({first:24})}),r=(e==null?void 0:e.items)??[];return f.jsxs("div",{className:"overview",children:[f.jsxs("section",{className:"ov-hero",children:[f.jsx("img",{className:"ov-hero__bg",src:h6,alt:"","aria-hidden":!0}),f.jsx("div",{className:"ov-hero__scrim","aria-hidden":!0}),f.jsxs("div",{className:"ov-hero__inner",children:[f.jsx("h1",{className:"ov-hero__title",children:ae("overview.heroTitle")}),f.jsx(y6,{as:En,to:"/assets",variant:"purple",children:ae("overview.exploreCollection")})]})]}),t||r.length>0?f.jsxs(f.Fragment,{children:[f.jsx(E2,{title:ae("overview.featuredProducts"),items:r.slice(0,12),loading:t}),f.jsxs("section",{className:"ov-promos",children:[f.jsx(En,{className:"ov-promo",to:"/assets","aria-label":ae("overview.promoEmotesAria"),children:f.jsx("img",{src:p6,alt:ae("overview.promoEmotesAlt")})}),f.jsx(En,{className:"ov-promo",to:"/assets","aria-label":ae("overview.promoOutfitsAria"),children:f.jsx("img",{src:m6,alt:ae("overview.promoOutfitsAlt")})})]}),r.length>12?f.jsx(E2,{title:ae("overview.newCreations"),items:r.slice(12,24),loading:!1}):null]}):f.jsxs("div",{className:"overview__empty",children:[f.jsx("p",{className:"overview__empty-title",children:ae("overview.emptyTitle")}),f.jsx("p",{className:"muted",children:ae("overview.emptyBody")}),f.jsx(g6,{as:En,to:"/assets",variant:"purple",children:ae("notFound.cta")})]}),f.jsx(n6,{}),f.jsx(t6,{}),f.jsx(c6,{})]})}const b6={"/overview":"overview","/assets":"assets","/my-assets":"my_assets","/my-favorites":"favorites","/my-purchases":"my_purchases","/import":"import","/store-settings":"store_settings","/cart":"cart","/credits":"credits","/success":"success"},w6=oe.lazy(()=>xt(()=>import("./Assets-5wZu90xj.js"),__vite__mapDeps([22,1,23,24,25,12,2,7,6,26,27,28,29,30,31,32,33,8])).then(e=>({default:e.Assets}))),_6=oe.lazy(()=>xt(()=>import("./ItemDetail-BqrPvIRT.js"),__vite__mapDeps([34,1,2,27,28,12,7,6,29,35,36,30,31,17,26,25,37,38,39,8,40])).then(e=>({default:e.ItemDetail}))),E6=oe.lazy(()=>xt(()=>import("./Collection-Bi7w1GKJ.js"),__vite__mapDeps([41,1,31,42,43,44,2,37,23,24,32,33,6,7,8,45])).then(e=>({default:e.Collection}))),x6=oe.lazy(()=>xt(()=>import("./Creator-B13Gi9z4.js"),__vite__mapDeps([46,1,42,43,44,2,37,23,24,32,33,31,6,7,8,47])).then(e=>({default:e.Creator}))),S6=oe.lazy(()=>xt(()=>import("./StoreSettings-BhJ4tKkZ.js"),__vite__mapDeps([48,1,44,2,31,6,7,8,49])).then(e=>({default:e.StoreSettings}))),C6=oe.lazy(()=>xt(()=>import("./MyAssets-CzmZ_l10.js"),__vite__mapDeps([50,1,51,27,2,28,12,7,6,25,30,31,52,32,33,8,53])).then(e=>({default:e.MyAssets}))),T6=oe.lazy(()=>xt(()=>import("./MyFavorites-CdAcz-wK.js"),__vite__mapDeps([54,1,32,2,6,7,8])).then(e=>({default:e.MyFavorites}))),A6=oe.lazy(()=>xt(()=>import("./MyPurchases-Bw8Lb-63.js"),__vite__mapDeps([55,1,32,33,2,6,7,8])).then(e=>({default:e.MyPurchases}))),I6=oe.lazy(()=>xt(()=>import("./ImportListings-hNp1sEuT.js"),__vite__mapDeps([56,1,51,27,2,28,12,7,6,25,52,8,57])).then(e=>({default:e.ImportListings}))),k6=oe.lazy(()=>xt(()=>import("./Cart-DDgcOTzw.js"),__vite__mapDeps([58,1,27,2,28,12,7,6,29,59,35,31,30,38,39,8,60])).then(e=>({default:e.Cart}))),R6=oe.lazy(()=>xt(()=>import("./GetCredits-C3rj35ez.js"),__vite__mapDeps([61,1,36,59,35,17,2,6,7,8])).then(e=>({default:e.GetCredits}))),P6=oe.lazy(()=>xt(()=>import("./Success-CiXoIPVr.js"),__vite__mapDeps([62,1,2,52,29,28,12,7,6,8])).then(e=>({default:e.Success}))),N6=oe.lazy(()=>xt(()=>import("./NotFound-C3wbCG4q.js"),__vite__mapDeps([63,1,2,6,7,8])).then(e=>({default:e.NotFound})));function O6(){return f.jsx("div",{className:"page-loading","aria-busy":"true",children:f.jsx("span",{className:"spinner","aria-hidden":!0})})}const j6=Et(Za)`
|
|
230
|
-
margin-top: 10px;
|
|
231
|
-
`;function L6(){return f.jsxs("div",{className:"overview__empty",children:[f.jsx("p",{className:"overview__empty-title",children:ae("app.crash.title")}),f.jsx("p",{className:"muted",children:ae("app.crash.body")}),f.jsx(j6,{variant:"purple",onClick:()=>window.location.reload(),children:ae("app.crash.reload")})]})}function B6(){U4();const e=L2();return oe.useEffect(()=>{qy()},[]),oe.useEffect(()=>{const t=e.pathname,r=b6[t]??(t.startsWith("/item/")?"item":t.startsWith("/collection/")?"collection":t.startsWith("/assets/creator/")?"creator":"other");My(r)},[e.pathname]),f.jsxs(f.Fragment,{children:[f.jsx(h4,{}),f.jsx(q4,{}),f.jsx(I4,{}),f.jsx(o4,{}),f.jsx("main",{className:"page",children:f.jsx(lu,{fallback:f.jsx(L6,{}),children:f.jsx(oe.Suspense,{fallback:f.jsx(O6,{}),children:f.jsxs(Hh,{children:[f.jsx(jt,{path:"/",element:f.jsx(iu,{to:"/overview",replace:!0})}),f.jsx(jt,{path:"/overview",element:f.jsx(v6,{})}),f.jsx(jt,{path:"/assets",element:f.jsx(w6,{})}),f.jsx(jt,{path:"/market",element:f.jsx(iu,{to:"/assets",replace:!0})}),f.jsx(jt,{path:"/item/:contractAddress/:tokenId",element:f.jsx(_6,{})}),f.jsx(jt,{path:"/collection/:contractAddress",element:f.jsx(E6,{})}),f.jsx(jt,{path:"/assets/creator/:address",element:f.jsx(x6,{})}),f.jsx(jt,{path:"/store-settings",element:f.jsx(S6,{})}),f.jsx(jt,{path:"/my-assets",element:f.jsx(C6,{})}),f.jsx(jt,{path:"/my-favorites",element:f.jsx(T6,{})}),f.jsx(jt,{path:"/my-purchases",element:f.jsx(A6,{})}),f.jsx(jt,{path:"/import",element:f.jsx(I6,{})}),f.jsx(jt,{path:"/cart",element:f.jsx(k6,{})}),f.jsx(jt,{path:"/credits",element:f.jsx(R6,{})}),f.jsx(jt,{path:"/success",element:f.jsx(P6,{})}),f.jsx(jt,{path:"*",element:f.jsx(N6,{})})]})})})}),f.jsx(lu,{fallback:f.jsx(f.Fragment,{}),children:f.jsx(O4,{})})]})}function M6({children:e}){const t=sl(r=>r.locale);return Pb(t),f.jsx(Gv,{value:kl(t),children:e},t)}Zy();const F6=new P1({defaultOptions:{queries:{staleTime:3e4,refetchOnWindowFocus:!1}}}),$6=["localhost","127.0.0.1"].includes(window.location.hostname),D6=$6?void 0:"/shop";zh.createRoot(document.getElementById("root")).render(f.jsx(j2.StrictMode,{children:f.jsx(O1,{client:F6,children:f.jsx(M6,{children:f.jsx(Gh,{basename:D6,children:f.jsx(B6,{})})})})}));export{uf as $,$l as A,Za as B,hr as C,_0 as D,w2 as E,La as F,r8 as G,rh as H,_t as I,_w as J,Aw as K,pn as L,Ke as M,Sw as N,hn as O,vw as P,b_ as Q,wl as R,ff as S,g_ as T,jm as U,vl as V,ka as W,af as X,os as Y,gl as Z,xt as _,f6 as a,Pw as a$,yl as a0,uh as a1,S1 as a2,Z6 as a3,W6 as a4,H1 as a5,ai as a6,b8 as a7,Kn as a8,Dt as a9,l2 as aA,jb as aB,Ld as aC,Nb as aD,Uf as aE,Y4 as aF,Y6 as aG,_8 as aH,H4 as aI,z4 as aJ,G_ as aK,z_ as aL,H_ as aM,W4 as aN,K4 as aO,u8 as aP,c8 as aQ,L_ as aR,e_ as aS,nl as aT,tl as aU,Ko as aV,Ew as aW,Jw as aX,sh as aY,dh as aZ,Nr as a_,Rl as aa,Wo as ab,m8 as ac,Q6 as ad,ph as ae,Qe as af,Na as ag,m4 as ah,g4 as ai,Fl as aj,y4 as ak,Jn as al,_h as am,f8 as an,V4 as ao,Og as ap,Pr as aq,q_ as ar,v8 as as,h8 as at,l8 as au,Z_ as av,K_ as aw,Yc as ax,y8 as ay,ol as az,pr as b,a8 as b0,u_ as b1,l_ as b2,U5 as b3,n_ as b4,Rv as b5,Ow as b6,Bw as b7,rw as b8,eh as b9,s8 as ba,rl as bb,us as bc,Ha as bd,ss as be,_l as bf,aw as bg,ww as bh,sw as bi,Jf as bj,Xf as bk,ow as bl,yw as bm,Fw as bn,o8 as bo,v_ as bp,y_ as bq,Pl as br,I_ as bs,jw as bt,B5 as bu,th as bv,Ea as c,bo as d,e8 as e,d8 as f,Gr as g,g8 as h,Ml as i,Ze as j,go as k,w8 as l,i8 as m,m_ as n,Ov as o,p8 as p,t8 as q,n8 as r,Et as s,ae as t,N1 as u,jv as v,X6 as w,$y as x,J6 as y,_g as z};
|