@skip-go/widget 3.0.0-beta.4 → 3.0.0-beta.6
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.
- package/build/{index-CXB5NGHH.js → index-Ct0Altwh.js} +322 -334
- package/build/{index-CXB5NGHH.js.map → index-Ct0Altwh.js.map} +1 -1
- package/build/index.js +1 -1
- package/build/{secp256k1-BS9UscPR.js → secp256k1-BU0dwJN8.js} +2 -2
- package/build/{secp256k1-BS9UscPR.js.map → secp256k1-BU0dwJN8.js.map} +1 -1
- package/package.json +1 -1
|
@@ -171,11 +171,11 @@ function TD() {
|
|
|
171
171
|
var Xc = {}, i6;
|
|
172
172
|
function RD() {
|
|
173
173
|
return i6 || (i6 = 1, ie.env.NODE_ENV !== "production" && function() {
|
|
174
|
-
var e = Pe, n = Symbol.for("react.element"), t = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), d = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), q = Symbol.iterator,
|
|
174
|
+
var e = Pe, n = Symbol.for("react.element"), t = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), d = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), q = Symbol.iterator, k = "@@iterator";
|
|
175
175
|
function D(j) {
|
|
176
176
|
if (j === null || typeof j != "object")
|
|
177
177
|
return null;
|
|
178
|
-
var L = q && j[q] || j[
|
|
178
|
+
var L = q && j[q] || j[k];
|
|
179
179
|
return typeof L == "function" ? L : null;
|
|
180
180
|
}
|
|
181
181
|
var f = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -212,7 +212,7 @@ function RD() {
|
|
|
212
212
|
var _e = L.displayName || L.name || "";
|
|
213
213
|
return _e !== "" ? K + "(" + _e + ")" : K;
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function x(j) {
|
|
216
216
|
return j.displayName || "Context";
|
|
217
217
|
}
|
|
218
218
|
function C(j) {
|
|
@@ -240,10 +240,10 @@ function RD() {
|
|
|
240
240
|
switch (j.$$typeof) {
|
|
241
241
|
case d:
|
|
242
242
|
var L = j;
|
|
243
|
-
return
|
|
243
|
+
return x(L) + ".Consumer";
|
|
244
244
|
case i:
|
|
245
245
|
var K = j;
|
|
246
|
-
return
|
|
246
|
+
return x(K._context) + ".Provider";
|
|
247
247
|
case m:
|
|
248
248
|
return S(j, j.render, "ForwardRef");
|
|
249
249
|
case _:
|
|
@@ -963,7 +963,7 @@ function QD(e) {
|
|
|
963
963
|
return KD(Md("", null, null, null, [""], e = GD(e), 0, [0], e));
|
|
964
964
|
}
|
|
965
965
|
function Md(e, n, t, s, a, o, i, d, m) {
|
|
966
|
-
for (var h = 0, l = 0, _ = i, y = 0, b = 0, q = 0,
|
|
966
|
+
for (var h = 0, l = 0, _ = i, y = 0, b = 0, q = 0, k = 1, D = 1, f = 1, g = 0, v = "", O = a, B = o, M = s, N = v; D; )
|
|
967
967
|
switch (q = g, g = kn()) {
|
|
968
968
|
case 40:
|
|
969
969
|
if (q != 108 && He(N, _ - 1) == 58) {
|
|
@@ -994,9 +994,9 @@ function Md(e, n, t, s, a, o, i, d, m) {
|
|
|
994
994
|
N += "/";
|
|
995
995
|
}
|
|
996
996
|
break;
|
|
997
|
-
case 123 *
|
|
997
|
+
case 123 * k:
|
|
998
998
|
d[h++] = Fn(N) * f;
|
|
999
|
-
case 125 *
|
|
999
|
+
case 125 * k:
|
|
1000
1000
|
case 59:
|
|
1001
1001
|
case 0:
|
|
1002
1002
|
switch (g) {
|
|
@@ -1024,18 +1024,18 @@ function Md(e, n, t, s, a, o, i, d, m) {
|
|
|
1024
1024
|
Md(N, M, M, M, [""], B, 0, d, B);
|
|
1025
1025
|
}
|
|
1026
1026
|
}
|
|
1027
|
-
h = l = b = 0,
|
|
1027
|
+
h = l = b = 0, k = f = 1, v = N = "", _ = i;
|
|
1028
1028
|
break;
|
|
1029
1029
|
case 58:
|
|
1030
1030
|
_ = 1 + Fn(N), b = q;
|
|
1031
1031
|
default:
|
|
1032
|
-
if (
|
|
1032
|
+
if (k < 1) {
|
|
1033
1033
|
if (g == 123)
|
|
1034
|
-
--
|
|
1035
|
-
else if (g == 125 &&
|
|
1034
|
+
--k;
|
|
1035
|
+
else if (g == 125 && k++ == 0 && VD() == 125)
|
|
1036
1036
|
continue;
|
|
1037
1037
|
}
|
|
1038
|
-
switch (N += Th(g), g *
|
|
1038
|
+
switch (N += Th(g), g * k) {
|
|
1039
1039
|
case 38:
|
|
1040
1040
|
f = l > 0 ? 1 : (N += "\f", -1);
|
|
1041
1041
|
break;
|
|
@@ -1046,14 +1046,14 @@ function Md(e, n, t, s, a, o, i, d, m) {
|
|
|
1046
1046
|
Io() === 45 && (N += Sm(kn())), y = Io(), l = _ = Fn(v = N += ZD(Od())), g++;
|
|
1047
1047
|
break;
|
|
1048
1048
|
case 45:
|
|
1049
|
-
q === 45 && Fn(N) == 2 && (
|
|
1049
|
+
q === 45 && Fn(N) == 2 && (k = 0);
|
|
1050
1050
|
}
|
|
1051
1051
|
}
|
|
1052
1052
|
return o;
|
|
1053
1053
|
}
|
|
1054
1054
|
function d6(e, n, t, s, a, o, i, d, m, h, l, _) {
|
|
1055
|
-
for (var y = a - 1, b = a === 0 ? o : [""], q = G8(b),
|
|
1056
|
-
for (var g = 0, v = kc(e, y + 1, y = W8(D = i[
|
|
1055
|
+
for (var y = a - 1, b = a === 0 ? o : [""], q = G8(b), k = 0, D = 0, f = 0; k < s; ++k)
|
|
1056
|
+
for (var g = 0, v = kc(e, y + 1, y = W8(D = i[k])), O = e; g < q; ++g)
|
|
1057
1057
|
(O = V8(D > 0 ? b[g] + " " + v : de(v, /&\f/g, b[g]))) && (m[f++] = O);
|
|
1058
1058
|
return pm(e, n, t, a === 0 ? mm : d, m, h, l, _);
|
|
1059
1059
|
}
|
|
@@ -1594,10 +1594,10 @@ var i9 = function(e) {
|
|
|
1594
1594
|
if (y === void 0) return "continue";
|
|
1595
1595
|
var b = o.names.get(y), q = i.getGroup(_);
|
|
1596
1596
|
if (b === void 0 || !b.size || q.length === 0) return "continue";
|
|
1597
|
-
var
|
|
1597
|
+
var k = "".concat(No, ".g").concat(_, '[id="').concat(y, '"]'), D = "";
|
|
1598
1598
|
b !== void 0 && b.forEach(function(f) {
|
|
1599
1599
|
f.length > 0 && (D += "".concat(f, ","));
|
|
1600
|
-
}), m += "".concat(q).concat(
|
|
1600
|
+
}), m += "".concat(q).concat(k, '{content:"').concat(D, '"}').concat(Rh);
|
|
1601
1601
|
}, l = 0; l < d; l++) h(l);
|
|
1602
1602
|
return m;
|
|
1603
1603
|
}(a);
|
|
@@ -1649,8 +1649,8 @@ function d9(e) {
|
|
|
1649
1649
|
l.push(function(y) {
|
|
1650
1650
|
y.type === mm && y.value.includes("&") && (y.props[0] = y.props[0].replace(qB, t).replace(s, h));
|
|
1651
1651
|
}), i.prefix && l.push(aB), l.push(nB);
|
|
1652
|
-
var _ = function(y, b, q,
|
|
1653
|
-
b === void 0 && (b = ""), q === void 0 && (q = ""),
|
|
1652
|
+
var _ = function(y, b, q, k) {
|
|
1653
|
+
b === void 0 && (b = ""), q === void 0 && (q = ""), k === void 0 && (k = "&"), n = k, t = b, s = new RegExp("\\".concat(t, "\\b"), "g");
|
|
1654
1654
|
var D = y.replace(SB, ""), f = QD(q || b ? "".concat(q, " ").concat(b, " { ").concat(D, " }") : D);
|
|
1655
1655
|
i.namespace && (f = c9(f, i.namespace));
|
|
1656
1656
|
var g = [];
|
|
@@ -1802,18 +1802,18 @@ function UB(e, n, t) {
|
|
|
1802
1802
|
return Rm(O) ? "styled.".concat(O) : "Styled(".concat(t9(O), ")");
|
|
1803
1803
|
}(e) : l, y = n.displayName && n.componentId ? "".concat(p6(n.displayName), "-").concat(n.componentId) : n.componentId || h, b = s && a.attrs ? a.attrs.concat(d).filter(Boolean) : d, q = n.shouldForwardProp;
|
|
1804
1804
|
if (s && a.shouldForwardProp) {
|
|
1805
|
-
var
|
|
1805
|
+
var k = a.shouldForwardProp;
|
|
1806
1806
|
if (n.shouldForwardProp) {
|
|
1807
1807
|
var D = n.shouldForwardProp;
|
|
1808
1808
|
q = function(O, B) {
|
|
1809
|
-
return
|
|
1809
|
+
return k(O, B) && D(O, B);
|
|
1810
1810
|
};
|
|
1811
|
-
} else q =
|
|
1811
|
+
} else q = k;
|
|
1812
1812
|
}
|
|
1813
1813
|
var f = new NB(t, y, s ? a.componentStyle : void 0);
|
|
1814
1814
|
function g(O, B) {
|
|
1815
1815
|
return function(M, N, p) {
|
|
1816
|
-
var u = M.attrs, w = M.componentStyle, S = M.defaultProps,
|
|
1816
|
+
var u = M.attrs, w = M.componentStyle, S = M.defaultProps, x = M.foldedComponentIds, C = M.styledComponentId, F = M.target, A = Pe.useContext(Ec), E = Gd(), T = M.shouldForwardProp || E.shouldForwardProp;
|
|
1817
1817
|
ie.env.NODE_ENV !== "production" && s6(C);
|
|
1818
1818
|
var R = Q8(N, A, S) || jc, P = function(G, ne, le) {
|
|
1819
1819
|
for (var ze, Ce = Le(Le({}, ne), { className: void 0, theme: le }), cn = 0; cn < G.length; cn += 1) {
|
|
@@ -1828,7 +1828,7 @@ function UB(e, n, t) {
|
|
|
1828
1828
|
return ie.env.NODE_ENV !== "production" && s6(ze), ze;
|
|
1829
1829
|
}(w, P);
|
|
1830
1830
|
ie.env.NODE_ENV !== "production" && M.warnTooManyClasses && M.warnTooManyClasses(ue);
|
|
1831
|
-
var ve = Mo(
|
|
1831
|
+
var ve = Mo(x, C);
|
|
1832
1832
|
return ue && (ve += " " + ue), P.className && (ve += " " + P.className), X[Rm(V) && !oh.has(V) ? "class" : "className"] = ve, X.ref = p, eD(V, X);
|
|
1833
1833
|
}(v, O, B);
|
|
1834
1834
|
}
|
|
@@ -132327,13 +132327,13 @@ class Yoe extends Koe {
|
|
|
132327
132327
|
for (let _ = 0; _ < 16; _++, t += 4)
|
|
132328
132328
|
yo[_] = n.getUint32(t, !1);
|
|
132329
132329
|
for (let _ = 16; _ < 64; _++) {
|
|
132330
|
-
const y = yo[_ - 15], b = yo[_ - 2], q = En(y, 7) ^ En(y, 18) ^ y >>> 3,
|
|
132331
|
-
yo[_] =
|
|
132330
|
+
const y = yo[_ - 15], b = yo[_ - 2], q = En(y, 7) ^ En(y, 18) ^ y >>> 3, k = En(b, 17) ^ En(b, 19) ^ b >>> 10;
|
|
132331
|
+
yo[_] = k + yo[_ - 7] + q + yo[_ - 16] | 0;
|
|
132332
132332
|
}
|
|
132333
132333
|
let { A: s, B: a, C: o, D: i, E: d, F: m, G: h, H: l } = this;
|
|
132334
132334
|
for (let _ = 0; _ < 64; _++) {
|
|
132335
|
-
const y = En(d, 6) ^ En(d, 11) ^ En(d, 25), b = l + y + Voe(d, m, h) + Xoe[_] + yo[_] | 0,
|
|
132336
|
-
l = h, h = m, m = d, d = i + b | 0, i = o, o = a, a = s, s = b +
|
|
132335
|
+
const y = En(d, 6) ^ En(d, 11) ^ En(d, 25), b = l + y + Voe(d, m, h) + Xoe[_] + yo[_] | 0, k = (En(s, 2) ^ En(s, 13) ^ En(s, 22)) + Goe(s, a, o) | 0;
|
|
132336
|
+
l = h, h = m, m = d, d = i + b | 0, i = o, o = a, a = s, s = b + k | 0;
|
|
132337
132337
|
}
|
|
132338
132338
|
s = s + this.A | 0, a = a + this.B | 0, o = o + this.C | 0, i = i + this.D | 0, d = d + this.E | 0, m = m + this.F | 0, h = h + this.G | 0, l = l + this.H | 0, this.set(s, a, o, i, d, m, h, l);
|
|
132339
132339
|
}
|
|
@@ -132959,7 +132959,7 @@ function zre(e, n) {
|
|
|
132959
132959
|
b = qA({ blobs: v, commitments: B, proofs: M });
|
|
132960
132960
|
}
|
|
132961
132961
|
}
|
|
132962
|
-
const q = ud(l),
|
|
132962
|
+
const q = ud(l), k = [
|
|
132963
132963
|
te(t),
|
|
132964
132964
|
a ? te(a) : "0x",
|
|
132965
132965
|
h ? te(h) : "0x",
|
|
@@ -132981,7 +132981,7 @@ function zre(e, n) {
|
|
|
132981
132981
|
return dc([
|
|
132982
132982
|
"0x03",
|
|
132983
132983
|
// If sidecars are enabled, envelope turns into a "wrapper":
|
|
132984
|
-
mo(b ? [
|
|
132984
|
+
mo(b ? [k, D, f, g] : k)
|
|
132985
132985
|
]);
|
|
132986
132986
|
}
|
|
132987
132987
|
function qre(e, n) {
|
|
@@ -133741,12 +133741,12 @@ async function aie(e, n) {
|
|
|
133741
133741
|
async function V6(e, n) {
|
|
133742
133742
|
var y, b;
|
|
133743
133743
|
const { block: t, chain: s = e.chain, request: a, type: o = "eip1559" } = n || {}, i = await (async () => {
|
|
133744
|
-
var q,
|
|
133744
|
+
var q, k;
|
|
133745
133745
|
return typeof ((q = s == null ? void 0 : s.fees) == null ? void 0 : q.baseFeeMultiplier) == "function" ? s.fees.baseFeeMultiplier({
|
|
133746
133746
|
block: t,
|
|
133747
133747
|
client: e,
|
|
133748
133748
|
request: a
|
|
133749
|
-
}) : ((
|
|
133749
|
+
}) : ((k = s == null ? void 0 : s.fees) == null ? void 0 : k.baseFeeMultiplier) ?? 1.2;
|
|
133750
133750
|
})();
|
|
133751
133751
|
if (i < 1)
|
|
133752
133752
|
throw new nie();
|
|
@@ -133769,9 +133769,9 @@ async function V6(e, n) {
|
|
|
133769
133769
|
block: l,
|
|
133770
133770
|
chain: s,
|
|
133771
133771
|
request: a
|
|
133772
|
-
}),
|
|
133772
|
+
}), k = h(l.baseFeePerGas);
|
|
133773
133773
|
return {
|
|
133774
|
-
maxFeePerGas: (a == null ? void 0 : a.maxFeePerGas) ??
|
|
133774
|
+
maxFeePerGas: (a == null ? void 0 : a.maxFeePerGas) ?? k + q,
|
|
133775
133775
|
maxPriorityFeePerGas: q
|
|
133776
133776
|
};
|
|
133777
133777
|
}
|
|
@@ -133784,7 +133784,7 @@ function oie(e) {
|
|
|
133784
133784
|
return fw(`0x${n}`);
|
|
133785
133785
|
}
|
|
133786
133786
|
async function rie({ hash: e, signature: n }) {
|
|
133787
|
-
const t = Sr(e) ? e : te(e), { secp256k1: s } = await import("./secp256k1-
|
|
133787
|
+
const t = Sr(e) ? e : te(e), { secp256k1: s } = await import("./secp256k1-BU0dwJN8.js");
|
|
133788
133788
|
return `0x${(() => {
|
|
133789
133789
|
if (typeof n == "object" && "r" in n && "s" in n) {
|
|
133790
133790
|
const { r: h, s: l, v: _, yParity: y } = n, b = Number(y ?? _), q = G6(b);
|
|
@@ -134001,7 +134001,7 @@ async function bie(e, n) {
|
|
|
134001
134001
|
params: P ? [R, T ?? "latest", P] : T ? [R, T] : [R]
|
|
134002
134002
|
});
|
|
134003
134003
|
};
|
|
134004
|
-
const { accessList: d, authorizationList: m, blobs: h, blobVersionedHashes: l, blockNumber: _, blockTag: y, data: b, gas: q, gasPrice:
|
|
134004
|
+
const { accessList: d, authorizationList: m, blobs: h, blobVersionedHashes: l, blockNumber: _, blockTag: y, data: b, gas: q, gasPrice: k, maxFeePerBlobGas: D, maxFeePerGas: f, maxPriorityFeePerGas: g, nonce: v, value: O, stateOverride: B, ...M } = await VA(e, {
|
|
134005
134005
|
...n,
|
|
134006
134006
|
parameters: (
|
|
134007
134007
|
// Some RPC Providers do not compute versioned hashes from blobs. We will need
|
|
@@ -134029,7 +134029,7 @@ async function bie(e, n) {
|
|
|
134029
134029
|
blobVersionedHashes: l,
|
|
134030
134030
|
data: b,
|
|
134031
134031
|
gas: q,
|
|
134032
|
-
gasPrice:
|
|
134032
|
+
gasPrice: k,
|
|
134033
134033
|
maxFeePerBlobGas: D,
|
|
134034
134034
|
maxFeePerGas: f,
|
|
134035
134035
|
maxPriorityFeePerGas: g,
|
|
@@ -134091,9 +134091,9 @@ async function VA(e, n) {
|
|
|
134091
134091
|
async function q() {
|
|
134092
134092
|
return b || (b = await ro(e, Jd, "getBlock")({ blockTag: "latest" }), b);
|
|
134093
134093
|
}
|
|
134094
|
-
let
|
|
134094
|
+
let k;
|
|
134095
134095
|
async function D() {
|
|
134096
|
-
return
|
|
134096
|
+
return k || (a ? a.id : typeof n.chainId < "u" ? n.chainId : (k = await ro(e, fie, "getChainId")({}), k));
|
|
134097
134097
|
}
|
|
134098
134098
|
if ((h.includes("blobVersionedHashes") || h.includes("sidecars")) && s && i) {
|
|
134099
134099
|
const f = lw({ blobs: s, kzg: i });
|
|
@@ -134181,7 +134181,7 @@ class kie extends ee {
|
|
|
134181
134181
|
constructor(n, { account: t, docsPath: s, chain: a, data: o, gas: i, gasPrice: d, maxFeePerGas: m, maxPriorityFeePerGas: h, nonce: l, to: _, value: y, stateOverride: b }) {
|
|
134182
134182
|
var D;
|
|
134183
134183
|
const q = t ? Hc(t) : void 0;
|
|
134184
|
-
let
|
|
134184
|
+
let k = pw({
|
|
134185
134185
|
from: q == null ? void 0 : q.address,
|
|
134186
134186
|
to: _,
|
|
134187
134187
|
value: typeof y < "u" && `${AA(y)} ${((D = a == null ? void 0 : a.nativeCurrency) == null ? void 0 : D.symbol) || "ETH"}`,
|
|
@@ -134192,14 +134192,14 @@ class kie extends ee {
|
|
|
134192
134192
|
maxPriorityFeePerGas: typeof h < "u" && `${An(h)} gwei`,
|
|
134193
134193
|
nonce: l
|
|
134194
134194
|
});
|
|
134195
|
-
b && (
|
|
134195
|
+
b && (k += `
|
|
134196
134196
|
${gie(b)}`), super(n.shortMessage, {
|
|
134197
134197
|
cause: n,
|
|
134198
134198
|
docsPath: s,
|
|
134199
134199
|
metaMessages: [
|
|
134200
134200
|
...n.metaMessages ? [...n.metaMessages, " "] : [],
|
|
134201
134201
|
"Raw Call Arguments:",
|
|
134202
|
-
|
|
134202
|
+
k
|
|
134203
134203
|
].filter(Boolean),
|
|
134204
134204
|
name: "CallExecutionError"
|
|
134205
134205
|
}), Object.defineProperty(this, "cause", {
|
|
@@ -134227,7 +134227,7 @@ async function jie(e, n) {
|
|
|
134227
134227
|
throw new xie();
|
|
134228
134228
|
const s = Hc(t);
|
|
134229
134229
|
try {
|
|
134230
|
-
const { accessList: d, blockNumber: m, blockTag: h, data: l, gas: _, gasPrice: y, maxFeePerGas: b, maxPriorityFeePerGas: q, nonce:
|
|
134230
|
+
const { accessList: d, blockNumber: m, blockTag: h, data: l, gas: _, gasPrice: y, maxFeePerGas: b, maxPriorityFeePerGas: q, nonce: k, to: D, value: f, ...g } = (s == null ? void 0 : s.type) === "local" ? await VA(e, n) : n, O = (m ? Be(m) : void 0) || h;
|
|
134231
134231
|
kw(n);
|
|
134232
134232
|
const B = (i = (o = (a = e.chain) == null ? void 0 : a.formatters) == null ? void 0 : o.transactionRequest) == null ? void 0 : i.format, N = (B || hw)({
|
|
134233
134233
|
// Pick out extra data that might exist on the chain's transaction request type.
|
|
@@ -134239,7 +134239,7 @@ async function jie(e, n) {
|
|
|
134239
134239
|
gasPrice: y,
|
|
134240
134240
|
maxFeePerGas: b,
|
|
134241
134241
|
maxPriorityFeePerGas: q,
|
|
134242
|
-
nonce:
|
|
134242
|
+
nonce: k,
|
|
134243
134243
|
to: D,
|
|
134244
134244
|
value: f
|
|
134245
134245
|
}), { baseFeePerGas: p, gasLimit: u, priorityFeePerGas: w } = await e.request({
|
|
@@ -134831,13 +134831,13 @@ const c8 = (e, n) => e.unstable_is ? e.unstable_is(n) : n === e, Um = (e) => "in
|
|
|
134831
134831
|
}, YA = (e) => {
|
|
134832
134832
|
let n;
|
|
134833
134833
|
(xn ? "production" : void 0) !== "production" && (n = /* @__PURE__ */ new Set());
|
|
134834
|
-
const t = (
|
|
134834
|
+
const t = (k, D, f) => {
|
|
134835
134835
|
const g = "v" in D, v = D.v, O = wh(D.v) ? D.v : null;
|
|
134836
134836
|
if (xh(f)) {
|
|
134837
134837
|
Iie(f);
|
|
134838
134838
|
for (const B of D.d.keys())
|
|
134839
134839
|
XA(
|
|
134840
|
-
|
|
134840
|
+
k,
|
|
134841
134841
|
f,
|
|
134842
134842
|
e(B, D)
|
|
134843
134843
|
);
|
|
@@ -134845,13 +134845,13 @@ const c8 = (e, n) => e.unstable_is ? e.unstable_is(n) : n === e, Um = (e) => "in
|
|
|
134845
134845
|
} else
|
|
134846
134846
|
D.v = f, delete D.e;
|
|
134847
134847
|
(!g || !Object.is(v, D.v)) && (++D.n, O && Mie(O, f));
|
|
134848
|
-
}, s = (
|
|
134848
|
+
}, s = (k, D, f, g) => {
|
|
134849
134849
|
var v;
|
|
134850
134850
|
if (!(g != null && g(D)) && d8(f) && (f.m || Array.from(f.d).every(
|
|
134851
134851
|
([u, w]) => (
|
|
134852
134852
|
// Recursively, read the atom state of the dependency, and
|
|
134853
134853
|
// check if the atom epoch number is unchanged
|
|
134854
|
-
s(
|
|
134854
|
+
s(k, u, e(u, f), g).n === w
|
|
134855
134855
|
)
|
|
134856
134856
|
)))
|
|
134857
134857
|
return f;
|
|
@@ -134868,13 +134868,13 @@ const c8 = (e, n) => e.unstable_is ? e.unstable_is(n) : n === e, Um = (e) => "in
|
|
|
134868
134868
|
return Dd(S);
|
|
134869
134869
|
}
|
|
134870
134870
|
const w = s(
|
|
134871
|
-
|
|
134871
|
+
k,
|
|
134872
134872
|
u,
|
|
134873
134873
|
e(u, f),
|
|
134874
134874
|
g
|
|
134875
134875
|
);
|
|
134876
134876
|
if (O)
|
|
134877
|
-
m8(
|
|
134877
|
+
m8(k, D, f, u, w);
|
|
134878
134878
|
else {
|
|
134879
134879
|
const S = uc();
|
|
134880
134880
|
m8(S, D, f, u, w), h(S, D, f), So(S);
|
|
@@ -134911,7 +134911,7 @@ const c8 = (e, n) => e.unstable_is ? e.unstable_is(n) : n === e, Um = (e) => "in
|
|
|
134911
134911
|
} finally {
|
|
134912
134912
|
O = !1;
|
|
134913
134913
|
}
|
|
134914
|
-
}, a = (
|
|
134914
|
+
}, a = (k) => Dd(s(void 0, k, e(k))), o = (k, D, f) => {
|
|
134915
134915
|
var g, v;
|
|
134916
134916
|
const O = /* @__PURE__ */ new Map();
|
|
134917
134917
|
for (const B of ((g = f.m) == null ? void 0 : g.t) || [])
|
|
@@ -134921,14 +134921,14 @@ const c8 = (e, n) => e.unstable_is ? e.unstable_is(n) : n === e, Um = (e) => "in
|
|
|
134921
134921
|
B,
|
|
134922
134922
|
e(B, f)
|
|
134923
134923
|
);
|
|
134924
|
-
return (v = Pie(
|
|
134924
|
+
return (v = Pie(k, D)) == null || v.forEach((B) => {
|
|
134925
134925
|
O.set(B, e(B, f));
|
|
134926
134926
|
}), O;
|
|
134927
|
-
}, i = (
|
|
134927
|
+
}, i = (k, D, f) => {
|
|
134928
134928
|
const g = [], v = /* @__PURE__ */ new Set(), O = (N, p) => {
|
|
134929
134929
|
if (!v.has(N)) {
|
|
134930
134930
|
v.add(N);
|
|
134931
|
-
for (const [u, w] of o(
|
|
134931
|
+
for (const [u, w] of o(k, N, p))
|
|
134932
134932
|
N !== u && O(u, w);
|
|
134933
134933
|
g.push([N, p, p.n]);
|
|
134934
134934
|
}
|
|
@@ -134938,62 +134938,62 @@ const c8 = (e, n) => e.unstable_is ? e.unstable_is(n) : n === e, Um = (e) => "in
|
|
|
134938
134938
|
for (let N = g.length - 1; N >= 0; --N) {
|
|
134939
134939
|
const [p, u, w] = g[N];
|
|
134940
134940
|
let S = !1;
|
|
134941
|
-
for (const
|
|
134942
|
-
if (
|
|
134941
|
+
for (const x of u.d.keys())
|
|
134942
|
+
if (x !== p && B.has(x)) {
|
|
134943
134943
|
S = !0;
|
|
134944
134944
|
break;
|
|
134945
134945
|
}
|
|
134946
|
-
S && (s(
|
|
134946
|
+
S && (s(k, p, u, M), h(k, p, u), w !== u.n && (Lm(k, p, u), B.add(p))), v.delete(p);
|
|
134947
134947
|
}
|
|
134948
|
-
}, d = (
|
|
134949
|
-
const v = (M) => Dd(s(
|
|
134948
|
+
}, d = (k, D, f, ...g) => {
|
|
134949
|
+
const v = (M) => Dd(s(k, M, e(M, f))), O = (M, ...N) => {
|
|
134950
134950
|
const p = e(M, f);
|
|
134951
134951
|
let u;
|
|
134952
134952
|
if (c8(D, M)) {
|
|
134953
134953
|
if (!Um(M))
|
|
134954
134954
|
throw new Error("atom not writable");
|
|
134955
|
-
const w = "v" in p, S = p.v,
|
|
134956
|
-
t(M, p,
|
|
134955
|
+
const w = "v" in p, S = p.v, x = N[0];
|
|
134956
|
+
t(M, p, x), h(k, M, p), (!w || !Object.is(S, p.v)) && (Lm(k, M, p), i(k, M, p));
|
|
134957
134957
|
} else
|
|
134958
|
-
u = d(
|
|
134959
|
-
return So(
|
|
134958
|
+
u = d(k, M, p, ...N);
|
|
134959
|
+
return So(k), u;
|
|
134960
134960
|
};
|
|
134961
134961
|
return D.write(v, O, ...g);
|
|
134962
|
-
}, m = (
|
|
134963
|
-
const f = uc(), g = d(f,
|
|
134962
|
+
}, m = (k, ...D) => {
|
|
134963
|
+
const f = uc(), g = d(f, k, e(k), ...D);
|
|
134964
134964
|
return So(f), g;
|
|
134965
|
-
}, h = (
|
|
134965
|
+
}, h = (k, D, f) => {
|
|
134966
134966
|
if (f.m && !wh(f.v)) {
|
|
134967
134967
|
for (const g of f.d.keys())
|
|
134968
|
-
f.m.d.has(g) || (l(
|
|
134968
|
+
f.m.d.has(g) || (l(k, g, e(g, f)).t.add(D), f.m.d.add(g));
|
|
134969
134969
|
for (const g of f.m.d || [])
|
|
134970
134970
|
if (!f.d.has(g)) {
|
|
134971
134971
|
f.m.d.delete(g);
|
|
134972
|
-
const v = _(
|
|
134972
|
+
const v = _(k, g, e(g, f));
|
|
134973
134973
|
v == null || v.t.delete(D);
|
|
134974
134974
|
}
|
|
134975
134975
|
}
|
|
134976
|
-
}, l = (
|
|
134976
|
+
}, l = (k, D, f) => {
|
|
134977
134977
|
if (!f.m) {
|
|
134978
|
-
s(
|
|
134978
|
+
s(k, D, f);
|
|
134979
134979
|
for (const g of f.d.keys())
|
|
134980
|
-
l(
|
|
134980
|
+
l(k, g, e(g, f)).t.add(D);
|
|
134981
134981
|
if (f.m = {
|
|
134982
134982
|
l: /* @__PURE__ */ new Set(),
|
|
134983
134983
|
d: new Set(f.d.keys()),
|
|
134984
134984
|
t: /* @__PURE__ */ new Set()
|
|
134985
134985
|
}, (xn ? "production" : void 0) !== "production" && n.add(D), Hm(D) && D.onMount) {
|
|
134986
134986
|
const g = f.m, { onMount: v } = D;
|
|
134987
|
-
h8(
|
|
134987
|
+
h8(k, () => {
|
|
134988
134988
|
const O = v(
|
|
134989
|
-
(...B) => d(
|
|
134989
|
+
(...B) => d(k, D, f, ...B)
|
|
134990
134990
|
);
|
|
134991
134991
|
O && (g.u = O);
|
|
134992
134992
|
});
|
|
134993
134993
|
}
|
|
134994
134994
|
}
|
|
134995
134995
|
return f.m;
|
|
134996
|
-
}, _ = (
|
|
134996
|
+
}, _ = (k, D, f) => {
|
|
134997
134997
|
if (f.m && !f.m.l.size && !Array.from(f.m.t).some(
|
|
134998
134998
|
(g) => {
|
|
134999
134999
|
var v;
|
|
@@ -135001,9 +135001,9 @@ const c8 = (e, n) => e.unstable_is ? e.unstable_is(n) : n === e, Um = (e) => "in
|
|
|
135001
135001
|
}
|
|
135002
135002
|
)) {
|
|
135003
135003
|
const g = f.m.u;
|
|
135004
|
-
g && h8(
|
|
135004
|
+
g && h8(k, g), delete f.m, (xn ? "production" : void 0) !== "production" && n.delete(D);
|
|
135005
135005
|
for (const v of f.d.keys()) {
|
|
135006
|
-
const O = _(
|
|
135006
|
+
const O = _(k, v, e(v, f));
|
|
135007
135007
|
O == null || O.t.delete(D);
|
|
135008
135008
|
}
|
|
135009
135009
|
return;
|
|
@@ -135012,17 +135012,17 @@ const c8 = (e, n) => e.unstable_is ? e.unstable_is(n) : n === e, Um = (e) => "in
|
|
|
135012
135012
|
}, q = {
|
|
135013
135013
|
get: a,
|
|
135014
135014
|
set: m,
|
|
135015
|
-
sub: (
|
|
135016
|
-
const f = uc(), g = e(
|
|
135015
|
+
sub: (k, D) => {
|
|
135016
|
+
const f = uc(), g = e(k), v = l(f, k, g);
|
|
135017
135017
|
So(f);
|
|
135018
135018
|
const O = v.l;
|
|
135019
135019
|
return O.add(D), () => {
|
|
135020
135020
|
O.delete(D);
|
|
135021
135021
|
const B = uc();
|
|
135022
|
-
_(B,
|
|
135022
|
+
_(B, k, g), So(B);
|
|
135023
135023
|
};
|
|
135024
135024
|
},
|
|
135025
|
-
unstable_derive: (
|
|
135025
|
+
unstable_derive: (k) => YA(...k(e))
|
|
135026
135026
|
};
|
|
135027
135027
|
return (xn ? "production" : void 0) !== "production" && Object.assign(q, {
|
|
135028
135028
|
// store dev methods (these are tentative and subject to change without notice)
|
|
@@ -136147,7 +136147,7 @@ const hd = {
|
|
|
136147
136147
|
};
|
|
136148
136148
|
var qce = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Wm = Math.ceil, pn = Math.floor, tn = "[BigNumber Error] ", u8 = tn + "Number primitive has more than 15 significant digits: ", wn = 1e14, oe = 14, Vm = 9007199254740991, Gm = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], bo = 1e7, Ue = 1e9;
|
|
136149
136149
|
function hj(e) {
|
|
136150
|
-
var n, t, s, a = g.prototype = { constructor: g, toString: null, valueOf: null }, o = new g(1), i = 20, d = 4, m = -7, h = 21, l = -1e7, _ = 1e7, y = !1, b = 1, q = 0,
|
|
136150
|
+
var n, t, s, a = g.prototype = { constructor: g, toString: null, valueOf: null }, o = new g(1), i = 20, d = 4, m = -7, h = 21, l = -1e7, _ = 1e7, y = !1, b = 1, q = 0, k = {
|
|
136151
136151
|
prefix: "",
|
|
136152
136152
|
groupSize: 3,
|
|
136153
136153
|
secondaryGroupSize: 0,
|
|
@@ -136159,7 +136159,7 @@ function hj(e) {
|
|
|
136159
136159
|
suffix: ""
|
|
136160
136160
|
}, D = "0123456789abcdefghijklmnopqrstuvwxyz", f = !0;
|
|
136161
136161
|
function g(p, u) {
|
|
136162
|
-
var w, S,
|
|
136162
|
+
var w, S, x, C, F, A, E, T, R = this;
|
|
136163
136163
|
if (!(R instanceof g)) return new g(p, u);
|
|
136164
136164
|
if (u == null) {
|
|
136165
136165
|
if (p && p._isBigNumber === !0) {
|
|
@@ -136194,8 +136194,8 @@ function hj(e) {
|
|
|
136194
136194
|
C = E;
|
|
136195
136195
|
continue;
|
|
136196
136196
|
}
|
|
136197
|
-
} else if (!
|
|
136198
|
-
|
|
136197
|
+
} else if (!x && (T == T.toUpperCase() && (T = T.toLowerCase()) || T == T.toLowerCase() && (T = T.toUpperCase()))) {
|
|
136198
|
+
x = !0, F = -1, C = 0;
|
|
136199
136199
|
continue;
|
|
136200
136200
|
}
|
|
136201
136201
|
return s(R, String(p), A, u);
|
|
@@ -136247,7 +136247,7 @@ function hj(e) {
|
|
|
136247
136247
|
else
|
|
136248
136248
|
throw Error(tn + u + " not true or false: " + w);
|
|
136249
136249
|
if (p.hasOwnProperty(u = "MODULO_MODE") && (w = p[u], Ee(w, 0, 9, u), b = w), p.hasOwnProperty(u = "POW_PRECISION") && (w = p[u], Ee(w, 0, Ue, u), q = w), p.hasOwnProperty(u = "FORMAT"))
|
|
136250
|
-
if (w = p[u], typeof w == "object")
|
|
136250
|
+
if (w = p[u], typeof w == "object") k = w;
|
|
136251
136251
|
else throw Error(tn + u + " not an object: " + w);
|
|
136252
136252
|
if (p.hasOwnProperty(u = "ALPHABET"))
|
|
136253
136253
|
if (w = p[u], typeof w == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(w))
|
|
@@ -136264,26 +136264,26 @@ function hj(e) {
|
|
|
136264
136264
|
CRYPTO: y,
|
|
136265
136265
|
MODULO_MODE: b,
|
|
136266
136266
|
POW_PRECISION: q,
|
|
136267
|
-
FORMAT:
|
|
136267
|
+
FORMAT: k,
|
|
136268
136268
|
ALPHABET: D
|
|
136269
136269
|
};
|
|
136270
136270
|
}, g.isBigNumber = function(p) {
|
|
136271
136271
|
if (!p || p._isBigNumber !== !0) return !1;
|
|
136272
136272
|
if (!g.DEBUG) return !0;
|
|
136273
|
-
var u, w, S = p.c,
|
|
136273
|
+
var u, w, S = p.c, x = p.e, C = p.s;
|
|
136274
136274
|
e: if ({}.toString.call(S) == "[object Array]") {
|
|
136275
|
-
if ((C === 1 || C === -1) &&
|
|
136275
|
+
if ((C === 1 || C === -1) && x >= -Ue && x <= Ue && x === pn(x)) {
|
|
136276
136276
|
if (S[0] === 0) {
|
|
136277
|
-
if (
|
|
136277
|
+
if (x === 0 && S.length === 1) return !0;
|
|
136278
136278
|
break e;
|
|
136279
136279
|
}
|
|
136280
|
-
if (u = (
|
|
136280
|
+
if (u = (x + 1) % oe, u < 1 && (u += oe), String(S[0]).length == u) {
|
|
136281
136281
|
for (u = 0; u < S.length; u++)
|
|
136282
136282
|
if (w = S[u], w < 0 || w >= wn || w !== pn(w)) break e;
|
|
136283
136283
|
if (w !== 0) return !0;
|
|
136284
136284
|
}
|
|
136285
136285
|
}
|
|
136286
|
-
} else if (S === null &&
|
|
136286
|
+
} else if (S === null && x === null && (C === null || C === 1 || C === -1))
|
|
136287
136287
|
return !0;
|
|
136288
136288
|
throw Error(tn + "Invalid BigNumber: " + p);
|
|
136289
136289
|
}, g.maximum = g.max = function() {
|
|
@@ -136297,11 +136297,11 @@ function hj(e) {
|
|
|
136297
136297
|
return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
|
|
136298
136298
|
};
|
|
136299
136299
|
return function(w) {
|
|
136300
|
-
var S,
|
|
136300
|
+
var S, x, C, F, A, E = 0, T = [], R = new g(o);
|
|
136301
136301
|
if (w == null ? w = i : Ee(w, 0, Ue), F = Wm(w / oe), y)
|
|
136302
136302
|
if (crypto.getRandomValues) {
|
|
136303
136303
|
for (S = crypto.getRandomValues(new Uint32Array(F *= 2)); E < F; )
|
|
136304
|
-
A = S[E] * 131072 + (S[E + 1] >>> 11), A >= 9e15 ? (
|
|
136304
|
+
A = S[E] * 131072 + (S[E + 1] >>> 11), A >= 9e15 ? (x = crypto.getRandomValues(new Uint32Array(2)), S[E] = x[0], S[E + 1] = x[1]) : (T.push(A % 1e14), E += 2);
|
|
136305
136305
|
E = F / 2;
|
|
136306
136306
|
} else if (crypto.randomBytes) {
|
|
136307
136307
|
for (S = crypto.randomBytes(F *= 7); E < F; )
|
|
@@ -136327,28 +136327,28 @@ function hj(e) {
|
|
|
136327
136327
|
return w;
|
|
136328
136328
|
}, t = /* @__PURE__ */ function() {
|
|
136329
136329
|
var p = "0123456789";
|
|
136330
|
-
function u(w, S,
|
|
136330
|
+
function u(w, S, x, C) {
|
|
136331
136331
|
for (var F, A = [0], E, T = 0, R = w.length; T < R; ) {
|
|
136332
136332
|
for (E = A.length; E--; A[E] *= S) ;
|
|
136333
136333
|
for (A[0] += C.indexOf(w.charAt(T++)), F = 0; F < A.length; F++)
|
|
136334
|
-
A[F] >
|
|
136334
|
+
A[F] > x - 1 && (A[F + 1] == null && (A[F + 1] = 0), A[F + 1] += A[F] / x | 0, A[F] %= x);
|
|
136335
136335
|
}
|
|
136336
136336
|
return A.reverse();
|
|
136337
136337
|
}
|
|
136338
|
-
return function(w, S,
|
|
136338
|
+
return function(w, S, x, C, F) {
|
|
136339
136339
|
var A, E, T, R, P, V, X, Q, ue = w.indexOf("."), ve = i, G = d;
|
|
136340
136340
|
for (ue >= 0 && (R = q, q = 0, w = w.replace(".", ""), Q = new g(S), V = Q.pow(w.length - ue), q = R, Q.c = u(
|
|
136341
136341
|
so(mn(V.c), V.e, "0"),
|
|
136342
136342
|
10,
|
|
136343
|
-
|
|
136343
|
+
x,
|
|
136344
136344
|
p
|
|
136345
|
-
), Q.e = Q.c.length), X = u(w, S,
|
|
136345
|
+
), Q.e = Q.c.length), X = u(w, S, x, F ? (A = D, p) : (A = p, D)), T = R = X.length; X[--R] == 0; X.pop()) ;
|
|
136346
136346
|
if (!X[0]) return A.charAt(0);
|
|
136347
|
-
if (ue < 0 ? --T : (V.c = X, V.e = T, V.s = C, V = n(V, Q, ve, G,
|
|
136347
|
+
if (ue < 0 ? --T : (V.c = X, V.e = T, V.s = C, V = n(V, Q, ve, G, x), X = V.c, P = V.r, T = V.e), E = T + ve + 1, ue = X[E], R = x / 2, P = P || E < 0 || X[E + 1] != null, P = G < 4 ? (ue != null || P) && (G == 0 || G == (V.s < 0 ? 3 : 2)) : ue > R || ue == R && (G == 4 || P || G == 6 && X[E - 1] & 1 || G == (V.s < 0 ? 8 : 7)), E < 1 || !X[0])
|
|
136348
136348
|
w = P ? so(A.charAt(1), -ve, A.charAt(0)) : A.charAt(0);
|
|
136349
136349
|
else {
|
|
136350
136350
|
if (X.length = E, P)
|
|
136351
|
-
for (--
|
|
136351
|
+
for (--x; ++X[--E] > x; )
|
|
136352
136352
|
X[E] = 0, E || (++T, X = [1].concat(X));
|
|
136353
136353
|
for (R = X.length; !X[--R]; ) ;
|
|
136354
136354
|
for (ue = 0, w = ""; ue <= R; w += A.charAt(X[ue++])) ;
|
|
@@ -136357,40 +136357,40 @@ function hj(e) {
|
|
|
136357
136357
|
return w;
|
|
136358
136358
|
};
|
|
136359
136359
|
}(), n = /* @__PURE__ */ function() {
|
|
136360
|
-
function p(S,
|
|
136361
|
-
var F, A, E, T, R = 0, P = S.length, V =
|
|
136360
|
+
function p(S, x, C) {
|
|
136361
|
+
var F, A, E, T, R = 0, P = S.length, V = x % bo, X = x / bo | 0;
|
|
136362
136362
|
for (S = S.slice(); P--; )
|
|
136363
136363
|
E = S[P] % bo, T = S[P] / bo | 0, F = X * E + T * V, A = V * E + F % bo * bo + R, R = (A / C | 0) + (F / bo | 0) + X * T, S[P] = A % C;
|
|
136364
136364
|
return R && (S = [R].concat(S)), S;
|
|
136365
136365
|
}
|
|
136366
|
-
function u(S,
|
|
136366
|
+
function u(S, x, C, F) {
|
|
136367
136367
|
var A, E;
|
|
136368
136368
|
if (C != F)
|
|
136369
136369
|
E = C > F ? 1 : -1;
|
|
136370
136370
|
else
|
|
136371
136371
|
for (A = E = 0; A < C; A++)
|
|
136372
|
-
if (S[A] !=
|
|
136373
|
-
E = S[A] >
|
|
136372
|
+
if (S[A] != x[A]) {
|
|
136373
|
+
E = S[A] > x[A] ? 1 : -1;
|
|
136374
136374
|
break;
|
|
136375
136375
|
}
|
|
136376
136376
|
return E;
|
|
136377
136377
|
}
|
|
136378
|
-
function w(S,
|
|
136378
|
+
function w(S, x, C, F) {
|
|
136379
136379
|
for (var A = 0; C--; )
|
|
136380
|
-
S[C] -= A, A = S[C] <
|
|
136380
|
+
S[C] -= A, A = S[C] < x[C] ? 1 : 0, S[C] = A * F + S[C] - x[C];
|
|
136381
136381
|
for (; !S[0] && S.length > 1; S.splice(0, 1)) ;
|
|
136382
136382
|
}
|
|
136383
|
-
return function(S,
|
|
136384
|
-
var E, T, R, P, V, X, Q, ue, ve, G, ne, le, ze, Ce, cn, Ve, Ge, en = S.s ==
|
|
136383
|
+
return function(S, x, C, F, A) {
|
|
136384
|
+
var E, T, R, P, V, X, Q, ue, ve, G, ne, le, ze, Ce, cn, Ve, Ge, en = S.s == x.s ? 1 : -1, Ke = S.c, fe = x.c;
|
|
136385
136385
|
if (!Ke || !Ke[0] || !fe || !fe[0])
|
|
136386
136386
|
return new g(
|
|
136387
136387
|
// Return NaN if either NaN, or both Infinity or 0.
|
|
136388
|
-
!S.s || !
|
|
136388
|
+
!S.s || !x.s || (Ke ? fe && Ke[0] == fe[0] : !fe) ? NaN : (
|
|
136389
136389
|
// Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
|
|
136390
136390
|
Ke && Ke[0] == 0 || !fe ? en * 0 : en / 0
|
|
136391
136391
|
)
|
|
136392
136392
|
);
|
|
136393
|
-
for (ue = new g(en), ve = ue.c = [], T = S.e -
|
|
136393
|
+
for (ue = new g(en), ve = ue.c = [], T = S.e - x.e, en = C + T + 1, A || (A = wn, T = ln(S.e / oe) - ln(x.e / oe), en = en / oe | 0), R = 0; fe[R] == (Ke[R] || 0); R++) ;
|
|
136394
136394
|
if (fe[R] > (Ke[R] || 0) && T--, en < 0)
|
|
136395
136395
|
ve.push(1), P = !0;
|
|
136396
136396
|
else {
|
|
@@ -136420,9 +136420,9 @@ function hj(e) {
|
|
|
136420
136420
|
};
|
|
136421
136421
|
}();
|
|
136422
136422
|
function v(p, u, w, S) {
|
|
136423
|
-
var
|
|
136423
|
+
var x, C, F, A, E;
|
|
136424
136424
|
if (w == null ? w = d : Ee(w, 0, 8), !p.c) return p.toString();
|
|
136425
|
-
if (
|
|
136425
|
+
if (x = p.c[0], F = p.e, u == null)
|
|
136426
136426
|
E = mn(p.c), E = S == 1 || S == 2 && (F <= m || F >= h) ? Fd(E, F) : so(E, F, "0");
|
|
136427
136427
|
else if (p = M(new g(p), u, w), C = p.e, E = mn(p.c), A = E.length, S == 1 || S == 2 && (u <= C || C <= m)) {
|
|
136428
136428
|
for (; A < u; E += "0", A++) ;
|
|
@@ -136431,22 +136431,22 @@ function hj(e) {
|
|
|
136431
136431
|
if (--u > 0) for (E += "."; u--; E += "0") ;
|
|
136432
136432
|
} else if (u += C - A, u > 0)
|
|
136433
136433
|
for (C + 1 == A && (E += "."); u--; E += "0") ;
|
|
136434
|
-
return p.s < 0 &&
|
|
136434
|
+
return p.s < 0 && x ? "-" + E : E;
|
|
136435
136435
|
}
|
|
136436
136436
|
function O(p, u) {
|
|
136437
|
-
for (var w, S,
|
|
136438
|
-
S = new g(p[
|
|
136437
|
+
for (var w, S, x = 1, C = new g(p[0]); x < p.length; x++)
|
|
136438
|
+
S = new g(p[x]), (!S.s || (w = To(C, S)) === u || w === 0 && C.s === u) && (C = S);
|
|
136439
136439
|
return C;
|
|
136440
136440
|
}
|
|
136441
136441
|
function B(p, u, w) {
|
|
136442
|
-
for (var S = 1,
|
|
136443
|
-
for (
|
|
136442
|
+
for (var S = 1, x = u.length; !u[--x]; u.pop()) ;
|
|
136443
|
+
for (x = u[0]; x >= 10; x /= 10, S++) ;
|
|
136444
136444
|
return (w = S + w * oe - 1) > _ ? p.c = p.e = null : w < l ? p.c = [p.e = 0] : (p.e = w, p.c = u), p;
|
|
136445
136445
|
}
|
|
136446
136446
|
s = /* @__PURE__ */ function() {
|
|
136447
|
-
var p = /^(-?)0([xbo])(?=\w[\w.]*$)/i, u = /^([^.]+)\.$/, w = /^\.([^.]+)$/, S = /^-?(Infinity|NaN)$/,
|
|
136447
|
+
var p = /^(-?)0([xbo])(?=\w[\w.]*$)/i, u = /^([^.]+)\.$/, w = /^\.([^.]+)$/, S = /^-?(Infinity|NaN)$/, x = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
|
|
136448
136448
|
return function(C, F, A, E) {
|
|
136449
|
-
var T, R = A ? F : F.replace(
|
|
136449
|
+
var T, R = A ? F : F.replace(x, "");
|
|
136450
136450
|
if (S.test(R))
|
|
136451
136451
|
C.s = isNaN(R) ? null : R < 0 ? -1 : 1;
|
|
136452
136452
|
else {
|
|
@@ -136462,29 +136462,29 @@ function hj(e) {
|
|
|
136462
136462
|
};
|
|
136463
136463
|
}();
|
|
136464
136464
|
function M(p, u, w, S) {
|
|
136465
|
-
var
|
|
136465
|
+
var x, C, F, A, E, T, R, P = p.c, V = Gm;
|
|
136466
136466
|
if (P) {
|
|
136467
136467
|
e: {
|
|
136468
|
-
for (
|
|
136469
|
-
if (C = u -
|
|
136470
|
-
C += oe, F = u, E = P[T = 0], R = pn(E / V[
|
|
136468
|
+
for (x = 1, A = P[0]; A >= 10; A /= 10, x++) ;
|
|
136469
|
+
if (C = u - x, C < 0)
|
|
136470
|
+
C += oe, F = u, E = P[T = 0], R = pn(E / V[x - F - 1] % 10);
|
|
136471
136471
|
else if (T = Wm((C + 1) / oe), T >= P.length)
|
|
136472
136472
|
if (S) {
|
|
136473
136473
|
for (; P.length <= T; P.push(0)) ;
|
|
136474
|
-
E = R = 0,
|
|
136474
|
+
E = R = 0, x = 1, C %= oe, F = C - oe + 1;
|
|
136475
136475
|
} else
|
|
136476
136476
|
break e;
|
|
136477
136477
|
else {
|
|
136478
|
-
for (E = A = P[T],
|
|
136479
|
-
C %= oe, F = C - oe +
|
|
136478
|
+
for (E = A = P[T], x = 1; A >= 10; A /= 10, x++) ;
|
|
136479
|
+
C %= oe, F = C - oe + x, R = F < 0 ? 0 : pn(E / V[x - F - 1] % 10);
|
|
136480
136480
|
}
|
|
136481
136481
|
if (S = S || u < 0 || // Are there any non-zero digits after the rounding digit?
|
|
136482
136482
|
// The expression n % pows10[d - j - 1] returns all digits of n to the right
|
|
136483
136483
|
// of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
|
|
136484
|
-
P[T + 1] != null || (F < 0 ? E : E % V[
|
|
136485
|
-
(C > 0 ? F > 0 ? E / V[
|
|
136484
|
+
P[T + 1] != null || (F < 0 ? E : E % V[x - F - 1]), S = w < 4 ? (R || S) && (w == 0 || w == (p.s < 0 ? 3 : 2)) : R > 5 || R == 5 && (w == 4 || S || w == 6 && // Check whether the digit to the left of the rounding digit is odd.
|
|
136485
|
+
(C > 0 ? F > 0 ? E / V[x - F] : 0 : P[T - 1]) % 10 & 1 || w == (p.s < 0 ? 8 : 7)), u < 1 || !P[0])
|
|
136486
136486
|
return P.length = 0, S ? (u -= p.e + 1, P[0] = V[(oe - u % oe) % oe], p.e = -u || 0) : P[0] = p.e = 0, p;
|
|
136487
|
-
if (C == 0 ? (P.length = T, A = 1, T--) : (P.length = T + 1, A = V[oe - C], P[T] = F > 0 ? pn(E / V[
|
|
136487
|
+
if (C == 0 ? (P.length = T, A = 1, T--) : (P.length = T + 1, A = V[oe - C], P[T] = F > 0 ? pn(E / V[x - F] % V[F]) * A : 0), S)
|
|
136488
136488
|
for (; ; )
|
|
136489
136489
|
if (T == 0) {
|
|
136490
136490
|
for (C = 1, F = P[0]; F >= 10; F /= 10, C++) ;
|
|
@@ -136511,18 +136511,18 @@ function hj(e) {
|
|
|
136511
136511
|
}, a.comparedTo = function(p, u) {
|
|
136512
136512
|
return To(this, new g(p, u));
|
|
136513
136513
|
}, a.decimalPlaces = a.dp = function(p, u) {
|
|
136514
|
-
var w, S,
|
|
136514
|
+
var w, S, x, C = this;
|
|
136515
136515
|
if (p != null)
|
|
136516
136516
|
return Ee(p, 0, Ue), u == null ? u = d : Ee(u, 0, 8), M(new g(C), p + C.e + 1, u);
|
|
136517
136517
|
if (!(w = C.c)) return null;
|
|
136518
|
-
if (S = ((
|
|
136518
|
+
if (S = ((x = w.length - 1) - ln(this.e / oe)) * oe, x = w[x]) for (; x % 10 == 0; x /= 10, S--) ;
|
|
136519
136519
|
return S < 0 && (S = 0), S;
|
|
136520
136520
|
}, a.dividedBy = a.div = function(p, u) {
|
|
136521
136521
|
return n(this, new g(p, u), i, d);
|
|
136522
136522
|
}, a.dividedToIntegerBy = a.idiv = function(p, u) {
|
|
136523
136523
|
return n(this, new g(p, u), 0, 1);
|
|
136524
136524
|
}, a.exponentiatedBy = a.pow = function(p, u) {
|
|
136525
|
-
var w, S,
|
|
136525
|
+
var w, S, x, C, F, A, E, T, R, P = this;
|
|
136526
136526
|
if (p = new g(p), p.c && !p.isInteger())
|
|
136527
136527
|
throw Error(tn + "Exponent not an integer: " + N(p));
|
|
136528
136528
|
if (u != null && (u = new g(u)), A = p.e > 14, !P.c || !P.c[0] || P.c[0] == 1 && !P.e && P.c.length == 1 || !p.c || !p.c[0])
|
|
@@ -136535,19 +136535,19 @@ function hj(e) {
|
|
|
136535
136535
|
return C = P.s < 0 && Bd(p) ? -0 : 0, P.e > -1 && (C = 1 / C), new g(E ? 1 / C : C);
|
|
136536
136536
|
q && (C = Wm(q / oe + 2));
|
|
136537
136537
|
}
|
|
136538
|
-
for (A ? (w = new g(0.5), E && (p.s = 1), T = Bd(p)) : (
|
|
136538
|
+
for (A ? (w = new g(0.5), E && (p.s = 1), T = Bd(p)) : (x = Math.abs(+N(p)), T = x % 2), R = new g(o); ; ) {
|
|
136539
136539
|
if (T) {
|
|
136540
136540
|
if (R = R.times(P), !R.c) break;
|
|
136541
136541
|
C ? R.c.length > C && (R.c.length = C) : S && (R = R.mod(u));
|
|
136542
136542
|
}
|
|
136543
|
-
if (
|
|
136544
|
-
if (
|
|
136545
|
-
T =
|
|
136543
|
+
if (x) {
|
|
136544
|
+
if (x = pn(x / 2), x === 0) break;
|
|
136545
|
+
T = x % 2;
|
|
136546
136546
|
} else if (p = p.times(w), M(p, p.e + 1, 1), p.e > 14)
|
|
136547
136547
|
T = Bd(p);
|
|
136548
136548
|
else {
|
|
136549
|
-
if (
|
|
136550
|
-
T =
|
|
136549
|
+
if (x = +N(p), x === 0) break;
|
|
136550
|
+
T = x % 2;
|
|
136551
136551
|
}
|
|
136552
136552
|
P = P.times(P), C ? P.c && P.c.length > C && (P.c.length = C) : S && (P = P.mod(u));
|
|
136553
136553
|
}
|
|
@@ -136578,7 +136578,7 @@ function hj(e) {
|
|
|
136578
136578
|
}, a.isZero = function() {
|
|
136579
136579
|
return !!this.c && this.c[0] == 0;
|
|
136580
136580
|
}, a.minus = function(p, u) {
|
|
136581
|
-
var w, S,
|
|
136581
|
+
var w, S, x, C, F = this, A = F.s;
|
|
136582
136582
|
if (p = new g(p, u), u = p.s, !A || !u) return new g(NaN);
|
|
136583
136583
|
if (A != u)
|
|
136584
136584
|
return p.s = -u, F.plus(p);
|
|
@@ -136592,15 +136592,15 @@ function hj(e) {
|
|
|
136592
136592
|
));
|
|
136593
136593
|
}
|
|
136594
136594
|
if (E = ln(E), T = ln(T), R = R.slice(), A = E - T) {
|
|
136595
|
-
for ((C = A < 0) ? (A = -A,
|
|
136596
|
-
|
|
136595
|
+
for ((C = A < 0) ? (A = -A, x = R) : (T = E, x = P), x.reverse(), u = A; u--; x.push(0)) ;
|
|
136596
|
+
x.reverse();
|
|
136597
136597
|
} else
|
|
136598
136598
|
for (S = (C = (A = R.length) < (u = P.length)) ? A : u, A = u = 0; u < S; u++)
|
|
136599
136599
|
if (R[u] != P[u]) {
|
|
136600
136600
|
C = R[u] < P[u];
|
|
136601
136601
|
break;
|
|
136602
136602
|
}
|
|
136603
|
-
if (C && (
|
|
136603
|
+
if (C && (x = R, R = P, P = x, p.s = -p.s), u = (S = P.length) - (w = R.length), u > 0) for (; u--; R[w++] = 0) ;
|
|
136604
136604
|
for (u = wn - 1; S > A; ) {
|
|
136605
136605
|
if (R[--S] < P[S]) {
|
|
136606
136606
|
for (w = S; w && !R[--w]; R[w] = u) ;
|
|
@@ -136611,15 +136611,15 @@ function hj(e) {
|
|
|
136611
136611
|
for (; R[0] == 0; R.splice(0, 1), --T) ;
|
|
136612
136612
|
return R[0] ? B(p, R, T) : (p.s = d == 3 ? -1 : 1, p.c = [p.e = 0], p);
|
|
136613
136613
|
}, a.modulo = a.mod = function(p, u) {
|
|
136614
|
-
var w, S,
|
|
136615
|
-
return p = new g(p, u), !
|
|
136614
|
+
var w, S, x = this;
|
|
136615
|
+
return p = new g(p, u), !x.c || !p.s || p.c && !p.c[0] ? new g(NaN) : !p.c || x.c && !x.c[0] ? new g(x) : (b == 9 ? (S = p.s, p.s = 1, w = n(x, p, 0, 3), p.s = S, w.s *= S) : w = n(x, p, 0, b), p = x.minus(w.times(p)), !p.c[0] && b == 1 && (p.s = x.s), p);
|
|
136616
136616
|
}, a.multipliedBy = a.times = function(p, u) {
|
|
136617
|
-
var w, S,
|
|
136617
|
+
var w, S, x, C, F, A, E, T, R, P, V, X, Q, ue, ve, G = this, ne = G.c, le = (p = new g(p, u)).c;
|
|
136618
136618
|
if (!ne || !le || !ne[0] || !le[0])
|
|
136619
136619
|
return !G.s || !p.s || ne && !ne[0] && !le || le && !le[0] && !ne ? p.c = p.e = p.s = null : (p.s *= G.s, !ne || !le ? p.c = p.e = null : (p.c = [0], p.e = 0)), p;
|
|
136620
|
-
for (S = ln(G.e / oe) + ln(p.e / oe), p.s *= G.s, E = ne.length, P = le.length, E < P && (Q = ne, ne = le, le = Q,
|
|
136621
|
-
for (ue = wn, ve = bo,
|
|
136622
|
-
for (w = 0, V = le[
|
|
136620
|
+
for (S = ln(G.e / oe) + ln(p.e / oe), p.s *= G.s, E = ne.length, P = le.length, E < P && (Q = ne, ne = le, le = Q, x = E, E = P, P = x), x = E + P, Q = []; x--; Q.push(0)) ;
|
|
136621
|
+
for (ue = wn, ve = bo, x = P; --x >= 0; ) {
|
|
136622
|
+
for (w = 0, V = le[x] % ve, X = le[x] / ve | 0, F = E, C = x + F; C > x; )
|
|
136623
136623
|
T = ne[--F] % ve, R = ne[F] / ve | 0, A = X * T + R * V, T = V * T + A % ve * ve + Q[C] + w, w = (T / ue | 0) + (A / ve | 0) + X * R, Q[C--] = T % ue;
|
|
136624
136624
|
Q[C] = w;
|
|
136625
136625
|
}
|
|
@@ -136628,44 +136628,44 @@ function hj(e) {
|
|
|
136628
136628
|
var p = new g(this);
|
|
136629
136629
|
return p.s = -p.s || null, p;
|
|
136630
136630
|
}, a.plus = function(p, u) {
|
|
136631
|
-
var w, S = this,
|
|
136632
|
-
if (p = new g(p, u), u = p.s, !
|
|
136633
|
-
if (
|
|
136631
|
+
var w, S = this, x = S.s;
|
|
136632
|
+
if (p = new g(p, u), u = p.s, !x || !u) return new g(NaN);
|
|
136633
|
+
if (x != u)
|
|
136634
136634
|
return p.s = -u, S.minus(p);
|
|
136635
136635
|
var C = S.e / oe, F = p.e / oe, A = S.c, E = p.c;
|
|
136636
136636
|
if (!C || !F) {
|
|
136637
|
-
if (!A || !E) return new g(
|
|
136638
|
-
if (!A[0] || !E[0]) return E[0] ? p : new g(A[0] ? S :
|
|
136637
|
+
if (!A || !E) return new g(x / 0);
|
|
136638
|
+
if (!A[0] || !E[0]) return E[0] ? p : new g(A[0] ? S : x * 0);
|
|
136639
136639
|
}
|
|
136640
|
-
if (C = ln(C), F = ln(F), A = A.slice(),
|
|
136641
|
-
for (
|
|
136640
|
+
if (C = ln(C), F = ln(F), A = A.slice(), x = C - F) {
|
|
136641
|
+
for (x > 0 ? (F = C, w = E) : (x = -x, w = A), w.reverse(); x--; w.push(0)) ;
|
|
136642
136642
|
w.reverse();
|
|
136643
136643
|
}
|
|
136644
|
-
for (
|
|
136645
|
-
|
|
136646
|
-
return
|
|
136644
|
+
for (x = A.length, u = E.length, x - u < 0 && (w = E, E = A, A = w, u = x), x = 0; u; )
|
|
136645
|
+
x = (A[--u] = A[u] + E[u] + x) / wn | 0, A[u] = wn === A[u] ? 0 : A[u] % wn;
|
|
136646
|
+
return x && (A = [x].concat(A), ++F), B(p, A, F);
|
|
136647
136647
|
}, a.precision = a.sd = function(p, u) {
|
|
136648
|
-
var w, S,
|
|
136648
|
+
var w, S, x, C = this;
|
|
136649
136649
|
if (p != null && p !== !!p)
|
|
136650
136650
|
return Ee(p, 1, Ue), u == null ? u = d : Ee(u, 0, 8), M(new g(C), p, u);
|
|
136651
136651
|
if (!(w = C.c)) return null;
|
|
136652
|
-
if (
|
|
136653
|
-
for (;
|
|
136654
|
-
for (
|
|
136652
|
+
if (x = w.length - 1, S = x * oe + 1, x = w[x]) {
|
|
136653
|
+
for (; x % 10 == 0; x /= 10, S--) ;
|
|
136654
|
+
for (x = w[0]; x >= 10; x /= 10, S++) ;
|
|
136655
136655
|
}
|
|
136656
136656
|
return p && C.e + 1 > S && (S = C.e + 1), S;
|
|
136657
136657
|
}, a.shiftedBy = function(p) {
|
|
136658
136658
|
return Ee(p, -Vm, Vm), this.times("1e" + p);
|
|
136659
136659
|
}, a.squareRoot = a.sqrt = function() {
|
|
136660
|
-
var p, u, w, S,
|
|
136660
|
+
var p, u, w, S, x, C = this, F = C.c, A = C.s, E = C.e, T = i + 4, R = new g("0.5");
|
|
136661
136661
|
if (A !== 1 || !F || !F[0])
|
|
136662
136662
|
return new g(!A || A < 0 && (!F || F[0]) ? NaN : F ? C : 1 / 0);
|
|
136663
136663
|
if (A = Math.sqrt(+N(C)), A == 0 || A == 1 / 0 ? (u = mn(F), (u.length + E) % 2 == 0 && (u += "0"), A = Math.sqrt(+u), E = ln((E + 1) / 2) - (E < 0 || E % 2), A == 1 / 0 ? u = "5e" + E : (u = A.toExponential(), u = u.slice(0, u.indexOf("e") + 1) + E), w = new g(u)) : w = new g(A + ""), w.c[0]) {
|
|
136664
136664
|
for (E = w.e, A = E + T, A < 3 && (A = 0); ; )
|
|
136665
|
-
if (
|
|
136665
|
+
if (x = w, w = R.times(x.plus(n(C, x, T, 1))), mn(x.c).slice(0, A) === (u = mn(w.c)).slice(0, A))
|
|
136666
136666
|
if (w.e < E && --A, u = u.slice(A - 3, A + 1), u == "9999" || !S && u == "4999") {
|
|
136667
|
-
if (!S && (M(
|
|
136668
|
-
w =
|
|
136667
|
+
if (!S && (M(x, x.e + i + 2, 0), x.times(x).eq(C))) {
|
|
136668
|
+
w = x;
|
|
136669
136669
|
break;
|
|
136670
136670
|
}
|
|
136671
136671
|
T += 4, A += 4, S = 1;
|
|
@@ -136680,13 +136680,13 @@ function hj(e) {
|
|
|
136680
136680
|
}, a.toFixed = function(p, u) {
|
|
136681
136681
|
return p != null && (Ee(p, 0, Ue), p = p + this.e + 1), v(this, p, u);
|
|
136682
136682
|
}, a.toFormat = function(p, u, w) {
|
|
136683
|
-
var S,
|
|
136683
|
+
var S, x = this;
|
|
136684
136684
|
if (w == null)
|
|
136685
|
-
p != null && u && typeof u == "object" ? (w = u, u = null) : p && typeof p == "object" ? (w = p, p = u = null) : w =
|
|
136685
|
+
p != null && u && typeof u == "object" ? (w = u, u = null) : p && typeof p == "object" ? (w = p, p = u = null) : w = k;
|
|
136686
136686
|
else if (typeof w != "object")
|
|
136687
136687
|
throw Error(tn + "Argument not an object: " + w);
|
|
136688
|
-
if (S =
|
|
136689
|
-
var C, F = S.split("."), A = +w.groupSize, E = +w.secondaryGroupSize, T = w.groupSeparator || "", R = F[0], P = F[1], V =
|
|
136688
|
+
if (S = x.toFixed(p, u), x.c) {
|
|
136689
|
+
var C, F = S.split("."), A = +w.groupSize, E = +w.secondaryGroupSize, T = w.groupSeparator || "", R = F[0], P = F[1], V = x.s < 0, X = V ? R.slice(1) : R, Q = X.length;
|
|
136690
136690
|
if (E && (C = A, A = E, E = C, Q -= C), A > 0 && Q > 0) {
|
|
136691
136691
|
for (C = Q % A || A, R = X.substr(0, C); C < Q; C += A) R += T + X.substr(C, A);
|
|
136692
136692
|
E > 0 && (R += T + X.slice(C)), V && (R = "-" + R);
|
|
@@ -136698,13 +136698,13 @@ function hj(e) {
|
|
|
136698
136698
|
}
|
|
136699
136699
|
return (w.prefix || "") + S + (w.suffix || "");
|
|
136700
136700
|
}, a.toFraction = function(p) {
|
|
136701
|
-
var u, w, S,
|
|
136701
|
+
var u, w, S, x, C, F, A, E, T, R, P, V, X = this, Q = X.c;
|
|
136702
136702
|
if (p != null && (A = new g(p), !A.isInteger() && (A.c || A.s !== 1) || A.lt(o)))
|
|
136703
136703
|
throw Error(tn + "Argument " + (A.isInteger() ? "out of range: " : "not an integer: ") + N(A));
|
|
136704
136704
|
if (!Q) return new g(X);
|
|
136705
|
-
for (u = new g(o), T = w = new g(o), S = E = new g(o), V = mn(Q), C = u.e = V.length - X.e - 1, u.c[0] = Gm[(F = C % oe) < 0 ? oe + F : F], p = !p || A.comparedTo(u) > 0 ? C > 0 ? u : T : A, F = _, _ = 1 / 0, A = new g(V), E.c[0] = 0; R = n(A, u, 0, 1),
|
|
136706
|
-
w = S, S =
|
|
136707
|
-
return
|
|
136705
|
+
for (u = new g(o), T = w = new g(o), S = E = new g(o), V = mn(Q), C = u.e = V.length - X.e - 1, u.c[0] = Gm[(F = C % oe) < 0 ? oe + F : F], p = !p || A.comparedTo(u) > 0 ? C > 0 ? u : T : A, F = _, _ = 1 / 0, A = new g(V), E.c[0] = 0; R = n(A, u, 0, 1), x = w.plus(R.times(S)), x.comparedTo(p) != 1; )
|
|
136706
|
+
w = S, S = x, T = E.plus(R.times(x = T)), E = x, u = A.minus(R.times(x = u)), A = x;
|
|
136707
|
+
return x = n(p.minus(w), S, 0, 1), E = E.plus(x.times(T)), w = w.plus(x.times(S)), E.s = T.s = X.s, C = C * 2, P = n(T, S, C, d).minus(X).abs().comparedTo(
|
|
136708
136708
|
n(E, w, C, d).minus(X).abs()
|
|
136709
136709
|
) < 1 ? [T, S] : [E, w], _ = F, P;
|
|
136710
136710
|
}, a.toNumber = function() {
|
|
@@ -136712,8 +136712,8 @@ function hj(e) {
|
|
|
136712
136712
|
}, a.toPrecision = function(p, u) {
|
|
136713
136713
|
return p != null && Ee(p, 1, Ue), v(this, p, u, 2);
|
|
136714
136714
|
}, a.toString = function(p) {
|
|
136715
|
-
var u, w = this, S = w.s,
|
|
136716
|
-
return
|
|
136715
|
+
var u, w = this, S = w.s, x = w.e;
|
|
136716
|
+
return x === null ? S ? (u = "Infinity", S < 0 && (u = "-" + u)) : u = "NaN" : (p == null ? u = x <= m || x >= h ? Fd(mn(w.c), x) : so(mn(w.c), x, "0") : p === 10 && f ? (w = M(new g(w), i + x + 1, d), u = so(mn(w.c), w.e, "0")) : (Ee(p, 2, D.length, "Base"), u = t(so(mn(w.c), x, "0"), 10, p, S, !0)), S < 0 && w.c[0] && (u = "-" + u)), u;
|
|
136717
136717
|
}, a.valueOf = a.toJSON = function() {
|
|
136718
136718
|
return N(this);
|
|
136719
136719
|
}, a._isBigNumber = !0, a[Symbol.toStringTag] = "BigNumber", a[Symbol.for("nodejs.util.inspect.custom")] = a.valueOf, e != null && g.set(e), g;
|
|
@@ -137416,10 +137416,10 @@ function uj(e = 500) {
|
|
|
137416
137416
|
m(o, y), m(s, !1), l == null || l();
|
|
137417
137417
|
};
|
|
137418
137418
|
b();
|
|
137419
|
-
const
|
|
137419
|
+
const k = setTimeout(() => {
|
|
137420
137420
|
q();
|
|
137421
137421
|
}, e);
|
|
137422
|
-
|
|
137422
|
+
k && m(n, k);
|
|
137423
137423
|
}
|
|
137424
137424
|
), i = he(null, (d, m, h) => {
|
|
137425
137425
|
clearTimeout(d(n)), m(s, !1);
|
|
@@ -137676,8 +137676,8 @@ const {
|
|
|
137676
137676
|
}) => {
|
|
137677
137677
|
const i = je(), [d, m] = Fe(), h = Bh(null);
|
|
137678
137678
|
return an(() => {
|
|
137679
|
-
var b, q,
|
|
137680
|
-
const l = (
|
|
137679
|
+
var b, q, k;
|
|
137680
|
+
const l = (k = (q = (b = h.current) == null ? void 0 : b.nativeElement) == null ? void 0 : q.getElementsByClassName("rc-virtual-list-holder-inner")) == null ? void 0 : k[0], _ = l == null ? void 0 : l.firstChild, y = (D) => {
|
|
137681
137681
|
if (D.key === "ArrowDown") {
|
|
137682
137682
|
_ && (_.focus(), m(_)), D.preventDefault();
|
|
137683
137683
|
const f = d == null ? void 0 : d.nextElementSibling;
|
|
@@ -138046,7 +138046,7 @@ const zo = he({}), fn = _d(
|
|
|
138046
138046
|
assetDenom: e,
|
|
138047
138047
|
chainId: t,
|
|
138048
138048
|
tokenAmount: n
|
|
138049
|
-
}), y = re(zo), q = hc()(t),
|
|
138049
|
+
}), y = re(zo), q = hc()(t), k = Z(() => {
|
|
138050
138050
|
const g = Object.values(y);
|
|
138051
138051
|
switch (m) {
|
|
138052
138052
|
case "source":
|
|
@@ -138079,27 +138079,27 @@ const zo = he({}), fn = _d(
|
|
|
138079
138079
|
m
|
|
138080
138080
|
]), D = Z(() => {
|
|
138081
138081
|
const g = m === "destination" && a, v = g ? ({ children: O }) => /* @__PURE__ */ c.jsx(Y, { gap: 5, children: O }) : Pe.Fragment;
|
|
138082
|
-
if (
|
|
138082
|
+
if (k.address)
|
|
138083
138083
|
return /* @__PURE__ */ c.jsxs(v, { children: [
|
|
138084
|
-
/* @__PURE__ */ c.jsxs(rde, { onClick: () => zw(
|
|
138085
|
-
|
|
138084
|
+
/* @__PURE__ */ c.jsxs(rde, { onClick: () => zw(k.address), children: [
|
|
138085
|
+
k.image && /* @__PURE__ */ c.jsx(
|
|
138086
138086
|
"img",
|
|
138087
138087
|
{
|
|
138088
|
-
src:
|
|
138088
|
+
src: k.image,
|
|
138089
138089
|
style: {
|
|
138090
138090
|
height: "100%"
|
|
138091
138091
|
}
|
|
138092
138092
|
}
|
|
138093
138093
|
),
|
|
138094
|
-
/* @__PURE__ */ c.jsx(ode, { title:
|
|
138094
|
+
/* @__PURE__ */ c.jsx(ode, { title: k.address, children: $c(k.address) })
|
|
138095
138095
|
] }),
|
|
138096
138096
|
g && /* @__PURE__ */ c.jsx(Cn, { align: "center", onClick: a, children: /* @__PURE__ */ c.jsx(Rw, { color: l.primary.text.lowContrast }) })
|
|
138097
138097
|
] });
|
|
138098
138098
|
}, [
|
|
138099
138099
|
m,
|
|
138100
138100
|
a,
|
|
138101
|
-
|
|
138102
|
-
|
|
138101
|
+
k.address,
|
|
138102
|
+
k.image,
|
|
138103
138103
|
l.primary.text.lowContrast
|
|
138104
138104
|
]);
|
|
138105
138105
|
return /* @__PURE__ */ c.jsxs(Y, { gap: 15, align: "center", ...h, children: [
|
|
@@ -138296,7 +138296,7 @@ const zo = he({}), fn = _d(
|
|
|
138296
138296
|
chainType: o,
|
|
138297
138297
|
isConnectEco: i
|
|
138298
138298
|
}) => {
|
|
138299
|
-
var q,
|
|
138299
|
+
var q, k;
|
|
138300
138300
|
const d = je(), m = Qe(), h = me(zo), l = rD({
|
|
138301
138301
|
mutationKey: ["connectWallet"],
|
|
138302
138302
|
mutationFn: async (D) => {
|
|
@@ -138431,7 +138431,7 @@ const zo = he({}), fn = _d(
|
|
|
138431
138431
|
l.isError,
|
|
138432
138432
|
l.isPending,
|
|
138433
138433
|
(q = l.variables) == null ? void 0 : q.walletInfo.logo,
|
|
138434
|
-
(
|
|
138434
|
+
(k = l.variables) == null ? void 0 : k.walletPrettyName,
|
|
138435
138435
|
y,
|
|
138436
138436
|
_,
|
|
138437
138437
|
d.primary.text.lowContrast,
|
|
@@ -158668,11 +158668,11 @@ function cE(e) {
|
|
|
158668
158668
|
if (typeof b == "string")
|
|
158669
158669
|
return b;
|
|
158670
158670
|
const q = [];
|
|
158671
|
-
for (let
|
|
158672
|
-
const D = y.charAt(
|
|
158671
|
+
for (let k = 0; k < y.length; ++k) {
|
|
158672
|
+
const D = y.charAt(k), f = iE[D];
|
|
158673
158673
|
if (f === void 0)
|
|
158674
158674
|
return "Unknown character " + D;
|
|
158675
|
-
b = xc(b) ^ f, !(
|
|
158675
|
+
b = xc(b) ^ f, !(k + 6 >= y.length) && q.push(f);
|
|
158676
158676
|
}
|
|
158677
158677
|
return b !== n ? "Invalid checksum for " + i : { prefix: _, words: q };
|
|
158678
158678
|
}
|
|
@@ -158783,12 +158783,12 @@ const mE = {
|
|
|
158783
158783
|
console.error("Prax wallet is not supported for connect");
|
|
158784
158784
|
},
|
|
158785
158785
|
getAddress: async ({ praxWallet: q }) => {
|
|
158786
|
-
const
|
|
158786
|
+
const k = q == null ? void 0 : q.index, D = q == null ? void 0 : q.sourceChainID, v = DD("chrome-extension://lkpmkhpnhknhmibgnmmhdhgdilepfghe");
|
|
158787
158787
|
try {
|
|
158788
158788
|
await v.connect();
|
|
158789
158789
|
const B = await v.service(BD).ephemeralAddress({
|
|
158790
158790
|
addressIndex: {
|
|
158791
|
-
account:
|
|
158791
|
+
account: k || 0
|
|
158792
158792
|
}
|
|
158793
158793
|
});
|
|
158794
158794
|
if (!B.address) throw new Error("No address found");
|
|
@@ -158824,7 +158824,7 @@ const mE = {
|
|
|
158824
158824
|
}), t({ walletName: b, chainType: "cosmos" });
|
|
158825
158825
|
} else B && i && v && t({ walletName: b, chainType: "cosmos" });
|
|
158826
158826
|
return (await od(b).getKey(h)).bech32Address;
|
|
158827
|
-
},
|
|
158827
|
+
}, k = mA(b), D = (b === qe.KEPLR ? roe : ioe).filter(
|
|
158828
158828
|
(v) => (e == null ? void 0 : e.filter((O) => O.chainType === "cosmos").map((O) => O.chainID).includes(v)) && dA.map((O) => O.chainId).includes(v)
|
|
158829
158829
|
), f = async () => {
|
|
158830
158830
|
const v = D.map(
|
|
@@ -158836,10 +158836,10 @@ const mE = {
|
|
|
158836
158836
|
return await Promise.all(v), Promise.resolve();
|
|
158837
158837
|
}, g = {
|
|
158838
158838
|
walletName: b,
|
|
158839
|
-
walletPrettyName:
|
|
158839
|
+
walletPrettyName: k == null ? void 0 : k.name,
|
|
158840
158840
|
walletChainType: "cosmos",
|
|
158841
158841
|
walletInfo: {
|
|
158842
|
-
logo:
|
|
158842
|
+
logo: k == null ? void 0 : k.imgSrc
|
|
158843
158843
|
},
|
|
158844
158844
|
connectEco: async () => {
|
|
158845
158845
|
await f(), t({ walletName: b, chainType: "cosmos" });
|
|
@@ -158932,43 +158932,43 @@ const mE = {
|
|
|
158932
158932
|
const b = y === "pacific-1";
|
|
158933
158933
|
b && (y = Zd.id.toString());
|
|
158934
158934
|
const q = [];
|
|
158935
|
-
for (const
|
|
158936
|
-
if (q.findIndex((v) => v.walletName ===
|
|
158935
|
+
for (const k of h) {
|
|
158936
|
+
if (q.findIndex((v) => v.walletName === k.id) !== -1)
|
|
158937
158937
|
continue;
|
|
158938
158938
|
const f = async ({
|
|
158939
158939
|
signRequired: v
|
|
158940
158940
|
}) => {
|
|
158941
158941
|
var O;
|
|
158942
|
-
if (v && i && d !== Number(y) &&
|
|
158943
|
-
return await ((O =
|
|
158942
|
+
if (v && i && d !== Number(y) && k.id === (a == null ? void 0 : a.id))
|
|
158943
|
+
return await ((O = k == null ? void 0 : k.switchChain) == null ? void 0 : O.call(k, {
|
|
158944
158944
|
chainId: Number(y)
|
|
158945
158945
|
})), o;
|
|
158946
|
-
if (
|
|
158946
|
+
if (k.id !== (a == null ? void 0 : a.id) || !i) {
|
|
158947
158947
|
const B = await m({
|
|
158948
|
-
connector:
|
|
158948
|
+
connector: k,
|
|
158949
158949
|
chainId: Number(y)
|
|
158950
158950
|
});
|
|
158951
|
-
return s({ walletName:
|
|
158952
|
-
} else o && i && v && s({ walletName:
|
|
158951
|
+
return s({ walletName: k.id, chainType: "evm" }), B.accounts[0];
|
|
158952
|
+
} else o && i && v && s({ walletName: k.id, chainType: "evm" });
|
|
158953
158953
|
return o;
|
|
158954
158954
|
}, g = {
|
|
158955
|
-
walletName:
|
|
158956
|
-
walletPrettyName:
|
|
158955
|
+
walletName: k.id,
|
|
158956
|
+
walletPrettyName: k.name,
|
|
158957
158957
|
walletChainType: "evm",
|
|
158958
158958
|
walletInfo: {
|
|
158959
|
-
logo:
|
|
158959
|
+
logo: k.icon
|
|
158960
158960
|
},
|
|
158961
158961
|
connectEco: async () => {
|
|
158962
158962
|
var v;
|
|
158963
|
-
if (i && d !== 1 &&
|
|
158964
|
-
await ((v =
|
|
158963
|
+
if (i && d !== 1 && k.id === (a == null ? void 0 : a.id)) {
|
|
158964
|
+
await ((v = k == null ? void 0 : k.switchChain) == null ? void 0 : v.call(k, {
|
|
158965
158965
|
chainId: 1
|
|
158966
158966
|
}));
|
|
158967
158967
|
return;
|
|
158968
158968
|
}
|
|
158969
|
-
i &&
|
|
158969
|
+
i && k.id !== (a == null ? void 0 : a.id) && await (l == null ? void 0 : l.disconnect());
|
|
158970
158970
|
try {
|
|
158971
|
-
await m({ connector:
|
|
158971
|
+
await m({ connector: k, chainId: 1 }), s({ walletName: k.id, chainType: "evm" });
|
|
158972
158972
|
const O = e == null ? void 0 : e.find((M) => M.chainID === "1"), B = n == null ? void 0 : n.find((M) => M.denom === "ethereum-native");
|
|
158973
158973
|
t({
|
|
158974
158974
|
chainID: O == null ? void 0 : O.chainID,
|
|
@@ -158981,15 +158981,15 @@ const mE = {
|
|
|
158981
158981
|
},
|
|
158982
158982
|
connect: async () => {
|
|
158983
158983
|
var v;
|
|
158984
|
-
if (i && d !== Number(y) &&
|
|
158985
|
-
await ((v =
|
|
158984
|
+
if (i && d !== Number(y) && k.id === (a == null ? void 0 : a.id)) {
|
|
158985
|
+
await ((v = k == null ? void 0 : k.switchChain) == null ? void 0 : v.call(k, {
|
|
158986
158986
|
chainId: Number(y)
|
|
158987
158987
|
}));
|
|
158988
158988
|
return;
|
|
158989
158989
|
}
|
|
158990
|
-
i &&
|
|
158990
|
+
i && k.id !== (a == null ? void 0 : a.id) && await (l == null ? void 0 : l.disconnect());
|
|
158991
158991
|
try {
|
|
158992
|
-
await m({ connector:
|
|
158992
|
+
await m({ connector: k, chainId: Number(y) }), s({ walletName: k.id, chainType: "evm" });
|
|
158993
158993
|
} catch (O) {
|
|
158994
158994
|
throw console.error(O), O;
|
|
158995
158995
|
}
|
|
@@ -159004,7 +159004,7 @@ const mE = {
|
|
|
159004
159004
|
disconnect: async () => {
|
|
159005
159005
|
await (l == null ? void 0 : l.disconnect()), s(void 0);
|
|
159006
159006
|
},
|
|
159007
|
-
isWalletConnected:
|
|
159007
|
+
isWalletConnected: k.id === (a == null ? void 0 : a.id)
|
|
159008
159008
|
};
|
|
159009
159009
|
b && (g.getAddress = async ({ signRequired: v, context: O }) => {
|
|
159010
159010
|
const B = await f({ signRequired: v, context: O }), M = gD({
|
|
@@ -159112,7 +159112,7 @@ const mE = {
|
|
|
159112
159112
|
}, [e, s, a, o, m]);
|
|
159113
159113
|
}, bE = Lc((e) => {
|
|
159114
159114
|
var O;
|
|
159115
|
-
const { theme: n, signRequired: t, chainId: s } = e, a = Qe(), { data: o } = re(We), i = o == null ? void 0 : o.find((B) => B.chainID === s), d = i == null ? void 0 : i.prettyName, m = i == null ? void 0 : i.logoURI, [h, l] = Fe(!1), [_, y] = Fe(""), b = I5({ chainID: s, destinationWalletList: !0 }), q = me(zo),
|
|
159115
|
+
const { theme: n, signRequired: t, chainId: s } = e, a = Qe(), { data: o } = re(We), i = o == null ? void 0 : o.find((B) => B.chainID === s), d = i == null ? void 0 : i.prettyName, m = i == null ? void 0 : i.logoURI, [h, l] = Fe(!1), [_, y] = Fe(""), b = I5({ chainID: s, destinationWalletList: !0 }), q = me(zo), k = [
|
|
159116
159116
|
...b,
|
|
159117
159117
|
{
|
|
159118
159118
|
onSelect: () => l(!0),
|
|
@@ -159216,7 +159216,7 @@ const mE = {
|
|
|
159216
159216
|
kj,
|
|
159217
159217
|
{
|
|
159218
159218
|
title: "Destination wallet",
|
|
159219
|
-
walletList: t ? b :
|
|
159219
|
+
walletList: t ? b : k,
|
|
159220
159220
|
onClickBackButton: () => a.remove(),
|
|
159221
159221
|
chainId: s,
|
|
159222
159222
|
chainType: i == null ? void 0 : i.chainType,
|
|
@@ -159294,7 +159294,7 @@ const P4e = new Intl.NumberFormat("en-US", {
|
|
|
159294
159294
|
chainId: s,
|
|
159295
159295
|
tokenAmount: n
|
|
159296
159296
|
}), l = re(zo), y = hc()(s), b = Z(() => {
|
|
159297
|
-
const
|
|
159297
|
+
const k = Object.values(l);
|
|
159298
159298
|
switch (d) {
|
|
159299
159299
|
case "source":
|
|
159300
159300
|
return {
|
|
@@ -159302,7 +159302,7 @@ const P4e = new Intl.NumberFormat("en-US", {
|
|
|
159302
159302
|
image: y == null ? void 0 : y.wallet.logo
|
|
159303
159303
|
};
|
|
159304
159304
|
case "destination": {
|
|
159305
|
-
const D =
|
|
159305
|
+
const D = k[k.length - 1];
|
|
159306
159306
|
return {
|
|
159307
159307
|
address: D == null ? void 0 : D.address,
|
|
159308
159308
|
image: (D == null ? void 0 : D.source) === "wallet" && D.wallet.walletInfo.logo || void 0
|
|
@@ -159400,10 +159400,10 @@ const P4e = new Intl.NumberFormat("en-US", {
|
|
|
159400
159400
|
tokenAmount: d.amountOut,
|
|
159401
159401
|
chainId: d.toChainID ?? d.chainID,
|
|
159402
159402
|
usdValue: o == null ? void 0 : o.usdAmountOut
|
|
159403
|
-
},
|
|
159404
|
-
if (!
|
|
159403
|
+
}, k = d.signRequired, D = (B = m == null ? void 0 : m[i.transferIndex]) == null ? void 0 : B.fromExplorerLink, f = (M = m == null ? void 0 : m[d.transferIndex]) == null ? void 0 : M.toExplorerLink, g = Z(() => {
|
|
159404
|
+
if (!k && s === co.ready)
|
|
159405
159405
|
return t;
|
|
159406
|
-
}, [
|
|
159406
|
+
}, [k, s, t]);
|
|
159407
159407
|
return /* @__PURE__ */ c.jsxs(L4e, { justify: "space-between", children: [
|
|
159408
159408
|
/* @__PURE__ */ c.jsx(
|
|
159409
159409
|
A8,
|
|
@@ -159565,14 +159565,14 @@ function K4e(e) {
|
|
|
159565
159565
|
let d = "";
|
|
159566
159566
|
t ? d = "axelarTransfer" : s ? d = "ibcTransfer" : a ? d = "cctpTransfer" : o ? d = "hyperlaneTransfer" : i && (d = "opInitTransfer");
|
|
159567
159567
|
const m = (y) => {
|
|
159568
|
-
var b, q,
|
|
159568
|
+
var b, q, k, D, f, g;
|
|
159569
159569
|
switch (d) {
|
|
159570
159570
|
case "ibcTransfer":
|
|
159571
159571
|
return y === "send" ? (b = s.packetTXs.sendTx) == null ? void 0 : b.explorerLink : (q = s.packetTXs.receiveTx) == null ? void 0 : q.explorerLink;
|
|
159572
159572
|
case "axelarTransfer":
|
|
159573
159573
|
return t.axelarScanLink;
|
|
159574
159574
|
default:
|
|
159575
|
-
return y === "send" ? (D = (
|
|
159575
|
+
return y === "send" ? (D = (k = n[d]) == null ? void 0 : k.txs.sendTx) == null ? void 0 : D.explorerLink : (g = (f = n[d]) == null ? void 0 : f.txs.receiveTx) == null ? void 0 : g.explorerLink;
|
|
159576
159576
|
}
|
|
159577
159577
|
}, h = {
|
|
159578
159578
|
...s,
|
|
@@ -159651,7 +159651,7 @@ const J4e = {
|
|
|
159651
159651
|
...v,
|
|
159652
159652
|
[g]: !1
|
|
159653
159653
|
}));
|
|
159654
|
-
}, l = e[0], y = e[e.length - 1].signRequired, b = n == null ? void 0 : n.transferEvents, q = s === co.confirmed ? "completed" : (D = b == null ? void 0 : b[0]) == null ? void 0 : D.status,
|
|
159654
|
+
}, l = e[0], y = e[e.length - 1].signRequired, b = n == null ? void 0 : n.transferEvents, q = s === co.confirmed ? "completed" : (D = b == null ? void 0 : b[0]) == null ? void 0 : D.status, k = Z(() => {
|
|
159655
159655
|
if (!y && s === co.ready)
|
|
159656
159656
|
return t;
|
|
159657
159657
|
}, [y, s, t]);
|
|
@@ -159669,7 +159669,7 @@ const J4e = {
|
|
|
159669
159669
|
}
|
|
159670
159670
|
),
|
|
159671
159671
|
e.map((g, v) => {
|
|
159672
|
-
var S,
|
|
159672
|
+
var S, x, C;
|
|
159673
159673
|
const O = Z4e[g.type], M = (() => {
|
|
159674
159674
|
var P, V;
|
|
159675
159675
|
const F = (V = (P = g.swapVenues) == null ? void 0 : P[0]) == null ? void 0 : V.chainID, A = g.bridgeID, E = o == null ? void 0 : o.find((X) => X.id === A), T = a == null ? void 0 : a.find((X) => X.chainID === F);
|
|
@@ -159681,7 +159681,7 @@ const J4e = {
|
|
|
159681
159681
|
tokenAmount: g.amountOut,
|
|
159682
159682
|
denom: g.denomOut,
|
|
159683
159683
|
chainId: g.toChainID ?? g.chainID
|
|
159684
|
-
}, u = g.isSwap ? (S = b == null ? void 0 : b[g.transferIndex]) == null ? void 0 : S.fromExplorerLink : (
|
|
159684
|
+
}, u = g.isSwap ? (S = b == null ? void 0 : b[g.transferIndex]) == null ? void 0 : S.fromExplorerLink : (x = b == null ? void 0 : b[g.transferIndex]) == null ? void 0 : x.toExplorerLink, w = s === co.confirmed ? "completed" : (C = b == null ? void 0 : b[g.transferIndex]) == null ? void 0 : C.status;
|
|
159685
159685
|
return /* @__PURE__ */ c.jsxs(Pe.Fragment, { children: [
|
|
159686
159686
|
/* @__PURE__ */ c.jsxs(axe, { style: { height: "25px", position: "relative" }, align: "center", children: [
|
|
159687
159687
|
/* @__PURE__ */ c.jsx(
|
|
@@ -159705,7 +159705,7 @@ const J4e = {
|
|
|
159705
159705
|
{
|
|
159706
159706
|
...p,
|
|
159707
159707
|
index: v,
|
|
159708
|
-
onClickEditDestinationWallet:
|
|
159708
|
+
onClickEditDestinationWallet: k,
|
|
159709
159709
|
context: v === e.length - 1 ? "destination" : "intermediary",
|
|
159710
159710
|
isSignRequired: N == null ? void 0 : N.signRequired,
|
|
159711
159711
|
status: w,
|
|
@@ -159765,7 +159765,7 @@ const J4e = {
|
|
|
159765
159765
|
const q = s == null ? void 0 : s.find((O) => O.chainID === y);
|
|
159766
159766
|
if (!q)
|
|
159767
159767
|
return;
|
|
159768
|
-
const
|
|
159768
|
+
const k = h == null ? void 0 : h.includes(y);
|
|
159769
159769
|
switch (q.chainType) {
|
|
159770
159770
|
case "cosmos": {
|
|
159771
159771
|
const B = o(y).find((M) => {
|
|
@@ -159775,14 +159775,14 @@ const J4e = {
|
|
|
159775
159775
|
if (!B) {
|
|
159776
159776
|
if (!_) return;
|
|
159777
159777
|
m.show({
|
|
159778
|
-
signRequired:
|
|
159778
|
+
signRequired: k,
|
|
159779
159779
|
chainId: y
|
|
159780
159780
|
});
|
|
159781
159781
|
return;
|
|
159782
159782
|
}
|
|
159783
159783
|
try {
|
|
159784
159784
|
const M = await ((f = B == null ? void 0 : B.getAddress) == null ? void 0 : f.call(B, {
|
|
159785
|
-
signRequired:
|
|
159785
|
+
signRequired: k
|
|
159786
159786
|
}));
|
|
159787
159787
|
if (!M)
|
|
159788
159788
|
return;
|
|
@@ -159814,14 +159814,14 @@ const J4e = {
|
|
|
159814
159814
|
if (!B) {
|
|
159815
159815
|
if (!_) return;
|
|
159816
159816
|
m.show({
|
|
159817
|
-
signRequired:
|
|
159817
|
+
signRequired: k,
|
|
159818
159818
|
chainId: y
|
|
159819
159819
|
});
|
|
159820
159820
|
return;
|
|
159821
159821
|
}
|
|
159822
159822
|
try {
|
|
159823
159823
|
const M = await ((g = B == null ? void 0 : B.getAddress) == null ? void 0 : g.call(B, {
|
|
159824
|
-
signRequired:
|
|
159824
|
+
signRequired: k
|
|
159825
159825
|
}));
|
|
159826
159826
|
if (!M)
|
|
159827
159827
|
return;
|
|
@@ -159853,14 +159853,14 @@ const J4e = {
|
|
|
159853
159853
|
if (!B) {
|
|
159854
159854
|
if (!_) return;
|
|
159855
159855
|
m.show({
|
|
159856
|
-
signRequired:
|
|
159856
|
+
signRequired: k,
|
|
159857
159857
|
chainId: y
|
|
159858
159858
|
});
|
|
159859
159859
|
return;
|
|
159860
159860
|
}
|
|
159861
159861
|
try {
|
|
159862
159862
|
const M = await ((v = B == null ? void 0 : B.getAddress) == null ? void 0 : v.call(B, {
|
|
159863
|
-
signRequired:
|
|
159863
|
+
signRequired: k
|
|
159864
159864
|
}));
|
|
159865
159865
|
if (!M)
|
|
159866
159866
|
return;
|
|
@@ -159913,11 +159913,11 @@ const J4e = {
|
|
|
159913
159913
|
chainID: f.chainID,
|
|
159914
159914
|
txHash: f.txHash
|
|
159915
159915
|
}))
|
|
159916
|
-
), y = X4e(_), b = _.every((f) => f.state === "STATE_COMPLETED_SUCCESS" || f.state === "STATE_COMPLETED_ERROR" || f.state === "STATE_ABANDONED"), q = y.every((f) => f.status === "completed"),
|
|
159917
|
-
|
|
159916
|
+
), y = X4e(_), b = _.every((f) => f.state === "STATE_COMPLETED_SUCCESS" || f.state === "STATE_COMPLETED_ERROR" || f.state === "STATE_ABANDONED"), q = y.every((f) => f.status === "completed"), k = y.length > 0 && h === _.length && b;
|
|
159917
|
+
k && o(!0);
|
|
159918
159918
|
const D = {
|
|
159919
|
-
isSuccess: q &&
|
|
159920
|
-
isSettled:
|
|
159919
|
+
isSuccess: q && k,
|
|
159920
|
+
isSettled: k,
|
|
159921
159921
|
transferEvents: y
|
|
159922
159922
|
};
|
|
159923
159923
|
return d(D), D;
|
|
@@ -160003,7 +160003,7 @@ const ixe = () => {
|
|
|
160003
160003
|
wE({
|
|
160004
160004
|
statusData: y
|
|
160005
160005
|
});
|
|
160006
|
-
const b = Z(() => t != null && t.operations ? Cm(t.operations) : [], [t == null ? void 0 : t.operations]), q = b[b.length - 1],
|
|
160006
|
+
const b = Z(() => t != null && t.operations ? Cm(t.operations) : [], [t == null ? void 0 : t.operations]), q = b[b.length - 1], k = Z(() => {
|
|
160007
160007
|
var M;
|
|
160008
160008
|
if (!i) return;
|
|
160009
160009
|
const v = t == null ? void 0 : t.requiredChainAddresses;
|
|
@@ -160016,7 +160016,7 @@ const ixe = () => {
|
|
|
160016
160016
|
), B = (M = i[v.length - 1]) == null ? void 0 : M.address;
|
|
160017
160017
|
return s === "completed" ? 5 : s === "pending" ? 3 : (o == null ? void 0 : o.status) !== "completed" && o ? 6 : s === "signing" ? 4 : B ? O ? 2 : 0 : 1;
|
|
160018
160018
|
}, [i, o, s, t == null ? void 0 : t.requiredChainAddresses]);
|
|
160019
|
-
rxe(
|
|
160019
|
+
rxe(k);
|
|
160020
160020
|
const D = Z(() => {
|
|
160021
160021
|
const v = ((t == null ? void 0 : t.txsRequired) ?? 0) - (a == null ? void 0 : a.length);
|
|
160022
160022
|
if (v > 1)
|
|
@@ -160029,7 +160029,7 @@ const ixe = () => {
|
|
|
160029
160029
|
"still required"
|
|
160030
160030
|
] });
|
|
160031
160031
|
}, [t == null ? void 0 : t.txsRequired, a == null ? void 0 : a.length]), f = Z(() => {
|
|
160032
|
-
switch (
|
|
160032
|
+
switch (k) {
|
|
160033
160033
|
case 0:
|
|
160034
160034
|
return /* @__PURE__ */ c.jsx(
|
|
160035
160035
|
De,
|
|
@@ -160091,7 +160091,7 @@ const ixe = () => {
|
|
|
160091
160091
|
}
|
|
160092
160092
|
);
|
|
160093
160093
|
}
|
|
160094
|
-
}, [d, q.signRequired, _, t == null ? void 0 : t.destAssetChainID, t == null ? void 0 : t.estimatedRouteDurationSeconds, n, l,
|
|
160094
|
+
}, [d, q.signRequired, _, t == null ? void 0 : t.destAssetChainID, t == null ? void 0 : t.estimatedRouteDurationSeconds, n, l, k, e.success.text]), g = m ? U4e : Q4e;
|
|
160095
160095
|
return /* @__PURE__ */ c.jsxs(be, { gap: 5, children: [
|
|
160096
160096
|
/* @__PURE__ */ c.jsx(
|
|
160097
160097
|
no,
|
|
@@ -160116,7 +160116,7 @@ const ixe = () => {
|
|
|
160116
160116
|
}),
|
|
160117
160117
|
operations: b,
|
|
160118
160118
|
statusData: y,
|
|
160119
|
-
swapExecutionState:
|
|
160119
|
+
swapExecutionState: k
|
|
160120
160120
|
}
|
|
160121
160121
|
),
|
|
160122
160122
|
f,
|
|
@@ -160153,10 +160153,10 @@ function dxe(e, n = 500, t = !1) {
|
|
|
160153
160153
|
q();
|
|
160154
160154
|
return;
|
|
160155
160155
|
}
|
|
160156
|
-
const
|
|
160156
|
+
const k = setTimeout(() => {
|
|
160157
160157
|
q();
|
|
160158
160158
|
}, n);
|
|
160159
|
-
h(s,
|
|
160159
|
+
h(s, k);
|
|
160160
160160
|
}
|
|
160161
160161
|
), d = he(null, (m, h, l) => {
|
|
160162
160162
|
clearTimeout(m(s)), h(o, !1);
|
|
@@ -160374,7 +160374,7 @@ const xE = dxe(void 0), N5 = cc((e) => {
|
|
|
160374
160374
|
if (!t) return;
|
|
160375
160375
|
let g = f.target.value;
|
|
160376
160376
|
g.match(/^[.,]/) && (g = `0.${g}`), g = g.replace(/^[0]{2,}/, "0"), g = g.replace(/[^\d.,]/g, ""), g = g.replace(/[.]{2,}/g, "."), g = g.replace(/[,]{2,}/g, ","), t == null || t(nm(Km(g)));
|
|
160377
|
-
},
|
|
160377
|
+
}, k = (f) => {
|
|
160378
160378
|
if (!t) return;
|
|
160379
160379
|
let g;
|
|
160380
160380
|
switch (f.key) {
|
|
@@ -160416,7 +160416,7 @@ const xE = dxe(void 0), N5 = cc((e) => {
|
|
|
160416
160416
|
placeholder: "0",
|
|
160417
160417
|
inputMode: "numeric",
|
|
160418
160418
|
onChange: q,
|
|
160419
|
-
onKeyDown:
|
|
160419
|
+
onKeyDown: k,
|
|
160420
160420
|
isWaitingToUpdateInputValue: d
|
|
160421
160421
|
}
|
|
160422
160422
|
),
|
|
@@ -160585,22 +160585,22 @@ const xE = dxe(void 0), N5 = cc((e) => {
|
|
|
160585
160585
|
background-color: ${({ theme: e }) => e.primary.background.normal};
|
|
160586
160586
|
`, Exe = Lc(
|
|
160587
160587
|
(e) => {
|
|
160588
|
-
const n = Qe(), { onSelect: t, selectedAsset: s, networkSelection: a } = e, { data: o, isLoading: i } = re($o), { data: d } = re(We), { isLoading: m } = re(We), h = i || m, l = kE(), [_, y] = Fe(!0), [b, q] = Fe(""), [
|
|
160588
|
+
const n = Qe(), { onSelect: t, selectedAsset: s, networkSelection: a } = e, { data: o, isLoading: i } = re($o), { data: d } = re(We), { isLoading: m } = re(We), h = i || m, l = kE(), [_, y] = Fe(!0), [b, q] = Fe(""), [k, D] = Fe(null), f = () => {
|
|
160589
160589
|
q("");
|
|
160590
160590
|
}, g = Ie(
|
|
160591
|
-
(
|
|
160592
|
-
if (
|
|
160593
|
-
if (Ch(
|
|
160594
|
-
|
|
160591
|
+
(x) => {
|
|
160592
|
+
if (x) {
|
|
160593
|
+
if (Ch(x)) {
|
|
160594
|
+
x.assets.length === 1 ? t(x.assets[0]) : D(x), f();
|
|
160595
160595
|
return;
|
|
160596
160596
|
}
|
|
160597
|
-
t(
|
|
160597
|
+
t(x), f();
|
|
160598
160598
|
}
|
|
160599
160599
|
},
|
|
160600
160600
|
[t]
|
|
160601
160601
|
), v = Z(() => {
|
|
160602
160602
|
if (!o) return;
|
|
160603
|
-
const
|
|
160603
|
+
const x = [], C = (F) => F.reduce(
|
|
160604
160604
|
(A, E) => {
|
|
160605
160605
|
const T = l(E.chainID, E.denom);
|
|
160606
160606
|
return T && (A.totalAmount += Number(
|
|
@@ -160613,14 +160613,14 @@ const xE = dxe(void 0), N5 = cc((e) => {
|
|
|
160613
160613
|
{ totalAmount: 0, totalUsd: 0 }
|
|
160614
160614
|
);
|
|
160615
160615
|
return o.forEach((F) => {
|
|
160616
|
-
const A =
|
|
160616
|
+
const A = x.find(
|
|
160617
160617
|
(E) => E.id === F.recommendedSymbol
|
|
160618
160618
|
);
|
|
160619
160619
|
A ? (A.assets.push(F), A.chains.push({
|
|
160620
160620
|
chainID: F.chainID,
|
|
160621
160621
|
chainName: F.chainName,
|
|
160622
160622
|
originChainID: F.originChainID
|
|
160623
|
-
})) :
|
|
160623
|
+
})) : x.push({
|
|
160624
160624
|
id: F.recommendedSymbol || F.symbol || F.denom,
|
|
160625
160625
|
chains: [
|
|
160626
160626
|
{
|
|
@@ -160633,42 +160633,42 @@ const xE = dxe(void 0), N5 = cc((e) => {
|
|
|
160633
160633
|
totalAmount: 0,
|
|
160634
160634
|
totalUsd: 0
|
|
160635
160635
|
});
|
|
160636
|
-
}),
|
|
160636
|
+
}), x.forEach((F) => {
|
|
160637
160637
|
const A = C(F.assets);
|
|
160638
160638
|
F.totalAmount = A.totalAmount, F.totalUsd = A.totalUsd;
|
|
160639
|
-
}),
|
|
160639
|
+
}), x;
|
|
160640
160640
|
}, [o, l]), O = Z(() => {
|
|
160641
|
-
const
|
|
160642
|
-
if (
|
|
160641
|
+
const x = (k == null ? void 0 : k.assets[0]) || s;
|
|
160642
|
+
if (x)
|
|
160643
160643
|
return v == null ? void 0 : v.find(
|
|
160644
|
-
(C) => C.id ===
|
|
160644
|
+
(C) => C.id === x.recommendedSymbol
|
|
160645
160645
|
);
|
|
160646
160646
|
}, [
|
|
160647
|
-
|
|
160647
|
+
k == null ? void 0 : k.assets,
|
|
160648
160648
|
s,
|
|
160649
160649
|
v
|
|
160650
160650
|
]), B = Z(() => {
|
|
160651
160651
|
if (v)
|
|
160652
160652
|
return o6(v, b, {
|
|
160653
160653
|
keys: ["id"]
|
|
160654
|
-
}).sort((
|
|
160654
|
+
}).sort((x, C) => {
|
|
160655
160655
|
const F = ["ATOM", "USDC", "USDT", "ETH", "TIA", "OSMO", "NTRN", "INJ"];
|
|
160656
|
-
if (
|
|
160657
|
-
const A = F.indexOf(
|
|
160656
|
+
if (x.totalUsd === 0 && C.totalUsd === 0) {
|
|
160657
|
+
const A = F.indexOf(x.id), E = F.indexOf(C.id);
|
|
160658
160658
|
if (A !== -1 && E !== -1)
|
|
160659
160659
|
return A - E;
|
|
160660
160660
|
if (A !== -1) return -1;
|
|
160661
160661
|
if (E !== -1) return 1;
|
|
160662
160662
|
}
|
|
160663
|
-
return
|
|
160663
|
+
return x.totalUsd < C.totalUsd ? 1 : x.totalUsd > C.totalUsd ? -1 : 0;
|
|
160664
160664
|
});
|
|
160665
160665
|
}, [v, b]), M = Z(() => {
|
|
160666
160666
|
if (!O || !d) return;
|
|
160667
|
-
const
|
|
160667
|
+
const x = O.assets.map((C) => ({
|
|
160668
160668
|
...d.find((A) => A.chainID === C.chainID),
|
|
160669
160669
|
asset: C
|
|
160670
160670
|
})).filter((C) => C);
|
|
160671
|
-
return o6(
|
|
160671
|
+
return o6(x, b, {
|
|
160672
160672
|
keys: ["prettyName", "chainName", "chainID"]
|
|
160673
160673
|
}).sort((C, F) => {
|
|
160674
160674
|
const A = l(
|
|
@@ -160683,21 +160683,21 @@ const xE = dxe(void 0), N5 = cc((e) => {
|
|
|
160683
160683
|
}, [d, l, b, O]);
|
|
160684
160684
|
an(() => {
|
|
160685
160685
|
if (!h && o) {
|
|
160686
|
-
const
|
|
160686
|
+
const x = setTimeout(() => {
|
|
160687
160687
|
y(!1);
|
|
160688
160688
|
}, 100);
|
|
160689
|
-
return () => clearTimeout(
|
|
160689
|
+
return () => clearTimeout(x);
|
|
160690
160690
|
}
|
|
160691
160691
|
}, [h, o]), an(() => {
|
|
160692
160692
|
q("");
|
|
160693
160693
|
}, [n.visible]);
|
|
160694
|
-
const N = (
|
|
160695
|
-
q(
|
|
160694
|
+
const N = (x) => {
|
|
160695
|
+
q(x);
|
|
160696
160696
|
}, p = Ie(
|
|
160697
|
-
(
|
|
160697
|
+
(x, C) => /* @__PURE__ */ c.jsx(
|
|
160698
160698
|
mxe,
|
|
160699
160699
|
{
|
|
160700
|
-
item:
|
|
160700
|
+
item: x,
|
|
160701
160701
|
index: C,
|
|
160702
160702
|
onSelect: g,
|
|
160703
160703
|
skeleton: /* @__PURE__ */ c.jsx(C8, {}),
|
|
@@ -160705,10 +160705,10 @@ const xE = dxe(void 0), N5 = cc((e) => {
|
|
|
160705
160705
|
}
|
|
160706
160706
|
),
|
|
160707
160707
|
[e.context, g]
|
|
160708
|
-
), u = Z(() => a ? e.context === "source" ? M == null ? void 0 : M.filter((
|
|
160709
|
-
|
|
160710
|
-
}, S = (
|
|
160711
|
-
|
|
160708
|
+
), u = Z(() => a ? e.context === "source" ? M == null ? void 0 : M.filter((x) => !x.chainID.includes("penumbra")) : M : k ? e.context === "source" ? M == null ? void 0 : M.filter((x) => !x.chainID.includes("penumbra")) : M : B, [B, M, k, e.context, a]), w = () => {
|
|
160709
|
+
k === null ? n.remove() : D(null);
|
|
160710
|
+
}, S = (x) => {
|
|
160711
|
+
x.key === "Backspace" && k !== null && b === "" && D(null);
|
|
160712
160712
|
};
|
|
160713
160713
|
return /* @__PURE__ */ c.jsxs(Dxe, { children: [
|
|
160714
160714
|
/* @__PURE__ */ c.jsx(
|
|
@@ -160716,19 +160716,19 @@ const xE = dxe(void 0), N5 = cc((e) => {
|
|
|
160716
160716
|
{
|
|
160717
160717
|
onSearch: N,
|
|
160718
160718
|
onClickBack: w,
|
|
160719
|
-
asset: (
|
|
160719
|
+
asset: (k == null ? void 0 : k.assets[0]) || s,
|
|
160720
160720
|
searchTerm: b,
|
|
160721
160721
|
setSearchTerm: q,
|
|
160722
160722
|
onKeyDown: S
|
|
160723
160723
|
}
|
|
160724
160724
|
),
|
|
160725
|
-
_ || !B && !M ? /* @__PURE__ */ c.jsx(be, { children: Array.from({ length: 10 }, (
|
|
160725
|
+
_ || !B && !M ? /* @__PURE__ */ c.jsx(be, { children: Array.from({ length: 10 }, (x, C) => /* @__PURE__ */ c.jsx(C8, {}, C)) }) : /* @__PURE__ */ c.jsx(
|
|
160726
160726
|
Nw,
|
|
160727
160727
|
{
|
|
160728
160728
|
listItems: u ?? [],
|
|
160729
160729
|
height: 530,
|
|
160730
160730
|
itemHeight: 70,
|
|
160731
|
-
itemKey: (
|
|
160731
|
+
itemKey: (x) => Ch(x) ? `${x.id}` : `${x.chainID}-${x.asset.denom}`,
|
|
160732
160732
|
renderItem: p
|
|
160733
160733
|
}
|
|
160734
160734
|
)
|
|
@@ -160819,10 +160819,10 @@ const xE = dxe(void 0), N5 = cc((e) => {
|
|
|
160819
160819
|
formattedUsdAmount: O ? `${jo(O)}` : void 0
|
|
160820
160820
|
};
|
|
160821
160821
|
}
|
|
160822
|
-
}, [y]),
|
|
160822
|
+
}, [y]), k = (f = t == null ? void 0 : t.estimatedFees) == null ? void 0 : f.some(
|
|
160823
160823
|
(g) => g.feeType === "SMART_RELAY"
|
|
160824
160824
|
), D = Z(() => {
|
|
160825
|
-
if (!
|
|
160825
|
+
if (!k) return;
|
|
160826
160826
|
const g = t == null ? void 0 : t.estimatedFees.filter(
|
|
160827
160827
|
(N) => N.feeType === "SMART_RELAY"
|
|
160828
160828
|
);
|
|
@@ -160845,7 +160845,7 @@ const xE = dxe(void 0), N5 = cc((e) => {
|
|
|
160845
160845
|
formattedAssetAmount: `${M} ${g[0].originAsset.symbol}`,
|
|
160846
160846
|
formattedUsdAmount: `${jo(B)}`
|
|
160847
160847
|
};
|
|
160848
|
-
}, [
|
|
160848
|
+
}, [k, t == null ? void 0 : t.estimatedFees]);
|
|
160849
160849
|
return /* @__PURE__ */ c.jsxs(qxe, { gap: 20, children: [
|
|
160850
160850
|
/* @__PURE__ */ c.jsxs(be, { gap: 10, children: [
|
|
160851
160851
|
/* @__PURE__ */ c.jsxs(Y, { justify: "space-between", children: [
|
|
@@ -161055,7 +161055,7 @@ const xE = dxe(void 0), N5 = cc((e) => {
|
|
|
161055
161055
|
assetDenom: e == null ? void 0 : e.denom,
|
|
161056
161056
|
amount: e == null ? void 0 : e.amount,
|
|
161057
161057
|
chainId: e == null ? void 0 : e.chainID
|
|
161058
|
-
}), s = (i = (o = n == null ? void 0 : n.find((
|
|
161058
|
+
}), s = (i = (o = n == null ? void 0 : n.find((k) => k.chainID === (e == null ? void 0 : e.chainID))) == null ? void 0 : o.feeAssets) == null ? void 0 : i[0];
|
|
161059
161059
|
switch ((d = t == null ? void 0 : t.chain) == null ? void 0 : d.chainType) {
|
|
161060
161060
|
case "evm": {
|
|
161061
161061
|
if (((m = e == null ? void 0 : e.denom) == null ? void 0 : m.includes("-native")) && (e == null ? void 0 : e.originChainID) === (e == null ? void 0 : e.chainID))
|
|
@@ -161312,13 +161312,13 @@ const xE = dxe(void 0), N5 = cc((e) => {
|
|
|
161312
161312
|
});
|
|
161313
161313
|
}, Xxe = () => {
|
|
161314
161314
|
var ue, ve;
|
|
161315
|
-
const [e, n] = Fe(), [t, s] = Fe(!1), { data: a } = re(We), [o, i] = Ae(Ne), d = me(vd), m = me(xm), [h] = Ae(Gce), [l, _] = Ae(jn), [y] = Ae(Fo), [{ data: b }] = Ae($o), q = me(uo),
|
|
161315
|
+
const [e, n] = Fe(), [t, s] = Fe(!1), { data: a } = re(We), [o, i] = Ae(Ne), d = me(vd), m = me(xm), [h] = Ae(Gce), [l, _] = Ae(jn), [y] = Ae(Fo), [{ data: b }] = Ae($o), q = me(uo), k = Hxe(), D = me(tde), f = me(sn), { isLoading: g } = re(N5), {
|
|
161316
161316
|
data: v,
|
|
161317
161317
|
isError: O,
|
|
161318
161318
|
error: B
|
|
161319
161319
|
} = re(Wc), M = Qe(zxe), N = Qe(Exe), p = Qe(jE), u = Qe(DE), w = me(zo);
|
|
161320
161320
|
Kxe();
|
|
161321
|
-
const S = hc(),
|
|
161321
|
+
const S = hc(), x = S(o == null ? void 0 : o.chainID), { chainId: C, connector: F } = dm(), A = C ? (ue = S(String(C))) == null ? void 0 : ue.address : void 0, E = Ie(
|
|
161322
161322
|
(G, ne) => {
|
|
161323
161323
|
if (!(!G || !ne) && b)
|
|
161324
161324
|
return b.find((le) => le.denom === G && le.chainID === ne);
|
|
@@ -161381,14 +161381,14 @@ const xE = dxe(void 0), N5 = cc((e) => {
|
|
|
161381
161381
|
E,
|
|
161382
161382
|
_,
|
|
161383
161383
|
N
|
|
161384
|
-
]), X = Z(() =>
|
|
161384
|
+
]), X = Z(() => x != null && x.address ? o != null && o.chainID ? l != null && l.chainID ? !(o != null && o.amount) && !(l != null && l.amount) ? /* @__PURE__ */ c.jsx(
|
|
161385
161385
|
De,
|
|
161386
161386
|
{
|
|
161387
161387
|
label: "Please enter a valid amount",
|
|
161388
161388
|
icon: ae.swap,
|
|
161389
161389
|
disabled: !0
|
|
161390
161390
|
}
|
|
161391
|
-
) : h ? /* @__PURE__ */ c.jsx(De, { label: "Finding best route...", loading: !0 }) : O ? /* @__PURE__ */ c.jsx(De, { label: (B == null ? void 0 : B.message) ?? "No routes found", disabled: !0 }) : g ? /* @__PURE__ */ c.jsx(De, { label: "Fetching balances", loading: !0, icon: ae.swap }) :
|
|
161391
|
+
) : h ? /* @__PURE__ */ c.jsx(De, { label: "Finding best route...", loading: !0 }) : O ? /* @__PURE__ */ c.jsx(De, { label: (B == null ? void 0 : B.message) ?? "No routes found", disabled: !0 }) : g ? /* @__PURE__ */ c.jsx(De, { label: "Fetching balances", loading: !0, icon: ae.swap }) : k ? /* @__PURE__ */ c.jsx(De, { label: "Insufficient balance", disabled: !0, icon: ae.swap }) : /* @__PURE__ */ c.jsx(
|
|
161392
161392
|
De,
|
|
161393
161393
|
{
|
|
161394
161394
|
label: "Swap",
|
|
@@ -161443,10 +161443,10 @@ const xE = dxe(void 0), N5 = cc((e) => {
|
|
|
161443
161443
|
l == null ? void 0 : l.chainID,
|
|
161444
161444
|
l == null ? void 0 : l.amount,
|
|
161445
161445
|
h,
|
|
161446
|
-
|
|
161446
|
+
x == null ? void 0 : x.address,
|
|
161447
161447
|
O,
|
|
161448
161448
|
g,
|
|
161449
|
-
|
|
161449
|
+
k,
|
|
161450
161450
|
v,
|
|
161451
161451
|
u,
|
|
161452
161452
|
p,
|
|
@@ -162093,15 +162093,15 @@ function Oke(e, n, t) {
|
|
|
162093
162093
|
b = Math.round;
|
|
162094
162094
|
else
|
|
162095
162095
|
throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");
|
|
162096
|
-
var q = _.getTime() - l.getTime(),
|
|
162097
|
-
if (g ? v = String(g) :
|
|
162096
|
+
var q = _.getTime() - l.getTime(), k = q / B8, D = D8(_) - D8(l), f = (q - D) / B8, g = t == null ? void 0 : t.unit, v;
|
|
162097
|
+
if (g ? v = String(g) : k < 1 ? v = "second" : k < 60 ? v = "minute" : k < im ? v = "hour" : f < F8 ? v = "day" : f < $8 ? v = "month" : v = "year", v === "second") {
|
|
162098
162098
|
var O = b(q / 1e3);
|
|
162099
162099
|
return d.formatDistance("xSeconds", O, h);
|
|
162100
162100
|
} else if (v === "minute") {
|
|
162101
|
-
var B = b(
|
|
162101
|
+
var B = b(k);
|
|
162102
162102
|
return d.formatDistance("xMinutes", B, h);
|
|
162103
162103
|
} else if (v === "hour") {
|
|
162104
|
-
var M = b(
|
|
162104
|
+
var M = b(k / 60);
|
|
162105
162105
|
return d.formatDistance("xHours", M, h);
|
|
162106
162106
|
} else if (v === "day") {
|
|
162107
162107
|
var N = b(f / im);
|
|
@@ -162143,7 +162143,7 @@ const Mke = ({
|
|
|
162143
162143
|
},
|
|
162144
162144
|
timestamp: b,
|
|
162145
162145
|
status: q,
|
|
162146
|
-
transactionDetails:
|
|
162146
|
+
transactionDetails: k
|
|
162147
162147
|
} = n, D = on({
|
|
162148
162148
|
assetDenom: h,
|
|
162149
162149
|
chainId: l,
|
|
@@ -162210,7 +162210,7 @@ const Mke = ({
|
|
|
162210
162210
|
sourceChainName: D.chainName ?? "--",
|
|
162211
162211
|
destinationChainName: f.chainName ?? "--",
|
|
162212
162212
|
absoluteTimeString: B,
|
|
162213
|
-
transactionDetails:
|
|
162213
|
+
transactionDetails: k,
|
|
162214
162214
|
onClickDelete: () => i(e)
|
|
162215
162215
|
}
|
|
162216
162216
|
)
|
|
@@ -162348,44 +162348,32 @@ const Mke = ({
|
|
|
162348
162348
|
);
|
|
162349
162349
|
}
|
|
162350
162350
|
}, A3e = (e) => /* @__PURE__ */ c.jsx(R8.Provider, { children: /* @__PURE__ */ c.jsx($E, { ...e }) }), $E = (e) => {
|
|
162351
|
-
const n = me(sj), t = me(aj)
|
|
162352
|
-
|
|
162353
|
-
|
|
162354
|
-
|
|
162355
|
-
|
|
162356
|
-
|
|
162357
|
-
|
|
162351
|
+
const n = me(sj), t = me(aj);
|
|
162352
|
+
me(Ne), me(jn), me(vd), me(xm);
|
|
162353
|
+
const [{ data: s }] = Ae($o);
|
|
162354
|
+
Ie(
|
|
162355
|
+
(i, d) => {
|
|
162356
|
+
if (!(!i || !d) && s)
|
|
162357
|
+
return s.find((m) => m.denom === i && m.chainID === d);
|
|
162358
|
+
},
|
|
162359
|
+
[s]
|
|
162360
|
+
);
|
|
162361
|
+
const a = Z(
|
|
162358
162362
|
() => {
|
|
162359
|
-
const { theme:
|
|
162363
|
+
const { theme: i, ...d } = e;
|
|
162360
162364
|
return {
|
|
162361
162365
|
...tj,
|
|
162362
|
-
...
|
|
162366
|
+
...d
|
|
162363
162367
|
};
|
|
162364
162368
|
},
|
|
162365
162369
|
[e]
|
|
162366
|
-
),
|
|
162367
|
-
let
|
|
162368
|
-
return typeof e.theme == "string" ?
|
|
162370
|
+
), o = Z(() => {
|
|
162371
|
+
let i;
|
|
162372
|
+
return typeof e.theme == "string" ? i = e.theme === "light" ? WB : Kd : i = { ...Kd, ...e.theme }, e.brandColor && (i.brandColor = e.brandColor), i;
|
|
162369
162373
|
}, [e.brandColor, e.theme]);
|
|
162370
162374
|
return an(() => {
|
|
162371
|
-
|
|
162372
|
-
|
|
162373
|
-
srcAssetDenom: _,
|
|
162374
|
-
srcChainID: y,
|
|
162375
|
-
destAssetDenom: b,
|
|
162376
|
-
destChainID: q,
|
|
162377
|
-
amountIn: x,
|
|
162378
|
-
amountOut: D
|
|
162379
|
-
} = e.defaultRoute, f = m(_, y), g = m(b, q);
|
|
162380
|
-
a({
|
|
162381
|
-
...g,
|
|
162382
|
-
amount: D == null ? void 0 : D.toString()
|
|
162383
|
-
}), s({
|
|
162384
|
-
...f,
|
|
162385
|
-
amount: x == null ? void 0 : x.toString()
|
|
162386
|
-
}), x ? o(x == null ? void 0 : x.toString()) : D && i(D == null ? void 0 : D.toString());
|
|
162387
|
-
}
|
|
162388
|
-
}, [h, l, n, t, e, d, m, a, s, o, i]), /* @__PURE__ */ c.jsx(KA, { theme: l, children: /* @__PURE__ */ c.jsx(Kke, { children: /* @__PURE__ */ c.jsx(Gke, {}) }) });
|
|
162375
|
+
n(a), t(o);
|
|
162376
|
+
}, [a, o, n, t]), /* @__PURE__ */ c.jsx(KA, { theme: o, children: /* @__PURE__ */ c.jsx(Kke, { children: /* @__PURE__ */ c.jsx(Gke, {}) }) });
|
|
162389
162377
|
}, j3e = ({
|
|
162390
162378
|
button: e = /* @__PURE__ */ c.jsx("button", { children: "show widget" }),
|
|
162391
162379
|
...n
|
|
@@ -162416,4 +162404,4 @@ export {
|
|
|
162416
162404
|
Joe as s,
|
|
162417
162405
|
uw as t
|
|
162418
162406
|
};
|
|
162419
|
-
//# sourceMappingURL=index-
|
|
162407
|
+
//# sourceMappingURL=index-Ct0Altwh.js.map
|