nitro-nightly 3.0.1-20260124-165031-9c6abf17 → 3.0.1-20260127-164246-ef01b092
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/common.mjs +2084 -3212
- package/dist/_build/rolldown.mjs +12 -25
- package/dist/_build/rollup.mjs +11 -27
- package/dist/_build/vite.build.mjs +7 -11
- package/dist/_chunks/dev.mjs +20 -42
- package/dist/_chunks/nitro.mjs +13 -92
- package/dist/_chunks/nitro2.mjs +1 -5
- package/dist/_chunks/utils.mjs +10 -24
- package/dist/_common.mjs +12 -24
- package/dist/_libs/citty.mjs +1 -13
- package/dist/_libs/commondir+is-reference.mjs +12 -22
- package/dist/_libs/compatx.mjs +1 -4
- package/dist/_libs/confbox.mjs +363 -376
- package/dist/_libs/escape-string-regexp.mjs +1 -4
- package/dist/_libs/estree-walker.mjs +4 -92
- package/dist/_libs/hasown+resolve+deepmerge.mjs +144 -230
- package/dist/_libs/httpxy.mjs +5 -21
- package/dist/_libs/klona.mjs +1 -4
- package/dist/_libs/nypm+giget+tinyexec.mjs +874 -926
- package/dist/_libs/plugin-alias.mjs +1 -5
- package/dist/_libs/plugin-inject.mjs +1 -5
- package/dist/_libs/plugin-json.mjs +1 -5
- package/dist/_libs/pluginutils+plugin-commonjs.d.mts +2 -2
- package/dist/_libs/pluginutils.mjs +1 -31
- package/dist/_libs/rc9+c12+dotenv.mjs +43 -83
- package/dist/_libs/readdirp+chokidar.mjs +184 -360
- package/dist/_libs/remapping.mjs +1 -5
- package/dist/_libs/resolve-uri+gen-mapping.mjs +12 -48
- package/dist/_libs/rou3.mjs +1 -32
- package/dist/_libs/tsconfck.mjs +21 -334
- package/dist/_libs/ultrahtml.mjs +3 -16
- package/dist/_libs/unimport+unplugin.mjs +15 -75
- package/dist/_presets.mjs +260 -445
- package/dist/builder.mjs +1 -2
- package/dist/cli/_chunks/build.mjs +1 -5
- package/dist/cli/_chunks/common.mjs +1 -4
- package/dist/cli/_chunks/dev.mjs +1 -5
- package/dist/cli/_chunks/list.mjs +1 -5
- package/dist/cli/_chunks/prepare.mjs +1 -5
- package/dist/cli/_chunks/run.mjs +1 -5
- package/dist/cli/_chunks/task.mjs +1 -5
- package/dist/cli/index.mjs +1 -5
- package/dist/types/index.d.mts +5 -5
- package/dist/types/index.mjs +1 -2
- package/dist/vite.mjs +44 -63
- package/package.json +21 -21
package/dist/_libs/confbox.mjs
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { n as __exportAll } from "../_common.mjs";
|
|
2
2
|
import { Q as N$1, X as h$1, Z as C$2 } from "../_build/common.mjs";
|
|
3
|
-
|
|
4
|
-
//#region node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.mjs
|
|
5
3
|
var json5_exports = /* @__PURE__ */ __exportAll({ parseJSON5: () => Cu });
|
|
6
|
-
function R$2(C
|
|
7
|
-
return C
|
|
4
|
+
function R$2(C) {
|
|
5
|
+
return C && C.__esModule && Object.prototype.hasOwnProperty.call(C, "default") ? C.default : C;
|
|
8
6
|
}
|
|
9
7
|
var O$1 = {}, M$2;
|
|
10
8
|
function Y$1() {
|
|
@@ -14,16 +12,16 @@ var _$1, U$2;
|
|
|
14
12
|
function T$1() {
|
|
15
13
|
if (U$2) return _$1;
|
|
16
14
|
U$2 = 1;
|
|
17
|
-
const C
|
|
15
|
+
const C = Y$1();
|
|
18
16
|
return _$1 = {
|
|
19
17
|
isSpaceSeparator(r) {
|
|
20
|
-
return typeof r == "string" && C
|
|
18
|
+
return typeof r == "string" && C.Space_Separator.test(r);
|
|
21
19
|
},
|
|
22
20
|
isIdStartChar(r) {
|
|
23
|
-
return typeof r == "string" && (r >= "a" && r <= "z" || r >= "A" && r <= "Z" || r === "$" || r === "_" || C
|
|
21
|
+
return typeof r == "string" && (r >= "a" && r <= "z" || r >= "A" && r <= "Z" || r === "$" || r === "_" || C.ID_Start.test(r));
|
|
24
22
|
},
|
|
25
23
|
isIdContinueChar(r) {
|
|
26
|
-
return typeof r == "string" && (r >= "a" && r <= "z" || r >= "A" && r <= "Z" || r >= "0" && r <= "9" || r === "$" || r === "_" || r === "" || r === "" || C
|
|
24
|
+
return typeof r == "string" && (r >= "a" && r <= "z" || r >= "A" && r <= "Z" || r >= "0" && r <= "9" || r === "$" || r === "_" || r === "" || r === "" || C.ID_Continue.test(r));
|
|
27
25
|
},
|
|
28
26
|
isDigit(r) {
|
|
29
27
|
return typeof r == "string" && /[0-9]/.test(r);
|
|
@@ -37,56 +35,56 @@ var q$1, Z$2;
|
|
|
37
35
|
function uu() {
|
|
38
36
|
if (Z$2) return q$1;
|
|
39
37
|
Z$2 = 1;
|
|
40
|
-
const C
|
|
41
|
-
let r, s
|
|
42
|
-
q$1 = function(a, g
|
|
43
|
-
r = String(a), s
|
|
38
|
+
const C = T$1();
|
|
39
|
+
let r, s, c, d, h, o, f, S, m;
|
|
40
|
+
q$1 = function(a, g) {
|
|
41
|
+
r = String(a), s = "start", c = [], d = 0, h = 1, o = 0, f = void 0, S = void 0, m = void 0;
|
|
44
42
|
do
|
|
45
|
-
f = E
|
|
43
|
+
f = E(), Q[s]();
|
|
46
44
|
while (f.type !== "eof");
|
|
47
|
-
return typeof g
|
|
45
|
+
return typeof g == "function" ? v({ "": m }, "", g) : m;
|
|
48
46
|
};
|
|
49
|
-
function v
|
|
50
|
-
const y
|
|
51
|
-
if (y
|
|
52
|
-
const I
|
|
53
|
-
H
|
|
54
|
-
value: H
|
|
47
|
+
function v(D, a, g) {
|
|
48
|
+
const y = D[a];
|
|
49
|
+
if (y != null && typeof y == "object") if (Array.isArray(y)) for (let P = 0; P < y.length; P++) {
|
|
50
|
+
const I = String(P), H = v(y, I, g);
|
|
51
|
+
H === void 0 ? delete y[I] : Object.defineProperty(y, I, {
|
|
52
|
+
value: H,
|
|
55
53
|
writable: !0,
|
|
56
54
|
enumerable: !0,
|
|
57
55
|
configurable: !0
|
|
58
56
|
});
|
|
59
57
|
}
|
|
60
|
-
else for (const P
|
|
61
|
-
const I
|
|
62
|
-
I
|
|
63
|
-
value: I
|
|
58
|
+
else for (const P in y) {
|
|
59
|
+
const I = v(y, P, g);
|
|
60
|
+
I === void 0 ? delete y[P] : Object.defineProperty(y, P, {
|
|
61
|
+
value: I,
|
|
64
62
|
writable: !0,
|
|
65
63
|
enumerable: !0,
|
|
66
64
|
configurable: !0
|
|
67
65
|
});
|
|
68
66
|
}
|
|
69
|
-
return g
|
|
70
|
-
}
|
|
71
|
-
let t, e, x
|
|
72
|
-
function E
|
|
73
|
-
for (t = "default", e = "", x
|
|
74
|
-
A
|
|
75
|
-
const D
|
|
76
|
-
if (D
|
|
67
|
+
return g.call(D, a, y);
|
|
68
|
+
}
|
|
69
|
+
let t, e, x, w, A;
|
|
70
|
+
function E() {
|
|
71
|
+
for (t = "default", e = "", x = !1, w = 1;;) {
|
|
72
|
+
A = n();
|
|
73
|
+
const D = l[t]();
|
|
74
|
+
if (D) return D;
|
|
77
75
|
}
|
|
78
76
|
}
|
|
79
77
|
function n() {
|
|
80
78
|
if (r[d]) return String.fromCodePoint(r.codePointAt(d));
|
|
81
79
|
}
|
|
82
80
|
function u() {
|
|
83
|
-
const D
|
|
84
|
-
return D
|
|
85
|
-
` ? (h
|
|
81
|
+
const D = n();
|
|
82
|
+
return D === `
|
|
83
|
+
` ? (h++, o = 0) : D ? o += D.length : o++, D && (d += D.length), D;
|
|
86
84
|
}
|
|
87
85
|
const l = {
|
|
88
86
|
default() {
|
|
89
|
-
switch (A
|
|
87
|
+
switch (A) {
|
|
90
88
|
case " ":
|
|
91
89
|
case "\v":
|
|
92
90
|
case "\f":
|
|
@@ -103,16 +101,16 @@ function uu() {
|
|
|
103
101
|
case "/":
|
|
104
102
|
u(), t = "comment";
|
|
105
103
|
return;
|
|
106
|
-
case void 0: return u(), F
|
|
104
|
+
case void 0: return u(), F("eof");
|
|
107
105
|
}
|
|
108
|
-
if (C
|
|
106
|
+
if (C.isSpaceSeparator(A)) {
|
|
109
107
|
u();
|
|
110
108
|
return;
|
|
111
109
|
}
|
|
112
|
-
return l[s
|
|
110
|
+
return l[s]();
|
|
113
111
|
},
|
|
114
112
|
comment() {
|
|
115
|
-
switch (A
|
|
113
|
+
switch (A) {
|
|
116
114
|
case "*":
|
|
117
115
|
u(), t = "multiLineComment";
|
|
118
116
|
return;
|
|
@@ -120,31 +118,31 @@ function uu() {
|
|
|
120
118
|
u(), t = "singleLineComment";
|
|
121
119
|
return;
|
|
122
120
|
}
|
|
123
|
-
throw B
|
|
121
|
+
throw B(u());
|
|
124
122
|
},
|
|
125
123
|
multiLineComment() {
|
|
126
|
-
switch (A
|
|
124
|
+
switch (A) {
|
|
127
125
|
case "*":
|
|
128
126
|
u(), t = "multiLineCommentAsterisk";
|
|
129
127
|
return;
|
|
130
|
-
case void 0: throw B
|
|
128
|
+
case void 0: throw B(u());
|
|
131
129
|
}
|
|
132
130
|
u();
|
|
133
131
|
},
|
|
134
132
|
multiLineCommentAsterisk() {
|
|
135
|
-
switch (A
|
|
133
|
+
switch (A) {
|
|
136
134
|
case "*":
|
|
137
135
|
u();
|
|
138
136
|
return;
|
|
139
137
|
case "/":
|
|
140
138
|
u(), t = "default";
|
|
141
139
|
return;
|
|
142
|
-
case void 0: throw B
|
|
140
|
+
case void 0: throw B(u());
|
|
143
141
|
}
|
|
144
142
|
u(), t = "multiLineComment";
|
|
145
143
|
},
|
|
146
144
|
singleLineComment() {
|
|
147
|
-
switch (A
|
|
145
|
+
switch (A) {
|
|
148
146
|
case `
|
|
149
147
|
`:
|
|
150
148
|
case "\r":
|
|
@@ -152,20 +150,20 @@ function uu() {
|
|
|
152
150
|
case "\u2029":
|
|
153
151
|
u(), t = "default";
|
|
154
152
|
return;
|
|
155
|
-
case void 0: return u(), F
|
|
153
|
+
case void 0: return u(), F("eof");
|
|
156
154
|
}
|
|
157
155
|
u();
|
|
158
156
|
},
|
|
159
157
|
value() {
|
|
160
|
-
switch (A
|
|
158
|
+
switch (A) {
|
|
161
159
|
case "{":
|
|
162
|
-
case "[": return F
|
|
163
|
-
case "n": return u(), i("ull"), F
|
|
164
|
-
case "t": return u(), i("rue"), F
|
|
165
|
-
case "f": return u(), i("alse"), F
|
|
160
|
+
case "[": return F("punctuator", u());
|
|
161
|
+
case "n": return u(), i("ull"), F("null", null);
|
|
162
|
+
case "t": return u(), i("rue"), F("boolean", !0);
|
|
163
|
+
case "f": return u(), i("alse"), F("boolean", !1);
|
|
166
164
|
case "-":
|
|
167
165
|
case "+":
|
|
168
|
-
u() === "-" && (w
|
|
166
|
+
u() === "-" && (w = -1), t = "sign";
|
|
169
167
|
return;
|
|
170
168
|
case ".":
|
|
171
169
|
e = u(), t = "decimalPointLeading";
|
|
@@ -184,30 +182,30 @@ function uu() {
|
|
|
184
182
|
case "9":
|
|
185
183
|
e = u(), t = "decimalInteger";
|
|
186
184
|
return;
|
|
187
|
-
case "I": return u(), i("nfinity"), F
|
|
188
|
-
case "N": return u(), i("aN"), F
|
|
185
|
+
case "I": return u(), i("nfinity"), F("numeric", Infinity);
|
|
186
|
+
case "N": return u(), i("aN"), F("numeric", NaN);
|
|
189
187
|
case "\"":
|
|
190
188
|
case "'":
|
|
191
|
-
x
|
|
189
|
+
x = u() === "\"", e = "", t = "string";
|
|
192
190
|
return;
|
|
193
191
|
}
|
|
194
|
-
throw B
|
|
192
|
+
throw B(u());
|
|
195
193
|
},
|
|
196
194
|
identifierNameStartEscape() {
|
|
197
|
-
if (A
|
|
195
|
+
if (A !== "u") throw B(u());
|
|
198
196
|
u();
|
|
199
|
-
const D
|
|
200
|
-
switch (D
|
|
197
|
+
const D = $();
|
|
198
|
+
switch (D) {
|
|
201
199
|
case "$":
|
|
202
200
|
case "_": break;
|
|
203
201
|
default:
|
|
204
|
-
if (!C
|
|
202
|
+
if (!C.isIdStartChar(D)) throw L();
|
|
205
203
|
break;
|
|
206
204
|
}
|
|
207
|
-
e += D
|
|
205
|
+
e += D, t = "identifierName";
|
|
208
206
|
},
|
|
209
207
|
identifierName() {
|
|
210
|
-
switch (A
|
|
208
|
+
switch (A) {
|
|
211
209
|
case "$":
|
|
212
210
|
case "_":
|
|
213
211
|
case "":
|
|
@@ -218,29 +216,29 @@ function uu() {
|
|
|
218
216
|
u(), t = "identifierNameEscape";
|
|
219
217
|
return;
|
|
220
218
|
}
|
|
221
|
-
if (C
|
|
219
|
+
if (C.isIdContinueChar(A)) {
|
|
222
220
|
e += u();
|
|
223
221
|
return;
|
|
224
222
|
}
|
|
225
|
-
return F
|
|
223
|
+
return F("identifier", e);
|
|
226
224
|
},
|
|
227
225
|
identifierNameEscape() {
|
|
228
|
-
if (A
|
|
226
|
+
if (A !== "u") throw B(u());
|
|
229
227
|
u();
|
|
230
|
-
const D
|
|
231
|
-
switch (D
|
|
228
|
+
const D = $();
|
|
229
|
+
switch (D) {
|
|
232
230
|
case "$":
|
|
233
231
|
case "_":
|
|
234
232
|
case "":
|
|
235
233
|
case "": break;
|
|
236
234
|
default:
|
|
237
|
-
if (!C
|
|
235
|
+
if (!C.isIdContinueChar(D)) throw L();
|
|
238
236
|
break;
|
|
239
237
|
}
|
|
240
|
-
e += D
|
|
238
|
+
e += D, t = "identifierName";
|
|
241
239
|
},
|
|
242
240
|
sign() {
|
|
243
|
-
switch (A
|
|
241
|
+
switch (A) {
|
|
244
242
|
case ".":
|
|
245
243
|
e = u(), t = "decimalPointLeading";
|
|
246
244
|
return;
|
|
@@ -258,13 +256,13 @@ function uu() {
|
|
|
258
256
|
case "9":
|
|
259
257
|
e = u(), t = "decimalInteger";
|
|
260
258
|
return;
|
|
261
|
-
case "I": return u(), i("nfinity"), F
|
|
262
|
-
case "N": return u(), i("aN"), F
|
|
259
|
+
case "I": return u(), i("nfinity"), F("numeric", w * Infinity);
|
|
260
|
+
case "N": return u(), i("aN"), F("numeric", NaN);
|
|
263
261
|
}
|
|
264
|
-
throw B
|
|
262
|
+
throw B(u());
|
|
265
263
|
},
|
|
266
264
|
zero() {
|
|
267
|
-
switch (A
|
|
265
|
+
switch (A) {
|
|
268
266
|
case ".":
|
|
269
267
|
e += u(), t = "decimalPoint";
|
|
270
268
|
return;
|
|
@@ -277,10 +275,10 @@ function uu() {
|
|
|
277
275
|
e += u(), t = "hexadecimal";
|
|
278
276
|
return;
|
|
279
277
|
}
|
|
280
|
-
return F
|
|
278
|
+
return F("numeric", w * 0);
|
|
281
279
|
},
|
|
282
280
|
decimalInteger() {
|
|
283
|
-
switch (A
|
|
281
|
+
switch (A) {
|
|
284
282
|
case ".":
|
|
285
283
|
e += u(), t = "decimalPoint";
|
|
286
284
|
return;
|
|
@@ -289,119 +287,119 @@ function uu() {
|
|
|
289
287
|
e += u(), t = "decimalExponent";
|
|
290
288
|
return;
|
|
291
289
|
}
|
|
292
|
-
if (C
|
|
290
|
+
if (C.isDigit(A)) {
|
|
293
291
|
e += u();
|
|
294
292
|
return;
|
|
295
293
|
}
|
|
296
|
-
return F
|
|
294
|
+
return F("numeric", w * Number(e));
|
|
297
295
|
},
|
|
298
296
|
decimalPointLeading() {
|
|
299
|
-
if (C
|
|
297
|
+
if (C.isDigit(A)) {
|
|
300
298
|
e += u(), t = "decimalFraction";
|
|
301
299
|
return;
|
|
302
300
|
}
|
|
303
|
-
throw B
|
|
301
|
+
throw B(u());
|
|
304
302
|
},
|
|
305
303
|
decimalPoint() {
|
|
306
|
-
switch (A
|
|
304
|
+
switch (A) {
|
|
307
305
|
case "e":
|
|
308
306
|
case "E":
|
|
309
307
|
e += u(), t = "decimalExponent";
|
|
310
308
|
return;
|
|
311
309
|
}
|
|
312
|
-
if (C
|
|
310
|
+
if (C.isDigit(A)) {
|
|
313
311
|
e += u(), t = "decimalFraction";
|
|
314
312
|
return;
|
|
315
313
|
}
|
|
316
|
-
return F
|
|
314
|
+
return F("numeric", w * Number(e));
|
|
317
315
|
},
|
|
318
316
|
decimalFraction() {
|
|
319
|
-
switch (A
|
|
317
|
+
switch (A) {
|
|
320
318
|
case "e":
|
|
321
319
|
case "E":
|
|
322
320
|
e += u(), t = "decimalExponent";
|
|
323
321
|
return;
|
|
324
322
|
}
|
|
325
|
-
if (C
|
|
323
|
+
if (C.isDigit(A)) {
|
|
326
324
|
e += u();
|
|
327
325
|
return;
|
|
328
326
|
}
|
|
329
|
-
return F
|
|
327
|
+
return F("numeric", w * Number(e));
|
|
330
328
|
},
|
|
331
329
|
decimalExponent() {
|
|
332
|
-
switch (A
|
|
330
|
+
switch (A) {
|
|
333
331
|
case "+":
|
|
334
332
|
case "-":
|
|
335
333
|
e += u(), t = "decimalExponentSign";
|
|
336
334
|
return;
|
|
337
335
|
}
|
|
338
|
-
if (C
|
|
336
|
+
if (C.isDigit(A)) {
|
|
339
337
|
e += u(), t = "decimalExponentInteger";
|
|
340
338
|
return;
|
|
341
339
|
}
|
|
342
|
-
throw B
|
|
340
|
+
throw B(u());
|
|
343
341
|
},
|
|
344
342
|
decimalExponentSign() {
|
|
345
|
-
if (C
|
|
343
|
+
if (C.isDigit(A)) {
|
|
346
344
|
e += u(), t = "decimalExponentInteger";
|
|
347
345
|
return;
|
|
348
346
|
}
|
|
349
|
-
throw B
|
|
347
|
+
throw B(u());
|
|
350
348
|
},
|
|
351
349
|
decimalExponentInteger() {
|
|
352
|
-
if (C
|
|
350
|
+
if (C.isDigit(A)) {
|
|
353
351
|
e += u();
|
|
354
352
|
return;
|
|
355
353
|
}
|
|
356
|
-
return F
|
|
354
|
+
return F("numeric", w * Number(e));
|
|
357
355
|
},
|
|
358
356
|
hexadecimal() {
|
|
359
|
-
if (C
|
|
357
|
+
if (C.isHexDigit(A)) {
|
|
360
358
|
e += u(), t = "hexadecimalInteger";
|
|
361
359
|
return;
|
|
362
360
|
}
|
|
363
|
-
throw B
|
|
361
|
+
throw B(u());
|
|
364
362
|
},
|
|
365
363
|
hexadecimalInteger() {
|
|
366
|
-
if (C
|
|
364
|
+
if (C.isHexDigit(A)) {
|
|
367
365
|
e += u();
|
|
368
366
|
return;
|
|
369
367
|
}
|
|
370
|
-
return F
|
|
368
|
+
return F("numeric", w * Number(e));
|
|
371
369
|
},
|
|
372
370
|
string() {
|
|
373
|
-
switch (A
|
|
371
|
+
switch (A) {
|
|
374
372
|
case "\\":
|
|
375
|
-
u(), e += p
|
|
373
|
+
u(), e += p();
|
|
376
374
|
return;
|
|
377
375
|
case "\"":
|
|
378
|
-
if (x
|
|
376
|
+
if (x) return u(), F("string", e);
|
|
379
377
|
e += u();
|
|
380
378
|
return;
|
|
381
379
|
case "'":
|
|
382
|
-
if (!x
|
|
380
|
+
if (!x) return u(), F("string", e);
|
|
383
381
|
e += u();
|
|
384
382
|
return;
|
|
385
383
|
case `
|
|
386
384
|
`:
|
|
387
|
-
case "\r": throw B
|
|
385
|
+
case "\r": throw B(u());
|
|
388
386
|
case "\u2028":
|
|
389
387
|
case "\u2029":
|
|
390
|
-
X
|
|
388
|
+
X(A);
|
|
391
389
|
break;
|
|
392
|
-
case void 0: throw B
|
|
390
|
+
case void 0: throw B(u());
|
|
393
391
|
}
|
|
394
392
|
e += u();
|
|
395
393
|
},
|
|
396
394
|
start() {
|
|
397
|
-
switch (A
|
|
395
|
+
switch (A) {
|
|
398
396
|
case "{":
|
|
399
|
-
case "[": return F
|
|
397
|
+
case "[": return F("punctuator", u());
|
|
400
398
|
}
|
|
401
399
|
t = "value";
|
|
402
400
|
},
|
|
403
401
|
beforePropertyName() {
|
|
404
|
-
switch (A
|
|
402
|
+
switch (A) {
|
|
405
403
|
case "$":
|
|
406
404
|
case "_":
|
|
407
405
|
e = u(), t = "identifierName";
|
|
@@ -409,62 +407,62 @@ function uu() {
|
|
|
409
407
|
case "\\":
|
|
410
408
|
u(), t = "identifierNameStartEscape";
|
|
411
409
|
return;
|
|
412
|
-
case "}": return F
|
|
410
|
+
case "}": return F("punctuator", u());
|
|
413
411
|
case "\"":
|
|
414
412
|
case "'":
|
|
415
|
-
x
|
|
413
|
+
x = u() === "\"", t = "string";
|
|
416
414
|
return;
|
|
417
415
|
}
|
|
418
|
-
if (C
|
|
416
|
+
if (C.isIdStartChar(A)) {
|
|
419
417
|
e += u(), t = "identifierName";
|
|
420
418
|
return;
|
|
421
419
|
}
|
|
422
|
-
throw B
|
|
420
|
+
throw B(u());
|
|
423
421
|
},
|
|
424
422
|
afterPropertyName() {
|
|
425
|
-
if (A
|
|
426
|
-
throw B
|
|
423
|
+
if (A === ":") return F("punctuator", u());
|
|
424
|
+
throw B(u());
|
|
427
425
|
},
|
|
428
426
|
beforePropertyValue() {
|
|
429
427
|
t = "value";
|
|
430
428
|
},
|
|
431
429
|
afterPropertyValue() {
|
|
432
|
-
switch (A
|
|
430
|
+
switch (A) {
|
|
433
431
|
case ",":
|
|
434
|
-
case "}": return F
|
|
432
|
+
case "}": return F("punctuator", u());
|
|
435
433
|
}
|
|
436
|
-
throw B
|
|
434
|
+
throw B(u());
|
|
437
435
|
},
|
|
438
436
|
beforeArrayValue() {
|
|
439
|
-
if (A
|
|
437
|
+
if (A === "]") return F("punctuator", u());
|
|
440
438
|
t = "value";
|
|
441
439
|
},
|
|
442
440
|
afterArrayValue() {
|
|
443
|
-
switch (A
|
|
441
|
+
switch (A) {
|
|
444
442
|
case ",":
|
|
445
|
-
case "]": return F
|
|
443
|
+
case "]": return F("punctuator", u());
|
|
446
444
|
}
|
|
447
|
-
throw B
|
|
445
|
+
throw B(u());
|
|
448
446
|
},
|
|
449
447
|
end() {
|
|
450
|
-
throw B
|
|
448
|
+
throw B(u());
|
|
451
449
|
}
|
|
452
450
|
};
|
|
453
|
-
function F
|
|
451
|
+
function F(D, a) {
|
|
454
452
|
return {
|
|
455
|
-
type: D
|
|
453
|
+
type: D,
|
|
456
454
|
value: a,
|
|
457
|
-
line: h
|
|
455
|
+
line: h,
|
|
458
456
|
column: o
|
|
459
457
|
};
|
|
460
458
|
}
|
|
461
|
-
function i(D
|
|
462
|
-
for (const a of D
|
|
463
|
-
if (n() !== a) throw B
|
|
459
|
+
function i(D) {
|
|
460
|
+
for (const a of D) {
|
|
461
|
+
if (n() !== a) throw B(u());
|
|
464
462
|
u();
|
|
465
463
|
}
|
|
466
464
|
}
|
|
467
|
-
function p
|
|
465
|
+
function p() {
|
|
468
466
|
switch (n()) {
|
|
469
467
|
case "b": return u(), "\b";
|
|
470
468
|
case "f": return u(), "\f";
|
|
@@ -474,10 +472,10 @@ function uu() {
|
|
|
474
472
|
case "t": return u(), " ";
|
|
475
473
|
case "v": return u(), "\v";
|
|
476
474
|
case "0":
|
|
477
|
-
if (u(), C
|
|
475
|
+
if (u(), C.isDigit(n())) throw B(u());
|
|
478
476
|
return "\0";
|
|
479
|
-
case "x": return u(), b
|
|
480
|
-
case "u": return u(),
|
|
477
|
+
case "x": return u(), b();
|
|
478
|
+
case "u": return u(), $();
|
|
481
479
|
case `
|
|
482
480
|
`:
|
|
483
481
|
case "\u2028":
|
|
@@ -492,88 +490,88 @@ function uu() {
|
|
|
492
490
|
case "6":
|
|
493
491
|
case "7":
|
|
494
492
|
case "8":
|
|
495
|
-
case "9": throw B
|
|
496
|
-
case void 0: throw B
|
|
493
|
+
case "9": throw B(u());
|
|
494
|
+
case void 0: throw B(u());
|
|
497
495
|
}
|
|
498
496
|
return u();
|
|
499
497
|
}
|
|
500
|
-
function b
|
|
501
|
-
let D
|
|
502
|
-
if (!C
|
|
503
|
-
return D
|
|
498
|
+
function b() {
|
|
499
|
+
let D = "", a = n();
|
|
500
|
+
if (!C.isHexDigit(a) || (D += u(), a = n(), !C.isHexDigit(a))) throw B(u());
|
|
501
|
+
return D += u(), String.fromCodePoint(parseInt(D, 16));
|
|
504
502
|
}
|
|
505
|
-
function
|
|
506
|
-
let D
|
|
503
|
+
function $() {
|
|
504
|
+
let D = "", a = 4;
|
|
507
505
|
for (; a-- > 0;) {
|
|
508
|
-
const g
|
|
509
|
-
if (!C
|
|
510
|
-
D
|
|
506
|
+
const g = n();
|
|
507
|
+
if (!C.isHexDigit(g)) throw B(u());
|
|
508
|
+
D += u();
|
|
511
509
|
}
|
|
512
|
-
return String.fromCodePoint(parseInt(D
|
|
510
|
+
return String.fromCodePoint(parseInt(D, 16));
|
|
513
511
|
}
|
|
514
|
-
const Q
|
|
512
|
+
const Q = {
|
|
515
513
|
start() {
|
|
516
|
-
if (f.type === "eof") throw N
|
|
517
|
-
V
|
|
514
|
+
if (f.type === "eof") throw N();
|
|
515
|
+
V();
|
|
518
516
|
},
|
|
519
517
|
beforePropertyName() {
|
|
520
518
|
switch (f.type) {
|
|
521
519
|
case "identifier":
|
|
522
520
|
case "string":
|
|
523
|
-
S
|
|
521
|
+
S = f.value, s = "afterPropertyName";
|
|
524
522
|
return;
|
|
525
523
|
case "punctuator":
|
|
526
|
-
j
|
|
524
|
+
j();
|
|
527
525
|
return;
|
|
528
|
-
case "eof": throw N
|
|
526
|
+
case "eof": throw N();
|
|
529
527
|
}
|
|
530
528
|
},
|
|
531
529
|
afterPropertyName() {
|
|
532
|
-
if (f.type === "eof") throw N
|
|
533
|
-
s
|
|
530
|
+
if (f.type === "eof") throw N();
|
|
531
|
+
s = "beforePropertyValue";
|
|
534
532
|
},
|
|
535
533
|
beforePropertyValue() {
|
|
536
|
-
if (f.type === "eof") throw N
|
|
537
|
-
V
|
|
534
|
+
if (f.type === "eof") throw N();
|
|
535
|
+
V();
|
|
538
536
|
},
|
|
539
537
|
beforeArrayValue() {
|
|
540
|
-
if (f.type === "eof") throw N
|
|
538
|
+
if (f.type === "eof") throw N();
|
|
541
539
|
if (f.type === "punctuator" && f.value === "]") {
|
|
542
|
-
j
|
|
540
|
+
j();
|
|
543
541
|
return;
|
|
544
542
|
}
|
|
545
|
-
V
|
|
543
|
+
V();
|
|
546
544
|
},
|
|
547
545
|
afterPropertyValue() {
|
|
548
|
-
if (f.type === "eof") throw N
|
|
546
|
+
if (f.type === "eof") throw N();
|
|
549
547
|
switch (f.value) {
|
|
550
548
|
case ",":
|
|
551
|
-
s
|
|
549
|
+
s = "beforePropertyName";
|
|
552
550
|
return;
|
|
553
|
-
case "}": j
|
|
551
|
+
case "}": j();
|
|
554
552
|
}
|
|
555
553
|
},
|
|
556
554
|
afterArrayValue() {
|
|
557
|
-
if (f.type === "eof") throw N
|
|
555
|
+
if (f.type === "eof") throw N();
|
|
558
556
|
switch (f.value) {
|
|
559
557
|
case ",":
|
|
560
|
-
s
|
|
558
|
+
s = "beforeArrayValue";
|
|
561
559
|
return;
|
|
562
|
-
case "]": j
|
|
560
|
+
case "]": j();
|
|
563
561
|
}
|
|
564
562
|
},
|
|
565
563
|
end() {}
|
|
566
564
|
};
|
|
567
|
-
function V
|
|
568
|
-
let D
|
|
565
|
+
function V() {
|
|
566
|
+
let D;
|
|
569
567
|
switch (f.type) {
|
|
570
568
|
case "punctuator":
|
|
571
569
|
switch (f.value) {
|
|
572
570
|
case "{":
|
|
573
|
-
D
|
|
571
|
+
D = {};
|
|
574
572
|
break;
|
|
575
573
|
case "[":
|
|
576
|
-
D
|
|
574
|
+
D = [];
|
|
577
575
|
break;
|
|
578
576
|
}
|
|
579
577
|
break;
|
|
@@ -581,43 +579,43 @@ function uu() {
|
|
|
581
579
|
case "boolean":
|
|
582
580
|
case "numeric":
|
|
583
581
|
case "string":
|
|
584
|
-
D
|
|
582
|
+
D = f.value;
|
|
585
583
|
break;
|
|
586
584
|
}
|
|
587
|
-
if (m === void 0) m = D
|
|
585
|
+
if (m === void 0) m = D;
|
|
588
586
|
else {
|
|
589
|
-
const a = c
|
|
590
|
-
Array.isArray(a) ? a.push(D
|
|
591
|
-
value: D
|
|
587
|
+
const a = c[c.length - 1];
|
|
588
|
+
Array.isArray(a) ? a.push(D) : Object.defineProperty(a, S, {
|
|
589
|
+
value: D,
|
|
592
590
|
writable: !0,
|
|
593
591
|
enumerable: !0,
|
|
594
592
|
configurable: !0
|
|
595
593
|
});
|
|
596
594
|
}
|
|
597
|
-
if (D
|
|
595
|
+
if (D !== null && typeof D == "object") c.push(D), Array.isArray(D) ? s = "beforeArrayValue" : s = "beforePropertyName";
|
|
598
596
|
else {
|
|
599
|
-
const a = c
|
|
600
|
-
a == null ? s
|
|
597
|
+
const a = c[c.length - 1];
|
|
598
|
+
a == null ? s = "end" : Array.isArray(a) ? s = "afterArrayValue" : s = "afterPropertyValue";
|
|
601
599
|
}
|
|
602
600
|
}
|
|
603
|
-
function j
|
|
604
|
-
c
|
|
605
|
-
const D
|
|
606
|
-
D
|
|
601
|
+
function j() {
|
|
602
|
+
c.pop();
|
|
603
|
+
const D = c[c.length - 1];
|
|
604
|
+
D == null ? s = "end" : Array.isArray(D) ? s = "afterArrayValue" : s = "afterPropertyValue";
|
|
607
605
|
}
|
|
608
|
-
function B
|
|
609
|
-
return k
|
|
606
|
+
function B(D) {
|
|
607
|
+
return k(D === void 0 ? `JSON5: invalid end of input at ${h}:${o}` : `JSON5: invalid character '${z(D)}' at ${h}:${o}`);
|
|
610
608
|
}
|
|
611
|
-
function N
|
|
612
|
-
return k
|
|
609
|
+
function N() {
|
|
610
|
+
return k(`JSON5: invalid end of input at ${h}:${o}`);
|
|
613
611
|
}
|
|
614
|
-
function L
|
|
615
|
-
return o -= 5, k
|
|
612
|
+
function L() {
|
|
613
|
+
return o -= 5, k(`JSON5: invalid identifier character at ${h}:${o}`);
|
|
616
614
|
}
|
|
617
|
-
function X
|
|
618
|
-
console.warn(`JSON5: '${z
|
|
615
|
+
function X(D) {
|
|
616
|
+
console.warn(`JSON5: '${z(D)}' in strings is not valid ECMAScript; consider escaping`);
|
|
619
617
|
}
|
|
620
|
-
function z
|
|
618
|
+
function z(D) {
|
|
621
619
|
const a = {
|
|
622
620
|
"'": "\\'",
|
|
623
621
|
"\"": "\\\"",
|
|
@@ -632,16 +630,16 @@ function uu() {
|
|
|
632
630
|
"\u2028": "\\u2028",
|
|
633
631
|
"\u2029": "\\u2029"
|
|
634
632
|
};
|
|
635
|
-
if (a[D
|
|
636
|
-
if (D
|
|
637
|
-
const g
|
|
638
|
-
return "\\x" + ("00" + g
|
|
633
|
+
if (a[D]) return a[D];
|
|
634
|
+
if (D < " ") {
|
|
635
|
+
const g = D.charCodeAt(0).toString(16);
|
|
636
|
+
return "\\x" + ("00" + g).substring(g.length);
|
|
639
637
|
}
|
|
640
|
-
return D
|
|
638
|
+
return D;
|
|
641
639
|
}
|
|
642
|
-
function k
|
|
643
|
-
const a = new SyntaxError(D
|
|
644
|
-
return a.lineNumber = h
|
|
640
|
+
function k(D) {
|
|
641
|
+
const a = new SyntaxError(D);
|
|
642
|
+
return a.lineNumber = h, a.columnNumber = o, a;
|
|
645
643
|
}
|
|
646
644
|
return q$1;
|
|
647
645
|
}
|
|
@@ -650,31 +648,31 @@ var J$1, K$2;
|
|
|
650
648
|
function tu() {
|
|
651
649
|
if (K$2) return J$1;
|
|
652
650
|
K$2 = 1;
|
|
653
|
-
const C
|
|
654
|
-
return J$1 = function(s
|
|
655
|
-
const h
|
|
656
|
-
let o = "", f, S
|
|
657
|
-
if (c
|
|
658
|
-
else if (Array.isArray(c
|
|
651
|
+
const C = T$1();
|
|
652
|
+
return J$1 = function(s, c, d) {
|
|
653
|
+
const h = [];
|
|
654
|
+
let o = "", f, S, m = "", v;
|
|
655
|
+
if (c != null && typeof c == "object" && !Array.isArray(c) && (d = c.space, v = c.quote, c = c.replacer), typeof c == "function") S = c;
|
|
656
|
+
else if (Array.isArray(c)) {
|
|
659
657
|
f = [];
|
|
660
|
-
for (const E
|
|
658
|
+
for (const E of c) {
|
|
661
659
|
let n;
|
|
662
|
-
typeof E
|
|
660
|
+
typeof E == "string" ? n = E : (typeof E == "number" || E instanceof String || E instanceof Number) && (n = String(E)), n !== void 0 && f.indexOf(n) < 0 && f.push(n);
|
|
663
661
|
}
|
|
664
662
|
}
|
|
665
|
-
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 = " ".substr(0, d)) : typeof d == "string" && (m = d.substr(0, 10)), t("", { "": s
|
|
666
|
-
function t(E
|
|
667
|
-
let u = n[E
|
|
668
|
-
switch (u != null && (typeof u.toJSON5 == "function" ? u = u.toJSON5(E
|
|
663
|
+
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 = " ".substr(0, d)) : typeof d == "string" && (m = d.substr(0, 10)), t("", { "": s });
|
|
664
|
+
function t(E, n) {
|
|
665
|
+
let u = n[E];
|
|
666
|
+
switch (u != null && (typeof u.toJSON5 == "function" ? u = u.toJSON5(E) : typeof u.toJSON == "function" && (u = u.toJSON(E))), S && (u = S.call(n, E, u)), u instanceof Number ? u = Number(u) : u instanceof String ? u = String(u) : u instanceof Boolean && (u = u.valueOf()), u) {
|
|
669
667
|
case null: return "null";
|
|
670
668
|
case !0: return "true";
|
|
671
669
|
case !1: return "false";
|
|
672
670
|
}
|
|
673
671
|
if (typeof u == "string") return e(u);
|
|
674
672
|
if (typeof u == "number") return String(u);
|
|
675
|
-
if (typeof u == "object") return Array.isArray(u) ? A
|
|
673
|
+
if (typeof u == "object") return Array.isArray(u) ? A(u) : x(u);
|
|
676
674
|
}
|
|
677
|
-
function e(E
|
|
675
|
+
function e(E) {
|
|
678
676
|
const n = {
|
|
679
677
|
"'": .1,
|
|
680
678
|
"\"": .2
|
|
@@ -693,99 +691,96 @@ function tu() {
|
|
|
693
691
|
"\u2029": "\\u2029"
|
|
694
692
|
};
|
|
695
693
|
let l = "";
|
|
696
|
-
for (let i = 0; i < E
|
|
697
|
-
const p
|
|
698
|
-
switch (p
|
|
694
|
+
for (let i = 0; i < E.length; i++) {
|
|
695
|
+
const p = E[i];
|
|
696
|
+
switch (p) {
|
|
699
697
|
case "'":
|
|
700
698
|
case "\"":
|
|
701
|
-
n[p
|
|
699
|
+
n[p]++, l += p;
|
|
702
700
|
continue;
|
|
703
|
-
case "\0": if (C
|
|
701
|
+
case "\0": if (C.isDigit(E[i + 1])) {
|
|
704
702
|
l += "\\x00";
|
|
705
703
|
continue;
|
|
706
704
|
}
|
|
707
705
|
}
|
|
708
|
-
if (u[p
|
|
709
|
-
l += u[p
|
|
706
|
+
if (u[p]) {
|
|
707
|
+
l += u[p];
|
|
710
708
|
continue;
|
|
711
709
|
}
|
|
712
|
-
if (p
|
|
713
|
-
let b
|
|
714
|
-
l += "\\x" + ("00" + b
|
|
710
|
+
if (p < " ") {
|
|
711
|
+
let b = p.charCodeAt(0).toString(16);
|
|
712
|
+
l += "\\x" + ("00" + b).substring(b.length);
|
|
715
713
|
continue;
|
|
716
714
|
}
|
|
717
|
-
l += p
|
|
715
|
+
l += p;
|
|
718
716
|
}
|
|
719
|
-
const F
|
|
720
|
-
return l = l.replace(new RegExp(F
|
|
717
|
+
const F = v || Object.keys(n).reduce((i, p) => n[i] < n[p] ? i : p);
|
|
718
|
+
return l = l.replace(new RegExp(F, "g"), u[F]), F + l + F;
|
|
721
719
|
}
|
|
722
|
-
function x
|
|
723
|
-
if (h
|
|
724
|
-
h
|
|
720
|
+
function x(E) {
|
|
721
|
+
if (h.indexOf(E) >= 0) throw TypeError("Converting circular structure to JSON5");
|
|
722
|
+
h.push(E);
|
|
725
723
|
let n = o;
|
|
726
724
|
o = o + m;
|
|
727
|
-
let u = f || Object.keys(E
|
|
725
|
+
let u = f || Object.keys(E), l = [];
|
|
728
726
|
for (const i of u) {
|
|
729
|
-
const p
|
|
730
|
-
if (p
|
|
731
|
-
let b
|
|
732
|
-
m !== "" && (b
|
|
727
|
+
const p = t(i, E);
|
|
728
|
+
if (p !== void 0) {
|
|
729
|
+
let b = w(i) + ":";
|
|
730
|
+
m !== "" && (b += " "), b += p, l.push(b);
|
|
733
731
|
}
|
|
734
732
|
}
|
|
735
|
-
let F
|
|
736
|
-
if (l.length === 0) F
|
|
733
|
+
let F;
|
|
734
|
+
if (l.length === 0) F = "{}";
|
|
737
735
|
else {
|
|
738
736
|
let i;
|
|
739
|
-
if (m === "") i = l.join(","), F
|
|
737
|
+
if (m === "") i = l.join(","), F = "{" + i + "}";
|
|
740
738
|
else {
|
|
741
|
-
let p
|
|
739
|
+
let p = `,
|
|
742
740
|
` + o;
|
|
743
|
-
i = l.join(p
|
|
741
|
+
i = l.join(p), F = `{
|
|
744
742
|
` + o + i + `,
|
|
745
743
|
` + n + "}";
|
|
746
744
|
}
|
|
747
745
|
}
|
|
748
|
-
return h
|
|
746
|
+
return h.pop(), o = n, F;
|
|
749
747
|
}
|
|
750
|
-
function w
|
|
751
|
-
if (E
|
|
752
|
-
const n = String.fromCodePoint(E
|
|
753
|
-
if (!C
|
|
754
|
-
for (let u = n.length; u < E
|
|
755
|
-
return E
|
|
748
|
+
function w(E) {
|
|
749
|
+
if (E.length === 0) return e(E);
|
|
750
|
+
const n = String.fromCodePoint(E.codePointAt(0));
|
|
751
|
+
if (!C.isIdStartChar(n)) return e(E);
|
|
752
|
+
for (let u = n.length; u < E.length; u++) if (!C.isIdContinueChar(String.fromCodePoint(E.codePointAt(u)))) return e(E);
|
|
753
|
+
return E;
|
|
756
754
|
}
|
|
757
|
-
function A
|
|
758
|
-
if (h
|
|
759
|
-
h
|
|
755
|
+
function A(E) {
|
|
756
|
+
if (h.indexOf(E) >= 0) throw TypeError("Converting circular structure to JSON5");
|
|
757
|
+
h.push(E);
|
|
760
758
|
let n = o;
|
|
761
759
|
o = o + m;
|
|
762
760
|
let u = [];
|
|
763
|
-
for (let F
|
|
764
|
-
const i = t(String(F
|
|
761
|
+
for (let F = 0; F < E.length; F++) {
|
|
762
|
+
const i = t(String(F), E);
|
|
765
763
|
u.push(i !== void 0 ? i : "null");
|
|
766
764
|
}
|
|
767
765
|
let l;
|
|
768
766
|
if (u.length === 0) l = "[]";
|
|
769
767
|
else if (m === "") l = "[" + u.join(",") + "]";
|
|
770
768
|
else {
|
|
771
|
-
let F
|
|
772
|
-
` + o, i = u.join(F
|
|
769
|
+
let F = `,
|
|
770
|
+
` + o, i = u.join(F);
|
|
773
771
|
l = `[
|
|
774
772
|
` + o + i + `,
|
|
775
773
|
` + n + "]";
|
|
776
774
|
}
|
|
777
|
-
return h
|
|
775
|
+
return h.pop(), o = n, l;
|
|
778
776
|
}
|
|
779
777
|
}, J$1;
|
|
780
778
|
}
|
|
781
|
-
|
|
782
|
-
function Cu(C
|
|
783
|
-
const s
|
|
784
|
-
return N$1(C
|
|
779
|
+
R$2(tu());
|
|
780
|
+
function Cu(C, r) {
|
|
781
|
+
const s = eu(C, r?.reviver);
|
|
782
|
+
return N$1(C, s, r), s;
|
|
785
783
|
}
|
|
786
|
-
|
|
787
|
-
//#endregion
|
|
788
|
-
//#region node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.mjs
|
|
789
784
|
var yaml_exports = /* @__PURE__ */ __exportAll({
|
|
790
785
|
parseYAML: () => mr,
|
|
791
786
|
stringifyYAML: () => gr
|
|
@@ -848,12 +843,12 @@ function rn(e, n) {
|
|
|
848
843
|
n.maxLength || (n.maxLength = 79), typeof n.indent != "number" && (n.indent = 1), typeof n.linesBefore != "number" && (n.linesBefore = 3), typeof n.linesAfter != "number" && (n.linesAfter = 2);
|
|
849
844
|
for (var i = /\r?\n|\r|\0/g, l = [0], r = [], u, o = -1; u = i.exec(e.buffer);) r.push(u.index), l.push(u.index + u[0].length), e.position <= u.index && o < 0 && (o = l.length - 2);
|
|
850
845
|
o < 0 && (o = l.length - 1);
|
|
851
|
-
var f = "", c
|
|
852
|
-
for (c
|
|
846
|
+
var f = "", c, a, t = Math.min(e.line + n.linesAfter, r.length).toString().length, p = n.maxLength - (n.indent + t + 3);
|
|
847
|
+
for (c = 1; c <= n.linesBefore && !(o - c < 0); c++) a = $$1(e.buffer, l[o - c], r[o - c], e.position - (l[o] - l[o - c]), p), f = y$1.repeat(" ", n.indent) + Q$1((e.line - c + 1).toString(), t) + " | " + a.str + `
|
|
853
848
|
` + f;
|
|
854
|
-
for (a = $$1(e.buffer, l[o], r[o], e.position, p
|
|
849
|
+
for (a = $$1(e.buffer, l[o], r[o], e.position, p), f += y$1.repeat(" ", n.indent) + Q$1((e.line + 1).toString(), t) + " | " + a.str + `
|
|
855
850
|
`, f += y$1.repeat("-", n.indent + t + 3 + a.pos) + `^
|
|
856
|
-
`, c
|
|
851
|
+
`, c = 1; c <= n.linesAfter && !(o + c >= r.length); c++) a = $$1(e.buffer, l[o + c], r[o + c], e.position - (l[o] - l[o + c]), p), f += y$1.repeat(" ", n.indent) + Q$1((e.line + c + 1).toString(), t) + " | " + a.str + `
|
|
857
852
|
`;
|
|
858
853
|
return f.replace(/\n$/, "");
|
|
859
854
|
}
|
|
@@ -1154,14 +1149,14 @@ function Pn(e) {
|
|
|
1154
1149
|
return e === null ? !1 : ce.exec(e) !== null || ae.exec(e) !== null;
|
|
1155
1150
|
}
|
|
1156
1151
|
function jn(e) {
|
|
1157
|
-
var n, i, l, r, u, o, f, c
|
|
1152
|
+
var n, i, l, r, u, o, f, c = 0, a = null, t, p, d;
|
|
1158
1153
|
if (n = ce.exec(e), n === null && (n = ae.exec(e)), n === null) throw new Error("Date resolve error");
|
|
1159
1154
|
if (i = +n[1], l = +n[2] - 1, r = +n[3], !n[4]) return new Date(Date.UTC(i, l, r));
|
|
1160
1155
|
if (u = +n[4], o = +n[5], f = +n[6], n[7]) {
|
|
1161
|
-
for (c
|
|
1162
|
-
c
|
|
1156
|
+
for (c = n[7].slice(0, 3); c.length < 3;) c += "0";
|
|
1157
|
+
c = +c;
|
|
1163
1158
|
}
|
|
1164
|
-
return n[9] && (t = +n[10], p
|
|
1159
|
+
return n[9] && (t = +n[10], p = +(n[11] || 0), a = (t * 60 + p) * 6e4, n[9] === "-" && (a = -a)), d = new Date(Date.UTC(i, l, r, u, o, f, c)), a && d.setTime(d.getTime() - a), d;
|
|
1165
1160
|
}
|
|
1166
1161
|
function Hn(e) {
|
|
1167
1162
|
return e.toISOString();
|
|
@@ -1353,12 +1348,12 @@ function _e(e, n, i, l) {
|
|
|
1353
1348
|
var r, u, o, f;
|
|
1354
1349
|
for (y$1.isObject(i) || h(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(i), o = 0, f = r.length; o < f; o += 1) u = r[o], T.call(n, u) || (n[u] = i[u], l[u] = !0);
|
|
1355
1350
|
}
|
|
1356
|
-
function N(e, n, i, l, r, u, o, f, c
|
|
1351
|
+
function N(e, n, i, l, r, u, o, f, c) {
|
|
1357
1352
|
var a, t;
|
|
1358
1353
|
if (Array.isArray(r)) for (r = Array.prototype.slice.call(r), a = 0, t = r.length; a < t; a += 1) Array.isArray(r[a]) && h(e, "nested arrays are not supported inside keys"), typeof r == "object" && me(r[a]) === "[object Object]" && (r[a] = "[object Object]");
|
|
1359
1354
|
if (typeof r == "object" && me(r) === "[object Object]" && (r = "[object Object]"), r = String(r), 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);
|
|
1360
1355
|
else _e(e, n, u, i);
|
|
1361
|
-
else !e.json && !T.call(i, r) && T.call(n, r) && (e.line = o || e.line, e.lineStart = f || e.lineStart, e.position = c
|
|
1356
|
+
else !e.json && !T.call(i, r) && T.call(n, r) && (e.line = o || e.line, e.lineStart = f || e.lineStart, e.position = c || e.position, h(e, "duplicated mapping key")), r === "__proto__" ? Object.defineProperty(n, r, {
|
|
1362
1357
|
configurable: !0,
|
|
1363
1358
|
enumerable: !0,
|
|
1364
1359
|
writable: !0,
|
|
@@ -1390,26 +1385,26 @@ function J(e, n) {
|
|
|
1390
1385
|
`, n - 1));
|
|
1391
1386
|
}
|
|
1392
1387
|
function Ai(e, n, i) {
|
|
1393
|
-
var l, r, u, o, f, c
|
|
1394
|
-
if (s
|
|
1395
|
-
for (e.kind = "scalar", e.result = "", u = o = e.position, f = !1; s
|
|
1396
|
-
if (s
|
|
1388
|
+
var l, r, u, o, f, c, a, t, p = e.kind, d = e.result, s;
|
|
1389
|
+
if (s = e.input.charCodeAt(e.position), F$1(s) || k(s) || s === 35 || s === 38 || s === 42 || s === 33 || s === 124 || s === 62 || s === 39 || s === 34 || s === 37 || s === 64 || s === 96 || (s === 63 || s === 45) && (r = e.input.charCodeAt(e.position + 1), F$1(r) || i && k(r))) return !1;
|
|
1390
|
+
for (e.kind = "scalar", e.result = "", u = o = e.position, f = !1; s !== 0;) {
|
|
1391
|
+
if (s === 58) {
|
|
1397
1392
|
if (r = e.input.charCodeAt(e.position + 1), F$1(r) || i && k(r)) break;
|
|
1398
|
-
} else if (s
|
|
1393
|
+
} else if (s === 35) {
|
|
1399
1394
|
if (l = e.input.charCodeAt(e.position - 1), F$1(l)) break;
|
|
1400
1395
|
} else {
|
|
1401
|
-
if (e.position === e.lineStart && q(e) || i && k(s
|
|
1402
|
-
if (S$1(s
|
|
1403
|
-
f = !0, s
|
|
1396
|
+
if (e.position === e.lineStart && q(e) || i && k(s)) break;
|
|
1397
|
+
if (S$1(s)) if (c = e.line, a = e.lineStart, t = e.lineIndent, v$1(e, !1, -1), e.lineIndent >= n) {
|
|
1398
|
+
f = !0, s = e.input.charCodeAt(e.position);
|
|
1404
1399
|
continue;
|
|
1405
1400
|
} else {
|
|
1406
|
-
e.position = o, e.line = c
|
|
1401
|
+
e.position = o, e.line = c, e.lineStart = a, e.lineIndent = t;
|
|
1407
1402
|
break;
|
|
1408
1403
|
}
|
|
1409
1404
|
}
|
|
1410
|
-
f && (O(e, u, o, !1), J(e, e.line - c
|
|
1405
|
+
f && (O(e, u, o, !1), J(e, e.line - c), u = o = e.position, f = !1), I$1(s) || (o = e.position + 1), s = e.input.charCodeAt(++e.position);
|
|
1411
1406
|
}
|
|
1412
|
-
return O(e, u, o, !1), e.result ? !0 : (e.kind = p
|
|
1407
|
+
return O(e, u, o, !1), e.result ? !0 : (e.kind = p, e.result = d, !1);
|
|
1413
1408
|
}
|
|
1414
1409
|
function vi(e, n) {
|
|
1415
1410
|
var i, l, r;
|
|
@@ -1437,85 +1432,85 @@ function yi(e, n) {
|
|
|
1437
1432
|
h(e, "unexpected end of the stream within a double quoted scalar");
|
|
1438
1433
|
}
|
|
1439
1434
|
function Ci(e, n) {
|
|
1440
|
-
var i = !0, l, r, u, o = e.tag, f, c
|
|
1441
|
-
if (m = e.input.charCodeAt(e.position), m === 91) t = 93, s
|
|
1442
|
-
else if (m === 123) t = 125, s
|
|
1435
|
+
var i = !0, l, r, u, o = e.tag, f, c = e.anchor, a, t, p, d, s, x = Object.create(null), g, A, b, m;
|
|
1436
|
+
if (m = e.input.charCodeAt(e.position), m === 91) t = 93, s = !1, f = [];
|
|
1437
|
+
else if (m === 123) t = 125, s = !0, f = {};
|
|
1443
1438
|
else return !1;
|
|
1444
1439
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = f), m = e.input.charCodeAt(++e.position); m !== 0;) {
|
|
1445
|
-
if (v$1(e, !0, n), m = e.input.charCodeAt(e.position), m === t) return e.position++, e.tag = o, e.anchor = c
|
|
1446
|
-
i ? m === 44 && h(e, "expected the node content, but found ','") : h(e, "missed comma between flow collection entries"), A
|
|
1440
|
+
if (v$1(e, !0, n), m = e.input.charCodeAt(e.position), m === t) return e.position++, e.tag = o, e.anchor = c, e.kind = s ? "mapping" : "sequence", e.result = f, !0;
|
|
1441
|
+
i ? m === 44 && h(e, "expected the node content, but found ','") : h(e, "missed comma between flow collection entries"), A = g = b = null, p = d = !1, m === 63 && (a = e.input.charCodeAt(e.position + 1), F$1(a) && (p = d = !0, e.position++, v$1(e, !0, n))), l = e.line, r = e.lineStart, u = e.position, R$1(e, n, H, !1, !0), A = e.tag, g = e.result, v$1(e, !0, n), m = e.input.charCodeAt(e.position), (d || e.line === l) && m === 58 && (p = !0, m = e.input.charCodeAt(++e.position), v$1(e, !0, n), R$1(e, n, H, !1, !0), b = e.result), s ? N(e, f, x, A, g, b, l, r, u) : p ? f.push(N(e, null, x, A, g, b, l, r, u)) : f.push(g), v$1(e, !0, n), m = e.input.charCodeAt(e.position), m === 44 ? (i = !0, m = e.input.charCodeAt(++e.position)) : i = !1;
|
|
1447
1442
|
}
|
|
1448
1443
|
h(e, "unexpected end of the stream within a flow collection");
|
|
1449
1444
|
}
|
|
1450
1445
|
function _i(e, n) {
|
|
1451
|
-
var i, l, r = Z$1, u = !1, o = !1, f = n, c
|
|
1452
|
-
if (p
|
|
1453
|
-
else if (p
|
|
1446
|
+
var i, l, r = Z$1, u = !1, o = !1, f = n, c = 0, a = !1, t, p;
|
|
1447
|
+
if (p = e.input.charCodeAt(e.position), p === 124) l = !1;
|
|
1448
|
+
else if (p === 62) l = !0;
|
|
1454
1449
|
else return !1;
|
|
1455
|
-
for (e.kind = "scalar", e.result = ""; p
|
|
1456
|
-
else if ((t = xi(p
|
|
1450
|
+
for (e.kind = "scalar", e.result = ""; p !== 0;) if (p = e.input.charCodeAt(++e.position), p === 43 || p === 45) Z$1 === r ? r = p === 43 ? de : ai : h(e, "repeat of a chomping mode identifier");
|
|
1451
|
+
else if ((t = xi(p)) >= 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);
|
|
1457
1452
|
else break;
|
|
1458
|
-
if (I$1(p
|
|
1453
|
+
if (I$1(p)) {
|
|
1459
1454
|
do
|
|
1460
|
-
p
|
|
1461
|
-
while (I$1(p
|
|
1462
|
-
if (p
|
|
1463
|
-
p
|
|
1464
|
-
while (!S$1(p
|
|
1465
|
-
}
|
|
1466
|
-
for (; p
|
|
1467
|
-
for (z$1(e), e.lineIndent = 0, p
|
|
1468
|
-
if (!o && e.lineIndent > f && (f = e.lineIndent), S$1(p
|
|
1469
|
-
c
|
|
1455
|
+
p = e.input.charCodeAt(++e.position);
|
|
1456
|
+
while (I$1(p));
|
|
1457
|
+
if (p === 35) do
|
|
1458
|
+
p = e.input.charCodeAt(++e.position);
|
|
1459
|
+
while (!S$1(p) && p !== 0);
|
|
1460
|
+
}
|
|
1461
|
+
for (; p !== 0;) {
|
|
1462
|
+
for (z$1(e), e.lineIndent = 0, p = e.input.charCodeAt(e.position); (!o || e.lineIndent < f) && p === 32;) e.lineIndent++, p = e.input.charCodeAt(++e.position);
|
|
1463
|
+
if (!o && e.lineIndent > f && (f = e.lineIndent), S$1(p)) {
|
|
1464
|
+
c++;
|
|
1470
1465
|
continue;
|
|
1471
1466
|
}
|
|
1472
1467
|
if (e.lineIndent < f) {
|
|
1473
1468
|
r === de ? e.result += y$1.repeat(`
|
|
1474
|
-
`, u ? 1 + c
|
|
1469
|
+
`, u ? 1 + c : c) : r === Z$1 && u && (e.result += `
|
|
1475
1470
|
`);
|
|
1476
1471
|
break;
|
|
1477
1472
|
}
|
|
1478
|
-
for (l ? I$1(p
|
|
1479
|
-
`, u ? 1 + c
|
|
1480
|
-
`, c
|
|
1481
|
-
`, c
|
|
1482
|
-
`, u ? 1 + c
|
|
1473
|
+
for (l ? I$1(p) ? (a = !0, e.result += y$1.repeat(`
|
|
1474
|
+
`, u ? 1 + c : c)) : a ? (a = !1, e.result += y$1.repeat(`
|
|
1475
|
+
`, c + 1)) : c === 0 ? u && (e.result += " ") : e.result += y$1.repeat(`
|
|
1476
|
+
`, c) : e.result += y$1.repeat(`
|
|
1477
|
+
`, u ? 1 + c : c), u = !0, o = !0, c = 0, i = e.position; !S$1(p) && p !== 0;) p = e.input.charCodeAt(++e.position);
|
|
1483
1478
|
O(e, i, e.position, !1);
|
|
1484
1479
|
}
|
|
1485
1480
|
return !0;
|
|
1486
1481
|
}
|
|
1487
1482
|
function we(e, n) {
|
|
1488
|
-
var i, l = e.tag, r = e.anchor, u = [], o, f = !1, c
|
|
1483
|
+
var i, l = e.tag, r = e.anchor, u = [], o, f = !1, c;
|
|
1489
1484
|
if (e.firstTabInLine !== -1) return !1;
|
|
1490
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), c
|
|
1485
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, h(e, "tab characters must not be used in indentation")), !(c !== 45 || (o = e.input.charCodeAt(e.position + 1), !F$1(o))));) {
|
|
1491
1486
|
if (f = !0, e.position++, v$1(e, !0, -1) && e.lineIndent <= n) {
|
|
1492
|
-
u.push(null), c
|
|
1487
|
+
u.push(null), c = e.input.charCodeAt(e.position);
|
|
1493
1488
|
continue;
|
|
1494
1489
|
}
|
|
1495
|
-
if (i = e.line, R$1(e, n, he, !1, !0), u.push(e.result), v$1(e, !0, -1), c
|
|
1490
|
+
if (i = e.line, R$1(e, n, he, !1, !0), u.push(e.result), v$1(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === i || e.lineIndent > n) && c !== 0) h(e, "bad indentation of a sequence entry");
|
|
1496
1491
|
else if (e.lineIndent < n) break;
|
|
1497
1492
|
}
|
|
1498
1493
|
return f ? (e.tag = l, e.anchor = r, e.kind = "sequence", e.result = u, !0) : !1;
|
|
1499
1494
|
}
|
|
1500
1495
|
function wi(e, n, i) {
|
|
1501
|
-
var l, r, u, o, f, c
|
|
1496
|
+
var l, r, u, o, f, c, a = e.tag, t = e.anchor, p = {}, d = Object.create(null), s = null, x = null, g = null, A = !1, b = !1, m;
|
|
1502
1497
|
if (e.firstTabInLine !== -1) return !1;
|
|
1503
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = p
|
|
1504
|
-
if (!A
|
|
1498
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = p), m = e.input.charCodeAt(e.position); m !== 0;) {
|
|
1499
|
+
if (!A && 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 === 63 || m === 58) && F$1(l)) m === 63 ? (A && (N(e, p, d, s, x, null, o, f, c), s = x = g = null), b = !0, A = !0, r = !0) : A ? (A = !1, r = !0) : h(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, m = l;
|
|
1505
1500
|
else {
|
|
1506
|
-
if (o = e.line, f = e.lineStart, c
|
|
1501
|
+
if (o = e.line, f = e.lineStart, c = e.position, !R$1(e, i, te, !1, !0)) break;
|
|
1507
1502
|
if (e.line === u) {
|
|
1508
1503
|
for (m = e.input.charCodeAt(e.position); I$1(m);) m = e.input.charCodeAt(++e.position);
|
|
1509
|
-
if (m === 58) m = e.input.charCodeAt(++e.position), F$1(m) || h(e, "a whitespace character is expected after the key-value separator within a block mapping"), A
|
|
1510
|
-
else if (b
|
|
1504
|
+
if (m === 58) m = e.input.charCodeAt(++e.position), F$1(m) || h(e, "a whitespace character is expected after the key-value separator within a block mapping"), A && (N(e, p, d, s, x, null, o, f, c), s = x = g = null), b = !0, A = !1, r = !1, s = e.tag, x = e.result;
|
|
1505
|
+
else if (b) h(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1511
1506
|
else return e.tag = a, e.anchor = t, !0;
|
|
1512
|
-
} else if (b
|
|
1507
|
+
} else if (b) h(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
1513
1508
|
else return e.tag = a, e.anchor = t, !0;
|
|
1514
1509
|
}
|
|
1515
|
-
if ((e.line === u || e.lineIndent > n) && (A
|
|
1510
|
+
if ((e.line === u || e.lineIndent > n) && (A && (o = e.line, f = e.lineStart, c = e.position), R$1(e, n, U$1, !0, r) && (A ? x = e.result : g = e.result), A || (N(e, p, d, s, x, g, o, f, c), s = x = g = null), v$1(e, !0, -1), m = e.input.charCodeAt(e.position)), (e.line === u || e.lineIndent > n) && m !== 0) h(e, "bad indentation of a mapping entry");
|
|
1516
1511
|
else if (e.lineIndent < n) break;
|
|
1517
1512
|
}
|
|
1518
|
-
return A
|
|
1513
|
+
return A && N(e, p, d, s, x, null, o, f, c), b && (e.tag = a, e.anchor = t, e.kind = "mapping", e.result = p), b;
|
|
1519
1514
|
}
|
|
1520
1515
|
function Fi(e) {
|
|
1521
1516
|
var n, i = !1, l = !1, r, u, o;
|
|
@@ -1550,21 +1545,21 @@ function Si(e) {
|
|
|
1550
1545
|
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;
|
|
1551
1546
|
}
|
|
1552
1547
|
function R$1(e, n, i, l, r) {
|
|
1553
|
-
var u, o, f, c
|
|
1554
|
-
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
|
|
1555
|
-
if (f && (f = a || r), (c
|
|
1548
|
+
var u, o, f, c = 1, a = !1, t = !1, p, d, s, x, g, A;
|
|
1549
|
+
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 : e.lineIndent === n ? c = 0 : e.lineIndent < n && (c = -1)), c === 1) for (; Fi(e) || bi(e);) v$1(e, !0, -1) ? (a = !0, f = u, e.lineIndent > n ? c = 1 : e.lineIndent === n ? c = 0 : e.lineIndent < n && (c = -1)) : f = !1;
|
|
1550
|
+
if (f && (f = a || r), (c === 1 || U$1 === i) && (H === i || te === i ? g = n : g = n + 1, A = e.position - e.lineStart, c === 1 ? f && (we(e, A) || wi(e, A, g)) || Ci(e, g) ? t = !0 : (o && _i(e, g) || vi(e, g) || yi(e, g) ? t = !0 : Si(e) ? (t = !0, (e.tag !== null || e.anchor !== null) && h(e, "alias node should not have any properties")) : Ai(e, g, H === i) && (t = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (t = f && we(e, A))), e.tag === null) e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1556
1551
|
else if (e.tag === "?") {
|
|
1557
|
-
for (e.result !== null && e.kind !== "scalar" && h(e, "unacceptable node kind for !<?> tag; it should be \"scalar\", not \"" + e.kind + "\""), p
|
|
1558
|
-
e.result = x
|
|
1552
|
+
for (e.result !== null && e.kind !== "scalar" && h(e, "unacceptable node kind for !<?> tag; it should be \"scalar\", not \"" + e.kind + "\""), p = 0, d = e.implicitTypes.length; p < d; p += 1) if (x = e.implicitTypes[p], x.resolve(e.result)) {
|
|
1553
|
+
e.result = x.construct(e.result), e.tag = x.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1559
1554
|
break;
|
|
1560
1555
|
}
|
|
1561
1556
|
} else if (e.tag !== "!") {
|
|
1562
|
-
if (T.call(e.typeMap[e.kind || "fallback"], e.tag)) x
|
|
1563
|
-
else for (x
|
|
1564
|
-
x
|
|
1557
|
+
if (T.call(e.typeMap[e.kind || "fallback"], e.tag)) x = e.typeMap[e.kind || "fallback"][e.tag];
|
|
1558
|
+
else for (x = null, s = e.typeMap.multi[e.kind || "fallback"], p = 0, d = s.length; p < d; p += 1) if (e.tag.slice(0, s[p].tag.length) === s[p].tag) {
|
|
1559
|
+
x = s[p];
|
|
1565
1560
|
break;
|
|
1566
1561
|
}
|
|
1567
|
-
x
|
|
1562
|
+
x || h(e, "unknown tag !<" + e.tag + ">"), e.result !== null && x.kind !== e.kind && h(e, "unacceptable node kind for !<" + e.tag + "> tag; it should be \"" + x.kind + "\", not \"" + e.kind + "\""), x.resolve(e.result, e.tag) ? (e.result = x.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");
|
|
1568
1563
|
}
|
|
1569
1564
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || t;
|
|
1570
1565
|
}
|
|
@@ -1629,9 +1624,9 @@ var Qi = [
|
|
|
1629
1624
|
"OFF"
|
|
1630
1625
|
], Vi = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
1631
1626
|
function Xi(e, n) {
|
|
1632
|
-
var i, l, r, u, o, f, c
|
|
1627
|
+
var i, l, r, u, o, f, c;
|
|
1633
1628
|
if (n === null) return {};
|
|
1634
|
-
for (i = {}, l = Object.keys(n), r = 0, u = l.length; r < u; r += 1) o = l[r], f = String(n[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), c
|
|
1629
|
+
for (i = {}, l = Object.keys(n), r = 0, u = l.length; r < u; r += 1) o = l[r], f = String(n[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), c = e.compiledTypeMap.fallback[o], c && be.call(c.styleAliases, f) && (f = c.styleAliases[f]), i[o] = f;
|
|
1635
1630
|
return i;
|
|
1636
1631
|
}
|
|
1637
1632
|
function Zi(e) {
|
|
@@ -1689,30 +1684,30 @@ function Re(e) {
|
|
|
1689
1684
|
}
|
|
1690
1685
|
var De = 1, re = 2, Me = 3, Ye = 4, D = 5;
|
|
1691
1686
|
function rr(e, n, i, l, r, u, o, f) {
|
|
1692
|
-
var c
|
|
1693
|
-
if (n || o) for (c
|
|
1694
|
-
if (a = j$1(e, c
|
|
1695
|
-
g
|
|
1687
|
+
var c, a = 0, t = null, p = !1, d = !1, s = l !== -1, x = -1, g = nr(j$1(e, 0)) && ir(j$1(e, e.length - 1));
|
|
1688
|
+
if (n || o) for (c = 0; c < e.length; a >= 65536 ? c += 2 : c++) {
|
|
1689
|
+
if (a = j$1(e, c), !P(a)) return D;
|
|
1690
|
+
g = g && Ne(a, t, f), t = a;
|
|
1696
1691
|
}
|
|
1697
1692
|
else {
|
|
1698
|
-
for (c
|
|
1699
|
-
if (a = j$1(e, c
|
|
1693
|
+
for (c = 0; c < e.length; a >= 65536 ? c += 2 : c++) {
|
|
1694
|
+
if (a = j$1(e, c), a === Y) p = !0, s && (d = d || c - x - 1 > l && e[x + 1] !== " ", x = c);
|
|
1700
1695
|
else if (!P(a)) return D;
|
|
1701
|
-
g
|
|
1696
|
+
g = g && Ne(a, t, f), t = a;
|
|
1702
1697
|
}
|
|
1703
|
-
d = d || s
|
|
1698
|
+
d = d || s && c - x - 1 > l && e[x + 1] !== " ";
|
|
1704
1699
|
}
|
|
1705
|
-
return !p
|
|
1700
|
+
return !p && !d ? g && !o && !r(e) ? De : u === B ? D : re : i > 9 && Re(e) ? D : o ? u === B ? D : re : d ? Ye : Me;
|
|
1706
1701
|
}
|
|
1707
1702
|
function lr(e, n, i, l, r) {
|
|
1708
1703
|
e.dump = function() {
|
|
1709
1704
|
if (n.length === 0) return e.quotingType === B ? "\"\"" : "''";
|
|
1710
1705
|
if (!e.noCompatMode && (Qi.indexOf(n) !== -1 || Vi.test(n))) return e.quotingType === B ? "\"" + n + "\"" : "'" + n + "'";
|
|
1711
1706
|
var u = e.indent * Math.max(1, i), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - u), f = l || e.flowLevel > -1 && i >= e.flowLevel;
|
|
1712
|
-
function c
|
|
1707
|
+
function c(a) {
|
|
1713
1708
|
return er(e, a);
|
|
1714
1709
|
}
|
|
1715
|
-
switch (rr(n, f, e.indent, o, c
|
|
1710
|
+
switch (rr(n, f, e.indent, o, c, e.quotingType, e.forceQuotes && !l, r)) {
|
|
1716
1711
|
case De: return n;
|
|
1717
1712
|
case re: return "'" + n.replace(/'/g, "''") + "'";
|
|
1718
1713
|
case Me: return "|" + Be(n, e.indent) + Pe(ke(n, u));
|
|
@@ -1741,19 +1736,19 @@ function or(e, n) {
|
|
|
1741
1736
|
return a = a !== -1 ? a : e.length, i.lastIndex = a, je(e.slice(0, a), n);
|
|
1742
1737
|
}(), r = e[0] === `
|
|
1743
1738
|
` || e[0] === " ", u, o; o = i.exec(e);) {
|
|
1744
|
-
var f = o[1], c
|
|
1745
|
-
u = c
|
|
1746
|
-
` : "") + je(c
|
|
1739
|
+
var f = o[1], c = o[2];
|
|
1740
|
+
u = c[0] === " ", l += f + (!r && !u && c !== "" ? `
|
|
1741
|
+
` : "") + je(c, n), r = u;
|
|
1747
1742
|
}
|
|
1748
1743
|
return l;
|
|
1749
1744
|
}
|
|
1750
1745
|
function je(e, n) {
|
|
1751
1746
|
if (e === "" || e[0] === " ") return e;
|
|
1752
|
-
for (var i = / [^ ]/g, l, r = 0, u, o = 0, f = 0, c
|
|
1747
|
+
for (var i = / [^ ]/g, l, r = 0, u, o = 0, f = 0, c = ""; l = i.exec(e);) f = l.index, f - r > n && (u = o > r ? o : f, c += `
|
|
1753
1748
|
` + e.slice(r, u), r = u + 1), o = f;
|
|
1754
|
-
return c
|
|
1755
|
-
`, e.length - r > n && o > r ? c
|
|
1756
|
-
` + e.slice(o + 1) : c
|
|
1749
|
+
return c += `
|
|
1750
|
+
`, e.length - r > n && o > r ? c += e.slice(r, o) + `
|
|
1751
|
+
` + e.slice(o + 1) : c += e.slice(r), c.slice(1);
|
|
1757
1752
|
}
|
|
1758
1753
|
function ur(e) {
|
|
1759
1754
|
for (var n = "", i = 0, l, r = 0; r < e.length; i >= 65536 ? r += 2 : r++) i = j$1(e, r), l = _[i], !l && P(i) ? (n += e[r], i >= 65536 && (n += e[r + 1])) : n += l || Zi(i);
|
|
@@ -1765,30 +1760,30 @@ function fr(e, n, i) {
|
|
|
1765
1760
|
e.tag = r, e.dump = "[" + l + "]";
|
|
1766
1761
|
}
|
|
1767
1762
|
function He(e, n, i, l) {
|
|
1768
|
-
var r = "", u = e.tag, o, f, c
|
|
1769
|
-
for (o = 0, f = i.length; o < f; o += 1) c
|
|
1763
|
+
var r = "", u = e.tag, o, f, c;
|
|
1764
|
+
for (o = 0, f = i.length; o < f; o += 1) c = i[o], e.replacer && (c = e.replacer.call(i, String(o), c)), (E(e, n + 1, c, !0, !0, !1, !0) || typeof c > "u" && E(e, n + 1, null, !0, !0, !1, !0)) && ((!l || r !== "") && (r += ie(e, n)), e.dump && Y === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
|
|
1770
1765
|
e.tag = u, e.dump = r || "[]";
|
|
1771
1766
|
}
|
|
1772
1767
|
function cr(e, n, i) {
|
|
1773
|
-
var l = "", r = e.tag, u = Object.keys(i), o, f, c
|
|
1774
|
-
for (o = 0, f = u.length; o < f; o += 1) t = "", l !== "" && (t += ", "), e.condenseFlow && (t += "\""), c
|
|
1768
|
+
var l = "", r = e.tag, u = Object.keys(i), o, f, c, a, t;
|
|
1769
|
+
for (o = 0, f = u.length; o < f; o += 1) t = "", l !== "" && (t += ", "), e.condenseFlow && (t += "\""), c = u[o], a = i[c], e.replacer && (a = e.replacer.call(i, c, a)), E(e, n, c, !1, !1) && (e.dump.length > 1024 && (t += "? "), t += e.dump + (e.condenseFlow ? "\"" : "") + ":" + (e.condenseFlow ? "" : " "), E(e, n, a, !1, !1) && (t += e.dump, l += t));
|
|
1775
1770
|
e.tag = r, e.dump = "{" + l + "}";
|
|
1776
1771
|
}
|
|
1777
1772
|
function ar(e, n, i, l) {
|
|
1778
|
-
var r = "", u = e.tag, o = Object.keys(i), f, c
|
|
1773
|
+
var r = "", u = e.tag, o = Object.keys(i), f, c, a, t, p, d;
|
|
1779
1774
|
if (e.sortKeys === !0) o.sort();
|
|
1780
1775
|
else if (typeof e.sortKeys == "function") o.sort(e.sortKeys);
|
|
1781
1776
|
else if (e.sortKeys) throw new w$1("sortKeys must be a boolean or a function");
|
|
1782
|
-
for (f = 0, c
|
|
1777
|
+
for (f = 0, c = o.length; f < c; f += 1) d = "", (!l || r !== "") && (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 = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, p && (e.dump && Y === e.dump.charCodeAt(0) ? d += "?" : d += "? "), d += e.dump, p && (d += ie(e, n)), E(e, n + 1, t, !0, p) && (e.dump && Y === e.dump.charCodeAt(0) ? d += ":" : d += ": ", d += e.dump, r += d));
|
|
1783
1778
|
e.tag = u, e.dump = r || "{}";
|
|
1784
1779
|
}
|
|
1785
1780
|
function Ue(e, n, i) {
|
|
1786
|
-
var l, r, u, o, f, c
|
|
1781
|
+
var l, r, u, o, f, c;
|
|
1787
1782
|
for (r = i ? e.explicitTypes : e.implicitTypes, u = 0, o = r.length; u < o; u += 1) if (f = r[u], (f.instanceOf || f.predicate) && (!f.instanceOf || typeof n == "object" && n instanceof f.instanceOf) && (!f.predicate || f.predicate(n))) {
|
|
1788
1783
|
if (i ? f.multi && f.representName ? e.tag = f.representName(n) : e.tag = f.tag : e.tag = "?", f.represent) {
|
|
1789
|
-
if (c
|
|
1790
|
-
else if (be.call(f.represent, c
|
|
1791
|
-
else throw new w$1("!<" + f.tag + "> tag resolver accepts not \"" + c
|
|
1784
|
+
if (c = e.styleMap[f.tag] || f.defaultStyle, Fe.call(f.represent) === "[object Function]") l = f.represent(n, c);
|
|
1785
|
+
else if (be.call(f.represent, c)) l = f.represent[c](n, c);
|
|
1786
|
+
else throw new w$1("!<" + f.tag + "> tag resolver accepts not \"" + c + "\" style");
|
|
1792
1787
|
e.dump = l;
|
|
1793
1788
|
}
|
|
1794
1789
|
return !0;
|
|
@@ -1797,14 +1792,14 @@ function Ue(e, n, i) {
|
|
|
1797
1792
|
}
|
|
1798
1793
|
function E(e, n, i, l, r, u, o) {
|
|
1799
1794
|
e.tag = null, e.dump = i, Ue(e, i, !1) || Ue(e, i, !0);
|
|
1800
|
-
var f = Fe.call(e.dump), c
|
|
1795
|
+
var f = Fe.call(e.dump), c = l, a;
|
|
1801
1796
|
l && (l = e.flowLevel < 0 || e.flowLevel > n);
|
|
1802
|
-
var t = f === "[object Object]" || f === "[object Array]", p
|
|
1803
|
-
if (t && (p
|
|
1797
|
+
var t = f === "[object Object]" || f === "[object Array]", p, d;
|
|
1798
|
+
if (t && (p = e.duplicates.indexOf(i), d = p !== -1), (e.tag !== null && e.tag !== "?" || d || e.indent !== 2 && n > 0) && (r = !1), d && e.usedDuplicates[p]) e.dump = "*ref_" + p;
|
|
1804
1799
|
else {
|
|
1805
|
-
if (t && d && !e.usedDuplicates[p
|
|
1806
|
-
else if (f === "[object Array]") l && e.dump.length !== 0 ? (e.noArrayIndent && !o && n > 0 ? He(e, n - 1, e.dump, r) : He(e, n, e.dump, r), d && (e.dump = "&ref_" + p
|
|
1807
|
-
else if (f === "[object String]") e.tag !== "?" && lr(e, e.dump, n, u, c
|
|
1800
|
+
if (t && d && !e.usedDuplicates[p] && (e.usedDuplicates[p] = !0), f === "[object Object]") l && Object.keys(e.dump).length !== 0 ? (ar(e, n, e.dump, r), d && (e.dump = "&ref_" + p + e.dump)) : (cr(e, n, e.dump), d && (e.dump = "&ref_" + p + " " + e.dump));
|
|
1801
|
+
else if (f === "[object Array]") l && e.dump.length !== 0 ? (e.noArrayIndent && !o && n > 0 ? He(e, n - 1, e.dump, r) : He(e, n, e.dump, r), d && (e.dump = "&ref_" + p + e.dump)) : (fr(e, n, e.dump), d && (e.dump = "&ref_" + p + " " + e.dump));
|
|
1802
|
+
else if (f === "[object String]") e.tag !== "?" && lr(e, e.dump, n, u, c);
|
|
1808
1803
|
else {
|
|
1809
1804
|
if (f === "[object Undefined]") return !1;
|
|
1810
1805
|
if (e.skipInvalid) return !1;
|
|
@@ -1845,9 +1840,6 @@ function gr(e, n) {
|
|
|
1845
1840
|
});
|
|
1846
1841
|
return i.whitespace.start + r.trim() + i.whitespace.end;
|
|
1847
1842
|
}
|
|
1848
|
-
|
|
1849
|
-
//#endregion
|
|
1850
|
-
//#region node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.mjs
|
|
1851
1843
|
var toml_exports = /* @__PURE__ */ __exportAll({ parseTOML: () => Q });
|
|
1852
1844
|
/*!
|
|
1853
1845
|
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
@@ -2344,7 +2336,7 @@ function K(e, n, t) {
|
|
|
2344
2336
|
ptr: n - 1
|
|
2345
2337
|
});
|
|
2346
2338
|
if (i !== " " && i !== " ") {
|
|
2347
|
-
let f, a = l, u = !1, [d, N
|
|
2339
|
+
let f, a = l, u = !1, [d, N] = x(e, n - 1);
|
|
2348
2340
|
for (let m = 0; m < d.length; m++) {
|
|
2349
2341
|
if (m && (a = u ? a[f] : a[f] = {}), f = d[m], (u = Object.hasOwn(a, f)) && (typeof a[f] != "object" || r.has(a[f]))) throw new c("trying to redefine an already defined value", {
|
|
2350
2342
|
toml: e,
|
|
@@ -2360,8 +2352,8 @@ function K(e, n, t) {
|
|
|
2360
2352
|
toml: e,
|
|
2361
2353
|
ptr: n
|
|
2362
2354
|
});
|
|
2363
|
-
let [_
|
|
2364
|
-
r.add(_
|
|
2355
|
+
let [_, k] = b(e, N, "}", t - 1);
|
|
2356
|
+
r.add(_), a[f] = _, n = k, o = e[n - 1] === "," ? n - 1 : 0;
|
|
2365
2357
|
}
|
|
2366
2358
|
}
|
|
2367
2359
|
if (o) throw new c("trailing commas are not allowed in inline tables", {
|
|
@@ -2500,10 +2492,5 @@ function Q(e) {
|
|
|
2500
2492
|
const n = X(e);
|
|
2501
2493
|
return N$1(e, n, { preserveIndentation: !1 }), n;
|
|
2502
2494
|
}
|
|
2503
|
-
|
|
2504
|
-
//#endregion
|
|
2505
|
-
//#region node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.mjs
|
|
2506
2495
|
var jsonc_exports = /* @__PURE__ */ __exportAll({ parseJSONC: () => h$1 });
|
|
2507
|
-
|
|
2508
|
-
//#endregion
|
|
2509
|
-
export { yaml_exports as a, gr as i, Q as n, json5_exports as o, toml_exports as r, jsonc_exports as t };
|
|
2496
|
+
export { yaml_exports as a, gr as i, Q as n, json5_exports as o, toml_exports as r, jsonc_exports as t };
|