@edgex-web/components 0.1.0-beta.23 → 0.1.0-beta.24
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/dist/components/Withdraw/src/evm/index.d.ts.map +1 -1
- package/dist/hooks/useTranslation.d.ts +2 -0
- package/dist/hooks/useTranslation.d.ts.map +1 -1
- package/dist/index.esm.js +83 -86
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +24 -24
- package/dist/index.umd.js.map +1 -1
- package/dist/locales/en-US.d.ts +1 -0
- package/dist/locales/en-US.d.ts.map +1 -1
- package/dist/locales/ja-JP.d.ts +1 -0
- package/dist/locales/ja-JP.d.ts.map +1 -1
- package/dist/locales/ru-RU.d.ts +1 -0
- package/dist/locales/ru-RU.d.ts.map +1 -1
- package/dist/locales/zh-CN.d.ts +1 -0
- package/dist/locales/zh-CN.d.ts.map +1 -1
- package/dist/locales/zh-TW.d.ts +1 -0
- package/dist/locales/zh-TW.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Withdraw/src/evm/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyC,MAAM,OAAO,CAAA;AAK7D,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AASnC,UAAU,iBAAiB;IACzB,MAAM,EAAE,SAAS,EAAE,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAA;IAGtB,aAAa,EAAE,GAAG,CAAA;IAClB,QAAQ,CAAC,EAAE,GAAG,CAAA;IACd,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,OAAO,CAAA;IAGnB,UAAU,CAAC,EAAE;QACX,UAAU,EAAE,GAAG,CAAA;QACf,eAAe,EAAE,GAAG,CAAA;QACpB,UAAU,EAAE,GAAG,CAAA;KAChB,CAAA;IAGD,UAAU,CAAC,EAAE,CAAC,YAAY,EAAE;QAC1B,MAAM,EAAE,MAAM,CAAA;QACd,OAAO,EAAE,MAAM,CAAA;QACf,YAAY,EAAE,MAAM,CAAA;QACpB,WAAW,EAAE,MAAM,CAAA;QACnB,eAAe,CAAC,EAAE,MAAM,CAAA;KACzB,KAAK,IAAI,CAAA;IACV,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IACzC,aAAa,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAA;IAC7C,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;CAC3C;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Withdraw/src/evm/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyC,MAAM,OAAO,CAAA;AAK7D,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AASnC,UAAU,iBAAiB;IACzB,MAAM,EAAE,SAAS,EAAE,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAA;IAGtB,aAAa,EAAE,GAAG,CAAA;IAClB,QAAQ,CAAC,EAAE,GAAG,CAAA;IACd,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,OAAO,CAAA;IAGnB,UAAU,CAAC,EAAE;QACX,UAAU,EAAE,GAAG,CAAA;QACf,eAAe,EAAE,GAAG,CAAA;QACpB,UAAU,EAAE,GAAG,CAAA;KAChB,CAAA;IAGD,UAAU,CAAC,EAAE,CAAC,YAAY,EAAE;QAC1B,MAAM,EAAE,MAAM,CAAA;QACd,OAAO,EAAE,MAAM,CAAA;QACf,YAAY,EAAE,MAAM,CAAA;QACpB,WAAW,EAAE,MAAM,CAAA;QACnB,eAAe,CAAC,EAAE,MAAM,CAAA;KACzB,KAAK,IAAI,CAAA;IACV,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IACzC,aAAa,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAA;IAC7C,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;CAC3C;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAoSpD,CAAA"}
|
|
@@ -63,6 +63,7 @@ export declare const useTranslation: () => {
|
|
|
63
63
|
fee: string;
|
|
64
64
|
withdrawlAmount: string;
|
|
65
65
|
amountToReceive: string;
|
|
66
|
+
invalidReceiverAddress: string;
|
|
66
67
|
};
|
|
67
68
|
};
|
|
68
69
|
locale: "en-US" | "ja-JP" | "ru-RU" | "zh-CN" | "zh-TW";
|
|
@@ -115,6 +116,7 @@ export declare const useTranslationWithLocale: (localLocale?: string) => {
|
|
|
115
116
|
fee: string;
|
|
116
117
|
withdrawlAmount: string;
|
|
117
118
|
amountToReceive: string;
|
|
119
|
+
invalidReceiverAddress: string;
|
|
118
120
|
};
|
|
119
121
|
};
|
|
120
122
|
locale: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTranslation.d.ts","sourceRoot":"","sources":["../../src/hooks/useTranslation.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,cAAc;aAST,MAAM,WAAW,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAG,MAAM
|
|
1
|
+
{"version":3,"file":"useTranslation.d.ts","sourceRoot":"","sources":["../../src/hooks/useTranslation.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,cAAc;aAST,MAAM,WAAW,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAG,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAyCtC,MAAM,KAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;0BAyBlC,MAAM,KAAG,OAAO;CA0B9C,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,wBAAwB,GAAI,cAAc,MAAM;aAW3C,MAAM,WAAW,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAG,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuC1E,CAAA;AAED,eAAe,cAAc,CAAA"}
|
package/dist/index.esm.js
CHANGED
|
@@ -210,16 +210,16 @@ function Ia() {
|
|
|
210
210
|
` + H + $;
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
var fe = !1,
|
|
213
|
+
var fe = !1, Ae;
|
|
214
214
|
{
|
|
215
|
-
var
|
|
216
|
-
|
|
215
|
+
var Pe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
216
|
+
Ae = new Pe();
|
|
217
217
|
}
|
|
218
218
|
function rt($, B) {
|
|
219
219
|
if (!$ || fe)
|
|
220
220
|
return "";
|
|
221
221
|
{
|
|
222
|
-
var Y =
|
|
222
|
+
var Y = Ae.get($);
|
|
223
223
|
if (Y !== void 0)
|
|
224
224
|
return Y;
|
|
225
225
|
}
|
|
@@ -241,29 +241,29 @@ function Ia() {
|
|
|
241
241
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
242
242
|
try {
|
|
243
243
|
Reflect.construct(se, []);
|
|
244
|
-
} catch (
|
|
245
|
-
Q =
|
|
244
|
+
} catch ($e) {
|
|
245
|
+
Q = $e;
|
|
246
246
|
}
|
|
247
247
|
Reflect.construct($, [], se);
|
|
248
248
|
} else {
|
|
249
249
|
try {
|
|
250
250
|
se.call();
|
|
251
|
-
} catch (
|
|
252
|
-
Q =
|
|
251
|
+
} catch ($e) {
|
|
252
|
+
Q = $e;
|
|
253
253
|
}
|
|
254
254
|
$.call(se.prototype);
|
|
255
255
|
}
|
|
256
256
|
} else {
|
|
257
257
|
try {
|
|
258
258
|
throw Error();
|
|
259
|
-
} catch (
|
|
260
|
-
Q =
|
|
259
|
+
} catch ($e) {
|
|
260
|
+
Q = $e;
|
|
261
261
|
}
|
|
262
262
|
$();
|
|
263
263
|
}
|
|
264
|
-
} catch (
|
|
265
|
-
if (
|
|
266
|
-
for (var oe =
|
|
264
|
+
} catch ($e) {
|
|
265
|
+
if ($e && Q && typeof $e.stack == "string") {
|
|
266
|
+
for (var oe = $e.stack.split(`
|
|
267
267
|
`), Ne = Q.stack.split(`
|
|
268
268
|
`), ve = oe.length - 1, be = Ne.length - 1; ve >= 1 && be >= 0 && oe[ve] !== Ne[be]; )
|
|
269
269
|
be--;
|
|
@@ -274,7 +274,7 @@ function Ia() {
|
|
|
274
274
|
if (ve--, be--, be < 0 || oe[ve] !== Ne[be]) {
|
|
275
275
|
var Be = `
|
|
276
276
|
` + oe[ve].replace(" at new ", " at ");
|
|
277
|
-
return $.displayName && Be.includes("<anonymous>") && (Be = Be.replace("<anonymous>", $.displayName)), typeof $ == "function" &&
|
|
277
|
+
return $.displayName && Be.includes("<anonymous>") && (Be = Be.replace("<anonymous>", $.displayName)), typeof $ == "function" && Ae.set($, Be), Be;
|
|
278
278
|
}
|
|
279
279
|
while (ve >= 1 && be >= 0);
|
|
280
280
|
break;
|
|
@@ -284,7 +284,7 @@ function Ia() {
|
|
|
284
284
|
fe = !1, K.current = ue, W(), Error.prepareStackTrace = ae;
|
|
285
285
|
}
|
|
286
286
|
var kt = $ ? $.displayName || $.name : "", Ct = kt ? Z(kt) : "";
|
|
287
|
-
return typeof $ == "function" &&
|
|
287
|
+
return typeof $ == "function" && Ae.set($, Ct), Ct;
|
|
288
288
|
}
|
|
289
289
|
function Oe($, B, Y) {
|
|
290
290
|
return rt($, !1);
|
|
@@ -606,11 +606,11 @@ Check the top-level render call using <` + Y + ">.");
|
|
|
606
606
|
Xo(Be, $);
|
|
607
607
|
}
|
|
608
608
|
if (Xt.call(B, "key")) {
|
|
609
|
-
var Ct = N($),
|
|
609
|
+
var Ct = N($), $e = Object.keys(B).filter(function(Oa) {
|
|
610
610
|
return Oa !== "key";
|
|
611
|
-
}), sr =
|
|
611
|
+
}), sr = $e.length > 0 ? "{key: someKey, " + $e.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
612
612
|
if (!Qo[Ct + sr]) {
|
|
613
|
-
var Sa =
|
|
613
|
+
var Sa = $e.length > 0 ? "{" + $e.join(": ..., ") + ": ...}" : "{}";
|
|
614
614
|
y(`A props object containing a "key" prop is being spread into JSX:
|
|
615
615
|
let props = %s;
|
|
616
616
|
<%s {...props} />
|
|
@@ -675,7 +675,8 @@ const Ma = {
|
|
|
675
675
|
receiverAddress: "接收地址",
|
|
676
676
|
fee: "手续费",
|
|
677
677
|
withdrawlAmount: "提现金额",
|
|
678
|
-
amountToReceive: "到账金额"
|
|
678
|
+
amountToReceive: "到账金额",
|
|
679
|
+
invalidReceiverAddress: "接收地址不合法"
|
|
679
680
|
}
|
|
680
681
|
}, ja = {
|
|
681
682
|
// Deposit related
|
|
@@ -718,7 +719,8 @@ const Ma = {
|
|
|
718
719
|
receiverAddress: "Receiver Address",
|
|
719
720
|
fee: "Fee",
|
|
720
721
|
withdrawlAmount: "Withdrawal amount",
|
|
721
|
-
amountToReceive: "Amount to Receive"
|
|
722
|
+
amountToReceive: "Amount to Receive",
|
|
723
|
+
invalidReceiverAddress: "Invalid receiver address"
|
|
722
724
|
}
|
|
723
725
|
}, Fa = {
|
|
724
726
|
// 入金関連
|
|
@@ -761,7 +763,8 @@ const Ma = {
|
|
|
761
763
|
receiverAddress: "受取アドレス",
|
|
762
764
|
fee: "手数料",
|
|
763
765
|
withdrawlAmount: "出金額",
|
|
764
|
-
amountToReceive: "受け取り金額"
|
|
766
|
+
amountToReceive: "受け取り金額",
|
|
767
|
+
invalidReceiverAddress: "無効な受け取りアドレス"
|
|
765
768
|
}
|
|
766
769
|
}, _a = {
|
|
767
770
|
// Депозит
|
|
@@ -804,7 +807,8 @@ const Ma = {
|
|
|
804
807
|
receiverAddress: "Адрес получателя",
|
|
805
808
|
fee: "Комиссия",
|
|
806
809
|
withdrawlAmount: "Сумма вывода",
|
|
807
|
-
amountToReceive: "Сумма к получению"
|
|
810
|
+
amountToReceive: "Сумма к получению",
|
|
811
|
+
invalidReceiverAddress: "Неверный адрес получателя"
|
|
808
812
|
}
|
|
809
813
|
}, ka = {
|
|
810
814
|
// 充值相關
|
|
@@ -847,7 +851,8 @@ const Ma = {
|
|
|
847
851
|
receiverAddress: "接收地址",
|
|
848
852
|
fee: "手續費",
|
|
849
853
|
withdrawlAmount: "提現金額",
|
|
850
|
-
amountToReceive: "到账金額"
|
|
854
|
+
amountToReceive: "到账金額",
|
|
855
|
+
invalidReceiverAddress: "接收地址不合法"
|
|
851
856
|
}
|
|
852
857
|
}, ss = [
|
|
853
858
|
"en-US",
|
|
@@ -886,7 +891,7 @@ const Ma = {
|
|
|
886
891
|
throw new Error("useComponentConfig must be used within ComponentProvider");
|
|
887
892
|
return e;
|
|
888
893
|
};
|
|
889
|
-
var Va = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, lr = Math.ceil, ze = Math.floor,
|
|
894
|
+
var Va = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, lr = Math.ceil, ze = Math.floor, Le = "[BigNumber Error] ", ni = Le + "Number primitive has more than 15 significant digits: ", Ze = 1e14, J = 14, ar = 9007199254740991, cr = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], wt = 1e7, we = 1e9;
|
|
890
895
|
function as(e) {
|
|
891
896
|
var t, n, r, o = y.prototype = { constructor: y, toString: null, valueOf: null }, i = new y(1), l = 20, c = 4, s = -7, a = 21, u = -1e7, d = 1e7, p = !1, f = 1, h = 0, g = {
|
|
892
897
|
prefix: "",
|
|
@@ -975,28 +980,28 @@ function as(e) {
|
|
|
975
980
|
else if (pe(b, -we, we, v), b)
|
|
976
981
|
u = -(d = b < 0 ? -b : b);
|
|
977
982
|
else
|
|
978
|
-
throw Error(
|
|
983
|
+
throw Error(Le + v + " cannot be zero: " + b);
|
|
979
984
|
if (m.hasOwnProperty(v = "CRYPTO"))
|
|
980
985
|
if (b = m[v], b === !!b)
|
|
981
986
|
if (b)
|
|
982
987
|
if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes))
|
|
983
988
|
p = b;
|
|
984
989
|
else
|
|
985
|
-
throw p = !b, Error(
|
|
990
|
+
throw p = !b, Error(Le + "crypto unavailable");
|
|
986
991
|
else
|
|
987
992
|
p = b;
|
|
988
993
|
else
|
|
989
|
-
throw Error(
|
|
994
|
+
throw Error(Le + v + " not true or false: " + b);
|
|
990
995
|
if (m.hasOwnProperty(v = "MODULO_MODE") && (b = m[v], pe(b, 0, 9, v), f = b), m.hasOwnProperty(v = "POW_PRECISION") && (b = m[v], pe(b, 0, we, v), h = b), m.hasOwnProperty(v = "FORMAT"))
|
|
991
996
|
if (b = m[v], typeof b == "object") g = b;
|
|
992
|
-
else throw Error(
|
|
997
|
+
else throw Error(Le + v + " not an object: " + b);
|
|
993
998
|
if (m.hasOwnProperty(v = "ALPHABET"))
|
|
994
999
|
if (b = m[v], typeof b == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(b))
|
|
995
1000
|
L = b.slice(0, 10) == "0123456789", w = b;
|
|
996
1001
|
else
|
|
997
|
-
throw Error(
|
|
1002
|
+
throw Error(Le + v + " invalid: " + b);
|
|
998
1003
|
} else
|
|
999
|
-
throw Error(
|
|
1004
|
+
throw Error(Le + "Object expected: " + m);
|
|
1000
1005
|
return {
|
|
1001
1006
|
DECIMAL_PLACES: l,
|
|
1002
1007
|
ROUNDING_MODE: c,
|
|
@@ -1026,7 +1031,7 @@ function as(e) {
|
|
|
1026
1031
|
}
|
|
1027
1032
|
} else if (P === null && A === null && (N === null || N === 1 || N === -1))
|
|
1028
1033
|
return !0;
|
|
1029
|
-
throw Error(
|
|
1034
|
+
throw Error(Le + "Invalid BigNumber: " + m);
|
|
1030
1035
|
}, y.maximum = y.max = function() {
|
|
1031
1036
|
return I(arguments, -1);
|
|
1032
1037
|
}, y.minimum = y.min = function() {
|
|
@@ -1049,7 +1054,7 @@ function as(e) {
|
|
|
1049
1054
|
S = (P[O] & 31) * 281474976710656 + P[O + 1] * 1099511627776 + P[O + 2] * 4294967296 + P[O + 3] * 16777216 + (P[O + 4] << 16) + (P[O + 5] << 8) + P[O + 6], S >= 9e15 ? crypto.randomBytes(7).copy(P, O) : (C.push(S % 1e14), O += 7);
|
|
1050
1055
|
O = E / 7;
|
|
1051
1056
|
} else
|
|
1052
|
-
throw p = !1, Error(
|
|
1057
|
+
throw p = !1, Error(Le + "crypto unavailable");
|
|
1053
1058
|
if (!p)
|
|
1054
1059
|
for (; O < E; )
|
|
1055
1060
|
S = v(), S < 9e15 && (C[O++] = S % 1e14);
|
|
@@ -1122,7 +1127,7 @@ function as(e) {
|
|
|
1122
1127
|
for (; !P[0] && P.length > 1; P.splice(0, 1)) ;
|
|
1123
1128
|
}
|
|
1124
1129
|
return function(P, A, N, E, S) {
|
|
1125
|
-
var O, C, x, D, _, U, V, G, q, W, K, H, Z, fe,
|
|
1130
|
+
var O, C, x, D, _, U, V, G, q, W, K, H, Z, fe, Ae, Pe, rt, Oe = P.s == A.s ? 1 : -1, xe = P.c, ce = A.c;
|
|
1126
1131
|
if (!xe || !xe[0] || !ce || !ce[0])
|
|
1127
1132
|
return new y(
|
|
1128
1133
|
// Return NaN if either NaN, or both Infinity or 0.
|
|
@@ -1135,18 +1140,18 @@ function as(e) {
|
|
|
1135
1140
|
if (ce[x] > (xe[x] || 0) && C--, Oe < 0)
|
|
1136
1141
|
q.push(1), D = !0;
|
|
1137
1142
|
else {
|
|
1138
|
-
for (fe = xe.length,
|
|
1139
|
-
rt = ce.slice(), rt = [0].concat(rt),
|
|
1143
|
+
for (fe = xe.length, Pe = ce.length, x = 0, Oe += 2, _ = ze(S / (ce[0] + 1)), _ > 1 && (ce = m(ce, _, S), xe = m(xe, _, S), Pe = ce.length, fe = xe.length), Z = Pe, W = xe.slice(0, Pe), K = W.length; K < Pe; W[K++] = 0) ;
|
|
1144
|
+
rt = ce.slice(), rt = [0].concat(rt), Ae = ce[0], ce[1] >= S / 2 && Ae++;
|
|
1140
1145
|
do {
|
|
1141
|
-
if (_ = 0, O = v(ce, W,
|
|
1142
|
-
if (H = W[0],
|
|
1146
|
+
if (_ = 0, O = v(ce, W, Pe, K), O < 0) {
|
|
1147
|
+
if (H = W[0], Pe != K && (H = H * S + (W[1] || 0)), _ = ze(H / Ae), _ > 1)
|
|
1143
1148
|
for (_ >= S && (_ = S - 1), U = m(ce, _, S), V = U.length, K = W.length; v(U, W, V, K) == 1; )
|
|
1144
|
-
_--, b(U,
|
|
1149
|
+
_--, b(U, Pe < V ? rt : ce, V, S), V = U.length, O = 1;
|
|
1145
1150
|
else
|
|
1146
1151
|
_ == 0 && (O = _ = 1), U = ce.slice(), V = U.length;
|
|
1147
1152
|
if (V < K && (U = [0].concat(U)), b(W, U, K, S), K = W.length, O == -1)
|
|
1148
|
-
for (; v(ce, W,
|
|
1149
|
-
_++, b(W,
|
|
1153
|
+
for (; v(ce, W, Pe, K) < 1; )
|
|
1154
|
+
_++, b(W, Pe < K ? rt : ce, K, S), K = W.length;
|
|
1150
1155
|
} else O === 0 && (_++, W = [0]);
|
|
1151
1156
|
q[x++] = _, W[0] ? W[K++] = xe[Z] || 0 : (W = [xe[Z]], K = 1);
|
|
1152
1157
|
} while ((Z++ < fe || W[0] != null) && Oe--);
|
|
@@ -1196,7 +1201,7 @@ function as(e) {
|
|
|
1196
1201
|
}), O && (C = O, x = x.replace(v, "$1").replace(b, "0.$1")), E != x))
|
|
1197
1202
|
return new y(x, C);
|
|
1198
1203
|
if (y.DEBUG)
|
|
1199
|
-
throw Error(
|
|
1204
|
+
throw Error(Le + "Not a" + (O ? " base " + O : "") + " number: " + E);
|
|
1200
1205
|
N.s = null;
|
|
1201
1206
|
}
|
|
1202
1207
|
N.c = N.e = null;
|
|
@@ -1265,7 +1270,7 @@ function as(e) {
|
|
|
1265
1270
|
}, o.exponentiatedBy = o.pow = function(m, v) {
|
|
1266
1271
|
var b, P, A, N, E, S, O, C, x, D = this;
|
|
1267
1272
|
if (m = new y(m), m.c && !m.isInteger())
|
|
1268
|
-
throw Error(
|
|
1273
|
+
throw Error(Le + "Exponent not an integer: " + k(m));
|
|
1269
1274
|
if (v != null && (v = new y(v)), S = m.e > 14, !D.c || !D.c[0] || D.c[0] == 1 && !D.e && D.c.length == 1 || !m.c || !m.c[0])
|
|
1270
1275
|
return x = new y(Math.pow(+k(D), S ? m.s * (2 - gn(m)) : +k(m))), v ? x.mod(v) : x;
|
|
1271
1276
|
if (O = m.s < 0, v) {
|
|
@@ -1425,7 +1430,7 @@ function as(e) {
|
|
|
1425
1430
|
if (b == null)
|
|
1426
1431
|
m != null && v && typeof v == "object" ? (b = v, v = null) : m && typeof m == "object" ? (b = m, m = v = null) : b = g;
|
|
1427
1432
|
else if (typeof b != "object")
|
|
1428
|
-
throw Error(
|
|
1433
|
+
throw Error(Le + "Argument not an object: " + b);
|
|
1429
1434
|
if (P = A.toFixed(m, v), A.c) {
|
|
1430
1435
|
var N, E = P.split("."), S = +b.groupSize, O = +b.secondaryGroupSize, C = b.groupSeparator || "", x = E[0], D = E[1], _ = A.s < 0, U = _ ? x.slice(1) : x, V = U.length;
|
|
1431
1436
|
if (O && (N = S, S = O, O = N, V -= N), S > 0 && V > 0) {
|
|
@@ -1441,7 +1446,7 @@ function as(e) {
|
|
|
1441
1446
|
}, o.toFraction = function(m) {
|
|
1442
1447
|
var v, b, P, A, N, E, S, O, C, x, D, _, U = this, V = U.c;
|
|
1443
1448
|
if (m != null && (S = new y(m), !S.isInteger() && (S.c || S.s !== 1) || S.lt(i)))
|
|
1444
|
-
throw Error(
|
|
1449
|
+
throw Error(Le + "Argument " + (S.isInteger() ? "out of range: " : "not an integer: ") + k(S));
|
|
1445
1450
|
if (!V) return new y(U);
|
|
1446
1451
|
for (v = new y(i), C = b = new y(i), P = O = new y(i), _ = Ue(V), N = v.e = _.length - U.e - 1, v.c[0] = cr[(E = N % J) < 0 ? J + E : E], m = !m || S.comparedTo(v) > 0 ? N > 0 ? v : C : S, E = d, d = 1 / 0, S = new y(_), O.c[0] = 0; x = t(S, v, 0, 1), A = b.plus(x.times(P)), A.comparedTo(m) != 1; )
|
|
1447
1452
|
b = P, P = A, C = O.plus(x.times(A = C)), O = A, v = S.minus(x.times(A = v)), S = A;
|
|
@@ -1483,7 +1488,7 @@ function At(e, t) {
|
|
|
1483
1488
|
}
|
|
1484
1489
|
function pe(e, t, n, r) {
|
|
1485
1490
|
if (e < t || e > n || e !== ze(e))
|
|
1486
|
-
throw Error(
|
|
1491
|
+
throw Error(Le + (r || "Argument") + (typeof e == "number" ? e < t || e > n ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(e));
|
|
1487
1492
|
}
|
|
1488
1493
|
function gn(e) {
|
|
1489
1494
|
var t = e.c.length - 1;
|
|
@@ -1503,13 +1508,13 @@ function pt(e, t, n) {
|
|
|
1503
1508
|
} else t < r && (e = e.slice(0, t) + "." + e.slice(t));
|
|
1504
1509
|
return e;
|
|
1505
1510
|
}
|
|
1506
|
-
var
|
|
1511
|
+
var De = as();
|
|
1507
1512
|
const kh = (e, t = 6) => {
|
|
1508
1513
|
try {
|
|
1509
|
-
const n = new
|
|
1514
|
+
const n = new De(e || "0");
|
|
1510
1515
|
if (n.isNaN())
|
|
1511
1516
|
return "0";
|
|
1512
|
-
const r = n.decimalPlaces(t,
|
|
1517
|
+
const r = n.decimalPlaces(t, De.ROUND_DOWN), [o, i = ""] = r.toString().split("."), l = o.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
1513
1518
|
if (t > 0) {
|
|
1514
1519
|
const c = (i || "").padEnd(t, "0");
|
|
1515
1520
|
return `${l}.${c}`;
|
|
@@ -3429,7 +3434,7 @@ function vo(e) {
|
|
|
3429
3434
|
function le(e) {
|
|
3430
3435
|
return Hn() ? e instanceof Element || e instanceof Ie(e).Element : !1;
|
|
3431
3436
|
}
|
|
3432
|
-
function
|
|
3437
|
+
function Ce(e) {
|
|
3433
3438
|
return Hn() ? e instanceof HTMLElement || e instanceof Ie(e).HTMLElement : !1;
|
|
3434
3439
|
}
|
|
3435
3440
|
function Ur(e) {
|
|
@@ -3466,7 +3471,7 @@ function bo(e) {
|
|
|
3466
3471
|
}
|
|
3467
3472
|
function lf(e) {
|
|
3468
3473
|
let t = vt(e);
|
|
3469
|
-
for (;
|
|
3474
|
+
for (; Ce(t) && !gt(t); ) {
|
|
3470
3475
|
if (bo(t))
|
|
3471
3476
|
return t;
|
|
3472
3477
|
if (Gn(t))
|
|
@@ -3508,7 +3513,7 @@ function vt(e) {
|
|
|
3508
3513
|
}
|
|
3509
3514
|
function Qs(e) {
|
|
3510
3515
|
const t = vt(e);
|
|
3511
|
-
return gt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body :
|
|
3516
|
+
return gt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ce(t) && dn(t) ? t : Qs(t);
|
|
3512
3517
|
}
|
|
3513
3518
|
function Ot(e, t, n) {
|
|
3514
3519
|
var r;
|
|
@@ -4240,7 +4245,7 @@ const Vf = function(e) {
|
|
|
4240
4245
|
function il(e) {
|
|
4241
4246
|
const t = Qe(e);
|
|
4242
4247
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
4243
|
-
const o =
|
|
4248
|
+
const o = Ce(e), i = o ? e.offsetWidth : n, l = o ? e.offsetHeight : r, c = sn(n) !== i || sn(r) !== l;
|
|
4244
4249
|
return c && (n = i, r = l), {
|
|
4245
4250
|
width: n,
|
|
4246
4251
|
height: r,
|
|
@@ -4252,7 +4257,7 @@ function wo(e) {
|
|
|
4252
4257
|
}
|
|
4253
4258
|
function zt(e) {
|
|
4254
4259
|
const t = wo(e);
|
|
4255
|
-
if (!
|
|
4260
|
+
if (!Ce(t))
|
|
4256
4261
|
return ct(1);
|
|
4257
4262
|
const n = t.getBoundingClientRect(), {
|
|
4258
4263
|
width: r,
|
|
@@ -4323,8 +4328,8 @@ function Kf(e) {
|
|
|
4323
4328
|
scrollLeft: 0,
|
|
4324
4329
|
scrollTop: 0
|
|
4325
4330
|
}, a = ct(1);
|
|
4326
|
-
const u = ct(0), d =
|
|
4327
|
-
if ((d || !d && !i) && ((Yt(r) !== "body" || dn(l)) && (s = Kn(r)),
|
|
4331
|
+
const u = ct(0), d = Ce(r);
|
|
4332
|
+
if ((d || !d && !i) && ((Yt(r) !== "body" || dn(l)) && (s = Kn(r)), Ce(r))) {
|
|
4328
4333
|
const f = Dt(r);
|
|
4329
4334
|
a = zt(r), u.x = f.x + r.clientLeft, u.y = f.y + r.clientTop;
|
|
4330
4335
|
}
|
|
@@ -4373,7 +4378,7 @@ function Qf(e, t) {
|
|
|
4373
4378
|
}
|
|
4374
4379
|
const Jf = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
4375
4380
|
function Zf(e, t) {
|
|
4376
|
-
const n = Dt(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i =
|
|
4381
|
+
const n = Dt(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = Ce(e) ? zt(e) : ct(1), l = e.clientWidth * i.x, c = e.clientHeight * i.y, s = o * i.x, a = r * i.y;
|
|
4377
4382
|
return {
|
|
4378
4383
|
width: l,
|
|
4379
4384
|
height: c,
|
|
@@ -4446,7 +4451,7 @@ function nd(e) {
|
|
|
4446
4451
|
};
|
|
4447
4452
|
}
|
|
4448
4453
|
function rd(e, t, n) {
|
|
4449
|
-
const r =
|
|
4454
|
+
const r = Ce(t), o = dt(t), i = n === "fixed", l = Dt(e, !0, i, t);
|
|
4450
4455
|
let c = {
|
|
4451
4456
|
scrollLeft: 0,
|
|
4452
4457
|
scrollTop: 0
|
|
@@ -4473,7 +4478,7 @@ function br(e) {
|
|
|
4473
4478
|
return Qe(e).position === "static";
|
|
4474
4479
|
}
|
|
4475
4480
|
function Ti(e, t) {
|
|
4476
|
-
if (!
|
|
4481
|
+
if (!Ce(e) || Qe(e).position === "fixed")
|
|
4477
4482
|
return null;
|
|
4478
4483
|
if (t)
|
|
4479
4484
|
return t(e);
|
|
@@ -4484,7 +4489,7 @@ function cl(e, t) {
|
|
|
4484
4489
|
const n = Ie(e);
|
|
4485
4490
|
if (Gn(e))
|
|
4486
4491
|
return n;
|
|
4487
|
-
if (!
|
|
4492
|
+
if (!Ce(e)) {
|
|
4488
4493
|
let o = vt(e);
|
|
4489
4494
|
for (; o && !gt(o); ) {
|
|
4490
4495
|
if (le(o) && !br(o))
|
|
@@ -5799,7 +5804,7 @@ function Op(e, t) {
|
|
|
5799
5804
|
let v = h !== Re.Open, b = pp(v, g) ? !1 : M, P = M && h === Re.Closed, A = Hd(P, p.value), N = ie((H) => p.compare(A, H)), E = qe(f, (H) => {
|
|
5800
5805
|
var Z;
|
|
5801
5806
|
if (a == null || !((Z = a == null ? void 0 : a.to) != null && Z.includes("selection"))) return null;
|
|
5802
|
-
let fe = H.options.findIndex((
|
|
5807
|
+
let fe = H.options.findIndex((Ae) => N(Ae.dataRef.current.value));
|
|
5803
5808
|
return fe === -1 && (fe = 0), fe;
|
|
5804
5809
|
}), S = (() => {
|
|
5805
5810
|
if (a == null) return;
|
|
@@ -5819,8 +5824,8 @@ function Op(e, t) {
|
|
|
5819
5824
|
if (f.state.searchQuery !== "") return H.preventDefault(), H.stopPropagation(), f.actions.search(H.key);
|
|
5820
5825
|
case Ee.Enter:
|
|
5821
5826
|
if (H.preventDefault(), H.stopPropagation(), f.state.activeOptionIndex !== null) {
|
|
5822
|
-
let { dataRef:
|
|
5823
|
-
f.actions.onChange(
|
|
5827
|
+
let { dataRef: Ae } = f.state.options[f.state.activeOptionIndex];
|
|
5828
|
+
f.actions.onChange(Ae.current.value);
|
|
5824
5829
|
}
|
|
5825
5830
|
p.mode === st.Single && (tn(() => f.actions.closeListbox()), (Z = f.state.buttonElement) == null || Z.focus({ preventScroll: !0 }));
|
|
5826
5831
|
break;
|
|
@@ -7414,7 +7419,7 @@ function lt(e) {
|
|
|
7414
7419
|
return (e == null ? void 0 : e.ownerDocument) || document;
|
|
7415
7420
|
}
|
|
7416
7421
|
function Ql(e) {
|
|
7417
|
-
return
|
|
7422
|
+
return Ce(e) && e.matches(Rm);
|
|
7418
7423
|
}
|
|
7419
7424
|
function Om(e) {
|
|
7420
7425
|
if (!e || Em()) return !0;
|
|
@@ -7853,10 +7858,10 @@ function Ym(e) {
|
|
|
7853
7858
|
}
|
|
7854
7859
|
const Km = () => j.useContext(ta);
|
|
7855
7860
|
function es(e) {
|
|
7856
|
-
return
|
|
7861
|
+
return Ce(e.target) && e.target.tagName === "BUTTON";
|
|
7857
7862
|
}
|
|
7858
7863
|
function qm(e) {
|
|
7859
|
-
return
|
|
7864
|
+
return Ce(e.target) && e.target.tagName === "A";
|
|
7860
7865
|
}
|
|
7861
7866
|
function ts(e) {
|
|
7862
7867
|
return Ql(e);
|
|
@@ -7986,8 +7991,8 @@ function Zm(e, t) {
|
|
|
7986
7991
|
// element was injected after the floating element rendered.
|
|
7987
7992
|
Array.from(_).every((W) => !Ht(U, W)))
|
|
7988
7993
|
return;
|
|
7989
|
-
if (
|
|
7990
|
-
const W = gt(x), K = Qe(x), H = /auto|scroll/, Z = W || H.test(K.overflowX), fe = W || H.test(K.overflowY),
|
|
7994
|
+
if (Ce(x) && N) {
|
|
7995
|
+
const W = gt(x), K = Qe(x), H = /auto|scroll/, Z = W || H.test(K.overflowX), fe = W || H.test(K.overflowY), Ae = Z && x.clientWidth > 0 && x.scrollWidth > x.clientWidth, Pe = fe && x.clientHeight > 0 && x.scrollHeight > x.clientHeight, rt = K.direction === "rtl", Oe = Pe && (rt ? E.offsetX <= x.offsetWidth - x.clientWidth : E.offsetX > x.clientWidth), xe = Ae && E.offsetY > x.clientHeight;
|
|
7991
7996
|
if (Oe || xe)
|
|
7992
7997
|
return;
|
|
7993
7998
|
}
|
|
@@ -8200,7 +8205,7 @@ function nh(e, t) {
|
|
|
8200
8205
|
if (!c) return;
|
|
8201
8206
|
const f = Ie(l.domReference);
|
|
8202
8207
|
function h() {
|
|
8203
|
-
!n &&
|
|
8208
|
+
!n && Ce(l.domReference) && l.domReference === eo(lt(l.domReference)) && (a.current = !0);
|
|
8204
8209
|
}
|
|
8205
8210
|
function g() {
|
|
8206
8211
|
d.current = !0;
|
|
@@ -8744,7 +8749,7 @@ const Wn = ({
|
|
|
8744
8749
|
let I = s || "0";
|
|
8745
8750
|
if (!Ke(o == null ? void 0 : o.chainId))
|
|
8746
8751
|
try {
|
|
8747
|
-
const M = new
|
|
8752
|
+
const M = new De(I), F = new De("250000");
|
|
8748
8753
|
M.gt(F) && (I = "250000");
|
|
8749
8754
|
} catch (M) {
|
|
8750
8755
|
console.warn("Error calculating max amount limit:", M);
|
|
@@ -8754,7 +8759,7 @@ const Wn = ({
|
|
|
8754
8759
|
if (Ke(o == null ? void 0 : o.chainId))
|
|
8755
8760
|
return !1;
|
|
8756
8761
|
try {
|
|
8757
|
-
const I = new
|
|
8762
|
+
const I = new De(e || "0"), M = new De("250000");
|
|
8758
8763
|
return I.isNaN() || M.isNaN() ? !1 : I.gte(M);
|
|
8759
8764
|
} catch {
|
|
8760
8765
|
return !1;
|
|
@@ -8764,7 +8769,7 @@ const Wn = ({
|
|
|
8764
8769
|
if (Ke(o == null ? void 0 : o.chainId))
|
|
8765
8770
|
return !1;
|
|
8766
8771
|
try {
|
|
8767
|
-
const I = new
|
|
8772
|
+
const I = new De(s || "0"), M = new De("250000");
|
|
8768
8773
|
return I.gt(M);
|
|
8769
8774
|
} catch {
|
|
8770
8775
|
return !1;
|
|
@@ -9514,7 +9519,7 @@ const Rh = ({
|
|
|
9514
9519
|
}) => {
|
|
9515
9520
|
const { t: u } = ft(), d = re(() => {
|
|
9516
9521
|
if (!Ke(n == null ? void 0 : n.chainId)) {
|
|
9517
|
-
const w = new
|
|
9522
|
+
const w = new De(e || "0").minus(o || "0").decimalPlaces(2, De.ROUND_DOWN);
|
|
9518
9523
|
return w.isNegative() ? "0.00" : w.toString();
|
|
9519
9524
|
}
|
|
9520
9525
|
return e || "0";
|
|
@@ -9826,30 +9831,22 @@ const Nh = (e) => {
|
|
|
9826
9831
|
const q = x.combinedData[O.tokenAddress];
|
|
9827
9832
|
return ((W = q == null ? void 0 : q.balance) == null ? void 0 : W.formatted) || "0";
|
|
9828
9833
|
}, [O, x]), U = re(() => {
|
|
9829
|
-
const q = new
|
|
9830
|
-
return !M || q.isZero() || K.isLessThan(
|
|
9834
|
+
const q = new De(M || "0"), W = new De(s || "0"), K = Ke(L);
|
|
9835
|
+
return !M || q.isZero() || !K && q.isLessThan(W) ? {
|
|
9831
9836
|
text: w("withdraw.confirmWithdraw"),
|
|
9832
9837
|
disabled: !0
|
|
9833
|
-
} : v === "mpc" && !
|
|
9834
|
-
text: "
|
|
9838
|
+
} : v === "mpc" && !K && !k.trim() ? {
|
|
9839
|
+
text: w("withdraw.invalidReceiverAddress"),
|
|
9835
9840
|
disabled: !0
|
|
9836
9841
|
} : {
|
|
9837
9842
|
text: w("withdraw.confirmWithdraw"),
|
|
9838
9843
|
disabled: !1
|
|
9839
9844
|
};
|
|
9840
|
-
}, [
|
|
9841
|
-
w,
|
|
9842
|
-
L,
|
|
9843
|
-
M,
|
|
9844
|
-
v,
|
|
9845
|
-
k,
|
|
9846
|
-
s,
|
|
9847
|
-
c
|
|
9848
|
-
]), V = X(async () => {
|
|
9845
|
+
}, [w, L, M, v, k, s]), V = X(async () => {
|
|
9849
9846
|
oo(!0);
|
|
9850
9847
|
try {
|
|
9851
9848
|
if (d) {
|
|
9852
|
-
const q = new
|
|
9849
|
+
const q = new De(M || "0"), W = new De(s || "0"), H = {
|
|
9853
9850
|
amount: (Ke(L) ? q : q.minus(W)).toString(),
|
|
9854
9851
|
chainId: L,
|
|
9855
9852
|
tokenAddress: (O == null ? void 0 : O.tokenAddress) || "",
|