@dcl/shop 0.1.0-29588647657.commit-2cc8158 → 0.1.0-29598294884.commit-796c10b

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.
Files changed (188) hide show
  1. package/assets/{AnimatedBackground-urlvv1u-.js → AnimatedBackground-C-OiTwT_.js} +3 -3
  2. package/assets/{Assets-Bgol1TFW.js → Assets-LlBezYwI.js} +1 -1
  3. package/assets/Cart-BBaYBkcV.css +1 -0
  4. package/assets/Cart-BHsLzrAp.js +1 -0
  5. package/assets/{CircularProgress-CPG7ZOfs.js → CircularProgress-dArtpO16.js} +1 -1
  6. package/assets/{Collection-oY08s2SC.js → Collection-F3rbRfOx.js} +1 -1
  7. package/assets/CollectionCarousel-B6ehNbVL.js +1 -0
  8. package/assets/CollectionCarousel-FF2VKnCi.css +1 -0
  9. package/assets/{ContentClient-CcNIfFcB.js → ContentClient-CHmx9486.js} +1 -1
  10. package/assets/{Creator-Geua9taX.js → Creator-a2mAu_fy.js} +1 -1
  11. package/assets/{CssVarsProvider-CNdYCyi9.js → CssVarsProvider-NUrRzWfI.js} +2 -2
  12. package/assets/{DeploymentBuilder-DOqh7sYP.js → DeploymentBuilder-6C4obgT_.js} +1 -1
  13. package/assets/{ExchangeController-BnfYxF48.js → ExchangeController-Dg0-A3E4.js} +1 -1
  14. package/assets/{GetCredits-COdRHzqV.js → GetCredits-CgrPoIiv.js} +1 -1
  15. package/assets/{HelpersUtil-C5w2ExFs.js → HelpersUtil-CZoh_esf.js} +1 -1
  16. package/assets/{ImportListings-B-zcLoS1.js → ImportListings-DB3QAFgV.js} +1 -1
  17. package/assets/{ItemDetail-BMi8a81V.css → ItemDetail-Bu2_xAf0.css} +1 -1
  18. package/assets/ItemDetail-DSp4r-yp.js +2 -0
  19. package/assets/{MarketCheckout-k3hh1fMb.js → MarketCheckout-Z8xqLDVD.js} +1 -1
  20. package/assets/{MyAssets-CtamOoiB.js → MyAssets-k1eod7LK.js} +1 -1
  21. package/assets/{MyFavorites-DB_RHGeZ.js → MyFavorites-BCCw7XaP.js} +1 -1
  22. package/assets/{MyPurchases-DLo5AL4P.js → MyPurchases-BUNnpOAU.js} +1 -1
  23. package/assets/{NotFound-CALTSbn3.js → NotFound-CdZzlgfI.js} +1 -1
  24. package/assets/{StoreSettings-IyPLWce9.js → StoreSettings-Df0eRihr.js} +1 -1
  25. package/assets/Success-Dv2oWuT3.js +1 -0
  26. package/assets/{SwapController-CUPcRb3X.js → SwapController-BAn_ff02.js} +1 -1
  27. package/assets/{TradeService-DE_CcjPe.js → TradeService-Bt8Tvc9u.js} +1 -1
  28. package/assets/{W3MFrameProviderSingleton-KZXDtdeN.js → W3MFrameProviderSingleton-DJ4wJ6eQ.js} +3 -3
  29. package/assets/{WebCryptoP256-CmfR3sjC.js → WebCryptoP256-RT86dqZc.js} +1 -1
  30. package/assets/{basic-CrYMfATs.js → basic-DaW-Z5Dc.js} +1 -1
  31. package/assets/{biconomy-CHSrNezt.js → biconomy-CCIerV0I.js} +1 -1
  32. package/assets/{buy-C_OnDZx3.js → buy-CK_8Gv_-.js} +1 -1
  33. package/assets/{buy-gasless-uH5qu5A8.js → buy-gasless-B0ASTVfF.js} +1 -1
  34. package/assets/{cart-checkout-DJSPllz1.js → cart-checkout-CMvQamn-.js} +1 -1
  35. package/assets/{categories-Dqa3M8i7.js → categories-DL4AAJFe.js} +1 -1
  36. package/assets/{ccip-h7KPERy4.js → ccip-CUNPu8Px.js} +1 -1
  37. package/assets/{ccip-CYomOMLt.js → ccip-kjFlAUew.js} +1 -1
  38. package/assets/collection-B_ypwwV3.js +1 -0
  39. package/assets/{controller-KHxYFosg.js → controller-CCqICKdG.js} +2 -2
  40. package/assets/{core-pBN9FKMw.js → core-7b1kcjwl.js} +4 -4
  41. package/assets/{custom-CEHsyFlW.js → custom-C02v7urp.js} +1 -1
  42. package/assets/{data-capture-BSdkL8U7.js → data-capture-voKPyp6r.js} +1 -1
  43. package/assets/decimals-BR2Fo8Uy.js +1 -0
  44. package/assets/{decimals-BA-bLcGh.js → decimals-CQH-R473.js} +1 -1
  45. package/assets/{detectExtension-G5UH8a-M.js → detectExtension-njFG0pmN.js} +1 -1
  46. package/assets/{email-BMkLtjTu.js → email-mWA25X0h.js} +1 -1
  47. package/assets/{embedded-wallet-CMLY6maG.js → embedded-wallet-CPJZ_UVU.js} +1 -1
  48. package/assets/emotion-styled.browser.esm-B4ZybID-.js +1 -0
  49. package/assets/{engine-ZKKEGTTG.js → engine-BklvI4dT.js} +1 -1
  50. package/assets/{estimate-l1-fee-XHZSoWjk.js → estimate-l1-fee-C_1YLKk9.js} +1 -1
  51. package/assets/{eth_estimateGas-Bq7UQHDY.js → eth_estimateGas-CRejf8K4.js} +1 -1
  52. package/assets/{eth_getStorageAt-DEYLIJ2f.js → eth_getStorageAt-DlRQXQWP.js} +1 -1
  53. package/assets/{eth_getTransactionCount-sK45qAke.js → eth_getTransactionCount-CttVR65L.js} +1 -1
  54. package/assets/{extractIPFS-BTNSHVMw.js → extractIPFS-lhQJFRGp.js} +1 -1
  55. package/assets/{features-jLiVGuCn.js → features-CtUcvntA.js} +1 -1
  56. package/assets/{fetchTokenMetadata-CLRXW5Ae.js → fetchTokenMetadata-DU75F_A2.js} +2 -2
  57. package/assets/get-ecosystem-wallet-info-DzHksZKi.js +1 -0
  58. package/assets/{getBalance-D85PcSgJ.js → getBalance-Bya9Y--Q.js} +1 -1
  59. package/assets/{getInstalledModules-BbkWCUI_.js → getInstalledModules-D5QmPDBR.js} +1 -1
  60. package/assets/{getNFT-Ba-KxS5w.js → getNFT-CRTdCPiY.js} +1 -1
  61. package/assets/{getNFT-CpSdZEPv.js → getNFT-DgDEOkwr.js} +2 -2
  62. package/assets/{getOverlayAlpha-CPeU_wtJ.js → getOverlayAlpha-nRpMWuqq.js} +1 -1
  63. package/assets/{hashTypedData-BiAfRLxc.js → hashTypedData-BKIW0_QT.js} +1 -1
  64. package/assets/{hashTypedData-_My6_zHk.js → hashTypedData-rbqmjDS9.js} +1 -1
  65. package/assets/{import-BM47oMM1.js → import-BpP341-q.js} +1 -1
  66. package/assets/{in-app-wallet-calls-DB4mrEuh.js → in-app-wallet-calls-kb5cpJBB.js} +1 -1
  67. package/assets/{index-CGf6vfVT.js → index-59dY-O7-.js} +1 -1
  68. package/assets/{index-D8XdtECa.js → index-B5dw0psc.js} +1 -1
  69. package/assets/{index-C8L1dg3z.js → index-B5p8pUge.js} +1 -1
  70. package/assets/{index-DqO1kUFU.js → index-B671RqnK.js} +1 -1
  71. package/assets/{index-DYJHRYX4.js → index-B7UojGOz.js} +2 -2
  72. package/assets/{index-D8bR8hF2.js → index-B8XnKIzQ.js} +1 -1
  73. package/assets/{index-BE03Fup7.js → index-BB04C8i8.js} +1 -1
  74. package/assets/{index-B9Xqc0Hi.js → index-BBU85IYf.js} +2 -2
  75. package/assets/{index-BvJT7BsV.js → index-BH3tdIod.js} +1 -1
  76. package/assets/{index-7a1mhp_I.js → index-BJClelBo.js} +1 -1
  77. package/assets/{index-BNhDGSX8.js → index-BPL_lEQp.js} +1 -1
  78. package/assets/{index-Bi6W-t7S.js → index-BVBZ2zPc.js} +1 -1
  79. package/assets/{index-DhmytMhG.js → index-BXhZS_AN.js} +1 -1
  80. package/assets/{index-BvrUtN1i.js → index-BY4MKlVU.js} +1 -1
  81. package/assets/{index-Ncc_A7mr.js → index-Ba4mXEAV.js} +1 -1
  82. package/assets/{index-CSy-_M5R.js → index-BdITvbLZ.js} +1 -1
  83. package/assets/{index-B4HZUf7-.js → index-Bd_IAGP4.js} +1 -1
  84. package/assets/{index-B1e1ZADY.js → index-BiazdCZB.js} +1 -1
  85. package/assets/{index-COmrTRgF.js → index-BkzieXvc.js} +1 -1
  86. package/assets/{index-DMU6YRL7.js → index-BosG_Hic.js} +1 -1
  87. package/assets/{index-Dy65iyWb.js → index-BpdGuzAP.js} +1 -1
  88. package/assets/{index-DPAyBtUP.js → index-BuJtW-3X.js} +1 -1
  89. package/assets/{index-X5dRqFqG.js → index-BuvUlkht.js} +1 -1
  90. package/assets/{index-C0OEAd0W.js → index-C0rWirY0.js} +1 -1
  91. package/assets/{index-Df8J_8ta.js → index-CAIuPn4q.js} +3 -3
  92. package/assets/{index-oExJUWSQ.js → index-CAhWUgSV.js} +1 -1
  93. package/assets/{index-2lgRM28O.js → index-CJ7Zrqys.js} +1 -1
  94. package/assets/{index-COd6Hpl3.js → index-C_RhfNpS.js} +1 -1
  95. package/assets/{index-eL578oJV.js → index-Cc89QD8-.js} +1 -1
  96. package/assets/{index-DMWWvHVt.js → index-CfEuhodX.js} +1 -1
  97. package/assets/{index-Bwj5NrhW.js → index-CjWVGgkX.js} +1 -1
  98. package/assets/{index-BS31iF_T.js → index-Clv1kOTk.js} +1 -1
  99. package/assets/{index-xVgoxgG9.js → index-D0Qxhd6I.js} +1 -1
  100. package/assets/{index-DUwiQnps.js → index-DAh057md.js} +1 -1
  101. package/assets/{index-DMLSNnyb.js → index-DHLTDjWC.js} +1 -1
  102. package/assets/{index-fJZF9Wlt.js → index-DHaPmJI4.js} +1 -1
  103. package/assets/{index-BhW68dt9.js → index-DJFIkOB0.js} +1 -1
  104. package/assets/{index-C-GvP7Ri.js → index-DQNOvBBK.js} +1 -1
  105. package/assets/{index-T4DqOE4M.js → index-DUBd_edo.js} +1 -1
  106. package/assets/{index-BQzrms9Y.js → index-DUrbPJsZ.js} +1 -1
  107. package/assets/{index-Ct5KJb97.js → index-DVAx1hg9.js} +1 -1
  108. package/assets/{index-pOWOYTZf.js → index-DYHpzz6b.js} +1 -1
  109. package/assets/{index-C1L7bhks.js → index-DZSo3rng.js} +1 -1
  110. package/assets/{index-0YKOyKsz.js → index-DZkr5cbg.js} +1 -1
  111. package/assets/{index-Bs2u8R9P.js → index-DcWPLLKy.js} +1 -1
  112. package/assets/{index-CRWbHzp3.js → index-Df4Xuchc.js} +1 -1
  113. package/assets/{index-DWVC6kWx.js → index-DjtmxbWx.js} +1 -1
  114. package/assets/{index-CWkyddUj.js → index-DkZCrX_a.js} +1 -1
  115. package/assets/{index-1w11c9kT.js → index-Ds3LeGS0.js} +1 -1
  116. package/assets/{index-Dih2AmlD.js → index-Dtzc2-_5.js} +1 -1
  117. package/assets/{index-wsdLqN_j.js → index-GBq5vmD5.js} +2 -2
  118. package/assets/{index-BUYyFeCt.js → index-H1GdZQCE.js} +2 -2
  119. package/assets/{index-C-uQhIOu.js → index-HNkFQ8e1.js} +3 -3
  120. package/assets/{index-BseAK0jv.js → index-KQXKEiRO.js} +1 -1
  121. package/assets/{index-BY2ihj74.js → index-QTshBzMT.js} +1 -1
  122. package/assets/{index-BAYW-Y7J.css → index-jbcqNek9.css} +1 -1
  123. package/assets/{index-XztZBEgs.js → index-l2k0682u.js} +3 -3
  124. package/assets/{index-CYWpV70P.js → index-r45SswES.js} +6 -6
  125. package/assets/{index.es-CAdXWwOm.js → index.es-CEEtvWyE.js} +4 -4
  126. package/assets/{index.es-CsD1tXVc.js → index.es-CZNkKIA6.js} +1 -1
  127. package/assets/{index.es-CiB5ifZN.js → index.es-D2H6ESNG.js} +1 -1
  128. package/assets/{localBatchGatewayRequest--Sv8eIOm.js → localBatchGatewayRequest-CX4Kfpwl.js} +1 -1
  129. package/assets/{mana-rate-DgCtJ5pM.js → mana-rate-iNhXq7r-.js} +1 -1
  130. package/assets/network-B5C8b3kZ.js +1 -0
  131. package/assets/{networks-BqVCrj8Y.js → networks-CYqUz454.js} +1 -1
  132. package/assets/{onramp-CBfgz1Ty.js → onramp-CC5CpnYg.js} +1 -1
  133. package/assets/{openzeppelin-D2z1DmVV.js → openzeppelin-mb8eXngw.js} +1 -1
  134. package/assets/{ownerOf-DFlcEy6_.js → ownerOf-DkeEezhR.js} +1 -1
  135. package/assets/{parseNft-msnZvn_A.js → parseNft-C1e4MyGM.js} +2 -2
  136. package/assets/{parseSignature-CjbZVQR3.js → parseSignature-CK3NvtCE.js} +1 -1
  137. package/assets/{parseSignature-DEAl-96W.js → parseSignature-Wiw0A1vU.js} +3 -3
  138. package/assets/{pay-with-exchange-CRwxKD_d.js → pay-with-exchange-fxRG6paS.js} +1 -1
  139. package/assets/{payments-CFEkq9jj.js → payments-D_1c4Q0E.js} +1 -1
  140. package/assets/{qr-overlay-CS6qAFtp.js → qr-overlay-ajo1zJy5.js} +1 -1
  141. package/assets/{receive-D_7ieG-4.js → receive-DVkuHUgY.js} +1 -1
  142. package/assets/{resolveImplementation-BxK03jeA.js → resolveImplementation-CdLMHxJj.js} +1 -1
  143. package/assets/{rpc-Cd5PGlK-.js → rpc-D2IBy_U1.js} +1 -1
  144. package/assets/{secp256k1-D5XG5Cq2.js → secp256k1-BQuggIky.js} +1 -1
  145. package/assets/{secp256k1-BDhwR6SH.js → secp256k1-Dm9YAkWu.js} +1 -1
  146. package/assets/{secp256k1-D_53A2qu.js → secp256k1-GotX1mTh.js} +1 -1
  147. package/assets/{send--YozeJBn.js → send-CI1L6iNB.js} +1 -1
  148. package/assets/{send-batch-transaction-DiGyQeR5.js → send-batch-transaction-CASuhouL.js} +1 -1
  149. package/assets/{send-eip712-transaction-Dqu8RfN0.js → send-eip712-transaction-35qar9DH.js} +2 -2
  150. package/assets/{send-gasless-transaction-B5uz3mX0.js → send-gasless-transaction-B7r24MkK.js} +2 -2
  151. package/assets/{sendRawTransaction-rRmixG-d.js → sendRawTransaction-BckXqylS.js} +3 -3
  152. package/assets/{serializeTransaction-CzGG2kBz.js → serializeTransaction-jUNyAIgS.js} +1 -1
  153. package/assets/{session-proposal-CCHvDJo0.js → session-proposal-Cs3jrnoO.js} +1 -1
  154. package/assets/{session-request-BkhA5-RY.js → session-request-CYnKGzzH.js} +2 -2
  155. package/assets/{sha256-Bt6mLy1E.js → sha256-B_-G--k2.js} +1 -1
  156. package/assets/{signing-BwuIt3X5.js → signing-DuFbSjik.js} +4 -4
  157. package/assets/{socials-BStKssws.js → socials-Yv1nD9G2.js} +1 -1
  158. package/assets/{swaps-Bid0ju8o.js → swaps-Dr9lB7W5.js} +1 -1
  159. package/assets/{thirdweb-BMJ7fr_N.js → thirdweb-CrBUG3V0.js} +3 -3
  160. package/assets/{totalSupply--8jNML7t.js → totalSupply-DCB7wJEJ.js} +1 -1
  161. package/assets/{trade-encoding-Drnx1u3j.js → trade-encoding-04aPoKGq.js} +1 -1
  162. package/assets/{transactionReceipt-C1w204dJ.js → transactionReceipt-RIlE96Mf.js} +1 -1
  163. package/assets/{transactions-KwvVTP9x.js → transactions-COJR6OXM.js} +1 -1
  164. package/assets/{useInfiniteGrid-BAS-zEte.js → useInfiniteGrid-BebS5lWt.js} +1 -1
  165. package/assets/{useStore-D0Fp5fnX.js → useStore-D3W2cLwe.js} +2 -2
  166. package/assets/{useTheme-DU7pyJai.js → useTheme-B1I-qqVe.js} +1 -1
  167. package/assets/useTheme-BMWEIcbK.js +1 -0
  168. package/assets/{verifyHash-yypMHIUe.js → verifyHash-Cz68jK0S.js} +1 -1
  169. package/assets/{w3m-modal-D4BKzcIi.js → w3m-modal-BUoJMaFN.js} +1 -1
  170. package/assets/{w3m-modal-Cf0rHk1f.js → w3m-modal-DN3kAovw.js} +1 -1
  171. package/assets/{wait-for-tx-receipt-Dq_saZBt.js → wait-for-tx-receipt-BE6V8Tcx.js} +1 -1
  172. package/assets/{wallet-kind-D_7fqJZh.js → wallet-kind-BUfXt6vu.js} +1 -1
  173. package/assets/{wallets-DthYtMmh.js → wallets-B5j8uvbG.js} +6 -6
  174. package/assets/{web-connector-Cahc_-N0.js → web-connector-CwdBK-54.js} +3 -3
  175. package/assets/{writeContract-CYBPanmL.js → writeContract-DU0rJzSn.js} +1 -1
  176. package/assets/{zoraTestnet-CupsSsoK.js → zoraTestnet-CjGSh-kA.js} +1 -1
  177. package/index.html +8 -8
  178. package/package.json +2 -2
  179. package/assets/Cart-BLK0NtgY.js +0 -1
  180. package/assets/Cart-C612IvK3.css +0 -1
  181. package/assets/ItemDetail-BEVnVvI_.js +0 -2
  182. package/assets/Success-CPrrgz5q.js +0 -1
  183. package/assets/collection-DOsbvafd.js +0 -1
  184. package/assets/decimals-CwI_mnkm.js +0 -1
  185. package/assets/emotion-styled.browser.esm-Bcg9MXM8.js +0 -1
  186. package/assets/get-ecosystem-wallet-info-HaXmkjKB.js +0 -1
  187. package/assets/network-DRGleXEI.js +0 -1
  188. package/assets/useTheme-CBsdNYl2.js +0 -1
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/add-gtH78Af8.js","assets/lit-element-B3y9oplH.js","assets/all-wallets-Bu4MasoZ.js","assets/arrow-bottom-circle-Bm7U8Xm5.js","assets/app-store-geBbzx8r.js","assets/apple-DbX-KO3Q.js","assets/arrow-bottom-NgyJiryy.js","assets/arrow-left-Bx8XJo4p.js","assets/arrow-right-CpmwAcz3.js","assets/arrow-top-CXuApiRq.js","assets/bank-B-AtGavB.js","assets/browser-GaKxoKgI.js","assets/card-DY_lirot.js","assets/checkmark-B_Gn6_T7.js","assets/checkmark-bold-B4Vhr71f.js","assets/chevron-bottom-DkjlNWaH.js","assets/chevron-left-t2d7IYla.js","assets/chevron-right-BpvBfQlF.js","assets/chevron-top-DaNUAgN3.js","assets/chrome-store-BrYSyOan.js","assets/clock-CM52yIf5.js","assets/close-CcVztAR5.js","assets/compass-Dnpz_bMX.js","assets/coinPlaceholder-A0d_T23w.js","assets/copy-OgObxpD0.js","assets/cursor-TGA47xsa.js","assets/cursor-transparent-ChuRXHZT.js","assets/desktop-DSYLUYtr.js","assets/disconnect-DOu0l9hw.js","assets/discord-DSagmLDU.js","assets/etherscan-BQWJnhdU.js","assets/extension-BCceciJ0.js","assets/external-link-nniZ8T-z.js","assets/facebook-C8cFHJmd.js","assets/farcaster-VVYMNsPV.js","assets/filters-IQcwAHNQ.js","assets/github-CUGKA0gF.js","assets/google-ICSz-zKJ.js","assets/help-circle-DUmb3lur.js","assets/image-CcAGLSqv.js","assets/id-CcMBGK0y.js","assets/info-circle-BRf2hsXl.js","assets/lightbulb-DxzqU2aA.js","assets/mail-GTcep6d_.js","assets/mobile-CxfewOOf.js","assets/more-B1GNyGbD.js","assets/network-placeholder-CaAIn0go.js","assets/nftPlaceholder-CcKWs410.js","assets/off-AGLeyIW1.js","assets/play-store-DauY6Xkj.js","assets/plus-C1iVend5.js","assets/qr-code-D9x4W1o0.js","assets/recycle-horizontal-BZndf3A8.js","assets/refresh-BVUyDU7W.js","assets/search-CmKy7FIM.js","assets/send-1nI1S_8r.js","assets/swapHorizontal-DtPyG-1F.js","assets/swapHorizontalMedium-BF57TL40.js","assets/swapHorizontalBold-iZFfQZST.js","assets/swapHorizontalRoundedBold-KJaF8iLR.js","assets/swapVertical-BPHOH9K5.js","assets/telegram-DZ8t7D__.js","assets/three-dots-RSAQzvrm.js","assets/twitch-ClCm-_yi.js","assets/x-CJLl3cK1.js","assets/twitterIcon-CFdE9cDK.js","assets/verify-DBW23CTN.js","assets/verify-filled-hMsYvnXR.js","assets/wallet-B1K8se3b.js","assets/walletconnect-BTykUwcd.js","assets/wallet-placeholder-rTto8m3y.js","assets/warning-circle-CR5Zi2hc.js","assets/info-DxBb29bi.js","assets/exclamation-triangle-DlfV2WT2.js","assets/reown-logo-oGjjPiPA.js"])))=>i.map(i=>d[i]);
2
- import{a as S,i as E,b as f,E as z}from"./lit-element-B3y9oplH.js";import{n as l,e as W,a as H}from"./class-map-CxwNmq0D.js";import{r as b,c as B,e as F}from"./core-pBN9FKMw.js";import{_ as i}from"./index-CYWpV70P.js";import{f as G,n as M}from"./async-directive-BRxn_Py3.js";const h={getSpacingStyles(t,e){if(Array.isArray(t))return t[e]?`var(--wui-spacing-${t[e]})`:void 0;if(typeof t=="string")return`var(--wui-spacing-${t})`},getFormattedDate(t){return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}).format(t)},getHostName(t){try{return new URL(t).hostname}catch{return""}},getTruncateString({string:t,charsStart:e,charsEnd:r,truncate:a}){return t.length<=e+r?t:a==="end"?`${t.substring(0,e)}...`:a==="start"?`...${t.substring(t.length-r)}`:`${t.substring(0,Math.floor(e))}...${t.substring(t.length-Math.floor(r))}`},generateAvatarColors(t){const r=t.toLowerCase().replace(/^0x/iu,"").replace(/[^a-f0-9]/gu,"").substring(0,6).padEnd(6,"0"),a=this.hexToRgb(r),n=getComputedStyle(document.documentElement).getPropertyValue("--w3m-border-radius-master"),s=100-3*Number(n==null?void 0:n.replace("px","")),c=`${s}% ${s}% at 65% 40%`,u=[];for(let p=0;p<5;p+=1){const v=this.tintColor(a,.15*p);u.push(`rgb(${v[0]}, ${v[1]}, ${v[2]})`)}return`
2
+ import{a as S,i as E,b as f,E as z}from"./lit-element-B3y9oplH.js";import{n as l,e as W,a as H}from"./class-map-CxwNmq0D.js";import{r as b,c as B,e as F}from"./core-7b1kcjwl.js";import{_ as i}from"./index-r45SswES.js";import{f as G,n as M}from"./async-directive-BRxn_Py3.js";const h={getSpacingStyles(t,e){if(Array.isArray(t))return t[e]?`var(--wui-spacing-${t[e]})`:void 0;if(typeof t=="string")return`var(--wui-spacing-${t})`},getFormattedDate(t){return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}).format(t)},getHostName(t){try{return new URL(t).hostname}catch{return""}},getTruncateString({string:t,charsStart:e,charsEnd:r,truncate:a}){return t.length<=e+r?t:a==="end"?`${t.substring(0,e)}...`:a==="start"?`...${t.substring(t.length-r)}`:`${t.substring(0,Math.floor(e))}...${t.substring(t.length-Math.floor(r))}`},generateAvatarColors(t){const r=t.toLowerCase().replace(/^0x/iu,"").replace(/[^a-f0-9]/gu,"").substring(0,6).padEnd(6,"0"),a=this.hexToRgb(r),n=getComputedStyle(document.documentElement).getPropertyValue("--w3m-border-radius-master"),s=100-3*Number(n==null?void 0:n.replace("px","")),c=`${s}% ${s}% at 65% 40%`,u=[];for(let p=0;p<5;p+=1){const v=this.tintColor(a,.15*p);u.push(`rgb(${v[0]}, ${v[1]}, ${v[2]})`)}return`
3
3
  --local-color-1: ${u[0]};
4
4
  --local-color-2: ${u[1]};
5
5
  --local-color-3: ${u[2]};
@@ -1,4 +1,4 @@
1
- import{w as t,a as d,i as p,b as n}from"./lit-element-B3y9oplH.js";import{n as f}from"./class-map-CxwNmq0D.js";import{c as w,t as k}from"./index-pOWOYTZf.js";import{r as v}from"./index-C-uQhIOu.js";const g=t`<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
1
+ import{w as t,a as d,i as p,b as n}from"./lit-element-B3y9oplH.js";import{n as f}from"./class-map-CxwNmq0D.js";import{c as w,t as k}from"./index-DYHpzz6b.js";import{r as v}from"./index-HNkFQ8e1.js";const g=t`<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <rect width="64" height="64" fill="#F7931A"/>
3
3
  <g clip-path="url(#clip0_1045_17)">
4
4
  <path d="M63.0394 39.7409C58.7654 56.8839 41.4024 67.3169 24.2574 63.0419C7.11937 58.7679 -3.31363 41.4039 0.962367 24.2619C5.23437 7.11686 22.5974 -3.31714 39.7374 0.956863C56.8814 5.23086 67.3134 22.5969 63.0394 39.7409Z" fill="#F7931A"/>
@@ -1,2 +1,2 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/native-DBJATukw.js","assets/ethers-DArfy-QF.js","assets/react-yytiy0wi.js"])))=>i.map(i=>d[i]);
2
- import{p as gt,b as Yt,i as Zt,I as Qt,m as bt,s as ut,A as D,e as Xt,g as U,d as te,f as N,r as ee,h as ae,j as ne,k as re,w as se,n as oe,o as ie,q as ce,t as ue,v as de,u as le,x as Q,y as me,z as fe,B as he,C as $,D as pe,E as ye,F as ge,G as be,H as we,J as xe,K as Ee,L as Ie,M as Te,N as St,O as At,P as Ce,Q as Pt,R as _t,S as Rt,T as ve,U as dt,V as qt,W as Se,X as Ae,Y as Ft,Z as Pe,_ as Ut,$ as J,a0 as _e,a1 as kt,a2 as Re,a3 as qe,a4 as lt,a5 as Fe,a6 as Ue,a7 as ke,a8 as Be,a9 as Ne,aa as Bt,ab as Le}from"./parseSignature-DEAl-96W.js";import{ac as Ir,ad as Tr,ae as Cr,af as vr,ag as Sr,ah as Ar,ai as Pr,aj as _r,ak as Rr,al as qr,am as Fr,an as Ur,ao as kr,ap as Br,aq as Nr,ar as Lr,as as Mr,at as Dr,au as zr,av as Gr,aw as $r,ax as Hr,ay as Or,az as jr,aA as Wr,aB as Vr,aC as Jr,aD as Kr,aE as Yr,aF as Zr,aG as Qr,aH as Xr,aI as ts,aJ as es,aK as as,aL as ns,aM as rs,aN as ss,aO as os,aP as is,aQ as cs,aR as us,aS as ds,aT as ls,aU as ms,aV as fs,aW as hs,aX as ps,aY as ys,aZ as gs,a_ as bs,a$ as ws,b0 as xs,b1 as Es,b2 as Is,b3 as Ts,b4 as Cs,b5 as vs,b6 as Ss,b7 as As,b8 as Ps,b9 as _s,ba as Rs,bb as qs,bc as Fs,bd as Us,be as ks,bf as Bs,bg as Ns,bh as Ls,bi as Ms,bj as Ds,bk as zs,bl as Gs,bm as $s,bn as Hs,bo as Os,bp as js,bq as Ws,br as Vs,bs as Js,bt as Ks,bu as Ys,bv as Zs,bw as Qs,bx as Xs,by as to,bz as eo,br as ao,bA as no,bB as ro,bC as so,bD as oo,bE as io,bF as co,bG as uo,bH as lo,bH as mo,bI as fo,bJ as ho,bi as po,bj as yo,bK as go,bL as bo,bM as wo,bN as xo,bO as Eo}from"./parseSignature-DEAl-96W.js";import{T as B,b9 as k,U as Me,I as Y,ba as De,G as ze,bb as Ge,X as H,_ as ct,$ as G,B as mt,D as E,P as $e,a7 as He,bc as j,a6 as wt,R as Nt,bd as Lt,d as Mt,L as R,F as ft,A as F,be as A,M as Oe,N as je,bf as We,bg as xt,aG as ht,J as Ve,bh as Je,bi as Ke,bj as Ye,bk as Et}from"./signing-BwuIt3X5.js";import{bl as To,bm as Co,bn as vo,bo as So,bp as Ao,bq as Po,br as _o,bs as Ro,bt as qo,bu as Fo,bv as Uo,bw as ko,bx as Bo,by as No,bz as Lo,Q as Mo,bA as Do,bB as zo,bC as Go,bD as $o,bE as Ho,bF as Oo,bG as jo,bH as Wo,bI as Vo,bJ as Jo,bK as Ko,bL as Yo,bM as Zo,bN as Qo,bO as Xo,bP as ti,bQ as ei,bR as ai,bS as ni,bT as ri,bU as si,bV as oi,E as ii,bW as ci,bX as ui,bY as di,bZ as li,b_ as mi,p as fi,b$ as hi,at as pi,au as yi,c0 as gi,c1 as bi,c2 as wi,c3 as xi,c4 as Ei,f as Ii,c4 as Ti,c5 as Ci,c6 as vi,c7 as Si,c8 as Ai,c9 as Pi,ca as _i,cb as Ri,cc as qi,cd as Fi,C as Ui,ce as ki,c3 as Bi,c4 as Ni,ce as Li,f as Mi,c4 as Di,z as zi}from"./signing-BwuIt3X5.js";import{w as Ze,h as Qe,g as Xe,v as ta,s as ea}from"./hashTypedData-BiAfRLxc.js";import{I as $i,a as Hi,b as Oi,d as ji,c as Wi,e as Vi}from"./hashTypedData-BiAfRLxc.js";import{T as aa,a as Z,W as It,b as na,U as ra,R as sa}from"./rpc-Cd5PGlK-.js";import{A as Ki,c as Yi,B as Zi,C as Qi,D as Xi,H as tc,I as ec,d as ac,e as nc,f as rc,J as sc,L as oc,M as ic,h as cc,P as uc,i as dc,j as lc,k as mc,l as fc,m as hc,S as pc,n as yc,o as gc,p as bc,q as wc,r as xc,s as Ec}from"./rpc-Cd5PGlK-.js";import{_ as oa}from"./index-CYWpV70P.js";import{t as ia,H as ca}from"./sha256-Bt6mLy1E.js";import{b as Tc,h as Cc,a as vc,c as Sc,d as Ac,e as Pc,f as _c,g as Rc,i as qc,j as Fc,k as Uc,l as kc,n as Bc,o as Nc,p as Lc,q as Mc,r as Dc,u as zc,v as Gc,w as $c,x as Hc,y as Oc,z as jc,A as Wc,B as Vc,C as Jc,D as Kc,E as Yc,F as Zc,G as Qc,I as Xc,J as tu,K as eu,L as au,M as nu,N as ru,O as su,P as ou,Q as iu,R as cu,S as uu,m as du,T as lu,U as mu,V as fu,W as hu,X as pu,Y as yu,Z as gu,_ as bu,$ as wu,a0 as xu,a1 as Eu,a2 as Iu,a3 as Tu,a4 as Cu,a5 as vu,a6 as Su,a7 as Au,a8 as Pu,a9 as _u,aa as Ru,ab as qu,ac as Fu,ad as Uu,ae as ku,af as Bu,ag as Nu,ah as Lu,ai as Mu,aj as Du,ak as zu,al as Gu,am as $u,an as Hu,ao as Ou,ap as ju,aq as Wu,ar as Vu,as as Ju,at as Ku,au as Yu,av as Zu,aw as Qu,ax as Xu,ay as td,az as ed,aA as ad,aB as nd,aC as rd,aD as sd,aE as od,aF as id,aG as cd,aH as ud,aI as dd,aJ as ld,aK as md,s as fd}from"./sha256-Bt6mLy1E.js";import{ccipRequest as pd,ccipRequest as yd,offchainLookup as gd,offchainLookupAbiItem as bd,offchainLookupSignature as wd}from"./ccip-h7KPERy4.js";import{d as Ed,a as Id,f as Td}from"./transactionReceipt-C1w204dJ.js";import"./utils-BDQ8DS2k.js";import"./ethers-DArfy-QF.js";import"./react-yytiy0wi.js";function jn(t){let e;if(typeof t=="string")e=gt(t,{modifiers:bt});else{const a=Yt(t),n=t.length;for(let r=0;r<n;r++){const s=t[r];if(!Zt(s)){e=gt(s,{modifiers:bt,structs:a});break}}}if(!e)throw new Qt({param:t});return e}async function M(t,e){return M.internal(t,ut,"sendTransaction",e)}(function(t){async function e(a,n,r,s){const{abi:u,account:d=a.account,address:c,args:i,dataSuffix:f,functionName:m,...h}=s;if(typeof d>"u")throw new D({docsPath:"/docs/contract/writeContract"});const o=d?N(d):null,p=Xt({abi:u,args:i,functionName:m});try{return await U(a,n,r)({data:`${p}${f?f.replace("0x",""):""}`,to:c,account:o,...h})}catch(l){throw te(l,{abi:u,address:c,args:i,docsPath:"/docs/contract/writeContract",functionName:m,sender:o==null?void 0:o.address})}}t.internal=e})(M||(M={}));function Wn({abi:t,address:e,client:a}){const n=a,[r,s]=n?"public"in n&&"wallet"in n?[n.public,n.wallet]:"public"in n?[n.public,void 0]:"wallet"in n?[void 0,n.wallet]:[n,n]:[void 0,void 0],u=r!=null,d=s!=null,c={};let i=!1,f=!1,m=!1;for(const h of t)if(h.type==="function"?h.stateMutability==="view"||h.stateMutability==="pure"?i=!0:f=!0:h.type==="event"&&(m=!0),i&&f&&m)break;return u&&(i&&(c.read=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(r,ee,"readContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),f&&(c.simulate=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(r,ae,"simulateContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),m&&(c.createEventFilter=new Proxy({},{get(h,o){return(...p)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,l);return U(r,ne,"createContractEventFilter")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.getEvents=new Proxy({},{get(h,o){return(...p)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,l);return U(r,re,"getContractEvents")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.watchEvent=new Proxy({},{get(h,o){return(...p)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,l);return U(r,se,"watchContractEvent")({abi:t,address:e,eventName:o,args:y,...w})}}}))),d&&f&&(c.write=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(s,M,"writeContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),(u||d)&&f&&(c.estimateGas=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(r??s,oe,"estimateContractGas")({abi:t,address:e,functionName:o,args:l,...y,account:y.account??s.account})}}})),c.address=e,c.abi=t,c}function W(t){const e=t.length&&Array.isArray(t[0]),a=e?t[0]:[],n=(e?t[1]:t[0])??{};return{args:a,options:n}}function rt(t,e){let a=!1;Array.isArray(t[0])?a=!0:t.length===1?a=e.inputs.some(s=>s.indexed):t.length===2&&(a=!0);const n=a?t[0]:void 0,r=(a?t[1]:t[0])??{};return{args:n,options:r}}function Tt(t){return!t||typeof t!="object"||!("BYTES_PER_ELEMENT"in t)?!1:t.BYTES_PER_ELEMENT===1&&t.constructor.name==="Uint8Array"}function Vn(t){return t.opcode==="CREATE2"?da(t):ua(t)}function ua(t){const e=B(k(t.from));let a=B(t.nonce);return a[0]===0&&(a=new Uint8Array([])),k(`0x${Y(ia([e,a],"bytes")).slice(26)}`)}function da(t){const e=B(k(t.from)),a=Me(Tt(t.salt)?t.salt:B(t.salt),{size:32}),n="bytecodeHash"in t?Tt(t.bytecodeHash)?t.bytecodeHash:B(t.bytecodeHash):Y(t.bytecode,"bytes");return k(De(Y(ze([B("0xff"),e,a,n])),12))}function Jn({chains:t,id:e}){return t.find(a=>a.id===e)}function Dt(t,e="hex"){const a=(()=>{if(typeof t=="string"){if(t.length>3&&t.length%2!==0)throw new Ge(t);return H(t)}return t})(),n=ct(a,{recursiveReadLimit:Number.POSITIVE_INFINITY});return zt(n,e)}function zt(t,e="hex"){if(t.bytes.length===0)return e==="hex"?G(t.bytes):t.bytes;const a=t.readByte();if(a<128&&t.decrementPosition(1),a<192){const r=Ct(t,a,128),s=t.readBytes(r);return e==="hex"?G(s):s}const n=Ct(t,a,192);return la(t,n,e)}function Ct(t,e,a){if(a===128&&e<128)return 1;if(e<=a+55)return e-a;if(e===a+55+1)return t.readUint8();if(e===a+55+2)return t.readUint16();if(e===a+55+3)return t.readUint24();if(e===a+55+4)return t.readUint32();throw new mt("Invalid RLP prefix")}function la(t,e,a){const n=t.position,r=[];for(;t.position-n<e;)r.push(zt(t,a));return r}function ma(t){return E(t)&&$e(t)===32}const fa=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Gt=Uint8Array.from(new Array(16).fill(0).map((t,e)=>e)),ha=Gt.map(t=>(9*t+5)%16),$t=(()=>{const a=[[Gt],[ha]];for(let n=0;n<4;n++)for(let r of a)r.push(r[n].map(s=>fa[s]));return a})(),Ht=$t[0],Ot=$t[1],jt=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(t=>Uint8Array.from(t)),pa=Ht.map((t,e)=>t.map(a=>jt[e][a])),ya=Ot.map((t,e)=>t.map(a=>jt[e][a])),ga=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),ba=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function vt(t,e,a,n){return t===0?e^a^n:t===1?e&a|~e&n:t===2?(e|~a)^n:t===3?e&n|a&~n:e^(a|~n)}const V=new Uint32Array(16);class wa extends ca{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:a,h2:n,h3:r,h4:s}=this;return[e,a,n,r,s]}set(e,a,n,r,s){this.h0=e|0,this.h1=a|0,this.h2=n|0,this.h3=r|0,this.h4=s|0}process(e,a){for(let o=0;o<16;o++,a+=4)V[o]=e.getUint32(a,!0);let n=this.h0|0,r=n,s=this.h1|0,u=s,d=this.h2|0,c=d,i=this.h3|0,f=i,m=this.h4|0,h=m;for(let o=0;o<5;o++){const p=4-o,l=ga[o],y=ba[o],w=Ht[o],g=Ot[o],C=pa[o],b=ya[o];for(let x=0;x<16;x++){const I=j(n+vt(o,s,d,i)+V[w[x]]+l,C[x])+m|0;n=m,m=i,i=j(d,10)|0,d=s,s=I}for(let x=0;x<16;x++){const I=j(r+vt(p,u,c,f)+V[g[x]]+y,b[x])+h|0;r=h,h=f,f=j(c,10)|0,c=u,u=I}}this.set(this.h1+d+f|0,this.h2+i+h|0,this.h3+m+r|0,this.h4+n+u|0,this.h0+s+c|0)}roundClean(){wt(V)}destroy(){this.destroyed=!0,wt(this.buffer),this.set(0,0,0,0,0)}}const xa=He(()=>new wa),Ea=xa;function Kn(t,e){const a=e||"hex",n=Ea(E(t,{strict:!1})?B(t):t);return a==="bytes"?n:Nt(n)}const st=new Map;async function Ia(t){const{getSocket:e,keepAlive:a=!0,key:n="socket",reconnect:r=!0,url:s}=t,{interval:u=3e4}=typeof a=="object"?a:{},{attempts:d=5,delay:c=2e3}=typeof r=="object"?r:{},i=JSON.stringify({keepAlive:a,key:n,url:s,reconnect:r});let f=st.get(i);if(f)return f;let m=0;const{schedule:h}=ie({id:i,fn:async()=>{const l=new Map,y=new Map;let w,g,C,b=!1;function x(){if(r&&m<d){if(b)return;b=!0,m++,g==null||g.close(),setTimeout(async()=>{await I().catch(console.error),b=!1},c)}else l.clear(),y.clear()}async function I(){const T=await e({onClose(){var v,P;for(const S of l.values())(v=S.onError)==null||v.call(S,new Z({url:s}));for(const S of y.values())(P=S.onError)==null||P.call(S,new Z({url:s}));x()},onError(v){var P,S;w=v;for(const _ of l.values())(P=_.onError)==null||P.call(_,w);for(const _ of y.values())(S=_.onError)==null||S.call(_,w);x()},onOpen(){w=void 0,m=0},onResponse(v){const P=v.method==="eth_subscription",S=P?v.params.subscription:v.id,_=P?y:l,q=_.get(S);q&&q.onResponse(v),P||_.delete(S)}});if(g=T,a&&(C&&clearInterval(C),C=setInterval(()=>{var v;return(v=g.ping)==null?void 0:v.call(g)},u)),r&&y.size>0){const v=y.entries();for(const[P,{onResponse:S,body:_,onError:q}]of v)_&&(y.delete(P),f==null||f.request({body:_,onResponse:S,onError:q}))}return T}return await I(),w=void 0,f={close(){C&&clearInterval(C),g.close(),st.delete(i)},get socket(){return g},request({body:T,onError:v,onResponse:P}){w&&v&&v(w);const S=T.id??ce.take(),_=q=>{var z;typeof q.id=="number"&&S!==q.id||(T.method==="eth_subscribe"&&typeof q.result=="string"&&y.set(q.result,{onResponse:_,onError:v,body:T}),T.method==="eth_unsubscribe"&&y.delete((z=T.params)==null?void 0:z[0]),P(q))};l.set(S,{onResponse:_,onError:v});try{g.request({body:{jsonrpc:"2.0",id:S,...T}})}catch(q){v==null||v(q)}},requestAsync({body:T,timeout:v=1e4}){return Ze(()=>new Promise((P,S)=>this.request({body:T,onError:S,onResponse:P})),{errorInstance:new aa({body:T,url:s}),timeout:v})},requests:l,subscriptions:y,url:s},st.set(i,f),[f]}}),[o,[p]]=await h();return p}async function K(t,e={}){const{keepAlive:a,reconnect:n}=e;return Ia({async getSocket({onClose:r,onError:s,onOpen:u,onResponse:d}){const c=await oa(()=>import("./native-DBJATukw.js").then(o=>o.n),__vite__mapDeps([0,1,2])).then(o=>o.WebSocket),i=new c(t);function f(){i.removeEventListener("close",f),i.removeEventListener("message",m),i.removeEventListener("error",s),i.removeEventListener("open",u),r()}function m({data:o}){if(!(typeof o=="string"&&o.trim().length===0))try{const p=JSON.parse(o);d(p)}catch(p){s(p)}}i.addEventListener("close",f),i.addEventListener("message",m),i.addEventListener("error",s),i.addEventListener("open",u),i.readyState===c.CONNECTING&&await new Promise((o,p)=>{i&&(i.onopen=o,i.onerror=p)});const{close:h}=i;return Object.assign(i,{close(){h.bind(i)(),f()},ping(){try{if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({url:i.url,cause:new Z({url:i.url})});const o={jsonrpc:"2.0",id:null,method:"net_version",params:[]};i.send(JSON.stringify(o))}catch(o){s(o)}},request({body:o}){if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({body:o,url:i.url,cause:new Z({url:i.url})});return i.send(JSON.stringify(o))}})},keepAlive:a,reconnect:n,url:t})}async function Ta(t){const e=await K(t);return Object.assign(e.socket,{requests:e.requests,subscriptions:e.subscriptions})}function Ca(t){return Lt(t,-32)===ue}function va(t){return de(t)}function Yn(t){if(!Ca(t))return{signature:t};const[e,a,n]=Mt([{type:"address"},{type:"bytes"},{type:"bytes"}],t);return{address:e,data:a,signature:n}}function Zn(t){if(!va(t))return{signature:t};const{authorization:e,to:a,...n}=le(t);return{authorization:{address:e.address,chainId:e.chainId,nonce:Number(e.nonce),r:R(e.r,{size:32}),s:R(e.s,{size:32}),yParity:e.yParity},...a?{address:a}:{},...n}}async function Sa({message:t,signature:e}){return Q({hash:me(t),signature:e})}async function Aa(t){const{domain:e,message:a,primaryType:n,signature:r,types:s}=t;return Q({hash:Qe({domain:e,message:a,primaryType:n,types:s}),signature:r})}function Qn(t){const{address:e,data:a,signature:n,to:r="hex"}=t,s=fe({authorization:{address:t.authorization.address,chainId:t.authorization.chainId,nonce:BigInt(t.authorization.nonce),r:BigInt(t.authorization.r),s:BigInt(t.authorization.s),yParity:t.authorization.yParity},data:a,signature:n,to:e});return r==="hex"?s:H(s)}async function Xn({address:t,hash:e,signature:a}){return ft(k(t),await Q({hash:e,signature:a}))}async function tr({address:t,message:e,signature:a}){return ft(k(t),await Sa({message:e,signature:a}))}async function er(t){const{address:e,domain:a,message:n,primaryType:r,signature:s,types:u}=t;return ft(k(e),await Aa({domain:a,message:n,primaryType:r,signature:s,types:u}))}function Pa(t){const e=Lt(t,0,1);if(e==="0x04")return"eip7702";if(e==="0x03")return"eip4844";if(e==="0x02")return"eip1559";if(e==="0x01")return"eip2930";if(e!=="0x"&&F(e)>=192)return"legacy";throw new he({serializedType:e})}function _a(t){const e=Pa(t);return e==="eip1559"?Fa(t):e==="eip2930"?Ua(t):e==="eip4844"?qa(t):e==="eip7702"?Ra(t):ka(t)}function Ra(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,h,o,p]=e;if(e.length!==10&&e.length!==13)throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,authorizationList:m,...e.length>9?{v:h,r:o,s:p}:{}},serializedTransaction:t,type:"eip7702"});const l={chainId:F(a),type:"eip7702"};return E(d)&&d!=="0x"&&(l.to=d),E(u)&&u!=="0x"&&(l.gas=A(u)),E(i)&&i!=="0x"&&(l.data=i),E(n)&&(l.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(l.value=A(c)),E(s)&&s!=="0x"&&(l.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(l.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(l.accessList=tt(f)),m.length!==0&&m!=="0x"&&(l.authorizationList=Ba(m)),we(l),{...e.length===13?O(e):void 0,...l}}function qa(t){const e=X(t),a=e.length===4,n=a?e[0]:e,r=a?e.slice(1):[],[s,u,d,c,i,f,m,h,o,p,l,y,w,g]=n,[C,b,x]=r;if(!(n.length===11||n.length===14))throw new $({attributes:{chainId:s,nonce:u,maxPriorityFeePerGas:d,maxFeePerGas:c,gas:i,to:f,value:m,data:h,accessList:o,...n.length>9?{v:y,r:w,s:g}:{}},serializedTransaction:t,type:"eip4844"});const I={blobVersionedHashes:l,chainId:F(s),to:f,type:"eip4844"};return E(i)&&i!=="0x"&&(I.gas=A(i)),E(h)&&h!=="0x"&&(I.data=h),E(u)&&(I.nonce=u==="0x"?0:F(u)),E(m)&&m!=="0x"&&(I.value=A(m)),E(p)&&p!=="0x"&&(I.maxFeePerBlobGas=A(p)),E(c)&&c!=="0x"&&(I.maxFeePerGas=A(c)),E(d)&&d!=="0x"&&(I.maxPriorityFeePerGas=A(d)),o.length!==0&&o!=="0x"&&(I.accessList=tt(o)),C&&b&&x&&(I.sidecars=ge({blobs:C,commitments:b,proofs:x})),be(I),{...n.length===14?O(n):void 0,...I}}function Fa(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,h,o]=e;if(!(e.length===9||e.length===12))throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,...e.length>9?{v:m,r:h,s:o}:{}},serializedTransaction:t,type:"eip1559"});const p={chainId:F(a),type:"eip1559"};return E(d)&&d!=="0x"&&(p.to=d),E(u)&&u!=="0x"&&(p.gas=A(u)),E(i)&&i!=="0x"&&(p.data=i),E(n)&&(p.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(p.value=A(c)),E(s)&&s!=="0x"&&(p.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(p.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(p.accessList=tt(f)),pe(p),{...e.length===12?O(e):void 0,...p}}function Ua(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,h]=e;if(!(e.length===8||e.length===11))throw new $({attributes:{chainId:a,nonce:n,gasPrice:r,gas:s,to:u,value:d,data:c,accessList:i,...e.length>8?{v:f,r:m,s:h}:{}},serializedTransaction:t,type:"eip2930"});const o={chainId:F(a),type:"eip2930"};return E(u)&&u!=="0x"&&(o.to=u),E(s)&&s!=="0x"&&(o.gas=A(s)),E(c)&&c!=="0x"&&(o.data=c),E(n)&&(o.nonce=n==="0x"?0:F(n)),E(d)&&d!=="0x"&&(o.value=A(d)),E(r)&&r!=="0x"&&(o.gasPrice=A(r)),i.length!==0&&i!=="0x"&&(o.accessList=tt(i)),ye(o),{...e.length===11?O(e):void 0,...o}}function ka(t){const e=Dt(t,"hex"),[a,n,r,s,u,d,c,i,f]=e;if(!(e.length===6||e.length===9))throw new $({attributes:{nonce:a,gasPrice:n,gas:r,to:s,value:u,data:d,...e.length>6?{v:c,r:i,s:f}:{}},serializedTransaction:t,type:"legacy"});const m={type:"legacy"};if(E(s)&&s!=="0x"&&(m.to=s),E(r)&&r!=="0x"&&(m.gas=A(r)),E(d)&&d!=="0x"&&(m.data=d),E(a)&&(m.nonce=a==="0x"?0:F(a)),E(u)&&u!=="0x"&&(m.value=A(u)),E(n)&&n!=="0x"&&(m.gasPrice=A(n)),xe(m),e.length===6)return m;const h=E(c)&&c!=="0x"?A(c):0n;if(f==="0x"&&i==="0x")return h>0&&(m.chainId=Number(h)),m;const o=h,p=Number((o-35n)/2n);if(p>0)m.chainId=p;else if(o!==27n&&o!==28n)throw new Ee({v:o});return m.v=o,m.s=f,m.r=i,m.yParity=o%2n===0n?1:0,m}function X(t){return Dt(`0x${t.slice(4)}`,"hex")}function tt(t){const e=[];for(let a=0;a<t.length;a++){const[n,r]=t[a];if(!Oe(n,{strict:!1}))throw new je({address:n});e.push({address:n,storageKeys:r.map(s=>ma(s)?s:We(s))})}return e}function Ba(t){const e=[];for(let a=0;a<t.length;a++){const[n,r,s,u,d,c]=t[a];e.push({address:r,chainId:n==="0x"?0:F(n),nonce:s==="0x"?0:F(s),...O([u,d,c])})}return e}function O(t){const e=t.slice(-3),a=e[0]==="0x"||A(e[0])===0n?27n:28n;return{r:xt(e[1],{size:32}),s:xt(e[2],{size:32}),v:a,yParity:a===27n?0:1}}class Na extends mt{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function Wt(t,e){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(t))throw new Na({value:t});let[a,n="0"]=t.split(".");const r=a.startsWith("-");if(r&&(a=a.slice(1)),n=n.replace(/(0+)$/,""),e===0)Math.round(+`.${n}`)===1&&(a=`${BigInt(a)+1n}`),n="";else if(n.length>e){const[s,u,d]=[n.slice(0,e-1),n.slice(e-1,e),n.slice(e)],c=Math.round(+`${u}.${d}`);c>9?n=`${BigInt(s)+BigInt(1)}0`.padStart(s.length+1,"0"):n=`${s}${c}`,n.length>e&&(n=n.slice(1),a=`${BigInt(a)+1n}`),n=n.slice(0,e)}else n=n.padEnd(e,"0");return BigInt(`${r?"-":""}${a}${n}`)}function ar(t,e="wei"){return Wt(t,Ie[e])}function nr(t,e="wei"){return Wt(t,Te[e])}async function La(t,{hash:e}){await t.request({method:`${t.mode}_dropTransaction`,params:[e]})}async function Ma(t){return t.request({method:`${t.mode}_dumpState`})}async function Da(t){return t.mode==="ganache"?await t.request({method:"eth_mining"}):await t.request({method:`${t.mode}_getAutomine`})}async function za(t){return await t.request({method:"txpool_content"})}async function Ga(t){const{pending:e,queued:a}=await t.request({method:"txpool_status"});return{pending:F(e),queued:F(a)}}async function $a(t,{address:e}){await t.request({method:`${t.mode}_impersonateAccount`,params:[e]})}async function Ha(t,{seconds:e}){return await t.request({method:"evm_increaseTime",params:[R(e)]})}async function Oa(t){return await t.request({method:"txpool_inspect"})}async function ja(t,{state:e}){await t.request({method:`${t.mode}_loadState`,params:[e]})}async function Wa(t,{blocks:e,interval:a}){t.mode==="ganache"?await t.request({method:"evm_mine",params:[{blocks:R(e)}]}):await t.request({method:`${t.mode}_mine`,params:[R(e),R(a||0)]})}async function Va(t){await t.request({method:`${t.mode}_removeBlockTimestampInterval`})}async function Ja(t,{blockNumber:e,jsonRpcUrl:a}={}){await t.request({method:`${t.mode}_reset`,params:[{forking:{blockNumber:Number(e),jsonRpcUrl:a}}]})}async function Ka(t,{id:e}){await t.request({method:"evm_revert",params:[e]})}async function Ya(t,e){var w,g,C;const{accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:m,...h}=e,o=(C=(g=(w=t.chain)==null?void 0:w.formatters)==null?void 0:g.transactionRequest)==null?void 0:C.format,l=(o||ht)({...St(h,{format:o}),accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:m},"sendUnsignedTransaction");return await t.request({method:"eth_sendUnsignedTransaction",params:[l]})}async function Za(t,e){t.mode==="ganache"?e?await t.request({method:"miner_start"}):await t.request({method:"miner_stop"}):await t.request({method:"evm_setAutomine",params:[e]})}async function Qa(t,{address:e,value:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountBalance",params:[e,R(a)]}):await t.request({method:`${t.mode}_setBalance`,params:[e,R(a)]})}async function Xa(t,{gasLimit:e}){await t.request({method:"evm_setBlockGasLimit",params:[R(e)]})}async function tn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:`${t.mode}_setBlockTimestampInterval`,params:[a]})}async function en(t,{address:e,bytecode:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountCode",params:[e,a]}):await t.request({method:`${t.mode}_setCode`,params:[e,a]})}async function an(t,{address:e}){await t.request({method:`${t.mode}_setCoinbase`,params:[e]})}async function nn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:"evm_setIntervalMining",params:[a]})}async function rn(t,e){await t.request({method:`${t.mode}_setLoggingEnabled`,params:[e]})}async function sn(t,{gasPrice:e}){await t.request({method:`${t.mode}_setMinGasPrice`,params:[R(e)]})}async function on(t,{baseFeePerGas:e}){await t.request({method:`${t.mode}_setNextBlockBaseFeePerGas`,params:[R(e)]})}async function cn(t,{timestamp:e}){await t.request({method:"evm_setNextBlockTimestamp",params:[R(e)]})}async function un(t,{address:e,nonce:a}){await t.request({method:`${t.mode}_setNonce`,params:[e,R(a)]})}async function dn(t,e){await t.request({method:`${t.mode}_setRpcUrl`,params:[e]})}async function ln(t,{address:e,index:a,value:n}){await t.request({method:`${t.mode}_setStorageAt`,params:[e,typeof a=="number"?R(a):a,n]})}async function mn(t){return await t.request({method:"evm_snapshot"})}async function fn(t,{address:e}){await t.request({method:`${t.mode}_stopImpersonatingAccount`,params:[e]})}function hn({mode:t}){return e=>{const a=e.extend(()=>({mode:t}));return{dropTransaction:n=>La(a,n),dumpState:()=>Ma(a),getAutomine:()=>Da(a),getTxpoolContent:()=>za(a),getTxpoolStatus:()=>Ga(a),impersonateAccount:n=>$a(a,n),increaseTime:n=>Ha(a,n),inspectTxpool:()=>Oa(a),loadState:n=>ja(a,n),mine:n=>Wa(a,n),removeBlockTimestampInterval:()=>Va(a),reset:n=>Ja(a,n),revert:n=>Ka(a,n),sendUnsignedTransaction:n=>Ya(a,n),setAutomine:n=>Za(a,n),setBalance:n=>Qa(a,n),setBlockGasLimit:n=>Xa(a,n),setBlockTimestampInterval:n=>tn(a,n),setCode:n=>en(a,n),setCoinbase:n=>an(a,n),setIntervalMining:n=>nn(a,n),setLoggingEnabled:n=>rn(a,n),setMinGasPrice:n=>sn(a,n),setNextBlockBaseFeePerGas:n=>on(a,n),setNextBlockTimestamp:n=>cn(a,n),setNonce:n=>un(a,n),setRpcUrl:n=>dn(a,n),setStorageAt:n=>ln(a,n),snapshot:()=>mn(a),stopImpersonatingAccount:n=>fn(a,n)}}}function rr(t){const{key:e="test",name:a="Test Client",mode:n}=t;return At({...t,key:e,name:a,type:"testClient"}).extend(s=>({mode:n,...hn({mode:n})(s)}))}async function pn(t,{chain:e}){const{id:a,name:n,nativeCurrency:r,rpcUrls:s,blockExplorers:u}=e;await t.request({method:"wallet_addEthereumChain",params:[{chainId:R(a),chainName:n,nativeCurrency:r,rpcUrls:s.default.http,blockExplorerUrls:u?Object.values(u).map(({url:d})=>d):void 0}]},{dedupe:!0,retryCount:0})}function yn(t,e){const{abi:a,args:n,bytecode:r,...s}=e,u=Ce({abi:a,args:n,bytecode:r});return ut(t,{...s,...s.authorizationList?{to:null}:{},data:u})}async function gn(t){var a;return((a=t.account)==null?void 0:a.type)==="local"?[t.account.address]:(await t.request({method:"eth_accounts"},{dedupe:!0})).map(n=>Ve(n))}async function bn(t,e={}){const{account:a=t.account,chainId:n}=e,r=a?N(a):void 0,s=n?[r==null?void 0:r.address,[R(n)]]:[r==null?void 0:r.address],u=await t.request({method:"wallet_getCapabilities",params:s}),d={};for(const[c,i]of Object.entries(u)){d[Number(c)]={};for(let[f,m]of Object.entries(i))f==="addSubAccount"&&(f="unstable_addSubAccount"),d[Number(c)][f]=m}return typeof n=="number"?d[n]:d}async function wn(t){return await t.request({method:"wallet_getPermissions"},{dedupe:!0})}async function xn(t){return(await t.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(a=>k(a))}async function En(t,e){return t.request({method:"wallet_requestPermissions",params:[e]},{retryCount:0})}async function In(t,e){const{chain:a=t.chain}=e,n=e.timeout??Math.max(((a==null?void 0:a.blockTime)??0)*3,5e3),r=await Pt(t,e);return await _t(t,{...e,id:r.id,timeout:n})}const ot=new Je(128);async function Vt(t,e){var x,I,T,v;const{account:a=t.account,chain:n=t.chain,accessList:r,authorizationList:s,blobs:u,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:o,pollingInterval:p,throwOnReceiptRevert:l,type:y,value:w,...g}=e,C=e.timeout??Math.max(((n==null?void 0:n.blockTime)??0)*3,5e3);if(typeof a>"u")throw new D({docsPath:"/docs/actions/wallet/sendTransactionSync"});const b=a?N(a):null;try{Rt(e);const P=await(async()=>{if(e.to)return e.to;if(e.to!==null&&s&&s.length>0)return await ve({authorization:s[0]}).catch(()=>{throw new mt("`to` is required. Could not infer from `authorizationList`.")})})();if((b==null?void 0:b.type)==="json-rpc"||b===null){let S;n!==null&&(S=await U(t,dt,"getChainId")({}),qt({currentChainId:S,chain:n}));const _=(T=(I=(x=t.chain)==null?void 0:x.formatters)==null?void 0:I.transactionRequest)==null?void 0:T.format,z=(_||ht)({...St(g,{format:_}),accessList:r,account:b,authorizationList:s,blobs:u,chainId:S,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:o,to:P,type:y,value:w},"sendTransaction"),pt=ot.get(t.uid),Jt=pt?"wallet_sendTransaction":"eth_sendTransaction",Kt=await(async()=>{try{return await t.request({method:Jt,params:[z]},{retryCount:0})}catch(yt){if(pt===!1)throw yt;const L=yt;if(L.name==="InvalidInputRpcError"||L.name==="InvalidParamsRpcError"||L.name==="MethodNotFoundRpcError"||L.name==="MethodNotSupportedRpcError")return await t.request({method:"wallet_sendTransaction",params:[z]},{retryCount:0}).then(at=>(ot.set(t.uid,!0),at)).catch(at=>{const nt=at;throw nt.name==="MethodNotFoundRpcError"||nt.name==="MethodNotSupportedRpcError"?(ot.set(t.uid,!1),L):nt});throw L}})(),et=await U(t,Se,"waitForTransactionReceipt")({checkReplacement:!1,hash:Kt,pollingInterval:p,timeout:C});if(l&&et.status==="reverted")throw new Ae({receipt:et});return et}if((b==null?void 0:b.type)==="local"){const S=await U(t,Ft,"prepareTransactionRequest")({account:b,accessList:r,authorizationList:s,blobs:u,chain:n,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:o,nonceManager:b.nonceManager,parameters:[...Pe,"sidecars"],type:y,value:w,...g,to:P}),_=(v=n==null?void 0:n.serializers)==null?void 0:v.transaction,q=await b.signTransaction(S,{serializer:_});return await U(t,Ut,"sendRawTransactionSync")({serializedTransaction:q,throwOnReceiptRevert:l})}throw(b==null?void 0:b.type)==="smart"?new J({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new J({docsPath:"/docs/actions/wallet/sendTransactionSync",type:b==null?void 0:b.type})}catch(P){throw P instanceof J?P:_e(P,{...e,account:b,chain:e.chain||void 0})}}async function Tn(t,e){const{id:a}=e;await t.request({method:"wallet_showCallsStatus",params:[a]})}async function Cn(t,e){const{account:a=t.account}=e;if(!a)throw new D({docsPath:"/docs/eip7702/signAuthorization"});const n=N(a);if(!n.signAuthorization)throw new J({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:n.type});const r=await kt(t,e);return n.signAuthorization(r)}async function vn(t,{account:e=t.account,message:a}){if(!e)throw new D({docsPath:"/docs/actions/wallet/signMessage"});const n=N(e);if(n.signMessage)return n.signMessage({message:a});const r=typeof a=="string"?Ke(a):a.raw instanceof Uint8Array?Nt(a.raw):a.raw;return t.request({method:"personal_sign",params:[r,n.address]},{retryCount:0})}async function Sn(t,e){var i,f,m,h;const{account:a=t.account,chain:n=t.chain,...r}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTransaction"});const s=N(a);Rt({account:s,...e});const u=await U(t,dt,"getChainId")({});n!==null&&qt({currentChainId:u,chain:n});const d=(n==null?void 0:n.formatters)||((i=t.chain)==null?void 0:i.formatters),c=((f=d==null?void 0:d.transactionRequest)==null?void 0:f.format)||ht;return s.signTransaction?s.signTransaction({...r,chainId:u},{serializer:(h=(m=t.chain)==null?void 0:m.serializers)==null?void 0:h.transaction}):await t.request({method:"eth_signTransaction",params:[{...c({...r,account:s},"signTransaction"),chainId:R(u),from:s.address}]},{retryCount:0})}async function An(t,e){const{account:a=t.account,domain:n,message:r,primaryType:s}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTypedData"});const u=N(a),d={EIP712Domain:Xe({domain:n}),...e.types};if(ta({domain:n,message:r,primaryType:s,types:d}),u.signTypedData)return u.signTypedData({domain:n,message:r,primaryType:s,types:d});const c=ea({domain:n,message:r,primaryType:s,types:d});return t.request({method:"eth_signTypedData_v4",params:[u.address,c]},{retryCount:0})}async function Pn(t,{id:e}){await t.request({method:"wallet_switchEthereumChain",params:[{chainId:R(e)}]},{retryCount:0})}async function _n(t,e){return await t.request({method:"wallet_watchAsset",params:e},{retryCount:0})}async function Rn(t,e){return M.internal(t,Vt,"sendTransactionSync",e)}function qn(t){return{addChain:e=>pn(t,e),deployContract:e=>yn(t,e),getAddresses:()=>gn(t),getCallsStatus:e=>qe(t,e),getCapabilities:e=>bn(t,e),getChainId:()=>dt(t),getPermissions:()=>wn(t),prepareAuthorization:e=>kt(t,e),prepareTransactionRequest:e=>Ft(t,e),requestAddresses:()=>xn(t),requestPermissions:e=>En(t,e),sendCalls:e=>Pt(t,e),sendCallsSync:e=>In(t,e),sendRawTransaction:e=>Re(t,e),sendRawTransactionSync:e=>Ut(t,e),sendTransaction:e=>ut(t,e),sendTransactionSync:e=>Vt(t,e),showCallsStatus:e=>Tn(t,e),signAuthorization:e=>Cn(t,e),signMessage:e=>vn(t,e),signTransaction:e=>Sn(t,e),signTypedData:e=>An(t,e),switchChain:e=>Pn(t,e),waitForCallsStatus:e=>_t(t,e),watchAsset:e=>_n(t,e),writeContract:e=>M(t,e),writeContractSync:e=>Rn(t,e)}}function sr(t){const{key:e="wallet",name:a="Wallet Client",transport:n}=t;return At({...t,key:e,name:a,transport:n,type:"walletClient"}).extend(qn)}function or(t,e={}){const{key:a="custom",methods:n,name:r="Custom Provider",retryDelay:s}=e;return({retryCount:u})=>lt({key:a,methods:n,name:r,request:t.request.bind(t),retryCount:e.retryCount??u,retryDelay:s,type:"custom"})}function ir(t,e={}){const{key:a="fallback",name:n="Fallback",rank:r=!1,shouldThrow:s=Fn,retryCount:u,retryDelay:d}=e;return(({chain:c,pollingInterval:i=4e3,timeout:f,...m})=>{let h=t,o=()=>{};const p=lt({key:a,name:n,async request({method:l,params:y}){let w;const g=async(C=0)=>{const b=h[C]({...m,chain:c,retryCount:0,timeout:f});try{const x=await b.request({method:l,params:y});return o({method:l,params:y,response:x,transport:b,status:"success"}),x}catch(x){if(o({error:x,method:l,params:y,transport:b,status:"error"}),s(x)||C===h.length-1||(w??(w=h.slice(C+1).some(I=>{const{include:T,exclude:v}=I({chain:c}).config.methods||{};return T?T.includes(l):v?!v.includes(l):!0})),!w))throw x;return g(C+1)}};return g()},retryCount:u,retryDelay:d,type:"fallback"},{onResponse:l=>o=l,transports:h.map(l=>l({chain:c,retryCount:0}))});if(r){const l=typeof r=="object"?r:{};Un({chain:c,interval:l.interval??i,onTransports:y=>h=y,ping:l.ping,sampleCount:l.sampleCount,timeout:l.timeout,transports:h,weights:l.weights})}return p})}function Fn(t){return!!("code"in t&&typeof t.code=="number"&&(t.code===na.code||t.code===ra.code||Fe.nodeMessage.test(t.message)||t.code===5e3))}function Un({chain:t,interval:e=4e3,onTransports:a,ping:n,sampleCount:r=10,timeout:s=1e3,transports:u,weights:d={}}){const{stability:c=.7,latency:i=.3}=d,f=[],m=async()=>{const h=await Promise.all(u.map(async l=>{const y=l({chain:t,retryCount:0,timeout:s}),w=Date.now();let g,C;try{await(n?n({transport:y}):y.request({method:"net_listening"})),C=1}catch{C=0}finally{g=Date.now()}return{latency:g-w,success:C}}));f.push(h),f.length>r&&f.shift();const o=Math.max(...f.map(l=>Math.max(...l.map(({latency:y})=>y)))),p=u.map((l,y)=>{const w=f.map(I=>I[y].latency),C=1-w.reduce((I,T)=>I+T,0)/w.length/o,b=f.map(I=>I[y].success),x=b.reduce((I,T)=>I+T,0)/b.length;return x===0?[0,y]:[i*C+c*x,y]}).sort((l,y)=>y[0]-l[0]);a(p.map(([,l])=>u[l])),await Ue(e),m()};m()}function cr(t,e={}){const{keepAlive:a,key:n="webSocket",methods:r,name:s="WebSocket JSON-RPC",reconnect:u,retryDelay:d}=e;return({chain:c,retryCount:i,timeout:f})=>{var l;const m=e.retryCount??i,h=f??e.timeout??1e4,o=t||((l=c==null?void 0:c.rpcUrls.default.webSocket)==null?void 0:l[0]),p={keepAlive:a,reconnect:u};if(!o)throw new ke;return lt({key:n,methods:r,name:s,async request({method:y,params:w}){const g={method:y,params:w},C=await K(o,p),{error:b,result:x}=await C.requestAsync({body:g,timeout:h});if(b)throw new sa({body:g,error:b,url:o});return x},retryCount:m,retryDelay:d,timeout:h,type:"webSocket"},{getSocket(){return Ta(o)},getRpcClient(){return K(o,p)},async subscribe({params:y,onData:w,onError:g}){const C=await K(o,p),{result:b}=await new Promise((x,I)=>C.request({body:{method:"eth_subscribe",params:y},onError(T){I(T),g==null||g(T)},onResponse(T){if(T.error){I(T.error),g==null||g(T.error);return}if(typeof T.id=="number"){x(T);return}T.method==="eth_subscription"&&w(T.params)}}));return{subscriptionId:b,async unsubscribe(){return new Promise(x=>C.request({body:{method:"eth_unsubscribe",params:[b]},onResponse:x}))}}}})}}class ur extends Error{constructor(e,a){super(a),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=e,this.details=a}}const it="/docs/contract/decodeDeployData";function dr(t){const{abi:e,bytecode:a,data:n}=t;if(n===a)return{bytecode:a};const r=e.find(u=>"type"in u&&u.type==="constructor");if(!r)throw new Ye({docsPath:it});if(!("inputs"in r))throw new Et({docsPath:it});if(!r.inputs||r.inputs.length===0)throw new Et({docsPath:it});return{args:Mt(r.inputs,`0x${n.replace(a,"")}`),bytecode:a}}function lr(t){const e=t.to??(typeof t.blobs[0]=="string"?"hex":"bytes"),a=typeof t.blobs[0]=="string"?t.blobs.map(d=>H(d)):t.blobs,n=a.reduce((d,c)=>d+c.length,0),r=ct(new Uint8Array(n));let s=!0;for(const d of a){const c=ct(d);for(;s&&c.position<d.length;){c.incrementPosition(1);let i=31;d.length-c.position<31&&(i=d.length-c.position);for(const f in Array.from({length:i})){const m=c.readByte();if(m===128&&!c.inspectBytes(c.remaining).includes(128)){s=!1;break}r.pushByte(m)}}}const u=r.bytes.slice(0,r.position);return e==="hex"?G(u):u}function mr(t){const{sidecars:e,version:a}=t,n=t.to??(typeof e[0].blob=="string"?"hex":"bytes"),r=[];for(const{commitment:s}of e)r.push(Be({commitment:s,to:n,version:a}));return r}const kn=2147483648;function fr(t){if(t===1)return 60n;if(t>=kn||t<0)throw new Ne({chainId:t});return BigInt((2147483648|t)>>>0)}function Bn({blobToKzgCommitment:t,computeBlobKzgProof:e}){return{blobToKzgCommitment:t,computeBlobKzgProof:e}}function hr(t,e){try{t.loadTrustedSetup(e)}catch(a){const n=a;if(!n.message.includes("trusted setup is already loaded"))throw n}return Bn(t)}function pr({r:t,yParityAndS:e}){const a=H(e),n=a[0]&128?1:0,r=a;return n===1&&(r[0]&=127),{r:t,s:G(r),yParity:n}}function yr(t){const{r:e,s:a}=Bt.Signature.fromCompact(t.slice(2,130));return{r:R(e,{size:32}),yParityAndS:R(a,{size:32})}}async function gr(t){const{serializedTransaction:e,signature:a}=t,n=_a(e),r=a??{r:n.r,s:n.s,v:n.v,yParity:n.yParity},s=Le({...n,r:void 0,s:void 0,v:void 0,yParity:void 0,sidecars:void 0});return await Q({hash:Y(s),signature:r})}function br({r:t,yParityAndS:e}){return`0x${new Bt.Signature(A(t),A(e)).toCompactHex()}`}function wr(t){const{r:e,s:a,v:n,yParity:r}=t,s=Number(r??n-27n);let u=a;if(s===1){const d=H(a);d[0]|=128,u=G(d)}return{r:e,yParityAndS:u}}export{Ye as AbiConstructorNotFoundError,Et as AbiConstructorParamsNotFoundError,To as AbiDecodingDataSizeInvalidError,Co as AbiDecodingDataSizeTooSmallError,vo as AbiDecodingZeroDataError,So as AbiEncodingArrayLengthMismatchError,Ao as AbiEncodingBytesSizeMismatchError,Po as AbiEncodingLengthMismatchError,_o as AbiErrorInputsNotFoundError,Ro as AbiErrorNotFoundError,qo as AbiErrorSignatureNotFoundError,Fo as AbiEventNotFoundError,Uo as AbiEventSignatureEmptyTopicsError,ko as AbiEventSignatureNotFoundError,Bo as AbiFunctionNotFoundError,No as AbiFunctionOutputsNotFoundError,Lo as AbiFunctionSignatureNotFoundError,Ir as AccountStateConflictError,Ki as AtomicReadyWalletRejectedUpgradeError,Yi as AtomicityNotSupportedError,mt as BaseError,Tr as BaseFeeScalarError,Cr as BlockNotFoundError,vr as BundleFailedError,Zi as BundleTooLargeError,Mo as BytesSizeMismatchError,Sr as CallExecutionError,Qi as ChainDisconnectedError,Ar as ChainDoesNotSupportContract,Pr as ChainMismatchError,_r as ChainNotFoundError,Rr as CircularReferenceError,qr as ClientChainNotConfiguredError,Fr as ContractFunctionExecutionError,Ur as ContractFunctionRevertedError,kr as ContractFunctionZeroDataError,Br as CounterfactualDeploymentFailedError,Do as DecodeLogDataMismatch,zo as DecodeLogTopicsMismatch,Xi as DuplicateIdError,ur as EIP1193ProviderRpcError,Nr as Eip1559FeesNotSupportedError,Lr as EnsAvatarInvalidNftUriError,Mr as EnsAvatarUnsupportedNamespaceError,Dr as EnsAvatarUriResolutionError,Ne as EnsInvalidChainIdError,zr as EstimateGasExecutionError,Fe as ExecutionRevertedError,Gr as FeeCapTooHighError,$r as FeeCapTooLowError,Hr as FeeConflictError,Go as FilterTypeNotSupportedError,tc as HttpRequestError,Or as InsufficientFundsError,$o as IntegerOutOfRangeError,ec as InternalRpcError,jr as IntrinsicGasTooHighError,Wr as IntrinsicGasTooLowError,Ho as InvalidAbiDecodingTypeError,Oo as InvalidAbiEncodingTypeError,Vr as InvalidAbiItemError,Qt as InvalidAbiParameterError,Jr as InvalidAbiParametersError,Kr as InvalidAbiTypeParameterError,je as InvalidAddressError,jo as InvalidArrayError,Wo as InvalidBytesBooleanError,Yr as InvalidChainIdError,Na as InvalidDecimalNumberError,Vo as InvalidDefinitionTypeError,$i as InvalidDomainError,Zr as InvalidFunctionModifierError,Jo as InvalidHexBooleanError,Ge as InvalidHexValueError,ac as InvalidInputRpcError,Ee as InvalidLegacyVError,Qr as InvalidModifierError,Xr as InvalidParameterError,nc as InvalidParamsRpcError,ts as InvalidParenthesisError,Hi as InvalidPrimaryTypeError,rc as InvalidRequestRpcError,es as InvalidSerializableTransactionError,$ as InvalidSerializedTransactionError,he as InvalidSerializedTransactionTypeError,as as InvalidSignatureError,ns as InvalidStorageKeySizeError,rs as InvalidStructSignatureError,Oi as InvalidStructTypeError,sc as JsonRpcVersionUnsupportedError,oc as LimitExceededRpcError,ss as MaxFeePerGasTooLowError,ic as MethodNotFoundRpcError,cc as MethodNotSupportedRpcError,os as NonceMaxValueError,is as NonceTooHighError,cs as NonceTooLowError,uc as ParseRpcError,dc as ProviderDisconnectedError,lc as ProviderRpcError,us as RawContractError,mc as ResourceNotFoundRpcError,fc as ResourceUnavailableRpcError,hc as RpcError,sa as RpcRequestError,Ko as SizeExceedsPaddingSizeError,Yo as SizeOverflowError,Zo as SliceOffsetOutOfBoundsError,Z as SocketClosedError,ds as SolidityProtectedKeywordError,ls as StateAssignmentConflictError,pc as SwitchChainError,aa as TimeoutError,ms as TipAboveFeeCapError,fs as TransactionExecutionError,hs as TransactionNotFoundError,ps as TransactionReceiptNotFoundError,na as TransactionRejectedRpcError,ys as TransactionTypeNotSupportedError,yc as UnauthorizedProviderError,gc as UnknownBundleIdError,gs as UnknownNodeError,bc as UnknownRpcError,bs as UnknownSignatureError,ws as UnknownTypeError,wc as UnsupportedChainIdError,xc as UnsupportedNonOptionalCapabilityError,Qo as UnsupportedPackedAbiType,Ec as UnsupportedProviderMethodError,ke as UrlRequiredError,ra as UserRejectedRequestError,xs as WaitForCallsStatusTimeoutError,Es as WaitForTransactionReceiptTimeoutError,It as WebSocketRequestError,qt as assertCurrentChain,Rt as assertRequest,pe as assertTransactionEIP1559,ye as assertTransactionEIP2930,xe as assertTransactionLegacy,Is as blobsToCommitments,Ts as blobsToProofs,Xo as boolToBytes,ti as boolToHex,ei as bytesToBigInt,ai as bytesToBool,G as bytesToHex,ni as bytesToNumber,Tc as bytesToRlp,ri as bytesToString,pd as ccipFetch,yd as ccipRequest,Ve as checksumAddress,Be as commitmentToVersionedHash,Cs as commitmentsToVersionedHashes,br as compactSignatureToHex,pr as compactSignatureToSignature,ze as concat,si as concatBytes,oi as concatHex,At as createClient,vs as createNonceManager,Ss as createPublicClient,rr as createTestClient,lt as createTransport,sr as createWalletClient,or as custom,Mt as decodeAbiParameters,dr as decodeDeployData,ii as decodeErrorResult,ci as decodeEventLog,As as decodeFunctionData,Ps as decodeFunctionResult,ui as defineBlock,di as defineChain,Bn as defineKzg,li as defineTransaction,Ed as defineTransactionReceipt,mi as defineTransactionRequest,_s as deploylessCallViaBytecodeBytecode,Rs as deploylessCallViaFactoryBytecode,ji as domainSeparator,fi as encodeAbiParameters,Ce as encodeDeployData,qs as encodeErrorResult,hi as encodeEventTopics,Xt as encodeFunctionData,Fs as encodeFunctionResult,Us as encodePacked,ks as erc1155Abi,Bs as erc20Abi,Ns as erc20Abi_bytes32,Ls as erc4626Abi,Ms as erc6492SignatureValidatorAbi,Ds as erc6492SignatureValidatorByteCode,zs as erc721Abi,Gs as ethAddress,Ie as etherUnits,Jn as extractChain,ir as fallback,pi as formatBlock,$s as formatEther,Hs as formatGwei,Id as formatLog,yi as formatTransaction,Td as formatTransactionReceipt,ht as formatTransactionRequest,Os as formatUnits,lr as fromBlobs,gi as fromBytes,bi as fromHex,Dt as fromRlp,wi as getAbiItem,k as getAddress,js as getChainContractAddress,Wn as getContract,Vn as getContractAddress,te as getContractError,da as getCreate2Address,ua as getCreateAddress,xi as getEventSelector,Ei as getEventSignature,Ii as getFunctionSelector,Ti as getFunctionSignature,Pa as getSerializedTransactionType,Ws as getTransactionType,Xe as getTypesForEIP712Domain,Te as gweiUnits,Wi as hashDomain,me as hashMessage,Vi as hashStruct,Qe as hashTypedData,A as hexToBigInt,Ci as hexToBool,H as hexToBytes,yr as hexToCompactSignature,F as hexToNumber,Cc as hexToRlp,Vs as hexToSignature,vi as hexToString,Js as http,Oe as isAddress,ft as isAddressEqual,Tt as isBytes,Ca as isErc6492Signature,va as isErc8010Signature,ma as isHash,E as isHex,Y as keccak256,Ks as labelhash,vc as maxInt104,Sc as maxInt112,Ac as maxInt120,Pc as maxInt128,_c as maxInt136,Rc as maxInt144,qc as maxInt152,Fc as maxInt16,Uc as maxInt160,kc as maxInt168,Bc as maxInt176,Nc as maxInt184,Lc as maxInt192,Mc as maxInt200,Dc as maxInt208,zc as maxInt216,Gc as maxInt224,$c as maxInt232,Hc as maxInt24,Oc as maxInt240,jc as maxInt248,Wc as maxInt256,Vc as maxInt32,Jc as maxInt40,Kc as maxInt48,Yc as maxInt56,Zc as maxInt64,Qc as maxInt72,Xc as maxInt8,tu as maxInt80,eu as maxInt88,au as maxInt96,nu as maxUint104,ru as maxUint112,su as maxUint120,ou as maxUint128,iu as maxUint136,cu as maxUint144,uu as maxUint152,du as maxUint16,lu as maxUint160,mu as maxUint168,fu as maxUint176,hu as maxUint184,pu as maxUint192,yu as maxUint200,gu as maxUint208,bu as maxUint216,wu as maxUint224,xu as maxUint232,Eu as maxUint24,Iu as maxUint240,Tu as maxUint248,Cu as maxUint256,vu as maxUint32,Su as maxUint40,Au as maxUint48,Pu as maxUint56,_u as maxUint64,Ru as maxUint72,qu as maxUint8,Fu as maxUint80,Uu as maxUint88,ku as maxUint96,Bu as minInt104,Nu as minInt112,Lu as minInt120,Mu as minInt128,Du as minInt136,zu as minInt144,Gu as minInt152,$u as minInt16,Hu as minInt160,Ou as minInt168,ju as minInt176,Wu as minInt184,Vu as minInt192,Ju as minInt200,Ku as minInt208,Yu as minInt216,Zu as minInt224,Qu as minInt232,Xu as minInt24,td as minInt240,ed as minInt248,ad as minInt256,nd as minInt32,rd as minInt40,sd as minInt48,od as minInt56,id as minInt64,cd as minInt72,ud as minInt8,dd as minInt80,ld as minInt88,md as minInt96,Ys as multicall3Abi,Zs as namehash,Qs as nonceManager,Si as numberToBytes,R as numberToHex,gd as offchainLookup,bd as offchainLookupAbiItem,wd as offchainLookupSignature,Me as pad,Ai as padBytes,xt as padHex,Xs as parseAbi,to as parseAbiItem,jn as parseAbiParameter,eo as parseAbiParameters,yr as parseCompactSignature,Yn as parseErc6492Signature,Zn as parseErc8010Signature,ar as parseEther,Pi as parseEventLogs,nr as parseGwei,ao as parseSignature,_a as parseTransaction,Wt as parseUnits,no as prepareEncodeFunctionData,ro as presignMessagePrefix,so as publicActions,Q as recoverAddress,Sa as recoverMessageAddress,oo as recoverPublicKey,gr as recoverTransactionAddress,Aa as recoverTypedDataAddress,Kn as ripemd160,io as rpcSchema,_i as rpcTransactionType,co as serializeAccessList,br as serializeCompactSignature,uo as serializeErc6492Signature,Qn as serializeErc8010Signature,lo as serializeSignature,Le as serializeTransaction,ea as serializeTypedData,Ri as setErrorConfig,hr as setupKzg,fd as sha256,Fn as shouldThrow,mr as sidecarsToVersionedHashes,wr as signatureToCompactSignature,mo as signatureToHex,$e as size,De as slice,qi as sliceBytes,Lt as sliceHex,Fi as stringToBytes,Ke as stringToHex,Ui as stringify,hn as testActions,ge as toBlobSidecars,fo as toBlobs,B as toBytes,fr as toCoinType,ki as toEventHash,Bi as toEventSelector,Ni as toEventSignature,Li as toFunctionHash,Mi as toFunctionSelector,Di as toFunctionSignature,Nt as toHex,ho as toPrefixedMessage,ia as toRlp,zi as transactionType,We as trim,po as universalSignatureValidatorAbi,yo as universalSignatureValidatorByteCode,ta as validateTypedData,Xn as verifyHash,tr as verifyMessage,er as verifyTypedData,qn as walletActions,cr as webSocket,go as weiUnits,bo as withCache,wo as withRetry,Ze as withTimeout,xo as zeroAddress,Eo as zeroHash};
2
+ import{p as gt,b as Yt,i as Zt,I as Qt,m as bt,s as ut,A as D,e as Xt,g as U,d as te,f as N,r as ee,h as ae,j as ne,k as re,w as se,n as oe,o as ie,q as ce,t as ue,v as de,u as le,x as Q,y as me,z as fe,B as he,C as $,D as pe,E as ye,F as ge,G as be,H as we,J as xe,K as Ee,L as Ie,M as Te,N as St,O as At,P as Ce,Q as Pt,R as _t,S as Rt,T as ve,U as dt,V as qt,W as Se,X as Ae,Y as Ft,Z as Pe,_ as Ut,$ as J,a0 as _e,a1 as kt,a2 as Re,a3 as qe,a4 as lt,a5 as Fe,a6 as Ue,a7 as ke,a8 as Be,a9 as Ne,aa as Bt,ab as Le}from"./parseSignature-Wiw0A1vU.js";import{ac as Ir,ad as Tr,ae as Cr,af as vr,ag as Sr,ah as Ar,ai as Pr,aj as _r,ak as Rr,al as qr,am as Fr,an as Ur,ao as kr,ap as Br,aq as Nr,ar as Lr,as as Mr,at as Dr,au as zr,av as Gr,aw as $r,ax as Hr,ay as Or,az as jr,aA as Wr,aB as Vr,aC as Jr,aD as Kr,aE as Yr,aF as Zr,aG as Qr,aH as Xr,aI as ts,aJ as es,aK as as,aL as ns,aM as rs,aN as ss,aO as os,aP as is,aQ as cs,aR as us,aS as ds,aT as ls,aU as ms,aV as fs,aW as hs,aX as ps,aY as ys,aZ as gs,a_ as bs,a$ as ws,b0 as xs,b1 as Es,b2 as Is,b3 as Ts,b4 as Cs,b5 as vs,b6 as Ss,b7 as As,b8 as Ps,b9 as _s,ba as Rs,bb as qs,bc as Fs,bd as Us,be as ks,bf as Bs,bg as Ns,bh as Ls,bi as Ms,bj as Ds,bk as zs,bl as Gs,bm as $s,bn as Hs,bo as Os,bp as js,bq as Ws,br as Vs,bs as Js,bt as Ks,bu as Ys,bv as Zs,bw as Qs,bx as Xs,by as to,bz as eo,br as ao,bA as no,bB as ro,bC as so,bD as oo,bE as io,bF as co,bG as uo,bH as lo,bH as mo,bI as fo,bJ as ho,bi as po,bj as yo,bK as go,bL as bo,bM as wo,bN as xo,bO as Eo}from"./parseSignature-Wiw0A1vU.js";import{T as B,b9 as k,U as Me,I as Y,ba as De,G as ze,bb as Ge,X as H,_ as ct,$ as G,B as mt,D as E,P as $e,a7 as He,bc as j,a6 as wt,R as Nt,bd as Lt,d as Mt,L as R,F as ft,A as F,be as A,M as Oe,N as je,bf as We,bg as xt,aG as ht,J as Ve,bh as Je,bi as Ke,bj as Ye,bk as Et}from"./signing-DuFbSjik.js";import{bl as To,bm as Co,bn as vo,bo as So,bp as Ao,bq as Po,br as _o,bs as Ro,bt as qo,bu as Fo,bv as Uo,bw as ko,bx as Bo,by as No,bz as Lo,Q as Mo,bA as Do,bB as zo,bC as Go,bD as $o,bE as Ho,bF as Oo,bG as jo,bH as Wo,bI as Vo,bJ as Jo,bK as Ko,bL as Yo,bM as Zo,bN as Qo,bO as Xo,bP as ti,bQ as ei,bR as ai,bS as ni,bT as ri,bU as si,bV as oi,E as ii,bW as ci,bX as ui,bY as di,bZ as li,b_ as mi,p as fi,b$ as hi,at as pi,au as yi,c0 as gi,c1 as bi,c2 as wi,c3 as xi,c4 as Ei,f as Ii,c4 as Ti,c5 as Ci,c6 as vi,c7 as Si,c8 as Ai,c9 as Pi,ca as _i,cb as Ri,cc as qi,cd as Fi,C as Ui,ce as ki,c3 as Bi,c4 as Ni,ce as Li,f as Mi,c4 as Di,z as zi}from"./signing-DuFbSjik.js";import{w as Ze,h as Qe,g as Xe,v as ta,s as ea}from"./hashTypedData-BKIW0_QT.js";import{I as $i,a as Hi,b as Oi,d as ji,c as Wi,e as Vi}from"./hashTypedData-BKIW0_QT.js";import{T as aa,a as Z,W as It,b as na,U as ra,R as sa}from"./rpc-D2IBy_U1.js";import{A as Ki,c as Yi,B as Zi,C as Qi,D as Xi,H as tc,I as ec,d as ac,e as nc,f as rc,J as sc,L as oc,M as ic,h as cc,P as uc,i as dc,j as lc,k as mc,l as fc,m as hc,S as pc,n as yc,o as gc,p as bc,q as wc,r as xc,s as Ec}from"./rpc-D2IBy_U1.js";import{_ as oa}from"./index-r45SswES.js";import{t as ia,H as ca}from"./sha256-B_-G--k2.js";import{b as Tc,h as Cc,a as vc,c as Sc,d as Ac,e as Pc,f as _c,g as Rc,i as qc,j as Fc,k as Uc,l as kc,n as Bc,o as Nc,p as Lc,q as Mc,r as Dc,u as zc,v as Gc,w as $c,x as Hc,y as Oc,z as jc,A as Wc,B as Vc,C as Jc,D as Kc,E as Yc,F as Zc,G as Qc,I as Xc,J as tu,K as eu,L as au,M as nu,N as ru,O as su,P as ou,Q as iu,R as cu,S as uu,m as du,T as lu,U as mu,V as fu,W as hu,X as pu,Y as yu,Z as gu,_ as bu,$ as wu,a0 as xu,a1 as Eu,a2 as Iu,a3 as Tu,a4 as Cu,a5 as vu,a6 as Su,a7 as Au,a8 as Pu,a9 as _u,aa as Ru,ab as qu,ac as Fu,ad as Uu,ae as ku,af as Bu,ag as Nu,ah as Lu,ai as Mu,aj as Du,ak as zu,al as Gu,am as $u,an as Hu,ao as Ou,ap as ju,aq as Wu,ar as Vu,as as Ju,at as Ku,au as Yu,av as Zu,aw as Qu,ax as Xu,ay as td,az as ed,aA as ad,aB as nd,aC as rd,aD as sd,aE as od,aF as id,aG as cd,aH as ud,aI as dd,aJ as ld,aK as md,s as fd}from"./sha256-B_-G--k2.js";import{ccipRequest as pd,ccipRequest as yd,offchainLookup as gd,offchainLookupAbiItem as bd,offchainLookupSignature as wd}from"./ccip-CUNPu8Px.js";import{d as Ed,a as Id,f as Td}from"./transactionReceipt-RIlE96Mf.js";import"./utils-BDQ8DS2k.js";import"./ethers-DArfy-QF.js";import"./react-yytiy0wi.js";function jn(t){let e;if(typeof t=="string")e=gt(t,{modifiers:bt});else{const a=Yt(t),n=t.length;for(let r=0;r<n;r++){const s=t[r];if(!Zt(s)){e=gt(s,{modifiers:bt,structs:a});break}}}if(!e)throw new Qt({param:t});return e}async function M(t,e){return M.internal(t,ut,"sendTransaction",e)}(function(t){async function e(a,n,r,s){const{abi:u,account:d=a.account,address:c,args:i,dataSuffix:f,functionName:m,...h}=s;if(typeof d>"u")throw new D({docsPath:"/docs/contract/writeContract"});const o=d?N(d):null,p=Xt({abi:u,args:i,functionName:m});try{return await U(a,n,r)({data:`${p}${f?f.replace("0x",""):""}`,to:c,account:o,...h})}catch(l){throw te(l,{abi:u,address:c,args:i,docsPath:"/docs/contract/writeContract",functionName:m,sender:o==null?void 0:o.address})}}t.internal=e})(M||(M={}));function Wn({abi:t,address:e,client:a}){const n=a,[r,s]=n?"public"in n&&"wallet"in n?[n.public,n.wallet]:"public"in n?[n.public,void 0]:"wallet"in n?[void 0,n.wallet]:[n,n]:[void 0,void 0],u=r!=null,d=s!=null,c={};let i=!1,f=!1,m=!1;for(const h of t)if(h.type==="function"?h.stateMutability==="view"||h.stateMutability==="pure"?i=!0:f=!0:h.type==="event"&&(m=!0),i&&f&&m)break;return u&&(i&&(c.read=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(r,ee,"readContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),f&&(c.simulate=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(r,ae,"simulateContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),m&&(c.createEventFilter=new Proxy({},{get(h,o){return(...p)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,l);return U(r,ne,"createContractEventFilter")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.getEvents=new Proxy({},{get(h,o){return(...p)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,l);return U(r,re,"getContractEvents")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.watchEvent=new Proxy({},{get(h,o){return(...p)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,l);return U(r,se,"watchContractEvent")({abi:t,address:e,eventName:o,args:y,...w})}}}))),d&&f&&(c.write=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(s,M,"writeContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),(u||d)&&f&&(c.estimateGas=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(r??s,oe,"estimateContractGas")({abi:t,address:e,functionName:o,args:l,...y,account:y.account??s.account})}}})),c.address=e,c.abi=t,c}function W(t){const e=t.length&&Array.isArray(t[0]),a=e?t[0]:[],n=(e?t[1]:t[0])??{};return{args:a,options:n}}function rt(t,e){let a=!1;Array.isArray(t[0])?a=!0:t.length===1?a=e.inputs.some(s=>s.indexed):t.length===2&&(a=!0);const n=a?t[0]:void 0,r=(a?t[1]:t[0])??{};return{args:n,options:r}}function Tt(t){return!t||typeof t!="object"||!("BYTES_PER_ELEMENT"in t)?!1:t.BYTES_PER_ELEMENT===1&&t.constructor.name==="Uint8Array"}function Vn(t){return t.opcode==="CREATE2"?da(t):ua(t)}function ua(t){const e=B(k(t.from));let a=B(t.nonce);return a[0]===0&&(a=new Uint8Array([])),k(`0x${Y(ia([e,a],"bytes")).slice(26)}`)}function da(t){const e=B(k(t.from)),a=Me(Tt(t.salt)?t.salt:B(t.salt),{size:32}),n="bytecodeHash"in t?Tt(t.bytecodeHash)?t.bytecodeHash:B(t.bytecodeHash):Y(t.bytecode,"bytes");return k(De(Y(ze([B("0xff"),e,a,n])),12))}function Jn({chains:t,id:e}){return t.find(a=>a.id===e)}function Dt(t,e="hex"){const a=(()=>{if(typeof t=="string"){if(t.length>3&&t.length%2!==0)throw new Ge(t);return H(t)}return t})(),n=ct(a,{recursiveReadLimit:Number.POSITIVE_INFINITY});return zt(n,e)}function zt(t,e="hex"){if(t.bytes.length===0)return e==="hex"?G(t.bytes):t.bytes;const a=t.readByte();if(a<128&&t.decrementPosition(1),a<192){const r=Ct(t,a,128),s=t.readBytes(r);return e==="hex"?G(s):s}const n=Ct(t,a,192);return la(t,n,e)}function Ct(t,e,a){if(a===128&&e<128)return 1;if(e<=a+55)return e-a;if(e===a+55+1)return t.readUint8();if(e===a+55+2)return t.readUint16();if(e===a+55+3)return t.readUint24();if(e===a+55+4)return t.readUint32();throw new mt("Invalid RLP prefix")}function la(t,e,a){const n=t.position,r=[];for(;t.position-n<e;)r.push(zt(t,a));return r}function ma(t){return E(t)&&$e(t)===32}const fa=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Gt=Uint8Array.from(new Array(16).fill(0).map((t,e)=>e)),ha=Gt.map(t=>(9*t+5)%16),$t=(()=>{const a=[[Gt],[ha]];for(let n=0;n<4;n++)for(let r of a)r.push(r[n].map(s=>fa[s]));return a})(),Ht=$t[0],Ot=$t[1],jt=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(t=>Uint8Array.from(t)),pa=Ht.map((t,e)=>t.map(a=>jt[e][a])),ya=Ot.map((t,e)=>t.map(a=>jt[e][a])),ga=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),ba=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function vt(t,e,a,n){return t===0?e^a^n:t===1?e&a|~e&n:t===2?(e|~a)^n:t===3?e&n|a&~n:e^(a|~n)}const V=new Uint32Array(16);class wa extends ca{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:a,h2:n,h3:r,h4:s}=this;return[e,a,n,r,s]}set(e,a,n,r,s){this.h0=e|0,this.h1=a|0,this.h2=n|0,this.h3=r|0,this.h4=s|0}process(e,a){for(let o=0;o<16;o++,a+=4)V[o]=e.getUint32(a,!0);let n=this.h0|0,r=n,s=this.h1|0,u=s,d=this.h2|0,c=d,i=this.h3|0,f=i,m=this.h4|0,h=m;for(let o=0;o<5;o++){const p=4-o,l=ga[o],y=ba[o],w=Ht[o],g=Ot[o],C=pa[o],b=ya[o];for(let x=0;x<16;x++){const I=j(n+vt(o,s,d,i)+V[w[x]]+l,C[x])+m|0;n=m,m=i,i=j(d,10)|0,d=s,s=I}for(let x=0;x<16;x++){const I=j(r+vt(p,u,c,f)+V[g[x]]+y,b[x])+h|0;r=h,h=f,f=j(c,10)|0,c=u,u=I}}this.set(this.h1+d+f|0,this.h2+i+h|0,this.h3+m+r|0,this.h4+n+u|0,this.h0+s+c|0)}roundClean(){wt(V)}destroy(){this.destroyed=!0,wt(this.buffer),this.set(0,0,0,0,0)}}const xa=He(()=>new wa),Ea=xa;function Kn(t,e){const a=e||"hex",n=Ea(E(t,{strict:!1})?B(t):t);return a==="bytes"?n:Nt(n)}const st=new Map;async function Ia(t){const{getSocket:e,keepAlive:a=!0,key:n="socket",reconnect:r=!0,url:s}=t,{interval:u=3e4}=typeof a=="object"?a:{},{attempts:d=5,delay:c=2e3}=typeof r=="object"?r:{},i=JSON.stringify({keepAlive:a,key:n,url:s,reconnect:r});let f=st.get(i);if(f)return f;let m=0;const{schedule:h}=ie({id:i,fn:async()=>{const l=new Map,y=new Map;let w,g,C,b=!1;function x(){if(r&&m<d){if(b)return;b=!0,m++,g==null||g.close(),setTimeout(async()=>{await I().catch(console.error),b=!1},c)}else l.clear(),y.clear()}async function I(){const T=await e({onClose(){var v,P;for(const S of l.values())(v=S.onError)==null||v.call(S,new Z({url:s}));for(const S of y.values())(P=S.onError)==null||P.call(S,new Z({url:s}));x()},onError(v){var P,S;w=v;for(const _ of l.values())(P=_.onError)==null||P.call(_,w);for(const _ of y.values())(S=_.onError)==null||S.call(_,w);x()},onOpen(){w=void 0,m=0},onResponse(v){const P=v.method==="eth_subscription",S=P?v.params.subscription:v.id,_=P?y:l,q=_.get(S);q&&q.onResponse(v),P||_.delete(S)}});if(g=T,a&&(C&&clearInterval(C),C=setInterval(()=>{var v;return(v=g.ping)==null?void 0:v.call(g)},u)),r&&y.size>0){const v=y.entries();for(const[P,{onResponse:S,body:_,onError:q}]of v)_&&(y.delete(P),f==null||f.request({body:_,onResponse:S,onError:q}))}return T}return await I(),w=void 0,f={close(){C&&clearInterval(C),g.close(),st.delete(i)},get socket(){return g},request({body:T,onError:v,onResponse:P}){w&&v&&v(w);const S=T.id??ce.take(),_=q=>{var z;typeof q.id=="number"&&S!==q.id||(T.method==="eth_subscribe"&&typeof q.result=="string"&&y.set(q.result,{onResponse:_,onError:v,body:T}),T.method==="eth_unsubscribe"&&y.delete((z=T.params)==null?void 0:z[0]),P(q))};l.set(S,{onResponse:_,onError:v});try{g.request({body:{jsonrpc:"2.0",id:S,...T}})}catch(q){v==null||v(q)}},requestAsync({body:T,timeout:v=1e4}){return Ze(()=>new Promise((P,S)=>this.request({body:T,onError:S,onResponse:P})),{errorInstance:new aa({body:T,url:s}),timeout:v})},requests:l,subscriptions:y,url:s},st.set(i,f),[f]}}),[o,[p]]=await h();return p}async function K(t,e={}){const{keepAlive:a,reconnect:n}=e;return Ia({async getSocket({onClose:r,onError:s,onOpen:u,onResponse:d}){const c=await oa(()=>import("./native-DBJATukw.js").then(o=>o.n),__vite__mapDeps([0,1,2])).then(o=>o.WebSocket),i=new c(t);function f(){i.removeEventListener("close",f),i.removeEventListener("message",m),i.removeEventListener("error",s),i.removeEventListener("open",u),r()}function m({data:o}){if(!(typeof o=="string"&&o.trim().length===0))try{const p=JSON.parse(o);d(p)}catch(p){s(p)}}i.addEventListener("close",f),i.addEventListener("message",m),i.addEventListener("error",s),i.addEventListener("open",u),i.readyState===c.CONNECTING&&await new Promise((o,p)=>{i&&(i.onopen=o,i.onerror=p)});const{close:h}=i;return Object.assign(i,{close(){h.bind(i)(),f()},ping(){try{if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({url:i.url,cause:new Z({url:i.url})});const o={jsonrpc:"2.0",id:null,method:"net_version",params:[]};i.send(JSON.stringify(o))}catch(o){s(o)}},request({body:o}){if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({body:o,url:i.url,cause:new Z({url:i.url})});return i.send(JSON.stringify(o))}})},keepAlive:a,reconnect:n,url:t})}async function Ta(t){const e=await K(t);return Object.assign(e.socket,{requests:e.requests,subscriptions:e.subscriptions})}function Ca(t){return Lt(t,-32)===ue}function va(t){return de(t)}function Yn(t){if(!Ca(t))return{signature:t};const[e,a,n]=Mt([{type:"address"},{type:"bytes"},{type:"bytes"}],t);return{address:e,data:a,signature:n}}function Zn(t){if(!va(t))return{signature:t};const{authorization:e,to:a,...n}=le(t);return{authorization:{address:e.address,chainId:e.chainId,nonce:Number(e.nonce),r:R(e.r,{size:32}),s:R(e.s,{size:32}),yParity:e.yParity},...a?{address:a}:{},...n}}async function Sa({message:t,signature:e}){return Q({hash:me(t),signature:e})}async function Aa(t){const{domain:e,message:a,primaryType:n,signature:r,types:s}=t;return Q({hash:Qe({domain:e,message:a,primaryType:n,types:s}),signature:r})}function Qn(t){const{address:e,data:a,signature:n,to:r="hex"}=t,s=fe({authorization:{address:t.authorization.address,chainId:t.authorization.chainId,nonce:BigInt(t.authorization.nonce),r:BigInt(t.authorization.r),s:BigInt(t.authorization.s),yParity:t.authorization.yParity},data:a,signature:n,to:e});return r==="hex"?s:H(s)}async function Xn({address:t,hash:e,signature:a}){return ft(k(t),await Q({hash:e,signature:a}))}async function tr({address:t,message:e,signature:a}){return ft(k(t),await Sa({message:e,signature:a}))}async function er(t){const{address:e,domain:a,message:n,primaryType:r,signature:s,types:u}=t;return ft(k(e),await Aa({domain:a,message:n,primaryType:r,signature:s,types:u}))}function Pa(t){const e=Lt(t,0,1);if(e==="0x04")return"eip7702";if(e==="0x03")return"eip4844";if(e==="0x02")return"eip1559";if(e==="0x01")return"eip2930";if(e!=="0x"&&F(e)>=192)return"legacy";throw new he({serializedType:e})}function _a(t){const e=Pa(t);return e==="eip1559"?Fa(t):e==="eip2930"?Ua(t):e==="eip4844"?qa(t):e==="eip7702"?Ra(t):ka(t)}function Ra(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,h,o,p]=e;if(e.length!==10&&e.length!==13)throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,authorizationList:m,...e.length>9?{v:h,r:o,s:p}:{}},serializedTransaction:t,type:"eip7702"});const l={chainId:F(a),type:"eip7702"};return E(d)&&d!=="0x"&&(l.to=d),E(u)&&u!=="0x"&&(l.gas=A(u)),E(i)&&i!=="0x"&&(l.data=i),E(n)&&(l.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(l.value=A(c)),E(s)&&s!=="0x"&&(l.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(l.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(l.accessList=tt(f)),m.length!==0&&m!=="0x"&&(l.authorizationList=Ba(m)),we(l),{...e.length===13?O(e):void 0,...l}}function qa(t){const e=X(t),a=e.length===4,n=a?e[0]:e,r=a?e.slice(1):[],[s,u,d,c,i,f,m,h,o,p,l,y,w,g]=n,[C,b,x]=r;if(!(n.length===11||n.length===14))throw new $({attributes:{chainId:s,nonce:u,maxPriorityFeePerGas:d,maxFeePerGas:c,gas:i,to:f,value:m,data:h,accessList:o,...n.length>9?{v:y,r:w,s:g}:{}},serializedTransaction:t,type:"eip4844"});const I={blobVersionedHashes:l,chainId:F(s),to:f,type:"eip4844"};return E(i)&&i!=="0x"&&(I.gas=A(i)),E(h)&&h!=="0x"&&(I.data=h),E(u)&&(I.nonce=u==="0x"?0:F(u)),E(m)&&m!=="0x"&&(I.value=A(m)),E(p)&&p!=="0x"&&(I.maxFeePerBlobGas=A(p)),E(c)&&c!=="0x"&&(I.maxFeePerGas=A(c)),E(d)&&d!=="0x"&&(I.maxPriorityFeePerGas=A(d)),o.length!==0&&o!=="0x"&&(I.accessList=tt(o)),C&&b&&x&&(I.sidecars=ge({blobs:C,commitments:b,proofs:x})),be(I),{...n.length===14?O(n):void 0,...I}}function Fa(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,h,o]=e;if(!(e.length===9||e.length===12))throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,...e.length>9?{v:m,r:h,s:o}:{}},serializedTransaction:t,type:"eip1559"});const p={chainId:F(a),type:"eip1559"};return E(d)&&d!=="0x"&&(p.to=d),E(u)&&u!=="0x"&&(p.gas=A(u)),E(i)&&i!=="0x"&&(p.data=i),E(n)&&(p.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(p.value=A(c)),E(s)&&s!=="0x"&&(p.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(p.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(p.accessList=tt(f)),pe(p),{...e.length===12?O(e):void 0,...p}}function Ua(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,h]=e;if(!(e.length===8||e.length===11))throw new $({attributes:{chainId:a,nonce:n,gasPrice:r,gas:s,to:u,value:d,data:c,accessList:i,...e.length>8?{v:f,r:m,s:h}:{}},serializedTransaction:t,type:"eip2930"});const o={chainId:F(a),type:"eip2930"};return E(u)&&u!=="0x"&&(o.to=u),E(s)&&s!=="0x"&&(o.gas=A(s)),E(c)&&c!=="0x"&&(o.data=c),E(n)&&(o.nonce=n==="0x"?0:F(n)),E(d)&&d!=="0x"&&(o.value=A(d)),E(r)&&r!=="0x"&&(o.gasPrice=A(r)),i.length!==0&&i!=="0x"&&(o.accessList=tt(i)),ye(o),{...e.length===11?O(e):void 0,...o}}function ka(t){const e=Dt(t,"hex"),[a,n,r,s,u,d,c,i,f]=e;if(!(e.length===6||e.length===9))throw new $({attributes:{nonce:a,gasPrice:n,gas:r,to:s,value:u,data:d,...e.length>6?{v:c,r:i,s:f}:{}},serializedTransaction:t,type:"legacy"});const m={type:"legacy"};if(E(s)&&s!=="0x"&&(m.to=s),E(r)&&r!=="0x"&&(m.gas=A(r)),E(d)&&d!=="0x"&&(m.data=d),E(a)&&(m.nonce=a==="0x"?0:F(a)),E(u)&&u!=="0x"&&(m.value=A(u)),E(n)&&n!=="0x"&&(m.gasPrice=A(n)),xe(m),e.length===6)return m;const h=E(c)&&c!=="0x"?A(c):0n;if(f==="0x"&&i==="0x")return h>0&&(m.chainId=Number(h)),m;const o=h,p=Number((o-35n)/2n);if(p>0)m.chainId=p;else if(o!==27n&&o!==28n)throw new Ee({v:o});return m.v=o,m.s=f,m.r=i,m.yParity=o%2n===0n?1:0,m}function X(t){return Dt(`0x${t.slice(4)}`,"hex")}function tt(t){const e=[];for(let a=0;a<t.length;a++){const[n,r]=t[a];if(!Oe(n,{strict:!1}))throw new je({address:n});e.push({address:n,storageKeys:r.map(s=>ma(s)?s:We(s))})}return e}function Ba(t){const e=[];for(let a=0;a<t.length;a++){const[n,r,s,u,d,c]=t[a];e.push({address:r,chainId:n==="0x"?0:F(n),nonce:s==="0x"?0:F(s),...O([u,d,c])})}return e}function O(t){const e=t.slice(-3),a=e[0]==="0x"||A(e[0])===0n?27n:28n;return{r:xt(e[1],{size:32}),s:xt(e[2],{size:32}),v:a,yParity:a===27n?0:1}}class Na extends mt{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function Wt(t,e){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(t))throw new Na({value:t});let[a,n="0"]=t.split(".");const r=a.startsWith("-");if(r&&(a=a.slice(1)),n=n.replace(/(0+)$/,""),e===0)Math.round(+`.${n}`)===1&&(a=`${BigInt(a)+1n}`),n="";else if(n.length>e){const[s,u,d]=[n.slice(0,e-1),n.slice(e-1,e),n.slice(e)],c=Math.round(+`${u}.${d}`);c>9?n=`${BigInt(s)+BigInt(1)}0`.padStart(s.length+1,"0"):n=`${s}${c}`,n.length>e&&(n=n.slice(1),a=`${BigInt(a)+1n}`),n=n.slice(0,e)}else n=n.padEnd(e,"0");return BigInt(`${r?"-":""}${a}${n}`)}function ar(t,e="wei"){return Wt(t,Ie[e])}function nr(t,e="wei"){return Wt(t,Te[e])}async function La(t,{hash:e}){await t.request({method:`${t.mode}_dropTransaction`,params:[e]})}async function Ma(t){return t.request({method:`${t.mode}_dumpState`})}async function Da(t){return t.mode==="ganache"?await t.request({method:"eth_mining"}):await t.request({method:`${t.mode}_getAutomine`})}async function za(t){return await t.request({method:"txpool_content"})}async function Ga(t){const{pending:e,queued:a}=await t.request({method:"txpool_status"});return{pending:F(e),queued:F(a)}}async function $a(t,{address:e}){await t.request({method:`${t.mode}_impersonateAccount`,params:[e]})}async function Ha(t,{seconds:e}){return await t.request({method:"evm_increaseTime",params:[R(e)]})}async function Oa(t){return await t.request({method:"txpool_inspect"})}async function ja(t,{state:e}){await t.request({method:`${t.mode}_loadState`,params:[e]})}async function Wa(t,{blocks:e,interval:a}){t.mode==="ganache"?await t.request({method:"evm_mine",params:[{blocks:R(e)}]}):await t.request({method:`${t.mode}_mine`,params:[R(e),R(a||0)]})}async function Va(t){await t.request({method:`${t.mode}_removeBlockTimestampInterval`})}async function Ja(t,{blockNumber:e,jsonRpcUrl:a}={}){await t.request({method:`${t.mode}_reset`,params:[{forking:{blockNumber:Number(e),jsonRpcUrl:a}}]})}async function Ka(t,{id:e}){await t.request({method:"evm_revert",params:[e]})}async function Ya(t,e){var w,g,C;const{accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:m,...h}=e,o=(C=(g=(w=t.chain)==null?void 0:w.formatters)==null?void 0:g.transactionRequest)==null?void 0:C.format,l=(o||ht)({...St(h,{format:o}),accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:m},"sendUnsignedTransaction");return await t.request({method:"eth_sendUnsignedTransaction",params:[l]})}async function Za(t,e){t.mode==="ganache"?e?await t.request({method:"miner_start"}):await t.request({method:"miner_stop"}):await t.request({method:"evm_setAutomine",params:[e]})}async function Qa(t,{address:e,value:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountBalance",params:[e,R(a)]}):await t.request({method:`${t.mode}_setBalance`,params:[e,R(a)]})}async function Xa(t,{gasLimit:e}){await t.request({method:"evm_setBlockGasLimit",params:[R(e)]})}async function tn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:`${t.mode}_setBlockTimestampInterval`,params:[a]})}async function en(t,{address:e,bytecode:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountCode",params:[e,a]}):await t.request({method:`${t.mode}_setCode`,params:[e,a]})}async function an(t,{address:e}){await t.request({method:`${t.mode}_setCoinbase`,params:[e]})}async function nn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:"evm_setIntervalMining",params:[a]})}async function rn(t,e){await t.request({method:`${t.mode}_setLoggingEnabled`,params:[e]})}async function sn(t,{gasPrice:e}){await t.request({method:`${t.mode}_setMinGasPrice`,params:[R(e)]})}async function on(t,{baseFeePerGas:e}){await t.request({method:`${t.mode}_setNextBlockBaseFeePerGas`,params:[R(e)]})}async function cn(t,{timestamp:e}){await t.request({method:"evm_setNextBlockTimestamp",params:[R(e)]})}async function un(t,{address:e,nonce:a}){await t.request({method:`${t.mode}_setNonce`,params:[e,R(a)]})}async function dn(t,e){await t.request({method:`${t.mode}_setRpcUrl`,params:[e]})}async function ln(t,{address:e,index:a,value:n}){await t.request({method:`${t.mode}_setStorageAt`,params:[e,typeof a=="number"?R(a):a,n]})}async function mn(t){return await t.request({method:"evm_snapshot"})}async function fn(t,{address:e}){await t.request({method:`${t.mode}_stopImpersonatingAccount`,params:[e]})}function hn({mode:t}){return e=>{const a=e.extend(()=>({mode:t}));return{dropTransaction:n=>La(a,n),dumpState:()=>Ma(a),getAutomine:()=>Da(a),getTxpoolContent:()=>za(a),getTxpoolStatus:()=>Ga(a),impersonateAccount:n=>$a(a,n),increaseTime:n=>Ha(a,n),inspectTxpool:()=>Oa(a),loadState:n=>ja(a,n),mine:n=>Wa(a,n),removeBlockTimestampInterval:()=>Va(a),reset:n=>Ja(a,n),revert:n=>Ka(a,n),sendUnsignedTransaction:n=>Ya(a,n),setAutomine:n=>Za(a,n),setBalance:n=>Qa(a,n),setBlockGasLimit:n=>Xa(a,n),setBlockTimestampInterval:n=>tn(a,n),setCode:n=>en(a,n),setCoinbase:n=>an(a,n),setIntervalMining:n=>nn(a,n),setLoggingEnabled:n=>rn(a,n),setMinGasPrice:n=>sn(a,n),setNextBlockBaseFeePerGas:n=>on(a,n),setNextBlockTimestamp:n=>cn(a,n),setNonce:n=>un(a,n),setRpcUrl:n=>dn(a,n),setStorageAt:n=>ln(a,n),snapshot:()=>mn(a),stopImpersonatingAccount:n=>fn(a,n)}}}function rr(t){const{key:e="test",name:a="Test Client",mode:n}=t;return At({...t,key:e,name:a,type:"testClient"}).extend(s=>({mode:n,...hn({mode:n})(s)}))}async function pn(t,{chain:e}){const{id:a,name:n,nativeCurrency:r,rpcUrls:s,blockExplorers:u}=e;await t.request({method:"wallet_addEthereumChain",params:[{chainId:R(a),chainName:n,nativeCurrency:r,rpcUrls:s.default.http,blockExplorerUrls:u?Object.values(u).map(({url:d})=>d):void 0}]},{dedupe:!0,retryCount:0})}function yn(t,e){const{abi:a,args:n,bytecode:r,...s}=e,u=Ce({abi:a,args:n,bytecode:r});return ut(t,{...s,...s.authorizationList?{to:null}:{},data:u})}async function gn(t){var a;return((a=t.account)==null?void 0:a.type)==="local"?[t.account.address]:(await t.request({method:"eth_accounts"},{dedupe:!0})).map(n=>Ve(n))}async function bn(t,e={}){const{account:a=t.account,chainId:n}=e,r=a?N(a):void 0,s=n?[r==null?void 0:r.address,[R(n)]]:[r==null?void 0:r.address],u=await t.request({method:"wallet_getCapabilities",params:s}),d={};for(const[c,i]of Object.entries(u)){d[Number(c)]={};for(let[f,m]of Object.entries(i))f==="addSubAccount"&&(f="unstable_addSubAccount"),d[Number(c)][f]=m}return typeof n=="number"?d[n]:d}async function wn(t){return await t.request({method:"wallet_getPermissions"},{dedupe:!0})}async function xn(t){return(await t.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(a=>k(a))}async function En(t,e){return t.request({method:"wallet_requestPermissions",params:[e]},{retryCount:0})}async function In(t,e){const{chain:a=t.chain}=e,n=e.timeout??Math.max(((a==null?void 0:a.blockTime)??0)*3,5e3),r=await Pt(t,e);return await _t(t,{...e,id:r.id,timeout:n})}const ot=new Je(128);async function Vt(t,e){var x,I,T,v;const{account:a=t.account,chain:n=t.chain,accessList:r,authorizationList:s,blobs:u,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:o,pollingInterval:p,throwOnReceiptRevert:l,type:y,value:w,...g}=e,C=e.timeout??Math.max(((n==null?void 0:n.blockTime)??0)*3,5e3);if(typeof a>"u")throw new D({docsPath:"/docs/actions/wallet/sendTransactionSync"});const b=a?N(a):null;try{Rt(e);const P=await(async()=>{if(e.to)return e.to;if(e.to!==null&&s&&s.length>0)return await ve({authorization:s[0]}).catch(()=>{throw new mt("`to` is required. Could not infer from `authorizationList`.")})})();if((b==null?void 0:b.type)==="json-rpc"||b===null){let S;n!==null&&(S=await U(t,dt,"getChainId")({}),qt({currentChainId:S,chain:n}));const _=(T=(I=(x=t.chain)==null?void 0:x.formatters)==null?void 0:I.transactionRequest)==null?void 0:T.format,z=(_||ht)({...St(g,{format:_}),accessList:r,account:b,authorizationList:s,blobs:u,chainId:S,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:o,to:P,type:y,value:w},"sendTransaction"),pt=ot.get(t.uid),Jt=pt?"wallet_sendTransaction":"eth_sendTransaction",Kt=await(async()=>{try{return await t.request({method:Jt,params:[z]},{retryCount:0})}catch(yt){if(pt===!1)throw yt;const L=yt;if(L.name==="InvalidInputRpcError"||L.name==="InvalidParamsRpcError"||L.name==="MethodNotFoundRpcError"||L.name==="MethodNotSupportedRpcError")return await t.request({method:"wallet_sendTransaction",params:[z]},{retryCount:0}).then(at=>(ot.set(t.uid,!0),at)).catch(at=>{const nt=at;throw nt.name==="MethodNotFoundRpcError"||nt.name==="MethodNotSupportedRpcError"?(ot.set(t.uid,!1),L):nt});throw L}})(),et=await U(t,Se,"waitForTransactionReceipt")({checkReplacement:!1,hash:Kt,pollingInterval:p,timeout:C});if(l&&et.status==="reverted")throw new Ae({receipt:et});return et}if((b==null?void 0:b.type)==="local"){const S=await U(t,Ft,"prepareTransactionRequest")({account:b,accessList:r,authorizationList:s,blobs:u,chain:n,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:o,nonceManager:b.nonceManager,parameters:[...Pe,"sidecars"],type:y,value:w,...g,to:P}),_=(v=n==null?void 0:n.serializers)==null?void 0:v.transaction,q=await b.signTransaction(S,{serializer:_});return await U(t,Ut,"sendRawTransactionSync")({serializedTransaction:q,throwOnReceiptRevert:l})}throw(b==null?void 0:b.type)==="smart"?new J({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new J({docsPath:"/docs/actions/wallet/sendTransactionSync",type:b==null?void 0:b.type})}catch(P){throw P instanceof J?P:_e(P,{...e,account:b,chain:e.chain||void 0})}}async function Tn(t,e){const{id:a}=e;await t.request({method:"wallet_showCallsStatus",params:[a]})}async function Cn(t,e){const{account:a=t.account}=e;if(!a)throw new D({docsPath:"/docs/eip7702/signAuthorization"});const n=N(a);if(!n.signAuthorization)throw new J({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:n.type});const r=await kt(t,e);return n.signAuthorization(r)}async function vn(t,{account:e=t.account,message:a}){if(!e)throw new D({docsPath:"/docs/actions/wallet/signMessage"});const n=N(e);if(n.signMessage)return n.signMessage({message:a});const r=typeof a=="string"?Ke(a):a.raw instanceof Uint8Array?Nt(a.raw):a.raw;return t.request({method:"personal_sign",params:[r,n.address]},{retryCount:0})}async function Sn(t,e){var i,f,m,h;const{account:a=t.account,chain:n=t.chain,...r}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTransaction"});const s=N(a);Rt({account:s,...e});const u=await U(t,dt,"getChainId")({});n!==null&&qt({currentChainId:u,chain:n});const d=(n==null?void 0:n.formatters)||((i=t.chain)==null?void 0:i.formatters),c=((f=d==null?void 0:d.transactionRequest)==null?void 0:f.format)||ht;return s.signTransaction?s.signTransaction({...r,chainId:u},{serializer:(h=(m=t.chain)==null?void 0:m.serializers)==null?void 0:h.transaction}):await t.request({method:"eth_signTransaction",params:[{...c({...r,account:s},"signTransaction"),chainId:R(u),from:s.address}]},{retryCount:0})}async function An(t,e){const{account:a=t.account,domain:n,message:r,primaryType:s}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTypedData"});const u=N(a),d={EIP712Domain:Xe({domain:n}),...e.types};if(ta({domain:n,message:r,primaryType:s,types:d}),u.signTypedData)return u.signTypedData({domain:n,message:r,primaryType:s,types:d});const c=ea({domain:n,message:r,primaryType:s,types:d});return t.request({method:"eth_signTypedData_v4",params:[u.address,c]},{retryCount:0})}async function Pn(t,{id:e}){await t.request({method:"wallet_switchEthereumChain",params:[{chainId:R(e)}]},{retryCount:0})}async function _n(t,e){return await t.request({method:"wallet_watchAsset",params:e},{retryCount:0})}async function Rn(t,e){return M.internal(t,Vt,"sendTransactionSync",e)}function qn(t){return{addChain:e=>pn(t,e),deployContract:e=>yn(t,e),getAddresses:()=>gn(t),getCallsStatus:e=>qe(t,e),getCapabilities:e=>bn(t,e),getChainId:()=>dt(t),getPermissions:()=>wn(t),prepareAuthorization:e=>kt(t,e),prepareTransactionRequest:e=>Ft(t,e),requestAddresses:()=>xn(t),requestPermissions:e=>En(t,e),sendCalls:e=>Pt(t,e),sendCallsSync:e=>In(t,e),sendRawTransaction:e=>Re(t,e),sendRawTransactionSync:e=>Ut(t,e),sendTransaction:e=>ut(t,e),sendTransactionSync:e=>Vt(t,e),showCallsStatus:e=>Tn(t,e),signAuthorization:e=>Cn(t,e),signMessage:e=>vn(t,e),signTransaction:e=>Sn(t,e),signTypedData:e=>An(t,e),switchChain:e=>Pn(t,e),waitForCallsStatus:e=>_t(t,e),watchAsset:e=>_n(t,e),writeContract:e=>M(t,e),writeContractSync:e=>Rn(t,e)}}function sr(t){const{key:e="wallet",name:a="Wallet Client",transport:n}=t;return At({...t,key:e,name:a,transport:n,type:"walletClient"}).extend(qn)}function or(t,e={}){const{key:a="custom",methods:n,name:r="Custom Provider",retryDelay:s}=e;return({retryCount:u})=>lt({key:a,methods:n,name:r,request:t.request.bind(t),retryCount:e.retryCount??u,retryDelay:s,type:"custom"})}function ir(t,e={}){const{key:a="fallback",name:n="Fallback",rank:r=!1,shouldThrow:s=Fn,retryCount:u,retryDelay:d}=e;return(({chain:c,pollingInterval:i=4e3,timeout:f,...m})=>{let h=t,o=()=>{};const p=lt({key:a,name:n,async request({method:l,params:y}){let w;const g=async(C=0)=>{const b=h[C]({...m,chain:c,retryCount:0,timeout:f});try{const x=await b.request({method:l,params:y});return o({method:l,params:y,response:x,transport:b,status:"success"}),x}catch(x){if(o({error:x,method:l,params:y,transport:b,status:"error"}),s(x)||C===h.length-1||(w??(w=h.slice(C+1).some(I=>{const{include:T,exclude:v}=I({chain:c}).config.methods||{};return T?T.includes(l):v?!v.includes(l):!0})),!w))throw x;return g(C+1)}};return g()},retryCount:u,retryDelay:d,type:"fallback"},{onResponse:l=>o=l,transports:h.map(l=>l({chain:c,retryCount:0}))});if(r){const l=typeof r=="object"?r:{};Un({chain:c,interval:l.interval??i,onTransports:y=>h=y,ping:l.ping,sampleCount:l.sampleCount,timeout:l.timeout,transports:h,weights:l.weights})}return p})}function Fn(t){return!!("code"in t&&typeof t.code=="number"&&(t.code===na.code||t.code===ra.code||Fe.nodeMessage.test(t.message)||t.code===5e3))}function Un({chain:t,interval:e=4e3,onTransports:a,ping:n,sampleCount:r=10,timeout:s=1e3,transports:u,weights:d={}}){const{stability:c=.7,latency:i=.3}=d,f=[],m=async()=>{const h=await Promise.all(u.map(async l=>{const y=l({chain:t,retryCount:0,timeout:s}),w=Date.now();let g,C;try{await(n?n({transport:y}):y.request({method:"net_listening"})),C=1}catch{C=0}finally{g=Date.now()}return{latency:g-w,success:C}}));f.push(h),f.length>r&&f.shift();const o=Math.max(...f.map(l=>Math.max(...l.map(({latency:y})=>y)))),p=u.map((l,y)=>{const w=f.map(I=>I[y].latency),C=1-w.reduce((I,T)=>I+T,0)/w.length/o,b=f.map(I=>I[y].success),x=b.reduce((I,T)=>I+T,0)/b.length;return x===0?[0,y]:[i*C+c*x,y]}).sort((l,y)=>y[0]-l[0]);a(p.map(([,l])=>u[l])),await Ue(e),m()};m()}function cr(t,e={}){const{keepAlive:a,key:n="webSocket",methods:r,name:s="WebSocket JSON-RPC",reconnect:u,retryDelay:d}=e;return({chain:c,retryCount:i,timeout:f})=>{var l;const m=e.retryCount??i,h=f??e.timeout??1e4,o=t||((l=c==null?void 0:c.rpcUrls.default.webSocket)==null?void 0:l[0]),p={keepAlive:a,reconnect:u};if(!o)throw new ke;return lt({key:n,methods:r,name:s,async request({method:y,params:w}){const g={method:y,params:w},C=await K(o,p),{error:b,result:x}=await C.requestAsync({body:g,timeout:h});if(b)throw new sa({body:g,error:b,url:o});return x},retryCount:m,retryDelay:d,timeout:h,type:"webSocket"},{getSocket(){return Ta(o)},getRpcClient(){return K(o,p)},async subscribe({params:y,onData:w,onError:g}){const C=await K(o,p),{result:b}=await new Promise((x,I)=>C.request({body:{method:"eth_subscribe",params:y},onError(T){I(T),g==null||g(T)},onResponse(T){if(T.error){I(T.error),g==null||g(T.error);return}if(typeof T.id=="number"){x(T);return}T.method==="eth_subscription"&&w(T.params)}}));return{subscriptionId:b,async unsubscribe(){return new Promise(x=>C.request({body:{method:"eth_unsubscribe",params:[b]},onResponse:x}))}}}})}}class ur extends Error{constructor(e,a){super(a),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=e,this.details=a}}const it="/docs/contract/decodeDeployData";function dr(t){const{abi:e,bytecode:a,data:n}=t;if(n===a)return{bytecode:a};const r=e.find(u=>"type"in u&&u.type==="constructor");if(!r)throw new Ye({docsPath:it});if(!("inputs"in r))throw new Et({docsPath:it});if(!r.inputs||r.inputs.length===0)throw new Et({docsPath:it});return{args:Mt(r.inputs,`0x${n.replace(a,"")}`),bytecode:a}}function lr(t){const e=t.to??(typeof t.blobs[0]=="string"?"hex":"bytes"),a=typeof t.blobs[0]=="string"?t.blobs.map(d=>H(d)):t.blobs,n=a.reduce((d,c)=>d+c.length,0),r=ct(new Uint8Array(n));let s=!0;for(const d of a){const c=ct(d);for(;s&&c.position<d.length;){c.incrementPosition(1);let i=31;d.length-c.position<31&&(i=d.length-c.position);for(const f in Array.from({length:i})){const m=c.readByte();if(m===128&&!c.inspectBytes(c.remaining).includes(128)){s=!1;break}r.pushByte(m)}}}const u=r.bytes.slice(0,r.position);return e==="hex"?G(u):u}function mr(t){const{sidecars:e,version:a}=t,n=t.to??(typeof e[0].blob=="string"?"hex":"bytes"),r=[];for(const{commitment:s}of e)r.push(Be({commitment:s,to:n,version:a}));return r}const kn=2147483648;function fr(t){if(t===1)return 60n;if(t>=kn||t<0)throw new Ne({chainId:t});return BigInt((2147483648|t)>>>0)}function Bn({blobToKzgCommitment:t,computeBlobKzgProof:e}){return{blobToKzgCommitment:t,computeBlobKzgProof:e}}function hr(t,e){try{t.loadTrustedSetup(e)}catch(a){const n=a;if(!n.message.includes("trusted setup is already loaded"))throw n}return Bn(t)}function pr({r:t,yParityAndS:e}){const a=H(e),n=a[0]&128?1:0,r=a;return n===1&&(r[0]&=127),{r:t,s:G(r),yParity:n}}function yr(t){const{r:e,s:a}=Bt.Signature.fromCompact(t.slice(2,130));return{r:R(e,{size:32}),yParityAndS:R(a,{size:32})}}async function gr(t){const{serializedTransaction:e,signature:a}=t,n=_a(e),r=a??{r:n.r,s:n.s,v:n.v,yParity:n.yParity},s=Le({...n,r:void 0,s:void 0,v:void 0,yParity:void 0,sidecars:void 0});return await Q({hash:Y(s),signature:r})}function br({r:t,yParityAndS:e}){return`0x${new Bt.Signature(A(t),A(e)).toCompactHex()}`}function wr(t){const{r:e,s:a,v:n,yParity:r}=t,s=Number(r??n-27n);let u=a;if(s===1){const d=H(a);d[0]|=128,u=G(d)}return{r:e,yParityAndS:u}}export{Ye as AbiConstructorNotFoundError,Et as AbiConstructorParamsNotFoundError,To as AbiDecodingDataSizeInvalidError,Co as AbiDecodingDataSizeTooSmallError,vo as AbiDecodingZeroDataError,So as AbiEncodingArrayLengthMismatchError,Ao as AbiEncodingBytesSizeMismatchError,Po as AbiEncodingLengthMismatchError,_o as AbiErrorInputsNotFoundError,Ro as AbiErrorNotFoundError,qo as AbiErrorSignatureNotFoundError,Fo as AbiEventNotFoundError,Uo as AbiEventSignatureEmptyTopicsError,ko as AbiEventSignatureNotFoundError,Bo as AbiFunctionNotFoundError,No as AbiFunctionOutputsNotFoundError,Lo as AbiFunctionSignatureNotFoundError,Ir as AccountStateConflictError,Ki as AtomicReadyWalletRejectedUpgradeError,Yi as AtomicityNotSupportedError,mt as BaseError,Tr as BaseFeeScalarError,Cr as BlockNotFoundError,vr as BundleFailedError,Zi as BundleTooLargeError,Mo as BytesSizeMismatchError,Sr as CallExecutionError,Qi as ChainDisconnectedError,Ar as ChainDoesNotSupportContract,Pr as ChainMismatchError,_r as ChainNotFoundError,Rr as CircularReferenceError,qr as ClientChainNotConfiguredError,Fr as ContractFunctionExecutionError,Ur as ContractFunctionRevertedError,kr as ContractFunctionZeroDataError,Br as CounterfactualDeploymentFailedError,Do as DecodeLogDataMismatch,zo as DecodeLogTopicsMismatch,Xi as DuplicateIdError,ur as EIP1193ProviderRpcError,Nr as Eip1559FeesNotSupportedError,Lr as EnsAvatarInvalidNftUriError,Mr as EnsAvatarUnsupportedNamespaceError,Dr as EnsAvatarUriResolutionError,Ne as EnsInvalidChainIdError,zr as EstimateGasExecutionError,Fe as ExecutionRevertedError,Gr as FeeCapTooHighError,$r as FeeCapTooLowError,Hr as FeeConflictError,Go as FilterTypeNotSupportedError,tc as HttpRequestError,Or as InsufficientFundsError,$o as IntegerOutOfRangeError,ec as InternalRpcError,jr as IntrinsicGasTooHighError,Wr as IntrinsicGasTooLowError,Ho as InvalidAbiDecodingTypeError,Oo as InvalidAbiEncodingTypeError,Vr as InvalidAbiItemError,Qt as InvalidAbiParameterError,Jr as InvalidAbiParametersError,Kr as InvalidAbiTypeParameterError,je as InvalidAddressError,jo as InvalidArrayError,Wo as InvalidBytesBooleanError,Yr as InvalidChainIdError,Na as InvalidDecimalNumberError,Vo as InvalidDefinitionTypeError,$i as InvalidDomainError,Zr as InvalidFunctionModifierError,Jo as InvalidHexBooleanError,Ge as InvalidHexValueError,ac as InvalidInputRpcError,Ee as InvalidLegacyVError,Qr as InvalidModifierError,Xr as InvalidParameterError,nc as InvalidParamsRpcError,ts as InvalidParenthesisError,Hi as InvalidPrimaryTypeError,rc as InvalidRequestRpcError,es as InvalidSerializableTransactionError,$ as InvalidSerializedTransactionError,he as InvalidSerializedTransactionTypeError,as as InvalidSignatureError,ns as InvalidStorageKeySizeError,rs as InvalidStructSignatureError,Oi as InvalidStructTypeError,sc as JsonRpcVersionUnsupportedError,oc as LimitExceededRpcError,ss as MaxFeePerGasTooLowError,ic as MethodNotFoundRpcError,cc as MethodNotSupportedRpcError,os as NonceMaxValueError,is as NonceTooHighError,cs as NonceTooLowError,uc as ParseRpcError,dc as ProviderDisconnectedError,lc as ProviderRpcError,us as RawContractError,mc as ResourceNotFoundRpcError,fc as ResourceUnavailableRpcError,hc as RpcError,sa as RpcRequestError,Ko as SizeExceedsPaddingSizeError,Yo as SizeOverflowError,Zo as SliceOffsetOutOfBoundsError,Z as SocketClosedError,ds as SolidityProtectedKeywordError,ls as StateAssignmentConflictError,pc as SwitchChainError,aa as TimeoutError,ms as TipAboveFeeCapError,fs as TransactionExecutionError,hs as TransactionNotFoundError,ps as TransactionReceiptNotFoundError,na as TransactionRejectedRpcError,ys as TransactionTypeNotSupportedError,yc as UnauthorizedProviderError,gc as UnknownBundleIdError,gs as UnknownNodeError,bc as UnknownRpcError,bs as UnknownSignatureError,ws as UnknownTypeError,wc as UnsupportedChainIdError,xc as UnsupportedNonOptionalCapabilityError,Qo as UnsupportedPackedAbiType,Ec as UnsupportedProviderMethodError,ke as UrlRequiredError,ra as UserRejectedRequestError,xs as WaitForCallsStatusTimeoutError,Es as WaitForTransactionReceiptTimeoutError,It as WebSocketRequestError,qt as assertCurrentChain,Rt as assertRequest,pe as assertTransactionEIP1559,ye as assertTransactionEIP2930,xe as assertTransactionLegacy,Is as blobsToCommitments,Ts as blobsToProofs,Xo as boolToBytes,ti as boolToHex,ei as bytesToBigInt,ai as bytesToBool,G as bytesToHex,ni as bytesToNumber,Tc as bytesToRlp,ri as bytesToString,pd as ccipFetch,yd as ccipRequest,Ve as checksumAddress,Be as commitmentToVersionedHash,Cs as commitmentsToVersionedHashes,br as compactSignatureToHex,pr as compactSignatureToSignature,ze as concat,si as concatBytes,oi as concatHex,At as createClient,vs as createNonceManager,Ss as createPublicClient,rr as createTestClient,lt as createTransport,sr as createWalletClient,or as custom,Mt as decodeAbiParameters,dr as decodeDeployData,ii as decodeErrorResult,ci as decodeEventLog,As as decodeFunctionData,Ps as decodeFunctionResult,ui as defineBlock,di as defineChain,Bn as defineKzg,li as defineTransaction,Ed as defineTransactionReceipt,mi as defineTransactionRequest,_s as deploylessCallViaBytecodeBytecode,Rs as deploylessCallViaFactoryBytecode,ji as domainSeparator,fi as encodeAbiParameters,Ce as encodeDeployData,qs as encodeErrorResult,hi as encodeEventTopics,Xt as encodeFunctionData,Fs as encodeFunctionResult,Us as encodePacked,ks as erc1155Abi,Bs as erc20Abi,Ns as erc20Abi_bytes32,Ls as erc4626Abi,Ms as erc6492SignatureValidatorAbi,Ds as erc6492SignatureValidatorByteCode,zs as erc721Abi,Gs as ethAddress,Ie as etherUnits,Jn as extractChain,ir as fallback,pi as formatBlock,$s as formatEther,Hs as formatGwei,Id as formatLog,yi as formatTransaction,Td as formatTransactionReceipt,ht as formatTransactionRequest,Os as formatUnits,lr as fromBlobs,gi as fromBytes,bi as fromHex,Dt as fromRlp,wi as getAbiItem,k as getAddress,js as getChainContractAddress,Wn as getContract,Vn as getContractAddress,te as getContractError,da as getCreate2Address,ua as getCreateAddress,xi as getEventSelector,Ei as getEventSignature,Ii as getFunctionSelector,Ti as getFunctionSignature,Pa as getSerializedTransactionType,Ws as getTransactionType,Xe as getTypesForEIP712Domain,Te as gweiUnits,Wi as hashDomain,me as hashMessage,Vi as hashStruct,Qe as hashTypedData,A as hexToBigInt,Ci as hexToBool,H as hexToBytes,yr as hexToCompactSignature,F as hexToNumber,Cc as hexToRlp,Vs as hexToSignature,vi as hexToString,Js as http,Oe as isAddress,ft as isAddressEqual,Tt as isBytes,Ca as isErc6492Signature,va as isErc8010Signature,ma as isHash,E as isHex,Y as keccak256,Ks as labelhash,vc as maxInt104,Sc as maxInt112,Ac as maxInt120,Pc as maxInt128,_c as maxInt136,Rc as maxInt144,qc as maxInt152,Fc as maxInt16,Uc as maxInt160,kc as maxInt168,Bc as maxInt176,Nc as maxInt184,Lc as maxInt192,Mc as maxInt200,Dc as maxInt208,zc as maxInt216,Gc as maxInt224,$c as maxInt232,Hc as maxInt24,Oc as maxInt240,jc as maxInt248,Wc as maxInt256,Vc as maxInt32,Jc as maxInt40,Kc as maxInt48,Yc as maxInt56,Zc as maxInt64,Qc as maxInt72,Xc as maxInt8,tu as maxInt80,eu as maxInt88,au as maxInt96,nu as maxUint104,ru as maxUint112,su as maxUint120,ou as maxUint128,iu as maxUint136,cu as maxUint144,uu as maxUint152,du as maxUint16,lu as maxUint160,mu as maxUint168,fu as maxUint176,hu as maxUint184,pu as maxUint192,yu as maxUint200,gu as maxUint208,bu as maxUint216,wu as maxUint224,xu as maxUint232,Eu as maxUint24,Iu as maxUint240,Tu as maxUint248,Cu as maxUint256,vu as maxUint32,Su as maxUint40,Au as maxUint48,Pu as maxUint56,_u as maxUint64,Ru as maxUint72,qu as maxUint8,Fu as maxUint80,Uu as maxUint88,ku as maxUint96,Bu as minInt104,Nu as minInt112,Lu as minInt120,Mu as minInt128,Du as minInt136,zu as minInt144,Gu as minInt152,$u as minInt16,Hu as minInt160,Ou as minInt168,ju as minInt176,Wu as minInt184,Vu as minInt192,Ju as minInt200,Ku as minInt208,Yu as minInt216,Zu as minInt224,Qu as minInt232,Xu as minInt24,td as minInt240,ed as minInt248,ad as minInt256,nd as minInt32,rd as minInt40,sd as minInt48,od as minInt56,id as minInt64,cd as minInt72,ud as minInt8,dd as minInt80,ld as minInt88,md as minInt96,Ys as multicall3Abi,Zs as namehash,Qs as nonceManager,Si as numberToBytes,R as numberToHex,gd as offchainLookup,bd as offchainLookupAbiItem,wd as offchainLookupSignature,Me as pad,Ai as padBytes,xt as padHex,Xs as parseAbi,to as parseAbiItem,jn as parseAbiParameter,eo as parseAbiParameters,yr as parseCompactSignature,Yn as parseErc6492Signature,Zn as parseErc8010Signature,ar as parseEther,Pi as parseEventLogs,nr as parseGwei,ao as parseSignature,_a as parseTransaction,Wt as parseUnits,no as prepareEncodeFunctionData,ro as presignMessagePrefix,so as publicActions,Q as recoverAddress,Sa as recoverMessageAddress,oo as recoverPublicKey,gr as recoverTransactionAddress,Aa as recoverTypedDataAddress,Kn as ripemd160,io as rpcSchema,_i as rpcTransactionType,co as serializeAccessList,br as serializeCompactSignature,uo as serializeErc6492Signature,Qn as serializeErc8010Signature,lo as serializeSignature,Le as serializeTransaction,ea as serializeTypedData,Ri as setErrorConfig,hr as setupKzg,fd as sha256,Fn as shouldThrow,mr as sidecarsToVersionedHashes,wr as signatureToCompactSignature,mo as signatureToHex,$e as size,De as slice,qi as sliceBytes,Lt as sliceHex,Fi as stringToBytes,Ke as stringToHex,Ui as stringify,hn as testActions,ge as toBlobSidecars,fo as toBlobs,B as toBytes,fr as toCoinType,ki as toEventHash,Bi as toEventSelector,Ni as toEventSignature,Li as toFunctionHash,Mi as toFunctionSelector,Di as toFunctionSignature,Nt as toHex,ho as toPrefixedMessage,ia as toRlp,zi as transactionType,We as trim,po as universalSignatureValidatorAbi,yo as universalSignatureValidatorByteCode,ta as validateTypedData,Xn as verifyHash,tr as verifyMessage,er as verifyTypedData,qn as walletActions,cr as webSocket,go as weiUnits,bo as withCache,wo as withRetry,Ze as withTimeout,xo as zeroAddress,Eo as zeroHash};
@@ -1,4 +1,4 @@
1
- import{r as O,e as ri,c as Hn,g as $t,j,f as mr,R as hr,h as ni,i as oi,k as lr}from"./react-yytiy0wi.js";import{bd as Ht,Q as He,N as Wt,O as dt,P as Ot,R as M,S as Ge,V as Rt,X as je,b5 as Be,be as tt,bf as ai,bg as Or,bh as Je,b3 as wt,bi as Fn,bj as ii,aR as Ft,bk as si,bl as li,U as ye,bm as ui,bn as ci,bo as va,bp as ur,bq as cr}from"./index-CYWpV70P.js";import{b as Pt,h as Ct,a as Ze,i as ma,j as ha,k as ga,l as fi,m as fr,e as pi,n as di,o as vi,p as mi,q as hi,d as Mr,s as ya,g as ba,c as xa,f as gi,t as yi,r as bi}from"./index-sFssfP96.js";import{p as Lr}from"./ethers-DArfy-QF.js";import{c as xi,_ as Si,T as Sa,B as wi,a as Ei,b as $i,d as Oi,u as Tn,e as An,f as Ri}from"./index-Df8J_8ta.js";import{E as Wc}from"./index-Df8J_8ta.js";import{c as Pi}from"./index-D8bR8hF2.js";import{n as nt}from"./emotion-styled.browser.esm-Bcg9MXM8.js";import{u as Ci}from"./useTheme-CBsdNYl2.js";import{g as Vn,u as ki}from"./getOverlayAlpha-CPeU_wtJ.js";import"./useTheme-DU7pyJai.js";import"./CircularProgress-CPG7ZOfs.js";function Ii(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Mi(e){return O.Children.toArray(e).filter(t=>O.isValidElement(t))}const Ti={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Ai={},Bi=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),Li=ri(Bi);var Dr,zn;function Tr(){if(zn)return Dr;zn=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,o=e&&Map.prototype.forEach,n=typeof Set=="function"&&Set.prototype,a=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,s=n&&a&&typeof a.get=="function"?a.get:null,i=n&&Set.prototype.forEach,l=typeof WeakMap=="function"&&WeakMap.prototype,u=l?WeakMap.prototype.has:null,c=typeof WeakSet=="function"&&WeakSet.prototype,p=c?WeakSet.prototype.has:null,h=typeof WeakRef=="function"&&WeakRef.prototype,m=h?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,y=Object.prototype.toString,v=Function.prototype.toString,w=String.prototype.match,$=String.prototype.slice,x=String.prototype.replace,S=String.prototype.toUpperCase,E=String.prototype.toLowerCase,T=RegExp.prototype.test,k=Array.prototype.concat,A=Array.prototype.join,C=Array.prototype.slice,B=Math.floor,W=typeof BigInt=="function"?BigInt.prototype.valueOf:null,U=Object.getOwnPropertySymbols,q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ie=typeof Symbol=="function"&&typeof Symbol.iterator=="object",L=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ie||!0)?Symbol.toStringTag:null,X=Object.prototype.propertyIsEnumerable,F=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(f){return f.__proto__}:null);function se(f,d){if(f===1/0||f===-1/0||f!==f||f&&f>-1e3&&f<1e3||T.call(/e/,d))return d;var Y=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof f=="number"){var ue=f<0?-B(-f):B(f);if(ue!==f){var ce=String(ue),G=$.call(d,ce.length+1);return x.call(ce,Y,"$&_")+"."+x.call(x.call(G,/([0-9]{3})/g,"$&_"),/_$/,"")}}return x.call(d,Y,"$&_")}var K=Li,me=K.custom,Ie=ne(me)?me:null,Ee={__proto__:null,double:'"',single:"'"},be={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Dr=function f(d,Y,ue,ce){var G=Y||{};if(de(G,"quoteStyle")&&!de(Ee,G.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(de(G,"maxStringLength")&&(typeof G.maxStringLength=="number"?G.maxStringLength<0&&G.maxStringLength!==1/0:G.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Te=de(G,"customInspect")?G.customInspect:!0;if(typeof Te!="boolean"&&Te!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(de(G,"indent")&&G.indent!==null&&G.indent!==" "&&!(parseInt(G.indent,10)===G.indent&&G.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(de(G,"numericSeparator")&&typeof G.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var _e=G.numericSeparator;if(typeof d>"u")return"undefined";if(d===null)return"null";if(typeof d=="boolean")return d?"true":"false";if(typeof d=="string")return Oe(d,G);if(typeof d=="number"){if(d===0)return 1/0/d>0?"0":"-0";var Se=String(d);return _e?se(d,Se):Se}if(typeof d=="bigint"){var Ae=String(d)+"n";return _e?se(d,Ae):Ae}var mt=typeof G.depth>"u"?5:G.depth;if(typeof ue>"u"&&(ue=0),ue>=mt&&mt>0&&typeof d=="object")return N(d)?"[Array]":"[Object]";var ze=Q(G,ue);if(typeof ce>"u")ce=[];else if(le(ce,d)>=0)return"[Circular]";function Ce(we,Bt,Br){if(Bt&&(ce=C.call(ce),ce.push(Bt)),Br){var vr={depth:G.depth};return de(G,"quoteStyle")&&(vr.quoteStyle=G.quoteStyle),f(we,vr,ue+1,ce)}return f(we,G,ue+1,ce)}if(typeof d=="function"&&!ae(d)){var ct=Fe(d),It=Pe(d,Ce);return"[Function"+(ct?": "+ct:" (anonymous)")+"]"+(It.length>0?" { "+A.call(It,", ")+" }":"")}if(ne(d)){var Mt=ie?x.call(String(d),/^(Symbol\(.*\))_[^)]*$/,"$1"):q.call(d);return typeof d=="object"&&!ie?I(Mt):Mt}if($e(d)){for(var ot="<"+E.call(String(d.nodeName)),ht=d.attributes||[],ft=0;ft<ht.length;ft++)ot+=" "+ht[ft].name+"="+b(P(ht[ft].value),"double",G);return ot+=">",d.childNodes&&d.childNodes.length&&(ot+="..."),ot+="</"+E.call(String(d.nodeName))+">",ot}if(N(d)){if(d.length===0)return"[]";var gt=Pe(d,Ce);return ze&&!oe(gt)?"["+Re(gt,ze)+"]":"[ "+A.call(gt,", ")+" ]"}if(re(d)){var at=Pe(d,Ce);return!("cause"in Error.prototype)&&"cause"in d&&!X.call(d,"cause")?"{ ["+String(d)+"] "+A.call(k.call("[cause]: "+Ce(d.cause),at),", ")+" }":at.length===0?"["+String(d)+"]":"{ ["+String(d)+"] "+A.call(at,", ")+" }"}if(typeof d=="object"&&Te){if(Ie&&typeof d[Ie]=="function"&&K)return K(d,{depth:mt-ue});if(Te!=="symbol"&&typeof d.inspect=="function")return d.inspect()}if(xe(d)){var Tt=[];return o&&o.call(d,function(we,Bt){Tt.push(Ce(Bt,d,!0)+" => "+Ce(we,d))}),te("Map",r.call(d),Tt,ze)}if(Me(d)){var pt=[];return i&&i.call(d,function(we){pt.push(Ce(we,d))}),te("Set",s.call(d),pt,ze)}if(qe(d))return D("WeakMap");if(Ve(d))return D("WeakSet");if(Ne(d))return D("WeakRef");if(V(d))return I(Ce(Number(d)));if(J(d))return I(Ce(W.call(d)));if(Z(d))return I(g.call(d));if(ee(d))return I(Ce(String(d)));if(typeof window<"u"&&d===window)return"{ [object Window] }";if(typeof globalThis<"u"&&d===globalThis||typeof Hn<"u"&&d===Hn)return"{ [object globalThis] }";if(!_(d)&&!ae(d)){var it=Pe(d,Ce),At=F?F(d)===Object.prototype:d instanceof Object||d.constructor===Object,ve=d instanceof Object?"":"null prototype",he=!At&&L&&Object(d)===d&&L in d?$.call(pe(d),8,-1):ve?"Object":"",yt=At||typeof d.constructor!="function"?"":d.constructor.name?d.constructor.name+" ":"",Qe=yt+(he||ve?"["+A.call(k.call([],he||[],ve||[]),": ")+"] ":"");return it.length===0?Qe+"{}":ze?Qe+"{"+Re(it,ze)+"}":Qe+"{ "+A.call(it,", ")+" }"}return String(d)};function b(f,d,Y){var ue=Y.quoteStyle||d,ce=Ee[ue];return ce+f+ce}function P(f){return x.call(String(f),/"/g,"&quot;")}function H(f){return!L||!(typeof f=="object"&&(L in f||typeof f[L]<"u"))}function N(f){return pe(f)==="[object Array]"&&H(f)}function _(f){return pe(f)==="[object Date]"&&H(f)}function ae(f){return pe(f)==="[object RegExp]"&&H(f)}function re(f){return pe(f)==="[object Error]"&&H(f)}function ee(f){return pe(f)==="[object String]"&&H(f)}function V(f){return pe(f)==="[object Number]"&&H(f)}function Z(f){return pe(f)==="[object Boolean]"&&H(f)}function ne(f){if(ie)return f&&typeof f=="object"&&f instanceof Symbol;if(typeof f=="symbol")return!0;if(!f||typeof f!="object"||!q)return!1;try{return q.call(f),!0}catch{}return!1}function J(f){if(!f||typeof f!="object"||!W)return!1;try{return W.call(f),!0}catch{}return!1}var ge=Object.prototype.hasOwnProperty||function(f){return f in this};function de(f,d){return ge.call(f,d)}function pe(f){return y.call(f)}function Fe(f){if(f.name)return f.name;var d=w.call(v.call(f),/^function\s*([\w$]+)/);return d?d[1]:null}function le(f,d){if(f.indexOf)return f.indexOf(d);for(var Y=0,ue=f.length;Y<ue;Y++)if(f[Y]===d)return Y;return-1}function xe(f){if(!r||!f||typeof f!="object")return!1;try{r.call(f);try{s.call(f)}catch{return!0}return f instanceof Map}catch{}return!1}function qe(f){if(!u||!f||typeof f!="object")return!1;try{u.call(f,u);try{p.call(f,p)}catch{return!0}return f instanceof WeakMap}catch{}return!1}function Ne(f){if(!m||!f||typeof f!="object")return!1;try{return m.call(f),!0}catch{}return!1}function Me(f){if(!s||!f||typeof f!="object")return!1;try{s.call(f);try{r.call(f)}catch{return!0}return f instanceof Set}catch{}return!1}function Ve(f){if(!p||!f||typeof f!="object")return!1;try{p.call(f,p);try{u.call(f,u)}catch{return!0}return f instanceof WeakSet}catch{}return!1}function $e(f){return!f||typeof f!="object"?!1:typeof HTMLElement<"u"&&f instanceof HTMLElement?!0:typeof f.nodeName=="string"&&typeof f.getAttribute=="function"}function Oe(f,d){if(f.length>d.maxStringLength){var Y=f.length-d.maxStringLength,ue="... "+Y+" more character"+(Y>1?"s":"");return Oe($.call(f,0,d.maxStringLength),d)+ue}var ce=be[d.quoteStyle||"single"];ce.lastIndex=0;var G=x.call(x.call(f,ce,"\\$1"),/[\x00-\x1f]/g,R);return b(G,"single",d)}function R(f){var d=f.charCodeAt(0),Y={8:"b",9:"t",10:"n",12:"f",13:"r"}[d];return Y?"\\"+Y:"\\x"+(d<16?"0":"")+S.call(d.toString(16))}function I(f){return"Object("+f+")"}function D(f){return f+" { ? }"}function te(f,d,Y,ue){var ce=ue?Re(Y,ue):A.call(Y,", ");return f+" ("+d+") {"+ce+"}"}function oe(f){for(var d=0;d<f.length;d++)if(le(f[d],`
1
+ import{r as O,e as ri,c as Hn,g as $t,j,f as mr,R as hr,h as ni,i as oi,k as lr}from"./react-yytiy0wi.js";import{bd as Ht,R as He,O as Wt,P as dt,Q as Ot,S as M,U as Ge,X as Rt,Y as je,b5 as Be,be as tt,bf as ai,bg as Or,bh as Je,b3 as wt,bi as Fn,bj as ii,aR as Ft,bk as si,bl as li,V as ye,bm as ui,bn as ci,bo as va,bp as ur,bq as cr}from"./index-r45SswES.js";import{b as Pt,h as Ct,a as Ze,i as ma,j as ha,k as ga,l as fi,m as fr,e as pi,n as di,o as vi,p as mi,q as hi,d as Mr,s as ya,g as ba,c as xa,f as gi,t as yi,r as bi}from"./index-sFssfP96.js";import{p as Lr}from"./ethers-DArfy-QF.js";import{c as xi,_ as Si,T as Sa,B as wi,a as Ei,b as $i,d as Oi,u as Tn,e as An,f as Ri}from"./index-CAIuPn4q.js";import{E as Wc}from"./index-CAIuPn4q.js";import{c as Pi}from"./index-B8XnKIzQ.js";import{n as nt}from"./emotion-styled.browser.esm-B4ZybID-.js";import{u as Ci}from"./useTheme-BMWEIcbK.js";import{g as Vn,u as ki}from"./getOverlayAlpha-nRpMWuqq.js";import"./useTheme-B1I-qqVe.js";import"./CircularProgress-dArtpO16.js";function Ii(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Mi(e){return O.Children.toArray(e).filter(t=>O.isValidElement(t))}const Ti={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Ai={},Bi=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),Li=ri(Bi);var Dr,zn;function Tr(){if(zn)return Dr;zn=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,o=e&&Map.prototype.forEach,n=typeof Set=="function"&&Set.prototype,a=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,s=n&&a&&typeof a.get=="function"?a.get:null,i=n&&Set.prototype.forEach,l=typeof WeakMap=="function"&&WeakMap.prototype,u=l?WeakMap.prototype.has:null,c=typeof WeakSet=="function"&&WeakSet.prototype,p=c?WeakSet.prototype.has:null,h=typeof WeakRef=="function"&&WeakRef.prototype,m=h?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,y=Object.prototype.toString,v=Function.prototype.toString,w=String.prototype.match,$=String.prototype.slice,x=String.prototype.replace,S=String.prototype.toUpperCase,E=String.prototype.toLowerCase,T=RegExp.prototype.test,k=Array.prototype.concat,A=Array.prototype.join,C=Array.prototype.slice,B=Math.floor,W=typeof BigInt=="function"?BigInt.prototype.valueOf:null,U=Object.getOwnPropertySymbols,q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ie=typeof Symbol=="function"&&typeof Symbol.iterator=="object",L=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ie||!0)?Symbol.toStringTag:null,X=Object.prototype.propertyIsEnumerable,F=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(f){return f.__proto__}:null);function se(f,d){if(f===1/0||f===-1/0||f!==f||f&&f>-1e3&&f<1e3||T.call(/e/,d))return d;var Y=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof f=="number"){var ue=f<0?-B(-f):B(f);if(ue!==f){var ce=String(ue),G=$.call(d,ce.length+1);return x.call(ce,Y,"$&_")+"."+x.call(x.call(G,/([0-9]{3})/g,"$&_"),/_$/,"")}}return x.call(d,Y,"$&_")}var K=Li,me=K.custom,Ie=ne(me)?me:null,Ee={__proto__:null,double:'"',single:"'"},be={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Dr=function f(d,Y,ue,ce){var G=Y||{};if(de(G,"quoteStyle")&&!de(Ee,G.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(de(G,"maxStringLength")&&(typeof G.maxStringLength=="number"?G.maxStringLength<0&&G.maxStringLength!==1/0:G.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Te=de(G,"customInspect")?G.customInspect:!0;if(typeof Te!="boolean"&&Te!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(de(G,"indent")&&G.indent!==null&&G.indent!==" "&&!(parseInt(G.indent,10)===G.indent&&G.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(de(G,"numericSeparator")&&typeof G.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var _e=G.numericSeparator;if(typeof d>"u")return"undefined";if(d===null)return"null";if(typeof d=="boolean")return d?"true":"false";if(typeof d=="string")return Oe(d,G);if(typeof d=="number"){if(d===0)return 1/0/d>0?"0":"-0";var Se=String(d);return _e?se(d,Se):Se}if(typeof d=="bigint"){var Ae=String(d)+"n";return _e?se(d,Ae):Ae}var mt=typeof G.depth>"u"?5:G.depth;if(typeof ue>"u"&&(ue=0),ue>=mt&&mt>0&&typeof d=="object")return N(d)?"[Array]":"[Object]";var ze=Q(G,ue);if(typeof ce>"u")ce=[];else if(le(ce,d)>=0)return"[Circular]";function Ce(we,Bt,Br){if(Bt&&(ce=C.call(ce),ce.push(Bt)),Br){var vr={depth:G.depth};return de(G,"quoteStyle")&&(vr.quoteStyle=G.quoteStyle),f(we,vr,ue+1,ce)}return f(we,G,ue+1,ce)}if(typeof d=="function"&&!ae(d)){var ct=Fe(d),It=Pe(d,Ce);return"[Function"+(ct?": "+ct:" (anonymous)")+"]"+(It.length>0?" { "+A.call(It,", ")+" }":"")}if(ne(d)){var Mt=ie?x.call(String(d),/^(Symbol\(.*\))_[^)]*$/,"$1"):q.call(d);return typeof d=="object"&&!ie?I(Mt):Mt}if($e(d)){for(var ot="<"+E.call(String(d.nodeName)),ht=d.attributes||[],ft=0;ft<ht.length;ft++)ot+=" "+ht[ft].name+"="+b(P(ht[ft].value),"double",G);return ot+=">",d.childNodes&&d.childNodes.length&&(ot+="..."),ot+="</"+E.call(String(d.nodeName))+">",ot}if(N(d)){if(d.length===0)return"[]";var gt=Pe(d,Ce);return ze&&!oe(gt)?"["+Re(gt,ze)+"]":"[ "+A.call(gt,", ")+" ]"}if(re(d)){var at=Pe(d,Ce);return!("cause"in Error.prototype)&&"cause"in d&&!X.call(d,"cause")?"{ ["+String(d)+"] "+A.call(k.call("[cause]: "+Ce(d.cause),at),", ")+" }":at.length===0?"["+String(d)+"]":"{ ["+String(d)+"] "+A.call(at,", ")+" }"}if(typeof d=="object"&&Te){if(Ie&&typeof d[Ie]=="function"&&K)return K(d,{depth:mt-ue});if(Te!=="symbol"&&typeof d.inspect=="function")return d.inspect()}if(xe(d)){var Tt=[];return o&&o.call(d,function(we,Bt){Tt.push(Ce(Bt,d,!0)+" => "+Ce(we,d))}),te("Map",r.call(d),Tt,ze)}if(Me(d)){var pt=[];return i&&i.call(d,function(we){pt.push(Ce(we,d))}),te("Set",s.call(d),pt,ze)}if(qe(d))return D("WeakMap");if(Ve(d))return D("WeakSet");if(Ne(d))return D("WeakRef");if(V(d))return I(Ce(Number(d)));if(J(d))return I(Ce(W.call(d)));if(Z(d))return I(g.call(d));if(ee(d))return I(Ce(String(d)));if(typeof window<"u"&&d===window)return"{ [object Window] }";if(typeof globalThis<"u"&&d===globalThis||typeof Hn<"u"&&d===Hn)return"{ [object globalThis] }";if(!_(d)&&!ae(d)){var it=Pe(d,Ce),At=F?F(d)===Object.prototype:d instanceof Object||d.constructor===Object,ve=d instanceof Object?"":"null prototype",he=!At&&L&&Object(d)===d&&L in d?$.call(pe(d),8,-1):ve?"Object":"",yt=At||typeof d.constructor!="function"?"":d.constructor.name?d.constructor.name+" ":"",Qe=yt+(he||ve?"["+A.call(k.call([],he||[],ve||[]),": ")+"] ":"");return it.length===0?Qe+"{}":ze?Qe+"{"+Re(it,ze)+"}":Qe+"{ "+A.call(it,", ")+" }"}return String(d)};function b(f,d,Y){var ue=Y.quoteStyle||d,ce=Ee[ue];return ce+f+ce}function P(f){return x.call(String(f),/"/g,"&quot;")}function H(f){return!L||!(typeof f=="object"&&(L in f||typeof f[L]<"u"))}function N(f){return pe(f)==="[object Array]"&&H(f)}function _(f){return pe(f)==="[object Date]"&&H(f)}function ae(f){return pe(f)==="[object RegExp]"&&H(f)}function re(f){return pe(f)==="[object Error]"&&H(f)}function ee(f){return pe(f)==="[object String]"&&H(f)}function V(f){return pe(f)==="[object Number]"&&H(f)}function Z(f){return pe(f)==="[object Boolean]"&&H(f)}function ne(f){if(ie)return f&&typeof f=="object"&&f instanceof Symbol;if(typeof f=="symbol")return!0;if(!f||typeof f!="object"||!q)return!1;try{return q.call(f),!0}catch{}return!1}function J(f){if(!f||typeof f!="object"||!W)return!1;try{return W.call(f),!0}catch{}return!1}var ge=Object.prototype.hasOwnProperty||function(f){return f in this};function de(f,d){return ge.call(f,d)}function pe(f){return y.call(f)}function Fe(f){if(f.name)return f.name;var d=w.call(v.call(f),/^function\s*([\w$]+)/);return d?d[1]:null}function le(f,d){if(f.indexOf)return f.indexOf(d);for(var Y=0,ue=f.length;Y<ue;Y++)if(f[Y]===d)return Y;return-1}function xe(f){if(!r||!f||typeof f!="object")return!1;try{r.call(f);try{s.call(f)}catch{return!0}return f instanceof Map}catch{}return!1}function qe(f){if(!u||!f||typeof f!="object")return!1;try{u.call(f,u);try{p.call(f,p)}catch{return!0}return f instanceof WeakMap}catch{}return!1}function Ne(f){if(!m||!f||typeof f!="object")return!1;try{return m.call(f),!0}catch{}return!1}function Me(f){if(!s||!f||typeof f!="object")return!1;try{s.call(f);try{r.call(f)}catch{return!0}return f instanceof Set}catch{}return!1}function Ve(f){if(!p||!f||typeof f!="object")return!1;try{p.call(f,p);try{u.call(f,u)}catch{return!0}return f instanceof WeakSet}catch{}return!1}function $e(f){return!f||typeof f!="object"?!1:typeof HTMLElement<"u"&&f instanceof HTMLElement?!0:typeof f.nodeName=="string"&&typeof f.getAttribute=="function"}function Oe(f,d){if(f.length>d.maxStringLength){var Y=f.length-d.maxStringLength,ue="... "+Y+" more character"+(Y>1?"s":"");return Oe($.call(f,0,d.maxStringLength),d)+ue}var ce=be[d.quoteStyle||"single"];ce.lastIndex=0;var G=x.call(x.call(f,ce,"\\$1"),/[\x00-\x1f]/g,R);return b(G,"single",d)}function R(f){var d=f.charCodeAt(0),Y={8:"b",9:"t",10:"n",12:"f",13:"r"}[d];return Y?"\\"+Y:"\\x"+(d<16?"0":"")+S.call(d.toString(16))}function I(f){return"Object("+f+")"}function D(f){return f+" { ? }"}function te(f,d,Y,ue){var ce=ue?Re(Y,ue):A.call(Y,", ");return f+" ("+d+") {"+ce+"}"}function oe(f){for(var d=0;d<f.length;d++)if(le(f[d],`
2
2
  `)>=0)return!1;return!0}function Q(f,d){var Y;if(f.indent===" ")Y=" ";else if(typeof f.indent=="number"&&f.indent>0)Y=A.call(Array(f.indent+1)," ");else return null;return{base:Y,prev:A.call(Array(d+1),Y)}}function Re(f,d){if(f.length===0)return"";var Y=`
3
3
  `+d.prev+d.base;return Y+A.call(f,","+Y)+`
4
4
  `+d.prev}function Pe(f,d){var Y=N(f),ue=[];if(Y){ue.length=f.length;for(var ce=0;ce<f.length;ce++)ue[ce]=de(f,ce)?d(f[ce],f):""}var G=typeof U=="function"?U(f):[],Te;if(ie){Te={};for(var _e=0;_e<G.length;_e++)Te["$"+G[_e]]=G[_e]}for(var Se in f)de(f,Se)&&(Y&&String(Number(Se))===Se&&Se<f.length||ie&&Te["$"+Se]instanceof Symbol||(T.call(/[^\w$]/,Se)?ue.push(d(Se,f)+": "+d(f[Se],f)):ue.push(Se+": "+d(f[Se],f))));if(typeof U=="function")for(var Ae=0;Ae<G.length;Ae++)X.call(f,G[Ae])&&ue.push("["+d(G[Ae])+"]: "+d(f[G[Ae]],f));return ue}return Dr}var jr,Un;function Di(){if(Un)return jr;Un=1;var e=Tr(),t=Pt(),r=function(i,l,u){for(var c=i,p;(p=c.next)!=null;c=p)if(p.key===l)return c.next=p.next,u||(p.next=i.next,i.next=p),p},o=function(i,l){if(i){var u=r(i,l);return u&&u.value}},n=function(i,l,u){var c=r(i,l);c?c.value=u:i.next={key:l,next:i.next,value:u}},a=function(i,l){return i?!!r(i,l):!1},s=function(i,l){if(i)return r(i,l,!0)};return jr=function(){var l,u={assert:function(c){if(!u.has(c))throw new t("Side channel does not contain "+e(c))},delete:function(c){var p=s(l,c);return p&&l&&!l.next&&(l=void 0),!!p},get:function(c){return o(l,c)},has:function(c){return a(l,c)},set:function(c,p){l||(l={next:void 0}),n(l,c,p)}};return u},jr}var qr,Gn;function wa(){if(Gn)return qr;Gn=1;var e=Ct(),t=Ze(),r=Tr(),o=Pt(),n=e("%Map%",!0),a=t("Map.prototype.get",!0),s=t("Map.prototype.set",!0),i=t("Map.prototype.has",!0),l=t("Map.prototype.delete",!0),u=t("Map.prototype.size",!0);return qr=!!n&&function(){var p,h={assert:function(m){if(!h.has(m))throw new o("Side channel does not contain "+r(m))},delete:function(m){if(p){var g=l(p,m);return u(p)===0&&(p=void 0),g}return!1},get:function(m){if(p)return a(p,m)},has:function(m){return p?i(p,m):!1},set:function(m,g){p||(p=new n),s(p,m,g)}};return h},qr}var Nr,Xn;function ji(){if(Xn)return Nr;Xn=1;var e=Ct(),t=Ze(),r=Tr(),o=wa(),n=Pt(),a=e("%WeakMap%",!0),s=t("WeakMap.prototype.get",!0),i=t("WeakMap.prototype.set",!0),l=t("WeakMap.prototype.has",!0),u=t("WeakMap.prototype.delete",!0);return Nr=a?function(){var p,h,m={assert:function(g){if(!m.has(g))throw new n("Side channel does not contain "+r(g))},delete:function(g){if(a&&g&&(typeof g=="object"||typeof g=="function")){if(p)return u(p,g)}else if(o&&h)return h.delete(g);return!1},get:function(g){return a&&g&&(typeof g=="object"||typeof g=="function")&&p?s(p,g):h&&h.get(g)},has:function(g){return a&&g&&(typeof g=="object"||typeof g=="function")&&p?l(p,g):!!h&&h.has(g)},set:function(g,y){a&&g&&(typeof g=="object"||typeof g=="function")?(p||(p=new a),i(p,g,y)):o&&(h||(h=o()),h.set(g,y))}};return m}:o,Nr}var _r,Yn;function Ea(){if(Yn)return _r;Yn=1;var e=Pt(),t=Tr(),r=Di(),o=wa(),n=ji(),a=n||o||r;return _r=function(){var i,l={assert:function(u){if(!l.has(u)){var c=u&&Object(u)===u?"the given object key":t(u);throw new e("Side channel does not contain "+c)}},delete:function(u){return!!i&&i.delete(u)},get:function(u){return i&&i.get(u)},has:function(u){return!!i&&i.has(u)},set:function(u,c){i||(i=a()),i.set(u,c)}};return l},_r}var Wr,Kn;function $a(){if(Kn)return Wr;Kn=1;var e=Object.prototype.toString;return Wr=function(r){var o=e.call(r),n=o==="[object Arguments]";return n||(n=o!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&e.call(r.callee)==="[object Function]"),n},Wr}var Hr,Zn;function qi(){if(Zn)return Hr;Zn=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=$a(),n=Object.prototype.propertyIsEnumerable,a=!n.call({toString:null},"toString"),s=n.call(function(){},"prototype"),i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(h){var m=h.constructor;return m&&m.prototype===h},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=(function(){if(typeof window>"u")return!1;for(var h in window)try{if(!u["$"+h]&&t.call(window,h)&&window[h]!==null&&typeof window[h]=="object")try{l(window[h])}catch{return!0}}catch{return!0}return!1})(),p=function(h){if(typeof window>"u"||!c)return l(h);try{return l(h)}catch{return!1}};e=function(m){var g=m!==null&&typeof m=="object",y=r.call(m)==="[object Function]",v=o(m),w=g&&r.call(m)==="[object String]",$=[];if(!g&&!y&&!v)throw new TypeError("Object.keys called on a non-object");var x=s&&y;if(w&&m.length>0&&!t.call(m,0))for(var S=0;S<m.length;++S)$.push(String(S));if(v&&m.length>0)for(var E=0;E<m.length;++E)$.push(String(E));else for(var T in m)!(x&&T==="prototype")&&t.call(m,T)&&$.push(String(T));if(a)for(var k=p(m),A=0;A<i.length;++A)!(k&&i[A]==="constructor")&&t.call(m,i[A])&&$.push(i[A]);return $}}return Hr=e,Hr}var Fr,Jn;function Bn(){if(Jn)return Fr;Jn=1;var e=Array.prototype.slice,t=$a(),r=Object.keys,o=r?function(s){return r(s)}:qi(),n=Object.keys;return o.shim=function(){if(Object.keys){var s=(function(){var i=Object.keys(arguments);return i&&i.length===arguments.length})(1,2);s||(Object.keys=function(l){return t(l)?n(e.call(l)):n(l)})}else Object.keys=o;return Object.keys||o},Fr=o,Fr}var Vr,Qn;function kt(){if(Qn)return Vr;Qn=1;var e=Bn(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r=Object.prototype.toString,o=Array.prototype.concat,n=ha(),a=function(u){return typeof u=="function"&&r.call(u)==="[object Function]"},s=ma()(),i=function(u,c,p,h){if(c in u){if(h===!0){if(u[c]===p)return}else if(!a(h)||!h())return}s?n(u,c,p,!0):n(u,c,p)},l=function(u,c){var p=arguments.length>2?arguments[2]:{},h=e(c);t&&(h=o.call(h,Object.getOwnPropertySymbols(c)));for(var m=0;m<h.length;m+=1)i(u,h[m],c[h[m]],p[h[m]])};return l.supportsDescriptors=!!s,Vr=l,Vr}var zr,eo;function Oa(){if(eo)return zr;eo=1;var e=Bn(),t=ga()(),r=Ze(),o=fi(),n=r("Array.prototype.push"),a=r("Object.prototype.propertyIsEnumerable"),s=t?o.getOwnPropertySymbols:null;return zr=function(l,u){if(l==null)throw new TypeError("target must be an object");var c=o(l);if(arguments.length===1)return c;for(var p=1;p<arguments.length;++p){var h=o(arguments[p]),m=e(h),g=t&&(o.getOwnPropertySymbols||s);if(g)for(var y=g(h),v=0;v<y.length;++v){var w=y[v];a(h,w)&&n(m,w)}for(var $=0;$<m.length;++$){var x=m[$];if(a(h,x)){var S=h[x];c[x]=S}}}return c},zr}var Ur,to;function Ra(){if(to)return Ur;to=1;var e=Oa(),t=function(){if(!Object.assign)return!1;for(var o="abcdefghijklmnopqrst",n=o.split(""),a={},s=0;s<n.length;++s)a[n[s]]=n[s];var i=Object.assign({},a),l="";for(var u in i)l+=u;return o!==l},r=function(){if(!Object.assign||!Object.preventExtensions)return!1;var o=Object.preventExtensions({1:2});try{Object.assign(o,"xy")}catch{return o[1]==="y"}return!1};return Ur=function(){return!Object.assign||t()||r()?e:Object.assign},Ur}var Gr,ro;function Ni(){if(ro)return Gr;ro=1;var e=kt(),t=Ra();return Gr=function(){var o=t();return e(Object,{assign:o},{assign:function(){return Object.assign!==o}}),o},Gr}var Xr,no;function _i(){if(no)return Xr;no=1;var e=kt(),t=fr(),r=Oa(),o=Ra(),n=Ni(),a=t.apply(o()),s=function(l,u){return a(Object,arguments)};return e(s,{getPolyfill:o,implementation:r,shim:n}),Xr=s,Xr}var Yr,oo;function Pa(){if(oo)return Yr;oo=1;var e=Ct(),t=fr(),r=t(e("String.prototype.indexOf"));return Yr=function(n,a){var s=e(n,!!a);return typeof s=="function"&&r(n,".prototype.")>-1?t(s):s},Yr}var Kr,ao;function Wi(){if(ao)return Kr;ao=1;var e=function(){return typeof(function(){}).name=="string"},t=Object.getOwnPropertyDescriptor;if(t)try{t([],"length")}catch{t=null}e.functionsHaveConfigurableNames=function(){if(!e()||!t)return!1;var n=t(function(){},"name");return!!n&&!!n.configurable};var r=Function.prototype.bind;return e.boundFunctionsHaveNames=function(){return e()&&typeof r=="function"&&(function(){}).bind().name!==""},Kr=e,Kr}var Zr,io;function Hi(){if(io)return Zr;io=1;var e=ha(),t=ma()(),r=Wi().functionsHaveConfigurableNames(),o=Pt();return Zr=function(a,s){if(typeof a!="function")throw new o("`fn` is not a function");var i=arguments.length>2&&!!arguments[2];return(!i||r)&&(t?e(a,"name",s,!0,!0):e(a,"name",s)),a},Zr}var Jr,so;function Ca(){if(so)return Jr;so=1;var e=Hi(),t=Pt(),r=Object;return Jr=e(function(){if(this==null||this!==r(this))throw new t("RegExp.prototype.flags getter called on non-object");var n="";return this.hasIndices&&(n+="d"),this.global&&(n+="g"),this.ignoreCase&&(n+="i"),this.multiline&&(n+="m"),this.dotAll&&(n+="s"),this.unicode&&(n+="u"),this.unicodeSets&&(n+="v"),this.sticky&&(n+="y"),n},"get flags",!0),Jr}var Qr,lo;function ka(){if(lo)return Qr;lo=1;var e=Ca(),t=kt().supportsDescriptors,r=Object.getOwnPropertyDescriptor;return Qr=function(){if(t&&/a/mig.flags==="gim"){var n=r(RegExp.prototype,"flags");if(n&&typeof n.get=="function"&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var a="",s={};if(Object.defineProperty(s,"hasIndices",{get:function(){a+="d"}}),Object.defineProperty(s,"sticky",{get:function(){a+="y"}}),n.get.call(s),a==="dy")return n.get}}return e},Qr}var en,uo;function Fi(){if(uo)return en;uo=1;var e=kt().supportsDescriptors,t=ka(),r=vi(),o=Object.defineProperty,n=di(),a=pi(),s=/a/;return en=function(){if(!e||!a)throw new n("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var l=t(),u=a(s),c=r(u,"flags");return(!c||c.get!==l)&&o(u,"flags",{configurable:!0,enumerable:!1,get:l}),l},en}var tn,co;function Vi(){if(co)return tn;co=1;var e=kt(),t=fr(),r=Ca(),o=ka(),n=Fi(),a=t(o());return e(a,{getPolyfill:o,implementation:r,shim:n}),tn=a,tn}var Vt={exports:{}},rn,fo;function zi(){if(fo)return rn;fo=1;var e=mi(),t=Ea()(),r=Pt(),o={assert:function(n,a){if(!n||typeof n!="object"&&typeof n!="function")throw new r("`O` is not an object");if(typeof a!="string")throw new r("`slot` must be a string");if(t.assert(n),!o.has(n,a))throw new r("`"+a+"` is not present on `O`")},get:function(n,a){if(!n||typeof n!="object"&&typeof n!="function")throw new r("`O` is not an object");if(typeof a!="string")throw new r("`slot` must be a string");var s=t.get(n);return s&&s["$"+a]},has:function(n,a){if(!n||typeof n!="object"&&typeof n!="function")throw new r("`O` is not an object");if(typeof a!="string")throw new r("`slot` must be a string");var s=t.get(n);return!!s&&e(s,"$"+a)},set:function(n,a,s){if(!n||typeof n!="object"&&typeof n!="function")throw new r("`O` is not an object");if(typeof a!="string")throw new r("`slot` must be a string");var i=t.get(n);i||(i={},t.set(n,i)),i["$"+a]=s}};return Object.freeze&&Object.freeze(o),rn=o,rn}var nn,po;function Ui(){if(po)return nn;po=1;var e=zi(),t=hi(),r=typeof StopIteration=="object"?StopIteration:null;return nn=function(n){if(!r)throw new t("this environment lacks StopIteration");e.set(n,"[[Done]]",!1);var a={next:function(){var i=e.get(this,"[[Iterator]]"),l=!!e.get(i,"[[Done]]");try{return{done:l,value:l?void 0:i.next()}}catch(u){if(e.set(i,"[[Done]]",!0),u!==r)throw u;return{done:!0,value:void 0}}}};return e.set(a,"[[Iterator]]",n),a},nn}var on,vo;function Ia(){if(vo)return on;vo=1;var e=Ze(),t=e("String.prototype.valueOf"),r=function(i){try{return t(i),!0}catch{return!1}},o=e("Object.prototype.toString"),n="[object String]",a=Mr()();return on=function(i){return typeof i=="string"?!0:!i||typeof i!="object"?!1:a?r(i):o(i)===n},on}var an,mo;function Ma(){if(mo)return an;mo=1;var e=typeof Map=="function"&&Map.prototype?Map:null,t=typeof Set=="function"&&Set.prototype?Set:null,r;e||(r=function(s){return!1});var o=e?Map.prototype.has:null,n=t?Set.prototype.has:null;return!r&&!o&&(r=function(s){return!1}),an=r||function(s){if(!s||typeof s!="object")return!1;try{if(o.call(s),n)try{n.call(s)}catch{return!0}return s instanceof e}catch{}return!1},an}var sn,ho;function Ta(){if(ho)return sn;ho=1;var e=typeof Map=="function"&&Map.prototype?Map:null,t=typeof Set=="function"&&Set.prototype?Set:null,r;t||(r=function(s){return!1});var o=e?Map.prototype.has:null,n=t?Set.prototype.has:null;return!r&&!n&&(r=function(s){return!1}),sn=r||function(s){if(!s||typeof s!="object")return!1;try{if(n.call(s),o)try{o.call(s)}catch{return!0}return s instanceof t}catch{}return!1},sn}var go;function Gi(){if(go)return Vt.exports;go=1;var e=ba(),t=Ui();if(ya()()||ga()()){var r=Symbol.iterator;Vt.exports=function(C){if(C!=null&&typeof C[r]<"u")return C[r]();if(e(C))return Array.prototype[r].call(C)}}else{var o=xa(),n=Ia(),a=Ct(),s=a("%Map%",!0),i=a("%Set%",!0),l=Pa(),u=l("Array.prototype.push"),c=l("String.prototype.charCodeAt"),p=l("String.prototype.slice"),h=function(C,B){var W=C.length;if(B+1>=W)return B+1;var U=c(C,B);if(U<55296||U>56319)return B+1;var q=c(C,B+1);return q<56320||q>57343?B+1:B+2},m=function(C){var B=0;return{next:function(){var U=B>=C.length,q;return U||(q=C[B],B+=1),{done:U,value:q}}}},g=function(C,B){if(o(C)||e(C))return m(C);if(n(C)){var W=0;return{next:function(){var q=h(C,W),ie=p(C,W,q);return W=q,{done:q>C.length,value:ie}}}}if(B&&typeof C["_es6-shim iterator_"]<"u")return C["_es6-shim iterator_"]()};if(!s&&!i)Vt.exports=function(C){if(C!=null)return g(C,!0)};else{var y=Ma(),v=Ta(),w=l("Map.prototype.forEach",!0),$=l("Set.prototype.forEach",!0);if(typeof Lr>"u"||!Lr.versions||!Lr.versions.node)var x=l("Map.prototype.iterator",!0),S=l("Set.prototype.iterator",!0);var E=l("Map.prototype.@@iterator",!0)||l("Map.prototype._es6-shim iterator_",!0),T=l("Set.prototype.@@iterator",!0)||l("Set.prototype._es6-shim iterator_",!0),k=function(C){if(y(C)){if(x)return t(x(C));if(E)return E(C);if(w){var B=[];return w(C,function(U,q){u(B,[q,U])}),m(B)}}if(v(C)){if(S)return t(S(C));if(T)return T(C);if($){var W=[];return $(C,function(U){u(W,U)}),m(W)}}};Vt.exports=function(C){return k(C)||g(C)}}}return Vt.exports}var ln,yo;function Aa(){if(yo)return ln;yo=1;var e=function(t){return t!==t};return ln=function(r,o){return r===0&&o===0?1/r===1/o:!!(r===o||e(r)&&e(o))},ln}var un,bo;function Ba(){if(bo)return un;bo=1;var e=Aa();return un=function(){return typeof Object.is=="function"?Object.is:e},un}var cn,xo;function Xi(){if(xo)return cn;xo=1;var e=Ba(),t=kt();return cn=function(){var o=e();return t(Object,{is:o},{is:function(){return Object.is!==o}}),o},cn}var fn,So;function Yi(){if(So)return fn;So=1;var e=kt(),t=fr(),r=Aa(),o=Ba(),n=Xi(),a=t(o(),Object);return e(a,{getPolyfill:o,implementation:r,shim:n}),fn=a,fn}var pn,wo;function La(){if(wo)return pn;wo=1;var e=fr(),t=Ze(),r=Ct(),o=r("%ArrayBuffer%",!0),n=t("ArrayBuffer.prototype.byteLength",!0),a=t("Object.prototype.toString"),s=!!o&&!n&&new o(0).slice,i=!!s&&e(s);return pn=n||i?function(u){if(!u||typeof u!="object")return!1;try{return n?n(u):i(u,0),!0}catch{return!1}}:o?function(u){return a(u)==="[object ArrayBuffer]"}:function(u){return!1},pn}var dn,Eo;function Ki(){if(Eo)return dn;Eo=1;var e=Ze(),t=e("Date.prototype.getDay"),r=function(i){try{return t(i),!0}catch{return!1}},o=e("Object.prototype.toString"),n="[object Date]",a=Mr()();return dn=function(i){return typeof i!="object"||i===null?!1:a?r(i):o(i)===n},dn}var vn,$o;function Zi(){if($o)return vn;$o=1;var e=Ze(),t=e("SharedArrayBuffer.prototype.byteLength",!0);return vn=t?function(o){if(!o||typeof o!="object")return!1;try{return t(o),!0}catch{return!1}}:function(o){return!1},vn}var mn,Oo;function Ji(){if(Oo)return mn;Oo=1;var e=Ze(),t=e("Number.prototype.toString"),r=function(i){try{return t(i),!0}catch{return!1}},o=e("Object.prototype.toString"),n="[object Number]",a=Mr()();return mn=function(i){return typeof i=="number"?!0:!i||typeof i!="object"?!1:a?r(i):o(i)===n},mn}var hn,Ro;function Qi(){if(Ro)return hn;Ro=1;var e=Ze(),t=e("Boolean.prototype.toString"),r=e("Object.prototype.toString"),o=function(i){try{return t(i),!0}catch{return!1}},n="[object Boolean]",a=Mr()();return hn=function(i){return typeof i=="boolean"?!0:i===null||typeof i!="object"?!1:a?o(i):r(i)===n},hn}var gr={exports:{}},Po;function es(){if(Po)return gr.exports;Po=1;var e=Ze(),t=e("Object.prototype.toString"),r=ya()(),o=gi();if(r){var n=e("Symbol.prototype.toString"),a=o(/^Symbol\(.*\)$/),s=function(l){return typeof l.valueOf()!="symbol"?!1:a(n(l))};gr.exports=function(l){if(typeof l=="symbol")return!0;if(!l||typeof l!="object"||t(l)!=="[object Symbol]")return!1;try{return s(l)}catch{return!1}}}else gr.exports=function(l){return!1};return gr.exports}var yr={exports:{}},gn,Co;function ts(){if(Co)return gn;Co=1;var e=typeof BigInt<"u"&&BigInt;return gn=function(){return typeof e=="function"&&typeof BigInt=="function"&&typeof e(42)=="bigint"&&typeof BigInt(42)=="bigint"},gn}var ko;function rs(){if(ko)return yr.exports;ko=1;var e=ts()();if(e){var t=BigInt.prototype.valueOf,r=function(n){try{return t.call(n),!0}catch{}return!1};yr.exports=function(n){return n===null||typeof n>"u"||typeof n=="boolean"||typeof n=="string"||typeof n=="number"||typeof n=="symbol"||typeof n=="function"?!1:typeof n=="bigint"?!0:r(n)}}else yr.exports=function(n){return!1};return yr.exports}var yn,Io;function ns(){if(Io)return yn;Io=1;var e=Ia(),t=Ji(),r=Qi(),o=es(),n=rs();return yn=function(s){if(s==null||typeof s!="object"&&typeof s!="function")return null;if(e(s))return"String";if(t(s))return"Number";if(r(s))return"Boolean";if(o(s))return"Symbol";if(n(s))return"BigInt"},yn}var bn,Mo;function os(){if(Mo)return bn;Mo=1;var e=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,t=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,r;e||(r=function(s){return!1});var o=e?e.prototype.has:null,n=t?t.prototype.has:null;return!r&&!o&&(r=function(s){return!1}),bn=r||function(s){if(!s||typeof s!="object")return!1;try{if(o.call(s,o),n)try{n.call(s,n)}catch{return!0}return s instanceof e}catch{}return!1},bn}var br={exports:{}},To;function as(){if(To)return br.exports;To=1;var e=Ct(),t=Ze(),r=e("%WeakSet%",!0),o=t("WeakSet.prototype.has",!0);if(o){var n=t("WeakMap.prototype.has",!0);br.exports=function(s){if(!s||typeof s!="object")return!1;try{if(o(s,o),n)try{n(s,n)}catch{return!0}return s instanceof r}catch{}return!1}}else br.exports=function(s){return!1};return br.exports}var xn,Ao;function is(){if(Ao)return xn;Ao=1;var e=Ma(),t=Ta(),r=os(),o=as();return xn=function(a){if(a&&typeof a=="object"){if(e(a))return"Map";if(t(a))return"Set";if(r(a))return"WeakMap";if(o(a))return"WeakSet"}return!1},xn}var Sn,Bo;function ss(){if(Bo)return Sn;Bo=1;var e=Ze(),t=e("ArrayBuffer.prototype.byteLength",!0),r=La();return Sn=function(n){return r(n)?t?t(n):n.byteLength:NaN},Sn}var wn,Lo;function ls(){if(Lo)return wn;Lo=1;var e=_i(),t=Pa(),r=Vi(),o=Ct(),n=Gi(),a=Ea(),s=Yi(),i=ba(),l=xa(),u=La(),c=Ki(),p=yi(),h=Zi(),m=Bn(),g=ns(),y=is(),v=bi(),w=ss(),$=t("SharedArrayBuffer.prototype.byteLength",!0),x=t("Date.prototype.getTime"),S=Object.getPrototypeOf,E=t("Object.prototype.toString"),T=o("%Set%",!0),k=t("Map.prototype.has",!0),A=t("Map.prototype.get",!0),C=t("Map.prototype.size",!0),B=t("Set.prototype.add",!0),W=t("Set.prototype.delete",!0),U=t("Set.prototype.has",!0),q=t("Set.prototype.size",!0);function ie(b,P,H,N){for(var _=n(b),ae;(ae=_.next())&&!ae.done;)if(K(P,ae.value,H,N))return W(b,ae.value),!0;return!1}function L(b){if(typeof b>"u")return null;if(typeof b!="object")return typeof b=="symbol"?!1:typeof b=="string"||typeof b=="number"?+b==+b:!0}function X(b,P,H,N,_,ae){var re=L(H);if(re!=null)return re;var ee=A(P,re),V=e({},_,{strict:!1});return typeof ee>"u"&&!k(P,re)||!K(N,ee,V,ae)?!1:!k(b,re)&&K(N,ee,V,ae)}function F(b,P,H){var N=L(H);return N??(U(P,N)&&!U(b,N))}function se(b,P,H,N,_,ae){for(var re=n(b),ee,V;(ee=re.next())&&!ee.done;)if(V=ee.value,K(H,V,_,ae)&&K(N,A(P,V),_,ae))return W(b,V),!0;return!1}function K(b,P,H,N){var _=H||{};if(_.strict?s(b,P):b===P)return!0;var ae=g(b),re=g(P);if(ae!==re)return!1;if(!b||!P||typeof b!="object"&&typeof P!="object")return _.strict?s(b,P):b==P;var ee=N.has(b),V=N.has(P),Z;if(ee&&V){if(N.get(b)===N.get(P))return!0}else Z={};return ee||N.set(b,Z),V||N.set(P,Z),be(b,P,_,N)}function me(b){return!b||typeof b!="object"||typeof b.length!="number"||typeof b.copy!="function"||typeof b.slice!="function"||b.length>0&&typeof b[0]!="number"?!1:!!(b.constructor&&b.constructor.isBuffer&&b.constructor.isBuffer(b))}function Ie(b,P,H,N){if(q(b)!==q(P))return!1;for(var _=n(b),ae=n(P),re,ee,V;(re=_.next())&&!re.done;)if(re.value&&typeof re.value=="object")V||(V=new T),B(V,re.value);else if(!U(P,re.value)){if(H.strict||!F(b,P,re.value))return!1;V||(V=new T),B(V,re.value)}if(V){for(;(ee=ae.next())&&!ee.done;)if(ee.value&&typeof ee.value=="object"){if(!ie(V,ee.value,H.strict,N))return!1}else if(!H.strict&&!U(b,ee.value)&&!ie(V,ee.value,H.strict,N))return!1;return q(V)===0}return!0}function Ee(b,P,H,N){if(C(b)!==C(P))return!1;for(var _=n(b),ae=n(P),re,ee,V,Z,ne,J;(re=_.next())&&!re.done;)if(Z=re.value[0],ne=re.value[1],Z&&typeof Z=="object")V||(V=new T),B(V,Z);else if(J=A(P,Z),typeof J>"u"&&!k(P,Z)||!K(ne,J,H,N)){if(H.strict||!X(b,P,Z,ne,H,N))return!1;V||(V=new T),B(V,Z)}if(V){for(;(ee=ae.next())&&!ee.done;)if(Z=ee.value[0],J=ee.value[1],Z&&typeof Z=="object"){if(!se(V,b,Z,J,H,N))return!1}else if(!H.strict&&(!b.has(Z)||!K(A(b,Z),J,H,N))&&!se(V,b,Z,J,e({},H,{strict:!1}),N))return!1;return q(V)===0}return!0}function be(b,P,H,N){var _,ae;if(typeof b!=typeof P||b==null||P==null||E(b)!==E(P)||i(b)!==i(P))return!1;var re=l(b),ee=l(P);if(re!==ee)return!1;var V=b instanceof Error,Z=P instanceof Error;if(V!==Z||(V||Z)&&(b.name!==P.name||b.message!==P.message))return!1;var ne=p(b),J=p(P);if(ne!==J||(ne||J)&&(b.source!==P.source||r(b)!==r(P)))return!1;var ge=c(b),de=c(P);if(ge!==de||(ge||de)&&x(b)!==x(P)||H.strict&&S&&S(b)!==S(P))return!1;var pe=v(b),Fe=v(P);if(pe!==Fe)return!1;if(pe||Fe){if(b.length!==P.length)return!1;for(_=0;_<b.length;_++)if(b[_]!==P[_])return!1;return!0}var le=me(b),xe=me(P);if(le!==xe)return!1;if(le||xe){if(b.length!==P.length)return!1;for(_=0;_<b.length;_++)if(b[_]!==P[_])return!1;return!0}var qe=u(b),Ne=u(P);if(qe!==Ne)return!1;if(qe||Ne)return w(b)!==w(P)?!1:typeof Uint8Array=="function"&&K(new Uint8Array(b),new Uint8Array(P),H,N);var Me=h(b),Ve=h(P);if(Me!==Ve)return!1;if(Me||Ve)return $(b)!==$(P)?!1:typeof Uint8Array=="function"&&K(new Uint8Array(b),new Uint8Array(P),H,N);if(typeof b!=typeof P)return!1;var $e=m(b),Oe=m(P);if($e.length!==Oe.length)return!1;for($e.sort(),Oe.sort(),_=$e.length-1;_>=0;_--)if($e[_]!=Oe[_])return!1;for(_=$e.length-1;_>=0;_--)if(ae=$e[_],!K(b[ae],P[ae],H,N))return!1;var R=y(b),I=y(P);return R!==I?!1:R==="Set"||I==="Set"?Ie(b,P,H,N):R==="Map"?Ee(b,P,H,N):!0}return wn=function(P,H,N){return K(P,H,N,a())},wn}var us=ls();const Do=$t(us);function cs(){let e=null;return(t,r,...o)=>{e&&clearTimeout(e),e=setTimeout(t,r,...o)}}const fs=nt("iframe")({background:"transparent",border:0,width:"100%",height:"100%"}),ps=cs(),z=(e,t)=>t==null||t===""?"":Array.isArray(t)?t.length>0?t.map(r=>`${e}=${encodeURIComponent(String(r))}`).join("&"):"":`${e}=${encodeURIComponent(String(t))}`,ds=e=>{const{dev:t=!1,baseUrl:r=Pi.get("WEARABLE_PREVIEW_URL"),unity:o=!1,onLoad:n=()=>{},onError:a=()=>{},onUpdate:s=()=>{},...i}=e,[l,u]=O.useState({isReady:!1,pendingOptions:null}),c=O.useRef(null),p=O.useRef(null),h=O.useMemo(()=>{const{contractAddress:w,tokenId:$,itemId:x,profile:S,urns:E,urls:T,base64s:k,skin:A,hair:C,eyes:B,bodyShape:W,emote:U,camera:q,projection:ie,zoom:L,background:X,offsetX:F,offsetY:se,offsetZ:K,cameraX:me,cameraY:Ie,cameraZ:Ee,wheelZoom:be,wheelPrecision:b,wheelStart:P,disableBackground:H,disableAutoRotate:N,disableAutoCenter:_,disableFace:ae,disableDefaultWearables:re,disableDefaultEmotes:ee,disableFadeEffect:V,showSceneBoundaries:Z,showThumbnailBoundaries:ne,panning:J,lockAlpha:ge,lockBeta:de,lockRadius:pe,peerUrl:Fe,nftServerUrl:le,marketplaceServerUrl:xe,type:qe,unityMode:Ne,username:Me,socialEmote:Ve}=i,$e=z("contract",w),Oe=z("token",$),R=z("item",x),I=z("profile",S),D=z("urn",E),te=z("url",T),oe=z("base64",k),Q=z("skin",A),Re=z("hair",C),Pe=z("eyes",B),f=z("bodyShape",W),d=z("emote",U),Y=z("camera",q),ue=z("projection",ie),ce=z("zoom",L),G=z("background",X),Te=z("offsetX",F),_e=z("offsetY",se),Se=z("offsetZ",K),Ae=z("cameraX",me),mt=z("cameraY",Ie),ze=z("cameraZ",Ee),Ce=z("wheelZoom",be),ct=z("wheelPrecision",b),It=z("wheelStart",P),Mt=z("disableBackground",H),ot=z("disableAutoRotate",N),ht=z("disableAutoCenter",_),ft=z("disableFace",ae),gt=z("disableDefaultWearables",re),at=z("disableDefaultEmotes",ee),Tt=z("disableFadeEffect",V),pt=z("showSceneBoundaries",Z),it=z("showThumbnailBoundaries",ne),At=z("peerUrl",Fe),he=z("marketplaceServerUrl",xe??le),yt=z("type",qe),Qe=z("panning",J),we=z("lockAlpha",ge),Bt=z("lockBeta",de),Br=z("lockRadius",pe),vr=z("env",t?"dev":void 0),Za=z("unity",o),Ja=z("mode",Ne),Qa=z("username",Me),ei=z("socialEmote",Ve);return r+"?"+[$e,Oe,R,I,D,te,oe,Q,Re,Pe,f,d,Y,ue,ce,G,Te,_e,Se,Ae,mt,ze,Ce,ct,It,Mt,ot,ht,ft,gt,at,Tt,pt,it,At,he,yt,Qe,we,Bt,Br,vr,Za,Ja,Qa,ei].filter(ti=>!!ti).join("&")},[i,r,t,o]),m=O.useMemo(()=>{const w={};for(const $ in i)typeof i[$]!="function"&&(w[$]=i[$]);return w},[i]),g=O.useCallback(w=>{var x;const $=p.current;(!$||!Do(w,$))&&((x=c.current)!=null&&x.contentWindow&&Ht.sendMessage(c.current.contentWindow,Ht.PreviewMessageType.UPDATE,{options:w}),s(w),p.current=w)},[s]),y=O.useCallback(()=>{c.current?typeof window<"u"&&(l.isReady?g(m):Do(l.pendingOptions,m)||u(w=>({...w,pendingOptions:m,url:h}))):console.warn("Could not send update, iframe is not referenced")},[m,l.pendingOptions,l.isReady,g]),v=O.useCallback(w=>{var S;const{origin:$}=w;if($!==r||!((S=w.data)!=null&&S.type))return;switch(w.data.type){case Ht.PreviewMessageType.LOAD:{const E=w.data.payload;n(E==null?void 0:E.renderer);break}case Ht.PreviewMessageType.ERROR:{const E=w.data.payload;a(new Error(E.message));break}case Ht.PreviewMessageType.READY:{u(E=>E.isReady?E:E.pendingOptions!==null?(g(E.pendingOptions),{...E,isReady:!0,pendingOptions:null}):{...E,isReady:!0});break}}},[r,n,a,g]);return O.useEffect(()=>(window.addEventListener("message",v,!1),()=>{window.removeEventListener("message",v,!1)}),[v]),O.useEffect(()=>{e.blob&&y()},[e.blob,y]),O.useEffect(()=>{ps(y,500)},[y]),e.tokenId&&e.itemId&&console.warn("You should NOT use `tokenId` and `itemId` props simultaneously"),j.jsx(fs,{id:e.id,src:h,ref:c,allow:"autoplay"})};ds.createController=xi;var En={exports:{}},fe={};/**
@@ -1,4 +1,4 @@
1
- import{i as m,b as f}from"./lit-element-B3y9oplH.js";import{n as h}from"./class-map-CxwNmq0D.js";import{c as l}from"./index-pOWOYTZf.js";import{d as c}from"./index-C-uQhIOu.js";const p=c`
1
+ import{i as m,b as f}from"./lit-element-B3y9oplH.js";import{n as h}from"./class-map-CxwNmq0D.js";import{c as l}from"./index-DYHpzz6b.js";import{d as c}from"./index-HNkFQ8e1.js";const p=c`
2
2
  :host {
3
3
  display: block;
4
4
  background: linear-gradient(