@orbs-network/spot-react 0.0.78 → 0.0.79

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.
@@ -707,7 +707,7 @@ const Xx = { chainName: "ftm", chainId: 250, twapVersion: 4, twapAddress: "0xd3B
707
707
  ]
708
708
  }
709
709
  ], U5 = I5, HK = P5, O5 = F5, D5 = B5;
710
- var xe = /* @__PURE__ */ ((e) => (e.TWAP = "TWAP", e.LIMIT = "LIMIT", e.STOP_LOSS = "STOP_LOSS", e.TAKE_PROFIT = "TAKE_PROFIT", e))(xe || {}), pt = /* @__PURE__ */ ((e) => (e.Open = "OPEN", e.Canceled = "CANCELED", e.Completed = "COMPLETED", e.Expired = "EXPIRED", e))(pt || {}), Jt = /* @__PURE__ */ ((e) => (e[e.Minutes = 6e4] = "Minutes", e[e.Hours = 36e5] = "Hours", e[e.Weeks = 6048e5] = "Weeks", e[e.Days = 864e5] = "Days", e[e.Months = 2592e6] = "Months", e[e.Years = 31536e6] = "Years", e))(Jt || {}), Ve = /* @__PURE__ */ ((e) => (e.LIMIT = "limit", e.TWAP_LIMIT = "twap-limit", e.TWAP_MARKET = "twap-market", e.TAKE_PROFIT = "take-profit", e.STOP_LOSS_LIMIT = "stop-loss-limit", e.STOP_LOSS_MARKET = "stop-loss-market", e))(Ve || {}), _5 = /* @__PURE__ */ ((e) => (e.Arbidex = "arbidex", e.Blackhole = "blackhole", e.Chronos = "chronos", e.Dragon = "dragon", e.Kodiak = "kodiak", e.Lynex = "lynex", e.Nami = "nami", e.Newera = "newera", e.Omni = "omni", e.Pancake = "pancake", e.Quick = "quick", e.Ramses = "ramses", e.Shadow = "shadow", e.Spark = "spark", e.Spooky = "spooky", e.Swapx = "swapx", e.Teafi = "teafi", e.Thena = "thena", e.Yowie = "yowie", e.Pangolin = "pangolin", e.Sushiswap = "sushiswap", e))(_5 || {}), Wt = /* @__PURE__ */ ((e) => (e[e.EMPTY_LIMIT_PRICE = 0] = "EMPTY_LIMIT_PRICE", e[e.MAX_CHUNKS = 1] = "MAX_CHUNKS", e[e.MIN_CHUNKS = 2] = "MIN_CHUNKS", e[e.MIN_TRADE_SIZE = 3] = "MIN_TRADE_SIZE", e[e.MAX_FILL_DELAY = 4] = "MAX_FILL_DELAY", e[e.MIN_FILL_DELAY = 5] = "MIN_FILL_DELAY", e[e.MAX_ORDER_DURATION = 6] = "MAX_ORDER_DURATION", e[e.MIN_ORDER_DURATION = 7] = "MIN_ORDER_DURATION", e[e.MISSING_LIMIT_PRICE = 8] = "MISSING_LIMIT_PRICE", e[e.STOP_LOSS_TRIGGER_PRICE_GREATER_THAN_MARKET_PRICE = 9] = "STOP_LOSS_TRIGGER_PRICE_GREATER_THAN_MARKET_PRICE", e[e.TRIGGER_LIMIT_PRICE_GREATER_THAN_TRIGGER_PRICE = 10] = "TRIGGER_LIMIT_PRICE_GREATER_THAN_TRIGGER_PRICE", e[e.TAKE_PROFIT_TRIGGER_PRICE_LESS_THAN_MARKET_PRICE = 11] = "TAKE_PROFIT_TRIGGER_PRICE_LESS_THAN_MARKET_PRICE", e[e.EMPTY_TRIGGER_PRICE = 12] = "EMPTY_TRIGGER_PRICE", e[e.INSUFFICIENT_BALANCE = 13] = "INSUFFICIENT_BALANCE", e[e.MAX_ORDER_SIZE = 14] = "MAX_ORDER_SIZE", e[e.MIN_CHUNK_SIZE_ERROR = 15] = "MIN_CHUNK_SIZE_ERROR", e))(Wt || {});
710
+ var xe = /* @__PURE__ */ ((e) => (e.TWAP = "TWAP", e.LIMIT = "LIMIT", e.STOP_LOSS = "STOP_LOSS", e.TAKE_PROFIT = "TAKE_PROFIT", e))(xe || {}), pt = /* @__PURE__ */ ((e) => (e.Open = "OPEN", e.Canceled = "CANCELED", e.Completed = "COMPLETED", e.Expired = "EXPIRED", e))(pt || {}), Jt = /* @__PURE__ */ ((e) => (e[e.Minutes = 6e4] = "Minutes", e[e.Hours = 36e5] = "Hours", e[e.Weeks = 6048e5] = "Weeks", e[e.Days = 864e5] = "Days", e[e.Months = 2592e6] = "Months", e[e.Years = 31536e6] = "Years", e))(Jt || {}), Ve = /* @__PURE__ */ ((e) => (e.LIMIT = "limit", e.TWAP_LIMIT = "twap-limit", e.TWAP_MARKET = "twap-market", e.TAKE_PROFIT = "take-profit", e.STOP_LOSS_LIMIT = "stop-loss-limit", e.STOP_LOSS_MARKET = "stop-loss-market", e))(Ve || {}), _5 = /* @__PURE__ */ ((e) => (e.Arbidex = "arbidex", e.Blackhole = "blackhole", e.Chronos = "chronos", e.Dragon = "dragon", e.Kodiak = "kodiak", e.Lynex = "lynex", e.Nami = "nami", e.Newera = "newera", e.Omni = "omni", e.Pancake = "pancake", e.Quick = "quick", e.Ramses = "ramses", e.Shadow = "shadow", e.Spark = "spark", e.Spooky = "spooky", e.Swapx = "swapx", e.Teafi = "teafi", e.Thena = "thena", e.Yowie = "yowie", e.Pangolin = "pangolin", e.Sushiswap = "sushiswap", e))(_5 || {}), Wt = /* @__PURE__ */ ((e) => (e[e.EMPTY_LIMIT_PRICE = 0] = "EMPTY_LIMIT_PRICE", e[e.MAX_CHUNKS = 1] = "MAX_CHUNKS", e[e.MIN_CHUNKS = 2] = "MIN_CHUNKS", e[e.MIN_TRADE_SIZE = 3] = "MIN_TRADE_SIZE", e[e.MAX_FILL_DELAY = 4] = "MAX_FILL_DELAY", e[e.MIN_FILL_DELAY = 5] = "MIN_FILL_DELAY", e[e.MAX_ORDER_DURATION = 6] = "MAX_ORDER_DURATION", e[e.MIN_ORDER_DURATION = 7] = "MIN_ORDER_DURATION", e[e.MISSING_LIMIT_PRICE = 8] = "MISSING_LIMIT_PRICE", e[e.STOP_LOSS_TRIGGER_PRICE_GREATER_THAN_MARKET_PRICE = 9] = "STOP_LOSS_TRIGGER_PRICE_GREATER_THAN_MARKET_PRICE", e[e.TRIGGER_LIMIT_PRICE_GREATER_THAN_TRIGGER_PRICE = 10] = "TRIGGER_LIMIT_PRICE_GREATER_THAN_TRIGGER_PRICE", e[e.TAKE_PROFIT_TRIGGER_PRICE_LESS_THAN_MARKET_PRICE = 11] = "TAKE_PROFIT_TRIGGER_PRICE_LESS_THAN_MARKET_PRICE", e[e.EMPTY_TRIGGER_PRICE = 12] = "EMPTY_TRIGGER_PRICE", e[e.INSUFFICIENT_BALANCE = 13] = "INSUFFICIENT_BALANCE", e[e.MAX_ORDER_SIZE = 14] = "MAX_ORDER_SIZE", e[e.MIN_TRADE_SIZE_ERROR = 15] = "MIN_TRADE_SIZE_ERROR", e))(Wt || {});
711
711
  const gt = "0x0000000000000000000000000000000000000000", Mt = {
712
712
  eth: {
713
713
  id: 1,
@@ -1448,7 +1448,7 @@ function fb(e) {
1448
1448
  }
1449
1449
  function C(h, b) {
1450
1450
  for (var x, S, P = 1, B = new w(h[0]); P < h.length; P++)
1451
- S = new w(h[P]), (!S.s || (x = Ps(B, S)) === b || x === 0 && B.s === b) && (B = S);
1451
+ S = new w(h[P]), (!S.s || (x = Bs(B, S)) === b || x === 0 && B.s === b) && (B = S);
1452
1452
  return B;
1453
1453
  }
1454
1454
  function O(h, b, x) {
@@ -1522,7 +1522,7 @@ function fb(e) {
1522
1522
  var h = new w(this);
1523
1523
  return h.s < 0 && (h.s = 1), h;
1524
1524
  }, s.comparedTo = function(h, b) {
1525
- return Ps(this, new w(h, b));
1525
+ return Bs(this, new w(h, b));
1526
1526
  }, s.decimalPlaces = s.dp = function(h, b) {
1527
1527
  var x, S, P, B = this;
1528
1528
  if (h != null)
@@ -1569,19 +1569,19 @@ function fb(e) {
1569
1569
  var b = new w(this);
1570
1570
  return h == null ? h = i : lt(h, 0, 8), N(b, b.e + 1, h);
1571
1571
  }, s.isEqualTo = s.eq = function(h, b) {
1572
- return Ps(this, new w(h, b)) === 0;
1572
+ return Bs(this, new w(h, b)) === 0;
1573
1573
  }, s.isFinite = function() {
1574
1574
  return !!this.c;
1575
1575
  }, s.isGreaterThan = s.gt = function(h, b) {
1576
- return Ps(this, new w(h, b)) > 0;
1576
+ return Bs(this, new w(h, b)) > 0;
1577
1577
  }, s.isGreaterThanOrEqualTo = s.gte = function(h, b) {
1578
- return (b = Ps(this, new w(h, b))) === 1 || b === 0;
1578
+ return (b = Bs(this, new w(h, b))) === 1 || b === 0;
1579
1579
  }, s.isInteger = function() {
1580
1580
  return !!this.c && Er(this.e / Ee) > this.c.length - 2;
1581
1581
  }, s.isLessThan = s.lt = function(h, b) {
1582
- return Ps(this, new w(h, b)) < 0;
1582
+ return Bs(this, new w(h, b)) < 0;
1583
1583
  }, s.isLessThanOrEqualTo = s.lte = function(h, b) {
1584
- return (b = Ps(this, new w(h, b))) === -1 || b === 0;
1584
+ return (b = Bs(this, new w(h, b))) === -1 || b === 0;
1585
1585
  }, s.isNaN = function() {
1586
1586
  return !this.s;
1587
1587
  }, s.isNegative = function() {
@@ -1743,7 +1743,7 @@ function xr(e) {
1743
1743
  for (s = a.length; a.charCodeAt(--s) === 48; ) ;
1744
1744
  return a.slice(0, s + 1 || 1);
1745
1745
  }
1746
- function Ps(e, t) {
1746
+ function Bs(e, t) {
1747
1747
  var r, n, s = e.c, a = t.c, o = e.s, i = t.s, c = e.e, l = t.e;
1748
1748
  if (!o || !i) return null;
1749
1749
  if (r = s && !s[0], n = a && !a[0], r || n) return r ? n ? 0 : -i : o;
@@ -2199,7 +2199,7 @@ const aw = (e, t, r) => {
2199
2199
  fillDelayError: i,
2200
2200
  durationError: c,
2201
2201
  balanceError: l,
2202
- minChunkSizeError: u
2202
+ minTradeSizeError: u
2203
2203
  }) => {
2204
2204
  if (!Zi(Xi.IGNORE_ERRORS) && !(H(e || 0).isZero() || H(t || 0).isZero() || H(r || "0").isZero() || n))
2205
2205
  return u || s || a || o || i || c || l;
@@ -2938,7 +2938,7 @@ const Yw = async ({
2938
2938
  }) => (await Promise.all([
2939
2939
  s ? Yw({ chainId: r, signal: e, page: t, limit: n, filters: { accounts: [a], configs: s.twapConfig ? [s.twapConfig] : [] } }) : Promise.resolve([]),
2940
2940
  zw({ chainId: r, signal: e, account: a, exchange: s == null ? void 0 : s.adapter })
2941
- ]).then(([c, l]) => [...c, ...l])).sort((c, l) => l.createdAt - c.createdAt), Jw = "0.0.78", e3 = {
2941
+ ]).then(([c, l]) => [...c, ...l])).sort((c, l) => l.createdAt - c.createdAt), Jw = "0.0.79", e3 = {
2942
2942
  version: Jw
2943
2943
  };
2944
2944
  var yo = class {
@@ -2972,7 +2972,7 @@ var yo = class {
2972
2972
  clearTimeout: (e) => clearTimeout(e),
2973
2973
  setInterval: (e, t) => setInterval(e, t),
2974
2974
  clearInterval: (e) => clearInterval(e)
2975
- }, Jr, Rs, rb, r3 = (rb = class {
2975
+ }, Jr, Ns, rb, r3 = (rb = class {
2976
2976
  constructor() {
2977
2977
  // We cannot have TimeoutManager<T> as we must instantiate it with a concrete
2978
2978
  // type at app boot; and if we leave that type, then any new timer provider
@@ -2981,31 +2981,31 @@ var yo = class {
2981
2981
  // We settle for type safety for the TimeoutProvider type, and accept that
2982
2982
  // this class is unsafe internally to allow for extension.
2983
2983
  le(this, Jr, t3);
2984
- le(this, Rs, !1);
2984
+ le(this, Ns, !1);
2985
2985
  }
2986
2986
  setTimeoutProvider(e) {
2987
- process.env.NODE_ENV !== "production" && _(this, Rs) && e !== _(this, Jr) && console.error(
2987
+ process.env.NODE_ENV !== "production" && _(this, Ns) && e !== _(this, Jr) && console.error(
2988
2988
  "[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",
2989
2989
  { previous: _(this, Jr), provider: e }
2990
- ), X(this, Jr, e), process.env.NODE_ENV !== "production" && X(this, Rs, !1);
2990
+ ), X(this, Jr, e), process.env.NODE_ENV !== "production" && X(this, Ns, !1);
2991
2991
  }
2992
2992
  setTimeout(e, t) {
2993
- return process.env.NODE_ENV !== "production" && X(this, Rs, !0), _(this, Jr).setTimeout(e, t);
2993
+ return process.env.NODE_ENV !== "production" && X(this, Ns, !0), _(this, Jr).setTimeout(e, t);
2994
2994
  }
2995
2995
  clearTimeout(e) {
2996
2996
  _(this, Jr).clearTimeout(e);
2997
2997
  }
2998
2998
  setInterval(e, t) {
2999
- return process.env.NODE_ENV !== "production" && X(this, Rs, !0), _(this, Jr).setInterval(e, t);
2999
+ return process.env.NODE_ENV !== "production" && X(this, Ns, !0), _(this, Jr).setInterval(e, t);
3000
3000
  }
3001
3001
  clearInterval(e) {
3002
3002
  _(this, Jr).clearInterval(e);
3003
3003
  }
3004
- }, Jr = new WeakMap(), Rs = new WeakMap(), rb), Fs = new r3();
3004
+ }, Jr = new WeakMap(), Ns = new WeakMap(), rb), Us = new r3();
3005
3005
  function n3(e) {
3006
3006
  setTimeout(e, 0);
3007
3007
  }
3008
- var Xs = typeof window > "u" || "Deno" in globalThis;
3008
+ var Qs = typeof window > "u" || "Deno" in globalThis;
3009
3009
  function Vt() {
3010
3010
  }
3011
3011
  function s3(e, t) {
@@ -3052,7 +3052,7 @@ function Vm(e, t) {
3052
3052
  if (!t.options.mutationKey)
3053
3053
  return !1;
3054
3054
  if (r) {
3055
- if (Qs(t.options.mutationKey) !== Qs(a))
3055
+ if (Js(t.options.mutationKey) !== Js(a))
3056
3056
  return !1;
3057
3057
  } else if (!si(t.options.mutationKey, a))
3058
3058
  return !1;
@@ -3060,9 +3060,9 @@ function Vm(e, t) {
3060
3060
  return !(n && t.state.status !== n || s && !s(t));
3061
3061
  }
3062
3062
  function kf(e, t) {
3063
- return ((t == null ? void 0 : t.queryKeyHashFn) || Qs)(e);
3063
+ return ((t == null ? void 0 : t.queryKeyHashFn) || Js)(e);
3064
3064
  }
3065
- function Qs(e) {
3065
+ function Js(e) {
3066
3066
  return JSON.stringify(
3067
3067
  e,
3068
3068
  (t, r) => op(r) ? Object.keys(r).sort().reduce((n, s) => (n[s] = r[s], n), {}) : r
@@ -3119,7 +3119,7 @@ function qm(e) {
3119
3119
  }
3120
3120
  function o3(e) {
3121
3121
  return new Promise((t) => {
3122
- Fs.setTimeout(t, e);
3122
+ Us.setTimeout(t, e);
3123
3123
  });
3124
3124
  }
3125
3125
  function ip(e, t, r) {
@@ -3155,14 +3155,14 @@ function Cb(e, t) {
3155
3155
  function Tb(e, t) {
3156
3156
  return typeof e == "function" ? e(...t) : !!e;
3157
3157
  }
3158
- var Ns, ns, Wa, nb, l3 = (nb = class extends yo {
3158
+ var Ls, ns, Wa, nb, l3 = (nb = class extends yo {
3159
3159
  constructor() {
3160
3160
  super();
3161
- le(this, Ns);
3161
+ le(this, Ls);
3162
3162
  le(this, ns);
3163
3163
  le(this, Wa);
3164
3164
  X(this, Wa, (t) => {
3165
- if (!Xs && window.addEventListener) {
3165
+ if (!Qs && window.addEventListener) {
3166
3166
  const r = () => t();
3167
3167
  return window.addEventListener("visibilitychange", r, !1), () => {
3168
3168
  window.removeEventListener("visibilitychange", r);
@@ -3184,7 +3184,7 @@ var Ns, ns, Wa, nb, l3 = (nb = class extends yo {
3184
3184
  }));
3185
3185
  }
3186
3186
  setFocused(t) {
3187
- _(this, Ns) !== t && (X(this, Ns, t), this.onFocus());
3187
+ _(this, Ls) !== t && (X(this, Ls, t), this.onFocus());
3188
3188
  }
3189
3189
  onFocus() {
3190
3190
  const t = this.isFocused();
@@ -3194,9 +3194,9 @@ var Ns, ns, Wa, nb, l3 = (nb = class extends yo {
3194
3194
  }
3195
3195
  isFocused() {
3196
3196
  var t;
3197
- return typeof _(this, Ns) == "boolean" ? _(this, Ns) : ((t = globalThis.document) == null ? void 0 : t.visibilityState) !== "hidden";
3197
+ return typeof _(this, Ls) == "boolean" ? _(this, Ls) : ((t = globalThis.document) == null ? void 0 : t.visibilityState) !== "hidden";
3198
3198
  }
3199
- }, Ns = new WeakMap(), ns = new WeakMap(), Wa = new WeakMap(), nb), Cf = new l3();
3199
+ }, Ls = new WeakMap(), ns = new WeakMap(), Wa = new WeakMap(), nb), Cf = new l3();
3200
3200
  function cp() {
3201
3201
  let e, t;
3202
3202
  const r = new Promise((s, a) => {
@@ -3286,7 +3286,7 @@ var Ct = d3(), qa, ss, Ka, sb, p3 = (sb = class extends yo {
3286
3286
  le(this, ss);
3287
3287
  le(this, Ka);
3288
3288
  X(this, Ka, (t) => {
3289
- if (!Xs && window.addEventListener) {
3289
+ if (!Qs && window.addEventListener) {
3290
3290
  const r = () => t(!0), n = () => t(!1);
3291
3291
  return window.addEventListener("online", r, !1), window.addEventListener("offline", n, !1), () => {
3292
3292
  window.removeEventListener("online", r), window.removeEventListener("offline", n);
@@ -3363,7 +3363,7 @@ function Sb(e) {
3363
3363
  var N;
3364
3364
  if (a())
3365
3365
  return;
3366
- const w = e.retry ?? (Xs ? 0 : 3), A = e.retryDelay ?? f3, C = typeof A == "function" ? A(r, v) : A, O = w === !0 || typeof w == "number" && r < w || typeof w == "function" && w(r, v);
3366
+ const w = e.retry ?? (Qs ? 0 : 3), A = e.retryDelay ?? f3, C = typeof A == "function" ? A(r, v) : A, O = w === !0 || typeof w == "number" && r < w || typeof w == "function" && w(r, v);
3367
3367
  if (t || !O) {
3368
3368
  f(v);
3369
3369
  return;
@@ -3384,39 +3384,39 @@ function Sb(e) {
3384
3384
  start: () => (u() ? y() : m().then(y), s)
3385
3385
  };
3386
3386
  }
3387
- var Ls, ab, Ib = (ab = class {
3387
+ var zs, ab, Ib = (ab = class {
3388
3388
  constructor() {
3389
- le(this, Ls);
3389
+ le(this, zs);
3390
3390
  }
3391
3391
  destroy() {
3392
3392
  this.clearGcTimeout();
3393
3393
  }
3394
3394
  scheduleGc() {
3395
- this.clearGcTimeout(), sp(this.gcTime) && X(this, Ls, Fs.setTimeout(() => {
3395
+ this.clearGcTimeout(), sp(this.gcTime) && X(this, zs, Us.setTimeout(() => {
3396
3396
  this.optionalRemove();
3397
3397
  }, this.gcTime));
3398
3398
  }
3399
3399
  updateGcTime(e) {
3400
3400
  this.gcTime = Math.max(
3401
3401
  this.gcTime || 0,
3402
- e ?? (Xs ? 1 / 0 : 300 * 1e3)
3402
+ e ?? (Qs ? 1 / 0 : 300 * 1e3)
3403
3403
  );
3404
3404
  }
3405
3405
  clearGcTimeout() {
3406
- _(this, Ls) && (Fs.clearTimeout(_(this, Ls)), X(this, Ls, void 0));
3406
+ _(this, zs) && (Us.clearTimeout(_(this, zs)), X(this, zs, void 0));
3407
3407
  }
3408
- }, Ls = new WeakMap(), ab), zs, Ya, Cr, $s, Pt, ji, Hs, Mr, Tn, ob, m3 = (ob = class extends Ib {
3408
+ }, zs = new WeakMap(), ab), $s, Ya, Cr, Hs, Pt, ji, Gs, Mr, Tn, ob, m3 = (ob = class extends Ib {
3409
3409
  constructor(t) {
3410
3410
  super();
3411
3411
  le(this, Mr);
3412
- le(this, zs);
3412
+ le(this, $s);
3413
3413
  le(this, Ya);
3414
3414
  le(this, Cr);
3415
- le(this, $s);
3415
+ le(this, Hs);
3416
3416
  le(this, Pt);
3417
3417
  le(this, ji);
3418
- le(this, Hs);
3419
- X(this, Hs, !1), X(this, ji, t.defaultOptions), this.setOptions(t.options), this.observers = [], X(this, $s, t.client), X(this, Cr, _(this, $s).getQueryCache()), this.queryKey = t.queryKey, this.queryHash = t.queryHash, X(this, zs, Ym(this.options)), this.state = t.state ?? _(this, zs), this.scheduleGc();
3418
+ le(this, Gs);
3419
+ X(this, Gs, !1), X(this, ji, t.defaultOptions), this.setOptions(t.options), this.observers = [], X(this, Hs, t.client), X(this, Cr, _(this, Hs).getQueryCache()), this.queryKey = t.queryKey, this.queryHash = t.queryHash, X(this, $s, Ym(this.options)), this.state = t.state ?? _(this, $s), this.scheduleGc();
3420
3420
  }
3421
3421
  get meta() {
3422
3422
  return this.options.meta;
@@ -3430,7 +3430,7 @@ var Ls, ab, Ib = (ab = class {
3430
3430
  const r = Ym(this.options);
3431
3431
  r.data !== void 0 && (this.setState(
3432
3432
  Km(r.data, r.dataUpdatedAt)
3433
- ), X(this, zs, r));
3433
+ ), X(this, $s, r));
3434
3434
  }
3435
3435
  }
3436
3436
  optionalRemove() {
@@ -3457,7 +3457,7 @@ var Ls, ab, Ib = (ab = class {
3457
3457
  super.destroy(), this.cancel({ silent: !0 });
3458
3458
  }
3459
3459
  reset() {
3460
- this.destroy(), this.setState(_(this, zs));
3460
+ this.destroy(), this.setState(_(this, $s));
3461
3461
  }
3462
3462
  isActive() {
3463
3463
  return this.observers.some(
@@ -3494,7 +3494,7 @@ var Ls, ab, Ib = (ab = class {
3494
3494
  this.observers.includes(t) || (this.observers.push(t), this.clearGcTimeout(), _(this, Cr).notify({ type: "observerAdded", query: this, observer: t }));
3495
3495
  }
3496
3496
  removeObserver(t) {
3497
- this.observers.includes(t) && (this.observers = this.observers.filter((r) => r !== t), this.observers.length || (_(this, Pt) && (_(this, Hs) ? _(this, Pt).cancel({ revert: !0 }) : _(this, Pt).cancelRetry()), this.scheduleGc()), _(this, Cr).notify({ type: "observerRemoved", query: this, observer: t }));
3497
+ this.observers.includes(t) && (this.observers = this.observers.filter((r) => r !== t), this.observers.length || (_(this, Pt) && (_(this, Gs) ? _(this, Pt).cancel({ revert: !0 }) : _(this, Pt).cancelRetry()), this.scheduleGc()), _(this, Cr).notify({ type: "observerRemoved", query: this, observer: t }));
3498
3498
  }
3499
3499
  getObserversCount() {
3500
3500
  return this.observers.length;
@@ -3523,18 +3523,18 @@ var Ls, ab, Ib = (ab = class {
3523
3523
  const n = new AbortController(), s = (C) => {
3524
3524
  Object.defineProperty(C, "signal", {
3525
3525
  enumerable: !0,
3526
- get: () => (X(this, Hs, !0), n.signal)
3526
+ get: () => (X(this, Gs, !0), n.signal)
3527
3527
  });
3528
3528
  }, a = () => {
3529
3529
  const C = Cb(this.options, r), N = (() => {
3530
3530
  const T = {
3531
- client: _(this, $s),
3531
+ client: _(this, Hs),
3532
3532
  queryKey: this.queryKey,
3533
3533
  meta: this.meta
3534
3534
  };
3535
3535
  return s(T), T;
3536
3536
  })();
3537
- return X(this, Hs, !1), this.options.persister ? this.options.persister(
3537
+ return X(this, Gs, !1), this.options.persister ? this.options.persister(
3538
3538
  C,
3539
3539
  N,
3540
3540
  this
@@ -3544,7 +3544,7 @@ var Ls, ab, Ib = (ab = class {
3544
3544
  fetchOptions: r,
3545
3545
  options: this.options,
3546
3546
  queryKey: this.queryKey,
3547
- client: _(this, $s),
3547
+ client: _(this, Hs),
3548
3548
  state: this.state,
3549
3549
  fetchFn: a
3550
3550
  };
@@ -3612,7 +3612,7 @@ var Ls, ab, Ib = (ab = class {
3612
3612
  this.scheduleGc();
3613
3613
  }
3614
3614
  }
3615
- }, zs = new WeakMap(), Ya = new WeakMap(), Cr = new WeakMap(), $s = new WeakMap(), Pt = new WeakMap(), ji = new WeakMap(), Hs = new WeakMap(), Mr = new WeakSet(), Tn = function(t) {
3615
+ }, $s = new WeakMap(), Ya = new WeakMap(), Cr = new WeakMap(), Hs = new WeakMap(), Pt = new WeakMap(), ji = new WeakMap(), Gs = new WeakMap(), Mr = new WeakSet(), Tn = function(t) {
3616
3616
  const r = (n) => {
3617
3617
  switch (t.type) {
3618
3618
  case "failed":
@@ -3716,7 +3716,7 @@ function Ym(e) {
3716
3716
  fetchStatus: "idle"
3717
3717
  };
3718
3718
  }
3719
- var Xt, Oe, Vi, Gt, Gs, Za, In, as, Wi, Xa, Qa, js, Vs, os, Ja, qe, Yo, up, dp, pp, fp, mp, hp, bp, Bb, ib, h3 = (ib = class extends yo {
3719
+ var Xt, Oe, Vi, Gt, js, Za, In, as, Wi, Xa, Qa, Vs, Ws, os, Ja, qe, Yo, up, dp, pp, fp, mp, hp, bp, Bb, ib, h3 = (ib = class extends yo {
3720
3720
  constructor(t, r) {
3721
3721
  super();
3722
3722
  le(this, qe);
@@ -3724,7 +3724,7 @@ var Xt, Oe, Vi, Gt, Gs, Za, In, as, Wi, Xa, Qa, js, Vs, os, Ja, qe, Yo, up, dp,
3724
3724
  le(this, Oe);
3725
3725
  le(this, Vi);
3726
3726
  le(this, Gt);
3727
- le(this, Gs);
3727
+ le(this, js);
3728
3728
  le(this, Za);
3729
3729
  le(this, In);
3730
3730
  le(this, as);
@@ -3733,8 +3733,8 @@ var Xt, Oe, Vi, Gt, Gs, Za, In, as, Wi, Xa, Qa, js, Vs, os, Ja, qe, Yo, up, dp,
3733
3733
  // This property keeps track of the last query with defined data.
3734
3734
  // It will be used to pass the previous data and query to the placeholder function between renders.
3735
3735
  le(this, Qa);
3736
- le(this, js);
3737
3736
  le(this, Vs);
3737
+ le(this, Ws);
3738
3738
  le(this, os);
3739
3739
  le(this, Ja, /* @__PURE__ */ new Set());
3740
3740
  this.options = r, X(this, Xt, t), X(this, as, null), X(this, In, cp()), this.bindMethods(), this.setOptions(r);
@@ -3788,7 +3788,7 @@ var Xt, Oe, Vi, Gt, Gs, Za, In, as, Wi, Xa, Qa, js, Vs, os, Ja, qe, Yo, up, dp,
3788
3788
  }
3789
3789
  getOptimisticResult(t) {
3790
3790
  const r = _(this, Xt).getQueryCache().build(_(this, Xt), t), n = this.createResult(r, t);
3791
- return y3(this, n) && (X(this, Gt, n), X(this, Za, this.options), X(this, Gs, _(this, Oe).state)), n;
3791
+ return y3(this, n) && (X(this, Gt, n), X(this, Za, this.options), X(this, js, _(this, Oe).state)), n;
3792
3792
  }
3793
3793
  getCurrentResult() {
3794
3794
  return _(this, Gt);
@@ -3825,7 +3825,7 @@ var Xt, Oe, Vi, Gt, Gs, Za, In, as, Wi, Xa, Qa, js, Vs, os, Ja, qe, Yo, up, dp,
3825
3825
  }
3826
3826
  createResult(t, r) {
3827
3827
  var b;
3828
- const n = _(this, Oe), s = this.options, a = _(this, Gt), o = _(this, Gs), i = _(this, Za), l = t !== n ? t.state : _(this, Vi), { state: u } = t;
3828
+ const n = _(this, Oe), s = this.options, a = _(this, Gt), o = _(this, js), i = _(this, Za), l = t !== n ? t.state : _(this, Vi), { state: u } = t;
3829
3829
  let d = { ...u }, f = !1, m;
3830
3830
  if (r._optimisticResults) {
3831
3831
  const x = this.hasListeners(), S = !x && Zm(t, r), P = x && Xm(t, n, r, s);
@@ -3909,7 +3909,7 @@ var Xt, Oe, Vi, Gt, Gs, Za, In, as, Wi, Xa, Qa, js, Vs, os, Ja, qe, Yo, up, dp,
3909
3909
  }
3910
3910
  updateResult() {
3911
3911
  const t = _(this, Gt), r = this.createResult(_(this, Oe), this.options);
3912
- if (X(this, Gs, _(this, Oe).state), X(this, Za, this.options), _(this, Gs).data !== void 0 && X(this, Qa, _(this, Oe)), Bl(r, t))
3912
+ if (X(this, js, _(this, Oe).state), X(this, Za, this.options), _(this, js).data !== void 0 && X(this, Qa, _(this, Oe)), Bl(r, t))
3913
3913
  return;
3914
3914
  X(this, Gt, r);
3915
3915
  const n = () => {
@@ -3931,7 +3931,7 @@ var Xt, Oe, Vi, Gt, Gs, Za, In, as, Wi, Xa, Qa, js, Vs, os, Ja, qe, Yo, up, dp,
3931
3931
  onQueryUpdate() {
3932
3932
  this.updateResult(), this.hasListeners() && Se(this, qe, fp).call(this);
3933
3933
  }
3934
- }, Xt = new WeakMap(), Oe = new WeakMap(), Vi = new WeakMap(), Gt = new WeakMap(), Gs = new WeakMap(), Za = new WeakMap(), In = new WeakMap(), as = new WeakMap(), Wi = new WeakMap(), Xa = new WeakMap(), Qa = new WeakMap(), js = new WeakMap(), Vs = new WeakMap(), os = new WeakMap(), Ja = new WeakMap(), qe = new WeakSet(), Yo = function(t) {
3934
+ }, Xt = new WeakMap(), Oe = new WeakMap(), Vi = new WeakMap(), Gt = new WeakMap(), js = new WeakMap(), Za = new WeakMap(), In = new WeakMap(), as = new WeakMap(), Wi = new WeakMap(), Xa = new WeakMap(), Qa = new WeakMap(), Vs = new WeakMap(), Ws = new WeakMap(), os = new WeakMap(), Ja = new WeakMap(), qe = new WeakSet(), Yo = function(t) {
3935
3935
  Se(this, qe, bp).call(this);
3936
3936
  let r = _(this, Oe).fetch(
3937
3937
  this.options,
@@ -3944,24 +3944,24 @@ var Xt, Oe, Vi, Gt, Gs, Za, In, as, Wi, Xa, Qa, js, Vs, os, Ja, qe, Yo, up, dp,
3944
3944
  this.options.staleTime,
3945
3945
  _(this, Oe)
3946
3946
  );
3947
- if (Xs || _(this, Gt).isStale || !sp(t))
3947
+ if (Qs || _(this, Gt).isStale || !sp(t))
3948
3948
  return;
3949
3949
  const n = kb(_(this, Gt).dataUpdatedAt, t) + 1;
3950
- X(this, js, Fs.setTimeout(() => {
3950
+ X(this, Vs, Us.setTimeout(() => {
3951
3951
  _(this, Gt).isStale || this.updateResult();
3952
3952
  }, n));
3953
3953
  }, dp = function() {
3954
3954
  return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(_(this, Oe)) : this.options.refetchInterval) ?? !1;
3955
3955
  }, pp = function(t) {
3956
- Se(this, qe, hp).call(this), X(this, os, t), !(Xs || Tr(this.options.enabled, _(this, Oe)) === !1 || !sp(_(this, os)) || _(this, os) === 0) && X(this, Vs, Fs.setInterval(() => {
3956
+ Se(this, qe, hp).call(this), X(this, os, t), !(Qs || Tr(this.options.enabled, _(this, Oe)) === !1 || !sp(_(this, os)) || _(this, os) === 0) && X(this, Ws, Us.setInterval(() => {
3957
3957
  (this.options.refetchIntervalInBackground || Cf.isFocused()) && Se(this, qe, Yo).call(this);
3958
3958
  }, _(this, os)));
3959
3959
  }, fp = function() {
3960
3960
  Se(this, qe, up).call(this), Se(this, qe, pp).call(this, Se(this, qe, dp).call(this));
3961
3961
  }, mp = function() {
3962
- _(this, js) && (Fs.clearTimeout(_(this, js)), X(this, js, void 0));
3962
+ _(this, Vs) && (Us.clearTimeout(_(this, Vs)), X(this, Vs, void 0));
3963
3963
  }, hp = function() {
3964
- _(this, Vs) && (Fs.clearInterval(_(this, Vs)), X(this, Vs, void 0));
3964
+ _(this, Ws) && (Us.clearInterval(_(this, Ws)), X(this, Ws, void 0));
3965
3965
  }, bp = function() {
3966
3966
  const t = _(this, Xt).getQueryCache().build(_(this, Xt), this.options);
3967
3967
  if (t === _(this, Oe))
@@ -4082,14 +4082,14 @@ function g3(e, { pages: t, pageParams: r }) {
4082
4082
  var n;
4083
4083
  return t.length > 0 ? (n = e.getPreviousPageParam) == null ? void 0 : n.call(e, t[0], t, r[0], r) : void 0;
4084
4084
  }
4085
- var qi, en, jt, Ws, tn, ts, cb, x3 = (cb = class extends Ib {
4085
+ var qi, en, jt, qs, tn, ts, cb, x3 = (cb = class extends Ib {
4086
4086
  constructor(t) {
4087
4087
  super();
4088
4088
  le(this, tn);
4089
4089
  le(this, qi);
4090
4090
  le(this, en);
4091
4091
  le(this, jt);
4092
- le(this, Ws);
4092
+ le(this, qs);
4093
4093
  X(this, qi, t.client), this.mutationId = t.mutationId, X(this, jt, t.mutationCache), X(this, en, []), this.state = t.state || Fb(), this.setOptions(t.options), this.scheduleGc();
4094
4094
  }
4095
4095
  setOptions(t) {
@@ -4117,7 +4117,7 @@ var qi, en, jt, Ws, tn, ts, cb, x3 = (cb = class extends Ib {
4117
4117
  }
4118
4118
  continue() {
4119
4119
  var t;
4120
- return ((t = _(this, Ws)) == null ? void 0 : t.continue()) ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
4120
+ return ((t = _(this, qs)) == null ? void 0 : t.continue()) ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
4121
4121
  this.execute(this.state.variables);
4122
4122
  }
4123
4123
  async execute(t) {
@@ -4129,7 +4129,7 @@ var qi, en, jt, Ws, tn, ts, cb, x3 = (cb = class extends Ib {
4129
4129
  meta: this.options.meta,
4130
4130
  mutationKey: this.options.mutationKey
4131
4131
  };
4132
- X(this, Ws, Sb({
4132
+ X(this, qs, Sb({
4133
4133
  fn: () => this.options.mutationFn ? this.options.mutationFn(t, n) : Promise.reject(new Error("No mutationFn found")),
4134
4134
  onFail: (x, S) => {
4135
4135
  Se(this, tn, ts).call(this, { type: "failed", failureCount: x, error: S });
@@ -4143,7 +4143,7 @@ var qi, en, jt, Ws, tn, ts, cb, x3 = (cb = class extends Ib {
4143
4143
  networkMode: this.options.networkMode,
4144
4144
  canRun: () => _(this, jt).canRun(this)
4145
4145
  }));
4146
- const s = this.state.status === "pending", a = !_(this, Ws).canStart();
4146
+ const s = this.state.status === "pending", a = !_(this, qs).canStart();
4147
4147
  try {
4148
4148
  if (s)
4149
4149
  r();
@@ -4166,7 +4166,7 @@ var qi, en, jt, Ws, tn, ts, cb, x3 = (cb = class extends Ib {
4166
4166
  isPaused: a
4167
4167
  });
4168
4168
  }
4169
- const x = await _(this, Ws).start();
4169
+ const x = await _(this, qs).start();
4170
4170
  return await ((d = (u = _(this, jt).config).onSuccess) == null ? void 0 : d.call(
4171
4171
  u,
4172
4172
  x,
@@ -4234,7 +4234,7 @@ var qi, en, jt, Ws, tn, ts, cb, x3 = (cb = class extends Ib {
4234
4234
  _(this, jt).runNext(this);
4235
4235
  }
4236
4236
  }
4237
- }, qi = new WeakMap(), en = new WeakMap(), jt = new WeakMap(), Ws = new WeakMap(), tn = new WeakSet(), ts = function(t) {
4237
+ }, qi = new WeakMap(), en = new WeakMap(), jt = new WeakMap(), qs = new WeakMap(), tn = new WeakSet(), ts = function(t) {
4238
4238
  const r = (n) => {
4239
4239
  switch (t.type) {
4240
4240
  case "failed":
@@ -4430,7 +4430,7 @@ var Bn, is, Qt, Fn, Hn, El, gp, ub, v3 = (ub = class extends yo {
4430
4430
  type: "observerOptionsUpdated",
4431
4431
  mutation: _(this, Qt),
4432
4432
  observer: this
4433
- }), r != null && r.mutationKey && this.options.mutationKey && Qs(r.mutationKey) !== Qs(this.options.mutationKey) ? this.reset() : ((n = _(this, Qt)) == null ? void 0 : n.state.status) === "pending" && _(this, Qt).setOptions(this.options);
4433
+ }), r != null && r.mutationKey && this.options.mutationKey && Js(r.mutationKey) !== Js(this.options.mutationKey) ? this.reset() : ((n = _(this, Qt)) == null ? void 0 : n.state.status) === "pending" && _(this, Qt).setOptions(this.options);
4434
4434
  }
4435
4435
  onUnsubscribe() {
4436
4436
  var t;
@@ -4733,7 +4733,7 @@ var Bn, is, Qt, Fn, Hn, El, gp, ub, v3 = (ub = class extends yo {
4733
4733
  X(this, ls, e);
4734
4734
  }
4735
4735
  setQueryDefaults(e, t) {
4736
- _(this, eo).set(Qs(e), {
4736
+ _(this, eo).set(Js(e), {
4737
4737
  queryKey: e,
4738
4738
  defaultOptions: t
4739
4739
  });
@@ -4745,7 +4745,7 @@ var Bn, is, Qt, Fn, Hn, El, gp, ub, v3 = (ub = class extends yo {
4745
4745
  }), r;
4746
4746
  }
4747
4747
  setMutationDefaults(e, t) {
4748
- _(this, to).set(Qs(e), {
4748
+ _(this, to).set(Js(e), {
4749
4749
  mutationKey: e,
4750
4750
  defaultOptions: t
4751
4751
  });
@@ -4875,7 +4875,7 @@ function _3(e, t, r) {
4875
4875
  m,
4876
4876
  o,
4877
4877
  l
4878
- ), o.experimental_prefetchInRender && !Xs && O3(l, n)) {
4878
+ ), o.experimental_prefetchInRender && !Qs && O3(l, n)) {
4879
4879
  const E = i ? (
4880
4880
  // Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
4881
4881
  eh(o, c, s)
@@ -5380,7 +5380,7 @@ const Mb = ({
5380
5380
  Logo: l
5381
5381
  }
5382
5382
  )
5383
- ] }), Es = (e) => /* @__PURE__ */ M(
5383
+ ] }), ks = (e) => /* @__PURE__ */ M(
5384
5384
  j3,
5385
5385
  {
5386
5386
  ...e,
@@ -5390,10 +5390,10 @@ const Mb = ({
5390
5390
  const { swapStatus: e, components: t, className: r } = pn();
5391
5391
  return /* @__PURE__ */ M("div", { className: `${Le("SwapFlow")} ${r}`, children: e === wt.SUCCESS ? t == null ? void 0 : t.Success : e === wt.FAILED ? t == null ? void 0 : t.Failed : t == null ? void 0 : t.Main });
5392
5392
  };
5393
- Es.Success = t8;
5394
- Es.Failed = J3;
5395
- Es.Main = n8;
5396
- Es.StepLayout = Jl;
5393
+ ks.Success = t8;
5394
+ ks.Failed = J3;
5395
+ ks.Main = n8;
5396
+ ks.StepLayout = Jl;
5397
5397
  var _a = /* @__PURE__ */ ((e) => (e.WRAP = "wrap", e.APPROVE = "approve", e.CREATE = "create", e))(_a || {});
5398
5398
  const o8 = "1.2.3";
5399
5399
  let or = class xp extends Error {
@@ -6585,7 +6585,7 @@ function io(e, t = {}) {
6585
6585
  }
6586
6586
  const hv = /* @__PURE__ */ new TextEncoder();
6587
6587
  function Rn(e, t = {}) {
6588
- return typeof e == "number" || typeof e == "bigint" ? yv(e, t) : typeof e == "boolean" ? bv(e, t) : on(e) ? ur(e, t) : qs(e, t);
6588
+ return typeof e == "number" || typeof e == "bigint" ? yv(e, t) : typeof e == "boolean" ? bv(e, t) : on(e) ? ur(e, t) : Ks(e, t);
6589
6589
  }
6590
6590
  function bv(e, t = {}) {
6591
6591
  const r = new Uint8Array(1);
@@ -6625,7 +6625,7 @@ function yv(e, t) {
6625
6625
  const r = V(e, t);
6626
6626
  return ur(r);
6627
6627
  }
6628
- function qs(e, t = {}) {
6628
+ function Ks(e, t = {}) {
6629
6629
  const r = hv.encode(e);
6630
6630
  return typeof t.size == "number" ? (Kr(r, { size: t.size }), la(r, { dir: "right", size: t.size })) : r;
6631
6631
  }
@@ -6656,7 +6656,7 @@ function oi(e) {
6656
6656
  if (!Number.isSafeInteger(e) || e < 0)
6657
6657
  throw new Error("positive integer expected, got " + e);
6658
6658
  }
6659
- function Js(e, ...t) {
6659
+ function ea(e, ...t) {
6660
6660
  if (!Pv(e))
6661
6661
  throw new Error("Uint8Array expected");
6662
6662
  if (t.length > 0 && !t.includes(e.length))
@@ -6674,7 +6674,7 @@ function co(e, t = !0) {
6674
6674
  throw new Error("Hash#digest() has already been called");
6675
6675
  }
6676
6676
  function oy(e, t) {
6677
- Js(e);
6677
+ ea(e);
6678
6678
  const r = t.outputLen;
6679
6679
  if (e.length < r)
6680
6680
  throw new Error("digestInto() expects output buffer of length at least " + r);
@@ -6708,13 +6708,13 @@ function _v(e) {
6708
6708
  return new Uint8Array(new TextEncoder().encode(e));
6709
6709
  }
6710
6710
  function ru(e) {
6711
- return typeof e == "string" && (e = _v(e)), Js(e), e;
6711
+ return typeof e == "string" && (e = _v(e)), ea(e), e;
6712
6712
  }
6713
6713
  function Mv(...e) {
6714
6714
  let t = 0;
6715
6715
  for (let n = 0; n < e.length; n++) {
6716
6716
  const s = e[n];
6717
- Js(s), t += s.length;
6717
+ ea(s), t += s.length;
6718
6718
  }
6719
6719
  const r = new Uint8Array(t);
6720
6720
  for (let n = 0, s = 0; n < e.length; n++) {
@@ -6784,7 +6784,7 @@ class Bf extends Pf {
6784
6784
  wh(this.state32), Vv(this.state32, this.rounds), wh(this.state32), this.posOut = 0, this.pos = 0;
6785
6785
  }
6786
6786
  update(t) {
6787
- co(this), t = ru(t), Js(t);
6787
+ co(this), t = ru(t), ea(t);
6788
6788
  const { blockLen: r, state: n } = this, s = t.length;
6789
6789
  for (let a = 0; a < s; ) {
6790
6790
  const o = Math.min(r - this.pos, s - a);
@@ -6802,7 +6802,7 @@ class Bf extends Pf {
6802
6802
  t[n] ^= r, (r & 128) !== 0 && n === s - 1 && this.keccak(), t[s - 1] ^= 128, this.keccak();
6803
6803
  }
6804
6804
  writeInto(t) {
6805
- co(this, !1), Js(t), this.finish();
6805
+ co(this, !1), ea(t), this.finish();
6806
6806
  const r = this.state, { blockLen: n } = this;
6807
6807
  for (let s = 0, a = t.length; s < a; ) {
6808
6808
  this.posOut >= n && this.keccak();
@@ -6912,7 +6912,7 @@ const ud = /* @__PURE__ */ new xo(8192);
6912
6912
  function Ji(e, t) {
6913
6913
  if (ud.has(`${e}.${t}`))
6914
6914
  return ud.get(`${e}.${t}`);
6915
- const r = e.substring(2).toLowerCase(), n = Ot(qs(r), "bytes"), s = r.split("");
6915
+ const r = e.substring(2).toLowerCase(), n = Ot(Ks(r), "bytes"), s = r.split("");
6916
6916
  for (let o = 0; o < 40; o += 2)
6917
6917
  n[o >> 1] >> 4 >= 8 && s[o] && (s[o] = s[o].toUpperCase()), (n[o >> 1] & 15) >= 8 && s[o + 1] && (s[o + 1] = s[o + 1].toUpperCase());
6918
6918
  const a = `0x${s.join("")}`;
@@ -6947,7 +6947,7 @@ function Qv(e) {
6947
6947
  function fr(e) {
6948
6948
  return `0x${e.reduce((t, r) => t + r.replace("0x", ""), "")}`;
6949
6949
  }
6950
- function ea(e, t, r, { strict: n } = {}) {
6950
+ function ta(e, t, r, { strict: n } = {}) {
6951
6951
  return on(e, { strict: !1 }) ? Cp(e, t, r, {
6952
6952
  strict: n
6953
6953
  }) : hy(e, t, r, {
@@ -7127,7 +7127,7 @@ function aE(e, { signed: t, size: r = 256 }) {
7127
7127
  function oE(e) {
7128
7128
  const t = io(e), r = Math.ceil(ut(t) / 32), n = [];
7129
7129
  for (let s = 0; s < r; s++)
7130
- n.push(ms(ea(t, s * 32, (s + 1) * 32), {
7130
+ n.push(ms(ta(t, s * 32, (s + 1) * 32), {
7131
7131
  dir: "right"
7132
7132
  }));
7133
7133
  return {
@@ -7160,7 +7160,7 @@ function Df(e) {
7160
7160
  [t[2] ? Number(t[2]) : null, t[1]]
7161
7161
  ) : void 0;
7162
7162
  }
7163
- const ec = (e) => ea(py(e), 0, 4);
7163
+ const ec = (e) => ta(py(e), 0, 4);
7164
7164
  function da(e) {
7165
7165
  const { abi: t, args: r = [], name: n } = e, s = on(n, { strict: !1 }), a = t.filter((i) => s ? i.type === "function" ? ec(i) === n : i.type === "event" ? su(i) === n : !1 : "name" in i && i.name === n);
7166
7166
  if (a.length === 0)
@@ -7663,7 +7663,7 @@ function ii(e) {
7663
7663
  return !!(r && ii({ ...e, type: r[1] }));
7664
7664
  }
7665
7665
  function kE(e) {
7666
- const { abi: t, data: r } = e, n = ea(r, 0, 4);
7666
+ const { abi: t, data: r } = e, n = ta(r, 0, 4);
7667
7667
  if (n === "0x")
7668
7668
  throw new Qi();
7669
7669
  const a = [...t || [], xy, uE].find((o) => o.type === "error" && n === ec($r(o)));
@@ -7673,7 +7673,7 @@ function kE(e) {
7673
7673
  });
7674
7674
  return {
7675
7675
  abiItem: a,
7676
- args: "inputs" in a && a.inputs && a.inputs.length > 0 ? rc(a.inputs, ea(r, 4)) : void 0,
7676
+ args: "inputs" in a && a.inputs && a.inputs.length > 0 ? rc(a.inputs, ta(r, 4)) : void 0,
7677
7677
  errorName: a.name
7678
7678
  };
7679
7679
  }
@@ -8206,16 +8206,16 @@ Object.defineProperty(di, "code", {
8206
8206
  writable: !0,
8207
8207
  value: -32602
8208
8208
  });
8209
- class ta extends ir {
8209
+ class ra extends ir {
8210
8210
  constructor(t) {
8211
8211
  super(t, {
8212
- code: ta.code,
8212
+ code: ra.code,
8213
8213
  name: "InternalRpcError",
8214
8214
  shortMessage: "An internal error was received."
8215
8215
  });
8216
8216
  }
8217
8217
  }
8218
- Object.defineProperty(ta, "code", {
8218
+ Object.defineProperty(ra, "code", {
8219
8219
  enumerable: !0,
8220
8220
  configurable: !0,
8221
8221
  writable: !0,
@@ -8290,16 +8290,16 @@ Object.defineProperty(mi, "code", {
8290
8290
  writable: !0,
8291
8291
  value: -32003
8292
8292
  });
8293
- class Us extends ir {
8293
+ class Os extends ir {
8294
8294
  constructor(t, { method: r } = {}) {
8295
8295
  super(t, {
8296
- code: Us.code,
8296
+ code: Os.code,
8297
8297
  name: "MethodNotSupportedRpcError",
8298
8298
  shortMessage: `Method${r ? ` "${r}"` : ""} is not supported.`
8299
8299
  });
8300
8300
  }
8301
8301
  }
8302
- Object.defineProperty(Us, "code", {
8302
+ Object.defineProperty(Os, "code", {
8303
8303
  enumerable: !0,
8304
8304
  configurable: !0,
8305
8305
  writable: !0,
@@ -8539,8 +8539,8 @@ class NE extends ir {
8539
8539
  }
8540
8540
  }
8541
8541
  const LE = 3;
8542
- function ra(e, { abi: t, address: r, args: n, docsPath: s, functionName: a, sender: o }) {
8543
- const i = e instanceof ou ? e : e instanceof z ? e.walk((y) => "data" in y) || e.walk() : {}, { code: c, data: l, details: u, message: d, shortMessage: f } = i, m = e instanceof Qi ? new _E({ functionName: a }) : [LE, ta.code].includes(c) && (l || u || d || f) || c === xs.code && u === "execution reverted" && l ? new Sp({
8542
+ function na(e, { abi: t, address: r, args: n, docsPath: s, functionName: a, sender: o }) {
8543
+ const i = e instanceof ou ? e : e instanceof z ? e.walk((y) => "data" in y) || e.walk() : {}, { code: c, data: l, details: u, message: d, shortMessage: f } = i, m = e instanceof Qi ? new _E({ functionName: a }) : [LE, ra.code].includes(c) && (l || u || d || f) || c === xs.code && u === "execution reverted" && l ? new Sp({
8544
8544
  abi: t,
8545
8545
  data: typeof l == "object" ? l.data : l,
8546
8546
  functionName: a,
@@ -8976,14 +8976,14 @@ function $f(e) {
8976
8976
  }
8977
8977
  return t;
8978
8978
  }
8979
- const ZE = 2n ** 16n - 1n, na = 2n ** 256n - 1n;
8979
+ const ZE = 2n ** 16n - 1n, sa = 2n ** 256n - 1n;
8980
8980
  function fn(e) {
8981
8981
  const { account: t, maxFeePerGas: r, maxPriorityFeePerGas: n, to: s } = e, a = t ? Qe(t) : void 0;
8982
8982
  if (a && !ct(a.address))
8983
8983
  throw new At({ address: a.address });
8984
8984
  if (s && !ct(s))
8985
8985
  throw new At({ address: s });
8986
- if (r && r > na)
8986
+ if (r && r > sa)
8987
8987
  throw new ws({ maxFeePerGas: r });
8988
8988
  if (n && r && n > r)
8989
8989
  throw new fo({ maxFeePerGas: r, maxPriorityFeePerGas: n });
@@ -9226,7 +9226,7 @@ class Dy extends Pf {
9226
9226
  super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = t, this.outputLen = r, this.padOffset = n, this.isLE = s, this.buffer = new Uint8Array(t), this.view = ld(this.buffer);
9227
9227
  }
9228
9228
  update(t) {
9229
- co(this), t = ru(t), Js(t);
9229
+ co(this), t = ru(t), ea(t);
9230
9230
  const { view: r, buffer: n, blockLen: s } = this, a = t.length;
9231
9231
  for (let o = 0; o < a; ) {
9232
9232
  const i = Math.min(s - this.pos, a - o);
@@ -9650,7 +9650,7 @@ function du(e, { docsPath: t, ...r }) {
9650
9650
  ...r
9651
9651
  });
9652
9652
  }
9653
- async function ks(e) {
9653
+ async function Cs(e) {
9654
9654
  const t = await e.request({
9655
9655
  method: "eth_chainId"
9656
9656
  }, { dedupe: !0 });
@@ -9661,7 +9661,7 @@ async function Qf(e, t) {
9661
9661
  const { account: r = e.account, accessList: n, authorizationList: s, chain: a = e.chain, blobVersionedHashes: o, blobs: i, data: c, gas: l, gasPrice: u, maxFeePerBlobGas: d, maxFeePerGas: f, maxPriorityFeePerGas: m, nonce: y, nonceManager: g, to: E, type: v, value: w, ...A } = t, C = await (async () => {
9662
9662
  if (!r || !g || typeof y < "u")
9663
9663
  return y;
9664
- const B = Qe(r), D = a ? a.id : await ne(e, ks, "getChainId")({});
9664
+ const B = Qe(r), D = a ? a.id : await ne(e, Cs, "getChainId")({});
9665
9665
  return await g.consume({
9666
9666
  address: B.address,
9667
9667
  chainId: D,
@@ -9749,7 +9749,7 @@ async function ac(e, t) {
9749
9749
  })();
9750
9750
  let c;
9751
9751
  async function l() {
9752
- return c || (typeof r.chainId < "u" ? r.chainId : s ? s.id : (c = await ne(e, ks, "getChainId")({}), c));
9752
+ return c || (typeof r.chainId < "u" ? r.chainId : s ? s.id : (c = await ne(e, Cs, "getChainId")({}), c));
9753
9753
  }
9754
9754
  const u = n && Qe(n);
9755
9755
  let d = r.nonce;
@@ -9942,7 +9942,7 @@ async function bk(e, t) {
9942
9942
  });
9943
9943
  } catch (l) {
9944
9944
  const u = i.account ? Qe(i.account) : void 0;
9945
- throw ra(l, {
9945
+ throw na(l, {
9946
9946
  abi: r,
9947
9947
  address: n,
9948
9948
  args: s,
@@ -10225,7 +10225,7 @@ function Ml(e) {
10225
10225
  }
10226
10226
  return n;
10227
10227
  }
10228
- function Ks(e) {
10228
+ function Ys(e) {
10229
10229
  return Wy(Si(e));
10230
10230
  }
10231
10231
  function Ky(e) {
@@ -10563,15 +10563,15 @@ function Ok(...e) {
10563
10563
  return r;
10564
10564
  }
10565
10565
  function o0(e) {
10566
- return e instanceof Uint8Array ? e : typeof e == "string" ? Cs(e) : Dk(e);
10566
+ return e instanceof Uint8Array ? e : typeof e == "string" ? Ts(e) : Dk(e);
10567
10567
  }
10568
10568
  function Dk(e) {
10569
10569
  return e instanceof Uint8Array ? e : new Uint8Array(e);
10570
10570
  }
10571
- function Cs(e, t = {}) {
10571
+ function Ts(e, t = {}) {
10572
10572
  const { size: r } = t;
10573
10573
  let n = e;
10574
- r && (mu(e, r), n = aa(e, r));
10574
+ r && (mu(e, r), n = oa(e, r));
10575
10575
  let s = n.slice(2);
10576
10576
  s.length % 2 && (s = `0${s}`);
10577
10577
  const a = s.length / 2, o = new Uint8Array(a);
@@ -10702,14 +10702,14 @@ function hu(e) {
10702
10702
  }
10703
10703
  function rg(e, t = {}) {
10704
10704
  const r = `0x${Number(e)}`;
10705
- return typeof t.size == "number" ? (mu(r, t.size), sa(r, t.size)) : r;
10705
+ return typeof t.size == "number" ? (mu(r, t.size), aa(r, t.size)) : r;
10706
10706
  }
10707
10707
  function Ft(e, t = {}) {
10708
10708
  let r = "";
10709
10709
  for (let s = 0; s < e.length; s++)
10710
10710
  r += Wk[e[s]];
10711
10711
  const n = `0x${r}`;
10712
- return typeof t.size == "number" ? (mu(n, t.size), aa(n, t.size)) : n;
10712
+ return typeof t.size == "number" ? (mu(n, t.size), oa(n, t.size)) : n;
10713
10713
  }
10714
10714
  function Y(e, t = {}) {
10715
10715
  const { signed: r, size: n } = t, s = BigInt(e);
@@ -10727,15 +10727,15 @@ function Y(e, t = {}) {
10727
10727
  });
10728
10728
  }
10729
10729
  const c = `0x${(r && s < 0 ? BigInt.asUintN(n * 8, BigInt(s)) : s).toString(16)}`;
10730
- return n ? sa(c, n) : c;
10730
+ return n ? aa(c, n) : c;
10731
10731
  }
10732
10732
  function uc(e, t = {}) {
10733
10733
  return Ft(Vk.encode(e), t);
10734
10734
  }
10735
- function sa(e, t) {
10735
+ function aa(e, t) {
10736
10736
  return Qy(e, { dir: "left", size: t });
10737
10737
  }
10738
- function aa(e, t) {
10738
+ function oa(e, t) {
10739
10739
  return Qy(e, { dir: "right", size: t });
10740
10740
  }
10741
10741
  function ng(e) {
@@ -10768,7 +10768,7 @@ function Ii(e, t = {}) {
10768
10768
  }
10769
10769
  function sg(e, t = {}) {
10770
10770
  const { size: r } = t;
10771
- let n = Cs(e);
10771
+ let n = Ts(e);
10772
10772
  return r && (wo(n, r), n = tg(n)), new TextDecoder().decode(n);
10773
10773
  }
10774
10774
  function _r(e, t = {}) {
@@ -11592,7 +11592,7 @@ async function yu(e, t) {
11592
11592
  });
11593
11593
  return ie === "0x" ? { data: void 0 } : { data: ie };
11594
11594
  } catch (U) {
11595
- const F = i7(U), { offchainLookup: R, offchainLookupSignature: L } = await import("./ccip-Bbstvrm5.js");
11595
+ const F = i7(U), { offchainLookup: R, offchainLookupSignature: L } = await import("./ccip-21rGv2Oe.js");
11596
11596
  if (e.ccipRead !== !1 && (F == null ? void 0 : F.slice(0, 10)) === L && C)
11597
11597
  return { data: await R(e, { data: F, to: C }) };
11598
11598
  throw S && (F == null ? void 0 : F.slice(0, 10)) === "0x101bb98d" ? new ME({ factory: f }) : c0(U, {
@@ -11703,7 +11703,7 @@ async function Hr(e, t) {
11703
11703
  data: c || "0x"
11704
11704
  });
11705
11705
  } catch (c) {
11706
- throw ra(c, {
11706
+ throw na(c, {
11707
11707
  abi: r,
11708
11708
  address: n,
11709
11709
  args: s,
@@ -11740,7 +11740,7 @@ async function c7(e, t) {
11740
11740
  }
11741
11741
  };
11742
11742
  } catch (u) {
11743
- throw ra(u, {
11743
+ throw na(u, {
11744
11744
  abi: r,
11745
11745
  address: n,
11746
11746
  args: s,
@@ -12007,7 +12007,7 @@ class qn extends z {
12007
12007
  });
12008
12008
  }
12009
12009
  }
12010
- class Ys extends z {
12010
+ class Zs extends z {
12011
12011
  constructor({ docsPath: t, metaMessages: r, type: n }) {
12012
12012
  super(`Account type "${n}" is not supported.`, {
12013
12013
  docsPath: t,
@@ -12051,7 +12051,7 @@ async function wu(e, t) {
12051
12051
  })();
12052
12052
  if ((v == null ? void 0 : v.type) === "json-rpc" || v === null) {
12053
12053
  let T;
12054
- n !== null && (T = await ne(e, ks, "getChainId")({}), u0({
12054
+ n !== null && (T = await ne(e, Cs, "getChainId")({}), u0({
12055
12055
  currentChainId: T,
12056
12056
  chain: n
12057
12057
  }));
@@ -12121,18 +12121,18 @@ async function wu(e, t) {
12121
12121
  serializedTransaction: b
12122
12122
  });
12123
12123
  }
12124
- throw (v == null ? void 0 : v.type) === "smart" ? new Ys({
12124
+ throw (v == null ? void 0 : v.type) === "smart" ? new Zs({
12125
12125
  metaMessages: [
12126
12126
  "Consider using the `sendUserOperation` Action instead."
12127
12127
  ],
12128
12128
  docsPath: "/docs/actions/bundler/sendUserOperation",
12129
12129
  type: "smart"
12130
- }) : new Ys({
12130
+ }) : new Zs({
12131
12131
  docsPath: "/docs/actions/wallet/sendTransaction",
12132
12132
  type: v == null ? void 0 : v.type
12133
12133
  });
12134
12134
  } catch (N) {
12135
- throw N instanceof Ys ? N : du(N, {
12135
+ throw N instanceof Zs ? N : du(N, {
12136
12136
  ...t,
12137
12137
  account: v,
12138
12138
  chain: t.chain || void 0
@@ -12162,7 +12162,7 @@ async function Pi(e, t) {
12162
12162
  ...f
12163
12163
  });
12164
12164
  } catch (g) {
12165
- throw ra(g, {
12165
+ throw na(g, {
12166
12166
  abi: o,
12167
12167
  address: c,
12168
12168
  args: l,
@@ -12441,14 +12441,14 @@ function f0(e) {
12441
12441
  return t instanceof Sp ? ((r = t.data) == null ? void 0 : r.errorName) === "HttpError" || ((n = t.data) == null ? void 0 : n.errorName) === "ResolverError" || ((s = t.data) == null ? void 0 : s.errorName) === "ResolverNotContract" || ((a = t.data) == null ? void 0 : a.errorName) === "ResolverNotFound" || ((o = t.data) == null ? void 0 : o.errorName) === "ReverseAddressMismatch" || ((i = t.data) == null ? void 0 : i.errorName) === "UnsupportedResolverProfile" : !1;
12442
12442
  }
12443
12443
  function g7(e) {
12444
- const { abi: t, data: r } = e, n = ea(r, 0, 4), s = t.find((a) => a.type === "function" && n === ec($r(a)));
12444
+ const { abi: t, data: r } = e, n = ta(r, 0, 4), s = t.find((a) => a.type === "function" && n === ec($r(a)));
12445
12445
  if (!s)
12446
12446
  throw new tv(n, {
12447
12447
  docsPath: "/docs/contract/decodeFunctionData"
12448
12448
  });
12449
12449
  return {
12450
12450
  functionName: s.name,
12451
- args: "inputs" in s && s.inputs && s.inputs.length > 0 ? rc(s.inputs, ea(r, 4)) : void 0
12451
+ args: "inputs" in s && s.inputs && s.inputs.length > 0 ? rc(s.inputs, ta(r, 4)) : void 0
12452
12452
  };
12453
12453
  }
12454
12454
  const wd = "/docs/contract/encodeErrorResult";
@@ -12535,7 +12535,7 @@ function Gp(e) {
12535
12535
  return Et(t);
12536
12536
  const r = e.split(".");
12537
12537
  for (let n = r.length - 1; n >= 0; n -= 1) {
12538
- const s = Cg(r[n]), a = s ? Rn(s) : Ot(qs(r[n]), "bytes");
12538
+ const s = Cg(r[n]), a = s ? Rn(s) : Ot(Ks(r[n]), "bytes");
12539
12539
  t = Ot(Pr([t, a]), "bytes");
12540
12540
  }
12541
12541
  return Et(t);
@@ -12545,18 +12545,18 @@ function E7(e) {
12545
12545
  }
12546
12546
  function k7(e) {
12547
12547
  const t = new Uint8Array(32).fill(0);
12548
- return e ? Cg(e) || Ot(qs(e)) : Et(t);
12548
+ return e ? Cg(e) || Ot(Ks(e)) : Et(t);
12549
12549
  }
12550
12550
  function m0(e) {
12551
12551
  const t = e.replace(/^\.|\.$/gm, "");
12552
12552
  if (t.length === 0)
12553
12553
  return new Uint8Array(1);
12554
- const r = new Uint8Array(qs(t).byteLength + 2);
12554
+ const r = new Uint8Array(Ks(t).byteLength + 2);
12555
12555
  let n = 0;
12556
12556
  const s = t.split(".");
12557
12557
  for (let a = 0; a < s.length; a++) {
12558
- let o = qs(s[a]);
12559
- o.byteLength > 255 && (o = qs(E7(k7(s[a])))), r[n] = o.length, r.set(o, n + 1), n += o.length + 1;
12558
+ let o = Ks(s[a]);
12559
+ o.byteLength > 255 && (o = Ks(E7(k7(s[a])))), r[n] = o.length, r.set(o, n + 1), n += o.length + 1;
12560
12560
  }
12561
12561
  return r.byteLength !== n + 1 ? r.slice(0, n + 1) : r;
12562
12562
  }
@@ -13144,7 +13144,7 @@ function X7(e) {
13144
13144
  if (t.length === 0)
13145
13145
  throw new Gy();
13146
13146
  for (const r of t) {
13147
- const n = ut(r), s = pr(ea(r, 0, 1));
13147
+ const n = ut(r), s = pr(ta(r, 0, 1));
13148
13148
  if (n !== 32)
13149
13149
  throw new fk({ hash: r, size: n });
13150
13150
  if (s !== Hy)
@@ -13162,7 +13162,7 @@ function y0(e) {
13162
13162
  throw new vo({ chainId: t });
13163
13163
  if (s && !ct(s))
13164
13164
  throw new At({ address: s });
13165
- if (n && n > na)
13165
+ if (n && n > sa)
13166
13166
  throw new ws({ maxFeePerGas: n });
13167
13167
  if (r && n && r > n)
13168
13168
  throw new fo({ maxFeePerGas: n, maxPriorityFeePerGas: r });
@@ -13175,7 +13175,7 @@ function Q7(e) {
13175
13175
  throw new At({ address: a });
13176
13176
  if (r || s)
13177
13177
  throw new z("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");
13178
- if (n && n > na)
13178
+ if (n && n > sa)
13179
13179
  throw new ws({ maxFeePerGas: n });
13180
13180
  }
13181
13181
  function J7(e) {
@@ -13186,7 +13186,7 @@ function J7(e) {
13186
13186
  throw new vo({ chainId: t });
13187
13187
  if (r || s)
13188
13188
  throw new z("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");
13189
- if (n && n > na)
13189
+ if (n && n > sa)
13190
13190
  throw new ws({ maxFeePerGas: n });
13191
13191
  }
13192
13192
  function pc(e) {
@@ -13394,11 +13394,11 @@ function cC(e, t = {}) {
13394
13394
  ...n
13395
13395
  }, { method: l } = r;
13396
13396
  if ((d = a == null ? void 0 : a.exclude) != null && d.includes(l))
13397
- throw new Us(new Error("method not supported"), {
13397
+ throw new Os(new Error("method not supported"), {
13398
13398
  method: l
13399
13399
  });
13400
13400
  if (a != null && a.include && !a.include.includes(l))
13401
- throw new Us(new Error("method not supported"), {
13401
+ throw new Os(new Error("method not supported"), {
13402
13402
  method: l
13403
13403
  });
13404
13404
  const u = s ? io(`${c}.${St(r)}`) : void 0;
@@ -13421,8 +13421,8 @@ function cC(e, t = {}) {
13421
13421
  case di.code:
13422
13422
  throw new di(m);
13423
13423
  // -32603
13424
- case ta.code:
13425
- throw new ta(m);
13424
+ case ra.code:
13425
+ throw new ra(m);
13426
13426
  // -32000
13427
13427
  case xs.code:
13428
13428
  throw new xs(m);
@@ -13436,8 +13436,8 @@ function cC(e, t = {}) {
13436
13436
  case mi.code:
13437
13437
  throw new mi(m);
13438
13438
  // -32004
13439
- case Us.code:
13440
- throw new Us(m, {
13439
+ case Os.code:
13440
+ throw new Os(m, {
13441
13441
  method: r.method
13442
13442
  });
13443
13443
  // -32005
@@ -13509,7 +13509,7 @@ function cC(e, t = {}) {
13509
13509
  };
13510
13510
  }
13511
13511
  function lC(e) {
13512
- return "code" in e && typeof e.code == "number" ? e.code === -1 || e.code === lo.code || e.code === ta.code : e instanceof Qo && 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;
13512
+ return "code" in e && typeof e.code == "number" ? e.code === -1 || e.code === lo.code || e.code === ra.code : e instanceof Qo && 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;
13513
13513
  }
13514
13514
  function p(e) {
13515
13515
  const t = {
@@ -13919,7 +13919,7 @@ function Lg(e) {
13919
13919
  };
13920
13920
  }
13921
13921
  function FC(e, t = {}) {
13922
- return Cs(g0(e, t));
13922
+ return Ts(g0(e, t));
13923
13923
  }
13924
13924
  function g0(e, t = {}) {
13925
13925
  Ng(e);
@@ -14265,7 +14265,7 @@ function ZC(e, t) {
14265
14265
  const { checksum: r = !1 } = t;
14266
14266
  return Gr(e, { strict: r }), {
14267
14267
  dynamic: !1,
14268
- encoded: sa(e.toLowerCase())
14268
+ encoded: aa(e.toLowerCase())
14269
14269
  };
14270
14270
  }
14271
14271
  function XC(e, t) {
@@ -14309,9 +14309,9 @@ function QC(e, { type: t }) {
14309
14309
  const [, r] = t.split("bytes"), n = yt(e);
14310
14310
  if (!r) {
14311
14311
  let s = e;
14312
- return n % 32 !== 0 && (s = aa(s, Math.ceil((e.length - 2) / 2 / 32) * 32)), {
14312
+ return n % 32 !== 0 && (s = oa(s, Math.ceil((e.length - 2) / 2 / 32) * 32)), {
14313
14313
  dynamic: !0,
14314
- encoded: ft(sa(Y(n, { size: 32 })), s)
14314
+ encoded: ft(aa(Y(n, { size: 32 })), s)
14315
14315
  };
14316
14316
  }
14317
14317
  if (n !== Number.parseInt(r, 10))
@@ -14319,12 +14319,12 @@ function QC(e, { type: t }) {
14319
14319
  expectedSize: Number.parseInt(r, 10),
14320
14320
  value: e
14321
14321
  });
14322
- return { dynamic: !1, encoded: aa(e) };
14322
+ return { dynamic: !1, encoded: oa(e) };
14323
14323
  }
14324
14324
  function JC(e) {
14325
14325
  if (typeof e != "boolean")
14326
14326
  throw new oe(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);
14327
- return { dynamic: !1, encoded: sa(rg(e)) };
14327
+ return { dynamic: !1, encoded: aa(rg(e)) };
14328
14328
  }
14329
14329
  function e9(e, { signed: t, size: r }) {
14330
14330
  if (typeof r == "number") {
@@ -14349,10 +14349,10 @@ function e9(e, { signed: t, size: r }) {
14349
14349
  function t9(e) {
14350
14350
  const t = uc(e), r = Math.ceil(yt(t) / 32), n = [];
14351
14351
  for (let s = 0; s < r; s++)
14352
- n.push(aa(Pe(t, s * 32, (s + 1) * 32)));
14352
+ n.push(oa(Pe(t, s * 32, (s + 1) * 32)));
14353
14353
  return {
14354
14354
  dynamic: !0,
14355
- encoded: ft(aa(Y(yt(t), { size: 32 })), ...n)
14355
+ encoded: ft(oa(Y(yt(t), { size: 32 })), ...n)
14356
14356
  };
14357
14357
  }
14358
14358
  function r9(e, t) {
@@ -14549,7 +14549,7 @@ class a9 extends oe {
14549
14549
  }
14550
14550
  }
14551
14551
  function o9(e, t, r = {}) {
14552
- const { as: n = "Array", checksumAddress: s = !1 } = r, a = typeof t == "string" ? Cs(t) : t, o = k0(a);
14552
+ const { as: n = "Array", checksumAddress: s = !1 } = r, a = typeof t == "string" ? Ts(t) : t, o = k0(a);
14553
14553
  if (Fa(a) === 0 && e.length > 0)
14554
14554
  throw new c9();
14555
14555
  if (Fa(a) && Fa(a) < 32)
@@ -14602,14 +14602,14 @@ function Wp(e, t) {
14602
14602
  function t(r, n, s = !1) {
14603
14603
  if (r === "address") {
14604
14604
  const c = n;
14605
- return Gr(c), sa(c.toLowerCase(), s ? 32 : 0);
14605
+ return Gr(c), aa(c.toLowerCase(), s ? 32 : 0);
14606
14606
  }
14607
14607
  if (r === "string")
14608
14608
  return uc(n);
14609
14609
  if (r === "bytes")
14610
14610
  return n;
14611
14611
  if (r === "bool")
14612
- return sa(rg(n), s ? 32 : 1);
14612
+ return aa(rg(n), s ? 32 : 1);
14613
14613
  const a = r.match(zg);
14614
14614
  if (a) {
14615
14615
  const [c, l, u = "256"] = a, d = Number.parseInt(u, 10) / 8;
@@ -14626,7 +14626,7 @@ function Wp(e, t) {
14626
14626
  expectedSize: Number.parseInt(l, 10),
14627
14627
  value: n
14628
14628
  });
14629
- return aa(n, s ? 32 : 0);
14629
+ return oa(n, s ? 32 : 0);
14630
14630
  }
14631
14631
  const i = r.match(zC);
14632
14632
  if (i && Array.isArray(n)) {
@@ -14730,7 +14730,7 @@ function p9(e, t) {
14730
14730
  if (typeof e == "string") {
14731
14731
  if (e.length > 3 && e.length % 2 !== 0)
14732
14732
  throw new Kk(e);
14733
- return Cs(e);
14733
+ return Ts(e);
14734
14734
  }
14735
14735
  return e;
14736
14736
  })(), s = k0(n, {
@@ -14793,7 +14793,7 @@ function b9(e) {
14793
14793
  };
14794
14794
  }
14795
14795
  function y9(e) {
14796
- const t = typeof e == "string" ? Cs(e) : e, r = Wg(t.length);
14796
+ const t = typeof e == "string" ? Ts(e) : e, r = Wg(t.length);
14797
14797
  return {
14798
14798
  length: t.length === 1 && t[0] < 128 ? 1 : t.length <= 55 ? 1 + t.length : 1 + r + t.length,
14799
14799
  encode(s) {
@@ -14832,7 +14832,7 @@ class qg extends Pf {
14832
14832
  return co(this), this.iHash.update(t), this;
14833
14833
  }
14834
14834
  digestInto(t) {
14835
- co(this), Js(t, this.outputLen), this.finished = !0, this.iHash.digestInto(t), this.oHash.update(t), this.oHash.digestInto(t), this.destroy();
14835
+ co(this), ea(t, this.outputLen), this.finished = !0, this.iHash.digestInto(t), this.oHash.update(t), this.oHash.digestInto(t), this.destroy();
14836
14836
  }
14837
14837
  digest() {
14838
14838
  const t = new Uint8Array(this.oHash.outputLen);
@@ -14853,7 +14853,7 @@ class qg extends Pf {
14853
14853
  const Kg = (e, t, r) => new qg(e, t).update(r).digest();
14854
14854
  Kg.create = (e, t) => new qg(e, t);
14855
14855
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
14856
- const tr = BigInt(0), qt = BigInt(1), Os = /* @__PURE__ */ BigInt(2), g9 = /* @__PURE__ */ BigInt(3), Yg = /* @__PURE__ */ BigInt(4), Zg = /* @__PURE__ */ BigInt(5), Xg = /* @__PURE__ */ BigInt(8);
14856
+ const tr = BigInt(0), qt = BigInt(1), Ds = /* @__PURE__ */ BigInt(2), g9 = /* @__PURE__ */ BigInt(3), Yg = /* @__PURE__ */ BigInt(4), Zg = /* @__PURE__ */ BigInt(5), Xg = /* @__PURE__ */ BigInt(8);
14857
14857
  function er(e, t) {
14858
14858
  const r = e % t;
14859
14859
  return r >= tr ? r : t + r;
@@ -14885,7 +14885,7 @@ function Qg(e, t) {
14885
14885
  return n;
14886
14886
  }
14887
14887
  function x9(e, t) {
14888
- const r = (e.ORDER - Zg) / Xg, n = e.mul(t, Os), s = e.pow(n, r), a = e.mul(t, s), o = e.mul(e.mul(a, Os), s), i = e.mul(a, e.sub(o, e.ONE));
14888
+ const r = (e.ORDER - Zg) / Xg, n = e.mul(t, Ds), s = e.pow(n, r), a = e.mul(t, s), o = e.mul(e.mul(a, Ds), s), i = e.mul(a, e.sub(o, e.ONE));
14889
14889
  if (!e.eql(e.sqr(i), t))
14890
14890
  throw new Error("Cannot find square root");
14891
14891
  return i;
@@ -14894,9 +14894,9 @@ function w9(e) {
14894
14894
  if (e < BigInt(3))
14895
14895
  throw new Error("sqrt is not defined for small field");
14896
14896
  let t = e - qt, r = 0;
14897
- for (; t % Os === tr; )
14898
- t /= Os, r++;
14899
- let n = Os;
14897
+ for (; t % Ds === tr; )
14898
+ t /= Ds, r++;
14899
+ let n = Ds;
14900
14900
  const s = To(e);
14901
14901
  for (; t1(s, n) === 1; )
14902
14902
  if (n++ > 1e3)
@@ -14904,7 +14904,7 @@ function w9(e) {
14904
14904
  if (r === 1)
14905
14905
  return Qg;
14906
14906
  let a = s.pow(n, t);
14907
- const o = (t + qt) / Os;
14907
+ const o = (t + qt) / Ds;
14908
14908
  return function(c, l) {
14909
14909
  if (c.is0(l))
14910
14910
  return l;
@@ -14972,7 +14972,7 @@ function Jg(e, t, r = !1) {
14972
14972
  return t.reduceRight((o, i, c) => e.is0(i) ? o : (n[c] = e.mul(o, n[c]), e.mul(o, i)), a), n;
14973
14973
  }
14974
14974
  function t1(e, t) {
14975
- const r = (e.ORDER - qt) / Os, n = e.pow(t, r), s = e.eql(n, e.ONE), a = e.eql(n, e.ZERO), o = e.eql(n, e.neg(e.ONE));
14975
+ const r = (e.ORDER - qt) / Ds, n = e.pow(t, r), s = e.eql(n, e.ONE), a = e.eql(n, e.ZERO), o = e.eql(n, e.neg(e.ONE));
14976
14976
  if (!s && !a && !o)
14977
14977
  throw new Error("invalid Legendre symbol result");
14978
14978
  return s ? 1 : a ? 0 : -1;
@@ -15024,7 +15024,7 @@ function To(e, t, r = !1, n = {}) {
15024
15024
  fromBytes: (c) => {
15025
15025
  if (c.length !== a)
15026
15026
  throw new Error("Field.fromBytes: expected " + a + " bytes, got " + c.length);
15027
- return r ? Ky(c) : Ks(c);
15027
+ return r ? Ky(c) : Ys(c);
15028
15028
  },
15029
15029
  // TODO: we don't need it here, move out to separate fn
15030
15030
  invertBatch: (c) => Jg(i, c),
@@ -15048,7 +15048,7 @@ function T9(e, t, r = !1) {
15048
15048
  const n = e.length, s = t6(t), a = r6(t);
15049
15049
  if (n < 16 || n < a || n > 1024)
15050
15050
  throw new Error("expected " + a + "-1024 bytes of input, got " + n);
15051
- const o = r ? Ky(e) : Ks(e), i = er(o, t - qt) + qt;
15051
+ const o = r ? Ky(e) : Ys(e), i = er(o, t - qt) + qt;
15052
15052
  return r ? Yy(i, s) : cc(i, s);
15053
15053
  }
15054
15054
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
@@ -15327,7 +15327,7 @@ const Sn = {
15327
15327
  throw new t("invalid signature integer: negative");
15328
15328
  if (e[0] === 0 && !(e[1] & 128))
15329
15329
  throw new t("invalid signature integer: unnecessary leading zero");
15330
- return Ks(e);
15330
+ return Ys(e);
15331
15331
  }
15332
15332
  },
15333
15333
  toSig(e) {
@@ -15383,7 +15383,7 @@ function O9(e) {
15383
15383
  }
15384
15384
  let h;
15385
15385
  try {
15386
- h = typeof A == "bigint" ? A : Ks(kr("private key", A, O));
15386
+ h = typeof A == "bigint" ? A : Ys(kr("private key", A, O));
15387
15387
  } catch {
15388
15388
  throw new Error("invalid private key, expected hex or " + O + " bytes, got " + typeof A);
15389
15389
  }
@@ -15650,7 +15650,7 @@ function _9(e) {
15650
15650
  fromBytes(k) {
15651
15651
  const I = k.length, U = k[0], F = k.subarray(1);
15652
15652
  if (I === o && (U === 2 || U === 3)) {
15653
- const R = Ks(F);
15653
+ const R = Ys(F);
15654
15654
  if (!a0(R, Bt, r.ORDER))
15655
15655
  throw new Error("Point is not on curve");
15656
15656
  const L = f(R);
@@ -15679,7 +15679,7 @@ function _9(e) {
15679
15679
  function g(k) {
15680
15680
  return y(k) ? c(-k) : k;
15681
15681
  }
15682
- const E = (k, I, U) => Ks(k.slice(I, U));
15682
+ const E = (k, I, U) => Ys(k.slice(I, U));
15683
15683
  class v {
15684
15684
  constructor(I, U, F) {
15685
15685
  Na("r", I, Bt, n), Na("s", U, Bt, n), this.r = I, this.s = U, F != null && (this.recovery = F), Object.freeze(this);
@@ -15790,7 +15790,7 @@ function _9(e) {
15790
15790
  const N = t.bits2int || function(k) {
15791
15791
  if (k.length > 8192)
15792
15792
  throw new Error("input is too large");
15793
- const I = Ks(k), U = k.length * 8 - a;
15793
+ const I = Ys(k), U = k.length * 8 - a;
15794
15794
  return U > 0 ? I >> BigInt(U) : I;
15795
15795
  }, T = t.bits2int_modN || function(k) {
15796
15796
  return c(N(k));
@@ -16315,7 +16315,7 @@ async function mT(e, t) {
16315
16315
  }
16316
16316
  ];
16317
16317
  } catch (h) {
16318
- const b = ra(h, {
16318
+ const b = na(h, {
16319
16319
  abi: C,
16320
16320
  address: O,
16321
16321
  args: N,
@@ -16376,7 +16376,7 @@ async function mT(e, t) {
16376
16376
  });
16377
16377
  v.push(s ? { result: D, status: "success" } : D);
16378
16378
  } catch (D) {
16379
- const k = ra(D, {
16379
+ const k = na(D, {
16380
16380
  abi: x,
16381
16381
  address: S,
16382
16382
  args: B,
@@ -16434,7 +16434,7 @@ async function Xp(e, t) {
16434
16434
  return;
16435
16435
  let P;
16436
16436
  if (((B = y.error) == null ? void 0 : B.data) === "0x" ? P = new Qi() : y.error && (P = new ou(y.error)), !!P)
16437
- return ra(P, {
16437
+ return na(P, {
16438
16438
  abi: E ?? [],
16439
16439
  address: A ?? "0x",
16440
16440
  args: v,
@@ -16915,7 +16915,7 @@ async function hc(e, t) {
16915
16915
  return !0;
16916
16916
  } catch {
16917
16917
  }
16918
- if (f instanceof oa)
16918
+ if (f instanceof ia)
16919
16919
  return !1;
16920
16920
  throw f;
16921
16921
  }
@@ -16947,7 +16947,7 @@ async function BT(e, t) {
16947
16947
  address: r,
16948
16948
  authorization: f
16949
16949
  }))
16950
- throw new oa();
16950
+ throw new ia();
16951
16951
  const y = await ne(e, Hr, "readContract")({
16952
16952
  ...o ? { address: o } : { code: i0 },
16953
16953
  authorizationList: [f],
@@ -16978,7 +16978,7 @@ async function BT(e, t) {
16978
16978
  }), g = (E = y[y.length - 1]) == null ? void 0 : E.returnData;
16979
16979
  if (g != null && g.startsWith("0x1626ba7e"))
16980
16980
  return !0;
16981
- throw new oa();
16981
+ throw new ia();
16982
16982
  }
16983
16983
  async function FT(e, t) {
16984
16984
  const { address: r, factory: n, factoryData: s, hash: a, signature: o, verifierAddress: i, ...c } = t, l = await (async () => !n && !s || ST(o) ? o : AT({
@@ -17001,11 +17001,11 @@ async function FT(e, t) {
17001
17001
  }),
17002
17002
  ...c
17003
17003
  }, { data: d } = await ne(e, yu, "call")(u).catch((f) => {
17004
- throw f instanceof Ty ? new oa() : f;
17004
+ throw f instanceof Ty ? new ia() : f;
17005
17005
  });
17006
17006
  if (pv(d ?? "0x0"))
17007
17007
  return !0;
17008
- throw new oa();
17008
+ throw new ia();
17009
17009
  }
17010
17010
  async function UT(e, t) {
17011
17011
  const { address: r, blockNumber: n, blockTag: s, hash: a, signature: o } = t;
@@ -17017,12 +17017,12 @@ async function UT(e, t) {
17017
17017
  blockTag: s,
17018
17018
  functionName: "isValidSignature"
17019
17019
  }).catch((c) => {
17020
- throw c instanceof Ay ? new oa() : c;
17020
+ throw c instanceof Ay ? new ia() : c;
17021
17021
  })).startsWith("0x1626ba7e"))
17022
17022
  return !0;
17023
- throw new oa();
17023
+ throw new ia();
17024
17024
  }
17025
- let oa = class extends Error {
17025
+ let ia = class extends Error {
17026
17026
  };
17027
17027
  async function OT(e, { address: t, message: r, factory: n, factoryData: s, signature: a, ...o }) {
17028
17028
  const i = Fg(r);
@@ -17552,7 +17552,7 @@ function GT(e) {
17552
17552
  getBlockNumber: (t) => dc(e, t),
17553
17553
  getBlockTransactionCount: (t) => G7(e, t),
17554
17554
  getBytecode: (t) => zl(e, t),
17555
- getChainId: () => ks(e),
17555
+ getChainId: () => Cs(e),
17556
17556
  getCode: (t) => zl(e, t),
17557
17557
  getContractEvents: (t) => Vy(e, t),
17558
17558
  getEip712Domain: (t) => V7(e, t),
@@ -17663,7 +17663,7 @@ async function g6(e, t) {
17663
17663
  chainId: n,
17664
17664
  nonce: s
17665
17665
  };
17666
- return typeof i.chainId > "u" && (i.chainId = ((c = e.chain) == null ? void 0 : c.id) ?? await ne(e, ks, "getChainId")({})), typeof i.nonce > "u" && (i.nonce = await ne(e, Wf, "getTransactionCount")({
17666
+ return typeof i.chainId > "u" && (i.chainId = ((c = e.chain) == null ? void 0 : c.id) ?? await ne(e, Cs, "getChainId")({})), typeof i.nonce > "u" && (i.nonce = await ne(e, Wf, "getTransactionCount")({
17667
17667
  address: a.address,
17668
17668
  blockTag: "pending"
17669
17669
  }), (o === "self" || o != null && o.address && oc(o.address, a.address)) && (i.nonce += 1)), i;
@@ -17708,7 +17708,7 @@ async function x6(e, t) {
17708
17708
  })();
17709
17709
  if ((C == null ? void 0 : C.type) === "json-rpc" || C === null) {
17710
17710
  let x;
17711
- n !== null && (x = await ne(e, ks, "getChainId")({}), u0({
17711
+ n !== null && (x = await ne(e, Cs, "getChainId")({}), u0({
17712
17712
  currentChainId: x,
17713
17713
  chain: n
17714
17714
  }));
@@ -17788,18 +17788,18 @@ async function x6(e, t) {
17788
17788
  throwOnReceiptRevert: g
17789
17789
  });
17790
17790
  }
17791
- throw (C == null ? void 0 : C.type) === "smart" ? new Ys({
17791
+ throw (C == null ? void 0 : C.type) === "smart" ? new Zs({
17792
17792
  metaMessages: [
17793
17793
  "Consider using the `sendUserOperation` Action instead."
17794
17794
  ],
17795
17795
  docsPath: "/docs/actions/bundler/sendUserOperation",
17796
17796
  type: "smart"
17797
- }) : new Ys({
17797
+ }) : new Zs({
17798
17798
  docsPath: "/docs/actions/wallet/sendTransactionSync",
17799
17799
  type: C == null ? void 0 : C.type
17800
17800
  });
17801
17801
  } catch (b) {
17802
- throw b instanceof Ys ? b : du(b, {
17802
+ throw b instanceof Zs ? b : du(b, {
17803
17803
  ...t,
17804
17804
  account: C,
17805
17805
  chain: t.chain || void 0
@@ -17821,7 +17821,7 @@ async function e4(e, t) {
17821
17821
  });
17822
17822
  const n = Qe(r);
17823
17823
  if (!n.signAuthorization)
17824
- throw new Ys({
17824
+ throw new Zs({
17825
17825
  docsPath: "/docs/eip7702/signAuthorization",
17826
17826
  metaMessages: [
17827
17827
  "The `signAuthorization` Action does not support JSON-RPC Accounts."
@@ -17857,7 +17857,7 @@ async function r4(e, t) {
17857
17857
  account: a,
17858
17858
  ...t
17859
17859
  });
17860
- const o = await ne(e, ks, "getChainId")({});
17860
+ const o = await ne(e, Cs, "getChainId")({});
17861
17861
  n !== null && u0({
17862
17862
  currentChainId: o,
17863
17863
  chain: n
@@ -17925,7 +17925,7 @@ function i4(e) {
17925
17925
  getAddresses: () => qT(e),
17926
17926
  getCallsStatus: (t) => wg(e, t),
17927
17927
  getCapabilities: (t) => KT(e, t),
17928
- getChainId: () => ks(e),
17928
+ getChainId: () => Cs(e),
17929
17929
  getPermissions: () => YT(e),
17930
17930
  prepareAuthorization: (t) => g6(e, t),
17931
17931
  prepareTransactionRequest: (t) => ac(e, t),
@@ -20839,7 +20839,7 @@ function FS(e, t) {
20839
20839
  cn(f)
20840
20840
  ]);
20841
20841
  }
20842
- const US = na;
20842
+ const US = sa;
20843
20843
  function OS(e) {
20844
20844
  const { chainId: t, maxPriorityFeePerGas: r, gasPrice: n, maxFeePerGas: s, to: a, feeCurrency: o } = e;
20845
20845
  if (t <= 0)
@@ -32003,7 +32003,7 @@ ku({
32003
32003
  const ZM = VM;
32004
32004
  function L6(e) {
32005
32005
  const { hash: t, payload: r, publicKey: n, signature: s } = e;
32006
- return ZM.verify(s, r instanceof Uint8Array ? r : Cs(r), g0(n).substring(2), ...t ? [{ prehash: !0, lowS: !0 }] : []);
32006
+ return ZM.verify(s, r instanceof Uint8Array ? r : Ts(r), g0(n).substring(2), ...t ? [{ prehash: !0, lowS: !0 }] : []);
32007
32007
  }
32008
32008
  const XM = /* @__PURE__ */ new TextEncoder();
32009
32009
  Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((e, t) => [t, e.charCodeAt(0)]);
@@ -32042,7 +32042,7 @@ Uint8Array.from([
32042
32042
  233
32043
32043
  ]);
32044
32044
  function JM(e) {
32045
- const { challenge: t, hash: r = !0, metadata: n, publicKey: s, signature: a } = e, { authenticatorData: o, challengeIndex: i, clientDataJSON: c, typeIndex: l, userVerificationRequired: u } = n, d = Cs(o);
32045
+ const { challenge: t, hash: r = !0, metadata: n, publicKey: s, signature: a } = e, { authenticatorData: o, challengeIndex: i, clientDataJSON: c, typeIndex: l, userVerificationRequired: u } = n, d = Ts(o);
32046
32046
  if (d.length < 37)
32047
32047
  return !1;
32048
32048
  const f = d[32];
@@ -32069,9 +32069,9 @@ function JM(e) {
32069
32069
  signature: a
32070
32070
  });
32071
32071
  }
32072
- const ef = "0x01", tf = "0x02", z6 = "0x03", Ds = "0x7777777777777777777777777777777777777777777777777777777777777777";
32072
+ const ef = "0x01", tf = "0x02", z6 = "0x03", _s = "0x7777777777777777777777777777777777777777777777777777777777777777";
32073
32073
  function Ao(e) {
32074
- const t = e.endsWith(Ds.slice(2)) ? Pe(e, 0, -yt(Ds)) : e;
32074
+ const t = e.endsWith(_s.slice(2)) ? Pe(e, 0, -yt(_s)) : e;
32075
32075
  if (yt(t) === 65) {
32076
32076
  const o = A0(t);
32077
32077
  return Cu(o), { signature: o, type: "secp256k1" };
@@ -32243,18 +32243,18 @@ function M0(e) {
32243
32243
  function Fu(e, t = {}) {
32244
32244
  const r = M0(e);
32245
32245
  if (r === "secp256k1")
32246
- return ft(j9(e.signature), t.magic ? Ds : "0x");
32246
+ return ft(j9(e.signature), t.magic ? _s : "0x");
32247
32247
  if (r === "p256") {
32248
32248
  const n = e;
32249
- return ft(ef, Y(n.signature.r, { size: 32 }), Y(n.signature.s, { size: 32 }), Y(n.publicKey.x, { size: 32 }), Y(n.publicKey.y, { size: 32 }), Y(n.prehash ? 1 : 0, { size: 1 }), t.magic ? Ds : "0x");
32249
+ return ft(ef, Y(n.signature.r, { size: 32 }), Y(n.signature.s, { size: 32 }), Y(n.publicKey.x, { size: 32 }), Y(n.publicKey.y, { size: 32 }), Y(n.prehash ? 1 : 0, { size: 1 }), t.magic ? _s : "0x");
32250
32250
  }
32251
32251
  if (r === "webAuthn") {
32252
32252
  const n = e, s = ft(n.metadata.authenticatorData, uc(n.metadata.clientDataJSON));
32253
- return ft(tf, s, Y(n.signature.r, { size: 32 }), Y(n.signature.s, { size: 32 }), Y(n.publicKey.x, { size: 32 }), Y(n.publicKey.y, { size: 32 }), t.magic ? Ds : "0x");
32253
+ return ft(tf, s, Y(n.signature.r, { size: 32 }), Y(n.signature.s, { size: 32 }), Y(n.publicKey.x, { size: 32 }), Y(n.publicKey.y, { size: 32 }), t.magic ? _s : "0x");
32254
32254
  }
32255
32255
  if (r === "keychain") {
32256
32256
  const n = e;
32257
- return ft(z6, n.userAddress, Fu(n.inner), t.magic ? Ds : "0x");
32257
+ return ft(z6, n.userAddress, Fu(n.inner), t.magic ? _s : "0x");
32258
32258
  }
32259
32259
  throw new Ui({ envelope: e });
32260
32260
  }
@@ -33045,7 +33045,7 @@ const z0 = {
33045
33045
  },
33046
33046
  async verifyHash(e, t) {
33047
33047
  const { address: r, hash: n, signature: s } = t;
33048
- if (typeof s == "string" && s.endsWith(Ds.slice(2))) {
33048
+ if (typeof s == "string" && s.endsWith(_s.slice(2))) {
33049
33049
  const a = Ao(s);
33050
33050
  if (a.type !== "keychain") {
33051
33051
  const o = await zl(e, {
@@ -36224,7 +36224,7 @@ function GL(e) {
36224
36224
  function jr(e) {
36225
36225
  return e instanceof Array || Object.prototype.toString.call(e) === "[object Array]";
36226
36226
  }
36227
- function Zs(e) {
36227
+ function Xs(e) {
36228
36228
  return e != null && Object.prototype.toString.call(e) === "[object Object]";
36229
36229
  }
36230
36230
  function He(e, t) {
@@ -36369,9 +36369,9 @@ function VL(e) {
36369
36369
  function of(e, t) {
36370
36370
  var r = ds({}, e), n;
36371
36371
  for (n in t)
36372
- He(t, n) && (Zs(e[n]) && Zs(t[n]) ? (r[n] = {}, ds(r[n], e[n]), ds(r[n], t[n])) : t[n] != null ? r[n] = t[n] : delete r[n]);
36372
+ He(t, n) && (Xs(e[n]) && Xs(t[n]) ? (r[n] = {}, ds(r[n], e[n]), ds(r[n], t[n])) : t[n] != null ? r[n] = t[n] : delete r[n]);
36373
36373
  for (n in e)
36374
- He(e, n) && !He(t, n) && Zs(e[n]) && (r[n] = ds({}, r[n]));
36374
+ He(e, n) && !He(t, n) && Xs(e[n]) && (r[n] = ds({}, r[n]));
36375
36375
  return r;
36376
36376
  }
36377
36377
  function V0(e) {
@@ -36625,7 +36625,7 @@ function pz(e, t, r) {
36625
36625
  function Lu(e) {
36626
36626
  return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
36627
36627
  }
36628
- var Lt = 0, Dn = 1, sn = 2, Tt = 3, Lr = 4, _n = 5, _s = 6, fz = 7, mz = 8;
36628
+ var Lt = 0, Dn = 1, sn = 2, Tt = 3, Lr = 4, _n = 5, Ms = 6, fz = 7, mz = 8;
36629
36629
  ue("Y", 0, 0, function() {
36630
36630
  var e = this.year();
36631
36631
  return e <= 9999 ? un(e, 4) : "+" + e;
@@ -37236,7 +37236,7 @@ function l$() {
37236
37236
  }
37237
37237
  function rm(e) {
37238
37238
  var t, r = e._a;
37239
- return r && Ce(e).overflow === -2 && (t = r[Dn] < 0 || r[Dn] > 11 ? Dn : r[sn] < 1 || r[sn] > X0(r[Lt], r[Dn]) ? sn : r[Tt] < 0 || r[Tt] > 24 || r[Tt] === 24 && (r[Lr] !== 0 || r[_n] !== 0 || r[_s] !== 0) ? Tt : r[Lr] < 0 || r[Lr] > 59 ? Lr : r[_n] < 0 || r[_n] > 59 ? _n : r[_s] < 0 || r[_s] > 999 ? _s : -1, Ce(e)._overflowDayOfYear && (t < Lt || t > sn) && (t = sn), Ce(e)._overflowWeeks && t === -1 && (t = fz), Ce(e)._overflowWeekday && t === -1 && (t = mz), Ce(e).overflow = t), e;
37239
+ return r && Ce(e).overflow === -2 && (t = r[Dn] < 0 || r[Dn] > 11 ? Dn : r[sn] < 1 || r[sn] > X0(r[Lt], r[Dn]) ? sn : r[Tt] < 0 || r[Tt] > 24 || r[Tt] === 24 && (r[Lr] !== 0 || r[_n] !== 0 || r[Ms] !== 0) ? Tt : r[Lr] < 0 || r[Lr] > 59 ? Lr : r[_n] < 0 || r[_n] > 59 ? _n : r[Ms] < 0 || r[Ms] > 999 ? Ms : -1, Ce(e)._overflowDayOfYear && (t < Lt || t > sn) && (t = sn), Ce(e)._overflowWeeks && t === -1 && (t = fz), Ce(e)._overflowWeekday && t === -1 && (t = mz), Ce(e).overflow = t), e;
37240
37240
  }
37241
37241
  var u$ = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, d$ = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, p$ = /Z|[+-]\d\d(?::?\d\d)?/, gl = [
37242
37242
  ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
@@ -37405,7 +37405,7 @@ function nm(e) {
37405
37405
  e._a[t] = n[t] = s[t];
37406
37406
  for (; t < 7; t++)
37407
37407
  e._a[t] = n[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
37408
- e._a[Tt] === 24 && e._a[Lr] === 0 && e._a[_n] === 0 && e._a[_s] === 0 && (e._nextDay = !0, e._a[Tt] = 0), e._d = (e._useUTC ? Di : Pz).apply(
37408
+ e._a[Tt] === 24 && e._a[Lr] === 0 && e._a[_n] === 0 && e._a[Ms] === 0 && (e._nextDay = !0, e._a[Tt] = 0), e._d = (e._useUTC ? Di : Pz).apply(
37409
37409
  null,
37410
37410
  n
37411
37411
  ), a = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[Tt] = 24), e._w && typeof e._w.d < "u" && e._w.d !== a && (Ce(e).weekdayMismatch = !0);
@@ -37481,11 +37481,11 @@ function I$(e) {
37481
37481
  var t = e._i;
37482
37482
  Zt(t) ? e._d = new Date(J.now()) : yc(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? v$(e) : jr(t) ? (e._a = Q6(t.slice(0), function(r) {
37483
37483
  return parseInt(r, 10);
37484
- }), nm(e)) : Zs(t) ? A$(e) : Vn(t) ? e._d = new Date(t) : J.createFromInputFallback(e);
37484
+ }), nm(e)) : Xs(t) ? A$(e) : Vn(t) ? e._d = new Date(t) : J.createFromInputFallback(e);
37485
37485
  }
37486
37486
  function v2(e, t, r, n, s) {
37487
37487
  var a = {};
37488
- return (t === !0 || t === !1) && (n = t, t = void 0), (r === !0 || r === !1) && (n = r, r = void 0), (Zs(e) && H0(e) || jr(e) && e.length === 0) && (e = void 0), a._isAMomentObject = !0, a._useUTC = a._isUTC = s, a._l = r, a._i = e, a._f = t, a._strict = n, S$(a);
37488
+ return (t === !0 || t === !1) && (n = t, t = void 0), (r === !0 || r === !1) && (n = r, r = void 0), (Xs(e) && H0(e) || jr(e) && e.length === 0) && (e = void 0), a._isAMomentObject = !0, a._useUTC = a._isUTC = s, a._l = r, a._i = e, a._f = t, a._strict = n, S$(a);
37489
37489
  }
37490
37490
  function tt(e, t, r, n) {
37491
37491
  return v2(e, t, r, n, !1);
@@ -37666,16 +37666,16 @@ function Zr(e, t) {
37666
37666
  h: Fe(n[Tt]) * s,
37667
37667
  m: Fe(n[Lr]) * s,
37668
37668
  s: Fe(n[_n]) * s,
37669
- ms: Fe(uf(n[_s] * 1e3)) * s
37669
+ ms: Fe(uf(n[Ms] * 1e3)) * s
37670
37670
  // the millisecond decimal point is included in the match
37671
37671
  }) : (n = Z$.exec(e)) ? (s = n[1] === "-" ? -1 : 1, r = {
37672
- y: Bs(n[2], s),
37673
- M: Bs(n[3], s),
37674
- w: Bs(n[4], s),
37675
- d: Bs(n[5], s),
37676
- h: Bs(n[6], s),
37677
- m: Bs(n[7], s),
37678
- s: Bs(n[8], s)
37672
+ y: Fs(n[2], s),
37673
+ M: Fs(n[3], s),
37674
+ w: Fs(n[4], s),
37675
+ d: Fs(n[5], s),
37676
+ h: Fs(n[6], s),
37677
+ m: Fs(n[7], s),
37678
+ s: Fs(n[8], s)
37679
37679
  }) : r == null ? r = {} : typeof r == "object" && ("from" in r || "to" in r) && (o = X$(
37680
37680
  tt(r.from),
37681
37681
  tt(r.to)
@@ -37683,7 +37683,7 @@ function Zr(e, t) {
37683
37683
  }
37684
37684
  Zr.fn = $u.prototype;
37685
37685
  Zr.invalid = M$;
37686
- function Bs(e, t) {
37686
+ function Fs(e, t) {
37687
37687
  var r = e && parseFloat(e.replace(",", "."));
37688
37688
  return (isNaN(r) ? 0 : r) * t;
37689
37689
  }
@@ -37716,7 +37716,7 @@ function eH(e) {
37716
37716
  return Vr(e) || yc(e) || S2(e) || Vn(e) || rH(e) || tH(e) || e === null || e === void 0;
37717
37717
  }
37718
37718
  function tH(e) {
37719
- var t = Zs(e) && !H0(e), r = !1, n = [
37719
+ var t = Xs(e) && !H0(e), r = !1, n = [
37720
37720
  "years",
37721
37721
  "year",
37722
37722
  "y",
@@ -37753,7 +37753,7 @@ function rH(e) {
37753
37753
  }).length === 0), t && r;
37754
37754
  }
37755
37755
  function nH(e) {
37756
- var t = Zs(e) && !H0(e), r = !1, n = [
37756
+ var t = Xs(e) && !H0(e), r = !1, n = [
37757
37757
  "sameDay",
37758
37758
  "nextDay",
37759
37759
  "lastDay",
@@ -38347,7 +38347,7 @@ var ps, M2;
38347
38347
  for (ps = "SSSS"; ps.length <= 9; ps += "S")
38348
38348
  ae(ps, So);
38349
38349
  function sG(e, t) {
38350
- t[_s] = Fe(("0." + e) * 1e3);
38350
+ t[Ms] = Fe(("0." + e) * 1e3);
38351
38351
  }
38352
38352
  for (ps = "S"; ps.length <= 9; ps += "S")
38353
38353
  Ze(ps, sG);
@@ -39126,7 +39126,7 @@ const q2 = (e, t) => Q(() => U0(t, e), [e, t]), On = (e, t) => Q(() => Iu(t, e),
39126
39126
  if (!(!e || !t))
39127
39127
  return Pu(e, t.id);
39128
39128
  }, [e, t]);
39129
- }, ia = (e, t) => Q(() => !e || !t || H(e || "0").isZero() || H(t || "0").isZero() ? "" : H(e || "0").times(t).toFixed(), [e, t]), oj = () => {
39129
+ }, vs = (e, t) => Q(() => !e || !t || H(e || "0").isZero() || H(t || "0").isZero() ? "" : H(e || "0").times(t).toFixed(), [e, t]), oj = () => {
39130
39130
  const { srcToken: e, dstToken: t, chainId: r } = se();
39131
39131
  return Q(() => C6(e, t, r), [e, t, r]);
39132
39132
  }, ij = () => {
@@ -40038,7 +40038,7 @@ function AW() {
40038
40038
  }, Vd;
40039
40039
  }
40040
40040
  var SW = /* @__PURE__ */ AW();
40041
- const qu = 0, Ts = 1, Bo = 2, sx = 4;
40041
+ const qu = 0, As = 1, Bo = 2, sx = 4;
40042
40042
  function D1(e) {
40043
40043
  return () => e;
40044
40044
  }
@@ -40074,7 +40074,7 @@ function nt(...e) {
40074
40074
  return e;
40075
40075
  }
40076
40076
  function We(e, t) {
40077
- return e(Ts, t);
40077
+ return e(As, t);
40078
40078
  }
40079
40079
  function Te(e, t) {
40080
40080
  e(qu, t);
@@ -40089,7 +40089,7 @@ function ce(e, t) {
40089
40089
  return We(e, PW(t, qu));
40090
40090
  }
40091
40091
  function zr(e, t) {
40092
- const r = e(Ts, (n) => {
40092
+ const r = e(As, (n) => {
40093
40093
  r(), t(n);
40094
40094
  });
40095
40095
  return r;
@@ -40131,7 +40131,7 @@ function j(e, ...t) {
40131
40131
  case Bo:
40132
40132
  bm(e);
40133
40133
  return;
40134
- case Ts:
40134
+ case As:
40135
40135
  return We(e, r(s));
40136
40136
  }
40137
40137
  };
@@ -40179,7 +40179,7 @@ function OW(e) {
40179
40179
  const n = () => t == null ? void 0 : t();
40180
40180
  return function(s, a) {
40181
40181
  switch (s) {
40182
- case Ts:
40182
+ case As:
40183
40183
  return a ? r === a ? void 0 : (n(), r = a, t = We(e, a), t) : (n(), Fo);
40184
40184
  case Bo:
40185
40185
  n(), r = null;
@@ -40195,7 +40195,7 @@ function q(e) {
40195
40195
  case qu:
40196
40196
  t = s;
40197
40197
  break;
40198
- case Ts: {
40198
+ case As: {
40199
40199
  s(t);
40200
40200
  break;
40201
40201
  }
@@ -40220,7 +40220,7 @@ function _e() {
40220
40220
  case Bo:
40221
40221
  e.splice(0, e.length);
40222
40222
  return;
40223
- case Ts:
40223
+ case As:
40224
40224
  return e.push(r), () => {
40225
40225
  const n = e.indexOf(r);
40226
40226
  n > -1 && e.splice(n, 1);
@@ -40264,7 +40264,7 @@ function vt(...e) {
40264
40264
  bm(t);
40265
40265
  return;
40266
40266
  }
40267
- case Ts:
40267
+ case As:
40268
40268
  return n === s && o(r), We(t, o);
40269
40269
  }
40270
40270
  };
@@ -40277,7 +40277,7 @@ function hf(...e) {
40277
40277
  switch (t) {
40278
40278
  case Bo:
40279
40279
  return;
40280
- case Ts:
40280
+ case As:
40281
40281
  return BW(...e.map((n) => We(n, r)));
40282
40282
  }
40283
40283
  };
@@ -40288,7 +40288,7 @@ const MW = {
40288
40288
  3: "error",
40289
40289
  1: "log",
40290
40290
  2: "warn"
40291
- }, RW = () => typeof globalThis > "u" ? window : globalThis, As = je(
40291
+ }, RW = () => typeof globalThis > "u" ? window : globalThis, Ss = je(
40292
40292
  () => {
40293
40293
  const e = q(
40294
40294
  3
@@ -40512,8 +40512,8 @@ function bf(e, t) {
40512
40512
  }
40513
40513
  } else return t < r ? Il(kt(e, { l: bf(n, t) })) : Il(kt(e, { r: bf(s, t) }));
40514
40514
  }
40515
- function Ms(e) {
40516
- return Ye(e) ? [] : [...Ms(e.l), { k: e.k, v: e.v }, ...Ms(e.r)];
40515
+ function Rs(e) {
40516
+ return Ye(e) ? [] : [...Rs(e.l), { k: e.k, v: e.v }, ...Rs(e.r)];
40517
40517
  }
40518
40518
  function yf(e, t, r) {
40519
40519
  if (Ye(e))
@@ -40627,7 +40627,7 @@ function $W(e, t, r, n) {
40627
40627
  const s = Yl(e, t, n), a = Yl(e, r, n, s);
40628
40628
  return e.slice(s, a + 1);
40629
40629
  }
40630
- function vs(e, t) {
40630
+ function Es(e, t) {
40631
40631
  return Math.round(e.getBoundingClientRect()[t]);
40632
40632
  }
40633
40633
  function Yu(e) {
@@ -40720,7 +40720,7 @@ function qW(e, [t, r, n, s]) {
40720
40720
  };
40721
40721
  }
40722
40722
  function KW(e) {
40723
- return Ms(e).map(({ k: t, v: r }, n, s) => {
40723
+ return Rs(e).map(({ k: t, v: r }, n, s) => {
40724
40724
  const a = s[n + 1];
40725
40725
  return { endIndex: a ? a.k - 1 : 1 / 0, size: r, startIndex: t };
40726
40726
  });
@@ -40766,7 +40766,7 @@ const XW = {
40766
40766
  offsetWidth: "width"
40767
40767
  }, bn = je(
40768
40768
  ([{ log: e }, { recalcInProgress: t }]) => {
40769
- const r = _e(), n = _e(), s = Nt(n, 0), a = _e(), o = _e(), i = q(0), c = q([]), l = q(void 0), u = q(void 0), d = q(void 0), f = q(void 0), m = q((T, h) => vs(T, XW[h])), y = q(void 0), g = q(0), E = HW(), v = Nt(
40769
+ const r = _e(), n = _e(), s = Nt(n, 0), a = _e(), o = _e(), i = q(0), c = q([]), l = q(void 0), u = q(void 0), d = q(void 0), f = q(void 0), m = q((T, h) => Es(T, XW[h])), y = q(void 0), g = q(0), E = HW(), v = Nt(
40770
40770
  j(r, Ie(c, e, g), an(qW, E), et()),
40771
40771
  E
40772
40772
  ), w = Nt(
@@ -40939,7 +40939,7 @@ const XW = {
40939
40939
  startIndex: I + 1
40940
40940
  }), D++, B += U + 1;
40941
40941
  }
40942
- const k = Ms(h.sizeTree);
40942
+ const k = Rs(h.sizeTree);
40943
40943
  return B !== T && k.shift(), k.reduce(
40944
40944
  (I, { k: U, v: F }) => {
40945
40945
  let R = I.ranges;
@@ -40963,7 +40963,7 @@ const XW = {
40963
40963
  }
40964
40964
  ).ranges;
40965
40965
  }
40966
- return Ms(h.sizeTree).reduce(
40966
+ return Rs(h.sizeTree).reduce(
40967
40967
  (P, { k: B, v: D }) => ({
40968
40968
  prevIndex: B + T,
40969
40969
  prevSize: D,
@@ -41005,7 +41005,7 @@ const XW = {
41005
41005
  const k = S[B + 1] - D - 1;
41006
41006
  B++, P += k + 1;
41007
41007
  }
41008
- if (x = Ms(h.sizeTree).reduce((k, { k: I, v: U }) => lr(k, Math.max(0, I + T), U), x), P !== -T) {
41008
+ if (x = Rs(h.sizeTree).reduce((k, { k: I, v: U }) => lr(k, Math.max(0, I + T), U), x), P !== -T) {
41009
41009
  const k = Ni(h.sizeTree, D);
41010
41010
  x = lr(x, 0, k);
41011
41011
  const I = Wr(h.sizeTree, -T + 1)[1];
@@ -41017,7 +41017,7 @@ const XW = {
41017
41017
  ...xf(h.offsetTree, 0, x, b)
41018
41018
  };
41019
41019
  } else {
41020
- const x = Ms(h.sizeTree).reduce((S, { k: P, v: B }) => lr(S, Math.max(0, P + T), B), ja());
41020
+ const x = Rs(h.sizeTree).reduce((S, { k: P, v: B }) => lr(S, Math.max(0, P + T), B), ja());
41021
41021
  return {
41022
41022
  ...h,
41023
41023
  sizeTree: x,
@@ -41051,7 +41051,7 @@ const XW = {
41051
41051
  unshiftWith: a
41052
41052
  };
41053
41053
  },
41054
- nt(As, gm),
41054
+ nt(Ss, gm),
41055
41055
  { singleton: !0 }
41056
41056
  );
41057
41057
  function QW(e) {
@@ -41090,7 +41090,7 @@ const yx = je(
41090
41090
  ), { groupCounts: a, topItemsIndexes: o };
41091
41091
  },
41092
41092
  nt(bn, Kt)
41093
- ), Ss = je(
41093
+ ), Is = je(
41094
41094
  ([{ log: e }]) => {
41095
41095
  const t = q(!1), r = dr(
41096
41096
  j(
@@ -41103,7 +41103,7 @@ const yx = je(
41103
41103
  n && it(e)("props updated", {}, sr.DEBUG);
41104
41104
  }), { didMount: r, propsReady: t };
41105
41105
  },
41106
- nt(As),
41106
+ nt(Ss),
41107
41107
  { singleton: !0 }
41108
41108
  ), JW = typeof document < "u" && "scrollBehavior" in document.documentElement.style;
41109
41109
  function gx(e) {
@@ -41170,7 +41170,7 @@ const Ec = je(
41170
41170
  topListHeight: g
41171
41171
  };
41172
41172
  },
41173
- nt(bn, Kt, As),
41173
+ nt(bn, Kt, Ss),
41174
41174
  { singleton: !0 }
41175
41175
  );
41176
41176
  function eq(e) {
@@ -41233,7 +41233,7 @@ const kc = je(
41233
41233
  scrolledToInitialItem: i
41234
41234
  };
41235
41235
  },
41236
- nt(bn, Kt, Ec, Ss),
41236
+ nt(bn, Kt, Ec, Is),
41237
41237
  { singleton: !0 }
41238
41238
  );
41239
41239
  function xx(e, t) {
@@ -41734,7 +41734,7 @@ const ya = je(
41734
41734
  kc,
41735
41735
  Ec,
41736
41736
  Cc,
41737
- Ss,
41737
+ Is,
41738
41738
  gm
41739
41739
  ),
41740
41740
  { singleton: !0 }
@@ -41813,7 +41813,7 @@ const ya = je(
41813
41813
  scrollIntoView: u
41814
41814
  };
41815
41815
  },
41816
- nt(bn, Kt, Ec, ya, As),
41816
+ nt(bn, Kt, Ec, ya, Ss),
41817
41817
  { singleton: !0 }
41818
41818
  );
41819
41819
  function V1(e) {
@@ -41918,8 +41918,8 @@ const iq = (e, t) => typeof e == "function" ? V1(e(t)) : t && V1(e), cq = je(
41918
41918
  Cc,
41919
41919
  Ec,
41920
41920
  kc,
41921
+ Is,
41921
41922
  Ss,
41922
- As,
41923
41923
  Kt,
41924
41924
  Ex,
41925
41925
  kx
@@ -41935,7 +41935,7 @@ const iq = (e, t) => typeof e == "function" ? V1(e(t)) : t && V1(e), cq = je(
41935
41935
  ),
41936
41936
  o
41937
41937
  ), {}),
41938
- nt(bn, kc, ya, Ss),
41938
+ nt(bn, kc, ya, Is),
41939
41939
  { singleton: !0 }
41940
41940
  ), uq = je(
41941
41941
  ([{ didMount: e }, { scrollTo: t }, { listState: r }]) => {
@@ -41965,7 +41965,7 @@ const iq = (e, t) => typeof e == "function" ? V1(e(t)) : t && V1(e), cq = je(
41965
41965
  initialScrollTop: n
41966
41966
  };
41967
41967
  },
41968
- nt(Ss, Kt, ya),
41968
+ nt(Is, Kt, ya),
41969
41969
  { singleton: !0 }
41970
41970
  ), Cx = je(
41971
41971
  ([{ scrollVelocity: e }]) => {
@@ -42060,7 +42060,7 @@ const iq = (e, t) => typeof e == "function" ? V1(e(t)) : t && V1(e), cq = je(
42060
42060
  restoreStateFrom: u
42061
42061
  };
42062
42062
  },
42063
- nt(bn, Kt, kc, Ss, km)
42063
+ nt(bn, Kt, kc, Is, km)
42064
42064
  );
42065
42065
  function pq(e) {
42066
42066
  return { align: "start", index: 0, offset: e.scrollTop };
@@ -42158,7 +42158,7 @@ const mq = Tx(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
42158
42158
  }
42159
42159
  ), { deviation: e };
42160
42160
  },
42161
- nt(Kt, Cc, ya, bn, As, gm)
42161
+ nt(Kt, Cc, ya, bn, Ss, gm)
42162
42162
  ), bq = je(
42163
42163
  ([
42164
42164
  e,
@@ -42188,14 +42188,14 @@ const mq = Tx(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
42188
42188
  nt(
42189
42189
  Em,
42190
42190
  lq,
42191
- Ss,
42191
+ Is,
42192
42192
  Cx,
42193
42193
  vx,
42194
42194
  uq,
42195
42195
  aq,
42196
42196
  km,
42197
42197
  kx,
42198
- As,
42198
+ Ss,
42199
42199
  Ex
42200
42200
  )
42201
42201
  ), Ax = je(
@@ -42412,9 +42412,9 @@ function Fx(e, t, r, n = Fo, s, a) {
42412
42412
  const y = f.behavior === "smooth";
42413
42413
  let g, E, v;
42414
42414
  Kd(m) ? (E = Math.max(
42415
- vs(m.document.documentElement, a ? "width" : "height"),
42415
+ Es(m.document.documentElement, a ? "width" : "height"),
42416
42416
  a ? m.document.documentElement.scrollWidth : m.document.documentElement.scrollHeight
42417
- ), g = a ? m.innerWidth : m.innerHeight, v = a ? window.scrollX : window.scrollY) : (E = m[a ? "scrollWidth" : "scrollHeight"], g = vs(m, a ? "width" : "height"), v = m[a ? "scrollLeft" : "scrollTop"]);
42417
+ ), g = a ? m.innerWidth : m.innerHeight, v = a ? window.scrollX : window.scrollY) : (E = m[a ? "scrollWidth" : "scrollHeight"], g = Es(m, a ? "width" : "height"), v = m[a ? "scrollLeft" : "scrollTop"]);
42418
42418
  const w = E - g;
42419
42419
  if (f.top = Math.ceil(Math.max(Math.min(w, f.top), 0)), xx(g, E) || f.top === v) {
42420
42420
  e({ scrollHeight: E, scrollTop: v, viewportHeight: g }), y && t(!0);
@@ -42578,7 +42578,7 @@ const Iq = /* @__PURE__ */ te.memo(function() {
42578
42578
  const e = ge("HeaderComponent"), t = Sr("headerHeight"), r = ge("HeaderFooterTag"), n = ba(
42579
42579
  te.useMemo(
42580
42580
  () => (a) => {
42581
- t(vs(a, "height"));
42581
+ t(Es(a, "height"));
42582
42582
  },
42583
42583
  [t]
42584
42584
  ),
@@ -42590,7 +42590,7 @@ const Iq = /* @__PURE__ */ te.memo(function() {
42590
42590
  const e = ge("FooterComponent"), t = Sr("footerHeight"), r = ge("HeaderFooterTag"), n = ba(
42591
42591
  te.useMemo(
42592
42592
  () => (a) => {
42593
- t(vs(a, "height"));
42593
+ t(Es(a, "height"));
42594
42594
  },
42595
42595
  [t]
42596
42596
  ),
@@ -42653,7 +42653,7 @@ function Dx({ useEmitter: e, useEmitterValue: t, usePublisher: r }) {
42653
42653
  }
42654
42654
  const Bq = ({ children: e }) => {
42655
42655
  const t = te.useContext(Ix), r = Sr("viewportHeight"), n = Sr("fixedItemHeight"), s = ge("alignToBottom"), a = ge("horizontalDirection"), o = te.useMemo(
42656
- () => ax(r, (c) => vs(c, a ? "width" : "height")),
42656
+ () => ax(r, (c) => Es(c, a ? "width" : "height")),
42657
42657
  [r, a]
42658
42658
  ), i = ba(o, !0, ge("skipAnimationFrameInResizeObserver"));
42659
42659
  return te.useEffect(() => {
@@ -42927,9 +42927,9 @@ const Hq = /* @__PURE__ */ je(
42927
42927
  return zq(X1(Mm, jx, ve));
42928
42928
  }
42929
42929
  const Sc = _x(Fm, Qu, Je);
42930
- let wa, Is;
42931
- Xe ? we === 0 && Ue === 0 && ye > 0 ? (wa = 0, Is = ye - 1) : (wa = Sc * Zl((we + gr) / (Ut + gr)), Is = Sc * Y1((Ue + gr) / (Ut + gr)) - 1, Is = Zd(K - 1, ri(Is, Sc - 1)), wa = Zd(Is, ri(0, wa))) : (wa = 0, Is = -1);
42932
- const Um = X1(wa, Is, ve), { bottom: Om, top: Dm } = Q1(Ae, ze, st, Um), _m = Y1(K / Sc), Gx = _m * Ut + (_m - 1) * gr - Om;
42930
+ let wa, Ps;
42931
+ Xe ? we === 0 && Ue === 0 && ye > 0 ? (wa = 0, Ps = ye - 1) : (wa = Sc * Zl((we + gr) / (Ut + gr)), Ps = Sc * Y1((Ue + gr) / (Ut + gr)) - 1, Ps = Zd(K - 1, ri(Ps, Sc - 1)), wa = Zd(Ps, ri(0, wa))) : (wa = 0, Ps = -1);
42932
+ const Um = X1(wa, Ps, ve), { bottom: Om, top: Dm } = Q1(Ae, ze, st, Um), _m = Y1(K / Sc), Gx = _m * Ut + (_m - 1) * gr - Om;
42933
42933
  return { bottom: Om, itemHeight: Ut, items: Um, itemWidth: Qu, offsetBottom: Gx, offsetTop: Dm, top: Dm };
42934
42934
  }
42935
42935
  )
@@ -43064,7 +43064,7 @@ const Hq = /* @__PURE__ */ je(
43064
43064
  ...O
43065
43065
  };
43066
43066
  },
43067
- nt(Em, Kt, Cc, Cx, Ss, km, As)
43067
+ nt(Em, Kt, Cc, Cx, Is, km, Ss)
43068
43068
  );
43069
43069
  function _x(e, t, r) {
43070
43070
  return ri(1, Zl((e + r) / (Zl(t) + r)));
@@ -43169,7 +43169,7 @@ const Gq = /* @__PURE__ */ je(() => {
43169
43169
  const e = ot("HeaderComponent"), t = Ir("headerHeight"), r = ot("headerFooterTag"), n = ba(
43170
43170
  te.useMemo(
43171
43171
  () => (a) => {
43172
- t(vs(a, "height"));
43172
+ t(Es(a, "height"));
43173
43173
  },
43174
43174
  [t]
43175
43175
  ),
@@ -43181,7 +43181,7 @@ const Gq = /* @__PURE__ */ je(() => {
43181
43181
  const e = ot("FooterComponent"), t = Ir("footerHeight"), r = ot("headerFooterTag"), n = ba(
43182
43182
  te.useMemo(
43183
43183
  () => (a) => {
43184
- t(vs(a, "height"));
43184
+ t(Es(a, "height"));
43185
43185
  },
43186
43186
  [t]
43187
43187
  ),
@@ -43575,7 +43575,7 @@ const cK = () => {
43575
43575
  g = c ? H(1).div(E).toFixed() : E;
43576
43576
  }
43577
43577
  return g;
43578
- }, [e, t, l, c]), y = ia(c ? o : i, m || "0");
43578
+ }, [e, t, l, c]), y = vs(c ? o : i, m || "0");
43579
43579
  return {
43580
43580
  amountWei: H(l).isNaN() ? "" : l,
43581
43581
  amountUI: H(m).isNaN() ? "" : m,
@@ -43622,7 +43622,7 @@ const cK = () => {
43622
43622
  return {
43623
43623
  amountWei: i,
43624
43624
  amountUI: c,
43625
- usd: ia(c, s)
43625
+ usd: vs(c, s)
43626
43626
  };
43627
43627
  }, xa = () => {
43628
43628
  const { dstToken: e, marketPrice: t, module: r, callbacks: n } = se(), s = ee((y) => y.updateState), a = pK(), o = ee((y) => y.state.triggerPricePercent), i = o === void 0 ? a : o, c = r === xe.STOP_LOSS || r === xe.TAKE_PROFIT, l = Rx({
@@ -43739,7 +43739,7 @@ const cK = () => {
43739
43739
  return {
43740
43740
  amountWei: a,
43741
43741
  amountUI: o,
43742
- usd: ia(o, r)
43742
+ usd: vs(o, r)
43743
43743
  };
43744
43744
  }, Xu = () => {
43745
43745
  const { srcToken: e, dstToken: t, dstUsd1Token: r } = se(), n = Nx(), s = qr().amountPerTradeWei, a = ee((c) => c.state.isMarketOrder), o = Q(
@@ -43749,7 +43749,7 @@ const cK = () => {
43749
43749
  return {
43750
43750
  amountWei: o,
43751
43751
  amountUI: i,
43752
- usd: ia(i, r)
43752
+ usd: vs(i, r)
43753
43753
  };
43754
43754
  }, RY = () => {
43755
43755
  const { typedInputAmount: e, marketPriceLoading: t, dstToken: r } = se(), { amountUI: n, usd: s } = Ac(), o = cj() ? e : n;
@@ -43786,12 +43786,12 @@ const cK = () => {
43786
43786
  isTypedValue: l
43787
43787
  };
43788
43788
  }, yK = () => {
43789
- const { minChunkSizeUsd: e, typedInputAmount: t } = se(), r = Re();
43790
- return Q(() => H(e).isLessThan(H(t || "0")) ? {
43791
- type: Wt.MIN_CHUNK_SIZE_ERROR,
43789
+ const { minChunkSizeUsd: e, typedInputAmount: t, srcUsd1Token: r } = se(), n = Re(), s = vs(t, r);
43790
+ return Q(() => H(e).gt(H(s || "0")) ? {
43791
+ type: Wt.MIN_TRADE_SIZE_ERROR,
43792
43792
  value: e,
43793
- message: r("minTradeSizeError", { minTradeSize: `${e}` })
43794
- } : void 0, [e, t, r]);
43793
+ message: n("minTradeSizeError", { minTradeSize: `${e}` })
43794
+ } : void 0, [e, s, n]);
43795
43795
  };
43796
43796
  function gK() {
43797
43797
  const {
@@ -43820,7 +43820,7 @@ function gK() {
43820
43820
  fillDelayError: d,
43821
43821
  durationError: f,
43822
43822
  balanceError: g,
43823
- minChunkSizeError: m
43823
+ minTradeSizeError: m
43824
43824
  }), [
43825
43825
  e,
43826
43826
  t,
@@ -43848,14 +43848,14 @@ const LY = () => {
43848
43848
  const e = ee((r) => r.state.currentTime), t = Sm().duration;
43849
43849
  return Q(() => dw(e, t), [e, t]);
43850
43850
  }, xK = () => {
43851
- const { srcUsd1Token: e, dstUsd1Token: t } = se(), r = yn().amountUI, n = Ac().amountUI, s = ia(r, e), a = ia(n, t);
43851
+ const { srcUsd1Token: e, dstUsd1Token: t } = se(), r = yn().amountUI, n = Ac().amountUI, s = vs(r, e), a = vs(n, t);
43852
43852
  return { srcAmountUsd: s, dstAmountUsd: a };
43853
43853
  }, wK = () => {
43854
43854
  const { fees: e, dstUsd1Token: t } = se(), { amountUI: r } = Ac(), n = Q(() => !e || !r ? "" : H(r).multipliedBy(e).dividedBy(100).toFixed(), [r, e]);
43855
43855
  return {
43856
43856
  amount: n,
43857
43857
  percent: e,
43858
- usd: ia(n, t)
43858
+ usd: vs(n, t)
43859
43859
  };
43860
43860
  }, vK = () => {
43861
43861
  const { srcToken: e, dstToken: t, account: r, chainId: n, slippage: s, config: a, module: o } = se(), { amountWei: i } = yn(), { amountWei: c } = Tc(), { amountPerTradeWei: l, totalTrades: u } = qr(), d = Bm(), { amountWei: f } = Xu(), { pricePerChunkWei: m } = xa(), { milliseconds: y } = ga();
@@ -43991,7 +43991,7 @@ function SK({ error: e }) {
43991
43991
  var i;
43992
43992
  return (i = o.state.swapExecution) == null ? void 0 : i.wrapTxHash;
43993
43993
  }), s = t.SubmitOrderErrorView, a = /* @__PURE__ */ M(
43994
- Es.Failed,
43994
+ ks.Failed,
43995
43995
  {
43996
43996
  error: /* @__PURE__ */ M(AK, { error: e }),
43997
43997
  footerLink: bb,
@@ -44008,7 +44008,7 @@ const IK = () => {
44008
44008
  }
44009
44009
  ), o = EK(), i = e.USD, c = e.SubmitOrderMainView, l = /* @__PURE__ */ he(mo, { children: [
44010
44010
  /* @__PURE__ */ M(
44011
- Es.Main,
44011
+ ks.Main,
44012
44012
  {
44013
44013
  fromTitle: s("from"),
44014
44014
  toTitle: s("to"),
@@ -44111,7 +44111,7 @@ const IK = () => {
44111
44111
  logoUrl: d == null ? void 0 : d.logoUrl
44112
44112
  }), [d]);
44113
44113
  return /* @__PURE__ */ M(kK, { ...e, children: /* @__PURE__ */ M(
44114
- Es,
44114
+ ks,
44115
44115
  {
44116
44116
  inAmount: y,
44117
44117
  outAmount: g,
@@ -44135,7 +44135,7 @@ const IK = () => {
44135
44135
  ) });
44136
44136
  }, BK = () => {
44137
44137
  const e = $x(), { components: t } = se(), r = ee((a) => a.state.swapExecution.orderId), n = t.SubmitOrderSuccessView, s = /* @__PURE__ */ he(mo, { children: [
44138
- /* @__PURE__ */ M(Es.Success, { title: e }),
44138
+ /* @__PURE__ */ M(ks.Success, { title: e }),
44139
44139
  /* @__PURE__ */ M(zx, {})
44140
44140
  ] });
44141
44141
  return n ? /* @__PURE__ */ M(n, { newOrderId: r, children: s }) : s;
@@ -44280,13 +44280,13 @@ const IK = () => {
44280
44280
  if (r != null && r.approveOrder ? d = await r.approveOrder({
44281
44281
  tokenAddress: c.address,
44282
44282
  spenderAddress: n.repermit,
44283
- amount: na
44283
+ amount: sa
44284
44284
  }) : d = await t.writeContract({
44285
44285
  abi: dg,
44286
44286
  functionName: "approve",
44287
44287
  account: e,
44288
44288
  address: c.address,
44289
- args: [n.repermit, na],
44289
+ args: [n.repermit, sa],
44290
44290
  chain: t.chain
44291
44291
  }), !d)
44292
44292
  throw new Error("failed to approve token");