@dcl/shop 1.11.2-33050827087.commit-5162182 → 1.11.2

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 (230) hide show
  1. package/_assets/{Activity-DNEEkgvZ.js → Activity-BhrsqnTy.js} +9 -9
  2. package/_assets/{AnimatedBackground-C4tSJyQ8.js → AnimatedBackground-DB2urHfN.js} +6 -6
  3. package/_assets/{Assets-B3Rb-SdV.js → Assets-CEOKXfHN.js} +3 -3
  4. package/_assets/{Authorizations-D3ToK7Vx.js → Authorizations-zY_jkrdd.js} +2 -2
  5. package/_assets/Cart-CD3QMZMU.js +748 -0
  6. package/_assets/{Collection-C6OyTuj5.js → Collection-fLHFUGHo.js} +9 -9
  7. package/_assets/{CollectionCarousel-Dd75OU-Q.js → CollectionCarousel-Cs01J4sG.js} +3 -3
  8. package/_assets/{Confetti-DjkX_3_q.js → Confetti-DI93CkCr.js} +4 -4
  9. package/_assets/{ConstantsUtil-BH_sMfYh.js → ConstantsUtil-9orAwS_V.js} +2 -2
  10. package/_assets/{ContentClient-BouApw_V.js → ContentClient-Dr4IkAbb.js} +2 -2
  11. package/_assets/{Creator-BNB_BL60.js → Creator-DGT3lqoW.js} +24 -24
  12. package/_assets/{DeploymentBuilder-CTJc9KyY.js → DeploymentBuilder-BsQ4GIy9.js} +2 -2
  13. package/_assets/{EmotePlaybackBar-Csb4Ibt0.js → EmotePlaybackBar-WqjOzm12.js} +5 -5
  14. package/_assets/{ErrorNotice-l3E_FfIK.js → ErrorNotice-BanVYx_o.js} +2 -2
  15. package/_assets/{ExchangeController-BxGZzeGA.js → ExchangeController-BWLF9BXM.js} +2 -2
  16. package/_assets/{Faq-DafjoTrc.js → Faq-Dt8RPaHZ.js} +2 -2
  17. package/_assets/{GetCredits-BFpJP8jE.js → GetCredits-BtM_F2J_.js} +2 -2
  18. package/_assets/{Grow-C2e2m8Rb.js → Grow-DqnkmJ7j.js} +2 -2
  19. package/_assets/{HelpersUtil-Dux0xFx0.js → HelpersUtil-BtPtcaFe.js} +2 -2
  20. package/_assets/{ItemDetail-CvYYPPFr.js → ItemDetail-C28UgJKw.js} +2 -2
  21. package/_assets/{LoadMore-MFGs97oL.js → LoadMore-hoiSVN2H.js} +2 -2
  22. package/_assets/{ManaPricingBanner.styles-BeinntQL.js → ManaPricingBanner.styles-rIYX7xjf.js} +2 -2
  23. package/_assets/{MyAssets-SHyzHCmC.js → MyAssets-BtAcjcuT.js} +2 -2
  24. package/_assets/{MyFavorites-i6sMvx4P.js → MyFavorites-C3BVkIkn.js} +2 -2
  25. package/_assets/{NetworkUtil-DQGxIBpk.js → NetworkUtil-BIUbrPWa.js} +2 -2
  26. package/_assets/{NotFound-BLlLtggu.js → NotFound-BgmQ5oFS.js} +2 -2
  27. package/_assets/{NotificationsBell-Cd5peS_Q.js → NotificationsBell-Bjpu5hGT.js} +2 -2
  28. package/_assets/{OutfitDetail-DJ-rpZ0e.js → OutfitDetail-CIeX74fk.js} +2 -2
  29. package/_assets/{OutfitPreview-Gygq11uE.js → OutfitPreview-Clicok_x.js} +2 -2
  30. package/_assets/{OutfitStudio-Coh3dPV9.js → OutfitStudio-DLStaax_.js} +2 -2
  31. package/_assets/{StoreSettings-CoNdtIYa.js → StoreSettings-DwoVLG99.js} +2 -2
  32. package/_assets/{Success-DjTgjFWd.js → Success-BKkeu6d7.js} +2 -2
  33. package/_assets/{SwapController-Daf2PjRS.js → SwapController-Cnrhnusk.js} +2 -2
  34. package/_assets/{TradeService-L2-zioCm.js → TradeService-BgsoZh0O.js} +2 -2
  35. package/_assets/{W3MFrameProviderSingleton-DpORf-LX.js → W3MFrameProviderSingleton-DqaMm2mV.js} +4 -4
  36. package/_assets/{WebCryptoP256-mDZyLVUf.js → WebCryptoP256-R5qc29Sl.js} +2 -2
  37. package/_assets/{authorizations-kdnyXk-o.js → authorizations-DC168PVR.js} +2 -2
  38. package/_assets/{basic-CVxTetEc.js → basic-CcMC-Noe.js} +2 -2
  39. package/_assets/{biconomy-DQ7dEBcW.js → biconomy-MuBR1fCG.js} +2 -2
  40. package/_assets/{browseLayout.styles-CdA3CE0x.js → browseLayout.styles-C_vn8XYJ.js} +2 -2
  41. package/_assets/{browser-D7EBHR6U.js → browser-CTTbQgwQ.js} +2 -2
  42. package/_assets/{browser-ponyfill-3_yO4MIk.js → browser-ponyfill-2MY_3eYQ.js} +2 -2
  43. package/_assets/{builder-DKK0vJe2.js → builder-CpxipFmE.js} +2 -2
  44. package/_assets/buy-C9vFcpIy.js +2 -0
  45. package/_assets/{buy-gasless-C_uHAA7P.js → buy-gasless-Co1yjKqt.js} +2 -2
  46. package/_assets/{categories-CXb4y7uM.js → categories-DSulO5YB.js} +2 -2
  47. package/_assets/{ccip-Du2rkyMm.js → ccip-BGKWaLZd.js} +2 -2
  48. package/_assets/{ccip-BP3AEmeh.js → ccip-CIGFVe9f.js} +2 -2
  49. package/_assets/{chains-Brge8Nnl.js → chains-B_96BGTk.js} +2 -2
  50. package/_assets/{collectionPage.styles-Dbhq7DJD.js → collectionPage.styles-DUDsxvQH.js} +5 -5
  51. package/_assets/{common-Dv8du0O3.js → common-nayH6Qb7.js} +2 -2
  52. package/_assets/{controller-DXgl8oNw.js → controller-BoM50IGk.js} +3 -3
  53. package/_assets/{core-bqJrpim7.js → core-C6U0AzoB.js} +5 -5
  54. package/_assets/{createSvgIcon-RhWMsiUj.js → createSvgIcon-DLtjIgIX.js} +5 -5
  55. package/_assets/{custom-wJF4MxdY.js → custom-BDzyroM1.js} +2 -2
  56. package/_assets/{data-capture-BgbkX638.js → data-capture-Zb8-AfOh.js} +2 -2
  57. package/_assets/{dcl-schemas-BSiFmgyu.js → dcl-schemas-OH8G4Ndl.js} +2 -2
  58. package/_assets/{decimals-Bhr9PmbE.js → decimals-DwmaOPpT.js} +2 -2
  59. package/_assets/{decimals-BE8KrVH_.js → decimals-gxw11IoF.js} +2 -2
  60. package/_assets/{detectExtension-DKYQbYLq.js → detectExtension-GZk2y11b.js} +2 -2
  61. package/_assets/{disposePreview-Dh-RQr0H.js → disposePreview-CoU0o2LJ.js} +2 -2
  62. package/_assets/{email-LeCdhlbS.js → email-Bs2nQCjl.js} +2 -2
  63. package/_assets/{embedded-wallet-B8B6A0oO.js → embedded-wallet-DaMZY5wt.js} +2 -2
  64. package/_assets/{emotion-styled.browser.esm-CEQdJM18.js → emotion-styled.browser.esm-pl53fr_X.js} +2 -2
  65. package/_assets/{engine-Dwzz2oUp.js → engine-_-Y9EygX.js} +2 -2
  66. package/_assets/{errors-DfdYHyEU.js → errors-ISVrHVty.js} +2 -2
  67. package/_assets/{estimate-l1-fee-BGky8W0l.js → estimate-l1-fee-C2MojaUq.js} +2 -2
  68. package/_assets/{eth_estimateGas-B5pkxuK_.js → eth_estimateGas-ByaJEeM-.js} +2 -2
  69. package/_assets/{eth_getStorageAt-Ul7S8omu.js → eth_getStorageAt-CfRtAGD-.js} +2 -2
  70. package/_assets/{eth_getTransactionCount-Dl7Ov2Cl.js → eth_getTransactionCount-DCx1pf2k.js} +2 -2
  71. package/_assets/{ethereum-g04fXUao.js → ethereum-BgVZC6F_.js} +2 -2
  72. package/_assets/{ethers-BA7ZTT54.js → ethers-DwK2TdL6.js} +2 -2
  73. package/_assets/{events-BRECf16L.js → events-CSIN-_05.js} +2 -2
  74. package/_assets/{execute-B-ay9A5C.js → execute-wmZZdldV.js} +3 -3
  75. package/_assets/{extractIPFS-CWCp6jSq.js → extractIPFS-BS6I288E.js} +2 -2
  76. package/_assets/{features-CB7gN6Sg.js → features-DimRp-1s.js} +2 -2
  77. package/_assets/{fetchTokenMetadata-DeBbwd4m.js → fetchTokenMetadata-DZy_tSZt.js} +3 -3
  78. package/_assets/{field.styles-C0FoyZ2R.js → field.styles-6_NAJBdz.js} +2 -2
  79. package/_assets/{fortmatic-rGpLSnw0.js → fortmatic-D-iEWKOV.js} +2 -2
  80. package/_assets/{get-bytecode-BkTv5uSc.js → get-bytecode-We_Yud0L.js} +2 -2
  81. package/_assets/{get-ecosystem-wallet-info-BG7DCO4g.js → get-ecosystem-wallet-info-CZ2Y-cLY.js} +2 -2
  82. package/_assets/{getBalance-BeOhUTck.js → getBalance-SeTBLCzL.js} +3 -3
  83. package/_assets/{getInstalledModules-BixxOaoG.js → getInstalledModules-Dj-K4xQC.js} +2 -2
  84. package/_assets/{getNFT-DXbaZraF.js → getNFT-BCYWBTK4.js} +3 -3
  85. package/_assets/{getNFT-mp48RNTY.js → getNFT-BiPo4cEC.js} +2 -2
  86. package/_assets/{grid.styles-Doypo46e.js → grid.styles-DlGaOCzf.js} +2 -2
  87. package/_assets/{hashTypedData-CoPfbJ-D.js → hashTypedData-Dr6t3Q-D.js} +2 -2
  88. package/_assets/{hashTypedData-DeIwBBiZ.js → hashTypedData-OCiZaYsv.js} +2 -2
  89. package/_assets/{in-app-BsPFsST1.js → in-app-CVvPAYT7.js} +2 -2
  90. package/_assets/{in-app-wallet-calls-Bz7ThoTV.js → in-app-wallet-calls-ChA73nJF.js} +2 -2
  91. package/_assets/{index-BxqscGvQ.js → index-2aK4zhJE.js} +2 -2
  92. package/_assets/{index-ChdaON3O.js → index-ARGrbe3A.js} +3 -3
  93. package/_assets/{index-CREZjV94.js → index-Axq2dKdE.js} +2 -2
  94. package/_assets/{index-PceOzflo.js → index-B0OkSRGZ.js} +2 -2
  95. package/_assets/{index-DLUcOQEm.js → index-B1wSCmue.js} +2 -2
  96. package/_assets/{index-DjQJ1xGp.js → index-B2uxq6bU.js} +5 -5
  97. package/_assets/{index-85FECtLA.js → index-B3Ji4DRo.js} +2 -2
  98. package/_assets/{index-BBY3ggeb.js → index-B9Up_SK0.js} +2 -2
  99. package/_assets/{index-3K3buyeU.js → index-BACBbqlk.js} +2 -2
  100. package/_assets/{index-Bt33TKCa.js → index-BDJuqgxU.js} +2 -2
  101. package/_assets/{index-DqDHdzXY.js → index-BHbHN01N.js} +2 -2
  102. package/_assets/{index-Cwi_heBy.js → index-BJA_2Ynv.js} +2 -2
  103. package/_assets/{index-CIiQL_f9.js → index-BPQVwfa5.js} +6 -6
  104. package/_assets/{index-CRVtr63c.js → index-BPinodm9.js} +2 -2
  105. package/_assets/{index-BdZRVm6Y.js → index-BWEvNyOP.js} +2 -2
  106. package/_assets/{index-DNG82XKr.js → index-BiAbz-7Q.js} +2 -2
  107. package/_assets/{index-BiRk5UxC.js → index-BjdjqJv4.js} +4 -4
  108. package/_assets/{index-DS0u3xl-.js → index-BlorBoCd.js} +2 -2
  109. package/_assets/{index-CFNczH-R.js → index-C3LVhWuY.js} +2 -2
  110. package/_assets/{index-2UtGBVDu.js → index-CATjpM0W.js} +2 -2
  111. package/_assets/{index-BLnRwXHe.js → index-CFGlj3ri.js} +2 -2
  112. package/_assets/{index-CpbLUzmL.js → index-CGdQ1CYx.js} +3 -3
  113. package/_assets/{index-AOLKZdln.js → index-CK4WqWqO.js} +2 -2
  114. package/_assets/{index-BUlT2QB-.js → index-CO9qakt0.js} +2 -2
  115. package/_assets/{index-CNsoIfsY.js → index-CQvLWK26.js} +2 -2
  116. package/_assets/{index-B893JDuB.js → index-CS1VnyR1.js} +2 -2
  117. package/_assets/{index-DnBTvkVn.js → index-CUa90VgH.js} +2 -2
  118. package/_assets/{index-C76co-HV.js → index-CWThS2BY.js} +2 -2
  119. package/_assets/{index-PRMk8y0t.js → index-CY38y8q8.js} +2 -2
  120. package/_assets/{index-BmW6Zhjy.js → index-CbMw0H1W.js} +3 -3
  121. package/_assets/{index-CXJ0bfC5.js → index-ChNIU-k1.js} +3 -3
  122. package/_assets/{index-DRNX2SEX.js → index-Cj5zg5gT.js} +2 -2
  123. package/_assets/{index-CLWReNYE.js → index-CmcTFc5W.js} +4 -4
  124. package/_assets/{index-C6dRQQpl.js → index-CmcvBNcU.js} +2 -2
  125. package/_assets/{index-DLfJozhT.js → index-Cst1nEOO.js} +2 -2
  126. package/_assets/{index-C_mUv-p9.js → index-Ct9dUkSX.js} +2 -2
  127. package/_assets/{index-D5xkUhrb.js → index-CtayMM8a.js} +4 -4
  128. package/_assets/{index-Cs94-quB.js → index-D0Wlf6gr.js} +2 -2
  129. package/_assets/{index-C2nXm9aO.js → index-D0q045Px.js} +2 -2
  130. package/_assets/{index-BVCOrh3Q.js → index-D1jUYM4a.js} +2 -2
  131. package/_assets/{index-DwtftUx_.js → index-D2CYJ9zD.js} +2 -2
  132. package/_assets/{index-BpIJGSuO.js → index-D7_zDlZP.js} +2 -2
  133. package/_assets/{index-fbx8PM_m.js → index-D8QWWYMI.js} +2 -2
  134. package/_assets/{index-KjrGqfAt.js → index-DAqd6v3r.js} +2 -2
  135. package/_assets/{index-DN3as3PW.js → index-DCE7JXu8.js} +2 -2
  136. package/_assets/{index-D8x2J-o2.js → index-DGUzkX-I.js} +2 -2
  137. package/_assets/{index-Cb3tDbjG.js → index-DGwAzxg5.js} +2 -2
  138. package/_assets/{index-rdyqHqfR.js → index-DJXUib_8.js} +2 -2
  139. package/_assets/{index-Cm8ZnYHZ.js → index-DKiFTtAe.js} +3 -3
  140. package/_assets/{index-DeBF-qj4.js → index-DLKAGp7r.js} +2 -2
  141. package/_assets/{index-C4FaG00q.js → index-DRR34LYo.js} +2 -2
  142. package/_assets/{index-wc2iYkc6.js → index-DZcNiUa1.js} +2 -2
  143. package/_assets/{index-DhJFbMVl.js → index-DejzmYQv.js} +2 -2
  144. package/_assets/{index-CmH0A2xY.js → index-DibFNBla.js} +2 -2
  145. package/_assets/{index-BtGAD3gO.js → index-Dn8vBHwo.js} +2 -2
  146. package/_assets/{index-BwViOPuY.js → index-Dxe6AOQE.js} +2 -2
  147. package/_assets/{index-TuH_d7qI.js → index-G5AacsmF.js} +2 -2
  148. package/_assets/{index-BZixCwgP.js → index-MZXf7D1W.js} +2 -2
  149. package/_assets/{index-L35voi2C.js → index-_-VFmxzj.js} +2 -2
  150. package/_assets/{index-BlOA-94t.js → index-bJXcZSYa.js} +20 -20
  151. package/_assets/{index-DTYwbs7g.js → index-ficvqfHi.js} +6 -6
  152. package/_assets/{index-D-15_LMu.js → index-gAex9EE8.js} +2 -2
  153. package/_assets/{index-bc99k6J3.js → index-gm_D0aNI.js} +2 -2
  154. package/_assets/{index-Bzs2eVu0.js → index-n4qOUE64.js} +2 -2
  155. package/_assets/{index-DZ5KEWen.js → index-nQ3hptXe.js} +2 -2
  156. package/_assets/{index-CbxL-2JJ.js → index-ncctYqB-.js} +2 -2
  157. package/_assets/{index-CXuuiipa.js → index-zkaZwO7E.js} +2 -2
  158. package/_assets/{index.es-BqS31LRq.js → index.es-4xrWWZcO.js} +2 -2
  159. package/_assets/{index.es-Bu4ZguLp.js → index.es-CstVHWlV.js} +5 -5
  160. package/_assets/{index.es-CVt7eMu1.js → index.es-DYbPPtM5.js} +2 -2
  161. package/_assets/{index.es-BdKOHRKL.js → index.es-DzLQ6Fnb.js} +2 -2
  162. package/_assets/items-empty-CpzVwMne.js +2 -0
  163. package/_assets/{jump-Cyuu9UAz.js → jump-CVtY0iTz.js} +2 -2
  164. package/_assets/{linkAccount-Cal7UFzc.js → linkAccount-6NTQv8aT.js} +2 -2
  165. package/_assets/{localBatchGatewayRequest-DVc5u95X.js → localBatchGatewayRequest-Dks7VfkN.js} +2 -2
  166. package/_assets/{native-YaWdzJM0.js → native-CXAGKkI7.js} +2 -2
  167. package/_assets/{networks-CqXF1VU1.js → networks-DtT18tMT.js} +2 -2
  168. package/_assets/{onramp-TCumHCku.js → onramp-CUVL5AKN.js} +2 -2
  169. package/_assets/{openzeppelin-DXF0SdsM.js → openzeppelin-C6HmSX5F.js} +2 -2
  170. package/_assets/{ownerOf-BWIg-etT.js → ownerOf-iHeO-A0L.js} +2 -2
  171. package/_assets/{parseNft-DECJzAwj.js → parseNft-_qkiBgGY.js} +3 -3
  172. package/_assets/{parseSignature-BTGduonN.js → parseSignature-DCX2Homx.js} +4 -4
  173. package/_assets/{parseSignature-BgOghd1P.js → parseSignature-DpYJxwtD.js} +2 -2
  174. package/_assets/{passkeys-DWGAZJrf.js → passkeys-CaDDwDfa.js} +2 -2
  175. package/_assets/{pay-with-exchange-B0fKTAXz.js → pay-with-exchange-mjjMFDoB.js} +2 -2
  176. package/_assets/{prepare-contract-call-BgQC6mTC.js → prepare-contract-call-B3PEXjk8.js} +2 -2
  177. package/_assets/{qr-overlay-eac9AYVv.js → qr-overlay-Dte-FwLF.js} +4 -4
  178. package/_assets/{react-DOj4UJHT.js → react-Io5Wove7.js} +2 -2
  179. package/_assets/{receive-CUFLNL-o.js → receive-BOylnCCD.js} +2 -2
  180. package/_assets/{resolveImplementation-B9smdfBM.js → resolveImplementation-eqKe_Jd_.js} +2 -2
  181. package/_assets/{resume-buy-D54QfKEK.js → resume-buy-l-MsHDN-.js} +2 -2
  182. package/_assets/{rpc-CkVMCqRn.js → rpc-Bd3ag8E4.js} +2 -2
  183. package/_assets/{sales-empty-DrhG7Z4K.js → sales-empty-71lDTBeo.js} +2 -2
  184. package/_assets/{search-empty-DO0VRCJA.js → search-empty-C2pIWVz4.js} +2 -2
  185. package/_assets/{secp256k1-D8M8lNWK.js → secp256k1-BCTY01q6.js} +2 -2
  186. package/_assets/{secp256k1-CE7Phmmv.js → secp256k1-ChjjZr2n.js} +2 -2
  187. package/_assets/{secp256k1-Xu7PeIuc.js → secp256k1-D89skxyt.js} +2 -2
  188. package/_assets/{send-8lLf7iyl.js → send-BoRH3tdn.js} +2 -2
  189. package/_assets/{send-batch-transaction-D7ab40Au.js → send-batch-transaction-qs3ijcbz.js} +2 -2
  190. package/_assets/{send-eip712-transaction-Dn_Oym_O.js → send-eip712-transaction-BLU365vg.js} +3 -3
  191. package/_assets/{send-gasless-transaction-F-fvjyVg.js → send-gasless-transaction-COE6PePF.js} +3 -3
  192. package/_assets/{send-transaction-DpZdhs2G.js → send-transaction-DWia223-.js} +3 -3
  193. package/_assets/{sendMetaTransaction-B15KZbsk.js → sendMetaTransaction-Bnb1e1Oo.js} +2 -2
  194. package/_assets/{sendRawTransaction-CtBea2zd.js → sendRawTransaction-QUpRtv1T.js} +4 -4
  195. package/_assets/{sentry-CkiT7C1x.js → sentry-faeuEJiQ.js} +3 -3
  196. package/_assets/{serializeTransaction-DIGvmm0B.js → serializeTransaction-Bzap5VIj.js} +2 -2
  197. package/_assets/{session-proposal-BXR7NOzi.js → session-proposal-BRPQA6_F.js} +2 -2
  198. package/_assets/{session-request-DOQbO6np.js → session-request-DE3BfIwL.js} +3 -3
  199. package/_assets/{sha256-B0gyy1xC.js → sha256-my9t8oLg.js} +2 -2
  200. package/_assets/{signing-B_1AfR6x.js → signing-BKRnKKdl.js} +4 -4
  201. package/_assets/{skeleton.styles-DrXjwwMe.js → skeleton.styles-Cjpy58bn.js} +2 -2
  202. package/_assets/{socials-XoXaEdB8.js → socials-CHs46oCs.js} +2 -2
  203. package/_assets/{styled-BteDo7fy.js → styled-3e6FPpFM.js} +3 -3
  204. package/_assets/{swaps-DDc1yz78.js → swaps-BQAfj8hR.js} +2 -2
  205. package/_assets/{thirdweb-BCgJ7c--.js → thirdweb-I3ycy-sq.js} +4 -4
  206. package/_assets/{to-serializable-transaction-Czix9FKM.js → to-serializable-transaction-D4JXNF6K.js} +3 -3
  207. package/_assets/{totalSupply-DY_hSQJc.js → totalSupply-RRjcgrsd.js} +2 -2
  208. package/_assets/{transaction-BQmD5CMJ.js → transaction-CpNDZT6H.js} +2 -2
  209. package/_assets/{transactionReceipt-BIgZypva.js → transactionReceipt-BsGymDgp.js} +2 -2
  210. package/_assets/{transactions-BlMrKP9y.js → transactions-ZyGjrTz1.js} +2 -2
  211. package/_assets/useCreditPacks-RKaHRtDl.js +2 -0
  212. package/_assets/{useInfiniteGrid-707xrsT5.js → useInfiniteGrid-CKUOL3of.js} +2 -2
  213. package/_assets/{useStore-BrS1Ms0T.js → useStore-zwLaMv5E.js} +3 -3
  214. package/_assets/{useTheme-CM9t9Vcd.js → useTheme-6lXtg_We.js} +2 -2
  215. package/_assets/{utils-C7q7WeXn.js → utils-DmCacC3Z.js} +2 -2
  216. package/_assets/{verifyHash-DG4f2XhO.js → verifyHash-BnLy1LQ8.js} +2 -2
  217. package/_assets/{w3m-modal-D8P7ZpDy.js → w3m-modal-CqeYEpsp.js} +2 -2
  218. package/_assets/{w3m-modal-C-YFbDIs.js → w3m-modal-igkHA2Yg.js} +2 -2
  219. package/_assets/{wait-for-tx-receipt-DV0g0Kdm.js → wait-for-tx-receipt-BBZ5JG62.js} +2 -2
  220. package/_assets/{wallets-CuuqFp5a.js → wallets-BUa02PiV.js} +6 -6
  221. package/_assets/{web-connector-CbuY-F96.js → web-connector-C7j-Aqf_.js} +4 -4
  222. package/_assets/{writeContract-DIZ4NhOf.js → writeContract-DUS_4K4j.js} +2 -2
  223. package/_assets/{zora-sepolia-B63_uss2.js → zora-sepolia-CDPQd0aL.js} +2 -2
  224. package/_assets/{zoraTestnet-DJDQzMC5.js → zoraTestnet-DzzH_a_k.js} +2 -2
  225. package/index.html +11 -11
  226. package/package.json +2 -2
  227. package/_assets/Cart-D_lx8T89.js +0 -748
  228. package/_assets/buy-CCaqizyX.js +0 -2
  229. package/_assets/items-empty-Dnc0HIr5.js +0 -2
  230. package/_assets/useCreditPacks-Gcwklo7-.js +0 -2
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/in-app-wallet-calls-Bz7ThoTV.js","_assets/wait-for-tx-receipt-DV0g0Kdm.js","_assets/transactionReceipt-BIgZypva.js","_assets/prepare-contract-call-BgQC6mTC.js","_assets/utils-C7q7WeXn.js","_assets/sentry-CkiT7C1x.js","_assets/react-DOj4UJHT.js","_assets/to-serializable-transaction-Czix9FKM.js","_assets/index-BlOA-94t.js","_assets/dcl-schemas-BSiFmgyu.js","_assets/ethers-BA7ZTT54.js","_assets/intl-AKLEHPeO.js","_assets/index-CKGO8NWe.css","_assets/transaction-BQmD5CMJ.js","_assets/sleep-fBr8OToA.js","_assets/send-batch-transaction-D7ab40Au.js","_assets/send-transaction-DpZdhs2G.js","_assets/execute-B-ay9A5C.js","_assets/detectExtension-DKYQbYLq.js","_assets/eth_getTransactionCount-Dl7Ov2Cl.js","_assets/index-Cm8ZnYHZ.js","_assets/signing-B_1AfR6x.js","_assets/get-bytecode-BkTv5uSc.js","_assets/send-eip712-transaction-Dn_Oym_O.js","_assets/eth_sendRawTransaction-DYAsy3sS.js","_assets/sha256-B0gyy1xC.js","_assets/linkAccount-Cal7UFzc.js","_assets/wallets-CuuqFp5a.js","_assets/store-80QKZ2rN.js","_assets/hashTypedData-DeIwBBiZ.js","_assets/index-ChdaON3O.js","_assets/events-BRECf16L.js","_assets/index-CNsoIfsY.js","_assets/index-DRNX2SEX.js","_assets/index-OpYIGLSa.js","_assets/index-DLfJozhT.js","_assets/index-DN3as3PW.js","_assets/ethereum-g04fXUao.js","_assets/types-BeDU9GfL.js"])))=>i.map(i=>d[i]);
2
- import{_ as b}from"./index-BlOA-94t.js";import{e as R}from"./ethereum-g04fXUao.js";import{s as M}from"./types-BeDU9GfL.js";import{f as D,e as I,a as v,w as B}from"./utils-C7q7WeXn.js";import{p as W,g as V}from"./get-bytecode-BkTv5uSc.js";import{b as F,g as H,t as O}from"./to-serializable-transaction-Czix9FKM.js";import{r as $,e as N}from"./execute-B-ay9A5C.js";import{g as f,a4 as _,f as k,T as z,s as g,h as y,c as j}from"./prepare-contract-call-BgQC6mTC.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="b71776ec-0a1a-452c-806b-78b987d02e7b",t._sentryDebugIdIdentifier="sentry-dbid-b71776ec-0a1a-452c-806b-78b987d02e7b")}catch{}})();const Ae="0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c",q="0x85e23b94e7F5E9cC1fF78BCe78cfb15B81f0DF00",Y="0x4be0ddfebca9a5a4a617dee4dece99e7c862dceb",w="0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",Z="0x0000000071727De22E5E9d8BAf0edAc6f37da032",K=50000n,Ce=t=>J(t||w)==="v0.7"?Y:q,E=t=>{const e=D().bundler;return e.startsWith("localhost:")?`http://${e}/v2?chain=${t.id}`:`https://${t.id}.${e}/v2`},J=t=>{const e=f(t);if(e===w)return"v0.6";if(e===Z)return"v0.7";throw new Error("Unknown paymaster version")};function Q(t={}){return _({filters:t,signature:"event UserOperationRevertReason(bytes32 indexed userOpHash, address indexed sender, uint256 nonce, bytes revertReason)"})}function X(t={}){return _({filters:t,signature:"event PostOpRevertReason(bytes32 indexed userOpHash, address indexed sender, uint256 nonce, bytes revertReason)"})}function ee(t){const{receipt:e}=t,n={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs,status:e.status,to:e.to?e.to:null,transactionHash:e.transactionHash,transactionIndex:e.transactionIndex,type:e.type};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),{...t,actualGasCost:BigInt(t.actualGasCost),actualGasUsed:BigInt(t.actualGasUsed),nonce:BigInt(t.nonce),receipt:n,userOpHash:t.userOpHash}}const xe=()=>{const t=BigInt(Math.floor(Math.random()*4294967296)),e=BigInt(Math.floor(Math.random()*4294967296)),n=BigInt(Math.floor(Math.random()*4294967296)),r=BigInt(Math.floor(Math.random()*4294967296)),o=BigInt(Math.floor(Math.random()*4294967296)),p=BigInt(Math.floor(Math.random()*4294967296));return t<<BigInt(160)|e<<BigInt(128)|n<<BigInt(96)|r<<BigInt(64)|o<<BigInt(32)|p};function U(t){return Object.fromEntries(Object.entries(t).map(([e,n])=>[e,n==null||k(n)?n:z(n)]))}async function Ie(t){return d({...t,operation:"eth_sendUserOperation",params:[U(t.userOp),t.options.entrypointAddress??w]})}async function _e(t,e){const n=await d({...t,operation:"eth_estimateUserOperationGas",params:[U(t.userOp),t.options.entrypointAddress??w,e??{}]});return{callGasLimit:y(n.callGasLimit)+K,paymasterPostOpGasLimit:n.paymasterPostOpGasLimit!==void 0?y(n.paymasterPostOpGasLimit):void 0,paymasterVerificationGasLimit:n.paymasterVerificationGasLimit!==void 0?y(n.paymasterVerificationGasLimit):void 0,preVerificationGas:y(n.preVerificationGas),verificationGas:n.verificationGas!==void 0?y(n.verificationGas):void 0,verificationGasLimit:y(n.verificationGasLimit)}}async function Ee(t){const e=await d({...t,operation:"thirdweb_getUserOperationGasPrice",params:[]});return{maxFeePerGas:y(e.maxFeePerGas),maxPriorityFeePerGas:y(e.maxPriorityFeePerGas)}}async function Ue(t){var n,r;const e=await te(t);if(e){if(e.success===!1){const p=(r=(n=W({events:[Q(),X()],logs:e.logs})[0])==null?void 0:n.args)==null?void 0:r.revertReason;if(!p)throw new Error(`UserOp failed at txHash: ${e.receipt.transactionHash}`);const a=F({data:p});throw new Error(`UserOp failed with reason: '${a.args.join(",")}' at txHash: ${e.receipt.transactionHash}`)}return e.receipt}}async function te(t){const e=await d({operation:"eth_getUserOperationReceipt",options:t,params:[t.userOpHash]});if(e)return ee(e)}async function Pe(t){const e=await d({operation:"zk_paymasterData",options:t.options,params:[t.transaction]});return{paymaster:e.paymaster,paymasterInput:e.paymasterInput}}async function ne(t){const e=await d({...t,operation:"tw_execute",params:[t.eoaAddress,t.wrappedCalls,t.signature,t.authorization]});if(!e.queueId)throw new Error(`Error executing 7702 transaction: ${g(e)}`);return{transactionId:e.queueId}}async function ae(t){return{transactionHash:(await d({...t,operation:"tw_getTransactionHash",params:[t.transactionId]})).transactionHash}}async function Ge(t){return{transactionHash:(await d({operation:"zk_broadcastTransaction",options:t.options,params:[{...t.transaction,signedTransaction:t.signedTransaction}]})).transactionHash}}async function d(t){const{options:e,operation:n,params:r}=t,o=e.bundlerUrl??E(e.chain),a=await I(e.client)(o,{useAuthToken:!0,body:g({id:1,jsonrpc:"2.0",method:n,params:r}),headers:{"Content-Type":"application/json"},method:"POST"}),i=await a.json();if(!a.ok||i.error){let s=i.error||a.statusText;typeof s=="object"&&(s=g(s));const u=i.code||"UNKNOWN";throw new Error(`${n} error: ${s}
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/in-app-wallet-calls-ChA73nJF.js","_assets/wait-for-tx-receipt-BBZ5JG62.js","_assets/transactionReceipt-BsGymDgp.js","_assets/prepare-contract-call-B3PEXjk8.js","_assets/utils-DmCacC3Z.js","_assets/sentry-faeuEJiQ.js","_assets/react-Io5Wove7.js","_assets/to-serializable-transaction-D4JXNF6K.js","_assets/index-bJXcZSYa.js","_assets/dcl-schemas-OH8G4Ndl.js","_assets/ethers-DwK2TdL6.js","_assets/intl-AKLEHPeO.js","_assets/index-CKGO8NWe.css","_assets/transaction-CpNDZT6H.js","_assets/sleep-fBr8OToA.js","_assets/send-batch-transaction-qs3ijcbz.js","_assets/send-transaction-DWia223-.js","_assets/execute-wmZZdldV.js","_assets/detectExtension-GZk2y11b.js","_assets/eth_getTransactionCount-DCx1pf2k.js","_assets/index-DKiFTtAe.js","_assets/signing-BKRnKKdl.js","_assets/get-bytecode-We_Yud0L.js","_assets/send-eip712-transaction-BLU365vg.js","_assets/eth_sendRawTransaction-DYAsy3sS.js","_assets/sha256-my9t8oLg.js","_assets/linkAccount-6NTQv8aT.js","_assets/wallets-BUa02PiV.js","_assets/store-80QKZ2rN.js","_assets/hashTypedData-OCiZaYsv.js","_assets/index-ARGrbe3A.js","_assets/events-CSIN-_05.js","_assets/index-CQvLWK26.js","_assets/index-Cj5zg5gT.js","_assets/index-OpYIGLSa.js","_assets/index-Cst1nEOO.js","_assets/index-DCE7JXu8.js","_assets/ethereum-BgVZC6F_.js","_assets/types-BeDU9GfL.js"])))=>i.map(i=>d[i]);
2
+ import{_ as b}from"./index-bJXcZSYa.js";import{e as R}from"./ethereum-BgVZC6F_.js";import{s as M}from"./types-BeDU9GfL.js";import{f as D,e as I,a as v,w as B}from"./utils-DmCacC3Z.js";import{p as W,g as V}from"./get-bytecode-We_Yud0L.js";import{b as F,g as H,t as O}from"./to-serializable-transaction-D4JXNF6K.js";import{r as $,e as N}from"./execute-wmZZdldV.js";import{g as f,a4 as _,f as k,T as z,s as g,h as y,c as j}from"./prepare-contract-call-B3PEXjk8.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="b71776ec-0a1a-452c-806b-78b987d02e7b",t._sentryDebugIdIdentifier="sentry-dbid-b71776ec-0a1a-452c-806b-78b987d02e7b")}catch{}})();const Ae="0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c",q="0x85e23b94e7F5E9cC1fF78BCe78cfb15B81f0DF00",Y="0x4be0ddfebca9a5a4a617dee4dece99e7c862dceb",w="0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",Z="0x0000000071727De22E5E9d8BAf0edAc6f37da032",K=50000n,Ce=t=>J(t||w)==="v0.7"?Y:q,E=t=>{const e=D().bundler;return e.startsWith("localhost:")?`http://${e}/v2?chain=${t.id}`:`https://${t.id}.${e}/v2`},J=t=>{const e=f(t);if(e===w)return"v0.6";if(e===Z)return"v0.7";throw new Error("Unknown paymaster version")};function Q(t={}){return _({filters:t,signature:"event UserOperationRevertReason(bytes32 indexed userOpHash, address indexed sender, uint256 nonce, bytes revertReason)"})}function X(t={}){return _({filters:t,signature:"event PostOpRevertReason(bytes32 indexed userOpHash, address indexed sender, uint256 nonce, bytes revertReason)"})}function ee(t){const{receipt:e}=t,n={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs,status:e.status,to:e.to?e.to:null,transactionHash:e.transactionHash,transactionIndex:e.transactionIndex,type:e.type};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),{...t,actualGasCost:BigInt(t.actualGasCost),actualGasUsed:BigInt(t.actualGasUsed),nonce:BigInt(t.nonce),receipt:n,userOpHash:t.userOpHash}}const xe=()=>{const t=BigInt(Math.floor(Math.random()*4294967296)),e=BigInt(Math.floor(Math.random()*4294967296)),n=BigInt(Math.floor(Math.random()*4294967296)),r=BigInt(Math.floor(Math.random()*4294967296)),o=BigInt(Math.floor(Math.random()*4294967296)),p=BigInt(Math.floor(Math.random()*4294967296));return t<<BigInt(160)|e<<BigInt(128)|n<<BigInt(96)|r<<BigInt(64)|o<<BigInt(32)|p};function U(t){return Object.fromEntries(Object.entries(t).map(([e,n])=>[e,n==null||k(n)?n:z(n)]))}async function Ie(t){return d({...t,operation:"eth_sendUserOperation",params:[U(t.userOp),t.options.entrypointAddress??w]})}async function _e(t,e){const n=await d({...t,operation:"eth_estimateUserOperationGas",params:[U(t.userOp),t.options.entrypointAddress??w,e??{}]});return{callGasLimit:y(n.callGasLimit)+K,paymasterPostOpGasLimit:n.paymasterPostOpGasLimit!==void 0?y(n.paymasterPostOpGasLimit):void 0,paymasterVerificationGasLimit:n.paymasterVerificationGasLimit!==void 0?y(n.paymasterVerificationGasLimit):void 0,preVerificationGas:y(n.preVerificationGas),verificationGas:n.verificationGas!==void 0?y(n.verificationGas):void 0,verificationGasLimit:y(n.verificationGasLimit)}}async function Ee(t){const e=await d({...t,operation:"thirdweb_getUserOperationGasPrice",params:[]});return{maxFeePerGas:y(e.maxFeePerGas),maxPriorityFeePerGas:y(e.maxPriorityFeePerGas)}}async function Ue(t){var n,r;const e=await te(t);if(e){if(e.success===!1){const p=(r=(n=W({events:[Q(),X()],logs:e.logs})[0])==null?void 0:n.args)==null?void 0:r.revertReason;if(!p)throw new Error(`UserOp failed at txHash: ${e.receipt.transactionHash}`);const a=F({data:p});throw new Error(`UserOp failed with reason: '${a.args.join(",")}' at txHash: ${e.receipt.transactionHash}`)}return e.receipt}}async function te(t){const e=await d({operation:"eth_getUserOperationReceipt",options:t,params:[t.userOpHash]});if(e)return ee(e)}async function Pe(t){const e=await d({operation:"zk_paymasterData",options:t.options,params:[t.transaction]});return{paymaster:e.paymaster,paymasterInput:e.paymasterInput}}async function ne(t){const e=await d({...t,operation:"tw_execute",params:[t.eoaAddress,t.wrappedCalls,t.signature,t.authorization]});if(!e.queueId)throw new Error(`Error executing 7702 transaction: ${g(e)}`);return{transactionId:e.queueId}}async function ae(t){return{transactionHash:(await d({...t,operation:"tw_getTransactionHash",params:[t.transactionId]})).transactionHash}}async function Ge(t){return{transactionHash:(await d({operation:"zk_broadcastTransaction",options:t.options,params:[{...t.transaction,signedTransaction:t.signedTransaction}]})).transactionHash}}async function d(t){const{options:e,operation:n,params:r}=t,o=e.bundlerUrl??E(e.chain),a=await I(e.client)(o,{useAuthToken:!0,body:g({id:1,jsonrpc:"2.0",method:n,params:r}),headers:{"Content-Type":"application/json"},method:"POST"}),i=await a.json();if(!a.ok||i.error){let s=i.error||a.statusText;typeof s=="object"&&(s=g(s));const u=i.code||"UNKNOWN";throw new Error(`${n} error: ${s}
3
3
  Status: ${a.status}
4
- Code: ${u}`)}return i.result}async function ie(t){const{client:e,chain:n,bundlerUrl:r}=t,o=r??E(n),p=`delegation-contract:${o}`;return B(async()=>{var u;const i=await I(e)(o,{useAuthToken:!0,body:g({id:1,jsonrpc:"2.0",method:"tw_getDelegationContract",params:[]}),headers:{"Content-Type":"application/json"},method:"POST"});if(!i.ok)throw new Error(`Failed to fetch delegation contract: ${i.status} ${i.statusText}`);const s=await i.json();if(s.error)throw new Error(`Delegation contract RPC error: ${JSON.stringify(s.error)}`);if(!((u=s.result)!=null&&u.delegationContract))throw new Error("Invalid response: missing delegationContract in result");return s.result.delegationContract},{cacheKey:p,cacheTime:1440*60*1e3})}const se=t=>{const{client:e,adminAccount:n,sponsorGas:r}=t,o=async a=>{var A,C,x;const i=a[0];if(!i)throw new Error("No transactions provided");const s=v(i.chainId),u=H({address:n.address,chain:s,client:e,abi:ue});let c=(A=i.authorizationList)==null?void 0:A[0];const m=await ie({client:e,chain:s});if(c&&((C=c.address)==null?void 0:C.toLowerCase())!==m.toLowerCase())throw new Error(`Authorization address does not match expected delegation contract address. Expected ${m} but got ${c.address}`);if(!c&&!await oe(u,m)){let T=i.nonce?BigInt(i.nonce):BigInt(await re({client:e,address:n.address,chain:s}));T+=r?0n:1n;const h=await((x=n.signAuthorization)==null?void 0:x.call(n,{address:f(m),chainId:i.chainId,nonce:T}));if(!h)throw new Error("Failed to sign authorization");c=h}if(r){const l={calls:a.map(L=>({data:L.data??"0x",target:f(L.to??""),value:L.value??0n})),uid:$()},T=await n.signTypedData({domain:{chainId:i.chainId,name:"MinimalAccount",verifyingContract:u.address,version:"1"},message:l,primaryType:"WrappedCalls",types:{Call:[{name:"target",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"}],WrappedCalls:[{name:"calls",type:"Call[]"},{name:"uid",type:"bytes32"}]}}),h=await ne({authorization:c,eoaAddress:f(n.address),options:{chain:v(i.chainId),client:e},signature:T,wrappedCalls:l});return{transactionHash:await pe({options:{chain:v(i.chainId),client:e},transactionId:h.transactionId})}}const S=N({calls:a.map(l=>({data:l.data??"0x",target:f(l.to??""),value:l.value??0n})),contract:u,overrides:{authorizationList:c?[c]:void 0,value:a.reduce((l,T)=>l+(T.value??0n),0n)}}),G=await O({from:n.address,transaction:S});return n.sendTransaction(G)},p={address:n.address,sendBatchTransaction:async a=>o(a),sendTransaction:async a=>o([a]),signMessage:({message:a,originalMessage:i,chainId:s})=>n.signMessage({chainId:s,message:a,originalMessage:i}),signTypedData:a=>n.signTypedData(a),sendCalls:async a=>{const{inAppWalletSendCalls:i}=await b(async()=>{const{inAppWalletSendCalls:S}=await import("./in-app-wallet-calls-Bz7ThoTV.js");return{inAppWalletSendCalls:S}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18])),s=a.calls[0];if(!s)throw new Error("No calls to send");const u=s.client,c=s.chain||a.chain,m=await i({account:p,calls:a.calls,chain:c});return{chain:c,client:u,id:m}},getCallsStatus:async a=>{const{inAppWalletGetCallsStatus:i}=await b(async()=>{const{inAppWalletGetCallsStatus:s}=await import("./in-app-wallet-calls-Bz7ThoTV.js");return{inAppWalletGetCallsStatus:s}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]));return i(a)},getCallsStatusRaw:async a=>{const{inAppWalletGetCallsStatusRaw:i}=await b(async()=>{const{inAppWalletGetCallsStatusRaw:s}=await import("./in-app-wallet-calls-Bz7ThoTV.js");return{inAppWalletGetCallsStatusRaw:s}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]));return i(a)},getCapabilities:async a=>({[a.chainId??1]:{atomic:{status:"supported"},paymasterService:{supported:r??!1}}})};return p};async function re(t){const{client:e,address:n,chain:r}=t,o=j({chain:r,client:e});return await b(async()=>{const{eth_getTransactionCount:a}=await import("./eth_getTransactionCount-Dl7Ov2Cl.js");return{eth_getTransactionCount:a}},__vite__mapDeps([19,3,4,5,6])).then(({eth_getTransactionCount:a})=>a(o,{address:f(n),blockTag:"pending"}))}async function oe(t,e){const n=await V(t),r=n.length>0&&n.startsWith("0xef0100"),o=`0x${n.slice(8,48)}`;return r&&o.toLowerCase()===e.toLowerCase()}async function pe(t){const e=t.timeoutMs||3e5,n=t.intervalMs||1e3,r=Date.now()+e;for(;Date.now()<r;){const o=await ae({options:t.options,transactionId:t.transactionId});if(o.transactionHash)return o.transactionHash;await new Promise(p=>setTimeout(p,n))}throw new Error(`Timeout waiting for transaction to be mined on chain ${t.options.chain.id} with transactionId: ${t.transactionId}`)}const ue=[{type:"receive",stateMutability:"payable"},{type:"function",name:"createSessionWithSig",inputs:[{name:"sessionSpec",type:"tuple",internalType:"struct SessionLib.SessionSpec",components:[{name:"signer",type:"address",internalType:"address"},{name:"isWildcard",type:"bool",internalType:"bool"},{name:"expiresAt",type:"uint256",internalType:"uint256"},{name:"callPolicies",type:"tuple[]",internalType:"struct SessionLib.CallSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]},{name:"constraints",type:"tuple[]",internalType:"struct SessionLib.Constraint[]",components:[{name:"condition",type:"uint8",internalType:"enum SessionLib.Condition"},{name:"index",type:"uint64",internalType:"uint64"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"limit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}]},{name:"transferPolicies",type:"tuple[]",internalType:"struct SessionLib.TransferSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]},{name:"uid",type:"bytes32",internalType:"bytes32"}]},{name:"signature",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"eip712Domain",inputs:[],outputs:[{name:"fields",type:"bytes1",internalType:"bytes1"},{name:"name",type:"string",internalType:"string"},{name:"version",type:"string",internalType:"string"},{name:"chainId",type:"uint256",internalType:"uint256"},{name:"verifyingContract",type:"address",internalType:"address"},{name:"salt",type:"bytes32",internalType:"bytes32"},{name:"extensions",type:"uint256[]",internalType:"uint256[]"}],stateMutability:"view"},{type:"function",name:"execute",inputs:[{name:"calls",type:"tuple[]",internalType:"struct Call[]",components:[{name:"target",type:"address",internalType:"address"},{name:"value",type:"uint256",internalType:"uint256"},{name:"data",type:"bytes",internalType:"bytes"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"executeWithSig",inputs:[{name:"wrappedCalls",type:"tuple",internalType:"struct WrappedCalls",components:[{name:"calls",type:"tuple[]",internalType:"struct Call[]",components:[{name:"target",type:"address",internalType:"address"},{name:"value",type:"uint256",internalType:"uint256"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"uid",type:"bytes32",internalType:"bytes32"}]},{name:"signature",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"function",name:"getCallPoliciesForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple[]",internalType:"struct SessionLib.CallSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]},{name:"constraints",type:"tuple[]",internalType:"struct SessionLib.Constraint[]",components:[{name:"condition",type:"uint8",internalType:"enum SessionLib.Condition"},{name:"index",type:"uint64",internalType:"uint64"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"limit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}]}],stateMutability:"view"},{type:"function",name:"getSessionExpirationForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"getSessionStateForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple",internalType:"struct SessionLib.SessionState",components:[{name:"transferValue",type:"tuple[]",internalType:"struct SessionLib.LimitState[]",components:[{name:"remaining",type:"uint256",internalType:"uint256"},{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"index",type:"uint256",internalType:"uint256"}]},{name:"callValue",type:"tuple[]",internalType:"struct SessionLib.LimitState[]",components:[{name:"remaining",type:"uint256",internalType:"uint256"},{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"index",type:"uint256",internalType:"uint256"}]},{name:"callParams",type:"tuple[]",internalType:"struct SessionLib.LimitState[]",components:[{name:"remaining",type:"uint256",internalType:"uint256"},{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"index",type:"uint256",internalType:"uint256"}]}]}],stateMutability:"view"},{type:"function",name:"getTransferPoliciesForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple[]",internalType:"struct SessionLib.TransferSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}],stateMutability:"view"},{type:"function",name:"isWildcardSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"onERC1155BatchReceived",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256[]",internalType:"uint256[]"},{name:"",type:"uint256[]",internalType:"uint256[]"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"onERC1155Received",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"onERC721Received",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"supportsInterface",inputs:[{name:"interfaceId",type:"bytes4",internalType:"bytes4"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"event",name:"Executed",inputs:[{name:"to",type:"address",indexed:!0,internalType:"address"},{name:"value",type:"uint256",indexed:!1,internalType:"uint256"},{name:"data",type:"bytes",indexed:!1,internalType:"bytes"}],anonymous:!1},{type:"event",name:"SessionCreated",inputs:[{name:"signer",type:"address",indexed:!0,internalType:"address"},{name:"sessionSpec",type:"tuple",indexed:!1,internalType:"struct SessionLib.SessionSpec",components:[{name:"signer",type:"address",internalType:"address"},{name:"isWildcard",type:"bool",internalType:"bool"},{name:"expiresAt",type:"uint256",internalType:"uint256"},{name:"callPolicies",type:"tuple[]",internalType:"struct SessionLib.CallSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]},{name:"constraints",type:"tuple[]",internalType:"struct SessionLib.Constraint[]",components:[{name:"condition",type:"uint8",internalType:"enum SessionLib.Condition"},{name:"index",type:"uint64",internalType:"uint64"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"limit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}]},{name:"transferPolicies",type:"tuple[]",internalType:"struct SessionLib.TransferSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]},{name:"uid",type:"bytes32",internalType:"bytes32"}]}],anonymous:!1},{type:"event",name:"ValueReceived",inputs:[{name:"from",type:"address",indexed:!0,internalType:"address"},{name:"value",type:"uint256",indexed:!1,internalType:"uint256"}],anonymous:!1},{type:"error",name:"AllowanceExceeded",inputs:[{name:"allowanceUsage",type:"uint256",internalType:"uint256"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint64",internalType:"uint64"}]},{type:"error",name:"CallPolicyViolated",inputs:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"}]},{type:"error",name:"CallReverted",inputs:[]},{type:"error",name:"ConditionFailed",inputs:[{name:"param",type:"bytes32",internalType:"bytes32"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"condition",type:"uint8",internalType:"uint8"}]},{type:"error",name:"InvalidDataLength",inputs:[{name:"actualLength",type:"uint256",internalType:"uint256"},{name:"expectedLength",type:"uint256",internalType:"uint256"}]},{type:"error",name:"InvalidSignature",inputs:[{name:"msgSender",type:"address",internalType:"address"},{name:"thisAddress",type:"address",internalType:"address"}]},{type:"error",name:"LifetimeUsageExceeded",inputs:[{name:"lifetimeUsage",type:"uint256",internalType:"uint256"},{name:"limit",type:"uint256",internalType:"uint256"}]},{type:"error",name:"MaxValueExceeded",inputs:[{name:"value",type:"uint256",internalType:"uint256"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"}]},{type:"error",name:"NoCallsToExecute",inputs:[]},{type:"error",name:"SessionExpired",inputs:[]},{type:"error",name:"SessionExpiresTooSoon",inputs:[]},{type:"error",name:"SessionZeroSigner",inputs:[]},{type:"error",name:"TransferPolicyViolated",inputs:[{name:"target",type:"address",internalType:"address"}]},{type:"error",name:"UIDAlreadyProcessed",inputs:[]}];function ce(t){return t.id==="inApp"||t.id==="embedded"}async function le(t,e,n){var p,a,i,s;if(((p=e==null?void 0:e.auth)==null?void 0:p.mode)!=="popup"&&((a=e==null?void 0:e.auth)==null?void 0:a.mode)!==void 0&&n.authenticateWithRedirect){const u=t.strategy;M.includes(u)&&await n.authenticateWithRedirect(u,(i=e==null?void 0:e.auth)==null?void 0:i.mode,(s=e==null?void 0:e.auth)==null?void 0:s.redirectUrl)}const o=(await n.connect(t)).user.account;return P({authAccount:o,client:t.client,createOptions:e,desiredChain:t.chain})}async function ye(t,e,n){t.authResult&&n.loginWithAuthToken&&await n.loginWithAuthToken(t.authResult);const r=await me(n);if(!r)throw new Error("Failed to authenticate user.");const o=r.account;return P({authAccount:o,client:t.client,createOptions:e,desiredChain:t.chain})}async function de(t){const{connectSmartAccount:e}=await b(async()=>{const{connectSmartAccount:n}=await import("./index-Cm8ZnYHZ.js");return{connectSmartAccount:n}},__vite__mapDeps([20,8,6,9,5,10,11,12,13,3,4,7,17,18,21,22,23,24,25,16,26,27,28,29,30,31,32,33,34,35,36,37,38]));return e({chain:t.chain,client:t.client,personalAccount:t.authAccount},t.smartAccountOptions)}async function me(t){const e=await t.getUser();switch(e.status){case"Logged In, Wallet Initialized":return e}}async function P(t){const{createOptions:e,authAccount:n,desiredChain:r,client:o}=t;let p,a;const i=e&&"executionMode"in e?e.executionMode:void 0;if(i&&(i.mode==="EIP4337"?p=i.smartAccount:i.mode==="EIP7702"&&(a=i)),e&&"smartAccount"in e&&(e!=null&&e.smartAccount)&&(p=e.smartAccount),p){const[s,u]=await de({authAccount:n,chain:r,client:o,smartAccountOptions:p});return{account:s,adminAccount:n,chain:u}}if(a){const s=r;if(!s)throw new Error("Chain is required for EIP-7702 execution, pass a chain when connecting the inAppWallet.");return{account:se({adminAccount:n,client:o,sponsorGas:a.sponsorGas}),adminAccount:n,chain:s}}return{account:n,chain:r||R}}const Re=Object.freeze(Object.defineProperty({__proto__:null,autoConnectInAppWallet:ye,connectInAppWallet:le,isInAppWallet:ce},Symbol.toStringTag,{value:"Module"}));export{Ae as D,w as E,J as a,Ue as b,Ee as c,xe as d,_e as e,Z as f,E as g,U as h,Ce as i,Pe as j,Ge as k,Ie as l,ce as m,Re as n};
5
- //# sourceMappingURL=index-BiRk5UxC.js.map
4
+ Code: ${u}`)}return i.result}async function ie(t){const{client:e,chain:n,bundlerUrl:r}=t,o=r??E(n),p=`delegation-contract:${o}`;return B(async()=>{var u;const i=await I(e)(o,{useAuthToken:!0,body:g({id:1,jsonrpc:"2.0",method:"tw_getDelegationContract",params:[]}),headers:{"Content-Type":"application/json"},method:"POST"});if(!i.ok)throw new Error(`Failed to fetch delegation contract: ${i.status} ${i.statusText}`);const s=await i.json();if(s.error)throw new Error(`Delegation contract RPC error: ${JSON.stringify(s.error)}`);if(!((u=s.result)!=null&&u.delegationContract))throw new Error("Invalid response: missing delegationContract in result");return s.result.delegationContract},{cacheKey:p,cacheTime:1440*60*1e3})}const se=t=>{const{client:e,adminAccount:n,sponsorGas:r}=t,o=async a=>{var A,C,x;const i=a[0];if(!i)throw new Error("No transactions provided");const s=v(i.chainId),u=H({address:n.address,chain:s,client:e,abi:ue});let c=(A=i.authorizationList)==null?void 0:A[0];const m=await ie({client:e,chain:s});if(c&&((C=c.address)==null?void 0:C.toLowerCase())!==m.toLowerCase())throw new Error(`Authorization address does not match expected delegation contract address. Expected ${m} but got ${c.address}`);if(!c&&!await oe(u,m)){let T=i.nonce?BigInt(i.nonce):BigInt(await re({client:e,address:n.address,chain:s}));T+=r?0n:1n;const h=await((x=n.signAuthorization)==null?void 0:x.call(n,{address:f(m),chainId:i.chainId,nonce:T}));if(!h)throw new Error("Failed to sign authorization");c=h}if(r){const l={calls:a.map(L=>({data:L.data??"0x",target:f(L.to??""),value:L.value??0n})),uid:$()},T=await n.signTypedData({domain:{chainId:i.chainId,name:"MinimalAccount",verifyingContract:u.address,version:"1"},message:l,primaryType:"WrappedCalls",types:{Call:[{name:"target",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"}],WrappedCalls:[{name:"calls",type:"Call[]"},{name:"uid",type:"bytes32"}]}}),h=await ne({authorization:c,eoaAddress:f(n.address),options:{chain:v(i.chainId),client:e},signature:T,wrappedCalls:l});return{transactionHash:await pe({options:{chain:v(i.chainId),client:e},transactionId:h.transactionId})}}const S=N({calls:a.map(l=>({data:l.data??"0x",target:f(l.to??""),value:l.value??0n})),contract:u,overrides:{authorizationList:c?[c]:void 0,value:a.reduce((l,T)=>l+(T.value??0n),0n)}}),G=await O({from:n.address,transaction:S});return n.sendTransaction(G)},p={address:n.address,sendBatchTransaction:async a=>o(a),sendTransaction:async a=>o([a]),signMessage:({message:a,originalMessage:i,chainId:s})=>n.signMessage({chainId:s,message:a,originalMessage:i}),signTypedData:a=>n.signTypedData(a),sendCalls:async a=>{const{inAppWalletSendCalls:i}=await b(async()=>{const{inAppWalletSendCalls:S}=await import("./in-app-wallet-calls-ChA73nJF.js");return{inAppWalletSendCalls:S}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18])),s=a.calls[0];if(!s)throw new Error("No calls to send");const u=s.client,c=s.chain||a.chain,m=await i({account:p,calls:a.calls,chain:c});return{chain:c,client:u,id:m}},getCallsStatus:async a=>{const{inAppWalletGetCallsStatus:i}=await b(async()=>{const{inAppWalletGetCallsStatus:s}=await import("./in-app-wallet-calls-ChA73nJF.js");return{inAppWalletGetCallsStatus:s}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]));return i(a)},getCallsStatusRaw:async a=>{const{inAppWalletGetCallsStatusRaw:i}=await b(async()=>{const{inAppWalletGetCallsStatusRaw:s}=await import("./in-app-wallet-calls-ChA73nJF.js");return{inAppWalletGetCallsStatusRaw:s}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]));return i(a)},getCapabilities:async a=>({[a.chainId??1]:{atomic:{status:"supported"},paymasterService:{supported:r??!1}}})};return p};async function re(t){const{client:e,address:n,chain:r}=t,o=j({chain:r,client:e});return await b(async()=>{const{eth_getTransactionCount:a}=await import("./eth_getTransactionCount-DCx1pf2k.js");return{eth_getTransactionCount:a}},__vite__mapDeps([19,3,4,5,6])).then(({eth_getTransactionCount:a})=>a(o,{address:f(n),blockTag:"pending"}))}async function oe(t,e){const n=await V(t),r=n.length>0&&n.startsWith("0xef0100"),o=`0x${n.slice(8,48)}`;return r&&o.toLowerCase()===e.toLowerCase()}async function pe(t){const e=t.timeoutMs||3e5,n=t.intervalMs||1e3,r=Date.now()+e;for(;Date.now()<r;){const o=await ae({options:t.options,transactionId:t.transactionId});if(o.transactionHash)return o.transactionHash;await new Promise(p=>setTimeout(p,n))}throw new Error(`Timeout waiting for transaction to be mined on chain ${t.options.chain.id} with transactionId: ${t.transactionId}`)}const ue=[{type:"receive",stateMutability:"payable"},{type:"function",name:"createSessionWithSig",inputs:[{name:"sessionSpec",type:"tuple",internalType:"struct SessionLib.SessionSpec",components:[{name:"signer",type:"address",internalType:"address"},{name:"isWildcard",type:"bool",internalType:"bool"},{name:"expiresAt",type:"uint256",internalType:"uint256"},{name:"callPolicies",type:"tuple[]",internalType:"struct SessionLib.CallSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]},{name:"constraints",type:"tuple[]",internalType:"struct SessionLib.Constraint[]",components:[{name:"condition",type:"uint8",internalType:"enum SessionLib.Condition"},{name:"index",type:"uint64",internalType:"uint64"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"limit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}]},{name:"transferPolicies",type:"tuple[]",internalType:"struct SessionLib.TransferSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]},{name:"uid",type:"bytes32",internalType:"bytes32"}]},{name:"signature",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"eip712Domain",inputs:[],outputs:[{name:"fields",type:"bytes1",internalType:"bytes1"},{name:"name",type:"string",internalType:"string"},{name:"version",type:"string",internalType:"string"},{name:"chainId",type:"uint256",internalType:"uint256"},{name:"verifyingContract",type:"address",internalType:"address"},{name:"salt",type:"bytes32",internalType:"bytes32"},{name:"extensions",type:"uint256[]",internalType:"uint256[]"}],stateMutability:"view"},{type:"function",name:"execute",inputs:[{name:"calls",type:"tuple[]",internalType:"struct Call[]",components:[{name:"target",type:"address",internalType:"address"},{name:"value",type:"uint256",internalType:"uint256"},{name:"data",type:"bytes",internalType:"bytes"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"executeWithSig",inputs:[{name:"wrappedCalls",type:"tuple",internalType:"struct WrappedCalls",components:[{name:"calls",type:"tuple[]",internalType:"struct Call[]",components:[{name:"target",type:"address",internalType:"address"},{name:"value",type:"uint256",internalType:"uint256"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"uid",type:"bytes32",internalType:"bytes32"}]},{name:"signature",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"function",name:"getCallPoliciesForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple[]",internalType:"struct SessionLib.CallSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]},{name:"constraints",type:"tuple[]",internalType:"struct SessionLib.Constraint[]",components:[{name:"condition",type:"uint8",internalType:"enum SessionLib.Condition"},{name:"index",type:"uint64",internalType:"uint64"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"limit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}]}],stateMutability:"view"},{type:"function",name:"getSessionExpirationForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"getSessionStateForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple",internalType:"struct SessionLib.SessionState",components:[{name:"transferValue",type:"tuple[]",internalType:"struct SessionLib.LimitState[]",components:[{name:"remaining",type:"uint256",internalType:"uint256"},{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"index",type:"uint256",internalType:"uint256"}]},{name:"callValue",type:"tuple[]",internalType:"struct SessionLib.LimitState[]",components:[{name:"remaining",type:"uint256",internalType:"uint256"},{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"index",type:"uint256",internalType:"uint256"}]},{name:"callParams",type:"tuple[]",internalType:"struct SessionLib.LimitState[]",components:[{name:"remaining",type:"uint256",internalType:"uint256"},{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"index",type:"uint256",internalType:"uint256"}]}]}],stateMutability:"view"},{type:"function",name:"getTransferPoliciesForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple[]",internalType:"struct SessionLib.TransferSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}],stateMutability:"view"},{type:"function",name:"isWildcardSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"onERC1155BatchReceived",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256[]",internalType:"uint256[]"},{name:"",type:"uint256[]",internalType:"uint256[]"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"onERC1155Received",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"onERC721Received",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"supportsInterface",inputs:[{name:"interfaceId",type:"bytes4",internalType:"bytes4"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"event",name:"Executed",inputs:[{name:"to",type:"address",indexed:!0,internalType:"address"},{name:"value",type:"uint256",indexed:!1,internalType:"uint256"},{name:"data",type:"bytes",indexed:!1,internalType:"bytes"}],anonymous:!1},{type:"event",name:"SessionCreated",inputs:[{name:"signer",type:"address",indexed:!0,internalType:"address"},{name:"sessionSpec",type:"tuple",indexed:!1,internalType:"struct SessionLib.SessionSpec",components:[{name:"signer",type:"address",internalType:"address"},{name:"isWildcard",type:"bool",internalType:"bool"},{name:"expiresAt",type:"uint256",internalType:"uint256"},{name:"callPolicies",type:"tuple[]",internalType:"struct SessionLib.CallSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]},{name:"constraints",type:"tuple[]",internalType:"struct SessionLib.Constraint[]",components:[{name:"condition",type:"uint8",internalType:"enum SessionLib.Condition"},{name:"index",type:"uint64",internalType:"uint64"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"limit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}]},{name:"transferPolicies",type:"tuple[]",internalType:"struct SessionLib.TransferSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]},{name:"uid",type:"bytes32",internalType:"bytes32"}]}],anonymous:!1},{type:"event",name:"ValueReceived",inputs:[{name:"from",type:"address",indexed:!0,internalType:"address"},{name:"value",type:"uint256",indexed:!1,internalType:"uint256"}],anonymous:!1},{type:"error",name:"AllowanceExceeded",inputs:[{name:"allowanceUsage",type:"uint256",internalType:"uint256"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint64",internalType:"uint64"}]},{type:"error",name:"CallPolicyViolated",inputs:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"}]},{type:"error",name:"CallReverted",inputs:[]},{type:"error",name:"ConditionFailed",inputs:[{name:"param",type:"bytes32",internalType:"bytes32"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"condition",type:"uint8",internalType:"uint8"}]},{type:"error",name:"InvalidDataLength",inputs:[{name:"actualLength",type:"uint256",internalType:"uint256"},{name:"expectedLength",type:"uint256",internalType:"uint256"}]},{type:"error",name:"InvalidSignature",inputs:[{name:"msgSender",type:"address",internalType:"address"},{name:"thisAddress",type:"address",internalType:"address"}]},{type:"error",name:"LifetimeUsageExceeded",inputs:[{name:"lifetimeUsage",type:"uint256",internalType:"uint256"},{name:"limit",type:"uint256",internalType:"uint256"}]},{type:"error",name:"MaxValueExceeded",inputs:[{name:"value",type:"uint256",internalType:"uint256"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"}]},{type:"error",name:"NoCallsToExecute",inputs:[]},{type:"error",name:"SessionExpired",inputs:[]},{type:"error",name:"SessionExpiresTooSoon",inputs:[]},{type:"error",name:"SessionZeroSigner",inputs:[]},{type:"error",name:"TransferPolicyViolated",inputs:[{name:"target",type:"address",internalType:"address"}]},{type:"error",name:"UIDAlreadyProcessed",inputs:[]}];function ce(t){return t.id==="inApp"||t.id==="embedded"}async function le(t,e,n){var p,a,i,s;if(((p=e==null?void 0:e.auth)==null?void 0:p.mode)!=="popup"&&((a=e==null?void 0:e.auth)==null?void 0:a.mode)!==void 0&&n.authenticateWithRedirect){const u=t.strategy;M.includes(u)&&await n.authenticateWithRedirect(u,(i=e==null?void 0:e.auth)==null?void 0:i.mode,(s=e==null?void 0:e.auth)==null?void 0:s.redirectUrl)}const o=(await n.connect(t)).user.account;return P({authAccount:o,client:t.client,createOptions:e,desiredChain:t.chain})}async function ye(t,e,n){t.authResult&&n.loginWithAuthToken&&await n.loginWithAuthToken(t.authResult);const r=await me(n);if(!r)throw new Error("Failed to authenticate user.");const o=r.account;return P({authAccount:o,client:t.client,createOptions:e,desiredChain:t.chain})}async function de(t){const{connectSmartAccount:e}=await b(async()=>{const{connectSmartAccount:n}=await import("./index-DKiFTtAe.js");return{connectSmartAccount:n}},__vite__mapDeps([20,8,6,9,5,10,11,12,13,3,4,7,17,18,21,22,23,24,25,16,26,27,28,29,30,31,32,33,34,35,36,37,38]));return e({chain:t.chain,client:t.client,personalAccount:t.authAccount},t.smartAccountOptions)}async function me(t){const e=await t.getUser();switch(e.status){case"Logged In, Wallet Initialized":return e}}async function P(t){const{createOptions:e,authAccount:n,desiredChain:r,client:o}=t;let p,a;const i=e&&"executionMode"in e?e.executionMode:void 0;if(i&&(i.mode==="EIP4337"?p=i.smartAccount:i.mode==="EIP7702"&&(a=i)),e&&"smartAccount"in e&&(e!=null&&e.smartAccount)&&(p=e.smartAccount),p){const[s,u]=await de({authAccount:n,chain:r,client:o,smartAccountOptions:p});return{account:s,adminAccount:n,chain:u}}if(a){const s=r;if(!s)throw new Error("Chain is required for EIP-7702 execution, pass a chain when connecting the inAppWallet.");return{account:se({adminAccount:n,client:o,sponsorGas:a.sponsorGas}),adminAccount:n,chain:s}}return{account:n,chain:r||R}}const Re=Object.freeze(Object.defineProperty({__proto__:null,autoConnectInAppWallet:ye,connectInAppWallet:le,isInAppWallet:ce},Symbol.toStringTag,{value:"Module"}));export{Ae as D,w as E,J as a,Ue as b,Ee as c,xe as d,_e as e,Z as f,E as g,U as h,Ce as i,Pe as j,Ge as k,Ie as l,ce as m,Re as n};
5
+ //# sourceMappingURL=index-BjdjqJv4.js.map
@@ -1,2 +1,2 @@
1
- import{c as s}from"./parseSignature-BgOghd1P.js";import{B as A,E as I,a as S,b as F,F as R,W as x,d as C,e as B,f as N,g as D,p as P,l as w,n as U,p as L,h as M,s as H,z as k}from"./parseSignature-BgOghd1P.js";import{I as q,c as V,a as O,p as G,w as j}from"./custom-wJF4MxdY.js";import{h as n}from"./W3MFrameProviderSingleton-DpORf-LX.js";import{U as _,c as K,f as Z,s as J,w as Q,a as X}from"./W3MFrameProviderSingleton-DpORf-LX.js";import{A as $,a as aa,B as ra,b as oa,C as ea,D as sa,E as ta,F as na,c as ia,H as ca,I as da,d as Ea,e as ua,f as pa,g as la,h as ma,i as ba,j as ga,k as Ta,l as fa,J as ha,L as ya,M as va,m as Aa,N as Ia,n as Sa,o as Fa,P as Ra,p as xa,q as Ca,R as Ba,r as Na,s as Da,t as Pa,u as wa,S as Ua,v as La,w as Ma,x as Ha,T as ka,y as za,z as qa,G as Va,U as Oa,K as Ga,O as ja,Q as Wa,V as _a,W as Ka,X as Za,Y as Ja,Z as Qa,_ as Xa,$ as Ya,a0 as $a,a1 as ar,a2 as rr,a3 as or,a4 as er,a5 as sr,a6 as tr,a7 as nr,a8 as ir,a9 as cr,aa as dr,ab as Er,ac as ur,ad as pr,ae as lr,af as mr,ag as br,ah as gr,ai as Tr,aj as fr,ak as hr,al as yr,am as vr,an as Ar,ao as Ir,ap as Sr,a1 as Fr}from"./NetworkUtil-DQGxIBpk.js";import{A as xr,a as Cr,b as Br,c as Nr,d as Dr,e as Pr,f as wr,g as Ur,h as Lr,i as Mr,j as Hr,k as kr,l as zr,m as qr,n as Vr,o as Or,p as Gr,B as jr,q as Wr,r as _r,C as Kr,s as Zr,t as Jr,u as Qr,v as Xr,w as Yr,x as $r,y as ao,z as ro,D as oo,E as eo,F as so,G as to,H as no,I as io,J as co,K as Eo,L as uo,M as po,N as lo,O as mo,P as bo,Q as go,R as To,S as fo,T as ho,U as yo,V as vo,W as Ao,X as Io,Y as So,Z as Fo,_ as Ro,$ as xo,a0 as Co,a1 as Bo,a2 as No,a3 as Do,a4 as Po,a5 as wo,a6 as Uo,a7 as Lo,a8 as Mo,a9 as Ho,aa as ko,ab as zo,ac as qo,ad as Vo,ae as Oo,af as Go,ag as jo,ah as Wo,ai as _o,aj as Ko,ak as Zo,al as Jo,am as Qo,an as Xo,ao as Yo,ap as $o,aq as ae,ar as re,as as oe,at as ee,au as se,av as te,aw as ne,ax as ie,ay as ce,az as de,aA as Ee,aB as ue,aC as pe,aD as le,aE as me,aF as be,aG as ge,aH as Te,aI as fe,aJ as he,aK as ye,aL as ve,aM as Ae,aN as Ie,aM as Se,aO as Fe,aP as Re,aQ as xe,aR as Ce,aS as Be,aT as Ne,aU as De,aV as Pe,aW as we,aX as Ue,aY as Le,aZ as Me,a_ as He,a$ as ke,b0 as ze,b1 as qe,b2 as Ve,b3 as Oe,b4 as Ge,aL as je,aM as We,b4 as _e,aN as Ke,aM as Ze,b5 as Je,b6 as Qe,aA as Xe}from"./sendRawTransaction-CtBea2zd.js";import{I as $e,a as as,b as rs,g as os,h as es,c as ss,d as ts,e as ns,p as is,t as cs,v as ds}from"./hashTypedData-CoPfbJ-D.js";import{d as us,e as ps,a as ls}from"./localBatchGatewayRequest-DVc5u95X.js";import{ccipRequest as bs,ccipRequest as gs,offchainLookup as Ts,offchainLookupAbiItem as fs,offchainLookupSignature as hs}from"./ccip-Du2rkyMm.js";import{d as c}from"./verifyHash-DG4f2XhO.js";import{e as vs,p as As,a as Is,s as Ss,s as Fs}from"./verifyHash-DG4f2XhO.js";import{a as xs,b as Cs,c as Bs,s as Ns,d as Ds}from"./serializeTransaction-DIGvmm0B.js";import"./secp256k1-Xu7PeIuc.js";import"./dcl-schemas-BSiFmgyu.js";import"./react-DOj4UJHT.js";import"./index-DRNX2SEX.js";import"./sentry-CkiT7C1x.js";import"./index-ChdaON3O.js";import"./events-BRECf16L.js";import"./index-BlOA-94t.js";import"./ethers-BA7ZTT54.js";import"./intl-AKLEHPeO.js";import"./browser-ponyfill-3_yO4MIk.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new a.Error().stack;r&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[r]="350eb5d4-f9d4-484a-ae91-67f310bfbf27",a._sentryDebugIdIdentifier="sentry-dbid-350eb5d4-f9d4-484a-ae91-67f310bfbf27")}catch{}})();export{xr as AbiConstructorNotFoundError,Cr as AbiConstructorParamsNotFoundError,Br as AbiDecodingDataSizeTooSmallError,Nr as AbiDecodingZeroDataError,Dr as AbiEncodingArrayLengthMismatchError,Pr as AbiEncodingBytesSizeMismatchError,wr as AbiEncodingLengthMismatchError,Ur as AbiErrorInputsNotFoundError,Lr as AbiErrorNotFoundError,Mr as AbiErrorSignatureNotFoundError,Hr as AbiEventNotFoundError,kr as AbiEventSignatureEmptyTopicsError,zr as AbiEventSignatureNotFoundError,qr as AbiFunctionNotFoundError,Vr as AbiFunctionOutputsNotFoundError,Or as AbiFunctionSignatureNotFoundError,Gr as AccountStateConflictError,$ as AtomicReadyWalletRejectedUpgradeError,aa as AtomicityNotSupportedError,ra as BaseError,jr as BaseFeeScalarError,Wr as BlockNotFoundError,A as BundleFailedError,oa as BundleTooLargeError,_r as BytesSizeMismatchError,Kr as CallExecutionError,ea as ChainDisconnectedError,Zr as ChainDoesNotSupportContract,Jr as ChainMismatchError,Qr as ChainNotFoundError,Xr as CircularReferenceError,Yr as ClientChainNotConfiguredError,$r as ContractFunctionExecutionError,ao as ContractFunctionRevertedError,ro as ContractFunctionZeroDataError,oo as CounterfactualDeploymentFailedError,eo as DecodeLogDataMismatch,so as DecodeLogTopicsMismatch,sa as DuplicateIdError,to as Eip1559FeesNotSupportedError,I as EnsAvatarInvalidNftUriError,S as EnsAvatarUnsupportedNamespaceError,F as EnsAvatarUriResolutionError,no as EstimateGasExecutionError,ta as ExecutionRevertedError,na as FeeCapTooHighError,ia as FeeCapTooLowError,R as FilterTypeNotSupportedError,ca as HttpRequestError,da as InsufficientFundsError,Ea as IntegerOutOfRangeError,ua as InternalRpcError,pa as IntrinsicGasTooHighError,la as IntrinsicGasTooLowError,io as InvalidAbiDecodingTypeError,co as InvalidAbiEncodingTypeError,Eo as InvalidAbiItemError,uo as InvalidAbiParametersError,po as InvalidAbiTypeParameterError,lo as InvalidAddressError,mo as InvalidArrayError,ma as InvalidBytesBooleanError,bo as InvalidChainIdError,q as InvalidDecimalNumberError,go as InvalidDefinitionTypeError,$e as InvalidDomainError,To as InvalidFunctionModifierError,ba as InvalidHexBooleanError,ga as InvalidInputRpcError,fo as InvalidLegacyVError,ho as InvalidModifierError,yo as InvalidParameterError,Ta as InvalidParamsRpcError,vo as InvalidParenthesisError,as as InvalidPrimaryTypeError,fa as InvalidRequestRpcError,Ao as InvalidSerializableTransactionError,Io as InvalidSignatureError,So as InvalidStorageKeySizeError,Fo as InvalidStructSignatureError,rs as InvalidStructTypeError,ha as JsonRpcVersionUnsupportedError,ya as LimitExceededRpcError,Ro as MaxFeePerGasTooLowError,va as MethodNotFoundRpcError,Aa as MethodNotSupportedRpcError,Ia as NonceMaxValueError,Sa as NonceTooHighError,Fa as NonceTooLowError,Ra as ParseRpcError,xa as ProviderDisconnectedError,Ca as ProviderRpcError,xo as RawContractError,Ba as ResourceNotFoundRpcError,Na as ResourceUnavailableRpcError,Da as ResponseBodyTooLargeError,Pa as RpcError,wa as RpcRequestError,Ua as SizeExceedsPaddingSizeError,La as SizeOverflowError,Ma as SliceOffsetOutOfBoundsError,Co as SolidityProtectedKeywordError,Bo as StateAssignmentConflictError,Ha as SwitchChainError,ka as TimeoutError,za as TipAboveFeeCapError,No as TransactionExecutionError,Do as TransactionNotFoundError,Po as TransactionReceiptNotFoundError,qa as TransactionRejectedRpcError,Va as TransactionTypeNotSupportedError,Oa as UnauthorizedProviderError,Ga as UnknownBundleIdError,ja as UnknownNodeError,Wa as UnknownRpcError,wo as UnknownSignatureError,Uo as UnknownTypeError,_a as UnsupportedChainIdError,Ka as UnsupportedNonOptionalCapabilityError,Lo as UnsupportedPackedAbiType,Za as UnsupportedProviderMethodError,_ as UrlRequiredError,Ja as UserRejectedRequestError,x as WaitForCallsStatusTimeoutError,Mo as WaitForTransactionReceiptTimeoutError,Ho as assertCurrentChain,ko as assertRequest,xs as assertTransactionEIP1559,Cs as assertTransactionEIP2930,Bs as assertTransactionLegacy,zo as blobsToCommitments,qo as blobsToProofs,Qa as boolToBytes,Xa as boolToHex,Vo as bytesToBigInt,Oo as bytesToBool,Ya as bytesToHex,Go as bytesToNumber,jo as bytesToString,bs as ccipFetch,gs as ccipRequest,Wo as checksumAddress,_o as commitmentToVersionedHash,Ko as commitmentsToVersionedHashes,Zo as concat,Jo as concatBytes,Qo as concatHex,V as createClient,C as createNonceManager,s as createPublicClient,K as createTransport,O as custom,Xo as decodeAbiParameters,Yo as decodeErrorResult,$o as decodeEventLog,us as decodeFunctionData,ae as decodeFunctionResult,re as defineBlock,c as defineChain,oe as defineTransaction,ee as defineTransactionReceipt,se as defineTransactionRequest,te as deploylessCallViaBytecodeBytecode,ne as deploylessCallViaFactoryBytecode,ie as encodeAbiParameters,ce as encodeDeployData,ps as encodeErrorResult,B as encodeEventTopics,de as encodeFunctionData,ls as encodeFunctionResult,N as encodePacked,$a as erc20Abi,ar as erc6492SignatureValidatorAbi,Ee as erc6492SignatureValidatorByteCode,D as ethAddress,rr as etherUnits,vs as extendSchema,Z as fallback,ue as formatBlock,pe as formatEther,or as formatGwei,le as formatLog,me as formatTransaction,be as formatTransactionReceipt,ge as formatTransactionRequest,er as formatUnits,sr as fromHex,Te as getAbiItem,fe as getAddress,he as getChainContractAddress,ye as getContractError,ve as getEventSelector,Ae as getEventSignature,Ie as getFunctionSelector,Se as getFunctionSignature,Fe as getTransactionType,os as getTypesForEIP712Domain,tr as gweiUnits,es as hashDomain,ss as hashMessage,ts as hashStruct,ns as hashTypedData,nr as hexToBigInt,ir as hexToBool,cr as hexToBytes,dr as hexToNumber,P as hexToSignature,Er as hexToString,n as http,Re as isAddress,xe as isAddressEqual,ur as isHex,Ce as keccak256,w as labelhash,Be as maxUint16,Ne as maxUint256,pr as multicall3Abi,U as namehash,lr as numberToBytes,mr as numberToHex,Ts as offchainLookup,fs as offchainLookupAbiItem,hs as offchainLookupSignature,br as pad,gr as padBytes,Tr as padHex,De as parseAbi,As as parseAbiItem,Is as parseAbiParameters,Pe as parseEventLogs,L as parseSignature,G as parseUnits,we as prepareEncodeFunctionData,is as presignMessagePrefix,M as publicActions,Ue as recoverAddress,Le as recoverPublicKey,Me as rpcTransactionType,Ns as serializeAccessList,H as serializeErc6492Signature,Ss as serializeSignature,Ds as serializeTransaction,He as sha256,J as shouldThrow,Fs as signatureToHex,fr as size,ke as slice,ze as sliceBytes,qe as sliceHex,hr as stringToBytes,yr as stringToHex,vr as stringify,Ve as toBlobSidecars,Oe as toBlobs,Ar as toBytes,Ge as toEventHash,je as toEventSelector,We as toEventSignature,_e as toFunctionHash,Ke as toFunctionSelector,Ze as toFunctionSignature,Ir as toHex,cs as toPrefixedMessage,Je as toRlp,Qe as transactionType,Sr as trim,Fr as universalSignatureValidatorAbi,Xe as universalSignatureValidatorByteCode,ds as validateTypedData,j as withCache,Q as withRetry,X as withTimeout,k as zeroAddress};
2
- //# sourceMappingURL=index-DS0u3xl-.js.map
1
+ import{c as s}from"./parseSignature-DpYJxwtD.js";import{B as A,E as I,a as S,b as F,F as R,W as x,d as C,e as B,f as N,g as D,p as P,l as w,n as U,p as L,h as M,s as H,z as k}from"./parseSignature-DpYJxwtD.js";import{I as q,c as V,a as O,p as G,w as j}from"./custom-BDzyroM1.js";import{h as n}from"./W3MFrameProviderSingleton-DqaMm2mV.js";import{U as _,c as K,f as Z,s as J,w as Q,a as X}from"./W3MFrameProviderSingleton-DqaMm2mV.js";import{A as $,a as aa,B as ra,b as oa,C as ea,D as sa,E as ta,F as na,c as ia,H as ca,I as da,d as Ea,e as ua,f as pa,g as la,h as ma,i as ba,j as ga,k as Ta,l as fa,J as ha,L as ya,M as va,m as Aa,N as Ia,n as Sa,o as Fa,P as Ra,p as xa,q as Ca,R as Ba,r as Na,s as Da,t as Pa,u as wa,S as Ua,v as La,w as Ma,x as Ha,T as ka,y as za,z as qa,G as Va,U as Oa,K as Ga,O as ja,Q as Wa,V as _a,W as Ka,X as Za,Y as Ja,Z as Qa,_ as Xa,$ as Ya,a0 as $a,a1 as ar,a2 as rr,a3 as or,a4 as er,a5 as sr,a6 as tr,a7 as nr,a8 as ir,a9 as cr,aa as dr,ab as Er,ac as ur,ad as pr,ae as lr,af as mr,ag as br,ah as gr,ai as Tr,aj as fr,ak as hr,al as yr,am as vr,an as Ar,ao as Ir,ap as Sr,a1 as Fr}from"./NetworkUtil-BIUbrPWa.js";import{A as xr,a as Cr,b as Br,c as Nr,d as Dr,e as Pr,f as wr,g as Ur,h as Lr,i as Mr,j as Hr,k as kr,l as zr,m as qr,n as Vr,o as Or,p as Gr,B as jr,q as Wr,r as _r,C as Kr,s as Zr,t as Jr,u as Qr,v as Xr,w as Yr,x as $r,y as ao,z as ro,D as oo,E as eo,F as so,G as to,H as no,I as io,J as co,K as Eo,L as uo,M as po,N as lo,O as mo,P as bo,Q as go,R as To,S as fo,T as ho,U as yo,V as vo,W as Ao,X as Io,Y as So,Z as Fo,_ as Ro,$ as xo,a0 as Co,a1 as Bo,a2 as No,a3 as Do,a4 as Po,a5 as wo,a6 as Uo,a7 as Lo,a8 as Mo,a9 as Ho,aa as ko,ab as zo,ac as qo,ad as Vo,ae as Oo,af as Go,ag as jo,ah as Wo,ai as _o,aj as Ko,ak as Zo,al as Jo,am as Qo,an as Xo,ao as Yo,ap as $o,aq as ae,ar as re,as as oe,at as ee,au as se,av as te,aw as ne,ax as ie,ay as ce,az as de,aA as Ee,aB as ue,aC as pe,aD as le,aE as me,aF as be,aG as ge,aH as Te,aI as fe,aJ as he,aK as ye,aL as ve,aM as Ae,aN as Ie,aM as Se,aO as Fe,aP as Re,aQ as xe,aR as Ce,aS as Be,aT as Ne,aU as De,aV as Pe,aW as we,aX as Ue,aY as Le,aZ as Me,a_ as He,a$ as ke,b0 as ze,b1 as qe,b2 as Ve,b3 as Oe,b4 as Ge,aL as je,aM as We,b4 as _e,aN as Ke,aM as Ze,b5 as Je,b6 as Qe,aA as Xe}from"./sendRawTransaction-QUpRtv1T.js";import{I as $e,a as as,b as rs,g as os,h as es,c as ss,d as ts,e as ns,p as is,t as cs,v as ds}from"./hashTypedData-Dr6t3Q-D.js";import{d as us,e as ps,a as ls}from"./localBatchGatewayRequest-Dks7VfkN.js";import{ccipRequest as bs,ccipRequest as gs,offchainLookup as Ts,offchainLookupAbiItem as fs,offchainLookupSignature as hs}from"./ccip-BGKWaLZd.js";import{d as c}from"./verifyHash-BnLy1LQ8.js";import{e as vs,p as As,a as Is,s as Ss,s as Fs}from"./verifyHash-BnLy1LQ8.js";import{a as xs,b as Cs,c as Bs,s as Ns,d as Ds}from"./serializeTransaction-Bzap5VIj.js";import"./secp256k1-D89skxyt.js";import"./dcl-schemas-OH8G4Ndl.js";import"./react-Io5Wove7.js";import"./index-Cj5zg5gT.js";import"./sentry-faeuEJiQ.js";import"./index-ARGrbe3A.js";import"./events-CSIN-_05.js";import"./index-bJXcZSYa.js";import"./ethers-DwK2TdL6.js";import"./intl-AKLEHPeO.js";import"./browser-ponyfill-2MY_3eYQ.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new a.Error().stack;r&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[r]="350eb5d4-f9d4-484a-ae91-67f310bfbf27",a._sentryDebugIdIdentifier="sentry-dbid-350eb5d4-f9d4-484a-ae91-67f310bfbf27")}catch{}})();export{xr as AbiConstructorNotFoundError,Cr as AbiConstructorParamsNotFoundError,Br as AbiDecodingDataSizeTooSmallError,Nr as AbiDecodingZeroDataError,Dr as AbiEncodingArrayLengthMismatchError,Pr as AbiEncodingBytesSizeMismatchError,wr as AbiEncodingLengthMismatchError,Ur as AbiErrorInputsNotFoundError,Lr as AbiErrorNotFoundError,Mr as AbiErrorSignatureNotFoundError,Hr as AbiEventNotFoundError,kr as AbiEventSignatureEmptyTopicsError,zr as AbiEventSignatureNotFoundError,qr as AbiFunctionNotFoundError,Vr as AbiFunctionOutputsNotFoundError,Or as AbiFunctionSignatureNotFoundError,Gr as AccountStateConflictError,$ as AtomicReadyWalletRejectedUpgradeError,aa as AtomicityNotSupportedError,ra as BaseError,jr as BaseFeeScalarError,Wr as BlockNotFoundError,A as BundleFailedError,oa as BundleTooLargeError,_r as BytesSizeMismatchError,Kr as CallExecutionError,ea as ChainDisconnectedError,Zr as ChainDoesNotSupportContract,Jr as ChainMismatchError,Qr as ChainNotFoundError,Xr as CircularReferenceError,Yr as ClientChainNotConfiguredError,$r as ContractFunctionExecutionError,ao as ContractFunctionRevertedError,ro as ContractFunctionZeroDataError,oo as CounterfactualDeploymentFailedError,eo as DecodeLogDataMismatch,so as DecodeLogTopicsMismatch,sa as DuplicateIdError,to as Eip1559FeesNotSupportedError,I as EnsAvatarInvalidNftUriError,S as EnsAvatarUnsupportedNamespaceError,F as EnsAvatarUriResolutionError,no as EstimateGasExecutionError,ta as ExecutionRevertedError,na as FeeCapTooHighError,ia as FeeCapTooLowError,R as FilterTypeNotSupportedError,ca as HttpRequestError,da as InsufficientFundsError,Ea as IntegerOutOfRangeError,ua as InternalRpcError,pa as IntrinsicGasTooHighError,la as IntrinsicGasTooLowError,io as InvalidAbiDecodingTypeError,co as InvalidAbiEncodingTypeError,Eo as InvalidAbiItemError,uo as InvalidAbiParametersError,po as InvalidAbiTypeParameterError,lo as InvalidAddressError,mo as InvalidArrayError,ma as InvalidBytesBooleanError,bo as InvalidChainIdError,q as InvalidDecimalNumberError,go as InvalidDefinitionTypeError,$e as InvalidDomainError,To as InvalidFunctionModifierError,ba as InvalidHexBooleanError,ga as InvalidInputRpcError,fo as InvalidLegacyVError,ho as InvalidModifierError,yo as InvalidParameterError,Ta as InvalidParamsRpcError,vo as InvalidParenthesisError,as as InvalidPrimaryTypeError,fa as InvalidRequestRpcError,Ao as InvalidSerializableTransactionError,Io as InvalidSignatureError,So as InvalidStorageKeySizeError,Fo as InvalidStructSignatureError,rs as InvalidStructTypeError,ha as JsonRpcVersionUnsupportedError,ya as LimitExceededRpcError,Ro as MaxFeePerGasTooLowError,va as MethodNotFoundRpcError,Aa as MethodNotSupportedRpcError,Ia as NonceMaxValueError,Sa as NonceTooHighError,Fa as NonceTooLowError,Ra as ParseRpcError,xa as ProviderDisconnectedError,Ca as ProviderRpcError,xo as RawContractError,Ba as ResourceNotFoundRpcError,Na as ResourceUnavailableRpcError,Da as ResponseBodyTooLargeError,Pa as RpcError,wa as RpcRequestError,Ua as SizeExceedsPaddingSizeError,La as SizeOverflowError,Ma as SliceOffsetOutOfBoundsError,Co as SolidityProtectedKeywordError,Bo as StateAssignmentConflictError,Ha as SwitchChainError,ka as TimeoutError,za as TipAboveFeeCapError,No as TransactionExecutionError,Do as TransactionNotFoundError,Po as TransactionReceiptNotFoundError,qa as TransactionRejectedRpcError,Va as TransactionTypeNotSupportedError,Oa as UnauthorizedProviderError,Ga as UnknownBundleIdError,ja as UnknownNodeError,Wa as UnknownRpcError,wo as UnknownSignatureError,Uo as UnknownTypeError,_a as UnsupportedChainIdError,Ka as UnsupportedNonOptionalCapabilityError,Lo as UnsupportedPackedAbiType,Za as UnsupportedProviderMethodError,_ as UrlRequiredError,Ja as UserRejectedRequestError,x as WaitForCallsStatusTimeoutError,Mo as WaitForTransactionReceiptTimeoutError,Ho as assertCurrentChain,ko as assertRequest,xs as assertTransactionEIP1559,Cs as assertTransactionEIP2930,Bs as assertTransactionLegacy,zo as blobsToCommitments,qo as blobsToProofs,Qa as boolToBytes,Xa as boolToHex,Vo as bytesToBigInt,Oo as bytesToBool,Ya as bytesToHex,Go as bytesToNumber,jo as bytesToString,bs as ccipFetch,gs as ccipRequest,Wo as checksumAddress,_o as commitmentToVersionedHash,Ko as commitmentsToVersionedHashes,Zo as concat,Jo as concatBytes,Qo as concatHex,V as createClient,C as createNonceManager,s as createPublicClient,K as createTransport,O as custom,Xo as decodeAbiParameters,Yo as decodeErrorResult,$o as decodeEventLog,us as decodeFunctionData,ae as decodeFunctionResult,re as defineBlock,c as defineChain,oe as defineTransaction,ee as defineTransactionReceipt,se as defineTransactionRequest,te as deploylessCallViaBytecodeBytecode,ne as deploylessCallViaFactoryBytecode,ie as encodeAbiParameters,ce as encodeDeployData,ps as encodeErrorResult,B as encodeEventTopics,de as encodeFunctionData,ls as encodeFunctionResult,N as encodePacked,$a as erc20Abi,ar as erc6492SignatureValidatorAbi,Ee as erc6492SignatureValidatorByteCode,D as ethAddress,rr as etherUnits,vs as extendSchema,Z as fallback,ue as formatBlock,pe as formatEther,or as formatGwei,le as formatLog,me as formatTransaction,be as formatTransactionReceipt,ge as formatTransactionRequest,er as formatUnits,sr as fromHex,Te as getAbiItem,fe as getAddress,he as getChainContractAddress,ye as getContractError,ve as getEventSelector,Ae as getEventSignature,Ie as getFunctionSelector,Se as getFunctionSignature,Fe as getTransactionType,os as getTypesForEIP712Domain,tr as gweiUnits,es as hashDomain,ss as hashMessage,ts as hashStruct,ns as hashTypedData,nr as hexToBigInt,ir as hexToBool,cr as hexToBytes,dr as hexToNumber,P as hexToSignature,Er as hexToString,n as http,Re as isAddress,xe as isAddressEqual,ur as isHex,Ce as keccak256,w as labelhash,Be as maxUint16,Ne as maxUint256,pr as multicall3Abi,U as namehash,lr as numberToBytes,mr as numberToHex,Ts as offchainLookup,fs as offchainLookupAbiItem,hs as offchainLookupSignature,br as pad,gr as padBytes,Tr as padHex,De as parseAbi,As as parseAbiItem,Is as parseAbiParameters,Pe as parseEventLogs,L as parseSignature,G as parseUnits,we as prepareEncodeFunctionData,is as presignMessagePrefix,M as publicActions,Ue as recoverAddress,Le as recoverPublicKey,Me as rpcTransactionType,Ns as serializeAccessList,H as serializeErc6492Signature,Ss as serializeSignature,Ds as serializeTransaction,He as sha256,J as shouldThrow,Fs as signatureToHex,fr as size,ke as slice,ze as sliceBytes,qe as sliceHex,hr as stringToBytes,yr as stringToHex,vr as stringify,Ve as toBlobSidecars,Oe as toBlobs,Ar as toBytes,Ge as toEventHash,je as toEventSelector,We as toEventSignature,_e as toFunctionHash,Ke as toFunctionSelector,Ze as toFunctionSignature,Ir as toHex,cs as toPrefixedMessage,Je as toRlp,Qe as transactionType,Sr as trim,Fr as universalSignatureValidatorAbi,Xe as universalSignatureValidatorByteCode,ds as validateTypedData,j as withCache,Q as withRetry,X as withTimeout,k as zeroAddress};
2
+ //# sourceMappingURL=index-BlorBoCd.js.map
@@ -1,2 +1,2 @@
1
- import"./react-DOj4UJHT.js";(function(){try{var v=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new v.Error().stack;d&&(v._sentryDebugIds=v._sentryDebugIds||{},v._sentryDebugIds[d]="baaaa475-91e9-4202-946c-540a970b1d88",v._sentryDebugIdIdentifier="sentry-dbid-baaaa475-91e9-4202-946c-540a970b1d88")}catch{}})();var w={exports:{}},x;function O(){return x||(x=1,(function(v){var d=Object.prototype.hasOwnProperty,f="~";function y(){}Object.create&&(y.prototype=Object.create(null),new y().__proto__||(f=!1));function m(s,t,n){this.fn=s,this.context=t,this.once=n||!1}function g(s,t,n,r,l){if(typeof n!="function")throw new TypeError("The listener must be a function");var c=new m(n,r||s,l),o=f?f+t:t;return s._events[o]?s._events[o].fn?s._events[o]=[s._events[o],c]:s._events[o].push(c):(s._events[o]=c,s._eventsCount++),s}function b(s,t){--s._eventsCount===0?s._events=new y:delete s._events[t]}function u(){this._events=new y,this._eventsCount=0}u.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)d.call(n,r)&&t.push(f?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t},u.prototype.listeners=function(t){var n=f?f+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var l=0,c=r.length,o=new Array(c);l<c;l++)o[l]=r[l].fn;return o},u.prototype.listenerCount=function(t){var n=f?f+t:t,r=this._events[n];return r?r.fn?1:r.length:0},u.prototype.emit=function(t,n,r,l,c,o){var a=f?f+t:t;if(!this._events[a])return!1;var e=this._events[a],p=arguments.length,h,i;if(e.fn){switch(e.once&&this.removeListener(t,e.fn,void 0,!0),p){case 1:return e.fn.call(e.context),!0;case 2:return e.fn.call(e.context,n),!0;case 3:return e.fn.call(e.context,n,r),!0;case 4:return e.fn.call(e.context,n,r,l),!0;case 5:return e.fn.call(e.context,n,r,l,c),!0;case 6:return e.fn.call(e.context,n,r,l,c,o),!0}for(i=1,h=new Array(p-1);i<p;i++)h[i-1]=arguments[i];e.fn.apply(e.context,h)}else{var E=e.length,_;for(i=0;i<E;i++)switch(e[i].once&&this.removeListener(t,e[i].fn,void 0,!0),p){case 1:e[i].fn.call(e[i].context);break;case 2:e[i].fn.call(e[i].context,n);break;case 3:e[i].fn.call(e[i].context,n,r);break;case 4:e[i].fn.call(e[i].context,n,r,l);break;default:if(!h)for(_=1,h=new Array(p-1);_<p;_++)h[_-1]=arguments[_];e[i].fn.apply(e[i].context,h)}}return!0},u.prototype.on=function(t,n,r){return g(this,t,n,r,!1)},u.prototype.once=function(t,n,r){return g(this,t,n,r,!0)},u.prototype.removeListener=function(t,n,r,l){var c=f?f+t:t;if(!this._events[c])return this;if(!n)return b(this,c),this;var o=this._events[c];if(o.fn)o.fn===n&&(!l||o.once)&&(!r||o.context===r)&&b(this,c);else{for(var a=0,e=[],p=o.length;a<p;a++)(o[a].fn!==n||l&&!o[a].once||r&&o[a].context!==r)&&e.push(o[a]);e.length?this._events[c]=e.length===1?e[0]:e:b(this,c)}return this},u.prototype.removeAllListeners=function(t){var n;return t?(n=f?f+t:t,this._events[n]&&b(this,n)):(this._events=new y,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=f,u.EventEmitter=u,v.exports=u})(w)),w.exports}export{O as r};
2
- //# sourceMappingURL=index-CFNczH-R.js.map
1
+ import"./react-Io5Wove7.js";(function(){try{var v=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new v.Error().stack;d&&(v._sentryDebugIds=v._sentryDebugIds||{},v._sentryDebugIds[d]="baaaa475-91e9-4202-946c-540a970b1d88",v._sentryDebugIdIdentifier="sentry-dbid-baaaa475-91e9-4202-946c-540a970b1d88")}catch{}})();var w={exports:{}},x;function O(){return x||(x=1,(function(v){var d=Object.prototype.hasOwnProperty,f="~";function y(){}Object.create&&(y.prototype=Object.create(null),new y().__proto__||(f=!1));function m(s,t,n){this.fn=s,this.context=t,this.once=n||!1}function g(s,t,n,r,l){if(typeof n!="function")throw new TypeError("The listener must be a function");var c=new m(n,r||s,l),o=f?f+t:t;return s._events[o]?s._events[o].fn?s._events[o]=[s._events[o],c]:s._events[o].push(c):(s._events[o]=c,s._eventsCount++),s}function b(s,t){--s._eventsCount===0?s._events=new y:delete s._events[t]}function u(){this._events=new y,this._eventsCount=0}u.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)d.call(n,r)&&t.push(f?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t},u.prototype.listeners=function(t){var n=f?f+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var l=0,c=r.length,o=new Array(c);l<c;l++)o[l]=r[l].fn;return o},u.prototype.listenerCount=function(t){var n=f?f+t:t,r=this._events[n];return r?r.fn?1:r.length:0},u.prototype.emit=function(t,n,r,l,c,o){var a=f?f+t:t;if(!this._events[a])return!1;var e=this._events[a],p=arguments.length,h,i;if(e.fn){switch(e.once&&this.removeListener(t,e.fn,void 0,!0),p){case 1:return e.fn.call(e.context),!0;case 2:return e.fn.call(e.context,n),!0;case 3:return e.fn.call(e.context,n,r),!0;case 4:return e.fn.call(e.context,n,r,l),!0;case 5:return e.fn.call(e.context,n,r,l,c),!0;case 6:return e.fn.call(e.context,n,r,l,c,o),!0}for(i=1,h=new Array(p-1);i<p;i++)h[i-1]=arguments[i];e.fn.apply(e.context,h)}else{var E=e.length,_;for(i=0;i<E;i++)switch(e[i].once&&this.removeListener(t,e[i].fn,void 0,!0),p){case 1:e[i].fn.call(e[i].context);break;case 2:e[i].fn.call(e[i].context,n);break;case 3:e[i].fn.call(e[i].context,n,r);break;case 4:e[i].fn.call(e[i].context,n,r,l);break;default:if(!h)for(_=1,h=new Array(p-1);_<p;_++)h[_-1]=arguments[_];e[i].fn.apply(e[i].context,h)}}return!0},u.prototype.on=function(t,n,r){return g(this,t,n,r,!1)},u.prototype.once=function(t,n,r){return g(this,t,n,r,!0)},u.prototype.removeListener=function(t,n,r,l){var c=f?f+t:t;if(!this._events[c])return this;if(!n)return b(this,c),this;var o=this._events[c];if(o.fn)o.fn===n&&(!l||o.once)&&(!r||o.context===r)&&b(this,c);else{for(var a=0,e=[],p=o.length;a<p;a++)(o[a].fn!==n||l&&!o[a].once||r&&o[a].context!==r)&&e.push(o[a]);e.length?this._events[c]=e.length===1?e[0]:e:b(this,c)}return this},u.prototype.removeAllListeners=function(t){var n;return t?(n=f?f+t:t,this._events[n]&&b(this,n)):(this._events=new y,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=f,u.EventEmitter=u,v.exports=u})(w)),w.exports}export{O as r};
2
+ //# sourceMappingURL=index-C3LVhWuY.js.map
@@ -1,4 +1,4 @@
1
- import{i as f,b as c}from"./lit-element-wjYUA6aF.js";import{n as u}from"./class-map-DopF_Eyi.js";import{c as p}from"./index-Cs94-quB.js";import{d as b,r as g}from"./index-D5xkUhrb.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="dde23a4f-38db-4eee-9262-6fe249c3d5b2",e._sentryDebugIdIdentifier="sentry-dbid-dde23a4f-38db-4eee-9262-6fe249c3d5b2")}catch{}})();const m=b`
1
+ import{i as f,b as c}from"./lit-element-wjYUA6aF.js";import{n as u}from"./class-map-DopF_Eyi.js";import{c as p}from"./index-D0Wlf6gr.js";import{d as b,r as g}from"./index-CtayMM8a.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="dde23a4f-38db-4eee-9262-6fe249c3d5b2",e._sentryDebugIdIdentifier="sentry-dbid-dde23a4f-38db-4eee-9262-6fe249c3d5b2")}catch{}})();const m=b`
2
2
  :host {
3
3
  position: relative;
4
4
  display: flex;
@@ -25,4 +25,4 @@ import{i as f,b as c}from"./lit-element-wjYUA6aF.js";import{n as u}from"./class-
25
25
  background-color: ${({tokens:e})=>e.theme.foregroundPrimary};
26
26
  }
27
27
  `;var l=function(e,t,o,i){var a=arguments.length,r=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(d=e[s])&&(r=(a<3?d(r):a>3?d(t,o,r):d(t,o))||r);return a>3&&r&&Object.defineProperty(t,o,r),r};let n=class extends f{constructor(){super(...arguments),this.text="",this.bgColor="primary"}render(){return this.dataset.bgColor=this.bgColor,c`${this.template()}`}template(){return this.text?c`<wui-text variant="md-regular" color="secondary">${this.text}</wui-text>`:null}};n.styles=[g,m];l([u()],n.prototype,"text",void 0);l([u()],n.prototype,"bgColor",void 0);n=l([p("wui-separator")],n);
28
- //# sourceMappingURL=index-2UtGBVDu.js.map
28
+ //# sourceMappingURL=index-CATjpM0W.js.map
@@ -1,4 +1,4 @@
1
- import{i as u,b as c}from"./lit-element-wjYUA6aF.js";import{n as r,o as p}from"./class-map-DopF_Eyi.js";import{d as f,r as g}from"./index-D5xkUhrb.js";import{c as m}from"./index-Cs94-quB.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="026106f6-449d-4cd0-a7e8-397e2ce216e0",e._sentryDebugIdIdentifier="sentry-dbid-026106f6-449d-4cd0-a7e8-397e2ce216e0")}catch{}})();const b=f`
1
+ import{i as u,b as c}from"./lit-element-wjYUA6aF.js";import{n as r,o as p}from"./class-map-DopF_Eyi.js";import{d as f,r as g}from"./index-CtayMM8a.js";import{c as m}from"./index-D0Wlf6gr.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="026106f6-449d-4cd0-a7e8-397e2ce216e0",e._sentryDebugIdIdentifier="sentry-dbid-026106f6-449d-4cd0-a7e8-397e2ce216e0")}catch{}})();const b=f`
2
2
  :host {
3
3
  display: block;
4
4
  width: var(--local-width);
@@ -61,4 +61,4 @@ import{i as u,b as c}from"./lit-element-wjYUA6aF.js";import{n as r,o as p}from".
61
61
  name=${this.icon}
62
62
  size="lg"
63
63
  ></wui-icon> `:this.logo?c`<wui-icon size="lg" color="inherit" name=${this.logo}></wui-icon> `:c`<img src=${p(this.src)} alt=${this.alt} @error=${this.handleImageError} />`}handleImageError(){this.dispatchEvent(new CustomEvent("onLoadError",{bubbles:!0,composed:!0}))}};o.styles=[g,b];i([r()],o.prototype,"src",void 0);i([r()],o.prototype,"logo",void 0);i([r()],o.prototype,"icon",void 0);i([r()],o.prototype,"iconColor",void 0);i([r()],o.prototype,"alt",void 0);i([r()],o.prototype,"size",void 0);i([r({type:Boolean})],o.prototype,"boxed",void 0);i([r({type:Boolean})],o.prototype,"rounded",void 0);i([r({type:Boolean})],o.prototype,"fullSize",void 0);o=i([m("wui-image")],o);
64
- //# sourceMappingURL=index-BLnRwXHe.js.map
64
+ //# sourceMappingURL=index-CFGlj3ri.js.map
@@ -1,3 +1,3 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/native-YaWdzJM0.js","_assets/sentry-CkiT7C1x.js","_assets/react-DOj4UJHT.js"])))=>i.map(i=>d[i]);
2
- import{p as gt,b as Yt,i as Qt,I as Zt,m as bt,s as ut,A as D,e as Xt,g as U,d as te,f as N,r as ee,h as ae,j as ne,k as re,w as se,n as oe,o as ie,q as ce,t as ue,v as de,u as le,x as Z,y as me,z as fe,B as pe,C as $,D as he,E as ye,F as ge,G as be,H as we,J as xe,K as Ee,L as Ie,M as Te,N as St,O as At,P as Ce,Q as Pt,R as _t,S as Rt,T as ve,U as dt,V as qt,W as Se,X as Ae,Y as Ft,Z as Pe,_ as Ut,$ as K,a0 as _e,a1 as kt,a2 as Re,a3 as qe,a4 as lt,a5 as Fe,a6 as Ue,a7 as ke,a8 as Be,a9 as Ne,aa as Bt,ab as Le}from"./parseSignature-BTGduonN.js";import{ac as Pr,ad as _r,ae as Rr,af as qr,ag as Fr,ah as Ur,ai as kr,aj as Br,ak as Nr,al as Lr,am as Mr,an as Dr,ao as zr,ap as Gr,aq as $r,ar as Hr,as as Or,at as jr,au as Wr,av as Vr,aw as Kr,ax as Jr,ay as Yr,az as Qr,aA as Zr,aB as Xr,aC as ts,aD as es,aE as as,aF as ns,aG as rs,aH as ss,aI as os,aJ as is,aK as cs,aL as us,aM as ds,aN as ls,aO as ms,aP as fs,aQ as ps,aR as hs,aS as ys,aT as gs,aU as bs,aV as ws,aW as xs,aX as Es,aY as Is,aZ as Ts,a_ as Cs,a$ as vs,b0 as Ss,b1 as As,b2 as Ps,b3 as _s,b4 as Rs,b5 as qs,b6 as Fs,b7 as Us,b8 as ks,b9 as Bs,ba as Ns,bb as Ls,bc as Ms,bd as Ds,be as zs,bf as Gs,bg as $s,bh as Hs,bi as Os,bj as js,bk as Ws,bl as Vs,bm as Ks,bn as Js,bo as Ys,bp as Qs,bq as Zs,br as Xs,bs as to,bt as eo,bu as ao,bv as no,bw as ro,bx as so,by as oo,bz as io,br as co,bA as uo,bB as lo,bC as mo,bD as fo,bE as po,bF as ho,bG as yo,bH as go,bH as bo,bI as wo,bJ as xo,bi as Eo,bj as Io,bK as To,bL as Co,bM as vo,bN as So,bO as Ao}from"./parseSignature-BTGduonN.js";import{R as B,b3 as k,S as Me,x as Y,a7 as De,w as ze,b4 as Ge,U as H,V as ct,W as G,B as mt,q as E,E as $e,a2 as He,b5 as j,a1 as wt,G as Nt,b6 as Lt,d as Mt,A as R,m as F,b7 as A,C as Oe,I as je,b8 as We,b9 as xt,y as Ve,ba as Ke,bb as Je,bc as Ye,bd as Et}from"./prepare-contract-call-BgQC6mTC.js";import{be as _o,O as Ro,a8 as qo,bf as Fo,bg as Uo,bh as ko,bi as Bo,bj as No,a9 as Lo,bk as Mo,J as Do,M as zo,bl as Go,bm as $o,bn as Ho,F as Oo,Q as jo,N as Wo,bo as Vo,bp as Ko,bq as Jo,br as Yo,bs as Qo,bt as Zo,bu as Xo,bv as ti,bw as ei,bx as ai,by as ni,bz as ri,bA as si,bB as oi,bC as ii,bD as ci,bE as ui,bF as di,bG as li,bH as mi,j as fi,bI as pi,bJ as hi,bK as yi,bL as gi,K as bi,bM as wi,t as xi,bM as Ei,bN as Ii,bO as Ti,bP as Ci,bQ as vi,bR as Si,bS as Ai,bT as Pi,bU as _i,K as Ri,bM as qi,bU as Fi,t as Ui,bM as ki}from"./prepare-contract-call-BgQC6mTC.js";import{u as ft}from"./to-serializable-transaction-Czix9FKM.js";import{b as Ni,B as Li,C as Mi,D as Di,E as zi,m as Gi,n as $i,F as Hi,s as Oi,a as ji}from"./to-serializable-transaction-Czix9FKM.js";import{w as Qe,h as Ze,g as Xe,v as ta,s as ea}from"./hashTypedData-DeIwBBiZ.js";import{I as Vi,a as Ki,b as Ji,d as Yi,c as Qi,e as Zi}from"./hashTypedData-DeIwBBiZ.js";import{T as aa,a as Q,W as It,b as na,U as ra,R as sa}from"./rpc-CkVMCqRn.js";import{A as tc,c as ec,B as ac,C as nc,D as rc,H as sc,I as oc,d as ic,e as cc,f as uc,J as dc,L as lc,M as mc,h as fc,P as pc,i as hc,j as yc,k as gc,l as bc,m as wc,S as xc,n as Ec,o as Ic,p as Tc,q as Cc,r as vc,s as Sc}from"./rpc-CkVMCqRn.js";import{_ as oa}from"./index-BlOA-94t.js";import{t as ia,H as ca}from"./sha256-B0gyy1xC.js";import{b as Pc,h as _c,a as Rc,c as qc,d as Fc,e as Uc,f as kc,g as Bc,i as Nc,j as Lc,k as Mc,l as Dc,n as zc,o as Gc,p as $c,q as Hc,r as Oc,u as jc,v as Wc,w as Vc,x as Kc,y as Jc,z as Yc,A as Qc,B as Zc,C as Xc,D as tu,E as eu,F as au,G as nu,I as ru,J as su,K as ou,L as iu,M as cu,N as uu,O as du,P as lu,Q as mu,R as fu,S as pu,m as hu,T as yu,U as gu,V as bu,W as wu,X as xu,Y as Eu,Z as Iu,_ as Tu,$ as Cu,a0 as vu,a1 as Su,a2 as Au,a3 as Pu,a4 as _u,a5 as Ru,a6 as qu,a7 as Fu,a8 as Uu,a9 as ku,aa as Bu,ab as Nu,ac as Lu,ad as Mu,ae as Du,af as zu,ag as Gu,ah as $u,ai as Hu,aj as Ou,ak as ju,al as Wu,am as Vu,an as Ku,ao as Ju,ap as Yu,aq as Qu,ar as Zu,as as Xu,at as td,au as ed,av as ad,aw as nd,ax as rd,ay as sd,az as od,aA as id,aB as cd,aC as ud,aD as dd,aE as ld,aF as md,aG as fd,aH as pd,aI as hd,aJ as yd,aK as gd,s as bd}from"./sha256-B0gyy1xC.js";import{i as pt}from"./get-bytecode-BkTv5uSc.js";import{d as xd,a as Ed}from"./get-bytecode-BkTv5uSc.js";import{ccipRequest as Td,ccipRequest as Cd,offchainLookup as vd,offchainLookupAbiItem as Sd,offchainLookupSignature as Ad}from"./ccip-BP3AEmeh.js";import{d as _d,a as Rd,f as qd}from"./transactionReceipt-BIgZypva.js";import"./utils-C7q7WeXn.js";import"./sentry-CkiT7C1x.js";import"./react-DOj4UJHT.js";import"./transaction-BQmD5CMJ.js";import"./dcl-schemas-BSiFmgyu.js";import"./ethers-BA7ZTT54.js";import"./intl-AKLEHPeO.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="0bd3ef8c-356a-4300-964a-6a01cf9ccec3",t._sentryDebugIdIdentifier="sentry-dbid-0bd3ef8c-356a-4300-964a-6a01cf9ccec3")}catch{}})();function Qn(t){let e;if(typeof t=="string")e=gt(t,{modifiers:bt});else{const a=Yt(t),n=t.length;for(let r=0;r<n;r++){const s=t[r];if(!Qt(s)){e=gt(s,{modifiers:bt,structs:a});break}}}if(!e)throw new Zt({param:t});return e}async function M(t,e){return M.internal(t,ut,"sendTransaction",e)}(function(t){async function e(a,n,r,s){const{abi:u,account:d=a.account,address:c,args:i,dataSuffix:f,functionName:m,...p}=s;if(typeof d>"u")throw new D({docsPath:"/docs/contract/writeContract"});const o=d?N(d):null,h=Xt({abi:u,args:i,functionName:m});try{return await U(a,n,r)({data:`${h}${f?f.replace("0x",""):""}`,to:c,account:o,...p})}catch(l){throw te(l,{abi:u,address:c,args:i,docsPath:"/docs/contract/writeContract",functionName:m,sender:o==null?void 0:o.address})}}t.internal=e})(M||(M={}));function Zn({abi:t,address:e,client:a}){const n=a,[r,s]=n?"public"in n&&"wallet"in n?[n.public,n.wallet]:"public"in n?[n.public,void 0]:"wallet"in n?[void 0,n.wallet]:[n,n]:[void 0,void 0],u=r!=null,d=s!=null,c={};let i=!1,f=!1,m=!1;for(const p of t)if(p.type==="function"?p.stateMutability==="view"||p.stateMutability==="pure"?i=!0:f=!0:p.type==="event"&&(m=!0),i&&f&&m)break;return u&&(i&&(c.read=new Proxy({},{get(p,o){return(...h)=>{const{args:l,options:y}=W(h);return U(r,ee,"readContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),f&&(c.simulate=new Proxy({},{get(p,o){return(...h)=>{const{args:l,options:y}=W(h);return U(r,ae,"simulateContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),m&&(c.createEventFilter=new Proxy({},{get(p,o){return(...h)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(h,l);return U(r,ne,"createContractEventFilter")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.getEvents=new Proxy({},{get(p,o){return(...h)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(h,l);return U(r,re,"getContractEvents")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.watchEvent=new Proxy({},{get(p,o){return(...h)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(h,l);return U(r,se,"watchContractEvent")({abi:t,address:e,eventName:o,args:y,...w})}}}))),d&&f&&(c.write=new Proxy({},{get(p,o){return(...h)=>{const{args:l,options:y}=W(h);return U(s,M,"writeContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),(u||d)&&f&&(c.estimateGas=new Proxy({},{get(p,o){return(...h)=>{const{args:l,options:y}=W(h);return U(r??s,oe,"estimateContractGas")({abi:t,address:e,functionName:o,args:l,...y,account:y.account??s.account})}}})),c.address=e,c.abi=t,c}function W(t){const e=t.length&&Array.isArray(t[0]),a=e?t[0]:[],n=(e?t[1]:t[0])??{};return{args:a,options:n}}function rt(t,e){let a=!1;Array.isArray(t[0])?a=!0:t.length===1?a=e.inputs.some(s=>s.indexed):t.length===2&&(a=!0);const n=a?t[0]:void 0,r=(a?t[1]:t[0])??{};return{args:n,options:r}}function Tt(t){return!t||typeof t!="object"||!("BYTES_PER_ELEMENT"in t)?!1:t.BYTES_PER_ELEMENT===1&&t.constructor.name==="Uint8Array"}function Xn(t){return t.opcode==="CREATE2"?da(t):ua(t)}function ua(t){const e=B(k(t.from));let a=B(t.nonce);return a[0]===0&&(a=new Uint8Array([])),k(`0x${Y(ia([e,a],"bytes")).slice(26)}`)}function da(t){const e=B(k(t.from)),a=Me(Tt(t.salt)?t.salt:B(t.salt),{size:32}),n="bytecodeHash"in t?Tt(t.bytecodeHash)?t.bytecodeHash:B(t.bytecodeHash):Y(t.bytecode,"bytes");return k(De(Y(ze([B("0xff"),e,a,n])),12))}function tr({chains:t,id:e}){return t.find(a=>a.id===e)}function Dt(t,e="hex"){const a=(()=>{if(typeof t=="string"){if(t.length>3&&t.length%2!==0)throw new Ge(t);return H(t)}return t})(),n=ct(a,{recursiveReadLimit:Number.POSITIVE_INFINITY});return zt(n,e)}function zt(t,e="hex"){if(t.bytes.length===0)return e==="hex"?G(t.bytes):t.bytes;const a=t.readByte();if(a<128&&t.decrementPosition(1),a<192){const r=Ct(t,a,128),s=t.readBytes(r);return e==="hex"?G(s):s}const n=Ct(t,a,192);return la(t,n,e)}function Ct(t,e,a){if(a===128&&e<128)return 1;if(e<=a+55)return e-a;if(e===a+55+1)return t.readUint8();if(e===a+55+2)return t.readUint16();if(e===a+55+3)return t.readUint24();if(e===a+55+4)return t.readUint32();throw new mt("Invalid RLP prefix")}function la(t,e,a){const n=t.position,r=[];for(;t.position-n<e;)r.push(zt(t,a));return r}function ma(t){return E(t)&&$e(t)===32}const fa=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Gt=Uint8Array.from(new Array(16).fill(0).map((t,e)=>e)),pa=Gt.map(t=>(9*t+5)%16),$t=(()=>{const a=[[Gt],[pa]];for(let n=0;n<4;n++)for(let r of a)r.push(r[n].map(s=>fa[s]));return a})(),Ht=$t[0],Ot=$t[1],jt=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(t=>Uint8Array.from(t)),ha=Ht.map((t,e)=>t.map(a=>jt[e][a])),ya=Ot.map((t,e)=>t.map(a=>jt[e][a])),ga=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),ba=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function vt(t,e,a,n){return t===0?e^a^n:t===1?e&a|~e&n:t===2?(e|~a)^n:t===3?e&n|a&~n:e^(a|~n)}const V=new Uint32Array(16);class wa extends ca{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:a,h2:n,h3:r,h4:s}=this;return[e,a,n,r,s]}set(e,a,n,r,s){this.h0=e|0,this.h1=a|0,this.h2=n|0,this.h3=r|0,this.h4=s|0}process(e,a){for(let o=0;o<16;o++,a+=4)V[o]=e.getUint32(a,!0);let n=this.h0|0,r=n,s=this.h1|0,u=s,d=this.h2|0,c=d,i=this.h3|0,f=i,m=this.h4|0,p=m;for(let o=0;o<5;o++){const h=4-o,l=ga[o],y=ba[o],w=Ht[o],g=Ot[o],C=ha[o],b=ya[o];for(let x=0;x<16;x++){const I=j(n+vt(o,s,d,i)+V[w[x]]+l,C[x])+m|0;n=m,m=i,i=j(d,10)|0,d=s,s=I}for(let x=0;x<16;x++){const I=j(r+vt(h,u,c,f)+V[g[x]]+y,b[x])+p|0;r=p,p=f,f=j(c,10)|0,c=u,u=I}}this.set(this.h1+d+f|0,this.h2+i+p|0,this.h3+m+r|0,this.h4+n+u|0,this.h0+s+c|0)}roundClean(){wt(V)}destroy(){this.destroyed=!0,wt(this.buffer),this.set(0,0,0,0,0)}}const xa=He(()=>new wa),Ea=xa;function er(t,e){const a=e||"hex",n=Ea(E(t,{strict:!1})?B(t):t);return a==="bytes"?n:Nt(n)}const st=new Map;async function Ia(t){const{getSocket:e,keepAlive:a=!0,key:n="socket",reconnect:r=!0,url:s}=t,{interval:u=3e4}=typeof a=="object"?a:{},{attempts:d=5,delay:c=2e3}=typeof r=="object"?r:{},i=JSON.stringify({keepAlive:a,key:n,url:s,reconnect:r});let f=st.get(i);if(f)return f;let m=0;const{schedule:p}=ie({id:i,fn:async()=>{const l=new Map,y=new Map;let w,g,C,b=!1;function x(){if(r&&m<d){if(b)return;b=!0,m++,g==null||g.close(),setTimeout(async()=>{await I().catch(console.error),b=!1},c)}else l.clear(),y.clear()}async function I(){const T=await e({onClose(){var v,P;for(const S of l.values())(v=S.onError)==null||v.call(S,new Q({url:s}));for(const S of y.values())(P=S.onError)==null||P.call(S,new Q({url:s}));x()},onError(v){var P,S;w=v;for(const _ of l.values())(P=_.onError)==null||P.call(_,w);for(const _ of y.values())(S=_.onError)==null||S.call(_,w);x()},onOpen(){w=void 0,m=0},onResponse(v){const P=v.method==="eth_subscription",S=P?v.params.subscription:v.id,_=P?y:l,q=_.get(S);q&&q.onResponse(v),P||_.delete(S)}});if(g=T,a&&(C&&clearInterval(C),C=setInterval(()=>{var v;return(v=g.ping)==null?void 0:v.call(g)},u)),r&&y.size>0){const v=y.entries();for(const[P,{onResponse:S,body:_,onError:q}]of v)_&&(y.delete(P),f==null||f.request({body:_,onResponse:S,onError:q}))}return T}return await I(),w=void 0,f={close(){C&&clearInterval(C),g.close(),st.delete(i)},get socket(){return g},request({body:T,onError:v,onResponse:P}){w&&v&&v(w);const S=T.id??ce.take(),_=q=>{var z;typeof q.id=="number"&&S!==q.id||(T.method==="eth_subscribe"&&typeof q.result=="string"&&y.set(q.result,{onResponse:_,onError:v,body:T}),T.method==="eth_unsubscribe"&&y.delete((z=T.params)==null?void 0:z[0]),P(q))};l.set(S,{onResponse:_,onError:v});try{g.request({body:{jsonrpc:"2.0",id:S,...T}})}catch(q){v==null||v(q)}},requestAsync({body:T,timeout:v=1e4}){return Qe(()=>new Promise((P,S)=>this.request({body:T,onError:S,onResponse:P})),{errorInstance:new aa({body:T,url:s}),timeout:v})},requests:l,subscriptions:y,url:s},st.set(i,f),[f]}}),[o,[h]]=await p();return h}async function J(t,e={}){const{keepAlive:a,reconnect:n}=e;return Ia({async getSocket({onClose:r,onError:s,onOpen:u,onResponse:d}){const c=await oa(()=>import("./native-YaWdzJM0.js").then(o=>o.n),__vite__mapDeps([0,1,2])).then(o=>o.WebSocket),i=new c(t);function f(){i.removeEventListener("close",f),i.removeEventListener("message",m),i.removeEventListener("error",s),i.removeEventListener("open",u),r()}function m({data:o}){if(!(typeof o=="string"&&o.trim().length===0))try{const h=JSON.parse(o);d(h)}catch(h){s(h)}}i.addEventListener("close",f),i.addEventListener("message",m),i.addEventListener("error",s),i.addEventListener("open",u),i.readyState===c.CONNECTING&&await new Promise((o,h)=>{i&&(i.onopen=o,i.onerror=h)});const{close:p}=i;return Object.assign(i,{close(){p.bind(i)(),f()},ping(){try{if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({url:i.url,cause:new Q({url:i.url})});const o={jsonrpc:"2.0",id:null,method:"net_version",params:[]};i.send(JSON.stringify(o))}catch(o){s(o)}},request({body:o}){if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({body:o,url:i.url,cause:new Q({url:i.url})});return i.send(JSON.stringify(o))}})},keepAlive:a,reconnect:n,url:t})}async function Ta(t){const e=await J(t);return Object.assign(e.socket,{requests:e.requests,subscriptions:e.subscriptions})}function Ca(t){return Lt(t,-32)===ue}function va(t){return de(t)}function ar(t){if(!Ca(t))return{signature:t};const[e,a,n]=Mt([{type:"address"},{type:"bytes"},{type:"bytes"}],t);return{address:e,data:a,signature:n}}function nr(t){if(!va(t))return{signature:t};const{authorization:e,to:a,...n}=le(t);return{authorization:{address:e.address,chainId:e.chainId,nonce:Number(e.nonce),r:R(e.r,{size:32}),s:R(e.s,{size:32}),yParity:e.yParity},...a?{address:a}:{},...n}}async function Sa({message:t,signature:e}){return Z({hash:me(t),signature:e})}async function Aa(t){const{domain:e,message:a,primaryType:n,signature:r,types:s}=t;return Z({hash:Ze({domain:e,message:a,primaryType:n,types:s}),signature:r})}function rr(t){const{address:e,data:a,signature:n,to:r="hex"}=t,s=fe({authorization:{address:t.authorization.address,chainId:t.authorization.chainId,nonce:BigInt(t.authorization.nonce),r:BigInt(t.authorization.r),s:BigInt(t.authorization.s),yParity:t.authorization.yParity},data:a,signature:n,to:e});return r==="hex"?s:H(s)}async function sr({address:t,hash:e,signature:a}){return pt(k(t),await Z({hash:e,signature:a}))}async function or({address:t,message:e,signature:a}){return pt(k(t),await Sa({message:e,signature:a}))}async function ir(t){const{address:e,domain:a,message:n,primaryType:r,signature:s,types:u}=t;return pt(k(e),await Aa({domain:a,message:n,primaryType:r,signature:s,types:u}))}function Pa(t){const e=Lt(t,0,1);if(e==="0x04")return"eip7702";if(e==="0x03")return"eip4844";if(e==="0x02")return"eip1559";if(e==="0x01")return"eip2930";if(e!=="0x"&&F(e)>=192)return"legacy";throw new pe({serializedType:e})}function _a(t){const e=Pa(t);return e==="eip1559"?Fa(t):e==="eip2930"?Ua(t):e==="eip4844"?qa(t):e==="eip7702"?Ra(t):ka(t)}function Ra(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,p,o,h]=e;if(e.length!==10&&e.length!==13)throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,authorizationList:m,...e.length>9?{v:p,r:o,s:h}:{}},serializedTransaction:t,type:"eip7702"});const l={chainId:F(a),type:"eip7702"};return E(d)&&d!=="0x"&&(l.to=d),E(u)&&u!=="0x"&&(l.gas=A(u)),E(i)&&i!=="0x"&&(l.data=i),E(n)&&(l.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(l.value=A(c)),E(s)&&s!=="0x"&&(l.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(l.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(l.accessList=tt(f)),m.length!==0&&m!=="0x"&&(l.authorizationList=Ba(m)),we(l),{...e.length===13?O(e):void 0,...l}}function qa(t){const e=X(t),a=e.length===4,n=a?e[0]:e,r=a?e.slice(1):[],[s,u,d,c,i,f,m,p,o,h,l,y,w,g]=n,[C,b,x]=r;if(!(n.length===11||n.length===14))throw new $({attributes:{chainId:s,nonce:u,maxPriorityFeePerGas:d,maxFeePerGas:c,gas:i,to:f,value:m,data:p,accessList:o,...n.length>9?{v:y,r:w,s:g}:{}},serializedTransaction:t,type:"eip4844"});const I={blobVersionedHashes:l,chainId:F(s),to:f,type:"eip4844"};return E(i)&&i!=="0x"&&(I.gas=A(i)),E(p)&&p!=="0x"&&(I.data=p),E(u)&&(I.nonce=u==="0x"?0:F(u)),E(m)&&m!=="0x"&&(I.value=A(m)),E(h)&&h!=="0x"&&(I.maxFeePerBlobGas=A(h)),E(c)&&c!=="0x"&&(I.maxFeePerGas=A(c)),E(d)&&d!=="0x"&&(I.maxPriorityFeePerGas=A(d)),o.length!==0&&o!=="0x"&&(I.accessList=tt(o)),C&&b&&x&&(I.sidecars=ge({blobs:C,commitments:b,proofs:x})),be(I),{...n.length===14?O(n):void 0,...I}}function Fa(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,p,o]=e;if(!(e.length===9||e.length===12))throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,...e.length>9?{v:m,r:p,s:o}:{}},serializedTransaction:t,type:"eip1559"});const h={chainId:F(a),type:"eip1559"};return E(d)&&d!=="0x"&&(h.to=d),E(u)&&u!=="0x"&&(h.gas=A(u)),E(i)&&i!=="0x"&&(h.data=i),E(n)&&(h.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(h.value=A(c)),E(s)&&s!=="0x"&&(h.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(h.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(h.accessList=tt(f)),he(h),{...e.length===12?O(e):void 0,...h}}function Ua(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,p]=e;if(!(e.length===8||e.length===11))throw new $({attributes:{chainId:a,nonce:n,gasPrice:r,gas:s,to:u,value:d,data:c,accessList:i,...e.length>8?{v:f,r:m,s:p}:{}},serializedTransaction:t,type:"eip2930"});const o={chainId:F(a),type:"eip2930"};return E(u)&&u!=="0x"&&(o.to=u),E(s)&&s!=="0x"&&(o.gas=A(s)),E(c)&&c!=="0x"&&(o.data=c),E(n)&&(o.nonce=n==="0x"?0:F(n)),E(d)&&d!=="0x"&&(o.value=A(d)),E(r)&&r!=="0x"&&(o.gasPrice=A(r)),i.length!==0&&i!=="0x"&&(o.accessList=tt(i)),ye(o),{...e.length===11?O(e):void 0,...o}}function ka(t){const e=Dt(t,"hex"),[a,n,r,s,u,d,c,i,f]=e;if(!(e.length===6||e.length===9))throw new $({attributes:{nonce:a,gasPrice:n,gas:r,to:s,value:u,data:d,...e.length>6?{v:c,r:i,s:f}:{}},serializedTransaction:t,type:"legacy"});const m={type:"legacy"};if(E(s)&&s!=="0x"&&(m.to=s),E(r)&&r!=="0x"&&(m.gas=A(r)),E(d)&&d!=="0x"&&(m.data=d),E(a)&&(m.nonce=a==="0x"?0:F(a)),E(u)&&u!=="0x"&&(m.value=A(u)),E(n)&&n!=="0x"&&(m.gasPrice=A(n)),xe(m),e.length===6)return m;const p=E(c)&&c!=="0x"?A(c):0n;if(f==="0x"&&i==="0x")return p>0&&(m.chainId=Number(p)),m;const o=p,h=Number((o-35n)/2n);if(h>0)m.chainId=h;else if(o!==27n&&o!==28n)throw new Ee({v:o});return m.v=o,m.s=f,m.r=i,m.yParity=o%2n===0n?1:0,m}function X(t){return Dt(`0x${t.slice(4)}`,"hex")}function tt(t){const e=[];for(let a=0;a<t.length;a++){const[n,r]=t[a];if(!Oe(n,{strict:!1}))throw new je({address:n});e.push({address:n,storageKeys:r.map(s=>ma(s)?s:We(s))})}return e}function Ba(t){const e=[];for(let a=0;a<t.length;a++){const[n,r,s,u,d,c]=t[a];e.push({address:r,chainId:n==="0x"?0:F(n),nonce:s==="0x"?0:F(s),...O([u,d,c])})}return e}function O(t){const e=t.slice(-3),a=e[0]==="0x"||A(e[0])===0n?27n:28n;return{r:xt(e[1],{size:32}),s:xt(e[2],{size:32}),v:a,yParity:a===27n?0:1}}class Na extends mt{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function Wt(t,e){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(t))throw new Na({value:t});let[a,n="0"]=t.split(".");const r=a.startsWith("-");if(r&&(a=a.slice(1)),n=n.replace(/(0+)$/,""),e===0)Math.round(+`.${n}`)===1&&(a=`${BigInt(a)+1n}`),n="";else if(n.length>e){const[s,u,d]=[n.slice(0,e-1),n.slice(e-1,e),n.slice(e)],c=Math.round(+`${u}.${d}`);c>9?n=`${BigInt(s)+BigInt(1)}0`.padStart(s.length+1,"0"):n=`${s}${c}`,n.length>e&&(n=n.slice(1),a=`${BigInt(a)+1n}`),n=n.slice(0,e)}else n=n.padEnd(e,"0");return BigInt(`${r?"-":""}${a}${n}`)}function cr(t,e="wei"){return Wt(t,Ie[e])}function ur(t,e="wei"){return Wt(t,Te[e])}async function La(t,{hash:e}){await t.request({method:`${t.mode}_dropTransaction`,params:[e]})}async function Ma(t){return t.request({method:`${t.mode}_dumpState`})}async function Da(t){return t.mode==="ganache"?await t.request({method:"eth_mining"}):await t.request({method:`${t.mode}_getAutomine`})}async function za(t){return await t.request({method:"txpool_content"})}async function Ga(t){const{pending:e,queued:a}=await t.request({method:"txpool_status"});return{pending:F(e),queued:F(a)}}async function $a(t,{address:e}){await t.request({method:`${t.mode}_impersonateAccount`,params:[e]})}async function Ha(t,{seconds:e}){return await t.request({method:"evm_increaseTime",params:[R(e)]})}async function Oa(t){return await t.request({method:"txpool_inspect"})}async function ja(t,{state:e}){await t.request({method:`${t.mode}_loadState`,params:[e]})}async function Wa(t,{blocks:e,interval:a}){t.mode==="ganache"?await t.request({method:"evm_mine",params:[{blocks:R(e)}]}):await t.request({method:`${t.mode}_mine`,params:[R(e),R(a||0)]})}async function Va(t){await t.request({method:`${t.mode}_removeBlockTimestampInterval`})}async function Ka(t,{blockNumber:e,jsonRpcUrl:a}={}){await t.request({method:`${t.mode}_reset`,params:[{forking:{blockNumber:Number(e),jsonRpcUrl:a}}]})}async function Ja(t,{id:e}){await t.request({method:"evm_revert",params:[e]})}async function Ya(t,e){var w,g,C;const{accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:m,...p}=e,o=(C=(g=(w=t.chain)==null?void 0:w.formatters)==null?void 0:g.transactionRequest)==null?void 0:C.format,l=(o||ft)({...St(p,{format:o}),accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:m},"sendUnsignedTransaction");return await t.request({method:"eth_sendUnsignedTransaction",params:[l]})}async function Qa(t,e){t.mode==="ganache"?e?await t.request({method:"miner_start"}):await t.request({method:"miner_stop"}):await t.request({method:"evm_setAutomine",params:[e]})}async function Za(t,{address:e,value:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountBalance",params:[e,R(a)]}):await t.request({method:`${t.mode}_setBalance`,params:[e,R(a)]})}async function Xa(t,{gasLimit:e}){await t.request({method:"evm_setBlockGasLimit",params:[R(e)]})}async function tn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:`${t.mode}_setBlockTimestampInterval`,params:[a]})}async function en(t,{address:e,bytecode:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountCode",params:[e,a]}):await t.request({method:`${t.mode}_setCode`,params:[e,a]})}async function an(t,{address:e}){await t.request({method:`${t.mode}_setCoinbase`,params:[e]})}async function nn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:"evm_setIntervalMining",params:[a]})}async function rn(t,e){await t.request({method:`${t.mode}_setLoggingEnabled`,params:[e]})}async function sn(t,{gasPrice:e}){await t.request({method:`${t.mode}_setMinGasPrice`,params:[R(e)]})}async function on(t,{baseFeePerGas:e}){await t.request({method:`${t.mode}_setNextBlockBaseFeePerGas`,params:[R(e)]})}async function cn(t,{timestamp:e}){await t.request({method:"evm_setNextBlockTimestamp",params:[R(e)]})}async function un(t,{address:e,nonce:a}){await t.request({method:`${t.mode}_setNonce`,params:[e,R(a)]})}async function dn(t,e){await t.request({method:`${t.mode}_setRpcUrl`,params:[e]})}async function ln(t,{address:e,index:a,value:n}){await t.request({method:`${t.mode}_setStorageAt`,params:[e,typeof a=="number"?R(a):a,n]})}async function mn(t){return await t.request({method:"evm_snapshot"})}async function fn(t,{address:e}){await t.request({method:`${t.mode}_stopImpersonatingAccount`,params:[e]})}function pn({mode:t}){return e=>{const a=e.extend(()=>({mode:t}));return{dropTransaction:n=>La(a,n),dumpState:()=>Ma(a),getAutomine:()=>Da(a),getTxpoolContent:()=>za(a),getTxpoolStatus:()=>Ga(a),impersonateAccount:n=>$a(a,n),increaseTime:n=>Ha(a,n),inspectTxpool:()=>Oa(a),loadState:n=>ja(a,n),mine:n=>Wa(a,n),removeBlockTimestampInterval:()=>Va(a),reset:n=>Ka(a,n),revert:n=>Ja(a,n),sendUnsignedTransaction:n=>Ya(a,n),setAutomine:n=>Qa(a,n),setBalance:n=>Za(a,n),setBlockGasLimit:n=>Xa(a,n),setBlockTimestampInterval:n=>tn(a,n),setCode:n=>en(a,n),setCoinbase:n=>an(a,n),setIntervalMining:n=>nn(a,n),setLoggingEnabled:n=>rn(a,n),setMinGasPrice:n=>sn(a,n),setNextBlockBaseFeePerGas:n=>on(a,n),setNextBlockTimestamp:n=>cn(a,n),setNonce:n=>un(a,n),setRpcUrl:n=>dn(a,n),setStorageAt:n=>ln(a,n),snapshot:()=>mn(a),stopImpersonatingAccount:n=>fn(a,n)}}}function dr(t){const{key:e="test",name:a="Test Client",mode:n}=t;return At({...t,key:e,name:a,type:"testClient"}).extend(s=>({mode:n,...pn({mode:n})(s)}))}async function hn(t,{chain:e}){const{id:a,name:n,nativeCurrency:r,rpcUrls:s,blockExplorers:u}=e;await t.request({method:"wallet_addEthereumChain",params:[{chainId:R(a),chainName:n,nativeCurrency:r,rpcUrls:s.default.http,blockExplorerUrls:u?Object.values(u).map(({url:d})=>d):void 0}]},{dedupe:!0,retryCount:0})}function yn(t,e){const{abi:a,args:n,bytecode:r,...s}=e,u=Ce({abi:a,args:n,bytecode:r});return ut(t,{...s,...s.authorizationList?{to:null}:{},data:u})}async function gn(t){var a;return((a=t.account)==null?void 0:a.type)==="local"?[t.account.address]:(await t.request({method:"eth_accounts"},{dedupe:!0})).map(n=>Ve(n))}async function bn(t,e={}){const{account:a=t.account,chainId:n}=e,r=a?N(a):void 0,s=n?[r==null?void 0:r.address,[R(n)]]:[r==null?void 0:r.address],u=await t.request({method:"wallet_getCapabilities",params:s}),d={};for(const[c,i]of Object.entries(u)){d[Number(c)]={};for(let[f,m]of Object.entries(i))f==="addSubAccount"&&(f="unstable_addSubAccount"),d[Number(c)][f]=m}return typeof n=="number"?d[n]:d}async function wn(t){return await t.request({method:"wallet_getPermissions"},{dedupe:!0})}async function xn(t){return(await t.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(a=>k(a))}async function En(t,e){return t.request({method:"wallet_requestPermissions",params:[e]},{retryCount:0})}async function In(t,e){const{chain:a=t.chain}=e,n=e.timeout??Math.max(((a==null?void 0:a.blockTime)??0)*3,5e3),r=await Pt(t,e);return await _t(t,{...e,id:r.id,timeout:n})}const ot=new Ke(128);async function Vt(t,e){var x,I,T,v;const{account:a=t.account,chain:n=t.chain,accessList:r,authorizationList:s,blobs:u,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:p,nonce:o,pollingInterval:h,throwOnReceiptRevert:l,type:y,value:w,...g}=e,C=e.timeout??Math.max(((n==null?void 0:n.blockTime)??0)*3,5e3);if(typeof a>"u")throw new D({docsPath:"/docs/actions/wallet/sendTransactionSync"});const b=a?N(a):null;try{Rt(e);const P=await(async()=>{if(e.to)return e.to;if(e.to!==null&&s&&s.length>0)return await ve({authorization:s[0]}).catch(()=>{throw new mt("`to` is required. Could not infer from `authorizationList`.")})})();if((b==null?void 0:b.type)==="json-rpc"||b===null){let S;n!==null&&(S=await U(t,dt,"getChainId")({}),qt({currentChainId:S,chain:n}));const _=(T=(I=(x=t.chain)==null?void 0:x.formatters)==null?void 0:I.transactionRequest)==null?void 0:T.format,z=(_||ft)({...St(g,{format:_}),accessList:r,account:b,authorizationList:s,blobs:u,chainId:S,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:p,nonce:o,to:P,type:y,value:w},"sendTransaction"),ht=ot.get(t.uid),Kt=ht?"wallet_sendTransaction":"eth_sendTransaction",Jt=await(async()=>{try{return await t.request({method:Kt,params:[z]},{retryCount:0})}catch(yt){if(ht===!1)throw yt;const L=yt;if(L.name==="InvalidInputRpcError"||L.name==="InvalidParamsRpcError"||L.name==="MethodNotFoundRpcError"||L.name==="MethodNotSupportedRpcError")return await t.request({method:"wallet_sendTransaction",params:[z]},{retryCount:0}).then(at=>(ot.set(t.uid,!0),at)).catch(at=>{const nt=at;throw nt.name==="MethodNotFoundRpcError"||nt.name==="MethodNotSupportedRpcError"?(ot.set(t.uid,!1),L):nt});throw L}})(),et=await U(t,Se,"waitForTransactionReceipt")({checkReplacement:!1,hash:Jt,pollingInterval:h,timeout:C});if(l&&et.status==="reverted")throw new Ae({receipt:et});return et}if((b==null?void 0:b.type)==="local"){const S=await U(t,Ft,"prepareTransactionRequest")({account:b,accessList:r,authorizationList:s,blobs:u,chain:n,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:p,nonce:o,nonceManager:b.nonceManager,parameters:[...Pe,"sidecars"],type:y,value:w,...g,to:P}),_=(v=n==null?void 0:n.serializers)==null?void 0:v.transaction,q=await b.signTransaction(S,{serializer:_});return await U(t,Ut,"sendRawTransactionSync")({serializedTransaction:q,throwOnReceiptRevert:l})}throw(b==null?void 0:b.type)==="smart"?new K({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new K({docsPath:"/docs/actions/wallet/sendTransactionSync",type:b==null?void 0:b.type})}catch(P){throw P instanceof K?P:_e(P,{...e,account:b,chain:e.chain||void 0})}}async function Tn(t,e){const{id:a}=e;await t.request({method:"wallet_showCallsStatus",params:[a]})}async function Cn(t,e){const{account:a=t.account}=e;if(!a)throw new D({docsPath:"/docs/eip7702/signAuthorization"});const n=N(a);if(!n.signAuthorization)throw new K({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:n.type});const r=await kt(t,e);return n.signAuthorization(r)}async function vn(t,{account:e=t.account,message:a}){if(!e)throw new D({docsPath:"/docs/actions/wallet/signMessage"});const n=N(e);if(n.signMessage)return n.signMessage({message:a});const r=typeof a=="string"?Je(a):a.raw instanceof Uint8Array?Nt(a.raw):a.raw;return t.request({method:"personal_sign",params:[r,n.address]},{retryCount:0})}async function Sn(t,e){var i,f,m,p;const{account:a=t.account,chain:n=t.chain,...r}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTransaction"});const s=N(a);Rt({account:s,...e});const u=await U(t,dt,"getChainId")({});n!==null&&qt({currentChainId:u,chain:n});const d=(n==null?void 0:n.formatters)||((i=t.chain)==null?void 0:i.formatters),c=((f=d==null?void 0:d.transactionRequest)==null?void 0:f.format)||ft;return s.signTransaction?s.signTransaction({...r,chainId:u},{serializer:(p=(m=t.chain)==null?void 0:m.serializers)==null?void 0:p.transaction}):await t.request({method:"eth_signTransaction",params:[{...c({...r,account:s},"signTransaction"),chainId:R(u),from:s.address}]},{retryCount:0})}async function An(t,e){const{account:a=t.account,domain:n,message:r,primaryType:s}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTypedData"});const u=N(a),d={EIP712Domain:Xe({domain:n}),...e.types};if(ta({domain:n,message:r,primaryType:s,types:d}),u.signTypedData)return u.signTypedData({domain:n,message:r,primaryType:s,types:d});const c=ea({domain:n,message:r,primaryType:s,types:d});return t.request({method:"eth_signTypedData_v4",params:[u.address,c]},{retryCount:0})}async function Pn(t,{id:e}){await t.request({method:"wallet_switchEthereumChain",params:[{chainId:R(e)}]},{retryCount:0})}async function _n(t,e){return await t.request({method:"wallet_watchAsset",params:e},{retryCount:0})}async function Rn(t,e){return M.internal(t,Vt,"sendTransactionSync",e)}function qn(t){return{addChain:e=>hn(t,e),deployContract:e=>yn(t,e),getAddresses:()=>gn(t),getCallsStatus:e=>qe(t,e),getCapabilities:e=>bn(t,e),getChainId:()=>dt(t),getPermissions:()=>wn(t),prepareAuthorization:e=>kt(t,e),prepareTransactionRequest:e=>Ft(t,e),requestAddresses:()=>xn(t),requestPermissions:e=>En(t,e),sendCalls:e=>Pt(t,e),sendCallsSync:e=>In(t,e),sendRawTransaction:e=>Re(t,e),sendRawTransactionSync:e=>Ut(t,e),sendTransaction:e=>ut(t,e),sendTransactionSync:e=>Vt(t,e),showCallsStatus:e=>Tn(t,e),signAuthorization:e=>Cn(t,e),signMessage:e=>vn(t,e),signTransaction:e=>Sn(t,e),signTypedData:e=>An(t,e),switchChain:e=>Pn(t,e),waitForCallsStatus:e=>_t(t,e),watchAsset:e=>_n(t,e),writeContract:e=>M(t,e),writeContractSync:e=>Rn(t,e)}}function lr(t){const{key:e="wallet",name:a="Wallet Client",transport:n}=t;return At({...t,key:e,name:a,transport:n,type:"walletClient"}).extend(qn)}function mr(t,e={}){const{key:a="custom",methods:n,name:r="Custom Provider",retryDelay:s}=e;return({retryCount:u})=>lt({key:a,methods:n,name:r,request:t.request.bind(t),retryCount:e.retryCount??u,retryDelay:s,type:"custom"})}function fr(t,e={}){const{key:a="fallback",name:n="Fallback",rank:r=!1,shouldThrow:s=Fn,retryCount:u,retryDelay:d}=e;return(({chain:c,pollingInterval:i=4e3,timeout:f,...m})=>{let p=t,o=()=>{};const h=lt({key:a,name:n,async request({method:l,params:y}){let w;const g=async(C=0)=>{const b=p[C]({...m,chain:c,retryCount:0,timeout:f});try{const x=await b.request({method:l,params:y});return o({method:l,params:y,response:x,transport:b,status:"success"}),x}catch(x){if(o({error:x,method:l,params:y,transport:b,status:"error"}),s(x)||C===p.length-1||(w??(w=p.slice(C+1).some(I=>{const{include:T,exclude:v}=I({chain:c}).config.methods||{};return T?T.includes(l):v?!v.includes(l):!0})),!w))throw x;return g(C+1)}};return g()},retryCount:u,retryDelay:d,type:"fallback"},{onResponse:l=>o=l,transports:p.map(l=>l({chain:c,retryCount:0}))});if(r){const l=typeof r=="object"?r:{};Un({chain:c,interval:l.interval??i,onTransports:y=>p=y,ping:l.ping,sampleCount:l.sampleCount,timeout:l.timeout,transports:p,weights:l.weights})}return h})}function Fn(t){return!!("code"in t&&typeof t.code=="number"&&(t.code===na.code||t.code===ra.code||Fe.nodeMessage.test(t.message)||t.code===5e3))}function Un({chain:t,interval:e=4e3,onTransports:a,ping:n,sampleCount:r=10,timeout:s=1e3,transports:u,weights:d={}}){const{stability:c=.7,latency:i=.3}=d,f=[],m=async()=>{const p=await Promise.all(u.map(async l=>{const y=l({chain:t,retryCount:0,timeout:s}),w=Date.now();let g,C;try{await(n?n({transport:y}):y.request({method:"net_listening"})),C=1}catch{C=0}finally{g=Date.now()}return{latency:g-w,success:C}}));f.push(p),f.length>r&&f.shift();const o=Math.max(...f.map(l=>Math.max(...l.map(({latency:y})=>y)))),h=u.map((l,y)=>{const w=f.map(I=>I[y].latency),C=1-w.reduce((I,T)=>I+T,0)/w.length/o,b=f.map(I=>I[y].success),x=b.reduce((I,T)=>I+T,0)/b.length;return x===0?[0,y]:[i*C+c*x,y]}).sort((l,y)=>y[0]-l[0]);a(h.map(([,l])=>u[l])),await Ue(e),m()};m()}function pr(t,e={}){const{keepAlive:a,key:n="webSocket",methods:r,name:s="WebSocket JSON-RPC",reconnect:u,retryDelay:d}=e;return({chain:c,retryCount:i,timeout:f})=>{var l;const m=e.retryCount??i,p=f??e.timeout??1e4,o=t||((l=c==null?void 0:c.rpcUrls.default.webSocket)==null?void 0:l[0]),h={keepAlive:a,reconnect:u};if(!o)throw new ke;return lt({key:n,methods:r,name:s,async request({method:y,params:w}){const g={method:y,params:w},C=await J(o,h),{error:b,result:x}=await C.requestAsync({body:g,timeout:p});if(b)throw new sa({body:g,error:b,url:o});return x},retryCount:m,retryDelay:d,timeout:p,type:"webSocket"},{getSocket(){return Ta(o)},getRpcClient(){return J(o,h)},async subscribe({params:y,onData:w,onError:g}){const C=await J(o,h),{result:b}=await new Promise((x,I)=>C.request({body:{method:"eth_subscribe",params:y},onError(T){I(T),g==null||g(T)},onResponse(T){if(T.error){I(T.error),g==null||g(T.error);return}if(typeof T.id=="number"){x(T);return}T.method==="eth_subscription"&&w(T.params)}}));return{subscriptionId:b,async unsubscribe(){return new Promise(x=>C.request({body:{method:"eth_unsubscribe",params:[b]},onResponse:x}))}}}})}}class hr extends Error{constructor(e,a){super(a),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=e,this.details=a}}const it="/docs/contract/decodeDeployData";function yr(t){const{abi:e,bytecode:a,data:n}=t;if(n===a)return{bytecode:a};const r=e.find(u=>"type"in u&&u.type==="constructor");if(!r)throw new Ye({docsPath:it});if(!("inputs"in r))throw new Et({docsPath:it});if(!r.inputs||r.inputs.length===0)throw new Et({docsPath:it});return{args:Mt(r.inputs,`0x${n.replace(a,"")}`),bytecode:a}}function gr(t){const e=t.to??(typeof t.blobs[0]=="string"?"hex":"bytes"),a=typeof t.blobs[0]=="string"?t.blobs.map(d=>H(d)):t.blobs,n=a.reduce((d,c)=>d+c.length,0),r=ct(new Uint8Array(n));let s=!0;for(const d of a){const c=ct(d);for(;s&&c.position<d.length;){c.incrementPosition(1);let i=31;d.length-c.position<31&&(i=d.length-c.position);for(const f in Array.from({length:i})){const m=c.readByte();if(m===128&&!c.inspectBytes(c.remaining).includes(128)){s=!1;break}r.pushByte(m)}}}const u=r.bytes.slice(0,r.position);return e==="hex"?G(u):u}function br(t){const{sidecars:e,version:a}=t,n=t.to??(typeof e[0].blob=="string"?"hex":"bytes"),r=[];for(const{commitment:s}of e)r.push(Be({commitment:s,to:n,version:a}));return r}const kn=2147483648;function wr(t){if(t===1)return 60n;if(t>=kn||t<0)throw new Ne({chainId:t});return BigInt((2147483648|t)>>>0)}function Bn({blobToKzgCommitment:t,computeBlobKzgProof:e}){return{blobToKzgCommitment:t,computeBlobKzgProof:e}}function xr(t,e){try{t.loadTrustedSetup(e)}catch(a){const n=a;if(!n.message.includes("trusted setup is already loaded"))throw n}return Bn(t)}function Er({r:t,yParityAndS:e}){const a=H(e),n=a[0]&128?1:0,r=a;return n===1&&(r[0]&=127),{r:t,s:G(r),yParity:n}}function Ir(t){const{r:e,s:a}=Bt.Signature.fromCompact(t.slice(2,130));return{r:R(e,{size:32}),yParityAndS:R(a,{size:32})}}async function Tr(t){const{serializedTransaction:e,signature:a}=t,n=_a(e),r=a??{r:n.r,s:n.s,v:n.v,yParity:n.yParity},s=Le({...n,r:void 0,s:void 0,v:void 0,yParity:void 0,sidecars:void 0});return await Z({hash:Y(s),signature:r})}function Cr({r:t,yParityAndS:e}){return`0x${new Bt.Signature(A(t),A(e)).toCompactHex()}`}function vr(t){const{r:e,s:a,v:n,yParity:r}=t,s=Number(r??n-27n);let u=a;if(s===1){const d=H(a);d[0]|=128,u=G(d)}return{r:e,yParityAndS:u}}export{Ye as AbiConstructorNotFoundError,Et as AbiConstructorParamsNotFoundError,_o as AbiDecodingDataSizeInvalidError,Ro as AbiDecodingDataSizeTooSmallError,qo as AbiDecodingZeroDataError,Fo as AbiEncodingArrayLengthMismatchError,Uo as AbiEncodingBytesSizeMismatchError,ko as AbiEncodingLengthMismatchError,Bo as AbiErrorInputsNotFoundError,No as AbiErrorNotFoundError,Lo as AbiErrorSignatureNotFoundError,Mo as AbiEventNotFoundError,Do as AbiEventSignatureEmptyTopicsError,zo as AbiEventSignatureNotFoundError,Go as AbiFunctionNotFoundError,$o as AbiFunctionOutputsNotFoundError,Ho as AbiFunctionSignatureNotFoundError,Pr as AccountStateConflictError,tc as AtomicReadyWalletRejectedUpgradeError,ec as AtomicityNotSupportedError,mt as BaseError,_r as BaseFeeScalarError,Rr as BlockNotFoundError,qr as BundleFailedError,ac as BundleTooLargeError,Oo as BytesSizeMismatchError,Fr as CallExecutionError,nc as ChainDisconnectedError,Ur as ChainDoesNotSupportContract,kr as ChainMismatchError,Br as ChainNotFoundError,Nr as CircularReferenceError,Lr as ClientChainNotConfiguredError,Mr as ContractFunctionExecutionError,Dr as ContractFunctionRevertedError,zr as ContractFunctionZeroDataError,Gr as CounterfactualDeploymentFailedError,jo as DecodeLogDataMismatch,Wo as DecodeLogTopicsMismatch,rc as DuplicateIdError,hr as EIP1193ProviderRpcError,$r as Eip1559FeesNotSupportedError,Hr as EnsAvatarInvalidNftUriError,Or as EnsAvatarUnsupportedNamespaceError,jr as EnsAvatarUriResolutionError,Ne as EnsInvalidChainIdError,Wr as EstimateGasExecutionError,Fe as ExecutionRevertedError,Vr as FeeCapTooHighError,Kr as FeeCapTooLowError,Jr as FeeConflictError,Vo as FilterTypeNotSupportedError,sc as HttpRequestError,Yr as InsufficientFundsError,Ko as IntegerOutOfRangeError,oc as InternalRpcError,Qr as IntrinsicGasTooHighError,Zr as IntrinsicGasTooLowError,Jo as InvalidAbiDecodingTypeError,Yo as InvalidAbiEncodingTypeError,Xr as InvalidAbiItemError,Zt as InvalidAbiParameterError,ts as InvalidAbiParametersError,es as InvalidAbiTypeParameterError,je as InvalidAddressError,Qo as InvalidArrayError,Zo as InvalidBytesBooleanError,as as InvalidChainIdError,Na as InvalidDecimalNumberError,Xo as InvalidDefinitionTypeError,Vi as InvalidDomainError,ns as InvalidFunctionModifierError,ti as InvalidHexBooleanError,Ge as InvalidHexValueError,ic as InvalidInputRpcError,Ee as InvalidLegacyVError,rs as InvalidModifierError,ss as InvalidParameterError,cc as InvalidParamsRpcError,os as InvalidParenthesisError,Ki as InvalidPrimaryTypeError,uc as InvalidRequestRpcError,is as InvalidSerializableTransactionError,$ as InvalidSerializedTransactionError,pe as InvalidSerializedTransactionTypeError,cs as InvalidSignatureError,us as InvalidStorageKeySizeError,ds as InvalidStructSignatureError,Ji as InvalidStructTypeError,dc as JsonRpcVersionUnsupportedError,lc as LimitExceededRpcError,ls as MaxFeePerGasTooLowError,mc as MethodNotFoundRpcError,fc as MethodNotSupportedRpcError,ms as NonceMaxValueError,fs as NonceTooHighError,ps as NonceTooLowError,pc as ParseRpcError,hc as ProviderDisconnectedError,yc as ProviderRpcError,hs as RawContractError,gc as ResourceNotFoundRpcError,bc as ResourceUnavailableRpcError,wc as RpcError,sa as RpcRequestError,ei as SizeExceedsPaddingSizeError,ai as SizeOverflowError,ni as SliceOffsetOutOfBoundsError,Q as SocketClosedError,ys as SolidityProtectedKeywordError,gs as StateAssignmentConflictError,xc as SwitchChainError,aa as TimeoutError,bs as TipAboveFeeCapError,ws as TransactionExecutionError,xs as TransactionNotFoundError,Es as TransactionReceiptNotFoundError,na as TransactionRejectedRpcError,Is as TransactionTypeNotSupportedError,Ec as UnauthorizedProviderError,Ic as UnknownBundleIdError,Ts as UnknownNodeError,Tc as UnknownRpcError,Cs as UnknownSignatureError,vs as UnknownTypeError,Cc as UnsupportedChainIdError,vc as UnsupportedNonOptionalCapabilityError,ri as UnsupportedPackedAbiType,Sc as UnsupportedProviderMethodError,ke as UrlRequiredError,ra as UserRejectedRequestError,Ss as WaitForCallsStatusTimeoutError,As as WaitForTransactionReceiptTimeoutError,It as WebSocketRequestError,qt as assertCurrentChain,Rt as assertRequest,he as assertTransactionEIP1559,ye as assertTransactionEIP2930,xe as assertTransactionLegacy,Ps as blobsToCommitments,_s as blobsToProofs,si as boolToBytes,oi as boolToHex,ii as bytesToBigInt,ci as bytesToBool,G as bytesToHex,ui as bytesToNumber,Pc as bytesToRlp,di as bytesToString,Td as ccipFetch,Cd as ccipRequest,Ve as checksumAddress,Be as commitmentToVersionedHash,Rs as commitmentsToVersionedHashes,Cr as compactSignatureToHex,Er as compactSignatureToSignature,ze as concat,li as concatBytes,mi as concatHex,At as createClient,qs as createNonceManager,Fs as createPublicClient,dr as createTestClient,lt as createTransport,lr as createWalletClient,mr as custom,Mt as decodeAbiParameters,yr as decodeDeployData,Ni as decodeErrorResult,xd as decodeEventLog,Us as decodeFunctionData,ks as decodeFunctionResult,Li as defineBlock,Mi as defineChain,Bn as defineKzg,Di as defineTransaction,_d as defineTransactionReceipt,zi as defineTransactionRequest,Bs as deploylessCallViaBytecodeBytecode,Ns as deploylessCallViaFactoryBytecode,Yi as domainSeparator,fi as encodeAbiParameters,Ce as encodeDeployData,Ls as encodeErrorResult,pi as encodeEventTopics,Xt as encodeFunctionData,Ms as encodeFunctionResult,Ds as encodePacked,zs as erc1155Abi,Gs as erc20Abi,$s as erc20Abi_bytes32,Hs as erc4626Abi,Os as erc6492SignatureValidatorAbi,js as erc6492SignatureValidatorByteCode,Ws as erc721Abi,Vs as ethAddress,Ie as etherUnits,tr as extractChain,fr as fallback,Gi as formatBlock,Ks as formatEther,Js as formatGwei,Rd as formatLog,$i as formatTransaction,qd as formatTransactionReceipt,ft as formatTransactionRequest,Ys as formatUnits,gr as fromBlobs,hi as fromBytes,yi as fromHex,Dt as fromRlp,gi as getAbiItem,k as getAddress,Qs as getChainContractAddress,Zn as getContract,Xn as getContractAddress,te as getContractError,da as getCreate2Address,ua as getCreateAddress,bi as getEventSelector,wi as getEventSignature,xi as getFunctionSelector,Ei as getFunctionSignature,Pa as getSerializedTransactionType,Zs as getTransactionType,Xe as getTypesForEIP712Domain,Te as gweiUnits,Qi as hashDomain,me as hashMessage,Zi as hashStruct,Ze as hashTypedData,A as hexToBigInt,Ii as hexToBool,H as hexToBytes,Ir as hexToCompactSignature,F as hexToNumber,_c as hexToRlp,Xs as hexToSignature,Ti as hexToString,to as http,Oe as isAddress,pt as isAddressEqual,Tt as isBytes,Ca as isErc6492Signature,va as isErc8010Signature,ma as isHash,E as isHex,Y as keccak256,eo as labelhash,Rc as maxInt104,qc as maxInt112,Fc as maxInt120,Uc as maxInt128,kc as maxInt136,Bc as maxInt144,Nc as maxInt152,Lc as maxInt16,Mc as maxInt160,Dc as maxInt168,zc as maxInt176,Gc as maxInt184,$c as maxInt192,Hc as maxInt200,Oc as maxInt208,jc as maxInt216,Wc as maxInt224,Vc as maxInt232,Kc as maxInt24,Jc as maxInt240,Yc as maxInt248,Qc as maxInt256,Zc as maxInt32,Xc as maxInt40,tu as maxInt48,eu as maxInt56,au as maxInt64,nu as maxInt72,ru as maxInt8,su as maxInt80,ou as maxInt88,iu as maxInt96,cu as maxUint104,uu as maxUint112,du as maxUint120,lu as maxUint128,mu as maxUint136,fu as maxUint144,pu as maxUint152,hu as maxUint16,yu as maxUint160,gu as maxUint168,bu as maxUint176,wu as maxUint184,xu as maxUint192,Eu as maxUint200,Iu as maxUint208,Tu as maxUint216,Cu as maxUint224,vu as maxUint232,Su as maxUint24,Au as maxUint240,Pu as maxUint248,_u as maxUint256,Ru as maxUint32,qu as maxUint40,Fu as maxUint48,Uu as maxUint56,ku as maxUint64,Bu as maxUint72,Nu as maxUint8,Lu as maxUint80,Mu as maxUint88,Du as maxUint96,zu as minInt104,Gu as minInt112,$u as minInt120,Hu as minInt128,Ou as minInt136,ju as minInt144,Wu as minInt152,Vu as minInt16,Ku as minInt160,Ju as minInt168,Yu as minInt176,Qu as minInt184,Zu as minInt192,Xu as minInt200,td as minInt208,ed as minInt216,ad as minInt224,nd as minInt232,rd as minInt24,sd as minInt240,od as minInt248,id as minInt256,cd as minInt32,ud as minInt40,dd as minInt48,ld as minInt56,md as minInt64,fd as minInt72,pd as minInt8,hd as minInt80,yd as minInt88,gd as minInt96,ao as multicall3Abi,no as namehash,ro as nonceManager,Ci as numberToBytes,R as numberToHex,vd as offchainLookup,Sd as offchainLookupAbiItem,Ad as offchainLookupSignature,Me as pad,vi as padBytes,xt as padHex,so as parseAbi,oo as parseAbiItem,Qn as parseAbiParameter,io as parseAbiParameters,Ir as parseCompactSignature,ar as parseErc6492Signature,nr as parseErc8010Signature,cr as parseEther,Ed as parseEventLogs,ur as parseGwei,co as parseSignature,_a as parseTransaction,Wt as parseUnits,uo as prepareEncodeFunctionData,lo as presignMessagePrefix,mo as publicActions,Z as recoverAddress,Sa as recoverMessageAddress,fo as recoverPublicKey,Tr as recoverTransactionAddress,Aa as recoverTypedDataAddress,er as ripemd160,po as rpcSchema,Hi as rpcTransactionType,ho as serializeAccessList,Cr as serializeCompactSignature,yo as serializeErc6492Signature,rr as serializeErc8010Signature,go as serializeSignature,Le as serializeTransaction,ea as serializeTypedData,Si as setErrorConfig,xr as setupKzg,bd as sha256,Fn as shouldThrow,br as sidecarsToVersionedHashes,vr as signatureToCompactSignature,bo as signatureToHex,$e as size,De as slice,Ai as sliceBytes,Lt as sliceHex,Pi as stringToBytes,Je as stringToHex,Oi as stringify,pn as testActions,ge as toBlobSidecars,wo as toBlobs,B as toBytes,wr as toCoinType,_i as toEventHash,Ri as toEventSelector,qi as toEventSignature,Fi as toFunctionHash,Ui as toFunctionSelector,ki as toFunctionSignature,Nt as toHex,xo as toPrefixedMessage,ia as toRlp,ji as transactionType,We as trim,Eo as universalSignatureValidatorAbi,Io as universalSignatureValidatorByteCode,ta as validateTypedData,sr as verifyHash,or as verifyMessage,ir as verifyTypedData,qn as walletActions,pr as webSocket,To as weiUnits,Co as withCache,vo as withRetry,Qe as withTimeout,So as zeroAddress,Ao as zeroHash};
3
- //# sourceMappingURL=index-CpbLUzmL.js.map
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/native-CXAGKkI7.js","_assets/sentry-faeuEJiQ.js","_assets/react-Io5Wove7.js"])))=>i.map(i=>d[i]);
2
+ import{p as gt,b as Yt,i as Qt,I as Zt,m as bt,s as ut,A as D,e as Xt,g as U,d as te,f as N,r as ee,h as ae,j as ne,k as re,w as se,n as oe,o as ie,q as ce,t as ue,v as de,u as le,x as Z,y as me,z as fe,B as pe,C as $,D as he,E as ye,F as ge,G as be,H as we,J as xe,K as Ee,L as Ie,M as Te,N as St,O as At,P as Ce,Q as Pt,R as _t,S as Rt,T as ve,U as dt,V as qt,W as Se,X as Ae,Y as Ft,Z as Pe,_ as Ut,$ as K,a0 as _e,a1 as kt,a2 as Re,a3 as qe,a4 as lt,a5 as Fe,a6 as Ue,a7 as ke,a8 as Be,a9 as Ne,aa as Bt,ab as Le}from"./parseSignature-DCX2Homx.js";import{ac as Pr,ad as _r,ae as Rr,af as qr,ag as Fr,ah as Ur,ai as kr,aj as Br,ak as Nr,al as Lr,am as Mr,an as Dr,ao as zr,ap as Gr,aq as $r,ar as Hr,as as Or,at as jr,au as Wr,av as Vr,aw as Kr,ax as Jr,ay as Yr,az as Qr,aA as Zr,aB as Xr,aC as ts,aD as es,aE as as,aF as ns,aG as rs,aH as ss,aI as os,aJ as is,aK as cs,aL as us,aM as ds,aN as ls,aO as ms,aP as fs,aQ as ps,aR as hs,aS as ys,aT as gs,aU as bs,aV as ws,aW as xs,aX as Es,aY as Is,aZ as Ts,a_ as Cs,a$ as vs,b0 as Ss,b1 as As,b2 as Ps,b3 as _s,b4 as Rs,b5 as qs,b6 as Fs,b7 as Us,b8 as ks,b9 as Bs,ba as Ns,bb as Ls,bc as Ms,bd as Ds,be as zs,bf as Gs,bg as $s,bh as Hs,bi as Os,bj as js,bk as Ws,bl as Vs,bm as Ks,bn as Js,bo as Ys,bp as Qs,bq as Zs,br as Xs,bs as to,bt as eo,bu as ao,bv as no,bw as ro,bx as so,by as oo,bz as io,br as co,bA as uo,bB as lo,bC as mo,bD as fo,bE as po,bF as ho,bG as yo,bH as go,bH as bo,bI as wo,bJ as xo,bi as Eo,bj as Io,bK as To,bL as Co,bM as vo,bN as So,bO as Ao}from"./parseSignature-DCX2Homx.js";import{R as B,b3 as k,S as Me,x as Y,a7 as De,w as ze,b4 as Ge,U as H,V as ct,W as G,B as mt,q as E,E as $e,a2 as He,b5 as j,a1 as wt,G as Nt,b6 as Lt,d as Mt,A as R,m as F,b7 as A,C as Oe,I as je,b8 as We,b9 as xt,y as Ve,ba as Ke,bb as Je,bc as Ye,bd as Et}from"./prepare-contract-call-B3PEXjk8.js";import{be as _o,O as Ro,a8 as qo,bf as Fo,bg as Uo,bh as ko,bi as Bo,bj as No,a9 as Lo,bk as Mo,J as Do,M as zo,bl as Go,bm as $o,bn as Ho,F as Oo,Q as jo,N as Wo,bo as Vo,bp as Ko,bq as Jo,br as Yo,bs as Qo,bt as Zo,bu as Xo,bv as ti,bw as ei,bx as ai,by as ni,bz as ri,bA as si,bB as oi,bC as ii,bD as ci,bE as ui,bF as di,bG as li,bH as mi,j as fi,bI as pi,bJ as hi,bK as yi,bL as gi,K as bi,bM as wi,t as xi,bM as Ei,bN as Ii,bO as Ti,bP as Ci,bQ as vi,bR as Si,bS as Ai,bT as Pi,bU as _i,K as Ri,bM as qi,bU as Fi,t as Ui,bM as ki}from"./prepare-contract-call-B3PEXjk8.js";import{u as ft}from"./to-serializable-transaction-D4JXNF6K.js";import{b as Ni,B as Li,C as Mi,D as Di,E as zi,m as Gi,n as $i,F as Hi,s as Oi,a as ji}from"./to-serializable-transaction-D4JXNF6K.js";import{w as Qe,h as Ze,g as Xe,v as ta,s as ea}from"./hashTypedData-OCiZaYsv.js";import{I as Vi,a as Ki,b as Ji,d as Yi,c as Qi,e as Zi}from"./hashTypedData-OCiZaYsv.js";import{T as aa,a as Q,W as It,b as na,U as ra,R as sa}from"./rpc-Bd3ag8E4.js";import{A as tc,c as ec,B as ac,C as nc,D as rc,H as sc,I as oc,d as ic,e as cc,f as uc,J as dc,L as lc,M as mc,h as fc,P as pc,i as hc,j as yc,k as gc,l as bc,m as wc,S as xc,n as Ec,o as Ic,p as Tc,q as Cc,r as vc,s as Sc}from"./rpc-Bd3ag8E4.js";import{_ as oa}from"./index-bJXcZSYa.js";import{t as ia,H as ca}from"./sha256-my9t8oLg.js";import{b as Pc,h as _c,a as Rc,c as qc,d as Fc,e as Uc,f as kc,g as Bc,i as Nc,j as Lc,k as Mc,l as Dc,n as zc,o as Gc,p as $c,q as Hc,r as Oc,u as jc,v as Wc,w as Vc,x as Kc,y as Jc,z as Yc,A as Qc,B as Zc,C as Xc,D as tu,E as eu,F as au,G as nu,I as ru,J as su,K as ou,L as iu,M as cu,N as uu,O as du,P as lu,Q as mu,R as fu,S as pu,m as hu,T as yu,U as gu,V as bu,W as wu,X as xu,Y as Eu,Z as Iu,_ as Tu,$ as Cu,a0 as vu,a1 as Su,a2 as Au,a3 as Pu,a4 as _u,a5 as Ru,a6 as qu,a7 as Fu,a8 as Uu,a9 as ku,aa as Bu,ab as Nu,ac as Lu,ad as Mu,ae as Du,af as zu,ag as Gu,ah as $u,ai as Hu,aj as Ou,ak as ju,al as Wu,am as Vu,an as Ku,ao as Ju,ap as Yu,aq as Qu,ar as Zu,as as Xu,at as td,au as ed,av as ad,aw as nd,ax as rd,ay as sd,az as od,aA as id,aB as cd,aC as ud,aD as dd,aE as ld,aF as md,aG as fd,aH as pd,aI as hd,aJ as yd,aK as gd,s as bd}from"./sha256-my9t8oLg.js";import{i as pt}from"./get-bytecode-We_Yud0L.js";import{d as xd,a as Ed}from"./get-bytecode-We_Yud0L.js";import{ccipRequest as Td,ccipRequest as Cd,offchainLookup as vd,offchainLookupAbiItem as Sd,offchainLookupSignature as Ad}from"./ccip-CIGFVe9f.js";import{d as _d,a as Rd,f as qd}from"./transactionReceipt-BsGymDgp.js";import"./utils-DmCacC3Z.js";import"./sentry-faeuEJiQ.js";import"./react-Io5Wove7.js";import"./transaction-CpNDZT6H.js";import"./dcl-schemas-OH8G4Ndl.js";import"./ethers-DwK2TdL6.js";import"./intl-AKLEHPeO.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="0bd3ef8c-356a-4300-964a-6a01cf9ccec3",t._sentryDebugIdIdentifier="sentry-dbid-0bd3ef8c-356a-4300-964a-6a01cf9ccec3")}catch{}})();function Qn(t){let e;if(typeof t=="string")e=gt(t,{modifiers:bt});else{const a=Yt(t),n=t.length;for(let r=0;r<n;r++){const s=t[r];if(!Qt(s)){e=gt(s,{modifiers:bt,structs:a});break}}}if(!e)throw new Zt({param:t});return e}async function M(t,e){return M.internal(t,ut,"sendTransaction",e)}(function(t){async function e(a,n,r,s){const{abi:u,account:d=a.account,address:c,args:i,dataSuffix:f,functionName:m,...p}=s;if(typeof d>"u")throw new D({docsPath:"/docs/contract/writeContract"});const o=d?N(d):null,h=Xt({abi:u,args:i,functionName:m});try{return await U(a,n,r)({data:`${h}${f?f.replace("0x",""):""}`,to:c,account:o,...p})}catch(l){throw te(l,{abi:u,address:c,args:i,docsPath:"/docs/contract/writeContract",functionName:m,sender:o==null?void 0:o.address})}}t.internal=e})(M||(M={}));function Zn({abi:t,address:e,client:a}){const n=a,[r,s]=n?"public"in n&&"wallet"in n?[n.public,n.wallet]:"public"in n?[n.public,void 0]:"wallet"in n?[void 0,n.wallet]:[n,n]:[void 0,void 0],u=r!=null,d=s!=null,c={};let i=!1,f=!1,m=!1;for(const p of t)if(p.type==="function"?p.stateMutability==="view"||p.stateMutability==="pure"?i=!0:f=!0:p.type==="event"&&(m=!0),i&&f&&m)break;return u&&(i&&(c.read=new Proxy({},{get(p,o){return(...h)=>{const{args:l,options:y}=W(h);return U(r,ee,"readContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),f&&(c.simulate=new Proxy({},{get(p,o){return(...h)=>{const{args:l,options:y}=W(h);return U(r,ae,"simulateContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),m&&(c.createEventFilter=new Proxy({},{get(p,o){return(...h)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(h,l);return U(r,ne,"createContractEventFilter")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.getEvents=new Proxy({},{get(p,o){return(...h)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(h,l);return U(r,re,"getContractEvents")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.watchEvent=new Proxy({},{get(p,o){return(...h)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(h,l);return U(r,se,"watchContractEvent")({abi:t,address:e,eventName:o,args:y,...w})}}}))),d&&f&&(c.write=new Proxy({},{get(p,o){return(...h)=>{const{args:l,options:y}=W(h);return U(s,M,"writeContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),(u||d)&&f&&(c.estimateGas=new Proxy({},{get(p,o){return(...h)=>{const{args:l,options:y}=W(h);return U(r??s,oe,"estimateContractGas")({abi:t,address:e,functionName:o,args:l,...y,account:y.account??s.account})}}})),c.address=e,c.abi=t,c}function W(t){const e=t.length&&Array.isArray(t[0]),a=e?t[0]:[],n=(e?t[1]:t[0])??{};return{args:a,options:n}}function rt(t,e){let a=!1;Array.isArray(t[0])?a=!0:t.length===1?a=e.inputs.some(s=>s.indexed):t.length===2&&(a=!0);const n=a?t[0]:void 0,r=(a?t[1]:t[0])??{};return{args:n,options:r}}function Tt(t){return!t||typeof t!="object"||!("BYTES_PER_ELEMENT"in t)?!1:t.BYTES_PER_ELEMENT===1&&t.constructor.name==="Uint8Array"}function Xn(t){return t.opcode==="CREATE2"?da(t):ua(t)}function ua(t){const e=B(k(t.from));let a=B(t.nonce);return a[0]===0&&(a=new Uint8Array([])),k(`0x${Y(ia([e,a],"bytes")).slice(26)}`)}function da(t){const e=B(k(t.from)),a=Me(Tt(t.salt)?t.salt:B(t.salt),{size:32}),n="bytecodeHash"in t?Tt(t.bytecodeHash)?t.bytecodeHash:B(t.bytecodeHash):Y(t.bytecode,"bytes");return k(De(Y(ze([B("0xff"),e,a,n])),12))}function tr({chains:t,id:e}){return t.find(a=>a.id===e)}function Dt(t,e="hex"){const a=(()=>{if(typeof t=="string"){if(t.length>3&&t.length%2!==0)throw new Ge(t);return H(t)}return t})(),n=ct(a,{recursiveReadLimit:Number.POSITIVE_INFINITY});return zt(n,e)}function zt(t,e="hex"){if(t.bytes.length===0)return e==="hex"?G(t.bytes):t.bytes;const a=t.readByte();if(a<128&&t.decrementPosition(1),a<192){const r=Ct(t,a,128),s=t.readBytes(r);return e==="hex"?G(s):s}const n=Ct(t,a,192);return la(t,n,e)}function Ct(t,e,a){if(a===128&&e<128)return 1;if(e<=a+55)return e-a;if(e===a+55+1)return t.readUint8();if(e===a+55+2)return t.readUint16();if(e===a+55+3)return t.readUint24();if(e===a+55+4)return t.readUint32();throw new mt("Invalid RLP prefix")}function la(t,e,a){const n=t.position,r=[];for(;t.position-n<e;)r.push(zt(t,a));return r}function ma(t){return E(t)&&$e(t)===32}const fa=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Gt=Uint8Array.from(new Array(16).fill(0).map((t,e)=>e)),pa=Gt.map(t=>(9*t+5)%16),$t=(()=>{const a=[[Gt],[pa]];for(let n=0;n<4;n++)for(let r of a)r.push(r[n].map(s=>fa[s]));return a})(),Ht=$t[0],Ot=$t[1],jt=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(t=>Uint8Array.from(t)),ha=Ht.map((t,e)=>t.map(a=>jt[e][a])),ya=Ot.map((t,e)=>t.map(a=>jt[e][a])),ga=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),ba=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function vt(t,e,a,n){return t===0?e^a^n:t===1?e&a|~e&n:t===2?(e|~a)^n:t===3?e&n|a&~n:e^(a|~n)}const V=new Uint32Array(16);class wa extends ca{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:a,h2:n,h3:r,h4:s}=this;return[e,a,n,r,s]}set(e,a,n,r,s){this.h0=e|0,this.h1=a|0,this.h2=n|0,this.h3=r|0,this.h4=s|0}process(e,a){for(let o=0;o<16;o++,a+=4)V[o]=e.getUint32(a,!0);let n=this.h0|0,r=n,s=this.h1|0,u=s,d=this.h2|0,c=d,i=this.h3|0,f=i,m=this.h4|0,p=m;for(let o=0;o<5;o++){const h=4-o,l=ga[o],y=ba[o],w=Ht[o],g=Ot[o],C=ha[o],b=ya[o];for(let x=0;x<16;x++){const I=j(n+vt(o,s,d,i)+V[w[x]]+l,C[x])+m|0;n=m,m=i,i=j(d,10)|0,d=s,s=I}for(let x=0;x<16;x++){const I=j(r+vt(h,u,c,f)+V[g[x]]+y,b[x])+p|0;r=p,p=f,f=j(c,10)|0,c=u,u=I}}this.set(this.h1+d+f|0,this.h2+i+p|0,this.h3+m+r|0,this.h4+n+u|0,this.h0+s+c|0)}roundClean(){wt(V)}destroy(){this.destroyed=!0,wt(this.buffer),this.set(0,0,0,0,0)}}const xa=He(()=>new wa),Ea=xa;function er(t,e){const a=e||"hex",n=Ea(E(t,{strict:!1})?B(t):t);return a==="bytes"?n:Nt(n)}const st=new Map;async function Ia(t){const{getSocket:e,keepAlive:a=!0,key:n="socket",reconnect:r=!0,url:s}=t,{interval:u=3e4}=typeof a=="object"?a:{},{attempts:d=5,delay:c=2e3}=typeof r=="object"?r:{},i=JSON.stringify({keepAlive:a,key:n,url:s,reconnect:r});let f=st.get(i);if(f)return f;let m=0;const{schedule:p}=ie({id:i,fn:async()=>{const l=new Map,y=new Map;let w,g,C,b=!1;function x(){if(r&&m<d){if(b)return;b=!0,m++,g==null||g.close(),setTimeout(async()=>{await I().catch(console.error),b=!1},c)}else l.clear(),y.clear()}async function I(){const T=await e({onClose(){var v,P;for(const S of l.values())(v=S.onError)==null||v.call(S,new Q({url:s}));for(const S of y.values())(P=S.onError)==null||P.call(S,new Q({url:s}));x()},onError(v){var P,S;w=v;for(const _ of l.values())(P=_.onError)==null||P.call(_,w);for(const _ of y.values())(S=_.onError)==null||S.call(_,w);x()},onOpen(){w=void 0,m=0},onResponse(v){const P=v.method==="eth_subscription",S=P?v.params.subscription:v.id,_=P?y:l,q=_.get(S);q&&q.onResponse(v),P||_.delete(S)}});if(g=T,a&&(C&&clearInterval(C),C=setInterval(()=>{var v;return(v=g.ping)==null?void 0:v.call(g)},u)),r&&y.size>0){const v=y.entries();for(const[P,{onResponse:S,body:_,onError:q}]of v)_&&(y.delete(P),f==null||f.request({body:_,onResponse:S,onError:q}))}return T}return await I(),w=void 0,f={close(){C&&clearInterval(C),g.close(),st.delete(i)},get socket(){return g},request({body:T,onError:v,onResponse:P}){w&&v&&v(w);const S=T.id??ce.take(),_=q=>{var z;typeof q.id=="number"&&S!==q.id||(T.method==="eth_subscribe"&&typeof q.result=="string"&&y.set(q.result,{onResponse:_,onError:v,body:T}),T.method==="eth_unsubscribe"&&y.delete((z=T.params)==null?void 0:z[0]),P(q))};l.set(S,{onResponse:_,onError:v});try{g.request({body:{jsonrpc:"2.0",id:S,...T}})}catch(q){v==null||v(q)}},requestAsync({body:T,timeout:v=1e4}){return Qe(()=>new Promise((P,S)=>this.request({body:T,onError:S,onResponse:P})),{errorInstance:new aa({body:T,url:s}),timeout:v})},requests:l,subscriptions:y,url:s},st.set(i,f),[f]}}),[o,[h]]=await p();return h}async function J(t,e={}){const{keepAlive:a,reconnect:n}=e;return Ia({async getSocket({onClose:r,onError:s,onOpen:u,onResponse:d}){const c=await oa(()=>import("./native-CXAGKkI7.js").then(o=>o.n),__vite__mapDeps([0,1,2])).then(o=>o.WebSocket),i=new c(t);function f(){i.removeEventListener("close",f),i.removeEventListener("message",m),i.removeEventListener("error",s),i.removeEventListener("open",u),r()}function m({data:o}){if(!(typeof o=="string"&&o.trim().length===0))try{const h=JSON.parse(o);d(h)}catch(h){s(h)}}i.addEventListener("close",f),i.addEventListener("message",m),i.addEventListener("error",s),i.addEventListener("open",u),i.readyState===c.CONNECTING&&await new Promise((o,h)=>{i&&(i.onopen=o,i.onerror=h)});const{close:p}=i;return Object.assign(i,{close(){p.bind(i)(),f()},ping(){try{if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({url:i.url,cause:new Q({url:i.url})});const o={jsonrpc:"2.0",id:null,method:"net_version",params:[]};i.send(JSON.stringify(o))}catch(o){s(o)}},request({body:o}){if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({body:o,url:i.url,cause:new Q({url:i.url})});return i.send(JSON.stringify(o))}})},keepAlive:a,reconnect:n,url:t})}async function Ta(t){const e=await J(t);return Object.assign(e.socket,{requests:e.requests,subscriptions:e.subscriptions})}function Ca(t){return Lt(t,-32)===ue}function va(t){return de(t)}function ar(t){if(!Ca(t))return{signature:t};const[e,a,n]=Mt([{type:"address"},{type:"bytes"},{type:"bytes"}],t);return{address:e,data:a,signature:n}}function nr(t){if(!va(t))return{signature:t};const{authorization:e,to:a,...n}=le(t);return{authorization:{address:e.address,chainId:e.chainId,nonce:Number(e.nonce),r:R(e.r,{size:32}),s:R(e.s,{size:32}),yParity:e.yParity},...a?{address:a}:{},...n}}async function Sa({message:t,signature:e}){return Z({hash:me(t),signature:e})}async function Aa(t){const{domain:e,message:a,primaryType:n,signature:r,types:s}=t;return Z({hash:Ze({domain:e,message:a,primaryType:n,types:s}),signature:r})}function rr(t){const{address:e,data:a,signature:n,to:r="hex"}=t,s=fe({authorization:{address:t.authorization.address,chainId:t.authorization.chainId,nonce:BigInt(t.authorization.nonce),r:BigInt(t.authorization.r),s:BigInt(t.authorization.s),yParity:t.authorization.yParity},data:a,signature:n,to:e});return r==="hex"?s:H(s)}async function sr({address:t,hash:e,signature:a}){return pt(k(t),await Z({hash:e,signature:a}))}async function or({address:t,message:e,signature:a}){return pt(k(t),await Sa({message:e,signature:a}))}async function ir(t){const{address:e,domain:a,message:n,primaryType:r,signature:s,types:u}=t;return pt(k(e),await Aa({domain:a,message:n,primaryType:r,signature:s,types:u}))}function Pa(t){const e=Lt(t,0,1);if(e==="0x04")return"eip7702";if(e==="0x03")return"eip4844";if(e==="0x02")return"eip1559";if(e==="0x01")return"eip2930";if(e!=="0x"&&F(e)>=192)return"legacy";throw new pe({serializedType:e})}function _a(t){const e=Pa(t);return e==="eip1559"?Fa(t):e==="eip2930"?Ua(t):e==="eip4844"?qa(t):e==="eip7702"?Ra(t):ka(t)}function Ra(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,p,o,h]=e;if(e.length!==10&&e.length!==13)throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,authorizationList:m,...e.length>9?{v:p,r:o,s:h}:{}},serializedTransaction:t,type:"eip7702"});const l={chainId:F(a),type:"eip7702"};return E(d)&&d!=="0x"&&(l.to=d),E(u)&&u!=="0x"&&(l.gas=A(u)),E(i)&&i!=="0x"&&(l.data=i),E(n)&&(l.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(l.value=A(c)),E(s)&&s!=="0x"&&(l.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(l.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(l.accessList=tt(f)),m.length!==0&&m!=="0x"&&(l.authorizationList=Ba(m)),we(l),{...e.length===13?O(e):void 0,...l}}function qa(t){const e=X(t),a=e.length===4,n=a?e[0]:e,r=a?e.slice(1):[],[s,u,d,c,i,f,m,p,o,h,l,y,w,g]=n,[C,b,x]=r;if(!(n.length===11||n.length===14))throw new $({attributes:{chainId:s,nonce:u,maxPriorityFeePerGas:d,maxFeePerGas:c,gas:i,to:f,value:m,data:p,accessList:o,...n.length>9?{v:y,r:w,s:g}:{}},serializedTransaction:t,type:"eip4844"});const I={blobVersionedHashes:l,chainId:F(s),to:f,type:"eip4844"};return E(i)&&i!=="0x"&&(I.gas=A(i)),E(p)&&p!=="0x"&&(I.data=p),E(u)&&(I.nonce=u==="0x"?0:F(u)),E(m)&&m!=="0x"&&(I.value=A(m)),E(h)&&h!=="0x"&&(I.maxFeePerBlobGas=A(h)),E(c)&&c!=="0x"&&(I.maxFeePerGas=A(c)),E(d)&&d!=="0x"&&(I.maxPriorityFeePerGas=A(d)),o.length!==0&&o!=="0x"&&(I.accessList=tt(o)),C&&b&&x&&(I.sidecars=ge({blobs:C,commitments:b,proofs:x})),be(I),{...n.length===14?O(n):void 0,...I}}function Fa(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,p,o]=e;if(!(e.length===9||e.length===12))throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,...e.length>9?{v:m,r:p,s:o}:{}},serializedTransaction:t,type:"eip1559"});const h={chainId:F(a),type:"eip1559"};return E(d)&&d!=="0x"&&(h.to=d),E(u)&&u!=="0x"&&(h.gas=A(u)),E(i)&&i!=="0x"&&(h.data=i),E(n)&&(h.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(h.value=A(c)),E(s)&&s!=="0x"&&(h.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(h.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(h.accessList=tt(f)),he(h),{...e.length===12?O(e):void 0,...h}}function Ua(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,p]=e;if(!(e.length===8||e.length===11))throw new $({attributes:{chainId:a,nonce:n,gasPrice:r,gas:s,to:u,value:d,data:c,accessList:i,...e.length>8?{v:f,r:m,s:p}:{}},serializedTransaction:t,type:"eip2930"});const o={chainId:F(a),type:"eip2930"};return E(u)&&u!=="0x"&&(o.to=u),E(s)&&s!=="0x"&&(o.gas=A(s)),E(c)&&c!=="0x"&&(o.data=c),E(n)&&(o.nonce=n==="0x"?0:F(n)),E(d)&&d!=="0x"&&(o.value=A(d)),E(r)&&r!=="0x"&&(o.gasPrice=A(r)),i.length!==0&&i!=="0x"&&(o.accessList=tt(i)),ye(o),{...e.length===11?O(e):void 0,...o}}function ka(t){const e=Dt(t,"hex"),[a,n,r,s,u,d,c,i,f]=e;if(!(e.length===6||e.length===9))throw new $({attributes:{nonce:a,gasPrice:n,gas:r,to:s,value:u,data:d,...e.length>6?{v:c,r:i,s:f}:{}},serializedTransaction:t,type:"legacy"});const m={type:"legacy"};if(E(s)&&s!=="0x"&&(m.to=s),E(r)&&r!=="0x"&&(m.gas=A(r)),E(d)&&d!=="0x"&&(m.data=d),E(a)&&(m.nonce=a==="0x"?0:F(a)),E(u)&&u!=="0x"&&(m.value=A(u)),E(n)&&n!=="0x"&&(m.gasPrice=A(n)),xe(m),e.length===6)return m;const p=E(c)&&c!=="0x"?A(c):0n;if(f==="0x"&&i==="0x")return p>0&&(m.chainId=Number(p)),m;const o=p,h=Number((o-35n)/2n);if(h>0)m.chainId=h;else if(o!==27n&&o!==28n)throw new Ee({v:o});return m.v=o,m.s=f,m.r=i,m.yParity=o%2n===0n?1:0,m}function X(t){return Dt(`0x${t.slice(4)}`,"hex")}function tt(t){const e=[];for(let a=0;a<t.length;a++){const[n,r]=t[a];if(!Oe(n,{strict:!1}))throw new je({address:n});e.push({address:n,storageKeys:r.map(s=>ma(s)?s:We(s))})}return e}function Ba(t){const e=[];for(let a=0;a<t.length;a++){const[n,r,s,u,d,c]=t[a];e.push({address:r,chainId:n==="0x"?0:F(n),nonce:s==="0x"?0:F(s),...O([u,d,c])})}return e}function O(t){const e=t.slice(-3),a=e[0]==="0x"||A(e[0])===0n?27n:28n;return{r:xt(e[1],{size:32}),s:xt(e[2],{size:32}),v:a,yParity:a===27n?0:1}}class Na extends mt{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function Wt(t,e){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(t))throw new Na({value:t});let[a,n="0"]=t.split(".");const r=a.startsWith("-");if(r&&(a=a.slice(1)),n=n.replace(/(0+)$/,""),e===0)Math.round(+`.${n}`)===1&&(a=`${BigInt(a)+1n}`),n="";else if(n.length>e){const[s,u,d]=[n.slice(0,e-1),n.slice(e-1,e),n.slice(e)],c=Math.round(+`${u}.${d}`);c>9?n=`${BigInt(s)+BigInt(1)}0`.padStart(s.length+1,"0"):n=`${s}${c}`,n.length>e&&(n=n.slice(1),a=`${BigInt(a)+1n}`),n=n.slice(0,e)}else n=n.padEnd(e,"0");return BigInt(`${r?"-":""}${a}${n}`)}function cr(t,e="wei"){return Wt(t,Ie[e])}function ur(t,e="wei"){return Wt(t,Te[e])}async function La(t,{hash:e}){await t.request({method:`${t.mode}_dropTransaction`,params:[e]})}async function Ma(t){return t.request({method:`${t.mode}_dumpState`})}async function Da(t){return t.mode==="ganache"?await t.request({method:"eth_mining"}):await t.request({method:`${t.mode}_getAutomine`})}async function za(t){return await t.request({method:"txpool_content"})}async function Ga(t){const{pending:e,queued:a}=await t.request({method:"txpool_status"});return{pending:F(e),queued:F(a)}}async function $a(t,{address:e}){await t.request({method:`${t.mode}_impersonateAccount`,params:[e]})}async function Ha(t,{seconds:e}){return await t.request({method:"evm_increaseTime",params:[R(e)]})}async function Oa(t){return await t.request({method:"txpool_inspect"})}async function ja(t,{state:e}){await t.request({method:`${t.mode}_loadState`,params:[e]})}async function Wa(t,{blocks:e,interval:a}){t.mode==="ganache"?await t.request({method:"evm_mine",params:[{blocks:R(e)}]}):await t.request({method:`${t.mode}_mine`,params:[R(e),R(a||0)]})}async function Va(t){await t.request({method:`${t.mode}_removeBlockTimestampInterval`})}async function Ka(t,{blockNumber:e,jsonRpcUrl:a}={}){await t.request({method:`${t.mode}_reset`,params:[{forking:{blockNumber:Number(e),jsonRpcUrl:a}}]})}async function Ja(t,{id:e}){await t.request({method:"evm_revert",params:[e]})}async function Ya(t,e){var w,g,C;const{accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:m,...p}=e,o=(C=(g=(w=t.chain)==null?void 0:w.formatters)==null?void 0:g.transactionRequest)==null?void 0:C.format,l=(o||ft)({...St(p,{format:o}),accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:m},"sendUnsignedTransaction");return await t.request({method:"eth_sendUnsignedTransaction",params:[l]})}async function Qa(t,e){t.mode==="ganache"?e?await t.request({method:"miner_start"}):await t.request({method:"miner_stop"}):await t.request({method:"evm_setAutomine",params:[e]})}async function Za(t,{address:e,value:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountBalance",params:[e,R(a)]}):await t.request({method:`${t.mode}_setBalance`,params:[e,R(a)]})}async function Xa(t,{gasLimit:e}){await t.request({method:"evm_setBlockGasLimit",params:[R(e)]})}async function tn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:`${t.mode}_setBlockTimestampInterval`,params:[a]})}async function en(t,{address:e,bytecode:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountCode",params:[e,a]}):await t.request({method:`${t.mode}_setCode`,params:[e,a]})}async function an(t,{address:e}){await t.request({method:`${t.mode}_setCoinbase`,params:[e]})}async function nn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:"evm_setIntervalMining",params:[a]})}async function rn(t,e){await t.request({method:`${t.mode}_setLoggingEnabled`,params:[e]})}async function sn(t,{gasPrice:e}){await t.request({method:`${t.mode}_setMinGasPrice`,params:[R(e)]})}async function on(t,{baseFeePerGas:e}){await t.request({method:`${t.mode}_setNextBlockBaseFeePerGas`,params:[R(e)]})}async function cn(t,{timestamp:e}){await t.request({method:"evm_setNextBlockTimestamp",params:[R(e)]})}async function un(t,{address:e,nonce:a}){await t.request({method:`${t.mode}_setNonce`,params:[e,R(a)]})}async function dn(t,e){await t.request({method:`${t.mode}_setRpcUrl`,params:[e]})}async function ln(t,{address:e,index:a,value:n}){await t.request({method:`${t.mode}_setStorageAt`,params:[e,typeof a=="number"?R(a):a,n]})}async function mn(t){return await t.request({method:"evm_snapshot"})}async function fn(t,{address:e}){await t.request({method:`${t.mode}_stopImpersonatingAccount`,params:[e]})}function pn({mode:t}){return e=>{const a=e.extend(()=>({mode:t}));return{dropTransaction:n=>La(a,n),dumpState:()=>Ma(a),getAutomine:()=>Da(a),getTxpoolContent:()=>za(a),getTxpoolStatus:()=>Ga(a),impersonateAccount:n=>$a(a,n),increaseTime:n=>Ha(a,n),inspectTxpool:()=>Oa(a),loadState:n=>ja(a,n),mine:n=>Wa(a,n),removeBlockTimestampInterval:()=>Va(a),reset:n=>Ka(a,n),revert:n=>Ja(a,n),sendUnsignedTransaction:n=>Ya(a,n),setAutomine:n=>Qa(a,n),setBalance:n=>Za(a,n),setBlockGasLimit:n=>Xa(a,n),setBlockTimestampInterval:n=>tn(a,n),setCode:n=>en(a,n),setCoinbase:n=>an(a,n),setIntervalMining:n=>nn(a,n),setLoggingEnabled:n=>rn(a,n),setMinGasPrice:n=>sn(a,n),setNextBlockBaseFeePerGas:n=>on(a,n),setNextBlockTimestamp:n=>cn(a,n),setNonce:n=>un(a,n),setRpcUrl:n=>dn(a,n),setStorageAt:n=>ln(a,n),snapshot:()=>mn(a),stopImpersonatingAccount:n=>fn(a,n)}}}function dr(t){const{key:e="test",name:a="Test Client",mode:n}=t;return At({...t,key:e,name:a,type:"testClient"}).extend(s=>({mode:n,...pn({mode:n})(s)}))}async function hn(t,{chain:e}){const{id:a,name:n,nativeCurrency:r,rpcUrls:s,blockExplorers:u}=e;await t.request({method:"wallet_addEthereumChain",params:[{chainId:R(a),chainName:n,nativeCurrency:r,rpcUrls:s.default.http,blockExplorerUrls:u?Object.values(u).map(({url:d})=>d):void 0}]},{dedupe:!0,retryCount:0})}function yn(t,e){const{abi:a,args:n,bytecode:r,...s}=e,u=Ce({abi:a,args:n,bytecode:r});return ut(t,{...s,...s.authorizationList?{to:null}:{},data:u})}async function gn(t){var a;return((a=t.account)==null?void 0:a.type)==="local"?[t.account.address]:(await t.request({method:"eth_accounts"},{dedupe:!0})).map(n=>Ve(n))}async function bn(t,e={}){const{account:a=t.account,chainId:n}=e,r=a?N(a):void 0,s=n?[r==null?void 0:r.address,[R(n)]]:[r==null?void 0:r.address],u=await t.request({method:"wallet_getCapabilities",params:s}),d={};for(const[c,i]of Object.entries(u)){d[Number(c)]={};for(let[f,m]of Object.entries(i))f==="addSubAccount"&&(f="unstable_addSubAccount"),d[Number(c)][f]=m}return typeof n=="number"?d[n]:d}async function wn(t){return await t.request({method:"wallet_getPermissions"},{dedupe:!0})}async function xn(t){return(await t.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(a=>k(a))}async function En(t,e){return t.request({method:"wallet_requestPermissions",params:[e]},{retryCount:0})}async function In(t,e){const{chain:a=t.chain}=e,n=e.timeout??Math.max(((a==null?void 0:a.blockTime)??0)*3,5e3),r=await Pt(t,e);return await _t(t,{...e,id:r.id,timeout:n})}const ot=new Ke(128);async function Vt(t,e){var x,I,T,v;const{account:a=t.account,chain:n=t.chain,accessList:r,authorizationList:s,blobs:u,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:p,nonce:o,pollingInterval:h,throwOnReceiptRevert:l,type:y,value:w,...g}=e,C=e.timeout??Math.max(((n==null?void 0:n.blockTime)??0)*3,5e3);if(typeof a>"u")throw new D({docsPath:"/docs/actions/wallet/sendTransactionSync"});const b=a?N(a):null;try{Rt(e);const P=await(async()=>{if(e.to)return e.to;if(e.to!==null&&s&&s.length>0)return await ve({authorization:s[0]}).catch(()=>{throw new mt("`to` is required. Could not infer from `authorizationList`.")})})();if((b==null?void 0:b.type)==="json-rpc"||b===null){let S;n!==null&&(S=await U(t,dt,"getChainId")({}),qt({currentChainId:S,chain:n}));const _=(T=(I=(x=t.chain)==null?void 0:x.formatters)==null?void 0:I.transactionRequest)==null?void 0:T.format,z=(_||ft)({...St(g,{format:_}),accessList:r,account:b,authorizationList:s,blobs:u,chainId:S,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:p,nonce:o,to:P,type:y,value:w},"sendTransaction"),ht=ot.get(t.uid),Kt=ht?"wallet_sendTransaction":"eth_sendTransaction",Jt=await(async()=>{try{return await t.request({method:Kt,params:[z]},{retryCount:0})}catch(yt){if(ht===!1)throw yt;const L=yt;if(L.name==="InvalidInputRpcError"||L.name==="InvalidParamsRpcError"||L.name==="MethodNotFoundRpcError"||L.name==="MethodNotSupportedRpcError")return await t.request({method:"wallet_sendTransaction",params:[z]},{retryCount:0}).then(at=>(ot.set(t.uid,!0),at)).catch(at=>{const nt=at;throw nt.name==="MethodNotFoundRpcError"||nt.name==="MethodNotSupportedRpcError"?(ot.set(t.uid,!1),L):nt});throw L}})(),et=await U(t,Se,"waitForTransactionReceipt")({checkReplacement:!1,hash:Jt,pollingInterval:h,timeout:C});if(l&&et.status==="reverted")throw new Ae({receipt:et});return et}if((b==null?void 0:b.type)==="local"){const S=await U(t,Ft,"prepareTransactionRequest")({account:b,accessList:r,authorizationList:s,blobs:u,chain:n,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:p,nonce:o,nonceManager:b.nonceManager,parameters:[...Pe,"sidecars"],type:y,value:w,...g,to:P}),_=(v=n==null?void 0:n.serializers)==null?void 0:v.transaction,q=await b.signTransaction(S,{serializer:_});return await U(t,Ut,"sendRawTransactionSync")({serializedTransaction:q,throwOnReceiptRevert:l})}throw(b==null?void 0:b.type)==="smart"?new K({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new K({docsPath:"/docs/actions/wallet/sendTransactionSync",type:b==null?void 0:b.type})}catch(P){throw P instanceof K?P:_e(P,{...e,account:b,chain:e.chain||void 0})}}async function Tn(t,e){const{id:a}=e;await t.request({method:"wallet_showCallsStatus",params:[a]})}async function Cn(t,e){const{account:a=t.account}=e;if(!a)throw new D({docsPath:"/docs/eip7702/signAuthorization"});const n=N(a);if(!n.signAuthorization)throw new K({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:n.type});const r=await kt(t,e);return n.signAuthorization(r)}async function vn(t,{account:e=t.account,message:a}){if(!e)throw new D({docsPath:"/docs/actions/wallet/signMessage"});const n=N(e);if(n.signMessage)return n.signMessage({message:a});const r=typeof a=="string"?Je(a):a.raw instanceof Uint8Array?Nt(a.raw):a.raw;return t.request({method:"personal_sign",params:[r,n.address]},{retryCount:0})}async function Sn(t,e){var i,f,m,p;const{account:a=t.account,chain:n=t.chain,...r}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTransaction"});const s=N(a);Rt({account:s,...e});const u=await U(t,dt,"getChainId")({});n!==null&&qt({currentChainId:u,chain:n});const d=(n==null?void 0:n.formatters)||((i=t.chain)==null?void 0:i.formatters),c=((f=d==null?void 0:d.transactionRequest)==null?void 0:f.format)||ft;return s.signTransaction?s.signTransaction({...r,chainId:u},{serializer:(p=(m=t.chain)==null?void 0:m.serializers)==null?void 0:p.transaction}):await t.request({method:"eth_signTransaction",params:[{...c({...r,account:s},"signTransaction"),chainId:R(u),from:s.address}]},{retryCount:0})}async function An(t,e){const{account:a=t.account,domain:n,message:r,primaryType:s}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTypedData"});const u=N(a),d={EIP712Domain:Xe({domain:n}),...e.types};if(ta({domain:n,message:r,primaryType:s,types:d}),u.signTypedData)return u.signTypedData({domain:n,message:r,primaryType:s,types:d});const c=ea({domain:n,message:r,primaryType:s,types:d});return t.request({method:"eth_signTypedData_v4",params:[u.address,c]},{retryCount:0})}async function Pn(t,{id:e}){await t.request({method:"wallet_switchEthereumChain",params:[{chainId:R(e)}]},{retryCount:0})}async function _n(t,e){return await t.request({method:"wallet_watchAsset",params:e},{retryCount:0})}async function Rn(t,e){return M.internal(t,Vt,"sendTransactionSync",e)}function qn(t){return{addChain:e=>hn(t,e),deployContract:e=>yn(t,e),getAddresses:()=>gn(t),getCallsStatus:e=>qe(t,e),getCapabilities:e=>bn(t,e),getChainId:()=>dt(t),getPermissions:()=>wn(t),prepareAuthorization:e=>kt(t,e),prepareTransactionRequest:e=>Ft(t,e),requestAddresses:()=>xn(t),requestPermissions:e=>En(t,e),sendCalls:e=>Pt(t,e),sendCallsSync:e=>In(t,e),sendRawTransaction:e=>Re(t,e),sendRawTransactionSync:e=>Ut(t,e),sendTransaction:e=>ut(t,e),sendTransactionSync:e=>Vt(t,e),showCallsStatus:e=>Tn(t,e),signAuthorization:e=>Cn(t,e),signMessage:e=>vn(t,e),signTransaction:e=>Sn(t,e),signTypedData:e=>An(t,e),switchChain:e=>Pn(t,e),waitForCallsStatus:e=>_t(t,e),watchAsset:e=>_n(t,e),writeContract:e=>M(t,e),writeContractSync:e=>Rn(t,e)}}function lr(t){const{key:e="wallet",name:a="Wallet Client",transport:n}=t;return At({...t,key:e,name:a,transport:n,type:"walletClient"}).extend(qn)}function mr(t,e={}){const{key:a="custom",methods:n,name:r="Custom Provider",retryDelay:s}=e;return({retryCount:u})=>lt({key:a,methods:n,name:r,request:t.request.bind(t),retryCount:e.retryCount??u,retryDelay:s,type:"custom"})}function fr(t,e={}){const{key:a="fallback",name:n="Fallback",rank:r=!1,shouldThrow:s=Fn,retryCount:u,retryDelay:d}=e;return(({chain:c,pollingInterval:i=4e3,timeout:f,...m})=>{let p=t,o=()=>{};const h=lt({key:a,name:n,async request({method:l,params:y}){let w;const g=async(C=0)=>{const b=p[C]({...m,chain:c,retryCount:0,timeout:f});try{const x=await b.request({method:l,params:y});return o({method:l,params:y,response:x,transport:b,status:"success"}),x}catch(x){if(o({error:x,method:l,params:y,transport:b,status:"error"}),s(x)||C===p.length-1||(w??(w=p.slice(C+1).some(I=>{const{include:T,exclude:v}=I({chain:c}).config.methods||{};return T?T.includes(l):v?!v.includes(l):!0})),!w))throw x;return g(C+1)}};return g()},retryCount:u,retryDelay:d,type:"fallback"},{onResponse:l=>o=l,transports:p.map(l=>l({chain:c,retryCount:0}))});if(r){const l=typeof r=="object"?r:{};Un({chain:c,interval:l.interval??i,onTransports:y=>p=y,ping:l.ping,sampleCount:l.sampleCount,timeout:l.timeout,transports:p,weights:l.weights})}return h})}function Fn(t){return!!("code"in t&&typeof t.code=="number"&&(t.code===na.code||t.code===ra.code||Fe.nodeMessage.test(t.message)||t.code===5e3))}function Un({chain:t,interval:e=4e3,onTransports:a,ping:n,sampleCount:r=10,timeout:s=1e3,transports:u,weights:d={}}){const{stability:c=.7,latency:i=.3}=d,f=[],m=async()=>{const p=await Promise.all(u.map(async l=>{const y=l({chain:t,retryCount:0,timeout:s}),w=Date.now();let g,C;try{await(n?n({transport:y}):y.request({method:"net_listening"})),C=1}catch{C=0}finally{g=Date.now()}return{latency:g-w,success:C}}));f.push(p),f.length>r&&f.shift();const o=Math.max(...f.map(l=>Math.max(...l.map(({latency:y})=>y)))),h=u.map((l,y)=>{const w=f.map(I=>I[y].latency),C=1-w.reduce((I,T)=>I+T,0)/w.length/o,b=f.map(I=>I[y].success),x=b.reduce((I,T)=>I+T,0)/b.length;return x===0?[0,y]:[i*C+c*x,y]}).sort((l,y)=>y[0]-l[0]);a(h.map(([,l])=>u[l])),await Ue(e),m()};m()}function pr(t,e={}){const{keepAlive:a,key:n="webSocket",methods:r,name:s="WebSocket JSON-RPC",reconnect:u,retryDelay:d}=e;return({chain:c,retryCount:i,timeout:f})=>{var l;const m=e.retryCount??i,p=f??e.timeout??1e4,o=t||((l=c==null?void 0:c.rpcUrls.default.webSocket)==null?void 0:l[0]),h={keepAlive:a,reconnect:u};if(!o)throw new ke;return lt({key:n,methods:r,name:s,async request({method:y,params:w}){const g={method:y,params:w},C=await J(o,h),{error:b,result:x}=await C.requestAsync({body:g,timeout:p});if(b)throw new sa({body:g,error:b,url:o});return x},retryCount:m,retryDelay:d,timeout:p,type:"webSocket"},{getSocket(){return Ta(o)},getRpcClient(){return J(o,h)},async subscribe({params:y,onData:w,onError:g}){const C=await J(o,h),{result:b}=await new Promise((x,I)=>C.request({body:{method:"eth_subscribe",params:y},onError(T){I(T),g==null||g(T)},onResponse(T){if(T.error){I(T.error),g==null||g(T.error);return}if(typeof T.id=="number"){x(T);return}T.method==="eth_subscription"&&w(T.params)}}));return{subscriptionId:b,async unsubscribe(){return new Promise(x=>C.request({body:{method:"eth_unsubscribe",params:[b]},onResponse:x}))}}}})}}class hr extends Error{constructor(e,a){super(a),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=e,this.details=a}}const it="/docs/contract/decodeDeployData";function yr(t){const{abi:e,bytecode:a,data:n}=t;if(n===a)return{bytecode:a};const r=e.find(u=>"type"in u&&u.type==="constructor");if(!r)throw new Ye({docsPath:it});if(!("inputs"in r))throw new Et({docsPath:it});if(!r.inputs||r.inputs.length===0)throw new Et({docsPath:it});return{args:Mt(r.inputs,`0x${n.replace(a,"")}`),bytecode:a}}function gr(t){const e=t.to??(typeof t.blobs[0]=="string"?"hex":"bytes"),a=typeof t.blobs[0]=="string"?t.blobs.map(d=>H(d)):t.blobs,n=a.reduce((d,c)=>d+c.length,0),r=ct(new Uint8Array(n));let s=!0;for(const d of a){const c=ct(d);for(;s&&c.position<d.length;){c.incrementPosition(1);let i=31;d.length-c.position<31&&(i=d.length-c.position);for(const f in Array.from({length:i})){const m=c.readByte();if(m===128&&!c.inspectBytes(c.remaining).includes(128)){s=!1;break}r.pushByte(m)}}}const u=r.bytes.slice(0,r.position);return e==="hex"?G(u):u}function br(t){const{sidecars:e,version:a}=t,n=t.to??(typeof e[0].blob=="string"?"hex":"bytes"),r=[];for(const{commitment:s}of e)r.push(Be({commitment:s,to:n,version:a}));return r}const kn=2147483648;function wr(t){if(t===1)return 60n;if(t>=kn||t<0)throw new Ne({chainId:t});return BigInt((2147483648|t)>>>0)}function Bn({blobToKzgCommitment:t,computeBlobKzgProof:e}){return{blobToKzgCommitment:t,computeBlobKzgProof:e}}function xr(t,e){try{t.loadTrustedSetup(e)}catch(a){const n=a;if(!n.message.includes("trusted setup is already loaded"))throw n}return Bn(t)}function Er({r:t,yParityAndS:e}){const a=H(e),n=a[0]&128?1:0,r=a;return n===1&&(r[0]&=127),{r:t,s:G(r),yParity:n}}function Ir(t){const{r:e,s:a}=Bt.Signature.fromCompact(t.slice(2,130));return{r:R(e,{size:32}),yParityAndS:R(a,{size:32})}}async function Tr(t){const{serializedTransaction:e,signature:a}=t,n=_a(e),r=a??{r:n.r,s:n.s,v:n.v,yParity:n.yParity},s=Le({...n,r:void 0,s:void 0,v:void 0,yParity:void 0,sidecars:void 0});return await Z({hash:Y(s),signature:r})}function Cr({r:t,yParityAndS:e}){return`0x${new Bt.Signature(A(t),A(e)).toCompactHex()}`}function vr(t){const{r:e,s:a,v:n,yParity:r}=t,s=Number(r??n-27n);let u=a;if(s===1){const d=H(a);d[0]|=128,u=G(d)}return{r:e,yParityAndS:u}}export{Ye as AbiConstructorNotFoundError,Et as AbiConstructorParamsNotFoundError,_o as AbiDecodingDataSizeInvalidError,Ro as AbiDecodingDataSizeTooSmallError,qo as AbiDecodingZeroDataError,Fo as AbiEncodingArrayLengthMismatchError,Uo as AbiEncodingBytesSizeMismatchError,ko as AbiEncodingLengthMismatchError,Bo as AbiErrorInputsNotFoundError,No as AbiErrorNotFoundError,Lo as AbiErrorSignatureNotFoundError,Mo as AbiEventNotFoundError,Do as AbiEventSignatureEmptyTopicsError,zo as AbiEventSignatureNotFoundError,Go as AbiFunctionNotFoundError,$o as AbiFunctionOutputsNotFoundError,Ho as AbiFunctionSignatureNotFoundError,Pr as AccountStateConflictError,tc as AtomicReadyWalletRejectedUpgradeError,ec as AtomicityNotSupportedError,mt as BaseError,_r as BaseFeeScalarError,Rr as BlockNotFoundError,qr as BundleFailedError,ac as BundleTooLargeError,Oo as BytesSizeMismatchError,Fr as CallExecutionError,nc as ChainDisconnectedError,Ur as ChainDoesNotSupportContract,kr as ChainMismatchError,Br as ChainNotFoundError,Nr as CircularReferenceError,Lr as ClientChainNotConfiguredError,Mr as ContractFunctionExecutionError,Dr as ContractFunctionRevertedError,zr as ContractFunctionZeroDataError,Gr as CounterfactualDeploymentFailedError,jo as DecodeLogDataMismatch,Wo as DecodeLogTopicsMismatch,rc as DuplicateIdError,hr as EIP1193ProviderRpcError,$r as Eip1559FeesNotSupportedError,Hr as EnsAvatarInvalidNftUriError,Or as EnsAvatarUnsupportedNamespaceError,jr as EnsAvatarUriResolutionError,Ne as EnsInvalidChainIdError,Wr as EstimateGasExecutionError,Fe as ExecutionRevertedError,Vr as FeeCapTooHighError,Kr as FeeCapTooLowError,Jr as FeeConflictError,Vo as FilterTypeNotSupportedError,sc as HttpRequestError,Yr as InsufficientFundsError,Ko as IntegerOutOfRangeError,oc as InternalRpcError,Qr as IntrinsicGasTooHighError,Zr as IntrinsicGasTooLowError,Jo as InvalidAbiDecodingTypeError,Yo as InvalidAbiEncodingTypeError,Xr as InvalidAbiItemError,Zt as InvalidAbiParameterError,ts as InvalidAbiParametersError,es as InvalidAbiTypeParameterError,je as InvalidAddressError,Qo as InvalidArrayError,Zo as InvalidBytesBooleanError,as as InvalidChainIdError,Na as InvalidDecimalNumberError,Xo as InvalidDefinitionTypeError,Vi as InvalidDomainError,ns as InvalidFunctionModifierError,ti as InvalidHexBooleanError,Ge as InvalidHexValueError,ic as InvalidInputRpcError,Ee as InvalidLegacyVError,rs as InvalidModifierError,ss as InvalidParameterError,cc as InvalidParamsRpcError,os as InvalidParenthesisError,Ki as InvalidPrimaryTypeError,uc as InvalidRequestRpcError,is as InvalidSerializableTransactionError,$ as InvalidSerializedTransactionError,pe as InvalidSerializedTransactionTypeError,cs as InvalidSignatureError,us as InvalidStorageKeySizeError,ds as InvalidStructSignatureError,Ji as InvalidStructTypeError,dc as JsonRpcVersionUnsupportedError,lc as LimitExceededRpcError,ls as MaxFeePerGasTooLowError,mc as MethodNotFoundRpcError,fc as MethodNotSupportedRpcError,ms as NonceMaxValueError,fs as NonceTooHighError,ps as NonceTooLowError,pc as ParseRpcError,hc as ProviderDisconnectedError,yc as ProviderRpcError,hs as RawContractError,gc as ResourceNotFoundRpcError,bc as ResourceUnavailableRpcError,wc as RpcError,sa as RpcRequestError,ei as SizeExceedsPaddingSizeError,ai as SizeOverflowError,ni as SliceOffsetOutOfBoundsError,Q as SocketClosedError,ys as SolidityProtectedKeywordError,gs as StateAssignmentConflictError,xc as SwitchChainError,aa as TimeoutError,bs as TipAboveFeeCapError,ws as TransactionExecutionError,xs as TransactionNotFoundError,Es as TransactionReceiptNotFoundError,na as TransactionRejectedRpcError,Is as TransactionTypeNotSupportedError,Ec as UnauthorizedProviderError,Ic as UnknownBundleIdError,Ts as UnknownNodeError,Tc as UnknownRpcError,Cs as UnknownSignatureError,vs as UnknownTypeError,Cc as UnsupportedChainIdError,vc as UnsupportedNonOptionalCapabilityError,ri as UnsupportedPackedAbiType,Sc as UnsupportedProviderMethodError,ke as UrlRequiredError,ra as UserRejectedRequestError,Ss as WaitForCallsStatusTimeoutError,As as WaitForTransactionReceiptTimeoutError,It as WebSocketRequestError,qt as assertCurrentChain,Rt as assertRequest,he as assertTransactionEIP1559,ye as assertTransactionEIP2930,xe as assertTransactionLegacy,Ps as blobsToCommitments,_s as blobsToProofs,si as boolToBytes,oi as boolToHex,ii as bytesToBigInt,ci as bytesToBool,G as bytesToHex,ui as bytesToNumber,Pc as bytesToRlp,di as bytesToString,Td as ccipFetch,Cd as ccipRequest,Ve as checksumAddress,Be as commitmentToVersionedHash,Rs as commitmentsToVersionedHashes,Cr as compactSignatureToHex,Er as compactSignatureToSignature,ze as concat,li as concatBytes,mi as concatHex,At as createClient,qs as createNonceManager,Fs as createPublicClient,dr as createTestClient,lt as createTransport,lr as createWalletClient,mr as custom,Mt as decodeAbiParameters,yr as decodeDeployData,Ni as decodeErrorResult,xd as decodeEventLog,Us as decodeFunctionData,ks as decodeFunctionResult,Li as defineBlock,Mi as defineChain,Bn as defineKzg,Di as defineTransaction,_d as defineTransactionReceipt,zi as defineTransactionRequest,Bs as deploylessCallViaBytecodeBytecode,Ns as deploylessCallViaFactoryBytecode,Yi as domainSeparator,fi as encodeAbiParameters,Ce as encodeDeployData,Ls as encodeErrorResult,pi as encodeEventTopics,Xt as encodeFunctionData,Ms as encodeFunctionResult,Ds as encodePacked,zs as erc1155Abi,Gs as erc20Abi,$s as erc20Abi_bytes32,Hs as erc4626Abi,Os as erc6492SignatureValidatorAbi,js as erc6492SignatureValidatorByteCode,Ws as erc721Abi,Vs as ethAddress,Ie as etherUnits,tr as extractChain,fr as fallback,Gi as formatBlock,Ks as formatEther,Js as formatGwei,Rd as formatLog,$i as formatTransaction,qd as formatTransactionReceipt,ft as formatTransactionRequest,Ys as formatUnits,gr as fromBlobs,hi as fromBytes,yi as fromHex,Dt as fromRlp,gi as getAbiItem,k as getAddress,Qs as getChainContractAddress,Zn as getContract,Xn as getContractAddress,te as getContractError,da as getCreate2Address,ua as getCreateAddress,bi as getEventSelector,wi as getEventSignature,xi as getFunctionSelector,Ei as getFunctionSignature,Pa as getSerializedTransactionType,Zs as getTransactionType,Xe as getTypesForEIP712Domain,Te as gweiUnits,Qi as hashDomain,me as hashMessage,Zi as hashStruct,Ze as hashTypedData,A as hexToBigInt,Ii as hexToBool,H as hexToBytes,Ir as hexToCompactSignature,F as hexToNumber,_c as hexToRlp,Xs as hexToSignature,Ti as hexToString,to as http,Oe as isAddress,pt as isAddressEqual,Tt as isBytes,Ca as isErc6492Signature,va as isErc8010Signature,ma as isHash,E as isHex,Y as keccak256,eo as labelhash,Rc as maxInt104,qc as maxInt112,Fc as maxInt120,Uc as maxInt128,kc as maxInt136,Bc as maxInt144,Nc as maxInt152,Lc as maxInt16,Mc as maxInt160,Dc as maxInt168,zc as maxInt176,Gc as maxInt184,$c as maxInt192,Hc as maxInt200,Oc as maxInt208,jc as maxInt216,Wc as maxInt224,Vc as maxInt232,Kc as maxInt24,Jc as maxInt240,Yc as maxInt248,Qc as maxInt256,Zc as maxInt32,Xc as maxInt40,tu as maxInt48,eu as maxInt56,au as maxInt64,nu as maxInt72,ru as maxInt8,su as maxInt80,ou as maxInt88,iu as maxInt96,cu as maxUint104,uu as maxUint112,du as maxUint120,lu as maxUint128,mu as maxUint136,fu as maxUint144,pu as maxUint152,hu as maxUint16,yu as maxUint160,gu as maxUint168,bu as maxUint176,wu as maxUint184,xu as maxUint192,Eu as maxUint200,Iu as maxUint208,Tu as maxUint216,Cu as maxUint224,vu as maxUint232,Su as maxUint24,Au as maxUint240,Pu as maxUint248,_u as maxUint256,Ru as maxUint32,qu as maxUint40,Fu as maxUint48,Uu as maxUint56,ku as maxUint64,Bu as maxUint72,Nu as maxUint8,Lu as maxUint80,Mu as maxUint88,Du as maxUint96,zu as minInt104,Gu as minInt112,$u as minInt120,Hu as minInt128,Ou as minInt136,ju as minInt144,Wu as minInt152,Vu as minInt16,Ku as minInt160,Ju as minInt168,Yu as minInt176,Qu as minInt184,Zu as minInt192,Xu as minInt200,td as minInt208,ed as minInt216,ad as minInt224,nd as minInt232,rd as minInt24,sd as minInt240,od as minInt248,id as minInt256,cd as minInt32,ud as minInt40,dd as minInt48,ld as minInt56,md as minInt64,fd as minInt72,pd as minInt8,hd as minInt80,yd as minInt88,gd as minInt96,ao as multicall3Abi,no as namehash,ro as nonceManager,Ci as numberToBytes,R as numberToHex,vd as offchainLookup,Sd as offchainLookupAbiItem,Ad as offchainLookupSignature,Me as pad,vi as padBytes,xt as padHex,so as parseAbi,oo as parseAbiItem,Qn as parseAbiParameter,io as parseAbiParameters,Ir as parseCompactSignature,ar as parseErc6492Signature,nr as parseErc8010Signature,cr as parseEther,Ed as parseEventLogs,ur as parseGwei,co as parseSignature,_a as parseTransaction,Wt as parseUnits,uo as prepareEncodeFunctionData,lo as presignMessagePrefix,mo as publicActions,Z as recoverAddress,Sa as recoverMessageAddress,fo as recoverPublicKey,Tr as recoverTransactionAddress,Aa as recoverTypedDataAddress,er as ripemd160,po as rpcSchema,Hi as rpcTransactionType,ho as serializeAccessList,Cr as serializeCompactSignature,yo as serializeErc6492Signature,rr as serializeErc8010Signature,go as serializeSignature,Le as serializeTransaction,ea as serializeTypedData,Si as setErrorConfig,xr as setupKzg,bd as sha256,Fn as shouldThrow,br as sidecarsToVersionedHashes,vr as signatureToCompactSignature,bo as signatureToHex,$e as size,De as slice,Ai as sliceBytes,Lt as sliceHex,Pi as stringToBytes,Je as stringToHex,Oi as stringify,pn as testActions,ge as toBlobSidecars,wo as toBlobs,B as toBytes,wr as toCoinType,_i as toEventHash,Ri as toEventSelector,qi as toEventSignature,Fi as toFunctionHash,Ui as toFunctionSelector,ki as toFunctionSignature,Nt as toHex,xo as toPrefixedMessage,ia as toRlp,ji as transactionType,We as trim,Eo as universalSignatureValidatorAbi,Io as universalSignatureValidatorByteCode,ta as validateTypedData,sr as verifyHash,or as verifyMessage,ir as verifyTypedData,qn as walletActions,pr as webSocket,To as weiUnits,Co as withCache,vo as withRetry,Qe as withTimeout,So as zeroAddress,Ao as zeroHash};
3
+ //# sourceMappingURL=index-CGdQ1CYx.js.map