@emqx/shared-ui-utils 0.0.20 → 0.0.21
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/hocon.d.ts +1 -1
- package/dist/index.js +541 -541
- package/dist/index.umd.cjs +27 -27
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -62,8 +62,8 @@ const O = new RegExp(
|
|
|
62
62
|
const t = e.trim();
|
|
63
63
|
let n, s, c, l = null;
|
|
64
64
|
if (N.test(t) ? l = t.match(/(?<foreach>(.|\n)+)FROM(?<from>(.|\n)+)/) : l = t.match(withConditionSQLReg) || t.match(normalSQLReg), l) {
|
|
65
|
-
const { groups: C } = l, { foreach: A = "", select: L = "", from:
|
|
66
|
-
n = A || L.trim(), s =
|
|
65
|
+
const { groups: C } = l, { foreach: A = "", select: L = "", from: B = "", where: q = "" } = C || {};
|
|
66
|
+
n = A || L.trim(), s = B.trim(), q && (c = q.trim());
|
|
67
67
|
}
|
|
68
68
|
return {
|
|
69
69
|
fieldStr: n,
|
|
@@ -822,16 +822,16 @@ function generateCodeFrame(e, t = 0, n = e.length) {
|
|
|
822
822
|
continue;
|
|
823
823
|
const L = A + 1;
|
|
824
824
|
l.push(`${L}${" ".repeat(3 - String(L).length)}| ${s[A]}`);
|
|
825
|
-
const
|
|
825
|
+
const B = s[A].length;
|
|
826
826
|
if (A === C) {
|
|
827
|
-
const
|
|
828
|
-
l.push(" | " + " ".repeat(
|
|
827
|
+
const q = t - (c - B) + 1, U = Math.max(1, n > c ? B - q : n - t);
|
|
828
|
+
l.push(" | " + " ".repeat(q) + "^".repeat(U));
|
|
829
829
|
} else if (A > C) {
|
|
830
830
|
if (n > c) {
|
|
831
|
-
const
|
|
832
|
-
l.push(" | " + "^".repeat(
|
|
831
|
+
const q = Math.max(Math.min(n - c, B), 1);
|
|
832
|
+
l.push(" | " + "^".repeat(q));
|
|
833
833
|
}
|
|
834
|
-
c +=
|
|
834
|
+
c += B + 1;
|
|
835
835
|
}
|
|
836
836
|
}
|
|
837
837
|
break;
|
|
@@ -958,9 +958,9 @@ const RE_HTML_TAG = /<\/?[\w\s="/.':;#-\/]+>/, detectHtmlTag = (e) => RE_HTML_TA
|
|
|
958
958
|
function createScanner(e) {
|
|
959
959
|
const t = e;
|
|
960
960
|
let n = 0, s = 1, c = 1, l = 0;
|
|
961
|
-
const C = (ie) => t[ie] === CHAR_CR && t[ie + 1] === CHAR_LF, A = (ie) => t[ie] === CHAR_LF, L = (ie) => t[ie] === CHAR_PS,
|
|
961
|
+
const C = (ie) => t[ie] === CHAR_CR && t[ie + 1] === CHAR_LF, A = (ie) => t[ie] === CHAR_LF, L = (ie) => t[ie] === CHAR_PS, B = (ie) => t[ie] === CHAR_LS, q = (ie) => C(ie) || A(ie) || L(ie) || B(ie), U = () => n, V = () => s, J = () => c, ce = () => l, se = (ie) => C(ie) || L(ie) || B(ie) ? CHAR_LF : t[ie], re = () => se(n), Y = () => se(n + l);
|
|
962
962
|
function Q() {
|
|
963
|
-
return l = 0,
|
|
963
|
+
return l = 0, q(n) && (s++, c = 0), C(n) && n++, n++, c++, t[n];
|
|
964
964
|
}
|
|
965
965
|
function ae() {
|
|
966
966
|
return C(n + l) && l++, l++, t[n + l];
|
|
@@ -984,7 +984,7 @@ function createScanner(e) {
|
|
|
984
984
|
peekOffset: ce,
|
|
985
985
|
charAt: se,
|
|
986
986
|
currentChar: re,
|
|
987
|
-
currentPeek:
|
|
987
|
+
currentPeek: Y,
|
|
988
988
|
next: Q,
|
|
989
989
|
peek: ae,
|
|
990
990
|
reset: te,
|
|
@@ -1006,15 +1006,15 @@ function createTokenizer(e, t = {}) {
|
|
|
1006
1006
|
braceNest: 0,
|
|
1007
1007
|
inLinked: !1,
|
|
1008
1008
|
text: ""
|
|
1009
|
-
},
|
|
1009
|
+
}, B = () => L, { onError: q } = t;
|
|
1010
1010
|
function U(R, I, F, ...H) {
|
|
1011
|
-
const j =
|
|
1012
|
-
if (I.column += F, I.offset += F,
|
|
1011
|
+
const j = B();
|
|
1012
|
+
if (I.column += F, I.offset += F, q) {
|
|
1013
1013
|
const K = n ? createLocation(j.startLoc, I) : null, Z = createCompileError(R, K, {
|
|
1014
1014
|
domain: ERROR_DOMAIN$3,
|
|
1015
1015
|
args: H
|
|
1016
1016
|
});
|
|
1017
|
-
|
|
1017
|
+
q(Z);
|
|
1018
1018
|
}
|
|
1019
1019
|
}
|
|
1020
1020
|
function V(R, I, F) {
|
|
@@ -1040,7 +1040,7 @@ function createTokenizer(e, t = {}) {
|
|
|
1040
1040
|
const I = se(R);
|
|
1041
1041
|
return R.skipToPeek(), I;
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1043
|
+
function Y(R) {
|
|
1044
1044
|
if (R === EOF)
|
|
1045
1045
|
return !1;
|
|
1046
1046
|
const I = R.charCodeAt(0);
|
|
@@ -1059,7 +1059,7 @@ function createTokenizer(e, t = {}) {
|
|
|
1059
1059
|
if (F !== 2)
|
|
1060
1060
|
return !1;
|
|
1061
1061
|
se(R);
|
|
1062
|
-
const H =
|
|
1062
|
+
const H = Y(R.currentPeek());
|
|
1063
1063
|
return R.resetPeek(), H;
|
|
1064
1064
|
}
|
|
1065
1065
|
function te(R, I) {
|
|
@@ -1091,7 +1091,7 @@ function createTokenizer(e, t = {}) {
|
|
|
1091
1091
|
if (F !== 9)
|
|
1092
1092
|
return !1;
|
|
1093
1093
|
se(R);
|
|
1094
|
-
const H =
|
|
1094
|
+
const H = Y(R.currentPeek());
|
|
1095
1095
|
return R.resetPeek(), H;
|
|
1096
1096
|
}
|
|
1097
1097
|
function G(R, I) {
|
|
@@ -1108,7 +1108,7 @@ function createTokenizer(e, t = {}) {
|
|
|
1108
1108
|
return !1;
|
|
1109
1109
|
const H = () => {
|
|
1110
1110
|
const K = R.currentPeek();
|
|
1111
|
-
return K === "{" ?
|
|
1111
|
+
return K === "{" ? Y(R.peek()) : K === "@" || K === "%" || K === "|" || K === ":" || K === "." || K === CHAR_SP || !K ? !1 : K === CHAR_LF ? (R.peek(), H()) : Y(K);
|
|
1112
1112
|
}, j = H();
|
|
1113
1113
|
return R.resetPeek(), j;
|
|
1114
1114
|
}
|
|
@@ -1374,7 +1374,7 @@ function createTokenizer(e, t = {}) {
|
|
|
1374
1374
|
}
|
|
1375
1375
|
return F;
|
|
1376
1376
|
}
|
|
1377
|
-
function
|
|
1377
|
+
function W() {
|
|
1378
1378
|
const { currentType: R, offset: I, startLoc: F, endLoc: H } = L;
|
|
1379
1379
|
return L.lastType = R, L.lastOffset = I, L.lastStartLoc = F, L.lastEndLoc = H, L.offset = c(), L.startLoc = l(), s.currentChar() === EOF ? V(
|
|
1380
1380
|
L,
|
|
@@ -1383,10 +1383,10 @@ function createTokenizer(e, t = {}) {
|
|
|
1383
1383
|
) : M(s, L);
|
|
1384
1384
|
}
|
|
1385
1385
|
return {
|
|
1386
|
-
nextToken:
|
|
1386
|
+
nextToken: W,
|
|
1387
1387
|
currentOffset: c,
|
|
1388
1388
|
currentPosition: l,
|
|
1389
|
-
context:
|
|
1389
|
+
context: B
|
|
1390
1390
|
};
|
|
1391
1391
|
}
|
|
1392
1392
|
const ERROR_DOMAIN$2 = "parser", KNOWN_ESCAPES = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
@@ -1404,8 +1404,8 @@ function fromEscapeSequence(e, t, n) {
|
|
|
1404
1404
|
}
|
|
1405
1405
|
function createParser(e = {}) {
|
|
1406
1406
|
const t = e.location !== !1, { onError: n } = e;
|
|
1407
|
-
function s(
|
|
1408
|
-
const ne =
|
|
1407
|
+
function s(Y, Q, ae, te, ...oe) {
|
|
1408
|
+
const ne = Y.currentPosition();
|
|
1409
1409
|
if (ne.offset += te, ne.column += te, n) {
|
|
1410
1410
|
const ie = t ? createLocation(ae, ne) : null, G = createCompileError(Q, ie, {
|
|
1411
1411
|
domain: ERROR_DOMAIN$2,
|
|
@@ -1414,122 +1414,122 @@ function createParser(e = {}) {
|
|
|
1414
1414
|
n(G);
|
|
1415
1415
|
}
|
|
1416
1416
|
}
|
|
1417
|
-
function c(
|
|
1418
|
-
const te = { type:
|
|
1417
|
+
function c(Y, Q, ae) {
|
|
1418
|
+
const te = { type: Y };
|
|
1419
1419
|
return t && (te.start = Q, te.end = Q, te.loc = { start: ae, end: ae }), te;
|
|
1420
1420
|
}
|
|
1421
|
-
function l(
|
|
1422
|
-
te && (
|
|
1421
|
+
function l(Y, Q, ae, te) {
|
|
1422
|
+
te && (Y.type = te), t && (Y.end = Q, Y.loc && (Y.loc.end = ae));
|
|
1423
1423
|
}
|
|
1424
|
-
function C(
|
|
1425
|
-
const ae =
|
|
1426
|
-
return te.value = Q, l(te,
|
|
1424
|
+
function C(Y, Q) {
|
|
1425
|
+
const ae = Y.context(), te = c(3, ae.offset, ae.startLoc);
|
|
1426
|
+
return te.value = Q, l(te, Y.currentOffset(), Y.currentPosition()), te;
|
|
1427
1427
|
}
|
|
1428
|
-
function A(
|
|
1429
|
-
const ae =
|
|
1430
|
-
return ne.index = parseInt(Q, 10),
|
|
1428
|
+
function A(Y, Q) {
|
|
1429
|
+
const ae = Y.context(), { lastOffset: te, lastStartLoc: oe } = ae, ne = c(5, te, oe);
|
|
1430
|
+
return ne.index = parseInt(Q, 10), Y.nextToken(), l(ne, Y.currentOffset(), Y.currentPosition()), ne;
|
|
1431
1431
|
}
|
|
1432
|
-
function L(
|
|
1433
|
-
const ae =
|
|
1434
|
-
return ne.key = Q,
|
|
1432
|
+
function L(Y, Q) {
|
|
1433
|
+
const ae = Y.context(), { lastOffset: te, lastStartLoc: oe } = ae, ne = c(4, te, oe);
|
|
1434
|
+
return ne.key = Q, Y.nextToken(), l(ne, Y.currentOffset(), Y.currentPosition()), ne;
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1437
|
-
const ae =
|
|
1438
|
-
return ne.value = Q.replace(KNOWN_ESCAPES, fromEscapeSequence),
|
|
1436
|
+
function B(Y, Q) {
|
|
1437
|
+
const ae = Y.context(), { lastOffset: te, lastStartLoc: oe } = ae, ne = c(9, te, oe);
|
|
1438
|
+
return ne.value = Q.replace(KNOWN_ESCAPES, fromEscapeSequence), Y.nextToken(), l(ne, Y.currentOffset(), Y.currentPosition()), ne;
|
|
1439
1439
|
}
|
|
1440
|
-
function Y
|
|
1441
|
-
const Q =
|
|
1442
|
-
return Q.type !== 12 ? (s(
|
|
1440
|
+
function q(Y) {
|
|
1441
|
+
const Q = Y.nextToken(), ae = Y.context(), { lastOffset: te, lastStartLoc: oe } = ae, ne = c(8, te, oe);
|
|
1442
|
+
return Q.type !== 12 ? (s(Y, CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER, ae.lastStartLoc, 0), ne.value = "", l(ne, te, oe), {
|
|
1443
1443
|
nextConsumeToken: Q,
|
|
1444
1444
|
node: ne
|
|
1445
|
-
}) : (Q.value == null && s(
|
|
1445
|
+
}) : (Q.value == null && s(Y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, ae.lastStartLoc, 0, getTokenCaption(Q)), ne.value = Q.value || "", l(ne, Y.currentOffset(), Y.currentPosition()), {
|
|
1446
1446
|
node: ne
|
|
1447
1447
|
});
|
|
1448
1448
|
}
|
|
1449
|
-
function U(
|
|
1450
|
-
const ae =
|
|
1451
|
-
return te.value = Q, l(te,
|
|
1449
|
+
function U(Y, Q) {
|
|
1450
|
+
const ae = Y.context(), te = c(7, ae.offset, ae.startLoc);
|
|
1451
|
+
return te.value = Q, l(te, Y.currentOffset(), Y.currentPosition()), te;
|
|
1452
1452
|
}
|
|
1453
|
-
function V(
|
|
1454
|
-
const Q =
|
|
1455
|
-
let te =
|
|
1453
|
+
function V(Y) {
|
|
1454
|
+
const Q = Y.context(), ae = c(6, Q.offset, Q.startLoc);
|
|
1455
|
+
let te = Y.nextToken();
|
|
1456
1456
|
if (te.type === 9) {
|
|
1457
|
-
const oe = Y
|
|
1458
|
-
ae.modifier = oe.node, te = oe.nextConsumeToken ||
|
|
1457
|
+
const oe = q(Y);
|
|
1458
|
+
ae.modifier = oe.node, te = oe.nextConsumeToken || Y.nextToken();
|
|
1459
1459
|
}
|
|
1460
|
-
switch (te.type !== 10 && s(
|
|
1460
|
+
switch (te.type !== 10 && s(Y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, Q.lastStartLoc, 0, getTokenCaption(te)), te = Y.nextToken(), te.type === 2 && (te = Y.nextToken()), te.type) {
|
|
1461
1461
|
case 11:
|
|
1462
|
-
te.value == null && s(
|
|
1462
|
+
te.value == null && s(Y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, Q.lastStartLoc, 0, getTokenCaption(te)), ae.key = U(Y, te.value || "");
|
|
1463
1463
|
break;
|
|
1464
1464
|
case 5:
|
|
1465
|
-
te.value == null && s(
|
|
1465
|
+
te.value == null && s(Y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, Q.lastStartLoc, 0, getTokenCaption(te)), ae.key = L(Y, te.value || "");
|
|
1466
1466
|
break;
|
|
1467
1467
|
case 6:
|
|
1468
|
-
te.value == null && s(
|
|
1468
|
+
te.value == null && s(Y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, Q.lastStartLoc, 0, getTokenCaption(te)), ae.key = A(Y, te.value || "");
|
|
1469
1469
|
break;
|
|
1470
1470
|
case 7:
|
|
1471
|
-
te.value == null && s(
|
|
1471
|
+
te.value == null && s(Y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, Q.lastStartLoc, 0, getTokenCaption(te)), ae.key = B(Y, te.value || "");
|
|
1472
1472
|
break;
|
|
1473
1473
|
default: {
|
|
1474
|
-
s(
|
|
1475
|
-
const oe =
|
|
1474
|
+
s(Y, CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY, Q.lastStartLoc, 0);
|
|
1475
|
+
const oe = Y.context(), ne = c(7, oe.offset, oe.startLoc);
|
|
1476
1476
|
return ne.value = "", l(ne, oe.offset, oe.startLoc), ae.key = ne, l(ae, oe.offset, oe.startLoc), {
|
|
1477
1477
|
nextConsumeToken: te,
|
|
1478
1478
|
node: ae
|
|
1479
1479
|
};
|
|
1480
1480
|
}
|
|
1481
1481
|
}
|
|
1482
|
-
return l(ae,
|
|
1482
|
+
return l(ae, Y.currentOffset(), Y.currentPosition()), {
|
|
1483
1483
|
node: ae
|
|
1484
1484
|
};
|
|
1485
1485
|
}
|
|
1486
|
-
function J(
|
|
1487
|
-
const Q =
|
|
1486
|
+
function J(Y) {
|
|
1487
|
+
const Q = Y.context(), ae = Q.currentType === 1 ? Y.currentOffset() : Q.offset, te = Q.currentType === 1 ? Q.endLoc : Q.startLoc, oe = c(2, ae, te);
|
|
1488
1488
|
oe.items = [];
|
|
1489
1489
|
let ne = null;
|
|
1490
1490
|
do {
|
|
1491
|
-
const $ = ne ||
|
|
1491
|
+
const $ = ne || Y.nextToken();
|
|
1492
1492
|
switch (ne = null, $.type) {
|
|
1493
1493
|
case 0:
|
|
1494
|
-
$.value == null && s(
|
|
1494
|
+
$.value == null && s(Y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, Q.lastStartLoc, 0, getTokenCaption($)), oe.items.push(C(Y, $.value || ""));
|
|
1495
1495
|
break;
|
|
1496
1496
|
case 6:
|
|
1497
|
-
$.value == null && s(
|
|
1497
|
+
$.value == null && s(Y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, Q.lastStartLoc, 0, getTokenCaption($)), oe.items.push(A(Y, $.value || ""));
|
|
1498
1498
|
break;
|
|
1499
1499
|
case 5:
|
|
1500
|
-
$.value == null && s(
|
|
1500
|
+
$.value == null && s(Y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, Q.lastStartLoc, 0, getTokenCaption($)), oe.items.push(L(Y, $.value || ""));
|
|
1501
1501
|
break;
|
|
1502
1502
|
case 7:
|
|
1503
|
-
$.value == null && s(
|
|
1503
|
+
$.value == null && s(Y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, Q.lastStartLoc, 0, getTokenCaption($)), oe.items.push(B(Y, $.value || ""));
|
|
1504
1504
|
break;
|
|
1505
1505
|
case 8: {
|
|
1506
|
-
const X = V(
|
|
1506
|
+
const X = V(Y);
|
|
1507
1507
|
oe.items.push(X.node), ne = X.nextConsumeToken || null;
|
|
1508
1508
|
break;
|
|
1509
1509
|
}
|
|
1510
1510
|
}
|
|
1511
1511
|
} while (Q.currentType !== 14 && Q.currentType !== 1);
|
|
1512
|
-
const ie = Q.currentType === 1 ? Q.lastOffset :
|
|
1512
|
+
const ie = Q.currentType === 1 ? Q.lastOffset : Y.currentOffset(), G = Q.currentType === 1 ? Q.lastEndLoc : Y.currentPosition();
|
|
1513
1513
|
return l(oe, ie, G), oe;
|
|
1514
1514
|
}
|
|
1515
|
-
function ce(
|
|
1516
|
-
const oe =
|
|
1515
|
+
function ce(Y, Q, ae, te) {
|
|
1516
|
+
const oe = Y.context();
|
|
1517
1517
|
let ne = te.items.length === 0;
|
|
1518
1518
|
const ie = c(1, Q, ae);
|
|
1519
1519
|
ie.cases = [], ie.cases.push(te);
|
|
1520
1520
|
do {
|
|
1521
|
-
const G = J(
|
|
1521
|
+
const G = J(Y);
|
|
1522
1522
|
ne || (ne = G.items.length === 0), ie.cases.push(G);
|
|
1523
1523
|
} while (oe.currentType !== 14);
|
|
1524
|
-
return ne && s(
|
|
1524
|
+
return ne && s(Y, CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL, ae, 0), l(ie, Y.currentOffset(), Y.currentPosition()), ie;
|
|
1525
1525
|
}
|
|
1526
|
-
function se(
|
|
1527
|
-
const Q =
|
|
1528
|
-
return Q.currentType === 14 ? oe : ce(
|
|
1526
|
+
function se(Y) {
|
|
1527
|
+
const Q = Y.context(), { offset: ae, startLoc: te } = Q, oe = J(Y);
|
|
1528
|
+
return Q.currentType === 14 ? oe : ce(Y, ae, te, oe);
|
|
1529
1529
|
}
|
|
1530
|
-
function re(
|
|
1531
|
-
const Q = createTokenizer(
|
|
1532
|
-
return t && te.loc && (te.loc.source =
|
|
1530
|
+
function re(Y) {
|
|
1531
|
+
const Q = createTokenizer(Y, assign({}, e)), ae = Q.context(), te = c(0, ae.offset, ae.startLoc);
|
|
1532
|
+
return t && te.loc && (te.loc.source = Y), te.body = se(Q), e.onCacheKey && (te.cacheKey = e.onCacheKey(Y)), ae.currentType !== 14 && s(Q, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, ae.lastStartLoc, 0, Y[ae.offset] || ""), l(te, Q.currentOffset(), Q.currentPosition()), te;
|
|
1533
1533
|
}
|
|
1534
1534
|
return { parse: re };
|
|
1535
1535
|
}
|
|
@@ -1693,27 +1693,27 @@ function createCodeGenerator(e, t) {
|
|
|
1693
1693
|
};
|
|
1694
1694
|
C && e.loc && (A.source = e.loc.source);
|
|
1695
1695
|
const L = () => A;
|
|
1696
|
-
function
|
|
1696
|
+
function B(re, Y) {
|
|
1697
1697
|
A.code += re;
|
|
1698
1698
|
}
|
|
1699
|
-
function
|
|
1700
|
-
const Q =
|
|
1701
|
-
|
|
1699
|
+
function q(re, Y = !0) {
|
|
1700
|
+
const Q = Y ? c : "";
|
|
1701
|
+
B(l ? Q + " ".repeat(re) : Q);
|
|
1702
1702
|
}
|
|
1703
1703
|
function U(re = !0) {
|
|
1704
|
-
const
|
|
1705
|
-
re && Y
|
|
1704
|
+
const Y = ++A.indentLevel;
|
|
1705
|
+
re && q(Y);
|
|
1706
1706
|
}
|
|
1707
1707
|
function V(re = !0) {
|
|
1708
|
-
const
|
|
1709
|
-
re && Y
|
|
1708
|
+
const Y = --A.indentLevel;
|
|
1709
|
+
re && q(Y);
|
|
1710
1710
|
}
|
|
1711
1711
|
function J() {
|
|
1712
|
-
|
|
1712
|
+
q(A.indentLevel);
|
|
1713
1713
|
}
|
|
1714
1714
|
return {
|
|
1715
1715
|
context: L,
|
|
1716
|
-
push:
|
|
1716
|
+
push: B,
|
|
1717
1717
|
indent: U,
|
|
1718
1718
|
deindent: V,
|
|
1719
1719
|
newline: J,
|
|
@@ -1817,11 +1817,11 @@ const generate = (e, t = {}) => {
|
|
|
1817
1817
|
needIndent: C
|
|
1818
1818
|
});
|
|
1819
1819
|
L.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), L.indent(C), A.length > 0 && (L.push(`const { ${join(A.map((U) => `${U}: _${U}`), ", ")} } = ctx`), L.newline()), L.push("return "), generateNode(L, e), L.deindent(C), L.push("}"), delete e.helpers;
|
|
1820
|
-
const { code:
|
|
1820
|
+
const { code: B, map: q } = L.context();
|
|
1821
1821
|
return {
|
|
1822
1822
|
ast: e,
|
|
1823
|
-
code:
|
|
1824
|
-
map:
|
|
1823
|
+
code: B,
|
|
1824
|
+
map: q ? q.toJSON() : void 0
|
|
1825
1825
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1826
1826
|
};
|
|
1827
1827
|
};
|
|
@@ -2037,7 +2037,7 @@ function formatSubPath(e) {
|
|
|
2037
2037
|
}
|
|
2038
2038
|
function parse$1(e) {
|
|
2039
2039
|
const t = [];
|
|
2040
|
-
let n = -1, s = 0, c = 0, l, C, A, L,
|
|
2040
|
+
let n = -1, s = 0, c = 0, l, C, A, L, B, q, U;
|
|
2041
2041
|
const V = [];
|
|
2042
2042
|
V[
|
|
2043
2043
|
0
|
|
@@ -2085,7 +2085,7 @@ function parse$1(e) {
|
|
|
2085
2085
|
}
|
|
2086
2086
|
for (; s !== null; )
|
|
2087
2087
|
if (n++, l = e[n], !(l === "\\" && J())) {
|
|
2088
|
-
if (L = getPathCharType(l), U = pathStateMachine[s],
|
|
2088
|
+
if (L = getPathCharType(l), U = pathStateMachine[s], B = U[L] || U.l || 8, B === 8 || (s = B[0], B[1] !== void 0 && (q = V[B[1]], q && (A = l, q() === !1))))
|
|
2089
2089
|
return;
|
|
2090
2090
|
if (s === 7)
|
|
2091
2091
|
return t;
|
|
@@ -2123,28 +2123,28 @@ function normalizeNamed(e, t) {
|
|
|
2123
2123
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
2124
2124
|
}
|
|
2125
2125
|
function createMessageContext(e = {}) {
|
|
2126
|
-
const t = e.locale, n = getPluralIndex(e), s = isObject$2(e.pluralRules) && isString$2(t) && isFunction$1(e.pluralRules[t]) ? e.pluralRules[t] : pluralDefault, c = isObject$2(e.pluralRules) && isString$2(t) && isFunction$1(e.pluralRules[t]) ? pluralDefault : void 0, l = (
|
|
2126
|
+
const t = e.locale, n = getPluralIndex(e), s = isObject$2(e.pluralRules) && isString$2(t) && isFunction$1(e.pluralRules[t]) ? e.pluralRules[t] : pluralDefault, c = isObject$2(e.pluralRules) && isString$2(t) && isFunction$1(e.pluralRules[t]) ? pluralDefault : void 0, l = (Y) => Y[s(n, Y.length, c)], C = e.list || [], A = (Y) => C[Y], L = e.named || {};
|
|
2127
2127
|
isNumber(e.pluralIndex) && normalizeNamed(n, L);
|
|
2128
|
-
const
|
|
2129
|
-
function Y
|
|
2130
|
-
const Q = isFunction$1(e.messages) ? e.messages(
|
|
2131
|
-
return Q || (e.parent ? e.parent.message(
|
|
2128
|
+
const B = (Y) => L[Y];
|
|
2129
|
+
function q(Y) {
|
|
2130
|
+
const Q = isFunction$1(e.messages) ? e.messages(Y) : isObject$2(e.messages) ? e.messages[Y] : !1;
|
|
2131
|
+
return Q || (e.parent ? e.parent.message(Y) : DEFAULT_MESSAGE);
|
|
2132
2132
|
}
|
|
2133
|
-
const U = (
|
|
2133
|
+
const U = (Y) => e.modifiers ? e.modifiers[Y] : DEFAULT_MODIFIER, V = isPlainObject$1(e.processor) && isFunction$1(e.processor.normalize) ? e.processor.normalize : DEFAULT_NORMALIZE, J = isPlainObject$1(e.processor) && isFunction$1(e.processor.interpolate) ? e.processor.interpolate : DEFAULT_INTERPOLATE, ce = isPlainObject$1(e.processor) && isString$2(e.processor.type) ? e.processor.type : DEFAULT_MESSAGE_DATA_TYPE, re = {
|
|
2134
2134
|
list: A,
|
|
2135
|
-
named:
|
|
2135
|
+
named: B,
|
|
2136
2136
|
plural: l,
|
|
2137
|
-
linked: (
|
|
2137
|
+
linked: (Y, ...Q) => {
|
|
2138
2138
|
const [ae, te] = Q;
|
|
2139
2139
|
let oe = "text", ne = "";
|
|
2140
2140
|
Q.length === 1 ? isObject$2(ae) ? (ne = ae.modifier || ne, oe = ae.type || oe) : isString$2(ae) && (ne = ae || ne) : Q.length === 2 && (isString$2(ae) && (ne = ae || ne), isString$2(te) && (oe = te || oe));
|
|
2141
|
-
const ie = Y
|
|
2141
|
+
const ie = q(Y)(re), G = (
|
|
2142
2142
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
2143
2143
|
oe === "vnode" && isArray$1(ie) && ne ? ie[0] : ie
|
|
2144
2144
|
);
|
|
2145
2145
|
return ne ? U(ne)(G, oe) : G;
|
|
2146
2146
|
},
|
|
2147
|
-
message:
|
|
2147
|
+
message: q,
|
|
2148
2148
|
type: ce,
|
|
2149
2149
|
interpolate: J,
|
|
2150
2150
|
normalize: V,
|
|
@@ -2318,7 +2318,7 @@ const setFallbackContext = (e) => {
|
|
|
2318
2318
|
}, getFallbackContext = () => _fallbackContext;
|
|
2319
2319
|
let _cid = 0;
|
|
2320
2320
|
function createCoreContext(e = {}) {
|
|
2321
|
-
const t = isFunction$1(e.onWarn) ? e.onWarn : warn$2, n = isString$2(e.version) ? e.version : VERSION$1, s = isString$2(e.locale) || isFunction$1(e.locale) ? e.locale : DEFAULT_LOCALE, c = isFunction$1(s) ? DEFAULT_LOCALE : s, l = isArray$1(e.fallbackLocale) || isPlainObject$1(e.fallbackLocale) || isString$2(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c, C = isPlainObject$1(e.messages) ? e.messages : { [c]: {} }, A = isPlainObject$1(e.datetimeFormats) ? e.datetimeFormats : { [c]: {} }, L = isPlainObject$1(e.numberFormats) ? e.numberFormats : { [c]: {} },
|
|
2321
|
+
const t = isFunction$1(e.onWarn) ? e.onWarn : warn$2, n = isString$2(e.version) ? e.version : VERSION$1, s = isString$2(e.locale) || isFunction$1(e.locale) ? e.locale : DEFAULT_LOCALE, c = isFunction$1(s) ? DEFAULT_LOCALE : s, l = isArray$1(e.fallbackLocale) || isPlainObject$1(e.fallbackLocale) || isString$2(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c, C = isPlainObject$1(e.messages) ? e.messages : { [c]: {} }, A = isPlainObject$1(e.datetimeFormats) ? e.datetimeFormats : { [c]: {} }, L = isPlainObject$1(e.numberFormats) ? e.numberFormats : { [c]: {} }, B = assign$1({}, e.modifiers || {}, getDefaultLinkedModifiers()), q = e.pluralRules || {}, U = isFunction$1(e.missing) ? e.missing : null, V = isBoolean(e.missingWarn) || isRegExp(e.missingWarn) ? e.missingWarn : !0, J = isBoolean(e.fallbackWarn) || isRegExp(e.fallbackWarn) ? e.fallbackWarn : !0, ce = !!e.fallbackFormat, se = !!e.unresolving, re = isFunction$1(e.postTranslation) ? e.postTranslation : null, Y = isPlainObject$1(e.processor) ? e.processor : null, Q = isBoolean(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, ae = !!e.escapeParameter, te = isFunction$1(e.messageCompiler) ? e.messageCompiler : _compiler;
|
|
2322
2322
|
process.env.NODE_ENV !== "production" && isFunction$1(e.messageCompiler) && warnOnce(getWarnMessage$1(CoreWarnCodes.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
2323
2323
|
const oe = isFunction$1(e.messageResolver) ? e.messageResolver : _resolver || resolveWithKeyValue, ne = isFunction$1(e.localeFallbacker) ? e.localeFallbacker : _fallbacker || fallbackWithSimple, ie = isObject$2(e.fallbackContext) ? e.fallbackContext : void 0, G = e, $ = isObject$2(G.__datetimeFormatters) ? G.__datetimeFormatters : /* @__PURE__ */ new Map(), X = isObject$2(G.__numberFormatters) ? G.__numberFormatters : /* @__PURE__ */ new Map(), pe = isObject$2(G.__meta) ? G.__meta : {};
|
|
2324
2324
|
_cid++;
|
|
@@ -2328,15 +2328,15 @@ function createCoreContext(e = {}) {
|
|
|
2328
2328
|
locale: s,
|
|
2329
2329
|
fallbackLocale: l,
|
|
2330
2330
|
messages: C,
|
|
2331
|
-
modifiers:
|
|
2332
|
-
pluralRules:
|
|
2331
|
+
modifiers: B,
|
|
2332
|
+
pluralRules: q,
|
|
2333
2333
|
missing: U,
|
|
2334
2334
|
missingWarn: V,
|
|
2335
2335
|
fallbackWarn: J,
|
|
2336
2336
|
fallbackFormat: ce,
|
|
2337
2337
|
unresolving: se,
|
|
2338
2338
|
postTranslation: re,
|
|
2339
|
-
processor:
|
|
2339
|
+
processor: Y,
|
|
2340
2340
|
warnHtmlMessage: Q,
|
|
2341
2341
|
escapeParameter: ae,
|
|
2342
2342
|
messageCompiler: te,
|
|
@@ -2486,13 +2486,13 @@ function compile(e, t) {
|
|
|
2486
2486
|
}
|
|
2487
2487
|
const NOOP_MESSAGE_FUNCTION = () => "", isMessageFunction = (e) => isFunction$1(e);
|
|
2488
2488
|
function translate(e, ...t) {
|
|
2489
|
-
const { fallbackFormat: n, postTranslation: s, unresolving: c, messageCompiler: l, fallbackLocale: C, messages: A } = e, [L,
|
|
2490
|
-
V && escapeParams(
|
|
2491
|
-
let [
|
|
2489
|
+
const { fallbackFormat: n, postTranslation: s, unresolving: c, messageCompiler: l, fallbackLocale: C, messages: A } = e, [L, B] = parseTranslateArgs(...t), q = isBoolean(B.missingWarn) ? B.missingWarn : e.missingWarn, U = isBoolean(B.fallbackWarn) ? B.fallbackWarn : e.fallbackWarn, V = isBoolean(B.escapeParameter) ? B.escapeParameter : e.escapeParameter, J = !!B.resolvedMessage, ce = isString$2(B.default) || isBoolean(B.default) ? isBoolean(B.default) ? l ? L : () => L : B.default : n ? l ? L : () => L : "", se = n || ce !== "", re = getLocale(e, B);
|
|
2490
|
+
V && escapeParams(B);
|
|
2491
|
+
let [Y, Q, ae] = J ? [
|
|
2492
2492
|
L,
|
|
2493
2493
|
re,
|
|
2494
2494
|
A[re] || {}
|
|
2495
|
-
] : resolveMessageFormat(e, L, re, C, U,
|
|
2495
|
+
] : resolveMessageFormat(e, L, re, C, U, q), te = Y, oe = L;
|
|
2496
2496
|
if (!J && !(isString$2(te) || isMessageAST(te) || isMessageFunction(te)) && se && (te = ce, oe = te), !J && (!(isString$2(te) || isMessageAST(te) || isMessageFunction(te)) || !isString$2(Q)))
|
|
2497
2497
|
return c ? NOT_REOSLVED : L;
|
|
2498
2498
|
if (process.env.NODE_ENV !== "production" && isString$2(te) && e.messageCompiler == null)
|
|
@@ -2503,7 +2503,7 @@ function translate(e, ...t) {
|
|
|
2503
2503
|
}, G = isMessageFunction(te) ? te : compileMessageFormat(e, L, Q, te, oe, ie);
|
|
2504
2504
|
if (ne)
|
|
2505
2505
|
return te;
|
|
2506
|
-
const $ = getMessageContextOptions(e, Q, ae,
|
|
2506
|
+
const $ = getMessageContextOptions(e, Q, ae, B), X = createMessageContext($), pe = evaluateMessage(e, G, X), de = s ? s(pe, L) : pe;
|
|
2507
2507
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2508
2508
|
const ge = {
|
|
2509
2509
|
timestamp: Date.now(),
|
|
@@ -2522,11 +2522,11 @@ function escapeParams(e) {
|
|
|
2522
2522
|
});
|
|
2523
2523
|
}
|
|
2524
2524
|
function resolveMessageFormat(e, t, n, s, c, l) {
|
|
2525
|
-
const { messages: C, onWarn: A, messageResolver: L, localeFallbacker:
|
|
2525
|
+
const { messages: C, onWarn: A, messageResolver: L, localeFallbacker: B } = e, q = B(e, s, n);
|
|
2526
2526
|
let U = {}, V, J = null, ce = n, se = null;
|
|
2527
2527
|
const re = "translate";
|
|
2528
|
-
for (let
|
|
2529
|
-
if (V = se = Y
|
|
2528
|
+
for (let Y = 0; Y < q.length; Y++) {
|
|
2529
|
+
if (V = se = q[Y], process.env.NODE_ENV !== "production" && n !== V && isTranslateFallbackWarn(c, t) && A(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_TRANSLATE, {
|
|
2530
2530
|
key: t,
|
|
2531
2531
|
target: V
|
|
2532
2532
|
})), process.env.NODE_ENV !== "production" && n !== V) {
|
|
@@ -2575,8 +2575,8 @@ function compileMessageFormat(e, t, n, s, c, l) {
|
|
|
2575
2575
|
const V = () => s;
|
|
2576
2576
|
return V.locale = n, V.key = t, V;
|
|
2577
2577
|
}
|
|
2578
|
-
let L = null,
|
|
2579
|
-
process.env.NODE_ENV !== "production" && inBrowser && (L = window.performance.now(),
|
|
2578
|
+
let L = null, B, q;
|
|
2579
|
+
process.env.NODE_ENV !== "production" && inBrowser && (L = window.performance.now(), B = "intlify-message-compilation-start", q = "intlify-message-compilation-end", mark && mark(B));
|
|
2580
2580
|
const U = C(s, getCompileContext(e, n, c, s, A, l));
|
|
2581
2581
|
if (process.env.NODE_ENV !== "production" && inBrowser) {
|
|
2582
2582
|
const V = window.performance.now(), J = e.__v_emitter;
|
|
@@ -2585,7 +2585,7 @@ function compileMessageFormat(e, t, n, s, c, l) {
|
|
|
2585
2585
|
message: s,
|
|
2586
2586
|
time: V - L,
|
|
2587
2587
|
groupId: `translate:${t}`
|
|
2588
|
-
}),
|
|
2588
|
+
}), B && q && mark && measure && (mark(q), measure("intlify message compilation", B, q));
|
|
2589
2589
|
}
|
|
2590
2590
|
return U.locale = n, U.key = t, U.source = s, U;
|
|
2591
2591
|
}
|
|
@@ -2618,15 +2618,15 @@ function getCompileContext(e, t, n, s, c, l) {
|
|
|
2618
2618
|
warnHtmlMessage: c,
|
|
2619
2619
|
onError: (C) => {
|
|
2620
2620
|
if (l && l(C), process.env.NODE_ENV !== "production") {
|
|
2621
|
-
const A = getSourceForCodeFrame(s), L = `Message compilation error: ${C.message}`,
|
|
2622
|
-
|
|
2621
|
+
const A = getSourceForCodeFrame(s), L = `Message compilation error: ${C.message}`, B = C.location && A && generateCodeFrame(A, C.location.start.offset, C.location.end.offset), q = e.__v_emitter;
|
|
2622
|
+
q && A && q.emit("compile-error", {
|
|
2623
2623
|
message: A,
|
|
2624
2624
|
error: C.message,
|
|
2625
2625
|
start: C.location && C.location.start.offset,
|
|
2626
2626
|
end: C.location && C.location.end.offset,
|
|
2627
2627
|
groupId: `translate:${n}`
|
|
2628
|
-
}), console.error(
|
|
2629
|
-
${
|
|
2628
|
+
}), console.error(B ? `${L}
|
|
2629
|
+
${B}` : L);
|
|
2630
2630
|
} else
|
|
2631
2631
|
throw C;
|
|
2632
2632
|
},
|
|
@@ -2640,22 +2640,22 @@ function getSourceForCodeFrame(e) {
|
|
|
2640
2640
|
return e.loc.source;
|
|
2641
2641
|
}
|
|
2642
2642
|
function getMessageContextOptions(e, t, n, s) {
|
|
2643
|
-
const { modifiers: c, pluralRules: l, messageResolver: C, fallbackLocale: A, fallbackWarn: L, missingWarn:
|
|
2643
|
+
const { modifiers: c, pluralRules: l, messageResolver: C, fallbackLocale: A, fallbackWarn: L, missingWarn: B, fallbackContext: q } = e, V = {
|
|
2644
2644
|
locale: t,
|
|
2645
2645
|
modifiers: c,
|
|
2646
2646
|
pluralRules: l,
|
|
2647
2647
|
messages: (J) => {
|
|
2648
2648
|
let ce = C(n, J);
|
|
2649
|
-
if (ce == null &&
|
|
2650
|
-
const [, , se] = resolveMessageFormat(
|
|
2649
|
+
if (ce == null && q) {
|
|
2650
|
+
const [, , se] = resolveMessageFormat(q, J, t, A, L, B);
|
|
2651
2651
|
ce = C(se, J);
|
|
2652
2652
|
}
|
|
2653
2653
|
if (isString$2(ce) || isMessageAST(ce)) {
|
|
2654
2654
|
let se = !1;
|
|
2655
|
-
const
|
|
2655
|
+
const Y = compileMessageFormat(e, J, t, ce, J, () => {
|
|
2656
2656
|
se = !0;
|
|
2657
2657
|
});
|
|
2658
|
-
return se ? NOOP_MESSAGE_FUNCTION :
|
|
2658
|
+
return se ? NOOP_MESSAGE_FUNCTION : Y;
|
|
2659
2659
|
} else
|
|
2660
2660
|
return isMessageFunction(ce) ? ce : NOOP_MESSAGE_FUNCTION;
|
|
2661
2661
|
}
|
|
@@ -2670,15 +2670,15 @@ function datetime(e, ...t) {
|
|
|
2670
2670
|
const { datetimeFormats: n, unresolving: s, fallbackLocale: c, onWarn: l, localeFallbacker: C } = e, { __datetimeFormatters: A } = e;
|
|
2671
2671
|
if (process.env.NODE_ENV !== "production" && !Availabilities.dateTimeFormat)
|
|
2672
2672
|
return l(getWarnMessage$1(CoreWarnCodes.CANNOT_FORMAT_DATE)), MISSING_RESOLVE_VALUE;
|
|
2673
|
-
const [L,
|
|
2673
|
+
const [L, B, q, U] = parseDateTimeArgs(...t), V = isBoolean(q.missingWarn) ? q.missingWarn : e.missingWarn, J = isBoolean(q.fallbackWarn) ? q.fallbackWarn : e.fallbackWarn, ce = !!q.part, se = getLocale(e, q), re = C(
|
|
2674
2674
|
e,
|
|
2675
2675
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2676
2676
|
c,
|
|
2677
2677
|
se
|
|
2678
2678
|
);
|
|
2679
2679
|
if (!isString$2(L) || L === "")
|
|
2680
|
-
return new Intl.DateTimeFormat(se, U).format(
|
|
2681
|
-
let
|
|
2680
|
+
return new Intl.DateTimeFormat(se, U).format(B);
|
|
2681
|
+
let Y = {}, Q, ae = null, te = se, oe = null;
|
|
2682
2682
|
const ne = "datetime format";
|
|
2683
2683
|
for (let $ = 0; $ < re.length; $++) {
|
|
2684
2684
|
if (Q = oe = re[$], process.env.NODE_ENV !== "production" && se !== Q && isTranslateFallbackWarn(J, L) && l(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_DATE_FORMAT, {
|
|
@@ -2694,7 +2694,7 @@ function datetime(e, ...t) {
|
|
|
2694
2694
|
groupId: `${ne}:${L}`
|
|
2695
2695
|
});
|
|
2696
2696
|
}
|
|
2697
|
-
if (
|
|
2697
|
+
if (Y = n[Q] || {}, ae = Y[L], isPlainObject$1(ae))
|
|
2698
2698
|
break;
|
|
2699
2699
|
handleMissing(e, L, Q, V, ne), te = oe;
|
|
2700
2700
|
}
|
|
@@ -2703,7 +2703,7 @@ function datetime(e, ...t) {
|
|
|
2703
2703
|
let ie = `${Q}__${L}`;
|
|
2704
2704
|
isEmptyObject(U) || (ie = `${ie}__${JSON.stringify(U)}`);
|
|
2705
2705
|
let G = A.get(ie);
|
|
2706
|
-
return G || (G = new Intl.DateTimeFormat(Q, assign$1({}, ae, U)), A.set(ie, G)), ce ? G.formatToParts(
|
|
2706
|
+
return G || (G = new Intl.DateTimeFormat(Q, assign$1({}, ae, U)), A.set(ie, G)), ce ? G.formatToParts(B) : G.format(B);
|
|
2707
2707
|
}
|
|
2708
2708
|
const DATETIME_FORMAT_OPTIONS_KEYS = [
|
|
2709
2709
|
"localeMatcher",
|
|
@@ -2734,8 +2734,8 @@ function parseDateTimeArgs(...e) {
|
|
|
2734
2734
|
const L = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
2735
2735
|
if (!L)
|
|
2736
2736
|
throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);
|
|
2737
|
-
const
|
|
2738
|
-
A = new Date(
|
|
2737
|
+
const B = L[3] ? L[3].trim().startsWith("T") ? `${L[1].trim()}${L[3].trim()}` : `${L[1].trim()}T${L[3].trim()}` : L[1].trim();
|
|
2738
|
+
A = new Date(B);
|
|
2739
2739
|
try {
|
|
2740
2740
|
A.toISOString();
|
|
2741
2741
|
} catch {
|
|
@@ -2764,15 +2764,15 @@ function number(e, ...t) {
|
|
|
2764
2764
|
const { numberFormats: n, unresolving: s, fallbackLocale: c, onWarn: l, localeFallbacker: C } = e, { __numberFormatters: A } = e;
|
|
2765
2765
|
if (process.env.NODE_ENV !== "production" && !Availabilities.numberFormat)
|
|
2766
2766
|
return l(getWarnMessage$1(CoreWarnCodes.CANNOT_FORMAT_NUMBER)), MISSING_RESOLVE_VALUE;
|
|
2767
|
-
const [L,
|
|
2767
|
+
const [L, B, q, U] = parseNumberArgs(...t), V = isBoolean(q.missingWarn) ? q.missingWarn : e.missingWarn, J = isBoolean(q.fallbackWarn) ? q.fallbackWarn : e.fallbackWarn, ce = !!q.part, se = getLocale(e, q), re = C(
|
|
2768
2768
|
e,
|
|
2769
2769
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2770
2770
|
c,
|
|
2771
2771
|
se
|
|
2772
2772
|
);
|
|
2773
2773
|
if (!isString$2(L) || L === "")
|
|
2774
|
-
return new Intl.NumberFormat(se, U).format(
|
|
2775
|
-
let
|
|
2774
|
+
return new Intl.NumberFormat(se, U).format(B);
|
|
2775
|
+
let Y = {}, Q, ae = null, te = se, oe = null;
|
|
2776
2776
|
const ne = "number format";
|
|
2777
2777
|
for (let $ = 0; $ < re.length; $++) {
|
|
2778
2778
|
if (Q = oe = re[$], process.env.NODE_ENV !== "production" && se !== Q && isTranslateFallbackWarn(J, L) && l(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_NUMBER_FORMAT, {
|
|
@@ -2788,7 +2788,7 @@ function number(e, ...t) {
|
|
|
2788
2788
|
groupId: `${ne}:${L}`
|
|
2789
2789
|
});
|
|
2790
2790
|
}
|
|
2791
|
-
if (
|
|
2791
|
+
if (Y = n[Q] || {}, ae = Y[L], isPlainObject$1(ae))
|
|
2792
2792
|
break;
|
|
2793
2793
|
handleMissing(e, L, Q, V, ne), te = oe;
|
|
2794
2794
|
}
|
|
@@ -2797,7 +2797,7 @@ function number(e, ...t) {
|
|
|
2797
2797
|
let ie = `${Q}__${L}`;
|
|
2798
2798
|
isEmptyObject(U) || (ie = `${ie}__${JSON.stringify(U)}`);
|
|
2799
2799
|
let G = A.get(ie);
|
|
2800
|
-
return G || (G = new Intl.NumberFormat(Q, assign$1({}, ae, U)), A.set(ie, G)), ce ? G.formatToParts(
|
|
2800
|
+
return G || (G = new Intl.NumberFormat(Q, assign$1({}, ae, U)), A.set(ie, G)), ce ? G.formatToParts(B) : G.format(B);
|
|
2801
2801
|
}
|
|
2802
2802
|
const NUMBER_FORMAT_OPTIONS_KEYS = [
|
|
2803
2803
|
"localeMatcher",
|
|
@@ -3271,16 +3271,16 @@ function trigger(e, t, n, s, c, l) {
|
|
|
3271
3271
|
if (startBatch(), t === "clear")
|
|
3272
3272
|
C.forEach(A);
|
|
3273
3273
|
else {
|
|
3274
|
-
const L = isArray(e),
|
|
3274
|
+
const L = isArray(e), B = L && isIntegerKey(n);
|
|
3275
3275
|
if (L && n === "length") {
|
|
3276
|
-
const
|
|
3276
|
+
const q = Number(s);
|
|
3277
3277
|
C.forEach((U, V) => {
|
|
3278
|
-
(V === "length" || V === ARRAY_ITERATE_KEY || !isSymbol(V) && V >=
|
|
3278
|
+
(V === "length" || V === ARRAY_ITERATE_KEY || !isSymbol(V) && V >= q) && A(U);
|
|
3279
3279
|
});
|
|
3280
3280
|
} else
|
|
3281
|
-
switch ((n !== void 0 || C.has(void 0)) && A(C.get(n)),
|
|
3281
|
+
switch ((n !== void 0 || C.has(void 0)) && A(C.get(n)), B && A(C.get(ARRAY_ITERATE_KEY)), t) {
|
|
3282
3282
|
case "add":
|
|
3283
|
-
L ?
|
|
3283
|
+
L ? B && A(C.get("length")) : (A(C.get(ITERATE_KEY)), isMap(e) && A(C.get(MAP_KEY_ITERATE_KEY)));
|
|
3284
3284
|
break;
|
|
3285
3285
|
case "delete":
|
|
3286
3286
|
L || (A(C.get(ITERATE_KEY)), isMap(e) && A(C.get(MAP_KEY_ITERATE_KEY)));
|
|
@@ -3402,14 +3402,14 @@ function apply$1(e, t, n, s, c, l) {
|
|
|
3402
3402
|
const U = L.apply(e, l);
|
|
3403
3403
|
return A ? toReactive(U) : U;
|
|
3404
3404
|
}
|
|
3405
|
-
let
|
|
3406
|
-
C !== e && (A ?
|
|
3405
|
+
let B = n;
|
|
3406
|
+
C !== e && (A ? B = function(U, V) {
|
|
3407
3407
|
return n.call(this, toReactive(U), V, e);
|
|
3408
|
-
} : n.length > 2 && (
|
|
3408
|
+
} : n.length > 2 && (B = function(U, V) {
|
|
3409
3409
|
return n.call(this, U, V, e);
|
|
3410
3410
|
}));
|
|
3411
|
-
const
|
|
3412
|
-
return A && c ? c(
|
|
3411
|
+
const q = L.call(C, B, s);
|
|
3412
|
+
return A && c ? c(q) : q;
|
|
3413
3413
|
}
|
|
3414
3414
|
function reduce(e, t, n, s) {
|
|
3415
3415
|
const c = shallowReadArray(e);
|
|
@@ -3531,7 +3531,7 @@ class ReadonlyReactiveHandler extends BaseReactiveHandler {
|
|
|
3531
3531
|
const mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler(), readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(), shallowReadonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(!0), toShallow = (e) => e, getProto = (e) => Reflect.getPrototypeOf(e);
|
|
3532
3532
|
function createIterableMethod(e, t, n) {
|
|
3533
3533
|
return function(...s) {
|
|
3534
|
-
const c = this.__v_raw, l = toRaw(c), C = isMap(l), A = e === "entries" || e === Symbol.iterator && C, L = e === "keys" && C,
|
|
3534
|
+
const c = this.__v_raw, l = toRaw(c), C = isMap(l), A = e === "entries" || e === Symbol.iterator && C, L = e === "keys" && C, B = c[e](...s), q = n ? toShallow : t ? toReadonly : toReactive;
|
|
3535
3535
|
return !t && track(
|
|
3536
3536
|
l,
|
|
3537
3537
|
"iterate",
|
|
@@ -3539,9 +3539,9 @@ function createIterableMethod(e, t, n) {
|
|
|
3539
3539
|
), {
|
|
3540
3540
|
// iterator protocol
|
|
3541
3541
|
next() {
|
|
3542
|
-
const { value: U, done: V } =
|
|
3542
|
+
const { value: U, done: V } = B.next();
|
|
3543
3543
|
return V ? { value: U, done: V } : {
|
|
3544
|
-
value: A ? [
|
|
3544
|
+
value: A ? [q(U[0]), q(U[1])] : q(U),
|
|
3545
3545
|
done: V
|
|
3546
3546
|
};
|
|
3547
3547
|
},
|
|
@@ -3569,11 +3569,11 @@ function createInstrumentations(e, t) {
|
|
|
3569
3569
|
get(c) {
|
|
3570
3570
|
const l = this.__v_raw, C = toRaw(l), A = toRaw(c);
|
|
3571
3571
|
e || (hasChanged(c, A) && track(C, "get", c), track(C, "get", A));
|
|
3572
|
-
const { has: L } = getProto(C),
|
|
3572
|
+
const { has: L } = getProto(C), B = t ? toShallow : e ? toReadonly : toReactive;
|
|
3573
3573
|
if (L.call(C, c))
|
|
3574
|
-
return
|
|
3574
|
+
return B(l.get(c));
|
|
3575
3575
|
if (L.call(C, A))
|
|
3576
|
-
return
|
|
3576
|
+
return B(l.get(A));
|
|
3577
3577
|
l !== C && l.get(c);
|
|
3578
3578
|
},
|
|
3579
3579
|
get size() {
|
|
@@ -3585,8 +3585,8 @@ function createInstrumentations(e, t) {
|
|
|
3585
3585
|
return e || (hasChanged(c, A) && track(C, "has", c), track(C, "has", A)), c === A ? l.has(c) : l.has(c) || l.has(A);
|
|
3586
3586
|
},
|
|
3587
3587
|
forEach(c, l) {
|
|
3588
|
-
const C = this, A = C.__v_raw, L = toRaw(A),
|
|
3589
|
-
return !e && track(L, "iterate", ITERATE_KEY), A.forEach((
|
|
3588
|
+
const C = this, A = C.__v_raw, L = toRaw(A), B = t ? toShallow : e ? toReadonly : toReactive;
|
|
3589
|
+
return !e && track(L, "iterate", ITERATE_KEY), A.forEach((q, U) => c.call(l, B(q), B(U), C));
|
|
3590
3590
|
}
|
|
3591
3591
|
};
|
|
3592
3592
|
return extend(
|
|
@@ -3605,17 +3605,17 @@ function createInstrumentations(e, t) {
|
|
|
3605
3605
|
set(c, l) {
|
|
3606
3606
|
!t && !isShallow(l) && !isReadonly(l) && (l = toRaw(l));
|
|
3607
3607
|
const C = toRaw(this), { has: A, get: L } = getProto(C);
|
|
3608
|
-
let
|
|
3609
|
-
|
|
3610
|
-
const
|
|
3611
|
-
return C.set(c, l),
|
|
3608
|
+
let B = A.call(C, c);
|
|
3609
|
+
B ? process.env.NODE_ENV !== "production" && checkIdentityKeys(C, A, c) : (c = toRaw(c), B = A.call(C, c));
|
|
3610
|
+
const q = L.call(C, c);
|
|
3611
|
+
return C.set(c, l), B ? hasChanged(l, q) && trigger(C, "set", c, l, q) : trigger(C, "add", c, l), this;
|
|
3612
3612
|
},
|
|
3613
3613
|
delete(c) {
|
|
3614
3614
|
const l = toRaw(this), { has: C, get: A } = getProto(l);
|
|
3615
3615
|
let L = C.call(l, c);
|
|
3616
3616
|
L ? process.env.NODE_ENV !== "production" && checkIdentityKeys(l, C, c) : (c = toRaw(c), L = C.call(l, c));
|
|
3617
|
-
const
|
|
3618
|
-
return L && trigger(l, "delete", c, void 0,
|
|
3617
|
+
const B = A ? A.call(l, c) : void 0, q = l.delete(c);
|
|
3618
|
+
return L && trigger(l, "delete", c, void 0, B), q;
|
|
3619
3619
|
},
|
|
3620
3620
|
clear() {
|
|
3621
3621
|
const c = toRaw(this), l = c.size !== 0, C = process.env.NODE_ENV !== "production" ? isMap(c) ? new Map(c) : new Set(c) : void 0, A = c.clear();
|
|
@@ -3837,22 +3837,22 @@ function onWatcherCleanup(e, t = !1, n = activeWatcher) {
|
|
|
3837
3837
|
);
|
|
3838
3838
|
}
|
|
3839
3839
|
function watch$1(e, t, n = EMPTY_OBJ) {
|
|
3840
|
-
const { immediate: s, deep: c, once: l, scheduler: C, augmentJob: A, call: L } = n,
|
|
3840
|
+
const { immediate: s, deep: c, once: l, scheduler: C, augmentJob: A, call: L } = n, B = (oe) => {
|
|
3841
3841
|
(n.onWarn || warn)(
|
|
3842
3842
|
"Invalid watch source: ",
|
|
3843
3843
|
oe,
|
|
3844
3844
|
"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
|
|
3845
3845
|
);
|
|
3846
|
-
},
|
|
3846
|
+
}, q = (oe) => c ? oe : isShallow(oe) || c === !1 || c === 0 ? traverse(oe, 1) : traverse(oe);
|
|
3847
3847
|
let U, V, J, ce, se = !1, re = !1;
|
|
3848
|
-
if (isRef(e) ? (V = () => e.value, se = isShallow(e)) : isReactive(e) ? (V = () =>
|
|
3848
|
+
if (isRef(e) ? (V = () => e.value, se = isShallow(e)) : isReactive(e) ? (V = () => q(e), se = !0) : isArray(e) ? (re = !0, se = e.some((oe) => isReactive(oe) || isShallow(oe)), V = () => e.map((oe) => {
|
|
3849
3849
|
if (isRef(oe))
|
|
3850
3850
|
return oe.value;
|
|
3851
3851
|
if (isReactive(oe))
|
|
3852
|
-
return
|
|
3852
|
+
return q(oe);
|
|
3853
3853
|
if (isFunction(oe))
|
|
3854
3854
|
return L ? L(oe, 2) : oe();
|
|
3855
|
-
process.env.NODE_ENV !== "production" &&
|
|
3855
|
+
process.env.NODE_ENV !== "production" && B(oe);
|
|
3856
3856
|
})) : isFunction(e) ? t ? V = L ? () => L(e, 2) : e : V = () => {
|
|
3857
3857
|
if (J) {
|
|
3858
3858
|
pauseTracking();
|
|
@@ -3869,12 +3869,12 @@ function watch$1(e, t, n = EMPTY_OBJ) {
|
|
|
3869
3869
|
} finally {
|
|
3870
3870
|
activeWatcher = oe;
|
|
3871
3871
|
}
|
|
3872
|
-
} : (V = NOOP, process.env.NODE_ENV !== "production" &&
|
|
3872
|
+
} : (V = NOOP, process.env.NODE_ENV !== "production" && B(e)), t && c) {
|
|
3873
3873
|
const oe = V, ne = c === !0 ? 1 / 0 : c;
|
|
3874
3874
|
V = () => traverse(oe(), ne);
|
|
3875
3875
|
}
|
|
3876
|
-
const
|
|
3877
|
-
U.stop(),
|
|
3876
|
+
const Y = getCurrentScope(), Q = () => {
|
|
3877
|
+
U.stop(), Y && Y.active && remove(Y.effects, U);
|
|
3878
3878
|
};
|
|
3879
3879
|
if (l && t) {
|
|
3880
3880
|
const oe = t;
|
|
@@ -4086,12 +4086,12 @@ function handleError(e, t, n, s = !0) {
|
|
|
4086
4086
|
const c = t ? t.vnode : null, { errorHandler: l, throwUnhandledErrorInProduction: C } = t && t.appContext.config || EMPTY_OBJ;
|
|
4087
4087
|
if (t) {
|
|
4088
4088
|
let A = t.parent;
|
|
4089
|
-
const L = t.proxy,
|
|
4089
|
+
const L = t.proxy, B = process.env.NODE_ENV !== "production" ? ErrorTypeStrings$1[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
4090
4090
|
for (; A; ) {
|
|
4091
|
-
const
|
|
4092
|
-
if (
|
|
4093
|
-
for (let U = 0; U <
|
|
4094
|
-
if (
|
|
4091
|
+
const q = A.ec;
|
|
4092
|
+
if (q) {
|
|
4093
|
+
for (let U = 0; U < q.length; U++)
|
|
4094
|
+
if (q[U](e, L, B) === !1)
|
|
4095
4095
|
return;
|
|
4096
4096
|
}
|
|
4097
4097
|
A = A.parent;
|
|
@@ -4100,7 +4100,7 @@ function handleError(e, t, n, s = !0) {
|
|
|
4100
4100
|
pauseTracking(), callWithErrorHandling(l, null, 10, [
|
|
4101
4101
|
e,
|
|
4102
4102
|
L,
|
|
4103
|
-
|
|
4103
|
+
B
|
|
4104
4104
|
]), resetTracking();
|
|
4105
4105
|
return;
|
|
4106
4106
|
}
|
|
@@ -4335,7 +4335,7 @@ const createHook = (e) => (t, n = currentInstance) => {
|
|
|
4335
4335
|
const { ctx: n, setupState: s, data: c, props: l, accessCache: C, type: A, appContext: L } = e;
|
|
4336
4336
|
if (process.env.NODE_ENV !== "production" && t === "__isVue")
|
|
4337
4337
|
return !0;
|
|
4338
|
-
let
|
|
4338
|
+
let B;
|
|
4339
4339
|
if (t[0] !== "$") {
|
|
4340
4340
|
const J = C[t];
|
|
4341
4341
|
if (J !== void 0)
|
|
@@ -4357,7 +4357,7 @@ const createHook = (e) => (t, n = currentInstance) => {
|
|
|
4357
4357
|
if (
|
|
4358
4358
|
// only cache other properties when instance has declared (thus stable)
|
|
4359
4359
|
// props
|
|
4360
|
-
(
|
|
4360
|
+
(B = e.propsOptions[0]) && hasOwn(B, t)
|
|
4361
4361
|
)
|
|
4362
4362
|
return C[t] = 3, l[t];
|
|
4363
4363
|
if (n !== EMPTY_OBJ && hasOwn(n, t))
|
|
@@ -4365,10 +4365,10 @@ const createHook = (e) => (t, n = currentInstance) => {
|
|
|
4365
4365
|
(!__VUE_OPTIONS_API__ || shouldCacheAccess) && (C[t] = 0);
|
|
4366
4366
|
}
|
|
4367
4367
|
}
|
|
4368
|
-
const
|
|
4368
|
+
const q = publicPropertiesMap[t];
|
|
4369
4369
|
let U, V;
|
|
4370
|
-
if (
|
|
4371
|
-
return t === "$attrs" ? (track(e.attrs, "get", ""), process.env.NODE_ENV !== "production" && void 0) : process.env.NODE_ENV !== "production" && t === "$slots" && track(e, "get", t),
|
|
4370
|
+
if (q)
|
|
4371
|
+
return t === "$attrs" ? (track(e.attrs, "get", ""), process.env.NODE_ENV !== "production" && void 0) : process.env.NODE_ENV !== "production" && t === "$slots" && track(e, "get", t), q(e);
|
|
4372
4372
|
if (
|
|
4373
4373
|
// css module (injected by vue-loader)
|
|
4374
4374
|
(U = A.__cssModules) && (U = U[t])
|
|
@@ -4429,7 +4429,7 @@ function resolveMergedOptions(e) {
|
|
|
4429
4429
|
} = e.appContext, A = l.get(t);
|
|
4430
4430
|
let L;
|
|
4431
4431
|
return A ? L = A : !c.length && !n && !s ? L = t : (L = {}, c.length && c.forEach(
|
|
4432
|
-
(
|
|
4432
|
+
(B) => mergeOptions(L, B, C, !0)
|
|
4433
4433
|
), mergeOptions(L, t, C)), isObject(t) && l.set(t, L), L;
|
|
4434
4434
|
}
|
|
4435
4435
|
function mergeOptions(e, t, n, s = !1) {
|
|
@@ -4560,29 +4560,29 @@ function doWatch(e, t, n = EMPTY_OBJ) {
|
|
|
4560
4560
|
const A = extend({}, n);
|
|
4561
4561
|
process.env.NODE_ENV !== "production" && (A.onWarn = warn$1);
|
|
4562
4562
|
const L = t && s || !t && l !== "post";
|
|
4563
|
-
let
|
|
4563
|
+
let B;
|
|
4564
4564
|
if (isInSSRComponentSetup) {
|
|
4565
4565
|
if (l === "sync") {
|
|
4566
4566
|
const J = useSSRContext();
|
|
4567
|
-
|
|
4567
|
+
B = J.__watcherHandles || (J.__watcherHandles = []);
|
|
4568
4568
|
} else if (!L) {
|
|
4569
4569
|
const J = () => {
|
|
4570
4570
|
};
|
|
4571
4571
|
return J.stop = NOOP, J.resume = NOOP, J.pause = NOOP, J;
|
|
4572
4572
|
}
|
|
4573
4573
|
}
|
|
4574
|
-
const
|
|
4575
|
-
A.call = (J, ce, se) => callWithAsyncErrorHandling(J,
|
|
4574
|
+
const q = currentInstance;
|
|
4575
|
+
A.call = (J, ce, se) => callWithAsyncErrorHandling(J, q, ce, se);
|
|
4576
4576
|
let U = !1;
|
|
4577
4577
|
l === "post" ? A.scheduler = (J) => {
|
|
4578
|
-
queuePostRenderEffect(J,
|
|
4578
|
+
queuePostRenderEffect(J, q && q.suspense);
|
|
4579
4579
|
} : l !== "sync" && (U = !0, A.scheduler = (J, ce) => {
|
|
4580
4580
|
ce ? J() : queueJob(J);
|
|
4581
4581
|
}), A.augmentJob = (J) => {
|
|
4582
|
-
t && (J.flags |= 4), U && (J.flags |= 2,
|
|
4582
|
+
t && (J.flags |= 4), U && (J.flags |= 2, q && (J.id = q.uid, J.i = q));
|
|
4583
4583
|
};
|
|
4584
4584
|
const V = watch$1(e, t, A);
|
|
4585
|
-
return isInSSRComponentSetup && (
|
|
4585
|
+
return isInSSRComponentSetup && (B ? B.push(V) : L && V()), V;
|
|
4586
4586
|
}
|
|
4587
4587
|
function instanceWatch(e, t, n) {
|
|
4588
4588
|
const s = this.proxy, c = isString(e) ? e.includes(".") ? createPathGetter(s, e) : () => s[e] : e.bind(s, s);
|
|
@@ -4695,12 +4695,12 @@ function guardReactiveProps(e) {
|
|
|
4695
4695
|
return e ? isProxy(e) || isInternalObject(e) ? extend({}, e) : e : null;
|
|
4696
4696
|
}
|
|
4697
4697
|
function cloneVNode(e, t, n = !1, s = !1) {
|
|
4698
|
-
const { props: c, ref: l, patchFlag: C, children: A, transition: L } = e,
|
|
4698
|
+
const { props: c, ref: l, patchFlag: C, children: A, transition: L } = e, B = t ? mergeProps(c || {}, t) : c, q = {
|
|
4699
4699
|
__v_isVNode: !0,
|
|
4700
4700
|
__v_skip: !0,
|
|
4701
4701
|
type: e.type,
|
|
4702
|
-
props:
|
|
4703
|
-
key:
|
|
4702
|
+
props: B,
|
|
4703
|
+
key: B && normalizeKey(B),
|
|
4704
4704
|
ref: t && t.ref ? (
|
|
4705
4705
|
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
4706
4706
|
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
@@ -4739,9 +4739,9 @@ function cloneVNode(e, t, n = !1, s = !1) {
|
|
|
4739
4739
|
ce: e.ce
|
|
4740
4740
|
};
|
|
4741
4741
|
return L && s && setTransitionHooks(
|
|
4742
|
-
|
|
4743
|
-
L.clone(
|
|
4744
|
-
),
|
|
4742
|
+
q,
|
|
4743
|
+
L.clone(q)
|
|
4744
|
+
), q;
|
|
4745
4745
|
}
|
|
4746
4746
|
function deepCloneVNode(e) {
|
|
4747
4747
|
const t = cloneVNode(e);
|
|
@@ -4876,7 +4876,7 @@ function initCustomFormatter() {
|
|
|
4876
4876
|
return isObject(U) ? U.__isVue ? ["div", e, "VueInstance"] : isRef(U) ? [
|
|
4877
4877
|
"div",
|
|
4878
4878
|
{},
|
|
4879
|
-
["span", e,
|
|
4879
|
+
["span", e, q(U)],
|
|
4880
4880
|
"<",
|
|
4881
4881
|
// avoid debugger accessing value affecting behavior
|
|
4882
4882
|
A("_value" in U ? U._value : U),
|
|
@@ -4962,15 +4962,15 @@ function initCustomFormatter() {
|
|
|
4962
4962
|
return;
|
|
4963
4963
|
const ce = {};
|
|
4964
4964
|
for (const se in U.ctx)
|
|
4965
|
-
|
|
4965
|
+
B(J, se, V) && (ce[se] = U.ctx[se]);
|
|
4966
4966
|
return ce;
|
|
4967
4967
|
}
|
|
4968
|
-
function
|
|
4968
|
+
function B(U, V, J) {
|
|
4969
4969
|
const ce = U[J];
|
|
4970
|
-
if (isArray(ce) && ce.includes(V) || isObject(ce) && V in ce || U.extends &&
|
|
4970
|
+
if (isArray(ce) && ce.includes(V) || isObject(ce) && V in ce || U.extends && B(U.extends, V, J) || U.mixins && U.mixins.some((se) => B(se, V, J)))
|
|
4971
4971
|
return !0;
|
|
4972
4972
|
}
|
|
4973
|
-
function
|
|
4973
|
+
function q(U) {
|
|
4974
4974
|
return isShallow(U) ? "ShallowRef" : U.effect ? "ComputedRef" : "Ref";
|
|
4975
4975
|
}
|
|
4976
4976
|
window.devtoolsFormatters ? window.devtoolsFormatters.push(c) : window.devtoolsFormatters = [c];
|
|
@@ -5047,11 +5047,11 @@ class ApiProxy {
|
|
|
5047
5047
|
args: L,
|
|
5048
5048
|
resolve: () => {
|
|
5049
5049
|
}
|
|
5050
|
-
}), this.fallbacks[A](...L)) : (...L) => new Promise((
|
|
5050
|
+
}), this.fallbacks[A](...L)) : (...L) => new Promise((B) => {
|
|
5051
5051
|
this.targetQueue.push({
|
|
5052
5052
|
method: A,
|
|
5053
5053
|
args: L,
|
|
5054
|
-
resolve:
|
|
5054
|
+
resolve: B
|
|
5055
5055
|
});
|
|
5056
5056
|
})
|
|
5057
5057
|
});
|
|
@@ -5211,8 +5211,8 @@ function getLocaleMessages(e, t) {
|
|
|
5211
5211
|
const { messages: n, __i18n: s, messageResolver: c, flatJson: l } = t, C = isPlainObject$1(n) ? n : isArray$1(s) ? {} : { [e]: {} };
|
|
5212
5212
|
if (isArray$1(s) && s.forEach((A) => {
|
|
5213
5213
|
if ("locale" in A && "resource" in A) {
|
|
5214
|
-
const { locale: L, resource:
|
|
5215
|
-
L ? (C[L] = C[L] || {}, deepCopy(
|
|
5214
|
+
const { locale: L, resource: B } = A;
|
|
5215
|
+
L ? (C[L] = C[L] || {}, deepCopy(B, C[L])) : deepCopy(B, C);
|
|
5216
5216
|
} else
|
|
5217
5217
|
isString$2(A) && deepCopy(JSON.parse(A), C);
|
|
5218
5218
|
}), c == null && l)
|
|
@@ -5265,29 +5265,29 @@ function createComposer(e = {}, t) {
|
|
|
5265
5265
|
const { __root: n, __injectWithOption: s } = e, c = n === void 0, l = e.flatJson, C = inBrowser ? ref : shallowRef, A = !!e.translateExistCompatible;
|
|
5266
5266
|
process.env.NODE_ENV !== "production" && A && warnOnce(getWarnMessage(I18nWarnCodes.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));
|
|
5267
5267
|
let L = isBoolean(e.inheritLocale) ? e.inheritLocale : !0;
|
|
5268
|
-
const
|
|
5268
|
+
const B = C(
|
|
5269
5269
|
// prettier-ignore
|
|
5270
5270
|
n && L ? n.locale.value : isString$2(e.locale) ? e.locale : DEFAULT_LOCALE
|
|
5271
|
-
),
|
|
5271
|
+
), q = C(
|
|
5272
5272
|
// prettier-ignore
|
|
5273
|
-
n && L ? n.fallbackLocale.value : isString$2(e.fallbackLocale) || isArray$1(e.fallbackLocale) || isPlainObject$1(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale :
|
|
5274
|
-
), U = C(getLocaleMessages(
|
|
5275
|
-
let ce = n ? n.missingWarn : isBoolean(e.missingWarn) || isRegExp(e.missingWarn) ? e.missingWarn : !0, se = n ? n.fallbackWarn : isBoolean(e.fallbackWarn) || isRegExp(e.fallbackWarn) ? e.fallbackWarn : !0, re = n ? n.fallbackRoot : isBoolean(e.fallbackRoot) ? e.fallbackRoot : !0,
|
|
5273
|
+
n && L ? n.fallbackLocale.value : isString$2(e.fallbackLocale) || isArray$1(e.fallbackLocale) || isPlainObject$1(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : B.value
|
|
5274
|
+
), U = C(getLocaleMessages(B.value, e)), V = C(isPlainObject$1(e.datetimeFormats) ? e.datetimeFormats : { [B.value]: {} }), J = C(isPlainObject$1(e.numberFormats) ? e.numberFormats : { [B.value]: {} });
|
|
5275
|
+
let ce = n ? n.missingWarn : isBoolean(e.missingWarn) || isRegExp(e.missingWarn) ? e.missingWarn : !0, se = n ? n.fallbackWarn : isBoolean(e.fallbackWarn) || isRegExp(e.fallbackWarn) ? e.fallbackWarn : !0, re = n ? n.fallbackRoot : isBoolean(e.fallbackRoot) ? e.fallbackRoot : !0, Y = !!e.fallbackFormat, Q = isFunction$1(e.missing) ? e.missing : null, ae = isFunction$1(e.missing) ? defineCoreMissingHandler(e.missing) : null, te = isFunction$1(e.postTranslation) ? e.postTranslation : null, oe = n ? n.warnHtmlMessage : isBoolean(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, ne = !!e.escapeParameter;
|
|
5276
5276
|
const ie = n ? n.modifiers : isPlainObject$1(e.modifiers) ? e.modifiers : {};
|
|
5277
5277
|
let G = e.pluralRules || n && n.pluralRules, $;
|
|
5278
5278
|
$ = (() => {
|
|
5279
5279
|
c && setFallbackContext(null);
|
|
5280
5280
|
const ee = {
|
|
5281
5281
|
version: VERSION,
|
|
5282
|
-
locale:
|
|
5283
|
-
fallbackLocale:
|
|
5282
|
+
locale: B.value,
|
|
5283
|
+
fallbackLocale: q.value,
|
|
5284
5284
|
messages: U.value,
|
|
5285
5285
|
modifiers: ie,
|
|
5286
5286
|
pluralRules: G,
|
|
5287
5287
|
missing: ae === null ? void 0 : ae,
|
|
5288
5288
|
missingWarn: ce,
|
|
5289
5289
|
fallbackWarn: se,
|
|
5290
|
-
fallbackFormat:
|
|
5290
|
+
fallbackFormat: Y,
|
|
5291
5291
|
unresolving: !0,
|
|
5292
5292
|
postTranslation: te === null ? void 0 : te,
|
|
5293
5293
|
warnHtmlMessage: oe,
|
|
@@ -5299,25 +5299,25 @@ function createComposer(e = {}, t) {
|
|
|
5299
5299
|
ee.datetimeFormats = V.value, ee.numberFormats = J.value, ee.__datetimeFormatters = isPlainObject$1($) ? $.__datetimeFormatters : void 0, ee.__numberFormatters = isPlainObject$1($) ? $.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (ee.__v_emitter = isPlainObject$1($) ? $.__v_emitter : void 0);
|
|
5300
5300
|
const le = createCoreContext(ee);
|
|
5301
5301
|
return c && setFallbackContext(le), le;
|
|
5302
|
-
})(), updateFallbackLocale($,
|
|
5302
|
+
})(), updateFallbackLocale($, B.value, q.value);
|
|
5303
5303
|
function pe() {
|
|
5304
5304
|
return [
|
|
5305
|
-
|
|
5306
|
-
|
|
5305
|
+
B.value,
|
|
5306
|
+
q.value,
|
|
5307
5307
|
U.value,
|
|
5308
5308
|
V.value,
|
|
5309
5309
|
J.value
|
|
5310
5310
|
];
|
|
5311
5311
|
}
|
|
5312
5312
|
const de = computed({
|
|
5313
|
-
get: () =>
|
|
5313
|
+
get: () => B.value,
|
|
5314
5314
|
set: (ee) => {
|
|
5315
|
-
|
|
5315
|
+
B.value = ee, $.locale = B.value;
|
|
5316
5316
|
}
|
|
5317
5317
|
}), ge = computed({
|
|
5318
|
-
get: () =>
|
|
5318
|
+
get: () => q.value,
|
|
5319
5319
|
set: (ee) => {
|
|
5320
|
-
|
|
5320
|
+
q.value = ee, $.fallbackLocale = q.value, updateFallbackLocale($, B.value, ee);
|
|
5321
5321
|
}
|
|
5322
5322
|
}), ve = computed(() => U.value), Ae = /* @__PURE__ */ computed(() => V.value), Ce = /* @__PURE__ */ computed(() => J.value);
|
|
5323
5323
|
function Ee() {
|
|
@@ -5419,7 +5419,7 @@ function createComposer(e = {}, t) {
|
|
|
5419
5419
|
(le) => isString$2(le) || isArray$1(le)
|
|
5420
5420
|
);
|
|
5421
5421
|
}
|
|
5422
|
-
function
|
|
5422
|
+
function W(...ee) {
|
|
5423
5423
|
return he(
|
|
5424
5424
|
(le) => Reflect.apply(datetime, null, [le, ...ee]),
|
|
5425
5425
|
() => parseDateTimeArgs(...ee),
|
|
@@ -5437,13 +5437,13 @@ function createComposer(e = {}, t) {
|
|
|
5437
5437
|
return he(() => {
|
|
5438
5438
|
if (!ee)
|
|
5439
5439
|
return !1;
|
|
5440
|
-
const Te = isString$2(le) ? le :
|
|
5440
|
+
const Te = isString$2(le) ? le : B.value, we = j(Te), je = $.messageResolver(we, ee);
|
|
5441
5441
|
return A ? je != null : isMessageAST(je) || isMessageFunction(je) || isString$2(je);
|
|
5442
5442
|
}, () => [ee], "translate exists", (Te) => Reflect.apply(Te.te, Te, [ee, le]), NOOP_RETURN_FALSE, (Te) => isBoolean(Te));
|
|
5443
5443
|
}
|
|
5444
5444
|
function F(ee) {
|
|
5445
5445
|
let le = null;
|
|
5446
|
-
const Te = fallbackWithLocaleChain($,
|
|
5446
|
+
const Te = fallbackWithLocaleChain($, q.value, B.value);
|
|
5447
5447
|
for (let we = 0; we < Te.length; we++) {
|
|
5448
5448
|
const je = U.value[Te[we]] || {}, Be = $.messageResolver(je, ee);
|
|
5449
5449
|
if (Be != null) {
|
|
@@ -5496,9 +5496,9 @@ function createComposer(e = {}, t) {
|
|
|
5496
5496
|
J.value[ee] = assign$1(J.value[ee] || {}, le), $.numberFormats = J.value, clearNumberFormat($, ee, le);
|
|
5497
5497
|
}
|
|
5498
5498
|
composerID++, n && inBrowser && (watch(n.locale, (ee) => {
|
|
5499
|
-
L && (
|
|
5499
|
+
L && (B.value = ee, $.locale = ee, updateFallbackLocale($, B.value, q.value));
|
|
5500
5500
|
}), watch(n.fallbackLocale, (ee) => {
|
|
5501
|
-
L && (
|
|
5501
|
+
L && (q.value = ee, $.fallbackLocale = ee, updateFallbackLocale($, B.value, q.value));
|
|
5502
5502
|
}));
|
|
5503
5503
|
const Ne = {
|
|
5504
5504
|
id: composerID,
|
|
@@ -5508,7 +5508,7 @@ function createComposer(e = {}, t) {
|
|
|
5508
5508
|
return L;
|
|
5509
5509
|
},
|
|
5510
5510
|
set inheritLocale(ee) {
|
|
5511
|
-
L = ee, ee && n && (
|
|
5511
|
+
L = ee, ee && n && (B.value = n.locale.value, q.value = n.fallbackLocale.value, updateFallbackLocale($, B.value, q.value));
|
|
5512
5512
|
},
|
|
5513
5513
|
get availableLocales() {
|
|
5514
5514
|
return Object.keys(U.value).sort();
|
|
@@ -5542,10 +5542,10 @@ function createComposer(e = {}, t) {
|
|
|
5542
5542
|
re = ee;
|
|
5543
5543
|
},
|
|
5544
5544
|
get fallbackFormat() {
|
|
5545
|
-
return
|
|
5545
|
+
return Y;
|
|
5546
5546
|
},
|
|
5547
5547
|
set fallbackFormat(ee) {
|
|
5548
|
-
|
|
5548
|
+
Y = ee, $.fallbackFormat = Y;
|
|
5549
5549
|
},
|
|
5550
5550
|
get warnHtmlMessage() {
|
|
5551
5551
|
return oe;
|
|
@@ -5569,14 +5569,14 @@ function createComposer(e = {}, t) {
|
|
|
5569
5569
|
setMissingHandler: Fe,
|
|
5570
5570
|
[SetPluralRulesSymbol]: R
|
|
5571
5571
|
};
|
|
5572
|
-
return Ne.datetimeFormats = Ae, Ne.numberFormats = Ce, Ne.rt = fe, Ne.te = I, Ne.tm = H, Ne.d = Pe, Ne.n = ke, Ne.getDateTimeFormat = z, Ne.setDateTimeFormat = ue, Ne.mergeDateTimeFormat = me, Ne.getNumberFormat = _e, Ne.setNumberFormat = ye, Ne.mergeNumberFormat = Se, Ne[InejctWithOptionSymbol] = s, Ne[TranslateVNodeSymbol] = D, Ne[DatetimePartsSymbol] =
|
|
5572
|
+
return Ne.datetimeFormats = Ae, Ne.numberFormats = Ce, Ne.rt = fe, Ne.te = I, Ne.tm = H, Ne.d = Pe, Ne.n = ke, Ne.getDateTimeFormat = z, Ne.setDateTimeFormat = ue, Ne.mergeDateTimeFormat = me, Ne.getNumberFormat = _e, Ne.setNumberFormat = ye, Ne.mergeNumberFormat = Se, Ne[InejctWithOptionSymbol] = s, Ne[TranslateVNodeSymbol] = D, Ne[DatetimePartsSymbol] = W, Ne[NumberPartsSymbol] = M, process.env.NODE_ENV !== "production" && (Ne[EnableEmitter] = (ee) => {
|
|
5573
5573
|
$.__v_emitter = ee;
|
|
5574
5574
|
}, Ne[DisableEmitter] = () => {
|
|
5575
5575
|
$.__v_emitter = void 0;
|
|
5576
5576
|
}), Ne;
|
|
5577
5577
|
}
|
|
5578
5578
|
function convertComposerOptions(e) {
|
|
5579
|
-
const t = isString$2(e.locale) ? e.locale : DEFAULT_LOCALE, n = isString$2(e.fallbackLocale) || isArray$1(e.fallbackLocale) || isPlainObject$1(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, s = isFunction$1(e.missing) ? e.missing : void 0, c = isBoolean(e.silentTranslationWarn) || isRegExp(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, l = isBoolean(e.silentFallbackWarn) || isRegExp(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, C = isBoolean(e.fallbackRoot) ? e.fallbackRoot : !0, A = !!e.formatFallbackMessages, L = isPlainObject$1(e.modifiers) ? e.modifiers : {},
|
|
5579
|
+
const t = isString$2(e.locale) ? e.locale : DEFAULT_LOCALE, n = isString$2(e.fallbackLocale) || isArray$1(e.fallbackLocale) || isPlainObject$1(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, s = isFunction$1(e.missing) ? e.missing : void 0, c = isBoolean(e.silentTranslationWarn) || isRegExp(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, l = isBoolean(e.silentFallbackWarn) || isRegExp(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, C = isBoolean(e.fallbackRoot) ? e.fallbackRoot : !0, A = !!e.formatFallbackMessages, L = isPlainObject$1(e.modifiers) ? e.modifiers : {}, B = e.pluralizationRules, q = isFunction$1(e.postTranslation) ? e.postTranslation : void 0, U = isString$2(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, V = !!e.escapeParameterHtml, J = isBoolean(e.sync) ? e.sync : !0;
|
|
5580
5580
|
process.env.NODE_ENV !== "production" && e.formatter && warn$2(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER)), process.env.NODE_ENV !== "production" && e.preserveDirectiveContent && warn$2(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE));
|
|
5581
5581
|
let ce = e.messages;
|
|
5582
5582
|
if (isPlainObject$1(e.sharedMessages)) {
|
|
@@ -5586,7 +5586,7 @@ function convertComposerOptions(e) {
|
|
|
5586
5586
|
return assign$1(X, ne[$]), G;
|
|
5587
5587
|
}, ce || {});
|
|
5588
5588
|
}
|
|
5589
|
-
const { __i18n: se, __root: re, __injectWithOption:
|
|
5589
|
+
const { __i18n: se, __root: re, __injectWithOption: Y } = e, Q = e.datetimeFormats, ae = e.numberFormats, te = e.flatJson, oe = e.translateExistCompatible;
|
|
5590
5590
|
return {
|
|
5591
5591
|
locale: t,
|
|
5592
5592
|
fallbackLocale: n,
|
|
@@ -5600,8 +5600,8 @@ function convertComposerOptions(e) {
|
|
|
5600
5600
|
fallbackRoot: C,
|
|
5601
5601
|
fallbackFormat: A,
|
|
5602
5602
|
modifiers: L,
|
|
5603
|
-
pluralRules:
|
|
5604
|
-
postTranslation:
|
|
5603
|
+
pluralRules: B,
|
|
5604
|
+
postTranslation: q,
|
|
5605
5605
|
warnHtmlMessage: U,
|
|
5606
5606
|
escapeParameter: V,
|
|
5607
5607
|
messageResolver: e.messageResolver,
|
|
@@ -5609,7 +5609,7 @@ function convertComposerOptions(e) {
|
|
|
5609
5609
|
translateExistCompatible: oe,
|
|
5610
5610
|
__i18n: se,
|
|
5611
5611
|
__root: re,
|
|
5612
|
-
__injectWithOption:
|
|
5612
|
+
__injectWithOption: Y
|
|
5613
5613
|
};
|
|
5614
5614
|
}
|
|
5615
5615
|
function createVueI18n(e = {}, t) {
|
|
@@ -5733,15 +5733,15 @@ function createVueI18n(e = {}, t) {
|
|
|
5733
5733
|
__composer: n,
|
|
5734
5734
|
// t
|
|
5735
5735
|
t(...l) {
|
|
5736
|
-
const [C, A, L] = l,
|
|
5737
|
-
let
|
|
5736
|
+
const [C, A, L] = l, B = {};
|
|
5737
|
+
let q = null, U = null;
|
|
5738
5738
|
if (!isString$2(C))
|
|
5739
5739
|
throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);
|
|
5740
5740
|
const V = C;
|
|
5741
|
-
return isString$2(A) ?
|
|
5741
|
+
return isString$2(A) ? B.locale = A : isArray$1(A) ? q = A : isPlainObject$1(A) && (U = A), isArray$1(L) ? q = L : isPlainObject$1(L) && (U = L), Reflect.apply(n.t, n, [
|
|
5742
5742
|
V,
|
|
5743
|
-
|
|
5744
|
-
|
|
5743
|
+
q || U || {},
|
|
5744
|
+
B
|
|
5745
5745
|
]);
|
|
5746
5746
|
},
|
|
5747
5747
|
rt(...l) {
|
|
@@ -5749,15 +5749,15 @@ function createVueI18n(e = {}, t) {
|
|
|
5749
5749
|
},
|
|
5750
5750
|
// tc
|
|
5751
5751
|
tc(...l) {
|
|
5752
|
-
const [C, A, L] = l,
|
|
5753
|
-
let
|
|
5752
|
+
const [C, A, L] = l, B = { plural: 1 };
|
|
5753
|
+
let q = null, U = null;
|
|
5754
5754
|
if (!isString$2(C))
|
|
5755
5755
|
throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);
|
|
5756
5756
|
const V = C;
|
|
5757
|
-
return isString$2(A) ?
|
|
5757
|
+
return isString$2(A) ? B.locale = A : isNumber(A) ? B.plural = A : isArray$1(A) ? q = A : isPlainObject$1(A) && (U = A), isString$2(L) ? B.locale = L : isArray$1(L) ? q = L : isPlainObject$1(L) && (U = L), Reflect.apply(n.t, n, [
|
|
5758
5758
|
V,
|
|
5759
|
-
|
|
5760
|
-
|
|
5759
|
+
q || U || {},
|
|
5760
|
+
B
|
|
5761
5761
|
]);
|
|
5762
5762
|
},
|
|
5763
5763
|
// te
|
|
@@ -5882,8 +5882,8 @@ const TranslationImpl = /* @__PURE__ */ defineComponent({
|
|
|
5882
5882
|
return () => {
|
|
5883
5883
|
const l = Object.keys(n).filter((U) => U !== "_"), C = {};
|
|
5884
5884
|
e.locale && (C.locale = e.locale), e.plural !== void 0 && (C.plural = isString$2(e.plural) ? +e.plural : e.plural);
|
|
5885
|
-
const A = getInterpolateArg(t, l), L = c[TranslateVNodeSymbol](e.keypath, A, C),
|
|
5886
|
-
return h(
|
|
5885
|
+
const A = getInterpolateArg(t, l), L = c[TranslateVNodeSymbol](e.keypath, A, C), B = assign$1({}, s), q = isString$2(e.tag) || isObject$2(e.tag) ? e.tag : getFragmentableTag();
|
|
5886
|
+
return h(q, B, L);
|
|
5887
5887
|
};
|
|
5888
5888
|
}
|
|
5889
5889
|
}), Translation = TranslationImpl;
|
|
@@ -5897,13 +5897,13 @@ function renderFormatter(e, t, n, s) {
|
|
|
5897
5897
|
let A = {};
|
|
5898
5898
|
e.locale && (C.locale = e.locale), isString$2(e.format) ? C.key = e.format : isObject$2(e.format) && (isString$2(e.format.key) && (C.key = e.format.key), A = Object.keys(e.format).reduce((V, J) => n.includes(J) ? assign$1({}, V, { [J]: e.format[J] }) : V, {}));
|
|
5899
5899
|
const L = s(e.value, C, A);
|
|
5900
|
-
let
|
|
5901
|
-
isArray$1(L) ?
|
|
5900
|
+
let B = [C.key];
|
|
5901
|
+
isArray$1(L) ? B = L.map((V, J) => {
|
|
5902
5902
|
const ce = c[V.type], se = ce ? ce({ [V.type]: V.value, index: J, parts: L }) : [V.value];
|
|
5903
5903
|
return isVNode(se) && (se[0].key = `${V.type}-${J}`), se;
|
|
5904
|
-
}) : isString$2(L) && (
|
|
5905
|
-
const
|
|
5906
|
-
return h(U,
|
|
5904
|
+
}) : isString$2(L) && (B = [L]);
|
|
5905
|
+
const q = assign$1({}, l), U = isString$2(e.tag) || isObject$2(e.tag) ? e.tag : getFragmentableTag();
|
|
5906
|
+
return h(U, q, B);
|
|
5907
5907
|
};
|
|
5908
5908
|
}
|
|
5909
5909
|
const NumberFormatImpl = /* @__PURE__ */ defineComponent({
|
|
@@ -5966,32 +5966,32 @@ function getComposer$2(e, t) {
|
|
|
5966
5966
|
}
|
|
5967
5967
|
function vTDirective(e) {
|
|
5968
5968
|
const t = (C) => {
|
|
5969
|
-
const { instance: A, modifiers: L, value:
|
|
5969
|
+
const { instance: A, modifiers: L, value: B } = C;
|
|
5970
5970
|
if (!A || !A.$)
|
|
5971
5971
|
throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);
|
|
5972
|
-
const
|
|
5972
|
+
const q = getComposer$2(e, A.$);
|
|
5973
5973
|
process.env.NODE_ENV !== "production" && L.preserve && warn$2(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE));
|
|
5974
|
-
const U = parseValue(
|
|
5974
|
+
const U = parseValue(B);
|
|
5975
5975
|
return [
|
|
5976
|
-
Reflect.apply(
|
|
5977
|
-
|
|
5976
|
+
Reflect.apply(q.t, q, [...makeParams(U)]),
|
|
5977
|
+
q
|
|
5978
5978
|
];
|
|
5979
5979
|
};
|
|
5980
5980
|
return {
|
|
5981
5981
|
created: (C, A) => {
|
|
5982
|
-
const [L,
|
|
5983
|
-
inBrowser && e.global ===
|
|
5982
|
+
const [L, B] = t(A);
|
|
5983
|
+
inBrowser && e.global === B && (C.__i18nWatcher = watch(B.locale, () => {
|
|
5984
5984
|
A.instance && A.instance.$forceUpdate();
|
|
5985
|
-
})), C.__composer =
|
|
5985
|
+
})), C.__composer = B, C.textContent = L;
|
|
5986
5986
|
},
|
|
5987
5987
|
unmounted: (C) => {
|
|
5988
5988
|
inBrowser && C.__i18nWatcher && (C.__i18nWatcher(), C.__i18nWatcher = void 0, delete C.__i18nWatcher), C.__composer && (C.__composer = void 0, delete C.__composer);
|
|
5989
5989
|
},
|
|
5990
5990
|
beforeUpdate: (C, { value: A }) => {
|
|
5991
5991
|
if (C.__composer) {
|
|
5992
|
-
const L = C.__composer,
|
|
5992
|
+
const L = C.__composer, B = parseValue(A);
|
|
5993
5993
|
C.textContent = Reflect.apply(L.t, L, [
|
|
5994
|
-
...makeParams(
|
|
5994
|
+
...makeParams(B)
|
|
5995
5995
|
]);
|
|
5996
5996
|
}
|
|
5997
5997
|
},
|
|
@@ -6261,7 +6261,7 @@ function makeScopeInspectState(e) {
|
|
|
6261
6261
|
}
|
|
6262
6262
|
];
|
|
6263
6263
|
t[C] = A;
|
|
6264
|
-
const L = "Datetime formats info",
|
|
6264
|
+
const L = "Datetime formats info", B = [
|
|
6265
6265
|
{
|
|
6266
6266
|
type: L,
|
|
6267
6267
|
key: "numberFormats",
|
|
@@ -6269,7 +6269,7 @@ function makeScopeInspectState(e) {
|
|
|
6269
6269
|
value: e.numberFormats.value
|
|
6270
6270
|
}
|
|
6271
6271
|
];
|
|
6272
|
-
t[L] =
|
|
6272
|
+
t[L] = B;
|
|
6273
6273
|
}
|
|
6274
6274
|
return t;
|
|
6275
6275
|
}
|
|
@@ -6358,10 +6358,10 @@ const I18nInjectionKey = /* @__PURE__ */ makeSymbol("global-vue-i18n");
|
|
|
6358
6358
|
function createI18n(e = {}, t) {
|
|
6359
6359
|
const n = __VUE_I18N_LEGACY_API__ && isBoolean(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__, s = isBoolean(e.globalInjection) ? e.globalInjection : !0, c = __VUE_I18N_LEGACY_API__ && n ? !!e.allowComposition : !0, l = /* @__PURE__ */ new Map(), [C, A] = createGlobal(e, n), L = /* @__PURE__ */ makeSymbol(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
6360
6360
|
process.env.NODE_ENV !== "production" && n && c && warn$2(getWarnMessage(I18nWarnCodes.NOTICE_DROP_ALLOW_COMPOSITION));
|
|
6361
|
-
function
|
|
6361
|
+
function B(V) {
|
|
6362
6362
|
return l.get(V) || null;
|
|
6363
6363
|
}
|
|
6364
|
-
function
|
|
6364
|
+
function q(V, J) {
|
|
6365
6365
|
l.set(V, J);
|
|
6366
6366
|
}
|
|
6367
6367
|
function U(V) {
|
|
@@ -6380,8 +6380,8 @@ function createI18n(e = {}, t) {
|
|
|
6380
6380
|
// install plugin
|
|
6381
6381
|
async install(J, ...ce) {
|
|
6382
6382
|
if ((process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) && (J.__VUE_I18N__ = V), J.__VUE_I18N_SYMBOL__ = L, J.provide(J.__VUE_I18N_SYMBOL__, V), isPlainObject$1(ce[0])) {
|
|
6383
|
-
const
|
|
6384
|
-
V.__composerExtend =
|
|
6383
|
+
const Y = ce[0];
|
|
6384
|
+
V.__composerExtend = Y.__composerExtend, V.__vueI18nExtend = Y.__vueI18nExtend;
|
|
6385
6385
|
}
|
|
6386
6386
|
let se = null;
|
|
6387
6387
|
!n && s && (se = injectGlobalFields(J, V.global)), __VUE_I18N_FULL_INSTALL__ && apply(J, V, ...ce), __VUE_I18N_LEGACY_API__ && n && J.mixin(defineMixin(A, A.__composer, V));
|
|
@@ -6412,9 +6412,9 @@ function createI18n(e = {}, t) {
|
|
|
6412
6412
|
// @internal
|
|
6413
6413
|
__instances: l,
|
|
6414
6414
|
// @internal
|
|
6415
|
-
__getInstance:
|
|
6415
|
+
__getInstance: B,
|
|
6416
6416
|
// @internal
|
|
6417
|
-
__setInstance:
|
|
6417
|
+
__setInstance: q,
|
|
6418
6418
|
// @internal
|
|
6419
6419
|
__deleteInstance: U
|
|
6420
6420
|
};
|
|
@@ -6516,13 +6516,13 @@ function useI18nForLegacy(e, t, n, s = {}) {
|
|
|
6516
6516
|
), L = ref(
|
|
6517
6517
|
// prettier-ignore
|
|
6518
6518
|
!c || C ? n.fallbackLocale.value : isString$2(s.fallbackLocale) || isArray$1(s.fallbackLocale) || isPlainObject$1(s.fallbackLocale) || s.fallbackLocale === !1 ? s.fallbackLocale : A.value
|
|
6519
|
-
),
|
|
6519
|
+
), B = ref(getLocaleMessages(A.value, s)), q = ref(isPlainObject$1(s.datetimeFormats) ? s.datetimeFormats : { [A.value]: {} }), U = ref(isPlainObject$1(s.numberFormats) ? s.numberFormats : { [A.value]: {} }), V = c ? n.missingWarn : isBoolean(s.missingWarn) || isRegExp(s.missingWarn) ? s.missingWarn : !0, J = c ? n.fallbackWarn : isBoolean(s.fallbackWarn) || isRegExp(s.fallbackWarn) ? s.fallbackWarn : !0, ce = c ? n.fallbackRoot : isBoolean(s.fallbackRoot) ? s.fallbackRoot : !0, se = !!s.fallbackFormat, re = isFunction$1(s.missing) ? s.missing : null, Y = isFunction$1(s.postTranslation) ? s.postTranslation : null, Q = c ? n.warnHtmlMessage : isBoolean(s.warnHtmlMessage) ? s.warnHtmlMessage : !0, ae = !!s.escapeParameter, te = c ? n.modifiers : isPlainObject$1(s.modifiers) ? s.modifiers : {}, oe = s.pluralRules || c && n.pluralRules;
|
|
6520
6520
|
function ne() {
|
|
6521
6521
|
return [
|
|
6522
6522
|
A.value,
|
|
6523
6523
|
L.value,
|
|
6524
|
-
|
|
6525
|
-
|
|
6524
|
+
B.value,
|
|
6525
|
+
q.value,
|
|
6526
6526
|
U.value
|
|
6527
6527
|
];
|
|
6528
6528
|
}
|
|
@@ -6536,9 +6536,9 @@ function useI18nForLegacy(e, t, n, s = {}) {
|
|
|
6536
6536
|
set: (I) => {
|
|
6537
6537
|
l.value && (l.value.fallbackLocale.value = I), L.value = I;
|
|
6538
6538
|
}
|
|
6539
|
-
}), $ = computed(() => l.value ? l.value.messages.value :
|
|
6539
|
+
}), $ = computed(() => l.value ? l.value.messages.value : B.value), X = computed(() => q.value), pe = computed(() => U.value);
|
|
6540
6540
|
function de() {
|
|
6541
|
-
return l.value ? l.value.getPostTranslationHandler() :
|
|
6541
|
+
return l.value ? l.value.getPostTranslationHandler() : Y;
|
|
6542
6542
|
}
|
|
6543
6543
|
function ge(I) {
|
|
6544
6544
|
l.value && l.value.setPostTranslationHandler(I);
|
|
@@ -6574,7 +6574,7 @@ function useI18nForLegacy(e, t, n, s = {}) {
|
|
|
6574
6574
|
return l.value ? l.value.getLocaleMessage(I) : {};
|
|
6575
6575
|
}
|
|
6576
6576
|
function fe(I, F) {
|
|
6577
|
-
l.value && (l.value.setLocaleMessage(I, F),
|
|
6577
|
+
l.value && (l.value.setLocaleMessage(I, F), B.value[I] = F);
|
|
6578
6578
|
}
|
|
6579
6579
|
function Pe(I, F) {
|
|
6580
6580
|
l.value && l.value.mergeLocaleMessage(I, F);
|
|
@@ -6583,7 +6583,7 @@ function useI18nForLegacy(e, t, n, s = {}) {
|
|
|
6583
6583
|
return l.value ? l.value.getDateTimeFormat(I) : {};
|
|
6584
6584
|
}
|
|
6585
6585
|
function De(I, F) {
|
|
6586
|
-
l.value && (l.value.setDateTimeFormat(I, F),
|
|
6586
|
+
l.value && (l.value.setDateTimeFormat(I, F), q.value[I] = F);
|
|
6587
6587
|
}
|
|
6588
6588
|
function Ie(I, F) {
|
|
6589
6589
|
l.value && l.value.mergeDateTimeFormat(I, F);
|
|
@@ -6597,7 +6597,7 @@ function useI18nForLegacy(e, t, n, s = {}) {
|
|
|
6597
6597
|
function M(I, F) {
|
|
6598
6598
|
l.value && l.value.mergeNumberFormat(I, F);
|
|
6599
6599
|
}
|
|
6600
|
-
const
|
|
6600
|
+
const W = {
|
|
6601
6601
|
get id() {
|
|
6602
6602
|
return l.value ? l.value.id : -1;
|
|
6603
6603
|
},
|
|
@@ -6613,7 +6613,7 @@ function useI18nForLegacy(e, t, n, s = {}) {
|
|
|
6613
6613
|
l.value && (l.value.inheritLocale = I);
|
|
6614
6614
|
},
|
|
6615
6615
|
get availableLocales() {
|
|
6616
|
-
return l.value ? l.value.availableLocales : Object.keys(
|
|
6616
|
+
return l.value ? l.value.availableLocales : Object.keys(B.value);
|
|
6617
6617
|
},
|
|
6618
6618
|
get modifiers() {
|
|
6619
6619
|
return l.value ? l.value.modifiers : te;
|
|
@@ -6681,10 +6681,10 @@ function useI18nForLegacy(e, t, n, s = {}) {
|
|
|
6681
6681
|
mergeNumberFormat: M
|
|
6682
6682
|
};
|
|
6683
6683
|
function R(I) {
|
|
6684
|
-
I.locale.value = A.value, I.fallbackLocale.value = L.value, Object.keys(
|
|
6685
|
-
I.mergeLocaleMessage(F,
|
|
6686
|
-
}), Object.keys(
|
|
6687
|
-
I.mergeDateTimeFormat(F,
|
|
6684
|
+
I.locale.value = A.value, I.fallbackLocale.value = L.value, Object.keys(B.value).forEach((F) => {
|
|
6685
|
+
I.mergeLocaleMessage(F, B.value[F]);
|
|
6686
|
+
}), Object.keys(q.value).forEach((F) => {
|
|
6687
|
+
I.mergeDateTimeFormat(F, q.value[F]);
|
|
6688
6688
|
}), Object.keys(U.value).forEach((F) => {
|
|
6689
6689
|
I.mergeNumberFormat(F, U.value[F]);
|
|
6690
6690
|
}), I.escapeParameter = ae, I.fallbackFormat = se, I.fallbackRoot = ce, I.fallbackWarn = J, I.missingWarn = V, I.warnHtmlMessage = Q;
|
|
@@ -6693,8 +6693,8 @@ function useI18nForLegacy(e, t, n, s = {}) {
|
|
|
6693
6693
|
if (e.proxy == null || e.proxy.$i18n == null)
|
|
6694
6694
|
throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);
|
|
6695
6695
|
const I = l.value = e.proxy.$i18n.__composer;
|
|
6696
|
-
t === "global" ? (A.value = I.locale.value, L.value = I.fallbackLocale.value,
|
|
6697
|
-
}),
|
|
6696
|
+
t === "global" ? (A.value = I.locale.value, L.value = I.fallbackLocale.value, B.value = I.messages.value, q.value = I.datetimeFormats.value, U.value = I.numberFormats.value) : c && R(I);
|
|
6697
|
+
}), W;
|
|
6698
6698
|
}
|
|
6699
6699
|
const globalExportProps = [
|
|
6700
6700
|
"locale",
|
|
@@ -6841,7 +6841,7 @@ License: MIT
|
|
|
6841
6841
|
0 < Le.length && (Pe += ge);
|
|
6842
6842
|
}
|
|
6843
6843
|
for (var be = 0; be < Le.length; be++) {
|
|
6844
|
-
var D = ke ? he.length : Le[be].length, M = !1,
|
|
6844
|
+
var D = ke ? he.length : Le[be].length, M = !1, W = ke ? Object.keys(Le[be]).length === 0 : Le[be].length === 0;
|
|
6845
6845
|
if (fe && !ke && (M = fe === "greedy" ? Le[be].join("").trim() === "" : Le[be].length === 1 && Le[be][0].length === 0), fe === "greedy" && ke) {
|
|
6846
6846
|
for (var R = [], I = 0; I < D; I++) {
|
|
6847
6847
|
var F = De ? he[I] : I;
|
|
@@ -6851,11 +6851,11 @@ License: MIT
|
|
|
6851
6851
|
}
|
|
6852
6852
|
if (!M) {
|
|
6853
6853
|
for (var H = 0; H < D; H++) {
|
|
6854
|
-
0 < H && !
|
|
6854
|
+
0 < H && !W && (Pe += de);
|
|
6855
6855
|
var j = ke && De ? he[H] : H;
|
|
6856
6856
|
Pe += Me(Le[be][j], H);
|
|
6857
6857
|
}
|
|
6858
|
-
be < Le.length - 1 && (!fe || 0 < D && !
|
|
6858
|
+
be < Le.length - 1 && (!fe || 0 < D && !W) && (Pe += ge);
|
|
6859
6859
|
}
|
|
6860
6860
|
}
|
|
6861
6861
|
return Pe;
|
|
@@ -6877,15 +6877,15 @@ License: MIT
|
|
|
6877
6877
|
}
|
|
6878
6878
|
} };
|
|
6879
6879
|
if (L.RECORD_SEP = String.fromCharCode(30), L.UNIT_SEP = String.fromCharCode(31), L.BYTE_ORDER_MARK = "\uFEFF", L.BAD_DELIMITERS = ["\r", `
|
|
6880
|
-
`, '"', L.BYTE_ORDER_MARK], L.WORKERS_SUPPORTED = !c && !!s.Worker, L.NODE_STREAM_INPUT = 1, L.LocalChunkSize = 10485760, L.RemoteChunkSize = 5242880, L.DefaultDelimiter = ",", L.Parser =
|
|
6881
|
-
var
|
|
6882
|
-
|
|
6880
|
+
`, '"', L.BYTE_ORDER_MARK], L.WORKERS_SUPPORTED = !c && !!s.Worker, L.NODE_STREAM_INPUT = 1, L.LocalChunkSize = 10485760, L.RemoteChunkSize = 5242880, L.DefaultDelimiter = ",", L.Parser = Y, L.ParserHandle = se, L.NetworkStreamer = U, L.FileStreamer = V, L.StringStreamer = J, L.ReadableStreamStreamer = ce, s.jQuery) {
|
|
6881
|
+
var B = s.jQuery;
|
|
6882
|
+
B.fn.parse = function(G) {
|
|
6883
6883
|
var $ = G.config || {}, X = [];
|
|
6884
6884
|
return this.each(function(ge) {
|
|
6885
|
-
if (!(
|
|
6885
|
+
if (!(B(this).prop("tagName").toUpperCase() === "INPUT" && B(this).attr("type").toLowerCase() === "file" && s.FileReader) || !this.files || this.files.length === 0)
|
|
6886
6886
|
return !0;
|
|
6887
6887
|
for (var ve = 0; ve < this.files.length; ve++)
|
|
6888
|
-
X.push({ file: this.files[ve], inputElem: this, instanceConfig:
|
|
6888
|
+
X.push({ file: this.files[ve], inputElem: this, instanceConfig: B.extend({}, $) });
|
|
6889
6889
|
}), pe(), this;
|
|
6890
6890
|
function pe() {
|
|
6891
6891
|
if (X.length !== 0) {
|
|
@@ -6897,7 +6897,7 @@ License: MIT
|
|
|
6897
6897
|
return ge = "AbortError", ve = Ee.file, Ae = Ee.inputElem, Ce = Re.reason, void (ie(G.error) && G.error({ name: ge }, ve, Ae, Ce));
|
|
6898
6898
|
if (Re.action === "skip")
|
|
6899
6899
|
return void de();
|
|
6900
|
-
typeof Re.config == "object" && (Ee.instanceConfig =
|
|
6900
|
+
typeof Re.config == "object" && (Ee.instanceConfig = B.extend(Ee.instanceConfig, Re.config));
|
|
6901
6901
|
} else if (Re === "skip")
|
|
6902
6902
|
return void de();
|
|
6903
6903
|
}
|
|
@@ -6913,7 +6913,7 @@ License: MIT
|
|
|
6913
6913
|
}
|
|
6914
6914
|
};
|
|
6915
6915
|
}
|
|
6916
|
-
function
|
|
6916
|
+
function q(G) {
|
|
6917
6917
|
this._handle = null, this._finished = !1, this._completed = !1, this._halted = !1, this._input = null, this._baseIndex = 0, this._partialLine = "", this._rowCount = 0, this._start = 0, this._nextChunk = null, this.isFirstChunk = !0, this._completeResults = { data: [], errors: [], meta: {} }, (function($) {
|
|
6918
6918
|
var X = oe($);
|
|
6919
6919
|
X.chunkSize = parseInt(X.chunkSize), $.step || $.chunk || (X.chunkSize = null), this._handle = new se(X), (this._handle.streamer = this)._config = X;
|
|
@@ -6946,7 +6946,7 @@ License: MIT
|
|
|
6946
6946
|
}
|
|
6947
6947
|
function U(G) {
|
|
6948
6948
|
var $;
|
|
6949
|
-
(G = G || {}).chunkSize || (G.chunkSize = L.RemoteChunkSize),
|
|
6949
|
+
(G = G || {}).chunkSize || (G.chunkSize = L.RemoteChunkSize), q.call(this, G), this._nextChunk = c ? function() {
|
|
6950
6950
|
this._readChunk(), this._chunkLoaded();
|
|
6951
6951
|
} : function() {
|
|
6952
6952
|
this._readChunk();
|
|
@@ -6984,7 +6984,7 @@ License: MIT
|
|
|
6984
6984
|
}
|
|
6985
6985
|
function V(G) {
|
|
6986
6986
|
var $, X;
|
|
6987
|
-
(G = G || {}).chunkSize || (G.chunkSize = L.LocalChunkSize),
|
|
6987
|
+
(G = G || {}).chunkSize || (G.chunkSize = L.LocalChunkSize), q.call(this, G);
|
|
6988
6988
|
var pe = typeof FileReader < "u";
|
|
6989
6989
|
this.stream = function(de) {
|
|
6990
6990
|
this._input = de, X = de.slice || de.webkitSlice || de.mozSlice, pe ? (($ = new FileReader()).onload = ne(this._chunkLoaded, this), $.onerror = ne(this._chunkError, this)) : $ = new FileReaderSync(), this._nextChunk();
|
|
@@ -7006,7 +7006,7 @@ License: MIT
|
|
|
7006
7006
|
}
|
|
7007
7007
|
function J(G) {
|
|
7008
7008
|
var $;
|
|
7009
|
-
|
|
7009
|
+
q.call(this, G = G || {}), this.stream = function(X) {
|
|
7010
7010
|
return $ = X, this._nextChunk();
|
|
7011
7011
|
}, this._nextChunk = function() {
|
|
7012
7012
|
if (!this._finished) {
|
|
@@ -7016,12 +7016,12 @@ License: MIT
|
|
|
7016
7016
|
};
|
|
7017
7017
|
}
|
|
7018
7018
|
function ce(G) {
|
|
7019
|
-
|
|
7019
|
+
q.call(this, G = G || {});
|
|
7020
7020
|
var $ = [], X = !0, pe = !1;
|
|
7021
7021
|
this.pause = function() {
|
|
7022
|
-
|
|
7022
|
+
q.prototype.pause.apply(this, arguments), this._input.pause();
|
|
7023
7023
|
}, this.resume = function() {
|
|
7024
|
-
|
|
7024
|
+
q.prototype.resume.apply(this, arguments), this._input.resume();
|
|
7025
7025
|
}, this.stream = function(de) {
|
|
7026
7026
|
this._input = de, this._input.on("data", this._streamData), this._input.on("end", this._streamEnd), this._input.on("error", this._streamError);
|
|
7027
7027
|
}, this._checkIsFinished = function() {
|
|
@@ -7065,8 +7065,8 @@ License: MIT
|
|
|
7065
7065
|
})), ke() && function() {
|
|
7066
7066
|
if (!he)
|
|
7067
7067
|
return;
|
|
7068
|
-
function be(M,
|
|
7069
|
-
ie(G.transformHeader) && (M = G.transformHeader(M,
|
|
7068
|
+
function be(M, W) {
|
|
7069
|
+
ie(G.transformHeader) && (M = G.transformHeader(M, W)), Me.push(M);
|
|
7070
7070
|
}
|
|
7071
7071
|
if (Array.isArray(he.data[0])) {
|
|
7072
7072
|
for (var D = 0; ke() && D < he.data.length; D++)
|
|
@@ -7077,13 +7077,13 @@ License: MIT
|
|
|
7077
7077
|
}(), function() {
|
|
7078
7078
|
if (!he || !G.header && !G.dynamicTyping && !G.transform)
|
|
7079
7079
|
return he;
|
|
7080
|
-
function be(M,
|
|
7080
|
+
function be(M, W) {
|
|
7081
7081
|
var R, I = G.header ? {} : [];
|
|
7082
7082
|
for (R = 0; R < M.length; R++) {
|
|
7083
7083
|
var F = R, H = M[R];
|
|
7084
7084
|
G.header && (F = R >= Me.length ? "__parsed_extra" : Me[R]), G.transform && (H = G.transform(H, F)), H = De(F, H), F === "__parsed_extra" ? (I[F] = I[F] || [], I[F].push(H)) : I[F] = H;
|
|
7085
7085
|
}
|
|
7086
|
-
return G.header && (R > Me.length ? Ie("FieldMismatch", "TooManyFields", "Too many fields: expected " + Me.length + " fields but parsed " + R, Re +
|
|
7086
|
+
return G.header && (R > Me.length ? Ie("FieldMismatch", "TooManyFields", "Too many fields: expected " + Me.length + " fields but parsed " + R, Re + W) : R < Me.length && Ie("FieldMismatch", "TooFewFields", "Too few fields: expected " + Me.length + " fields but parsed " + R, Re + W)), I;
|
|
7087
7087
|
}
|
|
7088
7088
|
var D = 1;
|
|
7089
7089
|
return !he.data.length || Array.isArray(he.data[0]) ? (he.data = he.data.map(be), D = he.data.length) : he.data = be(he.data, 0), G.header && he.meta && (he.meta.fields = Me), Re += D, he;
|
|
@@ -7093,9 +7093,9 @@ License: MIT
|
|
|
7093
7093
|
return G.header && Me.length === 0;
|
|
7094
7094
|
}
|
|
7095
7095
|
function De(be, D) {
|
|
7096
|
-
return M = be, G.dynamicTypingFunction && G.dynamicTyping[M] === void 0 && (G.dynamicTyping[M] = G.dynamicTypingFunction(M)), (G.dynamicTyping[M] || G.dynamicTyping) === !0 ? D === "true" || D === "TRUE" || D !== "false" && D !== "FALSE" && (function(
|
|
7097
|
-
if (ve.test(
|
|
7098
|
-
var R = parseFloat(
|
|
7096
|
+
return M = be, G.dynamicTypingFunction && G.dynamicTyping[M] === void 0 && (G.dynamicTyping[M] = G.dynamicTypingFunction(M)), (G.dynamicTyping[M] || G.dynamicTyping) === !0 ? D === "true" || D === "TRUE" || D !== "false" && D !== "FALSE" && (function(W) {
|
|
7097
|
+
if (ve.test(W)) {
|
|
7098
|
+
var R = parseFloat(W);
|
|
7099
7099
|
if (ge < R && R < de)
|
|
7100
7100
|
return !0;
|
|
7101
7101
|
}
|
|
@@ -7103,12 +7103,12 @@ License: MIT
|
|
|
7103
7103
|
}(D) ? parseFloat(D) : Ae.test(D) ? new Date(D) : D === "" ? null : D) : D;
|
|
7104
7104
|
var M;
|
|
7105
7105
|
}
|
|
7106
|
-
function Ie(be, D, M,
|
|
7106
|
+
function Ie(be, D, M, W) {
|
|
7107
7107
|
var R = { type: be, code: D, message: M };
|
|
7108
|
-
|
|
7108
|
+
W !== void 0 && (R.row = W), he.errors.push(R);
|
|
7109
7109
|
}
|
|
7110
7110
|
this.parse = function(be, D, M) {
|
|
7111
|
-
var
|
|
7111
|
+
var W = G.quoteChar || '"';
|
|
7112
7112
|
if (G.newline || (G.newline = function(F, H) {
|
|
7113
7113
|
F = F.substring(0, 1048576);
|
|
7114
7114
|
var j = new RegExp(re(H) + "([^]*?)" + re(H), "gm"), K = (F = F.replace(j, "")).split("\r"), Z = F.split(`
|
|
@@ -7121,7 +7121,7 @@ License: MIT
|
|
|
7121
7121
|
` && ue++;
|
|
7122
7122
|
return ue >= K.length / 2 ? `\r
|
|
7123
7123
|
` : "\r";
|
|
7124
|
-
}(be,
|
|
7124
|
+
}(be, W)), pe = !1, G.delimiter)
|
|
7125
7125
|
ie(G.delimiter) && (G.delimiter = G.delimiter(be), he.meta.delimiter = G.delimiter);
|
|
7126
7126
|
else {
|
|
7127
7127
|
var R = function(F, H, j, K, Z) {
|
|
@@ -7130,7 +7130,7 @@ License: MIT
|
|
|
7130
7130
|
for (var ye = 0; ye < Z.length; ye++) {
|
|
7131
7131
|
var Se = Z[ye], Ne = 0, ee = 0, le = 0;
|
|
7132
7132
|
me = void 0;
|
|
7133
|
-
for (var Te = new
|
|
7133
|
+
for (var Te = new Y({ comments: K, delimiter: Se, newline: H, preview: 10 }).parse(F), we = 0; we < Te.data.length; we++)
|
|
7134
7134
|
if (j && fe(Te.data[we]))
|
|
7135
7135
|
le++;
|
|
7136
7136
|
else {
|
|
@@ -7144,7 +7144,7 @@ License: MIT
|
|
|
7144
7144
|
R.successful ? G.delimiter = R.bestDelimiter : (pe = !0, G.delimiter = L.DefaultDelimiter), he.meta.delimiter = G.delimiter;
|
|
7145
7145
|
}
|
|
7146
7146
|
var I = oe(G);
|
|
7147
|
-
return G.preview && G.header && I.preview++, $ = be, X = new
|
|
7147
|
+
return G.preview && G.header && I.preview++, $ = be, X = new Y(I), he = X.parse($, D, M), Pe(), Oe ? { meta: { paused: !0 } } : he || { meta: { paused: !1 } };
|
|
7148
7148
|
}, this.paused = function() {
|
|
7149
7149
|
return Oe;
|
|
7150
7150
|
}, this.pause = function() {
|
|
@@ -7160,7 +7160,7 @@ License: MIT
|
|
|
7160
7160
|
function re(G) {
|
|
7161
7161
|
return G.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
7162
7162
|
}
|
|
7163
|
-
function
|
|
7163
|
+
function Y(G) {
|
|
7164
7164
|
var $, X = (G = G || {}).delimiter, pe = G.newline, de = G.comments, ge = G.step, ve = G.preview, Ae = G.fastMode, Ce = $ = G.quoteChar === void 0 || G.quoteChar === null ? '"' : G.quoteChar;
|
|
7165
7165
|
if (G.escapeChar !== void 0 && (Ce = G.escapeChar), (typeof X != "string" || -1 < L.BAD_DELIMITERS.indexOf(X)) && (X = ","), de === X)
|
|
7166
7166
|
throw new Error("Comment character same as delimiter");
|
|
@@ -7176,18 +7176,18 @@ License: MIT
|
|
|
7176
7176
|
if (!Oe)
|
|
7177
7177
|
return Be();
|
|
7178
7178
|
if (G.header && !Fe) {
|
|
7179
|
-
var M = Oe.split(pe)[0].split(X),
|
|
7179
|
+
var M = Oe.split(pe)[0].split(X), W = [], R = {}, I = !1;
|
|
7180
7180
|
for (var F in M) {
|
|
7181
7181
|
var H = M[F];
|
|
7182
7182
|
ie(G.transformHeader) && (H = G.transformHeader(H, F));
|
|
7183
7183
|
var j = H, K = R[H] || 0;
|
|
7184
|
-
for (0 < K && (I = !0, j = H + "_" + K), R[H] = K + 1;
|
|
7184
|
+
for (0 < K && (I = !0, j = H + "_" + K), R[H] = K + 1; W.includes(j); )
|
|
7185
7185
|
j = j + "_" + K;
|
|
7186
|
-
|
|
7186
|
+
W.push(j);
|
|
7187
7187
|
}
|
|
7188
7188
|
if (I) {
|
|
7189
7189
|
var Z = Oe.split(pe);
|
|
7190
|
-
Z[0] =
|
|
7190
|
+
Z[0] = W.join(X), Oe = Z.join(pe);
|
|
7191
7191
|
}
|
|
7192
7192
|
}
|
|
7193
7193
|
if (Ae || Ae !== !1 && Oe.indexOf($) === -1) {
|
|
@@ -7329,7 +7329,7 @@ License: MIT
|
|
|
7329
7329
|
var X = L.parse($.input, $.config);
|
|
7330
7330
|
X && s.postMessage({ workerId: L.WORKER_ID, results: X, finished: !0 });
|
|
7331
7331
|
}
|
|
7332
|
-
}), (U.prototype = Object.create(
|
|
7332
|
+
}), (U.prototype = Object.create(q.prototype)).constructor = U, (V.prototype = Object.create(q.prototype)).constructor = V, (J.prototype = Object.create(J.prototype)).constructor = J, (ce.prototype = Object.create(q.prototype)).constructor = ce, L;
|
|
7333
7333
|
});
|
|
7334
7334
|
})(papaparse_min);
|
|
7335
7335
|
var papaparse_minExports = papaparse_min.exports;
|
|
@@ -7393,37 +7393,37 @@ precip,\${payload.precip}i,"${n("datalayersTemplateRemark")}"
|
|
|
7393
7393
|
return {
|
|
7394
7394
|
filenameMap: s,
|
|
7395
7395
|
templateContentMap: c,
|
|
7396
|
-
handleDownloadTemp: (
|
|
7397
|
-
if (
|
|
7398
|
-
const V = new Blob([
|
|
7396
|
+
handleDownloadTemp: (q, U) => {
|
|
7397
|
+
if (q) {
|
|
7398
|
+
const V = new Blob([q], { type: "text/csv" });
|
|
7399
7399
|
createDownloadBlobLink(V, `${U}_template.csv`);
|
|
7400
7400
|
} else
|
|
7401
7401
|
console.error("Template is empty");
|
|
7402
7402
|
},
|
|
7403
|
-
readFileAndParse: async (
|
|
7403
|
+
readFileAndParse: async (q, U) => new Promise((V, J) => {
|
|
7404
7404
|
const ce = new FileReader();
|
|
7405
7405
|
ce.onload = (se) => {
|
|
7406
7406
|
if (!se.target)
|
|
7407
7407
|
return J(new Error("FileReader event target is null"));
|
|
7408
|
-
const re = se.target.result,
|
|
7409
|
-
|
|
7408
|
+
const re = se.target.result, Y = Papa.parse(re, { skipEmptyLines: "greedy" });
|
|
7409
|
+
Y.errors.length > 0 && J(new Error("Failed to parse CSV data: " + Y.errors[0].message)), Y.data.length > U + 1 ? J(new Error(n("uploadMaxRowsError", { max: U }))) : V(Y.data);
|
|
7410
7410
|
}, ce.onerror = () => {
|
|
7411
7411
|
J(new Error("An error occurred while reading the file"));
|
|
7412
7412
|
}, ce.onabort = () => {
|
|
7413
7413
|
J(new Error("File reading was aborted"));
|
|
7414
|
-
}, ce.readAsText(
|
|
7414
|
+
}, ce.readAsText(q);
|
|
7415
7415
|
}),
|
|
7416
|
-
processIoTDBData: (
|
|
7416
|
+
processIoTDBData: (q) => new Promise((U, V) => {
|
|
7417
7417
|
try {
|
|
7418
|
-
const J = ["boolean", "int32", "int64", "float", "double", "text"], ce =
|
|
7418
|
+
const J = ["boolean", "int32", "int64", "float", "double", "text"], ce = q.slice(1).filter(
|
|
7419
7419
|
(se) => se.length >= 4 && se.slice(0, 4).every((re) => re && re.trim() !== "")
|
|
7420
7420
|
).map((se) => {
|
|
7421
|
-
const [re,
|
|
7421
|
+
const [re, Y, Q, ae] = se;
|
|
7422
7422
|
if (!J.includes(Q))
|
|
7423
7423
|
throw new Error(`Invalid data type: ${Q}`);
|
|
7424
7424
|
return {
|
|
7425
7425
|
timestamp: re,
|
|
7426
|
-
measurement:
|
|
7426
|
+
measurement: Y,
|
|
7427
7427
|
data_type: Q,
|
|
7428
7428
|
value: ae
|
|
7429
7429
|
};
|
|
@@ -7433,11 +7433,11 @@ precip,\${payload.precip}i,"${n("datalayersTemplateRemark")}"
|
|
|
7433
7433
|
V(J);
|
|
7434
7434
|
}
|
|
7435
7435
|
}),
|
|
7436
|
-
processTDengineData: (
|
|
7436
|
+
processTDengineData: (q) => new Promise((U, V) => {
|
|
7437
7437
|
try {
|
|
7438
7438
|
const J = "<table>", ce = [], se = [];
|
|
7439
|
-
for (let
|
|
7440
|
-
const [Q, ae, te] = Y
|
|
7439
|
+
for (let Y = 1; Y < q.length; Y++) {
|
|
7440
|
+
const [Q, ae, te] = q[Y];
|
|
7441
7441
|
if (!Q || !ae)
|
|
7442
7442
|
continue;
|
|
7443
7443
|
ce.push(Q);
|
|
@@ -7457,11 +7457,11 @@ precip,\${payload.precip}i,"${n("datalayersTemplateRemark")}"
|
|
|
7457
7457
|
V(J);
|
|
7458
7458
|
}
|
|
7459
7459
|
}),
|
|
7460
|
-
processInfluxDBData: (
|
|
7460
|
+
processInfluxDBData: (q) => new Promise((U, V) => {
|
|
7461
7461
|
try {
|
|
7462
7462
|
const J = [];
|
|
7463
|
-
for (let ce = 1; ce <
|
|
7464
|
-
const [se, re] =
|
|
7463
|
+
for (let ce = 1; ce < q.length; ce++) {
|
|
7464
|
+
const [se, re] = q[ce];
|
|
7465
7465
|
!se || !re || J.push({ key: se, value: re });
|
|
7466
7466
|
}
|
|
7467
7467
|
U(J);
|
|
@@ -7522,16 +7522,16 @@ precip,\${payload.precip}i,"${n("datalayersTemplateRemark")}"
|
|
|
7522
7522
|
permissionOptions: n,
|
|
7523
7523
|
resourceTypeOptions: s,
|
|
7524
7524
|
operationOptions: c,
|
|
7525
|
-
getValidOperations: (A) => (l[A] || []).map((
|
|
7526
|
-
label: t(`streaming.aclOperationLabelDic.${
|
|
7527
|
-
value:
|
|
7525
|
+
getValidOperations: (A) => (l[A] || []).map((B) => ({
|
|
7526
|
+
label: t(`streaming.aclOperationLabelDic.${B}`),
|
|
7527
|
+
value: B
|
|
7528
7528
|
}))
|
|
7529
7529
|
};
|
|
7530
7530
|
};
|
|
7531
7531
|
var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exports: {} };
|
|
7532
7532
|
(function(e) {
|
|
7533
7533
|
(function(t) {
|
|
7534
|
-
var n, s = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, c = Math.ceil, l = Math.floor, C = "[BigNumber Error] ", A = C + "Number primitive has more than 15 significant digits: ", L = 1e14,
|
|
7534
|
+
var n, s = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, c = Math.ceil, l = Math.floor, C = "[BigNumber Error] ", A = C + "Number primitive has more than 15 significant digits: ", L = 1e14, B = 14, q = 9007199254740991, U = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], V = 1e7, J = 1e9;
|
|
7535
7535
|
function ce(ne) {
|
|
7536
7536
|
var ie, G, $, X = fe.prototype = { constructor: fe, toString: null, valueOf: null }, pe = new fe(1), de = 20, ge = 4, ve = -7, Ae = 21, Ce = -1e7, Ee = 1e7, Re = !1, Oe = 1, Fe = 0, Me = {
|
|
7537
7537
|
prefix: "",
|
|
@@ -7545,7 +7545,7 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7545
7545
|
suffix: ""
|
|
7546
7546
|
}, he = "0123456789abcdefghijklmnopqrstuvwxyz", Le = !0;
|
|
7547
7547
|
function fe(D, M) {
|
|
7548
|
-
var
|
|
7548
|
+
var W, R, I, F, H, j, K, Z, z = this;
|
|
7549
7549
|
if (!(z instanceof fe))
|
|
7550
7550
|
return new fe(D, M);
|
|
7551
7551
|
if (M == null) {
|
|
@@ -7577,8 +7577,8 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7577
7577
|
throw Error(A + D);
|
|
7578
7578
|
} else
|
|
7579
7579
|
z.s = Z.charCodeAt(0) === 45 ? (Z = Z.slice(1), -1) : 1;
|
|
7580
|
-
for (
|
|
7581
|
-
if (
|
|
7580
|
+
for (W = he.slice(0, M), F = H = 0, K = Z.length; H < K; H++)
|
|
7581
|
+
if (W.indexOf(R = Z.charAt(H)) < 0) {
|
|
7582
7582
|
if (R == ".") {
|
|
7583
7583
|
if (H > F) {
|
|
7584
7584
|
F = K;
|
|
@@ -7597,17 +7597,17 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7597
7597
|
for (K = Z.length; Z.charCodeAt(--K) === 48; )
|
|
7598
7598
|
;
|
|
7599
7599
|
if (Z = Z.slice(H, ++K)) {
|
|
7600
|
-
if (K -= H, j && fe.DEBUG && K > 15 && (D >
|
|
7600
|
+
if (K -= H, j && fe.DEBUG && K > 15 && (D > q || D !== l(D)))
|
|
7601
7601
|
throw Error(A + z.s * D);
|
|
7602
7602
|
if ((F = F - H - 1) > Ee)
|
|
7603
7603
|
z.c = z.e = null;
|
|
7604
7604
|
else if (F < Ce)
|
|
7605
7605
|
z.c = [z.e = 0];
|
|
7606
7606
|
else {
|
|
7607
|
-
if (z.e = F, z.c = [], H = (F + 1) %
|
|
7608
|
-
for (H && z.c.push(+Z.slice(0, H)), K -=
|
|
7609
|
-
z.c.push(+Z.slice(H, H +=
|
|
7610
|
-
H =
|
|
7607
|
+
if (z.e = F, z.c = [], H = (F + 1) % B, F < 0 && (H += B), H < K) {
|
|
7608
|
+
for (H && z.c.push(+Z.slice(0, H)), K -= B; H < K; )
|
|
7609
|
+
z.c.push(+Z.slice(H, H += B));
|
|
7610
|
+
H = B - (Z = Z.slice(H)).length;
|
|
7611
7611
|
} else
|
|
7612
7612
|
H -= K;
|
|
7613
7613
|
for (; H--; Z += "0")
|
|
@@ -7618,37 +7618,37 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7618
7618
|
z.c = [z.e = 0];
|
|
7619
7619
|
}
|
|
7620
7620
|
fe.clone = ce, fe.ROUND_UP = 0, fe.ROUND_DOWN = 1, fe.ROUND_CEIL = 2, fe.ROUND_FLOOR = 3, fe.ROUND_HALF_UP = 4, fe.ROUND_HALF_DOWN = 5, fe.ROUND_HALF_EVEN = 6, fe.ROUND_HALF_CEIL = 7, fe.ROUND_HALF_FLOOR = 8, fe.EUCLID = 9, fe.config = fe.set = function(D) {
|
|
7621
|
-
var M,
|
|
7621
|
+
var M, W;
|
|
7622
7622
|
if (D != null)
|
|
7623
7623
|
if (typeof D == "object") {
|
|
7624
|
-
if (D.hasOwnProperty(M = "DECIMAL_PLACES") && (
|
|
7625
|
-
if (
|
|
7626
|
-
Q(
|
|
7627
|
-
else if (Q(
|
|
7628
|
-
Ce = -(Ee =
|
|
7624
|
+
if (D.hasOwnProperty(M = "DECIMAL_PLACES") && (W = D[M], Q(W, 0, J, M), de = W), D.hasOwnProperty(M = "ROUNDING_MODE") && (W = D[M], Q(W, 0, 8, M), ge = W), D.hasOwnProperty(M = "EXPONENTIAL_AT") && (W = D[M], W && W.pop ? (Q(W[0], -J, 0, M), Q(W[1], 0, J, M), ve = W[0], Ae = W[1]) : (Q(W, -J, J, M), ve = -(Ae = W < 0 ? -W : W))), D.hasOwnProperty(M = "RANGE"))
|
|
7625
|
+
if (W = D[M], W && W.pop)
|
|
7626
|
+
Q(W[0], -J, -1, M), Q(W[1], 1, J, M), Ce = W[0], Ee = W[1];
|
|
7627
|
+
else if (Q(W, -J, J, M), W)
|
|
7628
|
+
Ce = -(Ee = W < 0 ? -W : W);
|
|
7629
7629
|
else
|
|
7630
|
-
throw Error(C + M + " cannot be zero: " +
|
|
7630
|
+
throw Error(C + M + " cannot be zero: " + W);
|
|
7631
7631
|
if (D.hasOwnProperty(M = "CRYPTO"))
|
|
7632
|
-
if (
|
|
7633
|
-
if (
|
|
7632
|
+
if (W = D[M], W === !!W)
|
|
7633
|
+
if (W)
|
|
7634
7634
|
if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes))
|
|
7635
|
-
Re =
|
|
7635
|
+
Re = W;
|
|
7636
7636
|
else
|
|
7637
|
-
throw Re = !
|
|
7637
|
+
throw Re = !W, Error(C + "crypto unavailable");
|
|
7638
7638
|
else
|
|
7639
|
-
Re =
|
|
7639
|
+
Re = W;
|
|
7640
7640
|
else
|
|
7641
|
-
throw Error(C + M + " not true or false: " +
|
|
7642
|
-
if (D.hasOwnProperty(M = "MODULO_MODE") && (
|
|
7643
|
-
if (
|
|
7644
|
-
Me =
|
|
7641
|
+
throw Error(C + M + " not true or false: " + W);
|
|
7642
|
+
if (D.hasOwnProperty(M = "MODULO_MODE") && (W = D[M], Q(W, 0, 9, M), Oe = W), D.hasOwnProperty(M = "POW_PRECISION") && (W = D[M], Q(W, 0, J, M), Fe = W), D.hasOwnProperty(M = "FORMAT"))
|
|
7643
|
+
if (W = D[M], typeof W == "object")
|
|
7644
|
+
Me = W;
|
|
7645
7645
|
else
|
|
7646
|
-
throw Error(C + M + " not an object: " +
|
|
7646
|
+
throw Error(C + M + " not an object: " + W);
|
|
7647
7647
|
if (D.hasOwnProperty(M = "ALPHABET"))
|
|
7648
|
-
if (
|
|
7649
|
-
Le =
|
|
7648
|
+
if (W = D[M], typeof W == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(W))
|
|
7649
|
+
Le = W.slice(0, 10) == "0123456789", he = W;
|
|
7650
7650
|
else
|
|
7651
|
-
throw Error(C + M + " invalid: " +
|
|
7651
|
+
throw Error(C + M + " invalid: " + W);
|
|
7652
7652
|
} else
|
|
7653
7653
|
throw Error(C + "Object expected: " + D);
|
|
7654
7654
|
return {
|
|
@@ -7667,7 +7667,7 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7667
7667
|
return !1;
|
|
7668
7668
|
if (!fe.DEBUG)
|
|
7669
7669
|
return !0;
|
|
7670
|
-
var M,
|
|
7670
|
+
var M, W, R = D.c, I = D.e, F = D.s;
|
|
7671
7671
|
e:
|
|
7672
7672
|
if ({}.toString.call(R) == "[object Array]") {
|
|
7673
7673
|
if ((F === 1 || F === -1) && I >= -J && I <= J && I === l(I)) {
|
|
@@ -7676,11 +7676,11 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7676
7676
|
return !0;
|
|
7677
7677
|
break e;
|
|
7678
7678
|
}
|
|
7679
|
-
if (M = (I + 1) %
|
|
7679
|
+
if (M = (I + 1) % B, M < 1 && (M += B), String(R[0]).length == M) {
|
|
7680
7680
|
for (M = 0; M < R.length; M++)
|
|
7681
|
-
if (
|
|
7681
|
+
if (W = R[M], W < 0 || W >= L || W !== l(W))
|
|
7682
7682
|
break e;
|
|
7683
|
-
if (
|
|
7683
|
+
if (W !== 0)
|
|
7684
7684
|
return !0;
|
|
7685
7685
|
}
|
|
7686
7686
|
}
|
|
@@ -7697,9 +7697,9 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7697
7697
|
} : function() {
|
|
7698
7698
|
return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
|
|
7699
7699
|
};
|
|
7700
|
-
return function(
|
|
7700
|
+
return function(W) {
|
|
7701
7701
|
var R, I, F, H, j, K = 0, Z = [], z = new fe(pe);
|
|
7702
|
-
if (
|
|
7702
|
+
if (W == null ? W = de : Q(W, 0, J), H = c(W / B), Re)
|
|
7703
7703
|
if (crypto.getRandomValues) {
|
|
7704
7704
|
for (R = crypto.getRandomValues(new Uint32Array(H *= 2)); K < H; )
|
|
7705
7705
|
j = R[K] * 131072 + (R[K + 1] >>> 11), j >= 9e15 ? (I = crypto.getRandomValues(new Uint32Array(2)), R[K] = I[0], R[K + 1] = I[1]) : (Z.push(j % 1e14), K += 2);
|
|
@@ -7713,58 +7713,58 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7713
7713
|
if (!Re)
|
|
7714
7714
|
for (; K < H; )
|
|
7715
7715
|
j = M(), j < 9e15 && (Z[K++] = j % 1e14);
|
|
7716
|
-
for (H = Z[--K],
|
|
7716
|
+
for (H = Z[--K], W %= B, H && W && (j = U[B - W], Z[K] = l(H / j) * j); Z[K] === 0; Z.pop(), K--)
|
|
7717
7717
|
;
|
|
7718
7718
|
if (K < 0)
|
|
7719
7719
|
Z = [F = 0];
|
|
7720
7720
|
else {
|
|
7721
|
-
for (F = -1; Z[0] === 0; Z.splice(0, 1), F -=
|
|
7721
|
+
for (F = -1; Z[0] === 0; Z.splice(0, 1), F -= B)
|
|
7722
7722
|
;
|
|
7723
7723
|
for (K = 1, j = Z[0]; j >= 10; j /= 10, K++)
|
|
7724
7724
|
;
|
|
7725
|
-
K <
|
|
7725
|
+
K < B && (F -= B - K);
|
|
7726
7726
|
}
|
|
7727
7727
|
return z.e = F, z.c = Z, z;
|
|
7728
7728
|
};
|
|
7729
7729
|
}(), fe.sum = function() {
|
|
7730
|
-
for (var D = 1, M = arguments,
|
|
7731
|
-
|
|
7732
|
-
return
|
|
7730
|
+
for (var D = 1, M = arguments, W = new fe(M[0]); D < M.length; )
|
|
7731
|
+
W = W.plus(M[D++]);
|
|
7732
|
+
return W;
|
|
7733
7733
|
}, G = function() {
|
|
7734
7734
|
var D = "0123456789";
|
|
7735
|
-
function M(
|
|
7736
|
-
for (var H, j = [0], K, Z = 0, z =
|
|
7735
|
+
function M(W, R, I, F) {
|
|
7736
|
+
for (var H, j = [0], K, Z = 0, z = W.length; Z < z; ) {
|
|
7737
7737
|
for (K = j.length; K--; j[K] *= R)
|
|
7738
7738
|
;
|
|
7739
|
-
for (j[0] += F.indexOf(
|
|
7739
|
+
for (j[0] += F.indexOf(W.charAt(Z++)), H = 0; H < j.length; H++)
|
|
7740
7740
|
j[H] > I - 1 && (j[H + 1] == null && (j[H + 1] = 0), j[H + 1] += j[H] / I | 0, j[H] %= I);
|
|
7741
7741
|
}
|
|
7742
7742
|
return j.reverse();
|
|
7743
7743
|
}
|
|
7744
|
-
return function(
|
|
7745
|
-
var j, K, Z, z, ue, me, _e, ye, Se =
|
|
7746
|
-
for (Se >= 0 && (z = Fe, Fe = 0,
|
|
7744
|
+
return function(W, R, I, F, H) {
|
|
7745
|
+
var j, K, Z, z, ue, me, _e, ye, Se = W.indexOf("."), Ne = de, ee = ge;
|
|
7746
|
+
for (Se >= 0 && (z = Fe, Fe = 0, W = W.replace(".", ""), ye = new fe(R), me = ye.pow(W.length - Se), Fe = z, ye.c = M(
|
|
7747
7747
|
oe(re(me.c), me.e, "0"),
|
|
7748
7748
|
10,
|
|
7749
7749
|
I,
|
|
7750
7750
|
D
|
|
7751
|
-
), ye.e = ye.c.length), _e = M(
|
|
7751
|
+
), ye.e = ye.c.length), _e = M(W, R, I, H ? (j = he, D) : (j = D, he)), Z = z = _e.length; _e[--z] == 0; _e.pop())
|
|
7752
7752
|
;
|
|
7753
7753
|
if (!_e[0])
|
|
7754
7754
|
return j.charAt(0);
|
|
7755
7755
|
if (Se < 0 ? --Z : (me.c = _e, me.e = Z, me.s = F, me = ie(me, ye, Ne, ee, I), _e = me.c, ue = me.r, Z = me.e), K = Z + Ne + 1, Se = _e[K], z = I / 2, ue = ue || K < 0 || _e[K + 1] != null, ue = ee < 4 ? (Se != null || ue) && (ee == 0 || ee == (me.s < 0 ? 3 : 2)) : Se > z || Se == z && (ee == 4 || ue || ee == 6 && _e[K - 1] & 1 || ee == (me.s < 0 ? 8 : 7)), K < 1 || !_e[0])
|
|
7756
|
-
|
|
7756
|
+
W = ue ? oe(j.charAt(1), -Ne, j.charAt(0)) : j.charAt(0);
|
|
7757
7757
|
else {
|
|
7758
7758
|
if (_e.length = K, ue)
|
|
7759
7759
|
for (--I; ++_e[--K] > I; )
|
|
7760
7760
|
_e[K] = 0, K || (++Z, _e = [1].concat(_e));
|
|
7761
7761
|
for (z = _e.length; !_e[--z]; )
|
|
7762
7762
|
;
|
|
7763
|
-
for (Se = 0,
|
|
7763
|
+
for (Se = 0, W = ""; Se <= z; W += j.charAt(_e[Se++]))
|
|
7764
7764
|
;
|
|
7765
|
-
|
|
7765
|
+
W = oe(W, Z, j.charAt(0));
|
|
7766
7766
|
}
|
|
7767
|
-
return
|
|
7767
|
+
return W;
|
|
7768
7768
|
};
|
|
7769
7769
|
}(), ie = function() {
|
|
7770
7770
|
function D(R, I, F) {
|
|
@@ -7785,7 +7785,7 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7785
7785
|
}
|
|
7786
7786
|
return K;
|
|
7787
7787
|
}
|
|
7788
|
-
function
|
|
7788
|
+
function W(R, I, F, H) {
|
|
7789
7789
|
for (var j = 0; F--; )
|
|
7790
7790
|
R[F] -= j, j = R[F] < I[F] ? 1 : 0, R[F] = j * H + R[F] - I[F];
|
|
7791
7791
|
for (; !R[0] && R.length > 1; R.splice(0, 1))
|
|
@@ -7801,7 +7801,7 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7801
7801
|
Ve && Ve[0] == 0 || !Ue ? We * 0 : We / 0
|
|
7802
7802
|
)
|
|
7803
7803
|
);
|
|
7804
|
-
for (Se = new fe(We), Ne = Se.c = [], Z = R.e - I.e, We = F + Z + 1, j || (j = L, Z = se(R.e /
|
|
7804
|
+
for (Se = new fe(We), Ne = Se.c = [], Z = R.e - I.e, We = F + Z + 1, j || (j = L, Z = se(R.e / B) - se(I.e / B), We = We / B | 0), z = 0; Ue[z] == (Ve[z] || 0); z++)
|
|
7805
7805
|
;
|
|
7806
7806
|
if (Ue[z] > (Ve[z] || 0) && Z--, We < 0)
|
|
7807
7807
|
Ne.push(1), ue = !0;
|
|
@@ -7813,12 +7813,12 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7813
7813
|
if (me = 0, K = M(Ue, ee, xe, le), K < 0) {
|
|
7814
7814
|
if (Te = ee[0], xe != le && (Te = Te * j + (ee[1] || 0)), me = l(Te / Be), me > 1)
|
|
7815
7815
|
for (me >= j && (me = j - 1), _e = D(Ue, me, j), ye = _e.length, le = ee.length; M(_e, ee, ye, le) == 1; )
|
|
7816
|
-
me--,
|
|
7816
|
+
me--, W(_e, xe < ye ? $e : Ue, ye, j), ye = _e.length, K = 1;
|
|
7817
7817
|
else
|
|
7818
7818
|
me == 0 && (K = me = 1), _e = Ue.slice(), ye = _e.length;
|
|
7819
|
-
if (ye < le && (_e = [0].concat(_e)),
|
|
7819
|
+
if (ye < le && (_e = [0].concat(_e)), W(ee, _e, le, j), le = ee.length, K == -1)
|
|
7820
7820
|
for (; M(Ue, ee, xe, le) < 1; )
|
|
7821
|
-
me++,
|
|
7821
|
+
me++, W(ee, xe < le ? $e : Ue, le, j), le = ee.length;
|
|
7822
7822
|
} else
|
|
7823
7823
|
K === 0 && (me++, ee = [0]);
|
|
7824
7824
|
Ne[z++] = me, ee[0] ? ee[le++] = Ve[we] || 0 : (ee = [Ve[we]], le = 1);
|
|
@@ -7828,19 +7828,19 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7828
7828
|
if (j == L) {
|
|
7829
7829
|
for (z = 1, We = Ne[0]; We >= 10; We /= 10, z++)
|
|
7830
7830
|
;
|
|
7831
|
-
Ie(Se, F + (Se.e = z + Z *
|
|
7831
|
+
Ie(Se, F + (Se.e = z + Z * B - 1) + 1, H, ue);
|
|
7832
7832
|
} else
|
|
7833
7833
|
Se.e = Z, Se.r = +ue;
|
|
7834
7834
|
return Se;
|
|
7835
7835
|
};
|
|
7836
7836
|
}();
|
|
7837
|
-
function Pe(D, M,
|
|
7837
|
+
function Pe(D, M, W, R) {
|
|
7838
7838
|
var I, F, H, j, K;
|
|
7839
|
-
if (
|
|
7839
|
+
if (W == null ? W = ge : Q(W, 0, 8), !D.c)
|
|
7840
7840
|
return D.toString();
|
|
7841
7841
|
if (I = D.c[0], H = D.e, M == null)
|
|
7842
7842
|
K = re(D.c), K = R == 1 || R == 2 && (H <= ve || H >= Ae) ? te(K, H) : oe(K, H, "0");
|
|
7843
|
-
else if (D = Ie(new fe(D), M,
|
|
7843
|
+
else if (D = Ie(new fe(D), M, W), F = D.e, K = re(D.c), j = K.length, R == 1 || R == 2 && (M <= F || F <= ve)) {
|
|
7844
7844
|
for (; j < M; K += "0", j++)
|
|
7845
7845
|
;
|
|
7846
7846
|
K = te(K, F);
|
|
@@ -7854,19 +7854,19 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7854
7854
|
return D.s < 0 && I ? "-" + K : K;
|
|
7855
7855
|
}
|
|
7856
7856
|
function ke(D, M) {
|
|
7857
|
-
for (var
|
|
7858
|
-
R = new fe(D[I]), (!R.s || (
|
|
7857
|
+
for (var W, R, I = 1, F = new fe(D[0]); I < D.length; I++)
|
|
7858
|
+
R = new fe(D[I]), (!R.s || (W = Y(F, R)) === M || W === 0 && F.s === M) && (F = R);
|
|
7859
7859
|
return F;
|
|
7860
7860
|
}
|
|
7861
|
-
function De(D, M,
|
|
7861
|
+
function De(D, M, W) {
|
|
7862
7862
|
for (var R = 1, I = M.length; !M[--I]; M.pop())
|
|
7863
7863
|
;
|
|
7864
7864
|
for (I = M[0]; I >= 10; I /= 10, R++)
|
|
7865
7865
|
;
|
|
7866
|
-
return (
|
|
7866
|
+
return (W = R + W * B - 1) > Ee ? D.c = D.e = null : W < Ce ? D.c = [D.e = 0] : (D.e = W, D.c = M), D;
|
|
7867
7867
|
}
|
|
7868
7868
|
$ = function() {
|
|
7869
|
-
var D = /^(-?)0([xbo])(?=\w[\w.]*$)/i, M = /^([^.]+)\.$/,
|
|
7869
|
+
var D = /^(-?)0([xbo])(?=\w[\w.]*$)/i, M = /^([^.]+)\.$/, W = /^\.([^.]+)$/, R = /^-?(Infinity|NaN)$/, I = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
|
|
7870
7870
|
return function(F, H, j, K) {
|
|
7871
7871
|
var Z, z = j ? H : H.replace(I, "");
|
|
7872
7872
|
if (R.test(z))
|
|
@@ -7874,7 +7874,7 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7874
7874
|
else {
|
|
7875
7875
|
if (!j && (z = z.replace(D, function(ue, me, _e) {
|
|
7876
7876
|
return Z = (_e = _e.toLowerCase()) == "x" ? 16 : _e == "b" ? 2 : 8, !K || K == Z ? me : ue;
|
|
7877
|
-
}), K && (Z = K, z = z.replace(M, "$1").replace(
|
|
7877
|
+
}), K && (Z = K, z = z.replace(M, "$1").replace(W, "0.$1")), H != z))
|
|
7878
7878
|
return new fe(z, Z);
|
|
7879
7879
|
if (fe.DEBUG)
|
|
7880
7880
|
throw Error(C + "Not a" + (K ? " base " + K : "") + " number: " + H);
|
|
@@ -7883,33 +7883,33 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7883
7883
|
F.c = F.e = null;
|
|
7884
7884
|
};
|
|
7885
7885
|
}();
|
|
7886
|
-
function Ie(D, M,
|
|
7886
|
+
function Ie(D, M, W, R) {
|
|
7887
7887
|
var I, F, H, j, K, Z, z, ue = D.c, me = U;
|
|
7888
7888
|
if (ue) {
|
|
7889
7889
|
e: {
|
|
7890
7890
|
for (I = 1, j = ue[0]; j >= 10; j /= 10, I++)
|
|
7891
7891
|
;
|
|
7892
7892
|
if (F = M - I, F < 0)
|
|
7893
|
-
F +=
|
|
7894
|
-
else if (Z = c((F + 1) /
|
|
7893
|
+
F += B, H = M, K = ue[Z = 0], z = l(K / me[I - H - 1] % 10);
|
|
7894
|
+
else if (Z = c((F + 1) / B), Z >= ue.length)
|
|
7895
7895
|
if (R) {
|
|
7896
7896
|
for (; ue.length <= Z; ue.push(0))
|
|
7897
7897
|
;
|
|
7898
|
-
K = z = 0, I = 1, F %=
|
|
7898
|
+
K = z = 0, I = 1, F %= B, H = F - B + 1;
|
|
7899
7899
|
} else
|
|
7900
7900
|
break e;
|
|
7901
7901
|
else {
|
|
7902
7902
|
for (K = j = ue[Z], I = 1; j >= 10; j /= 10, I++)
|
|
7903
7903
|
;
|
|
7904
|
-
F %=
|
|
7904
|
+
F %= B, H = F - B + I, z = H < 0 ? 0 : l(K / me[I - H - 1] % 10);
|
|
7905
7905
|
}
|
|
7906
7906
|
if (R = R || M < 0 || // Are there any non-zero digits after the rounding digit?
|
|
7907
7907
|
// The expression n % pows10[d - j - 1] returns all digits of n to the right
|
|
7908
7908
|
// of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
|
|
7909
|
-
ue[Z + 1] != null || (H < 0 ? K : K % me[I - H - 1]), R =
|
|
7910
|
-
(F > 0 ? H > 0 ? K / me[I - H] : 0 : ue[Z - 1]) % 10 & 1 ||
|
|
7911
|
-
return ue.length = 0, R ? (M -= D.e + 1, ue[0] = me[(
|
|
7912
|
-
if (F == 0 ? (ue.length = Z, j = 1, Z--) : (ue.length = Z + 1, j = me[
|
|
7909
|
+
ue[Z + 1] != null || (H < 0 ? K : K % me[I - H - 1]), R = W < 4 ? (z || R) && (W == 0 || W == (D.s < 0 ? 3 : 2)) : z > 5 || z == 5 && (W == 4 || R || W == 6 && // Check whether the digit to the left of the rounding digit is odd.
|
|
7910
|
+
(F > 0 ? H > 0 ? K / me[I - H] : 0 : ue[Z - 1]) % 10 & 1 || W == (D.s < 0 ? 8 : 7)), M < 1 || !ue[0])
|
|
7911
|
+
return ue.length = 0, R ? (M -= D.e + 1, ue[0] = me[(B - M % B) % B], D.e = -M || 0) : ue[0] = D.e = 0, D;
|
|
7912
|
+
if (F == 0 ? (ue.length = Z, j = 1, Z--) : (ue.length = Z + 1, j = me[B - F], ue[Z] = H > 0 ? l(K / me[I - H] % me[H]) * j : 0), R)
|
|
7913
7913
|
for (; ; )
|
|
7914
7914
|
if (Z == 0) {
|
|
7915
7915
|
for (F = 1, H = ue[0]; H >= 10; H /= 10, F++)
|
|
@@ -7931,21 +7931,21 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7931
7931
|
return D;
|
|
7932
7932
|
}
|
|
7933
7933
|
function be(D) {
|
|
7934
|
-
var M,
|
|
7935
|
-
return
|
|
7934
|
+
var M, W = D.e;
|
|
7935
|
+
return W === null ? D.toString() : (M = re(D.c), M = W <= ve || W >= Ae ? te(M, W) : oe(M, W, "0"), D.s < 0 ? "-" + M : M);
|
|
7936
7936
|
}
|
|
7937
7937
|
return X.absoluteValue = X.abs = function() {
|
|
7938
7938
|
var D = new fe(this);
|
|
7939
7939
|
return D.s < 0 && (D.s = 1), D;
|
|
7940
7940
|
}, X.comparedTo = function(D, M) {
|
|
7941
|
-
return
|
|
7941
|
+
return Y(this, new fe(D, M));
|
|
7942
7942
|
}, X.decimalPlaces = X.dp = function(D, M) {
|
|
7943
|
-
var
|
|
7943
|
+
var W, R, I, F = this;
|
|
7944
7944
|
if (D != null)
|
|
7945
7945
|
return Q(D, 0, J), M == null ? M = ge : Q(M, 0, 8), Ie(new fe(F), D + F.e + 1, M);
|
|
7946
|
-
if (!(
|
|
7946
|
+
if (!(W = F.c))
|
|
7947
7947
|
return null;
|
|
7948
|
-
if (R = ((I =
|
|
7948
|
+
if (R = ((I = W.length - 1) - se(this.e / B)) * B, I = W[I])
|
|
7949
7949
|
for (; I % 10 == 0; I /= 10, R--)
|
|
7950
7950
|
;
|
|
7951
7951
|
return R < 0 && (R = 0), R;
|
|
@@ -7954,7 +7954,7 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7954
7954
|
}, X.dividedToIntegerBy = X.idiv = function(D, M) {
|
|
7955
7955
|
return ie(this, new fe(D, M), 0, 1);
|
|
7956
7956
|
}, X.exponentiatedBy = X.pow = function(D, M) {
|
|
7957
|
-
var
|
|
7957
|
+
var W, R, I, F, H, j, K, Z, z, ue = this;
|
|
7958
7958
|
if (D = new fe(D), D.c && !D.isInteger())
|
|
7959
7959
|
throw Error(C + "Exponent not an integer: " + be(D));
|
|
7960
7960
|
if (M != null && (M = new fe(M)), j = D.e > 14, !ue.c || !ue.c[0] || ue.c[0] == 1 && !ue.e && ue.c.length == 1 || !D.c || !D.c[0])
|
|
@@ -7966,9 +7966,9 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7966
7966
|
} else {
|
|
7967
7967
|
if (D.e > 9 && (ue.e > 0 || ue.e < -1 || (ue.e == 0 ? ue.c[0] > 1 || j && ue.c[1] >= 24e7 : ue.c[0] < 8e13 || j && ue.c[0] <= 9999975e7)))
|
|
7968
7968
|
return F = ue.s < 0 && ae(D) ? -0 : 0, ue.e > -1 && (F = 1 / F), new fe(K ? 1 / F : F);
|
|
7969
|
-
Fe && (F = c(Fe /
|
|
7969
|
+
Fe && (F = c(Fe / B + 2));
|
|
7970
7970
|
}
|
|
7971
|
-
for (j ? (
|
|
7971
|
+
for (j ? (W = new fe(0.5), K && (D.s = 1), Z = ae(D)) : (I = Math.abs(+be(D)), Z = I % 2), z = new fe(pe); ; ) {
|
|
7972
7972
|
if (Z) {
|
|
7973
7973
|
if (z = z.times(ue), !z.c)
|
|
7974
7974
|
break;
|
|
@@ -7978,7 +7978,7 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7978
7978
|
if (I = l(I / 2), I === 0)
|
|
7979
7979
|
break;
|
|
7980
7980
|
Z = I % 2;
|
|
7981
|
-
} else if (D = D.times(
|
|
7981
|
+
} else if (D = D.times(W), Ie(D, D.e + 1, 1), D.e > 14)
|
|
7982
7982
|
Z = ae(D);
|
|
7983
7983
|
else {
|
|
7984
7984
|
if (I = +be(D), I === 0)
|
|
@@ -7992,19 +7992,19 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7992
7992
|
var M = new fe(this);
|
|
7993
7993
|
return D == null ? D = ge : Q(D, 0, 8), Ie(M, M.e + 1, D);
|
|
7994
7994
|
}, X.isEqualTo = X.eq = function(D, M) {
|
|
7995
|
-
return
|
|
7995
|
+
return Y(this, new fe(D, M)) === 0;
|
|
7996
7996
|
}, X.isFinite = function() {
|
|
7997
7997
|
return !!this.c;
|
|
7998
7998
|
}, X.isGreaterThan = X.gt = function(D, M) {
|
|
7999
|
-
return
|
|
7999
|
+
return Y(this, new fe(D, M)) > 0;
|
|
8000
8000
|
}, X.isGreaterThanOrEqualTo = X.gte = function(D, M) {
|
|
8001
|
-
return (M =
|
|
8001
|
+
return (M = Y(this, new fe(D, M))) === 1 || M === 0;
|
|
8002
8002
|
}, X.isInteger = function() {
|
|
8003
|
-
return !!this.c && se(this.e /
|
|
8003
|
+
return !!this.c && se(this.e / B) > this.c.length - 2;
|
|
8004
8004
|
}, X.isLessThan = X.lt = function(D, M) {
|
|
8005
|
-
return
|
|
8005
|
+
return Y(this, new fe(D, M)) < 0;
|
|
8006
8006
|
}, X.isLessThanOrEqualTo = X.lte = function(D, M) {
|
|
8007
|
-
return (M =
|
|
8007
|
+
return (M = Y(this, new fe(D, M))) === -1 || M === 0;
|
|
8008
8008
|
}, X.isNaN = function() {
|
|
8009
8009
|
return !this.s;
|
|
8010
8010
|
}, X.isNegative = function() {
|
|
@@ -8014,12 +8014,12 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
8014
8014
|
}, X.isZero = function() {
|
|
8015
8015
|
return !!this.c && this.c[0] == 0;
|
|
8016
8016
|
}, X.minus = function(D, M) {
|
|
8017
|
-
var
|
|
8017
|
+
var W, R, I, F, H = this, j = H.s;
|
|
8018
8018
|
if (D = new fe(D, M), M = D.s, !j || !M)
|
|
8019
8019
|
return new fe(NaN);
|
|
8020
8020
|
if (j != M)
|
|
8021
8021
|
return D.s = -M, H.plus(D);
|
|
8022
|
-
var K = H.e /
|
|
8022
|
+
var K = H.e / B, Z = D.e / B, z = H.c, ue = D.c;
|
|
8023
8023
|
if (!K || !Z) {
|
|
8024
8024
|
if (!z || !ue)
|
|
8025
8025
|
return z ? (D.s = -M, D) : new fe(ue ? H : NaN);
|
|
@@ -8039,14 +8039,14 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
8039
8039
|
F = z[M] < ue[M];
|
|
8040
8040
|
break;
|
|
8041
8041
|
}
|
|
8042
|
-
if (F && (I = z, z = ue, ue = I, D.s = -D.s), M = (R = ue.length) - (
|
|
8043
|
-
for (; M--; z[
|
|
8042
|
+
if (F && (I = z, z = ue, ue = I, D.s = -D.s), M = (R = ue.length) - (W = z.length), M > 0)
|
|
8043
|
+
for (; M--; z[W++] = 0)
|
|
8044
8044
|
;
|
|
8045
8045
|
for (M = L - 1; R > j; ) {
|
|
8046
8046
|
if (z[--R] < ue[R]) {
|
|
8047
|
-
for (
|
|
8047
|
+
for (W = R; W && !z[--W]; z[W] = M)
|
|
8048
8048
|
;
|
|
8049
|
-
--z[
|
|
8049
|
+
--z[W], z[R] += L;
|
|
8050
8050
|
}
|
|
8051
8051
|
z[R] -= ue[R];
|
|
8052
8052
|
}
|
|
@@ -8054,30 +8054,30 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
8054
8054
|
;
|
|
8055
8055
|
return z[0] ? De(D, z, Z) : (D.s = ge == 3 ? -1 : 1, D.c = [D.e = 0], D);
|
|
8056
8056
|
}, X.modulo = X.mod = function(D, M) {
|
|
8057
|
-
var
|
|
8058
|
-
return D = new fe(D, M), !I.c || !D.s || D.c && !D.c[0] ? new fe(NaN) : !D.c || I.c && !I.c[0] ? new fe(I) : (Oe == 9 ? (R = D.s, D.s = 1,
|
|
8057
|
+
var W, R, I = this;
|
|
8058
|
+
return D = new fe(D, M), !I.c || !D.s || D.c && !D.c[0] ? new fe(NaN) : !D.c || I.c && !I.c[0] ? new fe(I) : (Oe == 9 ? (R = D.s, D.s = 1, W = ie(I, D, 0, 3), D.s = R, W.s *= R) : W = ie(I, D, 0, Oe), D = I.minus(W.times(D)), !D.c[0] && Oe == 1 && (D.s = I.s), D);
|
|
8059
8059
|
}, X.multipliedBy = X.times = function(D, M) {
|
|
8060
|
-
var
|
|
8060
|
+
var W, R, I, F, H, j, K, Z, z, ue, me, _e, ye, Se, Ne, ee = this, le = ee.c, Te = (D = new fe(D, M)).c;
|
|
8061
8061
|
if (!le || !Te || !le[0] || !Te[0])
|
|
8062
8062
|
return !ee.s || !D.s || le && !le[0] && !Te || Te && !Te[0] && !le ? D.c = D.e = D.s = null : (D.s *= ee.s, !le || !Te ? D.c = D.e = null : (D.c = [0], D.e = 0)), D;
|
|
8063
|
-
for (R = se(ee.e /
|
|
8063
|
+
for (R = se(ee.e / B) + se(D.e / B), D.s *= ee.s, K = le.length, ue = Te.length, K < ue && (ye = le, le = Te, Te = ye, I = K, K = ue, ue = I), I = K + ue, ye = []; I--; ye.push(0))
|
|
8064
8064
|
;
|
|
8065
8065
|
for (Se = L, Ne = V, I = ue; --I >= 0; ) {
|
|
8066
|
-
for (
|
|
8067
|
-
Z = le[--H] % Ne, z = le[H] / Ne | 0, j = _e * Z + z * me, Z = me * Z + j % Ne * Ne + ye[F] +
|
|
8068
|
-
ye[F] =
|
|
8066
|
+
for (W = 0, me = Te[I] % Ne, _e = Te[I] / Ne | 0, H = K, F = I + H; F > I; )
|
|
8067
|
+
Z = le[--H] % Ne, z = le[H] / Ne | 0, j = _e * Z + z * me, Z = me * Z + j % Ne * Ne + ye[F] + W, W = (Z / Se | 0) + (j / Ne | 0) + _e * z, ye[F--] = Z % Se;
|
|
8068
|
+
ye[F] = W;
|
|
8069
8069
|
}
|
|
8070
|
-
return
|
|
8070
|
+
return W ? ++R : ye.splice(0, 1), De(D, ye, R);
|
|
8071
8071
|
}, X.negated = function() {
|
|
8072
8072
|
var D = new fe(this);
|
|
8073
8073
|
return D.s = -D.s || null, D;
|
|
8074
8074
|
}, X.plus = function(D, M) {
|
|
8075
|
-
var
|
|
8075
|
+
var W, R = this, I = R.s;
|
|
8076
8076
|
if (D = new fe(D, M), M = D.s, !I || !M)
|
|
8077
8077
|
return new fe(NaN);
|
|
8078
8078
|
if (I != M)
|
|
8079
8079
|
return D.s = -M, R.minus(D);
|
|
8080
|
-
var F = R.e /
|
|
8080
|
+
var F = R.e / B, H = D.e / B, j = R.c, K = D.c;
|
|
8081
8081
|
if (!F || !H) {
|
|
8082
8082
|
if (!j || !K)
|
|
8083
8083
|
return new fe(I / 0);
|
|
@@ -8085,88 +8085,88 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
8085
8085
|
return K[0] ? D : new fe(j[0] ? R : I * 0);
|
|
8086
8086
|
}
|
|
8087
8087
|
if (F = se(F), H = se(H), j = j.slice(), I = F - H) {
|
|
8088
|
-
for (I > 0 ? (H = F,
|
|
8088
|
+
for (I > 0 ? (H = F, W = K) : (I = -I, W = j), W.reverse(); I--; W.push(0))
|
|
8089
8089
|
;
|
|
8090
|
-
|
|
8090
|
+
W.reverse();
|
|
8091
8091
|
}
|
|
8092
|
-
for (I = j.length, M = K.length, I - M < 0 && (
|
|
8092
|
+
for (I = j.length, M = K.length, I - M < 0 && (W = K, K = j, j = W, M = I), I = 0; M; )
|
|
8093
8093
|
I = (j[--M] = j[M] + K[M] + I) / L | 0, j[M] = L === j[M] ? 0 : j[M] % L;
|
|
8094
8094
|
return I && (j = [I].concat(j), ++H), De(D, j, H);
|
|
8095
8095
|
}, X.precision = X.sd = function(D, M) {
|
|
8096
|
-
var
|
|
8096
|
+
var W, R, I, F = this;
|
|
8097
8097
|
if (D != null && D !== !!D)
|
|
8098
8098
|
return Q(D, 1, J), M == null ? M = ge : Q(M, 0, 8), Ie(new fe(F), D, M);
|
|
8099
|
-
if (!(
|
|
8099
|
+
if (!(W = F.c))
|
|
8100
8100
|
return null;
|
|
8101
|
-
if (I =
|
|
8101
|
+
if (I = W.length - 1, R = I * B + 1, I = W[I]) {
|
|
8102
8102
|
for (; I % 10 == 0; I /= 10, R--)
|
|
8103
8103
|
;
|
|
8104
|
-
for (I =
|
|
8104
|
+
for (I = W[0]; I >= 10; I /= 10, R++)
|
|
8105
8105
|
;
|
|
8106
8106
|
}
|
|
8107
8107
|
return D && F.e + 1 > R && (R = F.e + 1), R;
|
|
8108
8108
|
}, X.shiftedBy = function(D) {
|
|
8109
|
-
return Q(D, -
|
|
8109
|
+
return Q(D, -q, q), this.times("1e" + D);
|
|
8110
8110
|
}, X.squareRoot = X.sqrt = function() {
|
|
8111
|
-
var D, M,
|
|
8111
|
+
var D, M, W, R, I, F = this, H = F.c, j = F.s, K = F.e, Z = de + 4, z = new fe("0.5");
|
|
8112
8112
|
if (j !== 1 || !H || !H[0])
|
|
8113
8113
|
return new fe(!j || j < 0 && (!H || H[0]) ? NaN : H ? F : 1 / 0);
|
|
8114
|
-
if (j = Math.sqrt(+be(F)), j == 0 || j == 1 / 0 ? (M = re(H), (M.length + K) % 2 == 0 && (M += "0"), j = Math.sqrt(+M), K = se((K + 1) / 2) - (K < 0 || K % 2), j == 1 / 0 ? M = "5e" + K : (M = j.toExponential(), M = M.slice(0, M.indexOf("e") + 1) + K),
|
|
8115
|
-
for (K =
|
|
8116
|
-
if (I =
|
|
8117
|
-
if (
|
|
8114
|
+
if (j = Math.sqrt(+be(F)), j == 0 || j == 1 / 0 ? (M = re(H), (M.length + K) % 2 == 0 && (M += "0"), j = Math.sqrt(+M), K = se((K + 1) / 2) - (K < 0 || K % 2), j == 1 / 0 ? M = "5e" + K : (M = j.toExponential(), M = M.slice(0, M.indexOf("e") + 1) + K), W = new fe(M)) : W = new fe(j + ""), W.c[0]) {
|
|
8115
|
+
for (K = W.e, j = K + Z, j < 3 && (j = 0); ; )
|
|
8116
|
+
if (I = W, W = z.times(I.plus(ie(F, I, Z, 1))), re(I.c).slice(0, j) === (M = re(W.c)).slice(0, j))
|
|
8117
|
+
if (W.e < K && --j, M = M.slice(j - 3, j + 1), M == "9999" || !R && M == "4999") {
|
|
8118
8118
|
if (!R && (Ie(I, I.e + de + 2, 0), I.times(I).eq(F))) {
|
|
8119
|
-
|
|
8119
|
+
W = I;
|
|
8120
8120
|
break;
|
|
8121
8121
|
}
|
|
8122
8122
|
Z += 4, j += 4, R = 1;
|
|
8123
8123
|
} else {
|
|
8124
|
-
(!+M || !+M.slice(1) && M.charAt(0) == "5") && (Ie(
|
|
8124
|
+
(!+M || !+M.slice(1) && M.charAt(0) == "5") && (Ie(W, W.e + de + 2, 1), D = !W.times(W).eq(F));
|
|
8125
8125
|
break;
|
|
8126
8126
|
}
|
|
8127
8127
|
}
|
|
8128
|
-
return Ie(
|
|
8128
|
+
return Ie(W, W.e + de + 1, ge, D);
|
|
8129
8129
|
}, X.toExponential = function(D, M) {
|
|
8130
8130
|
return D != null && (Q(D, 0, J), D++), Pe(this, D, M, 1);
|
|
8131
8131
|
}, X.toFixed = function(D, M) {
|
|
8132
8132
|
return D != null && (Q(D, 0, J), D = D + this.e + 1), Pe(this, D, M);
|
|
8133
|
-
}, X.toFormat = function(D, M,
|
|
8133
|
+
}, X.toFormat = function(D, M, W) {
|
|
8134
8134
|
var R, I = this;
|
|
8135
|
-
if (
|
|
8136
|
-
D != null && M && typeof M == "object" ? (
|
|
8137
|
-
else if (typeof
|
|
8138
|
-
throw Error(C + "Argument not an object: " +
|
|
8135
|
+
if (W == null)
|
|
8136
|
+
D != null && M && typeof M == "object" ? (W = M, M = null) : D && typeof D == "object" ? (W = D, D = M = null) : W = Me;
|
|
8137
|
+
else if (typeof W != "object")
|
|
8138
|
+
throw Error(C + "Argument not an object: " + W);
|
|
8139
8139
|
if (R = I.toFixed(D, M), I.c) {
|
|
8140
|
-
var F, H = R.split("."), j = +
|
|
8140
|
+
var F, H = R.split("."), j = +W.groupSize, K = +W.secondaryGroupSize, Z = W.groupSeparator || "", z = H[0], ue = H[1], me = I.s < 0, _e = me ? z.slice(1) : z, ye = _e.length;
|
|
8141
8141
|
if (K && (F = j, j = K, K = F, ye -= F), j > 0 && ye > 0) {
|
|
8142
8142
|
for (F = ye % j || j, z = _e.substr(0, F); F < ye; F += j)
|
|
8143
8143
|
z += Z + _e.substr(F, j);
|
|
8144
8144
|
K > 0 && (z += Z + _e.slice(F)), me && (z = "-" + z);
|
|
8145
8145
|
}
|
|
8146
|
-
R = ue ? z + (
|
|
8146
|
+
R = ue ? z + (W.decimalSeparator || "") + ((K = +W.fractionGroupSize) ? ue.replace(
|
|
8147
8147
|
new RegExp("\\d{" + K + "}\\B", "g"),
|
|
8148
|
-
"$&" + (
|
|
8148
|
+
"$&" + (W.fractionGroupSeparator || "")
|
|
8149
8149
|
) : ue) : z;
|
|
8150
8150
|
}
|
|
8151
|
-
return (
|
|
8151
|
+
return (W.prefix || "") + R + (W.suffix || "");
|
|
8152
8152
|
}, X.toFraction = function(D) {
|
|
8153
|
-
var M,
|
|
8153
|
+
var M, W, R, I, F, H, j, K, Z, z, ue, me, _e = this, ye = _e.c;
|
|
8154
8154
|
if (D != null && (j = new fe(D), !j.isInteger() && (j.c || j.s !== 1) || j.lt(pe)))
|
|
8155
8155
|
throw Error(C + "Argument " + (j.isInteger() ? "out of range: " : "not an integer: ") + be(j));
|
|
8156
8156
|
if (!ye)
|
|
8157
8157
|
return new fe(_e);
|
|
8158
|
-
for (M = new fe(pe), Z =
|
|
8159
|
-
|
|
8160
|
-
return I = ie(D.minus(
|
|
8161
|
-
ie(K,
|
|
8162
|
-
) < 1 ? [Z, R] : [K,
|
|
8158
|
+
for (M = new fe(pe), Z = W = new fe(pe), R = K = new fe(pe), me = re(ye), F = M.e = me.length - _e.e - 1, M.c[0] = U[(H = F % B) < 0 ? B + H : H], D = !D || j.comparedTo(M) > 0 ? F > 0 ? M : Z : j, H = Ee, Ee = 1 / 0, j = new fe(me), K.c[0] = 0; z = ie(j, M, 0, 1), I = W.plus(z.times(R)), I.comparedTo(D) != 1; )
|
|
8159
|
+
W = R, R = I, Z = K.plus(z.times(I = Z)), K = I, M = j.minus(z.times(I = M)), j = I;
|
|
8160
|
+
return I = ie(D.minus(W), R, 0, 1), K = K.plus(I.times(Z)), W = W.plus(I.times(R)), K.s = Z.s = _e.s, F = F * 2, ue = ie(Z, R, F, ge).minus(_e).abs().comparedTo(
|
|
8161
|
+
ie(K, W, F, ge).minus(_e).abs()
|
|
8162
|
+
) < 1 ? [Z, R] : [K, W], Ee = H, ue;
|
|
8163
8163
|
}, X.toNumber = function() {
|
|
8164
8164
|
return +be(this);
|
|
8165
8165
|
}, X.toPrecision = function(D, M) {
|
|
8166
8166
|
return D != null && Q(D, 1, J), Pe(this, D, M, 2);
|
|
8167
8167
|
}, X.toString = function(D) {
|
|
8168
|
-
var M,
|
|
8169
|
-
return I === null ? R ? (M = "Infinity", R < 0 && (M = "-" + M)) : M = "NaN" : (D == null ? M = I <= ve || I >= Ae ? te(re(
|
|
8168
|
+
var M, W = this, R = W.s, I = W.e;
|
|
8169
|
+
return I === null ? R ? (M = "Infinity", R < 0 && (M = "-" + M)) : M = "NaN" : (D == null ? M = I <= ve || I >= Ae ? te(re(W.c), I) : oe(re(W.c), I, "0") : D === 10 && Le ? (W = Ie(new fe(W), de + I + 1, ge), M = oe(re(W.c), W.e, "0")) : (Q(D, 2, he.length, "Base"), M = G(oe(re(W.c), I, "0"), 10, D, R, !0)), R < 0 && W.c[0] && (M = "-" + M)), M;
|
|
8170
8170
|
}, X.valueOf = X.toJSON = function() {
|
|
8171
8171
|
return be(this);
|
|
8172
8172
|
}, X._isBigNumber = !0, ne != null && fe.set(ne), fe;
|
|
@@ -8177,7 +8177,7 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
8177
8177
|
}
|
|
8178
8178
|
function re(ne) {
|
|
8179
8179
|
for (var ie, G, $ = 1, X = ne.length, pe = ne[0] + ""; $ < X; ) {
|
|
8180
|
-
for (ie = ne[$++] + "", G =
|
|
8180
|
+
for (ie = ne[$++] + "", G = B - ie.length; G--; ie = "0" + ie)
|
|
8181
8181
|
;
|
|
8182
8182
|
pe += ie;
|
|
8183
8183
|
}
|
|
@@ -8185,7 +8185,7 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
8185
8185
|
;
|
|
8186
8186
|
return pe.slice(0, X + 1 || 1);
|
|
8187
8187
|
}
|
|
8188
|
-
function
|
|
8188
|
+
function Y(ne, ie) {
|
|
8189
8189
|
var G, $, X = ne.c, pe = ie.c, de = ne.s, ge = ie.s, ve = ne.e, Ae = ie.e;
|
|
8190
8190
|
if (!de || !ge)
|
|
8191
8191
|
return null;
|
|
@@ -8208,7 +8208,7 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
8208
8208
|
}
|
|
8209
8209
|
function ae(ne) {
|
|
8210
8210
|
var ie = ne.c.length - 1;
|
|
8211
|
-
return se(ne.e /
|
|
8211
|
+
return se(ne.e / B) == ie && ne.c[ie] % 2 != 0;
|
|
8212
8212
|
}
|
|
8213
8213
|
function te(ne, ie) {
|
|
8214
8214
|
return (ne.length > 1 ? ne.charAt(0) + "." + ne.slice(1) : ne) + (ie < 0 ? "e" : "e+") + ie;
|
|
@@ -8244,15 +8244,15 @@ var bignumberExports = bignumber.exports;
|
|
|
8244
8244
|
'"': '\\"',
|
|
8245
8245
|
"\\": "\\\\"
|
|
8246
8246
|
}, A;
|
|
8247
|
-
function L(
|
|
8248
|
-
return s.lastIndex = 0, s.test(
|
|
8247
|
+
function L(q) {
|
|
8248
|
+
return s.lastIndex = 0, s.test(q) ? '"' + q.replace(s, function(U) {
|
|
8249
8249
|
var V = C[U];
|
|
8250
8250
|
return typeof V == "string" ? V : "\\u" + ("0000" + U.charCodeAt(0).toString(16)).slice(-4);
|
|
8251
|
-
}) + '"' : '"' +
|
|
8251
|
+
}) + '"' : '"' + q + '"';
|
|
8252
8252
|
}
|
|
8253
|
-
function
|
|
8254
|
-
var V, J, ce, se, re = c,
|
|
8255
|
-
switch (Q && typeof Q == "object" && typeof Q.toJSON == "function" && (Q = Q.toJSON(
|
|
8253
|
+
function B(q, U) {
|
|
8254
|
+
var V, J, ce, se, re = c, Y, Q = U[q], ae = Q != null && (Q instanceof t || t.isBigNumber(Q));
|
|
8255
|
+
switch (Q && typeof Q == "object" && typeof Q.toJSON == "function" && (Q = Q.toJSON(q)), typeof A == "function" && (Q = A.call(U, q, Q)), typeof Q) {
|
|
8256
8256
|
case "string":
|
|
8257
8257
|
return ae ? Q : L(Q);
|
|
8258
8258
|
case "number":
|
|
@@ -8264,29 +8264,29 @@ var bignumberExports = bignumber.exports;
|
|
|
8264
8264
|
case "object":
|
|
8265
8265
|
if (!Q)
|
|
8266
8266
|
return "null";
|
|
8267
|
-
if (c += l,
|
|
8267
|
+
if (c += l, Y = [], Object.prototype.toString.apply(Q) === "[object Array]") {
|
|
8268
8268
|
for (se = Q.length, V = 0; V < se; V += 1)
|
|
8269
|
-
|
|
8270
|
-
return ce =
|
|
8271
|
-
` + c +
|
|
8269
|
+
Y[V] = B(V, Q) || "null";
|
|
8270
|
+
return ce = Y.length === 0 ? "[]" : c ? `[
|
|
8271
|
+
` + c + Y.join(`,
|
|
8272
8272
|
` + c) + `
|
|
8273
|
-
` + re + "]" : "[" +
|
|
8273
|
+
` + re + "]" : "[" + Y.join(",") + "]", c = re, ce;
|
|
8274
8274
|
}
|
|
8275
8275
|
if (A && typeof A == "object")
|
|
8276
8276
|
for (se = A.length, V = 0; V < se; V += 1)
|
|
8277
|
-
typeof A[V] == "string" && (J = A[V], ce =
|
|
8277
|
+
typeof A[V] == "string" && (J = A[V], ce = B(J, Q), ce && Y.push(L(J) + (c ? ": " : ":") + ce));
|
|
8278
8278
|
else
|
|
8279
8279
|
Object.keys(Q).forEach(function(te) {
|
|
8280
|
-
var oe =
|
|
8281
|
-
oe &&
|
|
8280
|
+
var oe = B(te, Q);
|
|
8281
|
+
oe && Y.push(L(te) + (c ? ": " : ":") + oe);
|
|
8282
8282
|
});
|
|
8283
|
-
return ce =
|
|
8284
|
-
` + c +
|
|
8283
|
+
return ce = Y.length === 0 ? "{}" : c ? `{
|
|
8284
|
+
` + c + Y.join(`,
|
|
8285
8285
|
` + c) + `
|
|
8286
|
-
` + re + "}" : "{" +
|
|
8286
|
+
` + re + "}" : "{" + Y.join(",") + "}", c = re, ce;
|
|
8287
8287
|
}
|
|
8288
8288
|
}
|
|
8289
|
-
typeof n.stringify != "function" && (n.stringify = function(
|
|
8289
|
+
typeof n.stringify != "function" && (n.stringify = function(q, U, V) {
|
|
8290
8290
|
var J;
|
|
8291
8291
|
if (c = "", l = "", typeof V == "number")
|
|
8292
8292
|
for (J = 0; J < V; J += 1)
|
|
@@ -8295,7 +8295,7 @@ var bignumberExports = bignumber.exports;
|
|
|
8295
8295
|
typeof V == "string" && (l = V);
|
|
8296
8296
|
if (A = U, U && typeof U != "function" && (typeof U != "object" || typeof U.length != "number"))
|
|
8297
8297
|
throw new Error("JSON.stringify");
|
|
8298
|
-
return
|
|
8298
|
+
return B("", { "": q });
|
|
8299
8299
|
});
|
|
8300
8300
|
})();
|
|
8301
8301
|
})(stringify);
|
|
@@ -8363,26 +8363,26 @@ var json_parse$1 = function(e) {
|
|
|
8363
8363
|
C("Bad number");
|
|
8364
8364
|
else
|
|
8365
8365
|
return BigNumber == null && (BigNumber = bignumberExports), re.length > 15 ? t.storeAsString ? re : t.useNativeBigInt ? BigInt(re) : new BigNumber(re) : t.alwaysParseAsBig ? t.useNativeBigInt ? BigInt(se) : new BigNumber(se) : se;
|
|
8366
|
-
},
|
|
8367
|
-
var se, re,
|
|
8366
|
+
}, B = function() {
|
|
8367
|
+
var se, re, Y = "", Q;
|
|
8368
8368
|
if (s === '"')
|
|
8369
8369
|
for (var ae = n; A(); ) {
|
|
8370
8370
|
if (s === '"')
|
|
8371
|
-
return n - 1 > ae && (
|
|
8371
|
+
return n - 1 > ae && (Y += l.substring(ae, n - 1)), A(), Y;
|
|
8372
8372
|
if (s === "\\") {
|
|
8373
|
-
if (n - 1 > ae && (
|
|
8373
|
+
if (n - 1 > ae && (Y += l.substring(ae, n - 1)), A(), s === "u") {
|
|
8374
8374
|
for (Q = 0, re = 0; re < 4 && (se = parseInt(A(), 16), !!isFinite(se)); re += 1)
|
|
8375
8375
|
Q = Q * 16 + se;
|
|
8376
|
-
|
|
8376
|
+
Y += String.fromCharCode(Q);
|
|
8377
8377
|
} else if (typeof c[s] == "string")
|
|
8378
|
-
|
|
8378
|
+
Y += c[s];
|
|
8379
8379
|
else
|
|
8380
8380
|
break;
|
|
8381
8381
|
ae = n;
|
|
8382
8382
|
}
|
|
8383
8383
|
}
|
|
8384
8384
|
C("Bad string");
|
|
8385
|
-
},
|
|
8385
|
+
}, q = function() {
|
|
8386
8386
|
for (; s && s <= " "; )
|
|
8387
8387
|
A();
|
|
8388
8388
|
}, U = function() {
|
|
@@ -8398,49 +8398,49 @@ var json_parse$1 = function(e) {
|
|
|
8398
8398
|
}, V, J = function() {
|
|
8399
8399
|
var se = [];
|
|
8400
8400
|
if (s === "[") {
|
|
8401
|
-
if (A("["),
|
|
8401
|
+
if (A("["), q(), s === "]")
|
|
8402
8402
|
return A("]"), se;
|
|
8403
8403
|
for (; s; ) {
|
|
8404
|
-
if (se.push(V()),
|
|
8404
|
+
if (se.push(V()), q(), s === "]")
|
|
8405
8405
|
return A("]"), se;
|
|
8406
|
-
A(","),
|
|
8406
|
+
A(","), q();
|
|
8407
8407
|
}
|
|
8408
8408
|
}
|
|
8409
8409
|
C("Bad array");
|
|
8410
8410
|
}, ce = function() {
|
|
8411
8411
|
var se, re = /* @__PURE__ */ Object.create(null);
|
|
8412
8412
|
if (s === "{") {
|
|
8413
|
-
if (A("{"),
|
|
8413
|
+
if (A("{"), q(), s === "}")
|
|
8414
8414
|
return A("}"), re;
|
|
8415
8415
|
for (; s; ) {
|
|
8416
|
-
if (se =
|
|
8416
|
+
if (se = B(), q(), A(":"), t.strict === !0 && Object.hasOwnProperty.call(re, se) && C('Duplicate key "' + se + '"'), suspectProtoRx.test(se) === !0 ? t.protoAction === "error" ? C("Object contains forbidden prototype property") : t.protoAction === "ignore" ? V() : re[se] = V() : suspectConstructorRx.test(se) === !0 ? t.constructorAction === "error" ? C("Object contains forbidden constructor property") : t.constructorAction === "ignore" ? V() : re[se] = V() : re[se] = V(), q(), s === "}")
|
|
8417
8417
|
return A("}"), re;
|
|
8418
|
-
A(","),
|
|
8418
|
+
A(","), q();
|
|
8419
8419
|
}
|
|
8420
8420
|
}
|
|
8421
8421
|
C("Bad object");
|
|
8422
8422
|
};
|
|
8423
8423
|
return V = function() {
|
|
8424
|
-
switch (
|
|
8424
|
+
switch (q(), s) {
|
|
8425
8425
|
case "{":
|
|
8426
8426
|
return ce();
|
|
8427
8427
|
case "[":
|
|
8428
8428
|
return J();
|
|
8429
8429
|
case '"':
|
|
8430
|
-
return
|
|
8430
|
+
return B();
|
|
8431
8431
|
case "-":
|
|
8432
8432
|
return L();
|
|
8433
8433
|
default:
|
|
8434
8434
|
return s >= "0" && s <= "9" ? L() : U();
|
|
8435
8435
|
}
|
|
8436
8436
|
}, function(se, re) {
|
|
8437
|
-
var
|
|
8438
|
-
return l = se + "", n = 0, s = " ",
|
|
8437
|
+
var Y;
|
|
8438
|
+
return l = se + "", n = 0, s = " ", Y = V(), q(), s && C("Syntax error"), typeof re == "function" ? function Q(ae, te) {
|
|
8439
8439
|
var oe, ne = ae[te];
|
|
8440
8440
|
return ne && typeof ne == "object" && Object.keys(ne).forEach(function(ie) {
|
|
8441
8441
|
oe = Q(ne, ie), oe !== void 0 ? ne[ie] = oe : delete ne[ie];
|
|
8442
8442
|
}), re.call(ae, te, ne);
|
|
8443
|
-
}({ "":
|
|
8443
|
+
}({ "": Y }, "") : Y;
|
|
8444
8444
|
};
|
|
8445
8445
|
}, parse = json_parse$1, json_stringify = stringifyExports.stringify, json_parse = parse;
|
|
8446
8446
|
jsonBigint.exports = function(e) {
|
|
@@ -8536,22 +8536,22 @@ var hoconParser = { exports: {} };
|
|
|
8536
8536
|
var index = 0, result = readHocon(text);
|
|
8537
8537
|
return handleSubtitutions(result);
|
|
8538
8538
|
function readHocon(e) {
|
|
8539
|
-
for (var t = !1, n = "", s = !1, c = !1, l = !1, C = !1, A = !1, L = !1,
|
|
8539
|
+
for (var t = !1, n = "", s = !1, c = !1, l = !1, C = !1, A = !1, L = !1, B = !1, q = !1, U = "", V = "", J = {}; index < e.length; ) {
|
|
8540
8540
|
var ce = e[index];
|
|
8541
|
-
if (index++, L && !
|
|
8541
|
+
if (index++, L && !q) {
|
|
8542
8542
|
(ce === "\r" || ce === `
|
|
8543
8543
|
`) && (L = !1);
|
|
8544
8544
|
continue;
|
|
8545
8545
|
}
|
|
8546
8546
|
if (!s && ce === '"' && index + 1 < e.length && e[index] === '"' && e[index + 1] === '"') {
|
|
8547
|
-
if (
|
|
8548
|
-
re(),
|
|
8547
|
+
if (q) {
|
|
8548
|
+
re(), q = !1, t = !1, C = !1, index += 2;
|
|
8549
8549
|
continue;
|
|
8550
8550
|
}
|
|
8551
|
-
|
|
8551
|
+
q = !0, t = !0, C = !0, index += 2;
|
|
8552
8552
|
continue;
|
|
8553
8553
|
}
|
|
8554
|
-
if (!s && !
|
|
8554
|
+
if (!s && !q && (ce === "'" || ce === '"')) {
|
|
8555
8555
|
if (t && n === ce) {
|
|
8556
8556
|
C ? re() : C = !0, t = !1;
|
|
8557
8557
|
continue;
|
|
@@ -8559,7 +8559,7 @@ var hoconParser = { exports: {} };
|
|
|
8559
8559
|
t = !0, n = ce;
|
|
8560
8560
|
continue;
|
|
8561
8561
|
}
|
|
8562
|
-
if (
|
|
8562
|
+
if (q && se(ce)) {
|
|
8563
8563
|
V += ce;
|
|
8564
8564
|
continue;
|
|
8565
8565
|
}
|
|
@@ -8656,11 +8656,11 @@ var hoconParser = { exports: {} };
|
|
|
8656
8656
|
continue;
|
|
8657
8657
|
}
|
|
8658
8658
|
case "/": {
|
|
8659
|
-
if (
|
|
8660
|
-
L = !0,
|
|
8659
|
+
if (B) {
|
|
8660
|
+
L = !0, B = !1;
|
|
8661
8661
|
continue;
|
|
8662
8662
|
}
|
|
8663
|
-
|
|
8663
|
+
B = !0;
|
|
8664
8664
|
continue;
|
|
8665
8665
|
}
|
|
8666
8666
|
}
|
|
@@ -8671,8 +8671,8 @@ var hoconParser = { exports: {} };
|
|
|
8671
8671
|
if (l)
|
|
8672
8672
|
throw "Expected closing square bracket";
|
|
8673
8673
|
return C && re(), J;
|
|
8674
|
-
function se(
|
|
8675
|
-
return ['"', "\\"].indexOf(
|
|
8674
|
+
function se(Y) {
|
|
8675
|
+
return ['"', "\\"].indexOf(Y) !== -1;
|
|
8676
8676
|
}
|
|
8677
8677
|
function re(ae, te) {
|
|
8678
8678
|
var ae = ae || U, te = te || J, oe = ae.indexOf(".");
|
|
@@ -8716,20 +8716,20 @@ var hoconParser = { exports: {} };
|
|
|
8716
8716
|
});
|
|
8717
8717
|
})(hoconParser);
|
|
8718
8718
|
var hoconParserExports = hoconParser.exports;
|
|
8719
|
-
const parseHoconToObject = /* @__PURE__ */ getDefaultExportFromCjs(hoconParserExports), formatKey = (e) => /^[a-zA-Z0-9_-]+$/.test(e) && !["true", "false", "null"].includes(e) ? e : `"${e.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`, objectToHocon = (e) => {
|
|
8719
|
+
const parseHoconToObject = /* @__PURE__ */ getDefaultExportFromCjs(hoconParserExports), formatKey = (e) => /^[a-zA-Z0-9_-]+$/.test(e) && !["true", "false", "null"].includes(e) ? e : `"${e.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`, objectToHocon = (e, t = 0) => {
|
|
8720
8720
|
if (isEmptyObj(e))
|
|
8721
8721
|
return "{}";
|
|
8722
|
-
const t = (c,
|
|
8723
|
-
${
|
|
8722
|
+
const n = " ".repeat(t), s = " ".repeat(t + 1), c = (A, L) => typeof A == "string" ? `"${A.replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/\n/g, "\\n")}"` : A == null ? "null" : Array.isArray(A) ? A.length === 0 ? "[]" : `[
|
|
8723
|
+
${A.map((q) => `${" ".repeat(L + 1)}${c(q, L + 1)}`).join(`,
|
|
8724
8724
|
`)}
|
|
8725
|
-
${" ".repeat(
|
|
8725
|
+
${" ".repeat(L)}]` : typeof A == "object" ? objectToHocon(A, L) : String(A);
|
|
8726
8726
|
return `{
|
|
8727
|
-
${Object.keys(e).map((
|
|
8728
|
-
const
|
|
8729
|
-
return
|
|
8727
|
+
${Object.keys(e).map((A) => {
|
|
8728
|
+
const L = e[A], B = formatKey(A);
|
|
8729
|
+
return `${s}${B} = ${c(L, t + 1)}`;
|
|
8730
8730
|
}).join(`
|
|
8731
8731
|
`)}
|
|
8732
|
-
}`;
|
|
8732
|
+
${n}}`;
|
|
8733
8733
|
}, hoconToObject = (e) => {
|
|
8734
8734
|
if (e.trim() === "")
|
|
8735
8735
|
return {};
|