@redocly/replay 0.27.0-next.5 → 0.27.0-next.7
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/{replay-AiChatProvider-CVvR1kSd.js → replay-AiChatProvider-Dub7iVgM.js} +273 -271
- package/dist/replay-AiChatProvider-e4PWUCRp.js +6 -0
- package/dist/{replay-AiChatSqliteDBStorage-DVJ9f2EK.js → replay-AiChatSqliteDBStorage-CpjwxLnF.js} +1 -1
- package/dist/{replay-AiChatSqliteDBStorage-BFHRKFlk.js → replay-AiChatSqliteDBStorage-DbxNU-ot.js} +1 -1
- package/dist/replay-AiPanel-B_zDmo55.js +868 -0
- package/dist/{replay-AiPanel-CynVcVmm.js → replay-AiPanel-DuRA2zAt.js} +1226 -1114
- package/dist/{replay-SqliteDBStorage-eRBPh4E8.js → replay-SqliteDBStorage-BrNleq7S.js} +1 -1
- package/dist/{replay-SqliteDBStorage-CSz7NYH4.js → replay-SqliteDBStorage-CafBNNLB.js} +1 -1
- package/dist/{replay-agent-loop-CEZz1kj-.js → replay-agent-loop-CV0s4022.js} +48 -48
- package/dist/{replay-agent-loop-C60p47KY.js → replay-agent-loop-CzV79Gr1.js} +1 -1
- package/dist/{replay-ai-chat-mappers-BAHU6JIc.js → replay-ai-chat-mappers-BNsR30dS.js} +1 -1
- package/dist/{replay-ai-chat-mappers-Dqg-QVZy.js → replay-ai-chat-mappers-BWeZN6p_.js} +1 -1
- package/dist/{replay-create-model-C2NQtDcL.js → replay-create-model-CEDEaJC8.js} +3 -3
- package/dist/{replay-create-model-CUL-l-eX.js → replay-create-model-CmRk68RD.js} +2 -2
- package/dist/{replay-db-C4jAfGtc.js → replay-db-BfSnfWcb.js} +8 -8
- package/dist/{replay-db-Dw-X2WGx.js → replay-db-CM8OLcFK.js} +21 -21
- package/dist/{replay-external-resolver-DAkLV0nr.js → replay-external-resolver-G86hjAvS.js} +2 -2
- package/dist/{replay-external-resolver-DN_PWq_2.js → replay-external-resolver-bdSEZsNk.js} +1 -1
- package/dist/{replay-index-BmX1FPBL.js → replay-index-BmotNqNI.js} +1170 -1148
- package/dist/replay-index-Bsag-eKM.js +1 -0
- package/dist/replay-index-C6SJPGDO.js +23 -0
- package/dist/replay-index-CUs62_1f.js +1 -0
- package/dist/{replay-index-rRWvC2pp.js → replay-index-C_eJVbPZ.js} +1 -1
- package/dist/{replay-index-O_Pq5an3.js → replay-index-Cd9LaUVx.js} +23380 -22731
- package/dist/{replay-index-m00jnWFr.js → replay-index-D58Mg6_y.js} +1 -1
- package/dist/{replay-index-DR1uVBvc.js → replay-index-DYtNY0OY.js} +42 -41
- package/dist/replay-lint-CxwKILeF.js +184 -0
- package/dist/{replay-lint-CcVVykW7.js → replay-lint-YfaLafO6.js} +8246 -8047
- package/dist/{replay-lint-graphql-DlD7bblx.js → replay-lint-graphql-BRrk1UK5.js} +1 -1
- package/dist/{replay-lint-graphql-5cGt2KR_.js → replay-lint-graphql-GtbZklco.js} +1 -1
- package/dist/replay-resolve-Bza6lozO.js +47 -0
- package/dist/{replay-resolve-Ca3DUbGq.js → replay-resolve-Rb3XjiUd.js} +919 -908
- package/dist/{replay-respect-run-eSRzH2dk.js → replay-respect-run-BB0VXCz-.js} +1605 -1555
- package/dist/replay-respect-run-Pkoy4Q3P.js +78 -0
- package/dist/{replay-tauri-path-C-oxFOHe.js → replay-tauri-path-B8tT4cGY.js} +2 -2
- package/dist/{replay-tauri-path-CKcvIl_h.js → replay-tauri-path-yOFqWleH.js} +1 -1
- package/dist/{replay-useAiChatQueries-CVTxcu2Z.js → replay-useAiChatQueries-1fqZwVTj.js} +71 -48
- package/dist/{replay-useAiChatQueries-vdKvbmp2.js → replay-useAiChatQueries-B7ZcWDmG.js} +1111 -990
- package/dist/{replay-validate-key-VkgZoK1f.js → replay-validate-key-C8-nF61w.js} +1 -1
- package/dist/{replay-validate-key-CwIopif3.js → replay-validate-key-qJOuAQJK.js} +2 -2
- package/dist/replay.cjs +1 -1
- package/dist/replay.d.ts +35 -5
- package/dist/replay.js +10 -10
- package/package.json +4 -4
- package/dist/replay-AiChatProvider-BGXsZqW2.js +0 -6
- package/dist/replay-AiPanel-qVp_s4gD.js +0 -849
- package/dist/replay-index-DSKZHOXq.js +0 -1
- package/dist/replay-index-DT5gdiBA.js +0 -21
- package/dist/replay-index-qZlgEmbq.js +0 -1
- package/dist/replay-lint-ON47l7Vu.js +0 -184
- package/dist/replay-resolve-BTzo-fSv.js +0 -47
- package/dist/replay-respect-run-BtC2agF9.js +0 -78
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { g as
|
|
2
|
-
function
|
|
1
|
+
import { g as fr, aK as Xe, aL as Ie } from "./replay-index-Cd9LaUVx.js";
|
|
2
|
+
function pr(e) {
|
|
3
3
|
return !!e;
|
|
4
4
|
}
|
|
5
|
-
var
|
|
6
|
-
function
|
|
7
|
-
if (
|
|
8
|
-
|
|
9
|
-
const e = "\\\\/", t = `[^${e}]`, n = 0, r = "\\.", i = "\\+", o = "\\?", a = "\\/", s = "(?=.)", l = "[^/]", u = `(?:${a}|$)`, c = `(?:^|${a})`, y = `${r}{1,2}${u}`, g = `(?!${r})`,
|
|
5
|
+
var yt = {}, Et, ln;
|
|
6
|
+
function ut() {
|
|
7
|
+
if (ln) return Et;
|
|
8
|
+
ln = 1;
|
|
9
|
+
const e = "\\\\/", t = `[^${e}]`, n = 0, r = "\\.", i = "\\+", o = "\\?", a = "\\/", s = "(?=.)", l = "[^/]", u = `(?:${a}|$)`, c = `(?:^|${a})`, y = `${r}{1,2}${u}`, g = `(?!${r})`, C = `(?!${c}${y})`, E = `(?!${r}{0,1}${u})`, w = `(?!${y})`, F = `[^.${a}]`, N = `${l}*?`, R = {
|
|
10
10
|
DOT_LITERAL: r,
|
|
11
11
|
PLUS_LITERAL: i,
|
|
12
12
|
QMARK_LITERAL: o,
|
|
@@ -16,10 +16,10 @@ function ft() {
|
|
|
16
16
|
END_ANCHOR: u,
|
|
17
17
|
DOTS_SLASH: y,
|
|
18
18
|
NO_DOT: g,
|
|
19
|
-
NO_DOTS:
|
|
19
|
+
NO_DOTS: C,
|
|
20
20
|
NO_DOT_SLASH: E,
|
|
21
21
|
NO_DOTS_SLASH: w,
|
|
22
|
-
QMARK_NO_DOT:
|
|
22
|
+
QMARK_NO_DOT: F,
|
|
23
23
|
STAR: N,
|
|
24
24
|
START_ANCHOR: c,
|
|
25
25
|
SEP: "/"
|
|
@@ -54,7 +54,7 @@ function ft() {
|
|
|
54
54
|
word: "A-Za-z0-9_",
|
|
55
55
|
xdigit: "A-Fa-f0-9"
|
|
56
56
|
};
|
|
57
|
-
return
|
|
57
|
+
return Et = {
|
|
58
58
|
DEFAULT_MAX_EXTGLOB_RECURSION: n,
|
|
59
59
|
MAX_LENGTH: 1024 * 64,
|
|
60
60
|
POSIX_REGEX_SOURCE: x,
|
|
@@ -179,17 +179,17 @@ function ft() {
|
|
|
179
179
|
globChars(_) {
|
|
180
180
|
return _ === !0 ? p : R;
|
|
181
181
|
}
|
|
182
|
-
},
|
|
182
|
+
}, Et;
|
|
183
183
|
}
|
|
184
|
-
var
|
|
185
|
-
function
|
|
186
|
-
return
|
|
184
|
+
var cn;
|
|
185
|
+
function ft() {
|
|
186
|
+
return cn || (cn = 1, (function(e) {
|
|
187
187
|
const {
|
|
188
188
|
REGEX_BACKSLASH: t,
|
|
189
189
|
REGEX_REMOVE_BACKSLASH: n,
|
|
190
190
|
REGEX_SPECIAL_CHARS: r,
|
|
191
191
|
REGEX_SPECIAL_CHARS_GLOBAL: i
|
|
192
|
-
} = /* @__PURE__ */
|
|
192
|
+
} = /* @__PURE__ */ ut();
|
|
193
193
|
e.isObject = (o) => o !== null && typeof o == "object" && !Array.isArray(o), e.hasRegexChars = (o) => r.test(o), e.isRegexChar = (o) => o.length === 1 && e.hasRegexChars(o), e.escapeRegex = (o) => o.replace(i, "\\$1"), e.toPosixSlashes = (o) => o.replace(t, "/"), e.isWindows = () => {
|
|
194
194
|
if (typeof navigator < "u" && navigator.platform) {
|
|
195
195
|
const o = navigator.platform.toLowerCase();
|
|
@@ -210,13 +210,13 @@ function pt() {
|
|
|
210
210
|
const s = o.split(a ? /[\\/]/ : "/"), l = s[s.length - 1];
|
|
211
211
|
return l === "" ? s[s.length - 2] : l;
|
|
212
212
|
};
|
|
213
|
-
})(
|
|
213
|
+
})(yt)), yt;
|
|
214
214
|
}
|
|
215
|
-
var
|
|
216
|
-
function
|
|
217
|
-
if (
|
|
218
|
-
|
|
219
|
-
const e = /* @__PURE__ */
|
|
215
|
+
var St, un;
|
|
216
|
+
function dr() {
|
|
217
|
+
if (un) return St;
|
|
218
|
+
un = 1;
|
|
219
|
+
const e = /* @__PURE__ */ ft(), {
|
|
220
220
|
CHAR_ASTERISK: t,
|
|
221
221
|
/* * */
|
|
222
222
|
CHAR_AT: n,
|
|
@@ -241,34 +241,34 @@ function pr() {
|
|
|
241
241
|
/* + */
|
|
242
242
|
CHAR_QUESTION_MARK: g,
|
|
243
243
|
/* ? */
|
|
244
|
-
CHAR_RIGHT_CURLY_BRACE:
|
|
244
|
+
CHAR_RIGHT_CURLY_BRACE: C,
|
|
245
245
|
/* } */
|
|
246
246
|
CHAR_RIGHT_PARENTHESES: E,
|
|
247
247
|
/* ) */
|
|
248
248
|
CHAR_RIGHT_SQUARE_BRACKET: w
|
|
249
249
|
/* ] */
|
|
250
|
-
} = /* @__PURE__ */
|
|
250
|
+
} = /* @__PURE__ */ ut(), F = (R) => R === s || R === r, N = (R) => {
|
|
251
251
|
R.isPrefix !== !0 && (R.depth = R.isGlobstar ? 1 / 0 : 1);
|
|
252
252
|
};
|
|
253
|
-
return
|
|
253
|
+
return St = (R, p) => {
|
|
254
254
|
const x = p || {}, _ = R.length - 1, b = x.parts === !0 || x.scanToEnd === !0, S = [], m = [], Q = [];
|
|
255
|
-
let W = R,
|
|
256
|
-
const Z = () =>
|
|
257
|
-
for (;
|
|
255
|
+
let W = R, P = -1, G = 0, J = 0, le = !1, ce = !1, j = !1, Ee = !1, Re = !1, B = !1, oe = !1, be = !1, ke = !1, K = !1, ae = 0, me, $, f = { value: "", depth: 0, isGlob: !1 };
|
|
256
|
+
const Z = () => P >= _, de = () => W.charCodeAt(P + 1), ee = () => (me = $, W.charCodeAt(++P));
|
|
257
|
+
for (; P < _; ) {
|
|
258
258
|
$ = ee();
|
|
259
259
|
let V;
|
|
260
260
|
if ($ === r) {
|
|
261
|
-
|
|
261
|
+
oe = f.backslashes = !0, $ = ee(), $ === l && (B = !0);
|
|
262
262
|
continue;
|
|
263
263
|
}
|
|
264
264
|
if (B === !0 || $ === l) {
|
|
265
|
-
for (
|
|
265
|
+
for (ae++; Z() !== !0 && ($ = ee()); ) {
|
|
266
266
|
if ($ === r) {
|
|
267
|
-
|
|
267
|
+
oe = f.backslashes = !0, ee();
|
|
268
268
|
continue;
|
|
269
269
|
}
|
|
270
270
|
if ($ === l) {
|
|
271
|
-
|
|
271
|
+
ae++;
|
|
272
272
|
continue;
|
|
273
273
|
}
|
|
274
274
|
if (B !== !0 && $ === o && ($ = ee()) === o) {
|
|
@@ -281,7 +281,7 @@ function pr() {
|
|
|
281
281
|
continue;
|
|
282
282
|
break;
|
|
283
283
|
}
|
|
284
|
-
if ($ ===
|
|
284
|
+
if ($ === C && (ae--, ae === 0)) {
|
|
285
285
|
B = !1, le = f.isBrace = !0, K = !0;
|
|
286
286
|
break;
|
|
287
287
|
}
|
|
@@ -291,19 +291,19 @@ function pr() {
|
|
|
291
291
|
break;
|
|
292
292
|
}
|
|
293
293
|
if ($ === s) {
|
|
294
|
-
if (S.push(
|
|
295
|
-
if (me === o &&
|
|
294
|
+
if (S.push(P), m.push(f), f = { value: "", depth: 0, isGlob: !1 }, K === !0) continue;
|
|
295
|
+
if (me === o && P === G + 1) {
|
|
296
296
|
G += 2;
|
|
297
297
|
continue;
|
|
298
298
|
}
|
|
299
|
-
J =
|
|
299
|
+
J = P + 1;
|
|
300
300
|
continue;
|
|
301
301
|
}
|
|
302
302
|
if (x.noext !== !0 && ($ === y || $ === n || $ === t || $ === g || $ === a) === !0 && de() === u) {
|
|
303
|
-
if (j = f.isGlob = !0,
|
|
303
|
+
if (j = f.isGlob = !0, Ee = f.isExtglob = !0, K = !0, $ === a && P === G && (ke = !0), b === !0) {
|
|
304
304
|
for (; Z() !== !0 && ($ = ee()); ) {
|
|
305
305
|
if ($ === r) {
|
|
306
|
-
|
|
306
|
+
oe = f.backslashes = !0, $ = ee();
|
|
307
307
|
continue;
|
|
308
308
|
}
|
|
309
309
|
if ($ === E) {
|
|
@@ -316,7 +316,7 @@ function pr() {
|
|
|
316
316
|
break;
|
|
317
317
|
}
|
|
318
318
|
if ($ === t) {
|
|
319
|
-
if (me === t && (
|
|
319
|
+
if (me === t && (Re = f.isGlobstar = !0), j = f.isGlob = !0, K = !0, b === !0)
|
|
320
320
|
continue;
|
|
321
321
|
break;
|
|
322
322
|
}
|
|
@@ -328,7 +328,7 @@ function pr() {
|
|
|
328
328
|
if ($ === c) {
|
|
329
329
|
for (; Z() !== !0 && (V = ee()); ) {
|
|
330
330
|
if (V === r) {
|
|
331
|
-
|
|
331
|
+
oe = f.backslashes = !0, ee();
|
|
332
332
|
continue;
|
|
333
333
|
}
|
|
334
334
|
if (V === w) {
|
|
@@ -340,15 +340,15 @@ function pr() {
|
|
|
340
340
|
continue;
|
|
341
341
|
break;
|
|
342
342
|
}
|
|
343
|
-
if (x.nonegate !== !0 && $ === a &&
|
|
344
|
-
|
|
343
|
+
if (x.nonegate !== !0 && $ === a && P === G) {
|
|
344
|
+
be = f.negated = !0, G++;
|
|
345
345
|
continue;
|
|
346
346
|
}
|
|
347
347
|
if (x.noparen !== !0 && $ === u) {
|
|
348
348
|
if (j = f.isGlob = !0, b === !0) {
|
|
349
349
|
for (; Z() !== !0 && ($ = ee()); ) {
|
|
350
350
|
if ($ === u) {
|
|
351
|
-
|
|
351
|
+
oe = f.backslashes = !0, $ = ee();
|
|
352
352
|
continue;
|
|
353
353
|
}
|
|
354
354
|
if ($ === E) {
|
|
@@ -366,9 +366,9 @@ function pr() {
|
|
|
366
366
|
break;
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
-
x.noext === !0 && (
|
|
369
|
+
x.noext === !0 && (Ee = !1, j = !1);
|
|
370
370
|
let d = W, h = "", ue = "";
|
|
371
|
-
G > 0 && (h = W.slice(0, G), W = W.slice(G), J -= G), d && j === !0 && J > 0 ? (d = W.slice(0, J), ue = W.slice(J)) : j === !0 ? (d = "", ue = W) : d = W, d && d !== "" && d !== "/" && d !== W &&
|
|
371
|
+
G > 0 && (h = W.slice(0, G), W = W.slice(G), J -= G), d && j === !0 && J > 0 ? (d = W.slice(0, J), ue = W.slice(J)) : j === !0 ? (d = "", ue = W) : d = W, d && d !== "" && d !== "/" && d !== W && F(d.charCodeAt(d.length - 1)) && (d = d.slice(0, -1)), x.unescape === !0 && (ue && (ue = e.removeBackslashes(ue)), d && oe === !0 && (d = e.removeBackslashes(d)));
|
|
372
372
|
const D = {
|
|
373
373
|
prefix: h,
|
|
374
374
|
input: R,
|
|
@@ -378,16 +378,16 @@ function pr() {
|
|
|
378
378
|
isBrace: le,
|
|
379
379
|
isBracket: ce,
|
|
380
380
|
isGlob: j,
|
|
381
|
-
isExtglob:
|
|
382
|
-
isGlobstar:
|
|
383
|
-
negated:
|
|
384
|
-
negatedExtglob:
|
|
381
|
+
isExtglob: Ee,
|
|
382
|
+
isGlobstar: Re,
|
|
383
|
+
negated: be,
|
|
384
|
+
negatedExtglob: ke
|
|
385
385
|
};
|
|
386
|
-
if (x.tokens === !0 && (D.maxDepth = 0,
|
|
386
|
+
if (x.tokens === !0 && (D.maxDepth = 0, F($) || m.push(f), D.tokens = m), x.parts === !0 || x.tokens === !0) {
|
|
387
387
|
let V;
|
|
388
388
|
for (let Y = 0; Y < S.length; Y++) {
|
|
389
|
-
const fe = V ? V + 1 : G,
|
|
390
|
-
x.tokens && (Y === 0 && G !== 0 ? (m[Y].isPrefix = !0, m[Y].value = h) : m[Y].value =
|
|
389
|
+
const fe = V ? V + 1 : G, xe = S[Y], Ke = R.slice(fe, xe);
|
|
390
|
+
x.tokens && (Y === 0 && G !== 0 ? (m[Y].isPrefix = !0, m[Y].value = h) : m[Y].value = Ke, N(m[Y]), D.maxDepth += m[Y].depth), (Y !== 0 || Ke !== "") && Q.push(Ke), V = xe;
|
|
391
391
|
}
|
|
392
392
|
if (V && V + 1 < R.length) {
|
|
393
393
|
const Y = R.slice(V + 1);
|
|
@@ -396,13 +396,13 @@ function pr() {
|
|
|
396
396
|
D.slashes = S, D.parts = Q;
|
|
397
397
|
}
|
|
398
398
|
return D;
|
|
399
|
-
},
|
|
399
|
+
}, St;
|
|
400
400
|
}
|
|
401
|
-
var
|
|
402
|
-
function
|
|
403
|
-
if (
|
|
404
|
-
|
|
405
|
-
const e = /* @__PURE__ */
|
|
401
|
+
var Ct, fn;
|
|
402
|
+
function hr() {
|
|
403
|
+
if (fn) return Ct;
|
|
404
|
+
fn = 1;
|
|
405
|
+
const e = /* @__PURE__ */ ut(), t = /* @__PURE__ */ ft(), {
|
|
406
406
|
MAX_LENGTH: n,
|
|
407
407
|
POSIX_REGEX_SOURCE: r,
|
|
408
408
|
REGEX_NON_SPECIAL_CHARS: i,
|
|
@@ -484,7 +484,7 @@ function dr() {
|
|
|
484
484
|
return !0;
|
|
485
485
|
}
|
|
486
486
|
return !1;
|
|
487
|
-
},
|
|
487
|
+
}, C = (A, R = !0) => {
|
|
488
488
|
if (A[0] !== "+" && A[0] !== "*" || A[1] !== "(")
|
|
489
489
|
return;
|
|
490
490
|
let p = 0, x = 0, _ = 0, b = !1;
|
|
@@ -529,7 +529,7 @@ function dr() {
|
|
|
529
529
|
let R = 0;
|
|
530
530
|
const p = [];
|
|
531
531
|
for (; R < A.length; ) {
|
|
532
|
-
const _ =
|
|
532
|
+
const _ = C(A.slice(R), !1);
|
|
533
533
|
if (!_ || _.type !== "*")
|
|
534
534
|
return;
|
|
535
535
|
const b = u(_.body).map((m) => m.trim());
|
|
@@ -542,11 +542,11 @@ function dr() {
|
|
|
542
542
|
}
|
|
543
543
|
return p.length < 1 ? void 0 : `${p.length === 1 ? t.escapeRegex(p[0]) : `[${p.map((_) => t.escapeRegex(_)).join("")}]`}*`;
|
|
544
544
|
}, w = (A) => {
|
|
545
|
-
let R = 0, p = A.trim(), x =
|
|
545
|
+
let R = 0, p = A.trim(), x = C(p);
|
|
546
546
|
for (; x; )
|
|
547
|
-
R++, p = x.body.trim(), x =
|
|
547
|
+
R++, p = x.body.trim(), x = C(p);
|
|
548
548
|
return R;
|
|
549
|
-
},
|
|
549
|
+
}, F = (A, R) => {
|
|
550
550
|
if (R.maxExtglobRecursion === !1)
|
|
551
551
|
return { risky: !1 };
|
|
552
552
|
const p = typeof R.maxExtglobRecursion == "number" ? R.maxExtglobRecursion : e.DEFAULT_MAX_EXTGLOB_RECURSION, x = u(A).map((_) => _.trim());
|
|
@@ -569,20 +569,20 @@ function dr() {
|
|
|
569
569
|
if (_ > x)
|
|
570
570
|
throw new SyntaxError(`Input length: ${_}, exceeds maximum allowed length: ${x}`);
|
|
571
571
|
const b = { type: "bos", value: "", output: p.prepend || "" }, S = [b], m = p.capture ? "" : "?:", Q = e.globChars(p.windows), W = e.extglobChars(Q), {
|
|
572
|
-
DOT_LITERAL:
|
|
572
|
+
DOT_LITERAL: P,
|
|
573
573
|
PLUS_LITERAL: G,
|
|
574
574
|
SLASH_LITERAL: J,
|
|
575
575
|
ONE_CHAR: le,
|
|
576
576
|
DOTS_SLASH: ce,
|
|
577
577
|
NO_DOT: j,
|
|
578
|
-
NO_DOT_SLASH:
|
|
579
|
-
NO_DOTS_SLASH:
|
|
578
|
+
NO_DOT_SLASH: Ee,
|
|
579
|
+
NO_DOTS_SLASH: Re,
|
|
580
580
|
QMARK: B,
|
|
581
|
-
QMARK_NO_DOT:
|
|
582
|
-
STAR:
|
|
583
|
-
START_ANCHOR:
|
|
584
|
-
} = Q, K = (v) => `(${m}(?:(?!${
|
|
585
|
-
let $ = p.bash === !0 ? K(p) :
|
|
581
|
+
QMARK_NO_DOT: oe,
|
|
582
|
+
STAR: be,
|
|
583
|
+
START_ANCHOR: ke
|
|
584
|
+
} = Q, K = (v) => `(${m}(?:(?!${ke}${v.dot ? ce : P}).)*?)`, ae = p.dot ? "" : j, me = p.dot ? B : oe;
|
|
585
|
+
let $ = p.bash === !0 ? K(p) : be;
|
|
586
586
|
p.capture && ($ = `(${$})`), typeof p.noext == "boolean" && (p.noextglob = p.noext);
|
|
587
587
|
const f = {
|
|
588
588
|
input: A,
|
|
@@ -606,40 +606,40 @@ function dr() {
|
|
|
606
606
|
let d = b, h;
|
|
607
607
|
const ue = () => f.index === _ - 1, D = f.peek = (v = 1) => A[f.index + v], V = f.advance = () => A[++f.index] || "", Y = () => A.slice(f.index + 1), fe = (v = "", q = 0) => {
|
|
608
608
|
f.consumed += v, f.index += q;
|
|
609
|
-
},
|
|
609
|
+
}, xe = (v) => {
|
|
610
610
|
f.output += v.output != null ? v.output : v.value, fe(v.value);
|
|
611
|
-
},
|
|
611
|
+
}, Ke = () => {
|
|
612
612
|
let v = 1;
|
|
613
613
|
for (; D() === "!" && (D(2) !== "(" || D(3) === "?"); )
|
|
614
614
|
V(), f.start++, v++;
|
|
615
615
|
return v % 2 === 0 ? !1 : (f.negated = !0, f.start++, !0);
|
|
616
|
-
},
|
|
616
|
+
}, Je = (v) => {
|
|
617
617
|
f[v]++, ee.push(v);
|
|
618
|
-
},
|
|
618
|
+
}, Se = (v) => {
|
|
619
619
|
f[v]--, ee.pop();
|
|
620
620
|
}, L = (v) => {
|
|
621
621
|
if (d.type === "globstar") {
|
|
622
|
-
const q = f.braces > 0 && (v.type === "comma" || v.type === "brace"),
|
|
623
|
-
v.type !== "slash" && v.type !== "paren" && !q && !
|
|
622
|
+
const q = f.braces > 0 && (v.type === "comma" || v.type === "brace"), T = v.extglob === !0 || Z.length && (v.type === "pipe" || v.type === "paren");
|
|
623
|
+
v.type !== "slash" && v.type !== "paren" && !q && !T && (f.output = f.output.slice(0, -d.output.length), d.type = "star", d.value = "*", d.output = $, f.output += d.output);
|
|
624
624
|
}
|
|
625
|
-
if (Z.length && v.type !== "paren" && (Z[Z.length - 1].inner += v.value), (v.value || v.output) &&
|
|
625
|
+
if (Z.length && v.type !== "paren" && (Z[Z.length - 1].inner += v.value), (v.value || v.output) && xe(v), d && d.type === "text" && v.type === "text") {
|
|
626
626
|
d.output = (d.output || d.value) + v.value, d.value += v.value;
|
|
627
627
|
return;
|
|
628
628
|
}
|
|
629
629
|
v.prev = d, S.push(v), d = v;
|
|
630
|
-
},
|
|
631
|
-
const
|
|
632
|
-
|
|
633
|
-
const k = (p.capture ? "(" : "") +
|
|
634
|
-
|
|
635
|
-
},
|
|
636
|
-
const q = A.slice(v.startIndex, f.index + 1),
|
|
630
|
+
}, et = (v, q) => {
|
|
631
|
+
const T = { ...W[q], conditions: 1, inner: "" };
|
|
632
|
+
T.prev = d, T.parens = f.parens, T.output = f.output, T.startIndex = f.index, T.tokensIndex = S.length;
|
|
633
|
+
const k = (p.capture ? "(" : "") + T.open;
|
|
634
|
+
Je("parens"), L({ type: v, value: q, output: f.output ? "" : le }), L({ type: "paren", extglob: !0, value: V(), output: k }), Z.push(T);
|
|
635
|
+
}, ur = (v) => {
|
|
636
|
+
const q = A.slice(v.startIndex, f.index + 1), T = A.slice(v.startIndex + 2, f.index), k = F(T, p);
|
|
637
637
|
if ((v.type === "plus" || v.type === "star") && k.risky) {
|
|
638
638
|
const M = k.safeOutput ? (v.output ? "" : le) + (p.capture ? `(${k.safeOutput})` : k.safeOutput) : void 0, he = S[v.tokensIndex];
|
|
639
639
|
he.type = "text", he.value = q, he.output = M || t.escapeRegex(q);
|
|
640
640
|
for (let ge = v.tokensIndex + 1; ge < S.length; ge++)
|
|
641
641
|
S[ge].value = "", S[ge].output = "", delete S[ge].suffix;
|
|
642
|
-
f.output = v.output + he.output, f.backtrack = !0, L({ type: "paren", extglob: !0, value: h, output: "" }),
|
|
642
|
+
f.output = v.output + he.output, f.backtrack = !0, L({ type: "paren", extglob: !0, value: h, output: "" }), Se("parens");
|
|
643
643
|
return;
|
|
644
644
|
}
|
|
645
645
|
let U = v.close + (p.capture ? ")" : ""), X;
|
|
@@ -651,20 +651,20 @@ function dr() {
|
|
|
651
651
|
}
|
|
652
652
|
v.prev.type === "bos" && (f.negatedExtglob = !0);
|
|
653
653
|
}
|
|
654
|
-
L({ type: "paren", extglob: !0, value: h, output: U }),
|
|
654
|
+
L({ type: "paren", extglob: !0, value: h, output: U }), Se("parens");
|
|
655
655
|
};
|
|
656
656
|
if (p.fastpaths !== !1 && !/(^[*!]|[/()[\]{}"])/.test(A)) {
|
|
657
|
-
let v = !1, q = A.replace(o, (
|
|
658
|
-
return v === !0 && (p.unescape === !0 ? q = q.replace(/\\/g, "") : q = q.replace(/\\+/g, (
|
|
657
|
+
let v = !1, q = A.replace(o, (T, k, U, X, M, he) => X === "\\" ? (v = !0, T) : X === "?" ? k ? k + X + (M ? B.repeat(M.length) : "") : he === 0 ? me + (M ? B.repeat(M.length) : "") : B.repeat(U.length) : X === "." ? P.repeat(U.length) : X === "*" ? k ? k + X + (M ? $ : "") : $ : k ? T : `\\${T}`);
|
|
658
|
+
return v === !0 && (p.unescape === !0 ? q = q.replace(/\\/g, "") : q = q.replace(/\\+/g, (T) => T.length % 2 === 0 ? "\\\\" : T ? "\\" : "")), q === A && p.contains === !0 ? (f.output = A, f) : (f.output = t.wrapOutput(q, f, R), f);
|
|
659
659
|
}
|
|
660
660
|
for (; !ue(); ) {
|
|
661
661
|
if (h = V(), h === "\0")
|
|
662
662
|
continue;
|
|
663
663
|
if (h === "\\") {
|
|
664
|
-
const
|
|
665
|
-
if (
|
|
664
|
+
const T = D();
|
|
665
|
+
if (T === "/" && p.bash !== !0 || T === "." || T === ";")
|
|
666
666
|
continue;
|
|
667
|
-
if (!
|
|
667
|
+
if (!T) {
|
|
668
668
|
h += "\\", L({ type: "text", value: h });
|
|
669
669
|
continue;
|
|
670
670
|
}
|
|
@@ -677,8 +677,8 @@ function dr() {
|
|
|
677
677
|
}
|
|
678
678
|
if (f.brackets > 0 && (h !== "]" || d.value === "[" || d.value === "[^")) {
|
|
679
679
|
if (p.posix !== !1 && h === ":") {
|
|
680
|
-
const
|
|
681
|
-
if (
|
|
680
|
+
const T = d.value.slice(1);
|
|
681
|
+
if (T.includes("[") && (d.posix = !0, T.includes(":"))) {
|
|
682
682
|
const k = d.value.lastIndexOf("["), U = d.value.slice(0, k), X = d.value.slice(k + 2), M = r[X];
|
|
683
683
|
if (M) {
|
|
684
684
|
d.value = U + M, f.backtrack = !0, V(), !b.output && S.indexOf(d) === 1 && (b.output = le);
|
|
@@ -686,11 +686,11 @@ function dr() {
|
|
|
686
686
|
}
|
|
687
687
|
}
|
|
688
688
|
}
|
|
689
|
-
(h === "[" && D() !== ":" || h === "-" && D() === "]") && (h = `\\${h}`), h === "]" && (d.value === "[" || d.value === "[^") && (h = `\\${h}`), p.posix === !0 && h === "!" && d.value === "[" && (h = "^"), d.value += h,
|
|
689
|
+
(h === "[" && D() !== ":" || h === "-" && D() === "]") && (h = `\\${h}`), h === "]" && (d.value === "[" || d.value === "[^") && (h = `\\${h}`), p.posix === !0 && h === "!" && d.value === "[" && (h = "^"), d.value += h, xe({ value: h });
|
|
690
690
|
continue;
|
|
691
691
|
}
|
|
692
692
|
if (f.quotes === 1 && h !== '"') {
|
|
693
|
-
h = t.escapeRegex(h), d.value += h,
|
|
693
|
+
h = t.escapeRegex(h), d.value += h, xe({ value: h });
|
|
694
694
|
continue;
|
|
695
695
|
}
|
|
696
696
|
if (h === '"') {
|
|
@@ -698,18 +698,18 @@ function dr() {
|
|
|
698
698
|
continue;
|
|
699
699
|
}
|
|
700
700
|
if (h === "(") {
|
|
701
|
-
|
|
701
|
+
Je("parens"), L({ type: "paren", value: h });
|
|
702
702
|
continue;
|
|
703
703
|
}
|
|
704
704
|
if (h === ")") {
|
|
705
705
|
if (f.parens === 0 && p.strictBrackets === !0)
|
|
706
706
|
throw new SyntaxError(l("opening", "("));
|
|
707
|
-
const
|
|
708
|
-
if (
|
|
709
|
-
|
|
707
|
+
const T = Z[Z.length - 1];
|
|
708
|
+
if (T && f.parens === T.parens + 1) {
|
|
709
|
+
ur(Z.pop());
|
|
710
710
|
continue;
|
|
711
711
|
}
|
|
712
|
-
L({ type: "paren", value: h, output: f.parens ? ")" : "\\)" }),
|
|
712
|
+
L({ type: "paren", value: h, output: f.parens ? ")" : "\\)" }), Se("parens");
|
|
713
713
|
continue;
|
|
714
714
|
}
|
|
715
715
|
if (h === "[") {
|
|
@@ -718,7 +718,7 @@ function dr() {
|
|
|
718
718
|
throw new SyntaxError(l("closing", "]"));
|
|
719
719
|
h = `\\${h}`;
|
|
720
720
|
} else
|
|
721
|
-
|
|
721
|
+
Je("brackets");
|
|
722
722
|
L({ type: "bracket", value: h });
|
|
723
723
|
continue;
|
|
724
724
|
}
|
|
@@ -733,9 +733,9 @@ function dr() {
|
|
|
733
733
|
L({ type: "text", value: h, output: `\\${h}` });
|
|
734
734
|
continue;
|
|
735
735
|
}
|
|
736
|
-
|
|
737
|
-
const
|
|
738
|
-
if (d.posix !== !0 &&
|
|
736
|
+
Se("brackets");
|
|
737
|
+
const T = d.value.slice(1);
|
|
738
|
+
if (d.posix !== !0 && T[0] === "^" && !T.includes("/") && (h = `/${h}`), d.value += h, xe({ value: h }), p.literalBrackets === !1 || t.hasRegexChars(T))
|
|
739
739
|
continue;
|
|
740
740
|
const k = t.escapeRegex(d.value);
|
|
741
741
|
if (f.output = f.output.slice(0, -d.value.length), p.literalBrackets === !0) {
|
|
@@ -746,37 +746,37 @@ function dr() {
|
|
|
746
746
|
continue;
|
|
747
747
|
}
|
|
748
748
|
if (h === "{" && p.nobrace !== !0) {
|
|
749
|
-
|
|
750
|
-
const
|
|
749
|
+
Je("braces");
|
|
750
|
+
const T = {
|
|
751
751
|
type: "brace",
|
|
752
752
|
value: h,
|
|
753
753
|
output: "(",
|
|
754
754
|
outputIndex: f.output.length,
|
|
755
755
|
tokensIndex: f.tokens.length
|
|
756
756
|
};
|
|
757
|
-
de.push(
|
|
757
|
+
de.push(T), L(T);
|
|
758
758
|
continue;
|
|
759
759
|
}
|
|
760
760
|
if (h === "}") {
|
|
761
|
-
const
|
|
762
|
-
if (p.nobrace === !0 || !
|
|
761
|
+
const T = de[de.length - 1];
|
|
762
|
+
if (p.nobrace === !0 || !T) {
|
|
763
763
|
L({ type: "text", value: h, output: h });
|
|
764
764
|
continue;
|
|
765
765
|
}
|
|
766
766
|
let k = ")";
|
|
767
|
-
if (
|
|
767
|
+
if (T.dots === !0) {
|
|
768
768
|
const U = S.slice(), X = [];
|
|
769
769
|
for (let M = U.length - 1; M >= 0 && (S.pop(), U[M].type !== "brace"); M--)
|
|
770
770
|
U[M].type !== "dots" && X.unshift(U[M].value);
|
|
771
771
|
k = s(X, p), f.backtrack = !0;
|
|
772
772
|
}
|
|
773
|
-
if (
|
|
774
|
-
const U = f.output.slice(0,
|
|
775
|
-
|
|
773
|
+
if (T.comma !== !0 && T.dots !== !0) {
|
|
774
|
+
const U = f.output.slice(0, T.outputIndex), X = f.tokens.slice(T.tokensIndex);
|
|
775
|
+
T.value = T.output = "\\{", h = k = "\\}", f.output = U;
|
|
776
776
|
for (const M of X)
|
|
777
777
|
f.output += M.output || M.value;
|
|
778
778
|
}
|
|
779
|
-
L({ type: "brace", value: h, output: k }),
|
|
779
|
+
L({ type: "brace", value: h, output: k }), Se("braces"), de.pop();
|
|
780
780
|
continue;
|
|
781
781
|
}
|
|
782
782
|
if (h === "|") {
|
|
@@ -784,9 +784,9 @@ function dr() {
|
|
|
784
784
|
continue;
|
|
785
785
|
}
|
|
786
786
|
if (h === ",") {
|
|
787
|
-
let
|
|
787
|
+
let T = h;
|
|
788
788
|
const k = de[de.length - 1];
|
|
789
|
-
k && ee[ee.length - 1] === "braces" && (k.comma = !0,
|
|
789
|
+
k && ee[ee.length - 1] === "braces" && (k.comma = !0, T = "|"), L({ type: "comma", value: h, output: T });
|
|
790
790
|
continue;
|
|
791
791
|
}
|
|
792
792
|
if (h === "/") {
|
|
@@ -799,21 +799,21 @@ function dr() {
|
|
|
799
799
|
}
|
|
800
800
|
if (h === ".") {
|
|
801
801
|
if (f.braces > 0 && d.type === "dot") {
|
|
802
|
-
d.value === "." && (d.output =
|
|
803
|
-
const
|
|
804
|
-
d.type = "dots", d.output += h, d.value += h,
|
|
802
|
+
d.value === "." && (d.output = P);
|
|
803
|
+
const T = de[de.length - 1];
|
|
804
|
+
d.type = "dots", d.output += h, d.value += h, T.dots = !0;
|
|
805
805
|
continue;
|
|
806
806
|
}
|
|
807
807
|
if (f.braces + f.parens === 0 && d.type !== "bos" && d.type !== "slash") {
|
|
808
|
-
L({ type: "text", value: h, output:
|
|
808
|
+
L({ type: "text", value: h, output: P });
|
|
809
809
|
continue;
|
|
810
810
|
}
|
|
811
|
-
L({ type: "dot", value: h, output:
|
|
811
|
+
L({ type: "dot", value: h, output: P });
|
|
812
812
|
continue;
|
|
813
813
|
}
|
|
814
814
|
if (h === "?") {
|
|
815
815
|
if (!(d && d.value === "(") && p.noextglob !== !0 && D() === "(" && D(2) !== "?") {
|
|
816
|
-
|
|
816
|
+
et("qmark", h);
|
|
817
817
|
continue;
|
|
818
818
|
}
|
|
819
819
|
if (d && d.type === "paren") {
|
|
@@ -823,7 +823,7 @@ function dr() {
|
|
|
823
823
|
continue;
|
|
824
824
|
}
|
|
825
825
|
if (p.dot !== !0 && (d.type === "slash" || d.type === "bos")) {
|
|
826
|
-
L({ type: "qmark", value: h, output:
|
|
826
|
+
L({ type: "qmark", value: h, output: oe });
|
|
827
827
|
continue;
|
|
828
828
|
}
|
|
829
829
|
L({ type: "qmark", value: h, output: B });
|
|
@@ -831,17 +831,17 @@ function dr() {
|
|
|
831
831
|
}
|
|
832
832
|
if (h === "!") {
|
|
833
833
|
if (p.noextglob !== !0 && D() === "(" && (D(2) !== "?" || !/[!=<:]/.test(D(3)))) {
|
|
834
|
-
|
|
834
|
+
et("negate", h);
|
|
835
835
|
continue;
|
|
836
836
|
}
|
|
837
837
|
if (p.nonegate !== !0 && f.index === 0) {
|
|
838
|
-
|
|
838
|
+
Ke();
|
|
839
839
|
continue;
|
|
840
840
|
}
|
|
841
841
|
}
|
|
842
842
|
if (h === "+") {
|
|
843
843
|
if (p.noextglob !== !0 && D() === "(" && D(2) !== "?") {
|
|
844
|
-
|
|
844
|
+
et("plus", h);
|
|
845
845
|
continue;
|
|
846
846
|
}
|
|
847
847
|
if (d && d.value === "(" || p.regex === !1) {
|
|
@@ -865,8 +865,8 @@ function dr() {
|
|
|
865
865
|
}
|
|
866
866
|
if (h !== "*") {
|
|
867
867
|
(h === "$" || h === "^") && (h = `\\${h}`);
|
|
868
|
-
const
|
|
869
|
-
|
|
868
|
+
const T = i.exec(Y());
|
|
869
|
+
T && (h += T[0], f.index += T[0].length), L({ type: "text", value: h });
|
|
870
870
|
continue;
|
|
871
871
|
}
|
|
872
872
|
if (d && (d.type === "globstar" || d.star === !0)) {
|
|
@@ -875,7 +875,7 @@ function dr() {
|
|
|
875
875
|
}
|
|
876
876
|
let v = Y();
|
|
877
877
|
if (p.noextglob !== !0 && /^\([^?]/.test(v)) {
|
|
878
|
-
|
|
878
|
+
et("star", h);
|
|
879
879
|
continue;
|
|
880
880
|
}
|
|
881
881
|
if (d.type === "star") {
|
|
@@ -883,13 +883,13 @@ function dr() {
|
|
|
883
883
|
fe(h);
|
|
884
884
|
continue;
|
|
885
885
|
}
|
|
886
|
-
const
|
|
886
|
+
const T = d.prev, k = T.prev, U = T.type === "slash" || T.type === "bos", X = k && (k.type === "star" || k.type === "globstar");
|
|
887
887
|
if (p.bash === !0 && (!U || v[0] && v[0] !== "/")) {
|
|
888
888
|
L({ type: "star", value: h, output: "" });
|
|
889
889
|
continue;
|
|
890
890
|
}
|
|
891
|
-
const M = f.braces > 0 && (
|
|
892
|
-
if (!U &&
|
|
891
|
+
const M = f.braces > 0 && (T.type === "comma" || T.type === "brace"), he = Z.length && (T.type === "pipe" || T.type === "paren");
|
|
892
|
+
if (!U && T.type !== "paren" && !M && !he) {
|
|
893
893
|
L({ type: "star", value: h, output: "" });
|
|
894
894
|
continue;
|
|
895
895
|
}
|
|
@@ -899,20 +899,20 @@ function dr() {
|
|
|
899
899
|
break;
|
|
900
900
|
v = v.slice(3), fe("/**", 3);
|
|
901
901
|
}
|
|
902
|
-
if (
|
|
902
|
+
if (T.type === "bos" && ue()) {
|
|
903
903
|
d.type = "globstar", d.value += h, d.output = K(p), f.output = d.output, f.globstar = !0, fe(h);
|
|
904
904
|
continue;
|
|
905
905
|
}
|
|
906
|
-
if (
|
|
907
|
-
f.output = f.output.slice(0, -(
|
|
906
|
+
if (T.type === "slash" && T.prev.type !== "bos" && !X && ue()) {
|
|
907
|
+
f.output = f.output.slice(0, -(T.output + d.output).length), T.output = `(?:${T.output}`, d.type = "globstar", d.output = K(p) + (p.strictSlashes ? ")" : "|$)"), d.value += h, f.globstar = !0, f.output += T.output + d.output, fe(h);
|
|
908
908
|
continue;
|
|
909
909
|
}
|
|
910
|
-
if (
|
|
910
|
+
if (T.type === "slash" && T.prev.type !== "bos" && v[0] === "/") {
|
|
911
911
|
const ge = v[1] !== void 0 ? "|$" : "";
|
|
912
|
-
f.output = f.output.slice(0, -(
|
|
912
|
+
f.output = f.output.slice(0, -(T.output + d.output).length), T.output = `(?:${T.output}`, d.type = "globstar", d.output = `${K(p)}${J}|${J}${ge})`, d.value += h, f.output += T.output + d.output, f.globstar = !0, fe(h + V()), L({ type: "slash", value: "/", output: "" });
|
|
913
913
|
continue;
|
|
914
914
|
}
|
|
915
|
-
if (
|
|
915
|
+
if (T.type === "bos" && v[0] === "/") {
|
|
916
916
|
d.type = "globstar", d.value += h, d.output = `(?:^|${J}|${K(p)}${J})`, f.output = d.output, f.globstar = !0, fe(h + V()), L({ type: "slash", value: "/", output: "" });
|
|
917
917
|
continue;
|
|
918
918
|
}
|
|
@@ -921,26 +921,26 @@ function dr() {
|
|
|
921
921
|
}
|
|
922
922
|
const q = { type: "star", value: h, output: $ };
|
|
923
923
|
if (p.bash === !0) {
|
|
924
|
-
q.output = ".*?", (d.type === "bos" || d.type === "slash") && (q.output =
|
|
924
|
+
q.output = ".*?", (d.type === "bos" || d.type === "slash") && (q.output = ae + q.output), L(q);
|
|
925
925
|
continue;
|
|
926
926
|
}
|
|
927
927
|
if (d && (d.type === "bracket" || d.type === "paren") && p.regex === !0) {
|
|
928
928
|
q.output = h, L(q);
|
|
929
929
|
continue;
|
|
930
930
|
}
|
|
931
|
-
(f.index === f.start || d.type === "slash" || d.type === "dot") && (d.type === "dot" ? (f.output +=
|
|
931
|
+
(f.index === f.start || d.type === "slash" || d.type === "dot") && (d.type === "dot" ? (f.output += Ee, d.output += Ee) : p.dot === !0 ? (f.output += Re, d.output += Re) : (f.output += ae, d.output += ae), D() !== "*" && (f.output += le, d.output += le)), L(q);
|
|
932
932
|
}
|
|
933
933
|
for (; f.brackets > 0; ) {
|
|
934
934
|
if (p.strictBrackets === !0) throw new SyntaxError(l("closing", "]"));
|
|
935
|
-
f.output = t.escapeLast(f.output, "["),
|
|
935
|
+
f.output = t.escapeLast(f.output, "["), Se("brackets");
|
|
936
936
|
}
|
|
937
937
|
for (; f.parens > 0; ) {
|
|
938
938
|
if (p.strictBrackets === !0) throw new SyntaxError(l("closing", ")"));
|
|
939
|
-
f.output = t.escapeLast(f.output, "("),
|
|
939
|
+
f.output = t.escapeLast(f.output, "("), Se("parens");
|
|
940
940
|
}
|
|
941
941
|
for (; f.braces > 0; ) {
|
|
942
942
|
if (p.strictBrackets === !0) throw new SyntaxError(l("closing", "}"));
|
|
943
|
-
f.output = t.escapeLast(f.output, "{"),
|
|
943
|
+
f.output = t.escapeLast(f.output, "{"), Se("braces");
|
|
944
944
|
}
|
|
945
945
|
if (p.strictSlashes !== !0 && (d.type === "star" || d.type === "bracket") && L({ type: "maybe_slash", value: "", output: `${J}?` }), f.backtrack === !0) {
|
|
946
946
|
f.output = "";
|
|
@@ -960,15 +960,15 @@ function dr() {
|
|
|
960
960
|
ONE_CHAR: m,
|
|
961
961
|
DOTS_SLASH: Q,
|
|
962
962
|
NO_DOT: W,
|
|
963
|
-
NO_DOTS:
|
|
963
|
+
NO_DOTS: P,
|
|
964
964
|
NO_DOTS_SLASH: G,
|
|
965
965
|
STAR: J,
|
|
966
966
|
START_ANCHOR: le
|
|
967
|
-
} = e.globChars(p.windows), ce = p.dot ?
|
|
967
|
+
} = e.globChars(p.windows), ce = p.dot ? P : W, j = p.dot ? G : W, Ee = p.capture ? "" : "?:", Re = { negated: !1, prefix: "" };
|
|
968
968
|
let B = p.bash === !0 ? ".*?" : J;
|
|
969
969
|
p.capture && (B = `(${B})`);
|
|
970
|
-
const
|
|
971
|
-
switch (
|
|
970
|
+
const oe = (ae) => ae.noglobstar === !0 ? B : `(${Ee}(?:(?!${le}${ae.dot ? Q : b}).)*?)`, be = (ae) => {
|
|
971
|
+
switch (ae) {
|
|
972
972
|
case "*":
|
|
973
973
|
return `${ce}${m}${B}`;
|
|
974
974
|
case ".*":
|
|
@@ -978,34 +978,34 @@ function dr() {
|
|
|
978
978
|
case "*/*":
|
|
979
979
|
return `${ce}${B}${S}${m}${j}${B}`;
|
|
980
980
|
case "**":
|
|
981
|
-
return ce +
|
|
981
|
+
return ce + oe(p);
|
|
982
982
|
case "**/*":
|
|
983
|
-
return `(?:${ce}${
|
|
983
|
+
return `(?:${ce}${oe(p)}${S})?${j}${m}${B}`;
|
|
984
984
|
case "**/*.*":
|
|
985
|
-
return `(?:${ce}${
|
|
985
|
+
return `(?:${ce}${oe(p)}${S})?${j}${B}${b}${m}${B}`;
|
|
986
986
|
case "**/.*":
|
|
987
|
-
return `(?:${ce}${
|
|
987
|
+
return `(?:${ce}${oe(p)}${S})?${b}${m}${B}`;
|
|
988
988
|
default: {
|
|
989
|
-
const me = /^(.*?)\.(\w+)$/.exec(
|
|
989
|
+
const me = /^(.*?)\.(\w+)$/.exec(ae);
|
|
990
990
|
if (!me) return;
|
|
991
|
-
const $ =
|
|
991
|
+
const $ = be(me[1]);
|
|
992
992
|
return $ ? $ + b + me[2] : void 0;
|
|
993
993
|
}
|
|
994
994
|
}
|
|
995
|
-
},
|
|
996
|
-
let K =
|
|
995
|
+
}, ke = t.removePrefix(A, Re);
|
|
996
|
+
let K = be(ke);
|
|
997
997
|
return K && p.strictSlashes !== !0 && (K += `${S}?`), K;
|
|
998
|
-
},
|
|
998
|
+
}, Ct = N, Ct;
|
|
999
999
|
}
|
|
1000
|
-
var
|
|
1001
|
-
function
|
|
1002
|
-
if (
|
|
1003
|
-
|
|
1004
|
-
const e = /* @__PURE__ */
|
|
1000
|
+
var Tt, pn;
|
|
1001
|
+
function gr() {
|
|
1002
|
+
if (pn) return Tt;
|
|
1003
|
+
pn = 1;
|
|
1004
|
+
const e = /* @__PURE__ */ dr(), t = /* @__PURE__ */ hr(), n = /* @__PURE__ */ ft(), r = /* @__PURE__ */ ut(), i = (a) => a && typeof a == "object" && !Array.isArray(a), o = (a, s, l = !1) => {
|
|
1005
1005
|
if (Array.isArray(a)) {
|
|
1006
|
-
const
|
|
1006
|
+
const F = a.map((A) => o(A, s, l));
|
|
1007
1007
|
return (A) => {
|
|
1008
|
-
for (const R of
|
|
1008
|
+
for (const R of F) {
|
|
1009
1009
|
const p = R(A);
|
|
1010
1010
|
if (p) return p;
|
|
1011
1011
|
}
|
|
@@ -1015,18 +1015,18 @@ function hr() {
|
|
|
1015
1015
|
const u = i(a) && a.tokens && a.input;
|
|
1016
1016
|
if (a === "" || typeof a != "string" && !u)
|
|
1017
1017
|
throw new TypeError("Expected pattern to be a non-empty string");
|
|
1018
|
-
const c = s || {}, y = c.windows, g = u ? o.compileRe(a, s) : o.makeRe(a, s, !1, !0),
|
|
1018
|
+
const c = s || {}, y = c.windows, g = u ? o.compileRe(a, s) : o.makeRe(a, s, !1, !0), C = g.state;
|
|
1019
1019
|
delete g.state;
|
|
1020
1020
|
let E = () => !1;
|
|
1021
1021
|
if (c.ignore) {
|
|
1022
|
-
const
|
|
1023
|
-
E = o(c.ignore,
|
|
1022
|
+
const F = { ...s, ignore: null, onMatch: null, onResult: null };
|
|
1023
|
+
E = o(c.ignore, F, l);
|
|
1024
1024
|
}
|
|
1025
|
-
const w = (
|
|
1026
|
-
const { isMatch: A, match: R, output: p } = o.test(
|
|
1027
|
-
return typeof c.onResult == "function" && c.onResult(x), A === !1 ? (x.isMatch = !1, N ? x : !1) : E(
|
|
1025
|
+
const w = (F, N = !1) => {
|
|
1026
|
+
const { isMatch: A, match: R, output: p } = o.test(F, g, s, { glob: a, posix: y }), x = { glob: a, state: C, regex: g, posix: y, input: F, output: p, match: R, isMatch: A };
|
|
1027
|
+
return typeof c.onResult == "function" && c.onResult(x), A === !1 ? (x.isMatch = !1, N ? x : !1) : E(F) ? (typeof c.onIgnore == "function" && c.onIgnore(x), x.isMatch = !1, N ? x : !1) : (typeof c.onMatch == "function" && c.onMatch(x), N ? x : !0);
|
|
1028
1028
|
};
|
|
1029
|
-
return l && (w.state =
|
|
1029
|
+
return l && (w.state = C), w;
|
|
1030
1030
|
};
|
|
1031
1031
|
return o.test = (a, s, l, { glob: u, posix: c } = {}) => {
|
|
1032
1032
|
if (typeof a != "string")
|
|
@@ -1034,15 +1034,15 @@ function hr() {
|
|
|
1034
1034
|
if (a === "")
|
|
1035
1035
|
return { isMatch: !1, output: "" };
|
|
1036
1036
|
const y = l || {}, g = y.format || (c ? n.toPosixSlashes : null);
|
|
1037
|
-
let
|
|
1038
|
-
return
|
|
1037
|
+
let C = a === u, E = C && g ? g(a) : a;
|
|
1038
|
+
return C === !1 && (E = g ? g(a) : a, C = E === u), (C === !1 || y.capture === !0) && (y.matchBase === !0 || y.basename === !0 ? C = o.matchBase(a, s, l, c) : C = s.exec(E)), { isMatch: !!C, match: C, output: E };
|
|
1039
1039
|
}, o.matchBase = (a, s, l) => (s instanceof RegExp ? s : o.makeRe(s, l)).test(n.basename(a)), o.isMatch = (a, s, l) => o(s, l)(a), o.parse = (a, s) => Array.isArray(a) ? a.map((l) => o.parse(l, s)) : t(a, { ...s, fastpaths: !1 }), o.scan = (a, s) => e(a, s), o.compileRe = (a, s, l = !1, u = !1) => {
|
|
1040
1040
|
if (l === !0)
|
|
1041
1041
|
return a.output;
|
|
1042
1042
|
const c = s || {}, y = c.contains ? "" : "^", g = c.contains ? "" : "$";
|
|
1043
|
-
let
|
|
1044
|
-
a && a.negated === !0 && (
|
|
1045
|
-
const E = o.toRegex(
|
|
1043
|
+
let C = `${y}(?:${a.output})${g}`;
|
|
1044
|
+
a && a.negated === !0 && (C = `^(?!${C}).*$`);
|
|
1045
|
+
const E = o.toRegex(C, s);
|
|
1046
1046
|
return u === !0 && (E.state = a), E;
|
|
1047
1047
|
}, o.makeRe = (a, s = {}, l = !1, u = !1) => {
|
|
1048
1048
|
if (!a || typeof a != "string")
|
|
@@ -1057,24 +1057,24 @@ function hr() {
|
|
|
1057
1057
|
if (s && s.debug === !0) throw l;
|
|
1058
1058
|
return /$^/;
|
|
1059
1059
|
}
|
|
1060
|
-
}, o.constants = r,
|
|
1060
|
+
}, o.constants = r, Tt = o, Tt;
|
|
1061
1061
|
}
|
|
1062
|
-
var
|
|
1063
|
-
function
|
|
1064
|
-
if (
|
|
1065
|
-
|
|
1066
|
-
const e = /* @__PURE__ */
|
|
1062
|
+
var vt, dn;
|
|
1063
|
+
function mr() {
|
|
1064
|
+
if (dn) return vt;
|
|
1065
|
+
dn = 1;
|
|
1066
|
+
const e = /* @__PURE__ */ gr(), t = /* @__PURE__ */ ft();
|
|
1067
1067
|
function n(r, i, o = !1) {
|
|
1068
1068
|
return i && (i.windows === null || i.windows === void 0) && (i = { ...i, windows: t.isWindows() }), e(r, i, o);
|
|
1069
1069
|
}
|
|
1070
|
-
return Object.assign(n, e),
|
|
1070
|
+
return Object.assign(n, e), vt = n, vt;
|
|
1071
1071
|
}
|
|
1072
|
-
var
|
|
1073
|
-
const
|
|
1074
|
-
async function
|
|
1072
|
+
var Ar = /* @__PURE__ */ mr();
|
|
1073
|
+
const yr = /* @__PURE__ */ fr(Ar), Er = typeof window < "u" || typeof process > "u" || process?.platform === "browser", Sr = Er ? {} : process.env || {};
|
|
1074
|
+
async function Cr(e, t) {
|
|
1075
1075
|
const n = {};
|
|
1076
1076
|
for (const i of t.headers)
|
|
1077
|
-
|
|
1077
|
+
Tr(e, i.matches) && (n[i.name] = i.envVariable !== void 0 ? Sr[i.envVariable] || "" : i.value);
|
|
1078
1078
|
const r = await (t.customFetch || fetch)(e, {
|
|
1079
1079
|
headers: n
|
|
1080
1080
|
});
|
|
@@ -1082,10 +1082,10 @@ async function Sr(e, t) {
|
|
|
1082
1082
|
throw new Error(`Failed to load ${e}: ${r.status} ${r.statusText}`);
|
|
1083
1083
|
return { body: await r.text(), mimeType: r.headers.get("content-type") };
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1086
|
-
return t.match(/^https?:\/\//) || (e = e.replace(/^https?:\/\//, "")),
|
|
1085
|
+
function Tr(e, t) {
|
|
1086
|
+
return t.match(/^https?:\/\//) || (e = e.replace(/^https?:\/\//, "")), yr.isMatch(e, t);
|
|
1087
1087
|
}
|
|
1088
|
-
function
|
|
1088
|
+
function fa(e, t = {}) {
|
|
1089
1089
|
return {
|
|
1090
1090
|
name: `${e}List`,
|
|
1091
1091
|
properties: {},
|
|
@@ -1093,7 +1093,7 @@ function ua(e, t = {}) {
|
|
|
1093
1093
|
...t
|
|
1094
1094
|
};
|
|
1095
1095
|
}
|
|
1096
|
-
function
|
|
1096
|
+
function pa(e, t = {}) {
|
|
1097
1097
|
return {
|
|
1098
1098
|
name: `${e}Map`,
|
|
1099
1099
|
properties: {},
|
|
@@ -1101,13 +1101,13 @@ function fa(e, t = {}) {
|
|
|
1101
1101
|
...t
|
|
1102
1102
|
};
|
|
1103
1103
|
}
|
|
1104
|
-
const
|
|
1104
|
+
const rt = {
|
|
1105
1105
|
name: "SpecExtension",
|
|
1106
1106
|
properties: {},
|
|
1107
1107
|
// skip validation of additional properties for unknown extensions
|
|
1108
1108
|
additionalProperties: { resolvable: !0 }
|
|
1109
1109
|
};
|
|
1110
|
-
function
|
|
1110
|
+
function da(e, t = {}) {
|
|
1111
1111
|
const n = {};
|
|
1112
1112
|
for (const o of Object.keys(e))
|
|
1113
1113
|
n[o] = {
|
|
@@ -1116,7 +1116,7 @@ function pa(e, t = {}) {
|
|
|
1116
1116
|
};
|
|
1117
1117
|
for (const o of Object.values(n))
|
|
1118
1118
|
r(o);
|
|
1119
|
-
return n.SpecExtension =
|
|
1119
|
+
return n.SpecExtension = rt, n;
|
|
1120
1120
|
function r(o) {
|
|
1121
1121
|
if (o.additionalProperties && (o.additionalProperties = i(o.additionalProperties)), o.items && (o.items = i(o.items)), o.properties) {
|
|
1122
1122
|
const a = {};
|
|
@@ -1133,32 +1133,32 @@ function pa(e, t = {}) {
|
|
|
1133
1133
|
if (!n[o])
|
|
1134
1134
|
throw new Error(`Unknown type name found: ${o}`);
|
|
1135
1135
|
return n[o];
|
|
1136
|
-
} else return typeof o == "function" ? (a, s) => i(o(a, s)) :
|
|
1136
|
+
} else return typeof o == "function" ? (a, s) => i(o(a, s)) : it(o) ? (o = { ...o }, r(o), o) : o?.directResolveAs !== void 0 ? {
|
|
1137
1137
|
...o,
|
|
1138
1138
|
directResolveAs: i(o.directResolveAs) ?? void 0
|
|
1139
1139
|
} : o;
|
|
1140
1140
|
}
|
|
1141
1141
|
}
|
|
1142
|
-
function
|
|
1142
|
+
function it(e) {
|
|
1143
1143
|
return typeof e?.name == "string";
|
|
1144
1144
|
}
|
|
1145
|
-
function
|
|
1145
|
+
function Ce(e, t) {
|
|
1146
1146
|
return e === "" && (e = "#/"), e[e.length - 1] === "/" ? e + t : e + "/" + t;
|
|
1147
1147
|
}
|
|
1148
|
-
function
|
|
1149
|
-
return
|
|
1148
|
+
function Rt(e) {
|
|
1149
|
+
return Ie(e) && typeof e.$ref == "string";
|
|
1150
1150
|
}
|
|
1151
|
-
function
|
|
1152
|
-
return
|
|
1151
|
+
function vr(e) {
|
|
1152
|
+
return Ie(e) && typeof e.externalValue == "string";
|
|
1153
1153
|
}
|
|
1154
|
-
class
|
|
1154
|
+
class kn {
|
|
1155
1155
|
source;
|
|
1156
1156
|
pointer;
|
|
1157
1157
|
constructor(t, n) {
|
|
1158
1158
|
this.source = t, this.pointer = n;
|
|
1159
1159
|
}
|
|
1160
1160
|
child(t) {
|
|
1161
|
-
return new
|
|
1161
|
+
return new kn(this.source, Ce(this.pointer, (Array.isArray(t) ? t : [t]).map(Oe).join("/")));
|
|
1162
1162
|
}
|
|
1163
1163
|
key() {
|
|
1164
1164
|
return { ...this, reportOnKey: !0 };
|
|
@@ -1167,7 +1167,7 @@ class _n {
|
|
|
1167
1167
|
return this.source.absoluteRef + (this.pointer === "#/" ? "" : this.pointer);
|
|
1168
1168
|
}
|
|
1169
1169
|
}
|
|
1170
|
-
function
|
|
1170
|
+
function Rr(e) {
|
|
1171
1171
|
const t = e.indexOf("~") === -1 ? e : e.replaceAll("~1", "/").replaceAll("~0", "~");
|
|
1172
1172
|
try {
|
|
1173
1173
|
return decodeURIComponent(t);
|
|
@@ -1175,44 +1175,44 @@ function vr(e) {
|
|
|
1175
1175
|
return t;
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
1178
|
-
function
|
|
1178
|
+
function Oe(e) {
|
|
1179
1179
|
return typeof e == "number" || e.indexOf("/") === -1 && e.indexOf("~") === -1 ? e : e.replaceAll("~", "~0").replaceAll("/", "~1");
|
|
1180
1180
|
}
|
|
1181
|
-
function
|
|
1181
|
+
function br(e) {
|
|
1182
1182
|
const [t, n = ""] = e.split("#/");
|
|
1183
1183
|
return {
|
|
1184
1184
|
uri: (t.endsWith("#") ? t.slice(0, -1) : t) || null,
|
|
1185
|
-
pointer:
|
|
1185
|
+
pointer: xr(n)
|
|
1186
1186
|
};
|
|
1187
1187
|
}
|
|
1188
|
-
function
|
|
1189
|
-
return e.split("/").map(
|
|
1188
|
+
function xr(e) {
|
|
1189
|
+
return e.split("/").map(Rr).filter(pr);
|
|
1190
1190
|
}
|
|
1191
|
-
function
|
|
1191
|
+
function ha(e) {
|
|
1192
1192
|
const t = e.split("/");
|
|
1193
1193
|
return t[t.length - 1];
|
|
1194
1194
|
}
|
|
1195
|
-
function
|
|
1195
|
+
function ga(e) {
|
|
1196
1196
|
const t = e.split(/[\/\\]/);
|
|
1197
1197
|
return t[t.length - 1].replace(/\.[^.]+$/, "");
|
|
1198
1198
|
}
|
|
1199
|
-
function
|
|
1199
|
+
function Pe(e) {
|
|
1200
1200
|
return e.startsWith("http://") || e.startsWith("https://") || e.startsWith("file://") || e.startsWith("data:");
|
|
1201
1201
|
}
|
|
1202
|
-
function
|
|
1203
|
-
return
|
|
1202
|
+
function ma(e) {
|
|
1203
|
+
return Xe.extname(e) ? Pe(e) ? e.substring(0, e.lastIndexOf("/")) : Xe.dirname(e) : e;
|
|
1204
1204
|
}
|
|
1205
|
-
function
|
|
1206
|
-
return
|
|
1205
|
+
function Aa(e, t) {
|
|
1206
|
+
return Pe(e) ? new URL(t, e.endsWith("/") ? e : `${e}/`).href : Xe.resolve(e, t);
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1209
|
-
return typeof e == "string" && (e.startsWith("#") ||
|
|
1208
|
+
function ya(e) {
|
|
1209
|
+
return typeof e == "string" && (e.startsWith("#") || Pe(e) || e.startsWith("./") || e.startsWith("../") || e.indexOf("/") > -1 || /\.(ya?ml|json)$/i.test(e));
|
|
1210
1210
|
}
|
|
1211
|
-
function
|
|
1211
|
+
function _r(e) {
|
|
1212
1212
|
return /^#[A-Za-z][A-Za-z0-9\-_:.]*$/.test(e);
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1215
|
-
if (!
|
|
1214
|
+
function Ea(e, t, n) {
|
|
1215
|
+
if (!Ie(t.node))
|
|
1216
1216
|
n.parent[n.key] = t.node;
|
|
1217
1217
|
else {
|
|
1218
1218
|
delete e.$ref;
|
|
@@ -1220,7 +1220,7 @@ function ya(e, t, n) {
|
|
|
1220
1220
|
Object.assign(e, r);
|
|
1221
1221
|
}
|
|
1222
1222
|
}
|
|
1223
|
-
var
|
|
1223
|
+
var O = /* @__PURE__ */ Symbol("NOT_RESOLVED"), Xt = /* @__PURE__ */ Symbol("MERGE_KEY");
|
|
1224
1224
|
function te(e, t) {
|
|
1225
1225
|
return {
|
|
1226
1226
|
tagName: e,
|
|
@@ -1234,7 +1234,7 @@ function te(e, t) {
|
|
|
1234
1234
|
representTagName: t.representTagName ?? null
|
|
1235
1235
|
};
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1237
|
+
function Qt(e, t) {
|
|
1238
1238
|
const n = t.finalize === void 0;
|
|
1239
1239
|
return {
|
|
1240
1240
|
tagName: e,
|
|
@@ -1250,7 +1250,7 @@ function Yt(e, t) {
|
|
|
1250
1250
|
representTagName: t.representTagName ?? null
|
|
1251
1251
|
};
|
|
1252
1252
|
}
|
|
1253
|
-
function
|
|
1253
|
+
function pt(e, t) {
|
|
1254
1254
|
const n = t.finalize === void 0;
|
|
1255
1255
|
return {
|
|
1256
1256
|
tagName: e,
|
|
@@ -1269,16 +1269,16 @@ function dt(e, t) {
|
|
|
1269
1269
|
representTagName: t.representTagName ?? null
|
|
1270
1270
|
};
|
|
1271
1271
|
}
|
|
1272
|
-
var
|
|
1272
|
+
var Ir = te("tag:yaml.org,2002:str", {
|
|
1273
1273
|
resolve: (e) => e,
|
|
1274
1274
|
identify: (e) => typeof e == "string"
|
|
1275
|
-
}),
|
|
1275
|
+
}), wr = [
|
|
1276
1276
|
"",
|
|
1277
1277
|
"~",
|
|
1278
1278
|
"null",
|
|
1279
1279
|
"Null",
|
|
1280
1280
|
"NULL"
|
|
1281
|
-
],
|
|
1281
|
+
], Nr = te("tag:yaml.org,2002:null", {
|
|
1282
1282
|
implicit: !0,
|
|
1283
1283
|
implicitFirstChars: [
|
|
1284
1284
|
"",
|
|
@@ -1286,22 +1286,22 @@ var _r = te("tag:yaml.org,2002:str", {
|
|
|
1286
1286
|
"n",
|
|
1287
1287
|
"N"
|
|
1288
1288
|
],
|
|
1289
|
-
resolve: (e) =>
|
|
1289
|
+
resolve: (e) => wr.indexOf(e) !== -1 ? null : O,
|
|
1290
1290
|
identify: (e) => e === null,
|
|
1291
1291
|
represent: () => "null"
|
|
1292
|
-
}),
|
|
1292
|
+
}), $r = te("tag:yaml.org,2002:null", {
|
|
1293
1293
|
implicit: !0,
|
|
1294
1294
|
implicitFirstChars: ["n"],
|
|
1295
|
-
resolve: (e, t) => e === "null" || t && e === "" ? null :
|
|
1295
|
+
resolve: (e, t) => e === "null" || t && e === "" ? null : O,
|
|
1296
1296
|
identify: (e) => e === null,
|
|
1297
1297
|
represent: () => "null"
|
|
1298
|
-
}),
|
|
1298
|
+
}), Lr = [
|
|
1299
1299
|
"",
|
|
1300
1300
|
"~",
|
|
1301
1301
|
"null",
|
|
1302
1302
|
"Null",
|
|
1303
1303
|
"NULL"
|
|
1304
|
-
],
|
|
1304
|
+
], kr = te("tag:yaml.org,2002:null", {
|
|
1305
1305
|
implicit: !0,
|
|
1306
1306
|
implicitFirstChars: [
|
|
1307
1307
|
"",
|
|
@@ -1309,18 +1309,18 @@ var _r = te("tag:yaml.org,2002:str", {
|
|
|
1309
1309
|
"n",
|
|
1310
1310
|
"N"
|
|
1311
1311
|
],
|
|
1312
|
-
resolve: (e) =>
|
|
1312
|
+
resolve: (e) => Lr.indexOf(e) !== -1 ? null : O,
|
|
1313
1313
|
identify: (e) => e === null,
|
|
1314
1314
|
represent: () => "null"
|
|
1315
|
-
}),
|
|
1315
|
+
}), Or = [
|
|
1316
1316
|
"true",
|
|
1317
1317
|
"True",
|
|
1318
1318
|
"TRUE"
|
|
1319
|
-
],
|
|
1319
|
+
], Pr = [
|
|
1320
1320
|
"false",
|
|
1321
1321
|
"False",
|
|
1322
1322
|
"FALSE"
|
|
1323
|
-
],
|
|
1323
|
+
], Fr = te("tag:yaml.org,2002:bool", {
|
|
1324
1324
|
implicit: !0,
|
|
1325
1325
|
implicitFirstChars: [
|
|
1326
1326
|
"t",
|
|
@@ -1328,16 +1328,16 @@ var _r = te("tag:yaml.org,2002:str", {
|
|
|
1328
1328
|
"f",
|
|
1329
1329
|
"F"
|
|
1330
1330
|
],
|
|
1331
|
-
resolve: (e) =>
|
|
1331
|
+
resolve: (e) => Or.indexOf(e) !== -1 ? !0 : Pr.indexOf(e) !== -1 ? !1 : O,
|
|
1332
1332
|
identify: (e) => Object.prototype.toString.call(e) === "[object Boolean]",
|
|
1333
1333
|
represent: (e) => e ? "true" : "false"
|
|
1334
|
-
}),
|
|
1334
|
+
}), Hr = ["true"], Mr = ["false"], Br = te("tag:yaml.org,2002:bool", {
|
|
1335
1335
|
implicit: !0,
|
|
1336
1336
|
implicitFirstChars: ["t", "f"],
|
|
1337
|
-
resolve: (e) =>
|
|
1337
|
+
resolve: (e) => Hr.indexOf(e) !== -1 ? !0 : Mr.indexOf(e) !== -1 ? !1 : O,
|
|
1338
1338
|
identify: (e) => Object.prototype.toString.call(e) === "[object Boolean]",
|
|
1339
1339
|
represent: (e) => e ? "true" : "false"
|
|
1340
|
-
}),
|
|
1340
|
+
}), Dr = [
|
|
1341
1341
|
"true",
|
|
1342
1342
|
"True",
|
|
1343
1343
|
"TRUE",
|
|
@@ -1349,7 +1349,7 @@ var _r = te("tag:yaml.org,2002:str", {
|
|
|
1349
1349
|
"on",
|
|
1350
1350
|
"On",
|
|
1351
1351
|
"ON"
|
|
1352
|
-
],
|
|
1352
|
+
], Ur = [
|
|
1353
1353
|
"false",
|
|
1354
1354
|
"False",
|
|
1355
1355
|
"FALSE",
|
|
@@ -1361,7 +1361,7 @@ var _r = te("tag:yaml.org,2002:str", {
|
|
|
1361
1361
|
"off",
|
|
1362
1362
|
"Off",
|
|
1363
1363
|
"OFF"
|
|
1364
|
-
],
|
|
1364
|
+
], qr = te("tag:yaml.org,2002:bool", {
|
|
1365
1365
|
implicit: !0,
|
|
1366
1366
|
implicitFirstChars: [
|
|
1367
1367
|
"y",
|
|
@@ -1375,51 +1375,51 @@ var _r = te("tag:yaml.org,2002:str", {
|
|
|
1375
1375
|
"o",
|
|
1376
1376
|
"O"
|
|
1377
1377
|
],
|
|
1378
|
-
resolve: (e) =>
|
|
1378
|
+
resolve: (e) => Dr.indexOf(e) !== -1 ? !0 : Ur.indexOf(e) !== -1 ? !1 : O,
|
|
1379
1379
|
identify: (e) => Object.prototype.toString.call(e) === "[object Boolean]",
|
|
1380
1380
|
represent: (e) => e ? "true" : "false"
|
|
1381
|
-
}),
|
|
1382
|
-
function
|
|
1381
|
+
}), Kr = /* @__PURE__ */ new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"), Gr = /* @__PURE__ */ new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");
|
|
1382
|
+
function Yr(e) {
|
|
1383
1383
|
let t = e, n = 1;
|
|
1384
1384
|
return (t[0] === "-" || t[0] === "+") && (t[0] === "-" && (n = -1), t = t.slice(1)), t.startsWith("0b") ? n * parseInt(t.slice(2), 2) : t.startsWith("0o") ? n * parseInt(t.slice(2), 8) : t.startsWith("0x") ? n * parseInt(t.slice(2), 16) : n * parseInt(t, 10);
|
|
1385
1385
|
}
|
|
1386
|
-
function
|
|
1386
|
+
function Wr(e, t) {
|
|
1387
1387
|
if (t) {
|
|
1388
|
-
if (!
|
|
1389
|
-
} else if (!
|
|
1390
|
-
const n =
|
|
1391
|
-
return Number.isFinite(n) ? n :
|
|
1388
|
+
if (!Gr.test(e)) return O;
|
|
1389
|
+
} else if (!Kr.test(e)) return O;
|
|
1390
|
+
const n = Yr(e);
|
|
1391
|
+
return Number.isFinite(n) ? n : O;
|
|
1392
1392
|
}
|
|
1393
|
-
var
|
|
1393
|
+
var On = te("tag:yaml.org,2002:int", {
|
|
1394
1394
|
implicit: !0,
|
|
1395
1395
|
implicitFirstChars: [
|
|
1396
1396
|
"-",
|
|
1397
1397
|
"+",
|
|
1398
1398
|
..."0123456789"
|
|
1399
1399
|
],
|
|
1400
|
-
resolve:
|
|
1400
|
+
resolve: Wr,
|
|
1401
1401
|
identify: (e) => Number.isInteger(e) && !Object.is(e, -0) && e.toString(10).indexOf("e") < 0,
|
|
1402
1402
|
represent: (e) => e.toString(10)
|
|
1403
|
-
}),
|
|
1404
|
-
function
|
|
1403
|
+
}), jr = /* @__PURE__ */ new RegExp("^-?(?:0|[1-9][0-9]*)$"), Vr = /* @__PURE__ */ new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");
|
|
1404
|
+
function Xr(e) {
|
|
1405
1405
|
let t = e, n = 1;
|
|
1406
1406
|
return (t[0] === "-" || t[0] === "+") && (t[0] === "-" && (n = -1), t = t.slice(1)), t.startsWith("0b") ? n * parseInt(t.slice(2), 2) : t.startsWith("0o") ? n * parseInt(t.slice(2), 8) : t.startsWith("0x") ? n * parseInt(t.slice(2), 16) : n * parseInt(t, 10);
|
|
1407
1407
|
}
|
|
1408
|
-
function
|
|
1408
|
+
function Qr(e, t) {
|
|
1409
1409
|
if (t) {
|
|
1410
|
-
if (!
|
|
1411
|
-
} else if (!
|
|
1412
|
-
const n =
|
|
1413
|
-
return Number.isFinite(n) ? n :
|
|
1410
|
+
if (!Vr.test(e)) return O;
|
|
1411
|
+
} else if (!jr.test(e)) return O;
|
|
1412
|
+
const n = Xr(e);
|
|
1413
|
+
return Number.isFinite(n) ? n : O;
|
|
1414
1414
|
}
|
|
1415
|
-
var
|
|
1415
|
+
var zr = te("tag:yaml.org,2002:int", {
|
|
1416
1416
|
implicit: !0,
|
|
1417
1417
|
implicitFirstChars: ["-", ..."0123456789"],
|
|
1418
|
-
resolve:
|
|
1418
|
+
resolve: Qr,
|
|
1419
1419
|
identify: (e) => Number.isInteger(e) && !Object.is(e, -0) && e.toString(10).indexOf("e") < 0,
|
|
1420
1420
|
represent: (e) => e.toString(10)
|
|
1421
|
-
}),
|
|
1422
|
-
function
|
|
1421
|
+
}), Zr = /* @__PURE__ */ new RegExp("^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$");
|
|
1422
|
+
function Jr(e) {
|
|
1423
1423
|
let t = e.replace(/_/g, ""), n = 1;
|
|
1424
1424
|
if ((t[0] === "-" || t[0] === "+") && (t[0] === "-" && (n = -1), t = t.slice(1)), t.startsWith("0b")) return n * parseInt(t.slice(2), 2);
|
|
1425
1425
|
if (t.startsWith("0x")) return n * parseInt(t.slice(2), 16);
|
|
@@ -1430,32 +1430,32 @@ function Zr(e) {
|
|
|
1430
1430
|
}
|
|
1431
1431
|
return t !== "0" && t[0] === "0" ? n * parseInt(t, 8) : n * parseInt(t, 10);
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1434
|
-
if (!
|
|
1435
|
-
const t =
|
|
1436
|
-
return Number.isFinite(t) ? t :
|
|
1433
|
+
function ei(e) {
|
|
1434
|
+
if (!Zr.test(e)) return O;
|
|
1435
|
+
const t = Jr(e);
|
|
1436
|
+
return Number.isFinite(t) ? t : O;
|
|
1437
1437
|
}
|
|
1438
|
-
var
|
|
1438
|
+
var Lt = te("tag:yaml.org,2002:int", {
|
|
1439
1439
|
implicit: !0,
|
|
1440
1440
|
implicitFirstChars: [
|
|
1441
1441
|
"-",
|
|
1442
1442
|
"+",
|
|
1443
1443
|
..."0123456789"
|
|
1444
1444
|
],
|
|
1445
|
-
resolve:
|
|
1445
|
+
resolve: ei,
|
|
1446
1446
|
identify: (e) => Number.isInteger(e) && !Object.is(e, -0) && e.toString(10).indexOf("e") < 0,
|
|
1447
1447
|
represent: (e) => e.toString(10)
|
|
1448
|
-
}),
|
|
1449
|
-
function
|
|
1450
|
-
if (!
|
|
1448
|
+
}), ti = /* @__PURE__ */ new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), ni = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
1449
|
+
function ri(e) {
|
|
1450
|
+
if (!ti.test(e)) return O;
|
|
1451
1451
|
let t = e.toLowerCase();
|
|
1452
1452
|
const n = t[0] === "-" ? -1 : 1;
|
|
1453
1453
|
if ("+-".includes(t[0]) && (t = t.slice(1)), t === ".inf") return n === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
|
|
1454
1454
|
if (t === ".nan") return NaN;
|
|
1455
1455
|
const r = n * parseFloat(t);
|
|
1456
|
-
return Number.isFinite(r) ||
|
|
1456
|
+
return Number.isFinite(r) || ni.test(e) ? r : O;
|
|
1457
1457
|
}
|
|
1458
|
-
function
|
|
1458
|
+
function ii(e) {
|
|
1459
1459
|
if (isNaN(e)) return ".nan";
|
|
1460
1460
|
if (e === Number.POSITIVE_INFINITY) return ".inf";
|
|
1461
1461
|
if (e === Number.NEGATIVE_INFINITY) return "-.inf";
|
|
@@ -1463,7 +1463,7 @@ function ri(e) {
|
|
|
1463
1463
|
const t = e.toString(10);
|
|
1464
1464
|
return /^[-+]?[0-9]+e/.test(t) ? t.replace("e", ".e") : t;
|
|
1465
1465
|
}
|
|
1466
|
-
var
|
|
1466
|
+
var Pn = te("tag:yaml.org,2002:float", {
|
|
1467
1467
|
implicit: !0,
|
|
1468
1468
|
implicitFirstChars: [
|
|
1469
1469
|
"-",
|
|
@@ -1471,25 +1471,25 @@ var wn = te("tag:yaml.org,2002:float", {
|
|
|
1471
1471
|
".",
|
|
1472
1472
|
..."0123456789"
|
|
1473
1473
|
],
|
|
1474
|
-
resolve:
|
|
1474
|
+
resolve: ri,
|
|
1475
1475
|
identify: (e) => typeof e == "number" && (!Number.isInteger(e) || Object.is(e, -0) || e.toString(10).indexOf("e") >= 0),
|
|
1476
|
-
represent:
|
|
1477
|
-
}),
|
|
1478
|
-
function
|
|
1476
|
+
represent: ii
|
|
1477
|
+
}), oi = /* @__PURE__ */ new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"), ai = /* @__PURE__ */ new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
1478
|
+
function si(e, t) {
|
|
1479
1479
|
if (t) {
|
|
1480
|
-
if (!
|
|
1480
|
+
if (!ai.test(e)) return O;
|
|
1481
1481
|
let r = e.toLowerCase();
|
|
1482
1482
|
const i = r[0] === "-" ? -1 : 1;
|
|
1483
1483
|
if ("+-".includes(r[0]) && (r = r.slice(1)), r === ".inf") return i === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
|
|
1484
1484
|
if (r === ".nan") return NaN;
|
|
1485
1485
|
const o = i * parseFloat(r);
|
|
1486
|
-
return Number.isFinite(o) ? o :
|
|
1486
|
+
return Number.isFinite(o) ? o : O;
|
|
1487
1487
|
}
|
|
1488
|
-
if (!
|
|
1488
|
+
if (!oi.test(e)) return O;
|
|
1489
1489
|
const n = Number(e);
|
|
1490
|
-
return Number.isFinite(n) ? n :
|
|
1490
|
+
return Number.isFinite(n) ? n : O;
|
|
1491
1491
|
}
|
|
1492
|
-
function
|
|
1492
|
+
function li(e) {
|
|
1493
1493
|
if (isNaN(e)) return ".nan";
|
|
1494
1494
|
if (e === Number.POSITIVE_INFINITY) return ".inf";
|
|
1495
1495
|
if (e === Number.NEGATIVE_INFINITY) return "-.inf";
|
|
@@ -1497,15 +1497,15 @@ function si(e) {
|
|
|
1497
1497
|
const t = e.toString(10);
|
|
1498
1498
|
return /^[-+]?[0-9]+e/.test(t) ? t.replace("e", ".e") : t;
|
|
1499
1499
|
}
|
|
1500
|
-
var
|
|
1500
|
+
var ci = te("tag:yaml.org,2002:float", {
|
|
1501
1501
|
implicit: !0,
|
|
1502
1502
|
implicitFirstChars: ["-", ..."0123456789"],
|
|
1503
|
-
resolve:
|
|
1503
|
+
resolve: si,
|
|
1504
1504
|
identify: (e) => typeof e == "number" && (!Number.isInteger(e) || Object.is(e, -0) || e.toString(10).indexOf("e") >= 0),
|
|
1505
|
-
represent:
|
|
1506
|
-
}),
|
|
1507
|
-
function
|
|
1508
|
-
if (!
|
|
1505
|
+
represent: li
|
|
1506
|
+
}), ui = /* @__PURE__ */ new RegExp("^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), fi = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
1507
|
+
function pi(e) {
|
|
1508
|
+
if (!ui.test(e)) return O;
|
|
1509
1509
|
let t = e.toLowerCase().replace(/_/g, "");
|
|
1510
1510
|
const n = t[0] === "-" ? -1 : 1;
|
|
1511
1511
|
if ("+-".includes(t[0]) && (t = t.slice(1)), t === ".inf") return n === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
|
|
@@ -1515,9 +1515,9 @@ function fi(e) {
|
|
|
1515
1515
|
for (const i of t.split(":")) r = r * 60 + Number(i);
|
|
1516
1516
|
r *= n;
|
|
1517
1517
|
} else r = n * parseFloat(t);
|
|
1518
|
-
return Number.isFinite(r) ||
|
|
1518
|
+
return Number.isFinite(r) || fi.test(e) ? r : O;
|
|
1519
1519
|
}
|
|
1520
|
-
function
|
|
1520
|
+
function di(e) {
|
|
1521
1521
|
if (isNaN(e)) return ".nan";
|
|
1522
1522
|
if (e === Number.POSITIVE_INFINITY) return ".inf";
|
|
1523
1523
|
if (e === Number.NEGATIVE_INFINITY) return "-.inf";
|
|
@@ -1525,7 +1525,7 @@ function pi(e) {
|
|
|
1525
1525
|
const t = e.toString(10);
|
|
1526
1526
|
return /^[-+]?[0-9]+e/.test(t) ? t.replace("e", ".e") : t;
|
|
1527
1527
|
}
|
|
1528
|
-
var
|
|
1528
|
+
var kt = te("tag:yaml.org,2002:float", {
|
|
1529
1529
|
implicit: !0,
|
|
1530
1530
|
implicitFirstChars: [
|
|
1531
1531
|
"-",
|
|
@@ -1533,81 +1533,81 @@ var Ot = te("tag:yaml.org,2002:float", {
|
|
|
1533
1533
|
".",
|
|
1534
1534
|
..."0123456789"
|
|
1535
1535
|
],
|
|
1536
|
-
resolve:
|
|
1536
|
+
resolve: pi,
|
|
1537
1537
|
identify: (e) => typeof e == "number" && (!Number.isInteger(e) || Object.is(e, -0) || e.toString(10).indexOf("e") >= 0),
|
|
1538
|
-
represent:
|
|
1539
|
-
}),
|
|
1538
|
+
represent: di
|
|
1539
|
+
}), Fn = te("tag:yaml.org,2002:merge", {
|
|
1540
1540
|
implicit: !0,
|
|
1541
1541
|
implicitFirstChars: ["<"],
|
|
1542
|
-
resolve: (e, t) => e === "<<" || t && e === "" ?
|
|
1543
|
-
}),
|
|
1544
|
-
function
|
|
1542
|
+
resolve: (e, t) => e === "<<" || t && e === "" ? Xt : O
|
|
1543
|
+
}), hi = /^[A-Za-z0-9+/]*={0,2}$/;
|
|
1544
|
+
function gi(e) {
|
|
1545
1545
|
const t = e.replace(/\s/g, "");
|
|
1546
|
-
if (t.length % 4 !== 0 || !
|
|
1546
|
+
if (t.length % 4 !== 0 || !hi.test(t)) return O;
|
|
1547
1547
|
const n = atob(t), r = new Uint8Array(n.length);
|
|
1548
1548
|
for (let i = 0; i < n.length; i++) r[i] = n.charCodeAt(i);
|
|
1549
1549
|
return r;
|
|
1550
1550
|
}
|
|
1551
|
-
function
|
|
1551
|
+
function mi(e) {
|
|
1552
1552
|
let t = "";
|
|
1553
1553
|
for (let n = 0; n < e.length; n++) t += String.fromCharCode(e[n]);
|
|
1554
1554
|
return btoa(t);
|
|
1555
1555
|
}
|
|
1556
|
-
var
|
|
1557
|
-
resolve:
|
|
1556
|
+
var Hn = te("tag:yaml.org,2002:binary", {
|
|
1557
|
+
resolve: gi,
|
|
1558
1558
|
identify: (e) => Object.prototype.toString.call(e) === "[object Uint8Array]",
|
|
1559
|
-
represent:
|
|
1560
|
-
}),
|
|
1561
|
-
function
|
|
1562
|
-
let t =
|
|
1563
|
-
if (t === null && (t =
|
|
1559
|
+
represent: mi
|
|
1560
|
+
}), Ai = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), yi = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
|
|
1561
|
+
function Ei(e) {
|
|
1562
|
+
let t = Ai.exec(e);
|
|
1563
|
+
if (t === null && (t = yi.exec(e)), t === null) return O;
|
|
1564
1564
|
const n = +t[1], r = +t[2] - 1, i = +t[3];
|
|
1565
1565
|
if (!t[4]) {
|
|
1566
1566
|
const c = new Date(Date.UTC(n, r, i));
|
|
1567
|
-
return c.getUTCFullYear() !== n || c.getUTCMonth() !== r || c.getUTCDate() !== i ?
|
|
1567
|
+
return c.getUTCFullYear() !== n || c.getUTCMonth() !== r || c.getUTCDate() !== i ? O : c;
|
|
1568
1568
|
}
|
|
1569
1569
|
const o = +t[4], a = +t[5], s = +t[6];
|
|
1570
1570
|
let l = 0;
|
|
1571
|
-
if (o > 23 || a > 59 || s > 59) return
|
|
1571
|
+
if (o > 23 || a > 59 || s > 59) return O;
|
|
1572
1572
|
if (t[7]) {
|
|
1573
1573
|
let c = t[7].slice(0, 3);
|
|
1574
1574
|
for (; c.length < 3; ) c += "0";
|
|
1575
1575
|
l = +c;
|
|
1576
1576
|
}
|
|
1577
1577
|
const u = new Date(Date.UTC(n, r, i, o, a, s, l));
|
|
1578
|
-
if (u.getUTCFullYear() !== n || u.getUTCMonth() !== r || u.getUTCDate() !== i) return
|
|
1578
|
+
if (u.getUTCFullYear() !== n || u.getUTCMonth() !== r || u.getUTCDate() !== i) return O;
|
|
1579
1579
|
if (t[9]) {
|
|
1580
1580
|
const c = +t[10], y = +(t[11] || 0);
|
|
1581
|
-
if (c > 23 || y > 59) return
|
|
1581
|
+
if (c > 23 || y > 59) return O;
|
|
1582
1582
|
const g = (c * 60 + y) * 6e4;
|
|
1583
1583
|
u.setTime(u.getTime() - (t[9] === "-" ? -g : g));
|
|
1584
1584
|
}
|
|
1585
1585
|
return u;
|
|
1586
1586
|
}
|
|
1587
|
-
var
|
|
1587
|
+
var Si = te("tag:yaml.org,2002:timestamp", {
|
|
1588
1588
|
implicit: !0,
|
|
1589
1589
|
implicitFirstChars: [..."0123456789"],
|
|
1590
|
-
resolve:
|
|
1590
|
+
resolve: Ei,
|
|
1591
1591
|
identify: (e) => e instanceof Date,
|
|
1592
1592
|
represent: (e) => e.toISOString()
|
|
1593
|
-
}),
|
|
1593
|
+
}), Ci = Qt("tag:yaml.org,2002:seq", {
|
|
1594
1594
|
create: () => [],
|
|
1595
1595
|
addItem: (e, t) => {
|
|
1596
1596
|
e.push(t);
|
|
1597
1597
|
},
|
|
1598
1598
|
identify: Array.isArray
|
|
1599
1599
|
});
|
|
1600
|
-
function
|
|
1600
|
+
function dt(e) {
|
|
1601
1601
|
if (e === null || typeof e != "object" || Array.isArray(e)) return !1;
|
|
1602
1602
|
const t = Object.getPrototypeOf(e);
|
|
1603
1603
|
return t === null || t === Object.prototype;
|
|
1604
1604
|
}
|
|
1605
|
-
function
|
|
1605
|
+
function Ot(e, t) {
|
|
1606
1606
|
const n = {};
|
|
1607
1607
|
for (const r of t) e[r] !== void 0 && (n[r] = e[r]);
|
|
1608
1608
|
return n;
|
|
1609
1609
|
}
|
|
1610
|
-
var
|
|
1610
|
+
var Mn = Qt("tag:yaml.org,2002:omap", {
|
|
1611
1611
|
create: () => ({
|
|
1612
1612
|
list: [],
|
|
1613
1613
|
seen: /* @__PURE__ */ new Set()
|
|
@@ -1617,7 +1617,7 @@ var Ln = Yt("tag:yaml.org,2002:omap", {
|
|
|
1617
1617
|
if (t instanceof Map) {
|
|
1618
1618
|
if (t.size !== 1) return "cannot resolve an ordered map item";
|
|
1619
1619
|
n = t.keys().next().value;
|
|
1620
|
-
} else if (
|
|
1620
|
+
} else if (dt(t)) {
|
|
1621
1621
|
const r = Object.keys(t);
|
|
1622
1622
|
if (r.length !== 1) return "cannot resolve an ordered map item";
|
|
1623
1623
|
n = r[0];
|
|
@@ -1625,7 +1625,7 @@ var Ln = Yt("tag:yaml.org,2002:omap", {
|
|
|
1625
1625
|
return e.seen.has(n) ? "duplicate key in ordered map" : (e.seen.add(n), e.list.push(t), "");
|
|
1626
1626
|
},
|
|
1627
1627
|
finalize: (e) => e.list
|
|
1628
|
-
}),
|
|
1628
|
+
}), Bn = Qt("tag:yaml.org,2002:pairs", {
|
|
1629
1629
|
create: () => [],
|
|
1630
1630
|
addItem: (e, t) => {
|
|
1631
1631
|
if (t instanceof Map)
|
|
@@ -1634,9 +1634,9 @@ var Ln = Yt("tag:yaml.org,2002:omap", {
|
|
|
1634
1634
|
const n = t, r = Object.keys(n);
|
|
1635
1635
|
return r.length !== 1 ? "cannot resolve a pairs item" : (e.push([r[0], n[r[0]]]), "");
|
|
1636
1636
|
}
|
|
1637
|
-
}),
|
|
1637
|
+
}), Ti = pt("tag:yaml.org,2002:map", {
|
|
1638
1638
|
create: () => ({}),
|
|
1639
|
-
identify:
|
|
1639
|
+
identify: dt,
|
|
1640
1640
|
represent: (e) => {
|
|
1641
1641
|
const t = /* @__PURE__ */ new Map();
|
|
1642
1642
|
for (const n of Object.keys(e)) t.set(n, e[n]);
|
|
@@ -1655,7 +1655,7 @@ var Ln = Yt("tag:yaml.org,2002:omap", {
|
|
|
1655
1655
|
has: (e, t) => t !== null && typeof t == "object" ? !1 : Object.prototype.hasOwnProperty.call(e, String(t)),
|
|
1656
1656
|
keys: (e) => Object.keys(e),
|
|
1657
1657
|
get: (e, t) => e[String(t)]
|
|
1658
|
-
}),
|
|
1658
|
+
}), Dn = pt("tag:yaml.org,2002:set", {
|
|
1659
1659
|
create: () => /* @__PURE__ */ new Set(),
|
|
1660
1660
|
identify: (e) => e instanceof Set,
|
|
1661
1661
|
represent: (e) => {
|
|
@@ -1668,21 +1668,21 @@ var Ln = Yt("tag:yaml.org,2002:omap", {
|
|
|
1668
1668
|
keys: (e) => e.keys(),
|
|
1669
1669
|
get: () => null
|
|
1670
1670
|
});
|
|
1671
|
-
function
|
|
1671
|
+
function vi() {
|
|
1672
1672
|
return {
|
|
1673
1673
|
scalar: {},
|
|
1674
1674
|
sequence: {},
|
|
1675
1675
|
mapping: {}
|
|
1676
1676
|
};
|
|
1677
1677
|
}
|
|
1678
|
-
function
|
|
1678
|
+
function Ri() {
|
|
1679
1679
|
return {
|
|
1680
1680
|
scalar: [],
|
|
1681
1681
|
sequence: [],
|
|
1682
1682
|
mapping: []
|
|
1683
1683
|
};
|
|
1684
1684
|
}
|
|
1685
|
-
function
|
|
1685
|
+
function bi(e) {
|
|
1686
1686
|
const t = [];
|
|
1687
1687
|
for (const n of e) {
|
|
1688
1688
|
let r = t.length;
|
|
@@ -1697,7 +1697,7 @@ function Ri(e) {
|
|
|
1697
1697
|
}
|
|
1698
1698
|
return t;
|
|
1699
1699
|
}
|
|
1700
|
-
var
|
|
1700
|
+
var ht = class Un {
|
|
1701
1701
|
tags;
|
|
1702
1702
|
implicitScalarTags;
|
|
1703
1703
|
implicitScalarByFirstChar;
|
|
@@ -1708,7 +1708,7 @@ var gt = class Pn {
|
|
|
1708
1708
|
exact;
|
|
1709
1709
|
prefix;
|
|
1710
1710
|
constructor(t) {
|
|
1711
|
-
const n =
|
|
1711
|
+
const n = bi(t), r = [], i = vi(), o = Ri();
|
|
1712
1712
|
for (const c of n) {
|
|
1713
1713
|
if (c.nodeKind === "scalar" && c.implicit) {
|
|
1714
1714
|
if (c.matchByTagPrefix) throw new Error("Implicit scalar tags cannot match by tag prefix");
|
|
@@ -1737,46 +1737,46 @@ var gt = class Pn {
|
|
|
1737
1737
|
withTags(...t) {
|
|
1738
1738
|
let n = [];
|
|
1739
1739
|
for (const r of t) n = n.concat(r);
|
|
1740
|
-
return new
|
|
1740
|
+
return new Un([...this.tags, ...n]);
|
|
1741
1741
|
}
|
|
1742
|
-
},
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1742
|
+
}, zt = new ht([
|
|
1743
|
+
Ir,
|
|
1744
|
+
Ci,
|
|
1745
|
+
Ti
|
|
1746
1746
|
]);
|
|
1747
|
-
new
|
|
1748
|
-
...
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1747
|
+
new ht([
|
|
1748
|
+
...zt.tags,
|
|
1749
|
+
$r,
|
|
1750
|
+
Br,
|
|
1751
|
+
zr,
|
|
1752
|
+
ci
|
|
1753
1753
|
]);
|
|
1754
|
-
var
|
|
1755
|
-
...
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
]),
|
|
1761
|
-
...
|
|
1762
|
-
|
|
1763
|
-
|
|
1754
|
+
var qn = new ht([
|
|
1755
|
+
...zt.tags,
|
|
1756
|
+
Nr,
|
|
1757
|
+
Fr,
|
|
1758
|
+
On,
|
|
1759
|
+
Pn
|
|
1760
|
+
]), xi = new ht([
|
|
1761
|
+
...zt.tags,
|
|
1762
|
+
kr,
|
|
1763
|
+
qr,
|
|
1764
|
+
Lt,
|
|
1764
1765
|
kt,
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
On
|
|
1766
|
+
Si,
|
|
1767
|
+
Fn,
|
|
1768
|
+
Hn,
|
|
1769
|
+
Mn,
|
|
1770
|
+
Bn,
|
|
1771
|
+
Dn
|
|
1772
1772
|
]);
|
|
1773
|
-
|
|
1773
|
+
pt("tag:yaml.org,2002:map", {
|
|
1774
1774
|
create: () => /* @__PURE__ */ new Map(),
|
|
1775
1775
|
addPair: (e, t, n) => (e.set(t, n), ""),
|
|
1776
1776
|
has: (e, t) => e.has(t),
|
|
1777
1777
|
keys: (e) => e.keys(),
|
|
1778
1778
|
get: (e, t) => e.get(t),
|
|
1779
|
-
identify: (e) => e instanceof Map ||
|
|
1779
|
+
identify: (e) => e instanceof Map || dt(e),
|
|
1780
1780
|
represent: (e) => {
|
|
1781
1781
|
if (e instanceof Map) return e;
|
|
1782
1782
|
const t = /* @__PURE__ */ new Map(), n = e;
|
|
@@ -1784,7 +1784,7 @@ dt("tag:yaml.org,2002:map", {
|
|
|
1784
1784
|
return t;
|
|
1785
1785
|
}
|
|
1786
1786
|
});
|
|
1787
|
-
function
|
|
1787
|
+
function hn(e) {
|
|
1788
1788
|
if (Array.isArray(e)) {
|
|
1789
1789
|
const t = Array.prototype.slice.call(e);
|
|
1790
1790
|
for (let n = 0; n < t.length; n++) {
|
|
@@ -1795,16 +1795,16 @@ function cn(e) {
|
|
|
1795
1795
|
}
|
|
1796
1796
|
return typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" ? "[object Object]" : String(e);
|
|
1797
1797
|
}
|
|
1798
|
-
|
|
1798
|
+
pt("tag:yaml.org,2002:map", {
|
|
1799
1799
|
create: () => ({}),
|
|
1800
|
-
identify:
|
|
1800
|
+
identify: dt,
|
|
1801
1801
|
represent: (e) => {
|
|
1802
1802
|
const t = /* @__PURE__ */ new Map();
|
|
1803
1803
|
for (const n of Object.keys(e)) t.set(n, e[n]);
|
|
1804
1804
|
return t;
|
|
1805
1805
|
},
|
|
1806
1806
|
addPair: (e, t, n) => {
|
|
1807
|
-
const r =
|
|
1807
|
+
const r = hn(t);
|
|
1808
1808
|
return r === null ? "nested arrays are not supported inside keys" : (r === "__proto__" ? Object.defineProperty(e, r, {
|
|
1809
1809
|
value: n,
|
|
1810
1810
|
enumerable: !0,
|
|
@@ -1813,19 +1813,19 @@ dt("tag:yaml.org,2002:map", {
|
|
|
1813
1813
|
}) : e[r] = n, "");
|
|
1814
1814
|
},
|
|
1815
1815
|
has: (e, t) => {
|
|
1816
|
-
const n =
|
|
1816
|
+
const n = hn(t);
|
|
1817
1817
|
return n !== null && Object.prototype.hasOwnProperty.call(e, n);
|
|
1818
1818
|
},
|
|
1819
1819
|
keys: (e) => Object.keys(e),
|
|
1820
1820
|
get: (e, t) => e[String(t)]
|
|
1821
1821
|
});
|
|
1822
|
-
var
|
|
1822
|
+
var _i = {
|
|
1823
1823
|
maxLength: 79,
|
|
1824
1824
|
indent: 1,
|
|
1825
1825
|
linesBefore: 3,
|
|
1826
1826
|
linesAfter: 2
|
|
1827
1827
|
};
|
|
1828
|
-
function
|
|
1828
|
+
function bt(e, t, n, r, i) {
|
|
1829
1829
|
let o = "", a = "";
|
|
1830
1830
|
const s = Math.floor(i / 2) - 1;
|
|
1831
1831
|
return r - t > s && (o = " ... ", t = r - s + o.length), n - r > s && (a = " ...", n = r + s - a.length), {
|
|
@@ -1833,13 +1833,13 @@ function xt(e, t, n, r, i) {
|
|
|
1833
1833
|
pos: r - t + o.length
|
|
1834
1834
|
};
|
|
1835
1835
|
}
|
|
1836
|
-
function
|
|
1836
|
+
function xt(e, t) {
|
|
1837
1837
|
return " ".repeat(Math.max(t - e.length, 0)) + e;
|
|
1838
1838
|
}
|
|
1839
|
-
function
|
|
1839
|
+
function Ii(e, t) {
|
|
1840
1840
|
if (!e.buffer) return null;
|
|
1841
1841
|
const n = {
|
|
1842
|
-
...
|
|
1842
|
+
..._i,
|
|
1843
1843
|
...t
|
|
1844
1844
|
}, r = /\r?\n|\r|\0/g, i = [0], o = [];
|
|
1845
1845
|
let a, s = -1;
|
|
@@ -1849,38 +1849,38 @@ function _i(e, t) {
|
|
|
1849
1849
|
let l = "";
|
|
1850
1850
|
const u = Math.min(e.line + n.linesAfter, o.length).toString().length, c = n.maxLength - (n.indent + u + 3);
|
|
1851
1851
|
for (let g = 1; g <= n.linesBefore && !(s - g < 0); g++) {
|
|
1852
|
-
const
|
|
1853
|
-
l = `${" ".repeat(n.indent)}${
|
|
1852
|
+
const C = bt(e.buffer, i[s - g], o[s - g], e.position - (i[s] - i[s - g]), c);
|
|
1853
|
+
l = `${" ".repeat(n.indent)}${xt((e.line - g + 1).toString(), u)} | ${C.str}
|
|
1854
1854
|
${l}`;
|
|
1855
1855
|
}
|
|
1856
|
-
const y =
|
|
1857
|
-
l += `${" ".repeat(n.indent)}${
|
|
1856
|
+
const y = bt(e.buffer, i[s], o[s], e.position, c);
|
|
1857
|
+
l += `${" ".repeat(n.indent)}${xt((e.line + 1).toString(), u)} | ${y.str}
|
|
1858
1858
|
`, l += `${"-".repeat(n.indent + u + 3 + y.pos)}^
|
|
1859
1859
|
`;
|
|
1860
1860
|
for (let g = 1; g <= n.linesAfter && !(s + g >= o.length); g++) {
|
|
1861
|
-
const
|
|
1862
|
-
l += `${" ".repeat(n.indent)}${
|
|
1861
|
+
const C = bt(e.buffer, i[s + g], o[s + g], e.position - (i[s] - i[s + g]), c);
|
|
1862
|
+
l += `${" ".repeat(n.indent)}${xt((e.line + g + 1).toString(), u)} | ${C.str}
|
|
1863
1863
|
`;
|
|
1864
1864
|
}
|
|
1865
1865
|
return l.replace(/\n$/, "");
|
|
1866
1866
|
}
|
|
1867
|
-
function
|
|
1867
|
+
function gn(e, t) {
|
|
1868
1868
|
let n = "";
|
|
1869
1869
|
return e.mark ? (e.mark.name && (n += `in "${e.mark.name}" `), n += `(${e.mark.line + 1}:${e.mark.column + 1})`, !t && e.mark.snippet && (n += `
|
|
1870
1870
|
|
|
1871
1871
|
${e.mark.snippet}`), `${e.reason} ${n}`) : e.reason;
|
|
1872
1872
|
}
|
|
1873
|
-
var
|
|
1873
|
+
var gt = class extends Error {
|
|
1874
1874
|
reason;
|
|
1875
1875
|
mark;
|
|
1876
1876
|
constructor(e, t) {
|
|
1877
|
-
super(), this.name = "YAMLException", this.reason = e, this.mark = t, this.message =
|
|
1877
|
+
super(), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = gn(this, !1), Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
|
|
1878
1878
|
}
|
|
1879
1879
|
toString(e) {
|
|
1880
|
-
return `${this.name}: ${
|
|
1880
|
+
return `${this.name}: ${gn(this, e)}`;
|
|
1881
1881
|
}
|
|
1882
1882
|
};
|
|
1883
|
-
function
|
|
1883
|
+
function mt(e, t, n, r = "") {
|
|
1884
1884
|
let i = 0, o = 0;
|
|
1885
1885
|
for (let s = 0; s < t; s++) {
|
|
1886
1886
|
const l = e.charCodeAt(s);
|
|
@@ -1893,10 +1893,10 @@ function At(e, t, n, r = "") {
|
|
|
1893
1893
|
line: i,
|
|
1894
1894
|
column: t - o
|
|
1895
1895
|
};
|
|
1896
|
-
throw a.snippet =
|
|
1896
|
+
throw a.snippet = Ii(a), new gt(n, a);
|
|
1897
1897
|
}
|
|
1898
|
-
var
|
|
1899
|
-
function
|
|
1898
|
+
var wi = -1;
|
|
1899
|
+
function mn(e) {
|
|
1900
1900
|
switch (e) {
|
|
1901
1901
|
case 48:
|
|
1902
1902
|
return "\0";
|
|
@@ -1939,19 +1939,19 @@ function fn(e) {
|
|
|
1939
1939
|
return "";
|
|
1940
1940
|
}
|
|
1941
1941
|
}
|
|
1942
|
-
var
|
|
1942
|
+
var Kn = new Array(256), Gn = new Array(256);
|
|
1943
1943
|
for (let e = 0; e < 256; e++)
|
|
1944
|
-
|
|
1945
|
-
function
|
|
1944
|
+
Kn[e] = mn(e) ? 1 : 0, Gn[e] = mn(e);
|
|
1945
|
+
function Ni(e) {
|
|
1946
1946
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
|
|
1947
1947
|
}
|
|
1948
|
-
function
|
|
1948
|
+
function $i(e) {
|
|
1949
1949
|
return e >= 48 && e <= 57 ? e - 48 : (e | 32) - 97 + 10;
|
|
1950
1950
|
}
|
|
1951
|
-
function
|
|
1951
|
+
function Li(e) {
|
|
1952
1952
|
return e === 120 ? 2 : e === 117 ? 4 : 8;
|
|
1953
1953
|
}
|
|
1954
|
-
function
|
|
1954
|
+
function st(e, t, n) {
|
|
1955
1955
|
let r = 0;
|
|
1956
1956
|
for (; t < n; ) {
|
|
1957
1957
|
const i = e.charCodeAt(t);
|
|
@@ -1967,24 +1967,24 @@ function lt(e, t, n) {
|
|
|
1967
1967
|
breaks: r
|
|
1968
1968
|
};
|
|
1969
1969
|
}
|
|
1970
|
-
function
|
|
1970
|
+
function Zt(e) {
|
|
1971
1971
|
return e === 1 ? " " : `
|
|
1972
1972
|
`.repeat(e - 1);
|
|
1973
1973
|
}
|
|
1974
|
-
function
|
|
1974
|
+
function ki(e, t, n) {
|
|
1975
1975
|
let r = "", i = t, o = t, a = t;
|
|
1976
1976
|
for (; i < n; ) {
|
|
1977
1977
|
const s = e.charCodeAt(i);
|
|
1978
1978
|
if (s === 10 || s === 13) {
|
|
1979
1979
|
r += e.slice(o, a);
|
|
1980
|
-
const l =
|
|
1981
|
-
r +=
|
|
1980
|
+
const l = st(e, i, n);
|
|
1981
|
+
r += Zt(l.breaks), i = o = a = l.position;
|
|
1982
1982
|
} else
|
|
1983
1983
|
i++, s !== 32 && s !== 9 && (a = i);
|
|
1984
1984
|
}
|
|
1985
1985
|
return r + e.slice(o, a);
|
|
1986
1986
|
}
|
|
1987
|
-
function
|
|
1987
|
+
function Oi(e, t, n) {
|
|
1988
1988
|
let r = "", i = t, o = t, a = t;
|
|
1989
1989
|
for (; i < n; ) {
|
|
1990
1990
|
const s = e.charCodeAt(i);
|
|
@@ -1992,57 +1992,57 @@ function ki(e, t, n) {
|
|
|
1992
1992
|
r += e.slice(o, i) + "'", i += 2, o = a = i;
|
|
1993
1993
|
else if (s === 10 || s === 13) {
|
|
1994
1994
|
r += e.slice(o, a);
|
|
1995
|
-
const l =
|
|
1996
|
-
r +=
|
|
1995
|
+
const l = st(e, i, n);
|
|
1996
|
+
r += Zt(l.breaks), i = o = a = l.position;
|
|
1997
1997
|
} else
|
|
1998
1998
|
i++, s !== 32 && s !== 9 && (a = i);
|
|
1999
1999
|
}
|
|
2000
2000
|
return r + e.slice(o, n);
|
|
2001
2001
|
}
|
|
2002
|
-
function
|
|
2002
|
+
function Pi(e, t, n) {
|
|
2003
2003
|
let r = "", i = t, o = t, a = t;
|
|
2004
2004
|
for (; i < n; ) {
|
|
2005
2005
|
const s = e.charCodeAt(i);
|
|
2006
2006
|
if (s === 92) {
|
|
2007
2007
|
r += e.slice(o, i), i++;
|
|
2008
2008
|
const l = e.charCodeAt(i);
|
|
2009
|
-
if (l === 10 || l === 13) i =
|
|
2010
|
-
else if (l < 256 &&
|
|
2011
|
-
r +=
|
|
2009
|
+
if (l === 10 || l === 13) i = st(e, i, n).position;
|
|
2010
|
+
else if (l < 256 && Kn[l])
|
|
2011
|
+
r += Gn[l], i++;
|
|
2012
2012
|
else {
|
|
2013
|
-
let u =
|
|
2013
|
+
let u = Li(l), c = 0;
|
|
2014
2014
|
for (; u > 0; u--) {
|
|
2015
2015
|
i++;
|
|
2016
|
-
const y =
|
|
2016
|
+
const y = $i(e.charCodeAt(i));
|
|
2017
2017
|
c = (c << 4) + y;
|
|
2018
2018
|
}
|
|
2019
|
-
r +=
|
|
2019
|
+
r += Ni(c), i++;
|
|
2020
2020
|
}
|
|
2021
2021
|
o = a = i;
|
|
2022
2022
|
} else if (s === 10 || s === 13) {
|
|
2023
2023
|
r += e.slice(o, a);
|
|
2024
|
-
const l =
|
|
2025
|
-
r +=
|
|
2024
|
+
const l = st(e, i, n);
|
|
2025
|
+
r += Zt(l.breaks), i = o = a = l.position;
|
|
2026
2026
|
} else
|
|
2027
2027
|
i++, s !== 32 && s !== 9 && (a = i);
|
|
2028
2028
|
}
|
|
2029
2029
|
return r + e.slice(o, n);
|
|
2030
2030
|
}
|
|
2031
|
-
function
|
|
2031
|
+
function An(e, t, n, r, i, o) {
|
|
2032
2032
|
const a = r < 0 ? 0 : r, s = e.slice(t, n).replace(/\r\n?/g, `
|
|
2033
2033
|
`), l = s === "" ? [] : (s.endsWith(`
|
|
2034
2034
|
`) ? s.slice(0, -1) : s).split(`
|
|
2035
2035
|
`);
|
|
2036
2036
|
let u = "", c = !1, y = 0, g = !1;
|
|
2037
|
-
for (const
|
|
2037
|
+
for (const C of l) {
|
|
2038
2038
|
let E = 0;
|
|
2039
|
-
for (; E < a &&
|
|
2040
|
-
if (r < 0 || E >=
|
|
2039
|
+
for (; E < a && C.charCodeAt(E) === 32; ) E++;
|
|
2040
|
+
if (r < 0 || E >= C.length) {
|
|
2041
2041
|
y++;
|
|
2042
2042
|
continue;
|
|
2043
2043
|
}
|
|
2044
|
-
const w =
|
|
2045
|
-
o ?
|
|
2044
|
+
const w = C.slice(a), F = w.charCodeAt(0);
|
|
2045
|
+
o ? F === 32 || F === 9 ? (g = !0, u += `
|
|
2046
2046
|
`.repeat(c ? 1 + y : y)) : g ? (g = !1, u += `
|
|
2047
2047
|
`.repeat(y + 1)) : y === 0 ? c && (u += " ") : u += `
|
|
2048
2048
|
`.repeat(y) : u += `
|
|
@@ -2052,91 +2052,91 @@ function pn(e, t, n, r, i, o) {
|
|
|
2052
2052
|
`.repeat(c ? 1 + y : y) : i !== 2 && c && (u += `
|
|
2053
2053
|
`), u;
|
|
2054
2054
|
}
|
|
2055
|
-
function
|
|
2056
|
-
if (t.valueStart ===
|
|
2055
|
+
function Fi(e, t) {
|
|
2056
|
+
if (t.valueStart === wi) return "";
|
|
2057
2057
|
const { valueStart: n, valueEnd: r } = t;
|
|
2058
2058
|
if (t.fast) return e.slice(n, r);
|
|
2059
2059
|
switch (t.style) {
|
|
2060
2060
|
case 2:
|
|
2061
|
-
return ki(e, n, r);
|
|
2062
|
-
case 3:
|
|
2063
2061
|
return Oi(e, n, r);
|
|
2062
|
+
case 3:
|
|
2063
|
+
return Pi(e, n, r);
|
|
2064
2064
|
case 4:
|
|
2065
|
-
return
|
|
2065
|
+
return An(e, n, r, t.indent, t.chomping, !1);
|
|
2066
2066
|
case 5:
|
|
2067
|
-
return
|
|
2067
|
+
return An(e, n, r, t.indent, t.chomping, !0);
|
|
2068
2068
|
default:
|
|
2069
|
-
return
|
|
2069
|
+
return ki(e, n, r);
|
|
2070
2070
|
}
|
|
2071
2071
|
}
|
|
2072
|
-
var
|
|
2072
|
+
var Hi = {
|
|
2073
2073
|
"!": "!",
|
|
2074
2074
|
"!!": "tag:yaml.org,2002:"
|
|
2075
2075
|
};
|
|
2076
|
-
function
|
|
2076
|
+
function _t(e) {
|
|
2077
2077
|
return encodeURI(e).replace(/!/g, "%21");
|
|
2078
2078
|
}
|
|
2079
|
-
function
|
|
2079
|
+
function Yn(e, t) {
|
|
2080
2080
|
if (e.startsWith("!<") && e.endsWith(">")) return decodeURIComponent(e.slice(2, -1));
|
|
2081
|
-
const n = e.indexOf("!", 1), r = n === -1 ? "!" : e.slice(0, n + 1), i = t?.[r] ??
|
|
2081
|
+
const n = e.indexOf("!", 1), r = n === -1 ? "!" : e.slice(0, n + 1), i = t?.[r] ?? Hi[r] ?? r;
|
|
2082
2082
|
return decodeURIComponent(i) + decodeURIComponent(e.slice(r.length));
|
|
2083
2083
|
}
|
|
2084
|
-
function
|
|
2084
|
+
function Wn(e) {
|
|
2085
2085
|
let t = e;
|
|
2086
|
-
return t.charCodeAt(0) === 33 ? (t = t.slice(1), `!${
|
|
2086
|
+
return t.charCodeAt(0) === 33 ? (t = t.slice(1), `!${_t(t)}`) : t.slice(0, 18) === "tag:yaml.org,2002:" ? `!!${_t(t.slice(18))}` : `!<${_t(t)}>`;
|
|
2087
2087
|
}
|
|
2088
|
-
var
|
|
2088
|
+
var Fe = -1, Jt = {
|
|
2089
2089
|
filename: "",
|
|
2090
|
-
schema:
|
|
2090
|
+
schema: qn,
|
|
2091
2091
|
json: !1,
|
|
2092
2092
|
maxTotalMergeKeys: 1e4,
|
|
2093
2093
|
maxAliases: -1
|
|
2094
2094
|
};
|
|
2095
|
-
function
|
|
2096
|
-
return "tagStart" in e && e.tagStart !==
|
|
2095
|
+
function Mi(e) {
|
|
2096
|
+
return "tagStart" in e && e.tagStart !== Fe ? e.tagStart : "anchorStart" in e && e.anchorStart !== Fe ? e.anchorStart : "valueStart" in e && e.valueStart !== Fe ? e.valueStart : "start" in e ? e.start : 0;
|
|
2097
2097
|
}
|
|
2098
2098
|
function se(e, t) {
|
|
2099
|
-
|
|
2099
|
+
mt(e.source, e.position, t, e.filename);
|
|
2100
2100
|
}
|
|
2101
|
-
function
|
|
2101
|
+
function jn(e, t, n, r) {
|
|
2102
2102
|
try {
|
|
2103
2103
|
return n.finalize(r);
|
|
2104
2104
|
} catch (i) {
|
|
2105
|
-
if (i instanceof
|
|
2106
|
-
|
|
2105
|
+
if (i instanceof gt) throw i;
|
|
2106
|
+
mt(e.source, t, i instanceof Error ? i.message : String(i), e.filename);
|
|
2107
2107
|
}
|
|
2108
2108
|
}
|
|
2109
|
-
function
|
|
2109
|
+
function ot(e, t, n) {
|
|
2110
2110
|
const r = e[n];
|
|
2111
2111
|
if (r) return r;
|
|
2112
2112
|
for (const i of t) if (n.startsWith(i.tagName)) return i;
|
|
2113
2113
|
}
|
|
2114
|
-
function
|
|
2115
|
-
const o =
|
|
2114
|
+
function Bi(e, t, n, r, i) {
|
|
2115
|
+
const o = ot(t, n, r);
|
|
2116
2116
|
if (o) return o;
|
|
2117
2117
|
se(e, `unknown ${i} tag !<${r}>`);
|
|
2118
2118
|
}
|
|
2119
|
-
function
|
|
2120
|
-
const n =
|
|
2119
|
+
function Di(e, t) {
|
|
2120
|
+
const n = Fi(e.source, t), r = t.tagStart === Fe ? "" : e.source.slice(t.tagStart, t.tagEnd), i = e.schema.defaultScalarTag;
|
|
2121
2121
|
if (r !== "") {
|
|
2122
2122
|
if (r === "!") return {
|
|
2123
2123
|
value: n,
|
|
2124
2124
|
tag: i
|
|
2125
2125
|
};
|
|
2126
|
-
const o =
|
|
2126
|
+
const o = Yn(r, e.tagHandlers), a = ot(e.schema.exact.scalar, e.schema.prefix.scalar, o);
|
|
2127
2127
|
if (a) {
|
|
2128
2128
|
const l = a.resolve(n, !0, o);
|
|
2129
|
-
return l ===
|
|
2129
|
+
return l === O && se(e, `cannot resolve a node with !<${o}> explicit tag`), {
|
|
2130
2130
|
value: l,
|
|
2131
2131
|
tag: a
|
|
2132
2132
|
};
|
|
2133
2133
|
}
|
|
2134
|
-
const s =
|
|
2134
|
+
const s = ot(e.schema.exact.mapping, e.schema.prefix.mapping, o) ?? ot(e.schema.exact.sequence, e.schema.prefix.sequence, o);
|
|
2135
2135
|
if (s) {
|
|
2136
2136
|
n !== "" && se(e, `cannot resolve a node with !<${o}> explicit tag`);
|
|
2137
2137
|
const l = s.create(o);
|
|
2138
2138
|
return {
|
|
2139
|
-
value: s.carrierIsResult ? l :
|
|
2139
|
+
value: s.carrierIsResult ? l : jn(e, e.position, s, l),
|
|
2140
2140
|
tag: s
|
|
2141
2141
|
};
|
|
2142
2142
|
}
|
|
@@ -2146,7 +2146,7 @@ function Bi(e, t) {
|
|
|
2146
2146
|
const o = e.schema.implicitScalarByFirstChar.get(n.charAt(0)) ?? e.schema.implicitScalarAnyFirstChar;
|
|
2147
2147
|
for (const a of o) {
|
|
2148
2148
|
const s = a.resolve(n, !1, a.tagName);
|
|
2149
|
-
if (s !==
|
|
2149
|
+
if (s !== O) return {
|
|
2150
2150
|
value: s,
|
|
2151
2151
|
tag: a
|
|
2152
2152
|
};
|
|
@@ -2157,53 +2157,53 @@ function Bi(e, t) {
|
|
|
2157
2157
|
tag: i
|
|
2158
2158
|
};
|
|
2159
2159
|
}
|
|
2160
|
-
function
|
|
2161
|
-
const a = t.tagStart ===
|
|
2160
|
+
function yn(e, t, n, r, i, o) {
|
|
2161
|
+
const a = t.tagStart === Fe ? "" : e.source.slice(t.tagStart, t.tagEnd), s = a === "" || a === "!" ? i : Yn(a, e.tagHandlers);
|
|
2162
2162
|
return {
|
|
2163
2163
|
tagName: s,
|
|
2164
|
-
tag:
|
|
2164
|
+
tag: Bi(e, n, r, s, o)
|
|
2165
2165
|
};
|
|
2166
2166
|
}
|
|
2167
|
-
function
|
|
2167
|
+
function Vn(e) {
|
|
2168
2168
|
return e.nodeKind === "mapping";
|
|
2169
2169
|
}
|
|
2170
|
-
function
|
|
2170
|
+
function En(e, t, n, r) {
|
|
2171
2171
|
for (const i of r.keys(n)) {
|
|
2172
2172
|
if (e.maxTotalMergeKeys !== -1 && ++e.totalMergeKeys > e.maxTotalMergeKeys && se(e, `merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`), t.tag.has(t.value, i)) continue;
|
|
2173
2173
|
const o = t.tag.addPair(t.value, i, r.get(n, i));
|
|
2174
2174
|
o && se(e, o), (t.overridable ??= /* @__PURE__ */ new Set()).add(i);
|
|
2175
2175
|
}
|
|
2176
2176
|
}
|
|
2177
|
-
function
|
|
2178
|
-
if (e.position = t.keyPosition,
|
|
2179
|
-
else if (r.nodeKind === "sequence" && Array.isArray(n)) for (const i of n)
|
|
2177
|
+
function Ui(e, t, n, r) {
|
|
2178
|
+
if (e.position = t.keyPosition, Vn(r)) En(e, t, n, r);
|
|
2179
|
+
else if (r.nodeKind === "sequence" && Array.isArray(n)) for (const i of n) En(e, t, i, t.tag);
|
|
2180
2180
|
else se(e, "cannot merge mappings; the provided source object is unacceptable");
|
|
2181
2181
|
}
|
|
2182
|
-
function
|
|
2183
|
-
if (e.position = t.keyPosition, n ===
|
|
2184
|
-
|
|
2182
|
+
function qi(e, t, n, r, i) {
|
|
2183
|
+
if (e.position = t.keyPosition, n === Xt) {
|
|
2184
|
+
Ui(e, t, r, i);
|
|
2185
2185
|
return;
|
|
2186
2186
|
}
|
|
2187
2187
|
!e.json && t.tag.has(t.value, n) && !t.overridable?.has(n) && se(e, "duplicated mapping key");
|
|
2188
2188
|
const o = t.tag.addPair(t.value, n, r);
|
|
2189
2189
|
o && se(e, o), t.overridable?.delete(n);
|
|
2190
2190
|
}
|
|
2191
|
-
function
|
|
2191
|
+
function It(e, t, n) {
|
|
2192
2192
|
const r = e.frames[e.frames.length - 1];
|
|
2193
2193
|
if (r.kind === "document")
|
|
2194
2194
|
r.value = t, r.hasValue = !0;
|
|
2195
2195
|
else if (r.kind === "sequence") {
|
|
2196
|
-
r.merge && (
|
|
2196
|
+
r.merge && (Vn(n) || se(e, "cannot merge mappings; the provided source object is unacceptable"));
|
|
2197
2197
|
const i = r.tag.addItem(r.value, t, r.index++);
|
|
2198
2198
|
i && se(e, i);
|
|
2199
2199
|
} else if (r.hasKey) {
|
|
2200
2200
|
const i = r.key;
|
|
2201
|
-
r.key = void 0, r.hasKey = !1,
|
|
2201
|
+
r.key = void 0, r.hasKey = !1, qi(e, r, i, t, n);
|
|
2202
2202
|
} else
|
|
2203
2203
|
r.key = t, r.keyPosition = e.position, r.hasKey = !0;
|
|
2204
2204
|
}
|
|
2205
|
-
function
|
|
2206
|
-
if (t.anchorStart !==
|
|
2205
|
+
function wt(e, t, n, r, i) {
|
|
2206
|
+
if (t.anchorStart !== Fe) {
|
|
2207
2207
|
const o = {
|
|
2208
2208
|
value: n,
|
|
2209
2209
|
tag: r,
|
|
@@ -2213,9 +2213,9 @@ function Nt(e, t, n, r, i) {
|
|
|
2213
2213
|
}
|
|
2214
2214
|
return null;
|
|
2215
2215
|
}
|
|
2216
|
-
function
|
|
2216
|
+
function Ki(e, t) {
|
|
2217
2217
|
const n = {
|
|
2218
|
-
...
|
|
2218
|
+
...Jt,
|
|
2219
2219
|
...t,
|
|
2220
2220
|
events: e,
|
|
2221
2221
|
documents: [],
|
|
@@ -2229,7 +2229,7 @@ function qi(e, t) {
|
|
|
2229
2229
|
};
|
|
2230
2230
|
for (; n.eventIndex < n.events.length; ) {
|
|
2231
2231
|
const r = n.events[n.eventIndex++];
|
|
2232
|
-
switch (n.position =
|
|
2232
|
+
switch (n.position = Mi(r), r.type) {
|
|
2233
2233
|
case 1:
|
|
2234
2234
|
n.anchors = /* @__PURE__ */ new Map(), n.aliasCount = 0, n.tagHandlers = /* @__PURE__ */ Object.create(null);
|
|
2235
2235
|
for (const i of r.directives) i.kind === "tag" && (n.tagHandlers[i.handle] = i.prefix);
|
|
@@ -2241,12 +2241,12 @@ function qi(e, t) {
|
|
|
2241
2241
|
});
|
|
2242
2242
|
break;
|
|
2243
2243
|
case 4: {
|
|
2244
|
-
const { value: i, tag: o } =
|
|
2245
|
-
|
|
2244
|
+
const { value: i, tag: o } = Di(n, r);
|
|
2245
|
+
wt(n, r, i, o, !0), It(n, i, o);
|
|
2246
2246
|
break;
|
|
2247
2247
|
}
|
|
2248
2248
|
case 2: {
|
|
2249
|
-
const i =
|
|
2249
|
+
const i = yn(n, r, n.schema.exact.sequence, n.schema.prefix.sequence, "tag:yaml.org,2002:seq", "sequence"), o = i.tag.create(i.tagName), a = wt(n, r, o, i.tag, i.tag.carrierIsResult), s = n.frames[n.frames.length - 1], l = s !== void 0 && s.kind === "mapping" && s.hasKey && s.key === Xt;
|
|
2250
2250
|
n.frames.push({
|
|
2251
2251
|
kind: "sequence",
|
|
2252
2252
|
position: n.position,
|
|
@@ -2259,7 +2259,7 @@ function qi(e, t) {
|
|
|
2259
2259
|
break;
|
|
2260
2260
|
}
|
|
2261
2261
|
case 3: {
|
|
2262
|
-
const i =
|
|
2262
|
+
const i = yn(n, r, n.schema.exact.mapping, n.schema.prefix.mapping, "tag:yaml.org,2002:map", "mapping"), o = i.tag.create(i.tagName), a = wt(n, r, o, i.tag, i.tag.carrierIsResult);
|
|
2263
2263
|
n.frames.push({
|
|
2264
2264
|
kind: "mapping",
|
|
2265
2265
|
position: n.position,
|
|
@@ -2276,15 +2276,15 @@ function qi(e, t) {
|
|
|
2276
2276
|
case 5: {
|
|
2277
2277
|
n.maxAliases !== -1 && ++n.aliasCount > n.maxAliases && se(n, `aliases exceeded maxAliases (${n.maxAliases})`);
|
|
2278
2278
|
const i = n.source.slice(r.anchorStart, r.anchorEnd), o = n.anchors.get(i);
|
|
2279
|
-
o || se(n, `unidentified alias "${i}"`), o.isValueFinal || se(n, `recursive alias "${i}" is not supported for tag ${o.tag.tagName} because it uses finalize()`),
|
|
2279
|
+
o || se(n, `unidentified alias "${i}"`), o.isValueFinal || se(n, `recursive alias "${i}" is not supported for tag ${o.tag.tagName} because it uses finalize()`), It(n, o.value, o.tag);
|
|
2280
2280
|
break;
|
|
2281
2281
|
}
|
|
2282
2282
|
case 6: {
|
|
2283
2283
|
const i = n.frames.pop();
|
|
2284
2284
|
if (i.kind === "document") n.documents.push(i.value);
|
|
2285
2285
|
else {
|
|
2286
|
-
const o = i.tag.carrierIsResult ? i.value :
|
|
2287
|
-
i.anchor && (i.anchor.value = o, i.anchor.isValueFinal = !0),
|
|
2286
|
+
const o = i.tag.carrierIsResult ? i.value : jn(n, i.position, i.tag, i.value);
|
|
2287
|
+
i.anchor && (i.anchor.value = o, i.anchor.isValueFinal = !0), It(n, o, i.tag);
|
|
2288
2288
|
}
|
|
2289
2289
|
break;
|
|
2290
2290
|
}
|
|
@@ -2292,11 +2292,11 @@ function qi(e, t) {
|
|
|
2292
2292
|
}
|
|
2293
2293
|
return n.documents;
|
|
2294
2294
|
}
|
|
2295
|
-
var
|
|
2295
|
+
var H = -1, Xn = Object.prototype.hasOwnProperty, De = 1, Pt = 2, Qn = 3, lt = 4, Gi = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Yi = /[,\[\]{}]/, zn = /^(?:!|!!|![0-9A-Za-z-]+!)$/, Ft = String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`, Zn = String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`, Wi = new RegExp(`^(?:${Ft})*$`), ji = new RegExp(`^(?:${Zn})+$`), Vi = new RegExp(`^(?:!(?:${Ft})*|${Zn}(?:${Ft})*)$`), en = {
|
|
2296
2296
|
filename: "",
|
|
2297
2297
|
maxDepth: 100
|
|
2298
2298
|
};
|
|
2299
|
-
function
|
|
2299
|
+
function Xi(e, t, n) {
|
|
2300
2300
|
e.events.push({
|
|
2301
2301
|
type: 1,
|
|
2302
2302
|
explicitStart: t,
|
|
@@ -2304,7 +2304,7 @@ function Vi(e, t, n) {
|
|
|
2304
2304
|
directives: e.directives
|
|
2305
2305
|
});
|
|
2306
2306
|
}
|
|
2307
|
-
function
|
|
2307
|
+
function Jn(e, t, n, r, i, o, a) {
|
|
2308
2308
|
e.events.push({
|
|
2309
2309
|
type: 2,
|
|
2310
2310
|
start: t,
|
|
@@ -2315,7 +2315,7 @@ function jn(e, t, n, r, i, o, a) {
|
|
|
2315
2315
|
style: a
|
|
2316
2316
|
});
|
|
2317
2317
|
}
|
|
2318
|
-
function
|
|
2318
|
+
function Ht(e, t, n, r, i, o, a) {
|
|
2319
2319
|
e.events.push({
|
|
2320
2320
|
type: 3,
|
|
2321
2321
|
start: t,
|
|
@@ -2326,7 +2326,18 @@ function je(e, t, n, r, i, o, a) {
|
|
|
2326
2326
|
style: a
|
|
2327
2327
|
});
|
|
2328
2328
|
}
|
|
2329
|
-
function
|
|
2329
|
+
function Sn(e, t) {
|
|
2330
|
+
e.events.splice(t.eventsLength, 0, {
|
|
2331
|
+
type: 3,
|
|
2332
|
+
start: t.position,
|
|
2333
|
+
anchorStart: H,
|
|
2334
|
+
anchorEnd: H,
|
|
2335
|
+
tagStart: H,
|
|
2336
|
+
tagEnd: H,
|
|
2337
|
+
style: 2
|
|
2338
|
+
});
|
|
2339
|
+
}
|
|
2340
|
+
function qe(e, t, n, r, i, o, a, s, l = 1, u = -1, c = !1) {
|
|
2330
2341
|
e.events.push({
|
|
2331
2342
|
type: 4,
|
|
2332
2343
|
valueStart: t,
|
|
@@ -2341,28 +2352,28 @@ function Ke(e, t, n, r, i, o, a, s, l = 1, u = -1, c = !1) {
|
|
|
2341
2352
|
fast: c
|
|
2342
2353
|
});
|
|
2343
2354
|
}
|
|
2344
|
-
function
|
|
2355
|
+
function Qi(e, t, n) {
|
|
2345
2356
|
e.events.push({
|
|
2346
2357
|
type: 5,
|
|
2347
2358
|
anchorStart: t,
|
|
2348
2359
|
anchorEnd: n
|
|
2349
2360
|
});
|
|
2350
2361
|
}
|
|
2351
|
-
function
|
|
2362
|
+
function He(e) {
|
|
2352
2363
|
e.events.push({ type: 6 });
|
|
2353
2364
|
}
|
|
2354
|
-
function
|
|
2355
|
-
|
|
2365
|
+
function re(e) {
|
|
2366
|
+
qe(e, H, H, H, H, H, H, 1);
|
|
2356
2367
|
}
|
|
2357
|
-
function
|
|
2368
|
+
function Cn() {
|
|
2358
2369
|
return {
|
|
2359
|
-
anchorStart:
|
|
2360
|
-
anchorEnd:
|
|
2361
|
-
tagStart:
|
|
2362
|
-
tagEnd:
|
|
2370
|
+
anchorStart: H,
|
|
2371
|
+
anchorEnd: H,
|
|
2372
|
+
tagStart: H,
|
|
2373
|
+
tagEnd: H
|
|
2363
2374
|
};
|
|
2364
2375
|
}
|
|
2365
|
-
function
|
|
2376
|
+
function je(e) {
|
|
2366
2377
|
return {
|
|
2367
2378
|
position: e.position,
|
|
2368
2379
|
line: e.line,
|
|
@@ -2372,59 +2383,59 @@ function Ve(e) {
|
|
|
2372
2383
|
eventsLength: e.events.length
|
|
2373
2384
|
};
|
|
2374
2385
|
}
|
|
2375
|
-
function
|
|
2386
|
+
function Me(e, t) {
|
|
2376
2387
|
e.position = t.position, e.line = t.line, e.lineStart = t.lineStart, e.lineIndent = t.lineIndent, e.firstTabInLine = t.firstTabInLine, e.events.length = t.eventsLength;
|
|
2377
2388
|
}
|
|
2378
2389
|
function I(e, t) {
|
|
2379
|
-
|
|
2390
|
+
mt(e.input.slice(0, e.length), e.position, t, e.filename);
|
|
2380
2391
|
}
|
|
2381
2392
|
function z(e) {
|
|
2382
2393
|
return e === 10 || e === 13;
|
|
2383
2394
|
}
|
|
2384
|
-
function
|
|
2395
|
+
function Ne(e) {
|
|
2385
2396
|
return e === 9 || e === 32;
|
|
2386
2397
|
}
|
|
2387
2398
|
function pe(e) {
|
|
2388
|
-
return
|
|
2399
|
+
return Ne(e) || z(e);
|
|
2389
2400
|
}
|
|
2390
2401
|
function Ae(e) {
|
|
2391
2402
|
return e === 0 || pe(e);
|
|
2392
2403
|
}
|
|
2393
|
-
function
|
|
2404
|
+
function $e(e) {
|
|
2394
2405
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
2395
2406
|
}
|
|
2396
|
-
function
|
|
2407
|
+
function zi(e) {
|
|
2397
2408
|
return e >= 48 && e <= 57 ? e - 48 : -1;
|
|
2398
2409
|
}
|
|
2399
|
-
function
|
|
2410
|
+
function Zi(e) {
|
|
2400
2411
|
if (e >= 48 && e <= 57) return e - 48;
|
|
2401
2412
|
const t = e | 32;
|
|
2402
2413
|
return t >= 97 && t <= 102 ? t - 97 + 10 : -1;
|
|
2403
2414
|
}
|
|
2404
|
-
function
|
|
2415
|
+
function Ji(e) {
|
|
2405
2416
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
2406
2417
|
}
|
|
2407
|
-
function
|
|
2418
|
+
function eo(e) {
|
|
2408
2419
|
return e === 48 || e === 97 || e === 98 || e === 116 || e === 9 || e === 110 || e === 118 || e === 102 || e === 114 || e === 101 || e === 32 || e === 34 || e === 47 || e === 92 || e === 78 || e === 95 || e === 76 || e === 80;
|
|
2409
2420
|
}
|
|
2410
|
-
function
|
|
2421
|
+
function ct(e) {
|
|
2411
2422
|
e.input.charCodeAt(e.position) === 10 ? e.position++ : (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++), e.line++, e.lineStart = e.position, e.lineIndent = 0, e.firstTabInLine = -1;
|
|
2412
2423
|
}
|
|
2413
|
-
function
|
|
2424
|
+
function ie(e, t) {
|
|
2414
2425
|
let n = 0, r = e.input.charCodeAt(e.position), i = e.position === e.lineStart || pe(e.input.charCodeAt(e.position - 1));
|
|
2415
2426
|
for (; r !== 0; ) {
|
|
2416
|
-
for (;
|
|
2427
|
+
for (; Ne(r); )
|
|
2417
2428
|
i = !0, r === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), r = e.input.charCodeAt(++e.position);
|
|
2418
2429
|
if (t && i && r === 35) do
|
|
2419
2430
|
r = e.input.charCodeAt(++e.position);
|
|
2420
2431
|
while (!z(r) && r !== 0);
|
|
2421
2432
|
if (!z(r)) break;
|
|
2422
|
-
for (
|
|
2433
|
+
for (ct(e), n++, i = !0, r = e.input.charCodeAt(e.position); r === 32; )
|
|
2423
2434
|
e.lineIndent++, r = e.input.charCodeAt(++e.position);
|
|
2424
2435
|
}
|
|
2425
2436
|
return n;
|
|
2426
2437
|
}
|
|
2427
|
-
function
|
|
2438
|
+
function ve(e, t = e.position) {
|
|
2428
2439
|
const n = e.input.charCodeAt(t);
|
|
2429
2440
|
if ((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2)) {
|
|
2430
2441
|
const r = e.input.charCodeAt(t + 3);
|
|
@@ -2432,16 +2443,16 @@ function xe(e, t = e.position) {
|
|
|
2432
2443
|
}
|
|
2433
2444
|
return !1;
|
|
2434
2445
|
}
|
|
2435
|
-
function
|
|
2446
|
+
function Tn(e) {
|
|
2436
2447
|
let t = e.input.charCodeAt(e.position);
|
|
2437
2448
|
for (; t !== 0 && !z(t); ) t = e.input.charCodeAt(++e.position);
|
|
2438
2449
|
}
|
|
2439
|
-
function
|
|
2440
|
-
|
|
2450
|
+
function er(e, t, n) {
|
|
2451
|
+
Gi.test(e.input.slice(t, n)) && I(e, "the stream contains non-printable characters");
|
|
2441
2452
|
}
|
|
2442
|
-
function
|
|
2453
|
+
function to(e, t, n) {
|
|
2443
2454
|
if (e.input.charCodeAt(e.position) !== 33) return !1;
|
|
2444
|
-
t.tagStart !==
|
|
2455
|
+
t.tagStart !== H && I(e, "duplication of a tag property");
|
|
2445
2456
|
const r = e.position;
|
|
2446
2457
|
let i = !1, o = !1, a = "!", s = e.input.charCodeAt(++e.position);
|
|
2447
2458
|
s === 60 ? (i = !0, s = e.input.charCodeAt(++e.position)) : s === 33 && (o = !0, a = "!!", s = e.input.charCodeAt(++e.position));
|
|
@@ -2450,30 +2461,30 @@ function eo(e, t, n) {
|
|
|
2450
2461
|
for (; s !== 0 && s !== 62; ) s = e.input.charCodeAt(++e.position);
|
|
2451
2462
|
s !== 62 && I(e, "unexpected end of the stream within a verbatim tag"), u = e.input.slice(l, e.position), e.position++;
|
|
2452
2463
|
} else {
|
|
2453
|
-
for (; s !== 0 && !pe(s) && !(n &&
|
|
2454
|
-
s === 33 && (o ? I(e, "tag suffix cannot contain exclamation marks") : (a = e.input.slice(l - 1, e.position + 1),
|
|
2455
|
-
u = e.input.slice(l, e.position),
|
|
2464
|
+
for (; s !== 0 && !pe(s) && !(n && $e(s)); )
|
|
2465
|
+
s === 33 && (o ? I(e, "tag suffix cannot contain exclamation marks") : (a = e.input.slice(l - 1, e.position + 1), zn.test(a) || I(e, "named tag handle cannot contain such characters"), o = !0, l = e.position + 1)), s = e.input.charCodeAt(++e.position);
|
|
2466
|
+
u = e.input.slice(l, e.position), Yi.test(u) && I(e, "tag suffix cannot contain flow indicator characters");
|
|
2456
2467
|
}
|
|
2457
|
-
return u && !(i ?
|
|
2468
|
+
return u && !(i ? Wi.test(u) : ji.test(u)) && I(e, `tag name cannot contain such characters: ${u}`), !i && a !== "!" && a !== "!!" && !Xn.call(e.tagHandlers, a) && I(e, `undeclared tag handle "${a}"`), t.tagStart = r, t.tagEnd = e.position, !0;
|
|
2458
2469
|
}
|
|
2459
|
-
function
|
|
2470
|
+
function no(e, t) {
|
|
2460
2471
|
if (e.input.charCodeAt(e.position) !== 38) return !1;
|
|
2461
|
-
t.anchorStart !==
|
|
2472
|
+
t.anchorStart !== H && I(e, "duplication of an anchor property"), e.position++;
|
|
2462
2473
|
const n = e.position;
|
|
2463
|
-
for (; e.input.charCodeAt(e.position) !== 0 && !pe(e.input.charCodeAt(e.position)) &&
|
|
2474
|
+
for (; e.input.charCodeAt(e.position) !== 0 && !pe(e.input.charCodeAt(e.position)) && !$e(e.input.charCodeAt(e.position)); ) e.position++;
|
|
2464
2475
|
return e.position === n && I(e, "name of an anchor node must contain at least one character"), t.anchorStart = n, t.anchorEnd = e.position, !0;
|
|
2465
2476
|
}
|
|
2466
|
-
function
|
|
2477
|
+
function ro(e, t) {
|
|
2467
2478
|
if (e.input.charCodeAt(e.position) !== 42) return !1;
|
|
2468
|
-
(t.anchorStart !==
|
|
2479
|
+
(t.anchorStart !== H || t.tagStart !== H) && I(e, "alias node should not have any properties"), e.position++;
|
|
2469
2480
|
const n = e.position;
|
|
2470
|
-
for (; e.input.charCodeAt(e.position) !== 0 && !pe(e.input.charCodeAt(e.position)) &&
|
|
2471
|
-
return e.position === n && I(e, "name of an alias node must contain at least one character"),
|
|
2481
|
+
for (; e.input.charCodeAt(e.position) !== 0 && !pe(e.input.charCodeAt(e.position)) && !$e(e.input.charCodeAt(e.position)); ) e.position++;
|
|
2482
|
+
return e.position === n && I(e, "name of an alias node must contain at least one character"), Qi(e, n, e.position), !0;
|
|
2472
2483
|
}
|
|
2473
2484
|
function Mt(e, t) {
|
|
2474
|
-
|
|
2485
|
+
ie(e, !1), e.lineIndent < t && I(e, "deficient indentation");
|
|
2475
2486
|
}
|
|
2476
|
-
function
|
|
2487
|
+
function io(e, t, n) {
|
|
2477
2488
|
if (e.input.charCodeAt(e.position) !== 39) return !1;
|
|
2478
2489
|
e.position++;
|
|
2479
2490
|
const r = e.position;
|
|
@@ -2486,13 +2497,13 @@ function ro(e, t, n) {
|
|
|
2486
2497
|
continue;
|
|
2487
2498
|
}
|
|
2488
2499
|
const a = e.position;
|
|
2489
|
-
return e.position++,
|
|
2500
|
+
return e.position++, qe(e, r, a, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 2, 1, -1, i), !0;
|
|
2490
2501
|
}
|
|
2491
|
-
z(o) ? (i = !1, Mt(e, t)) : e.position === e.lineStart &&
|
|
2502
|
+
z(o) ? (i = !1, Mt(e, t)) : e.position === e.lineStart && ve(e) ? I(e, "unexpected end of the document within a single quoted scalar") : o !== 9 && o < 32 ? I(e, "expected valid JSON character") : e.position++;
|
|
2492
2503
|
}
|
|
2493
2504
|
I(e, "unexpected end of the stream within a single quoted scalar");
|
|
2494
2505
|
}
|
|
2495
|
-
function
|
|
2506
|
+
function oo(e, t, n) {
|
|
2496
2507
|
if (e.input.charCodeAt(e.position) !== 34) return !1;
|
|
2497
2508
|
e.position++;
|
|
2498
2509
|
const r = e.position;
|
|
@@ -2501,93 +2512,93 @@ function io(e, t, n) {
|
|
|
2501
2512
|
const o = e.input.charCodeAt(e.position);
|
|
2502
2513
|
if (o === 34) {
|
|
2503
2514
|
const a = e.position;
|
|
2504
|
-
return e.position++,
|
|
2515
|
+
return e.position++, qe(e, r, a, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 3, 1, -1, i), !0;
|
|
2505
2516
|
}
|
|
2506
2517
|
if (o === 92) {
|
|
2507
2518
|
i = !1;
|
|
2508
2519
|
const a = e.input.charCodeAt(++e.position);
|
|
2509
2520
|
if (z(a)) Mt(e, t);
|
|
2510
|
-
else if (
|
|
2521
|
+
else if (eo(a)) e.position++;
|
|
2511
2522
|
else {
|
|
2512
|
-
let s =
|
|
2523
|
+
let s = Ji(a);
|
|
2513
2524
|
for (s === 0 && I(e, "unknown escape sequence"); s-- > 0; )
|
|
2514
|
-
e.position++,
|
|
2525
|
+
e.position++, Zi(e.input.charCodeAt(e.position)) < 0 && I(e, "expected hexadecimal character");
|
|
2515
2526
|
e.position++;
|
|
2516
2527
|
}
|
|
2517
|
-
} else z(o) ? (i = !1, Mt(e, t)) : e.position === e.lineStart &&
|
|
2528
|
+
} else z(o) ? (i = !1, Mt(e, t)) : e.position === e.lineStart && ve(e) ? I(e, "unexpected end of the document within a double quoted scalar") : o !== 9 && o < 32 ? I(e, "expected valid JSON character") : e.position++;
|
|
2518
2529
|
}
|
|
2519
2530
|
I(e, "unexpected end of the stream within a double quoted scalar");
|
|
2520
2531
|
}
|
|
2521
|
-
function
|
|
2532
|
+
function ao(e, t, n) {
|
|
2522
2533
|
const r = e.input.charCodeAt(e.position);
|
|
2523
2534
|
let i = 1, o = -1, a = !1;
|
|
2524
2535
|
if (r !== 124 && r !== 62) return !1;
|
|
2525
2536
|
const s = r === 124 ? 4 : 5;
|
|
2526
2537
|
for (e.position++; e.input.charCodeAt(e.position) !== 0; ) {
|
|
2527
|
-
const
|
|
2528
|
-
if (
|
|
2529
|
-
i !== 1 && I(e, "repeat of a chomping mode identifier"), i =
|
|
2538
|
+
const C = e.input.charCodeAt(e.position), E = zi(C);
|
|
2539
|
+
if (C === 43 || C === 45)
|
|
2540
|
+
i !== 1 && I(e, "repeat of a chomping mode identifier"), i = C === 43 ? 3 : 2, e.position++;
|
|
2530
2541
|
else if (E >= 0)
|
|
2531
2542
|
E === 0 && I(e, "bad explicit indentation width of a block scalar; it cannot be less than one"), a && I(e, "repeat of an indentation width identifier"), o = t + E - 1, a = !0, e.position++;
|
|
2532
2543
|
else break;
|
|
2533
2544
|
}
|
|
2534
2545
|
let l = !1;
|
|
2535
|
-
for (;
|
|
2546
|
+
for (; Ne(e.input.charCodeAt(e.position)); )
|
|
2536
2547
|
l = !0, e.position++;
|
|
2537
|
-
l && e.input.charCodeAt(e.position) === 35 &&
|
|
2548
|
+
l && e.input.charCodeAt(e.position) === 35 && Tn(e), z(e.input.charCodeAt(e.position)) ? ct(e) : e.input.charCodeAt(e.position) !== 0 && I(e, "a line break is expected");
|
|
2538
2549
|
let u = a ? o : -1, c = 0;
|
|
2539
2550
|
const y = e.position;
|
|
2540
2551
|
let g = e.position;
|
|
2541
2552
|
for (; e.input.charCodeAt(e.position) !== 0; ) {
|
|
2542
|
-
const
|
|
2553
|
+
const C = e.position;
|
|
2543
2554
|
let E = 0;
|
|
2544
|
-
for (; e.input.charCodeAt(
|
|
2545
|
-
const w = e.input.charCodeAt(
|
|
2555
|
+
for (; e.input.charCodeAt(C + E) === 32; ) E++;
|
|
2556
|
+
const w = e.input.charCodeAt(C + E);
|
|
2546
2557
|
if (w === 0) {
|
|
2547
|
-
u >= 0 ? E > u && (g =
|
|
2558
|
+
u >= 0 ? E > u && (g = C + E) : E > 0 && (g = C + E);
|
|
2548
2559
|
break;
|
|
2549
2560
|
}
|
|
2550
|
-
if (
|
|
2551
|
-
if (!a && u === -1 && z(w) && (c = Math.max(c, E)), !a && u === -1 && !z(w) && (w === 9 && E < t && (e.position =
|
|
2552
|
-
e.lineIndent = E, e.position =
|
|
2561
|
+
if (C === e.lineStart && ve(e, C)) break;
|
|
2562
|
+
if (!a && u === -1 && z(w) && (c = Math.max(c, E)), !a && u === -1 && !z(w) && (w === 9 && E < t && (e.position = C + E, I(e, "tab characters must not be used in indentation")), E < c && (e.position = C + E, I(e, "bad indentation of a mapping entry"))), u === -1 && w !== 0 && !z(w) && E < t) {
|
|
2563
|
+
e.lineIndent = E, e.position = C + E;
|
|
2553
2564
|
break;
|
|
2554
2565
|
}
|
|
2555
2566
|
!a && w !== 0 && !z(w) && u === -1 && (u = E);
|
|
2556
|
-
const
|
|
2557
|
-
if (w !== 0 && !z(w) && E <
|
|
2558
|
-
e.lineIndent = E, e.position =
|
|
2567
|
+
const F = u === -1 ? t + 1 : u;
|
|
2568
|
+
if (w !== 0 && !z(w) && E < F) {
|
|
2569
|
+
e.lineIndent = E, e.position = C + E;
|
|
2559
2570
|
break;
|
|
2560
2571
|
}
|
|
2561
|
-
|
|
2572
|
+
Tn(e), g = e.position, z(e.input.charCodeAt(e.position)) && (ct(e), g = e.position);
|
|
2562
2573
|
}
|
|
2563
|
-
return
|
|
2574
|
+
return er(e, y, g), qe(e, y, g, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, s, i, u), !0;
|
|
2564
2575
|
}
|
|
2565
|
-
function
|
|
2566
|
-
const n = e.input.charCodeAt(e.position), r = t ===
|
|
2567
|
-
if (n === 0 || pe(n) || n === 35 || n === 38 || n === 42 || n === 33 || n === 124 || n === 62 || n === 39 || n === 34 || n === 37 || n === 64 || n === 96 || r &&
|
|
2576
|
+
function so(e, t) {
|
|
2577
|
+
const n = e.input.charCodeAt(e.position), r = t === De;
|
|
2578
|
+
if (n === 0 || pe(n) || n === 35 || n === 38 || n === 42 || n === 33 || n === 124 || n === 62 || n === 39 || n === 34 || n === 37 || n === 64 || n === 96 || r && $e(n)) return !1;
|
|
2568
2579
|
if (n === 63 || n === 45) {
|
|
2569
2580
|
const i = e.input.charCodeAt(e.position + 1);
|
|
2570
|
-
if (Ae(i) || r &&
|
|
2581
|
+
if (Ae(i) || r && $e(i)) return !1;
|
|
2571
2582
|
}
|
|
2572
2583
|
return !0;
|
|
2573
2584
|
}
|
|
2574
|
-
function
|
|
2575
|
-
if (!
|
|
2585
|
+
function lo(e, t, n, r) {
|
|
2586
|
+
if (!so(e, n)) return !1;
|
|
2576
2587
|
const i = e.position;
|
|
2577
2588
|
let o = e.position, a = e.input.charCodeAt(e.position);
|
|
2578
|
-
const s = n ===
|
|
2589
|
+
const s = n === De;
|
|
2579
2590
|
let l = !1;
|
|
2580
|
-
for (; a !== 0 && !(e.position === e.lineStart &&
|
|
2591
|
+
for (; a !== 0 && !(e.position === e.lineStart && ve(e)); ) {
|
|
2581
2592
|
if (a === 58) {
|
|
2582
2593
|
const u = e.input.charCodeAt(e.position + 1);
|
|
2583
|
-
if (Ae(u) || s &&
|
|
2594
|
+
if (Ae(u) || s && $e(u)) break;
|
|
2584
2595
|
} else if (a === 35) {
|
|
2585
2596
|
if (pe(e.input.charCodeAt(e.position - 1))) break;
|
|
2586
2597
|
} else {
|
|
2587
|
-
if (s &&
|
|
2598
|
+
if (s && $e(a)) break;
|
|
2588
2599
|
if (z(a)) {
|
|
2589
2600
|
const u = e.position, c = e.line, y = e.lineStart, g = e.lineIndent;
|
|
2590
|
-
if (
|
|
2601
|
+
if (ie(e, !1), e.lineIndent >= t) {
|
|
2591
2602
|
l = !0, a = e.input.charCodeAt(e.position);
|
|
2592
2603
|
continue;
|
|
2593
2604
|
}
|
|
@@ -2595,45 +2606,45 @@ function so(e, t, n, r) {
|
|
|
2595
2606
|
break;
|
|
2596
2607
|
}
|
|
2597
2608
|
}
|
|
2598
|
-
|
|
2609
|
+
Ne(a) || (o = e.position + 1), a = e.input.charCodeAt(++e.position);
|
|
2599
2610
|
}
|
|
2600
|
-
return o === i ? !1 : (
|
|
2611
|
+
return o === i ? !1 : (er(e, i, o), qe(e, i, o, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, 1, 1, -1, !l), !0);
|
|
2601
2612
|
}
|
|
2602
|
-
function
|
|
2613
|
+
function Ge(e, t) {
|
|
2603
2614
|
const n = e.line;
|
|
2604
|
-
|
|
2615
|
+
ie(e, !0), (e.line > n && e.lineIndent < t || e.firstTabInLine !== -1 && e.lineIndent < t) && I(e, "deficient indentation");
|
|
2605
2616
|
}
|
|
2606
|
-
function
|
|
2617
|
+
function co(e, t, n) {
|
|
2607
2618
|
const r = e.input.charCodeAt(e.position), i = r === 123, o = e.position;
|
|
2608
2619
|
let a = !0;
|
|
2609
2620
|
if (r !== 91 && r !== 123) return !1;
|
|
2610
2621
|
const s = i ? 125 : 93;
|
|
2611
|
-
for (i ?
|
|
2612
|
-
|
|
2622
|
+
for (i ? Ht(e, o, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 2) : Jn(e, o, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 2), e.position++; e.input.charCodeAt(e.position) !== 0; ) {
|
|
2623
|
+
Ge(e, t);
|
|
2613
2624
|
let l = e.input.charCodeAt(e.position);
|
|
2614
2625
|
if (l === s)
|
|
2615
|
-
return e.position++,
|
|
2626
|
+
return e.position++, He(e), !0;
|
|
2616
2627
|
a ? l === 44 && I(e, "expected the node content, but found ','") : I(e, "missed comma between flow collection entries");
|
|
2617
2628
|
let u = !1, c = !1;
|
|
2618
|
-
l === 63 && pe(e.input.charCodeAt(e.position + 1)) && (u = c = !0, e.position += 1,
|
|
2619
|
-
const y = e.line, g =
|
|
2620
|
-
|
|
2629
|
+
l === 63 && pe(e.input.charCodeAt(e.position + 1)) && (u = c = !0, e.position += 1, Ge(e, t));
|
|
2630
|
+
const y = e.line, g = je(e), C = we(e, t, De, !1, !0);
|
|
2631
|
+
Ge(e, t), l = e.input.charCodeAt(e.position), (i || c || e.line === y) && l === 58 ? (u = !0, e.position++, Ge(e, t), i || Sn(e, g), C || re(e), we(e, t, De, !1, !0) || re(e), Ge(e, t), i || He(e)) : i && u ? (C || re(e), re(e)) : i ? re(e) : u && (Sn(e, g), C || re(e), re(e), He(e)), l = e.input.charCodeAt(e.position), l === 44 ? (a = !0, e.position++) : a = !1;
|
|
2621
2632
|
}
|
|
2622
2633
|
I(e, "unexpected end of the stream within a flow collection");
|
|
2623
2634
|
}
|
|
2624
|
-
function
|
|
2635
|
+
function vn(e, t, n) {
|
|
2625
2636
|
if (e.firstTabInLine !== -1 || e.input.charCodeAt(e.position) !== 45 || !Ae(e.input.charCodeAt(e.position + 1))) return !1;
|
|
2626
|
-
for (
|
|
2637
|
+
for (Jn(e, e.position, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 1); e.input.charCodeAt(e.position) === 45 && Ae(e.input.charCodeAt(e.position + 1)); ) {
|
|
2627
2638
|
e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, I(e, "tab characters must not be used in indentation"));
|
|
2628
2639
|
const r = e.line;
|
|
2629
2640
|
e.position++;
|
|
2630
|
-
const i =
|
|
2631
|
-
if (e.firstTabInLine !== -1 && e.input.charCodeAt(e.position) === 45 && Ae(e.input.charCodeAt(e.position + 1)) && I(e, "bad indentation of a sequence entry"), i && e.lineIndent <= t ?
|
|
2641
|
+
const i = ie(e, !0) > 0;
|
|
2642
|
+
if (e.firstTabInLine !== -1 && e.input.charCodeAt(e.position) === 45 && Ae(e.input.charCodeAt(e.position + 1)) && I(e, "bad indentation of a sequence entry"), i && e.lineIndent <= t ? re(e) : we(e, t, Qn, !1, !0), ie(e, !0), e.lineIndent < t || e.position >= e.length) break;
|
|
2632
2643
|
e.lineIndent > t && I(e, "bad indentation of a sequence entry"), e.line === r && e.input.charCodeAt(e.position) === 45 && Ae(e.input.charCodeAt(e.position + 1)) && I(e, "bad indentation of a sequence entry");
|
|
2633
2644
|
}
|
|
2634
|
-
return
|
|
2645
|
+
return He(e), !0;
|
|
2635
2646
|
}
|
|
2636
|
-
function
|
|
2647
|
+
function Nt(e, t, n, r) {
|
|
2637
2648
|
let i = !1, o = !1, a = !1, s = !1;
|
|
2638
2649
|
if (e.firstTabInLine !== -1) return !1;
|
|
2639
2650
|
let l = e.input.charCodeAt(e.position);
|
|
@@ -2641,80 +2652,80 @@ function $t(e, t, n, r) {
|
|
|
2641
2652
|
!i && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, I(e, "tab characters must not be used in indentation"));
|
|
2642
2653
|
const u = e.input.charCodeAt(e.position + 1), c = e.line;
|
|
2643
2654
|
if ((l === 63 || l === 58) && Ae(u))
|
|
2644
|
-
a || (
|
|
2655
|
+
a || (Ht(e, e.position, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, 1), a = !0), l === 63 ? (i && re(e), o = !0, i = !0) : (i || (re(e), o = !0), i = !1), e.position += 1, s = !0;
|
|
2645
2656
|
else {
|
|
2646
|
-
i && (
|
|
2647
|
-
const y =
|
|
2648
|
-
if (!
|
|
2657
|
+
i && (re(e), i = !1);
|
|
2658
|
+
const y = je(e);
|
|
2659
|
+
if (!we(e, n, Pt, !1, !0)) break;
|
|
2649
2660
|
if (e.line === c) {
|
|
2650
|
-
for (l = e.input.charCodeAt(e.position);
|
|
2661
|
+
for (l = e.input.charCodeAt(e.position); Ne(l); ) l = e.input.charCodeAt(++e.position);
|
|
2651
2662
|
if (l === 58) {
|
|
2652
2663
|
if (l = e.input.charCodeAt(++e.position), Ae(l) || I(e, "a whitespace character is expected after the key-value separator within a block mapping"), !a) {
|
|
2653
|
-
for (
|
|
2664
|
+
for (Me(e, y), Ht(e, y.position, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, 1), a = !0, we(e, n, Pt, !1, !0), l = e.input.charCodeAt(e.position); Ne(l); ) l = e.input.charCodeAt(++e.position);
|
|
2654
2665
|
e.position++;
|
|
2655
2666
|
}
|
|
2656
2667
|
o = !0, i = !1, s = !1;
|
|
2657
2668
|
} else if (o) I(e, "expected ':' after a mapping key");
|
|
2658
2669
|
else
|
|
2659
|
-
return r.anchorStart !==
|
|
2670
|
+
return r.anchorStart !== H || r.tagStart !== H ? (Me(e, y), !1) : !0;
|
|
2660
2671
|
} else if (o) I(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
2661
2672
|
else
|
|
2662
|
-
return r.anchorStart !==
|
|
2673
|
+
return r.anchorStart !== H || r.tagStart !== H ? (Me(e, y), !1) : !0;
|
|
2663
2674
|
}
|
|
2664
|
-
if (
|
|
2675
|
+
if (we(e, t, lt, !0, s) && (s = !1), i || s && (re(e), s = !1), ie(e, !0), l = e.input.charCodeAt(e.position), (e.line === c || e.lineIndent > t) && l !== 0) I(e, "bad indentation of a mapping entry");
|
|
2665
2676
|
else if (e.lineIndent < t) break;
|
|
2666
2677
|
}
|
|
2667
|
-
return o ? (i &&
|
|
2678
|
+
return o ? (i && re(e), a && He(e), !0) : !1;
|
|
2668
2679
|
}
|
|
2669
|
-
function
|
|
2680
|
+
function we(e, t, n, r, i, o = !0) {
|
|
2670
2681
|
e.depth >= e.maxDepth && I(e, `nesting exceeded maxDepth (${e.maxDepth})`), e.depth++;
|
|
2671
2682
|
let a = 1, s = !1, l = !1, u = null;
|
|
2672
|
-
const c =
|
|
2673
|
-
let y = n ===
|
|
2674
|
-
const
|
|
2675
|
-
if (r &&
|
|
2683
|
+
const c = Cn();
|
|
2684
|
+
let y = n === lt || n === Qn, g = y;
|
|
2685
|
+
const C = y;
|
|
2686
|
+
if (r && ie(e, !0) && (s = !0, e.lineIndent > t ? a = 1 : e.lineIndent === t ? a = 0 : a = -1), e.position === e.lineStart && ve(e))
|
|
2676
2687
|
return e.depth--, !1;
|
|
2677
2688
|
if (a === 1) for (; ; ) {
|
|
2678
|
-
const E = e.input.charCodeAt(e.position), w =
|
|
2689
|
+
const E = e.input.charCodeAt(e.position), w = je(e);
|
|
2679
2690
|
if (s && a !== 1 && (E === 33 || E === 38)) break;
|
|
2680
|
-
if (s &&
|
|
2681
|
-
const
|
|
2682
|
-
if (
|
|
2691
|
+
if (s && C && (c.tagStart !== H || c.anchorStart !== H) && (E === 33 || E === 38)) {
|
|
2692
|
+
const F = je(e), N = t + 1;
|
|
2693
|
+
if (Nt(e, e.position - e.lineStart, N, c) && e.events[F.eventsLength]?.type === 3)
|
|
2683
2694
|
return e.depth--, !0;
|
|
2684
|
-
|
|
2695
|
+
Me(e, F);
|
|
2685
2696
|
}
|
|
2686
|
-
if (s && (E === 33 && c.tagStart !==
|
|
2687
|
-
u === null && (u = w),
|
|
2697
|
+
if (s && (E === 33 && c.tagStart !== H || E === 38 && c.anchorStart !== H) || !to(e, c, n === De) && !no(e, c)) break;
|
|
2698
|
+
u === null && (u = w), ie(e, !0) ? (s = !0, g = C, e.lineIndent > t ? a = 1 : e.lineIndent === t ? a = 0 : a = -1) : g = !1;
|
|
2688
2699
|
}
|
|
2689
|
-
if (g && (g = s || i), a === 1 || n ===
|
|
2690
|
-
const E = n ===
|
|
2691
|
-
if (a === 1) if (g && (
|
|
2700
|
+
if (g && (g = s || i), a === 1 || n === lt) {
|
|
2701
|
+
const E = n === De || n === Pt ? t : t + 1, w = e.position - e.lineStart;
|
|
2702
|
+
if (a === 1) if (g && (vn(e, w, c) || Nt(e, w, E, c)) || co(e, E, c)) l = !0;
|
|
2692
2703
|
else {
|
|
2693
|
-
const
|
|
2694
|
-
if (u !== null && o &&
|
|
2695
|
-
const N =
|
|
2696
|
-
|
|
2704
|
+
const F = e.input.charCodeAt(e.position);
|
|
2705
|
+
if (u !== null && o && C && !g && F !== 124 && F !== 62) {
|
|
2706
|
+
const N = je(e), A = u.position - u.lineStart;
|
|
2707
|
+
Me(e, u), Nt(e, A, E, Cn()) && e.events[N.eventsLength]?.type === 3 ? l = !0 : Me(e, N);
|
|
2697
2708
|
}
|
|
2698
|
-
!l && (y &&
|
|
2709
|
+
!l && (y && ao(e, E, c) || io(e, E, c) || oo(e, E, c) || ro(e, c) || lo(e, E, n, c)) && (l = !0);
|
|
2699
2710
|
}
|
|
2700
|
-
else a === 0 && (l = g &&
|
|
2711
|
+
else a === 0 && (l = g && vn(e, w, c));
|
|
2701
2712
|
}
|
|
2702
|
-
return y = y && !l, !l && (c.anchorStart !==
|
|
2713
|
+
return y = y && !l, !l && (c.anchorStart !== H || c.tagStart !== H || y) && (qe(e, H, H, c.anchorStart, c.anchorEnd, c.tagStart, c.tagEnd, 1), l = !0), e.depth--, l || c.anchorStart !== H || c.tagStart !== H;
|
|
2703
2714
|
}
|
|
2704
|
-
function
|
|
2715
|
+
function uo(e) {
|
|
2705
2716
|
if (e.lineIndent > 0 || e.input.charCodeAt(e.position) !== 37) return !1;
|
|
2706
2717
|
e.position++;
|
|
2707
2718
|
const t = e.position;
|
|
2708
2719
|
for (; e.input.charCodeAt(e.position) !== 0 && !pe(e.input.charCodeAt(e.position)); ) e.position++;
|
|
2709
2720
|
const n = e.input.slice(t, e.position), r = [];
|
|
2710
2721
|
for (n.length === 0 && I(e, "directive name must not be less than one character in length"); e.input.charCodeAt(e.position) !== 0 && !z(e.input.charCodeAt(e.position)); ) {
|
|
2711
|
-
for (;
|
|
2722
|
+
for (; Ne(e.input.charCodeAt(e.position)); ) e.position++;
|
|
2712
2723
|
if (e.input.charCodeAt(e.position) === 35 || z(e.input.charCodeAt(e.position)) || e.input.charCodeAt(e.position) === 0) break;
|
|
2713
2724
|
const i = e.position;
|
|
2714
2725
|
for (; e.input.charCodeAt(e.position) !== 0 && !pe(e.input.charCodeAt(e.position)); ) e.position++;
|
|
2715
2726
|
r.push(e.input.slice(i, e.position));
|
|
2716
2727
|
}
|
|
2717
|
-
if (z(e.input.charCodeAt(e.position)) &&
|
|
2728
|
+
if (z(e.input.charCodeAt(e.position)) && ct(e), n === "YAML") {
|
|
2718
2729
|
e.directives.some((o) => o.kind === "yaml") && I(e, "duplication of %YAML directive"), r.length !== 1 && I(e, "YAML directive accepts exactly one argument");
|
|
2719
2730
|
const i = /^([0-9]+)\.([0-9]+)$/.exec(r[0]);
|
|
2720
2731
|
i === null && I(e, "ill-formed argument of the YAML directive"), parseInt(i[1], 10) !== 1 && I(e, "unacceptable YAML version of the document"), e.directives.push({
|
|
@@ -2724,7 +2735,7 @@ function co(e) {
|
|
|
2724
2735
|
} else if (n === "TAG") {
|
|
2725
2736
|
r.length !== 2 && I(e, "TAG directive accepts exactly two arguments");
|
|
2726
2737
|
const [i, o] = r;
|
|
2727
|
-
|
|
2738
|
+
zn.test(i) || I(e, "ill-formed tag handle (first argument) of the TAG directive"), Xn.call(e.tagHandlers, i) && I(e, `there is a previously declared suffix for "${i}" tag handle`), Vi.test(o) || I(e, "ill-formed tag prefix (second argument) of the TAG directive"), e.tagHandlers[i] = o, e.directives.push({
|
|
2728
2739
|
kind: "tag",
|
|
2729
2740
|
handle: i,
|
|
2730
2741
|
prefix: o
|
|
@@ -2732,32 +2743,32 @@ function co(e) {
|
|
|
2732
2743
|
}
|
|
2733
2744
|
return !0;
|
|
2734
2745
|
}
|
|
2735
|
-
function
|
|
2746
|
+
function fo(e) {
|
|
2736
2747
|
e.directives = [], e.tagHandlers = /* @__PURE__ */ Object.create(null);
|
|
2737
2748
|
let t = !1;
|
|
2738
|
-
for (
|
|
2739
|
-
t = !0,
|
|
2749
|
+
for (ie(e, !0); uo(e); )
|
|
2750
|
+
t = !0, ie(e, !0);
|
|
2740
2751
|
let n = !1, r = !1, i = !0;
|
|
2741
2752
|
if (e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 && Ae(e.input.charCodeAt(e.position + 3))) {
|
|
2742
2753
|
n = !0;
|
|
2743
2754
|
const s = e.line;
|
|
2744
|
-
e.position += 3,
|
|
2755
|
+
e.position += 3, ie(e, !0), i = e.line > s;
|
|
2745
2756
|
} else t && I(e, "directives end mark is expected");
|
|
2746
2757
|
const o = e.events.length;
|
|
2747
|
-
if (!n && e.position === e.lineStart && e.input.charCodeAt(e.position) === 46 &&
|
|
2748
|
-
e.position += 3,
|
|
2758
|
+
if (!n && e.position === e.lineStart && e.input.charCodeAt(e.position) === 46 && ve(e)) {
|
|
2759
|
+
e.position += 3, ie(e, !0);
|
|
2749
2760
|
return;
|
|
2750
2761
|
}
|
|
2751
|
-
if (
|
|
2762
|
+
if (Xi(e, n, !1), we(e, e.lineIndent - 1, lt, !1, i, i) || re(e), ie(e, !0), e.position === e.lineStart && ve(e) && (r = e.input.charCodeAt(e.position) === 46, r)) {
|
|
2752
2763
|
const s = e.line;
|
|
2753
|
-
e.position += 3,
|
|
2764
|
+
e.position += 3, ie(e, !0), e.line === s && e.position < e.length && I(e, "end of the stream or a document separator is expected");
|
|
2754
2765
|
}
|
|
2755
2766
|
const a = e.events[o];
|
|
2756
|
-
a?.type === 1 && (a.explicitEnd = r),
|
|
2767
|
+
a?.type === 1 && (a.explicitEnd = r), He(e), !r && e.position < e.length && !(e.position === e.lineStart && ve(e)) && I(e, "end of the stream or a document separator is expected");
|
|
2757
2768
|
}
|
|
2758
|
-
function
|
|
2769
|
+
function po(e, t) {
|
|
2759
2770
|
const n = e.length, r = {
|
|
2760
|
-
...
|
|
2771
|
+
...en,
|
|
2761
2772
|
...t,
|
|
2762
2773
|
input: `${e}\0`,
|
|
2763
2774
|
length: n,
|
|
@@ -2771,42 +2782,42 @@ function fo(e, t) {
|
|
|
2771
2782
|
tagHandlers: /* @__PURE__ */ Object.create(null),
|
|
2772
2783
|
events: []
|
|
2773
2784
|
}, i = e.indexOf("\0");
|
|
2774
|
-
for (i !== -1 &&
|
|
2785
|
+
for (i !== -1 && mt(e, i, "null byte is not allowed in input", r.filename), r.input.charCodeAt(r.position) === 65279 && r.position++; r.position < r.length && (ie(r, !0), !(r.position >= r.length)); ) {
|
|
2775
2786
|
const o = r.position;
|
|
2776
|
-
|
|
2787
|
+
fo(r), r.position === o && I(r, "can not read a document");
|
|
2777
2788
|
}
|
|
2778
2789
|
return r.events;
|
|
2779
2790
|
}
|
|
2780
|
-
var
|
|
2781
|
-
...
|
|
2782
|
-
...
|
|
2791
|
+
var ho = {
|
|
2792
|
+
...en,
|
|
2793
|
+
...Jt
|
|
2783
2794
|
};
|
|
2784
|
-
function
|
|
2795
|
+
function go(e, t = {}) {
|
|
2785
2796
|
const n = {
|
|
2786
|
-
...
|
|
2797
|
+
...ho,
|
|
2787
2798
|
...t
|
|
2788
|
-
}, r = String(e), i = Object.keys(
|
|
2789
|
-
return
|
|
2790
|
-
...
|
|
2799
|
+
}, r = String(e), i = Object.keys(en), o = Object.keys(Jt);
|
|
2800
|
+
return Ki(po(r, Ot(n, i)), {
|
|
2801
|
+
...Ot(n, o),
|
|
2791
2802
|
source: r
|
|
2792
2803
|
});
|
|
2793
2804
|
}
|
|
2794
|
-
function
|
|
2805
|
+
function mo(e, t, n) {
|
|
2795
2806
|
let r = null;
|
|
2796
2807
|
typeof t == "function" ? r = t : t !== null && typeof t == "object" && (n = t);
|
|
2797
|
-
const i =
|
|
2808
|
+
const i = go(e, n);
|
|
2798
2809
|
if (r === null) return i;
|
|
2799
2810
|
for (const o of i) r(o);
|
|
2800
2811
|
}
|
|
2801
|
-
var
|
|
2812
|
+
var tt = class {
|
|
2802
2813
|
tagged = !1;
|
|
2803
2814
|
flow = !1;
|
|
2804
2815
|
singleQuoted = !1;
|
|
2805
2816
|
doubleQuoted = !1;
|
|
2806
2817
|
literal = !1;
|
|
2807
2818
|
folded = !1;
|
|
2808
|
-
},
|
|
2809
|
-
function
|
|
2819
|
+
}, _e = /* @__PURE__ */ Symbol("INVALID");
|
|
2820
|
+
function Ao(e) {
|
|
2810
2821
|
const t = new Set([
|
|
2811
2822
|
e.defaultScalarTag,
|
|
2812
2823
|
e.defaultSequenceTag,
|
|
@@ -2827,7 +2838,7 @@ function mo(e) {
|
|
|
2827
2838
|
}))
|
|
2828
2839
|
];
|
|
2829
2840
|
}
|
|
2830
|
-
function
|
|
2841
|
+
function yo(e, t) {
|
|
2831
2842
|
for (let n = 0, r = e.representTypes.length; n < r; n += 1) {
|
|
2832
2843
|
const { tag: i, implicitTag: o } = e.representTypes[n];
|
|
2833
2844
|
if (i.identify && i.identify(t)) {
|
|
@@ -2848,18 +2859,18 @@ function We(e, t) {
|
|
|
2848
2859
|
return c.anchor === void 0 && (c.anchor = `ref_${e.refCounter++}`), {
|
|
2849
2860
|
kind: "alias",
|
|
2850
2861
|
tag: "",
|
|
2851
|
-
style: new
|
|
2862
|
+
style: new tt(),
|
|
2852
2863
|
anchor: c.anchor
|
|
2853
2864
|
};
|
|
2854
2865
|
}
|
|
2855
|
-
const n =
|
|
2866
|
+
const n = yo(e, t);
|
|
2856
2867
|
if (!n) {
|
|
2857
|
-
if (t === void 0 || e.skipInvalid) return
|
|
2858
|
-
throw new
|
|
2868
|
+
if (t === void 0 || e.skipInvalid) return _e;
|
|
2869
|
+
throw new gt(`unacceptable kind of an object to dump ${Object.prototype.toString.call(t)}`);
|
|
2859
2870
|
}
|
|
2860
|
-
const { tag: r, tagName: i, implicitTag: o } = n, a = o ? i :
|
|
2871
|
+
const { tag: r, tagName: i, implicitTag: o } = n, a = o ? i : Wn(i);
|
|
2861
2872
|
if (r.nodeKind === "scalar") {
|
|
2862
|
-
const c = new
|
|
2873
|
+
const c = new tt();
|
|
2863
2874
|
return c.tagged = !o, {
|
|
2864
2875
|
kind: "scalar",
|
|
2865
2876
|
tag: a,
|
|
@@ -2868,7 +2879,7 @@ function We(e, t) {
|
|
|
2868
2879
|
};
|
|
2869
2880
|
}
|
|
2870
2881
|
if (r.nodeKind === "sequence") {
|
|
2871
|
-
const c = r.represent(t), y = new
|
|
2882
|
+
const c = r.represent(t), y = new tt();
|
|
2872
2883
|
y.tagged = !o;
|
|
2873
2884
|
const g = {
|
|
2874
2885
|
kind: "sequence",
|
|
@@ -2877,13 +2888,13 @@ function We(e, t) {
|
|
|
2877
2888
|
items: []
|
|
2878
2889
|
};
|
|
2879
2890
|
e.noRefs || e.refs.set(t, g);
|
|
2880
|
-
for (let
|
|
2881
|
-
let w = We(e, c[
|
|
2882
|
-
w ===
|
|
2891
|
+
for (let C = 0, E = c.length; C < E; C += 1) {
|
|
2892
|
+
let w = We(e, c[C]);
|
|
2893
|
+
w === _e && c[C] === void 0 && (w = We(e, null)), w !== _e && g.items.push(w);
|
|
2883
2894
|
}
|
|
2884
2895
|
return g;
|
|
2885
2896
|
}
|
|
2886
|
-
const s = r.represent(t), l = new
|
|
2897
|
+
const s = r.represent(t), l = new tt();
|
|
2887
2898
|
l.tagged = !o;
|
|
2888
2899
|
const u = {
|
|
2889
2900
|
kind: "mapping",
|
|
@@ -2894,37 +2905,37 @@ function We(e, t) {
|
|
|
2894
2905
|
e.noRefs || e.refs.set(t, u);
|
|
2895
2906
|
for (const [c, y] of s) {
|
|
2896
2907
|
const g = We(e, c);
|
|
2897
|
-
if (g ===
|
|
2898
|
-
const
|
|
2899
|
-
|
|
2908
|
+
if (g === _e) continue;
|
|
2909
|
+
const C = We(e, y);
|
|
2910
|
+
C !== _e && u.items.push({
|
|
2900
2911
|
key: g,
|
|
2901
|
-
value:
|
|
2912
|
+
value: C
|
|
2902
2913
|
});
|
|
2903
2914
|
}
|
|
2904
2915
|
return u;
|
|
2905
2916
|
}
|
|
2906
|
-
function
|
|
2917
|
+
function Eo(e, t, n = {}) {
|
|
2907
2918
|
const r = We({
|
|
2908
|
-
representTypes:
|
|
2919
|
+
representTypes: Ao(t),
|
|
2909
2920
|
noRefs: n.noRefs ?? !1,
|
|
2910
2921
|
skipInvalid: n.skipInvalid ?? !1,
|
|
2911
2922
|
refs: /* @__PURE__ */ new Map(),
|
|
2912
2923
|
refCounter: 0
|
|
2913
2924
|
}, e);
|
|
2914
2925
|
return [{
|
|
2915
|
-
contents: r ===
|
|
2926
|
+
contents: r === _e ? null : r,
|
|
2916
2927
|
directives: []
|
|
2917
2928
|
}];
|
|
2918
2929
|
}
|
|
2919
|
-
var
|
|
2920
|
-
function
|
|
2930
|
+
var So = /* @__PURE__ */ Symbol("visit:break"), tr = /* @__PURE__ */ Symbol("visit:skip");
|
|
2931
|
+
function at(e, t, n) {
|
|
2921
2932
|
const r = t(e, n);
|
|
2922
|
-
if (r ===
|
|
2923
|
-
if (r ===
|
|
2933
|
+
if (r === So) return !0;
|
|
2934
|
+
if (r === tr) return !1;
|
|
2924
2935
|
const i = n.depth + 1;
|
|
2925
2936
|
switch (e.kind) {
|
|
2926
2937
|
case "sequence":
|
|
2927
|
-
for (const o of e.items) if (
|
|
2938
|
+
for (const o of e.items) if (at(o, t, {
|
|
2928
2939
|
depth: i,
|
|
2929
2940
|
parent: e,
|
|
2930
2941
|
isKey: !1
|
|
@@ -2932,11 +2943,11 @@ function st(e, t, n) {
|
|
|
2932
2943
|
break;
|
|
2933
2944
|
case "mapping":
|
|
2934
2945
|
for (const { key: o, value: a } of e.items)
|
|
2935
|
-
if (
|
|
2946
|
+
if (at(o, t, {
|
|
2936
2947
|
depth: i,
|
|
2937
2948
|
parent: e,
|
|
2938
2949
|
isKey: !0
|
|
2939
|
-
}) ||
|
|
2950
|
+
}) || at(a, t, {
|
|
2940
2951
|
depth: i,
|
|
2941
2952
|
parent: e,
|
|
2942
2953
|
isKey: !1
|
|
@@ -2945,14 +2956,14 @@ function st(e, t, n) {
|
|
|
2945
2956
|
}
|
|
2946
2957
|
return !1;
|
|
2947
2958
|
}
|
|
2948
|
-
function
|
|
2949
|
-
for (const n of e) if (n.contents &&
|
|
2959
|
+
function Co(e, t) {
|
|
2960
|
+
for (const n of e) if (n.contents && at(n.contents, t, {
|
|
2950
2961
|
depth: 0,
|
|
2951
2962
|
parent: null,
|
|
2952
2963
|
isKey: !1
|
|
2953
2964
|
})) return;
|
|
2954
2965
|
}
|
|
2955
|
-
var
|
|
2966
|
+
var tn = 65279, To = 9, Le = 10, nr = 13, vo = 32, Ro = 33, rr = 34, Bt = 35, bo = 37, xo = 38, ir = 39, _o = 42, Dt = 44, nn = 45, Qe = 58, Io = 61, wo = 62, or = 63, No = 64, Ut = 91, qt = 93, $o = 96, Kt = 123, Lo = 124, Gt = 125, ne = {};
|
|
2956
2967
|
ne[0] = "\\0";
|
|
2957
2968
|
ne[7] = "\\a";
|
|
2958
2969
|
ne[8] = "\\b";
|
|
@@ -2968,7 +2979,7 @@ ne[133] = "\\N";
|
|
|
2968
2979
|
ne[160] = "\\_";
|
|
2969
2980
|
ne[8232] = "\\L";
|
|
2970
2981
|
ne[8233] = "\\P";
|
|
2971
|
-
var
|
|
2982
|
+
var rn = {
|
|
2972
2983
|
indent: 2,
|
|
2973
2984
|
seqNoIndent: !1,
|
|
2974
2985
|
seqInlineFirst: !0,
|
|
@@ -2982,12 +2993,12 @@ var Zt = {
|
|
|
2982
2993
|
forceQuotes: !1,
|
|
2983
2994
|
tagBeforeAnchor: !1
|
|
2984
2995
|
};
|
|
2985
|
-
function Lo(e) {
|
|
2986
|
-
return e.style.tagged ? e.tag : Dn(e.tag);
|
|
2987
|
-
}
|
|
2988
2996
|
function ko(e) {
|
|
2997
|
+
return e.style.tagged ? e.tag : Wn(e.tag);
|
|
2998
|
+
}
|
|
2999
|
+
function Oo(e) {
|
|
2989
3000
|
const t = {
|
|
2990
|
-
...
|
|
3001
|
+
...rn,
|
|
2991
3002
|
...e
|
|
2992
3003
|
};
|
|
2993
3004
|
return {
|
|
@@ -2996,11 +3007,11 @@ function ko(e) {
|
|
|
2996
3007
|
implicitResolvers: t.schema.implicitScalarTags
|
|
2997
3008
|
};
|
|
2998
3009
|
}
|
|
2999
|
-
function
|
|
3010
|
+
function Po(e) {
|
|
3000
3011
|
const t = e.toString(16).toUpperCase(), n = e <= 255 ? "x" : "u", r = e <= 255 ? 2 : 4;
|
|
3001
3012
|
return `\\${n}${"0".repeat(r - t.length)}${t}`;
|
|
3002
3013
|
}
|
|
3003
|
-
function
|
|
3014
|
+
function Rn(e, t) {
|
|
3004
3015
|
const n = " ".repeat(t);
|
|
3005
3016
|
let r = 0, i = "";
|
|
3006
3017
|
const o = e.length;
|
|
@@ -3013,11 +3024,11 @@ function yn(e, t) {
|
|
|
3013
3024
|
}
|
|
3014
3025
|
return i;
|
|
3015
3026
|
}
|
|
3016
|
-
function
|
|
3027
|
+
function Yt(e, t) {
|
|
3017
3028
|
return `
|
|
3018
3029
|
${" ".repeat(e.indent * t)}`;
|
|
3019
3030
|
}
|
|
3020
|
-
function
|
|
3031
|
+
function Fo(e, t) {
|
|
3021
3032
|
const n = e.indent * Math.max(1, t);
|
|
3022
3033
|
return {
|
|
3023
3034
|
indent: n,
|
|
@@ -3025,115 +3036,115 @@ function Po(e, t) {
|
|
|
3025
3036
|
lineWidth: e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - n)
|
|
3026
3037
|
};
|
|
3027
3038
|
}
|
|
3028
|
-
function
|
|
3039
|
+
function bn(e, t) {
|
|
3029
3040
|
for (let n = 0, r = e.implicitResolvers.length; n < r; n += 1) {
|
|
3030
3041
|
const i = e.implicitResolvers[n];
|
|
3031
|
-
if (i.resolve(t, !1, i.tagName) !==
|
|
3042
|
+
if (i.resolve(t, !1, i.tagName) !== O) return i.tagName;
|
|
3032
3043
|
}
|
|
3033
3044
|
return e.defaultScalarTagName;
|
|
3034
3045
|
}
|
|
3035
|
-
function
|
|
3036
|
-
return e ===
|
|
3046
|
+
function Ue(e) {
|
|
3047
|
+
return e === vo || e === To;
|
|
3037
3048
|
}
|
|
3038
|
-
function
|
|
3049
|
+
function Ho(e) {
|
|
3039
3050
|
const t = e.charCodeAt(0);
|
|
3040
|
-
if (t !==
|
|
3051
|
+
if (t !== nn && t !== 46 || e.charCodeAt(1) !== t || e.charCodeAt(2) !== t) return !1;
|
|
3041
3052
|
if (e.length === 3) return !0;
|
|
3042
3053
|
const n = e.charCodeAt(3);
|
|
3043
|
-
return
|
|
3054
|
+
return Ue(n) || n === nr || n === Le;
|
|
3044
3055
|
}
|
|
3045
|
-
function
|
|
3046
|
-
return e >= 32 && e <= 126 || e >= 161 && e <= 55295 && e !== 8232 && e !== 8233 || e >= 57344 && e <= 65533 && e !==
|
|
3056
|
+
function ze(e) {
|
|
3057
|
+
return e >= 32 && e <= 126 || e >= 161 && e <= 55295 && e !== 8232 && e !== 8233 || e >= 57344 && e <= 65533 && e !== tn || e >= 65536 && e <= 1114111;
|
|
3047
3058
|
}
|
|
3048
|
-
function
|
|
3049
|
-
return
|
|
3059
|
+
function xn(e) {
|
|
3060
|
+
return ze(e) && e !== tn && e !== nr && e !== Le;
|
|
3050
3061
|
}
|
|
3051
|
-
function
|
|
3052
|
-
const r =
|
|
3053
|
-
return (n ? r : r && e !==
|
|
3062
|
+
function Wt(e, t, n) {
|
|
3063
|
+
const r = xn(e), i = r && !Ue(e);
|
|
3064
|
+
return (n ? r : r && e !== Dt && e !== Ut && e !== qt && e !== Kt && e !== Gt) && e !== Bt && !(t === Qe && !i) || xn(t) && !Ue(t) && e === Bt || t === Qe && i && (n || e !== Dt && e !== Ut && e !== qt && e !== Kt && e !== Gt);
|
|
3054
3065
|
}
|
|
3055
|
-
function
|
|
3056
|
-
return
|
|
3066
|
+
function Mo(e) {
|
|
3067
|
+
return ze(e) && e !== tn && !Ue(e) && e !== nn && e !== or && e !== Qe && e !== Dt && e !== Ut && e !== qt && e !== Kt && e !== Gt && e !== Bt && e !== xo && e !== _o && e !== Ro && e !== Lo && e !== Io && e !== wo && e !== ir && e !== rr && e !== bo && e !== No && e !== $o;
|
|
3057
3068
|
}
|
|
3058
|
-
function
|
|
3059
|
-
const n =
|
|
3060
|
-
if (
|
|
3061
|
-
if (e.length > 1 && (n ===
|
|
3062
|
-
const r =
|
|
3063
|
-
return !
|
|
3069
|
+
function Bo(e, t) {
|
|
3070
|
+
const n = Be(e, 0);
|
|
3071
|
+
if (Mo(n)) return !0;
|
|
3072
|
+
if (e.length > 1 && (n === nn || n === or || n === Qe)) {
|
|
3073
|
+
const r = Be(e, 1);
|
|
3074
|
+
return !Ue(r) && Wt(r, n, t);
|
|
3064
3075
|
}
|
|
3065
3076
|
return !1;
|
|
3066
3077
|
}
|
|
3067
|
-
function
|
|
3068
|
-
return !
|
|
3078
|
+
function Do(e) {
|
|
3079
|
+
return !Ue(e) && e !== Qe;
|
|
3069
3080
|
}
|
|
3070
|
-
function
|
|
3081
|
+
function Be(e, t) {
|
|
3071
3082
|
const n = e.charCodeAt(t);
|
|
3072
3083
|
let r;
|
|
3073
3084
|
return n >= 55296 && n <= 56319 && t + 1 < e.length && (r = e.charCodeAt(t + 1), r >= 56320 && r <= 57343) ? (n - 55296) * 1024 + r - 56320 + 65536 : n;
|
|
3074
3085
|
}
|
|
3075
|
-
function
|
|
3086
|
+
function ar(e) {
|
|
3076
3087
|
return /^\n* /.test(e);
|
|
3077
3088
|
}
|
|
3078
|
-
var
|
|
3079
|
-
function
|
|
3089
|
+
var Ze = 1, Ve = 2, on = 3, an = 4, Te = 5;
|
|
3090
|
+
function Uo(e, t, n, r, i, o) {
|
|
3080
3091
|
const { blockIndent: a, lineWidth: s } = n;
|
|
3081
3092
|
let l, u = 0, c = -1, y = !1, g = !1;
|
|
3082
|
-
const
|
|
3083
|
-
let E = -1, w = !
|
|
3093
|
+
const C = s !== -1;
|
|
3094
|
+
let E = -1, w = !Ho(t) && Bo(t, o) && Do(Be(t, t.length - 1));
|
|
3084
3095
|
if (r || i) for (l = 0; l < t.length; u >= 65536 ? l += 2 : l++) {
|
|
3085
|
-
if (u =
|
|
3086
|
-
w = w &&
|
|
3096
|
+
if (u = Be(t, l), !ze(u)) return Te;
|
|
3097
|
+
w = w && Wt(u, c, o), c = u;
|
|
3087
3098
|
}
|
|
3088
3099
|
else {
|
|
3089
3100
|
for (l = 0; l < t.length; u >= 65536 ? l += 2 : l++) {
|
|
3090
|
-
if (u =
|
|
3091
|
-
y = !0,
|
|
3092
|
-
else if (!
|
|
3093
|
-
w = w &&
|
|
3101
|
+
if (u = Be(t, l), u === Le)
|
|
3102
|
+
y = !0, C && (g = g || l - E - 1 > s && t[E + 1] !== " ", E = l);
|
|
3103
|
+
else if (!ze(u)) return Te;
|
|
3104
|
+
w = w && Wt(u, c, o), c = u;
|
|
3094
3105
|
}
|
|
3095
|
-
g = g ||
|
|
3106
|
+
g = g || C && l - E - 1 > s && t[E + 1] !== " ";
|
|
3096
3107
|
}
|
|
3097
|
-
return !y && !g ? w && !i ?
|
|
3108
|
+
return !y && !g ? w && !i ? Ze : e.quoteStyle === "double" ? Te : Ve : a > 9 && ar(t) ? Te : g ? an : on;
|
|
3098
3109
|
}
|
|
3099
|
-
function
|
|
3110
|
+
function qo(e, t, n) {
|
|
3100
3111
|
const { indent: r, blockIndent: i, lineWidth: o } = n;
|
|
3101
3112
|
switch (t) {
|
|
3102
|
-
case
|
|
3103
|
-
return
|
|
3104
|
-
case
|
|
3105
|
-
return `'${
|
|
3106
|
-
case
|
|
3107
|
-
return "|" +
|
|
3108
|
-
case
|
|
3109
|
-
return ">" +
|
|
3110
|
-
case
|
|
3111
|
-
return `"${
|
|
3112
|
-
}
|
|
3113
|
-
}
|
|
3114
|
-
function
|
|
3113
|
+
case Ze:
|
|
3114
|
+
return In(e, r);
|
|
3115
|
+
case Ve:
|
|
3116
|
+
return `'${In(e, r).replace(/'/g, "''")}'`;
|
|
3117
|
+
case on:
|
|
3118
|
+
return "|" + _n(e, i) + wn(Rn(e, r));
|
|
3119
|
+
case an:
|
|
3120
|
+
return ">" + _n(e, i) + wn(Rn(Go(e, o), r));
|
|
3121
|
+
case Te:
|
|
3122
|
+
return `"${Yo(e)}"`;
|
|
3123
|
+
}
|
|
3124
|
+
}
|
|
3125
|
+
function Ko(e, t, n, r, i) {
|
|
3115
3126
|
const o = r || !i;
|
|
3116
|
-
if (t.style.singleQuoted) return
|
|
3117
|
-
if (t.style.doubleQuoted) return
|
|
3127
|
+
if (t.style.singleQuoted) return Ve;
|
|
3128
|
+
if (t.style.doubleQuoted) return Te;
|
|
3118
3129
|
if (!o) {
|
|
3119
|
-
if (t.style.literal) return
|
|
3120
|
-
if (t.style.folded) return
|
|
3130
|
+
if (t.style.literal) return on;
|
|
3131
|
+
if (t.style.folded) return an;
|
|
3121
3132
|
}
|
|
3122
3133
|
const a = t.value;
|
|
3123
3134
|
if (a.length === 0)
|
|
3124
|
-
return t.style.tagged ||
|
|
3125
|
-
const s =
|
|
3126
|
-
return s ===
|
|
3135
|
+
return t.style.tagged || bn(e, a) === t.tag ? Ze : e.quoteStyle === "double" ? Te : Ve;
|
|
3136
|
+
const s = Uo(e, a, n, o, e.forceQuotes && !r, i);
|
|
3137
|
+
return s === Ze && !t.style.tagged && bn(e, a) !== t.tag ? e.quoteStyle === "double" ? Te : Ve : s;
|
|
3127
3138
|
}
|
|
3128
|
-
function
|
|
3129
|
-
const n =
|
|
3139
|
+
function _n(e, t) {
|
|
3140
|
+
const n = ar(e) ? String(t) : "", r = e[e.length - 1] === `
|
|
3130
3141
|
`;
|
|
3131
3142
|
return `${n}${r && (e[e.length - 2] === `
|
|
3132
3143
|
` || e === `
|
|
3133
3144
|
`) ? "+" : r ? "" : "-"}
|
|
3134
3145
|
`;
|
|
3135
3146
|
}
|
|
3136
|
-
function
|
|
3147
|
+
function In(e, t) {
|
|
3137
3148
|
let n = e.indexOf(`
|
|
3138
3149
|
`);
|
|
3139
3150
|
if (n === -1) return e;
|
|
@@ -3149,25 +3160,25 @@ function Tn(e, t) {
|
|
|
3149
3160
|
}
|
|
3150
3161
|
return i;
|
|
3151
3162
|
}
|
|
3152
|
-
function
|
|
3163
|
+
function wn(e) {
|
|
3153
3164
|
return e[e.length - 1] === `
|
|
3154
3165
|
` ? e.slice(0, -1) : e;
|
|
3155
3166
|
}
|
|
3156
|
-
function
|
|
3167
|
+
function Go(e, t) {
|
|
3157
3168
|
const n = /(\n+)([^\n]*)/g;
|
|
3158
3169
|
let r = e.indexOf(`
|
|
3159
3170
|
`);
|
|
3160
3171
|
r === -1 && (r = e.length), n.lastIndex = r;
|
|
3161
|
-
let i =
|
|
3172
|
+
let i = Nn(e.slice(0, r), t), o = e[0] === `
|
|
3162
3173
|
` || e[0] === " ", a, s;
|
|
3163
3174
|
for (; s = n.exec(e); ) {
|
|
3164
3175
|
const l = s[1], u = s[2];
|
|
3165
3176
|
a = u[0] === " ", i += l + (!o && !a && u !== "" ? `
|
|
3166
|
-
` : "") +
|
|
3177
|
+
` : "") + Nn(u, t), o = a;
|
|
3167
3178
|
}
|
|
3168
3179
|
return i;
|
|
3169
3180
|
}
|
|
3170
|
-
function
|
|
3181
|
+
function Nn(e, t) {
|
|
3171
3182
|
if (e === "" || e[0] === " ") return e;
|
|
3172
3183
|
const n = / [^ ]/g;
|
|
3173
3184
|
let r, i = 0, o, a = 0, s = 0, l = "";
|
|
@@ -3178,129 +3189,129 @@ ${e.slice(i, o)}`, i = o + 1), a = s;
|
|
|
3178
3189
|
`, e.length - i > t && a > i ? l += `${e.slice(i, a)}
|
|
3179
3190
|
${e.slice(a + 1)}` : l += e.slice(i), l.slice(1);
|
|
3180
3191
|
}
|
|
3181
|
-
function
|
|
3192
|
+
function Yo(e) {
|
|
3182
3193
|
let t = "", n = 0;
|
|
3183
3194
|
for (let r = 0; r < e.length; n >= 65536 ? r += 2 : r++) {
|
|
3184
|
-
n =
|
|
3195
|
+
n = Be(e, r);
|
|
3185
3196
|
const i = ne[n];
|
|
3186
3197
|
if (i) {
|
|
3187
3198
|
t += i;
|
|
3188
3199
|
continue;
|
|
3189
3200
|
}
|
|
3190
|
-
if (
|
|
3201
|
+
if (ze(n)) {
|
|
3191
3202
|
t += e[r], n >= 65536 && (t += e[r + 1]);
|
|
3192
3203
|
continue;
|
|
3193
3204
|
}
|
|
3194
|
-
t +=
|
|
3205
|
+
t += Po(n);
|
|
3195
3206
|
}
|
|
3196
3207
|
return t;
|
|
3197
3208
|
}
|
|
3198
|
-
function
|
|
3209
|
+
function Wo(e, t, n) {
|
|
3199
3210
|
let r = "";
|
|
3200
3211
|
for (let o = 0, a = n.items.length; o < a; o += 1) {
|
|
3201
|
-
const s =
|
|
3212
|
+
const s = ye(e, t, n.items[o], {});
|
|
3202
3213
|
r !== "" && (r += `,${e.flowSkipCommaSpace ? "" : " "}`), r += s;
|
|
3203
3214
|
}
|
|
3204
3215
|
const i = e.flowBracketPadding && r !== "" ? " " : "";
|
|
3205
3216
|
return `[${i}${r}${i}]`;
|
|
3206
3217
|
}
|
|
3207
|
-
function
|
|
3218
|
+
function $n(e, t, n, r) {
|
|
3208
3219
|
let i = "";
|
|
3209
3220
|
for (let o = 0, a = n.items.length; o < a; o += 1) {
|
|
3210
|
-
const s =
|
|
3221
|
+
const s = ye(e, t + 1, n.items[o], {
|
|
3211
3222
|
block: !0,
|
|
3212
3223
|
compact: e.seqInlineFirst,
|
|
3213
3224
|
isblockseq: !0
|
|
3214
3225
|
});
|
|
3215
|
-
(!r || i !== "") && (i +=
|
|
3226
|
+
(!r || i !== "") && (i += Yt(e, t)), s === "" || Le === s.charCodeAt(0) ? i += "-" : i += "- ", i += s;
|
|
3216
3227
|
}
|
|
3217
3228
|
return i;
|
|
3218
3229
|
}
|
|
3219
|
-
function
|
|
3230
|
+
function jo(e, t, n) {
|
|
3220
3231
|
let r = "";
|
|
3221
|
-
const i =
|
|
3232
|
+
const i = sr(e, n.items);
|
|
3222
3233
|
for (const { key: a, value: s } of i) {
|
|
3223
3234
|
let l = "";
|
|
3224
3235
|
r !== "" && (l += `,${e.flowSkipCommaSpace ? "" : " "}`);
|
|
3225
|
-
const u =
|
|
3236
|
+
const u = ye(e, t, a, { iskey: !0 }), c = u.length > 1024;
|
|
3226
3237
|
c ? l += "? " : e.quoteFlowKeys && (l += '"');
|
|
3227
|
-
const y =
|
|
3238
|
+
const y = ye(e, t, s, {}), g = e.flowSkipColonSpace || y === "" ? "" : " ";
|
|
3228
3239
|
l += `${u}${e.quoteFlowKeys && !c ? '"' : ""}:${g}${y}`, r += l;
|
|
3229
3240
|
}
|
|
3230
3241
|
const o = e.flowBracketPadding && r !== "" ? " " : "";
|
|
3231
3242
|
return `{${o}${r}${o}}`;
|
|
3232
3243
|
}
|
|
3233
|
-
function
|
|
3244
|
+
function nt(e) {
|
|
3234
3245
|
return e.kind === "scalar" ? e.value : e;
|
|
3235
3246
|
}
|
|
3236
|
-
function
|
|
3247
|
+
function sr(e, t) {
|
|
3237
3248
|
if (!e.sortKeys) return t;
|
|
3238
3249
|
const n = t.slice();
|
|
3239
3250
|
if (e.sortKeys === !0) n.sort((r, i) => {
|
|
3240
|
-
const o =
|
|
3251
|
+
const o = nt(r.key), a = nt(i.key);
|
|
3241
3252
|
return o < a ? -1 : o > a ? 1 : 0;
|
|
3242
3253
|
});
|
|
3243
3254
|
else {
|
|
3244
3255
|
const r = e.sortKeys;
|
|
3245
|
-
n.sort((i, o) => r(
|
|
3256
|
+
n.sort((i, o) => r(nt(i.key), nt(o.key)));
|
|
3246
3257
|
}
|
|
3247
3258
|
return n;
|
|
3248
3259
|
}
|
|
3249
|
-
function
|
|
3260
|
+
function Vo(e, t, n, r) {
|
|
3250
3261
|
let i = "";
|
|
3251
|
-
const o =
|
|
3262
|
+
const o = sr(e, n.items);
|
|
3252
3263
|
for (let a = 0, s = o.length; a < s; a += 1) {
|
|
3253
3264
|
let l = "";
|
|
3254
|
-
(!r || i !== "") && (l +=
|
|
3255
|
-
const { key: u, value: c } = o[a], y = (u.kind === "mapping" || u.kind === "sequence") && !u.style.flow && u.items.length !== 0 || u.kind === "scalar" && (u.style.literal || u.style.folded), g = y ?
|
|
3265
|
+
(!r || i !== "") && (l += Yt(e, t));
|
|
3266
|
+
const { key: u, value: c } = o[a], y = (u.kind === "mapping" || u.kind === "sequence") && !u.style.flow && u.items.length !== 0 || u.kind === "scalar" && (u.style.literal || u.style.folded), g = y ? ye(e, t + 1, u, {
|
|
3256
3267
|
block: !0,
|
|
3257
3268
|
compact: !0,
|
|
3258
|
-
isblockseq: !
|
|
3259
|
-
}) :
|
|
3269
|
+
isblockseq: !jt(e, u, t + 1)
|
|
3270
|
+
}) : ye(e, t + 1, u, {
|
|
3260
3271
|
block: !0,
|
|
3261
3272
|
compact: !0,
|
|
3262
3273
|
iskey: !0
|
|
3263
|
-
}),
|
|
3264
|
-
`) !== -1, E = y ||
|
|
3265
|
-
E && (g &&
|
|
3266
|
-
const w =
|
|
3274
|
+
}), C = u.kind === "scalar" && u.value.indexOf(`
|
|
3275
|
+
`) !== -1, E = y || C || g.length > 1024;
|
|
3276
|
+
E && (g && Le === g.charCodeAt(0) ? l += "?" : l += "? "), l += g, E && (l += Yt(e, t));
|
|
3277
|
+
const w = ye(e, t + 1, c, {
|
|
3267
3278
|
block: !0,
|
|
3268
3279
|
compact: E,
|
|
3269
|
-
isblockseq: E && !
|
|
3270
|
-
}),
|
|
3271
|
-
w === "" ||
|
|
3280
|
+
isblockseq: E && !jt(e, c, t + 1)
|
|
3281
|
+
}), F = u.kind === "scalar" && u.value === "" && g !== "" && g.charCodeAt(g.length - 1) !== ir && g.charCodeAt(g.length - 1) !== rr, N = !E && (u.kind === "alias" || F) ? " " : "";
|
|
3282
|
+
w === "" || Le === w.charCodeAt(0) ? l += `${N}:` : l += `${N}: `, l += w, i += l;
|
|
3272
3283
|
}
|
|
3273
3284
|
return i;
|
|
3274
3285
|
}
|
|
3275
|
-
function
|
|
3286
|
+
function jt(e, t, n) {
|
|
3276
3287
|
return t.style.tagged || t.anchor !== void 0 || e.indent < 2 && n > 0;
|
|
3277
3288
|
}
|
|
3278
|
-
function
|
|
3289
|
+
function ye(e, t, n, r) {
|
|
3279
3290
|
if (n.kind === "alias") return `*${n.anchor}`;
|
|
3280
3291
|
const { block: i = !1, iskey: o = !1, isblockseq: a = !1 } = r;
|
|
3281
3292
|
let s = r.compact ?? !1;
|
|
3282
3293
|
const l = n.anchor !== void 0;
|
|
3283
|
-
|
|
3294
|
+
jt(e, n, t) && (s = !1);
|
|
3284
3295
|
let u, c = n.style.tagged;
|
|
3285
3296
|
const y = i && (n.kind === "mapping" || n.kind === "sequence") && !n.style.flow && n.items.length !== 0;
|
|
3286
|
-
if (n.kind === "mapping") y ? u =
|
|
3287
|
-
else if (n.kind === "sequence") y ? e.seqNoIndent && !a && t > 0 ? u =
|
|
3297
|
+
if (n.kind === "mapping") y ? u = Vo(e, t, n, s) : u = jo(e, t, n);
|
|
3298
|
+
else if (n.kind === "sequence") y ? e.seqNoIndent && !a && t > 0 ? u = $n(e, t - 1, n, s) : u = $n(e, t, n, s) : u = Wo(e, t, n);
|
|
3288
3299
|
else {
|
|
3289
|
-
const g =
|
|
3290
|
-
u =
|
|
3300
|
+
const g = Fo(e, t), C = Ko(e, n, g, o, i);
|
|
3301
|
+
u = qo(n.value, C, g), c = n.style.tagged || C !== Ze && n.tag !== e.defaultScalarTagName;
|
|
3291
3302
|
}
|
|
3292
3303
|
if (y && s && t > 0 && e.indent > 2 && (u = `${" ".repeat(e.indent - 2)}${u}`), c || l) {
|
|
3293
|
-
const g = [],
|
|
3294
|
-
e.tagBeforeAnchor ? (
|
|
3295
|
-
const w = u === "" || u.charCodeAt(0) ===
|
|
3304
|
+
const g = [], C = c ? ko(n) : null, E = l ? `&${n.anchor}` : null;
|
|
3305
|
+
e.tagBeforeAnchor ? (C !== null && g.push(C), E !== null && g.push(E)) : (E !== null && g.push(E), C !== null && g.push(C));
|
|
3306
|
+
const w = u === "" || u.charCodeAt(0) === Le ? "" : " ";
|
|
3296
3307
|
u = `${g.join(" ")}${w}${u}`;
|
|
3297
3308
|
}
|
|
3298
3309
|
return u;
|
|
3299
3310
|
}
|
|
3300
|
-
function
|
|
3311
|
+
function Xo(e) {
|
|
3301
3312
|
return (e.kind === "sequence" || e.kind === "mapping") && !e.style.flow && e.items.length !== 0 && !e.style.tagged && e.anchor === void 0;
|
|
3302
3313
|
}
|
|
3303
|
-
function
|
|
3314
|
+
function Qo(e) {
|
|
3304
3315
|
let t = e;
|
|
3305
3316
|
for (; (t.kind === "sequence" || t.kind === "mapping") && !t.style.flow && t.items.length !== 0; ) t = t.kind === "sequence" ? t.items[t.items.length - 1] : t.items[t.items.length - 1].value;
|
|
3306
3317
|
if (t.kind !== "scalar" || !(t.style.literal || t.style.folded)) return !1;
|
|
@@ -3310,7 +3321,7 @@ function Xo(e) {
|
|
|
3310
3321
|
`) || n === `
|
|
3311
3322
|
`;
|
|
3312
3323
|
}
|
|
3313
|
-
function
|
|
3324
|
+
function zo(e) {
|
|
3314
3325
|
let t = "";
|
|
3315
3326
|
for (const n of e.directives) {
|
|
3316
3327
|
if (n.kind === "yaml") {
|
|
@@ -3324,110 +3335,110 @@ function Qo(e) {
|
|
|
3324
3335
|
}
|
|
3325
3336
|
return t;
|
|
3326
3337
|
}
|
|
3327
|
-
function
|
|
3328
|
-
const n =
|
|
3338
|
+
function Zo(e, t) {
|
|
3339
|
+
const n = Oo(t);
|
|
3329
3340
|
let r = "", i = !1;
|
|
3330
3341
|
for (let o = 0; o < e.length; o += 1) {
|
|
3331
|
-
const a = e[o], s =
|
|
3342
|
+
const a = e[o], s = zo(a), l = s !== "", u = a.explicitStart || l || o > 0 && !i;
|
|
3332
3343
|
if (r += s, a.contents === null)
|
|
3333
3344
|
u && (r += `---
|
|
3334
3345
|
`);
|
|
3335
3346
|
else if (u) {
|
|
3336
|
-
const c =
|
|
3347
|
+
const c = ye(n, 0, a.contents, {
|
|
3337
3348
|
block: !0,
|
|
3338
3349
|
compact: !0
|
|
3339
|
-
}), y = c === "" ? "" : l ||
|
|
3350
|
+
}), y = c === "" ? "" : l || Xo(a.contents) ? `
|
|
3340
3351
|
` : " ";
|
|
3341
3352
|
r += `---${y}${c}
|
|
3342
3353
|
`;
|
|
3343
|
-
} else r +=
|
|
3354
|
+
} else r += ye(n, 0, a.contents, {
|
|
3344
3355
|
block: !0,
|
|
3345
3356
|
compact: !0
|
|
3346
3357
|
}) + `
|
|
3347
3358
|
`;
|
|
3348
|
-
i = a.explicitEnd || a.contents !== null &&
|
|
3359
|
+
i = a.explicitEnd || a.contents !== null && Qo(a.contents), i && (r += `...
|
|
3349
3360
|
`);
|
|
3350
3361
|
}
|
|
3351
3362
|
return r;
|
|
3352
3363
|
}
|
|
3353
|
-
var
|
|
3354
|
-
...
|
|
3364
|
+
var Jo = xi.withTags({
|
|
3365
|
+
...Lt,
|
|
3355
3366
|
resolve: (e, t, n) => {
|
|
3356
|
-
const r =
|
|
3357
|
-
return r ===
|
|
3367
|
+
const r = Lt.resolve(e, t, n);
|
|
3368
|
+
return r === O ? On.resolve(e, t, n) : r;
|
|
3358
3369
|
}
|
|
3359
3370
|
}, {
|
|
3360
|
-
...
|
|
3371
|
+
...kt,
|
|
3361
3372
|
resolve: (e, t, n) => {
|
|
3362
|
-
const r =
|
|
3363
|
-
return r ===
|
|
3373
|
+
const r = kt.resolve(e, t, n);
|
|
3374
|
+
return r === O ? Pn.resolve(e, t, n) : r;
|
|
3364
3375
|
}
|
|
3365
|
-
}),
|
|
3366
|
-
...
|
|
3367
|
-
schema:
|
|
3376
|
+
}), ea = {
|
|
3377
|
+
...rn,
|
|
3378
|
+
schema: Jo,
|
|
3368
3379
|
skipInvalid: !1,
|
|
3369
3380
|
noRefs: !1,
|
|
3370
3381
|
flowLevel: -1,
|
|
3371
3382
|
transform: () => {
|
|
3372
3383
|
}
|
|
3373
3384
|
};
|
|
3374
|
-
function
|
|
3385
|
+
function ta(e, t = {}) {
|
|
3375
3386
|
const n = {
|
|
3376
|
-
...
|
|
3387
|
+
...ea,
|
|
3377
3388
|
...t
|
|
3378
|
-
}, r =
|
|
3389
|
+
}, r = Eo(e, n.schema, {
|
|
3379
3390
|
noRefs: n.noRefs,
|
|
3380
3391
|
skipInvalid: n.skipInvalid
|
|
3381
3392
|
});
|
|
3382
|
-
return n.flowLevel >= 0 &&
|
|
3393
|
+
return n.flowLevel >= 0 && Co(r, (i, o) => {
|
|
3383
3394
|
if (!(o.depth < n.flowLevel))
|
|
3384
|
-
return i.style.flow = !0,
|
|
3385
|
-
}), n.transform(r),
|
|
3386
|
-
...
|
|
3395
|
+
return i.style.flow = !0, tr;
|
|
3396
|
+
}), n.transform(r), Zo(r, {
|
|
3397
|
+
...Ot(n, Object.keys(rn)),
|
|
3387
3398
|
schema: n.schema
|
|
3388
3399
|
});
|
|
3389
3400
|
}
|
|
3390
|
-
const
|
|
3391
|
-
const n =
|
|
3401
|
+
const na = qn.withTags(Fn, Hn, Mn, Bn, Dn), lr = (e, t) => {
|
|
3402
|
+
const n = mo(e, { schema: na, ...t });
|
|
3392
3403
|
if (n.length === 0)
|
|
3393
3404
|
return e.trim() === "" ? void 0 : null;
|
|
3394
3405
|
if (n.length > 1)
|
|
3395
|
-
throw new
|
|
3406
|
+
throw new gt("expected a single document in the stream, but found more");
|
|
3396
3407
|
return n[0];
|
|
3397
|
-
},
|
|
3398
|
-
function
|
|
3408
|
+
}, Sa = (e, t) => ta(e, t);
|
|
3409
|
+
function ra(e, t) {
|
|
3399
3410
|
return e.hasOwnProperty(t) ? e[t] : void 0;
|
|
3400
3411
|
}
|
|
3401
|
-
const
|
|
3402
|
-
class
|
|
3412
|
+
const ia = /\((\d+):(\d+)\)$/;
|
|
3413
|
+
class At extends Error {
|
|
3403
3414
|
originalError;
|
|
3404
3415
|
source;
|
|
3405
3416
|
col;
|
|
3406
3417
|
line;
|
|
3407
3418
|
constructor(t, n) {
|
|
3408
3419
|
super(t.message.split(`
|
|
3409
|
-
`)[0]), this.originalError = t, this.source = n, Object.setPrototypeOf(this,
|
|
3410
|
-
const [, r, i] = this.message.match(
|
|
3420
|
+
`)[0]), this.originalError = t, this.source = n, Object.setPrototypeOf(this, At.prototype);
|
|
3421
|
+
const [, r, i] = this.message.match(ia) || [];
|
|
3411
3422
|
this.line = parseInt(r, 10), this.col = parseInt(i, 10);
|
|
3412
3423
|
}
|
|
3413
3424
|
}
|
|
3414
|
-
function
|
|
3425
|
+
function oa(e) {
|
|
3415
3426
|
return e.endsWith(".yaml") || e.endsWith(".yml") || e.endsWith(".json");
|
|
3416
3427
|
}
|
|
3417
|
-
const
|
|
3418
|
-
function
|
|
3428
|
+
const aa = [".graphql", ".gql"];
|
|
3429
|
+
function cr(e) {
|
|
3419
3430
|
const t = e.toLowerCase();
|
|
3420
|
-
return
|
|
3431
|
+
return aa.some((n) => t.endsWith(n));
|
|
3421
3432
|
}
|
|
3422
|
-
function
|
|
3433
|
+
function $t(e, t) {
|
|
3423
3434
|
return e + "::" + t;
|
|
3424
3435
|
}
|
|
3425
|
-
function
|
|
3436
|
+
function sa() {
|
|
3426
3437
|
return new Promise((e) => {
|
|
3427
3438
|
setTimeout(e);
|
|
3428
3439
|
});
|
|
3429
3440
|
}
|
|
3430
|
-
class
|
|
3441
|
+
class Vt {
|
|
3431
3442
|
absoluteRef;
|
|
3432
3443
|
body;
|
|
3433
3444
|
mimeType;
|
|
@@ -3445,26 +3456,26 @@ class Kt {
|
|
|
3445
3456
|
return this.#t === void 0 && (this.#t = this.body.split(/\r\n|[\n\r]/g)), this.#t;
|
|
3446
3457
|
}
|
|
3447
3458
|
}
|
|
3448
|
-
class
|
|
3459
|
+
class sn extends Error {
|
|
3449
3460
|
originalError;
|
|
3450
3461
|
constructor(t) {
|
|
3451
|
-
super(t.message), this.originalError = t, Object.setPrototypeOf(this,
|
|
3462
|
+
super(t.message), this.originalError = t, Object.setPrototypeOf(this, sn.prototype);
|
|
3452
3463
|
}
|
|
3453
3464
|
}
|
|
3454
|
-
function
|
|
3455
|
-
const n = new
|
|
3456
|
-
if (
|
|
3465
|
+
function Ca(e, t) {
|
|
3466
|
+
const n = new Vt(t, e);
|
|
3467
|
+
if (cr(t))
|
|
3457
3468
|
return { source: n, parsed: e };
|
|
3458
3469
|
try {
|
|
3459
3470
|
return {
|
|
3460
3471
|
source: n,
|
|
3461
|
-
parsed:
|
|
3472
|
+
parsed: lr(e, { filename: t })
|
|
3462
3473
|
};
|
|
3463
3474
|
} catch (r) {
|
|
3464
|
-
throw new
|
|
3475
|
+
throw new At(r, n);
|
|
3465
3476
|
}
|
|
3466
3477
|
}
|
|
3467
|
-
class
|
|
3478
|
+
class Ta {
|
|
3468
3479
|
config;
|
|
3469
3480
|
cache = /* @__PURE__ */ new Map();
|
|
3470
3481
|
constructor(t = { http: { headers: [] } }) {
|
|
@@ -3474,36 +3485,36 @@ class Ca {
|
|
|
3474
3485
|
return new Set(Array.from(this.cache.keys()));
|
|
3475
3486
|
}
|
|
3476
3487
|
resolveExternalRef(t, n) {
|
|
3477
|
-
return
|
|
3488
|
+
return Pe(n) ? n : t && Pe(t) ? new URL(n, t).href : Xe.resolve(t ? Xe.dirname(t) : process.cwd(), n);
|
|
3478
3489
|
}
|
|
3479
3490
|
async loadExternalRef(t) {
|
|
3480
3491
|
try {
|
|
3481
|
-
if (
|
|
3482
|
-
const { body: n, mimeType: r } = await
|
|
3483
|
-
return new
|
|
3492
|
+
if (Pe(t)) {
|
|
3493
|
+
const { body: n, mimeType: r } = await Cr(t, this.config.http);
|
|
3494
|
+
return new Vt(t, n, r);
|
|
3484
3495
|
} else {
|
|
3485
3496
|
if ((void 0)(t).isDirectory())
|
|
3486
3497
|
throw new Error(`Expected a file but received a folder at ${t}.`);
|
|
3487
3498
|
const n = await (void 0).readFile(t, "utf-8");
|
|
3488
|
-
return new
|
|
3499
|
+
return new Vt(t, n.replace(/\r\n/g, `
|
|
3489
3500
|
`));
|
|
3490
3501
|
}
|
|
3491
3502
|
} catch (n) {
|
|
3492
|
-
throw n.message = n.message.replace(", lstat", ""), new
|
|
3503
|
+
throw n.message = n.message.replace(", lstat", ""), new sn(n);
|
|
3493
3504
|
}
|
|
3494
3505
|
}
|
|
3495
3506
|
parseDocument(t, n = !1) {
|
|
3496
|
-
if (
|
|
3507
|
+
if (cr(t.absoluteRef))
|
|
3497
3508
|
return { source: t, parsed: t.body };
|
|
3498
|
-
if (!
|
|
3509
|
+
if (!oa(t.absoluteRef) && !t.mimeType?.match(/(json|yaml|openapi)/) && !n)
|
|
3499
3510
|
return { source: t, parsed: t.body };
|
|
3500
3511
|
try {
|
|
3501
3512
|
return {
|
|
3502
3513
|
source: t,
|
|
3503
|
-
parsed:
|
|
3514
|
+
parsed: lr(t.body, { filename: t.absoluteRef })
|
|
3504
3515
|
};
|
|
3505
3516
|
} catch (r) {
|
|
3506
|
-
throw new
|
|
3517
|
+
throw new At(r, t);
|
|
3507
3518
|
}
|
|
3508
3519
|
}
|
|
3509
3520
|
async resolveDocument(t, n, r = !1) {
|
|
@@ -3514,13 +3525,13 @@ class Ca {
|
|
|
3514
3525
|
return this.cache.set(i, a), a;
|
|
3515
3526
|
}
|
|
3516
3527
|
}
|
|
3517
|
-
function
|
|
3528
|
+
function Ln(e, t) {
|
|
3518
3529
|
return {
|
|
3519
3530
|
prev: e,
|
|
3520
3531
|
node: t
|
|
3521
3532
|
};
|
|
3522
3533
|
}
|
|
3523
|
-
function
|
|
3534
|
+
function la(e, t) {
|
|
3524
3535
|
for (; e; ) {
|
|
3525
3536
|
if (e.node === t)
|
|
3526
3537
|
return !0;
|
|
@@ -3528,8 +3539,8 @@ function sa(e, t) {
|
|
|
3528
3539
|
}
|
|
3529
3540
|
return !1;
|
|
3530
3541
|
}
|
|
3531
|
-
const Ye = { name: "unknown", properties: {} },
|
|
3532
|
-
async function
|
|
3542
|
+
const Ye = { name: "unknown", properties: {} }, ca = { name: "scalar", properties: {} };
|
|
3543
|
+
async function va(e) {
|
|
3533
3544
|
const { rootDocument: t, externalRefResolver: n, rootType: r } = e, i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Set(), a = [];
|
|
3534
3545
|
l(t.parsed, t, "#/", r);
|
|
3535
3546
|
let s;
|
|
@@ -3538,36 +3549,36 @@ async function Ta(e) {
|
|
|
3538
3549
|
while (a.length !== s.length);
|
|
3539
3550
|
return i;
|
|
3540
3551
|
function l(u, c, y, g) {
|
|
3541
|
-
const
|
|
3542
|
-
w(u, g,
|
|
3552
|
+
const C = c.source.absoluteRef, E = /* @__PURE__ */ new Map();
|
|
3553
|
+
w(u, g, C + y);
|
|
3543
3554
|
function w(N, A, R) {
|
|
3544
|
-
if (!
|
|
3555
|
+
if (!Ie(N) && !Array.isArray(N))
|
|
3545
3556
|
return;
|
|
3546
3557
|
const p = `${A.name}::${R}`;
|
|
3547
3558
|
if (o.has(p))
|
|
3548
3559
|
return;
|
|
3549
3560
|
if (o.add(p), Array.isArray(N)) {
|
|
3550
3561
|
const b = A.items;
|
|
3551
|
-
if (b === void 0 && A !== Ye && A !==
|
|
3562
|
+
if (b === void 0 && A !== Ye && A !== rt)
|
|
3552
3563
|
return;
|
|
3553
3564
|
const S = typeof b == "function";
|
|
3554
3565
|
for (let m = 0; m < N.length; m++) {
|
|
3555
|
-
let Q = S ? b(N[m],
|
|
3556
|
-
if (Q === void 0 && A !== Ye && A !==
|
|
3566
|
+
let Q = S ? b(N[m], Ce(R, m)) : b;
|
|
3567
|
+
if (Q === void 0 && A !== Ye && A !== rt)
|
|
3557
3568
|
continue;
|
|
3558
3569
|
const W = Q?.directResolveAs ? { $ref: N[m] } : N[m];
|
|
3559
|
-
Q = Q?.directResolveAs || Q, w(W,
|
|
3570
|
+
Q = Q?.directResolveAs || Q, w(W, it(Q) ? Q : Ye, Ce(R, m));
|
|
3560
3571
|
}
|
|
3561
3572
|
return;
|
|
3562
3573
|
}
|
|
3563
3574
|
const [x, _] = Object.entries(N).find(([b]) => b === "$anchor") || [];
|
|
3564
3575
|
_ && E.set(`#${_}`, N);
|
|
3565
3576
|
for (const b of Object.keys(N)) {
|
|
3566
|
-
let S = N[b], m =
|
|
3567
|
-
m === void 0 && (m = A.additionalProperties), typeof m == "function" && (m = m(S, b)), m === void 0 && (m = Ye), A.extensionsPrefix && b.startsWith(A.extensionsPrefix) && m === Ye && (m =
|
|
3577
|
+
let S = N[b], m = ra(A.properties, b);
|
|
3578
|
+
m === void 0 && (m = A.additionalProperties), typeof m == "function" && (m = m(S, b)), m === void 0 && (m = Ye), A.extensionsPrefix && b.startsWith(A.extensionsPrefix) && m === Ye && (m = rt), !it(m) && m?.directResolveAs && (m = m.directResolveAs, S = { $ref: S }), m && m.name === void 0 && m.resolvable !== !1 && (m = ca), !(!it(m) || !(Ie(S) || Array.isArray(S))) && w(S, m, Ce(R, Oe(b)));
|
|
3568
3579
|
}
|
|
3569
|
-
if (
|
|
3570
|
-
const b =
|
|
3580
|
+
if (Rt(N)) {
|
|
3581
|
+
const b = F(c, N, {
|
|
3571
3582
|
prev: null,
|
|
3572
3583
|
node: N
|
|
3573
3584
|
}).then((S) => {
|
|
@@ -3575,8 +3586,8 @@ async function Ta(e) {
|
|
|
3575
3586
|
});
|
|
3576
3587
|
a.push(b);
|
|
3577
3588
|
}
|
|
3578
|
-
if (
|
|
3579
|
-
const b =
|
|
3589
|
+
if (vr(N)) {
|
|
3590
|
+
const b = F(c, { $ref: N.externalValue }, {
|
|
3580
3591
|
prev: null,
|
|
3581
3592
|
node: N
|
|
3582
3593
|
}).then((S) => {
|
|
@@ -3585,31 +3596,31 @@ async function Ta(e) {
|
|
|
3585
3596
|
a.push(b);
|
|
3586
3597
|
}
|
|
3587
3598
|
}
|
|
3588
|
-
async function
|
|
3589
|
-
if (
|
|
3599
|
+
async function F(N, A, R) {
|
|
3600
|
+
if (la(R.prev, A))
|
|
3590
3601
|
throw new Error("Self-referencing circular pointer");
|
|
3591
|
-
if (
|
|
3592
|
-
await
|
|
3593
|
-
const
|
|
3602
|
+
if (_r(A.$ref)) {
|
|
3603
|
+
await sa();
|
|
3604
|
+
const P = {
|
|
3594
3605
|
resolved: !0,
|
|
3595
3606
|
isRemote: !1,
|
|
3596
3607
|
node: E.get(A.$ref),
|
|
3597
3608
|
document: N,
|
|
3598
3609
|
nodePointer: A.$ref
|
|
3599
|
-
}, G =
|
|
3600
|
-
return i.set(G,
|
|
3610
|
+
}, G = $t(N.source.absoluteRef, A.$ref);
|
|
3611
|
+
return i.set(G, P), P;
|
|
3601
3612
|
}
|
|
3602
|
-
const { uri: p, pointer: x } =
|
|
3613
|
+
const { uri: p, pointer: x } = br(A.$ref), _ = p !== null && n.resolveExternalRef(N.source.absoluteRef, p) !== N.source.absoluteRef;
|
|
3603
3614
|
let b;
|
|
3604
3615
|
try {
|
|
3605
3616
|
b = _ ? await n.resolveDocument(N.source.absoluteRef, p) : N;
|
|
3606
|
-
} catch (
|
|
3617
|
+
} catch (P) {
|
|
3607
3618
|
const G = {
|
|
3608
3619
|
resolved: !1,
|
|
3609
3620
|
isRemote: _,
|
|
3610
3621
|
document: void 0,
|
|
3611
|
-
error:
|
|
3612
|
-
}, J =
|
|
3622
|
+
error: P
|
|
3623
|
+
}, J = $t(N.source.absoluteRef, A.$ref);
|
|
3613
3624
|
return i.set(J, G), G;
|
|
3614
3625
|
}
|
|
3615
3626
|
let S = {
|
|
@@ -3620,16 +3631,16 @@ async function Ta(e) {
|
|
|
3620
3631
|
nodePointer: "#/"
|
|
3621
3632
|
}, m = b.parsed;
|
|
3622
3633
|
const Q = x;
|
|
3623
|
-
for (const
|
|
3624
|
-
if (
|
|
3625
|
-
m = m[
|
|
3626
|
-
else if (Array.isArray(m) && m[+
|
|
3627
|
-
m = m[+
|
|
3628
|
-
else if (
|
|
3629
|
-
if (S = await
|
|
3630
|
-
m = S.node[
|
|
3634
|
+
for (const P of Q)
|
|
3635
|
+
if (Ie(m) && m[P] !== void 0)
|
|
3636
|
+
m = m[P], S.nodePointer = Ce(S.nodePointer, Oe(P));
|
|
3637
|
+
else if (Array.isArray(m) && m[+P] !== void 0)
|
|
3638
|
+
m = m[+P], S.nodePointer = Ce(S.nodePointer, Oe(P));
|
|
3639
|
+
else if (Rt(m))
|
|
3640
|
+
if (S = await F(b, m, Ln(R, m)), b = S.document || b, Ie(S.node))
|
|
3641
|
+
m = S.node[P], S.nodePointer = Ce(S.nodePointer, Oe(P));
|
|
3631
3642
|
else if (Array.isArray(S.node))
|
|
3632
|
-
m = S.node[+
|
|
3643
|
+
m = S.node[+P], S.nodePointer = Ce(S.nodePointer, Oe(P));
|
|
3633
3644
|
else {
|
|
3634
3645
|
m = void 0;
|
|
3635
3646
|
break;
|
|
@@ -3639,45 +3650,45 @@ async function Ta(e) {
|
|
|
3639
3650
|
break;
|
|
3640
3651
|
}
|
|
3641
3652
|
S.node = m, S.document = b;
|
|
3642
|
-
const W =
|
|
3643
|
-
return S.document &&
|
|
3653
|
+
const W = $t(N.source.absoluteRef, A.$ref);
|
|
3654
|
+
return S.document && Rt(m) && (S = await F(S.document, m, Ln(R, m))), i.set(W, S), { ...S };
|
|
3644
3655
|
}
|
|
3645
3656
|
}
|
|
3646
3657
|
}
|
|
3647
3658
|
export {
|
|
3648
3659
|
ha as A,
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3660
|
+
Ta as B,
|
|
3661
|
+
ga as C,
|
|
3662
|
+
xr as D,
|
|
3663
|
+
Sr as E,
|
|
3664
|
+
kn as L,
|
|
3665
|
+
sn as R,
|
|
3666
|
+
Vt as S,
|
|
3667
|
+
At as Y,
|
|
3668
|
+
Er as a,
|
|
3669
|
+
cr as b,
|
|
3670
|
+
ya as c,
|
|
3671
|
+
Rt as d,
|
|
3672
|
+
Oe as e,
|
|
3673
|
+
oa as f,
|
|
3674
|
+
ma as g,
|
|
3675
|
+
pr as h,
|
|
3676
|
+
Pe as i,
|
|
3677
|
+
Cr as j,
|
|
3678
|
+
Aa as k,
|
|
3679
|
+
fa as l,
|
|
3680
|
+
Ca as m,
|
|
3681
|
+
da as n,
|
|
3682
|
+
pa as o,
|
|
3683
|
+
lr as p,
|
|
3684
|
+
br as q,
|
|
3685
|
+
va as r,
|
|
3686
|
+
Sa as s,
|
|
3687
|
+
ra as t,
|
|
3688
|
+
Rr as u,
|
|
3689
|
+
rt as v,
|
|
3690
|
+
it as w,
|
|
3691
|
+
Ea as x,
|
|
3692
|
+
$t as y,
|
|
3693
|
+
vr as z
|
|
3683
3694
|
};
|