@dcl/governance-site 2.5.0 → 2.5.1

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 (160) hide show
  1. package/assets/{ConstantsUtil-689989f0.js → ConstantsUtil-c3a75781.js} +1 -1
  2. package/assets/{ExchangeController-88f78111.js → ExchangeController-de6066de.js} +1 -1
  3. package/assets/{HelpersUtil-40f31189.js → HelpersUtil-47bce835.js} +1 -1
  4. package/assets/{NetworkUtil-2fb81493.js → NetworkUtil-cfdab321.js} +1 -1
  5. package/assets/{ReownAuthentication-e5d1d4cc.js → ReownAuthentication-c1098727.js} +1 -1
  6. package/assets/{SwapController-f47e6f17.js → SwapController-6f3f28da.js} +1 -1
  7. package/assets/{UserAvatar-0c19fd64.js → UserAvatar-4217a7be.js} +1 -1
  8. package/assets/{W3MFrameProviderSingleton-33e9645e.js → W3MFrameProviderSingleton-316899f0.js} +2 -2
  9. package/assets/{basic-509eb412.js → basic-d9c0f288.js} +1 -1
  10. package/assets/{biconomy-6fa3eb98.js → biconomy-bc04f7cc.js} +1 -1
  11. package/assets/{ccip-040f274b.js → ccip-d88eddf3.js} +1 -1
  12. package/assets/{ccip-6d1e4a15.js → ccip-e509a2bd.js} +1 -1
  13. package/assets/{chains-bae55e5f.js → chains-12910e1f.js} +1 -1
  14. package/assets/{common-f2e88a7e.js → common-583dfda9.js} +1 -1
  15. package/assets/{compat-b432550d.js → compat-000e5801.js} +1 -1
  16. package/assets/{controller-83cf739b.js → controller-5a843a75.js} +1 -1
  17. package/assets/{core-71a03396.js → core-1a166f08.js} +3 -3
  18. package/assets/{custom-7ae31f11.js → custom-3c5e7814.js} +1 -1
  19. package/assets/{data-capture-f1f485c2.js → data-capture-a27f6e5c.js} +1 -1
  20. package/assets/decimals-50f9fee1.js +1 -0
  21. package/assets/{decimals-9d5fec14.js → decimals-bddbc743.js} +1 -1
  22. package/assets/{email-be31d86e.js → email-0c5024d9.js} +1 -1
  23. package/assets/{embedded-wallet-41341ab4.js → embedded-wallet-d5992bd8.js} +1 -1
  24. package/assets/{engine-8d2b111b.js → engine-9b39863f.js} +1 -1
  25. package/assets/{estimate-l1-fee-8acb8860.js → estimate-l1-fee-69110584.js} +1 -1
  26. package/assets/eth_estimateGas-945ce595.js +1 -0
  27. package/assets/{eth_getStorageAt-2d8a4700.js → eth_getStorageAt-125a2bc1.js} +1 -1
  28. package/assets/{eth_getTransactionCount-273004ec.js → eth_getTransactionCount-6240f912.js} +1 -1
  29. package/assets/{ethereum-667be7dc.js → ethereum-0d579241.js} +1 -1
  30. package/assets/{execute-6c88dd5f.js → execute-264a98ed.js} +1 -1
  31. package/assets/{extractIPFS-640303a3.js → extractIPFS-d48a2b7b.js} +1 -1
  32. package/assets/features-7c8dc530.js +1 -0
  33. package/assets/{fetchTokenMetadata-1e138f21.js → fetchTokenMetadata-f32fb87e.js} +1 -1
  34. package/assets/{fortmatic-d34f42c3.js → fortmatic-5f1bb82e.js} +1 -1
  35. package/assets/{get-bytecode-8cb4e224.js → get-bytecode-7a8c6215.js} +1 -1
  36. package/assets/{get-ecosystem-wallet-info-ec712acc.js → get-ecosystem-wallet-info-0a9d1fa7.js} +1 -1
  37. package/assets/{getBalance-0308f38f.js → getBalance-e2e6d859.js} +1 -1
  38. package/assets/{getInstalledModules-17fa1a09.js → getInstalledModules-4e23fa8a.js} +1 -1
  39. package/assets/{getNFT-06eb1406.js → getNFT-5486b2f7.js} +1 -1
  40. package/assets/{getNFT-30795fe1.js → getNFT-74f5ae81.js} +1 -1
  41. package/assets/{hashBytecode-a29db705.js → hashBytecode-7a0e56f5.js} +1 -1
  42. package/assets/{hashTypedData-23a00dc9.js → hashTypedData-03b693eb.js} +1 -1
  43. package/assets/{hashTypedData-ba8e399b.js → hashTypedData-cc1589a7.js} +1 -1
  44. package/assets/{in-app-9acc158b.js → in-app-1d212717.js} +1 -1
  45. package/assets/{in-app-wallet-calls-48ca2694.js → in-app-wallet-calls-7fdb5823.js} +1 -1
  46. package/assets/{index-89cbc69d.js → index-06d7a58c.js} +1 -1
  47. package/assets/{index-355751ab.js → index-10c73e9d.js} +245 -245
  48. package/assets/{index-9ecf773e.js → index-19891b89.js} +1 -1
  49. package/assets/{index-2ebd7a81.js → index-206ffe7d.js} +1 -1
  50. package/assets/{index-f4401a12.js → index-20b33848.js} +1 -1
  51. package/assets/{index-6e64d31e.js → index-23dd6251.js} +2 -2
  52. package/assets/{index-2124b7cd.js → index-2cab452e.js} +1 -1
  53. package/assets/{index-9c2f8893.js → index-2f82abe0.js} +1 -1
  54. package/assets/{index-a5c29e80.js → index-30a8f53e.js} +1 -1
  55. package/assets/{index-4bc8eee8.js → index-31022e63.js} +1 -1
  56. package/assets/{index-a5876580.js → index-32a45902.js} +1 -1
  57. package/assets/{index-b7605561.js → index-3b678484.js} +1 -1
  58. package/assets/{index-3cdab001.js → index-3bc5c9df.js} +1 -1
  59. package/assets/{index-d7ed4af8.js → index-3d19d06c.js} +1 -1
  60. package/assets/{index-1368749b.js → index-401eba13.js} +1 -1
  61. package/assets/{index-f4841b7d.js → index-5071722a.js} +1 -1
  62. package/assets/{index-e7f3149f.css → index-59db4a58.css} +4 -4
  63. package/assets/{index-e6ba4bbe.js → index-5d7b6c51.js} +1 -1
  64. package/assets/{index-78689969.js → index-5ece9033.js} +1 -1
  65. package/assets/{index-33bd3c33.js → index-610c7efb.js} +1 -1
  66. package/assets/{index-a91bb597.js → index-69a0492a.js} +1 -1
  67. package/assets/{index-76dbec48.js → index-6d8da0b7.js} +1 -1
  68. package/assets/{index-863b5c53.js → index-6ec6d7c7.js} +1 -1
  69. package/assets/{index-ec8cf158.js → index-780a2232.js} +1 -1
  70. package/assets/{index-b40ed19e.js → index-7ad05b06.js} +1 -1
  71. package/assets/{index-e332724b.js → index-7f01a27a.js} +1 -1
  72. package/assets/{index-69ac8519.js → index-877ffe4a.js} +1 -1
  73. package/assets/{index-e6d2ed90.js → index-8aeaab91.js} +1 -1
  74. package/assets/{index-66d53073.js → index-8cbb4ff7.js} +2 -2
  75. package/assets/{index-e2d1a06e.js → index-8d81098b.js} +1 -1
  76. package/assets/{index-3ad96675.js → index-8fa35f13.js} +1 -1
  77. package/assets/{index-5f847edd.js → index-93724bad.js} +2 -2
  78. package/assets/index-9bee2cc7.js +77 -0
  79. package/assets/{index-2e071cd2.js → index-9d37fa54.js} +1 -1
  80. package/assets/{index-57dbcd5d.js → index-a151f6d7.js} +1 -1
  81. package/assets/{index-54323fc3.js → index-a22875e4.js} +2 -2
  82. package/assets/{index-d7bf28d3.js → index-a69ba1cc.js} +1 -1
  83. package/assets/{index-6c8c5091.js → index-a6a44c61.js} +1 -1
  84. package/assets/{index-b41b719c.js → index-aae2726c.js} +1 -1
  85. package/assets/{index-8bdd54b7.js → index-ad63abcf.js} +1 -1
  86. package/assets/{index-375e28ad.js → index-b3691f6b.js} +1 -1
  87. package/assets/{index-276c1c99.js → index-b3889ac8.js} +1 -1
  88. package/assets/{index-2537319c.js → index-bb13bbcd.js} +1 -1
  89. package/assets/{index-05f3c18a.js → index-bcedc0e6.js} +1 -1
  90. package/assets/{index-9e3730d4.js → index-c49dee70.js} +1 -1
  91. package/assets/{index-c7839713.js → index-cafc0996.js} +1 -1
  92. package/assets/{index-1c9749d2.js → index-d22cfc35.js} +1 -1
  93. package/assets/{index-9c119afb.js → index-d2f37bee.js} +1 -1
  94. package/assets/{index-ffdeacb2.js → index-d44b19e2.js} +1 -1
  95. package/assets/{index-8b5a06dd.js → index-d77a63d3.js} +1 -1
  96. package/assets/{index-ab687c6f.js → index-e332040b.js} +1 -1
  97. package/assets/{index-5b4e7208.js → index-e583ff4e.js} +1 -1
  98. package/assets/{index-5947dd15.js → index-e9ab8876.js} +1 -1
  99. package/assets/{index-3c50ab3b.js → index-f49c89c1.js} +1 -1
  100. package/assets/{index-3d2bada3.js → index-fe892b11.js} +1 -1
  101. package/assets/{index.es-2aacf970.js → index.es-0f7943d8.js} +1 -1
  102. package/assets/{index.es-ce0aa5fd.js → index.es-30a0ec70.js} +3 -3
  103. package/assets/{index.es-ac60fff2.js → index.es-4520fb10.js} +1 -1
  104. package/assets/{index.web-1837e57d.js → index.web-e2526e19.js} +1 -1
  105. package/assets/{localBatchGatewayRequest-b2e2be89.js → localBatchGatewayRequest-ff5d42f6.js} +1 -1
  106. package/assets/{native-8dd45a06.js → native-3e8a86bb.js} +1 -1
  107. package/assets/{networks-2b49f856.js → networks-fc1b1902.js} +1 -1
  108. package/assets/{onramp-7ba26b97.js → onramp-cf41485f.js} +1 -1
  109. package/assets/{openzeppelin-56d83a0f.js → openzeppelin-e72c7daa.js} +1 -1
  110. package/assets/{ownerOf-558180d2.js → ownerOf-c09a8f45.js} +1 -1
  111. package/assets/parseNft-147a451f.js +1 -0
  112. package/assets/{parseSignature-16c7c561.js → parseSignature-6b0b4698.js} +2 -2
  113. package/assets/{parseSignature-7a759338.js → parseSignature-b975d9a6.js} +1 -1
  114. package/assets/{passkeys-fd92f407.js → passkeys-bb25d43e.js} +1 -1
  115. package/assets/{pay-with-exchange-542b5282.js → pay-with-exchange-cd96ece6.js} +1 -1
  116. package/assets/{prepare-contract-call-ac31a985.js → prepare-contract-call-4be4cc68.js} +1 -1
  117. package/assets/{qr-overlay-548b2074.js → qr-overlay-fd67e1ca.js} +1 -1
  118. package/assets/{receive-9119a0fc.js → receive-9ddd4e2d.js} +1 -1
  119. package/assets/{redirect-state-202ec690.js → redirect-state-301cb22c.js} +1 -1
  120. package/assets/{resolveImplementation-ffd32467.js → resolveImplementation-6b55308f.js} +1 -1
  121. package/assets/{rpc-4fa5fbde.js → rpc-83ca4b71.js} +1 -1
  122. package/assets/{secp256k1-61174a68.js → secp256k1-44255658.js} +1 -1
  123. package/assets/{secp256k1-587b447b.js → secp256k1-4ab38443.js} +1 -1
  124. package/assets/{secp256k1-2e39eaab.js → secp256k1-ac683ebc.js} +1 -1
  125. package/assets/{send-5e9549ca.js → send-7e34f1e6.js} +1 -1
  126. package/assets/{send-batch-transaction-16b5b747.js → send-batch-transaction-429c82ee.js} +1 -1
  127. package/assets/{send-eip712-transaction-67b51817.js → send-eip712-transaction-20a9b9ed.js} +1 -1
  128. package/assets/send-gasless-transaction-0435da18.js +1 -0
  129. package/assets/{send-transaction-5984dc09.js → send-transaction-c3053b90.js} +1 -1
  130. package/assets/{session-proposal-548687be.js → session-proposal-d1473b74.js} +1 -1
  131. package/assets/{session-request-543a34de.js → session-request-f0a8f695.js} +1 -1
  132. package/assets/{sha256-865a5e2e.js → sha256-937f482f.js} +1 -1
  133. package/assets/{signing-67cb53a5.js → signing-6d6682ec.js} +2 -2
  134. package/assets/{socials-1c5f45aa.js → socials-d1713bee.js} +1 -1
  135. package/assets/{swaps-a0b58cae.js → swaps-8bad12fe.js} +1 -1
  136. package/assets/{thirdweb-d54893e0.js → thirdweb-73096eef.js} +2 -2
  137. package/assets/{to-serializable-transaction-2ea802ff.js → to-serializable-transaction-9e540f8c.js} +2 -2
  138. package/assets/{totalSupply-f714505e.js → totalSupply-7e83596b.js} +1 -1
  139. package/assets/{transaction-e500e7c4.js → transaction-ea614a5a.js} +1 -1
  140. package/assets/{transactionReceipt-c6fe2381.js → transactionReceipt-1e425ab1.js} +1 -1
  141. package/assets/{transactions-9a79e8f9.js → transactions-a47e2cb5.js} +1 -1
  142. package/assets/{tslib.es6-b444c8f1.js → tslib.es6-24024d67.js} +1 -1
  143. package/assets/{utils-74c631d9.js → utils-dddc86ba.js} +1 -1
  144. package/assets/{verifyHash-34edded7.js → verifyHash-b21b75c2.js} +1 -1
  145. package/assets/{w3m-modal-0795c078.js → w3m-modal-e914d462.js} +1 -1
  146. package/assets/{w3m-modal-906aa735.js → w3m-modal-ff2f112d.js} +1 -1
  147. package/assets/{wait-for-tx-receipt-dbf6b521.js → wait-for-tx-receipt-50389b4e.js} +1 -1
  148. package/assets/{wallets-331c410d.js → wallets-4e23dd0f.js} +4 -4
  149. package/assets/{web-connector-3a1204fd.js → web-connector-351693f5.js} +2 -2
  150. package/assets/{writeContract-f6b81199.js → writeContract-03e44e49.js} +2 -2
  151. package/assets/{zora-sepolia-eaf59a0b.js → zora-sepolia-72e60034.js} +1 -1
  152. package/assets/{zoraTestnet-55836178.js → zoraTestnet-1485f0af.js} +1 -1
  153. package/index.html +4 -4
  154. package/package.json +3 -3
  155. package/assets/decimals-37678a25.js +0 -1
  156. package/assets/eth_estimateGas-79dc1763.js +0 -1
  157. package/assets/features-0025dc16.js +0 -1
  158. package/assets/index-7ee82e4f.js +0 -77
  159. package/assets/parseNft-93d99682.js +0 -1
  160. package/assets/send-gasless-transaction-8bdf3649.js +0 -1
@@ -1,4 +1,4 @@
1
- import{u as H,g as ft}from"./index-355751ab.js";function pt(m,a){for(var h=0;h<a.length;h++){const f=a[h];if(typeof f!="string"&&!Array.isArray(f)){for(const l in f)if(l!=="default"&&!(l in m)){const r=Object.getOwnPropertyDescriptor(f,l);r&&Object.defineProperty(m,l,r.get?r:{enumerable:!0,get:()=>f[l]})}}}return Object.freeze(Object.defineProperty(m,Symbol.toStringTag,{value:"Module"}))}var ct={exports:{}},A={exports:{}},L={exports:{}};/*!
1
+ import{u as H,g as ft}from"./index-10c73e9d.js";function pt(m,a){for(var h=0;h<a.length;h++){const f=a[h];if(typeof f!="string"&&!Array.isArray(f)){for(const l in f)if(l!=="default"&&!(l in m)){const r=Object.getOwnPropertyDescriptor(f,l);r&&Object.defineProperty(m,l,r.get?r:{enumerable:!0,get:()=>f[l]})}}}return Object.freeze(Object.defineProperty(m,Symbol.toStringTag,{value:"Module"}))}var ct={exports:{}},A={exports:{}},L={exports:{}};/*!
2
2
  * getSize v2.0.3
3
3
  * measure size of elements
4
4
  * MIT license
@@ -1 +1 @@
1
- import{az as Ot,av as xa,aw as Ea,bP as se,aB as $t,bQ as Ia,bR as Ta,bS as J,x as jt,af as nt,by as Tt,b6 as va,a8 as S,bJ as vt,bT as At,bz as rt,bA as oe,a as et,bo as Vt,bf as ie,bU as Aa,bV as tt,bt as Ca,a1 as O,bh as $,bW as bt,bv as Ct,bX as ce,bY as M,as as ue,at as de,q as me,r as le,bZ as fe,a0 as _,o as H,ao as he,s as pe,ae as ye,ad as ge,d as be,n as Sa,b as St,b8 as j,i as st,a3 as Pt,ba as we,bg as xe,bi as Ee,bN as Pa,bO as Ra,b_ as Ie,b$ as wt,c0 as Te,c1 as _a,c2 as Fa,bC as qa,c3 as Ua,c4 as Ba,bp as Na,j as ka,h as La,c5 as za,bj as Ma,c6 as Da,c7 as Ga,l as Ha,m as Oa,A as $a,c8 as ja,c9 as Va,ab as Wa,B as Ka,bb as Ja,ca as Ya,cb as Za,cc as Qa,cd as Xa,ce as tn,bc as en,bw as an,cf as nn,cg as rn,bm as sn,bn as on,ch as cn,ci as un,cj as dn,ck as mn,cl as ln,cm as fn,ax as hn,aA as pn,cn as yn,I as gn,ag as bn,co as wn,cp as xn,cq as En,cr as In,cs as Tn,ct as vn,cu as An,am as Cn,cv as Sn,cw as Pn,bD as Rn,cx as _n,cy as Fn,cz as qn,a4 as Un,a6 as Bn,cA as Nn,cB as kn,br as Ln,a9 as zn,ap as Mn,ar as Dn,cC as Gn,cD as Hn,cE as On,cF as $n,cG as jn,aq as Vn,cH as Wn,k as Kn,bl as Jn,cI as Yn,cJ as Zn,cK as Qn,cL as Xn,bI as tr,cM as er,e as ar,bd as Wt,bG as nr,cN as rr,a2 as sr,a5 as or,a7 as ir,cO as cr,g as ur,bx as dr,b7 as mr,bk as Kt,cP as Y,t as Jt,an as lr,cQ as fr,cR as hr,cS as pr,cT as yr,cU as gr,cV as br,cW as wr,cX as xr,cY as Er,cZ as Ir,c_ as Tr,c$ as vr,d0 as Ar,d1 as Cr,d2 as Sr,d3 as Pr,d4 as Rr,d5 as _r,d6 as Fr,d7 as qr,d8 as Ur,d9 as Br,da as Nr,db as kr,dc as Lr,dd as zr,de as Mr,df as Dr,dg as Gr,dh as Hr,di as Or,dj as $r,dk as jr,dl as Vr,dm as Wr,dn as Kr,dp as Jr,dq as Yr,dr as Zr,ds as Qr,dt as Xr,du as ts,dv as es,dw as as,dx as ns,dy as rs,dz as ss,dA as os,dB as is,dC as cs,dD as us,dE as ds,dF as ms,dG as ls,ah as fs,dH as hs,dI as ps,dJ as ys,dK as gs,dL as bs,dM as ws,dN as xs,dO as Es,dP as Is,dQ as Ts,dR as vs,dS as As,dT as Cs,dU as Ss,dV as Ps,dW as Rs,dX as _s,dY as Fs,dZ as qs,d_ as Us,d$ as Bs,e0 as Ns,e1 as ks,e2 as Ls,e3 as zs,e4 as Ms,e5 as Ds,e6 as Gs,e7 as Hs,e8 as Os,e9 as $s,ea as js,eb as Vs,ec as Ws,ed as Ks,ee as Js,ef as Ys,eg as Zs,eh as Qs,ei as Xs,ej as to,ek as eo,el as ao,em as no,en as ro,eo as so,ep as oo,eq as io,er as co,es as Yt,et as uo}from"./writeContract-f6b81199.js";import{s as ve,e as mo,a as Rt,c as lo,g as fo,w as ho,b as _t,d as Ae,p as at,r as ot,t as Ce,f as Se,h as Pe,i as Re,j as _e,k as po,E as Fe,B as yo,l as go,m as bo,n as wo,F as xo,W as Eo,o as Io,q as To,u as vo,v as Ao,x as Co,y as Zt,z as So,A as Po,C as Ro,D as _o,G as Fo,H as qo,I as Uo}from"./parseSignature-7a759338.js";import{h as Bo,i as No,j as qe,k as Ue,l as Be,m as ko,u as Lo,w as zo,r as Mo,s as Ne,n as Do,o as Go,p as Ho,q as Oo,t as $o,x as Qt}from"./verifyHash-34edded7.js";import{w as jo,a as Ft,s as Vo,m as Z,c as Wo,p as Ko,r as Jo,n as Yo}from"./custom-7ae31f11.js";import{L as Zo,B as it,aj as ke,a4 as D,ak as Le,al as ze,f as N,am as Me,b as g,h as De,a2 as C,Y as x,a3 as Ge,an as xt,a9 as F,aa as He,d as ft,H as Oe,t as $e,n as E,ao as Qo,ap as Xo,ai as k,R as je,p as ti,A as ei,q as ai,C as ni,D as ri,X as si,a0 as oi,aq as ii,ar as ci,as as ui,F as di,at as mi,au as li,av as fi,aw as hi,I as pi,G as yi,N as gi,J as bi,y as wi,K as xi,M as Ei,ax as Ii,ay as Ti,az as vi,O as Ai,P as Ci,aA as Si,E as Pi,l as Ri,Q as _i,aB as Fi,aC as qi,aD as Ui,aE as Bi,S as Ni,k as ki,T as Li,a1 as zi,z as Mi,aF as Di,x as Gi,r as Hi,ah as Oi,m as $i,u as ji,v as Vi,w as Wi,U as Ki,W as Ji,aG as Yi,ab as Zi,aH as Qi,aI as Xi,aJ as tc,a6 as Xt,aK as ec,aL as ac,j as nc,a7 as rc,a8 as sc,$ as oc,aM as ic,aN as cc,aO as uc,ac as dc,e as mc,s as lc}from"./createBatchScheduler-7c9ada66.js";import{h as Ve,a as We,g as Ke,v as Je,s as Ye,I as fc,b as hc,c as pc,d as yc,e as gc,f as bc,i as wc,p as xc,t as Ec}from"./hashTypedData-23a00dc9.js";import{f as qt,U as Ze,c as Qe,d as Ic,h as Tc,s as vc,a as Ac,w as Cc}from"./http-a4cf4808.js";import{g as Sc,a as ht}from"./compat-b432550d.js";import{l as Pc,d as Rc,e as _c,b as Fc}from"./localBatchGatewayRequest-b2e2be89.js";import{ccipRequest as Et,offchainLookup as qc,offchainLookupAbiItem as Uc,offchainLookupSignature as Bc}from"./ccip-040f274b.js";import{s as Xe}from"./secp256k1-61174a68.js";function Nc({chains:t,id:e}){return t.find(a=>a.id===e)}function kc(t){let e;if(typeof t=="string")e=Ot(t,{modifiers:$t});else{const a=xa(t),n=t.length;for(let r=0;r<n;r++){const s=t[r];if(!Ea(s)){e=Ot(s,{modifiers:$t,structs:a});break}}}if(!e)throw new se({param:t});return e}const Lc=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),ta=(()=>Uint8Array.from(new Array(16).fill(0).map((t,e)=>e)))(),zc=(()=>ta.map(t=>(9*t+5)%16))(),ea=(()=>{const a=[[ta],[zc]];for(let n=0;n<4;n++)for(let r of a)r.push(r[n].map(s=>Lc[s]));return a})(),aa=(()=>ea[0])(),na=(()=>ea[1])(),ra=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(t=>Uint8Array.from(t)),Mc=aa.map((t,e)=>t.map(a=>ra[e][a])),Dc=na.map((t,e)=>t.map(a=>ra[e][a])),Gc=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),Hc=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function te(t,e,a,n){return t===0?e^a^n:t===1?e&a|~e&n:t===2?(e|~a)^n:t===3?e&n|a&~n:e^(a|~n)}const Q=new Uint32Array(16);class Oc extends Ta{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:a,h2:n,h3:r,h4:s}=this;return[e,a,n,r,s]}set(e,a,n,r,s){this.h0=e|0,this.h1=a|0,this.h2=n|0,this.h3=r|0,this.h4=s|0}process(e,a){for(let u=0;u<16;u++,a+=4)Q[u]=e.getUint32(a,!0);let n=this.h0|0,r=n,s=this.h1|0,o=s,i=this.h2|0,c=i,d=this.h3|0,l=d,m=this.h4|0,h=m;for(let u=0;u<5;u++){const f=4-u,y=Gc[u],w=Hc[u],I=aa[u],b=na[u],v=Mc[u],P=Dc[u];for(let T=0;T<16;T++){const p=J(n+te(u,s,i,d)+Q[I[T]]+y,v[T])+m|0;n=m,m=d,d=J(i,10)|0,i=s,s=p}for(let T=0;T<16;T++){const p=J(r+te(f,o,c,l)+Q[b[T]]+w,P[T])+h|0;r=h,h=l,l=J(c,10)|0,c=o,o=p}}this.set(this.h1+i+l|0,this.h2+d+h|0,this.h3+m+r|0,this.h4+n+o|0,this.h0+s+c|0)}roundClean(){jt(Q)}destroy(){this.destroyed=!0,jt(this.buffer),this.set(0,0,0,0,0)}}const $c=Ia(()=>new Oc),jc=$c,pt=new Zo(128);async function sa(t,e){var Nt,kt,Lt,zt,Mt,Dt;const{account:a=t.account,assertChainId:n=!0,chain:r=t.chain,accessList:s,authorizationList:o,blobs:i,data:c,dataSuffix:d=typeof t.dataSuffix=="string"?t.dataSuffix:(Nt=t.dataSuffix)==null?void 0:Nt.value,gas:l,gasPrice:m,maxFeePerBlobGas:h,maxFeePerGas:u,maxPriorityFeePerGas:f,nonce:y,pollingInterval:w,throwOnReceiptRevert:I,type:b,value:v,...P}=e,T=e.timeout??Math.max(((r==null?void 0:r.blockTime)??0)*3,5e3);if(typeof a>"u")throw new nt({docsPath:"/docs/actions/wallet/sendTransactionSync"});const p=a?O(a):null;let A;try{Tt(e);const q=await(async()=>{if(e.to)return e.to;if(e.to!==null&&o&&o.length>0)return await va({authorization:o[0]}).catch(()=>{throw new it("`to` is required. Could not infer from `authorizationList`.")})})();if((p==null?void 0:p.type)==="json-rpc"||p===null){let G;r!==null&&(G=await S(t,vt,"getChainId")({}),n&&At({currentChainId:G,chain:r}));const W=(zt=(Lt=(kt=t.chain)==null?void 0:kt.formatters)==null?void 0:Lt.transactionRequest)==null?void 0:zt.format,K=(W||rt)({...oe(P,{format:W}),accessList:s,account:p,authorizationList:o,blobs:i,chainId:G,data:d?et([c??"0x",d]):c,gas:l,gasPrice:m,maxFeePerBlobGas:h,maxFeePerGas:u,maxPriorityFeePerGas:f,nonce:y,to:q,type:b,value:v},"sendTransaction"),U=pt.get(t.uid),R=U?"wallet_sendTransaction":"eth_sendTransaction",wa=await(async()=>{try{return await t.request({method:R,params:[K]},{retryCount:0})}catch(Ht){if(U===!1)throw Ht;const B=Ht;if(B.name==="InvalidInputRpcError"||B.name==="InvalidParamsRpcError"||B.name==="MethodNotFoundRpcError"||B.name==="MethodNotSupportedRpcError")return await t.request({method:"wallet_sendTransaction",params:[K]},{retryCount:0}).then(mt=>(pt.set(t.uid,!0),mt)).catch(mt=>{const lt=mt;throw lt.name==="MethodNotFoundRpcError"||lt.name==="MethodNotSupportedRpcError"?(pt.set(t.uid,!1),B):lt});throw B}})(),dt=await S(t,jo,"waitForTransactionReceipt")({checkReplacement:!1,hash:wa,pollingInterval:w,timeout:T});if(I&&dt.status==="reverted")throw new Vt({receipt:dt});return dt}if((p==null?void 0:p.type)==="local"){const G=(()=>{if(!p.nonceManager||typeof y<"u")return p.nonceManager;const U=p.nonceManager;return{consume(R){return A={address:R.address,chainId:R.chainId},U.consume(R)},get(R){return U.get(R)},increment(R){return U.increment(R)},reset(R){return U.reset(R)}}})(),W=await S(t,ie,"prepareTransactionRequest")({account:p,accessList:s,authorizationList:o,blobs:i,chain:r,data:d?et([c??"0x",d]):c,gas:l,gasPrice:m,maxFeePerBlobGas:h,maxFeePerGas:u,maxPriorityFeePerGas:f,nonce:y,nonceManager:G,parameters:[...Aa,"sidecars"],type:b,value:v,...P,to:q}),Gt=(Mt=r==null?void 0:r.serializers)==null?void 0:Mt.transaction,K=await p.signTransaction(W,{serializer:Gt});return await S(t,ve,"sendRawTransactionSync")({serializedTransaction:K,throwOnReceiptRevert:I,timeout:e.timeout})}throw(p==null?void 0:p.type)==="smart"?new tt({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new tt({docsPath:"/docs/actions/wallet/sendTransactionSync",type:p==null?void 0:p.type})}catch(q){throw q instanceof tt?q:(A&&!(q instanceof Vt)&&((Dt=p==null?void 0:p.nonceManager)==null||Dt.reset(A)),Ca(q,{...e,account:p,chain:e.chain||void 0}))}}async function Ut(t,e){return $.internal(t,sa,"sendTransactionSync",e)}const ee=1024;function Bt(t,e="hex"){const a=(()=>{if(typeof t=="string"){if(t.length>3&&t.length%2!==0)throw new ke(t);return D(t)}return t})(),n=bt(a,{recursiveReadLimit:Number.POSITIVE_INFINITY}),r=oa(n,e);if(n.position<n.bytes.length)throw new Le({count:n.bytes.length-n.position});return r}function oa(t,e="hex",a=0){if(a>=ee)throw new ze({limit:ee});if(t.bytes.length===0)return e==="hex"?N(t.bytes):t.bytes;const n=t.readByte();if(n<128&&t.decrementPosition(1),n<192){const s=ae(t,n,128),o=t.readBytes(s);return e==="hex"?N(o):o}const r=ae(t,n,192);return Vc(t,r,e,a+1)}function ae(t,e,a){if(a===128&&e<128)return 1;if(e<=a+55)return e-a;if(e===a+55+1)return t.readUint8();if(e===a+55+2)return t.readUint16();if(e===a+55+3)return t.readUint24();if(e===a+55+4)return t.readUint32();throw new it("Invalid RLP prefix")}function Vc(t,e,a,n){const r=t.position,s=[];for(;t.position-r<e;)s.push(oa(t,a,n));if(t.position-r!==e)throw new Me({consumed:t.position-r,declared:e});return s}function ia(t){return g(t)&&De(t)===32}function ca(t){const e=Ct(t,0,1);if(e==="0x04")return"eip7702";if(e==="0x03")return"eip4844";if(e==="0x02")return"eip1559";if(e==="0x01")return"eip2930";if(e!=="0x"&&C(e)>=192)return"legacy";throw new ce({serializedType:e})}function ua(t){const e=ca(t);return e==="eip1559"?Jc(t):e==="eip2930"?Yc(t):e==="eip4844"?Kc(t):e==="eip7702"?Wc(t):Zc(t)}function Wc(t){const e=ct(t),[a,n,r,s,o,i,c,d,l,m,h,u,f]=e;if(e.length!==10&&e.length!==13)throw new M({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:o,to:i,value:c,data:d,accessList:l,authorizationList:m,...e.length>9?{v:h,r:u,s:f}:{}},serializedTransaction:t,type:"eip7702"});const y={chainId:C(a),type:"eip7702"};return g(i)&&i!=="0x"&&(y.to=i),g(o)&&o!=="0x"&&(y.gas=x(o)),g(d)&&d!=="0x"&&(y.data=d),g(n)&&(y.nonce=n==="0x"?0:C(n)),g(c)&&c!=="0x"&&(y.value=x(c)),g(s)&&s!=="0x"&&(y.maxFeePerGas=x(s)),g(r)&&r!=="0x"&&(y.maxPriorityFeePerGas=x(r)),l.length!==0&&l!=="0x"&&(y.accessList=ut(l)),m.length!==0&&m!=="0x"&&(y.authorizationList=Qc(m)),Bo(y),{...e.length===13?V(e):void 0,...y}}function Kc(t){const e=ct(t),a=e.length===4,n=a?e[0]:e,r=a?e.slice(1):[],[s,o,i,c,d,l,m,h,u,f,y,w,I,b]=n,[v,P,T]=r;if(!(n.length===11||n.length===14))throw new M({attributes:{chainId:s,nonce:o,maxPriorityFeePerGas:i,maxFeePerGas:c,gas:d,to:l,value:m,data:h,accessList:u,...n.length>9?{v:w,r:I,s:b}:{}},serializedTransaction:t,type:"eip4844"});const p={blobVersionedHashes:y,chainId:C(s),to:l,type:"eip4844"};return g(d)&&d!=="0x"&&(p.gas=x(d)),g(h)&&h!=="0x"&&(p.data=h),g(o)&&(p.nonce=o==="0x"?0:C(o)),g(m)&&m!=="0x"&&(p.value=x(m)),g(f)&&f!=="0x"&&(p.maxFeePerBlobGas=x(f)),g(c)&&c!=="0x"&&(p.maxFeePerGas=x(c)),g(i)&&i!=="0x"&&(p.maxPriorityFeePerGas=x(i)),u.length!==0&&u!=="0x"&&(p.accessList=ut(u)),v&&P&&T&&(p.sidecars=ue({blobs:v,commitments:P,proofs:T})),No(p),{...n.length===14?V(n):void 0,...p}}function Jc(t){const e=ct(t),[a,n,r,s,o,i,c,d,l,m,h,u]=e;if(!(e.length===9||e.length===12))throw new M({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:o,to:i,value:c,data:d,accessList:l,...e.length>9?{v:m,r:h,s:u}:{}},serializedTransaction:t,type:"eip1559"});const f={chainId:C(a),type:"eip1559"};return g(i)&&i!=="0x"&&(f.to=i),g(o)&&o!=="0x"&&(f.gas=x(o)),g(d)&&d!=="0x"&&(f.data=d),g(n)&&(f.nonce=n==="0x"?0:C(n)),g(c)&&c!=="0x"&&(f.value=x(c)),g(s)&&s!=="0x"&&(f.maxFeePerGas=x(s)),g(r)&&r!=="0x"&&(f.maxPriorityFeePerGas=x(r)),l.length!==0&&l!=="0x"&&(f.accessList=ut(l)),qe(f),{...e.length===12?V(e):void 0,...f}}function Yc(t){const e=ct(t),[a,n,r,s,o,i,c,d,l,m,h]=e;if(!(e.length===8||e.length===11))throw new M({attributes:{chainId:a,nonce:n,gasPrice:r,gas:s,to:o,value:i,data:c,accessList:d,...e.length>8?{v:l,r:m,s:h}:{}},serializedTransaction:t,type:"eip2930"});const u={chainId:C(a),type:"eip2930"};return g(o)&&o!=="0x"&&(u.to=o),g(s)&&s!=="0x"&&(u.gas=x(s)),g(c)&&c!=="0x"&&(u.data=c),g(n)&&(u.nonce=n==="0x"?0:C(n)),g(i)&&i!=="0x"&&(u.value=x(i)),g(r)&&r!=="0x"&&(u.gasPrice=x(r)),d.length!==0&&d!=="0x"&&(u.accessList=ut(d)),Ue(u),{...e.length===11?V(e):void 0,...u}}function Zc(t){const e=Bt(t,"hex"),[a,n,r,s,o,i,c,d,l]=e;if(!(e.length===6||e.length===9))throw new M({attributes:{nonce:a,gasPrice:n,gas:r,to:s,value:o,data:i,...e.length>6?{v:c,r:d,s:l}:{}},serializedTransaction:t,type:"legacy"});const m={type:"legacy"};if(g(s)&&s!=="0x"&&(m.to=s),g(r)&&r!=="0x"&&(m.gas=x(r)),g(i)&&i!=="0x"&&(m.data=i),g(a)&&(m.nonce=a==="0x"?0:C(a)),g(o)&&o!=="0x"&&(m.value=x(o)),g(n)&&n!=="0x"&&(m.gasPrice=x(n)),Be(m),e.length===6)return m;const h=g(c)&&c!=="0x"?x(c):0n;if(l==="0x"&&d==="0x")return h>0&&(m.chainId=Number(h)),m;const u=h,f=Number((u-35n)/2n);if(f>0)m.chainId=f;else if(u!==27n&&u!==28n)throw new de({v:u});return m.v=u,m.s=l,m.r=d,m.yParity=u%2n===0n?1:0,m}function ct(t){return Bt(`0x${t.slice(4)}`,"hex")}function ut(t){const e=[];for(let a=0;a<t.length;a++){const[n,r]=t[a];if(!me(n,{strict:!1}))throw new le({address:n});e.push({address:n,storageKeys:r.map(s=>ia(s)?s:Ge(s))})}return e}function Qc(t){const e=[];for(let a=0;a<t.length;a++){const[n,r,s,o,i,c]=t[a];e.push({address:r,chainId:n==="0x"?0:C(n),nonce:s==="0x"?0:C(s),...V([o,i,c])})}return e}function V(t){const e=t.slice(-3),a=e[0]==="0x"?0n:x(e[0]);if(a!==0n&&a!==1n)throw new fe({yParity:a});const n=a===0n?27n:28n;return{r:xt(e[1],{size:32}),s:xt(e[2],{size:32}),v:n,yParity:n===27n?0:1}}function It(t){return!t||typeof t!="object"||!("BYTES_PER_ELEMENT"in t)?!1:t.BYTES_PER_ELEMENT===1&&t.constructor.name==="Uint8Array"}function Xc(t){return t.opcode==="CREATE2"?ma(t):da(t)}function da(t){const e=F(_(t.from));let a=F(t.nonce);return a[0]===0&&(a=new Uint8Array([])),_(`0x${H(he([e,a],"bytes")).slice(26)}`)}function ma(t){const e=F(_(t.from)),a=He(It(t.salt)?t.salt:F(t.salt),{size:32}),n=(()=>"bytecodeHash"in t?It(t.bytecodeHash)?t.bytecodeHash:F(t.bytecodeHash):H(t.bytecode,"bytes"))();return _(pe(H(et([F("0xff"),e,a,n])),12))}function tu({batchGateways:t,ccipRequest:e=Et}){return{async request({data:a,sender:n,urls:r}){if(r.includes(Pc))return e({data:a,sender:n,urls:t});{const[s,o]=ye({abi:ft,functionName:"query",data:await e({data:ge({abi:ft,functionName:"query",args:[[{sender:n,data:a,urls:r}]]}),sender:n,urls:t})});if(s[0]){let i;try{const c=be({abi:[...ft,Sa],data:o[0]});if(c.errorName==="HttpError")i=new Oe({body:{message:c.args[1]},status:c.args[0],url:r.join(" | ")});else{const d=c.args[0];d&&(i=new Error(d))}}catch{}throw i??new Error("An unknown error occurred.")}return o[0]}}}}function eu(t,e){const a=e||"hex",n=jc(g(t,{strict:!1})?F(t):t);return a==="bytes"?n:$e(n)}function la(t){return Ct(t,-32)===mo}function fa(t){return ko(t)}function au(t){if(!la(t))return{signature:t};const[e,a,n]=St([{type:"address"},{type:"bytes"},{type:"bytes"}],t);return{address:e,data:a,signature:n}}function nu(t){if(!fa(t))return{signature:t};const{authorization:e,to:a,...n}=Lo(t);return{authorization:{address:e.address,chainId:e.chainId,nonce:Number(e.nonce),r:E(e.r,{size:32}),s:E(e.s,{size:32}),yParity:e.yParity},...a?{address:a}:{},...n}}async function ha({message:t,signature:e}){return j({hash:Ve(t),signature:e})}async function pa(t){const{domain:e,message:a,primaryType:n,signature:r,types:s}=t;return j({hash:We({domain:e,message:a,primaryType:n,types:s}),signature:r})}function ru(t){const{address:e,data:a,signature:n,to:r="hex"}=t,s=zo({authorization:{address:t.authorization.address,chainId:t.authorization.chainId,nonce:BigInt(t.authorization.nonce),r:BigInt(t.authorization.r),s:BigInt(t.authorization.s),yParity:t.authorization.yParity},data:a,signature:n,to:e});return r==="hex"?s:D(s)}async function su({address:t,hash:e,signature:a}){return st(_(t),await j({hash:e,signature:a}))}async function ou({address:t,message:e,signature:a}){return st(_(t),await ha({message:e,signature:a}))}async function iu(t){const{address:e,domain:a,message:n,primaryType:r,signature:s,types:o}=t;return st(_(e),await pa({domain:a,message:n,primaryType:r,signature:s,types:o}))}function cu(t,e="wei"){return Qo(t,e)}function uu(t,e="wei"){return Xo(t,e)}function du({abi:t,address:e,client:a}){const n=a,[r,s]=(()=>n?"public"in n&&"wallet"in n?[n.public,n.wallet]:"public"in n?[n.public,void 0]:"wallet"in n?[void 0,n.wallet]:[n,n]:[void 0,void 0])(),o=r!=null,i=s!=null,c={};let d=!1,l=!1,m=!1;for(const h of t)if(h.type==="function"?h.stateMutability==="view"||h.stateMutability==="pure"?d=!0:l=!0:h.type==="event"&&(m=!0),d&&l&&m)break;return o&&(d&&(c.read=new Proxy({},{get(h,u){return(...f)=>{const{args:y,options:w}=X(f);return S(r,Mo,"readContract")({abi:t,address:e,functionName:u,args:y,...w})}}})),l&&(c.simulate=new Proxy({},{get(h,u){return(...f)=>{const{args:y,options:w}=X(f);return S(r,Rt,"simulateContract")({abi:t,address:e,functionName:u,args:y,...w})}}})),m&&(c.createEventFilter=new Proxy({},{get(h,u){return(...f)=>{const y=t.find(b=>b.type==="event"&&b.name===u),{args:w,options:I}=yt(f,y);return S(r,lo,"createContractEventFilter")({abi:t,address:e,eventName:u,args:w,...I})}}}),c.getEvents=new Proxy({},{get(h,u){return(...f)=>{const y=t.find(b=>b.type==="event"&&b.name===u),{args:w,options:I}=yt(f,y);return S(r,fo,"getContractEvents")({abi:t,address:e,eventName:u,args:w,...I})}}}),c.watchEvent=new Proxy({},{get(h,u){return(...f)=>{const y=t.find(b=>b.type==="event"&&b.name===u),{args:w,options:I}=yt(f,y);return S(r,ho,"watchContractEvent")({abi:t,address:e,eventName:u,args:w,...I})}}}))),i&&l&&(c.write=new Proxy({},{get(h,u){return(...f)=>{const{args:y,options:w}=X(f);return S(s,$,"writeContract")({abi:t,address:e,functionName:u,args:y,...w})}}})),(o||i)&&l&&(c.estimateGas=new Proxy({},{get(h,u){return(...f)=>{const{args:y,options:w}=X(f);return S(r??s,_t,"estimateContractGas")({abi:t,address:e,functionName:u,args:y,...w,account:w.account??s.account})}}})),c.address=e,c.abi=t,c}function X(t){const e=t.length&&Array.isArray(t[0]),a=e?t[0]:[],n=(e?t[1]:t[0])??{};return{args:a,options:n}}function yt(t,e){let a=!1;Array.isArray(t[0])?a=!0:t.length===1?a=e.inputs.some(s=>s.indexed):t.length===2&&(a=!0);const n=a?t[0]:void 0,r=(a?t[1]:t[0])??{};return{args:n,options:r}}async function L(t,e){return L.inner($,t,e)}(function(t){async function e(o,i,c){return await o(i,{...c,...t.call(i,c)})}t.inner=e;function a(o,i){return Ae(mu(o,i))}t.call=a;async function n(o,i){return _t(o,{...at(i),...t.call(o,i)})}t.estimateGas=n;async function r(o,i){return Rt(o,{...at(i),...t.call(o,i)})}t.simulate=r;function s(o){const[i]=Pt({abi:k,logs:o,eventName:"Approval",strict:!0});if(!i)throw new Error("`Approval` event not found.");return i}t.extractEvent=s})(L||(L={}));function mu(t,e){const{amount:a,spender:n,token:r}=e,{address:s,decimals:o}=ot(t,{token:r});return{abi:k,address:s,args:[n,Ce(a,o)],functionName:"approve"}}async function lu(t,e){const{amount:a,token:n,throwOnReceiptRevert:r=!0}=e,{decimals:s}=ot(t,{token:n}),o=Se(a,s),i=await L.inner(Ut,t,{...e,throwOnReceiptRevert:r}),{args:c}=L.extractEvent(i.logs);return{...c,...o===void 0?{}:{decimals:o,formatted:qt(c.value,o)},receipt:i}}async function z(t,e){return z.inner($,t,e)}(function(t){async function e(o,i,c){return await o(i,{...c,...t.call(i,c)})}t.inner=e;function a(o,i){return Ae(fu(o,i))}t.call=a;async function n(o,i){return _t(o,{...at(i),...t.call(o,i)})}t.estimateGas=n;async function r(o,i){return Rt(o,{...at(i),...t.call(o,i)})}t.simulate=r;function s(o){const[i]=Pt({abi:k,logs:o,eventName:"Transfer",strict:!0});if(!i)throw new Error("`Transfer` event not found.");return i}t.extractEvent=s})(z||(z={}));function fu(t,e){const{amount:a,from:n,to:r,token:s}=e,{address:o,decimals:i}=ot(t,{token:s}),c=Ce(a,i);return n?{abi:k,address:o,args:[n,r,c],functionName:"transferFrom"}:{abi:k,address:o,args:[r,c],functionName:"transfer"}}async function hu(t,e){const{amount:a,token:n,throwOnReceiptRevert:r=!0}=e,{decimals:s}=ot(t,{token:n}),o=Se(a,s),i=await z.inner(Ut,t,{...e,throwOnReceiptRevert:r}),{args:c}=z.extractEvent(i.logs);return{...c,...o===void 0?{}:{decimals:o,formatted:qt(c.value,o)},receipt:i}}async function pu(t,{hash:e}){await t.request({method:`${t.mode}_dropTransaction`,params:[e]})}async function yu(t){return t.request({method:`${t.mode}_dumpState`})}async function gu(t){return t.mode==="ganache"?await t.request({method:"eth_mining"}):await t.request({method:`${t.mode}_getAutomine`})}async function bu(t){return await t.request({method:"txpool_content"})}async function wu(t){const{pending:e,queued:a}=await t.request({method:"txpool_status"});return{pending:C(e),queued:C(a)}}async function xu(t,{address:e}){await t.request({method:`${t.mode}_impersonateAccount`,params:[e]})}async function Eu(t,{seconds:e}){return await t.request({method:"evm_increaseTime",params:[E(e)]})}async function Iu(t){return await t.request({method:"txpool_inspect"})}async function Tu(t,{state:e}){await t.request({method:`${t.mode}_loadState`,params:[e]})}async function vu(t,{blocks:e,interval:a}){t.mode==="ganache"?await t.request({method:"evm_mine",params:[{blocks:E(e)}]}):await t.request({method:`${t.mode}_mine`,params:[E(e),E(a||0)]})}async function Au(t){await t.request({method:`${t.mode}_removeBlockTimestampInterval`})}async function Cu(t,{blockNumber:e,jsonRpcUrl:a}={}){await t.request({method:`${t.mode}_reset`,params:[{forking:{blockNumber:Number(e),jsonRpcUrl:a}}]})}async function Su(t,{id:e}){await t.request({method:"evm_revert",params:[e]})}async function Pu(t,e){var I,b,v;const{accessList:a,data:n,from:r,gas:s,gasPrice:o,maxFeePerGas:i,maxPriorityFeePerGas:c,nonce:d,to:l,value:m,...h}=e,u=(v=(b=(I=t.chain)==null?void 0:I.formatters)==null?void 0:b.transactionRequest)==null?void 0:v.format,y=(u||rt)({...oe(h,{format:u}),accessList:a,data:n,from:r,gas:s,gasPrice:o,maxFeePerGas:i,maxPriorityFeePerGas:c,nonce:d,to:l,value:m},"sendUnsignedTransaction");return await t.request({method:"eth_sendUnsignedTransaction",params:[y]})}async function Ru(t,e){t.mode==="ganache"?e?await t.request({method:"miner_start"}):await t.request({method:"miner_stop"}):await t.request({method:"evm_setAutomine",params:[e]})}async function _u(t,{address:e,value:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountBalance",params:[e,E(a)]}):await t.request({method:`${t.mode}_setBalance`,params:[e,E(a)]})}async function Fu(t,{gasLimit:e}){await t.request({method:"evm_setBlockGasLimit",params:[E(e)]})}async function qu(t,{interval:e}){const a=(()=>t.mode==="hardhat"?e*1e3:e)();await t.request({method:`${t.mode}_setBlockTimestampInterval`,params:[a]})}async function Uu(t,{address:e,bytecode:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountCode",params:[e,a]}):await t.request({method:`${t.mode}_setCode`,params:[e,a]})}async function Bu(t,{address:e}){await t.request({method:`${t.mode}_setCoinbase`,params:[e]})}async function Nu(t,{interval:e}){const a=(()=>t.mode==="hardhat"?e*1e3:e)();await t.request({method:"evm_setIntervalMining",params:[a]})}async function ku(t,e){await t.request({method:`${t.mode}_setLoggingEnabled`,params:[e]})}async function Lu(t,{gasPrice:e}){await t.request({method:`${t.mode}_setMinGasPrice`,params:[E(e)]})}async function zu(t,{baseFeePerGas:e}){await t.request({method:`${t.mode}_setNextBlockBaseFeePerGas`,params:[E(e)]})}async function Mu(t,{timestamp:e}){await t.request({method:"evm_setNextBlockTimestamp",params:[E(e)]})}async function Du(t,{address:e,nonce:a}){await t.request({method:`${t.mode}_setNonce`,params:[e,E(a)]})}async function Gu(t,e){await t.request({method:`${t.mode}_setRpcUrl`,params:[e]})}async function Hu(t,{address:e,index:a,value:n}){await t.request({method:`${t.mode}_setStorageAt`,params:[e,typeof a=="number"?E(a):a,n]})}async function Ou(t){return await t.request({method:"evm_snapshot"})}async function $u(t,{address:e}){await t.request({method:`${t.mode}_stopImpersonatingAccount`,params:[e]})}function ya({mode:t}){return e=>{const a=e.extend(()=>({mode:t}));return{dropTransaction:n=>pu(a,n),dumpState:()=>yu(a),getAutomine:()=>gu(a),getTxpoolContent:()=>bu(a),getTxpoolStatus:()=>wu(a),impersonateAccount:n=>xu(a,n),increaseTime:n=>Eu(a,n),inspectTxpool:()=>Iu(a),loadState:n=>Tu(a,n),mine:n=>vu(a,n),removeBlockTimestampInterval:()=>Au(a),reset:n=>Cu(a,n),revert:n=>Su(a,n),sendUnsignedTransaction:n=>Pu(a,n),setAutomine:n=>Ru(a,n),setBalance:n=>_u(a,n),setBlockGasLimit:n=>Fu(a,n),setBlockTimestampInterval:n=>qu(a,n),setCode:n=>Uu(a,n),setCoinbase:n=>Bu(a,n),setIntervalMining:n=>Nu(a,n),setLoggingEnabled:n=>ku(a,n),setMinGasPrice:n=>Lu(a,n),setNextBlockBaseFeePerGas:n=>zu(a,n),setNextBlockTimestamp:n=>Mu(a,n),setNonce:n=>Du(a,n),setRpcUrl:n=>Gu(a,n),setStorageAt:n=>Hu(a,n),snapshot:()=>Ou(a),stopImpersonatingAccount:n=>$u(a,n)}}}function ju(t){const{key:e="test",name:a="Test Client",mode:n}=t;return Ft({...t,key:e,name:a,type:"testClient"}).extend(s=>({mode:n,...ya({mode:n})(s)}))}async function Vu(t,{chain:e}){const{id:a,name:n,nativeCurrency:r,rpcUrls:s,blockExplorers:o}=e;await t.request({method:"wallet_addEthereumChain",params:[{chainId:E(a),chainName:n,nativeCurrency:r,rpcUrls:s.default.http,blockExplorerUrls:o?Object.values(o).map(({url:i})=>i):void 0}]},{dedupe:!0,retryCount:0})}function Wu(t,e){const{abi:a,args:n,bytecode:r,...s}=e,o=we({abi:a,args:n,bytecode:r});return xe(t,{...s,...s.authorizationList?{to:null}:{},data:o})}async function Ku(t){var a;return((a=t.account)==null?void 0:a.type)==="local"?[t.account.address]:(await t.request({method:"eth_accounts"},{dedupe:!0})).map(n=>Ee(n))}async function Ju(t,e={}){const{account:a=t.account,chainId:n}=e,r=a?O(a):void 0,s=n?[r==null?void 0:r.address,[E(n)]]:[r==null?void 0:r.address],o=await t.request({method:"wallet_getCapabilities",params:s}),i={};for(const[c,d]of Object.entries(o)){i[Number(c)]={};for(let[l,m]of Object.entries(d))l==="addSubAccount"&&(l="unstable_addSubAccount"),i[Number(c)][l]=m}return typeof n=="number"?i[n]:i}async function Yu(t){return await t.request({method:"wallet_getPermissions"},{dedupe:!0})}async function Zu(t){return(await t.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(a=>_(a))}async function Qu(t,e){return t.request({method:"wallet_requestPermissions",params:[e]},{retryCount:0})}async function Xu(t,e){const{chain:a=t.chain}=e,n=e.timeout??Math.max(((a==null?void 0:a.blockTime)??0)*3,5e3),r=await S(t,Pe,"sendCalls")(e);return await S(t,Re,"waitForCallsStatus")({...e,id:r.id,timeout:n})}async function td(t,e){const{id:a}=e;await t.request({method:"wallet_showCallsStatus",params:[a]})}async function ed(t,e){const{account:a=t.account}=e;if(!a)throw new nt({docsPath:"/docs/eip7702/signAuthorization"});const n=O(a);if(!n.signAuthorization)throw new tt({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:n.type});const r=await _e(t,e);return n.signAuthorization(r)}async function ad(t,e){var d,l,m,h;const{account:a=t.account,chain:n=t.chain,...r}=e;if(!a)throw new nt({docsPath:"/docs/actions/wallet/signTransaction"});const s=O(a);Tt({account:s,...e});const o=await S(t,vt,"getChainId")({});n!==null&&At({currentChainId:o,chain:n});const i=(n==null?void 0:n.formatters)||((d=t.chain)==null?void 0:d.formatters),c=((l=i==null?void 0:i.transactionRequest)==null?void 0:l.format)||rt;return s.signTransaction?s.signTransaction({...r,account:s,chainId:o},{serializer:(h=(m=t.chain)==null?void 0:m.serializers)==null?void 0:h.transaction}):await t.request({method:"eth_signTransaction",params:[{...c({...r,account:s},"signTransaction"),chainId:E(o),from:s.address}]},{retryCount:0})}async function nd(t,e){const{account:a=t.account,domain:n,message:r,primaryType:s}=e;if(!a)throw new nt({docsPath:"/docs/actions/wallet/signTypedData"});const o=O(a),i={EIP712Domain:Ke({domain:n}),...e.types};if(Je({domain:n,message:r,primaryType:s,types:i}),o.signTypedData)return o.signTypedData({domain:n,message:r,primaryType:s,types:i});const c=Ye({domain:n,message:r,primaryType:s,types:i});return t.request({method:"eth_signTypedData_v4",params:[o.address,c]},{retryCount:0})}async function rd(t,{id:e}){await t.request({method:"wallet_switchEthereumChain",params:[{chainId:E(e)}]},{retryCount:0})}async function sd(t,e){return await t.request({method:"wallet_watchAsset",params:e},{retryCount:0})}function ga(t){return{addChain:e=>Vu(t,e),deployContract:e=>Wu(t,e),fillTransaction:e=>Pa(t,e),getAddresses:()=>Ku(t),getCallsStatus:e=>po(t,e),getCapabilities:e=>Ju(t,e),getChainId:()=>vt(t),getPermissions:()=>Yu(t),prepareAuthorization:e=>_e(t,e),prepareTransactionRequest:e=>ie(t,e),requestAddresses:()=>Zu(t),requestPermissions:e=>Qu(t,e),sendCalls:e=>Pe(t,e),sendCallsSync:e=>Xu(t,e),sendRawTransaction:e=>Ra(t,e),sendRawTransactionSync:e=>ve(t,e),sendTransaction:e=>xe(t,e),sendTransactionSync:e=>sa(t,e),showCallsStatus:e=>td(t,e),signAuthorization:e=>ed(t,e),signMessage:e=>Vo(t,e),signTransaction:e=>ad(t,e),signTypedData:e=>nd(t,e),switchChain:e=>rd(t,e),waitForCallsStatus:e=>Re(t,e),watchAsset:e=>sd(t,e),writeContract:e=>$(t,e),writeContractSync:e=>Ut(t,e),token:{approve:Z(t,L),approveSync:Z(t,lu),transfer:Z(t,z),transferSync:Z(t,hu)}}}function od(t){const{key:e="wallet",name:a="Wallet Client",transport:n}=t;return Ft({...t,key:e,name:a,transport:n,type:"walletClient"}).extend(ga)}function id(t,e={}){const{keepAlive:a,key:n="webSocket",methods:r,name:s="WebSocket JSON-RPC",reconnect:o,retryDelay:i}=e;return({chain:c,retryCount:d,timeout:l})=>{var y;const m=e.retryCount??d,h=l??e.timeout??1e4,u=t||((y=c==null?void 0:c.rpcUrls.default.webSocket)==null?void 0:y[0]),f={keepAlive:a,reconnect:o};if(!u)throw new Ze;return Qe({key:n,methods:r,name:s,async request({method:w,params:I}){const b={method:w,params:I},v=await ht(u,f),{error:P,result:T}=await v.requestAsync({body:b,timeout:h});if(P)throw new je({body:b,error:P,url:u});return T},retryCount:m,retryDelay:i,timeout:h,type:"webSocket"},{getSocket(){return Sc(u)},getRpcClient(){return ht(u,f)},async subscribe({params:w,onData:I,onError:b}){const v=await ht(u,f),{result:P}=await new Promise((T,p)=>v.request({body:{method:"eth_subscribe",params:w},onError(A){p(A),b==null||b(A)},onResponse(A){if(A.error){p(A.error),b==null||b(A.error);return}if(typeof A.id=="number"){T(A);return}A.method==="eth_subscription"&&I(A.params)}}));return{subscriptionId:P,async unsubscribe(){return new Promise(T=>v.request({body:{method:"eth_unsubscribe",params:[P]},onResponse:T}))}}}})}}const cd={gwei:9,wei:18},ud={ether:-9,wei:9},dd={ether:-18,gwei:-9};class md extends it{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}class ld extends Error{constructor(e,a){super(a),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=e,this.details=a}}const gt="/docs/contract/decodeDeployData";function fd(t){const{abi:e,bytecode:a,data:n}=t;if(n===a)return{bytecode:a};const r=e.find(o=>"type"in o&&o.type==="constructor");if(!r)throw new Ie({docsPath:gt});if(!("inputs"in r))throw new wt({docsPath:gt});if(!r.inputs||r.inputs.length===0)throw new wt({docsPath:gt});return{args:St(r.inputs,`0x${n.replace(a,"")}`),bytecode:a}}function hd(t){const e=t.to??(typeof t.blobs[0]=="string"?"hex":"bytes"),a=typeof t.blobs[0]=="string"?t.blobs.map(i=>D(i)):t.blobs,n=a.reduce((i,c)=>i+c.length,0),r=bt(new Uint8Array(n));let s=!0;for(const[i,c]of a.entries()){const d=bt(c),l=i===a.length-1;for(;s&&d.position<c.length;){d.incrementPosition(1);let m=31;c.length-d.position<31&&(m=c.length-d.position);for(const h in Array.from({length:m})){const u=d.readByte();if(l&&u===128&&!d.inspectBytes(d.remaining).includes(128)){s=!1;break}r.pushByte(u)}}}const o=r.bytes.slice(0,r.position);return e==="hex"?N(o):o}function pd(t){const{sidecars:e,version:a}=t,n=t.to??(typeof e[0].blob=="string"?"hex":"bytes"),r=[];for(const{commitment:s}of e)r.push(Te({commitment:s,to:n,version:a}));return r}const yd=2147483648;function gd(t){if(t===1)return 60n;if(t>=yd||t<0)throw new Fe({chainId:t});return BigInt((2147483648|t)>>>0)}function ba({blobToKzgCommitment:t,computeBlobKzgProof:e}){return{blobToKzgCommitment:t,computeBlobKzgProof:e}}function bd(t,e){try{t.loadTrustedSetup(e)}catch(a){const n=a;if(!n.message.includes("trusted setup is already loaded"))throw n}return ba(t)}function wd({r:t,yParityAndS:e}){const a=D(e),n=a[0]&128?1:0,r=a;return n===1&&(r[0]&=127),{r:t,s:N(r),yParity:n}}function ne(t){const{r:e,s:a}=Xe.Signature.fromCompact(t.slice(2,130));return{r:E(e,{size:32}),yParityAndS:E(a,{size:32})}}async function xd(t){const{serializedTransaction:e,signature:a}=t,n=ua(e),r=a??{r:n.r,s:n.s,v:n.v,yParity:n.yParity},s=Ne({...n,r:void 0,s:void 0,v:void 0,yParity:void 0,sidecars:void 0});return await j({hash:H(s),signature:r})}function re({r:t,yParityAndS:e}){return`0x${new Xe.Signature(x(t),x(e)).toCompactHex()}`}function Ed(t){const{r:e,s:a,v:n,yParity:r}=t,s=Number(r??n-27n);let o=a;if(s===1){const i=D(a);i[0]|=128,o=N(i)}return{r:e,yParityAndS:o}}const Ud=Object.freeze(Object.defineProperty({__proto__:null,AbiConstructorNotFoundError:Ie,AbiConstructorParamsNotFoundError:wt,AbiDecodingDataSizeInvalidError:_a,AbiDecodingDataSizeTooSmallError:Fa,AbiDecodingZeroDataError:qa,AbiEncodingArrayLengthMismatchError:Ua,AbiEncodingBytesSizeMismatchError:Ba,AbiEncodingLengthMismatchError:Na,AbiErrorInputsNotFoundError:ka,AbiErrorNotFoundError:La,AbiErrorSignatureNotFoundError:za,AbiEventNotFoundError:Ma,AbiEventSignatureEmptyTopicsError:Da,AbiEventSignatureNotFoundError:Ga,AbiFunctionNotFoundError:Ha,AbiFunctionOutputsNotFoundError:Oa,AbiFunctionSignatureNotFoundError:$a,AccountStateConflictError:ja,AtomicReadyWalletRejectedUpgradeError:ti,AtomicityNotSupportedError:ei,BaseError:it,BaseFeeScalarError:Va,BlockNotFoundError:Wa,BundleFailedError:yo,BundleTooLargeError:ai,BytesSizeMismatchError:Ka,CallExecutionError:Ja,ChainDisconnectedError:ni,ChainDoesNotSupportContract:Ya,ChainMismatchError:Za,ChainNotFoundError:Qa,CircularReferenceError:Xa,ClientChainNotConfiguredError:tn,ContractFunctionExecutionError:en,ContractFunctionRevertedError:an,ContractFunctionZeroDataError:nn,CounterfactualDeploymentFailedError:rn,DecodeLogDataMismatch:sn,DecodeLogTopicsMismatch:on,DuplicateIdError:ri,EIP1193ProviderRpcError:ld,Eip1559FeesNotSupportedError:cn,EnsAvatarInvalidNftUriError:go,EnsAvatarUnsupportedNamespaceError:bo,EnsAvatarUriResolutionError:wo,EnsInvalidChainIdError:Fe,EstimateGasExecutionError:un,ExecutionRevertedError:si,FeeCapTooHighError:oi,FeeCapTooLowError:ii,FeeConflictError:dn,FeePayerNonceMismatchError:mn,FilterTypeNotSupportedError:xo,HttpRequestError:Oe,InsufficientFundsError:ci,IntegerOutOfRangeError:ui,InternalRpcError:di,IntrinsicGasTooHighError:mi,IntrinsicGasTooLowError:li,InvalidAbiDecodingTypeError:ln,InvalidAbiEncodingTypeError:fn,InvalidAbiItemError:hn,InvalidAbiParameterError:se,InvalidAbiParametersError:pn,InvalidAbiTypeParameterError:yn,InvalidAddressError:le,InvalidArrayError:gn,InvalidBytesBooleanError:fi,InvalidChainIdError:bn,InvalidDecimalNumberError:md,InvalidDefinitionTypeError:wn,InvalidDomainError:fc,InvalidFunctionModifierError:xn,InvalidHexBooleanError:hi,InvalidHexValueError:ke,InvalidInputRpcError:pi,InvalidLegacyVError:de,InvalidModifierError:En,InvalidParameterError:In,InvalidParamsRpcError:yi,InvalidParenthesisError:Tn,InvalidPrimaryTypeError:hc,InvalidRequestRpcError:gi,InvalidSerializableTransactionError:vn,InvalidSerializedTransactionError:M,InvalidSerializedTransactionTypeError:ce,InvalidSignatureError:An,InvalidStorageKeySizeError:Cn,InvalidStructSignatureError:Sn,InvalidStructTypeError:pc,InvalidTypedDataTypeError:yc,InvalidYParityError:fe,JsonRpcVersionUnsupportedError:bi,LimitExceededRpcError:wi,MaxFeePerGasTooLowError:Pn,MethodNotFoundRpcError:xi,MethodNotSupportedRpcError:Ei,NonceMaxValueError:Ii,NonceTooHighError:Ti,NonceTooLowError:vi,ParseRpcError:Ai,ProviderDisconnectedError:Ci,ProviderRpcError:Si,RawContractError:Rn,ResourceNotFoundRpcError:Pi,ResourceUnavailableRpcError:Ri,ResponseBodyTooLargeError:_i,RlpDepthLimitExceededError:ze,RlpListBoundaryExceededError:Me,RlpTrailingBytesError:Le,RpcError:Fi,RpcRequestError:je,SizeExceedsPaddingSizeError:qi,SizeOverflowError:Ui,SliceOffsetOutOfBoundsError:Bi,SocketClosedError:Ni,SolidityProtectedKeywordError:_n,StateAssignmentConflictError:Fn,SwitchChainError:ki,TimeoutError:Li,TipAboveFeeCapError:zi,TransactionExecutionError:qn,TransactionNotFoundError:Un,TransactionReceiptNotFoundError:Bn,TransactionRejectedRpcError:Mi,TransactionTypeNotSupportedError:Di,UnauthorizedProviderError:Gi,UnknownBundleIdError:Hi,UnknownNodeError:Oi,UnknownRpcError:$i,UnknownSignatureError:Nn,UnknownTypeError:kn,UnsupportedChainIdError:ji,UnsupportedNonOptionalCapabilityError:Vi,UnsupportedPackedAbiType:Ln,UnsupportedProviderMethodError:Wi,UrlRequiredError:Ze,UserRejectedRequestError:Ki,WaitForCallsStatusTimeoutError:Eo,WaitForTransactionReceiptTimeoutError:zn,WebSocketRequestError:Ji,assertCurrentChain:At,assertRequest:Tt,assertTransactionEIP1559:qe,assertTransactionEIP2930:Ue,assertTransactionLegacy:Be,blobsToCommitments:Mn,blobsToProofs:Dn,boolToBytes:Yi,boolToHex:Zi,bytesToBigInt:Gn,bytesToBool:Hn,bytesToHex:N,bytesToNumber:On,bytesToRlp:$n,bytesToString:jn,ccipFetch:Et,ccipReadTunnel:tu,ccipRequest:Et,checksumAddress:Ee,commitmentToVersionedHash:Te,commitmentsToVersionedHashes:Vn,compactSignatureToHex:re,compactSignatureToSignature:wd,concat:et,concatBytes:Wn,concatHex:Kn,createClient:Ft,createNonceManager:Io,createPublicClient:To,createTestClient:ju,createTransport:Qe,createWalletClient:od,custom:Wo,decodeAbiParameters:St,decodeDeployData:fd,decodeErrorResult:be,decodeEventLog:Jn,decodeFunctionData:Rc,decodeFunctionResult:ye,defineBlock:Yn,defineChain:Do,defineKzg:ba,defineTransaction:Zn,defineTransactionReceipt:Qn,defineTransactionRequest:Xn,deploylessCallViaBytecodeBytecode:tr,deploylessCallViaFactoryBytecode:er,domainSeparator:gc,encodeAbiParameters:ar,encodeDeployData:we,encodeErrorResult:_c,encodeEventTopics:vo,encodeFunctionData:ge,encodeFunctionResult:Fc,encodePacked:Ao,erc1155Abi:Qi,erc20Abi:k,erc20Abi_bytes32:Xi,erc4626Abi:tc,erc6492SignatureValidatorAbi:Xt,erc6492SignatureValidatorByteCode:Wt,erc721Abi:ec,ethAddress:Co,etherUnits:cd,extendSchema:Go,extractChain:Nc,fallback:Ic,formatBlock:nr,formatEther:rr,formatGwei:ac,formatLog:sr,formatTransaction:or,formatTransactionReceipt:ir,formatTransactionRequest:rt,formatUnits:qt,fromBlobs:hd,fromBytes:cr,fromHex:nc,fromRlp:Bt,getAbiItem:ur,getAddress:_,getChainContractAddress:dr,getContract:du,getContractAddress:Xc,getContractError:mr,getCreate2Address:ma,getCreateAddress:da,getEventSelector:Kt,getEventSignature:Y,getFunctionSelector:Jt,getFunctionSignature:Y,getSerializedTransactionType:ca,getTransactionType:lr,getTypesForEIP712Domain:Ke,gweiUnits:ud,hashDomain:bc,hashMessage:Ve,hashStruct:wc,hashTypedData:We,hexToBigInt:x,hexToBool:rc,hexToBytes:D,hexToCompactSignature:ne,hexToNumber:C,hexToRlp:fr,hexToSignature:Zt,hexToString:sc,http:Tc,isAddress:me,isAddressEqual:st,isBytes:It,isErc6492Signature:la,isErc8010Signature:fa,isHash:ia,isHex:g,keccak256:H,labelhash:So,maxInt104:hr,maxInt112:pr,maxInt120:yr,maxInt128:gr,maxInt136:br,maxInt144:wr,maxInt152:xr,maxInt16:Er,maxInt160:Ir,maxInt168:Tr,maxInt176:vr,maxInt184:Ar,maxInt192:Cr,maxInt200:Sr,maxInt208:Pr,maxInt216:Rr,maxInt224:_r,maxInt232:Fr,maxInt24:qr,maxInt240:Ur,maxInt248:Br,maxInt256:Nr,maxInt32:kr,maxInt40:Lr,maxInt48:zr,maxInt56:Mr,maxInt64:Dr,maxInt72:Gr,maxInt8:Hr,maxInt80:Or,maxInt88:$r,maxInt96:jr,maxUint104:Vr,maxUint112:Wr,maxUint120:Kr,maxUint128:Jr,maxUint136:Yr,maxUint144:Zr,maxUint152:Qr,maxUint16:Xr,maxUint160:ts,maxUint168:es,maxUint176:as,maxUint184:ns,maxUint192:rs,maxUint200:ss,maxUint208:os,maxUint216:is,maxUint224:cs,maxUint232:us,maxUint24:ds,maxUint240:ms,maxUint248:ls,maxUint256:fs,maxUint32:hs,maxUint40:ps,maxUint48:ys,maxUint56:gs,maxUint64:bs,maxUint72:ws,maxUint8:xs,maxUint80:Es,maxUint88:Is,maxUint96:Ts,minInt104:vs,minInt112:As,minInt120:Cs,minInt128:Ss,minInt136:Ps,minInt144:Rs,minInt152:_s,minInt16:Fs,minInt160:qs,minInt168:Us,minInt176:Bs,minInt184:Ns,minInt192:ks,minInt200:Ls,minInt208:zs,minInt216:Ms,minInt224:Ds,minInt232:Gs,minInt24:Hs,minInt240:Os,minInt248:$s,minInt256:js,minInt32:Vs,minInt40:Ws,minInt48:Ks,minInt56:Js,minInt64:Ys,minInt72:Zs,minInt8:Qs,minInt80:Xs,minInt88:to,minInt96:eo,multicall3Abi:oc,namehash:Po,nonceManager:Ro,numberToBytes:ic,numberToHex:E,offchainLookup:qc,offchainLookupAbiItem:Uc,offchainLookupSignature:Bc,pad:He,padBytes:cc,padHex:xt,parseAbi:ao,parseAbiItem:Ho,parseAbiParameter:kc,parseAbiParameters:Oo,parseCompactSignature:ne,parseErc6492Signature:au,parseErc8010Signature:nu,parseEther:cu,parseEventLogs:Pt,parseGwei:uu,parseSignature:Zt,parseTransaction:ua,parseUnits:Ko,prepareEncodeFunctionData:no,presignMessagePrefix:xc,publicActions:_o,recoverAddress:j,recoverMessageAddress:ha,recoverPublicKey:ro,recoverTransactionAddress:xd,recoverTypedDataAddress:pa,ripemd160:eu,rpcSchema:Jo,rpcTransactionType:so,serializeAccessList:$o,serializeCompactSignature:re,serializeErc6492Signature:Fo,serializeErc8010Signature:ru,serializeSignature:Qt,serializeTransaction:Ne,serializeTypedData:Ye,setErrorConfig:uc,setupKzg:bd,sha256:oo,shouldThrow:vc,sidecarsToVersionedHashes:pd,signatureToCompactSignature:Ed,signatureToHex:Qt,size:De,slice:pe,sliceBytes:io,sliceHex:Ct,stringToBytes:dc,stringToHex:mc,stringify:lc,testActions:ya,toBlobSidecars:ue,toBlobs:co,toBytes:F,toCoinType:gd,toEventHash:Yt,toEventSelector:Kt,toEventSignature:Y,toFunctionHash:Yt,toFunctionSelector:Jt,toFunctionSignature:Y,toHex:$e,toPrefixedMessage:Ec,toRlp:he,transactionType:uo,trim:Ge,universalSignatureValidatorAbi:Xt,universalSignatureValidatorByteCode:Wt,validateTypedData:Je,verifyHash:su,verifyMessage:ou,verifyTypedData:iu,walletActions:ga,webSocket:id,weiUnits:dd,withCache:Yo,withRetry:Ac,withTimeout:Cc,zeroAddress:qo,zeroHash:Uo},Symbol.toStringTag,{value:"Module"}));export{Ud as _};
1
+ import{az as Ot,av as xa,aw as Ea,bP as se,aB as $t,bQ as Ia,bR as Ta,bS as J,x as jt,af as nt,by as Tt,b6 as va,a8 as S,bJ as vt,bT as At,bz as rt,bA as oe,a as et,bo as Vt,bf as ie,bU as Aa,bV as tt,bt as Ca,a1 as O,bh as $,bW as bt,bv as Ct,bX as ce,bY as M,as as ue,at as de,q as me,r as le,bZ as fe,a0 as _,o as H,ao as he,s as pe,ae as ye,ad as ge,d as be,n as Sa,b as St,b8 as j,i as st,a3 as Pt,ba as we,bg as xe,bi as Ee,bN as Pa,bO as Ra,b_ as Ie,b$ as wt,c0 as Te,c1 as _a,c2 as Fa,bC as qa,c3 as Ua,c4 as Ba,bp as Na,j as ka,h as La,c5 as za,bj as Ma,c6 as Da,c7 as Ga,l as Ha,m as Oa,A as $a,c8 as ja,c9 as Va,ab as Wa,B as Ka,bb as Ja,ca as Ya,cb as Za,cc as Qa,cd as Xa,ce as tn,bc as en,bw as an,cf as nn,cg as rn,bm as sn,bn as on,ch as cn,ci as un,cj as dn,ck as mn,cl as ln,cm as fn,ax as hn,aA as pn,cn as yn,I as gn,ag as bn,co as wn,cp as xn,cq as En,cr as In,cs as Tn,ct as vn,cu as An,am as Cn,cv as Sn,cw as Pn,bD as Rn,cx as _n,cy as Fn,cz as qn,a4 as Un,a6 as Bn,cA as Nn,cB as kn,br as Ln,a9 as zn,ap as Mn,ar as Dn,cC as Gn,cD as Hn,cE as On,cF as $n,cG as jn,aq as Vn,cH as Wn,k as Kn,bl as Jn,cI as Yn,cJ as Zn,cK as Qn,cL as Xn,bI as tr,cM as er,e as ar,bd as Wt,bG as nr,cN as rr,a2 as sr,a5 as or,a7 as ir,cO as cr,g as ur,bx as dr,b7 as mr,bk as Kt,cP as Y,t as Jt,an as lr,cQ as fr,cR as hr,cS as pr,cT as yr,cU as gr,cV as br,cW as wr,cX as xr,cY as Er,cZ as Ir,c_ as Tr,c$ as vr,d0 as Ar,d1 as Cr,d2 as Sr,d3 as Pr,d4 as Rr,d5 as _r,d6 as Fr,d7 as qr,d8 as Ur,d9 as Br,da as Nr,db as kr,dc as Lr,dd as zr,de as Mr,df as Dr,dg as Gr,dh as Hr,di as Or,dj as $r,dk as jr,dl as Vr,dm as Wr,dn as Kr,dp as Jr,dq as Yr,dr as Zr,ds as Qr,dt as Xr,du as ts,dv as es,dw as as,dx as ns,dy as rs,dz as ss,dA as os,dB as is,dC as cs,dD as us,dE as ds,dF as ms,dG as ls,ah as fs,dH as hs,dI as ps,dJ as ys,dK as gs,dL as bs,dM as ws,dN as xs,dO as Es,dP as Is,dQ as Ts,dR as vs,dS as As,dT as Cs,dU as Ss,dV as Ps,dW as Rs,dX as _s,dY as Fs,dZ as qs,d_ as Us,d$ as Bs,e0 as Ns,e1 as ks,e2 as Ls,e3 as zs,e4 as Ms,e5 as Ds,e6 as Gs,e7 as Hs,e8 as Os,e9 as $s,ea as js,eb as Vs,ec as Ws,ed as Ks,ee as Js,ef as Ys,eg as Zs,eh as Qs,ei as Xs,ej as to,ek as eo,el as ao,em as no,en as ro,eo as so,ep as oo,eq as io,er as co,es as Yt,et as uo}from"./writeContract-03e44e49.js";import{s as ve,e as mo,a as Rt,c as lo,g as fo,w as ho,b as _t,d as Ae,p as at,r as ot,t as Ce,f as Se,h as Pe,i as Re,j as _e,k as po,E as Fe,B as yo,l as go,m as bo,n as wo,F as xo,W as Eo,o as Io,q as To,u as vo,v as Ao,x as Co,y as Zt,z as So,A as Po,C as Ro,D as _o,G as Fo,H as qo,I as Uo}from"./parseSignature-b975d9a6.js";import{h as Bo,i as No,j as qe,k as Ue,l as Be,m as ko,u as Lo,w as zo,r as Mo,s as Ne,n as Do,o as Go,p as Ho,q as Oo,t as $o,x as Qt}from"./verifyHash-b21b75c2.js";import{w as jo,a as Ft,s as Vo,m as Z,c as Wo,p as Ko,r as Jo,n as Yo}from"./custom-3c5e7814.js";import{L as Zo,B as it,aj as ke,a4 as D,ak as Le,al as ze,f as N,am as Me,b as g,h as De,a2 as C,Y as x,a3 as Ge,an as xt,a9 as F,aa as He,d as ft,H as Oe,t as $e,n as E,ao as Qo,ap as Xo,ai as k,R as je,p as ti,A as ei,q as ai,C as ni,D as ri,X as si,a0 as oi,aq as ii,ar as ci,as as ui,F as di,at as mi,au as li,av as fi,aw as hi,I as pi,G as yi,N as gi,J as bi,y as wi,K as xi,M as Ei,ax as Ii,ay as Ti,az as vi,O as Ai,P as Ci,aA as Si,E as Pi,l as Ri,Q as _i,aB as Fi,aC as qi,aD as Ui,aE as Bi,S as Ni,k as ki,T as Li,a1 as zi,z as Mi,aF as Di,x as Gi,r as Hi,ah as Oi,m as $i,u as ji,v as Vi,w as Wi,U as Ki,W as Ji,aG as Yi,ab as Zi,aH as Qi,aI as Xi,aJ as tc,a6 as Xt,aK as ec,aL as ac,j as nc,a7 as rc,a8 as sc,$ as oc,aM as ic,aN as cc,aO as uc,ac as dc,e as mc,s as lc}from"./createBatchScheduler-7c9ada66.js";import{h as Ve,a as We,g as Ke,v as Je,s as Ye,I as fc,b as hc,c as pc,d as yc,e as gc,f as bc,i as wc,p as xc,t as Ec}from"./hashTypedData-03b693eb.js";import{f as qt,U as Ze,c as Qe,d as Ic,h as Tc,s as vc,a as Ac,w as Cc}from"./http-a4cf4808.js";import{g as Sc,a as ht}from"./compat-000e5801.js";import{l as Pc,d as Rc,e as _c,b as Fc}from"./localBatchGatewayRequest-ff5d42f6.js";import{ccipRequest as Et,offchainLookup as qc,offchainLookupAbiItem as Uc,offchainLookupSignature as Bc}from"./ccip-d88eddf3.js";import{s as Xe}from"./secp256k1-44255658.js";function Nc({chains:t,id:e}){return t.find(a=>a.id===e)}function kc(t){let e;if(typeof t=="string")e=Ot(t,{modifiers:$t});else{const a=xa(t),n=t.length;for(let r=0;r<n;r++){const s=t[r];if(!Ea(s)){e=Ot(s,{modifiers:$t,structs:a});break}}}if(!e)throw new se({param:t});return e}const Lc=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),ta=(()=>Uint8Array.from(new Array(16).fill(0).map((t,e)=>e)))(),zc=(()=>ta.map(t=>(9*t+5)%16))(),ea=(()=>{const a=[[ta],[zc]];for(let n=0;n<4;n++)for(let r of a)r.push(r[n].map(s=>Lc[s]));return a})(),aa=(()=>ea[0])(),na=(()=>ea[1])(),ra=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(t=>Uint8Array.from(t)),Mc=aa.map((t,e)=>t.map(a=>ra[e][a])),Dc=na.map((t,e)=>t.map(a=>ra[e][a])),Gc=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),Hc=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function te(t,e,a,n){return t===0?e^a^n:t===1?e&a|~e&n:t===2?(e|~a)^n:t===3?e&n|a&~n:e^(a|~n)}const Q=new Uint32Array(16);class Oc extends Ta{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:a,h2:n,h3:r,h4:s}=this;return[e,a,n,r,s]}set(e,a,n,r,s){this.h0=e|0,this.h1=a|0,this.h2=n|0,this.h3=r|0,this.h4=s|0}process(e,a){for(let u=0;u<16;u++,a+=4)Q[u]=e.getUint32(a,!0);let n=this.h0|0,r=n,s=this.h1|0,o=s,i=this.h2|0,c=i,d=this.h3|0,l=d,m=this.h4|0,h=m;for(let u=0;u<5;u++){const f=4-u,y=Gc[u],w=Hc[u],I=aa[u],b=na[u],v=Mc[u],P=Dc[u];for(let T=0;T<16;T++){const p=J(n+te(u,s,i,d)+Q[I[T]]+y,v[T])+m|0;n=m,m=d,d=J(i,10)|0,i=s,s=p}for(let T=0;T<16;T++){const p=J(r+te(f,o,c,l)+Q[b[T]]+w,P[T])+h|0;r=h,h=l,l=J(c,10)|0,c=o,o=p}}this.set(this.h1+i+l|0,this.h2+d+h|0,this.h3+m+r|0,this.h4+n+o|0,this.h0+s+c|0)}roundClean(){jt(Q)}destroy(){this.destroyed=!0,jt(this.buffer),this.set(0,0,0,0,0)}}const $c=Ia(()=>new Oc),jc=$c,pt=new Zo(128);async function sa(t,e){var Nt,kt,Lt,zt,Mt,Dt;const{account:a=t.account,assertChainId:n=!0,chain:r=t.chain,accessList:s,authorizationList:o,blobs:i,data:c,dataSuffix:d=typeof t.dataSuffix=="string"?t.dataSuffix:(Nt=t.dataSuffix)==null?void 0:Nt.value,gas:l,gasPrice:m,maxFeePerBlobGas:h,maxFeePerGas:u,maxPriorityFeePerGas:f,nonce:y,pollingInterval:w,throwOnReceiptRevert:I,type:b,value:v,...P}=e,T=e.timeout??Math.max(((r==null?void 0:r.blockTime)??0)*3,5e3);if(typeof a>"u")throw new nt({docsPath:"/docs/actions/wallet/sendTransactionSync"});const p=a?O(a):null;let A;try{Tt(e);const q=await(async()=>{if(e.to)return e.to;if(e.to!==null&&o&&o.length>0)return await va({authorization:o[0]}).catch(()=>{throw new it("`to` is required. Could not infer from `authorizationList`.")})})();if((p==null?void 0:p.type)==="json-rpc"||p===null){let G;r!==null&&(G=await S(t,vt,"getChainId")({}),n&&At({currentChainId:G,chain:r}));const W=(zt=(Lt=(kt=t.chain)==null?void 0:kt.formatters)==null?void 0:Lt.transactionRequest)==null?void 0:zt.format,K=(W||rt)({...oe(P,{format:W}),accessList:s,account:p,authorizationList:o,blobs:i,chainId:G,data:d?et([c??"0x",d]):c,gas:l,gasPrice:m,maxFeePerBlobGas:h,maxFeePerGas:u,maxPriorityFeePerGas:f,nonce:y,to:q,type:b,value:v},"sendTransaction"),U=pt.get(t.uid),R=U?"wallet_sendTransaction":"eth_sendTransaction",wa=await(async()=>{try{return await t.request({method:R,params:[K]},{retryCount:0})}catch(Ht){if(U===!1)throw Ht;const B=Ht;if(B.name==="InvalidInputRpcError"||B.name==="InvalidParamsRpcError"||B.name==="MethodNotFoundRpcError"||B.name==="MethodNotSupportedRpcError")return await t.request({method:"wallet_sendTransaction",params:[K]},{retryCount:0}).then(mt=>(pt.set(t.uid,!0),mt)).catch(mt=>{const lt=mt;throw lt.name==="MethodNotFoundRpcError"||lt.name==="MethodNotSupportedRpcError"?(pt.set(t.uid,!1),B):lt});throw B}})(),dt=await S(t,jo,"waitForTransactionReceipt")({checkReplacement:!1,hash:wa,pollingInterval:w,timeout:T});if(I&&dt.status==="reverted")throw new Vt({receipt:dt});return dt}if((p==null?void 0:p.type)==="local"){const G=(()=>{if(!p.nonceManager||typeof y<"u")return p.nonceManager;const U=p.nonceManager;return{consume(R){return A={address:R.address,chainId:R.chainId},U.consume(R)},get(R){return U.get(R)},increment(R){return U.increment(R)},reset(R){return U.reset(R)}}})(),W=await S(t,ie,"prepareTransactionRequest")({account:p,accessList:s,authorizationList:o,blobs:i,chain:r,data:d?et([c??"0x",d]):c,gas:l,gasPrice:m,maxFeePerBlobGas:h,maxFeePerGas:u,maxPriorityFeePerGas:f,nonce:y,nonceManager:G,parameters:[...Aa,"sidecars"],type:b,value:v,...P,to:q}),Gt=(Mt=r==null?void 0:r.serializers)==null?void 0:Mt.transaction,K=await p.signTransaction(W,{serializer:Gt});return await S(t,ve,"sendRawTransactionSync")({serializedTransaction:K,throwOnReceiptRevert:I,timeout:e.timeout})}throw(p==null?void 0:p.type)==="smart"?new tt({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new tt({docsPath:"/docs/actions/wallet/sendTransactionSync",type:p==null?void 0:p.type})}catch(q){throw q instanceof tt?q:(A&&!(q instanceof Vt)&&((Dt=p==null?void 0:p.nonceManager)==null||Dt.reset(A)),Ca(q,{...e,account:p,chain:e.chain||void 0}))}}async function Ut(t,e){return $.internal(t,sa,"sendTransactionSync",e)}const ee=1024;function Bt(t,e="hex"){const a=(()=>{if(typeof t=="string"){if(t.length>3&&t.length%2!==0)throw new ke(t);return D(t)}return t})(),n=bt(a,{recursiveReadLimit:Number.POSITIVE_INFINITY}),r=oa(n,e);if(n.position<n.bytes.length)throw new Le({count:n.bytes.length-n.position});return r}function oa(t,e="hex",a=0){if(a>=ee)throw new ze({limit:ee});if(t.bytes.length===0)return e==="hex"?N(t.bytes):t.bytes;const n=t.readByte();if(n<128&&t.decrementPosition(1),n<192){const s=ae(t,n,128),o=t.readBytes(s);return e==="hex"?N(o):o}const r=ae(t,n,192);return Vc(t,r,e,a+1)}function ae(t,e,a){if(a===128&&e<128)return 1;if(e<=a+55)return e-a;if(e===a+55+1)return t.readUint8();if(e===a+55+2)return t.readUint16();if(e===a+55+3)return t.readUint24();if(e===a+55+4)return t.readUint32();throw new it("Invalid RLP prefix")}function Vc(t,e,a,n){const r=t.position,s=[];for(;t.position-r<e;)s.push(oa(t,a,n));if(t.position-r!==e)throw new Me({consumed:t.position-r,declared:e});return s}function ia(t){return g(t)&&De(t)===32}function ca(t){const e=Ct(t,0,1);if(e==="0x04")return"eip7702";if(e==="0x03")return"eip4844";if(e==="0x02")return"eip1559";if(e==="0x01")return"eip2930";if(e!=="0x"&&C(e)>=192)return"legacy";throw new ce({serializedType:e})}function ua(t){const e=ca(t);return e==="eip1559"?Jc(t):e==="eip2930"?Yc(t):e==="eip4844"?Kc(t):e==="eip7702"?Wc(t):Zc(t)}function Wc(t){const e=ct(t),[a,n,r,s,o,i,c,d,l,m,h,u,f]=e;if(e.length!==10&&e.length!==13)throw new M({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:o,to:i,value:c,data:d,accessList:l,authorizationList:m,...e.length>9?{v:h,r:u,s:f}:{}},serializedTransaction:t,type:"eip7702"});const y={chainId:C(a),type:"eip7702"};return g(i)&&i!=="0x"&&(y.to=i),g(o)&&o!=="0x"&&(y.gas=x(o)),g(d)&&d!=="0x"&&(y.data=d),g(n)&&(y.nonce=n==="0x"?0:C(n)),g(c)&&c!=="0x"&&(y.value=x(c)),g(s)&&s!=="0x"&&(y.maxFeePerGas=x(s)),g(r)&&r!=="0x"&&(y.maxPriorityFeePerGas=x(r)),l.length!==0&&l!=="0x"&&(y.accessList=ut(l)),m.length!==0&&m!=="0x"&&(y.authorizationList=Qc(m)),Bo(y),{...e.length===13?V(e):void 0,...y}}function Kc(t){const e=ct(t),a=e.length===4,n=a?e[0]:e,r=a?e.slice(1):[],[s,o,i,c,d,l,m,h,u,f,y,w,I,b]=n,[v,P,T]=r;if(!(n.length===11||n.length===14))throw new M({attributes:{chainId:s,nonce:o,maxPriorityFeePerGas:i,maxFeePerGas:c,gas:d,to:l,value:m,data:h,accessList:u,...n.length>9?{v:w,r:I,s:b}:{}},serializedTransaction:t,type:"eip4844"});const p={blobVersionedHashes:y,chainId:C(s),to:l,type:"eip4844"};return g(d)&&d!=="0x"&&(p.gas=x(d)),g(h)&&h!=="0x"&&(p.data=h),g(o)&&(p.nonce=o==="0x"?0:C(o)),g(m)&&m!=="0x"&&(p.value=x(m)),g(f)&&f!=="0x"&&(p.maxFeePerBlobGas=x(f)),g(c)&&c!=="0x"&&(p.maxFeePerGas=x(c)),g(i)&&i!=="0x"&&(p.maxPriorityFeePerGas=x(i)),u.length!==0&&u!=="0x"&&(p.accessList=ut(u)),v&&P&&T&&(p.sidecars=ue({blobs:v,commitments:P,proofs:T})),No(p),{...n.length===14?V(n):void 0,...p}}function Jc(t){const e=ct(t),[a,n,r,s,o,i,c,d,l,m,h,u]=e;if(!(e.length===9||e.length===12))throw new M({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:o,to:i,value:c,data:d,accessList:l,...e.length>9?{v:m,r:h,s:u}:{}},serializedTransaction:t,type:"eip1559"});const f={chainId:C(a),type:"eip1559"};return g(i)&&i!=="0x"&&(f.to=i),g(o)&&o!=="0x"&&(f.gas=x(o)),g(d)&&d!=="0x"&&(f.data=d),g(n)&&(f.nonce=n==="0x"?0:C(n)),g(c)&&c!=="0x"&&(f.value=x(c)),g(s)&&s!=="0x"&&(f.maxFeePerGas=x(s)),g(r)&&r!=="0x"&&(f.maxPriorityFeePerGas=x(r)),l.length!==0&&l!=="0x"&&(f.accessList=ut(l)),qe(f),{...e.length===12?V(e):void 0,...f}}function Yc(t){const e=ct(t),[a,n,r,s,o,i,c,d,l,m,h]=e;if(!(e.length===8||e.length===11))throw new M({attributes:{chainId:a,nonce:n,gasPrice:r,gas:s,to:o,value:i,data:c,accessList:d,...e.length>8?{v:l,r:m,s:h}:{}},serializedTransaction:t,type:"eip2930"});const u={chainId:C(a),type:"eip2930"};return g(o)&&o!=="0x"&&(u.to=o),g(s)&&s!=="0x"&&(u.gas=x(s)),g(c)&&c!=="0x"&&(u.data=c),g(n)&&(u.nonce=n==="0x"?0:C(n)),g(i)&&i!=="0x"&&(u.value=x(i)),g(r)&&r!=="0x"&&(u.gasPrice=x(r)),d.length!==0&&d!=="0x"&&(u.accessList=ut(d)),Ue(u),{...e.length===11?V(e):void 0,...u}}function Zc(t){const e=Bt(t,"hex"),[a,n,r,s,o,i,c,d,l]=e;if(!(e.length===6||e.length===9))throw new M({attributes:{nonce:a,gasPrice:n,gas:r,to:s,value:o,data:i,...e.length>6?{v:c,r:d,s:l}:{}},serializedTransaction:t,type:"legacy"});const m={type:"legacy"};if(g(s)&&s!=="0x"&&(m.to=s),g(r)&&r!=="0x"&&(m.gas=x(r)),g(i)&&i!=="0x"&&(m.data=i),g(a)&&(m.nonce=a==="0x"?0:C(a)),g(o)&&o!=="0x"&&(m.value=x(o)),g(n)&&n!=="0x"&&(m.gasPrice=x(n)),Be(m),e.length===6)return m;const h=g(c)&&c!=="0x"?x(c):0n;if(l==="0x"&&d==="0x")return h>0&&(m.chainId=Number(h)),m;const u=h,f=Number((u-35n)/2n);if(f>0)m.chainId=f;else if(u!==27n&&u!==28n)throw new de({v:u});return m.v=u,m.s=l,m.r=d,m.yParity=u%2n===0n?1:0,m}function ct(t){return Bt(`0x${t.slice(4)}`,"hex")}function ut(t){const e=[];for(let a=0;a<t.length;a++){const[n,r]=t[a];if(!me(n,{strict:!1}))throw new le({address:n});e.push({address:n,storageKeys:r.map(s=>ia(s)?s:Ge(s))})}return e}function Qc(t){const e=[];for(let a=0;a<t.length;a++){const[n,r,s,o,i,c]=t[a];e.push({address:r,chainId:n==="0x"?0:C(n),nonce:s==="0x"?0:C(s),...V([o,i,c])})}return e}function V(t){const e=t.slice(-3),a=e[0]==="0x"?0n:x(e[0]);if(a!==0n&&a!==1n)throw new fe({yParity:a});const n=a===0n?27n:28n;return{r:xt(e[1],{size:32}),s:xt(e[2],{size:32}),v:n,yParity:n===27n?0:1}}function It(t){return!t||typeof t!="object"||!("BYTES_PER_ELEMENT"in t)?!1:t.BYTES_PER_ELEMENT===1&&t.constructor.name==="Uint8Array"}function Xc(t){return t.opcode==="CREATE2"?ma(t):da(t)}function da(t){const e=F(_(t.from));let a=F(t.nonce);return a[0]===0&&(a=new Uint8Array([])),_(`0x${H(he([e,a],"bytes")).slice(26)}`)}function ma(t){const e=F(_(t.from)),a=He(It(t.salt)?t.salt:F(t.salt),{size:32}),n=(()=>"bytecodeHash"in t?It(t.bytecodeHash)?t.bytecodeHash:F(t.bytecodeHash):H(t.bytecode,"bytes"))();return _(pe(H(et([F("0xff"),e,a,n])),12))}function tu({batchGateways:t,ccipRequest:e=Et}){return{async request({data:a,sender:n,urls:r}){if(r.includes(Pc))return e({data:a,sender:n,urls:t});{const[s,o]=ye({abi:ft,functionName:"query",data:await e({data:ge({abi:ft,functionName:"query",args:[[{sender:n,data:a,urls:r}]]}),sender:n,urls:t})});if(s[0]){let i;try{const c=be({abi:[...ft,Sa],data:o[0]});if(c.errorName==="HttpError")i=new Oe({body:{message:c.args[1]},status:c.args[0],url:r.join(" | ")});else{const d=c.args[0];d&&(i=new Error(d))}}catch{}throw i??new Error("An unknown error occurred.")}return o[0]}}}}function eu(t,e){const a=e||"hex",n=jc(g(t,{strict:!1})?F(t):t);return a==="bytes"?n:$e(n)}function la(t){return Ct(t,-32)===mo}function fa(t){return ko(t)}function au(t){if(!la(t))return{signature:t};const[e,a,n]=St([{type:"address"},{type:"bytes"},{type:"bytes"}],t);return{address:e,data:a,signature:n}}function nu(t){if(!fa(t))return{signature:t};const{authorization:e,to:a,...n}=Lo(t);return{authorization:{address:e.address,chainId:e.chainId,nonce:Number(e.nonce),r:E(e.r,{size:32}),s:E(e.s,{size:32}),yParity:e.yParity},...a?{address:a}:{},...n}}async function ha({message:t,signature:e}){return j({hash:Ve(t),signature:e})}async function pa(t){const{domain:e,message:a,primaryType:n,signature:r,types:s}=t;return j({hash:We({domain:e,message:a,primaryType:n,types:s}),signature:r})}function ru(t){const{address:e,data:a,signature:n,to:r="hex"}=t,s=zo({authorization:{address:t.authorization.address,chainId:t.authorization.chainId,nonce:BigInt(t.authorization.nonce),r:BigInt(t.authorization.r),s:BigInt(t.authorization.s),yParity:t.authorization.yParity},data:a,signature:n,to:e});return r==="hex"?s:D(s)}async function su({address:t,hash:e,signature:a}){return st(_(t),await j({hash:e,signature:a}))}async function ou({address:t,message:e,signature:a}){return st(_(t),await ha({message:e,signature:a}))}async function iu(t){const{address:e,domain:a,message:n,primaryType:r,signature:s,types:o}=t;return st(_(e),await pa({domain:a,message:n,primaryType:r,signature:s,types:o}))}function cu(t,e="wei"){return Qo(t,e)}function uu(t,e="wei"){return Xo(t,e)}function du({abi:t,address:e,client:a}){const n=a,[r,s]=(()=>n?"public"in n&&"wallet"in n?[n.public,n.wallet]:"public"in n?[n.public,void 0]:"wallet"in n?[void 0,n.wallet]:[n,n]:[void 0,void 0])(),o=r!=null,i=s!=null,c={};let d=!1,l=!1,m=!1;for(const h of t)if(h.type==="function"?h.stateMutability==="view"||h.stateMutability==="pure"?d=!0:l=!0:h.type==="event"&&(m=!0),d&&l&&m)break;return o&&(d&&(c.read=new Proxy({},{get(h,u){return(...f)=>{const{args:y,options:w}=X(f);return S(r,Mo,"readContract")({abi:t,address:e,functionName:u,args:y,...w})}}})),l&&(c.simulate=new Proxy({},{get(h,u){return(...f)=>{const{args:y,options:w}=X(f);return S(r,Rt,"simulateContract")({abi:t,address:e,functionName:u,args:y,...w})}}})),m&&(c.createEventFilter=new Proxy({},{get(h,u){return(...f)=>{const y=t.find(b=>b.type==="event"&&b.name===u),{args:w,options:I}=yt(f,y);return S(r,lo,"createContractEventFilter")({abi:t,address:e,eventName:u,args:w,...I})}}}),c.getEvents=new Proxy({},{get(h,u){return(...f)=>{const y=t.find(b=>b.type==="event"&&b.name===u),{args:w,options:I}=yt(f,y);return S(r,fo,"getContractEvents")({abi:t,address:e,eventName:u,args:w,...I})}}}),c.watchEvent=new Proxy({},{get(h,u){return(...f)=>{const y=t.find(b=>b.type==="event"&&b.name===u),{args:w,options:I}=yt(f,y);return S(r,ho,"watchContractEvent")({abi:t,address:e,eventName:u,args:w,...I})}}}))),i&&l&&(c.write=new Proxy({},{get(h,u){return(...f)=>{const{args:y,options:w}=X(f);return S(s,$,"writeContract")({abi:t,address:e,functionName:u,args:y,...w})}}})),(o||i)&&l&&(c.estimateGas=new Proxy({},{get(h,u){return(...f)=>{const{args:y,options:w}=X(f);return S(r??s,_t,"estimateContractGas")({abi:t,address:e,functionName:u,args:y,...w,account:w.account??s.account})}}})),c.address=e,c.abi=t,c}function X(t){const e=t.length&&Array.isArray(t[0]),a=e?t[0]:[],n=(e?t[1]:t[0])??{};return{args:a,options:n}}function yt(t,e){let a=!1;Array.isArray(t[0])?a=!0:t.length===1?a=e.inputs.some(s=>s.indexed):t.length===2&&(a=!0);const n=a?t[0]:void 0,r=(a?t[1]:t[0])??{};return{args:n,options:r}}async function L(t,e){return L.inner($,t,e)}(function(t){async function e(o,i,c){return await o(i,{...c,...t.call(i,c)})}t.inner=e;function a(o,i){return Ae(mu(o,i))}t.call=a;async function n(o,i){return _t(o,{...at(i),...t.call(o,i)})}t.estimateGas=n;async function r(o,i){return Rt(o,{...at(i),...t.call(o,i)})}t.simulate=r;function s(o){const[i]=Pt({abi:k,logs:o,eventName:"Approval",strict:!0});if(!i)throw new Error("`Approval` event not found.");return i}t.extractEvent=s})(L||(L={}));function mu(t,e){const{amount:a,spender:n,token:r}=e,{address:s,decimals:o}=ot(t,{token:r});return{abi:k,address:s,args:[n,Ce(a,o)],functionName:"approve"}}async function lu(t,e){const{amount:a,token:n,throwOnReceiptRevert:r=!0}=e,{decimals:s}=ot(t,{token:n}),o=Se(a,s),i=await L.inner(Ut,t,{...e,throwOnReceiptRevert:r}),{args:c}=L.extractEvent(i.logs);return{...c,...o===void 0?{}:{decimals:o,formatted:qt(c.value,o)},receipt:i}}async function z(t,e){return z.inner($,t,e)}(function(t){async function e(o,i,c){return await o(i,{...c,...t.call(i,c)})}t.inner=e;function a(o,i){return Ae(fu(o,i))}t.call=a;async function n(o,i){return _t(o,{...at(i),...t.call(o,i)})}t.estimateGas=n;async function r(o,i){return Rt(o,{...at(i),...t.call(o,i)})}t.simulate=r;function s(o){const[i]=Pt({abi:k,logs:o,eventName:"Transfer",strict:!0});if(!i)throw new Error("`Transfer` event not found.");return i}t.extractEvent=s})(z||(z={}));function fu(t,e){const{amount:a,from:n,to:r,token:s}=e,{address:o,decimals:i}=ot(t,{token:s}),c=Ce(a,i);return n?{abi:k,address:o,args:[n,r,c],functionName:"transferFrom"}:{abi:k,address:o,args:[r,c],functionName:"transfer"}}async function hu(t,e){const{amount:a,token:n,throwOnReceiptRevert:r=!0}=e,{decimals:s}=ot(t,{token:n}),o=Se(a,s),i=await z.inner(Ut,t,{...e,throwOnReceiptRevert:r}),{args:c}=z.extractEvent(i.logs);return{...c,...o===void 0?{}:{decimals:o,formatted:qt(c.value,o)},receipt:i}}async function pu(t,{hash:e}){await t.request({method:`${t.mode}_dropTransaction`,params:[e]})}async function yu(t){return t.request({method:`${t.mode}_dumpState`})}async function gu(t){return t.mode==="ganache"?await t.request({method:"eth_mining"}):await t.request({method:`${t.mode}_getAutomine`})}async function bu(t){return await t.request({method:"txpool_content"})}async function wu(t){const{pending:e,queued:a}=await t.request({method:"txpool_status"});return{pending:C(e),queued:C(a)}}async function xu(t,{address:e}){await t.request({method:`${t.mode}_impersonateAccount`,params:[e]})}async function Eu(t,{seconds:e}){return await t.request({method:"evm_increaseTime",params:[E(e)]})}async function Iu(t){return await t.request({method:"txpool_inspect"})}async function Tu(t,{state:e}){await t.request({method:`${t.mode}_loadState`,params:[e]})}async function vu(t,{blocks:e,interval:a}){t.mode==="ganache"?await t.request({method:"evm_mine",params:[{blocks:E(e)}]}):await t.request({method:`${t.mode}_mine`,params:[E(e),E(a||0)]})}async function Au(t){await t.request({method:`${t.mode}_removeBlockTimestampInterval`})}async function Cu(t,{blockNumber:e,jsonRpcUrl:a}={}){await t.request({method:`${t.mode}_reset`,params:[{forking:{blockNumber:Number(e),jsonRpcUrl:a}}]})}async function Su(t,{id:e}){await t.request({method:"evm_revert",params:[e]})}async function Pu(t,e){var I,b,v;const{accessList:a,data:n,from:r,gas:s,gasPrice:o,maxFeePerGas:i,maxPriorityFeePerGas:c,nonce:d,to:l,value:m,...h}=e,u=(v=(b=(I=t.chain)==null?void 0:I.formatters)==null?void 0:b.transactionRequest)==null?void 0:v.format,y=(u||rt)({...oe(h,{format:u}),accessList:a,data:n,from:r,gas:s,gasPrice:o,maxFeePerGas:i,maxPriorityFeePerGas:c,nonce:d,to:l,value:m},"sendUnsignedTransaction");return await t.request({method:"eth_sendUnsignedTransaction",params:[y]})}async function Ru(t,e){t.mode==="ganache"?e?await t.request({method:"miner_start"}):await t.request({method:"miner_stop"}):await t.request({method:"evm_setAutomine",params:[e]})}async function _u(t,{address:e,value:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountBalance",params:[e,E(a)]}):await t.request({method:`${t.mode}_setBalance`,params:[e,E(a)]})}async function Fu(t,{gasLimit:e}){await t.request({method:"evm_setBlockGasLimit",params:[E(e)]})}async function qu(t,{interval:e}){const a=(()=>t.mode==="hardhat"?e*1e3:e)();await t.request({method:`${t.mode}_setBlockTimestampInterval`,params:[a]})}async function Uu(t,{address:e,bytecode:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountCode",params:[e,a]}):await t.request({method:`${t.mode}_setCode`,params:[e,a]})}async function Bu(t,{address:e}){await t.request({method:`${t.mode}_setCoinbase`,params:[e]})}async function Nu(t,{interval:e}){const a=(()=>t.mode==="hardhat"?e*1e3:e)();await t.request({method:"evm_setIntervalMining",params:[a]})}async function ku(t,e){await t.request({method:`${t.mode}_setLoggingEnabled`,params:[e]})}async function Lu(t,{gasPrice:e}){await t.request({method:`${t.mode}_setMinGasPrice`,params:[E(e)]})}async function zu(t,{baseFeePerGas:e}){await t.request({method:`${t.mode}_setNextBlockBaseFeePerGas`,params:[E(e)]})}async function Mu(t,{timestamp:e}){await t.request({method:"evm_setNextBlockTimestamp",params:[E(e)]})}async function Du(t,{address:e,nonce:a}){await t.request({method:`${t.mode}_setNonce`,params:[e,E(a)]})}async function Gu(t,e){await t.request({method:`${t.mode}_setRpcUrl`,params:[e]})}async function Hu(t,{address:e,index:a,value:n}){await t.request({method:`${t.mode}_setStorageAt`,params:[e,typeof a=="number"?E(a):a,n]})}async function Ou(t){return await t.request({method:"evm_snapshot"})}async function $u(t,{address:e}){await t.request({method:`${t.mode}_stopImpersonatingAccount`,params:[e]})}function ya({mode:t}){return e=>{const a=e.extend(()=>({mode:t}));return{dropTransaction:n=>pu(a,n),dumpState:()=>yu(a),getAutomine:()=>gu(a),getTxpoolContent:()=>bu(a),getTxpoolStatus:()=>wu(a),impersonateAccount:n=>xu(a,n),increaseTime:n=>Eu(a,n),inspectTxpool:()=>Iu(a),loadState:n=>Tu(a,n),mine:n=>vu(a,n),removeBlockTimestampInterval:()=>Au(a),reset:n=>Cu(a,n),revert:n=>Su(a,n),sendUnsignedTransaction:n=>Pu(a,n),setAutomine:n=>Ru(a,n),setBalance:n=>_u(a,n),setBlockGasLimit:n=>Fu(a,n),setBlockTimestampInterval:n=>qu(a,n),setCode:n=>Uu(a,n),setCoinbase:n=>Bu(a,n),setIntervalMining:n=>Nu(a,n),setLoggingEnabled:n=>ku(a,n),setMinGasPrice:n=>Lu(a,n),setNextBlockBaseFeePerGas:n=>zu(a,n),setNextBlockTimestamp:n=>Mu(a,n),setNonce:n=>Du(a,n),setRpcUrl:n=>Gu(a,n),setStorageAt:n=>Hu(a,n),snapshot:()=>Ou(a),stopImpersonatingAccount:n=>$u(a,n)}}}function ju(t){const{key:e="test",name:a="Test Client",mode:n}=t;return Ft({...t,key:e,name:a,type:"testClient"}).extend(s=>({mode:n,...ya({mode:n})(s)}))}async function Vu(t,{chain:e}){const{id:a,name:n,nativeCurrency:r,rpcUrls:s,blockExplorers:o}=e;await t.request({method:"wallet_addEthereumChain",params:[{chainId:E(a),chainName:n,nativeCurrency:r,rpcUrls:s.default.http,blockExplorerUrls:o?Object.values(o).map(({url:i})=>i):void 0}]},{dedupe:!0,retryCount:0})}function Wu(t,e){const{abi:a,args:n,bytecode:r,...s}=e,o=we({abi:a,args:n,bytecode:r});return xe(t,{...s,...s.authorizationList?{to:null}:{},data:o})}async function Ku(t){var a;return((a=t.account)==null?void 0:a.type)==="local"?[t.account.address]:(await t.request({method:"eth_accounts"},{dedupe:!0})).map(n=>Ee(n))}async function Ju(t,e={}){const{account:a=t.account,chainId:n}=e,r=a?O(a):void 0,s=n?[r==null?void 0:r.address,[E(n)]]:[r==null?void 0:r.address],o=await t.request({method:"wallet_getCapabilities",params:s}),i={};for(const[c,d]of Object.entries(o)){i[Number(c)]={};for(let[l,m]of Object.entries(d))l==="addSubAccount"&&(l="unstable_addSubAccount"),i[Number(c)][l]=m}return typeof n=="number"?i[n]:i}async function Yu(t){return await t.request({method:"wallet_getPermissions"},{dedupe:!0})}async function Zu(t){return(await t.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(a=>_(a))}async function Qu(t,e){return t.request({method:"wallet_requestPermissions",params:[e]},{retryCount:0})}async function Xu(t,e){const{chain:a=t.chain}=e,n=e.timeout??Math.max(((a==null?void 0:a.blockTime)??0)*3,5e3),r=await S(t,Pe,"sendCalls")(e);return await S(t,Re,"waitForCallsStatus")({...e,id:r.id,timeout:n})}async function td(t,e){const{id:a}=e;await t.request({method:"wallet_showCallsStatus",params:[a]})}async function ed(t,e){const{account:a=t.account}=e;if(!a)throw new nt({docsPath:"/docs/eip7702/signAuthorization"});const n=O(a);if(!n.signAuthorization)throw new tt({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:n.type});const r=await _e(t,e);return n.signAuthorization(r)}async function ad(t,e){var d,l,m,h;const{account:a=t.account,chain:n=t.chain,...r}=e;if(!a)throw new nt({docsPath:"/docs/actions/wallet/signTransaction"});const s=O(a);Tt({account:s,...e});const o=await S(t,vt,"getChainId")({});n!==null&&At({currentChainId:o,chain:n});const i=(n==null?void 0:n.formatters)||((d=t.chain)==null?void 0:d.formatters),c=((l=i==null?void 0:i.transactionRequest)==null?void 0:l.format)||rt;return s.signTransaction?s.signTransaction({...r,account:s,chainId:o},{serializer:(h=(m=t.chain)==null?void 0:m.serializers)==null?void 0:h.transaction}):await t.request({method:"eth_signTransaction",params:[{...c({...r,account:s},"signTransaction"),chainId:E(o),from:s.address}]},{retryCount:0})}async function nd(t,e){const{account:a=t.account,domain:n,message:r,primaryType:s}=e;if(!a)throw new nt({docsPath:"/docs/actions/wallet/signTypedData"});const o=O(a),i={EIP712Domain:Ke({domain:n}),...e.types};if(Je({domain:n,message:r,primaryType:s,types:i}),o.signTypedData)return o.signTypedData({domain:n,message:r,primaryType:s,types:i});const c=Ye({domain:n,message:r,primaryType:s,types:i});return t.request({method:"eth_signTypedData_v4",params:[o.address,c]},{retryCount:0})}async function rd(t,{id:e}){await t.request({method:"wallet_switchEthereumChain",params:[{chainId:E(e)}]},{retryCount:0})}async function sd(t,e){return await t.request({method:"wallet_watchAsset",params:e},{retryCount:0})}function ga(t){return{addChain:e=>Vu(t,e),deployContract:e=>Wu(t,e),fillTransaction:e=>Pa(t,e),getAddresses:()=>Ku(t),getCallsStatus:e=>po(t,e),getCapabilities:e=>Ju(t,e),getChainId:()=>vt(t),getPermissions:()=>Yu(t),prepareAuthorization:e=>_e(t,e),prepareTransactionRequest:e=>ie(t,e),requestAddresses:()=>Zu(t),requestPermissions:e=>Qu(t,e),sendCalls:e=>Pe(t,e),sendCallsSync:e=>Xu(t,e),sendRawTransaction:e=>Ra(t,e),sendRawTransactionSync:e=>ve(t,e),sendTransaction:e=>xe(t,e),sendTransactionSync:e=>sa(t,e),showCallsStatus:e=>td(t,e),signAuthorization:e=>ed(t,e),signMessage:e=>Vo(t,e),signTransaction:e=>ad(t,e),signTypedData:e=>nd(t,e),switchChain:e=>rd(t,e),waitForCallsStatus:e=>Re(t,e),watchAsset:e=>sd(t,e),writeContract:e=>$(t,e),writeContractSync:e=>Ut(t,e),token:{approve:Z(t,L),approveSync:Z(t,lu),transfer:Z(t,z),transferSync:Z(t,hu)}}}function od(t){const{key:e="wallet",name:a="Wallet Client",transport:n}=t;return Ft({...t,key:e,name:a,transport:n,type:"walletClient"}).extend(ga)}function id(t,e={}){const{keepAlive:a,key:n="webSocket",methods:r,name:s="WebSocket JSON-RPC",reconnect:o,retryDelay:i}=e;return({chain:c,retryCount:d,timeout:l})=>{var y;const m=e.retryCount??d,h=l??e.timeout??1e4,u=t||((y=c==null?void 0:c.rpcUrls.default.webSocket)==null?void 0:y[0]),f={keepAlive:a,reconnect:o};if(!u)throw new Ze;return Qe({key:n,methods:r,name:s,async request({method:w,params:I}){const b={method:w,params:I},v=await ht(u,f),{error:P,result:T}=await v.requestAsync({body:b,timeout:h});if(P)throw new je({body:b,error:P,url:u});return T},retryCount:m,retryDelay:i,timeout:h,type:"webSocket"},{getSocket(){return Sc(u)},getRpcClient(){return ht(u,f)},async subscribe({params:w,onData:I,onError:b}){const v=await ht(u,f),{result:P}=await new Promise((T,p)=>v.request({body:{method:"eth_subscribe",params:w},onError(A){p(A),b==null||b(A)},onResponse(A){if(A.error){p(A.error),b==null||b(A.error);return}if(typeof A.id=="number"){T(A);return}A.method==="eth_subscription"&&I(A.params)}}));return{subscriptionId:P,async unsubscribe(){return new Promise(T=>v.request({body:{method:"eth_unsubscribe",params:[P]},onResponse:T}))}}}})}}const cd={gwei:9,wei:18},ud={ether:-9,wei:9},dd={ether:-18,gwei:-9};class md extends it{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}class ld extends Error{constructor(e,a){super(a),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=e,this.details=a}}const gt="/docs/contract/decodeDeployData";function fd(t){const{abi:e,bytecode:a,data:n}=t;if(n===a)return{bytecode:a};const r=e.find(o=>"type"in o&&o.type==="constructor");if(!r)throw new Ie({docsPath:gt});if(!("inputs"in r))throw new wt({docsPath:gt});if(!r.inputs||r.inputs.length===0)throw new wt({docsPath:gt});return{args:St(r.inputs,`0x${n.replace(a,"")}`),bytecode:a}}function hd(t){const e=t.to??(typeof t.blobs[0]=="string"?"hex":"bytes"),a=typeof t.blobs[0]=="string"?t.blobs.map(i=>D(i)):t.blobs,n=a.reduce((i,c)=>i+c.length,0),r=bt(new Uint8Array(n));let s=!0;for(const[i,c]of a.entries()){const d=bt(c),l=i===a.length-1;for(;s&&d.position<c.length;){d.incrementPosition(1);let m=31;c.length-d.position<31&&(m=c.length-d.position);for(const h in Array.from({length:m})){const u=d.readByte();if(l&&u===128&&!d.inspectBytes(d.remaining).includes(128)){s=!1;break}r.pushByte(u)}}}const o=r.bytes.slice(0,r.position);return e==="hex"?N(o):o}function pd(t){const{sidecars:e,version:a}=t,n=t.to??(typeof e[0].blob=="string"?"hex":"bytes"),r=[];for(const{commitment:s}of e)r.push(Te({commitment:s,to:n,version:a}));return r}const yd=2147483648;function gd(t){if(t===1)return 60n;if(t>=yd||t<0)throw new Fe({chainId:t});return BigInt((2147483648|t)>>>0)}function ba({blobToKzgCommitment:t,computeBlobKzgProof:e}){return{blobToKzgCommitment:t,computeBlobKzgProof:e}}function bd(t,e){try{t.loadTrustedSetup(e)}catch(a){const n=a;if(!n.message.includes("trusted setup is already loaded"))throw n}return ba(t)}function wd({r:t,yParityAndS:e}){const a=D(e),n=a[0]&128?1:0,r=a;return n===1&&(r[0]&=127),{r:t,s:N(r),yParity:n}}function ne(t){const{r:e,s:a}=Xe.Signature.fromCompact(t.slice(2,130));return{r:E(e,{size:32}),yParityAndS:E(a,{size:32})}}async function xd(t){const{serializedTransaction:e,signature:a}=t,n=ua(e),r=a??{r:n.r,s:n.s,v:n.v,yParity:n.yParity},s=Ne({...n,r:void 0,s:void 0,v:void 0,yParity:void 0,sidecars:void 0});return await j({hash:H(s),signature:r})}function re({r:t,yParityAndS:e}){return`0x${new Xe.Signature(x(t),x(e)).toCompactHex()}`}function Ed(t){const{r:e,s:a,v:n,yParity:r}=t,s=Number(r??n-27n);let o=a;if(s===1){const i=D(a);i[0]|=128,o=N(i)}return{r:e,yParityAndS:o}}const Ud=Object.freeze(Object.defineProperty({__proto__:null,AbiConstructorNotFoundError:Ie,AbiConstructorParamsNotFoundError:wt,AbiDecodingDataSizeInvalidError:_a,AbiDecodingDataSizeTooSmallError:Fa,AbiDecodingZeroDataError:qa,AbiEncodingArrayLengthMismatchError:Ua,AbiEncodingBytesSizeMismatchError:Ba,AbiEncodingLengthMismatchError:Na,AbiErrorInputsNotFoundError:ka,AbiErrorNotFoundError:La,AbiErrorSignatureNotFoundError:za,AbiEventNotFoundError:Ma,AbiEventSignatureEmptyTopicsError:Da,AbiEventSignatureNotFoundError:Ga,AbiFunctionNotFoundError:Ha,AbiFunctionOutputsNotFoundError:Oa,AbiFunctionSignatureNotFoundError:$a,AccountStateConflictError:ja,AtomicReadyWalletRejectedUpgradeError:ti,AtomicityNotSupportedError:ei,BaseError:it,BaseFeeScalarError:Va,BlockNotFoundError:Wa,BundleFailedError:yo,BundleTooLargeError:ai,BytesSizeMismatchError:Ka,CallExecutionError:Ja,ChainDisconnectedError:ni,ChainDoesNotSupportContract:Ya,ChainMismatchError:Za,ChainNotFoundError:Qa,CircularReferenceError:Xa,ClientChainNotConfiguredError:tn,ContractFunctionExecutionError:en,ContractFunctionRevertedError:an,ContractFunctionZeroDataError:nn,CounterfactualDeploymentFailedError:rn,DecodeLogDataMismatch:sn,DecodeLogTopicsMismatch:on,DuplicateIdError:ri,EIP1193ProviderRpcError:ld,Eip1559FeesNotSupportedError:cn,EnsAvatarInvalidNftUriError:go,EnsAvatarUnsupportedNamespaceError:bo,EnsAvatarUriResolutionError:wo,EnsInvalidChainIdError:Fe,EstimateGasExecutionError:un,ExecutionRevertedError:si,FeeCapTooHighError:oi,FeeCapTooLowError:ii,FeeConflictError:dn,FeePayerNonceMismatchError:mn,FilterTypeNotSupportedError:xo,HttpRequestError:Oe,InsufficientFundsError:ci,IntegerOutOfRangeError:ui,InternalRpcError:di,IntrinsicGasTooHighError:mi,IntrinsicGasTooLowError:li,InvalidAbiDecodingTypeError:ln,InvalidAbiEncodingTypeError:fn,InvalidAbiItemError:hn,InvalidAbiParameterError:se,InvalidAbiParametersError:pn,InvalidAbiTypeParameterError:yn,InvalidAddressError:le,InvalidArrayError:gn,InvalidBytesBooleanError:fi,InvalidChainIdError:bn,InvalidDecimalNumberError:md,InvalidDefinitionTypeError:wn,InvalidDomainError:fc,InvalidFunctionModifierError:xn,InvalidHexBooleanError:hi,InvalidHexValueError:ke,InvalidInputRpcError:pi,InvalidLegacyVError:de,InvalidModifierError:En,InvalidParameterError:In,InvalidParamsRpcError:yi,InvalidParenthesisError:Tn,InvalidPrimaryTypeError:hc,InvalidRequestRpcError:gi,InvalidSerializableTransactionError:vn,InvalidSerializedTransactionError:M,InvalidSerializedTransactionTypeError:ce,InvalidSignatureError:An,InvalidStorageKeySizeError:Cn,InvalidStructSignatureError:Sn,InvalidStructTypeError:pc,InvalidTypedDataTypeError:yc,InvalidYParityError:fe,JsonRpcVersionUnsupportedError:bi,LimitExceededRpcError:wi,MaxFeePerGasTooLowError:Pn,MethodNotFoundRpcError:xi,MethodNotSupportedRpcError:Ei,NonceMaxValueError:Ii,NonceTooHighError:Ti,NonceTooLowError:vi,ParseRpcError:Ai,ProviderDisconnectedError:Ci,ProviderRpcError:Si,RawContractError:Rn,ResourceNotFoundRpcError:Pi,ResourceUnavailableRpcError:Ri,ResponseBodyTooLargeError:_i,RlpDepthLimitExceededError:ze,RlpListBoundaryExceededError:Me,RlpTrailingBytesError:Le,RpcError:Fi,RpcRequestError:je,SizeExceedsPaddingSizeError:qi,SizeOverflowError:Ui,SliceOffsetOutOfBoundsError:Bi,SocketClosedError:Ni,SolidityProtectedKeywordError:_n,StateAssignmentConflictError:Fn,SwitchChainError:ki,TimeoutError:Li,TipAboveFeeCapError:zi,TransactionExecutionError:qn,TransactionNotFoundError:Un,TransactionReceiptNotFoundError:Bn,TransactionRejectedRpcError:Mi,TransactionTypeNotSupportedError:Di,UnauthorizedProviderError:Gi,UnknownBundleIdError:Hi,UnknownNodeError:Oi,UnknownRpcError:$i,UnknownSignatureError:Nn,UnknownTypeError:kn,UnsupportedChainIdError:ji,UnsupportedNonOptionalCapabilityError:Vi,UnsupportedPackedAbiType:Ln,UnsupportedProviderMethodError:Wi,UrlRequiredError:Ze,UserRejectedRequestError:Ki,WaitForCallsStatusTimeoutError:Eo,WaitForTransactionReceiptTimeoutError:zn,WebSocketRequestError:Ji,assertCurrentChain:At,assertRequest:Tt,assertTransactionEIP1559:qe,assertTransactionEIP2930:Ue,assertTransactionLegacy:Be,blobsToCommitments:Mn,blobsToProofs:Dn,boolToBytes:Yi,boolToHex:Zi,bytesToBigInt:Gn,bytesToBool:Hn,bytesToHex:N,bytesToNumber:On,bytesToRlp:$n,bytesToString:jn,ccipFetch:Et,ccipReadTunnel:tu,ccipRequest:Et,checksumAddress:Ee,commitmentToVersionedHash:Te,commitmentsToVersionedHashes:Vn,compactSignatureToHex:re,compactSignatureToSignature:wd,concat:et,concatBytes:Wn,concatHex:Kn,createClient:Ft,createNonceManager:Io,createPublicClient:To,createTestClient:ju,createTransport:Qe,createWalletClient:od,custom:Wo,decodeAbiParameters:St,decodeDeployData:fd,decodeErrorResult:be,decodeEventLog:Jn,decodeFunctionData:Rc,decodeFunctionResult:ye,defineBlock:Yn,defineChain:Do,defineKzg:ba,defineTransaction:Zn,defineTransactionReceipt:Qn,defineTransactionRequest:Xn,deploylessCallViaBytecodeBytecode:tr,deploylessCallViaFactoryBytecode:er,domainSeparator:gc,encodeAbiParameters:ar,encodeDeployData:we,encodeErrorResult:_c,encodeEventTopics:vo,encodeFunctionData:ge,encodeFunctionResult:Fc,encodePacked:Ao,erc1155Abi:Qi,erc20Abi:k,erc20Abi_bytes32:Xi,erc4626Abi:tc,erc6492SignatureValidatorAbi:Xt,erc6492SignatureValidatorByteCode:Wt,erc721Abi:ec,ethAddress:Co,etherUnits:cd,extendSchema:Go,extractChain:Nc,fallback:Ic,formatBlock:nr,formatEther:rr,formatGwei:ac,formatLog:sr,formatTransaction:or,formatTransactionReceipt:ir,formatTransactionRequest:rt,formatUnits:qt,fromBlobs:hd,fromBytes:cr,fromHex:nc,fromRlp:Bt,getAbiItem:ur,getAddress:_,getChainContractAddress:dr,getContract:du,getContractAddress:Xc,getContractError:mr,getCreate2Address:ma,getCreateAddress:da,getEventSelector:Kt,getEventSignature:Y,getFunctionSelector:Jt,getFunctionSignature:Y,getSerializedTransactionType:ca,getTransactionType:lr,getTypesForEIP712Domain:Ke,gweiUnits:ud,hashDomain:bc,hashMessage:Ve,hashStruct:wc,hashTypedData:We,hexToBigInt:x,hexToBool:rc,hexToBytes:D,hexToCompactSignature:ne,hexToNumber:C,hexToRlp:fr,hexToSignature:Zt,hexToString:sc,http:Tc,isAddress:me,isAddressEqual:st,isBytes:It,isErc6492Signature:la,isErc8010Signature:fa,isHash:ia,isHex:g,keccak256:H,labelhash:So,maxInt104:hr,maxInt112:pr,maxInt120:yr,maxInt128:gr,maxInt136:br,maxInt144:wr,maxInt152:xr,maxInt16:Er,maxInt160:Ir,maxInt168:Tr,maxInt176:vr,maxInt184:Ar,maxInt192:Cr,maxInt200:Sr,maxInt208:Pr,maxInt216:Rr,maxInt224:_r,maxInt232:Fr,maxInt24:qr,maxInt240:Ur,maxInt248:Br,maxInt256:Nr,maxInt32:kr,maxInt40:Lr,maxInt48:zr,maxInt56:Mr,maxInt64:Dr,maxInt72:Gr,maxInt8:Hr,maxInt80:Or,maxInt88:$r,maxInt96:jr,maxUint104:Vr,maxUint112:Wr,maxUint120:Kr,maxUint128:Jr,maxUint136:Yr,maxUint144:Zr,maxUint152:Qr,maxUint16:Xr,maxUint160:ts,maxUint168:es,maxUint176:as,maxUint184:ns,maxUint192:rs,maxUint200:ss,maxUint208:os,maxUint216:is,maxUint224:cs,maxUint232:us,maxUint24:ds,maxUint240:ms,maxUint248:ls,maxUint256:fs,maxUint32:hs,maxUint40:ps,maxUint48:ys,maxUint56:gs,maxUint64:bs,maxUint72:ws,maxUint8:xs,maxUint80:Es,maxUint88:Is,maxUint96:Ts,minInt104:vs,minInt112:As,minInt120:Cs,minInt128:Ss,minInt136:Ps,minInt144:Rs,minInt152:_s,minInt16:Fs,minInt160:qs,minInt168:Us,minInt176:Bs,minInt184:Ns,minInt192:ks,minInt200:Ls,minInt208:zs,minInt216:Ms,minInt224:Ds,minInt232:Gs,minInt24:Hs,minInt240:Os,minInt248:$s,minInt256:js,minInt32:Vs,minInt40:Ws,minInt48:Ks,minInt56:Js,minInt64:Ys,minInt72:Zs,minInt8:Qs,minInt80:Xs,minInt88:to,minInt96:eo,multicall3Abi:oc,namehash:Po,nonceManager:Ro,numberToBytes:ic,numberToHex:E,offchainLookup:qc,offchainLookupAbiItem:Uc,offchainLookupSignature:Bc,pad:He,padBytes:cc,padHex:xt,parseAbi:ao,parseAbiItem:Ho,parseAbiParameter:kc,parseAbiParameters:Oo,parseCompactSignature:ne,parseErc6492Signature:au,parseErc8010Signature:nu,parseEther:cu,parseEventLogs:Pt,parseGwei:uu,parseSignature:Zt,parseTransaction:ua,parseUnits:Ko,prepareEncodeFunctionData:no,presignMessagePrefix:xc,publicActions:_o,recoverAddress:j,recoverMessageAddress:ha,recoverPublicKey:ro,recoverTransactionAddress:xd,recoverTypedDataAddress:pa,ripemd160:eu,rpcSchema:Jo,rpcTransactionType:so,serializeAccessList:$o,serializeCompactSignature:re,serializeErc6492Signature:Fo,serializeErc8010Signature:ru,serializeSignature:Qt,serializeTransaction:Ne,serializeTypedData:Ye,setErrorConfig:uc,setupKzg:bd,sha256:oo,shouldThrow:vc,sidecarsToVersionedHashes:pd,signatureToCompactSignature:Ed,signatureToHex:Qt,size:De,slice:pe,sliceBytes:io,sliceHex:Ct,stringToBytes:dc,stringToHex:mc,stringify:lc,testActions:ya,toBlobSidecars:ue,toBlobs:co,toBytes:F,toCoinType:gd,toEventHash:Yt,toEventSelector:Kt,toEventSignature:Y,toFunctionHash:Yt,toFunctionSelector:Jt,toFunctionSignature:Y,toHex:$e,toPrefixedMessage:Ec,toRlp:he,transactionType:uo,trim:Ge,universalSignatureValidatorAbi:Xt,universalSignatureValidatorByteCode:Wt,validateTypedData:Je,verifyHash:su,verifyMessage:ou,verifyTypedData:iu,walletActions:ga,webSocket:id,weiUnits:dd,withCache:Yo,withRetry:Ac,withTimeout:Cc,zeroAddress:qo,zeroHash:Uo},Symbol.toStringTag,{value:"Module"}));export{Ud as _};
@@ -1,4 +1,4 @@
1
- import{i as d,b as h}from"./lit-element-0711c853.js";import{n as r}from"./class-map-d7835e88.js";import{e as m,n as c}from"./ref-8c2954ee.js";import{d as f,r as v,e as y,v as b}from"./index-6e64d31e.js";import{c as g,U as w}from"./index-78689969.js";const x=f`
1
+ import{i as d,b as h}from"./lit-element-0711c853.js";import{n as r}from"./class-map-d7835e88.js";import{e as m,n as c}from"./ref-8c2954ee.js";import{d as f,r as v,e as y,v as b}from"./index-23dd6251.js";import{c as g,U as w}from"./index-5ece9033.js";const x=f`
2
2
  :host {
3
3
  position: relative;
4
4
  display: inline-block;