@dcl/shop 1.3.1-31252242626.commit-c73d75c → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/_assets/Activity-D3P6izHi.js +378 -0
  2. package/_assets/{AnimatedBackground-BPpu8-bp.js → AnimatedBackground-D2AQICJq.js} +1 -1
  3. package/_assets/{Assets-D_85zKYe.js → Assets-CeSMRmci.js} +7 -7
  4. package/_assets/{Assets.styles-B1HvwpzK.js → Assets.styles-Z2BoZfPC.js} +1 -1
  5. package/_assets/{Authorizations-DDGOtqxv.js → Authorizations-VVZUOHSE.js} +1 -1
  6. package/_assets/Cart-CH9s120K.js +696 -0
  7. package/_assets/{CircularProgress-BGQrDSLK.js → CircularProgress-C_E70_6Z.js} +1 -1
  8. package/_assets/{Collection-BwLONXnd.js → Collection-BBaIIr5M.js} +1 -1
  9. package/_assets/{CollectionCarousel-DFOfIf7S.js → CollectionCarousel-BCrU8ecV.js} +2 -2
  10. package/_assets/{Confetti-BXQ-8GtS.js → Confetti-CQ_6holA.js} +1 -1
  11. package/_assets/{Creator-DJ44nS7F.js → Creator-TtYB1N5N.js} +1 -1
  12. package/_assets/{ErrorNotice-C6TzeGyj.js → ErrorNotice-D2lGGd2A.js} +1 -1
  13. package/_assets/{ExchangeController-Di5Zg9CW.js → ExchangeController-DUX0Jdsr.js} +1 -1
  14. package/_assets/{Faq-BwOgrdK2.js → Faq-BeRHBr_T.js} +1 -1
  15. package/_assets/{GetCredits-CReJ5iKD.js → GetCredits-DwxH-V-7.js} +1 -1
  16. package/_assets/{Grow-CLVvW4Va.js → Grow-D8g-VUru.js} +1 -1
  17. package/_assets/{HelpersUtil-B4GqkAz9.js → HelpersUtil-a7045UWU.js} +1 -1
  18. package/_assets/{ItemDetail-B8_Oy1Zw.js → ItemDetail-B9XkCCaI.js} +1 -1
  19. package/_assets/LazyEmoteControls-CG--merP.js +2 -0
  20. package/_assets/{LoadMore-CKSYwQSC.js → LoadMore-CvbwW-Q7.js} +1 -1
  21. package/_assets/{ManaPricingBanner.styles-ClU3x0BU.js → ManaPricingBanner.styles-9rwqZxWY.js} +1 -1
  22. package/_assets/{MyAssets-BBpVmvzR.js → MyAssets-AvAKbdl8.js} +2 -2
  23. package/_assets/{MyFavorites-Cy9OJvwt.js → MyFavorites-BCVtjkJD.js} +1 -1
  24. package/_assets/{NotFound-e849cnkT.js → NotFound-C59P6Izo.js} +1 -1
  25. package/_assets/{NotificationsBell-BCAtVeX7.js → NotificationsBell-BZsN5Iuk.js} +1 -1
  26. package/_assets/{OutfitDetail-CJJkl5yC.js → OutfitDetail-CWyedHOu.js} +1 -1
  27. package/_assets/{OutfitPreview-x2PYMhn3.js → OutfitPreview-C9CK_tog.js} +1 -1
  28. package/_assets/{OutfitStudio-DjzcoL7_.js → OutfitStudio-0hJzr8fl.js} +1 -1
  29. package/_assets/{StoreSettings-WBnUCWX3.js → StoreSettings-DMkaWkoY.js} +1 -1
  30. package/_assets/{Success-DM6ZIfGx.js → Success-DBVDRM2b.js} +1 -1
  31. package/_assets/{SwapController-CCtJ10ku.js → SwapController-zTcRGPrQ.js} +1 -1
  32. package/_assets/{Tooltip-C1GF8yzx.js → Tooltip-B7PK3XRM.js} +1 -1
  33. package/_assets/{TradeService-DR7fX6hZ.js → TradeService-L56ib8YL.js} +1 -1
  34. package/_assets/{W3MFrameProviderSingleton-BSPMxIrN.js → W3MFrameProviderSingleton-CnouvR1_.js} +3 -3
  35. package/_assets/{WebCryptoP256-wXnsce_s.js → WebCryptoP256-awBjqtmJ.js} +1 -1
  36. package/_assets/authorizations-CwRrfhXP.js +1 -0
  37. package/_assets/{basic-CdgQQJxQ.js → basic-C1Occ-ll.js} +1 -1
  38. package/_assets/{biconomy-DhUyAaJx.js → biconomy-DYdhlClT.js} +1 -1
  39. package/_assets/{builder-rk1gzg6o.js → builder-DUURfr6C.js} +1 -1
  40. package/_assets/{buy-C8cZuDKG.js → buy-B-WrRkMr.js} +1 -1
  41. package/_assets/{buy-gasless-DgVYAdEI.js → buy-gasless-B3kudvBt.js} +1 -1
  42. package/_assets/{categories-TyiHModX.js → categories-DK06mRC-.js} +1 -1
  43. package/_assets/{ccip-BNrZpQD6.js → ccip-CeFSONqB.js} +1 -1
  44. package/_assets/{ccip-B6d91HbN.js → ccip-D7X2yyPA.js} +1 -1
  45. package/_assets/{collectionPage.styles-B0Y6R9vW.js → collectionPage.styles-wm5OLDLb.js} +6 -6
  46. package/_assets/{controller-BoNXkBWT.js → controller-BMK28WFM.js} +2 -2
  47. package/_assets/{core-BadPn6dC.js → core-BKQv8QTw.js} +4 -4
  48. package/_assets/{createSvgIcon-E_1bKhdT.js → createSvgIcon-Clii5lWh.js} +1 -1
  49. package/_assets/{custom-DiEOmU8d.js → custom-DAvHCARY.js} +1 -1
  50. package/_assets/{data-capture-DXnM_lk9.js → data-capture-BgeSAIFU.js} +1 -1
  51. package/_assets/{email-GOpB4BQG.js → email-DYlCA9Sx.js} +1 -1
  52. package/_assets/{embedded-wallet-Cohei5OY.js → embedded-wallet-C6eQ8V49.js} +1 -1
  53. package/_assets/{emotion-styled.browser.esm-CLtGE1ll.js → emotion-styled.browser.esm-CF5-hWBg.js} +1 -1
  54. package/_assets/{engine-BvtekySw.js → engine-DixaYvf_.js} +1 -1
  55. package/_assets/{errors-OSxcB_78.js → errors-CVqHKixP.js} +1 -1
  56. package/_assets/{estimate-l1-fee-CRBS7t31.js → estimate-l1-fee-Pi_Fcu_v.js} +1 -1
  57. package/_assets/{execute-TU_2vXm6.js → execute-CMHIfTIG.js} +2 -2
  58. package/_assets/{features-CwmiB51C.js → features-UalfAxmx.js} +1 -1
  59. package/_assets/{fetchTokenMetadata--yK0evUL.js → fetchTokenMetadata-C34JqoKx.js} +2 -2
  60. package/_assets/{field.styles-DeEM1NvZ.js → field.styles-CIxVjFuR.js} +1 -1
  61. package/_assets/{get-ecosystem-wallet-info-Dz0cXv5J.js → get-ecosystem-wallet-info-B0dn7Fe4.js} +1 -1
  62. package/_assets/{getBalance-CQpBPdTR.js → getBalance-qCdp4tf8.js} +1 -1
  63. package/_assets/{getNFT-BVYQgT7O.js → getNFT-CZjYeMk9.js} +1 -1
  64. package/_assets/{getNFT-DjKxNOGt.js → getNFT-CrvB8XF1.js} +1 -1
  65. package/_assets/{grid.styles-DXCsn4JF.js → grid.styles-BWgyhr0s.js} +1 -1
  66. package/_assets/{hashTypedData-DC_RnPQD.js → hashTypedData-BYa8SpY3.js} +1 -1
  67. package/_assets/{hashTypedData-D0IEKBRS.js → hashTypedData-kJ-hAObx.js} +1 -1
  68. package/_assets/{in-app-OsLybK6m.js → in-app-B0dvVGiq.js} +1 -1
  69. package/_assets/{in-app-wallet-calls-BXDmflHz.js → in-app-wallet-calls-DwoQ-KSZ.js} +1 -1
  70. package/_assets/{index-CSY0bdZ7.js → index-4hqCLge4.js} +1 -1
  71. package/_assets/{index-DYsiSWRD.js → index-BMFk7k2a.js} +2 -2
  72. package/_assets/{index-byTukmCU.js → index-BMTgIyWN.js} +1 -1
  73. package/_assets/{index-CWNHwTp9.js → index-BP0EmBJ-.js} +1 -1
  74. package/_assets/{index-BOQHWdN-.js → index-BQX5CGXn.js} +1 -1
  75. package/_assets/{index-D-uEOpjO.js → index-BQn4WbOu.js} +1 -1
  76. package/_assets/{index-BnjBGQHV.js → index-BWXYh1GT.js} +1 -1
  77. package/_assets/{index-BMHAmosr.js → index-BWxEgsJY.js} +1 -1
  78. package/_assets/{index-Du7SSwQ3.js → index-Bpr6Lfn-.js} +1 -1
  79. package/_assets/{index-DiN2c1K3.js → index-BqYZOUDk.js} +1 -1
  80. package/_assets/{index-C9SBlMYc.js → index-BsvhvJDQ.js} +1 -1
  81. package/_assets/{index-BtNfhlUE.js → index-Bw89h0QJ.js} +1 -1
  82. package/_assets/{index-BCZ3tZR3.js → index-BwzG5Pnl.js} +1 -1
  83. package/_assets/{index-BMErPZak.js → index-C1YzoFI-.js} +2 -2
  84. package/_assets/{index-DtBtmaAv.js → index-C53vdle3.js} +1 -1
  85. package/_assets/{index-BqDFXnrb.js → index-C6YXXNiT.js} +1 -1
  86. package/_assets/{index-5IfbtLyI.js → index-CAnMkSsw.js} +1 -1
  87. package/_assets/{index-tTAL2WB-.js → index-CBs-QSKp.js} +1 -1
  88. package/_assets/{index-CmE0xSf2.js → index-CFCWXNzP.js} +1 -1
  89. package/_assets/{index-DIFv8mLZ.js → index-CFIosO15.js} +1 -1
  90. package/_assets/{index-9AMRqa2Q.js → index-CQTQSECq.js} +1 -1
  91. package/_assets/{index-C9V04cJW.js → index-CSe7Xqd6.js} +1 -1
  92. package/_assets/{index-Bvwq5-S8.js → index-CT-s62SZ.js} +1 -1
  93. package/_assets/{index-DVr5g7aY.js → index-CWYJmZ0e.js} +1 -1
  94. package/_assets/{index-DN6xb_ze.js → index-CXtHLKLG.js} +1 -1
  95. package/_assets/{index-DuBvA9NX.js → index-Cb4u4uBY.js} +1 -1
  96. package/_assets/{index-CfVyYh3y.js → index-CbKqTE1n.js} +1 -1
  97. package/_assets/{index-DLn-xGRu.js → index-CfRD-uBc.js} +1 -1
  98. package/_assets/{index-CAozwzga.js → index-CpzYZlH8.js} +3 -3
  99. package/_assets/{index-B3RTvili.js → index-Cyo6p1tx.js} +1 -1
  100. package/_assets/{index-RT7ay0fP.js → index-CzKfhET1.js} +1 -1
  101. package/_assets/{index-BBS247oh.js → index-D5Q-6LU1.js} +1 -1
  102. package/_assets/{index-CJydVry-.js → index-D5qxgeiD.js} +1 -1
  103. package/_assets/{index-BrmXfhSy.js → index-DImWjxz8.js} +1 -1
  104. package/_assets/{index-DBE8WuHb.js → index-DJUhAF-m.js} +1 -1
  105. package/_assets/{index-DphwwJkw.js → index-DKz61GmH.js} +1 -1
  106. package/_assets/{index-BjmzqwSC.js → index-DXGkFKcY.js} +1 -1
  107. package/_assets/{index-BGW-6qbU.js → index-DYtEpEFW.js} +1 -1
  108. package/_assets/{index-C7hbjfPZ.js → index-DaK0h_lf.js} +1 -1
  109. package/_assets/{index-BZRe9AK8.js → index-DgWvH8vB.js} +1 -1
  110. package/_assets/{index-B_Rjazst.js → index-Dix3DFNj.js} +1 -1
  111. package/_assets/{index-fDHYZUKA.js → index-DrWszBPr.js} +1 -1
  112. package/_assets/{index-CJmYIHke.js → index-Dzr3wWqM.js} +329 -327
  113. package/_assets/{index-DEOpztub.js → index-ECd-PCjz.js} +1 -1
  114. package/_assets/{index-Brs0Pv5-.js → index-EXmcWYkf.js} +1 -1
  115. package/_assets/{index-CM7mcfju.js → index-I9-XdzvE.js} +3 -3
  116. package/_assets/{index--mkx_Ub3.js → index-QG0o4yA6.js} +2 -2
  117. package/_assets/{index-BwOue38k.js → index-UJUGuBsy.js} +3 -3
  118. package/_assets/{index-BXOEC5IY.js → index-__D_0yHf.js} +1 -1
  119. package/_assets/{index-DWFZCVHa.js → index-oCqI9Vle.js} +1 -1
  120. package/_assets/{index-BBeSi9EO.js → index-pI1BXeGM.js} +1 -1
  121. package/_assets/{index-Csbo1eza.js → index-txnyrMV_.js} +1 -1
  122. package/_assets/{index.es-XZr74JNT.js → index.es-DJ8zTN2F.js} +1 -1
  123. package/_assets/{index.es-BG60FmGW.js → index.es-DNcp95sw.js} +4 -4
  124. package/_assets/{index.es-Bz8gZ7qB.js → index.es-QXU_nQ-C.js} +1 -1
  125. package/_assets/{localBatchGatewayRequest-ikLylIgm.js → localBatchGatewayRequest-DQEy82M0.js} +1 -1
  126. package/_assets/{networks-DGWDQvqw.js → networks-C2SYHxfA.js} +1 -1
  127. package/_assets/{onramp-DKoZ03XB.js → onramp-BmIZqUWB.js} +1 -1
  128. package/_assets/{openzeppelin-LOcHCFQX.js → openzeppelin-CdFYjGJt.js} +1 -1
  129. package/_assets/{parseNft-CY3PDq17.js → parseNft-BSTb-_y6.js} +2 -2
  130. package/_assets/{parseSignature-Ds5KGfSM.js → parseSignature-eZCTQvH0.js} +1 -1
  131. package/_assets/{parseSignature-BI6HCnqF.js → parseSignature-l4LZgONZ.js} +3 -3
  132. package/_assets/{passkeys-BYmlf1qh.js → passkeys-CozWp77i.js} +1 -1
  133. package/_assets/{pay-with-exchange-D-vRoPs-.js → pay-with-exchange-BNpFsUXH.js} +1 -1
  134. package/_assets/{qr-overlay-ZKwUKLDM.js → qr-overlay-OlE8lt7R.js} +1 -1
  135. package/_assets/{receive-BpOQ3F73.js → receive-BGQom-1t.js} +1 -1
  136. package/_assets/{resolveImplementation-Bmms8eMC.js → resolveImplementation-ruTvtmSL.js} +1 -1
  137. package/_assets/{rpc-B-bvGvlc.js → rpc-BIQ29MFh.js} +1 -1
  138. package/_assets/{secp256k1-ChR0vl-U.js → secp256k1-B-R6uHp9.js} +1 -1
  139. package/_assets/{secp256k1-dWvFOFgp.js → secp256k1-DAIQkTMa.js} +1 -1
  140. package/_assets/{secp256k1-D-c7AgZJ.js → secp256k1-DW-8KMGu.js} +1 -1
  141. package/_assets/{send-CNoBgjC3.js → send-Dlj9wfGD.js} +1 -1
  142. package/_assets/{send-batch-transaction-Bt4eO7_A.js → send-batch-transaction-BzUzA610.js} +1 -1
  143. package/_assets/{send-eip712-transaction-Dkhz19jD.js → send-eip712-transaction-CALz6PKQ.js} +2 -2
  144. package/_assets/{send-gasless-transaction-CabqcqeH.js → send-gasless-transaction-Ua-fi-CM.js} +2 -2
  145. package/_assets/{send-transaction-2iw3OWf1.js → send-transaction-B6Fha1vM.js} +2 -2
  146. package/_assets/{sendMetaTransaction-ChBpXQUv.js → sendMetaTransaction-CUn-fhZo.js} +1 -1
  147. package/_assets/{sendRawTransaction-Bg5Bog-D.js → sendRawTransaction-ZVd15bYm.js} +3 -3
  148. package/_assets/{serializeTransaction-BQMXuVy4.js → serializeTransaction-BAGfnJsZ.js} +1 -1
  149. package/_assets/{session-proposal-3Q5m6rmS.js → session-proposal-BYxVkg3L.js} +1 -1
  150. package/_assets/{session-request-Cbe4UvDv.js → session-request-PkAQNb49.js} +2 -2
  151. package/_assets/{signing-D3JslPvi.js → signing-CIxtdm7n.js} +3 -3
  152. package/_assets/{skeleton.styles-CVOz4NuN.js → skeleton.styles-DL8N-ebx.js} +1 -1
  153. package/_assets/{socials-Byik4B6H.js → socials-T4X_pgd7.js} +1 -1
  154. package/_assets/{styled-DXQxy1OG.js → styled-77pZ9Va6.js} +1 -1
  155. package/_assets/{swaps-CGuC9r6P.js → swaps-CPRccZrb.js} +1 -1
  156. package/_assets/{thirdweb-DYS4bx2O.js → thirdweb-DYcza1xd.js} +3 -3
  157. package/_assets/{to-serializable-transaction-B9hOlQhS.js → to-serializable-transaction-zR9GnOtJ.js} +2 -2
  158. package/_assets/{transactionReceipt-CKK1YHPc.js → transactionReceipt-q4pdsIzp.js} +1 -1
  159. package/_assets/{transactions-pM3EvVyU.js → transactions-Cc80zHEF.js} +1 -1
  160. package/_assets/{useCreditPacks-BQuT66CB.js → useCreditPacks-kN4lsUSN.js} +1 -1
  161. package/_assets/{useImportable-VbRNEeu4.js → useImportable-BOwjZRHI.js} +1 -1
  162. package/_assets/{useInfiniteGrid-CqVFUAZB.js → useInfiniteGrid-B88z2StQ.js} +1 -1
  163. package/_assets/{useStore-DGBkQFz7.js → useStore-B7NaWcJ2.js} +1 -1
  164. package/_assets/{useTheme-fGx03AZV.js → useTheme-y31gDcIX.js} +1 -1
  165. package/_assets/{verifyHash-DOkIX2BO.js → verifyHash-7MX9V0uS.js} +1 -1
  166. package/_assets/{w3m-modal-B11X56B-.js → w3m-modal-BeJmA6h8.js} +1 -1
  167. package/_assets/{w3m-modal-BwxgxAPe.js → w3m-modal-CVKbb0y3.js} +1 -1
  168. package/_assets/{wait-for-tx-receipt-BaxFnjPg.js → wait-for-tx-receipt-BafcrIuf.js} +1 -1
  169. package/_assets/{wallets-BmrEl61j.js → wallets-B1mbb-GR.js} +5 -5
  170. package/_assets/{web-connector-CLVorEco.js → web-connector-D-4IhzX3.js} +3 -3
  171. package/_assets/{writeContract-rG-WdCVH.js → writeContract-ABlke1F1.js} +1 -1
  172. package/_assets/{zoraTestnet-DyA1No_S.js → zoraTestnet-UBz7o6gR.js} +1 -1
  173. package/index.html +11 -11
  174. package/package.json +2 -2
  175. package/_assets/Activity-MdeNPdAy.js +0 -378
  176. package/_assets/Cart-CbbJZlOR.js +0 -696
  177. package/_assets/LazyEmoteControls-BcjgXC3K.js +0 -2
  178. package/_assets/authorizations-B8zfFZri.js +0 -1
@@ -1,4 +1,4 @@
1
- import{cu as Qe,cq as et,u as tt,aj as H,ak as L,cv as Me,al as nt,cw as rt,ai as we,x as ue,T as ot,c1 as it}from"./index-CJmYIHke.js";import{r as s,j as I,R as W,f as st}from"./react-BYHuwl8r.js";import{C as Pe,c as C,a as le,g as at,b as ut}from"./clsx-WwvpwSg0.js";import{e as lt,s as ce}from"./styled-DXQxy1OG.js";import{S as ge}from"./emotion-styled.browser.esm-CLtGE1ll.js";function Ie(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ie(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ct(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ie(e))&&(r&&(r+=" "),r+=t);return r}const pt=["className","component"];function ft(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Qe("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(et);return s.forwardRef(function(l,p){const d=tt(n),m=lt(l),{className:b,component:y="div"}=m,h=H(m,pt);return I.jsx(i,L({as:y,ref:p,className:ct(b,o?o(r):r),theme:t&&d[t]||d},h))})}function dt(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function ht(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function mt(e,t){return()=>null}function bt(e,t){var n,r;return s.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Ne(e){return e&&e.ownerDocument||document}function gt(e){return Ne(e).defaultView||window}function yt(e,t){return()=>null}function Ve(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Rt(e,t,n,r,o){return null}function xt({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=s.useRef(e!==void 0),[i,a]=s.useState(t),c=o?e:i,l=s.useCallback(p=>{o||a(p)},[]);return[c,l]}function X(e){const t=s.useRef(e);return Me(()=>{t.current=e}),s.useRef((...n)=>(0,t.current)(...n)).current}function oe(...e){return s.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Ve(n,t)})},e)}const ye={};function vt(e,t){const n=s.useRef(ye);return n.current===ye&&(n.current=e(t)),n}const Et=[];function Tt(e){s.useEffect(e,Et)}class G{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new G}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Ct(){const e=vt(G.create).current;return Tt(e.disposeEffect),e}let Z=!0,ie=!1;const Mt=new G,wt={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Pt(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&wt[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function It(e){e.metaKey||e.altKey||e.ctrlKey||(Z=!0)}function ne(){Z=!1}function Nt(){this.visibilityState==="hidden"&&ie&&(Z=!0)}function Vt(e){e.addEventListener("keydown",It,!0),e.addEventListener("mousedown",ne,!0),e.addEventListener("pointerdown",ne,!0),e.addEventListener("touchstart",ne,!0),e.addEventListener("visibilitychange",Nt,!0)}function St(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Z||Pt(t)}function Se(){const e=s.useCallback(o=>{o!=null&&Vt(o.ownerDocument)},[]),t=s.useRef(!1);function n(){return t.current?(ie=!0,Mt.start(100,()=>{ie=!1}),t.current=!1,!0):!1}function r(o){return St(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function Bt(e,t){function n(r,o){return I.jsx(ge,L({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=ge.muiName,s.memo(s.forwardRef(n))}const _t={configure:e=>{Pe.configure(e)}},Dt=Object.freeze(Object.defineProperty({__proto__:null,capitalize:nt,createChainedFunction:dt,createSvgIcon:Bt,debounce:ht,deprecatedPropType:mt,isMuiElement:bt,ownerDocument:Ne,ownerWindow:gt,requirePropFactory:yt,setRef:Ve,unstable_ClassNameGenerator:_t,unstable_useEnhancedEffect:Me,unstable_useId:rt,unsupportedProp:Rt,useControlled:xt,useEventCallback:X,useForkRef:oe,useIsFocusVisible:Se},Symbol.toStringTag,{value:"Module"}));function se(e,t){return se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},se(e,t)}function Ft(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,se(e,t)}const Re=W.createContext(null);function Lt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pe(e,t){var n=function(i){return t&&s.isValidElement(i)?t(i):i},r=Object.create(null);return e&&s.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function jt(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,c={};for(var l in t){if(r[l])for(a=0;a<r[l].length;a++){var p=r[l][a];c[r[l][a]]=n(p)}c[l]=n(l)}for(a=0;a<o.length;a++)c[o[a]]=n(o[a]);return c}function F(e,t,n){return n[t]!=null?n[t]:e.props[t]}function kt(e,t){return pe(e.children,function(n){return s.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:F(n,"appear",e),enter:F(n,"enter",e),exit:F(n,"exit",e)})})}function $t(e,t,n){var r=pe(e.children),o=jt(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(s.isValidElement(a)){var c=i in t,l=i in r,p=t[i],d=s.isValidElement(p)&&!p.props.in;l&&(!c||d)?o[i]=s.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:F(a,"exit",e),enter:F(a,"enter",e)}):!l&&c&&!d?o[i]=s.cloneElement(a,{in:!1}):l&&c&&s.isValidElement(p)&&(o[i]=s.cloneElement(a,{onExited:n.bind(null,a),in:p.props.in,exit:F(a,"exit",e),enter:F(a,"enter",e)}))}}),o}var Ot=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Ut={component:"div",childFactory:function(t){return t}},fe=(function(e){Ft(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=i.handleExited.bind(Lt(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,c=i.handleExited,l=i.firstRender;return{children:l?kt(o,c):$t(o,a,c),firstRender:!1}},n.handleExited=function(o,i){var a=pe(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(c){var l=L({},c.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,i=o.component,a=o.childFactory,c=H(o,["component","childFactory"]),l=this.state.contextValue,p=Ot(this.state.children).map(a);return delete c.appear,delete c.enter,delete c.exit,i===null?W.createElement(Re.Provider,{value:l},p):W.createElement(Re.Provider,{value:l},W.createElement(i,c,p))},t})(W.Component);fe.propTypes={};fe.defaultProps=Ut;function Kt(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:c,onExited:l,timeout:p}=e,[d,m]=s.useState(!1),b=C(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},h=C(n.child,d&&n.childLeaving,r&&n.childPulsate);return!c&&!d&&m(!0),s.useEffect(()=>{if(!c&&l!=null){const R=setTimeout(l,p);return()=>{clearTimeout(R)}}},[l,c,p]),I.jsx("span",{className:b,style:y,children:I.jsx("span",{className:h})})}const g=le("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),zt=["center","classes","className"];let J=e=>e,xe,ve,Ee,Te;const ae=550,At=80,Wt=ue(xe||(xe=J`
1
+ import{cu as Qe,cq as et,u as tt,aj as H,ak as L,cv as Me,al as nt,cw as rt,ai as we,x as ue,T as ot,c1 as it}from"./index-Dzr3wWqM.js";import{r as s,j as I,R as W,f as st}from"./react-BYHuwl8r.js";import{C as Pe,c as C,a as le,g as at,b as ut}from"./clsx-WwvpwSg0.js";import{e as lt,s as ce}from"./styled-77pZ9Va6.js";import{S as ge}from"./emotion-styled.browser.esm-CF5-hWBg.js";function Ie(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ie(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ct(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ie(e))&&(r&&(r+=" "),r+=t);return r}const pt=["className","component"];function ft(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Qe("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(et);return s.forwardRef(function(l,p){const d=tt(n),m=lt(l),{className:b,component:y="div"}=m,h=H(m,pt);return I.jsx(i,L({as:y,ref:p,className:ct(b,o?o(r):r),theme:t&&d[t]||d},h))})}function dt(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function ht(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function mt(e,t){return()=>null}function bt(e,t){var n,r;return s.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Ne(e){return e&&e.ownerDocument||document}function gt(e){return Ne(e).defaultView||window}function yt(e,t){return()=>null}function Ve(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Rt(e,t,n,r,o){return null}function xt({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=s.useRef(e!==void 0),[i,a]=s.useState(t),c=o?e:i,l=s.useCallback(p=>{o||a(p)},[]);return[c,l]}function X(e){const t=s.useRef(e);return Me(()=>{t.current=e}),s.useRef((...n)=>(0,t.current)(...n)).current}function oe(...e){return s.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Ve(n,t)})},e)}const ye={};function vt(e,t){const n=s.useRef(ye);return n.current===ye&&(n.current=e(t)),n}const Et=[];function Tt(e){s.useEffect(e,Et)}class G{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new G}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Ct(){const e=vt(G.create).current;return Tt(e.disposeEffect),e}let Z=!0,ie=!1;const Mt=new G,wt={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Pt(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&wt[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function It(e){e.metaKey||e.altKey||e.ctrlKey||(Z=!0)}function ne(){Z=!1}function Nt(){this.visibilityState==="hidden"&&ie&&(Z=!0)}function Vt(e){e.addEventListener("keydown",It,!0),e.addEventListener("mousedown",ne,!0),e.addEventListener("pointerdown",ne,!0),e.addEventListener("touchstart",ne,!0),e.addEventListener("visibilitychange",Nt,!0)}function St(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Z||Pt(t)}function Se(){const e=s.useCallback(o=>{o!=null&&Vt(o.ownerDocument)},[]),t=s.useRef(!1);function n(){return t.current?(ie=!0,Mt.start(100,()=>{ie=!1}),t.current=!1,!0):!1}function r(o){return St(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function Bt(e,t){function n(r,o){return I.jsx(ge,L({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=ge.muiName,s.memo(s.forwardRef(n))}const _t={configure:e=>{Pe.configure(e)}},Dt=Object.freeze(Object.defineProperty({__proto__:null,capitalize:nt,createChainedFunction:dt,createSvgIcon:Bt,debounce:ht,deprecatedPropType:mt,isMuiElement:bt,ownerDocument:Ne,ownerWindow:gt,requirePropFactory:yt,setRef:Ve,unstable_ClassNameGenerator:_t,unstable_useEnhancedEffect:Me,unstable_useId:rt,unsupportedProp:Rt,useControlled:xt,useEventCallback:X,useForkRef:oe,useIsFocusVisible:Se},Symbol.toStringTag,{value:"Module"}));function se(e,t){return se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},se(e,t)}function Ft(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,se(e,t)}const Re=W.createContext(null);function Lt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pe(e,t){var n=function(i){return t&&s.isValidElement(i)?t(i):i},r=Object.create(null);return e&&s.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function jt(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,c={};for(var l in t){if(r[l])for(a=0;a<r[l].length;a++){var p=r[l][a];c[r[l][a]]=n(p)}c[l]=n(l)}for(a=0;a<o.length;a++)c[o[a]]=n(o[a]);return c}function F(e,t,n){return n[t]!=null?n[t]:e.props[t]}function kt(e,t){return pe(e.children,function(n){return s.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:F(n,"appear",e),enter:F(n,"enter",e),exit:F(n,"exit",e)})})}function $t(e,t,n){var r=pe(e.children),o=jt(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(s.isValidElement(a)){var c=i in t,l=i in r,p=t[i],d=s.isValidElement(p)&&!p.props.in;l&&(!c||d)?o[i]=s.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:F(a,"exit",e),enter:F(a,"enter",e)}):!l&&c&&!d?o[i]=s.cloneElement(a,{in:!1}):l&&c&&s.isValidElement(p)&&(o[i]=s.cloneElement(a,{onExited:n.bind(null,a),in:p.props.in,exit:F(a,"exit",e),enter:F(a,"enter",e)}))}}),o}var Ot=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Ut={component:"div",childFactory:function(t){return t}},fe=(function(e){Ft(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=i.handleExited.bind(Lt(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,c=i.handleExited,l=i.firstRender;return{children:l?kt(o,c):$t(o,a,c),firstRender:!1}},n.handleExited=function(o,i){var a=pe(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(c){var l=L({},c.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,i=o.component,a=o.childFactory,c=H(o,["component","childFactory"]),l=this.state.contextValue,p=Ot(this.state.children).map(a);return delete c.appear,delete c.enter,delete c.exit,i===null?W.createElement(Re.Provider,{value:l},p):W.createElement(Re.Provider,{value:l},W.createElement(i,c,p))},t})(W.Component);fe.propTypes={};fe.defaultProps=Ut;function Kt(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:c,onExited:l,timeout:p}=e,[d,m]=s.useState(!1),b=C(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},h=C(n.child,d&&n.childLeaving,r&&n.childPulsate);return!c&&!d&&m(!0),s.useEffect(()=>{if(!c&&l!=null){const R=setTimeout(l,p);return()=>{clearTimeout(R)}}},[l,c,p]),I.jsx("span",{className:b,style:y,children:I.jsx("span",{className:h})})}const g=le("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),zt=["center","classes","className"];let J=e=>e,xe,ve,Ee,Te;const ae=550,At=80,Wt=ue(xe||(xe=J`
2
2
  0% {
3
3
  transform: scale(0);
4
4
  opacity: 0.1;
@@ -1 +1 @@
1
- import{aD as z,aV as G,a3 as E,aE as Q,a4 as H,aF as Y,b9 as T,a8 as J,bT as W,q as X,bh as Z,bU as K,az as tt,aq as et,bi as nt}from"./sendRawTransaction-Bg5Bog-D.js";import{af as q,am as C,a7 as at,ax as rt,B as st,ad as M}from"./NetworkUtil-DXqql1Wz.js";import{P as S,w as A,Q as ot,c as ct}from"./W3MFrameProviderSingleton-BSPMxIrN.js";const v=new Map,D=new Map;let it=0;function _(t,n,a){const e=++it,r=()=>v.get(t)||[],s=()=>{const l=r().filter(o=>o.id!==e);if(l.length===0){v.delete(t),D.delete(t);return}v.set(t,l)},f=()=>{const p=r();if(!p.some(o=>o.id===e))return;const l=D.get(t);if(p.length===1&&l){const o=l();o instanceof Promise&&o.catch(()=>{})}s()},b=r();if(v.set(t,[...b,{id:e,fns:n}]),b&&b.length>0)return f;const i={};for(const p in n)i[p]=((...l)=>{var c,u;const o=r();if(o.length!==0)for(const d of o)(u=(c=d.fns)[p])==null||u.call(c,...l)});const g=a(i);return typeof g=="function"&&D.set(t,g),f}function U(t,{emitOnBegin:n,initialWaitTime:a,interval:e}){let r=!0;const s=()=>r=!1;return(async()=>{let b;n&&(b=await t({unpoll:s}));const i=await(a==null?void 0:a(b))??e;await S(i);const g=async()=>{r&&(await t({unpoll:s}),await S(e),g())};g()})(),s}function ut(t,{method:n}){var e,r;const a={};return t.transport.type==="fallback"&&((r=(e=t.transport).onResponse)==null||r.call(e,({method:s,response:f,status:b,transport:i})=>{b==="success"&&n===s&&(a[f]=i.request)})),(s=>a[s]||t.request)}const lt=new Map,ft=new Map;function pt(t){const n=(r,s)=>({clear:()=>s.delete(r),get:()=>s.get(r),set:f=>s.set(r,f)}),a=n(t,lt),e=n(t,ft);return{clear:()=>{a.clear(),e.clear()},promise:a,response:e}}async function dt(t,{cacheKey:n,cacheTime:a=Number.POSITIVE_INFINITY}){const e=pt(n),r=e.response.get();if(r&&a>0&&Date.now()-r.created.getTime()<a)return r.data;let s=e.promise.get();s||(s=t(),e.promise.set(s));try{const f=await s;return e.response.set({created:new Date,data:f}),f}finally{e.promise.clear()}}const bt=t=>`blockNumber.${t}`;async function gt(t,{cacheTime:n=t.cacheTime}={}){const a=await dt(()=>t.request({method:"eth_blockNumber"}),{cacheKey:bt(t.uid),cacheTime:n});return BigInt(a)}async function mt(t,{filter:n}){const a="strict"in n&&n.strict,e=await n.request({method:"eth_getFilterChanges",params:[n.id]});if(typeof e[0]=="string")return e;const r=e.map(s=>z(s));return!("abi"in n)||!n.abi?r:G({abi:n.abi,logs:r,strict:a})}async function ht(t,{filter:n}){return n.request({method:"eth_uninstallFilter",params:[n.id]})}async function yt(t,{blockHash:n,blockNumber:a,blockTag:e,hash:r,index:s,sender:f,nonce:b}){var o,c,u;const i=e||"latest",g=a!==void 0?q(a):void 0;let p=null;if(r?p=await t.request({method:"eth_getTransactionByHash",params:[r]},{dedupe:!0}):n?p=await t.request({method:"eth_getTransactionByBlockHashAndIndex",params:[n,q(s)]},{dedupe:!0}):typeof s=="number"?p=await t.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[g||i,q(s)]},{dedupe:!!g}):f&&typeof b=="number"&&(p=await t.request({method:"eth_getTransactionBySenderAndNonce",params:[f,q(b)]},{dedupe:!0})),!p)throw new E({blockHash:n,blockNumber:a,blockTag:i,hash:r,index:s});return(((u=(c=(o=t.chain)==null?void 0:o.formatters)==null?void 0:c.transaction)==null?void 0:u.format)||Q)(p,"getTransaction")}async function O(t,{hash:n}){var r,s,f;const a=await t.request({method:"eth_getTransactionReceipt",params:[n]},{dedupe:!0});if(!a)throw new H({hash:n});return(((f=(s=(r=t.chain)==null?void 0:r.formatters)==null?void 0:s.transactionReceipt)==null?void 0:f.format)||Y)(a,"getTransactionReceipt")}function wt(t,{emitOnBegin:n=!1,emitMissed:a=!1,onBlockNumber:e,onError:r,poll:s,pollingInterval:f=t.pollingInterval}){const b=typeof s<"u"?s:!(t.transport.type==="webSocket"||t.transport.type==="ipc"||t.transport.type==="fallback"&&(t.transport.transports[0].config.type==="webSocket"||t.transport.transports[0].config.type==="ipc"));let i;return b?(()=>{const l=C(["watchBlockNumber",t.uid,n,a,f]);return _(l,{onBlockNumber:e,onError:r},o=>U(async()=>{var c;try{const u=await T(t,gt,"getBlockNumber")({cacheTime:0});if(i!==void 0){if(u===i)return;if(u-i>1&&a)for(let d=i+1n;d<u;d++)o.onBlockNumber(d,i),i=d}(i===void 0||u>i)&&(o.onBlockNumber(u,i),i=u)}catch(u){(c=o.onError)==null||c.call(o,u)}},{emitOnBegin:n,interval:f}))})():(()=>{const l=C(["watchBlockNumber",t.uid,n,a]);return _(l,{onBlockNumber:e,onError:r},o=>{let c=!0,u=()=>c=!1;return(async()=>{try{const d=(()=>{if(t.transport.type==="fallback"){const N=t.transport.transports.find(h=>h.config.type==="webSocket"||h.config.type==="ipc");return N?N.value:t.transport}return t.transport})(),{unsubscribe:w}=await d.subscribe({params:["newHeads"],onData(N){var I;if(!c)return;const h=at((I=N.result)==null?void 0:I.number);o.onBlockNumber(h,i),i=h},onError(N){var h;(h=o.onError)==null||h.call(o,N)}});u=w,c||u()}catch(d){r==null||r(d)}})(),()=>u()})})()}async function Rt(t,n){const{checkReplacement:a=!0,confirmations:e=1,hash:r,onReplaced:s,retryCount:f=6,retryDelay:b=({count:m})=>~~(1<<m)*200,timeout:i=18e4}=n,g=C(["waitForTransactionReceipt",t.uid,r]),p=(()=>{var m;return n.pollingInterval?n.pollingInterval:(m=t.chain)!=null&&m.experimental_preconfirmationTime?t.chain.experimental_preconfirmationTime:t.pollingInterval})();let l,o,c,u=!1,d,w;const{promise:N,resolve:h,reject:I}=rt(),F=i?setTimeout(()=>{w==null||w(),d==null||d(),I(new J({hash:r}))},i):void 0;return d=_(g,{onReplaced:s,resolve:h,reject:I},async m=>{if(c=await T(t,O,"getTransactionReceipt")({hash:r}).catch(()=>{}),c&&e<=1){clearTimeout(F),m.resolve(c),d==null||d();return}w=T(t,wt,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:p,async onBlockNumber($){const B=k=>{clearTimeout(F),w==null||w(),k(),d==null||d()};let R=$;if(!u)try{if(c){if(e>1&&(!c.blockNumber||R-c.blockNumber+1n<e))return;B(()=>m.resolve(c));return}if(a&&!l&&(u=!0,await A(async()=>{l=await T(t,yt,"getTransaction")({hash:r}),l.blockNumber&&(R=l.blockNumber)},{delay:b,retryCount:f}),u=!1),c=await T(t,O,"getTransactionReceipt")({hash:r}),e>1&&(!c.blockNumber||R-c.blockNumber+1n<e))return;B(()=>m.resolve(c))}catch(k){if(k instanceof E||k instanceof H){if(!l){u=!1;return}try{o=l,u=!0;const P=await A(()=>T(t,W,"getBlock")({blockNumber:R,includeTransactions:!0}),{delay:b,retryCount:f,shouldRetry:({error:x})=>x instanceof X});u=!1;const y=P.transactions.find(({from:x,nonce:V})=>x===o.from&&V===o.nonce);if(!y||(c=await T(t,O,"getTransactionReceipt")({hash:y.hash}),e>1&&(!c.blockNumber||R-c.blockNumber+1n<e)))return;let j="replaced";y.to===o.to&&y.value===o.value&&y.input===o.input?j="repriced":y.from===y.to&&y.value===0n&&(j="cancelled"),B(()=>{var x;(x=m.onReplaced)==null||x.call(m,{reason:j,replacedTransaction:o,transaction:y,transactionReceipt:c}),m.resolve(c)})}catch(P){B(()=>m.reject(P))}}else B(()=>m.reject(k))}}})}),N}class kt extends st{constructor({value:n}){super(`Number \`${n}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function Pt(t,n){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(t))throw new kt({value:t});let[a,e="0"]=t.split(".");const r=a.startsWith("-");if(r&&(a=a.slice(1)),e=e.replace(/(0+)$/,""),n===0)Math.round(+`.${e}`)===1&&(a=`${BigInt(a)+1n}`),e="";else if(e.length>n){const[s,f,b]=[e.slice(0,n-1),e.slice(n-1,n),e.slice(n)],i=Math.round(+`${f}.${b}`);i>9?e=`${BigInt(s)+BigInt(1)}0`.padStart(s.length+1,"0"):e=`${s}${i}`,e.length>n&&(e=e.slice(1),a=`${BigInt(a)+1n}`),e=e.slice(0,n)}else e=e.padEnd(n,"0");return BigInt(`${r?"-":""}${a}${e}`)}function xt(t){const{batch:n,chain:a,ccipRead:e,dataSuffix:r,key:s="base",name:f="Base Client",tokens:b,type:i="base"}=t,g=t.experimental_blockTag??(typeof(a==null?void 0:a.experimental_preconfirmationTime)=="number"?"pending":void 0),p=(a==null?void 0:a.blockTime)??12e3,l=Math.min(Math.max(Math.floor(p/2),500),4e3),o=t.pollingInterval??l,c=t.cacheTime??o,u=t.account?Z(t.account):void 0,{config:d,request:w,value:N}=t.transport({account:u,chain:a,pollingInterval:o}),h={...d,...N},I={account:u,batch:n,cacheTime:c,ccipRead:e,chain:a,dataSuffix:r,key:s,name:f,pollingInterval:o,request:w,tokens:b,transport:h,type:i,uid:ot(),...g?{experimental_blockTag:g}:{}};function F(m){return $=>{const B=$(m);for(const k in I)delete B[k];const R={...m,...B};for(const k in B){const P=m[k],y=B[k];L(P)&&L(y)&&(R[k]={...P,...y})}return Object.assign(R,{extend:F(R)})}}return Object.assign(I,{extend:F(I)})}function L(t){if(typeof t!="object"||t===null)return!1;const n=Object.getPrototypeOf(t);return n===Object.prototype||n===null}function Ft(t,n){const a=(e={})=>n(t,e);for(const e of["call","calls","callWithPeriod","estimateGas","simulate"])if(Object.hasOwn(n,e)){const r=n[e];a[e]=(s={})=>r.length>=2?r(t,s):r.length===0?r():r(s)}for(const e of["extractEvent","extractEvents"])Object.hasOwn(n,e)&&(a[e]=n[e]);return a}async function Tt(t){const n=ut(t,{method:"eth_newPendingTransactionFilter"}),a=await t.request({method:"eth_newPendingTransactionFilter"});return{id:a,request:n(a),type:"transaction"}}async function qt(t,{address:n,blockHash:a,blockNumber:e,blockTag:r=t.experimental_blockTag??"latest",requireCanonical:s}){var i,g,p;const f=K({blockHash:a,blockNumber:e,blockTag:r,requireCanonical:s});if((i=t.batch)!=null&&i.multicall&&((p=(g=t.chain)==null?void 0:g.contracts)!=null&&p.multicall3)){const l=t.chain.contracts.multicall3.address,o=tt({abi:M,functionName:"getEthBalance",args:[n]}),{data:c}=await T(t,nt,"call")({to:l,data:o,blockHash:a,blockNumber:e,blockTag:r,requireCanonical:s});return et({abi:M,functionName:"getEthBalance",args:[n],data:c||"0x"})}const b=await t.request({method:"eth_getBalance",params:[n,f]});return BigInt(b)}function vt(t,{batch:n=!0,onError:a,onTransactions:e,poll:r,pollingInterval:s=t.pollingInterval}){return(typeof r<"u"?r:t.transport.type!=="webSocket"&&t.transport.type!=="ipc")?(()=>{const g=C(["watchPendingTransactions",t.uid,n,s]);return _(g,{onTransactions:e,onError:a},p=>{let l;const o=U(async()=>{var c;try{if(!l)try{l=await T(t,Tt,"createPendingTransactionFilter")({});return}catch(d){throw o(),d}const u=await T(t,mt,"getFilterChanges")({filter:l});if(u.length===0)return;if(n)p.onTransactions(u);else for(const d of u)p.onTransactions([d])}catch(u){(c=p.onError)==null||c.call(p,u)}},{emitOnBegin:!0,interval:s});return async()=>{l&&await T(t,ht,"uninstallFilter")({filter:l}),o()}})})():(()=>{let g=!0,p=()=>g=!1;return(async()=>{try{const{unsubscribe:l}=await t.transport.subscribe({params:["newPendingTransactions"],onData(o){if(!g)return;const c=o.result;e([c])},onError(o){a==null||a(o)}});p=l,g||p()}catch(l){a==null||a(l)}})(),()=>p()})()}function Ct(t,n={}){const{key:a="custom",methods:e,name:r="Custom Provider",retryDelay:s}=n;return({retryCount:f})=>ct({key:a,methods:e,name:r,request:t.request.bind(t),retryCount:n.retryCount??f,retryDelay:s,type:"custom"})}export{kt as I,Ct as a,Rt as b,xt as c,yt as d,vt as e,U as f,qt as g,ut as h,mt as i,gt as j,wt as k,O as l,Tt as m,Ft as n,_ as o,Pt as p,ht as u,dt as w};
1
+ import{aD as z,aV as G,a3 as E,aE as Q,a4 as H,aF as Y,b9 as T,a8 as J,bT as W,q as X,bh as Z,bU as K,az as tt,aq as et,bi as nt}from"./sendRawTransaction-ZVd15bYm.js";import{af as q,am as C,a7 as at,ax as rt,B as st,ad as M}from"./NetworkUtil-DXqql1Wz.js";import{P as S,w as A,Q as ot,c as ct}from"./W3MFrameProviderSingleton-CnouvR1_.js";const v=new Map,D=new Map;let it=0;function _(t,n,a){const e=++it,r=()=>v.get(t)||[],s=()=>{const l=r().filter(o=>o.id!==e);if(l.length===0){v.delete(t),D.delete(t);return}v.set(t,l)},f=()=>{const p=r();if(!p.some(o=>o.id===e))return;const l=D.get(t);if(p.length===1&&l){const o=l();o instanceof Promise&&o.catch(()=>{})}s()},b=r();if(v.set(t,[...b,{id:e,fns:n}]),b&&b.length>0)return f;const i={};for(const p in n)i[p]=((...l)=>{var c,u;const o=r();if(o.length!==0)for(const d of o)(u=(c=d.fns)[p])==null||u.call(c,...l)});const g=a(i);return typeof g=="function"&&D.set(t,g),f}function U(t,{emitOnBegin:n,initialWaitTime:a,interval:e}){let r=!0;const s=()=>r=!1;return(async()=>{let b;n&&(b=await t({unpoll:s}));const i=await(a==null?void 0:a(b))??e;await S(i);const g=async()=>{r&&(await t({unpoll:s}),await S(e),g())};g()})(),s}function ut(t,{method:n}){var e,r;const a={};return t.transport.type==="fallback"&&((r=(e=t.transport).onResponse)==null||r.call(e,({method:s,response:f,status:b,transport:i})=>{b==="success"&&n===s&&(a[f]=i.request)})),(s=>a[s]||t.request)}const lt=new Map,ft=new Map;function pt(t){const n=(r,s)=>({clear:()=>s.delete(r),get:()=>s.get(r),set:f=>s.set(r,f)}),a=n(t,lt),e=n(t,ft);return{clear:()=>{a.clear(),e.clear()},promise:a,response:e}}async function dt(t,{cacheKey:n,cacheTime:a=Number.POSITIVE_INFINITY}){const e=pt(n),r=e.response.get();if(r&&a>0&&Date.now()-r.created.getTime()<a)return r.data;let s=e.promise.get();s||(s=t(),e.promise.set(s));try{const f=await s;return e.response.set({created:new Date,data:f}),f}finally{e.promise.clear()}}const bt=t=>`blockNumber.${t}`;async function gt(t,{cacheTime:n=t.cacheTime}={}){const a=await dt(()=>t.request({method:"eth_blockNumber"}),{cacheKey:bt(t.uid),cacheTime:n});return BigInt(a)}async function mt(t,{filter:n}){const a="strict"in n&&n.strict,e=await n.request({method:"eth_getFilterChanges",params:[n.id]});if(typeof e[0]=="string")return e;const r=e.map(s=>z(s));return!("abi"in n)||!n.abi?r:G({abi:n.abi,logs:r,strict:a})}async function ht(t,{filter:n}){return n.request({method:"eth_uninstallFilter",params:[n.id]})}async function yt(t,{blockHash:n,blockNumber:a,blockTag:e,hash:r,index:s,sender:f,nonce:b}){var o,c,u;const i=e||"latest",g=a!==void 0?q(a):void 0;let p=null;if(r?p=await t.request({method:"eth_getTransactionByHash",params:[r]},{dedupe:!0}):n?p=await t.request({method:"eth_getTransactionByBlockHashAndIndex",params:[n,q(s)]},{dedupe:!0}):typeof s=="number"?p=await t.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[g||i,q(s)]},{dedupe:!!g}):f&&typeof b=="number"&&(p=await t.request({method:"eth_getTransactionBySenderAndNonce",params:[f,q(b)]},{dedupe:!0})),!p)throw new E({blockHash:n,blockNumber:a,blockTag:i,hash:r,index:s});return(((u=(c=(o=t.chain)==null?void 0:o.formatters)==null?void 0:c.transaction)==null?void 0:u.format)||Q)(p,"getTransaction")}async function O(t,{hash:n}){var r,s,f;const a=await t.request({method:"eth_getTransactionReceipt",params:[n]},{dedupe:!0});if(!a)throw new H({hash:n});return(((f=(s=(r=t.chain)==null?void 0:r.formatters)==null?void 0:s.transactionReceipt)==null?void 0:f.format)||Y)(a,"getTransactionReceipt")}function wt(t,{emitOnBegin:n=!1,emitMissed:a=!1,onBlockNumber:e,onError:r,poll:s,pollingInterval:f=t.pollingInterval}){const b=typeof s<"u"?s:!(t.transport.type==="webSocket"||t.transport.type==="ipc"||t.transport.type==="fallback"&&(t.transport.transports[0].config.type==="webSocket"||t.transport.transports[0].config.type==="ipc"));let i;return b?(()=>{const l=C(["watchBlockNumber",t.uid,n,a,f]);return _(l,{onBlockNumber:e,onError:r},o=>U(async()=>{var c;try{const u=await T(t,gt,"getBlockNumber")({cacheTime:0});if(i!==void 0){if(u===i)return;if(u-i>1&&a)for(let d=i+1n;d<u;d++)o.onBlockNumber(d,i),i=d}(i===void 0||u>i)&&(o.onBlockNumber(u,i),i=u)}catch(u){(c=o.onError)==null||c.call(o,u)}},{emitOnBegin:n,interval:f}))})():(()=>{const l=C(["watchBlockNumber",t.uid,n,a]);return _(l,{onBlockNumber:e,onError:r},o=>{let c=!0,u=()=>c=!1;return(async()=>{try{const d=(()=>{if(t.transport.type==="fallback"){const N=t.transport.transports.find(h=>h.config.type==="webSocket"||h.config.type==="ipc");return N?N.value:t.transport}return t.transport})(),{unsubscribe:w}=await d.subscribe({params:["newHeads"],onData(N){var I;if(!c)return;const h=at((I=N.result)==null?void 0:I.number);o.onBlockNumber(h,i),i=h},onError(N){var h;(h=o.onError)==null||h.call(o,N)}});u=w,c||u()}catch(d){r==null||r(d)}})(),()=>u()})})()}async function Rt(t,n){const{checkReplacement:a=!0,confirmations:e=1,hash:r,onReplaced:s,retryCount:f=6,retryDelay:b=({count:m})=>~~(1<<m)*200,timeout:i=18e4}=n,g=C(["waitForTransactionReceipt",t.uid,r]),p=(()=>{var m;return n.pollingInterval?n.pollingInterval:(m=t.chain)!=null&&m.experimental_preconfirmationTime?t.chain.experimental_preconfirmationTime:t.pollingInterval})();let l,o,c,u=!1,d,w;const{promise:N,resolve:h,reject:I}=rt(),F=i?setTimeout(()=>{w==null||w(),d==null||d(),I(new J({hash:r}))},i):void 0;return d=_(g,{onReplaced:s,resolve:h,reject:I},async m=>{if(c=await T(t,O,"getTransactionReceipt")({hash:r}).catch(()=>{}),c&&e<=1){clearTimeout(F),m.resolve(c),d==null||d();return}w=T(t,wt,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:p,async onBlockNumber($){const B=k=>{clearTimeout(F),w==null||w(),k(),d==null||d()};let R=$;if(!u)try{if(c){if(e>1&&(!c.blockNumber||R-c.blockNumber+1n<e))return;B(()=>m.resolve(c));return}if(a&&!l&&(u=!0,await A(async()=>{l=await T(t,yt,"getTransaction")({hash:r}),l.blockNumber&&(R=l.blockNumber)},{delay:b,retryCount:f}),u=!1),c=await T(t,O,"getTransactionReceipt")({hash:r}),e>1&&(!c.blockNumber||R-c.blockNumber+1n<e))return;B(()=>m.resolve(c))}catch(k){if(k instanceof E||k instanceof H){if(!l){u=!1;return}try{o=l,u=!0;const P=await A(()=>T(t,W,"getBlock")({blockNumber:R,includeTransactions:!0}),{delay:b,retryCount:f,shouldRetry:({error:x})=>x instanceof X});u=!1;const y=P.transactions.find(({from:x,nonce:V})=>x===o.from&&V===o.nonce);if(!y||(c=await T(t,O,"getTransactionReceipt")({hash:y.hash}),e>1&&(!c.blockNumber||R-c.blockNumber+1n<e)))return;let j="replaced";y.to===o.to&&y.value===o.value&&y.input===o.input?j="repriced":y.from===y.to&&y.value===0n&&(j="cancelled"),B(()=>{var x;(x=m.onReplaced)==null||x.call(m,{reason:j,replacedTransaction:o,transaction:y,transactionReceipt:c}),m.resolve(c)})}catch(P){B(()=>m.reject(P))}}else B(()=>m.reject(k))}}})}),N}class kt extends st{constructor({value:n}){super(`Number \`${n}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function Pt(t,n){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(t))throw new kt({value:t});let[a,e="0"]=t.split(".");const r=a.startsWith("-");if(r&&(a=a.slice(1)),e=e.replace(/(0+)$/,""),n===0)Math.round(+`.${e}`)===1&&(a=`${BigInt(a)+1n}`),e="";else if(e.length>n){const[s,f,b]=[e.slice(0,n-1),e.slice(n-1,n),e.slice(n)],i=Math.round(+`${f}.${b}`);i>9?e=`${BigInt(s)+BigInt(1)}0`.padStart(s.length+1,"0"):e=`${s}${i}`,e.length>n&&(e=e.slice(1),a=`${BigInt(a)+1n}`),e=e.slice(0,n)}else e=e.padEnd(n,"0");return BigInt(`${r?"-":""}${a}${e}`)}function xt(t){const{batch:n,chain:a,ccipRead:e,dataSuffix:r,key:s="base",name:f="Base Client",tokens:b,type:i="base"}=t,g=t.experimental_blockTag??(typeof(a==null?void 0:a.experimental_preconfirmationTime)=="number"?"pending":void 0),p=(a==null?void 0:a.blockTime)??12e3,l=Math.min(Math.max(Math.floor(p/2),500),4e3),o=t.pollingInterval??l,c=t.cacheTime??o,u=t.account?Z(t.account):void 0,{config:d,request:w,value:N}=t.transport({account:u,chain:a,pollingInterval:o}),h={...d,...N},I={account:u,batch:n,cacheTime:c,ccipRead:e,chain:a,dataSuffix:r,key:s,name:f,pollingInterval:o,request:w,tokens:b,transport:h,type:i,uid:ot(),...g?{experimental_blockTag:g}:{}};function F(m){return $=>{const B=$(m);for(const k in I)delete B[k];const R={...m,...B};for(const k in B){const P=m[k],y=B[k];L(P)&&L(y)&&(R[k]={...P,...y})}return Object.assign(R,{extend:F(R)})}}return Object.assign(I,{extend:F(I)})}function L(t){if(typeof t!="object"||t===null)return!1;const n=Object.getPrototypeOf(t);return n===Object.prototype||n===null}function Ft(t,n){const a=(e={})=>n(t,e);for(const e of["call","calls","callWithPeriod","estimateGas","simulate"])if(Object.hasOwn(n,e)){const r=n[e];a[e]=(s={})=>r.length>=2?r(t,s):r.length===0?r():r(s)}for(const e of["extractEvent","extractEvents"])Object.hasOwn(n,e)&&(a[e]=n[e]);return a}async function Tt(t){const n=ut(t,{method:"eth_newPendingTransactionFilter"}),a=await t.request({method:"eth_newPendingTransactionFilter"});return{id:a,request:n(a),type:"transaction"}}async function qt(t,{address:n,blockHash:a,blockNumber:e,blockTag:r=t.experimental_blockTag??"latest",requireCanonical:s}){var i,g,p;const f=K({blockHash:a,blockNumber:e,blockTag:r,requireCanonical:s});if((i=t.batch)!=null&&i.multicall&&((p=(g=t.chain)==null?void 0:g.contracts)!=null&&p.multicall3)){const l=t.chain.contracts.multicall3.address,o=tt({abi:M,functionName:"getEthBalance",args:[n]}),{data:c}=await T(t,nt,"call")({to:l,data:o,blockHash:a,blockNumber:e,blockTag:r,requireCanonical:s});return et({abi:M,functionName:"getEthBalance",args:[n],data:c||"0x"})}const b=await t.request({method:"eth_getBalance",params:[n,f]});return BigInt(b)}function vt(t,{batch:n=!0,onError:a,onTransactions:e,poll:r,pollingInterval:s=t.pollingInterval}){return(typeof r<"u"?r:t.transport.type!=="webSocket"&&t.transport.type!=="ipc")?(()=>{const g=C(["watchPendingTransactions",t.uid,n,s]);return _(g,{onTransactions:e,onError:a},p=>{let l;const o=U(async()=>{var c;try{if(!l)try{l=await T(t,Tt,"createPendingTransactionFilter")({});return}catch(d){throw o(),d}const u=await T(t,mt,"getFilterChanges")({filter:l});if(u.length===0)return;if(n)p.onTransactions(u);else for(const d of u)p.onTransactions([d])}catch(u){(c=p.onError)==null||c.call(p,u)}},{emitOnBegin:!0,interval:s});return async()=>{l&&await T(t,ht,"uninstallFilter")({filter:l}),o()}})})():(()=>{let g=!0,p=()=>g=!1;return(async()=>{try{const{unsubscribe:l}=await t.transport.subscribe({params:["newPendingTransactions"],onData(o){if(!g)return;const c=o.result;e([c])},onError(o){a==null||a(o)}});p=l,g||p()}catch(l){a==null||a(l)}})(),()=>p()})()}function Ct(t,n={}){const{key:a="custom",methods:e,name:r="Custom Provider",retryDelay:s}=n;return({retryCount:f})=>ct({key:a,methods:e,name:r,request:t.request.bind(t),retryCount:n.retryCount??f,retryDelay:s,type:"custom"})}export{kt as I,Ct as a,Rt as b,xt as c,yt as d,vt as e,U as f,qt as g,ut as h,mt as i,gt as j,wt as k,O as l,Tt as m,Ft as n,_ as o,Pt as p,ht as u,dt as w};
@@ -1,4 +1,4 @@
1
- import{a as y,i as $,b as l}from"./lit-element-B3y9oplH.js";import{n as S,r as u}from"./class-map-CxwNmq0D.js";import"./index-CM7mcfju.js";import{c as x,U as _}from"./index-CJydVry-.js";import{W as E}from"./index-byTukmCU.js";import{O as m,R as p,C as f,S as h,v as C,x as R}from"./W3MFrameProviderSingleton-BSPMxIrN.js";import{ReownAuthentication as v}from"./features-CwmiB51C.js";import"./index-CJmYIHke.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--mkx_Ub3.js";import"./events-DQ172AOg.js";import"./index-CWNHwTp9.js";import"./index-w01WQ1OT.js";import"./index-nibyPLVP.js";import"./index-5IfbtLyI.js";import"./index.es-Bz8gZ7qB.js";import"./browser-ponyfill-Dj0kiq3a.js";import"./NetworkUtil-DXqql1Wz.js";import"./index-BGW-6qbU.js";import"./index-CfVyYh3y.js";const D=y`
1
+ import{a as y,i as $,b as l}from"./lit-element-B3y9oplH.js";import{n as S,r as u}from"./class-map-CxwNmq0D.js";import"./index-I9-XdzvE.js";import{c as x,U as _}from"./index-D5qxgeiD.js";import{W as E}from"./index-BMTgIyWN.js";import{O as m,R as p,C as f,S as h,v as C,x as R}from"./W3MFrameProviderSingleton-CnouvR1_.js";import{ReownAuthentication as v}from"./features-UalfAxmx.js";import"./index-Dzr3wWqM.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-QG0o4yA6.js";import"./events-DQ172AOg.js";import"./index-BP0EmBJ-.js";import"./index-w01WQ1OT.js";import"./index-nibyPLVP.js";import"./index-CAnMkSsw.js";import"./index.es-QXU_nQ-C.js";import"./browser-ponyfill-Dj0kiq3a.js";import"./NetworkUtil-DXqql1Wz.js";import"./index-DYtEpEFW.js";import"./index-CbKqTE1n.js";const D=y`
2
2
  .email-sufixes {
3
3
  display: flex;
4
4
  flex-direction: row;
@@ -1,4 +1,4 @@
1
- import{d as S}from"./index-CM7mcfju.js";import{c as d}from"./index-CJydVry-.js";import{W as C}from"./index-byTukmCU.js";import{C as D,k as g,O as h,E as c,M as _,R as s,S as f,b,o as m,y as $}from"./W3MFrameProviderSingleton-BSPMxIrN.js";import{i as y,b as u,a as W}from"./lit-element-B3y9oplH.js";import{r as E}from"./class-map-CxwNmq0D.js";import"./index-Brs0Pv5-.js";import"./index-BGW-6qbU.js";import{e as P,n as N}from"./ref-BsAZ42-h.js";import"./index-Csbo1eza.js";import"./index-D-uEOpjO.js";import{au as T}from"./NetworkUtil-DXqql1Wz.js";import"./index-CJmYIHke.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--mkx_Ub3.js";import"./events-DQ172AOg.js";import"./index-CWNHwTp9.js";import"./index-w01WQ1OT.js";import"./index-nibyPLVP.js";import"./index-5IfbtLyI.js";import"./index.es-Bz8gZ7qB.js";import"./browser-ponyfill-Dj0kiq3a.js";import"./index-CfVyYh3y.js";import"./async-directive-BRxn_Py3.js";import"./index-Du7SSwQ3.js";var F=function(o,e,t,r){var n=arguments.length,i=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,r);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(i=(n<3?a(i):n>3?a(e,t,i):a(e,t))||i);return n>3&&i&&Object.defineProperty(e,t,i),i};let I=class extends C{constructor(){super(...arguments),this.onOtpSubmit=async e=>{var t,r;try{if(this.authConnector){const n=D.state.activeChain,i=g.getConnections(n),a=(t=h.state.remoteFeatures)==null?void 0:t.multiWallet,l=i.length>0;if(await this.authConnector.provider.connectOtp({otp:e}),c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),n)await g.connectExternal(this.authConnector,n);else throw new Error("Active chain is not set on ChainController");if((r=h.state.remoteFeatures)!=null&&r.emailCapture)return;if(h.state.siwx){_.close();return}if(l&&a){s.replace("ProfileWallets"),f.showSuccess("New Wallet Added");return}_.close()}}catch(n){throw c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL",properties:{message:b.parseError(n)}}),n}},this.onOtpResend=async e=>{this.authConnector&&(await this.authConnector.provider.connectEmail({email:e}),c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}))}}};I=F([d("w3m-email-verify-otp-view")],I);const U=S`
1
+ import{d as S}from"./index-I9-XdzvE.js";import{c as d}from"./index-D5qxgeiD.js";import{W as C}from"./index-BMTgIyWN.js";import{C as D,k as g,O as h,E as c,M as _,R as s,S as f,b,o as m,y as $}from"./W3MFrameProviderSingleton-CnouvR1_.js";import{i as y,b as u,a as W}from"./lit-element-B3y9oplH.js";import{r as E}from"./class-map-CxwNmq0D.js";import"./index-EXmcWYkf.js";import"./index-DYtEpEFW.js";import{e as P,n as N}from"./ref-BsAZ42-h.js";import"./index-txnyrMV_.js";import"./index-BQn4WbOu.js";import{au as T}from"./NetworkUtil-DXqql1Wz.js";import"./index-Dzr3wWqM.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-QG0o4yA6.js";import"./events-DQ172AOg.js";import"./index-BP0EmBJ-.js";import"./index-w01WQ1OT.js";import"./index-nibyPLVP.js";import"./index-CAnMkSsw.js";import"./index.es-QXU_nQ-C.js";import"./browser-ponyfill-Dj0kiq3a.js";import"./index-CbKqTE1n.js";import"./async-directive-BRxn_Py3.js";import"./index-Bpr6Lfn-.js";var F=function(o,e,t,r){var n=arguments.length,i=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,r);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(i=(n<3?a(i):n>3?a(e,t,i):a(e,t))||i);return n>3&&i&&Object.defineProperty(e,t,i),i};let I=class extends C{constructor(){super(...arguments),this.onOtpSubmit=async e=>{var t,r;try{if(this.authConnector){const n=D.state.activeChain,i=g.getConnections(n),a=(t=h.state.remoteFeatures)==null?void 0:t.multiWallet,l=i.length>0;if(await this.authConnector.provider.connectOtp({otp:e}),c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),n)await g.connectExternal(this.authConnector,n);else throw new Error("Active chain is not set on ChainController");if((r=h.state.remoteFeatures)!=null&&r.emailCapture)return;if(h.state.siwx){_.close();return}if(l&&a){s.replace("ProfileWallets"),f.showSuccess("New Wallet Added");return}_.close()}}catch(n){throw c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL",properties:{message:b.parseError(n)}}),n}},this.onOtpResend=async e=>{this.authConnector&&(await this.authConnector.provider.connectEmail({email:e}),c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}))}}};I=F([d("w3m-email-verify-otp-view")],I);const U=S`
2
2
  wui-icon-box {
3
3
  height: ${({spacing:o})=>o[16]};
4
4
  width: ${({spacing:o})=>o[16]};
@@ -1,4 +1,4 @@
1
- import{a as Y,i as g,b as c}from"./lit-element-B3y9oplH.js";import{r as d,n as l,o as K}from"./class-map-CxwNmq0D.js";import{d as E,r as z,e as B}from"./index-CM7mcfju.js";import{c as w}from"./index-CJydVry-.js";import{M as W,O as G,o as _,T as j,H as L,d as N,C as m,I as V,l as C,W as h,k as q,J as X,K as v,b as k,E as O,S as J,R as Q}from"./W3MFrameProviderSingleton-BSPMxIrN.js";import"./index-RT7ay0fP.js";import{au as D}from"./NetworkUtil-DXqql1Wz.js";import{e as Z,n as ee}from"./ref-BsAZ42-h.js";import"./index-CfVyYh3y.js";import{H as I}from"./HelpersUtil-B4GqkAz9.js";import"./index-Du7SSwQ3.js";import"./index-CmE0xSf2.js";import"./index-Csbo1eza.js";import"./index-Brs0Pv5-.js";import"./index-BGW-6qbU.js";import{N as te}from"./NavigationUtil-DmfK5sOV.js";import"./index-CJmYIHke.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--mkx_Ub3.js";import"./events-DQ172AOg.js";import"./index-CWNHwTp9.js";import"./index-w01WQ1OT.js";import"./index-nibyPLVP.js";import"./index-5IfbtLyI.js";import"./index.es-Bz8gZ7qB.js";import"./browser-ponyfill-Dj0kiq3a.js";import"./async-directive-BRxn_Py3.js";import"./ConstantsUtil-CtukCvy7.js";const ie=Y`
1
+ import{a as Y,i as g,b as c}from"./lit-element-B3y9oplH.js";import{r as d,n as l,o as K}from"./class-map-CxwNmq0D.js";import{d as E,r as z,e as B}from"./index-I9-XdzvE.js";import{c as w}from"./index-D5qxgeiD.js";import{M as W,O as G,o as _,T as j,H as L,d as N,C as m,I as V,l as C,W as h,k as q,J as X,K as v,b as k,E as O,S as J,R as Q}from"./W3MFrameProviderSingleton-CnouvR1_.js";import"./index-CzKfhET1.js";import{au as D}from"./NetworkUtil-DXqql1Wz.js";import{e as Z,n as ee}from"./ref-BsAZ42-h.js";import"./index-CbKqTE1n.js";import{H as I}from"./HelpersUtil-a7045UWU.js";import"./index-Bpr6Lfn-.js";import"./index-CFCWXNzP.js";import"./index-txnyrMV_.js";import"./index-EXmcWYkf.js";import"./index-DYtEpEFW.js";import{N as te}from"./NavigationUtil-DmfK5sOV.js";import"./index-Dzr3wWqM.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-QG0o4yA6.js";import"./events-DQ172AOg.js";import"./index-BP0EmBJ-.js";import"./index-w01WQ1OT.js";import"./index-nibyPLVP.js";import"./index-CAnMkSsw.js";import"./index.es-QXU_nQ-C.js";import"./browser-ponyfill-Dj0kiq3a.js";import"./async-directive-BRxn_Py3.js";import"./ConstantsUtil-CtukCvy7.js";const ie=Y`
2
2
  div {
3
3
  width: 100%;
4
4
  }
@@ -1 +1 @@
1
- import{ai as k,aj as A,ak as C,al as P,bk as O,bl as B,bm as M,bn as U,bo as q,bp as D,bq as V,br as G}from"./index-CJmYIHke.js";import{r as y,j as N}from"./react-BYHuwl8r.js";import{g as L,a as W,c as H,b as J}from"./clsx-WwvpwSg0.js";import{s as K}from"./styled-DXQxy1OG.js";function Q(o){return L("MuiSvgIcon",o)}W("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const X=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Y=o=>{const{color:e,fontSize:r,classes:a}=o,t={root:["root",e!=="inherit"&&`color${P(e)}`,`fontSize${P(r)}`]};return J(t,Q,a)},Z=K("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:r}=o;return[e.root,r.color!=="inherit"&&e[`color${P(r.color)}`],e[`fontSize${P(r.fontSize)}`]]}})(({theme:o,ownerState:e})=>{var r,a,t,l,d,m,g,f,u,i,p,h,c;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=o.transitions)==null||(a=r.create)==null?void 0:a.call(r,"fill",{duration:(t=o.transitions)==null||(t=t.duration)==null?void 0:t.shorter}),fontSize:{inherit:"inherit",small:((l=o.typography)==null||(d=l.pxToRem)==null?void 0:d.call(l,20))||"1.25rem",medium:((m=o.typography)==null||(g=m.pxToRem)==null?void 0:g.call(m,24))||"1.5rem",large:((f=o.typography)==null||(u=f.pxToRem)==null?void 0:u.call(f,35))||"2.1875rem"}[e.fontSize],color:(i=(p=(o.vars||o).palette)==null||(p=p[e.color])==null?void 0:p.main)!=null?i:{action:(h=(o.vars||o).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(c=(o.vars||o).palette)==null||(c=c.action)==null?void 0:c.disabled,inherit:void 0}[e.color]}}),ee=y.forwardRef(function(e,r){const a=k({props:e,name:"MuiSvgIcon"}),{children:t,className:l,color:d="inherit",component:m="svg",fontSize:g="medium",htmlColor:f,inheritViewBox:u=!1,titleAccess:i,viewBox:p="0 0 24 24"}=a,h=A(a,X),c=y.isValidElement(t)&&t.type==="svg",s=C({},a,{color:d,component:m,fontSize:g,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:c}),n={};u||(n.viewBox=p);const v=Y(s);return N.jsxs(Z,C({as:m,className:H(v.root,l),focusable:"false",color:f,"aria-hidden":i?void 0:!0,role:i?"img":void 0,ref:r},n,h,c&&t.props,{ownerState:s,children:[c?t.props.children:t,i?N.jsx("title",{children:i}):null]}))});ee.muiName="SvgIcon";var te=O,oe=function(e){return e!=="theme"},T=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?te:oe},E=function(e,r,a){var t;if(r){var l=r.shouldForwardProp;t=e.__emotion_forwardProp&&l?function(d){return e.__emotion_forwardProp(d)&&l(d)}:l}return typeof t!="function"&&a&&(t=e.__emotion_forwardProp),t},re=function(e){var r=e.cache,a=e.serialized,t=e.isStringTag;return D(r,a,t),V(function(){return G(r,a,t)}),null},ae=function o(e,r){var a=e.__emotion_real===e,t=a&&e.__emotion_base||e,l,d;r!==void 0&&(l=r.label,d=r.target);var m=E(e,r,a),g=m||T(t),f=!g("as");return function(){var u=arguments,i=a&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(l!==void 0&&i.push("label:"+l+";"),u[0]==null||u[0].raw===void 0)i.push.apply(i,u);else{var p=u[0];i.push(p[0]);for(var h=u.length,c=1;c<h;c++)i.push(u[c],p[c])}var s=B(function(n,v,b){var z=f&&n.as||t,S="",$=[],_=n;if(n.theme==null){_={};for(var I in n)_[I]=n[I];_.theme=y.useContext(M)}typeof n.className=="string"?S=U(v.registered,$,n.className):n.className!=null&&(S=n.className+" ");var F=q(i.concat($),v.registered,_);S+=v.key+"-"+F.name,d!==void 0&&(S+=" "+d);var j=f&&m===void 0?T(z):g,w={};for(var x in n)f&&x==="as"||j(x)&&(w[x]=n[x]);return w.className=S,b&&(w.ref=b),y.createElement(y.Fragment,null,y.createElement(re,{cache:v,serialized:F,isStringTag:typeof z=="string"}),y.createElement(z,w))});return s.displayName=l!==void 0?l:"Styled("+(typeof t=="string"?t:t.displayName||t.name||"Component")+")",s.defaultProps=e.defaultProps,s.__emotion_real=s,s.__emotion_base=t,s.__emotion_styles=i,s.__emotion_forwardProp=m,Object.defineProperty(s,"toString",{value:function(){return"."+d}}),s.withComponent=function(n,v){var b=o(n,C({},r,v,{shouldForwardProp:E(s,v,!0)}));return b.apply(void 0,i)},s}},ne=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],R=ae.bind(null);ne.forEach(function(o){R[o]=R(o)});export{ee as S,R as n};
1
+ import{ai as k,aj as A,ak as C,al as P,bk as O,bl as B,bm as M,bn as U,bo as q,bp as D,bq as V,br as G}from"./index-Dzr3wWqM.js";import{r as y,j as N}from"./react-BYHuwl8r.js";import{g as L,a as W,c as H,b as J}from"./clsx-WwvpwSg0.js";import{s as K}from"./styled-77pZ9Va6.js";function Q(o){return L("MuiSvgIcon",o)}W("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const X=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Y=o=>{const{color:e,fontSize:r,classes:a}=o,t={root:["root",e!=="inherit"&&`color${P(e)}`,`fontSize${P(r)}`]};return J(t,Q,a)},Z=K("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:r}=o;return[e.root,r.color!=="inherit"&&e[`color${P(r.color)}`],e[`fontSize${P(r.fontSize)}`]]}})(({theme:o,ownerState:e})=>{var r,a,t,l,d,m,g,f,u,i,p,h,c;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=o.transitions)==null||(a=r.create)==null?void 0:a.call(r,"fill",{duration:(t=o.transitions)==null||(t=t.duration)==null?void 0:t.shorter}),fontSize:{inherit:"inherit",small:((l=o.typography)==null||(d=l.pxToRem)==null?void 0:d.call(l,20))||"1.25rem",medium:((m=o.typography)==null||(g=m.pxToRem)==null?void 0:g.call(m,24))||"1.5rem",large:((f=o.typography)==null||(u=f.pxToRem)==null?void 0:u.call(f,35))||"2.1875rem"}[e.fontSize],color:(i=(p=(o.vars||o).palette)==null||(p=p[e.color])==null?void 0:p.main)!=null?i:{action:(h=(o.vars||o).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(c=(o.vars||o).palette)==null||(c=c.action)==null?void 0:c.disabled,inherit:void 0}[e.color]}}),ee=y.forwardRef(function(e,r){const a=k({props:e,name:"MuiSvgIcon"}),{children:t,className:l,color:d="inherit",component:m="svg",fontSize:g="medium",htmlColor:f,inheritViewBox:u=!1,titleAccess:i,viewBox:p="0 0 24 24"}=a,h=A(a,X),c=y.isValidElement(t)&&t.type==="svg",s=C({},a,{color:d,component:m,fontSize:g,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:c}),n={};u||(n.viewBox=p);const v=Y(s);return N.jsxs(Z,C({as:m,className:H(v.root,l),focusable:"false",color:f,"aria-hidden":i?void 0:!0,role:i?"img":void 0,ref:r},n,h,c&&t.props,{ownerState:s,children:[c?t.props.children:t,i?N.jsx("title",{children:i}):null]}))});ee.muiName="SvgIcon";var te=O,oe=function(e){return e!=="theme"},T=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?te:oe},E=function(e,r,a){var t;if(r){var l=r.shouldForwardProp;t=e.__emotion_forwardProp&&l?function(d){return e.__emotion_forwardProp(d)&&l(d)}:l}return typeof t!="function"&&a&&(t=e.__emotion_forwardProp),t},re=function(e){var r=e.cache,a=e.serialized,t=e.isStringTag;return D(r,a,t),V(function(){return G(r,a,t)}),null},ae=function o(e,r){var a=e.__emotion_real===e,t=a&&e.__emotion_base||e,l,d;r!==void 0&&(l=r.label,d=r.target);var m=E(e,r,a),g=m||T(t),f=!g("as");return function(){var u=arguments,i=a&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(l!==void 0&&i.push("label:"+l+";"),u[0]==null||u[0].raw===void 0)i.push.apply(i,u);else{var p=u[0];i.push(p[0]);for(var h=u.length,c=1;c<h;c++)i.push(u[c],p[c])}var s=B(function(n,v,b){var z=f&&n.as||t,S="",$=[],_=n;if(n.theme==null){_={};for(var I in n)_[I]=n[I];_.theme=y.useContext(M)}typeof n.className=="string"?S=U(v.registered,$,n.className):n.className!=null&&(S=n.className+" ");var F=q(i.concat($),v.registered,_);S+=v.key+"-"+F.name,d!==void 0&&(S+=" "+d);var j=f&&m===void 0?T(z):g,w={};for(var x in n)f&&x==="as"||j(x)&&(w[x]=n[x]);return w.className=S,b&&(w.ref=b),y.createElement(y.Fragment,null,y.createElement(re,{cache:v,serialized:F,isStringTag:typeof z=="string"}),y.createElement(z,w))});return s.displayName=l!==void 0?l:"Styled("+(typeof t=="string"?t:t.displayName||t.name||"Component")+")",s.defaultProps=e.defaultProps,s.__emotion_real=s,s.__emotion_base=t,s.__emotion_styles=i,s.__emotion_forwardProp=m,Object.defineProperty(s,"toString",{value:function(){return"."+d}}),s.withComponent=function(n,v){var b=o(n,C({},r,v,{shouldForwardProp:E(s,v,!0)}));return b.apply(void 0,i)},s}},ne=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],R=ae.bind(null);ne.forEach(function(o){R[o]=R(o)});export{ee as S,R as n};
@@ -1 +1 @@
1
- import{g as p}from"./to-serializable-transaction-B9hOlQhS.js";import{s as w,r as y}from"./prepare-contract-call-DDzIRXLv.js";import{w as h}from"./wait-for-tx-receipt-BaxFnjPg.js";import"./index-CJmYIHke.js";import"./react-BYHuwl8r.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./transaction-Col-q-Ce.js";import"./utils-BQF5MiO5.js";import"./transactionReceipt-CKK1YHPc.js";import"./sleep-mAKpSMLY.js";async function f({account:t,serializableTransaction:e,transaction:r,gasless:n}){const a=p({address:n.relayerForwarderAddress,chain:r.chain,client:r.client}),s=await y({contract:a,method:"function getNonce(address) view returns (uint256)",params:[t.address]}),[o,i]=await(async()=>{if(!e.to)throw new Error("engine transactions must have a 'to' address");if(!e.gas)throw new Error("engine transactions must have a 'gas' value");if(!e.data)throw new Error("engine transactions must have a 'data' value");if(n.experimentalChainlessSupport){const d={chainid:BigInt(r.chain.id),data:e.data,from:t.address,gas:e.gas,nonce:s,to:e.to,value:0n};return[await t.signTypedData({domain:{name:"GSNv2 Forwarder",verifyingContract:a.address,version:"0.0.1"},message:d,primaryType:"ForwardRequest",types:{ForwardRequest:l}}),d]}const c={data:e.data,from:t.address,gas:e.gas,nonce:s,to:e.to,value:0n};return[await t.signTypedData({domain:{chainId:r.chain.id,name:n.domainName??"GSNv2 Forwarder",verifyingContract:a.address,version:n.domainVersion??"0.0.1"},message:c,primaryType:"ForwardRequest",types:{ForwardRequest:g}}),c]})();return{message:i,messageType:"forward",signature:o}}const g=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"}],l=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"},{name:"chainid",type:"uint256"}];async function N(t){const{message:e,messageType:r,signature:n}=await f(t),a=await fetch(t.gasless.relayerUrl,{body:w({forwarderAddress:t.gasless.relayerForwarderAddress,request:e,signature:n,type:r}),headers:{"Content-Type":"application/json"},method:"POST"});if(!a.ok)throw new Error(`Failed to send transaction: ${await a.text()}`);const s=await a.json();if(!s.result)throw new Error(`Relay transaction failed: ${s.message}`);const o=s.result.queueId,i=6e4,m=1e3,c=Date.now()+i;for(;Date.now()<c;){const d=await v({options:t,queueId:o});if(d)return{chain:t.transaction.chain,client:t.transaction.client,transactionHash:d.transactionHash};await new Promise(u=>setTimeout(u,m))}throw new Error(`Failed to find relayed transaction after ${i}ms`)}async function v(t){const{options:e,queueId:r}=t,n=e.gasless.relayerUrl.split("/relayer/")[0],a=await fetch(`${n}/transaction/status/${r}`,{method:"GET"}),s=await a.json();if(!a.ok)return null;const o=s.result;if(!o)return null;switch(o.status){case"errored":throw new Error(`Transaction errored with reason: ${o.errorMessage}`);case"cancelled":throw new Error("Transaction execution cancelled.");case"mined":return await h({chain:e.transaction.chain,client:e.transaction.client,transactionHash:o.transactionHash});default:return null}}export{f as prepareEngineTransaction,N as relayEngineTransaction};
1
+ import{g as p}from"./to-serializable-transaction-zR9GnOtJ.js";import{s as w,r as y}from"./prepare-contract-call-DDzIRXLv.js";import{w as h}from"./wait-for-tx-receipt-BafcrIuf.js";import"./index-Dzr3wWqM.js";import"./react-BYHuwl8r.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./transaction-Col-q-Ce.js";import"./utils-BQF5MiO5.js";import"./transactionReceipt-q4pdsIzp.js";import"./sleep-mAKpSMLY.js";async function f({account:t,serializableTransaction:e,transaction:r,gasless:n}){const a=p({address:n.relayerForwarderAddress,chain:r.chain,client:r.client}),s=await y({contract:a,method:"function getNonce(address) view returns (uint256)",params:[t.address]}),[o,i]=await(async()=>{if(!e.to)throw new Error("engine transactions must have a 'to' address");if(!e.gas)throw new Error("engine transactions must have a 'gas' value");if(!e.data)throw new Error("engine transactions must have a 'data' value");if(n.experimentalChainlessSupport){const d={chainid:BigInt(r.chain.id),data:e.data,from:t.address,gas:e.gas,nonce:s,to:e.to,value:0n};return[await t.signTypedData({domain:{name:"GSNv2 Forwarder",verifyingContract:a.address,version:"0.0.1"},message:d,primaryType:"ForwardRequest",types:{ForwardRequest:l}}),d]}const c={data:e.data,from:t.address,gas:e.gas,nonce:s,to:e.to,value:0n};return[await t.signTypedData({domain:{chainId:r.chain.id,name:n.domainName??"GSNv2 Forwarder",verifyingContract:a.address,version:n.domainVersion??"0.0.1"},message:c,primaryType:"ForwardRequest",types:{ForwardRequest:g}}),c]})();return{message:i,messageType:"forward",signature:o}}const g=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"}],l=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"},{name:"chainid",type:"uint256"}];async function N(t){const{message:e,messageType:r,signature:n}=await f(t),a=await fetch(t.gasless.relayerUrl,{body:w({forwarderAddress:t.gasless.relayerForwarderAddress,request:e,signature:n,type:r}),headers:{"Content-Type":"application/json"},method:"POST"});if(!a.ok)throw new Error(`Failed to send transaction: ${await a.text()}`);const s=await a.json();if(!s.result)throw new Error(`Relay transaction failed: ${s.message}`);const o=s.result.queueId,i=6e4,m=1e3,c=Date.now()+i;for(;Date.now()<c;){const d=await v({options:t,queueId:o});if(d)return{chain:t.transaction.chain,client:t.transaction.client,transactionHash:d.transactionHash};await new Promise(u=>setTimeout(u,m))}throw new Error(`Failed to find relayed transaction after ${i}ms`)}async function v(t){const{options:e,queueId:r}=t,n=e.gasless.relayerUrl.split("/relayer/")[0],a=await fetch(`${n}/transaction/status/${r}`,{method:"GET"}),s=await a.json();if(!a.ok)return null;const o=s.result;if(!o)return null;switch(o.status){case"errored":throw new Error(`Transaction errored with reason: ${o.errorMessage}`);case"cancelled":throw new Error("Transaction execution cancelled.");case"mined":return await h({chain:e.transaction.chain,client:e.transaction.client,transactionHash:o.transactionHash});default:return null}}export{f as prepareEngineTransaction,N as relayEngineTransaction};
@@ -1 +1 @@
1
- import{b as n,i as o,d as s,e as u,C as a}from"./index-CJmYIHke.js";function c(r){const e=r;return e.code===4001||e.name==="AbortError"||/reject|denied|cancel/i.test(e.message??"")}function d(r){const e=r;return e.code===402||e.status===402||(e.message??"").toLowerCase().includes("insufficient")}function l(r,e,i={}){if(c(r))return n("errors.rejected");if(o(r))return n("errors.wrongNetwork",{current:s(r.current),required:s(r.required)});if(u(r))return n("errors.walletUnauthorized");if(i.sale){const t=(r.message??"").toLowerCase();if(t.includes("insufficient"))return n("errors.insufficient",{currency:a.name});if(/not for sale|not found|no active listing|404/.test(t))return n("errors.soldOrRemoved");if(t.includes("your own listing"))return n("errors.cantBuyOwn")}return e}export{d as a,l as f,c as i};
1
+ import{b as n,i as o,d as s,e as u,C as a}from"./index-Dzr3wWqM.js";function c(r){const e=r;return e.code===4001||e.name==="AbortError"||/reject|denied|cancel/i.test(e.message??"")}function d(r){const e=r;return e.code===402||e.status===402||(e.message??"").toLowerCase().includes("insufficient")}function l(r,e,i={}){if(c(r))return n("errors.rejected");if(o(r))return n("errors.wrongNetwork",{current:s(r.current),required:s(r.required)});if(u(r))return n("errors.walletUnauthorized");if(i.sale){const t=(r.message??"").toLowerCase();if(t.includes("insufficient"))return n("errors.insufficient",{currency:a.name});if(/not for sale|not found|no active listing|404/.test(t))return n("errors.soldOrRemoved");if(t.includes("your own listing"))return n("errors.cantBuyOwn")}return e}export{d as a,l as f,c as i};
@@ -1 +1 @@
1
- import{g as s,t as n}from"./to-serializable-transaction-B9hOlQhS.js";import{r as c}from"./prepare-contract-call-DDzIRXLv.js";import{s as m}from"./signing-D3JslPvi.js";import"./index-CJmYIHke.js";import"./react-BYHuwl8r.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./transaction-Col-q-Ce.js";import"./utils-BQF5MiO5.js";import"./get-bytecode-BRKTQsHC.js";const p="0x420000000000000000000000000000000000000F";async function O(r){const{transaction:t,gasPriceOracleAddress:a}=r,i=s({address:a||p,chain:t.chain,client:t.client}),{gasPrice:l,...e}=await n({transaction:t}),o=m({transaction:e});return c({contract:i,method:"function getL1Fee(bytes memory _data) view returns (uint256)",params:[o]})}export{O as estimateL1Fee};
1
+ import{g as s,t as n}from"./to-serializable-transaction-zR9GnOtJ.js";import{r as c}from"./prepare-contract-call-DDzIRXLv.js";import{s as m}from"./signing-CIxtdm7n.js";import"./index-Dzr3wWqM.js";import"./react-BYHuwl8r.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./transaction-Col-q-Ce.js";import"./utils-BQF5MiO5.js";import"./get-bytecode-BRKTQsHC.js";const p="0x420000000000000000000000000000000000000F";async function O(r){const{transaction:t,gasPriceOracleAddress:a}=r,i=s({address:a||p,chain:t.chain,client:t.client}),{gasPrice:l,...e}=await n({transaction:t}),o=m({transaction:e});return c({contract:i,method:"function getL1Fee(bytes memory _data) view returns (uint256)",params:[o]})}export{O as estimateL1Fee};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-CAozwzga.js","_assets/index-CJmYIHke.js","_assets/react-BYHuwl8r.js","_assets/dcl-schemas-CmtP3U6y.js","_assets/sentry-Dx-KuLV3.js","_assets/ethers-BDpbhgX6.js","_assets/intl-CBcMB1D2.js","_assets/index-l2QjlKjX.css","_assets/ethereum-CBeS7QFR.js","_assets/utils-BQF5MiO5.js","_assets/types-DC0Zmj1B.js","_assets/get-bytecode-BRKTQsHC.js","_assets/prepare-contract-call-DDzIRXLv.js","_assets/to-serializable-transaction-B9hOlQhS.js","_assets/transaction-Col-q-Ce.js","_assets/web-connector-CLVorEco.js","_assets/linkAccount-BtAQZlYa.js","_assets/eth_sendRawTransaction-DPdnXbFR.js","_assets/sleep-mAKpSMLY.js","_assets/detectExtension-DX7grDLh.js"])))=>i.map(i=>d[i]);
2
- import{u as x,o as F,s as M,a5 as $}from"./prepare-contract-call-DDzIRXLv.js";import{_ as E}from"./index-CJmYIHke.js";import{w as V,c as H,h as K,a as j}from"./utils-BQF5MiO5.js";import{d as B}from"./detectExtension-DX7grDLh.js";function oe(e=32){return x(z(e))}function z(e=32){return globalThis.crypto.getRandomValues(new Uint8Array(e))}async function b(e){const{client:t,ecosystem:n,walletType:a,walletAddress:c,chainId:h}=e;return F({client:t,data:{action:"connect",chainId:h,source:"connectWallet",walletAddress:c,walletType:a},ecosystem:n})}const re={async getItem(e){try{if(typeof window<"u"&&window.localStorage)return localStorage.getItem(e)}catch{}return null},async removeItem(e){typeof window<"u"&&window.localStorage&&localStorage.removeItem(e)},async setItem(e,t){try{typeof window<"u"&&window.localStorage&&localStorage.setItem(e,t)}catch{}}};function X(){const e=new Map;return{emit(t,n){const a=e.get(t);if(a)for(const c of a)c(n)},subscribe(t,n){var a;return e.has(t)?(a=e.get(t))==null||a.add(n):e.set(t,new Set([n])),()=>{const c=e.get(t);c&&c.delete(n)}}}}function Y(){return X()}async function Z(e){return V(async()=>{var a;const n=await(await fetch(`${H("inAppWallet")}/api/2024-05-05/ecosystem-wallet`,{headers:{"x-ecosystem-id":e}})).json();if(!n||n.code==="UNAUTHORIZED")throw new Error(n.message||`Could not find ecosystem wallet with id ${e}, please check your ecosystem wallet configuration.`);return(a=n.authOptions)!=null&&a.includes("siwe")&&(n.authOptions=n.authOptions.filter(c=>c!=="siwe"),n.authOptions.push("wallet")),n},{cacheKey:`ecosystem-wallet-options-${e}`,cacheTime:1e3*60*5})}const v=new Map;async function g(e,t,n){var h;const a=M({clientId:e.clientId,ecosystem:n,partialSecretKey:(h=e.secretKey)==null?void 0:h.slice(0,5)});if(v.has(a))return v.get(a);const c=await t(e);return v.set(a,c),c}function q(e){const{createOptions:t,connectorFactory:n,ecosystem:a}=e,c=a?a.id:"inApp",h=Y();let o=t,l,I,i,f,A=null;const C=async s=>{if(a){const r=await Z(a.id),u=r==null?void 0:r.smartAccountOptions;if(u)if(r.smartAccountOptions.executionMode==="EIP7702")o={...o,executionMode:{mode:"EIP7702",sponsorGas:u.sponsorGas}};else{const{defaultChainId:y}=r.smartAccountOptions,m=(s==null?void 0:s.chain)??(y?j(y):void 0);if(!m)throw new Error("A chain must be provided either via 'chain' in connect options or 'defaultChainId' in ecosystem configuration. Please pass it via connect() or update the ecosystem configuration.");o={...o,smartAccount:{chain:m,factoryAddress:u.accountFactoryAddress,sponsorGas:u.sponsorGas}}}}};return{autoConnect:async s=>{const{autoConnectInAppWallet:r}=await E(async()=>{const{autoConnectInAppWallet:d}=await import("./index-CAozwzga.js").then(_=>_.n);return{autoConnectInAppWallet:d}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),u=await g(s.client,n,a);await C();const{account:p,chain:y,adminAccount:m}=await r(s,o,u);f=s.client,l=p,I=m,i=y;try{A=await u.storage.getAuthCookie()}catch(d){console.error("Failed to retrieve auth token:",d),A=null}return b({chainId:i.id,client:s.client,ecosystem:a,walletAddress:l.address,walletType:c}),l},connect:async s=>{const{connectInAppWallet:r}=await E(async()=>{const{connectInAppWallet:d}=await import("./index-CAozwzga.js").then(_=>_.n);return{connectInAppWallet:d}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),u=await g(s.client,n,a);await C();const{account:p,chain:y,adminAccount:m}=await r(s,o,u);f=s.client,l=p,I=m,i=y;try{A=await u.storage.getAuthCookie()}catch(d){console.error("Failed to retrieve auth token:",d),A=null}return b({chainId:i.id,client:s.client,ecosystem:a,walletAddress:l.address,walletType:c}),l},disconnect:async()=>{if(f&&!(await(await g(f,n,a)).logout()).success)throw new Error("Failed to logout");l=void 0,I=void 0,i=void 0,A=null,h.emit("disconnect",void 0)},getAccount:()=>l,getAdminAccount:()=>I,getAuthToken:()=>A,getChain(){if(i)return i=K(i.id)||i,i},getConfig:()=>o,id:c,subscribe:h.subscribe,switchChain:async s=>{var r;if((o!=null&&o.smartAccount||((r=o==null?void 0:o.executionMode)==null?void 0:r.mode)==="EIP4337")&&f&&l){const{autoConnectInAppWallet:u}=await E(async()=>{const{autoConnectInAppWallet:_}=await import("./index-CAozwzga.js").then(G=>G.n);return{autoConnectInAppWallet:_}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),p=await g(f,n,a);await C({chain:s});const{account:y,chain:m,adminAccount:d}=await u({chain:s,client:f},o,p);I=d,l=y,i=m}else i=s;h.emit("chainChanged",s)}}}function ie(e){return q({connectorFactory:async t=>{var a;const{InAppWebConnector:n}=await E(async()=>{const{InAppWebConnector:c}=await import("./web-connector-CLVorEco.js");return{InAppWebConnector:c}},__vite__mapDeps([15,1,2,3,4,5,6,7,9,10,12,16,14,17,18,19]));return new n({client:t,passkeyDomain:(a=e==null?void 0:e.auth)==null?void 0:a.passkeyDomain,storage:e==null?void 0:e.storage})},createOptions:e})}async function w(e,t){return g(e,async n=>{const{InAppWebConnector:a}=await E(async()=>{const{InAppWebConnector:c}=await import("./web-connector-CLVorEco.js");return{InAppWebConnector:c}},__vite__mapDeps([15,1,2,3,4,5,6,7,9,10,12,16,14,17,18,19]));return new a({client:n,ecosystem:t})},t)}async function R(e){const{client:t,ecosystem:n}=e,c=await(await w(t,n)).getUser();switch(c.status){case"Logged In, Wallet Initialized":return c}}async function ue(e){const t=await R(e);if(t&&"email"in t.authDetails)return t.authDetails.email}async function le(e){const t=await R(e);if(t&&"phoneNumber"in t.authDetails)return t.authDetails.phoneNumber}async function de(e){return(await w(e.client,e.ecosystem)).preAuthenticate(e)}async function he(e){return(await w(e.client,e.ecosystem)).authenticate(e)}async function ye(e){const t=await w(e.client,e.ecosystem);if(!t.authenticateWithRedirect)throw new Error("authenticateWithRedirect is not supported on this platform");return t.authenticateWithRedirect(e.strategy,e.mode,e.redirectUrl)}async function me(e){const t=await w(e.client,e.ecosystem);if(!t.linkProfileWithRedirect)throw new Error("linkProfileWithRedirect is not supported on this platform");return t.linkProfileWithRedirect(e.strategy,e.mode,e.redirectUrl)}async function we(e){return await(await w(e.client,e.ecosystem)).linkProfile(e)}async function fe(e){return await(await w(e.client,e.ecosystem)).unlinkProfile(e.profileToUnlink,e.allowAccountDeletion)}async function Ae(e){return(await w(e.client,e.ecosystem)).getProfiles()}const pe="/sdk/2022-08-12/embedded-wallet",S=e=>`thirdwebEwsWalletUserId-${e}`,J="walletToken",k=e=>`${J}-${e}`,T=e=>`passkey-credential-id-${e}`,Q="a",P=(e,t)=>`${Q}-${e}-${t}`,W=e=>`walletConnectSessions-${e}`,L=e=>`thirdweb_guest_session_id_${e}`,O=new Map;class Ie{constructor({storage:t,clientId:n,ecosystem:a}){Object.defineProperty(this,"key",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"storage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ecosystem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.storage=t,this.key=ee(n,a==null?void 0:a.id),this.ecosystem=a}async getItem(t){return this.storage?this.storage.getItem(t):O.get(t)??null}async setItem(t,n){if(this.storage)return this.storage.setItem(t,n);O.set(t,n)}async removeItem(t){const n=await this.getItem(t);return this.storage&&n?(this.storage.removeItem(t),!0):!1}async getWalletConnectSessions(){return this.getItem(W(this.key))}async saveWalletConnectSessions(t){await this.setItem(W(this.key),t)}async savePasskeyCredentialId(t){await this.setItem(T(this.key),t)}async getPasskeyCredentialId(){return this.getItem(T(this.key))}async saveAuthCookie(t){await this.setItem(k(this.key),t)}async getAuthCookie(){return this.getItem(k(this.key))}async removeAuthCookie(){return this.removeItem(k(this.key))}async saveDeviceShare(t,n){await this.saveWalletUserId(n),await this.setItem(P(this.key,n),t)}async getDeviceShare(){const t=await this.getWalletUserId();return t?this.getItem(P(this.key,t)):null}async removeDeviceShare(){const t=await this.getWalletUserId();return t?this.removeItem(P(this.key,t)):!1}async getWalletUserId(){return this.getItem(S(this.key))}async saveWalletUserId(t){await this.setItem(S(this.key),t)}async removeWalletUserId(){return this.removeItem(S(this.key))}async getGuestSessionId(){return this.getItem(L(this.key))}async saveGuestSessionId(t){await this.setItem(L(this.key),t)}}const ee=(e,t)=>`${e}${t?`-${t}`:""}`;function te(e){let t;return()=>(t||(t=e()),t)}const U="0x3f707e6b",N=[{type:"tuple[]",name:"calls",components:[{type:"address",name:"target"},{type:"uint256",name:"value"},{type:"bytes",name:"data"}]}],D=[];function _e(e){return B({availableSelectors:e,method:[U,N,D]})}function ge(e){const t=te(async()=>"asyncParams"in e?await e.asyncParams():e);return $({contract:e.contract,method:[U,N,D],params:async()=>[(await t()).calls],value:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.value},accessList:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.accessList},gas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.gas},gasPrice:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.gasPrice},maxFeePerGas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.maxFeePerGas},maxPriorityFeePerGas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.maxPriorityFeePerGas},nonce:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.nonce},extraGas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.extraGas},erc20Value:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.erc20Value},authorizationList:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.authorizationList}})}export{Ie as C,pe as I,ue as a,he as b,Ae as c,le as d,ge as e,_e as f,Z as g,me as h,ie as i,Y as j,q as k,we as l,ye as m,te as o,de as p,oe as r,b as t,fe as u,re as w};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-CpzYZlH8.js","_assets/index-Dzr3wWqM.js","_assets/react-BYHuwl8r.js","_assets/dcl-schemas-CmtP3U6y.js","_assets/sentry-Dx-KuLV3.js","_assets/ethers-BDpbhgX6.js","_assets/intl-CBcMB1D2.js","_assets/index-l2QjlKjX.css","_assets/ethereum-CBeS7QFR.js","_assets/utils-BQF5MiO5.js","_assets/types-DC0Zmj1B.js","_assets/get-bytecode-BRKTQsHC.js","_assets/prepare-contract-call-DDzIRXLv.js","_assets/to-serializable-transaction-zR9GnOtJ.js","_assets/transaction-Col-q-Ce.js","_assets/web-connector-D-4IhzX3.js","_assets/linkAccount-BtAQZlYa.js","_assets/eth_sendRawTransaction-DPdnXbFR.js","_assets/sleep-mAKpSMLY.js","_assets/detectExtension-DX7grDLh.js"])))=>i.map(i=>d[i]);
2
+ import{u as x,o as F,s as M,a5 as $}from"./prepare-contract-call-DDzIRXLv.js";import{_ as E}from"./index-Dzr3wWqM.js";import{w as V,c as H,h as K,a as j}from"./utils-BQF5MiO5.js";import{d as B}from"./detectExtension-DX7grDLh.js";function oe(e=32){return x(z(e))}function z(e=32){return globalThis.crypto.getRandomValues(new Uint8Array(e))}async function b(e){const{client:t,ecosystem:n,walletType:a,walletAddress:c,chainId:h}=e;return F({client:t,data:{action:"connect",chainId:h,source:"connectWallet",walletAddress:c,walletType:a},ecosystem:n})}const re={async getItem(e){try{if(typeof window<"u"&&window.localStorage)return localStorage.getItem(e)}catch{}return null},async removeItem(e){typeof window<"u"&&window.localStorage&&localStorage.removeItem(e)},async setItem(e,t){try{typeof window<"u"&&window.localStorage&&localStorage.setItem(e,t)}catch{}}};function X(){const e=new Map;return{emit(t,n){const a=e.get(t);if(a)for(const c of a)c(n)},subscribe(t,n){var a;return e.has(t)?(a=e.get(t))==null||a.add(n):e.set(t,new Set([n])),()=>{const c=e.get(t);c&&c.delete(n)}}}}function Y(){return X()}async function Z(e){return V(async()=>{var a;const n=await(await fetch(`${H("inAppWallet")}/api/2024-05-05/ecosystem-wallet`,{headers:{"x-ecosystem-id":e}})).json();if(!n||n.code==="UNAUTHORIZED")throw new Error(n.message||`Could not find ecosystem wallet with id ${e}, please check your ecosystem wallet configuration.`);return(a=n.authOptions)!=null&&a.includes("siwe")&&(n.authOptions=n.authOptions.filter(c=>c!=="siwe"),n.authOptions.push("wallet")),n},{cacheKey:`ecosystem-wallet-options-${e}`,cacheTime:1e3*60*5})}const v=new Map;async function g(e,t,n){var h;const a=M({clientId:e.clientId,ecosystem:n,partialSecretKey:(h=e.secretKey)==null?void 0:h.slice(0,5)});if(v.has(a))return v.get(a);const c=await t(e);return v.set(a,c),c}function q(e){const{createOptions:t,connectorFactory:n,ecosystem:a}=e,c=a?a.id:"inApp",h=Y();let o=t,l,I,i,f,A=null;const C=async s=>{if(a){const r=await Z(a.id),u=r==null?void 0:r.smartAccountOptions;if(u)if(r.smartAccountOptions.executionMode==="EIP7702")o={...o,executionMode:{mode:"EIP7702",sponsorGas:u.sponsorGas}};else{const{defaultChainId:y}=r.smartAccountOptions,m=(s==null?void 0:s.chain)??(y?j(y):void 0);if(!m)throw new Error("A chain must be provided either via 'chain' in connect options or 'defaultChainId' in ecosystem configuration. Please pass it via connect() or update the ecosystem configuration.");o={...o,smartAccount:{chain:m,factoryAddress:u.accountFactoryAddress,sponsorGas:u.sponsorGas}}}}};return{autoConnect:async s=>{const{autoConnectInAppWallet:r}=await E(async()=>{const{autoConnectInAppWallet:d}=await import("./index-CpzYZlH8.js").then(_=>_.n);return{autoConnectInAppWallet:d}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),u=await g(s.client,n,a);await C();const{account:p,chain:y,adminAccount:m}=await r(s,o,u);f=s.client,l=p,I=m,i=y;try{A=await u.storage.getAuthCookie()}catch(d){console.error("Failed to retrieve auth token:",d),A=null}return b({chainId:i.id,client:s.client,ecosystem:a,walletAddress:l.address,walletType:c}),l},connect:async s=>{const{connectInAppWallet:r}=await E(async()=>{const{connectInAppWallet:d}=await import("./index-CpzYZlH8.js").then(_=>_.n);return{connectInAppWallet:d}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),u=await g(s.client,n,a);await C();const{account:p,chain:y,adminAccount:m}=await r(s,o,u);f=s.client,l=p,I=m,i=y;try{A=await u.storage.getAuthCookie()}catch(d){console.error("Failed to retrieve auth token:",d),A=null}return b({chainId:i.id,client:s.client,ecosystem:a,walletAddress:l.address,walletType:c}),l},disconnect:async()=>{if(f&&!(await(await g(f,n,a)).logout()).success)throw new Error("Failed to logout");l=void 0,I=void 0,i=void 0,A=null,h.emit("disconnect",void 0)},getAccount:()=>l,getAdminAccount:()=>I,getAuthToken:()=>A,getChain(){if(i)return i=K(i.id)||i,i},getConfig:()=>o,id:c,subscribe:h.subscribe,switchChain:async s=>{var r;if((o!=null&&o.smartAccount||((r=o==null?void 0:o.executionMode)==null?void 0:r.mode)==="EIP4337")&&f&&l){const{autoConnectInAppWallet:u}=await E(async()=>{const{autoConnectInAppWallet:_}=await import("./index-CpzYZlH8.js").then(G=>G.n);return{autoConnectInAppWallet:_}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),p=await g(f,n,a);await C({chain:s});const{account:y,chain:m,adminAccount:d}=await u({chain:s,client:f},o,p);I=d,l=y,i=m}else i=s;h.emit("chainChanged",s)}}}function ie(e){return q({connectorFactory:async t=>{var a;const{InAppWebConnector:n}=await E(async()=>{const{InAppWebConnector:c}=await import("./web-connector-D-4IhzX3.js");return{InAppWebConnector:c}},__vite__mapDeps([15,1,2,3,4,5,6,7,9,10,12,16,14,17,18,19]));return new n({client:t,passkeyDomain:(a=e==null?void 0:e.auth)==null?void 0:a.passkeyDomain,storage:e==null?void 0:e.storage})},createOptions:e})}async function w(e,t){return g(e,async n=>{const{InAppWebConnector:a}=await E(async()=>{const{InAppWebConnector:c}=await import("./web-connector-D-4IhzX3.js");return{InAppWebConnector:c}},__vite__mapDeps([15,1,2,3,4,5,6,7,9,10,12,16,14,17,18,19]));return new a({client:n,ecosystem:t})},t)}async function R(e){const{client:t,ecosystem:n}=e,c=await(await w(t,n)).getUser();switch(c.status){case"Logged In, Wallet Initialized":return c}}async function ue(e){const t=await R(e);if(t&&"email"in t.authDetails)return t.authDetails.email}async function le(e){const t=await R(e);if(t&&"phoneNumber"in t.authDetails)return t.authDetails.phoneNumber}async function de(e){return(await w(e.client,e.ecosystem)).preAuthenticate(e)}async function he(e){return(await w(e.client,e.ecosystem)).authenticate(e)}async function ye(e){const t=await w(e.client,e.ecosystem);if(!t.authenticateWithRedirect)throw new Error("authenticateWithRedirect is not supported on this platform");return t.authenticateWithRedirect(e.strategy,e.mode,e.redirectUrl)}async function me(e){const t=await w(e.client,e.ecosystem);if(!t.linkProfileWithRedirect)throw new Error("linkProfileWithRedirect is not supported on this platform");return t.linkProfileWithRedirect(e.strategy,e.mode,e.redirectUrl)}async function we(e){return await(await w(e.client,e.ecosystem)).linkProfile(e)}async function fe(e){return await(await w(e.client,e.ecosystem)).unlinkProfile(e.profileToUnlink,e.allowAccountDeletion)}async function Ae(e){return(await w(e.client,e.ecosystem)).getProfiles()}const pe="/sdk/2022-08-12/embedded-wallet",S=e=>`thirdwebEwsWalletUserId-${e}`,J="walletToken",k=e=>`${J}-${e}`,T=e=>`passkey-credential-id-${e}`,Q="a",P=(e,t)=>`${Q}-${e}-${t}`,W=e=>`walletConnectSessions-${e}`,L=e=>`thirdweb_guest_session_id_${e}`,O=new Map;class Ie{constructor({storage:t,clientId:n,ecosystem:a}){Object.defineProperty(this,"key",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"storage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ecosystem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.storage=t,this.key=ee(n,a==null?void 0:a.id),this.ecosystem=a}async getItem(t){return this.storage?this.storage.getItem(t):O.get(t)??null}async setItem(t,n){if(this.storage)return this.storage.setItem(t,n);O.set(t,n)}async removeItem(t){const n=await this.getItem(t);return this.storage&&n?(this.storage.removeItem(t),!0):!1}async getWalletConnectSessions(){return this.getItem(W(this.key))}async saveWalletConnectSessions(t){await this.setItem(W(this.key),t)}async savePasskeyCredentialId(t){await this.setItem(T(this.key),t)}async getPasskeyCredentialId(){return this.getItem(T(this.key))}async saveAuthCookie(t){await this.setItem(k(this.key),t)}async getAuthCookie(){return this.getItem(k(this.key))}async removeAuthCookie(){return this.removeItem(k(this.key))}async saveDeviceShare(t,n){await this.saveWalletUserId(n),await this.setItem(P(this.key,n),t)}async getDeviceShare(){const t=await this.getWalletUserId();return t?this.getItem(P(this.key,t)):null}async removeDeviceShare(){const t=await this.getWalletUserId();return t?this.removeItem(P(this.key,t)):!1}async getWalletUserId(){return this.getItem(S(this.key))}async saveWalletUserId(t){await this.setItem(S(this.key),t)}async removeWalletUserId(){return this.removeItem(S(this.key))}async getGuestSessionId(){return this.getItem(L(this.key))}async saveGuestSessionId(t){await this.setItem(L(this.key),t)}}const ee=(e,t)=>`${e}${t?`-${t}`:""}`;function te(e){let t;return()=>(t||(t=e()),t)}const U="0x3f707e6b",N=[{type:"tuple[]",name:"calls",components:[{type:"address",name:"target"},{type:"uint256",name:"value"},{type:"bytes",name:"data"}]}],D=[];function _e(e){return B({availableSelectors:e,method:[U,N,D]})}function ge(e){const t=te(async()=>"asyncParams"in e?await e.asyncParams():e);return $({contract:e.contract,method:[U,N,D],params:async()=>[(await t()).calls],value:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.value},accessList:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.accessList},gas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.gas},gasPrice:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.gasPrice},maxFeePerGas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.maxFeePerGas},maxPriorityFeePerGas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.maxPriorityFeePerGas},nonce:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.nonce},extraGas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.extraGas},erc20Value:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.erc20Value},authorizationList:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.authorizationList}})}export{Ie as C,pe as I,ue as a,he as b,Ae as c,le as d,ge as e,_e as f,Z as g,me as h,ie as i,Y as j,q as k,we as l,ye as m,te as o,de as p,oe as r,b as t,fe as u,re as w};
@@ -1,4 +1,4 @@
1
- import{C as g,x as y,a6 as k,v as u,B as S,z as w}from"./W3MFrameProviderSingleton-BSPMxIrN.js";import{az as A,au as m}from"./NetworkUtil-DXqql1Wz.js";import"./dcl-schemas-CmtP3U6y.js";import"./index-w01WQ1OT.js";import"./react-BYHuwl8r.js";import"./sentry-Dx-KuLV3.js";import"./index--mkx_Ub3.js";import"./events-DQ172AOg.js";import"./index-CJmYIHke.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./browser-ponyfill-Dj0kiq3a.js";class N{constructor(e){this.getNonce=e.getNonce}async createMessage(e){const t={accountAddress:e.accountAddress,chainId:e.chainId,version:"1",domain:typeof document>"u"?"Unknown Domain":document.location.host,uri:typeof document>"u"?"Unknown URI":document.location.href,resources:this.resources,nonce:await this.getNonce(e),issuedAt:this.stringifyDate(new Date),statement:void 0,expirationTime:void 0,notBefore:void 0};return Object.assign(t,{toString:()=>this.stringify(t)})}stringify(e){var n;const t=this.getNetworkName(e.chainId);return[`${e.domain} wants you to sign in with your ${t} account:`,e.accountAddress,e.statement?`
1
+ import{C as g,x as y,a6 as k,v as u,B as S,z as w}from"./W3MFrameProviderSingleton-CnouvR1_.js";import{az as A,au as m}from"./NetworkUtil-DXqql1Wz.js";import"./dcl-schemas-CmtP3U6y.js";import"./index-w01WQ1OT.js";import"./react-BYHuwl8r.js";import"./sentry-Dx-KuLV3.js";import"./index-QG0o4yA6.js";import"./events-DQ172AOg.js";import"./index-Dzr3wWqM.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./browser-ponyfill-Dj0kiq3a.js";class N{constructor(e){this.getNonce=e.getNonce}async createMessage(e){const t={accountAddress:e.accountAddress,chainId:e.chainId,version:"1",domain:typeof document>"u"?"Unknown Domain":document.location.host,uri:typeof document>"u"?"Unknown URI":document.location.href,resources:this.resources,nonce:await this.getNonce(e),issuedAt:this.stringifyDate(new Date),statement:void 0,expirationTime:void 0,notBefore:void 0};return Object.assign(t,{toString:()=>this.stringify(t)})}stringify(e){var n;const t=this.getNetworkName(e.chainId);return[`${e.domain} wants you to sign in with your ${t} account:`,e.accountAddress,e.statement?`
2
2
  ${e.statement}
3
3
  `:"",`URI: ${e.uri}`,`Version: ${e.version}`,`Chain ID: ${e.chainId}`,`Nonce: ${e.nonce}`,e.issuedAt&&`Issued At: ${e.issuedAt}`,e.expirationTime&&`Expiration Time: ${e.expirationTime}`,e.notBefore&&`Not Before: ${e.notBefore}`,e.requestId&&`Request ID: ${e.requestId}`,((n=e.resources)==null?void 0:n.length)&&e.resources.reduce((o,s)=>`${o}
4
4
  - ${s}`,"Resources:")].filter(o=>typeof o=="string").join(`
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/to-serializable-transaction-B9hOlQhS.js","_assets/index-CJmYIHke.js","_assets/react-BYHuwl8r.js","_assets/dcl-schemas-CmtP3U6y.js","_assets/sentry-Dx-KuLV3.js","_assets/ethers-BDpbhgX6.js","_assets/intl-CBcMB1D2.js","_assets/index-l2QjlKjX.css","_assets/prepare-contract-call-DDzIRXLv.js","_assets/utils-BQF5MiO5.js","_assets/transaction-Col-q-Ce.js"])))=>i.map(i=>d[i]);
2
- import{_ as c}from"./index-CJmYIHke.js";import{b as s}from"./uint8-array-CjVHUazS.js";import{n as d}from"./prepare-contract-call-DDzIRXLv.js";const f="data:application/json;base64";function u(r){return!!r.toLowerCase().startsWith(f)}function l(r){const n=r.indexOf(","),o=r.slice(n+1);return s(o)}const h="data:application/json;utf-8";function w(r){return!!r.toLowerCase().startsWith(h)}function m(r){const n=r.indexOf(","),o=r.slice(n+1);try{return decodeURIComponent(o)}catch{return o}}async function y(r){const{client:n,tokenId:o,tokenUri:e}=r;if(u(e))try{return JSON.parse(l(e))}catch(t){throw console.error("Failed to fetch base64 encoded NFT",{tokenId:o,tokenUri:e},t),t}if(w(e))try{return JSON.parse(m(e))}catch(t){throw console.error("Failed to fetch utf8 encoded NFT",{tokenId:o,tokenUri:e},t),t}const{download:a}=await c(async()=>{const{download:t}=await import("./to-serializable-transaction-B9hOlQhS.js").then(i=>i.L);return{download:t}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]));try{if(!e.includes("{id}"))return await(await a({client:n,uri:e})).json()}catch(t){throw console.error("Failed to fetch non-dynamic NFT",{tokenId:o,tokenUri:e},t),t}try{try{return await(await a({client:n,uri:e.replace("{id}",d(o,{size:32}).slice(2))})).json()}catch{return await(await a({client:n,uri:e.replace("{id}",o.toString())})).json()}}catch(t){throw console.error("Failed to fetch dynamic NFT",{tokenId:o,tokenUri:e},t),t}}export{y as f};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/to-serializable-transaction-zR9GnOtJ.js","_assets/index-Dzr3wWqM.js","_assets/react-BYHuwl8r.js","_assets/dcl-schemas-CmtP3U6y.js","_assets/sentry-Dx-KuLV3.js","_assets/ethers-BDpbhgX6.js","_assets/intl-CBcMB1D2.js","_assets/index-l2QjlKjX.css","_assets/prepare-contract-call-DDzIRXLv.js","_assets/utils-BQF5MiO5.js","_assets/transaction-Col-q-Ce.js"])))=>i.map(i=>d[i]);
2
+ import{_ as c}from"./index-Dzr3wWqM.js";import{b as s}from"./uint8-array-CjVHUazS.js";import{n as d}from"./prepare-contract-call-DDzIRXLv.js";const f="data:application/json;base64";function u(r){return!!r.toLowerCase().startsWith(f)}function l(r){const n=r.indexOf(","),o=r.slice(n+1);return s(o)}const h="data:application/json;utf-8";function w(r){return!!r.toLowerCase().startsWith(h)}function m(r){const n=r.indexOf(","),o=r.slice(n+1);try{return decodeURIComponent(o)}catch{return o}}async function y(r){const{client:n,tokenId:o,tokenUri:e}=r;if(u(e))try{return JSON.parse(l(e))}catch(t){throw console.error("Failed to fetch base64 encoded NFT",{tokenId:o,tokenUri:e},t),t}if(w(e))try{return JSON.parse(m(e))}catch(t){throw console.error("Failed to fetch utf8 encoded NFT",{tokenId:o,tokenUri:e},t),t}const{download:a}=await c(async()=>{const{download:t}=await import("./to-serializable-transaction-zR9GnOtJ.js").then(i=>i.L);return{download:t}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]));try{if(!e.includes("{id}"))return await(await a({client:n,uri:e})).json()}catch(t){throw console.error("Failed to fetch non-dynamic NFT",{tokenId:o,tokenUri:e},t),t}try{try{return await(await a({client:n,uri:e.replace("{id}",d(o,{size:32}).slice(2))})).json()}catch{return await(await a({client:n,uri:e.replace("{id}",o.toString())})).json()}}catch(t){throw console.error("Failed to fetch dynamic NFT",{tokenId:o,tokenUri:e},t),t}}export{y as f};
@@ -1,4 +1,4 @@
1
- import{t,s as o}from"./index-CJmYIHke.js";const{colors:e}=t,r=o.input`
1
+ import{t,s as o}from"./index-Dzr3wWqM.js";const{colors:e}=t,r=o.input`
2
2
  --box: 17.143px;
3
3
  position: relative;
4
4
  appearance: none;
@@ -1 +1 @@
1
- import{g as o}from"./execute-TU_2vXm6.js";import"./prepare-contract-call-DDzIRXLv.js";import"./utils-BQF5MiO5.js";import"./sentry-Dx-KuLV3.js";import"./react-BYHuwl8r.js";import"./index-CJmYIHke.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./detectExtension-DX7grDLh.js";async function g(n){const l=await o(n);return{app:{android:null,browser:null,chrome:null,edge:null,firefox:null,ios:null,linux:null,mac:null,opera:null,safari:null,windows:null},desktop:{native:null,universal:null},homepage:l.homepage||"",id:n,image_id:l.imageUrl||"",mobile:{native:null,universal:null},name:l.name,rdns:null}}export{g as getEcosystemWalletInfo};
1
+ import{g as o}from"./execute-CMHIfTIG.js";import"./prepare-contract-call-DDzIRXLv.js";import"./utils-BQF5MiO5.js";import"./sentry-Dx-KuLV3.js";import"./react-BYHuwl8r.js";import"./index-Dzr3wWqM.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./detectExtension-DX7grDLh.js";async function g(n){const l=await o(n);return{app:{android:null,browser:null,chrome:null,edge:null,firefox:null,ios:null,linux:null,mac:null,opera:null,safari:null,windows:null},desktop:{native:null,universal:null},homepage:l.homepage||"",id:n,image_id:l.imageUrl||"",mobile:{native:null,universal:null},name:l.name,rdns:null}}export{g as getEcosystemWalletInfo};