@dcl/shop 1.6.3 → 1.6.4-31393274893.commit-fe5b3e4

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 (405) hide show
  1. package/_assets/Activity-BijJpTkD.js +387 -0
  2. package/_assets/{AnimatedBackground-6wiXZb3b.js → AnimatedBackground-DJZ3oWg6.js} +2 -2
  3. package/_assets/{Assets-GMVCFDmz.js → Assets-B_TvQj33.js} +37 -37
  4. package/_assets/{Assets.styles-7nziCIjQ.js → Assets.styles-DyGkSQg3.js} +2 -2
  5. package/_assets/{Authorizations-YfFEYS8f.js → Authorizations-DpEs1Zai.js} +2 -2
  6. package/_assets/{Cart-CJy5ltJ8.js → Cart-C1RD0sE7.js} +2 -2
  7. package/_assets/{CircularProgress-CTeYSVnF.js → CircularProgress-C3Yyc5Yo.js} +4 -4
  8. package/_assets/{Collection-fLqHzmi0.js → Collection-BfsXJWYr.js} +2 -2
  9. package/_assets/{CollectionCarousel-CiZl--6D.js → CollectionCarousel-QRFPfObA.js} +3 -3
  10. package/_assets/{Confetti-CFa4AFjh.js → Confetti-jrBYWQ4j.js} +4 -4
  11. package/_assets/{ConstantsUtil-C4mOmk3J.js → ConstantsUtil-D_iBbL7x.js} +2 -2
  12. package/_assets/{ContentClient-aZi75KnW.js → ContentClient-DiDjVJwL.js} +2 -2
  13. package/_assets/{Creator-BKHf2RgK.js → Creator-oLOu2_6o.js} +2 -2
  14. package/_assets/DeploymentBuilder-B5Xzrege.js +4 -0
  15. package/_assets/{ErrorNotice-Byyc-QLF.js → ErrorNotice-DQptpq6K.js} +2 -2
  16. package/_assets/{ExchangeController-CkOldDnU.js → ExchangeController-p9L9WaNh.js} +2 -2
  17. package/_assets/{Faq-Dg8LI3ym.js → Faq-DlYPNDnc.js} +2 -2
  18. package/_assets/{GetCredits-Cp2cvFEg.js → GetCredits-BZNqYH3K.js} +2 -2
  19. package/_assets/{Grow-CKOpX7ey.js → Grow-CvueDEs_.js} +2 -2
  20. package/_assets/{HelpersUtil-DPwFWf1w.js → HelpersUtil-BGtdVBL6.js} +4 -4
  21. package/_assets/{ItemDetail-BWtbx-8G.js → ItemDetail-CYWB8kES.js} +2 -2
  22. package/_assets/{JumpInIcon-Cw67mZfJ.js → JumpInIcon-CrVimOD7.js} +2 -2
  23. package/_assets/LazyEmoteControls-D1j7i1Dx.js +3 -0
  24. package/_assets/{LoadMore-CobxthT4.js → LoadMore-D3YXgx9b.js} +2 -2
  25. package/_assets/{ManaPricingBanner.styles-BTbZJpHp.js → ManaPricingBanner.styles-hNSmGhtq.js} +2 -2
  26. package/_assets/{MyAssets-CA4HnSJ3.js → MyAssets-DBFhcvr_.js} +3 -3
  27. package/_assets/{MyFavorites-CPM60pHO.js → MyFavorites-DZPKWQIG.js} +5 -5
  28. package/_assets/{NetworkUtil-Mlg-3jol.js → NetworkUtil-C6HCpbc0.js} +2 -2
  29. package/_assets/{NotFound-Dk73dneb.js → NotFound-Cj-uAW5f.js} +2 -2
  30. package/_assets/{NotificationsBell-CfTzhhGg.js → NotificationsBell-CFcKqvoI.js} +2 -2
  31. package/_assets/{OutfitDetail-Cjjt6KWm.js → OutfitDetail-BrhrFR4H.js} +2 -2
  32. package/_assets/OutfitPreview-DKF6z0YR.js +7 -0
  33. package/_assets/{OutfitStudio-CCbNcw3B.js → OutfitStudio-DMJOOr-W.js} +2 -2
  34. package/_assets/{PhArrowCircleDown-LMy4WE7D.js → PhArrowCircleDown-CxXOHVgE.js} +5 -5
  35. package/_assets/{PhArrowClockwise-B7efjCn9.js → PhArrowClockwise-DnJiMYnu.js} +4 -4
  36. package/_assets/{PhArrowDown-Bwdqa9_E.js → PhArrowDown-DgwtGa9-.js} +2 -2
  37. package/_assets/{PhArrowLeft-DuBXpz8N.js → PhArrowLeft-FYCUZwtI.js} +3 -3
  38. package/_assets/{PhArrowRight-z9Dl361F.js → PhArrowRight-DwxhqEA5.js} +4 -4
  39. package/_assets/{PhArrowSquareOut-B8fjTbIa.js → PhArrowSquareOut-Dv6DZZoQ.js} +4 -4
  40. package/_assets/{PhArrowUp-DkrWYIAz.js → PhArrowUp-DWFqIiTC.js} +2 -2
  41. package/_assets/{PhArrowUpRight-BmMKHv_H.js → PhArrowUpRight-CQEJmSv1.js} +4 -4
  42. package/_assets/{PhArrowsClockwise-CvNc1TwT.js → PhArrowsClockwise-DTxnxbQZ.js} +3 -3
  43. package/_assets/{PhArrowsDownUp-sU4tJwkL.js → PhArrowsDownUp-CCBXGhZw.js} +5 -5
  44. package/_assets/{PhArrowsLeftRight-Inahzprd.js → PhArrowsLeftRight-Bj_-312C.js} +4 -4
  45. package/_assets/{PhBank-BD-K_cfz.js → PhBank-48j7J7qv.js} +5 -5
  46. package/_assets/{PhBrowser-DVRvcu4M.js → PhBrowser-D6hf1rGc.js} +2 -2
  47. package/_assets/{PhCaretDown-G6ZOf3Jn.js → PhCaretDown-CFoksgPQ.js} +2 -2
  48. package/_assets/PhCaretLeft-Biye6fMa.js +15 -0
  49. package/_assets/{PhCaretRight-Dl0sRgp0.js → PhCaretRight-CEhVINfR.js} +2 -2
  50. package/_assets/PhCaretUp-DG-v6SHg.js +15 -0
  51. package/_assets/{PhCheck-D5l8KeSX.js → PhCheck-Bc77OWMn.js} +4 -4
  52. package/_assets/{PhCircleHalf-BvUuifqe.js → PhCircleHalf-Bnh5uFUV.js} +5 -5
  53. package/_assets/{PhClock-BgqN1MJg.js → PhClock-SbADPZJ3.js} +2 -2
  54. package/_assets/{PhCompass-Dptb6Trt.js → PhCompass-B_gDBZwD.js} +4 -4
  55. package/_assets/{PhCopy-of33PGSB.js → PhCopy-YSlpVHFy.js} +2 -2
  56. package/_assets/{PhCreditCard-cGVosjKz.js → PhCreditCard-C63_x52r.js} +3 -3
  57. package/_assets/{PhCurrencyDollar-PwdaRdae.js → PhCurrencyDollar-C8G9LLOC.js} +4 -4
  58. package/_assets/{PhDesktop-Bhi2QPLf.js → PhDesktop-C4gDVEQW.js} +2 -2
  59. package/_assets/{PhDeviceMobile-CmgmYUdD.js → PhDeviceMobile-DFhF9vWl.js} +3 -3
  60. package/_assets/{PhDotsThree-Bp1v1FK6.js → PhDotsThree-D1w7CJil.js} +4 -4
  61. package/_assets/{PhEnvelope-D6Hu8w_1.js → PhEnvelope-Bl2H5nh4.js} +4 -4
  62. package/_assets/{PhFunnelSimple-DKlL8A4i.js → PhFunnelSimple-BgMk7oAm.js} +2 -2
  63. package/_assets/{PhGlobe-7uylPeNu.js → PhGlobe-DogsrQP0.js} +3 -3
  64. package/_assets/{PhIdentificationCard-BED247mY.js → PhIdentificationCard-Q31-09T1.js} +3 -3
  65. package/_assets/{PhImage-FOrY1Sk8.js → PhImage-CSp7hEF0.js} +3 -3
  66. package/_assets/{PhInfo-CaWDFvIR.js → PhInfo-Dpk9jfsi.js} +5 -5
  67. package/_assets/{PhLightbulb-B75QV9EL.js → PhLightbulb-BeQsp-tS.js} +4 -4
  68. package/_assets/{PhMagnifyingGlass-adS5yhrC.js → PhMagnifyingGlass-BTIpv1o6.js} +2 -2
  69. package/_assets/{PhPaperPlaneRight-BbRgMArn.js → PhPaperPlaneRight-Djt1jrci.js} +4 -4
  70. package/_assets/{PhPlus-Bl3EEBwL.js → PhPlus-7X_1vaxY.js} +5 -5
  71. package/_assets/{PhPower-GunSTWQq.js → PhPower-DKdnamzj.js} +5 -5
  72. package/_assets/{PhPuzzlePiece-BWgi2L03.js → PhPuzzlePiece-Dn0glh9o.js} +4 -4
  73. package/_assets/{PhQrCode-D0-Wqehu.js → PhQrCode-BUDersHS.js} +3 -3
  74. package/_assets/{PhQuestion-DwVCTKdM.js → PhQuestion-DVQPWaWL.js} +3 -3
  75. package/_assets/{PhQuestionMark-CgTbmVtJ.js → PhQuestionMark-BrFvM_Em.js} +3 -3
  76. package/_assets/{PhSealCheck-Dk3N_Xq2.js → PhSealCheck-NWQrD4Wo.js} +3 -3
  77. package/_assets/{PhSignOut-BvXl5dyB.js → PhSignOut-BAEsXApA.js} +4 -4
  78. package/_assets/{PhSpinner-DzLQccU8.js → PhSpinner-DnTTHmGi.js} +3 -3
  79. package/_assets/{PhTrash-TPE0FvJz.js → PhTrash-CfPgy1g-.js} +2 -2
  80. package/_assets/{PhUser-D1oy0lLc.js → PhUser-BE2oflin.js} +5 -5
  81. package/_assets/{PhVault-ByF05VqU.js → PhVault-DO_gHFrt.js} +2 -2
  82. package/_assets/{PhWallet-D75iTvtf.js → PhWallet-COcpB5cL.js} +2 -2
  83. package/_assets/{PhWarning-Jaj21PeP.js → PhWarning-CZn1p4rU.js} +3 -3
  84. package/_assets/{PhWarningCircle-DBt_0tnC.js → PhWarningCircle-Q1TpUKlh.js} +4 -4
  85. package/_assets/{PhX-DZ578mpg.js → PhX-DtPiLwA0.js} +5 -5
  86. package/_assets/{StoreSettings-XU0qD3cx.js → StoreSettings-IgrX_tLG.js} +4 -4
  87. package/_assets/{Success-B-LIGB09.js → Success-BS0Z1RAV.js} +2 -2
  88. package/_assets/{SwapController-DCE2P1mf.js → SwapController-DxegJiXK.js} +2 -2
  89. package/_assets/{Tooltip-D6WdtutB.js → Tooltip-CnaT1qo6.js} +2 -2
  90. package/_assets/{TradeService-Dfzo0ubv.js → TradeService-BpKdPYLA.js} +2 -2
  91. package/_assets/{W3MFrameProviderSingleton-C9lFWf3T.js → W3MFrameProviderSingleton-6RT8kETO.js} +4 -4
  92. package/_assets/{WebCryptoP256-9q_xtXKV.js → WebCryptoP256-BPPn0xWu.js} +2 -2
  93. package/_assets/{add-tNqIWcMg.js → add-DTV9RnbB.js} +3 -3
  94. package/_assets/{all-wallets-B8nlg7MV.js → all-wallets-CoF5vdo1.js} +2 -2
  95. package/_assets/{app-store-9-kKdmJ6.js → app-store-Bk83nseb.js} +2 -2
  96. package/_assets/{apple-DvojoPdF.js → apple-C0JnL12G.js} +2 -2
  97. package/_assets/{arrow-bottom--df_76nG.js → arrow-bottom-DTtWhfqu.js} +2 -2
  98. package/_assets/{arrow-bottom-circle-B2DyGh2W.js → arrow-bottom-circle-2iA-pjWb.js} +2 -2
  99. package/_assets/{arrow-left-Fb0mZ7Y-.js → arrow-left-CSHwe13T.js} +3 -3
  100. package/_assets/{arrow-right-BixOWpB1.js → arrow-right-D0OnS_Dt.js} +2 -2
  101. package/_assets/arrow-top-B6q7bINf.js +9 -0
  102. package/_assets/async-directive-C4ERI4pC.js +10 -0
  103. package/_assets/{authorizations-j05Fw249.js → authorizations-BDMsJXSs.js} +2 -2
  104. package/_assets/{bank-CMW6OQj8.js → bank-BEXUgR-O.js} +3 -3
  105. package/_assets/{basic-CWlrA8y8.js → basic-CGUUnNV6.js} +2 -2
  106. package/_assets/{biconomy-C62lW-aQ.js → biconomy-AS28IDeM.js} +2 -2
  107. package/_assets/{browser-DFE3CTqg.js → browser-CKajL20L.js} +3 -3
  108. package/_assets/{browser-CP4FrbKU.js → browser-CpV7JK0d.js} +2 -2
  109. package/_assets/{browser-ponyfill-Dhx4dXw9.js → browser-ponyfill-iYteNcNL.js} +2 -2
  110. package/_assets/{builder-Baa5Kdf5.js → builder-C_mpoG0k.js} +2 -2
  111. package/_assets/{buy-sy9Eq8Nz.js → buy-CravDqC4.js} +2 -2
  112. package/_assets/{buy-gasless-CaziUTqr.js → buy-gasless-y9ZhCZwt.js} +2 -2
  113. package/_assets/{card-BVdWO709.js → card-BZJQ3LQE.js} +2 -2
  114. package/_assets/{categories-BqHw_X_x.js → categories-Df30N9ir.js} +2 -2
  115. package/_assets/{ccip-D1Lj06fC.js → ccip-BdNcR3B3.js} +2 -2
  116. package/_assets/{ccip-BI8CkyOT.js → ccip-jfjEbu6Q.js} +2 -2
  117. package/_assets/{chains-BX1rzWAQ.js → chains-CK0_Sefk.js} +2 -2
  118. package/_assets/{checkmark-DjsMr40Z.js → checkmark-bG2V1tQe.js} +2 -2
  119. package/_assets/{checkmark-bold-DCuG-0NX.js → checkmark-bold-C_Lw0--T.js} +3 -3
  120. package/_assets/{chevron-bottom-D8_GkQ-J.js → chevron-bottom-DWmnxlzP.js} +2 -2
  121. package/_assets/chevron-left-D4XfciEr.js +9 -0
  122. package/_assets/chevron-right-YDjwU6mj.js +9 -0
  123. package/_assets/chevron-top-CKP62nIc.js +9 -0
  124. package/_assets/{chrome-store-CWYMTzwh.js → chrome-store-DPBMc1IQ.js} +2 -2
  125. package/_assets/{class-map-HS20q_81.js → class-map-TfwPuvlt.js} +2 -2
  126. package/_assets/{clock-DNaUSRmN.js → clock-vfy-xAtz.js} +3 -3
  127. package/_assets/close-CDjRP7el.js +9 -0
  128. package/_assets/{coinPlaceholder-QyY4J5WZ.js → coinPlaceholder-DlsoU9ps.js} +2 -2
  129. package/_assets/collectionPage.styles-CJpk15Nl.js +33 -0
  130. package/_assets/common-CmMaqO41.js +2 -0
  131. package/_assets/{compass-gauDPeQF.js → compass-YIBj_s9P.js} +2 -2
  132. package/_assets/controller-BzM17fun.js +3 -0
  133. package/_assets/{copy-Cfnp8Gxd.js → copy-DCWgzfm7.js} +2 -2
  134. package/_assets/{core-BZ39SH1H.js → core-CcFOln3F.js} +5 -5
  135. package/_assets/{createSvgIcon-CjAFV7d4.js → createSvgIcon-CzAghIxs.js} +3 -3
  136. package/_assets/cursor-BmxC6Z2v.js +4 -0
  137. package/_assets/{cursor-transparent-wEHWEbGv.js → cursor-transparent-BOQm83CH.js} +3 -3
  138. package/_assets/{custom-BUdYW5JY.js → custom-DZLhV8pi.js} +2 -2
  139. package/_assets/{data-capture-BRFuUwQA.js → data-capture-Dp0gEOyC.js} +2 -2
  140. package/_assets/{dcl-schemas-D_gYB9cE.js → dcl-schemas-DCCxcBd_.js} +2 -2
  141. package/_assets/decimals-99pVte4v.js +2 -0
  142. package/_assets/decimals-BzDaRYK5.js +2 -0
  143. package/_assets/{desktop-wmxiQg3x.js → desktop-C2phimOe.js} +2 -2
  144. package/_assets/detectExtension-BDdQYFaF.js +2 -0
  145. package/_assets/{disconnect-CW0SedIh.js → disconnect-BKsaehlj.js} +3 -3
  146. package/_assets/{discord-r-2ftUs2.js → discord-Bl2BanWC.js} +3 -3
  147. package/_assets/{disposePreview-wUdxFE81.js → disposePreview-Bt1zthb-.js} +2 -2
  148. package/_assets/{email-BTJdxBMa.js → email-DKuNrUGz.js} +7 -7
  149. package/_assets/{embedded-wallet-QOQfAql4.js → embedded-wallet-DiAi5juK.js} +2 -2
  150. package/_assets/{emotion-styled.browser.esm-DEdM57s-.js → emotion-styled.browser.esm-BNYrrR-n.js} +2 -2
  151. package/_assets/{engine-BDEFEaL-.js → engine-DO9rzejh.js} +2 -2
  152. package/_assets/{errors-DVaIit1a.js → errors-BR2DYlkN.js} +2 -2
  153. package/_assets/estimate-l1-fee-BnreVrAO.js +2 -0
  154. package/_assets/eth_estimateGas-CFBHrWQo.js +2 -0
  155. package/_assets/eth_getStorageAt-CjWXP0_z.js +2 -0
  156. package/_assets/eth_getTransactionCount-DulleRzE.js +2 -0
  157. package/_assets/ethereum-DHUC2DG3.js +2 -0
  158. package/_assets/{ethers-_zS5i05m.js → ethers-DL8HYBD1.js} +2 -2
  159. package/_assets/{etherscan-DJ0SXy-j.js → etherscan-58Ubzxkw.js} +2 -2
  160. package/_assets/{events-BBzTbXov.js → events-A3DTBRoM.js} +2 -2
  161. package/_assets/{exclamation-triangle-Cx-Rg-Q1.js → exclamation-triangle-BcBquNLN.js} +2 -2
  162. package/_assets/{execute-BUzmsEqD.js → execute-Cg_f99mG.js} +3 -3
  163. package/_assets/{extension-f7z5q8eX.js → extension-6fxxVDb8.js} +3 -3
  164. package/_assets/external-link-Brktcqz2.js +9 -0
  165. package/_assets/extractIPFS-qSJovz3Y.js +2 -0
  166. package/_assets/{facebook-CGRggpq_.js → facebook-BT044Rud.js} +3 -3
  167. package/_assets/{farcaster-BDJUKKnv.js → farcaster-D7r3h2iA.js} +2 -2
  168. package/_assets/{features-CQlWdGTE.js → features-S-juYOc8.js} +2 -2
  169. package/_assets/fetchTokenMetadata-DiGdQTFR.js +3 -0
  170. package/_assets/{field.styles-CV_6WXb-.js → field.styles-DwY6mA5k.js} +2 -2
  171. package/_assets/{filters-CC5vo2yt.js → filters-DLU5iOv-.js} +2 -2
  172. package/_assets/{fortmatic-yQ_C_EHG.js → fortmatic-DZMFvRSy.js} +2 -2
  173. package/_assets/{get-bytecode-gTB1EXW2.js → get-bytecode-BdNScxcm.js} +2 -2
  174. package/_assets/get-ecosystem-wallet-info-B1hD9oCl.js +2 -0
  175. package/_assets/{getBalance-DTJS_gHt.js → getBalance-5pMK97xn.js} +3 -3
  176. package/_assets/getInstalledModules-Dy8beckb.js +2 -0
  177. package/_assets/getNFT-B-N-0TyH.js +2 -0
  178. package/_assets/getNFT-Dtz3_t30.js +3 -0
  179. package/_assets/{github-EOSVHy2c.js → github-Dyr1FwtF.js} +3 -3
  180. package/_assets/{google-B7KfKj7W.js → google-kZUZGkPo.js} +3 -3
  181. package/_assets/{grid.styles-pgf7raCh.js → grid.styles-CBj7OPqs.js} +2 -2
  182. package/_assets/{hashTypedData-C1Y9ylpl.js → hashTypedData-BViBbI7d.js} +2 -2
  183. package/_assets/{hashTypedData-21WXkfUT.js → hashTypedData-C8wYkClG.js} +2 -2
  184. package/_assets/{help-circle-BN_J5ISd.js → help-circle-kQ2IMNaP.js} +3 -3
  185. package/_assets/{id-Be22hW3B.js → id-BnCg6CDn.js} +2 -2
  186. package/_assets/{image-Cn3EeNg1.js → image-BljvVi7U.js} +3 -3
  187. package/_assets/{in-app-D74sRIPO.js → in-app-DEdRzocq.js} +2 -2
  188. package/_assets/{in-app-wallet-calls-BuFts9zK.js → in-app-wallet-calls-Dm5qX8uR.js} +2 -2
  189. package/_assets/{index-C3G2NZyV.js → index-0NORQtpG.js} +4 -4
  190. package/_assets/{index-BoItrN7U.js → index-24uRB0LZ.js} +2 -2
  191. package/_assets/index-3m-YEpVY.js +54 -0
  192. package/_assets/{index-DDVYAmyk.js → index-3px6dAqb.js} +5 -5
  193. package/_assets/{index-iB0lZmgZ.js → index-7LXzQmHE.js} +4 -4
  194. package/_assets/{index-C7glnlvH.js → index-7tUSX8Sg.js} +2 -2
  195. package/_assets/{index-ClLvuzg0.js → index-B1Gb-3R6.js} +3 -3
  196. package/_assets/{index-DmN4kDpH.js → index-B2D616zz.js} +2 -2
  197. package/_assets/{index-BI-6q1N9.js → index-B2Gc_mC-.js} +2 -2
  198. package/_assets/{index-D_5rqd0P.js → index-B7Gu3ukM.js} +2 -2
  199. package/_assets/{index-5mxS7CZV.js → index-B80yNe_h.js} +2 -2
  200. package/_assets/{index-BVnXaXLL.js → index-BAXWOcsc.js} +2 -2
  201. package/_assets/{index-CJMXmM7s.js → index-BGLfJJYt.js} +3 -3
  202. package/_assets/{index-1uX2a3CO.js → index-BGUD_ZL2.js} +2 -2
  203. package/_assets/{index-BsEhpV73.js → index-BHaToJQ0.js} +2 -2
  204. package/_assets/{index-CI-vfMTL.js → index-BJ0DfYhI.js} +4 -4
  205. package/_assets/{index-D5MhQzYk.js → index-BKmuXR89.js} +3 -3
  206. package/_assets/{index-Cb1C2UDf.js → index-BLGDIibw.js} +2 -2
  207. package/_assets/{index-DghfVxEn.js → index-BPbDwpBU.js} +2 -2
  208. package/_assets/{index-CPty4pBa.js → index-BTFjwtxS.js} +2 -2
  209. package/_assets/{index-Dtvzb1Ey.js → index-BUQCEt3k.js} +2 -2
  210. package/_assets/{index-CPUGxj2a.js → index-BWDlDT5x.js} +2 -2
  211. package/_assets/{index-BNffN3Ei.js → index-BcOfOkoI.js} +6 -6
  212. package/_assets/{index-tZgKWsqK.js → index-BceNINUN.js} +2 -2
  213. package/_assets/{index-yyxEw9PC.js → index-BghqWn9P.js} +3 -3
  214. package/_assets/{index-CcFQFgZI.js → index-BrSYC0hv.js} +5 -5
  215. package/_assets/{index-DnCZMVFC.js → index-BtUfxv0D.js} +2 -2
  216. package/_assets/{index-Boq4M3w2.js → index-C0GVN_h_.js} +3 -3
  217. package/_assets/{index-CtfpZRkP.js → index-C27SJIy7.js} +2 -2
  218. package/_assets/{index-Dv1ekxDM.js → index-C2Y-GwnE.js} +2 -2
  219. package/_assets/{index-BlSb5f20.js → index-C5Cfgzxe.js} +2 -2
  220. package/_assets/{index-Bu9dWV25.js → index-C6kT6Sfn.js} +4 -4
  221. package/_assets/{index-C_q1k4f1.js → index-C8aCwT--.js} +3 -3
  222. package/_assets/{index-Bcz-M3JX.js → index-CNrbvWPD.js} +2 -2
  223. package/_assets/{index-JnO0z-Cn.js → index-CPhvWWd4.js} +2 -2
  224. package/_assets/{index-DOjT-IR-.js → index-CPpZVAuH.js} +2 -2
  225. package/_assets/{index-CscdOUkg.js → index-CU2qo9Jz.js} +4 -4
  226. package/_assets/{index-D_Z15_zr.js → index-CcqheoI1.js} +2 -2
  227. package/_assets/{index-B1t3ekE0.js → index-CrT_4JW8.js} +3 -3
  228. package/_assets/{index-CZG2pFm7.js → index-CryD9VW4.js} +5 -5
  229. package/_assets/{index-CakOjrX4.js → index-CzSsPS4z.js} +2 -2
  230. package/_assets/{index-CER1Yrzx.js → index-D87-9MZR.js} +5 -5
  231. package/_assets/{index-8SibZDhV.js → index-D8xHDDES.js} +2 -2
  232. package/_assets/index-DOhvvJ34.js +20 -0
  233. package/_assets/{index-BSah7Lop.js → index-DPNFV3D8.js} +2 -2
  234. package/_assets/{index-DD4UFbYg.js → index-DQUXVV0m.js} +4 -4
  235. package/_assets/{index-BarKtNrJ.js → index-DRG2oQIV.js} +7 -7
  236. package/_assets/index-DSpipQd9.js +2 -0
  237. package/_assets/{index-Pqk667pF.js → index-DVIuZ9BZ.js} +2 -2
  238. package/_assets/{index-zY4zHC5G.js → index-DWKIvGEP.js} +2 -2
  239. package/_assets/{index-BzFZQh1Y.js → index-DgTbZQPd.js} +2 -2
  240. package/_assets/{index-BFhfZ3EW.js → index-DhUS7AJF.js} +2 -2
  241. package/_assets/{index-C5D5OP2z.js → index-DmWruJR2.js} +308 -308
  242. package/_assets/{index-Do-WnAgq.js → index-Dq5wfttg.js} +2 -2
  243. package/_assets/{index-B2wlsGcK.js → index-DqmXHGE-.js} +2 -2
  244. package/_assets/{index-8g-_1_MA.js → index-Dr5zktOL.js} +5 -5
  245. package/_assets/{index-Ds9zM4Gv.js → index-DsM3TTlU.js} +5 -5
  246. package/_assets/{index-Do8Ih_qS.js → index-DxnJl2WJ.js} +4 -4
  247. package/_assets/{index-Cnjy-6BC.js → index-Dz4lLVRy.js} +2 -2
  248. package/_assets/{index-DoekLdMC.js → index-F-FNlGTD.js} +4 -4
  249. package/_assets/index-FjcL2PZF.js +2 -0
  250. package/_assets/{index-EBmRTCns.js → index-HgN3VEFi.js} +13 -13
  251. package/_assets/{index-CdpymcFQ.js → index-Hws6c9HG.js} +2 -2
  252. package/_assets/{index-DN2bySU8.js → index-MczJraXL.js} +2 -2
  253. package/_assets/{index-M9Jt8ASc.js → index-WYDHmNZm.js} +2 -2
  254. package/_assets/{index-7EA6nJ13.js → index-m9VghriX.js} +4 -4
  255. package/_assets/{index-DJbdI7_-.js → index-onWOn2Lw.js} +2 -2
  256. package/_assets/{index.es-BSpIryBl.js → index.es-4edd-nyK.js} +2 -2
  257. package/_assets/{index.es-Dhqs2Ijy.js → index.es-B_XjuOVV.js} +2 -2
  258. package/_assets/{index.es-DOTvHRPc.js → index.es-CMgDBoSg.js} +5 -5
  259. package/_assets/{index.es-CD5CukIL.js → index.es-_w4ghWbW.js} +2 -2
  260. package/_assets/{info-CwfqZ_F5.js → info-NffTejk2.js} +2 -2
  261. package/_assets/{info-circle-DulYFvYW.js → info-circle-Bkfa-zTK.js} +2 -2
  262. package/_assets/{jsxRuntime.module-hV4zW-M8.js → jsxRuntime.module-CWoDbr3a.js} +2 -2
  263. package/_assets/{lightbulb-CE_dw_oh.js → lightbulb-DJyI23gZ.js} +3 -3
  264. package/_assets/{linkAccount-BptAtmTs.js → linkAccount-DLtl2O7g.js} +2 -2
  265. package/_assets/{localBatchGatewayRequest-BNZnwXST.js → localBatchGatewayRequest-C8Gkji-1.js} +2 -2
  266. package/_assets/{mail-DJ6kL25J.js → mail-ByjbM98V.js} +3 -3
  267. package/_assets/{mobile-fDCl_uHz.js → mobile-DRtsSoQQ.js} +2 -2
  268. package/_assets/{more-C7_Whde7.js → more-7mTLBDMC.js} +2 -2
  269. package/_assets/name-glyph-aUugT8vq.js +2 -0
  270. package/_assets/{native-xln9Ypfk.js → native-CnjXMM-C.js} +2 -2
  271. package/_assets/{network-placeholder-Cz4dQYwV.js → network-placeholder-BLIeJdXr.js} +2 -2
  272. package/_assets/{networks-DnqJOR0L.js → networks-BOXvdbA_.js} +2 -2
  273. package/_assets/{nftPlaceholder-BihS-dFi.js → nftPlaceholder-BkPrsl1V.js} +2 -2
  274. package/_assets/{off-txTunFjX.js → off-D5nJR6cf.js} +3 -3
  275. package/_assets/{onramp-D5zM9cPP.js → onramp-C3ZcVb03.js} +2 -2
  276. package/_assets/{openzeppelin-CQAmX0za.js → openzeppelin-0ZRk_M0i.js} +2 -2
  277. package/_assets/ownerOf-B0L_lvHO.js +2 -0
  278. package/_assets/parseNft-Dk8hPccx.js +3 -0
  279. package/_assets/{parseSignature-BZDnCdH9.js → parseSignature-BmGcXvXm.js} +4 -4
  280. package/_assets/{parseSignature-pPkUdMuL.js → parseSignature-Eowa2tdA.js} +2 -2
  281. package/_assets/passkeys-aXr9fPLE.js +2 -0
  282. package/_assets/{pay-with-exchange-mbW0pOJG.js → pay-with-exchange-lrWwqmcS.js} +2 -2
  283. package/_assets/{play-store-BoegC4yH.js → play-store-DkQb-7TK.js} +3 -3
  284. package/_assets/{plus-CGZQ4v4u.js → plus-QEqsA4LH.js} +2 -2
  285. package/_assets/{prepare-contract-call-XvLouK3k.js → prepare-contract-call-DB8CLypS.js} +2 -2
  286. package/_assets/{qr-code-D4FwFoJ2.js → qr-code-DUGI4hfn.js} +2 -2
  287. package/_assets/{qr-overlay-BXG0l3NR.js → qr-overlay-iQN1dD-Z.js} +4 -4
  288. package/_assets/{react-p_AXR2bI.js → react-DjYfJ2MV.js} +2 -2
  289. package/_assets/{receive-DVZl8QzX.js → receive-BM9-ydQE.js} +2 -2
  290. package/_assets/{recycle-horizontal-BQghFdmJ.js → recycle-horizontal-4LA4SYxV.js} +3 -3
  291. package/_assets/{ref-CRG-0jL7.js → ref-SeW674D4.js} +3 -3
  292. package/_assets/{refresh-BeYZoKSh.js → refresh-CfbVwjMK.js} +2 -2
  293. package/_assets/{reown-logo-BUmcB6sW.js → reown-logo-CXdwCM5S.js} +2 -2
  294. package/_assets/{resolveImplementation-Dowom1xi.js → resolveImplementation-BvPO9AxE.js} +2 -2
  295. package/_assets/{resume-buy-oYwKUCzZ.js → resume-buy-DMj0gsv3.js} +2 -2
  296. package/_assets/{rpc-BLGAUJDI.js → rpc-CWwF5Q0O.js} +2 -2
  297. package/_assets/{search-b1pLcQ0Q.js → search-BxoBdLKX.js} +3 -3
  298. package/_assets/{secp256k1-BcLASQLd.js → secp256k1-DaUYZoDM.js} +2 -2
  299. package/_assets/{secp256k1-DgGlVZMJ.js → secp256k1-DbiormCe.js} +2 -2
  300. package/_assets/{secp256k1-BONPpaKJ.js → secp256k1-v7SFjvoR.js} +2 -2
  301. package/_assets/{send-DJqn-0JF.js → send-BEWpjUYC.js} +2 -2
  302. package/_assets/{send-lC4ra6w3.js → send-DADQg5Xo.js} +2 -2
  303. package/_assets/send-batch-transaction-Byu6-BlM.js +2 -0
  304. package/_assets/{send-eip712-transaction-CyyzZq8a.js → send-eip712-transaction-CX0SS_Fj.js} +3 -3
  305. package/_assets/send-gasless-transaction-p0wtOOIx.js +3 -0
  306. package/_assets/send-transaction-DVDWbxYg.js +3 -0
  307. package/_assets/{sendMetaTransaction-Cst1mwG1.js → sendMetaTransaction-ogjnebbT.js} +2 -2
  308. package/_assets/{sendRawTransaction-Cq70uNHL.js → sendRawTransaction-DeqJeesd.js} +4 -4
  309. package/_assets/{sentry-ZNPCJOTe.js → sentry-D5pxZjEX.js} +3 -3
  310. package/_assets/{serializeTransaction-BcI-BZX9.js → serializeTransaction-BAb9fRza.js} +2 -2
  311. package/_assets/{session-proposal-BqcjXJMj.js → session-proposal-BE3cA9V2.js} +2 -2
  312. package/_assets/{session-request-CRbOpSH_.js → session-request-BSBr8dIr.js} +3 -3
  313. package/_assets/{sha256-koPB69GV.js → sha256-LzeRV9fa.js} +2 -2
  314. package/_assets/{signing-B_7COMB9.js → signing-SvumIwtH.js} +4 -4
  315. package/_assets/{skeleton.styles-Ck4Iczt7.js → skeleton.styles-C4DJ2NzO.js} +2 -2
  316. package/_assets/{socials-CbPmI5V7.js → socials-BAM25AoB.js} +2 -2
  317. package/_assets/{styled-B73DSMbA.js → styled-D8T13S5T.js} +2 -2
  318. package/_assets/{swapHorizontal-B917A7vy.js → swapHorizontal-DqWxuLkY.js} +3 -3
  319. package/_assets/{swapHorizontalBold-BXr9TuPL.js → swapHorizontalBold-OjAKKa_s.js} +3 -3
  320. package/_assets/{swapHorizontalMedium-BK00_YJ-.js → swapHorizontalMedium-DMCaBXhn.js} +2 -2
  321. package/_assets/{swapHorizontalRoundedBold-Bi8rzI9h.js → swapHorizontalRoundedBold-MdL2nIUy.js} +2 -2
  322. package/_assets/{swapVertical-Cw3vad0G.js → swapVertical-DqfBjHDL.js} +2 -2
  323. package/_assets/{swaps-DtHUeTzq.js → swaps-E7VYTCbf.js} +2 -2
  324. package/_assets/{telegram-BddjnyZB.js → telegram-BUfF9lU-.js} +2 -2
  325. package/_assets/{thirdweb-BE-8QLg6.js → thirdweb-BCm_1-hP.js} +4 -4
  326. package/_assets/{three-dots-C6jZ-WFx.js → three-dots-Dtx7YFPp.js} +3 -3
  327. package/_assets/{to-serializable-transaction-DcRGD3d3.js → to-serializable-transaction-fh2ZuQ0z.js} +3 -3
  328. package/_assets/totalSupply-B9x6jcRS.js +2 -0
  329. package/_assets/{transaction-CGyimcTv.js → transaction-BW1kcJaw.js} +2 -2
  330. package/_assets/transactionReceipt-DAtMflrB.js +2 -0
  331. package/_assets/transactions-DBTQsKX-.js +17 -0
  332. package/_assets/{twitch-D8WrDbmL.js → twitch-CcAxNwZd.js} +3 -3
  333. package/_assets/{twitterIcon-DlYypBM9.js → twitterIcon-DGWTzzDP.js} +3 -3
  334. package/_assets/{useCreditPacks-BRC1U4tj.js → useCreditPacks-vVF3Ex0A.js} +2 -2
  335. package/_assets/{useImportable-CLjzQAjW.js → useImportable-BX2HdxhB.js} +2 -2
  336. package/_assets/{useInfiniteGrid-7piUNmLX.js → useInfiniteGrid-Bf39OwzL.js} +2 -2
  337. package/_assets/useStore-CrhXQmD7.js +3 -0
  338. package/_assets/{useTheme--hF29a1F.js → useTheme-eJCE5OaO.js} +2 -2
  339. package/_assets/{useUrlFilters-B3nd3rMZ.js → useUrlFilters-NjZZWX7X.js} +2 -2
  340. package/_assets/{utils-Ck46L1YJ.js → utils-tA63y0WB.js} +2 -2
  341. package/_assets/{verify-DkJJJlPs.js → verify-BUPUcH1A.js} +2 -2
  342. package/_assets/{verify-filled-Cu34rKfG.js → verify-filled-B_M_NM6T.js} +3 -3
  343. package/_assets/{verifyHash-CZTCUKTw.js → verifyHash-Dueob_vw.js} +2 -2
  344. package/_assets/{w3m-modal-DrDM8irA.js → w3m-modal-COWN4Tmk.js} +2 -2
  345. package/_assets/{w3m-modal-_zPshomV.js → w3m-modal-D2yJcCzj.js} +2 -2
  346. package/_assets/wait-for-tx-receipt-CV2fOMXx.js +2 -0
  347. package/_assets/{wallet-C65hLKu5.js → wallet-DivYo3rT.js} +3 -3
  348. package/_assets/{wallet-placeholder-Bdb-3o1I.js → wallet-placeholder-CROmPhTi.js} +3 -3
  349. package/_assets/{walletconnect-DadsNaAD.js → walletconnect-CLYhTmzw.js} +5 -5
  350. package/_assets/{wallets-BjeswDjG.js → wallets-B2GGvPeb.js} +6 -6
  351. package/_assets/{warning-circle-DE3Cl0f1.js → warning-circle-BeIqoE5O.js} +3 -3
  352. package/_assets/{web-connector-CpsR9woq.js → web-connector-DUnHYoQL.js} +4 -4
  353. package/_assets/{writeContract-iCr-mOYV.js → writeContract-CROXe9Nv.js} +2 -2
  354. package/_assets/x-Cb8Nxlfd.js +13 -0
  355. package/_assets/{zora-sepolia-DXJM2BH2.js → zora-sepolia-BXeIud_y.js} +2 -2
  356. package/_assets/{zoraTestnet-Dl1hYhhM.js → zoraTestnet-CNt5diBi.js} +2 -2
  357. package/index.html +11 -11
  358. package/package.json +2 -2
  359. package/_assets/Activity-Dx5YgZfA.js +0 -379
  360. package/_assets/DeploymentBuilder-DnuSL2DS.js +0 -4
  361. package/_assets/LazyEmoteControls-UAunxEqD.js +0 -3
  362. package/_assets/OutfitPreview-DXBdwCv7.js +0 -7
  363. package/_assets/PhCaretLeft-pF_g8dOz.js +0 -15
  364. package/_assets/PhCaretUp-CuwUNUkq.js +0 -15
  365. package/_assets/arrow-top-X36TCUPc.js +0 -9
  366. package/_assets/async-directive-DVKyJ8n3.js +0 -10
  367. package/_assets/chevron-left-9Zv2sApZ.js +0 -9
  368. package/_assets/chevron-right-Bqz0HIJD.js +0 -9
  369. package/_assets/chevron-top-Ce8rthjR.js +0 -9
  370. package/_assets/close-Va7Wt97F.js +0 -9
  371. package/_assets/collectionPage.styles-BwH47nTx.js +0 -33
  372. package/_assets/common-CEevNNLq.js +0 -2
  373. package/_assets/controller-DAiKFcmn.js +0 -3
  374. package/_assets/cursor-bva6Zsy2.js +0 -4
  375. package/_assets/decimals-CjI729T0.js +0 -2
  376. package/_assets/decimals-DFKMgRuw.js +0 -2
  377. package/_assets/detectExtension-Y8fI3hiV.js +0 -2
  378. package/_assets/estimate-l1-fee-Db1QhZpA.js +0 -2
  379. package/_assets/eth_estimateGas-BCWJ608m.js +0 -2
  380. package/_assets/eth_getStorageAt-DRSRyYRQ.js +0 -2
  381. package/_assets/eth_getTransactionCount-CQNyiO_D.js +0 -2
  382. package/_assets/ethereum-BeXMJdxG.js +0 -2
  383. package/_assets/external-link-DP_pNrc3.js +0 -9
  384. package/_assets/extractIPFS-Hhblg2Va.js +0 -2
  385. package/_assets/fetchTokenMetadata-DVnNHGsa.js +0 -3
  386. package/_assets/get-ecosystem-wallet-info-Cw3dP56N.js +0 -2
  387. package/_assets/getInstalledModules-DaPpBqJm.js +0 -2
  388. package/_assets/getNFT-DObOI5qh.js +0 -2
  389. package/_assets/getNFT-aw7FWvXa.js +0 -3
  390. package/_assets/index--XhsrTwv.js +0 -20
  391. package/_assets/index-C3AYPqNb.js +0 -2
  392. package/_assets/index-CyM_9cSh.js +0 -54
  393. package/_assets/index-DixluN8r.js +0 -2
  394. package/_assets/ownerOf-BD0tdhgX.js +0 -2
  395. package/_assets/parseNft-T2qO4RMq.js +0 -3
  396. package/_assets/passkeys-BJJwCa6Q.js +0 -2
  397. package/_assets/send-batch-transaction-Bwj87cxn.js +0 -2
  398. package/_assets/send-gasless-transaction-CgZL6ILp.js +0 -3
  399. package/_assets/send-transaction-DOiU3DGa.js +0 -3
  400. package/_assets/totalSupply-FjJEgSjH.js +0 -2
  401. package/_assets/transactionReceipt-C6U9fhhm.js +0 -2
  402. package/_assets/transactions-DfzRvMYq.js +0 -17
  403. package/_assets/useStore-BQLtfPo5.js +0 -3
  404. package/_assets/wait-for-tx-receipt-DfCkkJ7e.js +0 -2
  405. package/_assets/x-C7WtQF7V.js +0 -13
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/in-app-wallet-calls-BuFts9zK.js","_assets/wait-for-tx-receipt-DfCkkJ7e.js","_assets/transactionReceipt-C6U9fhhm.js","_assets/prepare-contract-call-XvLouK3k.js","_assets/utils-Ck46L1YJ.js","_assets/sentry-ZNPCJOTe.js","_assets/react-p_AXR2bI.js","_assets/to-serializable-transaction-DcRGD3d3.js","_assets/index-C5D5OP2z.js","_assets/dcl-schemas-D_gYB9cE.js","_assets/ethers-_zS5i05m.js","_assets/intl-AKLEHPeO.js","_assets/index-l2QjlKjX.css","_assets/transaction-CGyimcTv.js","_assets/sleep-fBr8OToA.js","_assets/send-batch-transaction-Bwj87cxn.js","_assets/send-transaction-DOiU3DGa.js","_assets/execute-BUzmsEqD.js","_assets/detectExtension-Y8fI3hiV.js","_assets/eth_getTransactionCount-CQNyiO_D.js","_assets/index-CJMXmM7s.js","_assets/signing-B_7COMB9.js","_assets/get-bytecode-gTB1EXW2.js","_assets/send-eip712-transaction-CyyzZq8a.js","_assets/eth_sendRawTransaction-DYAsy3sS.js","_assets/sha256-koPB69GV.js","_assets/linkAccount-BptAtmTs.js","_assets/wallets-BjeswDjG.js","_assets/store-80QKZ2rN.js","_assets/hashTypedData-C1Y9ylpl.js","_assets/index-ClLvuzg0.js","_assets/events-BBzTbXov.js","_assets/index-JnO0z-Cn.js","_assets/index-M9Jt8ASc.js","_assets/index-OpYIGLSa.js","_assets/index-B2wlsGcK.js","_assets/index-DmN4kDpH.js","_assets/ethereum-BeXMJdxG.js","_assets/types-BeDU9GfL.js"])))=>i.map(i=>d[i]);
2
- import{_ as b}from"./index-C5D5OP2z.js";import{e as R}from"./ethereum-BeXMJdxG.js";import{s as M}from"./types-BeDU9GfL.js";import{f as D,e as I,a as v,w as B}from"./utils-Ck46L1YJ.js";import{p as W,g as V}from"./get-bytecode-gTB1EXW2.js";import{b as F,g as H,t as O}from"./to-serializable-transaction-DcRGD3d3.js";import{r as $,e as N}from"./execute-BUzmsEqD.js";import{g as f,a4 as _,f as k,T as z,s as g,h as y,c as j}from"./prepare-contract-call-XvLouK3k.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="db6aea3a-d715-4154-a224-b368371c348d",t._sentryDebugIdIdentifier="sentry-dbid-db6aea3a-d715-4154-a224-b368371c348d")}catch{}})();const Ae="0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c",q="0x85e23b94e7F5E9cC1fF78BCe78cfb15B81f0DF00",Y="0x4be0ddfebca9a5a4a617dee4dece99e7c862dceb",w="0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",Z="0x0000000071727De22E5E9d8BAf0edAc6f37da032",K=50000n,Ce=t=>J(t||w)==="v0.7"?Y:q,E=t=>{const e=D().bundler;return e.startsWith("localhost:")?`http://${e}/v2?chain=${t.id}`:`https://${t.id}.${e}/v2`},J=t=>{const e=f(t);if(e===w)return"v0.6";if(e===Z)return"v0.7";throw new Error("Unknown paymaster version")};function Q(t={}){return _({filters:t,signature:"event UserOperationRevertReason(bytes32 indexed userOpHash, address indexed sender, uint256 nonce, bytes revertReason)"})}function X(t={}){return _({filters:t,signature:"event PostOpRevertReason(bytes32 indexed userOpHash, address indexed sender, uint256 nonce, bytes revertReason)"})}function ee(t){const{receipt:e}=t,n={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs,status:e.status,to:e.to?e.to:null,transactionHash:e.transactionHash,transactionIndex:e.transactionIndex,type:e.type};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),{...t,actualGasCost:BigInt(t.actualGasCost),actualGasUsed:BigInt(t.actualGasUsed),nonce:BigInt(t.nonce),receipt:n,userOpHash:t.userOpHash}}const xe=()=>{const t=BigInt(Math.floor(Math.random()*4294967296)),e=BigInt(Math.floor(Math.random()*4294967296)),n=BigInt(Math.floor(Math.random()*4294967296)),r=BigInt(Math.floor(Math.random()*4294967296)),o=BigInt(Math.floor(Math.random()*4294967296)),p=BigInt(Math.floor(Math.random()*4294967296));return t<<BigInt(160)|e<<BigInt(128)|n<<BigInt(96)|r<<BigInt(64)|o<<BigInt(32)|p};function U(t){return Object.fromEntries(Object.entries(t).map(([e,n])=>[e,n==null||k(n)?n:z(n)]))}async function Ie(t){return d({...t,operation:"eth_sendUserOperation",params:[U(t.userOp),t.options.entrypointAddress??w]})}async function _e(t,e){const n=await d({...t,operation:"eth_estimateUserOperationGas",params:[U(t.userOp),t.options.entrypointAddress??w,e??{}]});return{callGasLimit:y(n.callGasLimit)+K,paymasterPostOpGasLimit:n.paymasterPostOpGasLimit!==void 0?y(n.paymasterPostOpGasLimit):void 0,paymasterVerificationGasLimit:n.paymasterVerificationGasLimit!==void 0?y(n.paymasterVerificationGasLimit):void 0,preVerificationGas:y(n.preVerificationGas),verificationGas:n.verificationGas!==void 0?y(n.verificationGas):void 0,verificationGasLimit:y(n.verificationGasLimit)}}async function Ee(t){const e=await d({...t,operation:"thirdweb_getUserOperationGasPrice",params:[]});return{maxFeePerGas:y(e.maxFeePerGas),maxPriorityFeePerGas:y(e.maxPriorityFeePerGas)}}async function Ue(t){var n,r;const e=await te(t);if(e){if(e.success===!1){const p=(r=(n=W({events:[Q(),X()],logs:e.logs})[0])==null?void 0:n.args)==null?void 0:r.revertReason;if(!p)throw new Error(`UserOp failed at txHash: ${e.receipt.transactionHash}`);const a=F({data:p});throw new Error(`UserOp failed with reason: '${a.args.join(",")}' at txHash: ${e.receipt.transactionHash}`)}return e.receipt}}async function te(t){const e=await d({operation:"eth_getUserOperationReceipt",options:t,params:[t.userOpHash]});if(e)return ee(e)}async function Pe(t){const e=await d({operation:"zk_paymasterData",options:t.options,params:[t.transaction]});return{paymaster:e.paymaster,paymasterInput:e.paymasterInput}}async function ne(t){const e=await d({...t,operation:"tw_execute",params:[t.eoaAddress,t.wrappedCalls,t.signature,t.authorization]});if(!e.queueId)throw new Error(`Error executing 7702 transaction: ${g(e)}`);return{transactionId:e.queueId}}async function ae(t){return{transactionHash:(await d({...t,operation:"tw_getTransactionHash",params:[t.transactionId]})).transactionHash}}async function Ge(t){return{transactionHash:(await d({operation:"zk_broadcastTransaction",options:t.options,params:[{...t.transaction,signedTransaction:t.signedTransaction}]})).transactionHash}}async function d(t){const{options:e,operation:n,params:r}=t,o=e.bundlerUrl??E(e.chain),a=await I(e.client)(o,{useAuthToken:!0,body:g({id:1,jsonrpc:"2.0",method:n,params:r}),headers:{"Content-Type":"application/json"},method:"POST"}),i=await a.json();if(!a.ok||i.error){let s=i.error||a.statusText;typeof s=="object"&&(s=g(s));const u=i.code||"UNKNOWN";throw new Error(`${n} error: ${s}
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/in-app-wallet-calls-Dm5qX8uR.js","_assets/wait-for-tx-receipt-CV2fOMXx.js","_assets/transactionReceipt-DAtMflrB.js","_assets/prepare-contract-call-DB8CLypS.js","_assets/utils-tA63y0WB.js","_assets/sentry-D5pxZjEX.js","_assets/react-DjYfJ2MV.js","_assets/to-serializable-transaction-fh2ZuQ0z.js","_assets/index-DmWruJR2.js","_assets/dcl-schemas-DCCxcBd_.js","_assets/ethers-DL8HYBD1.js","_assets/intl-AKLEHPeO.js","_assets/index-l2QjlKjX.css","_assets/transaction-BW1kcJaw.js","_assets/sleep-fBr8OToA.js","_assets/send-batch-transaction-Byu6-BlM.js","_assets/send-transaction-DVDWbxYg.js","_assets/execute-Cg_f99mG.js","_assets/detectExtension-BDdQYFaF.js","_assets/eth_getTransactionCount-DulleRzE.js","_assets/index-BGLfJJYt.js","_assets/signing-SvumIwtH.js","_assets/get-bytecode-BdNScxcm.js","_assets/send-eip712-transaction-CX0SS_Fj.js","_assets/eth_sendRawTransaction-DYAsy3sS.js","_assets/sha256-LzeRV9fa.js","_assets/linkAccount-DLtl2O7g.js","_assets/wallets-B2GGvPeb.js","_assets/store-80QKZ2rN.js","_assets/hashTypedData-BViBbI7d.js","_assets/index-B1Gb-3R6.js","_assets/events-A3DTBRoM.js","_assets/index-CPhvWWd4.js","_assets/index-WYDHmNZm.js","_assets/index-OpYIGLSa.js","_assets/index-DqmXHGE-.js","_assets/index-B2D616zz.js","_assets/ethereum-DHUC2DG3.js","_assets/types-BeDU9GfL.js"])))=>i.map(i=>d[i]);
2
+ import{_ as b}from"./index-DmWruJR2.js";import{e as R}from"./ethereum-DHUC2DG3.js";import{s as M}from"./types-BeDU9GfL.js";import{f as D,e as I,a as v,w as B}from"./utils-tA63y0WB.js";import{p as W,g as V}from"./get-bytecode-BdNScxcm.js";import{b as F,g as H,t as O}from"./to-serializable-transaction-fh2ZuQ0z.js";import{r as $,e as N}from"./execute-Cg_f99mG.js";import{g as f,a4 as _,f as k,T as z,s as g,h as y,c as j}from"./prepare-contract-call-DB8CLypS.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="aaad0951-39b8-4119-95ad-5eacd8470a1e",t._sentryDebugIdIdentifier="sentry-dbid-aaad0951-39b8-4119-95ad-5eacd8470a1e")}catch{}})();const Ae="0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c",q="0x85e23b94e7F5E9cC1fF78BCe78cfb15B81f0DF00",Y="0x4be0ddfebca9a5a4a617dee4dece99e7c862dceb",w="0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",Z="0x0000000071727De22E5E9d8BAf0edAc6f37da032",K=50000n,Ce=t=>J(t||w)==="v0.7"?Y:q,E=t=>{const e=D().bundler;return e.startsWith("localhost:")?`http://${e}/v2?chain=${t.id}`:`https://${t.id}.${e}/v2`},J=t=>{const e=f(t);if(e===w)return"v0.6";if(e===Z)return"v0.7";throw new Error("Unknown paymaster version")};function Q(t={}){return _({filters:t,signature:"event UserOperationRevertReason(bytes32 indexed userOpHash, address indexed sender, uint256 nonce, bytes revertReason)"})}function X(t={}){return _({filters:t,signature:"event PostOpRevertReason(bytes32 indexed userOpHash, address indexed sender, uint256 nonce, bytes revertReason)"})}function ee(t){const{receipt:e}=t,n={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs,status:e.status,to:e.to?e.to:null,transactionHash:e.transactionHash,transactionIndex:e.transactionIndex,type:e.type};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),{...t,actualGasCost:BigInt(t.actualGasCost),actualGasUsed:BigInt(t.actualGasUsed),nonce:BigInt(t.nonce),receipt:n,userOpHash:t.userOpHash}}const xe=()=>{const t=BigInt(Math.floor(Math.random()*4294967296)),e=BigInt(Math.floor(Math.random()*4294967296)),n=BigInt(Math.floor(Math.random()*4294967296)),r=BigInt(Math.floor(Math.random()*4294967296)),o=BigInt(Math.floor(Math.random()*4294967296)),p=BigInt(Math.floor(Math.random()*4294967296));return t<<BigInt(160)|e<<BigInt(128)|n<<BigInt(96)|r<<BigInt(64)|o<<BigInt(32)|p};function U(t){return Object.fromEntries(Object.entries(t).map(([e,n])=>[e,n==null||k(n)?n:z(n)]))}async function Ie(t){return d({...t,operation:"eth_sendUserOperation",params:[U(t.userOp),t.options.entrypointAddress??w]})}async function _e(t,e){const n=await d({...t,operation:"eth_estimateUserOperationGas",params:[U(t.userOp),t.options.entrypointAddress??w,e??{}]});return{callGasLimit:y(n.callGasLimit)+K,paymasterPostOpGasLimit:n.paymasterPostOpGasLimit!==void 0?y(n.paymasterPostOpGasLimit):void 0,paymasterVerificationGasLimit:n.paymasterVerificationGasLimit!==void 0?y(n.paymasterVerificationGasLimit):void 0,preVerificationGas:y(n.preVerificationGas),verificationGas:n.verificationGas!==void 0?y(n.verificationGas):void 0,verificationGasLimit:y(n.verificationGasLimit)}}async function Ee(t){const e=await d({...t,operation:"thirdweb_getUserOperationGasPrice",params:[]});return{maxFeePerGas:y(e.maxFeePerGas),maxPriorityFeePerGas:y(e.maxPriorityFeePerGas)}}async function Ue(t){var n,r;const e=await te(t);if(e){if(e.success===!1){const p=(r=(n=W({events:[Q(),X()],logs:e.logs})[0])==null?void 0:n.args)==null?void 0:r.revertReason;if(!p)throw new Error(`UserOp failed at txHash: ${e.receipt.transactionHash}`);const a=F({data:p});throw new Error(`UserOp failed with reason: '${a.args.join(",")}' at txHash: ${e.receipt.transactionHash}`)}return e.receipt}}async function te(t){const e=await d({operation:"eth_getUserOperationReceipt",options:t,params:[t.userOpHash]});if(e)return ee(e)}async function Pe(t){const e=await d({operation:"zk_paymasterData",options:t.options,params:[t.transaction]});return{paymaster:e.paymaster,paymasterInput:e.paymasterInput}}async function ne(t){const e=await d({...t,operation:"tw_execute",params:[t.eoaAddress,t.wrappedCalls,t.signature,t.authorization]});if(!e.queueId)throw new Error(`Error executing 7702 transaction: ${g(e)}`);return{transactionId:e.queueId}}async function ae(t){return{transactionHash:(await d({...t,operation:"tw_getTransactionHash",params:[t.transactionId]})).transactionHash}}async function Ge(t){return{transactionHash:(await d({operation:"zk_broadcastTransaction",options:t.options,params:[{...t.transaction,signedTransaction:t.signedTransaction}]})).transactionHash}}async function d(t){const{options:e,operation:n,params:r}=t,o=e.bundlerUrl??E(e.chain),a=await I(e.client)(o,{useAuthToken:!0,body:g({id:1,jsonrpc:"2.0",method:n,params:r}),headers:{"Content-Type":"application/json"},method:"POST"}),i=await a.json();if(!a.ok||i.error){let s=i.error||a.statusText;typeof s=="object"&&(s=g(s));const u=i.code||"UNKNOWN";throw new Error(`${n} error: ${s}
3
3
  Status: ${a.status}
4
- Code: ${u}`)}return i.result}async function ie(t){const{client:e,chain:n,bundlerUrl:r}=t,o=r??E(n),p=`delegation-contract:${o}`;return B(async()=>{var u;const i=await I(e)(o,{useAuthToken:!0,body:g({id:1,jsonrpc:"2.0",method:"tw_getDelegationContract",params:[]}),headers:{"Content-Type":"application/json"},method:"POST"});if(!i.ok)throw new Error(`Failed to fetch delegation contract: ${i.status} ${i.statusText}`);const s=await i.json();if(s.error)throw new Error(`Delegation contract RPC error: ${JSON.stringify(s.error)}`);if(!((u=s.result)!=null&&u.delegationContract))throw new Error("Invalid response: missing delegationContract in result");return s.result.delegationContract},{cacheKey:p,cacheTime:1440*60*1e3})}const se=t=>{const{client:e,adminAccount:n,sponsorGas:r}=t,o=async a=>{var A,C,x;const i=a[0];if(!i)throw new Error("No transactions provided");const s=v(i.chainId),u=H({address:n.address,chain:s,client:e,abi:ue});let c=(A=i.authorizationList)==null?void 0:A[0];const m=await ie({client:e,chain:s});if(c&&((C=c.address)==null?void 0:C.toLowerCase())!==m.toLowerCase())throw new Error(`Authorization address does not match expected delegation contract address. Expected ${m} but got ${c.address}`);if(!c&&!await oe(u,m)){let T=i.nonce?BigInt(i.nonce):BigInt(await re({client:e,address:n.address,chain:s}));T+=r?0n:1n;const h=await((x=n.signAuthorization)==null?void 0:x.call(n,{address:f(m),chainId:i.chainId,nonce:T}));if(!h)throw new Error("Failed to sign authorization");c=h}if(r){const l={calls:a.map(L=>({data:L.data??"0x",target:f(L.to??""),value:L.value??0n})),uid:$()},T=await n.signTypedData({domain:{chainId:i.chainId,name:"MinimalAccount",verifyingContract:u.address,version:"1"},message:l,primaryType:"WrappedCalls",types:{Call:[{name:"target",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"}],WrappedCalls:[{name:"calls",type:"Call[]"},{name:"uid",type:"bytes32"}]}}),h=await ne({authorization:c,eoaAddress:f(n.address),options:{chain:v(i.chainId),client:e},signature:T,wrappedCalls:l});return{transactionHash:await pe({options:{chain:v(i.chainId),client:e},transactionId:h.transactionId})}}const S=N({calls:a.map(l=>({data:l.data??"0x",target:f(l.to??""),value:l.value??0n})),contract:u,overrides:{authorizationList:c?[c]:void 0,value:a.reduce((l,T)=>l+(T.value??0n),0n)}}),G=await O({from:n.address,transaction:S});return n.sendTransaction(G)},p={address:n.address,sendBatchTransaction:async a=>o(a),sendTransaction:async a=>o([a]),signMessage:({message:a,originalMessage:i,chainId:s})=>n.signMessage({chainId:s,message:a,originalMessage:i}),signTypedData:a=>n.signTypedData(a),sendCalls:async a=>{const{inAppWalletSendCalls:i}=await b(async()=>{const{inAppWalletSendCalls:S}=await import("./in-app-wallet-calls-BuFts9zK.js");return{inAppWalletSendCalls:S}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18])),s=a.calls[0];if(!s)throw new Error("No calls to send");const u=s.client,c=s.chain||a.chain,m=await i({account:p,calls:a.calls,chain:c});return{chain:c,client:u,id:m}},getCallsStatus:async a=>{const{inAppWalletGetCallsStatus:i}=await b(async()=>{const{inAppWalletGetCallsStatus:s}=await import("./in-app-wallet-calls-BuFts9zK.js");return{inAppWalletGetCallsStatus:s}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]));return i(a)},getCallsStatusRaw:async a=>{const{inAppWalletGetCallsStatusRaw:i}=await b(async()=>{const{inAppWalletGetCallsStatusRaw:s}=await import("./in-app-wallet-calls-BuFts9zK.js");return{inAppWalletGetCallsStatusRaw:s}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]));return i(a)},getCapabilities:async a=>({[a.chainId??1]:{atomic:{status:"supported"},paymasterService:{supported:r??!1}}})};return p};async function re(t){const{client:e,address:n,chain:r}=t,o=j({chain:r,client:e});return await b(async()=>{const{eth_getTransactionCount:a}=await import("./eth_getTransactionCount-CQNyiO_D.js");return{eth_getTransactionCount:a}},__vite__mapDeps([19,3,4,5,6])).then(({eth_getTransactionCount:a})=>a(o,{address:f(n),blockTag:"pending"}))}async function oe(t,e){const n=await V(t),r=n.length>0&&n.startsWith("0xef0100"),o=`0x${n.slice(8,48)}`;return r&&o.toLowerCase()===e.toLowerCase()}async function pe(t){const e=t.timeoutMs||3e5,n=t.intervalMs||1e3,r=Date.now()+e;for(;Date.now()<r;){const o=await ae({options:t.options,transactionId:t.transactionId});if(o.transactionHash)return o.transactionHash;await new Promise(p=>setTimeout(p,n))}throw new Error(`Timeout waiting for transaction to be mined on chain ${t.options.chain.id} with transactionId: ${t.transactionId}`)}const ue=[{type:"receive",stateMutability:"payable"},{type:"function",name:"createSessionWithSig",inputs:[{name:"sessionSpec",type:"tuple",internalType:"struct SessionLib.SessionSpec",components:[{name:"signer",type:"address",internalType:"address"},{name:"isWildcard",type:"bool",internalType:"bool"},{name:"expiresAt",type:"uint256",internalType:"uint256"},{name:"callPolicies",type:"tuple[]",internalType:"struct SessionLib.CallSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]},{name:"constraints",type:"tuple[]",internalType:"struct SessionLib.Constraint[]",components:[{name:"condition",type:"uint8",internalType:"enum SessionLib.Condition"},{name:"index",type:"uint64",internalType:"uint64"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"limit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}]},{name:"transferPolicies",type:"tuple[]",internalType:"struct SessionLib.TransferSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]},{name:"uid",type:"bytes32",internalType:"bytes32"}]},{name:"signature",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"eip712Domain",inputs:[],outputs:[{name:"fields",type:"bytes1",internalType:"bytes1"},{name:"name",type:"string",internalType:"string"},{name:"version",type:"string",internalType:"string"},{name:"chainId",type:"uint256",internalType:"uint256"},{name:"verifyingContract",type:"address",internalType:"address"},{name:"salt",type:"bytes32",internalType:"bytes32"},{name:"extensions",type:"uint256[]",internalType:"uint256[]"}],stateMutability:"view"},{type:"function",name:"execute",inputs:[{name:"calls",type:"tuple[]",internalType:"struct Call[]",components:[{name:"target",type:"address",internalType:"address"},{name:"value",type:"uint256",internalType:"uint256"},{name:"data",type:"bytes",internalType:"bytes"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"executeWithSig",inputs:[{name:"wrappedCalls",type:"tuple",internalType:"struct WrappedCalls",components:[{name:"calls",type:"tuple[]",internalType:"struct Call[]",components:[{name:"target",type:"address",internalType:"address"},{name:"value",type:"uint256",internalType:"uint256"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"uid",type:"bytes32",internalType:"bytes32"}]},{name:"signature",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"function",name:"getCallPoliciesForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple[]",internalType:"struct SessionLib.CallSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]},{name:"constraints",type:"tuple[]",internalType:"struct SessionLib.Constraint[]",components:[{name:"condition",type:"uint8",internalType:"enum SessionLib.Condition"},{name:"index",type:"uint64",internalType:"uint64"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"limit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}]}],stateMutability:"view"},{type:"function",name:"getSessionExpirationForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"getSessionStateForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple",internalType:"struct SessionLib.SessionState",components:[{name:"transferValue",type:"tuple[]",internalType:"struct SessionLib.LimitState[]",components:[{name:"remaining",type:"uint256",internalType:"uint256"},{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"index",type:"uint256",internalType:"uint256"}]},{name:"callValue",type:"tuple[]",internalType:"struct SessionLib.LimitState[]",components:[{name:"remaining",type:"uint256",internalType:"uint256"},{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"index",type:"uint256",internalType:"uint256"}]},{name:"callParams",type:"tuple[]",internalType:"struct SessionLib.LimitState[]",components:[{name:"remaining",type:"uint256",internalType:"uint256"},{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"index",type:"uint256",internalType:"uint256"}]}]}],stateMutability:"view"},{type:"function",name:"getTransferPoliciesForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple[]",internalType:"struct SessionLib.TransferSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}],stateMutability:"view"},{type:"function",name:"isWildcardSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"onERC1155BatchReceived",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256[]",internalType:"uint256[]"},{name:"",type:"uint256[]",internalType:"uint256[]"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"onERC1155Received",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"onERC721Received",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"supportsInterface",inputs:[{name:"interfaceId",type:"bytes4",internalType:"bytes4"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"event",name:"Executed",inputs:[{name:"to",type:"address",indexed:!0,internalType:"address"},{name:"value",type:"uint256",indexed:!1,internalType:"uint256"},{name:"data",type:"bytes",indexed:!1,internalType:"bytes"}],anonymous:!1},{type:"event",name:"SessionCreated",inputs:[{name:"signer",type:"address",indexed:!0,internalType:"address"},{name:"sessionSpec",type:"tuple",indexed:!1,internalType:"struct SessionLib.SessionSpec",components:[{name:"signer",type:"address",internalType:"address"},{name:"isWildcard",type:"bool",internalType:"bool"},{name:"expiresAt",type:"uint256",internalType:"uint256"},{name:"callPolicies",type:"tuple[]",internalType:"struct SessionLib.CallSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]},{name:"constraints",type:"tuple[]",internalType:"struct SessionLib.Constraint[]",components:[{name:"condition",type:"uint8",internalType:"enum SessionLib.Condition"},{name:"index",type:"uint64",internalType:"uint64"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"limit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}]},{name:"transferPolicies",type:"tuple[]",internalType:"struct SessionLib.TransferSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]},{name:"uid",type:"bytes32",internalType:"bytes32"}]}],anonymous:!1},{type:"event",name:"ValueReceived",inputs:[{name:"from",type:"address",indexed:!0,internalType:"address"},{name:"value",type:"uint256",indexed:!1,internalType:"uint256"}],anonymous:!1},{type:"error",name:"AllowanceExceeded",inputs:[{name:"allowanceUsage",type:"uint256",internalType:"uint256"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint64",internalType:"uint64"}]},{type:"error",name:"CallPolicyViolated",inputs:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"}]},{type:"error",name:"CallReverted",inputs:[]},{type:"error",name:"ConditionFailed",inputs:[{name:"param",type:"bytes32",internalType:"bytes32"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"condition",type:"uint8",internalType:"uint8"}]},{type:"error",name:"InvalidDataLength",inputs:[{name:"actualLength",type:"uint256",internalType:"uint256"},{name:"expectedLength",type:"uint256",internalType:"uint256"}]},{type:"error",name:"InvalidSignature",inputs:[{name:"msgSender",type:"address",internalType:"address"},{name:"thisAddress",type:"address",internalType:"address"}]},{type:"error",name:"LifetimeUsageExceeded",inputs:[{name:"lifetimeUsage",type:"uint256",internalType:"uint256"},{name:"limit",type:"uint256",internalType:"uint256"}]},{type:"error",name:"MaxValueExceeded",inputs:[{name:"value",type:"uint256",internalType:"uint256"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"}]},{type:"error",name:"NoCallsToExecute",inputs:[]},{type:"error",name:"SessionExpired",inputs:[]},{type:"error",name:"SessionExpiresTooSoon",inputs:[]},{type:"error",name:"SessionZeroSigner",inputs:[]},{type:"error",name:"TransferPolicyViolated",inputs:[{name:"target",type:"address",internalType:"address"}]},{type:"error",name:"UIDAlreadyProcessed",inputs:[]}];function ce(t){return t.id==="inApp"||t.id==="embedded"}async function le(t,e,n){var p,a,i,s;if(((p=e==null?void 0:e.auth)==null?void 0:p.mode)!=="popup"&&((a=e==null?void 0:e.auth)==null?void 0:a.mode)!==void 0&&n.authenticateWithRedirect){const u=t.strategy;M.includes(u)&&await n.authenticateWithRedirect(u,(i=e==null?void 0:e.auth)==null?void 0:i.mode,(s=e==null?void 0:e.auth)==null?void 0:s.redirectUrl)}const o=(await n.connect(t)).user.account;return P({authAccount:o,client:t.client,createOptions:e,desiredChain:t.chain})}async function ye(t,e,n){t.authResult&&n.loginWithAuthToken&&await n.loginWithAuthToken(t.authResult);const r=await me(n);if(!r)throw new Error("Failed to authenticate user.");const o=r.account;return P({authAccount:o,client:t.client,createOptions:e,desiredChain:t.chain})}async function de(t){const{connectSmartAccount:e}=await b(async()=>{const{connectSmartAccount:n}=await import("./index-CJMXmM7s.js");return{connectSmartAccount:n}},__vite__mapDeps([20,8,6,9,5,10,11,12,13,3,4,7,17,18,21,22,23,24,25,16,26,27,28,29,30,31,32,33,34,35,36,37,38]));return e({chain:t.chain,client:t.client,personalAccount:t.authAccount},t.smartAccountOptions)}async function me(t){const e=await t.getUser();switch(e.status){case"Logged In, Wallet Initialized":return e}}async function P(t){const{createOptions:e,authAccount:n,desiredChain:r,client:o}=t;let p,a;const i=e&&"executionMode"in e?e.executionMode:void 0;if(i&&(i.mode==="EIP4337"?p=i.smartAccount:i.mode==="EIP7702"&&(a=i)),e&&"smartAccount"in e&&(e!=null&&e.smartAccount)&&(p=e.smartAccount),p){const[s,u]=await de({authAccount:n,chain:r,client:o,smartAccountOptions:p});return{account:s,adminAccount:n,chain:u}}if(a){const s=r;if(!s)throw new Error("Chain is required for EIP-7702 execution, pass a chain when connecting the inAppWallet.");return{account:se({adminAccount:n,client:o,sponsorGas:a.sponsorGas}),adminAccount:n,chain:s}}return{account:n,chain:r||R}}const Re=Object.freeze(Object.defineProperty({__proto__:null,autoConnectInAppWallet:ye,connectInAppWallet:le,isInAppWallet:ce},Symbol.toStringTag,{value:"Module"}));export{Ae as D,w as E,J as a,Ue as b,Ee as c,xe as d,_e as e,Z as f,E as g,U as h,Ce as i,Pe as j,Ge as k,Ie as l,ce as m,Re as n};
5
- //# sourceMappingURL=index-iB0lZmgZ.js.map
4
+ Code: ${u}`)}return i.result}async function ie(t){const{client:e,chain:n,bundlerUrl:r}=t,o=r??E(n),p=`delegation-contract:${o}`;return B(async()=>{var u;const i=await I(e)(o,{useAuthToken:!0,body:g({id:1,jsonrpc:"2.0",method:"tw_getDelegationContract",params:[]}),headers:{"Content-Type":"application/json"},method:"POST"});if(!i.ok)throw new Error(`Failed to fetch delegation contract: ${i.status} ${i.statusText}`);const s=await i.json();if(s.error)throw new Error(`Delegation contract RPC error: ${JSON.stringify(s.error)}`);if(!((u=s.result)!=null&&u.delegationContract))throw new Error("Invalid response: missing delegationContract in result");return s.result.delegationContract},{cacheKey:p,cacheTime:1440*60*1e3})}const se=t=>{const{client:e,adminAccount:n,sponsorGas:r}=t,o=async a=>{var A,C,x;const i=a[0];if(!i)throw new Error("No transactions provided");const s=v(i.chainId),u=H({address:n.address,chain:s,client:e,abi:ue});let c=(A=i.authorizationList)==null?void 0:A[0];const m=await ie({client:e,chain:s});if(c&&((C=c.address)==null?void 0:C.toLowerCase())!==m.toLowerCase())throw new Error(`Authorization address does not match expected delegation contract address. Expected ${m} but got ${c.address}`);if(!c&&!await oe(u,m)){let T=i.nonce?BigInt(i.nonce):BigInt(await re({client:e,address:n.address,chain:s}));T+=r?0n:1n;const h=await((x=n.signAuthorization)==null?void 0:x.call(n,{address:f(m),chainId:i.chainId,nonce:T}));if(!h)throw new Error("Failed to sign authorization");c=h}if(r){const l={calls:a.map(L=>({data:L.data??"0x",target:f(L.to??""),value:L.value??0n})),uid:$()},T=await n.signTypedData({domain:{chainId:i.chainId,name:"MinimalAccount",verifyingContract:u.address,version:"1"},message:l,primaryType:"WrappedCalls",types:{Call:[{name:"target",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"}],WrappedCalls:[{name:"calls",type:"Call[]"},{name:"uid",type:"bytes32"}]}}),h=await ne({authorization:c,eoaAddress:f(n.address),options:{chain:v(i.chainId),client:e},signature:T,wrappedCalls:l});return{transactionHash:await pe({options:{chain:v(i.chainId),client:e},transactionId:h.transactionId})}}const S=N({calls:a.map(l=>({data:l.data??"0x",target:f(l.to??""),value:l.value??0n})),contract:u,overrides:{authorizationList:c?[c]:void 0,value:a.reduce((l,T)=>l+(T.value??0n),0n)}}),G=await O({from:n.address,transaction:S});return n.sendTransaction(G)},p={address:n.address,sendBatchTransaction:async a=>o(a),sendTransaction:async a=>o([a]),signMessage:({message:a,originalMessage:i,chainId:s})=>n.signMessage({chainId:s,message:a,originalMessage:i}),signTypedData:a=>n.signTypedData(a),sendCalls:async a=>{const{inAppWalletSendCalls:i}=await b(async()=>{const{inAppWalletSendCalls:S}=await import("./in-app-wallet-calls-Dm5qX8uR.js");return{inAppWalletSendCalls:S}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18])),s=a.calls[0];if(!s)throw new Error("No calls to send");const u=s.client,c=s.chain||a.chain,m=await i({account:p,calls:a.calls,chain:c});return{chain:c,client:u,id:m}},getCallsStatus:async a=>{const{inAppWalletGetCallsStatus:i}=await b(async()=>{const{inAppWalletGetCallsStatus:s}=await import("./in-app-wallet-calls-Dm5qX8uR.js");return{inAppWalletGetCallsStatus:s}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]));return i(a)},getCallsStatusRaw:async a=>{const{inAppWalletGetCallsStatusRaw:i}=await b(async()=>{const{inAppWalletGetCallsStatusRaw:s}=await import("./in-app-wallet-calls-Dm5qX8uR.js");return{inAppWalletGetCallsStatusRaw:s}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]));return i(a)},getCapabilities:async a=>({[a.chainId??1]:{atomic:{status:"supported"},paymasterService:{supported:r??!1}}})};return p};async function re(t){const{client:e,address:n,chain:r}=t,o=j({chain:r,client:e});return await b(async()=>{const{eth_getTransactionCount:a}=await import("./eth_getTransactionCount-DulleRzE.js");return{eth_getTransactionCount:a}},__vite__mapDeps([19,3,4,5,6])).then(({eth_getTransactionCount:a})=>a(o,{address:f(n),blockTag:"pending"}))}async function oe(t,e){const n=await V(t),r=n.length>0&&n.startsWith("0xef0100"),o=`0x${n.slice(8,48)}`;return r&&o.toLowerCase()===e.toLowerCase()}async function pe(t){const e=t.timeoutMs||3e5,n=t.intervalMs||1e3,r=Date.now()+e;for(;Date.now()<r;){const o=await ae({options:t.options,transactionId:t.transactionId});if(o.transactionHash)return o.transactionHash;await new Promise(p=>setTimeout(p,n))}throw new Error(`Timeout waiting for transaction to be mined on chain ${t.options.chain.id} with transactionId: ${t.transactionId}`)}const ue=[{type:"receive",stateMutability:"payable"},{type:"function",name:"createSessionWithSig",inputs:[{name:"sessionSpec",type:"tuple",internalType:"struct SessionLib.SessionSpec",components:[{name:"signer",type:"address",internalType:"address"},{name:"isWildcard",type:"bool",internalType:"bool"},{name:"expiresAt",type:"uint256",internalType:"uint256"},{name:"callPolicies",type:"tuple[]",internalType:"struct SessionLib.CallSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]},{name:"constraints",type:"tuple[]",internalType:"struct SessionLib.Constraint[]",components:[{name:"condition",type:"uint8",internalType:"enum SessionLib.Condition"},{name:"index",type:"uint64",internalType:"uint64"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"limit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}]},{name:"transferPolicies",type:"tuple[]",internalType:"struct SessionLib.TransferSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]},{name:"uid",type:"bytes32",internalType:"bytes32"}]},{name:"signature",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"eip712Domain",inputs:[],outputs:[{name:"fields",type:"bytes1",internalType:"bytes1"},{name:"name",type:"string",internalType:"string"},{name:"version",type:"string",internalType:"string"},{name:"chainId",type:"uint256",internalType:"uint256"},{name:"verifyingContract",type:"address",internalType:"address"},{name:"salt",type:"bytes32",internalType:"bytes32"},{name:"extensions",type:"uint256[]",internalType:"uint256[]"}],stateMutability:"view"},{type:"function",name:"execute",inputs:[{name:"calls",type:"tuple[]",internalType:"struct Call[]",components:[{name:"target",type:"address",internalType:"address"},{name:"value",type:"uint256",internalType:"uint256"},{name:"data",type:"bytes",internalType:"bytes"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"executeWithSig",inputs:[{name:"wrappedCalls",type:"tuple",internalType:"struct WrappedCalls",components:[{name:"calls",type:"tuple[]",internalType:"struct Call[]",components:[{name:"target",type:"address",internalType:"address"},{name:"value",type:"uint256",internalType:"uint256"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"uid",type:"bytes32",internalType:"bytes32"}]},{name:"signature",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"function",name:"getCallPoliciesForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple[]",internalType:"struct SessionLib.CallSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]},{name:"constraints",type:"tuple[]",internalType:"struct SessionLib.Constraint[]",components:[{name:"condition",type:"uint8",internalType:"enum SessionLib.Condition"},{name:"index",type:"uint64",internalType:"uint64"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"limit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}]}],stateMutability:"view"},{type:"function",name:"getSessionExpirationForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"getSessionStateForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple",internalType:"struct SessionLib.SessionState",components:[{name:"transferValue",type:"tuple[]",internalType:"struct SessionLib.LimitState[]",components:[{name:"remaining",type:"uint256",internalType:"uint256"},{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"index",type:"uint256",internalType:"uint256"}]},{name:"callValue",type:"tuple[]",internalType:"struct SessionLib.LimitState[]",components:[{name:"remaining",type:"uint256",internalType:"uint256"},{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"index",type:"uint256",internalType:"uint256"}]},{name:"callParams",type:"tuple[]",internalType:"struct SessionLib.LimitState[]",components:[{name:"remaining",type:"uint256",internalType:"uint256"},{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"index",type:"uint256",internalType:"uint256"}]}]}],stateMutability:"view"},{type:"function",name:"getTransferPoliciesForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple[]",internalType:"struct SessionLib.TransferSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}],stateMutability:"view"},{type:"function",name:"isWildcardSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"onERC1155BatchReceived",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256[]",internalType:"uint256[]"},{name:"",type:"uint256[]",internalType:"uint256[]"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"onERC1155Received",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"onERC721Received",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"supportsInterface",inputs:[{name:"interfaceId",type:"bytes4",internalType:"bytes4"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"event",name:"Executed",inputs:[{name:"to",type:"address",indexed:!0,internalType:"address"},{name:"value",type:"uint256",indexed:!1,internalType:"uint256"},{name:"data",type:"bytes",indexed:!1,internalType:"bytes"}],anonymous:!1},{type:"event",name:"SessionCreated",inputs:[{name:"signer",type:"address",indexed:!0,internalType:"address"},{name:"sessionSpec",type:"tuple",indexed:!1,internalType:"struct SessionLib.SessionSpec",components:[{name:"signer",type:"address",internalType:"address"},{name:"isWildcard",type:"bool",internalType:"bool"},{name:"expiresAt",type:"uint256",internalType:"uint256"},{name:"callPolicies",type:"tuple[]",internalType:"struct SessionLib.CallSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]},{name:"constraints",type:"tuple[]",internalType:"struct SessionLib.Constraint[]",components:[{name:"condition",type:"uint8",internalType:"enum SessionLib.Condition"},{name:"index",type:"uint64",internalType:"uint64"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"limit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}]},{name:"transferPolicies",type:"tuple[]",internalType:"struct SessionLib.TransferSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]},{name:"uid",type:"bytes32",internalType:"bytes32"}]}],anonymous:!1},{type:"event",name:"ValueReceived",inputs:[{name:"from",type:"address",indexed:!0,internalType:"address"},{name:"value",type:"uint256",indexed:!1,internalType:"uint256"}],anonymous:!1},{type:"error",name:"AllowanceExceeded",inputs:[{name:"allowanceUsage",type:"uint256",internalType:"uint256"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint64",internalType:"uint64"}]},{type:"error",name:"CallPolicyViolated",inputs:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"}]},{type:"error",name:"CallReverted",inputs:[]},{type:"error",name:"ConditionFailed",inputs:[{name:"param",type:"bytes32",internalType:"bytes32"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"condition",type:"uint8",internalType:"uint8"}]},{type:"error",name:"InvalidDataLength",inputs:[{name:"actualLength",type:"uint256",internalType:"uint256"},{name:"expectedLength",type:"uint256",internalType:"uint256"}]},{type:"error",name:"InvalidSignature",inputs:[{name:"msgSender",type:"address",internalType:"address"},{name:"thisAddress",type:"address",internalType:"address"}]},{type:"error",name:"LifetimeUsageExceeded",inputs:[{name:"lifetimeUsage",type:"uint256",internalType:"uint256"},{name:"limit",type:"uint256",internalType:"uint256"}]},{type:"error",name:"MaxValueExceeded",inputs:[{name:"value",type:"uint256",internalType:"uint256"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"}]},{type:"error",name:"NoCallsToExecute",inputs:[]},{type:"error",name:"SessionExpired",inputs:[]},{type:"error",name:"SessionExpiresTooSoon",inputs:[]},{type:"error",name:"SessionZeroSigner",inputs:[]},{type:"error",name:"TransferPolicyViolated",inputs:[{name:"target",type:"address",internalType:"address"}]},{type:"error",name:"UIDAlreadyProcessed",inputs:[]}];function ce(t){return t.id==="inApp"||t.id==="embedded"}async function le(t,e,n){var p,a,i,s;if(((p=e==null?void 0:e.auth)==null?void 0:p.mode)!=="popup"&&((a=e==null?void 0:e.auth)==null?void 0:a.mode)!==void 0&&n.authenticateWithRedirect){const u=t.strategy;M.includes(u)&&await n.authenticateWithRedirect(u,(i=e==null?void 0:e.auth)==null?void 0:i.mode,(s=e==null?void 0:e.auth)==null?void 0:s.redirectUrl)}const o=(await n.connect(t)).user.account;return P({authAccount:o,client:t.client,createOptions:e,desiredChain:t.chain})}async function ye(t,e,n){t.authResult&&n.loginWithAuthToken&&await n.loginWithAuthToken(t.authResult);const r=await me(n);if(!r)throw new Error("Failed to authenticate user.");const o=r.account;return P({authAccount:o,client:t.client,createOptions:e,desiredChain:t.chain})}async function de(t){const{connectSmartAccount:e}=await b(async()=>{const{connectSmartAccount:n}=await import("./index-BGLfJJYt.js");return{connectSmartAccount:n}},__vite__mapDeps([20,8,6,9,5,10,11,12,13,3,4,7,17,18,21,22,23,24,25,16,26,27,28,29,30,31,32,33,34,35,36,37,38]));return e({chain:t.chain,client:t.client,personalAccount:t.authAccount},t.smartAccountOptions)}async function me(t){const e=await t.getUser();switch(e.status){case"Logged In, Wallet Initialized":return e}}async function P(t){const{createOptions:e,authAccount:n,desiredChain:r,client:o}=t;let p,a;const i=e&&"executionMode"in e?e.executionMode:void 0;if(i&&(i.mode==="EIP4337"?p=i.smartAccount:i.mode==="EIP7702"&&(a=i)),e&&"smartAccount"in e&&(e!=null&&e.smartAccount)&&(p=e.smartAccount),p){const[s,u]=await de({authAccount:n,chain:r,client:o,smartAccountOptions:p});return{account:s,adminAccount:n,chain:u}}if(a){const s=r;if(!s)throw new Error("Chain is required for EIP-7702 execution, pass a chain when connecting the inAppWallet.");return{account:se({adminAccount:n,client:o,sponsorGas:a.sponsorGas}),adminAccount:n,chain:s}}return{account:n,chain:r||R}}const Re=Object.freeze(Object.defineProperty({__proto__:null,autoConnectInAppWallet:ye,connectInAppWallet:le,isInAppWallet:ce},Symbol.toStringTag,{value:"Module"}));export{Ae as D,w as E,J as a,Ue as b,Ee as c,xe as d,_e as e,Z as f,E as g,U as h,Ce as i,Pe as j,Ge as k,Ie as l,ce as m,Re as n};
5
+ //# sourceMappingURL=index-7LXzQmHE.js.map
@@ -1,4 +1,4 @@
1
- import{i as w,b as l,a as O}from"./lit-element-wjYUA6aF.js";import{n as h,r as d}from"./class-map-HS20q_81.js";import{d as C,r as E,e as P}from"./index-Bu9dWV25.js";import{c as y,U as x}from"./index-EBmRTCns.js";import"./index-CscdOUkg.js";import"./index-CI-vfMTL.js";import{u as g,R as S,o as $,b as R,S as T}from"./W3MFrameProviderSingleton-C9lFWf3T.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new i.Error().stack;t&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[t]="0b1d88af-361f-493b-a318-743803853111",i._sentryDebugIdIdentifier="sentry-dbid-0b1d88af-361f-493b-a318-743803853111")}catch{}})();const _=C`
1
+ import{i as w,b as l,a as O}from"./lit-element-wjYUA6aF.js";import{n as h,r as d}from"./class-map-TfwPuvlt.js";import{d as C,r as E,e as P}from"./index-C6kT6Sfn.js";import{c as y,U as x}from"./index-HgN3VEFi.js";import"./index-CU2qo9Jz.js";import"./index-BJ0DfYhI.js";import{u as g,R as S,o as $,b as R,S as T}from"./W3MFrameProviderSingleton-6RT8kETO.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new i.Error().stack;t&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[t]="39b22451-27ec-4697-a408-af9161dbd498",i._sentryDebugIdIdentifier="sentry-dbid-39b22451-27ec-4697-a408-af9161dbd498")}catch{}})();const _=C`
2
2
  :host {
3
3
  position: relative;
4
4
  display: inline-block;
@@ -130,4 +130,4 @@ import{i as w,b as l,a as O}from"./lit-element-wjYUA6aF.js";import{n as h,r as d
130
130
  </wui-flex>
131
131
  </wui-flex>
132
132
  `}startOTPTimeout(){this.timeoutTimeLeft=g.getTimeToNextEmailLogin(),this.OTPTimeout=setInterval(()=>{this.timeoutTimeLeft>0?this.timeoutTimeLeft=g.getTimeToNextEmailLogin():clearInterval(this.OTPTimeout)},1e3)}async onOtpInputChange(t){var e;try{this.loading||(this.otp=t.detail,this.shouldSubmitOnOtpChange()&&(this.loading=!0,await((e=this.onOtpSubmit)==null?void 0:e.call(this,this.otp))))}catch(n){this.error=R.parseError(n),this.loading=!1}}async onResendCode(){try{if(this.onOtpResend){if(!this.loading&&!this.timeoutTimeLeft){if(this.error="",this.otp="",!$.getAuthConnector()||!this.email)throw new Error("w3m-email-otp-widget: Unable to resend email");this.loading=!0,await this.onOtpResend(this.email),this.startOTPTimeout(),T.showSuccess("Code email resent")}}else this.onStartOver&&this.onStartOver()}catch(t){T.showError(t)}finally{this.loading=!1}}getFooterLabels(t){return this.onStartOver?{title:"Something wrong?",action:`Try again ${t?`in ${this.timeoutTimeLeft}s`:""}`}:{title:"Didn't receive it?",action:`Resend ${t?`in ${this.timeoutTimeLeft}s`:"Code"}`}}shouldSubmitOnOtpChange(){return this.authConnector&&this.otp.length===b.OTP_LENGTH}};u.OTP_LENGTH=6;u.styles=D;f([d()],u.prototype,"loading",void 0);f([d()],u.prototype,"timeoutTimeLeft",void 0);f([d()],u.prototype,"error",void 0);u=b=f([y("w3m-email-otp-widget")],u);export{u as W};
133
- //# sourceMappingURL=index-C7glnlvH.js.map
133
+ //# sourceMappingURL=index-7tUSX8Sg.js.map
@@ -1,3 +1,3 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/fortmatic-yQ_C_EHG.js","_assets/react-p_AXR2bI.js","_assets/index-Bcz-M3JX.js","_assets/dcl-schemas-D_gYB9cE.js","_assets/ethers-_zS5i05m.js","_assets/sentry-ZNPCJOTe.js","_assets/index-D_5rqd0P.js","_assets/index-DDVYAmyk.js","_assets/index-BVnXaXLL.js","_assets/hooks.module-54Oj1-WJ.js","_assets/events-BBzTbXov.js","_assets/intl-AKLEHPeO.js","_assets/index-Bu9dWV25.js","_assets/index-C5D5OP2z.js","_assets/index-l2QjlKjX.css","_assets/W3MFrameProviderSingleton-C9lFWf3T.js","_assets/index-M9Jt8ASc.js","_assets/browser-ponyfill-Dhx4dXw9.js","_assets/NetworkUtil-Mlg-3jol.js","_assets/index-JnO0z-Cn.js","_assets/index-OpYIGLSa.js","_assets/index-DmN4kDpH.js","_assets/index.es-Dhqs2Ijy.js","_assets/lit-element-wjYUA6aF.js","_assets/index-C3G2NZyV.js","_assets/sendRawTransaction-Cq70uNHL.js","_assets/index-C3AYPqNb.js","_assets/store-80QKZ2rN.js","_assets/custom-BUdYW5JY.js","_assets/writeContract-iCr-mOYV.js","_assets/networks-DnqJOR0L.js","_assets/zoraTestnet-Dl1hYhhM.js","_assets/verifyHash-CZTCUKTw.js","_assets/secp256k1-BcLASQLd.js","_assets/serializeTransaction-BcI-BZX9.js","_assets/index-Cnjy-6BC.js","_assets/index-tZgKWsqK.js","_assets/index-BsEhpV73.js","_assets/index-zY4zHC5G.js","_assets/wallets-BjeswDjG.js","_assets/signing-B_7COMB9.js","_assets/prepare-contract-call-XvLouK3k.js","_assets/utils-Ck46L1YJ.js","_assets/to-serializable-transaction-DcRGD3d3.js","_assets/transaction-CGyimcTv.js","_assets/get-bytecode-gTB1EXW2.js","_assets/execute-BUzmsEqD.js","_assets/detectExtension-Y8fI3hiV.js","_assets/linkAccount-BptAtmTs.js","_assets/index-iB0lZmgZ.js","_assets/ethereum-BeXMJdxG.js","_assets/types-BeDU9GfL.js","_assets/hashTypedData-C1Y9ylpl.js","_assets/send-transaction-DOiU3DGa.js","_assets/eth_sendRawTransaction-DYAsy3sS.js","_assets/index-B2wlsGcK.js","_assets/in-app-D74sRIPO.js","_assets/passkeys-BJJwCa6Q.js","_assets/uint8-array-BMe04WIx.js","_assets/thirdweb-BE-8QLg6.js","_assets/wait-for-tx-receipt-DfCkkJ7e.js","_assets/transactionReceipt-C6U9fhhm.js","_assets/sleep-fBr8OToA.js","_assets/eth_estimateGas-BCWJ608m.js","_assets/eth_getStorageAt-DRSRyYRQ.js","_assets/eth_getTransactionCount-CQNyiO_D.js","_assets/decimals-DFKMgRuw.js","_assets/decimals-CjI729T0.js","_assets/zora-sepolia-DXJM2BH2.js","_assets/send-batch-transaction-Bwj87cxn.js","_assets/chains-BX1rzWAQ.js"])))=>i.map(i=>d[i]);
2
- var ce=Object.defineProperty;var de=(i,n,e)=>n in i?ce(i,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[n]=e;var d=(i,n,e)=>de(i,typeof n!="symbol"?n+"":n,e);import{e as h,f as l,g}from"./dcl-schemas-D_gYB9cE.js";import{g as ue}from"./react-p_AXR2bI.js";import{r as he}from"./events-BBzTbXov.js";import{_ as m}from"./index-C5D5OP2z.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new i.Error().stack;n&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[n]="8d8538db-3a5f-4b15-8623-2e460e00d7f4",i._sentryDebugIdIdentifier="sentry-dbid-8d8538db-3a5f-4b15-8623-2e460e00d7f4")}catch{}})();var C;(function(i){i.Update="Web3ReactUpdate",i.Error="Web3ReactError",i.Deactivate="Web3ReactDeactivate"})(C||(C={}));const le={clientId:"e1adce863fe287bb6cf0e3fd90bdb77f",chains:[h.ChainId.ETHEREUM_MAINNET,h.ChainId.ETHEREUM_SEPOLIA,h.ChainId.MATIC_MAINNET,h.ChainId.MATIC_AMOY]},pe={storageKey:"decentraland-connect-storage-key",[l.ProviderType.INJECTED]:{},[l.ProviderType.FORTMATIC]:{apiKeys:{[h.ChainId.ETHEREUM_MAINNET]:"pk_live_F8E24DF8DD5BCBC5",[h.ChainId.ETHEREUM_SEPOLIA]:"pk_test_5B728BEFE5C10911"},urls:A(l.ProviderType.FORTMATIC)},[l.ProviderType.NETWORK]:{urls:A(l.ProviderType.NETWORK)},[l.ProviderType.WALLET_LINK]:{appName:"Decentraland",urls:A(l.ProviderType.WALLET_LINK)},[l.ProviderType.WALLET_CONNECT_V2]:{projectId:"61570c542c2d66c659492e5b24a41522",urls:A(l.ProviderType.WALLET_CONNECT_V2),chains:[h.ChainId.ETHEREUM_MAINNET,h.ChainId.ETHEREUM_SEPOLIA,h.ChainId.MATIC_MAINNET,h.ChainId.MATIC_AMOY,h.ChainId.ARBITRUM_MAINNET,h.ChainId.OPTIMISM_MAINNET,h.ChainId.AVALANCHE_MAINNET,h.ChainId.BSC_MAINNET,h.ChainId.FANTOM_MAINNET]},[l.ProviderType.MAGIC]:{apiKey:"pk_live_212568025B158355",urls:A(l.ProviderType.MAGIC),chains:[h.ChainId.ETHEREUM_MAINNET,h.ChainId.ETHEREUM_SEPOLIA,h.ChainId.MATIC_MAINNET,h.ChainId.MATIC_AMOY,h.ChainId.OPTIMISM_MAINNET,h.ChainId.ARBITRUM_MAINNET,h.ChainId.AVALANCHE_MAINNET,h.ChainId.BSC_MAINNET,h.ChainId.FANTOM_MAINNET]},[l.ProviderType.MAGIC_TEST]:{apiKey:"pk_live_CE856A4938B36648",urls:A(l.ProviderType.MAGIC),chains:[h.ChainId.ETHEREUM_MAINNET,h.ChainId.ETHEREUM_SEPOLIA,h.ChainId.MATIC_MAINNET,h.ChainId.MATIC_AMOY,h.ChainId.OPTIMISM_MAINNET,h.ChainId.ARBITRUM_MAINNET,h.ChainId.AVALANCHE_MAINNET,h.ChainId.BSC_MAINNET,h.ChainId.FANTOM_MAINNET]},thirdweb:le};function I(){return pe}function A(i){const n={[h.ChainId.ETHEREUM_MAINNET]:"https://rpc.decentraland.org/mainnet",[h.ChainId.ETHEREUM_SEPOLIA]:"https://rpc.decentraland.org/sepolia",[h.ChainId.MATIC_MAINNET]:"https://rpc.decentraland.org/polygon",[h.ChainId.MATIC_AMOY]:"https://rpc.decentraland.org/amoy",[h.ChainId.ARBITRUM_MAINNET]:"https://rpc.decentraland.org/arbitrum",[h.ChainId.OPTIMISM_MAINNET]:"https://rpc.decentraland.org/optimism",[h.ChainId.AVALANCHE_MAINNET]:"https://rpc.decentraland.org/avalanche",[h.ChainId.BSC_MAINNET]:"https://rpc.decentraland.org/binance",[h.ChainId.FANTOM_MAINNET]:"https://rpc.decentraland.org/fantom"};let e="";switch(i){case l.ProviderType.WALLET_LINK:e="walletlink";break;case l.ProviderType.FORTMATIC:e="fortmatic";break;case l.ProviderType.MAGIC:e="magic";break;case l.ProviderType.MAGIC_TEST:e="magic";break;case l.ProviderType.WALLET_CONNECT_V2:e="walletconnect-v2";break;case l.ProviderType.THIRDWEB:e="thirdweb";break}if(e){const t=Object.keys(n);for(const r of t)n[r]+=`?project=${e}`}return n}var $=he();const je=ue($);function fe(i,n){i.prototype=Object.create(n.prototype),i.prototype.constructor=i,i.__proto__=n}var E=(function(i){fe(n,i);function n(t){var r,o=t===void 0?{}:t,s=o.supportedChainIds;return r=i.call(this)||this,r.supportedChainIds=s,r}var e=n.prototype;return e.emitUpdate=function(r){this.emit(C.Update,r)},e.emitError=function(r){this.emit(C.Error,r)},e.emitDeactivate=function(){this.emit(C.Deactivate)},n})($.EventEmitter);class z extends E{constructor(e){const t=I()[g.ProviderType.FORTMATIC],r=Object.keys(t.apiKeys).map(o=>Number(o));if(!r.includes(e))throw new Error(`Invariant error: Unsupported chainId ${e}`);super({supportedChainIds:r});d(this,"apiKey");d(this,"chainId");d(this,"rpcUrl");d(this,"fortmatic");this.apiKey=t.apiKeys[e],this.chainId=e,this.rpcUrl=t.urls[e]}async activate(){if(!this.fortmatic){const{default:t}=await m(async()=>{const{default:r}=await import("./fortmatic-yQ_C_EHG.js").then(o=>o.f);return{default:r}},__vite__mapDeps([0,1]));this.fortmatic=new t(this.apiKey,{rpcUrl:this.rpcUrl,chainId:this.chainId})}const e=await this.fortmatic.getProvider().enable().then(t=>t[0]);return{provider:this.fortmatic.getProvider(),chainId:this.chainId,account:e}}getApiKey(){return this.apiKey}async getProvider(){return this.fortmatic.getProvider()}async getChainId(){return this.chainId}async getAccount(){return this.fortmatic.getProvider().send("eth_accounts").then(e=>e[0])}deactivate(){}close(){return this.fortmatic.user.logout()}}function j(){return j=Object.assign||function(i){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t])}return i},j.apply(this,arguments)}function q(i,n){i.prototype=Object.create(n.prototype),i.prototype.constructor=i,i.__proto__=n}function D(i){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},D(i)}function L(i,n){return L=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},L(i,n)}function ve(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function O(i,n,e){return ve()?O=Reflect.construct:O=function(r,o,s){var a=[null];a.push.apply(a,o);var c=Function.bind.apply(r,a),u=new c;return s&&L(u,s.prototype),u},O.apply(null,arguments)}function we(i){return Function.toString.call(i).indexOf("[native code]")!==-1}function S(i){var n=typeof Map=="function"?new Map:void 0;return S=function(t){if(t===null||!we(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(t))return n.get(t);n.set(t,r)}function r(){return O(t,arguments,D(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),L(r,t)},S(i)}function b(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}typeof Symbol<"u"&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")));typeof Symbol<"u"&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));function P(i,n){try{var e=i()}catch(t){return n(t)}return e&&e.then?e.then(void 0,n):e}function y(i){return i.hasOwnProperty("result")?i.result:i}var k=(function(i){q(n,i);function n(){var e;return e=i.call(this)||this,e.name=e.constructor.name,e.message="No Ethereum provider was found on window.ethereum.",e}return n})(S(Error)),ge=(function(i){q(n,i);function n(){var e;return e=i.call(this)||this,e.name=e.constructor.name,e.message="The user rejected the request.",e}return n})(S(Error)),me=(function(i){q(n,i);function n(t){var r;return r=i.call(this,t)||this,r.handleNetworkChanged=r.handleNetworkChanged.bind(b(r)),r.handleChainChanged=r.handleChainChanged.bind(b(r)),r.handleAccountsChanged=r.handleAccountsChanged.bind(b(r)),r.handleClose=r.handleClose.bind(b(r)),r}var e=n.prototype;return e.handleChainChanged=function(r){this.emitUpdate({chainId:r,provider:window.ethereum})},e.handleAccountsChanged=function(r){r.length===0?this.emitDeactivate():this.emitUpdate({account:r[0]})},e.handleClose=function(r,o){this.emitDeactivate()},e.handleNetworkChanged=function(r){this.emitUpdate({chainId:r,provider:window.ethereum})},e.activate=function(){try{var r=function(f){if(o)return f;function p(){return j({provider:window.ethereum},a?{account:a}:{})}var v=(function(){if(!a)return Promise.resolve(window.ethereum.enable().then(function(T){return T&&y(T)[0]})).then(function(T){a=T})})();return v&&v.then?v.then(p):p(v)},o=!1,s=this;if(!window.ethereum)throw new k;window.ethereum.on&&(window.ethereum.on("chainChanged",s.handleChainChanged),window.ethereum.on("accountsChanged",s.handleAccountsChanged),window.ethereum.on("close",s.handleClose),window.ethereum.on("networkChanged",s.handleNetworkChanged)),window.ethereum.isMetaMask&&(window.ethereum.autoRefreshOnNetworkChange=!1);var a,c=P(function(){return Promise.resolve(window.ethereum.send("eth_requestAccounts").then(function(u){return y(u)[0]})).then(function(u){a=u})},function(u){if(u.code===4001)throw new ge});return Promise.resolve(c&&c.then?c.then(r):r(c))}catch(u){return Promise.reject(u)}},e.getProvider=function(){try{return Promise.resolve(window.ethereum)}catch(r){return Promise.reject(r)}},e.getChainId=function(){try{var r=function(){function c(){if(!o)try{o=y(window.ethereum.send({method:"net_version"}))}catch{}return o||(window.ethereum.isDapper?o=y(window.ethereum.cachedResults.net_version):o=window.ethereum.chainId||window.ethereum.netVersion||window.ethereum.networkVersion||window.ethereum._chainId),o}var u=(function(){if(!o){var f=P(function(){return Promise.resolve(window.ethereum.send("net_version").then(y)).then(function(p){o=p})},function(){});if(f&&f.then)return f.then(function(){})}})();return u&&u.then?u.then(c):c(u)};if(!window.ethereum)throw new k;var o,s=P(function(){return Promise.resolve(window.ethereum.send("eth_chainId").then(y)).then(function(a){o=a})},function(){});return Promise.resolve(s&&s.then?s.then(r):r(s))}catch(a){return Promise.reject(a)}},e.getAccount=function(){try{var r=function(){function c(){return o||(o=y(window.ethereum.send({method:"eth_accounts"}))[0]),o}var u=(function(){if(!o){var f=P(function(){return Promise.resolve(window.ethereum.enable().then(function(p){return y(p)[0]})).then(function(p){o=p})},function(){});if(f&&f.then)return f.then(function(){})}})();return u&&u.then?u.then(c):c(u)};if(!window.ethereum)throw new k;var o,s=P(function(){return Promise.resolve(window.ethereum.send("eth_accounts").then(function(a){return y(a)[0]})).then(function(a){o=a})},function(){});return Promise.resolve(s&&s.then?s.then(r):r(s))}catch(a){return Promise.reject(a)}},e.deactivate=function(){window.ethereum&&window.ethereum.removeListener&&(window.ethereum.removeListener("chainChanged",this.handleChainChanged),window.ethereum.removeListener("accountsChanged",this.handleAccountsChanged),window.ethereum.removeListener("close",this.handleClose),window.ethereum.removeListener("networkChanged",this.handleNetworkChanged))},e.isAuthorized=function(){try{return window.ethereum?Promise.resolve(P(function(){return Promise.resolve(window.ethereum.send("eth_accounts").then(function(r){return y(r).length>0}))},function(){return!1})):Promise.resolve(!1)}catch(r){return Promise.reject(r)}},n})(E);class G extends Error{constructor(){super("There was an error unlocking your wallet. Please be sure your wallet is unlocked and try again."),this.name="ErrorUnlockingWallet"}}const Ie=60*1e3;class J extends me{constructor(n){super({supportedChainIds:[n]})}async activate(){const n=new Promise((t,r)=>{setTimeout(()=>{r(new G)},Ie)}),e=super.activate();return Promise.race([e,n])}}var ye="Invariant failed";function V(i,n){throw new Error(ye)}function Y(i,n){i.prototype=Object.create(n.prototype),i.prototype.constructor=i,N(i,n)}function K(i){return K=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},K(i)}function N(i,n){return N=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},N(i,n)}function Ce(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function R(i,n,e){return Ce()?R=Reflect.construct:R=function(r,o,s){var a=[null];a.push.apply(a,o);var c=Function.bind.apply(r,a),u=new c;return s&&N(u,s.prototype),u},R.apply(null,arguments)}function Ee(i){return Function.toString.call(i).indexOf("[native code]")!==-1}function W(i){var n=typeof Map=="function"?new Map:void 0;return W=function(t){if(t===null||!Ee(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(t))return n.get(t);n.set(t,r)}function r(){return R(t,arguments,K(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),N(r,t)},W(i)}var U=(function(i){Y(n,i);function n(e,t,r){var o;return o=i.call(this)||this,o.code=t,o.data=r,o.name=o.constructor.name,o.message=e,o}return n})(W(Error)),Ae=function(n,e){var t=this,r=this;this.isMetaMask=!1,this.sendAsync=function(s,a){console.log("sendAsync",s.method,s.params),r.request(s.method,s.params).then(function(c){return a(null,{jsonrpc:"2.0",id:s.id,result:c})}).catch(function(c){return a(c,null)})},this.request=function(s,a){try{return typeof s!="string"&&(a=s.params,s=s.method),Promise.resolve(fetch(t.url,{method:"POST",body:JSON.stringify({jsonrpc:"2.0",id:1,method:s,params:a}),headers:{"Content-Type":"application/json"}})).then(function(c){if(!c.ok)throw new U(c.status+": "+c.statusText,-32e3);return Promise.resolve(c.json()).then(function(u){if("error"in u){var f,p,v;throw new U(u==null||(f=u.error)==null?void 0:f.message,u==null||(p=u.error)==null?void 0:p.code,u==null||(v=u.error)==null?void 0:v.data)}else{if("result"in u)return u.result;throw new U("Received unexpected JSON-RPC response to "+s+" request.",-32e3,u)}})})}catch(c){return Promise.reject(c)}},this.chainId=n,this.url=e;var o=new URL(e);this.host=o.host,this.path=o.pathname},Te=(function(i){Y(n,i);function n(t){var r,o=t.urls,s=t.defaultChainId;return s||Object.keys(o).length===1||V(),r=i.call(this,{supportedChainIds:Object.keys(o).map(function(a){return Number(a)})})||this,r.currentChainId=s||Number(Object.keys(o)[0]),r.providers=Object.keys(o).reduce(function(a,c){return a[Number(c)]=new Ae(Number(c),o[Number(c)]),a},{}),r}var e=n.prototype;return e.activate=function(){try{var r=this;return Promise.resolve({provider:r.providers[r.currentChainId],chainId:r.currentChainId,account:null})}catch(o){return Promise.reject(o)}},e.getProvider=function(){try{var r=this;return Promise.resolve(r.providers[r.currentChainId])}catch(o){return Promise.reject(o)}},e.getChainId=function(){try{var r=this;return Promise.resolve(r.currentChainId)}catch(o){return Promise.reject(o)}},e.getAccount=function(){return Promise.resolve(null)},e.deactivate=function(){},e.changeChainId=function(r){Object.keys(this.providers).includes(r.toString())||V(),this.currentChainId=r,this.emitUpdate({provider:this.providers[this.currentChainId],chainId:r})},n})(E);class Q extends Te{constructor(n){super({urls:I()[l.ProviderType.NETWORK].urls,defaultChainId:n})}}function x(){return x=Object.assign||function(i){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t])}return i},x.apply(this,arguments)}function Pe(i,n){i.prototype=Object.create(n.prototype),i.prototype.constructor=i,F(i,n)}function F(i,n){return F=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},F(i,n)}function B(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}var _e=1,Ne=(function(i){Pe(n,i);function n(t){var r,o=t.url,s=t.appName,a=t.appLogoUrl,c=t.darkMode,u=t.supportedChainIds;return r=i.call(this,{supportedChainIds:u})||this,r.url=o,r.appName=s,r.appLogoUrl=a,r.darkMode=c||!1,r.handleChainChanged=r.handleChainChanged.bind(B(r)),r.handleAccountsChanged=r.handleAccountsChanged.bind(B(r)),r}var e=n.prototype;return e.activate=function(){try{var r=this,o=function(){return Promise.resolve(r.provider.request({method:"eth_requestAccounts"})).then(function(c){var u=c[0];return r.provider.on("chainChanged",r.handleChainChanged),r.provider.on("accountsChanged",r.handleAccountsChanged),{provider:r.provider,account:u}})},s=(function(){if(window.ethereum&&window.ethereum.isCoinbaseWallet===!0)r.provider=window.ethereum;else{var a=(function(){if(!r.walletLink)return Promise.resolve(m(()=>import("./index-Bcz-M3JX.js").then(c=>c.i),__vite__mapDeps([2,1,3,4,5,6,7,8,9,10,11])).then(function(c){var u;return(u=c==null?void 0:c.default)!=null?u:c})).then(function(c){r.walletLink=new c(x({appName:r.appName,darkMode:r.darkMode},r.appLogoUrl?{appLogoUrl:r.appLogoUrl}:{})),r.provider=r.walletLink.makeWeb3Provider(r.url,_e)})})();if(a&&a.then)return a.then(function(){})}})();return Promise.resolve(s&&s.then?s.then(o):o(s))}catch(a){return Promise.reject(a)}},e.getProvider=function(){try{var r=this;return Promise.resolve(r.provider)}catch(o){return Promise.reject(o)}},e.getChainId=function(){try{var r=this;return Promise.resolve(r.provider.chainId)}catch(o){return Promise.reject(o)}},e.getAccount=function(){try{var r=this;return Promise.resolve(r.provider.request({method:"eth_requestAccounts"})).then(function(o){return o[0]})}catch(o){return Promise.reject(o)}},e.deactivate=function(){this.provider.removeListener("chainChanged",this.handleChainChanged),this.provider.removeListener("accountsChanged",this.handleAccountsChanged)},e.close=function(){try{var r=this;return r.provider.close(),r.emitDeactivate(),Promise.resolve()}catch(o){return Promise.reject(o)}},e.handleChainChanged=function(r){this.emitUpdate({chainId:r})},e.handleAccountsChanged=function(r){this.emitUpdate({account:r[0]})},n})(E);class X extends Ne{constructor(n){const e=I()[g.ProviderType.WALLET_LINK],t=e.urls[n];if(!t)throw new Error(`Unsupported chainId for WalletLink: ${n}. Supported chains: ${Object.keys(e.urls).join(", ")}`);super({url:t,appName:e.appName,supportedChainIds:[n]})}}class Me{}class Z extends Me{get(n){const e=window.localStorage.getItem(n);return e===null?void 0:e}set(n,e){window.localStorage.setItem(n,e)}remove(n){window.localStorage.removeItem(n)}removeRegExp(n){for(let e=localStorage.length-1;e>=0;e--){const t=localStorage.key(e);t&&n.test(t)&&localStorage.removeItem(t)}}}const be={[g.ChainId.ETHEREUM_MAINNET]:"mainnet",[g.ChainId.ETHEREUM_SEPOLIA]:"sepolia",[g.ChainId.MATIC_MAINNET]:"polygon",[g.ChainId.MATIC_AMOY]:"polygonAmoy",[g.ChainId.ARBITRUM_MAINNET]:"arbitrum",[g.ChainId.OPTIMISM_MAINNET]:"optimism",[g.ChainId.AVALANCHE_MAINNET]:"avalanche",[g.ChainId.BSC_MAINNET]:"bsc",[g.ChainId.FANTOM_MAINNET]:"fantom"},w=class w extends E{constructor(e){super({supportedChainIds:w.configuration.chains});d(this,"desiredChainId");d(this,"appKit");d(this,"provider");d(this,"accountUnsubscribe");d(this,"networkUnsubscribe");d(this,"initAppKit",async()=>{if(w.sharedAppKit)return this.appKit=w.sharedAppKit,this.appKit;const{createAppKit:e}=await m(async()=>{const{createAppKit:s}=await import("./index-Bu9dWV25.js").then(a=>a.h);return{createAppKit:s}},__vite__mapDeps([12,13,1,3,5,4,11,14,15,16,17,18,19,20,21,22,23])),{WagmiAdapter:t}=await m(async()=>{const{WagmiAdapter:s}=await import("./index-C3G2NZyV.js").then(a=>a.b);return{WagmiAdapter:s}},__vite__mapDeps([24,15,3,1,16,5,17,18,13,4,11,14,25,26,6,27,28,29])),r=await this.getNetworks(),o=new t({networks:r,projectId:w.configuration.projectId});return this.appKit=e({adapters:[o],projectId:w.configuration.projectId,networks:r,defaultNetwork:r[0],metadata:{name:"Decentraland",description:"Decentraland - Virtual World",url:typeof window<"u"?window.location.origin:"https://decentraland.org",icons:["https://decentraland.org/favicon.ico"]},themeMode:"dark",themeVariables:{"--w3m-z-index":3e3},features:{analytics:!1,email:!1,socials:!1,onramp:!1,swaps:!1},enableInjected:!0,enableEIP6963:!0}),w.sharedAppKit=this.appKit,await this.waitForSessionRestore(),this.appKit});d(this,"waitForSessionRestore",async()=>{const e=this.appKit;if(!e)return;const t=e.getAccount();if((t==null?void 0:t.status)==="connected"||(t==null?void 0:t.status)==="disconnected")return;const r=t!=null&&t.status?5e3:500;return new Promise(o=>{const s=setTimeout(()=>{a==null||a(),o()},r),a=e.subscribeAccount(c=>{((c==null?void 0:c.status)==="connected"||(c==null?void 0:c.status)==="disconnected")&&(clearTimeout(s),a==null||a(),o())},"eip155")})});d(this,"validateRestoredSession",async e=>{try{const t=e.getWalletProvider();return t?(await t.request({method:"eth_chainId"}),!0):!1}catch(t){return w.isStaleSessionError(t)?!1:(console.warn("Error validating WalletConnect session:",t),!0)}});d(this,"openModalAndWaitForConnection",async()=>{const e=this.requireAppKit(),t=()=>new Promise((r,o)=>{let s=!1;const a=(p,v)=>{s||(s=!0,clearTimeout(c),p==null||p(),v==null||v())},c=setTimeout(()=>{a(),o(new Error("Connection timeout"))},3e5),u=e.subscribeAccount(p=>{p!=null&&p.isConnected&&(p!=null&&p.address)&&(a(u,f),r(p.address))},"eip155"),f=e.subscribeState(p=>{!p.open&&!e.getAddress("eip155")&&(a(u,f),o(new Error("User closed the modal without connecting")))})});try{await e.open({view:"Connect"}),await t()}catch(r){if(w.isStaleSessionError(r)){if(console.warn("Stale session detected, retrying connection..."),w.clearStorage(),await this.initAppKit(),!this.appKit)throw new Error("AppKit reinitialization failed");await this.appKit.open({view:"Connect"}),await t()}else throw r}});d(this,"activate",async()=>{try{await this.initAppKit()}catch(c){if(console.error("Error initializing AppKit",c),w.isStaleSessionError(c))console.warn("WalletConnect session is stale, clearing storage and retrying..."),w.clearStorage(),await this.initAppKit();else throw c}const e=this.requireAppKit(),t=e.getAccount();(t==null?void 0:t.status)==="connected"&&(t==null?void 0:t.address)?await this.validateRestoredSession(e)||(console.warn("Restored WalletConnect session is stale, clearing and prompting reconnection..."),w.clearStorage(),await this.initAppKit(),await this.openModalAndWaitForConnection()):await this.openModalAndWaitForConnection();const o=e.getWalletProvider();if(!o)throw new Error("Failed to get wallet provider after connection");this.provider=o,this.accountUnsubscribe=e.subscribeAccount(c=>{c!=null&&c.address&&this.handleAccountsChanged([c.address])},"eip155"),this.networkUnsubscribe=e.subscribeCaipNetworkChange(c=>{c!=null&&c.id&&this.handleChainChanged(c.id)});const s=e.getAddress("eip155");return{chainId:e.getChainId()||this.desiredChainId,account:s||null,provider:this.provider}});d(this,"getProvider",async()=>{if(!this.provider)throw new Error("Provider is undefined");return this.provider});d(this,"getChainId",async()=>this.requireAppKit().getChainId()??this.desiredChainId);d(this,"getAccount",async()=>this.requireAppKit().getAddress("eip155")??null);d(this,"getWalletName",()=>{var e,t,r;return(r=(t=(e=this.appKit)==null?void 0:e.getWalletInfo)==null?void 0:t.call(e,"eip155"))==null?void 0:r.name});d(this,"deactivate",()=>{});d(this,"clearInstance",()=>{var t,r;const e=this.provider;if(e){this.provider=void 0;try{(t=this.accountUnsubscribe)==null||t.call(this),(r=this.networkUnsubscribe)==null||r.call(this)}catch(o){console.warn("Error unsubscribing from AppKit events:",o)}return this.accountUnsubscribe=void 0,this.networkUnsubscribe=void 0,e}});d(this,"close",async()=>{var t;if(this.clearInstance()){try{await((t=this.appKit)==null?void 0:t.disconnect())}catch(r){console.warn("Error during WalletConnect disconnect:",r)}this.appKit=void 0}});d(this,"handleAccountsChanged",e=>{this.emitUpdate({account:e[0]})});d(this,"handleChainChanged",e=>{this.emitUpdate({chainId:e})});d(this,"handleDisconnect",()=>{this.clearInstance(),this.emitDeactivate()});this.desiredChainId=e}requireAppKit(){if(!this.appKit)throw new Error("AppKit is not initialized");return this.appKit}static isStaleSessionError(e){if(e instanceof Error){const t=e.message.toLowerCase();return t.includes("no matching key")||t.includes("session topic doesn't exist")||t.includes("missing or invalid")||t.includes("expired")||t.includes("user rejected methods")||t.includes("is not configured")||t.includes("cannot read properties")||t.includes("undefined is not an object")}return!1}async getNetworks(){const e=w.configuration.chains,t=await m(()=>import("./networks-DnqJOR0L.js"),__vite__mapDeps([30,18,5,1,31,32,25,13,3,4,11,14,33,34,29])),r=e.map(s=>{const a=be[s];if(a)return t[a]}).filter(s=>s!==void 0);if(r.length===0)throw new Error("No supported networks found for WalletConnect");const o=r.find(s=>s.id===this.desiredChainId);if(o){const s=r.filter(a=>a.id!==this.desiredChainId);return[o,...s]}return[r[0],...r.slice(1)]}};d(w,"configuration",I()[g.ProviderType.WALLET_CONNECT_V2]),d(w,"clearStorage",(e=new Z)=>{e.removeRegExp(new RegExp("^wc@2:")),e.removeRegExp(new RegExp("^@appkit")),w.sharedAppKit=null}),d(w,"sharedAppKit",null);let _=w;class H extends E{constructor(e,t=!1){super({supportedChainIds:I()[g.ProviderType.MAGIC].chains});d(this,"isTest");d(this,"chainId");d(this,"account");d(this,"magic");d(this,"activate",async()=>{if(this.magic=await this.buildMagicInstance(this.chainId),!await this.magic.user.isLoggedIn())throw new Error("Magic: user isn't logged in");const t=await this.getProvider(),r=await t.request({method:"eth_accounts"});return this.account=r[0]??null,{provider:t,chainId:this.chainId,account:this.account}});d(this,"getProvider",async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");const e=await this.magic.wallet.getProvider();return{...e,isMagic:!0,request:new Proxy(e.request,{apply:async(t,r,o)=>{var s,a,c;if(((s=o[0])==null?void 0:s.method)==="wallet_switchEthereumChain")try{const u=parseInt((c=(a=o[0])==null?void 0:a.params[0])==null?void 0:c.chainId,16);return this.supportedChainIds&&!this.supportedChainIds.includes(u)?{code:2020202,message:"Unsupported Magic ChainId"}:(this.magic=await this.buildMagicInstance(u),this.emitUpdate({chainId:u}),null)}catch{return{code:2020201,message:"Error changing the Magic ChainId"}}return t.bind(e)(...o)}}),sendAsync:new Proxy(e.send,{apply:async(t,r,o)=>t.bind(e)(...o)})}});d(this,"getChainId",async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");return this.chainId});d(this,"getAccount",async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");return this.account});d(this,"getEmail",async()=>{try{if(!this.magic||!await this.magic.user.isLoggedIn())return;const t=await this.magic.user.getInfo();return(t==null?void 0:t.email)??void 0}catch{return}});d(this,"deactivate",()=>{});d(this,"buildMagicInstance",async e=>{const{Magic:t}=await m(async()=>{const{Magic:a}=await import("./index-Cnjy-6BC.js");return{Magic:a}},__vite__mapDeps([35,5,1,36])),{OAuthExtension:r}=await m(async()=>{const{OAuthExtension:a}=await import("./index-BsEhpV73.js");return{OAuthExtension:a}},__vite__mapDeps([37,36,5,1,38,7,8,4,10,3])),o=I()[this.isTest?g.ProviderType.MAGIC_TEST:g.ProviderType.MAGIC],s=o.urls[e];if(!s)throw new Error(`Unsupported chainId for Magic: ${e}. Supported chains: ${Object.keys(o.urls).join(", ")}`);return new t(o.apiKey,{extensions:[new r],network:{rpcUrl:s,chainId:e}})});this.isTest=t,this.chainId=e,this.account=null}close(){if(!this.magic)throw new Error("Magic: instance was not initialized");return this.magic.user.logout()}}class ee extends H{constructor(n){super(n,!0)}}class te extends E{constructor(e){var t;super({supportedChainIds:((t=I().thirdweb)==null?void 0:t.chains)??[h.ChainId.ETHEREUM_MAINNET,h.ChainId.ETHEREUM_SEPOLIA]});d(this,"chainId");d(this,"client");d(this,"wallet");d(this,"chain");d(this,"eip1193Provider");d(this,"activate",async()=>{const e=await this.getClient(),t=await this.getWallet();let r;try{r=await t.autoConnect({client:e})}catch{throw new Error("Thirdweb: No active session. User must authenticate first.")}if(!r)throw new Error("Thirdweb: No active session. User must authenticate first.");const o=await this.getChain(),{EIP1193:s}=await m(async()=>{const{EIP1193:u}=await import("./wallets-BjeswDjG.js").then(f=>f.Q);return{EIP1193:u}},__vite__mapDeps([39,40,41,42,5,1,13,3,4,11,14,43,44,45,46,47,48,49,50,51,27,52,53,54,19,16,20,55,21]));return this.eip1193Provider=s.toProvider({wallet:t,chain:o,client:e}),{provider:await this.getProvider(),chainId:this.chainId,account:r.address}});d(this,"getProvider",async()=>{if(!this.eip1193Provider)throw new Error("Thirdweb: wallet is not connected. Call activate() first.");const e=this.eip1193Provider;return{...e,isDapper:!1,isFortmatic:!1,isMetamask:!1,isMagic:!1,isThirdweb:!0,request:new Proxy(e.request,{apply:async(t,r,o)=>{var a,c,u,f;if(((a=o[0])==null?void 0:a.method)==="wallet_switchEthereumChain"){const p=(f=(u=(c=o[0])==null?void 0:c.params)==null?void 0:u[0])==null?void 0:f.chainId,v=parseInt(p,16);if(this.supportedChainIds&&!this.supportedChainIds.includes(v))throw new Error("Thirdweb: unsupported chain");this.chainId=v,this.chain=null,this.eip1193Provider=null;const T=await this.getClient(),ne=await this.getWallet(),ie=await this.getChain(),{EIP1193:oe}=await m(async()=>{const{EIP1193:ae}=await import("./wallets-BjeswDjG.js").then(se=>se.Q);return{EIP1193:ae}},__vite__mapDeps([39,40,41,42,5,1,13,3,4,11,14,43,44,45,46,47,48,49,50,51,27,52,53,54,19,16,20,55,21]));return this.eip1193Provider=oe.toProvider({wallet:ne,chain:ie,client:T}),this.emitUpdate({chainId:v}),null}return Reflect.apply(t,e,o)}}),sendAsync:new Proxy(e.request,{apply:async(t,r,o)=>Reflect.apply(t,e,o)})}});d(this,"getChainId",async()=>this.chainId);d(this,"getAccount",async()=>{if(!this.wallet)return null;try{const e=this.wallet.getAccount();return(e==null?void 0:e.address)??null}catch{return null}});d(this,"getEmail",async()=>{try{const e=await this.getClient(),{getUserEmail:t}=await m(async()=>{const{getUserEmail:o}=await import("./in-app-D74sRIPO.js");return{getUserEmail:o}},__vite__mapDeps([56,41,42,5,1,47,46,13,3,4,11,14,57,58]));return await t({client:e})??void 0}catch{return}});d(this,"deactivate",()=>{});this.chainId=e,this.client=null,this.wallet=null,this.chain=null,this.eip1193Provider=null}async getClient(){if(this.client)return this.client;let e;try{e=await m(()=>import("./thirdweb-BE-8QLg6.js").then(r=>r.t),__vite__mapDeps([59,42,5,1,41,40,13,3,4,11,14,43,44,45,60,61,62,63,64,65,54,66,67,68,69,53]))}catch{throw new Error("Thirdweb: thirdweb package is not installed.")}const t=I().thirdweb;return this.client=e.createThirdwebClient({clientId:t.clientId}),this.client}async getWallet(){if(this.wallet)return this.wallet;let e;try{e=await m(()=>import("./wallets-BjeswDjG.js").then(t=>t.Q),__vite__mapDeps([39,40,41,42,5,1,13,3,4,11,14,43,44,45,46,47,48,49,50,51,27,52,53,54,19,16,20,55,21]))}catch{throw new Error("Thirdweb: thirdweb package is not installed. Run: npm install thirdweb")}return this.wallet=e.inAppWallet(),this.wallet}async getChain(){if(this.chain)return this.chain;const e=await m(()=>import("./chains-BX1rzWAQ.js"),__vite__mapDeps([70,42,5,1,68,50]));return this.chain=e.defineChain(this.chainId),this.chain}async close(){this.wallet&&await this.wallet.disconnect(),this.wallet=null,this.chain=null,this.eip1193Provider=null}}class M{constructor(n){d(this,"provider");d(this,"id",0);d(this,"on",(n,e)=>this.provider.on(n,e));d(this,"emit",(n,...e)=>this.provider.emit(n,e));d(this,"removeListener",(n,e)=>this.provider.removeListener(n,e));d(this,"request",async({method:n,params:e})=>this.isModernProvider()?this.provider.request({method:n,params:e}):this.send(n,e));d(this,"sendAsync",async(n,e)=>this.hasSendAsync()?this.provider.sendAsync(n,(t,r)=>{r&&!Object.prototype.hasOwnProperty.call(r,"result")?e(t,{id:0,jsonrpc:"2.0",result:r}):e(t,r)}):this.send(n,e));this.provider=n}static adapt(n){const e=new M(n);return{...n,on:e.on,emit:e.emit,removeListener:e.removeListener,request:e.request,sendAsync:e.sendAsync,send:e.send.bind(e)}}async send(n,e){let t,r,o;const s=typeof e=="function";if(s){const a=n;r=a.params||[],t=a.method,o=e}else t=n,r=e||[],o=(a,c)=>{if(a)throw a;return c};if(this.isModernProvider()){const[a,c]=await this.provider.request({method:t,params:r}).then(f=>[null,f]).catch(f=>[f,void 0]);return o(a,s?{id:"",jsonrpc:"2.0",result:c}:c)}else{this.patchOldMobile();const[a,c]=s?await new Promise(u=>this.provider.send(n,(f,p)=>{u([f,p])})):await new Promise(u=>this.provider.send({jsonrpc:"2.0",id:++this.id,method:t,params:r},(f,p)=>{const v=p;u([(v==null?void 0:v.error)??f,(v==null?void 0:v.result)??p])}));return o(a,c)}}isModernProvider(){return"request"in this.provider&&typeof this.provider.request=="function"}hasSendAsync(){return typeof this.provider.sendAsync=="function"}patchOldMobile(){this.provider&&!this.provider.isDapper&&!this.provider.isFortmatic&&!this.provider.isMetamask&&this.hasSendAsync()&&this.provider.send!==this.provider.sendAsync&&(this.provider.send=this.provider.sendAsync.bind(this.provider))}}class re{constructor(n){d(this,"storage");d(this,"connector");d(this,"promiseOfConnection");d(this,"getWalletName",()=>{if(this.connector instanceof _)return this.connector.getWalletName()});d(this,"clearConnectionData",()=>{const{storageKey:n}=I();this.storage.remove(n),_.clearStorage(this.storage)});d(this,"handleWeb3ReactDeactivate",async()=>{try{await this.disconnect()}catch(n){console.error(n)}});this.storage=n}async connect(n,e=h.ChainId.ETHEREUM_MAINNET){if(this.connector)try{await this.disconnect()}catch(a){console.error("Error disconnecting previous connection",a)}const t=this.buildConnector(n,e);t.on(C.Deactivate,this.handleWeb3ReactDeactivate);let{provider:r,account:o}={};try{const a=await t.activate();r=a.provider,o=a.account}catch(a){throw console.error("Error activating the connector",a),a}(n===l.ProviderType.MAGIC||n===l.ProviderType.MAGIC_TEST||n===l.ProviderType.THIRDWEB)&&t.on(C.Update,({chainId:a})=>{a&&this.setConnectionData(n,a)});let s=e;if(n===l.ProviderType.INJECTED){const a=await r.request({method:"eth_chainId"});s=a?parseInt(a,16):s}return this.connector=t,this.setConnectionData(n,s),{provider:M.adapt(r),providerType:n,account:o||"",chainId:s}}isConnected(){return!!this.connector&&!!this.getConnectionData()}async tryPreviousConnection(){const n=this.getConnectionData();if(!n)throw new Error("Could not find a valid provider. Make sure to call the `connect` method first");if(this.connector){const[t,r]=await Promise.all([this.connector.getProvider(),this.connector.getAccount()]);return{provider:t,providerType:n.providerType,chainId:n.chainId,account:r||""}}let e;try{e=this.promiseOfConnection?await this.promiseOfConnection:await(this.promiseOfConnection=this.connect(n.providerType,n.chainId))}finally{this.promiseOfConnection=void 0}return{...e,chainId:this.getConnectionData().chainId}}getAvailableProviders(){const n=[l.ProviderType.FORTMATIC,l.ProviderType.WALLET_CONNECT,l.ProviderType.WALLET_LINK];return typeof window<"u"&&window.ethereum!==void 0?n.unshift(l.ProviderType.INJECTED):n.unshift(l.ProviderType.METAMASK_MOBILE),n}async disconnect(){this.connector&&(this.connector.removeAllListeners(C.Deactivate),this.connector.removeAllListeners(C.Update),this.connector.deactivate(),this.isClosableConnector()&&await this.connector.close()),this.clearConnectionData(),this.connector=void 0}async getProvider(){if(!this.connector)throw new Error("No valid connector found. Please .connect() first");return this.connector.getProvider()}async getEmail(){const n=this.connector;if(n!=null&&n.getEmail)try{return await n.getEmail()}catch{return}}async createProvider(n,e=h.ChainId.ETHEREUM_MAINNET){const r=await this.buildConnector(n,e).getProvider();return M.adapt(r)}buildConnector(n,e){switch(n){case l.ProviderType.INJECTED:return new J(e);case l.ProviderType.FORTMATIC:return new z(e);case l.ProviderType.MAGIC:return new H(e);case l.ProviderType.MAGIC_TEST:return new ee(e);case l.ProviderType.WALLET_LINK:return new X(e);case l.ProviderType.NETWORK:return new Q(e);case l.ProviderType.WALLET_CONNECT_V2:return new _(e);case l.ProviderType.THIRDWEB:return new te(e);default:throw new Error(`Invalid provider ${n}`)}}getConnectionData(){const{storageKey:n}=I(),e=this.storage.get(n);try{return e?JSON.parse(e):void 0}catch(t){console.error("Error parsing connection data",t);return}}storeConnectionData(n,e){this.setConnectionData(n,e)}setConnectionData(n,e){const{storageKey:t}=I(),r=JSON.stringify({providerType:n,chainId:e});this.storage.set(t,r)}isClosableConnector(){return this.connector&&"close"in this.connector}}const Oe=new re(new Z),De=Object.freeze(Object.defineProperty({__proto__:null,AbstractConnector:E,ConnectionManager:re,ErrorUnlockingWallet:G,FortmaticConnector:z,InjectedConnector:J,MagicConnector:H,MagicTestConnector:ee,NetworkConnector:Q,ProviderAdapter:M,ThirdwebConnector:te,WalletConnectV2Connector:_,WalletLinkConnector:X,connection:Oe,getConfiguration:I,getRpcUrls:A},Symbol.toStringTag,{value:"Module"}));export{je as N,Oe as c,$ as e,De as i};
3
- //# sourceMappingURL=index-ClLvuzg0.js.map
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/fortmatic-DZMFvRSy.js","_assets/react-DjYfJ2MV.js","_assets/index-CNrbvWPD.js","_assets/dcl-schemas-DCCxcBd_.js","_assets/ethers-DL8HYBD1.js","_assets/sentry-D5pxZjEX.js","_assets/index-B7Gu3ukM.js","_assets/index-3px6dAqb.js","_assets/index-BAXWOcsc.js","_assets/hooks.module-54Oj1-WJ.js","_assets/events-A3DTBRoM.js","_assets/intl-AKLEHPeO.js","_assets/index-C6kT6Sfn.js","_assets/index-DmWruJR2.js","_assets/index-l2QjlKjX.css","_assets/W3MFrameProviderSingleton-6RT8kETO.js","_assets/index-WYDHmNZm.js","_assets/browser-ponyfill-iYteNcNL.js","_assets/NetworkUtil-C6HCpbc0.js","_assets/index-CPhvWWd4.js","_assets/index-OpYIGLSa.js","_assets/index-B2D616zz.js","_assets/index.es-B_XjuOVV.js","_assets/lit-element-wjYUA6aF.js","_assets/index-0NORQtpG.js","_assets/sendRawTransaction-DeqJeesd.js","_assets/index-DSpipQd9.js","_assets/store-80QKZ2rN.js","_assets/custom-DZLhV8pi.js","_assets/writeContract-CROXe9Nv.js","_assets/networks-BOXvdbA_.js","_assets/zoraTestnet-CNt5diBi.js","_assets/verifyHash-Dueob_vw.js","_assets/secp256k1-DaUYZoDM.js","_assets/serializeTransaction-BAb9fRza.js","_assets/index-Dz4lLVRy.js","_assets/index-BceNINUN.js","_assets/index-BHaToJQ0.js","_assets/index-DWKIvGEP.js","_assets/wallets-B2GGvPeb.js","_assets/signing-SvumIwtH.js","_assets/prepare-contract-call-DB8CLypS.js","_assets/utils-tA63y0WB.js","_assets/to-serializable-transaction-fh2ZuQ0z.js","_assets/transaction-BW1kcJaw.js","_assets/get-bytecode-BdNScxcm.js","_assets/execute-Cg_f99mG.js","_assets/detectExtension-BDdQYFaF.js","_assets/linkAccount-DLtl2O7g.js","_assets/index-7LXzQmHE.js","_assets/ethereum-DHUC2DG3.js","_assets/types-BeDU9GfL.js","_assets/hashTypedData-BViBbI7d.js","_assets/send-transaction-DVDWbxYg.js","_assets/eth_sendRawTransaction-DYAsy3sS.js","_assets/index-DqmXHGE-.js","_assets/in-app-DEdRzocq.js","_assets/passkeys-aXr9fPLE.js","_assets/uint8-array-BMe04WIx.js","_assets/thirdweb-BCm_1-hP.js","_assets/wait-for-tx-receipt-CV2fOMXx.js","_assets/transactionReceipt-DAtMflrB.js","_assets/sleep-fBr8OToA.js","_assets/eth_estimateGas-CFBHrWQo.js","_assets/eth_getStorageAt-CjWXP0_z.js","_assets/eth_getTransactionCount-DulleRzE.js","_assets/decimals-99pVte4v.js","_assets/decimals-BzDaRYK5.js","_assets/zora-sepolia-BXeIud_y.js","_assets/send-batch-transaction-Byu6-BlM.js","_assets/chains-CK0_Sefk.js"])))=>i.map(i=>d[i]);
2
+ var ce=Object.defineProperty;var de=(i,n,e)=>n in i?ce(i,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[n]=e;var d=(i,n,e)=>de(i,typeof n!="symbol"?n+"":n,e);import{e as h,f as l,g}from"./dcl-schemas-DCCxcBd_.js";import{g as ue}from"./react-DjYfJ2MV.js";import{r as he}from"./events-A3DTBRoM.js";import{_ as m}from"./index-DmWruJR2.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new i.Error().stack;n&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[n]="85cbdf2d-3c80-4081-ab71-40dcc19d2104",i._sentryDebugIdIdentifier="sentry-dbid-85cbdf2d-3c80-4081-ab71-40dcc19d2104")}catch{}})();var C;(function(i){i.Update="Web3ReactUpdate",i.Error="Web3ReactError",i.Deactivate="Web3ReactDeactivate"})(C||(C={}));const le={clientId:"e1adce863fe287bb6cf0e3fd90bdb77f",chains:[h.ChainId.ETHEREUM_MAINNET,h.ChainId.ETHEREUM_SEPOLIA,h.ChainId.MATIC_MAINNET,h.ChainId.MATIC_AMOY]},pe={storageKey:"decentraland-connect-storage-key",[l.ProviderType.INJECTED]:{},[l.ProviderType.FORTMATIC]:{apiKeys:{[h.ChainId.ETHEREUM_MAINNET]:"pk_live_F8E24DF8DD5BCBC5",[h.ChainId.ETHEREUM_SEPOLIA]:"pk_test_5B728BEFE5C10911"},urls:A(l.ProviderType.FORTMATIC)},[l.ProviderType.NETWORK]:{urls:A(l.ProviderType.NETWORK)},[l.ProviderType.WALLET_LINK]:{appName:"Decentraland",urls:A(l.ProviderType.WALLET_LINK)},[l.ProviderType.WALLET_CONNECT_V2]:{projectId:"61570c542c2d66c659492e5b24a41522",urls:A(l.ProviderType.WALLET_CONNECT_V2),chains:[h.ChainId.ETHEREUM_MAINNET,h.ChainId.ETHEREUM_SEPOLIA,h.ChainId.MATIC_MAINNET,h.ChainId.MATIC_AMOY,h.ChainId.ARBITRUM_MAINNET,h.ChainId.OPTIMISM_MAINNET,h.ChainId.AVALANCHE_MAINNET,h.ChainId.BSC_MAINNET,h.ChainId.FANTOM_MAINNET]},[l.ProviderType.MAGIC]:{apiKey:"pk_live_212568025B158355",urls:A(l.ProviderType.MAGIC),chains:[h.ChainId.ETHEREUM_MAINNET,h.ChainId.ETHEREUM_SEPOLIA,h.ChainId.MATIC_MAINNET,h.ChainId.MATIC_AMOY,h.ChainId.OPTIMISM_MAINNET,h.ChainId.ARBITRUM_MAINNET,h.ChainId.AVALANCHE_MAINNET,h.ChainId.BSC_MAINNET,h.ChainId.FANTOM_MAINNET]},[l.ProviderType.MAGIC_TEST]:{apiKey:"pk_live_CE856A4938B36648",urls:A(l.ProviderType.MAGIC),chains:[h.ChainId.ETHEREUM_MAINNET,h.ChainId.ETHEREUM_SEPOLIA,h.ChainId.MATIC_MAINNET,h.ChainId.MATIC_AMOY,h.ChainId.OPTIMISM_MAINNET,h.ChainId.ARBITRUM_MAINNET,h.ChainId.AVALANCHE_MAINNET,h.ChainId.BSC_MAINNET,h.ChainId.FANTOM_MAINNET]},thirdweb:le};function I(){return pe}function A(i){const n={[h.ChainId.ETHEREUM_MAINNET]:"https://rpc.decentraland.org/mainnet",[h.ChainId.ETHEREUM_SEPOLIA]:"https://rpc.decentraland.org/sepolia",[h.ChainId.MATIC_MAINNET]:"https://rpc.decentraland.org/polygon",[h.ChainId.MATIC_AMOY]:"https://rpc.decentraland.org/amoy",[h.ChainId.ARBITRUM_MAINNET]:"https://rpc.decentraland.org/arbitrum",[h.ChainId.OPTIMISM_MAINNET]:"https://rpc.decentraland.org/optimism",[h.ChainId.AVALANCHE_MAINNET]:"https://rpc.decentraland.org/avalanche",[h.ChainId.BSC_MAINNET]:"https://rpc.decentraland.org/binance",[h.ChainId.FANTOM_MAINNET]:"https://rpc.decentraland.org/fantom"};let e="";switch(i){case l.ProviderType.WALLET_LINK:e="walletlink";break;case l.ProviderType.FORTMATIC:e="fortmatic";break;case l.ProviderType.MAGIC:e="magic";break;case l.ProviderType.MAGIC_TEST:e="magic";break;case l.ProviderType.WALLET_CONNECT_V2:e="walletconnect-v2";break;case l.ProviderType.THIRDWEB:e="thirdweb";break}if(e){const t=Object.keys(n);for(const r of t)n[r]+=`?project=${e}`}return n}var $=he();const je=ue($);function fe(i,n){i.prototype=Object.create(n.prototype),i.prototype.constructor=i,i.__proto__=n}var E=(function(i){fe(n,i);function n(t){var r,o=t===void 0?{}:t,s=o.supportedChainIds;return r=i.call(this)||this,r.supportedChainIds=s,r}var e=n.prototype;return e.emitUpdate=function(r){this.emit(C.Update,r)},e.emitError=function(r){this.emit(C.Error,r)},e.emitDeactivate=function(){this.emit(C.Deactivate)},n})($.EventEmitter);class z extends E{constructor(e){const t=I()[g.ProviderType.FORTMATIC],r=Object.keys(t.apiKeys).map(o=>Number(o));if(!r.includes(e))throw new Error(`Invariant error: Unsupported chainId ${e}`);super({supportedChainIds:r});d(this,"apiKey");d(this,"chainId");d(this,"rpcUrl");d(this,"fortmatic");this.apiKey=t.apiKeys[e],this.chainId=e,this.rpcUrl=t.urls[e]}async activate(){if(!this.fortmatic){const{default:t}=await m(async()=>{const{default:r}=await import("./fortmatic-DZMFvRSy.js").then(o=>o.f);return{default:r}},__vite__mapDeps([0,1]));this.fortmatic=new t(this.apiKey,{rpcUrl:this.rpcUrl,chainId:this.chainId})}const e=await this.fortmatic.getProvider().enable().then(t=>t[0]);return{provider:this.fortmatic.getProvider(),chainId:this.chainId,account:e}}getApiKey(){return this.apiKey}async getProvider(){return this.fortmatic.getProvider()}async getChainId(){return this.chainId}async getAccount(){return this.fortmatic.getProvider().send("eth_accounts").then(e=>e[0])}deactivate(){}close(){return this.fortmatic.user.logout()}}function j(){return j=Object.assign||function(i){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t])}return i},j.apply(this,arguments)}function q(i,n){i.prototype=Object.create(n.prototype),i.prototype.constructor=i,i.__proto__=n}function D(i){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},D(i)}function L(i,n){return L=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},L(i,n)}function ve(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function O(i,n,e){return ve()?O=Reflect.construct:O=function(r,o,s){var a=[null];a.push.apply(a,o);var c=Function.bind.apply(r,a),u=new c;return s&&L(u,s.prototype),u},O.apply(null,arguments)}function we(i){return Function.toString.call(i).indexOf("[native code]")!==-1}function S(i){var n=typeof Map=="function"?new Map:void 0;return S=function(t){if(t===null||!we(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(t))return n.get(t);n.set(t,r)}function r(){return O(t,arguments,D(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),L(r,t)},S(i)}function b(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}typeof Symbol<"u"&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")));typeof Symbol<"u"&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));function P(i,n){try{var e=i()}catch(t){return n(t)}return e&&e.then?e.then(void 0,n):e}function y(i){return i.hasOwnProperty("result")?i.result:i}var k=(function(i){q(n,i);function n(){var e;return e=i.call(this)||this,e.name=e.constructor.name,e.message="No Ethereum provider was found on window.ethereum.",e}return n})(S(Error)),ge=(function(i){q(n,i);function n(){var e;return e=i.call(this)||this,e.name=e.constructor.name,e.message="The user rejected the request.",e}return n})(S(Error)),me=(function(i){q(n,i);function n(t){var r;return r=i.call(this,t)||this,r.handleNetworkChanged=r.handleNetworkChanged.bind(b(r)),r.handleChainChanged=r.handleChainChanged.bind(b(r)),r.handleAccountsChanged=r.handleAccountsChanged.bind(b(r)),r.handleClose=r.handleClose.bind(b(r)),r}var e=n.prototype;return e.handleChainChanged=function(r){this.emitUpdate({chainId:r,provider:window.ethereum})},e.handleAccountsChanged=function(r){r.length===0?this.emitDeactivate():this.emitUpdate({account:r[0]})},e.handleClose=function(r,o){this.emitDeactivate()},e.handleNetworkChanged=function(r){this.emitUpdate({chainId:r,provider:window.ethereum})},e.activate=function(){try{var r=function(f){if(o)return f;function p(){return j({provider:window.ethereum},a?{account:a}:{})}var v=(function(){if(!a)return Promise.resolve(window.ethereum.enable().then(function(T){return T&&y(T)[0]})).then(function(T){a=T})})();return v&&v.then?v.then(p):p(v)},o=!1,s=this;if(!window.ethereum)throw new k;window.ethereum.on&&(window.ethereum.on("chainChanged",s.handleChainChanged),window.ethereum.on("accountsChanged",s.handleAccountsChanged),window.ethereum.on("close",s.handleClose),window.ethereum.on("networkChanged",s.handleNetworkChanged)),window.ethereum.isMetaMask&&(window.ethereum.autoRefreshOnNetworkChange=!1);var a,c=P(function(){return Promise.resolve(window.ethereum.send("eth_requestAccounts").then(function(u){return y(u)[0]})).then(function(u){a=u})},function(u){if(u.code===4001)throw new ge});return Promise.resolve(c&&c.then?c.then(r):r(c))}catch(u){return Promise.reject(u)}},e.getProvider=function(){try{return Promise.resolve(window.ethereum)}catch(r){return Promise.reject(r)}},e.getChainId=function(){try{var r=function(){function c(){if(!o)try{o=y(window.ethereum.send({method:"net_version"}))}catch{}return o||(window.ethereum.isDapper?o=y(window.ethereum.cachedResults.net_version):o=window.ethereum.chainId||window.ethereum.netVersion||window.ethereum.networkVersion||window.ethereum._chainId),o}var u=(function(){if(!o){var f=P(function(){return Promise.resolve(window.ethereum.send("net_version").then(y)).then(function(p){o=p})},function(){});if(f&&f.then)return f.then(function(){})}})();return u&&u.then?u.then(c):c(u)};if(!window.ethereum)throw new k;var o,s=P(function(){return Promise.resolve(window.ethereum.send("eth_chainId").then(y)).then(function(a){o=a})},function(){});return Promise.resolve(s&&s.then?s.then(r):r(s))}catch(a){return Promise.reject(a)}},e.getAccount=function(){try{var r=function(){function c(){return o||(o=y(window.ethereum.send({method:"eth_accounts"}))[0]),o}var u=(function(){if(!o){var f=P(function(){return Promise.resolve(window.ethereum.enable().then(function(p){return y(p)[0]})).then(function(p){o=p})},function(){});if(f&&f.then)return f.then(function(){})}})();return u&&u.then?u.then(c):c(u)};if(!window.ethereum)throw new k;var o,s=P(function(){return Promise.resolve(window.ethereum.send("eth_accounts").then(function(a){return y(a)[0]})).then(function(a){o=a})},function(){});return Promise.resolve(s&&s.then?s.then(r):r(s))}catch(a){return Promise.reject(a)}},e.deactivate=function(){window.ethereum&&window.ethereum.removeListener&&(window.ethereum.removeListener("chainChanged",this.handleChainChanged),window.ethereum.removeListener("accountsChanged",this.handleAccountsChanged),window.ethereum.removeListener("close",this.handleClose),window.ethereum.removeListener("networkChanged",this.handleNetworkChanged))},e.isAuthorized=function(){try{return window.ethereum?Promise.resolve(P(function(){return Promise.resolve(window.ethereum.send("eth_accounts").then(function(r){return y(r).length>0}))},function(){return!1})):Promise.resolve(!1)}catch(r){return Promise.reject(r)}},n})(E);class G extends Error{constructor(){super("There was an error unlocking your wallet. Please be sure your wallet is unlocked and try again."),this.name="ErrorUnlockingWallet"}}const Ie=60*1e3;class J extends me{constructor(n){super({supportedChainIds:[n]})}async activate(){const n=new Promise((t,r)=>{setTimeout(()=>{r(new G)},Ie)}),e=super.activate();return Promise.race([e,n])}}var ye="Invariant failed";function V(i,n){throw new Error(ye)}function Y(i,n){i.prototype=Object.create(n.prototype),i.prototype.constructor=i,N(i,n)}function K(i){return K=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},K(i)}function N(i,n){return N=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},N(i,n)}function Ce(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function R(i,n,e){return Ce()?R=Reflect.construct:R=function(r,o,s){var a=[null];a.push.apply(a,o);var c=Function.bind.apply(r,a),u=new c;return s&&N(u,s.prototype),u},R.apply(null,arguments)}function Ee(i){return Function.toString.call(i).indexOf("[native code]")!==-1}function W(i){var n=typeof Map=="function"?new Map:void 0;return W=function(t){if(t===null||!Ee(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(t))return n.get(t);n.set(t,r)}function r(){return R(t,arguments,K(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),N(r,t)},W(i)}var U=(function(i){Y(n,i);function n(e,t,r){var o;return o=i.call(this)||this,o.code=t,o.data=r,o.name=o.constructor.name,o.message=e,o}return n})(W(Error)),Ae=function(n,e){var t=this,r=this;this.isMetaMask=!1,this.sendAsync=function(s,a){console.log("sendAsync",s.method,s.params),r.request(s.method,s.params).then(function(c){return a(null,{jsonrpc:"2.0",id:s.id,result:c})}).catch(function(c){return a(c,null)})},this.request=function(s,a){try{return typeof s!="string"&&(a=s.params,s=s.method),Promise.resolve(fetch(t.url,{method:"POST",body:JSON.stringify({jsonrpc:"2.0",id:1,method:s,params:a}),headers:{"Content-Type":"application/json"}})).then(function(c){if(!c.ok)throw new U(c.status+": "+c.statusText,-32e3);return Promise.resolve(c.json()).then(function(u){if("error"in u){var f,p,v;throw new U(u==null||(f=u.error)==null?void 0:f.message,u==null||(p=u.error)==null?void 0:p.code,u==null||(v=u.error)==null?void 0:v.data)}else{if("result"in u)return u.result;throw new U("Received unexpected JSON-RPC response to "+s+" request.",-32e3,u)}})})}catch(c){return Promise.reject(c)}},this.chainId=n,this.url=e;var o=new URL(e);this.host=o.host,this.path=o.pathname},Te=(function(i){Y(n,i);function n(t){var r,o=t.urls,s=t.defaultChainId;return s||Object.keys(o).length===1||V(),r=i.call(this,{supportedChainIds:Object.keys(o).map(function(a){return Number(a)})})||this,r.currentChainId=s||Number(Object.keys(o)[0]),r.providers=Object.keys(o).reduce(function(a,c){return a[Number(c)]=new Ae(Number(c),o[Number(c)]),a},{}),r}var e=n.prototype;return e.activate=function(){try{var r=this;return Promise.resolve({provider:r.providers[r.currentChainId],chainId:r.currentChainId,account:null})}catch(o){return Promise.reject(o)}},e.getProvider=function(){try{var r=this;return Promise.resolve(r.providers[r.currentChainId])}catch(o){return Promise.reject(o)}},e.getChainId=function(){try{var r=this;return Promise.resolve(r.currentChainId)}catch(o){return Promise.reject(o)}},e.getAccount=function(){return Promise.resolve(null)},e.deactivate=function(){},e.changeChainId=function(r){Object.keys(this.providers).includes(r.toString())||V(),this.currentChainId=r,this.emitUpdate({provider:this.providers[this.currentChainId],chainId:r})},n})(E);class Q extends Te{constructor(n){super({urls:I()[l.ProviderType.NETWORK].urls,defaultChainId:n})}}function x(){return x=Object.assign||function(i){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t])}return i},x.apply(this,arguments)}function Pe(i,n){i.prototype=Object.create(n.prototype),i.prototype.constructor=i,F(i,n)}function F(i,n){return F=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},F(i,n)}function B(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}var _e=1,Ne=(function(i){Pe(n,i);function n(t){var r,o=t.url,s=t.appName,a=t.appLogoUrl,c=t.darkMode,u=t.supportedChainIds;return r=i.call(this,{supportedChainIds:u})||this,r.url=o,r.appName=s,r.appLogoUrl=a,r.darkMode=c||!1,r.handleChainChanged=r.handleChainChanged.bind(B(r)),r.handleAccountsChanged=r.handleAccountsChanged.bind(B(r)),r}var e=n.prototype;return e.activate=function(){try{var r=this,o=function(){return Promise.resolve(r.provider.request({method:"eth_requestAccounts"})).then(function(c){var u=c[0];return r.provider.on("chainChanged",r.handleChainChanged),r.provider.on("accountsChanged",r.handleAccountsChanged),{provider:r.provider,account:u}})},s=(function(){if(window.ethereum&&window.ethereum.isCoinbaseWallet===!0)r.provider=window.ethereum;else{var a=(function(){if(!r.walletLink)return Promise.resolve(m(()=>import("./index-CNrbvWPD.js").then(c=>c.i),__vite__mapDeps([2,1,3,4,5,6,7,8,9,10,11])).then(function(c){var u;return(u=c==null?void 0:c.default)!=null?u:c})).then(function(c){r.walletLink=new c(x({appName:r.appName,darkMode:r.darkMode},r.appLogoUrl?{appLogoUrl:r.appLogoUrl}:{})),r.provider=r.walletLink.makeWeb3Provider(r.url,_e)})})();if(a&&a.then)return a.then(function(){})}})();return Promise.resolve(s&&s.then?s.then(o):o(s))}catch(a){return Promise.reject(a)}},e.getProvider=function(){try{var r=this;return Promise.resolve(r.provider)}catch(o){return Promise.reject(o)}},e.getChainId=function(){try{var r=this;return Promise.resolve(r.provider.chainId)}catch(o){return Promise.reject(o)}},e.getAccount=function(){try{var r=this;return Promise.resolve(r.provider.request({method:"eth_requestAccounts"})).then(function(o){return o[0]})}catch(o){return Promise.reject(o)}},e.deactivate=function(){this.provider.removeListener("chainChanged",this.handleChainChanged),this.provider.removeListener("accountsChanged",this.handleAccountsChanged)},e.close=function(){try{var r=this;return r.provider.close(),r.emitDeactivate(),Promise.resolve()}catch(o){return Promise.reject(o)}},e.handleChainChanged=function(r){this.emitUpdate({chainId:r})},e.handleAccountsChanged=function(r){this.emitUpdate({account:r[0]})},n})(E);class X extends Ne{constructor(n){const e=I()[g.ProviderType.WALLET_LINK],t=e.urls[n];if(!t)throw new Error(`Unsupported chainId for WalletLink: ${n}. Supported chains: ${Object.keys(e.urls).join(", ")}`);super({url:t,appName:e.appName,supportedChainIds:[n]})}}class Me{}class Z extends Me{get(n){const e=window.localStorage.getItem(n);return e===null?void 0:e}set(n,e){window.localStorage.setItem(n,e)}remove(n){window.localStorage.removeItem(n)}removeRegExp(n){for(let e=localStorage.length-1;e>=0;e--){const t=localStorage.key(e);t&&n.test(t)&&localStorage.removeItem(t)}}}const be={[g.ChainId.ETHEREUM_MAINNET]:"mainnet",[g.ChainId.ETHEREUM_SEPOLIA]:"sepolia",[g.ChainId.MATIC_MAINNET]:"polygon",[g.ChainId.MATIC_AMOY]:"polygonAmoy",[g.ChainId.ARBITRUM_MAINNET]:"arbitrum",[g.ChainId.OPTIMISM_MAINNET]:"optimism",[g.ChainId.AVALANCHE_MAINNET]:"avalanche",[g.ChainId.BSC_MAINNET]:"bsc",[g.ChainId.FANTOM_MAINNET]:"fantom"},w=class w extends E{constructor(e){super({supportedChainIds:w.configuration.chains});d(this,"desiredChainId");d(this,"appKit");d(this,"provider");d(this,"accountUnsubscribe");d(this,"networkUnsubscribe");d(this,"initAppKit",async()=>{if(w.sharedAppKit)return this.appKit=w.sharedAppKit,this.appKit;const{createAppKit:e}=await m(async()=>{const{createAppKit:s}=await import("./index-C6kT6Sfn.js").then(a=>a.h);return{createAppKit:s}},__vite__mapDeps([12,13,1,3,5,4,11,14,15,16,17,18,19,20,21,22,23])),{WagmiAdapter:t}=await m(async()=>{const{WagmiAdapter:s}=await import("./index-0NORQtpG.js").then(a=>a.b);return{WagmiAdapter:s}},__vite__mapDeps([24,15,3,1,16,5,17,18,13,4,11,14,25,26,6,27,28,29])),r=await this.getNetworks(),o=new t({networks:r,projectId:w.configuration.projectId});return this.appKit=e({adapters:[o],projectId:w.configuration.projectId,networks:r,defaultNetwork:r[0],metadata:{name:"Decentraland",description:"Decentraland - Virtual World",url:typeof window<"u"?window.location.origin:"https://decentraland.org",icons:["https://decentraland.org/favicon.ico"]},themeMode:"dark",themeVariables:{"--w3m-z-index":3e3},features:{analytics:!1,email:!1,socials:!1,onramp:!1,swaps:!1},enableInjected:!0,enableEIP6963:!0}),w.sharedAppKit=this.appKit,await this.waitForSessionRestore(),this.appKit});d(this,"waitForSessionRestore",async()=>{const e=this.appKit;if(!e)return;const t=e.getAccount();if((t==null?void 0:t.status)==="connected"||(t==null?void 0:t.status)==="disconnected")return;const r=t!=null&&t.status?5e3:500;return new Promise(o=>{const s=setTimeout(()=>{a==null||a(),o()},r),a=e.subscribeAccount(c=>{((c==null?void 0:c.status)==="connected"||(c==null?void 0:c.status)==="disconnected")&&(clearTimeout(s),a==null||a(),o())},"eip155")})});d(this,"validateRestoredSession",async e=>{try{const t=e.getWalletProvider();return t?(await t.request({method:"eth_chainId"}),!0):!1}catch(t){return w.isStaleSessionError(t)?!1:(console.warn("Error validating WalletConnect session:",t),!0)}});d(this,"openModalAndWaitForConnection",async()=>{const e=this.requireAppKit(),t=()=>new Promise((r,o)=>{let s=!1;const a=(p,v)=>{s||(s=!0,clearTimeout(c),p==null||p(),v==null||v())},c=setTimeout(()=>{a(),o(new Error("Connection timeout"))},3e5),u=e.subscribeAccount(p=>{p!=null&&p.isConnected&&(p!=null&&p.address)&&(a(u,f),r(p.address))},"eip155"),f=e.subscribeState(p=>{!p.open&&!e.getAddress("eip155")&&(a(u,f),o(new Error("User closed the modal without connecting")))})});try{await e.open({view:"Connect"}),await t()}catch(r){if(w.isStaleSessionError(r)){if(console.warn("Stale session detected, retrying connection..."),w.clearStorage(),await this.initAppKit(),!this.appKit)throw new Error("AppKit reinitialization failed");await this.appKit.open({view:"Connect"}),await t()}else throw r}});d(this,"activate",async()=>{try{await this.initAppKit()}catch(c){if(console.error("Error initializing AppKit",c),w.isStaleSessionError(c))console.warn("WalletConnect session is stale, clearing storage and retrying..."),w.clearStorage(),await this.initAppKit();else throw c}const e=this.requireAppKit(),t=e.getAccount();(t==null?void 0:t.status)==="connected"&&(t==null?void 0:t.address)?await this.validateRestoredSession(e)||(console.warn("Restored WalletConnect session is stale, clearing and prompting reconnection..."),w.clearStorage(),await this.initAppKit(),await this.openModalAndWaitForConnection()):await this.openModalAndWaitForConnection();const o=e.getWalletProvider();if(!o)throw new Error("Failed to get wallet provider after connection");this.provider=o,this.accountUnsubscribe=e.subscribeAccount(c=>{c!=null&&c.address&&this.handleAccountsChanged([c.address])},"eip155"),this.networkUnsubscribe=e.subscribeCaipNetworkChange(c=>{c!=null&&c.id&&this.handleChainChanged(c.id)});const s=e.getAddress("eip155");return{chainId:e.getChainId()||this.desiredChainId,account:s||null,provider:this.provider}});d(this,"getProvider",async()=>{if(!this.provider)throw new Error("Provider is undefined");return this.provider});d(this,"getChainId",async()=>this.requireAppKit().getChainId()??this.desiredChainId);d(this,"getAccount",async()=>this.requireAppKit().getAddress("eip155")??null);d(this,"getWalletName",()=>{var e,t,r;return(r=(t=(e=this.appKit)==null?void 0:e.getWalletInfo)==null?void 0:t.call(e,"eip155"))==null?void 0:r.name});d(this,"deactivate",()=>{});d(this,"clearInstance",()=>{var t,r;const e=this.provider;if(e){this.provider=void 0;try{(t=this.accountUnsubscribe)==null||t.call(this),(r=this.networkUnsubscribe)==null||r.call(this)}catch(o){console.warn("Error unsubscribing from AppKit events:",o)}return this.accountUnsubscribe=void 0,this.networkUnsubscribe=void 0,e}});d(this,"close",async()=>{var t;if(this.clearInstance()){try{await((t=this.appKit)==null?void 0:t.disconnect())}catch(r){console.warn("Error during WalletConnect disconnect:",r)}this.appKit=void 0}});d(this,"handleAccountsChanged",e=>{this.emitUpdate({account:e[0]})});d(this,"handleChainChanged",e=>{this.emitUpdate({chainId:e})});d(this,"handleDisconnect",()=>{this.clearInstance(),this.emitDeactivate()});this.desiredChainId=e}requireAppKit(){if(!this.appKit)throw new Error("AppKit is not initialized");return this.appKit}static isStaleSessionError(e){if(e instanceof Error){const t=e.message.toLowerCase();return t.includes("no matching key")||t.includes("session topic doesn't exist")||t.includes("missing or invalid")||t.includes("expired")||t.includes("user rejected methods")||t.includes("is not configured")||t.includes("cannot read properties")||t.includes("undefined is not an object")}return!1}async getNetworks(){const e=w.configuration.chains,t=await m(()=>import("./networks-BOXvdbA_.js"),__vite__mapDeps([30,18,5,1,31,32,25,13,3,4,11,14,33,34,29])),r=e.map(s=>{const a=be[s];if(a)return t[a]}).filter(s=>s!==void 0);if(r.length===0)throw new Error("No supported networks found for WalletConnect");const o=r.find(s=>s.id===this.desiredChainId);if(o){const s=r.filter(a=>a.id!==this.desiredChainId);return[o,...s]}return[r[0],...r.slice(1)]}};d(w,"configuration",I()[g.ProviderType.WALLET_CONNECT_V2]),d(w,"clearStorage",(e=new Z)=>{e.removeRegExp(new RegExp("^wc@2:")),e.removeRegExp(new RegExp("^@appkit")),w.sharedAppKit=null}),d(w,"sharedAppKit",null);let _=w;class H extends E{constructor(e,t=!1){super({supportedChainIds:I()[g.ProviderType.MAGIC].chains});d(this,"isTest");d(this,"chainId");d(this,"account");d(this,"magic");d(this,"activate",async()=>{if(this.magic=await this.buildMagicInstance(this.chainId),!await this.magic.user.isLoggedIn())throw new Error("Magic: user isn't logged in");const t=await this.getProvider(),r=await t.request({method:"eth_accounts"});return this.account=r[0]??null,{provider:t,chainId:this.chainId,account:this.account}});d(this,"getProvider",async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");const e=await this.magic.wallet.getProvider();return{...e,isMagic:!0,request:new Proxy(e.request,{apply:async(t,r,o)=>{var s,a,c;if(((s=o[0])==null?void 0:s.method)==="wallet_switchEthereumChain")try{const u=parseInt((c=(a=o[0])==null?void 0:a.params[0])==null?void 0:c.chainId,16);return this.supportedChainIds&&!this.supportedChainIds.includes(u)?{code:2020202,message:"Unsupported Magic ChainId"}:(this.magic=await this.buildMagicInstance(u),this.emitUpdate({chainId:u}),null)}catch{return{code:2020201,message:"Error changing the Magic ChainId"}}return t.bind(e)(...o)}}),sendAsync:new Proxy(e.send,{apply:async(t,r,o)=>t.bind(e)(...o)})}});d(this,"getChainId",async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");return this.chainId});d(this,"getAccount",async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");return this.account});d(this,"getEmail",async()=>{try{if(!this.magic||!await this.magic.user.isLoggedIn())return;const t=await this.magic.user.getInfo();return(t==null?void 0:t.email)??void 0}catch{return}});d(this,"deactivate",()=>{});d(this,"buildMagicInstance",async e=>{const{Magic:t}=await m(async()=>{const{Magic:a}=await import("./index-Dz4lLVRy.js");return{Magic:a}},__vite__mapDeps([35,5,1,36])),{OAuthExtension:r}=await m(async()=>{const{OAuthExtension:a}=await import("./index-BHaToJQ0.js");return{OAuthExtension:a}},__vite__mapDeps([37,36,5,1,38,7,8,4,10,3])),o=I()[this.isTest?g.ProviderType.MAGIC_TEST:g.ProviderType.MAGIC],s=o.urls[e];if(!s)throw new Error(`Unsupported chainId for Magic: ${e}. Supported chains: ${Object.keys(o.urls).join(", ")}`);return new t(o.apiKey,{extensions:[new r],network:{rpcUrl:s,chainId:e}})});this.isTest=t,this.chainId=e,this.account=null}close(){if(!this.magic)throw new Error("Magic: instance was not initialized");return this.magic.user.logout()}}class ee extends H{constructor(n){super(n,!0)}}class te extends E{constructor(e){var t;super({supportedChainIds:((t=I().thirdweb)==null?void 0:t.chains)??[h.ChainId.ETHEREUM_MAINNET,h.ChainId.ETHEREUM_SEPOLIA]});d(this,"chainId");d(this,"client");d(this,"wallet");d(this,"chain");d(this,"eip1193Provider");d(this,"activate",async()=>{const e=await this.getClient(),t=await this.getWallet();let r;try{r=await t.autoConnect({client:e})}catch{throw new Error("Thirdweb: No active session. User must authenticate first.")}if(!r)throw new Error("Thirdweb: No active session. User must authenticate first.");const o=await this.getChain(),{EIP1193:s}=await m(async()=>{const{EIP1193:u}=await import("./wallets-B2GGvPeb.js").then(f=>f.Q);return{EIP1193:u}},__vite__mapDeps([39,40,41,42,5,1,13,3,4,11,14,43,44,45,46,47,48,49,50,51,27,52,53,54,19,16,20,55,21]));return this.eip1193Provider=s.toProvider({wallet:t,chain:o,client:e}),{provider:await this.getProvider(),chainId:this.chainId,account:r.address}});d(this,"getProvider",async()=>{if(!this.eip1193Provider)throw new Error("Thirdweb: wallet is not connected. Call activate() first.");const e=this.eip1193Provider;return{...e,isDapper:!1,isFortmatic:!1,isMetamask:!1,isMagic:!1,isThirdweb:!0,request:new Proxy(e.request,{apply:async(t,r,o)=>{var a,c,u,f;if(((a=o[0])==null?void 0:a.method)==="wallet_switchEthereumChain"){const p=(f=(u=(c=o[0])==null?void 0:c.params)==null?void 0:u[0])==null?void 0:f.chainId,v=parseInt(p,16);if(this.supportedChainIds&&!this.supportedChainIds.includes(v))throw new Error("Thirdweb: unsupported chain");this.chainId=v,this.chain=null,this.eip1193Provider=null;const T=await this.getClient(),ne=await this.getWallet(),ie=await this.getChain(),{EIP1193:oe}=await m(async()=>{const{EIP1193:ae}=await import("./wallets-B2GGvPeb.js").then(se=>se.Q);return{EIP1193:ae}},__vite__mapDeps([39,40,41,42,5,1,13,3,4,11,14,43,44,45,46,47,48,49,50,51,27,52,53,54,19,16,20,55,21]));return this.eip1193Provider=oe.toProvider({wallet:ne,chain:ie,client:T}),this.emitUpdate({chainId:v}),null}return Reflect.apply(t,e,o)}}),sendAsync:new Proxy(e.request,{apply:async(t,r,o)=>Reflect.apply(t,e,o)})}});d(this,"getChainId",async()=>this.chainId);d(this,"getAccount",async()=>{if(!this.wallet)return null;try{const e=this.wallet.getAccount();return(e==null?void 0:e.address)??null}catch{return null}});d(this,"getEmail",async()=>{try{const e=await this.getClient(),{getUserEmail:t}=await m(async()=>{const{getUserEmail:o}=await import("./in-app-DEdRzocq.js");return{getUserEmail:o}},__vite__mapDeps([56,41,42,5,1,47,46,13,3,4,11,14,57,58]));return await t({client:e})??void 0}catch{return}});d(this,"deactivate",()=>{});this.chainId=e,this.client=null,this.wallet=null,this.chain=null,this.eip1193Provider=null}async getClient(){if(this.client)return this.client;let e;try{e=await m(()=>import("./thirdweb-BCm_1-hP.js").then(r=>r.t),__vite__mapDeps([59,42,5,1,41,40,13,3,4,11,14,43,44,45,60,61,62,63,64,65,54,66,67,68,69,53]))}catch{throw new Error("Thirdweb: thirdweb package is not installed.")}const t=I().thirdweb;return this.client=e.createThirdwebClient({clientId:t.clientId}),this.client}async getWallet(){if(this.wallet)return this.wallet;let e;try{e=await m(()=>import("./wallets-B2GGvPeb.js").then(t=>t.Q),__vite__mapDeps([39,40,41,42,5,1,13,3,4,11,14,43,44,45,46,47,48,49,50,51,27,52,53,54,19,16,20,55,21]))}catch{throw new Error("Thirdweb: thirdweb package is not installed. Run: npm install thirdweb")}return this.wallet=e.inAppWallet(),this.wallet}async getChain(){if(this.chain)return this.chain;const e=await m(()=>import("./chains-CK0_Sefk.js"),__vite__mapDeps([70,42,5,1,68,50]));return this.chain=e.defineChain(this.chainId),this.chain}async close(){this.wallet&&await this.wallet.disconnect(),this.wallet=null,this.chain=null,this.eip1193Provider=null}}class M{constructor(n){d(this,"provider");d(this,"id",0);d(this,"on",(n,e)=>this.provider.on(n,e));d(this,"emit",(n,...e)=>this.provider.emit(n,e));d(this,"removeListener",(n,e)=>this.provider.removeListener(n,e));d(this,"request",async({method:n,params:e})=>this.isModernProvider()?this.provider.request({method:n,params:e}):this.send(n,e));d(this,"sendAsync",async(n,e)=>this.hasSendAsync()?this.provider.sendAsync(n,(t,r)=>{r&&!Object.prototype.hasOwnProperty.call(r,"result")?e(t,{id:0,jsonrpc:"2.0",result:r}):e(t,r)}):this.send(n,e));this.provider=n}static adapt(n){const e=new M(n);return{...n,on:e.on,emit:e.emit,removeListener:e.removeListener,request:e.request,sendAsync:e.sendAsync,send:e.send.bind(e)}}async send(n,e){let t,r,o;const s=typeof e=="function";if(s){const a=n;r=a.params||[],t=a.method,o=e}else t=n,r=e||[],o=(a,c)=>{if(a)throw a;return c};if(this.isModernProvider()){const[a,c]=await this.provider.request({method:t,params:r}).then(f=>[null,f]).catch(f=>[f,void 0]);return o(a,s?{id:"",jsonrpc:"2.0",result:c}:c)}else{this.patchOldMobile();const[a,c]=s?await new Promise(u=>this.provider.send(n,(f,p)=>{u([f,p])})):await new Promise(u=>this.provider.send({jsonrpc:"2.0",id:++this.id,method:t,params:r},(f,p)=>{const v=p;u([(v==null?void 0:v.error)??f,(v==null?void 0:v.result)??p])}));return o(a,c)}}isModernProvider(){return"request"in this.provider&&typeof this.provider.request=="function"}hasSendAsync(){return typeof this.provider.sendAsync=="function"}patchOldMobile(){this.provider&&!this.provider.isDapper&&!this.provider.isFortmatic&&!this.provider.isMetamask&&this.hasSendAsync()&&this.provider.send!==this.provider.sendAsync&&(this.provider.send=this.provider.sendAsync.bind(this.provider))}}class re{constructor(n){d(this,"storage");d(this,"connector");d(this,"promiseOfConnection");d(this,"getWalletName",()=>{if(this.connector instanceof _)return this.connector.getWalletName()});d(this,"clearConnectionData",()=>{const{storageKey:n}=I();this.storage.remove(n),_.clearStorage(this.storage)});d(this,"handleWeb3ReactDeactivate",async()=>{try{await this.disconnect()}catch(n){console.error(n)}});this.storage=n}async connect(n,e=h.ChainId.ETHEREUM_MAINNET){if(this.connector)try{await this.disconnect()}catch(a){console.error("Error disconnecting previous connection",a)}const t=this.buildConnector(n,e);t.on(C.Deactivate,this.handleWeb3ReactDeactivate);let{provider:r,account:o}={};try{const a=await t.activate();r=a.provider,o=a.account}catch(a){throw console.error("Error activating the connector",a),a}(n===l.ProviderType.MAGIC||n===l.ProviderType.MAGIC_TEST||n===l.ProviderType.THIRDWEB)&&t.on(C.Update,({chainId:a})=>{a&&this.setConnectionData(n,a)});let s=e;if(n===l.ProviderType.INJECTED){const a=await r.request({method:"eth_chainId"});s=a?parseInt(a,16):s}return this.connector=t,this.setConnectionData(n,s),{provider:M.adapt(r),providerType:n,account:o||"",chainId:s}}isConnected(){return!!this.connector&&!!this.getConnectionData()}async tryPreviousConnection(){const n=this.getConnectionData();if(!n)throw new Error("Could not find a valid provider. Make sure to call the `connect` method first");if(this.connector){const[t,r]=await Promise.all([this.connector.getProvider(),this.connector.getAccount()]);return{provider:t,providerType:n.providerType,chainId:n.chainId,account:r||""}}let e;try{e=this.promiseOfConnection?await this.promiseOfConnection:await(this.promiseOfConnection=this.connect(n.providerType,n.chainId))}finally{this.promiseOfConnection=void 0}return{...e,chainId:this.getConnectionData().chainId}}getAvailableProviders(){const n=[l.ProviderType.FORTMATIC,l.ProviderType.WALLET_CONNECT,l.ProviderType.WALLET_LINK];return typeof window<"u"&&window.ethereum!==void 0?n.unshift(l.ProviderType.INJECTED):n.unshift(l.ProviderType.METAMASK_MOBILE),n}async disconnect(){this.connector&&(this.connector.removeAllListeners(C.Deactivate),this.connector.removeAllListeners(C.Update),this.connector.deactivate(),this.isClosableConnector()&&await this.connector.close()),this.clearConnectionData(),this.connector=void 0}async getProvider(){if(!this.connector)throw new Error("No valid connector found. Please .connect() first");return this.connector.getProvider()}async getEmail(){const n=this.connector;if(n!=null&&n.getEmail)try{return await n.getEmail()}catch{return}}async createProvider(n,e=h.ChainId.ETHEREUM_MAINNET){const r=await this.buildConnector(n,e).getProvider();return M.adapt(r)}buildConnector(n,e){switch(n){case l.ProviderType.INJECTED:return new J(e);case l.ProviderType.FORTMATIC:return new z(e);case l.ProviderType.MAGIC:return new H(e);case l.ProviderType.MAGIC_TEST:return new ee(e);case l.ProviderType.WALLET_LINK:return new X(e);case l.ProviderType.NETWORK:return new Q(e);case l.ProviderType.WALLET_CONNECT_V2:return new _(e);case l.ProviderType.THIRDWEB:return new te(e);default:throw new Error(`Invalid provider ${n}`)}}getConnectionData(){const{storageKey:n}=I(),e=this.storage.get(n);try{return e?JSON.parse(e):void 0}catch(t){console.error("Error parsing connection data",t);return}}storeConnectionData(n,e){this.setConnectionData(n,e)}setConnectionData(n,e){const{storageKey:t}=I(),r=JSON.stringify({providerType:n,chainId:e});this.storage.set(t,r)}isClosableConnector(){return this.connector&&"close"in this.connector}}const Oe=new re(new Z),De=Object.freeze(Object.defineProperty({__proto__:null,AbstractConnector:E,ConnectionManager:re,ErrorUnlockingWallet:G,FortmaticConnector:z,InjectedConnector:J,MagicConnector:H,MagicTestConnector:ee,NetworkConnector:Q,ProviderAdapter:M,ThirdwebConnector:te,WalletConnectV2Connector:_,WalletLinkConnector:X,connection:Oe,getConfiguration:I,getRpcUrls:A},Symbol.toStringTag,{value:"Module"}));export{je as N,Oe as c,$ as e,De as i};
3
+ //# sourceMappingURL=index-B1Gb-3R6.js.map
@@ -1,4 +1,4 @@
1
- import{d as j}from"./index-JnO0z-Cn.js";import"./react-p_AXR2bI.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="c6ab9c0a-75c1-4c89-835b-d663130576b4",e._sentryDebugIdIdentifier="sentry-dbid-c6ab9c0a-75c1-4c89-835b-d663130576b4")}catch{}})();/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */function P(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function V(e,r){return Array.isArray(r)?r.length===0?!0:e?r.every(n=>typeof n=="string"):r.every(n=>Number.isSafeInteger(n)):!1}function B(e,r){if(typeof r!="string")throw new Error(`${e}: string expected`);return!0}function I(e){if(!Number.isSafeInteger(e))throw new Error(`invalid integer: ${e}`)}function v(e){if(!Array.isArray(e))throw new Error("array expected")}function S(e,r){if(!V(!0,r))throw new Error(`${e}: array of strings expected`)}function K(e,r){if(!V(!1,r))throw new Error(`${e}: array of numbers expected`)}function J(...e){const r=l=>l,n=(l,c)=>i=>l(c(i)),h=e.map(l=>l.encode).reduceRight(n,r),d=e.map(l=>l.decode).reduce(n,r);return{encode:h,decode:d}}function Q(e){const r=typeof e=="string"?e.split(""):e,n=r.length;S("alphabet",r);const h=new Map(r.map((d,l)=>[d,l]));return{encode:d=>(v(d),d.map(l=>{if(!Number.isSafeInteger(l)||l<0||l>=n)throw new Error(`alphabet.encode: digit index outside alphabet "${l}". Allowed: ${e}`);return r[l]})),decode:d=>(v(d),d.map(l=>{B("alphabet.decode",l);const c=h.get(l);if(c===void 0)throw new Error(`Unknown letter: "${l}". Allowed: ${e}`);return c}))}}function W(e=""){return B("join",e),{encode:r=>(S("join.decode",r),r.join(e)),decode:r=>(B("join.decode",r),r.split(e))}}function fe(e,r="="){return I(e),B("padding",r),{encode(n){for(S("padding.encode",n);n.length*e%8;)n.push(r);return n},decode(n){S("padding.decode",n);let h=n.length;if(h*e%8)throw new Error("padding: invalid, string should have whole number of bytes");for(;h>0&&n[h-1]===r;h--)if((h-1)*e%8===0)throw new Error("padding: invalid, string has too much padding");return n.slice(0,h)}}}function G(e,r,n){if(r<2)throw new Error(`convertRadix: invalid from=${r}, base cannot be less than 2`);if(n<2)throw new Error(`convertRadix: invalid to=${n}, base cannot be less than 2`);if(v(e),!e.length)return[];let h=0;const d=[],l=Array.from(e,i=>{if(I(i),i<0||i>=r)throw new Error(`invalid integer: ${i}`);return i}),c=l.length;for(;;){let i=0,a=!0;for(let w=h;w<c;w++){const p=l[w],x=r*i,A=x+p;if(!Number.isSafeInteger(A)||x/r!==i||A-p!==x)throw new Error("convertRadix: carry overflow");const m=A/n;i=A%n;const s=Math.floor(m);if(l[w]=s,!Number.isSafeInteger(s)||s*n+i!==A)throw new Error("convertRadix: carry overflow");if(a)s?a=!1:h=w;else continue}if(d.push(i),a)break}for(let i=0;i<e.length-1&&e[i]===0;i++)d.push(0);return d.reverse()}const X=(e,r)=>r===0?e:X(r,e%r),$=(e,r)=>e+(r-X(e,r)),R=(()=>{let e=[];for(let r=0;r<40;r++)e.push(2**r);return e})();function F(e,r,n,h){if(v(e),r<=0||r>32)throw new Error(`convertRadix2: wrong from=${r}`);if(n<=0||n>32)throw new Error(`convertRadix2: wrong to=${n}`);if($(r,n)>32)throw new Error(`convertRadix2: carry overflow from=${r} to=${n} carryBits=${$(r,n)}`);let d=0,l=0;const c=R[r],i=R[n]-1,a=[];for(const w of e){if(I(w),w>=c)throw new Error(`convertRadix2: invalid data word=${w} from=${r}`);if(d=d<<r|w,l+r>32)throw new Error(`convertRadix2: carry overflow pos=${l} from=${r}`);for(l+=r;l>=n;l-=n)a.push((d>>l-n&i)>>>0);const p=R[l];if(p===void 0)throw new Error("invalid carry");d&=p-1}if(d=d<<n-l&i,!h&&l>=r)throw new Error("Excess padding");if(!h&&d>0)throw new Error(`Non-zero padding: ${d}`);return h&&l>0&&a.push(d>>>0),a}function ae(e){I(e);const r=2**8;return{encode:n=>{if(!P(n))throw new Error("radix.encode input should be Uint8Array");return G(Array.from(n),r,e)},decode:n=>(K("radix.decode",n),Uint8Array.from(G(n,e,r)))}}function se(e,r=!1){if(I(e),e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if($(8,e)>32||$(e,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!P(n))throw new Error("radix2.encode input should be Uint8Array");return F(Array.from(n),8,e,!r)},decode:n=>(K("radix2.decode",n),Uint8Array.from(F(n,e,8,r)))}}const we=J(se(5),Q("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),fe(5),W("")),le=e=>J(ae(58),Q(e),W("")),ge=le("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");function M(e){return globalThis.Buffer!=null?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function Y(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?M(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}function pe(e,r){r||(r=e.reduce((d,l)=>d+l.length,0));const n=Y(r);let h=0;for(const d of e)n.set(d,h),h+=d.length;return M(n)}function Z(e,r,n,h){return{name:e,prefix:r,encoder:{name:e,prefix:r,encode:n},decoder:{decode:h}}}const q=Z("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),T=Z("ascii","a",e=>{let r="a";for(let n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return r},e=>{e=e.substring(1);const r=Y(e.length);for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r}),ee={utf8:q,"utf-8":q,hex:j.base16,latin1:T,ascii:T,binary:T,...j};function ye(e,r="utf8"){const n=ee[r];if(!n)throw new Error(`Unsupported encoding "${r}"`);return(r==="utf8"||r==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?M(globalThis.Buffer.from(e,"utf-8")):n.decoder.decode(`${n.prefix}${e}`)}function Ae(e,r="utf8"){const n=ee[r];if(!n)throw new Error(`Unsupported encoding "${r}"`);return(r==="utf8"||r==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):n.encoder.encode(e).substring(1)}var H,N;function re(){if(N)return H;N=1;const e="Input must be an string, Buffer or Uint8Array";function r(c){let i;if(c instanceof Uint8Array)i=c;else if(typeof c=="string")i=new TextEncoder().encode(c);else throw new Error(e);return i}function n(c){return Array.prototype.map.call(c,function(i){return(i<16?"0":"")+i.toString(16)}).join("")}function h(c){return(4294967296+c).toString(16).substring(1)}function d(c,i,a){let w=`
1
+ import{d as j}from"./index-CPhvWWd4.js";import"./react-DjYfJ2MV.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="c6d1ec56-48fe-4895-93e8-6bc3d0f4e6b7",e._sentryDebugIdIdentifier="sentry-dbid-c6d1ec56-48fe-4895-93e8-6bc3d0f4e6b7")}catch{}})();/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */function P(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function V(e,r){return Array.isArray(r)?r.length===0?!0:e?r.every(n=>typeof n=="string"):r.every(n=>Number.isSafeInteger(n)):!1}function B(e,r){if(typeof r!="string")throw new Error(`${e}: string expected`);return!0}function I(e){if(!Number.isSafeInteger(e))throw new Error(`invalid integer: ${e}`)}function v(e){if(!Array.isArray(e))throw new Error("array expected")}function S(e,r){if(!V(!0,r))throw new Error(`${e}: array of strings expected`)}function K(e,r){if(!V(!1,r))throw new Error(`${e}: array of numbers expected`)}function J(...e){const r=l=>l,n=(l,c)=>i=>l(c(i)),h=e.map(l=>l.encode).reduceRight(n,r),d=e.map(l=>l.decode).reduce(n,r);return{encode:h,decode:d}}function Q(e){const r=typeof e=="string"?e.split(""):e,n=r.length;S("alphabet",r);const h=new Map(r.map((d,l)=>[d,l]));return{encode:d=>(v(d),d.map(l=>{if(!Number.isSafeInteger(l)||l<0||l>=n)throw new Error(`alphabet.encode: digit index outside alphabet "${l}". Allowed: ${e}`);return r[l]})),decode:d=>(v(d),d.map(l=>{B("alphabet.decode",l);const c=h.get(l);if(c===void 0)throw new Error(`Unknown letter: "${l}". Allowed: ${e}`);return c}))}}function W(e=""){return B("join",e),{encode:r=>(S("join.decode",r),r.join(e)),decode:r=>(B("join.decode",r),r.split(e))}}function fe(e,r="="){return I(e),B("padding",r),{encode(n){for(S("padding.encode",n);n.length*e%8;)n.push(r);return n},decode(n){S("padding.decode",n);let h=n.length;if(h*e%8)throw new Error("padding: invalid, string should have whole number of bytes");for(;h>0&&n[h-1]===r;h--)if((h-1)*e%8===0)throw new Error("padding: invalid, string has too much padding");return n.slice(0,h)}}}function G(e,r,n){if(r<2)throw new Error(`convertRadix: invalid from=${r}, base cannot be less than 2`);if(n<2)throw new Error(`convertRadix: invalid to=${n}, base cannot be less than 2`);if(v(e),!e.length)return[];let h=0;const d=[],l=Array.from(e,i=>{if(I(i),i<0||i>=r)throw new Error(`invalid integer: ${i}`);return i}),c=l.length;for(;;){let i=0,a=!0;for(let w=h;w<c;w++){const p=l[w],x=r*i,A=x+p;if(!Number.isSafeInteger(A)||x/r!==i||A-p!==x)throw new Error("convertRadix: carry overflow");const m=A/n;i=A%n;const s=Math.floor(m);if(l[w]=s,!Number.isSafeInteger(s)||s*n+i!==A)throw new Error("convertRadix: carry overflow");if(a)s?a=!1:h=w;else continue}if(d.push(i),a)break}for(let i=0;i<e.length-1&&e[i]===0;i++)d.push(0);return d.reverse()}const X=(e,r)=>r===0?e:X(r,e%r),$=(e,r)=>e+(r-X(e,r)),R=(()=>{let e=[];for(let r=0;r<40;r++)e.push(2**r);return e})();function F(e,r,n,h){if(v(e),r<=0||r>32)throw new Error(`convertRadix2: wrong from=${r}`);if(n<=0||n>32)throw new Error(`convertRadix2: wrong to=${n}`);if($(r,n)>32)throw new Error(`convertRadix2: carry overflow from=${r} to=${n} carryBits=${$(r,n)}`);let d=0,l=0;const c=R[r],i=R[n]-1,a=[];for(const w of e){if(I(w),w>=c)throw new Error(`convertRadix2: invalid data word=${w} from=${r}`);if(d=d<<r|w,l+r>32)throw new Error(`convertRadix2: carry overflow pos=${l} from=${r}`);for(l+=r;l>=n;l-=n)a.push((d>>l-n&i)>>>0);const p=R[l];if(p===void 0)throw new Error("invalid carry");d&=p-1}if(d=d<<n-l&i,!h&&l>=r)throw new Error("Excess padding");if(!h&&d>0)throw new Error(`Non-zero padding: ${d}`);return h&&l>0&&a.push(d>>>0),a}function ae(e){I(e);const r=2**8;return{encode:n=>{if(!P(n))throw new Error("radix.encode input should be Uint8Array");return G(Array.from(n),r,e)},decode:n=>(K("radix.decode",n),Uint8Array.from(G(n,e,r)))}}function se(e,r=!1){if(I(e),e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if($(8,e)>32||$(e,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!P(n))throw new Error("radix2.encode input should be Uint8Array");return F(Array.from(n),8,e,!r)},decode:n=>(K("radix2.decode",n),Uint8Array.from(F(n,e,8,r)))}}const we=J(se(5),Q("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),fe(5),W("")),le=e=>J(ae(58),Q(e),W("")),ge=le("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");function M(e){return globalThis.Buffer!=null?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function Y(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?M(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}function pe(e,r){r||(r=e.reduce((d,l)=>d+l.length,0));const n=Y(r);let h=0;for(const d of e)n.set(d,h),h+=d.length;return M(n)}function Z(e,r,n,h){return{name:e,prefix:r,encoder:{name:e,prefix:r,encode:n},decoder:{decode:h}}}const q=Z("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),T=Z("ascii","a",e=>{let r="a";for(let n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return r},e=>{e=e.substring(1);const r=Y(e.length);for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r}),ee={utf8:q,"utf-8":q,hex:j.base16,latin1:T,ascii:T,binary:T,...j};function ye(e,r="utf8"){const n=ee[r];if(!n)throw new Error(`Unsupported encoding "${r}"`);return(r==="utf8"||r==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?M(globalThis.Buffer.from(e,"utf-8")):n.decoder.decode(`${n.prefix}${e}`)}function Ae(e,r="utf8"){const n=ee[r];if(!n)throw new Error(`Unsupported encoding "${r}"`);return(r==="utf8"||r==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):n.encoder.encode(e).substring(1)}var H,N;function re(){if(N)return H;N=1;const e="Input must be an string, Buffer or Uint8Array";function r(c){let i;if(c instanceof Uint8Array)i=c;else if(typeof c=="string")i=new TextEncoder().encode(c);else throw new Error(e);return i}function n(c){return Array.prototype.map.call(c,function(i){return(i<16?"0":"")+i.toString(16)}).join("")}function h(c){return(4294967296+c).toString(16).substring(1)}function d(c,i,a){let w=`
2
2
  `+c+" = ";for(let p=0;p<i.length;p+=2){if(a===32)w+=h(i[p]).toUpperCase(),w+=" ",w+=h(i[p+1]).toUpperCase();else if(a===64)w+=h(i[p+1]).toUpperCase(),w+=h(i[p]).toUpperCase();else throw new Error("Invalid size "+a);p%6===4?w+=`
3
3
  `+new Array(c.length+4).join(" "):p<i.length-2&&(w+=" ")}console.log(w)}function l(c,i,a){let w=new Date().getTime();const p=new Uint8Array(i);for(let A=0;A<i;A++)p[A]=A%256;const x=new Date().getTime();console.log("Generated random input in "+(x-w)+"ms"),w=x;for(let A=0;A<a;A++){const m=c(p),s=new Date().getTime(),b=s-w;w=s,console.log("Hashed in "+b+"ms: "+m.substring(0,20)+"..."),console.log(Math.round(i/(1<<20)/(b/1e3)*100)/100+" MB PER SECOND")}}return H={normalizeInput:r,toHex:n,debugPrint:d,testSpeed:l},H}var C,O;function ce(){if(O)return C;O=1;const e=re();function r(t,u,o){const g=t[u]+t[o];let y=t[u+1]+t[o+1];g>=4294967296&&y++,t[u]=g,t[u+1]=y}function n(t,u,o,g){let y=t[u]+o;o<0&&(y+=4294967296);let k=t[u+1]+g;y>=4294967296&&k++,t[u]=y,t[u+1]=k}function h(t,u){return t[u]^t[u+1]<<8^t[u+2]<<16^t[u+3]<<24}function d(t,u,o,g,y,k){const ne=w[y],te=w[y+1],oe=w[k],ie=w[k+1];r(a,t,u),n(a,t,ne,te);let U=a[g]^a[t],E=a[g+1]^a[t+1];a[g]=E,a[g+1]=U,r(a,o,g),U=a[u]^a[o],E=a[u+1]^a[o+1],a[u]=U>>>24^E<<8,a[u+1]=E>>>24^U<<8,r(a,t,u),n(a,t,oe,ie),U=a[g]^a[t],E=a[g+1]^a[t+1],a[g]=U>>>16^E<<16,a[g+1]=E>>>16^U<<16,r(a,o,g),U=a[u]^a[o],E=a[u+1]^a[o+1],a[u]=E>>>31^U<<1,a[u+1]=U>>>31^E<<1}const l=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),c=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],i=new Uint8Array(c.map(function(t){return t*2})),a=new Uint32Array(32),w=new Uint32Array(32);function p(t,u){let o=0;for(o=0;o<16;o++)a[o]=t.h[o],a[o+16]=l[o];for(a[24]=a[24]^t.t,a[25]=a[25]^t.t/4294967296,u&&(a[28]=~a[28],a[29]=~a[29]),o=0;o<32;o++)w[o]=h(t.b,4*o);for(o=0;o<12;o++)d(0,8,16,24,i[o*16+0],i[o*16+1]),d(2,10,18,26,i[o*16+2],i[o*16+3]),d(4,12,20,28,i[o*16+4],i[o*16+5]),d(6,14,22,30,i[o*16+6],i[o*16+7]),d(0,10,20,30,i[o*16+8],i[o*16+9]),d(2,12,22,24,i[o*16+10],i[o*16+11]),d(4,14,16,26,i[o*16+12],i[o*16+13]),d(6,8,18,28,i[o*16+14],i[o*16+15]);for(o=0;o<16;o++)t.h[o]=t.h[o]^a[o]^a[o+16]}const x=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function A(t,u,o,g){if(t===0||t>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(u&&u.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(o&&o.length!==16)throw new Error("Illegal salt, expected Uint8Array with length is 16");if(g&&g.length!==16)throw new Error("Illegal personal, expected Uint8Array with length is 16");const y={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:t};x.fill(0),x[0]=t,u&&(x[1]=u.length),x[2]=1,x[3]=1,o&&x.set(o,32),g&&x.set(g,48);for(let k=0;k<16;k++)y.h[k]=l[k]^h(x,k*4);return u&&(m(y,u),y.c=128),y}function m(t,u){for(let o=0;o<u.length;o++)t.c===128&&(t.t+=t.c,p(t,!1),t.c=0),t.b[t.c++]=u[o]}function s(t){for(t.t+=t.c;t.c<128;)t.b[t.c++]=0;p(t,!0);const u=new Uint8Array(t.outlen);for(let o=0;o<t.outlen;o++)u[o]=t.h[o>>2]>>8*(o&3);return u}function b(t,u,o,g,y){o=o||64,t=e.normalizeInput(t),g&&(g=e.normalizeInput(g)),y&&(y=e.normalizeInput(y));const k=A(o,u,g,y);return m(k,t),s(k)}function f(t,u,o,g,y){const k=b(t,u,o,g,y);return e.toHex(k)}return C={blake2b:b,blake2bHex:f,blake2bInit:A,blake2bUpdate:m,blake2bFinal:s},C}var D,z;function ue(){if(z)return D;z=1;const e=re();function r(s,b){return s[b]^s[b+1]<<8^s[b+2]<<16^s[b+3]<<24}function n(s,b,f,t,u,o){c[s]=c[s]+c[b]+u,c[t]=h(c[t]^c[s],16),c[f]=c[f]+c[t],c[b]=h(c[b]^c[f],12),c[s]=c[s]+c[b]+o,c[t]=h(c[t]^c[s],8),c[f]=c[f]+c[t],c[b]=h(c[b]^c[f],7)}function h(s,b){return s>>>b^s<<32-b}const d=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),l=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),c=new Uint32Array(16),i=new Uint32Array(16);function a(s,b){let f=0;for(f=0;f<8;f++)c[f]=s.h[f],c[f+8]=d[f];for(c[12]^=s.t,c[13]^=s.t/4294967296,b&&(c[14]=~c[14]),f=0;f<16;f++)i[f]=r(s.b,4*f);for(f=0;f<10;f++)n(0,4,8,12,i[l[f*16+0]],i[l[f*16+1]]),n(1,5,9,13,i[l[f*16+2]],i[l[f*16+3]]),n(2,6,10,14,i[l[f*16+4]],i[l[f*16+5]]),n(3,7,11,15,i[l[f*16+6]],i[l[f*16+7]]),n(0,5,10,15,i[l[f*16+8]],i[l[f*16+9]]),n(1,6,11,12,i[l[f*16+10]],i[l[f*16+11]]),n(2,7,8,13,i[l[f*16+12]],i[l[f*16+13]]),n(3,4,9,14,i[l[f*16+14]],i[l[f*16+15]]);for(f=0;f<8;f++)s.h[f]^=c[f]^c[f+8]}function w(s,b){if(!(s>0&&s<=32))throw new Error("Incorrect output length, should be in [1, 32]");const f=b?b.length:0;if(b&&!(f>0&&f<=32))throw new Error("Incorrect key length, should be in [1, 32]");const t={h:new Uint32Array(d),b:new Uint8Array(64),c:0,t:0,outlen:s};return t.h[0]^=16842752^f<<8^s,f>0&&(p(t,b),t.c=64),t}function p(s,b){for(let f=0;f<b.length;f++)s.c===64&&(s.t+=s.c,a(s,!1),s.c=0),s.b[s.c++]=b[f]}function x(s){for(s.t+=s.c;s.c<64;)s.b[s.c++]=0;a(s,!0);const b=new Uint8Array(s.outlen);for(let f=0;f<s.outlen;f++)b[f]=s.h[f>>2]>>8*(f&3)&255;return b}function A(s,b,f){f=f||32,s=e.normalizeInput(s);const t=w(f,b);return p(t,s),x(t)}function m(s,b,f){const t=A(s,b,f);return e.toHex(t)}return D={blake2s:A,blake2sHex:m,blake2sInit:w,blake2sUpdate:p,blake2sFinal:x},D}var _,L;function de(){if(L)return _;L=1;const e=ce(),r=ue();return _={blake2b:e.blake2b,blake2bHex:e.blake2bHex,blake2bInit:e.blake2bInit,blake2bUpdate:e.blake2bUpdate,blake2bFinal:e.blake2bFinal,blake2s:r.blake2s,blake2sHex:r.blake2sHex,blake2sInit:r.blake2sInit,blake2sUpdate:r.blake2sUpdate,blake2sFinal:r.blake2sFinal},_}var xe=de();export{we as a,ge as b,pe as c,xe as d,ye as f,Ae as t};
4
- //# sourceMappingURL=index-DmN4kDpH.js.map
4
+ //# sourceMappingURL=index-B2D616zz.js.map
@@ -1,2 +1,2 @@
1
- import{bf as a,bg as n}from"./index-C5D5OP2z.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="1e49f82f-90a7-4394-993a-e715a6b25fa9",t._sentryDebugIdIdentifier="sentry-dbid-1e49f82f-90a7-4394-993a-e715a6b25fa9")}catch{}})();const o="https://wearable-preview.decentraland.zone",_="https://decentraland.zone/account",c="https://decentraland.zone/profile",R="https://decentraland.zone/marketplace",d="https://decentraland.zone/shop",s="https://decentraland.zone/builder",L="https://decentraland.zone/dao",r="https://decentraland.zone/governance",U="https://decentraland.zone/events",E="https://decentraland.zone/places",l="https://decentraland.org/create/",O="https://docs.decentraland.org/player/",A="https://decentraland.zone/download/creator-hub/",T="https://decentraland.zone/download/",p="https://decentraland.zone/download_success/",N="ea2ybdmmn1kv",S="master",C="18g1DzIyBxvu0steSwKyQr",h="https://cms.decentraland.org",I="https://decentraland.zone/marketplace/names/claim",D="https://decentraland.zone/marketplace/lands",g="https://decentraland.zone/marketplace/account",$="https://decentraland.zone/create/",i="https://studios.decentraland.zone/",P="https://decentraland.zone/builder/collections",m="https://decentraland.zone/builder/names",B="https://decentraland.zone/builder/worlds?tab=dcl",y="https://decentraland.zone/builder/land",M="https://decentraland.zone/events/me/",V="https://decentraland.zone/places/favorites/",b="https://docs.decentraland.org/player/",u="https://docs.decentraland.org/creator/",G="https://decentraland.zone/blog/",f="https://docs.decentraland.org/contributor/",F="https://decentraland.zone/governance/transparency/",K="https://decentraland.zone/governance/proposals/",v="https://decentraland.zone/dao/grants/",Y="https://decentraland.zone/governance/projects/",z="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",w="https://decentraland.zone/marketplace/settings",H="https://dcl.gg/discord",W="https://reddit.com/r/decentraland",k="https://github.com/decentraland",x="https://x.com/decentraland",j="https://instagram.com/decentraland_foundation/",Q="https://youtube.com/@decentraland_foundation",J="https://tiktok.com/@decentraland_fdn",X="https://linkedin.com/company/decentralandorg",q="https://decentraland.zone/privacy",Z="https://decentraland.zone/terms",tt="https://decentraland.zone/content",nt="https://decentraland.zone/ethics",et="https://decentraland.org/help",at="mailto:hello@decentraland.org",ot="https://docs.decentraland.org/faqs/decentraland-101",_t="https://docs.decentraland.org",ct="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",Rt="https://download-gateway.decentraland.zone",dt="https://decentraland.zone/top-scenes",st="https://testflight.apple.com/join/KF4r3jlU",Lt="https://play.google.com/store/apps/details?id=org.decentraland.godotexplorer",rt={WEARABLE_PREVIEW_URL:o,ACCOUNT_URL:_,PROFILE_URL:c,MARKETPLACE_URL:R,SHOP_URL:d,BUILDER_URL:s,DAO_URL:L,GOVERNANCE_URL:r,EVENTS_URL:U,PLACES_URL:E,CREATE_URL:l,LEARN_URL:O,CREATOR_HUB_URL:A,DOWNLOAD_URL:T,DOWNLOAD_SUCCESS_URL:p,CONTENTFUL_SPACE_ID:N,CONTENTFUL_ENV:S,CONTENTFUL_NAVBAR_ENTRY_ID:C,CONTENTFUL_CONTENTFUL_CDN_URL:h,MARKETPLACE_NAMES_URL:I,MARKETPLACE_LANDS_URL:D,MARKETPLACE_MY_ASSETS_URL:g,LANDING_CREATORS_URL:$,STUDIOS_URL:i,BUILDER_WEARABLE_EMOTES_URL:P,BUILDER_NAMES_URL:m,BUILDER_WORLDS_URL:B,BUILDER_LAND_URL:y,EVENTS_MY_EVENTS:M,PLACES_MY_FAVORITE_URL:V,DOCS_ABOUT_URL:b,DOCS_CREATORS_URL:u,BLOG_URL:G,DOCS_CONTRIBUTOR_URL:f,GOVERNANCE_TRANSPARENCY_URL:F,GOVERNANCE_PROPOSALS_URL:K,DAO_GRANTS_URL:v,GOVERNANCE_PROJECTS_URL:Y,DOCS_DAO_URL:z,MARKETPLACE_SETTINGS_URL:w,DISCORD_URL:H,REDDIT_URL:W,GITHUB_URL:k,X_URL:x,INSTAGRAM_URL:j,YOUTUBE_URL:Q,TIKTOK_URL:J,LINKEDIN_URL:X,PRIVACY_POLICY_URL:q,TERMS_OF_USE_URL:Z,CONTENT_POLICY_URL:tt,CODE_OF_ETHICS_URL:nt,SUPPORT_URL:et,EMAIL_HELLO_URL:at,FAQ_URL:ot,DOCS_URL:_t,BEEHIV_SUBSCRIPTION_URL:ct,AUTO_SIGNING_BASE_URL:Rt,TOP_SCENES_URL:dt,IOS_STORE_URL:st,ANDROID_STORE_URL:Lt},Ut="https://wearable-preview.decentraland.org",Et="https://decentraland.org/account",lt="https://decentraland.org/profile",Ot="https://decentraland.org/marketplace",At="https://decentraland.org/shop",Tt="https://decentraland.org/builder",pt="https://decentraland.org/dao",Nt="https://decentraland.org/governance",St="https://decentraland.org/events",Ct="https://decentraland.org/places",ht="https://decentraland.org/create/",It="https://docs.decentraland.org/player/",Dt="https://decentraland.org/download/creator-hub/",gt="https://decentraland.org/download/",$t="https://decentraland.org/download_success/",it="ea2ybdmmn1kv",Pt="master",mt="18g1DzIyBxvu0steSwKyQr",Bt="https://cms.decentraland.org",yt="https://decentraland.org/marketplace/names/claim",Mt="https://decentraland.org/marketplace/lands",Vt="https://decentraland.org/marketplace/account",bt="https://decentraland.org/create/",ut="https://studios.decentraland.org/",Gt="https://decentraland.org/builder/collections",ft="https://decentraland.org/builder/names",Ft="https://decentraland.org/builder/worlds?tab=dcl",Kt="https://decentraland.org/builder/land",vt="https://decentraland.org/events/me/",Yt="https://decentraland.org/places/favorites/",zt="https://docs.decentraland.org/player/",wt="https://docs.decentraland.org/creator/",Ht="https://decentraland.org/blog/",Wt="https://docs.decentraland.org/contributor/",kt="https://decentraland.org/governance/transparency/",xt="https://decentraland.org/governance/proposals/",jt="https://decentraland.org/dao/grants/",Qt="https://decentraland.org/governance/projects/",Jt="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",Xt="https://decentraland.org/marketplace/settings",qt="https://dcl.gg/discord",Zt="https://reddit.com/r/decentraland",tn="https://github.com/decentraland",nn="https://x.com/decentraland",en="https://instagram.com/decentraland_foundation/",an="https://youtube.com/@decentraland_foundation",on="https://tiktok.com/@decentraland_fdn",_n="https://linkedin.com/company/decentralandorg",cn="https://decentraland.org/privacy",Rn="https://decentraland.org/terms",dn="https://decentraland.org/content",sn="https://decentraland.org/ethics",Ln="https://decentraland.org/help",rn="mailto:hello@decentraland.org",Un="https://docs.decentraland.org/faqs/decentraland-101",En="https://docs.decentraland.org",ln="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",On="https://download-gateway.decentraland.org",An="https://decentraland.org/top-scenes",Tn="https://testflight.apple.com/join/KF4r3jlU",pn="https://play.google.com/store/apps/details?id=org.decentraland.godotexplorer",Nn={WEARABLE_PREVIEW_URL:Ut,ACCOUNT_URL:Et,PROFILE_URL:lt,MARKETPLACE_URL:Ot,SHOP_URL:At,BUILDER_URL:Tt,DAO_URL:pt,GOVERNANCE_URL:Nt,EVENTS_URL:St,PLACES_URL:Ct,CREATE_URL:ht,LEARN_URL:It,CREATOR_HUB_URL:Dt,DOWNLOAD_URL:gt,DOWNLOAD_SUCCESS_URL:$t,CONTENTFUL_SPACE_ID:it,CONTENTFUL_ENV:Pt,CONTENTFUL_NAVBAR_ENTRY_ID:mt,CONTENTFUL_CONTENTFUL_CDN_URL:Bt,MARKETPLACE_NAMES_URL:yt,MARKETPLACE_LANDS_URL:Mt,MARKETPLACE_MY_ASSETS_URL:Vt,LANDING_CREATORS_URL:bt,STUDIOS_URL:ut,BUILDER_WEARABLE_EMOTES_URL:Gt,BUILDER_NAMES_URL:ft,BUILDER_WORLDS_URL:Ft,BUILDER_LAND_URL:Kt,EVENTS_MY_EVENTS:vt,PLACES_MY_FAVORITE_URL:Yt,DOCS_ABOUT_URL:zt,DOCS_CREATORS_URL:wt,BLOG_URL:Ht,DOCS_CONTRIBUTOR_URL:Wt,GOVERNANCE_TRANSPARENCY_URL:kt,GOVERNANCE_PROPOSALS_URL:xt,DAO_GRANTS_URL:jt,GOVERNANCE_PROJECTS_URL:Qt,DOCS_DAO_URL:Jt,MARKETPLACE_SETTINGS_URL:Xt,DISCORD_URL:qt,REDDIT_URL:Zt,GITHUB_URL:tn,X_URL:nn,INSTAGRAM_URL:en,YOUTUBE_URL:an,TIKTOK_URL:on,LINKEDIN_URL:_n,PRIVACY_POLICY_URL:cn,TERMS_OF_USE_URL:Rn,CONTENT_POLICY_URL:dn,CODE_OF_ETHICS_URL:sn,SUPPORT_URL:Ln,EMAIL_HELLO_URL:rn,FAQ_URL:Un,DOCS_URL:En,BEEHIV_SUBSCRIPTION_URL:ln,AUTO_SIGNING_BASE_URL:On,TOP_SCENES_URL:An,IOS_STORE_URL:Tn,ANDROID_STORE_URL:pn},Sn="https://wearable-preview.decentraland.today",Cn="https://decentraland.today/account",hn="https://decentraland.today/profile",In="https://decentraland.today/marketplace",Dn="https://decentraland.today/shop",gn="https://decentraland.today/builder",$n="https://decentraland.today/dao",Pn="https://decentraland.today/governance",mn="https://decentraland.zone/events",Bn="https://decentraland.zone/places",yn="https://decentraland.today/create/",Mn="https://docs.decentraland.org/player/",Vn="https://decentraland.today/download/creator-hub/",bn="https://decentraland.today/download/",un="https://decentraland.today/download_success/",Gn="ea2ybdmmn1kv",fn="master",Fn="18g1DzIyBxvu0steSwKyQr",Kn="https://cms.decentraland.org",vn="https://decentraland.today/marketplace/names/claim",Yn="https://decentraland.today/marketplace/lands",zn="https://decentraland.today/marketplace/account",wn="https://decentraland.today/create/",Hn="https://studios.decentraland.today/",Wn="https://decentraland.today/builder/collections",kn="https://decentraland.today/builder/names",xn="https://decentraland.today/builder/worlds?tab=dcl",jn="https://decentraland.today/builder/land",Qn="https://decentraland.today/events/me/",Jn="https://decentraland.today/places/favorites/",Xn="https://docs.decentraland.org/player/",qn="https://docs.decentraland.org/creator/",Zn="https://decentraland.today/blog/",te="https://docs.decentraland.org/contributor/",ne="https://decentraland.today/governance/transparency/",ee="https://decentraland.today/governance/proposals/",ae="https://decentraland.today/dao/grants/",oe="https://decentraland.today/governance/projects/",_e="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",ce="https://decentraland.today/marketplace/settings",Re="https://dcl.gg/discord",de="https://reddit.com/r/decentraland",se="https://github.com/decentraland",Le="https://x.com/decentraland",re="https://instagram.com/decentraland_foundation/",Ue="https://youtube.com/@decentraland_foundation",Ee="https://tiktok.com/@decentraland_fdn",le="https://linkedin.com/company/decentralandorg",Oe="https://decentraland.org/privacy",Ae="https://decentraland.org/terms",Te="https://decentraland.org/content",pe="https://decentraland.org/ethics",Ne="https://decentraland.org/help",Se="mailto:hello@decentraland.org",Ce="https://docs.decentraland.org/faqs/decentraland-101",he="https://docs.decentraland.org",Ie="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",De="https://download-gateway.decentraland.zone",ge="https://decentraland.zone/top-scenes",$e="https://testflight.apple.com/join/KF4r3jlU",ie="https://play.google.com/store/apps/details?id=org.decentraland.godotexplorer",Pe={WEARABLE_PREVIEW_URL:Sn,ACCOUNT_URL:Cn,PROFILE_URL:hn,MARKETPLACE_URL:In,SHOP_URL:Dn,BUILDER_URL:gn,DAO_URL:$n,GOVERNANCE_URL:Pn,EVENTS_URL:mn,PLACES_URL:Bn,CREATE_URL:yn,LEARN_URL:Mn,CREATOR_HUB_URL:Vn,DOWNLOAD_URL:bn,DOWNLOAD_SUCCESS_URL:un,CONTENTFUL_SPACE_ID:Gn,CONTENTFUL_ENV:fn,CONTENTFUL_NAVBAR_ENTRY_ID:Fn,CONTENTFUL_CONTENTFUL_CDN_URL:Kn,MARKETPLACE_NAMES_URL:vn,MARKETPLACE_LANDS_URL:Yn,MARKETPLACE_MY_ASSETS_URL:zn,LANDING_CREATORS_URL:wn,STUDIOS_URL:Hn,BUILDER_WEARABLE_EMOTES_URL:Wn,BUILDER_NAMES_URL:kn,BUILDER_WORLDS_URL:xn,BUILDER_LAND_URL:jn,EVENTS_MY_EVENTS:Qn,PLACES_MY_FAVORITE_URL:Jn,DOCS_ABOUT_URL:Xn,DOCS_CREATORS_URL:qn,BLOG_URL:Zn,DOCS_CONTRIBUTOR_URL:te,GOVERNANCE_TRANSPARENCY_URL:ne,GOVERNANCE_PROPOSALS_URL:ee,DAO_GRANTS_URL:ae,GOVERNANCE_PROJECTS_URL:oe,DOCS_DAO_URL:_e,MARKETPLACE_SETTINGS_URL:ce,DISCORD_URL:Re,REDDIT_URL:de,GITHUB_URL:se,X_URL:Le,INSTAGRAM_URL:re,YOUTUBE_URL:Ue,TIKTOK_URL:Ee,LINKEDIN_URL:le,PRIVACY_POLICY_URL:Oe,TERMS_OF_USE_URL:Ae,CONTENT_POLICY_URL:Te,CODE_OF_ETHICS_URL:pe,SUPPORT_URL:Ne,EMAIL_HELLO_URL:Se,FAQ_URL:Ce,DOCS_URL:he,BEEHIV_SUBSCRIPTION_URL:Ie,AUTO_SIGNING_BASE_URL:De,TOP_SCENES_URL:ge,IOS_STORE_URL:$e,ANDROID_STORE_URL:ie},ye=a({[n.DEVELOPMENT]:rt,[n.STAGING]:Pe,[n.PRODUCTION]:Nn});export{ye as c};
2
- //# sourceMappingURL=index-BI-6q1N9.js.map
1
+ import{bf as a,bg as n}from"./index-DmWruJR2.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="1e49f82f-90a7-4394-993a-e715a6b25fa9",t._sentryDebugIdIdentifier="sentry-dbid-1e49f82f-90a7-4394-993a-e715a6b25fa9")}catch{}})();const o="https://wearable-preview.decentraland.zone",_="https://decentraland.zone/account",c="https://decentraland.zone/profile",R="https://decentraland.zone/marketplace",d="https://decentraland.zone/shop",s="https://decentraland.zone/builder",L="https://decentraland.zone/dao",r="https://decentraland.zone/governance",U="https://decentraland.zone/events",E="https://decentraland.zone/places",l="https://decentraland.org/create/",O="https://docs.decentraland.org/player/",A="https://decentraland.zone/download/creator-hub/",T="https://decentraland.zone/download/",p="https://decentraland.zone/download_success/",N="ea2ybdmmn1kv",S="master",C="18g1DzIyBxvu0steSwKyQr",h="https://cms.decentraland.org",I="https://decentraland.zone/marketplace/names/claim",D="https://decentraland.zone/marketplace/lands",g="https://decentraland.zone/marketplace/account",$="https://decentraland.zone/create/",i="https://studios.decentraland.zone/",P="https://decentraland.zone/builder/collections",m="https://decentraland.zone/builder/names",B="https://decentraland.zone/builder/worlds?tab=dcl",y="https://decentraland.zone/builder/land",M="https://decentraland.zone/events/me/",V="https://decentraland.zone/places/favorites/",b="https://docs.decentraland.org/player/",u="https://docs.decentraland.org/creator/",G="https://decentraland.zone/blog/",f="https://docs.decentraland.org/contributor/",F="https://decentraland.zone/governance/transparency/",K="https://decentraland.zone/governance/proposals/",v="https://decentraland.zone/dao/grants/",Y="https://decentraland.zone/governance/projects/",z="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",w="https://decentraland.zone/marketplace/settings",H="https://dcl.gg/discord",W="https://reddit.com/r/decentraland",k="https://github.com/decentraland",x="https://x.com/decentraland",j="https://instagram.com/decentraland_foundation/",Q="https://youtube.com/@decentraland_foundation",J="https://tiktok.com/@decentraland_fdn",X="https://linkedin.com/company/decentralandorg",q="https://decentraland.zone/privacy",Z="https://decentraland.zone/terms",tt="https://decentraland.zone/content",nt="https://decentraland.zone/ethics",et="https://decentraland.org/help",at="mailto:hello@decentraland.org",ot="https://docs.decentraland.org/faqs/decentraland-101",_t="https://docs.decentraland.org",ct="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",Rt="https://download-gateway.decentraland.zone",dt="https://decentraland.zone/top-scenes",st="https://testflight.apple.com/join/KF4r3jlU",Lt="https://play.google.com/store/apps/details?id=org.decentraland.godotexplorer",rt={WEARABLE_PREVIEW_URL:o,ACCOUNT_URL:_,PROFILE_URL:c,MARKETPLACE_URL:R,SHOP_URL:d,BUILDER_URL:s,DAO_URL:L,GOVERNANCE_URL:r,EVENTS_URL:U,PLACES_URL:E,CREATE_URL:l,LEARN_URL:O,CREATOR_HUB_URL:A,DOWNLOAD_URL:T,DOWNLOAD_SUCCESS_URL:p,CONTENTFUL_SPACE_ID:N,CONTENTFUL_ENV:S,CONTENTFUL_NAVBAR_ENTRY_ID:C,CONTENTFUL_CONTENTFUL_CDN_URL:h,MARKETPLACE_NAMES_URL:I,MARKETPLACE_LANDS_URL:D,MARKETPLACE_MY_ASSETS_URL:g,LANDING_CREATORS_URL:$,STUDIOS_URL:i,BUILDER_WEARABLE_EMOTES_URL:P,BUILDER_NAMES_URL:m,BUILDER_WORLDS_URL:B,BUILDER_LAND_URL:y,EVENTS_MY_EVENTS:M,PLACES_MY_FAVORITE_URL:V,DOCS_ABOUT_URL:b,DOCS_CREATORS_URL:u,BLOG_URL:G,DOCS_CONTRIBUTOR_URL:f,GOVERNANCE_TRANSPARENCY_URL:F,GOVERNANCE_PROPOSALS_URL:K,DAO_GRANTS_URL:v,GOVERNANCE_PROJECTS_URL:Y,DOCS_DAO_URL:z,MARKETPLACE_SETTINGS_URL:w,DISCORD_URL:H,REDDIT_URL:W,GITHUB_URL:k,X_URL:x,INSTAGRAM_URL:j,YOUTUBE_URL:Q,TIKTOK_URL:J,LINKEDIN_URL:X,PRIVACY_POLICY_URL:q,TERMS_OF_USE_URL:Z,CONTENT_POLICY_URL:tt,CODE_OF_ETHICS_URL:nt,SUPPORT_URL:et,EMAIL_HELLO_URL:at,FAQ_URL:ot,DOCS_URL:_t,BEEHIV_SUBSCRIPTION_URL:ct,AUTO_SIGNING_BASE_URL:Rt,TOP_SCENES_URL:dt,IOS_STORE_URL:st,ANDROID_STORE_URL:Lt},Ut="https://wearable-preview.decentraland.org",Et="https://decentraland.org/account",lt="https://decentraland.org/profile",Ot="https://decentraland.org/marketplace",At="https://decentraland.org/shop",Tt="https://decentraland.org/builder",pt="https://decentraland.org/dao",Nt="https://decentraland.org/governance",St="https://decentraland.org/events",Ct="https://decentraland.org/places",ht="https://decentraland.org/create/",It="https://docs.decentraland.org/player/",Dt="https://decentraland.org/download/creator-hub/",gt="https://decentraland.org/download/",$t="https://decentraland.org/download_success/",it="ea2ybdmmn1kv",Pt="master",mt="18g1DzIyBxvu0steSwKyQr",Bt="https://cms.decentraland.org",yt="https://decentraland.org/marketplace/names/claim",Mt="https://decentraland.org/marketplace/lands",Vt="https://decentraland.org/marketplace/account",bt="https://decentraland.org/create/",ut="https://studios.decentraland.org/",Gt="https://decentraland.org/builder/collections",ft="https://decentraland.org/builder/names",Ft="https://decentraland.org/builder/worlds?tab=dcl",Kt="https://decentraland.org/builder/land",vt="https://decentraland.org/events/me/",Yt="https://decentraland.org/places/favorites/",zt="https://docs.decentraland.org/player/",wt="https://docs.decentraland.org/creator/",Ht="https://decentraland.org/blog/",Wt="https://docs.decentraland.org/contributor/",kt="https://decentraland.org/governance/transparency/",xt="https://decentraland.org/governance/proposals/",jt="https://decentraland.org/dao/grants/",Qt="https://decentraland.org/governance/projects/",Jt="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",Xt="https://decentraland.org/marketplace/settings",qt="https://dcl.gg/discord",Zt="https://reddit.com/r/decentraland",tn="https://github.com/decentraland",nn="https://x.com/decentraland",en="https://instagram.com/decentraland_foundation/",an="https://youtube.com/@decentraland_foundation",on="https://tiktok.com/@decentraland_fdn",_n="https://linkedin.com/company/decentralandorg",cn="https://decentraland.org/privacy",Rn="https://decentraland.org/terms",dn="https://decentraland.org/content",sn="https://decentraland.org/ethics",Ln="https://decentraland.org/help",rn="mailto:hello@decentraland.org",Un="https://docs.decentraland.org/faqs/decentraland-101",En="https://docs.decentraland.org",ln="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",On="https://download-gateway.decentraland.org",An="https://decentraland.org/top-scenes",Tn="https://testflight.apple.com/join/KF4r3jlU",pn="https://play.google.com/store/apps/details?id=org.decentraland.godotexplorer",Nn={WEARABLE_PREVIEW_URL:Ut,ACCOUNT_URL:Et,PROFILE_URL:lt,MARKETPLACE_URL:Ot,SHOP_URL:At,BUILDER_URL:Tt,DAO_URL:pt,GOVERNANCE_URL:Nt,EVENTS_URL:St,PLACES_URL:Ct,CREATE_URL:ht,LEARN_URL:It,CREATOR_HUB_URL:Dt,DOWNLOAD_URL:gt,DOWNLOAD_SUCCESS_URL:$t,CONTENTFUL_SPACE_ID:it,CONTENTFUL_ENV:Pt,CONTENTFUL_NAVBAR_ENTRY_ID:mt,CONTENTFUL_CONTENTFUL_CDN_URL:Bt,MARKETPLACE_NAMES_URL:yt,MARKETPLACE_LANDS_URL:Mt,MARKETPLACE_MY_ASSETS_URL:Vt,LANDING_CREATORS_URL:bt,STUDIOS_URL:ut,BUILDER_WEARABLE_EMOTES_URL:Gt,BUILDER_NAMES_URL:ft,BUILDER_WORLDS_URL:Ft,BUILDER_LAND_URL:Kt,EVENTS_MY_EVENTS:vt,PLACES_MY_FAVORITE_URL:Yt,DOCS_ABOUT_URL:zt,DOCS_CREATORS_URL:wt,BLOG_URL:Ht,DOCS_CONTRIBUTOR_URL:Wt,GOVERNANCE_TRANSPARENCY_URL:kt,GOVERNANCE_PROPOSALS_URL:xt,DAO_GRANTS_URL:jt,GOVERNANCE_PROJECTS_URL:Qt,DOCS_DAO_URL:Jt,MARKETPLACE_SETTINGS_URL:Xt,DISCORD_URL:qt,REDDIT_URL:Zt,GITHUB_URL:tn,X_URL:nn,INSTAGRAM_URL:en,YOUTUBE_URL:an,TIKTOK_URL:on,LINKEDIN_URL:_n,PRIVACY_POLICY_URL:cn,TERMS_OF_USE_URL:Rn,CONTENT_POLICY_URL:dn,CODE_OF_ETHICS_URL:sn,SUPPORT_URL:Ln,EMAIL_HELLO_URL:rn,FAQ_URL:Un,DOCS_URL:En,BEEHIV_SUBSCRIPTION_URL:ln,AUTO_SIGNING_BASE_URL:On,TOP_SCENES_URL:An,IOS_STORE_URL:Tn,ANDROID_STORE_URL:pn},Sn="https://wearable-preview.decentraland.today",Cn="https://decentraland.today/account",hn="https://decentraland.today/profile",In="https://decentraland.today/marketplace",Dn="https://decentraland.today/shop",gn="https://decentraland.today/builder",$n="https://decentraland.today/dao",Pn="https://decentraland.today/governance",mn="https://decentraland.zone/events",Bn="https://decentraland.zone/places",yn="https://decentraland.today/create/",Mn="https://docs.decentraland.org/player/",Vn="https://decentraland.today/download/creator-hub/",bn="https://decentraland.today/download/",un="https://decentraland.today/download_success/",Gn="ea2ybdmmn1kv",fn="master",Fn="18g1DzIyBxvu0steSwKyQr",Kn="https://cms.decentraland.org",vn="https://decentraland.today/marketplace/names/claim",Yn="https://decentraland.today/marketplace/lands",zn="https://decentraland.today/marketplace/account",wn="https://decentraland.today/create/",Hn="https://studios.decentraland.today/",Wn="https://decentraland.today/builder/collections",kn="https://decentraland.today/builder/names",xn="https://decentraland.today/builder/worlds?tab=dcl",jn="https://decentraland.today/builder/land",Qn="https://decentraland.today/events/me/",Jn="https://decentraland.today/places/favorites/",Xn="https://docs.decentraland.org/player/",qn="https://docs.decentraland.org/creator/",Zn="https://decentraland.today/blog/",te="https://docs.decentraland.org/contributor/",ne="https://decentraland.today/governance/transparency/",ee="https://decentraland.today/governance/proposals/",ae="https://decentraland.today/dao/grants/",oe="https://decentraland.today/governance/projects/",_e="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",ce="https://decentraland.today/marketplace/settings",Re="https://dcl.gg/discord",de="https://reddit.com/r/decentraland",se="https://github.com/decentraland",Le="https://x.com/decentraland",re="https://instagram.com/decentraland_foundation/",Ue="https://youtube.com/@decentraland_foundation",Ee="https://tiktok.com/@decentraland_fdn",le="https://linkedin.com/company/decentralandorg",Oe="https://decentraland.org/privacy",Ae="https://decentraland.org/terms",Te="https://decentraland.org/content",pe="https://decentraland.org/ethics",Ne="https://decentraland.org/help",Se="mailto:hello@decentraland.org",Ce="https://docs.decentraland.org/faqs/decentraland-101",he="https://docs.decentraland.org",Ie="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",De="https://download-gateway.decentraland.zone",ge="https://decentraland.zone/top-scenes",$e="https://testflight.apple.com/join/KF4r3jlU",ie="https://play.google.com/store/apps/details?id=org.decentraland.godotexplorer",Pe={WEARABLE_PREVIEW_URL:Sn,ACCOUNT_URL:Cn,PROFILE_URL:hn,MARKETPLACE_URL:In,SHOP_URL:Dn,BUILDER_URL:gn,DAO_URL:$n,GOVERNANCE_URL:Pn,EVENTS_URL:mn,PLACES_URL:Bn,CREATE_URL:yn,LEARN_URL:Mn,CREATOR_HUB_URL:Vn,DOWNLOAD_URL:bn,DOWNLOAD_SUCCESS_URL:un,CONTENTFUL_SPACE_ID:Gn,CONTENTFUL_ENV:fn,CONTENTFUL_NAVBAR_ENTRY_ID:Fn,CONTENTFUL_CONTENTFUL_CDN_URL:Kn,MARKETPLACE_NAMES_URL:vn,MARKETPLACE_LANDS_URL:Yn,MARKETPLACE_MY_ASSETS_URL:zn,LANDING_CREATORS_URL:wn,STUDIOS_URL:Hn,BUILDER_WEARABLE_EMOTES_URL:Wn,BUILDER_NAMES_URL:kn,BUILDER_WORLDS_URL:xn,BUILDER_LAND_URL:jn,EVENTS_MY_EVENTS:Qn,PLACES_MY_FAVORITE_URL:Jn,DOCS_ABOUT_URL:Xn,DOCS_CREATORS_URL:qn,BLOG_URL:Zn,DOCS_CONTRIBUTOR_URL:te,GOVERNANCE_TRANSPARENCY_URL:ne,GOVERNANCE_PROPOSALS_URL:ee,DAO_GRANTS_URL:ae,GOVERNANCE_PROJECTS_URL:oe,DOCS_DAO_URL:_e,MARKETPLACE_SETTINGS_URL:ce,DISCORD_URL:Re,REDDIT_URL:de,GITHUB_URL:se,X_URL:Le,INSTAGRAM_URL:re,YOUTUBE_URL:Ue,TIKTOK_URL:Ee,LINKEDIN_URL:le,PRIVACY_POLICY_URL:Oe,TERMS_OF_USE_URL:Ae,CONTENT_POLICY_URL:Te,CODE_OF_ETHICS_URL:pe,SUPPORT_URL:Ne,EMAIL_HELLO_URL:Se,FAQ_URL:Ce,DOCS_URL:he,BEEHIV_SUBSCRIPTION_URL:Ie,AUTO_SIGNING_BASE_URL:De,TOP_SCENES_URL:ge,IOS_STORE_URL:$e,ANDROID_STORE_URL:ie},ye=a({[n.DEVELOPMENT]:rt,[n.STAGING]:Pe,[n.PRODUCTION]:Nn});export{ye as c};
2
+ //# sourceMappingURL=index-B2Gc_mC-.js.map
@@ -1,2 +1,2 @@
1
- import"./react-p_AXR2bI.js";(function(){try{var v=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new v.Error().stack;d&&(v._sentryDebugIds=v._sentryDebugIds||{},v._sentryDebugIds[d]="baaaa475-91e9-4202-946c-540a970b1d88",v._sentryDebugIdIdentifier="sentry-dbid-baaaa475-91e9-4202-946c-540a970b1d88")}catch{}})();var w={exports:{}},x;function O(){return x||(x=1,(function(v){var d=Object.prototype.hasOwnProperty,f="~";function y(){}Object.create&&(y.prototype=Object.create(null),new y().__proto__||(f=!1));function m(s,t,n){this.fn=s,this.context=t,this.once=n||!1}function g(s,t,n,r,l){if(typeof n!="function")throw new TypeError("The listener must be a function");var c=new m(n,r||s,l),o=f?f+t:t;return s._events[o]?s._events[o].fn?s._events[o]=[s._events[o],c]:s._events[o].push(c):(s._events[o]=c,s._eventsCount++),s}function b(s,t){--s._eventsCount===0?s._events=new y:delete s._events[t]}function u(){this._events=new y,this._eventsCount=0}u.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)d.call(n,r)&&t.push(f?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t},u.prototype.listeners=function(t){var n=f?f+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var l=0,c=r.length,o=new Array(c);l<c;l++)o[l]=r[l].fn;return o},u.prototype.listenerCount=function(t){var n=f?f+t:t,r=this._events[n];return r?r.fn?1:r.length:0},u.prototype.emit=function(t,n,r,l,c,o){var a=f?f+t:t;if(!this._events[a])return!1;var e=this._events[a],p=arguments.length,h,i;if(e.fn){switch(e.once&&this.removeListener(t,e.fn,void 0,!0),p){case 1:return e.fn.call(e.context),!0;case 2:return e.fn.call(e.context,n),!0;case 3:return e.fn.call(e.context,n,r),!0;case 4:return e.fn.call(e.context,n,r,l),!0;case 5:return e.fn.call(e.context,n,r,l,c),!0;case 6:return e.fn.call(e.context,n,r,l,c,o),!0}for(i=1,h=new Array(p-1);i<p;i++)h[i-1]=arguments[i];e.fn.apply(e.context,h)}else{var E=e.length,_;for(i=0;i<E;i++)switch(e[i].once&&this.removeListener(t,e[i].fn,void 0,!0),p){case 1:e[i].fn.call(e[i].context);break;case 2:e[i].fn.call(e[i].context,n);break;case 3:e[i].fn.call(e[i].context,n,r);break;case 4:e[i].fn.call(e[i].context,n,r,l);break;default:if(!h)for(_=1,h=new Array(p-1);_<p;_++)h[_-1]=arguments[_];e[i].fn.apply(e[i].context,h)}}return!0},u.prototype.on=function(t,n,r){return g(this,t,n,r,!1)},u.prototype.once=function(t,n,r){return g(this,t,n,r,!0)},u.prototype.removeListener=function(t,n,r,l){var c=f?f+t:t;if(!this._events[c])return this;if(!n)return b(this,c),this;var o=this._events[c];if(o.fn)o.fn===n&&(!l||o.once)&&(!r||o.context===r)&&b(this,c);else{for(var a=0,e=[],p=o.length;a<p;a++)(o[a].fn!==n||l&&!o[a].once||r&&o[a].context!==r)&&e.push(o[a]);e.length?this._events[c]=e.length===1?e[0]:e:b(this,c)}return this},u.prototype.removeAllListeners=function(t){var n;return t?(n=f?f+t:t,this._events[n]&&b(this,n)):(this._events=new y,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=f,u.EventEmitter=u,v.exports=u})(w)),w.exports}export{O as r};
2
- //# sourceMappingURL=index-D_5rqd0P.js.map
1
+ import"./react-DjYfJ2MV.js";(function(){try{var v=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new v.Error().stack;d&&(v._sentryDebugIds=v._sentryDebugIds||{},v._sentryDebugIds[d]="baaaa475-91e9-4202-946c-540a970b1d88",v._sentryDebugIdIdentifier="sentry-dbid-baaaa475-91e9-4202-946c-540a970b1d88")}catch{}})();var w={exports:{}},x;function O(){return x||(x=1,(function(v){var d=Object.prototype.hasOwnProperty,f="~";function y(){}Object.create&&(y.prototype=Object.create(null),new y().__proto__||(f=!1));function m(s,t,n){this.fn=s,this.context=t,this.once=n||!1}function g(s,t,n,r,l){if(typeof n!="function")throw new TypeError("The listener must be a function");var c=new m(n,r||s,l),o=f?f+t:t;return s._events[o]?s._events[o].fn?s._events[o]=[s._events[o],c]:s._events[o].push(c):(s._events[o]=c,s._eventsCount++),s}function b(s,t){--s._eventsCount===0?s._events=new y:delete s._events[t]}function u(){this._events=new y,this._eventsCount=0}u.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)d.call(n,r)&&t.push(f?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t},u.prototype.listeners=function(t){var n=f?f+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var l=0,c=r.length,o=new Array(c);l<c;l++)o[l]=r[l].fn;return o},u.prototype.listenerCount=function(t){var n=f?f+t:t,r=this._events[n];return r?r.fn?1:r.length:0},u.prototype.emit=function(t,n,r,l,c,o){var a=f?f+t:t;if(!this._events[a])return!1;var e=this._events[a],p=arguments.length,h,i;if(e.fn){switch(e.once&&this.removeListener(t,e.fn,void 0,!0),p){case 1:return e.fn.call(e.context),!0;case 2:return e.fn.call(e.context,n),!0;case 3:return e.fn.call(e.context,n,r),!0;case 4:return e.fn.call(e.context,n,r,l),!0;case 5:return e.fn.call(e.context,n,r,l,c),!0;case 6:return e.fn.call(e.context,n,r,l,c,o),!0}for(i=1,h=new Array(p-1);i<p;i++)h[i-1]=arguments[i];e.fn.apply(e.context,h)}else{var E=e.length,_;for(i=0;i<E;i++)switch(e[i].once&&this.removeListener(t,e[i].fn,void 0,!0),p){case 1:e[i].fn.call(e[i].context);break;case 2:e[i].fn.call(e[i].context,n);break;case 3:e[i].fn.call(e[i].context,n,r);break;case 4:e[i].fn.call(e[i].context,n,r,l);break;default:if(!h)for(_=1,h=new Array(p-1);_<p;_++)h[_-1]=arguments[_];e[i].fn.apply(e[i].context,h)}}return!0},u.prototype.on=function(t,n,r){return g(this,t,n,r,!1)},u.prototype.once=function(t,n,r){return g(this,t,n,r,!0)},u.prototype.removeListener=function(t,n,r,l){var c=f?f+t:t;if(!this._events[c])return this;if(!n)return b(this,c),this;var o=this._events[c];if(o.fn)o.fn===n&&(!l||o.once)&&(!r||o.context===r)&&b(this,c);else{for(var a=0,e=[],p=o.length;a<p;a++)(o[a].fn!==n||l&&!o[a].once||r&&o[a].context!==r)&&e.push(o[a]);e.length?this._events[c]=e.length===1?e[0]:e:b(this,c)}return this},u.prototype.removeAllListeners=function(t){var n;return t?(n=f?f+t:t,this._events[n]&&b(this,n)):(this._events=new y,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=f,u.EventEmitter=u,v.exports=u})(w)),w.exports}export{O as r};
2
+ //# sourceMappingURL=index-B7Gu3ukM.js.map
@@ -1,4 +1,4 @@
1
- import{w as f,i as w,b as l}from"./lit-element-wjYUA6aF.js";import{n as o,o as x}from"./class-map-HS20q_81.js";import{c as v,U as $}from"./index-EBmRTCns.js";import"./index-Ds9zM4Gv.js";import{d as b,r as y,e as z}from"./index-Bu9dWV25.js";import"./index-D_Z15_zr.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ae5daba4-9390-4d3b-bcc9-226b67738806",e._sentryDebugIdIdentifier="sentry-dbid-ae5daba4-9390-4d3b-bcc9-226b67738806")}catch{}})();const S=f`<svg width="86" height="96" fill="none">
1
+ import{w as f,i as w,b as l}from"./lit-element-wjYUA6aF.js";import{n as o,o as x}from"./class-map-TfwPuvlt.js";import{c as v,U as $}from"./index-HgN3VEFi.js";import"./index-DsM3TTlU.js";import{d as b,r as y,e as z}from"./index-C6kT6Sfn.js";import"./index-CcqheoI1.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ddf69e31-1a4e-4d56-94d7-86ff76ceb89b",e._sentryDebugIdIdentifier="sentry-dbid-ddf69e31-1a4e-4d56-94d7-86ff76ceb89b")}catch{}})();const S=f`<svg width="86" height="96" fill="none">
2
2
  <path
3
3
  d="M78.3244 18.926L50.1808 2.45078C45.7376 -0.150261 40.2624 -0.150262 35.8192 2.45078L7.6756 18.926C3.23322 21.5266 0.5 26.3301 0.5 31.5248V64.4752C0.5 69.6699 3.23322 74.4734 7.6756 77.074L35.8192 93.5492C40.2624 96.1503 45.7376 96.1503 50.1808 93.5492L78.3244 77.074C82.7668 74.4734 85.5 69.6699 85.5 64.4752V31.5248C85.5 26.3301 82.7668 21.5266 78.3244 18.926Z"
4
4
  />
@@ -222,4 +222,4 @@ import{w as f,i as w,b as l}from"./lit-element-wjYUA6aF.js";import{n as o,o as x
222
222
  ${$.getTruncateString({string:this.profileName||this.address,charsStart:this.profileName?16:this.charsStart,charsEnd:this.profileName?0:this.charsEnd,truncate:this.profileName?"end":"middle"})}
223
223
  </wui-text>
224
224
  `}rightImageTemplate(){return l`<wui-icon name="chevronBottom" size="sm" color="default"></wui-icon>`}};c.styles=[y,z,j];h([o()],c.prototype,"address",void 0);h([o()],c.prototype,"profileName",void 0);h([o()],c.prototype,"alt",void 0);h([o()],c.prototype,"imageSrc",void 0);h([o()],c.prototype,"icon",void 0);h([o()],c.prototype,"iconSize",void 0);h([o({type:Boolean})],c.prototype,"enableGreenCircle",void 0);h([o({type:Boolean})],c.prototype,"loading",void 0);h([o({type:Number})],c.prototype,"charsStart",void 0);h([o({type:Number})],c.prototype,"charsEnd",void 0);c=h([v("wui-wallet-switch")],c);export{k as n};
225
- //# sourceMappingURL=index-5mxS7CZV.js.map
225
+ //# sourceMappingURL=index-B80yNe_h.js.map