@skip-go/widget 3.6.1 → 3.6.3

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.
@@ -368,11 +368,11 @@ function rh(e) {
368
368
  return ih(So("", null, null, null, [""], e = nh(e), 0, [0], e));
369
369
  }
370
370
  function So(e, n, i, o, t, c, a, r, s) {
371
- for (var l = 0, p = 0, D = a, u = 0, g = 0, b = 0, C = 1, x = 1, E = 1, f = 0, S = "", q = t, v = c, I = o, T = S; x; )
371
+ for (var l = 0, p = 0, D = a, u = 0, x = 0, b = 0, C = 1, g = 1, y = 1, f = 0, S = "", q = t, E = c, I = o, T = S; g; )
372
372
  switch (b = f, f = sn()) {
373
373
  case 40:
374
374
  if (b != 108 && He(T, D - 1) == 58) {
375
- Po(T += ie(Bt(f), "&", "&\f"), "&\f", Ps(l ? r[l - 1] : 0)) != -1 && (E = -1);
375
+ Po(T += ie(Bt(f), "&", "&\f"), "&\f", Ps(l ? r[l - 1] : 0)) != -1 && (y = -1);
376
376
  break;
377
377
  }
378
378
  case 34:
@@ -400,39 +400,39 @@ function So(e, n, i, o, t, c, a, r, s) {
400
400
  }
401
401
  break;
402
402
  case 123 * C:
403
- r[l++] = dn(T) * E;
403
+ r[l++] = dn(T) * y;
404
404
  case 125 * C:
405
405
  case 59:
406
406
  case 0:
407
407
  switch (f) {
408
408
  case 0:
409
409
  case 125:
410
- x = 0;
410
+ g = 0;
411
411
  case 59 + p:
412
- E == -1 && (T = ie(T, /\f/g, "")), g > 0 && dn(T) - D && Yi(g > 32 ? Fa(T + ";", o, i, D - 1, s) : Fa(ie(T, " ", "") + ";", o, i, D - 2, s), s);
412
+ y == -1 && (T = ie(T, /\f/g, "")), x > 0 && dn(T) - D && Yi(x > 32 ? Fa(T + ";", o, i, D - 1, s) : Fa(ie(T, " ", "") + ";", o, i, D - 2, s), s);
413
413
  break;
414
414
  case 59:
415
415
  T += ";";
416
416
  default:
417
- if (Yi(I = Ea(T, n, i, l, p, t, r, S, q = [], v = [], D, c), c), f === 123)
417
+ if (Yi(I = Ea(T, n, i, l, p, t, r, S, q = [], E = [], D, c), c), f === 123)
418
418
  if (p === 0)
419
- So(T, n, I, I, q, c, D, r, v);
419
+ So(T, n, I, I, q, c, D, r, E);
420
420
  else
421
421
  switch (u === 99 && He(T, 3) === 110 ? 100 : u) {
422
422
  case 100:
423
423
  case 108:
424
424
  case 109:
425
425
  case 115:
426
- So(e, I, I, o && Yi(Ea(e, I, I, 0, 0, t, r, S, t, q = [], D, v), v), t, v, D, r, o ? q : v);
426
+ So(e, I, I, o && Yi(Ea(e, I, I, 0, 0, t, r, S, t, q = [], D, E), E), t, E, D, r, o ? q : E);
427
427
  break;
428
428
  default:
429
- So(T, I, I, I, [""], v, 0, r, v);
429
+ So(T, I, I, I, [""], E, 0, r, E);
430
430
  }
431
431
  }
432
- l = p = g = 0, C = E = 1, S = T = "", D = a;
432
+ l = p = x = 0, C = y = 1, S = T = "", D = a;
433
433
  break;
434
434
  case 58:
435
- D = 1 + dn(T), g = b;
435
+ D = 1 + dn(T), x = b;
436
436
  default:
437
437
  if (C < 1) {
438
438
  if (f == 123)
@@ -442,10 +442,10 @@ function So(e, n, i, o, t, c, a, r, s) {
442
442
  }
443
443
  switch (T += qc(f), f * C) {
444
444
  case 38:
445
- E = p > 0 ? 1 : (T += "\f", -1);
445
+ y = p > 0 ? 1 : (T += "\f", -1);
446
446
  break;
447
447
  case 44:
448
- r[l++] = (dn(T) - 1) * E, E = 1;
448
+ r[l++] = (dn(T) - 1) * y, y = 1;
449
449
  break;
450
450
  case 64:
451
451
  Qn() === 45 && (T += Bt(sn())), u = Qn(), p = D = dn(S = T += ah(zo())), f++;
@@ -457,9 +457,9 @@ function So(e, n, i, o, t, c, a, r, s) {
457
457
  return c;
458
458
  }
459
459
  function Ea(e, n, i, o, t, c, a, r, s, l, p, D) {
460
- for (var u = t - 1, g = t === 0 ? c : [""], b = Ss(g), C = 0, x = 0, E = 0; C < o; ++C)
461
- for (var f = 0, S = Ai(e, u + 1, u = Ps(x = a[C])), q = e; f < b; ++f)
462
- (q = zs(x > 0 ? g[f] + " " + S : ie(S, /&\f/g, g[f]))) && (s[E++] = q);
460
+ for (var u = t - 1, x = t === 0 ? c : [""], b = Ss(x), C = 0, g = 0, y = 0; C < o; ++C)
461
+ for (var f = 0, S = Ai(e, u + 1, u = Ps(g = a[C])), q = e; f < b; ++f)
462
+ (q = zs(g > 0 ? x[f] + " " + S : ie(S, /&\f/g, x[f]))) && (s[y++] = q);
463
463
  return nt(e, n, i, t === 0 ? $o : r, s, l, p, D);
464
464
  }
465
465
  function sh(e, n, i, o) {
@@ -993,16 +993,16 @@ var Gs = function(e) {
993
993
  this.options = Ne(Ne({}, Rh), n), this.gs = i, this.names = new Map(o), this.server = !!n.isServer, !this.server && Vo && Ia && (Ia = !1, ja(this)), Hc(this, function() {
994
994
  return function(c) {
995
995
  for (var a = c.getTag(), r = a.length, s = "", l = function(D) {
996
- var u = function(E) {
997
- return Lo.get(E);
996
+ var u = function(y) {
997
+ return Lo.get(y);
998
998
  }(D);
999
999
  if (u === void 0) return "continue";
1000
- var g = c.names.get(u), b = a.getGroup(D);
1001
- if (g === void 0 || !g.size || b.length === 0) return "continue";
1002
- var C = "".concat(ni, ".g").concat(D, '[id="').concat(u, '"]'), x = "";
1003
- g !== void 0 && g.forEach(function(E) {
1004
- E.length > 0 && (x += "".concat(E, ","));
1005
- }), s += "".concat(b).concat(C, '{content:"').concat(x, '"}').concat(jc);
1000
+ var x = c.names.get(u), b = a.getGroup(D);
1001
+ if (x === void 0 || !x.size || b.length === 0) return "continue";
1002
+ var C = "".concat(ni, ".g").concat(D, '[id="').concat(u, '"]'), g = "";
1003
+ x !== void 0 && x.forEach(function(y) {
1004
+ y.length > 0 && (g += "".concat(y, ","));
1005
+ }), s += "".concat(b).concat(C, '{content:"').concat(g, '"}').concat(jc);
1006
1006
  }, p = 0; p < r; p++) l(p);
1007
1007
  return s;
1008
1008
  }(t);
@@ -1048,23 +1048,23 @@ function Xs(e, n) {
1048
1048
  });
1049
1049
  }
1050
1050
  function Ys(e) {
1051
- var n, i, o, t = e === void 0 ? ki : e, c = t.options, a = c === void 0 ? ki : c, r = t.plugins, s = r === void 0 ? tt : r, l = function(u, g, b) {
1051
+ var n, i, o, t = e === void 0 ? ki : e, c = t.options, a = c === void 0 ? ki : c, r = t.plugins, s = r === void 0 ? tt : r, l = function(u, x, b) {
1052
1052
  return b.startsWith(i) && b.endsWith(i) && b.replaceAll(i, "").length > 0 ? ".".concat(n) : u;
1053
1053
  }, p = s.slice();
1054
1054
  p.push(function(u) {
1055
1055
  u.type === $o && u.value.includes("&") && (u.props[0] = u.props[0].replace(Oh, i).replace(o, l));
1056
1056
  }), a.prefix && p.push(hh), p.push(lh);
1057
- var D = function(u, g, b, C) {
1058
- g === void 0 && (g = ""), b === void 0 && (b = ""), C === void 0 && (C = "&"), n = C, i = g, o = new RegExp("\\".concat(i, "\\b"), "g");
1059
- var x = u.replace(Wh, ""), E = rh(b || g ? "".concat(b, " ").concat(g, " { ").concat(x, " }") : x);
1060
- a.namespace && (E = Xs(E, a.namespace));
1057
+ var D = function(u, x, b, C) {
1058
+ x === void 0 && (x = ""), b === void 0 && (b = ""), C === void 0 && (C = "&"), n = C, i = x, o = new RegExp("\\".concat(i, "\\b"), "g");
1059
+ var g = u.replace(Wh, ""), y = rh(b || x ? "".concat(b, " ").concat(x, " { ").concat(g, " }") : g);
1060
+ a.namespace && (y = Xs(y, a.namespace));
1061
1061
  var f = [];
1062
- return No(E, mh(p.concat(ph(function(S) {
1062
+ return No(y, mh(p.concat(ph(function(S) {
1063
1063
  return f.push(S);
1064
1064
  })))), f;
1065
1065
  };
1066
- return D.hash = s.length ? s.reduce(function(u, g) {
1067
- return g.name || xn(15), Xn(u, g.name);
1066
+ return D.hash = s.length ? s.reduce(function(u, x) {
1067
+ return x.name || xn(15), Xn(u, x.name);
1068
1068
  }, Ts).toString() : "", D;
1069
1069
  }
1070
1070
  var Uh = new Ks(), ic = Ys(), Tc = ln.createContext({ shouldForwardProp: void 0, styleSheet: Uh, stylis: ic });
@@ -1168,8 +1168,8 @@ var Yh = Ns(ot), Zh = function() {
1168
1168
  }
1169
1169
  }
1170
1170
  if (l) {
1171
- var g = $t(s >>> 0);
1172
- i.hasNameForId(this.componentId, g) || i.insertRules(this.componentId, g, o(l, ".".concat(g), void 0, this.componentId)), t = Jn(t, g);
1171
+ var x = $t(s >>> 0);
1172
+ i.hasNameForId(this.componentId, x) || i.insertRules(this.componentId, x, o(l, ".".concat(x), void 0, this.componentId)), t = Jn(t, x);
1173
1173
  }
1174
1174
  }
1175
1175
  return t;
@@ -1198,27 +1198,27 @@ function Na(e) {
1198
1198
  }
1199
1199
  var zt = {}, Va = /* @__PURE__ */ new Set();
1200
1200
  function Jh(e, n, i) {
1201
- var o = Ic(e), t = e, c = !Pt(e), a = n.attrs, r = a === void 0 ? tt : a, s = n.componentId, l = s === void 0 ? function(q, v) {
1201
+ var o = Ic(e), t = e, c = !Pt(e), a = n.attrs, r = a === void 0 ? tt : a, s = n.componentId, l = s === void 0 ? function(q, E) {
1202
1202
  var I = typeof q != "string" ? "sc" : Ma(q);
1203
1203
  zt[I] = (zt[I] || 0) + 1;
1204
1204
  var T = "".concat(I, "-").concat(Vs(ot + I + zt[I]));
1205
- return v ? "".concat(v, "-").concat(T) : T;
1205
+ return E ? "".concat(E, "-").concat(T) : T;
1206
1206
  }(n.displayName, n.parentComponentId) : s, p = n.displayName, D = p === void 0 ? function(q) {
1207
1207
  return Pt(q) ? "styled.".concat(q) : "Styled(".concat(Ls(q), ")");
1208
- }(e) : p, u = n.displayName && n.componentId ? "".concat(Ma(n.displayName), "-").concat(n.componentId) : n.componentId || l, g = o && t.attrs ? t.attrs.concat(r).filter(Boolean) : r, b = n.shouldForwardProp;
1208
+ }(e) : p, u = n.displayName && n.componentId ? "".concat(Ma(n.displayName), "-").concat(n.componentId) : n.componentId || l, x = o && t.attrs ? t.attrs.concat(r).filter(Boolean) : r, b = n.shouldForwardProp;
1209
1209
  if (o && t.shouldForwardProp) {
1210
1210
  var C = t.shouldForwardProp;
1211
1211
  if (n.shouldForwardProp) {
1212
- var x = n.shouldForwardProp;
1213
- b = function(q, v) {
1214
- return C(q, v) && x(q, v);
1212
+ var g = n.shouldForwardProp;
1213
+ b = function(q, E) {
1214
+ return C(q, E) && g(q, E);
1215
1215
  };
1216
1216
  } else b = C;
1217
1217
  }
1218
- var E = new Zh(i, u, o ? t.componentStyle : void 0);
1219
- function f(q, v) {
1218
+ var y = new Zh(i, u, o ? t.componentStyle : void 0);
1219
+ function f(q, E) {
1220
1220
  return function(I, T, h) {
1221
- var d = I.attrs, A = I.componentStyle, B = I.defaultProps, k = I.foldedComponentIds, F = I.styledComponentId, M = I.target, w = ln.useContext(no), P = oc(), y = I.shouldForwardProp || P.shouldForwardProp;
1221
+ var d = I.attrs, A = I.componentStyle, B = I.defaultProps, k = I.foldedComponentIds, F = I.styledComponentId, M = I.target, w = ln.useContext(no), P = oc(), v = I.shouldForwardProp || P.shouldForwardProp;
1222
1222
  ae.env.NODE_ENV !== "production" && Aa(F);
1223
1223
  var z = xh(T, w, B) || ki, H = function($, se, Pe) {
1224
1224
  for (var cn, an = Ne(Ne({}, se), { className: void 0, theme: Pe }), Gn = 0; Gn < $.length; Gn += 1) {
@@ -1227,7 +1227,7 @@ function Jh(e, n, i) {
1227
1227
  }
1228
1228
  return se.className && (an.className = Jn(an.className, se.className)), an;
1229
1229
  }(d, T, z), U = H.as || M, G = {};
1230
- for (var Y in H) H[Y] === void 0 || Y[0] === "$" || Y === "as" || Y === "theme" && H.theme === z || (Y === "forwardedAs" ? G.as = H.forwardedAs : y && !y(Y, U) || (G[Y] = H[Y], y || ae.env.NODE_ENV !== "development" || Fs(Y) || Va.has(Y) || !_t.has(U) || (Va.add(Y), console.warn('styled-components: it looks like an unknown prop "'.concat(Y, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
1230
+ for (var Y in H) H[Y] === void 0 || Y[0] === "$" || Y === "as" || Y === "theme" && H.theme === z || (Y === "forwardedAs" ? G.as = H.forwardedAs : v && !v(Y, U) || (G[Y] = H[Y], v || ae.env.NODE_ENV !== "development" || Fs(Y) || Va.has(Y) || !_t.has(U) || (Va.add(Y), console.warn('styled-components: it looks like an unknown prop "'.concat(Y, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
1231
1231
  var Z = function($, se) {
1232
1232
  var Pe = oc(), cn = $.generateAndInjectStyles(se, Pe.styleSheet, Pe.stylis);
1233
1233
  return ae.env.NODE_ENV !== "production" && Aa(cn), cn;
@@ -1235,23 +1235,23 @@ function Jh(e, n, i) {
1235
1235
  ae.env.NODE_ENV !== "production" && I.warnTooManyClasses && I.warnTooManyClasses(Z);
1236
1236
  var _ = Jn(k, F);
1237
1237
  return Z && (_ += " " + Z), H.className && (_ += " " + H.className), G[Pt(U) && !_t.has(U) ? "class" : "className"] = _, G.ref = h, Wm(U, G);
1238
- }(S, q, v);
1238
+ }(S, q, E);
1239
1239
  }
1240
1240
  f.displayName = D;
1241
1241
  var S = ln.forwardRef(f);
1242
- return S.attrs = g, S.componentStyle = E, S.displayName = D, S.shouldForwardProp = b, S.foldedComponentIds = o ? Jn(t.foldedComponentIds, t.styledComponentId) : "", S.styledComponentId = u, S.target = o ? t.target : e, Object.defineProperty(S, "defaultProps", { get: function() {
1242
+ return S.attrs = x, S.componentStyle = y, S.displayName = D, S.shouldForwardProp = b, S.foldedComponentIds = o ? Jn(t.foldedComponentIds, t.styledComponentId) : "", S.styledComponentId = u, S.target = o ? t.target : e, Object.defineProperty(S, "defaultProps", { get: function() {
1243
1243
  return this._foldedDefaultProps;
1244
1244
  }, set: function(q) {
1245
- this._foldedDefaultProps = o ? function(v) {
1245
+ this._foldedDefaultProps = o ? function(E) {
1246
1246
  for (var I = [], T = 1; T < arguments.length; T++) I[T - 1] = arguments[T];
1247
- for (var h = 0, d = I; h < d.length; h++) nc(v, d[h], !0);
1248
- return v;
1247
+ for (var h = 0, d = I; h < d.length; h++) nc(E, d[h], !0);
1248
+ return E;
1249
1249
  }({}, t.defaultProps, q) : q;
1250
- } }), ae.env.NODE_ENV !== "production" && (Dh(D, u), S.warnTooManyClasses = /* @__PURE__ */ function(q, v) {
1250
+ } }), ae.env.NODE_ENV !== "production" && (Dh(D, u), S.warnTooManyClasses = /* @__PURE__ */ function(q, E) {
1251
1251
  var I = {}, T = !1;
1252
1252
  return function(h) {
1253
1253
  if (!T && (I[h] = !0, Object.keys(I).length >= 200)) {
1254
- var d = v ? ' with the id of "'.concat(v, '"') : "";
1254
+ var d = E ? ' with the id of "'.concat(E, '"') : "";
1255
1255
  console.warn("Over ".concat(200, " classes were generated for component ").concat(q).concat(d, `.
1256
1256
  `) + `Consider using the attrs method, together with a style object for frequently changed styles.
1257
1257
  Example:
@@ -1492,8 +1492,8 @@ function hu(e = () => {
1492
1492
  o = b;
1493
1493
  }
1494
1494
  return t;
1495
- }, g = (D = (p = e()) == null ? void 0 : p.getItem(s)) != null ? D : null;
1496
- return pu(g) ? g.then(u) : u(g);
1495
+ }, x = (D = (p = e()) == null ? void 0 : p.getItem(s)) != null ? D : null;
1496
+ return pu(x) ? x.then(u) : u(x);
1497
1497
  },
1498
1498
  setItem: (s, l) => {
1499
1499
  var p;
@@ -1507,13 +1507,13 @@ function hu(e = () => {
1507
1507
  return (l = e()) == null ? void 0 : l.removeItem(s);
1508
1508
  }
1509
1509
  }, a = (s) => (l, p, D) => s(l, (u) => {
1510
- let g;
1510
+ let x;
1511
1511
  try {
1512
- g = JSON.parse(u || "");
1512
+ x = JSON.parse(u || "");
1513
1513
  } catch {
1514
- g = D;
1514
+ x = D;
1515
1515
  }
1516
- p(g);
1516
+ p(x);
1517
1517
  });
1518
1518
  let r;
1519
1519
  try {
@@ -1976,7 +1976,7 @@ const io = {
1976
1976
  }) => {
1977
1977
  const D = De();
1978
1978
  o ?? (o = t ? D.secondary.background.normal : D.brandColor);
1979
- const u = t ? D.primary.text.ultraLowContrast : D.brandTextColor, g = io[n], b = io[i];
1979
+ const u = t ? D.primary.text.ultraLowContrast : D.brandTextColor, x = io[n], b = io[i];
1980
1980
  return c ? /* @__PURE__ */ m(
1981
1981
  Eu,
1982
1982
  {
@@ -2000,7 +2000,7 @@ const io = {
2000
2000
  /* @__PURE__ */ m(b, { backgroundColor: u, color: o }),
2001
2001
  /* @__PURE__ */ m(rc, { color: u, fontSize: p, children: e })
2002
2002
  ] }) : /* @__PURE__ */ m(rc, { capitalize: !0, color: u, fontSize: p, children: e }),
2003
- /* @__PURE__ */ m(zu, { children: /* @__PURE__ */ m(g, { color: u }) })
2003
+ /* @__PURE__ */ m(zu, { children: /* @__PURE__ */ m(x, { color: u }) })
2004
2004
  ]
2005
2005
  }
2006
2006
  ) });
@@ -2544,8 +2544,8 @@ function md(e, n = 24) {
2544
2544
  i[a] = e[a] ^ e[a + 10] ^ e[a + 20] ^ e[a + 30] ^ e[a + 40];
2545
2545
  for (let a = 0; a < 10; a += 2) {
2546
2546
  const r = (a + 8) % 10, s = (a + 2) % 10, l = i[s], p = i[s + 1], D = Ya(l, p, 1) ^ i[r], u = Za(l, p, 1) ^ i[r + 1];
2547
- for (let g = 0; g < 50; g += 10)
2548
- e[a + g] ^= D, e[a + g + 1] ^= u;
2547
+ for (let x = 0; x < 50; x += 10)
2548
+ e[a + x] ^= D, e[a + x + 1] ^= u;
2549
2549
  }
2550
2550
  let t = e[2], c = e[3];
2551
2551
  for (let a = 0; a < 24; a++) {
@@ -3466,13 +3466,13 @@ class Kd extends Ud {
3466
3466
  for (let D = 0; D < 16; D++, i += 4)
3467
3467
  zn[D] = n.getUint32(i, !1);
3468
3468
  for (let D = 16; D < 64; D++) {
3469
- const u = zn[D - 15], g = zn[D - 2], b = pn(u, 7) ^ pn(u, 18) ^ u >>> 3, C = pn(g, 17) ^ pn(g, 19) ^ g >>> 10;
3469
+ const u = zn[D - 15], x = zn[D - 2], b = pn(u, 7) ^ pn(u, 18) ^ u >>> 3, C = pn(x, 17) ^ pn(x, 19) ^ x >>> 10;
3470
3470
  zn[D] = C + zn[D - 7] + b + zn[D - 16] | 0;
3471
3471
  }
3472
3472
  let { A: o, B: t, C: c, D: a, E: r, F: s, G: l, H: p } = this;
3473
3473
  for (let D = 0; D < 64; D++) {
3474
- const u = pn(r, 6) ^ pn(r, 11) ^ pn(r, 25), g = p + u + Od(r, s, l) + Gd[D] + zn[D] | 0, C = (pn(o, 2) ^ pn(o, 13) ^ pn(o, 22)) + Wd(o, t, c) | 0;
3475
- p = l, l = s, s = r, r = a + g | 0, a = c, c = t, t = o, o = g + C | 0;
3474
+ const u = pn(r, 6) ^ pn(r, 11) ^ pn(r, 25), x = p + u + Od(r, s, l) + Gd[D] + zn[D] | 0, C = (pn(o, 2) ^ pn(o, 13) ^ pn(o, 22)) + Wd(o, t, c) | 0;
3475
+ p = l, l = s, s = r, r = a + x | 0, a = c, c = t, t = o, o = x + C | 0;
3476
3476
  }
3477
3477
  o = o + this.A | 0, t = t + this.B | 0, c = c + this.C | 0, a = a + this.D | 0, r = r + this.E | 0, s = s + this.F | 0, l = l + this.G | 0, p = p + this.H | 0, this.set(o, t, c, a, r, s, l, p);
3478
3478
  }
@@ -3586,13 +3586,13 @@ function i0(e) {
3586
3586
  throw new Pd({ transaction: e });
3587
3587
  }
3588
3588
  class o0 extends oe {
3589
- constructor(n, { account: i, docsPath: o, chain: t, data: c, gas: a, gasPrice: r, maxFeePerGas: s, maxPriorityFeePerGas: l, nonce: p, to: D, value: u, stateOverride: g }) {
3590
- var x;
3589
+ constructor(n, { account: i, docsPath: o, chain: t, data: c, gas: a, gasPrice: r, maxFeePerGas: s, maxPriorityFeePerGas: l, nonce: p, to: D, value: u, stateOverride: x }) {
3590
+ var g;
3591
3591
  const b = i ? lt(i) : void 0;
3592
3592
  let C = ql({
3593
3593
  from: b == null ? void 0 : b.address,
3594
3594
  to: D,
3595
- value: typeof u < "u" && `${Fd(u)} ${((x = t == null ? void 0 : t.nativeCurrency) == null ? void 0 : x.symbol) || "ETH"}`,
3595
+ value: typeof u < "u" && `${Fd(u)} ${((g = t == null ? void 0 : t.nativeCurrency) == null ? void 0 : g.symbol) || "ETH"}`,
3596
3596
  data: c,
3597
3597
  gas: a,
3598
3598
  gasPrice: typeof r < "u" && `${$n(r)} gwei`,
@@ -3600,8 +3600,8 @@ class o0 extends oe {
3600
3600
  maxPriorityFeePerGas: typeof l < "u" && `${$n(l)} gwei`,
3601
3601
  nonce: p
3602
3602
  });
3603
- g && (C += `
3604
- ${Ld(g)}`), super(n.shortMessage, {
3603
+ x && (C += `
3604
+ ${Ld(x)}`), super(n.shortMessage, {
3605
3605
  cause: n,
3606
3606
  docsPath: o,
3607
3607
  metaMessages: [
@@ -3768,7 +3768,7 @@ function d0(e, n) {
3768
3768
  function D0(e, n) {
3769
3769
  const { authorizationList: i, chainId: o, gas: t, nonce: c, to: a, value: r, maxFeePerGas: s, maxPriorityFeePerGas: l, accessList: p, data: D } = e;
3770
3770
  l0(e);
3771
- const u = Do(p), g = u0(i);
3771
+ const u = Do(p), x = u0(i);
3772
3772
  return ji([
3773
3773
  "0x04",
3774
3774
  Hn([
@@ -3781,7 +3781,7 @@ function D0(e, n) {
3781
3781
  r ? ee(r) : "0x",
3782
3782
  D ?? "0x",
3783
3783
  u,
3784
- g,
3784
+ x,
3785
3785
  ...Ii(e, n)
3786
3786
  ])
3787
3787
  ]);
@@ -3789,17 +3789,17 @@ function D0(e, n) {
3789
3789
  function x0(e, n) {
3790
3790
  const { chainId: i, gas: o, nonce: t, to: c, value: a, maxFeePerBlobGas: r, maxFeePerGas: s, maxPriorityFeePerGas: l, accessList: p, data: D } = e;
3791
3791
  m0(e);
3792
- let u = e.blobVersionedHashes, g = e.sidecars;
3793
- if (e.blobs && (typeof u > "u" || typeof g > "u")) {
3794
- const S = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((I) => Mn(I)), q = e.kzg, v = Nl({
3792
+ let u = e.blobVersionedHashes, x = e.sidecars;
3793
+ if (e.blobs && (typeof u > "u" || typeof x > "u")) {
3794
+ const S = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((I) => Mn(I)), q = e.kzg, E = Nl({
3795
3795
  blobs: S,
3796
3796
  kzg: q
3797
3797
  });
3798
3798
  if (typeof u > "u" && (u = Jd({
3799
- commitments: v
3800
- })), typeof g > "u") {
3801
- const I = Vl({ blobs: S, commitments: v, kzg: q });
3802
- g = n0({ blobs: S, commitments: v, proofs: I });
3799
+ commitments: E
3800
+ })), typeof x > "u") {
3801
+ const I = Vl({ blobs: S, commitments: E, kzg: q });
3802
+ x = n0({ blobs: S, commitments: E, proofs: I });
3803
3803
  }
3804
3804
  }
3805
3805
  const b = Do(p), C = [
@@ -3815,16 +3815,16 @@ function x0(e, n) {
3815
3815
  r ? ee(r) : "0x",
3816
3816
  u ?? [],
3817
3817
  ...Ii(e, n)
3818
- ], x = [], E = [], f = [];
3819
- if (g)
3820
- for (let S = 0; S < g.length; S++) {
3821
- const { blob: q, commitment: v, proof: I } = g[S];
3822
- x.push(q), E.push(v), f.push(I);
3818
+ ], g = [], y = [], f = [];
3819
+ if (x)
3820
+ for (let S = 0; S < x.length; S++) {
3821
+ const { blob: q, commitment: E, proof: I } = x[S];
3822
+ g.push(q), y.push(E), f.push(I);
3823
3823
  }
3824
3824
  return ji([
3825
3825
  "0x03",
3826
3826
  // If sidecars are enabled, envelope turns into a "wrapper":
3827
- Hn(g ? [C, x, E, f] : C)
3827
+ Hn(x ? [C, g, y, f] : C)
3828
3828
  ]);
3829
3829
  }
3830
3830
  function g0(e, n) {
@@ -3883,10 +3883,10 @@ function b0(e, n) {
3883
3883
  return (n.v - 35n) / 2n > 0 ? n.v : 27n + (n.v === 35n ? 0n : 1n);
3884
3884
  if (i > 0)
3885
3885
  return BigInt(i * 2) + BigInt(35n + n.v - 27n);
3886
- const g = 27n + (n.v === 27n ? 0n : 1n);
3887
- if (n.v !== g)
3886
+ const x = 27n + (n.v === 27n ? 0n : 1n);
3887
+ if (n.v !== x)
3888
3888
  throw new Md({ v: n.v });
3889
- return g;
3889
+ return x;
3890
3890
  })(), D = vi(n.r), u = vi(n.s);
3891
3891
  l = [
3892
3892
  ...l,
@@ -4830,21 +4830,21 @@ async function Y0(e, n) {
4830
4830
  throw new bd();
4831
4831
  const o = lt(i);
4832
4832
  try {
4833
- const { accessList: r, blockNumber: s, blockTag: l, data: p, gas: D, gasPrice: u, maxFeePerGas: g, maxPriorityFeePerGas: b, nonce: C, to: x, value: E, ...f } = n, q = (s ? Ge(s) : void 0) || l;
4833
+ const { accessList: r, blockNumber: s, blockTag: l, data: p, gas: D, gasPrice: u, maxFeePerGas: x, maxPriorityFeePerGas: b, nonce: C, to: g, value: y, ...f } = n, q = (s ? Ge(s) : void 0) || l;
4834
4834
  Td(n);
4835
- const v = (a = (c = (t = e.chain) == null ? void 0 : t.formatters) == null ? void 0 : c.transactionRequest) == null ? void 0 : a.format, T = (v || jl)({
4835
+ const E = (a = (c = (t = e.chain) == null ? void 0 : t.formatters) == null ? void 0 : c.transactionRequest) == null ? void 0 : a.format, T = (E || jl)({
4836
4836
  // Pick out extra data that might exist on the chain's transaction request type.
4837
- ...qd(f, { format: v }),
4837
+ ...qd(f, { format: E }),
4838
4838
  from: o == null ? void 0 : o.address,
4839
4839
  accessList: r,
4840
4840
  data: p,
4841
4841
  gas: D,
4842
4842
  gasPrice: u,
4843
- maxFeePerGas: g,
4843
+ maxFeePerGas: x,
4844
4844
  maxPriorityFeePerGas: b,
4845
4845
  nonce: C,
4846
- to: x,
4847
- value: E
4846
+ to: g,
4847
+ value: y
4848
4848
  }), { baseFeePerGas: h, gasLimit: d, priorityFeePerGas: A } = await e.request({
4849
4849
  method: "linea_estimateGas",
4850
4850
  params: q ? [T, q] : [T]
@@ -5252,122 +5252,122 @@ function _c(e) {
5252
5252
  const u = await this.getProvider().catch(() => null);
5253
5253
  u && (r || (r = this.onConnect.bind(this), u.on("connect", r)), l || (l = this.onSessionDelete.bind(this), u.on("session_delete", l)));
5254
5254
  },
5255
- async connect({ chainId: u, ...g } = {}) {
5255
+ async connect({ chainId: u, ...x } = {}) {
5256
5256
  var b, C;
5257
5257
  try {
5258
- const x = await this.getProvider();
5259
- if (!x)
5258
+ const g = await this.getProvider();
5259
+ if (!g)
5260
5260
  throw new nr();
5261
- s || (s = this.onDisplayUri, x.on("display_uri", s));
5262
- let E = u;
5263
- if (!E) {
5264
- const v = await ((b = D.storage) == null ? void 0 : b.getItem("state")) ?? {};
5265
- D.chains.some((T) => T.id === v.chainId) ? E = v.chainId : E = (C = D.chains[0]) == null ? void 0 : C.id;
5261
+ s || (s = this.onDisplayUri, g.on("display_uri", s));
5262
+ let y = u;
5263
+ if (!y) {
5264
+ const E = await ((b = D.storage) == null ? void 0 : b.getItem("state")) ?? {};
5265
+ D.chains.some((T) => T.id === E.chainId) ? y = E.chainId : y = (C = D.chains[0]) == null ? void 0 : C.id;
5266
5266
  }
5267
- if (!E)
5267
+ if (!y)
5268
5268
  throw new Error("No chains found on connector.");
5269
5269
  const f = await this.isChainsStale();
5270
- if (x.session && f && await x.disconnect(), !x.session || f) {
5271
- const v = D.chains.filter((I) => I.id !== E).map((I) => I.id);
5272
- await x.connect({
5273
- optionalChains: [E, ...v],
5274
- ..."pairingTopic" in g ? { pairingTopic: g.pairingTopic } : {}
5270
+ if (g.session && f && await g.disconnect(), !g.session || f) {
5271
+ const E = D.chains.filter((I) => I.id !== y).map((I) => I.id);
5272
+ await g.connect({
5273
+ optionalChains: [y, ...E],
5274
+ ..."pairingTopic" in x ? { pairingTopic: x.pairingTopic } : {}
5275
5275
  }), this.setRequestedChainsIds(D.chains.map((I) => I.id));
5276
5276
  }
5277
- const S = (await x.enable()).map((v) => vt(v)), q = await this.getChainId();
5278
- return s && (x.removeListener("display_uri", s), s = void 0), r && (x.removeListener("connect", r), r = void 0), c || (c = this.onAccountsChanged.bind(this), x.on("accountsChanged", c)), a || (a = this.onChainChanged.bind(this), x.on("chainChanged", a)), p || (p = this.onDisconnect.bind(this), x.on("disconnect", p)), l || (l = this.onSessionDelete.bind(this), x.on("session_delete", l)), { accounts: S, chainId: q };
5279
- } catch (x) {
5280
- throw /(user rejected|connection request reset)/i.test(x == null ? void 0 : x.message) ? new Et(x) : x;
5277
+ const S = (await g.enable()).map((E) => vt(E)), q = await this.getChainId();
5278
+ return s && (g.removeListener("display_uri", s), s = void 0), r && (g.removeListener("connect", r), r = void 0), c || (c = this.onAccountsChanged.bind(this), g.on("accountsChanged", c)), a || (a = this.onChainChanged.bind(this), g.on("chainChanged", a)), p || (p = this.onDisconnect.bind(this), g.on("disconnect", p)), l || (l = this.onSessionDelete.bind(this), g.on("session_delete", l)), { accounts: S, chainId: q };
5279
+ } catch (g) {
5280
+ throw /(user rejected|connection request reset)/i.test(g == null ? void 0 : g.message) ? new Et(g) : g;
5281
5281
  }
5282
5282
  },
5283
5283
  async disconnect() {
5284
5284
  const u = await this.getProvider();
5285
5285
  try {
5286
5286
  await (u == null ? void 0 : u.disconnect());
5287
- } catch (g) {
5288
- if (!/No matching key/i.test(g.message))
5289
- throw g;
5287
+ } catch (x) {
5288
+ if (!/No matching key/i.test(x.message))
5289
+ throw x;
5290
5290
  } finally {
5291
5291
  a && (u == null || u.removeListener("chainChanged", a), a = void 0), p && (u == null || u.removeListener("disconnect", p), p = void 0), r || (r = this.onConnect.bind(this), u == null || u.on("connect", r)), c && (u == null || u.removeListener("accountsChanged", c), c = void 0), l && (u == null || u.removeListener("session_delete", l), l = void 0), this.setRequestedChainsIds([]);
5292
5292
  }
5293
5293
  },
5294
5294
  async getAccounts() {
5295
- return (await this.getProvider()).accounts.map((g) => vt(g));
5295
+ return (await this.getProvider()).accounts.map((x) => vt(x));
5296
5296
  },
5297
5297
  async getProvider({ chainId: u } = {}) {
5298
5298
  var b;
5299
- async function g() {
5300
- const C = D.chains.map((E) => E.id);
5299
+ async function x() {
5300
+ const C = D.chains.map((y) => y.id);
5301
5301
  if (!C.length)
5302
5302
  return;
5303
- const { EthereumProvider: x } = await import("./index.es-DRQbWxyz.js");
5304
- return await x.init({
5303
+ const { EthereumProvider: g } = await import("./index.es-B04NcoJR.js");
5304
+ return await g.init({
5305
5305
  ...e,
5306
5306
  disableProviderPing: !0,
5307
5307
  optionalChains: C,
5308
5308
  projectId: e.projectId,
5309
- rpcMap: Object.fromEntries(D.chains.map((E) => {
5309
+ rpcMap: Object.fromEntries(D.chains.map((y) => {
5310
5310
  const [f] = M0({
5311
- chain: E,
5311
+ chain: y,
5312
5312
  transports: D.transports
5313
5313
  });
5314
- return [E.id, f];
5314
+ return [y.id, f];
5315
5315
  })),
5316
5316
  showQrModal: e.showQrModal ?? !0
5317
5317
  });
5318
5318
  }
5319
- return i || (o || (o = g()), i = await o, i == null || i.events.setMaxListeners(Number.POSITIVE_INFINITY)), u && await ((b = this.switchChain) == null ? void 0 : b.call(this, { chainId: u })), i;
5319
+ return i || (o || (o = x()), i = await o, i == null || i.events.setMaxListeners(Number.POSITIVE_INFINITY)), u && await ((b = this.switchChain) == null ? void 0 : b.call(this, { chainId: u })), i;
5320
5320
  },
5321
5321
  async getChainId() {
5322
5322
  return (await this.getProvider()).chainId;
5323
5323
  },
5324
5324
  async isAuthorized() {
5325
5325
  try {
5326
- const [u, g] = await Promise.all([
5326
+ const [u, x] = await Promise.all([
5327
5327
  this.getAccounts(),
5328
5328
  this.getProvider()
5329
5329
  ]);
5330
- return u.length ? await this.isChainsStale() && g.session ? (await g.disconnect().catch(() => {
5330
+ return u.length ? await this.isChainsStale() && x.session ? (await x.disconnect().catch(() => {
5331
5331
  }), !1) : !0 : !1;
5332
5332
  } catch {
5333
5333
  return !1;
5334
5334
  }
5335
5335
  },
5336
- async switchChain({ addEthereumChainParameter: u, chainId: g }) {
5337
- var x, E, f;
5336
+ async switchChain({ addEthereumChainParameter: u, chainId: x }) {
5337
+ var g, y, f;
5338
5338
  const b = await this.getProvider();
5339
5339
  if (!b)
5340
5340
  throw new nr();
5341
- const C = D.chains.find((S) => S.id === g);
5341
+ const C = D.chains.find((S) => S.id === x);
5342
5342
  if (!C)
5343
5343
  throw new op(new k0());
5344
5344
  try {
5345
5345
  await Promise.all([
5346
5346
  new Promise((q) => {
5347
- const v = ({ chainId: I }) => {
5348
- I === g && (D.emitter.off("change", v), q());
5347
+ const E = ({ chainId: I }) => {
5348
+ I === x && (D.emitter.off("change", E), q());
5349
5349
  };
5350
- D.emitter.on("change", v);
5350
+ D.emitter.on("change", E);
5351
5351
  }),
5352
5352
  b.request({
5353
5353
  method: "wallet_switchEthereumChain",
5354
- params: [{ chainId: wa(g) }]
5354
+ params: [{ chainId: wa(x) }]
5355
5355
  })
5356
5356
  ]);
5357
5357
  const S = await this.getRequestedChainsIds();
5358
- return this.setRequestedChainsIds([...S, g]), C;
5358
+ return this.setRequestedChainsIds([...S, x]), C;
5359
5359
  } catch (S) {
5360
5360
  const q = S;
5361
5361
  if (/(user rejected)/i.test(q.message))
5362
5362
  throw new Et(q);
5363
5363
  try {
5364
- let v;
5365
- u != null && u.blockExplorerUrls ? v = u.blockExplorerUrls : v = (x = C.blockExplorers) != null && x.default.url ? [(E = C.blockExplorers) == null ? void 0 : E.default.url] : [];
5364
+ let E;
5365
+ u != null && u.blockExplorerUrls ? E = u.blockExplorerUrls : E = (g = C.blockExplorers) != null && g.default.url ? [(y = C.blockExplorers) == null ? void 0 : y.default.url] : [];
5366
5366
  let I;
5367
5367
  (f = u == null ? void 0 : u.rpcUrls) != null && f.length ? I = u.rpcUrls : I = [...C.rpcUrls.default.http];
5368
5368
  const T = {
5369
- blockExplorerUrls: v,
5370
- chainId: wa(g),
5369
+ blockExplorerUrls: E,
5370
+ chainId: wa(x),
5371
5371
  chainName: (u == null ? void 0 : u.chainName) ?? C.name,
5372
5372
  iconUrls: u == null ? void 0 : u.iconUrls,
5373
5373
  nativeCurrency: (u == null ? void 0 : u.nativeCurrency) ?? C.nativeCurrency,
@@ -5378,29 +5378,29 @@ function _c(e) {
5378
5378
  params: [T]
5379
5379
  });
5380
5380
  const h = await this.getRequestedChainsIds();
5381
- return this.setRequestedChainsIds([...h, g]), C;
5382
- } catch (v) {
5383
- throw new Et(v);
5381
+ return this.setRequestedChainsIds([...h, x]), C;
5382
+ } catch (E) {
5383
+ throw new Et(E);
5384
5384
  }
5385
5385
  }
5386
5386
  },
5387
5387
  onAccountsChanged(u) {
5388
5388
  u.length === 0 ? this.onDisconnect() : D.emitter.emit("change", {
5389
- accounts: u.map((g) => vt(g))
5389
+ accounts: u.map((x) => vt(x))
5390
5390
  });
5391
5391
  },
5392
5392
  onChainChanged(u) {
5393
- const g = Number(u);
5394
- D.emitter.emit("change", { chainId: g });
5393
+ const x = Number(u);
5394
+ D.emitter.emit("change", { chainId: x });
5395
5395
  },
5396
5396
  async onConnect(u) {
5397
- const g = Number(u.chainId), b = await this.getAccounts();
5398
- D.emitter.emit("connect", { accounts: b, chainId: g });
5397
+ const x = Number(u.chainId), b = await this.getAccounts();
5398
+ D.emitter.emit("connect", { accounts: b, chainId: x });
5399
5399
  },
5400
5400
  async onDisconnect(u) {
5401
5401
  this.setRequestedChainsIds([]), D.emitter.emit("disconnect");
5402
- const g = await this.getProvider();
5403
- c && (g.removeListener("accountsChanged", c), c = void 0), a && (g.removeListener("chainChanged", a), a = void 0), p && (g.removeListener("disconnect", p), p = void 0), l && (g.removeListener("session_delete", l), l = void 0), r || (r = this.onConnect.bind(this), g.on("connect", r));
5402
+ const x = await this.getProvider();
5403
+ c && (x.removeListener("accountsChanged", c), c = void 0), a && (x.removeListener("chainChanged", a), a = void 0), p && (x.removeListener("disconnect", p), p = void 0), l && (x.removeListener("session_delete", l), l = void 0), r || (r = this.onConnect.bind(this), x.on("connect", r));
5404
5404
  },
5405
5405
  onDisplayUri(u) {
5406
5406
  D.emitter.emit("message", { type: "display_uri", data: u });
@@ -5409,8 +5409,8 @@ function _c(e) {
5409
5409
  this.onDisconnect();
5410
5410
  },
5411
5411
  getNamespaceChainsIds() {
5412
- var g, b, C;
5413
- return i ? ((C = (b = (g = i.session) == null ? void 0 : g.namespaces[t]) == null ? void 0 : b.accounts) == null ? void 0 : C.map((x) => Number.parseInt(x.split(":")[1] || ""))) ?? [] : [];
5412
+ var x, b, C;
5413
+ return i ? ((C = (b = (x = i.session) == null ? void 0 : x.namespaces[t]) == null ? void 0 : b.accounts) == null ? void 0 : C.map((g) => Number.parseInt(g.split(":")[1] || ""))) ?? [] : [];
5414
5414
  },
5415
5415
  async getRequestedChainsIds() {
5416
5416
  var u;
@@ -5430,15 +5430,15 @@ function _c(e) {
5430
5430
  async isChainsStale() {
5431
5431
  if (!n)
5432
5432
  return !1;
5433
- const u = D.chains.map((C) => C.id), g = this.getNamespaceChainsIds();
5434
- if (g.length && !g.some((C) => u.includes(C)))
5433
+ const u = D.chains.map((C) => C.id), x = this.getNamespaceChainsIds();
5434
+ if (x.length && !x.some((C) => u.includes(C)))
5435
5435
  return !1;
5436
5436
  const b = await this.getRequestedChainsIds();
5437
5437
  return !u.every((C) => b.includes(C));
5438
5438
  },
5439
5439
  async setRequestedChainsIds(u) {
5440
- var g;
5441
- await ((g = D.storage) == null ? void 0 : g.setItem(this.requestedChainsStorageKey, u));
5440
+ var x;
5441
+ await ((x = D.storage) == null ? void 0 : x.setItem(this.requestedChainsStorageKey, u));
5442
5442
  },
5443
5443
  get requestedChainsStorageKey() {
5444
5444
  return `${this.id}.requestedChains`;
@@ -5654,7 +5654,7 @@ const qr = [0.1, 0.5, 1, 3], _0 = [
5654
5654
  ], to = 6;
5655
5655
  var $0 = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, It = Math.ceil, Qe = Math.floor, Ue = "[BigNumber Error] ", jr = Ue + "Number primitive has more than 15 significant digits: ", rn = 1e14, ne = 14, Ht = 9007199254740991, Tt = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], Sn = 1e7, Ie = 1e9;
5656
5656
  function $l(e) {
5657
- var n, i, o, t = f.prototype = { constructor: f, toString: null, valueOf: null }, c = new f(1), a = 20, r = 4, s = -7, l = 21, p = -1e7, D = 1e7, u = !1, g = 1, b = 0, C = {
5657
+ var n, i, o, t = f.prototype = { constructor: f, toString: null, valueOf: null }, c = new f(1), a = 20, r = 4, s = -7, l = 21, p = -1e7, D = 1e7, u = !1, x = 1, b = 0, C = {
5658
5658
  prefix: "",
5659
5659
  groupSize: 3,
5660
5660
  secondaryGroupSize: 0,
@@ -5664,9 +5664,9 @@ function $l(e) {
5664
5664
  fractionGroupSeparator: " ",
5665
5665
  // non-breaking space
5666
5666
  suffix: ""
5667
- }, x = "0123456789abcdefghijklmnopqrstuvwxyz", E = !0;
5667
+ }, g = "0123456789abcdefghijklmnopqrstuvwxyz", y = !0;
5668
5668
  function f(h, d) {
5669
- var A, B, k, F, M, w, P, y, z = this;
5669
+ var A, B, k, F, M, w, P, v, z = this;
5670
5670
  if (!(z instanceof f)) return new f(h, d);
5671
5671
  if (d == null) {
5672
5672
  if (h && h._isBigNumber === !0) {
@@ -5679,39 +5679,39 @@ function $l(e) {
5679
5679
  F > D ? z.c = z.e = null : (z.e = F, z.c = [h]);
5680
5680
  return;
5681
5681
  }
5682
- y = String(h);
5682
+ v = String(h);
5683
5683
  } else {
5684
- if (!$0.test(y = String(h))) return o(z, y, w);
5685
- z.s = y.charCodeAt(0) == 45 ? (y = y.slice(1), -1) : 1;
5684
+ if (!$0.test(v = String(h))) return o(z, v, w);
5685
+ z.s = v.charCodeAt(0) == 45 ? (v = v.slice(1), -1) : 1;
5686
5686
  }
5687
- (F = y.indexOf(".")) > -1 && (y = y.replace(".", "")), (M = y.search(/e/i)) > 0 ? (F < 0 && (F = M), F += +y.slice(M + 1), y = y.substring(0, M)) : F < 0 && (F = y.length);
5687
+ (F = v.indexOf(".")) > -1 && (v = v.replace(".", "")), (M = v.search(/e/i)) > 0 ? (F < 0 && (F = M), F += +v.slice(M + 1), v = v.substring(0, M)) : F < 0 && (F = v.length);
5688
5688
  } else {
5689
- if (Fe(d, 2, x.length, "Base"), d == 10 && E)
5689
+ if (Fe(d, 2, g.length, "Base"), d == 10 && y)
5690
5690
  return z = new f(h), I(z, a + z.e + 1, r);
5691
- if (y = String(h), w = typeof h == "number") {
5692
- if (h * 0 != 0) return o(z, y, w, d);
5693
- if (z.s = 1 / h < 0 ? (y = y.slice(1), -1) : 1, f.DEBUG && y.replace(/^0\.0*|\./, "").length > 15)
5691
+ if (v = String(h), w = typeof h == "number") {
5692
+ if (h * 0 != 0) return o(z, v, w, d);
5693
+ if (z.s = 1 / h < 0 ? (v = v.slice(1), -1) : 1, f.DEBUG && v.replace(/^0\.0*|\./, "").length > 15)
5694
5694
  throw Error(jr + h);
5695
5695
  } else
5696
- z.s = y.charCodeAt(0) === 45 ? (y = y.slice(1), -1) : 1;
5697
- for (A = x.slice(0, d), F = M = 0, P = y.length; M < P; M++)
5698
- if (A.indexOf(B = y.charAt(M)) < 0) {
5696
+ z.s = v.charCodeAt(0) === 45 ? (v = v.slice(1), -1) : 1;
5697
+ for (A = g.slice(0, d), F = M = 0, P = v.length; M < P; M++)
5698
+ if (A.indexOf(B = v.charAt(M)) < 0) {
5699
5699
  if (B == ".") {
5700
5700
  if (M > F) {
5701
5701
  F = P;
5702
5702
  continue;
5703
5703
  }
5704
- } else if (!k && (y == y.toUpperCase() && (y = y.toLowerCase()) || y == y.toLowerCase() && (y = y.toUpperCase()))) {
5704
+ } else if (!k && (v == v.toUpperCase() && (v = v.toLowerCase()) || v == v.toLowerCase() && (v = v.toUpperCase()))) {
5705
5705
  k = !0, M = -1, F = 0;
5706
5706
  continue;
5707
5707
  }
5708
5708
  return o(z, String(h), w, d);
5709
5709
  }
5710
- w = !1, y = i(y, d, 10, z.s), (F = y.indexOf(".")) > -1 ? y = y.replace(".", "") : F = y.length;
5710
+ w = !1, v = i(v, d, 10, z.s), (F = v.indexOf(".")) > -1 ? v = v.replace(".", "") : F = v.length;
5711
5711
  }
5712
- for (M = 0; y.charCodeAt(M) === 48; M++) ;
5713
- for (P = y.length; y.charCodeAt(--P) === 48; ) ;
5714
- if (y = y.slice(M, ++P)) {
5712
+ for (M = 0; v.charCodeAt(M) === 48; M++) ;
5713
+ for (P = v.length; v.charCodeAt(--P) === 48; ) ;
5714
+ if (v = v.slice(M, ++P)) {
5715
5715
  if (P -= M, w && f.DEBUG && P > 15 && (h > Ht || h !== Qe(h)))
5716
5716
  throw Error(jr + z.s * h);
5717
5717
  if ((F = F - M - 1) > D)
@@ -5720,13 +5720,13 @@ function $l(e) {
5720
5720
  z.c = [z.e = 0];
5721
5721
  else {
5722
5722
  if (z.e = F, z.c = [], M = (F + 1) % ne, F < 0 && (M += ne), M < P) {
5723
- for (M && z.c.push(+y.slice(0, M)), P -= ne; M < P; )
5724
- z.c.push(+y.slice(M, M += ne));
5725
- M = ne - (y = y.slice(M)).length;
5723
+ for (M && z.c.push(+v.slice(0, M)), P -= ne; M < P; )
5724
+ z.c.push(+v.slice(M, M += ne));
5725
+ M = ne - (v = v.slice(M)).length;
5726
5726
  } else
5727
5727
  M -= P;
5728
- for (; M--; y += "0") ;
5729
- z.c.push(+y);
5728
+ for (; M--; v += "0") ;
5729
+ z.c.push(+v);
5730
5730
  }
5731
5731
  } else
5732
5732
  z.c = [z.e = 0];
@@ -5753,12 +5753,12 @@ function $l(e) {
5753
5753
  u = A;
5754
5754
  else
5755
5755
  throw Error(Ue + d + " not true or false: " + A);
5756
- if (h.hasOwnProperty(d = "MODULO_MODE") && (A = h[d], Fe(A, 0, 9, d), g = A), h.hasOwnProperty(d = "POW_PRECISION") && (A = h[d], Fe(A, 0, Ie, d), b = A), h.hasOwnProperty(d = "FORMAT"))
5756
+ if (h.hasOwnProperty(d = "MODULO_MODE") && (A = h[d], Fe(A, 0, 9, d), x = A), h.hasOwnProperty(d = "POW_PRECISION") && (A = h[d], Fe(A, 0, Ie, d), b = A), h.hasOwnProperty(d = "FORMAT"))
5757
5757
  if (A = h[d], typeof A == "object") C = A;
5758
5758
  else throw Error(Ue + d + " not an object: " + A);
5759
5759
  if (h.hasOwnProperty(d = "ALPHABET"))
5760
5760
  if (A = h[d], typeof A == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(A))
5761
- E = A.slice(0, 10) == "0123456789", x = A;
5761
+ y = A.slice(0, 10) == "0123456789", g = A;
5762
5762
  else
5763
5763
  throw Error(Ue + d + " invalid: " + A);
5764
5764
  } else
@@ -5769,10 +5769,10 @@ function $l(e) {
5769
5769
  EXPONENTIAL_AT: [s, l],
5770
5770
  RANGE: [p, D],
5771
5771
  CRYPTO: u,
5772
- MODULO_MODE: g,
5772
+ MODULO_MODE: x,
5773
5773
  POW_PRECISION: b,
5774
5774
  FORMAT: C,
5775
- ALPHABET: x
5775
+ ALPHABET: g
5776
5776
  };
5777
5777
  }, f.isBigNumber = function(h) {
5778
5778
  if (!h || h._isBigNumber !== !0) return !1;
@@ -5804,30 +5804,30 @@ function $l(e) {
5804
5804
  return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
5805
5805
  };
5806
5806
  return function(A) {
5807
- var B, k, F, M, w, P = 0, y = [], z = new f(c);
5807
+ var B, k, F, M, w, P = 0, v = [], z = new f(c);
5808
5808
  if (A == null ? A = a : Fe(A, 0, Ie), M = It(A / ne), u)
5809
5809
  if (crypto.getRandomValues) {
5810
5810
  for (B = crypto.getRandomValues(new Uint32Array(M *= 2)); P < M; )
5811
- w = B[P] * 131072 + (B[P + 1] >>> 11), w >= 9e15 ? (k = crypto.getRandomValues(new Uint32Array(2)), B[P] = k[0], B[P + 1] = k[1]) : (y.push(w % 1e14), P += 2);
5811
+ w = B[P] * 131072 + (B[P + 1] >>> 11), w >= 9e15 ? (k = crypto.getRandomValues(new Uint32Array(2)), B[P] = k[0], B[P + 1] = k[1]) : (v.push(w % 1e14), P += 2);
5812
5812
  P = M / 2;
5813
5813
  } else if (crypto.randomBytes) {
5814
5814
  for (B = crypto.randomBytes(M *= 7); P < M; )
5815
- w = (B[P] & 31) * 281474976710656 + B[P + 1] * 1099511627776 + B[P + 2] * 4294967296 + B[P + 3] * 16777216 + (B[P + 4] << 16) + (B[P + 5] << 8) + B[P + 6], w >= 9e15 ? crypto.randomBytes(7).copy(B, P) : (y.push(w % 1e14), P += 7);
5815
+ w = (B[P] & 31) * 281474976710656 + B[P + 1] * 1099511627776 + B[P + 2] * 4294967296 + B[P + 3] * 16777216 + (B[P + 4] << 16) + (B[P + 5] << 8) + B[P + 6], w >= 9e15 ? crypto.randomBytes(7).copy(B, P) : (v.push(w % 1e14), P += 7);
5816
5816
  P = M / 7;
5817
5817
  } else
5818
5818
  throw u = !1, Error(Ue + "crypto unavailable");
5819
5819
  if (!u)
5820
5820
  for (; P < M; )
5821
- w = d(), w < 9e15 && (y[P++] = w % 1e14);
5822
- for (M = y[--P], A %= ne, M && A && (w = Tt[ne - A], y[P] = Qe(M / w) * w); y[P] === 0; y.pop(), P--) ;
5821
+ w = d(), w < 9e15 && (v[P++] = w % 1e14);
5822
+ for (M = v[--P], A %= ne, M && A && (w = Tt[ne - A], v[P] = Qe(M / w) * w); v[P] === 0; v.pop(), P--) ;
5823
5823
  if (P < 0)
5824
- y = [F = 0];
5824
+ v = [F = 0];
5825
5825
  else {
5826
- for (F = -1; y[0] === 0; y.splice(0, 1), F -= ne) ;
5827
- for (P = 1, w = y[0]; w >= 10; w /= 10, P++) ;
5826
+ for (F = -1; v[0] === 0; v.splice(0, 1), F -= ne) ;
5827
+ for (P = 1, w = v[0]; w >= 10; w /= 10, P++) ;
5828
5828
  P < ne && (F -= ne - P);
5829
5829
  }
5830
- return z.e = F, z.c = y, z;
5830
+ return z.e = F, z.c = v, z;
5831
5831
  };
5832
5832
  }(), f.sum = function() {
5833
5833
  for (var h = 1, d = arguments, A = new f(d[0]); h < d.length; ) A = A.plus(d[h++]);
@@ -5835,39 +5835,39 @@ function $l(e) {
5835
5835
  }, i = /* @__PURE__ */ function() {
5836
5836
  var h = "0123456789";
5837
5837
  function d(A, B, k, F) {
5838
- for (var M, w = [0], P, y = 0, z = A.length; y < z; ) {
5838
+ for (var M, w = [0], P, v = 0, z = A.length; v < z; ) {
5839
5839
  for (P = w.length; P--; w[P] *= B) ;
5840
- for (w[0] += F.indexOf(A.charAt(y++)), M = 0; M < w.length; M++)
5840
+ for (w[0] += F.indexOf(A.charAt(v++)), M = 0; M < w.length; M++)
5841
5841
  w[M] > k - 1 && (w[M + 1] == null && (w[M + 1] = 0), w[M + 1] += w[M] / k | 0, w[M] %= k);
5842
5842
  }
5843
5843
  return w.reverse();
5844
5844
  }
5845
5845
  return function(A, B, k, F, M) {
5846
- var w, P, y, z, H, U, G, Y, Z = A.indexOf("."), _ = a, $ = r;
5846
+ var w, P, v, z, H, U, G, Y, Z = A.indexOf("."), _ = a, $ = r;
5847
5847
  for (Z >= 0 && (z = b, b = 0, A = A.replace(".", ""), Y = new f(B), U = Y.pow(A.length - Z), b = z, Y.c = d(
5848
5848
  Cn(Je(U.c), U.e, "0"),
5849
5849
  10,
5850
5850
  k,
5851
5851
  h
5852
- ), Y.e = Y.c.length), G = d(A, B, k, M ? (w = x, h) : (w = h, x)), y = z = G.length; G[--z] == 0; G.pop()) ;
5852
+ ), Y.e = Y.c.length), G = d(A, B, k, M ? (w = g, h) : (w = h, g)), v = z = G.length; G[--z] == 0; G.pop()) ;
5853
5853
  if (!G[0]) return w.charAt(0);
5854
- if (Z < 0 ? --y : (U.c = G, U.e = y, U.s = F, U = n(U, Y, _, $, k), G = U.c, H = U.r, y = U.e), P = y + _ + 1, Z = G[P], z = k / 2, H = H || P < 0 || G[P + 1] != null, H = $ < 4 ? (Z != null || H) && ($ == 0 || $ == (U.s < 0 ? 3 : 2)) : Z > z || Z == z && ($ == 4 || H || $ == 6 && G[P - 1] & 1 || $ == (U.s < 0 ? 8 : 7)), P < 1 || !G[0])
5854
+ if (Z < 0 ? --v : (U.c = G, U.e = v, U.s = F, U = n(U, Y, _, $, k), G = U.c, H = U.r, v = U.e), P = v + _ + 1, Z = G[P], z = k / 2, H = H || P < 0 || G[P + 1] != null, H = $ < 4 ? (Z != null || H) && ($ == 0 || $ == (U.s < 0 ? 3 : 2)) : Z > z || Z == z && ($ == 4 || H || $ == 6 && G[P - 1] & 1 || $ == (U.s < 0 ? 8 : 7)), P < 1 || !G[0])
5855
5855
  A = H ? Cn(w.charAt(1), -_, w.charAt(0)) : w.charAt(0);
5856
5856
  else {
5857
5857
  if (G.length = P, H)
5858
5858
  for (--k; ++G[--P] > k; )
5859
- G[P] = 0, P || (++y, G = [1].concat(G));
5859
+ G[P] = 0, P || (++v, G = [1].concat(G));
5860
5860
  for (z = G.length; !G[--z]; ) ;
5861
5861
  for (Z = 0, A = ""; Z <= z; A += w.charAt(G[Z++])) ;
5862
- A = Cn(A, y, w.charAt(0));
5862
+ A = Cn(A, v, w.charAt(0));
5863
5863
  }
5864
5864
  return A;
5865
5865
  };
5866
5866
  }(), n = /* @__PURE__ */ function() {
5867
5867
  function h(B, k, F) {
5868
- var M, w, P, y, z = 0, H = B.length, U = k % Sn, G = k / Sn | 0;
5868
+ var M, w, P, v, z = 0, H = B.length, U = k % Sn, G = k / Sn | 0;
5869
5869
  for (B = B.slice(); H--; )
5870
- P = B[H] % Sn, y = B[H] / Sn | 0, M = G * P + y * U, w = U * P + M % Sn * Sn + z, z = (w / F | 0) + (M / Sn | 0) + G * y, B[H] = w % F;
5870
+ P = B[H] % Sn, v = B[H] / Sn | 0, M = G * P + v * U, w = U * P + M % Sn * Sn + z, z = (w / F | 0) + (M / Sn | 0) + G * v, B[H] = w % F;
5871
5871
  return z && (B = [z].concat(B)), B;
5872
5872
  }
5873
5873
  function d(B, k, F, M) {
@@ -5888,7 +5888,7 @@ function $l(e) {
5888
5888
  for (; !B[0] && B.length > 1; B.splice(0, 1)) ;
5889
5889
  }
5890
5890
  return function(B, k, F, M, w) {
5891
- var P, y, z, H, U, G, Y, Z, _, $, se, Pe, cn, an, Gn, Le, We, Ze = B.s == k.s ? 1 : -1, Re = B.c, Me = k.c;
5891
+ var P, v, z, H, U, G, Y, Z, _, $, se, Pe, cn, an, Gn, Le, We, Ze = B.s == k.s ? 1 : -1, Re = B.c, Me = k.c;
5892
5892
  if (!Re || !Re[0] || !Me || !Me[0])
5893
5893
  return new f(
5894
5894
  // Return NaN if either NaN, or both Infinity or 0.
@@ -5897,8 +5897,8 @@ function $l(e) {
5897
5897
  Re && Re[0] == 0 || !Me ? Ze * 0 : Ze / 0
5898
5898
  )
5899
5899
  );
5900
- for (Z = new f(Ze), _ = Z.c = [], y = B.e - k.e, Ze = F + y + 1, w || (w = rn, y = _e(B.e / ne) - _e(k.e / ne), Ze = Ze / ne | 0), z = 0; Me[z] == (Re[z] || 0); z++) ;
5901
- if (Me[z] > (Re[z] || 0) && y--, Ze < 0)
5900
+ for (Z = new f(Ze), _ = Z.c = [], v = B.e - k.e, Ze = F + v + 1, w || (w = rn, v = _e(B.e / ne) - _e(k.e / ne), Ze = Ze / ne | 0), z = 0; Me[z] == (Re[z] || 0); z++) ;
5901
+ if (Me[z] > (Re[z] || 0) && v--, Ze < 0)
5902
5902
  _.push(1), H = !0;
5903
5903
  else {
5904
5904
  for (an = Re.length, Le = Me.length, z = 0, Ze += 2, U = Qe(w / (Me[0] + 1)), U > 1 && (Me = h(Me, U, w), Re = h(Re, U, w), Le = Me.length, an = Re.length), cn = Le, $ = Re.slice(0, Le), se = $.length; se < Le; $[se++] = 0) ;
@@ -5920,9 +5920,9 @@ function $l(e) {
5920
5920
  }
5921
5921
  if (w == rn) {
5922
5922
  for (z = 1, Ze = _[0]; Ze >= 10; Ze /= 10, z++) ;
5923
- I(Z, F + (Z.e = z + y * ne - 1) + 1, M, H);
5923
+ I(Z, F + (Z.e = z + v * ne - 1) + 1, M, H);
5924
5924
  } else
5925
- Z.e = y, Z.r = +H;
5925
+ Z.e = v, Z.r = +H;
5926
5926
  return Z;
5927
5927
  };
5928
5928
  }();
@@ -5945,7 +5945,7 @@ function $l(e) {
5945
5945
  B = new f(h[k]), (!B.s || (A = Kn(F, B)) === d || A === 0 && F.s === d) && (F = B);
5946
5946
  return F;
5947
5947
  }
5948
- function v(h, d, A) {
5948
+ function E(h, d, A) {
5949
5949
  for (var B = 1, k = d.length; !d[--k]; d.pop()) ;
5950
5950
  for (k = d[0]; k >= 10; k /= 10, B++) ;
5951
5951
  return (A = B + A * ne - 1) > D ? h.c = h.e = null : A < p ? h.c = [h.e = 0] : (h.e = A, h.c = d), h;
@@ -5953,14 +5953,14 @@ function $l(e) {
5953
5953
  o = /* @__PURE__ */ function() {
5954
5954
  var h = /^(-?)0([xbo])(?=\w[\w.]*$)/i, d = /^([^.]+)\.$/, A = /^\.([^.]+)$/, B = /^-?(Infinity|NaN)$/, k = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
5955
5955
  return function(F, M, w, P) {
5956
- var y, z = w ? M : M.replace(k, "");
5956
+ var v, z = w ? M : M.replace(k, "");
5957
5957
  if (B.test(z))
5958
5958
  F.s = isNaN(z) ? null : z < 0 ? -1 : 1;
5959
5959
  else {
5960
5960
  if (!w && (z = z.replace(h, function(H, U, G) {
5961
- return y = (G = G.toLowerCase()) == "x" ? 16 : G == "b" ? 2 : 8, !P || P == y ? U : H;
5962
- }), P && (y = P, z = z.replace(d, "$1").replace(A, "0.$1")), M != z))
5963
- return new f(z, y);
5961
+ return v = (G = G.toLowerCase()) == "x" ? 16 : G == "b" ? 2 : 8, !P || P == v ? U : H;
5962
+ }), P && (v = P, z = z.replace(d, "$1").replace(A, "0.$1")), M != z))
5963
+ return new f(z, v);
5964
5964
  if (f.DEBUG)
5965
5965
  throw Error(Ue + "Not a" + (P ? " base " + P : "") + " number: " + M);
5966
5966
  F.s = null;
@@ -5969,38 +5969,38 @@ function $l(e) {
5969
5969
  };
5970
5970
  }();
5971
5971
  function I(h, d, A, B) {
5972
- var k, F, M, w, P, y, z, H = h.c, U = Tt;
5972
+ var k, F, M, w, P, v, z, H = h.c, U = Tt;
5973
5973
  if (H) {
5974
5974
  e: {
5975
5975
  for (k = 1, w = H[0]; w >= 10; w /= 10, k++) ;
5976
5976
  if (F = d - k, F < 0)
5977
- F += ne, M = d, P = H[y = 0], z = Qe(P / U[k - M - 1] % 10);
5978
- else if (y = It((F + 1) / ne), y >= H.length)
5977
+ F += ne, M = d, P = H[v = 0], z = Qe(P / U[k - M - 1] % 10);
5978
+ else if (v = It((F + 1) / ne), v >= H.length)
5979
5979
  if (B) {
5980
- for (; H.length <= y; H.push(0)) ;
5980
+ for (; H.length <= v; H.push(0)) ;
5981
5981
  P = z = 0, k = 1, F %= ne, M = F - ne + 1;
5982
5982
  } else
5983
5983
  break e;
5984
5984
  else {
5985
- for (P = w = H[y], k = 1; w >= 10; w /= 10, k++) ;
5985
+ for (P = w = H[v], k = 1; w >= 10; w /= 10, k++) ;
5986
5986
  F %= ne, M = F - ne + k, z = M < 0 ? 0 : Qe(P / U[k - M - 1] % 10);
5987
5987
  }
5988
5988
  if (B = B || d < 0 || // Are there any non-zero digits after the rounding digit?
5989
5989
  // The expression n % pows10[d - j - 1] returns all digits of n to the right
5990
5990
  // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
5991
- H[y + 1] != null || (M < 0 ? P : P % U[k - M - 1]), B = A < 4 ? (z || B) && (A == 0 || A == (h.s < 0 ? 3 : 2)) : z > 5 || z == 5 && (A == 4 || B || A == 6 && // Check whether the digit to the left of the rounding digit is odd.
5992
- (F > 0 ? M > 0 ? P / U[k - M] : 0 : H[y - 1]) % 10 & 1 || A == (h.s < 0 ? 8 : 7)), d < 1 || !H[0])
5991
+ H[v + 1] != null || (M < 0 ? P : P % U[k - M - 1]), B = A < 4 ? (z || B) && (A == 0 || A == (h.s < 0 ? 3 : 2)) : z > 5 || z == 5 && (A == 4 || B || A == 6 && // Check whether the digit to the left of the rounding digit is odd.
5992
+ (F > 0 ? M > 0 ? P / U[k - M] : 0 : H[v - 1]) % 10 & 1 || A == (h.s < 0 ? 8 : 7)), d < 1 || !H[0])
5993
5993
  return H.length = 0, B ? (d -= h.e + 1, H[0] = U[(ne - d % ne) % ne], h.e = -d || 0) : H[0] = h.e = 0, h;
5994
- if (F == 0 ? (H.length = y, w = 1, y--) : (H.length = y + 1, w = U[ne - F], H[y] = M > 0 ? Qe(P / U[k - M] % U[M]) * w : 0), B)
5994
+ if (F == 0 ? (H.length = v, w = 1, v--) : (H.length = v + 1, w = U[ne - F], H[v] = M > 0 ? Qe(P / U[k - M] % U[M]) * w : 0), B)
5995
5995
  for (; ; )
5996
- if (y == 0) {
5996
+ if (v == 0) {
5997
5997
  for (F = 1, M = H[0]; M >= 10; M /= 10, F++) ;
5998
5998
  for (M = H[0] += w, w = 1; M >= 10; M /= 10, w++) ;
5999
5999
  F != w && (h.e++, H[0] == rn && (H[0] = 1));
6000
6000
  break;
6001
6001
  } else {
6002
- if (H[y] += w, H[y] != rn) break;
6003
- H[y--] = 0, w = 1;
6002
+ if (H[v] += w, H[v] != rn) break;
6003
+ H[v--] = 0, w = 1;
6004
6004
  }
6005
6005
  for (F = H.length; H[--F] === 0; H.pop()) ;
6006
6006
  }
@@ -6029,7 +6029,7 @@ function $l(e) {
6029
6029
  }, t.dividedToIntegerBy = t.idiv = function(h, d) {
6030
6030
  return n(this, new f(h, d), 0, 1);
6031
6031
  }, t.exponentiatedBy = t.pow = function(h, d) {
6032
- var A, B, k, F, M, w, P, y, z, H = this;
6032
+ var A, B, k, F, M, w, P, v, z, H = this;
6033
6033
  if (h = new f(h), h.c && !h.isInteger())
6034
6034
  throw Error(Ue + "Exponent not an integer: " + T(h));
6035
6035
  if (d != null && (d = new f(d)), w = h.e > 14, !H.c || !H.c[0] || H.c[0] == 1 && !H.e && H.c.length == 1 || !h.c || !h.c[0])
@@ -6042,19 +6042,19 @@ function $l(e) {
6042
6042
  return F = H.s < 0 && yo(h) ? -0 : 0, H.e > -1 && (F = 1 / F), new f(P ? 1 / F : F);
6043
6043
  b && (F = It(b / ne + 2));
6044
6044
  }
6045
- for (w ? (A = new f(0.5), P && (h.s = 1), y = yo(h)) : (k = Math.abs(+T(h)), y = k % 2), z = new f(c); ; ) {
6046
- if (y) {
6045
+ for (w ? (A = new f(0.5), P && (h.s = 1), v = yo(h)) : (k = Math.abs(+T(h)), v = k % 2), z = new f(c); ; ) {
6046
+ if (v) {
6047
6047
  if (z = z.times(H), !z.c) break;
6048
6048
  F ? z.c.length > F && (z.c.length = F) : B && (z = z.mod(d));
6049
6049
  }
6050
6050
  if (k) {
6051
6051
  if (k = Qe(k / 2), k === 0) break;
6052
- y = k % 2;
6052
+ v = k % 2;
6053
6053
  } else if (h = h.times(A), I(h, h.e + 1, 1), h.e > 14)
6054
- y = yo(h);
6054
+ v = yo(h);
6055
6055
  else {
6056
6056
  if (k = +T(h), k === 0) break;
6057
- y = k % 2;
6057
+ v = k % 2;
6058
6058
  }
6059
6059
  H = H.times(H), F ? H.c && H.c.length > F && (H.c.length = F) : B && (H = H.mod(d));
6060
6060
  }
@@ -6089,8 +6089,8 @@ function $l(e) {
6089
6089
  if (h = new f(h, d), d = h.s, !w || !d) return new f(NaN);
6090
6090
  if (w != d)
6091
6091
  return h.s = -d, M.plus(h);
6092
- var P = M.e / ne, y = h.e / ne, z = M.c, H = h.c;
6093
- if (!P || !y) {
6092
+ var P = M.e / ne, v = h.e / ne, z = M.c, H = h.c;
6093
+ if (!P || !v) {
6094
6094
  if (!z || !H) return z ? (h.s = -d, h) : new f(H ? M : NaN);
6095
6095
  if (!z[0] || !H[0])
6096
6096
  return H[0] ? (h.s = -d, h) : new f(z[0] ? M : (
@@ -6098,8 +6098,8 @@ function $l(e) {
6098
6098
  r == 3 ? -0 : 0
6099
6099
  ));
6100
6100
  }
6101
- if (P = _e(P), y = _e(y), z = z.slice(), w = P - y) {
6102
- for ((F = w < 0) ? (w = -w, k = z) : (y = P, k = H), k.reverse(), d = w; d--; k.push(0)) ;
6101
+ if (P = _e(P), v = _e(v), z = z.slice(), w = P - v) {
6102
+ for ((F = w < 0) ? (w = -w, k = z) : (v = P, k = H), k.reverse(), d = w; d--; k.push(0)) ;
6103
6103
  k.reverse();
6104
6104
  } else
6105
6105
  for (B = (F = (w = z.length) < (d = H.length)) ? w : d, w = d = 0; d < B; d++)
@@ -6115,22 +6115,22 @@ function $l(e) {
6115
6115
  }
6116
6116
  z[B] -= H[B];
6117
6117
  }
6118
- for (; z[0] == 0; z.splice(0, 1), --y) ;
6119
- return z[0] ? v(h, z, y) : (h.s = r == 3 ? -1 : 1, h.c = [h.e = 0], h);
6118
+ for (; z[0] == 0; z.splice(0, 1), --v) ;
6119
+ return z[0] ? E(h, z, v) : (h.s = r == 3 ? -1 : 1, h.c = [h.e = 0], h);
6120
6120
  }, t.modulo = t.mod = function(h, d) {
6121
6121
  var A, B, k = this;
6122
- return h = new f(h, d), !k.c || !h.s || h.c && !h.c[0] ? new f(NaN) : !h.c || k.c && !k.c[0] ? new f(k) : (g == 9 ? (B = h.s, h.s = 1, A = n(k, h, 0, 3), h.s = B, A.s *= B) : A = n(k, h, 0, g), h = k.minus(A.times(h)), !h.c[0] && g == 1 && (h.s = k.s), h);
6122
+ return h = new f(h, d), !k.c || !h.s || h.c && !h.c[0] ? new f(NaN) : !h.c || k.c && !k.c[0] ? new f(k) : (x == 9 ? (B = h.s, h.s = 1, A = n(k, h, 0, 3), h.s = B, A.s *= B) : A = n(k, h, 0, x), h = k.minus(A.times(h)), !h.c[0] && x == 1 && (h.s = k.s), h);
6123
6123
  }, t.multipliedBy = t.times = function(h, d) {
6124
- var A, B, k, F, M, w, P, y, z, H, U, G, Y, Z, _, $ = this, se = $.c, Pe = (h = new f(h, d)).c;
6124
+ var A, B, k, F, M, w, P, v, z, H, U, G, Y, Z, _, $ = this, se = $.c, Pe = (h = new f(h, d)).c;
6125
6125
  if (!se || !Pe || !se[0] || !Pe[0])
6126
6126
  return !$.s || !h.s || se && !se[0] && !Pe || Pe && !Pe[0] && !se ? h.c = h.e = h.s = null : (h.s *= $.s, !se || !Pe ? h.c = h.e = null : (h.c = [0], h.e = 0)), h;
6127
6127
  for (B = _e($.e / ne) + _e(h.e / ne), h.s *= $.s, P = se.length, H = Pe.length, P < H && (Y = se, se = Pe, Pe = Y, k = P, P = H, H = k), k = P + H, Y = []; k--; Y.push(0)) ;
6128
6128
  for (Z = rn, _ = Sn, k = H; --k >= 0; ) {
6129
6129
  for (A = 0, U = Pe[k] % _, G = Pe[k] / _ | 0, M = P, F = k + M; F > k; )
6130
- y = se[--M] % _, z = se[M] / _ | 0, w = G * y + z * U, y = U * y + w % _ * _ + Y[F] + A, A = (y / Z | 0) + (w / _ | 0) + G * z, Y[F--] = y % Z;
6130
+ v = se[--M] % _, z = se[M] / _ | 0, w = G * v + z * U, v = U * v + w % _ * _ + Y[F] + A, A = (v / Z | 0) + (w / _ | 0) + G * z, Y[F--] = v % Z;
6131
6131
  Y[F] = A;
6132
6132
  }
6133
- return A ? ++B : Y.splice(0, 1), v(h, Y, B);
6133
+ return A ? ++B : Y.splice(0, 1), E(h, Y, B);
6134
6134
  }, t.negated = function() {
6135
6135
  var h = new f(this);
6136
6136
  return h.s = -h.s || null, h;
@@ -6150,7 +6150,7 @@ function $l(e) {
6150
6150
  }
6151
6151
  for (k = w.length, d = P.length, k - d < 0 && (A = P, P = w, w = A, d = k), k = 0; d; )
6152
6152
  k = (w[--d] = w[d] + P[d] + k) / rn | 0, w[d] = rn === w[d] ? 0 : w[d] % rn;
6153
- return k && (w = [k].concat(w), ++M), v(h, w, M);
6153
+ return k && (w = [k].concat(w), ++M), E(h, w, M);
6154
6154
  }, t.precision = t.sd = function(h, d) {
6155
6155
  var A, B, k, F = this;
6156
6156
  if (h != null && h !== !!h)
@@ -6164,18 +6164,18 @@ function $l(e) {
6164
6164
  }, t.shiftedBy = function(h) {
6165
6165
  return Fe(h, -Ht, Ht), this.times("1e" + h);
6166
6166
  }, t.squareRoot = t.sqrt = function() {
6167
- var h, d, A, B, k, F = this, M = F.c, w = F.s, P = F.e, y = a + 4, z = new f("0.5");
6167
+ var h, d, A, B, k, F = this, M = F.c, w = F.s, P = F.e, v = a + 4, z = new f("0.5");
6168
6168
  if (w !== 1 || !M || !M[0])
6169
6169
  return new f(!w || w < 0 && (!M || M[0]) ? NaN : M ? F : 1 / 0);
6170
6170
  if (w = Math.sqrt(+T(F)), w == 0 || w == 1 / 0 ? (d = Je(M), (d.length + P) % 2 == 0 && (d += "0"), w = Math.sqrt(+d), P = _e((P + 1) / 2) - (P < 0 || P % 2), w == 1 / 0 ? d = "5e" + P : (d = w.toExponential(), d = d.slice(0, d.indexOf("e") + 1) + P), A = new f(d)) : A = new f(w + ""), A.c[0]) {
6171
- for (P = A.e, w = P + y, w < 3 && (w = 0); ; )
6172
- if (k = A, A = z.times(k.plus(n(F, k, y, 1))), Je(k.c).slice(0, w) === (d = Je(A.c)).slice(0, w))
6171
+ for (P = A.e, w = P + v, w < 3 && (w = 0); ; )
6172
+ if (k = A, A = z.times(k.plus(n(F, k, v, 1))), Je(k.c).slice(0, w) === (d = Je(A.c)).slice(0, w))
6173
6173
  if (A.e < P && --w, d = d.slice(w - 3, w + 1), d == "9999" || !B && d == "4999") {
6174
6174
  if (!B && (I(k, k.e + a + 2, 0), k.times(k).eq(F))) {
6175
6175
  A = k;
6176
6176
  break;
6177
6177
  }
6178
- y += 4, w += 4, B = 1;
6178
+ v += 4, w += 4, B = 1;
6179
6179
  } else {
6180
6180
  (!+d || !+d.slice(1) && d.charAt(0) == "5") && (I(A, A.e + a + 2, 1), h = !A.times(A).eq(F));
6181
6181
  break;
@@ -6193,10 +6193,10 @@ function $l(e) {
6193
6193
  else if (typeof A != "object")
6194
6194
  throw Error(Ue + "Argument not an object: " + A);
6195
6195
  if (B = k.toFixed(h, d), k.c) {
6196
- var F, M = B.split("."), w = +A.groupSize, P = +A.secondaryGroupSize, y = A.groupSeparator || "", z = M[0], H = M[1], U = k.s < 0, G = U ? z.slice(1) : z, Y = G.length;
6196
+ var F, M = B.split("."), w = +A.groupSize, P = +A.secondaryGroupSize, v = A.groupSeparator || "", z = M[0], H = M[1], U = k.s < 0, G = U ? z.slice(1) : z, Y = G.length;
6197
6197
  if (P && (F = w, w = P, P = F, Y -= F), w > 0 && Y > 0) {
6198
- for (F = Y % w || w, z = G.substr(0, F); F < Y; F += w) z += y + G.substr(F, w);
6199
- P > 0 && (z += y + G.slice(F)), U && (z = "-" + z);
6198
+ for (F = Y % w || w, z = G.substr(0, F); F < Y; F += w) z += v + G.substr(F, w);
6199
+ P > 0 && (z += v + G.slice(F)), U && (z = "-" + z);
6200
6200
  }
6201
6201
  B = H ? z + (A.decimalSeparator || "") + ((P = +A.fractionGroupSize) ? H.replace(
6202
6202
  new RegExp("\\d{" + P + "}\\B", "g"),
@@ -6205,22 +6205,22 @@ function $l(e) {
6205
6205
  }
6206
6206
  return (A.prefix || "") + B + (A.suffix || "");
6207
6207
  }, t.toFraction = function(h) {
6208
- var d, A, B, k, F, M, w, P, y, z, H, U, G = this, Y = G.c;
6208
+ var d, A, B, k, F, M, w, P, v, z, H, U, G = this, Y = G.c;
6209
6209
  if (h != null && (w = new f(h), !w.isInteger() && (w.c || w.s !== 1) || w.lt(c)))
6210
6210
  throw Error(Ue + "Argument " + (w.isInteger() ? "out of range: " : "not an integer: ") + T(w));
6211
6211
  if (!Y) return new f(G);
6212
- for (d = new f(c), y = A = new f(c), B = P = new f(c), U = Je(Y), F = d.e = U.length - G.e - 1, d.c[0] = Tt[(M = F % ne) < 0 ? ne + M : M], h = !h || w.comparedTo(d) > 0 ? F > 0 ? d : y : w, M = D, D = 1 / 0, w = new f(U), P.c[0] = 0; z = n(w, d, 0, 1), k = A.plus(z.times(B)), k.comparedTo(h) != 1; )
6213
- A = B, B = k, y = P.plus(z.times(k = y)), P = k, d = w.minus(z.times(k = d)), w = k;
6214
- return k = n(h.minus(A), B, 0, 1), P = P.plus(k.times(y)), A = A.plus(k.times(B)), P.s = y.s = G.s, F = F * 2, H = n(y, B, F, r).minus(G).abs().comparedTo(
6212
+ for (d = new f(c), v = A = new f(c), B = P = new f(c), U = Je(Y), F = d.e = U.length - G.e - 1, d.c[0] = Tt[(M = F % ne) < 0 ? ne + M : M], h = !h || w.comparedTo(d) > 0 ? F > 0 ? d : v : w, M = D, D = 1 / 0, w = new f(U), P.c[0] = 0; z = n(w, d, 0, 1), k = A.plus(z.times(B)), k.comparedTo(h) != 1; )
6213
+ A = B, B = k, v = P.plus(z.times(k = v)), P = k, d = w.minus(z.times(k = d)), w = k;
6214
+ return k = n(h.minus(A), B, 0, 1), P = P.plus(k.times(v)), A = A.plus(k.times(B)), P.s = v.s = G.s, F = F * 2, H = n(v, B, F, r).minus(G).abs().comparedTo(
6215
6215
  n(P, A, F, r).minus(G).abs()
6216
- ) < 1 ? [y, B] : [P, A], D = M, H;
6216
+ ) < 1 ? [v, B] : [P, A], D = M, H;
6217
6217
  }, t.toNumber = function() {
6218
6218
  return +T(this);
6219
6219
  }, t.toPrecision = function(h, d) {
6220
6220
  return h != null && Fe(h, 1, Ie), S(this, h, d, 2);
6221
6221
  }, t.toString = function(h) {
6222
6222
  var d, A = this, B = A.s, k = A.e;
6223
- return k === null ? B ? (d = "Infinity", B < 0 && (d = "-" + d)) : d = "NaN" : (h == null ? d = k <= s || k >= l ? vo(Je(A.c), k) : Cn(Je(A.c), k, "0") : h === 10 && E ? (A = I(new f(A), a + k + 1, r), d = Cn(Je(A.c), A.e, "0")) : (Fe(h, 2, x.length, "Base"), d = i(Cn(Je(A.c), k, "0"), 10, h, B, !0)), B < 0 && A.c[0] && (d = "-" + d)), d;
6223
+ return k === null ? B ? (d = "Infinity", B < 0 && (d = "-" + d)) : d = "NaN" : (h == null ? d = k <= s || k >= l ? vo(Je(A.c), k) : Cn(Je(A.c), k, "0") : h === 10 && y ? (A = I(new f(A), a + k + 1, r), d = Cn(Je(A.c), A.e, "0")) : (Fe(h, 2, g.length, "Base"), d = i(Cn(Je(A.c), k, "0"), 10, h, B, !0)), B < 0 && A.c[0] && (d = "-" + d)), d;
6224
6224
  }, t.valueOf = t.toJSON = function() {
6225
6225
  return T(this);
6226
6226
  }, t._isBigNumber = !0, t[Symbol.toStringTag] = "BigNumber", t[Symbol.for("nodejs.util.inspect.custom")] = t.valueOf, e != null && f.set(e), f;
@@ -6286,7 +6286,7 @@ const In = (e, n = to) => new ve(e).shiftedBy(n).toFixed(0), nn = (e, n = to) =>
6286
6286
  );
6287
6287
  }, [t, e, o]);
6288
6288
  !n && i ? n = nn(i, a == null ? void 0 : a.decimals) : !i && n && (i = In(n, a == null ? void 0 : a.decimals));
6289
- const r = a == null ? void 0 : a.logoURI, s = (a == null ? void 0 : a.recommendedSymbol) ?? (a == null ? void 0 : a.symbol), l = c == null ? void 0 : c.find((b) => o ? b.chainID === o : b.chainID === (a == null ? void 0 : a.chainID)), p = l != null && l.prettyName && (l == null ? void 0 : l.prettyName.length) !== 0 ? l.prettyName : void 0, D = l != null && l.chainName && (l == null ? void 0 : l.chainName.length) !== 0 ? l.chainName : void 0, u = l == null ? void 0 : l.logoURI, g = a == null ? void 0 : a.decimals;
6289
+ const r = a == null ? void 0 : a.logoURI, s = (a == null ? void 0 : a.recommendedSymbol) ?? (a == null ? void 0 : a.symbol), l = c == null ? void 0 : c.find((b) => o ? b.chainID === o : b.chainID === (a == null ? void 0 : a.chainID)), p = l != null && l.prettyName && (l == null ? void 0 : l.prettyName.length) !== 0 ? l.prettyName : void 0, D = l != null && l.chainName && (l == null ? void 0 : l.chainName.length) !== 0 ? l.chainName : void 0, u = l == null ? void 0 : l.logoURI, x = a == null ? void 0 : a.decimals;
6290
6290
  return o ? {
6291
6291
  asset: a,
6292
6292
  chain: l,
@@ -6296,7 +6296,7 @@ const In = (e, n = to) => new ve(e).shiftedBy(n).toFixed(0), nn = (e, n = to) =>
6296
6296
  symbol: s,
6297
6297
  amount: n,
6298
6298
  tokenAmount: i,
6299
- decimals: g
6299
+ decimals: x
6300
6300
  } : {
6301
6301
  asset: void 0,
6302
6302
  chain: void 0,
@@ -6437,7 +6437,7 @@ const ci = N(K).attrs({
6437
6437
  a ?? 0,
6438
6438
  r ?? 0,
6439
6439
  !0
6440
- )}%`, g = Oe({
6440
+ )}%`, x = Oe({
6441
6441
  assetDenom: s,
6442
6442
  chainId: l,
6443
6443
  tokenAmount: t
@@ -6470,9 +6470,9 @@ const ci = N(K).attrs({
6470
6470
  " of your input value with this trade",
6471
6471
  /* @__PURE__ */ m("br", {}),
6472
6472
  "Input: ",
6473
- g == null ? void 0 : g.amount,
6473
+ x == null ? void 0 : x.amount,
6474
6474
  " ",
6475
- g == null ? void 0 : g.symbol,
6475
+ x == null ? void 0 : x.symbol,
6476
6476
  " (",
6477
6477
  a,
6478
6478
  ")",
@@ -7349,14 +7349,14 @@ function MD(e) {
7349
7349
  let p = "";
7350
7350
  i ? p = "axelarTransfer" : o ? p = "ibcTransfer" : t ? p = "cctpTransfer" : c ? p = "hyperlaneTransfer" : a ? p = "opInitTransfer" : r ? p = "goFastTransfer" : s ? p = "stargateTransfer" : l && (p = "eurekaTransfer");
7351
7351
  const D = (C) => {
7352
- var x, E, f, S, q, v, I, T, h, d;
7352
+ var g, y, f, S, q, E, I, T, h, d;
7353
7353
  switch (p) {
7354
7354
  case "ibcTransfer":
7355
- return C === "send" ? (x = o.packetTxs.sendTx) == null ? void 0 : x.explorerLink : (E = o.packetTxs.receiveTx) == null ? void 0 : E.explorerLink;
7355
+ return C === "send" ? (g = o.packetTxs.sendTx) == null ? void 0 : g.explorerLink : (y = o.packetTxs.receiveTx) == null ? void 0 : y.explorerLink;
7356
7356
  case "eurekaTransfer":
7357
7357
  return C === "send" ? (f = l.packetTxs.sendTx) == null ? void 0 : f.explorerLink : (S = l.packetTxs.receiveTx) == null ? void 0 : S.explorerLink;
7358
7358
  case "goFastTransfer":
7359
- return C === "send" ? (q = r.txs.orderSubmittedTx) == null ? void 0 : q.explorerLink : (v = r.txs.orderFilledTx) == null ? void 0 : v.explorerLink;
7359
+ return C === "send" ? (q = r.txs.orderSubmittedTx) == null ? void 0 : q.explorerLink : (E = r.txs.orderFilledTx) == null ? void 0 : E.explorerLink;
7360
7360
  case "axelarTransfer":
7361
7361
  return i.axelarScanLink;
7362
7362
  default:
@@ -7375,10 +7375,10 @@ function MD(e) {
7375
7375
  ...l,
7376
7376
  fromExplorerLink: D("send"),
7377
7377
  toExplorerLink: D("receive")
7378
- }, g = SD(u.state);
7378
+ }, x = SD(u.state);
7379
7379
  return {
7380
7380
  ...u,
7381
- status: g
7381
+ status: x
7382
7382
  };
7383
7383
  }
7384
7384
  function PD(e) {
@@ -7439,16 +7439,16 @@ const ca = ({
7439
7439
  chainID: q.chainID,
7440
7440
  txHash: q.txHash
7441
7441
  }))
7442
- ), u = PD(D), g = D.every((q) => q.state === "STATE_COMPLETED_SUCCESS" || q.state === "STATE_COMPLETED_ERROR" || q.state === "STATE_ABANDONED"), b = l === D.length && g;
7442
+ ), u = PD(D), x = D.every((q) => q.state === "STATE_COMPLETED_SUCCESS" || q.state === "STATE_COMPLETED_ERROR" || q.state === "STATE_ABANDONED"), b = l === D.length && x;
7443
7443
  b && c(!0);
7444
- const C = D.some((q) => q.state === "STATE_COMPLETED_ERROR" || q.state === "STATE_ABANDONED"), x = D.length > 0 ? zD(D[D.length - 1].state) : void 0;
7445
- x === "failed" && b && Cs("TransactionFailed");
7446
- const E = (S = D.reverse().find((q) => q.transferAssetRelease)) == null ? void 0 : S.transferAssetRelease, f = {
7447
- isSuccess: b && !C && x === "success",
7448
- lastTxStatus: x,
7444
+ const C = D.some((q) => q.state === "STATE_COMPLETED_ERROR" || q.state === "STATE_ABANDONED"), g = D.length > 0 ? zD(D[D.length - 1].state) : void 0;
7445
+ g === "failed" && b && Cs("TransactionFailed");
7446
+ const y = (S = D.reverse().find((q) => q.transferAssetRelease)) == null ? void 0 : S.transferAssetRelease, f = {
7447
+ isSuccess: b && !C && g === "success",
7448
+ lastTxStatus: g,
7449
7449
  isSettled: b,
7450
7450
  transferEvents: u,
7451
- transferAssetRelease: E || void 0
7451
+ transferAssetRelease: y || void 0
7452
7452
  };
7453
7453
  return r(f), f;
7454
7454
  },
@@ -7464,16 +7464,16 @@ function rm(e = 250) {
7464
7464
  // Set initial value here too
7465
7465
  (r, s, l, p, D) => {
7466
7466
  clearTimeout(r(n));
7467
- const u = r(i), g = typeof l == "function" ? l(u) : l, b = () => {
7468
- s(i, g), s(o, !0), s(t, !0);
7467
+ const u = r(i), x = typeof l == "function" ? l(u) : l, b = () => {
7468
+ s(i, x), s(o, !0), s(t, !0);
7469
7469
  }, C = () => {
7470
- s(c, g), s(o, !1), p == null || p();
7470
+ s(c, x), s(o, !1), p == null || p();
7471
7471
  };
7472
7472
  D ? C() : b();
7473
- const x = setTimeout(() => {
7473
+ const g = setTimeout(() => {
7474
7474
  C();
7475
7475
  }, e);
7476
- x && s(n, x);
7476
+ g && s(n, g);
7477
7477
  }
7478
7478
  ), a = Q(null, (r, s, l) => {
7479
7479
  clearTimeout(r(n)), s(o, !1);
@@ -7666,13 +7666,13 @@ const Ni = Q(), {
7666
7666
  const c = (b, C) => {
7667
7667
  if (!(!b || !C) && i)
7668
7668
  return i.find(
7669
- (x) => x.denom.toLowerCase() === b.toLowerCase() && x.chainID === C
7669
+ (g) => g.denom.toLowerCase() === b.toLowerCase() && g.chainID === C
7670
7670
  );
7671
7671
  };
7672
7672
  if (!o || !i) return;
7673
- const { srcAssetDenom: a, srcChainId: r, destAssetDenom: s, destChainId: l, amountIn: p, amountOut: D } = o, u = c(a, r), g = c(s, l);
7673
+ const { srcAssetDenom: a, srcChainId: r, destAssetDenom: s, destChainId: l, amountIn: p, amountOut: D } = o, u = c(a, r), x = c(s, l);
7674
7674
  n(Ke, {
7675
- ...g,
7675
+ ...x,
7676
7676
  locked: o == null ? void 0 : o.destLocked,
7677
7677
  amount: D == null ? void 0 : D.toString()
7678
7678
  }), n(de, {
@@ -40084,7 +40084,7 @@ const KD = [
40084
40084
  bech32PrefixConsAddr: "lomvalcons",
40085
40085
  bech32PrefixConsPub: "lomvalconspub"
40086
40086
  }
40087
- }, la = KD, hm = XD, JD = [...la, ...hm, ZD], QD = YD, _D = (e) => {
40087
+ }, la = KD, hm = [...XD, ZD], JD = [...la, ...hm], QD = YD, _D = (e) => {
40088
40088
  const n = JD.find((i) => i.chainId === e);
40089
40089
  if (n)
40090
40090
  return n;
@@ -40132,10 +40132,10 @@ const KD = [
40132
40132
  sourceAssetChainID: l,
40133
40133
  destAssetDenom: p,
40134
40134
  destAssetChainID: D
40135
- } = i, u = r[0], g = r[r.length - 1], b = {};
40136
- (C = i == null ? void 0 : i.requiredChainAddresses) == null || C.forEach((x, E) => {
40137
- b[E] = {
40138
- chainID: x,
40135
+ } = i, u = r[0], x = r[r.length - 1], b = {};
40136
+ (C = i == null ? void 0 : i.requiredChainAddresses) == null || C.forEach((g, y) => {
40137
+ b[y] = {
40138
+ chainID: g,
40139
40139
  address: ""
40140
40140
  };
40141
40141
  }), n(Un, b), n(Ve, {
@@ -40147,51 +40147,51 @@ const KD = [
40147
40147
  isValidatingGasBalance: void 0,
40148
40148
  transactionsSigned: 0
40149
40149
  }), n(um, {
40150
- onTransactionUpdated: (x) => {
40151
- var E;
40152
- V("execute route: transaction updated", { txInfo: x }), ((E = x.status) == null ? void 0 : E.status) !== "STATE_COMPLETED" && n(Wr, x, a);
40150
+ onTransactionUpdated: (g) => {
40151
+ var y;
40152
+ V("execute route: transaction updated", { txInfo: g }), ((y = g.status) == null ? void 0 : y.status) !== "STATE_COMPLETED" && n(Wr, g, a);
40153
40153
  },
40154
- onApproveAllowance: async ({ status: x, allowance: E }) => {
40155
- V("execute route: approve allowance", { status: x, allowance: E }), E && x === "pending" && n(Yn, "approving");
40154
+ onApproveAllowance: async ({ status: g, allowance: y }) => {
40155
+ V("execute route: approve allowance", { status: g, allowance: y }), y && g === "pending" && n(Yn, "approving");
40156
40156
  },
40157
- onTransactionBroadcast: async (x) => {
40157
+ onTransactionBroadcast: async (g) => {
40158
40158
  var S;
40159
- V("execute route: transaction broadcasted", { txInfo: x }), ks({ id: x == null ? void 0 : x.txHash });
40160
- const E = o == null ? void 0 : o.find((q) => q.chainID === x.chainID), f = vc({
40161
- chainID: x.chainID,
40162
- chainType: E == null ? void 0 : E.chainType,
40163
- txHash: x.txHash
40159
+ V("execute route: transaction broadcasted", { txInfo: g }), ks({ id: g == null ? void 0 : g.txHash });
40160
+ const y = o == null ? void 0 : o.find((q) => q.chainID === g.chainID), f = vc({
40161
+ chainID: g.chainID,
40162
+ chainType: y == null ? void 0 : y.chainType,
40163
+ txHash: g.txHash
40164
40164
  });
40165
40165
  n(
40166
40166
  Wr,
40167
- { ...x, explorerLink: f, status: void 0 },
40167
+ { ...g, explorerLink: f, status: void 0 },
40168
40168
  a
40169
40169
  ), (S = c == null ? void 0 : c.onTransactionBroadcasted) == null || S.call(c, {
40170
- chainId: x.chainID,
40171
- txHash: x.txHash,
40170
+ chainId: g.chainID,
40171
+ txHash: g.txHash,
40172
40172
  explorerLink: f ?? "",
40173
40173
  sourceAddress: u,
40174
- destinationAddress: g,
40174
+ destinationAddress: x,
40175
40175
  sourceAssetDenom: s,
40176
40176
  sourceAssetChainID: l,
40177
40177
  destAssetDenom: p,
40178
40178
  destAssetChainID: D
40179
40179
  });
40180
40180
  },
40181
- onTransactionCompleted: async (x, E, f) => {
40182
- var v;
40183
- V("execute route: transaction completed", { chainId: x, txHash: E, status: f }), Jo("txCompleted", !0);
40184
- const S = o == null ? void 0 : o.find((I) => I.chainID === x), q = vc({
40185
- chainID: x,
40181
+ onTransactionCompleted: async (g, y, f) => {
40182
+ var E;
40183
+ V("execute route: transaction completed", { chainId: g, txHash: y, status: f }), Jo("txCompleted", !0);
40184
+ const S = o == null ? void 0 : o.find((I) => I.chainID === g), q = vc({
40185
+ chainID: g,
40186
40186
  chainType: S == null ? void 0 : S.chainType,
40187
- txHash: E
40187
+ txHash: y
40188
40188
  });
40189
- (v = c == null ? void 0 : c.onTransactionComplete) == null || v.call(c, {
40190
- chainId: x,
40191
- txHash: E,
40189
+ (E = c == null ? void 0 : c.onTransactionComplete) == null || E.call(c, {
40190
+ chainId: g,
40191
+ txHash: y,
40192
40192
  explorerLink: q ?? "",
40193
40193
  sourceAddress: u,
40194
- destinationAddress: g,
40194
+ destinationAddress: x,
40195
40195
  sourceAssetDenom: s,
40196
40196
  sourceAssetChainID: l,
40197
40197
  destAssetDenom: p,
@@ -40199,18 +40199,18 @@ const KD = [
40199
40199
  });
40200
40200
  },
40201
40201
  onTransactionSigned: async () => {
40202
- V("execute route: transaction signed"), n(Ve, (x) => ({
40203
- ...x,
40204
- transactionsSigned: (x.transactionsSigned ?? 0) + 1
40202
+ V("execute route: transaction signed"), n(Ve, (g) => ({
40203
+ ...g,
40204
+ transactionsSigned: (g.transactionsSigned ?? 0) + 1
40205
40205
  })), n(Yn, "pending");
40206
40206
  },
40207
- onError: (x, E) => {
40207
+ onError: (g, y) => {
40208
40208
  var S;
40209
- V("execute route: error", { error: x }), (S = c == null ? void 0 : c.onTransactionFailed) == null || S.call(c, {
40210
- error: x == null ? void 0 : x.message
40209
+ V("execute route: error", { error: g }), (S = c == null ? void 0 : c.onTransactionFailed) == null || S.call(c, {
40210
+ error: g == null ? void 0 : g.message
40211
40211
  });
40212
- const f = E == null ? void 0 : E[(E == null ? void 0 : E.length) - 1];
40213
- GD(x) ? (V("error page: user rejected request"), n(je, {
40212
+ const f = y == null ? void 0 : y[(y == null ? void 0 : y.length) - 1];
40213
+ GD(g) ? (V("error page: user rejected request"), n(je, {
40214
40214
  errorType: Ce.AuthFailed,
40215
40215
  onClickBack: () => {
40216
40216
  n(Yn, "unconfirmed");
@@ -40227,14 +40227,14 @@ const KD = [
40227
40227
  }
40228
40228
  })) : (V("error page: unexpected error"), n(je, {
40229
40229
  errorType: Ce.Unexpected,
40230
- error: x,
40230
+ error: g,
40231
40231
  onClickBack: () => {
40232
40232
  n(Yn, "unconfirmed");
40233
40233
  }
40234
40234
  }));
40235
40235
  },
40236
- onValidateGasBalance: async (x) => {
40237
- V("execute route: validate gas balance", { props: x }), n(e2, x);
40236
+ onValidateGasBalance: async (g) => {
40237
+ V("execute route: validate gas balance", { props: g }), n(e2, g);
40238
40238
  }
40239
40239
  });
40240
40240
  }), e2 = Q(
@@ -40286,10 +40286,10 @@ const KD = [
40286
40286
  };
40287
40287
  }), dm = Q(), Dm = Zm((e) => {
40288
40288
  var b;
40289
- const n = e(fn), { route: i, userAddresses: o, transactionDetailsArray: t } = e(Ve), c = e(um), a = e(i2), r = e(dm), s = e(ai), { timeoutSeconds: l } = e(xt), { data: p } = e(Ee), D = e(de), u = e(pl), g = (b = p == null ? void 0 : p.find((C) => C.chainID === (D == null ? void 0 : D.chainID))) == null ? void 0 : b.chainType;
40290
- if (g) {
40291
- const { deeplink: C, recentWalletData: x } = u[g];
40292
- g === R.Cosmos ? (window.localStorage.removeItem(lc), window.localStorage.removeItem(mc)) : (window.localStorage.setItem(lc, C), window.localStorage.setItem(mc, x));
40289
+ const n = e(fn), { route: i, userAddresses: o, transactionDetailsArray: t } = e(Ve), c = e(um), a = e(i2), r = e(dm), s = e(ai), { timeoutSeconds: l } = e(xt), { data: p } = e(Ee), D = e(de), u = e(pl), x = (b = p == null ? void 0 : p.find((C) => C.chainID === (D == null ? void 0 : D.chainID))) == null ? void 0 : b.chainType;
40290
+ if (x) {
40291
+ const { deeplink: C, recentWalletData: g } = u[x];
40292
+ x === R.Cosmos ? (window.localStorage.removeItem(lc), window.localStorage.removeItem(mc)) : (window.localStorage.setItem(lc, C), window.localStorage.setItem(mc, g));
40293
40293
  }
40294
40294
  return {
40295
40295
  gcTime: 1 / 0,
@@ -40307,15 +40307,15 @@ const KD = [
40307
40307
  getFallbackGasAmount: a,
40308
40308
  ...c
40309
40309
  });
40310
- } catch (x) {
40311
- console.error(x), (C = c == null ? void 0 : c.onError) == null || C.call(c, x, t);
40310
+ } catch (g) {
40311
+ console.error(g), (C = c == null ? void 0 : c.onError) == null || C.call(c, g, t);
40312
40312
  }
40313
40313
  return null;
40314
40314
  }
40315
40315
  },
40316
40316
  onError: (C) => {
40317
- var x;
40318
- console.error(C), (x = c == null ? void 0 : c.onError) == null || x.call(c, C, t);
40317
+ var g;
40318
+ console.error(C), (g = c == null ? void 0 : c.onError) == null || g.call(c, C, t);
40319
40319
  }
40320
40320
  };
40321
40321
  }), ft = (e) => W(() => {
@@ -40567,8 +40567,8 @@ const KD = [
40567
40567
  )
40568
40568
  }
40569
40569
  ), s2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t }) => {
40570
- const [c, a] = re(""), r = bi(null), s = gs(), [l, p] = re(), D = L(Vc), u = L($c), g = async (C) => new Promise((x) => setTimeout(x, C)), b = we(() => {
40571
- o == null || o(!1), g(75).then(() => {
40570
+ const [c, a] = re(""), r = bi(null), s = gs(), [l, p] = re(), D = L(Vc), u = L($c), x = async (C) => new Promise((g) => setTimeout(g, C)), b = we(() => {
40571
+ o == null || o(!1), x(75).then(() => {
40572
40572
  s.remove();
40573
40573
  });
40574
40574
  }, [s, o]);
@@ -40577,16 +40577,16 @@ const KD = [
40577
40577
  }, [b, s.visible, l]), ce(() => {
40578
40578
  const C = (S) => {
40579
40579
  S.key === "Escape" && s.hide();
40580
- }, x = (S) => {
40580
+ }, g = (S) => {
40581
40581
  r.current !== S.target && s.visible && s.hide();
40582
40582
  };
40583
40583
  o == null || o(!0);
40584
- const E = () => {
40584
+ const y = () => {
40585
40585
  const S = document.documentElement;
40586
40586
  return S.scrollHeight > S.clientHeight;
40587
40587
  }, f = window.getComputedStyle(document.documentElement).overflow;
40588
- return (!n || !E()) && (a(f), document.documentElement.style.overflow = "hidden"), window.addEventListener("keydown", C), window.addEventListener("click", x), () => {
40589
- window.removeEventListener("keydown", C), window.removeEventListener("click", x), o == null || o(!1), document.documentElement.style.overflow = f;
40588
+ return (!n || !y()) && (a(f), document.documentElement.style.overflow = "hidden"), window.addEventListener("keydown", C), window.addEventListener("click", g), () => {
40589
+ window.removeEventListener("keydown", C), window.removeEventListener("click", g), o == null || o(!1), document.documentElement.style.overflow = f;
40590
40590
  };
40591
40591
  }, [b, n, s, o, c]), D && l === void 0 ? null : Sp(
40592
40592
  /* @__PURE__ */ m(_s, { theme: t, children: /* @__PURE__ */ m(u2, { drawer: n, open: s.visible, "data-root-id": u, children: /* @__PURE__ */ m(
@@ -40811,12 +40811,12 @@ const KD = [
40811
40811
  }) => {
40812
40812
  const r = De(), [s, l] = re(), p = xm(i), D = bi(null);
40813
40813
  return ce(() => {
40814
- var C, x, E;
40815
- const u = (E = (x = (C = D.current) == null ? void 0 : C.nativeElement) == null ? void 0 : x.getElementsByClassName(
40814
+ var C, g, y;
40815
+ const u = (y = (g = (C = D.current) == null ? void 0 : C.nativeElement) == null ? void 0 : g.getElementsByClassName(
40816
40816
  "rc-virtual-list-holder-inner"
40817
- )) == null ? void 0 : E[0], g = u == null ? void 0 : u.firstChild, b = (f) => {
40817
+ )) == null ? void 0 : y[0], x = u == null ? void 0 : u.firstChild, b = (f) => {
40818
40818
  if (f.key === "ArrowDown") {
40819
- g && (g.focus(), l(g)), f.preventDefault();
40819
+ x && (x.focus(), l(x)), f.preventDefault();
40820
40820
  const S = s == null ? void 0 : s.nextElementSibling;
40821
40821
  S && (S.focus(), l(S));
40822
40822
  } else if (f.key === "ArrowUp") {
@@ -40856,7 +40856,7 @@ const KD = [
40856
40856
  backgroundColor: Nc(r.primary.text.normal) + Dn(50)
40857
40857
  }
40858
40858
  },
40859
- children: (u, g) => o(u, g)
40859
+ children: (u, x) => o(u, x)
40860
40860
  }
40861
40861
  );
40862
40862
  }, g2 = N(pe)`
@@ -40917,28 +40917,28 @@ const KD = [
40917
40917
  ...p
40918
40918
  }) => {
40919
40919
  var h, d, A;
40920
- const D = De(), u = Ye(), { copyAddress: g, isShowingCopyAddressFeedback: b } = pa(), C = Oe({
40920
+ const D = De(), u = Ye(), { copyAddress: x, isShowingCopyAddressFeedback: b } = pa(), C = Oe({
40921
40921
  assetDenom: e,
40922
40922
  chainId: i,
40923
40923
  tokenAmount: n
40924
- }), x = L(Un), E = s === "destination" && t !== void 0, f = E || c !== void 0, S = W(() => {
40924
+ }), g = L(Un), y = s === "destination" && t !== void 0, f = y || c !== void 0, S = W(() => {
40925
40925
  var w;
40926
- const B = Object.values(x), k = B.find(
40926
+ const B = Object.values(g), k = B.find(
40927
40927
  (P) => P.chainID === i
40928
40928
  ), F = B[B.length - 1], M = s === "destination" ? F : k;
40929
40929
  return {
40930
40930
  address: M == null ? void 0 : M.address,
40931
40931
  image: (M == null ? void 0 : M.source) === "wallet" && ((w = M == null ? void 0 : M.wallet) == null ? void 0 : w.walletInfo.logo) || void 0
40932
40932
  };
40933
- }, [x, i, s]), q = W(() => {
40934
- const B = E ? ({ children: F }) => /* @__PURE__ */ m(O, { gap: 5, children: F }) : ln.Fragment;
40933
+ }, [g, i, s]), q = W(() => {
40934
+ const B = y ? ({ children: F }) => /* @__PURE__ */ m(O, { gap: 5, children: F }) : ln.Fragment;
40935
40935
  if (!S.address) return;
40936
40936
  const k = () => {
40937
40937
  const F = u ? "Copied!" : "Address copied!";
40938
40938
  return b ? /* @__PURE__ */ m(K, { children: F }) : u ? /* @__PURE__ */ m(gm, { color: D.primary.text.lowContrast }) : /* @__PURE__ */ m(k2, { title: S.address, monospace: !0, textWrap: "nowrap", children: xo(S.address, u) });
40939
40939
  };
40940
40940
  return /* @__PURE__ */ j(B, { children: [
40941
- /* @__PURE__ */ j(b2, { onClick: () => g(S == null ? void 0 : S.address), children: [
40941
+ /* @__PURE__ */ j(b2, { onClick: () => x(S == null ? void 0 : S.address), children: [
40942
40942
  S.image && /* @__PURE__ */ m(
40943
40943
  "img",
40944
40944
  {
@@ -40950,7 +40950,7 @@ const KD = [
40950
40950
  ),
40951
40951
  k()
40952
40952
  ] }),
40953
- E && /* @__PURE__ */ m(
40953
+ y && /* @__PURE__ */ m(
40954
40954
  on,
40955
40955
  {
40956
40956
  as: u ? ut : void 0,
@@ -40961,15 +40961,15 @@ const KD = [
40961
40961
  )
40962
40962
  ] });
40963
40963
  }, [
40964
- g,
40964
+ x,
40965
40965
  u,
40966
40966
  b,
40967
40967
  t,
40968
- E,
40968
+ y,
40969
40969
  S.address,
40970
40970
  S.image,
40971
40971
  D.primary.text.lowContrast
40972
- ]), v = W(() => {
40972
+ ]), E = W(() => {
40973
40973
  if (c)
40974
40974
  return u ? /* @__PURE__ */ m(nm, { href: c, target: "_blank", children: /* @__PURE__ */ m(Vn, {}) }) : /* @__PURE__ */ m(na, { href: c, target: "_blank", children: /* @__PURE__ */ m(Vn, {}) });
40975
40975
  }, [c, u]), I = l == null ? void 0 : l.transferEvents.length, T = (d = (h = l == null ? void 0 : l.transferEvents) == null ? void 0 : h[(l == null ? void 0 : l.transferEvents.length) - 1]) == null ? void 0 : d.status;
@@ -41018,7 +41018,7 @@ const KD = [
41018
41018
  ]
41019
41019
  }
41020
41020
  ),
41021
- v
41021
+ E
41022
41022
  ] }),
41023
41023
  " ",
41024
41024
  a && /* @__PURE__ */ m(K, { color: D.warning.text, children: "Signature required" })
@@ -41219,20 +41219,20 @@ const KD = [
41219
41219
  }) => {
41220
41220
  var f, S, q;
41221
41221
  const l = De(), [p, D] = re(), u = W(() => {
41222
- const v = n.filter(
41222
+ const E = n.filter(
41223
41223
  (I) => Zr(I) || (I == null ? void 0 : I.isAvailable) !== !1
41224
41224
  );
41225
- return v.length === 1 ? n : v;
41226
- }, [n]), g = X(aa), b = Mp({
41225
+ return E.length === 1 ? n : E;
41226
+ }, [n]), x = X(aa), b = Mp({
41227
41227
  mutationKey: ["connectWallet"],
41228
- mutationFn: async (v) => t ? await v.connect(t) : await v.connect(),
41228
+ mutationFn: async (E) => t ? await E.connect(t) : await E.connect(),
41229
41229
  onSuccess: () => {
41230
- c && g(), te.remove(he.SetAddressModal), te.remove(he.WalletSelectorModal), p && (a == null || a(p));
41230
+ c && x(), te.remove(he.SetAddressModal), te.remove(he.WalletSelectorModal), p && (a == null || a(p));
41231
41231
  }
41232
41232
  }), C = we(
41233
- (v) => {
41233
+ (E) => {
41234
41234
  var M;
41235
- const I = Eo(v) ? v.walletPrettyName ?? v.walletName : v.walletName, T = Eo(v) ? (M = v == null ? void 0 : v.walletInfo) == null ? void 0 : M.logo : void 0, h = Zr(v) ? v == null ? void 0 : v.rightContent : void 0, d = Eo(v) ? v == null ? void 0 : v.isAvailable : void 0, A = (h == null ? void 0 : h()) ?? /* @__PURE__ */ m(Ae, {}), B = T ? /* @__PURE__ */ m(
41235
+ const I = Eo(E) ? E.walletPrettyName ?? E.walletName : E.walletName, T = Eo(E) ? (M = E == null ? void 0 : E.walletInfo) == null ? void 0 : M.logo : void 0, h = Zr(E) ? E == null ? void 0 : E.rightContent : void 0, d = Eo(E) ? E == null ? void 0 : E.isAvailable : void 0, A = (h == null ? void 0 : h()) ?? /* @__PURE__ */ m(Ae, {}), B = T ? /* @__PURE__ */ m(
41236
41236
  "img",
41237
41237
  {
41238
41238
  height: 35,
@@ -41246,7 +41246,7 @@ const KD = [
41246
41246
  ro,
41247
41247
  {
41248
41248
  onClick: () => {
41249
- Eo(v) ? o ? (o(v), te.remove(he.SetAddressModal), te.remove(he.WalletSelectorModal)) : (D(v), b.mutate(v)) : v.onSelect();
41249
+ Eo(E) ? o ? (o(E), te.remove(he.SetAddressModal), te.remove(he.WalletSelectorModal)) : (D(E), b.mutate(E)) : E.onSelect();
41250
41250
  },
41251
41251
  style: { marginTop: Vt },
41252
41252
  leftContent: /* @__PURE__ */ j(O, { style: { width: "100%" }, align: "center", justify: "space-between", children: [
@@ -41262,8 +41262,8 @@ const KD = [
41262
41262
  );
41263
41263
  },
41264
41264
  [b, o]
41265
- ), x = W(() => Math.min(530, u.length * (Jr + Vt)), [u.length]), E = W(() => {
41266
- var v, I, T, h;
41265
+ ), g = W(() => Math.min(530, u.length * (Jr + Vt)), [u.length]), y = W(() => {
41266
+ var E, I, T, h;
41267
41267
  if (b.isError || b.isPending) {
41268
41268
  const d = b.isError ? "Failed to connect" : "Connecting to";
41269
41269
  return /* @__PURE__ */ m(fm, { children: /* @__PURE__ */ j(S2, { children: [
@@ -41275,7 +41275,7 @@ const KD = [
41275
41275
  backgroundColor: l.primary.text.normal,
41276
41276
  status: b.isError ? "failed" : "pending",
41277
41277
  borderSize: 8,
41278
- children: ((I = (v = b.variables) == null ? void 0 : v.walletInfo) == null ? void 0 : I.logo) && /* @__PURE__ */ m(
41278
+ children: ((I = (E = b.variables) == null ? void 0 : E.walletInfo) == null ? void 0 : I.logo) && /* @__PURE__ */ m(
41279
41279
  "img",
41280
41280
  {
41281
41281
  style: { objectFit: "cover" },
@@ -41296,7 +41296,7 @@ const KD = [
41296
41296
  return /* @__PURE__ */ m(
41297
41297
  ma,
41298
41298
  {
41299
- height: x,
41299
+ height: g,
41300
41300
  listItems: u,
41301
41301
  itemHeight: Jr + Vt,
41302
41302
  renderItem: C,
@@ -41312,7 +41312,7 @@ const KD = [
41312
41312
  b.isPending,
41313
41313
  (S = (f = b.variables) == null ? void 0 : f.walletInfo) == null ? void 0 : S.logo,
41314
41314
  (q = b.variables) == null ? void 0 : q.walletPrettyName,
41315
- x,
41315
+ g,
41316
41316
  C,
41317
41317
  l.primary.text.lowContrast,
41318
41318
  l.primary.text.normal,
@@ -41327,7 +41327,7 @@ const KD = [
41327
41327
  rightContent: s
41328
41328
  }
41329
41329
  ),
41330
- E,
41330
+ y,
41331
41331
  r
41332
41332
  ] });
41333
41333
  }, S2 = N(pe)`
@@ -41593,20 +41593,20 @@ const KD = [
41593
41593
  const p = Fi(), D = Y2();
41594
41594
  if ((l == null ? void 0 : l.includes("penumbra")) && !p)
41595
41595
  return Z2(t == null ? void 0 : t.onWalletDisconnected);
41596
- const g = [];
41596
+ const x = [];
41597
41597
  for (const b of D) {
41598
- const C = fs(b), x = Fi(), E = Yo(b), f = X2(K2(b), e), S = async ({ chainIdToConnect: v }) => {
41598
+ const C = fs(b), g = Fi(), y = Yo(b), f = X2(K2(b), e), S = async ({ chainIdToConnect: E }) => {
41599
41599
  var T, h, d, A;
41600
- const I = !v || v && f.includes(v);
41600
+ const I = !E || E && f.includes(E);
41601
41601
  try {
41602
- if (v) {
41603
- const M = _D(v);
41602
+ if (E) {
41603
+ const M = _D(E);
41604
41604
  if (!M)
41605
41605
  throw new Error(`connect: Chain info not found for chainID: ${l}`);
41606
- !x && !C && await Ji(b).experimentalSuggestChain(M);
41606
+ !g && !C && await Ji(b).experimentalSuggestChain(M);
41607
41607
  }
41608
41608
  const B = await ka({
41609
- chainId: I ? f : v,
41609
+ chainId: I ? f : E,
41610
41610
  walletType: b,
41611
41611
  autoReconnect: !1
41612
41612
  });
@@ -41615,7 +41615,7 @@ const KD = [
41615
41615
  o === void 0 && a(R.Cosmos);
41616
41616
  const k = Object.fromEntries(
41617
41617
  Object.entries(B.accounts).map(([M, w]) => [M, w.bech32Address])
41618
- ), F = v && (B == null ? void 0 : B.accounts[v].bech32Address);
41618
+ ), F = E && (B == null ? void 0 : B.accounts[E].bech32Address);
41619
41619
  if (n === void 0) {
41620
41620
  (T = t == null ? void 0 : t.onWalletConnected) == null || T.call(t, {
41621
41621
  walletName: b,
@@ -41631,14 +41631,14 @@ const KD = [
41631
41631
  }
41632
41632
  return V("wallet connected", {
41633
41633
  walletName: b,
41634
- chainId: v,
41634
+ chainId: E,
41635
41635
  chainType: R.Cosmos
41636
41636
  }), { address: F };
41637
41637
  } catch (B) {
41638
41638
  const k = B;
41639
41639
  if (V("connect wallet error", {
41640
41640
  walletName: b,
41641
- chainId: v,
41641
+ chainId: E,
41642
41642
  ChainType: R.Cosmos,
41643
41643
  errorMessage: k == null ? void 0 : k.message
41644
41644
  }), (d = k == null ? void 0 : k.message) != null && d.toLowerCase().includes("no chain info"))
@@ -41652,39 +41652,39 @@ const KD = [
41652
41652
  autoReconnect: !1
41653
41653
  });
41654
41654
  return {
41655
- address: v ? F == null ? void 0 : F.accounts[v].bech32Address : void 0
41655
+ address: E ? F == null ? void 0 : F.accounts[E].bech32Address : void 0
41656
41656
  };
41657
41657
  }
41658
41658
  throw B;
41659
41659
  }
41660
41660
  }, q = {
41661
41661
  walletName: b,
41662
- walletPrettyName: E == null ? void 0 : E.name,
41662
+ walletPrettyName: y == null ? void 0 : y.name,
41663
41663
  walletChainType: R.Cosmos,
41664
41664
  walletInfo: {
41665
- logo: E == null ? void 0 : E.imgSrc
41665
+ logo: y == null ? void 0 : y.imgSrc
41666
41666
  },
41667
- connect: async (v) => {
41668
- await S({ chainIdToConnect: v });
41667
+ connect: async (E) => {
41668
+ await S({ chainIdToConnect: E });
41669
41669
  },
41670
41670
  disconnect: async () => {
41671
- var v;
41671
+ var E;
41672
41672
  await r(), V("wallet disconnected", {
41673
41673
  walletName: b,
41674
41674
  ChainType: R.Cosmos
41675
- }), i(void 0), (v = t == null ? void 0 : t.onWalletDisconnected) == null || v.call(t, {
41675
+ }), i(void 0), (E = t == null ? void 0 : t.onWalletDisconnected) == null || E.call(t, {
41676
41676
  walletName: b,
41677
41677
  chainType: R.Cosmos
41678
41678
  });
41679
41679
  },
41680
- getAddress: async ({ signRequired: v }) => {
41680
+ getAddress: async ({ signRequired: E }) => {
41681
41681
  V("get address", {
41682
41682
  walletName: b,
41683
41683
  ChainType: R.Cosmos,
41684
41684
  chainId: l
41685
41685
  });
41686
41686
  try {
41687
- if (n && !v && l)
41687
+ if (n && !E && l)
41688
41688
  return { address: (await Ji(b).getKey(l)).bech32Address };
41689
41689
  throw new Error("connect wallet");
41690
41690
  } catch {
@@ -41693,7 +41693,7 @@ const KD = [
41693
41693
  },
41694
41694
  isWalletConnected: c === b,
41695
41695
  isAvailable: (() => {
41696
- if (!x)
41696
+ if (!g)
41697
41697
  try {
41698
41698
  return !!Ji(b);
41699
41699
  } catch {
@@ -41701,9 +41701,9 @@ const KD = [
41701
41701
  }
41702
41702
  })()
41703
41703
  };
41704
- g.push(q);
41704
+ x.push(q);
41705
41705
  }
41706
- return g;
41706
+ return x;
41707
41707
  },
41708
41708
  [
41709
41709
  t,
@@ -41830,100 +41830,100 @@ const KD = [
41830
41830
  type: "function"
41831
41831
  }
41832
41832
  ], Cm = () => {
41833
- const e = L(de), [n, i] = me(mo), o = L(Ni), t = X(hl), c = Ct(), { connector: a, isConnected: r, chainId: s } = so(), { connectAsync: l } = lp(), p = As(), D = p.find((g) => g.id === (a == null ? void 0 : a.id));
41833
+ const e = L(de), [n, i] = me(mo), o = L(Ni), t = X(hl), c = Ct(), { connector: a, isConnected: r, chainId: s } = so(), { connectAsync: l } = lp(), p = As(), D = p.find((x) => x.id === (a == null ? void 0 : a.id));
41834
41834
  return { createEvmWallets: we(
41835
- (g) => {
41836
- const b = g === "pacific-1";
41837
- b && (g = Go.id.toString());
41835
+ (x) => {
41836
+ const b = x === "pacific-1";
41837
+ b && (x = Go.id.toString());
41838
41838
  const C = [];
41839
- for (const x of p) {
41840
- if (x.id === "com.okex.wallet" || C.findIndex((v) => v.walletName === x.id) !== -1)
41839
+ for (const g of p) {
41840
+ if (g.id === "com.okex.wallet" || C.findIndex((E) => E.walletName === g.id) !== -1)
41841
41841
  continue;
41842
- const f = x.id === "walletConnect", S = async ({ chainIdToConnect: v = "1" }) => {
41842
+ const f = g.id === "walletConnect", S = async ({ chainIdToConnect: E = "1" }) => {
41843
41843
  var T, h, d, A, B;
41844
- const I = r && s !== Number(v) && x.id === (a == null ? void 0 : a.id);
41844
+ const I = r && s !== Number(E) && g.id === (a == null ? void 0 : a.id);
41845
41845
  try {
41846
- r && x.id !== (a == null ? void 0 : a.id) && await er(oo), I && await ((T = x == null ? void 0 : x.switchChain) == null ? void 0 : T.call(x, {
41847
- chainId: Number(v)
41848
- })), await l({ connector: x, chainId: Number(v) }), e === void 0 && c(R.EVM);
41849
- const k = await x.getAccounts(), F = await x.getProvider(), M = (d = (h = F == null ? void 0 : F.session) == null ? void 0 : h.peer) == null ? void 0 : d.metadata;
41846
+ r && g.id !== (a == null ? void 0 : a.id) && await er(oo), I && await ((T = g == null ? void 0 : g.switchChain) == null ? void 0 : T.call(g, {
41847
+ chainId: Number(E)
41848
+ })), await l({ connector: g, chainId: Number(E) }), e === void 0 && c(R.EVM);
41849
+ const k = await g.getAccounts(), F = await g.getProvider(), M = (d = (h = F == null ? void 0 : F.session) == null ? void 0 : h.peer) == null ? void 0 : d.metadata;
41850
41850
  return t(R.EVM), n === void 0 && ((A = o == null ? void 0 : o.onWalletConnected) == null || A.call(o, {
41851
- walletName: x.name,
41852
- chainId: g,
41851
+ walletName: g.name,
41852
+ chainId: x,
41853
41853
  address: k[0]
41854
41854
  }), i({
41855
41855
  id: k[0],
41856
- walletName: x.id,
41856
+ walletName: g.id,
41857
41857
  chainType: R.EVM,
41858
- logo: (M == null ? void 0 : M.icons[0]) ?? (x == null ? void 0 : x.icon)
41858
+ logo: (M == null ? void 0 : M.icons[0]) ?? (g == null ? void 0 : g.icon)
41859
41859
  })), V("wallet connected", {
41860
- walletName: x.name,
41861
- chainId: v,
41860
+ walletName: g.name,
41861
+ chainId: E,
41862
41862
  chainType: R.EVM
41863
41863
  }), { address: k[0], logo: (B = M == null ? void 0 : M.icons) == null ? void 0 : B[0] };
41864
41864
  } catch (k) {
41865
41865
  const F = k;
41866
41866
  throw V("connect wallet error", {
41867
- walletName: x.name,
41868
- chainId: v,
41867
+ walletName: g.name,
41868
+ chainId: E,
41869
41869
  ChainType: R.EVM,
41870
41870
  errorMessage: F == null ? void 0 : F.message
41871
41871
  }), console.error(F), k;
41872
41872
  }
41873
41873
  }, q = {
41874
- walletName: x.id,
41875
- walletPrettyName: x.name,
41874
+ walletName: g.id,
41875
+ walletPrettyName: g.name,
41876
41876
  walletChainType: R.EVM,
41877
41877
  walletInfo: {
41878
- logo: f ? Ko : x.icon
41878
+ logo: f ? Ko : g.icon
41879
41879
  },
41880
- connect: async (v) => {
41881
- await S({ chainIdToConnect: v });
41880
+ connect: async (E) => {
41881
+ await S({ chainIdToConnect: E });
41882
41882
  },
41883
41883
  disconnect: async () => {
41884
- var v;
41884
+ var E;
41885
41885
  await er(oo), V("wallet disconnected", {
41886
- walletName: x.name,
41887
- chainId: g,
41886
+ walletName: g.name,
41887
+ chainId: x,
41888
41888
  ChainType: R.EVM
41889
- }), i(void 0), (v = o == null ? void 0 : o.onWalletDisconnected) == null || v.call(o, {
41890
- walletName: x.name,
41889
+ }), i(void 0), (E = o == null ? void 0 : o.onWalletDisconnected) == null || E.call(o, {
41890
+ walletName: g.name,
41891
41891
  chainType: R.EVM
41892
41892
  });
41893
41893
  },
41894
- getAddress: async ({ signRequired: v }) => {
41895
- if (v)
41894
+ getAddress: async ({ signRequired: E }) => {
41895
+ if (E && !r)
41896
41896
  return S({
41897
- chainIdToConnect: g
41897
+ chainIdToConnect: x
41898
41898
  });
41899
41899
  V("get address", {
41900
- walletName: x.name,
41901
- chainId: g,
41900
+ walletName: g.name,
41901
+ chainId: x,
41902
41902
  ChainType: R.EVM
41903
41903
  });
41904
41904
  try {
41905
- const I = await x.getAccounts();
41905
+ const I = await g.getAccounts();
41906
41906
  if (I.length === 0)
41907
41907
  throw new Error("No accounts found");
41908
41908
  return { address: I[0] };
41909
41909
  } catch {
41910
41910
  return S({
41911
- chainIdToConnect: g
41911
+ chainIdToConnect: x
41912
41912
  });
41913
41913
  }
41914
41914
  },
41915
- isWalletConnected: x.id === (a == null ? void 0 : a.id)
41915
+ isWalletConnected: g.id === (a == null ? void 0 : a.id)
41916
41916
  };
41917
41917
  if (b) {
41918
- const v = x.name.toLowerCase().includes("keplr") || x.name.toLowerCase().includes("leap") || x.name.toLowerCase().includes("cosmostation");
41919
- q.walletPrettyName = `${x.name} ${v ? "(EVM)" : ""}`, q.getAddress = async () => {
41918
+ const E = g.name.toLowerCase().includes("keplr") || g.name.toLowerCase().includes("leap") || g.name.toLowerCase().includes("cosmostation");
41919
+ q.walletPrettyName = `${g.name} ${E ? "(EVM)" : ""}`, q.getAddress = async () => {
41920
41920
  V("get address", {
41921
- walletName: x.name,
41922
- chainId: g,
41921
+ walletName: g.name,
41922
+ chainId: x,
41923
41923
  ChainType: R.Cosmos
41924
41924
  });
41925
41925
  const { address: I } = await S({
41926
- chainIdToConnect: g
41926
+ chainIdToConnect: x
41927
41927
  }), T = cp({
41928
41928
  chain: Go,
41929
41929
  transport: ue()
@@ -41938,8 +41938,8 @@ const KD = [
41938
41938
  } catch (h) {
41939
41939
  const d = h;
41940
41940
  throw V("get address error", {
41941
- walletName: x.name,
41942
- chainId: g,
41941
+ walletName: g.name,
41942
+ chainId: x,
41943
41943
  ChainType: R.Cosmos,
41944
41944
  errorMessage: d == null ? void 0 : d.message
41945
41945
  }), console.error(d), new Error(`Your EVM address (0x) has not been associated on chain yet. Please visit https://app.sei.io/ to associate your SEI address.
@@ -41972,18 +41972,18 @@ const KD = [
41972
41972
  const s = [];
41973
41973
  for (const l of ht) {
41974
41974
  const p = l.name === "WalletConnect", D = async () => {
41975
- var g, b, C, x, E, f, S;
41975
+ var x, b, C, g, y, f, S;
41976
41976
  try {
41977
41977
  await l.connect();
41978
41978
  const q = e == null ? void 0 : e.find((T) => T.chainID === "solana");
41979
41979
  n === void 0 && a(R.SVM);
41980
- const v = (g = l.publicKey) == null ? void 0 : g.toBase58(), I = (E = (x = (C = (b = l == null ? void 0 : l._wallet) == null ? void 0 : b._UniversalProvider) == null ? void 0 : C.session) == null ? void 0 : x.peer) == null ? void 0 : E.metadata;
41980
+ const E = (x = l.publicKey) == null ? void 0 : x.toBase58(), I = (y = (g = (C = (b = l == null ? void 0 : l._wallet) == null ? void 0 : b._UniversalProvider) == null ? void 0 : C.session) == null ? void 0 : g.peer) == null ? void 0 : y.metadata;
41981
41981
  return c(R.SVM), i === void 0 && ((f = t == null ? void 0 : t.onWalletConnected) == null || f.call(t, {
41982
41982
  walletName: l.name,
41983
41983
  chainId: q == null ? void 0 : q.chainID,
41984
- address: v
41984
+ address: E
41985
41985
  }), o({
41986
- id: v,
41986
+ id: E,
41987
41987
  walletName: l.name,
41988
41988
  chainType: R.SVM,
41989
41989
  logo: (I == null ? void 0 : I.icons[0]) ?? l.icon
@@ -41991,8 +41991,8 @@ const KD = [
41991
41991
  walletName: l.name,
41992
41992
  chainType: R.SVM,
41993
41993
  chainId: q == null ? void 0 : q.chainID,
41994
- address: v
41995
- }), { address: v, logo: (S = I == null ? void 0 : I.icons) == null ? void 0 : S[0] };
41994
+ address: E
41995
+ }), { address: E, logo: (S = I == null ? void 0 : I.icons) == null ? void 0 : S[0] };
41996
41996
  } catch (q) {
41997
41997
  throw console.error(q), q;
41998
41998
  }
@@ -42006,9 +42006,9 @@ const KD = [
42006
42006
  connect: async () => {
42007
42007
  await D();
42008
42008
  },
42009
- getAddress: async ({ signRequired: g }) => {
42009
+ getAddress: async ({ signRequired: x }) => {
42010
42010
  try {
42011
- if (g)
42011
+ if (x)
42012
42012
  throw new Error("always prompt wallet connection");
42013
42013
  const b = l.publicKey;
42014
42014
  if (!b)
@@ -42019,11 +42019,11 @@ const KD = [
42019
42019
  }
42020
42020
  },
42021
42021
  disconnect: async () => {
42022
- var g;
42022
+ var x;
42023
42023
  await l.disconnect(), V("wallet disconnected", {
42024
42024
  walletName: l.name,
42025
42025
  chainType: R.SVM
42026
- }), o(void 0), (g = t == null ? void 0 : t.onWalletDisconnected) == null || g.call(t, {
42026
+ }), o(void 0), (x = t == null ? void 0 : t.onWalletDisconnected) == null || x.call(t, {
42027
42027
  walletName: l.name,
42028
42028
  chainType: R.SVM
42029
42029
  });
@@ -42080,11 +42080,10 @@ const KD = [
42080
42080
  }), a = ht.find((p) => p.connected === !0), r = so(), s = As();
42081
42081
  return we(
42082
42082
  // if checkChainType is true, it only check wallet connected no chainId is dependent
42083
- (p, D) => {
42084
- var C;
42083
+ (p, D, u) => {
42084
+ var C, g;
42085
42085
  if (!p) return;
42086
- const u = (C = t == null ? void 0 : t.find((x) => x.chainID === p)) == null ? void 0 : C.chainType;
42087
- if (o && o[p])
42086
+ if (u ?? (u = (C = t == null ? void 0 : t.find((y) => y.chainID === p)) == null ? void 0 : C.chainType), o && o[p])
42088
42087
  return {
42089
42088
  address: o[p],
42090
42089
  chainType: u,
@@ -42099,27 +42098,27 @@ const KD = [
42099
42098
  })();
42100
42099
  switch (u) {
42101
42100
  case R.Cosmos: {
42102
- if (!b || !e.cosmos) return;
42103
- const x = Yo(e.cosmos.walletName);
42101
+ if (!e.cosmos) return;
42102
+ const y = Yo(e.cosmos.walletName);
42104
42103
  return {
42105
- address: b.bech32Address,
42104
+ address: (b == null ? void 0 : b.bech32Address) ?? ((g = e.cosmos) == null ? void 0 : g.id),
42106
42105
  chainType: u,
42107
42106
  wallet: {
42108
42107
  name: e.cosmos.walletName,
42109
- prettyName: x.name,
42110
- logo: x.imgSrc,
42111
- isLedger: b.isNanoLedger
42108
+ prettyName: y.name,
42109
+ logo: y.imgSrc,
42110
+ isLedger: b == null ? void 0 : b.isNanoLedger
42112
42111
  }
42113
42112
  };
42114
42113
  }
42115
42114
  case R.EVM: {
42116
42115
  if (r.chainId !== Number(p) && !D || !r.address || !r.connector) return;
42117
- const x = () => {
42118
- var E, f, S;
42119
- return ((E = r == null ? void 0 : r.connector) == null ? void 0 : E.id) === "walletConnect" ? (n == null ? void 0 : n.logo) ?? Ko : (f = r == null ? void 0 : r.connector) != null && f.id.includes("keplr") ? Yo(le.KEPLR).imgSrc : (S = s.find((q) => {
42120
- var v;
42121
- return q.id === ((v = r.connector) == null ? void 0 : v.id);
42122
- })) == null ? void 0 : S.icon;
42116
+ const y = () => {
42117
+ var f, S, q;
42118
+ return ((f = r == null ? void 0 : r.connector) == null ? void 0 : f.id) === "walletConnect" ? (n == null ? void 0 : n.logo) ?? Ko : (S = r == null ? void 0 : r.connector) != null && S.id.includes("keplr") ? Yo(le.KEPLR).imgSrc : (q = s.find((E) => {
42119
+ var I;
42120
+ return E.id === ((I = r.connector) == null ? void 0 : I.id);
42121
+ })) == null ? void 0 : q.icon;
42123
42122
  };
42124
42123
  return {
42125
42124
  address: r.address,
@@ -42128,20 +42127,20 @@ const KD = [
42128
42127
  wallet: {
42129
42128
  name: r.connector.id,
42130
42129
  prettyName: r.connector.name,
42131
- logo: x()
42130
+ logo: y()
42132
42131
  }
42133
42132
  };
42134
42133
  }
42135
42134
  case R.SVM: {
42136
42135
  if (!(a != null && a.publicKey)) return;
42137
- const x = () => a.name === "WalletConnect" ? (i == null ? void 0 : i.logo) ?? Ko : a.icon;
42136
+ const y = () => a.name === "WalletConnect" ? (i == null ? void 0 : i.logo) ?? Ko : a.icon;
42138
42137
  return {
42139
42138
  address: a.publicKey.toBase58(),
42140
42139
  chainType: u,
42141
42140
  wallet: {
42142
42141
  name: a.name,
42143
42142
  prettyName: a.name,
42144
- logo: x()
42143
+ logo: y()
42145
42144
  }
42146
42145
  };
42147
42146
  }
@@ -42202,8 +42201,8 @@ const KD = [
42202
42201
  ce(() => {
42203
42202
  var D;
42204
42203
  if (o && a.current) {
42205
- const u = a.current.offsetHeight, g = ((D = c.current) == null ? void 0 : D.offsetHeight) ?? 0;
42206
- s(u / 2 - g / 2);
42204
+ const u = a.current.offsetHeight, x = ((D = c.current) == null ? void 0 : D.offsetHeight) ?? 0;
42205
+ s(u / 2 - x / 2);
42207
42206
  }
42208
42207
  }, [o]);
42209
42208
  const l = W(() => typeof n == "string" ? /* @__PURE__ */ m(K, { normalTextColor: !0, textWrap: "nowrap", children: n }) : n, [n]);
@@ -42262,11 +42261,11 @@ const KD = [
42262
42261
  });
42263
42262
  const { data: p } = L(Ee), D = W(() => {
42264
42263
  if (!(l != null && l.chainID) || !p) return;
42265
- const q = p.find((v) => v.chainID === l.chainID);
42264
+ const q = p.find((E) => E.chainID === l.chainID);
42266
42265
  if ((q == null ? void 0 : q.chainType) === e)
42267
42266
  return l.chainID;
42268
- }, [l == null ? void 0 : l.chainID, p, e]), u = W(() => r(n, !0), [n, r]), g = xo(u == null ? void 0 : u.address, s), C = ua({ chainType: e }).find((q) => q.walletName === (u == null ? void 0 : u.wallet.name)), x = W(() => {
42269
- var q, v;
42267
+ }, [l == null ? void 0 : l.chainID, p, e]), u = W(() => r(n, !0), [n, r]), x = xo(u == null ? void 0 : u.address, s), C = ua({ chainType: e }).find((q) => q.walletName === (u == null ? void 0 : u.wallet.name)), g = W(() => {
42268
+ var q, E;
42270
42269
  return !u || !C ? null : s ? /* @__PURE__ */ m(
42271
42270
  on,
42272
42271
  {
@@ -42279,7 +42278,7 @@ const KD = [
42279
42278
  wallet: u == null ? void 0 : u.wallet.name
42280
42279
  }), C == null || C.disconnect(), te.remove(he.ConnectedWalletModal);
42281
42280
  },
42282
- children: /* @__PURE__ */ m(ym, { height: "22", width: "22", color: (v = (q = a == null ? void 0 : a.primary) == null ? void 0 : q.text) == null ? void 0 : v.ultraLowContrast })
42281
+ children: /* @__PURE__ */ m(ym, { height: "22", width: "22", color: (E = (q = a == null ? void 0 : a.primary) == null ? void 0 : q.text) == null ? void 0 : E.ultraLowContrast })
42283
42282
  }
42284
42283
  ) : /* @__PURE__ */ m(
42285
42284
  ci,
@@ -42301,7 +42300,7 @@ const KD = [
42301
42300
  C,
42302
42301
  s,
42303
42302
  (S = (f = a == null ? void 0 : a.primary) == null ? void 0 : f.text) == null ? void 0 : S.ultraLowContrast
42304
- ]), E = () => {
42303
+ ]), y = () => {
42305
42304
  V("connect eco row: connect button - clicked", {
42306
42305
  chainType: e
42307
42306
  }), te.remove(he.ConnectedWalletModal), te.show(he.WalletSelectorModal, {
@@ -42314,7 +42313,7 @@ const KD = [
42314
42313
  ro,
42315
42314
  {
42316
42315
  style: { marginTop: o1, minHeight: `${i1}px` },
42317
- onClick: E,
42316
+ onClick: y,
42318
42317
  leftContent: u ? /* @__PURE__ */ j(O, { align: "center", gap: 10, children: [
42319
42318
  (u == null ? void 0 : u.wallet.logo) && /* @__PURE__ */ m(
42320
42319
  "img",
@@ -42328,7 +42327,7 @@ const KD = [
42328
42327
  }
42329
42328
  ),
42330
42329
  /* @__PURE__ */ j(O, { align: "baseline", gap: 8, children: [
42331
- /* @__PURE__ */ m(Pi, { content: u == null ? void 0 : u.address, children: /* @__PURE__ */ m(Te, { children: g }) }),
42330
+ /* @__PURE__ */ m(Pi, { content: u == null ? void 0 : u.address, children: /* @__PURE__ */ m(Te, { children: x }) }),
42332
42331
  /* @__PURE__ */ m(
42333
42332
  Pi,
42334
42333
  {
@@ -42353,7 +42352,7 @@ const KD = [
42353
42352
  " ",
42354
42353
  e === R.Cosmos ? "Cosmos" : e === R.EVM ? "Ethereum" : "Solana"
42355
42354
  ] }),
42356
- rightContent: u && u.wallet.name !== "injected" ? x : u ? null : /* @__PURE__ */ m(Wc, { color: a.primary.text.normal })
42355
+ rightContent: u && u.wallet.name !== "injected" ? g : u ? null : /* @__PURE__ */ m(Wc, { color: a.primary.text.normal })
42357
42356
  }
42358
42357
  );
42359
42358
  }, c1 = ({ chainId: e }) => {
@@ -42385,13 +42384,13 @@ const KD = [
42385
42384
  }, s1 = fo((e) => {
42386
42385
  const { chainId: n, chainType: i, fromConnectedWalletModal: o } = e, { data: t } = L(Ee), c = Ct(), a = ua({ chainID: n, chainType: i }), r = L(de), l = ui()(r == null ? void 0 : r.chainID), p = t == null ? void 0 : t.find((q) => q.chainID === (r == null ? void 0 : r.chainID)), [D, u] = re(
42387
42386
  i ?? (p == null ? void 0 : p.chainType)
42388
- ), g = wm(), b = t == null ? void 0 : t.find((q) => {
42387
+ ), x = wm(), b = t == null ? void 0 : t.find((q) => {
42389
42388
  if (D)
42390
- return q.chainID === g[D];
42391
- }), C = !l && D === (p == null ? void 0 : p.chainType), x = W(() => {
42389
+ return q.chainID === x[D];
42390
+ }), C = !l && D === (p == null ? void 0 : p.chainType), g = W(() => {
42392
42391
  var q;
42393
- return (q = t == null ? void 0 : t.find((v) => v.chainID === (r == null ? void 0 : r.chainID))) == null ? void 0 : q.chainType;
42394
- }, [t, r == null ? void 0 : r.chainID]), E = () => {
42392
+ return (q = t == null ? void 0 : t.find((E) => E.chainID === (r == null ? void 0 : r.chainID))) == null ? void 0 : q.chainType;
42393
+ }, [t, r == null ? void 0 : r.chainID]), y = () => {
42395
42394
  te.remove(he.WalletSelectorModal), o ? te.show(he.ConnectedWalletModal) : (u(p == null ? void 0 : p.chainType), te.show(he.WalletSelectorModal, {
42396
42395
  chainId: p == null ? void 0 : p.chainID
42397
42396
  }));
@@ -42414,7 +42413,7 @@ const KD = [
42414
42413
  {
42415
42414
  title: S,
42416
42415
  walletList: a,
42417
- onClickBackButton: E,
42416
+ onClickBackButton: y,
42418
42417
  isConnectEco: o,
42419
42418
  chainId: n,
42420
42419
  onWalletConnected: f,
@@ -42428,7 +42427,7 @@ const KD = [
42428
42427
  ) }),
42429
42428
  bottomContent: C && /* @__PURE__ */ j(pe, { children: [
42430
42429
  /* @__PURE__ */ m(l1, {}),
42431
- /* @__PURE__ */ m(vm, { excludeChainType: x, onClick: u })
42430
+ /* @__PURE__ */ m(vm, { excludeChainType: g, onClick: u })
42432
42431
  ] })
42433
42432
  }
42434
42433
  );
@@ -42544,7 +42543,7 @@ const KD = [
42544
42543
  Qi("Signature", t.txsRequired),
42545
42544
  " required",
42546
42545
  /* @__PURE__ */ m(tl, {})
42547
- ] }) }) : null, [t == null ? void 0 : t.txsRequired]), g = W(() => {
42546
+ ] }) }) : null, [t == null ? void 0 : t.txsRequired]), x = W(() => {
42548
42547
  switch (r) {
42549
42548
  case ti.FASTEST:
42550
42549
  return "Fastest route";
@@ -42552,7 +42551,7 @@ const KD = [
42552
42551
  return "Cheapest route";
42553
42552
  }
42554
42553
  }, [r]), b = W(() => {
42555
- const x = () => l ? g : Fc;
42554
+ const g = () => l ? x : Fc;
42556
42555
  return /* @__PURE__ */ j(Ae, { children: [
42557
42556
  (() => {
42558
42557
  if (e) return e;
@@ -42576,7 +42575,7 @@ const KD = [
42576
42575
  /* @__PURE__ */ m(O, { gap: 8, align: "flex-end", children: p })
42577
42576
  ] }) });
42578
42577
  })() ?? /* @__PURE__ */ m("div", {}),
42579
- x()
42578
+ g()
42580
42579
  ] });
42581
42580
  }, [
42582
42581
  e,
@@ -42584,7 +42583,7 @@ const KD = [
42584
42583
  o,
42585
42584
  l,
42586
42585
  c,
42587
- g,
42586
+ x,
42588
42587
  t,
42589
42588
  a,
42590
42589
  i,
@@ -42612,7 +42611,7 @@ const KD = [
42612
42611
  ),
42613
42612
  /* @__PURE__ */ m(O, { gap: 8, align: "flex-end", children: p })
42614
42613
  ] }),
42615
- D ? u : l ? g : null
42614
+ D ? u : l ? x : null
42616
42615
  ] });
42617
42616
  })() ?? /* @__PURE__ */ m("div", {}),
42618
42617
  Fc
@@ -42622,7 +42621,7 @@ const KD = [
42622
42621
  o,
42623
42622
  l,
42624
42623
  c,
42625
- g,
42624
+ x,
42626
42625
  u,
42627
42626
  t,
42628
42627
  D,
@@ -42921,18 +42920,18 @@ const f1 = new Intl.NumberFormat("en-US", {
42921
42920
  feeAsset: p,
42922
42921
  sourceChainFeeAmount: D,
42923
42922
  destinationChainFeeAmount: u,
42924
- bpsFeeAmount: g,
42923
+ bpsFeeAmount: x,
42925
42924
  sourceChainFeeUSD: b,
42926
42925
  destinationChainFeeUSD: C,
42927
- bpsFeeUSD: x
42928
- } = l, E = [D, u, g].reduce(
42929
- (q, v) => q + Number(v),
42926
+ bpsFeeUSD: g
42927
+ } = l, y = [D, u, x].reduce(
42928
+ (q, E) => q + Number(E),
42930
42929
  0
42931
- ), f = [b, C, x].reduce(
42932
- (q, v) => q + Number(v),
42930
+ ), f = [b, C, g].reduce(
42931
+ (q, E) => q + Number(E),
42933
42932
  0
42934
42933
  ), S = nn(
42935
- E.toString(),
42934
+ y.toString(),
42936
42935
  p.decimals
42937
42936
  );
42938
42937
  return {
@@ -42955,19 +42954,19 @@ const f1 = new Intl.NumberFormat("en-US", {
42955
42954
  c.forEach((D) => {
42956
42955
  const u = a(D);
42957
42956
  if (u) {
42958
- let g = "";
42957
+ let x = "";
42959
42958
  switch (D.type) {
42960
42959
  case Be.axelarTransfer:
42961
- g = "Axelar Bridging Fee";
42960
+ x = "Axelar Bridging Fee";
42962
42961
  break;
42963
42962
  case Be.hyperlaneTransfer:
42964
- g = "Hyperlane Bridging Fee";
42963
+ x = "Hyperlane Bridging Fee";
42965
42964
  break;
42966
42965
  case Be.goFastTransfer:
42967
- g = "Go Fast Transfer Fee";
42966
+ x = "Go Fast Transfer Fee";
42968
42967
  break;
42969
42968
  }
42970
- s.push({ label: g, fee: u });
42969
+ s.push({ label: x, fee: u });
42971
42970
  }
42972
42971
  });
42973
42972
  const l = b1(n), p = A1(l, n == null ? void 0 : n.estimatedFees);
@@ -43124,31 +43123,31 @@ const f1 = new Intl.NumberFormat("en-US", {
43124
43123
  const D = !(t != null && t[i]) || Object.keys(t[i]).includes(p.chainID), u = i !== "source" || !p.chainID.startsWith("penumbra");
43125
43124
  return D && u;
43126
43125
  }).filter((p) => {
43127
- const { chainName: D, prettyName: u } = p, g = D.toLowerCase().includes(n.toLowerCase()), b = u.toLowerCase().includes(n.toLowerCase());
43128
- return g || b;
43126
+ const { chainName: D, prettyName: u } = p, x = D.toLowerCase().includes(n.toLowerCase()), b = u.toLowerCase().includes(n.toLowerCase());
43127
+ return x || b;
43129
43128
  }).sort((p, D) => {
43130
43129
  var h, d, A, B, k, F, M, w;
43131
43130
  const u = Number(
43132
43131
  ((h = c(p.chainID, p.asset.denom)) == null ? void 0 : h.valueUSD) ?? 0
43133
- ), g = Number(
43132
+ ), x = Number(
43134
43133
  ((d = c(D.chainID, D.asset.denom)) == null ? void 0 : d.valueUSD) ?? 0
43135
43134
  ), b = Number(
43136
43135
  ((A = c(p.chainID, p.asset.denom)) == null ? void 0 : A.amount) ?? 0
43137
43136
  ), C = Number(
43138
43137
  ((B = c(D.chainID, D.asset.denom)) == null ? void 0 : B.amount) ?? 0
43139
43138
  );
43140
- if (u !== g)
43141
- return g - u;
43139
+ if (u !== x)
43140
+ return x - u;
43142
43141
  if (b !== C)
43143
43142
  return C - b;
43144
- const x = a.indexOf(p.asset.denom), E = a.indexOf(D.asset.denom), f = x !== -1, S = E !== -1;
43143
+ const g = a.indexOf(p.asset.denom), y = a.indexOf(D.asset.denom), f = g !== -1, S = y !== -1;
43145
43144
  if (f && S)
43146
- return x - E;
43145
+ return g - y;
43147
43146
  if (f) return -1;
43148
43147
  if (S) return 1;
43149
- const q = (F = p.chainName) == null ? void 0 : F.toLowerCase().includes(((k = p.asset.recommendedSymbol) == null ? void 0 : k.toLowerCase()) ?? ""), v = (w = D.chainName) == null ? void 0 : w.toLowerCase().includes(((M = D.asset.recommendedSymbol) == null ? void 0 : M.toLowerCase()) ?? "");
43150
- if (q && !v) return -1;
43151
- if (v && !q) return 1;
43148
+ const q = (F = p.chainName) == null ? void 0 : F.toLowerCase().includes(((k = p.asset.recommendedSymbol) == null ? void 0 : k.toLowerCase()) ?? ""), E = (w = D.chainName) == null ? void 0 : w.toLowerCase().includes(((M = D.asset.recommendedSymbol) == null ? void 0 : M.toLowerCase()) ?? "");
43149
+ if (q && !E) return -1;
43150
+ if (E && !q) return 1;
43152
43151
  const I = p.asset.originChainID === p.chainID, T = D.asset.originChainID === D.chainID;
43153
43152
  return I && !T ? -1 : T && !I ? 1 : 0;
43154
43153
  }), [
@@ -43417,14 +43416,14 @@ const f1 = new Intl.NumberFormat("en-US", {
43417
43416
  context: l,
43418
43417
  disabled: p
43419
43418
  }) => {
43420
- const D = De(), [u, g] = re(!1), b = Ye(), C = u || s, x = Oe({
43419
+ const D = De(), [u, x] = re(!1), b = Ye(), C = u || s, g = Oe({
43421
43420
  assetDenom: o == null ? void 0 : o.denom,
43422
43421
  amount: e,
43423
43422
  chainId: o == null ? void 0 : o.chainID
43424
- }), E = qm({ context: l }), f = E == null ? void 0 : E.find(
43423
+ }), y = qm({ context: l }), f = y == null ? void 0 : y.find(
43425
43424
  (h) => {
43426
43425
  var d;
43427
- return h.id === ((d = x.asset) == null ? void 0 : d.recommendedSymbol);
43426
+ return h.id === ((d = g.asset) == null ? void 0 : d.recommendedSymbol);
43428
43427
  }
43429
43428
  ), S = (h) => {
43430
43429
  if (!i) return;
@@ -43433,7 +43432,7 @@ const f1 = new Intl.NumberFormat("en-US", {
43433
43432
  const A = d.indexOf(".");
43434
43433
  A !== -1 && (d = d.substring(0, A + 1) + d.substring(A + 1).replace(/\./g, "")), d = d.replace(/^0+(?!\.)/, "0");
43435
43434
  const B = Nt(d);
43436
- i == null || i(co(B, x == null ? void 0 : x.decimals));
43435
+ i == null || i(co(B, g == null ? void 0 : g.decimals));
43437
43436
  }, q = (h) => {
43438
43437
  if (!i) return;
43439
43438
  let d;
@@ -43450,7 +43449,7 @@ const f1 = new Intl.NumberFormat("en-US", {
43450
43449
  default:
43451
43450
  return;
43452
43451
  }
43453
- }, v = W(() => a ? a > 0 ? D.success.text : D.error.text : D.primary.text.normal, [a, D.error.text, D.primary.text.normal, D.success.text]), I = eD(e || ""), T = nD(e);
43452
+ }, E = W(() => a ? a > 0 ? D.success.text : D.error.text : D.primary.text.normal, [a, D.error.text, D.primary.text.normal, D.success.text]), I = eD(e || ""), T = nD(e);
43454
43453
  return /* @__PURE__ */ j(K1, { justify: "space-between", borderRadius: 25, children: [
43455
43454
  /* @__PURE__ */ j(O, { justify: "space-between", children: [
43456
43455
  /* @__PURE__ */ m(
@@ -43469,9 +43468,9 @@ const f1 = new Intl.NumberFormat("en-US", {
43469
43468
  }
43470
43469
  ),
43471
43470
  /* @__PURE__ */ j(Y1, { onClick: t, disabled: p, gap: 5, children: [
43472
- x != null && x.assetImage && x.symbol ? /* @__PURE__ */ j(wt, { align: "center", justify: "center", gap: 7, children: [
43471
+ g != null && g.assetImage && g.symbol ? /* @__PURE__ */ j(wt, { align: "center", justify: "center", gap: 7, children: [
43473
43472
  /* @__PURE__ */ m(ga, { height: 23, width: 23, groupedAsset: f }),
43474
- /* @__PURE__ */ m(Te, { children: x.symbol }),
43473
+ /* @__PURE__ */ m(Te, { children: g.symbol }),
43475
43474
  b && /* @__PURE__ */ m(
43476
43475
  Ot,
43477
43476
  {
@@ -43508,26 +43507,26 @@ const f1 = new Intl.NumberFormat("en-US", {
43508
43507
  /* @__PURE__ */ m(
43509
43508
  mi,
43510
43509
  {
43511
- color: v,
43512
- onMouseEnter: () => g(!0),
43513
- onMouseLeave: () => g(!1),
43510
+ color: E,
43511
+ onMouseEnter: () => x(!0),
43512
+ onMouseLeave: () => x(!1),
43514
43513
  children: n && Rn(n)
43515
43514
  }
43516
43515
  ),
43517
43516
  /* @__PURE__ */ m(
43518
43517
  U1,
43519
43518
  {
43520
- color: v,
43519
+ color: E,
43521
43520
  direction: (a ?? 0) > 0 ? "up" : "down",
43522
43521
  style: { scale: C ? "1" : "0.7" }
43523
43522
  }
43524
43523
  ),
43525
- C && /* @__PURE__ */ j(K, { color: v, children: [
43524
+ C && /* @__PURE__ */ j(K, { color: E, children: [
43526
43525
  a,
43527
43526
  "%"
43528
43527
  ] })
43529
43528
  ] }) : /* @__PURE__ */ m(K, { children: n && Rn(n) }),
43530
- x != null && x.chainName ? /* @__PURE__ */ m(
43529
+ g != null && g.chainName ? /* @__PURE__ */ m(
43531
43530
  G1,
43532
43531
  {
43533
43532
  disabled: p,
@@ -43537,7 +43536,7 @@ const f1 = new Intl.NumberFormat("en-US", {
43537
43536
  gap: 4,
43538
43537
  children: /* @__PURE__ */ j(K, { children: [
43539
43538
  "on ",
43540
- x == null ? void 0 : x.chainName
43539
+ g == null ? void 0 : g.chainName
43541
43540
  ] })
43542
43541
  }
43543
43542
  ) : /* @__PURE__ */ m(Oc, {})
@@ -43657,8 +43656,8 @@ const f1 = new Intl.NumberFormat("en-US", {
43657
43656
  }) => {
43658
43657
  const a = De(), r = e == null ? void 0 : e.assets[0], s = Ye(), l = Fi(), p = bi(null), D = we(
43659
43658
  (u) => {
43660
- const g = u.target.value;
43661
- t(g), n(g);
43659
+ const x = u.target.value;
43660
+ t(x), n(x);
43662
43661
  },
43663
43662
  [n, t]
43664
43663
  );
@@ -43728,28 +43727,28 @@ const f1 = new Intl.NumberFormat("en-US", {
43728
43727
  background: ${({ theme: e }) => e.primary.background.normal};
43729
43728
  `, cs = 65, nx = fo(
43730
43729
  (e) => {
43731
- const n = gs(), { onSelect: i, selectedAsset: o, selectChain: t, context: c } = e, { data: a, isFetching: r, isPending: s } = L(bn), l = L(xa), { isLoading: p } = L(Ee), D = r && s || p, [u, g] = re(!0), [b, C] = re(""), [x, E] = re(null), f = xm(cs), S = () => {
43730
+ const n = gs(), { onSelect: i, selectedAsset: o, selectChain: t, context: c } = e, { data: a, isFetching: r, isPending: s } = L(bn), l = L(xa), { isLoading: p } = L(Ee), D = r && s || p, [u, x] = re(!0), [b, C] = re(""), [g, y] = re(null), f = xm(cs), S = () => {
43732
43731
  C("");
43733
43732
  }, q = we(
43734
43733
  (w) => {
43735
43734
  if (w) {
43736
43735
  if (Pc(w)) {
43737
- w.assets.length === 1 ? i(w.assets[0]) : E(w), S();
43736
+ w.assets.length === 1 ? i(w.assets[0]) : y(w), S();
43738
43737
  return;
43739
43738
  }
43740
43739
  i(w), S();
43741
43740
  }
43742
43741
  },
43743
43742
  [i]
43744
- ), v = qm({ context: c }), I = W(() => {
43745
- const w = (x == null ? void 0 : x.assets[0]) || o;
43743
+ ), E = qm({ context: c }), I = W(() => {
43744
+ const w = (g == null ? void 0 : g.assets[0]) || o;
43746
43745
  if (w)
43747
- return v == null ? void 0 : v.find(
43746
+ return E == null ? void 0 : E.find(
43748
43747
  (P) => P.id === w.recommendedSymbol
43749
43748
  );
43750
- }, [x == null ? void 0 : x.assets, o, v]), T = H1({ groupedAssetsByRecommendedSymbol: v, searchQuery: b }), h = zm({ selectedGroup: I, searchQuery: b, context: c });
43749
+ }, [g == null ? void 0 : g.assets, o, E]), T = H1({ groupedAssetsByRecommendedSymbol: E, searchQuery: b }), h = zm({ selectedGroup: I, searchQuery: b, context: c });
43751
43750
  ce(() => {
43752
- !D && a && g(!1);
43751
+ !D && a && x(!1);
43753
43752
  }, [D, a]), ce(() => {
43754
43753
  C("");
43755
43754
  }, [n.visible]);
@@ -43758,7 +43757,7 @@ const f1 = new Intl.NumberFormat("en-US", {
43758
43757
  }, B = we(
43759
43758
  (w, P) => {
43760
43759
  var Y, Z;
43761
- const y = w, z = w, H = (Y = y == null ? void 0 : y.assets) == null ? void 0 : Y.some(
43760
+ const v = w, z = w, H = (Y = v == null ? void 0 : v.assets) == null ? void 0 : Y.some(
43762
43761
  (_) => l.includes(_.denom) && _.chainID === "1"
43763
43762
  ), U = l.includes((Z = z == null ? void 0 : z.asset) == null ? void 0 : Z.denom) && (z == null ? void 0 : z.asset.chainID) === "1";
43764
43763
  return /* @__PURE__ */ m(
@@ -43774,22 +43773,22 @@ const f1 = new Intl.NumberFormat("en-US", {
43774
43773
  );
43775
43774
  },
43776
43775
  [c, l, q]
43777
- ), k = W(() => t || x ? h : T, [T, h, x, t]);
43776
+ ), k = W(() => t || g ? h : T, [T, h, g, t]);
43778
43777
  return /* @__PURE__ */ j(At, { children: [
43779
43778
  /* @__PURE__ */ m(
43780
43779
  Z1,
43781
43780
  {
43782
43781
  onSearch: A,
43783
43782
  onClickBack: () => {
43784
- V(`${d}: header back button - clicked`), x === null ? te.remove(he.AssetAndChainSelectorModal) : E(null);
43783
+ V(`${d}: header back button - clicked`), g === null ? te.remove(he.AssetAndChainSelectorModal) : y(null);
43785
43784
  },
43786
- groupedAsset: x ?? I,
43785
+ groupedAsset: g ?? I,
43787
43786
  searchTerm: b,
43788
43787
  setSearchTerm: C,
43789
43788
  onKeyDown: (w) => {
43790
43789
  V(`${d}: keyboard - pressed`, { key: w.key });
43791
- const P = (k == null ? void 0 : k[0]) ?? null, y = P == null ? void 0 : P.asset, z = P;
43792
- w.key === "Backspace" && x !== null && b === "" && E(null), w.key === "Enter" && (k == null ? void 0 : k.length) === 1 && q(y ?? z);
43790
+ const P = (k == null ? void 0 : k[0]) ?? null, v = P == null ? void 0 : P.asset, z = P;
43791
+ w.key === "Backspace" && g !== null && b === "" && y(null), w.key === "Enter" && (k == null ? void 0 : k.length) === 1 && q(v ?? z);
43793
43792
  }
43794
43793
  }
43795
43794
  ),
@@ -43865,28 +43864,28 @@ const cx = fo((e) => {
43865
43864
  const n = Ye(), { chainId: i, chainAddressIndex: o } = e, { route: t } = L(Ve), c = t == null ? void 0 : t.requiredChainAddresses;
43866
43865
  if (e.chainAddressIndex === void 0)
43867
43866
  throw new Error("chain address index cannot be undefined");
43868
- const a = De(), { data: r } = L(Ee), s = r == null ? void 0 : r.find((y) => y.chainID === i), l = s == null ? void 0 : s.prettyName, p = s == null ? void 0 : s.logoURI, [D, u] = re(!1), [g, b] = re(""), C = ua({ chainID: i, destinationWalletList: !0 }), [x, E] = me(Un), f = new Set(Object.values(x).map(({ chainID: y }) => y)).size > 1, S = Fi(), q = {
43867
+ const a = De(), { data: r } = L(Ee), s = r == null ? void 0 : r.find((v) => v.chainID === i), l = s == null ? void 0 : s.prettyName, p = s == null ? void 0 : s.logoURI, [D, u] = re(!1), [x, b] = re(""), C = ua({ chainID: i, destinationWalletList: !0 }), [g, y] = me(Un), f = new Set(Object.values(g).map(({ chainID: v }) => v)).size > 1, S = Fi(), q = {
43869
43868
  onSelect: () => u(!0),
43870
43869
  walletName: "Enter address manually",
43871
43870
  rightContent: () => {
43872
- var y;
43873
- return /* @__PURE__ */ m(Wc, { color: (y = a == null ? void 0 : a.primary) == null ? void 0 : y.text.normal });
43871
+ var v;
43872
+ return /* @__PURE__ */ m(Wc, { color: (v = a == null ? void 0 : a.primary) == null ? void 0 : v.text.normal });
43874
43873
  }
43875
- }, v = (s == null ? void 0 : s.chainType) === ((M = x[0]) == null ? void 0 : M.chainType) && (s == null ? void 0 : s.chainType) !== R.Cosmos, I = e.signRequired, T = [...C, ...I ? [] : [q]], h = we((y) => {
43876
- b(y.target.value);
43874
+ }, E = (s == null ? void 0 : s.chainType) === ((M = g[0]) == null ? void 0 : M.chainType) && (s == null ? void 0 : s.chainType) !== R.Cosmos, I = e.signRequired, T = [...C, ...I ? [] : [q]], h = we((v) => {
43875
+ b(v.target.value);
43877
43876
  }, []), d = W(() => {
43878
- if (!s || g.length === 0) return;
43879
- const { chainType: y, bech32Prefix: z, chainID: H } = s;
43877
+ if (!s || x.length === 0) return;
43878
+ const { chainType: v, bech32Prefix: z, chainID: H } = s;
43880
43879
  return tx({
43881
- address: g,
43880
+ address: x,
43882
43881
  bech32Prefix: z,
43883
- chainType: y,
43882
+ chainType: v,
43884
43883
  chainId: H
43885
43884
  });
43886
- }, [s, g]), A = W(() => {
43885
+ }, [s, x]), A = W(() => {
43887
43886
  if (!s) return "Enter address...";
43888
- const { chainType: y, bech32Prefix: z } = s;
43889
- switch (y) {
43887
+ const { chainType: v, bech32Prefix: z } = s;
43888
+ switch (v) {
43890
43889
  case R.Cosmos:
43891
43890
  return `${z}1...`;
43892
43891
  case R.EVM:
@@ -43900,32 +43899,32 @@ const cx = fo((e) => {
43900
43899
  V("set address modal: confirm set address", {
43901
43900
  chainId: i
43902
43901
  });
43903
- const y = s == null ? void 0 : s.chainType;
43904
- !i || !y || (E((z) => ({
43902
+ const v = s == null ? void 0 : s.chainType;
43903
+ !i || !v || (y((z) => ({
43905
43904
  ...z,
43906
43905
  [o]: {
43907
43906
  chainID: i,
43908
- chainType: y,
43909
- address: g,
43907
+ chainType: v,
43908
+ address: x,
43910
43909
  source: "input"
43911
43910
  /* Input */
43912
43911
  }
43913
43912
  })), te.remove(he.SetAddressModal));
43914
43913
  }, k = W(() => {
43915
- const z = o === Object.values(x).length - 1 ? "Destination" : "Intermediary";
43914
+ const z = o === Object.values(g).length - 1 ? "Destination" : "Intermediary";
43916
43915
  return S ? z : `${z} wallet`;
43917
- }, [o, x, S]), F = async (y) => {
43916
+ }, [o, g, S]), F = async (v) => {
43918
43917
  var G, Y;
43919
43918
  V("set address modal: wallet selected", {
43920
43919
  chainId: i,
43921
- walletName: y.walletName
43920
+ walletName: v.walletName
43922
43921
  });
43923
- const z = await ((Y = y.getAddress) == null ? void 0 : Y.call(y, {
43922
+ const z = await ((Y = v.getAddress) == null ? void 0 : Y.call(v, {
43924
43923
  praxWallet: {
43925
- sourceChainID: o ? (G = x[o - 1]) == null ? void 0 : G.chainID : void 0
43924
+ sourceChainID: o ? (G = g[o - 1]) == null ? void 0 : G.chainID : void 0
43926
43925
  }
43927
43926
  })), H = z == null ? void 0 : z.address, U = z == null ? void 0 : z.logo;
43928
- E((Z) => {
43927
+ y((Z) => {
43929
43928
  var _;
43930
43929
  return JSON.stringify(c) !== JSON.stringify(Object.values(Z).map(($) => $.chainID)) ? Z : {
43931
43930
  ...Z,
@@ -43935,11 +43934,11 @@ const cx = fo((e) => {
43935
43934
  address: H,
43936
43935
  source: "wallet",
43937
43936
  wallet: {
43938
- walletName: y.walletName,
43939
- walletPrettyName: y.walletPrettyName,
43940
- walletChainType: y.walletChainType,
43937
+ walletName: v.walletName,
43938
+ walletPrettyName: v.walletPrettyName,
43939
+ walletChainType: v.walletChainType,
43941
43940
  walletInfo: {
43942
- logo: U ?? ((_ = y.walletInfo) == null ? void 0 : _.logo)
43941
+ logo: U ?? ((_ = v.walletInfo) == null ? void 0 : _.logo)
43943
43942
  }
43944
43943
  }
43945
43944
  }
@@ -43961,7 +43960,7 @@ const cx = fo((e) => {
43961
43960
  lx,
43962
43961
  {
43963
43962
  placeholder: A,
43964
- value: g,
43963
+ value: x,
43965
43964
  onChange: h,
43966
43965
  validAddress: d
43967
43966
  }
@@ -43994,16 +43993,16 @@ const cx = fo((e) => {
43994
43993
  bm,
43995
43994
  {
43996
43995
  title: k,
43997
- walletList: v ? [q] : T,
43996
+ walletList: E ? [q] : T,
43998
43997
  onClickBackButton: () => {
43999
43998
  V("set address modal: back button - clicked"), te.remove(he.SetAddressModal);
44000
43999
  },
44001
44000
  chainId: i,
44002
- onSelectWallet: (y) => {
44001
+ onSelectWallet: (v) => {
44003
44002
  V("set address modal: wallet selected", {
44004
44003
  chainId: i,
44005
- walletName: y.walletName
44006
- }), F(y);
44004
+ walletName: v.walletName
44005
+ }), F(v);
44007
44006
  }
44008
44007
  }
44009
44008
  ) });
@@ -44252,31 +44251,31 @@ const Im = Q(void 0), Hm = () => {
44252
44251
  explorerLink: a,
44253
44252
  context: r
44254
44253
  }) => {
44255
- var E;
44254
+ var y;
44256
44255
  const s = De(), l = Ye(), { copyAddress: p, isShowingCopyAddressFeedback: D } = pa(), u = Oe({
44257
44256
  assetDenom: e,
44258
44257
  chainId: o,
44259
44258
  tokenAmount: n
44260
- }), g = L(Un), b = W(() => {
44259
+ }), x = L(Un), b = W(() => {
44261
44260
  var S, q;
44262
- const f = Object.values(g);
44261
+ const f = Object.values(x);
44263
44262
  switch (r) {
44264
44263
  case "source": {
44265
- const v = f[0];
44264
+ const E = f[0];
44266
44265
  return {
44267
- address: v == null ? void 0 : v.address,
44268
- image: (v == null ? void 0 : v.source) === "wallet" && ((S = v == null ? void 0 : v.wallet) == null ? void 0 : S.walletInfo.logo) || void 0
44266
+ address: E == null ? void 0 : E.address,
44267
+ image: (E == null ? void 0 : E.source) === "wallet" && ((S = E == null ? void 0 : E.wallet) == null ? void 0 : S.walletInfo.logo) || void 0
44269
44268
  };
44270
44269
  }
44271
44270
  case "destination": {
44272
- const v = f[f.length - 1];
44271
+ const E = f[f.length - 1];
44273
44272
  return {
44274
- address: v == null ? void 0 : v.address,
44275
- image: (v == null ? void 0 : v.source) === "wallet" && ((q = v == null ? void 0 : v.wallet) == null ? void 0 : q.walletInfo.logo) || void 0
44273
+ address: E == null ? void 0 : E.address,
44274
+ image: (E == null ? void 0 : E.source) === "wallet" && ((q = E == null ? void 0 : E.wallet) == null ? void 0 : q.walletInfo.logo) || void 0
44276
44275
  };
44277
44276
  }
44278
44277
  }
44279
- }, [g, r]), C = W(() => Bi(co(u.amount)), [u.amount]), x = W(() => {
44278
+ }, [x, r]), C = W(() => Bi(co(u.amount)), [u.amount]), g = W(() => {
44280
44279
  if (a)
44281
44280
  return l ? /* @__PURE__ */ m(nm, { href: a, target: "_blank", children: /* @__PURE__ */ m(Vn, {}) }) : /* @__PURE__ */ m(na, { href: a, target: "_blank", children: /* @__PURE__ */ m(Vn, {}) });
44282
44281
  }, [a, l]);
@@ -44295,7 +44294,7 @@ const Im = Q(void 0), Hm = () => {
44295
44294
  width: 50,
44296
44295
  style: { borderRadius: 50 },
44297
44296
  src: u.assetImage,
44298
- title: (E = u == null ? void 0 : u.asset) == null ? void 0 : E.name
44297
+ title: (y = u == null ? void 0 : u.asset) == null ? void 0 : y.name
44299
44298
  }
44300
44299
  ) : /* @__PURE__ */ m(gx, { children: "?" })
44301
44300
  }
@@ -44316,7 +44315,7 @@ const Im = Q(void 0), Hm = () => {
44316
44315
  b.image && /* @__PURE__ */ m("img", { height: 10, width: 10, src: b.image }),
44317
44316
  b.address && /* @__PURE__ */ m(K, { monospace: !0, title: b.address, textWrap: "nowrap", children: D ? "Address copied!" : xo(b.address, l) })
44318
44317
  ] }),
44319
- a ? x : c ? /* @__PURE__ */ m(
44318
+ a ? g : c ? /* @__PURE__ */ m(
44320
44319
  on,
44321
44320
  {
44322
44321
  as: l ? ut : void 0,
@@ -44382,13 +44381,13 @@ const Im = Q(void 0), Hm = () => {
44382
44381
  swapExecutionState: o,
44383
44382
  firstOperationStatus: t
44384
44383
  }) => {
44385
- var C, x;
44384
+ var C, g;
44386
44385
  const c = De(), { route: a } = L(Ve), r = e[0], s = e[e.length - 1], l = n == null ? void 0 : n.transferEvents, p = W(() => {
44387
44386
  var f;
44388
- const E = (f = l == null ? void 0 : l[s.transferIndex]) == null ? void 0 : f.status;
44387
+ const y = (f = l == null ? void 0 : l[s.transferIndex]) == null ? void 0 : f.status;
44389
44388
  if (o === be.confirmed)
44390
44389
  return "completed";
44391
- if (E) return E;
44390
+ if (y) return y;
44392
44391
  if (t === "completed")
44393
44392
  return "pending";
44394
44393
  }, [t, s.transferIndex, l, o]), D = {
@@ -44401,7 +44400,7 @@ const Im = Q(void 0), Hm = () => {
44401
44400
  tokenAmount: s.amountOut,
44402
44401
  chainId: s.toChainID ?? s.chainID,
44403
44402
  usdValue: a == null ? void 0 : a.usdAmountOut
44404
- }, g = (C = l == null ? void 0 : l[r.transferIndex]) == null ? void 0 : C.fromExplorerLink, b = (x = l == null ? void 0 : l[s.transferIndex]) == null ? void 0 : x.toExplorerLink;
44403
+ }, x = (C = l == null ? void 0 : l[r.transferIndex]) == null ? void 0 : C.fromExplorerLink, b = (g = l == null ? void 0 : l[s.transferIndex]) == null ? void 0 : g.toExplorerLink;
44405
44404
  return /* @__PURE__ */ j(Cx, { justify: "space-between", children: [
44406
44405
  /* @__PURE__ */ m(
44407
44406
  rs,
@@ -44409,7 +44408,7 @@ const Im = Q(void 0), Hm = () => {
44409
44408
  ...D,
44410
44409
  status: t,
44411
44410
  context: "source",
44412
- explorerLink: g
44411
+ explorerLink: x
44413
44412
  }
44414
44413
  ),
44415
44414
  /* @__PURE__ */ m(Ax, { color: c.primary.text.normal }),
@@ -44543,43 +44542,43 @@ const Im = Q(void 0), Hm = () => {
44543
44542
  const { data: a } = L(ea), { data: r } = L(Q0), s = e[0], l = n == null ? void 0 : n.transferEvents, p = we(
44544
44543
  (C) => {
44545
44544
  var T, h;
44546
- const x = (h = (T = C.swapVenues) == null ? void 0 : T[0]) == null ? void 0 : h.chainID, E = C.bridgeID, f = r == null ? void 0 : r.find((d) => d.id === E), S = a == null ? void 0 : a.find((d) => d.chainID === x), q = (f == null ? void 0 : f.logoURI) ?? (S == null ? void 0 : S.logoUri), v = q == null ? void 0 : q.endsWith(".svg");
44545
+ const g = (h = (T = C.swapVenues) == null ? void 0 : T[0]) == null ? void 0 : h.chainID, y = C.bridgeID, f = r == null ? void 0 : r.find((d) => d.id === y), S = a == null ? void 0 : a.find((d) => d.chainID === g), q = (f == null ? void 0 : f.logoURI) ?? (S == null ? void 0 : S.logoUri), E = q == null ? void 0 : q.endsWith(".svg");
44547
44546
  return {
44548
44547
  name: (f == null ? void 0 : f.name) ?? (S == null ? void 0 : S.name),
44549
44548
  image: q,
44550
- isSvg: v
44549
+ isSvg: E
44551
44550
  };
44552
44551
  },
44553
44552
  [r, a]
44554
44553
  ), D = we(
44555
44554
  (C) => {
44556
44555
  var f, S;
44557
- const x = (f = l == null ? void 0 : l[C.transferIndex]) == null ? void 0 : f.status, E = (S = l == null ? void 0 : l[C.transferIndex - 1]) == null ? void 0 : S.status;
44556
+ const g = (f = l == null ? void 0 : l[C.transferIndex]) == null ? void 0 : f.status, y = (S = l == null ? void 0 : l[C.transferIndex - 1]) == null ? void 0 : S.status;
44558
44557
  if (o === be.confirmed)
44559
44558
  return "completed";
44560
44559
  if (C.transferIndex === 0)
44561
44560
  return c;
44562
- if (x) return x;
44563
- if (E === "completed")
44561
+ if (g) return g;
44562
+ if (y === "completed")
44564
44563
  return "pending";
44565
44564
  },
44566
44565
  [c, l, o]
44567
44566
  ), u = we(
44568
44567
  (C) => {
44569
- const x = yx[C.type], E = p(C);
44568
+ const g = yx[C.type], y = p(C);
44570
44569
  return /* @__PURE__ */ m(Px, { align: "center", children: /* @__PURE__ */ m(
44571
44570
  Pi,
44572
44571
  {
44573
44572
  content: /* @__PURE__ */ j(K, { normalTextColor: !0, textWrap: "nowrap", children: [
44574
- x,
44573
+ g,
44575
44574
  " with ",
44576
- E.name,
44577
- E.isSvg ? /* @__PURE__ */ m(Mx, { svg: E.image }) : /* @__PURE__ */ m(
44575
+ y.name,
44576
+ y.isSvg ? /* @__PURE__ */ m(Mx, { svg: y.image }) : /* @__PURE__ */ m(
44578
44577
  Bx,
44579
44578
  {
44580
44579
  width: "10",
44581
44580
  height: "10",
44582
- src: E.image
44581
+ src: y.image
44583
44582
  }
44584
44583
  )
44585
44584
  ] }),
@@ -44588,29 +44587,29 @@ const Im = Q(void 0), Hm = () => {
44588
44587
  ) });
44589
44588
  },
44590
44589
  [p]
44591
- ), g = W(() => e.map((C, x) => {
44592
- var v, I;
44593
- const E = e[x + 1], f = {
44590
+ ), x = W(() => e.map((C, g) => {
44591
+ var E, I;
44592
+ const y = e[g + 1], f = {
44594
44593
  tokenAmount: C.amountOut,
44595
44594
  denom: C.denomOut,
44596
44595
  chainId: C.toChainID ?? C.chainID
44597
- }, S = C.isSwap ? (v = l == null ? void 0 : l[C.transferIndex]) == null ? void 0 : v.fromExplorerLink : (I = l == null ? void 0 : l[C.transferIndex]) == null ? void 0 : I.toExplorerLink, q = D(C);
44596
+ }, S = C.isSwap ? (E = l == null ? void 0 : l[C.transferIndex]) == null ? void 0 : E.fromExplorerLink : (I = l == null ? void 0 : l[C.transferIndex]) == null ? void 0 : I.toExplorerLink, q = D(C);
44598
44597
  return /* @__PURE__ */ j(ln.Fragment, { children: [
44599
44598
  u(C),
44600
44599
  /* @__PURE__ */ m(
44601
44600
  Yr,
44602
44601
  {
44603
44602
  ...f,
44604
- index: x,
44603
+ index: g,
44605
44604
  onClickEditDestinationWallet: i,
44606
- context: x === e.length - 1 ? "destination" : "intermediary",
44607
- isSignRequired: E == null ? void 0 : E.signRequired,
44605
+ context: g === e.length - 1 ? "destination" : "intermediary",
44606
+ isSignRequired: y == null ? void 0 : y.signRequired,
44608
44607
  status: q,
44609
44608
  explorerLink: S,
44610
44609
  statusData: n
44611
44610
  }
44612
44611
  )
44613
- ] }, `row-${C.fromChain}-${C.toChainID}-${x}`);
44612
+ ] }, `row-${C.fromChain}-${C.toChainID}-${g}`);
44614
44613
  }), [
44615
44614
  D,
44616
44615
  i,
@@ -44632,7 +44631,7 @@ const Im = Q(void 0), Hm = () => {
44632
44631
  index: 0
44633
44632
  }
44634
44633
  ),
44635
- g
44634
+ x
44636
44635
  ] }) });
44637
44636
  }, Ex = N(pe).attrs({
44638
44637
  as: pe
@@ -44664,14 +44663,14 @@ const Im = Q(void 0), Hm = () => {
44664
44663
  position: relative;
44665
44664
  height: 25px;
44666
44665
  `, zx = () => {
44667
- var S, q, v;
44668
- const [e, n] = me(Un), { route: i, overallStatus: o } = L(Ve), t = i == null ? void 0 : i.requiredChainAddresses, { data: c } = L(Ee), a = L(rt), [r, s] = re(!0), [l, p] = re(!1), [D, u] = re(), { createCosmosWallets: g } = Am(), { createEvmWallets: b } = Cm(), { createSolanaWallets: C } = km();
44666
+ var S, q, E;
44667
+ const [e, n] = me(Un), { route: i, overallStatus: o } = L(Ve), t = i == null ? void 0 : i.requiredChainAddresses, { data: c } = L(Ee), a = L(rt), [r, s] = re(!0), [l, p] = re(!1), [D, u] = re(), { createCosmosWallets: x } = Am(), { createEvmWallets: b } = Cm(), { createSolanaWallets: C } = km();
44669
44668
  me(n2);
44670
- const x = L(st), E = W(() => i != null && i.operations ? Ti(i.operations).filter((h) => h.signRequired).map((h) => h.fromChainID) : void 0, [i == null ? void 0 : i.operations]), f = we(
44669
+ const g = L(st), y = W(() => i != null && i.operations ? Ti(i.operations).filter((h) => h.signRequired).map((h) => h.fromChainID) : void 0, [i == null ? void 0 : i.operations]), f = we(
44671
44670
  async (I) => {
44672
44671
  s(!0);
44673
44672
  const T = {
44674
- [R.Cosmos]: g,
44673
+ [R.Cosmos]: x,
44675
44674
  [R.EVM]: b,
44676
44675
  [R.SVM]: C
44677
44676
  };
@@ -44681,7 +44680,7 @@ const Im = Q(void 0), Hm = () => {
44681
44680
  if (!A)
44682
44681
  return;
44683
44682
  const B = () => {
44684
- const M = E == null ? void 0 : E.includes(h);
44683
+ const M = y == null ? void 0 : y.includes(h);
44685
44684
  te.show(he.SetAddressModal, {
44686
44685
  signRequired: M,
44687
44686
  chainId: h,
@@ -44690,7 +44689,7 @@ const Im = Q(void 0), Hm = () => {
44690
44689
  };
44691
44690
  if (e[d].source !== To.Input)
44692
44691
  try {
44693
- const M = A.chainType, w = T[M](h), P = (k = a[M]) == null ? void 0 : k.walletName, y = w.find((Y) => Y.walletName === P), z = E == null ? void 0 : E.includes(h), H = await ((F = y == null ? void 0 : y.getAddress) == null ? void 0 : F.call(y, { signRequired: z })), U = x == null ? void 0 : x[h], G = (x == null ? void 0 : x[h]) ?? (H == null ? void 0 : H.address);
44692
+ const M = A.chainType, w = T[M](h), P = (k = a[M]) == null ? void 0 : k.walletName, v = w.find((Y) => Y.walletName === P), z = y == null ? void 0 : y.includes(h), H = await ((F = v == null ? void 0 : v.getAddress) == null ? void 0 : F.call(v, { signRequired: z })), U = g == null ? void 0 : g[h], G = (g == null ? void 0 : g[h]) ?? (H == null ? void 0 : H.address);
44694
44693
  if (!G)
44695
44694
  throw new Error(
44696
44695
  `Address not found in connected wallets.
@@ -44703,7 +44702,7 @@ const Im = Q(void 0), Hm = () => {
44703
44702
  n((Y) => {
44704
44703
  const Z = () => {
44705
44704
  var _;
44706
- return (y == null ? void 0 : y.walletChainType) === "evm" && (y == null ? void 0 : y.walletName) === "app.keplr" ? Yo(le.KEPLR).imgSrc : (H == null ? void 0 : H.logo) ?? ((_ = y == null ? void 0 : y.walletInfo) == null ? void 0 : _.logo);
44705
+ return (v == null ? void 0 : v.walletChainType) === "evm" && (v == null ? void 0 : v.walletName) === "app.keplr" ? Yo(le.KEPLR).imgSrc : (H == null ? void 0 : H.logo) ?? ((_ = v == null ? void 0 : v.walletInfo) == null ? void 0 : _.logo);
44707
44706
  };
44708
44707
  return {
44709
44708
  ...Y,
@@ -44712,9 +44711,9 @@ const Im = Q(void 0), Hm = () => {
44712
44711
  address: G,
44713
44712
  chainType: M,
44714
44713
  source: U ? To.Injected : To.Wallet,
44715
- wallet: y ? {
44716
- walletName: y == null ? void 0 : y.walletName,
44717
- walletPrettyName: y == null ? void 0 : y.walletPrettyName,
44714
+ wallet: v ? {
44715
+ walletName: v == null ? void 0 : v.walletName,
44716
+ walletPrettyName: v == null ? void 0 : v.walletPrettyName,
44718
44717
  walletChainType: M,
44719
44718
  walletInfo: {
44720
44719
  logo: Z()
@@ -44732,15 +44731,15 @@ const Im = Q(void 0), Hm = () => {
44732
44731
  });
44733
44732
  },
44734
44733
  [
44735
- g,
44734
+ x,
44736
44735
  b,
44737
44736
  C,
44738
44737
  t,
44739
44738
  c,
44740
44739
  e,
44741
- E,
44740
+ y,
44742
44741
  a,
44743
- x,
44742
+ g,
44744
44743
  n
44745
44744
  ]
44746
44745
  );
@@ -44755,7 +44754,7 @@ const Im = Q(void 0), Hm = () => {
44755
44754
  f,
44756
44755
  (S = D == null ? void 0 : D.cosmos) == null ? void 0 : S.id,
44757
44756
  (q = D == null ? void 0 : D.evm) == null ? void 0 : q.id,
44758
- (v = D == null ? void 0 : D.svm) == null ? void 0 : v.id,
44757
+ (E = D == null ? void 0 : D.svm) == null ? void 0 : E.id,
44759
44758
  r,
44760
44759
  o,
44761
44760
  t,
@@ -44812,9 +44811,9 @@ const Im = Q(void 0), Hm = () => {
44812
44811
  return "completed";
44813
44812
  if (!e.isSuccess && e.isSettled)
44814
44813
  return "failed";
44815
- if (i != null && i.find(({ status: g }) => g === "pending"))
44814
+ if (i != null && i.find(({ status: x }) => x === "pending"))
44816
44815
  return "pending";
44817
- if (i != null && i.every(({ status: g }) => g === "unconfirmed"))
44816
+ if (i != null && i.every(({ status: x }) => x === "unconfirmed"))
44818
44817
  return "unconfirmed";
44819
44818
  }
44820
44819
  }
@@ -44973,10 +44972,10 @@ const Nx = ({
44973
44972
  icon: J.rightArrow,
44974
44973
  onClick: () => {
44975
44974
  V("swap execution page: set destination address button - clicked");
44976
- const g = n == null ? void 0 : n.destAssetChainID;
44977
- g && te.show(he.SetAddressModal, {
44975
+ const x = n == null ? void 0 : n.destAssetChainID;
44976
+ x && te.show(he.SetAddressModal, {
44978
44977
  signRequired: o.signRequired,
44979
- chainId: g,
44978
+ chainId: x,
44980
44979
  chainAddressIndex: n.requiredChainAddresses.length - 1
44981
44980
  });
44982
44981
  }
@@ -44984,7 +44983,7 @@ const Nx = ({
44984
44983
  );
44985
44984
  case be.ready: {
44986
44985
  V("swap execution page: confirm button - clicked", { route: n });
44987
- const g = () => {
44986
+ const x = () => {
44988
44987
  if (n != null && n.txsRequired && n.txsRequired > 1) {
44989
44988
  V("error page: additional signing required", { route: n }), s({
44990
44989
  errorType: Ce.AdditionalSigningRequired,
@@ -44995,7 +44994,7 @@ const Nx = ({
44995
44994
  }
44996
44995
  c();
44997
44996
  };
44998
- return /* @__PURE__ */ m(ge, { label: "Confirm", icon: J.rightArrow, onClick: g });
44997
+ return /* @__PURE__ */ m(ge, { label: "Confirm", icon: J.rightArrow, onClick: x });
44999
44998
  }
45000
44999
  case be.validatingGasBalance:
45001
45000
  return /* @__PURE__ */ m(ge, { label: "Validating", icon: J.rightArrow, loading: !0 });
@@ -45046,10 +45045,10 @@ const Nx = ({
45046
45045
  }, Lx = (e) => {
45047
45046
  var p, D;
45048
45047
  const n = X(je), i = X(tn), o = X(de), t = X(On), [{ data: c }] = me(bn), { transactionDetailsArray: a } = L(Ve), r = a[a.length - 1], l = we(
45049
- (u, g) => {
45050
- if (!(!u || !g) && c)
45048
+ (u, x) => {
45049
+ if (!(!u || !x) && c)
45051
45050
  return c.find(
45052
- (b) => b.denom.toLowerCase() === u.toLowerCase() && b.chainID === g
45051
+ (b) => b.denom.toLowerCase() === u.toLowerCase() && b.chainID === x
45053
45052
  );
45054
45053
  },
45055
45054
  [c]
@@ -45107,35 +45106,35 @@ const Rx = () => {
45107
45106
  transactionDetailsArray: o,
45108
45107
  isValidatingGasBalance: t,
45109
45108
  transactionsSigned: c
45110
- } = L(Ve), a = L(Un), { connectRequiredChains: r, isLoading: s } = zx(), [l, p] = re(!0), { mutate: D } = L(Dm), g = (n == null ? void 0 : n.txsRequired) && n.txsRequired > 1 ? n.txsRequired - c : 0, { data: b } = ca({
45109
+ } = L(Ve), a = L(Un), { connectRequiredChains: r, isLoading: s } = zx(), [l, p] = re(!0), { mutate: D } = L(Dm), x = (n == null ? void 0 : n.txsRequired) && n.txsRequired > 1 ? n.txsRequired - c : 0, { data: b } = ca({
45111
45110
  txsRequired: n == null ? void 0 : n.txsRequired,
45112
45111
  txs: o
45113
45112
  });
45114
45113
  qx({
45115
45114
  statusData: b
45116
45115
  });
45117
- const C = W(() => n != null && n.operations ? Ti(n.operations) : [], [n == null ? void 0 : n.operations]), x = C[C.length - 1], E = jx({
45116
+ const C = W(() => n != null && n.operations ? Ti(n.operations) : [], [n == null ? void 0 : n.operations]), g = C[C.length - 1], y = jx({
45118
45117
  chainAddresses: a,
45119
45118
  route: n,
45120
45119
  overallStatus: i,
45121
45120
  isValidatingGasBalance: t,
45122
- signaturesRemaining: g,
45121
+ signaturesRemaining: x,
45123
45122
  isLoading: s
45124
45123
  });
45125
- Lx(b), Sx(E);
45124
+ Lx(b), Sx(y);
45126
45125
  const f = W(() => {
45127
- if (E === 6 || E === 3 || E === 5)
45126
+ if (y === 6 || y === 3 || y === 5)
45128
45127
  return "completed";
45129
- }, [E]), S = W(() => {
45128
+ }, [y]), S = W(() => {
45130
45129
  var T;
45131
45130
  const I = b == null ? void 0 : b.transferEvents;
45132
- if (E === 6)
45131
+ if (y === 6)
45133
45132
  return "completed";
45134
45133
  if ((T = I == null ? void 0 : I[0]) != null && T.status)
45135
45134
  return I[0].status;
45136
- if (E === 3 || E === 5)
45135
+ if (y === 3 || y === 5)
45137
45136
  return "pending";
45138
- }, [b, E]), q = W(() => {
45137
+ }, [b, y]), q = W(() => {
45139
45138
  if (V("swap execution page: edit destination address button - clicked"), ![
45140
45139
  3,
45141
45140
  4,
@@ -45143,14 +45142,14 @@ const Rx = () => {
45143
45142
  6,
45144
45143
  5
45145
45144
  /* signaturesRemaining */
45146
- ].includes(E))
45145
+ ].includes(y))
45147
45146
  return () => {
45148
45147
  te.show(he.SetAddressModal, {
45149
45148
  chainId: n == null ? void 0 : n.destAssetChainID,
45150
45149
  chainAddressIndex: n ? (n == null ? void 0 : n.requiredChainAddresses.length) - 1 : void 0
45151
45150
  });
45152
45151
  };
45153
- }, [E, n]), v = l ? bx : vx;
45152
+ }, [y, n]), E = l ? bx : vx;
45154
45153
  return /* @__PURE__ */ j(pe, { gap: 5, children: [
45155
45154
  /* @__PURE__ */ m(
45156
45155
  Xe,
@@ -45174,12 +45173,12 @@ const Rx = () => {
45174
45173
  }
45175
45174
  ),
45176
45175
  /* @__PURE__ */ m(
45177
- v,
45176
+ E,
45178
45177
  {
45179
45178
  onClickEditDestinationWallet: q,
45180
45179
  operations: C,
45181
45180
  statusData: b,
45182
- swapExecutionState: E,
45181
+ swapExecutionState: y,
45183
45182
  firstOperationStatus: f,
45184
45183
  secondOperationStatus: S
45185
45184
  }
@@ -45187,10 +45186,10 @@ const Rx = () => {
45187
45186
  /* @__PURE__ */ m(
45188
45187
  Vx,
45189
45188
  {
45190
- swapExecutionState: E,
45189
+ swapExecutionState: y,
45191
45190
  route: n,
45192
- signaturesRemaining: g,
45193
- lastOperation: x,
45191
+ signaturesRemaining: x,
45192
+ lastOperation: g,
45194
45193
  connectRequiredChains: r,
45195
45194
  submitExecuteRouteMutation: D
45196
45195
  }
@@ -45320,11 +45319,11 @@ const Nm = () => {
45320
45319
  }), l = s.isPending && s.isFetching, p = c && a;
45321
45320
  return {
45322
45321
  data: W(() => {
45323
- var x, E, f, S, q, v, I, T;
45322
+ var g, y, f, S, q, E, I, T;
45324
45323
  if (!e || !i || !o) return;
45325
- const { chainID: u, denom: g } = e;
45326
- if (!g || !u) return;
45327
- const b = !!((E = (x = o == null ? void 0 : o.chains) == null ? void 0 : x[u]) != null && E.denoms), C = (q = (S = (f = o == null ? void 0 : o.chains) == null ? void 0 : f[u]) == null ? void 0 : S.denoms) == null ? void 0 : q[g];
45324
+ const { chainID: u, denom: x } = e;
45325
+ if (!x || !u) return;
45326
+ const b = !!((y = (g = o == null ? void 0 : o.chains) == null ? void 0 : g[u]) != null && y.denoms), C = (q = (S = (f = o == null ? void 0 : o.chains) == null ? void 0 : f[u]) == null ? void 0 : S.denoms) == null ? void 0 : q[x];
45328
45327
  return e.isCW20 ? {
45329
45328
  ...s.data,
45330
45329
  error: s.error || void 0
@@ -45333,7 +45332,7 @@ const Nm = () => {
45333
45332
  formattedAmount: "0",
45334
45333
  error: void 0,
45335
45334
  decimals: void 0
45336
- } : (T = (I = (v = o == null ? void 0 : o.chains) == null ? void 0 : v[u]) == null ? void 0 : I.denoms) == null ? void 0 : T[g];
45335
+ } : (T = (I = (E = o == null ? void 0 : o.chains) == null ? void 0 : E[u]) == null ? void 0 : I.denoms) == null ? void 0 : T[x];
45337
45336
  }, [e, i, o, s.data, s.error]),
45338
45337
  isLoading: !t || p || l,
45339
45338
  refetch: () => {
@@ -45351,18 +45350,18 @@ const Nm = () => {
45351
45350
  const s = (b = n(e, r.denom)) == null ? void 0 : b.amount;
45352
45351
  if (!s) return;
45353
45352
  const l = (() => {
45354
- var x, E, f;
45355
- const C = ((x = r.gasPrice) == null ? void 0 : x.average) || ((E = r.gasPrice) == null ? void 0 : E.high) || ((f = r.gasPrice) == null ? void 0 : f.low);
45353
+ var g, y, f;
45354
+ const C = ((g = r.gasPrice) == null ? void 0 : g.average) || ((y = r.gasPrice) == null ? void 0 : y.high) || ((f = r.gasPrice) == null ? void 0 : f.low);
45356
45355
  if (C)
45357
45356
  return new Np(Tp.fromUserInput(ve(C).toFixed(), 18), r.denom);
45358
45357
  })();
45359
45358
  if (!l) return;
45360
- const p = o == null ? void 0 : o.map((C) => C.chainID).includes(e), D = Math.ceil(p ? eo.SWAP : eo.DEFAULT), g = Vp(D, l).amount[0].amount;
45359
+ const p = o == null ? void 0 : o.map((C) => C.chainID).includes(e), D = Math.ceil(p ? eo.SWAP : eo.DEFAULT), x = Vp(D, l).amount[0].amount;
45361
45360
  return {
45362
- feeAmount: g,
45361
+ feeAmount: x,
45363
45362
  denom: r.denom,
45364
- balanceWithFees: ve(s).minus(g).toString(),
45365
- isSufficient: s ? ve(s).isGreaterThanOrEqualTo(ve(g)) : !1
45363
+ balanceWithFees: ve(s).minus(x).toString(),
45364
+ isSufficient: s ? ve(s).isGreaterThanOrEqualTo(ve(x)) : !1
45366
45365
  };
45367
45366
  }).filter((r) => r);
45368
45367
  }, [e, i, n, o]);
@@ -45534,10 +45533,10 @@ const Nm = () => {
45534
45533
  return l && (t == null ? void 0 : t[l]);
45535
45534
  }, [t, o]), { chainId: a } = so(), r = W(() => !n || !o ? {} : n.reduce(
45536
45535
  (s, l) => {
45537
- var g, b;
45536
+ var x, b;
45538
45537
  const p = o.find((C) => C.chainID === l.chainID);
45539
45538
  if (!p) return s;
45540
- const D = c ?? ((g = e(String(a))) == null ? void 0 : g.address), u = p.chainType === R.EVM ? D : (b = e(l.chainID)) == null ? void 0 : b.address;
45539
+ const D = c ?? ((x = e(String(a))) == null ? void 0 : x.address), u = p.chainType === R.EVM ? D : (b = e(l.chainID)) == null ? void 0 : b.address;
45541
45540
  return u && !s[l.chainID] && (s[l.chainID] = { address: u }), s;
45542
45541
  },
45543
45542
  {}
@@ -45605,7 +45604,7 @@ const Nm = () => {
45605
45604
  var Y;
45606
45605
  const { SettingsFooter: e, drawerOpen: n } = Hm();
45607
45606
  me(TD), me(ND);
45608
- const [i, o] = me(de), t = X(go), c = X(dt), [a] = me(sm), [r, s] = me(Ke), [l] = me(Ln), [{ data: p }] = me(bn), D = X(tn), u = Qx(), g = X($D), b = X(je), { isFetching: C, isPending: x } = L(Da), E = C && x, { data: f, isError: S, error: q } = L(Wn), v = og(), I = L(sa), T = ft(f), h = L(Dt), d = L(lm), A = X(Un);
45607
+ const [i, o] = me(de), t = X(go), c = X(dt), [a] = me(sm), [r, s] = me(Ke), [l] = me(Ln), [{ data: p }] = me(bn), D = X(tn), u = Qx(), x = X($D), b = X(je), { isFetching: C, isPending: g } = L(Da), y = C && g, { data: f, isError: S, error: q } = L(Wn), E = og(), I = L(sa), T = ft(f), h = L(Dt), d = L(lm), A = X(Un);
45609
45608
  eg(), ng(), ig(), tg();
45610
45609
  const k = ui()(i == null ? void 0 : i.chainID), F = L(Fn), M = o2(f), w = we(
45611
45610
  (Z, _) => {
@@ -45625,7 +45624,7 @@ const Nm = () => {
45625
45624
  })), t(""), c(""), te.hide(he.AssetAndChainSelectorModal);
45626
45625
  }
45627
45626
  });
45628
- }, [c, o, t]), y = we(() => {
45627
+ }, [c, o, t]), v = we(() => {
45629
45628
  V("swap page: source chain button - clicked"), te.show(he.AssetAndChainSelectorModal, {
45630
45629
  context: "source",
45631
45630
  onSelect: (Z) => {
@@ -45688,7 +45687,7 @@ const Nm = () => {
45688
45687
  const _ = q != null && q.message.startsWith("no single-tx routes found") ? "Multiple signature routes are currently only supported on the Skip:Go desktop app" : q == null ? void 0 : q.message;
45689
45688
  return /* @__PURE__ */ m(ge, { label: _ ?? "No routes found", disabled: !0, fontSize: _ ? 18 : 24 });
45690
45689
  }
45691
- if (E)
45690
+ if (y)
45692
45691
  return /* @__PURE__ */ m(ge, { label: "Fetching balances", loading: !0, icon: J.swap });
45693
45692
  if (u)
45694
45693
  return /* @__PURE__ */ m(ge, { label: "Insufficient balance", disabled: !0, icon: J.swap });
@@ -45699,7 +45698,7 @@ const Nm = () => {
45699
45698
  type: M ? "swap" : "send",
45700
45699
  routePreference: h,
45701
45700
  slippage: d
45702
- }), fp(k == null ? void 0 : k.address), v) {
45701
+ }), fp(k == null ? void 0 : k.address), E) {
45703
45702
  V("error page: cosmos ledger warning", { route: f }), b({
45704
45703
  errorType: Ce.CosmosLedgerWarning,
45705
45704
  onClickBack: () => {
@@ -45712,7 +45711,7 @@ const Nm = () => {
45712
45711
  V("error page: bad price warning", { route: f }), b({
45713
45712
  errorType: Ce.BadPriceWarning,
45714
45713
  onClickContinue: () => {
45715
- b(void 0), A({}), D(ze.SwapExecutionPage), g();
45714
+ b(void 0), A({}), D(ze.SwapExecutionPage), x();
45716
45715
  },
45717
45716
  onClickBack: () => {
45718
45717
  b(void 0);
@@ -45725,7 +45724,7 @@ const Nm = () => {
45725
45724
  V("error page: low info warning", { route: f }), b({
45726
45725
  errorType: Ce.LowInfoWarning,
45727
45726
  onClickContinue: () => {
45728
- b(void 0), A({}), D(ze.SwapExecutionPage), g();
45727
+ b(void 0), A({}), D(ze.SwapExecutionPage), x();
45729
45728
  },
45730
45729
  onClickBack: () => {
45731
45730
  b(void 0);
@@ -45738,7 +45737,7 @@ const Nm = () => {
45738
45737
  V("error page: go fast warning", { route: f }), b({
45739
45738
  errorType: Ce.GoFastWarning,
45740
45739
  onClickContinue: () => {
45741
- b(void 0), A({}), D(ze.SwapExecutionPage), g();
45740
+ b(void 0), A({}), D(ze.SwapExecutionPage), x();
45742
45741
  },
45743
45742
  onClickBack: () => {
45744
45743
  D(ze.SwapPage), b(void 0);
@@ -45746,7 +45745,7 @@ const Nm = () => {
45746
45745
  });
45747
45746
  return;
45748
45747
  }
45749
- A({}), D(ze.SwapExecutionPage), ks({ username: k == null ? void 0 : k.address }), g();
45748
+ A({}), D(ze.SwapExecutionPage), ks({ username: k == null ? void 0 : k.address }), x();
45750
45749
  };
45751
45750
  return /* @__PURE__ */ m(
45752
45751
  ge,
@@ -45764,20 +45763,20 @@ const Nm = () => {
45764
45763
  r == null ? void 0 : r.amount,
45765
45764
  a,
45766
45765
  S,
45767
- E,
45766
+ y,
45768
45767
  u,
45769
45768
  M,
45770
45769
  f,
45771
45770
  q == null ? void 0 : q.message,
45772
45771
  h,
45773
45772
  d,
45774
- v,
45773
+ E,
45775
45774
  U,
45776
45775
  I,
45777
45776
  T,
45778
45777
  A,
45779
45778
  D,
45780
- g,
45779
+ x,
45781
45780
  b
45782
45781
  ]);
45783
45782
  return /* @__PURE__ */ j(
@@ -45807,7 +45806,7 @@ const Nm = () => {
45807
45806
  {
45808
45807
  selectedAsset: i,
45809
45808
  handleChangeAsset: P,
45810
- handleChangeChain: y,
45809
+ handleChangeChain: v,
45811
45810
  isWaitingToUpdateInputValue: l === "swap-out" && a,
45812
45811
  value: i == null ? void 0 : i.amount,
45813
45812
  usdValue: f == null ? void 0 : f.usdAmountIn,
@@ -45900,25 +45899,25 @@ const Nm = () => {
45900
45899
  if (C)
45901
45900
  return C[C.length - 1];
45902
45901
  }, D = W(() => c == null ? void 0 : c.map((b, C) => {
45903
- const x = p(b);
45902
+ const g = p(b);
45904
45903
  return /* @__PURE__ */ j(Gt, { align: "center", children: [
45905
45904
  /* @__PURE__ */ m(Ut, { children: C === 0 ? "Initial transaction " : C === c.length - 1 ? "Final transaction " : "Transaction " }),
45906
45905
  /* @__PURE__ */ j(
45907
45906
  na,
45908
45907
  {
45909
- onClick: () => l(x, b),
45908
+ onClick: () => l(g, b),
45910
45909
  href: b,
45911
- title: x,
45910
+ title: g,
45912
45911
  target: "_blank",
45913
45912
  gap: 5,
45914
45913
  children: [
45915
- /* @__PURE__ */ m(K, { normalTextColor: !0, children: xo(x) }),
45914
+ /* @__PURE__ */ m(K, { normalTextColor: !0, children: xo(g) }),
45916
45915
  /* @__PURE__ */ m(K, { children: /* @__PURE__ */ m(Vn, {}) })
45917
45916
  ]
45918
45917
  }
45919
45918
  )
45920
- ] }, `${C}-${x}`);
45921
- }), [c]), u = !!(a && a.released && (e === "failed" || e === "incomplete")), g = Oe({
45919
+ ] }, `${C}-${g}`);
45920
+ }), [c]), u = !!(a && a.released && (e === "failed" || e === "incomplete")), x = Oe({
45922
45921
  assetDenom: a == null ? void 0 : a.denom,
45923
45922
  chainId: a == null ? void 0 : a.chainID
45924
45923
  });
@@ -45926,9 +45925,9 @@ const Nm = () => {
45926
45925
  u && /* @__PURE__ */ m(lg, { children: /* @__PURE__ */ j(K, { color: r.warning.text, children: [
45927
45926
  "This transaction did not complete. Your assets have been released as:",
45928
45927
  " ",
45929
- g == null ? void 0 : g.symbol,
45928
+ x == null ? void 0 : x.symbol,
45930
45929
  " on ",
45931
- g == null ? void 0 : g.chainName
45930
+ x == null ? void 0 : x.chainName
45932
45931
  ] }) }),
45933
45932
  /* @__PURE__ */ j(Gt, { align: "center", children: [
45934
45933
  /* @__PURE__ */ m(Ut, { children: "Status" }),
@@ -46406,33 +46405,33 @@ function Xg(e, n, i) {
46406
46405
  comparison: s
46407
46406
  }), p, D;
46408
46407
  s > 0 ? (p = xi(n), D = xi(e)) : (p = xi(e), D = xi(n));
46409
- var u = String((c = i == null ? void 0 : i.roundingMethod) !== null && c !== void 0 ? c : "round"), g;
46408
+ var u = String((c = i == null ? void 0 : i.roundingMethod) !== null && c !== void 0 ? c : "round"), x;
46410
46409
  if (u === "floor")
46411
- g = Math.floor;
46410
+ x = Math.floor;
46412
46411
  else if (u === "ceil")
46413
- g = Math.ceil;
46412
+ x = Math.ceil;
46414
46413
  else if (u === "round")
46415
- g = Math.round;
46414
+ x = Math.round;
46416
46415
  else
46417
46416
  throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");
46418
- var b = D.getTime() - p.getTime(), C = b / ms, x = ls(D) - ls(p), E = (b - x) / ms, f = i == null ? void 0 : i.unit, S;
46419
- if (f ? S = String(f) : C < 1 ? S = "second" : C < 60 ? S = "minute" : C < Zo ? S = "hour" : E < ps ? S = "day" : E < hs ? S = "month" : S = "year", S === "second") {
46420
- var q = g(b / 1e3);
46417
+ var b = D.getTime() - p.getTime(), C = b / ms, g = ls(D) - ls(p), y = (b - g) / ms, f = i == null ? void 0 : i.unit, S;
46418
+ if (f ? S = String(f) : C < 1 ? S = "second" : C < 60 ? S = "minute" : C < Zo ? S = "hour" : y < ps ? S = "day" : y < hs ? S = "month" : S = "year", S === "second") {
46419
+ var q = x(b / 1e3);
46421
46420
  return r.formatDistance("xSeconds", q, l);
46422
46421
  } else if (S === "minute") {
46423
- var v = g(C);
46424
- return r.formatDistance("xMinutes", v, l);
46422
+ var E = x(C);
46423
+ return r.formatDistance("xMinutes", E, l);
46425
46424
  } else if (S === "hour") {
46426
- var I = g(C / 60);
46425
+ var I = x(C / 60);
46427
46426
  return r.formatDistance("xHours", I, l);
46428
46427
  } else if (S === "day") {
46429
- var T = g(E / Zo);
46428
+ var T = x(y / Zo);
46430
46429
  return r.formatDistance("xDays", T, l);
46431
46430
  } else if (S === "month") {
46432
- var h = g(E / ps);
46431
+ var h = x(y / ps);
46433
46432
  return h === 12 && f !== "month" ? r.formatDistance("xYears", 1, l) : r.formatDistance("xMonths", h, l);
46434
46433
  } else if (S === "year") {
46435
- var d = g(E / hs);
46434
+ var d = x(y / hs);
46436
46435
  return r.formatDistance("xYears", d, l);
46437
46436
  }
46438
46437
  throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'");
@@ -46481,7 +46480,7 @@ const Yg = (e) => {
46481
46480
  showDetails: i,
46482
46481
  onClickRow: o
46483
46482
  }) => {
46484
- var w, P, y;
46483
+ var w, P, v;
46485
46484
  const t = De(), c = Ye(), { data: a } = L(Ee), {
46486
46485
  status: r,
46487
46486
  explorerLinks: s,
@@ -46496,24 +46495,24 @@ const Yg = (e) => {
46496
46495
  route: {
46497
46496
  amountIn: D,
46498
46497
  amountOut: u,
46499
- sourceAssetDenom: g,
46498
+ sourceAssetDenom: x,
46500
46499
  sourceAssetChainID: b,
46501
46500
  destAssetDenom: C,
46502
- destAssetChainID: x
46501
+ destAssetChainID: g
46503
46502
  },
46504
- timestamp: E,
46503
+ timestamp: y,
46505
46504
  transactionDetails: f
46506
- } = n, S = (w = f == null ? void 0 : f[0]) == null ? void 0 : w.txHash, q = (P = f == null ? void 0 : f[0]) == null ? void 0 : P.chainID, v = (y = a == null ? void 0 : a.find((z) => z.chainID === q)) == null ? void 0 : y.chainType, I = vc({
46505
+ } = n, S = (w = f == null ? void 0 : f[0]) == null ? void 0 : w.txHash, q = (P = f == null ? void 0 : f[0]) == null ? void 0 : P.chainID, E = (v = a == null ? void 0 : a.find((z) => z.chainID === q)) == null ? void 0 : v.chainType, I = vc({
46507
46506
  txHash: S,
46508
46507
  chainID: q,
46509
- chainType: v
46508
+ chainType: E
46510
46509
  }), T = W(() => s.length === 0 && I ? [I] : s, [I, s]), h = Oe({
46511
- assetDenom: g,
46510
+ assetDenom: x,
46512
46511
  chainId: b,
46513
46512
  tokenAmount: D
46514
46513
  }), d = Oe({
46515
46514
  assetDenom: C,
46516
- chainId: x,
46515
+ chainId: g,
46517
46516
  tokenAmount: u
46518
46517
  }), A = {
46519
46518
  amount: h.amount,
@@ -46548,9 +46547,9 @@ const Yg = (e) => {
46548
46547
  t.primary.text.normal,
46549
46548
  t.warning.text,
46550
46549
  l
46551
- ]), F = W(() => c ? Yg(new Date(E)) : new Date(E).toLocaleString(), [c, E]), M = W(() => r === "pending" ? "In Progress" : Xg(new Date(E), /* @__PURE__ */ new Date(), {
46550
+ ]), F = W(() => c ? Yg(new Date(y)) : new Date(y).toLocaleString(), [c, y]), M = W(() => r === "pending" ? "In Progress" : Xg(new Date(y), /* @__PURE__ */ new Date(), {
46552
46551
  addSuffix: !0
46553
- }).replace("minutes", "mins").replace("minute", "min").replace("hours", "hrs").replace("hour", "hr").replace("seconds", "secs").replace("second", "sec").replace("months", "mos").replace("month", "mo").replace("years", "yrs").replace("year", "yr"), [r, E]);
46552
+ }).replace("minutes", "mins").replace("minute", "min").replace("hours", "hrs").replace("hour", "hr").replace("seconds", "secs").replace("second", "sec").replace("months", "mos").replace("month", "mo").replace("years", "yrs").replace("year", "yr"), [r, y]);
46554
46553
  return /* @__PURE__ */ j(_g, { showDetails: i, children: [
46555
46554
  /* @__PURE__ */ j($g, { align: "center", justify: "space-between", onClick: o, children: [
46556
46555
  /* @__PURE__ */ j(n3, { gap: 5, align: "center", children: [
@@ -46687,17 +46686,17 @@ const Yg = (e) => {
46687
46686
  chainType: R.Cosmos
46688
46687
  });
46689
46688
  }, [a, s, o, r]), u = we(async () => {
46690
- var E, f, S, q, v;
46691
- const C = await ((f = (E = p.connector) == null ? void 0 : E.getProvider) == null ? void 0 : f.call(E)), x = (q = (S = C == null ? void 0 : C.session) == null ? void 0 : S.peer) == null ? void 0 : q.metadata;
46689
+ var y, f, S, q, E;
46690
+ const C = await ((f = (y = p.connector) == null ? void 0 : y.getProvider) == null ? void 0 : f.call(y)), g = (q = (S = C == null ? void 0 : C.session) == null ? void 0 : S.peer) == null ? void 0 : q.metadata;
46692
46691
  p.connector && n({
46693
46692
  id: p.address,
46694
46693
  walletName: p.connector.id,
46695
46694
  chainType: R.EVM,
46696
- logo: (x == null ? void 0 : x.icons[0]) ?? ((v = p.connector) == null ? void 0 : v.icon)
46695
+ logo: (g == null ? void 0 : g.icons[0]) ?? ((E = p.connector) == null ? void 0 : E.icon)
46697
46696
  });
46698
- }, [p.address, p.connector, n]), g = we(async () => {
46699
- var x, E, f, S, q;
46700
- const C = (S = (f = (E = (x = l == null ? void 0 : l._wallet) == null ? void 0 : x._UniversalProvider) == null ? void 0 : E.session) == null ? void 0 : f.peer) == null ? void 0 : S.metadata;
46697
+ }, [p.address, p.connector, n]), x = we(async () => {
46698
+ var g, y, f, S, q;
46699
+ const C = (S = (f = (y = (g = l == null ? void 0 : l._wallet) == null ? void 0 : g._UniversalProvider) == null ? void 0 : y.session) == null ? void 0 : f.peer) == null ? void 0 : S.metadata;
46701
46700
  l && c({
46702
46701
  id: (q = l.publicKey) == null ? void 0 : q.toBase58(),
46703
46702
  walletName: l.name,
@@ -46706,9 +46705,9 @@ const Yg = (e) => {
46706
46705
  });
46707
46706
  }, [c, l]);
46708
46707
  ce(() => {
46709
- var E;
46710
- const C = p.address, x = (E = l == null ? void 0 : l.publicKey) == null ? void 0 : E.toBase58();
46711
- r && (i == null ? void 0 : i.id) !== s && D(), l != null && l.connected && (t == null ? void 0 : t.id) !== x && g(), p.connector && (e == null ? void 0 : e.id) !== C && u();
46708
+ var y;
46709
+ const C = p.address, g = (y = l == null ? void 0 : l.publicKey) == null ? void 0 : y.toBase58();
46710
+ r && (i == null ? void 0 : i.id) !== s && D(), l != null && l.connected && (t == null ? void 0 : t.id) !== g && x(), p.connector && (e == null ? void 0 : e.id) !== C && u();
46712
46711
  }, [
46713
46712
  r,
46714
46713
  i,
@@ -46720,7 +46719,7 @@ const Yg = (e) => {
46720
46719
  c,
46721
46720
  n,
46722
46721
  u,
46723
- g,
46722
+ x,
46724
46723
  a,
46725
46724
  p.address,
46726
46725
  D,
@@ -46836,7 +46835,7 @@ const m3 = () => {
46836
46835
  replaysSessionSampleRate: 1,
46837
46836
  replaysOnErrorSampleRate: 0
46838
46837
  }), ds = !0);
46839
- }, p3 = "@skip-go/widget", h3 = "Swap widget", ba = "3.6.1", u3 = {
46838
+ }, p3 = "@skip-go/widget", h3 = "Swap widget", ba = "3.6.3", u3 = {
46840
46839
  url: "https://github.com/skip-mev/skip-go",
46841
46840
  directory: "packages/widget"
46842
46841
  }, d3 = "module", D3 = {
@@ -46995,10 +46994,10 @@ const v3 = () => {
46995
46994
  }, E3 = (e) => {
46996
46995
  var C;
46997
46996
  e.enableSentrySessionReplays && m3(), e.enableAmplitudeAnalytics && v3(), Jo("widget_version", ba), l3(e.defaultRoute), F3(e), y3();
46998
- const n = X(pi), i = X(_l), o = X(ai), t = X(xt), c = X(ra), a = X(Hi), r = X(ml), s = X(Ni), l = X(dm), p = X(Vc), D = X(xa), u = X(Mm), g = W(() => {
46999
- const { apiUrl: x, chainIdsToAffiliates: E, endpointOptions: f } = e, S = {
47000
- apiUrl: x,
47001
- chainIdsToAffiliates: E,
46997
+ const n = X(pi), i = X(_l), o = X(ai), t = X(xt), c = X(ra), a = X(Hi), r = X(ml), s = X(Ni), l = X(dm), p = X(Vc), D = X(xa), u = X(Mm), x = W(() => {
46998
+ const { apiUrl: g, chainIdsToAffiliates: y, endpointOptions: f } = e, S = {
46999
+ apiUrl: g,
47000
+ chainIdsToAffiliates: y,
47002
47001
  endpointOptions: f
47003
47002
  };
47004
47003
  return {
@@ -47007,25 +47006,25 @@ const v3 = () => {
47007
47006
  chainIDsToAffiliates: S.chainIdsToAffiliates ?? {}
47008
47007
  };
47009
47008
  }, [e]), b = W(() => {
47010
- var E;
47011
- let x;
47012
- return typeof e.theme == "string" ? x = e.theme === "light" ? _h : Ro : x = { ...Ro, ...e.theme }, e.brandColor && (x.brandColor = e.brandColor), ((E = e.theme) == null ? void 0 : E.brandTextColor) === void 0 && typeof document < "u" && (x.brandTextColor = Qh(x.brandColor)), x;
47009
+ var y;
47010
+ let g;
47011
+ return typeof e.theme == "string" ? g = e.theme === "light" ? _h : Ro : g = { ...Ro, ...e.theme }, e.brandColor && (g.brandColor = e.brandColor), ((y = e.theme) == null ? void 0 : y.brandTextColor) === void 0 && typeof document < "u" && (g.brandTextColor = Qh(g.brandColor)), g;
47013
47012
  }, [e.brandColor, e.theme]);
47014
47013
  return ce(() => {
47015
47014
  n({
47016
- apiURL: g.apiURL,
47017
- endpointOptions: g.endpointOptions,
47018
- chainIDsToAffiliates: g.chainIDsToAffiliates
47015
+ apiURL: x.apiURL,
47016
+ endpointOptions: x.endpointOptions,
47017
+ chainIDsToAffiliates: x.chainIDsToAffiliates
47019
47018
  }), i(b);
47020
- }, [n, g, i, b]), ce(() => {
47021
- e.settings && o((E) => ({
47022
- ...E,
47019
+ }, [n, x, i, b]), ce(() => {
47020
+ e.settings && o((y) => ({
47021
+ ...y,
47023
47022
  ...e.settings
47024
- })), e.routeConfig && t((E) => ({
47025
- ...E,
47023
+ })), e.routeConfig && t((y) => ({
47024
+ ...y,
47026
47025
  ...e.routeConfig
47027
47026
  })), e.filter && c(e.filter), a(e.onlyTestnet ?? !1), e.walletConnect && r(e.walletConnect), e.simulate !== void 0 && l(e.simulate), e.disableShadowDom !== void 0 && p(e.disableShadowDom), e.ibcEurekaHighlightedAssets && D(e.ibcEurekaHighlightedAssets), e.assetSymbolsSortedToTop && u(e.assetSymbolsSortedToTop);
47028
- const x = {
47027
+ const g = {
47029
47028
  onWalletConnected: e.onWalletConnected,
47030
47029
  onWalletDisconnected: e.onWalletDisconnected,
47031
47030
  onTransactionBroadcasted: e.onTransactionBroadcasted,
@@ -47033,7 +47032,7 @@ const v3 = () => {
47033
47032
  onTransactionFailed: e.onTransactionFailed,
47034
47033
  onRouteUpdated: e.onRouteUpdated
47035
47034
  };
47036
- Object.values(x).some((E) => E !== void 0) && s(x);
47035
+ Object.values(g).some((y) => y !== void 0) && s(g);
47037
47036
  }, [
47038
47037
  e.onTransactionFailed,
47039
47038
  e.onTransactionComplete,