nitro-nightly 3.0.1-20251217-221413-0e6f159e → 3.0.1-20251217-223946-1ee0b5b8
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/_build/rolldown.mjs +2 -2
- package/dist/_build/rollup.mjs +2 -2
- package/dist/_build/shared3.mjs +1124 -55
- package/dist/_build/shared4.mjs +59 -0
- package/dist/_build/vite.build.mjs +1 -1
- package/dist/_build/vite.plugin.mjs +1 -1
- package/dist/_libs/c12.mjs +33 -33
- package/dist/_libs/confbox.mjs +160 -160
- package/dist/_libs/giget.mjs +2 -6
- package/dist/_libs/local-pkg.mjs +2 -2
- package/dist/_libs/unimport.mjs +31 -33
- package/dist/_nitro.mjs +1 -0
- package/dist/_nitro2.mjs +1 -0
- package/dist/_presets.mjs +57 -57
- package/dist/vite.mjs +1 -1
- package/package.json +3 -3
- package/dist/_nitro3.mjs +0 -1158
package/dist/_libs/confbox.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { v as C, y as N } from "./c12.mjs";
|
|
1
|
+
import { v as C$2, y as N$3 } from "./c12.mjs";
|
|
2
2
|
|
|
3
3
|
//#region node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/shared/confbox.9388d834.mjs
|
|
4
4
|
const m = Symbol.for("__confbox_fmt__"), k$1 = /^(\s+)/, v$2 = /(\s+)$/;
|
|
@@ -224,11 +224,11 @@ var Q$2;
|
|
|
224
224
|
(function(n) {
|
|
225
225
|
n[n.lineFeed = 10] = "lineFeed", n[n.carriageReturn = 13] = "carriageReturn", n[n.space = 32] = "space", n[n._0 = 48] = "_0", n[n._1 = 49] = "_1", n[n._2 = 50] = "_2", n[n._3 = 51] = "_3", n[n._4 = 52] = "_4", n[n._5 = 53] = "_5", n[n._6 = 54] = "_6", n[n._7 = 55] = "_7", n[n._8 = 56] = "_8", n[n._9 = 57] = "_9", n[n.a = 97] = "a", n[n.b = 98] = "b", n[n.c = 99] = "c", n[n.d = 100] = "d", n[n.e = 101] = "e", n[n.f = 102] = "f", n[n.g = 103] = "g", n[n.h = 104] = "h", n[n.i = 105] = "i", n[n.j = 106] = "j", n[n.k = 107] = "k", n[n.l = 108] = "l", n[n.m = 109] = "m", n[n.n = 110] = "n", n[n.o = 111] = "o", n[n.p = 112] = "p", n[n.q = 113] = "q", n[n.r = 114] = "r", n[n.s = 115] = "s", n[n.t = 116] = "t", n[n.u = 117] = "u", n[n.v = 118] = "v", n[n.w = 119] = "w", n[n.x = 120] = "x", n[n.y = 121] = "y", n[n.z = 122] = "z", n[n.A = 65] = "A", n[n.B = 66] = "B", n[n.C = 67] = "C", n[n.D = 68] = "D", n[n.E = 69] = "E", n[n.F = 70] = "F", n[n.G = 71] = "G", n[n.H = 72] = "H", n[n.I = 73] = "I", n[n.J = 74] = "J", n[n.K = 75] = "K", n[n.L = 76] = "L", n[n.M = 77] = "M", n[n.N = 78] = "N", n[n.O = 79] = "O", n[n.P = 80] = "P", n[n.Q = 81] = "Q", n[n.R = 82] = "R", n[n.S = 83] = "S", n[n.T = 84] = "T", n[n.U = 85] = "U", n[n.V = 86] = "V", n[n.W = 87] = "W", n[n.X = 88] = "X", n[n.Y = 89] = "Y", n[n.Z = 90] = "Z", n[n.asterisk = 42] = "asterisk", n[n.backslash = 92] = "backslash", n[n.closeBrace = 125] = "closeBrace", n[n.closeBracket = 93] = "closeBracket", n[n.colon = 58] = "colon", n[n.comma = 44] = "comma", n[n.dot = 46] = "dot", n[n.doubleQuote = 34] = "doubleQuote", n[n.minus = 45] = "minus", n[n.openBrace = 123] = "openBrace", n[n.openBracket = 91] = "openBracket", n[n.plus = 43] = "plus", n[n.slash = 47] = "slash", n[n.formFeed = 12] = "formFeed", n[n.tab = 9] = "tab";
|
|
226
226
|
})(Q$2 || (Q$2 = {})), new Array(20).fill(0).map((n, l) => " ".repeat(l));
|
|
227
|
-
const N$
|
|
228
|
-
new Array(N$
|
|
229
|
-
` + " ".repeat(l)), new Array(N$
|
|
230
|
-
` + " ".repeat(l)), new Array(N$
|
|
231
|
-
` + " ".repeat(l)), new Array(N$
|
|
227
|
+
const N$1 = 200;
|
|
228
|
+
new Array(N$1).fill(0).map((n, l) => `
|
|
229
|
+
` + " ".repeat(l)), new Array(N$1).fill(0).map((n, l) => "\r" + " ".repeat(l)), new Array(N$1).fill(0).map((n, l) => `\r
|
|
230
|
+
` + " ".repeat(l)), new Array(N$1).fill(0).map((n, l) => `
|
|
231
|
+
` + " ".repeat(l)), new Array(N$1).fill(0).map((n, l) => "\r" + " ".repeat(l)), new Array(N$1).fill(0).map((n, l) => `\r
|
|
232
232
|
` + " ".repeat(l));
|
|
233
233
|
var U$3;
|
|
234
234
|
(function(n) {
|
|
@@ -416,15 +416,15 @@ function x$1(n, l) {
|
|
|
416
416
|
const g$1 = JSON.parse(n, l?.reviver);
|
|
417
417
|
return N$2(n, g$1, l), g$1;
|
|
418
418
|
}
|
|
419
|
-
function h$
|
|
419
|
+
function h$1(n, l) {
|
|
420
420
|
const g$1 = K$3(n, l?.errors, l);
|
|
421
421
|
return N$2(n, g$1, l), g$1;
|
|
422
422
|
}
|
|
423
423
|
|
|
424
424
|
//#endregion
|
|
425
425
|
//#region node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.mjs
|
|
426
|
-
function R$2(C$
|
|
427
|
-
return C$
|
|
426
|
+
function R$2(C$3) {
|
|
427
|
+
return C$3 && C$3.__esModule && Object.prototype.hasOwnProperty.call(C$3, "default") ? C$3.default : C$3;
|
|
428
428
|
}
|
|
429
429
|
var O$1 = {}, M$2;
|
|
430
430
|
function Y$1() {
|
|
@@ -434,16 +434,16 @@ var _$1, U$2;
|
|
|
434
434
|
function T$1() {
|
|
435
435
|
if (U$2) return _$1;
|
|
436
436
|
U$2 = 1;
|
|
437
|
-
const C$
|
|
437
|
+
const C$3 = Y$1();
|
|
438
438
|
return _$1 = {
|
|
439
439
|
isSpaceSeparator(r$1) {
|
|
440
|
-
return typeof r$1 == "string" && C$
|
|
440
|
+
return typeof r$1 == "string" && C$3.Space_Separator.test(r$1);
|
|
441
441
|
},
|
|
442
442
|
isIdStartChar(r$1) {
|
|
443
|
-
return typeof r$1 == "string" && (r$1 >= "a" && r$1 <= "z" || r$1 >= "A" && r$1 <= "Z" || r$1 === "$" || r$1 === "_" || C$
|
|
443
|
+
return typeof r$1 == "string" && (r$1 >= "a" && r$1 <= "z" || r$1 >= "A" && r$1 <= "Z" || r$1 === "$" || r$1 === "_" || C$3.ID_Start.test(r$1));
|
|
444
444
|
},
|
|
445
445
|
isIdContinueChar(r$1) {
|
|
446
|
-
return typeof r$1 == "string" && (r$1 >= "a" && r$1 <= "z" || r$1 >= "A" && r$1 <= "Z" || r$1 >= "0" && r$1 <= "9" || r$1 === "$" || r$1 === "_" || r$1 === "" || r$1 === "" || C$
|
|
446
|
+
return typeof r$1 == "string" && (r$1 >= "a" && r$1 <= "z" || r$1 >= "A" && r$1 <= "Z" || r$1 >= "0" && r$1 <= "9" || r$1 === "$" || r$1 === "_" || r$1 === "" || r$1 === "" || C$3.ID_Continue.test(r$1));
|
|
447
447
|
},
|
|
448
448
|
isDigit(r$1) {
|
|
449
449
|
return typeof r$1 == "string" && /[0-9]/.test(r$1);
|
|
@@ -457,10 +457,10 @@ var q$1, Z$2;
|
|
|
457
457
|
function uu() {
|
|
458
458
|
if (Z$2) return q$1;
|
|
459
459
|
Z$2 = 1;
|
|
460
|
-
const C$
|
|
461
|
-
let r$1, s$1, c$1, d
|
|
460
|
+
const C$3 = T$1();
|
|
461
|
+
let r$1, s$1, c$1, d, h$2, o, f, S$3, m$1;
|
|
462
462
|
q$1 = function(a, g$1) {
|
|
463
|
-
r$1 = String(a), s$1 = "start", c$1 = [], d
|
|
463
|
+
r$1 = String(a), s$1 = "start", c$1 = [], d = 0, h$2 = 1, o = 0, f = void 0, S$3 = void 0, m$1 = void 0;
|
|
464
464
|
do
|
|
465
465
|
f = E$1(), Q$3[s$1]();
|
|
466
466
|
while (f.type !== "eof");
|
|
@@ -497,12 +497,12 @@ function uu() {
|
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
499
|
function n() {
|
|
500
|
-
if (r$1[d
|
|
500
|
+
if (r$1[d]) return String.fromCodePoint(r$1.codePointAt(d));
|
|
501
501
|
}
|
|
502
502
|
function u() {
|
|
503
503
|
const D$1 = n();
|
|
504
504
|
return D$1 === `
|
|
505
|
-
` ? (h$
|
|
505
|
+
` ? (h$2++, o = 0) : D$1 ? o += D$1.length : o++, D$1 && (d += D$1.length), D$1;
|
|
506
506
|
}
|
|
507
507
|
const l = {
|
|
508
508
|
default() {
|
|
@@ -525,7 +525,7 @@ function uu() {
|
|
|
525
525
|
return;
|
|
526
526
|
case void 0: return u(), F$2("eof");
|
|
527
527
|
}
|
|
528
|
-
if (C$
|
|
528
|
+
if (C$3.isSpaceSeparator(A$1)) {
|
|
529
529
|
u();
|
|
530
530
|
return;
|
|
531
531
|
}
|
|
@@ -621,7 +621,7 @@ function uu() {
|
|
|
621
621
|
case "$":
|
|
622
622
|
case "_": break;
|
|
623
623
|
default:
|
|
624
|
-
if (!C$
|
|
624
|
+
if (!C$3.isIdStartChar(D$1)) throw L$2();
|
|
625
625
|
break;
|
|
626
626
|
}
|
|
627
627
|
e += D$1, t = "identifierName";
|
|
@@ -638,7 +638,7 @@ function uu() {
|
|
|
638
638
|
u(), t = "identifierNameEscape";
|
|
639
639
|
return;
|
|
640
640
|
}
|
|
641
|
-
if (C$
|
|
641
|
+
if (C$3.isIdContinueChar(A$1)) {
|
|
642
642
|
e += u();
|
|
643
643
|
return;
|
|
644
644
|
}
|
|
@@ -654,7 +654,7 @@ function uu() {
|
|
|
654
654
|
case "":
|
|
655
655
|
case "": break;
|
|
656
656
|
default:
|
|
657
|
-
if (!C$
|
|
657
|
+
if (!C$3.isIdContinueChar(D$1)) throw L$2();
|
|
658
658
|
break;
|
|
659
659
|
}
|
|
660
660
|
e += D$1, t = "identifierName";
|
|
@@ -709,14 +709,14 @@ function uu() {
|
|
|
709
709
|
e += u(), t = "decimalExponent";
|
|
710
710
|
return;
|
|
711
711
|
}
|
|
712
|
-
if (C$
|
|
712
|
+
if (C$3.isDigit(A$1)) {
|
|
713
713
|
e += u();
|
|
714
714
|
return;
|
|
715
715
|
}
|
|
716
716
|
return F$2("numeric", w$2 * Number(e));
|
|
717
717
|
},
|
|
718
718
|
decimalPointLeading() {
|
|
719
|
-
if (C$
|
|
719
|
+
if (C$3.isDigit(A$1)) {
|
|
720
720
|
e += u(), t = "decimalFraction";
|
|
721
721
|
return;
|
|
722
722
|
}
|
|
@@ -729,7 +729,7 @@ function uu() {
|
|
|
729
729
|
e += u(), t = "decimalExponent";
|
|
730
730
|
return;
|
|
731
731
|
}
|
|
732
|
-
if (C$
|
|
732
|
+
if (C$3.isDigit(A$1)) {
|
|
733
733
|
e += u(), t = "decimalFraction";
|
|
734
734
|
return;
|
|
735
735
|
}
|
|
@@ -742,7 +742,7 @@ function uu() {
|
|
|
742
742
|
e += u(), t = "decimalExponent";
|
|
743
743
|
return;
|
|
744
744
|
}
|
|
745
|
-
if (C$
|
|
745
|
+
if (C$3.isDigit(A$1)) {
|
|
746
746
|
e += u();
|
|
747
747
|
return;
|
|
748
748
|
}
|
|
@@ -755,35 +755,35 @@ function uu() {
|
|
|
755
755
|
e += u(), t = "decimalExponentSign";
|
|
756
756
|
return;
|
|
757
757
|
}
|
|
758
|
-
if (C$
|
|
758
|
+
if (C$3.isDigit(A$1)) {
|
|
759
759
|
e += u(), t = "decimalExponentInteger";
|
|
760
760
|
return;
|
|
761
761
|
}
|
|
762
762
|
throw B$1(u());
|
|
763
763
|
},
|
|
764
764
|
decimalExponentSign() {
|
|
765
|
-
if (C$
|
|
765
|
+
if (C$3.isDigit(A$1)) {
|
|
766
766
|
e += u(), t = "decimalExponentInteger";
|
|
767
767
|
return;
|
|
768
768
|
}
|
|
769
769
|
throw B$1(u());
|
|
770
770
|
},
|
|
771
771
|
decimalExponentInteger() {
|
|
772
|
-
if (C$
|
|
772
|
+
if (C$3.isDigit(A$1)) {
|
|
773
773
|
e += u();
|
|
774
774
|
return;
|
|
775
775
|
}
|
|
776
776
|
return F$2("numeric", w$2 * Number(e));
|
|
777
777
|
},
|
|
778
778
|
hexadecimal() {
|
|
779
|
-
if (C$
|
|
779
|
+
if (C$3.isHexDigit(A$1)) {
|
|
780
780
|
e += u(), t = "hexadecimalInteger";
|
|
781
781
|
return;
|
|
782
782
|
}
|
|
783
783
|
throw B$1(u());
|
|
784
784
|
},
|
|
785
785
|
hexadecimalInteger() {
|
|
786
|
-
if (C$
|
|
786
|
+
if (C$3.isHexDigit(A$1)) {
|
|
787
787
|
e += u();
|
|
788
788
|
return;
|
|
789
789
|
}
|
|
@@ -835,7 +835,7 @@ function uu() {
|
|
|
835
835
|
x$3 = u() === "\"", t = "string";
|
|
836
836
|
return;
|
|
837
837
|
}
|
|
838
|
-
if (C$
|
|
838
|
+
if (C$3.isIdStartChar(A$1)) {
|
|
839
839
|
e += u(), t = "identifierName";
|
|
840
840
|
return;
|
|
841
841
|
}
|
|
@@ -874,7 +874,7 @@ function uu() {
|
|
|
874
874
|
return {
|
|
875
875
|
type: D$1,
|
|
876
876
|
value: a,
|
|
877
|
-
line: h$
|
|
877
|
+
line: h$2,
|
|
878
878
|
column: o
|
|
879
879
|
};
|
|
880
880
|
}
|
|
@@ -894,7 +894,7 @@ function uu() {
|
|
|
894
894
|
case "t": return u(), " ";
|
|
895
895
|
case "v": return u(), "\v";
|
|
896
896
|
case "0":
|
|
897
|
-
if (u(), C$
|
|
897
|
+
if (u(), C$3.isDigit(n())) throw B$1(u());
|
|
898
898
|
return "\0";
|
|
899
899
|
case "x": return u(), b$1();
|
|
900
900
|
case "u": return u(), $$3();
|
|
@@ -919,14 +919,14 @@ function uu() {
|
|
|
919
919
|
}
|
|
920
920
|
function b$1() {
|
|
921
921
|
let D$1 = "", a = n();
|
|
922
|
-
if (!C$
|
|
922
|
+
if (!C$3.isHexDigit(a) || (D$1 += u(), a = n(), !C$3.isHexDigit(a))) throw B$1(u());
|
|
923
923
|
return D$1 += u(), String.fromCodePoint(parseInt(D$1, 16));
|
|
924
924
|
}
|
|
925
925
|
function $$3() {
|
|
926
926
|
let D$1 = "", a = 4;
|
|
927
927
|
for (; a-- > 0;) {
|
|
928
928
|
const g$1 = n();
|
|
929
|
-
if (!C$
|
|
929
|
+
if (!C$3.isHexDigit(g$1)) throw B$1(u());
|
|
930
930
|
D$1 += u();
|
|
931
931
|
}
|
|
932
932
|
return String.fromCodePoint(parseInt(D$1, 16));
|
|
@@ -1026,13 +1026,13 @@ function uu() {
|
|
|
1026
1026
|
D$1 == null ? s$1 = "end" : Array.isArray(D$1) ? s$1 = "afterArrayValue" : s$1 = "afterPropertyValue";
|
|
1027
1027
|
}
|
|
1028
1028
|
function B$1(D$1) {
|
|
1029
|
-
return k$2(D$1 === void 0 ? `JSON5: invalid end of input at ${h$
|
|
1029
|
+
return k$2(D$1 === void 0 ? `JSON5: invalid end of input at ${h$2}:${o}` : `JSON5: invalid character '${z$2(D$1)}' at ${h$2}:${o}`);
|
|
1030
1030
|
}
|
|
1031
1031
|
function N$4() {
|
|
1032
|
-
return k$2(`JSON5: invalid end of input at ${h$
|
|
1032
|
+
return k$2(`JSON5: invalid end of input at ${h$2}:${o}`);
|
|
1033
1033
|
}
|
|
1034
1034
|
function L$2() {
|
|
1035
|
-
return o -= 5, k$2(`JSON5: invalid identifier character at ${h$
|
|
1035
|
+
return o -= 5, k$2(`JSON5: invalid identifier character at ${h$2}:${o}`);
|
|
1036
1036
|
}
|
|
1037
1037
|
function X$2(D$1) {
|
|
1038
1038
|
console.warn(`JSON5: '${z$2(D$1)}' in strings is not valid ECMAScript; consider escaping`);
|
|
@@ -1061,7 +1061,7 @@ function uu() {
|
|
|
1061
1061
|
}
|
|
1062
1062
|
function k$2(D$1) {
|
|
1063
1063
|
const a = new SyntaxError(D$1);
|
|
1064
|
-
return a.lineNumber = h$
|
|
1064
|
+
return a.lineNumber = h$2, a.columnNumber = o, a;
|
|
1065
1065
|
}
|
|
1066
1066
|
return q$1;
|
|
1067
1067
|
}
|
|
@@ -1070,11 +1070,11 @@ var J$1, K$2;
|
|
|
1070
1070
|
function tu() {
|
|
1071
1071
|
if (K$2) return J$1;
|
|
1072
1072
|
K$2 = 1;
|
|
1073
|
-
const C$
|
|
1074
|
-
return J$1 = function(s$1, c$1, d
|
|
1075
|
-
const h$
|
|
1073
|
+
const C$3 = T$1();
|
|
1074
|
+
return J$1 = function(s$1, c$1, d) {
|
|
1075
|
+
const h$2 = [];
|
|
1076
1076
|
let o = "", f, S$3, m$1 = "", v$3;
|
|
1077
|
-
if (c$1 != null && typeof c$1 == "object" && !Array.isArray(c$1) && (d
|
|
1077
|
+
if (c$1 != null && typeof c$1 == "object" && !Array.isArray(c$1) && (d = c$1.space, v$3 = c$1.quote, c$1 = c$1.replacer), typeof c$1 == "function") S$3 = c$1;
|
|
1078
1078
|
else if (Array.isArray(c$1)) {
|
|
1079
1079
|
f = [];
|
|
1080
1080
|
for (const E$1 of c$1) {
|
|
@@ -1082,7 +1082,7 @@ function tu() {
|
|
|
1082
1082
|
typeof E$1 == "string" ? n = E$1 : (typeof E$1 == "number" || E$1 instanceof String || E$1 instanceof Number) && (n = String(E$1)), n !== void 0 && f.indexOf(n) < 0 && f.push(n);
|
|
1083
1083
|
}
|
|
1084
1084
|
}
|
|
1085
|
-
return d
|
|
1085
|
+
return d instanceof Number ? d = Number(d) : d instanceof String && (d = String(d)), typeof d == "number" ? d > 0 && (d = Math.min(10, Math.floor(d)), m$1 = " ".substr(0, d)) : typeof d == "string" && (m$1 = d.substr(0, 10)), t("", { "": s$1 });
|
|
1086
1086
|
function t(E$1, n) {
|
|
1087
1087
|
let u = n[E$1];
|
|
1088
1088
|
switch (u != null && (typeof u.toJSON5 == "function" ? u = u.toJSON5(E$1) : typeof u.toJSON == "function" && (u = u.toJSON(E$1))), S$3 && (u = S$3.call(n, E$1, u)), u instanceof Number ? u = Number(u) : u instanceof String ? u = String(u) : u instanceof Boolean && (u = u.valueOf()), u) {
|
|
@@ -1120,7 +1120,7 @@ function tu() {
|
|
|
1120
1120
|
case "\"":
|
|
1121
1121
|
n[p$1]++, l += p$1;
|
|
1122
1122
|
continue;
|
|
1123
|
-
case "\0": if (C$
|
|
1123
|
+
case "\0": if (C$3.isDigit(E$1[i + 1])) {
|
|
1124
1124
|
l += "\\x00";
|
|
1125
1125
|
continue;
|
|
1126
1126
|
}
|
|
@@ -1140,8 +1140,8 @@ function tu() {
|
|
|
1140
1140
|
return l = l.replace(new RegExp(F$2, "g"), u[F$2]), F$2 + l + F$2;
|
|
1141
1141
|
}
|
|
1142
1142
|
function x$3(E$1) {
|
|
1143
|
-
if (h$
|
|
1144
|
-
h$
|
|
1143
|
+
if (h$2.indexOf(E$1) >= 0) throw TypeError("Converting circular structure to JSON5");
|
|
1144
|
+
h$2.push(E$1);
|
|
1145
1145
|
let n = o;
|
|
1146
1146
|
o = o + m$1;
|
|
1147
1147
|
let u = f || Object.keys(E$1), l = [];
|
|
@@ -1165,18 +1165,18 @@ function tu() {
|
|
|
1165
1165
|
` + n + "}";
|
|
1166
1166
|
}
|
|
1167
1167
|
}
|
|
1168
|
-
return h$
|
|
1168
|
+
return h$2.pop(), o = n, F$2;
|
|
1169
1169
|
}
|
|
1170
1170
|
function w$2(E$1) {
|
|
1171
1171
|
if (E$1.length === 0) return e(E$1);
|
|
1172
1172
|
const n = String.fromCodePoint(E$1.codePointAt(0));
|
|
1173
|
-
if (!C$
|
|
1174
|
-
for (let u = n.length; u < E$1.length; u++) if (!C$
|
|
1173
|
+
if (!C$3.isIdStartChar(n)) return e(E$1);
|
|
1174
|
+
for (let u = n.length; u < E$1.length; u++) if (!C$3.isIdContinueChar(String.fromCodePoint(E$1.codePointAt(u)))) return e(E$1);
|
|
1175
1175
|
return E$1;
|
|
1176
1176
|
}
|
|
1177
1177
|
function A$1(E$1) {
|
|
1178
|
-
if (h$
|
|
1179
|
-
h$
|
|
1178
|
+
if (h$2.indexOf(E$1) >= 0) throw TypeError("Converting circular structure to JSON5");
|
|
1179
|
+
h$2.push(E$1);
|
|
1180
1180
|
let n = o;
|
|
1181
1181
|
o = o + m$1;
|
|
1182
1182
|
let u = [];
|
|
@@ -1194,14 +1194,14 @@ function tu() {
|
|
|
1194
1194
|
` + o + i + `,
|
|
1195
1195
|
` + n + "]";
|
|
1196
1196
|
}
|
|
1197
|
-
return h$
|
|
1197
|
+
return h$2.pop(), o = n, l;
|
|
1198
1198
|
}
|
|
1199
1199
|
}, J$1;
|
|
1200
1200
|
}
|
|
1201
1201
|
const ru = R$2(tu());
|
|
1202
|
-
function Cu(C$
|
|
1203
|
-
const s$1 = eu(C$
|
|
1204
|
-
return N(C$
|
|
1202
|
+
function Cu(C$3, r$1) {
|
|
1203
|
+
const s$1 = eu(C$3, r$1?.reviver);
|
|
1204
|
+
return N$3(C$3, s$1, r$1), s$1;
|
|
1205
1205
|
}
|
|
1206
1206
|
|
|
1207
1207
|
//#endregion
|
|
@@ -1306,7 +1306,7 @@ function cn(e, n) {
|
|
|
1306
1306
|
return i;
|
|
1307
1307
|
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = fn(n.styleAliases || null), un.indexOf(this.kind) === -1) throw new w$1("Unknown kind \"" + this.kind + "\" is specified for \"" + e + "\" YAML type.");
|
|
1308
1308
|
}
|
|
1309
|
-
var C$
|
|
1309
|
+
var C$1 = cn;
|
|
1310
1310
|
function fe(e, n) {
|
|
1311
1311
|
var i = [];
|
|
1312
1312
|
return e[n].forEach(function(l) {
|
|
@@ -1340,34 +1340,34 @@ function V$1(e) {
|
|
|
1340
1340
|
}
|
|
1341
1341
|
V$1.prototype.extend = function(n) {
|
|
1342
1342
|
var i = [], l = [];
|
|
1343
|
-
if (n instanceof C$
|
|
1343
|
+
if (n instanceof C$1) l.push(n);
|
|
1344
1344
|
else if (Array.isArray(n)) l = l.concat(n);
|
|
1345
1345
|
else if (n && (Array.isArray(n.implicit) || Array.isArray(n.explicit))) n.implicit && (i = i.concat(n.implicit)), n.explicit && (l = l.concat(n.explicit));
|
|
1346
1346
|
else throw new w$1("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
1347
1347
|
i.forEach(function(u) {
|
|
1348
|
-
if (!(u instanceof C$
|
|
1348
|
+
if (!(u instanceof C$1)) throw new w$1("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1349
1349
|
if (u.loadKind && u.loadKind !== "scalar") throw new w$1("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
1350
1350
|
if (u.multi) throw new w$1("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
1351
1351
|
}), l.forEach(function(u) {
|
|
1352
|
-
if (!(u instanceof C$
|
|
1352
|
+
if (!(u instanceof C$1)) throw new w$1("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1353
1353
|
});
|
|
1354
1354
|
var r$1 = Object.create(V$1.prototype);
|
|
1355
1355
|
return r$1.implicit = (this.implicit || []).concat(i), r$1.explicit = (this.explicit || []).concat(l), r$1.compiledImplicit = fe(r$1, "implicit"), r$1.compiledExplicit = fe(r$1, "explicit"), r$1.compiledTypeMap = an(r$1.compiledImplicit, r$1.compiledExplicit), r$1;
|
|
1356
1356
|
};
|
|
1357
1357
|
var sn = new V$1({ explicit: [
|
|
1358
|
-
new C$
|
|
1358
|
+
new C$1("tag:yaml.org,2002:str", {
|
|
1359
1359
|
kind: "scalar",
|
|
1360
1360
|
construct: function(e) {
|
|
1361
1361
|
return e !== null ? e : "";
|
|
1362
1362
|
}
|
|
1363
1363
|
}),
|
|
1364
|
-
new C$
|
|
1364
|
+
new C$1("tag:yaml.org,2002:seq", {
|
|
1365
1365
|
kind: "sequence",
|
|
1366
1366
|
construct: function(e) {
|
|
1367
1367
|
return e !== null ? e : [];
|
|
1368
1368
|
}
|
|
1369
1369
|
}),
|
|
1370
|
-
new C$
|
|
1370
|
+
new C$1("tag:yaml.org,2002:map", {
|
|
1371
1371
|
kind: "mapping",
|
|
1372
1372
|
construct: function(e) {
|
|
1373
1373
|
return e !== null ? e : {};
|
|
@@ -1385,7 +1385,7 @@ function mn() {
|
|
|
1385
1385
|
function gn(e) {
|
|
1386
1386
|
return e === null;
|
|
1387
1387
|
}
|
|
1388
|
-
var An = new C$
|
|
1388
|
+
var An = new C$1("tag:yaml.org,2002:null", {
|
|
1389
1389
|
kind: "scalar",
|
|
1390
1390
|
resolve: xn,
|
|
1391
1391
|
construct: mn,
|
|
@@ -1420,7 +1420,7 @@ function yn(e) {
|
|
|
1420
1420
|
function Cn(e) {
|
|
1421
1421
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1422
1422
|
}
|
|
1423
|
-
var _n = new C$
|
|
1423
|
+
var _n = new C$1("tag:yaml.org,2002:bool", {
|
|
1424
1424
|
kind: "scalar",
|
|
1425
1425
|
resolve: vn,
|
|
1426
1426
|
construct: yn,
|
|
@@ -1495,7 +1495,7 @@ function En(e) {
|
|
|
1495
1495
|
function Tn(e) {
|
|
1496
1496
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !y$1.isNegativeZero(e);
|
|
1497
1497
|
}
|
|
1498
|
-
var On = new C$
|
|
1498
|
+
var On = new C$1("tag:yaml.org,2002:int", {
|
|
1499
1499
|
kind: "scalar",
|
|
1500
1500
|
resolve: Sn,
|
|
1501
1501
|
construct: En,
|
|
@@ -1553,7 +1553,7 @@ function Rn(e, n) {
|
|
|
1553
1553
|
function Dn(e) {
|
|
1554
1554
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || y$1.isNegativeZero(e));
|
|
1555
1555
|
}
|
|
1556
|
-
var Mn = new C$
|
|
1556
|
+
var Mn = new C$1("tag:yaml.org,2002:float", {
|
|
1557
1557
|
kind: "scalar",
|
|
1558
1558
|
resolve: kn,
|
|
1559
1559
|
construct: Ln,
|
|
@@ -1570,19 +1570,19 @@ function Pn(e) {
|
|
|
1570
1570
|
return e === null ? !1 : ce.exec(e) !== null || ae.exec(e) !== null;
|
|
1571
1571
|
}
|
|
1572
1572
|
function jn(e) {
|
|
1573
|
-
var n, i, l, r$1, u, o, f, c$1 = 0, a = null, t, p$1, d
|
|
1573
|
+
var n, i, l, r$1, u, o, f, c$1 = 0, a = null, t, p$1, d;
|
|
1574
1574
|
if (n = ce.exec(e), n === null && (n = ae.exec(e)), n === null) throw new Error("Date resolve error");
|
|
1575
1575
|
if (i = +n[1], l = +n[2] - 1, r$1 = +n[3], !n[4]) return new Date(Date.UTC(i, l, r$1));
|
|
1576
1576
|
if (u = +n[4], o = +n[5], f = +n[6], n[7]) {
|
|
1577
1577
|
for (c$1 = n[7].slice(0, 3); c$1.length < 3;) c$1 += "0";
|
|
1578
1578
|
c$1 = +c$1;
|
|
1579
1579
|
}
|
|
1580
|
-
return n[9] && (t = +n[10], p$1 = +(n[11] || 0), a = (t * 60 + p$1) * 6e4, n[9] === "-" && (a = -a)), d
|
|
1580
|
+
return n[9] && (t = +n[10], p$1 = +(n[11] || 0), a = (t * 60 + p$1) * 6e4, n[9] === "-" && (a = -a)), d = new Date(Date.UTC(i, l, r$1, u, o, f, c$1)), a && d.setTime(d.getTime() - a), d;
|
|
1581
1581
|
}
|
|
1582
1582
|
function Hn(e) {
|
|
1583
1583
|
return e.toISOString();
|
|
1584
1584
|
}
|
|
1585
|
-
var Un = new C$
|
|
1585
|
+
var Un = new C$1("tag:yaml.org,2002:timestamp", {
|
|
1586
1586
|
kind: "scalar",
|
|
1587
1587
|
resolve: Pn,
|
|
1588
1588
|
construct: jn,
|
|
@@ -1592,7 +1592,7 @@ var Un = new C$2("tag:yaml.org,2002:timestamp", {
|
|
|
1592
1592
|
function Kn(e) {
|
|
1593
1593
|
return e === "<<" || e === null;
|
|
1594
1594
|
}
|
|
1595
|
-
var qn = new C$
|
|
1595
|
+
var qn = new C$1("tag:yaml.org,2002:merge", {
|
|
1596
1596
|
kind: "scalar",
|
|
1597
1597
|
resolve: Kn
|
|
1598
1598
|
}), X$1 = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
@@ -1619,7 +1619,7 @@ function $n(e) {
|
|
|
1619
1619
|
function Qn(e) {
|
|
1620
1620
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1621
1621
|
}
|
|
1622
|
-
var Vn = new C$
|
|
1622
|
+
var Vn = new C$1("tag:yaml.org,2002:binary", {
|
|
1623
1623
|
kind: "scalar",
|
|
1624
1624
|
resolve: Gn,
|
|
1625
1625
|
construct: Wn,
|
|
@@ -1642,7 +1642,7 @@ function zn(e) {
|
|
|
1642
1642
|
function Jn(e) {
|
|
1643
1643
|
return e !== null ? e : [];
|
|
1644
1644
|
}
|
|
1645
|
-
var ei = new C$
|
|
1645
|
+
var ei = new C$1("tag:yaml.org,2002:omap", {
|
|
1646
1646
|
kind: "sequence",
|
|
1647
1647
|
resolve: zn,
|
|
1648
1648
|
construct: Jn
|
|
@@ -1662,7 +1662,7 @@ function ri(e) {
|
|
|
1662
1662
|
for (u = new Array(o.length), n = 0, i = o.length; n < i; n += 1) l = o[n], r$1 = Object.keys(l), u[n] = [r$1[0], l[r$1[0]]];
|
|
1663
1663
|
return u;
|
|
1664
1664
|
}
|
|
1665
|
-
var li = new C$
|
|
1665
|
+
var li = new C$1("tag:yaml.org,2002:pairs", {
|
|
1666
1666
|
kind: "sequence",
|
|
1667
1667
|
resolve: ii,
|
|
1668
1668
|
construct: ri
|
|
@@ -1676,7 +1676,7 @@ function ui(e) {
|
|
|
1676
1676
|
function fi(e) {
|
|
1677
1677
|
return e !== null ? e : {};
|
|
1678
1678
|
}
|
|
1679
|
-
var ci = new C$
|
|
1679
|
+
var ci = new C$1("tag:yaml.org,2002:set", {
|
|
1680
1680
|
kind: "mapping",
|
|
1681
1681
|
resolve: ui,
|
|
1682
1682
|
construct: fi
|
|
@@ -1735,7 +1735,7 @@ function ye(e, n) {
|
|
|
1735
1735
|
};
|
|
1736
1736
|
return i.snippet = ln(i), new w$1(n, i);
|
|
1737
1737
|
}
|
|
1738
|
-
function h
|
|
1738
|
+
function h(e, n) {
|
|
1739
1739
|
throw ye(e, n);
|
|
1740
1740
|
}
|
|
1741
1741
|
function K$1(e, n) {
|
|
@@ -1744,15 +1744,15 @@ function K$1(e, n) {
|
|
|
1744
1744
|
var Ce = {
|
|
1745
1745
|
YAML: function(n, i, l) {
|
|
1746
1746
|
var r$1, u, o;
|
|
1747
|
-
n.version !== null && h
|
|
1747
|
+
n.version !== null && h(n, "duplication of %YAML directive"), l.length !== 1 && h(n, "YAML directive accepts exactly one argument"), r$1 = /^([0-9]+)\.([0-9]+)$/.exec(l[0]), r$1 === null && h(n, "ill-formed argument of the YAML directive"), u = parseInt(r$1[1], 10), o = parseInt(r$1[2], 10), u !== 1 && h(n, "unacceptable YAML version of the document"), n.version = l[0], n.checkLineBreaks = o < 2, o !== 1 && o !== 2 && K$1(n, "unsupported YAML version of the document");
|
|
1748
1748
|
},
|
|
1749
1749
|
TAG: function(n, i, l) {
|
|
1750
1750
|
var r$1, u;
|
|
1751
|
-
l.length !== 2 && h
|
|
1751
|
+
l.length !== 2 && h(n, "TAG directive accepts exactly two arguments"), r$1 = l[0], u = l[1], se.test(r$1) || h(n, "ill-formed tag handle (first argument) of the TAG directive"), T.call(n.tagMap, r$1) && h(n, "there is a previously declared suffix for \"" + r$1 + "\" tag handle"), xe.test(u) || h(n, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1752
1752
|
try {
|
|
1753
1753
|
u = decodeURIComponent(u);
|
|
1754
1754
|
} catch {
|
|
1755
|
-
h
|
|
1755
|
+
h(n, "tag prefix is malformed: " + u);
|
|
1756
1756
|
}
|
|
1757
1757
|
n.tagMap[r$1] = u;
|
|
1758
1758
|
}
|
|
@@ -1760,21 +1760,21 @@ var Ce = {
|
|
|
1760
1760
|
function O(e, n, i, l) {
|
|
1761
1761
|
var r$1, u, o, f;
|
|
1762
1762
|
if (n < i) {
|
|
1763
|
-
if (f = e.input.slice(n, i), l) for (r$1 = 0, u = f.length; r$1 < u; r$1 += 1) o = f.charCodeAt(r$1), o === 9 || 32 <= o && o <= 1114111 || h
|
|
1764
|
-
else pi.test(f) && h
|
|
1763
|
+
if (f = e.input.slice(n, i), l) for (r$1 = 0, u = f.length; r$1 < u; r$1 += 1) o = f.charCodeAt(r$1), o === 9 || 32 <= o && o <= 1114111 || h(e, "expected valid JSON character");
|
|
1764
|
+
else pi.test(f) && h(e, "the stream contains non-printable characters");
|
|
1765
1765
|
e.result += f;
|
|
1766
1766
|
}
|
|
1767
1767
|
}
|
|
1768
1768
|
function _e(e, n, i, l) {
|
|
1769
1769
|
var r$1, u, o, f;
|
|
1770
|
-
for (y$1.isObject(i) || h
|
|
1770
|
+
for (y$1.isObject(i) || h(e, "cannot merge mappings; the provided source object is unacceptable"), r$1 = Object.keys(i), o = 0, f = r$1.length; o < f; o += 1) u = r$1[o], T.call(n, u) || (n[u] = i[u], l[u] = !0);
|
|
1771
1771
|
}
|
|
1772
|
-
function N
|
|
1772
|
+
function N(e, n, i, l, r$1, u, o, f, c$1) {
|
|
1773
1773
|
var a, t;
|
|
1774
|
-
if (Array.isArray(r$1)) for (r$1 = Array.prototype.slice.call(r$1), a = 0, t = r$1.length; a < t; a += 1) Array.isArray(r$1[a]) && h
|
|
1774
|
+
if (Array.isArray(r$1)) for (r$1 = Array.prototype.slice.call(r$1), a = 0, t = r$1.length; a < t; a += 1) Array.isArray(r$1[a]) && h(e, "nested arrays are not supported inside keys"), typeof r$1 == "object" && me(r$1[a]) === "[object Object]" && (r$1[a] = "[object Object]");
|
|
1775
1775
|
if (typeof r$1 == "object" && me(r$1) === "[object Object]" && (r$1 = "[object Object]"), r$1 = String(r$1), n === null && (n = {}), l === "tag:yaml.org,2002:merge") if (Array.isArray(u)) for (a = 0, t = u.length; a < t; a += 1) _e(e, n, u[a], i);
|
|
1776
1776
|
else _e(e, n, u, i);
|
|
1777
|
-
else !e.json && !T.call(i, r$1) && T.call(n, r$1) && (e.line = o || e.line, e.lineStart = f || e.lineStart, e.position = c$1 || e.position, h
|
|
1777
|
+
else !e.json && !T.call(i, r$1) && T.call(n, r$1) && (e.line = o || e.line, e.lineStart = f || e.lineStart, e.position = c$1 || e.position, h(e, "duplicated mapping key")), r$1 === "__proto__" ? Object.defineProperty(n, r$1, {
|
|
1778
1778
|
configurable: !0,
|
|
1779
1779
|
enumerable: !0,
|
|
1780
1780
|
writable: !0,
|
|
@@ -1784,7 +1784,7 @@ function N$1(e, n, i, l, r$1, u, o, f, c$1) {
|
|
|
1784
1784
|
}
|
|
1785
1785
|
function z$1(e) {
|
|
1786
1786
|
var n = e.input.charCodeAt(e.position);
|
|
1787
|
-
n === 10 ? e.position++ : n === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : h
|
|
1787
|
+
n === 10 ? e.position++ : n === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : h(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1788
1788
|
}
|
|
1789
1789
|
function v$1(e, n, i) {
|
|
1790
1790
|
for (var l = 0, r$1 = e.input.charCodeAt(e.position); r$1 !== 0;) {
|
|
@@ -1806,7 +1806,7 @@ function J(e, n) {
|
|
|
1806
1806
|
`, n - 1));
|
|
1807
1807
|
}
|
|
1808
1808
|
function Ai(e, n, i) {
|
|
1809
|
-
var l, r$1, u, o, f, c$1, a, t, p$1 = e.kind, d
|
|
1809
|
+
var l, r$1, u, o, f, c$1, a, t, p$1 = e.kind, d = e.result, s$1;
|
|
1810
1810
|
if (s$1 = e.input.charCodeAt(e.position), F$1(s$1) || k(s$1) || s$1 === 35 || s$1 === 38 || s$1 === 42 || s$1 === 33 || s$1 === 124 || s$1 === 62 || s$1 === 39 || s$1 === 34 || s$1 === 37 || s$1 === 64 || s$1 === 96 || (s$1 === 63 || s$1 === 45) && (r$1 = e.input.charCodeAt(e.position + 1), F$1(r$1) || i && k(r$1))) return !1;
|
|
1811
1811
|
for (e.kind = "scalar", e.result = "", u = o = e.position, f = !1; s$1 !== 0;) {
|
|
1812
1812
|
if (s$1 === 58) {
|
|
@@ -1825,15 +1825,15 @@ function Ai(e, n, i) {
|
|
|
1825
1825
|
}
|
|
1826
1826
|
f && (O(e, u, o, !1), J(e, e.line - c$1), u = o = e.position, f = !1), I$1(s$1) || (o = e.position + 1), s$1 = e.input.charCodeAt(++e.position);
|
|
1827
1827
|
}
|
|
1828
|
-
return O(e, u, o, !1), e.result ? !0 : (e.kind = p$1, e.result = d
|
|
1828
|
+
return O(e, u, o, !1), e.result ? !0 : (e.kind = p$1, e.result = d, !1);
|
|
1829
1829
|
}
|
|
1830
1830
|
function vi(e, n) {
|
|
1831
1831
|
var i, l, r$1;
|
|
1832
1832
|
if (i = e.input.charCodeAt(e.position), i !== 39) return !1;
|
|
1833
1833
|
for (e.kind = "scalar", e.result = "", e.position++, l = r$1 = e.position; (i = e.input.charCodeAt(e.position)) !== 0;) if (i === 39) if (O(e, l, e.position, !0), i = e.input.charCodeAt(++e.position), i === 39) l = e.position, e.position++, r$1 = e.position;
|
|
1834
1834
|
else return !0;
|
|
1835
|
-
else S$1(i) ? (O(e, l, r$1, !0), J(e, v$1(e, !1, n)), l = r$1 = e.position) : e.position === e.lineStart && q(e) ? h
|
|
1836
|
-
h
|
|
1835
|
+
else S$1(i) ? (O(e, l, r$1, !0), J(e, v$1(e, !1, n)), l = r$1 = e.position) : e.position === e.lineStart && q(e) ? h(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r$1 = e.position);
|
|
1836
|
+
h(e, "unexpected end of the stream within a single quoted scalar");
|
|
1837
1837
|
}
|
|
1838
1838
|
function yi(e, n) {
|
|
1839
1839
|
var i, l, r$1, u, o, f;
|
|
@@ -1844,32 +1844,32 @@ function yi(e, n) {
|
|
|
1844
1844
|
if (O(e, i, e.position, !0), f = e.input.charCodeAt(++e.position), S$1(f)) v$1(e, !1, n);
|
|
1845
1845
|
else if (f < 256 && Ae[f]) e.result += ve[f], e.position++;
|
|
1846
1846
|
else if ((o = si(f)) > 0) {
|
|
1847
|
-
for (r$1 = o, u = 0; r$1 > 0; r$1--) f = e.input.charCodeAt(++e.position), (o = di(f)) >= 0 ? u = (u << 4) + o : h
|
|
1847
|
+
for (r$1 = o, u = 0; r$1 > 0; r$1--) f = e.input.charCodeAt(++e.position), (o = di(f)) >= 0 ? u = (u << 4) + o : h(e, "expected hexadecimal character");
|
|
1848
1848
|
e.result += mi(u), e.position++;
|
|
1849
|
-
} else h
|
|
1849
|
+
} else h(e, "unknown escape sequence");
|
|
1850
1850
|
i = l = e.position;
|
|
1851
|
-
} else S$1(f) ? (O(e, i, l, !0), J(e, v$1(e, !1, n)), i = l = e.position) : e.position === e.lineStart && q(e) ? h
|
|
1851
|
+
} else S$1(f) ? (O(e, i, l, !0), J(e, v$1(e, !1, n)), i = l = e.position) : e.position === e.lineStart && q(e) ? h(e, "unexpected end of the document within a double quoted scalar") : (e.position++, l = e.position);
|
|
1852
1852
|
}
|
|
1853
|
-
h
|
|
1853
|
+
h(e, "unexpected end of the stream within a double quoted scalar");
|
|
1854
1854
|
}
|
|
1855
1855
|
function Ci(e, n) {
|
|
1856
|
-
var i = !0, l, r$1, u, o = e.tag, f, c$1 = e.anchor, a, t, p$1, d
|
|
1856
|
+
var i = !0, l, r$1, u, o = e.tag, f, c$1 = e.anchor, a, t, p$1, d, s$1, x$3 = Object.create(null), g$1, A$1, b$1, m$1;
|
|
1857
1857
|
if (m$1 = e.input.charCodeAt(e.position), m$1 === 91) t = 93, s$1 = !1, f = [];
|
|
1858
1858
|
else if (m$1 === 123) t = 125, s$1 = !0, f = {};
|
|
1859
1859
|
else return !1;
|
|
1860
1860
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = f), m$1 = e.input.charCodeAt(++e.position); m$1 !== 0;) {
|
|
1861
1861
|
if (v$1(e, !0, n), m$1 = e.input.charCodeAt(e.position), m$1 === t) return e.position++, e.tag = o, e.anchor = c$1, e.kind = s$1 ? "mapping" : "sequence", e.result = f, !0;
|
|
1862
|
-
i ? m$1 === 44 && h
|
|
1862
|
+
i ? m$1 === 44 && h(e, "expected the node content, but found ','") : h(e, "missed comma between flow collection entries"), A$1 = g$1 = b$1 = null, p$1 = d = !1, m$1 === 63 && (a = e.input.charCodeAt(e.position + 1), F$1(a) && (p$1 = d = !0, e.position++, v$1(e, !0, n))), l = e.line, r$1 = e.lineStart, u = e.position, R$1(e, n, H, !1, !0), A$1 = e.tag, g$1 = e.result, v$1(e, !0, n), m$1 = e.input.charCodeAt(e.position), (d || e.line === l) && m$1 === 58 && (p$1 = !0, m$1 = e.input.charCodeAt(++e.position), v$1(e, !0, n), R$1(e, n, H, !1, !0), b$1 = e.result), s$1 ? N(e, f, x$3, A$1, g$1, b$1, l, r$1, u) : p$1 ? f.push(N(e, null, x$3, A$1, g$1, b$1, l, r$1, u)) : f.push(g$1), v$1(e, !0, n), m$1 = e.input.charCodeAt(e.position), m$1 === 44 ? (i = !0, m$1 = e.input.charCodeAt(++e.position)) : i = !1;
|
|
1863
1863
|
}
|
|
1864
|
-
h
|
|
1864
|
+
h(e, "unexpected end of the stream within a flow collection");
|
|
1865
1865
|
}
|
|
1866
1866
|
function _i(e, n) {
|
|
1867
1867
|
var i, l, r$1 = Z$1, u = !1, o = !1, f = n, c$1 = 0, a = !1, t, p$1;
|
|
1868
1868
|
if (p$1 = e.input.charCodeAt(e.position), p$1 === 124) l = !1;
|
|
1869
1869
|
else if (p$1 === 62) l = !0;
|
|
1870
1870
|
else return !1;
|
|
1871
|
-
for (e.kind = "scalar", e.result = ""; p$1 !== 0;) if (p$1 = e.input.charCodeAt(++e.position), p$1 === 43 || p$1 === 45) Z$1 === r$1 ? r$1 = p$1 === 43 ? de : ai : h
|
|
1872
|
-
else if ((t = xi(p$1)) >= 0) t === 0 ? h
|
|
1871
|
+
for (e.kind = "scalar", e.result = ""; p$1 !== 0;) if (p$1 = e.input.charCodeAt(++e.position), p$1 === 43 || p$1 === 45) Z$1 === r$1 ? r$1 = p$1 === 43 ? de : ai : h(e, "repeat of a chomping mode identifier");
|
|
1872
|
+
else if ((t = xi(p$1)) >= 0) t === 0 ? h(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? h(e, "repeat of an indentation width identifier") : (f = n + t - 1, o = !0);
|
|
1873
1873
|
else break;
|
|
1874
1874
|
if (I$1(p$1)) {
|
|
1875
1875
|
do
|
|
@@ -1903,84 +1903,84 @@ function _i(e, n) {
|
|
|
1903
1903
|
function we(e, n) {
|
|
1904
1904
|
var i, l = e.tag, r$1 = e.anchor, u = [], o, f = !1, c$1;
|
|
1905
1905
|
if (e.firstTabInLine !== -1) return !1;
|
|
1906
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), c$1 = e.input.charCodeAt(e.position); c$1 !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, h
|
|
1906
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), c$1 = e.input.charCodeAt(e.position); c$1 !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, h(e, "tab characters must not be used in indentation")), !(c$1 !== 45 || (o = e.input.charCodeAt(e.position + 1), !F$1(o))));) {
|
|
1907
1907
|
if (f = !0, e.position++, v$1(e, !0, -1) && e.lineIndent <= n) {
|
|
1908
1908
|
u.push(null), c$1 = e.input.charCodeAt(e.position);
|
|
1909
1909
|
continue;
|
|
1910
1910
|
}
|
|
1911
|
-
if (i = e.line, R$1(e, n, he, !1, !0), u.push(e.result), v$1(e, !0, -1), c$1 = e.input.charCodeAt(e.position), (e.line === i || e.lineIndent > n) && c$1 !== 0) h
|
|
1911
|
+
if (i = e.line, R$1(e, n, he, !1, !0), u.push(e.result), v$1(e, !0, -1), c$1 = e.input.charCodeAt(e.position), (e.line === i || e.lineIndent > n) && c$1 !== 0) h(e, "bad indentation of a sequence entry");
|
|
1912
1912
|
else if (e.lineIndent < n) break;
|
|
1913
1913
|
}
|
|
1914
1914
|
return f ? (e.tag = l, e.anchor = r$1, e.kind = "sequence", e.result = u, !0) : !1;
|
|
1915
1915
|
}
|
|
1916
1916
|
function wi(e, n, i) {
|
|
1917
|
-
var l, r$1, u, o, f, c$1, a = e.tag, t = e.anchor, p$1 = {}, d
|
|
1917
|
+
var l, r$1, u, o, f, c$1, a = e.tag, t = e.anchor, p$1 = {}, d = Object.create(null), s$1 = null, x$3 = null, g$1 = null, A$1 = !1, b$1 = !1, m$1;
|
|
1918
1918
|
if (e.firstTabInLine !== -1) return !1;
|
|
1919
1919
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = p$1), m$1 = e.input.charCodeAt(e.position); m$1 !== 0;) {
|
|
1920
|
-
if (!A$1 && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, h
|
|
1920
|
+
if (!A$1 && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, h(e, "tab characters must not be used in indentation")), l = e.input.charCodeAt(e.position + 1), u = e.line, (m$1 === 63 || m$1 === 58) && F$1(l)) m$1 === 63 ? (A$1 && (N(e, p$1, d, s$1, x$3, null, o, f, c$1), s$1 = x$3 = g$1 = null), b$1 = !0, A$1 = !0, r$1 = !0) : A$1 ? (A$1 = !1, r$1 = !0) : h(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, m$1 = l;
|
|
1921
1921
|
else {
|
|
1922
1922
|
if (o = e.line, f = e.lineStart, c$1 = e.position, !R$1(e, i, te, !1, !0)) break;
|
|
1923
1923
|
if (e.line === u) {
|
|
1924
1924
|
for (m$1 = e.input.charCodeAt(e.position); I$1(m$1);) m$1 = e.input.charCodeAt(++e.position);
|
|
1925
|
-
if (m$1 === 58) m$1 = e.input.charCodeAt(++e.position), F$1(m$1) || h
|
|
1926
|
-
else if (b$1) h
|
|
1925
|
+
if (m$1 === 58) m$1 = e.input.charCodeAt(++e.position), F$1(m$1) || h(e, "a whitespace character is expected after the key-value separator within a block mapping"), A$1 && (N(e, p$1, d, s$1, x$3, null, o, f, c$1), s$1 = x$3 = g$1 = null), b$1 = !0, A$1 = !1, r$1 = !1, s$1 = e.tag, x$3 = e.result;
|
|
1926
|
+
else if (b$1) h(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1927
1927
|
else return e.tag = a, e.anchor = t, !0;
|
|
1928
|
-
} else if (b$1) h
|
|
1928
|
+
} else if (b$1) h(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
1929
1929
|
else return e.tag = a, e.anchor = t, !0;
|
|
1930
1930
|
}
|
|
1931
|
-
if ((e.line === u || e.lineIndent > n) && (A$1 && (o = e.line, f = e.lineStart, c$1 = e.position), R$1(e, n, U$1, !0, r$1) && (A$1 ? x$3 = e.result : g$1 = e.result), A$1 || (N
|
|
1931
|
+
if ((e.line === u || e.lineIndent > n) && (A$1 && (o = e.line, f = e.lineStart, c$1 = e.position), R$1(e, n, U$1, !0, r$1) && (A$1 ? x$3 = e.result : g$1 = e.result), A$1 || (N(e, p$1, d, s$1, x$3, g$1, o, f, c$1), s$1 = x$3 = g$1 = null), v$1(e, !0, -1), m$1 = e.input.charCodeAt(e.position)), (e.line === u || e.lineIndent > n) && m$1 !== 0) h(e, "bad indentation of a mapping entry");
|
|
1932
1932
|
else if (e.lineIndent < n) break;
|
|
1933
1933
|
}
|
|
1934
|
-
return A$1 && N
|
|
1934
|
+
return A$1 && N(e, p$1, d, s$1, x$3, null, o, f, c$1), b$1 && (e.tag = a, e.anchor = t, e.kind = "mapping", e.result = p$1), b$1;
|
|
1935
1935
|
}
|
|
1936
1936
|
function Fi(e) {
|
|
1937
1937
|
var n, i = !1, l = !1, r$1, u, o;
|
|
1938
1938
|
if (o = e.input.charCodeAt(e.position), o !== 33) return !1;
|
|
1939
|
-
if (e.tag !== null && h
|
|
1939
|
+
if (e.tag !== null && h(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (i = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (l = !0, r$1 = "!!", o = e.input.charCodeAt(++e.position)) : r$1 = "!", n = e.position, i) {
|
|
1940
1940
|
do
|
|
1941
1941
|
o = e.input.charCodeAt(++e.position);
|
|
1942
1942
|
while (o !== 0 && o !== 62);
|
|
1943
|
-
e.position < e.length ? (u = e.input.slice(n, e.position), o = e.input.charCodeAt(++e.position)) : h
|
|
1943
|
+
e.position < e.length ? (u = e.input.slice(n, e.position), o = e.input.charCodeAt(++e.position)) : h(e, "unexpected end of the stream within a verbatim tag");
|
|
1944
1944
|
} else {
|
|
1945
|
-
for (; o !== 0 && !F$1(o);) o === 33 && (l ? h
|
|
1946
|
-
u = e.input.slice(n, e.position), hi.test(u) && h
|
|
1945
|
+
for (; o !== 0 && !F$1(o);) o === 33 && (l ? h(e, "tag suffix cannot contain exclamation marks") : (r$1 = e.input.slice(n - 1, e.position + 1), se.test(r$1) || h(e, "named tag handle cannot contain such characters"), l = !0, n = e.position + 1)), o = e.input.charCodeAt(++e.position);
|
|
1946
|
+
u = e.input.slice(n, e.position), hi.test(u) && h(e, "tag suffix cannot contain flow indicator characters");
|
|
1947
1947
|
}
|
|
1948
|
-
u && !xe.test(u) && h
|
|
1948
|
+
u && !xe.test(u) && h(e, "tag name cannot contain such characters: " + u);
|
|
1949
1949
|
try {
|
|
1950
1950
|
u = decodeURIComponent(u);
|
|
1951
1951
|
} catch {
|
|
1952
|
-
h
|
|
1952
|
+
h(e, "tag name is malformed: " + u);
|
|
1953
1953
|
}
|
|
1954
|
-
return i ? e.tag = u : T.call(e.tagMap, r$1) ? e.tag = e.tagMap[r$1] + u : r$1 === "!" ? e.tag = "!" + u : r$1 === "!!" ? e.tag = "tag:yaml.org,2002:" + u : h
|
|
1954
|
+
return i ? e.tag = u : T.call(e.tagMap, r$1) ? e.tag = e.tagMap[r$1] + u : r$1 === "!" ? e.tag = "!" + u : r$1 === "!!" ? e.tag = "tag:yaml.org,2002:" + u : h(e, "undeclared tag handle \"" + r$1 + "\""), !0;
|
|
1955
1955
|
}
|
|
1956
1956
|
function bi(e) {
|
|
1957
1957
|
var n, i;
|
|
1958
1958
|
if (i = e.input.charCodeAt(e.position), i !== 38) return !1;
|
|
1959
|
-
for (e.anchor !== null && h
|
|
1960
|
-
return e.position === n && h
|
|
1959
|
+
for (e.anchor !== null && h(e, "duplication of an anchor property"), i = e.input.charCodeAt(++e.position), n = e.position; i !== 0 && !F$1(i) && !k(i);) i = e.input.charCodeAt(++e.position);
|
|
1960
|
+
return e.position === n && h(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
|
|
1961
1961
|
}
|
|
1962
1962
|
function Si(e) {
|
|
1963
1963
|
var n, i, l;
|
|
1964
1964
|
if (l = e.input.charCodeAt(e.position), l !== 42) return !1;
|
|
1965
1965
|
for (l = e.input.charCodeAt(++e.position), n = e.position; l !== 0 && !F$1(l) && !k(l);) l = e.input.charCodeAt(++e.position);
|
|
1966
|
-
return e.position === n && h
|
|
1966
|
+
return e.position === n && h(e, "name of an alias node must contain at least one character"), i = e.input.slice(n, e.position), T.call(e.anchorMap, i) || h(e, "unidentified alias \"" + i + "\""), e.result = e.anchorMap[i], v$1(e, !0, -1), !0;
|
|
1967
1967
|
}
|
|
1968
1968
|
function R$1(e, n, i, l, r$1) {
|
|
1969
|
-
var u, o, f, c$1 = 1, a = !1, t = !1, p$1, d
|
|
1969
|
+
var u, o, f, c$1 = 1, a = !1, t = !1, p$1, d, s$1, x$3, g$1, A$1;
|
|
1970
1970
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, u = o = f = U$1 === i || he === i, l && v$1(e, !0, -1) && (a = !0, e.lineIndent > n ? c$1 = 1 : e.lineIndent === n ? c$1 = 0 : e.lineIndent < n && (c$1 = -1)), c$1 === 1) for (; Fi(e) || bi(e);) v$1(e, !0, -1) ? (a = !0, f = u, e.lineIndent > n ? c$1 = 1 : e.lineIndent === n ? c$1 = 0 : e.lineIndent < n && (c$1 = -1)) : f = !1;
|
|
1971
|
-
if (f && (f = a || r$1), (c$1 === 1 || U$1 === i) && (H === i || te === i ? g$1 = n : g$1 = n + 1, A$1 = e.position - e.lineStart, c$1 === 1 ? f && (we(e, A$1) || wi(e, A$1, g$1)) || Ci(e, g$1) ? t = !0 : (o && _i(e, g$1) || vi(e, g$1) || yi(e, g$1) ? t = !0 : Si(e) ? (t = !0, (e.tag !== null || e.anchor !== null) && h
|
|
1971
|
+
if (f && (f = a || r$1), (c$1 === 1 || U$1 === i) && (H === i || te === i ? g$1 = n : g$1 = n + 1, A$1 = e.position - e.lineStart, c$1 === 1 ? f && (we(e, A$1) || wi(e, A$1, g$1)) || Ci(e, g$1) ? t = !0 : (o && _i(e, g$1) || vi(e, g$1) || yi(e, g$1) ? t = !0 : Si(e) ? (t = !0, (e.tag !== null || e.anchor !== null) && h(e, "alias node should not have any properties")) : Ai(e, g$1, H === i) && (t = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c$1 === 0 && (t = f && we(e, A$1))), e.tag === null) e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1972
1972
|
else if (e.tag === "?") {
|
|
1973
|
-
for (e.result !== null && e.kind !== "scalar" && h
|
|
1973
|
+
for (e.result !== null && e.kind !== "scalar" && h(e, "unacceptable node kind for !<?> tag; it should be \"scalar\", not \"" + e.kind + "\""), p$1 = 0, d = e.implicitTypes.length; p$1 < d; p$1 += 1) if (x$3 = e.implicitTypes[p$1], x$3.resolve(e.result)) {
|
|
1974
1974
|
e.result = x$3.construct(e.result), e.tag = x$3.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1975
1975
|
break;
|
|
1976
1976
|
}
|
|
1977
1977
|
} else if (e.tag !== "!") {
|
|
1978
1978
|
if (T.call(e.typeMap[e.kind || "fallback"], e.tag)) x$3 = e.typeMap[e.kind || "fallback"][e.tag];
|
|
1979
|
-
else for (x$3 = null, s$1 = e.typeMap.multi[e.kind || "fallback"], p$1 = 0, d
|
|
1979
|
+
else for (x$3 = null, s$1 = e.typeMap.multi[e.kind || "fallback"], p$1 = 0, d = s$1.length; p$1 < d; p$1 += 1) if (e.tag.slice(0, s$1[p$1].tag.length) === s$1[p$1].tag) {
|
|
1980
1980
|
x$3 = s$1[p$1];
|
|
1981
1981
|
break;
|
|
1982
1982
|
}
|
|
1983
|
-
x$3 || h
|
|
1983
|
+
x$3 || h(e, "unknown tag !<" + e.tag + ">"), e.result !== null && x$3.kind !== e.kind && h(e, "unacceptable node kind for !<" + e.tag + "> tag; it should be \"" + x$3.kind + "\", not \"" + e.kind + "\""), x$3.resolve(e.result, e.tag) ? (e.result = x$3.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : h(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
1984
1984
|
}
|
|
1985
1985
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || t;
|
|
1986
1986
|
}
|
|
@@ -1988,7 +1988,7 @@ function Ei(e) {
|
|
|
1988
1988
|
var n = e.position, i, l, r$1, u = !1, o;
|
|
1989
1989
|
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = Object.create(null), e.anchorMap = Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (v$1(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37));) {
|
|
1990
1990
|
for (u = !0, o = e.input.charCodeAt(++e.position), i = e.position; o !== 0 && !F$1(o);) o = e.input.charCodeAt(++e.position);
|
|
1991
|
-
for (l = e.input.slice(i, e.position), r$1 = [], l.length < 1 && h
|
|
1991
|
+
for (l = e.input.slice(i, e.position), r$1 = [], l.length < 1 && h(e, "directive name must not be less than one character in length"); o !== 0;) {
|
|
1992
1992
|
for (; I$1(o);) o = e.input.charCodeAt(++e.position);
|
|
1993
1993
|
if (o === 35) {
|
|
1994
1994
|
do
|
|
@@ -2002,18 +2002,18 @@ function Ei(e) {
|
|
|
2002
2002
|
}
|
|
2003
2003
|
o !== 0 && z$1(e), T.call(Ce, l) ? Ce[l](e, l, r$1) : K$1(e, "unknown document directive \"" + l + "\"");
|
|
2004
2004
|
}
|
|
2005
|
-
if (v$1(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, v$1(e, !0, -1)) : u && h
|
|
2005
|
+
if (v$1(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, v$1(e, !0, -1)) : u && h(e, "directives end mark is expected"), R$1(e, e.lineIndent - 1, U$1, !1, !0), v$1(e, !0, -1), e.checkLineBreaks && ti.test(e.input.slice(n, e.position)) && K$1(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && q(e)) {
|
|
2006
2006
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, v$1(e, !0, -1));
|
|
2007
2007
|
return;
|
|
2008
2008
|
}
|
|
2009
|
-
if (e.position < e.length - 1) h
|
|
2009
|
+
if (e.position < e.length - 1) h(e, "end of the stream or a document separator is expected");
|
|
2010
2010
|
else return;
|
|
2011
2011
|
}
|
|
2012
2012
|
function Ti(e, n) {
|
|
2013
2013
|
e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2014
2014
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2015
2015
|
var i = new gi(e, n), l = e.indexOf("\0");
|
|
2016
|
-
for (l !== -1 && (i.position = l, h
|
|
2016
|
+
for (l !== -1 && (i.position = l, h(i, "null byte is not allowed in input")), i.input += "\0"; i.input.charCodeAt(i.position) === 32;) i.lineIndent += 1, i.position += 1;
|
|
2017
2017
|
for (; i.position < i.length - 1;) Ei(i);
|
|
2018
2018
|
return i.documents;
|
|
2019
2019
|
}
|
|
@@ -2105,20 +2105,20 @@ function Re(e) {
|
|
|
2105
2105
|
}
|
|
2106
2106
|
var De = 1, re = 2, Me = 3, Ye = 4, D = 5;
|
|
2107
2107
|
function rr(e, n, i, l, r$1, u, o, f) {
|
|
2108
|
-
var c$1, a = 0, t = null, p$1 = !1, d
|
|
2108
|
+
var c$1, a = 0, t = null, p$1 = !1, d = !1, s$1 = l !== -1, x$3 = -1, g$1 = nr(j$1(e, 0)) && ir(j$1(e, e.length - 1));
|
|
2109
2109
|
if (n || o) for (c$1 = 0; c$1 < e.length; a >= 65536 ? c$1 += 2 : c$1++) {
|
|
2110
2110
|
if (a = j$1(e, c$1), !P(a)) return D;
|
|
2111
2111
|
g$1 = g$1 && Ne(a, t, f), t = a;
|
|
2112
2112
|
}
|
|
2113
2113
|
else {
|
|
2114
2114
|
for (c$1 = 0; c$1 < e.length; a >= 65536 ? c$1 += 2 : c$1++) {
|
|
2115
|
-
if (a = j$1(e, c$1), a === Y) p$1 = !0, s$1 && (d
|
|
2115
|
+
if (a = j$1(e, c$1), a === Y) p$1 = !0, s$1 && (d = d || c$1 - x$3 - 1 > l && e[x$3 + 1] !== " ", x$3 = c$1);
|
|
2116
2116
|
else if (!P(a)) return D;
|
|
2117
2117
|
g$1 = g$1 && Ne(a, t, f), t = a;
|
|
2118
2118
|
}
|
|
2119
|
-
d
|
|
2119
|
+
d = d || s$1 && c$1 - x$3 - 1 > l && e[x$3 + 1] !== " ";
|
|
2120
2120
|
}
|
|
2121
|
-
return !p$1 && !d
|
|
2121
|
+
return !p$1 && !d ? g$1 && !o && !r$1(e) ? De : u === B ? D : re : i > 9 && Re(e) ? D : o ? u === B ? D : re : d ? Ye : Me;
|
|
2122
2122
|
}
|
|
2123
2123
|
function lr(e, n, i, l, r$1) {
|
|
2124
2124
|
e.dump = function() {
|
|
@@ -2191,11 +2191,11 @@ function cr(e, n, i) {
|
|
|
2191
2191
|
e.tag = r$1, e.dump = "{" + l + "}";
|
|
2192
2192
|
}
|
|
2193
2193
|
function ar(e, n, i, l) {
|
|
2194
|
-
var r$1 = "", u = e.tag, o = Object.keys(i), f, c$1, a, t, p$1, d
|
|
2194
|
+
var r$1 = "", u = e.tag, o = Object.keys(i), f, c$1, a, t, p$1, d;
|
|
2195
2195
|
if (e.sortKeys === !0) o.sort();
|
|
2196
2196
|
else if (typeof e.sortKeys == "function") o.sort(e.sortKeys);
|
|
2197
2197
|
else if (e.sortKeys) throw new w$1("sortKeys must be a boolean or a function");
|
|
2198
|
-
for (f = 0, c$1 = o.length; f < c$1; f += 1) d
|
|
2198
|
+
for (f = 0, c$1 = o.length; f < c$1; f += 1) d = "", (!l || r$1 !== "") && (d += ie(e, n)), a = o[f], t = i[a], e.replacer && (t = e.replacer.call(i, a, t)), E(e, n + 1, a, !0, !0, !0) && (p$1 = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, p$1 && (e.dump && Y === e.dump.charCodeAt(0) ? d += "?" : d += "? "), d += e.dump, p$1 && (d += ie(e, n)), E(e, n + 1, t, !0, p$1) && (e.dump && Y === e.dump.charCodeAt(0) ? d += ":" : d += ": ", d += e.dump, r$1 += d));
|
|
2199
2199
|
e.tag = u, e.dump = r$1 || "{}";
|
|
2200
2200
|
}
|
|
2201
2201
|
function Ue(e, n, i) {
|
|
@@ -2215,11 +2215,11 @@ function E(e, n, i, l, r$1, u, o) {
|
|
|
2215
2215
|
e.tag = null, e.dump = i, Ue(e, i, !1) || Ue(e, i, !0);
|
|
2216
2216
|
var f = Fe.call(e.dump), c$1 = l, a;
|
|
2217
2217
|
l && (l = e.flowLevel < 0 || e.flowLevel > n);
|
|
2218
|
-
var t = f === "[object Object]" || f === "[object Array]", p$1, d
|
|
2219
|
-
if (t && (p$1 = e.duplicates.indexOf(i), d
|
|
2218
|
+
var t = f === "[object Object]" || f === "[object Array]", p$1, d;
|
|
2219
|
+
if (t && (p$1 = e.duplicates.indexOf(i), d = p$1 !== -1), (e.tag !== null && e.tag !== "?" || d || e.indent !== 2 && n > 0) && (r$1 = !1), d && e.usedDuplicates[p$1]) e.dump = "*ref_" + p$1;
|
|
2220
2220
|
else {
|
|
2221
|
-
if (t && d
|
|
2222
|
-
else if (f === "[object Array]") l && e.dump.length !== 0 ? (e.noArrayIndent && !o && n > 0 ? He(e, n - 1, e.dump, r$1) : He(e, n, e.dump, r$1), d
|
|
2221
|
+
if (t && d && !e.usedDuplicates[p$1] && (e.usedDuplicates[p$1] = !0), f === "[object Object]") l && Object.keys(e.dump).length !== 0 ? (ar(e, n, e.dump, r$1), d && (e.dump = "&ref_" + p$1 + e.dump)) : (cr(e, n, e.dump), d && (e.dump = "&ref_" + p$1 + " " + e.dump));
|
|
2222
|
+
else if (f === "[object Array]") l && e.dump.length !== 0 ? (e.noArrayIndent && !o && n > 0 ? He(e, n - 1, e.dump, r$1) : He(e, n, e.dump, r$1), d && (e.dump = "&ref_" + p$1 + e.dump)) : (fr(e, n, e.dump), d && (e.dump = "&ref_" + p$1 + " " + e.dump));
|
|
2223
2223
|
else if (f === "[object String]") e.tag !== "?" && lr(e, e.dump, n, u, c$1);
|
|
2224
2224
|
else {
|
|
2225
2225
|
if (f === "[object Undefined]") return !1;
|
|
@@ -2252,10 +2252,10 @@ function tr(e, n) {
|
|
|
2252
2252
|
var dr = { dump: tr }, sr = ki.load, xr = dr.dump;
|
|
2253
2253
|
function mr(e, n) {
|
|
2254
2254
|
const i = sr(e, n);
|
|
2255
|
-
return N(e, i, n), i;
|
|
2255
|
+
return N$3(e, i, n), i;
|
|
2256
2256
|
}
|
|
2257
2257
|
function gr(e, n) {
|
|
2258
|
-
const i = C(e, {}), r$1 = xr(e, {
|
|
2258
|
+
const i = C$2(e, {}), r$1 = xr(e, {
|
|
2259
2259
|
indent: typeof i.indent == "string" ? i.indent.length : i.indent,
|
|
2260
2260
|
...n
|
|
2261
2261
|
});
|
|
@@ -2294,7 +2294,7 @@ function gr(e, n) {
|
|
|
2294
2294
|
let t = e.slice(0, n).split(/\r\n|\n|\r/g);
|
|
2295
2295
|
return [t.length, t.pop().length + 1];
|
|
2296
2296
|
}
|
|
2297
|
-
function C
|
|
2297
|
+
function C(e, n, t) {
|
|
2298
2298
|
let l = e.split(/\r\n|\n|\r/g), r$1 = "", i = (Math.log10(n + 1) | 0) + 1;
|
|
2299
2299
|
for (let o = n - 1; o <= n + 1; o++) {
|
|
2300
2300
|
let f = l[o - 1];
|
|
@@ -2309,7 +2309,7 @@ var c = class extends Error {
|
|
|
2309
2309
|
column;
|
|
2310
2310
|
codeblock;
|
|
2311
2311
|
constructor(n, t) {
|
|
2312
|
-
const [l, r$1] = v(t.toml, t.ptr), i = C
|
|
2312
|
+
const [l, r$1] = v(t.toml, t.ptr), i = C(t.toml, l, r$1);
|
|
2313
2313
|
super(`Invalid TOML document: ${n}
|
|
2314
2314
|
|
|
2315
2315
|
${i}`, t), this.line = l, this.column = r$1, this.codeblock = i;
|
|
@@ -2529,13 +2529,13 @@ function $(e, n = 0, t = e.length) {
|
|
|
2529
2529
|
});
|
|
2530
2530
|
if (o) {
|
|
2531
2531
|
if (o = !1, u === "u" || u === "U") {
|
|
2532
|
-
let d
|
|
2533
|
-
if (!z.test(d
|
|
2532
|
+
let d = e.slice(n, n += u === "u" ? 4 : 8);
|
|
2533
|
+
if (!z.test(d)) throw new c("invalid unicode escape", {
|
|
2534
2534
|
toml: e,
|
|
2535
2535
|
ptr: i
|
|
2536
2536
|
});
|
|
2537
2537
|
try {
|
|
2538
|
-
f += String.fromCodePoint(parseInt(d
|
|
2538
|
+
f += String.fromCodePoint(parseInt(d, 16));
|
|
2539
2539
|
} catch {
|
|
2540
2540
|
throw new c("invalid unicode escape", {
|
|
2541
2541
|
toml: e,
|
|
@@ -2640,10 +2640,10 @@ function b(e, n, t, l) {
|
|
|
2640
2640
|
if (r$1 === "[" || r$1 === "{") {
|
|
2641
2641
|
let [f, a] = r$1 === "[" ? U(e, n, l) : K(e, n, l), u = A(e, a, ",", t);
|
|
2642
2642
|
if (t === "}") {
|
|
2643
|
-
let d
|
|
2644
|
-
if (d
|
|
2643
|
+
let d = g(e, a, u);
|
|
2644
|
+
if (d > -1) throw new c("newlines are not allowed in inline tables", {
|
|
2645
2645
|
toml: e,
|
|
2646
|
-
ptr: d
|
|
2646
|
+
ptr: d
|
|
2647
2647
|
});
|
|
2648
2648
|
}
|
|
2649
2649
|
return [f, u];
|
|
@@ -2759,9 +2759,9 @@ function K(e, n, t) {
|
|
|
2759
2759
|
ptr: n - 1
|
|
2760
2760
|
});
|
|
2761
2761
|
if (i !== " " && i !== " ") {
|
|
2762
|
-
let f, a = l, u = !1, [d
|
|
2763
|
-
for (let m$1 = 0; m$1 < d
|
|
2764
|
-
if (m$1 && (a = u ? a[f] : a[f] = {}), f = d
|
|
2762
|
+
let f, a = l, u = !1, [d, N$4] = x(e, n - 1);
|
|
2763
|
+
for (let m$1 = 0; m$1 < d.length; m$1++) {
|
|
2764
|
+
if (m$1 && (a = u ? a[f] : a[f] = {}), f = d[m$1], (u = Object.hasOwn(a, f)) && (typeof a[f] != "object" || r$1.has(a[f]))) throw new c("trying to redefine an already defined value", {
|
|
2765
2765
|
toml: e,
|
|
2766
2766
|
ptr: n
|
|
2767
2767
|
});
|
|
@@ -2841,8 +2841,8 @@ function U(e, n, t) {
|
|
|
2841
2841
|
if (u) {
|
|
2842
2842
|
if (r$1 = f ? r$1[o] : r$1[o] = {}, i = (a = i[o]).c, l === 0 && (a.t === 1 || a.t === 2)) return null;
|
|
2843
2843
|
if (a.t === 2) {
|
|
2844
|
-
let d
|
|
2845
|
-
r$1 = r$1[d
|
|
2844
|
+
let d = r$1.length - 1;
|
|
2845
|
+
r$1 = r$1[d], i = i[d].c;
|
|
2846
2846
|
}
|
|
2847
2847
|
}
|
|
2848
2848
|
if (o = e[u], (f = Object.hasOwn(r$1, o)) && i[o]?.t === 0 && i[o]?.d) return null;
|
|
@@ -2887,20 +2887,20 @@ function X(e, n) {
|
|
|
2887
2887
|
});
|
|
2888
2888
|
u[1]++;
|
|
2889
2889
|
}
|
|
2890
|
-
let d
|
|
2891
|
-
if (!d
|
|
2890
|
+
let d = p(u[0], l, r$1, a ? 2 : 1);
|
|
2891
|
+
if (!d) throw new c("trying to redefine an already defined table or value", {
|
|
2892
2892
|
toml: e,
|
|
2893
2893
|
ptr: f
|
|
2894
2894
|
});
|
|
2895
|
-
o = d
|
|
2895
|
+
o = d[2], i = d[1], f = u[1];
|
|
2896
2896
|
} else {
|
|
2897
2897
|
let a = x(e, f), u = p(a[0], i, o, 0);
|
|
2898
2898
|
if (!u) throw new c("trying to redefine an already defined table or value", {
|
|
2899
2899
|
toml: e,
|
|
2900
2900
|
ptr: f
|
|
2901
2901
|
});
|
|
2902
|
-
let d
|
|
2903
|
-
u[1][u[0]] = d
|
|
2902
|
+
let d = b(e, a[1], void 0, t);
|
|
2903
|
+
u[1][u[0]] = d[0], f = d[1];
|
|
2904
2904
|
}
|
|
2905
2905
|
if (f = s(e, f, !0), e[f] && e[f] !== `
|
|
2906
2906
|
` && e[f] !== "\r") throw new c("each key-value declaration must be followed by an end-of-line", {
|
|
@@ -2913,8 +2913,8 @@ function X(e, n) {
|
|
|
2913
2913
|
}
|
|
2914
2914
|
function Q(e) {
|
|
2915
2915
|
const n = X(e);
|
|
2916
|
-
return N(e, n, { preserveIndentation: !1 }), n;
|
|
2916
|
+
return N$3(e, n, { preserveIndentation: !1 }), n;
|
|
2917
2917
|
}
|
|
2918
2918
|
|
|
2919
2919
|
//#endregion
|
|
2920
|
-
export { h$
|
|
2920
|
+
export { h$1 as a, Cu as i, gr as n, x$1 as o, mr as r, Q as t };
|