@dcl/blog-site 0.3.0 → 0.3.1-24101748563.commit-5dd23bd

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 (161) hide show
  1. package/assets/{QueryClientProvider-DVt1z-lo.js → QueryClientProvider-D8JGfTJZ.js} +1 -1
  2. package/assets/{SignInRedirect-DQ2EXIlf.js → SignInRedirect-B22Or21E.js} +3 -3
  3. package/assets/{X-_bf2yze4.js → X-BO8TUwpx.js} +1 -1
  4. package/assets/{__federation_expose_App-DpSY-Y9d.js → __federation_expose_App-CWaPdzVQ.js} +1 -1
  5. package/assets/{__federation_fn_import-D82-s3kA.js → __federation_fn_import-BZzr9p5I.js} +1 -1
  6. package/assets/__federation_shared_@dcl/{hooks-35itWugh.js → hooks-XkzV3bRk.js} +3 -3
  7. package/assets/__federation_shared_@emotion/react-BhDT4KPC.js +1 -0
  8. package/assets/__federation_shared_@emotion/{styled-CER0OT-8.js → styled-BVF-ZKxF.js} +1 -1
  9. package/assets/{__federation_shared_decentraland-ui2-qV0BHWTj.js → __federation_shared_decentraland-ui2-CXg36SD8.js} +4 -4
  10. package/assets/{__federation_shared_react-redux-7pAtHZvO.js → __federation_shared_react-redux-NgrasIXv.js} +1 -1
  11. package/assets/{__federation_shared_react-router-dom-DM3U0-DJ.js → __federation_shared_react-router-dom-l5xPnLcY.js} +1 -1
  12. package/assets/{__federation_shared_viem-B7de3aIh.js → __federation_shared_viem-BVxLUNAk.js} +1 -1
  13. package/assets/{__federation_shared_wagmi-B-FL62eC.js → __federation_shared_wagmi-AT48iUUQ.js} +1 -1
  14. package/assets/{add-D95ShjVd.js → add-DsbBlWlM.js} +1 -1
  15. package/assets/{all-wallets-BY6r5fcR.js → all-wallets-B2MkoXVx.js} +1 -1
  16. package/assets/{app-store-SmbPBgEb.js → app-store-CjTy6Aou.js} +1 -1
  17. package/assets/{apple-D8pqe3de.js → apple-C42DI4gz.js} +1 -1
  18. package/assets/{arrow-bottom-circle-OyHlN-U-.js → arrow-bottom-circle-CiqHtGRW.js} +1 -1
  19. package/assets/{arrow-bottom-DQy0lFo0.js → arrow-bottom-pdzlDD-Z.js} +1 -1
  20. package/assets/{arrow-left-CXPqeZRE.js → arrow-left-08APJrdW.js} +1 -1
  21. package/assets/{arrow-right-BI45gebZ.js → arrow-right-DUgVHYNJ.js} +1 -1
  22. package/assets/{arrow-top-BxYGxPQg.js → arrow-top-Ca_tExYU.js} +1 -1
  23. package/assets/{auto-track-IXpT7xap.js → auto-track-WztB0WEY.js} +1 -1
  24. package/assets/{bank-DvWpLZQG.js → bank-x_nSAJBk.js} +1 -1
  25. package/assets/{basic-DENnvNSD.js → basic-BrMvAX6u.js} +1 -1
  26. package/assets/{biconomy-GzbQEJRq.js → biconomy-CYCfPY-1.js} +1 -1
  27. package/assets/{browser-COUlM8GK.js → browser-Dge4C11C.js} +1 -1
  28. package/assets/{card-DCZ4hxW7.js → card-CIoGdXXo.js} +1 -1
  29. package/assets/{ccip-DGW5U0-8.js → ccip-DuOQXVmH.js} +1 -1
  30. package/assets/{checkmark-C3MmlUGU.js → checkmark-BUTpQBAq.js} +1 -1
  31. package/assets/{checkmark-bold-BZz12uQW.js → checkmark-bold-wisdjxwy.js} +1 -1
  32. package/assets/{chevron-bottom-BITHvcvn.js → chevron-bottom-tgYS2nxV.js} +1 -1
  33. package/assets/{chevron-left-DLcgw6J3.js → chevron-left-CVi7nRwx.js} +1 -1
  34. package/assets/{chevron-right-CgvlwKH_.js → chevron-right-qhPosP7c.js} +1 -1
  35. package/assets/{chevron-top-E2kQk6Yb.js → chevron-top-DGNdu6kp.js} +1 -1
  36. package/assets/{chrome-store-IGBWJmfs.js → chrome-store-Cirv8vTS.js} +1 -1
  37. package/assets/{clock-Dnnqv_UX.js → clock-DusO0auP.js} +1 -1
  38. package/assets/{close-h_pw4dRD.js → close-BiCrbcWh.js} +1 -1
  39. package/assets/{coinPlaceholder-CpzdwguN.js → coinPlaceholder-Boe6JGgf.js} +1 -1
  40. package/assets/{compass-CLIqD2Io.js → compass-BtKHBveM.js} +1 -1
  41. package/assets/{controller-DOHoljGI.js → controller-CwvKDb2m.js} +2 -2
  42. package/assets/{copy-56eIYa9K.js → copy-D8aKsSJt.js} +1 -1
  43. package/assets/{core-iy2F1EJT.js → core-Bf1Copq6.js} +3 -3
  44. package/assets/{createBundlerClient-Cb3DWn31.js → createBundlerClient-DbsEHJ4Z.js} +1 -1
  45. package/assets/{createClient-BJ5w543s.js → createClient-CTGnCkcz.js} +1 -1
  46. package/assets/{cursor-DHAIalN2.js → cursor-DghXh_g_.js} +1 -1
  47. package/assets/{cursor-transparent-USINvuuv.js → cursor-transparent-B7SlxiQh.js} +1 -1
  48. package/assets/{decimals-CVjZGYo0.js → decimals-BsDfmgVP.js} +1 -1
  49. package/assets/{decimals-DIZDmdnI.js → decimals-D9AvtxfV.js} +1 -1
  50. package/assets/{desktop-Ck9zNNDL.js → desktop-Pzo63lfj.js} +1 -1
  51. package/assets/{detectExtension-DQNsMd7m.js → detectExtension-mP3NQwTG.js} +1 -1
  52. package/assets/{disconnect-B6rD3ARw.js → disconnect-BIV5nbxd.js} +1 -1
  53. package/assets/{discord-QyDy6H2Z.js → discord-nMOsPVZo.js} +1 -1
  54. package/assets/{emotion-react.browser.esm-BHtRLI5r.js → emotion-react.browser.esm-B33-U3sx.js} +1 -1
  55. package/assets/{emotion-use-insertion-effect-with-fallbacks.browser.esm-DxyPSsfO.js → emotion-use-insertion-effect-with-fallbacks.browser.esm-DBOXbAB5.js} +1 -1
  56. package/assets/{encode-JOmK-dAM.js → encode-dCkbk3AQ.js} +2 -2
  57. package/assets/{engine-Cr6ElJJw.js → engine-r9qQuN5M.js} +1 -1
  58. package/assets/{estimate-gas-CMPxVjuF.js → estimate-gas-DZC98WAc.js} +3 -3
  59. package/assets/{estimate-l1-fee-B90S_dRF.js → estimate-l1-fee-BqktBe1N.js} +1 -1
  60. package/assets/{eth_getStorageAt-BzWA0XEw.js → eth_getStorageAt-2wC3xick.js} +1 -1
  61. package/assets/{etherscan-BSyc5b_s.js → etherscan-DwU0ZuSh.js} +1 -1
  62. package/assets/{exclamation-triangle-Cbq68j9M.js → exclamation-triangle-VqIj0jCQ.js} +1 -1
  63. package/assets/{extension-Ef7aJ2Fj.js → extension-mw9o_4yJ.js} +1 -1
  64. package/assets/{external-link-bVFEWzQf.js → external-link-BEb6h2zw.js} +1 -1
  65. package/assets/{extractIPFS-kNuMOSPp.js → extractIPFS-iuWdTU-T.js} +1 -1
  66. package/assets/{facebook-KWDQXnqW.js → facebook-CtNr4Jq4.js} +1 -1
  67. package/assets/{farcaster-OZKU6ag9.js → farcaster-6ksO-rAC.js} +1 -1
  68. package/assets/{fee-data-BCMgs11D.js → fee-data-Bea8WIXf.js} +1 -1
  69. package/assets/{fetchTokenMetadata-BPHUGga-.js → fetchTokenMetadata-Dm2AtYtD.js} +2 -2
  70. package/assets/{filters-hVFxrfbM.js → filters-C_s4jUrY.js} +1 -1
  71. package/assets/{get-ecosystem-wallet-info-mPW-S8xG.js → get-ecosystem-wallet-info-Bms1j5h1.js} +1 -1
  72. package/assets/{getBalance-B1iUU342.js → getBalance-a-vaaoih.js} +1 -1
  73. package/assets/{getInstalledModules-BnNuIBJw.js → getInstalledModules-D7sZQpkY.js} +1 -1
  74. package/assets/{getNFT-DF0DVjz_.js → getNFT-DcuzkXO1.js} +2 -2
  75. package/assets/{getNFT-BPxN7Ctt.js → getNFT-_r5vGHFJ.js} +1 -1
  76. package/assets/{github-BzQnkFuN.js → github-BmI1Y3Mq.js} +1 -1
  77. package/assets/{google-Gdkba30S.js → google-sF2KogsG.js} +1 -1
  78. package/assets/{help-circle-CzuLd4UT.js → help-circle-DSRpOqA6.js} +1 -1
  79. package/assets/{id--DiZoCMN.js → id-iHUbf3q0.js} +1 -1
  80. package/assets/{image-S2doqbWs.js → image--QGVCz5N.js} +1 -1
  81. package/assets/{in-app-wallet-calls-C1SY2oWN.js → in-app-wallet-calls-Bv1Gy8VE.js} +1 -1
  82. package/assets/{index-CfDhCkmV.js → index-0Lc22N7_.js} +1 -1
  83. package/assets/{index-CgkAqmHX.js → index-BdC5gkgz.js} +1 -1
  84. package/assets/{index-D7VWCQbE.js → index-BgKyyaW6.js} +1 -1
  85. package/assets/index-BjzJcZq6.js +1 -1
  86. package/assets/{index-C52TjtZ8.js → index-CFlkkEji.js} +1 -1
  87. package/assets/{index-1ERaFZsE.js → index-ChmbYVEY.js} +1 -1
  88. package/assets/{index-T692f3s9.js → index-DQX07DEN.js} +1 -1
  89. package/assets/{index-f2LDpGwT.js → index-DZJu62Lr.js} +3 -3
  90. package/assets/{index-CwwTvCG6.js → index-DdPrHjBq.js} +1 -1
  91. package/assets/index-Dot3cU3_.js +1 -0
  92. package/assets/index-Dy0yjznp.js +1 -1
  93. package/assets/{index-ww85HWCV.js → index-DyIEPOp8.js} +1 -1
  94. package/assets/{index-b9i0Ibxp.js → index-XySjXoqx.js} +2 -2
  95. package/assets/{index-Dg2V4ned.js → index-aTooKCfO.js} +1 -1
  96. package/assets/{index-CH2z5aZN.js → index-vgC1T0K1.js} +2 -2
  97. package/assets/{index.es-CzqZMQ08.js → index.es-B7NpsfKw.js} +3 -3
  98. package/assets/{index.es-D_Iyl52g.js → index.es-DsAmcMC8.js} +1 -1
  99. package/assets/{info-DEpm9K4l.js → info-Slo6gOQz.js} +1 -1
  100. package/assets/{info-circle-BFBSJV6L.js → info-circle-dZrAOaJf.js} +1 -1
  101. package/assets/jsx-runtime-DncYoG30.js +1 -1
  102. package/assets/{lightbulb-GZWMuOVt.js → lightbulb-B5ard69F.js} +1 -1
  103. package/assets/{localBatchGatewayRequest-Df9EBRM7.js → localBatchGatewayRequest-CRyf88kF.js} +1 -1
  104. package/assets/{mail-CUdb6dNj.js → mail-BFUvh_js.js} +1 -1
  105. package/assets/{mobile-BeQz2cn_.js → mobile-Brs476ln.js} +1 -1
  106. package/assets/{more-TsN-CR-t.js → more-t7x11Ar7.js} +1 -1
  107. package/assets/{network-placeholder-DwFC6B_7.js → network-placeholder-BzBIrmUa.js} +1 -1
  108. package/assets/{nftPlaceholder-CiT4A3-l.js → nftPlaceholder-D10ThqXV.js} +1 -1
  109. package/assets/{off-CUv-83kc.js → off-CO1Tb2Ra.js} +1 -1
  110. package/assets/{openzeppelin-BBJIIsPB.js → openzeppelin-CwvUITdR.js} +1 -1
  111. package/assets/{ownerOf-DYtTCeNU.js → ownerOf-DIbB8-Pu.js} +1 -1
  112. package/assets/{parseNft-Buclbv5Y.js → parseNft-DEGeShRT.js} +2 -2
  113. package/assets/{play-store-RQqRTPUT.js → play-store-tFVQP-h8.js} +1 -1
  114. package/assets/{plus-C7MITUNH.js → plus-CU1RvNcK.js} +1 -1
  115. package/assets/preload-helper-BLohficu.js +1 -0
  116. package/assets/{qr-code-CpEPSAYR.js → qr-code-DutEJOZ7.js} +1 -1
  117. package/assets/{qr-overlay-DryFOQCX.js → qr-overlay-DYDcnTaw.js} +1 -1
  118. package/assets/{recycle-horizontal-B1QKxNTd.js → recycle-horizontal-CFph0tAQ.js} +1 -1
  119. package/assets/{refresh-DdqLkUQx.js → refresh-Bnog49AD.js} +1 -1
  120. package/assets/remoteEntry.js +1 -1
  121. package/assets/{reown-logo-_t3NoThE.js → reown-logo-OCpE5bKV.js} +1 -1
  122. package/assets/{resolveImplementation--gaCsV-s.js → resolveImplementation-DWPGoMu1.js} +1 -1
  123. package/assets/{search-B8WbQmvE.js → search-qNuV9lyV.js} +1 -1
  124. package/assets/{secp256k1-DtCHzlC3.js → secp256k1-BV4QVD29.js} +1 -1
  125. package/assets/{send-BFNT_o0R.js → send-Dii2Pw7R.js} +1 -1
  126. package/assets/{send-batch-transaction-ZanhTs8a.js → send-batch-transaction-B5a_BUBh.js} +1 -1
  127. package/assets/{send-eip712-transaction-CxRy-sD1.js → send-eip712-transaction-1K3ti4op.js} +2 -2
  128. package/assets/{send-gasless-transaction-Iz8ZLiHO.js → send-gasless-transaction-DI77vCwk.js} +2 -2
  129. package/assets/{serializeTransaction-BufQeOel.js → serializeTransaction-JIZ3RKrK.js} +1 -1
  130. package/assets/{session-proposal-BD47nRI-.js → session-proposal-noyeBULg.js} +1 -1
  131. package/assets/{session-request-TkgpbjLp.js → session-request-YLRKLINI.js} +2 -2
  132. package/assets/{signing-TLGj9K79.js → signing-BuBuOxhe.js} +3 -3
  133. package/assets/{swapHorizontal-BiFAMUuS.js → swapHorizontal-22C2KQaF.js} +1 -1
  134. package/assets/{swapHorizontalBold-CP3dUSZb.js → swapHorizontalBold-BfcrMuey.js} +1 -1
  135. package/assets/{swapHorizontalMedium-BRNlkDrO.js → swapHorizontalMedium-BHDs4ZZW.js} +1 -1
  136. package/assets/{swapHorizontalRoundedBold-CHqEVcBs.js → swapHorizontalRoundedBold-DU6UvZ-c.js} +1 -1
  137. package/assets/{swapVertical-Du0QoNAI.js → swapVertical-C4tNz6XG.js} +1 -1
  138. package/assets/{telegram-DQef1ILU.js → telegram-BfTKby3L.js} +1 -1
  139. package/assets/{thirdweb-E-fErz2x.js → thirdweb-BQj4AreN.js} +3 -3
  140. package/assets/{three-dots-ByXtSGCV.js → three-dots-Bal3nsdA.js} +1 -1
  141. package/assets/{totalSupply-DNIfxfBv.js → totalSupply-C0h1Q6z_.js} +1 -1
  142. package/assets/{twitch-DIxDFqku.js → twitch-K-DI4jqQ.js} +1 -1
  143. package/assets/{twitterIcon-B-SNXvpz.js → twitterIcon-uj4yS-Ve.js} +1 -1
  144. package/assets/{uid-Bq9ktEE-.js → uid-BPvHxAG-.js} +3 -3
  145. package/assets/{verify-BT-sFhiZ.js → verify-BXUso18-.js} +1 -1
  146. package/assets/{verify-filled-DUDJcSxD.js → verify-filled-CAuC0tVY.js} +1 -1
  147. package/assets/{w3m-modal-Ck71GkBa.js → w3m-modal-C0c69JDZ.js} +1 -1
  148. package/assets/{wait-for-tx-receipt-C5afrCK7.js → wait-for-tx-receipt-RNMBP9Yx.js} +1 -1
  149. package/assets/{wallet-DiXkPY80.js → wallet-BJobAv1p.js} +1 -1
  150. package/assets/{wallet-placeholder-DHuJakoz.js → wallet-placeholder-Bi5Qwdj0.js} +1 -1
  151. package/assets/{walletconnect-LtvddLlL.js → walletconnect-qUwOWdk_.js} +1 -1
  152. package/assets/{wallets-BmZ-KVbp.js → wallets-BQJnnz7M.js} +5 -5
  153. package/assets/{warning-circle-DEf5ta8Y.js → warning-circle-D80mCLLJ.js} +1 -1
  154. package/assets/{web-connector-6KYcG8gr.js → web-connector-zH75MT1q.js} +3 -3
  155. package/assets/{webSocket-2Mm3WVrI.js → webSocket-Dj4mcolG.js} +1 -1
  156. package/assets/{x-Cl1yAHbN.js → x-BRO0JOIq.js} +1 -1
  157. package/index.html +17 -17
  158. package/package.json +3 -3
  159. package/assets/__federation_shared_@emotion/react-LISJiiTk.js +0 -1
  160. package/assets/index-DIxygMtO.js +0 -1
  161. package/assets/preload-helper-BokH5fd6.js +0 -1
@@ -0,0 +1 @@
1
+ import{c as Br}from"./_commonjsHelpers-C4iS2aBk.js";var Xr={}.toString,ze=Array.isArray||function(e){return Xr.call(e)=="[object Array]"},k=TypeError,_r=Object,Zr=Error,rt=EvalError,tt=RangeError,et=ReferenceError,xr=SyntaxError,ot=URIError,nt=Math.abs,at=Math.floor,it=Math.max,yt=Math.min,lt=Math.pow,ft=Math.round,pt=Number.isNaN||function(r){return r!==r},ct=pt,ut=function(r){return ct(r)||r===0?r:r<0?-1:1},st=Object.getOwnPropertyDescriptor,B=st;if(B)try{B([],"length")}catch{B=null}var w=B,_=Object.defineProperty||!1;if(_)try{_({},"a",{value:1})}catch{_=!1}var W=_,Ur=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),o=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var n=42;r[t]=n;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var f=Object.getOwnPropertySymbols(r);if(f.length!==1||f[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var y=Object.getOwnPropertyDescriptor(r,t);if(y.value!==n||y.enumerable!==!0)return!1}return!0},cr=typeof Symbol<"u"&&Symbol,vt=Ur,gt=function(){return typeof cr!="function"||typeof Symbol!="function"||typeof cr("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:vt()},L,ur;function Cr(){return ur||(ur=1,L=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),L}var J,sr;function Dr(){if(sr)return J;sr=1;var e=_r;return J=e.getPrototypeOf||null,J}var V,vr;function dt(){if(vr)return V;vr=1;var e="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,t=Math.max,o="[object Function]",n=function(l,p){for(var c=[],u=0;u<l.length;u+=1)c[u]=l[u];for(var s=0;s<p.length;s+=1)c[s+l.length]=p[s];return c},i=function(l,p){for(var c=[],u=p,s=0;u<l.length;u+=1,s+=1)c[s]=l[u];return c},f=function(y,l){for(var p="",c=0;c<y.length;c+=1)p+=y[c],c+1<y.length&&(p+=l);return p};return V=function(l){var p=this;if(typeof p!="function"||r.apply(p)!==o)throw new TypeError(e+p);for(var c=i(arguments,1),u,s=function(){if(this instanceof u){var R=p.apply(this,n(c,arguments));return Object(R)===R?R:this}return p.apply(l,n(c,arguments))},h=t(0,p.length-c.length),d=[],g=0;g<h;g++)d[g]="$"+g;if(u=Function("binder","return function ("+f(d,",")+"){ return binder.apply(this,arguments); }")(s),p.prototype){var q=function(){};q.prototype=p.prototype,u.prototype=new q,q.prototype=null}return u},V}var H,gr;function F(){if(gr)return H;gr=1;var e=dt();return H=Function.prototype.bind||e,H}var z,dr;function ir(){return dr||(dr=1,z=Function.prototype.call),z}var Y,br;function yr(){return br||(br=1,Y=Function.prototype.apply),Y}var bt=typeof Reflect<"u"&&Reflect&&Reflect.apply,ht=F(),At=yr(),mt=ir(),Pt=bt,Mr=Pt||ht.call(mt,At),St=F(),$t=k,Ot=ir(),Et=Mr,lr=function(r){if(r.length<1||typeof r[0]!="function")throw new $t("a function is required");return Et(St,Ot,r)},wt=lr,hr=w,Nr;try{Nr=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var K=!!Nr&&hr&&hr(Object.prototype,"__proto__"),Gr=Object,Ar=Gr.getPrototypeOf,Ft=K&&typeof K.get=="function"?wt([K.get]):typeof Ar=="function"?function(r){return Ar(r==null?r:Gr(r))}:!1,mr=Cr(),Pr=Dr(),Sr=Ft,kr=mr?function(r){return mr(r)}:Pr?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return Pr(r)}:Sr?function(r){return Sr(r)}:null,jt=Function.prototype.call,It=Object.prototype.hasOwnProperty,Rt=F(),Tt=Rt.call(jt,It),a,Bt=_r,_t=Zr,xt=rt,Ut=tt,Ct=et,O=xr,$=k,Dt=ot,Mt=nt,Nt=at,Gt=it,kt=yt,Wt=lt,qt=ft,Lt=ut,Wr=Function,Q=function(e){try{return Wr('"use strict"; return ('+e+").constructor;")()}catch{}},E=w,Jt=W,X=function(){throw new $},Vt=E?function(){try{return arguments.callee,X}catch{try{return E(arguments,"callee").get}catch{return X}}}():X,A=gt(),v=kr,Ht=Dr(),zt=Cr(),qr=yr(),j=ir(),P={},Yt=typeof Uint8Array>"u"||!v?a:v(Uint8Array),b={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?a:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?a:ArrayBuffer,"%ArrayIteratorPrototype%":A&&v?v([][Symbol.iterator]()):a,"%AsyncFromSyncIteratorPrototype%":a,"%AsyncFunction%":P,"%AsyncGenerator%":P,"%AsyncGeneratorFunction%":P,"%AsyncIteratorPrototype%":P,"%Atomics%":typeof Atomics>"u"?a:Atomics,"%BigInt%":typeof BigInt>"u"?a:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?a:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?a:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?a:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":_t,"%eval%":eval,"%EvalError%":xt,"%Float16Array%":typeof Float16Array>"u"?a:Float16Array,"%Float32Array%":typeof Float32Array>"u"?a:Float32Array,"%Float64Array%":typeof Float64Array>"u"?a:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?a:FinalizationRegistry,"%Function%":Wr,"%GeneratorFunction%":P,"%Int8Array%":typeof Int8Array>"u"?a:Int8Array,"%Int16Array%":typeof Int16Array>"u"?a:Int16Array,"%Int32Array%":typeof Int32Array>"u"?a:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&v?v(v([][Symbol.iterator]())):a,"%JSON%":typeof JSON=="object"?JSON:a,"%Map%":typeof Map>"u"?a:Map,"%MapIteratorPrototype%":typeof Map>"u"||!A||!v?a:v(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Bt,"%Object.getOwnPropertyDescriptor%":E,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?a:Promise,"%Proxy%":typeof Proxy>"u"?a:Proxy,"%RangeError%":Ut,"%ReferenceError%":Ct,"%Reflect%":typeof Reflect>"u"?a:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?a:Set,"%SetIteratorPrototype%":typeof Set>"u"||!A||!v?a:v(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?a:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&v?v(""[Symbol.iterator]()):a,"%Symbol%":A?Symbol:a,"%SyntaxError%":O,"%ThrowTypeError%":Vt,"%TypedArray%":Yt,"%TypeError%":$,"%Uint8Array%":typeof Uint8Array>"u"?a:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?a:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?a:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?a:Uint32Array,"%URIError%":Dt,"%WeakMap%":typeof WeakMap>"u"?a:WeakMap,"%WeakRef%":typeof WeakRef>"u"?a:WeakRef,"%WeakSet%":typeof WeakSet>"u"?a:WeakSet,"%Function.prototype.call%":j,"%Function.prototype.apply%":qr,"%Object.defineProperty%":Jt,"%Object.getPrototypeOf%":Ht,"%Math.abs%":Mt,"%Math.floor%":Nt,"%Math.max%":Gt,"%Math.min%":kt,"%Math.pow%":Wt,"%Math.round%":qt,"%Math.sign%":Lt,"%Reflect.getPrototypeOf%":zt};if(v)try{null.error}catch(e){var Kt=v(v(e));b["%Error.prototype%"]=Kt}var Qt=function e(r){var t;if(r==="%AsyncFunction%")t=Q("async function () {}");else if(r==="%GeneratorFunction%")t=Q("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=Q("async function* () {}");else if(r==="%AsyncGenerator%"){var o=e("%AsyncGeneratorFunction%");o&&(t=o.prototype)}else if(r==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&v&&(t=v(n.prototype))}return b[r]=t,t},$r={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},I=F(),D=Tt,Xt=I.call(j,Array.prototype.concat),Zt=I.call(qr,Array.prototype.splice),Or=I.call(j,String.prototype.replace),M=I.call(j,String.prototype.slice),re=I.call(j,RegExp.prototype.exec),te=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ee=/\\(\\)?/g,oe=function(r){var t=M(r,0,1),o=M(r,-1);if(t==="%"&&o!=="%")throw new O("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&t!=="%")throw new O("invalid intrinsic syntax, expected opening `%`");var n=[];return Or(r,te,function(i,f,y,l){n[n.length]=y?Or(l,ee,"$1"):f||i}),n},ne=function(r,t){var o=r,n;if(D($r,o)&&(n=$r[o],o="%"+n[0]+"%"),D(b,o)){var i=b[o];if(i===P&&(i=Qt(o)),typeof i>"u"&&!t)throw new $("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:i}}throw new O("intrinsic "+r+" does not exist!")},Lr=function(r,t){if(typeof r!="string"||r.length===0)throw new $("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new $('"allowMissing" argument must be a boolean');if(re(/^%?[^%]*%?$/,r)===null)throw new O("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=oe(r),n=o.length>0?o[0]:"",i=ne("%"+n+"%",t),f=i.name,y=i.value,l=!1,p=i.alias;p&&(n=p[0],Zt(o,Xt([0,1],p)));for(var c=1,u=!0;c<o.length;c+=1){var s=o[c],h=M(s,0,1),d=M(s,-1);if((h==='"'||h==="'"||h==="`"||d==='"'||d==="'"||d==="`")&&h!==d)throw new O("property names with quotes must have matching quotes");if((s==="constructor"||!u)&&(l=!0),n+="."+s,f="%"+n+"%",D(b,f))y=b[f];else if(y!=null){if(!(s in y)){if(!t)throw new $("base intrinsic for "+r+" exists, but the property is not available.");return}if(E&&c+1>=o.length){var g=E(y,s);u=!!g,u&&"get"in g&&!("originalValue"in g.get)?y=g.get:y=y[s]}else u=D(y,s),y=y[s];u&&!l&&(b[f]=y)}}return y},Jr=Lr,Vr=lr,ae=Vr([Jr("%String.prototype.indexOf%")]),ie=function(r,t){var o=Jr(r,!!t);return typeof o=="function"&&ae(r,".prototype.")>-1?Vr([o]):o},Hr=Function.prototype.toString,S=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,tr,x;if(typeof S=="function"&&typeof Object.defineProperty=="function")try{tr=Object.defineProperty({},"length",{get:function(){throw x}}),x={},S(function(){throw 42},null,tr)}catch(e){e!==x&&(S=null)}else S=null;var ye=/^\s*class\b/,er=function(r){try{var t=Hr.call(r);return ye.test(t)}catch{return!1}},Z=function(r){try{return er(r)?!1:(Hr.call(r),!0)}catch{return!1}},U=Object.prototype.toString,le="[object Object]",fe="[object Function]",pe="[object GeneratorFunction]",ce="[object HTMLAllCollection]",ue="[object HTML document.all class]",se="[object HTMLCollection]",ve=typeof Symbol=="function"&&!!Symbol.toStringTag,ge=!(0 in[,]),or=function(){return!1};if(typeof document=="object"){var de=document.all;U.call(de)===U.call(document.all)&&(or=function(r){if((ge||!r)&&(typeof r>"u"||typeof r=="object"))try{var t=U.call(r);return(t===ce||t===ue||t===se||t===le)&&r("")==null}catch{}return!1})}var be=S?function(r){if(or(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{S(r,null,tr)}catch(t){if(t!==x)return!1}return!er(r)&&Z(r)}:function(r){if(or(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(ve)return Z(r);if(er(r))return!1;var t=U.call(r);return t!==fe&&t!==pe&&!/^\[object HTML/.test(t)?!1:Z(r)},he=be,Ae=Object.prototype.toString,zr=Object.prototype.hasOwnProperty,me=function(r,t,o){for(var n=0,i=r.length;n<i;n++)zr.call(r,n)&&(o==null?t(r[n],n,r):t.call(o,r[n],n,r))},Pe=function(r,t,o){for(var n=0,i=r.length;n<i;n++)o==null?t(r.charAt(n),n,r):t.call(o,r.charAt(n),n,r)},Se=function(r,t,o){for(var n in r)zr.call(r,n)&&(o==null?t(r[n],n,r):t.call(o,r[n],n,r))};function $e(e){return Ae.call(e)==="[object Array]"}var Oe=function(r,t,o){if(!he(t))throw new TypeError("iterator must be a function");var n;arguments.length>=3&&(n=o),$e(r)?me(r,t,n):typeof r=="string"?Pe(r,t,n):Se(r,t,n)},Ee=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],rr=Ee,we=typeof globalThis>"u"?Br:globalThis,Fe=function(){for(var r=[],t=0;t<rr.length;t++)typeof we[rr[t]]=="function"&&(r[r.length]=rr[t]);return r},Yr={exports:{}},Er=W,je=xr,m=k,wr=w,Ie=function(r,t,o){if(!r||typeof r!="object"&&typeof r!="function")throw new m("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new m("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new m("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new m("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new m("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new m("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,y=arguments.length>6?arguments[6]:!1,l=!!wr&&wr(r,t);if(Er)Er(r,t,{configurable:f===null&&l?l.configurable:!f,enumerable:n===null&&l?l.enumerable:!n,value:o,writable:i===null&&l?l.writable:!i});else if(y||!n&&!i&&!f)r[t]=o;else throw new je("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},nr=W,Kr=function(){return!!nr};Kr.hasArrayLengthDefineBug=function(){if(!nr)return null;try{return nr([],"length",{value:1}).length!==1}catch{return!0}};var Re=Kr,Te=Lr,Fr=Ie,Be=Re(),jr=w,Ir=k,_e=Te("%Math.floor%"),xe=function(r,t){if(typeof r!="function")throw new Ir("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||_e(t)!==t)throw new Ir("`length` must be a positive 32-bit integer");var o=arguments.length>2&&!!arguments[2],n=!0,i=!0;if("length"in r&&jr){var f=jr(r,"length");f&&!f.configurable&&(n=!1),f&&!f.writable&&(i=!1)}return(n||i||!o)&&(Be?Fr(r,"length",t,!0,!0):Fr(r,"length",t)),r},Ue=F(),Ce=yr(),De=Mr,Me=function(){return De(Ue,Ce,arguments)};(function(e){var r=xe,t=W,o=lr,n=Me;e.exports=function(f){var y=o(arguments),l=f.length-(arguments.length-1);return r(y,1+(l>0?l:0),!0)},t?t(e.exports,"apply",{value:n}):e.exports.apply=n})(Yr);var Ne=Yr.exports,Ge=Ur,ke=function(){return Ge()&&!!Symbol.toStringTag},N=Oe,We=Fe,Rr=Ne,fr=ie,C=w,T=kr,qe=fr("Object.prototype.toString"),Qr=ke(),Tr=typeof globalThis>"u"?Br:globalThis,ar=We(),pr=fr("String.prototype.slice"),Le=fr("Array.prototype.indexOf",!0)||function(r,t){for(var o=0;o<r.length;o+=1)if(r[o]===t)return o;return-1},G={__proto__:null};Qr&&C&&T?N(ar,function(e){var r=new Tr[e];if(Symbol.toStringTag in r&&T){var t=T(r),o=C(t,Symbol.toStringTag);if(!o&&t){var n=T(t);o=C(n,Symbol.toStringTag)}if(o&&o.get){var i=Rr(o.get);G["$"+e]=i}}}):N(ar,function(e){var r=new Tr[e],t=r.slice||r.set;if(t){var o=Rr(t);G["$"+e]=o}});var Je=function(r){var t=!1;return N(G,function(o,n){if(!t)try{"$"+o(r)===n&&(t=pr(n,1))}catch{}}),t},Ve=function(r){var t=!1;return N(G,function(o,n){if(!t)try{o(r),t=pr(n,1)}catch{}}),t},Ye=function(r){if(!r||typeof r!="object")return!1;if(!Qr){var t=pr(qe(r),8,-1);return Le(ar,t)>-1?t:t!=="Object"?!1:Ve(r)}return C?Je(r):null};export{Ne as a,Zr as b,ie as c,Ie as d,_r as e,kr as f,Lr as g,Re as h,ze as i,w as j,ke as k,Tt as l,xr as m,gt as n,Ur as s,k as t,Ye as w};
@@ -1 +1 @@
1
- let m;if(globalThis.__federation_shared__?.default?.["react"]){const{importShared:s}=await import("./__federation_fn_import-D82-s3kA.js");m=await s("react");}else{m=await import("./index-Dy0yjznp__bundled.js");}export const i=m.i??m;export const r=m.r??m;
1
+ let m;if(globalThis.__federation_shared__?.default?.["react"]){const{importShared:s}=await import("./__federation_fn_import-BZzr9p5I.js");m=await s("react");}else{m=await import("./index-Dy0yjznp__bundled.js");}export const i=m.i??m;export const r=m.r??m;
@@ -1,4 +1,4 @@
1
- import{l as H,m as V,n as A,B as I,o as ue,h as Ie,q as Z,i as U,S as Ca,v as ke,g as Pe,w as Qn,x as q,I as ku,y as Fe,z as Na,A as Cu,C as Tt,p as Un,D as Fo,E as Nu,f as Ru,F as Nn,e as ts,H as Mu,G as Ou,t as zu,a as _o,b as Fu,j as _u,J as Lu,K as Uu,k as Dt,L as ju}from"./utils-C7urdXtO.js";import{M as rb,N as sb,O as ob,P as ab,Q as ib,R as cb,T as ub,U as db,V as fb}from"./utils-C7urdXtO.js";import{i as Q,I as de,k as J,c as Ra,g as Ce,p as qu,L as er,a as Du}from"./publicKeyToAddress-CxEKPAKT.js";import{_ as zs}from"./preload-helper-BokH5fd6.js";import{s as Gu,a as tr,H as Hu,b as Vu}from"./sha256-DYtpy1Qz.js";import{c as pb,d as hb,e as mb,f as yb,g as bb,h as gb,i as wb,j as xb,k as vb,l as Eb,n as Pb,o as Ib,p as Ab,q as Tb,r as $b,t as Bb,u as Sb,v as kb,w as Cb,x as Nb,y as Rb,z as Mb,A as Ob,B as zb,C as Fb,D as _b,E as Lb,F as Ub,G as jb,I as qb,J as Db,K as Gb,L as Hb,M as Vb,N as Wb,O as Zb,P as Yb,Q as Kb,R as Jb,m as Xb,S as Qb,T as e6,U as t6,V as n6,W as r6,X as s6,Y as o6,Z as a6,_ as i6,$ as c6,a0 as u6,a1 as d6,a2 as f6,a3 as l6,a4 as p6,a5 as h6,a6 as m6,a7 as y6,a8 as b6,a9 as g6,aa as w6,ab as x6,ac as v6,ad as E6,ae as P6,af as I6,ag as A6,ah as T6,ai as $6,aj as B6,ak as S6,al as k6,am as C6,an as N6,ao as R6,ap as M6,aq as O6,ar as z6,as as F6,at as _6,au as L6,av as U6,aw as j6,ax as q6,ay as D6,az as G6,aA as H6,aB as V6,aC as W6,aD as Z6,aE as Y6,aF as K6,aG as J6,aH as X6,aI as Q6}from"./sha256-DYtpy1Qz.js";import{E as t5}from"./estimate-gas-CMPxVjuF.js";function nr(e,t){return({exclude:n,format:r})=>({exclude:n,format:(s,o)=>{const a=t(s,o);if(n)for(const i of n)delete a[i];return{...a,...r(s,o)}},type:e})}const Ma={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function Fs(e,t){const n={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?H(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?H(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?Ma[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(n.authorizationList=Wu(e.authorizationList)),n.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof n.v=="bigint"){if(n.v===0n||n.v===27n)return 0;if(n.v===1n||n.v===28n)return 1;if(n.v>=35n)return n.v%2n===0n?1:0}})(),n.type==="legacy"&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),n.type==="eip2930"&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),n.type==="eip1559"&&delete n.maxFeePerBlobGas,n}const Wm=nr("transaction",Fs);function Wu(e){return e.map(t=>({address:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))}function _s(e,t){const n=(e.transactions??[]).map(r=>typeof r=="string"?r:Fs(r));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:n,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}const Zm=nr("block",_s);function Le(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}const Oa={"0x0":"reverted","0x1":"success"};function Ls(e,t){const 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?e.logs.map(r=>Le(r)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?H(e.transactionIndex):null,status:e.status?Oa[e.status]:null,type:e.type?Ma[e.type]||e.type:null};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),n}const Ym=nr("transactionReceipt",Ls),Zu={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function je(e,t){const n={};return typeof e.authorizationList<"u"&&(n.authorizationList=Yu(e.authorizationList)),typeof e.accessList<"u"&&(n.accessList=e.accessList),typeof e.blobVersionedHashes<"u"&&(n.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(typeof e.blobs[0]!="string"?n.blobs=e.blobs.map(r=>V(r)):n.blobs=e.blobs),typeof e.data<"u"&&(n.data=e.data),e.account&&(n.from=e.account.address),typeof e.from<"u"&&(n.from=e.from),typeof e.gas<"u"&&(n.gas=A(e.gas)),typeof e.gasPrice<"u"&&(n.gasPrice=A(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(n.maxFeePerBlobGas=A(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(n.maxFeePerGas=A(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(n.maxPriorityFeePerGas=A(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(n.nonce=A(e.nonce)),typeof e.to<"u"&&(n.to=e.to),typeof e.type<"u"&&(n.type=Zu[e.type]),typeof e.value<"u"&&(n.value=A(e.value)),n}const Km=nr("transactionRequest",je);function Yu(e){return e.map(t=>({address:t.address,r:t.r?A(BigInt(t.r)):t.r,s:t.s?A(BigInt(t.s)):t.s,chainId:A(t.chainId),nonce:A(t.nonce),...typeof t.yParity<"u"?{yParity:A(t.yParity)}:{},...typeof t.v<"u"&&typeof t.yParity>"u"?{v:A(t.v)}:{}}))}function fe(e){return typeof e[0]=="string"?ye(e):Ku(e)}function Ku(e){let t=0;for(const s of e)t+=s.length;const n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function ye(e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}let Lo=class extends I{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}},za=class extends I{constructor({length:t,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}},Ju=class extends I{constructor({count:t,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}};const Xu={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new Ju({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new za({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new Lo({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new Lo({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function $t(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(Xu);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}function Ne(e,t="hex"){const n=Fa(e),r=$t(new Uint8Array(n.length));return n.encode(r),t==="hex"?V(r.bytes):r.bytes}function ey(e,t="bytes"){return Ne(e,t)}function ty(e,t="hex"){return Ne(e,t)}function Fa(e){return Array.isArray(e)?Qu(e.map(t=>Fa(t))):e0(e)}function Qu(e){const t=e.reduce((s,o)=>s+o.length,0),n=_a(t);return{length:t<=55?1+t:1+n+t,encode(s){t<=55?s.pushByte(192+t):(s.pushByte(247+n),n===1?s.pushUint8(t):n===2?s.pushUint16(t):n===3?s.pushUint24(t):s.pushUint32(t));for(const{encode:o}of e)o(s)}}}function e0(e){const t=typeof e=="string"?ue(e):e,n=_a(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(s){t.length===1&&t[0]<128?s.pushBytes(t):t.length<=55?(s.pushByte(128+t.length),s.pushBytes(t)):(s.pushByte(183+n),n===1?s.pushUint8(t.length):n===2?s.pushUint16(t.length):n===3?s.pushUint24(t.length):s.pushUint32(t.length),s.pushBytes(t))}}}function _a(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new I("Length is too large.")}const La={gwei:9,wei:18},Ua={ether:-9,wei:9},ny={ether:-18,gwei:-9};function ja(e,t){let n=e.toString();const r=n.startsWith("-");r&&(n=n.slice(1)),n=n.padStart(t,"0");let[s,o]=[n.slice(0,n.length-t),n.slice(n.length-t)];return o=o.replace(/(0+)$/,""),`${r?"-":""}${s||"0"}${o?`.${o}`:""}`}function Us(e,t="wei"){return ja(e,La[t])}function ce(e,t="wei"){return ja(e,Ua[t])}function mn(e){const t=Object.entries(e).map(([r,s])=>s===void 0||s===!1?null:[r,s]).filter(Boolean),n=t.reduce((r,[s])=>Math.max(r,s.length),0);return t.map(([r,s])=>` ${`${r}:`.padEnd(n+1)} ${s}`).join(`
1
+ import{l as H,m as V,n as A,B as I,o as ue,h as Ie,q as Z,i as U,S as Ca,v as ke,g as Pe,w as Qn,x as q,I as ku,y as Fe,z as Na,A as Cu,C as Tt,p as Un,D as Fo,E as Nu,f as Ru,F as Nn,e as ts,H as Mu,G as Ou,t as zu,a as _o,b as Fu,j as _u,J as Lu,K as Uu,k as Dt,L as ju}from"./utils-C7urdXtO.js";import{M as rb,N as sb,O as ob,P as ab,Q as ib,R as cb,T as ub,U as db,V as fb}from"./utils-C7urdXtO.js";import{i as Q,I as de,k as J,c as Ra,g as Ce,p as qu,L as er,a as Du}from"./publicKeyToAddress-CxEKPAKT.js";import{_ as zs}from"./preload-helper-BLohficu.js";import{s as Gu,a as tr,H as Hu,b as Vu}from"./sha256-DYtpy1Qz.js";import{c as pb,d as hb,e as mb,f as yb,g as bb,h as gb,i as wb,j as xb,k as vb,l as Eb,n as Pb,o as Ib,p as Ab,q as Tb,r as $b,t as Bb,u as Sb,v as kb,w as Cb,x as Nb,y as Rb,z as Mb,A as Ob,B as zb,C as Fb,D as _b,E as Lb,F as Ub,G as jb,I as qb,J as Db,K as Gb,L as Hb,M as Vb,N as Wb,O as Zb,P as Yb,Q as Kb,R as Jb,m as Xb,S as Qb,T as e6,U as t6,V as n6,W as r6,X as s6,Y as o6,Z as a6,_ as i6,$ as c6,a0 as u6,a1 as d6,a2 as f6,a3 as l6,a4 as p6,a5 as h6,a6 as m6,a7 as y6,a8 as b6,a9 as g6,aa as w6,ab as x6,ac as v6,ad as E6,ae as P6,af as I6,ag as A6,ah as T6,ai as $6,aj as B6,ak as S6,al as k6,am as C6,an as N6,ao as R6,ap as M6,aq as O6,ar as z6,as as F6,at as _6,au as L6,av as U6,aw as j6,ax as q6,ay as D6,az as G6,aA as H6,aB as V6,aC as W6,aD as Z6,aE as Y6,aF as K6,aG as J6,aH as X6,aI as Q6}from"./sha256-DYtpy1Qz.js";import{E as t5}from"./estimate-gas-DZC98WAc.js";function nr(e,t){return({exclude:n,format:r})=>({exclude:n,format:(s,o)=>{const a=t(s,o);if(n)for(const i of n)delete a[i];return{...a,...r(s,o)}},type:e})}const Ma={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function Fs(e,t){const n={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?H(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?H(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?Ma[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(n.authorizationList=Wu(e.authorizationList)),n.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof n.v=="bigint"){if(n.v===0n||n.v===27n)return 0;if(n.v===1n||n.v===28n)return 1;if(n.v>=35n)return n.v%2n===0n?1:0}})(),n.type==="legacy"&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),n.type==="eip2930"&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),n.type==="eip1559"&&delete n.maxFeePerBlobGas,n}const Wm=nr("transaction",Fs);function Wu(e){return e.map(t=>({address:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))}function _s(e,t){const n=(e.transactions??[]).map(r=>typeof r=="string"?r:Fs(r));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:n,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}const Zm=nr("block",_s);function Le(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}const Oa={"0x0":"reverted","0x1":"success"};function Ls(e,t){const 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?e.logs.map(r=>Le(r)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?H(e.transactionIndex):null,status:e.status?Oa[e.status]:null,type:e.type?Ma[e.type]||e.type:null};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),n}const Ym=nr("transactionReceipt",Ls),Zu={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function je(e,t){const n={};return typeof e.authorizationList<"u"&&(n.authorizationList=Yu(e.authorizationList)),typeof e.accessList<"u"&&(n.accessList=e.accessList),typeof e.blobVersionedHashes<"u"&&(n.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(typeof e.blobs[0]!="string"?n.blobs=e.blobs.map(r=>V(r)):n.blobs=e.blobs),typeof e.data<"u"&&(n.data=e.data),e.account&&(n.from=e.account.address),typeof e.from<"u"&&(n.from=e.from),typeof e.gas<"u"&&(n.gas=A(e.gas)),typeof e.gasPrice<"u"&&(n.gasPrice=A(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(n.maxFeePerBlobGas=A(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(n.maxFeePerGas=A(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(n.maxPriorityFeePerGas=A(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(n.nonce=A(e.nonce)),typeof e.to<"u"&&(n.to=e.to),typeof e.type<"u"&&(n.type=Zu[e.type]),typeof e.value<"u"&&(n.value=A(e.value)),n}const Km=nr("transactionRequest",je);function Yu(e){return e.map(t=>({address:t.address,r:t.r?A(BigInt(t.r)):t.r,s:t.s?A(BigInt(t.s)):t.s,chainId:A(t.chainId),nonce:A(t.nonce),...typeof t.yParity<"u"?{yParity:A(t.yParity)}:{},...typeof t.v<"u"&&typeof t.yParity>"u"?{v:A(t.v)}:{}}))}function fe(e){return typeof e[0]=="string"?ye(e):Ku(e)}function Ku(e){let t=0;for(const s of e)t+=s.length;const n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function ye(e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}let Lo=class extends I{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}},za=class extends I{constructor({length:t,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}},Ju=class extends I{constructor({count:t,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}};const Xu={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new Ju({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new za({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new Lo({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new Lo({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function $t(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(Xu);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}function Ne(e,t="hex"){const n=Fa(e),r=$t(new Uint8Array(n.length));return n.encode(r),t==="hex"?V(r.bytes):r.bytes}function ey(e,t="bytes"){return Ne(e,t)}function ty(e,t="hex"){return Ne(e,t)}function Fa(e){return Array.isArray(e)?Qu(e.map(t=>Fa(t))):e0(e)}function Qu(e){const t=e.reduce((s,o)=>s+o.length,0),n=_a(t);return{length:t<=55?1+t:1+n+t,encode(s){t<=55?s.pushByte(192+t):(s.pushByte(247+n),n===1?s.pushUint8(t):n===2?s.pushUint16(t):n===3?s.pushUint24(t):s.pushUint32(t));for(const{encode:o}of e)o(s)}}}function e0(e){const t=typeof e=="string"?ue(e):e,n=_a(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(s){t.length===1&&t[0]<128?s.pushBytes(t):t.length<=55?(s.pushByte(128+t.length),s.pushBytes(t)):(s.pushByte(183+n),n===1?s.pushUint8(t.length):n===2?s.pushUint16(t.length):n===3?s.pushUint24(t.length):s.pushUint32(t.length),s.pushBytes(t))}}}function _a(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new I("Length is too large.")}const La={gwei:9,wei:18},Ua={ether:-9,wei:9},ny={ether:-18,gwei:-9};function ja(e,t){let n=e.toString();const r=n.startsWith("-");r&&(n=n.slice(1)),n=n.padStart(t,"0");let[s,o]=[n.slice(0,n.length-t),n.slice(n.length-t)];return o=o.replace(/(0+)$/,""),`${r?"-":""}${s||"0"}${o?`.${o}`:""}`}function Us(e,t="wei"){return ja(e,La[t])}function ce(e,t="wei"){return ja(e,Ua[t])}function mn(e){const t=Object.entries(e).map(([r,s])=>s===void 0||s===!1?null:[r,s]).filter(Boolean),n=t.reduce((r,[s])=>Math.max(r,s.length),0);return t.map(([r,s])=>` ${`${r}:`.padEnd(n+1)} ${s}`).join(`
2
2
  `)}class t0 extends I{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(`
3
3
  `),{name:"FeeConflictError"})}}class qa extends I{constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class n0 extends I{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",mn(t),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class r0 extends I{constructor({serializedType:t}){super(`Serialized transaction type "${t}" is invalid.`,{name:"InvalidSerializedTransactionType"}),Object.defineProperty(this,"serializedType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedType=t}}class yn extends I{constructor({attributes:t,serializedTransaction:n,type:r}){const s=Object.entries(t).map(([o,a])=>typeof a>"u"?o:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${r}" was provided.`,{metaMessages:[`Serialized Transaction: "${n}"`,s.length>0?`Missing Attributes: ${s.join(", ")}`:""].filter(Boolean),name:"InvalidSerializedTransactionError"}),Object.defineProperty(this,"serializedTransaction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedTransaction=n,this.type=r}}class s0 extends I{constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class o0 extends I{constructor(t,{account:n,docsPath:r,chain:s,data:o,gas:a,gasPrice:i,maxFeePerGas:c,maxPriorityFeePerGas:u,nonce:d,to:l,value:f}){const p=mn({chain:s&&`${s?.name} (id: ${s?.id})`,from:n?.address,to:l,value:typeof f<"u"&&`${Us(f)} ${s?.nativeCurrency?.symbol||"ETH"}`,data:o,gas:a,gasPrice:typeof i<"u"&&`${ce(i)} gwei`,maxFeePerGas:typeof c<"u"&&`${ce(c)} gwei`,maxPriorityFeePerGas:typeof u<"u"&&`${ce(u)} gwei`,nonce:d});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Request Arguments:",p].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class Da extends I{constructor({blockHash:t,blockNumber:n,blockTag:r,hash:s,index:o}){let a="Transaction";r&&o!==void 0&&(a=`Transaction at block time "${r}" at index "${o}"`),t&&o!==void 0&&(a=`Transaction at block hash "${t}" at index "${o}"`),n&&o!==void 0&&(a=`Transaction at block number "${n}" at index "${o}"`),s&&(a=`Transaction with hash "${s}"`),super(`${a} could not be found.`,{name:"TransactionNotFoundError"})}}class Ga extends I{constructor({hash:t}){super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class Ha extends I{constructor({receipt:t}){super(`Transaction with hash "${t.transactionHash}" reverted.`,{metaMessages:['The receipt marked the transaction as "reverted". This could mean that the function on the contract you are trying to call threw an error.'," ","You can attempt to extract the revert reason by:","- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract","- using the `call` Action with raw `data`"],name:"TransactionReceiptRevertedError"}),Object.defineProperty(this,"receipt",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=t}}class a0 extends I{constructor({hash:t}){super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}function i0(e){if(!e||e.length===0)return[];const t=[];for(const n of e){const{chainId:r,nonce:s,...o}=n,a=n.address;t.push([r?Ie(r):"0x",a,s?Ie(s):"0x",...gn({},o)])}return t}function js(e){const{kzg:t}=e,n=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),r=typeof e.blobs[0]=="string"?e.blobs.map(o=>ue(o)):e.blobs,s=[];for(const o of r)s.push(Uint8Array.from(t.blobToKzgCommitment(o)));return n==="bytes"?s:s.map(o=>V(o))}function qs(e){const{kzg:t}=e,n=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),r=typeof e.blobs[0]=="string"?e.blobs.map(a=>ue(a)):e.blobs,s=typeof e.commitments[0]=="string"?e.commitments.map(a=>ue(a)):e.commitments,o=[];for(let a=0;a<r.length;a++){const i=r[a],c=s[a];o.push(Uint8Array.from(t.computeBlobKzgProof(i,c)))}return n==="bytes"?o:o.map(a=>V(a))}function Va(e){const{commitment:t,version:n=1}=e,r=e.to??(typeof t=="string"?"hex":"bytes"),s=Gu(t,"bytes");return s.set([n],0),r==="bytes"?s:V(s)}function Wa(e){const{commitments:t,version:n}=e,r=e.to??(typeof t[0]=="string"?"hex":"bytes"),s=[];for(const o of t)s.push(Va({commitment:o,to:r,version:n}));return s}const Uo=6,Za=32,Ds=4096,Ya=Za*Ds,jo=Ya*Uo-1-1*Ds*Uo,Ka=1;class c0 extends I{constructor({maxSize:t,size:n}){super("Blob size is too large.",{metaMessages:[`Max: ${t} bytes`,`Given: ${n} bytes`],name:"BlobSizeTooLargeError"})}}class Ja extends I{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class u0 extends I{constructor({hash:t,size:n}){super(`Versioned hash "${t}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${n}`],name:"InvalidVersionedHashSizeError"})}}class d0 extends I{constructor({hash:t,version:n}){super(`Versioned hash "${t}" version is invalid.`,{metaMessages:[`Expected: ${Ka}`,`Received: ${n}`],name:"InvalidVersionedHashVersionError"})}}function f0(e){const t=e.to??(typeof e.data=="string"?"hex":"bytes"),n=typeof e.data=="string"?ue(e.data):e.data,r=Z(n);if(!r)throw new Ja;if(r>jo)throw new c0({maxSize:jo,size:r});const s=[];let o=!0,a=0;for(;o;){const i=$t(new Uint8Array(Ya));let c=0;for(;c<Ds;){const u=n.slice(a,a+(Za-1));if(i.pushByte(0),i.pushBytes(u),u.length<31){i.pushByte(128),o=!1;break}c++,a+=31}s.push(i)}return t==="bytes"?s.map(i=>i.bytes):s.map(i=>V(i.bytes))}function Gs(e){const{data:t,kzg:n,to:r}=e,s=e.blobs??f0({data:t,to:r}),o=e.commitments??js({blobs:s,kzg:n,to:r}),a=e.proofs??qs({blobs:s,commitments:o,kzg:n,to:r}),i=[];for(let c=0;c<s.length;c++)i.push({blob:s[c],commitment:o[c],proof:a[c]});return i}class ns extends I{constructor({blockNumber:t,chain:n,contract:r}){super(`Chain "${n.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...t&&r.blockCreated&&r.blockCreated>t?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract "${r.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class l0 extends I{constructor({chain:t,currentChainId:n}){super(`The current chain of the wallet (id: ${n}) does not match the target chain for the transaction (id: ${t.id} – ${t.name}).`,{metaMessages:[`Current Chain ID: ${n}`,`Expected Chain ID: ${t.id} – ${t.name}`],name:"ChainMismatchError"})}}class p0 extends I{constructor(){super(["No chain was provided to the request.","Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."].join(`
4
4
  `),{name:"ChainNotFoundError"})}}class Xa extends I{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class rr extends I{constructor({chainId:t}){super(typeof t=="number"?`Chain ID "${t}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}class Je extends I{constructor({cause:t,message:n}={}){const r=n?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:t,name:"ExecutionRevertedError"})}}Object.defineProperty(Je,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(Je,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class st extends I{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${ce(n)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t,name:"FeeCapTooHighError"})}}Object.defineProperty(st,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class rs extends I{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${ce(n)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t,name:"FeeCapTooLowError"})}}Object.defineProperty(rs,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class ss extends I{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}is higher than the next one expected.`,{cause:t,name:"NonceTooHighError"})}}Object.defineProperty(ss,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class os extends I{constructor({cause:t,nonce:n}={}){super([`Nonce provided for the transaction ${n?`(${n}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(`
@@ -1,2 +1,2 @@
1
- const __vite__fileDeps=["assets/decimals-CVjZGYo0.js","assets/withCache-DYumIHzL.js","assets/decimals-DIZDmdnI.js","assets/__federation_fn_import-D82-s3kA.js","assets/signing-TLGj9K79.js","assets/hex-B0Rx0hII.js","assets/preload-helper-BokH5fd6.js","assets/fee-data-BCMgs11D.js","assets/rpc-ti0b0r_u.js","assets/utils-CozXUO91.js","assets/json-BHzNJmTy.js","assets/op-gas-fee-reducer-CfxMcvXl.js","assets/estimate-gas-CMPxVjuF.js","assets/encode-JOmK-dAM.js","assets/in-app-wallet-calls-C1SY2oWN.js","assets/wait-for-tx-receipt-C5afrCK7.js","assets/sleep-mAKpSMLY.js","assets/send-batch-transaction-ZanhTs8a.js","assets/wallets-BmZ-KVbp.js","assets/store-DOLZnwHk.js","assets/publicKeyToAddress-CxEKPAKT.js","assets/utils-C7urdXtO.js","assets/events-B5inrCVE.js","assets/_commonjsHelpers-C4iS2aBk.js","assets/index.es-D3pP9hN4.js","assets/index-nibyPLVP.js","assets/ethereum-dN7ENYl_.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
- import{_ as v}from"./preload-helper-BokH5fd6.js";import{h as oe,a as T,k as de,g as B,t as V,c as me,d as pe}from"./estimate-gas-CMPxVjuF.js";import{getCachedChain as F}from"./utils-CozXUO91.js";import{importShared as O}from"./__federation_fn_import-D82-s3kA.js";import{r as _,p as z,Z as K,f as Z,h as j,e as ue,m as le,j as ye,k as fe,b as we,l as Y,n as Ae,t as ve}from"./signing-TLGj9K79.js";import{a as Ge,b as J,g as ge}from"./fee-data-BCMgs11D.js";import{x as Q,r as he,y as X,E as x,z as Pe,A as k,B as Te,C as Le,G as Oe,H as b,I as ee,J as te,L as De,p as xe,M as Se,O as Ce,Q as _e}from"./wallets-BmZ-KVbp.js";import{R as ia}from"./wallets-BmZ-KVbp.js";import{t as Ee,p as Fe,s as Ve}from"./send-eip712-transaction-CxRy-sD1.js";import{r as D}from"./op-gas-fee-reducer-CfxMcvXl.js";import{encode as H}from"./encode-JOmK-dAM.js";import{h as E,t as be}from"./hex-B0Rx0hII.js";import{a as Ue,i as Ie}from"./withCache-DYumIHzL.js";import{stringify as ae}from"./json-BHzNJmTy.js";const{decodeAbiParameters:Jt}=await O("viem"),Re="0xdd62ed3e",Ne=[{name:"owner",type:"address"},{name:"spender",type:"address"}],$e=[{type:"uint256"}];async function ke(e){return _({contract:e.contract,method:[Re,Ne,$e],params:[e.owner,e.spender]})}const He="0x095ea7b3",Me=[{name:"spender",type:"address"},{name:"value",type:"uint256"}],We=[{type:"bool"}];function qe(e){const t=Q(async()=>"asyncParams"in e?await e.asyncParams():e);return z({accessList:async()=>(await t()).overrides?.accessList,authorizationList:async()=>(await t()).overrides?.authorizationList,contract:e.contract,erc20Value:async()=>(await t()).overrides?.erc20Value,extraGas:async()=>(await t()).overrides?.extraGas,gas:async()=>(await t()).overrides?.gas,gasPrice:async()=>(await t()).overrides?.gasPrice,maxFeePerGas:async()=>(await t()).overrides?.maxFeePerGas,maxPriorityFeePerGas:async()=>(await t()).overrides?.maxPriorityFeePerGas,method:[He,Me,We],nonce:async()=>(await t()).overrides?.nonce,params:async()=>{const s=await t();return[s.spender,s.value]},value:async()=>(await t()).overrides?.value})}function Be(e){return qe({asyncParams:async()=>{let t;if("amount"in e){const{decimals:s}=await v(async()=>{const{decimals:n}=await import("./decimals-CVjZGYo0.js");return{decimals:n}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13])),r=await s(e).catch(()=>18);t=Ge(e.amount.toString(),r)}else t=e.amountWei;return{overrides:{erc20Value:{amountWei:t,tokenAddress:e.contract.address},...e.overrides},spender:e.spender,value:t}},contract:e.contract})}const{decodeAbiParameters:Qt}=await O("viem"),ze="0xf15d424e",Ke=[{name:"signer",type:"address"}],Ze=[{components:[{name:"signer",type:"address"},{name:"approvedTargets",type:"address[]"},{name:"nativeTokenLimitPerTransaction",type:"uint256"},{name:"startTimestamp",type:"uint128"},{name:"endTimestamp",type:"uint128"}],name:"permissions",type:"tuple"}];async function je(e){return _({contract:e.contract,method:[ze,Ke,Ze],params:[e.signer]})}const Ye="0x5892e236",Je=[{components:[{name:"signer",type:"address"},{name:"isAdmin",type:"uint8"},{name:"approvedTargets",type:"address[]"},{name:"nativeTokenLimitPerTransaction",type:"uint256"},{name:"permissionStartTimestamp",type:"uint128"},{name:"permissionEndTimestamp",type:"uint128"},{name:"reqValidityStartTimestamp",type:"uint128"},{name:"reqValidityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],name:"req",type:"tuple"},{name:"signature",type:"bytes"}],Qe=[];function Xe(e){const t=Q(async()=>"asyncParams"in e?await e.asyncParams():e);return z({accessList:async()=>(await t()).overrides?.accessList,authorizationList:async()=>(await t()).overrides?.authorizationList,contract:e.contract,erc20Value:async()=>(await t()).overrides?.erc20Value,extraGas:async()=>(await t()).overrides?.extraGas,gas:async()=>(await t()).overrides?.gas,gasPrice:async()=>(await t()).overrides?.gasPrice,maxFeePerGas:async()=>(await t()).overrides?.maxFeePerGas,maxPriorityFeePerGas:async()=>(await t()).overrides?.maxPriorityFeePerGas,method:[Ye,Je,Qe],nonce:async()=>(await t()).overrides?.nonce,params:async()=>{const s=await t();return[s.req,s.signature]},value:async()=>(await t()).overrides?.value})}function q(){return new Date(Date.now()+1e3*60*60*24*365*10)}function R(e){return Ee(Math.floor(e.getTime()/1e3))}const et=[{name:"signer",type:"address"},{name:"isAdmin",type:"uint8"},{name:"approvedTargets",type:"address[]"},{name:"nativeTokenLimitPerTransaction",type:"uint256"},{name:"permissionStartTimestamp",type:"uint128"},{name:"permissionEndTimestamp",type:"uint128"},{name:"reqValidityStartTimestamp",type:"uint128"},{name:"reqValidityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}];async function tt(e){const{account:t,contract:s,req:r}=e,n=await t.signTypedData({domain:{chainId:s.chain.id,name:"Account",verifyingContract:s.address,version:"1"},message:r,primaryType:"SignerPermissionRequest",types:{SignerPermissionRequest:et}});return{req:r,signature:n}}async function at(e){const{target:t,permissions:s}=e;return{approvedTargets:s.approvedTargets==="*"?[K]:s.approvedTargets,isAdmin:0,nativeTokenLimitPerTransaction:J(s.nativeTokenLimitPerTransaction?.toString()||"0"),permissionEndTimestamp:R(s.permissionEndTimestamp||q()),permissionStartTimestamp:R(s.permissionStartTimestamp||new Date(0)),reqValidityEndTimestamp:R(q()),reqValidityStartTimestamp:0n,signer:t,uid:await he()}}function st(e){const{contract:t,sessionKeyAddress:s,account:r,permissions:n}=e;return Xe({async asyncParams(){const{req:a,signature:c}=await tt({account:r,contract:t,req:await at({permissions:n,target:s})});return{req:a,signature:c}},contract:t})}async function nt(e){const{accountContract:t,sessionKeyAddress:s,newPermissions:r}=e;if(!await Z(t))return!0;const a=await je({contract:t,signer:s});return!!(a.endTimestamp&&a.endTimestamp<Math.floor(Date.now()/1e3)||!rt(a.approvedTargets,r.approvedTargets)||J(r.nativeTokenLimitPerTransaction?.toString()??"0")>a.nativeTokenLimitPerTransaction)}function rt(e,t){return t==="*"&&e.length===1&&e[0]===K?!0:t!=="*"?t.map(s=>s.toLowerCase()).every(s=>e.map(r=>r.toLowerCase()).includes(s)):!1}const it=2n**96n-1n,{decodeAbiParameters:Xt}=await O("viem"),ct="0x35567e1a",ot=[{name:"sender",type:"address"},{name:"key",type:"uint192"}],dt=[{name:"nonce",type:"uint256"}];async function mt(e){return _({contract:e.contract,method:[ct,ot,dt],params:[e.sender,e.key]})}const{decodeAbiParameters:ea}=await O("viem"),pt="0xa6193531",ut=[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],lt=[{type:"bytes32"}];async function yt(e){return _({contract:e.contract,method:[pt,ut,lt],params:[e.userOp]})}const{decodeAbiParameters:ta}=await O("viem"),ft="0x22cdde4c",wt=[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"accountGasLimits",type:"bytes32"},{name:"preVerificationGas",type:"uint256"},{name:"gasFees",type:"bytes32"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],At=[{type:"bytes32"}];async function vt(e){return _({contract:e.contract,method:[ft,wt,At],params:[e.userOp]})}const{concat:I,pad:S,toHex:C}=await O("viem");function Gt(e){return e.factory?I([e.factory,e.factoryData||"0x"]):"0x"}function gt(e){return I([S(C(BigInt(e.verificationGasLimit)),{size:16}),S(C(BigInt(e.callGasLimit)),{size:16})])}function ht(e){return I([S(C(BigInt(e.maxPriorityFeePerGas)),{size:16}),S(C(BigInt(e.maxFeePerGas)),{size:16})])}function Pt(e){return e.paymaster?I([e.paymaster,S(C(BigInt(e.paymasterVerificationGasLimit||0)),{size:16}),S(C(BigInt(e.paymasterPostOpGasLimit||0)),{size:16}),e.paymasterData||"0x"]):"0x"}const Tt=e=>({accountGasLimits:gt(e),callData:e.callData,gasFees:ht(e),initCode:Gt(e),nonce:BigInt(e.nonce),paymasterAndData:Pt(e),preVerificationGas:BigInt(e.preVerificationGas),sender:e.sender,signature:e.signature});async function U(e){const{userOp:t,paymasterOverride:s,client:r,chain:n,entrypointAddress:a}=e;if(s)return s(t);const c={"Content-Type":"application/json"},i=a??x,d=X(n),p={id:1,jsonrpc:"2.0",method:"pm_sponsorUserOperation",params:[Pe(t),i]},y=await Ue(r)(d,{body:ae(p),headers:c,method:"POST"});if(!y.ok){const A=await y.text()||y.statusText;throw new Error(`Paymaster error: ${y.status} - ${A}`)}const m=await y.json();if(m.result)return typeof m.result=="string"?{paymasterAndData:m.result}:(m.result.reason&&console.warn(`Paymaster policy rejected this transaction with reason: ${m.result.reason} ${m.result.policyId?`(policyId: ${m.result.policyId})`:""}`),{callGasLimit:m.result.callGasLimit?E(m.result.callGasLimit):void 0,paymaster:m.result.paymaster,paymasterAndData:m.result.paymasterAndData,paymasterData:m.result.paymasterData,paymasterPostOpGasLimit:m.result.paymasterPostOpGasLimit?E(m.result.paymasterPostOpGasLimit):void 0,paymasterVerificationGasLimit:m.result.paymasterVerificationGasLimit?E(m.result.paymasterVerificationGasLimit):void 0,preVerificationGas:m.result.preVerificationGas?E(m.result.preVerificationGas):void 0,verificationGasLimit:m.result.verificationGasLimit?E(m.result.verificationGasLimit):void 0});const w=m.error?.message||m.error||y.statusText||"unknown error";throw new Error(`Paymaster error from ${d}: ${w}`)}const{concat:Lt}=await O("viem"),M=new Set,W=e=>`${e.chain.id}:${e.address}`,se=e=>{M.add(W(e))},ne=e=>{M.delete(W(e))},re=e=>M.has(W(e));async function Ot(e){const t=e.timeoutMs||12e4,s=e.intervalMs||1e3,r=Date.now()+t;for(;Date.now()<r;){const n=await Te(e);if(n)return n;await new Promise(a=>setTimeout(a,s))}throw new Error(`Timeout waiting for userOp to be mined on chain ${e.chain.id} with UserOp hash: ${e.userOpHash}`)}async function Dt(e){const{transaction:t,accountContract:s,factoryContract:r,adminAddress:n,overrides:a,sponsorGas:c,waitForDeployment:i=!0,isDeployedOverride:d}=e,p=t.chain,l=t.client,y={bundlerUrl:a?.bundlerUrl,chain:p,client:l,entrypointAddress:a?.entrypointAddress},m=k(e.overrides?.entrypointAddress||x),[w,A,G,g,f]=await Promise.all([typeof d=="boolean"?d:Z(s).then(L=>L||re(s)),H(t),D(t.gas),xt({bundlerOptions:y,chain:p,client:l,executeTx:t}),Vt({accountContract:s,chain:p,client:l,entrypointAddress:a?.entrypointAddress,getNonceOverride:a?.getAccountNonce})]),{maxFeePerGas:o,maxPriorityFeePerGas:u}=g;return m==="v0.7"?St({accountContract:s,adminAddress:n,bundlerOptions:y,callData:A,callGasLimit:G,factoryContract:r,isDeployed:w,maxFeePerGas:o,maxPriorityFeePerGas:u,nonce:f,overrides:a,sponsorGas:c,waitForDeployment:i}):Ct({accountContract:s,adminAddress:n,bundlerOptions:y,callData:A,callGasLimit:G,factoryContract:r,isDeployed:w,maxFeePerGas:o,maxPriorityFeePerGas:u,nonce:f,overrides:a,sponsorGas:c,waitForDeployment:i})}async function xt(e){const{executeTx:t,bundlerOptions:s,chain:r,client:n}=e;let{maxFeePerGas:a,maxPriorityFeePerGas:c}=t;const i=s?.bundlerUrl??X(r);if(Ie(i)){const d=await Le({options:s});a=d.maxFeePerGas,c=d.maxPriorityFeePerGas}else{const[d,p]=await Promise.all([D(a),D(c)]);if(d&&p)a=d,c=p;else{const l=await ge(n,r);c=p??l.maxPriorityFeePerGas??0n,a=d??l.maxFeePerGas??0n}}return{maxFeePerGas:a,maxPriorityFeePerGas:c}}async function St(e){const{bundlerOptions:t,isDeployed:s,factoryContract:r,accountContract:n,adminAddress:a,sponsorGas:c,overrides:i,nonce:d,callData:p,callGasLimit:l,maxFeePerGas:y,maxPriorityFeePerGas:m,waitForDeployment:w}=e,{chain:A,client:G}=t;let g,f;s?(f="0x",w&&await ie(n)):(g=r.address,f=await H(j({accountSalt:i?.accountSalt,adminAddress:a,createAccountOverride:i?.createAccount,factoryContract:r})),w&&se(n));const o={callData:p,callGasLimit:l??0n,factory:g,factoryData:f,maxFeePerGas:y,maxPriorityFeePerGas:m,nonce:d,paymaster:void 0,paymasterData:"0x",paymasterPostOpGasLimit:0n,paymasterVerificationGasLimit:0n,preVerificationGas:0n,sender:n.address,signature:ee,verificationGasLimit:0n};if(c){const u=await U({chain:A,client:G,entrypointAddress:i?.entrypointAddress,paymasterOverride:i?.paymaster,userOp:o});if(u.paymaster&&u.paymasterData&&(o.paymaster=u.paymaster,o.paymasterData=u.paymasterData),u.callGasLimit&&u.verificationGasLimit&&u.preVerificationGas&&u.paymasterPostOpGasLimit&&u.paymasterVerificationGasLimit)o.callGasLimit=u.callGasLimit,o.verificationGasLimit=u.verificationGasLimit,o.preVerificationGas=u.preVerificationGas,o.paymasterPostOpGasLimit=u.paymasterPostOpGasLimit,o.paymasterVerificationGasLimit=u.paymasterVerificationGasLimit;else{const L=i?.tokenPaymaster?{[i.tokenPaymaster.tokenAddress]:{stateDiff:{[de(ue([{type:"address"},{type:"uint256"}],[n.address,i.tokenPaymaster.balanceStorageSlot]))]:be(le,{size:32})}}}:void 0,h=await b({options:t,userOp:o},L);o.callGasLimit=h.callGasLimit,o.verificationGasLimit=h.verificationGasLimit,o.preVerificationGas=h.preVerificationGas,o.paymasterPostOpGasLimit=i?.tokenPaymaster?500000n:h.paymasterPostOpGasLimit||0n,o.paymasterVerificationGasLimit=h.paymasterVerificationGasLimit||0n;const P=await U({chain:A,client:G,entrypointAddress:i?.entrypointAddress,paymasterOverride:i?.paymaster,userOp:o});P.paymaster&&P.paymasterData&&(o.paymaster=P.paymaster,o.paymasterData=P.paymasterData)}}else{const u=await b({options:t,userOp:o});o.callGasLimit=u.callGasLimit,o.verificationGasLimit=u.verificationGasLimit,o.preVerificationGas=u.preVerificationGas,o.paymasterPostOpGasLimit=u.paymasterPostOpGasLimit||0n,o.paymasterVerificationGasLimit=u.paymasterVerificationGasLimit||0n}return{...o,signature:"0x"}}async function Ct(e){const{bundlerOptions:t,isDeployed:s,factoryContract:r,accountContract:n,adminAddress:a,sponsorGas:c,overrides:i,nonce:d,callData:p,callGasLimit:l,maxFeePerGas:y,maxPriorityFeePerGas:m,waitForDeployment:w}=e,{chain:A,client:G}=t;let g;s?(g="0x",w&&await ie(n)):(g=await Ft({accountSalt:i?.accountSalt,adminAddress:a,createAccountOverride:i?.createAccount,factoryContract:r}),w&&se(n));const f={callData:p,callGasLimit:l??0n,initCode:g,maxFeePerGas:y,maxPriorityFeePerGas:m,nonce:d,paymasterAndData:"0x",preVerificationGas:0n,sender:n.address,signature:ee,verificationGasLimit:0n};if(c){const o=await U({chain:A,client:G,entrypointAddress:i?.entrypointAddress,paymasterOverride:i?.paymaster,userOp:f}),u="paymasterAndData"in o?o.paymasterAndData:"0x";if(u&&u!=="0x"&&(f.paymasterAndData=u),o.callGasLimit&&o.verificationGasLimit&&o.preVerificationGas)f.callGasLimit=o.callGasLimit,f.verificationGasLimit=o.verificationGasLimit,f.preVerificationGas=o.preVerificationGas;else{const L=await b({options:t,userOp:f});if(f.callGasLimit=L.callGasLimit,f.verificationGasLimit=L.verificationGasLimit,f.preVerificationGas=L.preVerificationGas,u&&u!=="0x"){const h=await U({chain:A,client:G,entrypointAddress:i?.entrypointAddress,paymasterOverride:i?.paymaster,userOp:f}),P="paymasterAndData"in h?h.paymasterAndData:"0x";P&&P!=="0x"&&(f.paymasterAndData=P)}}}else{const o=await b({options:t,userOp:f});f.callGasLimit=o.callGasLimit,f.verificationGasLimit=o.verificationGasLimit,f.preVerificationGas=o.preVerificationGas}return{...f,signature:"0x"}}async function _t(e){const{userOp:t,chain:s,entrypointAddress:r,adminAccount:n}=e,a=await Et({chain:s,client:e.client,entrypointAddress:r,userOp:t});if(n.signMessage){const c=await n.signMessage({chainId:s.id,message:{raw:oe(a)},originalMessage:ae(t)});return{...t,signature:c}}throw new Error("signMessage not implemented in signingAccount")}async function Et(e){const{userOp:t,chain:s,entrypointAddress:r}=e,n=k(r||x);let a;if(n==="v0.7"){const c=Tt(t);a=await vt({contract:T({address:r||te,chain:s,client:e.client}),userOp:c})}else a=await yt({contract:T({address:r||x,chain:s,client:e.client}),userOp:t});return a}async function Ft(e){const{factoryContract:t,adminAddress:s,accountSalt:r,createAccountOverride:n}=e,a=j({accountSalt:r,adminAddress:s,createAccountOverride:n,factoryContract:t});return Lt([t.address,await H(a)])}async function Vt(e){const{accountContract:t,chain:s,client:r,entrypointAddress:n,getNonceOverride:a}=e;return a?a(t):await mt({contract:T({address:n||x,chain:s,client:r}),key:Oe(),sender:t.address})}async function ie(e){const t=Date.now();for(;re(e);){if(Date.now()-t>6e4)throw ne(e),new Error("Account deployment is taking too long (over 1 minute). Please try again.");await new Promise(s=>setTimeout(s,500))}}const ce=new WeakMap,N=new WeakMap;async function aa(e,t){const{personalAccount:s,client:r}=e;if(!s)throw new Error("No personal account provided for smart account connection");const n=t,a=t.chain,c="gasless"in n?n.gasless:n.sponsorGas;if(await ye(a))return[It({chain:a,connectionOptions:e,creationOptions:t,sponsorGas:c}),a];if(n.factoryAddress&&!n.overrides?.entrypointAddress){const m=await Rt(n.factoryAddress,r,a);m&&(n.overrides={...n.overrides,entrypointAddress:m})}n.overrides?.tokenPaymaster&&!n.overrides?.entrypointAddress&&(n.overrides={...n.overrides,entrypointAddress:te});const i=n.factoryAddress??De(n.overrides?.entrypointAddress),d=T({address:i,chain:a,client:r}),p=await fe({accountAddress:n.overrides?.accountAddress,accountSalt:n.overrides?.accountSalt,adminAddress:s.address,factoryContract:d,predictAddressOverride:n.overrides?.predictAddress}).then(m=>m).catch(m=>{throw new Error(`Failed to get account address with factory contract ${d.address} on chain ID ${a.id}: ${m?.message||"unknown error"}`,{cause:m})}),l=T({address:p,chain:a,client:r}),y=await bt({...n,accountContract:l,chain:a,client:r,factoryContract:d,personalAccount:s,sponsorGas:c});if(ce.set(s,y),N.set(y,s),n.sessionKey&&await nt({accountContract:l,newPermissions:n.sessionKey.permissions,sessionKeyAddress:n.sessionKey.address})){const m=st({account:s,contract:l,permissions:n.sessionKey.permissions,sessionKeyAddress:n.sessionKey.address});await we({account:y,transaction:m})}return[y,a]}async function sa(e){const t=N.get(e);t&&(ce.delete(t),N.delete(e))}async function bt(e){const t=e.overrides?.tokenPaymaster;if(t&&k(e.overrides?.entrypointAddress||x)!=="v0.7")throw new Error("Token paymaster is only supported for entrypoint version v0.7");const s=e.sponsorGas;let r=e.accountContract;const n={address:B(r.address),async onTransactionRequested(a){return e.personalAccount.onTransactionRequested?.(a)},async sendBatchTransaction(a){const c=Ae({accountContract:r,executeBatchOverride:e.overrides?.executeBatch,transactions:a});if(a.length===0)throw new Error("No transactions to send");const i=a[0];if(!i)throw new Error("No transactions to send");const d=F(i.chainId),p=await $({executeTx:c,options:{...e,accountContract:r,chain:d}});return V({chainId:d.id,client:e.client,contractAddress:a[0]?.to??void 0,transactionHash:p.transactionHash,walletAddress:e.accountContract.address,walletType:"smart"}),p},async sendTransaction(a){let c;if(t){await Ut({accountContract:r,erc20Paymaster:t,options:e});const l=async()=>({paymaster:t.paymasterAddress,paymasterData:"0x"});c=e.overrides?.paymaster||l}else c=e.overrides?.paymaster;a.chainId!==r.chain.id&&(r=T({address:n.address,chain:F(a.chainId),client:e.client}));const i=Y({accountContract:r,executeOverride:e.overrides?.execute,transaction:a}),d=F(a.chainId),p=await $({executeTx:i,options:{...e,accountContract:r,chain:d,overrides:{...e.overrides,paymaster:c}}});return V({chainId:d.id,client:e.client,contractAddress:a.to??void 0,transactionHash:p.transactionHash,walletAddress:e.accountContract.address,walletType:"smart"}),p},async signMessage({message:a}){if(e.overrides?.signMessage)return e.overrides.signMessage({accountContract:r,adminAccount:e.personalAccount,factoryContract:e.factoryContract,message:a});const{smartAccountSignMessage:c}=await v(async()=>{const{smartAccountSignMessage:i}=await import("./signing-TLGj9K79.js").then(d=>d.a3);return{smartAccountSignMessage:i}},__vite__mapDeps([4,5,1,3,6,7,8,9,10,11,12,13]));return c({accountContract:r,factoryContract:e.factoryContract,message:a,options:e})},async signTypedData(a){if(e.overrides?.signTypedData)return e.overrides.signTypedData({accountContract:r,adminAccount:e.personalAccount,factoryContract:e.factoryContract,typedData:a});const{smartAccountSignTypedData:c}=await v(async()=>{const{smartAccountSignTypedData:i}=await import("./signing-TLGj9K79.js").then(d=>d.a3);return{smartAccountSignTypedData:i}},__vite__mapDeps([4,5,1,3,6,7,8,9,10,11,12,13]));return c({accountContract:r,factoryContract:e.factoryContract,options:e,typedData:a})},sendCalls:async a=>{const{inAppWalletSendCalls:c}=await v(async()=>{const{inAppWalletSendCalls:y}=await import("./in-app-wallet-calls-C1SY2oWN.js");return{inAppWalletSendCalls:y}},__vite__mapDeps([14,15,3,8,9,1,10,16,5,17,4,6,7,11,12,13,18,19,20,21,22,23,24,25,26])),i=a.calls[0];if(!i)throw new Error("No calls to send");const d=i.client,p=i.chain||a.chain,l=await c({account:n,calls:a.calls,chain:p});return{chain:p,client:d,id:l}},getCallsStatus:async a=>{const{inAppWalletGetCallsStatus:c}=await v(async()=>{const{inAppWalletGetCallsStatus:i}=await import("./in-app-wallet-calls-C1SY2oWN.js");return{inAppWalletGetCallsStatus:i}},__vite__mapDeps([14,15,3,8,9,1,10,16,5,17,4,6,7,11,12,13,18,19,20,21,22,23,24,25,26]));return c(a)},getCallsStatusRaw:async a=>{const{inAppWalletGetCallsStatusRaw:c}=await v(async()=>{const{inAppWalletGetCallsStatusRaw:i}=await import("./in-app-wallet-calls-C1SY2oWN.js");return{inAppWalletGetCallsStatusRaw:i}},__vite__mapDeps([14,15,3,8,9,1,10,16,5,17,4,6,7,11,12,13,18,19,20,21,22,23,24,25,26]));return c(a)},getCapabilities:async a=>({[a.chainId??1]:{atomic:{status:"supported"},paymasterService:{supported:s??!1}}})};return n}async function Ut(e){const{accountContract:t,erc20Paymaster:s,options:r}=e,n=s.tokenAddress,a=T({address:n,chain:t.chain,client:t.client});if(await ke({contract:a,owner:t.address,spender:s.paymasterAddress})>0n)return;const i=Be({amountWei:it-1n,contract:a,spender:s.paymasterAddress}),d=await ve({from:t.address,transaction:i}),p=Y({accountContract:t,executeOverride:r.overrides?.execute,transaction:d});await $({executeTx:p,options:{...r,overrides:{...r.overrides,tokenPaymaster:void 0}}})}function It(e){const{creationOptions:t,connectionOptions:s,chain:r}=e,n={address:B(s.personalAccount.address),async onTransactionRequested(a){return s.personalAccount.onTransactionRequested?.(a)},async sendTransaction(a){const c={chain:F(a.chainId),client:s.client,data:a.data,eip712:a.eip712,to:a.to??void 0,value:a.value??0n};let i=await Fe({account:n,transaction:c});if(e.sponsorGas&&!i.paymaster){const l=await Se({options:{bundlerUrl:t.overrides?.bundlerUrl,chain:r,client:s.client,entrypointAddress:t.overrides?.entrypointAddress},transaction:i});i={...i,...l}}const d=await Ve({account:n,chainId:r.id,eip712Transaction:i}),p=await Ce({options:{bundlerUrl:t.overrides?.bundlerUrl,chain:r,client:s.client,entrypointAddress:t.overrides?.entrypointAddress},signedTransaction:d,transaction:i});return V({chainId:r.id,client:s.client,contractAddress:a.to??void 0,transactionHash:p.transactionHash,walletAddress:n.address,walletType:"smart"}),{chain:r,client:s.client,transactionHash:p.transactionHash}},async signMessage({message:a}){return s.personalAccount.signMessage({message:a})},async signTypedData(a){const c=xe(a);return s.personalAccount.signTypedData(c)},sendCalls:async a=>{const{inAppWalletSendCalls:c}=await v(async()=>{const{inAppWalletSendCalls:y}=await import("./in-app-wallet-calls-C1SY2oWN.js");return{inAppWalletSendCalls:y}},__vite__mapDeps([14,15,3,8,9,1,10,16,5,17,4,6,7,11,12,13,18,19,20,21,22,23,24,25,26])),i=a.calls[0];if(!i)throw new Error("No calls to send");const d=i.client,p=i.chain||a.chain,l=await c({account:n,calls:a.calls,chain:p});return{chain:p,client:d,id:l}},getCallsStatus:async a=>{const{inAppWalletGetCallsStatus:c}=await v(async()=>{const{inAppWalletGetCallsStatus:i}=await import("./in-app-wallet-calls-C1SY2oWN.js");return{inAppWalletGetCallsStatus:i}},__vite__mapDeps([14,15,3,8,9,1,10,16,5,17,4,6,7,11,12,13,18,19,20,21,22,23,24,25,26]));return c(a)},getCallsStatusRaw:async a=>{const{inAppWalletGetCallsStatusRaw:c}=await v(async()=>{const{inAppWalletGetCallsStatusRaw:i}=await import("./in-app-wallet-calls-C1SY2oWN.js");return{inAppWalletGetCallsStatusRaw:i}},__vite__mapDeps([14,15,3,8,9,1,10,16,5,17,4,6,7,11,12,13,18,19,20,21,22,23,24,25,26]));return c(a)},getCapabilities:async a=>({[a.chainId??1]:{atomic:{status:"unsupported"},paymasterService:{supported:e.sponsorGas??!1}}})};return n}async function $(e){const{executeTx:t,options:s}=e;try{const r=await Dt({accountContract:s.accountContract,adminAddress:s.personalAccount.address,factoryContract:s.factoryContract,overrides:s.overrides,sponsorGas:s.sponsorGas,transaction:t}),n=await _t({adminAccount:s.personalAccount,chain:s.chain,client:s.client,entrypointAddress:s.overrides?.entrypointAddress,userOp:r}),a={bundlerUrl:s.overrides?.bundlerUrl,chain:s.chain,client:s.client,entrypointAddress:s.overrides?.entrypointAddress},c=await _e({options:a,userOp:n}),i=await Ot({...a,userOpHash:c});return V({chainId:s.chain.id,client:s.client,contractAddress:await D(t.to??void 0),transactionHash:i.transactionHash,walletAddress:s.accountContract.address,walletType:"smart"}),{chain:s.chain,client:s.client,transactionHash:i.transactionHash}}catch(r){throw me(r)&&pe({chainId:s.chain.id,client:s.client,contractAddress:await D(t.to??void 0),error:r,transactionValue:await D(t.value),walletAddress:s.accountContract.address}),r}finally{ne(s.accountContract)}}async function Rt(e,t,s){const r=T({address:e,chain:s,client:t});try{return await _({contract:r,method:"function entrypoint() public view returns (address)"})}catch{return}}export{aa as connectSmartAccount,sa as disconnectSmartAccount,Rt as getEntrypointFromFactory,ia as isSmartWallet};
1
+ const __vite__fileDeps=["assets/decimals-BsDfmgVP.js","assets/withCache-DYumIHzL.js","assets/decimals-D9AvtxfV.js","assets/__federation_fn_import-BZzr9p5I.js","assets/signing-BuBuOxhe.js","assets/hex-B0Rx0hII.js","assets/preload-helper-BLohficu.js","assets/fee-data-Bea8WIXf.js","assets/rpc-ti0b0r_u.js","assets/utils-CozXUO91.js","assets/json-BHzNJmTy.js","assets/op-gas-fee-reducer-CfxMcvXl.js","assets/estimate-gas-DZC98WAc.js","assets/encode-dCkbk3AQ.js","assets/in-app-wallet-calls-Bv1Gy8VE.js","assets/wait-for-tx-receipt-RNMBP9Yx.js","assets/sleep-mAKpSMLY.js","assets/send-batch-transaction-B5a_BUBh.js","assets/wallets-BQJnnz7M.js","assets/store-DOLZnwHk.js","assets/publicKeyToAddress-CxEKPAKT.js","assets/utils-C7urdXtO.js","assets/events-B5inrCVE.js","assets/_commonjsHelpers-C4iS2aBk.js","assets/index.es-D3pP9hN4.js","assets/index-nibyPLVP.js","assets/ethereum-dN7ENYl_.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
+ import{_ as v}from"./preload-helper-BLohficu.js";import{h as oe,a as T,k as de,g as B,t as V,c as me,d as pe}from"./estimate-gas-DZC98WAc.js";import{getCachedChain as F}from"./utils-CozXUO91.js";import{importShared as O}from"./__federation_fn_import-BZzr9p5I.js";import{r as _,p as z,Z as K,f as Z,h as j,e as ue,m as le,j as ye,k as fe,b as we,l as Y,n as Ae,t as ve}from"./signing-BuBuOxhe.js";import{a as Ge,b as J,g as ge}from"./fee-data-Bea8WIXf.js";import{x as Q,r as he,y as X,E as x,z as Pe,A as k,B as Te,C as Le,G as Oe,H as b,I as ee,J as te,L as De,p as xe,M as Se,O as Ce,Q as _e}from"./wallets-BQJnnz7M.js";import{R as ia}from"./wallets-BQJnnz7M.js";import{t as Ee,p as Fe,s as Ve}from"./send-eip712-transaction-1K3ti4op.js";import{r as D}from"./op-gas-fee-reducer-CfxMcvXl.js";import{encode as H}from"./encode-dCkbk3AQ.js";import{h as E,t as be}from"./hex-B0Rx0hII.js";import{a as Ue,i as Ie}from"./withCache-DYumIHzL.js";import{stringify as ae}from"./json-BHzNJmTy.js";const{decodeAbiParameters:Jt}=await O("viem"),Re="0xdd62ed3e",Ne=[{name:"owner",type:"address"},{name:"spender",type:"address"}],$e=[{type:"uint256"}];async function ke(e){return _({contract:e.contract,method:[Re,Ne,$e],params:[e.owner,e.spender]})}const He="0x095ea7b3",Me=[{name:"spender",type:"address"},{name:"value",type:"uint256"}],We=[{type:"bool"}];function qe(e){const t=Q(async()=>"asyncParams"in e?await e.asyncParams():e);return z({accessList:async()=>(await t()).overrides?.accessList,authorizationList:async()=>(await t()).overrides?.authorizationList,contract:e.contract,erc20Value:async()=>(await t()).overrides?.erc20Value,extraGas:async()=>(await t()).overrides?.extraGas,gas:async()=>(await t()).overrides?.gas,gasPrice:async()=>(await t()).overrides?.gasPrice,maxFeePerGas:async()=>(await t()).overrides?.maxFeePerGas,maxPriorityFeePerGas:async()=>(await t()).overrides?.maxPriorityFeePerGas,method:[He,Me,We],nonce:async()=>(await t()).overrides?.nonce,params:async()=>{const s=await t();return[s.spender,s.value]},value:async()=>(await t()).overrides?.value})}function Be(e){return qe({asyncParams:async()=>{let t;if("amount"in e){const{decimals:s}=await v(async()=>{const{decimals:n}=await import("./decimals-BsDfmgVP.js");return{decimals:n}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13])),r=await s(e).catch(()=>18);t=Ge(e.amount.toString(),r)}else t=e.amountWei;return{overrides:{erc20Value:{amountWei:t,tokenAddress:e.contract.address},...e.overrides},spender:e.spender,value:t}},contract:e.contract})}const{decodeAbiParameters:Qt}=await O("viem"),ze="0xf15d424e",Ke=[{name:"signer",type:"address"}],Ze=[{components:[{name:"signer",type:"address"},{name:"approvedTargets",type:"address[]"},{name:"nativeTokenLimitPerTransaction",type:"uint256"},{name:"startTimestamp",type:"uint128"},{name:"endTimestamp",type:"uint128"}],name:"permissions",type:"tuple"}];async function je(e){return _({contract:e.contract,method:[ze,Ke,Ze],params:[e.signer]})}const Ye="0x5892e236",Je=[{components:[{name:"signer",type:"address"},{name:"isAdmin",type:"uint8"},{name:"approvedTargets",type:"address[]"},{name:"nativeTokenLimitPerTransaction",type:"uint256"},{name:"permissionStartTimestamp",type:"uint128"},{name:"permissionEndTimestamp",type:"uint128"},{name:"reqValidityStartTimestamp",type:"uint128"},{name:"reqValidityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],name:"req",type:"tuple"},{name:"signature",type:"bytes"}],Qe=[];function Xe(e){const t=Q(async()=>"asyncParams"in e?await e.asyncParams():e);return z({accessList:async()=>(await t()).overrides?.accessList,authorizationList:async()=>(await t()).overrides?.authorizationList,contract:e.contract,erc20Value:async()=>(await t()).overrides?.erc20Value,extraGas:async()=>(await t()).overrides?.extraGas,gas:async()=>(await t()).overrides?.gas,gasPrice:async()=>(await t()).overrides?.gasPrice,maxFeePerGas:async()=>(await t()).overrides?.maxFeePerGas,maxPriorityFeePerGas:async()=>(await t()).overrides?.maxPriorityFeePerGas,method:[Ye,Je,Qe],nonce:async()=>(await t()).overrides?.nonce,params:async()=>{const s=await t();return[s.req,s.signature]},value:async()=>(await t()).overrides?.value})}function q(){return new Date(Date.now()+1e3*60*60*24*365*10)}function R(e){return Ee(Math.floor(e.getTime()/1e3))}const et=[{name:"signer",type:"address"},{name:"isAdmin",type:"uint8"},{name:"approvedTargets",type:"address[]"},{name:"nativeTokenLimitPerTransaction",type:"uint256"},{name:"permissionStartTimestamp",type:"uint128"},{name:"permissionEndTimestamp",type:"uint128"},{name:"reqValidityStartTimestamp",type:"uint128"},{name:"reqValidityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}];async function tt(e){const{account:t,contract:s,req:r}=e,n=await t.signTypedData({domain:{chainId:s.chain.id,name:"Account",verifyingContract:s.address,version:"1"},message:r,primaryType:"SignerPermissionRequest",types:{SignerPermissionRequest:et}});return{req:r,signature:n}}async function at(e){const{target:t,permissions:s}=e;return{approvedTargets:s.approvedTargets==="*"?[K]:s.approvedTargets,isAdmin:0,nativeTokenLimitPerTransaction:J(s.nativeTokenLimitPerTransaction?.toString()||"0"),permissionEndTimestamp:R(s.permissionEndTimestamp||q()),permissionStartTimestamp:R(s.permissionStartTimestamp||new Date(0)),reqValidityEndTimestamp:R(q()),reqValidityStartTimestamp:0n,signer:t,uid:await he()}}function st(e){const{contract:t,sessionKeyAddress:s,account:r,permissions:n}=e;return Xe({async asyncParams(){const{req:a,signature:c}=await tt({account:r,contract:t,req:await at({permissions:n,target:s})});return{req:a,signature:c}},contract:t})}async function nt(e){const{accountContract:t,sessionKeyAddress:s,newPermissions:r}=e;if(!await Z(t))return!0;const a=await je({contract:t,signer:s});return!!(a.endTimestamp&&a.endTimestamp<Math.floor(Date.now()/1e3)||!rt(a.approvedTargets,r.approvedTargets)||J(r.nativeTokenLimitPerTransaction?.toString()??"0")>a.nativeTokenLimitPerTransaction)}function rt(e,t){return t==="*"&&e.length===1&&e[0]===K?!0:t!=="*"?t.map(s=>s.toLowerCase()).every(s=>e.map(r=>r.toLowerCase()).includes(s)):!1}const it=2n**96n-1n,{decodeAbiParameters:Xt}=await O("viem"),ct="0x35567e1a",ot=[{name:"sender",type:"address"},{name:"key",type:"uint192"}],dt=[{name:"nonce",type:"uint256"}];async function mt(e){return _({contract:e.contract,method:[ct,ot,dt],params:[e.sender,e.key]})}const{decodeAbiParameters:ea}=await O("viem"),pt="0xa6193531",ut=[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],lt=[{type:"bytes32"}];async function yt(e){return _({contract:e.contract,method:[pt,ut,lt],params:[e.userOp]})}const{decodeAbiParameters:ta}=await O("viem"),ft="0x22cdde4c",wt=[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"accountGasLimits",type:"bytes32"},{name:"preVerificationGas",type:"uint256"},{name:"gasFees",type:"bytes32"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],At=[{type:"bytes32"}];async function vt(e){return _({contract:e.contract,method:[ft,wt,At],params:[e.userOp]})}const{concat:I,pad:S,toHex:C}=await O("viem");function Gt(e){return e.factory?I([e.factory,e.factoryData||"0x"]):"0x"}function gt(e){return I([S(C(BigInt(e.verificationGasLimit)),{size:16}),S(C(BigInt(e.callGasLimit)),{size:16})])}function ht(e){return I([S(C(BigInt(e.maxPriorityFeePerGas)),{size:16}),S(C(BigInt(e.maxFeePerGas)),{size:16})])}function Pt(e){return e.paymaster?I([e.paymaster,S(C(BigInt(e.paymasterVerificationGasLimit||0)),{size:16}),S(C(BigInt(e.paymasterPostOpGasLimit||0)),{size:16}),e.paymasterData||"0x"]):"0x"}const Tt=e=>({accountGasLimits:gt(e),callData:e.callData,gasFees:ht(e),initCode:Gt(e),nonce:BigInt(e.nonce),paymasterAndData:Pt(e),preVerificationGas:BigInt(e.preVerificationGas),sender:e.sender,signature:e.signature});async function U(e){const{userOp:t,paymasterOverride:s,client:r,chain:n,entrypointAddress:a}=e;if(s)return s(t);const c={"Content-Type":"application/json"},i=a??x,d=X(n),p={id:1,jsonrpc:"2.0",method:"pm_sponsorUserOperation",params:[Pe(t),i]},y=await Ue(r)(d,{body:ae(p),headers:c,method:"POST"});if(!y.ok){const A=await y.text()||y.statusText;throw new Error(`Paymaster error: ${y.status} - ${A}`)}const m=await y.json();if(m.result)return typeof m.result=="string"?{paymasterAndData:m.result}:(m.result.reason&&console.warn(`Paymaster policy rejected this transaction with reason: ${m.result.reason} ${m.result.policyId?`(policyId: ${m.result.policyId})`:""}`),{callGasLimit:m.result.callGasLimit?E(m.result.callGasLimit):void 0,paymaster:m.result.paymaster,paymasterAndData:m.result.paymasterAndData,paymasterData:m.result.paymasterData,paymasterPostOpGasLimit:m.result.paymasterPostOpGasLimit?E(m.result.paymasterPostOpGasLimit):void 0,paymasterVerificationGasLimit:m.result.paymasterVerificationGasLimit?E(m.result.paymasterVerificationGasLimit):void 0,preVerificationGas:m.result.preVerificationGas?E(m.result.preVerificationGas):void 0,verificationGasLimit:m.result.verificationGasLimit?E(m.result.verificationGasLimit):void 0});const w=m.error?.message||m.error||y.statusText||"unknown error";throw new Error(`Paymaster error from ${d}: ${w}`)}const{concat:Lt}=await O("viem"),M=new Set,W=e=>`${e.chain.id}:${e.address}`,se=e=>{M.add(W(e))},ne=e=>{M.delete(W(e))},re=e=>M.has(W(e));async function Ot(e){const t=e.timeoutMs||12e4,s=e.intervalMs||1e3,r=Date.now()+t;for(;Date.now()<r;){const n=await Te(e);if(n)return n;await new Promise(a=>setTimeout(a,s))}throw new Error(`Timeout waiting for userOp to be mined on chain ${e.chain.id} with UserOp hash: ${e.userOpHash}`)}async function Dt(e){const{transaction:t,accountContract:s,factoryContract:r,adminAddress:n,overrides:a,sponsorGas:c,waitForDeployment:i=!0,isDeployedOverride:d}=e,p=t.chain,l=t.client,y={bundlerUrl:a?.bundlerUrl,chain:p,client:l,entrypointAddress:a?.entrypointAddress},m=k(e.overrides?.entrypointAddress||x),[w,A,G,g,f]=await Promise.all([typeof d=="boolean"?d:Z(s).then(L=>L||re(s)),H(t),D(t.gas),xt({bundlerOptions:y,chain:p,client:l,executeTx:t}),Vt({accountContract:s,chain:p,client:l,entrypointAddress:a?.entrypointAddress,getNonceOverride:a?.getAccountNonce})]),{maxFeePerGas:o,maxPriorityFeePerGas:u}=g;return m==="v0.7"?St({accountContract:s,adminAddress:n,bundlerOptions:y,callData:A,callGasLimit:G,factoryContract:r,isDeployed:w,maxFeePerGas:o,maxPriorityFeePerGas:u,nonce:f,overrides:a,sponsorGas:c,waitForDeployment:i}):Ct({accountContract:s,adminAddress:n,bundlerOptions:y,callData:A,callGasLimit:G,factoryContract:r,isDeployed:w,maxFeePerGas:o,maxPriorityFeePerGas:u,nonce:f,overrides:a,sponsorGas:c,waitForDeployment:i})}async function xt(e){const{executeTx:t,bundlerOptions:s,chain:r,client:n}=e;let{maxFeePerGas:a,maxPriorityFeePerGas:c}=t;const i=s?.bundlerUrl??X(r);if(Ie(i)){const d=await Le({options:s});a=d.maxFeePerGas,c=d.maxPriorityFeePerGas}else{const[d,p]=await Promise.all([D(a),D(c)]);if(d&&p)a=d,c=p;else{const l=await ge(n,r);c=p??l.maxPriorityFeePerGas??0n,a=d??l.maxFeePerGas??0n}}return{maxFeePerGas:a,maxPriorityFeePerGas:c}}async function St(e){const{bundlerOptions:t,isDeployed:s,factoryContract:r,accountContract:n,adminAddress:a,sponsorGas:c,overrides:i,nonce:d,callData:p,callGasLimit:l,maxFeePerGas:y,maxPriorityFeePerGas:m,waitForDeployment:w}=e,{chain:A,client:G}=t;let g,f;s?(f="0x",w&&await ie(n)):(g=r.address,f=await H(j({accountSalt:i?.accountSalt,adminAddress:a,createAccountOverride:i?.createAccount,factoryContract:r})),w&&se(n));const o={callData:p,callGasLimit:l??0n,factory:g,factoryData:f,maxFeePerGas:y,maxPriorityFeePerGas:m,nonce:d,paymaster:void 0,paymasterData:"0x",paymasterPostOpGasLimit:0n,paymasterVerificationGasLimit:0n,preVerificationGas:0n,sender:n.address,signature:ee,verificationGasLimit:0n};if(c){const u=await U({chain:A,client:G,entrypointAddress:i?.entrypointAddress,paymasterOverride:i?.paymaster,userOp:o});if(u.paymaster&&u.paymasterData&&(o.paymaster=u.paymaster,o.paymasterData=u.paymasterData),u.callGasLimit&&u.verificationGasLimit&&u.preVerificationGas&&u.paymasterPostOpGasLimit&&u.paymasterVerificationGasLimit)o.callGasLimit=u.callGasLimit,o.verificationGasLimit=u.verificationGasLimit,o.preVerificationGas=u.preVerificationGas,o.paymasterPostOpGasLimit=u.paymasterPostOpGasLimit,o.paymasterVerificationGasLimit=u.paymasterVerificationGasLimit;else{const L=i?.tokenPaymaster?{[i.tokenPaymaster.tokenAddress]:{stateDiff:{[de(ue([{type:"address"},{type:"uint256"}],[n.address,i.tokenPaymaster.balanceStorageSlot]))]:be(le,{size:32})}}}:void 0,h=await b({options:t,userOp:o},L);o.callGasLimit=h.callGasLimit,o.verificationGasLimit=h.verificationGasLimit,o.preVerificationGas=h.preVerificationGas,o.paymasterPostOpGasLimit=i?.tokenPaymaster?500000n:h.paymasterPostOpGasLimit||0n,o.paymasterVerificationGasLimit=h.paymasterVerificationGasLimit||0n;const P=await U({chain:A,client:G,entrypointAddress:i?.entrypointAddress,paymasterOverride:i?.paymaster,userOp:o});P.paymaster&&P.paymasterData&&(o.paymaster=P.paymaster,o.paymasterData=P.paymasterData)}}else{const u=await b({options:t,userOp:o});o.callGasLimit=u.callGasLimit,o.verificationGasLimit=u.verificationGasLimit,o.preVerificationGas=u.preVerificationGas,o.paymasterPostOpGasLimit=u.paymasterPostOpGasLimit||0n,o.paymasterVerificationGasLimit=u.paymasterVerificationGasLimit||0n}return{...o,signature:"0x"}}async function Ct(e){const{bundlerOptions:t,isDeployed:s,factoryContract:r,accountContract:n,adminAddress:a,sponsorGas:c,overrides:i,nonce:d,callData:p,callGasLimit:l,maxFeePerGas:y,maxPriorityFeePerGas:m,waitForDeployment:w}=e,{chain:A,client:G}=t;let g;s?(g="0x",w&&await ie(n)):(g=await Ft({accountSalt:i?.accountSalt,adminAddress:a,createAccountOverride:i?.createAccount,factoryContract:r}),w&&se(n));const f={callData:p,callGasLimit:l??0n,initCode:g,maxFeePerGas:y,maxPriorityFeePerGas:m,nonce:d,paymasterAndData:"0x",preVerificationGas:0n,sender:n.address,signature:ee,verificationGasLimit:0n};if(c){const o=await U({chain:A,client:G,entrypointAddress:i?.entrypointAddress,paymasterOverride:i?.paymaster,userOp:f}),u="paymasterAndData"in o?o.paymasterAndData:"0x";if(u&&u!=="0x"&&(f.paymasterAndData=u),o.callGasLimit&&o.verificationGasLimit&&o.preVerificationGas)f.callGasLimit=o.callGasLimit,f.verificationGasLimit=o.verificationGasLimit,f.preVerificationGas=o.preVerificationGas;else{const L=await b({options:t,userOp:f});if(f.callGasLimit=L.callGasLimit,f.verificationGasLimit=L.verificationGasLimit,f.preVerificationGas=L.preVerificationGas,u&&u!=="0x"){const h=await U({chain:A,client:G,entrypointAddress:i?.entrypointAddress,paymasterOverride:i?.paymaster,userOp:f}),P="paymasterAndData"in h?h.paymasterAndData:"0x";P&&P!=="0x"&&(f.paymasterAndData=P)}}}else{const o=await b({options:t,userOp:f});f.callGasLimit=o.callGasLimit,f.verificationGasLimit=o.verificationGasLimit,f.preVerificationGas=o.preVerificationGas}return{...f,signature:"0x"}}async function _t(e){const{userOp:t,chain:s,entrypointAddress:r,adminAccount:n}=e,a=await Et({chain:s,client:e.client,entrypointAddress:r,userOp:t});if(n.signMessage){const c=await n.signMessage({chainId:s.id,message:{raw:oe(a)},originalMessage:ae(t)});return{...t,signature:c}}throw new Error("signMessage not implemented in signingAccount")}async function Et(e){const{userOp:t,chain:s,entrypointAddress:r}=e,n=k(r||x);let a;if(n==="v0.7"){const c=Tt(t);a=await vt({contract:T({address:r||te,chain:s,client:e.client}),userOp:c})}else a=await yt({contract:T({address:r||x,chain:s,client:e.client}),userOp:t});return a}async function Ft(e){const{factoryContract:t,adminAddress:s,accountSalt:r,createAccountOverride:n}=e,a=j({accountSalt:r,adminAddress:s,createAccountOverride:n,factoryContract:t});return Lt([t.address,await H(a)])}async function Vt(e){const{accountContract:t,chain:s,client:r,entrypointAddress:n,getNonceOverride:a}=e;return a?a(t):await mt({contract:T({address:n||x,chain:s,client:r}),key:Oe(),sender:t.address})}async function ie(e){const t=Date.now();for(;re(e);){if(Date.now()-t>6e4)throw ne(e),new Error("Account deployment is taking too long (over 1 minute). Please try again.");await new Promise(s=>setTimeout(s,500))}}const ce=new WeakMap,N=new WeakMap;async function aa(e,t){const{personalAccount:s,client:r}=e;if(!s)throw new Error("No personal account provided for smart account connection");const n=t,a=t.chain,c="gasless"in n?n.gasless:n.sponsorGas;if(await ye(a))return[It({chain:a,connectionOptions:e,creationOptions:t,sponsorGas:c}),a];if(n.factoryAddress&&!n.overrides?.entrypointAddress){const m=await Rt(n.factoryAddress,r,a);m&&(n.overrides={...n.overrides,entrypointAddress:m})}n.overrides?.tokenPaymaster&&!n.overrides?.entrypointAddress&&(n.overrides={...n.overrides,entrypointAddress:te});const i=n.factoryAddress??De(n.overrides?.entrypointAddress),d=T({address:i,chain:a,client:r}),p=await fe({accountAddress:n.overrides?.accountAddress,accountSalt:n.overrides?.accountSalt,adminAddress:s.address,factoryContract:d,predictAddressOverride:n.overrides?.predictAddress}).then(m=>m).catch(m=>{throw new Error(`Failed to get account address with factory contract ${d.address} on chain ID ${a.id}: ${m?.message||"unknown error"}`,{cause:m})}),l=T({address:p,chain:a,client:r}),y=await bt({...n,accountContract:l,chain:a,client:r,factoryContract:d,personalAccount:s,sponsorGas:c});if(ce.set(s,y),N.set(y,s),n.sessionKey&&await nt({accountContract:l,newPermissions:n.sessionKey.permissions,sessionKeyAddress:n.sessionKey.address})){const m=st({account:s,contract:l,permissions:n.sessionKey.permissions,sessionKeyAddress:n.sessionKey.address});await we({account:y,transaction:m})}return[y,a]}async function sa(e){const t=N.get(e);t&&(ce.delete(t),N.delete(e))}async function bt(e){const t=e.overrides?.tokenPaymaster;if(t&&k(e.overrides?.entrypointAddress||x)!=="v0.7")throw new Error("Token paymaster is only supported for entrypoint version v0.7");const s=e.sponsorGas;let r=e.accountContract;const n={address:B(r.address),async onTransactionRequested(a){return e.personalAccount.onTransactionRequested?.(a)},async sendBatchTransaction(a){const c=Ae({accountContract:r,executeBatchOverride:e.overrides?.executeBatch,transactions:a});if(a.length===0)throw new Error("No transactions to send");const i=a[0];if(!i)throw new Error("No transactions to send");const d=F(i.chainId),p=await $({executeTx:c,options:{...e,accountContract:r,chain:d}});return V({chainId:d.id,client:e.client,contractAddress:a[0]?.to??void 0,transactionHash:p.transactionHash,walletAddress:e.accountContract.address,walletType:"smart"}),p},async sendTransaction(a){let c;if(t){await Ut({accountContract:r,erc20Paymaster:t,options:e});const l=async()=>({paymaster:t.paymasterAddress,paymasterData:"0x"});c=e.overrides?.paymaster||l}else c=e.overrides?.paymaster;a.chainId!==r.chain.id&&(r=T({address:n.address,chain:F(a.chainId),client:e.client}));const i=Y({accountContract:r,executeOverride:e.overrides?.execute,transaction:a}),d=F(a.chainId),p=await $({executeTx:i,options:{...e,accountContract:r,chain:d,overrides:{...e.overrides,paymaster:c}}});return V({chainId:d.id,client:e.client,contractAddress:a.to??void 0,transactionHash:p.transactionHash,walletAddress:e.accountContract.address,walletType:"smart"}),p},async signMessage({message:a}){if(e.overrides?.signMessage)return e.overrides.signMessage({accountContract:r,adminAccount:e.personalAccount,factoryContract:e.factoryContract,message:a});const{smartAccountSignMessage:c}=await v(async()=>{const{smartAccountSignMessage:i}=await import("./signing-BuBuOxhe.js").then(d=>d.a3);return{smartAccountSignMessage:i}},__vite__mapDeps([4,5,1,3,6,7,8,9,10,11,12,13]));return c({accountContract:r,factoryContract:e.factoryContract,message:a,options:e})},async signTypedData(a){if(e.overrides?.signTypedData)return e.overrides.signTypedData({accountContract:r,adminAccount:e.personalAccount,factoryContract:e.factoryContract,typedData:a});const{smartAccountSignTypedData:c}=await v(async()=>{const{smartAccountSignTypedData:i}=await import("./signing-BuBuOxhe.js").then(d=>d.a3);return{smartAccountSignTypedData:i}},__vite__mapDeps([4,5,1,3,6,7,8,9,10,11,12,13]));return c({accountContract:r,factoryContract:e.factoryContract,options:e,typedData:a})},sendCalls:async a=>{const{inAppWalletSendCalls:c}=await v(async()=>{const{inAppWalletSendCalls:y}=await import("./in-app-wallet-calls-Bv1Gy8VE.js");return{inAppWalletSendCalls:y}},__vite__mapDeps([14,15,3,8,9,1,10,16,5,17,4,6,7,11,12,13,18,19,20,21,22,23,24,25,26])),i=a.calls[0];if(!i)throw new Error("No calls to send");const d=i.client,p=i.chain||a.chain,l=await c({account:n,calls:a.calls,chain:p});return{chain:p,client:d,id:l}},getCallsStatus:async a=>{const{inAppWalletGetCallsStatus:c}=await v(async()=>{const{inAppWalletGetCallsStatus:i}=await import("./in-app-wallet-calls-Bv1Gy8VE.js");return{inAppWalletGetCallsStatus:i}},__vite__mapDeps([14,15,3,8,9,1,10,16,5,17,4,6,7,11,12,13,18,19,20,21,22,23,24,25,26]));return c(a)},getCallsStatusRaw:async a=>{const{inAppWalletGetCallsStatusRaw:c}=await v(async()=>{const{inAppWalletGetCallsStatusRaw:i}=await import("./in-app-wallet-calls-Bv1Gy8VE.js");return{inAppWalletGetCallsStatusRaw:i}},__vite__mapDeps([14,15,3,8,9,1,10,16,5,17,4,6,7,11,12,13,18,19,20,21,22,23,24,25,26]));return c(a)},getCapabilities:async a=>({[a.chainId??1]:{atomic:{status:"supported"},paymasterService:{supported:s??!1}}})};return n}async function Ut(e){const{accountContract:t,erc20Paymaster:s,options:r}=e,n=s.tokenAddress,a=T({address:n,chain:t.chain,client:t.client});if(await ke({contract:a,owner:t.address,spender:s.paymasterAddress})>0n)return;const i=Be({amountWei:it-1n,contract:a,spender:s.paymasterAddress}),d=await ve({from:t.address,transaction:i}),p=Y({accountContract:t,executeOverride:r.overrides?.execute,transaction:d});await $({executeTx:p,options:{...r,overrides:{...r.overrides,tokenPaymaster:void 0}}})}function It(e){const{creationOptions:t,connectionOptions:s,chain:r}=e,n={address:B(s.personalAccount.address),async onTransactionRequested(a){return s.personalAccount.onTransactionRequested?.(a)},async sendTransaction(a){const c={chain:F(a.chainId),client:s.client,data:a.data,eip712:a.eip712,to:a.to??void 0,value:a.value??0n};let i=await Fe({account:n,transaction:c});if(e.sponsorGas&&!i.paymaster){const l=await Se({options:{bundlerUrl:t.overrides?.bundlerUrl,chain:r,client:s.client,entrypointAddress:t.overrides?.entrypointAddress},transaction:i});i={...i,...l}}const d=await Ve({account:n,chainId:r.id,eip712Transaction:i}),p=await Ce({options:{bundlerUrl:t.overrides?.bundlerUrl,chain:r,client:s.client,entrypointAddress:t.overrides?.entrypointAddress},signedTransaction:d,transaction:i});return V({chainId:r.id,client:s.client,contractAddress:a.to??void 0,transactionHash:p.transactionHash,walletAddress:n.address,walletType:"smart"}),{chain:r,client:s.client,transactionHash:p.transactionHash}},async signMessage({message:a}){return s.personalAccount.signMessage({message:a})},async signTypedData(a){const c=xe(a);return s.personalAccount.signTypedData(c)},sendCalls:async a=>{const{inAppWalletSendCalls:c}=await v(async()=>{const{inAppWalletSendCalls:y}=await import("./in-app-wallet-calls-Bv1Gy8VE.js");return{inAppWalletSendCalls:y}},__vite__mapDeps([14,15,3,8,9,1,10,16,5,17,4,6,7,11,12,13,18,19,20,21,22,23,24,25,26])),i=a.calls[0];if(!i)throw new Error("No calls to send");const d=i.client,p=i.chain||a.chain,l=await c({account:n,calls:a.calls,chain:p});return{chain:p,client:d,id:l}},getCallsStatus:async a=>{const{inAppWalletGetCallsStatus:c}=await v(async()=>{const{inAppWalletGetCallsStatus:i}=await import("./in-app-wallet-calls-Bv1Gy8VE.js");return{inAppWalletGetCallsStatus:i}},__vite__mapDeps([14,15,3,8,9,1,10,16,5,17,4,6,7,11,12,13,18,19,20,21,22,23,24,25,26]));return c(a)},getCallsStatusRaw:async a=>{const{inAppWalletGetCallsStatusRaw:c}=await v(async()=>{const{inAppWalletGetCallsStatusRaw:i}=await import("./in-app-wallet-calls-Bv1Gy8VE.js");return{inAppWalletGetCallsStatusRaw:i}},__vite__mapDeps([14,15,3,8,9,1,10,16,5,17,4,6,7,11,12,13,18,19,20,21,22,23,24,25,26]));return c(a)},getCapabilities:async a=>({[a.chainId??1]:{atomic:{status:"unsupported"},paymasterService:{supported:e.sponsorGas??!1}}})};return n}async function $(e){const{executeTx:t,options:s}=e;try{const r=await Dt({accountContract:s.accountContract,adminAddress:s.personalAccount.address,factoryContract:s.factoryContract,overrides:s.overrides,sponsorGas:s.sponsorGas,transaction:t}),n=await _t({adminAccount:s.personalAccount,chain:s.chain,client:s.client,entrypointAddress:s.overrides?.entrypointAddress,userOp:r}),a={bundlerUrl:s.overrides?.bundlerUrl,chain:s.chain,client:s.client,entrypointAddress:s.overrides?.entrypointAddress},c=await _e({options:a,userOp:n}),i=await Ot({...a,userOpHash:c});return V({chainId:s.chain.id,client:s.client,contractAddress:await D(t.to??void 0),transactionHash:i.transactionHash,walletAddress:s.accountContract.address,walletType:"smart"}),{chain:s.chain,client:s.client,transactionHash:i.transactionHash}}catch(r){throw me(r)&&pe({chainId:s.chain.id,client:s.client,contractAddress:await D(t.to??void 0),error:r,transactionValue:await D(t.value),walletAddress:s.accountContract.address}),r}finally{ne(s.accountContract)}}async function Rt(e,t,s){const r=T({address:e,chain:s,client:t});try{return await _({contract:r,method:"function entrypoint() public view returns (address)"})}catch{return}}export{aa as connectSmartAccount,sa as disconnectSmartAccount,Rt as getEntrypointFromFactory,ia as isSmartWallet};
@@ -1 +1 @@
1
- import{importShared as o}from"./__federation_fn_import-D82-s3kA.js";import{j as e}from"./jsx-runtime-DncYoG30.js";import{r as u}from"./index-BjzJcZq6.js";import{B as p,d as m,f as h,g as f,A as P,C as x,h as j,s as y,a as s,b as l,j as b,P as v,p as w,W as S,w as E,c as L,e as R,i as A}from"./SignInRedirect-DQ2EXIlf.js";(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const t of document.querySelectorAll('link[rel="modulepreload"]'))n(t);new MutationObserver(t=>{for(const r of t)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function g(t){const r={};return t.integrity&&(r.integrity=t.integrity),t.referrerPolicy&&(r.referrerPolicy=t.referrerPolicy),t.crossOrigin==="use-credentials"?r.credentials="include":t.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(t){if(t.ep)return;t.ep=!0;const r=g(t);fetch(t.href,r)}})();var d,c=u;d=c.createRoot,c.hydrateRoot;const{Navigate:B,createBrowserRouter:C}=await o("react-router-dom"),O=C([{path:"/",element:e.jsx(B,{to:"/blog",replace:!0})},{path:"/blog",element:e.jsx(p,{})},{path:"/blog/preview",element:e.jsx(m,{})},{path:"/blog/search",element:e.jsx(h,{})},{path:"/blog/sign-in",element:e.jsx(f,{})},{path:"/blog/author/:authorSlug",element:e.jsx(P,{})},{path:"/blog/:categorySlug",element:e.jsx(x,{})},{path:"/blog/:categorySlug/:postSlug",element:e.jsx(j,{})}]),{StrictMode:N}=await o("react"),{Provider:I}=await o("react-redux"),{RouterProvider:K}=await o("react-router-dom"),{AnalyticsProvider:T,TranslationProvider:W}=await o("@dcl/hooks"),{DclThemeProvider:M,darkTheme:D}=await o("decentraland-ui2");y(s.dispatch);A(s);s.dispatch(l.endpoints.getBlogCategories.initiate());s.dispatch(l.endpoints.getBlogAuthors.initiate());const G=b("SEGMENT_API_KEY")||"";d(document.getElementById("root")).render(e.jsx(N,{children:e.jsx(I,{store:s,children:e.jsx(v,{loading:null,persistor:w,children:e.jsx(S,{config:E,children:e.jsx(L,{children:e.jsx(M,{theme:D,children:e.jsx(T,{writeKey:G,children:e.jsx(W,{locale:"en",translations:{en:R},fallbackLocale:"en",children:e.jsx(K,{router:O})})})})})})})})}));
1
+ import{importShared as o}from"./__federation_fn_import-BZzr9p5I.js";import{j as e}from"./jsx-runtime-DncYoG30.js";import{r as u}from"./index-BjzJcZq6.js";import{B as p,d as m,f as h,g as f,A as P,C as x,h as j,s as y,a as s,b as l,j as b,P as v,p as w,W as S,w as E,c as L,e as R,i as A}from"./SignInRedirect-B22Or21E.js";(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const t of document.querySelectorAll('link[rel="modulepreload"]'))n(t);new MutationObserver(t=>{for(const r of t)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function g(t){const r={};return t.integrity&&(r.integrity=t.integrity),t.referrerPolicy&&(r.referrerPolicy=t.referrerPolicy),t.crossOrigin==="use-credentials"?r.credentials="include":t.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(t){if(t.ep)return;t.ep=!0;const r=g(t);fetch(t.href,r)}})();var d,c=u;d=c.createRoot,c.hydrateRoot;const{Navigate:B,createBrowserRouter:C}=await o("react-router-dom"),O=C([{path:"/",element:e.jsx(B,{to:"/blog",replace:!0})},{path:"/blog",element:e.jsx(p,{})},{path:"/blog/preview",element:e.jsx(m,{})},{path:"/blog/search",element:e.jsx(h,{})},{path:"/blog/sign-in",element:e.jsx(f,{})},{path:"/blog/author/:authorSlug",element:e.jsx(P,{})},{path:"/blog/:categorySlug",element:e.jsx(x,{})},{path:"/blog/:categorySlug/:postSlug",element:e.jsx(j,{})}]),{StrictMode:N}=await o("react"),{Provider:I}=await o("react-redux"),{RouterProvider:K}=await o("react-router-dom"),{AnalyticsProvider:T,TranslationProvider:W}=await o("@dcl/hooks"),{DclThemeProvider:M,darkTheme:D}=await o("decentraland-ui2");y(s.dispatch);A(s);s.dispatch(l.endpoints.getBlogCategories.initiate());s.dispatch(l.endpoints.getBlogAuthors.initiate());const G=b("SEGMENT_API_KEY")||"";d(document.getElementById("root")).render(e.jsx(N,{children:e.jsx(I,{store:s,children:e.jsx(v,{loading:null,persistor:w,children:e.jsx(S,{config:E,children:e.jsx(L,{children:e.jsx(M,{theme:D,children:e.jsx(T,{writeKey:G,children:e.jsx(W,{locale:"en",translations:{en:R},fallbackLocale:"en",children:e.jsx(K,{router:O})})})})})})})})}));