@dcl/shop 1.14.1-35741939881.commit-2c07d5a → 1.15.0
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/{Activity-CNS_JCe9.js → Activity-BBgqwdRc.js} +4 -4
- package/_assets/{AnimatedBackground-CR4y0wnf.js → AnimatedBackground-CAe8erqx.js} +6 -6
- package/_assets/{Assets-1J4XfIwm.js → Assets-BVr6Ienp.js} +3 -3
- package/_assets/{Cart-DIIL5HsZ.js → Cart-uMh-LLkS.js} +2 -2
- package/_assets/{Collection-CvJiHZVa.js → Collection-C6wH7PGc.js} +2 -2
- package/_assets/{CollectionCarousel-DPYm9Mco.js → CollectionCarousel-DLu1yG2d.js} +3 -3
- package/_assets/{Confetti-C2sCoHqz.js → Confetti-CUYY8WKL.js} +4 -4
- package/_assets/{ConstantsUtil-CtK55tBM.js → ConstantsUtil-Du7Rw-I9.js} +2 -2
- package/_assets/{ContentClient---ThWfq5.js → ContentClient-CQ0rZRJX.js} +2 -2
- package/_assets/{Creator-DtK2YAcr.js → Creator-DiqRz4sK.js} +2 -2
- package/_assets/{CreditPackPicker-Bu7lfEt0.js → CreditPackPicker-CZe0q7lQ.js} +2 -2
- package/_assets/{DeploymentBuilder-DX9hm6Vx.js → DeploymentBuilder-B8n1ixz5.js} +2 -2
- package/_assets/{EmotePlaybackBar-VJrZBuv1.js → EmotePlaybackBar-Dh9mWTmr.js} +3 -3
- package/_assets/{ErrorNotice-CnnV8mz4.js → ErrorNotice-BZweT4nq.js} +2 -2
- package/_assets/{Event-DeFE0sxr.js → Event-BhrUy_li.js} +2 -2
- package/_assets/{ExchangeController-DpQvYCRl.js → ExchangeController-B8eGX00R.js} +2 -2
- package/_assets/{Faq-DE6qzdtq.js → Faq-BRUGz0o1.js} +2 -2
- package/_assets/{Filters-CTxYIYUu.js → Filters-CWaA5jz_.js} +2 -2
- package/_assets/{GetCredits-BJOzT-T5.js → GetCredits-91FKPj2S.js} +2 -2
- package/_assets/{Grow-D3m23BkN.js → Grow-BtoTVtjh.js} +2 -2
- package/_assets/{HelpersUtil-MbfsN3d3.js → HelpersUtil-DtSGcn50.js} +2 -2
- package/_assets/{ItemDetail-CqLjVfgA.js → ItemDetail-CPUr9pIj.js} +2 -2
- package/_assets/{LoadMore-BEamihJl.js → LoadMore-VpUeZFim.js} +2 -2
- package/_assets/{ManaPricingBanner.styles-CGR_Legr.js → ManaPricingBanner.styles-CAt88qh9.js} +2 -2
- package/_assets/{MyAssets-BZY0f14N.js → MyAssets-BUFp0lDY.js} +2 -2
- package/_assets/{MyFavorites-Ch49eCTH.js → MyFavorites-BJRUv9oZ.js} +2 -2
- package/_assets/{MyStore-BdnpBoag.js → MyStore-CEJ3my3_.js} +2 -2
- package/_assets/{NetworkUtil-dIjLfCHL.js → NetworkUtil-Ciq8Tbsc.js} +2 -2
- package/_assets/{NotFound-BFMIcZXu.js → NotFound-DmCwRSbf.js} +2 -2
- package/_assets/{NotificationsBell-Bq2ZZ4gw.js → NotificationsBell-DbHW9KbV.js} +2 -2
- package/_assets/{OutfitDetail-BqhmZYIW.js → OutfitDetail-BdCmpPcB.js} +2 -2
- package/_assets/{OutfitPreview-DlvPgFcr.js → OutfitPreview-ziiAIMxw.js} +2 -2
- package/_assets/{OutfitStudio-JaenoEiq.js → OutfitStudio-i641piGk.js} +2 -2
- package/_assets/{PaymentMethodStep-CoESxGqg.js → PaymentMethodStep-DLWg_1Mg.js} +5 -5
- package/_assets/{SaleCountdown-0FKwUs64.js → SaleCountdown-D_0C1G0b.js} +2 -2
- package/_assets/{Spinner-DKAtbYs_.js → Spinner-k8dLtOrJ.js} +2 -2
- package/_assets/{StoreSettings-ClPP6EVN.js → StoreSettings-DiqvHUbK.js} +2 -2
- package/_assets/{Success-FfIv1cKr.js → Success-yvCjE3be.js} +2 -2
- package/_assets/{SwapController-vzfIBCB9.js → SwapController-L-o_4Zfy.js} +2 -2
- package/_assets/{Tooltip-CAzvjIL5.js → Tooltip-BEJkU8QC.js} +2 -2
- package/_assets/{TradeService-BVxpRrNq.js → TradeService-DVeKA0A9.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-DNYk5G4L.js → W3MFrameProviderSingleton-BxpE6Qai.js} +4 -4
- package/_assets/{WebCryptoP256-CCC68jvZ.js → WebCryptoP256-DKkCHgRo.js} +2 -2
- package/_assets/{basic-042ceHB8.js → basic-DHFzByJo.js} +2 -2
- package/_assets/{biconomy-DEYIdKlV.js → biconomy-DCsUE-Aa.js} +2 -2
- package/_assets/{browseLayout.styles-CKYDua24.js → browseLayout.styles-fXEIBUq8.js} +2 -2
- package/_assets/{browser-C20Uc0wQ.js → browser-gYEIuxiW.js} +2 -2
- package/_assets/{browser-ponyfill-Dtf1Z5ay.js → browser-ponyfill-5UyluzqP.js} +2 -2
- package/_assets/{browser-v7KHsLbj.js → browser-zYx7iqzr.js} +2 -2
- package/_assets/{buy-gasless-CRa4-QEX.js → buy-gasless-BheWI81y.js} +2 -2
- package/_assets/{buy-DYrx5sw7.js → buy-zKbAn0Jr.js} +2 -2
- package/_assets/{ccip-DVu2orY5.js → ccip-DAEHnzsX.js} +2 -2
- package/_assets/{ccip-Fhp20WyW.js → ccip-DvIRUO6I.js} +2 -2
- package/_assets/{chains-DUpjct7u.js → chains-lku0nIXt.js} +2 -2
- package/_assets/collectionPage.styles-B8UMV0wt.js +41 -0
- package/_assets/{common-ELx210Ky.js → common-C03gEIWz.js} +2 -2
- package/_assets/{controller-Cjd4OjdS.js → controller-CoiO-8ak.js} +3 -3
- package/_assets/{core-BpMZF3ge.js → core-BOjd_Eve.js} +5 -5
- package/_assets/{createSvgIcon-BNygoSPD.js → createSvgIcon-BiXHCpBo.js} +2 -2
- package/_assets/{crumbs.styles-C28o2CCY.js → crumbs.styles-Bq-08Eo1.js} +2 -2
- package/_assets/{custom-C6Byy1b3.js → custom-D9bjz_2p.js} +2 -2
- package/_assets/{data-capture-Cs_WMhaC.js → data-capture-CGASy8JJ.js} +2 -2
- package/_assets/{dcl-schemas-DWx78xmt.js → dcl-schemas-COntwfiV.js} +2 -2
- package/_assets/{decimals-BKdb11Fi.js → decimals-BpivF8HU.js} +2 -2
- package/_assets/{decimals-DjcFJVYC.js → decimals-C39Js9A5.js} +2 -2
- package/_assets/{detectExtension-jIQJV_Bd.js → detectExtension-CYK2hYlo.js} +2 -2
- package/_assets/{disposePreview-DPRAT5n5.js → disposePreview-C9RvsbNf.js} +2 -2
- package/_assets/{email-DRrE_OJ9.js → email-B7Hqc3Al.js} +2 -2
- package/_assets/{embedded-wallet-DgiJiiRa.js → embedded-wallet-DQ3g7rbj.js} +2 -2
- package/_assets/{emotion-styled.browser.esm-VoGqX4jC.js → emotion-styled.browser.esm-orHSWwQS.js} +2 -2
- package/_assets/{engine-CdY_avUc.js → engine-BVrA-eDe.js} +2 -2
- package/_assets/{errors-BL1_71KQ.js → errors-DxKvZXrL.js} +2 -2
- package/_assets/{estimate-l1-fee-D5JoQx1d.js → estimate-l1-fee-CI9CaMqP.js} +2 -2
- package/_assets/{eth_estimateGas-B3hkW1x0.js → eth_estimateGas-grjD8ZC6.js} +2 -2
- package/_assets/{eth_getStorageAt-3qPhHseU.js → eth_getStorageAt-Di8D3-FZ.js} +2 -2
- package/_assets/{eth_getTransactionCount-C6-gv120.js → eth_getTransactionCount-dmwPv1uL.js} +2 -2
- package/_assets/{ethereum-HpOsaaRE.js → ethereum-BXBXB0WJ.js} +2 -2
- package/_assets/{ethers-CrJ5ldNF.js → ethers-BIoA35Pn.js} +2 -2
- package/_assets/{events-DwKtG9g7.js → events-DNWUGNd7.js} +2 -2
- package/_assets/{execute-kM7s7QXx.js → execute-BRAlOglu.js} +3 -3
- package/_assets/{extractIPFS-DBi5jtHG.js → extractIPFS-B6dS8Wbs.js} +2 -2
- package/_assets/{features-CMw82QKz.js → features-YldM2Blt.js} +2 -2
- package/_assets/{fetchTokenMetadata-GSOzOasE.js → fetchTokenMetadata-BTPEU-3q.js} +3 -3
- package/_assets/{field.styles-o4tjas-4.js → field.styles-7aAfESFo.js} +2 -2
- package/_assets/{fortmatic-5N4Im3cl.js → fortmatic-Du20O965.js} +2 -2
- package/_assets/{get-bytecode-BqPeAoLV.js → get-bytecode-Dmk-6Mk4.js} +2 -2
- package/_assets/{get-ecosystem-wallet-info-Gv6nN833.js → get-ecosystem-wallet-info-IK9mOCLo.js} +2 -2
- package/_assets/{getBalance-DUHH390H.js → getBalance-ktnD9Moc.js} +3 -3
- package/_assets/{getInstalledModules-DLyGZ8jg.js → getInstalledModules-jTPTLnb8.js} +2 -2
- package/_assets/{getNFT-DFH8hAui.js → getNFT-CwzF6z_7.js} +2 -2
- package/_assets/{getNFT-HkoXU_Sv.js → getNFT-DbXgJ4kx.js} +3 -3
- package/_assets/{grid.styles-uxy9NCd3.js → grid.styles-Reh_Sfmk.js} +2 -2
- package/_assets/{hashTypedData-D37ZWtGa.js → hashTypedData-B5WTbVYh.js} +2 -2
- package/_assets/{hashTypedData-PrQTswCW.js → hashTypedData-B72YO7bf.js} +2 -2
- package/_assets/{import-D3eNER_R.js → import-CJWafgcM.js} +2 -2
- package/_assets/{in-app-JHO5rkZY.js → in-app-reC7MW7U.js} +2 -2
- package/_assets/{in-app-wallet-calls-gXtDRTf0.js → in-app-wallet-calls-YVgiy_Z_.js} +2 -2
- package/_assets/{index-CrTtW7ib.js → index-1tydFwH5.js} +4 -4
- package/_assets/{index-DQo_kR-X.js → index-2QUWziXM.js} +2 -2
- package/_assets/{index-Fnnr52Zo.js → index-7WKP3ObD.js} +2 -2
- package/_assets/{index-CF_-f4j7.js → index-B-cCk8d1.js} +2 -2
- package/_assets/{index-B1qQUgCw.js → index-B0NLjhmz.js} +2 -2
- package/_assets/{index-H1ONtXq_.js → index-B18ZHjoG.js} +2 -2
- package/_assets/{index-C9aZT1A5.js → index-B3PqY8NV.js} +2 -2
- package/_assets/{index-CTKEbHxo.js → index-B5Il9w_t.js} +2 -2
- package/_assets/{index-S_xxRX5B.js → index-B610oYVJ.js} +2 -2
- package/_assets/{index-B2yMpaxe.js → index-B7A8C7MY.js} +2 -2
- package/_assets/{index-rhQ-eDQn.js → index-B7Z8xaGK.js} +2 -2
- package/_assets/{index-DNEdUu87.js → index-BQBSlmH-.js} +2 -2
- package/_assets/{index-CQj_DDMA.js → index-BVGDgDVf.js} +2 -2
- package/_assets/{index-VuiHTTj-.js → index-BWz0ngpy.js} +2 -2
- package/_assets/{index-De5oqThi.js → index-BXCm1lR6.js} +2 -2
- package/_assets/{index-CSsPrmzp.js → index-BYiScitc.js} +2 -2
- package/_assets/{index-wr1WVuLg.js → index-BZcBt3X8.js} +2 -2
- package/_assets/{index-ByQD8hxM.js → index-Ba4Qb-tQ.js} +2 -2
- package/_assets/{index-DFumJ4wf.js → index-Butijfje.js} +2 -2
- package/_assets/{index-BcZtRIMz.js → index-C-w85US7.js} +2 -2
- package/_assets/{index-B65so4Ch.js → index-CA7DDOOl.js} +3 -3
- package/_assets/{index-M2lOtr-r.js → index-CBv79d7E.js} +2 -2
- package/_assets/{index-vzfAJ0fY.js → index-CJ1iqO8A.js} +2 -2
- package/_assets/{index-BeyWzenD.js → index-CLFGNSZ-.js} +2 -2
- package/_assets/{index-hp5MSBBj.js → index-COT5Frck.js} +2 -2
- package/_assets/{index-Cz1gkPqp.js → index-COio6Ejd.js} +12 -12
- package/_assets/{index-DUYz3I7I.js → index-CQ_hwt2w.js} +2 -2
- package/_assets/{index-PT9fH4r2.js → index-CYwEY6Wy.js} +2 -2
- package/_assets/{index-0y8Zn0zG.js → index-CZiKz5pK.js} +2 -2
- package/_assets/{index-DZjqAtGF.js → index-C_gzza3J.js} +2 -2
- package/_assets/{index-wdBXuJRn.js → index-CcdPYHZS.js} +3 -3
- package/_assets/{index-CotIjV-5.js → index-Cd_cQb_5.js} +4 -4
- package/_assets/{index-BOgQlMmh.js → index-ClePbRUv.js} +3 -3
- package/_assets/{index-CNvXNEae.js → index-CnNEDEKF.js} +2 -2
- package/_assets/{index-BzFw2S12.js → index-CnZUnVbC.js} +2 -2
- package/_assets/{index-C82dLsVC.js → index-Csltect9.js} +2 -2
- package/_assets/{index-Dquscgns.js → index-Cvfa-O4J.js} +2 -2
- package/_assets/{index-IpyVKu2H.js → index-CyJXEo_c.js} +2 -2
- package/_assets/{index-CvPhrKMB.js → index-D-gigTjB.js} +2 -2
- package/_assets/{index-DAaq8AAl.js → index-D1h1jMQm.js} +2 -2
- package/_assets/{index-CU2NjxXk.js → index-D2gmXgfJ.js} +2 -2
- package/_assets/{index-DD2xWUfC.js → index-D48CxYHB.js} +2 -2
- package/_assets/{index-CxP0J4UQ.js → index-D4EeOyaA.js} +2 -2
- package/_assets/{index-CNrT3lXq.js → index-D71yoQwh.js} +4 -4
- package/_assets/{index-D54ZVV5p.js → index-D8OXtAip.js} +2 -2
- package/_assets/{index-CSDxQwAJ.js → index-DA4F0G5P.js} +2 -2
- package/_assets/{index-Bj_QPTWr.js → index-DAFOiLHS.js} +2 -2
- package/_assets/{index-BLSQoUoe.js → index-DAh-ftDy.js} +2 -2
- package/_assets/{index-Be-SnCqN.js → index-DDjkaD8J.js} +2 -2
- package/_assets/{index-DgqLfZEx.js → index-DHvU-KWh.js} +2 -2
- package/_assets/{index-tml2q7sp.js → index-DJIQTk8q.js} +2 -2
- package/_assets/{index-CGKHdy5-.js → index-DKiO6CtY.js} +2 -2
- package/_assets/{index-C9s4xn8h.js → index-DSwXuC0D.js} +2 -2
- package/_assets/{index-Dq92ujA0.js → index-DURI-gf8.js} +2 -2
- package/_assets/index-DVuzXPDM.css +1 -0
- package/_assets/{index-BPmksklK.js → index-DW-Melj-.js} +2 -2
- package/_assets/{index-zQqguv9E.js → index-DcTChipn.js} +3 -3
- package/_assets/{index-DR7TXHQp.js → index-DcpPAZS7.js} +2 -2
- package/_assets/{index-CdKjm78V.js → index-DdpXntwz.js} +2 -2
- package/_assets/{index-eGYVHii2.js → index-DkEEbiDR.js} +2 -2
- package/_assets/{index-Yppwvypt.js → index-DrLA_VU_.js} +2 -2
- package/_assets/{index-BRfMKHFe.js → index-DtTYXgF3.js} +2 -2
- package/_assets/{index-Dl65QUwJ.js → index-GQaePZB9.js} +2 -2
- package/_assets/{index-CbRvrdpb.js → index-YHzCYJkG.js} +2 -2
- package/_assets/{index-Bey6qSFK.js → index-Ys04Xign.js} +2 -2
- package/_assets/{index-RDj3L4o1.js → index-jyj9sHwU.js} +2 -2
- package/_assets/{index-CUAWJbIm.js → index-nBFm5kuI.js} +2 -2
- package/_assets/{index-BTOs8fTb.js → index-uYTIcGSZ.js} +2 -2
- package/_assets/{index.es-CMyjZAO0.js → index.es-BXEjCl7y.js} +2 -2
- package/_assets/{index.es-C8XHt6Ti.js → index.es-BZK_Cifn.js} +5 -5
- package/_assets/{index.es-1pbYt5cr.js → index.es-Bn4oTPjZ.js} +2 -2
- package/_assets/{index.es-CdNfmFUV.js → index.es-CU-vsJdv.js} +2 -2
- package/_assets/items-empty-DGRxHTWy.js +2 -0
- package/_assets/{jump-DWlz3CUP.js → jump-DWbTrGpm.js} +2 -2
- package/_assets/{linkAccount-Ckt0HAx3.js → linkAccount-CMtMM4t3.js} +2 -2
- package/_assets/{loader-logo-Csjy-m2Q.js → loader-logo-CeNjVZuG.js} +2 -2
- package/_assets/{localBatchGatewayRequest-Dhy5qVCX.js → localBatchGatewayRequest-8oF0MPC1.js} +2 -2
- package/_assets/{modal.styles-CUKE11GW.js → modal.styles-hpuefgX4.js} +2 -2
- package/_assets/{native-DcmWBWd5.js → native-CPeL4rJZ.js} +2 -2
- package/_assets/{networks-bpRU9a50.js → networks-BhouyyPS.js} +2 -2
- package/_assets/{onramp-Dpy9tH4d.js → onramp-BvIHLQAv.js} +2 -2
- package/_assets/{openzeppelin-1GQzXJg9.js → openzeppelin-OZNoWqYj.js} +2 -2
- package/_assets/{ownerOf-C6pMzSB4.js → ownerOf-bCzxqzq0.js} +2 -2
- package/_assets/{parseNft-Cu4IvFmn.js → parseNft-pxEjnpjF.js} +3 -3
- package/_assets/{parseSignature-WQFjTLMm.js → parseSignature-BAJHdtSB.js} +4 -4
- package/_assets/{parseSignature-BzrTvLuZ.js → parseSignature-CpDiAFfJ.js} +2 -2
- package/_assets/{passkeys-TsrXpJb1.js → passkeys-iblxlDv1.js} +2 -2
- package/_assets/{pay-with-exchange-DD4ENO4_.js → pay-with-exchange-CLgZOiU6.js} +2 -2
- package/_assets/{prepare-contract-call-DtSHEo_3.js → prepare-contract-call-CoHsXlvg.js} +2 -2
- package/_assets/{qr-overlay-lmwEVI8k.js → qr-overlay-B_NIDLKC.js} +4 -4
- package/_assets/{react-CIQLPMFg.js → react-BmPeg6sG.js} +2 -2
- package/_assets/{receive-C5DczZDN.js → receive-DszbAWAn.js} +2 -2
- package/_assets/{resolveImplementation-BOuZpujm.js → resolveImplementation-32KPFc_U.js} +2 -2
- package/_assets/{resume-buy--KfQKYR6.js → resume-buy-D2TWyIFl.js} +2 -2
- package/_assets/{resume-name-DcFKejtP.js → resume-name-B-MASXQk.js} +2 -2
- package/_assets/{rpc-CpN-UZfC.js → rpc-CHnWH0rF.js} +2 -2
- package/_assets/{sales-empty-yNT_UofY.js → sales-empty-UircscXh.js} +2 -2
- package/_assets/{search-empty-DyNrMjf7.js → search-empty-CPirv6rw.js} +2 -2
- package/_assets/{secp256k1-BPN7BIom.js → secp256k1-BUEs1rcj.js} +2 -2
- package/_assets/{secp256k1-CDYbbxrE.js → secp256k1-Bb0zIfEz.js} +2 -2
- package/_assets/{secp256k1-BBb9sif7.js → secp256k1-D1DTa_mW.js} +2 -2
- package/_assets/{send-CRh2vZW2.js → send-C8TzZsHF.js} +2 -2
- package/_assets/{send-batch-transaction-DVXcUI5O.js → send-batch-transaction-CcXPrdOH.js} +2 -2
- package/_assets/{send-eip712-transaction-DW1F2yZt.js → send-eip712-transaction-ouILrTb6.js} +3 -3
- package/_assets/{send-gasless-transaction-gDOIIkDc.js → send-gasless-transaction-rKjG34Kj.js} +3 -3
- package/_assets/{send-transaction-KJII67U1.js → send-transaction-BbLs2Ynf.js} +3 -3
- package/_assets/{sendMetaTransaction-TqW_X_rn.js → sendMetaTransaction-Dy6lp92T.js} +2 -2
- package/_assets/{sendRawTransaction-CsinkY_q.js → sendRawTransaction-BY7CWiPp.js} +4 -4
- package/_assets/{sentry-BLkqPRre.js → sentry-CfKEockx.js} +3 -3
- package/_assets/{serializeTransaction-96z6-C8p.js → serializeTransaction-DOIuoefa.js} +2 -2
- package/_assets/{session-proposal-DEKXCk4o.js → session-proposal-BR55dEaA.js} +2 -2
- package/_assets/{session-request-Dw2PW8Aa.js → session-request-C_hO74mD.js} +3 -3
- package/_assets/{sha256-D1sg_FYq.js → sha256-BJjUSCTX.js} +2 -2
- package/_assets/{sha3-xHGanBJ2.js → sha3-B3El3U9k.js} +2 -2
- package/_assets/signin-empty-XsT9jLzt.js +2 -0
- package/_assets/{signing-C11hELiu.js → signing-D66RpSSx.js} +4 -4
- package/_assets/{skeleton.styles-D6CyJhvn.js → skeleton.styles-B3BxeSy_.js} +2 -2
- package/_assets/{socials-D3SwHCBa.js → socials-fdANcU4O.js} +2 -2
- package/_assets/{styled-B09X0nfq.js → styled-ihfZhc5C.js} +2 -2
- package/_assets/{swaps-DJf-P7SE.js → swaps-DZV3-WZp.js} +2 -2
- package/_assets/{thirdweb-CRUHF8UW.js → thirdweb-dhrmjSPt.js} +4 -4
- package/_assets/{to-serializable-transaction-Dlsw6UR3.js → to-serializable-transaction-BxxEhlQY.js} +3 -3
- package/_assets/{totalSupply-CE6xv02e.js → totalSupply-B2nCZvgY.js} +2 -2
- package/_assets/{trade-encoding-DxJLtadh.js → trade-encoding-D0iBabuM.js} +2 -2
- package/_assets/{transaction-CBhR-RZ-.js → transaction-CJXWN8an.js} +2 -2
- package/_assets/{transactionReceipt-CZ8aixVn.js → transactionReceipt-CpzMTSMZ.js} +2 -2
- package/_assets/{transactions-BXw96qhh.js → transactions-CKkVNjQ4.js} +2 -2
- package/_assets/{useCreatorSales-CuvNT76-.js → useCreatorSales-Ze3V5ohC.js} +2 -2
- package/_assets/{useInfiniteGrid-BVnan2j4.js → useInfiniteGrid-D8vhQEzx.js} +2 -2
- package/_assets/{useStore-B3U8zy8P.js → useStore-DdvCUhO-.js} +3 -3
- package/_assets/{useTheme-CUWyjFJw.js → useTheme-QKnvhO7_.js} +2 -2
- package/_assets/{utils-CXCRpUYB.js → utils-5qk7WI4m.js} +2 -2
- package/_assets/{verifyHash-CShFZGYi.js → verifyHash-Dm5TFWpr.js} +2 -2
- package/_assets/{w3m-modal-Dvm-syzo.js → w3m-modal-B5R3n_ak.js} +2 -2
- package/_assets/{w3m-modal-nRNzH_yB.js → w3m-modal-CEqDQIHN.js} +2 -2
- package/_assets/{wait-for-tx-receipt-C1d78DSP.js → wait-for-tx-receipt-CUblm3Uy.js} +2 -2
- package/_assets/{wallets-ofrUKkM4.js → wallets-BT0Osdwo.js} +6 -6
- package/_assets/{web-connector-DLcUxWtU.js → web-connector-BzJlWUBl.js} +4 -4
- package/_assets/{writeContract-P05P_hf3.js → writeContract-CH8f16EO.js} +2 -2
- package/_assets/{zora-sepolia-z0_IZNrm.js → zora-sepolia-BfgSfWmM.js} +2 -2
- package/_assets/{zoraTestnet-s146C09S.js → zoraTestnet-CiGZFo3e.js} +2 -2
- package/index.html +12 -12
- package/package.json +1 -1
- package/_assets/collectionPage.styles-Dvxboaj-.js +0 -41
- package/_assets/index-DjZoOGNQ.css +0 -1
- package/_assets/items-empty-DgC6LQFu.js +0 -2
- package/_assets/signin-empty-DWHxLN5Z.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as u,B as re}from"./dcl-schemas-DWx78xmt.js";import{c as _,b as x,D as ae,bf as se,l as U,M as ie,h as g,j as y,x as oe,bg as ce,g as de,bh as ue}from"./index-Cz1gkPqp.js";import"./react-CIQLPMFg.js";import{M as le,E as pe,s as fe}from"./sendMetaTransaction-TqW_X_rn.js";import{C as l,M as ge,Z as z,J as ye,I as we,p as G,h as A,r as $,a as h,b as L,u as Ae,B as S}from"./ethers-CrJ5ldNF.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="62c3b5cb-7f21-463c-a5f6-475c185b309e",e._sentryDebugIdIdentifier="sentry-dbid-62c3b5cb-7f21-463c-a5f6-475c185b309e")}catch{}})();const O="".trim().toLowerCase(),R={enabled:O!=="0"&&O!=="false",relayerUrl:_.relayerUrl};function qe(){return R.enabled}class E extends Error{constructor(t,n){super(`${t} reverted on-chain`),this.what=t,this.txHash=n,this.name="MetaTxRevertedError"}}class k extends Error{constructor(t,n,r){super(`${t} was submitted but not confirmed in time`),this.what=t,this.txHash=n,this.name="MetaTxPendingError",r&&"cause"in r&&(this.cause=r.cause)}}async function he(e,t,n){const r=p();let a;try{a=await r.waitForTransaction(e,1,(n==null?void 0:n.timeoutMs)??12e4)}catch(s){throw new k(t,e,{cause:s})}if(!a)throw new k(t,e);if(a.status===0)throw new E(t,e);return e}async function We(e){const{txHash:t,what:n,isDone:r,timeoutMs:a=10*6e4,onWaiting:s}=e,i=Math.max(e.pollMs??5e3,50),o=p(),c=Date.now();for(;Date.now()-c<a;){try{if(await r())return t}catch{}try{const d=await o.getTransactionReceipt(t);if(d){if(d.status===0)throw new E(n,t);return t}}catch(d){if(d instanceof E)throw d}s==null||s(Date.now()-c),await new Promise(d=>setTimeout(d,i))}try{if(await r())return t}catch{}throw new k(n,t)}var q=(e=>(e.Allowance="allowance",e.Approval="approval",e.Minter="minter",e))(q||{});const D=["function allowance(address owner, address spender) view returns (uint256)","function approve(address spender, uint256 amount) returns (bool)"],P=["function isApprovedForAll(address owner, address operator) view returns (bool)","function setApprovalForAll(address operator, bool approved)"],N=["function globalMinters(address minter) view returns (bool)","function setMinters(address[] minters, bool[] values)"],W=ge;function p(){return new ye(_.rpcUrl)}async function V(e,t,n){const r=p();switch(e.kind){case"allowance":{const s=await new l(e.contractAddress,D,r).allowance(t,e.spenderAddress);return n==null||n<=0n?s.gt(0):s.gte(n.toString())}case"approval":return new l(e.contractAddress,P,r).isApprovedForAll(t,e.spenderAddress);case"minter":{const a=new l(e.contractAddress,N,r);try{return await a.globalMinters(e.spenderAddress)}catch{return!1}}}}function me(e){return e.kind==="allowance"?g(y.MANAToken,e.chainId):{...g(y.ERC721CollectionV2,e.chainId),address:e.contractAddress}}function xe(e,t){const n=new we(e.kind==="allowance"?D:e.kind==="approval"?P:N);switch(e.kind){case"allowance":return n.encodeFunctionData("approve",[e.spenderAddress,t?W:z]);case"approval":return n.encodeFunctionData("setApprovalForAll",[e.spenderAddress,t]);case"minter":return n.encodeFunctionData("setMinters",[[e.spenderAddress],[t]])}}const be=new Set(["eth_signTypedData_v4","eth_signTypedData","eth_sign","personal_sign","eth_requestAccounts","eth_accounts","eth_chainId"]);function ve(e,t){return{send:(n,r=[])=>be.has(n)?e.send(n,r):t.send(n,r)}}async function Te(e,t,n){const r=xe(e,n),a=me(e),s=p(),i=ve(t.provider,s),o=await fe(i,s,r,a,{serverURL:R.relayerUrl});await he(o,"the authorization")}function Ie(){var e;try{return((e=oe.getState().session)==null?void 0:e.providerType)??null}catch{return null}}async function Ce(e,t){try{return await ce(e.provider)===t}catch{return!1}}async function Se(e){const{auth:t,signer:n,active:r}=e;if(R.enabled)try{await Te(t,n,r);return}catch(a){if(a instanceof le&&a.code===pe.USER_DENIED)throw a;const s=se(Ie()),i=s&&await Ce(n,t.chainId);if(!s||!i)throw U(a,{flow:"authorizations",step:"gasless_no_fallback",reason:s?"wrong-chain":"managed-wallet"}),a;U(a,{flow:"authorizations",step:"gasless_fallback"})}switch(await ie(n.provider,t.chainId),t.kind){case"allowance":{await(await new l(t.contractAddress,D,n).approve(t.spenderAddress,r?W:z)).wait();return}case"approval":{await(await new l(t.contractAddress,P,n).setApprovalForAll(t.spenderAddress,r)).wait();return}case"minter":{await(await new l(t.contractAddress,N,n).setMinters([t.spenderAddress],[r])).wait();return}}}async function Y(e){const t=await e.signer.getAddress();await V(e.auth,t,e.requiredWei)||await Se({auth:e.auth,signer:e.signer,active:!0})}function Ve(e,t){return ae(e)&&!t}function Ye(e,t){return{kind:"allowance",contractAddress:g(y.MANAToken,e).address,spenderAddress:t,chainId:e}}function Ee(e,t){const n=x(t);return{id:`selling:${e.toLowerCase()}`,group:"selling",kind:"approval",contractAddress:e,spenderAddress:n.address,chainId:t}}const B=e=>Math.floor(e/1e3);async function ke(e){return await de()&&await ue()?_.treasuryAddress:e}function m(e){switch(e.assetType){case u.TradeAssetType.ERC721:return e.tokenId;case u.TradeAssetType.COLLECTION_ITEM:return e.itemId;case u.TradeAssetType.ERC20:case u.TradeAssetType.USD_PEGGED_MANA:return e.amount;default:throw new Error(`Unsupported assetType ${String(e.assetType)}`)}}function Z(e){return{checks:{uses:e.checks.uses,expiration:B(e.checks.expiration),effective:B(e.checks.effective),salt:h(e.checks.salt,32),contractSignatureIndex:e.checks.contractSignatureIndex,signerSignatureIndex:e.checks.signerSignatureIndex,allowedRoot:h(e.checks.allowedRoot||"0x",32),externalChecks:(e.checks.externalChecks??[]).map(t=>({contractAddress:t.contractAddress,selector:t.selector,value:t.value?t.value:"0x",required:t.required}))},sent:e.sent.map(t=>({assetType:t.assetType,contractAddress:t.contractAddress,value:m(t),extra:t.extra?t.extra:"0x"})),received:e.received.map(t=>({assetType:t.assetType,contractAddress:t.contractAddress,value:m(t),extra:t.extra?t.extra:"0x",beneficiary:t.beneficiary}))}}const j={Trade:[{name:"checks",type:"Checks"},{name:"sent",type:"AssetWithoutBeneficiary[]"},{name:"received",type:"Asset[]"}],Asset:[{name:"assetType",type:"uint256"},{name:"contractAddress",type:"address"},{name:"value",type:"uint256"},{name:"extra",type:"bytes"},{name:"beneficiary",type:"address"}],AssetWithoutBeneficiary:[{name:"assetType",type:"uint256"},{name:"contractAddress",type:"address"},{name:"value",type:"uint256"},{name:"extra",type:"bytes"}],Checks:[{name:"uses",type:"uint256"},{name:"expiration",type:"uint256"},{name:"effective",type:"uint256"},{name:"salt",type:"bytes32"},{name:"contractSignatureIndex",type:"uint256"},{name:"signerSignatureIndex",type:"uint256"},{name:"allowedRoot",type:"bytes32"},{name:"externalChecks",type:"ExternalCheck[]"}],ExternalCheck:[{name:"contractAddress",type:"address"},{name:"selector",type:"bytes4"},{name:"value",type:"bytes"},{name:"required",type:"bool"}]},H=["function contractSignatureIndex() view returns (uint256)","function signerSignatureIndex(address) view returns (uint256)"];function J(e,t){const n=x(t);return{kind:q.Minter,contractAddress:e,spenderAddress:n.address,chainId:t}}async function Ze(e){const t=Ee(e.contractAddress,e.chainId);await Y({auth:t,signer:e.signer})}async function je(e){const{signer:t,nft:n,usdPrice:r,expiresAtMs:a,fingerprint:s=""}=e,i=(await t.getAddress()).toLowerCase(),o=x(n.chainId),c=g(y.MANAToken,n.chainId),d=new l(o.address,H,p()),v=await d.contractSignatureIndex(),T=await d.signerSignatureIndex(i),f={signer:i,network:n.network,chainId:n.chainId,type:u.TradeType.PUBLIC_NFT_ORDER,checks:{uses:1,expiration:a,effective:Date.now(),salt:A($(32)),contractSignatureIndex:v.toNumber(),signerSignatureIndex:T.toNumber(),allowedRoot:"0x",externalChecks:[]},sent:[{assetType:u.TradeAssetType.ERC721,contractAddress:n.contractAddress,tokenId:n.tokenId,extra:s}],received:[{assetType:u.TradeAssetType.USD_PEGGED_MANA,contractAddress:c.address,amount:G(String(r)).toString(),extra:"",beneficiary:await ke(i)}]},I={name:o.name,version:o.version,salt:h(A(n.chainId),32),verifyingContract:o.address},C=await t._signTypedData(I,j,Z(f));return{...f,signature:C}}async function He(e){return V(J(e.contractAddress,e.chainId),"")}async function Je(e){await Y({auth:J(e.contractAddress,e.chainId),signer:e.signer})}async function Xe(e){const{signer:t,item:n,usdPrice:r,expiresAtMs:a}=e,s=(await t.getAddress()).toLowerCase(),i=x(n.chainId),o=g(y.MANAToken,n.chainId),c=new l(i.address,H,p()),d=await c.contractSignatureIndex(),v=await c.signerSignatureIndex(s),T=Math.max(1,Math.floor(e.uses??1)),f={signer:s,network:n.network,chainId:n.chainId,type:u.TradeType.PUBLIC_ITEM_ORDER,checks:{uses:T,expiration:a,effective:Date.now(),salt:A($(32)),contractSignatureIndex:d.toNumber(),signerSignatureIndex:v.toNumber(),allowedRoot:"0x",externalChecks:[]},sent:[{assetType:u.TradeAssetType.COLLECTION_ITEM,contractAddress:n.contractAddress,itemId:n.itemId,extra:""}],received:[{assetType:u.TradeAssetType.USD_PEGGED_MANA,contractAddress:o.address,amount:G(String(r)).toString(),extra:"",beneficiary:s}]},I={name:i.name,version:i.version,salt:h(A(n.chainId),32),verifyingContract:i.address},C=await t._signTypedData(I,j,Z(f));return{...f,signature:C}}const{defaultAbiCoder:w,Interface:b,hexZeroPad:M,hexlify:Me,randomBytes:_e}=Ae,Re="tuple(address collection,uint256[] ids,uint256[] prices,address[] beneficiaries)[]",X="tuple(address signer,bytes signature,tuple(uint256 uses,uint256 expiration,uint256 effective,bytes32 salt,uint256 contractSignatureIndex,uint256 signerSignatureIndex,bytes32 allowedRoot,bytes32[] allowedProof,tuple(address contractAddress,bytes4 selector,bytes value,bool required)[] externalChecks) checks,tuple(uint256 assetType,address contractAddress,uint256 value,address beneficiary,bytes extra)[] sent,tuple(uint256 assetType,address contractAddress,uint256 value,address beneficiary,bytes extra)[] received)[]",De="tuple(bytes signature,tuple(uint256 uses,uint256 expiration,uint256 effective,bytes32 salt,uint256 contractSignatureIndex,uint256 signerSignatureIndex,bytes32 allowedRoot,bytes32[] allowedProof,tuple(address contractAddress,bytes4 selector,bytes value,bool required)[] externalChecks) checks,address couponAddress,bytes data,bytes callerData)[]",Q="0x"+"0".repeat(64),F=e=>{const t=Number(e);return t>1e12?Math.floor(t/1e3):t};function K(e,t){return{signer:e.signer,signature:e.signature,checks:ee(e.checks),sent:e.sent.map(n=>({assetType:n.assetType,contractAddress:n.contractAddress,value:m(n),beneficiary:t,extra:n.extra||"0x"})),received:e.received.map(n=>({assetType:n.assetType,contractAddress:n.contractAddress,value:m(n),beneficiary:"beneficiary"in n&&n.beneficiary?n.beneficiary:t,extra:n.extra||"0x"}))}}function Pe(e,t,n){const r=new b(n).getSighash("accept"),a=w.encode([X],[e.map(s=>K(s,t))]);return{selector:r,data:a}}function ee(e){return{uses:e.uses,expiration:F(e.expiration),effective:F(e.effective),salt:M(e.salt,32),contractSignatureIndex:e.contractSignatureIndex,signerSignatureIndex:e.signerSignatureIndex,allowedRoot:e.allowedRoot&&e.allowedRoot!=="0x"?e.allowedRoot:Q,allowedProof:[],externalChecks:(e.externalChecks??[]).map(t=>({contractAddress:t.contractAddress,selector:t.selector,value:t.value,required:t.required}))}}function Ne(e,t=1){return{signature:e.signature,checks:ee(e.checks),couponAddress:e.couponAddress,data:w.encode(["uint256","uint256","bytes32"],[e.discountType,e.discount,e.root]),callerData:w.encode(["tuple(bytes32[][] proofs)"],[{proofs:Array.from({length:Math.max(1,t)},()=>e.proof)}])}}function Ue(e,t,n,r){if(e.length!==t.length)throw new Error(`acceptWithCoupon needs one coupon per trade, got ${t.length} for ${e.length} trades`);const a=new b(r).getSighash("acceptWithCoupon"),s=w.encode([X,De],[e.map(i=>K(i,n)),t.map((i,o)=>Ne(i,e[o].sent.length))]);return{selector:a,data:s}}function Qe(e){if(e!==80002)return{};const t=L("30","gwei");return{maxPriorityFeePerGas:t,maxFeePerGas:t.add(L("50","gwei"))}}function Le(e){return e?e.startsWith("0x")?M(e,32):M("0x"+re.from(e).toString("hex"),32):Q}function Ke(e,t,n,r,a,s,i){const{selector:o,data:c}=i!=null&&i.length?Ue(n,i,r,t):Pe(n,r,t);return ne({target:e,selector:o,data:c,credits:a,maxCreditedValue:s})}function te(e,t){return e.map(n=>({collection:n.collection,ids:[n.itemId],prices:[n.priceWei],beneficiaries:[t]}))}function Oe(e,t,n){const r=new b(n).getSighash("buy"),a=w.encode([Re],[te(e,t)]);return{selector:r,data:a}}function et(e,t,n){return new b(n).encodeFunctionData("buy",[te(e,t)])}function tt(e,t,n,r,a,s){const{selector:i,data:o}=Oe(n,r,t);return ne({target:e,selector:i,data:o,credits:a,maxCreditedValue:s})}function ne(e){const{target:t,selector:n,data:r,credits:a,maxCreditedValue:s}=e,i=a.reduce((c,d)=>c.add(S.from(d.availableAmount)),S.from(0)),o=S.from(s).sub(i);return{credits:a.map(c=>({value:c.amount,expiresAt:Number(c.expiresAt),salt:Le(c.id)})),creditsSignatures:a.map(c=>c.signature),externalCall:{target:t,selector:n,data:r,expiresAt:Math.floor(Date.now()/1e3)+3600*24,salt:Me(_e(32))},customExternalCallSignature:"0x",maxUncreditedValue:o.isNegative()?"0":o.toString(),maxCreditedValue:s}}export{q as A,te as B,Le as C,E as M,j as O,Ee as a,Ze as b,Xe as c,je as d,Je as e,R as f,V as g,tt as h,He as i,Ke as j,Qe as k,K as l,k as m,ve as n,We as o,he as p,qe as q,p as r,Ye as s,Ve as t,Y as u,Se as v,Ne as w,Ue as x,Pe as y,et as z};
|
|
2
|
-
//# sourceMappingURL=trade-encoding-
|
|
1
|
+
import{d as u,B as re}from"./dcl-schemas-COntwfiV.js";import{c as _,b as x,D as ae,bf as se,l as U,M as ie,h as g,j as y,x as oe,bg as ce,g as de,bh as ue}from"./index-COio6Ejd.js";import"./react-BmPeg6sG.js";import{M as le,E as pe,s as fe}from"./sendMetaTransaction-Dy6lp92T.js";import{C as l,M as ge,Z as z,J as ye,I as we,p as G,h as A,r as $,a as h,b as L,u as Ae,B as S}from"./ethers-BIoA35Pn.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="62c3b5cb-7f21-463c-a5f6-475c185b309e",e._sentryDebugIdIdentifier="sentry-dbid-62c3b5cb-7f21-463c-a5f6-475c185b309e")}catch{}})();const O="".trim().toLowerCase(),R={enabled:O!=="0"&&O!=="false",relayerUrl:_.relayerUrl};function qe(){return R.enabled}class E extends Error{constructor(t,n){super(`${t} reverted on-chain`),this.what=t,this.txHash=n,this.name="MetaTxRevertedError"}}class k extends Error{constructor(t,n,r){super(`${t} was submitted but not confirmed in time`),this.what=t,this.txHash=n,this.name="MetaTxPendingError",r&&"cause"in r&&(this.cause=r.cause)}}async function he(e,t,n){const r=p();let a;try{a=await r.waitForTransaction(e,1,(n==null?void 0:n.timeoutMs)??12e4)}catch(s){throw new k(t,e,{cause:s})}if(!a)throw new k(t,e);if(a.status===0)throw new E(t,e);return e}async function We(e){const{txHash:t,what:n,isDone:r,timeoutMs:a=10*6e4,onWaiting:s}=e,i=Math.max(e.pollMs??5e3,50),o=p(),c=Date.now();for(;Date.now()-c<a;){try{if(await r())return t}catch{}try{const d=await o.getTransactionReceipt(t);if(d){if(d.status===0)throw new E(n,t);return t}}catch(d){if(d instanceof E)throw d}s==null||s(Date.now()-c),await new Promise(d=>setTimeout(d,i))}try{if(await r())return t}catch{}throw new k(n,t)}var q=(e=>(e.Allowance="allowance",e.Approval="approval",e.Minter="minter",e))(q||{});const D=["function allowance(address owner, address spender) view returns (uint256)","function approve(address spender, uint256 amount) returns (bool)"],P=["function isApprovedForAll(address owner, address operator) view returns (bool)","function setApprovalForAll(address operator, bool approved)"],N=["function globalMinters(address minter) view returns (bool)","function setMinters(address[] minters, bool[] values)"],W=ge;function p(){return new ye(_.rpcUrl)}async function V(e,t,n){const r=p();switch(e.kind){case"allowance":{const s=await new l(e.contractAddress,D,r).allowance(t,e.spenderAddress);return n==null||n<=0n?s.gt(0):s.gte(n.toString())}case"approval":return new l(e.contractAddress,P,r).isApprovedForAll(t,e.spenderAddress);case"minter":{const a=new l(e.contractAddress,N,r);try{return await a.globalMinters(e.spenderAddress)}catch{return!1}}}}function me(e){return e.kind==="allowance"?g(y.MANAToken,e.chainId):{...g(y.ERC721CollectionV2,e.chainId),address:e.contractAddress}}function xe(e,t){const n=new we(e.kind==="allowance"?D:e.kind==="approval"?P:N);switch(e.kind){case"allowance":return n.encodeFunctionData("approve",[e.spenderAddress,t?W:z]);case"approval":return n.encodeFunctionData("setApprovalForAll",[e.spenderAddress,t]);case"minter":return n.encodeFunctionData("setMinters",[[e.spenderAddress],[t]])}}const be=new Set(["eth_signTypedData_v4","eth_signTypedData","eth_sign","personal_sign","eth_requestAccounts","eth_accounts","eth_chainId"]);function ve(e,t){return{send:(n,r=[])=>be.has(n)?e.send(n,r):t.send(n,r)}}async function Te(e,t,n){const r=xe(e,n),a=me(e),s=p(),i=ve(t.provider,s),o=await fe(i,s,r,a,{serverURL:R.relayerUrl});await he(o,"the authorization")}function Ie(){var e;try{return((e=oe.getState().session)==null?void 0:e.providerType)??null}catch{return null}}async function Ce(e,t){try{return await ce(e.provider)===t}catch{return!1}}async function Se(e){const{auth:t,signer:n,active:r}=e;if(R.enabled)try{await Te(t,n,r);return}catch(a){if(a instanceof le&&a.code===pe.USER_DENIED)throw a;const s=se(Ie()),i=s&&await Ce(n,t.chainId);if(!s||!i)throw U(a,{flow:"authorizations",step:"gasless_no_fallback",reason:s?"wrong-chain":"managed-wallet"}),a;U(a,{flow:"authorizations",step:"gasless_fallback"})}switch(await ie(n.provider,t.chainId),t.kind){case"allowance":{await(await new l(t.contractAddress,D,n).approve(t.spenderAddress,r?W:z)).wait();return}case"approval":{await(await new l(t.contractAddress,P,n).setApprovalForAll(t.spenderAddress,r)).wait();return}case"minter":{await(await new l(t.contractAddress,N,n).setMinters([t.spenderAddress],[r])).wait();return}}}async function Y(e){const t=await e.signer.getAddress();await V(e.auth,t,e.requiredWei)||await Se({auth:e.auth,signer:e.signer,active:!0})}function Ve(e,t){return ae(e)&&!t}function Ye(e,t){return{kind:"allowance",contractAddress:g(y.MANAToken,e).address,spenderAddress:t,chainId:e}}function Ee(e,t){const n=x(t);return{id:`selling:${e.toLowerCase()}`,group:"selling",kind:"approval",contractAddress:e,spenderAddress:n.address,chainId:t}}const B=e=>Math.floor(e/1e3);async function ke(e){return await de()&&await ue()?_.treasuryAddress:e}function m(e){switch(e.assetType){case u.TradeAssetType.ERC721:return e.tokenId;case u.TradeAssetType.COLLECTION_ITEM:return e.itemId;case u.TradeAssetType.ERC20:case u.TradeAssetType.USD_PEGGED_MANA:return e.amount;default:throw new Error(`Unsupported assetType ${String(e.assetType)}`)}}function Z(e){return{checks:{uses:e.checks.uses,expiration:B(e.checks.expiration),effective:B(e.checks.effective),salt:h(e.checks.salt,32),contractSignatureIndex:e.checks.contractSignatureIndex,signerSignatureIndex:e.checks.signerSignatureIndex,allowedRoot:h(e.checks.allowedRoot||"0x",32),externalChecks:(e.checks.externalChecks??[]).map(t=>({contractAddress:t.contractAddress,selector:t.selector,value:t.value?t.value:"0x",required:t.required}))},sent:e.sent.map(t=>({assetType:t.assetType,contractAddress:t.contractAddress,value:m(t),extra:t.extra?t.extra:"0x"})),received:e.received.map(t=>({assetType:t.assetType,contractAddress:t.contractAddress,value:m(t),extra:t.extra?t.extra:"0x",beneficiary:t.beneficiary}))}}const j={Trade:[{name:"checks",type:"Checks"},{name:"sent",type:"AssetWithoutBeneficiary[]"},{name:"received",type:"Asset[]"}],Asset:[{name:"assetType",type:"uint256"},{name:"contractAddress",type:"address"},{name:"value",type:"uint256"},{name:"extra",type:"bytes"},{name:"beneficiary",type:"address"}],AssetWithoutBeneficiary:[{name:"assetType",type:"uint256"},{name:"contractAddress",type:"address"},{name:"value",type:"uint256"},{name:"extra",type:"bytes"}],Checks:[{name:"uses",type:"uint256"},{name:"expiration",type:"uint256"},{name:"effective",type:"uint256"},{name:"salt",type:"bytes32"},{name:"contractSignatureIndex",type:"uint256"},{name:"signerSignatureIndex",type:"uint256"},{name:"allowedRoot",type:"bytes32"},{name:"externalChecks",type:"ExternalCheck[]"}],ExternalCheck:[{name:"contractAddress",type:"address"},{name:"selector",type:"bytes4"},{name:"value",type:"bytes"},{name:"required",type:"bool"}]},H=["function contractSignatureIndex() view returns (uint256)","function signerSignatureIndex(address) view returns (uint256)"];function J(e,t){const n=x(t);return{kind:q.Minter,contractAddress:e,spenderAddress:n.address,chainId:t}}async function Ze(e){const t=Ee(e.contractAddress,e.chainId);await Y({auth:t,signer:e.signer})}async function je(e){const{signer:t,nft:n,usdPrice:r,expiresAtMs:a,fingerprint:s=""}=e,i=(await t.getAddress()).toLowerCase(),o=x(n.chainId),c=g(y.MANAToken,n.chainId),d=new l(o.address,H,p()),v=await d.contractSignatureIndex(),T=await d.signerSignatureIndex(i),f={signer:i,network:n.network,chainId:n.chainId,type:u.TradeType.PUBLIC_NFT_ORDER,checks:{uses:1,expiration:a,effective:Date.now(),salt:A($(32)),contractSignatureIndex:v.toNumber(),signerSignatureIndex:T.toNumber(),allowedRoot:"0x",externalChecks:[]},sent:[{assetType:u.TradeAssetType.ERC721,contractAddress:n.contractAddress,tokenId:n.tokenId,extra:s}],received:[{assetType:u.TradeAssetType.USD_PEGGED_MANA,contractAddress:c.address,amount:G(String(r)).toString(),extra:"",beneficiary:await ke(i)}]},I={name:o.name,version:o.version,salt:h(A(n.chainId),32),verifyingContract:o.address},C=await t._signTypedData(I,j,Z(f));return{...f,signature:C}}async function He(e){return V(J(e.contractAddress,e.chainId),"")}async function Je(e){await Y({auth:J(e.contractAddress,e.chainId),signer:e.signer})}async function Xe(e){const{signer:t,item:n,usdPrice:r,expiresAtMs:a}=e,s=(await t.getAddress()).toLowerCase(),i=x(n.chainId),o=g(y.MANAToken,n.chainId),c=new l(i.address,H,p()),d=await c.contractSignatureIndex(),v=await c.signerSignatureIndex(s),T=Math.max(1,Math.floor(e.uses??1)),f={signer:s,network:n.network,chainId:n.chainId,type:u.TradeType.PUBLIC_ITEM_ORDER,checks:{uses:T,expiration:a,effective:Date.now(),salt:A($(32)),contractSignatureIndex:d.toNumber(),signerSignatureIndex:v.toNumber(),allowedRoot:"0x",externalChecks:[]},sent:[{assetType:u.TradeAssetType.COLLECTION_ITEM,contractAddress:n.contractAddress,itemId:n.itemId,extra:""}],received:[{assetType:u.TradeAssetType.USD_PEGGED_MANA,contractAddress:o.address,amount:G(String(r)).toString(),extra:"",beneficiary:s}]},I={name:i.name,version:i.version,salt:h(A(n.chainId),32),verifyingContract:i.address},C=await t._signTypedData(I,j,Z(f));return{...f,signature:C}}const{defaultAbiCoder:w,Interface:b,hexZeroPad:M,hexlify:Me,randomBytes:_e}=Ae,Re="tuple(address collection,uint256[] ids,uint256[] prices,address[] beneficiaries)[]",X="tuple(address signer,bytes signature,tuple(uint256 uses,uint256 expiration,uint256 effective,bytes32 salt,uint256 contractSignatureIndex,uint256 signerSignatureIndex,bytes32 allowedRoot,bytes32[] allowedProof,tuple(address contractAddress,bytes4 selector,bytes value,bool required)[] externalChecks) checks,tuple(uint256 assetType,address contractAddress,uint256 value,address beneficiary,bytes extra)[] sent,tuple(uint256 assetType,address contractAddress,uint256 value,address beneficiary,bytes extra)[] received)[]",De="tuple(bytes signature,tuple(uint256 uses,uint256 expiration,uint256 effective,bytes32 salt,uint256 contractSignatureIndex,uint256 signerSignatureIndex,bytes32 allowedRoot,bytes32[] allowedProof,tuple(address contractAddress,bytes4 selector,bytes value,bool required)[] externalChecks) checks,address couponAddress,bytes data,bytes callerData)[]",Q="0x"+"0".repeat(64),F=e=>{const t=Number(e);return t>1e12?Math.floor(t/1e3):t};function K(e,t){return{signer:e.signer,signature:e.signature,checks:ee(e.checks),sent:e.sent.map(n=>({assetType:n.assetType,contractAddress:n.contractAddress,value:m(n),beneficiary:t,extra:n.extra||"0x"})),received:e.received.map(n=>({assetType:n.assetType,contractAddress:n.contractAddress,value:m(n),beneficiary:"beneficiary"in n&&n.beneficiary?n.beneficiary:t,extra:n.extra||"0x"}))}}function Pe(e,t,n){const r=new b(n).getSighash("accept"),a=w.encode([X],[e.map(s=>K(s,t))]);return{selector:r,data:a}}function ee(e){return{uses:e.uses,expiration:F(e.expiration),effective:F(e.effective),salt:M(e.salt,32),contractSignatureIndex:e.contractSignatureIndex,signerSignatureIndex:e.signerSignatureIndex,allowedRoot:e.allowedRoot&&e.allowedRoot!=="0x"?e.allowedRoot:Q,allowedProof:[],externalChecks:(e.externalChecks??[]).map(t=>({contractAddress:t.contractAddress,selector:t.selector,value:t.value,required:t.required}))}}function Ne(e,t=1){return{signature:e.signature,checks:ee(e.checks),couponAddress:e.couponAddress,data:w.encode(["uint256","uint256","bytes32"],[e.discountType,e.discount,e.root]),callerData:w.encode(["tuple(bytes32[][] proofs)"],[{proofs:Array.from({length:Math.max(1,t)},()=>e.proof)}])}}function Ue(e,t,n,r){if(e.length!==t.length)throw new Error(`acceptWithCoupon needs one coupon per trade, got ${t.length} for ${e.length} trades`);const a=new b(r).getSighash("acceptWithCoupon"),s=w.encode([X,De],[e.map(i=>K(i,n)),t.map((i,o)=>Ne(i,e[o].sent.length))]);return{selector:a,data:s}}function Qe(e){if(e!==80002)return{};const t=L("30","gwei");return{maxPriorityFeePerGas:t,maxFeePerGas:t.add(L("50","gwei"))}}function Le(e){return e?e.startsWith("0x")?M(e,32):M("0x"+re.from(e).toString("hex"),32):Q}function Ke(e,t,n,r,a,s,i){const{selector:o,data:c}=i!=null&&i.length?Ue(n,i,r,t):Pe(n,r,t);return ne({target:e,selector:o,data:c,credits:a,maxCreditedValue:s})}function te(e,t){return e.map(n=>({collection:n.collection,ids:[n.itemId],prices:[n.priceWei],beneficiaries:[t]}))}function Oe(e,t,n){const r=new b(n).getSighash("buy"),a=w.encode([Re],[te(e,t)]);return{selector:r,data:a}}function et(e,t,n){return new b(n).encodeFunctionData("buy",[te(e,t)])}function tt(e,t,n,r,a,s){const{selector:i,data:o}=Oe(n,r,t);return ne({target:e,selector:i,data:o,credits:a,maxCreditedValue:s})}function ne(e){const{target:t,selector:n,data:r,credits:a,maxCreditedValue:s}=e,i=a.reduce((c,d)=>c.add(S.from(d.availableAmount)),S.from(0)),o=S.from(s).sub(i);return{credits:a.map(c=>({value:c.amount,expiresAt:Number(c.expiresAt),salt:Le(c.id)})),creditsSignatures:a.map(c=>c.signature),externalCall:{target:t,selector:n,data:r,expiresAt:Math.floor(Date.now()/1e3)+3600*24,salt:Me(_e(32))},customExternalCallSignature:"0x",maxUncreditedValue:o.isNegative()?"0":o.toString(),maxCreditedValue:s}}export{q as A,te as B,Le as C,E as M,j as O,Ee as a,Ze as b,Xe as c,je as d,Je as e,R as f,V as g,tt as h,He as i,Ke as j,Qe as k,K as l,k as m,ve as n,We as o,he as p,qe as q,p as r,Ye as s,Ve as t,Y as u,Se as v,Ne as w,Ue as x,Pe as y,et as z};
|
|
2
|
+
//# sourceMappingURL=trade-encoding-D0iBabuM.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{o as i,s as a}from"./prepare-contract-call-
|
|
2
|
-
//# sourceMappingURL=transaction-
|
|
1
|
+
import{o as i,s as a}from"./prepare-contract-call-CoHsXlvg.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new n.Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="2f16bd6b-a11c-4d24-af20-ee727957c88b",n._sentryDebugIdIdentifier="sentry-dbid-2f16bd6b-a11c-4d24-af20-ee727957c88b")}catch{}})();function l(n){var s;if(!n)return!1;const t=(typeof n=="string"?n:(n==null?void 0:n.message)||((s=n==null?void 0:n.data)==null?void 0:s.message)||"").toLowerCase();return t.includes("insufficient funds")||t.includes("insufficient balance")||t.includes("insufficient")&&(t.includes("native")||t.includes("gas"))||(n==null?void 0:n.code)==="INSUFFICIENT_FUNDS"||(n==null?void 0:n.reason)==="insufficient funds"}function d(n){var s;if(!n)return{message:"Unknown error"};const e=typeof n=="string"?n:(n==null?void 0:n.message)||((s=n==null?void 0:n.data)==null?void 0:s.message)||String(n);return{code:(n==null?void 0:n.code)||(n==null?void 0:n.reason),message:e}}async function o(n){return u({...n,action:"transaction:sent"})}function u(n){return i({client:n.client,data:{action:n.action,chainId:n.chainId,clientId:n.client.clientId,contractAddress:n.contractAddress,errorCode:a(n.error),functionName:n.functionName,gasPrice:n.gasPrice,transactionHash:n.transactionHash,walletAddress:n.walletAddress,walletType:n.walletType},ecosystem:n.ecosystem})}async function m(n){var t,s,c;const e=d(n.error);return i({client:n.client,data:{action:"transaction:insufficient_funds",chainId:n.chainId,clientId:n.client.clientId,contractAddress:n.contractAddress,errorCode:e.code?a(e.code):void 0,errorMessage:e.message,functionName:n.functionName,requiredAmount:(t=n.requiredAmount)==null?void 0:t.toString(),transactionValue:(s=n.transactionValue)==null?void 0:s.toString(),userBalance:(c=n.userBalance)==null?void 0:c.toString(),walletAddress:n.walletAddress},ecosystem:n.ecosystem})}export{m as a,l as i,o as t};
|
|
2
|
+
//# sourceMappingURL=transaction-CJXWN8an.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{m as d}from"./prepare-contract-call-
|
|
2
|
-
//# sourceMappingURL=transactionReceipt-
|
|
1
|
+
import{m as d}from"./prepare-contract-call-CoHsXlvg.js";import{d as b,a as r}from"./to-serializable-transaction-BxxEhlQY.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},u=new s.Error().stack;u&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[u]="2c919939-411f-46e0-9468-b76381130a95",s._sentryDebugIdIdentifier="sentry-dbid-2c919939-411f-46e0-9468-b76381130a95")}catch{}})();function n(s,{args:u,eventName:l}={}){return{...s,blockHash:s.blockHash?s.blockHash:null,blockNumber:s.blockNumber?BigInt(s.blockNumber):null,logIndex:s.logIndex?Number(s.logIndex):null,transactionHash:s.transactionHash?s.transactionHash:null,transactionIndex:s.transactionIndex?Number(s.transactionIndex):null,...l?{args:u,eventName:l}:{}}}const f={"0x0":"reverted","0x1":"success"};function o(s,u){const l={...s,blockNumber:s.blockNumber?BigInt(s.blockNumber):null,contractAddress:s.contractAddress?s.contractAddress:null,cumulativeGasUsed:s.cumulativeGasUsed?BigInt(s.cumulativeGasUsed):null,effectiveGasPrice:s.effectiveGasPrice?BigInt(s.effectiveGasPrice):null,gasUsed:s.gasUsed?BigInt(s.gasUsed):null,logs:s.logs?s.logs.map(e=>n(e)):null,to:s.to?s.to:null,transactionIndex:s.transactionIndex?d(s.transactionIndex):null,status:s.status?f[s.status]:null,type:s.type?r[s.type]||s.type:null};return s.blobGasPrice&&(l.blobGasPrice=BigInt(s.blobGasPrice)),s.blobGasUsed&&(l.blobGasUsed=BigInt(s.blobGasUsed)),l}const m=b("transactionReceipt",o);export{n as a,m as d,o as f,f as r};
|
|
2
|
+
//# sourceMappingURL=transactionReceipt-CpzMTSMZ.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as m,i as s,b as c}from"./lit-element-wjYUA6aF.js";import"./index-
|
|
1
|
+
import{a as m,i as s,b as c}from"./lit-element-wjYUA6aF.js";import"./index-Cd_cQb_5.js";import{c as d}from"./index-YHzCYJkG.js";import"./index-B3PqY8NV.js";import"./index-COio6Ejd.js";import"./react-BmPeg6sG.js";import"./dcl-schemas-COntwfiV.js";import"./sentry-CfKEockx.js";import"./ethers-BIoA35Pn.js";import"./intl-AKLEHPeO.js";import"./W3MFrameProviderSingleton-BxpE6Qai.js";import"./index-BWz0ngpy.js";import"./index-DcTChipn.js";import"./events-DNWUGNd7.js";import"./browser-ponyfill-5UyluzqP.js";import"./NetworkUtil-Ciq8Tbsc.js";import"./index-B5Il9w_t.js";import"./index-OpYIGLSa.js";import"./index-D4EeOyaA.js";import"./index.es-Bn4oTPjZ.js";import"./class-map-BaReYv7k.js";import"./index-DSwXuC0D.js";import"./index-7WKP3ObD.js";import"./index-Ba4Qb-tQ.js";import"./index-CLFGNSZ-.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="f61ee249-a733-4f60-83c8-349966cefeda",t._sentryDebugIdIdentifier="sentry-dbid-f61ee249-a733-4f60-83c8-349966cefeda")}catch{}})();const a=m`
|
|
2
2
|
:host > wui-flex:first-child {
|
|
3
3
|
height: 500px;
|
|
4
4
|
overflow-y: auto;
|
|
@@ -14,4 +14,4 @@ import{a as m,i as s,b as c}from"./lit-element-wjYUA6aF.js";import"./index-CotIj
|
|
|
14
14
|
<w3m-activity-list page="activity"></w3m-activity-list>
|
|
15
15
|
</wui-flex>
|
|
16
16
|
`}};l.styles=a;l=u([d("w3m-transactions-view")],l);export{l as W3mTransactionsView};
|
|
17
|
-
//# sourceMappingURL=transactions-
|
|
17
|
+
//# sourceMappingURL=transactions-CKkVNjQ4.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as vo,b as ra,r as oe,j as w}from"./react-CIQLPMFg.js";import{M as na,ba as sa,c as xn,h as Vt,j as Ft,a as T,s as W,I as We,n as ia,aG as Ro,t as D,bT as Ze,bY as $t,z as zt,F as Wn,bX as In,dZ as oa,O as Pt,aP as An,l as _o,bC as $o,ck as aa,H as Jt,w as ca}from"./index-Cz1gkPqp.js";import{S as Io,c as ua,i as la,D as Kn,a as da}from"./SaleCountdown-0FKwUs64.js";import{f as Ao}from"./errors-BL1_71KQ.js";import{m as fa}from"./mana-matic-CEqvSwrJ.js";import{T as To}from"./Tooltip-CAzvjIL5.js";import{E as Yn}from"./ErrorNotice-CnnV8mz4.js";import{f as ha}from"./browseLayout.styles-CKYDua24.js";import{B as Zn,d as Tn}from"./dcl-schemas-DWx78xmt.js";import{r as pa}from"./sha3-xHGanBJ2.js";import{r as ga}from"./browser-C20Uc0wQ.js";import{p as ma}from"./sentry-BLkqPRre.js";import{k as ya,r as ba,O as Qn}from"./trade-encoding-DxJLtadh.js";import{C as jo,a as bt,h as Co,r as Ea,k as wa}from"./ethers-CrJ5ldNF.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d519bf33-5d9f-4f47-b482-f309d51e21a8",e._sentryDebugIdIdentifier="sentry-dbid-d519bf33-5d9f-4f47-b482-f309d51e21a8")}catch{}})();var Gt={},Ue={},Ve={},Xt={},Fe={},Re={},ze={},tt={},es;function xo(){if(es)return tt;es=1,Object.defineProperty(tt,"__esModule",{value:!0}),tt.StructError=void 0;class e extends TypeError{constructor(n,s){let d;const{message:u,explanation:c,...a}=n,{path:o}=n,f=o.length===0?u:`At path: ${o.join(".")} -- ${u}`;super(c??f),c!=null&&(this.cause=f),Object.assign(this,a),this.name=this.constructor.name,this.failures=()=>d??(d=[n,...s()])}}return tt.StructError=e,tt}var fe={},he={},ts;function Bt(){if(ts)return he;ts=1,Object.defineProperty(he,"__esModule",{value:!0}),he.run=he.toFailures=he.toFailure=he.shiftIterator=he.print=he.isPlainObject=he.isObject=void 0;function e(o){return t(o)&&typeof o[Symbol.iterator]=="function"}function t(o){return typeof o=="object"&&o!==null}he.isObject=t;function n(o){if(Object.prototype.toString.call(o)!=="[object Object]")return!1;const f=Object.getPrototypeOf(o);return f===null||f===Object.prototype}he.isPlainObject=n;function s(o){return typeof o=="symbol"?o.toString():typeof o=="string"?JSON.stringify(o):`${o}`}he.print=s;function d(o){const{done:f,value:r}=o.next();return f?void 0:r}he.shiftIterator=d;function u(o,f,r,i){if(o===!0)return;o===!1?o={}:typeof o=="string"&&(o={message:o});const{path:l,branch:h}=f,{type:b}=r,{refinement:v,message:N=`Expected a value of type \`${b}\`${v?` with refinement \`${v}\``:""}, but received: \`${s(i)}\``}=o;return{value:i,type:b,refinement:v,key:l[l.length-1],path:l,branch:h,...o,message:N}}he.toFailure=u;function*c(o,f,r,i){e(o)||(o=[o]);for(const l of o){const h=u(l,f,r,i);h&&(yield h)}}he.toFailures=c;function*a(o,f,r={}){const{path:i=[],branch:l=[o],coerce:h=!1,mask:b=!1}=r,v={path:i,branch:l};if(h&&(o=f.coercer(o,v),b&&f.type!=="type"&&t(f.schema)&&t(o)&&!Array.isArray(o)))for(const L in o)f.schema[L]===void 0&&delete o[L];let N="valid";for(const L of f.validator(o,v))L.explanation=r.message,N="not_valid",yield[L,void 0];for(let[L,z,K]of f.entries(o,v)){const $=a(z,K,{path:L===void 0?i:[...i,L],branch:L===void 0?l:[...l,z],coerce:h,mask:b,message:r.message});for(const S of $)S[0]?(N=S[0].refinement===null||S[0].refinement===void 0?"not_valid":"not_refined",yield[S[0],void 0]):h&&(z=S[1],L===void 0?o=z:o instanceof Map?o.set(L,z):o instanceof Set?o.add(z):t(o)&&(z!==void 0||L in o)&&(o[L]=z))}if(N!=="not_valid")for(const L of f.refiner(o,v))L.explanation=r.message,N="not_refined",yield[L,void 0];N==="valid"&&(yield[void 0,o])}return he.run=a,he}var rs;function Et(){if(rs)return fe;rs=1,Object.defineProperty(fe,"__esModule",{value:!0}),fe.validate=fe.is=fe.mask=fe.create=fe.assert=fe.ExactOptionalStruct=fe.Struct=void 0;const e=xo(),t=Bt();class n{constructor(i){const{type:l,schema:h,validator:b,refiner:v,coercer:N=z=>z,entries:L=function*(){}}=i;this.type=l,this.schema=h,this.entries=L,this.coercer=N,b?this.validator=(z,K)=>{const $=b(z,K);return(0,t.toFailures)($,K,this,z)}:this.validator=()=>[],v?this.refiner=(z,K)=>{const $=v(z,K);return(0,t.toFailures)($,K,this,z)}:this.refiner=()=>[]}assert(i,l){return u(i,this,l)}create(i,l){return c(i,this,l)}is(i){return o(i,this)}mask(i,l){return a(i,this,l)}validate(i,l={}){return f(i,this,l)}}fe.Struct=n;const s="EXACT_OPTIONAL";class d extends n{constructor(i){super({...i,type:`exact optional ${i.type}`}),this.brand=s}static isExactOptional(i){return(0,t.isObject)(i)&&"brand"in i&&i.brand===s}}fe.ExactOptionalStruct=d;function u(r,i,l){const h=f(r,i,{message:l});if(h[0])throw h[0]}fe.assert=u;function c(r,i,l){const h=f(r,i,{coerce:!0,message:l});if(h[0])throw h[0];return h[1]}fe.create=c;function a(r,i,l){const h=f(r,i,{coerce:!0,mask:!0,message:l});if(h[0])throw h[0];return h[1]}fe.mask=a;function o(r,i){return!f(r,i)[0]}fe.is=o;function f(r,i,l={}){const h=(0,t.run)(r,i,l),b=(0,t.shiftIterator)(h);return b[0]?[new e.StructError(b[0],function*(){for(const L of h)L[0]&&(yield L[0])}),void 0]:[void 0,b[1]]}return fe.validate=f,fe}var Le={},Y={},ue={},ns;function Po(){if(ns)return ue;ns=1,Object.defineProperty(ue,"__esModule",{value:!0}),ue.pick=ue.partial=ue.omit=ue.lazy=ue.dynamic=ue.deprecated=ue.define=ue.assign=void 0;const e=Et(),t=Pn();function n(...r){var b;const i=((b=r[0])==null?void 0:b.type)==="type",l=r.map(({schema:v})=>v),h=Object.assign({},...l);return i?(0,t.type)(h):(0,t.object)(h)}ue.assign=n;function s(r,i){return new e.Struct({type:r,schema:null,validator:i})}ue.define=s;function d(r,i){return new e.Struct({...r,refiner:(l,h)=>l===void 0||r.refiner(l,h),validator(l,h){return l===void 0?!0:(i(l,h),r.validator(l,h))}})}ue.deprecated=d;function u(r){return new e.Struct({type:"dynamic",schema:null,*entries(i,l){yield*r(i,l).entries(i,l)},validator(i,l){return r(i,l).validator(i,l)},coercer(i,l){return r(i,l).coercer(i,l)},refiner(i,l){return r(i,l).refiner(i,l)}})}ue.dynamic=u;function c(r){let i;return new e.Struct({type:"lazy",schema:null,*entries(l,h){i??(i=r()),yield*i.entries(l,h)},validator(l,h){return i??(i=r()),i.validator(l,h)},coercer(l,h){return i??(i=r()),i.coercer(l,h)},refiner(l,h){return i??(i=r()),i.refiner(l,h)}})}ue.lazy=c;function a(r,i){const{schema:l}=r,h={...l};for(const b of i)delete h[b];switch(r.type){case"type":return(0,t.type)(h);default:return(0,t.object)(h)}}ue.omit=a;function o(r){const i=r instanceof e.Struct,l=i?{...r.schema}:{...r};for(const h in l)l[h]=(0,t.optional)(l[h]);return i&&r.type==="type"?(0,t.type)(l):(0,t.object)(l)}ue.partial=o;function f(r,i){const{schema:l}=r,h={};for(const b of i)h[b]=l[b];switch(r.type){case"type":return(0,t.type)(h);default:return(0,t.object)(h)}}return ue.pick=f,ue}var ss;function Pn(){if(ss)return Y;ss=1,Object.defineProperty(Y,"__esModule",{value:!0}),Y.unknown=Y.union=Y.type=Y.tuple=Y.string=Y.set=Y.regexp=Y.record=Y.exactOptional=Y.optional=Y.object=Y.number=Y.nullable=Y.never=Y.map=Y.literal=Y.intersection=Y.integer=Y.instance=Y.func=Y.enums=Y.date=Y.boolean=Y.bigint=Y.array=Y.any=void 0;const e=Et(),t=Bt(),n=Po();function s(){return(0,n.define)("any",()=>!0)}Y.any=s;function d(A){return new e.Struct({type:"array",schema:A,*entries(B){if(A&&Array.isArray(B))for(const[x,V]of B.entries())yield[x,V,A]},coercer(B){return Array.isArray(B)?B.slice():B},validator(B){return Array.isArray(B)||`Expected an array value, but received: ${(0,t.print)(B)}`}})}Y.array=d;function u(){return(0,n.define)("bigint",A=>typeof A=="bigint")}Y.bigint=u;function c(){return(0,n.define)("boolean",A=>typeof A=="boolean")}Y.boolean=c;function a(){return(0,n.define)("date",A=>A instanceof Date&&!isNaN(A.getTime())||`Expected a valid \`Date\` object, but received: ${(0,t.print)(A)}`)}Y.date=a;function o(A){const B={},x=A.map(V=>(0,t.print)(V)).join();for(const V of A)B[V]=V;return new e.Struct({type:"enums",schema:B,validator(V){return A.includes(V)||`Expected one of \`${x}\`, but received: ${(0,t.print)(V)}`}})}Y.enums=o;function f(){return(0,n.define)("func",A=>typeof A=="function"||`Expected a function, but received: ${(0,t.print)(A)}`)}Y.func=f;function r(A){return(0,n.define)("instance",B=>B instanceof A||`Expected a \`${A.name}\` instance, but received: ${(0,t.print)(B)}`)}Y.instance=r;function i(){return(0,n.define)("integer",A=>typeof A=="number"&&!isNaN(A)&&Number.isInteger(A)||`Expected an integer, but received: ${(0,t.print)(A)}`)}Y.integer=i;function l(A){return new e.Struct({type:"intersection",schema:null,*entries(B,x){for(const{entries:V}of A)yield*V(B,x)},*validator(B,x){for(const{validator:V}of A)yield*V(B,x)},*refiner(B,x){for(const{refiner:V}of A)yield*V(B,x)}})}Y.intersection=l;function h(A){const B=(0,t.print)(A),x=typeof A;return new e.Struct({type:"literal",schema:x==="string"||x==="number"||x==="boolean"?A:null,validator(V){return V===A||`Expected the literal \`${B}\`, but received: ${(0,t.print)(V)}`}})}Y.literal=h;function b(A,B){return new e.Struct({type:"map",schema:null,*entries(x){if(A&&B&&x instanceof Map)for(const[V,M]of x.entries())yield[V,V,A],yield[V,M,B]},coercer(x){return x instanceof Map?new Map(x):x},validator(x){return x instanceof Map||`Expected a \`Map\` object, but received: ${(0,t.print)(x)}`}})}Y.map=b;function v(){return(0,n.define)("never",()=>!1)}Y.never=v;function N(A){return new e.Struct({...A,validator:(B,x)=>B===null||A.validator(B,x),refiner:(B,x)=>B===null||A.refiner(B,x)})}Y.nullable=N;function L(){return(0,n.define)("number",A=>typeof A=="number"&&!isNaN(A)||`Expected a number, but received: ${(0,t.print)(A)}`)}Y.number=L;function z(A){const B=A?Object.keys(A):[],x=v();return new e.Struct({type:"object",schema:A??null,*entries(V){if(A&&(0,t.isObject)(V)){const M=new Set(Object.keys(V));for(const k of B){M.delete(k);const y=A[k];e.ExactOptionalStruct.isExactOptional(y)&&!Object.prototype.hasOwnProperty.call(V,k)||(yield[k,V[k],A[k]])}for(const k of M)yield[k,V[k],x]}},validator(V){return(0,t.isObject)(V)||`Expected an object, but received: ${(0,t.print)(V)}`},coercer(V){return(0,t.isObject)(V)?{...V}:V}})}Y.object=z;function K(A){return new e.Struct({...A,validator:(B,x)=>B===void 0||A.validator(B,x),refiner:(B,x)=>B===void 0||A.refiner(B,x)})}Y.optional=K;function $(A){return new e.ExactOptionalStruct(A)}Y.exactOptional=$;function S(A,B){return new e.Struct({type:"record",schema:null,*entries(x){if((0,t.isObject)(x))for(const V in x){const M=x[V];yield[V,V,A],yield[V,M,B]}},validator(x){return(0,t.isObject)(x)||`Expected an object, but received: ${(0,t.print)(x)}`}})}Y.record=S;function j(){return(0,n.define)("regexp",A=>A instanceof RegExp)}Y.regexp=j;function H(A){return new e.Struct({type:"set",schema:null,*entries(B){if(A&&B instanceof Set)for(const x of B)yield[x,x,A]},coercer(B){return B instanceof Set?new Set(B):B},validator(B){return B instanceof Set||`Expected a \`Set\` object, but received: ${(0,t.print)(B)}`}})}Y.set=H;function P(){return(0,n.define)("string",A=>typeof A=="string"||`Expected a string, but received: ${(0,t.print)(A)}`)}Y.string=P;function O(A){const B=v();return new e.Struct({type:"tuple",schema:null,*entries(x){if(Array.isArray(x)){const V=Math.max(A.length,x.length);for(let M=0;M<V;M++)yield[M,x[M],A[M]||B]}},validator(x){return Array.isArray(x)||`Expected an array, but received: ${(0,t.print)(x)}`}})}Y.tuple=O;function p(A){const B=Object.keys(A);return new e.Struct({type:"type",schema:A,*entries(x){if((0,t.isObject)(x))for(const V of B)yield[V,x[V],A[V]]},validator(x){return(0,t.isObject)(x)||`Expected an object, but received: ${(0,t.print)(x)}`},coercer(x){return(0,t.isObject)(x)?{...x}:x}})}Y.type=p;function R(A){const B=A.map(x=>x.type).join(" | ");return new e.Struct({type:"union",schema:null,coercer(x){for(const V of A){const[M,k]=V.validate(x,{coerce:!0});if(!M)return k}return x},validator(x,V){const M=[];for(const k of A){const[...y]=(0,t.run)(x,k,V),[g]=y;if(!(g!=null&&g[0]))return[];for(const[I]of y)I&&M.push(I)}return[`Expected the value to satisfy a union of \`${B}\`, but received: ${(0,t.print)(x)}`,...M]}})}Y.union=R;function G(){return(0,n.define)("unknown",()=>!0)}return Y.unknown=G,Y}var is;function Sa(){if(is)return Le;is=1,Object.defineProperty(Le,"__esModule",{value:!0}),Le.trimmed=Le.defaulted=Le.coerce=void 0;const e=Et(),t=Bt(),n=Pn();function s(c,a,o){return new e.Struct({...c,coercer:(f,r)=>(0,e.is)(f,a)?c.coercer(o(f,r),r):c.coercer(f,r)})}Le.coerce=s;function d(c,a,o={}){return s(c,(0,n.unknown)(),f=>{const r=typeof a=="function"?a():a;if(f===void 0)return r;if(!o.strict&&(0,t.isPlainObject)(f)&&(0,t.isPlainObject)(r)){const i={...f};let l=!1;for(const h in r)i[h]===void 0&&(i[h]=r[h],l=!0);if(l)return i}return f})}Le.defaulted=d;function u(c){return s(c,(0,n.string)(),a=>a.trim())}return Le.trimmed=u,Le}var pe={},os;function va(){if(os)return pe;os=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.refine=pe.size=pe.pattern=pe.nonempty=pe.min=pe.max=pe.empty=void 0;const e=Et(),t=Bt();function n(r){return f(r,"empty",i=>{const l=s(i);return l===0||`Expected an empty ${r.type} but received one with a size of \`${l}\``})}pe.empty=n;function s(r){return r instanceof Map||r instanceof Set?r.size:r.length}function d(r,i,l={}){const{exclusive:h}=l;return f(r,"max",b=>h?b<i:b<=i||`Expected a ${r.type} less than ${h?"":"or equal to "}${i} but received \`${b}\``)}pe.max=d;function u(r,i,l={}){const{exclusive:h}=l;return f(r,"min",b=>h?b>i:b>=i||`Expected a ${r.type} greater than ${h?"":"or equal to "}${i} but received \`${b}\``)}pe.min=u;function c(r){return f(r,"nonempty",i=>s(i)>0||`Expected a nonempty ${r.type} but received an empty one`)}pe.nonempty=c;function a(r,i){return f(r,"pattern",l=>i.test(l)||`Expected a ${r.type} matching \`/${i.source}/\` but received "${l}"`)}pe.pattern=a;function o(r,i,l=i){const h=`Expected a ${r.type}`,b=i===l?`of \`${i}\``:`between \`${i}\` and \`${l}\``;return f(r,"size",v=>{if(typeof v=="number"||v instanceof Date)return i<=v&&v<=l||`${h} ${b} but received \`${v}\``;if(v instanceof Map||v instanceof Set){const{size:L}=v;return i<=L&&L<=l||`${h} with a size ${b} but received one with a size of \`${L}\``}const{length:N}=v;return i<=N&&N<=l||`${h} with a length ${b} but received one with a length of \`${N}\``})}pe.size=o;function f(r,i,l){return new e.Struct({...r,*refiner(h,b){yield*r.refiner(h,b);const v=l(h,b),N=(0,t.toFailures)(v,b,r,h);for(const L of N)yield{...L,refinement:i}}})}return pe.refine=f,pe}var as;function Oe(){return as||(as=1,(function(e){var t=ze&&ze.__createBinding||(Object.create?(function(s,d,u,c){c===void 0&&(c=u);var a=Object.getOwnPropertyDescriptor(d,u);(!a||("get"in a?!d.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return d[u]}}),Object.defineProperty(s,c,a)}):(function(s,d,u,c){c===void 0&&(c=u),s[c]=d[u]})),n=ze&&ze.__exportStar||function(s,d){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(d,u)&&t(d,s,u)};Object.defineProperty(e,"__esModule",{value:!0}),n(xo(),e),n(Et(),e),n(Sa(),e),n(va(),e),n(Pn(),e),n(Po(),e)})(ze)),ze}var we={};class On extends Error{constructor(t,{cause:n}={}){super(t),this.name=On.name,n&&(this.cause=n),this.message=t}}const Ra=Object.freeze(Object.defineProperty({__proto__:null,ErrorWithCause:On},Symbol.toStringTag,{value:"Module"})),_a=vo(Ra),$a=(e,t)=>{if(!e||!t||!(e instanceof Error)||!(t.prototype instanceof Error)&&t!==Error)return;const n=new Set;let s=e;for(;s&&!n.has(s);){if(n.add(s),s instanceof t)return s;s=Lt(s)}},Lt=e=>{if(!(!e||typeof e!="object"||!("cause"in e)))if(typeof e.cause=="function"){const t=e.cause();return t instanceof Error?t:void 0}else return e.cause instanceof Error?e.cause:void 0},Oo=(e,t)=>{if(!(e instanceof Error))return"";const n=e.stack||"";if(t.has(e))return n+`
|
|
1
|
+
import{f as vo,b as ra,r as oe,j as w}from"./react-BmPeg6sG.js";import{M as na,ba as sa,c as xn,h as Vt,j as Ft,a as T,s as W,I as We,n as ia,aG as Ro,t as D,bT as Ze,bY as $t,z as zt,F as Wn,bX as In,dZ as oa,O as Pt,aP as An,l as _o,bC as $o,ck as aa,H as Jt,w as ca}from"./index-COio6Ejd.js";import{S as Io,c as ua,i as la,D as Kn,a as da}from"./SaleCountdown-D_0C1G0b.js";import{f as Ao}from"./errors-DxKvZXrL.js";import{m as fa}from"./mana-matic-CEqvSwrJ.js";import{T as To}from"./Tooltip-BEJkU8QC.js";import{E as Yn}from"./ErrorNotice-BZweT4nq.js";import{f as ha}from"./browseLayout.styles-fXEIBUq8.js";import{B as Zn,d as Tn}from"./dcl-schemas-COntwfiV.js";import{r as pa}from"./sha3-B3El3U9k.js";import{r as ga}from"./browser-gYEIuxiW.js";import{p as ma}from"./sentry-CfKEockx.js";import{k as ya,r as ba,O as Qn}from"./trade-encoding-D0iBabuM.js";import{C as jo,a as bt,h as Co,r as Ea,k as wa}from"./ethers-BIoA35Pn.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d519bf33-5d9f-4f47-b482-f309d51e21a8",e._sentryDebugIdIdentifier="sentry-dbid-d519bf33-5d9f-4f47-b482-f309d51e21a8")}catch{}})();var Gt={},Ue={},Ve={},Xt={},Fe={},Re={},ze={},tt={},es;function xo(){if(es)return tt;es=1,Object.defineProperty(tt,"__esModule",{value:!0}),tt.StructError=void 0;class e extends TypeError{constructor(n,s){let d;const{message:u,explanation:c,...a}=n,{path:o}=n,f=o.length===0?u:`At path: ${o.join(".")} -- ${u}`;super(c??f),c!=null&&(this.cause=f),Object.assign(this,a),this.name=this.constructor.name,this.failures=()=>d??(d=[n,...s()])}}return tt.StructError=e,tt}var fe={},he={},ts;function Bt(){if(ts)return he;ts=1,Object.defineProperty(he,"__esModule",{value:!0}),he.run=he.toFailures=he.toFailure=he.shiftIterator=he.print=he.isPlainObject=he.isObject=void 0;function e(o){return t(o)&&typeof o[Symbol.iterator]=="function"}function t(o){return typeof o=="object"&&o!==null}he.isObject=t;function n(o){if(Object.prototype.toString.call(o)!=="[object Object]")return!1;const f=Object.getPrototypeOf(o);return f===null||f===Object.prototype}he.isPlainObject=n;function s(o){return typeof o=="symbol"?o.toString():typeof o=="string"?JSON.stringify(o):`${o}`}he.print=s;function d(o){const{done:f,value:r}=o.next();return f?void 0:r}he.shiftIterator=d;function u(o,f,r,i){if(o===!0)return;o===!1?o={}:typeof o=="string"&&(o={message:o});const{path:l,branch:h}=f,{type:b}=r,{refinement:v,message:N=`Expected a value of type \`${b}\`${v?` with refinement \`${v}\``:""}, but received: \`${s(i)}\``}=o;return{value:i,type:b,refinement:v,key:l[l.length-1],path:l,branch:h,...o,message:N}}he.toFailure=u;function*c(o,f,r,i){e(o)||(o=[o]);for(const l of o){const h=u(l,f,r,i);h&&(yield h)}}he.toFailures=c;function*a(o,f,r={}){const{path:i=[],branch:l=[o],coerce:h=!1,mask:b=!1}=r,v={path:i,branch:l};if(h&&(o=f.coercer(o,v),b&&f.type!=="type"&&t(f.schema)&&t(o)&&!Array.isArray(o)))for(const L in o)f.schema[L]===void 0&&delete o[L];let N="valid";for(const L of f.validator(o,v))L.explanation=r.message,N="not_valid",yield[L,void 0];for(let[L,z,K]of f.entries(o,v)){const $=a(z,K,{path:L===void 0?i:[...i,L],branch:L===void 0?l:[...l,z],coerce:h,mask:b,message:r.message});for(const S of $)S[0]?(N=S[0].refinement===null||S[0].refinement===void 0?"not_valid":"not_refined",yield[S[0],void 0]):h&&(z=S[1],L===void 0?o=z:o instanceof Map?o.set(L,z):o instanceof Set?o.add(z):t(o)&&(z!==void 0||L in o)&&(o[L]=z))}if(N!=="not_valid")for(const L of f.refiner(o,v))L.explanation=r.message,N="not_refined",yield[L,void 0];N==="valid"&&(yield[void 0,o])}return he.run=a,he}var rs;function Et(){if(rs)return fe;rs=1,Object.defineProperty(fe,"__esModule",{value:!0}),fe.validate=fe.is=fe.mask=fe.create=fe.assert=fe.ExactOptionalStruct=fe.Struct=void 0;const e=xo(),t=Bt();class n{constructor(i){const{type:l,schema:h,validator:b,refiner:v,coercer:N=z=>z,entries:L=function*(){}}=i;this.type=l,this.schema=h,this.entries=L,this.coercer=N,b?this.validator=(z,K)=>{const $=b(z,K);return(0,t.toFailures)($,K,this,z)}:this.validator=()=>[],v?this.refiner=(z,K)=>{const $=v(z,K);return(0,t.toFailures)($,K,this,z)}:this.refiner=()=>[]}assert(i,l){return u(i,this,l)}create(i,l){return c(i,this,l)}is(i){return o(i,this)}mask(i,l){return a(i,this,l)}validate(i,l={}){return f(i,this,l)}}fe.Struct=n;const s="EXACT_OPTIONAL";class d extends n{constructor(i){super({...i,type:`exact optional ${i.type}`}),this.brand=s}static isExactOptional(i){return(0,t.isObject)(i)&&"brand"in i&&i.brand===s}}fe.ExactOptionalStruct=d;function u(r,i,l){const h=f(r,i,{message:l});if(h[0])throw h[0]}fe.assert=u;function c(r,i,l){const h=f(r,i,{coerce:!0,message:l});if(h[0])throw h[0];return h[1]}fe.create=c;function a(r,i,l){const h=f(r,i,{coerce:!0,mask:!0,message:l});if(h[0])throw h[0];return h[1]}fe.mask=a;function o(r,i){return!f(r,i)[0]}fe.is=o;function f(r,i,l={}){const h=(0,t.run)(r,i,l),b=(0,t.shiftIterator)(h);return b[0]?[new e.StructError(b[0],function*(){for(const L of h)L[0]&&(yield L[0])}),void 0]:[void 0,b[1]]}return fe.validate=f,fe}var Le={},Y={},ue={},ns;function Po(){if(ns)return ue;ns=1,Object.defineProperty(ue,"__esModule",{value:!0}),ue.pick=ue.partial=ue.omit=ue.lazy=ue.dynamic=ue.deprecated=ue.define=ue.assign=void 0;const e=Et(),t=Pn();function n(...r){var b;const i=((b=r[0])==null?void 0:b.type)==="type",l=r.map(({schema:v})=>v),h=Object.assign({},...l);return i?(0,t.type)(h):(0,t.object)(h)}ue.assign=n;function s(r,i){return new e.Struct({type:r,schema:null,validator:i})}ue.define=s;function d(r,i){return new e.Struct({...r,refiner:(l,h)=>l===void 0||r.refiner(l,h),validator(l,h){return l===void 0?!0:(i(l,h),r.validator(l,h))}})}ue.deprecated=d;function u(r){return new e.Struct({type:"dynamic",schema:null,*entries(i,l){yield*r(i,l).entries(i,l)},validator(i,l){return r(i,l).validator(i,l)},coercer(i,l){return r(i,l).coercer(i,l)},refiner(i,l){return r(i,l).refiner(i,l)}})}ue.dynamic=u;function c(r){let i;return new e.Struct({type:"lazy",schema:null,*entries(l,h){i??(i=r()),yield*i.entries(l,h)},validator(l,h){return i??(i=r()),i.validator(l,h)},coercer(l,h){return i??(i=r()),i.coercer(l,h)},refiner(l,h){return i??(i=r()),i.refiner(l,h)}})}ue.lazy=c;function a(r,i){const{schema:l}=r,h={...l};for(const b of i)delete h[b];switch(r.type){case"type":return(0,t.type)(h);default:return(0,t.object)(h)}}ue.omit=a;function o(r){const i=r instanceof e.Struct,l=i?{...r.schema}:{...r};for(const h in l)l[h]=(0,t.optional)(l[h]);return i&&r.type==="type"?(0,t.type)(l):(0,t.object)(l)}ue.partial=o;function f(r,i){const{schema:l}=r,h={};for(const b of i)h[b]=l[b];switch(r.type){case"type":return(0,t.type)(h);default:return(0,t.object)(h)}}return ue.pick=f,ue}var ss;function Pn(){if(ss)return Y;ss=1,Object.defineProperty(Y,"__esModule",{value:!0}),Y.unknown=Y.union=Y.type=Y.tuple=Y.string=Y.set=Y.regexp=Y.record=Y.exactOptional=Y.optional=Y.object=Y.number=Y.nullable=Y.never=Y.map=Y.literal=Y.intersection=Y.integer=Y.instance=Y.func=Y.enums=Y.date=Y.boolean=Y.bigint=Y.array=Y.any=void 0;const e=Et(),t=Bt(),n=Po();function s(){return(0,n.define)("any",()=>!0)}Y.any=s;function d(A){return new e.Struct({type:"array",schema:A,*entries(B){if(A&&Array.isArray(B))for(const[x,V]of B.entries())yield[x,V,A]},coercer(B){return Array.isArray(B)?B.slice():B},validator(B){return Array.isArray(B)||`Expected an array value, but received: ${(0,t.print)(B)}`}})}Y.array=d;function u(){return(0,n.define)("bigint",A=>typeof A=="bigint")}Y.bigint=u;function c(){return(0,n.define)("boolean",A=>typeof A=="boolean")}Y.boolean=c;function a(){return(0,n.define)("date",A=>A instanceof Date&&!isNaN(A.getTime())||`Expected a valid \`Date\` object, but received: ${(0,t.print)(A)}`)}Y.date=a;function o(A){const B={},x=A.map(V=>(0,t.print)(V)).join();for(const V of A)B[V]=V;return new e.Struct({type:"enums",schema:B,validator(V){return A.includes(V)||`Expected one of \`${x}\`, but received: ${(0,t.print)(V)}`}})}Y.enums=o;function f(){return(0,n.define)("func",A=>typeof A=="function"||`Expected a function, but received: ${(0,t.print)(A)}`)}Y.func=f;function r(A){return(0,n.define)("instance",B=>B instanceof A||`Expected a \`${A.name}\` instance, but received: ${(0,t.print)(B)}`)}Y.instance=r;function i(){return(0,n.define)("integer",A=>typeof A=="number"&&!isNaN(A)&&Number.isInteger(A)||`Expected an integer, but received: ${(0,t.print)(A)}`)}Y.integer=i;function l(A){return new e.Struct({type:"intersection",schema:null,*entries(B,x){for(const{entries:V}of A)yield*V(B,x)},*validator(B,x){for(const{validator:V}of A)yield*V(B,x)},*refiner(B,x){for(const{refiner:V}of A)yield*V(B,x)}})}Y.intersection=l;function h(A){const B=(0,t.print)(A),x=typeof A;return new e.Struct({type:"literal",schema:x==="string"||x==="number"||x==="boolean"?A:null,validator(V){return V===A||`Expected the literal \`${B}\`, but received: ${(0,t.print)(V)}`}})}Y.literal=h;function b(A,B){return new e.Struct({type:"map",schema:null,*entries(x){if(A&&B&&x instanceof Map)for(const[V,M]of x.entries())yield[V,V,A],yield[V,M,B]},coercer(x){return x instanceof Map?new Map(x):x},validator(x){return x instanceof Map||`Expected a \`Map\` object, but received: ${(0,t.print)(x)}`}})}Y.map=b;function v(){return(0,n.define)("never",()=>!1)}Y.never=v;function N(A){return new e.Struct({...A,validator:(B,x)=>B===null||A.validator(B,x),refiner:(B,x)=>B===null||A.refiner(B,x)})}Y.nullable=N;function L(){return(0,n.define)("number",A=>typeof A=="number"&&!isNaN(A)||`Expected a number, but received: ${(0,t.print)(A)}`)}Y.number=L;function z(A){const B=A?Object.keys(A):[],x=v();return new e.Struct({type:"object",schema:A??null,*entries(V){if(A&&(0,t.isObject)(V)){const M=new Set(Object.keys(V));for(const k of B){M.delete(k);const y=A[k];e.ExactOptionalStruct.isExactOptional(y)&&!Object.prototype.hasOwnProperty.call(V,k)||(yield[k,V[k],A[k]])}for(const k of M)yield[k,V[k],x]}},validator(V){return(0,t.isObject)(V)||`Expected an object, but received: ${(0,t.print)(V)}`},coercer(V){return(0,t.isObject)(V)?{...V}:V}})}Y.object=z;function K(A){return new e.Struct({...A,validator:(B,x)=>B===void 0||A.validator(B,x),refiner:(B,x)=>B===void 0||A.refiner(B,x)})}Y.optional=K;function $(A){return new e.ExactOptionalStruct(A)}Y.exactOptional=$;function S(A,B){return new e.Struct({type:"record",schema:null,*entries(x){if((0,t.isObject)(x))for(const V in x){const M=x[V];yield[V,V,A],yield[V,M,B]}},validator(x){return(0,t.isObject)(x)||`Expected an object, but received: ${(0,t.print)(x)}`}})}Y.record=S;function j(){return(0,n.define)("regexp",A=>A instanceof RegExp)}Y.regexp=j;function H(A){return new e.Struct({type:"set",schema:null,*entries(B){if(A&&B instanceof Set)for(const x of B)yield[x,x,A]},coercer(B){return B instanceof Set?new Set(B):B},validator(B){return B instanceof Set||`Expected a \`Set\` object, but received: ${(0,t.print)(B)}`}})}Y.set=H;function P(){return(0,n.define)("string",A=>typeof A=="string"||`Expected a string, but received: ${(0,t.print)(A)}`)}Y.string=P;function O(A){const B=v();return new e.Struct({type:"tuple",schema:null,*entries(x){if(Array.isArray(x)){const V=Math.max(A.length,x.length);for(let M=0;M<V;M++)yield[M,x[M],A[M]||B]}},validator(x){return Array.isArray(x)||`Expected an array, but received: ${(0,t.print)(x)}`}})}Y.tuple=O;function p(A){const B=Object.keys(A);return new e.Struct({type:"type",schema:A,*entries(x){if((0,t.isObject)(x))for(const V of B)yield[V,x[V],A[V]]},validator(x){return(0,t.isObject)(x)||`Expected an object, but received: ${(0,t.print)(x)}`},coercer(x){return(0,t.isObject)(x)?{...x}:x}})}Y.type=p;function R(A){const B=A.map(x=>x.type).join(" | ");return new e.Struct({type:"union",schema:null,coercer(x){for(const V of A){const[M,k]=V.validate(x,{coerce:!0});if(!M)return k}return x},validator(x,V){const M=[];for(const k of A){const[...y]=(0,t.run)(x,k,V),[g]=y;if(!(g!=null&&g[0]))return[];for(const[I]of y)I&&M.push(I)}return[`Expected the value to satisfy a union of \`${B}\`, but received: ${(0,t.print)(x)}`,...M]}})}Y.union=R;function G(){return(0,n.define)("unknown",()=>!0)}return Y.unknown=G,Y}var is;function Sa(){if(is)return Le;is=1,Object.defineProperty(Le,"__esModule",{value:!0}),Le.trimmed=Le.defaulted=Le.coerce=void 0;const e=Et(),t=Bt(),n=Pn();function s(c,a,o){return new e.Struct({...c,coercer:(f,r)=>(0,e.is)(f,a)?c.coercer(o(f,r),r):c.coercer(f,r)})}Le.coerce=s;function d(c,a,o={}){return s(c,(0,n.unknown)(),f=>{const r=typeof a=="function"?a():a;if(f===void 0)return r;if(!o.strict&&(0,t.isPlainObject)(f)&&(0,t.isPlainObject)(r)){const i={...f};let l=!1;for(const h in r)i[h]===void 0&&(i[h]=r[h],l=!0);if(l)return i}return f})}Le.defaulted=d;function u(c){return s(c,(0,n.string)(),a=>a.trim())}return Le.trimmed=u,Le}var pe={},os;function va(){if(os)return pe;os=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.refine=pe.size=pe.pattern=pe.nonempty=pe.min=pe.max=pe.empty=void 0;const e=Et(),t=Bt();function n(r){return f(r,"empty",i=>{const l=s(i);return l===0||`Expected an empty ${r.type} but received one with a size of \`${l}\``})}pe.empty=n;function s(r){return r instanceof Map||r instanceof Set?r.size:r.length}function d(r,i,l={}){const{exclusive:h}=l;return f(r,"max",b=>h?b<i:b<=i||`Expected a ${r.type} less than ${h?"":"or equal to "}${i} but received \`${b}\``)}pe.max=d;function u(r,i,l={}){const{exclusive:h}=l;return f(r,"min",b=>h?b>i:b>=i||`Expected a ${r.type} greater than ${h?"":"or equal to "}${i} but received \`${b}\``)}pe.min=u;function c(r){return f(r,"nonempty",i=>s(i)>0||`Expected a nonempty ${r.type} but received an empty one`)}pe.nonempty=c;function a(r,i){return f(r,"pattern",l=>i.test(l)||`Expected a ${r.type} matching \`/${i.source}/\` but received "${l}"`)}pe.pattern=a;function o(r,i,l=i){const h=`Expected a ${r.type}`,b=i===l?`of \`${i}\``:`between \`${i}\` and \`${l}\``;return f(r,"size",v=>{if(typeof v=="number"||v instanceof Date)return i<=v&&v<=l||`${h} ${b} but received \`${v}\``;if(v instanceof Map||v instanceof Set){const{size:L}=v;return i<=L&&L<=l||`${h} with a size ${b} but received one with a size of \`${L}\``}const{length:N}=v;return i<=N&&N<=l||`${h} with a length ${b} but received one with a length of \`${N}\``})}pe.size=o;function f(r,i,l){return new e.Struct({...r,*refiner(h,b){yield*r.refiner(h,b);const v=l(h,b),N=(0,t.toFailures)(v,b,r,h);for(const L of N)yield{...L,refinement:i}}})}return pe.refine=f,pe}var as;function Oe(){return as||(as=1,(function(e){var t=ze&&ze.__createBinding||(Object.create?(function(s,d,u,c){c===void 0&&(c=u);var a=Object.getOwnPropertyDescriptor(d,u);(!a||("get"in a?!d.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return d[u]}}),Object.defineProperty(s,c,a)}):(function(s,d,u,c){c===void 0&&(c=u),s[c]=d[u]})),n=ze&&ze.__exportStar||function(s,d){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(d,u)&&t(d,s,u)};Object.defineProperty(e,"__esModule",{value:!0}),n(xo(),e),n(Et(),e),n(Sa(),e),n(va(),e),n(Pn(),e),n(Po(),e)})(ze)),ze}var we={};class On extends Error{constructor(t,{cause:n}={}){super(t),this.name=On.name,n&&(this.cause=n),this.message=t}}const Ra=Object.freeze(Object.defineProperty({__proto__:null,ErrorWithCause:On},Symbol.toStringTag,{value:"Module"})),_a=vo(Ra),$a=(e,t)=>{if(!e||!t||!(e instanceof Error)||!(t.prototype instanceof Error)&&t!==Error)return;const n=new Set;let s=e;for(;s&&!n.has(s);){if(n.add(s),s instanceof t)return s;s=Lt(s)}},Lt=e=>{if(!(!e||typeof e!="object"||!("cause"in e)))if(typeof e.cause=="function"){const t=e.cause();return t instanceof Error?t:void 0}else return e.cause instanceof Error?e.cause:void 0},Oo=(e,t)=>{if(!(e instanceof Error))return"";const n=e.stack||"";if(t.has(e))return n+`
|
|
2
2
|
causes have become circular...`;const s=Lt(e);return s?(t.add(e),n+`
|
|
3
3
|
caused by: `+Oo(s,t)):n},Ia=e=>Oo(e,new Set),ko=(e,t,n)=>{if(!(e instanceof Error))return"";const s=n?"":e.message||"";if(t.has(e))return s+": ...";const d=Lt(e);if(d){t.add(e);const u="cause"in e&&typeof e.cause=="function";return s+(u?"":": ")+ko(d,t,u)}else return s},Aa=e=>ko(e,new Set),Ta=Object.freeze(Object.defineProperty({__proto__:null,findCauseByReference:$a,getErrorCause:Lt,messageWithCauses:Aa,stackWithCauses:Ia},Symbol.toStringTag,{value:"Module"})),ja=vo(Ta);var Wt,cs;function Ca(){if(cs)return Wt;cs=1;const{ErrorWithCause:e}=_a,{findCauseByReference:t,getErrorCause:n,messageWithCauses:s,stackWithCauses:d}=ja;return Wt={ErrorWithCause:e,findCauseByReference:t,getErrorCause:n,stackWithCauses:d,messageWithCauses:s},Wt}var Kt={},us;function kn(){return us||(us=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.calculateNumberSize=e.calculateStringSize=e.isASCII=e.isPlainObject=e.ESCAPE_CHARACTERS_REGEXP=e.JsonSize=e.getKnownPropertyNames=e.hasProperty=e.isObject=e.isNullOrUndefined=e.isNonEmptyArray=void 0;function t(r){return Array.isArray(r)&&r.length>0}e.isNonEmptyArray=t;function n(r){return r==null}e.isNullOrUndefined=n;function s(r){return!!r&&typeof r=="object"&&!Array.isArray(r)}e.isObject=s;const d=(r,i)=>Object.hasOwnProperty.call(r,i);e.hasProperty=d;function u(r){return Object.getOwnPropertyNames(r)}e.getKnownPropertyNames=u,(function(r){r[r.Null=4]="Null",r[r.Comma=1]="Comma",r[r.Wrapper=1]="Wrapper",r[r.True=4]="True",r[r.False=5]="False",r[r.Quote=1]="Quote",r[r.Colon=1]="Colon",r[r.Date=24]="Date"})(e.JsonSize||(e.JsonSize={})),e.ESCAPE_CHARACTERS_REGEXP=/"|\\|\n|\r|\t/gu;function c(r){if(typeof r!="object"||r===null)return!1;try{let i=r;for(;Object.getPrototypeOf(i)!==null;)i=Object.getPrototypeOf(i);return Object.getPrototypeOf(r)===i}catch{return!1}}e.isPlainObject=c;function a(r){return r.charCodeAt(0)<=127}e.isASCII=a;function o(r){return r.split("").reduce((l,h)=>a(h)?l+1:l+2,0)+(r.match(e.ESCAPE_CHARACTERS_REGEXP)??[]).length}e.calculateStringSize=o;function f(r){return r.toString().length}e.calculateNumberSize=f})(Kt)),Kt}var ls;function Bo(){if(ls)return we;ls=1,Object.defineProperty(we,"__esModule",{value:!0}),we.wrapError=we.getErrorMessage=we.isErrorWithStack=we.isErrorWithMessage=we.isErrorWithCode=void 0;const e=Ca(),t=kn();function n(o){return o instanceof Error||(0,t.isObject)(o)&&o.constructor.name==="Error"}function s(o){return typeof o=="object"&&o!==null&&"code"in o}we.isErrorWithCode=s;function d(o){return typeof o=="object"&&o!==null&&"message"in o}we.isErrorWithMessage=d;function u(o){return typeof o=="object"&&o!==null&&"stack"in o}we.isErrorWithStack=u;function c(o){return d(o)&&typeof o.message=="string"?o.message:(0,t.isNullOrUndefined)(o)?"":String(o)}we.getErrorMessage=c;function a(o,f){if(n(o)){let r;return Error.length===2?r=new Error(f,{cause:o}):r=new e.ErrorWithCause(f,{cause:o}),s(o)&&(r.code=o.code),r}return f.length>0?new Error(`${String(o)}: ${f}`):new Error(String(o))}return we.wrapError=a,we}var ds;function De(){if(ds)return Re;ds=1,Object.defineProperty(Re,"__esModule",{value:!0}),Re.assertExhaustive=Re.assertStruct=Re.assert=Re.AssertionError=void 0;const e=Oe(),t=Bo();function n(f){var r,i;return typeof((i=(r=f==null?void 0:f.prototype)==null?void 0:r.constructor)==null?void 0:i.name)=="string"}function s(f){return(0,t.getErrorMessage)(f).replace(/\.$/u,"")}function d(f,r){return n(f)?new f({message:r}):f({message:r})}class u extends Error{constructor(r){super(r.message),this.code="ERR_ASSERTION"}}Re.AssertionError=u;function c(f,r="Assertion failed.",i=u){if(!f)throw r instanceof Error?r:d(i,r)}Re.assert=c;function a(f,r,i="Assertion failed",l=u){try{(0,e.assert)(f,r)}catch(h){throw d(l,`${i}: ${s(h)}.`)}}Re.assertStruct=a;function o(f){throw new Error("Invalid branch reached. Should be detected during compilation.")}return Re.assertExhaustive=o,Re}var rt={},fs;function Lo(){if(fs)return rt;fs=1,Object.defineProperty(rt,"__esModule",{value:!0}),rt.base64=void 0;const e=Oe(),t=De(),n=(s,d={})=>{const u=d.paddingRequired??!1,c=d.characterSet??"base64";let a;c==="base64"?a=String.raw`[A-Za-z0-9+\/]`:((0,t.assert)(c==="base64url"),a=String.raw`[-_A-Za-z0-9]`);let o;return u?o=new RegExp(`^(?:${a}{4})*(?:${a}{3}=|${a}{2}==)?$`,"u"):o=new RegExp(`^(?:${a}{4})*(?:${a}{2,3}|${a}{3}=|${a}{2}==)?$`,"u"),(0,e.pattern)(s,o)};return rt.base64=n,rt}var ee={},Yt={},hs;function xa(){return hs||(hs=1,(function(e){/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(e,"__esModule",{value:!0}),e.bytes=e.stringToBytes=e.str=e.bytesToString=e.hex=e.utf8=e.bech32m=e.bech32=e.base58check=e.createBase58check=e.base58xmr=e.base58xrp=e.base58flickr=e.base58=e.base64urlnopad=e.base64url=e.base64nopad=e.base64=e.base32crockford=e.base32hexnopad=e.base32hex=e.base32nopad=e.base32=e.base16=e.utils=void 0;function t(m){return m instanceof Uint8Array||ArrayBuffer.isView(m)&&m.constructor.name==="Uint8Array"}function n(m,...E){if(!t(m))throw new Error("Uint8Array expected");if(E.length>0&&!E.includes(m.length))throw new Error("Uint8Array expected of length "+E+", got length="+m.length)}function s(m,E){return Array.isArray(E)?E.length===0?!0:m?E.every(_=>typeof _=="string"):E.every(_=>Number.isSafeInteger(_)):!1}function d(m){if(typeof m!="function")throw new Error("function expected");return!0}function u(m,E){if(typeof E!="string")throw new Error(`${m}: string expected`);return!0}function c(m){if(!Number.isSafeInteger(m))throw new Error(`invalid integer: ${m}`)}function a(m){if(!Array.isArray(m))throw new Error("array expected")}function o(m,E){if(!s(!0,E))throw new Error(`${m}: array of strings expected`)}function f(m,E){if(!s(!1,E))throw new Error(`${m}: array of numbers expected`)}function r(...m){const E=X=>X,_=(X,re)=>Q=>X(re(Q)),J=m.map(X=>X.encode).reduceRight(_,E),U=m.map(X=>X.decode).reduce(_,E);return{encode:J,decode:U}}function i(m){const E=typeof m=="string"?m.split(""):m,_=E.length;o("alphabet",E);const J=new Map(E.map((U,X)=>[U,X]));return{encode:U=>(a(U),U.map(X=>{if(!Number.isSafeInteger(X)||X<0||X>=_)throw new Error(`alphabet.encode: digit index outside alphabet "${X}". Allowed: ${m}`);return E[X]})),decode:U=>(a(U),U.map(X=>{u("alphabet.decode",X);const re=J.get(X);if(re===void 0)throw new Error(`Unknown letter: "${X}". Allowed: ${m}`);return re}))}}function l(m=""){return u("join",m),{encode:E=>(o("join.decode",E),E.join(m)),decode:E=>(u("join.decode",E),E.split(m))}}function h(m,E="="){return c(m),u("padding",E),{encode(_){for(o("padding.encode",_);_.length*m%8;)_.push(E);return _},decode(_){o("padding.decode",_);let J=_.length;if(J*m%8)throw new Error("padding: invalid, string should have whole number of bytes");for(;J>0&&_[J-1]===E;J--)if((J-1)*m%8===0)throw new Error("padding: invalid, string has too much padding");return _.slice(0,J)}}}function b(m){return d(m),{encode:E=>E,decode:E=>m(E)}}function v(m,E,_){if(E<2)throw new Error(`convertRadix: invalid from=${E}, base cannot be less than 2`);if(_<2)throw new Error(`convertRadix: invalid to=${_}, base cannot be less than 2`);if(a(m),!m.length)return[];let J=0;const U=[],X=Array.from(m,Q=>{if(c(Q),Q<0||Q>=E)throw new Error(`invalid integer: ${Q}`);return Q}),re=X.length;for(;;){let Q=0,ae=!0;for(let ce=J;ce<re;ce++){const Be=X[ce],ie=E*Q,se=ie+Be;if(!Number.isSafeInteger(se)||ie/E!==Q||se-Be!==ie)throw new Error("convertRadix: carry overflow");const me=se/_;Q=se%_;const de=Math.floor(me);if(X[ce]=de,!Number.isSafeInteger(de)||de*_+Q!==se)throw new Error("convertRadix: carry overflow");if(ae)de?ae=!1:J=ce;else continue}if(U.push(Q),ae)break}for(let Q=0;Q<m.length-1&&m[Q]===0;Q++)U.push(0);return U.reverse()}const N=(m,E)=>E===0?m:N(E,m%E),L=(m,E)=>m+(E-N(m,E)),z=(()=>{let m=[];for(let E=0;E<40;E++)m.push(2**E);return m})();function K(m,E,_,J){if(a(m),E<=0||E>32)throw new Error(`convertRadix2: wrong from=${E}`);if(_<=0||_>32)throw new Error(`convertRadix2: wrong to=${_}`);if(L(E,_)>32)throw new Error(`convertRadix2: carry overflow from=${E} to=${_} carryBits=${L(E,_)}`);let U=0,X=0;const re=z[E],Q=z[_]-1,ae=[];for(const ce of m){if(c(ce),ce>=re)throw new Error(`convertRadix2: invalid data word=${ce} from=${E}`);if(U=U<<E|ce,X+E>32)throw new Error(`convertRadix2: carry overflow pos=${X} from=${E}`);for(X+=E;X>=_;X-=_)ae.push((U>>X-_&Q)>>>0);const Be=z[X];if(Be===void 0)throw new Error("invalid carry");U&=Be-1}if(U=U<<_-X&Q,!J&&X>=E)throw new Error("Excess padding");if(!J&&U>0)throw new Error(`Non-zero padding: ${U}`);return J&&X>0&&ae.push(U>>>0),ae}function $(m){c(m);const E=2**8;return{encode:_=>{if(!t(_))throw new Error("radix.encode input should be Uint8Array");return v(Array.from(_),E,m)},decode:_=>(f("radix.decode",_),Uint8Array.from(v(_,m,E)))}}function S(m,E=!1){if(c(m),m<=0||m>32)throw new Error("radix2: bits should be in (0..32]");if(L(8,m)>32||L(m,8)>32)throw new Error("radix2: carry overflow");return{encode:_=>{if(!t(_))throw new Error("radix2.encode input should be Uint8Array");return K(Array.from(_),8,m,!E)},decode:_=>(f("radix2.decode",_),Uint8Array.from(K(_,m,8,E)))}}function j(m){return d(m),function(...E){try{return m.apply(null,E)}catch{}}}function H(m,E){return c(m),d(E),{encode(_){if(!t(_))throw new Error("checksum.encode: input should be Uint8Array");const J=E(_).slice(0,m),U=new Uint8Array(_.length+m);return U.set(_),U.set(J,_.length),U},decode(_){if(!t(_))throw new Error("checksum.decode: input should be Uint8Array");const J=_.slice(0,-m),U=_.slice(-m),X=E(J).slice(0,m);for(let re=0;re<m;re++)if(X[re]!==U[re])throw new Error("Invalid checksum");return J}}}e.utils={alphabet:i,chain:r,checksum:H,convertRadix:v,convertRadix2:K,radix:$,radix2:S,join:l,padding:h},e.base16=r(S(4),i("0123456789ABCDEF"),l("")),e.base32=r(S(5),i("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),h(5),l("")),e.base32nopad=r(S(5),i("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),l("")),e.base32hex=r(S(5),i("0123456789ABCDEFGHIJKLMNOPQRSTUV"),h(5),l("")),e.base32hexnopad=r(S(5),i("0123456789ABCDEFGHIJKLMNOPQRSTUV"),l("")),e.base32crockford=r(S(5),i("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),l(""),b(m=>m.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1")));const P=typeof Uint8Array.from([]).toBase64=="function"&&typeof Uint8Array.fromBase64=="function",O=(m,E)=>{u("base64",m);const _=E?/^[A-Za-z0-9=_-]+$/:/^[A-Za-z0-9=+/]+$/,J=E?"base64url":"base64";if(m.length>0&&!_.test(m))throw new Error("invalid base64");return Uint8Array.fromBase64(m,{alphabet:J,lastChunkHandling:"strict"})};e.base64=P?{encode(m){return n(m),m.toBase64()},decode(m){return O(m,!1)}}:r(S(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),h(6),l("")),e.base64nopad=r(S(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),l("")),e.base64url=P?{encode(m){return n(m),m.toBase64({alphabet:"base64url"})},decode(m){return O(m,!0)}}:r(S(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),h(6),l("")),e.base64urlnopad=r(S(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),l(""));const p=m=>r($(58),i(m),l(""));e.base58=p("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),e.base58flickr=p("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),e.base58xrp=p("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");const R=[0,2,3,5,6,7,9,10,11];e.base58xmr={encode(m){let E="";for(let _=0;_<m.length;_+=8){const J=m.subarray(_,_+8);E+=e.base58.encode(J).padStart(R[J.length],"1")}return E},decode(m){let E=[];for(let _=0;_<m.length;_+=11){const J=m.slice(_,_+11),U=R.indexOf(J.length),X=e.base58.decode(J);for(let re=0;re<X.length-U;re++)if(X[re]!==0)throw new Error("base58xmr: wrong padding");E=E.concat(Array.from(X.slice(X.length-U)))}return Uint8Array.from(E)}};const G=m=>r(H(4,E=>m(m(E))),e.base58);e.createBase58check=G,e.base58check=e.createBase58check;const A=r(i("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),l("")),B=[996825010,642813549,513874426,1027748829,705979059];function x(m){const E=m>>25;let _=(m&33554431)<<5;for(let J=0;J<B.length;J++)(E>>J&1)===1&&(_^=B[J]);return _}function V(m,E,_=1){const J=m.length;let U=1;for(let X=0;X<J;X++){const re=m.charCodeAt(X);if(re<33||re>126)throw new Error(`Invalid prefix (${m})`);U=x(U)^re>>5}U=x(U);for(let X=0;X<J;X++)U=x(U)^m.charCodeAt(X)&31;for(let X of E)U=x(U)^X;for(let X=0;X<6;X++)U=x(U);return U^=_,A.encode(K([U%z[30]],30,5,!1))}function M(m){const E=m==="bech32"?1:734539939,_=S(5),J=_.decode,U=_.encode,X=j(J);function re(ie,se,me=90){u("bech32.encode prefix",ie),t(se)&&(se=Array.from(se)),f("bech32.encode",se);const de=ie.length;if(de===0)throw new TypeError(`Invalid prefix length ${de}`);const F=de+7+se.length;if(me!==!1&&F>me)throw new TypeError(`Length ${F} exceeds limit ${me}`);const le=ie.toLowerCase(),Ee=V(le,se,E);return`${le}1${A.encode(se)}${Ee}`}function Q(ie,se=90){u("bech32.decode input",ie);const me=ie.length;if(me<8||se!==!1&&me>se)throw new TypeError(`invalid string length: ${me} (${ie}). Expected (8..${se})`);const de=ie.toLowerCase();if(ie!==de&&ie!==ie.toUpperCase())throw new Error("String must be lowercase or uppercase");const F=de.lastIndexOf("1");if(F===0||F===-1)throw new Error('Letter "1" must be present between prefix and data only');const le=de.slice(0,F),Ee=de.slice(F+1);if(Ee.length<6)throw new Error("Data must be at least 6 characters long");const Ye=A.decode(Ee).slice(0,-6),ve=V(le,Ye,E);if(!Ee.endsWith(ve))throw new Error(`Invalid checksum in ${ie}: expected "${ve}"`);return{prefix:le,words:Ye}}const ae=j(Q);function ce(ie){const{prefix:se,words:me}=Q(ie,!1);return{prefix:se,words:me,bytes:J(me)}}function Be(ie,se){return re(ie,U(se))}return{encode:re,decode:Q,encodeFromBytes:Be,decodeToBytes:ce,decodeUnsafe:ae,fromWords:J,fromWordsUnsafe:X,toWords:U}}e.bech32=M("bech32"),e.bech32m=M("bech32m"),e.utf8={encode:m=>new TextDecoder().decode(m),decode:m=>new TextEncoder().encode(m)};const k=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",y={encode(m){return n(m),m.toHex()},decode(m){return u("hex",m),Uint8Array.fromHex(m)}};e.hex=k?y:r(S(4),i("0123456789abcdef"),l(""),b(m=>{if(typeof m!="string"||m.length%2!==0)throw new TypeError(`hex.decode: expected string, got ${typeof m} with length ${m.length}`);return m.toLowerCase()}));const g={utf8:e.utf8,hex:e.hex,base16:e.base16,base32:e.base32,base64:e.base64,base64url:e.base64url,base58:e.base58,base58xmr:e.base58xmr},I="Invalid encoding type. Available types: utf8, hex, base16, base32, base64, base64url, base58, base58xmr",C=(m,E)=>{if(typeof m!="string"||!g.hasOwnProperty(m))throw new TypeError(I);if(!t(E))throw new TypeError("bytesToString() expects Uint8Array");return g[m].encode(E)};e.bytesToString=C,e.str=e.bytesToString;const q=(m,E)=>{if(!g.hasOwnProperty(m))throw new TypeError(I);if(typeof E!="string")throw new TypeError("stringToBytes() expects string");return g[m].decode(E)};e.stringToBytes=q,e.bytes=e.stringToBytes})(Yt)),Yt}var Zt={},ps;function Nt(){return ps||(ps=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.remove0x=e.add0x=e.isValidChecksumAddress=e.getChecksumAddress=e.isValidHexAddress=e.assertIsStrictHexString=e.assertIsHexString=e.isStrictHexString=e.isHexString=e.HexChecksumAddressStruct=e.HexAddressStruct=e.StrictHexStruct=e.HexStruct=void 0;const t=Oe(),n=pa(),s=De(),d=Bn();e.HexStruct=(0,t.pattern)((0,t.string)(),/^(?:0x)?[0-9a-f]+$/iu),e.StrictHexStruct=(0,t.pattern)((0,t.string)(),/^0x[0-9a-f]+$/iu),e.HexAddressStruct=(0,t.pattern)((0,t.string)(),/^0x[0-9a-f]{40}$/u),e.HexChecksumAddressStruct=(0,t.pattern)((0,t.string)(),/^0x[0-9a-fA-F]{40}$/u);function u(b){return(0,t.is)(b,e.HexStruct)}e.isHexString=u;function c(b){return(0,t.is)(b,e.StrictHexStruct)}e.isStrictHexString=c;function a(b){(0,s.assert)(u(b),"Value must be a hexadecimal string.")}e.assertIsHexString=a;function o(b){(0,s.assert)(c(b),'Value must be a hexadecimal string, starting with "0x".')}e.assertIsStrictHexString=o;function f(b){return(0,t.is)(b,e.HexAddressStruct)||i(b)}e.isValidHexAddress=f;function r(b){(0,s.assert)((0,t.is)(b,e.HexChecksumAddressStruct),"Invalid hex address.");const v=h(b.toLowerCase()),N=h((0,d.bytesToHex)((0,n.keccak_256)(v)));return`0x${v.split("").map((L,z)=>{const K=N[z];return(0,s.assert)((0,t.is)(K,(0,t.string)()),"Hash shorter than address."),parseInt(K,16)>7?L.toUpperCase():L}).join("")}`}e.getChecksumAddress=r;function i(b){return(0,t.is)(b,e.HexChecksumAddressStruct)?r(b)===b:!1}e.isValidChecksumAddress=i;function l(b){return b.startsWith("0x")?b:b.startsWith("0X")?`0x${b.substring(2)}`:`0x${b}`}e.add0x=l;function h(b){return b.startsWith("0x")||b.startsWith("0X")?b.substring(2):b}e.remove0x=h})(Zt)),Zt}var gs;function Bn(){if(gs)return ee;gs=1,Object.defineProperty(ee,"__esModule",{value:!0}),ee.createDataView=ee.concatBytes=ee.valueToBytes=ee.base64ToBytes=ee.stringToBytes=ee.numberToBytes=ee.signedBigIntToBytes=ee.bigIntToBytes=ee.hexToBytes=ee.bytesToBase64=ee.bytesToString=ee.bytesToNumber=ee.bytesToSignedBigInt=ee.bytesToBigInt=ee.bytesToHex=ee.assertIsBytes=ee.isBytes=void 0;const e=xa(),t=De(),n=Nt(),s=48,d=58,u=87;function c(){const p=[];return()=>{if(p.length===0)for(let R=0;R<256;R++)p.push(R.toString(16).padStart(2,"0"));return p}}const a=c();function o(p){return p instanceof Uint8Array}ee.isBytes=o;function f(p){(0,t.assert)(o(p),"Value must be a Uint8Array.")}ee.assertIsBytes=f;function r(p){if(f(p),p.length===0)return"0x";const R=a(),G=new Array(p.length);for(let A=0;A<p.length;A++)G[A]=R[p[A]];return(0,n.add0x)(G.join(""))}ee.bytesToHex=r;function i(p){f(p);const R=r(p);return BigInt(R)}ee.bytesToBigInt=i;function l(p){f(p);let R=BigInt(0);for(const G of p)R=(R<<BigInt(8))+BigInt(G);return BigInt.asIntN(p.length*8,R)}ee.bytesToSignedBigInt=l;function h(p){f(p);const R=i(p);return(0,t.assert)(R<=BigInt(Number.MAX_SAFE_INTEGER),"Number is not a safe integer. Use `bytesToBigInt` instead."),Number(R)}ee.bytesToNumber=h;function b(p){return f(p),new TextDecoder().decode(p)}ee.bytesToString=b;function v(p){return f(p),e.base64.encode(p)}ee.bytesToBase64=v;function N(p){var B;if(((B=p==null?void 0:p.toLowerCase)==null?void 0:B.call(p))==="0x")return new Uint8Array;(0,n.assertIsHexString)(p);const R=(0,n.remove0x)(p).toLowerCase(),G=R.length%2===0?R:`0${R}`,A=new Uint8Array(G.length/2);for(let x=0;x<A.length;x++){const V=G.charCodeAt(x*2),M=G.charCodeAt(x*2+1),k=V-(V<d?s:u),y=M-(M<d?s:u);A[x]=k*16+y}return A}ee.hexToBytes=N;function L(p){(0,t.assert)(typeof p=="bigint","Value must be a bigint."),(0,t.assert)(p>=BigInt(0),"Value must be a non-negative bigint.");const R=p.toString(16);return N(R)}ee.bigIntToBytes=L;function z(p,R){(0,t.assert)(R>0);const G=p>>BigInt(31);return!((~p&G)+(p&~G)>>BigInt(R*8+-1))}function K(p,R){(0,t.assert)(typeof p=="bigint","Value must be a bigint."),(0,t.assert)(typeof R=="number","Byte length must be a number."),(0,t.assert)(R>0,"Byte length must be greater than 0."),(0,t.assert)(z(p,R),"Byte length is too small to represent the given value.");let G=p;const A=new Uint8Array(R);for(let B=0;B<A.length;B++)A[B]=Number(BigInt.asUintN(8,G)),G>>=BigInt(8);return A.reverse()}ee.signedBigIntToBytes=K;function $(p){(0,t.assert)(typeof p=="number","Value must be a number."),(0,t.assert)(p>=0,"Value must be a non-negative number."),(0,t.assert)(Number.isSafeInteger(p),"Value is not a safe integer. Use `bigIntToBytes` instead.");const R=p.toString(16);return N(R)}ee.numberToBytes=$;function S(p){return(0,t.assert)(typeof p=="string","Value must be a string."),new TextEncoder().encode(p)}ee.stringToBytes=S;function j(p){return(0,t.assert)(typeof p=="string","Value must be a string."),e.base64.decode(p)}ee.base64ToBytes=j;function H(p){if(typeof p=="bigint")return L(p);if(typeof p=="number")return $(p);if(typeof p=="string")return p.startsWith("0x")?N(p):S(p);if(o(p))return p;throw new TypeError(`Unsupported value type: "${typeof p}".`)}ee.valueToBytes=H;function P(p){const R=new Array(p.length);let G=0;for(let B=0;B<p.length;B++){const x=H(p[B]);R[B]=x,G+=x.length}const A=new Uint8Array(G);for(let B=0,x=0;B<R.length;B++)A.set(R[B],x),x+=R[B].length;return A}ee.concatBytes=P;function O(p){if(typeof Zn<"u"&&p instanceof Zn){const R=p.buffer.slice(p.byteOffset,p.byteOffset+p.byteLength);return new DataView(R)}return new DataView(p.buffer,p.byteOffset,p.byteLength)}return ee.createDataView=O,ee}var Qt={},ms;function Pa(){return ms||(ms=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.toCaipChainId=e.parseCaipAccountId=e.parseCaipChainId=e.isCaipAssetId=e.isCaipAssetType=e.isCaipAccountAddress=e.isCaipAccountId=e.isCaipReference=e.isCaipNamespace=e.isCaipChainId=e.KnownCaipNamespace=e.CaipAssetIdStruct=e.CaipAssetTypeStruct=e.CaipAccountAddressStruct=e.CaipAccountIdStruct=e.CaipReferenceStruct=e.CaipNamespaceStruct=e.CaipChainIdStruct=e.CAIP_ASSET_ID_REGEX=e.CAIP_ASSET_TYPE_REGEX=e.CAIP_ACCOUNT_ADDRESS_REGEX=e.CAIP_ACCOUNT_ID_REGEX=e.CAIP_REFERENCE_REGEX=e.CAIP_NAMESPACE_REGEX=e.CAIP_CHAIN_ID_REGEX=void 0;const t=Oe();e.CAIP_CHAIN_ID_REGEX=/^(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32})$/u,e.CAIP_NAMESPACE_REGEX=/^[-a-z0-9]{3,8}$/u,e.CAIP_REFERENCE_REGEX=/^[-_a-zA-Z0-9]{1,32}$/u,e.CAIP_ACCOUNT_ID_REGEX=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32})):(?<accountAddress>[-.%a-zA-Z0-9]{1,128})$/u,e.CAIP_ACCOUNT_ADDRESS_REGEX=/^[-.%a-zA-Z0-9]{1,128}$/u,e.CAIP_ASSET_TYPE_REGEX=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32}))\/(?<assetNamespace>[-a-z0-9]{3,8}):(?<assetReference>[-.%a-zA-Z0-9]{1,128})$/u,e.CAIP_ASSET_ID_REGEX=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32}))\/(?<assetNamespace>[-a-z0-9]{3,8}):(?<assetReference>[-.%a-zA-Z0-9]{1,128})\/(?<tokenId>[-.%a-zA-Z0-9]{1,78})$/u,e.CaipChainIdStruct=(0,t.pattern)((0,t.string)(),e.CAIP_CHAIN_ID_REGEX),e.CaipNamespaceStruct=(0,t.pattern)((0,t.string)(),e.CAIP_NAMESPACE_REGEX),e.CaipReferenceStruct=(0,t.pattern)((0,t.string)(),e.CAIP_REFERENCE_REGEX),e.CaipAccountIdStruct=(0,t.pattern)((0,t.string)(),e.CAIP_ACCOUNT_ID_REGEX),e.CaipAccountAddressStruct=(0,t.pattern)((0,t.string)(),e.CAIP_ACCOUNT_ADDRESS_REGEX),e.CaipAssetTypeStruct=(0,t.pattern)((0,t.string)(),e.CAIP_ASSET_TYPE_REGEX),e.CaipAssetIdStruct=(0,t.pattern)((0,t.string)(),e.CAIP_ASSET_ID_REGEX),(function(l){l.Bip122="bip122",l.Eip155="eip155",l.Wallet="wallet"})(e.KnownCaipNamespace||(e.KnownCaipNamespace={}));function n(l){return(0,t.is)(l,e.CaipChainIdStruct)}e.isCaipChainId=n;function s(l){return(0,t.is)(l,e.CaipNamespaceStruct)}e.isCaipNamespace=s;function d(l){return(0,t.is)(l,e.CaipReferenceStruct)}e.isCaipReference=d;function u(l){return(0,t.is)(l,e.CaipAccountIdStruct)}e.isCaipAccountId=u;function c(l){return(0,t.is)(l,e.CaipAccountAddressStruct)}e.isCaipAccountAddress=c;function a(l){return(0,t.is)(l,e.CaipAssetTypeStruct)}e.isCaipAssetType=a;function o(l){return(0,t.is)(l,e.CaipAssetIdStruct)}e.isCaipAssetId=o;function f(l){const h=e.CAIP_CHAIN_ID_REGEX.exec(l);if(!(h!=null&&h.groups))throw new Error("Invalid CAIP chain ID.");return{namespace:h.groups.namespace,reference:h.groups.reference}}e.parseCaipChainId=f;function r(l){const h=e.CAIP_ACCOUNT_ID_REGEX.exec(l);if(!(h!=null&&h.groups))throw new Error("Invalid CAIP account ID.");return{address:h.groups.accountAddress,chainId:h.groups.chainId,chain:{namespace:h.groups.namespace,reference:h.groups.reference}}}e.parseCaipAccountId=r;function i(l,h){if(!s(l))throw new Error(`Invalid "namespace", must match: ${e.CAIP_NAMESPACE_REGEX.toString()}`);if(!d(h))throw new Error(`Invalid "reference", must match: ${e.CAIP_REFERENCE_REGEX.toString()}`);return`${l}:${h}`}e.toCaipChainId=i})(Qt)),Qt}var nt={},ys;function Oa(){if(ys)return nt;ys=1,Object.defineProperty(nt,"__esModule",{value:!0}),nt.ChecksumStruct=void 0;const e=Oe(),t=Lo();return nt.ChecksumStruct=(0,e.size)((0,t.base64)((0,e.string)(),{paddingRequired:!0}),44,44),nt}var _e={},bs;function ka(){if(bs)return _e;bs=1,Object.defineProperty(_e,"__esModule",{value:!0}),_e.createHex=_e.createBytes=_e.createBigInt=_e.createNumber=void 0;const e=Oe(),t=De(),n=Bn(),s=Nt(),d=(0,e.union)([(0,e.number)(),(0,e.bigint)(),(0,e.string)(),s.StrictHexStruct]),u=(0,e.coerce)((0,e.number)(),d,Number),c=(0,e.coerce)((0,e.bigint)(),d,BigInt);(0,e.union)([s.StrictHexStruct,(0,e.instance)(Uint8Array)]);const a=(0,e.coerce)((0,e.instance)(Uint8Array),(0,e.union)([s.StrictHexStruct]),n.hexToBytes),o=(0,e.coerce)(s.StrictHexStruct,(0,e.instance)(Uint8Array),n.bytesToHex);function f(h){try{const b=(0,e.create)(h,u);return(0,t.assert)(Number.isFinite(b),`Expected a number-like value, got "${h}".`),b}catch(b){throw b instanceof e.StructError?new Error(`Expected a number-like value, got "${h}".`):b}}_e.createNumber=f;function r(h){try{return(0,e.create)(h,c)}catch(b){throw b instanceof e.StructError?new Error(`Expected a number-like value, got "${String(b.value)}".`):b}}_e.createBigInt=r;function i(h){if(typeof h=="string"&&h.toLowerCase()==="0x")return new Uint8Array;try{return(0,e.create)(h,a)}catch(b){throw b instanceof e.StructError?new Error(`Expected a bytes-like value, got "${String(b.value)}".`):b}}_e.createBytes=i;function l(h){if(h instanceof Uint8Array&&h.length===0||typeof h=="string"&&h.toLowerCase()==="0x")return"0x";try{return(0,e.create)(h,o)}catch(b){throw b instanceof e.StructError?new Error(`Expected a bytes-like value, got "${String(b.value)}".`):b}}return _e.createHex=l,_e}var $e={},Es;function Ba(){if(Es)return $e;Es=1;var e=$e&&$e.__classPrivateFieldGet||function(c,a,o,f){if(o==="a"&&!f)throw new TypeError("Private accessor was defined without a getter");if(typeof a=="function"?c!==a||!f:!a.has(c))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?f:o==="a"?f.call(c):f?f.value:a.get(c)},t=$e&&$e.__classPrivateFieldSet||function(c,a,o,f,r){if(f==="m")throw new TypeError("Private method is not writable");if(f==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof a=="function"?c!==a||!r:!a.has(c))throw new TypeError("Cannot write private member to an object whose class did not declare it");return f==="a"?r.call(c,o):r?r.value=o:a.set(c,o),o},n,s;Object.defineProperty($e,"__esModule",{value:!0}),$e.FrozenSet=$e.FrozenMap=void 0;class d{get size(){return e(this,n,"f").size}[(n=new WeakMap,Symbol.iterator)](){return e(this,n,"f")[Symbol.iterator]()}constructor(a){n.set(this,void 0),t(this,n,new Map(a),"f"),Object.freeze(this)}entries(){return e(this,n,"f").entries()}forEach(a,o){return e(this,n,"f").forEach((f,r,i)=>a.call(o,f,r,this))}get(a){return e(this,n,"f").get(a)}has(a){return e(this,n,"f").has(a)}keys(){return e(this,n,"f").keys()}values(){return e(this,n,"f").values()}toString(){return`FrozenMap(${this.size}) {${this.size>0?` ${[...this.entries()].map(([a,o])=>`${String(a)} => ${String(o)}`).join(", ")} `:""}}`}}$e.FrozenMap=d;class u{get size(){return e(this,s,"f").size}[(s=new WeakMap,Symbol.iterator)](){return e(this,s,"f")[Symbol.iterator]()}constructor(a){s.set(this,void 0),t(this,s,new Set(a),"f"),Object.freeze(this)}entries(){return e(this,s,"f").entries()}forEach(a,o){return e(this,s,"f").forEach((f,r,i)=>a.call(o,f,r,this))}has(a){return e(this,s,"f").has(a)}keys(){return e(this,s,"f").keys()}values(){return e(this,s,"f").values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map(a=>String(a)).join(", ")} `:""}}`}}return $e.FrozenSet=u,Object.freeze(d),Object.freeze(d.prototype),Object.freeze(u),Object.freeze(u.prototype),$e}var er={},ws;function La(){return ws||(ws=1,Object.defineProperty(er,"__esModule",{value:!0})),er}var tr={},Ss;function Na(){return Ss||(Ss=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getJsonRpcIdValidator=e.assertIsJsonRpcError=e.isJsonRpcError=e.assertIsJsonRpcFailure=e.isJsonRpcFailure=e.assertIsJsonRpcSuccess=e.isJsonRpcSuccess=e.assertIsJsonRpcResponse=e.isJsonRpcResponse=e.assertIsPendingJsonRpcResponse=e.isPendingJsonRpcResponse=e.JsonRpcResponseStruct=e.JsonRpcFailureStruct=e.JsonRpcSuccessStruct=e.PendingJsonRpcResponseStruct=e.assertIsJsonRpcRequest=e.isJsonRpcRequest=e.assertIsJsonRpcNotification=e.isJsonRpcNotification=e.JsonRpcNotificationStruct=e.JsonRpcRequestStruct=e.JsonRpcParamsStruct=e.JsonRpcErrorStruct=e.JsonRpcIdStruct=e.JsonRpcVersionStruct=e.jsonrpc2=e.getJsonSize=e.getSafeJson=e.isValidJson=e.JsonStruct=e.UnsafeJsonStruct=e.exactOptional=e.object=void 0;const t=Oe(),n=De(),s=kn(),d=p=>(0,t.object)(p);e.object=d;function u({path:p,branch:R}){const G=p[p.length-1];return(0,s.hasProperty)(R[R.length-2],G)}function c(p){return new t.Struct({...p,type:`optional ${p.type}`,validator:(R,G)=>!u(G)||p.validator(R,G),refiner:(R,G)=>!u(G)||p.refiner(R,G)})}e.exactOptional=c;const a=()=>(0,t.define)("finite number",p=>(0,t.is)(p,(0,t.number)())&&Number.isFinite(p));e.UnsafeJsonStruct=(0,t.union)([(0,t.literal)(null),(0,t.boolean)(),a(),(0,t.string)(),(0,t.array)((0,t.lazy)(()=>e.UnsafeJsonStruct)),(0,t.record)((0,t.string)(),(0,t.lazy)(()=>e.UnsafeJsonStruct))]),e.JsonStruct=(0,t.coerce)(e.UnsafeJsonStruct,(0,t.any)(),p=>((0,n.assertStruct)(p,e.UnsafeJsonStruct),JSON.parse(JSON.stringify(p,(R,G)=>{if(!(R==="__proto__"||R==="constructor"))return G}))));function o(p){try{return f(p),!0}catch{return!1}}e.isValidJson=o;function f(p){return(0,t.create)(p,e.JsonStruct)}e.getSafeJson=f;function r(p){(0,n.assertStruct)(p,e.JsonStruct,"Invalid JSON value");const R=JSON.stringify(p);return new TextEncoder().encode(R).byteLength}e.getJsonSize=r,e.jsonrpc2="2.0",e.JsonRpcVersionStruct=(0,t.literal)(e.jsonrpc2),e.JsonRpcIdStruct=(0,t.nullable)((0,t.union)([(0,t.number)(),(0,t.string)()])),e.JsonRpcErrorStruct=(0,e.object)({code:(0,t.integer)(),message:(0,t.string)(),data:c(e.JsonStruct),stack:c((0,t.string)())}),e.JsonRpcParamsStruct=(0,t.union)([(0,t.record)((0,t.string)(),e.JsonStruct),(0,t.array)(e.JsonStruct)]),e.JsonRpcRequestStruct=(0,e.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,method:(0,t.string)(),params:c(e.JsonRpcParamsStruct)}),e.JsonRpcNotificationStruct=(0,e.object)({jsonrpc:e.JsonRpcVersionStruct,method:(0,t.string)(),params:c(e.JsonRpcParamsStruct)});function i(p){return(0,t.is)(p,e.JsonRpcNotificationStruct)}e.isJsonRpcNotification=i;function l(p,R){(0,n.assertStruct)(p,e.JsonRpcNotificationStruct,"Invalid JSON-RPC notification",R)}e.assertIsJsonRpcNotification=l;function h(p){return(0,t.is)(p,e.JsonRpcRequestStruct)}e.isJsonRpcRequest=h;function b(p,R){(0,n.assertStruct)(p,e.JsonRpcRequestStruct,"Invalid JSON-RPC request",R)}e.assertIsJsonRpcRequest=b,e.PendingJsonRpcResponseStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,result:(0,t.optional)((0,t.unknown)()),error:(0,t.optional)(e.JsonRpcErrorStruct)}),e.JsonRpcSuccessStruct=(0,e.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,result:e.JsonStruct}),e.JsonRpcFailureStruct=(0,e.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,error:e.JsonRpcErrorStruct}),e.JsonRpcResponseStruct=(0,t.union)([e.JsonRpcSuccessStruct,e.JsonRpcFailureStruct]);function v(p){return(0,t.is)(p,e.PendingJsonRpcResponseStruct)}e.isPendingJsonRpcResponse=v;function N(p,R){(0,n.assertStruct)(p,e.PendingJsonRpcResponseStruct,"Invalid pending JSON-RPC response",R)}e.assertIsPendingJsonRpcResponse=N;function L(p){return(0,t.is)(p,e.JsonRpcResponseStruct)}e.isJsonRpcResponse=L;function z(p,R){(0,n.assertStruct)(p,e.JsonRpcResponseStruct,"Invalid JSON-RPC response",R)}e.assertIsJsonRpcResponse=z;function K(p){return(0,t.is)(p,e.JsonRpcSuccessStruct)}e.isJsonRpcSuccess=K;function $(p,R){(0,n.assertStruct)(p,e.JsonRpcSuccessStruct,"Invalid JSON-RPC success response",R)}e.assertIsJsonRpcSuccess=$;function S(p){return(0,t.is)(p,e.JsonRpcFailureStruct)}e.isJsonRpcFailure=S;function j(p,R){(0,n.assertStruct)(p,e.JsonRpcFailureStruct,"Invalid JSON-RPC failure response",R)}e.assertIsJsonRpcFailure=j;function H(p){return(0,t.is)(p,e.JsonRpcErrorStruct)}e.isJsonRpcError=H;function P(p,R){(0,n.assertStruct)(p,e.JsonRpcErrorStruct,"Invalid JSON-RPC error",R)}e.assertIsJsonRpcError=P;function O(p){const{permitEmptyString:R,permitFractions:G,permitNull:A}={permitEmptyString:!0,permitFractions:!1,permitNull:!0,...p};return x=>!!(typeof x=="number"&&(G||Number.isInteger(x))||typeof x=="string"&&(R||x.length>0)||A&&x===null)}e.getJsonRpcIdValidator=O})(tr)),tr}var rr={},vs;function Ma(){return vs||(vs=1,Object.defineProperty(rr,"__esModule",{value:!0})),rr}var Ne={},Rs;function qa(){if(Rs)return Ne;Rs=1;var e=Ne&&Ne.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.createModuleLogger=Ne.createProjectLogger=void 0;const n=(0,e(ga()).default)("metamask");function s(u){return n.extend(u)}Ne.createProjectLogger=s;function d(u,c){return u.extend(c)}return Ne.createModuleLogger=d,Ne}var Ie={},_s;function Ha(){if(_s)return Ie;_s=1,Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.hexToBigInt=Ie.hexToNumber=Ie.bigIntToHex=Ie.numberToHex=void 0;const e=De(),t=Nt(),n=c=>((0,e.assert)(typeof c=="number","Value must be a number."),(0,e.assert)(c>=0,"Value must be a non-negative number."),(0,e.assert)(Number.isSafeInteger(c),"Value is not a safe integer. Use `bigIntToHex` instead."),(0,t.add0x)(c.toString(16)));Ie.numberToHex=n;const s=c=>((0,e.assert)(typeof c=="bigint","Value must be a bigint."),(0,e.assert)(c>=0,"Value must be a non-negative bigint."),(0,t.add0x)(c.toString(16)));Ie.bigIntToHex=s;const d=c=>{(0,t.assertIsHexString)(c);const a=parseInt(c,16);return(0,e.assert)(Number.isSafeInteger(a),"Value is not a safe integer. Use `hexToBigInt` instead."),a};Ie.hexToNumber=d;const u=c=>((0,t.assertIsHexString)(c),BigInt((0,t.add0x)(c)));return Ie.hexToBigInt=u,Ie}var nr={},$s;function Da(){return $s||($s=1,Object.defineProperty(nr,"__esModule",{value:!0})),nr}var st={},Is;function Ua(){if(Is)return st;Is=1,Object.defineProperty(st,"__esModule",{value:!0}),st.createDeferredPromise=void 0;function e({suppressUnhandledRejection:t=!1}={}){let n,s;const d=new Promise((u,c)=>{n=u,s=c});return t&&d.catch(u=>{}),{promise:d,resolve:n,reject:s}}return st.createDeferredPromise=e,st}var sr={},As;function Va(){return As||(As=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.timeSince=e.inMilliseconds=e.Duration=void 0,(function(u){u[u.Millisecond=1]="Millisecond",u[u.Second=1e3]="Second",u[u.Minute=6e4]="Minute",u[u.Hour=36e5]="Hour",u[u.Day=864e5]="Day",u[u.Week=6048e5]="Week",u[u.Year=31536e6]="Year"})(e.Duration||(e.Duration={}));const t=u=>Number.isInteger(u)&&u>=0,n=(u,c)=>{if(!t(u))throw new Error(`"${c}" must be a non-negative integer. Received: "${u}".`)};function s(u,c){return n(u,"count"),u*c}e.inMilliseconds=s;function d(u){return n(u,"timestamp"),Date.now()-u}e.timeSince=d})(sr)),sr}var ir={},Ts;function Fa(){return Ts||(Ts=1,Object.defineProperty(ir,"__esModule",{value:!0})),ir}var or={},It={exports:{}},ar,js;function wt(){if(js)return ar;js=1;const e="2.0.0",t=256,n=Number.MAX_SAFE_INTEGER||9007199254740991,s=16,d=t-6;return ar={MAX_LENGTH:t,MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:d,MAX_SAFE_INTEGER:n,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},ar}var cr,Cs;function Mt(){if(Cs)return cr;Cs=1;var e={};return cr=typeof ma=="object"&&e&&e.NODE_DEBUG&&/\bsemver\b/i.test(e.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{},cr}var xs;function St(){return xs||(xs=1,(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:d}=wt(),u=Mt();t=e.exports={};const c=t.re=[],a=t.safeRe=[],o=t.src=[],f=t.safeSrc=[],r=t.t={};let i=0;const l="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",d],[l,s]],b=N=>{for(const[L,z]of h)N=N.split(`${L}*`).join(`${L}{0,${z}}`).split(`${L}+`).join(`${L}{1,${z}}`);return N},v=(N,L,z)=>{const K=b(L),$=i++;u(N,$,L),r[N]=$,o[$]=L,f[$]=K,c[$]=new RegExp(L,z?"g":void 0),a[$]=new RegExp(K,z?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*"),v("NUMERICIDENTIFIERLOOSE","\\d+"),v("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${l}*`),v("MAINVERSION",`(${o[r.NUMERICIDENTIFIER]})\\.(${o[r.NUMERICIDENTIFIER]})\\.(${o[r.NUMERICIDENTIFIER]})`),v("MAINVERSIONLOOSE",`(${o[r.NUMERICIDENTIFIERLOOSE]})\\.(${o[r.NUMERICIDENTIFIERLOOSE]})\\.(${o[r.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASEIDENTIFIER",`(?:${o[r.NONNUMERICIDENTIFIER]}|${o[r.NUMERICIDENTIFIER]})`),v("PRERELEASEIDENTIFIERLOOSE",`(?:${o[r.NONNUMERICIDENTIFIER]}|${o[r.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASE",`(?:-(${o[r.PRERELEASEIDENTIFIER]}(?:\\.${o[r.PRERELEASEIDENTIFIER]})*))`),v("PRERELEASELOOSE",`(?:-?(${o[r.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[r.PRERELEASEIDENTIFIERLOOSE]})*))`),v("BUILDIDENTIFIER",`${l}+`),v("BUILD",`(?:\\+(${o[r.BUILDIDENTIFIER]}(?:\\.${o[r.BUILDIDENTIFIER]})*))`),v("FULLPLAIN",`v?${o[r.MAINVERSION]}${o[r.PRERELEASE]}?${o[r.BUILD]}?`),v("FULL",`^${o[r.FULLPLAIN]}$`),v("LOOSEPLAIN",`[v=\\s]*${o[r.MAINVERSIONLOOSE]}${o[r.PRERELEASELOOSE]}?${o[r.BUILD]}?`),v("LOOSE",`^${o[r.LOOSEPLAIN]}$`),v("GTLT","((?:<|>)?=?)"),v("XRANGEIDENTIFIERLOOSE",`${o[r.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),v("XRANGEIDENTIFIER",`${o[r.NUMERICIDENTIFIER]}|x|X|\\*`),v("XRANGEPLAIN",`[v=\\s]*(${o[r.XRANGEIDENTIFIER]})(?:\\.(${o[r.XRANGEIDENTIFIER]})(?:\\.(${o[r.XRANGEIDENTIFIER]})(?:${o[r.PRERELEASE]})?${o[r.BUILD]}?)?)?`),v("XRANGEPLAINLOOSE",`[v=\\s]*(${o[r.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[r.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[r.XRANGEIDENTIFIERLOOSE]})(?:${o[r.PRERELEASELOOSE]})?${o[r.BUILD]}?)?)?`),v("XRANGE",`^${o[r.GTLT]}\\s*${o[r.XRANGEPLAIN]}$`),v("XRANGELOOSE",`^${o[r.GTLT]}\\s*${o[r.XRANGEPLAINLOOSE]}$`),v("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),v("COERCE",`${o[r.COERCEPLAIN]}(?:$|[^\\d])`),v("COERCEFULL",o[r.COERCEPLAIN]+`(?:${o[r.PRERELEASE]})?(?:${o[r.BUILD]})?(?:$|[^\\d])`),v("COERCERTL",o[r.COERCE],!0),v("COERCERTLFULL",o[r.COERCEFULL],!0),v("LONETILDE","(?:~>?)"),v("TILDETRIM",`(\\s*)${o[r.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",v("TILDE",`^${o[r.LONETILDE]}${o[r.XRANGEPLAIN]}$`),v("TILDELOOSE",`^${o[r.LONETILDE]}${o[r.XRANGEPLAINLOOSE]}$`),v("LONECARET","(?:\\^)"),v("CARETTRIM",`(\\s*)${o[r.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",v("CARET",`^${o[r.LONECARET]}${o[r.XRANGEPLAIN]}$`),v("CARETLOOSE",`^${o[r.LONECARET]}${o[r.XRANGEPLAINLOOSE]}$`),v("COMPARATORLOOSE",`^${o[r.GTLT]}\\s*(${o[r.LOOSEPLAIN]})$|^$`),v("COMPARATOR",`^${o[r.GTLT]}\\s*(${o[r.FULLPLAIN]})$|^$`),v("COMPARATORTRIM",`(\\s*)${o[r.GTLT]}\\s*(${o[r.LOOSEPLAIN]}|${o[r.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",v("HYPHENRANGE",`^\\s*(${o[r.XRANGEPLAIN]})\\s+-\\s+(${o[r.XRANGEPLAIN]})\\s*$`),v("HYPHENRANGELOOSE",`^\\s*(${o[r.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[r.XRANGEPLAINLOOSE]})\\s*$`),v("STAR","(<|>)?=?\\s*\\*"),v("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),v("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(It,It.exports)),It.exports}var ur,Ps;function Ln(){if(Ps)return ur;Ps=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return ur=s=>s?typeof s!="object"?e:s:t,ur}var lr,Os;function No(){if(Os)return lr;Os=1;const e=/^[0-9]+$/,t=(s,d)=>{if(typeof s=="number"&&typeof d=="number")return s===d?0:s<d?-1:1;const u=e.test(s),c=e.test(d);return u&&c&&(s=+s,d=+d),s===d?0:u&&!c?-1:c&&!u?1:s<d?-1:1};return lr={compareIdentifiers:t,rcompareIdentifiers:(s,d)=>t(d,s)},lr}var dr,ks;function ye(){if(ks)return dr;ks=1;const e=Mt(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=wt(),{safeRe:s,t:d}=St(),u=Ln(),{compareIdentifiers:c}=No(),a=(f,r)=>{const i=r.split(".");if(i.length>f.length)return!1;for(let l=0;l<i.length;l++)if(c(f[l],i[l])!==0)return!1;return!0};class o{constructor(r,i){if(i=u(i),r instanceof o){if(r.loose===!!i.loose&&r.includePrerelease===!!i.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof r}".`);if(r.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",r,i),this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease;const l=r.trim().match(i.loose?s[d.LOOSE]:s[d.FULL]);if(!l)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");l[4]?this.prerelease=l[4].split(".").map(h=>{if(/^[0-9]+$/.test(h)){const b=+h;if(b>=0&&b<n)return b}return h}):this.prerelease=[],this.build=l[5]?l[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(r){if(e("SemVer.compare",this.version,this.options,r),!(r instanceof o)){if(typeof r=="string"&&r===this.version)return 0;r=new o(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof o||(r=new o(r,this.options)),this.major<r.major?-1:this.major>r.major?1:this.minor<r.minor?-1:this.minor>r.minor?1:this.patch<r.patch?-1:this.patch>r.patch?1:0}comparePre(r){if(r instanceof o||(r=new o(r,this.options)),this.prerelease.length&&!r.prerelease.length)return-1;if(!this.prerelease.length&&r.prerelease.length)return 1;if(!this.prerelease.length&&!r.prerelease.length)return 0;let i=0;do{const l=this.prerelease[i],h=r.prerelease[i];if(e("prerelease compare",i,l,h),l===void 0&&h===void 0)return 0;if(h===void 0)return 1;if(l===void 0)return-1;if(l===h)continue;return c(l,h)}while(++i)}compareBuild(r){r instanceof o||(r=new o(r,this.options));let i=0;do{const l=this.build[i],h=r.build[i];if(e("build compare",i,l,h),l===void 0&&h===void 0)return 0;if(h===void 0)return 1;if(l===void 0)return-1;if(l===h)continue;return c(l,h)}while(++i)}inc(r,i,l){if(r.startsWith("pre")){if(!i&&l===!1)throw new Error("invalid increment argument: identifier is empty");if(i){const h=`-${i}`.match(this.options.loose?s[d.PRERELEASELOOSE]:s[d.PRERELEASE]);if(!h||h[1]!==i)throw new Error(`invalid identifier: ${i}`)}}switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",i,l);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",i,l);break;case"prepatch":this.prerelease.length=0,this.inc("patch",i,l),this.inc("pre",i,l);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",i,l),this.inc("pre",i,l);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const h=Number(l)?1:0;if(this.prerelease.length===0)this.prerelease=[h];else{let b=this.prerelease.length;for(;--b>=0;)typeof this.prerelease[b]=="number"&&(this.prerelease[b]++,b=-2);if(b===-1){if(i===this.prerelease.join(".")&&l===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(h)}}if(i){let b=[i,h];if(l===!1&&(b=[i]),a(this.prerelease,i)){const v=this.prerelease[i.split(".").length];isNaN(v)&&(this.prerelease=b)}else this.prerelease=b}break}default:throw new Error(`invalid increment argument: ${r}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return dr=o,dr}var fr,Bs;function Ke(){if(Bs)return fr;Bs=1;const e=ye();return fr=(n,s,d=!1)=>{if(n instanceof e)return n;try{return new e(n,s)}catch(u){if(!d)return null;throw u}},fr}var hr,Ls;function za(){if(Ls)return hr;Ls=1;const e=Ke();return hr=(n,s)=>{const d=e(n,s);return d?d.version:null},hr}var pr,Ns;function Ja(){if(Ns)return pr;Ns=1;const e=Ke();return pr=(n,s)=>{const d=e(n.trim().replace(/^[=v]+/,""),s);return d?d.version:null},pr}var gr,Ms;function Ga(){if(Ms)return gr;Ms=1;const e=ye();return gr=(n,s,d,u,c)=>{typeof d=="string"&&(c=u,u=d,d=void 0);try{return new e(n instanceof e?n.version:n,d).inc(s,u,c).version}catch{return null}},gr}var mr,qs;function Xa(){if(qs)return mr;qs=1;const e=Ke();return mr=(n,s)=>{const d=e(n,null,!0),u=e(s,null,!0),c=d.compare(u);if(c===0)return null;const a=c>0,o=a?d:u,f=a?u:d,r=!!o.prerelease.length;if(!!f.prerelease.length&&!r){if(!f.patch&&!f.minor)return"major";if(f.compareMain(o)===0)return f.minor&&!f.patch?"minor":"patch"}const l=r?"pre":"";return d.major!==u.major?l+"major":d.minor!==u.minor?l+"minor":d.patch!==u.patch?l+"patch":"prerelease"},mr}var yr,Hs;function Wa(){if(Hs)return yr;Hs=1;const e=ye();return yr=(n,s)=>new e(n,s).major,yr}var br,Ds;function Ka(){if(Ds)return br;Ds=1;const e=ye();return br=(n,s)=>new e(n,s).minor,br}var Er,Us;function Ya(){if(Us)return Er;Us=1;const e=ye();return Er=(n,s)=>new e(n,s).patch,Er}var wr,Vs;function Za(){if(Vs)return wr;Vs=1;const e=Ke();return wr=(n,s)=>{const d=e(n,s);return d&&d.prerelease.length?d.prerelease:null},wr}var Sr,Fs;function xe(){if(Fs)return Sr;Fs=1;const e=ye();return Sr=(n,s,d)=>new e(n,d).compare(new e(s,d)),Sr}var vr,zs;function Qa(){if(zs)return vr;zs=1;const e=xe();return vr=(n,s,d)=>e(s,n,d),vr}var Rr,Js;function ec(){if(Js)return Rr;Js=1;const e=xe();return Rr=(n,s)=>e(n,s,!0),Rr}var _r,Gs;function Nn(){if(Gs)return _r;Gs=1;const e=ye();return _r=(n,s,d)=>{const u=new e(n,d),c=new e(s,d);return u.compare(c)||u.compareBuild(c)},_r}var $r,Xs;function tc(){if(Xs)return $r;Xs=1;const e=Nn();return $r=(n,s)=>n.sort((d,u)=>e(d,u,s)),$r}var Ir,Ws;function rc(){if(Ws)return Ir;Ws=1;const e=Nn();return Ir=(n,s)=>n.sort((d,u)=>e(u,d,s)),Ir}var Ar,Ks;function qt(){if(Ks)return Ar;Ks=1;const e=xe();return Ar=(n,s,d)=>e(n,s,d)>0,Ar}var Tr,Ys;function Mn(){if(Ys)return Tr;Ys=1;const e=xe();return Tr=(n,s,d)=>e(n,s,d)<0,Tr}var jr,Zs;function Mo(){if(Zs)return jr;Zs=1;const e=xe();return jr=(n,s,d)=>e(n,s,d)===0,jr}var Cr,Qs;function qo(){if(Qs)return Cr;Qs=1;const e=xe();return Cr=(n,s,d)=>e(n,s,d)!==0,Cr}var xr,ei;function qn(){if(ei)return xr;ei=1;const e=xe();return xr=(n,s,d)=>e(n,s,d)>=0,xr}var Pr,ti;function Hn(){if(ti)return Pr;ti=1;const e=xe();return Pr=(n,s,d)=>e(n,s,d)<=0,Pr}var Or,ri;function Ho(){if(ri)return Or;ri=1;const e=Mo(),t=qo(),n=qt(),s=qn(),d=Mn(),u=Hn();return Or=(a,o,f,r)=>{switch(o){case"===":return typeof a=="object"&&(a=a.version),typeof f=="object"&&(f=f.version),a===f;case"!==":return typeof a=="object"&&(a=a.version),typeof f=="object"&&(f=f.version),a!==f;case"":case"=":case"==":return e(a,f,r);case"!=":return t(a,f,r);case">":return n(a,f,r);case">=":return s(a,f,r);case"<":return d(a,f,r);case"<=":return u(a,f,r);default:throw new TypeError(`Invalid operator: ${o}`)}},Or}var kr,ni;function nc(){if(ni)return kr;ni=1;const e=ye(),t=Ke(),{safeRe:n,t:s}=St();return kr=(u,c)=>{if(u instanceof e)return u;if(typeof u=="number"&&(u=String(u)),typeof u!="string")return null;c=c||{};let a=null;if(!c.rtl)a=u.match(c.includePrerelease?n[s.COERCEFULL]:n[s.COERCE]);else{const h=c.includePrerelease?n[s.COERCERTLFULL]:n[s.COERCERTL];let b;for(;(b=h.exec(u))&&(!a||a.index+a[0].length!==u.length);)(!a||b.index+b[0].length!==a.index+a[0].length)&&(a=b),h.lastIndex=b.index+b[1].length+b[2].length;h.lastIndex=-1}if(a===null)return null;const o=a[2],f=a[3]||"0",r=a[4]||"0",i=c.includePrerelease&&a[5]?`-${a[5]}`:"",l=c.includePrerelease&&a[6]?`+${a[6]}`:"";return t(`${o}.${f}.${r}${i}${l}`,c)},kr}var Br,si;function sc(){if(si)return Br;si=1;const e=Ke(),t=wt(),n=ye(),s=(a,o,f)=>{if(!t.RELEASE_TYPES.includes(o))return null;const r=d(a,f);return r&&u(r,o)},d=(a,o)=>{const f=a instanceof n?a.version:a;return e(f,o)},u=(a,o)=>{if(c(o))return a.version;switch(a.prerelease=[],o){case"major":a.minor=0,a.patch=0;break;case"minor":a.patch=0;break}return a.format()},c=a=>a.startsWith("pre");return Br=s,Br}var Lr,ii;function ic(){if(ii)return Lr;ii=1;class e{constructor(){this.max=1e3,this.map=new Map}get(n){const s=this.map.get(n);if(s!==void 0)return this.map.delete(n),this.map.set(n,s),s}delete(n){return this.map.delete(n)}set(n,s){if(!this.delete(n)&&s!==void 0){if(this.map.size>=this.max){const u=this.map.keys().next().value;this.delete(u)}this.map.set(n,s)}return this}}return Lr=e,Lr}var Nr,oi;function Pe(){if(oi)return Nr;oi=1;const e=/\s+/g;class t{constructor(k,y){if(y=d(y),k instanceof t)return k.loose===!!y.loose&&k.includePrerelease===!!y.includePrerelease?k:new t(k.raw,y);if(k instanceof u)return this.raw=k.value,this.set=[[k]],this.formatted=void 0,this;if(this.options=y,this.loose=!!y.loose,this.includePrerelease=!!y.includePrerelease,this.raw=k.trim().replace(e," "),this.set=this.raw.split("||").map(g=>this.parseRange(g.trim())).filter(g=>g.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const g=this.set[0];if(this.set=this.set.filter(I=>!L(I[0])),this.set.length===0)this.set=[g];else if(this.set.length>1){for(const I of this.set)if(I.length===1&&z(I[0])){this.set=[I];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let k=0;k<this.set.length;k++){k>0&&(this.formatted+="||");const y=this.set[k];for(let g=0;g<y.length;g++)g>0&&(this.formatted+=" "),this.formatted+=y[g].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(k){k=k.replace(N,"");const g=((this.options.includePrerelease&&b)|(this.options.loose&&v))+":"+k,I=s.get(g);if(I)return I;const C=this.options.loose,q=C?o[r.HYPHENRANGELOOSE]:o[r.HYPHENRANGE];k=k.replace(q,x(this.options.includePrerelease)),c("hyphen replace",k),k=k.replace(o[r.COMPARATORTRIM],i),c("comparator trim",k),k=k.replace(o[r.TILDETRIM],l),c("tilde trim",k),k=k.replace(o[r.CARETTRIM],h),c("caret trim",k);let m=k.split(" ").map(U=>$(U,this.options)).join(" ").split(/\s+/).map(U=>B(U,this.options));C&&(m=m.filter(U=>(c("loose invalid filter",U,this.options),!!U.match(o[r.COMPARATORLOOSE])))),c("range list",m);const E=new Map,_=m.map(U=>new u(U,this.options));for(const U of _){if(L(U))return[U];E.set(U.value,U)}E.size>1&&E.has("")&&E.delete("");const J=[...E.values()];return s.set(g,J),J}intersects(k,y){if(!(k instanceof t))throw new TypeError("a Range is required");return this.set.some(g=>K(g,y)&&k.set.some(I=>K(I,y)&&g.every(C=>I.every(q=>C.intersects(q,y)))))}test(k){if(!k)return!1;if(typeof k=="string")try{k=new a(k,this.options)}catch{return!1}for(let y=0;y<this.set.length;y++)if(V(this.set[y],k,this.options))return!0;return!1}}Nr=t;const n=ic(),s=new n,d=Ln(),u=Ht(),c=Mt(),a=ye(),{safeRe:o,src:f,t:r,comparatorTrimReplace:i,tildeTrimReplace:l,caretTrimReplace:h}=St(),{FLAG_INCLUDE_PRERELEASE:b,FLAG_LOOSE:v}=wt(),N=new RegExp(f[r.BUILD],"g"),L=M=>M.value==="<0.0.0-0",z=M=>M.value==="",K=(M,k)=>{let y=!0;const g=M.slice();let I=g.pop();for(;y&&g.length;)y=g.every(C=>I.intersects(C,k)),I=g.pop();return y},$=(M,k)=>(M=M.replace(o[r.BUILD],""),c("comp",M,k),M=O(M,k),c("caret",M),M=H(M,k),c("tildes",M),M=R(M,k),c("xrange",M),M=A(M,k),c("stars",M),M),S=M=>!M||M.toLowerCase()==="x"||M==="*",j=(M,k,y)=>S(M)&&!S(k)||S(k)&&y&&!S(y),H=(M,k)=>M.trim().split(/\s+/).map(y=>P(y,k)).join(" "),P=(M,k)=>{const y=k.loose?o[r.TILDELOOSE]:o[r.TILDE],g=k.includePrerelease?"-0":"";return M.replace(y,(I,C,q,m,E)=>{c("tilde",M,I,C,q,m,E);let _;return S(C)?_="":S(q)?_=`>=${C}.0.0${g} <${+C+1}.0.0-0`:S(m)?_=`>=${C}.${q}.0${g} <${C}.${+q+1}.0-0`:E?(c("replaceTilde pr",E),_=`>=${C}.${q}.${m}-${E} <${C}.${+q+1}.0-0`):_=`>=${C}.${q}.${m} <${C}.${+q+1}.0-0`,c("tilde return",_),_})},O=(M,k)=>M.trim().split(/\s+/).map(y=>p(y,k)).join(" "),p=(M,k)=>{c("caret",M,k);const y=k.loose?o[r.CARETLOOSE]:o[r.CARET],g=k.includePrerelease?"-0":"";return M.replace(y,(I,C,q,m,E)=>{c("caret",M,I,C,q,m,E);let _;return S(C)?_="":S(q)?_=`>=${C}.0.0${g} <${+C+1}.0.0-0`:S(m)?C==="0"?_=`>=${C}.${q}.0${g} <${C}.${+q+1}.0-0`:_=`>=${C}.${q}.0${g} <${+C+1}.0.0-0`:E?(c("replaceCaret pr",E),C==="0"?q==="0"?_=`>=${C}.${q}.${m}-${E} <${C}.${q}.${+m+1}-0`:_=`>=${C}.${q}.${m}-${E} <${C}.${+q+1}.0-0`:_=`>=${C}.${q}.${m}-${E} <${+C+1}.0.0-0`):(c("no pr"),C==="0"?q==="0"?_=`>=${C}.${q}.${m} <${C}.${q}.${+m+1}-0`:_=`>=${C}.${q}.${m} <${C}.${+q+1}.0-0`:_=`>=${C}.${q}.${m} <${+C+1}.0.0-0`),c("caret return",_),_})},R=(M,k)=>(c("replaceXRanges",M,k),M.split(/\s+/).map(y=>G(y,k)).join(" ")),G=(M,k)=>{M=M.trim();const y=k.loose?o[r.XRANGELOOSE]:o[r.XRANGE];return M.replace(y,(g,I,C,q,m,E)=>{if(c("xRange",M,g,I,C,q,m,E),j(C,q,m))return M;const _=S(C),J=_||S(q),U=J||S(m),X=U;return I==="="&&X&&(I=""),E=k.includePrerelease?"-0":"",_?I===">"||I==="<"?g="<0.0.0-0":g="*":I&&X?(J&&(q=0),m=0,I===">"?(I=">=",J?(C=+C+1,q=0,m=0):(q=+q+1,m=0)):I==="<="&&(I="<",J?C=+C+1:q=+q+1),I==="<"&&(E="-0"),g=`${I+C}.${q}.${m}${E}`):J?g=`>=${C}.0.0${E} <${+C+1}.0.0-0`:U&&(g=`>=${C}.${q}.0${E} <${C}.${+q+1}.0-0`),c("xRange return",g),g})},A=(M,k)=>(c("replaceStars",M,k),M.trim().replace(o[r.STAR],"")),B=(M,k)=>(c("replaceGTE0",M,k),M.trim().replace(o[k.includePrerelease?r.GTE0PRE:r.GTE0],"")),x=M=>(k,y,g,I,C,q,m,E,_,J,U,X)=>(S(g)?y="":S(I)?y=`>=${g}.0.0${M?"-0":""}`:S(C)?y=`>=${g}.${I}.0${M?"-0":""}`:q?y=`>=${y}`:y=`>=${y}${M?"-0":""}`,S(_)?E="":S(J)?E=`<${+_+1}.0.0-0`:S(U)?E=`<${_}.${+J+1}.0-0`:X?E=`<=${_}.${J}.${U}-${X}`:M?E=`<${_}.${J}.${+U+1}-0`:E=`<=${E}`,`${y} ${E}`.trim()),V=(M,k,y)=>{for(let g=0;g<M.length;g++)if(!M[g].test(k))return!1;if(k.prerelease.length&&!y.includePrerelease){for(let g=0;g<M.length;g++)if(c(M[g].semver),M[g].semver!==u.ANY&&M[g].semver.prerelease.length>0){const I=M[g].semver;if(I.major===k.major&&I.minor===k.minor&&I.patch===k.patch)return!0}return!1}return!0};return Nr}var Mr,ai;function Ht(){if(ai)return Mr;ai=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,i){if(i=n(i),r instanceof t){if(r.loose===!!i.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),c("comparator",r,i),this.options=i,this.loose=!!i.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(r){const i=this.options.loose?s[d.COMPARATORLOOSE]:s[d.COMPARATOR],l=r.match(i);if(!l)throw new TypeError(`Invalid comparator: ${r}`);this.operator=l[1]!==void 0?l[1]:"",this.operator==="="&&(this.operator=""),l[2]?this.semver=new a(l[2],this.options.loose):this.semver=e}toString(){return this.value}test(r){if(c("Comparator.test",r,this.options.loose),this.semver===e||r===e)return!0;if(typeof r=="string")try{r=new a(r,this.options)}catch{return!1}return u(r,this.operator,this.semver,this.options)}intersects(r,i){if(!(r instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new o(r.value,i).test(this.value):r.operator===""?r.value===""?!0:new o(this.value,i).test(r.semver):(i=n(i),i.includePrerelease&&(this.value==="<0.0.0-0"||r.value==="<0.0.0-0")||!i.includePrerelease&&(this.value.startsWith("<0.0.0")||r.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&r.operator.startsWith(">")||this.operator.startsWith("<")&&r.operator.startsWith("<")||this.semver.version===r.semver.version&&this.operator.includes("=")&&r.operator.includes("=")||u(this.semver,"<",r.semver,i)&&this.operator.startsWith(">")&&r.operator.startsWith("<")||u(this.semver,">",r.semver,i)&&this.operator.startsWith("<")&&r.operator.startsWith(">")))}}Mr=t;const n=Ln(),{safeRe:s,t:d}=St(),u=Ho(),c=Mt(),a=ye(),o=Pe();return Mr}var qr,ci;function Dt(){if(ci)return qr;ci=1;const e=Pe();return qr=(n,s,d)=>{try{s=new e(s,d)}catch{return!1}return s.test(n)},qr}var Hr,ui;function oc(){if(ui)return Hr;ui=1;const e=Pe();return Hr=(n,s)=>new e(n,s).set.map(d=>d.map(u=>u.value).join(" ").trim().split(" ")),Hr}var Dr,li;function ac(){if(li)return Dr;li=1;const e=ye(),t=Pe();return Dr=(s,d,u)=>{let c=null,a=null,o=null;try{o=new t(d,u)}catch{return null}return s.forEach(f=>{o.test(f)&&(!c||a.compare(f)===-1)&&(c=f,a=new e(c,u))}),c},Dr}var Ur,di;function cc(){if(di)return Ur;di=1;const e=ye(),t=Pe();return Ur=(s,d,u)=>{let c=null,a=null,o=null;try{o=new t(d,u)}catch{return null}return s.forEach(f=>{o.test(f)&&(!c||a.compare(f)===1)&&(c=f,a=new e(c,u))}),c},Ur}var Vr,fi;function uc(){if(fi)return Vr;fi=1;const e=ye(),t=Pe(),n=qt();return Vr=(d,u)=>{d=new t(d,u);let c=new e("0.0.0");if(d.test(c)||(c=new e("0.0.0-0"),d.test(c)))return c;c=null;for(let a=0;a<d.set.length;++a){const o=d.set[a];let f=null;o.forEach(r=>{const i=new e(r.semver.version);switch(r.operator){case">":i.prerelease.length===0?i.patch++:i.prerelease.push(0),i.raw=i.format();case"":case">=":(!f||n(i,f))&&(f=i);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${r.operator}`)}}),f&&(!c||n(c,f))&&(c=f)}return c&&d.test(c)?c:null},Vr}var Fr,hi;function lc(){if(hi)return Fr;hi=1;const e=Pe();return Fr=(n,s)=>{try{return new e(n,s).range||"*"}catch{return null}},Fr}var zr,pi;function Dn(){if(pi)return zr;pi=1;const e=ye(),t=Ht(),{ANY:n}=t,s=Pe(),d=Dt(),u=qt(),c=Mn(),a=Hn(),o=qn();return zr=(r,i,l,h)=>{r=new e(r,h),i=new s(i,h);let b,v,N,L,z;switch(l){case">":b=u,v=a,N=c,L=">",z=">=";break;case"<":b=c,v=o,N=u,L="<",z="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(d(r,i,h))return!1;for(let K=0;K<i.set.length;++K){const $=i.set[K];let S=null,j=null;if($.forEach(H=>{H.semver===n&&(H=new t(">=0.0.0")),S=S||H,j=j||H,b(H.semver,S.semver,h)?S=H:N(H.semver,j.semver,h)&&(j=H)}),S.operator===L||S.operator===z||(!j.operator||j.operator===L)&&v(r,j.semver))return!1;if(j.operator===z&&N(r,j.semver))return!1}return!0},zr}var Jr,gi;function dc(){if(gi)return Jr;gi=1;const e=Dn();return Jr=(n,s,d)=>e(n,s,">",d),Jr}var Gr,mi;function fc(){if(mi)return Gr;mi=1;const e=Dn();return Gr=(n,s,d)=>e(n,s,"<",d),Gr}var Xr,yi;function hc(){if(yi)return Xr;yi=1;const e=Pe();return Xr=(n,s,d)=>(n=new e(n,d),s=new e(s,d),n.intersects(s,d)),Xr}var Wr,bi;function pc(){if(bi)return Wr;bi=1;const e=Dt(),t=xe();return Wr=(n,s,d)=>{const u=[];let c=null,a=null;const o=n.sort((l,h)=>t(l,h,d));for(const l of o)e(l,s,d)?(a=l,c||(c=l)):(a&&u.push([c,a]),a=null,c=null);c&&u.push([c,null]);const f=[];for(const[l,h]of u)l===h?f.push(l):!h&&l===o[0]?f.push("*"):h?l===o[0]?f.push(`<=${h}`):f.push(`${l} - ${h}`):f.push(`>=${l}`);const r=f.join(" || "),i=typeof s.raw=="string"?s.raw:String(s);return r.length<i.length?r:s},Wr}var Kr,Ei;function gc(){if(Ei)return Kr;Ei=1;const e=Pe(),t=Ht(),{ANY:n}=t,s=Dt(),d=xe(),u=(i,l,h={})=>{if(i===l)return!0;i=new e(i,h),l=new e(l,h);let b=!1;e:for(const v of i.set){for(const N of l.set){const L=o(v,N,h);if(b=b||L!==null,L)continue e}if(b)return!1}return!0},c=[new t(">=0.0.0-0")],a=[new t(">=0.0.0")],o=(i,l,h)=>{if(i===l)return!0;if(i.length===1&&i[0].semver===n){if(l.length===1&&l[0].semver===n)return!0;h.includePrerelease?i=c:i=a}if(l.length===1&&l[0].semver===n){if(h.includePrerelease)return!0;l=a}const b=new Set;let v,N;for(const P of i)P.operator===">"||P.operator===">="?v=f(v,P,h):P.operator==="<"||P.operator==="<="?N=r(N,P,h):b.add(P.semver);if(b.size>1)return null;let L;if(v&&N){if(L=d(v.semver,N.semver,h),L>0)return null;if(L===0&&(v.operator!==">="||N.operator!=="<="))return null}for(const P of b){if(v&&!s(P,String(v),h)||N&&!s(P,String(N),h))return null;for(const O of l)if(!s(P,String(O),h))return!1;return!0}let z,K,$,S,j=N&&!h.includePrerelease&&N.semver.prerelease.length?N.semver:!1,H=v&&!h.includePrerelease&&v.semver.prerelease.length?v.semver:!1;j&&j.prerelease.length===1&&N.operator==="<"&&j.prerelease[0]===0&&(j=!1);for(const P of l){if(S=S||P.operator===">"||P.operator===">=",$=$||P.operator==="<"||P.operator==="<=",v){if(H&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===H.major&&P.semver.minor===H.minor&&P.semver.patch===H.patch&&(H=!1),P.operator===">"||P.operator===">="){if(z=f(v,P,h),z===P&&z!==v)return!1}else if(v.operator===">="&&!P.test(v.semver))return!1}if(N){if(j&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===j.major&&P.semver.minor===j.minor&&P.semver.patch===j.patch&&(j=!1),P.operator==="<"||P.operator==="<="){if(K=r(N,P,h),K===P&&K!==N)return!1}else if(N.operator==="<="&&!P.test(N.semver))return!1}if(!P.operator&&(N||v)&&L!==0)return!1}return!(v&&$&&!N&&L!==0||N&&S&&!v&&L!==0||H||j)},f=(i,l,h)=>{if(!i)return l;const b=d(i.semver,l.semver,h);return b>0?i:b<0||l.operator===">"&&i.operator===">="?l:i},r=(i,l,h)=>{if(!i)return l;const b=d(i.semver,l.semver,h);return b<0?i:b>0||l.operator==="<"&&i.operator==="<="?l:i};return Kr=u,Kr}var Yr,wi;function mc(){if(wi)return Yr;wi=1;const e=St(),t=wt(),n=ye(),s=No(),d=Ke(),u=za(),c=Ja(),a=Ga(),o=Xa(),f=Wa(),r=Ka(),i=Ya(),l=Za(),h=xe(),b=Qa(),v=ec(),N=Nn(),L=tc(),z=rc(),K=qt(),$=Mn(),S=Mo(),j=qo(),H=qn(),P=Hn(),O=Ho(),p=nc(),R=sc(),G=Ht(),A=Pe(),B=Dt(),x=oc(),V=ac(),M=cc(),k=uc(),y=lc(),g=Dn(),I=dc(),C=fc(),q=hc(),m=pc(),E=gc();return Yr={parse:d,valid:u,clean:c,inc:a,diff:o,major:f,minor:r,patch:i,prerelease:l,compare:h,rcompare:b,compareLoose:v,compareBuild:N,sort:L,rsort:z,gt:K,lt:$,eq:S,neq:j,gte:H,lte:P,cmp:O,coerce:p,truncate:R,Comparator:G,Range:A,satisfies:B,toComparators:x,maxSatisfying:V,minSatisfying:M,minVersion:k,validRange:y,outside:g,gtr:I,ltr:C,intersects:q,simplifyRange:m,subset:E,SemVer:n,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers},Yr}var Si;function yc(){return Si||(Si=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.satisfiesVersionRange=e.gtRange=e.gtVersion=e.assertIsSemVerRange=e.assertIsSemVerVersion=e.isValidSemVerRange=e.isValidSemVerVersion=e.VersionRangeStruct=e.VersionStruct=void 0;const t=Oe(),n=mc(),s=De();e.VersionStruct=(0,t.refine)((0,t.string)(),"Version",i=>(0,n.valid)(i)===null?`Expected SemVer version, got "${i}"`:!0),e.VersionRangeStruct=(0,t.refine)((0,t.string)(),"Version range",i=>(0,n.validRange)(i)===null?`Expected SemVer range, got "${i}"`:!0);function d(i){return(0,t.is)(i,e.VersionStruct)}e.isValidSemVerVersion=d;function u(i){return(0,t.is)(i,e.VersionRangeStruct)}e.isValidSemVerRange=u;function c(i){(0,s.assertStruct)(i,e.VersionStruct)}e.assertIsSemVerVersion=c;function a(i){(0,s.assertStruct)(i,e.VersionRangeStruct)}e.assertIsSemVerRange=a;function o(i,l){return(0,n.gt)(i,l)}e.gtVersion=o;function f(i,l){return(0,n.gtr)(i,l)}e.gtRange=f;function r(i,l){return(0,n.satisfies)(i,l,{includePrerelease:!0})}e.satisfiesVersionRange=r})(or)),or}var vi;function be(){return vi||(vi=1,(function(e){var t=Fe&&Fe.__createBinding||(Object.create?(function(s,d,u,c){c===void 0&&(c=u);var a=Object.getOwnPropertyDescriptor(d,u);(!a||("get"in a?!d.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return d[u]}}),Object.defineProperty(s,c,a)}):(function(s,d,u,c){c===void 0&&(c=u),s[c]=d[u]})),n=Fe&&Fe.__exportStar||function(s,d){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(d,u)&&t(d,s,u)};Object.defineProperty(e,"__esModule",{value:!0}),n(De(),e),n(Lo(),e),n(Bn(),e),n(Pa(),e),n(Oa(),e),n(ka(),e),n(Ba(),e),n(La(),e),n(Bo(),e),n(Nt(),e),n(Na(),e),n(Ma(),e),n(qa(),e),n(kn(),e),n(Ha(),e),n(Da(),e),n(Ua(),e),n(Va(),e),n(Fa(),e),n(yc(),e)})(Fe)),Fe}var Zr={},Ri;function ke(){return Ri||(Ri=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ParserError=e.getErrorStack=e.getErrorMessage=void 0;const t=be(),n=u=>typeof u=="string"?u:u instanceof Error||(0,t.isObject)(u)&&(0,t.hasProperty)(u,"message")&&typeof u.message=="string"?u.message:"Unknown error.";e.getErrorMessage=n;const s=u=>{if(u instanceof Error)return u.stack};e.getErrorStack=s;class d extends Error{constructor(c,a){super(c),this.name="ParserError";const o=(0,e.getErrorStack)(a);o&&(this.stack=o)}}e.ParserError=d})(Zr)),Zr}var Qr={},it={},_i;function bc(){if(_i)return it;_i=1,Object.defineProperty(it,"__esModule",{value:!0}),it.iterate=void 0;const e=be(),t=function*(n,s=32){for(let d=0;d<n.length;d+=s){const u=a=>{(0,e.assert)(a>=0,"Cannot skip a negative number of bytes."),(0,e.assert)(a%s===0,"Length must be a multiple of the size."),d+=a},c=n.subarray(d);yield{skip:u,value:c}}return{skip:()=>{},value:new Uint8Array}};return it.iterate=t,it}var Je={},en={},Ge={},Me={},$i;function Ec(){if($i)return Me;$i=1,Object.defineProperty(Me,"__esModule",{value:!0}),Me.padEnd=Me.padStart=Me.set=void 0;const e=be(),t=32,n=(u,c,a)=>(0,e.concatBytes)([u.subarray(0,a),c,u.subarray(a+c.length)]);Me.set=n;const s=(u,c=t)=>{const a=new Uint8Array(Math.max(c-u.length,0)).fill(0);return(0,e.concatBytes)([a,u])};Me.padStart=s;const d=(u,c=t)=>{const a=new Uint8Array(Math.max(c-u.length,0)).fill(0);return(0,e.concatBytes)([u,a])};return Me.padEnd=d,Me}var Ii;function et(){return Ii||(Ii=1,(function(e){var t=Ge&&Ge.__createBinding||(Object.create?(function(s,d,u,c){c===void 0&&(c=u);var a=Object.getOwnPropertyDescriptor(d,u);(!a||("get"in a?!d.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return d[u]}}),Object.defineProperty(s,c,a)}):(function(s,d,u,c){c===void 0&&(c=u),s[c]=d[u]})),n=Ge&&Ge.__exportStar||function(s,d){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(d,u)&&t(d,s,u)};Object.defineProperty(e,"__esModule",{value:!0}),n(Ec(),e)})(Ge)),Ge}var Ai;function wc(){return Ai||(Ai=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.address=e.getAddress=void 0;const t=be(),n=ke(),s=et(),d=u=>{const c=(0,t.createBytes)(u);return(0,t.assert)(c.length<=20,new n.ParserError(`Invalid address value. Expected address to be 20 bytes long, but received ${c.length} bytes.`)),(0,s.padStart)(c,20)};e.getAddress=d,e.address={isDynamic:!1,isType:u=>u==="address",getByteLength(){return 32},encode({buffer:u,value:c,packed:a}){const o=(0,e.getAddress)(c);if(a)return(0,t.concatBytes)([u,o]);const f=(0,s.padStart)(o);return(0,t.concatBytes)([u,f])},decode({value:u}){return(0,t.add0x)((0,t.bytesToHex)(u.slice(12,32)))}}})(en)),en}var tn={},rn={},Ti;function Un(){return Ti||(Ti=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.fixedBytes=e.getByteLength=void 0;const t=be(),n=ke(),s=et(),d=/^bytes([0-9]{1,2})$/u,u=c=>{var f;const a=(f=c.match(d))==null?void 0:f[1];(0,t.assert)(a,`Invalid byte length. Expected a number between 1 and 32, but received "${c}".`);const o=Number(a);return(0,t.assert)(o>0&&o<=32,new n.ParserError(`Invalid byte length. Expected a number between 1 and 32, but received "${c}".`)),o};e.getByteLength=u,e.fixedBytes={isDynamic:!1,isType(c){return d.test(c)},getByteLength(){return 32},encode({type:c,buffer:a,value:o,packed:f}){const r=(0,e.getByteLength)(c),i=(0,t.createBytes)(o);return(0,t.assert)(i.length<=r,new n.ParserError(`Expected a value of length ${r}, but received a value of length ${i.length}.`)),f?(0,t.concatBytes)([a,(0,s.padEnd)(i,r)]):(0,t.concatBytes)([a,(0,s.padEnd)(i)])},decode({type:c,value:a}){const o=(0,e.getByteLength)(c);return a.slice(0,o)}}})(rn)),rn}var nn={},ji;function Do(){return ji||(ji=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.tuple=e.getTupleElements=void 0;const t=be(),n=ke(),s=Vn(),d=/^\((.+)\)$/u,u=a=>d.test(a),c=a=>{(0,t.assert)(a.startsWith("(")&&a.endsWith(")"),new n.ParserError(`Invalid tuple type. Expected tuple type, but received "${a}".`));const o=[];let f="",r=0;for(let i=1;i<a.length-1;i++){const l=a[i];l===","&&r===0?(o.push(f.trim()),f=""):(f+=l,l==="("?r+=1:l===")"&&(r-=1))}return f.trim()&&o.push(f.trim()),o};e.getTupleElements=c,e.tuple={isDynamic(a){return(0,e.getTupleElements)(a).some(f=>{const r=(0,s.getParser)(f);return(0,s.isDynamicParser)(r,f)})},isType(a){return u(a)},getByteLength(a){return(0,s.isDynamicParser)(this,a)?32:(0,e.getTupleElements)(a).reduce((f,r)=>f+(0,s.getParser)(r).getByteLength(r),0)},encode({type:a,buffer:o,value:f,packed:r,tight:i}){const l=(0,e.getTupleElements)(a);return(0,s.pack)({types:l,values:f,byteArray:o,packed:r,tight:i})},decode({type:a,value:o,skip:f}){const r=(0,e.getTupleElements)(a),i=this.getByteLength(a)-32;return f(i),(0,s.unpack)(r,o)}}})(nn)),nn}var Ci;function Sc(){return Ci||(Ci=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.array=e.getTupleType=e.getArrayType=e.isArrayType=void 0;const t=be(),n=ke(),s=Vn(),d=et(),u=Un(),c=Do(),a=/^(?<type>.*)\[(?<length>\d*?)\]$/u,o=i=>a.test(i);e.isArrayType=o;const f=i=>{var h;const l=i.match(a);return(0,t.assert)((h=l==null?void 0:l.groups)==null?void 0:h.type,new n.ParserError(`Invalid array type. Expected an array type, but received "${i}".`)),[l.groups.type,l.groups.length?parseInt(l.groups.length,10):void 0]};e.getArrayType=f;const r=(i,l)=>`(${new Array(l).fill(i).join(",")})`;e.getTupleType=r,e.array={isDynamic(i){const[l,h]=(0,e.getArrayType)(i);return h===void 0||(0,s.isDynamicParser)((0,s.getParser)(l),l)},isType(i){return(0,e.isArrayType)(i)},getByteLength(i){(0,t.assert)((0,e.isArrayType)(i),new n.ParserError(`Expected an array type, but received "${i}".`));const[l,h]=(0,e.getArrayType)(i);return!(0,s.isDynamicParser)(this,i)&&h!==void 0?c.tuple.getByteLength((0,e.getTupleType)(l,h)):32},encode({type:i,buffer:l,value:h,packed:b,tight:v}){const[N,L]=(0,e.getArrayType)(i);if((0,t.assert)(!b||!(0,e.isArrayType)(N),new n.ParserError("Cannot pack nested arrays.")),b&&(0,s.isDynamicParser)((0,s.getParser)(N),N))return(0,s.pack)({types:new Array(h.length).fill(N),values:h,byteArray:l,packed:b,arrayPacked:!0,tight:v});if(L)return(0,t.assert)(L===h.length,new n.ParserError(`Array length does not match type length. Expected a length of ${L}, but received ${h.length}.`)),c.tuple.encode({type:(0,e.getTupleType)(N,L),buffer:l,value:h,packed:u.fixedBytes.isType(N)&&v,tight:v});if(b)return(0,s.pack)({types:new Array(h.length).fill(N),values:h,byteArray:l,packed:u.fixedBytes.isType(N)&&v,arrayPacked:!0,tight:v});const z=(0,d.padStart)((0,t.numberToBytes)(h.length));return(0,s.pack)({types:new Array(h.length).fill(N),values:h,byteArray:(0,t.concatBytes)([l,z]),packed:b,tight:v})},decode({type:i,value:l,...h}){const[b,v]=(0,e.getArrayType)(i);if(v){const L=c.tuple.decode({type:(0,e.getTupleType)(b,v),value:l,...h});return(0,t.assert)(L.length===v,new n.ParserError(`Array length does not match type length. Expected a length of ${v}, but received ${L.length}.`)),L}const N=(0,t.bytesToNumber)(l.subarray(0,32));return(0,s.unpack)(new Array(N).fill(b),l.subarray(32))}}})(tn)),tn}var sn={},on={},xi;function Uo(){return xi||(xi=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.number=e.getBigInt=e.assertNumberLength=e.getLength=e.isSigned=void 0;const t=be(),n=ke(),s=et(),d=/^u?int(?<length>[0-9]*)?$/u,u=f=>!f.startsWith("u");e.isSigned=u;const c=f=>{var l;if(f==="int"||f==="uint")return 256;const r=f.match(d);(0,t.assert)((l=r==null?void 0:r.groups)==null?void 0:l.length,new n.ParserError(`Invalid number type. Expected a number type, but received "${f}".`));const i=parseInt(r.groups.length,10);return(0,t.assert)(i>=8&&i<=256,new n.ParserError(`Invalid number length. Expected a number between 8 and 256, but received "${f}".`)),(0,t.assert)(i%8===0,new n.ParserError(`Invalid number length. Expected a multiple of 8, but received "${f}".`)),i};e.getLength=c;const a=(f,r)=>{const i=(0,e.getLength)(r),l=BigInt(2)**BigInt(i-((0,e.isSigned)(r)?1:0))-BigInt(1);if((0,e.isSigned)(r)){(0,t.assert)(f>=-(l+BigInt(1))&&f<=l,new n.ParserError(`Number "${f}" is out of range for type "${r}".`));return}(0,t.assert)(f<=l,new n.ParserError(`Number "${f}" is out of range for type "${r}".`))};e.assertNumberLength=a;const o=f=>{try{return(0,t.createBigInt)(f)}catch{throw new n.ParserError(`Invalid number. Expected a valid number value, but received "${f}".`)}};e.getBigInt=o,e.number={isDynamic:!1,isType(f){return d.test(f)},getByteLength(){return 32},encode({type:f,buffer:r,value:i,packed:l}){const h=(0,e.getBigInt)(i);if((0,e.assertNumberLength)(h,f),(0,e.isSigned)(f)){if(l){const b=(0,e.getLength)(f)/8;return(0,t.concatBytes)([r,(0,t.signedBigIntToBytes)(h,b)])}return(0,t.concatBytes)([r,(0,s.padStart)((0,t.signedBigIntToBytes)(h,32))])}if(l){const b=(0,e.getLength)(f)/8;return(0,t.concatBytes)([r,(0,s.padStart)((0,t.bigIntToBytes)(h),b)])}return(0,t.concatBytes)([r,(0,s.padStart)((0,t.bigIntToBytes)(h))])},decode({type:f,value:r}){const i=r.subarray(0,32);if((0,e.isSigned)(f)){const h=(0,t.bytesToSignedBigInt)(i);return(0,e.assertNumberLength)(h,f),h}const l=(0,t.bytesToBigInt)(i);return(0,e.assertNumberLength)(l,f),l}}})(on)),on}var Pi;function vc(){return Pi||(Pi=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.bool=e.getBooleanValue=void 0;const t=Oe(),n=be(),s=ke(),d=Uo(),u=(0,t.coerce)((0,t.boolean)(),(0,t.union)([(0,t.literal)("true"),(0,t.literal)("false")]),a=>a==="true"),c=a=>{try{return(0,t.create)(a,u)?BigInt(1):BigInt(0)}catch{throw new s.ParserError(`Invalid boolean value. Expected a boolean literal, or the string "true" or "false", but received "${a}".`)}};e.getBooleanValue=c,e.bool={isDynamic:!1,isType:a=>a==="bool",getByteLength(){return 32},encode({buffer:a,value:o,packed:f,tight:r}){const i=(0,e.getBooleanValue)(o);return f?(0,n.concatBytes)([a,(0,n.bigIntToBytes)(i)]):d.number.encode({type:"uint256",buffer:a,value:i,packed:f,tight:r})},decode(a){return d.number.decode({...a,type:"uint256"})===BigInt(1)}}})(sn)),sn}var ot={},Oi;function Vo(){if(Oi)return ot;Oi=1,Object.defineProperty(ot,"__esModule",{value:!0}),ot.bytes=void 0;const e=be(),t=et();return ot.bytes={isDynamic:!0,isType:n=>n==="bytes",getByteLength(){return 32},encode({buffer:n,value:s,packed:d}){const u=(0,e.createBytes)(s);if(d)return(0,e.concatBytes)([n,u]);const c=Math.ceil(u.byteLength/32)*32;return(0,e.concatBytes)([n,(0,t.padStart)((0,e.numberToBytes)(u.byteLength)),(0,t.padEnd)(u,c)])},decode({value:n}){const s=n.subarray(0,32),d=(0,e.bytesToNumber)(s);return n.slice(32,32+d)}},ot}var an={},ki;function Rc(){return ki||(ki=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.fn=e.getFunction=void 0;const t=Oe(),n=be(),s=ke(),d=Un(),u=(0,t.coerce)((0,t.object)({address:n.StrictHexStruct,selector:n.StrictHexStruct}),(0,t.union)([n.StrictHexStruct,(0,t.instance)(Uint8Array)]),a=>{const o=(0,n.createBytes)(a);return(0,n.assert)(o.length===24,new s.ParserError(`Invalid Solidity function. Expected function to be 24 bytes long, but received ${o.length} bytes.`)),{address:(0,n.bytesToHex)(o.subarray(0,20)),selector:(0,n.bytesToHex)(o.subarray(20,24))}}),c=a=>{const o=(0,t.create)(a,u);return(0,n.concatBytes)([(0,n.hexToBytes)(o.address),(0,n.hexToBytes)(o.selector)])};e.getFunction=c,e.fn={isDynamic:!1,isType:a=>a==="function",getByteLength(){return 32},encode({buffer:a,value:o,packed:f,tight:r}){const i=(0,e.getFunction)(o);return d.fixedBytes.encode({type:"bytes24",buffer:a,value:i,packed:f,tight:r})},decode({value:a}){return{address:(0,n.bytesToHex)(a.slice(0,20)),selector:(0,n.bytesToHex)(a.slice(20,24))}}}})(an)),an}var cn={},Bi;function _c(){return Bi||(Bi=1,Object.defineProperty(cn,"__esModule",{value:!0})),cn}var at={},Li;function $c(){if(Li)return at;Li=1,Object.defineProperty(at,"__esModule",{value:!0}),at.string=void 0;const e=be(),t=Vo();return at.string={isDynamic:!0,isType:n=>n==="string",getByteLength(){return 32},encode({buffer:n,value:s,packed:d,tight:u}){return t.bytes.encode({type:"bytes",buffer:n,value:(0,e.stringToBytes)(s),packed:d,tight:u})},decode(n){return(0,e.bytesToString)(t.bytes.decode(n))}},at}var Ni;function Ic(){return Ni||(Ni=1,(function(e){var t=Je&&Je.__createBinding||(Object.create?(function(s,d,u,c){c===void 0&&(c=u);var a=Object.getOwnPropertyDescriptor(d,u);(!a||("get"in a?!d.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return d[u]}}),Object.defineProperty(s,c,a)}):(function(s,d,u,c){c===void 0&&(c=u),s[c]=d[u]})),n=Je&&Je.__exportStar||function(s,d){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(d,u)&&t(d,s,u)};Object.defineProperty(e,"__esModule",{value:!0}),n(wc(),e),n(Sc(),e),n(vc(),e),n(Vo(),e),n(Un(),e),n(Rc(),e),n(Uo(),e),n(_c(),e),n($c(),e),n(Do(),e)})(Je)),Je}var Mi;function Vn(){return Mi||(Mi=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.unpack=e.pack=e.isDynamicParser=e.getParser=void 0;const t=be(),n=ke(),s=bc(),d=Ic(),u=et(),c=r=>{const i={address:d.address,array:d.array,bool:d.bool,bytes:d.bytes,fixedBytes:d.fixedBytes,function:d.fn,number:d.number,string:d.string,tuple:d.tuple},l=i[r];if(l)return l;const h=Object.values(i).find(b=>b.isType(r));if(h)return h;throw new n.ParserError(`The type "${r}" is not supported.`)};e.getParser=c;const a=(r,i)=>{const{isDynamic:l}=r;return typeof l=="function"?l(i):l};e.isDynamicParser=a;const o=({types:r,values:i,packed:l=!1,tight:h=!1,arrayPacked:b=!1,byteArray:v=new Uint8Array})=>{(0,t.assert)(r.length===i.length,new n.ParserError(`The number of types (${r.length}) does not match the number of values (${i.length}).`));const{staticBuffer:N,dynamicBuffer:L,pointers:z}=r.reduce(({staticBuffer:S,dynamicBuffer:j,pointers:H},P,O)=>{const p=(0,e.getParser)(P),R=i[O];if(l||b||!(0,e.isDynamicParser)(p,P))return{staticBuffer:p.encode({buffer:S,value:R,type:P,packed:l,tight:h}),dynamicBuffer:j,pointers:H};const G=(0,t.concatBytes)([S,new Uint8Array(32)]),A=p.encode({buffer:j,value:R,type:P,packed:l,tight:h});return{staticBuffer:G,dynamicBuffer:A,pointers:[...H,{position:S.length,pointer:j.length}]}},{staticBuffer:new Uint8Array,dynamicBuffer:new Uint8Array,pointers:[]});(0,t.assert)(!l&&!b||L.length===0,new n.ParserError("Invalid pack state."));const K=N.length,$=z.reduce((S,{pointer:j,position:H})=>{const P=(0,u.padStart)((0,t.numberToBytes)(K+j));return(0,u.set)(S,P,H)},N);return(0,t.concatBytes)([v,$,L])};e.pack=o;const f=(r,i)=>{const l=(0,s.iterate)(i);return r.map(h=>{const{value:{value:b,skip:v},done:N}=l.next();(0,t.assert)(!N,new n.ParserError(`The encoded value is invalid for the provided types. Reached end of buffer while attempting to parse "${h}".`));const L=(0,e.getParser)(h);if((0,e.isDynamicParser)(L,h)){const K=(0,t.bytesToNumber)(b.subarray(0,32)),$=i.subarray(K);return L.decode({type:h,value:$,skip:v})}return L.decode({type:h,value:b,skip:v})})};e.unpack=f})(Qr)),Qr}var qi;function Ac(){return qi||(qi=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeSingle=e.decode=e.encodePacked=e.encodeSingle=e.encode=void 0;const t=be(),n=ke(),s=Vn(),d=(f,r,i,l)=>{try{return(0,s.pack)({types:f,values:r,packed:i,tight:l})}catch(h){throw h instanceof n.ParserError?new n.ParserError(`Unable to encode value: ${h.message}`,h):new n.ParserError(`An unexpected error occurred: ${(0,n.getErrorMessage)(h)}`,h)}};e.encode=d;const u=(f,r)=>(0,e.encode)([f],[r]);e.encodeSingle=u;const c=(f,r,i)=>(0,e.encode)(f,r,!0,i);e.encodePacked=c;const a=(f,r)=>{const i=(0,t.createBytes)(r);try{return(0,s.unpack)(f,i)}catch(l){throw l instanceof n.ParserError?new n.ParserError(`Unable to decode value: ${l.message}`,l):new n.ParserError(`An unexpected error occurred: ${(0,n.getErrorMessage)(l)}`,l)}};e.decode=a;const o=(f,r)=>{const i=(0,e.decode)([f],r);return(0,t.assert)(i.length===1,new n.ParserError("Decoded value array has unexpected length.")),i[0]};e.decodeSingle=o})(Xt)),Xt}var Xe={},un={},Hi;function Tc(){return Hi||(Hi=1,Object.defineProperty(un,"__esModule",{value:!0})),un}var Di;function jc(){return Di||(Di=1,(function(e){var t=Xe&&Xe.__createBinding||(Object.create?(function(s,d,u,c){c===void 0&&(c=u);var a=Object.getOwnPropertyDescriptor(d,u);(!a||("get"in a?!d.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return d[u]}}),Object.defineProperty(s,c,a)}):(function(s,d,u,c){c===void 0&&(c=u),s[c]=d[u]})),n=Xe&&Xe.__exportStar||function(s,d){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(d,u)&&t(d,s,u)};Object.defineProperty(e,"__esModule",{value:!0}),n(Tc(),e)})(Xe)),Xe}var Ui;function Fo(){return Ui||(Ui=1,(function(e){var t=Ve&&Ve.__createBinding||(Object.create?(function(s,d,u,c){c===void 0&&(c=u);var a=Object.getOwnPropertyDescriptor(d,u);(!a||("get"in a?!d.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return d[u]}}),Object.defineProperty(s,c,a)}):(function(s,d,u,c){c===void 0&&(c=u),s[c]=d[u]})),n=Ve&&Ve.__exportStar||function(s,d){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(d,u)&&t(d,s,u)};Object.defineProperty(e,"__esModule",{value:!0}),n(Ac(),e),n(ke(),e),n(jc(),e)})(Ve)),Ve}var Ae={},ln={},te={},Vi;function Cc(){if(Vi)return te;Vi=1;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(te,"__esModule",{value:!0}),te.notImplemented=te.bitMask=void 0,te.isBytes=n,te.abytes=s,te.abool=d,te.numberToHexUnpadded=u,te.hexToNumber=c,te.bytesToHex=f,te.hexToBytes=l,te.bytesToNumberBE=h,te.bytesToNumberLE=b,te.numberToBytesBE=v,te.numberToBytesLE=N,te.numberToVarBytesBE=L,te.ensureBytes=z,te.concatBytes=K,te.equalBytes=$,te.utf8ToBytes=S,te.inRange=H,te.aInRange=P,te.bitLen=O,te.bitGet=p,te.bitSet=R,te.createHmacDrbg=x,te.validateObject=M,te.memoized=y;const e=BigInt(0),t=BigInt(1);function n(g){return g instanceof Uint8Array||ArrayBuffer.isView(g)&&g.constructor.name==="Uint8Array"}function s(g){if(!n(g))throw new Error("Uint8Array expected")}function d(g,I){if(typeof I!="boolean")throw new Error(g+" boolean expected, got "+I)}function u(g){const I=g.toString(16);return I.length&1?"0"+I:I}function c(g){if(typeof g!="string")throw new Error("hex string expected, got "+typeof g);return g===""?e:BigInt("0x"+g)}const a=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",o=Array.from({length:256},(g,I)=>I.toString(16).padStart(2,"0"));function f(g){if(s(g),a)return g.toHex();let I="";for(let C=0;C<g.length;C++)I+=o[g[C]];return I}const r={_0:48,_9:57,A:65,F:70,a:97,f:102};function i(g){if(g>=r._0&&g<=r._9)return g-r._0;if(g>=r.A&&g<=r.F)return g-(r.A-10);if(g>=r.a&&g<=r.f)return g-(r.a-10)}function l(g){if(typeof g!="string")throw new Error("hex string expected, got "+typeof g);if(a)return Uint8Array.fromHex(g);const I=g.length,C=I/2;if(I%2)throw new Error("hex string expected, got unpadded hex of length "+I);const q=new Uint8Array(C);for(let m=0,E=0;m<C;m++,E+=2){const _=i(g.charCodeAt(E)),J=i(g.charCodeAt(E+1));if(_===void 0||J===void 0){const U=g[E]+g[E+1];throw new Error('hex string expected, got non-hex character "'+U+'" at index '+E)}q[m]=_*16+J}return q}function h(g){return c(f(g))}function b(g){return s(g),c(f(Uint8Array.from(g).reverse()))}function v(g,I){return l(g.toString(16).padStart(I*2,"0"))}function N(g,I){return v(g,I).reverse()}function L(g){return l(u(g))}function z(g,I,C){let q;if(typeof I=="string")try{q=l(I)}catch(E){throw new Error(g+" must be hex string or Uint8Array, cause: "+E)}else if(n(I))q=Uint8Array.from(I);else throw new Error(g+" must be hex string or Uint8Array");const m=q.length;if(typeof C=="number"&&m!==C)throw new Error(g+" of length "+C+" expected, got "+m);return q}function K(...g){let I=0;for(let q=0;q<g.length;q++){const m=g[q];s(m),I+=m.length}const C=new Uint8Array(I);for(let q=0,m=0;q<g.length;q++){const E=g[q];C.set(E,m),m+=E.length}return C}function $(g,I){if(g.length!==I.length)return!1;let C=0;for(let q=0;q<g.length;q++)C|=g[q]^I[q];return C===0}function S(g){if(typeof g!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(g))}const j=g=>typeof g=="bigint"&&e<=g;function H(g,I,C){return j(g)&&j(I)&&j(C)&&I<=g&&g<C}function P(g,I,C,q){if(!H(I,C,q))throw new Error("expected valid "+g+": "+C+" <= n < "+q+", got "+I)}function O(g){let I;for(I=0;g>e;g>>=t,I+=1);return I}function p(g,I){return g>>BigInt(I)&t}function R(g,I,C){return g|(C?t:e)<<BigInt(I)}const G=g=>(t<<BigInt(g))-t;te.bitMask=G;const A=g=>new Uint8Array(g),B=g=>Uint8Array.from(g);function x(g,I,C){if(typeof g!="number"||g<2)throw new Error("hashLen must be a number");if(typeof I!="number"||I<2)throw new Error("qByteLen must be a number");if(typeof C!="function")throw new Error("hmacFn must be a function");let q=A(g),m=A(g),E=0;const _=()=>{q.fill(1),m.fill(0),E=0},J=(...Q)=>C(m,q,...Q),U=(Q=A(0))=>{m=J(B([0]),Q),q=J(),Q.length!==0&&(m=J(B([1]),Q),q=J())},X=()=>{if(E++>=1e3)throw new Error("drbg: tried 1000 values");let Q=0;const ae=[];for(;Q<I;){q=J();const ce=q.slice();ae.push(ce),Q+=q.length}return K(...ae)};return(Q,ae)=>{_(),U(Q);let ce;for(;!(ce=ae(X()));)U();return _(),ce}}const V={bigint:g=>typeof g=="bigint",function:g=>typeof g=="function",boolean:g=>typeof g=="boolean",string:g=>typeof g=="string",stringOrUint8Array:g=>typeof g=="string"||n(g),isSafeInteger:g=>Number.isSafeInteger(g),array:g=>Array.isArray(g),field:(g,I)=>I.Fp.isValid(g),hash:g=>typeof g=="function"&&Number.isSafeInteger(g.outputLen)};function M(g,I,C={}){const q=(m,E,_)=>{const J=V[E];if(typeof J!="function")throw new Error("invalid validator function");const U=g[m];if(!(_&&U===void 0)&&!J(U,g))throw new Error("param "+String(m)+" is invalid. Expected "+E+", got "+U)};for(const[m,E]of Object.entries(I))q(m,E,!1);for(const[m,E]of Object.entries(C))q(m,E,!0);return g}const k=()=>{throw new Error("not implemented")};te.notImplemented=k;function y(g){const I=new WeakMap;return(C,...q)=>{const m=I.get(C);if(m!==void 0)return m;const E=g(C,...q);return I.set(C,E),E}}return te}var Te={},dn={},ct={},Fi;function xc(){return Fi||(Fi=1,Object.defineProperty(ct,"__esModule",{value:!0}),ct.crypto=void 0,ct.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0),ct}var zi;function Ot(){return zi||(zi=1,(function(e){/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(e,"__esModule",{value:!0}),e.wrapXOFConstructorWithOpts=e.wrapConstructorWithOpts=e.wrapConstructor=e.Hash=e.nextTick=e.swap32IfBE=e.byteSwapIfBE=e.swap8IfBE=e.isLE=void 0,e.isBytes=n,e.anumber=s,e.abytes=d,e.ahash=u,e.aexists=c,e.aoutput=a,e.u8=o,e.u32=f,e.clean=r,e.createView=i,e.rotr=l,e.rotl=h,e.byteSwap=b,e.byteSwap32=v,e.bytesToHex=z,e.hexToBytes=S,e.asyncLoop=H,e.utf8ToBytes=P,e.bytesToUtf8=O,e.toBytes=p,e.kdfInputToBytes=R,e.concatBytes=G,e.checkOpts=A,e.createHasher=x,e.createOptHasher=V,e.createXOFer=M,e.randomBytes=k;const t=xc();function n(y){return y instanceof Uint8Array||ArrayBuffer.isView(y)&&y.constructor.name==="Uint8Array"}function s(y){if(!Number.isSafeInteger(y)||y<0)throw new Error("positive integer expected, got "+y)}function d(y,...g){if(!n(y))throw new Error("Uint8Array expected");if(g.length>0&&!g.includes(y.length))throw new Error("Uint8Array expected of length "+g+", got length="+y.length)}function u(y){if(typeof y!="function"||typeof y.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");s(y.outputLen),s(y.blockLen)}function c(y,g=!0){if(y.destroyed)throw new Error("Hash instance has been destroyed");if(g&&y.finished)throw new Error("Hash#digest() has already been called")}function a(y,g){d(y);const I=g.outputLen;if(y.length<I)throw new Error("digestInto() expects output buffer of length at least "+I)}function o(y){return new Uint8Array(y.buffer,y.byteOffset,y.byteLength)}function f(y){return new Uint32Array(y.buffer,y.byteOffset,Math.floor(y.byteLength/4))}function r(...y){for(let g=0;g<y.length;g++)y[g].fill(0)}function i(y){return new DataView(y.buffer,y.byteOffset,y.byteLength)}function l(y,g){return y<<32-g|y>>>g}function h(y,g){return y<<g|y>>>32-g>>>0}e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function b(y){return y<<24&4278190080|y<<8&16711680|y>>>8&65280|y>>>24&255}e.swap8IfBE=e.isLE?y=>y:y=>b(y),e.byteSwapIfBE=e.swap8IfBE;function v(y){for(let g=0;g<y.length;g++)y[g]=b(y[g]);return y}e.swap32IfBE=e.isLE?y=>y:v;const N=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",L=Array.from({length:256},(y,g)=>g.toString(16).padStart(2,"0"));function z(y){if(d(y),N)return y.toHex();let g="";for(let I=0;I<y.length;I++)g+=L[y[I]];return g}const K={_0:48,_9:57,A:65,F:70,a:97,f:102};function $(y){if(y>=K._0&&y<=K._9)return y-K._0;if(y>=K.A&&y<=K.F)return y-(K.A-10);if(y>=K.a&&y<=K.f)return y-(K.a-10)}function S(y){if(typeof y!="string")throw new Error("hex string expected, got "+typeof y);if(N)return Uint8Array.fromHex(y);const g=y.length,I=g/2;if(g%2)throw new Error("hex string expected, got unpadded hex of length "+g);const C=new Uint8Array(I);for(let q=0,m=0;q<I;q++,m+=2){const E=$(y.charCodeAt(m)),_=$(y.charCodeAt(m+1));if(E===void 0||_===void 0){const J=y[m]+y[m+1];throw new Error('hex string expected, got non-hex character "'+J+'" at index '+m)}C[q]=E*16+_}return C}const j=async()=>{};e.nextTick=j;async function H(y,g,I){let C=Date.now();for(let q=0;q<y;q++){I(q);const m=Date.now()-C;m>=0&&m<g||(await(0,e.nextTick)(),C+=m)}}function P(y){if(typeof y!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(y))}function O(y){return new TextDecoder().decode(y)}function p(y){return typeof y=="string"&&(y=P(y)),d(y),y}function R(y){return typeof y=="string"&&(y=P(y)),d(y),y}function G(...y){let g=0;for(let C=0;C<y.length;C++){const q=y[C];d(q),g+=q.length}const I=new Uint8Array(g);for(let C=0,q=0;C<y.length;C++){const m=y[C];I.set(m,q),q+=m.length}return I}function A(y,g){if(g!==void 0&&{}.toString.call(g)!=="[object Object]")throw new Error("options should be object or undefined");return Object.assign(y,g)}class B{}e.Hash=B;function x(y){const g=C=>y().update(p(C)).digest(),I=y();return g.outputLen=I.outputLen,g.blockLen=I.blockLen,g.create=()=>y(),g}function V(y){const g=(C,q)=>y(q).update(p(C)).digest(),I=y({});return g.outputLen=I.outputLen,g.blockLen=I.blockLen,g.create=C=>y(C),g}function M(y){const g=(C,q)=>y(q).update(p(C)).digest(),I=y({});return g.outputLen=I.outputLen,g.blockLen=I.blockLen,g.create=C=>y(C),g}e.wrapConstructor=x,e.wrapConstructorWithOpts=V,e.wrapXOFConstructorWithOpts=M;function k(y=32){if(t.crypto&&typeof t.crypto.getRandomValues=="function")return t.crypto.getRandomValues(new Uint8Array(y));if(t.crypto&&typeof t.crypto.randomBytes=="function")return Uint8Array.from(t.crypto.randomBytes(y));throw new Error("crypto.getRandomValues must be defined")}})(dn)),dn}var Ji;function Pc(){if(Ji)return Te;Ji=1,Object.defineProperty(Te,"__esModule",{value:!0}),Te.aoutput=Te.anumber=Te.aexists=Te.abytes=void 0;const e=Ot();return Te.abytes=e.abytes,Te.aexists=e.aexists,Te.anumber=e.anumber,Te.aoutput=e.aoutput,Te}var Gi;function zo(){return Gi||(Gi=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.assertBytes=e.assertBool=e.utf8ToBytes=e.toHex=e.createView=e.concatBytes=e.bytesToHex=void 0,e.bytesToUtf8=u,e.hexToBytes=c,e.equalsBytes=a,e.wrapHash=o;const t=Cc();Object.defineProperty(e,"assertBool",{enumerable:!0,get:function(){return t.abool}});const n=Pc();Object.defineProperty(e,"assertBytes",{enumerable:!0,get:function(){return n.abytes}});const s=Ot();var d=Ot();Object.defineProperty(e,"bytesToHex",{enumerable:!0,get:function(){return d.bytesToHex}}),Object.defineProperty(e,"concatBytes",{enumerable:!0,get:function(){return d.concatBytes}}),Object.defineProperty(e,"createView",{enumerable:!0,get:function(){return d.createView}}),Object.defineProperty(e,"toHex",{enumerable:!0,get:function(){return d.bytesToHex}}),Object.defineProperty(e,"utf8ToBytes",{enumerable:!0,get:function(){return d.utf8ToBytes}});function u(f){if(!(f instanceof Uint8Array))throw new TypeError(`bytesToUtf8 expected Uint8Array, got ${typeof f}`);return new TextDecoder().decode(f)}function c(f){const r=f.startsWith("0x")?f.substring(2):f;return(0,s.hexToBytes)(r)}function a(f,r){if(f.length!==r.length)return!1;for(let i=0;i<f.length;i++)if(f[i]!==r[i])return!1;return!0}function o(f){return r=>((0,n.abytes)(r),f(r))}})(ln)),ln}var Xi;function vt(){if(Xi)return Ae;Xi=1,Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.compare=Ae.concat=Ae.toHex=Ae.toBytes=void 0;const e=zo();function t(u){return u instanceof Uint8Array?u:typeof u=="string"?(0,e.hexToBytes)(u):new Uint8Array(u)}Ae.toBytes=t;function n(u){return typeof u=="string"?((0,e.hexToBytes)(u),u.replace(/^(0x)?/,"0x")):u instanceof Uint8Array?"0x"+(0,e.bytesToHex)(u):"0x"+(0,e.bytesToHex)(new Uint8Array(u))}Ae.toHex=n;function s(u){return(0,e.concatBytes)(...u.map(t))}Ae.concat=s;function d(u,c){const a=BigInt(n(u))-BigInt(n(c));return a>0?1:a<0?-1:0}return Ae.compare=d,Ae}var ge={},qe={},je={},ne={},Z={},Wi;function Oc(){if(Wi)return Z;Wi=1,Object.defineProperty(Z,"__esModule",{value:!0}),Z.toBig=Z.shrSL=Z.shrSH=Z.rotrSL=Z.rotrSH=Z.rotrBL=Z.rotrBH=Z.rotr32L=Z.rotr32H=Z.rotlSL=Z.rotlSH=Z.rotlBL=Z.rotlBH=Z.add5L=Z.add5H=Z.add4L=Z.add4H=Z.add3L=Z.add3H=void 0,Z.add=L,Z.fromBig=n,Z.split=s;const e=BigInt(2**32-1),t=BigInt(32);function n(O,p=!1){return p?{h:Number(O&e),l:Number(O>>t&e)}:{h:Number(O>>t&e)|0,l:Number(O&e)|0}}function s(O,p=!1){const R=O.length;let G=new Uint32Array(R),A=new Uint32Array(R);for(let B=0;B<R;B++){const{h:x,l:V}=n(O[B],p);[G[B],A[B]]=[x,V]}return[G,A]}const d=(O,p)=>BigInt(O>>>0)<<t|BigInt(p>>>0);Z.toBig=d;const u=(O,p,R)=>O>>>R;Z.shrSH=u;const c=(O,p,R)=>O<<32-R|p>>>R;Z.shrSL=c;const a=(O,p,R)=>O>>>R|p<<32-R;Z.rotrSH=a;const o=(O,p,R)=>O<<32-R|p>>>R;Z.rotrSL=o;const f=(O,p,R)=>O<<64-R|p>>>R-32;Z.rotrBH=f;const r=(O,p,R)=>O>>>R-32|p<<64-R;Z.rotrBL=r;const i=(O,p)=>p;Z.rotr32H=i;const l=(O,p)=>O;Z.rotr32L=l;const h=(O,p,R)=>O<<R|p>>>32-R;Z.rotlSH=h;const b=(O,p,R)=>p<<R|O>>>32-R;Z.rotlSL=b;const v=(O,p,R)=>p<<R-32|O>>>64-R;Z.rotlBH=v;const N=(O,p,R)=>O<<R-32|p>>>64-R;Z.rotlBL=N;function L(O,p,R,G){const A=(p>>>0)+(G>>>0);return{h:O+R+(A/2**32|0)|0,l:A|0}}const z=(O,p,R)=>(O>>>0)+(p>>>0)+(R>>>0);Z.add3L=z;const K=(O,p,R,G)=>p+R+G+(O/2**32|0)|0;Z.add3H=K;const $=(O,p,R,G)=>(O>>>0)+(p>>>0)+(R>>>0)+(G>>>0);Z.add4L=$;const S=(O,p,R,G,A)=>p+R+G+A+(O/2**32|0)|0;Z.add4H=S;const j=(O,p,R,G,A)=>(O>>>0)+(p>>>0)+(R>>>0)+(G>>>0)+(A>>>0);Z.add5L=j;const H=(O,p,R,G,A,B)=>p+R+G+A+B+(O/2**32|0)|0;Z.add5H=H;const P={fromBig:n,split:s,toBig:d,shrSH:u,shrSL:c,rotrSH:a,rotrSL:o,rotrBH:f,rotrBL:r,rotr32H:i,rotr32L:l,rotlSH:h,rotlSL:b,rotlBH:v,rotlBL:N,add:L,add3L:z,add3H:K,add4L:$,add4H:S,add5H:H,add5L:j};return Z.default=P,Z}var Ki;function kc(){if(Ki)return ne;Ki=1,Object.defineProperty(ne,"__esModule",{value:!0}),ne.shake256=ne.shake128=ne.keccak_512=ne.keccak_384=ne.keccak_256=ne.keccak_224=ne.sha3_512=ne.sha3_384=ne.sha3_256=ne.sha3_224=ne.Keccak=void 0,ne.keccakP=N;const e=Oc(),t=Ot(),n=BigInt(0),s=BigInt(1),d=BigInt(2),u=BigInt(7),c=BigInt(256),a=BigInt(113),o=[],f=[],r=[];for(let $=0,S=s,j=1,H=0;$<24;$++){[j,H]=[H,(2*j+3*H)%5],o.push(2*(5*H+j)),f.push(($+1)*($+2)/2%64);let P=n;for(let O=0;O<7;O++)S=(S<<s^(S>>u)*a)%c,S&d&&(P^=s<<(s<<BigInt(O))-s);r.push(P)}const i=(0,e.split)(r,!0),l=i[0],h=i[1],b=($,S,j)=>j>32?(0,e.rotlBH)($,S,j):(0,e.rotlSH)($,S,j),v=($,S,j)=>j>32?(0,e.rotlBL)($,S,j):(0,e.rotlSL)($,S,j);function N($,S=24){const j=new Uint32Array(10);for(let H=24-S;H<24;H++){for(let p=0;p<10;p++)j[p]=$[p]^$[p+10]^$[p+20]^$[p+30]^$[p+40];for(let p=0;p<10;p+=2){const R=(p+8)%10,G=(p+2)%10,A=j[G],B=j[G+1],x=b(A,B,1)^j[R],V=v(A,B,1)^j[R+1];for(let M=0;M<50;M+=10)$[p+M]^=x,$[p+M+1]^=V}let P=$[2],O=$[3];for(let p=0;p<24;p++){const R=f[p],G=b(P,O,R),A=v(P,O,R),B=o[p];P=$[B],O=$[B+1],$[B]=G,$[B+1]=A}for(let p=0;p<50;p+=10){for(let R=0;R<10;R++)j[R]=$[p+R];for(let R=0;R<10;R++)$[p+R]^=~j[(R+2)%10]&j[(R+4)%10]}$[0]^=l[H],$[1]^=h[H]}(0,t.clean)(j)}class L extends t.Hash{constructor(S,j,H,P=!1,O=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=S,this.suffix=j,this.outputLen=H,this.enableXOF=P,this.rounds=O,(0,t.anumber)(H),!(0<S&&S<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,t.u32)(this.state)}clone(){return this._cloneInto()}keccak(){(0,t.swap32IfBE)(this.state32),N(this.state32,this.rounds),(0,t.swap32IfBE)(this.state32),this.posOut=0,this.pos=0}update(S){(0,t.aexists)(this),S=(0,t.toBytes)(S),(0,t.abytes)(S);const{blockLen:j,state:H}=this,P=S.length;for(let O=0;O<P;){const p=Math.min(j-this.pos,P-O);for(let R=0;R<p;R++)H[this.pos++]^=S[O++];this.pos===j&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:S,suffix:j,pos:H,blockLen:P}=this;S[H]^=j,(j&128)!==0&&H===P-1&&this.keccak(),S[P-1]^=128,this.keccak()}writeInto(S){(0,t.aexists)(this,!1),(0,t.abytes)(S),this.finish();const j=this.state,{blockLen:H}=this;for(let P=0,O=S.length;P<O;){this.posOut>=H&&this.keccak();const p=Math.min(H-this.posOut,O-P);S.set(j.subarray(this.posOut,this.posOut+p),P),this.posOut+=p,P+=p}return S}xofInto(S){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(S)}xof(S){return(0,t.anumber)(S),this.xofInto(new Uint8Array(S))}digestInto(S){if((0,t.aoutput)(S,this),this.finished)throw new Error("digest() was already called");return this.writeInto(S),this.destroy(),S}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,t.clean)(this.state)}_cloneInto(S){const{blockLen:j,suffix:H,outputLen:P,rounds:O,enableXOF:p}=this;return S||(S=new L(j,H,P,p,O)),S.state32.set(this.state32),S.pos=this.pos,S.posOut=this.posOut,S.finished=this.finished,S.rounds=O,S.suffix=H,S.outputLen=P,S.enableXOF=p,S.destroyed=this.destroyed,S}}ne.Keccak=L;const z=($,S,j)=>(0,t.createHasher)(()=>new L(S,$,j));ne.sha3_224=z(6,144,224/8),ne.sha3_256=z(6,136,256/8),ne.sha3_384=z(6,104,384/8),ne.sha3_512=z(6,72,512/8),ne.keccak_224=z(1,144,224/8),ne.keccak_256=z(1,136,256/8),ne.keccak_384=z(1,104,384/8),ne.keccak_512=z(1,72,512/8);const K=($,S,j)=>(0,t.createXOFer)((H={})=>new L(S,$,H.dkLen===void 0?j:H.dkLen,!0));return ne.shake128=K(31,168,128/8),ne.shake256=K(31,136,256/8),ne}var Yi;function Bc(){if(Yi)return je;Yi=1,Object.defineProperty(je,"__esModule",{value:!0}),je.keccak512=je.keccak384=je.keccak256=je.keccak224=void 0;const e=kc(),t=zo();return je.keccak224=(0,t.wrapHash)(e.keccak_224),je.keccak256=(()=>{const n=(0,t.wrapHash)(e.keccak_256);return n.create=e.keccak_256.create,n})(),je.keccak384=(0,t.wrapHash)(e.keccak_384),je.keccak512=(0,t.wrapHash)(e.keccak_512),je}var Zi;function Jo(){if(Zi)return qe;Zi=1,Object.defineProperty(qe,"__esModule",{value:!0}),qe.standardNodeHash=qe.standardLeafHash=qe.keccak256=void 0;const e=Fo(),t=Bc(),n=vt();function s(c){return(0,n.toHex)((0,t.keccak256)((0,n.toBytes)(c)))}qe.keccak256=s;function d(c,a){return s(s((0,e.encode)(c,a)))}qe.standardLeafHash=d;function u(c,a){return s((0,n.concat)([c,a].sort(n.compare)))}return qe.standardNodeHash=u,qe}var Se={},Qi;function Ut(){if(Qi)return Se;Qi=1,Object.defineProperty(Se,"__esModule",{value:!0}),Se.invariant=Se.validateArgument=Se.InvalidArgumentError=Se.InvariantError=Se.throwError=void 0;function e(u){throw new Error(u)}Se.throwError=e;class t extends Error{constructor(c){super(c),this.name="InvariantError"}}Se.InvariantError=t;class n extends Error{constructor(c){super(c),this.name="InvalidArgumentError"}}Se.InvalidArgumentError=n;function s(u,c){if(!u)throw new n(c)}Se.validateArgument=s;function d(u,c){if(!u)throw new t(c)}return Se.invariant=d,Se}var eo;function Fn(){if(eo)return ge;eo=1,Object.defineProperty(ge,"__esModule",{value:!0}),ge.renderMerkleTree=ge.isValidMerkleTree=ge.processMultiProof=ge.getMultiProof=ge.processProof=ge.getProof=ge.makeMerkleTree=void 0;const e=vt(),t=Jo(),n=Ut(),s=$=>2*$+1,d=$=>2*$+2,u=$=>$>0?Math.floor(($-1)/2):(0,n.throwError)("Root has no parent"),c=$=>$>0?$-(-1)**($%2):(0,n.throwError)("Root has no siblings"),a=($,S)=>S>=0&&S<$.length,o=($,S)=>a($,s(S)),f=($,S)=>a($,S)&&!o($,S),r=$=>(0,e.toBytes)($).length===32,i=($,S)=>void(f($,S)||(0,n.throwError)("Index is not a leaf")),l=$=>void(r($)||(0,n.throwError)("Merkle tree nodes must be Uint8Array of length 32"));function h($,S=t.standardNodeHash){$.forEach(l),(0,n.validateArgument)($.length!==0,"Expected non-zero number of leaves");const j=new Array(2*$.length-1);for(const[H,P]of $.entries())j[j.length-1-H]=(0,e.toHex)(P);for(let H=j.length-1-$.length;H>=0;H--)j[H]=S(j[s(H)],j[d(H)]);return j}ge.makeMerkleTree=h;function b($,S){i($,S);const j=[];for(;S>0;)j.push((0,e.toHex)($[c(S)])),S=u(S);return j}ge.getProof=b;function v($,S,j=t.standardNodeHash){return l($),S.forEach(l),(0,e.toHex)(S.reduce(j,$))}ge.processProof=v;function N($,S){S.forEach(O=>i($,O)),S.sort((O,p)=>p-O),(0,n.validateArgument)(S.slice(1).every((O,p)=>O!==S[p]),"Cannot prove duplicated index");const j=Array.from(S),H=[],P=[];for(;j.length>0&&j[0]>0;){const O=j.shift(),p=c(O),R=u(O);p===j[0]?(P.push(!0),j.shift()):(P.push(!1),H.push((0,e.toHex)($[p]))),j.push(R)}return S.length===0&&H.push((0,e.toHex)($[0])),{leaves:S.map(O=>(0,e.toHex)($[O])),proof:H,proofFlags:P}}ge.getMultiProof=N;function L($,S=t.standardNodeHash){$.leaves.forEach(l),$.proof.forEach(l),(0,n.validateArgument)($.proof.length>=$.proofFlags.filter(P=>!P).length,"Invalid multiproof format"),(0,n.validateArgument)($.leaves.length+$.proof.length===$.proofFlags.length+1,"Provided leaves and multiproof are not compatible");const j=Array.from($.leaves),H=Array.from($.proof);for(const P of $.proofFlags){const O=j.shift(),p=P?j.shift():H.shift();(0,n.invariant)(O!==void 0&&p!==void 0),j.push(S(O,p))}return(0,n.invariant)(j.length+H.length===1),(0,e.toHex)(j.pop()??H.shift())}ge.processMultiProof=L;function z($,S=t.standardNodeHash){for(const[j,H]of $.entries()){if(!r(H))return!1;const P=s(j),O=d(j);if(O>=$.length){if(P<$.length)return!1}else if((0,e.compare)(H,S($[P],$[O])))return!1}return $.length>0}ge.isValidMerkleTree=z;function K($){(0,n.validateArgument)($.length!==0,"Expected non-zero number of nodes");const S=[[0,[]]],j=[];for(;S.length>0;){const[H,P]=S.pop();j.push(P.slice(0,-1).map(O=>[" ","│ "][O]).join("")+P.slice(-1).map(O=>["└─ ","├─ "][O]).join("")+H+") "+(0,e.toHex)($[H])),d(H)<$.length&&(S.push([d(H),P.concat(0)]),S.push([s(H),P.concat(1)]))}return j.join(`
|
|
4
4
|
`)}return ge.renderMerkleTree=K,ge}var ut={},lt={},to;function Lc(){return to||(to=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.defaultOptions=void 0,lt.defaultOptions={sortLeaves:!0}),lt}var ro;function Go(){if(ro)return ut;ro=1,Object.defineProperty(ut,"__esModule",{value:!0}),ut.MerkleTreeImpl=void 0;const e=vt(),t=Fn(),n=Lc(),s=Ut();class d{constructor(c,a,o,f){this.tree=c,this.values=a,this.leafHash=o,this.nodeHash=f,(0,s.validateArgument)(a.every(({value:r})=>typeof r!="number"),"Leaf values cannot be numbers"),this.hashLookup=Object.fromEntries(a.map(({treeIndex:r},i)=>[c[r],i]))}static prepare(c,a={},o,f){const r=a.sortLeaves??n.defaultOptions.sortLeaves,i=c.map((b,v)=>({value:b,valueIndex:v,hash:o(b)}));r&&i.sort((b,v)=>(0,e.compare)(b.hash,v.hash));const l=(0,t.makeMerkleTree)(i.map(b=>b.hash),f),h=c.map(b=>({value:b,treeIndex:0}));for(const[b,{valueIndex:v}]of i.entries())h[v].treeIndex=l.length-b-1;return[l,h]}get root(){return this.tree[0]}get length(){return this.values.length}at(c){var a;return(a=this.values.at(c))==null?void 0:a.value}render(){return(0,t.renderMerkleTree)(this.tree)}*entries(){for(const[c,{value:a}]of this.values.entries())yield[c,a]}validate(){this.values.forEach((c,a)=>this._validateValueAt(a)),(0,s.invariant)((0,t.isValidMerkleTree)(this.tree,this.nodeHash),"Merkle tree is invalid")}leafLookup(c){const a=this.hashLookup[this.leafHash(c)];return(0,s.validateArgument)(typeof a<"u","Leaf is not in tree"),a}getProof(c){const a=typeof c=="number"?c:this.leafLookup(c);this._validateValueAt(a);const{treeIndex:o}=this.values[a],f=(0,t.getProof)(this.tree,o);return(0,s.invariant)(this._verify(this.tree[o],f),"Unable to prove value"),f}getMultiProof(c){const a=c.map(r=>typeof r=="number"?r:this.leafLookup(r));for(const r of a)this._validateValueAt(r);const o=a.map(r=>this.values[r].treeIndex),f=(0,t.getMultiProof)(this.tree,o);return(0,s.invariant)(this._verifyMultiProof(f),"Unable to prove values"),{leaves:f.leaves.map(r=>this.values[this.hashLookup[r]].value),proof:f.proof,proofFlags:f.proofFlags}}verify(c,a){return this._verify(this._leafHash(c),a)}verifyMultiProof(c){return this._verifyMultiProof({leaves:c.leaves.map(a=>this._leafHash(a)),proof:c.proof,proofFlags:c.proofFlags})}_validateValueAt(c){const a=this.values[c];(0,s.validateArgument)(a!==void 0,"Index out of bounds"),(0,s.invariant)(this.tree[a.treeIndex]===this.leafHash(a.value),"Merkle tree does not contain the expected value")}_leafHash(c){if(typeof c=="number"){const a=this.values[c];(0,s.validateArgument)(a!==void 0,"Index out of bounds"),c=a.value}return this.leafHash(c)}_verify(c,a){return this.root===(0,t.processProof)(c,a,this.nodeHash)}_verifyMultiProof(c){return this.root===(0,t.processMultiProof)(c,this.nodeHash)}}return ut.MerkleTreeImpl=d,ut}var no;function Nc(){if(no)return Ue;no=1,Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.SimpleMerkleTree=Ue.formatLeaf=void 0;const e=Fo(),t=vt(),n=Fn(),s=Go(),d=Ut();function u(a){return(0,t.toHex)((0,e.encode)(["bytes32"],[a]))}Ue.formatLeaf=u;class c extends s.MerkleTreeImpl{static of(o,f={}){const[r,i]=s.MerkleTreeImpl.prepare(o,f,u,f.nodeHash);return new c(r,i,u,f.nodeHash)}static load(o,f){(0,d.validateArgument)(o.format==="simple-v1",`Unknown format '${o.format}'`),(0,d.validateArgument)(f==null!=(o.hash=="custom"),f?"Data does not expect a custom node hashing function":"Data expects a custom node hashing function");const r=new c(o.tree,o.values,u,f);return r.validate(),r}static verify(o,f,r,i){return(0,t.toHex)(o)===(0,n.processProof)(u(f),r,i)}static verifyMultiProof(o,f,r){return(0,t.toHex)(o)===(0,n.processMultiProof)(f,r)}dump(){return{format:"simple-v1",tree:this.tree,values:this.values.map(({value:o,treeIndex:f})=>({value:(0,t.toHex)(o),treeIndex:f})),...this.nodeHash?{hash:"custom"}:{}}}}return Ue.SimpleMerkleTree=c,Ue}var dt={},so;function Mc(){if(so)return dt;so=1,Object.defineProperty(dt,"__esModule",{value:!0}),dt.StandardMerkleTree=void 0;const e=vt(),t=Fn(),n=Go(),s=Jo(),d=Ut();class u extends n.MerkleTreeImpl{constructor(a,o,f){super(a,o,r=>(0,s.standardLeafHash)(f,r)),this.tree=a,this.values=o,this.leafEncoding=f}static of(a,o,f={}){const[r,i]=n.MerkleTreeImpl.prepare(a,f,l=>(0,s.standardLeafHash)(o,l));return new u(r,i,o)}static load(a){(0,d.validateArgument)(a.format==="standard-v1",`Unknown format '${a.format}'`),(0,d.validateArgument)(a.leafEncoding!==void 0,"Expected leaf encoding");const o=new u(a.tree,a.values,a.leafEncoding);return o.validate(),o}static verify(a,o,f,r){return(0,e.toHex)(a)===(0,t.processProof)((0,s.standardLeafHash)(o,f),r)}static verifyMultiProof(a,o,f){return(0,e.toHex)(a)===(0,t.processMultiProof)({leaves:f.leaves.map(r=>(0,s.standardLeafHash)(o,r)),proof:f.proof,proofFlags:f.proofFlags})}dump(){return{format:"standard-v1",leafEncoding:this.leafEncoding,tree:this.tree,values:this.values}}}return dt.StandardMerkleTree=u,dt}var io;function qc(){return io||(io=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.StandardMerkleTree=e.SimpleMerkleTree=void 0;var t=Nc();Object.defineProperty(e,"SimpleMerkleTree",{enumerable:!0,get:function(){return t.SimpleMerkleTree}});var n=Mc();Object.defineProperty(e,"StandardMerkleTree",{enumerable:!0,get:function(){return n.StandardMerkleTree}})})(Gt)),Gt}var Hc=qc();const Xo=1,Wo=5,Ko=70,Dc=720*60*60*1e3,Yo=1e6,oo={couponManager:"0x3fd3056ee72a2a85e9392fab3a450e7736536081",collectionDiscountCoupon:"0xc914507fe297b2dddd1232ac3a8903f1c125e794"};function Zo(e){try{const t=Vt(Ft.CouponManager,e),n=Vt(Ft.CollectionDiscountCoupon,e);return{couponManager:{address:t.address,name:t.name,version:t.version,abi:t.abi},collectionDiscountCoupon:n.address}}catch{if(e!==Tn.ChainId.MATIC_MAINNET)return null;const{abi:t}=Vt(Ft.CouponManager,Tn.ChainId.MATIC_AMOY);return{couponManager:{address:oo.couponManager,name:"CouponManager",version:"1.0.0",abi:t},collectionDiscountCoupon:oo.collectionDiscountCoupon}}}function zn(e){return[...new Set(e.map(t=>t.toLowerCase()))]}function Uc(e){const t=zn(e);if(t.length===0)throw new He("collections");return Hc.StandardMerkleTree.of(t.map(n=>[n]),["address"]).root}function Qo(e,t){return wa.encode(["uint256","uint256","bytes32"],[Xo,e,t])}function Vc(){return{Coupon:[{name:"checks",type:"Checks"},{name:"couponAddress",type:"address"},{name:"data",type:"bytes"}],Checks:Qn.Checks,ExternalCheck:Qn.ExternalCheck}}const kt=e=>Math.floor(e/1e3);function Fc(e,t){return{name:t.couponManager.name,version:t.couponManager.version,salt:bt(Co(e),32),verifyingContract:t.couponManager.address}}function zc(e,t,n){return{checks:{uses:e.uses,expiration:kt(e.expiration),effective:kt(e.effective),salt:bt(e.salt,32),contractSignatureIndex:e.contractSignatureIndex,signerSignatureIndex:e.signerSignatureIndex,allowedRoot:bt(e.allowedRoot||"0x",32),externalChecks:[]},couponAddress:t,data:n}}class He extends Error{constructor(t){super(`Invalid sale: ${t}`),this.problem=t,this.name="SaleInputError"}}function ea(e,t=Date.now()){if(zn(e.collections).length===0)throw new He("collections");if(!Number.isInteger(e.discountPct)||e.discountPct<Wo||e.discountPct>Ko)throw new He("pct");const n=e.startsAtMs??t;if(!(e.endsAtMs>t)||!(e.endsAtMs>n))throw new He("window");if(e.endsAtMs-Math.max(n,t)>Dc)throw new He("duration");if(e.uses!==void 0&&(!Number.isInteger(e.uses)||e.uses<1))throw new He("uses")}const Jc=["function contractSignatureIndex() view returns (uint256)","function signerSignatureIndex(address) view returns (uint256)"];async function Gc(e,t){const n=new jo(e,Jc,ba()),[s,d]=await Promise.all([n.contractSignatureIndex(),n.signerSignatureIndex(t)]);return{contractSignatureIndex:s.toNumber(),signerSignatureIndex:d.toNumber()}}async function Xc(e,t={}){const n=t.now?t.now():Date.now();ea(e,n);const s=Zo(e.chainId);if(!s)throw new Error(`Coupons are not available on chain ${e.chainId}`);const d=(await e.signer.getAddress()).toLowerCase(),u=zn(e.collections),c=await(t.readIndexes??Gc)(s.couponManager.address,d),a={uses:e.uses??Yo,expiration:e.endsAtMs,effective:e.startsAtMs??n,salt:Co(Ea(32)),contractSignatureIndex:c.contractSignatureIndex,signerSignatureIndex:c.signerSignatureIndex,allowedRoot:"0x",externalChecks:[]},o=e.discountPct*1e4,f=Qo(o,Uc(u)),r=await e.signer._signTypedData(Fc(e.chainId,s),Vc(),zc(a,s.collectionDiscountCoupon,f));return{signer:d,chainId:e.chainId,network:Tn.Network.MATIC,checks:a,couponAddress:s.collectionDiscountCoupon,discountType:Xo,discount:o,collections:u,signature:r}}async function Wc(e,t){const n=await sa(`${xn.marketplaceServerUrl}/v1/coupons`,{method:"POST",identity:t,metadata:{signer:"dcl:marketplace",intent:"dcl:create-coupon"},headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),s=await n.json().catch(()=>({}));if(!n.ok||!s.ok||!s.data)throw new Error(s.message??`postCoupon ${n.status}`);return s.data}async function Kc(e){var s;const t=await fetch(`${xn.marketplaceServerUrl}/v1/coupons?signer=${e.toLowerCase()}`);if(!t.ok)throw(s=t.body)==null||s.cancel(),new Error(`fetchCreatorSales ${t.status}`);return(await t.json()).data??[]}function Yc(e){return e.checks.uses<Yo}function Zc(e,t=Date.now()){return e.status==="cancelled"||e.status==="revoked"||e.status==="exhausted"?e.status:e.checks.expiration<=t?"ended":e.checks.effective>t?"scheduled":"active"}async function Qc(e){const{sale:t,signer:n}=e;await na(n.provider,t.chainId);const s=Zo(t.chainId);if(!s)throw new Error(`Coupons are not available on chain ${t.chainId}`);const d=new jo(s.couponManager.address,s.couponManager.abi,n),u={signature:t.signature,checks:{uses:t.checks.uses,expiration:kt(t.checks.expiration),effective:kt(t.checks.effective),salt:bt(t.checks.salt,32),contractSignatureIndex:t.checks.contractSignatureIndex,signerSignatureIndex:t.checks.signerSignatureIndex,allowedRoot:bt(t.checks.allowedRoot||"0x",32),allowedProof:[],externalChecks:[]},couponAddress:t.couponAddress,data:Qo(t.discount,t.root),callerData:"0x"};return(await(await d.cancelSignature([u],ya(t.chainId))).wait()).transactionHash}function xt(e){return new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(new Date(e))}const ft=W.div`
|
|
@@ -781,4 +781,4 @@ caused by: `+Oo(s,t)):n},Ia=e=>Oo(e,new Set),ko=(e,t,n)=>{if(!(e instanceof Erro
|
|
|
781
781
|
color: #d64545;
|
|
782
782
|
}
|
|
783
783
|
`;function qu(e){switch(e){case"active":return D("creatorSale.statusActive");case"scheduled":return D("creatorSale.statusScheduled");case"cancelled":return D("creatorSale.statusCancelled");case"exhausted":return D("creatorSale.statusExhausted");case"revoked":return D("creatorSale.statusRevoked");default:return D("creatorSale.statusEnded")}}function Hu(e){return e.liftPct===null||Math.round(e.liftPct)===0?"flat":e.liftPct>0?"up":"down"}function Du(e){if(e.liftPct===null)return D("creatorSale.liftNoBaseline");const t=Math.round(e.liftPct);if(t===0)return D("creatorSale.liftFlat");const n=t>=1e3?`${Math.round(e.duringPerDay/e.beforePerDay).toLocaleString()}×`:`${Math.abs(t)}%`;return D(t>0?"creatorSale.liftUp":"creatorSale.liftDown",{amount:n})}function sl({sales:e,session:t,names:n,lift:s}){const d=Ro(),[u,c]=oe.useState(null),[a,o]=oe.useState(null),[f,r]=oe.useState([]);async function i(l){o(l.id);try{await Qc({sale:l,signer:t.signer}),r(h=>[...h,l.id]),c(null),Pt("Shop Ended Sale",{sale_id:l.id,discount_pct:l.discount/1e4}),An.success(D("creatorSale.endedToast")),d.invalidateQueries({queryKey:["creator-sales"]}),d.invalidateQueries({queryKey:["shop-items"]}),d.invalidateQueries({queryKey:["catalog-items"]})}catch(h){_o(h,{flow:"creator_sale_end"}),Pt("Shop Sale Failed",{error_code:$o(h),step:"end"}),An.error(Ao(h,D("creatorSale.endError")))}finally{o(null)}}return w.jsx(ju,{"data-testid":"creator-sales",children:e.map(l=>{var z;const h=f.includes(l.id)?"cancelled":Zc(l),b=h==="active"||h==="scheduled",v=l.discount/1e4,N=l.collections.length===1?l.collections[0]:null,L=N?n==null?void 0:n[N.toLowerCase()]:void 0;return w.jsxs(xu,{"data-status":h,"data-testid":"creator-sale",children:[N?w.jsx(Cu,{children:w.jsx(In,{contractAddress:N})}):null,w.jsxs(Pu,{children:[w.jsxs(Ou,{children:[w.jsx(ku,{children:L??D("creatorSale.successBody",{count:l.collections.length,pct:v})}),w.jsx(Bu,{"data-status":h,children:qu(h)})]}),w.jsxs(Lu,{children:[w.jsx(aa,{pct:v}),h==="active"?w.jsx(da,{until:l.checks.expiration}):h==="scheduled"?D("creatorSale.startsOn",{date:xt(l.checks.effective)}):null,Yc(l)?w.jsx("span",{children:D("creatorSale.used",{used:((z=l.state)==null?void 0:z.uses)??0,total:l.checks.uses})}):null,s!=null&&s[l.id]?w.jsx(To,{content:D("creatorSale.liftHint"),children:w.jsx(Mu,{"data-dir":Hu(s[l.id]),"data-testid":"creator-sale-lift",children:Du(s[l.id])})}):null]})]}),b?u===l.id?w.jsxs(Nu,{children:[w.jsx(Jt,{variant:"red",size:"sm",disabled:a===l.id,onClick:()=>void i(l),"data-testid":"creator-sale-end-confirm",children:a===l.id?D("creatorSale.ending"):D("creatorSale.confirmEnd")}),w.jsx(Jt,{variant:"ghost",size:"sm",disabled:a===l.id,onClick:()=>c(null),children:D("creatorSale.keepSale")})]}):w.jsx(Jt,{variant:"outline",size:"sm",onClick:()=>c(l.id),"data-testid":"creator-sale-end",children:D("creatorSale.endSale")}):null]},l.id)})})}function il(e,t=!0){return ca({queryKey:["creator-sales",e==null?void 0:e.toLowerCase()],queryFn:()=>Kc(e),enabled:!!e&&t,staleTime:3e4,refetchInterval:6e4})}export{sl as C,rl as a,nl as t,il as u};
|
|
784
|
-
//# sourceMappingURL=useCreatorSales-
|
|
784
|
+
//# sourceMappingURL=useCreatorSales-Ze3V5ohC.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{az as b,aA as x,aB as p,aC as N,aD as y}from"./index-
|
|
2
|
-
//# sourceMappingURL=useInfiniteGrid-
|
|
1
|
+
import{az as b,aA as x,aB as p,aC as N,aD as y}from"./index-COio6Ejd.js";import"./react-BmPeg6sG.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="39f555b2-006d-4e8e-a520-608c0658bbbc",e._sentryDebugIdIdentifier="sentry-dbid-39f555b2-006d-4e8e-a520-608c0658bbbc")}catch{}})();var v=class extends b{constructor(e,r){super(e,r)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,r){var P,l;const{state:i}=e,t=super.createResult(e,r),{isFetching:o,isRefetching:g,isError:n,isRefetchError:h}=t,a=(l=(P=i.fetchMeta)==null?void 0:P.fetchMore)==null?void 0:l.direction,s=n&&a==="forward",u=o&&a==="forward",c=n&&a==="backward",d=o&&a==="backward";return{...t,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:p(r,i.data),hasPreviousPage:x(r,i.data),isFetchNextPageError:s,isFetchingNextPage:u,isFetchPreviousPageError:c,isFetchingPreviousPage:d,isRefetchError:h&&!s&&!c,isRefetching:g&&!u&&!d}}};function m(e,r){return N(e,v)}function E(e,r,i={}){var n,h,a;const t=m({queryKey:e,enabled:i.enabled,queryFn:({pageParam:s})=>r(s),initialPageParam:0,getNextPageParam:(s,u)=>{if(s.items.length===0)return;const c=u.reduce((d,f)=>d+f.items.length,0);return c<s.total?c:void 0},placeholderData:y}),o=(((n=t.data)==null?void 0:n.pages)??[]).flatMap(s=>s.items),g=((a=(h=t.data)==null?void 0:h.pages[0])==null?void 0:a.total)??0;return{items:o,total:g,isLoading:t.isLoading,isPlaceholderData:t.isPlaceholderData,isError:t.isError,error:t.error,hasNextPage:t.hasNextPage,isFetchingNextPage:t.isFetchingNextPage,isFetchNextPageError:t.isFetchNextPageError,fetchNextPage:t.fetchNextPage}}export{E as u};
|
|
2
|
+
//# sourceMappingURL=useInfiniteGrid-D8vhQEzx.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-
|
|
2
|
-
import{_ as h,v as b,c as v,l as _,w as k}from"./index-
|
|
3
|
-
//# sourceMappingURL=useStore-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-D8OXtAip.js","_assets/react-BmPeg6sG.js","_assets/index-B610oYVJ.js","_assets/sentry-CfKEockx.js","_assets/index-D48CxYHB.js","_assets/index-D2gmXgfJ.js","_assets/index-DdpXntwz.js","_assets/ethers-BIoA35Pn.js","_assets/events-DNWUGNd7.js","_assets/dcl-schemas-COntwfiV.js","_assets/DeploymentBuilder-B8n1ixz5.js","_assets/ContentClient-CQ0rZRJX.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as h,v as b,c as v,l as _,w as k}from"./index-COio6Ejd.js";import{d as g}from"./dcl-schemas-COntwfiV.js";import"./react-BmPeg6sG.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="82029cb8-7d5c-4595-9494-5f4c11aa56e6",t._sentryDebugIdIdentifier="sentry-dbid-82029cb8-7d5c-4595-9494-5f4c11aa56e6")}catch{}})();const w=()=>({cover:"",coverHash:"",description:"",links:{website:"",twitter:"",discord:"",facebook:""}}),m=t=>`urn:decentraland:off-chain:marketplace-stores:${t.toLowerCase()}`;function d(t,e){var n;const o=((n=t==null?void 0:t.find(r=>r.name===e))==null?void 0:n.url)??"";return o.startsWith("https://")?o:""}async function E(t){var e,o,n;try{const r=await fetch(`${v.peerUrl}/content/entities/active`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pointers:[m(t)]})});if(!r.ok)return w();const i=await r.json(),s=i==null?void 0:i[0];if(!(s!=null&&s.metadata))return w();const{metadata:c,content:l}=s,u=(o=(e=c.images)==null?void 0:e.find(f=>f.name==="cover"))==null?void 0:o.file,p=u?(n=l==null?void 0:l.find(f=>f.file===u))==null?void 0:n.hash:void 0;return{cover:p?`${v.peerUrl}/content/contents/${p}`:"",coverHash:p??"",description:(c.description??"").trim(),links:{website:d(c.links,"website"),twitter:d(c.links,"twitter"),discord:d(c.links,"discord"),facebook:d(c.links,"facebook")}}}catch{return w()}}const I=["website","twitter","discord","facebook"],S={website:"https://",twitter:"https://www.twitter.com/",discord:"https://discord.gg/",facebook:"https://www.facebook.com/"};function U(t){return{cover:t.cover,coverName:t.cover?C(t.cover):"",coverHash:t.coverHash,description:t.description,links:{...t.links}}}const y=new Map;function H(t){let e=y.get(t);return e||(e=(async()=>{const{hashV1:o}=await h(async()=>{const{hashV1:r}=await import("./index-D8OXtAip.js").then(i=>i.i);return{hashV1:r}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])),n=new Uint8Array(await(await fetch(t)).arrayBuffer());return o(n)})(),y.set(t,e)),e}function C(t){return`cover/${decodeURIComponent(t.split("?")[0].split("/").pop()||"")||"cover.jpeg"}`}function $(t,e){return e===""||e.startsWith(S[t])}function L(t,e){const o=t.toLowerCase(),n=I.filter(i=>e.links[i]).map(i=>({name:i,url:e.links[i]})),r=e.cover&&e.coverName?[{name:"cover",file:e.coverName}]:[];return{id:m(o),owner:o,description:e.description,images:r,links:n,version:1}}async function T(t){const e=new Map;if(t.cover&&t.coverName){const o=await fetch(t.cover);e.set(t.coverName,new Uint8Array(await o.arrayBuffer()))}return e}async function A(t,e,o){try{const[{buildEntity:n},{createContentClient:r}]=await Promise.all([h(()=>import("./DeploymentBuilder-B8n1ixz5.js").then(a=>a.D),__vite__mapDeps([10,1,2,3,4,5,6,7,8,9])),h(()=>import("./ContentClient-CQ0rZRJX.js").then(a=>a.C),__vite__mapDeps([11,1,2,3,4,5,6,7,8,9]))]),i=L(t,e),s=await T(e),c=await n({type:g.EntityType.STORE,pointers:[m(t)],files:s,metadata:i,timestamp:Date.now()}),l=b.Authenticator.signPayload(o,c.entityId),u={fetch:(a,f)=>globalThis.fetch(a,f)};await r({url:`${v.peerUrl}/content`,fetcher:u}).deploy({...c,authChain:l})}catch(n){_(n,{flow:"saveStore"});const r=new Error("save-failed");throw r.cause=n,r}}function F(t){return k({queryKey:["store",t==null?void 0:t.toLowerCase()],enabled:!!t,staleTime:5*6e4,queryFn:()=>E(t)})}export{I as L,S as a,U as d,$ as i,A as s,H as t,F as u};
|
|
3
|
+
//# sourceMappingURL=useStore-DdvCUhO-.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./react-
|
|
2
|
-
//# sourceMappingURL=useTheme-
|
|
1
|
+
import"./react-BmPeg6sG.js";import{u as d,o as n,q as f}from"./index-COio6Ejd.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fe6f548d-ca29-4b4e-936b-933702a9fd57",e._sentryDebugIdIdentifier="sentry-dbid-fe6f548d-ca29-4b4e-936b-933702a9fd57")}catch{}})();function u(){const e=d(f);return e[n]||e}export{u};
|
|
2
|
+
//# sourceMappingURL=useTheme-QKnvhO7_.js.map
|