@dcl/shop 0.5.1-30944558724.commit-19fdddf → 0.6.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 (173) hide show
  1. package/_assets/{Activity-tm1GZBBE.js → Activity-Bge7lOuf.js} +3 -3
  2. package/_assets/{AnimatedBackground-PdNi-WfR.js → AnimatedBackground-D0qNZ1uk.js} +2 -2
  3. package/_assets/{Assets-DzU3XKtW.js → Assets-CxGe_ZM9.js} +11 -11
  4. package/_assets/{Assets.styles-ZM8Q2cFA.js → Assets.styles-BiOSgFHZ.js} +1 -1
  5. package/_assets/{Authorizations-BxBoJzQm.js → Authorizations-CsTEC_Hm.js} +1 -1
  6. package/_assets/{Cart-CoA_J4Zn.js → Cart-CHYrwY74.js} +6 -6
  7. package/_assets/{CircularProgress-iDUU-7Dd.js → CircularProgress-DDBADFDe.js} +1 -1
  8. package/_assets/{Collection-DUnvQ9xs.js → Collection-nSwc5Ptd.js} +1 -1
  9. package/_assets/{CollectionCarousel-nQamkKEm.js → CollectionCarousel-D5MnwNN7.js} +4 -4
  10. package/_assets/{Creator-Dgszo59r.js → Creator-BVoAg8vx.js} +1 -1
  11. package/_assets/{ErrorNotice-CfA5EQ3B.js → ErrorNotice-CHXOd3mv.js} +1 -1
  12. package/_assets/{ExchangeController-CdHvmoRP.js → ExchangeController-Bi0S9a9G.js} +1 -1
  13. package/_assets/{GetCredits-Dv4OnlPr.js → GetCredits-DBdIhuBL.js} +6 -6
  14. package/_assets/{HelpersUtil-DL3ySOBk.js → HelpersUtil-BWrob0lV.js} +1 -1
  15. package/_assets/ItemDetail-BLZNqNQh.js +3375 -0
  16. package/_assets/{LoadMore-TnqPM5W_.js → LoadMore-BRkbiHQL.js} +1 -1
  17. package/_assets/{ManaPricingBanner.styles-C7faS-HZ.js → ManaPricingBanner.styles-DdfpyUuV.js} +1 -1
  18. package/_assets/{MenuList-DLBo9vKa.js → MenuList-UXGLAgD2.js} +1 -1
  19. package/_assets/{MyAssets-D-1HxNtf.js → MyAssets-DdKYWk0O.js} +1 -1
  20. package/_assets/{MyFavorites-27Kg0fu-.js → MyFavorites-DdKVRDaf.js} +1 -1
  21. package/_assets/{NotFound-CF-eOmVc.js → NotFound-BkW0P3dR.js} +1 -1
  22. package/_assets/{NotificationsBell-BADWC1wN.js → NotificationsBell-7ShIRJH3.js} +1 -1
  23. package/_assets/{OutfitDetail-CdadHpaC.js → OutfitDetail-CNOkA_8O.js} +1 -1
  24. package/_assets/{OutfitPreview-JIaMYiWg.js → OutfitPreview-DyGfIKQi.js} +1 -1
  25. package/_assets/{OutfitStudio-D-Tn3MZ0.js → OutfitStudio-DPE8kpg1.js} +1 -1
  26. package/_assets/{StoreSettings-5uZXoOvP.js → StoreSettings-DfBHIW4j.js} +1 -1
  27. package/_assets/{Success-C4laQ6DO.js → Success-crgO4feC.js} +1 -1
  28. package/_assets/{SwapController-h8IVGbcS.js → SwapController-Ht-IFVno.js} +1 -1
  29. package/_assets/{Tooltip-ySlzdfvH.js → Tooltip-CLv-UZmX.js} +1 -1
  30. package/_assets/{TradeService-C_mQXbkZ.js → TradeService-B-NE5VaA.js} +1 -1
  31. package/_assets/{W3MFrameProviderSingleton-Be2imJ8Z.js → W3MFrameProviderSingleton-Dew4UHCH.js} +3 -3
  32. package/_assets/{WebCryptoP256-I4V1QbUv.js → WebCryptoP256-C5HbbLGD.js} +1 -1
  33. package/_assets/{authorizations-D7XuRQgn.js → authorizations-BZyk6WdU.js} +1 -1
  34. package/_assets/{basic-Cue7GVXe.js → basic-B6EVXOl2.js} +1 -1
  35. package/_assets/{biconomy-C-omatJP.js → biconomy-Ug4_y9HZ.js} +1 -1
  36. package/_assets/{builder-MQPY8ChB.js → builder-BtJop_Py.js} +1 -1
  37. package/_assets/{buy-DGpUz8hz.js → buy-DdQ4SGHv.js} +1 -1
  38. package/_assets/{buy-gasless-Bl-OulBV.js → buy-gasless-DduUmbTM.js} +1 -1
  39. package/_assets/{categories-BQKh49D5.js → categories-BaRCBxVv.js} +1 -1
  40. package/_assets/{ccip-BC-JPxWw.js → ccip-BMULKFZu.js} +1 -1
  41. package/_assets/{ccip-Yik4EQGY.js → ccip-Db74k1Pr.js} +1 -1
  42. package/_assets/{clsx-Df3CFyaE.js → clsx-CEPd4QO3.js} +1 -1
  43. package/_assets/{collectionPage.styles-vmTcFGbQ.js → collectionPage.styles-D9bc4PtY.js} +5 -5
  44. package/_assets/{controller-Bq2L0AX1.js → controller-CWp6YNJV.js} +2 -2
  45. package/_assets/{core-lz2OIs0H.js → core-CwiW5Nem.js} +4 -4
  46. package/_assets/{createSvgIcon-bfaHZSjd.js → createSvgIcon-Bs2ci5m0.js} +1 -1
  47. package/_assets/{custom-DYDi3MJe.js → custom-uHB6JExE.js} +1 -1
  48. package/_assets/{data-capture-Y8xGExqA.js → data-capture-D3NMxO3v.js} +1 -1
  49. package/_assets/{email-UTvBfzjL.js → email-DVnSEa3r.js} +1 -1
  50. package/_assets/{embedded-wallet-hF59IEhH.js → embedded-wallet-DbVoNaLe.js} +1 -1
  51. package/_assets/{emotion-styled.browser.esm-D23S089l.js → emotion-styled.browser.esm-B3uXeLtp.js} +1 -1
  52. package/_assets/{engine-CgRM_THA.js → engine-BmkWePcn.js} +1 -1
  53. package/_assets/{errors-Wm6SH4-v.js → errors-DT8BUFd8.js} +1 -1
  54. package/_assets/{estimate-l1-fee-DZHVdg7h.js → estimate-l1-fee-LcCTQkbO.js} +1 -1
  55. package/_assets/{execute-BPgoblAE.js → execute-CBj5JHAd.js} +2 -2
  56. package/_assets/{features-DYTS35jX.js → features-BXQRcYZ3.js} +1 -1
  57. package/_assets/{fetchTokenMetadata-BxGNbM_2.js → fetchTokenMetadata-DJbq1Gx7.js} +2 -2
  58. package/_assets/{field.styles-Bys6wE0V.js → field.styles-CIQ-1Gyi.js} +1 -1
  59. package/_assets/{get-ecosystem-wallet-info-xvSXu74j.js → get-ecosystem-wallet-info-L-cqSPfk.js} +1 -1
  60. package/_assets/{getBalance-DLxh2RuD.js → getBalance-DX1WnXFT.js} +1 -1
  61. package/_assets/{getNFT-BOSh5H84.js → getNFT-Cgfi4Vmu.js} +1 -1
  62. package/_assets/{getNFT-K4qjxWNY.js → getNFT-fH2QMDXF.js} +1 -1
  63. package/_assets/{getThemeProps-mxNIag6l.js → getThemeProps-D85rRXiV.js} +1 -1
  64. package/_assets/{grid.styles-BaFKxOV8.js → grid.styles-BbfBfqCV.js} +1 -1
  65. package/_assets/{hashTypedData-CCvvyerQ.js → hashTypedData-BbQ-AHc3.js} +1 -1
  66. package/_assets/{hashTypedData-Bje_1GNe.js → hashTypedData-DP-1NjnI.js} +1 -1
  67. package/_assets/{in-app-DBzemWmV.js → in-app-CtBGXFNg.js} +1 -1
  68. package/_assets/{in-app-wallet-calls-CeM3dz7A.js → in-app-wallet-calls-yAvikrwR.js} +1 -1
  69. package/_assets/{index-D_9mpAb0.js → index-3T1Up4ST.js} +2 -2
  70. package/_assets/{index-DZrXtOiH.js → index-5sbt15fG.js} +1 -1
  71. package/_assets/{index-C_KycN_b.js → index-7aVl6hlf.js} +1 -1
  72. package/_assets/{index-BCyVn8MQ.js → index-7ncft_vv.js} +1 -1
  73. package/_assets/{index-C6jx_7vf.js → index-B1CRrsWx.js} +1 -1
  74. package/_assets/{index-Ypo9phAp.js → index-B1Gnpvim.js} +2 -2
  75. package/_assets/{index-BhRssk62.js → index-B3GREAKI.js} +1 -1
  76. package/_assets/{index-Cj0IFSYI.js → index-B7gpJ7FK.js} +1 -1
  77. package/_assets/{index-9pYsulOA.js → index-BEe4QBLJ.js} +1 -1
  78. package/_assets/{index-DRJlDsJB.js → index-BRbIAs-h.js} +1 -1
  79. package/_assets/{index-fzBQEY_W.js → index-BSAtCb0u.js} +1 -1
  80. package/_assets/{index-BgL4tnd6.js → index-BSu1IoGB.js} +1 -1
  81. package/_assets/{index-C8VruoUX.js → index-BTt9L5Av.js} +1 -1
  82. package/_assets/{index-CW0DN1u5.js → index-BUe1EUX7.js} +1 -1
  83. package/_assets/{index-C1hTWDfF.js → index-B_a8jknM.js} +1 -1
  84. package/_assets/{index-DMSY746R.js → index-BbUGeidq.js} +1 -1
  85. package/_assets/{index-DCdXL8QX.js → index-BcPJYMIm.js} +1 -1
  86. package/_assets/{index-BIXkfL0f.js → index-Bf7FRpyE.js} +1 -1
  87. package/_assets/{index-MZdslMn6.js → index-Bl0Kh3_k.js} +1 -1
  88. package/_assets/{index-VpH-lUJq.js → index-BpzRndQt.js} +1 -1
  89. package/_assets/index-BqH8KAmH.js +3343 -0
  90. package/_assets/{index-DKr33OKQ.js → index-BrXEqk1O.js} +1 -1
  91. package/_assets/{index-WvEbTnHu.js → index-C-j8K69Q.js} +1 -1
  92. package/_assets/{index-Cdnlri5M.js → index-C0Hpoz_1.js} +1 -1
  93. package/_assets/{index-Cx-FPP2C.js → index-C64LKUby.js} +1 -1
  94. package/_assets/{index-BW-7rl1w.js → index-C7JkPo6K.js} +1 -1
  95. package/_assets/{index-COC826L7.js → index-C9ALJu8v.js} +1 -1
  96. package/_assets/{index-CTSAk3HZ.js → index-CF2mk15z.js} +1 -1
  97. package/_assets/{index-BT9bqwmo.js → index-CFyRWGpS.js} +1 -1
  98. package/_assets/{index-D1ncAmsg.js → index-CK0YA4GV.js} +1 -1
  99. package/_assets/{index-D5drugU6.js → index-C_D2J-BR.js} +1 -1
  100. package/_assets/{index-BY-2ttcm.js → index-CdUpjD0Z.js} +1 -1
  101. package/_assets/{index-sofR0AzT.js → index-CfJ4lbnY.js} +1 -1
  102. package/_assets/{index-CNwyt0TH.js → index-Cou1KO6b.js} +1 -1
  103. package/_assets/{index-CFUHl0Ma.js → index-DIVlNKTA.js} +1 -1
  104. package/_assets/{index-D7A-L9p9.js → index-DMHLNLqi.js} +1 -1
  105. package/_assets/{index-cFnHRMx4.js → index-DTMwjYEd.js} +2 -2
  106. package/_assets/{index-vt25O9Am.js → index-DW8xuXKL.js} +3 -3
  107. package/_assets/{index-B-PyHfEF.js → index-DWEx5TbM.js} +1 -1
  108. package/_assets/{index-TvUj9AoT.js → index-DdXDqIhp.js} +1 -1
  109. package/_assets/{index-DGDemPnB.js → index-DgiMo6hh.js} +1 -1
  110. package/_assets/{index-DvkKq-3d.js → index-Dmf3D7KE.js} +1 -1
  111. package/_assets/{index-BwBZg-Cg.js → index-DqtsvtM3.js} +1 -1
  112. package/_assets/{index-B4iL_Vxm.js → index-DrMKJdtC.js} +1 -1
  113. package/_assets/{index-D3a3O8EH.js → index-DzETqrsC.js} +1 -1
  114. package/_assets/{index-CJWQK5Lk.js → index-H8YACMnu.js} +1 -1
  115. package/_assets/{index--BUBq145.js → index-X3LYABjY.js} +1 -1
  116. package/_assets/{index-Iqpx-phg.js → index-ZEf4-UtL.js} +1 -1
  117. package/_assets/{index-DFaB3PXW.js → index-e4M6K87M.js} +1 -1
  118. package/_assets/{index-BKSx9kmy.js → index-nf5H3h6Q.js} +1 -1
  119. package/_assets/{index-B1WnOG_n.js → index-rurXcTSu.js} +3 -3
  120. package/_assets/{index-BNbfWSl_.js → index-ul5wIAT0.js} +3 -3
  121. package/_assets/{index.es-B9ErMvUj.js → index.es-B4CfzT8f.js} +4 -4
  122. package/_assets/{index.es-DuthVFnh.js → index.es-Bn8h3cHG.js} +1 -1
  123. package/_assets/{index.es-rx-DH5wv.js → index.es-CqtFRAJI.js} +1 -1
  124. package/_assets/{localBatchGatewayRequest-D_WhElUc.js → localBatchGatewayRequest-CZC8IBaQ.js} +1 -1
  125. package/_assets/{networks-CjrnWm_p.js → networks-0i8YZqHL.js} +1 -1
  126. package/_assets/{onramp-DTvBwKCe.js → onramp-jLRLYivy.js} +1 -1
  127. package/_assets/{openzeppelin-C06zmVod.js → openzeppelin-Cg2_q1PI.js} +1 -1
  128. package/_assets/{parseNft-CWL0AW1h.js → parseNft-TDEqNX1Z.js} +2 -2
  129. package/_assets/{parseSignature-C5YgXtpR.js → parseSignature-BalN-8VI.js} +3 -3
  130. package/_assets/{parseSignature-5VH_Alnl.js → parseSignature-U7pY0kT6.js} +1 -1
  131. package/_assets/{passkeys-DiZlNP-q.js → passkeys-1owiFaBv.js} +1 -1
  132. package/_assets/{pay-with-exchange-CNm1xvZ5.js → pay-with-exchange-CxpzU3qT.js} +1 -1
  133. package/_assets/{qr-overlay-CpgjTugW.js → qr-overlay-CPsiG3BP.js} +1 -1
  134. package/_assets/{receive-CV4TgE-L.js → receive-Bj4S4vrF.js} +1 -1
  135. package/_assets/{resolveImplementation-XYPJYD3T.js → resolveImplementation-BgFFYcu4.js} +1 -1
  136. package/_assets/{rpc-tLuHrGBn.js → rpc-C5i5d_Hd.js} +1 -1
  137. package/_assets/{secp256k1-CpiwnyMt.js → secp256k1-CHxQAK4O.js} +1 -1
  138. package/_assets/{secp256k1-CYEZP9R3.js → secp256k1-CVOBgeVv.js} +1 -1
  139. package/_assets/{secp256k1-CDI-iBc2.js → secp256k1-PzBXITZB.js} +1 -1
  140. package/_assets/{send-D5VuBzPD.js → send-B1VWG_GM.js} +1 -1
  141. package/_assets/{send-batch-transaction-BfHXn227.js → send-batch-transaction-BhVc50dx.js} +1 -1
  142. package/_assets/{send-eip712-transaction-t0wYgXj7.js → send-eip712-transaction-G6HchcdI.js} +2 -2
  143. package/_assets/{send-gasless-transaction-CgmsaSdY.js → send-gasless-transaction-XGwNLlF0.js} +2 -2
  144. package/_assets/{send-transaction-CrLGC-De.js → send-transaction-C1XI8fYZ.js} +2 -2
  145. package/_assets/{sendMetaTransaction-ef-RXWfu.js → sendMetaTransaction-6e7RT25o.js} +1 -1
  146. package/_assets/{sendRawTransaction-pS6CHcTu.js → sendRawTransaction-lz2apptP.js} +3 -3
  147. package/_assets/{serializeTransaction-KCGr6qFd.js → serializeTransaction-CtWH-IFd.js} +1 -1
  148. package/_assets/{session-proposal-sRmaUsXb.js → session-proposal-DceQ_mD9.js} +1 -1
  149. package/_assets/{session-request-CfwKiBxF.js → session-request-CPsFtvuK.js} +2 -2
  150. package/_assets/{signing-DBbUwPle.js → signing-CeXE5YMl.js} +3 -3
  151. package/_assets/{socials-MOf37RiI.js → socials-Dn0c1c-x.js} +1 -1
  152. package/_assets/{swaps-bmMgRWV4.js → swaps-fYZLHQYX.js} +1 -1
  153. package/_assets/{thirdweb--zGmSCRq.js → thirdweb-9nUi4NTx.js} +3 -3
  154. package/_assets/{to-serializable-transaction-DjbT77eY.js → to-serializable-transaction-D4biQiPj.js} +2 -2
  155. package/_assets/{trade-encoding-wpCgB2Av.js → trade-encoding-DED17fJl.js} +1 -1
  156. package/_assets/{transactionReceipt-CweRPSQa.js → transactionReceipt-D6xTzzAw.js} +1 -1
  157. package/_assets/{transactions-dtEdgAGt.js → transactions-D3QkVO0W.js} +1 -1
  158. package/_assets/{useCreditPacks-CzOCruPU.js → useCreditPacks-BcNkRZz6.js} +1 -1
  159. package/_assets/{useImportable-rrKOGrr4.js → useImportable-B6vGX6b2.js} +1 -1
  160. package/_assets/{useInfiniteGrid-XDOQyPRq.js → useInfiniteGrid-DaAZHneB.js} +1 -1
  161. package/_assets/{useTheme-DGv_oEh8.js → useTheme-BJh8uAMV.js} +1 -1
  162. package/_assets/{verifyHash-CvfcirkG.js → verifyHash-DDW5fWXv.js} +1 -1
  163. package/_assets/{w3m-modal-PufzUctO.js → w3m-modal-BrowLxPF.js} +1 -1
  164. package/_assets/{w3m-modal-BGA4lQKq.js → w3m-modal-CbSLOTQ6.js} +1 -1
  165. package/_assets/{wait-for-tx-receipt-0VbbjxzA.js → wait-for-tx-receipt-Chc522wr.js} +1 -1
  166. package/_assets/{wallets-BopYfWq7.js → wallets-1JYF6nkF.js} +5 -5
  167. package/_assets/{web-connector-BSV6ourQ.js → web-connector-C19h992M.js} +3 -3
  168. package/_assets/{writeContract-CCNcKbN2.js → writeContract-DvQTemxv.js} +1 -1
  169. package/_assets/{zoraTestnet-DJdUGbFi.js → zoraTestnet-DwCWuKz_.js} +1 -1
  170. package/index.html +11 -11
  171. package/package.json +2 -2
  172. package/_assets/ItemDetail-B2_NA3qK.js +0 -3324
  173. package/_assets/index-DaQaTpvn.js +0 -3315
@@ -1,4 +1,4 @@
1
- import{cf as it,cb as at,u as st,aa as Y,ab as m,cg as $e,ac as T,ch as lt,a9 as fe,q as he,T as ct,bP as ut,r as dt,ci as J}from"./index-DaQaTpvn.js";import{e as pt,C as Pe,c as I,a as ee,s as A,g as Ne,b as Ve,r as ft}from"./clsx-Df3CFyaE.js";import{r as a,j as z,R as H,f as ht}from"./react-DehiWSvs.js";import{S as Ce}from"./emotion-styled.browser.esm-D23S089l.js";function Se(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Se(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function mt(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Se(e))&&(o&&(o+=" "),o+=t);return o}const bt=["className","component"];function gt(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:r}=e,i=it("div",{shouldForwardProp:u=>u!=="theme"&&u!=="sx"&&u!=="as"})(at);return a.forwardRef(function(c,d){const f=st(n),b=pt(c),{className:g,component:x="div"}=b,h=Y(b,bt);return z.jsx(i,m({as:x,ref:d,className:mt(g,r?r(o):o),theme:t&&f[t]||f},h))})}function vt(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function xt(e,t=166){let n;function o(...r){const i=()=>{e.apply(this,r)};clearTimeout(n),n=setTimeout(i,t)}return o.clear=()=>{clearTimeout(n)},o}function yt(e,t){return()=>null}function Ct(e,t){var n,o;return a.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(o=e.type)==null||(o=o._payload)==null||(o=o.value)==null?void 0:o.muiName)!==-1}function ke(e){return e&&e.ownerDocument||document}function Rt(e){return ke(e).defaultView||window}function Et(e,t){return()=>null}function Le(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function It(e,t,n,o,r){return null}function Mt({controlled:e,default:t,name:n,state:o="value"}){const{current:r}=a.useRef(e!==void 0),[i,s]=a.useState(t),u=r?e:i,c=a.useCallback(d=>{r||s(d)},[]);return[u,c]}function X(e){const t=a.useRef(e);return $e(()=>{t.current=e}),a.useRef((...n)=>(0,t.current)(...n)).current}function ce(...e){return a.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Le(n,t)})},e)}const Re={};function Tt(e,t){const n=a.useRef(Re);return n.current===Re&&(n.current=e(t)),n}const zt=[];function Bt(e){a.useEffect(e,zt)}class te{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new te}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function $t(){const e=Tt(te.create).current;return Bt(e.disposeEffect),e}let ne=!0,ue=!1;const Pt=new te,Nt={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 Vt(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Nt[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function St(e){e.metaKey||e.altKey||e.ctrlKey||(ne=!0)}function se(){ne=!1}function kt(){this.visibilityState==="hidden"&&ue&&(ne=!0)}function Lt(e){e.addEventListener("keydown",St,!0),e.addEventListener("mousedown",se,!0),e.addEventListener("pointerdown",se,!0),e.addEventListener("touchstart",se,!0),e.addEventListener("visibilitychange",kt,!0)}function _t(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return ne||Vt(t)}function _e(){const e=a.useCallback(r=>{r!=null&&Lt(r.ownerDocument)},[]),t=a.useRef(!1);function n(){return t.current?(ue=!0,Pt.start(100,()=>{ue=!1}),t.current=!1,!0):!1}function o(r){return _t(r)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:o,onBlur:n,ref:e}}function Ft(e,t){function n(o,r){return z.jsx(Ce,m({"data-testid":`${t}Icon`,ref:r},o,{children:e}))}return n.muiName=Ce.muiName,a.memo(a.forwardRef(n))}const Dt={configure:e=>{Pe.configure(e)}},jt=Object.freeze(Object.defineProperty({__proto__:null,capitalize:T,createChainedFunction:vt,createSvgIcon:Ft,debounce:xt,deprecatedPropType:yt,isMuiElement:Ct,ownerDocument:ke,ownerWindow:Rt,requirePropFactory:Et,setRef:Le,unstable_ClassNameGenerator:Dt,unstable_useEnhancedEffect:$e,unstable_useId:lt,unsupportedProp:It,useControlled:Mt,useEventCallback:X,useForkRef:ce,useIsFocusVisible:_e},Symbol.toStringTag,{value:"Module"}));function de(e,t){return de=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},de(e,t)}function Ot(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,de(e,t)}const Ee=H.createContext(null);function Wt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function me(e,t){var n=function(i){return t&&a.isValidElement(i)?t(i):i},o=Object.create(null);return e&&a.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function Ut(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}var o=Object.create(null),r=[];for(var i in e)i in t?r.length&&(o[i]=r,r=[]):r.push(i);var s,u={};for(var c in t){if(o[c])for(s=0;s<o[c].length;s++){var d=o[c][s];u[o[c][s]]=n(d)}u[c]=n(c)}for(s=0;s<r.length;s++)u[r[s]]=n(r[s]);return u}function w(e,t,n){return n[t]!=null?n[t]:e.props[t]}function wt(e,t){return me(e.children,function(n){return a.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:w(n,"appear",e),enter:w(n,"enter",e),exit:w(n,"exit",e)})})}function At(e,t,n){var o=me(e.children),r=Ut(t,o);return Object.keys(r).forEach(function(i){var s=r[i];if(a.isValidElement(s)){var u=i in t,c=i in o,d=t[i],f=a.isValidElement(d)&&!d.props.in;c&&(!u||f)?r[i]=a.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:w(s,"exit",e),enter:w(s,"enter",e)}):!c&&u&&!f?r[i]=a.cloneElement(s,{in:!1}):c&&u&&a.isValidElement(d)&&(r[i]=a.cloneElement(s,{onExited:n.bind(null,s),in:d.props.in,exit:w(s,"exit",e),enter:w(s,"enter",e)}))}}),r}var Kt=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Gt={component:"div",childFactory:function(t){return t}},be=(function(e){Ot(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var s=i.handleExited.bind(Wt(i));return i.state={contextValue:{isMounting:!0},handleExited:s,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(r,i){var s=i.children,u=i.handleExited,c=i.firstRender;return{children:c?wt(r,u):At(r,s,u),firstRender:!1}},n.handleExited=function(r,i){var s=me(this.props.children);r.key in s||(r.props.onExited&&r.props.onExited(i),this.mounted&&this.setState(function(u){var c=m({},u.children);return delete c[r.key],{children:c}}))},n.render=function(){var r=this.props,i=r.component,s=r.childFactory,u=Y(r,["component","childFactory"]),c=this.state.contextValue,d=Kt(this.state.children).map(s);return delete u.appear,delete u.enter,delete u.exit,i===null?H.createElement(Ee.Provider,{value:c},d):H.createElement(Ee.Provider,{value:c},H.createElement(i,u,d))},t})(H.Component);be.propTypes={};be.defaultProps=Gt;function Ht(e){const{className:t,classes:n,pulsate:o=!1,rippleX:r,rippleY:i,rippleSize:s,in:u,onExited:c,timeout:d}=e,[f,b]=a.useState(!1),g=I(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),x={width:s,height:s,top:-(s/2)+i,left:-(s/2)+r},h=I(n.child,f&&n.childLeaving,o&&n.childPulsate);return!u&&!f&&b(!0),a.useEffect(()=>{if(!u&&c!=null){const C=setTimeout(c,d);return()=>{clearTimeout(C)}}},[c,u,d]),z.jsx("span",{className:g,style:x,children:z.jsx("span",{className:h})})}const M=ee("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Xt=["center","classes","className"];let oe=e=>e,Ie,Me,Te,ze;const pe=550,Yt=80,qt=he(Ie||(Ie=oe`
1
+ import{cf as it,cb as at,u as st,aa as Y,ab as m,cg as $e,ac as T,ch as lt,a9 as fe,q as he,T as ct,bP as ut,r as dt,ci as J}from"./index-BqH8KAmH.js";import{e as pt,C as Pe,c as I,a as ee,s as A,g as Ne,b as Ve,r as ft}from"./clsx-CEPd4QO3.js";import{r as a,j as z,R as H,f as ht}from"./react-DehiWSvs.js";import{S as Ce}from"./emotion-styled.browser.esm-B3uXeLtp.js";function Se(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Se(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function mt(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Se(e))&&(o&&(o+=" "),o+=t);return o}const bt=["className","component"];function gt(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:r}=e,i=it("div",{shouldForwardProp:u=>u!=="theme"&&u!=="sx"&&u!=="as"})(at);return a.forwardRef(function(c,d){const f=st(n),b=pt(c),{className:g,component:x="div"}=b,h=Y(b,bt);return z.jsx(i,m({as:x,ref:d,className:mt(g,r?r(o):o),theme:t&&f[t]||f},h))})}function vt(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function xt(e,t=166){let n;function o(...r){const i=()=>{e.apply(this,r)};clearTimeout(n),n=setTimeout(i,t)}return o.clear=()=>{clearTimeout(n)},o}function yt(e,t){return()=>null}function Ct(e,t){var n,o;return a.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(o=e.type)==null||(o=o._payload)==null||(o=o.value)==null?void 0:o.muiName)!==-1}function ke(e){return e&&e.ownerDocument||document}function Rt(e){return ke(e).defaultView||window}function Et(e,t){return()=>null}function Le(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function It(e,t,n,o,r){return null}function Mt({controlled:e,default:t,name:n,state:o="value"}){const{current:r}=a.useRef(e!==void 0),[i,s]=a.useState(t),u=r?e:i,c=a.useCallback(d=>{r||s(d)},[]);return[u,c]}function X(e){const t=a.useRef(e);return $e(()=>{t.current=e}),a.useRef((...n)=>(0,t.current)(...n)).current}function ce(...e){return a.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Le(n,t)})},e)}const Re={};function Tt(e,t){const n=a.useRef(Re);return n.current===Re&&(n.current=e(t)),n}const zt=[];function Bt(e){a.useEffect(e,zt)}class te{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new te}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function $t(){const e=Tt(te.create).current;return Bt(e.disposeEffect),e}let ne=!0,ue=!1;const Pt=new te,Nt={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 Vt(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Nt[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function St(e){e.metaKey||e.altKey||e.ctrlKey||(ne=!0)}function se(){ne=!1}function kt(){this.visibilityState==="hidden"&&ue&&(ne=!0)}function Lt(e){e.addEventListener("keydown",St,!0),e.addEventListener("mousedown",se,!0),e.addEventListener("pointerdown",se,!0),e.addEventListener("touchstart",se,!0),e.addEventListener("visibilitychange",kt,!0)}function _t(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return ne||Vt(t)}function _e(){const e=a.useCallback(r=>{r!=null&&Lt(r.ownerDocument)},[]),t=a.useRef(!1);function n(){return t.current?(ue=!0,Pt.start(100,()=>{ue=!1}),t.current=!1,!0):!1}function o(r){return _t(r)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:o,onBlur:n,ref:e}}function Ft(e,t){function n(o,r){return z.jsx(Ce,m({"data-testid":`${t}Icon`,ref:r},o,{children:e}))}return n.muiName=Ce.muiName,a.memo(a.forwardRef(n))}const Dt={configure:e=>{Pe.configure(e)}},jt=Object.freeze(Object.defineProperty({__proto__:null,capitalize:T,createChainedFunction:vt,createSvgIcon:Ft,debounce:xt,deprecatedPropType:yt,isMuiElement:Ct,ownerDocument:ke,ownerWindow:Rt,requirePropFactory:Et,setRef:Le,unstable_ClassNameGenerator:Dt,unstable_useEnhancedEffect:$e,unstable_useId:lt,unsupportedProp:It,useControlled:Mt,useEventCallback:X,useForkRef:ce,useIsFocusVisible:_e},Symbol.toStringTag,{value:"Module"}));function de(e,t){return de=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},de(e,t)}function Ot(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,de(e,t)}const Ee=H.createContext(null);function Wt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function me(e,t){var n=function(i){return t&&a.isValidElement(i)?t(i):i},o=Object.create(null);return e&&a.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function Ut(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}var o=Object.create(null),r=[];for(var i in e)i in t?r.length&&(o[i]=r,r=[]):r.push(i);var s,u={};for(var c in t){if(o[c])for(s=0;s<o[c].length;s++){var d=o[c][s];u[o[c][s]]=n(d)}u[c]=n(c)}for(s=0;s<r.length;s++)u[r[s]]=n(r[s]);return u}function w(e,t,n){return n[t]!=null?n[t]:e.props[t]}function wt(e,t){return me(e.children,function(n){return a.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:w(n,"appear",e),enter:w(n,"enter",e),exit:w(n,"exit",e)})})}function At(e,t,n){var o=me(e.children),r=Ut(t,o);return Object.keys(r).forEach(function(i){var s=r[i];if(a.isValidElement(s)){var u=i in t,c=i in o,d=t[i],f=a.isValidElement(d)&&!d.props.in;c&&(!u||f)?r[i]=a.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:w(s,"exit",e),enter:w(s,"enter",e)}):!c&&u&&!f?r[i]=a.cloneElement(s,{in:!1}):c&&u&&a.isValidElement(d)&&(r[i]=a.cloneElement(s,{onExited:n.bind(null,s),in:d.props.in,exit:w(s,"exit",e),enter:w(s,"enter",e)}))}}),r}var Kt=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Gt={component:"div",childFactory:function(t){return t}},be=(function(e){Ot(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var s=i.handleExited.bind(Wt(i));return i.state={contextValue:{isMounting:!0},handleExited:s,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(r,i){var s=i.children,u=i.handleExited,c=i.firstRender;return{children:c?wt(r,u):At(r,s,u),firstRender:!1}},n.handleExited=function(r,i){var s=me(this.props.children);r.key in s||(r.props.onExited&&r.props.onExited(i),this.mounted&&this.setState(function(u){var c=m({},u.children);return delete c[r.key],{children:c}}))},n.render=function(){var r=this.props,i=r.component,s=r.childFactory,u=Y(r,["component","childFactory"]),c=this.state.contextValue,d=Kt(this.state.children).map(s);return delete u.appear,delete u.enter,delete u.exit,i===null?H.createElement(Ee.Provider,{value:c},d):H.createElement(Ee.Provider,{value:c},H.createElement(i,u,d))},t})(H.Component);be.propTypes={};be.defaultProps=Gt;function Ht(e){const{className:t,classes:n,pulsate:o=!1,rippleX:r,rippleY:i,rippleSize:s,in:u,onExited:c,timeout:d}=e,[f,b]=a.useState(!1),g=I(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),x={width:s,height:s,top:-(s/2)+i,left:-(s/2)+r},h=I(n.child,f&&n.childLeaving,o&&n.childPulsate);return!u&&!f&&b(!0),a.useEffect(()=>{if(!u&&c!=null){const C=setTimeout(c,d);return()=>{clearTimeout(C)}}},[c,u,d]),z.jsx("span",{className:g,style:x,children:z.jsx("span",{className:h})})}const M=ee("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Xt=["center","classes","className"];let oe=e=>e,Ie,Me,Te,ze;const pe=550,Yt=80,qt=he(Ie||(Ie=oe`
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-pS6CHcTu.js";import{af as q,am as C,a7 as at,ax as rt,B as st,ad as M}from"./NetworkUtil-EoWQDMpU.js";import{P as S,w as A,Q as ot,c as ct}from"./W3MFrameProviderSingleton-Be2imJ8Z.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-lz2apptP.js";import{af as q,am as C,a7 as at,ax as rt,B as st,ad as M}from"./NetworkUtil-EoWQDMpU.js";import{P as S,w as A,Q as ot,c as ct}from"./W3MFrameProviderSingleton-Dew4UHCH.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-vt25O9Am.js";import{c as x,U as _}from"./index-BCyVn8MQ.js";import{W as E}from"./index-BgL4tnd6.js";import{O as m,R as p,C as f,S as h,v as C,x as R}from"./W3MFrameProviderSingleton-Be2imJ8Z.js";import{ReownAuthentication as v}from"./features-DYTS35jX.js";import"./index-DaQaTpvn.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./index-Ypo9phAp.js";import"./events-DQ172AOg.js";import"./index-C1hTWDfF.js";import"./index-DI-3MKLG.js";import"./index-nibyPLVP.js";import"./index-B4iL_Vxm.js";import"./index.es-rx-DH5wv.js";import"./browser-ponyfill-I5CKtKME.js";import"./NetworkUtil-EoWQDMpU.js";import"./index-D1ncAmsg.js";import"./index-C6jx_7vf.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-DW8xuXKL.js";import{c as x,U as _}from"./index-7ncft_vv.js";import{W as E}from"./index-BSu1IoGB.js";import{O as m,R as p,C as f,S as h,v as C,x as R}from"./W3MFrameProviderSingleton-Dew4UHCH.js";import{ReownAuthentication as v}from"./features-BXQRcYZ3.js";import"./index-BqH8KAmH.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./index-B1Gnpvim.js";import"./events-DQ172AOg.js";import"./index-B_a8jknM.js";import"./index-DI-3MKLG.js";import"./index-nibyPLVP.js";import"./index-DrMKJdtC.js";import"./index.es-CqtFRAJI.js";import"./browser-ponyfill-I5CKtKME.js";import"./NetworkUtil-EoWQDMpU.js";import"./index-CK0YA4GV.js";import"./index-B1CRrsWx.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-vt25O9Am.js";import{c as d}from"./index-BCyVn8MQ.js";import{W as C}from"./index-BgL4tnd6.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-Be2imJ8Z.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-BhRssk62.js";import"./index-D1ncAmsg.js";import{e as P,n as N}from"./ref-BsAZ42-h.js";import"./index-BwBZg-Cg.js";import"./index-fzBQEY_W.js";import{au as T}from"./NetworkUtil-EoWQDMpU.js";import"./index-DaQaTpvn.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./index-Ypo9phAp.js";import"./events-DQ172AOg.js";import"./index-C1hTWDfF.js";import"./index-DI-3MKLG.js";import"./index-nibyPLVP.js";import"./index-B4iL_Vxm.js";import"./index.es-rx-DH5wv.js";import"./browser-ponyfill-I5CKtKME.js";import"./index-C6jx_7vf.js";import"./async-directive-BRxn_Py3.js";import"./index-DvkKq-3d.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-DW8xuXKL.js";import{c as d}from"./index-7ncft_vv.js";import{W as C}from"./index-BSu1IoGB.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-Dew4UHCH.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-B3GREAKI.js";import"./index-CK0YA4GV.js";import{e as P,n as N}from"./ref-BsAZ42-h.js";import"./index-DqtsvtM3.js";import"./index-BSAtCb0u.js";import{au as T}from"./NetworkUtil-EoWQDMpU.js";import"./index-BqH8KAmH.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./index-B1Gnpvim.js";import"./events-DQ172AOg.js";import"./index-B_a8jknM.js";import"./index-DI-3MKLG.js";import"./index-nibyPLVP.js";import"./index-DrMKJdtC.js";import"./index.es-CqtFRAJI.js";import"./browser-ponyfill-I5CKtKME.js";import"./index-B1CRrsWx.js";import"./async-directive-BRxn_Py3.js";import"./index-Dmf3D7KE.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-vt25O9Am.js";import{c as w}from"./index-BCyVn8MQ.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-Be2imJ8Z.js";import"./index-DZrXtOiH.js";import{au as D}from"./NetworkUtil-EoWQDMpU.js";import{e as Z,n as ee}from"./ref-BsAZ42-h.js";import"./index-C6jx_7vf.js";import{H as I}from"./HelpersUtil-DL3ySOBk.js";import"./index-DvkKq-3d.js";import"./index-WvEbTnHu.js";import"./index-BwBZg-Cg.js";import"./index-BhRssk62.js";import"./index-D1ncAmsg.js";import{N as te}from"./NavigationUtil-DmfK5sOV.js";import"./index-DaQaTpvn.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./index-Ypo9phAp.js";import"./events-DQ172AOg.js";import"./index-C1hTWDfF.js";import"./index-DI-3MKLG.js";import"./index-nibyPLVP.js";import"./index-B4iL_Vxm.js";import"./index.es-rx-DH5wv.js";import"./browser-ponyfill-I5CKtKME.js";import"./async-directive-BRxn_Py3.js";import"./ConstantsUtil-Di3dRDAF.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-DW8xuXKL.js";import{c as w}from"./index-7ncft_vv.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-Dew4UHCH.js";import"./index-5sbt15fG.js";import{au as D}from"./NetworkUtil-EoWQDMpU.js";import{e as Z,n as ee}from"./ref-BsAZ42-h.js";import"./index-B1CRrsWx.js";import{H as I}from"./HelpersUtil-BWrob0lV.js";import"./index-Dmf3D7KE.js";import"./index-C-j8K69Q.js";import"./index-DqtsvtM3.js";import"./index-B3GREAKI.js";import"./index-CK0YA4GV.js";import{N as te}from"./NavigationUtil-DmfK5sOV.js";import"./index-BqH8KAmH.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./index-B1Gnpvim.js";import"./events-DQ172AOg.js";import"./index-B_a8jknM.js";import"./index-DI-3MKLG.js";import"./index-nibyPLVP.js";import"./index-DrMKJdtC.js";import"./index.es-CqtFRAJI.js";import"./browser-ponyfill-I5CKtKME.js";import"./async-directive-BRxn_Py3.js";import"./ConstantsUtil-Di3dRDAF.js";const ie=Y`
2
2
  div {
3
3
  width: 100%;
4
4
  }
@@ -1 +1 @@
1
- import{a9 as k,aa as A,ab as C,ac as P,aT as O,aU as U,aV as B,aW as M,aX as V,aY as D,aZ as q,a_ as W}from"./index-DaQaTpvn.js";import{r as y,j as N}from"./react-DehiWSvs.js";import{g as G,a as L,c as X,b as Y,s as Z}from"./clsx-Df3CFyaE.js";function H(o){return G("MuiSvgIcon",o)}L("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const J=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],K=o=>{const{color:e,fontSize:r,classes:a}=o,t={root:["root",e!=="inherit"&&`color${P(e)}`,`fontSize${P(r)}`]};return Y(t,H,a)},Q=Z("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,J),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=K(s);return N.jsxs(Q,C({as:m,className:X(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),q(function(){return W(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=U(function(n,v,_){var z=f&&n.as||t,S="",$=[],b=n;if(n.theme==null){b={};for(var I in n)b[I]=n[I];b.theme=y.useContext(B)}typeof n.className=="string"?S=M(v.registered,$,n.className):n.className!=null&&(S=n.className+" ");var F=V(i.concat($),v.registered,b);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,_&&(w.ref=_),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 _=o(n,C({},r,v,{shouldForwardProp:E(s,v,!0)}));return _.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{a9 as k,aa as A,ab as C,ac as P,aT as O,aU as U,aV as B,aW as M,aX as V,aY as D,aZ as q,a_ as W}from"./index-BqH8KAmH.js";import{r as y,j as N}from"./react-DehiWSvs.js";import{g as G,a as L,c as X,b as Y,s as Z}from"./clsx-CEPd4QO3.js";function H(o){return G("MuiSvgIcon",o)}L("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const J=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],K=o=>{const{color:e,fontSize:r,classes:a}=o,t={root:["root",e!=="inherit"&&`color${P(e)}`,`fontSize${P(r)}`]};return Y(t,H,a)},Q=Z("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,J),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=K(s);return N.jsxs(Q,C({as:m,className:X(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),q(function(){return W(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=U(function(n,v,_){var z=f&&n.as||t,S="",$=[],b=n;if(n.theme==null){b={};for(var I in n)b[I]=n[I];b.theme=y.useContext(B)}typeof n.className=="string"?S=M(v.registered,$,n.className):n.className!=null&&(S=n.className+" ");var F=V(i.concat($),v.registered,b);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,_&&(w.ref=_),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 _=o(n,C({},r,v,{shouldForwardProp:E(s,v,!0)}));return _.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-DjbT77eY.js";import{s as w,r as y}from"./prepare-contract-call-BnXbUbQT.js";import{w as h}from"./wait-for-tx-receipt-0VbbjxzA.js";import"./index-DaQaTpvn.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./transaction-BRB0QRZP.js";import"./utils-B9hEgCzc.js";import"./transactionReceipt-CweRPSQa.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-D4biQiPj.js";import{s as w,r as y}from"./prepare-contract-call-BnXbUbQT.js";import{w as h}from"./wait-for-tx-receipt-Chc522wr.js";import"./index-BqH8KAmH.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./transaction-BRB0QRZP.js";import"./utils-B9hEgCzc.js";import"./transactionReceipt-D6xTzzAw.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{d as n,e as i}from"./index-DaQaTpvn.js";function o(r){const e=r;return e.code===4001||e.name==="AbortError"||/reject|denied|cancel/i.test(e.message??"")}function u(r){const e=r;return e.code===402||e.status===402||(e.message??"").toLowerCase().includes("insufficient")}function f(r,e,t={}){if(o(r))return n("errors.rejected");if(t.sale){const s=(r.message??"").toLowerCase();if(s.includes("insufficient"))return n("errors.insufficient",{currency:i.name});if(/not for sale|not found|no active listing|404/.test(s))return n("errors.soldOrRemoved");if(s.includes("your own listing"))return n("errors.cantBuyOwn")}return e}export{u as a,f,o as i};
1
+ import{d as n,e as i}from"./index-BqH8KAmH.js";function o(r){const e=r;return e.code===4001||e.name==="AbortError"||/reject|denied|cancel/i.test(e.message??"")}function u(r){const e=r;return e.code===402||e.status===402||(e.message??"").toLowerCase().includes("insufficient")}function f(r,e,t={}){if(o(r))return n("errors.rejected");if(t.sale){const s=(r.message??"").toLowerCase();if(s.includes("insufficient"))return n("errors.insufficient",{currency:i.name});if(/not for sale|not found|no active listing|404/.test(s))return n("errors.soldOrRemoved");if(s.includes("your own listing"))return n("errors.cantBuyOwn")}return e}export{u as a,f,o as i};
@@ -1 +1 @@
1
- import{g as s,t as n}from"./to-serializable-transaction-DjbT77eY.js";import{r as c}from"./prepare-contract-call-BnXbUbQT.js";import{s as m}from"./signing-DBbUwPle.js";import"./index-DaQaTpvn.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./transaction-BRB0QRZP.js";import"./utils-B9hEgCzc.js";import"./get-bytecode-knYex1Eu.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-D4biQiPj.js";import{r as c}from"./prepare-contract-call-BnXbUbQT.js";import{s as m}from"./signing-CeXE5YMl.js";import"./index-BqH8KAmH.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./transaction-BRB0QRZP.js";import"./utils-B9hEgCzc.js";import"./get-bytecode-knYex1Eu.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-BNbfWSl_.js","_assets/index-DaQaTpvn.js","_assets/react-DehiWSvs.js","_assets/sentry-973sfbO9.js","_assets/dcl-schemas-Dr9BTjb7.js","_assets/ethers-CtNGBird.js","_assets/intl-CBcMB1D2.js","_assets/index-D-NhBWWr.css","_assets/ethereum-CliiIOgc.js","_assets/utils-B9hEgCzc.js","_assets/types-DC0Zmj1B.js","_assets/get-bytecode-knYex1Eu.js","_assets/prepare-contract-call-BnXbUbQT.js","_assets/to-serializable-transaction-DjbT77eY.js","_assets/transaction-BRB0QRZP.js","_assets/web-connector-BSV6ourQ.js","_assets/linkAccount-BodpWbRq.js","_assets/eth_sendRawTransaction-DPdnXbFR.js","_assets/sleep-mAKpSMLY.js","_assets/detectExtension-DEjVJeUh.js"])))=>i.map(i=>d[i]);
2
- import{u as x,o as F,s as M,a5 as $}from"./prepare-contract-call-BnXbUbQT.js";import{_ as E}from"./index-DaQaTpvn.js";import{w as V,c as H,h as K,a as j}from"./utils-B9hEgCzc.js";import{d as B}from"./detectExtension-DEjVJeUh.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-BNbfWSl_.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-BNbfWSl_.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-BNbfWSl_.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-BSV6ourQ.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-BSV6ourQ.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-ul5wIAT0.js","_assets/index-BqH8KAmH.js","_assets/react-DehiWSvs.js","_assets/sentry-973sfbO9.js","_assets/dcl-schemas-Dr9BTjb7.js","_assets/ethers-CtNGBird.js","_assets/intl-CBcMB1D2.js","_assets/index-D-NhBWWr.css","_assets/ethereum-CliiIOgc.js","_assets/utils-B9hEgCzc.js","_assets/types-DC0Zmj1B.js","_assets/get-bytecode-knYex1Eu.js","_assets/prepare-contract-call-BnXbUbQT.js","_assets/to-serializable-transaction-D4biQiPj.js","_assets/transaction-BRB0QRZP.js","_assets/web-connector-C19h992M.js","_assets/linkAccount-BodpWbRq.js","_assets/eth_sendRawTransaction-DPdnXbFR.js","_assets/sleep-mAKpSMLY.js","_assets/detectExtension-DEjVJeUh.js"])))=>i.map(i=>d[i]);
2
+ import{u as x,o as F,s as M,a5 as $}from"./prepare-contract-call-BnXbUbQT.js";import{_ as E}from"./index-BqH8KAmH.js";import{w as V,c as H,h as K,a as j}from"./utils-B9hEgCzc.js";import{d as B}from"./detectExtension-DEjVJeUh.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-ul5wIAT0.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-ul5wIAT0.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-ul5wIAT0.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-C19h992M.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-C19h992M.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-Be2imJ8Z.js";import{az as A,au as m}from"./NetworkUtil-EoWQDMpU.js";import"./dcl-schemas-Dr9BTjb7.js";import"./index-DI-3MKLG.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./index-Ypo9phAp.js";import"./events-DQ172AOg.js";import"./index-DaQaTpvn.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./browser-ponyfill-I5CKtKME.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-Dew4UHCH.js";import{az as A,au as m}from"./NetworkUtil-EoWQDMpU.js";import"./dcl-schemas-Dr9BTjb7.js";import"./index-DI-3MKLG.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./index-B1Gnpvim.js";import"./events-DQ172AOg.js";import"./index-BqH8KAmH.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./browser-ponyfill-I5CKtKME.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-DjbT77eY.js","_assets/index-DaQaTpvn.js","_assets/react-DehiWSvs.js","_assets/sentry-973sfbO9.js","_assets/dcl-schemas-Dr9BTjb7.js","_assets/ethers-CtNGBird.js","_assets/intl-CBcMB1D2.js","_assets/index-D-NhBWWr.css","_assets/prepare-contract-call-BnXbUbQT.js","_assets/utils-B9hEgCzc.js","_assets/transaction-BRB0QRZP.js"])))=>i.map(i=>d[i]);
2
- import{_ as c}from"./index-DaQaTpvn.js";import{b as s}from"./uint8-array-CjVHUazS.js";import{n as d}from"./prepare-contract-call-BnXbUbQT.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-DjbT77eY.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-D4biQiPj.js","_assets/index-BqH8KAmH.js","_assets/react-DehiWSvs.js","_assets/sentry-973sfbO9.js","_assets/dcl-schemas-Dr9BTjb7.js","_assets/ethers-CtNGBird.js","_assets/intl-CBcMB1D2.js","_assets/index-D-NhBWWr.css","_assets/prepare-contract-call-BnXbUbQT.js","_assets/utils-B9hEgCzc.js","_assets/transaction-BRB0QRZP.js"])))=>i.map(i=>d[i]);
2
+ import{_ as c}from"./index-BqH8KAmH.js";import{b as s}from"./uint8-array-CjVHUazS.js";import{n as d}from"./prepare-contract-call-BnXbUbQT.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-D4biQiPj.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-DaQaTpvn.js";const{colors:e}=t,r=o.input`
1
+ import{t,s as o}from"./index-BqH8KAmH.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-BPgoblAE.js";import"./prepare-contract-call-BnXbUbQT.js";import"./utils-B9hEgCzc.js";import"./sentry-973sfbO9.js";import"./react-DehiWSvs.js";import"./index-DaQaTpvn.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./detectExtension-DEjVJeUh.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-CBj5JHAd.js";import"./prepare-contract-call-BnXbUbQT.js";import"./utils-B9hEgCzc.js";import"./sentry-973sfbO9.js";import"./react-DehiWSvs.js";import"./index-BqH8KAmH.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./detectExtension-DEjVJeUh.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};