@weave-sdk/widget 1.0.4 → 1.0.5

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.
@@ -2,10 +2,10 @@ var Ma = (e) => {
2
2
  throw TypeError(e);
3
3
  };
4
4
  var Uo = (e, t, n) => t.has(e) || Ma("Cannot " + n);
5
- var w = (e, t, n) => (Uo(e, t, "read from private field"), n ? n.call(e) : t.get(e)), V = (e, t, n) => t.has(e) ? Ma("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), L = (e, t, n, r) => (Uo(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), J = (e, t, n) => (Uo(e, t, "access private method"), n);
5
+ var w = (e, t, n) => (Uo(e, t, "read from private field"), n ? n.call(e) : t.get(e)), V = (e, t, n) => t.has(e) ? Ma("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), D = (e, t, n, r) => (Uo(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), J = (e, t, n) => (Uo(e, t, "access private method"), n);
6
6
  var Ms = (e, t, n, r) => ({
7
7
  set _(s) {
8
- L(e, t, s, n);
8
+ D(e, t, s, n);
9
9
  },
10
10
  get _() {
11
11
  return w(e, t, r);
@@ -70,9 +70,9 @@ var Or = {};
70
70
  * This source code is licensed under the MIT license found in the
71
71
  * LICENSE file in the root directory of this source tree.
72
72
  */
73
- var La;
73
+ var Da;
74
74
  function I0() {
75
- return La || (La = 1, process.env.NODE_ENV !== "production" && function() {
75
+ return Da || (Da = 1, process.env.NODE_ENV !== "production" && function() {
76
76
  var e = ue, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), u = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), b = Symbol.iterator, y = "@@iterator";
77
77
  function m(E) {
78
78
  if (E === null || typeof E != "object")
@@ -656,8 +656,8 @@ React keys must be passed directly to JSX without using spread:
656
656
  function Vn(E, j, O) {
657
657
  return Wn(E, j, O, !1);
658
658
  }
659
- var Lo = Vn, Do = jr;
660
- Or.Fragment = r, Or.jsx = Lo, Or.jsxs = Do;
659
+ var Do = Vn, Lo = jr;
660
+ Or.Fragment = r, Or.jsx = Do, Or.jsxs = Lo;
661
661
  }()), Or;
662
662
  }
663
663
  process.env.NODE_ENV === "production" ? hi.exports = P0() : hi.exports = I0();
@@ -722,7 +722,7 @@ const ra = [
722
722
  { id: "ZEC", name: "Zcash", token: "ZEC", tint: "#F4B728", icon: "Z", network: "Zcash", logo: "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/zcash/info/logo.png", key: "crypto:ZEC:ZEC" },
723
723
  { id: "DASH", name: "Dash", token: "DASH", tint: "#008CE7", icon: "D", network: "Dash", logo: "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/dash/info/logo.png", key: "crypto:DASH:DASH" }
724
724
  ];
725
- function Da(e) {
725
+ function La(e) {
726
726
  if (!e) throw new Error("asset key is required");
727
727
  const t = e.split(":");
728
728
  if (t[0] === "fiat" && t[1]) {
@@ -741,7 +741,7 @@ function T0(e) {
741
741
  }
742
742
  function O0(e, t) {
743
743
  try {
744
- const n = Da(e).kind, r = Da(t).kind;
744
+ const n = La(e).kind, r = La(t).kind;
745
745
  return n === "crypto" && r === "fiat" ? "offramp" : n === "fiat" && r === "crypto" ? "onramp" : n === "crypto" && r === "crypto" ? "bridge" : "transfer";
746
746
  } catch {
747
747
  return "transfer";
@@ -1376,7 +1376,7 @@ function _0(e, t, n, r) {
1376
1376
  const p = r.crossOrigin;
1377
1377
  return { x: c, y: l, h: a, w: u, excavation: h, opacity: d, crossOrigin: p };
1378
1378
  }
1379
- function L0(e, t) {
1379
+ function D0(e, t) {
1380
1380
  return t != null ? Math.max(Math.floor(t), 0) : e ? B0 : M0;
1381
1381
  }
1382
1382
  function yu({
@@ -1402,7 +1402,7 @@ function yu({
1402
1402
  }, [e, t, n, u]);
1403
1403
  const { cells: c, margin: l, numCells: d, calculatedImageSettings: h } = ue.useMemo(() => {
1404
1404
  let p = a.getModules();
1405
- const b = L0(r, s), y = p.length + b * 2, m = _0(
1405
+ const b = D0(r, s), y = p.length + b * 2, m = _0(
1406
1406
  p,
1407
1407
  i,
1408
1408
  b,
@@ -1423,7 +1423,7 @@ function yu({
1423
1423
  calculatedImageSettings: h
1424
1424
  };
1425
1425
  }
1426
- var D0 = function() {
1426
+ var L0 = function() {
1427
1427
  try {
1428
1428
  new Path2D().addPath(new Path2D());
1429
1429
  } catch {
@@ -1483,7 +1483,7 @@ var D0 = function() {
1483
1483
  const ee = window.devicePixelRatio || 1;
1484
1484
  G.height = G.width = o * ee;
1485
1485
  const oe = o / $ * ee;
1486
- F.scale(oe, oe), F.fillStyle = u, F.fillRect(0, 0, $, $), F.fillStyle = a, D0 ? F.fill(new Path2D(pu(se, I))) : T.forEach(function(we, et) {
1486
+ F.scale(oe, oe), F.fillStyle = u, F.fillRect(0, 0, $, $), F.fillStyle = a, L0 ? F.fill(new Path2D(pu(se, I))) : T.forEach(function(we, et) {
1487
1487
  we.forEach(function(Ue, Ge) {
1488
1488
  Ue && F.fillRect(Ge + I, et + I, 1, 1);
1489
1489
  });
@@ -2643,7 +2643,7 @@ function ku(e, t = {}) {
2643
2643
  }
2644
2644
  const rd = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
2645
2645
  function sn(e, t = {}) {
2646
- return typeof e == "number" || typeof e == "bigint" ? D(e, t) : typeof e == "string" ? oa(e, t) : typeof e == "boolean" ? Cu(e, t) : Re(e, t);
2646
+ return typeof e == "number" || typeof e == "bigint" ? L(e, t) : typeof e == "string" ? oa(e, t) : typeof e == "boolean" ? Cu(e, t) : Re(e, t);
2647
2647
  }
2648
2648
  function Cu(e, t = {}) {
2649
2649
  const n = `0x${Number(e)}`;
@@ -2656,7 +2656,7 @@ function Re(e, t = {}) {
2656
2656
  const r = `0x${n}`;
2657
2657
  return typeof t.size == "number" ? (Je(r, { size: t.size }), vr(r, { dir: "right", size: t.size })) : r;
2658
2658
  }
2659
- function D(e, t = {}) {
2659
+ function L(e, t = {}) {
2660
2660
  const { signed: n, size: r } = t, s = BigInt(e);
2661
2661
  let o;
2662
2662
  r ? n ? o = (1n << BigInt(r) * 8n - 1n) - 1n : o = 2n ** (BigInt(r) * 8n) - 1n : typeof e == "number" && (o = BigInt(Number.MAX_SAFE_INTEGER));
@@ -2718,7 +2718,7 @@ function gt(e, t = {}) {
2718
2718
  return o;
2719
2719
  }
2720
2720
  function ad(e, t) {
2721
- const n = D(e, t);
2721
+ const n = L(e, t);
2722
2722
  return gt(n);
2723
2723
  }
2724
2724
  function Au(e, t = {}) {
@@ -2738,7 +2738,7 @@ function Pu(e, t = !1) {
2738
2738
  }
2739
2739
  return [r, s];
2740
2740
  }
2741
- const Wa = (e, t, n) => e >>> n, Va = (e, t, n) => e << 32 - n | t >>> n, qn = (e, t, n) => e >>> n | t << 32 - n, Kn = (e, t, n) => e << 32 - n | t >>> n, _s = (e, t, n) => e << 64 - n | t >>> n - 32, Ls = (e, t, n) => e >>> n - 32 | t << 64 - n, ud = (e, t, n) => e << n | t >>> 32 - n, ld = (e, t, n) => t << n | e >>> 32 - n, dd = (e, t, n) => t << n - 32 | e >>> 64 - n, fd = (e, t, n) => e << n - 32 | t >>> 64 - n;
2741
+ const Wa = (e, t, n) => e >>> n, Va = (e, t, n) => e << 32 - n | t >>> n, qn = (e, t, n) => e >>> n | t << 32 - n, Kn = (e, t, n) => e << 32 - n | t >>> n, _s = (e, t, n) => e << 64 - n | t >>> n - 32, Ds = (e, t, n) => e >>> n - 32 | t << 64 - n, ud = (e, t, n) => e << n | t >>> 32 - n, ld = (e, t, n) => t << n | e >>> 32 - n, dd = (e, t, n) => t << n - 32 | e >>> 64 - n, fd = (e, t, n) => e << n - 32 | t >>> 64 - n;
2742
2742
  function Ct(e, t, n, r) {
2743
2743
  const s = (t >>> 0) + (r >>> 0);
2744
2744
  return { h: e + n + (s / 2 ** 32 | 0) | 0, l: s | 0 };
@@ -2798,7 +2798,7 @@ function Ed(e) {
2798
2798
  return e;
2799
2799
  }
2800
2800
  const qa = vd ? (e) => e : Ed, ju = /* @ts-ignore */ typeof Uint8Array.from([]).toHex == "function" && typeof Uint8Array.fromHex == "function", kd = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
2801
- function Lm(e) {
2801
+ function Dm(e) {
2802
2802
  if (Fn(e), ju)
2803
2803
  return e.toHex();
2804
2804
  let t = "";
@@ -2815,7 +2815,7 @@ function Ka(e) {
2815
2815
  if (e >= At.a && e <= At.f)
2816
2816
  return e - (At.a - 10);
2817
2817
  }
2818
- function Dm(e) {
2818
+ function Lm(e) {
2819
2819
  if (typeof e != "string")
2820
2820
  throw new Error("hex string expected, got " + typeof e);
2821
2821
  if (ju)
@@ -3028,12 +3028,12 @@ class _d extends R {
3028
3028
  super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`, { name: "PositionOutOfBoundsError" });
3029
3029
  }
3030
3030
  }
3031
- class Ld extends R {
3031
+ class Dd extends R {
3032
3032
  constructor({ count: t, limit: n }) {
3033
3033
  super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`, { name: "RecursiveReadLimitExceededError" });
3034
3034
  }
3035
3035
  }
3036
- const Dd = {
3036
+ const Ld = {
3037
3037
  bytes: new Uint8Array(),
3038
3038
  dataView: new DataView(new ArrayBuffer(0)),
3039
3039
  position: 0,
@@ -3042,7 +3042,7 @@ const Dd = {
3042
3042
  recursiveReadLimit: Number.POSITIVE_INFINITY,
3043
3043
  assertReadLimit() {
3044
3044
  if (this.recursiveReadCount >= this.recursiveReadLimit)
3045
- throw new Ld({
3045
+ throw new Dd({
3046
3046
  count: this.recursiveReadCount + 1,
3047
3047
  limit: this.recursiveReadLimit
3048
3048
  });
@@ -3156,7 +3156,7 @@ const Dd = {
3156
3156
  }
3157
3157
  };
3158
3158
  function ua(e, { recursiveReadLimit: t = 8192 } = {}) {
3159
- const n = Object.create(Dd);
3159
+ const n = Object.create(Ld);
3160
3160
  return n.bytes = e, n.dataView = new DataView(e.buffer ?? e, e.byteOffset, e.byteLength), n.positionReadCount = /* @__PURE__ */ new Map(), n.recursiveReadLimit = t, n;
3161
3161
  }
3162
3162
  function Ur(e, t, n, { strict: r } = {}) {
@@ -3229,7 +3229,7 @@ function _t(e) {
3229
3229
  return `0x${e.reduce((t, n) => t + n.replace("0x", ""), "")}`;
3230
3230
  }
3231
3231
  const zm = /^(.*)\[([0-9]*)\]$/, Hm = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/, Wd = /^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;
3232
- function Lu(e, t) {
3232
+ function Du(e, t) {
3233
3233
  if (e.length !== t.length)
3234
3234
  throw new V0({
3235
3235
  expectedLength: e.length,
@@ -3286,7 +3286,7 @@ function da(e) {
3286
3286
  let s = 0;
3287
3287
  for (let o = 0; o < e.length; o++) {
3288
3288
  const { dynamic: i, encoded: u } = e[o];
3289
- i ? (n.push(D(t + s, { size: 32 })), r.push(u), s += ge(u)) : n.push(u);
3289
+ i ? (n.push(L(t + s, { size: 32 })), r.push(u), s += ge(u)) : n.push(u);
3290
3290
  }
3291
3291
  return dn([...n, ...r]);
3292
3292
  }
@@ -3314,7 +3314,7 @@ function Kd(e, { length: t, param: n }) {
3314
3314
  if (r || s) {
3315
3315
  const i = da(o);
3316
3316
  if (r) {
3317
- const u = D(o.length, { size: 32 });
3317
+ const u = L(o.length, { size: 32 });
3318
3318
  return {
3319
3319
  dynamic: !0,
3320
3320
  encoded: o.length > 0 ? dn([u, i]) : u
@@ -3337,7 +3337,7 @@ function Qd(e, { param: t }) {
3337
3337
  size: Math.ceil((e.length - 2) / 2 / 32) * 32
3338
3338
  })), {
3339
3339
  dynamic: !0,
3340
- encoded: dn([rn(D(r, { size: 32 })), s])
3340
+ encoded: dn([rn(L(r, { size: 32 })), s])
3341
3341
  };
3342
3342
  }
3343
3343
  if (r !== Number.parseInt(n, 10))
@@ -3366,7 +3366,7 @@ function Xd(e, { signed: t, size: n = 256 }) {
3366
3366
  }
3367
3367
  return {
3368
3368
  dynamic: !1,
3369
- encoded: D(e, {
3369
+ encoded: L(e, {
3370
3370
  size: 32,
3371
3371
  signed: t
3372
3372
  })
@@ -3381,7 +3381,7 @@ function Zd(e) {
3381
3381
  return {
3382
3382
  dynamic: !0,
3383
3383
  encoded: dn([
3384
- rn(D(ge(t), { size: 32 })),
3384
+ rn(L(ge(t), { size: 32 })),
3385
3385
  ...r
3386
3386
  ])
3387
3387
  };
@@ -3408,7 +3408,7 @@ function fa(e) {
3408
3408
  [t[2] ? Number(t[2]) : null, t[1]]
3409
3409
  ) : void 0;
3410
3410
  }
3411
- function Du(e, t) {
3411
+ function Lu(e, t) {
3412
3412
  const n = typeof t == "string" ? gt(t) : t, r = ua(n);
3413
3413
  if (ge(n) === 0 && e.length > 0)
3414
3414
  throw new yo();
@@ -3564,7 +3564,7 @@ function uf(e) {
3564
3564
  return cf(e);
3565
3565
  }
3566
3566
  const lf = "1.2.3";
3567
- let Le = class gi extends Error {
3567
+ let De = class gi extends Error {
3568
3568
  constructor(t, n = {}) {
3569
3569
  var i;
3570
3570
  const r = n.cause instanceof gi ? n.cause.details : (i = n.cause) != null && i.message ? n.cause.message : n.details, s = n.cause instanceof gi && n.cause.docsPath || n.docsPath, o = [
@@ -3604,7 +3604,7 @@ let Le = class gi extends Error {
3604
3604
  }), n.cause && (this.cause = n.cause), this.details = r, this.docsPath = s, this.metaMessages = n.metaMessages, this.shortMessage = t;
3605
3605
  }
3606
3606
  };
3607
- function Lt(e, t) {
3607
+ function Dt(e, t) {
3608
3608
  const n = e.exec(t);
3609
3609
  return n == null ? void 0 : n.groups;
3610
3610
  }
@@ -3618,7 +3618,7 @@ function wi(e) {
3618
3618
  const o = e.components[s];
3619
3619
  t += wi(o), s < n - 1 && (t += ", ");
3620
3620
  }
3621
- const r = Lt(Ja, e.type);
3621
+ const r = Dt(Ja, e.type);
3622
3622
  return t += `)${(r == null ? void 0 : r.array) || ""}`, wi({
3623
3623
  ...e,
3624
3624
  type: t
@@ -3644,42 +3644,42 @@ function ff(e) {
3644
3644
  return Hu.test(e);
3645
3645
  }
3646
3646
  function hf(e) {
3647
- return Lt(Hu, e);
3647
+ return Dt(Hu, e);
3648
3648
  }
3649
3649
  const Gu = /^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;
3650
3650
  function pf(e) {
3651
3651
  return Gu.test(e);
3652
3652
  }
3653
3653
  function bf(e) {
3654
- return Lt(Gu, e);
3654
+ return Dt(Gu, e);
3655
3655
  }
3656
3656
  const Wu = /^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;
3657
3657
  function yf(e) {
3658
3658
  return Wu.test(e);
3659
3659
  }
3660
3660
  function mf(e) {
3661
- return Lt(Wu, e);
3661
+ return Dt(Wu, e);
3662
3662
  }
3663
3663
  const Vu = /^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;
3664
3664
  function qu(e) {
3665
3665
  return Vu.test(e);
3666
3666
  }
3667
3667
  function gf(e) {
3668
- return Lt(Vu, e);
3668
+ return Dt(Vu, e);
3669
3669
  }
3670
3670
  const Ku = /^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;
3671
3671
  function wf(e) {
3672
3672
  return Ku.test(e);
3673
3673
  }
3674
3674
  function xf(e) {
3675
- return Lt(Ku, e);
3675
+ return Dt(Ku, e);
3676
3676
  }
3677
3677
  const Qu = /^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;
3678
3678
  function vf(e) {
3679
3679
  return Qu.test(e);
3680
3680
  }
3681
3681
  function Sf(e) {
3682
- return Lt(Qu, e);
3682
+ return Dt(Qu, e);
3683
3683
  }
3684
3684
  const Ef = /^receive\(\) external payable$/;
3685
3685
  function kf(e) {
@@ -3695,7 +3695,7 @@ const Gm = /* @__PURE__ */ new Set([
3695
3695
  "memory",
3696
3696
  "storage"
3697
3697
  ]);
3698
- class Wm extends Le {
3698
+ class Wm extends De {
3699
3699
  constructor({ signature: t }) {
3700
3700
  super("Failed to parse ABI item.", {
3701
3701
  details: `parseAbiItem(${JSON.stringify(t, null, 2)})`,
@@ -3708,7 +3708,7 @@ class Wm extends Le {
3708
3708
  });
3709
3709
  }
3710
3710
  }
3711
- class Af extends Le {
3711
+ class Af extends De {
3712
3712
  constructor({ type: t }) {
3713
3713
  super("Unknown type.", {
3714
3714
  metaMessages: [
@@ -3722,7 +3722,7 @@ class Af extends Le {
3722
3722
  });
3723
3723
  }
3724
3724
  }
3725
- class Pf extends Le {
3725
+ class Pf extends De {
3726
3726
  constructor({ type: t }) {
3727
3727
  super("Unknown type.", {
3728
3728
  metaMessages: [`Type "${t}" is not a valid ABI type.`]
@@ -3734,7 +3734,7 @@ class Pf extends Le {
3734
3734
  });
3735
3735
  }
3736
3736
  }
3737
- class Vm extends Le {
3737
+ class Vm extends De {
3738
3738
  constructor({ params: t }) {
3739
3739
  super("Failed to parse ABI parameters.", {
3740
3740
  details: `parseAbiParameters(${JSON.stringify(t, null, 2)})`,
@@ -3747,7 +3747,7 @@ class Vm extends Le {
3747
3747
  });
3748
3748
  }
3749
3749
  }
3750
- class If extends Le {
3750
+ class If extends De {
3751
3751
  constructor({ param: t }) {
3752
3752
  super("Invalid ABI parameter.", {
3753
3753
  details: t
@@ -3759,7 +3759,7 @@ class If extends Le {
3759
3759
  });
3760
3760
  }
3761
3761
  }
3762
- class jf extends Le {
3762
+ class jf extends De {
3763
3763
  constructor({ param: t, name: n }) {
3764
3764
  super("Invalid ABI parameter.", {
3765
3765
  details: t,
@@ -3774,7 +3774,7 @@ class jf extends Le {
3774
3774
  });
3775
3775
  }
3776
3776
  }
3777
- class Tf extends Le {
3777
+ class Tf extends De {
3778
3778
  constructor({ param: t, type: n, modifier: r }) {
3779
3779
  super("Invalid ABI parameter.", {
3780
3780
  details: t,
@@ -3789,7 +3789,7 @@ class Tf extends Le {
3789
3789
  });
3790
3790
  }
3791
3791
  }
3792
- class Of extends Le {
3792
+ class Of extends De {
3793
3793
  constructor({ param: t, type: n, modifier: r }) {
3794
3794
  super("Invalid ABI parameter.", {
3795
3795
  details: t,
@@ -3805,7 +3805,7 @@ class Of extends Le {
3805
3805
  });
3806
3806
  }
3807
3807
  }
3808
- class Rf extends Le {
3808
+ class Rf extends De {
3809
3809
  constructor({ abiParameter: t }) {
3810
3810
  super("Invalid ABI parameter.", {
3811
3811
  details: JSON.stringify(t, null, 2),
@@ -3818,7 +3818,7 @@ class Rf extends Le {
3818
3818
  });
3819
3819
  }
3820
3820
  }
3821
- class Sr extends Le {
3821
+ class Sr extends De {
3822
3822
  constructor({ signature: t, type: n }) {
3823
3823
  super(`Invalid ${n} signature.`, {
3824
3824
  details: t
@@ -3830,7 +3830,7 @@ class Sr extends Le {
3830
3830
  });
3831
3831
  }
3832
3832
  }
3833
- class Ff extends Le {
3833
+ class Ff extends De {
3834
3834
  constructor({ signature: t }) {
3835
3835
  super("Unknown signature.", {
3836
3836
  details: t
@@ -3842,7 +3842,7 @@ class Ff extends Le {
3842
3842
  });
3843
3843
  }
3844
3844
  }
3845
- class Bf extends Le {
3845
+ class Bf extends De {
3846
3846
  constructor({ signature: t }) {
3847
3847
  super("Invalid struct signature.", {
3848
3848
  details: t,
@@ -3855,7 +3855,7 @@ class Bf extends Le {
3855
3855
  });
3856
3856
  }
3857
3857
  }
3858
- class Mf extends Le {
3858
+ class Mf extends De {
3859
3859
  constructor({ type: t }) {
3860
3860
  super("Circular reference detected.", {
3861
3861
  metaMessages: [`Struct "${t}" is a circular reference.`]
@@ -3867,7 +3867,7 @@ class Mf extends Le {
3867
3867
  });
3868
3868
  }
3869
3869
  }
3870
- class $f extends Le {
3870
+ class $f extends De {
3871
3871
  constructor({ current: t, depth: n }) {
3872
3872
  super("Unbalanced parentheses.", {
3873
3873
  metaMessages: [
@@ -3949,9 +3949,9 @@ const Wo = /* @__PURE__ */ new Map([
3949
3949
  { type: "uint256", name: "tokenId", indexed: !0 }
3950
3950
  ]
3951
3951
  ]);
3952
- function Lf(e, t = {}) {
3952
+ function Df(e, t = {}) {
3953
3953
  if (yf(e))
3954
- return Df(e, t);
3954
+ return Lf(e, t);
3955
3955
  if (pf(e))
3956
3956
  return Nf(e, t);
3957
3957
  if (ff(e))
@@ -3967,7 +3967,7 @@ function Lf(e, t = {}) {
3967
3967
  };
3968
3968
  throw new Ff({ signature: e });
3969
3969
  }
3970
- function Df(e, t = {}) {
3970
+ function Lf(e, t = {}) {
3971
3971
  const n = mf(e);
3972
3972
  if (!n)
3973
3973
  throw new Sr({ signature: e, type: "function" });
@@ -4046,7 +4046,7 @@ function Mn(e, t) {
4046
4046
  const n = _f(e, t == null ? void 0 : t.type, t == null ? void 0 : t.structs);
4047
4047
  if (Wo.has(n))
4048
4048
  return Wo.get(n);
4049
- const r = zu.test(e), s = Lt(r ? Wf : Gf, e);
4049
+ const r = zu.test(e), s = Dt(r ? Wf : Gf, e);
4050
4050
  if (!s)
4051
4051
  throw new If({ param: e });
4052
4052
  if (s.name && Kf(s.name))
@@ -4158,7 +4158,7 @@ function Xu(e = [], t = {}, n = /* @__PURE__ */ new Set()) {
4158
4158
  if (zu.test(i.type))
4159
4159
  r.push(i);
4160
4160
  else {
4161
- const a = Lt(Xf, i.type);
4161
+ const a = Dt(Xf, i.type);
4162
4162
  if (!(a != null && a.type))
4163
4163
  throw new Rf({ abiParameter: i });
4164
4164
  const { array: c, type: l } = a;
@@ -4182,7 +4182,7 @@ function Zu(e) {
4182
4182
  const t = Yf(e), n = [], r = e.length;
4183
4183
  for (let s = 0; s < r; s++) {
4184
4184
  const o = e[s];
4185
- qu(o) || n.push(Lf(o, t));
4185
+ qu(o) || n.push(Df(o, t));
4186
4186
  }
4187
4187
  return n;
4188
4188
  }
@@ -4299,7 +4299,7 @@ function xo(e) {
4299
4299
  throw new to(void 0, { docsPath: Vo });
4300
4300
  if (!o.outputs)
4301
4301
  throw new q0(o.name, { docsPath: Vo });
4302
- const i = Du(o.outputs, s);
4302
+ const i = Lu(o.outputs, s);
4303
4303
  if (i && i.length > 1)
4304
4304
  return i;
4305
4305
  if (i && i.length === 1)
@@ -4330,7 +4330,7 @@ function ws(e) {
4330
4330
  const { args: t } = e, { abi: n, functionName: r } = (() => {
4331
4331
  var u;
4332
4332
  return e.abi.length === 1 && ((u = e.functionName) != null && u.startsWith("0x")) ? e : th(e);
4333
- })(), s = n[0], o = r, i = "inputs" in s && s.inputs ? Lu(s.inputs, t ?? []) : void 0;
4333
+ })(), s = n[0], o = r, i = "inputs" in s && s.inputs ? Du(s.inputs, t ?? []) : void 0;
4334
4334
  return _t([o, i ?? "0x"]);
4335
4335
  }
4336
4336
  class Si extends R {
@@ -4445,7 +4445,7 @@ function ah(e) {
4445
4445
  });
4446
4446
  return {
4447
4447
  abiItem: i,
4448
- args: "inputs" in i && i.inputs && i.inputs.length > 0 ? Du(i.inputs, Ur(n, 4)) : void 0,
4448
+ args: "inputs" in i && i.inputs && i.inputs.length > 0 ? Lu(i.inputs, Ur(n, 4)) : void 0,
4449
4449
  errorName: i.name
4450
4450
  };
4451
4451
  }
@@ -4826,7 +4826,7 @@ function ce(e, t, n) {
4826
4826
  const s = e[n];
4827
4827
  return typeof s == "function" ? s : (o) => t(e, o);
4828
4828
  }
4829
- class Dr extends R {
4829
+ class Lr extends R {
4830
4830
  constructor({ body: t, cause: n, details: r, headers: s, status: o, url: i }) {
4831
4831
  super("HTTP request failed.", {
4832
4832
  cause: n,
@@ -4900,7 +4900,7 @@ class nc extends R {
4900
4900
  }
4901
4901
  }
4902
4902
  const Eh = -1;
4903
- class De extends R {
4903
+ class Le extends R {
4904
4904
  constructor(t, { code: n, docsPath: r, metaMessages: s, name: o, shortMessage: i }) {
4905
4905
  super(i, {
4906
4906
  cause: t,
@@ -4915,7 +4915,7 @@ class De extends R {
4915
4915
  }), this.name = o || t.name, this.code = t instanceof ma ? t.code : n ?? Eh;
4916
4916
  }
4917
4917
  }
4918
- class Ne extends De {
4918
+ class Ne extends Le {
4919
4919
  constructor(t, n) {
4920
4920
  super(t, n), Object.defineProperty(this, "data", {
4921
4921
  enumerable: !0,
@@ -4925,7 +4925,7 @@ class Ne extends De {
4925
4925
  }), this.data = n.data;
4926
4926
  }
4927
4927
  }
4928
- class Hr extends De {
4928
+ class Hr extends Le {
4929
4929
  constructor(t) {
4930
4930
  super(t, {
4931
4931
  code: Hr.code,
@@ -4940,7 +4940,7 @@ Object.defineProperty(Hr, "code", {
4940
4940
  writable: !0,
4941
4941
  value: -32700
4942
4942
  });
4943
- class Gr extends De {
4943
+ class Gr extends Le {
4944
4944
  constructor(t) {
4945
4945
  super(t, {
4946
4946
  code: Gr.code,
@@ -4955,7 +4955,7 @@ Object.defineProperty(Gr, "code", {
4955
4955
  writable: !0,
4956
4956
  value: -32600
4957
4957
  });
4958
- class Wr extends De {
4958
+ class Wr extends Le {
4959
4959
  constructor(t, { method: n } = {}) {
4960
4960
  super(t, {
4961
4961
  code: Wr.code,
@@ -4970,7 +4970,7 @@ Object.defineProperty(Wr, "code", {
4970
4970
  writable: !0,
4971
4971
  value: -32601
4972
4972
  });
4973
- class Vr extends De {
4973
+ class Vr extends Le {
4974
4974
  constructor(t) {
4975
4975
  super(t, {
4976
4976
  code: Vr.code,
@@ -4989,7 +4989,7 @@ Object.defineProperty(Vr, "code", {
4989
4989
  writable: !0,
4990
4990
  value: -32602
4991
4991
  });
4992
- class $n extends De {
4992
+ class $n extends Le {
4993
4993
  constructor(t) {
4994
4994
  super(t, {
4995
4995
  code: $n.code,
@@ -5004,7 +5004,7 @@ Object.defineProperty($n, "code", {
5004
5004
  writable: !0,
5005
5005
  value: -32603
5006
5006
  });
5007
- class pr extends De {
5007
+ class pr extends Le {
5008
5008
  constructor(t) {
5009
5009
  super(t, {
5010
5010
  code: pr.code,
@@ -5023,7 +5023,7 @@ Object.defineProperty(pr, "code", {
5023
5023
  writable: !0,
5024
5024
  value: -32e3
5025
5025
  });
5026
- class qr extends De {
5026
+ class qr extends Le {
5027
5027
  constructor(t) {
5028
5028
  super(t, {
5029
5029
  code: qr.code,
@@ -5043,7 +5043,7 @@ Object.defineProperty(qr, "code", {
5043
5043
  writable: !0,
5044
5044
  value: -32001
5045
5045
  });
5046
- class on extends De {
5046
+ class on extends Le {
5047
5047
  constructor(t) {
5048
5048
  super(t, {
5049
5049
  code: on.code,
@@ -5058,7 +5058,7 @@ Object.defineProperty(on, "code", {
5058
5058
  writable: !0,
5059
5059
  value: -32002
5060
5060
  });
5061
- class Kr extends De {
5061
+ class Kr extends Le {
5062
5062
  constructor(t) {
5063
5063
  super(t, {
5064
5064
  code: Kr.code,
@@ -5073,7 +5073,7 @@ Object.defineProperty(Kr, "code", {
5073
5073
  writable: !0,
5074
5074
  value: -32003
5075
5075
  });
5076
- class wn extends De {
5076
+ class wn extends Le {
5077
5077
  constructor(t, { method: n } = {}) {
5078
5078
  super(t, {
5079
5079
  code: wn.code,
@@ -5088,7 +5088,7 @@ Object.defineProperty(wn, "code", {
5088
5088
  writable: !0,
5089
5089
  value: -32004
5090
5090
  });
5091
- class br extends De {
5091
+ class br extends Le {
5092
5092
  constructor(t) {
5093
5093
  super(t, {
5094
5094
  code: br.code,
@@ -5103,7 +5103,7 @@ Object.defineProperty(br, "code", {
5103
5103
  writable: !0,
5104
5104
  value: -32005
5105
5105
  });
5106
- class Qr extends De {
5106
+ class Qr extends Le {
5107
5107
  constructor(t) {
5108
5108
  super(t, {
5109
5109
  code: Qr.code,
@@ -5328,7 +5328,7 @@ Object.defineProperty(as, "code", {
5328
5328
  writable: !0,
5329
5329
  value: 7e3
5330
5330
  });
5331
- class kh extends De {
5331
+ class kh extends Le {
5332
5332
  constructor(t) {
5333
5333
  super(t, {
5334
5334
  name: "UnknownRpcError",
@@ -5450,7 +5450,7 @@ function cl(e, t) {
5450
5450
  }
5451
5451
  function ga(e, t) {
5452
5452
  if (yr(e) > t)
5453
- throw new Lh({
5453
+ throw new Dh({
5454
5454
  givenSize: yr(e),
5455
5455
  maxSize: t
5456
5456
  });
@@ -5477,7 +5477,7 @@ function ul(e, t = {}) {
5477
5477
  return e;
5478
5478
  const s = e.replace("0x", "");
5479
5479
  if (s.length > r * 2)
5480
- throw new Dh({
5480
+ throw new Lh({
5481
5481
  size: Math.ceil(s.length / 2),
5482
5482
  targetSize: r,
5483
5483
  type: "Hex"
@@ -5610,7 +5610,7 @@ class sc extends $t {
5610
5610
  });
5611
5611
  }
5612
5612
  }
5613
- class Lh extends $t {
5613
+ class Dh extends $t {
5614
5614
  constructor({ givenSize: t, maxSize: n }) {
5615
5615
  super(`Size cannot exceed \`${n}\` bytes. Given size: \`${t}\` bytes.`), Object.defineProperty(this, "name", {
5616
5616
  enumerable: !0,
@@ -5630,7 +5630,7 @@ class dl extends $t {
5630
5630
  });
5631
5631
  }
5632
5632
  }
5633
- class Dh extends $t {
5633
+ class Lh extends $t {
5634
5634
  constructor({ size: t, targetSize: n, type: r }) {
5635
5635
  super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${n}\`).`), Object.defineProperty(this, "name", {
5636
5636
  enumerable: !0,
@@ -5688,7 +5688,7 @@ function hl(e) {
5688
5688
  throw new Ua({ docsPath: qo });
5689
5689
  if (!s.inputs || s.inputs.length === 0)
5690
5690
  throw new Ua({ docsPath: qo });
5691
- const o = Lu(s.inputs, n);
5691
+ const o = Du(s.inputs, n);
5692
5692
  return _t([r, o]);
5693
5693
  }
5694
5694
  class Jn extends R {
@@ -5941,17 +5941,17 @@ const Vh = {
5941
5941
  };
5942
5942
  function Co(e, t) {
5943
5943
  const n = {};
5944
- return typeof e.authorizationList < "u" && (n.authorizationList = qh(e.authorizationList)), typeof e.accessList < "u" && (n.accessList = e.accessList), typeof e.blobVersionedHashes < "u" && (n.blobVersionedHashes = e.blobVersionedHashes), typeof e.blobs < "u" && (typeof e.blobs[0] != "string" ? n.blobs = e.blobs.map((r) => Re(r)) : n.blobs = e.blobs), typeof e.data < "u" && (n.data = e.data), e.account && (n.from = e.account.address), typeof e.from < "u" && (n.from = e.from), typeof e.gas < "u" && (n.gas = D(e.gas)), typeof e.gasPrice < "u" && (n.gasPrice = D(e.gasPrice)), typeof e.maxFeePerBlobGas < "u" && (n.maxFeePerBlobGas = D(e.maxFeePerBlobGas)), typeof e.maxFeePerGas < "u" && (n.maxFeePerGas = D(e.maxFeePerGas)), typeof e.maxPriorityFeePerGas < "u" && (n.maxPriorityFeePerGas = D(e.maxPriorityFeePerGas)), typeof e.nonce < "u" && (n.nonce = D(e.nonce)), typeof e.to < "u" && (n.to = e.to), typeof e.type < "u" && (n.type = Vh[e.type]), typeof e.value < "u" && (n.value = D(e.value)), n;
5944
+ return typeof e.authorizationList < "u" && (n.authorizationList = qh(e.authorizationList)), typeof e.accessList < "u" && (n.accessList = e.accessList), typeof e.blobVersionedHashes < "u" && (n.blobVersionedHashes = e.blobVersionedHashes), typeof e.blobs < "u" && (typeof e.blobs[0] != "string" ? n.blobs = e.blobs.map((r) => Re(r)) : n.blobs = e.blobs), typeof e.data < "u" && (n.data = e.data), e.account && (n.from = e.account.address), typeof e.from < "u" && (n.from = e.from), typeof e.gas < "u" && (n.gas = L(e.gas)), typeof e.gasPrice < "u" && (n.gasPrice = L(e.gasPrice)), typeof e.maxFeePerBlobGas < "u" && (n.maxFeePerBlobGas = L(e.maxFeePerBlobGas)), typeof e.maxFeePerGas < "u" && (n.maxFeePerGas = L(e.maxFeePerGas)), typeof e.maxPriorityFeePerGas < "u" && (n.maxPriorityFeePerGas = L(e.maxPriorityFeePerGas)), typeof e.nonce < "u" && (n.nonce = L(e.nonce)), typeof e.to < "u" && (n.to = e.to), typeof e.type < "u" && (n.type = Vh[e.type]), typeof e.value < "u" && (n.value = L(e.value)), n;
5945
5945
  }
5946
5946
  function qh(e) {
5947
5947
  return e.map((t) => ({
5948
5948
  address: t.address,
5949
- r: t.r ? D(BigInt(t.r)) : t.r,
5950
- s: t.s ? D(BigInt(t.s)) : t.s,
5951
- chainId: D(t.chainId),
5952
- nonce: D(t.nonce),
5953
- ...typeof t.yParity < "u" ? { yParity: D(t.yParity) } : {},
5954
- ...typeof t.v < "u" && typeof t.yParity > "u" ? { v: D(t.v) } : {}
5949
+ r: t.r ? L(BigInt(t.r)) : t.r,
5950
+ s: t.s ? L(BigInt(t.s)) : t.s,
5951
+ chainId: L(t.chainId),
5952
+ nonce: L(t.nonce),
5953
+ ...typeof t.yParity < "u" ? { yParity: L(t.yParity) } : {},
5954
+ ...typeof t.v < "u" && typeof t.yParity > "u" ? { v: L(t.v) } : {}
5955
5955
  }));
5956
5956
  }
5957
5957
  function pl() {
@@ -6009,7 +6009,7 @@ function oc(e) {
6009
6009
  }
6010
6010
  function Kh(e) {
6011
6011
  const { balance: t, nonce: n, state: r, stateDiff: s, code: o } = e, i = {};
6012
- if (o !== void 0 && (i.code = o), t !== void 0 && (i.balance = D(t)), n !== void 0 && (i.nonce = D(n)), r !== void 0 && (i.state = oc(r)), s !== void 0) {
6012
+ if (o !== void 0 && (i.code = o), t !== void 0 && (i.balance = L(t)), n !== void 0 && (i.nonce = L(n)), r !== void 0 && (i.state = oc(r)), s !== void 0) {
6013
6013
  if (i.state)
6014
6014
  throw new dh();
6015
6015
  i.stateDiff = oc(s);
@@ -6059,7 +6059,7 @@ async function va(e, t) {
6059
6059
  }) : d;
6060
6060
  try {
6061
6061
  vs(t);
6062
- const N = (typeof o == "bigint" ? D(o) : void 0) || i, ee = c ? Uh(c) : void 0, oe = yl(k), we = (se = (F = (G = e.chain) == null ? void 0 : G.formatters) == null ? void 0 : F.transactionRequest) == null ? void 0 : se.format, Ue = (we || Co)({
6062
+ const N = (typeof o == "bigint" ? L(o) : void 0) || i, ee = c ? Uh(c) : void 0, oe = yl(k), we = (se = (F = (G = e.chain) == null ? void 0 : G.formatters) == null ? void 0 : F.transactionRequest) == null ? void 0 : se.format, Ue = (we || Co)({
6063
6063
  // Pick out extra data that might exist on the chain's transaction request type.
6064
6064
  ...ko(C, { format: we }),
6065
6065
  accessList: u,
@@ -6099,7 +6099,7 @@ async function va(e, t) {
6099
6099
  });
6100
6100
  return Se === "0x" ? { data: void 0 } : { data: Se };
6101
6101
  } catch (q) {
6102
- const N = Zh(q), { offchainLookup: ee, offchainLookupSignature: oe } = await import("./ccip-BCQOHgtc.mjs");
6102
+ const N = Zh(q), { offchainLookup: ee, offchainLookupSignature: oe } = await import("./ccip-4I1QrmPC.mjs");
6103
6103
  if (e.ccipRead !== !1 && (N == null ? void 0 : N.slice(0, 10)) === oe && P)
6104
6104
  return { data: await ee(e, { data: N, to: P }) };
6105
6105
  throw M && (N == null ? void 0 : N.slice(0, 10)) === "0x101bb98d" ? new Sh({ factory: h }) : Wh(q, {
@@ -6127,7 +6127,7 @@ async function Yh(e, t) {
6127
6127
  contract: "multicall3"
6128
6128
  });
6129
6129
  throw new tl();
6130
- })(), d = (typeof o == "bigint" ? D(o) : void 0) || i, { schedule: h } = bl({
6130
+ })(), d = (typeof o == "bigint" ? L(o) : void 0) || i, { schedule: h } = bl({
6131
6131
  id: `${e.uid}.${d}`,
6132
6132
  wait: s,
6133
6133
  shouldSplitBatch(m) {
@@ -6224,7 +6224,7 @@ function Jh(e) {
6224
6224
  return wo(`0x${t}`);
6225
6225
  }
6226
6226
  async function ep({ hash: e, signature: t }) {
6227
- const n = un(e) ? e : sn(e), { secp256k1: r } = await import("./secp256k1-Bo32xQoa.mjs").then((i) => i.a);
6227
+ const n = un(e) ? e : sn(e), { secp256k1: r } = await import("./secp256k1-qN21rAWM.mjs").then((i) => i.a);
6228
6228
  return `0x${(() => {
6229
6229
  if (typeof t == "object" && "r" in t && "s" in t) {
6230
6230
  const { r: c, s: l, v: d, yParity: h } = t, p = Number(h ?? d), b = ic(p);
@@ -6291,9 +6291,9 @@ function sp(e) {
6291
6291
  const { chainId: t, nonce: n, to: r } = e, s = e.contractAddress ?? e.address, o = go(_t([
6292
6292
  "0x05",
6293
6293
  fn([
6294
- t ? D(t) : "0x",
6294
+ t ? L(t) : "0x",
6295
6295
  s,
6296
- n ? D(n) : "0x"
6296
+ n ? L(n) : "0x"
6297
6297
  ])
6298
6298
  ]));
6299
6299
  return r === "bytes" ? gt(o) : o;
@@ -6444,7 +6444,7 @@ function Cl(e, t) {
6444
6444
  const lp = /* @__PURE__ */ xa("block", Cl);
6445
6445
  async function mr(e, { blockHash: t, blockNumber: n, blockTag: r = e.experimental_blockTag ?? "latest", includeTransactions: s } = {}) {
6446
6446
  var c, l, d;
6447
- const o = s ?? !1, i = n !== void 0 ? D(n) : void 0;
6447
+ const o = s ?? !1, i = n !== void 0 ? L(n) : void 0;
6448
6448
  let u = null;
6449
6449
  if (t ? u = await e.request({
6450
6450
  method: "eth_getBlockByHash",
@@ -6546,7 +6546,7 @@ async function dp(e, { address: t, blockTag: n = "latest", blockNumber: r }) {
6546
6546
  method: "eth_getTransactionCount",
6547
6547
  params: [
6548
6548
  t,
6549
- typeof r == "bigint" ? D(r) : n
6549
+ typeof r == "bigint" ? L(r) : n
6550
6550
  ]
6551
6551
  }, {
6552
6552
  dedupe: !!r
@@ -6871,12 +6871,12 @@ class Tl extends Il {
6871
6871
  for (let g = 0; g < 16; g++, n += 4)
6872
6872
  Wt[g] = t.getUint32(n), Vt[g] = t.getUint32(n += 4);
6873
6873
  for (let g = 16; g < 80; g++) {
6874
- const P = Wt[g - 15] | 0, v = Vt[g - 15] | 0, k = qn(P, v, 1) ^ qn(P, v, 8) ^ Wa(P, v, 7), C = Kn(P, v, 1) ^ Kn(P, v, 8) ^ Va(P, v, 7), I = Wt[g - 2] | 0, T = Vt[g - 2] | 0, $ = qn(I, T, 19) ^ _s(I, T, 61) ^ Wa(I, T, 6), M = Kn(I, T, 19) ^ Ls(I, T, 61) ^ Va(I, T, 6), W = bd(C, M, Vt[g - 7], Vt[g - 16]), _ = yd(W, k, $, Wt[g - 7], Wt[g - 16]);
6874
+ const P = Wt[g - 15] | 0, v = Vt[g - 15] | 0, k = qn(P, v, 1) ^ qn(P, v, 8) ^ Wa(P, v, 7), C = Kn(P, v, 1) ^ Kn(P, v, 8) ^ Va(P, v, 7), I = Wt[g - 2] | 0, T = Vt[g - 2] | 0, $ = qn(I, T, 19) ^ _s(I, T, 61) ^ Wa(I, T, 6), M = Kn(I, T, 19) ^ Ds(I, T, 61) ^ Va(I, T, 6), W = bd(C, M, Vt[g - 7], Vt[g - 16]), _ = yd(W, k, $, Wt[g - 7], Wt[g - 16]);
6875
6875
  Wt[g] = _ | 0, Vt[g] = W | 0;
6876
6876
  }
6877
6877
  let { Ah: r, Al: s, Bh: o, Bl: i, Ch: u, Cl: a, Dh: c, Dl: l, Eh: d, El: h, Fh: p, Fl: b, Gh: y, Gl: m, Hh: A, Hl: S } = this;
6878
6878
  for (let g = 0; g < 80; g++) {
6879
- const P = qn(d, h, 14) ^ qn(d, h, 18) ^ _s(d, h, 41), v = Kn(d, h, 14) ^ Kn(d, h, 18) ^ Ls(d, h, 41), k = d & p ^ ~d & y, C = h & b ^ ~h & m, I = md(S, v, C, gp[g], Vt[g]), T = gd(I, A, P, k, mp[g], Wt[g]), $ = I | 0, M = qn(r, s, 28) ^ _s(r, s, 34) ^ _s(r, s, 39), W = Kn(r, s, 28) ^ Ls(r, s, 34) ^ Ls(r, s, 39), _ = r & o ^ r & u ^ o & u, G = s & i ^ s & a ^ i & a;
6879
+ const P = qn(d, h, 14) ^ qn(d, h, 18) ^ _s(d, h, 41), v = Kn(d, h, 14) ^ Kn(d, h, 18) ^ Ds(d, h, 41), k = d & p ^ ~d & y, C = h & b ^ ~h & m, I = md(S, v, C, gp[g], Vt[g]), T = gd(I, A, P, k, mp[g], Wt[g]), $ = I | 0, M = qn(r, s, 28) ^ _s(r, s, 34) ^ _s(r, s, 39), W = Kn(r, s, 28) ^ Ds(r, s, 34) ^ Ds(r, s, 39), _ = r & o ^ r & u ^ o & u, G = s & i ^ s & a ^ i & a;
6880
6880
  A = y | 0, S = m | 0, y = p | 0, m = b | 0, p = d | 0, b = h | 0, { h: d, l: h } = Ct(c | 0, l | 0, T | 0, $ | 0), c = u | 0, l = a | 0, u = o | 0, a = i | 0, o = r | 0, i = s | 0;
6881
6881
  const F = hd($, W, G);
6882
6882
  r = pd(F, T, M, _), s = F | 0;
@@ -6997,7 +6997,7 @@ function _l(e) {
6997
6997
  return typeof e.accessList < "u" ? "eip2930" : "legacy";
6998
6998
  throw new ph({ transaction: e });
6999
6999
  }
7000
- function Ll(e, { docsPath: t, ...n }) {
7000
+ function Dl(e, { docsPath: t, ...n }) {
7001
7001
  const r = (() => {
7002
7002
  const s = wa(e, n);
7003
7003
  return s instanceof Eo ? e : s;
@@ -7074,13 +7074,13 @@ async function Ip(e, t) {
7074
7074
  }
7075
7075
  };
7076
7076
  } catch (_) {
7077
- throw Ll(_, {
7077
+ throw Dl(_, {
7078
7078
  ...t,
7079
7079
  chain: e.chain
7080
7080
  });
7081
7081
  }
7082
7082
  }
7083
- const Dl = [
7083
+ const Ll = [
7084
7084
  "blobVersionedHashes",
7085
7085
  "chainId",
7086
7086
  "fees",
@@ -7091,7 +7091,7 @@ const Dl = [
7091
7091
  async function Nl(e, t) {
7092
7092
  var P, v, k;
7093
7093
  let n = t;
7094
- n.account ?? (n.account = e.account), n.parameters ?? (n.parameters = Dl);
7094
+ n.account ?? (n.account = e.account), n.parameters ?? (n.parameters = Ll);
7095
7095
  const { account: r, chain: s = e.chain, nonceManager: o, parameters: i } = n, u = (() => {
7096
7096
  if (typeof (s == null ? void 0 : s.prepareTransactionRequest) == "function")
7097
7097
  return {
@@ -7256,7 +7256,7 @@ async function jp(e, t) {
7256
7256
  }) : t;
7257
7257
  if (A && t.gas !== A)
7258
7258
  return A;
7259
- const M = (typeof b == "bigint" ? D(b) : void 0) || y, W = yl(I);
7259
+ const M = (typeof b == "bigint" ? L(b) : void 0) || y, W = yl(I);
7260
7260
  vs(t);
7261
7261
  const _ = (a = (u = (i = e.chain) == null ? void 0 : i.formatters) == null ? void 0 : u.transactionRequest) == null ? void 0 : a.format, F = (_ || Co)({
7262
7262
  // Pick out extra data that might exist on the chain's transaction request type.
@@ -7311,7 +7311,7 @@ async function Tp(e, { address: t, blockNumber: n, blockTag: r = e.experimental_
7311
7311
  data: d || "0x"
7312
7312
  });
7313
7313
  }
7314
- const s = typeof n == "bigint" ? D(n) : void 0, o = await e.request({
7314
+ const s = typeof n == "bigint" ? L(n) : void 0, o = await e.request({
7315
7315
  method: "eth_getBalance",
7316
7316
  params: [t, s || r]
7317
7317
  });
@@ -7364,7 +7364,7 @@ function _p(e, { args: t, eventName: n } = {}) {
7364
7364
  ...n ? { args: t, eventName: n } : {}
7365
7365
  };
7366
7366
  }
7367
- function Lp(e) {
7367
+ function Dp(e) {
7368
7368
  const { authorizationList: t } = e;
7369
7369
  if (t)
7370
7370
  for (const n of t) {
@@ -7376,7 +7376,7 @@ function Lp(e) {
7376
7376
  }
7377
7377
  Pa(e);
7378
7378
  }
7379
- function Dp(e) {
7379
+ function Lp(e) {
7380
7380
  const { blobVersionedHashes: t } = e;
7381
7381
  if (t) {
7382
7382
  if (t.length === 0)
@@ -7448,18 +7448,18 @@ function zp(e, t) {
7448
7448
  }
7449
7449
  function Hp(e, t) {
7450
7450
  const { authorizationList: n, chainId: r, gas: s, nonce: o, to: i, value: u, maxFeePerGas: a, maxPriorityFeePerGas: c, accessList: l, data: d } = e;
7451
- Lp(e);
7451
+ Dp(e);
7452
7452
  const h = Po(l), p = Kp(n);
7453
7453
  return _t([
7454
7454
  "0x04",
7455
7455
  fn([
7456
- D(r),
7457
- o ? D(o) : "0x",
7458
- c ? D(c) : "0x",
7459
- a ? D(a) : "0x",
7460
- s ? D(s) : "0x",
7456
+ L(r),
7457
+ o ? L(o) : "0x",
7458
+ c ? L(c) : "0x",
7459
+ a ? L(a) : "0x",
7460
+ s ? L(s) : "0x",
7461
7461
  i ?? "0x",
7462
- u ? D(u) : "0x",
7462
+ u ? L(u) : "0x",
7463
7463
  d ?? "0x",
7464
7464
  h,
7465
7465
  p,
@@ -7469,7 +7469,7 @@ function Hp(e, t) {
7469
7469
  }
7470
7470
  function Gp(e, t) {
7471
7471
  const { chainId: n, gas: r, nonce: s, to: o, value: i, maxFeePerBlobGas: u, maxFeePerGas: a, maxPriorityFeePerGas: c, accessList: l, data: d } = e;
7472
- Dp(e);
7472
+ Lp(e);
7473
7473
  let h = e.blobVersionedHashes, p = e.sidecars;
7474
7474
  if (e.blobs && (typeof h > "u" || typeof p > "u")) {
7475
7475
  const g = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((k) => Re(k)), P = e.kzg, v = Ea({
@@ -7484,16 +7484,16 @@ function Gp(e, t) {
7484
7484
  }
7485
7485
  }
7486
7486
  const b = Po(l), y = [
7487
- D(n),
7488
- s ? D(s) : "0x",
7489
- c ? D(c) : "0x",
7490
- a ? D(a) : "0x",
7491
- r ? D(r) : "0x",
7487
+ L(n),
7488
+ s ? L(s) : "0x",
7489
+ c ? L(c) : "0x",
7490
+ a ? L(a) : "0x",
7491
+ r ? L(r) : "0x",
7492
7492
  o ?? "0x",
7493
- i ? D(i) : "0x",
7493
+ i ? L(i) : "0x",
7494
7494
  d ?? "0x",
7495
7495
  b,
7496
- u ? D(u) : "0x",
7496
+ u ? L(u) : "0x",
7497
7497
  h ?? [],
7498
7498
  ...Es(e, t)
7499
7499
  ], m = [], A = [], S = [];
@@ -7512,13 +7512,13 @@ function Wp(e, t) {
7512
7512
  const { chainId: n, gas: r, nonce: s, to: o, value: i, maxFeePerGas: u, maxPriorityFeePerGas: a, accessList: c, data: l } = e;
7513
7513
  Pa(e);
7514
7514
  const d = Po(c), h = [
7515
- D(n),
7516
- s ? D(s) : "0x",
7517
- a ? D(a) : "0x",
7518
- u ? D(u) : "0x",
7519
- r ? D(r) : "0x",
7515
+ L(n),
7516
+ s ? L(s) : "0x",
7517
+ a ? L(a) : "0x",
7518
+ u ? L(u) : "0x",
7519
+ r ? L(r) : "0x",
7520
7520
  o ?? "0x",
7521
- i ? D(i) : "0x",
7521
+ i ? L(i) : "0x",
7522
7522
  l ?? "0x",
7523
7523
  d,
7524
7524
  ...Es(e, t)
@@ -7532,12 +7532,12 @@ function Vp(e, t) {
7532
7532
  const { chainId: n, gas: r, data: s, nonce: o, to: i, value: u, accessList: a, gasPrice: c } = e;
7533
7533
  Np(e);
7534
7534
  const l = Po(a), d = [
7535
- D(n),
7536
- o ? D(o) : "0x",
7537
- c ? D(c) : "0x",
7538
- r ? D(r) : "0x",
7535
+ L(n),
7536
+ o ? L(o) : "0x",
7537
+ c ? L(c) : "0x",
7538
+ r ? L(r) : "0x",
7539
7539
  i ?? "0x",
7540
- u ? D(u) : "0x",
7540
+ u ? L(u) : "0x",
7541
7541
  s ?? "0x",
7542
7542
  l,
7543
7543
  ...Es(e, t)
@@ -7551,11 +7551,11 @@ function qp(e, t) {
7551
7551
  const { chainId: n = 0, gas: r, data: s, nonce: o, to: i, value: u, gasPrice: a } = e;
7552
7552
  Up(e);
7553
7553
  let c = [
7554
- o ? D(o) : "0x",
7555
- a ? D(a) : "0x",
7556
- r ? D(r) : "0x",
7554
+ o ? L(o) : "0x",
7555
+ a ? L(a) : "0x",
7556
+ r ? L(r) : "0x",
7557
7557
  i ?? "0x",
7558
- u ? D(u) : "0x",
7558
+ u ? L(u) : "0x",
7559
7559
  s ?? "0x"
7560
7560
  ];
7561
7561
  if (t) {
@@ -7571,13 +7571,13 @@ function qp(e, t) {
7571
7571
  })(), d = Xe(t.r), h = Xe(t.s);
7572
7572
  c = [
7573
7573
  ...c,
7574
- D(l),
7574
+ L(l),
7575
7575
  d === "0x00" ? "0x" : d,
7576
7576
  h === "0x00" ? "0x" : h
7577
7577
  ];
7578
7578
  } else n > 0 && (c = [
7579
7579
  ...c,
7580
- D(n),
7580
+ L(n),
7581
7581
  "0x",
7582
7582
  "0x"
7583
7583
  ]);
@@ -7592,7 +7592,7 @@ function Es(e, t) {
7592
7592
  if (typeof r > "u" && typeof s > "u")
7593
7593
  return [];
7594
7594
  const o = Xe(n.r), i = Xe(n.s);
7595
- return [typeof s == "number" ? s ? D(1) : "0x" : r === 0n ? "0x" : r === 1n ? D(1) : r === 27n ? "0x" : D(1), o === "0x00" ? "0x" : o, i === "0x00" ? "0x" : i];
7595
+ return [typeof s == "number" ? s ? L(1) : "0x" : r === 0n ? "0x" : r === 1n ? L(1) : r === 27n ? "0x" : L(1), o === "0x00" ? "0x" : o, i === "0x00" ? "0x" : i];
7596
7596
  }
7597
7597
  function Kp(e) {
7598
7598
  if (!e || e.length === 0)
@@ -7609,14 +7609,14 @@ function Kp(e) {
7609
7609
  }
7610
7610
  return t;
7611
7611
  }
7612
- const Ds = /* @__PURE__ */ new gs(8192);
7612
+ const Ls = /* @__PURE__ */ new gs(8192);
7613
7613
  function Qp(e, { enabled: t = !0, id: n }) {
7614
7614
  if (!t || !n)
7615
7615
  return e();
7616
- if (Ds.get(n))
7617
- return Ds.get(n);
7618
- const r = e().finally(() => Ds.delete(n));
7619
- return Ds.set(n, r), r;
7616
+ if (Ls.get(n))
7617
+ return Ls.get(n);
7618
+ const r = e().finally(() => Ls.delete(n));
7619
+ return Ls.set(n, r), r;
7620
7620
  }
7621
7621
  async function Fi(e) {
7622
7622
  return new Promise((t) => setTimeout(t, e));
@@ -7725,7 +7725,7 @@ function Yp(e, t = {}) {
7725
7725
  }, {
7726
7726
  delay: ({ count: h, error: p }) => {
7727
7727
  var b;
7728
- if (p && p instanceof Dr) {
7728
+ if (p && p instanceof Lr) {
7729
7729
  const y = (b = p == null ? void 0 : p.headers) == null ? void 0 : b.get("Retry-After");
7730
7730
  if (y != null && y.match(/\d/))
7731
7731
  return Number.parseInt(y, 10) * 1e3;
@@ -7738,7 +7738,7 @@ function Yp(e, t = {}) {
7738
7738
  };
7739
7739
  }
7740
7740
  function Xp(e) {
7741
- return "code" in e && typeof e.code == "number" ? e.code === -1 || e.code === br.code || e.code === $n.code || e.code === 429 : e instanceof Dr && e.status ? e.status === 403 || e.status === 408 || e.status === 413 || e.status === 429 || e.status === 500 || e.status === 502 || e.status === 503 || e.status === 504 : !0;
7741
+ return "code" in e && typeof e.code == "number" ? e.code === -1 || e.code === br.code || e.code === $n.code || e.code === 429 : e instanceof Lr && e.status ? e.status === 403 || e.status === 408 || e.status === 413 || e.status === 429 || e.status === 500 || e.status === 502 || e.status === 503 || e.status === 504 : !0;
7742
7742
  }
7743
7743
  function Zp({ chain: e, currentChainId: t }) {
7744
7744
  if (!e)
@@ -7866,7 +7866,7 @@ function n1(e, t = {}) {
7866
7866
  if (!A.ok) {
7867
7867
  if (typeof ((y = S.error) == null ? void 0 : y.code) == "number" && typeof ((m = S.error) == null ? void 0 : m.message) == "string")
7868
7868
  return S;
7869
- throw new Dr({
7869
+ throw new Lr({
7870
7870
  body: o,
7871
7871
  details: ot(S.error) || A.statusText,
7872
7872
  headers: A.headers,
@@ -7876,7 +7876,7 @@ function n1(e, t = {}) {
7876
7876
  }
7877
7877
  return S;
7878
7878
  } catch (A) {
7879
- throw A instanceof Dr || A instanceof nc ? A : new Dr({
7879
+ throw A instanceof Lr || A instanceof nc ? A : new Lr({
7880
7880
  body: o,
7881
7881
  cause: A,
7882
7882
  url: n
@@ -7931,20 +7931,20 @@ function o1(e, t = "wei") {
7931
7931
  }
7932
7932
  async function Gl(e, { blockHash: t, blockNumber: n, blockTag: r, hash: s, index: o, sender: i, nonce: u }) {
7933
7933
  var h, p, b;
7934
- const a = r || "latest", c = n !== void 0 ? D(n) : void 0;
7934
+ const a = r || "latest", c = n !== void 0 ? L(n) : void 0;
7935
7935
  let l = null;
7936
7936
  if (s ? l = await e.request({
7937
7937
  method: "eth_getTransactionByHash",
7938
7938
  params: [s]
7939
7939
  }, { dedupe: !0 }) : t ? l = await e.request({
7940
7940
  method: "eth_getTransactionByBlockHashAndIndex",
7941
- params: [t, D(o)]
7941
+ params: [t, L(o)]
7942
7942
  }, { dedupe: !0 }) : typeof o == "number" ? l = await e.request({
7943
7943
  method: "eth_getTransactionByBlockNumberAndIndex",
7944
- params: [c || a, D(o)]
7944
+ params: [c || a, L(o)]
7945
7945
  }, { dedupe: !!c }) : i && typeof u == "number" && (l = await e.request({
7946
7946
  method: "eth_getTransactionBySenderAndNonce",
7947
- params: [i, D(u)]
7947
+ params: [i, L(u)]
7948
7948
  }, { dedupe: !0 })), !l)
7949
7949
  throw new ol({
7950
7950
  blockHash: t,
@@ -8394,7 +8394,7 @@ async function Vl(e, t) {
8394
8394
  maxPriorityFeePerGas: b,
8395
8395
  nonce: y,
8396
8396
  nonceManager: g.nonceManager,
8397
- parameters: [...Dl, "sidecars"],
8397
+ parameters: [...Ll, "sidecars"],
8398
8398
  type: m,
8399
8399
  value: A,
8400
8400
  ...S,
@@ -8417,7 +8417,7 @@ async function Vl(e, t) {
8417
8417
  type: g == null ? void 0 : g.type
8418
8418
  });
8419
8419
  } catch (T) {
8420
- throw T instanceof Zo ? T : Ll(T, {
8420
+ throw T instanceof Zo ? T : Dl(T, {
8421
8421
  ...t,
8422
8422
  account: g,
8423
8423
  chain: t.chain || void 0
@@ -8472,7 +8472,7 @@ var ql = function(e, t, n, r) {
8472
8472
  if (typeof t == "function" ? e !== t || !r : !t.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
8473
8473
  return n === "m" ? r : n === "a" ? r.call(e) : r ? r.value : t.get(e);
8474
8474
  }, ao, Kl;
8475
- let Dt = class Mi extends Error {
8475
+ let Lt = class Mi extends Error {
8476
8476
  get docsBaseUrl() {
8477
8477
  return "https://wagmi.sh/core";
8478
8478
  }
@@ -8527,7 +8527,7 @@ let Dt = class Mi extends Error {
8527
8527
  ao = /* @__PURE__ */ new WeakSet(), Kl = function e(t, n) {
8528
8528
  return n != null && n(t) ? t : t.cause ? ql(this, ao, "m", e).call(this, t.cause, n) : t;
8529
8529
  };
8530
- class gr extends Dt {
8530
+ class gr extends Lt {
8531
8531
  constructor() {
8532
8532
  super("Chain not configured."), Object.defineProperty(this, "name", {
8533
8533
  enumerable: !0,
@@ -8537,7 +8537,7 @@ class gr extends Dt {
8537
8537
  });
8538
8538
  }
8539
8539
  }
8540
- class h1 extends Dt {
8540
+ class h1 extends Lt {
8541
8541
  constructor() {
8542
8542
  super("Connector already connected."), Object.defineProperty(this, "name", {
8543
8543
  enumerable: !0,
@@ -8547,7 +8547,7 @@ class h1 extends Dt {
8547
8547
  });
8548
8548
  }
8549
8549
  }
8550
- class p1 extends Dt {
8550
+ class p1 extends Lt {
8551
8551
  constructor() {
8552
8552
  super("Connector not connected."), Object.defineProperty(this, "name", {
8553
8553
  enumerable: !0,
@@ -8557,7 +8557,7 @@ class p1 extends Dt {
8557
8557
  });
8558
8558
  }
8559
8559
  }
8560
- class b1 extends Dt {
8560
+ class b1 extends Lt {
8561
8561
  constructor({ address: t, connector: n }) {
8562
8562
  super(`Account "${t}" not found for connector "${n.name}".`), Object.defineProperty(this, "name", {
8563
8563
  enumerable: !0,
@@ -8567,7 +8567,7 @@ class b1 extends Dt {
8567
8567
  });
8568
8568
  }
8569
8569
  }
8570
- class y1 extends Dt {
8570
+ class y1 extends Lt {
8571
8571
  constructor({ connectionChainId: t, connectorChainId: n }) {
8572
8572
  super(`The current chain of the connector (id: ${n}) does not match the connection's chain (id: ${t}).`, {
8573
8573
  metaMessages: [
@@ -8582,7 +8582,7 @@ class y1 extends Dt {
8582
8582
  });
8583
8583
  }
8584
8584
  }
8585
- class m1 extends Dt {
8585
+ class m1 extends Lt {
8586
8586
  constructor({ connector: t }) {
8587
8587
  super(`Connector "${t.name}" unavailable while reconnecting.`, {
8588
8588
  details: [
@@ -9014,7 +9014,7 @@ async function fc(e, t) {
9014
9014
  function hc(e) {
9015
9015
  return e.state.chainId;
9016
9016
  }
9017
- function Ln(e, t) {
9017
+ function Dn(e, t) {
9018
9018
  if (e === t)
9019
9019
  return !0;
9020
9020
  if (e && t && typeof e == "object" && typeof t == "object") {
@@ -9025,7 +9025,7 @@ function Ln(e, t) {
9025
9025
  if (n = e.length, n !== t.length)
9026
9026
  return !1;
9027
9027
  for (r = n; r-- !== 0; )
9028
- if (!Ln(e[r], t[r]))
9028
+ if (!Dn(e[r], t[r]))
9029
9029
  return !1;
9030
9030
  return !0;
9031
9031
  }
@@ -9041,7 +9041,7 @@ function Ln(e, t) {
9041
9041
  return !1;
9042
9042
  for (r = n; r-- !== 0; ) {
9043
9043
  const o = s[r];
9044
- if (o && !Ln(e[o], t[o]))
9044
+ if (o && !Dn(e[o], t[o]))
9045
9045
  return !1;
9046
9046
  }
9047
9047
  return !0;
@@ -9051,12 +9051,12 @@ function Ln(e, t) {
9051
9051
  let ei = [];
9052
9052
  function pc(e) {
9053
9053
  const t = e.chains;
9054
- return Ln(ei, t) ? ei : (ei = t, t);
9054
+ return Dn(ei, t) ? ei : (ei = t, t);
9055
9055
  }
9056
9056
  let zs = [];
9057
9057
  function _i(e) {
9058
9058
  const t = [...e.state.connections.values()];
9059
- return e.state.status === "reconnecting" || Ln(zs, t) ? zs : (zs = t, t);
9059
+ return e.state.status === "reconnecting" || Dn(zs, t) ? zs : (zs = t, t);
9060
9060
  }
9061
9061
  let Hs = [];
9062
9062
  function bc(e) {
@@ -9136,7 +9136,7 @@ async function P1(e, t) {
9136
9136
  gas: o.gas ?? void 0
9137
9137
  });
9138
9138
  }
9139
- class Xn extends Dt {
9139
+ class Xn extends Lt {
9140
9140
  constructor() {
9141
9141
  super("Provider not found."), Object.defineProperty(this, "name", {
9142
9142
  enumerable: !0,
@@ -9146,7 +9146,7 @@ class Xn extends Dt {
9146
9146
  });
9147
9147
  }
9148
9148
  }
9149
- class I1 extends Dt {
9149
+ class I1 extends Lt {
9150
9150
  constructor({ connector: t }) {
9151
9151
  super(`"${t.name}" does not support programmatic chain switching.`), Object.defineProperty(this, "name", {
9152
9152
  enumerable: !0,
@@ -9198,7 +9198,7 @@ function O1(e, t) {
9198
9198
  return e.subscribe(() => e0(e), n, {
9199
9199
  equalityFn(r, s) {
9200
9200
  const { connector: o, ...i } = r, { connector: u, ...a } = s;
9201
- return Ln(i, a) && // check connector separately
9201
+ return Dn(i, a) && // check connector separately
9202
9202
  (o == null ? void 0 : o.id) === (u == null ? void 0 : u.id) && (o == null ? void 0 : o.uid) === (u == null ? void 0 : u.uid);
9203
9203
  }
9204
9204
  });
@@ -9210,7 +9210,7 @@ function R1(e, t) {
9210
9210
  function F1(e, t) {
9211
9211
  const { onChange: n } = t;
9212
9212
  return e.subscribe(() => _i(e), n, {
9213
- equalityFn: Ln
9213
+ equalityFn: Dn
9214
9214
  });
9215
9215
  }
9216
9216
  function B1(e, t) {
@@ -9402,7 +9402,7 @@ function Io(e = {}) {
9402
9402
  return await Promise.all([
9403
9403
  d.request({
9404
9404
  method: "wallet_switchEthereumChain",
9405
- params: [{ chainId: D(l) }]
9405
+ params: [{ chainId: L(l) }]
9406
9406
  }).then(async () => {
9407
9407
  await this.getChainId() === l && a.emitter.emit("change", { chainId: l });
9408
9408
  }),
@@ -9424,7 +9424,7 @@ function Io(e = {}) {
9424
9424
  (m = c == null ? void 0 : c.rpcUrls) != null && m.length ? C = c.rpcUrls : C = [((A = h.rpcUrls.default) == null ? void 0 : A.http[0]) ?? ""];
9425
9425
  const I = {
9426
9426
  blockExplorerUrls: k,
9427
- chainId: D(l),
9427
+ chainId: L(l),
9428
9428
  chainName: (c == null ? void 0 : c.chainName) ?? h.name,
9429
9429
  iconUrls: c == null ? void 0 : c.iconUrls,
9430
9430
  nativeCurrency: (c == null ? void 0 : c.nativeCurrency) ?? h.nativeCurrency,
@@ -9546,7 +9546,7 @@ function _1(e) {
9546
9546
  const t = (n) => e(n.detail);
9547
9547
  return window.addEventListener("eip6963:announceProvider", t), window.dispatchEvent(new CustomEvent("eip6963:requestProvider")), () => window.removeEventListener("eip6963:announceProvider", t);
9548
9548
  }
9549
- function L1() {
9549
+ function D1() {
9550
9550
  const e = /* @__PURE__ */ new Set();
9551
9551
  let t = [];
9552
9552
  const n = () => _1((s) => {
@@ -9577,7 +9577,7 @@ function L1() {
9577
9577
  }
9578
9578
  };
9579
9579
  }
9580
- const D1 = (e) => (t, n, r) => {
9580
+ const L1 = (e) => (t, n, r) => {
9581
9581
  const s = r.subscribe;
9582
9582
  return r.subscribe = (i, u, a) => {
9583
9583
  let c = i;
@@ -9594,7 +9594,7 @@ const D1 = (e) => (t, n, r) => {
9594
9594
  }
9595
9595
  return s(c);
9596
9596
  }, e(t, n, r);
9597
- }, N1 = D1;
9597
+ }, N1 = L1;
9598
9598
  function U1(e, t) {
9599
9599
  let n;
9600
9600
  try {
@@ -9615,12 +9615,12 @@ function U1(e, t) {
9615
9615
  removeItem: (s) => n.removeItem(s)
9616
9616
  };
9617
9617
  }
9618
- const Li = (e) => (t) => {
9618
+ const Di = (e) => (t) => {
9619
9619
  try {
9620
9620
  const n = e(t);
9621
9621
  return n instanceof Promise ? n : {
9622
9622
  then(r) {
9623
- return Li(r)(n);
9623
+ return Di(r)(n);
9624
9624
  },
9625
9625
  catch(r) {
9626
9626
  return this;
@@ -9632,7 +9632,7 @@ const Li = (e) => (t) => {
9632
9632
  return this;
9633
9633
  },
9634
9634
  catch(r) {
9635
- return Li(r)(n);
9635
+ return Di(r)(n);
9636
9636
  }
9637
9637
  };
9638
9638
  }
@@ -9686,7 +9686,7 @@ const Li = (e) => (t) => {
9686
9686
  return S((g = r()) != null ? g : h);
9687
9687
  });
9688
9688
  const A = ((m = o.onRehydrateStorage) == null ? void 0 : m.call(o, (y = r()) != null ? y : h)) || void 0;
9689
- return Li(c.getItem.bind(c))(o.name).then((S) => {
9689
+ return Di(c.getItem.bind(c))(o.name).then((S) => {
9690
9690
  if (S)
9691
9691
  if (typeof S.version == "number" && S.version !== o.version) {
9692
9692
  if (o.migrate)
@@ -9971,12 +9971,12 @@ function Z1() {
9971
9971
  }
9972
9972
  };
9973
9973
  }
9974
- const Di = 256;
9975
- let Gs = Di, Ws;
9974
+ const Li = 256;
9975
+ let Gs = Li, Ws;
9976
9976
  function J1(e = 11) {
9977
- if (!Ws || Gs + e > Di * 2) {
9977
+ if (!Ws || Gs + e > Li * 2) {
9978
9978
  Ws = "", Gs = 0;
9979
- for (let t = 0; t < Di; t++)
9979
+ for (let t = 0; t < Li; t++)
9980
9980
  Ws += (256 + Math.random() * 256 | 0).toString(16).substring(1);
9981
9981
  }
9982
9982
  return Ws.substring(Gs, Gs++ + e);
@@ -9984,7 +9984,7 @@ function J1(e = 11) {
9984
9984
  function eb(e) {
9985
9985
  const { multiInjectedProviderDiscovery: t = !0, storage: n = X1({
9986
9986
  storage: Z1()
9987
- }), syncConnectedChain: r = !0, ssr: s = !1, ...o } = e, i = typeof window < "u" && t ? L1() : void 0, u = ni(() => o.chains), a = ni(() => {
9987
+ }), syncConnectedChain: r = !0, ssr: s = !1, ...o } = e, i = typeof window < "u" && t ? D1() : void 0, u = ni(() => o.chains), a = ni(() => {
9988
9988
  const v = [], k = /* @__PURE__ */ new Set();
9989
9989
  for (const C of o.connectors ?? []) {
9990
9990
  const I = c(C);
@@ -10307,7 +10307,7 @@ function rb(e) {
10307
10307
  return $a(nb, e, $a(r0.Provider, r, t));
10308
10308
  }
10309
10309
  const sb = "2.19.5", ob = () => `wagmi@${sb}`;
10310
- class ib extends Dt {
10310
+ class ib extends Lt {
10311
10311
  constructor() {
10312
10312
  super(...arguments), Object.defineProperty(this, "name", {
10313
10313
  enumerable: !0,
@@ -10590,7 +10590,7 @@ function fb() {
10590
10590
  process.env.NODE_ENV === "production" ? Ni.exports = db() : Ni.exports = fb();
10591
10591
  var hb = Ni.exports;
10592
10592
  const ai = (e) => typeof e == "object" && !Array.isArray(e);
10593
- function pb(e, t, n = t, r = Ln) {
10593
+ function pb(e, t, n = t, r = Dn) {
10594
10594
  const s = nn([]), o = hb.useSyncExternalStoreWithSelector(e, t, n, (i) => i, (i, u) => {
10595
10595
  if (ai(i) && ai(u) && s.current.length) {
10596
10596
  for (const a of s.current)
@@ -10644,7 +10644,7 @@ var Er = class {
10644
10644
  V(this, vn);
10645
10645
  V(this, Kt);
10646
10646
  V(this, tr);
10647
- L(this, tr, (t) => {
10647
+ D(this, tr, (t) => {
10648
10648
  if (typeof window < "u" && window.addEventListener) {
10649
10649
  const n = () => t();
10650
10650
  return window.addEventListener("visibilitychange", n, !1), () => {
@@ -10658,16 +10658,16 @@ var Er = class {
10658
10658
  }
10659
10659
  onUnsubscribe() {
10660
10660
  var t;
10661
- this.hasListeners() || ((t = w(this, Kt)) == null || t.call(this), L(this, Kt, void 0));
10661
+ this.hasListeners() || ((t = w(this, Kt)) == null || t.call(this), D(this, Kt, void 0));
10662
10662
  }
10663
10663
  setEventListener(t) {
10664
10664
  var n;
10665
- L(this, tr, t), (n = w(this, Kt)) == null || n.call(this), L(this, Kt, t((r) => {
10665
+ D(this, tr, t), (n = w(this, Kt)) == null || n.call(this), D(this, Kt, t((r) => {
10666
10666
  typeof r == "boolean" ? this.setFocused(r) : this.onFocus();
10667
10667
  }));
10668
10668
  }
10669
10669
  setFocused(t) {
10670
- w(this, vn) !== t && (L(this, vn, t), this.onFocus());
10670
+ w(this, vn) !== t && (D(this, vn, t), this.onFocus());
10671
10671
  }
10672
10672
  onFocus() {
10673
10673
  const t = this.isFocused();
@@ -10710,16 +10710,16 @@ var Er = class {
10710
10710
  process.env.NODE_ENV !== "production" && w(this, Sn) && e !== w(this, pt) && console.error(
10711
10711
  "[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",
10712
10712
  { previous: w(this, pt), provider: e }
10713
- ), L(this, pt, e), process.env.NODE_ENV !== "production" && L(this, Sn, !1);
10713
+ ), D(this, pt, e), process.env.NODE_ENV !== "production" && D(this, Sn, !1);
10714
10714
  }
10715
10715
  setTimeout(e, t) {
10716
- return process.env.NODE_ENV !== "production" && L(this, Sn, !0), w(this, pt).setTimeout(e, t);
10716
+ return process.env.NODE_ENV !== "production" && D(this, Sn, !0), w(this, pt).setTimeout(e, t);
10717
10717
  }
10718
10718
  clearTimeout(e) {
10719
10719
  w(this, pt).clearTimeout(e);
10720
10720
  }
10721
10721
  setInterval(e, t) {
10722
- return process.env.NODE_ENV !== "production" && L(this, Sn, !0), w(this, pt).setInterval(e, t);
10722
+ return process.env.NODE_ENV !== "production" && D(this, Sn, !0), w(this, pt).setInterval(e, t);
10723
10723
  }
10724
10724
  clearInterval(e) {
10725
10725
  w(this, pt).clearInterval(e);
@@ -10775,7 +10775,7 @@ function Cc(e, t) {
10775
10775
  if (!t.options.mutationKey)
10776
10776
  return !1;
10777
10777
  if (n) {
10778
- if (Dn(t.options.mutationKey) !== Dn(o))
10778
+ if (Ln(t.options.mutationKey) !== Ln(o))
10779
10779
  return !1;
10780
10780
  } else if (!us(t.options.mutationKey, o))
10781
10781
  return !1;
@@ -10783,9 +10783,9 @@ function Cc(e, t) {
10783
10783
  return !(r && t.state.status !== r || s && !s(t));
10784
10784
  }
10785
10785
  function Ta(e, t) {
10786
- return ((t == null ? void 0 : t.queryKeyHashFn) || Dn)(e);
10786
+ return ((t == null ? void 0 : t.queryKeyHashFn) || Ln)(e);
10787
10787
  }
10788
- function Dn(e) {
10788
+ function Ln(e) {
10789
10789
  return JSON.stringify(
10790
10790
  e,
10791
10791
  (t, n) => Hi(n) ? Object.keys(n).sort().reduce((r, s) => (r[s] = n[s], r), {}) : n
@@ -10991,7 +10991,7 @@ var me = Pb(), nr, Qt, rr, Kc, Ib = (Kc = class extends Er {
10991
10991
  V(this, nr, !0);
10992
10992
  V(this, Qt);
10993
10993
  V(this, rr);
10994
- L(this, rr, (t) => {
10994
+ D(this, rr, (t) => {
10995
10995
  if (typeof window < "u" && window.addEventListener) {
10996
10996
  const n = () => t(!0), r = () => t(!1);
10997
10997
  return window.addEventListener("online", n, !1), window.addEventListener("offline", r, !1), () => {
@@ -11005,14 +11005,14 @@ var me = Pb(), nr, Qt, rr, Kc, Ib = (Kc = class extends Er {
11005
11005
  }
11006
11006
  onUnsubscribe() {
11007
11007
  var t;
11008
- this.hasListeners() || ((t = w(this, Qt)) == null || t.call(this), L(this, Qt, void 0));
11008
+ this.hasListeners() || ((t = w(this, Qt)) == null || t.call(this), D(this, Qt, void 0));
11009
11009
  }
11010
11010
  setEventListener(t) {
11011
11011
  var n;
11012
- L(this, rr, t), (n = w(this, Qt)) == null || n.call(this), L(this, Qt, t(this.setOnline.bind(this)));
11012
+ D(this, rr, t), (n = w(this, Qt)) == null || n.call(this), D(this, Qt, t(this.setOnline.bind(this)));
11013
11013
  }
11014
11014
  setOnline(t) {
11015
- w(this, nr) !== t && (L(this, nr, t), this.listeners.forEach((r) => {
11015
+ w(this, nr) !== t && (D(this, nr, t), this.listeners.forEach((r) => {
11016
11016
  r(t);
11017
11017
  }));
11018
11018
  }
@@ -11098,7 +11098,7 @@ var En, Qc, u0 = (Qc = class {
11098
11098
  this.clearGcTimeout();
11099
11099
  }
11100
11100
  scheduleGc() {
11101
- this.clearGcTimeout(), Ui(this.gcTime) && L(this, En, xn.setTimeout(() => {
11101
+ this.clearGcTimeout(), Ui(this.gcTime) && D(this, En, xn.setTimeout(() => {
11102
11102
  this.optionalRemove();
11103
11103
  }, this.gcTime));
11104
11104
  }
@@ -11109,7 +11109,7 @@ var En, Qc, u0 = (Qc = class {
11109
11109
  );
11110
11110
  }
11111
11111
  clearGcTimeout() {
11112
- w(this, En) !== void 0 && (xn.clearTimeout(w(this, En)), L(this, En, void 0));
11112
+ w(this, En) !== void 0 && (xn.clearTimeout(w(this, En)), D(this, En, void 0));
11113
11113
  }
11114
11114
  }, En = new WeakMap(), Qc), kn, sr, Qe, Cn, ve, hs, An, He, l0, It, Yc, Tb = (Yc = class extends u0 {
11115
11115
  constructor(t) {
@@ -11122,7 +11122,7 @@ var En, Qc, u0 = (Qc = class {
11122
11122
  V(this, ve);
11123
11123
  V(this, hs);
11124
11124
  V(this, An);
11125
- L(this, An, !1), L(this, hs, t.defaultOptions), this.setOptions(t.options), this.observers = [], L(this, Cn, t.client), L(this, Qe, w(this, Cn).getQueryCache()), this.queryKey = t.queryKey, this.queryHash = t.queryHash, L(this, kn, jc(this.options)), this.state = t.state ?? w(this, kn), this.scheduleGc();
11125
+ D(this, An, !1), D(this, hs, t.defaultOptions), this.setOptions(t.options), this.observers = [], D(this, Cn, t.client), D(this, Qe, w(this, Cn).getQueryCache()), this.queryKey = t.queryKey, this.queryHash = t.queryHash, D(this, kn, jc(this.options)), this.state = t.state ?? w(this, kn), this.scheduleGc();
11126
11126
  }
11127
11127
  get meta() {
11128
11128
  return this.options.meta;
@@ -11136,7 +11136,7 @@ var En, Qc, u0 = (Qc = class {
11136
11136
  const n = jc(this.options);
11137
11137
  n.data !== void 0 && (this.setState(
11138
11138
  Ic(n.data, n.dataUpdatedAt)
11139
- ), L(this, kn, n));
11139
+ ), D(this, kn, n));
11140
11140
  }
11141
11141
  }
11142
11142
  optionalRemove() {
@@ -11235,7 +11235,7 @@ var En, Qc, u0 = (Qc = class {
11235
11235
  const r = new AbortController(), s = (P) => {
11236
11236
  Object.defineProperty(P, "signal", {
11237
11237
  enumerable: !0,
11238
- get: () => (L(this, An, !0), r.signal)
11238
+ get: () => (D(this, An, !0), r.signal)
11239
11239
  });
11240
11240
  }, o = () => {
11241
11241
  const P = i0(this.options, n), k = (() => {
@@ -11246,7 +11246,7 @@ var En, Qc, u0 = (Qc = class {
11246
11246
  };
11247
11247
  return s(C), C;
11248
11248
  })();
11249
- return L(this, An, !1), this.options.persister ? this.options.persister(
11249
+ return D(this, An, !1), this.options.persister ? this.options.persister(
11250
11250
  P,
11251
11251
  k,
11252
11252
  this
@@ -11262,7 +11262,7 @@ var En, Qc, u0 = (Qc = class {
11262
11262
  };
11263
11263
  return s(P), P;
11264
11264
  })();
11265
- (c = this.options.behavior) == null || c.onFetch(u, this), L(this, sr, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((l = u.fetchOptions) == null ? void 0 : l.meta)) && J(this, He, It).call(this, { type: "fetch", meta: (d = u.fetchOptions) == null ? void 0 : d.meta }), L(this, ve, c0({
11265
+ (c = this.options.behavior) == null || c.onFetch(u, this), D(this, sr, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((l = u.fetchOptions) == null ? void 0 : l.meta)) && J(this, He, It).call(this, { type: "fetch", meta: (d = u.fetchOptions) == null ? void 0 : d.meta }), D(this, ve, c0({
11266
11266
  initialPromise: n == null ? void 0 : n.initialPromise,
11267
11267
  fn: u.fetchFn,
11268
11268
  onCancel: (P) => {
@@ -11362,7 +11362,7 @@ var En, Qc, u0 = (Qc = class {
11362
11362
  fetchFailureReason: null
11363
11363
  }
11364
11364
  };
11365
- return L(this, sr, t.manual ? s : void 0), s;
11365
+ return D(this, sr, t.manual ? s : void 0), s;
11366
11366
  case "error":
11367
11367
  const o = t.error;
11368
11368
  return {
@@ -11433,7 +11433,7 @@ function jc(e) {
11433
11433
  fetchStatus: "idle"
11434
11434
  };
11435
11435
  }
11436
- var Me, re, ps, Te, Pn, or, Tt, Yt, bs, ir, ar, In, jn, Xt, cr, ae, Lr, qi, Ki, Qi, Yi, Xi, Zi, Ji, f0, Xc, Ob = (Xc = class extends Er {
11436
+ var Me, re, ps, Te, Pn, or, Tt, Yt, bs, ir, ar, In, jn, Xt, cr, ae, Dr, qi, Ki, Qi, Yi, Xi, Zi, Ji, f0, Xc, Ob = (Xc = class extends Er {
11437
11437
  constructor(t, n) {
11438
11438
  super();
11439
11439
  V(this, ae);
@@ -11454,13 +11454,13 @@ var Me, re, ps, Te, Pn, or, Tt, Yt, bs, ir, ar, In, jn, Xt, cr, ae, Lr, qi, Ki,
11454
11454
  V(this, jn);
11455
11455
  V(this, Xt);
11456
11456
  V(this, cr, /* @__PURE__ */ new Set());
11457
- this.options = n, L(this, Me, t), L(this, Yt, null), L(this, Tt, Wi()), this.bindMethods(), this.setOptions(n);
11457
+ this.options = n, D(this, Me, t), D(this, Yt, null), D(this, Tt, Wi()), this.bindMethods(), this.setOptions(n);
11458
11458
  }
11459
11459
  bindMethods() {
11460
11460
  this.refetch = this.refetch.bind(this);
11461
11461
  }
11462
11462
  onSubscribe() {
11463
- this.listeners.size === 1 && (w(this, re).addObserver(this), Tc(w(this, re), this.options) ? J(this, ae, Lr).call(this) : this.updateResult(), J(this, ae, Yi).call(this));
11463
+ this.listeners.size === 1 && (w(this, re).addObserver(this), Tc(w(this, re), this.options) ? J(this, ae, Dr).call(this) : this.updateResult(), J(this, ae, Yi).call(this));
11464
11464
  }
11465
11465
  onUnsubscribe() {
11466
11466
  this.hasListeners() || this.destroy();
@@ -11499,13 +11499,13 @@ var Me, re, ps, Te, Pn, or, Tt, Yt, bs, ir, ar, In, jn, Xt, cr, ae, Lr, qi, Ki,
11499
11499
  r,
11500
11500
  this.options,
11501
11501
  n
11502
- ) && J(this, ae, Lr).call(this), this.updateResult(), s && (w(this, re) !== r || Ye(this.options.enabled, w(this, re)) !== Ye(n.enabled, w(this, re)) || cn(this.options.staleTime, w(this, re)) !== cn(n.staleTime, w(this, re))) && J(this, ae, qi).call(this);
11502
+ ) && J(this, ae, Dr).call(this), this.updateResult(), s && (w(this, re) !== r || Ye(this.options.enabled, w(this, re)) !== Ye(n.enabled, w(this, re)) || cn(this.options.staleTime, w(this, re)) !== cn(n.staleTime, w(this, re))) && J(this, ae, qi).call(this);
11503
11503
  const o = J(this, ae, Ki).call(this);
11504
11504
  s && (w(this, re) !== r || Ye(this.options.enabled, w(this, re)) !== Ye(n.enabled, w(this, re)) || o !== w(this, Xt)) && J(this, ae, Qi).call(this, o);
11505
11505
  }
11506
11506
  getOptimisticResult(t) {
11507
11507
  const n = w(this, Me).getQueryCache().build(w(this, Me), t), r = this.createResult(n, t);
11508
- return Fb(this, r) && (L(this, Te, r), L(this, or, this.options), L(this, Pn, w(this, re).state)), r;
11508
+ return Fb(this, r) && (D(this, Te, r), D(this, or, this.options), D(this, Pn, w(this, re).state)), r;
11509
11509
  }
11510
11510
  getCurrentResult() {
11511
11511
  return w(this, Te);
@@ -11535,7 +11535,7 @@ var Me, re, ps, Te, Pn, or, Tt, Yt, bs, ir, ar, In, jn, Xt, cr, ae, Lr, qi, Ki,
11535
11535
  return r.fetch().then(() => this.createResult(r, n));
11536
11536
  }
11537
11537
  fetch(t) {
11538
- return J(this, ae, Lr).call(this, {
11538
+ return J(this, ae, Dr).call(this, {
11539
11539
  ...t,
11540
11540
  cancelRefetch: t.cancelRefetch ?? !0
11541
11541
  }).then(() => (this.updateResult(), w(this, Te)));
@@ -11570,9 +11570,9 @@ var Me, re, ps, Te, Pn, or, Tt, Yt, bs, ir, ar, In, jn, Xt, cr, ae, Lr, qi, Ki,
11570
11570
  p = w(this, ir);
11571
11571
  else
11572
11572
  try {
11573
- L(this, bs, n.select), p = n.select(p), p = Gi(o == null ? void 0 : o.data, p, n), L(this, ir, p), L(this, Yt, null);
11573
+ D(this, bs, n.select), p = n.select(p), p = Gi(o == null ? void 0 : o.data, p, n), D(this, ir, p), D(this, Yt, null);
11574
11574
  } catch ($) {
11575
- L(this, Yt, $);
11575
+ D(this, Yt, $);
11576
11576
  }
11577
11577
  w(this, Yt) && (b = w(this, Yt), p = w(this, ir), y = Date.now(), m = "error");
11578
11578
  const S = d.fetchStatus === "fetching", g = m === "pending", P = m === "error", v = g && S, k = p !== void 0, I = {
@@ -11607,7 +11607,7 @@ var Me, re, ps, Te, Pn, or, Tt, Yt, bs, ir, ar, In, jn, Xt, cr, ae, Lr, qi, Ki,
11607
11607
  const $ = I.data !== void 0, M = I.status === "error" && !$, W = (F) => {
11608
11608
  M ? F.reject(I.error) : $ && F.resolve(I.data);
11609
11609
  }, _ = () => {
11610
- const F = L(this, Tt, I.promise = Wi());
11610
+ const F = D(this, Tt, I.promise = Wi());
11611
11611
  W(F);
11612
11612
  }, G = w(this, Tt);
11613
11613
  switch (G.status) {
@@ -11626,9 +11626,9 @@ var Me, re, ps, Te, Pn, or, Tt, Yt, bs, ir, ar, In, jn, Xt, cr, ae, Lr, qi, Ki,
11626
11626
  }
11627
11627
  updateResult() {
11628
11628
  const t = w(this, Te), n = this.createResult(w(this, re), this.options);
11629
- if (L(this, Pn, w(this, re).state), L(this, or, this.options), w(this, Pn).data !== void 0 && L(this, ar, w(this, re)), co(n, t))
11629
+ if (D(this, Pn, w(this, re).state), D(this, or, this.options), w(this, Pn).data !== void 0 && D(this, ar, w(this, re)), co(n, t))
11630
11630
  return;
11631
- L(this, Te, n);
11631
+ D(this, Te, n);
11632
11632
  const r = () => {
11633
11633
  if (!t)
11634
11634
  return !0;
@@ -11648,7 +11648,7 @@ var Me, re, ps, Te, Pn, or, Tt, Yt, bs, ir, ar, In, jn, Xt, cr, ae, Lr, qi, Ki,
11648
11648
  onQueryUpdate() {
11649
11649
  this.updateResult(), this.hasListeners() && J(this, ae, Yi).call(this);
11650
11650
  }
11651
- }, Me = new WeakMap(), re = new WeakMap(), ps = new WeakMap(), Te = new WeakMap(), Pn = new WeakMap(), or = new WeakMap(), Tt = new WeakMap(), Yt = new WeakMap(), bs = new WeakMap(), ir = new WeakMap(), ar = new WeakMap(), In = new WeakMap(), jn = new WeakMap(), Xt = new WeakMap(), cr = new WeakMap(), ae = new WeakSet(), Lr = function(t) {
11651
+ }, Me = new WeakMap(), re = new WeakMap(), ps = new WeakMap(), Te = new WeakMap(), Pn = new WeakMap(), or = new WeakMap(), Tt = new WeakMap(), Yt = new WeakMap(), bs = new WeakMap(), ir = new WeakMap(), ar = new WeakMap(), In = new WeakMap(), jn = new WeakMap(), Xt = new WeakMap(), cr = new WeakMap(), ae = new WeakSet(), Dr = function(t) {
11652
11652
  J(this, ae, Ji).call(this);
11653
11653
  let n = w(this, re).fetch(
11654
11654
  this.options,
@@ -11664,27 +11664,27 @@ var Me, re, ps, Te, Pn, or, Tt, Yt, bs, ir, ar, In, jn, Xt, cr, ae, Lr, qi, Ki,
11664
11664
  if (ls.isServer() || w(this, Te).isStale || !Ui(t))
11665
11665
  return;
11666
11666
  const r = o0(w(this, Te).dataUpdatedAt, t) + 1;
11667
- L(this, In, xn.setTimeout(() => {
11667
+ D(this, In, xn.setTimeout(() => {
11668
11668
  w(this, Te).isStale || this.updateResult();
11669
11669
  }, r));
11670
11670
  }, Ki = function() {
11671
11671
  return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(w(this, re)) : this.options.refetchInterval) ?? !1;
11672
11672
  }, Qi = function(t) {
11673
- J(this, ae, Zi).call(this), L(this, Xt, t), !(ls.isServer() || Ye(this.options.enabled, w(this, re)) === !1 || !Ui(w(this, Xt)) || w(this, Xt) === 0) && L(this, jn, xn.setInterval(() => {
11674
- (this.options.refetchIntervalInBackground || ja.isFocused()) && J(this, ae, Lr).call(this);
11673
+ J(this, ae, Zi).call(this), D(this, Xt, t), !(ls.isServer() || Ye(this.options.enabled, w(this, re)) === !1 || !Ui(w(this, Xt)) || w(this, Xt) === 0) && D(this, jn, xn.setInterval(() => {
11674
+ (this.options.refetchIntervalInBackground || ja.isFocused()) && J(this, ae, Dr).call(this);
11675
11675
  }, w(this, Xt)));
11676
11676
  }, Yi = function() {
11677
11677
  J(this, ae, qi).call(this), J(this, ae, Qi).call(this, J(this, ae, Ki).call(this));
11678
11678
  }, Xi = function() {
11679
- w(this, In) !== void 0 && (xn.clearTimeout(w(this, In)), L(this, In, void 0));
11679
+ w(this, In) !== void 0 && (xn.clearTimeout(w(this, In)), D(this, In, void 0));
11680
11680
  }, Zi = function() {
11681
- w(this, jn) !== void 0 && (xn.clearInterval(w(this, jn)), L(this, jn, void 0));
11681
+ w(this, jn) !== void 0 && (xn.clearInterval(w(this, jn)), D(this, jn, void 0));
11682
11682
  }, Ji = function() {
11683
11683
  const t = w(this, Me).getQueryCache().build(w(this, Me), this.options);
11684
11684
  if (t === w(this, re))
11685
11685
  return;
11686
11686
  const n = w(this, re);
11687
- L(this, re, t), L(this, ps, t.state), this.hasListeners() && (n == null || n.removeObserver(this), t.addObserver(this));
11687
+ D(this, re, t), D(this, ps, t.state), this.hasListeners() && (n == null || n.removeObserver(this), t.addObserver(this));
11688
11688
  }, f0 = function(t) {
11689
11689
  me.batch(() => {
11690
11690
  t.listeners && this.listeners.forEach((n) => {
@@ -11806,7 +11806,7 @@ var ys, bt, Ie, Tn, yt, qt, Zc, Mb = (Zc = class extends u0 {
11806
11806
  V(this, bt);
11807
11807
  V(this, Ie);
11808
11808
  V(this, Tn);
11809
- L(this, ys, t.client), this.mutationId = t.mutationId, L(this, Ie, t.mutationCache), L(this, bt, []), this.state = t.state || h0(), this.setOptions(t.options), this.scheduleGc();
11809
+ D(this, ys, t.client), this.mutationId = t.mutationId, D(this, Ie, t.mutationCache), D(this, bt, []), this.state = t.state || h0(), this.setOptions(t.options), this.scheduleGc();
11810
11810
  }
11811
11811
  setOptions(t) {
11812
11812
  this.options = t, this.updateGcTime(this.options.gcTime);
@@ -11822,7 +11822,7 @@ var ys, bt, Ie, Tn, yt, qt, Zc, Mb = (Zc = class extends u0 {
11822
11822
  }));
11823
11823
  }
11824
11824
  removeObserver(t) {
11825
- L(this, bt, w(this, bt).filter((n) => n !== t)), this.scheduleGc(), w(this, Ie).notify({
11825
+ D(this, bt, w(this, bt).filter((n) => n !== t)), this.scheduleGc(), w(this, Ie).notify({
11826
11826
  type: "observerRemoved",
11827
11827
  mutation: this,
11828
11828
  observer: t
@@ -11845,7 +11845,7 @@ var ys, bt, Ie, Tn, yt, qt, Zc, Mb = (Zc = class extends u0 {
11845
11845
  meta: this.options.meta,
11846
11846
  mutationKey: this.options.mutationKey
11847
11847
  };
11848
- L(this, Tn, c0({
11848
+ D(this, Tn, c0({
11849
11849
  fn: () => this.options.mutationFn ? this.options.mutationFn(t, r) : Promise.reject(new Error("No mutationFn found")),
11850
11850
  onFail: (I, T) => {
11851
11851
  J(this, yt, qt).call(this, { type: "failed", failureCount: I, error: T });
@@ -12048,7 +12048,7 @@ var Ot, tt, ms, Jc, $b = (Jc = class extends Er {
12048
12048
  V(this, Ot);
12049
12049
  V(this, tt);
12050
12050
  V(this, ms);
12051
- this.config = t, L(this, Ot, /* @__PURE__ */ new Set()), L(this, tt, /* @__PURE__ */ new Map()), L(this, ms, 0);
12051
+ this.config = t, D(this, Ot, /* @__PURE__ */ new Set()), D(this, tt, /* @__PURE__ */ new Map()), D(this, ms, 0);
12052
12052
  }
12053
12053
  build(t, n, r) {
12054
12054
  const s = new Mb({
@@ -12149,7 +12149,7 @@ var Rt, Zt, $e, Ft, Mt, Js, ta, eu, _b = (eu = class extends Er {
12149
12149
  V(this, Zt);
12150
12150
  V(this, $e);
12151
12151
  V(this, Ft);
12152
- L(this, Rt, t), this.setOptions(n), this.bindMethods(), J(this, Mt, Js).call(this);
12152
+ D(this, Rt, t), this.setOptions(n), this.bindMethods(), J(this, Mt, Js).call(this);
12153
12153
  }
12154
12154
  bindMethods() {
12155
12155
  this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
@@ -12161,7 +12161,7 @@ var Rt, Zt, $e, Ft, Mt, Js, ta, eu, _b = (eu = class extends Er {
12161
12161
  type: "observerOptionsUpdated",
12162
12162
  mutation: w(this, $e),
12163
12163
  observer: this
12164
- }), n != null && n.mutationKey && this.options.mutationKey && Dn(n.mutationKey) !== Dn(this.options.mutationKey) ? this.reset() : ((r = w(this, $e)) == null ? void 0 : r.state.status) === "pending" && w(this, $e).setOptions(this.options);
12164
+ }), n != null && n.mutationKey && this.options.mutationKey && Ln(n.mutationKey) !== Ln(this.options.mutationKey) ? this.reset() : ((r = w(this, $e)) == null ? void 0 : r.state.status) === "pending" && w(this, $e).setOptions(this.options);
12165
12165
  }
12166
12166
  onUnsubscribe() {
12167
12167
  var t;
@@ -12175,16 +12175,16 @@ var Rt, Zt, $e, Ft, Mt, Js, ta, eu, _b = (eu = class extends Er {
12175
12175
  }
12176
12176
  reset() {
12177
12177
  var t;
12178
- (t = w(this, $e)) == null || t.removeObserver(this), L(this, $e, void 0), J(this, Mt, Js).call(this), J(this, Mt, ta).call(this);
12178
+ (t = w(this, $e)) == null || t.removeObserver(this), D(this, $e, void 0), J(this, Mt, Js).call(this), J(this, Mt, ta).call(this);
12179
12179
  }
12180
12180
  mutate(t, n) {
12181
12181
  var r;
12182
- return L(this, Ft, n), (r = w(this, $e)) == null || r.removeObserver(this), L(this, $e, w(this, Rt).getMutationCache().build(w(this, Rt), this.options)), w(this, $e).addObserver(this), w(this, $e).execute(t);
12182
+ return D(this, Ft, n), (r = w(this, $e)) == null || r.removeObserver(this), D(this, $e, w(this, Rt).getMutationCache().build(w(this, Rt), this.options)), w(this, $e).addObserver(this), w(this, $e).execute(t);
12183
12183
  }
12184
12184
  }, Rt = new WeakMap(), Zt = new WeakMap(), $e = new WeakMap(), Ft = new WeakMap(), Mt = new WeakSet(), Js = function() {
12185
12185
  var n;
12186
12186
  const t = ((n = w(this, $e)) == null ? void 0 : n.state) ?? h0();
12187
- L(this, Zt, {
12187
+ D(this, Zt, {
12188
12188
  ...t,
12189
12189
  isPending: t.status === "pending",
12190
12190
  isSuccess: t.status === "success",
@@ -12256,11 +12256,11 @@ var Rt, Zt, $e, Ft, Mt, Js, ta, eu, _b = (eu = class extends Er {
12256
12256
  l(w(this, Zt));
12257
12257
  });
12258
12258
  });
12259
- }, eu), mt, tu, Lb = (tu = class extends Er {
12259
+ }, eu), mt, tu, Db = (tu = class extends Er {
12260
12260
  constructor(t = {}) {
12261
12261
  super();
12262
12262
  V(this, mt);
12263
- this.config = t, L(this, mt, /* @__PURE__ */ new Map());
12263
+ this.config = t, D(this, mt, /* @__PURE__ */ new Map());
12264
12264
  }
12265
12265
  build(t, n, r) {
12266
12266
  const s = n.queryKey, o = n.queryHash ?? Ta(s, n);
@@ -12328,7 +12328,7 @@ var Rt, Zt, $e, Ft, Mt, Js, ta, eu, _b = (eu = class extends Er {
12328
12328
  });
12329
12329
  });
12330
12330
  }
12331
- }, mt = new WeakMap(), tu), fe, Jt, en, ur, lr, tn, dr, fr, nu, Db = (nu = class {
12331
+ }, mt = new WeakMap(), tu), fe, Jt, en, ur, lr, tn, dr, fr, nu, Lb = (nu = class {
12332
12332
  constructor(e = {}) {
12333
12333
  V(this, fe);
12334
12334
  V(this, Jt);
@@ -12338,18 +12338,18 @@ var Rt, Zt, $e, Ft, Mt, Js, ta, eu, _b = (eu = class extends Er {
12338
12338
  V(this, tn);
12339
12339
  V(this, dr);
12340
12340
  V(this, fr);
12341
- L(this, fe, e.queryCache || new Lb()), L(this, Jt, e.mutationCache || new $b()), L(this, en, e.defaultOptions || {}), L(this, ur, /* @__PURE__ */ new Map()), L(this, lr, /* @__PURE__ */ new Map()), L(this, tn, 0);
12341
+ D(this, fe, e.queryCache || new Db()), D(this, Jt, e.mutationCache || new $b()), D(this, en, e.defaultOptions || {}), D(this, ur, /* @__PURE__ */ new Map()), D(this, lr, /* @__PURE__ */ new Map()), D(this, tn, 0);
12342
12342
  }
12343
12343
  mount() {
12344
- Ms(this, tn)._++, w(this, tn) === 1 && (L(this, dr, ja.subscribe(async (e) => {
12344
+ Ms(this, tn)._++, w(this, tn) === 1 && (D(this, dr, ja.subscribe(async (e) => {
12345
12345
  e && (await this.resumePausedMutations(), w(this, fe).onFocus());
12346
- })), L(this, fr, lo.subscribe(async (e) => {
12346
+ })), D(this, fr, lo.subscribe(async (e) => {
12347
12347
  e && (await this.resumePausedMutations(), w(this, fe).onOnline());
12348
12348
  })));
12349
12349
  }
12350
12350
  unmount() {
12351
12351
  var e, t;
12352
- Ms(this, tn)._--, w(this, tn) === 0 && ((e = w(this, dr)) == null || e.call(this), L(this, dr, void 0), (t = w(this, fr)) == null || t.call(this), L(this, fr, void 0));
12352
+ Ms(this, tn)._--, w(this, tn) === 0 && ((e = w(this, dr)) == null || e.call(this), D(this, dr, void 0), (t = w(this, fr)) == null || t.call(this), D(this, fr, void 0));
12353
12353
  }
12354
12354
  isFetching(e) {
12355
12355
  return w(this, fe).findAll({ ...e, fetchStatus: "fetching" }).length;
@@ -12483,10 +12483,10 @@ var Rt, Zt, $e, Ft, Mt, Js, ta, eu, _b = (eu = class extends Er {
12483
12483
  return w(this, en);
12484
12484
  }
12485
12485
  setDefaultOptions(e) {
12486
- L(this, en, e);
12486
+ D(this, en, e);
12487
12487
  }
12488
12488
  setQueryDefaults(e, t) {
12489
- w(this, ur).set(Dn(e), {
12489
+ w(this, ur).set(Ln(e), {
12490
12490
  queryKey: e,
12491
12491
  defaultOptions: t
12492
12492
  });
@@ -12498,7 +12498,7 @@ var Rt, Zt, $e, Ft, Mt, Js, ta, eu, _b = (eu = class extends Er {
12498
12498
  }), n;
12499
12499
  }
12500
12500
  setMutationDefaults(e, t) {
12501
- w(this, lr).set(Dn(e), {
12501
+ w(this, lr).set(Ln(e), {
12502
12502
  mutationKey: e,
12503
12503
  defaultOptions: t
12504
12504
  });
@@ -12949,7 +12949,7 @@ function wy(e) {
12949
12949
  ...e.preference,
12950
12950
  options: ((c = e.preference) == null ? void 0 : c.options) ?? "all"
12951
12951
  };
12952
- })(), { createCoinbaseWalletSDK: u } = await import("./index-59FVQR_t.mjs");
12952
+ })(), { createCoinbaseWalletSDK: u } = await import("./index-BPBtYXYk.mjs");
12953
12953
  t = u({
12954
12954
  ...e,
12955
12955
  appChainIds: o.chains.map((c) => c.id),
@@ -12974,7 +12974,7 @@ function wy(e) {
12974
12974
  try {
12975
12975
  return await c.request({
12976
12976
  method: "wallet_switchEthereumChain",
12977
- params: [{ chainId: D(a.id) }]
12977
+ params: [{ chainId: L(a.id) }]
12978
12978
  }), a;
12979
12979
  } catch (b) {
12980
12980
  if (b.code === 4902)
@@ -12985,7 +12985,7 @@ function wy(e) {
12985
12985
  (h = i == null ? void 0 : i.rpcUrls) != null && h.length ? m = i.rpcUrls : m = [((p = a.rpcUrls.default) == null ? void 0 : p.http[0]) ?? ""];
12986
12986
  const A = {
12987
12987
  blockExplorerUrls: y,
12988
- chainId: D(u),
12988
+ chainId: L(u),
12989
12989
  chainName: (i == null ? void 0 : i.chainName) ?? a.name,
12990
12990
  iconUrls: i == null ? void 0 : i.iconUrls,
12991
12991
  nativeCurrency: (i == null ? void 0 : i.nativeCurrency) ?? a.nativeCurrency,
@@ -13066,7 +13066,7 @@ function xy(e) {
13066
13066
  var a;
13067
13067
  if (!r) {
13068
13068
  const c = await (async () => {
13069
- const { default: b } = await import("./index-XEqBYuj0.mjs").then((y) => y.i);
13069
+ const { default: b } = await import("./index-CFiwSQ5K.mjs").then((y) => y.i);
13070
13070
  return typeof b != "function" && typeof b.default == "function" ? b.default : b;
13071
13071
  })();
13072
13072
  n = new c({ ...e, reloadOnDisconnect: !1 });
@@ -13091,7 +13091,7 @@ function xy(e) {
13091
13091
  try {
13092
13092
  return await d.request({
13093
13093
  method: "wallet_switchEthereumChain",
13094
- params: [{ chainId: D(l.id) }]
13094
+ params: [{ chainId: L(l.id) }]
13095
13095
  }), l;
13096
13096
  } catch (m) {
13097
13097
  if (m.code === 4902)
@@ -13102,7 +13102,7 @@ function xy(e) {
13102
13102
  (b = a == null ? void 0 : a.rpcUrls) != null && b.length ? S = a.rpcUrls : S = [((y = l.rpcUrls.default) == null ? void 0 : y.http[0]) ?? ""];
13103
13103
  const g = {
13104
13104
  blockExplorerUrls: A,
13105
- chainId: D(c),
13105
+ chainId: L(c),
13106
13106
  chainName: (a == null ? void 0 : a.chainName) ?? l.name,
13107
13107
  iconUrls: a == null ? void 0 : a.iconUrls,
13108
13108
  nativeCurrency: (a == null ? void 0 : a.nativeCurrency) ?? l.nativeCurrency,
@@ -13314,7 +13314,7 @@ const _c = /* @__PURE__ */ Nn({
13314
13314
  blockCreated: 15921452
13315
13315
  }
13316
13316
  }
13317
- }), Lc = /* @__PURE__ */ Nn({
13317
+ }), Dc = /* @__PURE__ */ Nn({
13318
13318
  id: 1,
13319
13319
  name: "Ethereum",
13320
13320
  nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
@@ -13341,7 +13341,7 @@ const _c = /* @__PURE__ */ Nn({
13341
13341
  blockCreated: 14353601
13342
13342
  }
13343
13343
  }
13344
- }), $r = 1, Dc = /* @__PURE__ */ Nn({
13344
+ }), $r = 1, Lc = /* @__PURE__ */ Nn({
13345
13345
  ...fo,
13346
13346
  id: 10,
13347
13347
  name: "OP Mainnet",
@@ -13410,12 +13410,12 @@ const _c = /* @__PURE__ */ Nn({
13410
13410
  }
13411
13411
  }
13412
13412
  }), m0 = eb({
13413
- chains: [na, Lc, $c, Dc, Nc, _c],
13413
+ chains: [na, Dc, $c, Lc, Nc, _c],
13414
13414
  transports: {
13415
13415
  [na.id]: Yn(),
13416
- [Lc.id]: Yn("https://ethereum-rpc.publicnode.com"),
13416
+ [Dc.id]: Yn("https://ethereum-rpc.publicnode.com"),
13417
13417
  [$c.id]: Yn(),
13418
- [Dc.id]: Yn(),
13418
+ [Lc.id]: Yn(),
13419
13419
  [Nc.id]: Yn(),
13420
13420
  [_c.id]: Yn()
13421
13421
  },
@@ -13686,7 +13686,7 @@ const x0 = {
13686
13686
  alignItems: "center",
13687
13687
  justifyContent: "center"
13688
13688
  }, _y = { ...x0, color: x.ink };
13689
- function Ly({
13689
+ function Dy({
13690
13690
  merchantName: e,
13691
13691
  onClose: t,
13692
13692
  showBack: n,
@@ -13710,7 +13710,7 @@ function Ly({
13710
13710
  /* @__PURE__ */ f.jsx("button", { onClick: t, style: x0, children: /* @__PURE__ */ f.jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ f.jsx("path", { d: "M6 6L18 18M6 18L18 6", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round" }) }) })
13711
13711
  ] });
13712
13712
  }
13713
- function Dy() {
13713
+ function Ly() {
13714
13714
  return /* @__PURE__ */ f.jsxs("div", { style: {
13715
13715
  padding: "12px 20px 14px",
13716
13716
  borderTop: `1px solid ${x.hair}`,
@@ -13840,8 +13840,8 @@ function Uy({ onPick: e, merchant: t, currencies: n, fmtCur: r, submitting: s, d
13840
13840
  children: [
13841
13841
  /* @__PURE__ */ f.jsx("div", { style: { width: 40, height: 40, borderRadius: 10, background: "#fff", border: `1px solid ${x.hair}`, display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 }, children: c === "fiat" ? /* @__PURE__ */ f.jsx("div", { style: { width: 18, height: 18, borderRadius: "50%", border: `2px solid ${x.hair}`, borderTopColor: x.accent, animation: "wspin 0.8s linear infinite" } }) : /* @__PURE__ */ f.jsx("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ f.jsx("path", { d: "M3 21H21M5 21V10M9 21V10M15 21V10M19 21V10M2 10L12 3L22 10H2Z", stroke: x.ink, strokeWidth: "1.7", strokeLinecap: "round", strokeLinejoin: "round" }) }) }),
13842
13842
  /* @__PURE__ */ f.jsxs(U, { gap: 2, style: { flex: 1, textAlign: "left", minWidth: 0 }, children: [
13843
- /* @__PURE__ */ f.jsx("div", { style: { fontSize: 14, fontWeight: 500, color: x.ink }, children: c === "fiat" ? "Setting up payment…" : "Bank transfer" }),
13844
- /* @__PURE__ */ f.jsx("div", { style: { fontSize: 11.5, color: x.mute }, children: (o == null ? void 0 : o.fiat) || `Pay in ${(i == null ? void 0 : i.name) ?? t.currency} · Instant · No fees` })
13843
+ /* @__PURE__ */ f.jsx("div", { style: { fontSize: 14, fontWeight: 500, color: x.ink }, children: c === "fiat" ? "Setting up payment…" : `Pay with ${(i == null ? void 0 : i.name) ?? t.currency}` }),
13844
+ /* @__PURE__ */ f.jsx("div", { style: { fontSize: 11.5, color: x.mute }, children: (o == null ? void 0 : o.fiat) || "Card, bank transfer & USSD · Instant" })
13845
13845
  ] }),
13846
13846
  c !== "fiat" && !(o != null && o.fiat) && /* @__PURE__ */ f.jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", style: { marginLeft: 4, flexShrink: 0 }, children: /* @__PURE__ */ f.jsx("path", { d: "M9 6L15 12L9 18", stroke: x.mute, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) })
13847
13847
  ]
@@ -13850,26 +13850,26 @@ function Uy({ onPick: e, merchant: t, currencies: n, fmtCur: r, submitting: s, d
13850
13850
  /* @__PURE__ */ f.jsxs(
13851
13851
  "button",
13852
13852
  {
13853
- onClick: () => d("deposit"),
13853
+ onClick: () => d("externalDeposit"),
13854
13854
  disabled: !!(s || c),
13855
13855
  style: { ...fs, opacity: s || c ? 0.7 : 1, cursor: s || c ? "not-allowed" : "pointer" },
13856
13856
  children: [
13857
13857
  /* @__PURE__ */ f.jsx("div", { style: { width: 40, height: 40, borderRadius: 10, background: "#fff", border: `1px solid ${x.hair}`, display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 }, children: /* @__PURE__ */ f.jsx(xr, { bg: "#F6851B", size: 24, children: "🦊" }) }),
13858
13858
  /* @__PURE__ */ f.jsxs(U, { gap: 2, style: { flex: 1, textAlign: "left", minWidth: 0 }, children: [
13859
- /* @__PURE__ */ f.jsx("div", { style: { fontSize: 14, fontWeight: 500 }, children: "Pay with crypto wallet" }),
13860
- /* @__PURE__ */ f.jsx("div", { style: { fontSize: 11.5, color: x.mute }, children: "MetaMask detected · Any chain, any token" })
13859
+ /* @__PURE__ */ f.jsx("div", { style: { fontSize: 14, fontWeight: 500 }, children: "Pay with crypto" }),
13860
+ /* @__PURE__ */ f.jsx("div", { style: { fontSize: 11.5, color: x.mute }, children: "Transfer from any chain, any token, any wallet." })
13861
13861
  ] }),
13862
13862
  /* @__PURE__ */ f.jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", style: { marginLeft: 4, flexShrink: 0 }, children: /* @__PURE__ */ f.jsx("path", { d: "M9 6L15 12L9 18", stroke: x.mute, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) })
13863
13863
  ]
13864
13864
  }
13865
13865
  ),
13866
- u ? /* @__PURE__ */ f.jsx(U, { gap: 6, style: { padding: "2px 0" }, children: /* @__PURE__ */ f.jsxs("button", { onClick: () => d("externalDeposit"), disabled: !!(s || c), style: { ...Ny, opacity: s || c ? 0.7 : 1, cursor: s || c ? "not-allowed" : "pointer" }, children: [
13866
+ u ? /* @__PURE__ */ f.jsx(U, { gap: 6, style: { padding: "2px 0" }, children: /* @__PURE__ */ f.jsxs("button", { onClick: () => d("deposit"), disabled: !!(s || c), style: { ...Ny, opacity: s || c ? 0.7 : 1, cursor: s || c ? "not-allowed" : "pointer" }, children: [
13867
13867
  /* @__PURE__ */ f.jsx("div", { style: { width: 20, height: 20, borderRadius: 5, background: x.panel, border: `1px solid ${x.hair}`, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ f.jsxs("svg", { width: "10", height: "10", viewBox: "0 0 24 24", fill: "none", children: [
13868
13868
  /* @__PURE__ */ f.jsx("rect", { x: "3", y: "3", width: "7", height: "7", stroke: x.ink, strokeWidth: "2" }),
13869
13869
  /* @__PURE__ */ f.jsx("rect", { x: "14", y: "3", width: "7", height: "7", stroke: x.ink, strokeWidth: "2" }),
13870
13870
  /* @__PURE__ */ f.jsx("rect", { x: "3", y: "14", width: "7", height: "7", stroke: x.ink, strokeWidth: "2" })
13871
13871
  ] }) }),
13872
- /* @__PURE__ */ f.jsx("span", { style: { fontSize: 12.5, fontWeight: 500 }, children: "Pay from mobile / hardware / exchange" }),
13872
+ /* @__PURE__ */ f.jsx("span", { style: { fontSize: 12.5, fontWeight: 500 }, children: "Pay from connected wallet" }),
13873
13873
  /* @__PURE__ */ f.jsx("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", style: { marginLeft: "auto" }, children: /* @__PURE__ */ f.jsx("path", { d: "M9 6L15 12L9 18", stroke: x.mute, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) })
13874
13874
  ] }) }) : /* @__PURE__ */ f.jsx("button", { onClick: () => !c && a(!0), style: {
13875
13875
  background: "transparent",
@@ -13881,7 +13881,7 @@ function Uy({ onPick: e, merchant: t, currencies: n, fmtCur: r, submitting: s, d
13881
13881
  padding: "4px 0",
13882
13882
  textAlign: "center",
13883
13883
  opacity: c ? 0.5 : 1
13884
- }, children: "Use a different wallet ↓" })
13884
+ }, children: "Connect your wallet ↓" })
13885
13885
  ] })
13886
13886
  ] });
13887
13887
  }
@@ -15357,7 +15357,7 @@ const sm = {
15357
15357
  Ethereum: "ETHEREUM",
15358
15358
  Arbitrum: "ARBITRUM",
15359
15359
  Polygon: "POLYGON"
15360
- }, om = new Db();
15360
+ }, om = new Lb();
15361
15361
  function im({
15362
15362
  merchant: e = sm,
15363
15363
  apiKey: t,
@@ -15707,7 +15707,7 @@ function im({
15707
15707
  ] });
15708
15708
  const Wn = Qs[$ ?? 0], jr = I === "onramp", Vn = (j) => {
15709
15709
  be.current = null, ee(null), St(null), we(null), Ue(null), Se(null), We(null), lt(null), ze(null), Cr(null), C(j);
15710
- }, Lo = (() => {
15710
+ }, Do = (() => {
15711
15711
  if (k === "connect") return /* @__PURE__ */ f.jsx(Uy, { onPick: Mo, merchant: e, currencies: je, fmtCur: Ke, submitting: Ut, disabledMethods: h });
15712
15712
  if (jr) {
15713
15713
  if (k === "refundAccount") return /* @__PURE__ */ f.jsx(Zy, { merchant: e, value: se, onChange: q, onSubmit: _o, submitting: Ut, error: Ps });
@@ -15730,7 +15730,7 @@ function im({
15730
15730
  if (k === "error") return /* @__PURE__ */ f.jsx(Wc, { onNext: () => Vn("connect"), onBack: () => Vn("quote") });
15731
15731
  }
15732
15732
  return null;
15733
- })(), Do = ["wallet", "quote", "deposit", "walletConnect", "walletAsset", "walletSign"].includes(k) && !jr || ["refundAccount", "vaccount"].includes(k) && jr, E = k === "quote" ? Gn ? "walletAsset" : "wallet" : k === "vaccount" ? "refundAccount" : k === "walletAsset" ? "connect" : k === "walletSign" ? "quote" : "connect";
15733
+ })(), Lo = ["wallet", "quote", "deposit", "walletConnect", "walletAsset", "walletSign"].includes(k) && !jr || ["refundAccount", "vaccount"].includes(k) && jr, E = k === "quote" ? Gn ? "walletAsset" : "wallet" : k === "vaccount" ? "refundAccount" : k === "walletAsset" ? "connect" : k === "walletSign" ? "quote" : "connect";
15734
15734
  return /* @__PURE__ */ f.jsxs(
15735
15735
  "div",
15736
15736
  {
@@ -15749,13 +15749,13 @@ function im({
15749
15749
  },
15750
15750
  children: [
15751
15751
  /* @__PURE__ */ f.jsx(
15752
- Ly,
15752
+ Dy,
15753
15753
  {
15754
15754
  merchantName: e.name,
15755
15755
  onClose: () => {
15756
15756
  F(!0), l == null || l();
15757
15757
  },
15758
- showBack: Do,
15758
+ showBack: Lo,
15759
15759
  onBack: () => {
15760
15760
  k === "walletAsset" && g(), C(E);
15761
15761
  }
@@ -15777,8 +15777,8 @@ function im({
15777
15777
  ] }),
15778
15778
  "No connection — your payment is safe, reconnecting…"
15779
15779
  ] }),
15780
- /* @__PURE__ */ f.jsx("div", { style: { animation: "wfade 0.25s ease" }, children: Lo }, k),
15781
- /* @__PURE__ */ f.jsx(Dy, {})
15780
+ /* @__PURE__ */ f.jsx("div", { style: { animation: "wfade 0.25s ease" }, children: Do }, k),
15781
+ /* @__PURE__ */ f.jsx(Ly, {})
15782
15782
  ]
15783
15783
  }
15784
15784
  );
@@ -15898,7 +15898,7 @@ export {
15898
15898
  mm as E,
15899
15899
  ym as F,
15900
15900
  vs as G,
15901
- D as H,
15901
+ L as H,
15902
15902
  Wm as I,
15903
15903
  Co as J,
15904
15904
  ko as K,
@@ -15908,14 +15908,14 @@ export {
15908
15908
  Am as O,
15909
15909
  Rn as P,
15910
15910
  eh as Q,
15911
- Lu as R,
15911
+ Du as R,
15912
15912
  jp as S,
15913
15913
  so as T,
15914
15914
  ln as U,
15915
15915
  km as V,
15916
15916
  Cm as W,
15917
15917
  Tm as X,
15918
- Du as Y,
15918
+ Lu as Y,
15919
15919
  H0 as Z,
15920
15920
  _d as _,
15921
15921
  Yf as a,
@@ -16001,7 +16001,7 @@ export {
16001
16001
  dm as bE,
16002
16002
  lm as bF,
16003
16003
  ba as bG,
16004
- Dr as bH,
16004
+ Lr as bH,
16005
16005
  ha as bI,
16006
16006
  Pm as bJ,
16007
16007
  Em as bK,
@@ -16029,9 +16029,9 @@ export {
16029
16029
  _e as bj,
16030
16030
  ah as bk,
16031
16031
  vh as bl,
16032
- Lm as bm,
16032
+ Dm as bm,
16033
16033
  wd as bn,
16034
- Dm as bo,
16034
+ Lm as bo,
16035
16035
  Fn as bp,
16036
16036
  Nm as bq,
16037
16037
  vp as br,
@@ -16056,7 +16056,7 @@ export {
16056
16056
  Gm as m,
16057
16057
  Ei as n,
16058
16058
  Jm as o,
16059
- Lf as p,
16059
+ Df as p,
16060
16060
  $h as q,
16061
16061
  nl as r,
16062
16062
  rt as s,