@dcl/shop 0.1.0-30465483842.commit-35256d2 → 0.1.0-30497598696.commit-4ea1dde
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-BeTqkBj9.js → Activity-B_s4shG9.js} +1 -1
- package/assets/{AnimatedBackground-Cn4Zf2W1.js → AnimatedBackground-DB5Ss4ap.js} +1 -1
- package/assets/{Assets-DudI0KEf.js → Assets-DGVOgeRG.js} +2 -2
- package/assets/{Assets.styles-BVt9ny1H.js → Assets.styles-BlqCpVPA.js} +2 -2
- package/assets/{Authorizations-BAz8f3JR.js → Authorizations-ClSgzEm9.js} +1 -1
- package/assets/{Cart-ivYSIGG2.js → Cart-Cr7qdGKk.js} +16 -11
- package/assets/{CircularProgress-CtiP6dpx.js → CircularProgress-KUMU3U08.js} +1 -1
- package/assets/{Collection-DtymV7vw.js → Collection-97efqPC8.js} +1 -1
- package/assets/{CollectionCarousel-cAnwcIFc.js → CollectionCarousel-MJIfHIAG.js} +34 -16
- package/assets/{ConstantsUtil-CtukCvy7.js → ConstantsUtil-Dfwpy1eP.js} +1 -1
- package/assets/{ContentClient-Y4SsAlAh.js → ContentClient-gZyDAKO3.js} +1 -1
- package/assets/{Creator-BXEtxAG-.js → Creator-Bv3gNXme.js} +1 -1
- package/assets/{DeploymentBuilder-GpEcBaRI.js → DeploymentBuilder-DufsvYDr.js} +1 -1
- package/assets/{ErrorNotice-CCmfdXO-.js → ErrorNotice-T3U1x2gM.js} +1 -1
- package/assets/{ExchangeController-DricVZKh.js → ExchangeController-GCK_R7Ey.js} +1 -1
- package/assets/{GetCredits-CteYpfxR.js → GetCredits-BJv8YlhP.js} +1 -1
- package/assets/{HelpersUtil-CGIcCkK_.js → HelpersUtil-DRAzH_Eb.js} +1 -1
- package/assets/{ImportListings-Bbmrn90L.js → ImportListings-X8oBIjzn.js} +27 -13
- package/assets/{ItemDetail-0VoDt4ER.js → ItemDetail-DceF2pIM.js} +278 -276
- package/assets/{LoadMore-C4ahcKGI.js → LoadMore-EzzDujll.js} +1 -1
- package/assets/{MenuList-B2tx2Rax.js → MenuList-DzP2GuNW.js} +1 -1
- package/assets/{MyAssets-CN-grtYY.js → MyAssets-BVAVBC1I.js} +1 -1
- package/assets/{MyFavorites-BbfXGeat.js → MyFavorites-Bwu_IAMr.js} +1 -1
- package/assets/{NetworkUtil-DXqql1Wz.js → NetworkUtil-HlUKXKcF.js} +1 -1
- package/assets/{NotFound-3nwiotnn.js → NotFound-Br6vUFaQ.js} +1 -1
- package/assets/{NotificationsBell-HgkcWigI.js → NotificationsBell-CpzWIV_f.js} +1 -1
- package/assets/{StoreSettings-qabn4ON-.js → StoreSettings-CAGNuG5P.js} +1 -1
- package/assets/{Success-CjzxOGc_.js → Success-DATDpbL1.js} +1 -1
- package/assets/{SwapController-DMsZNMmX.js → SwapController-0Egz5gvE.js} +1 -1
- package/assets/Tooltip-DaxPnuDE.js +45 -0
- package/assets/{TradeService-DPp_8P7A.js → TradeService-DugSIG-T.js} +1 -1
- package/assets/{W3MFrameProviderSingleton-CTol_EUI.js → W3MFrameProviderSingleton-CRyphTNj.js} +3 -3
- package/assets/{WebCryptoP256-DpdlkbHJ.js → WebCryptoP256-DDiLCxeu.js} +1 -1
- package/assets/{authorizations-93IYCFGd.js → authorizations-Dz891X4r.js} +1 -1
- package/assets/{basic-CpElrsn8.js → basic-7T85qGyt.js} +1 -1
- package/assets/{biconomy-DxKbEqvI.js → biconomy-CbuwbQ7f.js} +1 -1
- package/assets/{browseLayout.styles-oJ6cJp3z.js → browseLayout.styles-Cyml9DBN.js} +2 -2
- package/assets/{browser-DxF-qILS.js → browser-BGlawS--.js} +1 -1
- package/assets/browser-ponyfill-B4tSdV4O.js +1 -0
- package/assets/{browser-ponyfill-CxIDDbrC.js → browser-ponyfill-BvriZgAo.js} +1 -1
- package/assets/{builder-BxP8tT4f.js → builder-Di_i0uie.js} +1 -1
- package/assets/{buy-BYXdfz24.js → buy-KTMkFDbF.js} +1 -1
- package/assets/{buy-gasless-BS7n5_qI.js → buy-gasless-Ce5WXr0l.js} +1 -1
- package/assets/{categories-5tCT8xWh.js → categories-BtM8_SSI.js} +1 -1
- package/assets/{ccip-Bl6ljmaH.js → ccip-DNSvOrJz.js} +1 -1
- package/assets/{ccip-D8XoWaW0.js → ccip-NhvY-DuA.js} +1 -1
- package/assets/{chains-Dlj4CXzw.js → chains-DjVUcpdx.js} +1 -1
- package/assets/{clsx-GM87-Mfi.js → clsx-DZSbGRZP.js} +1 -1
- package/assets/{common-B0ixkeRu.js → common-BzdjGk0Y.js} +1 -1
- package/assets/{controller-B9756Ryj.js → controller-2WxetY20.js} +2 -2
- package/assets/{core-CnxuTyuu.js → core-Xele3HnH.js} +4 -4
- package/assets/{createSvgIcon-tZB5vU5t.js → createSvgIcon-CAdQcjOA.js} +1 -1
- package/assets/{custom-BpAwBsCt.js → custom-RQA18iWz.js} +1 -1
- package/assets/{data-capture-CHeYJ3vX.js → data-capture-CZb0JOnd.js} +1 -1
- package/assets/decimals-CTAJwKFW.js +1 -0
- package/assets/{decimals-CqRsKj6U.js → decimals-rMqzXjFU.js} +1 -1
- package/assets/{detectExtension-DX7grDLh.js → detectExtension-0JcORGBX.js} +1 -1
- package/assets/{email-XSD702LD.js → email-DiUkHxNq.js} +1 -1
- package/assets/{embedded-wallet-DXacld5x.js → embedded-wallet-46mRUp3B.js} +1 -1
- package/assets/{emotion-styled.browser.esm-CDVeR2pU.js → emotion-styled.browser.esm-DgGrnFNo.js} +1 -1
- package/assets/{engine-Dh3r5QUk.js → engine-CBrsJEKs.js} +1 -1
- package/assets/{errors-DLr34B3-.js → errors-JUBkzG87.js} +1 -1
- package/assets/estimate-l1-fee-Cs-PSPSm.js +1 -0
- package/assets/eth_estimateGas-BfIHMLbI.js +1 -0
- package/assets/{eth_getStorageAt-E4OzrSEc.js → eth_getStorageAt-DIGus6Ic.js} +1 -1
- package/assets/eth_getTransactionCount-CmmgCgZ1.js +1 -0
- package/assets/{ethereum-CBeS7QFR.js → ethereum-7duKFA0R.js} +1 -1
- package/assets/{ethers--abqWJu6.js → ethers-CpLYx0ea.js} +1 -1
- package/assets/{execute-BjxgVD5q.js → execute-Clg1mM_X.js} +2 -2
- package/assets/{extractIPFS-ChPZSPQw.js → extractIPFS-CTs5XnuT.js} +1 -1
- package/assets/{features-ZVa1PXQo.js → features-iVV39qjI.js} +1 -1
- package/assets/{fetchTokenMetadata-BonGxoWN.js → fetchTokenMetadata-JFitoLaN.js} +2 -2
- package/assets/{fortmatic-HaPICQeD.js → fortmatic-CCMQbesB.js} +1 -1
- package/assets/{get-bytecode-BRKTQsHC.js → get-bytecode-Bg8NviKV.js} +1 -1
- package/assets/get-ecosystem-wallet-info-BbqTZN-t.js +1 -0
- package/assets/{getBalance-D4riIp1B.js → getBalance-BhKN1EHb.js} +2 -2
- package/assets/{getInstalledModules-DbNUTCf0.js → getInstalledModules-KP-LSI0j.js} +1 -1
- package/assets/getNFT-B9xXf-dO.js +1 -0
- package/assets/{getNFT-BZdDzwN-.js → getNFT-CV15WhdD.js} +2 -2
- package/assets/{getThemeProps-_DRrmPGx.js → getThemeProps-D49OFksO.js} +1 -1
- package/assets/{grid.styles-Cw26IyBx.js → grid.styles-beZx-O42.js} +1 -1
- package/assets/{hashTypedData-4FQ0aWPB.js → hashTypedData-BG9Q-Idk.js} +1 -1
- package/assets/{hashTypedData-DjUej2SL.js → hashTypedData-CrzHCRn3.js} +1 -1
- package/assets/{import-BDu1boR-.js → import-4RvqLrjt.js} +1 -1
- package/assets/{in-app-BS6ANRK_.js → in-app-B4RKRM1u.js} +1 -1
- package/assets/{in-app-wallet-calls-DISlGB0f.js → in-app-wallet-calls-CSGbWPV4.js} +1 -1
- package/assets/{index-DGZgLX5H.js → index-3x98-rKq.js} +1 -1
- package/assets/{index-C8dqc2e-.js → index-5RCIEGJN.js} +1 -1
- package/assets/{index-_c5LJlQE.js → index-8EYFemjW.js} +1 -1
- package/assets/index-9H7pG6F1.js +1 -0
- package/assets/{index-BqbJpa0j.js → index-B-Kqr2Lr.js} +1 -1
- package/assets/{index-BJvvuyHt.js → index-B1bBhgOG.js} +1 -1
- package/assets/{index-DbPcoBNe.js → index-B2lClF4r.js} +1 -1
- package/assets/{index-DLR5U5u7.js → index-B5OOzrw0.js} +1 -1
- package/assets/{index-CLqMYMp_.js → index-B6nk66gw.js} +1 -1
- package/assets/{index-BQEI0eWt.js → index-B7ResnK5.js} +1 -1
- package/assets/{index-tvUXHAjm.js → index-B9kD__eY.js} +1 -1
- package/assets/{index-DGHjUc9b.js → index-BEdImmf3.js} +2 -2
- package/assets/{index-CCfTPrm0.js → index-BJQJ6qaf.js} +1 -1
- package/assets/{index-C_NJ5W3Q.js → index-BOF2imBG.js} +1 -1
- package/assets/{index-D19PQguq.js → index-BVMf-qn6.js} +1 -1
- package/assets/{index-gugejC0m.js → index-BVOMemqH.js} +1 -1
- package/assets/{index-BQgkgQ46.js → index-BYE8hYx-.js} +1 -1
- package/assets/{index-798yU1Mw.js → index-BiUDBy6C.js} +1 -1
- package/assets/{index-CLrPXCJt.js → index-BjbR46a4.js} +1 -1
- package/assets/{index-T2XOIIOd.js → index-BtO7iASi.js} +1 -1
- package/assets/{index-OMa8Tj-T.js → index-BvLvK2MW.js} +1 -1
- package/assets/{index-eefVCnI5.js → index-BwPbh62F.js} +1 -1
- package/assets/{index-DMKlwtPQ.js → index-C0sxJ5xX.js} +3 -3
- package/assets/{index-LJjUqlEi.js → index-C6ODV4-L.js} +1 -1
- package/assets/{index-eFPFED8d.js → index-C7yagPy7.js} +1 -1
- package/assets/{index-M7UEwjGY.js → index-C8x4NMNb.js} +1 -1
- package/assets/{index-DQ6JWiqD.js → index-C9aPSlyC.js} +341 -308
- package/assets/{index-zwRq9h0X.js → index-CElkFvVm.js} +1 -1
- package/assets/{index-DoKViOPe.js → index-CIPbxoP5.js} +2 -2
- package/assets/{index-D8oxVq2h.js → index-CK7WvZif.js} +1 -1
- package/assets/{index-BSGQxCOa.js → index-CMgkT5ZH.js} +1 -1
- package/assets/{index-DgrIRrjH.js → index-CcQtz-MR.js} +3 -3
- package/assets/{index-BX3lLNL7.js → index-CcRW7qMf.js} +1 -1
- package/assets/{index-CtOaoAtu.js → index-CemA9uz4.js} +1 -1
- package/assets/{index-CpLfF_C5.js → index-CkI5XL5y.js} +1 -1
- package/assets/{index-Cg7CPUHg.js → index-Co9OL6oW.js} +1 -1
- package/assets/{index-B-BkGVd_.js → index-CpgYRLFY.js} +2 -2
- package/assets/{index-DSiEomXM.js → index-D4_KbPRN.js} +2 -2
- package/assets/{index-DTDCTp2g.js → index-D8e_T9CW.js} +1 -1
- package/assets/{index-CeV-QjPU.js → index-DAo8QTgz.js} +1 -1
- package/assets/{index-DVuMdLqo.js → index-DG4sRlUX.js} +1 -1
- package/assets/{index-BoRS8U2O.js → index-DIDeduvS.js} +1 -1
- package/assets/{index-CbCySxiP.js → index-DJRbW62L.js} +1 -1
- package/assets/{index-BxLxzt3o.js → index-DQqq6tsa.js} +1 -1
- package/assets/{index-DN_GgU69.js → index-DWmHtPGK.js} +1 -1
- package/assets/{index-DOjpmFkl.js → index-Dd-jgJaZ.js} +1 -1
- package/assets/{index-CDthvVRG.js → index-DdaAtig5.js} +1 -1
- package/assets/{index-w01WQ1OT.js → index-DgMAf2q5.js} +1 -1
- package/assets/{index-C_q9eRuG.js → index-DiUUPZT7.js} +1 -1
- package/assets/{index-Dh0Sv0e8.js → index-DjiJYFQu.js} +1 -1
- package/assets/{index-BuvFoyTD.js → index-Dk_pfUan.js} +1 -1
- package/assets/{index-BzdD6V6H.js → index-DlLNQPiR.js} +1 -1
- package/assets/{index-Am_UuYtn.js → index-DlkFYSp0.js} +1 -1
- package/assets/{index-BDJa77HS.js → index-DnQ9kkjE.js} +1 -1
- package/assets/{index-CWWazwi9.js → index-DsXwCxFn.js} +1 -1
- package/assets/{index-B25RdNLD.js → index-DutOGRmD.js} +1 -1
- package/assets/{index-B4kPBdQm.js → index-Ftx7PR7I.js} +1 -1
- package/assets/{index-CwklEm59.js → index-Fyrl3bgj.js} +1 -1
- package/assets/{index-DO6Qu3WW.js → index-Jvvdliqx.js} +3 -3
- package/assets/{index-vHUJJrBU.js → index-LUwrgypY.js} +1 -1
- package/assets/{index-C1Asz4E8.js → index-O5oS9IfZ.js} +1 -1
- package/assets/{index-C7XgriCO.js → index-Rze78fpx.js} +1 -1
- package/assets/index-YUVIXaKh.css +1 -0
- package/assets/{index-d7uAVQJc.js → index-rYXL6QOv.js} +1 -1
- package/assets/{index.es-DF0fPg1w.js → index.es-8XmDF3sU.js} +1 -1
- package/assets/{index.es-DwC36uQk.js → index.es-CDI5J76a.js} +4 -4
- package/assets/{index.es-B7o2FOqd.js → index.es-h__2fQBA.js} +1 -1
- package/assets/{linkAccount-BtAQZlYa.js → linkAccount-D303ryxj.js} +1 -1
- package/assets/{localBatchGatewayRequest-CMQNhumX.js → localBatchGatewayRequest-CNc2tb7Q.js} +1 -1
- package/assets/{mana-convert-DVF4taBh.js → mana-convert-519jIoGv.js} +1 -1
- package/assets/{mana-rate-DghhfRg4.js → mana-rate-C-S8V8OH.js} +1 -1
- package/assets/{native-CPZ4GKee.js → native-BbO8hggJ.js} +1 -1
- package/assets/{networks-CTtxcDaZ.js → networks-CkEF1R2G.js} +1 -1
- package/assets/{onramp-DH1m5q3Z.js → onramp-BkPO4411.js} +1 -1
- package/assets/{openzeppelin-C43jcpbd.js → openzeppelin-BbRuTYZV.js} +1 -1
- package/assets/{ownerOf-DmpjD1-R.js → ownerOf-B0AowHTZ.js} +1 -1
- package/assets/{parseNft-DfOGe9m5.js → parseNft-fkQ67kUG.js} +2 -2
- package/assets/{parseSignature-DikUb694.js → parseSignature-Cd8xeqSc.js} +1 -1
- package/assets/{parseSignature-aw_zZz28.js → parseSignature-DDbo_j_P.js} +3 -3
- package/assets/{passkeys-nBMLF2xb.js → passkeys-C2AoFBHz.js} +1 -1
- package/assets/{pay-with-exchange-BvzhQXq9.js → pay-with-exchange-BZPweYB5.js} +1 -1
- package/assets/{prepare-contract-call-DDzIRXLv.js → prepare-contract-call-BreQKHF6.js} +1 -1
- package/assets/{qr-overlay-DraTWZGb.js → qr-overlay-KdBj8v0r.js} +3 -3
- package/assets/{react-BYHuwl8r.js → react-vyZjIDcS.js} +1 -1
- package/assets/{receive-4VdJwQ5p.js → receive-CFeT9xrk.js} +1 -1
- package/assets/{resolveImplementation-BeIaeyw0.js → resolveImplementation-DBJfh-FY.js} +1 -1
- package/assets/{rpc-BBuy0siA.js → rpc-B2oNfk4l.js} +1 -1
- package/assets/{secp256k1-BB8knln0.js → secp256k1-DB5XegfY.js} +1 -1
- package/assets/{secp256k1-CNxo_fPH.js → secp256k1-DNCmoZeu.js} +1 -1
- package/assets/{secp256k1-vpgDrCPF.js → secp256k1-E5dSGQB7.js} +1 -1
- package/assets/{send-DVC7onZT.js → send-BzZFVa7V.js} +1 -1
- package/assets/{send-batch-transaction-98lAmXJd.js → send-batch-transaction-DmhNrrl2.js} +1 -1
- package/assets/{send-eip712-transaction-Eg93axAQ.js → send-eip712-transaction-Dpp-Tnhx.js} +2 -2
- package/assets/send-gasless-transaction-S-k5TeaE.js +2 -0
- package/assets/{send-transaction-DIVDHo0b.js → send-transaction-B44ZAxgB.js} +2 -2
- package/assets/{sendMetaTransaction-BjStTgy8.js → sendMetaTransaction-Dgxdo_cy.js} +1 -1
- package/assets/{sendRawTransaction-C0hCcwaF.js → sendRawTransaction-Djol22Yy.js} +3 -3
- package/assets/{sentry-Dx-KuLV3.js → sentry-B35L1FdR.js} +1 -1
- package/assets/{serializeTransaction-CTD81sCU.js → serializeTransaction-Dgv65AON.js} +1 -1
- package/assets/{session-proposal-BqbaK0vH.js → session-proposal-DAuPQ12D.js} +1 -1
- package/assets/{session-request-DQi229nq.js → session-request-CBU8H1tR.js} +2 -2
- package/assets/{sha256-CfLwtdyC.js → sha256-NdAeiB0X.js} +1 -1
- package/assets/{signing-C-hS2sII.js → signing-D2AdVilf.js} +3 -3
- package/assets/{socials-CBTjIC0C.js → socials-CuQWRkr5.js} +1 -1
- package/assets/{swaps-BMaKKFJL.js → swaps-LzxNCpsb.js} +1 -1
- package/assets/{thirdweb-gVaYX1Nm.js → thirdweb-B0DOT-R5.js} +3 -3
- package/assets/{to-serializable-transaction-BRT7Q8xs.js → to-serializable-transaction-BeekAn8A.js} +2 -2
- package/assets/{totalSupply-DRNaCAzP.js → totalSupply-BVfGieGk.js} +1 -1
- package/assets/{trade-encoding-BTpnbAqu.js → trade-encoding-BwYos8Ms.js} +1 -1
- package/assets/{transaction-Col-q-Ce.js → transaction-8aHmZ7ni.js} +1 -1
- package/assets/{transactionReceipt-DKKCsI26.js → transactionReceipt-BQu4Oof3.js} +1 -1
- package/assets/{transactions-CadGL-lV.js → transactions-iYCPh2Id.js} +1 -1
- package/assets/{useCreditPacks-B4TLB8Ir.js → useCreditPacks-BN70ICff.js} +1 -1
- package/assets/{useInfiniteGrid-C6HwGwYR.js → useInfiniteGrid-_0aqBjgd.js} +1 -1
- package/assets/useManaRate-BrwJXTcH.js +1 -0
- package/assets/{useSecondarySales-BTqJsuhI.js → useSecondarySales-zW-UzRs8.js} +1 -1
- package/assets/{useStore-BzU6Jh1o.js → useStore-BmRyRgKo.js} +2 -2
- package/assets/useTheme-QSimE3Um.js +1 -0
- package/assets/{utils-BQF5MiO5.js → utils-jd03xFBb.js} +1 -1
- package/assets/{verifyHash-u7AIFmcv.js → verifyHash-DOqRIddZ.js} +1 -1
- package/assets/{w3m-modal-D-H2XJii.js → w3m-modal-ClJX2BXB.js} +1 -1
- package/assets/{w3m-modal-pEA1kWyU.js → w3m-modal-hMvbKBgL.js} +1 -1
- package/assets/{wait-for-tx-receipt-h9USNCLV.js → wait-for-tx-receipt-BZid7VP6.js} +1 -1
- package/assets/{wallets-BwDMgJZD.js → wallets-U_fUqeG7.js} +5 -5
- package/assets/{web-connector-CPZEHhv9.js → web-connector-DT8PRFV7.js} +3 -3
- package/assets/{writeContract-D2343X96.js → writeContract-BHlhXUjY.js} +1 -1
- package/assets/{zora-sepolia-5SAdD430.js → zora-sepolia-Bt1F-uU9.js} +1 -1
- package/assets/{zoraTestnet-C10IoprX.js → zoraTestnet-B0nd7orZ.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/assets/Tooltip-C7o9WgVx.js +0 -48
- package/assets/browser-ponyfill-Bfl4ugg_.js +0 -1
- package/assets/decimals-CMCAWgOh.js +0 -1
- package/assets/estimate-l1-fee-2qvKT5Nf.js +0 -1
- package/assets/eth_estimateGas-BZtzeL48.js +0 -1
- package/assets/eth_getTransactionCount-Ck8bEyl_.js +0 -1
- package/assets/get-ecosystem-wallet-info-BxqcPq0B.js +0 -1
- package/assets/getNFT-D06wHDW0.js +0 -1
- package/assets/index-DCpWUtOQ.css +0 -1
- package/assets/index-DbLpdy-5.js +0 -1
- package/assets/send-gasless-transaction-B7IHL-9x.js +0 -2
- package/assets/useManaRate-iYCZTzak.js +0 -1
- package/assets/useTheme-BoNwKDMf.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as l,b}from"./lit-element-B3y9oplH.js";import{n as r}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-
|
|
1
|
+
import{i as l,b}from"./lit-element-B3y9oplH.js";import{n as r}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-BiUDBy6C.js";import{d as h,r as v,e as f}from"./index-Jvvdliqx.js";const m=h`
|
|
2
2
|
button {
|
|
3
3
|
background-color: transparent;
|
|
4
4
|
padding: ${({spacing:t})=>t[1]};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/native-
|
|
2
|
-
import{p as gt,b as Yt,i as Qt,I as Zt,m as bt,s as ut,A as D,e as Xt,g as U,d as te,f as N,r as ee,h as ae,j as ne,k as re,w as se,n as oe,o as ie,q as ce,t as ue,v as de,u as me,x as Z,y as le,z as fe,B as he,C as $,D as pe,E as ye,F as ge,G as be,H as we,J as xe,K as Ee,L as Ie,M as Te,N as St,O as At,P as Ce,Q as Pt,R as _t,S as Rt,T as ve,U as dt,V as qt,W as Se,X as Ae,Y as Ft,Z as Pe,_ as Ut,$ as K,a0 as _e,a1 as Bt,a2 as Re,a3 as qe,a4 as mt,a5 as Fe,a6 as Ue,a7 as Be,a8 as ke,a9 as Ne,aa as kt,ab as Le}from"./parseSignature-aw_zZz28.js";import{ac as Pr,ad as _r,ae as Rr,af as qr,ag as Fr,ah as Ur,ai as Br,aj as kr,ak as Nr,al as Lr,am as Mr,an as Dr,ao as zr,ap as Gr,aq as $r,ar as Hr,as as Or,at as jr,au as Wr,av as Vr,aw as Kr,ax as Jr,ay as Yr,az as Qr,aA as Zr,aB as Xr,aC as ts,aD as es,aE as as,aF as ns,aG as rs,aH as ss,aI as os,aJ as is,aK as cs,aL as us,aM as ds,aN as ms,aO as ls,aP as fs,aQ as hs,aR as ps,aS as ys,aT as gs,aU as bs,aV as ws,aW as xs,aX as Es,aY as Is,aZ as Ts,a_ as Cs,a$ as vs,b0 as Ss,b1 as As,b2 as Ps,b3 as _s,b4 as Rs,b5 as qs,b6 as Fs,b7 as Us,b8 as Bs,b9 as ks,ba as Ns,bb as Ls,bc as Ms,bd as Ds,be as zs,bf as Gs,bg as $s,bh as Hs,bi as Os,bj as js,bk as Ws,bl as Vs,bm as Ks,bn as Js,bo as Ys,bp as Qs,bq as Zs,br as Xs,bs as to,bt as eo,bu as ao,bv as no,bw as ro,bx as so,by as oo,bz as io,br as co,bA as uo,bB as mo,bC as lo,bD as fo,bE as ho,bF as po,bG as yo,bH as go,bH as bo,bI as wo,bJ as xo,bi as Eo,bj as Io,bK as To,bL as Co,bM as vo,bN as So,bO as Ao}from"./parseSignature-aw_zZz28.js";import{R as k,b3 as B,S as Me,x as Y,a7 as De,w as ze,b4 as Ge,U as H,V as ct,W as G,B as lt,q as E,E as $e,a2 as He,b5 as j,a1 as wt,G as Nt,b6 as Lt,d as Mt,A as R,m as F,b7 as A,C as Oe,I as je,b8 as We,b9 as xt,y as Ve,ba as Ke,bb as Je,bc as Ye,bd as Et}from"./prepare-contract-call-DDzIRXLv.js";import{be as _o,O as Ro,a8 as qo,bf as Fo,bg as Uo,bh as Bo,bi as ko,bj as No,a9 as Lo,bk as Mo,J as Do,M as zo,bl as Go,bm as $o,bn as Ho,F as Oo,Q as jo,N as Wo,bo as Vo,bp as Ko,bq as Jo,br as Yo,bs as Qo,bt as Zo,bu as Xo,bv as ti,bw as ei,bx as ai,by as ni,bz as ri,bA as si,bB as oi,bC as ii,bD as ci,bE as ui,bF as di,bG as mi,bH as li,j as fi,bI as hi,bJ as pi,bK as yi,bL as gi,K as bi,bM as wi,t as xi,bM as Ei,bN as Ii,bO as Ti,bP as Ci,bQ as vi,bR as Si,bS as Ai,bT as Pi,bU as _i,K as Ri,bM as qi,bU as Fi,t as Ui,bM as Bi}from"./prepare-contract-call-DDzIRXLv.js";import{u as ft}from"./to-serializable-transaction-BRT7Q8xs.js";import{b as Ni,B as Li,C as Mi,D as Di,E as zi,m as Gi,n as $i,F as Hi,s as Oi,a as ji}from"./to-serializable-transaction-BRT7Q8xs.js";import{w as Qe,h as Ze,g as Xe,v as ta,s as ea}from"./hashTypedData-DjUej2SL.js";import{I as Vi,a as Ki,b as Ji,d as Yi,c as Qi,e as Zi}from"./hashTypedData-DjUej2SL.js";import{T as aa,a as Q,W as It,b as na,U as ra,R as sa}from"./rpc-BBuy0siA.js";import{A as tc,c as ec,B as ac,C as nc,D as rc,H as sc,I as oc,d as ic,e as cc,f as uc,J as dc,L as mc,M as lc,h as fc,P as hc,i as pc,j as yc,k as gc,l as bc,m as wc,S as xc,n as Ec,o as Ic,p as Tc,q as Cc,r as vc,s as Sc}from"./rpc-BBuy0siA.js";import{_ as oa}from"./index-DQ6JWiqD.js";import{t as ia,H as ca}from"./sha256-CfLwtdyC.js";import{b as Pc,h as _c,a as Rc,c as qc,d as Fc,e as Uc,f as Bc,g as kc,i as Nc,j as Lc,k as Mc,l as Dc,n as zc,o as Gc,p as $c,q as Hc,r as Oc,u as jc,v as Wc,w as Vc,x as Kc,y as Jc,z as Yc,A as Qc,B as Zc,C as Xc,D as tu,E as eu,F as au,G as nu,I as ru,J as su,K as ou,L as iu,M as cu,N as uu,O as du,P as mu,Q as lu,R as fu,S as hu,m as pu,T as yu,U as gu,V as bu,W as wu,X as xu,Y as Eu,Z as Iu,_ as Tu,$ as Cu,a0 as vu,a1 as Su,a2 as Au,a3 as Pu,a4 as _u,a5 as Ru,a6 as qu,a7 as Fu,a8 as Uu,a9 as Bu,aa as ku,ab as Nu,ac as Lu,ad as Mu,ae as Du,af as zu,ag as Gu,ah as $u,ai as Hu,aj as Ou,ak as ju,al as Wu,am as Vu,an as Ku,ao as Ju,ap as Yu,aq as Qu,ar as Zu,as as Xu,at as td,au as ed,av as ad,aw as nd,ax as rd,ay as sd,az as od,aA as id,aB as cd,aC as ud,aD as dd,aE as md,aF as ld,aG as fd,aH as hd,aI as pd,aJ as yd,aK as gd,s as bd}from"./sha256-CfLwtdyC.js";import{i as ht}from"./get-bytecode-BRKTQsHC.js";import{d as xd,a as Ed}from"./get-bytecode-BRKTQsHC.js";import{ccipRequest as Td,ccipRequest as Cd,offchainLookup as vd,offchainLookupAbiItem as Sd,offchainLookupSignature as Ad}from"./ccip-D8XoWaW0.js";import{d as _d,a as Rd,f as qd}from"./transactionReceipt-DKKCsI26.js";import"./utils-BQF5MiO5.js";import"./sentry-Dx-KuLV3.js";import"./react-BYHuwl8r.js";import"./transaction-Col-q-Ce.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers--abqWJu6.js";import"./intl-CBcMB1D2.js";function Qn(t){let e;if(typeof t=="string")e=gt(t,{modifiers:bt});else{const a=Yt(t),n=t.length;for(let r=0;r<n;r++){const s=t[r];if(!Qt(s)){e=gt(s,{modifiers:bt,structs:a});break}}}if(!e)throw new Zt({param:t});return e}async function M(t,e){return M.internal(t,ut,"sendTransaction",e)}(function(t){async function e(a,n,r,s){const{abi:u,account:d=a.account,address:c,args:i,dataSuffix:f,functionName:l,...h}=s;if(typeof d>"u")throw new D({docsPath:"/docs/contract/writeContract"});const o=d?N(d):null,p=Xt({abi:u,args:i,functionName:l});try{return await U(a,n,r)({data:`${p}${f?f.replace("0x",""):""}`,to:c,account:o,...h})}catch(m){throw te(m,{abi:u,address:c,args:i,docsPath:"/docs/contract/writeContract",functionName:l,sender:o==null?void 0:o.address})}}t.internal=e})(M||(M={}));function Zn({abi:t,address:e,client:a}){const n=a,[r,s]=n?"public"in n&&"wallet"in n?[n.public,n.wallet]:"public"in n?[n.public,void 0]:"wallet"in n?[void 0,n.wallet]:[n,n]:[void 0,void 0],u=r!=null,d=s!=null,c={};let i=!1,f=!1,l=!1;for(const h of t)if(h.type==="function"?h.stateMutability==="view"||h.stateMutability==="pure"?i=!0:f=!0:h.type==="event"&&(l=!0),i&&f&&l)break;return u&&(i&&(c.read=new Proxy({},{get(h,o){return(...p)=>{const{args:m,options:y}=W(p);return U(r,ee,"readContract")({abi:t,address:e,functionName:o,args:m,...y})}}})),f&&(c.simulate=new Proxy({},{get(h,o){return(...p)=>{const{args:m,options:y}=W(p);return U(r,ae,"simulateContract")({abi:t,address:e,functionName:o,args:m,...y})}}})),l&&(c.createEventFilter=new Proxy({},{get(h,o){return(...p)=>{const m=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,m);return U(r,ne,"createContractEventFilter")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.getEvents=new Proxy({},{get(h,o){return(...p)=>{const m=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,m);return U(r,re,"getContractEvents")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.watchEvent=new Proxy({},{get(h,o){return(...p)=>{const m=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,m);return U(r,se,"watchContractEvent")({abi:t,address:e,eventName:o,args:y,...w})}}}))),d&&f&&(c.write=new Proxy({},{get(h,o){return(...p)=>{const{args:m,options:y}=W(p);return U(s,M,"writeContract")({abi:t,address:e,functionName:o,args:m,...y})}}})),(u||d)&&f&&(c.estimateGas=new Proxy({},{get(h,o){return(...p)=>{const{args:m,options:y}=W(p);return U(r??s,oe,"estimateContractGas")({abi:t,address:e,functionName:o,args:m,...y,account:y.account??s.account})}}})),c.address=e,c.abi=t,c}function W(t){const e=t.length&&Array.isArray(t[0]),a=e?t[0]:[],n=(e?t[1]:t[0])??{};return{args:a,options:n}}function rt(t,e){let a=!1;Array.isArray(t[0])?a=!0:t.length===1?a=e.inputs.some(s=>s.indexed):t.length===2&&(a=!0);const n=a?t[0]:void 0,r=(a?t[1]:t[0])??{};return{args:n,options:r}}function Tt(t){return!t||typeof t!="object"||!("BYTES_PER_ELEMENT"in t)?!1:t.BYTES_PER_ELEMENT===1&&t.constructor.name==="Uint8Array"}function Xn(t){return t.opcode==="CREATE2"?da(t):ua(t)}function ua(t){const e=k(B(t.from));let a=k(t.nonce);return a[0]===0&&(a=new Uint8Array([])),B(`0x${Y(ia([e,a],"bytes")).slice(26)}`)}function da(t){const e=k(B(t.from)),a=Me(Tt(t.salt)?t.salt:k(t.salt),{size:32}),n="bytecodeHash"in t?Tt(t.bytecodeHash)?t.bytecodeHash:k(t.bytecodeHash):Y(t.bytecode,"bytes");return B(De(Y(ze([k("0xff"),e,a,n])),12))}function tr({chains:t,id:e}){return t.find(a=>a.id===e)}function Dt(t,e="hex"){const a=(()=>{if(typeof t=="string"){if(t.length>3&&t.length%2!==0)throw new Ge(t);return H(t)}return t})(),n=ct(a,{recursiveReadLimit:Number.POSITIVE_INFINITY});return zt(n,e)}function zt(t,e="hex"){if(t.bytes.length===0)return e==="hex"?G(t.bytes):t.bytes;const a=t.readByte();if(a<128&&t.decrementPosition(1),a<192){const r=Ct(t,a,128),s=t.readBytes(r);return e==="hex"?G(s):s}const n=Ct(t,a,192);return ma(t,n,e)}function Ct(t,e,a){if(a===128&&e<128)return 1;if(e<=a+55)return e-a;if(e===a+55+1)return t.readUint8();if(e===a+55+2)return t.readUint16();if(e===a+55+3)return t.readUint24();if(e===a+55+4)return t.readUint32();throw new lt("Invalid RLP prefix")}function ma(t,e,a){const n=t.position,r=[];for(;t.position-n<e;)r.push(zt(t,a));return r}function la(t){return E(t)&&$e(t)===32}const fa=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Gt=Uint8Array.from(new Array(16).fill(0).map((t,e)=>e)),ha=Gt.map(t=>(9*t+5)%16),$t=(()=>{const a=[[Gt],[ha]];for(let n=0;n<4;n++)for(let r of a)r.push(r[n].map(s=>fa[s]));return a})(),Ht=$t[0],Ot=$t[1],jt=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(t=>Uint8Array.from(t)),pa=Ht.map((t,e)=>t.map(a=>jt[e][a])),ya=Ot.map((t,e)=>t.map(a=>jt[e][a])),ga=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),ba=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function vt(t,e,a,n){return t===0?e^a^n:t===1?e&a|~e&n:t===2?(e|~a)^n:t===3?e&n|a&~n:e^(a|~n)}const V=new Uint32Array(16);class wa extends ca{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:a,h2:n,h3:r,h4:s}=this;return[e,a,n,r,s]}set(e,a,n,r,s){this.h0=e|0,this.h1=a|0,this.h2=n|0,this.h3=r|0,this.h4=s|0}process(e,a){for(let o=0;o<16;o++,a+=4)V[o]=e.getUint32(a,!0);let n=this.h0|0,r=n,s=this.h1|0,u=s,d=this.h2|0,c=d,i=this.h3|0,f=i,l=this.h4|0,h=l;for(let o=0;o<5;o++){const p=4-o,m=ga[o],y=ba[o],w=Ht[o],g=Ot[o],C=pa[o],b=ya[o];for(let x=0;x<16;x++){const I=j(n+vt(o,s,d,i)+V[w[x]]+m,C[x])+l|0;n=l,l=i,i=j(d,10)|0,d=s,s=I}for(let x=0;x<16;x++){const I=j(r+vt(p,u,c,f)+V[g[x]]+y,b[x])+h|0;r=h,h=f,f=j(c,10)|0,c=u,u=I}}this.set(this.h1+d+f|0,this.h2+i+h|0,this.h3+l+r|0,this.h4+n+u|0,this.h0+s+c|0)}roundClean(){wt(V)}destroy(){this.destroyed=!0,wt(this.buffer),this.set(0,0,0,0,0)}}const xa=He(()=>new wa),Ea=xa;function er(t,e){const a=e||"hex",n=Ea(E(t,{strict:!1})?k(t):t);return a==="bytes"?n:Nt(n)}const st=new Map;async function Ia(t){const{getSocket:e,keepAlive:a=!0,key:n="socket",reconnect:r=!0,url:s}=t,{interval:u=3e4}=typeof a=="object"?a:{},{attempts:d=5,delay:c=2e3}=typeof r=="object"?r:{},i=JSON.stringify({keepAlive:a,key:n,url:s,reconnect:r});let f=st.get(i);if(f)return f;let l=0;const{schedule:h}=ie({id:i,fn:async()=>{const m=new Map,y=new Map;let w,g,C,b=!1;function x(){if(r&&l<d){if(b)return;b=!0,l++,g==null||g.close(),setTimeout(async()=>{await I().catch(console.error),b=!1},c)}else m.clear(),y.clear()}async function I(){const T=await e({onClose(){var v,P;for(const S of m.values())(v=S.onError)==null||v.call(S,new Q({url:s}));for(const S of y.values())(P=S.onError)==null||P.call(S,new Q({url:s}));x()},onError(v){var P,S;w=v;for(const _ of m.values())(P=_.onError)==null||P.call(_,w);for(const _ of y.values())(S=_.onError)==null||S.call(_,w);x()},onOpen(){w=void 0,l=0},onResponse(v){const P=v.method==="eth_subscription",S=P?v.params.subscription:v.id,_=P?y:m,q=_.get(S);q&&q.onResponse(v),P||_.delete(S)}});if(g=T,a&&(C&&clearInterval(C),C=setInterval(()=>{var v;return(v=g.ping)==null?void 0:v.call(g)},u)),r&&y.size>0){const v=y.entries();for(const[P,{onResponse:S,body:_,onError:q}]of v)_&&(y.delete(P),f==null||f.request({body:_,onResponse:S,onError:q}))}return T}return await I(),w=void 0,f={close(){C&&clearInterval(C),g.close(),st.delete(i)},get socket(){return g},request({body:T,onError:v,onResponse:P}){w&&v&&v(w);const S=T.id??ce.take(),_=q=>{var z;typeof q.id=="number"&&S!==q.id||(T.method==="eth_subscribe"&&typeof q.result=="string"&&y.set(q.result,{onResponse:_,onError:v,body:T}),T.method==="eth_unsubscribe"&&y.delete((z=T.params)==null?void 0:z[0]),P(q))};m.set(S,{onResponse:_,onError:v});try{g.request({body:{jsonrpc:"2.0",id:S,...T}})}catch(q){v==null||v(q)}},requestAsync({body:T,timeout:v=1e4}){return Qe(()=>new Promise((P,S)=>this.request({body:T,onError:S,onResponse:P})),{errorInstance:new aa({body:T,url:s}),timeout:v})},requests:m,subscriptions:y,url:s},st.set(i,f),[f]}}),[o,[p]]=await h();return p}async function J(t,e={}){const{keepAlive:a,reconnect:n}=e;return Ia({async getSocket({onClose:r,onError:s,onOpen:u,onResponse:d}){const c=await oa(()=>import("./native-CPZ4GKee.js").then(o=>o.n),__vite__mapDeps([0,1,2])).then(o=>o.WebSocket),i=new c(t);function f(){i.removeEventListener("close",f),i.removeEventListener("message",l),i.removeEventListener("error",s),i.removeEventListener("open",u),r()}function l({data:o}){if(!(typeof o=="string"&&o.trim().length===0))try{const p=JSON.parse(o);d(p)}catch(p){s(p)}}i.addEventListener("close",f),i.addEventListener("message",l),i.addEventListener("error",s),i.addEventListener("open",u),i.readyState===c.CONNECTING&&await new Promise((o,p)=>{i&&(i.onopen=o,i.onerror=p)});const{close:h}=i;return Object.assign(i,{close(){h.bind(i)(),f()},ping(){try{if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({url:i.url,cause:new Q({url:i.url})});const o={jsonrpc:"2.0",id:null,method:"net_version",params:[]};i.send(JSON.stringify(o))}catch(o){s(o)}},request({body:o}){if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({body:o,url:i.url,cause:new Q({url:i.url})});return i.send(JSON.stringify(o))}})},keepAlive:a,reconnect:n,url:t})}async function Ta(t){const e=await J(t);return Object.assign(e.socket,{requests:e.requests,subscriptions:e.subscriptions})}function Ca(t){return Lt(t,-32)===ue}function va(t){return de(t)}function ar(t){if(!Ca(t))return{signature:t};const[e,a,n]=Mt([{type:"address"},{type:"bytes"},{type:"bytes"}],t);return{address:e,data:a,signature:n}}function nr(t){if(!va(t))return{signature:t};const{authorization:e,to:a,...n}=me(t);return{authorization:{address:e.address,chainId:e.chainId,nonce:Number(e.nonce),r:R(e.r,{size:32}),s:R(e.s,{size:32}),yParity:e.yParity},...a?{address:a}:{},...n}}async function Sa({message:t,signature:e}){return Z({hash:le(t),signature:e})}async function Aa(t){const{domain:e,message:a,primaryType:n,signature:r,types:s}=t;return Z({hash:Ze({domain:e,message:a,primaryType:n,types:s}),signature:r})}function rr(t){const{address:e,data:a,signature:n,to:r="hex"}=t,s=fe({authorization:{address:t.authorization.address,chainId:t.authorization.chainId,nonce:BigInt(t.authorization.nonce),r:BigInt(t.authorization.r),s:BigInt(t.authorization.s),yParity:t.authorization.yParity},data:a,signature:n,to:e});return r==="hex"?s:H(s)}async function sr({address:t,hash:e,signature:a}){return ht(B(t),await Z({hash:e,signature:a}))}async function or({address:t,message:e,signature:a}){return ht(B(t),await Sa({message:e,signature:a}))}async function ir(t){const{address:e,domain:a,message:n,primaryType:r,signature:s,types:u}=t;return ht(B(e),await Aa({domain:a,message:n,primaryType:r,signature:s,types:u}))}function Pa(t){const e=Lt(t,0,1);if(e==="0x04")return"eip7702";if(e==="0x03")return"eip4844";if(e==="0x02")return"eip1559";if(e==="0x01")return"eip2930";if(e!=="0x"&&F(e)>=192)return"legacy";throw new he({serializedType:e})}function _a(t){const e=Pa(t);return e==="eip1559"?Fa(t):e==="eip2930"?Ua(t):e==="eip4844"?qa(t):e==="eip7702"?Ra(t):Ba(t)}function Ra(t){const e=X(t),[a,n,r,s,u,d,c,i,f,l,h,o,p]=e;if(e.length!==10&&e.length!==13)throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,authorizationList:l,...e.length>9?{v:h,r:o,s:p}:{}},serializedTransaction:t,type:"eip7702"});const m={chainId:F(a),type:"eip7702"};return E(d)&&d!=="0x"&&(m.to=d),E(u)&&u!=="0x"&&(m.gas=A(u)),E(i)&&i!=="0x"&&(m.data=i),E(n)&&(m.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(m.value=A(c)),E(s)&&s!=="0x"&&(m.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(m.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(m.accessList=tt(f)),l.length!==0&&l!=="0x"&&(m.authorizationList=ka(l)),we(m),{...e.length===13?O(e):void 0,...m}}function qa(t){const e=X(t),a=e.length===4,n=a?e[0]:e,r=a?e.slice(1):[],[s,u,d,c,i,f,l,h,o,p,m,y,w,g]=n,[C,b,x]=r;if(!(n.length===11||n.length===14))throw new $({attributes:{chainId:s,nonce:u,maxPriorityFeePerGas:d,maxFeePerGas:c,gas:i,to:f,value:l,data:h,accessList:o,...n.length>9?{v:y,r:w,s:g}:{}},serializedTransaction:t,type:"eip4844"});const I={blobVersionedHashes:m,chainId:F(s),to:f,type:"eip4844"};return E(i)&&i!=="0x"&&(I.gas=A(i)),E(h)&&h!=="0x"&&(I.data=h),E(u)&&(I.nonce=u==="0x"?0:F(u)),E(l)&&l!=="0x"&&(I.value=A(l)),E(p)&&p!=="0x"&&(I.maxFeePerBlobGas=A(p)),E(c)&&c!=="0x"&&(I.maxFeePerGas=A(c)),E(d)&&d!=="0x"&&(I.maxPriorityFeePerGas=A(d)),o.length!==0&&o!=="0x"&&(I.accessList=tt(o)),C&&b&&x&&(I.sidecars=ge({blobs:C,commitments:b,proofs:x})),be(I),{...n.length===14?O(n):void 0,...I}}function Fa(t){const e=X(t),[a,n,r,s,u,d,c,i,f,l,h,o]=e;if(!(e.length===9||e.length===12))throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,...e.length>9?{v:l,r:h,s:o}:{}},serializedTransaction:t,type:"eip1559"});const p={chainId:F(a),type:"eip1559"};return E(d)&&d!=="0x"&&(p.to=d),E(u)&&u!=="0x"&&(p.gas=A(u)),E(i)&&i!=="0x"&&(p.data=i),E(n)&&(p.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(p.value=A(c)),E(s)&&s!=="0x"&&(p.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(p.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(p.accessList=tt(f)),pe(p),{...e.length===12?O(e):void 0,...p}}function Ua(t){const e=X(t),[a,n,r,s,u,d,c,i,f,l,h]=e;if(!(e.length===8||e.length===11))throw new $({attributes:{chainId:a,nonce:n,gasPrice:r,gas:s,to:u,value:d,data:c,accessList:i,...e.length>8?{v:f,r:l,s:h}:{}},serializedTransaction:t,type:"eip2930"});const o={chainId:F(a),type:"eip2930"};return E(u)&&u!=="0x"&&(o.to=u),E(s)&&s!=="0x"&&(o.gas=A(s)),E(c)&&c!=="0x"&&(o.data=c),E(n)&&(o.nonce=n==="0x"?0:F(n)),E(d)&&d!=="0x"&&(o.value=A(d)),E(r)&&r!=="0x"&&(o.gasPrice=A(r)),i.length!==0&&i!=="0x"&&(o.accessList=tt(i)),ye(o),{...e.length===11?O(e):void 0,...o}}function Ba(t){const e=Dt(t,"hex"),[a,n,r,s,u,d,c,i,f]=e;if(!(e.length===6||e.length===9))throw new $({attributes:{nonce:a,gasPrice:n,gas:r,to:s,value:u,data:d,...e.length>6?{v:c,r:i,s:f}:{}},serializedTransaction:t,type:"legacy"});const l={type:"legacy"};if(E(s)&&s!=="0x"&&(l.to=s),E(r)&&r!=="0x"&&(l.gas=A(r)),E(d)&&d!=="0x"&&(l.data=d),E(a)&&(l.nonce=a==="0x"?0:F(a)),E(u)&&u!=="0x"&&(l.value=A(u)),E(n)&&n!=="0x"&&(l.gasPrice=A(n)),xe(l),e.length===6)return l;const h=E(c)&&c!=="0x"?A(c):0n;if(f==="0x"&&i==="0x")return h>0&&(l.chainId=Number(h)),l;const o=h,p=Number((o-35n)/2n);if(p>0)l.chainId=p;else if(o!==27n&&o!==28n)throw new Ee({v:o});return l.v=o,l.s=f,l.r=i,l.yParity=o%2n===0n?1:0,l}function X(t){return Dt(`0x${t.slice(4)}`,"hex")}function tt(t){const e=[];for(let a=0;a<t.length;a++){const[n,r]=t[a];if(!Oe(n,{strict:!1}))throw new je({address:n});e.push({address:n,storageKeys:r.map(s=>la(s)?s:We(s))})}return e}function ka(t){const e=[];for(let a=0;a<t.length;a++){const[n,r,s,u,d,c]=t[a];e.push({address:r,chainId:n==="0x"?0:F(n),nonce:s==="0x"?0:F(s),...O([u,d,c])})}return e}function O(t){const e=t.slice(-3),a=e[0]==="0x"||A(e[0])===0n?27n:28n;return{r:xt(e[1],{size:32}),s:xt(e[2],{size:32}),v:a,yParity:a===27n?0:1}}class Na extends lt{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function Wt(t,e){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(t))throw new Na({value:t});let[a,n="0"]=t.split(".");const r=a.startsWith("-");if(r&&(a=a.slice(1)),n=n.replace(/(0+)$/,""),e===0)Math.round(+`.${n}`)===1&&(a=`${BigInt(a)+1n}`),n="";else if(n.length>e){const[s,u,d]=[n.slice(0,e-1),n.slice(e-1,e),n.slice(e)],c=Math.round(+`${u}.${d}`);c>9?n=`${BigInt(s)+BigInt(1)}0`.padStart(s.length+1,"0"):n=`${s}${c}`,n.length>e&&(n=n.slice(1),a=`${BigInt(a)+1n}`),n=n.slice(0,e)}else n=n.padEnd(e,"0");return BigInt(`${r?"-":""}${a}${n}`)}function cr(t,e="wei"){return Wt(t,Ie[e])}function ur(t,e="wei"){return Wt(t,Te[e])}async function La(t,{hash:e}){await t.request({method:`${t.mode}_dropTransaction`,params:[e]})}async function Ma(t){return t.request({method:`${t.mode}_dumpState`})}async function Da(t){return t.mode==="ganache"?await t.request({method:"eth_mining"}):await t.request({method:`${t.mode}_getAutomine`})}async function za(t){return await t.request({method:"txpool_content"})}async function Ga(t){const{pending:e,queued:a}=await t.request({method:"txpool_status"});return{pending:F(e),queued:F(a)}}async function $a(t,{address:e}){await t.request({method:`${t.mode}_impersonateAccount`,params:[e]})}async function Ha(t,{seconds:e}){return await t.request({method:"evm_increaseTime",params:[R(e)]})}async function Oa(t){return await t.request({method:"txpool_inspect"})}async function ja(t,{state:e}){await t.request({method:`${t.mode}_loadState`,params:[e]})}async function Wa(t,{blocks:e,interval:a}){t.mode==="ganache"?await t.request({method:"evm_mine",params:[{blocks:R(e)}]}):await t.request({method:`${t.mode}_mine`,params:[R(e),R(a||0)]})}async function Va(t){await t.request({method:`${t.mode}_removeBlockTimestampInterval`})}async function Ka(t,{blockNumber:e,jsonRpcUrl:a}={}){await t.request({method:`${t.mode}_reset`,params:[{forking:{blockNumber:Number(e),jsonRpcUrl:a}}]})}async function Ja(t,{id:e}){await t.request({method:"evm_revert",params:[e]})}async function Ya(t,e){var w,g,C;const{accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:l,...h}=e,o=(C=(g=(w=t.chain)==null?void 0:w.formatters)==null?void 0:g.transactionRequest)==null?void 0:C.format,m=(o||ft)({...St(h,{format:o}),accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:l},"sendUnsignedTransaction");return await t.request({method:"eth_sendUnsignedTransaction",params:[m]})}async function Qa(t,e){t.mode==="ganache"?e?await t.request({method:"miner_start"}):await t.request({method:"miner_stop"}):await t.request({method:"evm_setAutomine",params:[e]})}async function Za(t,{address:e,value:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountBalance",params:[e,R(a)]}):await t.request({method:`${t.mode}_setBalance`,params:[e,R(a)]})}async function Xa(t,{gasLimit:e}){await t.request({method:"evm_setBlockGasLimit",params:[R(e)]})}async function tn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:`${t.mode}_setBlockTimestampInterval`,params:[a]})}async function en(t,{address:e,bytecode:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountCode",params:[e,a]}):await t.request({method:`${t.mode}_setCode`,params:[e,a]})}async function an(t,{address:e}){await t.request({method:`${t.mode}_setCoinbase`,params:[e]})}async function nn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:"evm_setIntervalMining",params:[a]})}async function rn(t,e){await t.request({method:`${t.mode}_setLoggingEnabled`,params:[e]})}async function sn(t,{gasPrice:e}){await t.request({method:`${t.mode}_setMinGasPrice`,params:[R(e)]})}async function on(t,{baseFeePerGas:e}){await t.request({method:`${t.mode}_setNextBlockBaseFeePerGas`,params:[R(e)]})}async function cn(t,{timestamp:e}){await t.request({method:"evm_setNextBlockTimestamp",params:[R(e)]})}async function un(t,{address:e,nonce:a}){await t.request({method:`${t.mode}_setNonce`,params:[e,R(a)]})}async function dn(t,e){await t.request({method:`${t.mode}_setRpcUrl`,params:[e]})}async function mn(t,{address:e,index:a,value:n}){await t.request({method:`${t.mode}_setStorageAt`,params:[e,typeof a=="number"?R(a):a,n]})}async function ln(t){return await t.request({method:"evm_snapshot"})}async function fn(t,{address:e}){await t.request({method:`${t.mode}_stopImpersonatingAccount`,params:[e]})}function hn({mode:t}){return e=>{const a=e.extend(()=>({mode:t}));return{dropTransaction:n=>La(a,n),dumpState:()=>Ma(a),getAutomine:()=>Da(a),getTxpoolContent:()=>za(a),getTxpoolStatus:()=>Ga(a),impersonateAccount:n=>$a(a,n),increaseTime:n=>Ha(a,n),inspectTxpool:()=>Oa(a),loadState:n=>ja(a,n),mine:n=>Wa(a,n),removeBlockTimestampInterval:()=>Va(a),reset:n=>Ka(a,n),revert:n=>Ja(a,n),sendUnsignedTransaction:n=>Ya(a,n),setAutomine:n=>Qa(a,n),setBalance:n=>Za(a,n),setBlockGasLimit:n=>Xa(a,n),setBlockTimestampInterval:n=>tn(a,n),setCode:n=>en(a,n),setCoinbase:n=>an(a,n),setIntervalMining:n=>nn(a,n),setLoggingEnabled:n=>rn(a,n),setMinGasPrice:n=>sn(a,n),setNextBlockBaseFeePerGas:n=>on(a,n),setNextBlockTimestamp:n=>cn(a,n),setNonce:n=>un(a,n),setRpcUrl:n=>dn(a,n),setStorageAt:n=>mn(a,n),snapshot:()=>ln(a),stopImpersonatingAccount:n=>fn(a,n)}}}function dr(t){const{key:e="test",name:a="Test Client",mode:n}=t;return At({...t,key:e,name:a,type:"testClient"}).extend(s=>({mode:n,...hn({mode:n})(s)}))}async function pn(t,{chain:e}){const{id:a,name:n,nativeCurrency:r,rpcUrls:s,blockExplorers:u}=e;await t.request({method:"wallet_addEthereumChain",params:[{chainId:R(a),chainName:n,nativeCurrency:r,rpcUrls:s.default.http,blockExplorerUrls:u?Object.values(u).map(({url:d})=>d):void 0}]},{dedupe:!0,retryCount:0})}function yn(t,e){const{abi:a,args:n,bytecode:r,...s}=e,u=Ce({abi:a,args:n,bytecode:r});return ut(t,{...s,...s.authorizationList?{to:null}:{},data:u})}async function gn(t){var a;return((a=t.account)==null?void 0:a.type)==="local"?[t.account.address]:(await t.request({method:"eth_accounts"},{dedupe:!0})).map(n=>Ve(n))}async function bn(t,e={}){const{account:a=t.account,chainId:n}=e,r=a?N(a):void 0,s=n?[r==null?void 0:r.address,[R(n)]]:[r==null?void 0:r.address],u=await t.request({method:"wallet_getCapabilities",params:s}),d={};for(const[c,i]of Object.entries(u)){d[Number(c)]={};for(let[f,l]of Object.entries(i))f==="addSubAccount"&&(f="unstable_addSubAccount"),d[Number(c)][f]=l}return typeof n=="number"?d[n]:d}async function wn(t){return await t.request({method:"wallet_getPermissions"},{dedupe:!0})}async function xn(t){return(await t.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(a=>B(a))}async function En(t,e){return t.request({method:"wallet_requestPermissions",params:[e]},{retryCount:0})}async function In(t,e){const{chain:a=t.chain}=e,n=e.timeout??Math.max(((a==null?void 0:a.blockTime)??0)*3,5e3),r=await Pt(t,e);return await _t(t,{...e,id:r.id,timeout:n})}const ot=new Ke(128);async function Vt(t,e){var x,I,T,v;const{account:a=t.account,chain:n=t.chain,accessList:r,authorizationList:s,blobs:u,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:l,maxPriorityFeePerGas:h,nonce:o,pollingInterval:p,throwOnReceiptRevert:m,type:y,value:w,...g}=e,C=e.timeout??Math.max(((n==null?void 0:n.blockTime)??0)*3,5e3);if(typeof a>"u")throw new D({docsPath:"/docs/actions/wallet/sendTransactionSync"});const b=a?N(a):null;try{Rt(e);const P=await(async()=>{if(e.to)return e.to;if(e.to!==null&&s&&s.length>0)return await ve({authorization:s[0]}).catch(()=>{throw new lt("`to` is required. Could not infer from `authorizationList`.")})})();if((b==null?void 0:b.type)==="json-rpc"||b===null){let S;n!==null&&(S=await U(t,dt,"getChainId")({}),qt({currentChainId:S,chain:n}));const _=(T=(I=(x=t.chain)==null?void 0:x.formatters)==null?void 0:I.transactionRequest)==null?void 0:T.format,z=(_||ft)({...St(g,{format:_}),accessList:r,account:b,authorizationList:s,blobs:u,chainId:S,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:l,maxPriorityFeePerGas:h,nonce:o,to:P,type:y,value:w},"sendTransaction"),pt=ot.get(t.uid),Kt=pt?"wallet_sendTransaction":"eth_sendTransaction",Jt=await(async()=>{try{return await t.request({method:Kt,params:[z]},{retryCount:0})}catch(yt){if(pt===!1)throw yt;const L=yt;if(L.name==="InvalidInputRpcError"||L.name==="InvalidParamsRpcError"||L.name==="MethodNotFoundRpcError"||L.name==="MethodNotSupportedRpcError")return await t.request({method:"wallet_sendTransaction",params:[z]},{retryCount:0}).then(at=>(ot.set(t.uid,!0),at)).catch(at=>{const nt=at;throw nt.name==="MethodNotFoundRpcError"||nt.name==="MethodNotSupportedRpcError"?(ot.set(t.uid,!1),L):nt});throw L}})(),et=await U(t,Se,"waitForTransactionReceipt")({checkReplacement:!1,hash:Jt,pollingInterval:p,timeout:C});if(m&&et.status==="reverted")throw new Ae({receipt:et});return et}if((b==null?void 0:b.type)==="local"){const S=await U(t,Ft,"prepareTransactionRequest")({account:b,accessList:r,authorizationList:s,blobs:u,chain:n,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:l,maxPriorityFeePerGas:h,nonce:o,nonceManager:b.nonceManager,parameters:[...Pe,"sidecars"],type:y,value:w,...g,to:P}),_=(v=n==null?void 0:n.serializers)==null?void 0:v.transaction,q=await b.signTransaction(S,{serializer:_});return await U(t,Ut,"sendRawTransactionSync")({serializedTransaction:q,throwOnReceiptRevert:m})}throw(b==null?void 0:b.type)==="smart"?new K({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new K({docsPath:"/docs/actions/wallet/sendTransactionSync",type:b==null?void 0:b.type})}catch(P){throw P instanceof K?P:_e(P,{...e,account:b,chain:e.chain||void 0})}}async function Tn(t,e){const{id:a}=e;await t.request({method:"wallet_showCallsStatus",params:[a]})}async function Cn(t,e){const{account:a=t.account}=e;if(!a)throw new D({docsPath:"/docs/eip7702/signAuthorization"});const n=N(a);if(!n.signAuthorization)throw new K({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:n.type});const r=await Bt(t,e);return n.signAuthorization(r)}async function vn(t,{account:e=t.account,message:a}){if(!e)throw new D({docsPath:"/docs/actions/wallet/signMessage"});const n=N(e);if(n.signMessage)return n.signMessage({message:a});const r=typeof a=="string"?Je(a):a.raw instanceof Uint8Array?Nt(a.raw):a.raw;return t.request({method:"personal_sign",params:[r,n.address]},{retryCount:0})}async function Sn(t,e){var i,f,l,h;const{account:a=t.account,chain:n=t.chain,...r}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTransaction"});const s=N(a);Rt({account:s,...e});const u=await U(t,dt,"getChainId")({});n!==null&&qt({currentChainId:u,chain:n});const d=(n==null?void 0:n.formatters)||((i=t.chain)==null?void 0:i.formatters),c=((f=d==null?void 0:d.transactionRequest)==null?void 0:f.format)||ft;return s.signTransaction?s.signTransaction({...r,chainId:u},{serializer:(h=(l=t.chain)==null?void 0:l.serializers)==null?void 0:h.transaction}):await t.request({method:"eth_signTransaction",params:[{...c({...r,account:s},"signTransaction"),chainId:R(u),from:s.address}]},{retryCount:0})}async function An(t,e){const{account:a=t.account,domain:n,message:r,primaryType:s}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTypedData"});const u=N(a),d={EIP712Domain:Xe({domain:n}),...e.types};if(ta({domain:n,message:r,primaryType:s,types:d}),u.signTypedData)return u.signTypedData({domain:n,message:r,primaryType:s,types:d});const c=ea({domain:n,message:r,primaryType:s,types:d});return t.request({method:"eth_signTypedData_v4",params:[u.address,c]},{retryCount:0})}async function Pn(t,{id:e}){await t.request({method:"wallet_switchEthereumChain",params:[{chainId:R(e)}]},{retryCount:0})}async function _n(t,e){return await t.request({method:"wallet_watchAsset",params:e},{retryCount:0})}async function Rn(t,e){return M.internal(t,Vt,"sendTransactionSync",e)}function qn(t){return{addChain:e=>pn(t,e),deployContract:e=>yn(t,e),getAddresses:()=>gn(t),getCallsStatus:e=>qe(t,e),getCapabilities:e=>bn(t,e),getChainId:()=>dt(t),getPermissions:()=>wn(t),prepareAuthorization:e=>Bt(t,e),prepareTransactionRequest:e=>Ft(t,e),requestAddresses:()=>xn(t),requestPermissions:e=>En(t,e),sendCalls:e=>Pt(t,e),sendCallsSync:e=>In(t,e),sendRawTransaction:e=>Re(t,e),sendRawTransactionSync:e=>Ut(t,e),sendTransaction:e=>ut(t,e),sendTransactionSync:e=>Vt(t,e),showCallsStatus:e=>Tn(t,e),signAuthorization:e=>Cn(t,e),signMessage:e=>vn(t,e),signTransaction:e=>Sn(t,e),signTypedData:e=>An(t,e),switchChain:e=>Pn(t,e),waitForCallsStatus:e=>_t(t,e),watchAsset:e=>_n(t,e),writeContract:e=>M(t,e),writeContractSync:e=>Rn(t,e)}}function mr(t){const{key:e="wallet",name:a="Wallet Client",transport:n}=t;return At({...t,key:e,name:a,transport:n,type:"walletClient"}).extend(qn)}function lr(t,e={}){const{key:a="custom",methods:n,name:r="Custom Provider",retryDelay:s}=e;return({retryCount:u})=>mt({key:a,methods:n,name:r,request:t.request.bind(t),retryCount:e.retryCount??u,retryDelay:s,type:"custom"})}function fr(t,e={}){const{key:a="fallback",name:n="Fallback",rank:r=!1,shouldThrow:s=Fn,retryCount:u,retryDelay:d}=e;return(({chain:c,pollingInterval:i=4e3,timeout:f,...l})=>{let h=t,o=()=>{};const p=mt({key:a,name:n,async request({method:m,params:y}){let w;const g=async(C=0)=>{const b=h[C]({...l,chain:c,retryCount:0,timeout:f});try{const x=await b.request({method:m,params:y});return o({method:m,params:y,response:x,transport:b,status:"success"}),x}catch(x){if(o({error:x,method:m,params:y,transport:b,status:"error"}),s(x)||C===h.length-1||(w??(w=h.slice(C+1).some(I=>{const{include:T,exclude:v}=I({chain:c}).config.methods||{};return T?T.includes(m):v?!v.includes(m):!0})),!w))throw x;return g(C+1)}};return g()},retryCount:u,retryDelay:d,type:"fallback"},{onResponse:m=>o=m,transports:h.map(m=>m({chain:c,retryCount:0}))});if(r){const m=typeof r=="object"?r:{};Un({chain:c,interval:m.interval??i,onTransports:y=>h=y,ping:m.ping,sampleCount:m.sampleCount,timeout:m.timeout,transports:h,weights:m.weights})}return p})}function Fn(t){return!!("code"in t&&typeof t.code=="number"&&(t.code===na.code||t.code===ra.code||Fe.nodeMessage.test(t.message)||t.code===5e3))}function Un({chain:t,interval:e=4e3,onTransports:a,ping:n,sampleCount:r=10,timeout:s=1e3,transports:u,weights:d={}}){const{stability:c=.7,latency:i=.3}=d,f=[],l=async()=>{const h=await Promise.all(u.map(async m=>{const y=m({chain:t,retryCount:0,timeout:s}),w=Date.now();let g,C;try{await(n?n({transport:y}):y.request({method:"net_listening"})),C=1}catch{C=0}finally{g=Date.now()}return{latency:g-w,success:C}}));f.push(h),f.length>r&&f.shift();const o=Math.max(...f.map(m=>Math.max(...m.map(({latency:y})=>y)))),p=u.map((m,y)=>{const w=f.map(I=>I[y].latency),C=1-w.reduce((I,T)=>I+T,0)/w.length/o,b=f.map(I=>I[y].success),x=b.reduce((I,T)=>I+T,0)/b.length;return x===0?[0,y]:[i*C+c*x,y]}).sort((m,y)=>y[0]-m[0]);a(p.map(([,m])=>u[m])),await Ue(e),l()};l()}function hr(t,e={}){const{keepAlive:a,key:n="webSocket",methods:r,name:s="WebSocket JSON-RPC",reconnect:u,retryDelay:d}=e;return({chain:c,retryCount:i,timeout:f})=>{var m;const l=e.retryCount??i,h=f??e.timeout??1e4,o=t||((m=c==null?void 0:c.rpcUrls.default.webSocket)==null?void 0:m[0]),p={keepAlive:a,reconnect:u};if(!o)throw new Be;return mt({key:n,methods:r,name:s,async request({method:y,params:w}){const g={method:y,params:w},C=await J(o,p),{error:b,result:x}=await C.requestAsync({body:g,timeout:h});if(b)throw new sa({body:g,error:b,url:o});return x},retryCount:l,retryDelay:d,timeout:h,type:"webSocket"},{getSocket(){return Ta(o)},getRpcClient(){return J(o,p)},async subscribe({params:y,onData:w,onError:g}){const C=await J(o,p),{result:b}=await new Promise((x,I)=>C.request({body:{method:"eth_subscribe",params:y},onError(T){I(T),g==null||g(T)},onResponse(T){if(T.error){I(T.error),g==null||g(T.error);return}if(typeof T.id=="number"){x(T);return}T.method==="eth_subscription"&&w(T.params)}}));return{subscriptionId:b,async unsubscribe(){return new Promise(x=>C.request({body:{method:"eth_unsubscribe",params:[b]},onResponse:x}))}}}})}}class pr extends Error{constructor(e,a){super(a),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=e,this.details=a}}const it="/docs/contract/decodeDeployData";function yr(t){const{abi:e,bytecode:a,data:n}=t;if(n===a)return{bytecode:a};const r=e.find(u=>"type"in u&&u.type==="constructor");if(!r)throw new Ye({docsPath:it});if(!("inputs"in r))throw new Et({docsPath:it});if(!r.inputs||r.inputs.length===0)throw new Et({docsPath:it});return{args:Mt(r.inputs,`0x${n.replace(a,"")}`),bytecode:a}}function gr(t){const e=t.to??(typeof t.blobs[0]=="string"?"hex":"bytes"),a=typeof t.blobs[0]=="string"?t.blobs.map(d=>H(d)):t.blobs,n=a.reduce((d,c)=>d+c.length,0),r=ct(new Uint8Array(n));let s=!0;for(const d of a){const c=ct(d);for(;s&&c.position<d.length;){c.incrementPosition(1);let i=31;d.length-c.position<31&&(i=d.length-c.position);for(const f in Array.from({length:i})){const l=c.readByte();if(l===128&&!c.inspectBytes(c.remaining).includes(128)){s=!1;break}r.pushByte(l)}}}const u=r.bytes.slice(0,r.position);return e==="hex"?G(u):u}function br(t){const{sidecars:e,version:a}=t,n=t.to??(typeof e[0].blob=="string"?"hex":"bytes"),r=[];for(const{commitment:s}of e)r.push(ke({commitment:s,to:n,version:a}));return r}const Bn=2147483648;function wr(t){if(t===1)return 60n;if(t>=Bn||t<0)throw new Ne({chainId:t});return BigInt((2147483648|t)>>>0)}function kn({blobToKzgCommitment:t,computeBlobKzgProof:e}){return{blobToKzgCommitment:t,computeBlobKzgProof:e}}function xr(t,e){try{t.loadTrustedSetup(e)}catch(a){const n=a;if(!n.message.includes("trusted setup is already loaded"))throw n}return kn(t)}function Er({r:t,yParityAndS:e}){const a=H(e),n=a[0]&128?1:0,r=a;return n===1&&(r[0]&=127),{r:t,s:G(r),yParity:n}}function Ir(t){const{r:e,s:a}=kt.Signature.fromCompact(t.slice(2,130));return{r:R(e,{size:32}),yParityAndS:R(a,{size:32})}}async function Tr(t){const{serializedTransaction:e,signature:a}=t,n=_a(e),r=a??{r:n.r,s:n.s,v:n.v,yParity:n.yParity},s=Le({...n,r:void 0,s:void 0,v:void 0,yParity:void 0,sidecars:void 0});return await Z({hash:Y(s),signature:r})}function Cr({r:t,yParityAndS:e}){return`0x${new kt.Signature(A(t),A(e)).toCompactHex()}`}function vr(t){const{r:e,s:a,v:n,yParity:r}=t,s=Number(r??n-27n);let u=a;if(s===1){const d=H(a);d[0]|=128,u=G(d)}return{r:e,yParityAndS:u}}export{Ye as AbiConstructorNotFoundError,Et as AbiConstructorParamsNotFoundError,_o as AbiDecodingDataSizeInvalidError,Ro as AbiDecodingDataSizeTooSmallError,qo as AbiDecodingZeroDataError,Fo as AbiEncodingArrayLengthMismatchError,Uo as AbiEncodingBytesSizeMismatchError,Bo as AbiEncodingLengthMismatchError,ko as AbiErrorInputsNotFoundError,No as AbiErrorNotFoundError,Lo as AbiErrorSignatureNotFoundError,Mo as AbiEventNotFoundError,Do as AbiEventSignatureEmptyTopicsError,zo as AbiEventSignatureNotFoundError,Go as AbiFunctionNotFoundError,$o as AbiFunctionOutputsNotFoundError,Ho as AbiFunctionSignatureNotFoundError,Pr as AccountStateConflictError,tc as AtomicReadyWalletRejectedUpgradeError,ec as AtomicityNotSupportedError,lt as BaseError,_r as BaseFeeScalarError,Rr as BlockNotFoundError,qr as BundleFailedError,ac as BundleTooLargeError,Oo as BytesSizeMismatchError,Fr as CallExecutionError,nc as ChainDisconnectedError,Ur as ChainDoesNotSupportContract,Br as ChainMismatchError,kr as ChainNotFoundError,Nr as CircularReferenceError,Lr as ClientChainNotConfiguredError,Mr as ContractFunctionExecutionError,Dr as ContractFunctionRevertedError,zr as ContractFunctionZeroDataError,Gr as CounterfactualDeploymentFailedError,jo as DecodeLogDataMismatch,Wo as DecodeLogTopicsMismatch,rc as DuplicateIdError,pr as EIP1193ProviderRpcError,$r as Eip1559FeesNotSupportedError,Hr as EnsAvatarInvalidNftUriError,Or as EnsAvatarUnsupportedNamespaceError,jr as EnsAvatarUriResolutionError,Ne as EnsInvalidChainIdError,Wr as EstimateGasExecutionError,Fe as ExecutionRevertedError,Vr as FeeCapTooHighError,Kr as FeeCapTooLowError,Jr as FeeConflictError,Vo as FilterTypeNotSupportedError,sc as HttpRequestError,Yr as InsufficientFundsError,Ko as IntegerOutOfRangeError,oc as InternalRpcError,Qr as IntrinsicGasTooHighError,Zr as IntrinsicGasTooLowError,Jo as InvalidAbiDecodingTypeError,Yo as InvalidAbiEncodingTypeError,Xr as InvalidAbiItemError,Zt as InvalidAbiParameterError,ts as InvalidAbiParametersError,es as InvalidAbiTypeParameterError,je as InvalidAddressError,Qo as InvalidArrayError,Zo as InvalidBytesBooleanError,as as InvalidChainIdError,Na as InvalidDecimalNumberError,Xo as InvalidDefinitionTypeError,Vi as InvalidDomainError,ns as InvalidFunctionModifierError,ti as InvalidHexBooleanError,Ge as InvalidHexValueError,ic as InvalidInputRpcError,Ee as InvalidLegacyVError,rs as InvalidModifierError,ss as InvalidParameterError,cc as InvalidParamsRpcError,os as InvalidParenthesisError,Ki as InvalidPrimaryTypeError,uc as InvalidRequestRpcError,is as InvalidSerializableTransactionError,$ as InvalidSerializedTransactionError,he as InvalidSerializedTransactionTypeError,cs as InvalidSignatureError,us as InvalidStorageKeySizeError,ds as InvalidStructSignatureError,Ji as InvalidStructTypeError,dc as JsonRpcVersionUnsupportedError,mc as LimitExceededRpcError,ms as MaxFeePerGasTooLowError,lc as MethodNotFoundRpcError,fc as MethodNotSupportedRpcError,ls as NonceMaxValueError,fs as NonceTooHighError,hs as NonceTooLowError,hc as ParseRpcError,pc as ProviderDisconnectedError,yc as ProviderRpcError,ps as RawContractError,gc as ResourceNotFoundRpcError,bc as ResourceUnavailableRpcError,wc as RpcError,sa as RpcRequestError,ei as SizeExceedsPaddingSizeError,ai as SizeOverflowError,ni as SliceOffsetOutOfBoundsError,Q as SocketClosedError,ys as SolidityProtectedKeywordError,gs as StateAssignmentConflictError,xc as SwitchChainError,aa as TimeoutError,bs as TipAboveFeeCapError,ws as TransactionExecutionError,xs as TransactionNotFoundError,Es as TransactionReceiptNotFoundError,na as TransactionRejectedRpcError,Is as TransactionTypeNotSupportedError,Ec as UnauthorizedProviderError,Ic as UnknownBundleIdError,Ts as UnknownNodeError,Tc as UnknownRpcError,Cs as UnknownSignatureError,vs as UnknownTypeError,Cc as UnsupportedChainIdError,vc as UnsupportedNonOptionalCapabilityError,ri as UnsupportedPackedAbiType,Sc as UnsupportedProviderMethodError,Be as UrlRequiredError,ra as UserRejectedRequestError,Ss as WaitForCallsStatusTimeoutError,As as WaitForTransactionReceiptTimeoutError,It as WebSocketRequestError,qt as assertCurrentChain,Rt as assertRequest,pe as assertTransactionEIP1559,ye as assertTransactionEIP2930,xe as assertTransactionLegacy,Ps as blobsToCommitments,_s as blobsToProofs,si as boolToBytes,oi as boolToHex,ii as bytesToBigInt,ci as bytesToBool,G as bytesToHex,ui as bytesToNumber,Pc as bytesToRlp,di as bytesToString,Td as ccipFetch,Cd as ccipRequest,Ve as checksumAddress,ke as commitmentToVersionedHash,Rs as commitmentsToVersionedHashes,Cr as compactSignatureToHex,Er as compactSignatureToSignature,ze as concat,mi as concatBytes,li as concatHex,At as createClient,qs as createNonceManager,Fs as createPublicClient,dr as createTestClient,mt as createTransport,mr as createWalletClient,lr as custom,Mt as decodeAbiParameters,yr as decodeDeployData,Ni as decodeErrorResult,xd as decodeEventLog,Us as decodeFunctionData,Bs as decodeFunctionResult,Li as defineBlock,Mi as defineChain,kn as defineKzg,Di as defineTransaction,_d as defineTransactionReceipt,zi as defineTransactionRequest,ks as deploylessCallViaBytecodeBytecode,Ns as deploylessCallViaFactoryBytecode,Yi as domainSeparator,fi as encodeAbiParameters,Ce as encodeDeployData,Ls as encodeErrorResult,hi as encodeEventTopics,Xt as encodeFunctionData,Ms as encodeFunctionResult,Ds as encodePacked,zs as erc1155Abi,Gs as erc20Abi,$s as erc20Abi_bytes32,Hs as erc4626Abi,Os as erc6492SignatureValidatorAbi,js as erc6492SignatureValidatorByteCode,Ws as erc721Abi,Vs as ethAddress,Ie as etherUnits,tr as extractChain,fr as fallback,Gi as formatBlock,Ks as formatEther,Js as formatGwei,Rd as formatLog,$i as formatTransaction,qd as formatTransactionReceipt,ft as formatTransactionRequest,Ys as formatUnits,gr as fromBlobs,pi as fromBytes,yi as fromHex,Dt as fromRlp,gi as getAbiItem,B as getAddress,Qs as getChainContractAddress,Zn as getContract,Xn as getContractAddress,te as getContractError,da as getCreate2Address,ua as getCreateAddress,bi as getEventSelector,wi as getEventSignature,xi as getFunctionSelector,Ei as getFunctionSignature,Pa as getSerializedTransactionType,Zs as getTransactionType,Xe as getTypesForEIP712Domain,Te as gweiUnits,Qi as hashDomain,le as hashMessage,Zi as hashStruct,Ze as hashTypedData,A as hexToBigInt,Ii as hexToBool,H as hexToBytes,Ir as hexToCompactSignature,F as hexToNumber,_c as hexToRlp,Xs as hexToSignature,Ti as hexToString,to as http,Oe as isAddress,ht as isAddressEqual,Tt as isBytes,Ca as isErc6492Signature,va as isErc8010Signature,la as isHash,E as isHex,Y as keccak256,eo as labelhash,Rc as maxInt104,qc as maxInt112,Fc as maxInt120,Uc as maxInt128,Bc as maxInt136,kc as maxInt144,Nc as maxInt152,Lc as maxInt16,Mc as maxInt160,Dc as maxInt168,zc as maxInt176,Gc as maxInt184,$c as maxInt192,Hc as maxInt200,Oc as maxInt208,jc as maxInt216,Wc as maxInt224,Vc as maxInt232,Kc as maxInt24,Jc as maxInt240,Yc as maxInt248,Qc as maxInt256,Zc as maxInt32,Xc as maxInt40,tu as maxInt48,eu as maxInt56,au as maxInt64,nu as maxInt72,ru as maxInt8,su as maxInt80,ou as maxInt88,iu as maxInt96,cu as maxUint104,uu as maxUint112,du as maxUint120,mu as maxUint128,lu as maxUint136,fu as maxUint144,hu as maxUint152,pu as maxUint16,yu as maxUint160,gu as maxUint168,bu as maxUint176,wu as maxUint184,xu as maxUint192,Eu as maxUint200,Iu as maxUint208,Tu as maxUint216,Cu as maxUint224,vu as maxUint232,Su as maxUint24,Au as maxUint240,Pu as maxUint248,_u as maxUint256,Ru as maxUint32,qu as maxUint40,Fu as maxUint48,Uu as maxUint56,Bu as maxUint64,ku as maxUint72,Nu as maxUint8,Lu as maxUint80,Mu as maxUint88,Du as maxUint96,zu as minInt104,Gu as minInt112,$u as minInt120,Hu as minInt128,Ou as minInt136,ju as minInt144,Wu as minInt152,Vu as minInt16,Ku as minInt160,Ju as minInt168,Yu as minInt176,Qu as minInt184,Zu as minInt192,Xu as minInt200,td as minInt208,ed as minInt216,ad as minInt224,nd as minInt232,rd as minInt24,sd as minInt240,od as minInt248,id as minInt256,cd as minInt32,ud as minInt40,dd as minInt48,md as minInt56,ld as minInt64,fd as minInt72,hd as minInt8,pd as minInt80,yd as minInt88,gd as minInt96,ao as multicall3Abi,no as namehash,ro as nonceManager,Ci as numberToBytes,R as numberToHex,vd as offchainLookup,Sd as offchainLookupAbiItem,Ad as offchainLookupSignature,Me as pad,vi as padBytes,xt as padHex,so as parseAbi,oo as parseAbiItem,Qn as parseAbiParameter,io as parseAbiParameters,Ir as parseCompactSignature,ar as parseErc6492Signature,nr as parseErc8010Signature,cr as parseEther,Ed as parseEventLogs,ur as parseGwei,co as parseSignature,_a as parseTransaction,Wt as parseUnits,uo as prepareEncodeFunctionData,mo as presignMessagePrefix,lo as publicActions,Z as recoverAddress,Sa as recoverMessageAddress,fo as recoverPublicKey,Tr as recoverTransactionAddress,Aa as recoverTypedDataAddress,er as ripemd160,ho as rpcSchema,Hi as rpcTransactionType,po as serializeAccessList,Cr as serializeCompactSignature,yo as serializeErc6492Signature,rr as serializeErc8010Signature,go as serializeSignature,Le as serializeTransaction,ea as serializeTypedData,Si as setErrorConfig,xr as setupKzg,bd as sha256,Fn as shouldThrow,br as sidecarsToVersionedHashes,vr as signatureToCompactSignature,bo as signatureToHex,$e as size,De as slice,Ai as sliceBytes,Lt as sliceHex,Pi as stringToBytes,Je as stringToHex,Oi as stringify,hn as testActions,ge as toBlobSidecars,wo as toBlobs,k as toBytes,wr as toCoinType,_i as toEventHash,Ri as toEventSelector,qi as toEventSignature,Fi as toFunctionHash,Ui as toFunctionSelector,Bi as toFunctionSignature,Nt as toHex,xo as toPrefixedMessage,ia as toRlp,ji as transactionType,We as trim,Eo as universalSignatureValidatorAbi,Io as universalSignatureValidatorByteCode,ta as validateTypedData,sr as verifyHash,or as verifyMessage,ir as verifyTypedData,qn as walletActions,hr as webSocket,To as weiUnits,Co as withCache,vo as withRetry,Qe as withTimeout,So as zeroAddress,Ao as zeroHash};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/native-BbO8hggJ.js","assets/sentry-B35L1FdR.js","assets/react-vyZjIDcS.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{p as gt,b as Yt,i as Qt,I as Zt,m as bt,s as ut,A as D,e as Xt,g as U,d as te,f as N,r as ee,h as ae,j as ne,k as re,w as se,n as oe,o as ie,q as ce,t as ue,v as de,u as me,x as Z,y as le,z as fe,B as he,C as $,D as pe,E as ye,F as ge,G as be,H as we,J as xe,K as Ee,L as Ie,M as Te,N as St,O as At,P as Ce,Q as Pt,R as _t,S as Rt,T as ve,U as dt,V as qt,W as Se,X as Ae,Y as Ft,Z as Pe,_ as Ut,$ as K,a0 as _e,a1 as Bt,a2 as Re,a3 as qe,a4 as mt,a5 as Fe,a6 as Ue,a7 as Be,a8 as ke,a9 as Ne,aa as kt,ab as Le}from"./parseSignature-DDbo_j_P.js";import{ac as Pr,ad as _r,ae as Rr,af as qr,ag as Fr,ah as Ur,ai as Br,aj as kr,ak as Nr,al as Lr,am as Mr,an as Dr,ao as zr,ap as Gr,aq as $r,ar as Hr,as as Or,at as jr,au as Wr,av as Vr,aw as Kr,ax as Jr,ay as Yr,az as Qr,aA as Zr,aB as Xr,aC as ts,aD as es,aE as as,aF as ns,aG as rs,aH as ss,aI as os,aJ as is,aK as cs,aL as us,aM as ds,aN as ms,aO as ls,aP as fs,aQ as hs,aR as ps,aS as ys,aT as gs,aU as bs,aV as ws,aW as xs,aX as Es,aY as Is,aZ as Ts,a_ as Cs,a$ as vs,b0 as Ss,b1 as As,b2 as Ps,b3 as _s,b4 as Rs,b5 as qs,b6 as Fs,b7 as Us,b8 as Bs,b9 as ks,ba as Ns,bb as Ls,bc as Ms,bd as Ds,be as zs,bf as Gs,bg as $s,bh as Hs,bi as Os,bj as js,bk as Ws,bl as Vs,bm as Ks,bn as Js,bo as Ys,bp as Qs,bq as Zs,br as Xs,bs as to,bt as eo,bu as ao,bv as no,bw as ro,bx as so,by as oo,bz as io,br as co,bA as uo,bB as mo,bC as lo,bD as fo,bE as ho,bF as po,bG as yo,bH as go,bH as bo,bI as wo,bJ as xo,bi as Eo,bj as Io,bK as To,bL as Co,bM as vo,bN as So,bO as Ao}from"./parseSignature-DDbo_j_P.js";import{R as k,b3 as B,S as Me,x as Y,a7 as De,w as ze,b4 as Ge,U as H,V as ct,W as G,B as lt,q as E,E as $e,a2 as He,b5 as j,a1 as wt,G as Nt,b6 as Lt,d as Mt,A as R,m as F,b7 as A,C as Oe,I as je,b8 as We,b9 as xt,y as Ve,ba as Ke,bb as Je,bc as Ye,bd as Et}from"./prepare-contract-call-BreQKHF6.js";import{be as _o,O as Ro,a8 as qo,bf as Fo,bg as Uo,bh as Bo,bi as ko,bj as No,a9 as Lo,bk as Mo,J as Do,M as zo,bl as Go,bm as $o,bn as Ho,F as Oo,Q as jo,N as Wo,bo as Vo,bp as Ko,bq as Jo,br as Yo,bs as Qo,bt as Zo,bu as Xo,bv as ti,bw as ei,bx as ai,by as ni,bz as ri,bA as si,bB as oi,bC as ii,bD as ci,bE as ui,bF as di,bG as mi,bH as li,j as fi,bI as hi,bJ as pi,bK as yi,bL as gi,K as bi,bM as wi,t as xi,bM as Ei,bN as Ii,bO as Ti,bP as Ci,bQ as vi,bR as Si,bS as Ai,bT as Pi,bU as _i,K as Ri,bM as qi,bU as Fi,t as Ui,bM as Bi}from"./prepare-contract-call-BreQKHF6.js";import{u as ft}from"./to-serializable-transaction-BeekAn8A.js";import{b as Ni,B as Li,C as Mi,D as Di,E as zi,m as Gi,n as $i,F as Hi,s as Oi,a as ji}from"./to-serializable-transaction-BeekAn8A.js";import{w as Qe,h as Ze,g as Xe,v as ta,s as ea}from"./hashTypedData-CrzHCRn3.js";import{I as Vi,a as Ki,b as Ji,d as Yi,c as Qi,e as Zi}from"./hashTypedData-CrzHCRn3.js";import{T as aa,a as Q,W as It,b as na,U as ra,R as sa}from"./rpc-B2oNfk4l.js";import{A as tc,c as ec,B as ac,C as nc,D as rc,H as sc,I as oc,d as ic,e as cc,f as uc,J as dc,L as mc,M as lc,h as fc,P as hc,i as pc,j as yc,k as gc,l as bc,m as wc,S as xc,n as Ec,o as Ic,p as Tc,q as Cc,r as vc,s as Sc}from"./rpc-B2oNfk4l.js";import{_ as oa}from"./index-C9aPSlyC.js";import{t as ia,H as ca}from"./sha256-NdAeiB0X.js";import{b as Pc,h as _c,a as Rc,c as qc,d as Fc,e as Uc,f as Bc,g as kc,i as Nc,j as Lc,k as Mc,l as Dc,n as zc,o as Gc,p as $c,q as Hc,r as Oc,u as jc,v as Wc,w as Vc,x as Kc,y as Jc,z as Yc,A as Qc,B as Zc,C as Xc,D as tu,E as eu,F as au,G as nu,I as ru,J as su,K as ou,L as iu,M as cu,N as uu,O as du,P as mu,Q as lu,R as fu,S as hu,m as pu,T as yu,U as gu,V as bu,W as wu,X as xu,Y as Eu,Z as Iu,_ as Tu,$ as Cu,a0 as vu,a1 as Su,a2 as Au,a3 as Pu,a4 as _u,a5 as Ru,a6 as qu,a7 as Fu,a8 as Uu,a9 as Bu,aa as ku,ab as Nu,ac as Lu,ad as Mu,ae as Du,af as zu,ag as Gu,ah as $u,ai as Hu,aj as Ou,ak as ju,al as Wu,am as Vu,an as Ku,ao as Ju,ap as Yu,aq as Qu,ar as Zu,as as Xu,at as td,au as ed,av as ad,aw as nd,ax as rd,ay as sd,az as od,aA as id,aB as cd,aC as ud,aD as dd,aE as md,aF as ld,aG as fd,aH as hd,aI as pd,aJ as yd,aK as gd,s as bd}from"./sha256-NdAeiB0X.js";import{i as ht}from"./get-bytecode-Bg8NviKV.js";import{d as xd,a as Ed}from"./get-bytecode-Bg8NviKV.js";import{ccipRequest as Td,ccipRequest as Cd,offchainLookup as vd,offchainLookupAbiItem as Sd,offchainLookupSignature as Ad}from"./ccip-NhvY-DuA.js";import{d as _d,a as Rd,f as qd}from"./transactionReceipt-BQu4Oof3.js";import"./utils-jd03xFBb.js";import"./sentry-B35L1FdR.js";import"./react-vyZjIDcS.js";import"./transaction-8aHmZ7ni.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-CpLYx0ea.js";import"./intl-CBcMB1D2.js";function Qn(t){let e;if(typeof t=="string")e=gt(t,{modifiers:bt});else{const a=Yt(t),n=t.length;for(let r=0;r<n;r++){const s=t[r];if(!Qt(s)){e=gt(s,{modifiers:bt,structs:a});break}}}if(!e)throw new Zt({param:t});return e}async function M(t,e){return M.internal(t,ut,"sendTransaction",e)}(function(t){async function e(a,n,r,s){const{abi:u,account:d=a.account,address:c,args:i,dataSuffix:f,functionName:l,...h}=s;if(typeof d>"u")throw new D({docsPath:"/docs/contract/writeContract"});const o=d?N(d):null,p=Xt({abi:u,args:i,functionName:l});try{return await U(a,n,r)({data:`${p}${f?f.replace("0x",""):""}`,to:c,account:o,...h})}catch(m){throw te(m,{abi:u,address:c,args:i,docsPath:"/docs/contract/writeContract",functionName:l,sender:o==null?void 0:o.address})}}t.internal=e})(M||(M={}));function Zn({abi:t,address:e,client:a}){const n=a,[r,s]=n?"public"in n&&"wallet"in n?[n.public,n.wallet]:"public"in n?[n.public,void 0]:"wallet"in n?[void 0,n.wallet]:[n,n]:[void 0,void 0],u=r!=null,d=s!=null,c={};let i=!1,f=!1,l=!1;for(const h of t)if(h.type==="function"?h.stateMutability==="view"||h.stateMutability==="pure"?i=!0:f=!0:h.type==="event"&&(l=!0),i&&f&&l)break;return u&&(i&&(c.read=new Proxy({},{get(h,o){return(...p)=>{const{args:m,options:y}=W(p);return U(r,ee,"readContract")({abi:t,address:e,functionName:o,args:m,...y})}}})),f&&(c.simulate=new Proxy({},{get(h,o){return(...p)=>{const{args:m,options:y}=W(p);return U(r,ae,"simulateContract")({abi:t,address:e,functionName:o,args:m,...y})}}})),l&&(c.createEventFilter=new Proxy({},{get(h,o){return(...p)=>{const m=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,m);return U(r,ne,"createContractEventFilter")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.getEvents=new Proxy({},{get(h,o){return(...p)=>{const m=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,m);return U(r,re,"getContractEvents")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.watchEvent=new Proxy({},{get(h,o){return(...p)=>{const m=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,m);return U(r,se,"watchContractEvent")({abi:t,address:e,eventName:o,args:y,...w})}}}))),d&&f&&(c.write=new Proxy({},{get(h,o){return(...p)=>{const{args:m,options:y}=W(p);return U(s,M,"writeContract")({abi:t,address:e,functionName:o,args:m,...y})}}})),(u||d)&&f&&(c.estimateGas=new Proxy({},{get(h,o){return(...p)=>{const{args:m,options:y}=W(p);return U(r??s,oe,"estimateContractGas")({abi:t,address:e,functionName:o,args:m,...y,account:y.account??s.account})}}})),c.address=e,c.abi=t,c}function W(t){const e=t.length&&Array.isArray(t[0]),a=e?t[0]:[],n=(e?t[1]:t[0])??{};return{args:a,options:n}}function rt(t,e){let a=!1;Array.isArray(t[0])?a=!0:t.length===1?a=e.inputs.some(s=>s.indexed):t.length===2&&(a=!0);const n=a?t[0]:void 0,r=(a?t[1]:t[0])??{};return{args:n,options:r}}function Tt(t){return!t||typeof t!="object"||!("BYTES_PER_ELEMENT"in t)?!1:t.BYTES_PER_ELEMENT===1&&t.constructor.name==="Uint8Array"}function Xn(t){return t.opcode==="CREATE2"?da(t):ua(t)}function ua(t){const e=k(B(t.from));let a=k(t.nonce);return a[0]===0&&(a=new Uint8Array([])),B(`0x${Y(ia([e,a],"bytes")).slice(26)}`)}function da(t){const e=k(B(t.from)),a=Me(Tt(t.salt)?t.salt:k(t.salt),{size:32}),n="bytecodeHash"in t?Tt(t.bytecodeHash)?t.bytecodeHash:k(t.bytecodeHash):Y(t.bytecode,"bytes");return B(De(Y(ze([k("0xff"),e,a,n])),12))}function tr({chains:t,id:e}){return t.find(a=>a.id===e)}function Dt(t,e="hex"){const a=(()=>{if(typeof t=="string"){if(t.length>3&&t.length%2!==0)throw new Ge(t);return H(t)}return t})(),n=ct(a,{recursiveReadLimit:Number.POSITIVE_INFINITY});return zt(n,e)}function zt(t,e="hex"){if(t.bytes.length===0)return e==="hex"?G(t.bytes):t.bytes;const a=t.readByte();if(a<128&&t.decrementPosition(1),a<192){const r=Ct(t,a,128),s=t.readBytes(r);return e==="hex"?G(s):s}const n=Ct(t,a,192);return ma(t,n,e)}function Ct(t,e,a){if(a===128&&e<128)return 1;if(e<=a+55)return e-a;if(e===a+55+1)return t.readUint8();if(e===a+55+2)return t.readUint16();if(e===a+55+3)return t.readUint24();if(e===a+55+4)return t.readUint32();throw new lt("Invalid RLP prefix")}function ma(t,e,a){const n=t.position,r=[];for(;t.position-n<e;)r.push(zt(t,a));return r}function la(t){return E(t)&&$e(t)===32}const fa=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Gt=Uint8Array.from(new Array(16).fill(0).map((t,e)=>e)),ha=Gt.map(t=>(9*t+5)%16),$t=(()=>{const a=[[Gt],[ha]];for(let n=0;n<4;n++)for(let r of a)r.push(r[n].map(s=>fa[s]));return a})(),Ht=$t[0],Ot=$t[1],jt=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(t=>Uint8Array.from(t)),pa=Ht.map((t,e)=>t.map(a=>jt[e][a])),ya=Ot.map((t,e)=>t.map(a=>jt[e][a])),ga=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),ba=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function vt(t,e,a,n){return t===0?e^a^n:t===1?e&a|~e&n:t===2?(e|~a)^n:t===3?e&n|a&~n:e^(a|~n)}const V=new Uint32Array(16);class wa extends ca{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:a,h2:n,h3:r,h4:s}=this;return[e,a,n,r,s]}set(e,a,n,r,s){this.h0=e|0,this.h1=a|0,this.h2=n|0,this.h3=r|0,this.h4=s|0}process(e,a){for(let o=0;o<16;o++,a+=4)V[o]=e.getUint32(a,!0);let n=this.h0|0,r=n,s=this.h1|0,u=s,d=this.h2|0,c=d,i=this.h3|0,f=i,l=this.h4|0,h=l;for(let o=0;o<5;o++){const p=4-o,m=ga[o],y=ba[o],w=Ht[o],g=Ot[o],C=pa[o],b=ya[o];for(let x=0;x<16;x++){const I=j(n+vt(o,s,d,i)+V[w[x]]+m,C[x])+l|0;n=l,l=i,i=j(d,10)|0,d=s,s=I}for(let x=0;x<16;x++){const I=j(r+vt(p,u,c,f)+V[g[x]]+y,b[x])+h|0;r=h,h=f,f=j(c,10)|0,c=u,u=I}}this.set(this.h1+d+f|0,this.h2+i+h|0,this.h3+l+r|0,this.h4+n+u|0,this.h0+s+c|0)}roundClean(){wt(V)}destroy(){this.destroyed=!0,wt(this.buffer),this.set(0,0,0,0,0)}}const xa=He(()=>new wa),Ea=xa;function er(t,e){const a=e||"hex",n=Ea(E(t,{strict:!1})?k(t):t);return a==="bytes"?n:Nt(n)}const st=new Map;async function Ia(t){const{getSocket:e,keepAlive:a=!0,key:n="socket",reconnect:r=!0,url:s}=t,{interval:u=3e4}=typeof a=="object"?a:{},{attempts:d=5,delay:c=2e3}=typeof r=="object"?r:{},i=JSON.stringify({keepAlive:a,key:n,url:s,reconnect:r});let f=st.get(i);if(f)return f;let l=0;const{schedule:h}=ie({id:i,fn:async()=>{const m=new Map,y=new Map;let w,g,C,b=!1;function x(){if(r&&l<d){if(b)return;b=!0,l++,g==null||g.close(),setTimeout(async()=>{await I().catch(console.error),b=!1},c)}else m.clear(),y.clear()}async function I(){const T=await e({onClose(){var v,P;for(const S of m.values())(v=S.onError)==null||v.call(S,new Q({url:s}));for(const S of y.values())(P=S.onError)==null||P.call(S,new Q({url:s}));x()},onError(v){var P,S;w=v;for(const _ of m.values())(P=_.onError)==null||P.call(_,w);for(const _ of y.values())(S=_.onError)==null||S.call(_,w);x()},onOpen(){w=void 0,l=0},onResponse(v){const P=v.method==="eth_subscription",S=P?v.params.subscription:v.id,_=P?y:m,q=_.get(S);q&&q.onResponse(v),P||_.delete(S)}});if(g=T,a&&(C&&clearInterval(C),C=setInterval(()=>{var v;return(v=g.ping)==null?void 0:v.call(g)},u)),r&&y.size>0){const v=y.entries();for(const[P,{onResponse:S,body:_,onError:q}]of v)_&&(y.delete(P),f==null||f.request({body:_,onResponse:S,onError:q}))}return T}return await I(),w=void 0,f={close(){C&&clearInterval(C),g.close(),st.delete(i)},get socket(){return g},request({body:T,onError:v,onResponse:P}){w&&v&&v(w);const S=T.id??ce.take(),_=q=>{var z;typeof q.id=="number"&&S!==q.id||(T.method==="eth_subscribe"&&typeof q.result=="string"&&y.set(q.result,{onResponse:_,onError:v,body:T}),T.method==="eth_unsubscribe"&&y.delete((z=T.params)==null?void 0:z[0]),P(q))};m.set(S,{onResponse:_,onError:v});try{g.request({body:{jsonrpc:"2.0",id:S,...T}})}catch(q){v==null||v(q)}},requestAsync({body:T,timeout:v=1e4}){return Qe(()=>new Promise((P,S)=>this.request({body:T,onError:S,onResponse:P})),{errorInstance:new aa({body:T,url:s}),timeout:v})},requests:m,subscriptions:y,url:s},st.set(i,f),[f]}}),[o,[p]]=await h();return p}async function J(t,e={}){const{keepAlive:a,reconnect:n}=e;return Ia({async getSocket({onClose:r,onError:s,onOpen:u,onResponse:d}){const c=await oa(()=>import("./native-BbO8hggJ.js").then(o=>o.n),__vite__mapDeps([0,1,2])).then(o=>o.WebSocket),i=new c(t);function f(){i.removeEventListener("close",f),i.removeEventListener("message",l),i.removeEventListener("error",s),i.removeEventListener("open",u),r()}function l({data:o}){if(!(typeof o=="string"&&o.trim().length===0))try{const p=JSON.parse(o);d(p)}catch(p){s(p)}}i.addEventListener("close",f),i.addEventListener("message",l),i.addEventListener("error",s),i.addEventListener("open",u),i.readyState===c.CONNECTING&&await new Promise((o,p)=>{i&&(i.onopen=o,i.onerror=p)});const{close:h}=i;return Object.assign(i,{close(){h.bind(i)(),f()},ping(){try{if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({url:i.url,cause:new Q({url:i.url})});const o={jsonrpc:"2.0",id:null,method:"net_version",params:[]};i.send(JSON.stringify(o))}catch(o){s(o)}},request({body:o}){if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({body:o,url:i.url,cause:new Q({url:i.url})});return i.send(JSON.stringify(o))}})},keepAlive:a,reconnect:n,url:t})}async function Ta(t){const e=await J(t);return Object.assign(e.socket,{requests:e.requests,subscriptions:e.subscriptions})}function Ca(t){return Lt(t,-32)===ue}function va(t){return de(t)}function ar(t){if(!Ca(t))return{signature:t};const[e,a,n]=Mt([{type:"address"},{type:"bytes"},{type:"bytes"}],t);return{address:e,data:a,signature:n}}function nr(t){if(!va(t))return{signature:t};const{authorization:e,to:a,...n}=me(t);return{authorization:{address:e.address,chainId:e.chainId,nonce:Number(e.nonce),r:R(e.r,{size:32}),s:R(e.s,{size:32}),yParity:e.yParity},...a?{address:a}:{},...n}}async function Sa({message:t,signature:e}){return Z({hash:le(t),signature:e})}async function Aa(t){const{domain:e,message:a,primaryType:n,signature:r,types:s}=t;return Z({hash:Ze({domain:e,message:a,primaryType:n,types:s}),signature:r})}function rr(t){const{address:e,data:a,signature:n,to:r="hex"}=t,s=fe({authorization:{address:t.authorization.address,chainId:t.authorization.chainId,nonce:BigInt(t.authorization.nonce),r:BigInt(t.authorization.r),s:BigInt(t.authorization.s),yParity:t.authorization.yParity},data:a,signature:n,to:e});return r==="hex"?s:H(s)}async function sr({address:t,hash:e,signature:a}){return ht(B(t),await Z({hash:e,signature:a}))}async function or({address:t,message:e,signature:a}){return ht(B(t),await Sa({message:e,signature:a}))}async function ir(t){const{address:e,domain:a,message:n,primaryType:r,signature:s,types:u}=t;return ht(B(e),await Aa({domain:a,message:n,primaryType:r,signature:s,types:u}))}function Pa(t){const e=Lt(t,0,1);if(e==="0x04")return"eip7702";if(e==="0x03")return"eip4844";if(e==="0x02")return"eip1559";if(e==="0x01")return"eip2930";if(e!=="0x"&&F(e)>=192)return"legacy";throw new he({serializedType:e})}function _a(t){const e=Pa(t);return e==="eip1559"?Fa(t):e==="eip2930"?Ua(t):e==="eip4844"?qa(t):e==="eip7702"?Ra(t):Ba(t)}function Ra(t){const e=X(t),[a,n,r,s,u,d,c,i,f,l,h,o,p]=e;if(e.length!==10&&e.length!==13)throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,authorizationList:l,...e.length>9?{v:h,r:o,s:p}:{}},serializedTransaction:t,type:"eip7702"});const m={chainId:F(a),type:"eip7702"};return E(d)&&d!=="0x"&&(m.to=d),E(u)&&u!=="0x"&&(m.gas=A(u)),E(i)&&i!=="0x"&&(m.data=i),E(n)&&(m.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(m.value=A(c)),E(s)&&s!=="0x"&&(m.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(m.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(m.accessList=tt(f)),l.length!==0&&l!=="0x"&&(m.authorizationList=ka(l)),we(m),{...e.length===13?O(e):void 0,...m}}function qa(t){const e=X(t),a=e.length===4,n=a?e[0]:e,r=a?e.slice(1):[],[s,u,d,c,i,f,l,h,o,p,m,y,w,g]=n,[C,b,x]=r;if(!(n.length===11||n.length===14))throw new $({attributes:{chainId:s,nonce:u,maxPriorityFeePerGas:d,maxFeePerGas:c,gas:i,to:f,value:l,data:h,accessList:o,...n.length>9?{v:y,r:w,s:g}:{}},serializedTransaction:t,type:"eip4844"});const I={blobVersionedHashes:m,chainId:F(s),to:f,type:"eip4844"};return E(i)&&i!=="0x"&&(I.gas=A(i)),E(h)&&h!=="0x"&&(I.data=h),E(u)&&(I.nonce=u==="0x"?0:F(u)),E(l)&&l!=="0x"&&(I.value=A(l)),E(p)&&p!=="0x"&&(I.maxFeePerBlobGas=A(p)),E(c)&&c!=="0x"&&(I.maxFeePerGas=A(c)),E(d)&&d!=="0x"&&(I.maxPriorityFeePerGas=A(d)),o.length!==0&&o!=="0x"&&(I.accessList=tt(o)),C&&b&&x&&(I.sidecars=ge({blobs:C,commitments:b,proofs:x})),be(I),{...n.length===14?O(n):void 0,...I}}function Fa(t){const e=X(t),[a,n,r,s,u,d,c,i,f,l,h,o]=e;if(!(e.length===9||e.length===12))throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,...e.length>9?{v:l,r:h,s:o}:{}},serializedTransaction:t,type:"eip1559"});const p={chainId:F(a),type:"eip1559"};return E(d)&&d!=="0x"&&(p.to=d),E(u)&&u!=="0x"&&(p.gas=A(u)),E(i)&&i!=="0x"&&(p.data=i),E(n)&&(p.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(p.value=A(c)),E(s)&&s!=="0x"&&(p.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(p.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(p.accessList=tt(f)),pe(p),{...e.length===12?O(e):void 0,...p}}function Ua(t){const e=X(t),[a,n,r,s,u,d,c,i,f,l,h]=e;if(!(e.length===8||e.length===11))throw new $({attributes:{chainId:a,nonce:n,gasPrice:r,gas:s,to:u,value:d,data:c,accessList:i,...e.length>8?{v:f,r:l,s:h}:{}},serializedTransaction:t,type:"eip2930"});const o={chainId:F(a),type:"eip2930"};return E(u)&&u!=="0x"&&(o.to=u),E(s)&&s!=="0x"&&(o.gas=A(s)),E(c)&&c!=="0x"&&(o.data=c),E(n)&&(o.nonce=n==="0x"?0:F(n)),E(d)&&d!=="0x"&&(o.value=A(d)),E(r)&&r!=="0x"&&(o.gasPrice=A(r)),i.length!==0&&i!=="0x"&&(o.accessList=tt(i)),ye(o),{...e.length===11?O(e):void 0,...o}}function Ba(t){const e=Dt(t,"hex"),[a,n,r,s,u,d,c,i,f]=e;if(!(e.length===6||e.length===9))throw new $({attributes:{nonce:a,gasPrice:n,gas:r,to:s,value:u,data:d,...e.length>6?{v:c,r:i,s:f}:{}},serializedTransaction:t,type:"legacy"});const l={type:"legacy"};if(E(s)&&s!=="0x"&&(l.to=s),E(r)&&r!=="0x"&&(l.gas=A(r)),E(d)&&d!=="0x"&&(l.data=d),E(a)&&(l.nonce=a==="0x"?0:F(a)),E(u)&&u!=="0x"&&(l.value=A(u)),E(n)&&n!=="0x"&&(l.gasPrice=A(n)),xe(l),e.length===6)return l;const h=E(c)&&c!=="0x"?A(c):0n;if(f==="0x"&&i==="0x")return h>0&&(l.chainId=Number(h)),l;const o=h,p=Number((o-35n)/2n);if(p>0)l.chainId=p;else if(o!==27n&&o!==28n)throw new Ee({v:o});return l.v=o,l.s=f,l.r=i,l.yParity=o%2n===0n?1:0,l}function X(t){return Dt(`0x${t.slice(4)}`,"hex")}function tt(t){const e=[];for(let a=0;a<t.length;a++){const[n,r]=t[a];if(!Oe(n,{strict:!1}))throw new je({address:n});e.push({address:n,storageKeys:r.map(s=>la(s)?s:We(s))})}return e}function ka(t){const e=[];for(let a=0;a<t.length;a++){const[n,r,s,u,d,c]=t[a];e.push({address:r,chainId:n==="0x"?0:F(n),nonce:s==="0x"?0:F(s),...O([u,d,c])})}return e}function O(t){const e=t.slice(-3),a=e[0]==="0x"||A(e[0])===0n?27n:28n;return{r:xt(e[1],{size:32}),s:xt(e[2],{size:32}),v:a,yParity:a===27n?0:1}}class Na extends lt{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function Wt(t,e){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(t))throw new Na({value:t});let[a,n="0"]=t.split(".");const r=a.startsWith("-");if(r&&(a=a.slice(1)),n=n.replace(/(0+)$/,""),e===0)Math.round(+`.${n}`)===1&&(a=`${BigInt(a)+1n}`),n="";else if(n.length>e){const[s,u,d]=[n.slice(0,e-1),n.slice(e-1,e),n.slice(e)],c=Math.round(+`${u}.${d}`);c>9?n=`${BigInt(s)+BigInt(1)}0`.padStart(s.length+1,"0"):n=`${s}${c}`,n.length>e&&(n=n.slice(1),a=`${BigInt(a)+1n}`),n=n.slice(0,e)}else n=n.padEnd(e,"0");return BigInt(`${r?"-":""}${a}${n}`)}function cr(t,e="wei"){return Wt(t,Ie[e])}function ur(t,e="wei"){return Wt(t,Te[e])}async function La(t,{hash:e}){await t.request({method:`${t.mode}_dropTransaction`,params:[e]})}async function Ma(t){return t.request({method:`${t.mode}_dumpState`})}async function Da(t){return t.mode==="ganache"?await t.request({method:"eth_mining"}):await t.request({method:`${t.mode}_getAutomine`})}async function za(t){return await t.request({method:"txpool_content"})}async function Ga(t){const{pending:e,queued:a}=await t.request({method:"txpool_status"});return{pending:F(e),queued:F(a)}}async function $a(t,{address:e}){await t.request({method:`${t.mode}_impersonateAccount`,params:[e]})}async function Ha(t,{seconds:e}){return await t.request({method:"evm_increaseTime",params:[R(e)]})}async function Oa(t){return await t.request({method:"txpool_inspect"})}async function ja(t,{state:e}){await t.request({method:`${t.mode}_loadState`,params:[e]})}async function Wa(t,{blocks:e,interval:a}){t.mode==="ganache"?await t.request({method:"evm_mine",params:[{blocks:R(e)}]}):await t.request({method:`${t.mode}_mine`,params:[R(e),R(a||0)]})}async function Va(t){await t.request({method:`${t.mode}_removeBlockTimestampInterval`})}async function Ka(t,{blockNumber:e,jsonRpcUrl:a}={}){await t.request({method:`${t.mode}_reset`,params:[{forking:{blockNumber:Number(e),jsonRpcUrl:a}}]})}async function Ja(t,{id:e}){await t.request({method:"evm_revert",params:[e]})}async function Ya(t,e){var w,g,C;const{accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:l,...h}=e,o=(C=(g=(w=t.chain)==null?void 0:w.formatters)==null?void 0:g.transactionRequest)==null?void 0:C.format,m=(o||ft)({...St(h,{format:o}),accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:l},"sendUnsignedTransaction");return await t.request({method:"eth_sendUnsignedTransaction",params:[m]})}async function Qa(t,e){t.mode==="ganache"?e?await t.request({method:"miner_start"}):await t.request({method:"miner_stop"}):await t.request({method:"evm_setAutomine",params:[e]})}async function Za(t,{address:e,value:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountBalance",params:[e,R(a)]}):await t.request({method:`${t.mode}_setBalance`,params:[e,R(a)]})}async function Xa(t,{gasLimit:e}){await t.request({method:"evm_setBlockGasLimit",params:[R(e)]})}async function tn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:`${t.mode}_setBlockTimestampInterval`,params:[a]})}async function en(t,{address:e,bytecode:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountCode",params:[e,a]}):await t.request({method:`${t.mode}_setCode`,params:[e,a]})}async function an(t,{address:e}){await t.request({method:`${t.mode}_setCoinbase`,params:[e]})}async function nn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:"evm_setIntervalMining",params:[a]})}async function rn(t,e){await t.request({method:`${t.mode}_setLoggingEnabled`,params:[e]})}async function sn(t,{gasPrice:e}){await t.request({method:`${t.mode}_setMinGasPrice`,params:[R(e)]})}async function on(t,{baseFeePerGas:e}){await t.request({method:`${t.mode}_setNextBlockBaseFeePerGas`,params:[R(e)]})}async function cn(t,{timestamp:e}){await t.request({method:"evm_setNextBlockTimestamp",params:[R(e)]})}async function un(t,{address:e,nonce:a}){await t.request({method:`${t.mode}_setNonce`,params:[e,R(a)]})}async function dn(t,e){await t.request({method:`${t.mode}_setRpcUrl`,params:[e]})}async function mn(t,{address:e,index:a,value:n}){await t.request({method:`${t.mode}_setStorageAt`,params:[e,typeof a=="number"?R(a):a,n]})}async function ln(t){return await t.request({method:"evm_snapshot"})}async function fn(t,{address:e}){await t.request({method:`${t.mode}_stopImpersonatingAccount`,params:[e]})}function hn({mode:t}){return e=>{const a=e.extend(()=>({mode:t}));return{dropTransaction:n=>La(a,n),dumpState:()=>Ma(a),getAutomine:()=>Da(a),getTxpoolContent:()=>za(a),getTxpoolStatus:()=>Ga(a),impersonateAccount:n=>$a(a,n),increaseTime:n=>Ha(a,n),inspectTxpool:()=>Oa(a),loadState:n=>ja(a,n),mine:n=>Wa(a,n),removeBlockTimestampInterval:()=>Va(a),reset:n=>Ka(a,n),revert:n=>Ja(a,n),sendUnsignedTransaction:n=>Ya(a,n),setAutomine:n=>Qa(a,n),setBalance:n=>Za(a,n),setBlockGasLimit:n=>Xa(a,n),setBlockTimestampInterval:n=>tn(a,n),setCode:n=>en(a,n),setCoinbase:n=>an(a,n),setIntervalMining:n=>nn(a,n),setLoggingEnabled:n=>rn(a,n),setMinGasPrice:n=>sn(a,n),setNextBlockBaseFeePerGas:n=>on(a,n),setNextBlockTimestamp:n=>cn(a,n),setNonce:n=>un(a,n),setRpcUrl:n=>dn(a,n),setStorageAt:n=>mn(a,n),snapshot:()=>ln(a),stopImpersonatingAccount:n=>fn(a,n)}}}function dr(t){const{key:e="test",name:a="Test Client",mode:n}=t;return At({...t,key:e,name:a,type:"testClient"}).extend(s=>({mode:n,...hn({mode:n})(s)}))}async function pn(t,{chain:e}){const{id:a,name:n,nativeCurrency:r,rpcUrls:s,blockExplorers:u}=e;await t.request({method:"wallet_addEthereumChain",params:[{chainId:R(a),chainName:n,nativeCurrency:r,rpcUrls:s.default.http,blockExplorerUrls:u?Object.values(u).map(({url:d})=>d):void 0}]},{dedupe:!0,retryCount:0})}function yn(t,e){const{abi:a,args:n,bytecode:r,...s}=e,u=Ce({abi:a,args:n,bytecode:r});return ut(t,{...s,...s.authorizationList?{to:null}:{},data:u})}async function gn(t){var a;return((a=t.account)==null?void 0:a.type)==="local"?[t.account.address]:(await t.request({method:"eth_accounts"},{dedupe:!0})).map(n=>Ve(n))}async function bn(t,e={}){const{account:a=t.account,chainId:n}=e,r=a?N(a):void 0,s=n?[r==null?void 0:r.address,[R(n)]]:[r==null?void 0:r.address],u=await t.request({method:"wallet_getCapabilities",params:s}),d={};for(const[c,i]of Object.entries(u)){d[Number(c)]={};for(let[f,l]of Object.entries(i))f==="addSubAccount"&&(f="unstable_addSubAccount"),d[Number(c)][f]=l}return typeof n=="number"?d[n]:d}async function wn(t){return await t.request({method:"wallet_getPermissions"},{dedupe:!0})}async function xn(t){return(await t.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(a=>B(a))}async function En(t,e){return t.request({method:"wallet_requestPermissions",params:[e]},{retryCount:0})}async function In(t,e){const{chain:a=t.chain}=e,n=e.timeout??Math.max(((a==null?void 0:a.blockTime)??0)*3,5e3),r=await Pt(t,e);return await _t(t,{...e,id:r.id,timeout:n})}const ot=new Ke(128);async function Vt(t,e){var x,I,T,v;const{account:a=t.account,chain:n=t.chain,accessList:r,authorizationList:s,blobs:u,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:l,maxPriorityFeePerGas:h,nonce:o,pollingInterval:p,throwOnReceiptRevert:m,type:y,value:w,...g}=e,C=e.timeout??Math.max(((n==null?void 0:n.blockTime)??0)*3,5e3);if(typeof a>"u")throw new D({docsPath:"/docs/actions/wallet/sendTransactionSync"});const b=a?N(a):null;try{Rt(e);const P=await(async()=>{if(e.to)return e.to;if(e.to!==null&&s&&s.length>0)return await ve({authorization:s[0]}).catch(()=>{throw new lt("`to` is required. Could not infer from `authorizationList`.")})})();if((b==null?void 0:b.type)==="json-rpc"||b===null){let S;n!==null&&(S=await U(t,dt,"getChainId")({}),qt({currentChainId:S,chain:n}));const _=(T=(I=(x=t.chain)==null?void 0:x.formatters)==null?void 0:I.transactionRequest)==null?void 0:T.format,z=(_||ft)({...St(g,{format:_}),accessList:r,account:b,authorizationList:s,blobs:u,chainId:S,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:l,maxPriorityFeePerGas:h,nonce:o,to:P,type:y,value:w},"sendTransaction"),pt=ot.get(t.uid),Kt=pt?"wallet_sendTransaction":"eth_sendTransaction",Jt=await(async()=>{try{return await t.request({method:Kt,params:[z]},{retryCount:0})}catch(yt){if(pt===!1)throw yt;const L=yt;if(L.name==="InvalidInputRpcError"||L.name==="InvalidParamsRpcError"||L.name==="MethodNotFoundRpcError"||L.name==="MethodNotSupportedRpcError")return await t.request({method:"wallet_sendTransaction",params:[z]},{retryCount:0}).then(at=>(ot.set(t.uid,!0),at)).catch(at=>{const nt=at;throw nt.name==="MethodNotFoundRpcError"||nt.name==="MethodNotSupportedRpcError"?(ot.set(t.uid,!1),L):nt});throw L}})(),et=await U(t,Se,"waitForTransactionReceipt")({checkReplacement:!1,hash:Jt,pollingInterval:p,timeout:C});if(m&&et.status==="reverted")throw new Ae({receipt:et});return et}if((b==null?void 0:b.type)==="local"){const S=await U(t,Ft,"prepareTransactionRequest")({account:b,accessList:r,authorizationList:s,blobs:u,chain:n,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:l,maxPriorityFeePerGas:h,nonce:o,nonceManager:b.nonceManager,parameters:[...Pe,"sidecars"],type:y,value:w,...g,to:P}),_=(v=n==null?void 0:n.serializers)==null?void 0:v.transaction,q=await b.signTransaction(S,{serializer:_});return await U(t,Ut,"sendRawTransactionSync")({serializedTransaction:q,throwOnReceiptRevert:m})}throw(b==null?void 0:b.type)==="smart"?new K({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new K({docsPath:"/docs/actions/wallet/sendTransactionSync",type:b==null?void 0:b.type})}catch(P){throw P instanceof K?P:_e(P,{...e,account:b,chain:e.chain||void 0})}}async function Tn(t,e){const{id:a}=e;await t.request({method:"wallet_showCallsStatus",params:[a]})}async function Cn(t,e){const{account:a=t.account}=e;if(!a)throw new D({docsPath:"/docs/eip7702/signAuthorization"});const n=N(a);if(!n.signAuthorization)throw new K({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:n.type});const r=await Bt(t,e);return n.signAuthorization(r)}async function vn(t,{account:e=t.account,message:a}){if(!e)throw new D({docsPath:"/docs/actions/wallet/signMessage"});const n=N(e);if(n.signMessage)return n.signMessage({message:a});const r=typeof a=="string"?Je(a):a.raw instanceof Uint8Array?Nt(a.raw):a.raw;return t.request({method:"personal_sign",params:[r,n.address]},{retryCount:0})}async function Sn(t,e){var i,f,l,h;const{account:a=t.account,chain:n=t.chain,...r}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTransaction"});const s=N(a);Rt({account:s,...e});const u=await U(t,dt,"getChainId")({});n!==null&&qt({currentChainId:u,chain:n});const d=(n==null?void 0:n.formatters)||((i=t.chain)==null?void 0:i.formatters),c=((f=d==null?void 0:d.transactionRequest)==null?void 0:f.format)||ft;return s.signTransaction?s.signTransaction({...r,chainId:u},{serializer:(h=(l=t.chain)==null?void 0:l.serializers)==null?void 0:h.transaction}):await t.request({method:"eth_signTransaction",params:[{...c({...r,account:s},"signTransaction"),chainId:R(u),from:s.address}]},{retryCount:0})}async function An(t,e){const{account:a=t.account,domain:n,message:r,primaryType:s}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTypedData"});const u=N(a),d={EIP712Domain:Xe({domain:n}),...e.types};if(ta({domain:n,message:r,primaryType:s,types:d}),u.signTypedData)return u.signTypedData({domain:n,message:r,primaryType:s,types:d});const c=ea({domain:n,message:r,primaryType:s,types:d});return t.request({method:"eth_signTypedData_v4",params:[u.address,c]},{retryCount:0})}async function Pn(t,{id:e}){await t.request({method:"wallet_switchEthereumChain",params:[{chainId:R(e)}]},{retryCount:0})}async function _n(t,e){return await t.request({method:"wallet_watchAsset",params:e},{retryCount:0})}async function Rn(t,e){return M.internal(t,Vt,"sendTransactionSync",e)}function qn(t){return{addChain:e=>pn(t,e),deployContract:e=>yn(t,e),getAddresses:()=>gn(t),getCallsStatus:e=>qe(t,e),getCapabilities:e=>bn(t,e),getChainId:()=>dt(t),getPermissions:()=>wn(t),prepareAuthorization:e=>Bt(t,e),prepareTransactionRequest:e=>Ft(t,e),requestAddresses:()=>xn(t),requestPermissions:e=>En(t,e),sendCalls:e=>Pt(t,e),sendCallsSync:e=>In(t,e),sendRawTransaction:e=>Re(t,e),sendRawTransactionSync:e=>Ut(t,e),sendTransaction:e=>ut(t,e),sendTransactionSync:e=>Vt(t,e),showCallsStatus:e=>Tn(t,e),signAuthorization:e=>Cn(t,e),signMessage:e=>vn(t,e),signTransaction:e=>Sn(t,e),signTypedData:e=>An(t,e),switchChain:e=>Pn(t,e),waitForCallsStatus:e=>_t(t,e),watchAsset:e=>_n(t,e),writeContract:e=>M(t,e),writeContractSync:e=>Rn(t,e)}}function mr(t){const{key:e="wallet",name:a="Wallet Client",transport:n}=t;return At({...t,key:e,name:a,transport:n,type:"walletClient"}).extend(qn)}function lr(t,e={}){const{key:a="custom",methods:n,name:r="Custom Provider",retryDelay:s}=e;return({retryCount:u})=>mt({key:a,methods:n,name:r,request:t.request.bind(t),retryCount:e.retryCount??u,retryDelay:s,type:"custom"})}function fr(t,e={}){const{key:a="fallback",name:n="Fallback",rank:r=!1,shouldThrow:s=Fn,retryCount:u,retryDelay:d}=e;return(({chain:c,pollingInterval:i=4e3,timeout:f,...l})=>{let h=t,o=()=>{};const p=mt({key:a,name:n,async request({method:m,params:y}){let w;const g=async(C=0)=>{const b=h[C]({...l,chain:c,retryCount:0,timeout:f});try{const x=await b.request({method:m,params:y});return o({method:m,params:y,response:x,transport:b,status:"success"}),x}catch(x){if(o({error:x,method:m,params:y,transport:b,status:"error"}),s(x)||C===h.length-1||(w??(w=h.slice(C+1).some(I=>{const{include:T,exclude:v}=I({chain:c}).config.methods||{};return T?T.includes(m):v?!v.includes(m):!0})),!w))throw x;return g(C+1)}};return g()},retryCount:u,retryDelay:d,type:"fallback"},{onResponse:m=>o=m,transports:h.map(m=>m({chain:c,retryCount:0}))});if(r){const m=typeof r=="object"?r:{};Un({chain:c,interval:m.interval??i,onTransports:y=>h=y,ping:m.ping,sampleCount:m.sampleCount,timeout:m.timeout,transports:h,weights:m.weights})}return p})}function Fn(t){return!!("code"in t&&typeof t.code=="number"&&(t.code===na.code||t.code===ra.code||Fe.nodeMessage.test(t.message)||t.code===5e3))}function Un({chain:t,interval:e=4e3,onTransports:a,ping:n,sampleCount:r=10,timeout:s=1e3,transports:u,weights:d={}}){const{stability:c=.7,latency:i=.3}=d,f=[],l=async()=>{const h=await Promise.all(u.map(async m=>{const y=m({chain:t,retryCount:0,timeout:s}),w=Date.now();let g,C;try{await(n?n({transport:y}):y.request({method:"net_listening"})),C=1}catch{C=0}finally{g=Date.now()}return{latency:g-w,success:C}}));f.push(h),f.length>r&&f.shift();const o=Math.max(...f.map(m=>Math.max(...m.map(({latency:y})=>y)))),p=u.map((m,y)=>{const w=f.map(I=>I[y].latency),C=1-w.reduce((I,T)=>I+T,0)/w.length/o,b=f.map(I=>I[y].success),x=b.reduce((I,T)=>I+T,0)/b.length;return x===0?[0,y]:[i*C+c*x,y]}).sort((m,y)=>y[0]-m[0]);a(p.map(([,m])=>u[m])),await Ue(e),l()};l()}function hr(t,e={}){const{keepAlive:a,key:n="webSocket",methods:r,name:s="WebSocket JSON-RPC",reconnect:u,retryDelay:d}=e;return({chain:c,retryCount:i,timeout:f})=>{var m;const l=e.retryCount??i,h=f??e.timeout??1e4,o=t||((m=c==null?void 0:c.rpcUrls.default.webSocket)==null?void 0:m[0]),p={keepAlive:a,reconnect:u};if(!o)throw new Be;return mt({key:n,methods:r,name:s,async request({method:y,params:w}){const g={method:y,params:w},C=await J(o,p),{error:b,result:x}=await C.requestAsync({body:g,timeout:h});if(b)throw new sa({body:g,error:b,url:o});return x},retryCount:l,retryDelay:d,timeout:h,type:"webSocket"},{getSocket(){return Ta(o)},getRpcClient(){return J(o,p)},async subscribe({params:y,onData:w,onError:g}){const C=await J(o,p),{result:b}=await new Promise((x,I)=>C.request({body:{method:"eth_subscribe",params:y},onError(T){I(T),g==null||g(T)},onResponse(T){if(T.error){I(T.error),g==null||g(T.error);return}if(typeof T.id=="number"){x(T);return}T.method==="eth_subscription"&&w(T.params)}}));return{subscriptionId:b,async unsubscribe(){return new Promise(x=>C.request({body:{method:"eth_unsubscribe",params:[b]},onResponse:x}))}}}})}}class pr extends Error{constructor(e,a){super(a),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=e,this.details=a}}const it="/docs/contract/decodeDeployData";function yr(t){const{abi:e,bytecode:a,data:n}=t;if(n===a)return{bytecode:a};const r=e.find(u=>"type"in u&&u.type==="constructor");if(!r)throw new Ye({docsPath:it});if(!("inputs"in r))throw new Et({docsPath:it});if(!r.inputs||r.inputs.length===0)throw new Et({docsPath:it});return{args:Mt(r.inputs,`0x${n.replace(a,"")}`),bytecode:a}}function gr(t){const e=t.to??(typeof t.blobs[0]=="string"?"hex":"bytes"),a=typeof t.blobs[0]=="string"?t.blobs.map(d=>H(d)):t.blobs,n=a.reduce((d,c)=>d+c.length,0),r=ct(new Uint8Array(n));let s=!0;for(const d of a){const c=ct(d);for(;s&&c.position<d.length;){c.incrementPosition(1);let i=31;d.length-c.position<31&&(i=d.length-c.position);for(const f in Array.from({length:i})){const l=c.readByte();if(l===128&&!c.inspectBytes(c.remaining).includes(128)){s=!1;break}r.pushByte(l)}}}const u=r.bytes.slice(0,r.position);return e==="hex"?G(u):u}function br(t){const{sidecars:e,version:a}=t,n=t.to??(typeof e[0].blob=="string"?"hex":"bytes"),r=[];for(const{commitment:s}of e)r.push(ke({commitment:s,to:n,version:a}));return r}const Bn=2147483648;function wr(t){if(t===1)return 60n;if(t>=Bn||t<0)throw new Ne({chainId:t});return BigInt((2147483648|t)>>>0)}function kn({blobToKzgCommitment:t,computeBlobKzgProof:e}){return{blobToKzgCommitment:t,computeBlobKzgProof:e}}function xr(t,e){try{t.loadTrustedSetup(e)}catch(a){const n=a;if(!n.message.includes("trusted setup is already loaded"))throw n}return kn(t)}function Er({r:t,yParityAndS:e}){const a=H(e),n=a[0]&128?1:0,r=a;return n===1&&(r[0]&=127),{r:t,s:G(r),yParity:n}}function Ir(t){const{r:e,s:a}=kt.Signature.fromCompact(t.slice(2,130));return{r:R(e,{size:32}),yParityAndS:R(a,{size:32})}}async function Tr(t){const{serializedTransaction:e,signature:a}=t,n=_a(e),r=a??{r:n.r,s:n.s,v:n.v,yParity:n.yParity},s=Le({...n,r:void 0,s:void 0,v:void 0,yParity:void 0,sidecars:void 0});return await Z({hash:Y(s),signature:r})}function Cr({r:t,yParityAndS:e}){return`0x${new kt.Signature(A(t),A(e)).toCompactHex()}`}function vr(t){const{r:e,s:a,v:n,yParity:r}=t,s=Number(r??n-27n);let u=a;if(s===1){const d=H(a);d[0]|=128,u=G(d)}return{r:e,yParityAndS:u}}export{Ye as AbiConstructorNotFoundError,Et as AbiConstructorParamsNotFoundError,_o as AbiDecodingDataSizeInvalidError,Ro as AbiDecodingDataSizeTooSmallError,qo as AbiDecodingZeroDataError,Fo as AbiEncodingArrayLengthMismatchError,Uo as AbiEncodingBytesSizeMismatchError,Bo as AbiEncodingLengthMismatchError,ko as AbiErrorInputsNotFoundError,No as AbiErrorNotFoundError,Lo as AbiErrorSignatureNotFoundError,Mo as AbiEventNotFoundError,Do as AbiEventSignatureEmptyTopicsError,zo as AbiEventSignatureNotFoundError,Go as AbiFunctionNotFoundError,$o as AbiFunctionOutputsNotFoundError,Ho as AbiFunctionSignatureNotFoundError,Pr as AccountStateConflictError,tc as AtomicReadyWalletRejectedUpgradeError,ec as AtomicityNotSupportedError,lt as BaseError,_r as BaseFeeScalarError,Rr as BlockNotFoundError,qr as BundleFailedError,ac as BundleTooLargeError,Oo as BytesSizeMismatchError,Fr as CallExecutionError,nc as ChainDisconnectedError,Ur as ChainDoesNotSupportContract,Br as ChainMismatchError,kr as ChainNotFoundError,Nr as CircularReferenceError,Lr as ClientChainNotConfiguredError,Mr as ContractFunctionExecutionError,Dr as ContractFunctionRevertedError,zr as ContractFunctionZeroDataError,Gr as CounterfactualDeploymentFailedError,jo as DecodeLogDataMismatch,Wo as DecodeLogTopicsMismatch,rc as DuplicateIdError,pr as EIP1193ProviderRpcError,$r as Eip1559FeesNotSupportedError,Hr as EnsAvatarInvalidNftUriError,Or as EnsAvatarUnsupportedNamespaceError,jr as EnsAvatarUriResolutionError,Ne as EnsInvalidChainIdError,Wr as EstimateGasExecutionError,Fe as ExecutionRevertedError,Vr as FeeCapTooHighError,Kr as FeeCapTooLowError,Jr as FeeConflictError,Vo as FilterTypeNotSupportedError,sc as HttpRequestError,Yr as InsufficientFundsError,Ko as IntegerOutOfRangeError,oc as InternalRpcError,Qr as IntrinsicGasTooHighError,Zr as IntrinsicGasTooLowError,Jo as InvalidAbiDecodingTypeError,Yo as InvalidAbiEncodingTypeError,Xr as InvalidAbiItemError,Zt as InvalidAbiParameterError,ts as InvalidAbiParametersError,es as InvalidAbiTypeParameterError,je as InvalidAddressError,Qo as InvalidArrayError,Zo as InvalidBytesBooleanError,as as InvalidChainIdError,Na as InvalidDecimalNumberError,Xo as InvalidDefinitionTypeError,Vi as InvalidDomainError,ns as InvalidFunctionModifierError,ti as InvalidHexBooleanError,Ge as InvalidHexValueError,ic as InvalidInputRpcError,Ee as InvalidLegacyVError,rs as InvalidModifierError,ss as InvalidParameterError,cc as InvalidParamsRpcError,os as InvalidParenthesisError,Ki as InvalidPrimaryTypeError,uc as InvalidRequestRpcError,is as InvalidSerializableTransactionError,$ as InvalidSerializedTransactionError,he as InvalidSerializedTransactionTypeError,cs as InvalidSignatureError,us as InvalidStorageKeySizeError,ds as InvalidStructSignatureError,Ji as InvalidStructTypeError,dc as JsonRpcVersionUnsupportedError,mc as LimitExceededRpcError,ms as MaxFeePerGasTooLowError,lc as MethodNotFoundRpcError,fc as MethodNotSupportedRpcError,ls as NonceMaxValueError,fs as NonceTooHighError,hs as NonceTooLowError,hc as ParseRpcError,pc as ProviderDisconnectedError,yc as ProviderRpcError,ps as RawContractError,gc as ResourceNotFoundRpcError,bc as ResourceUnavailableRpcError,wc as RpcError,sa as RpcRequestError,ei as SizeExceedsPaddingSizeError,ai as SizeOverflowError,ni as SliceOffsetOutOfBoundsError,Q as SocketClosedError,ys as SolidityProtectedKeywordError,gs as StateAssignmentConflictError,xc as SwitchChainError,aa as TimeoutError,bs as TipAboveFeeCapError,ws as TransactionExecutionError,xs as TransactionNotFoundError,Es as TransactionReceiptNotFoundError,na as TransactionRejectedRpcError,Is as TransactionTypeNotSupportedError,Ec as UnauthorizedProviderError,Ic as UnknownBundleIdError,Ts as UnknownNodeError,Tc as UnknownRpcError,Cs as UnknownSignatureError,vs as UnknownTypeError,Cc as UnsupportedChainIdError,vc as UnsupportedNonOptionalCapabilityError,ri as UnsupportedPackedAbiType,Sc as UnsupportedProviderMethodError,Be as UrlRequiredError,ra as UserRejectedRequestError,Ss as WaitForCallsStatusTimeoutError,As as WaitForTransactionReceiptTimeoutError,It as WebSocketRequestError,qt as assertCurrentChain,Rt as assertRequest,pe as assertTransactionEIP1559,ye as assertTransactionEIP2930,xe as assertTransactionLegacy,Ps as blobsToCommitments,_s as blobsToProofs,si as boolToBytes,oi as boolToHex,ii as bytesToBigInt,ci as bytesToBool,G as bytesToHex,ui as bytesToNumber,Pc as bytesToRlp,di as bytesToString,Td as ccipFetch,Cd as ccipRequest,Ve as checksumAddress,ke as commitmentToVersionedHash,Rs as commitmentsToVersionedHashes,Cr as compactSignatureToHex,Er as compactSignatureToSignature,ze as concat,mi as concatBytes,li as concatHex,At as createClient,qs as createNonceManager,Fs as createPublicClient,dr as createTestClient,mt as createTransport,mr as createWalletClient,lr as custom,Mt as decodeAbiParameters,yr as decodeDeployData,Ni as decodeErrorResult,xd as decodeEventLog,Us as decodeFunctionData,Bs as decodeFunctionResult,Li as defineBlock,Mi as defineChain,kn as defineKzg,Di as defineTransaction,_d as defineTransactionReceipt,zi as defineTransactionRequest,ks as deploylessCallViaBytecodeBytecode,Ns as deploylessCallViaFactoryBytecode,Yi as domainSeparator,fi as encodeAbiParameters,Ce as encodeDeployData,Ls as encodeErrorResult,hi as encodeEventTopics,Xt as encodeFunctionData,Ms as encodeFunctionResult,Ds as encodePacked,zs as erc1155Abi,Gs as erc20Abi,$s as erc20Abi_bytes32,Hs as erc4626Abi,Os as erc6492SignatureValidatorAbi,js as erc6492SignatureValidatorByteCode,Ws as erc721Abi,Vs as ethAddress,Ie as etherUnits,tr as extractChain,fr as fallback,Gi as formatBlock,Ks as formatEther,Js as formatGwei,Rd as formatLog,$i as formatTransaction,qd as formatTransactionReceipt,ft as formatTransactionRequest,Ys as formatUnits,gr as fromBlobs,pi as fromBytes,yi as fromHex,Dt as fromRlp,gi as getAbiItem,B as getAddress,Qs as getChainContractAddress,Zn as getContract,Xn as getContractAddress,te as getContractError,da as getCreate2Address,ua as getCreateAddress,bi as getEventSelector,wi as getEventSignature,xi as getFunctionSelector,Ei as getFunctionSignature,Pa as getSerializedTransactionType,Zs as getTransactionType,Xe as getTypesForEIP712Domain,Te as gweiUnits,Qi as hashDomain,le as hashMessage,Zi as hashStruct,Ze as hashTypedData,A as hexToBigInt,Ii as hexToBool,H as hexToBytes,Ir as hexToCompactSignature,F as hexToNumber,_c as hexToRlp,Xs as hexToSignature,Ti as hexToString,to as http,Oe as isAddress,ht as isAddressEqual,Tt as isBytes,Ca as isErc6492Signature,va as isErc8010Signature,la as isHash,E as isHex,Y as keccak256,eo as labelhash,Rc as maxInt104,qc as maxInt112,Fc as maxInt120,Uc as maxInt128,Bc as maxInt136,kc as maxInt144,Nc as maxInt152,Lc as maxInt16,Mc as maxInt160,Dc as maxInt168,zc as maxInt176,Gc as maxInt184,$c as maxInt192,Hc as maxInt200,Oc as maxInt208,jc as maxInt216,Wc as maxInt224,Vc as maxInt232,Kc as maxInt24,Jc as maxInt240,Yc as maxInt248,Qc as maxInt256,Zc as maxInt32,Xc as maxInt40,tu as maxInt48,eu as maxInt56,au as maxInt64,nu as maxInt72,ru as maxInt8,su as maxInt80,ou as maxInt88,iu as maxInt96,cu as maxUint104,uu as maxUint112,du as maxUint120,mu as maxUint128,lu as maxUint136,fu as maxUint144,hu as maxUint152,pu as maxUint16,yu as maxUint160,gu as maxUint168,bu as maxUint176,wu as maxUint184,xu as maxUint192,Eu as maxUint200,Iu as maxUint208,Tu as maxUint216,Cu as maxUint224,vu as maxUint232,Su as maxUint24,Au as maxUint240,Pu as maxUint248,_u as maxUint256,Ru as maxUint32,qu as maxUint40,Fu as maxUint48,Uu as maxUint56,Bu as maxUint64,ku as maxUint72,Nu as maxUint8,Lu as maxUint80,Mu as maxUint88,Du as maxUint96,zu as minInt104,Gu as minInt112,$u as minInt120,Hu as minInt128,Ou as minInt136,ju as minInt144,Wu as minInt152,Vu as minInt16,Ku as minInt160,Ju as minInt168,Yu as minInt176,Qu as minInt184,Zu as minInt192,Xu as minInt200,td as minInt208,ed as minInt216,ad as minInt224,nd as minInt232,rd as minInt24,sd as minInt240,od as minInt248,id as minInt256,cd as minInt32,ud as minInt40,dd as minInt48,md as minInt56,ld as minInt64,fd as minInt72,hd as minInt8,pd as minInt80,yd as minInt88,gd as minInt96,ao as multicall3Abi,no as namehash,ro as nonceManager,Ci as numberToBytes,R as numberToHex,vd as offchainLookup,Sd as offchainLookupAbiItem,Ad as offchainLookupSignature,Me as pad,vi as padBytes,xt as padHex,so as parseAbi,oo as parseAbiItem,Qn as parseAbiParameter,io as parseAbiParameters,Ir as parseCompactSignature,ar as parseErc6492Signature,nr as parseErc8010Signature,cr as parseEther,Ed as parseEventLogs,ur as parseGwei,co as parseSignature,_a as parseTransaction,Wt as parseUnits,uo as prepareEncodeFunctionData,mo as presignMessagePrefix,lo as publicActions,Z as recoverAddress,Sa as recoverMessageAddress,fo as recoverPublicKey,Tr as recoverTransactionAddress,Aa as recoverTypedDataAddress,er as ripemd160,ho as rpcSchema,Hi as rpcTransactionType,po as serializeAccessList,Cr as serializeCompactSignature,yo as serializeErc6492Signature,rr as serializeErc8010Signature,go as serializeSignature,Le as serializeTransaction,ea as serializeTypedData,Si as setErrorConfig,xr as setupKzg,bd as sha256,Fn as shouldThrow,br as sidecarsToVersionedHashes,vr as signatureToCompactSignature,bo as signatureToHex,$e as size,De as slice,Ai as sliceBytes,Lt as sliceHex,Pi as stringToBytes,Je as stringToHex,Oi as stringify,hn as testActions,ge as toBlobSidecars,wo as toBlobs,k as toBytes,wr as toCoinType,_i as toEventHash,Ri as toEventSelector,qi as toEventSignature,Fi as toFunctionHash,Ui as toFunctionSelector,Bi as toFunctionSignature,Nt as toHex,xo as toPrefixedMessage,ia as toRlp,ji as transactionType,We as trim,Eo as universalSignatureValidatorAbi,Io as universalSignatureValidatorByteCode,ta as validateTypedData,sr as verifyHash,or as verifyMessage,ir as verifyTypedData,qn as walletActions,hr as webSocket,To as weiUnits,Co as withCache,vo as withRetry,Qe as withTimeout,So as zeroAddress,Ao as zeroHash};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as X}from"./sentry-Dx-KuLV3.js";import{r as Zr,a as Qr,b as it,c as at,d as ft,e as st,f as ot,g as ut}from"./index-BX3lLNL7.js";import{d as Xr,e as nr}from"./ethers--abqWJu6.js";import{c as Tr}from"./react-BYHuwl8r.js";var or={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Fr;function rr(){return Fr||(Fr=1,(function(e,x){var w=Xr(),h=w.Buffer;function g(l,y){for(var f in l)y[f]=l[f]}h.from&&h.alloc&&h.allocUnsafe&&h.allocUnsafeSlow?e.exports=w:(g(w,x),x.Buffer=s);function s(l,y,f){return h(l,y,f)}s.prototype=Object.create(h.prototype),g(h,s),s.from=function(l,y,f){if(typeof l=="number")throw new TypeError("Argument must not be a number");return h(l,y,f)},s.alloc=function(l,y,f){if(typeof l!="number")throw new TypeError("Argument must be a number");var p=h(l);return y!==void 0?typeof f=="string"?p.fill(y,f):p.fill(y):p.fill(0),p},s.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return h(l)},s.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return w.SlowBuffer(l)}})(or,or.exports)),or.exports}var hr,jr;function rt(){if(jr)return hr;jr=1;var e=Zr();return hr=function(w){return!!e(w)},hr}var lr,kr;function ct(){if(kr)return lr;kr=1;var e=it(),x=Qr(),w=x("TypedArray.prototype.buffer",!0),h=rt();return lr=w||function(s){if(!h(s))throw new e("Not a Typed Array");return s.buffer},lr}var dr,Dr;function ht(){if(Dr)return dr;Dr=1;var e=rr().Buffer,x=at(),w=ct(),h=ArrayBuffer.isView||function(f){try{return w(f),!0}catch{return!1}},g=typeof Uint8Array<"u",s=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",l=s&&(e.prototype instanceof Uint8Array||e.TYPED_ARRAY_SUPPORT);return dr=function(f,p){if(e.isBuffer(f))return f.constructor&&!("isBuffer"in f)?e.from(f):f;if(typeof f=="string")return e.from(f,p);if(s&&h(f)){if(f.byteLength===0)return e.alloc(0);if(l){var b=e.from(f.buffer,f.byteOffset,f.byteLength);if(b.byteLength===f.byteLength)return b}var B=f instanceof Uint8Array?f:new Uint8Array(f.buffer,f.byteOffset,f.byteLength),u=e.from(B);if(u.length===f.byteLength)return u}if(g&&f instanceof Uint8Array)return e.from(f);var S=x(f);if(S)for(var v=0;v<f.length;v+=1){var d=f[v];if(typeof d!="number"||d<0||d>255||~~d!==d)throw new RangeError("Array items must be numbers in the range 0-255.")}if(S||e.isBuffer(f)&&f.constructor&&typeof f.constructor.isBuffer=="function"&&f.constructor.isBuffer(f))return e.from(f);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},dr}var yr={},pr={},br,Ur;function lt(){if(Ur)return br;Ur=1;const e=(function*(){}).constructor;return br=()=>e,br}var _r,Nr;function dt(){if(Nr)return _r;Nr=1;var e=Qr(),x=ot(),w=x(/^\s*(?:function)?\*/),h=ft()(),g=st(),s=e("Object.prototype.toString"),l=e("Function.prototype.toString"),y=lt();return _r=function(p){if(typeof p!="function")return!1;if(w(l(p)))return!0;if(!h){var b=s(p);return b==="[object GeneratorFunction]"}if(!g)return!1;var B=y();return B&&g(p)===B.prototype},_r}var qr;function yt(){return qr||(qr=1,(function(e){var x=ut(),w=dt(),h=Zr(),g=rt();function s(i){return i.call.bind(i)}var l=typeof BigInt<"u",y=typeof Symbol<"u",f=s(Object.prototype.toString),p=s(Number.prototype.valueOf),b=s(String.prototype.valueOf),B=s(Boolean.prototype.valueOf);if(l)var u=s(BigInt.prototype.valueOf);if(y)var S=s(Symbol.prototype.valueOf);function v(i,sr){if(typeof i!="object")return!1;try{return sr(i),!0}catch{return!1}}e.isArgumentsObject=x,e.isGeneratorFunction=w,e.isTypedArray=g;function d(i){return typeof Promise<"u"&&i instanceof Promise||i!==null&&typeof i=="object"&&typeof i.then=="function"&&typeof i.catch=="function"}e.isPromise=d;function o(i){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(i):g(i)||t(i)}e.isArrayBufferView=o;function r(i){return h(i)==="Uint8Array"}e.isUint8Array=r;function c(i){return h(i)==="Uint8ClampedArray"}e.isUint8ClampedArray=c;function _(i){return h(i)==="Uint16Array"}e.isUint16Array=_;function F(i){return h(i)==="Uint32Array"}e.isUint32Array=F;function I(i){return h(i)==="Int8Array"}e.isInt8Array=I;function j(i){return h(i)==="Int16Array"}e.isInt16Array=j;function H(i){return h(i)==="Int32Array"}e.isInt32Array=H;function N(i){return h(i)==="Float32Array"}e.isFloat32Array=N;function D(i){return h(i)==="Float64Array"}e.isFloat64Array=D;function R(i){return h(i)==="BigInt64Array"}e.isBigInt64Array=R;function V(i){return h(i)==="BigUint64Array"}e.isBigUint64Array=V;function q(i){return f(i)==="[object Map]"}q.working=typeof Map<"u"&&q(new Map);function P(i){return typeof Map>"u"?!1:q.working?q(i):i instanceof Map}e.isMap=P;function $(i){return f(i)==="[object Set]"}$.working=typeof Set<"u"&&$(new Set);function L(i){return typeof Set>"u"?!1:$.working?$(i):i instanceof Set}e.isSet=L;function M(i){return f(i)==="[object WeakMap]"}M.working=typeof WeakMap<"u"&&M(new WeakMap);function k(i){return typeof WeakMap>"u"?!1:M.working?M(i):i instanceof WeakMap}e.isWeakMap=k;function W(i){return f(i)==="[object WeakSet]"}W.working=typeof WeakSet<"u"&&W(new WeakSet);function J(i){return W(i)}e.isWeakSet=J;function z(i){return f(i)==="[object ArrayBuffer]"}z.working=typeof ArrayBuffer<"u"&&z(new ArrayBuffer);function tr(i){return typeof ArrayBuffer>"u"?!1:z.working?z(i):i instanceof ArrayBuffer}e.isArrayBuffer=tr;function Y(i){return f(i)==="[object DataView]"}Y.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Y(new DataView(new ArrayBuffer(1),0,1));function t(i){return typeof DataView>"u"?!1:Y.working?Y(i):i instanceof DataView}e.isDataView=t;var n=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function a(i){return f(i)==="[object SharedArrayBuffer]"}function E(i){return typeof n>"u"?!1:(typeof a.working>"u"&&(a.working=a(new n)),a.working?a(i):i instanceof n)}e.isSharedArrayBuffer=E;function O(i){return f(i)==="[object AsyncFunction]"}e.isAsyncFunction=O;function A(i){return f(i)==="[object Map Iterator]"}e.isMapIterator=A;function m(i){return f(i)==="[object Set Iterator]"}e.isSetIterator=m;function C(i){return f(i)==="[object Generator]"}e.isGeneratorObject=C;function T(i){return f(i)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=T;function U(i){return v(i,p)}e.isNumberObject=U;function K(i){return v(i,b)}e.isStringObject=K;function er(i){return v(i,B)}e.isBooleanObject=er;function Z(i){return l&&v(i,u)}e.isBigIntObject=Z;function ir(i){return y&&v(i,S)}e.isSymbolObject=ir;function cr(i){return U(i)||K(i)||er(i)||Z(i)||ir(i)}e.isBoxedPrimitive=cr;function fr(i){return typeof Uint8Array<"u"&&(tr(i)||E(i))}e.isAnyArrayBuffer=fr,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(i){Object.defineProperty(e,i,{enumerable:!1,value:function(){throw new Error(i+" is not supported in userland")}})})})(pr)),pr}var vr,Pr;function pt(){return Pr||(Pr=1,vr=function(x){return x&&typeof x=="object"&&typeof x.copy=="function"&&typeof x.fill=="function"&&typeof x.readUInt8=="function"}),vr}var Rr;function St(){return Rr||(Rr=1,(function(e){var x={},w=Object.getOwnPropertyDescriptors||function(n){for(var a=Object.keys(n),E={},O=0;O<a.length;O++)E[a[O]]=Object.getOwnPropertyDescriptor(n,a[O]);return E},h=/%[sdj%]/g;e.format=function(t){if(!j(t)){for(var n=[],a=0;a<arguments.length;a++)n.push(y(arguments[a]));return n.join(" ")}for(var a=1,E=arguments,O=E.length,A=String(t).replace(h,function(C){if(C==="%%")return"%";if(a>=O)return C;switch(C){case"%s":return String(E[a++]);case"%d":return Number(E[a++]);case"%j":try{return JSON.stringify(E[a++])}catch{return"[Circular]"}default:return C}}),m=E[a];a<O;m=E[++a])_(m)||!R(m)?A+=" "+m:A+=" "+y(m);return A},e.deprecate=function(t,n){if(typeof X<"u"&&X.noDeprecation===!0)return t;if(typeof X>"u")return function(){return e.deprecate(t,n).apply(this,arguments)};var a=!1;function E(){if(!a){if(X.throwDeprecation)throw new Error(n);X.traceDeprecation?console.trace(n):console.error(n),a=!0}return t.apply(this,arguments)}return E};var g={},s=/^$/;if(x.NODE_DEBUG){var l=x.NODE_DEBUG;l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+l+"$","i")}e.debuglog=function(t){if(t=t.toUpperCase(),!g[t])if(s.test(t)){var n=X.pid;g[t]=function(){var a=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,a)}}else g[t]=function(){};return g[t]};function y(t,n){var a={seen:[],stylize:p};return arguments.length>=3&&(a.depth=arguments[2]),arguments.length>=4&&(a.colors=arguments[3]),c(n)?a.showHidden=n:n&&e._extend(a,n),N(a.showHidden)&&(a.showHidden=!1),N(a.depth)&&(a.depth=2),N(a.colors)&&(a.colors=!1),N(a.customInspect)&&(a.customInspect=!0),a.colors&&(a.stylize=f),B(a,t,a.depth)}e.inspect=y,y.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},y.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function f(t,n){var a=y.styles[n];return a?"\x1B["+y.colors[a][0]+"m"+t+"\x1B["+y.colors[a][1]+"m":t}function p(t,n){return t}function b(t){var n={};return t.forEach(function(a,E){n[a]=!0}),n}function B(t,n,a){if(t.customInspect&&n&&P(n.inspect)&&n.inspect!==e.inspect&&!(n.constructor&&n.constructor.prototype===n)){var E=n.inspect(a,t);return j(E)||(E=B(t,E,a)),E}var O=u(t,n);if(O)return O;var A=Object.keys(n),m=b(A);if(t.showHidden&&(A=Object.getOwnPropertyNames(n)),q(n)&&(A.indexOf("message")>=0||A.indexOf("description")>=0))return S(n);if(A.length===0){if(P(n)){var C=n.name?": "+n.name:"";return t.stylize("[Function"+C+"]","special")}if(D(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(V(n))return t.stylize(Date.prototype.toString.call(n),"date");if(q(n))return S(n)}var T="",U=!1,K=["{","}"];if(r(n)&&(U=!0,K=["[","]"]),P(n)){var er=n.name?": "+n.name:"";T=" [Function"+er+"]"}if(D(n)&&(T=" "+RegExp.prototype.toString.call(n)),V(n)&&(T=" "+Date.prototype.toUTCString.call(n)),q(n)&&(T=" "+S(n)),A.length===0&&(!U||n.length==0))return K[0]+T+K[1];if(a<0)return D(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special");t.seen.push(n);var Z;return U?Z=v(t,n,a,m,A):Z=A.map(function(ir){return d(t,n,a,m,ir,U)}),t.seen.pop(),o(Z,T,K)}function u(t,n){if(N(n))return t.stylize("undefined","undefined");if(j(n)){var a="'"+JSON.stringify(n).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(a,"string")}if(I(n))return t.stylize(""+n,"number");if(c(n))return t.stylize(""+n,"boolean");if(_(n))return t.stylize("null","null")}function S(t){return"["+Error.prototype.toString.call(t)+"]"}function v(t,n,a,E,O){for(var A=[],m=0,C=n.length;m<C;++m)J(n,String(m))?A.push(d(t,n,a,E,String(m),!0)):A.push("");return O.forEach(function(T){T.match(/^\d+$/)||A.push(d(t,n,a,E,T,!0))}),A}function d(t,n,a,E,O,A){var m,C,T;if(T=Object.getOwnPropertyDescriptor(n,O)||{value:n[O]},T.get?T.set?C=t.stylize("[Getter/Setter]","special"):C=t.stylize("[Getter]","special"):T.set&&(C=t.stylize("[Setter]","special")),J(E,O)||(m="["+O+"]"),C||(t.seen.indexOf(T.value)<0?(_(a)?C=B(t,T.value,null):C=B(t,T.value,a-1),C.indexOf(`
|
|
1
|
+
import{p as X}from"./sentry-B35L1FdR.js";import{r as Zr,a as Qr,b as it,c as at,d as ft,e as st,f as ot,g as ut}from"./index-CcRW7qMf.js";import{d as Xr,e as nr}from"./ethers-CpLYx0ea.js";import{c as Tr}from"./react-vyZjIDcS.js";var or={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Fr;function rr(){return Fr||(Fr=1,(function(e,x){var w=Xr(),h=w.Buffer;function g(l,y){for(var f in l)y[f]=l[f]}h.from&&h.alloc&&h.allocUnsafe&&h.allocUnsafeSlow?e.exports=w:(g(w,x),x.Buffer=s);function s(l,y,f){return h(l,y,f)}s.prototype=Object.create(h.prototype),g(h,s),s.from=function(l,y,f){if(typeof l=="number")throw new TypeError("Argument must not be a number");return h(l,y,f)},s.alloc=function(l,y,f){if(typeof l!="number")throw new TypeError("Argument must be a number");var p=h(l);return y!==void 0?typeof f=="string"?p.fill(y,f):p.fill(y):p.fill(0),p},s.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return h(l)},s.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return w.SlowBuffer(l)}})(or,or.exports)),or.exports}var hr,jr;function rt(){if(jr)return hr;jr=1;var e=Zr();return hr=function(w){return!!e(w)},hr}var lr,kr;function ct(){if(kr)return lr;kr=1;var e=it(),x=Qr(),w=x("TypedArray.prototype.buffer",!0),h=rt();return lr=w||function(s){if(!h(s))throw new e("Not a Typed Array");return s.buffer},lr}var dr,Dr;function ht(){if(Dr)return dr;Dr=1;var e=rr().Buffer,x=at(),w=ct(),h=ArrayBuffer.isView||function(f){try{return w(f),!0}catch{return!1}},g=typeof Uint8Array<"u",s=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",l=s&&(e.prototype instanceof Uint8Array||e.TYPED_ARRAY_SUPPORT);return dr=function(f,p){if(e.isBuffer(f))return f.constructor&&!("isBuffer"in f)?e.from(f):f;if(typeof f=="string")return e.from(f,p);if(s&&h(f)){if(f.byteLength===0)return e.alloc(0);if(l){var b=e.from(f.buffer,f.byteOffset,f.byteLength);if(b.byteLength===f.byteLength)return b}var B=f instanceof Uint8Array?f:new Uint8Array(f.buffer,f.byteOffset,f.byteLength),u=e.from(B);if(u.length===f.byteLength)return u}if(g&&f instanceof Uint8Array)return e.from(f);var S=x(f);if(S)for(var v=0;v<f.length;v+=1){var d=f[v];if(typeof d!="number"||d<0||d>255||~~d!==d)throw new RangeError("Array items must be numbers in the range 0-255.")}if(S||e.isBuffer(f)&&f.constructor&&typeof f.constructor.isBuffer=="function"&&f.constructor.isBuffer(f))return e.from(f);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},dr}var yr={},pr={},br,Ur;function lt(){if(Ur)return br;Ur=1;const e=(function*(){}).constructor;return br=()=>e,br}var _r,Nr;function dt(){if(Nr)return _r;Nr=1;var e=Qr(),x=ot(),w=x(/^\s*(?:function)?\*/),h=ft()(),g=st(),s=e("Object.prototype.toString"),l=e("Function.prototype.toString"),y=lt();return _r=function(p){if(typeof p!="function")return!1;if(w(l(p)))return!0;if(!h){var b=s(p);return b==="[object GeneratorFunction]"}if(!g)return!1;var B=y();return B&&g(p)===B.prototype},_r}var qr;function yt(){return qr||(qr=1,(function(e){var x=ut(),w=dt(),h=Zr(),g=rt();function s(i){return i.call.bind(i)}var l=typeof BigInt<"u",y=typeof Symbol<"u",f=s(Object.prototype.toString),p=s(Number.prototype.valueOf),b=s(String.prototype.valueOf),B=s(Boolean.prototype.valueOf);if(l)var u=s(BigInt.prototype.valueOf);if(y)var S=s(Symbol.prototype.valueOf);function v(i,sr){if(typeof i!="object")return!1;try{return sr(i),!0}catch{return!1}}e.isArgumentsObject=x,e.isGeneratorFunction=w,e.isTypedArray=g;function d(i){return typeof Promise<"u"&&i instanceof Promise||i!==null&&typeof i=="object"&&typeof i.then=="function"&&typeof i.catch=="function"}e.isPromise=d;function o(i){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(i):g(i)||t(i)}e.isArrayBufferView=o;function r(i){return h(i)==="Uint8Array"}e.isUint8Array=r;function c(i){return h(i)==="Uint8ClampedArray"}e.isUint8ClampedArray=c;function _(i){return h(i)==="Uint16Array"}e.isUint16Array=_;function F(i){return h(i)==="Uint32Array"}e.isUint32Array=F;function I(i){return h(i)==="Int8Array"}e.isInt8Array=I;function j(i){return h(i)==="Int16Array"}e.isInt16Array=j;function H(i){return h(i)==="Int32Array"}e.isInt32Array=H;function N(i){return h(i)==="Float32Array"}e.isFloat32Array=N;function D(i){return h(i)==="Float64Array"}e.isFloat64Array=D;function R(i){return h(i)==="BigInt64Array"}e.isBigInt64Array=R;function V(i){return h(i)==="BigUint64Array"}e.isBigUint64Array=V;function q(i){return f(i)==="[object Map]"}q.working=typeof Map<"u"&&q(new Map);function P(i){return typeof Map>"u"?!1:q.working?q(i):i instanceof Map}e.isMap=P;function $(i){return f(i)==="[object Set]"}$.working=typeof Set<"u"&&$(new Set);function L(i){return typeof Set>"u"?!1:$.working?$(i):i instanceof Set}e.isSet=L;function M(i){return f(i)==="[object WeakMap]"}M.working=typeof WeakMap<"u"&&M(new WeakMap);function k(i){return typeof WeakMap>"u"?!1:M.working?M(i):i instanceof WeakMap}e.isWeakMap=k;function W(i){return f(i)==="[object WeakSet]"}W.working=typeof WeakSet<"u"&&W(new WeakSet);function J(i){return W(i)}e.isWeakSet=J;function z(i){return f(i)==="[object ArrayBuffer]"}z.working=typeof ArrayBuffer<"u"&&z(new ArrayBuffer);function tr(i){return typeof ArrayBuffer>"u"?!1:z.working?z(i):i instanceof ArrayBuffer}e.isArrayBuffer=tr;function Y(i){return f(i)==="[object DataView]"}Y.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Y(new DataView(new ArrayBuffer(1),0,1));function t(i){return typeof DataView>"u"?!1:Y.working?Y(i):i instanceof DataView}e.isDataView=t;var n=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function a(i){return f(i)==="[object SharedArrayBuffer]"}function E(i){return typeof n>"u"?!1:(typeof a.working>"u"&&(a.working=a(new n)),a.working?a(i):i instanceof n)}e.isSharedArrayBuffer=E;function O(i){return f(i)==="[object AsyncFunction]"}e.isAsyncFunction=O;function A(i){return f(i)==="[object Map Iterator]"}e.isMapIterator=A;function m(i){return f(i)==="[object Set Iterator]"}e.isSetIterator=m;function C(i){return f(i)==="[object Generator]"}e.isGeneratorObject=C;function T(i){return f(i)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=T;function U(i){return v(i,p)}e.isNumberObject=U;function K(i){return v(i,b)}e.isStringObject=K;function er(i){return v(i,B)}e.isBooleanObject=er;function Z(i){return l&&v(i,u)}e.isBigIntObject=Z;function ir(i){return y&&v(i,S)}e.isSymbolObject=ir;function cr(i){return U(i)||K(i)||er(i)||Z(i)||ir(i)}e.isBoxedPrimitive=cr;function fr(i){return typeof Uint8Array<"u"&&(tr(i)||E(i))}e.isAnyArrayBuffer=fr,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(i){Object.defineProperty(e,i,{enumerable:!1,value:function(){throw new Error(i+" is not supported in userland")}})})})(pr)),pr}var vr,Pr;function pt(){return Pr||(Pr=1,vr=function(x){return x&&typeof x=="object"&&typeof x.copy=="function"&&typeof x.fill=="function"&&typeof x.readUInt8=="function"}),vr}var Rr;function St(){return Rr||(Rr=1,(function(e){var x={},w=Object.getOwnPropertyDescriptors||function(n){for(var a=Object.keys(n),E={},O=0;O<a.length;O++)E[a[O]]=Object.getOwnPropertyDescriptor(n,a[O]);return E},h=/%[sdj%]/g;e.format=function(t){if(!j(t)){for(var n=[],a=0;a<arguments.length;a++)n.push(y(arguments[a]));return n.join(" ")}for(var a=1,E=arguments,O=E.length,A=String(t).replace(h,function(C){if(C==="%%")return"%";if(a>=O)return C;switch(C){case"%s":return String(E[a++]);case"%d":return Number(E[a++]);case"%j":try{return JSON.stringify(E[a++])}catch{return"[Circular]"}default:return C}}),m=E[a];a<O;m=E[++a])_(m)||!R(m)?A+=" "+m:A+=" "+y(m);return A},e.deprecate=function(t,n){if(typeof X<"u"&&X.noDeprecation===!0)return t;if(typeof X>"u")return function(){return e.deprecate(t,n).apply(this,arguments)};var a=!1;function E(){if(!a){if(X.throwDeprecation)throw new Error(n);X.traceDeprecation?console.trace(n):console.error(n),a=!0}return t.apply(this,arguments)}return E};var g={},s=/^$/;if(x.NODE_DEBUG){var l=x.NODE_DEBUG;l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+l+"$","i")}e.debuglog=function(t){if(t=t.toUpperCase(),!g[t])if(s.test(t)){var n=X.pid;g[t]=function(){var a=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,a)}}else g[t]=function(){};return g[t]};function y(t,n){var a={seen:[],stylize:p};return arguments.length>=3&&(a.depth=arguments[2]),arguments.length>=4&&(a.colors=arguments[3]),c(n)?a.showHidden=n:n&&e._extend(a,n),N(a.showHidden)&&(a.showHidden=!1),N(a.depth)&&(a.depth=2),N(a.colors)&&(a.colors=!1),N(a.customInspect)&&(a.customInspect=!0),a.colors&&(a.stylize=f),B(a,t,a.depth)}e.inspect=y,y.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},y.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function f(t,n){var a=y.styles[n];return a?"\x1B["+y.colors[a][0]+"m"+t+"\x1B["+y.colors[a][1]+"m":t}function p(t,n){return t}function b(t){var n={};return t.forEach(function(a,E){n[a]=!0}),n}function B(t,n,a){if(t.customInspect&&n&&P(n.inspect)&&n.inspect!==e.inspect&&!(n.constructor&&n.constructor.prototype===n)){var E=n.inspect(a,t);return j(E)||(E=B(t,E,a)),E}var O=u(t,n);if(O)return O;var A=Object.keys(n),m=b(A);if(t.showHidden&&(A=Object.getOwnPropertyNames(n)),q(n)&&(A.indexOf("message")>=0||A.indexOf("description")>=0))return S(n);if(A.length===0){if(P(n)){var C=n.name?": "+n.name:"";return t.stylize("[Function"+C+"]","special")}if(D(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(V(n))return t.stylize(Date.prototype.toString.call(n),"date");if(q(n))return S(n)}var T="",U=!1,K=["{","}"];if(r(n)&&(U=!0,K=["[","]"]),P(n)){var er=n.name?": "+n.name:"";T=" [Function"+er+"]"}if(D(n)&&(T=" "+RegExp.prototype.toString.call(n)),V(n)&&(T=" "+Date.prototype.toUTCString.call(n)),q(n)&&(T=" "+S(n)),A.length===0&&(!U||n.length==0))return K[0]+T+K[1];if(a<0)return D(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special");t.seen.push(n);var Z;return U?Z=v(t,n,a,m,A):Z=A.map(function(ir){return d(t,n,a,m,ir,U)}),t.seen.pop(),o(Z,T,K)}function u(t,n){if(N(n))return t.stylize("undefined","undefined");if(j(n)){var a="'"+JSON.stringify(n).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(a,"string")}if(I(n))return t.stylize(""+n,"number");if(c(n))return t.stylize(""+n,"boolean");if(_(n))return t.stylize("null","null")}function S(t){return"["+Error.prototype.toString.call(t)+"]"}function v(t,n,a,E,O){for(var A=[],m=0,C=n.length;m<C;++m)J(n,String(m))?A.push(d(t,n,a,E,String(m),!0)):A.push("");return O.forEach(function(T){T.match(/^\d+$/)||A.push(d(t,n,a,E,T,!0))}),A}function d(t,n,a,E,O,A){var m,C,T;if(T=Object.getOwnPropertyDescriptor(n,O)||{value:n[O]},T.get?T.set?C=t.stylize("[Getter/Setter]","special"):C=t.stylize("[Getter]","special"):T.set&&(C=t.stylize("[Setter]","special")),J(E,O)||(m="["+O+"]"),C||(t.seen.indexOf(T.value)<0?(_(a)?C=B(t,T.value,null):C=B(t,T.value,a-1),C.indexOf(`
|
|
2
2
|
`)>-1&&(A?C=C.split(`
|
|
3
3
|
`).map(function(U){return" "+U}).join(`
|
|
4
4
|
`).slice(2):C=`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r}from"./parseSignature-DikUb694.js";import{B as f,E as v,a as A,b as S,F as I,W as F,d as R,e as x,f as C,g as B,p as N,l as P,n as D,p as U,h as w,s as L,z as M}from"./parseSignature-DikUb694.js";import{I as k,c as z,a as q,p as V,w as O}from"./custom-BpAwBsCt.js";import{h as s}from"./W3MFrameProviderSingleton-CTol_EUI.js";import{U as j,c as W,f as K,s as Z,w as J,a as Q}from"./W3MFrameProviderSingleton-CTol_EUI.js";import{A as Y,a as _,B as $,b as aa,C as ra,D as oa,E as sa,F as ea,c as ta,H as ia,I as na,d as ca,e as da,f as Ea,g as pa,h as ua,i as la,j as ma,k as Ta,l as ga,J as ba,L as ha,M as ya,m as fa,N as va,n as Aa,o as Sa,P as Ia,p as Fa,q as Ra,R as xa,r as Ca,s as Ba,t as Na,u as Pa,S as Da,v as Ua,w as wa,x as La,T as Ma,y as Ha,z as ka,G as za,U as qa,K as Va,O as Oa,Q as Ga,V as ja,W as Wa,X as Ka,Y as Za,Z as Ja,_ as Qa,$ as Xa,a0 as Ya,a1 as _a,a2 as $a,a3 as ar,a4 as rr,a5 as or,a6 as sr,a7 as er,a8 as tr,a9 as ir,aa as nr,ab as cr,ac as dr,ad as Er,ae as pr,af as ur,ag as lr,ah as mr,ai as Tr,aj as gr,ak as br,al as hr,am as yr,an as fr,ao as vr,ap as Ar,a1 as Sr}from"./NetworkUtil-DXqql1Wz.js";import{A as Fr,a as Rr,b as xr,c as Cr,d as Br,e as Nr,f as Pr,g as Dr,h as Ur,i as wr,j as Lr,k as Mr,l as Hr,m as kr,n as zr,o as qr,p as Vr,B as Or,q as Gr,r as jr,C as Wr,s as Kr,t as Zr,u as Jr,v as Qr,w as Xr,x as Yr,y as _r,z as $r,D as ao,E as ro,F as oo,G as so,H as eo,I as to,J as io,K as no,L as co,M as Eo,N as po,O as uo,P as lo,Q as mo,R as To,S as go,T as bo,U as ho,V as yo,W as fo,X as vo,Y as Ao,Z as So,_ as Io,$ as Fo,a0 as Ro,a1 as xo,a2 as Co,a3 as Bo,a4 as No,a5 as Po,a6 as Do,a7 as Uo,a8 as wo,a9 as Lo,aa as Mo,ab as Ho,ac as ko,ad as zo,ae as qo,af as Vo,ag as Oo,ah as Go,ai as jo,aj as Wo,ak as Ko,al as Zo,am as Jo,an as Qo,ao as Xo,ap as Yo,aq as _o,ar as $o,as,at as rs,au as os,av as ss,aw as es,ax as ts,ay as is,az as ns,aA as cs,aB as ds,aC as Es,aD as ps,aE as us,aF as ls,aG as ms,aH as Ts,aI as gs,aJ as bs,aK as hs,aL as ys,aM as fs,aN as vs,aM as As,aO as Ss,aP as Is,aQ as Fs,aR as Rs,aS as xs,aT as Cs,aU as Bs,aV as Ns,aW as Ps,aX as Ds,aY as Us,aZ as ws,a_ as Ls,a$ as Ms,b0 as Hs,b1 as ks,b2 as zs,b3 as qs,b4 as Vs,aL as Os,aM as Gs,b4 as js,aN as Ws,aM as Ks,b5 as Zs,b6 as Js,aA as Qs}from"./sendRawTransaction-C0hCcwaF.js";import{I as Ys,a as _s,b as $s,g as ae,h as re,c as oe,d as se,e as ee,p as te,t as ie,v as ne}from"./hashTypedData-4FQ0aWPB.js";import{d as de,e as Ee,a as pe}from"./localBatchGatewayRequest-CMQNhumX.js";import{ccipRequest as le,ccipRequest as me,offchainLookup as Te,offchainLookupAbiItem as ge,offchainLookupSignature as be}from"./ccip-Bl6ljmaH.js";import{d as t}from"./verifyHash-u7AIFmcv.js";import{e as ye,p as fe,a as ve,s as Ae,s as Se}from"./verifyHash-u7AIFmcv.js";import{a as Fe,b as Re,c as xe,s as Ce,d as Be}from"./serializeTransaction-CTD81sCU.js";import"./secp256k1-vpgDrCPF.js";import"./dcl-schemas-BICTSpB5.js";import"./index-w01WQ1OT.js";import"./react-BYHuwl8r.js";import"./sentry-Dx-KuLV3.js";import"./index-B-BkGVd_.js";import"./events-DQ172AOg.js";import"./index-DQ6JWiqD.js";import"./ethers--abqWJu6.js";import"./intl-CBcMB1D2.js";import"./browser-ponyfill-Bfl4ugg_.js";import"./browser-ponyfill-CxIDDbrC.js";export{Fr as AbiConstructorNotFoundError,Rr as AbiConstructorParamsNotFoundError,xr as AbiDecodingDataSizeTooSmallError,Cr as AbiDecodingZeroDataError,Br as AbiEncodingArrayLengthMismatchError,Nr as AbiEncodingBytesSizeMismatchError,Pr as AbiEncodingLengthMismatchError,Dr as AbiErrorInputsNotFoundError,Ur as AbiErrorNotFoundError,wr as AbiErrorSignatureNotFoundError,Lr as AbiEventNotFoundError,Mr as AbiEventSignatureEmptyTopicsError,Hr as AbiEventSignatureNotFoundError,kr as AbiFunctionNotFoundError,zr as AbiFunctionOutputsNotFoundError,qr as AbiFunctionSignatureNotFoundError,Vr as AccountStateConflictError,Y as AtomicReadyWalletRejectedUpgradeError,_ as AtomicityNotSupportedError,$ as BaseError,Or as BaseFeeScalarError,Gr as BlockNotFoundError,f as BundleFailedError,aa as BundleTooLargeError,jr as BytesSizeMismatchError,Wr as CallExecutionError,ra as ChainDisconnectedError,Kr as ChainDoesNotSupportContract,Zr as ChainMismatchError,Jr as ChainNotFoundError,Qr as CircularReferenceError,Xr as ClientChainNotConfiguredError,Yr as ContractFunctionExecutionError,_r as ContractFunctionRevertedError,$r as ContractFunctionZeroDataError,ao as CounterfactualDeploymentFailedError,ro as DecodeLogDataMismatch,oo as DecodeLogTopicsMismatch,oa as DuplicateIdError,so as Eip1559FeesNotSupportedError,v as EnsAvatarInvalidNftUriError,A as EnsAvatarUnsupportedNamespaceError,S as EnsAvatarUriResolutionError,eo as EstimateGasExecutionError,sa as ExecutionRevertedError,ea as FeeCapTooHighError,ta as FeeCapTooLowError,I as FilterTypeNotSupportedError,ia as HttpRequestError,na as InsufficientFundsError,ca as IntegerOutOfRangeError,da as InternalRpcError,Ea as IntrinsicGasTooHighError,pa as IntrinsicGasTooLowError,to as InvalidAbiDecodingTypeError,io as InvalidAbiEncodingTypeError,no as InvalidAbiItemError,co as InvalidAbiParametersError,Eo as InvalidAbiTypeParameterError,po as InvalidAddressError,uo as InvalidArrayError,ua as InvalidBytesBooleanError,lo as InvalidChainIdError,k as InvalidDecimalNumberError,mo as InvalidDefinitionTypeError,Ys as InvalidDomainError,To as InvalidFunctionModifierError,la as InvalidHexBooleanError,ma as InvalidInputRpcError,go as InvalidLegacyVError,bo as InvalidModifierError,ho as InvalidParameterError,Ta as InvalidParamsRpcError,yo as InvalidParenthesisError,_s as InvalidPrimaryTypeError,ga as InvalidRequestRpcError,fo as InvalidSerializableTransactionError,vo as InvalidSignatureError,Ao as InvalidStorageKeySizeError,So as InvalidStructSignatureError,$s as InvalidStructTypeError,ba as JsonRpcVersionUnsupportedError,ha as LimitExceededRpcError,Io as MaxFeePerGasTooLowError,ya as MethodNotFoundRpcError,fa as MethodNotSupportedRpcError,va as NonceMaxValueError,Aa as NonceTooHighError,Sa as NonceTooLowError,Ia as ParseRpcError,Fa as ProviderDisconnectedError,Ra as ProviderRpcError,Fo as RawContractError,xa as ResourceNotFoundRpcError,Ca as ResourceUnavailableRpcError,Ba as ResponseBodyTooLargeError,Na as RpcError,Pa as RpcRequestError,Da as SizeExceedsPaddingSizeError,Ua as SizeOverflowError,wa as SliceOffsetOutOfBoundsError,Ro as SolidityProtectedKeywordError,xo as StateAssignmentConflictError,La as SwitchChainError,Ma as TimeoutError,Ha as TipAboveFeeCapError,Co as TransactionExecutionError,Bo as TransactionNotFoundError,No as TransactionReceiptNotFoundError,ka as TransactionRejectedRpcError,za as TransactionTypeNotSupportedError,qa as UnauthorizedProviderError,Va as UnknownBundleIdError,Oa as UnknownNodeError,Ga as UnknownRpcError,Po as UnknownSignatureError,Do as UnknownTypeError,ja as UnsupportedChainIdError,Wa as UnsupportedNonOptionalCapabilityError,Uo as UnsupportedPackedAbiType,Ka as UnsupportedProviderMethodError,j as UrlRequiredError,Za as UserRejectedRequestError,F as WaitForCallsStatusTimeoutError,wo as WaitForTransactionReceiptTimeoutError,Lo as assertCurrentChain,Mo as assertRequest,Fe as assertTransactionEIP1559,Re as assertTransactionEIP2930,xe as assertTransactionLegacy,Ho as blobsToCommitments,ko as blobsToProofs,Ja as boolToBytes,Qa as boolToHex,zo as bytesToBigInt,qo as bytesToBool,Xa as bytesToHex,Vo as bytesToNumber,Oo as bytesToString,le as ccipFetch,me as ccipRequest,Go as checksumAddress,jo as commitmentToVersionedHash,Wo as commitmentsToVersionedHashes,Ko as concat,Zo as concatBytes,Jo as concatHex,z as createClient,R as createNonceManager,r as createPublicClient,W as createTransport,q as custom,Qo as decodeAbiParameters,Xo as decodeErrorResult,Yo as decodeEventLog,de as decodeFunctionData,_o as decodeFunctionResult,$o as defineBlock,t as defineChain,as as defineTransaction,rs as defineTransactionReceipt,os as defineTransactionRequest,ss as deploylessCallViaBytecodeBytecode,es as deploylessCallViaFactoryBytecode,ts as encodeAbiParameters,is as encodeDeployData,Ee as encodeErrorResult,x as encodeEventTopics,ns as encodeFunctionData,pe as encodeFunctionResult,C as encodePacked,Ya as erc20Abi,_a as erc6492SignatureValidatorAbi,cs as erc6492SignatureValidatorByteCode,B as ethAddress,$a as etherUnits,ye as extendSchema,K as fallback,ds as formatBlock,Es as formatEther,ar as formatGwei,ps as formatLog,us as formatTransaction,ls as formatTransactionReceipt,ms as formatTransactionRequest,rr as formatUnits,or as fromHex,Ts as getAbiItem,gs as getAddress,bs as getChainContractAddress,hs as getContractError,ys as getEventSelector,fs as getEventSignature,vs as getFunctionSelector,As as getFunctionSignature,Ss as getTransactionType,ae as getTypesForEIP712Domain,sr as gweiUnits,re as hashDomain,oe as hashMessage,se as hashStruct,ee as hashTypedData,er as hexToBigInt,tr as hexToBool,ir as hexToBytes,nr as hexToNumber,N as hexToSignature,cr as hexToString,s as http,Is as isAddress,Fs as isAddressEqual,dr as isHex,Rs as keccak256,P as labelhash,xs as maxUint16,Cs as maxUint256,Er as multicall3Abi,D as namehash,pr as numberToBytes,ur as numberToHex,Te as offchainLookup,ge as offchainLookupAbiItem,be as offchainLookupSignature,lr as pad,mr as padBytes,Tr as padHex,Bs as parseAbi,fe as parseAbiItem,ve as parseAbiParameters,Ns as parseEventLogs,U as parseSignature,V as parseUnits,Ps as prepareEncodeFunctionData,te as presignMessagePrefix,w as publicActions,Ds as recoverAddress,Us as recoverPublicKey,ws as rpcTransactionType,Ce as serializeAccessList,L as serializeErc6492Signature,Ae as serializeSignature,Be as serializeTransaction,Ls as sha256,Z as shouldThrow,Se as signatureToHex,gr as size,Ms as slice,Hs as sliceBytes,ks as sliceHex,br as stringToBytes,hr as stringToHex,yr as stringify,zs as toBlobSidecars,qs as toBlobs,fr as toBytes,Vs as toEventHash,Os as toEventSelector,Gs as toEventSignature,js as toFunctionHash,Ws as toFunctionSelector,Ks as toFunctionSignature,vr as toHex,ie as toPrefixedMessage,Zs as toRlp,Js as transactionType,Ar as trim,Sr as universalSignatureValidatorAbi,Qs as universalSignatureValidatorByteCode,ne as validateTypedData,O as withCache,J as withRetry,Q as withTimeout,M as zeroAddress};
|
|
1
|
+
import{c as r}from"./parseSignature-Cd8xeqSc.js";import{B as f,E as v,a as A,b as S,F as I,W as F,d as R,e as x,f as C,g as B,p as N,l as P,n as D,p as U,h as w,s as L,z as M}from"./parseSignature-Cd8xeqSc.js";import{I as k,c as z,a as q,p as V,w as O}from"./custom-RQA18iWz.js";import{h as s}from"./W3MFrameProviderSingleton-CRyphTNj.js";import{U as j,c as W,f as K,s as Z,w as J,a as Q}from"./W3MFrameProviderSingleton-CRyphTNj.js";import{A as Y,a as _,B as $,b as aa,C as ra,D as oa,E as sa,F as ea,c as ta,H as ia,I as na,d as ca,e as da,f as Ea,g as pa,h as ua,i as la,j as ma,k as Ta,l as ga,J as ba,L as ha,M as ya,m as fa,N as va,n as Aa,o as Sa,P as Ia,p as Fa,q as Ra,R as xa,r as Ca,s as Ba,t as Na,u as Pa,S as Da,v as Ua,w as wa,x as La,T as Ma,y as Ha,z as ka,G as za,U as qa,K as Va,O as Oa,Q as Ga,V as ja,W as Wa,X as Ka,Y as Za,Z as Ja,_ as Qa,$ as Xa,a0 as Ya,a1 as _a,a2 as $a,a3 as ar,a4 as rr,a5 as or,a6 as sr,a7 as er,a8 as tr,a9 as ir,aa as nr,ab as cr,ac as dr,ad as Er,ae as pr,af as ur,ag as lr,ah as mr,ai as Tr,aj as gr,ak as br,al as hr,am as yr,an as fr,ao as vr,ap as Ar,a1 as Sr}from"./NetworkUtil-HlUKXKcF.js";import{A as Fr,a as Rr,b as xr,c as Cr,d as Br,e as Nr,f as Pr,g as Dr,h as Ur,i as wr,j as Lr,k as Mr,l as Hr,m as kr,n as zr,o as qr,p as Vr,B as Or,q as Gr,r as jr,C as Wr,s as Kr,t as Zr,u as Jr,v as Qr,w as Xr,x as Yr,y as _r,z as $r,D as ao,E as ro,F as oo,G as so,H as eo,I as to,J as io,K as no,L as co,M as Eo,N as po,O as uo,P as lo,Q as mo,R as To,S as go,T as bo,U as ho,V as yo,W as fo,X as vo,Y as Ao,Z as So,_ as Io,$ as Fo,a0 as Ro,a1 as xo,a2 as Co,a3 as Bo,a4 as No,a5 as Po,a6 as Do,a7 as Uo,a8 as wo,a9 as Lo,aa as Mo,ab as Ho,ac as ko,ad as zo,ae as qo,af as Vo,ag as Oo,ah as Go,ai as jo,aj as Wo,ak as Ko,al as Zo,am as Jo,an as Qo,ao as Xo,ap as Yo,aq as _o,ar as $o,as,at as rs,au as os,av as ss,aw as es,ax as ts,ay as is,az as ns,aA as cs,aB as ds,aC as Es,aD as ps,aE as us,aF as ls,aG as ms,aH as Ts,aI as gs,aJ as bs,aK as hs,aL as ys,aM as fs,aN as vs,aM as As,aO as Ss,aP as Is,aQ as Fs,aR as Rs,aS as xs,aT as Cs,aU as Bs,aV as Ns,aW as Ps,aX as Ds,aY as Us,aZ as ws,a_ as Ls,a$ as Ms,b0 as Hs,b1 as ks,b2 as zs,b3 as qs,b4 as Vs,aL as Os,aM as Gs,b4 as js,aN as Ws,aM as Ks,b5 as Zs,b6 as Js,aA as Qs}from"./sendRawTransaction-Djol22Yy.js";import{I as Ys,a as _s,b as $s,g as ae,h as re,c as oe,d as se,e as ee,p as te,t as ie,v as ne}from"./hashTypedData-BG9Q-Idk.js";import{d as de,e as Ee,a as pe}from"./localBatchGatewayRequest-CNc2tb7Q.js";import{ccipRequest as le,ccipRequest as me,offchainLookup as Te,offchainLookupAbiItem as ge,offchainLookupSignature as be}from"./ccip-DNSvOrJz.js";import{d as t}from"./verifyHash-DOqRIddZ.js";import{e as ye,p as fe,a as ve,s as Ae,s as Se}from"./verifyHash-DOqRIddZ.js";import{a as Fe,b as Re,c as xe,s as Ce,d as Be}from"./serializeTransaction-Dgv65AON.js";import"./secp256k1-E5dSGQB7.js";import"./dcl-schemas-BICTSpB5.js";import"./index-DgMAf2q5.js";import"./react-vyZjIDcS.js";import"./sentry-B35L1FdR.js";import"./index-CpgYRLFY.js";import"./events-DQ172AOg.js";import"./index-C9aPSlyC.js";import"./ethers-CpLYx0ea.js";import"./intl-CBcMB1D2.js";import"./browser-ponyfill-B4tSdV4O.js";import"./browser-ponyfill-BvriZgAo.js";export{Fr as AbiConstructorNotFoundError,Rr as AbiConstructorParamsNotFoundError,xr as AbiDecodingDataSizeTooSmallError,Cr as AbiDecodingZeroDataError,Br as AbiEncodingArrayLengthMismatchError,Nr as AbiEncodingBytesSizeMismatchError,Pr as AbiEncodingLengthMismatchError,Dr as AbiErrorInputsNotFoundError,Ur as AbiErrorNotFoundError,wr as AbiErrorSignatureNotFoundError,Lr as AbiEventNotFoundError,Mr as AbiEventSignatureEmptyTopicsError,Hr as AbiEventSignatureNotFoundError,kr as AbiFunctionNotFoundError,zr as AbiFunctionOutputsNotFoundError,qr as AbiFunctionSignatureNotFoundError,Vr as AccountStateConflictError,Y as AtomicReadyWalletRejectedUpgradeError,_ as AtomicityNotSupportedError,$ as BaseError,Or as BaseFeeScalarError,Gr as BlockNotFoundError,f as BundleFailedError,aa as BundleTooLargeError,jr as BytesSizeMismatchError,Wr as CallExecutionError,ra as ChainDisconnectedError,Kr as ChainDoesNotSupportContract,Zr as ChainMismatchError,Jr as ChainNotFoundError,Qr as CircularReferenceError,Xr as ClientChainNotConfiguredError,Yr as ContractFunctionExecutionError,_r as ContractFunctionRevertedError,$r as ContractFunctionZeroDataError,ao as CounterfactualDeploymentFailedError,ro as DecodeLogDataMismatch,oo as DecodeLogTopicsMismatch,oa as DuplicateIdError,so as Eip1559FeesNotSupportedError,v as EnsAvatarInvalidNftUriError,A as EnsAvatarUnsupportedNamespaceError,S as EnsAvatarUriResolutionError,eo as EstimateGasExecutionError,sa as ExecutionRevertedError,ea as FeeCapTooHighError,ta as FeeCapTooLowError,I as FilterTypeNotSupportedError,ia as HttpRequestError,na as InsufficientFundsError,ca as IntegerOutOfRangeError,da as InternalRpcError,Ea as IntrinsicGasTooHighError,pa as IntrinsicGasTooLowError,to as InvalidAbiDecodingTypeError,io as InvalidAbiEncodingTypeError,no as InvalidAbiItemError,co as InvalidAbiParametersError,Eo as InvalidAbiTypeParameterError,po as InvalidAddressError,uo as InvalidArrayError,ua as InvalidBytesBooleanError,lo as InvalidChainIdError,k as InvalidDecimalNumberError,mo as InvalidDefinitionTypeError,Ys as InvalidDomainError,To as InvalidFunctionModifierError,la as InvalidHexBooleanError,ma as InvalidInputRpcError,go as InvalidLegacyVError,bo as InvalidModifierError,ho as InvalidParameterError,Ta as InvalidParamsRpcError,yo as InvalidParenthesisError,_s as InvalidPrimaryTypeError,ga as InvalidRequestRpcError,fo as InvalidSerializableTransactionError,vo as InvalidSignatureError,Ao as InvalidStorageKeySizeError,So as InvalidStructSignatureError,$s as InvalidStructTypeError,ba as JsonRpcVersionUnsupportedError,ha as LimitExceededRpcError,Io as MaxFeePerGasTooLowError,ya as MethodNotFoundRpcError,fa as MethodNotSupportedRpcError,va as NonceMaxValueError,Aa as NonceTooHighError,Sa as NonceTooLowError,Ia as ParseRpcError,Fa as ProviderDisconnectedError,Ra as ProviderRpcError,Fo as RawContractError,xa as ResourceNotFoundRpcError,Ca as ResourceUnavailableRpcError,Ba as ResponseBodyTooLargeError,Na as RpcError,Pa as RpcRequestError,Da as SizeExceedsPaddingSizeError,Ua as SizeOverflowError,wa as SliceOffsetOutOfBoundsError,Ro as SolidityProtectedKeywordError,xo as StateAssignmentConflictError,La as SwitchChainError,Ma as TimeoutError,Ha as TipAboveFeeCapError,Co as TransactionExecutionError,Bo as TransactionNotFoundError,No as TransactionReceiptNotFoundError,ka as TransactionRejectedRpcError,za as TransactionTypeNotSupportedError,qa as UnauthorizedProviderError,Va as UnknownBundleIdError,Oa as UnknownNodeError,Ga as UnknownRpcError,Po as UnknownSignatureError,Do as UnknownTypeError,ja as UnsupportedChainIdError,Wa as UnsupportedNonOptionalCapabilityError,Uo as UnsupportedPackedAbiType,Ka as UnsupportedProviderMethodError,j as UrlRequiredError,Za as UserRejectedRequestError,F as WaitForCallsStatusTimeoutError,wo as WaitForTransactionReceiptTimeoutError,Lo as assertCurrentChain,Mo as assertRequest,Fe as assertTransactionEIP1559,Re as assertTransactionEIP2930,xe as assertTransactionLegacy,Ho as blobsToCommitments,ko as blobsToProofs,Ja as boolToBytes,Qa as boolToHex,zo as bytesToBigInt,qo as bytesToBool,Xa as bytesToHex,Vo as bytesToNumber,Oo as bytesToString,le as ccipFetch,me as ccipRequest,Go as checksumAddress,jo as commitmentToVersionedHash,Wo as commitmentsToVersionedHashes,Ko as concat,Zo as concatBytes,Jo as concatHex,z as createClient,R as createNonceManager,r as createPublicClient,W as createTransport,q as custom,Qo as decodeAbiParameters,Xo as decodeErrorResult,Yo as decodeEventLog,de as decodeFunctionData,_o as decodeFunctionResult,$o as defineBlock,t as defineChain,as as defineTransaction,rs as defineTransactionReceipt,os as defineTransactionRequest,ss as deploylessCallViaBytecodeBytecode,es as deploylessCallViaFactoryBytecode,ts as encodeAbiParameters,is as encodeDeployData,Ee as encodeErrorResult,x as encodeEventTopics,ns as encodeFunctionData,pe as encodeFunctionResult,C as encodePacked,Ya as erc20Abi,_a as erc6492SignatureValidatorAbi,cs as erc6492SignatureValidatorByteCode,B as ethAddress,$a as etherUnits,ye as extendSchema,K as fallback,ds as formatBlock,Es as formatEther,ar as formatGwei,ps as formatLog,us as formatTransaction,ls as formatTransactionReceipt,ms as formatTransactionRequest,rr as formatUnits,or as fromHex,Ts as getAbiItem,gs as getAddress,bs as getChainContractAddress,hs as getContractError,ys as getEventSelector,fs as getEventSignature,vs as getFunctionSelector,As as getFunctionSignature,Ss as getTransactionType,ae as getTypesForEIP712Domain,sr as gweiUnits,re as hashDomain,oe as hashMessage,se as hashStruct,ee as hashTypedData,er as hexToBigInt,tr as hexToBool,ir as hexToBytes,nr as hexToNumber,N as hexToSignature,cr as hexToString,s as http,Is as isAddress,Fs as isAddressEqual,dr as isHex,Rs as keccak256,P as labelhash,xs as maxUint16,Cs as maxUint256,Er as multicall3Abi,D as namehash,pr as numberToBytes,ur as numberToHex,Te as offchainLookup,ge as offchainLookupAbiItem,be as offchainLookupSignature,lr as pad,mr as padBytes,Tr as padHex,Bs as parseAbi,fe as parseAbiItem,ve as parseAbiParameters,Ns as parseEventLogs,U as parseSignature,V as parseUnits,Ps as prepareEncodeFunctionData,te as presignMessagePrefix,w as publicActions,Ds as recoverAddress,Us as recoverPublicKey,ws as rpcTransactionType,Ce as serializeAccessList,L as serializeErc6492Signature,Ae as serializeSignature,Be as serializeTransaction,Ls as sha256,Z as shouldThrow,Se as signatureToHex,gr as size,Ms as slice,Hs as sliceBytes,ks as sliceHex,br as stringToBytes,hr as stringToHex,yr as stringify,zs as toBlobSidecars,qs as toBlobs,fr as toBytes,Vs as toEventHash,Os as toEventSelector,Gs as toEventSignature,js as toFunctionHash,Ws as toFunctionSelector,Ks as toFunctionSignature,vr as toHex,ie as toPrefixedMessage,Zs as toRlp,Js as transactionType,Ar as trim,Sr as universalSignatureValidatorAbi,Qs as universalSignatureValidatorByteCode,ne as validateTypedData,O as withCache,J as withRetry,Q as withTimeout,M as zeroAddress};
|