@reown/appkit-cdn 0.0.5 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/LICENSE +2 -2
  2. package/dist/{W3MFrameProviderSingleton-zbQ4ONFs.js → W3MFrameProviderSingleton-B9E01rnL.js} +2046 -2007
  3. package/dist/{W3MFrameProviderSingleton-DqZPnx6B.cjs → W3MFrameProviderSingleton-C56DqhGz.cjs} +63 -63
  4. package/dist/ethers.cjs +1 -1
  5. package/dist/ethers.js +1128 -1124
  6. package/dist/{hooks.module-i4FRb7XO.cjs → hooks.module-COfcimjS.cjs} +1 -1
  7. package/dist/{hooks.module-DyR4RIBB.js → hooks.module-OoOP-iZR.js} +1 -1
  8. package/dist/{index-Bn8aTBEA.cjs → index-BFJW4qjy.cjs} +1 -1
  9. package/dist/{index-COp74Nlv.js → index-BT6RyUGl.js} +2 -2
  10. package/dist/{index-KQ0ug1oF.js → index-BeGUtgfx.js} +2 -2
  11. package/dist/{index-UcSnSk_O.cjs → index-Bl5DrNCU.cjs} +1 -1
  12. package/dist/{index-CEUqb47P.js → index-BmTGKb68.js} +2 -2
  13. package/dist/{index-ghwtTzEg.js → index-BsaPadk9.js} +2 -2
  14. package/dist/{index-DoLWLaij.cjs → index-C0D6DuSI.cjs} +1 -1
  15. package/dist/{index-CZTNKbSO.js → index-CCzK6s6K.js} +2 -2
  16. package/dist/{index-DxUwf3RH.cjs → index-CG2oM48r.cjs} +1 -1
  17. package/dist/{index-mgWAnOON.cjs → index-Cm-dsmtL.cjs} +1 -1
  18. package/dist/{index-DxEKvu_F.js → index-CpPWzw23.js} +1 -1
  19. package/dist/{index-FG_60MTM.cjs → index-DYI6oRae.cjs} +1 -1
  20. package/dist/{index-Dfn2LY62.cjs → index-DbrEGMZZ.cjs} +1 -1
  21. package/dist/{index-CZ0JZE3-.cjs → index-Dv8gb9FV.cjs} +1 -1
  22. package/dist/{index-Obv6EKFg.js → index-XErsLRGr.js} +2 -2
  23. package/dist/{index-eRHpwmcb.js → index-j73t9fcB.js} +2 -2
  24. package/dist/{index.es-D9jJiMUr.cjs → index.es-0FqNLiLo.cjs} +2 -2
  25. package/dist/{index.es-BGqGHUjM.js → index.es-BhyAt79s.js} +2 -2
  26. package/dist/{metamask-sdk-DvRJGKsF.js → metamask-sdk-DPJxxXN8.js} +1 -1
  27. package/dist/{metamask-sdk-h3UYWtaU.cjs → metamask-sdk-DXmxCf94.cjs} +1 -1
  28. package/dist/{native-DMERvs7m.cjs → native-BIdabKvi.cjs} +1 -1
  29. package/dist/{native-Da5kImuF.js → native-CbXTOHOX.js} +1 -1
  30. package/dist/{w3m-modal-CFTtpDDX.cjs → w3m-modal-BLwMni5B.cjs} +3 -3
  31. package/dist/{w3m-modal-5wuX5WJr.js → w3m-modal-BjrYlIco.js} +4 -4
  32. package/dist/{wagmi-DrOzbDZW.js → wagmi-DiP-pZB_.js} +356 -351
  33. package/dist/{wagmi-DwngeQQv.cjs → wagmi-MqS1RwHj.cjs} +4 -4
  34. package/dist/wagmi.cjs +1 -1
  35. package/dist/wagmi.js +6 -6
  36. package/package.json +5 -5
@@ -1,4 +1,4 @@
1
- import { E as zl, P as vt, C as me, a as Lf, W as zf, S as je, b as Ge, c as ta, d as _f, N as qe, H as yc, e as Hf, f as wc, i as $f, g as gc, h as xc, j as Io, k as Cc, A as jf } from "./W3MFrameProviderSingleton-zbQ4ONFs.js";
1
+ import { E as zl, P as vt, C as me, a as Lf, W as zf, S as je, b as Ge, c as ta, d as _f, N as qe, H as yc, e as Hf, f as wc, i as $f, g as gc, h as xc, j as Io, k as Cc, A as jf } from "./W3MFrameProviderSingleton-B9E01rnL.js";
2
2
  const _l = "2.21.4";
3
3
  let Yt = {
4
4
  getDocsUrl: ({ docsBaseUrl: e, docsPath: t = "", docsSlug: n }) => t ? `${e ?? "https://viem.sh"}${t}${n ? `#${n}` : ""}` : void 0,
@@ -229,9 +229,9 @@ function ct(e, t = {}) {
229
229
  }
230
230
  const Kf = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
231
231
  function M(e, t = {}) {
232
- return typeof e == "number" || typeof e == "bigint" ? U(e, t) : typeof e == "string" ? Ve(e, t) : typeof e == "boolean" ? Rs(e, t) : W(e, t);
232
+ return typeof e == "number" || typeof e == "bigint" ? U(e, t) : typeof e == "string" ? Ve(e, t) : typeof e == "boolean" ? Os(e, t) : W(e, t);
233
233
  }
234
- function Rs(e, t = {}) {
234
+ function Os(e, t = {}) {
235
235
  const n = `0x${Number(e)}`;
236
236
  return typeof t.size == "number" ? (Be(n, { size: t.size }), Ee(n, { size: t.size })) : n;
237
237
  }
@@ -327,7 +327,7 @@ class Zf extends S {
327
327
  });
328
328
  }
329
329
  }
330
- class Oa extends S {
330
+ class Ra extends S {
331
331
  constructor({ data: t, params: n, size: r }) {
332
332
  super([`Data size of ${r} bytes is too small for given parameters.`].join(`
333
333
  `), {
@@ -376,7 +376,7 @@ class Xl extends S {
376
376
  super(`Size of bytes "${n}" (bytes${X(n)}) does not match expected size (bytes${t}).`, { name: "AbiEncodingBytesSizeMismatchError" });
377
377
  }
378
378
  }
379
- class Ra extends S {
379
+ class Oa extends S {
380
380
  constructor({ expectedLength: t, givenLength: n }) {
381
381
  super([
382
382
  "ABI encoding params/values length mismatch.",
@@ -702,7 +702,7 @@ function th(e, t = !1) {
702
702
  }
703
703
  const nh = (e, t, n) => e << n | t >>> 32 - n, rh = (e, t, n) => t << n | e >>> 32 - n, sh = (e, t, n) => t << n - 32 | e >>> 64 - n, oh = (e, t, n) => e << n - 32 | t >>> 64 - n, So = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
704
704
  /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
705
- const ah = (e) => new Uint32Array(e.buffer, e.byteOffset, Math.floor(e.byteLength / 4)), Bo = (e) => new DataView(e.buffer, e.byteOffset, e.byteLength), Oe = (e, t) => e << 32 - t | e >>> t, Tr = (e, t) => e << t | e >>> 32 - t >>> 0, kc = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68, ih = (e) => e << 24 & 4278190080 | e << 8 & 16711680 | e >>> 8 & 65280 | e >>> 24 & 255;
705
+ const ah = (e) => new Uint32Array(e.buffer, e.byteOffset, Math.floor(e.byteLength / 4)), Bo = (e) => new DataView(e.buffer, e.byteOffset, e.byteLength), Re = (e, t) => e << 32 - t | e >>> t, Tr = (e, t) => e << t | e >>> 32 - t >>> 0, kc = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68, ih = (e) => e << 24 & 4278190080 | e << 8 & 16711680 | e >>> 8 & 65280 | e >>> 24 & 255;
706
706
  function Ic(e) {
707
707
  for (let t = 0; t < e.length; t++)
708
708
  e[t] = ih(e[t]);
@@ -743,12 +743,12 @@ function uh(e = 32) {
743
743
  return So.getRandomValues(new Uint8Array(e));
744
744
  throw new Error("crypto.getRandomValues must be defined");
745
745
  }
746
- const lu = [], uu = [], du = [], dh = /* @__PURE__ */ BigInt(0), Rn = /* @__PURE__ */ BigInt(1), ph = /* @__PURE__ */ BigInt(2), fh = /* @__PURE__ */ BigInt(7), hh = /* @__PURE__ */ BigInt(256), mh = /* @__PURE__ */ BigInt(113);
747
- for (let e = 0, t = Rn, n = 1, r = 0; e < 24; e++) {
746
+ const lu = [], uu = [], du = [], dh = /* @__PURE__ */ BigInt(0), On = /* @__PURE__ */ BigInt(1), ph = /* @__PURE__ */ BigInt(2), fh = /* @__PURE__ */ BigInt(7), hh = /* @__PURE__ */ BigInt(256), mh = /* @__PURE__ */ BigInt(113);
747
+ for (let e = 0, t = On, n = 1, r = 0; e < 24; e++) {
748
748
  [n, r] = [r, (2 * n + 3 * r) % 5], lu.push(2 * (5 * r + n)), uu.push((e + 1) * (e + 2) / 2 % 64);
749
749
  let s = dh;
750
750
  for (let o = 0; o < 7; o++)
751
- t = (t << Rn ^ (t >> fh) * mh) % hh, t & ph && (s ^= Rn << (Rn << /* @__PURE__ */ BigInt(o)) - Rn);
751
+ t = (t << On ^ (t >> fh) * mh) % hh, t & ph && (s ^= On << (On << /* @__PURE__ */ BigInt(o)) - On);
752
752
  du.push(s);
753
753
  }
754
754
  const [bh, yh] = /* @__PURE__ */ th(du, !0), Sc = (e, t, n) => n > 32 ? sh(e, t, n) : nh(e, t, n), Bc = (e, t, n) => n > 32 ? oh(e, t, n) : rh(e, t, n);
@@ -904,7 +904,7 @@ function Hs(e, t, n, { strict: r } = {}) {
904
904
  }
905
905
  function ze(e, t) {
906
906
  if (e.length !== t.length)
907
- throw new Ra({
907
+ throw new Oa({
908
908
  expectedLength: e.length,
909
909
  givenLength: t.length
910
910
  });
@@ -1020,7 +1020,7 @@ function kh(e, { param: t }) {
1020
1020
  function Ih(e) {
1021
1021
  if (typeof e != "boolean")
1022
1022
  throw new S(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);
1023
- return { dynamic: !1, encoded: Me(Rs(e)) };
1023
+ return { dynamic: !1, encoded: Me(Os(e)) };
1024
1024
  }
1025
1025
  function Sh(e, { signed: t }) {
1026
1026
  return {
@@ -1288,7 +1288,7 @@ function Fh(e, t = "hex") {
1288
1288
  return we(e, t);
1289
1289
  }
1290
1290
  function bu(e) {
1291
- return Array.isArray(e) ? Dh(e.map((t) => bu(t))) : Oh(e);
1291
+ return Array.isArray(e) ? Dh(e.map((t) => bu(t))) : Rh(e);
1292
1292
  }
1293
1293
  function Dh(e) {
1294
1294
  const t = e.reduce((s, o) => s + o.length, 0), n = yu(t);
@@ -1301,7 +1301,7 @@ function Dh(e) {
1301
1301
  }
1302
1302
  };
1303
1303
  }
1304
- function Oh(e) {
1304
+ function Rh(e) {
1305
1305
  const t = typeof e == "string" ? re(e) : e, n = yu(t.length);
1306
1306
  return {
1307
1307
  length: t.length === 1 && t[0] < 128 ? 1 : t.length <= 55 ? 1 + t.length : 1 + n + t.length,
@@ -1321,7 +1321,7 @@ function yu(e) {
1321
1321
  return 4;
1322
1322
  throw new S("Length is too large.");
1323
1323
  }
1324
- function Rh(e) {
1324
+ function Oh(e) {
1325
1325
  const { chainId: t, contractAddress: n, nonce: r, to: s } = e, o = Y(ue([
1326
1326
  "0x05",
1327
1327
  we([U(t), n, U(r)])
@@ -1331,7 +1331,7 @@ function Rh(e) {
1331
1331
  async function wu(e) {
1332
1332
  const { authorization: t, signature: n } = e;
1333
1333
  return zt({
1334
- hash: Rh(t),
1334
+ hash: Oh(t),
1335
1335
  signature: n ?? t
1336
1336
  });
1337
1337
  }
@@ -2032,16 +2032,16 @@ Object.defineProperty(bn, "code", {
2032
2032
  writable: !0,
2033
2033
  value: -32006
2034
2034
  });
2035
- class O extends $t {
2035
+ class R extends $t {
2036
2036
  constructor(t) {
2037
2037
  super(t, {
2038
- code: O.code,
2038
+ code: R.code,
2039
2039
  name: "UserRejectedRequestError",
2040
2040
  shortMessage: "User rejected the request."
2041
2041
  });
2042
2042
  }
2043
2043
  }
2044
- Object.defineProperty(O, "code", {
2044
+ Object.defineProperty(R, "code", {
2045
2045
  enumerable: !0,
2046
2046
  configurable: !0,
2047
2047
  writable: !0,
@@ -2213,14 +2213,14 @@ function Hh(e) {
2213
2213
  ...typeof t.v < "u" && typeof t.yParity > "u" ? { v: U(t.v) } : {}
2214
2214
  }));
2215
2215
  }
2216
- function R(e, t, n) {
2216
+ function O(e, t, n) {
2217
2217
  const r = e[t.name];
2218
2218
  if (typeof r == "function")
2219
2219
  return r;
2220
2220
  const s = e[n];
2221
2221
  return typeof s == "function" ? s : (o) => t(e, o);
2222
2222
  }
2223
- const $h = 2n ** (8n - 1n) - 1n, jh = 2n ** (16n - 1n) - 1n, Gh = 2n ** (24n - 1n) - 1n, qh = 2n ** (32n - 1n) - 1n, Kh = 2n ** (40n - 1n) - 1n, Qh = 2n ** (48n - 1n) - 1n, Vh = 2n ** (56n - 1n) - 1n, Wh = 2n ** (64n - 1n) - 1n, Zh = 2n ** (72n - 1n) - 1n, Jh = 2n ** (80n - 1n) - 1n, Xh = 2n ** (88n - 1n) - 1n, Yh = 2n ** (96n - 1n) - 1n, em = 2n ** (104n - 1n) - 1n, tm = 2n ** (112n - 1n) - 1n, nm = 2n ** (120n - 1n) - 1n, rm = 2n ** (128n - 1n) - 1n, sm = 2n ** (136n - 1n) - 1n, om = 2n ** (144n - 1n) - 1n, am = 2n ** (152n - 1n) - 1n, im = 2n ** (160n - 1n) - 1n, cm = 2n ** (168n - 1n) - 1n, lm = 2n ** (176n - 1n) - 1n, um = 2n ** (184n - 1n) - 1n, dm = 2n ** (192n - 1n) - 1n, pm = 2n ** (200n - 1n) - 1n, fm = 2n ** (208n - 1n) - 1n, hm = 2n ** (216n - 1n) - 1n, mm = 2n ** (224n - 1n) - 1n, bm = 2n ** (232n - 1n) - 1n, ym = 2n ** (240n - 1n) - 1n, wm = 2n ** (248n - 1n) - 1n, gm = 2n ** (256n - 1n) - 1n, xm = -(2n ** (8n - 1n)), Cm = -(2n ** (16n - 1n)), Am = -(2n ** (24n - 1n)), vm = -(2n ** (32n - 1n)), Em = -(2n ** (40n - 1n)), km = -(2n ** (48n - 1n)), Im = -(2n ** (56n - 1n)), Sm = -(2n ** (64n - 1n)), Bm = -(2n ** (72n - 1n)), Tm = -(2n ** (80n - 1n)), Um = -(2n ** (88n - 1n)), Pm = -(2n ** (96n - 1n)), Nm = -(2n ** (104n - 1n)), Mm = -(2n ** (112n - 1n)), Fm = -(2n ** (120n - 1n)), Dm = -(2n ** (128n - 1n)), Om = -(2n ** (136n - 1n)), Rm = -(2n ** (144n - 1n)), Lm = -(2n ** (152n - 1n)), zm = -(2n ** (160n - 1n)), _m = -(2n ** (168n - 1n)), Hm = -(2n ** (176n - 1n)), $m = -(2n ** (184n - 1n)), jm = -(2n ** (192n - 1n)), Gm = -(2n ** (200n - 1n)), qm = -(2n ** (208n - 1n)), Km = -(2n ** (216n - 1n)), Qm = -(2n ** (224n - 1n)), Vm = -(2n ** (232n - 1n)), Wm = -(2n ** (240n - 1n)), Zm = -(2n ** (248n - 1n)), Jm = -(2n ** (256n - 1n)), Xm = 2n ** 8n - 1n, Bu = 2n ** 16n - 1n, Ym = 2n ** 24n - 1n, e0 = 2n ** 32n - 1n, t0 = 2n ** 40n - 1n, n0 = 2n ** 48n - 1n, r0 = 2n ** 56n - 1n, s0 = 2n ** 64n - 1n, o0 = 2n ** 72n - 1n, a0 = 2n ** 80n - 1n, i0 = 2n ** 88n - 1n, c0 = 2n ** 96n - 1n, l0 = 2n ** 104n - 1n, u0 = 2n ** 112n - 1n, d0 = 2n ** 120n - 1n, p0 = 2n ** 128n - 1n, f0 = 2n ** 136n - 1n, h0 = 2n ** 144n - 1n, m0 = 2n ** 152n - 1n, b0 = 2n ** 160n - 1n, y0 = 2n ** 168n - 1n, w0 = 2n ** 176n - 1n, g0 = 2n ** 184n - 1n, x0 = 2n ** 192n - 1n, C0 = 2n ** 200n - 1n, A0 = 2n ** 208n - 1n, v0 = 2n ** 216n - 1n, E0 = 2n ** 224n - 1n, k0 = 2n ** 232n - 1n, I0 = 2n ** 240n - 1n, S0 = 2n ** 248n - 1n, Sn = 2n ** 256n - 1n;
2223
+ const $h = 2n ** (8n - 1n) - 1n, jh = 2n ** (16n - 1n) - 1n, Gh = 2n ** (24n - 1n) - 1n, qh = 2n ** (32n - 1n) - 1n, Kh = 2n ** (40n - 1n) - 1n, Qh = 2n ** (48n - 1n) - 1n, Vh = 2n ** (56n - 1n) - 1n, Wh = 2n ** (64n - 1n) - 1n, Zh = 2n ** (72n - 1n) - 1n, Jh = 2n ** (80n - 1n) - 1n, Xh = 2n ** (88n - 1n) - 1n, Yh = 2n ** (96n - 1n) - 1n, em = 2n ** (104n - 1n) - 1n, tm = 2n ** (112n - 1n) - 1n, nm = 2n ** (120n - 1n) - 1n, rm = 2n ** (128n - 1n) - 1n, sm = 2n ** (136n - 1n) - 1n, om = 2n ** (144n - 1n) - 1n, am = 2n ** (152n - 1n) - 1n, im = 2n ** (160n - 1n) - 1n, cm = 2n ** (168n - 1n) - 1n, lm = 2n ** (176n - 1n) - 1n, um = 2n ** (184n - 1n) - 1n, dm = 2n ** (192n - 1n) - 1n, pm = 2n ** (200n - 1n) - 1n, fm = 2n ** (208n - 1n) - 1n, hm = 2n ** (216n - 1n) - 1n, mm = 2n ** (224n - 1n) - 1n, bm = 2n ** (232n - 1n) - 1n, ym = 2n ** (240n - 1n) - 1n, wm = 2n ** (248n - 1n) - 1n, gm = 2n ** (256n - 1n) - 1n, xm = -(2n ** (8n - 1n)), Cm = -(2n ** (16n - 1n)), Am = -(2n ** (24n - 1n)), vm = -(2n ** (32n - 1n)), Em = -(2n ** (40n - 1n)), km = -(2n ** (48n - 1n)), Im = -(2n ** (56n - 1n)), Sm = -(2n ** (64n - 1n)), Bm = -(2n ** (72n - 1n)), Tm = -(2n ** (80n - 1n)), Um = -(2n ** (88n - 1n)), Pm = -(2n ** (96n - 1n)), Nm = -(2n ** (104n - 1n)), Mm = -(2n ** (112n - 1n)), Fm = -(2n ** (120n - 1n)), Dm = -(2n ** (128n - 1n)), Rm = -(2n ** (136n - 1n)), Om = -(2n ** (144n - 1n)), Lm = -(2n ** (152n - 1n)), zm = -(2n ** (160n - 1n)), _m = -(2n ** (168n - 1n)), Hm = -(2n ** (176n - 1n)), $m = -(2n ** (184n - 1n)), jm = -(2n ** (192n - 1n)), Gm = -(2n ** (200n - 1n)), qm = -(2n ** (208n - 1n)), Km = -(2n ** (216n - 1n)), Qm = -(2n ** (224n - 1n)), Vm = -(2n ** (232n - 1n)), Wm = -(2n ** (240n - 1n)), Zm = -(2n ** (248n - 1n)), Jm = -(2n ** (256n - 1n)), Xm = 2n ** 8n - 1n, Bu = 2n ** 16n - 1n, Ym = 2n ** 24n - 1n, e0 = 2n ** 32n - 1n, t0 = 2n ** 40n - 1n, n0 = 2n ** 48n - 1n, r0 = 2n ** 56n - 1n, s0 = 2n ** 64n - 1n, o0 = 2n ** 72n - 1n, a0 = 2n ** 80n - 1n, i0 = 2n ** 88n - 1n, c0 = 2n ** 96n - 1n, l0 = 2n ** 104n - 1n, u0 = 2n ** 112n - 1n, d0 = 2n ** 120n - 1n, p0 = 2n ** 128n - 1n, f0 = 2n ** 136n - 1n, h0 = 2n ** 144n - 1n, m0 = 2n ** 152n - 1n, b0 = 2n ** 160n - 1n, y0 = 2n ** 168n - 1n, w0 = 2n ** 176n - 1n, g0 = 2n ** 184n - 1n, x0 = 2n ** 192n - 1n, C0 = 2n ** 200n - 1n, A0 = 2n ** 208n - 1n, v0 = 2n ** 216n - 1n, E0 = 2n ** 224n - 1n, k0 = 2n ** 232n - 1n, I0 = 2n ** 240n - 1n, S0 = 2n ** 248n - 1n, Sn = 2n ** 256n - 1n;
2224
2224
  function jt(e) {
2225
2225
  const { account: t, gasPrice: n, maxFeePerGas: r, maxPriorityFeePerGas: s, to: o } = e, a = t ? de(t) : void 0;
2226
2226
  if (a && !Z(a.address))
@@ -2367,7 +2367,7 @@ async function Nu(e, t) {
2367
2367
  try {
2368
2368
  const i = ((o = r == null ? void 0 : r.fees) == null ? void 0 : o.maxPriorityFeePerGas) ?? ((a = r == null ? void 0 : r.fees) == null ? void 0 : a.defaultPriorityFee);
2369
2369
  if (typeof i == "function") {
2370
- const l = n || await R(e, Je, "getBlock")({}), u = await i({
2370
+ const l = n || await O(e, Je, "getBlock")({}), u = await i({
2371
2371
  block: l,
2372
2372
  client: e,
2373
2373
  request: s
@@ -2384,8 +2384,8 @@ async function Nu(e, t) {
2384
2384
  return L(c);
2385
2385
  } catch {
2386
2386
  const [i, c] = await Promise.all([
2387
- n ? Promise.resolve(n) : R(e, Je, "getBlock")({}),
2388
- R(e, Vs, "getGasPrice")({})
2387
+ n ? Promise.resolve(n) : O(e, Je, "getBlock")({}),
2388
+ O(e, Vs, "getGasPrice")({})
2389
2389
  ]);
2390
2390
  if (typeof i.baseFeePerGas != "bigint")
2391
2391
  throw new Gs();
@@ -2408,7 +2408,7 @@ async function ca(e, t) {
2408
2408
  })();
2409
2409
  if (a < 1)
2410
2410
  throw new Tu();
2411
- const c = 10 ** (((p = a.toString().split(".")[1]) == null ? void 0 : p.length) ?? 0), l = (m) => m * BigInt(Math.ceil(a * c)) / BigInt(c), u = n || await R(e, Je, "getBlock")({});
2411
+ const c = 10 ** (((p = a.toString().split(".")[1]) == null ? void 0 : p.length) ?? 0), l = (m) => m * BigInt(Math.ceil(a * c)) / BigInt(c), u = n || await O(e, Je, "getBlock")({});
2412
2412
  if (typeof ((f = r == null ? void 0 : r.fees) == null ? void 0 : f.estimateFeesPerGas) == "function") {
2413
2413
  const m = await r.fees.estimateFeesPerGas({
2414
2414
  block: n,
@@ -2434,7 +2434,7 @@ async function ca(e, t) {
2434
2434
  };
2435
2435
  }
2436
2436
  return {
2437
- gasPrice: (s == null ? void 0 : s.gasPrice) ?? l(await R(e, Vs, "getGasPrice")({}))
2437
+ gasPrice: (s == null ? void 0 : s.gasPrice) ?? l(await O(e, Vs, "getGasPrice")({}))
2438
2438
  };
2439
2439
  }
2440
2440
  class Fu extends S {
@@ -2485,7 +2485,7 @@ class Du extends S {
2485
2485
  });
2486
2486
  }
2487
2487
  }
2488
- class Ou extends S {
2488
+ class Ru extends S {
2489
2489
  constructor() {
2490
2490
  super("state and stateDiff are set on the same account.", {
2491
2491
  name: "StateAssignmentConflictError"
@@ -2531,12 +2531,12 @@ function P0(e) {
2531
2531
  const { balance: t, nonce: n, state: r, stateDiff: s, code: o } = e, a = {};
2532
2532
  if (o !== void 0 && (a.code = o), t !== void 0 && (a.balance = U(t)), n !== void 0 && (a.nonce = U(n)), r !== void 0 && (a.state = Nc(r)), s !== void 0) {
2533
2533
  if (a.state)
2534
- throw new Ou();
2534
+ throw new Ru();
2535
2535
  a.stateDiff = Nc(s);
2536
2536
  }
2537
2537
  return a;
2538
2538
  }
2539
- function Ru(e) {
2539
+ function Ou(e) {
2540
2540
  if (!e)
2541
2541
  return;
2542
2542
  const t = {};
@@ -2574,7 +2574,7 @@ async function Gt(e, t) {
2574
2574
  // to compute them.
2575
2575
  (r == null ? void 0 : r.type) === "local" ? void 0 : ["blobVersionedHashes"]
2576
2576
  )
2577
- }), k = (d ? U(d) : void 0) || p, I = Ru(g), B = await (async () => {
2577
+ }), k = (d ? U(d) : void 0) || p, I = Ou(g), B = await (async () => {
2578
2578
  if (C.to)
2579
2579
  return C.to;
2580
2580
  if (c && c.length > 0)
@@ -2783,7 +2783,7 @@ const D0 = /* @__PURE__ */ new Uint32Array([
2783
2783
  528734635,
2784
2784
  1541459225
2785
2785
  ]), st = /* @__PURE__ */ new Uint32Array(64);
2786
- class O0 extends Lu {
2786
+ class R0 extends Lu {
2787
2787
  constructor() {
2788
2788
  super(64, 32, 8, !1), this.A = rt[0] | 0, this.B = rt[1] | 0, this.C = rt[2] | 0, this.D = rt[3] | 0, this.E = rt[4] | 0, this.F = rt[5] | 0, this.G = rt[6] | 0, this.H = rt[7] | 0;
2789
2789
  }
@@ -2799,12 +2799,12 @@ class O0 extends Lu {
2799
2799
  for (let d = 0; d < 16; d++, n += 4)
2800
2800
  st[d] = t.getUint32(n, !1);
2801
2801
  for (let d = 16; d < 64; d++) {
2802
- const p = st[d - 15], f = st[d - 2], m = Oe(p, 7) ^ Oe(p, 18) ^ p >>> 3, h = Oe(f, 17) ^ Oe(f, 19) ^ f >>> 10;
2802
+ const p = st[d - 15], f = st[d - 2], m = Re(p, 7) ^ Re(p, 18) ^ p >>> 3, h = Re(f, 17) ^ Re(f, 19) ^ f >>> 10;
2803
2803
  st[d] = h + st[d - 7] + m + st[d - 16] | 0;
2804
2804
  }
2805
2805
  let { A: r, B: s, C: o, D: a, E: i, F: c, G: l, H: u } = this;
2806
2806
  for (let d = 0; d < 64; d++) {
2807
- const p = Oe(i, 6) ^ Oe(i, 11) ^ Oe(i, 25), f = u + p + M0(i, c, l) + D0[d] + st[d] | 0, h = (Oe(r, 2) ^ Oe(r, 13) ^ Oe(r, 22)) + F0(r, s, o) | 0;
2807
+ const p = Re(i, 6) ^ Re(i, 11) ^ Re(i, 25), f = u + p + M0(i, c, l) + D0[d] + st[d] | 0, h = (Re(r, 2) ^ Re(r, 13) ^ Re(r, 22)) + F0(r, s, o) | 0;
2808
2808
  u = l, l = c, c = i, i = a + f | 0, a = o, o = s, s = r, r = f + h | 0;
2809
2809
  }
2810
2810
  r = r + this.A | 0, s = s + this.B | 0, o = o + this.C | 0, a = a + this.D | 0, i = i + this.E | 0, c = c + this.F | 0, l = l + this.G | 0, u = u + this.H | 0, this.set(r, s, o, a, i, c, l, u);
@@ -2816,7 +2816,7 @@ class O0 extends Lu {
2816
2816
  this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0);
2817
2817
  }
2818
2818
  }
2819
- const zu = /* @__PURE__ */ ja(() => new O0());
2819
+ const zu = /* @__PURE__ */ ja(() => new R0());
2820
2820
  function ii(e, t) {
2821
2821
  const n = t || "hex", r = zu(_(e, { strict: !1 }) ? ie(e) : e);
2822
2822
  return n === "bytes" ? r : M(r);
@@ -2838,7 +2838,7 @@ function li(e) {
2838
2838
  const Mc = 6, _u = 32, ui = 4096, Hu = _u * ui, Fc = Hu * Mc - // terminator byte (0x80).
2839
2839
  1 - // zero byte (0x00) appended to each field element.
2840
2840
  1 * ui * Mc, $u = 1;
2841
- class R0 extends S {
2841
+ class O0 extends S {
2842
2842
  constructor({ maxSize: t, size: n }) {
2843
2843
  super("Blob size is too large.", {
2844
2844
  metaMessages: [`Max: ${t} bytes`, `Given: ${n} bytes`],
@@ -2875,7 +2875,7 @@ function Gu(e) {
2875
2875
  if (!r)
2876
2876
  throw new ju();
2877
2877
  if (r > Fc)
2878
- throw new R0({
2878
+ throw new O0({
2879
2879
  maxSize: Fc,
2880
2880
  size: r
2881
2881
  });
@@ -2931,11 +2931,11 @@ async function qt(e, t) {
2931
2931
  const { account: n = e.account, blobs: r, chain: s, gas: o, kzg: a, nonce: i, nonceManager: c, parameters: l = qu, type: u } = t, d = n ? de(n) : void 0, p = { ...t, ...d ? { from: d == null ? void 0 : d.address } : {} };
2932
2932
  let f;
2933
2933
  async function m() {
2934
- return f || (f = await R(e, Je, "getBlock")({ blockTag: "latest" }), f);
2934
+ return f || (f = await O(e, Je, "getBlock")({ blockTag: "latest" }), f);
2935
2935
  }
2936
2936
  let h;
2937
2937
  async function b() {
2938
- return h || (s ? s.id : typeof t.chainId < "u" ? t.chainId : (h = await R(e, mr, "getChainId")({}), h));
2938
+ return h || (s ? s.id : typeof t.chainId < "u" ? t.chainId : (h = await O(e, mr, "getChainId")({}), h));
2939
2939
  }
2940
2940
  if ((l.includes("blobVersionedHashes") || l.includes("sidecars")) && r && a) {
2941
2941
  const y = Js({ blobs: r, kzg: a });
@@ -2965,7 +2965,7 @@ async function qt(e, t) {
2965
2965
  client: e
2966
2966
  });
2967
2967
  } else
2968
- p.nonce = await R(e, Zs, "getTransactionCount")({
2968
+ p.nonce = await O(e, Zs, "getTransactionCount")({
2969
2969
  address: d.address,
2970
2970
  blockTag: "pending"
2971
2971
  });
@@ -3001,7 +3001,7 @@ async function qt(e, t) {
3001
3001
  });
3002
3002
  p.gasPrice = w;
3003
3003
  }
3004
- return l.includes("gas") && typeof o > "u" && (p.gas = await R(e, Gt, "estimateGas")({
3004
+ return l.includes("gas") && typeof o > "u" && (p.gas = await O(e, Gt, "estimateGas")({
3005
3005
  ...p,
3006
3006
  account: d ? { address: d.address, type: "json-rpc" } : void 0
3007
3007
  })), jt(p), delete p.parameters, p;
@@ -3034,7 +3034,7 @@ async function br(e, t) {
3034
3034
  })();
3035
3035
  if (b.type === "json-rpc") {
3036
3036
  let C;
3037
- r !== null && (C = await R(e, mr, "getChainId")({}), Za({
3037
+ r !== null && (C = await O(e, mr, "getChainId")({}), Za({
3038
3038
  currentChainId: C,
3039
3039
  chain: r
3040
3040
  }));
@@ -3062,7 +3062,7 @@ async function br(e, t) {
3062
3062
  }, { retryCount: 0 });
3063
3063
  }
3064
3064
  if (b.type === "local") {
3065
- const C = await R(e, qt, "prepareTransactionRequest")({
3065
+ const C = await O(e, qt, "prepareTransactionRequest")({
3066
3066
  account: b,
3067
3067
  accessList: s,
3068
3068
  authorizationList: o,
@@ -3083,7 +3083,7 @@ async function br(e, t) {
3083
3083
  }), A = (E = r == null ? void 0 : r.serializers) == null ? void 0 : E.transaction, k = await b.signTransaction(C, {
3084
3084
  serializer: A
3085
3085
  });
3086
- return await R(e, pi, "sendRawTransaction")({
3086
+ return await O(e, pi, "sendRawTransaction")({
3087
3087
  serializedTransaction: k
3088
3088
  });
3089
3089
  }
@@ -3269,7 +3269,7 @@ const As = [
3269
3269
  ],
3270
3270
  outputs: [{ name: "", type: "string" }]
3271
3271
  }
3272
- ], Oc = [
3272
+ ], Rc = [
3273
3273
  {
3274
3274
  name: "addr",
3275
3275
  type: "function",
@@ -4526,7 +4526,7 @@ function bt(e, t) {
4526
4526
  if (X(n) === 0 && e.length > 0)
4527
4527
  throw new cr();
4528
4528
  if (X(t) && X(t) < 32)
4529
- throw new Oa({
4529
+ throw new Ra({
4530
4530
  data: typeof t == "string" ? t : W(t),
4531
4531
  params: e,
4532
4532
  size: X(t)
@@ -4565,16 +4565,16 @@ function sn(e, t, { staticPosition: n }) {
4565
4565
  docsPath: "/docs/contract/decodeAbiParameters"
4566
4566
  });
4567
4567
  }
4568
- const Rc = 32, la = 32;
4568
+ const Oc = 32, la = 32;
4569
4569
  function K0(e) {
4570
4570
  const t = e.readBytes(32);
4571
4571
  return [En(W(qa(t, -20))), 32];
4572
4572
  }
4573
4573
  function Q0(e, t, { length: n, staticPosition: r }) {
4574
4574
  if (!n) {
4575
- const a = Fe(e.readBytes(la)), i = r + a, c = i + Rc;
4575
+ const a = Fe(e.readBytes(la)), i = r + a, c = i + Oc;
4576
4576
  e.setPosition(i);
4577
- const l = Fe(e.readBytes(Rc)), u = Jn(t);
4577
+ const l = Fe(e.readBytes(Oc)), u = Jn(t);
4578
4578
  let d = 0;
4579
4579
  const p = [];
4580
4580
  for (let f = 0; f < l; ++f) {
@@ -5790,7 +5790,7 @@ function no(e) {
5790
5790
  return n.byteLength !== r + 1 ? n.slice(0, r + 1) : n;
5791
5791
  }
5792
5792
  const Mb = 3;
5793
- function Ot(e, { abi: t, address: n, args: r, docsPath: s, functionName: o, sender: a }) {
5793
+ function Rt(e, { abi: t, address: n, args: r, docsPath: s, functionName: o, sender: a }) {
5794
5794
  const { code: i, data: c, message: l, shortMessage: u } = e instanceof to ? e : e instanceof S ? e.walk((p) => "data" in p) || e.walk() : {}, d = e instanceof cr ? new vd({ functionName: o }) : [Mb, lt.code].includes(i) && (c || l || u) ? new ks({
5795
5795
  abi: t,
5796
5796
  data: typeof c == "object" ? c.data : c,
@@ -5855,7 +5855,7 @@ async function wt(e, t) {
5855
5855
  throw new S("Cannot provide both `code` & `factory`/`factoryData` as parameters.");
5856
5856
  if (c && w)
5857
5857
  throw new S("Cannot provide both `code` & `to` as parameters.");
5858
- const A = c && l, k = u && d && w && l, I = A || k, B = A ? Rb({
5858
+ const A = c && l, k = u && d && w && l, I = A || k, B = A ? Ob({
5859
5859
  code: c,
5860
5860
  data: l
5861
5861
  }) : k ? Lb({
@@ -5866,7 +5866,7 @@ async function wt(e, t) {
5866
5866
  }) : l;
5867
5867
  try {
5868
5868
  jt(t);
5869
- const P = (s ? U(s) : void 0) || o, D = Ru(E), H = (q = (F = (G = e.chain) == null ? void 0 : G.formatters) == null ? void 0 : F.transactionRequest) == null ? void 0 : q.format, Q = (H || mt)({
5869
+ const P = (s ? U(s) : void 0) || o, D = Ou(E), H = (q = (F = (G = e.chain) == null ? void 0 : G.formatters) == null ? void 0 : F.transactionRequest) == null ? void 0 : q.format, Q = (H || mt)({
5870
5870
  // Pick out extra data that might exist on the chain's transaction request type.
5871
5871
  ...hr(g, { format: H }),
5872
5872
  from: C == null ? void 0 : C.address,
@@ -5884,7 +5884,7 @@ async function wt(e, t) {
5884
5884
  });
5885
5885
  if (r && Db({ request: Q }) && !D)
5886
5886
  try {
5887
- return await Ob(e, {
5887
+ return await Rb(e, {
5888
5888
  ...Q,
5889
5889
  blockNumber: s,
5890
5890
  blockTag: o
@@ -5917,7 +5917,7 @@ function Db({ request: e }) {
5917
5917
  const { data: t, to: n, ...r } = e;
5918
5918
  return !(!t || t.startsWith(Fb) || !n || Object.values(r).filter((s) => typeof s < "u").length > 0);
5919
5919
  }
5920
- async function Ob(e, t) {
5920
+ async function Rb(e, t) {
5921
5921
  var h;
5922
5922
  const { batchSize: n = 1024, wait: r = 0 } = typeof ((h = e.batch) == null ? void 0 : h.multicall) == "object" ? e.batch.multicall : {}, { blockNumber: s, blockTag: o = "latest", data: a, multicallAddress: i, to: c } = t;
5923
5923
  let l = i;
@@ -5967,7 +5967,7 @@ async function Ob(e, t) {
5967
5967
  throw new to({ data: f });
5968
5968
  return f === "0x" ? { data: void 0 } : { data: f };
5969
5969
  }
5970
- function Rb(e) {
5970
+ function Ob(e) {
5971
5971
  const { code: t, data: n } = e;
5972
5972
  return dr({
5973
5973
  abi: bi(["constructor(bytes, bytes)"]),
@@ -5997,7 +5997,7 @@ async function Ie(e, t) {
5997
5997
  functionName: o
5998
5998
  });
5999
5999
  try {
6000
- const { data: c } = await R(e, wt, "call")({
6000
+ const { data: c } = await O(e, wt, "call")({
6001
6001
  ...a,
6002
6002
  data: i,
6003
6003
  to: r
@@ -6009,7 +6009,7 @@ async function Ie(e, t) {
6009
6009
  data: c || "0x"
6010
6010
  });
6011
6011
  } catch (c) {
6012
- throw Ot(c, {
6012
+ throw Rt(c, {
6013
6013
  abi: n,
6014
6014
  address: r,
6015
6015
  args: s,
@@ -6031,7 +6031,7 @@ async function Ci(e, { blockNumber: t, blockTag: n, coinType: r, name: s, gatewa
6031
6031
  }
6032
6032
  try {
6033
6033
  const l = Ye({
6034
- abi: Oc,
6034
+ abi: Rc,
6035
6035
  functionName: "addr",
6036
6036
  ...r != null ? { args: [qn(s), BigInt(r)] } : { args: [qn(s)] }
6037
6037
  }), u = {
@@ -6041,14 +6041,14 @@ async function Ci(e, { blockNumber: t, blockTag: n, coinType: r, name: s, gatewa
6041
6041
  args: [M(no(s)), l],
6042
6042
  blockNumber: t,
6043
6043
  blockTag: n
6044
- }, d = R(e, Ie, "readContract"), p = o ? await d({
6044
+ }, d = O(e, Ie, "readContract"), p = o ? await d({
6045
6045
  ...u,
6046
6046
  args: [...u.args, o]
6047
6047
  }) : await d(u);
6048
6048
  if (p[0] === "0x")
6049
6049
  return null;
6050
6050
  const f = Kt({
6051
- abi: Oc,
6051
+ abi: Rc,
6052
6052
  args: r != null ? [qn(s), BigInt(r)] : void 0,
6053
6053
  functionName: "addr",
6054
6054
  data: p[0]
@@ -6269,7 +6269,7 @@ async function vi(e, { blockNumber: t, blockTag: n, name: r, key: s, gatewayUrls
6269
6269
  ],
6270
6270
  blockNumber: t,
6271
6271
  blockTag: n
6272
- }, u = R(e, Ie, "readContract"), d = o ? await u({
6272
+ }, u = O(e, Ie, "readContract"), d = o ? await u({
6273
6273
  ...l,
6274
6274
  args: [...l.args, o]
6275
6275
  }) : await u(l);
@@ -6290,7 +6290,7 @@ async function vi(e, { blockNumber: t, blockTag: n, name: r, key: s, gatewayUrls
6290
6290
  }
6291
6291
  }
6292
6292
  async function Ei(e, { blockNumber: t, blockTag: n, assetGatewayUrls: r, name: s, gatewayUrls: o, strict: a, universalResolverAddress: i }) {
6293
- const c = await R(e, vi, "getEnsText")({
6293
+ const c = await O(e, vi, "getEnsText")({
6294
6294
  blockNumber: t,
6295
6295
  blockTag: n,
6296
6296
  key: "avatar",
@@ -6330,7 +6330,7 @@ async function ki(e, { address: t, blockNumber: n, blockTag: r, gatewayUrls: s,
6330
6330
  args: [M(no(c))],
6331
6331
  blockNumber: n,
6332
6332
  blockTag: r
6333
- }, u = R(e, Ie, "readContract"), [d, p] = s ? await u({
6333
+ }, u = O(e, Ie, "readContract"), [d, p] = s ? await u({
6334
6334
  ...l,
6335
6335
  args: [...l.args, s]
6336
6336
  }) : await u(l);
@@ -6354,7 +6354,7 @@ async function Fd(e, { blockNumber: t, blockTag: n, name: r, universalResolverAd
6354
6354
  contract: "ensUniversalResolver"
6355
6355
  });
6356
6356
  }
6357
- const [a] = await R(e, Ie, "readContract")({
6357
+ const [a] = await O(e, Ie, "readContract")({
6358
6358
  address: o,
6359
6359
  abi: [
6360
6360
  {
@@ -6450,7 +6450,7 @@ async function Ii(e, t) {
6450
6450
  type: "event"
6451
6451
  };
6452
6452
  }
6453
- async function Od(e, { address: t, args: n, event: r, events: s, fromBlock: o, strict: a, toBlock: i } = {}) {
6453
+ async function Rd(e, { address: t, args: n, event: r, events: s, fromBlock: o, strict: a, toBlock: i } = {}) {
6454
6454
  const c = s ?? (r ? [r] : void 0), l = so(e, {
6455
6455
  method: "eth_newFilter"
6456
6456
  });
@@ -6483,7 +6483,7 @@ async function Od(e, { address: t, args: n, event: r, events: s, fromBlock: o, s
6483
6483
  type: "event"
6484
6484
  };
6485
6485
  }
6486
- async function Rd(e) {
6486
+ async function Od(e) {
6487
6487
  const t = so(e, {
6488
6488
  method: "eth_newPendingTransactionFilter"
6489
6489
  }), n = await e.request({
@@ -6503,14 +6503,14 @@ async function Ld(e, t) {
6503
6503
  functionName: o
6504
6504
  });
6505
6505
  try {
6506
- return await R(e, Gt, "estimateGas")({
6506
+ return await O(e, Gt, "estimateGas")({
6507
6507
  data: i,
6508
6508
  to: r,
6509
6509
  ...a
6510
6510
  });
6511
6511
  } catch (c) {
6512
6512
  const l = a.account ? de(a.account) : void 0;
6513
- throw Ot(c, {
6513
+ throw Rt(c, {
6514
6514
  abi: n,
6515
6515
  address: r,
6516
6516
  args: s,
@@ -6620,7 +6620,7 @@ function oo(e) {
6620
6620
  p[m[b].name] = h[b];
6621
6621
  } catch (h) {
6622
6622
  if (o)
6623
- throw h instanceof Oa || h instanceof mu ? new an({
6623
+ throw h instanceof Ra || h instanceof mu ? new an({
6624
6624
  abiItem: c,
6625
6625
  data: n,
6626
6626
  params: m,
@@ -6705,7 +6705,7 @@ function ay(e) {
6705
6705
  return i ? (Array.isArray(a) ? a : [a]).some((l) => s(i, l, t[o])) : !1;
6706
6706
  }) : !1;
6707
6707
  }
6708
- function Re(e, { args: t, eventName: n } = {}) {
6708
+ function Oe(e, { args: t, eventName: n } = {}) {
6709
6709
  return {
6710
6710
  ...e,
6711
6711
  blockHash: e.blockHash ? e.blockHash : null,
@@ -6739,7 +6739,7 @@ async function Si(e, { address: t, blockHash: n, fromBlock: r, toBlock: s, event
6739
6739
  }
6740
6740
  ]
6741
6741
  });
6742
- const f = p.map((m) => Re(m));
6742
+ const f = p.map((m) => Oe(m));
6743
6743
  return u ? ao({
6744
6744
  abi: u,
6745
6745
  args: i,
@@ -6749,7 +6749,7 @@ async function Si(e, { address: t, blockHash: n, fromBlock: r, toBlock: s, event
6749
6749
  }
6750
6750
  async function Bi(e, t) {
6751
6751
  const { abi: n, address: r, args: s, blockHash: o, eventName: a, fromBlock: i, toBlock: c, strict: l } = t, u = a ? Xe({ abi: n, name: a }) : void 0, d = u ? void 0 : n.filter((p) => p.type === "event");
6752
- return R(e, Si, "getLogs")({
6752
+ return O(e, Si, "getLogs")({
6753
6753
  address: r,
6754
6754
  args: s,
6755
6755
  blockHash: o,
@@ -6776,7 +6776,7 @@ class iy extends S {
6776
6776
  async function cy(e, t) {
6777
6777
  const { address: n, factory: r, factoryData: s } = t;
6778
6778
  try {
6779
- const [o, a, i, c, l, u, d] = await R(e, Ie, "readContract")({
6779
+ const [o, a, i, c, l, u, d] = await O(e, Ie, "readContract")({
6780
6780
  abi: ly,
6781
6781
  address: n,
6782
6782
  functionName: "eip712Domain",
@@ -6843,7 +6843,7 @@ async function io(e, { filter: t }) {
6843
6843
  });
6844
6844
  if (typeof r[0] == "string")
6845
6845
  return r;
6846
- const s = r.map((o) => Re(o));
6846
+ const s = r.map((o) => Oe(o));
6847
6847
  return !("abi" in t) || !t.abi ? s : ao({
6848
6848
  abi: t.abi,
6849
6849
  logs: s,
@@ -6854,7 +6854,7 @@ async function dy(e, { filter: t }) {
6854
6854
  const n = t.strict ?? !1, s = (await t.request({
6855
6855
  method: "eth_getFilterLogs",
6856
6856
  params: [t.id]
6857
- })).map((o) => Re(o));
6857
+ })).map((o) => Oe(o));
6858
6858
  return t.abi ? ao({
6859
6859
  abi: t.abi,
6860
6860
  logs: s,
@@ -6893,8 +6893,8 @@ async function Pn(e, { blockHash: t, blockNumber: n, blockTag: r, hash: s, index
6893
6893
  }
6894
6894
  async function $d(e, { hash: t, transactionReceipt: n }) {
6895
6895
  const [r, s] = await Promise.all([
6896
- R(e, Un, "getBlockNumber")({}),
6897
- t ? R(e, Pn, "getTransaction")({ hash: t }) : void 0
6896
+ O(e, Un, "getBlockNumber")({}),
6897
+ t ? O(e, Pn, "getTransaction")({ hash: t }) : void 0
6898
6898
  ]), o = (n == null ? void 0 : n.blockNumber) || (s == null ? void 0 : s.blockNumber);
6899
6899
  return o ? r - o + 1n : 0n;
6900
6900
  }
@@ -6910,7 +6910,7 @@ function Ti(e) {
6910
6910
  cumulativeGasUsed: e.cumulativeGasUsed ? BigInt(e.cumulativeGasUsed) : null,
6911
6911
  effectiveGasPrice: e.effectiveGasPrice ? BigInt(e.effectiveGasPrice) : null,
6912
6912
  gasUsed: e.gasUsed ? BigInt(e.gasUsed) : null,
6913
- logs: e.logs ? e.logs.map((n) => Re(n)) : null,
6913
+ logs: e.logs ? e.logs.map((n) => Oe(n)) : null,
6914
6914
  to: e.to ? e.to : null,
6915
6915
  transactionIndex: e.transactionIndex ? V(e.transactionIndex) : null,
6916
6916
  status: e.status ? py[e.status] : null,
@@ -6987,7 +6987,7 @@ async function Pi(e, t) {
6987
6987
  }
6988
6988
  ];
6989
6989
  } catch (C) {
6990
- const A = Ot(C, {
6990
+ const A = Rt(C, {
6991
6991
  abi: w,
6992
6992
  address: v,
6993
6993
  args: E,
@@ -7006,7 +7006,7 @@ async function Pi(e, t) {
7006
7006
  ];
7007
7007
  }
7008
7008
  }
7009
- const m = await Promise.allSettled(d.map((y) => R(e, Ie, "readContract")({
7009
+ const m = await Promise.allSettled(d.map((y) => O(e, Ie, "readContract")({
7010
7010
  abi: As,
7011
7011
  address: u,
7012
7012
  args: [y],
@@ -7044,7 +7044,7 @@ async function Pi(e, t) {
7044
7044
  });
7045
7045
  h.push(n ? { result: G, status: "success" } : G);
7046
7046
  } catch (G) {
7047
- const F = Ot(G, {
7047
+ const F = Rt(G, {
7048
7048
  abi: k,
7049
7049
  address: I,
7050
7050
  args: N,
@@ -7061,17 +7061,17 @@ async function Pi(e, t) {
7061
7061
  throw new S("multicall results mismatch");
7062
7062
  return h;
7063
7063
  }
7064
- const Oo = /* @__PURE__ */ new Map(), Gc = /* @__PURE__ */ new Map();
7064
+ const Ro = /* @__PURE__ */ new Map(), Gc = /* @__PURE__ */ new Map();
7065
7065
  let yy = 0;
7066
7066
  function pt(e, t, n) {
7067
- const r = ++yy, s = () => Oo.get(e) || [], o = () => {
7067
+ const r = ++yy, s = () => Ro.get(e) || [], o = () => {
7068
7068
  const u = s();
7069
- Oo.set(e, u.filter((d) => d.id !== r));
7069
+ Ro.set(e, u.filter((d) => d.id !== r));
7070
7070
  }, a = () => {
7071
7071
  const u = Gc.get(e);
7072
7072
  s().length === 1 && u && u(), o();
7073
7073
  }, i = s();
7074
- if (Oo.set(e, [
7074
+ if (Ro.set(e, [
7075
7075
  ...i,
7076
7076
  { id: r, fns: t }
7077
7077
  ]), i && i.length > 0)
@@ -7121,7 +7121,7 @@ function jd(e, { blockTag: t = "latest", emitMissed: n = !1, emitOnBegin: r = !1
7121
7121
  return pt(m, { onBlock: s, onError: o }, (h) => wr(async () => {
7122
7122
  var b;
7123
7123
  try {
7124
- const y = await R(e, Je, "getBlock")({
7124
+ const y = await O(e, Je, "getBlock")({
7125
7125
  blockTag: t,
7126
7126
  includeTransactions: u
7127
7127
  });
@@ -7130,7 +7130,7 @@ function jd(e, { blockTag: t = "latest", emitMissed: n = !1, emitOnBegin: r = !1
7130
7130
  return;
7131
7131
  if (y.number - d.number > 1 && n)
7132
7132
  for (let w = (d == null ? void 0 : d.number) + 1n; w < y.number; w++) {
7133
- const v = await R(e, Je, "getBlock")({
7133
+ const v = await O(e, Je, "getBlock")({
7134
7134
  blockNumber: w,
7135
7135
  includeTransactions: u
7136
7136
  });
@@ -7193,7 +7193,7 @@ function Ni(e, { emitOnBegin: t = !1, emitMissed: n = !1, onBlockNumber: r, onEr
7193
7193
  return pt(d, { onBlockNumber: r, onError: s }, (p) => wr(async () => {
7194
7194
  var f;
7195
7195
  try {
7196
- const m = await R(e, Un, "getBlockNumber")({ cacheTime: 0 });
7196
+ const m = await O(e, Un, "getBlockNumber")({ cacheTime: 0 });
7197
7197
  if (c) {
7198
7198
  if (m === c)
7199
7199
  return;
@@ -7275,7 +7275,7 @@ function wy(e, { address: t, args: n, batch: r = !0, event: s, events: o, fromBl
7275
7275
  var C;
7276
7276
  if (!E) {
7277
7277
  try {
7278
- v = await R(e, Od, "createEventFilter")({
7278
+ v = await O(e, Rd, "createEventFilter")({
7279
7279
  address: t,
7280
7280
  args: n,
7281
7281
  event: s,
@@ -7291,10 +7291,10 @@ function wy(e, { address: t, args: n, batch: r = !0, event: s, events: o, fromBl
7291
7291
  try {
7292
7292
  let A;
7293
7293
  if (v)
7294
- A = await R(e, io, "getFilterChanges")({ filter: v });
7294
+ A = await O(e, io, "getFilterChanges")({ filter: v });
7295
7295
  else {
7296
- const k = await R(e, Un, "getBlockNumber")({});
7297
- w && w !== k ? A = await R(e, Si, "getLogs")({
7296
+ const k = await O(e, Un, "getBlockNumber")({});
7297
+ w && w !== k ? A = await O(e, Si, "getLogs")({
7298
7298
  address: t,
7299
7299
  args: n,
7300
7300
  event: s,
@@ -7318,7 +7318,7 @@ function wy(e, { address: t, args: n, batch: r = !0, event: s, events: o, fromBl
7318
7318
  interval: u
7319
7319
  });
7320
7320
  return async () => {
7321
- v && await R(e, co, "uninstallFilter")({ filter: v }), g();
7321
+ v && await O(e, co, "uninstallFilter")({ filter: v }), g();
7322
7322
  };
7323
7323
  });
7324
7324
  })() : (() => {
@@ -7351,7 +7351,7 @@ function wy(e, { address: t, args: n, batch: r = !0, event: s, events: o, fromBl
7351
7351
  data: A.data,
7352
7352
  topics: A.topics,
7353
7353
  strict: f
7354
- }), N = Re(A, { args: B, eventName: I });
7354
+ }), N = Oe(A, { args: B, eventName: I });
7355
7355
  c([N]);
7356
7356
  } catch (I) {
7357
7357
  let B, N;
@@ -7360,7 +7360,7 @@ function wy(e, { address: t, args: n, batch: r = !0, event: s, events: o, fromBl
7360
7360
  return;
7361
7361
  B = I.abiItem.name, N = (k = I.abiItem.inputs) == null ? void 0 : k.some((F) => !("name" in F && F.name));
7362
7362
  }
7363
- const G = Re(A, {
7363
+ const G = Oe(A, {
7364
7364
  args: N ? [] : {},
7365
7365
  eventName: B
7366
7366
  });
@@ -7393,12 +7393,12 @@ function Gd(e, { batch: t = !0, onError: n, onTransactions: r, poll: s, pollingI
7393
7393
  try {
7394
7394
  if (!d)
7395
7395
  try {
7396
- d = await R(e, Rd, "createPendingTransactionFilter")({});
7396
+ d = await O(e, Od, "createPendingTransactionFilter")({});
7397
7397
  return;
7398
7398
  } catch (h) {
7399
7399
  throw p(), h;
7400
7400
  }
7401
- const m = await R(e, io, "getFilterChanges")({ filter: d });
7401
+ const m = await O(e, io, "getFilterChanges")({ filter: d });
7402
7402
  if (m.length === 0)
7403
7403
  return;
7404
7404
  if (t)
@@ -7414,7 +7414,7 @@ function Gd(e, { batch: t = !0, onError: n, onTransactions: r, poll: s, pollingI
7414
7414
  interval: o
7415
7415
  });
7416
7416
  return async () => {
7417
- d && await R(e, co, "uninstallFilter")({ filter: d }), p();
7417
+ d && await O(e, co, "uninstallFilter")({ filter: d }), p();
7418
7418
  };
7419
7419
  });
7420
7420
  })() : (() => {
@@ -7513,8 +7513,8 @@ function Ay(e, t = {}) {
7513
7513
  throw new Mt(u);
7514
7514
  case bn.code:
7515
7515
  throw new bn(u);
7516
- case O.code:
7517
- throw new O(u);
7516
+ case R.code:
7517
+ throw new R(u);
7518
7518
  case yn.code:
7519
7519
  throw new yn(u);
7520
7520
  case wn.code:
@@ -7526,7 +7526,7 @@ function Ay(e, t = {}) {
7526
7526
  case J.code:
7527
7527
  throw new J(u);
7528
7528
  case 5e3:
7529
- throw new O(u);
7529
+ throw new R(u);
7530
7530
  default:
7531
7531
  throw l instanceof S ? l : new Iu(u);
7532
7532
  }
@@ -7790,10 +7790,10 @@ function Wd(e, t = {}) {
7790
7790
  }
7791
7791
  };
7792
7792
  }
7793
- const Ro = /* @__PURE__ */ new Map();
7793
+ const Oo = /* @__PURE__ */ new Map();
7794
7794
  async function Py(e) {
7795
7795
  const { getSocket: t, keepAlive: n = !0, key: r = "socket", reconnect: s = !0, url: o } = e, { interval: a = 3e4 } = typeof n == "object" ? n : {}, { attempts: i = 5, delay: c = 2e3 } = typeof s == "object" ? s : {};
7796
- let l = Ro.get(`${r}:${o}`);
7796
+ let l = Oo.get(`${r}:${o}`);
7797
7797
  if (l)
7798
7798
  return l;
7799
7799
  let u = 0;
@@ -7840,7 +7840,7 @@ async function Py(e) {
7840
7840
  }
7841
7841
  return await v(), b = void 0, l = {
7842
7842
  close() {
7843
- w && clearInterval(w), y.close(), Ro.delete(`${r}:${o}`);
7843
+ w && clearInterval(w), y.close(), Oo.delete(`${r}:${o}`);
7844
7844
  },
7845
7845
  get socket() {
7846
7846
  return y;
@@ -7880,7 +7880,7 @@ async function Py(e) {
7880
7880
  requests: m,
7881
7881
  subscriptions: h,
7882
7882
  url: o
7883
- }, Ro.set(`${r}:${o}`, l), [l];
7883
+ }, Oo.set(`${r}:${o}`, l), [l];
7884
7884
  }
7885
7885
  }), [p, [f]] = await d();
7886
7886
  return f;
@@ -7889,7 +7889,7 @@ async function as(e, t = {}) {
7889
7889
  const { keepAlive: n, reconnect: r } = t;
7890
7890
  return Py({
7891
7891
  async getSocket({ onClose: s, onError: o, onOpen: a, onResponse: i }) {
7892
- const c = await import("./native-Da5kImuF.js").then((f) => f.WebSocket), l = new c(e);
7892
+ const c = await import("./native-CbXTOHOX.js").then((f) => f.WebSocket), l = new c(e);
7893
7893
  function u() {
7894
7894
  s(), l.removeEventListener("close", u), l.removeEventListener("message", d), l.removeEventListener("error", o), l.removeEventListener("open", a);
7895
7895
  }
@@ -8005,7 +8005,7 @@ function Fi(e) {
8005
8005
  EIP712Domain: lo({ domain: t }),
8006
8006
  ...e.types
8007
8007
  };
8008
- Oi({
8008
+ Ri({
8009
8009
  domain: t,
8010
8010
  message: n,
8011
8011
  primaryType: r,
@@ -8050,10 +8050,10 @@ function Jd({ data: e, primaryType: t, types: n }) {
8050
8050
  return ze(r, s);
8051
8051
  }
8052
8052
  function Dy({ primaryType: e, types: t }) {
8053
- const n = M(Oy({ primaryType: e, types: t }));
8053
+ const n = M(Ry({ primaryType: e, types: t }));
8054
8054
  return Y(n);
8055
8055
  }
8056
- function Oy({ primaryType: e, types: t }) {
8056
+ function Ry({ primaryType: e, types: t }) {
8057
8057
  let n = "";
8058
8058
  const r = Xd({ primaryType: e, types: t });
8059
8059
  r.delete(e);
@@ -8109,7 +8109,7 @@ function ep(e) {
8109
8109
  })();
8110
8110
  return se({ domain: a, message: i, primaryType: r, types: s });
8111
8111
  }
8112
- function Oi(e) {
8112
+ function Ri(e) {
8113
8113
  const { domain: t, message: n, primaryType: r, types: s } = e, o = (a, i) => {
8114
8114
  for (const c of a) {
8115
8115
  const { name: l, type: u } = c, d = i[l], p = u.match(Vd);
@@ -8152,7 +8152,7 @@ function lo({ domain: e }) {
8152
8152
  (e == null ? void 0 : e.salt) && { name: "salt", type: "bytes32" }
8153
8153
  ].filter(Boolean);
8154
8154
  }
8155
- function Ry({ domain: e }) {
8155
+ function Oy({ domain: e }) {
8156
8156
  return Di({
8157
8157
  domain: e,
8158
8158
  types: {
@@ -8211,7 +8211,7 @@ function _y(e) {
8211
8211
  }
8212
8212
  function Hy(e, t) {
8213
8213
  if (e.length !== t.length)
8214
- throw new Ra({
8214
+ throw new Oa({
8215
8215
  expectedLength: e.length,
8216
8216
  givenLength: t.length
8217
8217
  });
@@ -8236,7 +8236,7 @@ function tp(e, t, n = !1) {
8236
8236
  if (e === "bytes")
8237
8237
  return t;
8238
8238
  if (e === "bool")
8239
- return Ee(Rs(t), { size: n ? 32 : 1 });
8239
+ return Ee(Os(t), { size: n ? 32 : 1 });
8240
8240
  const r = e.match(Vd);
8241
8241
  if (r) {
8242
8242
  const [a, i, c = "256"] = r, l = Number.parseInt(c) / 8;
@@ -8281,7 +8281,7 @@ function rp(e) {
8281
8281
  }), r = "bytecodeHash" in e ? ya(e.bytecodeHash) ? e.bytecodeHash : ie(e.bytecodeHash) : Y(e.bytecode, "bytes");
8282
8282
  return $(We(Y(ke([ie("0xff"), t, n, r])), 12));
8283
8283
  }
8284
- function Ri(e, t = "hex") {
8284
+ function Oi(e, t = "hex") {
8285
8285
  const n = (() => {
8286
8286
  if (typeof e == "string") {
8287
8287
  if (e.length > 3 && e.length % 2 !== 0)
@@ -8657,7 +8657,7 @@ function i1(e) {
8657
8657
  return _(a) && a !== "0x" && (f.to = a), _(o) && o !== "0x" && (f.gas = L(o)), _(c) && c !== "0x" && (f.data = c), _(r) && r !== "0x" && (f.nonce = V(r)), _(i) && i !== "0x" && (f.value = L(i)), _(s) && s !== "0x" && (f.gasPrice = L(s)), l.length !== 0 && l !== "0x" && (f.accessList = fo(l)), Hi(f), { ...t.length === 11 ? xr(t) : void 0, ...f };
8658
8658
  }
8659
8659
  function c1(e) {
8660
- const t = Ri(e, "hex"), [n, r, s, o, a, i, c, l, u] = t;
8660
+ const t = Oi(e, "hex"), [n, r, s, o, a, i, c, l, u] = t;
8661
8661
  if (!(t.length === 6 || t.length === 9))
8662
8662
  throw new In({
8663
8663
  attributes: {
@@ -8692,7 +8692,7 @@ function c1(e) {
8692
8692
  return d.v = f, d.s = u, d.r = l, d.yParity = f % 2n === 0n ? 1 : 0, d;
8693
8693
  }
8694
8694
  function po(e) {
8695
- return Ri(`0x${e.slice(4)}`, "hex");
8695
+ return Oi(`0x${e.slice(4)}`, "hex");
8696
8696
  }
8697
8697
  function fo(e) {
8698
8698
  const t = [];
@@ -9026,7 +9026,7 @@ async function ji(e, {
9026
9026
  return new Promise((m, h) => {
9027
9027
  i && setTimeout(() => h(new aa({ hash: n })), i);
9028
9028
  const b = pt(c, { onReplaced: r, resolve: m, reject: h }, (y) => {
9029
- const w = R(e, Ni, "watchBlockNumber")({
9029
+ const w = O(e, Ni, "watchBlockNumber")({
9030
9030
  emitMissed: !0,
9031
9031
  emitOnBegin: !0,
9032
9032
  poll: !0,
@@ -9046,11 +9046,11 @@ async function ji(e, {
9046
9046
  return;
9047
9047
  }
9048
9048
  if (u || (f = !0, await ft(async () => {
9049
- u = await R(e, Pn, "getTransaction")({ hash: n }), u.blockNumber && (g = u.blockNumber);
9049
+ u = await O(e, Pn, "getTransaction")({ hash: n }), u.blockNumber && (g = u.blockNumber);
9050
9050
  }, {
9051
9051
  delay: a,
9052
9052
  retryCount: o
9053
- }), f = !1), p = await R(e, Is, "getTransactionReceipt")({ hash: n }), t > 1 && (!p.blockNumber || g - p.blockNumber + 1n < t))
9053
+ }), f = !1), p = await O(e, Is, "getTransactionReceipt")({ hash: n }), t > 1 && (!p.blockNumber || g - p.blockNumber + 1n < t))
9054
9054
  return;
9055
9055
  E(() => y.resolve(p));
9056
9056
  } catch (C) {
@@ -9061,7 +9061,7 @@ async function ji(e, {
9061
9061
  }
9062
9062
  try {
9063
9063
  d = u, f = !0;
9064
- const A = await ft(() => R(e, Je, "getBlock")({
9064
+ const A = await ft(() => O(e, Je, "getBlock")({
9065
9065
  blockNumber: g,
9066
9066
  includeTransactions: !0
9067
9067
  }), {
@@ -9071,7 +9071,7 @@ async function ji(e, {
9071
9071
  });
9072
9072
  f = !1;
9073
9073
  const k = A.transactions.find(({ from: B, nonce: N }) => B === d.from && N === d.nonce);
9074
- if (!k || (p = await R(e, Is, "getTransactionReceipt")({
9074
+ if (!k || (p = await O(e, Is, "getTransactionReceipt")({
9075
9075
  hash: k.hash
9076
9076
  }), t > 1 && (!p.blockNumber || g - p.blockNumber + 1n < t)))
9077
9077
  return;
@@ -9169,7 +9169,7 @@ async function N1(e, t) {
9169
9169
  account: o,
9170
9170
  ...t
9171
9171
  });
9172
- const a = await R(e, mr, "getChainId")({});
9172
+ const a = await O(e, mr, "getChainId")({});
9173
9173
  r !== null && Za({
9174
9174
  currentChainId: a,
9175
9175
  chain: r
@@ -9225,13 +9225,13 @@ async function D1(e, t) {
9225
9225
  params: [t]
9226
9226
  });
9227
9227
  }
9228
- async function O1(e, { gasLimit: t }) {
9228
+ async function R1(e, { gasLimit: t }) {
9229
9229
  await e.request({
9230
9230
  method: "evm_setBlockGasLimit",
9231
9231
  params: [U(t)]
9232
9232
  });
9233
9233
  }
9234
- async function R1(e, { interval: t }) {
9234
+ async function O1(e, { interval: t }) {
9235
9235
  const n = e.mode === "hardhat" ? t * 1e3 : t;
9236
9236
  await e.request({
9237
9237
  method: `${e.mode}_setBlockTimestampInterval`,
@@ -9335,7 +9335,7 @@ async function Cp(e, t) {
9335
9335
  EIP712Domain: lo({ domain: r }),
9336
9336
  ...t.types
9337
9337
  };
9338
- if (Oi({ domain: r, message: s, primaryType: o, types: i }), a.signTypedData)
9338
+ if (Ri({ domain: r, message: s, primaryType: o, types: i }), a.signTypedData)
9339
9339
  return a.signTypedData({ domain: r, message: s, primaryType: o, types: i });
9340
9340
  const c = ep({ domain: r, message: s, primaryType: o, types: i });
9341
9341
  return e.request({
@@ -9346,7 +9346,7 @@ async function Cp(e, t) {
9346
9346
  async function bo(e, t) {
9347
9347
  const { abi: n, address: r, args: s, dataSuffix: o, functionName: a, ...i } = t, c = i.account ? de(i.account) : e.account, l = Ye({ abi: n, args: s, functionName: a });
9348
9348
  try {
9349
- const { data: u } = await R(e, wt, "call")({
9349
+ const { data: u } = await O(e, wt, "call")({
9350
9350
  batch: !1,
9351
9351
  data: `${l}${o ? o.replace("0x", "") : ""}`,
9352
9352
  to: r,
@@ -9371,7 +9371,7 @@ async function bo(e, t) {
9371
9371
  }
9372
9372
  };
9373
9373
  } catch (u) {
9374
- throw Ot(u, {
9374
+ throw Rt(u, {
9375
9375
  abi: n,
9376
9376
  address: r,
9377
9377
  args: s,
@@ -9399,11 +9399,11 @@ async function Z1(e, { id: t }) {
9399
9399
  }
9400
9400
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
9401
9401
  const Ap = BigInt(0), yo = BigInt(1), J1 = BigInt(2);
9402
- function Rt(e) {
9402
+ function Ot(e) {
9403
9403
  return e instanceof Uint8Array || e != null && typeof e == "object" && e.constructor.name === "Uint8Array";
9404
9404
  }
9405
9405
  function Cr(e) {
9406
- if (!Rt(e))
9406
+ if (!Ot(e))
9407
9407
  throw new Error("Uint8Array expected");
9408
9408
  }
9409
9409
  const X1 = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
@@ -9472,7 +9472,7 @@ function Pe(e, t, n) {
9472
9472
  } catch (o) {
9473
9473
  throw new Error(`${e} must be valid hex string, got "${t}". Cause: ${o}`);
9474
9474
  }
9475
- else if (Rt(t))
9475
+ else if (Ot(t))
9476
9476
  r = Uint8Array.from(t);
9477
9477
  else
9478
9478
  throw new Error(`${e} must be hex string or Uint8Array`);
@@ -9557,7 +9557,7 @@ const sw = {
9557
9557
  function: (e) => typeof e == "function",
9558
9558
  boolean: (e) => typeof e == "boolean",
9559
9559
  string: (e) => typeof e == "string",
9560
- stringOrUint8Array: (e) => typeof e == "string" || Rt(e),
9560
+ stringOrUint8Array: (e) => typeof e == "string" || Ot(e),
9561
9561
  isSafeInteger: (e) => Number.isSafeInteger(e),
9562
9562
  array: (e) => Array.isArray(e),
9563
9563
  field: (e, t) => t.Fp.isValid(e),
@@ -9594,7 +9594,7 @@ const ow = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9594
9594
  equalBytes: Ep,
9595
9595
  hexToBytes: xn,
9596
9596
  hexToNumber: qi,
9597
- isBytes: Rt,
9597
+ isBytes: Ot,
9598
9598
  numberToBytesBE: Cn,
9599
9599
  numberToBytesLE: Qi,
9600
9600
  numberToHexUnpadded: vp,
@@ -9984,7 +9984,7 @@ function Aw(e) {
9984
9984
  function c(m) {
9985
9985
  const { allowedPrivateKeyLengths: h, nByteLength: b, wrapPrivateKey: y, n: w } = t;
9986
9986
  if (h && typeof m != "bigint") {
9987
- if (Rt(m) && (m = gn(m)), typeof m != "string" || !h.includes(m.length))
9987
+ if (Ot(m) && (m = gn(m)), typeof m != "string" || !h.includes(m.length))
9988
9988
  throw new Error("Invalid key");
9989
9989
  m = m.padStart(b * 2, "0");
9990
9990
  }
@@ -10309,7 +10309,7 @@ function Ew(e) {
10309
10309
  const oe = K === 2 || K === 3 ? D + t.n : D;
10310
10310
  if (oe >= n.ORDER)
10311
10311
  throw new Error("recovery id 2 or 3 invalid");
10312
- const ee = K & 1 ? "03" : "02", et = l.fromHex(ee + f(oe)), Te = c(oe), tt = i(-Q * Te), On = i(H * Te), nt = l.BASE.multiplyAndAddUnsafe(et, tt, On);
10312
+ const ee = K & 1 ? "03" : "02", et = l.fromHex(ee + f(oe)), Te = c(oe), tt = i(-Q * Te), Rn = i(H * Te), nt = l.BASE.multiplyAndAddUnsafe(et, tt, Rn);
10313
10313
  if (!nt)
10314
10314
  throw new Error("point at infinify");
10315
10315
  return nt.assertValidity(), nt;
@@ -10369,7 +10369,7 @@ function Ew(e) {
10369
10369
  return l.fromPrivateKey(T).toRawBytes(P);
10370
10370
  }
10371
10371
  function E(T) {
10372
- const P = Rt(T), D = typeof T == "string", H = (P || D) && T.length;
10372
+ const P = Ot(T), D = typeof T == "string", H = (P || D) && T.length;
10373
10373
  return P ? H === s || H === o : D ? H === 2 * s || H === 2 * o : T instanceof l;
10374
10374
  }
10375
10375
  function g(T, P, D = !0) {
@@ -10403,7 +10403,7 @@ function Ew(e) {
10403
10403
  const At = ee === !0 ? K(n.BYTES) : ee;
10404
10404
  tt.push(Pe("extraEntropy", At));
10405
10405
  }
10406
- const On = Yn(...tt), nt = et;
10406
+ const Rn = Yn(...tt), nt = et;
10407
10407
  function ko(At) {
10408
10408
  const Zt = C(At);
10409
10409
  if (!p(Zt))
@@ -10417,7 +10417,7 @@ function Ew(e) {
10417
10417
  let mc = (Jt.x === Ue ? 0 : 2) | Number(Jt.y & ve), bc = Xt;
10418
10418
  return Q && m(Xt) && (bc = h(Xt), mc ^= 1), new y(Ue, bc, mc);
10419
10419
  }
10420
- return { seed: On, k2sig: ko };
10420
+ return { seed: Rn, k2sig: ko };
10421
10421
  }
10422
10422
  const N = { lowS: t.lowS, prehash: !1 }, G = { lowS: t.lowS, prehash: !1 };
10423
10423
  function F(T, P, D = N) {
@@ -10433,7 +10433,7 @@ function Ew(e) {
10433
10433
  const { lowS: Q, prehash: oe } = H;
10434
10434
  let ee, et;
10435
10435
  try {
10436
- if (typeof K == "string" || Rt(K))
10436
+ if (typeof K == "string" || Ot(K))
10437
10437
  try {
10438
10438
  ee = y.fromDER(K);
10439
10439
  } catch (Ue) {
@@ -10455,7 +10455,7 @@ function Ew(e) {
10455
10455
  if (Q && ee.hasHighS())
10456
10456
  return !1;
10457
10457
  oe && (P = t.hash(P));
10458
- const { r: Te, s: tt } = ee, On = A(P), nt = c(tt), ko = i(On * nt), At = i(Te * nt), Zt = (Jt = l.BASE.multiplyAndAddUnsafe(et, ko, At)) == null ? void 0 : Jt.toAffine();
10458
+ const { r: Te, s: tt } = ee, Rn = A(P), nt = c(tt), ko = i(Rn * nt), At = i(Te * nt), Zt = (Jt = l.BASE.multiplyAndAddUnsafe(et, ko, At)) == null ? void 0 : Jt.toAffine();
10459
10459
  return Zt ? i(Zt.x) === Te : !1;
10460
10460
  }
10461
10461
  return {
@@ -10583,7 +10583,7 @@ async function Wi(e, t) {
10583
10583
  signature: c
10584
10584
  }))();
10585
10585
  try {
10586
- const { data: u } = await R(e, wt, "call")({
10586
+ const { data: u } = await O(e, wt, "call")({
10587
10587
  data: dr({
10588
10588
  abi: Wu,
10589
10589
  args: [n, o, l],
@@ -10653,7 +10653,7 @@ function Zi(e, t) {
10653
10653
  var A;
10654
10654
  if (!g) {
10655
10655
  try {
10656
- E = await R(e, Ii, "createContractEventFilter")({
10656
+ E = await O(e, Ii, "createContractEventFilter")({
10657
10657
  abi: n,
10658
10658
  address: r,
10659
10659
  args: s,
@@ -10669,10 +10669,10 @@ function Zi(e, t) {
10669
10669
  try {
10670
10670
  let k;
10671
10671
  if (E)
10672
- k = await R(e, io, "getFilterChanges")({ filter: E });
10672
+ k = await O(e, io, "getFilterChanges")({ filter: E });
10673
10673
  else {
10674
- const I = await R(e, Un, "getBlockNumber")({});
10675
- v && v < I ? k = await R(e, Bi, "getContractEvents")({
10674
+ const I = await O(e, Un, "getBlockNumber")({});
10675
+ v && v < I ? k = await O(e, Bi, "getContractEvents")({
10676
10676
  abi: n,
10677
10677
  address: r,
10678
10678
  args: s,
@@ -10697,7 +10697,7 @@ function Zi(e, t) {
10697
10697
  interval: d
10698
10698
  });
10699
10699
  return async () => {
10700
- E && await R(e, co, "uninstallFilter")({ filter: E }), C();
10700
+ E && await O(e, co, "uninstallFilter")({ filter: E }), C();
10701
10701
  };
10702
10702
  });
10703
10703
  })() : (() => {
@@ -10737,7 +10737,7 @@ function Zi(e, t) {
10737
10737
  data: I.data,
10738
10738
  topics: I.topics,
10739
10739
  strict: p
10740
- }), F = Re(I, {
10740
+ }), F = Oe(I, {
10741
10741
  args: G,
10742
10742
  eventName: N
10743
10743
  });
@@ -10749,7 +10749,7 @@ function Zi(e, t) {
10749
10749
  return;
10750
10750
  G = N.abiItem.name, F = (B = N.abiItem.inputs) == null ? void 0 : B.some((T) => !("name" in T && T.name));
10751
10751
  }
10752
- const q = Re(I, {
10752
+ const q = Oe(I, {
10753
10753
  args: F ? [] : {},
10754
10754
  eventName: G
10755
10755
  });
@@ -10780,14 +10780,14 @@ async function wo(e, t) {
10780
10780
  functionName: i
10781
10781
  });
10782
10782
  try {
10783
- return await R(e, br, "sendTransaction")({
10783
+ return await O(e, br, "sendTransaction")({
10784
10784
  data: `${u}${a ? a.replace("0x", "") : ""}`,
10785
10785
  to: s,
10786
10786
  account: l,
10787
10787
  ...c
10788
10788
  });
10789
10789
  } catch (d) {
10790
- throw Ot(d, {
10790
+ throw Rt(d, {
10791
10791
  abi: n,
10792
10792
  address: s,
10793
10793
  args: o,
@@ -10805,13 +10805,13 @@ function le(e, t, n) {
10805
10805
  return typeof s == "function" ? s : (o) => t(e, o);
10806
10806
  }
10807
10807
  const is = "2.13.4", Uw = () => `@wagmi/core@${is}`;
10808
- var Op = function(e, t, n, r) {
10808
+ var Rp = function(e, t, n, r) {
10809
10809
  if (n === "a" && !r)
10810
10810
  throw new TypeError("Private accessor was defined without a getter");
10811
10811
  if (typeof t == "function" ? e !== t || !r : !t.has(e))
10812
10812
  throw new TypeError("Cannot read private member from an object whose class did not declare it");
10813
10813
  return n === "m" ? r : n === "a" ? r.call(e) : r ? r.value : t.get(e);
10814
- }, Ts, Rp;
10814
+ }, Ts, Op;
10815
10815
  let Vt = class va extends Error {
10816
10816
  get docsBaseUrl() {
10817
10817
  return "https://wagmi.sh/core";
@@ -10861,11 +10861,11 @@ let Vt = class va extends Error {
10861
10861
  `), n.cause && (this.cause = n.cause), this.details = r, this.docsPath = s, this.metaMessages = n.metaMessages, this.shortMessage = t;
10862
10862
  }
10863
10863
  walk(t) {
10864
- return Op(this, Ts, "m", Rp).call(this, this, t);
10864
+ return Rp(this, Ts, "m", Op).call(this, this, t);
10865
10865
  }
10866
10866
  };
10867
- Ts = /* @__PURE__ */ new WeakSet(), Rp = function e(t, n) {
10868
- return n != null && n(t) ? t : t.cause ? Op(this, Ts, "m", e).call(this, t.cause, n) : t;
10867
+ Ts = /* @__PURE__ */ new WeakSet(), Op = function e(t, n) {
10868
+ return n != null && n(t) ? t : t.cause ? Rp(this, Ts, "m", e).call(this, t.cause, n) : t;
10869
10869
  };
10870
10870
  let Lt = class extends Vt {
10871
10871
  constructor() {
@@ -10954,7 +10954,7 @@ function Fw({ abi: e, address: t, client: n }) {
10954
10954
  get(p, f) {
10955
10955
  return (...m) => {
10956
10956
  const { args: h, options: b } = Nr(m);
10957
- return R(s, Ie, "readContract")({
10957
+ return O(s, Ie, "readContract")({
10958
10958
  abi: e,
10959
10959
  address: t,
10960
10960
  functionName: f,
@@ -10967,7 +10967,7 @@ function Fw({ abi: e, address: t, client: n }) {
10967
10967
  get(p, f) {
10968
10968
  return (...m) => {
10969
10969
  const { args: h, options: b } = Nr(m);
10970
- return R(s, bo, "simulateContract")({
10970
+ return O(s, bo, "simulateContract")({
10971
10971
  abi: e,
10972
10972
  address: t,
10973
10973
  functionName: f,
@@ -10980,7 +10980,7 @@ function Fw({ abi: e, address: t, client: n }) {
10980
10980
  get(p, f) {
10981
10981
  return (...m) => {
10982
10982
  const h = e.find((w) => w.type === "event" && w.name === f), { args: b, options: y } = jo(m, h);
10983
- return R(s, Ii, "createContractEventFilter")({
10983
+ return O(s, Ii, "createContractEventFilter")({
10984
10984
  abi: e,
10985
10985
  address: t,
10986
10986
  eventName: f,
@@ -10993,7 +10993,7 @@ function Fw({ abi: e, address: t, client: n }) {
10993
10993
  get(p, f) {
10994
10994
  return (...m) => {
10995
10995
  const h = e.find((w) => w.type === "event" && w.name === f), { args: b, options: y } = jo(m, h);
10996
- return R(s, Bi, "getContractEvents")({
10996
+ return O(s, Bi, "getContractEvents")({
10997
10997
  abi: e,
10998
10998
  address: t,
10999
10999
  eventName: f,
@@ -11006,7 +11006,7 @@ function Fw({ abi: e, address: t, client: n }) {
11006
11006
  get(p, f) {
11007
11007
  return (...m) => {
11008
11008
  const h = e.find((w) => w.type === "event" && w.name === f), { args: b, options: y } = jo(m, h);
11009
- return R(s, Zi, "watchContractEvent")({
11009
+ return O(s, Zi, "watchContractEvent")({
11010
11010
  abi: e,
11011
11011
  address: t,
11012
11012
  eventName: f,
@@ -11019,7 +11019,7 @@ function Fw({ abi: e, address: t, client: n }) {
11019
11019
  get(p, f) {
11020
11020
  return (...m) => {
11021
11021
  const { args: h, options: b } = Nr(m);
11022
- return R(o, wo, "writeContract")({
11022
+ return O(o, wo, "writeContract")({
11023
11023
  abi: e,
11024
11024
  address: t,
11025
11025
  functionName: f,
@@ -11032,7 +11032,7 @@ function Fw({ abi: e, address: t, client: n }) {
11032
11032
  get(p, f) {
11033
11033
  return (...m) => {
11034
11034
  const { args: h, options: b } = Nr(m);
11035
- return R(s ?? o, Ld, "estimateContractGas")({
11035
+ return O(s ?? o, Ld, "estimateContractGas")({
11036
11036
  abi: e,
11037
11037
  address: t,
11038
11038
  functionName: f,
@@ -11158,7 +11158,7 @@ function Ji(e, t = {}) {
11158
11158
  params: h,
11159
11159
  transport: w,
11160
11160
  status: "error"
11161
- }), Ow(v) || y === d.length - 1)
11161
+ }), Rw(v) || y === d.length - 1)
11162
11162
  throw v;
11163
11163
  return b(y + 1);
11164
11164
  }
@@ -11174,7 +11174,7 @@ function Ji(e, t = {}) {
11174
11174
  });
11175
11175
  if (s) {
11176
11176
  const m = typeof s == "object" ? s : {};
11177
- Rw({
11177
+ Ow({
11178
11178
  chain: i,
11179
11179
  interval: m.interval ?? c,
11180
11180
  onTransports: (h) => d = h,
@@ -11187,10 +11187,10 @@ function Ji(e, t = {}) {
11187
11187
  return f;
11188
11188
  };
11189
11189
  }
11190
- function Ow(e) {
11191
- return "code" in e && typeof e.code == "number" && (e.code === Nt.code || e.code === O.code || e.code === 5e3);
11190
+ function Rw(e) {
11191
+ return "code" in e && typeof e.code == "number" && (e.code === Nt.code || e.code === R.code || e.code === 5e3);
11192
11192
  }
11193
- function Rw({ chain: e, interval: t = 4e3, onTransports: n, sampleCount: r = 10, timeout: s = 1e3, transports: o, weights: a = {} }) {
11193
+ function Ow({ chain: e, interval: t = 4e3, onTransports: n, sampleCount: r = 10, timeout: s = 1e3, transports: o, weights: a = {} }) {
11194
11194
  const { stability: i = 0.7, latency: c = 0.3 } = a, l = [], u = async () => {
11195
11195
  const d = await Promise.all(o.map(async (m) => {
11196
11196
  const h = m({ chain: e, retryCount: 0, timeout: s }), b = Date.now();
@@ -11327,8 +11327,8 @@ function Yi(e) {
11327
11327
  call: (t) => wt(e, t),
11328
11328
  createBlockFilter: () => Jb(e),
11329
11329
  createContractEventFilter: (t) => Ii(e, t),
11330
- createEventFilter: (t) => Od(e, t),
11331
- createPendingTransactionFilter: () => Rd(e),
11330
+ createEventFilter: (t) => Rd(e, t),
11331
+ createPendingTransactionFilter: () => Od(e),
11332
11332
  estimateContractGas: (t) => Ld(e, t),
11333
11333
  estimateGas: (t) => Gt(e, t),
11334
11334
  getBalance: (t) => Ws(e, t),
@@ -11407,8 +11407,8 @@ function _p({ mode: e }) {
11407
11407
  sendUnsignedTransaction: (r) => M1(n, r),
11408
11408
  setAutomine: (r) => D1(n, r),
11409
11409
  setBalance: (r) => F1(n, r),
11410
- setBlockGasLimit: (r) => O1(n, r),
11411
- setBlockTimestampInterval: (r) => R1(n, r),
11410
+ setBlockGasLimit: (r) => R1(n, r),
11411
+ setBlockTimestampInterval: (r) => O1(n, r),
11412
11412
  setCode: (r) => L1(n, r),
11413
11413
  setCoinbase: (r) => z1(n, r),
11414
11414
  setIntervalMining: (r) => _1(n, r),
@@ -11686,11 +11686,11 @@ const t3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11686
11686
  AbiConstructorNotFoundError: Da,
11687
11687
  AbiConstructorParamsNotFoundError: Wn,
11688
11688
  AbiDecodingDataSizeInvalidError: Zf,
11689
- AbiDecodingDataSizeTooSmallError: Oa,
11689
+ AbiDecodingDataSizeTooSmallError: Ra,
11690
11690
  AbiDecodingZeroDataError: cr,
11691
11691
  AbiEncodingArrayLengthMismatchError: Jl,
11692
11692
  AbiEncodingBytesSizeMismatchError: Xl,
11693
- AbiEncodingLengthMismatchError: Ra,
11693
+ AbiEncodingLengthMismatchError: Oa,
11694
11694
  AbiErrorInputsNotFoundError: Yl,
11695
11695
  AbiErrorNotFoundError: sa,
11696
11696
  AbiErrorSignatureNotFoundError: La,
@@ -11784,7 +11784,7 @@ const t3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11784
11784
  SliceOffsetOutOfBoundsError: Ma,
11785
11785
  SocketClosedError: Zn,
11786
11786
  SolidityProtectedKeywordError: ld,
11787
- StateAssignmentConflictError: Ou,
11787
+ StateAssignmentConflictError: Ru,
11788
11788
  SwitchChainError: J,
11789
11789
  TimeoutError: Cs,
11790
11790
  TipAboveFeeCapError: Pt,
@@ -11801,7 +11801,7 @@ const t3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11801
11801
  UnsupportedPackedAbiType: au,
11802
11802
  UnsupportedProviderMethodError: wn,
11803
11803
  UrlRequiredError: Xi,
11804
- UserRejectedRequestError: O,
11804
+ UserRejectedRequestError: R,
11805
11805
  WaitForTransactionReceiptTimeoutError: aa,
11806
11806
  WebSocketRequestError: ia,
11807
11807
  assertCurrentChain: Za,
@@ -11812,7 +11812,7 @@ const t3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11812
11812
  blobsToCommitments: Js,
11813
11813
  blobsToProofs: Xs,
11814
11814
  boolToBytes: Vl,
11815
- boolToHex: Rs,
11815
+ boolToHex: Os,
11816
11816
  bytesToBigInt: fi,
11817
11817
  bytesToBool: hi,
11818
11818
  bytesToHex: W,
@@ -11850,7 +11850,7 @@ const t3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11850
11850
  defineTransactionRequest: si,
11851
11851
  deploylessCallViaBytecodeBytecode: Sd,
11852
11852
  deploylessCallViaFactoryBytecode: Bd,
11853
- domainSeparator: Ry,
11853
+ domainSeparator: Oy,
11854
11854
  encodeAbiParameters: ze,
11855
11855
  encodeDeployData: dr,
11856
11856
  encodeErrorResult: zy,
@@ -11868,7 +11868,7 @@ const t3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11868
11868
  formatBlock: Ks,
11869
11869
  formatEther: $s,
11870
11870
  formatGwei: pe,
11871
- formatLog: Re,
11871
+ formatLog: Oe,
11872
11872
  formatTransaction: Bn,
11873
11873
  formatTransactionReceipt: Ti,
11874
11874
  formatTransactionRequest: mt,
@@ -11876,13 +11876,13 @@ const t3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11876
11876
  fromBlobs: Yw,
11877
11877
  fromBytes: q0,
11878
11878
  fromHex: ra,
11879
- fromRlp: Ri,
11879
+ fromRlp: Oi,
11880
11880
  getAbiItem: Xe,
11881
11881
  getAddress: $,
11882
11882
  getChainContractAddress: Qt,
11883
11883
  getContract: Fw,
11884
11884
  getContractAddress: $y,
11885
- getContractError: Ot,
11885
+ getContractError: Rt,
11886
11886
  getCreate2Address: rp,
11887
11887
  getCreateAddress: np,
11888
11888
  getEventSelector: Xn,
@@ -11981,8 +11981,8 @@ const t3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11981
11981
  minInt112: Mm,
11982
11982
  minInt120: Fm,
11983
11983
  minInt128: Dm,
11984
- minInt136: Om,
11985
- minInt144: Rm,
11984
+ minInt136: Rm,
11985
+ minInt144: Om,
11986
11986
  minInt152: Lm,
11987
11987
  minInt16: Cm,
11988
11988
  minInt160: zm,
@@ -12079,7 +12079,7 @@ const t3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12079
12079
  trim: ae,
12080
12080
  universalSignatureValidatorAbi: Wu,
12081
12081
  universalSignatureValidatorByteCode: Td,
12082
- validateTypedData: Oi,
12082
+ validateTypedData: Ri,
12083
12083
  verifyHash: Yy,
12084
12084
  verifyMessage: e1,
12085
12085
  verifyTypedData: t1,
@@ -12719,8 +12719,8 @@ function go(e = {}) {
12719
12719
  }))[0]) == null ? void 0 : f.caveats) == null ? void 0 : m[0]) == null ? void 0 : h.value) == null ? void 0 : b.map((E) => $(E)), p.length > 0 && (p = await this.getAccounts());
12720
12720
  } catch (v) {
12721
12721
  const E = v;
12722
- if (E.code === O.code)
12723
- throw new O(E);
12722
+ if (E.code === R.code)
12723
+ throw new R(E);
12724
12724
  if (E.code === ye.code)
12725
12725
  throw E;
12726
12726
  }
@@ -12731,7 +12731,7 @@ function go(e = {}) {
12731
12731
  let v = await this.getChainId();
12732
12732
  if (l && v !== l) {
12733
12733
  const E = await this.switchChain({ chainId: l }).catch((g) => {
12734
- if (g.code === O.code)
12734
+ if (g.code === R.code)
12735
12735
  throw g;
12736
12736
  return { id: v };
12737
12737
  });
@@ -12740,7 +12740,7 @@ function go(e = {}) {
12740
12740
  return t && await ((y = c.storage) == null ? void 0 : y.removeItem(`${this.id}.disconnected`)), e.target || await ((w = c.storage) == null ? void 0 : w.setItem("injected.connected", !0)), { accounts: p, chainId: v };
12741
12741
  } catch (v) {
12742
12742
  const E = v;
12743
- throw E.code === O.code ? new O(E) : E.code === ye.code ? new ye(E) : E;
12743
+ throw E.code === R.code ? new R(E) : E.code === ye.code ? new ye(E) : E;
12744
12744
  }
12745
12745
  },
12746
12746
  async disconnect() {
@@ -12853,12 +12853,12 @@ function go(e = {}) {
12853
12853
  method: "wallet_addEthereumChain",
12854
12854
  params: [A]
12855
12855
  }), await this.getChainId() !== u)
12856
- throw new O(new Error("User rejected switch after adding network."));
12856
+ throw new R(new Error("User rejected switch after adding network."));
12857
12857
  return p;
12858
12858
  } catch (v) {
12859
- throw new O(v);
12859
+ throw new R(v);
12860
12860
  }
12861
- throw w.code === O.code ? new O(w) : new J(w);
12861
+ throw w.code === R.code ? new R(w) : new J(w);
12862
12862
  }
12863
12863
  },
12864
12864
  async onAccountsChanged(l) {
@@ -13253,7 +13253,7 @@ let Fg = class {
13253
13253
  function Dg(e) {
13254
13254
  return new Fg(e);
13255
13255
  }
13256
- function Og(e, t) {
13256
+ function Rg(e, t) {
13257
13257
  return JSON.parse(e, (n, r) => {
13258
13258
  let s = r;
13259
13259
  return (s == null ? void 0 : s.__type) === "bigint" && (s = BigInt(s.value)), (s == null ? void 0 : s.__type) === "Map" && (s = new Map(s.value)), (t == null ? void 0 : t(n, s)) ?? s;
@@ -13269,7 +13269,7 @@ function ll(e, t) {
13269
13269
  return r + 1;
13270
13270
  return 0;
13271
13271
  }
13272
- function Rg(e, t) {
13272
+ function Og(e, t) {
13273
13273
  const n = typeof e == "function", r = typeof t == "function", s = [], o = [];
13274
13274
  return function(i, c) {
13275
13275
  if (typeof c == "object")
@@ -13285,13 +13285,13 @@ function Rg(e, t) {
13285
13285
  };
13286
13286
  }
13287
13287
  function Lg(e, t, n, r) {
13288
- return JSON.stringify(e, Rg((s, o) => {
13288
+ return JSON.stringify(e, Og((s, o) => {
13289
13289
  let a = o;
13290
13290
  return typeof a == "bigint" && (a = { __type: "bigint", value: o.toString() }), a instanceof Map && (a = { __type: "Map", value: Array.from(o.entries()) }), (t == null ? void 0 : t(s, a)) ?? a;
13291
13291
  }, r), n ?? void 0);
13292
13292
  }
13293
13293
  function zg(e) {
13294
- const { deserialize: t = Og, key: n = "wagmi", serialize: r = Lg, storage: s = qp } = e;
13294
+ const { deserialize: t = Rg, key: n = "wagmi", serialize: r = Lg, storage: s = qp } = e;
13295
13295
  function o(a) {
13296
13296
  return a instanceof Promise ? a.then((i) => i).catch(() => null) : a;
13297
13297
  }
@@ -13318,14 +13318,14 @@ const qp = {
13318
13318
  removeItem: () => {
13319
13319
  }
13320
13320
  }, ka = 256;
13321
- let Or = ka, Rr;
13321
+ let Rr = ka, Or;
13322
13322
  function _g(e = 11) {
13323
- if (!Rr || Or + e > ka * 2) {
13324
- Rr = "", Or = 0;
13323
+ if (!Or || Rr + e > ka * 2) {
13324
+ Or = "", Rr = 0;
13325
13325
  for (let t = 0; t < ka; t++)
13326
- Rr += (256 + Math.random() * 256 | 0).toString(16).substring(1);
13326
+ Or += (256 + Math.random() * 256 | 0).toString(16).substring(1);
13327
13327
  }
13328
- return Rr.substring(Or, Or++ + e);
13328
+ return Or.substring(Rr, Rr++ + e);
13329
13329
  }
13330
13330
  function Hg(e) {
13331
13331
  const { multiInjectedProviderDiscovery: t = !0, storage: n = zg({
@@ -13605,7 +13605,7 @@ const ec = 50000n, ul = Bu * 32n, Kp = {
13605
13605
  l1BatchNumber: e.l1BatchNumber ? L(e.l1BatchNumber) : null,
13606
13606
  l1BatchTxIndex: e.l1BatchTxIndex ? L(e.l1BatchTxIndex) : null,
13607
13607
  logs: e.logs.map((t) => ({
13608
- ...Re(t),
13608
+ ...Oe(t),
13609
13609
  l1BatchNumber: t.l1BatchNumber ? L(t.l1BatchNumber) : null,
13610
13610
  transactionLogIndex: V(t.transactionLogIndex),
13611
13611
  logType: t.logType
@@ -14736,7 +14736,7 @@ const z = {
14736
14736
  apiUrl: "https://brnkscan.bearnetwork.net/api"
14737
14737
  }
14738
14738
  }
14739
- }), Ox = /* @__PURE__ */ x({
14739
+ }), Rx = /* @__PURE__ */ x({
14740
14740
  id: 751230,
14741
14741
  name: "Bear Network Chain Testnet",
14742
14742
  nativeCurrency: {
@@ -14755,7 +14755,7 @@ const z = {
14755
14755
  }
14756
14756
  },
14757
14757
  testnet: !0
14758
- }), Rx = /* @__PURE__ */ x({
14758
+ }), Ox = /* @__PURE__ */ x({
14759
14759
  id: 80085,
14760
14760
  name: "Berachain Artio",
14761
14761
  nativeCurrency: {
@@ -15795,7 +15795,7 @@ const Yp = {
15795
15795
  }
15796
15796
  },
15797
15797
  testnet: !0
15798
- }), O2 = /* @__PURE__ */ x({
15798
+ }), R2 = /* @__PURE__ */ x({
15799
15799
  id: 46,
15800
15800
  name: "Darwinia Network",
15801
15801
  nativeCurrency: {
@@ -15818,7 +15818,7 @@ const Yp = {
15818
15818
  blockCreated: 69420
15819
15819
  }
15820
15820
  }
15821
- }), R2 = /* @__PURE__ */ x({
15821
+ }), O2 = /* @__PURE__ */ x({
15822
15822
  ...z,
15823
15823
  id: 2716446429837e3,
15824
15824
  name: "Dchain",
@@ -16929,7 +16929,7 @@ const Yp = {
16929
16929
  }
16930
16930
  },
16931
16931
  testnet: !1
16932
- }), OC = /* @__PURE__ */ x({
16932
+ }), RC = /* @__PURE__ */ x({
16933
16933
  id: 1663,
16934
16934
  name: "Horizen Gobi Testnet",
16935
16935
  nativeCurrency: {
@@ -16948,7 +16948,7 @@ const Yp = {
16948
16948
  },
16949
16949
  contracts: {},
16950
16950
  testnet: !0
16951
- }), RC = /* @__PURE__ */ x({
16951
+ }), OC = /* @__PURE__ */ x({
16952
16952
  id: 5,
16953
16953
  name: "Goerli",
16954
16954
  nativeCurrency: { name: "Goerli Ether", symbol: "ETH", decimals: 18 },
@@ -18276,7 +18276,7 @@ const wA = /* @__PURE__ */ x({
18276
18276
  }
18277
18277
  },
18278
18278
  testnet: !0
18279
- }), OA = /* @__PURE__ */ x({
18279
+ }), RA = /* @__PURE__ */ x({
18280
18280
  id: 4200,
18281
18281
  name: "Merlin",
18282
18282
  nativeCurrency: {
@@ -18294,7 +18294,7 @@ const wA = /* @__PURE__ */ x({
18294
18294
  apiUrl: "https://scan.merlinchain.io/api"
18295
18295
  }
18296
18296
  }
18297
- }), RA = /* @__PURE__ */ x({
18297
+ }), OA = /* @__PURE__ */ x({
18298
18298
  id: 571,
18299
18299
  name: "MetaChain Mainnet",
18300
18300
  nativeCurrency: { name: "Metatime Coin", symbol: "MTC", decimals: 18 },
@@ -19628,7 +19628,7 @@ const wA = /* @__PURE__ */ x({
19628
19628
  blockCreated: 695
19629
19629
  }
19630
19630
  }
19631
- }), Ov = /* @__PURE__ */ x({
19631
+ }), Rv = /* @__PURE__ */ x({
19632
19632
  id: 153,
19633
19633
  name: "Redbelly Network Testnet",
19634
19634
  nativeCurrency: {
@@ -19649,7 +19649,7 @@ const wA = /* @__PURE__ */ x({
19649
19649
  }
19650
19650
  },
19651
19651
  testnet: !0
19652
- }), Rv = x({
19652
+ }), Ov = x({
19653
19653
  id: 690,
19654
19654
  name: "Redstone",
19655
19655
  nativeCurrency: {
@@ -20815,7 +20815,7 @@ const wA = /* @__PURE__ */ x({
20815
20815
  blockCreated: 271288
20816
20816
  }
20817
20817
  }
20818
- }), O6 = /* @__PURE__ */ x({
20818
+ }), R6 = /* @__PURE__ */ x({
20819
20819
  id: 841,
20820
20820
  name: "Taraxa Mainnet",
20821
20821
  nativeCurrency: { name: "Tara", symbol: "TARA", decimals: 18 },
@@ -20830,7 +20830,7 @@ const wA = /* @__PURE__ */ x({
20830
20830
  url: "https://explorer.mainnet.taraxa.io"
20831
20831
  }
20832
20832
  }
20833
- }), R6 = /* @__PURE__ */ x({
20833
+ }), O6 = /* @__PURE__ */ x({
20834
20834
  id: 167e3,
20835
20835
  name: "Taiko Mainnet",
20836
20836
  nativeCurrency: {
@@ -21828,8 +21828,8 @@ const wA = /* @__PURE__ */ x({
21828
21828
  beam: Mx,
21829
21829
  beamTestnet: Fx,
21830
21830
  bearNetworkChainMainnet: Dx,
21831
- bearNetworkChainTestnet: Ox,
21832
- berachainTestnet: Rx,
21831
+ bearNetworkChainTestnet: Rx,
21832
+ berachainTestnet: Ox,
21833
21833
  berachainTestnetbArtio: Lx,
21834
21834
  bevmMainnet: zx,
21835
21835
  bitTorrent: $x,
@@ -21870,8 +21870,8 @@ const wA = /* @__PURE__ */ x({
21870
21870
  curtis: M2,
21871
21871
  cyber: F2,
21872
21872
  cyberTestnet: D2,
21873
- darwinia: O2,
21874
- dchain: R2,
21873
+ darwinia: R2,
21874
+ dchain: O2,
21875
21875
  dchainTestnet: L2,
21876
21876
  defichainEvm: z2,
21877
21877
  defichainEvmTestnet: _2,
@@ -21919,8 +21919,8 @@ const wA = /* @__PURE__ */ x({
21919
21919
  fuseSparknet: UC,
21920
21920
  gnosis: LC,
21921
21921
  gnosisChiado: zC,
21922
- gobi: OC,
21923
- goerli: RC,
21922
+ gobi: RC,
21923
+ goerli: OC,
21924
21924
  gravity: _C,
21925
21925
  ham: HC,
21926
21926
  haqqMainnet: qC,
@@ -21976,8 +21976,8 @@ const wA = /* @__PURE__ */ x({
21976
21976
  mantle: MA,
21977
21977
  mantleSepoliaTestnet: FA,
21978
21978
  mantleTestnet: DA,
21979
- merlin: OA,
21980
- metachain: RA,
21979
+ merlin: RA,
21980
+ metachain: OA,
21981
21981
  metachainIstanbul: LA,
21982
21982
  metalL2: zA,
21983
21983
  meter: _A,
@@ -22029,8 +22029,8 @@ const wA = /* @__PURE__ */ x({
22029
22029
  qMainnet: Mv,
22030
22030
  qTestnet: Fv,
22031
22031
  real: Dv,
22032
- redbellyTestnet: Ov,
22033
- redstone: Rv,
22032
+ redbellyTestnet: Rv,
22033
+ redstone: Ov,
22034
22034
  reyaNetwork: Lv,
22035
22035
  rollux: zv,
22036
22036
  rolluxTestnet: _v,
@@ -22082,12 +22082,12 @@ const wA = /* @__PURE__ */ x({
22082
22082
  stratis: M6,
22083
22083
  syscoin: F6,
22084
22084
  syscoinTestnet: D6,
22085
- taiko: R6,
22085
+ taiko: O6,
22086
22086
  taikoHekla: L6,
22087
22087
  taikoJolnir: z6,
22088
22088
  taikoKatla: _6,
22089
22089
  taikoTestnetSepolia: H6,
22090
- taraxa: O6,
22090
+ taraxa: R6,
22091
22091
  taraxaTestnet: $6,
22092
22092
  telcoinTestnet: j6,
22093
22093
  telos: G6,
@@ -22138,15 +22138,23 @@ async function vE(e) {
22138
22138
  var s;
22139
22139
  if (!e)
22140
22140
  throw new Error("networkControllerClient:getApprovedCaipNetworks - connector is undefined");
22141
- const t = await (e == null ? void 0 : e.getProvider()), n = (s = t == null ? void 0 : t.session) == null ? void 0 : s.namespaces, r = [];
22142
- return n && Object.keys(n).forEach((o) => {
22143
- var i;
22144
- const a = (i = n == null ? void 0 : n[o]) == null ? void 0 : i.chains;
22145
- a && r.push(...a);
22146
- }), {
22147
- supportsAllNetworks: !0,
22148
- approvedCaipNetworkIds: r
22149
- };
22141
+ const t = await (e == null ? void 0 : e.getProvider()), n = (s = t == null ? void 0 : t.session) == null ? void 0 : s.namespaces;
22142
+ if (!n)
22143
+ return Promise.resolve({
22144
+ approvedCaipNetworkIds: [],
22145
+ supportsAllNetworks: !1
22146
+ });
22147
+ const r = Object.values(n).flatMap((o) => {
22148
+ const a = o.chains || [], i = o.accounts.map((c) => {
22149
+ const [l, u] = c.split(":");
22150
+ return `${l}:${u}`;
22151
+ });
22152
+ return Array.from(/* @__PURE__ */ new Set([...a, ...i]));
22153
+ });
22154
+ return Promise.resolve({
22155
+ approvedCaipNetworkIds: r,
22156
+ supportsAllNetworks: !1
22157
+ });
22150
22158
  }
22151
22159
  function EE() {
22152
22160
  return {
@@ -22369,7 +22377,7 @@ function DE(e) {
22369
22377
  function af(e) {
22370
22378
  return `{${DE(e)}}`;
22371
22379
  }
22372
- function OE(e) {
22380
+ function RE(e) {
22373
22381
  let t = [];
22374
22382
  for (let n = 0, r = e.length; n < r; ) {
22375
22383
  let s = e.codePointAt(n);
@@ -22386,7 +22394,7 @@ function An(e) {
22386
22394
  r.push(String.fromCodePoint(...e.slice(s, s += 4096)));
22387
22395
  return r.join("");
22388
22396
  }
22389
- function RE(e, t) {
22397
+ function OE(e, t) {
22390
22398
  let n = e.length, r = n - t.length;
22391
22399
  for (let s = 0; r == 0 && s < n; s++)
22392
22400
  r = e[s] - t[s];
@@ -22543,7 +22551,7 @@ function nc() {
22543
22551
  }
22544
22552
  for (let u of i)
22545
22553
  !tn.has(u) && !c.has(u) && tn.set(u, bf);
22546
- gf = new Set(rn(i).concat(rn(ff(i)))), vl = FE(e).map((u) => VE.from(u)).sort(RE), Pa = /* @__PURE__ */ new Map();
22554
+ gf = new Set(rn(i).concat(rn(ff(i)))), vl = FE(e).map((u) => VE.from(u)).sort(OE), Pa = /* @__PURE__ */ new Map();
22547
22555
  for (let u of vl) {
22548
22556
  let d = [Pa];
22549
22557
  for (let p of u) {
@@ -22614,7 +22622,7 @@ function ek(e, t, n) {
22614
22622
  nc();
22615
22623
  let r = 0;
22616
22624
  return e.split(hf).map((s) => {
22617
- let o = OE(s), a = {
22625
+ let o = RE(s), a = {
22618
22626
  input: o,
22619
22627
  offset: r
22620
22628
  // codepoint, not substring!
@@ -22774,16 +22782,16 @@ function oc(e, t) {
22774
22782
  c || (c = this.onDisplayUri, f.on("display_uri", c));
22775
22783
  const m = await this.isChainsStale();
22776
22784
  if (f.session && m && await f.disconnect(), !f.session || m) {
22777
- const y = zf.createNamespaces(e.caipNetworks);
22785
+ const y = zf.createNamespaces(e.networks);
22778
22786
  await f.connect({
22779
22787
  optionalNamespaces: y,
22780
22788
  ..."pairingTopic" in p ? { pairingTopic: p.pairingTopic } : {}
22781
- }), this.setRequestedChainsIds(e.caipNetworks.map((w) => Number(w.chainId)));
22789
+ }), this.setRequestedChainsIds(e.networks.map((w) => Number(w.chainId)));
22782
22790
  }
22783
22791
  const h = (await f.enable()).map((y) => $(y)), b = await this.getChainId();
22784
22792
  return c && (f.removeListener("display_uri", c), c = void 0), i && (f.removeListener("connect", i), i = void 0), o || (o = this.onAccountsChanged.bind(this), f.on("accountsChanged", o)), a || (a = this.onChainChanged.bind(this), f.on("chainChanged", a)), u || (u = this.onDisconnect.bind(this), f.on("disconnect", u)), l || (l = this.onSessionDelete.bind(this), f.on("session_delete", l)), { accounts: h, chainId: b };
22785
22793
  } catch (f) {
22786
- throw /(user rejected|connection request reset)/i.test(f == null ? void 0 : f.message) ? new O(f) : f;
22794
+ throw /(user rejected|connection request reset)/i.test(f == null ? void 0 : f.message) ? new R(f) : f;
22787
22795
  }
22788
22796
  },
22789
22797
  async disconnect() {
@@ -22809,7 +22817,7 @@ function oc(e, t) {
22809
22817
  var h, b, y;
22810
22818
  async function f() {
22811
22819
  var E;
22812
- if (!e.caipNetworks.map((g) => Number(g.chainId)).length)
22820
+ if (!e.networks.map((g) => Number(g.chainId)).length)
22813
22821
  return;
22814
22822
  const v = (E = t.universalAdapter) == null ? void 0 : E.getWalletConnectProvider();
22815
22823
  if (!v)
@@ -22820,11 +22828,7 @@ function oc(e, t) {
22820
22828
  const m = (h = t.getCaipNetwork()) == null ? void 0 : h.chainId;
22821
22829
  if (p && m !== p) {
22822
22830
  const w = je.getItem(Ge.ACTIVE_CAIP_NETWORK);
22823
- if (w) {
22824
- const v = JSON.parse(w);
22825
- v.chainNamespace === "eip155" && await ((b = this.switchChain) == null ? void 0 : b.call(this, { chainId: Number(v.chainId) }));
22826
- } else
22827
- await ((y = this.switchChain) == null ? void 0 : y.call(this, { chainId: p }));
22831
+ w ? w.chainNamespace === "eip155" && await ((b = this.switchChain) == null ? void 0 : b.call(this, { chainId: Number(w.chainId) })) : await ((y = this.switchChain) == null ? void 0 : y.call(this, { chainId: p }));
22828
22832
  }
22829
22833
  return r;
22830
22834
  },
@@ -22833,7 +22837,7 @@ function oc(e, t) {
22833
22837
  const p = (b = t.getCaipNetwork()) == null ? void 0 : b.chainId;
22834
22838
  if (p)
22835
22839
  return p;
22836
- const m = (v = (w = (y = (await this.getProvider()).session) == null ? void 0 : y.namespaces.eip155) == null ? void 0 : w.chains) == null ? void 0 : v[0], h = e.caipNetworks.find((E) => E.id === m);
22840
+ const m = (v = (w = (y = (await this.getProvider()).session) == null ? void 0 : y.namespaces.eip155) == null ? void 0 : w.chains) == null ? void 0 : v[0], h = e.networks.find((E) => E.id === m);
22837
22841
  return h == null ? void 0 : h.chainId;
22838
22842
  },
22839
22843
  async isAuthorized() {
@@ -22850,7 +22854,7 @@ function oc(e, t) {
22850
22854
  const m = await this.getProvider();
22851
22855
  if (!m)
22852
22856
  throw new ot();
22853
- const h = e.caipNetworks.find((v) => v.chainId === f), [b] = h ? tf([h]) : [];
22857
+ const h = e.networks.find((v) => v.chainId === f), [b] = h ? tf([h]) : [];
22854
22858
  if (!b)
22855
22859
  throw new J(new Lt());
22856
22860
  try {
@@ -22863,7 +22867,7 @@ function oc(e, t) {
22863
22867
  } catch (v) {
22864
22868
  const E = v;
22865
22869
  if (/(?:user rejected)/iu.test(E.message))
22866
- throw new O(E);
22870
+ throw new R(E);
22867
22871
  try {
22868
22872
  let g;
22869
22873
  p != null && p.blockExplorerUrls ? g = p.blockExplorerUrls : g = (y = b.blockExplorers) != null && y.default.url ? [(w = b.blockExplorers) == null ? void 0 : w.default.url] : [];
@@ -22882,7 +22886,7 @@ function oc(e, t) {
22882
22886
  const A = await this.getRequestedChainsIds();
22883
22887
  return this.setRequestedChainsIds([...A, f]), b;
22884
22888
  } catch (g) {
22885
- throw new O(g);
22889
+ throw new R(g);
22886
22890
  }
22887
22891
  }
22888
22892
  },
@@ -22960,7 +22964,7 @@ function ck(e) {
22960
22964
  let u = await this.getChainId();
22961
22965
  if (i && u !== i) {
22962
22966
  const d = await this.switchChain({ chainId: i }).catch((p) => {
22963
- if (p.code === O.code)
22967
+ if (p.code === R.code)
22964
22968
  throw p;
22965
22969
  return { id: u };
22966
22970
  });
@@ -22968,7 +22972,7 @@ function ck(e) {
22968
22972
  }
22969
22973
  return { accounts: l, chainId: u };
22970
22974
  } catch (c) {
22971
- throw /(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(c.message) ? new O(c) : c;
22975
+ throw /(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(c.message) ? new R(c) : c;
22972
22976
  }
22973
22977
  },
22974
22978
  async disconnect() {
@@ -22990,7 +22994,7 @@ function ck(e) {
22990
22994
  async getProvider() {
22991
22995
  if (!n) {
22992
22996
  const i = await (async () => {
22993
- const { default: c } = await import("./index-KQ0ug1oF.js").then((l) => l.i);
22997
+ const { default: c } = await import("./index-BeGUtgfx.js").then((l) => l.i);
22994
22998
  return typeof c != "function" && typeof c.default == "function" ? c.default : c;
22995
22999
  })();
22996
23000
  t = new i({
@@ -23041,7 +23045,7 @@ function ck(e) {
23041
23045
  params: [w]
23042
23046
  }), l;
23043
23047
  } catch (b) {
23044
- throw new O(b);
23048
+ throw new R(b);
23045
23049
  }
23046
23050
  throw new J(h);
23047
23051
  }
@@ -23078,7 +23082,7 @@ function lk(e) {
23078
23082
  let d = await this.getChainId();
23079
23083
  if (c && d !== c) {
23080
23084
  const p = await this.switchChain({ chainId: c }).catch((f) => {
23081
- if (f.code === O.code)
23085
+ if (f.code === R.code)
23082
23086
  throw f;
23083
23087
  return { id: d };
23084
23088
  });
@@ -23086,7 +23090,7 @@ function lk(e) {
23086
23090
  }
23087
23091
  return { accounts: u, chainId: d };
23088
23092
  } catch (l) {
23089
- throw /(user closed modal|accounts received is empty|user denied account)/i.test(l.message) ? new O(l) : l;
23093
+ throw /(user closed modal|accounts received is empty|user denied account)/i.test(l.message) ? new R(l) : l;
23090
23094
  }
23091
23095
  },
23092
23096
  async disconnect() {
@@ -23108,7 +23112,7 @@ function lk(e) {
23108
23112
  var c;
23109
23113
  if (!r) {
23110
23114
  const l = await (async () => {
23111
- const { default: m } = await import("./index-CZTNKbSO.js").then((h) => h.i);
23115
+ const { default: m } = await import("./index-CCzK6s6K.js").then((h) => h.i);
23112
23116
  return typeof m != "function" && typeof m.default == "function" ? m.default : m;
23113
23117
  })();
23114
23118
  n = new l({ ...e, reloadOnDisconnect: !1 });
@@ -23155,7 +23159,7 @@ function lk(e) {
23155
23159
  params: [v]
23156
23160
  }), u;
23157
23161
  } catch (y) {
23158
- throw new O(y);
23162
+ throw new R(y);
23159
23163
  }
23160
23164
  throw new J(b);
23161
23165
  }
@@ -23182,21 +23186,25 @@ function vf(e) {
23182
23186
  }
23183
23187
  return (n) => ({
23184
23188
  id: me.AUTH_CONNECTOR_ID,
23185
- name: "Web3Modal Auth",
23189
+ name: "AppKit Auth",
23186
23190
  type: "w3mAuth",
23187
23191
  chain: ta.CHAIN.EVM,
23188
23192
  async connect(r = {}) {
23189
- const s = await this.getProvider(), { address: o, chainId: a } = await s.connect({
23190
- chainId: r.chainId
23193
+ const s = await this.getProvider();
23194
+ let o = r.chainId;
23195
+ if (r.isReconnecting && (o = s.getLastUsedChainId(), !o))
23196
+ throw new Error("ChainId not found in provider");
23197
+ const { address: a, chainId: i } = await s.connect({
23198
+ chainId: o
23191
23199
  });
23192
23200
  await s.getSmartAccountEnabledNetworks();
23193
- const i = t(a);
23201
+ const c = t(i);
23194
23202
  return {
23195
- accounts: [o],
23196
- account: o,
23197
- chainId: i,
23203
+ accounts: [a],
23204
+ account: a,
23205
+ chainId: c,
23198
23206
  chain: {
23199
- id: i,
23207
+ id: c,
23200
23208
  unsuported: !1
23201
23209
  }
23202
23210
  };
@@ -23240,10 +23248,6 @@ function vf(e) {
23240
23248
  const s = Number(r);
23241
23249
  n.emitter.emit("change", { chainId: s });
23242
23250
  },
23243
- async onConnect(r) {
23244
- const s = Number(r.chainId), o = await this.getAccounts();
23245
- n.emitter.emit("connect", { accounts: o, chainId: s });
23246
- },
23247
23251
  async onDisconnect(r) {
23248
23252
  await (await this.getProvider()).disconnect();
23249
23253
  }
@@ -23270,20 +23274,20 @@ const uk = [
23270
23274
  ];
23271
23275
  class dk {
23272
23276
  constructor(t) {
23273
- var o, a, i, c;
23274
- this.appKit = void 0, this.options = void 0, this.chainNamespace = ta.CHAIN.EVM, this.defaultCaipNetwork = void 0, this.tokens = yc.getCaipTokens((o = this.options) == null ? void 0 : o.tokens), this.getCaipDefaultNetwork = (a = this.options) == null ? void 0 : a.defaultCaipNetwork, this.siweControllerClient = (i = this.options) == null ? void 0 : i.siweConfig, this.adapterType = "wagmi", this.caipNetworks = t.caipNetworks.map((l) => ({
23275
- ...l,
23276
- rpcUrl: Hf.extendRpcUrlWithProjectId(l.rpcUrl, t.projectId)
23277
- })), this.wagmiChains = tf(this.caipNetworks.filter((l) => l.chainNamespace === ta.CHAIN.EVM));
23278
- const n = this.wagmiChains.map((l) => [
23279
- l.id,
23280
- kE({ chain: l, projectId: t.projectId })
23277
+ var o, a, i;
23278
+ this.appKit = void 0, this.options = void 0, this.chainNamespace = ta.CHAIN.EVM, this.defaultCaipNetwork = void 0, this.tokens = yc.getCaipTokens((o = this.options) == null ? void 0 : o.tokens), this.siweControllerClient = (a = this.options) == null ? void 0 : a.siweConfig, this.adapterType = "wagmi", this.caipNetworks = t.networks.map((c) => ({
23279
+ ...c,
23280
+ rpcUrl: Hf.extendRpcUrlWithProjectId(c.rpcUrl, t.projectId)
23281
+ })), this.wagmiChains = tf(this.caipNetworks.filter((c) => c.chainNamespace === ta.CHAIN.EVM));
23282
+ const n = this.wagmiChains.map((c) => [
23283
+ c.id,
23284
+ kE({ chain: c, projectId: t.projectId })
23281
23285
  ]), r = Object.fromEntries(n), s = [...t.connectors ?? []];
23282
23286
  this.wagmiConfig = Hg({
23283
23287
  ...this.createConfigParams,
23284
23288
  chains: this.wagmiChains,
23285
23289
  transports: r,
23286
- connectors: [...s, ...((c = this.createConfigParams) == null ? void 0 : c.connectors) ?? []]
23290
+ connectors: [...s, ...((i = this.createConfigParams) == null ? void 0 : i.connectors) ?? []]
23287
23291
  });
23288
23292
  }
23289
23293
  setCustomConnectors(t, n) {
@@ -23295,7 +23299,7 @@ class dk {
23295
23299
  appLogoUrl: ((i = t.metadata) == null ? void 0 : i.icons[0]) ?? "Unknown",
23296
23300
  preference: t.coinbasePreference ?? "all"
23297
23301
  }));
23298
- const s = ((c = t.features) == null ? void 0 : c.email) === void 0 ? wc.DEFAULT_FEATURES.email : (l = t.features) == null ? void 0 : l.email, o = ((u = t.features) == null ? void 0 : u.socials) === void 0 ? wc.DEFAULT_FEATURES.socials : ((p = (d = t.features) == null ? void 0 : d.socials) == null ? void 0 : p.length) > 0;
23302
+ const s = ((c = t.features) == null ? void 0 : c.email) === void 0 ? wc.DEFAULT_FEATURES.email : (l = t.features) == null ? void 0 : l.email, o = (u = t.features) != null && u.socials ? ((p = (d = t.features) == null ? void 0 : d.socials) == null ? void 0 : p.length) > 0 : wc.DEFAULT_FEATURES.socials;
23299
23303
  (s || o) && r.push(vf({
23300
23304
  chains: this.wagmiChains,
23301
23305
  options: { projectId: t.projectId }
@@ -23307,12 +23311,12 @@ class dk {
23307
23311
  construct(t, n) {
23308
23312
  var r, s, o;
23309
23313
  if (!n.projectId)
23310
- throw new Error("web3modal:initialize - projectId is undefined");
23311
- if (this.appKit = t, this.options = n, this.caipNetworks = n.caipNetworks, this.defaultCaipNetwork = n.defaultCaipNetwork || this.caipNetworks[0], this.tokens = yc.getCaipTokens(n.tokens), this.setCustomConnectors(n, t), !this.wagmiConfig)
23312
- throw new Error("web3modal:wagmiConfig - is undefined");
23314
+ throw new Error("appkit:initialize - projectId is undefined");
23315
+ if (this.appKit = t, this.options = n, this.caipNetworks = n.networks, this.defaultCaipNetwork = n.defaultNetwork || n.networks[0], this.tokens = yc.getCaipTokens(n.tokens), this.setCustomConnectors(n, t), !this.wagmiConfig)
23316
+ throw new Error("appkit:wagmiConfig - is undefined");
23313
23317
  this.networkControllerClient = {
23314
23318
  switchCaipNetwork: async (a) => {
23315
- je.setItem(Ge.ACTIVE_CAIP_NETWORK, JSON.stringify(a));
23319
+ a && je.setItem(Ge.ACTIVE_CAIP_NETWORK, a);
23316
23320
  const i = Number(qe.caipNetworkIdToNumber(a == null ? void 0 : a.id));
23317
23321
  i && this.wagmiConfig && await yg(this.wagmiConfig, { chainId: i });
23318
23322
  },
@@ -23344,7 +23348,7 @@ class dk {
23344
23348
  await a.setRequestedChainsIds(c.chains);
23345
23349
  const B = (v = this.options) == null ? void 0 : v.siweConfig, N = await ((E = B == null ? void 0 : B.getMessageParams) == null ? void 0 : E.call(B));
23346
23350
  if ((g = B == null ? void 0 : B.options) != null && g.enabled && N && Object.keys(N || {}).length > 0) {
23347
- const { SIWEController: G, getDidChainId: F, getDidAddress: q } = await import("./index-CEUqb47P.js"), T = (C = this.caipNetworks) == null ? void 0 : C.filter((H) => H.chainNamespace === "eip155").map((H) => H.id), P = await i.authenticate({
23351
+ const { SIWEController: G, getDidChainId: F, getDidAddress: q } = await import("./index-BmTGKb68.js"), T = (C = this.caipNetworks) == null ? void 0 : C.filter((H) => H.chainNamespace === "eip155").map((H) => H.id), P = await i.authenticate({
23348
23352
  nonce: await B.getNonce(),
23349
23353
  methods: [...uk],
23350
23354
  ...N,
@@ -23397,7 +23401,7 @@ class dk {
23397
23401
  disconnect: async () => {
23398
23402
  var a, i, c, l, u;
23399
23403
  if (await tg(this.wagmiConfig), (c = (i = (a = this.options) == null ? void 0 : a.siweConfig) == null ? void 0 : i.options) != null && c.signOutOnDisconnect) {
23400
- const { SIWEController: d } = await import("./index-CEUqb47P.js");
23404
+ const { SIWEController: d } = await import("./index-BmTGKb68.js");
23401
23405
  await d.signOut();
23402
23406
  }
23403
23407
  je.removeItem(Ge.WALLET_ID), je.removeItem(Ge.ACTIVE_CAIP_NETWORK), je.removeItem(Ge.CONNECTED_CONNECTOR), je.removeItem(Ge.WALLET_NAME), (l = this.appKit) == null || l.setClientId(null), this.syncAccount({
@@ -23486,7 +23490,8 @@ class dk {
23486
23490
  chainNamespace: this.chainNamespace,
23487
23491
  connectionControllerClient: this.connectionControllerClient,
23488
23492
  networkControllerClient: this.networkControllerClient,
23489
- adapterType: this.adapterType
23493
+ adapterType: this.adapterType,
23494
+ caipNetworks: this.caipNetworks
23490
23495
  }), this.syncConnectors(this.wagmiConfig.connectors), this.syncAuthConnector((r = this.wagmiConfig) == null ? void 0 : r.connectors.find((a) => a.id === me.AUTH_CONNECTOR_ID)), this.syncRequestedNetworks(this.caipNetworks), gg(this.wagmiConfig, {
23491
23496
  onChange: (a) => {
23492
23497
  this.syncConnectors(a), this.syncAuthConnector(a.find((i) => i.id === me.AUTH_CONNECTOR_ID));
@@ -23528,7 +23533,7 @@ class dk {
23528
23533
  async syncAccount({ address: t, chainId: n, connector: r, addresses: s, status: o }) {
23529
23534
  var i, c, l, u, d, p, f, m, h, b, y, w, v, E, g, C, A;
23530
23535
  const a = gc.state.activeCaipAddress;
23531
- if (o === "disconnected" && a) {
23536
+ if (o === "disconnected" && !a) {
23532
23537
  (i = this.appKit) == null || i.resetAccount(this.chainNamespace), (c = this.appKit) == null || c.resetWcConnection(), (l = this.appKit) == null || l.resetNetwork(), (u = this.appKit) == null || u.setAllAccounts([], this.chainNamespace), je.removeItem(Ge.WALLET_ID), je.removeItem(Ge.ACTIVE_CAIP_NETWORK);
23533
23538
  return;
23534
23539
  }
@@ -23585,12 +23590,12 @@ class dk {
23585
23590
  await this.syncBalance(t, n);
23586
23591
  }
23587
23592
  }
23588
- async syncWalletConnectName(t) {
23593
+ async syncReownName(t) {
23589
23594
  var n, r, s;
23590
23595
  if (!this.appKit)
23591
- throw new Error("syncWalletConnectName - appKit is undefined");
23596
+ throw new Error("syncReownName - appKit is undefined");
23592
23597
  try {
23593
- const o = await this.appKit.getWalletConnectName(t);
23598
+ const o = await this.appKit.getReownName(t);
23594
23599
  if (o[0]) {
23595
23600
  const a = o[0];
23596
23601
  (n = this.appKit) == null || n.setProfileName(a.name, this.chainNamespace);
@@ -23608,7 +23613,7 @@ class dk {
23608
23613
  const { name: l, avatar: u } = await this.appKit.fetchIdentity({
23609
23614
  address: t
23610
23615
  });
23611
- (r = this.appKit) == null || r.setProfileName(l, this.chainNamespace), (s = this.appKit) == null || s.setProfileImage(u, this.chainNamespace), l || await this.syncWalletConnectName(t);
23616
+ (r = this.appKit) == null || r.setProfileName(l, this.chainNamespace), (s = this.appKit) == null || s.setProfileImage(u, this.chainNamespace), l || await this.syncReownName(t);
23612
23617
  } catch {
23613
23618
  if (n === Ia.id) {
23614
23619
  const l = await ug(this.wagmiConfig, { address: t, chainId: n });
@@ -23620,9 +23625,9 @@ class dk {
23620
23625
  });
23621
23626
  u && ((a = this.appKit) == null || a.setProfileImage(u, this.chainNamespace));
23622
23627
  } else
23623
- await this.syncWalletConnectName(t), (i = this.appKit) == null || i.setProfileImage(null, this.chainNamespace);
23628
+ await this.syncReownName(t), (i = this.appKit) == null || i.setProfileImage(null, this.chainNamespace);
23624
23629
  } else
23625
- await this.syncWalletConnectName(t), (c = this.appKit) == null || c.setProfileImage(null, this.chainNamespace);
23630
+ await this.syncReownName(t), (c = this.appKit) == null || c.setProfileImage(null, this.chainNamespace);
23626
23631
  }
23627
23632
  }
23628
23633
  async syncBalance(t, n) {
@@ -23745,7 +23750,7 @@ class dk {
23745
23750
  });
23746
23751
  }
23747
23752
  }
23748
- const pk = "@reown/appkit-wagmi", fk = "0.0.5", hk = "module", mk = "./dist/esm/exports/index.js", bk = "./dist/types/exports/index.d.ts", yk = [
23753
+ const pk = "@reown/appkit-wagmi", fk = "1.0.0", hk = "module", mk = "./dist/esm/exports/index.js", bk = "./dist/types/exports/index.d.ts", yk = [
23749
23754
  "dist",
23750
23755
  "!tsconfig.tsbuildinfo"
23751
23756
  ], wk = {
@@ -23823,11 +23828,11 @@ const pk = "@reown/appkit-wagmi", fk = "0.0.5", hk = "module", mk = "./dist/esm/
23823
23828
  vue: {
23824
23829
  optional: !0
23825
23830
  }
23826
- }, kk = "reown <reown.com>", Ik = "Apache-2.0", Sk = "https://github.com/web3modal/web3modal", Bk = {
23831
+ }, kk = "Reown <support@reown.com> (https://reown.com)", Ik = "Apache-2.0", Sk = "https://github.com/reown-com/appkit", Bk = {
23827
23832
  type: "git",
23828
23833
  url: "git+https://github.com/WalletConnect/shadow-appkit.git"
23829
23834
  }, Tk = {
23830
- url: "https://github.com/web3modal/web3modal/issues"
23835
+ url: "https://github.com/reown-com/appkit/issues"
23831
23836
  }, Uk = {
23832
23837
  name: pk,
23833
23838
  version: fk,
@@ -23850,7 +23855,7 @@ const pk = "@reown/appkit-wagmi", fk = "0.0.5", hk = "module", mk = "./dist/esm/
23850
23855
  };
23851
23856
  function Pk(e) {
23852
23857
  const t = new dk({
23853
- caipNetworks: e.caipNetworks,
23858
+ networks: e.networks,
23854
23859
  projectId: e.projectId
23855
23860
  });
23856
23861
  return new jf({
@@ -23862,7 +23867,7 @@ function Pk(e) {
23862
23867
  const a3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23863
23868
  __proto__: null,
23864
23869
  authConnector: vf,
23865
- createWeb3Modal: Pk
23870
+ createAppKit: Pk
23866
23871
  }, Symbol.toStringTag, { value: "Module" }));
23867
23872
  function j(e, t, n) {
23868
23873
  const r = e[t.name];
@@ -24069,7 +24074,7 @@ async function _e(e, t = {}) {
24069
24074
  transport: (l) => vr(c)({ ...l, retryCount: 0 })
24070
24075
  });
24071
24076
  }
24072
- async function Ok(e, t) {
24077
+ async function Rk(e, t) {
24073
24078
  const { account: n, chainId: r, connector: s, ...o } = t;
24074
24079
  let a;
24075
24080
  return typeof n == "object" && n.type === "local" ? a = e.getClient({ chainId: r }) : a = await _e(e, { account: n, chainId: r, connector: s }), await j(a, Ku, "deployContract")({
@@ -24078,7 +24083,7 @@ async function Ok(e, t) {
24078
24083
  chain: r ? { id: r } : null
24079
24084
  });
24080
24085
  }
24081
- async function Rk(e, t = {}) {
24086
+ async function Ok(e, t = {}) {
24082
24087
  var s, o;
24083
24088
  let n;
24084
24089
  if (t.connector)
@@ -24216,7 +24221,7 @@ function Uf(e, t) {
24216
24221
  const { chainId: n, ...r } = t, s = e.getClient({ chainId: n });
24217
24222
  return j(s, Ie, "readContract")(r);
24218
24223
  }
24219
- async function Os(e, t) {
24224
+ async function Rs(e, t) {
24220
24225
  var i;
24221
24226
  const { allowFailure: n = !0, blockNumber: r, blockTag: s, ...o } = t, a = t.contracts;
24222
24227
  try {
@@ -24297,7 +24302,7 @@ async function Il(e, t) {
24297
24302
  }
24298
24303
  ],
24299
24304
  address: o
24300
- }, [c, l, u] = await Os(e, {
24305
+ }, [c, l, u] = await Rs(e, {
24301
24306
  allowFailure: !1,
24302
24307
  contracts: [
24303
24308
  {
@@ -24466,7 +24471,7 @@ async function Nl(e, t) {
24466
24471
  ];
24467
24472
  }
24468
24473
  try {
24469
- const a = o("string"), i = { address: n, abi: a, chainId: r }, [c, l, u, d] = await Os(e, {
24474
+ const a = o("string"), i = { address: n, abi: a, chainId: r }, [c, l, u, d] = await Rs(e, {
24470
24475
  allowFailure: !0,
24471
24476
  contracts: [
24472
24477
  { ...i, functionName: "decimals" },
@@ -24495,7 +24500,7 @@ async function Nl(e, t) {
24495
24500
  };
24496
24501
  } catch (a) {
24497
24502
  if (a instanceof Qe) {
24498
- const i = o("bytes32"), c = { address: n, abi: i, chainId: r }, [l, u, d, p] = await Os(e, {
24503
+ const i = o("bytes32"), c = { address: n, abi: i, chainId: r }, [l, u, d, p] = await Rs(e, {
24499
24504
  allowFailure: !1,
24500
24505
  contracts: [
24501
24506
  { ...c, functionName: "decimals" },
@@ -24958,8 +24963,8 @@ function Sr(e = {}) {
24958
24963
  }))[0]) == null ? void 0 : f.caveats) == null ? void 0 : m[0]) == null ? void 0 : h.value) == null ? void 0 : b.map((E) => $(E)), p.length > 0 && (p = await this.getAccounts());
24959
24964
  } catch (v) {
24960
24965
  const E = v;
24961
- if (E.code === O.code)
24962
- throw new O(E);
24966
+ if (E.code === R.code)
24967
+ throw new R(E);
24963
24968
  if (E.code === ye.code)
24964
24969
  throw E;
24965
24970
  }
@@ -24970,7 +24975,7 @@ function Sr(e = {}) {
24970
24975
  let v = await this.getChainId();
24971
24976
  if (l && v !== l) {
24972
24977
  const E = await this.switchChain({ chainId: l }).catch((g) => {
24973
- if (g.code === O.code)
24978
+ if (g.code === R.code)
24974
24979
  throw g;
24975
24980
  return { id: v };
24976
24981
  });
@@ -24979,7 +24984,7 @@ function Sr(e = {}) {
24979
24984
  return t && await ((y = c.storage) == null ? void 0 : y.removeItem(`${this.id}.disconnected`)), e.target || await ((w = c.storage) == null ? void 0 : w.setItem("injected.connected", !0)), { accounts: p, chainId: v };
24980
24985
  } catch (v) {
24981
24986
  const E = v;
24982
- throw E.code === O.code ? new O(E) : E.code === ye.code ? new ye(E) : E;
24987
+ throw E.code === R.code ? new R(E) : E.code === ye.code ? new ye(E) : E;
24983
24988
  }
24984
24989
  },
24985
24990
  async disconnect() {
@@ -25092,12 +25097,12 @@ function Sr(e = {}) {
25092
25097
  method: "wallet_addEthereumChain",
25093
25098
  params: [A]
25094
25099
  }), await this.getChainId() !== u)
25095
- throw new O(new Error("User rejected switch after adding network."));
25100
+ throw new R(new Error("User rejected switch after adding network."));
25096
25101
  return p;
25097
25102
  } catch (v) {
25098
- throw new O(v);
25103
+ throw new R(v);
25099
25104
  }
25100
- throw w.code === O.code ? new O(w) : new J(w);
25105
+ throw w.code === R.code ? new R(w) : new J(w);
25101
25106
  }
25102
25107
  },
25103
25108
  async onAccountsChanged(l) {
@@ -25154,7 +25159,7 @@ function vo(e) {
25154
25159
  },
25155
25160
  async connect({ chainId: a } = {}) {
25156
25161
  if (n.connectError)
25157
- throw typeof n.connectError == "boolean" ? new O(new Error("Failed to connect.")) : n.connectError;
25162
+ throw typeof n.connectError == "boolean" ? new R(new Error("Failed to connect.")) : n.connectError;
25158
25163
  const c = await (await this.getProvider()).request({
25159
25164
  method: "eth_requestAccounts"
25160
25165
  });
@@ -25208,16 +25213,16 @@ function vo(e) {
25208
25213
  if (u === "eth_requestAccounts")
25209
25214
  return e.accounts;
25210
25215
  if (u === "eth_signTypedData_v4" && n.signTypedDataError)
25211
- throw typeof n.signTypedDataError == "boolean" ? new O(new Error("Failed to sign typed data.")) : n.signTypedDataError;
25216
+ throw typeof n.signTypedDataError == "boolean" ? new R(new Error("Failed to sign typed data.")) : n.signTypedDataError;
25212
25217
  if (u === "wallet_switchEthereumChain") {
25213
25218
  if (n.switchChainError)
25214
- throw typeof n.switchChainError == "boolean" ? new O(new Error("Failed to switch chain.")) : n.switchChainError;
25219
+ throw typeof n.switchChainError == "boolean" ? new R(new Error("Failed to switch chain.")) : n.switchChainError;
25215
25220
  s = ra(d[0].chainId, "number"), this.onChainChanged(s.toString());
25216
25221
  return;
25217
25222
  }
25218
25223
  if (u === "wallet_watchAsset") {
25219
25224
  if (n.watchAssetError)
25220
- throw typeof n.watchAssetError == "boolean" ? new O(new Error("Failed to switch chain.")) : n.watchAssetError;
25225
+ throw typeof n.watchAssetError == "boolean" ? new R(new Error("Failed to switch chain.")) : n.watchAssetError;
25221
25226
  return r;
25222
25227
  }
25223
25228
  if (u === "wallet_getCapabilities")
@@ -25289,7 +25294,7 @@ function vo(e) {
25289
25294
  return;
25290
25295
  if (u === "personal_sign") {
25291
25296
  if (n.signMessageError)
25292
- throw typeof n.signMessageError == "boolean" ? new O(new Error("Failed to sign message.")) : n.signMessageError;
25297
+ throw typeof n.signMessageError == "boolean" ? new R(new Error("Failed to sign message.")) : n.signMessageError;
25293
25298
  u = "eth_sign", d = [d[1], d[0]];
25294
25299
  }
25295
25300
  const p = { method: u, params: d }, { error: f, result: m } = await Lo.http(c, { body: p });
@@ -25565,7 +25570,7 @@ const ir = (e) => (t) => {
25565
25570
  "[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."
25566
25571
  ), B8(e, t)) : T8(e, t), P8 = U8;
25567
25572
  var N8 = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
25568
- const Ol = (e) => {
25573
+ const Rl = (e) => {
25569
25574
  let t;
25570
25575
  const n = /* @__PURE__ */ new Set(), r = (c, l) => {
25571
25576
  const u = typeof c == "function" ? c(t) : c;
@@ -25579,7 +25584,7 @@ const Ol = (e) => {
25579
25584
  ), n.clear();
25580
25585
  } };
25581
25586
  return t = e(r, s, i), i;
25582
- }, ea = (e) => e ? Ol(e) : Ol;
25587
+ }, ea = (e) => e ? Rl(e) : Rl;
25583
25588
  class M8 {
25584
25589
  constructor(t) {
25585
25590
  Object.defineProperty(this, "uid", {
@@ -25620,7 +25625,7 @@ function ic(e, t) {
25620
25625
  return (s == null ? void 0 : s.__type) === "bigint" && (s = BigInt(s.value)), (s == null ? void 0 : s.__type) === "Map" && (s = new Map(s.value)), (t == null ? void 0 : t(n, s)) ?? s;
25621
25626
  });
25622
25627
  }
25623
- function Rl(e, t) {
25628
+ function Ol(e, t) {
25624
25629
  return e.slice(0, t).join(".") || ".";
25625
25630
  }
25626
25631
  function Ll(e, t) {
@@ -25639,20 +25644,20 @@ function D8(e, t) {
25639
25644
  l === 0 ? s[s.length] = this : (s.splice(l), o.splice(l)), o[o.length] = i;
25640
25645
  const u = Ll(s, c);
25641
25646
  if (u !== 0)
25642
- return r ? t.call(this, i, c, Rl(o, u)) : `[ref=${Rl(o, u)}]`;
25647
+ return r ? t.call(this, i, c, Ol(o, u)) : `[ref=${Ol(o, u)}]`;
25643
25648
  } else
25644
25649
  s[0] = c, o[0] = i;
25645
25650
  return n ? e.call(this, i, c) : c;
25646
25651
  };
25647
25652
  }
25648
- function Of(e, t, n, r) {
25653
+ function Rf(e, t, n, r) {
25649
25654
  return JSON.stringify(e, D8((s, o) => {
25650
25655
  let a = o;
25651
25656
  return typeof a == "bigint" && (a = { __type: "bigint", value: o.toString() }), a instanceof Map && (a = { __type: "Map", value: Array.from(o.entries()) }), (t == null ? void 0 : t(s, a)) ?? a;
25652
25657
  }, r), n ?? void 0);
25653
25658
  }
25654
- function Rf(e) {
25655
- const { deserialize: t = ic, key: n = "wagmi", serialize: r = Of, storage: s = cc } = e;
25659
+ function Of(e) {
25660
+ const { deserialize: t = ic, key: n = "wagmi", serialize: r = Rf, storage: s = cc } = e;
25656
25661
  function o(a) {
25657
25662
  return a instanceof Promise ? a.then((i) => i).catch(() => null) : a;
25658
25663
  }
@@ -25680,7 +25685,7 @@ const cc = {
25680
25685
  }
25681
25686
  }, Na = 256;
25682
25687
  let ss = Na, os;
25683
- function O8(e = 11) {
25688
+ function R8(e = 11) {
25684
25689
  if (!os || ss + e > Na * 2) {
25685
25690
  os = "", ss = 0;
25686
25691
  for (let t = 0; t < Na; t++)
@@ -25688,8 +25693,8 @@ function O8(e = 11) {
25688
25693
  }
25689
25694
  return os.substring(ss, ss++ + e);
25690
25695
  }
25691
- function R8(e) {
25692
- const { multiInjectedProviderDiscovery: t = !0, storage: n = Rf({
25696
+ function O8(e) {
25697
+ const { multiInjectedProviderDiscovery: t = !0, storage: n = Of({
25693
25698
  storage: typeof window < "u" && window.localStorage ? window.localStorage : cc
25694
25699
  }), syncConnectedChain: r = !0, ssr: s = !1, ...o } = e, a = typeof window < "u" && t ? Gp() : void 0, i = ea(() => o.chains), c = ea(() => [
25695
25700
  ...o.connectors ?? [],
@@ -25697,7 +25702,7 @@ function R8(e) {
25697
25702
  ].map(l));
25698
25703
  function l(g) {
25699
25704
  var k;
25700
- const C = F8(O8()), A = {
25705
+ const C = F8(R8()), A = {
25701
25706
  ...g({
25702
25707
  emitter: C,
25703
25708
  chains: i.getState(),
@@ -26046,14 +26051,14 @@ const i3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26046
26051
  connect: Dk,
26047
26052
  cookieStorage: H8,
26048
26053
  cookieToInitialState: $8,
26049
- createConfig: R8,
26054
+ createConfig: O8,
26050
26055
  createConnector: C8,
26051
- createStorage: Rf,
26056
+ createStorage: Of,
26052
26057
  custom: vr,
26053
26058
  deepEqual: ht,
26054
- deployContract: Ok,
26059
+ deployContract: Rk,
26055
26060
  deserialize: ic,
26056
- disconnect: Rk,
26061
+ disconnect: Ok,
26057
26062
  estimateFeesPerGas: zk,
26058
26063
  estimateGas: Lk,
26059
26064
  estimateMaxPriorityFeePerGas: _k,
@@ -26105,10 +26110,10 @@ const i3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26105
26110
  parseCookie: lc,
26106
26111
  prepareTransactionRequest: n8,
26107
26112
  readContract: Uf,
26108
- readContracts: Os,
26113
+ readContracts: Rs,
26109
26114
  reconnect: Mf,
26110
26115
  sendTransaction: r8,
26111
- serialize: Of,
26116
+ serialize: Rf,
26112
26117
  signMessage: s8,
26113
26118
  signTypedData: o8,
26114
26119
  simulateContract: Ff,
@@ -26155,7 +26160,7 @@ function G8(e) {
26155
26160
  let u = await this.getChainId();
26156
26161
  if (i && u !== i) {
26157
26162
  const d = await this.switchChain({ chainId: i }).catch((p) => {
26158
- if (p.code === O.code)
26163
+ if (p.code === R.code)
26159
26164
  throw p;
26160
26165
  return { id: u };
26161
26166
  });
@@ -26163,7 +26168,7 @@ function G8(e) {
26163
26168
  }
26164
26169
  return { accounts: l, chainId: u };
26165
26170
  } catch (c) {
26166
- throw /(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(c.message) ? new O(c) : c;
26171
+ throw /(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(c.message) ? new R(c) : c;
26167
26172
  }
26168
26173
  },
26169
26174
  async disconnect() {
@@ -26185,7 +26190,7 @@ function G8(e) {
26185
26190
  async getProvider() {
26186
26191
  if (!n) {
26187
26192
  const i = await (async () => {
26188
- const { default: c } = await import("./index-KQ0ug1oF.js").then((l) => l.i);
26193
+ const { default: c } = await import("./index-BeGUtgfx.js").then((l) => l.i);
26189
26194
  return typeof c != "function" && typeof c.default == "function" ? c.default : c;
26190
26195
  })();
26191
26196
  t = new i({
@@ -26236,7 +26241,7 @@ function G8(e) {
26236
26241
  params: [w]
26237
26242
  }), l;
26238
26243
  } catch (b) {
26239
- throw new O(b);
26244
+ throw new R(b);
26240
26245
  }
26241
26246
  throw new J(h);
26242
26247
  }
@@ -26273,7 +26278,7 @@ function q8(e) {
26273
26278
  let d = await this.getChainId();
26274
26279
  if (c && d !== c) {
26275
26280
  const p = await this.switchChain({ chainId: c }).catch((f) => {
26276
- if (f.code === O.code)
26281
+ if (f.code === R.code)
26277
26282
  throw f;
26278
26283
  return { id: d };
26279
26284
  });
@@ -26281,7 +26286,7 @@ function q8(e) {
26281
26286
  }
26282
26287
  return { accounts: u, chainId: d };
26283
26288
  } catch (l) {
26284
- throw /(user closed modal|accounts received is empty|user denied account)/i.test(l.message) ? new O(l) : l;
26289
+ throw /(user closed modal|accounts received is empty|user denied account)/i.test(l.message) ? new R(l) : l;
26285
26290
  }
26286
26291
  },
26287
26292
  async disconnect() {
@@ -26303,7 +26308,7 @@ function q8(e) {
26303
26308
  var c;
26304
26309
  if (!r) {
26305
26310
  const l = await (async () => {
26306
- const { default: m } = await import("./index-CZTNKbSO.js").then((h) => h.i);
26311
+ const { default: m } = await import("./index-CCzK6s6K.js").then((h) => h.i);
26307
26312
  return typeof m != "function" && typeof m.default == "function" ? m.default : m;
26308
26313
  })();
26309
26314
  n = new l({ ...e, reloadOnDisconnect: !1 });
@@ -26350,7 +26355,7 @@ function q8(e) {
26350
26355
  params: [v]
26351
26356
  }), u;
26352
26357
  } catch (y) {
26353
- throw new O(y);
26358
+ throw new R(y);
26354
26359
  }
26355
26360
  throw new J(b);
26356
26361
  }
@@ -26392,7 +26397,7 @@ function dc(e = {}) {
26392
26397
  let m = await this.getChainId();
26393
26398
  if (u && m !== u) {
26394
26399
  const h = await this.switchChain({ chainId: u }).catch((b) => {
26395
- if (b.code === O.code)
26400
+ if (b.code === R.code)
26396
26401
  throw b;
26397
26402
  return { id: m };
26398
26403
  });
@@ -26401,7 +26406,7 @@ function dc(e = {}) {
26401
26406
  return i && (p.removeListener("display_uri", i), i = void 0), a && (p.removeListener("connect", a), a = void 0), s || (s = this.onAccountsChanged.bind(this), p.on("accountsChanged", s)), o || (o = this.onChainChanged.bind(this), p.on("chainChanged", o)), c || (c = this.onDisconnect.bind(this), p.on("disconnect", c)), { accounts: f, chainId: m };
26402
26407
  } catch (m) {
26403
26408
  const h = m;
26404
- throw h.code === O.code ? new O(h) : h.code === ye.code ? new ye(h) : h;
26409
+ throw h.code === R.code ? new R(h) : h.code === ye.code ? new ye(h) : h;
26405
26410
  }
26406
26411
  },
26407
26412
  async disconnect() {
@@ -26420,7 +26425,7 @@ function dc(e = {}) {
26420
26425
  async getProvider() {
26421
26426
  async function u() {
26422
26427
  const d = await (async () => {
26423
- const { default: p } = await import("./metamask-sdk-DvRJGKsF.js").then((f) => f.m);
26428
+ const { default: p } = await import("./metamask-sdk-DPJxxXN8.js").then((f) => f.m);
26424
26429
  return typeof p != "function" && typeof p.default == "function" ? p.default : p;
26425
26430
  })();
26426
26431
  return t = new d({
@@ -26493,12 +26498,12 @@ function dc(e = {}) {
26493
26498
  method: "wallet_addEthereumChain",
26494
26499
  params: [k]
26495
26500
  }), await this.getChainId() !== d)
26496
- throw new O(new Error("User rejected switch after adding network."));
26501
+ throw new R(new Error("User rejected switch after adding network."));
26497
26502
  return f;
26498
26503
  } catch (E) {
26499
- throw new O(E);
26504
+ throw new R(E);
26500
26505
  }
26501
- throw v.code === O.code ? new O(v) : new J(v);
26506
+ throw v.code === R.code ? new R(v) : new J(v);
26502
26507
  }
26503
26508
  },
26504
26509
  async onAccountsChanged(u) {
@@ -26566,12 +26571,12 @@ function pc(e = {}) {
26566
26571
  async getProvider() {
26567
26572
  if (typeof window < "u" && (window == null ? void 0 : window.parent) !== window) {
26568
26573
  if (!n) {
26569
- const { default: a } = await import("./index-Obv6EKFg.js"), i = new a(e), c = await xt(() => i.safe.getInfo(), {
26574
+ const { default: a } = await import("./index-XErsLRGr.js"), i = new a(e), c = await xt(() => i.safe.getInfo(), {
26570
26575
  timeout: e.unstable_getInfoTimeout ?? 10
26571
26576
  });
26572
26577
  if (!c)
26573
26578
  throw new Error("Could not load Safe information");
26574
- const { SafeAppProvider: l } = await import("./index-DxEKvu_F.js").then((u) => u.i);
26579
+ const { SafeAppProvider: l } = await import("./index-CpPWzw23.js").then((u) => u.i);
26575
26580
  n = new l(c, i);
26576
26581
  }
26577
26582
  return n;
@@ -26640,7 +26645,7 @@ function fc(e) {
26640
26645
  const v = (await b.enable()).map((g) => $(g)), E = await this.getChainId();
26641
26646
  return c && (b.removeListener("display_uri", c), c = void 0), i && (b.removeListener("connect", i), i = void 0), o || (o = this.onAccountsChanged.bind(this), b.on("accountsChanged", o)), a || (a = this.onChainChanged.bind(this), b.on("chainChanged", a)), u || (u = this.onDisconnect.bind(this), b.on("disconnect", u)), l || (l = this.onSessionDelete.bind(this), b.on("session_delete", l)), { accounts: v, chainId: E };
26642
26647
  } catch (b) {
26643
- throw /(user rejected|connection request reset)/i.test(b == null ? void 0 : b.message) ? new O(b) : b;
26648
+ throw /(user rejected|connection request reset)/i.test(b == null ? void 0 : b.message) ? new R(b) : b;
26644
26649
  }
26645
26650
  },
26646
26651
  async disconnect() {
@@ -26663,7 +26668,7 @@ function fc(e) {
26663
26668
  const h = d.chains.map((y) => y.id);
26664
26669
  if (!h.length)
26665
26670
  return;
26666
- const { EthereumProvider: b } = await import("./index.es-BGqGHUjM.js");
26671
+ const { EthereumProvider: b } = await import("./index.es-BhyAt79s.js");
26667
26672
  return await b.init({
26668
26673
  ...e,
26669
26674
  disableProviderPing: !0,
@@ -26722,7 +26727,7 @@ function fc(e) {
26722
26727
  } catch (v) {
26723
26728
  const E = v;
26724
26729
  if (/(user rejected)/i.test(E.message))
26725
- throw new O(E);
26730
+ throw new R(E);
26726
26731
  try {
26727
26732
  let g;
26728
26733
  p != null && p.blockExplorerUrls ? g = p.blockExplorerUrls : g = (b = h.blockExplorers) != null && b.default.url ? [(y = h.blockExplorers) == null ? void 0 : y.default.url] : [];
@@ -26743,7 +26748,7 @@ function fc(e) {
26743
26748
  const k = await this.getRequestedChainsIds();
26744
26749
  return this.setRequestedChainsIds([...k, f]), h;
26745
26750
  } catch (g) {
26746
- throw new O(g);
26751
+ throw new R(g);
26747
26752
  }
26748
26753
  }
26749
26754
  },