@dcl/shop 1.3.0 → 1.3.1-31191272241.commit-33233c2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) hide show
  1. package/_assets/{Activity-ew3XpoT3.js → Activity-8i9FdngV.js} +5 -5
  2. package/_assets/{AnimatedBackground-D_nEuM-e.js → AnimatedBackground-B1iDviiG.js} +1 -1
  3. package/_assets/{Assets-cBlMqNjz.js → Assets-4IZmUsiz.js} +16 -16
  4. package/_assets/{Assets.styles-CLwfDCDf.js → Assets.styles-m0gk4Vwr.js} +1 -1
  5. package/_assets/{Authorizations-Cs0nL4Oz.js → Authorizations-BCttd8CW.js} +3 -3
  6. package/_assets/{Cart-BO4t_lkf.js → Cart-BgXGvv7s.js} +7 -7
  7. package/_assets/{CircularProgress-GqV7M35A.js → CircularProgress-DDm_y_cx.js} +4 -4
  8. package/_assets/{Collection-dJYcennk.js → Collection-CYz1Miau.js} +4 -4
  9. package/_assets/{CollectionCarousel-uJ5UjL8j.js → CollectionCarousel-DM6izEdE.js} +15 -15
  10. package/_assets/{Confetti-CFn9Pw72.js → Confetti-yVDYrpRF.js} +1 -1
  11. package/_assets/{Creator-CuGxdrmY.js → Creator-U2Odd2Xn.js} +11 -11
  12. package/_assets/{ErrorNotice-CJ7LbSaM.js → ErrorNotice-DXA2kUGn.js} +1 -1
  13. package/_assets/{ExchangeController-CwGAtelJ.js → ExchangeController-CUapamq4.js} +1 -1
  14. package/_assets/{Faq-CDhDmUOq.js → Faq-D3-Y7L_N.js} +1 -1
  15. package/_assets/{GetCredits-1I-xEtGF.js → GetCredits-BUPZ8nXe.js} +13 -13
  16. package/_assets/{Grow-CVnVH5HV.js → Grow-DWhKDYwn.js} +1 -1
  17. package/_assets/{HelpersUtil-DeEtn4Uv.js → HelpersUtil-BgHry1Zl.js} +1 -1
  18. package/_assets/{ItemDetail-R2KchS-D.js → ItemDetail-COQMwL0e.js} +1 -1
  19. package/_assets/LazyEmoteControls-Ds0pyaLH.js +2 -0
  20. package/_assets/{LoadMore-CRwBs35r.js → LoadMore-DJmWuNsx.js} +1 -1
  21. package/_assets/{ManaPricingBanner.styles-BlUs3NYz.js → ManaPricingBanner.styles-CqaMAdkf.js} +2 -2
  22. package/_assets/{MyAssets-Crv1OZqH.js → MyAssets-BJoMoNc-.js} +9 -9
  23. package/_assets/{MyFavorites-BsDoGy_0.js → MyFavorites-BproSyJE.js} +1 -1
  24. package/_assets/{NotFound-CTrYO3ch.js → NotFound-BUyr7vAo.js} +1 -1
  25. package/_assets/{NotificationsBell-DRGgz2iS.js → NotificationsBell-CNXI5jCf.js} +1 -1
  26. package/_assets/{OutfitDetail-PIgUTZD2.js → OutfitDetail-DFD_3PD6.js} +13 -13
  27. package/_assets/{OutfitPreview-B7Y1-68b.js → OutfitPreview-DzzGBlLq.js} +2 -2
  28. package/_assets/{OutfitStudio-Bsv8_JeA.js → OutfitStudio-CIKhRaRR.js} +11 -11
  29. package/_assets/{StoreSettings-BH1LqeM8.js → StoreSettings-BZvCZhkk.js} +10 -10
  30. package/_assets/{Success-C0JqrNNn.js → Success-BYEoVFfn.js} +4 -4
  31. package/_assets/{SwapController-B403gwlM.js → SwapController-RbFspCAC.js} +1 -1
  32. package/_assets/{Tooltip-Bb6q6TxX.js → Tooltip-Seun6IgZ.js} +1 -1
  33. package/_assets/{TradeService-BsjSuIVy.js → TradeService-C0kQQCMK.js} +1 -1
  34. package/_assets/{W3MFrameProviderSingleton-B6S06Y_H.js → W3MFrameProviderSingleton-DauKY4Ir.js} +3 -3
  35. package/_assets/{WebCryptoP256-CI6-qWGK.js → WebCryptoP256-C4hli3xD.js} +1 -1
  36. package/_assets/authorizations-DPF8ylip.js +1 -0
  37. package/_assets/{basic-DEn_IlUm.js → basic-CV-oM6kG.js} +1 -1
  38. package/_assets/{biconomy-DvPM-XBT.js → biconomy-DGVuVSLX.js} +1 -1
  39. package/_assets/{builder-Npez-0pQ.js → builder-BkQQQzE3.js} +1 -1
  40. package/_assets/{buy-CRR9-X2w.js → buy-DQop7Gap.js} +1 -1
  41. package/_assets/{buy-gasless-Cj1VGZpP.js → buy-gasless-CvDYoAre.js} +1 -1
  42. package/_assets/{categories-CMYRFP-3.js → categories-Dx4OHkSy.js} +4 -4
  43. package/_assets/{ccip-DFr4gxX6.js → ccip-BGiCuOiS.js} +1 -1
  44. package/_assets/{ccip-Bvp_nKL6.js → ccip-BcKisox8.js} +1 -1
  45. package/_assets/{collectionPage.styles-B4iEFMy_.js → collectionPage.styles-CqWYdmnF.js} +4 -4
  46. package/_assets/{controller-CgyRh-Bw.js → controller-CSLwfM9E.js} +2 -2
  47. package/_assets/{core-B7wRtbuZ.js → core-CPCg7oPm.js} +4 -4
  48. package/_assets/{createSvgIcon-Bo9WJgq_.js → createSvgIcon-CN-Kwds3.js} +3 -3
  49. package/_assets/{custom-CH6sSlIL.js → custom-BPA4R--i.js} +1 -1
  50. package/_assets/{data-capture-DreW3nks.js → data-capture-CGpBku4P.js} +1 -1
  51. package/_assets/{email-pIKOIyQR.js → email-BRIoa7rr.js} +1 -1
  52. package/_assets/{embedded-wallet-CLmF0Kdd.js → embedded-wallet-BAeEpv8n.js} +1 -1
  53. package/_assets/{emotion-styled.browser.esm-BqTQ5SYv.js → emotion-styled.browser.esm-GGMa6dTF.js} +1 -1
  54. package/_assets/{engine-D64OXa1r.js → engine-TZZ6iHT4.js} +1 -1
  55. package/_assets/{errors-BbwwHm_0.js → errors-CDyHuhIX.js} +1 -1
  56. package/_assets/{estimate-l1-fee-BU85AjOG.js → estimate-l1-fee-DBqnfEaD.js} +1 -1
  57. package/_assets/{execute-BozDg2yb.js → execute-B4Yh1llw.js} +2 -2
  58. package/_assets/{features-BDTF_ohu.js → features-BRxQunSh.js} +1 -1
  59. package/_assets/{fetchTokenMetadata-BT4wvs8u.js → fetchTokenMetadata-Dx8VaO9V.js} +2 -2
  60. package/_assets/{field.styles-C3qh-tZ2.js → field.styles-RvSTZ9zQ.js} +1 -1
  61. package/_assets/{get-ecosystem-wallet-info-BlqgcGd0.js → get-ecosystem-wallet-info-DCe0P2HA.js} +1 -1
  62. package/_assets/{getBalance-B89LWv-k.js → getBalance-yW2njh0W.js} +1 -1
  63. package/_assets/{getNFT-CMlAXi2W.js → getNFT-BOLZHVH5.js} +1 -1
  64. package/_assets/{getNFT-Cy5QJvSJ.js → getNFT-DuSRVcUI.js} +1 -1
  65. package/_assets/{grid.styles-B2Eu32l1.js → grid.styles-DTlMjoNy.js} +1 -1
  66. package/_assets/{hashTypedData-CVMcc6Hz.js → hashTypedData-BaZ-NVSh.js} +1 -1
  67. package/_assets/{hashTypedData-5hKkNljV.js → hashTypedData-Dn1doKj6.js} +1 -1
  68. package/_assets/{in-app-BiD_q7tQ.js → in-app-B3Zy_9Up.js} +1 -1
  69. package/_assets/{in-app-wallet-calls-BxK-hX9G.js → in-app-wallet-calls-BzgEl7Xp.js} +1 -1
  70. package/_assets/{index-BbAhN-VL.js → index-8G69XLE9.js} +1 -1
  71. package/_assets/{index-DmJfaFSK.js → index-8zod7QnL.js} +1 -1
  72. package/_assets/{index-D2gLfWlc.js → index-B5cMAKQz.js} +1 -1
  73. package/_assets/{index-GomvWLkv.js → index-B7hKU_9p.js} +1 -1
  74. package/_assets/{index-BvQGZppV.js → index-B8oAyIz8.js} +1 -1
  75. package/_assets/{index-D4mfZpjO.js → index-BBFb-GHY.js} +2 -2
  76. package/_assets/{index-bVwIZVq2.js → index-BEjN46BT.js} +1 -1
  77. package/_assets/{index-DsKwbNYL.js → index-BNetjvSn.js} +1 -1
  78. package/_assets/{index-DKDGLsyf.js → index-BX2bEUI-.js} +1 -1
  79. package/_assets/{index-CD88wagS.js → index-BYCN_-Lk.js} +1 -1
  80. package/_assets/{index-Baqe51s4.js → index-Baf3w05O.js} +1 -1
  81. package/_assets/{index-Xe0zG67j.js → index-BnBKCQ6R.js} +2 -2
  82. package/_assets/{index-DnZSYmpU.js → index-Bs5EVwuZ.js} +1 -1
  83. package/_assets/{index-CRNF_QU5.js → index-BzOkARHI.js} +1 -1
  84. package/_assets/{index-COl_MS2X.js → index-C1xP7rOI.js} +1 -1
  85. package/_assets/{index-BS9mRV4X.js → index-C3DZ04sJ.js} +1 -1
  86. package/_assets/{index-hnGTtZoN.js → index-C9n8rpAQ.js} +3 -3
  87. package/_assets/{index-Dy-uR3t4.js → index-CABfM9ed.js} +1 -1
  88. package/_assets/{index-DnhjRPd0.js → index-CCq36Q4n.js} +1 -1
  89. package/_assets/{index-BU93X1R1.js → index-CCvi817V.js} +1 -1
  90. package/_assets/{index-D6N8FICT.js → index-CDS3lHjJ.js} +2 -2
  91. package/_assets/{index-Brr2CMye.js → index-CE3AA7bo.js} +1 -1
  92. package/_assets/{index-CL_zZiR1.js → index-CFOh8-vc.js} +1 -1
  93. package/_assets/index-CHVlPVbz.js +3880 -0
  94. package/_assets/{index-Eas9yoRi.js → index-CKpYDU9O.js} +1 -1
  95. package/_assets/{index-BawFzGfz.js → index-CMeK1XVC.js} +1 -1
  96. package/_assets/{index-69aWe7LF.js → index-CPCeNa7L.js} +1 -1
  97. package/_assets/{index-DRZIPiLU.js → index-CQZJe9kU.js} +13 -13
  98. package/_assets/{index-tt5vpwow.js → index-CQimoWD2.js} +1 -1
  99. package/_assets/{index-2KdRKXEu.js → index-C_YJJre1.js} +1 -1
  100. package/_assets/{index-D7-5iUKs.js → index-Cdylf7p_.js} +1 -1
  101. package/_assets/{index-ByMxSKoO.js → index-CrL5_xYO.js} +1 -1
  102. package/_assets/{index-BNtwDdqR.js → index-Cx1mshgQ.js} +1 -1
  103. package/_assets/{index-E4Z_g959.js → index-D5bDG9XP.js} +3 -3
  104. package/_assets/{index-CU54HyHs.js → index-DBr4o1MH.js} +1 -1
  105. package/_assets/{index-BwVlQTGw.js → index-DE-MoPas.js} +1 -1
  106. package/_assets/{index-DnlLS_ys.js → index-DYM1B0LB.js} +1 -1
  107. package/_assets/{index-CgPj91Wh.js → index-Dc1SY2tl.js} +1 -1
  108. package/_assets/{index-BfrZo6vI.js → index-Dm0rNET3.js} +1 -1
  109. package/_assets/{index-CdmghwAv.js → index-DmtMKf7k.js} +1 -1
  110. package/_assets/{index-BLQrxn9F.js → index-DqxxfXkG.js} +1 -1
  111. package/_assets/{index-DRwratoB.js → index-DxZAhQ9S.js} +1 -1
  112. package/_assets/{index-CoC4ZTSB.js → index-EjOjm1WE.js} +3 -3
  113. package/_assets/{index-UWPTFHML.js → index-KMn0kKq6.js} +1 -1
  114. package/_assets/{index-CKJapgfm.js → index-VCROhFqu.js} +1 -1
  115. package/_assets/{index-Bj_Y4oBT.js → index-YOwv3ov2.js} +1 -1
  116. package/_assets/{index-DQT21rdJ.js → index-_IId9FPs.js} +1 -1
  117. package/_assets/{index-CGyHa-8V.js → index-_MeNrzH4.js} +1 -1
  118. package/_assets/{index-BCSwRUu3.js → index-tfg76WB4.js} +1 -1
  119. package/_assets/{index-C0Tjm6c2.js → index-vQeO65IH.js} +2 -2
  120. package/_assets/{index-C54j1-wd.js → index-wVpiAbCV.js} +1 -1
  121. package/_assets/{index-DxKuqcFg.js → index-zw3MxWrD.js} +1 -1
  122. package/_assets/{index.es-BYW_XSuo.js → index.es-BRe343gf.js} +4 -4
  123. package/_assets/{index.es-D0J6Rjn_.js → index.es-C50fJIvV.js} +1 -1
  124. package/_assets/{index.es-wL4nLZcl.js → index.es-RN4XS4d-.js} +1 -1
  125. package/_assets/{localBatchGatewayRequest-CBnpaR4-.js → localBatchGatewayRequest-mQE-Ofxj.js} +1 -1
  126. package/_assets/{networks-D41xdN6D.js → networks-YB7JUKsX.js} +1 -1
  127. package/_assets/{onramp-DR5Lm3nA.js → onramp-DcdCAuUZ.js} +1 -1
  128. package/_assets/{openzeppelin-B19X12pO.js → openzeppelin-dAP61G4J.js} +1 -1
  129. package/_assets/{parseNft-BHr3f8D7.js → parseNft-1wKuLSST.js} +2 -2
  130. package/_assets/{parseSignature-Cz1WFGnm.js → parseSignature-DToYlmjf.js} +3 -3
  131. package/_assets/{parseSignature-CRruTE7l.js → parseSignature-zHFOPkYU.js} +1 -1
  132. package/_assets/{passkeys-BAR54cJC.js → passkeys-BJEIePNG.js} +1 -1
  133. package/_assets/{pay-with-exchange-zDCz8UbG.js → pay-with-exchange-CyLwDARS.js} +1 -1
  134. package/_assets/{qr-overlay-DXWbTjg8.js → qr-overlay-D2bTeYBv.js} +1 -1
  135. package/_assets/{receive-B3ivhPV_.js → receive-W-LqtJ62.js} +1 -1
  136. package/_assets/{resolveImplementation-ASrjiSw-.js → resolveImplementation-BSqyzFFe.js} +1 -1
  137. package/_assets/{rpc-r3GlqTct.js → rpc-Dg74XPUL.js} +1 -1
  138. package/_assets/{secp256k1-ChcROQU5.js → secp256k1-B_xoHIxS.js} +1 -1
  139. package/_assets/{secp256k1-B5NNIaFX.js → secp256k1-CS73mfL3.js} +1 -1
  140. package/_assets/{secp256k1-Ch2QO1Jw.js → secp256k1-DadVk9CT.js} +1 -1
  141. package/_assets/{send-6dgb2b7F.js → send-Cg0sS_p7.js} +1 -1
  142. package/_assets/{send-batch-transaction-D_JGI6Rn.js → send-batch-transaction-DWWTS0gR.js} +1 -1
  143. package/_assets/{send-eip712-transaction-BAt6mbHJ.js → send-eip712-transaction-CcbYstq5.js} +2 -2
  144. package/_assets/{send-gasless-transaction-B6-du22J.js → send-gasless-transaction-B1NQvnVo.js} +2 -2
  145. package/_assets/{send-transaction-CWeSxAY3.js → send-transaction-C0UOEwny.js} +2 -2
  146. package/_assets/{sendMetaTransaction-Ds4_qSVu.js → sendMetaTransaction-DtXntIti.js} +1 -1
  147. package/_assets/{sendRawTransaction-lB8XtpQV.js → sendRawTransaction-BiRTWRI0.js} +3 -3
  148. package/_assets/{serializeTransaction-sBiqyBXY.js → serializeTransaction-Ba53L0KX.js} +1 -1
  149. package/_assets/{session-proposal-CtX3xmD3.js → session-proposal-CVkgVukc.js} +1 -1
  150. package/_assets/{session-request-TgRSx-rm.js → session-request-BwENbDXQ.js} +2 -2
  151. package/_assets/{signing-BLltMKaw.js → signing-5FpwvlDd.js} +3 -3
  152. package/_assets/{skeleton.styles-CHtcYOO2.js → skeleton.styles-h9G6h3Tc.js} +1 -1
  153. package/_assets/{socials-C-PWl5ol.js → socials-DorjGs6r.js} +1 -1
  154. package/_assets/{styled-ByfFVW_J.js → styled-B1tki3-6.js} +2 -2
  155. package/_assets/{swaps-cy6g7st6.js → swaps-CennN5F7.js} +1 -1
  156. package/_assets/{thirdweb-Dw1AnBJt.js → thirdweb-WI6Z07ev.js} +3 -3
  157. package/_assets/{to-serializable-transaction-BYNNGJgk.js → to-serializable-transaction-C9LYYgyI.js} +2 -2
  158. package/_assets/{transactionReceipt-D3t9P89G.js → transactionReceipt-DTe94rIE.js} +1 -1
  159. package/_assets/{transactions-Ci41fiMj.js → transactions-Dh3brWT9.js} +1 -1
  160. package/_assets/{useCreditPacks-DnkAdSB8.js → useCreditPacks-KSASUf3p.js} +1 -1
  161. package/_assets/{useImportable-DTHq6mob.js → useImportable-DRSc33Aj.js} +1 -1
  162. package/_assets/{useInfiniteGrid-C5_gVX8O.js → useInfiniteGrid-2uexVwwc.js} +1 -1
  163. package/_assets/useStore-DMEMsNdD.js +2 -0
  164. package/_assets/{useTheme-pA484HjF.js → useTheme-BeHCln35.js} +1 -1
  165. package/_assets/{verifyHash-Bwromxoc.js → verifyHash-A_t6GvG6.js} +1 -1
  166. package/_assets/{w3m-modal-yFiS_Jze.js → w3m-modal-kOpidGxt.js} +1 -1
  167. package/_assets/{w3m-modal-JLRA_T5o.js → w3m-modal-lKQJn3Hv.js} +1 -1
  168. package/_assets/{wait-for-tx-receipt-BXBtEFR-.js → wait-for-tx-receipt-s1aaFfaz.js} +1 -1
  169. package/_assets/{wallets-DB4fTO2e.js → wallets-3kLS0TAH.js} +5 -5
  170. package/_assets/{web-connector-CwHeziUM.js → web-connector-BXc53MpI.js} +3 -3
  171. package/_assets/{writeContract-lzu9ejzj.js → writeContract-7ZFesM-X.js} +1 -1
  172. package/_assets/{zoraTestnet-Bhmm9a22.js → zoraTestnet-DP_bnDZl.js} +1 -1
  173. package/email/credit-glyph.png +0 -0
  174. package/email/hero-credits.png +0 -0
  175. package/email/logo.png +0 -0
  176. package/email/social-discord.png +0 -0
  177. package/email/social-github.png +0 -0
  178. package/email/social-instagram.png +0 -0
  179. package/email/social-linkedin.png +0 -0
  180. package/email/social-tiktok.png +0 -0
  181. package/email/social-x.png +0 -0
  182. package/email/social-youtube.png +0 -0
  183. package/email/top-bar.png +0 -0
  184. package/index.html +11 -11
  185. package/package.json +2 -2
  186. package/_assets/LazyEmoteControls-C8q58ZLn.js +0 -2
  187. package/_assets/authorizations-CRcoV7f0.js +0 -1
  188. package/_assets/index-CKK-zMqi.js +0 -3880
@@ -1,4 +1,4 @@
1
- import{i as m,b as n}from"./lit-element-B3y9oplH.js";import{n as r}from"./class-map-CxwNmq0D.js";import{c as u}from"./index-DxKuqcFg.js";import"./index-C54j1-wd.js";import"./index-UWPTFHML.js";import{d as g,r as p,e as x}from"./index-hnGTtZoN.js";const b=g`
1
+ import{i as m,b as n}from"./lit-element-B3y9oplH.js";import{n as r}from"./class-map-CxwNmq0D.js";import{c as u}from"./index-zw3MxWrD.js";import"./index-wVpiAbCV.js";import"./index-KMn0kKq6.js";import{d as g,r as p,e as x}from"./index-C9n8rpAQ.js";const b=g`
2
2
  button {
3
3
  display: block;
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- import{i as g,b as e}from"./lit-element-B3y9oplH.js";import{r as f,n as w,o as v}from"./class-map-CxwNmq0D.js";import{d as y,r as k,e as P}from"./index-hnGTtZoN.js";import{c as b}from"./index-DxKuqcFg.js";import"./index-Dy-uR3t4.js";import{H as x}from"./HelpersUtil-DeEtn4Uv.js";import{R as u,E as A}from"./W3MFrameProviderSingleton-B6S06Y_H.js";import"./index-BLQrxn9F.js";import"./index-BS9mRV4X.js";const I=y`
1
+ import{i as g,b as e}from"./lit-element-B3y9oplH.js";import{r as f,n as w,o as v}from"./class-map-CxwNmq0D.js";import{d as y,r as k,e as P}from"./index-C9n8rpAQ.js";import{c as b}from"./index-zw3MxWrD.js";import"./index-CABfM9ed.js";import{H as x}from"./HelpersUtil-BgHry1Zl.js";import{R as u,E as A}from"./W3MFrameProviderSingleton-DauKY4Ir.js";import"./index-DqxxfXkG.js";import"./index-C3DZ04sJ.js";const I=y`
2
2
  :host {
3
3
  display: block;
4
4
  }
@@ -1,4 +1,4 @@
1
- import{a as d,i as p,b as m}from"./lit-element-B3y9oplH.js";import{n as h}from"./class-map-CxwNmq0D.js";import{r as f,v as r}from"./index-hnGTtZoN.js";import{c as x}from"./index-DxKuqcFg.js";const g=d`
1
+ import{a as d,i as p,b as m}from"./lit-element-B3y9oplH.js";import{n as h}from"./class-map-CxwNmq0D.js";import{r as f,v as r}from"./index-C9n8rpAQ.js";import{c as x}from"./index-zw3MxWrD.js";const g=d`
2
2
  :host {
3
3
  display: flex;
4
4
  }
@@ -1,4 +1,4 @@
1
- import{i as c,b as a}from"./lit-element-B3y9oplH.js";import{n as o,o as h}from"./class-map-CxwNmq0D.js";import{e as m,n as b}from"./ref-BsAZ42-h.js";import{c as x}from"./index-DxKuqcFg.js";import{d as f,r as $,e as g}from"./index-hnGTtZoN.js";const w=f`
1
+ import{i as c,b as a}from"./lit-element-B3y9oplH.js";import{n as o,o as h}from"./class-map-CxwNmq0D.js";import{e as m,n as b}from"./ref-BsAZ42-h.js";import{c as x}from"./index-zw3MxWrD.js";import{d as f,r as $,e as g}from"./index-C9n8rpAQ.js";const w=f`
2
2
  :host {
3
3
  position: relative;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{i as f,b as l,a as ee}from"./lit-element-B3y9oplH.js";import{n as c,o as w,r as u,a as Ii}from"./class-map-CxwNmq0D.js";import{d as v,r as _,e as W}from"./index-hnGTtZoN.js";import{c as p,U as F}from"./index-DxKuqcFg.js";import"./index-C54j1-wd.js";import"./index-CgPj91Wh.js";import"./index-DRwratoB.js";import{O as m,C as d,L as Ee,q as E,b as y,M as P,E as C,t as me,o as b,R as h,d as D,S as A,k as x,l as ze,W as Fe,ak as Xt,aj as he,a3 as J,a1 as qi,z as I,am as tt,A as _i,F as Ki,D as Gi,y as Xi,T as ft,V as Yt,X as Qt,a9 as Yi,ao as Qi,Z as Bt,ap as Ji}from"./W3MFrameProviderSingleton-B6S06Y_H.js";import"./index-BLQrxn9F.js";import{W as zs,a as Fs}from"./index-DnlLS_ys.js";import"./index-BU93X1R1.js";import"./index-Eas9yoRi.js";import"./index-2KdRKXEu.js";import{au as S}from"./NetworkUtil-DXqql1Wz.js";import{H as Jt}from"./HelpersUtil-DeEtn4Uv.js";import{n as Zi}from"./index-BS9mRV4X.js";import{E as Q}from"./ExchangeController-CwGAtelJ.js";import"./index-CKJapgfm.js";import"./index-D7-5iUKs.js";import"./index-DmJfaFSK.js";import{M as mt}from"./MathUtil-BGCe3rZ3.js";import"./index-D2gLfWlc.js";import{e as Zt,n as ei}from"./ref-BsAZ42-h.js";import"./index-BfrZo6vI.js";import"./index-UWPTFHML.js";import"./index-Dy-uR3t4.js";import"./index-Brr2CMye.js";import{O as bt}from"./index-BvQGZppV.js";import{e as en}from"./index-CL_zZiR1.js";import"./index-Baqe51s4.js";import"./index-CRNF_QU5.js";import{N as tn}from"./NavigationUtil-DmfK5sOV.js";import"./index-BNtwDdqR.js";import"./index-CKK-zMqi.js";import"./react-BYHuwl8r.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./index-D4mfZpjO.js";import"./events-DQ172AOg.js";import"./index-DQT21rdJ.js";import"./index-w01WQ1OT.js";import"./index-nibyPLVP.js";import"./index-BCSwRUu3.js";import"./index.es-D0J6Rjn_.js";import"./browser-ponyfill-Dj0kiq3a.js";import"./ConstantsUtil-CtukCvy7.js";import"./async-directive-BRxn_Py3.js";import"./browser-DxF-qILS.js";const nn=v`
1
+ import{i as f,b as l,a as ee}from"./lit-element-B3y9oplH.js";import{n as c,o as w,r as u,a as Ii}from"./class-map-CxwNmq0D.js";import{d as v,r as _,e as W}from"./index-C9n8rpAQ.js";import{c as p,U as F}from"./index-zw3MxWrD.js";import"./index-wVpiAbCV.js";import"./index-Dc1SY2tl.js";import"./index-DxZAhQ9S.js";import{O as m,C as d,L as Ee,q as E,b as y,M as P,E as C,t as me,o as b,R as h,d as D,S as A,k as x,l as ze,W as Fe,ak as Xt,aj as he,a3 as J,a1 as qi,z as I,am as tt,A as _i,F as Ki,D as Gi,y as Xi,T as ft,V as Yt,X as Qt,a9 as Yi,ao as Qi,Z as Bt,ap as Ji}from"./W3MFrameProviderSingleton-DauKY4Ir.js";import"./index-DqxxfXkG.js";import{W as zs,a as Fs}from"./index-DYM1B0LB.js";import"./index-CCvi817V.js";import"./index-CKpYDU9O.js";import"./index-C_YJJre1.js";import{au as S}from"./NetworkUtil-DXqql1Wz.js";import{H as Jt}from"./HelpersUtil-BgHry1Zl.js";import{n as Zi}from"./index-C3DZ04sJ.js";import{E as Q}from"./ExchangeController-CUapamq4.js";import"./index-VCROhFqu.js";import"./index-Cdylf7p_.js";import"./index-8zod7QnL.js";import{M as mt}from"./MathUtil-BGCe3rZ3.js";import"./index-B5cMAKQz.js";import{e as Zt,n as ei}from"./ref-BsAZ42-h.js";import"./index-Dm0rNET3.js";import"./index-KMn0kKq6.js";import"./index-CABfM9ed.js";import"./index-CE3AA7bo.js";import{O as bt}from"./index-B8oAyIz8.js";import{e as en}from"./index-CFOh8-vc.js";import"./index-Baf3w05O.js";import"./index-BzOkARHI.js";import{N as tn}from"./NavigationUtil-DmfK5sOV.js";import"./index-Cx1mshgQ.js";import"./index-CHVlPVbz.js";import"./react-BYHuwl8r.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./index-BBFb-GHY.js";import"./events-DQ172AOg.js";import"./index-_IId9FPs.js";import"./index-w01WQ1OT.js";import"./index-nibyPLVP.js";import"./index-tfg76WB4.js";import"./index.es-C50fJIvV.js";import"./browser-ponyfill-Dj0kiq3a.js";import"./ConstantsUtil-CtukCvy7.js";import"./async-directive-BRxn_Py3.js";import"./browser-DxF-qILS.js";const nn=v`
2
2
  :host {
3
3
  display: block;
4
4
  }
@@ -1,4 +1,4 @@
1
- import{i as u,b as h}from"./lit-element-B3y9oplH.js";import{n as d,o as f}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-DxKuqcFg.js";import{d as g,r as m,e as b}from"./index-hnGTtZoN.js";const y=g`
1
+ import{i as u,b as h}from"./lit-element-B3y9oplH.js";import{n as d,o as f}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-zw3MxWrD.js";import{d as g,r as m,e as b}from"./index-C9n8rpAQ.js";const y=g`
2
2
  :host {
3
3
  display: inline-flex;
4
4
  justify-content: center;
@@ -1,4 +1,4 @@
1
- import{i as h,b as v}from"./lit-element-B3y9oplH.js";import{n as d}from"./class-map-CxwNmq0D.js";import"./index-C54j1-wd.js";import{d as m,r as f}from"./index-hnGTtZoN.js";import{c as u,U as p}from"./index-DxKuqcFg.js";const g=m`
1
+ import{i as h,b as v}from"./lit-element-B3y9oplH.js";import{n as d}from"./class-map-CxwNmq0D.js";import"./index-wVpiAbCV.js";import{d as m,r as f}from"./index-C9n8rpAQ.js";import{c as u,U as p}from"./index-zw3MxWrD.js";const g=m`
2
2
  :host {
3
3
  display: block;
4
4
  width: var(--local-width);
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/in-app-wallet-calls-BxK-hX9G.js","_assets/wait-for-tx-receipt-BXBtEFR-.js","_assets/transactionReceipt-D3t9P89G.js","_assets/prepare-contract-call-DDzIRXLv.js","_assets/utils-BQF5MiO5.js","_assets/sentry-Dx-KuLV3.js","_assets/react-BYHuwl8r.js","_assets/to-serializable-transaction-BYNNGJgk.js","_assets/index-CKK-zMqi.js","_assets/dcl-schemas-CmtP3U6y.js","_assets/ethers-BDpbhgX6.js","_assets/intl-CBcMB1D2.js","_assets/index-l2QjlKjX.css","_assets/transaction-Col-q-Ce.js","_assets/sleep-mAKpSMLY.js","_assets/send-batch-transaction-D_JGI6Rn.js","_assets/send-transaction-CWeSxAY3.js","_assets/execute-BozDg2yb.js","_assets/detectExtension-DX7grDLh.js","_assets/eth_getTransactionCount-Ck8bEyl_.js","_assets/index-Xe0zG67j.js","_assets/signing-BLltMKaw.js","_assets/get-bytecode-BRKTQsHC.js","_assets/send-eip712-transaction-BAt6mbHJ.js","_assets/eth_sendRawTransaction-DPdnXbFR.js","_assets/sha256-CfLwtdyC.js","_assets/linkAccount-BtAQZlYa.js","_assets/wallets-DB4fTO2e.js","_assets/store-CraP4F4Y.js","_assets/hashTypedData-CVMcc6Hz.js","_assets/index-D4mfZpjO.js","_assets/events-DQ172AOg.js","_assets/index-DQT21rdJ.js","_assets/index-w01WQ1OT.js","_assets/index-nibyPLVP.js","_assets/index-CJdot1dH.js","_assets/index-BCSwRUu3.js","_assets/ethereum-CBeS7QFR.js","_assets/types-DC0Zmj1B.js"])))=>i.map(i=>d[i]);
2
- import{_ as b}from"./index-CKK-zMqi.js";import{e as R}from"./ethereum-CBeS7QFR.js";import{s as M}from"./types-DC0Zmj1B.js";import{f as D,e as I,a as v,w as B}from"./utils-BQF5MiO5.js";import{p as W,g as V}from"./get-bytecode-BRKTQsHC.js";import{b as F,g as H,t as O}from"./to-serializable-transaction-BYNNGJgk.js";import{r as $,e as N}from"./execute-BozDg2yb.js";import{g as f,a4 as U,f as k,T as z,s as g,h as y,c as j}from"./prepare-contract-call-DDzIRXLv.js";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 U({filters:t,signature:"event UserOperationRevertReason(bytes32 indexed userOpHash, address indexed sender, uint256 nonce, bytes revertReason)"})}function X(t={}){return U({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 _(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:[_(t.userOp),t.options.entrypointAddress??w]})}async function Ue(t,e){const n=await d({...t,operation:"eth_estimateUserOperationGas",params:[_(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 _e(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-BzgEl7Xp.js","_assets/wait-for-tx-receipt-s1aaFfaz.js","_assets/transactionReceipt-DTe94rIE.js","_assets/prepare-contract-call-DDzIRXLv.js","_assets/utils-BQF5MiO5.js","_assets/sentry-Dx-KuLV3.js","_assets/react-BYHuwl8r.js","_assets/to-serializable-transaction-C9LYYgyI.js","_assets/index-CHVlPVbz.js","_assets/dcl-schemas-CmtP3U6y.js","_assets/ethers-BDpbhgX6.js","_assets/intl-CBcMB1D2.js","_assets/index-l2QjlKjX.css","_assets/transaction-Col-q-Ce.js","_assets/sleep-mAKpSMLY.js","_assets/send-batch-transaction-DWWTS0gR.js","_assets/send-transaction-C0UOEwny.js","_assets/execute-B4Yh1llw.js","_assets/detectExtension-DX7grDLh.js","_assets/eth_getTransactionCount-Ck8bEyl_.js","_assets/index-BnBKCQ6R.js","_assets/signing-5FpwvlDd.js","_assets/get-bytecode-BRKTQsHC.js","_assets/send-eip712-transaction-CcbYstq5.js","_assets/eth_sendRawTransaction-DPdnXbFR.js","_assets/sha256-CfLwtdyC.js","_assets/linkAccount-BtAQZlYa.js","_assets/wallets-3kLS0TAH.js","_assets/store-CraP4F4Y.js","_assets/hashTypedData-BaZ-NVSh.js","_assets/index-BBFb-GHY.js","_assets/events-DQ172AOg.js","_assets/index-_IId9FPs.js","_assets/index-w01WQ1OT.js","_assets/index-nibyPLVP.js","_assets/index-CJdot1dH.js","_assets/index-tfg76WB4.js","_assets/ethereum-CBeS7QFR.js","_assets/types-DC0Zmj1B.js"])))=>i.map(i=>d[i]);
2
+ import{_ as b}from"./index-CHVlPVbz.js";import{e as R}from"./ethereum-CBeS7QFR.js";import{s as M}from"./types-DC0Zmj1B.js";import{f as D,e as I,a as v,w as B}from"./utils-BQF5MiO5.js";import{p as W,g as V}from"./get-bytecode-BRKTQsHC.js";import{b as F,g as H,t as O}from"./to-serializable-transaction-C9LYYgyI.js";import{r as $,e as N}from"./execute-B4Yh1llw.js";import{g as f,a4 as U,f as k,T as z,s as g,h as y,c as j}from"./prepare-contract-call-DDzIRXLv.js";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 U({filters:t,signature:"event UserOperationRevertReason(bytes32 indexed userOpHash, address indexed sender, uint256 nonce, bytes revertReason)"})}function X(t={}){return U({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 _(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:[_(t.userOp),t.options.entrypointAddress??w]})}async function Ue(t,e){const n=await d({...t,operation:"eth_estimateUserOperationGas",params:[_(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 _e(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-BxK-hX9G.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-BxK-hX9G.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-BxK-hX9G.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-Ck8bEyl_.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-Xe0zG67j.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,_e as b,Ee as c,xe as d,Ue as e,Z as f,E as g,_ as h,Ce as i,Pe as j,Ge as k,Ie as l,ce as m,Re as n};
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-BzgEl7Xp.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-BzgEl7Xp.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-BzgEl7Xp.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-Ck8bEyl_.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-BnBKCQ6R.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,_e as b,Ee as c,xe as d,Ue as e,Z as f,E as g,_ as h,Ce as i,Pe as j,Ge as k,Ie as l,ce as m,Re as n};
@@ -1,4 +1,4 @@
1
- import{i as m,b as f}from"./lit-element-B3y9oplH.js";import{n as h}from"./class-map-CxwNmq0D.js";import{c as l}from"./index-DxKuqcFg.js";import{d as c}from"./index-hnGTtZoN.js";const p=c`
1
+ import{i as m,b as f}from"./lit-element-B3y9oplH.js";import{n as h}from"./class-map-CxwNmq0D.js";import{c as l}from"./index-zw3MxWrD.js";import{d as c}from"./index-C9n8rpAQ.js";const p=c`
2
2
  :host {
3
3
  display: block;
4
4
  background: linear-gradient(
@@ -1,4 +1,4 @@
1
- import{i as oe,b as w}from"./lit-element-B3y9oplH.js";import{n as I,r as Q,o as Fe}from"./class-map-CxwNmq0D.js";import{d as se,r as Ce}from"./index-hnGTtZoN.js";import{U as Te,c as ae}from"./index-DxKuqcFg.js";import{g as ye}from"./react-BYHuwl8r.js";import"./index-BLQrxn9F.js";import"./index-Baqe51s4.js";import"./index-C54j1-wd.js";import"./index-UWPTFHML.js";import{C as pe,Y as F,b as xe,R as Re,O as Ne,E as Le,l as je,W as ke}from"./W3MFrameProviderSingleton-B6S06Y_H.js";var me={exports:{}},ze=me.exports,Ie;function Ue(){return Ie||(Ie=1,(function(e,t){(function(i,r){e.exports=r()})(ze,(function(){var i=1e3,r=6e4,o=36e5,n="millisecond",s="second",u="minute",g="hour",p="day",y="week",$="month",j="quarter",D="year",R="date",Y="Invalid Date",X=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ee=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,te={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(h){var l=["th","st","nd","rd"],a=h%100;return"["+h+(l[(a-20)%10]||l[a]||l[0])+"]"}},ie=function(h,l,a){var d=String(h);return!d||d.length>=l?h:""+Array(l+1-d.length).join(a)+h},q={s:ie,z:function(h){var l=-h.utcOffset(),a=Math.abs(l),d=Math.floor(a/60),c=a%60;return(l<=0?"+":"-")+ie(d,2,"0")+":"+ie(c,2,"0")},m:function h(l,a){if(l.date()<a.date())return-h(a,l);var d=12*(a.year()-l.year())+(a.month()-l.month()),c=l.clone().add(d,$),m=a-c<0,f=l.clone().add(d+(m?-1:1),$);return+(-(d+(a-c)/(m?c-f:f-c))||0)},a:function(h){return h<0?Math.ceil(h)||0:Math.floor(h)},p:function(h){return{M:$,y:D,w:y,d:p,D:R,h:g,m:u,s,ms:n,Q:j}[h]||String(h||"").toLowerCase().replace(/s$/,"")},u:function(h){return h===void 0}},S="en",O={};O[S]=te;var V="$isDayjsObject",B=function(h){return h instanceof le||!(!h||!h[V])},ce=function h(l,a,d){var c;if(!l)return S;if(typeof l=="string"){var m=l.toLowerCase();O[m]&&(c=m),a&&(O[m]=a,c=m);var f=l.split("-");if(!c&&f.length>1)return h(f[0])}else{var v=l.name;O[v]=l,c=v}return!d&&c&&(S=c),c||!d&&S},_=function(h,l){if(B(h))return h.clone();var a=typeof l=="object"?l:{};return a.date=h,a.args=arguments,new le(a)},x=q;x.l=ce,x.i=B,x.w=function(h,l){return _(h,{locale:l.$L,utc:l.$u,x:l.$x,$offset:l.$offset})};var le=(function(){function h(a){this.$L=ce(a.locale,null,!0),this.parse(a),this.$x=this.$x||a.x||{},this[V]=!0}var l=h.prototype;return l.parse=function(a){this.$d=(function(d){var c=d.date,m=d.utc;if(c===null)return new Date(NaN);if(x.u(c))return new Date;if(c instanceof Date)return new Date(c);if(typeof c=="string"&&!/Z$/i.test(c)){var f=c.match(X);if(f){var v=f[2]-1||0,b=(f[7]||"0").substring(0,3);return m?new Date(Date.UTC(f[1],v,f[3]||1,f[4]||0,f[5]||0,f[6]||0,b)):new Date(f[1],v,f[3]||1,f[4]||0,f[5]||0,f[6]||0,b)}}return new Date(c)})(a),this.init()},l.init=function(){var a=this.$d;this.$y=a.getFullYear(),this.$M=a.getMonth(),this.$D=a.getDate(),this.$W=a.getDay(),this.$H=a.getHours(),this.$m=a.getMinutes(),this.$s=a.getSeconds(),this.$ms=a.getMilliseconds()},l.$utils=function(){return x},l.isValid=function(){return this.$d.toString()!==Y},l.isSame=function(a,d){var c=_(a);return this.startOf(d)<=c&&c<=this.endOf(d)},l.isAfter=function(a,d){return _(a)<this.startOf(d)},l.isBefore=function(a,d){return this.endOf(d)<_(a)},l.$g=function(a,d,c){return x.u(a)?this[d]:this.set(c,a)},l.unix=function(){return Math.floor(this.valueOf()/1e3)},l.valueOf=function(){return this.$d.getTime()},l.startOf=function(a,d){var c=this,m=!!x.u(d)||d,f=x.p(a),v=function(P,A){var z=x.w(c.$u?Date.UTC(c.$y,A,P):new Date(c.$y,A,P),c);return m?z:z.endOf(p)},b=function(P,A){return x.w(c.toDate()[P].apply(c.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(A)),c)},T=this.$W,M=this.$M,C=this.$D,J="set"+(this.$u?"UTC":"");switch(f){case D:return m?v(1,0):v(31,11);case $:return m?v(1,M):v(0,M+1);case y:var W=this.$locale().weekStart||0,re=(T<W?T+7:T)-W;return v(m?C-re:C+(6-re),M);case p:case R:return b(J+"Hours",0);case g:return b(J+"Minutes",1);case u:return b(J+"Seconds",2);case s:return b(J+"Milliseconds",3);default:return this.clone()}},l.endOf=function(a){return this.startOf(a,!1)},l.$set=function(a,d){var c,m=x.p(a),f="set"+(this.$u?"UTC":""),v=(c={},c[p]=f+"Date",c[R]=f+"Date",c[$]=f+"Month",c[D]=f+"FullYear",c[g]=f+"Hours",c[u]=f+"Minutes",c[s]=f+"Seconds",c[n]=f+"Milliseconds",c)[m],b=m===p?this.$D+(d-this.$W):d;if(m===$||m===D){var T=this.clone().set(R,1);T.$d[v](b),T.init(),this.$d=T.set(R,Math.min(this.$D,T.daysInMonth())).$d}else v&&this.$d[v](b);return this.init(),this},l.set=function(a,d){return this.clone().$set(a,d)},l.get=function(a){return this[x.p(a)]()},l.add=function(a,d){var c,m=this;a=Number(a);var f=x.p(d),v=function(M){var C=_(m);return x.w(C.date(C.date()+Math.round(M*a)),m)};if(f===$)return this.set($,this.$M+a);if(f===D)return this.set(D,this.$y+a);if(f===p)return v(1);if(f===y)return v(7);var b=(c={},c[u]=r,c[g]=o,c[s]=i,c)[f]||1,T=this.$d.getTime()+a*b;return x.w(T,this)},l.subtract=function(a,d){return this.add(-1*a,d)},l.format=function(a){var d=this,c=this.$locale();if(!this.isValid())return c.invalidDate||Y;var m=a||"YYYY-MM-DDTHH:mm:ssZ",f=x.z(this),v=this.$H,b=this.$m,T=this.$M,M=c.weekdays,C=c.months,J=c.meridiem,W=function(A,z,ne,de){return A&&(A[z]||A(d,m))||ne[z].slice(0,de)},re=function(A){return x.s(v%12||12,A,"0")},P=J||function(A,z,ne){var de=A<12?"AM":"PM";return ne?de.toLowerCase():de};return m.replace(ee,(function(A,z){return z||(function(ne){switch(ne){case"YY":return String(d.$y).slice(-2);case"YYYY":return x.s(d.$y,4,"0");case"M":return T+1;case"MM":return x.s(T+1,2,"0");case"MMM":return W(c.monthsShort,T,C,3);case"MMMM":return W(C,T);case"D":return d.$D;case"DD":return x.s(d.$D,2,"0");case"d":return String(d.$W);case"dd":return W(c.weekdaysMin,d.$W,M,2);case"ddd":return W(c.weekdaysShort,d.$W,M,3);case"dddd":return M[d.$W];case"H":return String(v);case"HH":return x.s(v,2,"0");case"h":return re(1);case"hh":return re(2);case"a":return P(v,b,!0);case"A":return P(v,b,!1);case"m":return String(b);case"mm":return x.s(b,2,"0");case"s":return String(d.$s);case"ss":return x.s(d.$s,2,"0");case"SSS":return x.s(d.$ms,3,"0");case"Z":return f}return null})(A)||f.replace(":","")}))},l.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},l.diff=function(a,d,c){var m,f=this,v=x.p(d),b=_(a),T=(b.utcOffset()-this.utcOffset())*r,M=this-b,C=function(){return x.m(f,b)};switch(v){case D:m=C()/12;break;case $:m=C();break;case j:m=C()/3;break;case y:m=(M-T)/6048e5;break;case p:m=(M-T)/864e5;break;case g:m=M/o;break;case u:m=M/r;break;case s:m=M/i;break;default:m=M}return c?m:x.a(m)},l.daysInMonth=function(){return this.endOf($).$D},l.$locale=function(){return O[this.$L]},l.locale=function(a,d){if(!a)return this.$L;var c=this.clone(),m=ce(a,d,!0);return m&&(c.$L=m),c},l.clone=function(){return x.w(this.$d,this)},l.toDate=function(){return new Date(this.valueOf())},l.toJSON=function(){return this.isValid()?this.toISOString():null},l.toISOString=function(){return this.$d.toISOString()},l.toString=function(){return this.$d.toUTCString()},h})(),_e=le.prototype;return _.prototype=_e,[["$ms",n],["$s",s],["$m",u],["$H",g],["$W",p],["$M",$],["$y",D],["$D",R]].forEach((function(h){_e[h[1]]=function(l){return this.$g(l,h[0],h[1])}})),_.extend=function(h,l){return h.$i||(h(l,le,_),h.$i=!0),_},_.locale=ce,_.isDayjs=B,_.unix=function(h){return _(1e3*h)},_.en=O[S],_.Ls=O,_.p={},_}))})(me)),me.exports}var Ee=Ue();const K=ye(Ee);var fe={exports:{}},Ye=fe.exports,Me;function qe(){return Me||(Me=1,(function(e,t){(function(i,r){e.exports=r()})(Ye,(function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(i){var r=["th","st","nd","rd"],o=i%100;return"["+i+(r[(o-20)%10]||r[o]||r[0])+"]"}}}))})(fe)),fe.exports}var Be=qe();const We=ye(Be);var ge={exports:{}},Pe=ge.exports,Se;function He(){return Se||(Se=1,(function(e,t){(function(i,r){e.exports=r()})(Pe,(function(){return function(i,r,o){i=i||{};var n=r.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function u(p,y,$,j){return n.fromToBase(p,y,$,j)}o.en.relativeTime=s,n.fromToBase=function(p,y,$,j,D){for(var R,Y,X,ee=$.$locale().relativeTime||s,te=i.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],ie=te.length,q=0;q<ie;q+=1){var S=te[q];S.d&&(R=j?o(p).diff($,S.d,!0):$.diff(p,S.d,!0));var O=(i.rounding||Math.round)(Math.abs(R));if(X=R>0,O<=S.r||!S.r){O<=1&&q>0&&(S=te[q-1]);var V=ee[S.l];D&&(O=D(""+O)),Y=typeof V=="string"?V.replace("%d",O):V(O,y,S.l,X);break}}if(y)return Y;var B=X?ee.future:ee.past;return typeof B=="function"?B(Y):B.replace("%s",Y)},n.to=function(p,y){return u(p,y,this,!0)},n.from=function(p,y){return u(p,y,this)};var g=function(p){return p.$u?o.utc():o()};n.toNow=function(p){return this.to(g(this),p)},n.fromNow=function(p){return this.from(g(this),p)}}}))})(ge)),ge.exports}var Ge=He();const Ve=ye(Ge);var we={exports:{}},Je=we.exports,Oe;function Ze(){return Oe||(Oe=1,(function(e,t){(function(i,r){e.exports=r()})(Je,(function(){return function(i,r,o){o.updateLocale=function(n,s){var u=o.Ls[n];if(u)return(s?Object.keys(s):[]).forEach((function(g){u[g]=s[g]})),u}}}))})(we)),we.exports}var Ke=Ze();const Qe=ye(Ke);K.extend(Ve);K.extend(Qe);const Xe={...We,name:"en-web3-modal",relativeTime:{future:"in %s",past:"%s ago",s:"%d sec",m:"1 min",mm:"%d min",h:"1 hr",hh:"%d hrs",d:"1 d",dd:"%d d",M:"1 mo",MM:"%d mo",y:"1 yr",yy:"%d yr"}},et=["January","February","March","April","May","June","July","August","September","October","November","December"];K.locale("en-web3-modal",Xe);const $e={getMonthNameByIndex(e){return et[e]},getYear(e=new Date().toISOString()){return K(e).year()},getRelativeDateFromNow(e){return K(e).locale("en-web3-modal").fromNow(!0)},formatDate(e,t="DD MMM"){return K(e).format(t)}},tt=3,he=.1,it=["receive","deposit","borrow","claim"],rt=["withdraw","repay","burn"],Z={getTransactionGroupTitle(e,t){const i=$e.getYear(),r=$e.getMonthNameByIndex(t);return e===i?r:`${r} ${e}`},getTransactionImages(e){const[t]=e;return(e==null?void 0:e.length)>1?e.map(r=>this.getTransactionImage(r)):[this.getTransactionImage(t)]},getTransactionImage(e){return{type:Z.getTransactionTransferTokenType(e),url:Z.getTransactionImageURL(e)}},getTransactionImageURL(e){var o,n,s,u,g;let t;const i=!!(e!=null&&e.nft_info),r=!!(e!=null&&e.fungible_info);return e&&i?t=(s=(n=(o=e==null?void 0:e.nft_info)==null?void 0:o.content)==null?void 0:n.preview)==null?void 0:s.url:e&&r&&(t=(g=(u=e==null?void 0:e.fungible_info)==null?void 0:u.icon)==null?void 0:g.url),t},getTransactionTransferTokenType(e){if(e!=null&&e.fungible_info)return"FUNGIBLE";if(e!=null&&e.nft_info)return"NFT"},getTransactionDescriptions(e,t){var j;const i=(j=e==null?void 0:e.metadata)==null?void 0:j.operationType,r=t||(e==null?void 0:e.transfers),o=r&&r.length>0,n=r&&r.length>1,s=o&&r.every(D=>!!(D!=null&&D.fungible_info)),[u,g]=r||[];let p=this.getTransferDescription(u),y=this.getTransferDescription(g);if(!o)return(i==="send"||i==="receive")&&s?(p=Te.getTruncateString({string:e==null?void 0:e.metadata.sentFrom,charsStart:4,charsEnd:6,truncate:"middle"}),y=Te.getTruncateString({string:e==null?void 0:e.metadata.sentTo,charsStart:4,charsEnd:6,truncate:"middle"}),[p,y]):[e.metadata.status];if(n)return r==null?void 0:r.map(D=>this.getTransferDescription(D));let $="";return it.includes(i)?$="+":rt.includes(i)&&($="-"),p=$.concat(p),[p]},getTransferDescription(e){var i;let t="";return e&&(e!=null&&e.nft_info?t=((i=e==null?void 0:e.nft_info)==null?void 0:i.name)||"-":e!=null&&e.fungible_info&&(t=this.getFungibleTransferDescription(e)||"-")),t},getFungibleTransferDescription(e){var r;return e?[this.getQuantityFixedValue(e==null?void 0:e.quantity.numeric),(r=e==null?void 0:e.fungible_info)==null?void 0:r.symbol].join(" ").trim():null},mergeTransfers(e){if((e==null?void 0:e.length)<=1)return e;const i=this.filterGasFeeTransfers(e).reduce((o,n)=>{var g;const s=(g=n==null?void 0:n.fungible_info)==null?void 0:g.name,u=o.find(({fungible_info:p,direction:y})=>s&&s===(p==null?void 0:p.name)&&y===n.direction);if(u){const p=Number(u.quantity.numeric)+Number(n.quantity.numeric);u.quantity.numeric=p.toString(),u.value=(u.value||0)+(n.value||0)}else o.push(n);return o},[]);let r=i;return i.length>2&&(r=i.sort((o,n)=>(n.value||0)-(o.value||0)).slice(0,2)),r=r.sort((o,n)=>o.direction==="out"&&n.direction==="in"?-1:o.direction==="in"&&n.direction==="out"?1:0),r},filterGasFeeTransfers(e){const t=e==null?void 0:e.reduce((r,o)=>{var s;const n=(s=o==null?void 0:o.fungible_info)==null?void 0:s.name;return n&&(r[n]||(r[n]=[]),r[n].push(o)),r},{}),i=[];return Object.values(t??{}).forEach(r=>{if(r.length===1){const o=r[0];o&&i.push(o)}else{const o=r.filter(s=>s.direction==="in"),n=r.filter(s=>s.direction==="out");if(o.length===1&&n.length===1){const s=o[0],u=n[0];let g=!1;if(s&&u){const p=Number(s.quantity.numeric),y=Number(u.quantity.numeric);y<p*he?(i.push(s),g=!0):p<y*he&&(i.push(u),g=!0)}g||i.push(...r)}else{const s=this.filterGasFeesFromTokenGroup(r);i.push(...s)}}}),e==null||e.forEach(r=>{var o;(o=r==null?void 0:r.fungible_info)!=null&&o.name||i.push(r)}),i},filterGasFeesFromTokenGroup(e){if(e.length<=1)return e;const t=e==null?void 0:e.map(u=>Number(u.quantity.numeric)),i=Math.max(...t),r=Math.min(...t),o=.01;if(r<i*o)return e==null?void 0:e.filter(g=>Number(g.quantity.numeric)>=i*o);const n=e==null?void 0:e.filter(u=>u.direction==="in"),s=e==null?void 0:e.filter(u=>u.direction==="out");if(n.length===1&&s.length===1){const u=n[0],g=s[0];if(u&&g){const p=Number(u.quantity.numeric),y=Number(g.quantity.numeric);if(y<p*he)return[u];if(p<y*he)return[g]}}return e},getQuantityFixedValue(e){return e?parseFloat(e).toFixed(tt):null}};var be;(function(e){e.approve="approved",e.bought="bought",e.borrow="borrowed",e.burn="burnt",e.cancel="canceled",e.claim="claimed",e.deploy="deployed",e.deposit="deposited",e.execute="executed",e.mint="minted",e.receive="received",e.repay="repaid",e.send="sent",e.sell="sold",e.stake="staked",e.trade="swapped",e.unstake="unstaked",e.withdraw="withdrawn"})(be||(be={}));const nt=se`
1
+ import{i as oe,b as w}from"./lit-element-B3y9oplH.js";import{n as I,r as Q,o as Fe}from"./class-map-CxwNmq0D.js";import{d as se,r as Ce}from"./index-C9n8rpAQ.js";import{U as Te,c as ae}from"./index-zw3MxWrD.js";import{g as ye}from"./react-BYHuwl8r.js";import"./index-DqxxfXkG.js";import"./index-Baf3w05O.js";import"./index-wVpiAbCV.js";import"./index-KMn0kKq6.js";import{C as pe,Y as F,b as xe,R as Re,O as Ne,E as Le,l as je,W as ke}from"./W3MFrameProviderSingleton-DauKY4Ir.js";var me={exports:{}},ze=me.exports,Ie;function Ue(){return Ie||(Ie=1,(function(e,t){(function(i,r){e.exports=r()})(ze,(function(){var i=1e3,r=6e4,o=36e5,n="millisecond",s="second",u="minute",g="hour",p="day",y="week",$="month",j="quarter",D="year",R="date",Y="Invalid Date",X=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ee=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,te={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(h){var l=["th","st","nd","rd"],a=h%100;return"["+h+(l[(a-20)%10]||l[a]||l[0])+"]"}},ie=function(h,l,a){var d=String(h);return!d||d.length>=l?h:""+Array(l+1-d.length).join(a)+h},q={s:ie,z:function(h){var l=-h.utcOffset(),a=Math.abs(l),d=Math.floor(a/60),c=a%60;return(l<=0?"+":"-")+ie(d,2,"0")+":"+ie(c,2,"0")},m:function h(l,a){if(l.date()<a.date())return-h(a,l);var d=12*(a.year()-l.year())+(a.month()-l.month()),c=l.clone().add(d,$),m=a-c<0,f=l.clone().add(d+(m?-1:1),$);return+(-(d+(a-c)/(m?c-f:f-c))||0)},a:function(h){return h<0?Math.ceil(h)||0:Math.floor(h)},p:function(h){return{M:$,y:D,w:y,d:p,D:R,h:g,m:u,s,ms:n,Q:j}[h]||String(h||"").toLowerCase().replace(/s$/,"")},u:function(h){return h===void 0}},S="en",O={};O[S]=te;var V="$isDayjsObject",B=function(h){return h instanceof le||!(!h||!h[V])},ce=function h(l,a,d){var c;if(!l)return S;if(typeof l=="string"){var m=l.toLowerCase();O[m]&&(c=m),a&&(O[m]=a,c=m);var f=l.split("-");if(!c&&f.length>1)return h(f[0])}else{var v=l.name;O[v]=l,c=v}return!d&&c&&(S=c),c||!d&&S},_=function(h,l){if(B(h))return h.clone();var a=typeof l=="object"?l:{};return a.date=h,a.args=arguments,new le(a)},x=q;x.l=ce,x.i=B,x.w=function(h,l){return _(h,{locale:l.$L,utc:l.$u,x:l.$x,$offset:l.$offset})};var le=(function(){function h(a){this.$L=ce(a.locale,null,!0),this.parse(a),this.$x=this.$x||a.x||{},this[V]=!0}var l=h.prototype;return l.parse=function(a){this.$d=(function(d){var c=d.date,m=d.utc;if(c===null)return new Date(NaN);if(x.u(c))return new Date;if(c instanceof Date)return new Date(c);if(typeof c=="string"&&!/Z$/i.test(c)){var f=c.match(X);if(f){var v=f[2]-1||0,b=(f[7]||"0").substring(0,3);return m?new Date(Date.UTC(f[1],v,f[3]||1,f[4]||0,f[5]||0,f[6]||0,b)):new Date(f[1],v,f[3]||1,f[4]||0,f[5]||0,f[6]||0,b)}}return new Date(c)})(a),this.init()},l.init=function(){var a=this.$d;this.$y=a.getFullYear(),this.$M=a.getMonth(),this.$D=a.getDate(),this.$W=a.getDay(),this.$H=a.getHours(),this.$m=a.getMinutes(),this.$s=a.getSeconds(),this.$ms=a.getMilliseconds()},l.$utils=function(){return x},l.isValid=function(){return this.$d.toString()!==Y},l.isSame=function(a,d){var c=_(a);return this.startOf(d)<=c&&c<=this.endOf(d)},l.isAfter=function(a,d){return _(a)<this.startOf(d)},l.isBefore=function(a,d){return this.endOf(d)<_(a)},l.$g=function(a,d,c){return x.u(a)?this[d]:this.set(c,a)},l.unix=function(){return Math.floor(this.valueOf()/1e3)},l.valueOf=function(){return this.$d.getTime()},l.startOf=function(a,d){var c=this,m=!!x.u(d)||d,f=x.p(a),v=function(P,A){var z=x.w(c.$u?Date.UTC(c.$y,A,P):new Date(c.$y,A,P),c);return m?z:z.endOf(p)},b=function(P,A){return x.w(c.toDate()[P].apply(c.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(A)),c)},T=this.$W,M=this.$M,C=this.$D,J="set"+(this.$u?"UTC":"");switch(f){case D:return m?v(1,0):v(31,11);case $:return m?v(1,M):v(0,M+1);case y:var W=this.$locale().weekStart||0,re=(T<W?T+7:T)-W;return v(m?C-re:C+(6-re),M);case p:case R:return b(J+"Hours",0);case g:return b(J+"Minutes",1);case u:return b(J+"Seconds",2);case s:return b(J+"Milliseconds",3);default:return this.clone()}},l.endOf=function(a){return this.startOf(a,!1)},l.$set=function(a,d){var c,m=x.p(a),f="set"+(this.$u?"UTC":""),v=(c={},c[p]=f+"Date",c[R]=f+"Date",c[$]=f+"Month",c[D]=f+"FullYear",c[g]=f+"Hours",c[u]=f+"Minutes",c[s]=f+"Seconds",c[n]=f+"Milliseconds",c)[m],b=m===p?this.$D+(d-this.$W):d;if(m===$||m===D){var T=this.clone().set(R,1);T.$d[v](b),T.init(),this.$d=T.set(R,Math.min(this.$D,T.daysInMonth())).$d}else v&&this.$d[v](b);return this.init(),this},l.set=function(a,d){return this.clone().$set(a,d)},l.get=function(a){return this[x.p(a)]()},l.add=function(a,d){var c,m=this;a=Number(a);var f=x.p(d),v=function(M){var C=_(m);return x.w(C.date(C.date()+Math.round(M*a)),m)};if(f===$)return this.set($,this.$M+a);if(f===D)return this.set(D,this.$y+a);if(f===p)return v(1);if(f===y)return v(7);var b=(c={},c[u]=r,c[g]=o,c[s]=i,c)[f]||1,T=this.$d.getTime()+a*b;return x.w(T,this)},l.subtract=function(a,d){return this.add(-1*a,d)},l.format=function(a){var d=this,c=this.$locale();if(!this.isValid())return c.invalidDate||Y;var m=a||"YYYY-MM-DDTHH:mm:ssZ",f=x.z(this),v=this.$H,b=this.$m,T=this.$M,M=c.weekdays,C=c.months,J=c.meridiem,W=function(A,z,ne,de){return A&&(A[z]||A(d,m))||ne[z].slice(0,de)},re=function(A){return x.s(v%12||12,A,"0")},P=J||function(A,z,ne){var de=A<12?"AM":"PM";return ne?de.toLowerCase():de};return m.replace(ee,(function(A,z){return z||(function(ne){switch(ne){case"YY":return String(d.$y).slice(-2);case"YYYY":return x.s(d.$y,4,"0");case"M":return T+1;case"MM":return x.s(T+1,2,"0");case"MMM":return W(c.monthsShort,T,C,3);case"MMMM":return W(C,T);case"D":return d.$D;case"DD":return x.s(d.$D,2,"0");case"d":return String(d.$W);case"dd":return W(c.weekdaysMin,d.$W,M,2);case"ddd":return W(c.weekdaysShort,d.$W,M,3);case"dddd":return M[d.$W];case"H":return String(v);case"HH":return x.s(v,2,"0");case"h":return re(1);case"hh":return re(2);case"a":return P(v,b,!0);case"A":return P(v,b,!1);case"m":return String(b);case"mm":return x.s(b,2,"0");case"s":return String(d.$s);case"ss":return x.s(d.$s,2,"0");case"SSS":return x.s(d.$ms,3,"0");case"Z":return f}return null})(A)||f.replace(":","")}))},l.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},l.diff=function(a,d,c){var m,f=this,v=x.p(d),b=_(a),T=(b.utcOffset()-this.utcOffset())*r,M=this-b,C=function(){return x.m(f,b)};switch(v){case D:m=C()/12;break;case $:m=C();break;case j:m=C()/3;break;case y:m=(M-T)/6048e5;break;case p:m=(M-T)/864e5;break;case g:m=M/o;break;case u:m=M/r;break;case s:m=M/i;break;default:m=M}return c?m:x.a(m)},l.daysInMonth=function(){return this.endOf($).$D},l.$locale=function(){return O[this.$L]},l.locale=function(a,d){if(!a)return this.$L;var c=this.clone(),m=ce(a,d,!0);return m&&(c.$L=m),c},l.clone=function(){return x.w(this.$d,this)},l.toDate=function(){return new Date(this.valueOf())},l.toJSON=function(){return this.isValid()?this.toISOString():null},l.toISOString=function(){return this.$d.toISOString()},l.toString=function(){return this.$d.toUTCString()},h})(),_e=le.prototype;return _.prototype=_e,[["$ms",n],["$s",s],["$m",u],["$H",g],["$W",p],["$M",$],["$y",D],["$D",R]].forEach((function(h){_e[h[1]]=function(l){return this.$g(l,h[0],h[1])}})),_.extend=function(h,l){return h.$i||(h(l,le,_),h.$i=!0),_},_.locale=ce,_.isDayjs=B,_.unix=function(h){return _(1e3*h)},_.en=O[S],_.Ls=O,_.p={},_}))})(me)),me.exports}var Ee=Ue();const K=ye(Ee);var fe={exports:{}},Ye=fe.exports,Me;function qe(){return Me||(Me=1,(function(e,t){(function(i,r){e.exports=r()})(Ye,(function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(i){var r=["th","st","nd","rd"],o=i%100;return"["+i+(r[(o-20)%10]||r[o]||r[0])+"]"}}}))})(fe)),fe.exports}var Be=qe();const We=ye(Be);var ge={exports:{}},Pe=ge.exports,Se;function He(){return Se||(Se=1,(function(e,t){(function(i,r){e.exports=r()})(Pe,(function(){return function(i,r,o){i=i||{};var n=r.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function u(p,y,$,j){return n.fromToBase(p,y,$,j)}o.en.relativeTime=s,n.fromToBase=function(p,y,$,j,D){for(var R,Y,X,ee=$.$locale().relativeTime||s,te=i.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],ie=te.length,q=0;q<ie;q+=1){var S=te[q];S.d&&(R=j?o(p).diff($,S.d,!0):$.diff(p,S.d,!0));var O=(i.rounding||Math.round)(Math.abs(R));if(X=R>0,O<=S.r||!S.r){O<=1&&q>0&&(S=te[q-1]);var V=ee[S.l];D&&(O=D(""+O)),Y=typeof V=="string"?V.replace("%d",O):V(O,y,S.l,X);break}}if(y)return Y;var B=X?ee.future:ee.past;return typeof B=="function"?B(Y):B.replace("%s",Y)},n.to=function(p,y){return u(p,y,this,!0)},n.from=function(p,y){return u(p,y,this)};var g=function(p){return p.$u?o.utc():o()};n.toNow=function(p){return this.to(g(this),p)},n.fromNow=function(p){return this.from(g(this),p)}}}))})(ge)),ge.exports}var Ge=He();const Ve=ye(Ge);var we={exports:{}},Je=we.exports,Oe;function Ze(){return Oe||(Oe=1,(function(e,t){(function(i,r){e.exports=r()})(Je,(function(){return function(i,r,o){o.updateLocale=function(n,s){var u=o.Ls[n];if(u)return(s?Object.keys(s):[]).forEach((function(g){u[g]=s[g]})),u}}}))})(we)),we.exports}var Ke=Ze();const Qe=ye(Ke);K.extend(Ve);K.extend(Qe);const Xe={...We,name:"en-web3-modal",relativeTime:{future:"in %s",past:"%s ago",s:"%d sec",m:"1 min",mm:"%d min",h:"1 hr",hh:"%d hrs",d:"1 d",dd:"%d d",M:"1 mo",MM:"%d mo",y:"1 yr",yy:"%d yr"}},et=["January","February","March","April","May","June","July","August","September","October","November","December"];K.locale("en-web3-modal",Xe);const $e={getMonthNameByIndex(e){return et[e]},getYear(e=new Date().toISOString()){return K(e).year()},getRelativeDateFromNow(e){return K(e).locale("en-web3-modal").fromNow(!0)},formatDate(e,t="DD MMM"){return K(e).format(t)}},tt=3,he=.1,it=["receive","deposit","borrow","claim"],rt=["withdraw","repay","burn"],Z={getTransactionGroupTitle(e,t){const i=$e.getYear(),r=$e.getMonthNameByIndex(t);return e===i?r:`${r} ${e}`},getTransactionImages(e){const[t]=e;return(e==null?void 0:e.length)>1?e.map(r=>this.getTransactionImage(r)):[this.getTransactionImage(t)]},getTransactionImage(e){return{type:Z.getTransactionTransferTokenType(e),url:Z.getTransactionImageURL(e)}},getTransactionImageURL(e){var o,n,s,u,g;let t;const i=!!(e!=null&&e.nft_info),r=!!(e!=null&&e.fungible_info);return e&&i?t=(s=(n=(o=e==null?void 0:e.nft_info)==null?void 0:o.content)==null?void 0:n.preview)==null?void 0:s.url:e&&r&&(t=(g=(u=e==null?void 0:e.fungible_info)==null?void 0:u.icon)==null?void 0:g.url),t},getTransactionTransferTokenType(e){if(e!=null&&e.fungible_info)return"FUNGIBLE";if(e!=null&&e.nft_info)return"NFT"},getTransactionDescriptions(e,t){var j;const i=(j=e==null?void 0:e.metadata)==null?void 0:j.operationType,r=t||(e==null?void 0:e.transfers),o=r&&r.length>0,n=r&&r.length>1,s=o&&r.every(D=>!!(D!=null&&D.fungible_info)),[u,g]=r||[];let p=this.getTransferDescription(u),y=this.getTransferDescription(g);if(!o)return(i==="send"||i==="receive")&&s?(p=Te.getTruncateString({string:e==null?void 0:e.metadata.sentFrom,charsStart:4,charsEnd:6,truncate:"middle"}),y=Te.getTruncateString({string:e==null?void 0:e.metadata.sentTo,charsStart:4,charsEnd:6,truncate:"middle"}),[p,y]):[e.metadata.status];if(n)return r==null?void 0:r.map(D=>this.getTransferDescription(D));let $="";return it.includes(i)?$="+":rt.includes(i)&&($="-"),p=$.concat(p),[p]},getTransferDescription(e){var i;let t="";return e&&(e!=null&&e.nft_info?t=((i=e==null?void 0:e.nft_info)==null?void 0:i.name)||"-":e!=null&&e.fungible_info&&(t=this.getFungibleTransferDescription(e)||"-")),t},getFungibleTransferDescription(e){var r;return e?[this.getQuantityFixedValue(e==null?void 0:e.quantity.numeric),(r=e==null?void 0:e.fungible_info)==null?void 0:r.symbol].join(" ").trim():null},mergeTransfers(e){if((e==null?void 0:e.length)<=1)return e;const i=this.filterGasFeeTransfers(e).reduce((o,n)=>{var g;const s=(g=n==null?void 0:n.fungible_info)==null?void 0:g.name,u=o.find(({fungible_info:p,direction:y})=>s&&s===(p==null?void 0:p.name)&&y===n.direction);if(u){const p=Number(u.quantity.numeric)+Number(n.quantity.numeric);u.quantity.numeric=p.toString(),u.value=(u.value||0)+(n.value||0)}else o.push(n);return o},[]);let r=i;return i.length>2&&(r=i.sort((o,n)=>(n.value||0)-(o.value||0)).slice(0,2)),r=r.sort((o,n)=>o.direction==="out"&&n.direction==="in"?-1:o.direction==="in"&&n.direction==="out"?1:0),r},filterGasFeeTransfers(e){const t=e==null?void 0:e.reduce((r,o)=>{var s;const n=(s=o==null?void 0:o.fungible_info)==null?void 0:s.name;return n&&(r[n]||(r[n]=[]),r[n].push(o)),r},{}),i=[];return Object.values(t??{}).forEach(r=>{if(r.length===1){const o=r[0];o&&i.push(o)}else{const o=r.filter(s=>s.direction==="in"),n=r.filter(s=>s.direction==="out");if(o.length===1&&n.length===1){const s=o[0],u=n[0];let g=!1;if(s&&u){const p=Number(s.quantity.numeric),y=Number(u.quantity.numeric);y<p*he?(i.push(s),g=!0):p<y*he&&(i.push(u),g=!0)}g||i.push(...r)}else{const s=this.filterGasFeesFromTokenGroup(r);i.push(...s)}}}),e==null||e.forEach(r=>{var o;(o=r==null?void 0:r.fungible_info)!=null&&o.name||i.push(r)}),i},filterGasFeesFromTokenGroup(e){if(e.length<=1)return e;const t=e==null?void 0:e.map(u=>Number(u.quantity.numeric)),i=Math.max(...t),r=Math.min(...t),o=.01;if(r<i*o)return e==null?void 0:e.filter(g=>Number(g.quantity.numeric)>=i*o);const n=e==null?void 0:e.filter(u=>u.direction==="in"),s=e==null?void 0:e.filter(u=>u.direction==="out");if(n.length===1&&s.length===1){const u=n[0],g=s[0];if(u&&g){const p=Number(u.quantity.numeric),y=Number(g.quantity.numeric);if(y<p*he)return[u];if(p<y*he)return[g]}}return e},getQuantityFixedValue(e){return e?parseFloat(e).toFixed(tt):null}};var be;(function(e){e.approve="approved",e.bought="bought",e.borrow="borrowed",e.burn="burnt",e.cancel="canceled",e.claim="claimed",e.deploy="deployed",e.deposit="deposited",e.execute="executed",e.mint="minted",e.receive="received",e.repay="repaid",e.send="sent",e.sell="sold",e.stake="staked",e.trade="swapped",e.unstake="unstaked",e.withdraw="withdrawn"})(be||(be={}));const nt=se`
2
2
  :host > wui-flex {
3
3
  display: flex;
4
4
  justify-content: center;
@@ -1 +1 @@
1
- import{r as k}from"./index-BV8s6ez1.js";import{az as w}from"./sendRawTransaction-lB8XtpQV.js";import{c as I,e as q}from"./hashTypedData-5hKkNljV.js";import"./NetworkUtil-DXqql1Wz.js";import"./sentry-Dx-KuLV3.js";import"./react-BYHuwl8r.js";import"./index-CKK-zMqi.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";const v=()=>"9.1.0",C=t=>t.toString(16).padStart(2,"0"),R=t=>{const e=new Uint8Array(t/2);return window.crypto.getRandomValues(e),Array.from(e,C).join("")},E=()=>typeof window<"u"?R(10):new Date().getTime().toString(36);class g{}g.makeRequest=(t,e)=>({id:E(),method:t,params:e,env:{sdkVersion:v()}});g.makeResponse=(t,e,s)=>({id:t,success:!0,version:s,data:e});g.makeErrorResponse=(t,e,s)=>({id:t,success:!1,error:e,version:s});var r;(function(t){t.sendTransactions="sendTransactions",t.rpcCall="rpcCall",t.getChainInfo="getChainInfo",t.getSafeInfo="getSafeInfo",t.getTxBySafeTxHash="getTxBySafeTxHash",t.getSafeBalances="getSafeBalances",t.signMessage="signMessage",t.signTypedMessage="signTypedMessage",t.getEnvironmentInfo="getEnvironmentInfo",t.getOffChainSignature="getOffChainSignature",t.requestAddressBook="requestAddressBook",t.wallet_getPermissions="wallet_getPermissions",t.wallet_requestPermissions="wallet_requestPermissions"})(r||(r={}));var f;(function(t){t.requestAddressBook="requestAddressBook"})(f||(f={}));class H{constructor(e=null,s=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:a,data:n,source:i})=>{const o=!n,l=!this.isServer&&i===window.parent,u=typeof n.version<"u"&&parseInt(n.version.split(".")[0]),B=typeof u=="number"&&u>=1;let y=!0;return Array.isArray(this.allowedOrigins)&&(y=this.allowedOrigins.find(P=>P.test(a))!==void 0),!o&&l&&B&&y},this.logIncomingMessage=a=>{console.info(`Safe Apps SDK v1: A message was received from origin ${a.origin}. `,a.data)},this.onParentMessage=a=>{this.isValidMessage(a)&&(this.debugMode&&this.logIncomingMessage(a),this.handleIncomingMessage(a.data))},this.handleIncomingMessage=a=>{const{id:n}=a,i=this.callbacks.get(n);i&&(i(a),this.callbacks.delete(n))},this.send=(a,n)=>{const i=g.makeRequest(a,n);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(i,"*"),new Promise((o,l)=>{this.callbacks.set(i.id,u=>{if(!u.success){l(new Error(u.error));return}o(u)})})},this.allowedOrigins=e,this.debugMode=s,this.isServer||window.addEventListener("message",this.onParentMessage)}}const S=t=>typeof t=="object"&&t!=null&&"domain"in t&&"types"in t&&"message"in t;var m=k();class A{constructor(e){this.communicator=e}async getBySafeTxHash(e){if(!e)throw new Error("Invalid safeTxHash");return(await this.communicator.send(r.getTxBySafeTxHash,{safeTxHash:e})).data}async signMessage(e){const s={message:e};return(await this.communicator.send(r.signMessage,s)).data}async signTypedMessage(e){if(!S(e))throw new Error("Invalid typed data");return(await this.communicator.send(r.signTypedMessage,{typedData:e})).data}async send({txs:e,params:s}){if(!e||!e.length)throw new Error("No transactions were passed");const a={txs:e,params:s};return(await this.communicator.send(r.sendTransactions,a)).data}}const c={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"},h={defaultBlockParam:(t="latest")=>t,returnFullTxObjectParam:(t=!1)=>t,blockNumberToHex:t=>Number.isInteger(t)?`0x${t.toString(16)}`:t};class O{constructor(e){this.communicator=e,this.call=this.buildRequest({call:c.eth_call,formatters:[null,h.defaultBlockParam]}),this.getBalance=this.buildRequest({call:c.eth_getBalance,formatters:[null,h.defaultBlockParam]}),this.getCode=this.buildRequest({call:c.eth_getCode,formatters:[null,h.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:c.eth_getStorageAt,formatters:[null,h.blockNumberToHex,h.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:c.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:c.eth_getBlockByHash,formatters:[null,h.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:c.eth_getBlockByNumber,formatters:[h.blockNumberToHex,h.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:c.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:c.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:c.eth_getTransactionCount,formatters:[null,h.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:c.eth_gasPrice}),this.getEstimateGas=s=>this.buildRequest({call:c.eth_estimateGas})([s]),this.setSafeSettings=this.buildRequest({call:c.safe_setSettings})}buildRequest(e){const{call:s,formatters:a}=e;return async n=>{a&&Array.isArray(n)&&a.forEach((l,u)=>{l&&(n[u]=l(n[u]))});const i={call:s,params:n||[]};return(await this.communicator.send(r.rpcCall,i)).data}}}const x="0x1626ba7e",V="0x20c13b0b",p=4001;class d extends Error{constructor(e,s,a){super(e),this.code=s,this.data=a,Object.setPrototypeOf(this,d.prototype)}}class _{constructor(e){this.communicator=e}async getPermissions(){return(await this.communicator.send(r.wallet_getPermissions,void 0)).data}async requestPermissions(e){if(!this.isPermissionRequestValid(e))throw new d("Permissions request is invalid",p);try{return(await this.communicator.send(r.wallet_requestPermissions,e)).data}catch{throw new d("Permissions rejected",p)}}isPermissionRequestValid(e){return e.every(s=>typeof s=="object"?Object.keys(s).every(a=>!!Object.values(f).includes(a)):!1)}}const b=(t,e)=>e.some(s=>s.parentCapability===t),M=()=>(t,e,s)=>{const a=s.value;return s.value=async function(){const n=new _(this.communicator);let i=await n.getPermissions();if(b(e,i)||(i=await n.requestPermissions([{[e]:{}}])),!b(e,i))throw new d("Permissions rejected",p);return a.apply(this)},s};var j=function(t,e,s,a){var n=arguments.length,i=n<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,s):a,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,s,a);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(i=(n<3?o(i):n>3?o(e,s,i):o(e,s))||i);return n>3&&i&&Object.defineProperty(e,s,i),i};class T{constructor(e){this.communicator=e}async getChainInfo(){return(await this.communicator.send(r.getChainInfo,void 0)).data}async getInfo(){return(await this.communicator.send(r.getSafeInfo,void 0)).data}async experimental_getBalances({currency:e="usd"}={}){return(await this.communicator.send(r.getSafeBalances,{currency:e})).data}async check1271Signature(e,s="0x"){const a=await this.getInfo(),n=w({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,s]}),i={call:c.eth_call,params:[{to:a.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(r.rpcCall,i)).data.slice(0,10).toLowerCase()===x}catch{return!1}}async check1271SignatureBytes(e,s="0x"){const a=await this.getInfo(),n=w({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,s]}),i={call:c.eth_call,params:[{to:a.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(r.rpcCall,i)).data.slice(0,10).toLowerCase()===V}catch{return!1}}calculateMessageHash(e){return I(e)}calculateTypedMessageHash(e){const s=typeof e.domain.chainId=="object"?e.domain.chainId.toNumber():Number(e.domain.chainId);let a=e.primaryType;if(!a){const n=Object.values(e.types),i=Object.keys(e.types).filter(o=>n.every(l=>l.every(({type:u})=>u.replace("[","").replace("]","")!==o)));if(i.length===0||i.length>1)throw new Error("Please specify primaryType");a=i[0]}return q({message:e.message,domain:{...e.domain,chainId:s,verifyingContract:e.domain.verifyingContract,salt:e.domain.salt},types:e.types,primaryType:a})}async getOffChainSignature(e){return(await this.communicator.send(r.getOffChainSignature,e)).data}async isMessageSigned(e,s="0x"){let a;if(typeof e=="string"&&(a=async()=>{const n=this.calculateMessageHash(e);return await this.isMessageHashSigned(n,s)}),S(e)&&(a=async()=>{const n=this.calculateTypedMessageHash(e);return await this.isMessageHashSigned(n,s)}),a)return await a();throw new Error("Invalid message type")}async isMessageHashSigned(e,s="0x"){const a=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(const n of a)if(await n(e,s))return!0;return!1}async getEnvironmentInfo(){return(await this.communicator.send(r.getEnvironmentInfo,void 0)).data}async requestAddressBook(){return(await this.communicator.send(r.requestAddressBook,void 0)).data}}j([M()],T.prototype,"requestAddressBook",null);class J{constructor(e={}){const{allowedDomains:s=null,debug:a=!1}=e;this.communicator=new H(s,a),this.eth=new O(this.communicator),this.txs=new A(this.communicator),this.safe=new T(this.communicator),this.wallet=new _(this.communicator)}}const Q=m.Operation,X=m.TokenType,Y=m.TransactionStatus,Z=m.TransferDirection;export{g as MessageFormatter,r as Methods,Q as Operation,c as RPC_CALLS,f as RestrictedMethods,X as TokenType,Y as TransactionStatus,Z as TransferDirection,J as default,v as getSDKVersion,S as isObjectEIP712TypedData};
1
+ import{r as k}from"./index-BV8s6ez1.js";import{az as w}from"./sendRawTransaction-BiRTWRI0.js";import{c as I,e as q}from"./hashTypedData-Dn1doKj6.js";import"./NetworkUtil-DXqql1Wz.js";import"./sentry-Dx-KuLV3.js";import"./react-BYHuwl8r.js";import"./index-CHVlPVbz.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";const v=()=>"9.1.0",C=t=>t.toString(16).padStart(2,"0"),R=t=>{const e=new Uint8Array(t/2);return window.crypto.getRandomValues(e),Array.from(e,C).join("")},E=()=>typeof window<"u"?R(10):new Date().getTime().toString(36);class g{}g.makeRequest=(t,e)=>({id:E(),method:t,params:e,env:{sdkVersion:v()}});g.makeResponse=(t,e,s)=>({id:t,success:!0,version:s,data:e});g.makeErrorResponse=(t,e,s)=>({id:t,success:!1,error:e,version:s});var r;(function(t){t.sendTransactions="sendTransactions",t.rpcCall="rpcCall",t.getChainInfo="getChainInfo",t.getSafeInfo="getSafeInfo",t.getTxBySafeTxHash="getTxBySafeTxHash",t.getSafeBalances="getSafeBalances",t.signMessage="signMessage",t.signTypedMessage="signTypedMessage",t.getEnvironmentInfo="getEnvironmentInfo",t.getOffChainSignature="getOffChainSignature",t.requestAddressBook="requestAddressBook",t.wallet_getPermissions="wallet_getPermissions",t.wallet_requestPermissions="wallet_requestPermissions"})(r||(r={}));var f;(function(t){t.requestAddressBook="requestAddressBook"})(f||(f={}));class H{constructor(e=null,s=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:a,data:n,source:i})=>{const o=!n,l=!this.isServer&&i===window.parent,u=typeof n.version<"u"&&parseInt(n.version.split(".")[0]),B=typeof u=="number"&&u>=1;let y=!0;return Array.isArray(this.allowedOrigins)&&(y=this.allowedOrigins.find(P=>P.test(a))!==void 0),!o&&l&&B&&y},this.logIncomingMessage=a=>{console.info(`Safe Apps SDK v1: A message was received from origin ${a.origin}. `,a.data)},this.onParentMessage=a=>{this.isValidMessage(a)&&(this.debugMode&&this.logIncomingMessage(a),this.handleIncomingMessage(a.data))},this.handleIncomingMessage=a=>{const{id:n}=a,i=this.callbacks.get(n);i&&(i(a),this.callbacks.delete(n))},this.send=(a,n)=>{const i=g.makeRequest(a,n);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(i,"*"),new Promise((o,l)=>{this.callbacks.set(i.id,u=>{if(!u.success){l(new Error(u.error));return}o(u)})})},this.allowedOrigins=e,this.debugMode=s,this.isServer||window.addEventListener("message",this.onParentMessage)}}const S=t=>typeof t=="object"&&t!=null&&"domain"in t&&"types"in t&&"message"in t;var m=k();class A{constructor(e){this.communicator=e}async getBySafeTxHash(e){if(!e)throw new Error("Invalid safeTxHash");return(await this.communicator.send(r.getTxBySafeTxHash,{safeTxHash:e})).data}async signMessage(e){const s={message:e};return(await this.communicator.send(r.signMessage,s)).data}async signTypedMessage(e){if(!S(e))throw new Error("Invalid typed data");return(await this.communicator.send(r.signTypedMessage,{typedData:e})).data}async send({txs:e,params:s}){if(!e||!e.length)throw new Error("No transactions were passed");const a={txs:e,params:s};return(await this.communicator.send(r.sendTransactions,a)).data}}const c={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"},h={defaultBlockParam:(t="latest")=>t,returnFullTxObjectParam:(t=!1)=>t,blockNumberToHex:t=>Number.isInteger(t)?`0x${t.toString(16)}`:t};class O{constructor(e){this.communicator=e,this.call=this.buildRequest({call:c.eth_call,formatters:[null,h.defaultBlockParam]}),this.getBalance=this.buildRequest({call:c.eth_getBalance,formatters:[null,h.defaultBlockParam]}),this.getCode=this.buildRequest({call:c.eth_getCode,formatters:[null,h.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:c.eth_getStorageAt,formatters:[null,h.blockNumberToHex,h.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:c.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:c.eth_getBlockByHash,formatters:[null,h.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:c.eth_getBlockByNumber,formatters:[h.blockNumberToHex,h.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:c.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:c.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:c.eth_getTransactionCount,formatters:[null,h.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:c.eth_gasPrice}),this.getEstimateGas=s=>this.buildRequest({call:c.eth_estimateGas})([s]),this.setSafeSettings=this.buildRequest({call:c.safe_setSettings})}buildRequest(e){const{call:s,formatters:a}=e;return async n=>{a&&Array.isArray(n)&&a.forEach((l,u)=>{l&&(n[u]=l(n[u]))});const i={call:s,params:n||[]};return(await this.communicator.send(r.rpcCall,i)).data}}}const x="0x1626ba7e",V="0x20c13b0b",p=4001;class d extends Error{constructor(e,s,a){super(e),this.code=s,this.data=a,Object.setPrototypeOf(this,d.prototype)}}class _{constructor(e){this.communicator=e}async getPermissions(){return(await this.communicator.send(r.wallet_getPermissions,void 0)).data}async requestPermissions(e){if(!this.isPermissionRequestValid(e))throw new d("Permissions request is invalid",p);try{return(await this.communicator.send(r.wallet_requestPermissions,e)).data}catch{throw new d("Permissions rejected",p)}}isPermissionRequestValid(e){return e.every(s=>typeof s=="object"?Object.keys(s).every(a=>!!Object.values(f).includes(a)):!1)}}const b=(t,e)=>e.some(s=>s.parentCapability===t),M=()=>(t,e,s)=>{const a=s.value;return s.value=async function(){const n=new _(this.communicator);let i=await n.getPermissions();if(b(e,i)||(i=await n.requestPermissions([{[e]:{}}])),!b(e,i))throw new d("Permissions rejected",p);return a.apply(this)},s};var j=function(t,e,s,a){var n=arguments.length,i=n<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,s):a,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,s,a);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(i=(n<3?o(i):n>3?o(e,s,i):o(e,s))||i);return n>3&&i&&Object.defineProperty(e,s,i),i};class T{constructor(e){this.communicator=e}async getChainInfo(){return(await this.communicator.send(r.getChainInfo,void 0)).data}async getInfo(){return(await this.communicator.send(r.getSafeInfo,void 0)).data}async experimental_getBalances({currency:e="usd"}={}){return(await this.communicator.send(r.getSafeBalances,{currency:e})).data}async check1271Signature(e,s="0x"){const a=await this.getInfo(),n=w({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,s]}),i={call:c.eth_call,params:[{to:a.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(r.rpcCall,i)).data.slice(0,10).toLowerCase()===x}catch{return!1}}async check1271SignatureBytes(e,s="0x"){const a=await this.getInfo(),n=w({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,s]}),i={call:c.eth_call,params:[{to:a.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(r.rpcCall,i)).data.slice(0,10).toLowerCase()===V}catch{return!1}}calculateMessageHash(e){return I(e)}calculateTypedMessageHash(e){const s=typeof e.domain.chainId=="object"?e.domain.chainId.toNumber():Number(e.domain.chainId);let a=e.primaryType;if(!a){const n=Object.values(e.types),i=Object.keys(e.types).filter(o=>n.every(l=>l.every(({type:u})=>u.replace("[","").replace("]","")!==o)));if(i.length===0||i.length>1)throw new Error("Please specify primaryType");a=i[0]}return q({message:e.message,domain:{...e.domain,chainId:s,verifyingContract:e.domain.verifyingContract,salt:e.domain.salt},types:e.types,primaryType:a})}async getOffChainSignature(e){return(await this.communicator.send(r.getOffChainSignature,e)).data}async isMessageSigned(e,s="0x"){let a;if(typeof e=="string"&&(a=async()=>{const n=this.calculateMessageHash(e);return await this.isMessageHashSigned(n,s)}),S(e)&&(a=async()=>{const n=this.calculateTypedMessageHash(e);return await this.isMessageHashSigned(n,s)}),a)return await a();throw new Error("Invalid message type")}async isMessageHashSigned(e,s="0x"){const a=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(const n of a)if(await n(e,s))return!0;return!1}async getEnvironmentInfo(){return(await this.communicator.send(r.getEnvironmentInfo,void 0)).data}async requestAddressBook(){return(await this.communicator.send(r.requestAddressBook,void 0)).data}}j([M()],T.prototype,"requestAddressBook",null);class J{constructor(e={}){const{allowedDomains:s=null,debug:a=!1}=e;this.communicator=new H(s,a),this.eth=new O(this.communicator),this.txs=new A(this.communicator),this.safe=new T(this.communicator),this.wallet=new _(this.communicator)}}const Q=m.Operation,X=m.TokenType,Y=m.TransactionStatus,Z=m.TransferDirection;export{g as MessageFormatter,r as Methods,Q as Operation,c as RPC_CALLS,f as RestrictedMethods,X as TokenType,Y as TransactionStatus,Z as TransferDirection,J as default,v as getSDKVersion,S as isObjectEIP712TypedData};
@@ -1,4 +1,4 @@
1
- import{e as ot}from"./index-D4mfZpjO.js";import{f as nn}from"./react-BYHuwl8r.js";import{p as Se,g as ge}from"./sentry-Dx-KuLV3.js";import{c as on}from"./index-w01WQ1OT.js";var Pe={};/*! *****************************************************************************
1
+ import{e as ot}from"./index-BBFb-GHY.js";import{f as nn}from"./react-BYHuwl8r.js";import{p as Se,g as ge}from"./sentry-Dx-KuLV3.js";import{c as on}from"./index-w01WQ1OT.js";var Pe={};/*! *****************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
@@ -1 +1 @@
1
- import{be as n,bf as t}from"./index-CKK-zMqi.js";const e="https://wearable-preview.decentraland.zone",a="https://decentraland.zone/account",o="https://decentraland.zone/profile",_="https://decentraland.zone/marketplace",R="https://decentraland.zone/shop",c="https://decentraland.zone/builder",s="https://decentraland.zone/dao",d="https://decentraland.zone/governance",L="https://decentraland.zone/events",U="https://decentraland.zone/places",r="https://decentraland.org/create/",E="https://docs.decentraland.org/player/",l="https://decentraland.zone/download/creator-hub/",O="https://decentraland.zone/download/",A="https://decentraland.zone/download_success/",T="ea2ybdmmn1kv",p="master",N="18g1DzIyBxvu0steSwKyQr",S="https://cms.decentraland.org",C="https://decentraland.zone/marketplace/names/claim",h="https://decentraland.zone/marketplace/lands",D="https://decentraland.zone/marketplace/account",I="https://decentraland.zone/create/",g="https://studios.decentraland.zone/",$="https://decentraland.zone/builder/collections",P="https://decentraland.zone/builder/names",i="https://decentraland.zone/builder/worlds?tab=dcl",m="https://decentraland.zone/builder/land",B="https://decentraland.zone/events/me/",M="https://decentraland.zone/places/favorites/",V="https://docs.decentraland.org/player/",y="https://docs.decentraland.org/creator/",G="https://decentraland.zone/blog/",u="https://docs.decentraland.org/contributor/",b="https://decentraland.zone/governance/transparency/",F="https://decentraland.zone/governance/proposals/",K="https://decentraland.zone/dao/grants/",Y="https://decentraland.zone/governance/projects/",v="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",z="https://decentraland.zone/marketplace/settings",f="https://dcl.gg/discord",w="https://reddit.com/r/decentraland",H="https://github.com/decentraland",W="https://x.com/decentraland",k="https://instagram.com/decentraland_foundation/",x="https://youtube.com/@decentraland_foundation",j="https://tiktok.com/@decentraland_fdn",Q="https://linkedin.com/company/decentralandorg",J="https://decentraland.zone/privacy",X="https://decentraland.zone/terms",q="https://decentraland.zone/content",Z="https://decentraland.zone/ethics",tt="https://decentraland.org/help",nt="mailto:hello@decentraland.org",et="https://docs.decentraland.org/faqs/decentraland-101",at="https://docs.decentraland.org",ot="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",_t="https://download-gateway.decentraland.zone",Rt="https://decentraland.zone/top-scenes",ct="https://testflight.apple.com/join/KF4r3jlU",st="https://play.google.com/store/apps/details?id=org.decentraland.godotexplorer",dt={WEARABLE_PREVIEW_URL:e,ACCOUNT_URL:a,PROFILE_URL:o,MARKETPLACE_URL:_,SHOP_URL:R,BUILDER_URL:c,DAO_URL:s,GOVERNANCE_URL:d,EVENTS_URL:L,PLACES_URL:U,CREATE_URL:r,LEARN_URL:E,CREATOR_HUB_URL:l,DOWNLOAD_URL:O,DOWNLOAD_SUCCESS_URL:A,CONTENTFUL_SPACE_ID:T,CONTENTFUL_ENV:p,CONTENTFUL_NAVBAR_ENTRY_ID:N,CONTENTFUL_CONTENTFUL_CDN_URL:S,MARKETPLACE_NAMES_URL:C,MARKETPLACE_LANDS_URL:h,MARKETPLACE_MY_ASSETS_URL:D,LANDING_CREATORS_URL:I,STUDIOS_URL:g,BUILDER_WEARABLE_EMOTES_URL:$,BUILDER_NAMES_URL:P,BUILDER_WORLDS_URL:i,BUILDER_LAND_URL:m,EVENTS_MY_EVENTS:B,PLACES_MY_FAVORITE_URL:M,DOCS_ABOUT_URL:V,DOCS_CREATORS_URL:y,BLOG_URL:G,DOCS_CONTRIBUTOR_URL:u,GOVERNANCE_TRANSPARENCY_URL:b,GOVERNANCE_PROPOSALS_URL:F,DAO_GRANTS_URL:K,GOVERNANCE_PROJECTS_URL:Y,DOCS_DAO_URL:v,MARKETPLACE_SETTINGS_URL:z,DISCORD_URL:f,REDDIT_URL:w,GITHUB_URL:H,X_URL:W,INSTAGRAM_URL:k,YOUTUBE_URL:x,TIKTOK_URL:j,LINKEDIN_URL:Q,PRIVACY_POLICY_URL:J,TERMS_OF_USE_URL:X,CONTENT_POLICY_URL:q,CODE_OF_ETHICS_URL:Z,SUPPORT_URL:tt,EMAIL_HELLO_URL:nt,FAQ_URL:et,DOCS_URL:at,BEEHIV_SUBSCRIPTION_URL:ot,AUTO_SIGNING_BASE_URL:_t,TOP_SCENES_URL:Rt,IOS_STORE_URL:ct,ANDROID_STORE_URL:st},Lt="https://wearable-preview.decentraland.org",Ut="https://decentraland.org/account",rt="https://decentraland.org/profile",Et="https://decentraland.org/marketplace",lt="https://decentraland.org/shop",Ot="https://decentraland.org/builder",At="https://decentraland.org/dao",Tt="https://decentraland.org/governance",pt="https://decentraland.org/events",Nt="https://decentraland.org/places",St="https://decentraland.org/create/",Ct="https://docs.decentraland.org/player/",ht="https://decentraland.org/download/creator-hub/",Dt="https://decentraland.org/download/",It="https://decentraland.org/download_success/",gt="ea2ybdmmn1kv",$t="master",Pt="18g1DzIyBxvu0steSwKyQr",it="https://cms.decentraland.org",mt="https://decentraland.org/marketplace/names/claim",Bt="https://decentraland.org/marketplace/lands",Mt="https://decentraland.org/marketplace/account",Vt="https://decentraland.org/create/",yt="https://studios.decentraland.org/",Gt="https://decentraland.org/builder/collections",ut="https://decentraland.org/builder/names",bt="https://decentraland.org/builder/worlds?tab=dcl",Ft="https://decentraland.org/builder/land",Kt="https://decentraland.org/events/me/",Yt="https://decentraland.org/places/favorites/",vt="https://docs.decentraland.org/player/",zt="https://docs.decentraland.org/creator/",ft="https://decentraland.org/blog/",wt="https://docs.decentraland.org/contributor/",Ht="https://decentraland.org/governance/transparency/",Wt="https://decentraland.org/governance/proposals/",kt="https://decentraland.org/dao/grants/",xt="https://decentraland.org/governance/projects/",jt="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",Qt="https://decentraland.org/marketplace/settings",Jt="https://dcl.gg/discord",Xt="https://reddit.com/r/decentraland",qt="https://github.com/decentraland",Zt="https://x.com/decentraland",tn="https://instagram.com/decentraland_foundation/",nn="https://youtube.com/@decentraland_foundation",en="https://tiktok.com/@decentraland_fdn",an="https://linkedin.com/company/decentralandorg",on="https://decentraland.org/privacy",_n="https://decentraland.org/terms",Rn="https://decentraland.org/content",cn="https://decentraland.org/ethics",sn="https://decentraland.org/help",dn="mailto:hello@decentraland.org",Ln="https://docs.decentraland.org/faqs/decentraland-101",Un="https://docs.decentraland.org",rn="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",En="https://download-gateway.decentraland.org",ln="https://decentraland.org/top-scenes",On="https://testflight.apple.com/join/KF4r3jlU",An="https://play.google.com/store/apps/details?id=org.decentraland.godotexplorer",Tn={WEARABLE_PREVIEW_URL:Lt,ACCOUNT_URL:Ut,PROFILE_URL:rt,MARKETPLACE_URL:Et,SHOP_URL:lt,BUILDER_URL:Ot,DAO_URL:At,GOVERNANCE_URL:Tt,EVENTS_URL:pt,PLACES_URL:Nt,CREATE_URL:St,LEARN_URL:Ct,CREATOR_HUB_URL:ht,DOWNLOAD_URL:Dt,DOWNLOAD_SUCCESS_URL:It,CONTENTFUL_SPACE_ID:gt,CONTENTFUL_ENV:$t,CONTENTFUL_NAVBAR_ENTRY_ID:Pt,CONTENTFUL_CONTENTFUL_CDN_URL:it,MARKETPLACE_NAMES_URL:mt,MARKETPLACE_LANDS_URL:Bt,MARKETPLACE_MY_ASSETS_URL:Mt,LANDING_CREATORS_URL:Vt,STUDIOS_URL:yt,BUILDER_WEARABLE_EMOTES_URL:Gt,BUILDER_NAMES_URL:ut,BUILDER_WORLDS_URL:bt,BUILDER_LAND_URL:Ft,EVENTS_MY_EVENTS:Kt,PLACES_MY_FAVORITE_URL:Yt,DOCS_ABOUT_URL:vt,DOCS_CREATORS_URL:zt,BLOG_URL:ft,DOCS_CONTRIBUTOR_URL:wt,GOVERNANCE_TRANSPARENCY_URL:Ht,GOVERNANCE_PROPOSALS_URL:Wt,DAO_GRANTS_URL:kt,GOVERNANCE_PROJECTS_URL:xt,DOCS_DAO_URL:jt,MARKETPLACE_SETTINGS_URL:Qt,DISCORD_URL:Jt,REDDIT_URL:Xt,GITHUB_URL:qt,X_URL:Zt,INSTAGRAM_URL:tn,YOUTUBE_URL:nn,TIKTOK_URL:en,LINKEDIN_URL:an,PRIVACY_POLICY_URL:on,TERMS_OF_USE_URL:_n,CONTENT_POLICY_URL:Rn,CODE_OF_ETHICS_URL:cn,SUPPORT_URL:sn,EMAIL_HELLO_URL:dn,FAQ_URL:Ln,DOCS_URL:Un,BEEHIV_SUBSCRIPTION_URL:rn,AUTO_SIGNING_BASE_URL:En,TOP_SCENES_URL:ln,IOS_STORE_URL:On,ANDROID_STORE_URL:An},pn="https://wearable-preview.decentraland.today",Nn="https://decentraland.today/account",Sn="https://decentraland.today/profile",Cn="https://decentraland.today/marketplace",hn="https://decentraland.today/shop",Dn="https://decentraland.today/builder",In="https://decentraland.today/dao",gn="https://decentraland.today/governance",$n="https://decentraland.zone/events",Pn="https://decentraland.zone/places",mn="https://decentraland.today/create/",Bn="https://docs.decentraland.org/player/",Mn="https://decentraland.today/download/creator-hub/",Vn="https://decentraland.today/download/",yn="https://decentraland.today/download_success/",Gn="ea2ybdmmn1kv",un="master",bn="18g1DzIyBxvu0steSwKyQr",Fn="https://cms.decentraland.org",Kn="https://decentraland.today/marketplace/names/claim",Yn="https://decentraland.today/marketplace/lands",vn="https://decentraland.today/marketplace/account",zn="https://decentraland.today/create/",fn="https://studios.decentraland.today/",wn="https://decentraland.today/builder/collections",Hn="https://decentraland.today/builder/names",Wn="https://decentraland.today/builder/worlds?tab=dcl",kn="https://decentraland.today/builder/land",xn="https://decentraland.today/events/me/",jn="https://decentraland.today/places/favorites/",Qn="https://docs.decentraland.org/player/",Jn="https://docs.decentraland.org/creator/",Xn="https://decentraland.today/blog/",qn="https://docs.decentraland.org/contributor/",Zn="https://decentraland.today/governance/transparency/",te="https://decentraland.today/governance/proposals/",ne="https://decentraland.today/dao/grants/",ee="https://decentraland.today/governance/projects/",ae="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",oe="https://decentraland.today/marketplace/settings",_e="https://dcl.gg/discord",Re="https://reddit.com/r/decentraland",ce="https://github.com/decentraland",se="https://x.com/decentraland",de="https://instagram.com/decentraland_foundation/",Le="https://youtube.com/@decentraland_foundation",Ue="https://tiktok.com/@decentraland_fdn",re="https://linkedin.com/company/decentralandorg",Ee="https://decentraland.org/privacy",le="https://decentraland.org/terms",Oe="https://decentraland.org/content",Ae="https://decentraland.org/ethics",Te="https://decentraland.org/help",pe="mailto:hello@decentraland.org",Ne="https://docs.decentraland.org/faqs/decentraland-101",Se="https://docs.decentraland.org",Ce="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",he="https://download-gateway.decentraland.zone",De="https://decentraland.zone/top-scenes",Ie="https://testflight.apple.com/join/KF4r3jlU",ge="https://play.google.com/store/apps/details?id=org.decentraland.godotexplorer",$e={WEARABLE_PREVIEW_URL:pn,ACCOUNT_URL:Nn,PROFILE_URL:Sn,MARKETPLACE_URL:Cn,SHOP_URL:hn,BUILDER_URL:Dn,DAO_URL:In,GOVERNANCE_URL:gn,EVENTS_URL:$n,PLACES_URL:Pn,CREATE_URL:mn,LEARN_URL:Bn,CREATOR_HUB_URL:Mn,DOWNLOAD_URL:Vn,DOWNLOAD_SUCCESS_URL:yn,CONTENTFUL_SPACE_ID:Gn,CONTENTFUL_ENV:un,CONTENTFUL_NAVBAR_ENTRY_ID:bn,CONTENTFUL_CONTENTFUL_CDN_URL:Fn,MARKETPLACE_NAMES_URL:Kn,MARKETPLACE_LANDS_URL:Yn,MARKETPLACE_MY_ASSETS_URL:vn,LANDING_CREATORS_URL:zn,STUDIOS_URL:fn,BUILDER_WEARABLE_EMOTES_URL:wn,BUILDER_NAMES_URL:Hn,BUILDER_WORLDS_URL:Wn,BUILDER_LAND_URL:kn,EVENTS_MY_EVENTS:xn,PLACES_MY_FAVORITE_URL:jn,DOCS_ABOUT_URL:Qn,DOCS_CREATORS_URL:Jn,BLOG_URL:Xn,DOCS_CONTRIBUTOR_URL:qn,GOVERNANCE_TRANSPARENCY_URL:Zn,GOVERNANCE_PROPOSALS_URL:te,DAO_GRANTS_URL:ne,GOVERNANCE_PROJECTS_URL:ee,DOCS_DAO_URL:ae,MARKETPLACE_SETTINGS_URL:oe,DISCORD_URL:_e,REDDIT_URL:Re,GITHUB_URL:ce,X_URL:se,INSTAGRAM_URL:de,YOUTUBE_URL:Le,TIKTOK_URL:Ue,LINKEDIN_URL:re,PRIVACY_POLICY_URL:Ee,TERMS_OF_USE_URL:le,CONTENT_POLICY_URL:Oe,CODE_OF_ETHICS_URL:Ae,SUPPORT_URL:Te,EMAIL_HELLO_URL:pe,FAQ_URL:Ne,DOCS_URL:Se,BEEHIV_SUBSCRIPTION_URL:Ce,AUTO_SIGNING_BASE_URL:he,TOP_SCENES_URL:De,IOS_STORE_URL:Ie,ANDROID_STORE_URL:ge},ie=n({[t.DEVELOPMENT]:dt,[t.STAGING]:$e,[t.PRODUCTION]:Tn});export{ie as c};
1
+ import{bf as n,bg as t}from"./index-CHVlPVbz.js";const e="https://wearable-preview.decentraland.zone",a="https://decentraland.zone/account",o="https://decentraland.zone/profile",_="https://decentraland.zone/marketplace",R="https://decentraland.zone/shop",c="https://decentraland.zone/builder",s="https://decentraland.zone/dao",d="https://decentraland.zone/governance",L="https://decentraland.zone/events",U="https://decentraland.zone/places",r="https://decentraland.org/create/",E="https://docs.decentraland.org/player/",l="https://decentraland.zone/download/creator-hub/",O="https://decentraland.zone/download/",A="https://decentraland.zone/download_success/",T="ea2ybdmmn1kv",p="master",N="18g1DzIyBxvu0steSwKyQr",S="https://cms.decentraland.org",C="https://decentraland.zone/marketplace/names/claim",h="https://decentraland.zone/marketplace/lands",D="https://decentraland.zone/marketplace/account",I="https://decentraland.zone/create/",g="https://studios.decentraland.zone/",$="https://decentraland.zone/builder/collections",P="https://decentraland.zone/builder/names",i="https://decentraland.zone/builder/worlds?tab=dcl",m="https://decentraland.zone/builder/land",B="https://decentraland.zone/events/me/",M="https://decentraland.zone/places/favorites/",V="https://docs.decentraland.org/player/",y="https://docs.decentraland.org/creator/",G="https://decentraland.zone/blog/",u="https://docs.decentraland.org/contributor/",b="https://decentraland.zone/governance/transparency/",F="https://decentraland.zone/governance/proposals/",K="https://decentraland.zone/dao/grants/",Y="https://decentraland.zone/governance/projects/",v="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",z="https://decentraland.zone/marketplace/settings",f="https://dcl.gg/discord",w="https://reddit.com/r/decentraland",H="https://github.com/decentraland",W="https://x.com/decentraland",k="https://instagram.com/decentraland_foundation/",x="https://youtube.com/@decentraland_foundation",j="https://tiktok.com/@decentraland_fdn",Q="https://linkedin.com/company/decentralandorg",J="https://decentraland.zone/privacy",X="https://decentraland.zone/terms",q="https://decentraland.zone/content",Z="https://decentraland.zone/ethics",tt="https://decentraland.org/help",nt="mailto:hello@decentraland.org",et="https://docs.decentraland.org/faqs/decentraland-101",at="https://docs.decentraland.org",ot="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",_t="https://download-gateway.decentraland.zone",Rt="https://decentraland.zone/top-scenes",ct="https://testflight.apple.com/join/KF4r3jlU",st="https://play.google.com/store/apps/details?id=org.decentraland.godotexplorer",dt={WEARABLE_PREVIEW_URL:e,ACCOUNT_URL:a,PROFILE_URL:o,MARKETPLACE_URL:_,SHOP_URL:R,BUILDER_URL:c,DAO_URL:s,GOVERNANCE_URL:d,EVENTS_URL:L,PLACES_URL:U,CREATE_URL:r,LEARN_URL:E,CREATOR_HUB_URL:l,DOWNLOAD_URL:O,DOWNLOAD_SUCCESS_URL:A,CONTENTFUL_SPACE_ID:T,CONTENTFUL_ENV:p,CONTENTFUL_NAVBAR_ENTRY_ID:N,CONTENTFUL_CONTENTFUL_CDN_URL:S,MARKETPLACE_NAMES_URL:C,MARKETPLACE_LANDS_URL:h,MARKETPLACE_MY_ASSETS_URL:D,LANDING_CREATORS_URL:I,STUDIOS_URL:g,BUILDER_WEARABLE_EMOTES_URL:$,BUILDER_NAMES_URL:P,BUILDER_WORLDS_URL:i,BUILDER_LAND_URL:m,EVENTS_MY_EVENTS:B,PLACES_MY_FAVORITE_URL:M,DOCS_ABOUT_URL:V,DOCS_CREATORS_URL:y,BLOG_URL:G,DOCS_CONTRIBUTOR_URL:u,GOVERNANCE_TRANSPARENCY_URL:b,GOVERNANCE_PROPOSALS_URL:F,DAO_GRANTS_URL:K,GOVERNANCE_PROJECTS_URL:Y,DOCS_DAO_URL:v,MARKETPLACE_SETTINGS_URL:z,DISCORD_URL:f,REDDIT_URL:w,GITHUB_URL:H,X_URL:W,INSTAGRAM_URL:k,YOUTUBE_URL:x,TIKTOK_URL:j,LINKEDIN_URL:Q,PRIVACY_POLICY_URL:J,TERMS_OF_USE_URL:X,CONTENT_POLICY_URL:q,CODE_OF_ETHICS_URL:Z,SUPPORT_URL:tt,EMAIL_HELLO_URL:nt,FAQ_URL:et,DOCS_URL:at,BEEHIV_SUBSCRIPTION_URL:ot,AUTO_SIGNING_BASE_URL:_t,TOP_SCENES_URL:Rt,IOS_STORE_URL:ct,ANDROID_STORE_URL:st},Lt="https://wearable-preview.decentraland.org",Ut="https://decentraland.org/account",rt="https://decentraland.org/profile",Et="https://decentraland.org/marketplace",lt="https://decentraland.org/shop",Ot="https://decentraland.org/builder",At="https://decentraland.org/dao",Tt="https://decentraland.org/governance",pt="https://decentraland.org/events",Nt="https://decentraland.org/places",St="https://decentraland.org/create/",Ct="https://docs.decentraland.org/player/",ht="https://decentraland.org/download/creator-hub/",Dt="https://decentraland.org/download/",It="https://decentraland.org/download_success/",gt="ea2ybdmmn1kv",$t="master",Pt="18g1DzIyBxvu0steSwKyQr",it="https://cms.decentraland.org",mt="https://decentraland.org/marketplace/names/claim",Bt="https://decentraland.org/marketplace/lands",Mt="https://decentraland.org/marketplace/account",Vt="https://decentraland.org/create/",yt="https://studios.decentraland.org/",Gt="https://decentraland.org/builder/collections",ut="https://decentraland.org/builder/names",bt="https://decentraland.org/builder/worlds?tab=dcl",Ft="https://decentraland.org/builder/land",Kt="https://decentraland.org/events/me/",Yt="https://decentraland.org/places/favorites/",vt="https://docs.decentraland.org/player/",zt="https://docs.decentraland.org/creator/",ft="https://decentraland.org/blog/",wt="https://docs.decentraland.org/contributor/",Ht="https://decentraland.org/governance/transparency/",Wt="https://decentraland.org/governance/proposals/",kt="https://decentraland.org/dao/grants/",xt="https://decentraland.org/governance/projects/",jt="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",Qt="https://decentraland.org/marketplace/settings",Jt="https://dcl.gg/discord",Xt="https://reddit.com/r/decentraland",qt="https://github.com/decentraland",Zt="https://x.com/decentraland",tn="https://instagram.com/decentraland_foundation/",nn="https://youtube.com/@decentraland_foundation",en="https://tiktok.com/@decentraland_fdn",an="https://linkedin.com/company/decentralandorg",on="https://decentraland.org/privacy",_n="https://decentraland.org/terms",Rn="https://decentraland.org/content",cn="https://decentraland.org/ethics",sn="https://decentraland.org/help",dn="mailto:hello@decentraland.org",Ln="https://docs.decentraland.org/faqs/decentraland-101",Un="https://docs.decentraland.org",rn="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",En="https://download-gateway.decentraland.org",ln="https://decentraland.org/top-scenes",On="https://testflight.apple.com/join/KF4r3jlU",An="https://play.google.com/store/apps/details?id=org.decentraland.godotexplorer",Tn={WEARABLE_PREVIEW_URL:Lt,ACCOUNT_URL:Ut,PROFILE_URL:rt,MARKETPLACE_URL:Et,SHOP_URL:lt,BUILDER_URL:Ot,DAO_URL:At,GOVERNANCE_URL:Tt,EVENTS_URL:pt,PLACES_URL:Nt,CREATE_URL:St,LEARN_URL:Ct,CREATOR_HUB_URL:ht,DOWNLOAD_URL:Dt,DOWNLOAD_SUCCESS_URL:It,CONTENTFUL_SPACE_ID:gt,CONTENTFUL_ENV:$t,CONTENTFUL_NAVBAR_ENTRY_ID:Pt,CONTENTFUL_CONTENTFUL_CDN_URL:it,MARKETPLACE_NAMES_URL:mt,MARKETPLACE_LANDS_URL:Bt,MARKETPLACE_MY_ASSETS_URL:Mt,LANDING_CREATORS_URL:Vt,STUDIOS_URL:yt,BUILDER_WEARABLE_EMOTES_URL:Gt,BUILDER_NAMES_URL:ut,BUILDER_WORLDS_URL:bt,BUILDER_LAND_URL:Ft,EVENTS_MY_EVENTS:Kt,PLACES_MY_FAVORITE_URL:Yt,DOCS_ABOUT_URL:vt,DOCS_CREATORS_URL:zt,BLOG_URL:ft,DOCS_CONTRIBUTOR_URL:wt,GOVERNANCE_TRANSPARENCY_URL:Ht,GOVERNANCE_PROPOSALS_URL:Wt,DAO_GRANTS_URL:kt,GOVERNANCE_PROJECTS_URL:xt,DOCS_DAO_URL:jt,MARKETPLACE_SETTINGS_URL:Qt,DISCORD_URL:Jt,REDDIT_URL:Xt,GITHUB_URL:qt,X_URL:Zt,INSTAGRAM_URL:tn,YOUTUBE_URL:nn,TIKTOK_URL:en,LINKEDIN_URL:an,PRIVACY_POLICY_URL:on,TERMS_OF_USE_URL:_n,CONTENT_POLICY_URL:Rn,CODE_OF_ETHICS_URL:cn,SUPPORT_URL:sn,EMAIL_HELLO_URL:dn,FAQ_URL:Ln,DOCS_URL:Un,BEEHIV_SUBSCRIPTION_URL:rn,AUTO_SIGNING_BASE_URL:En,TOP_SCENES_URL:ln,IOS_STORE_URL:On,ANDROID_STORE_URL:An},pn="https://wearable-preview.decentraland.today",Nn="https://decentraland.today/account",Sn="https://decentraland.today/profile",Cn="https://decentraland.today/marketplace",hn="https://decentraland.today/shop",Dn="https://decentraland.today/builder",In="https://decentraland.today/dao",gn="https://decentraland.today/governance",$n="https://decentraland.zone/events",Pn="https://decentraland.zone/places",mn="https://decentraland.today/create/",Bn="https://docs.decentraland.org/player/",Mn="https://decentraland.today/download/creator-hub/",Vn="https://decentraland.today/download/",yn="https://decentraland.today/download_success/",Gn="ea2ybdmmn1kv",un="master",bn="18g1DzIyBxvu0steSwKyQr",Fn="https://cms.decentraland.org",Kn="https://decentraland.today/marketplace/names/claim",Yn="https://decentraland.today/marketplace/lands",vn="https://decentraland.today/marketplace/account",zn="https://decentraland.today/create/",fn="https://studios.decentraland.today/",wn="https://decentraland.today/builder/collections",Hn="https://decentraland.today/builder/names",Wn="https://decentraland.today/builder/worlds?tab=dcl",kn="https://decentraland.today/builder/land",xn="https://decentraland.today/events/me/",jn="https://decentraland.today/places/favorites/",Qn="https://docs.decentraland.org/player/",Jn="https://docs.decentraland.org/creator/",Xn="https://decentraland.today/blog/",qn="https://docs.decentraland.org/contributor/",Zn="https://decentraland.today/governance/transparency/",te="https://decentraland.today/governance/proposals/",ne="https://decentraland.today/dao/grants/",ee="https://decentraland.today/governance/projects/",ae="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",oe="https://decentraland.today/marketplace/settings",_e="https://dcl.gg/discord",Re="https://reddit.com/r/decentraland",ce="https://github.com/decentraland",se="https://x.com/decentraland",de="https://instagram.com/decentraland_foundation/",Le="https://youtube.com/@decentraland_foundation",Ue="https://tiktok.com/@decentraland_fdn",re="https://linkedin.com/company/decentralandorg",Ee="https://decentraland.org/privacy",le="https://decentraland.org/terms",Oe="https://decentraland.org/content",Ae="https://decentraland.org/ethics",Te="https://decentraland.org/help",pe="mailto:hello@decentraland.org",Ne="https://docs.decentraland.org/faqs/decentraland-101",Se="https://docs.decentraland.org",Ce="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",he="https://download-gateway.decentraland.zone",De="https://decentraland.zone/top-scenes",Ie="https://testflight.apple.com/join/KF4r3jlU",ge="https://play.google.com/store/apps/details?id=org.decentraland.godotexplorer",$e={WEARABLE_PREVIEW_URL:pn,ACCOUNT_URL:Nn,PROFILE_URL:Sn,MARKETPLACE_URL:Cn,SHOP_URL:hn,BUILDER_URL:Dn,DAO_URL:In,GOVERNANCE_URL:gn,EVENTS_URL:$n,PLACES_URL:Pn,CREATE_URL:mn,LEARN_URL:Bn,CREATOR_HUB_URL:Mn,DOWNLOAD_URL:Vn,DOWNLOAD_SUCCESS_URL:yn,CONTENTFUL_SPACE_ID:Gn,CONTENTFUL_ENV:un,CONTENTFUL_NAVBAR_ENTRY_ID:bn,CONTENTFUL_CONTENTFUL_CDN_URL:Fn,MARKETPLACE_NAMES_URL:Kn,MARKETPLACE_LANDS_URL:Yn,MARKETPLACE_MY_ASSETS_URL:vn,LANDING_CREATORS_URL:zn,STUDIOS_URL:fn,BUILDER_WEARABLE_EMOTES_URL:wn,BUILDER_NAMES_URL:Hn,BUILDER_WORLDS_URL:Wn,BUILDER_LAND_URL:kn,EVENTS_MY_EVENTS:xn,PLACES_MY_FAVORITE_URL:jn,DOCS_ABOUT_URL:Qn,DOCS_CREATORS_URL:Jn,BLOG_URL:Xn,DOCS_CONTRIBUTOR_URL:qn,GOVERNANCE_TRANSPARENCY_URL:Zn,GOVERNANCE_PROPOSALS_URL:te,DAO_GRANTS_URL:ne,GOVERNANCE_PROJECTS_URL:ee,DOCS_DAO_URL:ae,MARKETPLACE_SETTINGS_URL:oe,DISCORD_URL:_e,REDDIT_URL:Re,GITHUB_URL:ce,X_URL:se,INSTAGRAM_URL:de,YOUTUBE_URL:Le,TIKTOK_URL:Ue,LINKEDIN_URL:re,PRIVACY_POLICY_URL:Ee,TERMS_OF_USE_URL:le,CONTENT_POLICY_URL:Oe,CODE_OF_ETHICS_URL:Ae,SUPPORT_URL:Te,EMAIL_HELLO_URL:pe,FAQ_URL:Ne,DOCS_URL:Se,BEEHIV_SUBSCRIPTION_URL:Ce,AUTO_SIGNING_BASE_URL:he,TOP_SCENES_URL:De,IOS_STORE_URL:Ie,ANDROID_STORE_URL:ge},ie=n({[t.DEVELOPMENT]:dt,[t.STAGING]:$e,[t.PRODUCTION]:Tn});export{ie as c};
@@ -1,3 +1,3 @@
1
- import{d as G}from"./index-DQT21rdJ.js";/*! 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 I(e,r){if(typeof r!="string")throw new Error(`${e}: string expected`);return!0}function B(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=s=>s,n=(s,u)=>i=>s(u(i)),b=e.map(s=>s.encode).reduceRight(n,r),d=e.map(s=>s.decode).reduce(n,r);return{encode:b,decode:d}}function Q(e){const r=typeof e=="string"?e.split(""):e,n=r.length;S("alphabet",r);const b=new Map(r.map((d,s)=>[d,s]));return{encode:d=>(v(d),d.map(s=>{if(!Number.isSafeInteger(s)||s<0||s>=n)throw new Error(`alphabet.encode: digit index outside alphabet "${s}". Allowed: ${e}`);return r[s]})),decode:d=>(v(d),d.map(s=>{I("alphabet.decode",s);const u=b.get(s);if(u===void 0)throw new Error(`Unknown letter: "${s}". Allowed: ${e}`);return u}))}}function W(e=""){return I("join",e),{encode:r=>(S("join.decode",r),r.join(e)),decode:r=>(I("join.decode",r),r.split(e))}}function fe(e,r="="){return B(e),I("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 b=n.length;if(b*e%8)throw new Error("padding: invalid, string should have whole number of bytes");for(;b>0&&n[b-1]===r;b--)if((b-1)*e%8===0)throw new Error("padding: invalid, string has too much padding");return n.slice(0,b)}}}function _(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 b=0;const d=[],s=Array.from(e,i=>{if(B(i),i<0||i>=r)throw new Error(`invalid integer: ${i}`);return i}),u=s.length;for(;;){let i=0,a=!0;for(let w=b;w<u;w++){const p=s[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 l=Math.floor(m);if(s[w]=l,!Number.isSafeInteger(l)||l*n+i!==A)throw new Error("convertRadix: carry overflow");if(a)l?a=!1:b=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,b){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,s=0;const u=R[r],i=R[n]-1,a=[];for(const w of e){if(B(w),w>=u)throw new Error(`convertRadix2: invalid data word=${w} from=${r}`);if(d=d<<r|w,s+r>32)throw new Error(`convertRadix2: carry overflow pos=${s} from=${r}`);for(s+=r;s>=n;s-=n)a.push((d>>s-n&i)>>>0);const p=R[s];if(p===void 0)throw new Error("invalid carry");d&=p-1}if(d=d<<n-s&i,!b&&s>=r)throw new Error("Excess padding");if(!b&&d>0)throw new Error(`Non-zero padding: ${d}`);return b&&s>0&&a.push(d>>>0),a}function ae(e){B(e);const r=2**8;return{encode:n=>{if(!P(n))throw new Error("radix.encode input should be Uint8Array");return _(Array.from(n),r,e)},decode:n=>(K("radix.decode",n),Uint8Array.from(_(n,e,r)))}}function le(e,r=!1){if(B(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 be=J(le(5),Q("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),fe(5),W("")),se=e=>J(ae(58),Q(e),W("")),we=se("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");function D(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?D(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}function ge(e,r){r||(r=e.reduce((d,s)=>d+s.length,0));const n=Y(r);let b=0;for(const d of e)n.set(d,b),b+=d.length;return D(n)}function Z(e,r,n,b){return{name:e,prefix:r,encoder:{name:e,prefix:r,encode:n},decoder:{decode:b}}}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:G.base16,latin1:T,ascii:T,binary:T,...G};function pe(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?D(globalThis.Buffer.from(e,"utf-8")):n.decoder.decode(`${n.prefix}${e}`)}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?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(u){let i;if(u instanceof Uint8Array)i=u;else if(typeof u=="string")i=new TextEncoder().encode(u);else throw new Error(e);return i}function n(u){return Array.prototype.map.call(u,function(i){return(i<16?"0":"")+i.toString(16)}).join("")}function b(u){return(4294967296+u).toString(16).substring(1)}function d(u,i,a){let w=`
1
+ import{d as G}from"./index-_IId9FPs.js";/*! 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 I(e,r){if(typeof r!="string")throw new Error(`${e}: string expected`);return!0}function B(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=s=>s,n=(s,u)=>i=>s(u(i)),b=e.map(s=>s.encode).reduceRight(n,r),d=e.map(s=>s.decode).reduce(n,r);return{encode:b,decode:d}}function Q(e){const r=typeof e=="string"?e.split(""):e,n=r.length;S("alphabet",r);const b=new Map(r.map((d,s)=>[d,s]));return{encode:d=>(v(d),d.map(s=>{if(!Number.isSafeInteger(s)||s<0||s>=n)throw new Error(`alphabet.encode: digit index outside alphabet "${s}". Allowed: ${e}`);return r[s]})),decode:d=>(v(d),d.map(s=>{I("alphabet.decode",s);const u=b.get(s);if(u===void 0)throw new Error(`Unknown letter: "${s}". Allowed: ${e}`);return u}))}}function W(e=""){return I("join",e),{encode:r=>(S("join.decode",r),r.join(e)),decode:r=>(I("join.decode",r),r.split(e))}}function fe(e,r="="){return B(e),I("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 b=n.length;if(b*e%8)throw new Error("padding: invalid, string should have whole number of bytes");for(;b>0&&n[b-1]===r;b--)if((b-1)*e%8===0)throw new Error("padding: invalid, string has too much padding");return n.slice(0,b)}}}function _(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 b=0;const d=[],s=Array.from(e,i=>{if(B(i),i<0||i>=r)throw new Error(`invalid integer: ${i}`);return i}),u=s.length;for(;;){let i=0,a=!0;for(let w=b;w<u;w++){const p=s[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 l=Math.floor(m);if(s[w]=l,!Number.isSafeInteger(l)||l*n+i!==A)throw new Error("convertRadix: carry overflow");if(a)l?a=!1:b=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,b){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,s=0;const u=R[r],i=R[n]-1,a=[];for(const w of e){if(B(w),w>=u)throw new Error(`convertRadix2: invalid data word=${w} from=${r}`);if(d=d<<r|w,s+r>32)throw new Error(`convertRadix2: carry overflow pos=${s} from=${r}`);for(s+=r;s>=n;s-=n)a.push((d>>s-n&i)>>>0);const p=R[s];if(p===void 0)throw new Error("invalid carry");d&=p-1}if(d=d<<n-s&i,!b&&s>=r)throw new Error("Excess padding");if(!b&&d>0)throw new Error(`Non-zero padding: ${d}`);return b&&s>0&&a.push(d>>>0),a}function ae(e){B(e);const r=2**8;return{encode:n=>{if(!P(n))throw new Error("radix.encode input should be Uint8Array");return _(Array.from(n),r,e)},decode:n=>(K("radix.decode",n),Uint8Array.from(_(n,e,r)))}}function le(e,r=!1){if(B(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 be=J(le(5),Q("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),fe(5),W("")),se=e=>J(ae(58),Q(e),W("")),we=se("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");function D(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?D(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}function ge(e,r){r||(r=e.reduce((d,s)=>d+s.length,0));const n=Y(r);let b=0;for(const d of e)n.set(d,b),b+=d.length;return D(n)}function Z(e,r,n,b){return{name:e,prefix:r,encoder:{name:e,prefix:r,encode:n},decoder:{decode:b}}}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:G.base16,latin1:T,ascii:T,binary:T,...G};function pe(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?D(globalThis.Buffer.from(e,"utf-8")):n.decoder.decode(`${n.prefix}${e}`)}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?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(u){let i;if(u instanceof Uint8Array)i=u;else if(typeof u=="string")i=new TextEncoder().encode(u);else throw new Error(e);return i}function n(u){return Array.prototype.map.call(u,function(i){return(i<16?"0":"")+i.toString(16)}).join("")}function b(u){return(4294967296+u).toString(16).substring(1)}function d(u,i,a){let w=`
2
2
  `+u+" = ";for(let p=0;p<i.length;p+=2){if(a===32)w+=b(i[p]).toUpperCase(),w+=" ",w+=b(i[p+1]).toUpperCase();else if(a===64)w+=b(i[p+1]).toUpperCase(),w+=b(i[p]).toUpperCase();else throw new Error("Invalid size "+a);p%6===4?w+=`
3
3
  `+new Array(u.length+4).join(" "):p<i.length-2&&(w+=" ")}console.log(w)}function s(u,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=u(p),l=new Date().getTime(),h=l-w;w=l,console.log("Hashed in "+h+"ms: "+m.substring(0,20)+"..."),console.log(Math.round(i/(1<<20)/(h/1e3)*100)/100+" MB PER SECOND")}}return H={normalizeInput:r,toHex:n,debugPrint:d,testSpeed:s},H}var C,O;function ue(){if(O)return C;O=1;const e=re();function r(t,c,o){const g=t[c]+t[o];let y=t[c+1]+t[o+1];g>=4294967296&&y++,t[c]=g,t[c+1]=y}function n(t,c,o,g){let y=t[c]+o;o<0&&(y+=4294967296);let U=t[c+1]+g;y>=4294967296&&U++,t[c]=y,t[c+1]=U}function b(t,c){return t[c]^t[c+1]<<8^t[c+2]<<16^t[c+3]<<24}function d(t,c,o,g,y,U){const ne=w[y],te=w[y+1],oe=w[U],ie=w[U+1];r(a,t,c),n(a,t,ne,te);let k=a[g]^a[t],E=a[g+1]^a[t+1];a[g]=E,a[g+1]=k,r(a,o,g),k=a[c]^a[o],E=a[c+1]^a[o+1],a[c]=k>>>24^E<<8,a[c+1]=E>>>24^k<<8,r(a,t,c),n(a,t,oe,ie),k=a[g]^a[t],E=a[g+1]^a[t+1],a[g]=k>>>16^E<<16,a[g+1]=E>>>16^k<<16,r(a,o,g),k=a[c]^a[o],E=a[c+1]^a[o+1],a[c]=E>>>31^k<<1,a[c+1]=k>>>31^E<<1}const s=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),u=[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(u.map(function(t){return t*2})),a=new Uint32Array(32),w=new Uint32Array(32);function p(t,c){let o=0;for(o=0;o<16;o++)a[o]=t.h[o],a[o+16]=s[o];for(a[24]=a[24]^t.t,a[25]=a[25]^t.t/4294967296,c&&(a[28]=~a[28],a[29]=~a[29]),o=0;o<32;o++)w[o]=b(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,c,o,g){if(t===0||t>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(c&&c.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,c&&(x[1]=c.length),x[2]=1,x[3]=1,o&&x.set(o,32),g&&x.set(g,48);for(let U=0;U<16;U++)y.h[U]=s[U]^b(x,U*4);return c&&(m(y,c),y.c=128),y}function m(t,c){for(let o=0;o<c.length;o++)t.c===128&&(t.t+=t.c,p(t,!1),t.c=0),t.b[t.c++]=c[o]}function l(t){for(t.t+=t.c;t.c<128;)t.b[t.c++]=0;p(t,!0);const c=new Uint8Array(t.outlen);for(let o=0;o<t.outlen;o++)c[o]=t.h[o>>2]>>8*(o&3);return c}function h(t,c,o,g,y){o=o||64,t=e.normalizeInput(t),g&&(g=e.normalizeInput(g)),y&&(y=e.normalizeInput(y));const U=A(o,c,g,y);return m(U,t),l(U)}function f(t,c,o,g,y){const U=h(t,c,o,g,y);return e.toHex(U)}return C={blake2b:h,blake2bHex:f,blake2bInit:A,blake2bUpdate:m,blake2bFinal:l},C}var M,z;function ce(){if(z)return M;z=1;const e=re();function r(l,h){return l[h]^l[h+1]<<8^l[h+2]<<16^l[h+3]<<24}function n(l,h,f,t,c,o){u[l]=u[l]+u[h]+c,u[t]=b(u[t]^u[l],16),u[f]=u[f]+u[t],u[h]=b(u[h]^u[f],12),u[l]=u[l]+u[h]+o,u[t]=b(u[t]^u[l],8),u[f]=u[f]+u[t],u[h]=b(u[h]^u[f],7)}function b(l,h){return l>>>h^l<<32-h}const d=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),s=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]),u=new Uint32Array(16),i=new Uint32Array(16);function a(l,h){let f=0;for(f=0;f<8;f++)u[f]=l.h[f],u[f+8]=d[f];for(u[12]^=l.t,u[13]^=l.t/4294967296,h&&(u[14]=~u[14]),f=0;f<16;f++)i[f]=r(l.b,4*f);for(f=0;f<10;f++)n(0,4,8,12,i[s[f*16+0]],i[s[f*16+1]]),n(1,5,9,13,i[s[f*16+2]],i[s[f*16+3]]),n(2,6,10,14,i[s[f*16+4]],i[s[f*16+5]]),n(3,7,11,15,i[s[f*16+6]],i[s[f*16+7]]),n(0,5,10,15,i[s[f*16+8]],i[s[f*16+9]]),n(1,6,11,12,i[s[f*16+10]],i[s[f*16+11]]),n(2,7,8,13,i[s[f*16+12]],i[s[f*16+13]]),n(3,4,9,14,i[s[f*16+14]],i[s[f*16+15]]);for(f=0;f<8;f++)l.h[f]^=u[f]^u[f+8]}function w(l,h){if(!(l>0&&l<=32))throw new Error("Incorrect output length, should be in [1, 32]");const f=h?h.length:0;if(h&&!(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:l};return t.h[0]^=16842752^f<<8^l,f>0&&(p(t,h),t.c=64),t}function p(l,h){for(let f=0;f<h.length;f++)l.c===64&&(l.t+=l.c,a(l,!1),l.c=0),l.b[l.c++]=h[f]}function x(l){for(l.t+=l.c;l.c<64;)l.b[l.c++]=0;a(l,!0);const h=new Uint8Array(l.outlen);for(let f=0;f<l.outlen;f++)h[f]=l.h[f>>2]>>8*(f&3)&255;return h}function A(l,h,f){f=f||32,l=e.normalizeInput(l);const t=w(f,h);return p(t,l),x(t)}function m(l,h,f){const t=A(l,h,f);return e.toHex(t)}return M={blake2s:A,blake2sHex:m,blake2sInit:w,blake2sUpdate:p,blake2sFinal:x},M}var j,L;function de(){if(L)return j;L=1;const e=ue(),r=ce();return j={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},j}var Ae=de();export{be as a,we as b,ge as c,Ae as d,pe as f,ye as t};