@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.
Files changed (52) hide show
  1. package/dist/{replay-AiChatProvider-CVvR1kSd.js → replay-AiChatProvider-Dub7iVgM.js} +273 -271
  2. package/dist/replay-AiChatProvider-e4PWUCRp.js +6 -0
  3. package/dist/{replay-AiChatSqliteDBStorage-DVJ9f2EK.js → replay-AiChatSqliteDBStorage-CpjwxLnF.js} +1 -1
  4. package/dist/{replay-AiChatSqliteDBStorage-BFHRKFlk.js → replay-AiChatSqliteDBStorage-DbxNU-ot.js} +1 -1
  5. package/dist/replay-AiPanel-B_zDmo55.js +868 -0
  6. package/dist/{replay-AiPanel-CynVcVmm.js → replay-AiPanel-DuRA2zAt.js} +1226 -1114
  7. package/dist/{replay-SqliteDBStorage-eRBPh4E8.js → replay-SqliteDBStorage-BrNleq7S.js} +1 -1
  8. package/dist/{replay-SqliteDBStorage-CSz7NYH4.js → replay-SqliteDBStorage-CafBNNLB.js} +1 -1
  9. package/dist/{replay-agent-loop-CEZz1kj-.js → replay-agent-loop-CV0s4022.js} +48 -48
  10. package/dist/{replay-agent-loop-C60p47KY.js → replay-agent-loop-CzV79Gr1.js} +1 -1
  11. package/dist/{replay-ai-chat-mappers-BAHU6JIc.js → replay-ai-chat-mappers-BNsR30dS.js} +1 -1
  12. package/dist/{replay-ai-chat-mappers-Dqg-QVZy.js → replay-ai-chat-mappers-BWeZN6p_.js} +1 -1
  13. package/dist/{replay-create-model-C2NQtDcL.js → replay-create-model-CEDEaJC8.js} +3 -3
  14. package/dist/{replay-create-model-CUL-l-eX.js → replay-create-model-CmRk68RD.js} +2 -2
  15. package/dist/{replay-db-C4jAfGtc.js → replay-db-BfSnfWcb.js} +8 -8
  16. package/dist/{replay-db-Dw-X2WGx.js → replay-db-CM8OLcFK.js} +21 -21
  17. package/dist/{replay-external-resolver-DAkLV0nr.js → replay-external-resolver-G86hjAvS.js} +2 -2
  18. package/dist/{replay-external-resolver-DN_PWq_2.js → replay-external-resolver-bdSEZsNk.js} +1 -1
  19. package/dist/{replay-index-BmX1FPBL.js → replay-index-BmotNqNI.js} +1170 -1148
  20. package/dist/replay-index-Bsag-eKM.js +1 -0
  21. package/dist/replay-index-C6SJPGDO.js +23 -0
  22. package/dist/replay-index-CUs62_1f.js +1 -0
  23. package/dist/{replay-index-rRWvC2pp.js → replay-index-C_eJVbPZ.js} +1 -1
  24. package/dist/{replay-index-O_Pq5an3.js → replay-index-Cd9LaUVx.js} +23380 -22731
  25. package/dist/{replay-index-m00jnWFr.js → replay-index-D58Mg6_y.js} +1 -1
  26. package/dist/{replay-index-DR1uVBvc.js → replay-index-DYtNY0OY.js} +42 -41
  27. package/dist/replay-lint-CxwKILeF.js +184 -0
  28. package/dist/{replay-lint-CcVVykW7.js → replay-lint-YfaLafO6.js} +8246 -8047
  29. package/dist/{replay-lint-graphql-DlD7bblx.js → replay-lint-graphql-BRrk1UK5.js} +1 -1
  30. package/dist/{replay-lint-graphql-5cGt2KR_.js → replay-lint-graphql-GtbZklco.js} +1 -1
  31. package/dist/replay-resolve-Bza6lozO.js +47 -0
  32. package/dist/{replay-resolve-Ca3DUbGq.js → replay-resolve-Rb3XjiUd.js} +919 -908
  33. package/dist/{replay-respect-run-eSRzH2dk.js → replay-respect-run-BB0VXCz-.js} +1605 -1555
  34. package/dist/replay-respect-run-Pkoy4Q3P.js +78 -0
  35. package/dist/{replay-tauri-path-C-oxFOHe.js → replay-tauri-path-B8tT4cGY.js} +2 -2
  36. package/dist/{replay-tauri-path-CKcvIl_h.js → replay-tauri-path-yOFqWleH.js} +1 -1
  37. package/dist/{replay-useAiChatQueries-CVTxcu2Z.js → replay-useAiChatQueries-1fqZwVTj.js} +71 -48
  38. package/dist/{replay-useAiChatQueries-vdKvbmp2.js → replay-useAiChatQueries-B7ZcWDmG.js} +1111 -990
  39. package/dist/{replay-validate-key-VkgZoK1f.js → replay-validate-key-C8-nF61w.js} +1 -1
  40. package/dist/{replay-validate-key-CwIopif3.js → replay-validate-key-qJOuAQJK.js} +2 -2
  41. package/dist/replay.cjs +1 -1
  42. package/dist/replay.d.ts +35 -5
  43. package/dist/replay.js +10 -10
  44. package/package.json +4 -4
  45. package/dist/replay-AiChatProvider-BGXsZqW2.js +0 -6
  46. package/dist/replay-AiPanel-qVp_s4gD.js +0 -849
  47. package/dist/replay-index-DSKZHOXq.js +0 -1
  48. package/dist/replay-index-DT5gdiBA.js +0 -21
  49. package/dist/replay-index-qZlgEmbq.js +0 -1
  50. package/dist/replay-lint-ON47l7Vu.js +0 -184
  51. package/dist/replay-resolve-BTzo-fSv.js +0 -47
  52. package/dist/replay-respect-run-BtC2agF9.js +0 -78
@@ -1,12 +1,12 @@
1
- import { g as ur, aK as Qe, aL as Le } from "./replay-index-O_Pq5an3.js";
2
- function fr(e) {
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 Et = {}, St, nn;
6
- function ft() {
7
- if (nn) return St;
8
- nn = 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})`, T = `(?!${c}${y})`, E = `(?!${r}{0,1}${u})`, w = `(?!${y})`, H = `[^.${a}]`, N = `${l}*?`, 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: T,
19
+ NO_DOTS: C,
20
20
  NO_DOT_SLASH: E,
21
21
  NO_DOTS_SLASH: w,
22
- QMARK_NO_DOT: H,
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 St = {
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
- }, St;
182
+ }, Et;
183
183
  }
184
- var rn;
185
- function pt() {
186
- return rn || (rn = 1, (function(e) {
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__ */ ft();
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
- })(Et)), Et;
213
+ })(yt)), yt;
214
214
  }
215
- var Ct, on;
216
- function pr() {
217
- if (on) return Ct;
218
- on = 1;
219
- const e = /* @__PURE__ */ pt(), {
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: T,
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__ */ ft(), H = (R) => R === s || R === r, N = (R) => {
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 Ct = (R, p) => {
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, F = -1, G = 0, J = 0, le = !1, ce = !1, j = !1, Se = !1, _e = !1, B = !1, ie = !1, Ie = !1, Fe = !1, K = !1, oe = 0, me, $, f = { value: "", depth: 0, isGlob: !1 };
256
- const Z = () => F >= _, de = () => W.charCodeAt(F + 1), ee = () => (me = $, W.charCodeAt(++F));
257
- for (; F < _; ) {
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
- ie = f.backslashes = !0, $ = ee(), $ === l && (B = !0);
261
+ oe = f.backslashes = !0, $ = ee(), $ === l && (B = !0);
262
262
  continue;
263
263
  }
264
264
  if (B === !0 || $ === l) {
265
- for (oe++; Z() !== !0 && ($ = ee()); ) {
265
+ for (ae++; Z() !== !0 && ($ = ee()); ) {
266
266
  if ($ === r) {
267
- ie = f.backslashes = !0, ee();
267
+ oe = f.backslashes = !0, ee();
268
268
  continue;
269
269
  }
270
270
  if ($ === l) {
271
- oe++;
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 ($ === T && (oe--, oe === 0)) {
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(F), m.push(f), f = { value: "", depth: 0, isGlob: !1 }, K === !0) continue;
295
- if (me === o && F === G + 1) {
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 = F + 1;
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, Se = f.isExtglob = !0, K = !0, $ === a && F === G && (Fe = !0), b === !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
- ie = f.backslashes = !0, $ = ee();
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 && (_e = f.isGlobstar = !0), j = f.isGlob = !0, K = !0, b === !0)
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
- ie = f.backslashes = !0, ee();
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 && F === G) {
344
- Ie = f.negated = !0, G++;
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
- ie = f.backslashes = !0, $ = ee();
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 && (Se = !1, j = !1);
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 && H(d.charCodeAt(d.length - 1)) && (d = d.slice(0, -1)), x.unescape === !0 && (ue && (ue = e.removeBackslashes(ue)), d && ie === !0 && (d = e.removeBackslashes(d)));
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: Se,
382
- isGlobstar: _e,
383
- negated: Ie,
384
- negatedExtglob: Fe
381
+ isExtglob: Ee,
382
+ isGlobstar: Re,
383
+ negated: be,
384
+ negatedExtglob: ke
385
385
  };
386
- if (x.tokens === !0 && (D.maxDepth = 0, H($) || m.push(f), D.tokens = m), x.parts === !0 || x.tokens === !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, we = S[Y], Ge = R.slice(fe, we);
390
- x.tokens && (Y === 0 && G !== 0 ? (m[Y].isPrefix = !0, m[Y].value = h) : m[Y].value = Ge, N(m[Y]), D.maxDepth += m[Y].depth), (Y !== 0 || Ge !== "") && Q.push(Ge), V = we;
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
- }, Ct;
399
+ }, St;
400
400
  }
401
- var Tt, an;
402
- function dr() {
403
- if (an) return Tt;
404
- an = 1;
405
- const e = /* @__PURE__ */ ft(), t = /* @__PURE__ */ pt(), {
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
- }, T = (A, R = !0) => {
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 _ = T(A.slice(R), !1);
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 = T(p);
545
+ let R = 0, p = A.trim(), x = C(p);
546
546
  for (; x; )
547
- R++, p = x.body.trim(), x = T(p);
547
+ R++, p = x.body.trim(), x = C(p);
548
548
  return R;
549
- }, H = (A, R) => {
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: F,
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: Se,
579
- NO_DOTS_SLASH: _e,
578
+ NO_DOT_SLASH: Ee,
579
+ NO_DOTS_SLASH: Re,
580
580
  QMARK: B,
581
- QMARK_NO_DOT: ie,
582
- STAR: Ie,
583
- START_ANCHOR: Fe
584
- } = Q, K = (v) => `(${m}(?:(?!${Fe}${v.dot ? ce : F}).)*?)`, oe = p.dot ? "" : j, me = p.dot ? B : ie;
585
- let $ = p.bash === !0 ? K(p) : Ie;
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
- }, we = (v) => {
609
+ }, xe = (v) => {
610
610
  f.output += v.output != null ? v.output : v.value, fe(v.value);
611
- }, Ge = () => {
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
- }, et = (v) => {
616
+ }, Je = (v) => {
617
617
  f[v]++, ee.push(v);
618
- }, Ce = (v) => {
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"), C = v.extglob === !0 || Z.length && (v.type === "pipe" || v.type === "paren");
623
- v.type !== "slash" && v.type !== "paren" && !q && !C && (f.output = f.output.slice(0, -d.output.length), d.type = "star", d.value = "*", d.output = $, f.output += d.output);
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) && we(v), d && d.type === "text" && v.type === "text") {
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
- }, tt = (v, q) => {
631
- const C = { ...W[q], conditions: 1, inner: "" };
632
- C.prev = d, C.parens = f.parens, C.output = f.output, C.startIndex = f.index, C.tokensIndex = S.length;
633
- const k = (p.capture ? "(" : "") + C.open;
634
- et("parens"), L({ type: v, value: q, output: f.output ? "" : le }), L({ type: "paren", extglob: !0, value: V(), output: k }), Z.push(C);
635
- }, cr = (v) => {
636
- const q = A.slice(v.startIndex, f.index + 1), C = A.slice(v.startIndex + 2, f.index), k = H(C, p);
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: "" }), Ce("parens");
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 }), Ce("parens");
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, (C, k, U, X, M, he) => X === "\\" ? (v = !0, C) : X === "?" ? k ? k + X + (M ? B.repeat(M.length) : "") : he === 0 ? me + (M ? B.repeat(M.length) : "") : B.repeat(U.length) : X === "." ? F.repeat(U.length) : X === "*" ? k ? k + X + (M ? $ : "") : $ : k ? C : `\\${C}`);
658
- return v === !0 && (p.unescape === !0 ? q = q.replace(/\\/g, "") : q = q.replace(/\\+/g, (C) => C.length % 2 === 0 ? "\\\\" : C ? "\\" : "")), q === A && p.contains === !0 ? (f.output = A, f) : (f.output = t.wrapOutput(q, f, R), f);
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 C = D();
665
- if (C === "/" && p.bash !== !0 || C === "." || C === ";")
664
+ const T = D();
665
+ if (T === "/" && p.bash !== !0 || T === "." || T === ";")
666
666
  continue;
667
- if (!C) {
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 C = d.value.slice(1);
681
- if (C.includes("[") && (d.posix = !0, C.includes(":"))) {
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, we({ 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, we({ 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
- et("parens"), L({ type: "paren", value: h });
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 C = Z[Z.length - 1];
708
- if (C && f.parens === C.parens + 1) {
709
- cr(Z.pop());
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 ? ")" : "\\)" }), Ce("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
- et("brackets");
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
- Ce("brackets");
737
- const C = d.value.slice(1);
738
- if (d.posix !== !0 && C[0] === "^" && !C.includes("/") && (h = `/${h}`), d.value += h, we({ value: h }), p.literalBrackets === !1 || t.hasRegexChars(C))
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
- et("braces");
750
- const C = {
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(C), L(C);
757
+ de.push(T), L(T);
758
758
  continue;
759
759
  }
760
760
  if (h === "}") {
761
- const C = de[de.length - 1];
762
- if (p.nobrace === !0 || !C) {
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 (C.dots === !0) {
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 (C.comma !== !0 && C.dots !== !0) {
774
- const U = f.output.slice(0, C.outputIndex), X = f.tokens.slice(C.tokensIndex);
775
- C.value = C.output = "\\{", h = k = "\\}", f.output = U;
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 }), Ce("braces"), de.pop();
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 C = h;
787
+ let T = h;
788
788
  const k = de[de.length - 1];
789
- k && ee[ee.length - 1] === "braces" && (k.comma = !0, C = "|"), L({ type: "comma", value: h, output: C });
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 = F);
803
- const C = de[de.length - 1];
804
- d.type = "dots", d.output += h, d.value += h, C.dots = !0;
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: F });
808
+ L({ type: "text", value: h, output: P });
809
809
  continue;
810
810
  }
811
- L({ type: "dot", value: h, output: F });
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
- tt("qmark", h);
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: ie });
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
- tt("negate", h);
834
+ et("negate", h);
835
835
  continue;
836
836
  }
837
837
  if (p.nonegate !== !0 && f.index === 0) {
838
- Ge();
838
+ Ke();
839
839
  continue;
840
840
  }
841
841
  }
842
842
  if (h === "+") {
843
843
  if (p.noextglob !== !0 && D() === "(" && D(2) !== "?") {
844
- tt("plus", h);
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 C = i.exec(Y());
869
- C && (h += C[0], f.index += C[0].length), L({ type: "text", value: h });
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
- tt("star", h);
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 C = d.prev, k = C.prev, U = C.type === "slash" || C.type === "bos", X = k && (k.type === "star" || k.type === "globstar");
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 && (C.type === "comma" || C.type === "brace"), he = Z.length && (C.type === "pipe" || C.type === "paren");
892
- if (!U && C.type !== "paren" && !M && !he) {
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 (C.type === "bos" && ue()) {
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 (C.type === "slash" && C.prev.type !== "bos" && !X && ue()) {
907
- f.output = f.output.slice(0, -(C.output + d.output).length), C.output = `(?:${C.output}`, d.type = "globstar", d.output = K(p) + (p.strictSlashes ? ")" : "|$)"), d.value += h, f.globstar = !0, f.output += C.output + d.output, fe(h);
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 (C.type === "slash" && C.prev.type !== "bos" && v[0] === "/") {
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, -(C.output + d.output).length), C.output = `(?:${C.output}`, d.type = "globstar", d.output = `${K(p)}${J}|${J}${ge})`, d.value += h, f.output += C.output + d.output, f.globstar = !0, fe(h + V()), L({ type: "slash", value: "/", output: "" });
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 (C.type === "bos" && v[0] === "/") {
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 = oe + q.output), L(q);
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 += Se, d.output += Se) : p.dot === !0 ? (f.output += _e, d.output += _e) : (f.output += oe, d.output += oe), D() !== "*" && (f.output += le, d.output += le)), L(q);
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, "["), Ce("brackets");
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, "("), Ce("parens");
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, "{"), Ce("braces");
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: F,
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 ? F : W, j = p.dot ? G : W, Se = p.capture ? "" : "?:", _e = { negated: !1, prefix: "" };
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 ie = (oe) => oe.noglobstar === !0 ? B : `(${Se}(?:(?!${le}${oe.dot ? Q : b}).)*?)`, Ie = (oe) => {
971
- switch (oe) {
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 + ie(p);
981
+ return ce + oe(p);
982
982
  case "**/*":
983
- return `(?:${ce}${ie(p)}${S})?${j}${m}${B}`;
983
+ return `(?:${ce}${oe(p)}${S})?${j}${m}${B}`;
984
984
  case "**/*.*":
985
- return `(?:${ce}${ie(p)}${S})?${j}${B}${b}${m}${B}`;
985
+ return `(?:${ce}${oe(p)}${S})?${j}${B}${b}${m}${B}`;
986
986
  case "**/.*":
987
- return `(?:${ce}${ie(p)}${S})?${b}${m}${B}`;
987
+ return `(?:${ce}${oe(p)}${S})?${b}${m}${B}`;
988
988
  default: {
989
- const me = /^(.*?)\.(\w+)$/.exec(oe);
989
+ const me = /^(.*?)\.(\w+)$/.exec(ae);
990
990
  if (!me) return;
991
- const $ = Ie(me[1]);
991
+ const $ = be(me[1]);
992
992
  return $ ? $ + b + me[2] : void 0;
993
993
  }
994
994
  }
995
- }, Fe = t.removePrefix(A, _e);
996
- let K = Ie(Fe);
995
+ }, ke = t.removePrefix(A, Re);
996
+ let K = be(ke);
997
997
  return K && p.strictSlashes !== !0 && (K += `${S}?`), K;
998
- }, Tt = N, Tt;
998
+ }, Ct = N, Ct;
999
999
  }
1000
- var vt, sn;
1001
- function hr() {
1002
- if (sn) return vt;
1003
- sn = 1;
1004
- const e = /* @__PURE__ */ pr(), t = /* @__PURE__ */ dr(), n = /* @__PURE__ */ pt(), r = /* @__PURE__ */ ft(), i = (a) => a && typeof a == "object" && !Array.isArray(a), o = (a, s, l = !1) => {
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 H = a.map((A) => o(A, s, l));
1006
+ const F = a.map((A) => o(A, s, l));
1007
1007
  return (A) => {
1008
- for (const R of H) {
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), T = g.state;
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 H = { ...s, ignore: null, onMatch: null, onResult: null };
1023
- E = o(c.ignore, H, l);
1022
+ const F = { ...s, ignore: null, onMatch: null, onResult: null };
1023
+ E = o(c.ignore, F, l);
1024
1024
  }
1025
- const w = (H, N = !1) => {
1026
- const { isMatch: A, match: R, output: p } = o.test(H, g, s, { glob: a, posix: y }), x = { glob: a, state: T, regex: g, posix: y, input: H, output: p, match: R, isMatch: A };
1027
- return typeof c.onResult == "function" && c.onResult(x), A === !1 ? (x.isMatch = !1, N ? x : !1) : E(H) ? (typeof c.onIgnore == "function" && c.onIgnore(x), x.isMatch = !1, N ? x : !1) : (typeof c.onMatch == "function" && c.onMatch(x), N ? x : !0);
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 = T), w;
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 T = a === u, E = T && g ? g(a) : a;
1038
- return T === !1 && (E = g ? g(a) : a, T = E === u), (T === !1 || y.capture === !0) && (y.matchBase === !0 || y.basename === !0 ? T = o.matchBase(a, s, l, c) : T = s.exec(E)), { isMatch: !!T, match: T, output: E };
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 T = `${y}(?:${a.output})${g}`;
1044
- a && a.negated === !0 && (T = `^(?!${T}).*$`);
1045
- const E = o.toRegex(T, s);
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, vt = o, vt;
1060
+ }, o.constants = r, Tt = o, Tt;
1061
1061
  }
1062
- var Rt, ln;
1063
- function gr() {
1064
- if (ln) return Rt;
1065
- ln = 1;
1066
- const e = /* @__PURE__ */ hr(), t = /* @__PURE__ */ pt();
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), Rt = n, Rt;
1070
+ return Object.assign(n, e), vt = n, vt;
1071
1071
  }
1072
- var mr = /* @__PURE__ */ gr();
1073
- const Ar = /* @__PURE__ */ ur(mr), yr = typeof window < "u" || typeof process > "u" || process?.platform === "browser", Er = yr ? {} : process.env || {};
1074
- async function Sr(e, t) {
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
- Cr(e, i.matches) && (n[i.name] = i.envVariable !== void 0 ? Er[i.envVariable] || "" : i.value);
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 Cr(e, t) {
1086
- return t.match(/^https?:\/\//) || (e = e.replace(/^https?:\/\//, "")), Ar.isMatch(e, t);
1085
+ function Tr(e, t) {
1086
+ return t.match(/^https?:\/\//) || (e = e.replace(/^https?:\/\//, "")), yr.isMatch(e, t);
1087
1087
  }
1088
- function ua(e, t = {}) {
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 fa(e, t = {}) {
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 it = {
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 pa(e, t = {}) {
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 = it, n;
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)) : ot(o) ? (o = { ...o }, r(o), o) : o?.directResolveAs !== void 0 ? {
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 ot(e) {
1142
+ function it(e) {
1143
1143
  return typeof e?.name == "string";
1144
1144
  }
1145
- function Te(e, t) {
1145
+ function Ce(e, t) {
1146
1146
  return e === "" && (e = "#/"), e[e.length - 1] === "/" ? e + t : e + "/" + t;
1147
1147
  }
1148
- function bt(e) {
1149
- return Le(e) && typeof e.$ref == "string";
1148
+ function Rt(e) {
1149
+ return Ie(e) && typeof e.$ref == "string";
1150
1150
  }
1151
- function Tr(e) {
1152
- return Le(e) && typeof e.externalValue == "string";
1151
+ function vr(e) {
1152
+ return Ie(e) && typeof e.externalValue == "string";
1153
1153
  }
1154
- class _n {
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 _n(this.source, Te(this.pointer, (Array.isArray(t) ? t : [t]).map(He).join("/")));
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 vr(e) {
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 He(e) {
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 Rr(e) {
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: br(n)
1185
+ pointer: xr(n)
1186
1186
  };
1187
1187
  }
1188
- function br(e) {
1189
- return e.split("/").map(vr).filter(fr);
1188
+ function xr(e) {
1189
+ return e.split("/").map(Rr).filter(pr);
1190
1190
  }
1191
- function da(e) {
1191
+ function ha(e) {
1192
1192
  const t = e.split("/");
1193
1193
  return t[t.length - 1];
1194
1194
  }
1195
- function ha(e) {
1195
+ function ga(e) {
1196
1196
  const t = e.split(/[\/\\]/);
1197
1197
  return t[t.length - 1].replace(/\.[^.]+$/, "");
1198
1198
  }
1199
- function Me(e) {
1199
+ function Pe(e) {
1200
1200
  return e.startsWith("http://") || e.startsWith("https://") || e.startsWith("file://") || e.startsWith("data:");
1201
1201
  }
1202
- function ga(e) {
1203
- return Qe.extname(e) ? Me(e) ? e.substring(0, e.lastIndexOf("/")) : Qe.dirname(e) : e;
1202
+ function ma(e) {
1203
+ return Xe.extname(e) ? Pe(e) ? e.substring(0, e.lastIndexOf("/")) : Xe.dirname(e) : e;
1204
1204
  }
1205
- function ma(e, t) {
1206
- return Me(e) ? new URL(t, e.endsWith("/") ? e : `${e}/`).href : Qe.resolve(e, t);
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 Aa(e) {
1209
- return typeof e == "string" && (e.startsWith("#") || Me(e) || e.startsWith("./") || e.startsWith("../") || e.indexOf("/") > -1 || /\.(ya?ml|json)$/i.test(e));
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 xr(e) {
1211
+ function _r(e) {
1212
1212
  return /^#[A-Za-z][A-Za-z0-9\-_:.]*$/.test(e);
1213
1213
  }
1214
- function ya(e, t, n) {
1215
- if (!Le(t.node))
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 P = /* @__PURE__ */ Symbol("NOT_RESOLVED"), Gt = /* @__PURE__ */ Symbol("MERGE_KEY");
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 Yt(e, t) {
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 dt(e, t) {
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 _r = te("tag:yaml.org,2002:str", {
1272
+ var Ir = te("tag:yaml.org,2002:str", {
1273
1273
  resolve: (e) => e,
1274
1274
  identify: (e) => typeof e == "string"
1275
- }), Ir = [
1275
+ }), wr = [
1276
1276
  "",
1277
1277
  "~",
1278
1278
  "null",
1279
1279
  "Null",
1280
1280
  "NULL"
1281
- ], wr = te("tag:yaml.org,2002:null", {
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) => Ir.indexOf(e) !== -1 ? null : P,
1289
+ resolve: (e) => wr.indexOf(e) !== -1 ? null : O,
1290
1290
  identify: (e) => e === null,
1291
1291
  represent: () => "null"
1292
- }), Nr = te("tag:yaml.org,2002:null", {
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 : P,
1295
+ resolve: (e, t) => e === "null" || t && e === "" ? null : O,
1296
1296
  identify: (e) => e === null,
1297
1297
  represent: () => "null"
1298
- }), $r = [
1298
+ }), Lr = [
1299
1299
  "",
1300
1300
  "~",
1301
1301
  "null",
1302
1302
  "Null",
1303
1303
  "NULL"
1304
- ], Lr = te("tag:yaml.org,2002:null", {
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) => $r.indexOf(e) !== -1 ? null : P,
1312
+ resolve: (e) => Lr.indexOf(e) !== -1 ? null : O,
1313
1313
  identify: (e) => e === null,
1314
1314
  represent: () => "null"
1315
- }), kr = [
1315
+ }), Or = [
1316
1316
  "true",
1317
1317
  "True",
1318
1318
  "TRUE"
1319
- ], Or = [
1319
+ ], Pr = [
1320
1320
  "false",
1321
1321
  "False",
1322
1322
  "FALSE"
1323
- ], Pr = te("tag:yaml.org,2002:bool", {
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) => kr.indexOf(e) !== -1 ? !0 : Or.indexOf(e) !== -1 ? !1 : P,
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
- }), Fr = ["true"], Hr = ["false"], Mr = te("tag:yaml.org,2002:bool", {
1334
+ }), Hr = ["true"], Mr = ["false"], Br = te("tag:yaml.org,2002:bool", {
1335
1335
  implicit: !0,
1336
1336
  implicitFirstChars: ["t", "f"],
1337
- resolve: (e) => Fr.indexOf(e) !== -1 ? !0 : Hr.indexOf(e) !== -1 ? !1 : P,
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
- }), Br = [
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
- ], Dr = [
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
- ], Ur = te("tag:yaml.org,2002:bool", {
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) => Br.indexOf(e) !== -1 ? !0 : Dr.indexOf(e) !== -1 ? !1 : P,
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
- }), qr = /* @__PURE__ */ new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"), Kr = /* @__PURE__ */ new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");
1382
- function Gr(e) {
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 Yr(e, t) {
1386
+ function Wr(e, t) {
1387
1387
  if (t) {
1388
- if (!Kr.test(e)) return P;
1389
- } else if (!qr.test(e)) return P;
1390
- const n = Gr(e);
1391
- return Number.isFinite(n) ? n : P;
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 In = te("tag:yaml.org,2002:int", {
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: Yr,
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
- }), Wr = /* @__PURE__ */ new RegExp("^-?(?:0|[1-9][0-9]*)$"), jr = /* @__PURE__ */ new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");
1404
- function Vr(e) {
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 Xr(e, t) {
1408
+ function Qr(e, t) {
1409
1409
  if (t) {
1410
- if (!jr.test(e)) return P;
1411
- } else if (!Wr.test(e)) return P;
1412
- const n = Vr(e);
1413
- return Number.isFinite(n) ? n : P;
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 Qr = te("tag:yaml.org,2002:int", {
1415
+ var zr = te("tag:yaml.org,2002:int", {
1416
1416
  implicit: !0,
1417
1417
  implicitFirstChars: ["-", ..."0123456789"],
1418
- resolve: Xr,
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
- }), 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 Zr(e) {
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 Jr(e) {
1434
- if (!zr.test(e)) return P;
1435
- const t = Zr(e);
1436
- return Number.isFinite(t) ? t : P;
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 kt = te("tag:yaml.org,2002:int", {
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: Jr,
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
- }), ei = /* @__PURE__ */ new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), ti = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
1449
- function ni(e) {
1450
- if (!ei.test(e)) return P;
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) || ti.test(e) ? r : P;
1456
+ return Number.isFinite(r) || ni.test(e) ? r : O;
1457
1457
  }
1458
- function ri(e) {
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 wn = te("tag:yaml.org,2002:float", {
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: ni,
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: ri
1477
- }), ii = /* @__PURE__ */ new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"), oi = /* @__PURE__ */ new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
1478
- function ai(e, t) {
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 (!oi.test(e)) return P;
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 : P;
1486
+ return Number.isFinite(o) ? o : O;
1487
1487
  }
1488
- if (!ii.test(e)) return P;
1488
+ if (!oi.test(e)) return O;
1489
1489
  const n = Number(e);
1490
- return Number.isFinite(n) ? n : P;
1490
+ return Number.isFinite(n) ? n : O;
1491
1491
  }
1492
- function si(e) {
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 li = te("tag:yaml.org,2002:float", {
1500
+ var ci = te("tag:yaml.org,2002:float", {
1501
1501
  implicit: !0,
1502
1502
  implicitFirstChars: ["-", ..."0123456789"],
1503
- resolve: ai,
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: si
1506
- }), ci = /* @__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))$"), ui = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
1507
- function fi(e) {
1508
- if (!ci.test(e)) return P;
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) || ui.test(e) ? r : P;
1518
+ return Number.isFinite(r) || fi.test(e) ? r : O;
1519
1519
  }
1520
- function pi(e) {
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 Ot = te("tag:yaml.org,2002:float", {
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: fi,
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: pi
1539
- }), Nn = te("tag:yaml.org,2002:merge", {
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 === "" ? Gt : P
1543
- }), di = /^[A-Za-z0-9+/]*={0,2}$/;
1544
- function hi(e) {
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 || !di.test(t)) return P;
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 gi(e) {
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 $n = te("tag:yaml.org,2002:binary", {
1557
- resolve: hi,
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: gi
1560
- }), mi = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), Ai = /* @__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 yi(e) {
1562
- let t = mi.exec(e);
1563
- if (t === null && (t = Ai.exec(e)), t === null) return P;
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 ? P : c;
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 P;
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 P;
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 P;
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 Ei = te("tag:yaml.org,2002:timestamp", {
1587
+ var Si = te("tag:yaml.org,2002:timestamp", {
1588
1588
  implicit: !0,
1589
1589
  implicitFirstChars: [..."0123456789"],
1590
- resolve: yi,
1590
+ resolve: Ei,
1591
1591
  identify: (e) => e instanceof Date,
1592
1592
  represent: (e) => e.toISOString()
1593
- }), Si = Yt("tag:yaml.org,2002:seq", {
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 ht(e) {
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 Pt(e, t) {
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 Ln = Yt("tag:yaml.org,2002:omap", {
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 (ht(t)) {
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
- }), kn = Yt("tag:yaml.org,2002:pairs", {
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
- }), Ci = dt("tag:yaml.org,2002:map", {
1637
+ }), Ti = pt("tag:yaml.org,2002:map", {
1638
1638
  create: () => ({}),
1639
- identify: ht,
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
- }), On = dt("tag:yaml.org,2002:set", {
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 Ti() {
1671
+ function vi() {
1672
1672
  return {
1673
1673
  scalar: {},
1674
1674
  sequence: {},
1675
1675
  mapping: {}
1676
1676
  };
1677
1677
  }
1678
- function vi() {
1678
+ function Ri() {
1679
1679
  return {
1680
1680
  scalar: [],
1681
1681
  sequence: [],
1682
1682
  mapping: []
1683
1683
  };
1684
1684
  }
1685
- function Ri(e) {
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 gt = class Pn {
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 = Ri(t), r = [], i = Ti(), o = vi();
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 Pn([...this.tags, ...n]);
1740
+ return new Un([...this.tags, ...n]);
1741
1741
  }
1742
- }, Wt = new gt([
1743
- _r,
1744
- Si,
1745
- Ci
1742
+ }, zt = new ht([
1743
+ Ir,
1744
+ Ci,
1745
+ Ti
1746
1746
  ]);
1747
- new gt([
1748
- ...Wt.tags,
1749
- Nr,
1750
- Mr,
1751
- Qr,
1752
- li
1747
+ new ht([
1748
+ ...zt.tags,
1749
+ $r,
1750
+ Br,
1751
+ zr,
1752
+ ci
1753
1753
  ]);
1754
- var Fn = new gt([
1755
- ...Wt.tags,
1756
- wr,
1757
- Pr,
1758
- In,
1759
- wn
1760
- ]), bi = new gt([
1761
- ...Wt.tags,
1762
- Lr,
1763
- Ur,
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
- Ot,
1766
- Ei,
1767
- Nn,
1768
- $n,
1769
- Ln,
1770
- kn,
1771
- On
1766
+ Si,
1767
+ Fn,
1768
+ Hn,
1769
+ Mn,
1770
+ Bn,
1771
+ Dn
1772
1772
  ]);
1773
- dt("tag:yaml.org,2002:map", {
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 || ht(e),
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 cn(e) {
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
- dt("tag:yaml.org,2002:map", {
1798
+ pt("tag:yaml.org,2002:map", {
1799
1799
  create: () => ({}),
1800
- identify: ht,
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 = cn(t);
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 = cn(t);
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 xi = {
1822
+ var _i = {
1823
1823
  maxLength: 79,
1824
1824
  indent: 1,
1825
1825
  linesBefore: 3,
1826
1826
  linesAfter: 2
1827
1827
  };
1828
- function xt(e, t, n, r, i) {
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 _t(e, t) {
1836
+ function xt(e, t) {
1837
1837
  return " ".repeat(Math.max(t - e.length, 0)) + e;
1838
1838
  }
1839
- function _i(e, t) {
1839
+ function Ii(e, t) {
1840
1840
  if (!e.buffer) return null;
1841
1841
  const n = {
1842
- ...xi,
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 T = xt(e.buffer, i[s - g], o[s - g], e.position - (i[s] - i[s - g]), c);
1853
- l = `${" ".repeat(n.indent)}${_t((e.line - g + 1).toString(), u)} | ${T.str}
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 = xt(e.buffer, i[s], o[s], e.position, c);
1857
- l += `${" ".repeat(n.indent)}${_t((e.line + 1).toString(), u)} | ${y.str}
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 T = xt(e.buffer, i[s + g], o[s + g], e.position - (i[s] - i[s + g]), c);
1862
- l += `${" ".repeat(n.indent)}${_t((e.line + g + 1).toString(), u)} | ${T.str}
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 un(e, t) {
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 mt = class extends Error {
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 = un(this, !1), Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
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}: ${un(this, e)}`;
1880
+ return `${this.name}: ${gn(this, e)}`;
1881
1881
  }
1882
1882
  };
1883
- function At(e, t, n, r = "") {
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 = _i(a), new mt(n, a);
1896
+ throw a.snippet = Ii(a), new gt(n, a);
1897
1897
  }
1898
- var Ii = -1;
1899
- function fn(e) {
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 Hn = new Array(256), Mn = new Array(256);
1942
+ var Kn = new Array(256), Gn = new Array(256);
1943
1943
  for (let e = 0; e < 256; e++)
1944
- Hn[e] = fn(e) ? 1 : 0, Mn[e] = fn(e);
1945
- function wi(e) {
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 Ni(e) {
1948
+ function $i(e) {
1949
1949
  return e >= 48 && e <= 57 ? e - 48 : (e | 32) - 97 + 10;
1950
1950
  }
1951
- function $i(e) {
1951
+ function Li(e) {
1952
1952
  return e === 120 ? 2 : e === 117 ? 4 : 8;
1953
1953
  }
1954
- function lt(e, t, n) {
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 jt(e) {
1970
+ function Zt(e) {
1971
1971
  return e === 1 ? " " : `
1972
1972
  `.repeat(e - 1);
1973
1973
  }
1974
- function Li(e, t, n) {
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 = lt(e, i, n);
1981
- r += jt(l.breaks), i = o = a = l.position;
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 ki(e, t, n) {
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 = lt(e, i, n);
1996
- r += jt(l.breaks), i = o = a = l.position;
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 Oi(e, t, n) {
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 = lt(e, i, n).position;
2010
- else if (l < 256 && Hn[l])
2011
- r += Mn[l], i++;
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 = $i(l), c = 0;
2013
+ let u = Li(l), c = 0;
2014
2014
  for (; u > 0; u--) {
2015
2015
  i++;
2016
- const y = Ni(e.charCodeAt(i));
2016
+ const y = $i(e.charCodeAt(i));
2017
2017
  c = (c << 4) + y;
2018
2018
  }
2019
- r += wi(c), i++;
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 = lt(e, i, n);
2025
- r += jt(l.breaks), i = o = a = l.position;
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 pn(e, t, n, r, i, o) {
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 T of l) {
2037
+ for (const C of l) {
2038
2038
  let E = 0;
2039
- for (; E < a && T.charCodeAt(E) === 32; ) E++;
2040
- if (r < 0 || E >= T.length) {
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 = T.slice(a), H = w.charCodeAt(0);
2045
- o ? H === 32 || H === 9 ? (g = !0, u += `
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 Pi(e, t) {
2056
- if (t.valueStart === Ii) return "";
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 pn(e, n, r, t.indent, t.chomping, !1);
2065
+ return An(e, n, r, t.indent, t.chomping, !1);
2066
2066
  case 5:
2067
- return pn(e, n, r, t.indent, t.chomping, !0);
2067
+ return An(e, n, r, t.indent, t.chomping, !0);
2068
2068
  default:
2069
- return Li(e, n, r);
2069
+ return ki(e, n, r);
2070
2070
  }
2071
2071
  }
2072
- var Fi = {
2072
+ var Hi = {
2073
2073
  "!": "!",
2074
2074
  "!!": "tag:yaml.org,2002:"
2075
2075
  };
2076
- function It(e) {
2076
+ function _t(e) {
2077
2077
  return encodeURI(e).replace(/!/g, "%21");
2078
2078
  }
2079
- function Bn(e, t) {
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] ?? Fi[r] ?? 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 Dn(e) {
2084
+ function Wn(e) {
2085
2085
  let t = e;
2086
- return t.charCodeAt(0) === 33 ? (t = t.slice(1), `!${It(t)}`) : t.slice(0, 18) === "tag:yaml.org,2002:" ? `!!${It(t.slice(18))}` : `!<${It(t)}>`;
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 Be = -1, Vt = {
2088
+ var Fe = -1, Jt = {
2089
2089
  filename: "",
2090
- schema: Fn,
2090
+ schema: qn,
2091
2091
  json: !1,
2092
2092
  maxTotalMergeKeys: 1e4,
2093
2093
  maxAliases: -1
2094
2094
  };
2095
- function Hi(e) {
2096
- return "tagStart" in e && e.tagStart !== Be ? e.tagStart : "anchorStart" in e && e.anchorStart !== Be ? e.anchorStart : "valueStart" in e && e.valueStart !== Be ? e.valueStart : "start" in e ? e.start : 0;
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
- At(e.source, e.position, t, e.filename);
2099
+ mt(e.source, e.position, t, e.filename);
2100
2100
  }
2101
- function Un(e, t, n, r) {
2101
+ function jn(e, t, n, r) {
2102
2102
  try {
2103
2103
  return n.finalize(r);
2104
2104
  } catch (i) {
2105
- if (i instanceof mt) throw i;
2106
- At(e.source, t, i instanceof Error ? i.message : String(i), e.filename);
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 at(e, t, n) {
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 Mi(e, t, n, r, i) {
2115
- const o = at(t, n, r);
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 Bi(e, t) {
2120
- const n = Pi(e.source, t), r = t.tagStart === Be ? "" : e.source.slice(t.tagStart, t.tagEnd), i = e.schema.defaultScalarTag;
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 = Bn(r, e.tagHandlers), a = at(e.schema.exact.scalar, e.schema.prefix.scalar, 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 === P && se(e, `cannot resolve a node with !<${o}> explicit tag`), {
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 = at(e.schema.exact.mapping, e.schema.prefix.mapping, o) ?? at(e.schema.exact.sequence, e.schema.prefix.sequence, o);
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 : Un(e, e.position, s, 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 !== P) return {
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 dn(e, t, n, r, i, o) {
2161
- const a = t.tagStart === Be ? "" : e.source.slice(t.tagStart, t.tagEnd), s = a === "" || a === "!" ? i : Bn(a, e.tagHandlers);
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: Mi(e, n, r, s, o)
2164
+ tag: Bi(e, n, r, s, o)
2165
2165
  };
2166
2166
  }
2167
- function qn(e) {
2167
+ function Vn(e) {
2168
2168
  return e.nodeKind === "mapping";
2169
2169
  }
2170
- function hn(e, t, n, r) {
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 Di(e, t, n, r) {
2178
- if (e.position = t.keyPosition, qn(r)) hn(e, t, n, r);
2179
- else if (r.nodeKind === "sequence" && Array.isArray(n)) for (const i of n) hn(e, t, i, t.tag);
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 Ui(e, t, n, r, i) {
2183
- if (e.position = t.keyPosition, n === Gt) {
2184
- Di(e, t, r, i);
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 wt(e, t, n) {
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 && (qn(n) || se(e, "cannot merge mappings; the provided source object is unacceptable"));
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, Ui(e, r, i, t, n);
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 Nt(e, t, n, r, i) {
2206
- if (t.anchorStart !== Be) {
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 qi(e, t) {
2216
+ function Ki(e, t) {
2217
2217
  const n = {
2218
- ...Vt,
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 = Hi(r), r.type) {
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 } = Bi(n, r);
2245
- Nt(n, r, i, o, !0), wt(n, i, o);
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 = dn(n, r, n.schema.exact.sequence, n.schema.prefix.sequence, "tag:yaml.org,2002:seq", "sequence"), o = i.tag.create(i.tagName), a = Nt(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 === Gt;
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 = dn(n, r, n.schema.exact.mapping, n.schema.prefix.mapping, "tag:yaml.org,2002:map", "mapping"), o = i.tag.create(i.tagName), a = Nt(n, r, o, i.tag, i.tag.carrierIsResult);
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()`), wt(n, o.value, o.tag);
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 : Un(n, i.position, i.tag, i.value);
2287
- i.anchor && (i.anchor.value = o, i.anchor.isValueFinal = !0), wt(n, o, i.tag);
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 O = -1, Kn = Object.prototype.hasOwnProperty, ve = 1, Ft = 2, Gn = 3, ct = 4, Ki = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Gi = /[,\[\]{}]/, Yn = /^(?:!|!!|![0-9A-Za-z-]+!)$/, Ht = String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`, Wn = String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`, Yi = new RegExp(`^(?:${Ht})*$`), Wi = new RegExp(`^(?:${Wn})+$`), ji = new RegExp(`^(?:!(?:${Ht})*|${Wn}(?:${Ht})*)$`), Xt = {
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 Vi(e, t, n) {
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 jn(e, t, n, r, i, o, a) {
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 je(e, t, n, r, i, o, a) {
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 Ke(e, t, n, r, i, o, a, s, l = 1, u = -1, c = !1) {
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 Xi(e, t, n) {
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 De(e) {
2362
+ function He(e) {
2352
2363
  e.events.push({ type: 6 });
2353
2364
  }
2354
- function ae(e) {
2355
- Ke(e, O, O, O, O, O, O, 1);
2365
+ function re(e) {
2366
+ qe(e, H, H, H, H, H, H, 1);
2356
2367
  }
2357
- function gn() {
2368
+ function Cn() {
2358
2369
  return {
2359
- anchorStart: O,
2360
- anchorEnd: O,
2361
- tagStart: O,
2362
- tagEnd: O
2370
+ anchorStart: H,
2371
+ anchorEnd: H,
2372
+ tagStart: H,
2373
+ tagEnd: H
2363
2374
  };
2364
2375
  }
2365
- function Ve(e) {
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 be(e, t) {
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
- At(e.input.slice(0, e.length), e.position, t, e.filename);
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 ke(e) {
2395
+ function Ne(e) {
2385
2396
  return e === 9 || e === 32;
2386
2397
  }
2387
2398
  function pe(e) {
2388
- return ke(e) || z(e);
2399
+ return Ne(e) || z(e);
2389
2400
  }
2390
2401
  function Ae(e) {
2391
2402
  return e === 0 || pe(e);
2392
2403
  }
2393
- function Oe(e) {
2404
+ function $e(e) {
2394
2405
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
2395
2406
  }
2396
- function Qi(e) {
2407
+ function zi(e) {
2397
2408
  return e >= 48 && e <= 57 ? e - 48 : -1;
2398
2409
  }
2399
- function zi(e) {
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 Zi(e) {
2415
+ function Ji(e) {
2405
2416
  return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
2406
2417
  }
2407
- function Ji(e) {
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 ut(e) {
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 re(e, t) {
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 (; ke(r); )
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 (ut(e), n++, i = !0, r = e.input.charCodeAt(e.position); r === 32; )
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 xe(e, t = e.position) {
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 mn(e) {
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 Vn(e, t, n) {
2440
- Ki.test(e.input.slice(t, n)) && I(e, "the stream contains non-printable characters");
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 eo(e, t, n) {
2453
+ function to(e, t, n) {
2443
2454
  if (e.input.charCodeAt(e.position) !== 33) return !1;
2444
- t.tagStart !== O && I(e, "duplication of a tag property");
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 && Oe(s)); )
2454
- s === 33 && (o ? I(e, "tag suffix cannot contain exclamation marks") : (a = e.input.slice(l - 1, e.position + 1), Yn.test(a) || I(e, "named tag handle cannot contain such characters"), o = !0, l = e.position + 1)), s = e.input.charCodeAt(++e.position);
2455
- u = e.input.slice(l, e.position), Gi.test(u) && I(e, "tag suffix cannot contain flow indicator characters");
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 ? Yi.test(u) : Wi.test(u)) && I(e, `tag name cannot contain such characters: ${u}`), !i && a !== "!" && a !== "!!" && !Kn.call(e.tagHandlers, a) && I(e, `undeclared tag handle "${a}"`), t.tagStart = r, t.tagEnd = e.position, !0;
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 to(e, t) {
2470
+ function no(e, t) {
2460
2471
  if (e.input.charCodeAt(e.position) !== 38) return !1;
2461
- t.anchorStart !== O && I(e, "duplication of an anchor property"), e.position++;
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)) && !Oe(e.input.charCodeAt(e.position)); ) 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 no(e, t) {
2477
+ function ro(e, t) {
2467
2478
  if (e.input.charCodeAt(e.position) !== 42) return !1;
2468
- (t.anchorStart !== O || t.tagStart !== O) && I(e, "alias node should not have any properties"), e.position++;
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)) && !Oe(e.input.charCodeAt(e.position)); ) e.position++;
2471
- return e.position === n && I(e, "name of an alias node must contain at least one character"), Xi(e, n, e.position), !0;
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
- re(e, !1), e.lineIndent < t && I(e, "deficient indentation");
2485
+ ie(e, !1), e.lineIndent < t && I(e, "deficient indentation");
2475
2486
  }
2476
- function ro(e, t, n) {
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++, Ke(e, r, a, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 2, 1, -1, i), !0;
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 && xe(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++;
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 io(e, t, n) {
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++, Ke(e, r, a, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 3, 1, -1, i), !0;
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 (Ji(a)) e.position++;
2521
+ else if (eo(a)) e.position++;
2511
2522
  else {
2512
- let s = Zi(a);
2523
+ let s = Ji(a);
2513
2524
  for (s === 0 && I(e, "unknown escape sequence"); s-- > 0; )
2514
- e.position++, zi(e.input.charCodeAt(e.position)) < 0 && I(e, "expected hexadecimal character");
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 && xe(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++;
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 oo(e, t, n) {
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 T = e.input.charCodeAt(e.position), E = Qi(T);
2528
- if (T === 43 || T === 45)
2529
- i !== 1 && I(e, "repeat of a chomping mode identifier"), i = T === 43 ? 3 : 2, e.position++;
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 (; ke(e.input.charCodeAt(e.position)); )
2546
+ for (; Ne(e.input.charCodeAt(e.position)); )
2536
2547
  l = !0, e.position++;
2537
- l && e.input.charCodeAt(e.position) === 35 && mn(e), z(e.input.charCodeAt(e.position)) ? ut(e) : e.input.charCodeAt(e.position) !== 0 && I(e, "a line break is expected");
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 T = e.position;
2553
+ const C = e.position;
2543
2554
  let E = 0;
2544
- for (; e.input.charCodeAt(T + E) === 32; ) E++;
2545
- const w = e.input.charCodeAt(T + E);
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 = T + E) : E > 0 && (g = T + E);
2558
+ u >= 0 ? E > u && (g = C + E) : E > 0 && (g = C + E);
2548
2559
  break;
2549
2560
  }
2550
- if (T === e.lineStart && xe(e, T)) break;
2551
- if (!a && u === -1 && z(w) && (c = Math.max(c, E)), !a && u === -1 && !z(w) && (w === 9 && E < t && (e.position = T + E, I(e, "tab characters must not be used in indentation")), E < c && (e.position = T + E, I(e, "bad indentation of a mapping entry"))), u === -1 && w !== 0 && !z(w) && E < t) {
2552
- e.lineIndent = E, e.position = T + E;
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 H = u === -1 ? t + 1 : u;
2557
- if (w !== 0 && !z(w) && E < H) {
2558
- e.lineIndent = E, e.position = T + E;
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
- mn(e), g = e.position, z(e.input.charCodeAt(e.position)) && (ut(e), g = e.position);
2572
+ Tn(e), g = e.position, z(e.input.charCodeAt(e.position)) && (ct(e), g = e.position);
2562
2573
  }
2563
- return Vn(e, y, g), Ke(e, y, g, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, s, i, u), !0;
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 ao(e, t) {
2566
- const n = e.input.charCodeAt(e.position), r = t === ve;
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 && Oe(n)) return !1;
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 && Oe(i)) return !1;
2581
+ if (Ae(i) || r && $e(i)) return !1;
2571
2582
  }
2572
2583
  return !0;
2573
2584
  }
2574
- function so(e, t, n, r) {
2575
- if (!ao(e, n)) return !1;
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 === ve;
2589
+ const s = n === De;
2579
2590
  let l = !1;
2580
- for (; a !== 0 && !(e.position === e.lineStart && xe(e)); ) {
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 && Oe(u)) break;
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 && Oe(a)) break;
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 (re(e, !1), e.lineIndent >= t) {
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
- ke(a) || (o = e.position + 1), a = e.input.charCodeAt(++e.position);
2609
+ Ne(a) || (o = e.position + 1), a = e.input.charCodeAt(++e.position);
2599
2610
  }
2600
- return o === i ? !1 : (Vn(e, i, o), Ke(e, i, o, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, 1, 1, -1, !l), !0);
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 Ne(e, t) {
2613
+ function Ge(e, t) {
2603
2614
  const n = e.line;
2604
- re(e, !0), (e.line > n && e.lineIndent < t || e.firstTabInLine !== -1 && e.lineIndent < t) && I(e, "deficient indentation");
2615
+ ie(e, !0), (e.line > n && e.lineIndent < t || e.firstTabInLine !== -1 && e.lineIndent < t) && I(e, "deficient indentation");
2605
2616
  }
2606
- function lo(e, t, n) {
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 ? je(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; ) {
2612
- Ne(e, t);
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++, De(e), !0;
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, Ne(e, t));
2619
- const y = e.line, g = Ve(e), T = ye(e, t, ve, !1, !0);
2620
- Ne(e, t), l = e.input.charCodeAt(e.position), (i || c || e.line === y) && l === 58 ? (u = !0, e.position++, Ne(e, t), i ? T || ae(e) : (be(e, g), je(e, g.position, O, O, O, O, 2), ye(e, t, ve, !1, !0) || ae(e), Ne(e, t), e.position++, Ne(e, t)), ye(e, t, ve, !1, !0) || ae(e), Ne(e, t), i || De(e)) : i && u ? (T || ae(e), ae(e)) : i ? ae(e) : u && (be(e, g), je(e, g.position, O, O, O, O, 2), ye(e, t, ve, !1, !0), ae(e), De(e)), l = e.input.charCodeAt(e.position), l === 44 ? (a = !0, e.position++) : a = !1;
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 An(e, t, n) {
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 (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)); ) {
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 = re(e, !0) > 0;
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 ? ae(e) : ye(e, t, Gn, !1, !0), re(e, !0), e.lineIndent < t || e.position >= e.length) break;
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 De(e), !0;
2645
+ return He(e), !0;
2635
2646
  }
2636
- function $t(e, t, n, r) {
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 || (je(e, e.position, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, 1), a = !0), l === 63 ? (i && ae(e), o = !0, i = !0) : (i || (ae(e), o = !0), i = !1), e.position += 1, s = !0;
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 && (ae(e), i = !1);
2647
- const y = Ve(e);
2648
- if (!ye(e, n, Ft, !1, !0)) break;
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); ke(l); ) 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 (be(e, y), je(e, y.position, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, 1), a = !0, ye(e, n, Ft, !1, !0), l = e.input.charCodeAt(e.position); ke(l); ) l = e.input.charCodeAt(++e.position);
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 !== O || r.tagStart !== O ? (be(e, y), !1) : !0;
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 !== O || r.tagStart !== O ? (be(e, y), !1) : !0;
2673
+ return r.anchorStart !== H || r.tagStart !== H ? (Me(e, y), !1) : !0;
2663
2674
  }
2664
- if (ye(e, t, ct, !0, s) && (s = !1), i || s && (ae(e), s = !1), re(e, !0), l = e.input.charCodeAt(e.position), (e.line === c || e.lineIndent > t) && l !== 0) I(e, "bad indentation of a mapping entry");
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 && ae(e), a && De(e), !0) : !1;
2678
+ return o ? (i && re(e), a && He(e), !0) : !1;
2668
2679
  }
2669
- function ye(e, t, n, r, i, o = !0) {
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 = gn();
2673
- let y = n === ct || n === Gn, g = y;
2674
- const T = y;
2675
- if (r && re(e, !0) && (s = !0, e.lineIndent > t ? a = 1 : e.lineIndent === t ? a = 0 : a = -1), e.position === e.lineStart && xe(e))
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 = Ve(e);
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 && T && (c.tagStart !== O || c.anchorStart !== O) && (E === 33 || E === 38)) {
2681
- const H = Ve(e), N = t + 1;
2682
- if ($t(e, e.position - e.lineStart, N, c) && e.events[H.eventsLength]?.type === 3)
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
- be(e, H);
2695
+ Me(e, F);
2685
2696
  }
2686
- if (s && (E === 33 && c.tagStart !== O || E === 38 && c.anchorStart !== O) || !eo(e, c, n === ve) && !to(e, c)) break;
2687
- u === null && (u = w), re(e, !0) ? (s = !0, g = T, e.lineIndent > t ? a = 1 : e.lineIndent === t ? a = 0 : a = -1) : g = !1;
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 === ct) {
2690
- const E = n === ve || n === Ft ? t : t + 1, w = e.position - e.lineStart;
2691
- if (a === 1) if (g && (An(e, w, c) || $t(e, w, E, c)) || lo(e, E, c)) l = !0;
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 H = e.input.charCodeAt(e.position);
2694
- if (u !== null && o && T && !g && H !== 124 && H !== 62) {
2695
- const N = Ve(e), A = u.position - u.lineStart;
2696
- be(e, u), $t(e, A, E, gn()) && e.events[N.eventsLength]?.type === 3 ? l = !0 : be(e, N);
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 && oo(e, E, c) || ro(e, E, c) || io(e, E, c) || no(e, c) || so(e, E, n, c)) && (l = !0);
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 && An(e, w, c));
2711
+ else a === 0 && (l = g && vn(e, w, c));
2701
2712
  }
2702
- return y = y && !l, !l && (c.anchorStart !== O || c.tagStart !== O || y) && (Ke(e, O, O, c.anchorStart, c.anchorEnd, c.tagStart, c.tagEnd, 1), l = !0), e.depth--, l || c.anchorStart !== O || c.tagStart !== O;
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 co(e) {
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 (; ke(e.input.charCodeAt(e.position)); ) e.position++;
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)) && ut(e), n === "YAML") {
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
- Yn.test(i) || I(e, "ill-formed tag handle (first argument) of the TAG directive"), Kn.call(e.tagHandlers, i) && I(e, `there is a previously declared suffix for "${i}" tag handle`), ji.test(o) || I(e, "ill-formed tag prefix (second argument) of the TAG directive"), e.tagHandlers[i] = o, e.directives.push({
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 uo(e) {
2746
+ function fo(e) {
2736
2747
  e.directives = [], e.tagHandlers = /* @__PURE__ */ Object.create(null);
2737
2748
  let t = !1;
2738
- for (re(e, !0); co(e); )
2739
- t = !0, re(e, !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, re(e, !0), i = e.line > s;
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 && xe(e)) {
2748
- e.position += 3, re(e, !0);
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 (Vi(e, n, !1), ye(e, e.lineIndent - 1, ct, !1, i, i) || ae(e), re(e, !0), e.position === e.lineStart && xe(e) && (r = e.input.charCodeAt(e.position) === 46, r)) {
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, re(e, !0), e.line === s && e.position < e.length && I(e, "end of the stream or a document separator is expected");
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), De(e), !r && e.position < e.length && !(e.position === e.lineStart && xe(e)) && I(e, "end of the stream or a document separator is expected");
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 fo(e, t) {
2769
+ function po(e, t) {
2759
2770
  const n = e.length, r = {
2760
- ...Xt,
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 && At(e, i, "null byte is not allowed in input", r.filename), r.input.charCodeAt(r.position) === 65279 && r.position++; r.position < r.length && (re(r, !0), !(r.position >= r.length)); ) {
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
- uo(r), r.position === o && I(r, "can not read a document");
2787
+ fo(r), r.position === o && I(r, "can not read a document");
2777
2788
  }
2778
2789
  return r.events;
2779
2790
  }
2780
- var po = {
2781
- ...Xt,
2782
- ...Vt
2791
+ var ho = {
2792
+ ...en,
2793
+ ...Jt
2783
2794
  };
2784
- function ho(e, t = {}) {
2795
+ function go(e, t = {}) {
2785
2796
  const n = {
2786
- ...po,
2797
+ ...ho,
2787
2798
  ...t
2788
- }, r = String(e), i = Object.keys(Xt), o = Object.keys(Vt);
2789
- return qi(fo(r, Pt(n, i)), {
2790
- ...Pt(n, o),
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 go(e, t, n) {
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 = ho(e, n);
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 nt = class {
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
- }, $e = /* @__PURE__ */ Symbol("INVALID");
2809
- function mo(e) {
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 Ao(e, t) {
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 nt(),
2862
+ style: new tt(),
2852
2863
  anchor: c.anchor
2853
2864
  };
2854
2865
  }
2855
- const n = Ao(e, t);
2866
+ const n = yo(e, t);
2856
2867
  if (!n) {
2857
- if (t === void 0 || e.skipInvalid) return $e;
2858
- throw new mt(`unacceptable kind of an object to dump ${Object.prototype.toString.call(t)}`);
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 : Dn(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 nt();
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 nt();
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 T = 0, E = c.length; T < E; T += 1) {
2881
- let w = We(e, c[T]);
2882
- w === $e && c[T] === void 0 && (w = We(e, null)), w !== $e && g.items.push(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 nt();
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 === $e) continue;
2898
- const T = We(e, y);
2899
- T !== $e && u.items.push({
2908
+ if (g === _e) continue;
2909
+ const C = We(e, y);
2910
+ C !== _e && u.items.push({
2900
2911
  key: g,
2901
- value: T
2912
+ value: C
2902
2913
  });
2903
2914
  }
2904
2915
  return u;
2905
2916
  }
2906
- function yo(e, t, n = {}) {
2917
+ function Eo(e, t, n = {}) {
2907
2918
  const r = We({
2908
- representTypes: mo(t),
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 === $e ? null : r,
2926
+ contents: r === _e ? null : r,
2916
2927
  directives: []
2917
2928
  }];
2918
2929
  }
2919
- var Eo = /* @__PURE__ */ Symbol("visit:break"), Xn = /* @__PURE__ */ Symbol("visit:skip");
2920
- function st(e, t, n) {
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 === Eo) return !0;
2923
- if (r === Xn) return !1;
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 (st(o, t, {
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 (st(o, t, {
2946
+ if (at(o, t, {
2936
2947
  depth: i,
2937
2948
  parent: e,
2938
2949
  isKey: !0
2939
- }) || st(a, t, {
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 So(e, t) {
2949
- for (const n of e) if (n.contents && st(n.contents, t, {
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 Qt = 65279, Co = 9, Pe = 10, Qn = 13, To = 32, vo = 33, zn = 34, Bt = 35, Ro = 37, bo = 38, Zn = 39, xo = 42, Jn = 44, zt = 45, ze = 58, _o = 61, Io = 62, er = 63, wo = 64, tr = 91, nr = 93, No = 96, rr = 123, $o = 124, ir = 125, ne = {};
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 Zt = {
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
- ...Zt,
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 Oo(e) {
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 yn(e, t) {
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 Dt(e, t) {
3027
+ function Yt(e, t) {
3017
3028
  return `
3018
3029
  ${" ".repeat(e.indent * t)}`;
3019
3030
  }
3020
- function Po(e, t) {
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 En(e, t) {
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) !== P) return 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 qe(e) {
3036
- return e === To || e === Co;
3046
+ function Ue(e) {
3047
+ return e === vo || e === To;
3037
3048
  }
3038
- function Fo(e) {
3049
+ function Ho(e) {
3039
3050
  const t = e.charCodeAt(0);
3040
- if (t !== zt && t !== 46 || e.charCodeAt(1) !== t || e.charCodeAt(2) !== t) return !1;
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 qe(n) || n === Qn || n === Pe;
3054
+ return Ue(n) || n === nr || n === Le;
3044
3055
  }
3045
- function Ze(e) {
3046
- return e >= 32 && e <= 126 || e >= 161 && e <= 55295 && e !== 8232 && e !== 8233 || e >= 57344 && e <= 65533 && e !== Qt || e >= 65536 && e <= 1114111;
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 Sn(e) {
3049
- return Ze(e) && e !== Qt && e !== Qn && e !== Pe;
3059
+ function xn(e) {
3060
+ return ze(e) && e !== tn && e !== nr && e !== Le;
3050
3061
  }
3051
- function Ut(e, t, n) {
3052
- const r = Sn(e), i = r && !qe(e);
3053
- return (n ? r : r && e !== Jn && e !== tr && e !== nr && e !== rr && e !== ir) && e !== Bt && !(t === ze && !i) || Sn(t) && !qe(t) && e === Bt || t === ze && i;
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 Ho(e) {
3056
- return Ze(e) && e !== Qt && !qe(e) && e !== zt && e !== er && e !== ze && e !== Jn && e !== tr && e !== nr && e !== rr && e !== ir && e !== Bt && e !== bo && e !== xo && e !== vo && e !== $o && e !== _o && e !== Io && e !== Zn && e !== zn && e !== Ro && e !== wo && e !== No;
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 Mo(e, t) {
3059
- const n = Ue(e, 0);
3060
- if (Ho(n)) return !0;
3061
- if (e.length > 1 && (n === zt || n === er || n === ze)) {
3062
- const r = Ue(e, 1);
3063
- return !qe(r) && Ut(r, n, t);
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 Bo(e) {
3068
- return !qe(e) && e !== ze;
3078
+ function Do(e) {
3079
+ return !Ue(e) && e !== Qe;
3069
3080
  }
3070
- function Ue(e, t) {
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 or(e) {
3086
+ function ar(e) {
3076
3087
  return /^\n* /.test(e);
3077
3088
  }
3078
- var Je = 1, Xe = 2, Jt = 3, en = 4, Re = 5;
3079
- function Do(e, t, n, r, i, o) {
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 T = s !== -1;
3083
- let E = -1, w = !Fo(t) && Mo(t, o) && Bo(Ue(t, t.length - 1));
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 = Ue(t, l), !Ze(u)) return Re;
3086
- w = w && Ut(u, c, o), c = u;
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 = Ue(t, l), u === Pe)
3091
- y = !0, T && (g = g || l - E - 1 > s && t[E + 1] !== " ", E = l);
3092
- else if (!Ze(u)) return Re;
3093
- w = w && Ut(u, c, o), c = u;
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 || T && l - E - 1 > s && t[E + 1] !== " ";
3106
+ g = g || C && l - E - 1 > s && t[E + 1] !== " ";
3096
3107
  }
3097
- return !y && !g ? w && !i ? Je : e.quoteStyle === "double" ? Re : Xe : a > 9 && or(t) ? Re : g ? en : Jt;
3108
+ return !y && !g ? w && !i ? Ze : e.quoteStyle === "double" ? Te : Ve : a > 9 && ar(t) ? Te : g ? an : on;
3098
3109
  }
3099
- function Uo(e, t, n) {
3110
+ function qo(e, t, n) {
3100
3111
  const { indent: r, blockIndent: i, lineWidth: o } = n;
3101
3112
  switch (t) {
3102
- case Je:
3103
- return Tn(e, r);
3104
- case Xe:
3105
- return `'${Tn(e, r).replace(/'/g, "''")}'`;
3106
- case Jt:
3107
- return "|" + Cn(e, i) + vn(yn(e, r));
3108
- case en:
3109
- return ">" + Cn(e, i) + vn(yn(Ko(e, o), r));
3110
- case Re:
3111
- return `"${Go(e)}"`;
3112
- }
3113
- }
3114
- function qo(e, t, n, r, i) {
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 Xe;
3117
- if (t.style.doubleQuoted) return Re;
3127
+ if (t.style.singleQuoted) return Ve;
3128
+ if (t.style.doubleQuoted) return Te;
3118
3129
  if (!o) {
3119
- if (t.style.literal) return Jt;
3120
- if (t.style.folded) return en;
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 || En(e, a) === t.tag ? Je : e.quoteStyle === "double" ? Re : Xe;
3125
- const s = Do(e, a, n, o, e.forceQuotes && !r, i);
3126
- return s === Je && !t.style.tagged && En(e, a) !== t.tag ? e.quoteStyle === "double" ? Re : Xe : 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 Cn(e, t) {
3129
- const n = or(e) ? String(t) : "", r = e[e.length - 1] === `
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 Tn(e, t) {
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 vn(e) {
3163
+ function wn(e) {
3153
3164
  return e[e.length - 1] === `
3154
3165
  ` ? e.slice(0, -1) : e;
3155
3166
  }
3156
- function Ko(e, t) {
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 = Rn(e.slice(0, r), t), o = e[0] === `
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
- ` : "") + Rn(u, t), o = a;
3177
+ ` : "") + Nn(u, t), o = a;
3167
3178
  }
3168
3179
  return i;
3169
3180
  }
3170
- function Rn(e, t) {
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 Go(e) {
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 = Ue(e, r);
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 (Ze(n)) {
3201
+ if (ze(n)) {
3191
3202
  t += e[r], n >= 65536 && (t += e[r + 1]);
3192
3203
  continue;
3193
3204
  }
3194
- t += Oo(n);
3205
+ t += Po(n);
3195
3206
  }
3196
3207
  return t;
3197
3208
  }
3198
- function Yo(e, t, n) {
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 = Ee(e, t, n.items[o], {});
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 bn(e, t, n, r) {
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 = Ee(e, t + 1, n.items[o], {
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 += Dt(e, t)), s === "" || Pe === s.charCodeAt(0) ? i += "-" : i += "- ", i += s;
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 Wo(e, t, n) {
3230
+ function jo(e, t, n) {
3220
3231
  let r = "";
3221
- const i = ar(e, n.items);
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 = Ee(e, t, a, { iskey: !0 }), c = u.length > 1024;
3236
+ const u = ye(e, t, a, { iskey: !0 }), c = u.length > 1024;
3226
3237
  c ? l += "? " : e.quoteFlowKeys && (l += '"');
3227
- const y = Ee(e, t, s, {}), g = e.flowSkipColonSpace || 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 rt(e) {
3244
+ function nt(e) {
3234
3245
  return e.kind === "scalar" ? e.value : e;
3235
3246
  }
3236
- function ar(e, t) {
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 = rt(r.key), a = rt(i.key);
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(rt(i.key), rt(o.key)));
3256
+ n.sort((i, o) => r(nt(i.key), nt(o.key)));
3246
3257
  }
3247
3258
  return n;
3248
3259
  }
3249
- function jo(e, t, n, r) {
3260
+ function Vo(e, t, n, r) {
3250
3261
  let i = "";
3251
- const o = ar(e, n.items);
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 += Dt(e, t));
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 ? Ee(e, t + 1, u, {
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: !qt(e, u, t + 1)
3259
- }) : Ee(e, t + 1, u, {
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
- }), T = u.kind === "scalar" && u.value.indexOf(`
3264
- `) !== -1, E = y || T || g.length > 1024;
3265
- E && (g && Pe === g.charCodeAt(0) ? l += "?" : l += "? "), l += g, E && (l += Dt(e, t));
3266
- const w = Ee(e, t + 1, c, {
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 && !qt(e, c, t + 1)
3270
- }), H = u.kind === "scalar" && u.value === "" && g !== "" && g.charCodeAt(g.length - 1) !== Zn && g.charCodeAt(g.length - 1) !== zn, N = !E && (u.kind === "alias" || H) ? " " : "";
3271
- w === "" || Pe === w.charCodeAt(0) ? l += `${N}:` : l += `${N}: `, l += w, i += l;
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 qt(e, t, n) {
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 Ee(e, t, n, r) {
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
- qt(e, n, t) && (s = !1);
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 = jo(e, t, n, s) : u = Wo(e, t, n);
3287
- else if (n.kind === "sequence") y ? e.seqNoIndent && !a && t > 0 ? u = bn(e, t - 1, n, s) : u = bn(e, t, n, s) : u = Yo(e, t, n);
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 = Po(e, t), T = qo(e, n, g, o, i);
3290
- u = Uo(n.value, T, g), c = n.style.tagged || T !== Je && n.tag !== e.defaultScalarTagName;
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 = [], T = c ? Lo(n) : null, E = l ? `&${n.anchor}` : null;
3294
- e.tagBeforeAnchor ? (T !== null && g.push(T), E !== null && g.push(E)) : (E !== null && g.push(E), T !== null && g.push(T));
3295
- const w = u === "" || u.charCodeAt(0) === Pe ? "" : " ";
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 Vo(e) {
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 Xo(e) {
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 Qo(e) {
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 zo(e, t) {
3328
- const n = ko(t);
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 = Qo(a), l = s !== "", u = a.explicitStart || l || o > 0 && !i;
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 = Ee(n, 0, a.contents, {
3347
+ const c = ye(n, 0, a.contents, {
3337
3348
  block: !0,
3338
3349
  compact: !0
3339
- }), y = c === "" ? "" : l || Vo(a.contents) ? `
3350
+ }), y = c === "" ? "" : l || Xo(a.contents) ? `
3340
3351
  ` : " ";
3341
3352
  r += `---${y}${c}
3342
3353
  `;
3343
- } else r += Ee(n, 0, a.contents, {
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 && Xo(a.contents), i && (r += `...
3359
+ i = a.explicitEnd || a.contents !== null && Qo(a.contents), i && (r += `...
3349
3360
  `);
3350
3361
  }
3351
3362
  return r;
3352
3363
  }
3353
- var Zo = bi.withTags({
3354
- ...kt,
3364
+ var Jo = xi.withTags({
3365
+ ...Lt,
3355
3366
  resolve: (e, t, n) => {
3356
- const r = kt.resolve(e, t, n);
3357
- return r === P ? In.resolve(e, t, n) : r;
3367
+ const r = Lt.resolve(e, t, n);
3368
+ return r === O ? On.resolve(e, t, n) : r;
3358
3369
  }
3359
3370
  }, {
3360
- ...Ot,
3371
+ ...kt,
3361
3372
  resolve: (e, t, n) => {
3362
- const r = Ot.resolve(e, t, n);
3363
- return r === P ? wn.resolve(e, t, n) : r;
3373
+ const r = kt.resolve(e, t, n);
3374
+ return r === O ? Pn.resolve(e, t, n) : r;
3364
3375
  }
3365
- }), Jo = {
3366
- ...Zt,
3367
- schema: Zo,
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 ea(e, t = {}) {
3385
+ function ta(e, t = {}) {
3375
3386
  const n = {
3376
- ...Jo,
3387
+ ...ea,
3377
3388
  ...t
3378
- }, r = yo(e, n.schema, {
3389
+ }, r = Eo(e, n.schema, {
3379
3390
  noRefs: n.noRefs,
3380
3391
  skipInvalid: n.skipInvalid
3381
3392
  });
3382
- return n.flowLevel >= 0 && So(r, (i, o) => {
3393
+ return n.flowLevel >= 0 && Co(r, (i, o) => {
3383
3394
  if (!(o.depth < n.flowLevel))
3384
- return i.style.flow = !0, Xn;
3385
- }), n.transform(r), zo(r, {
3386
- ...Pt(n, Object.keys(Zt)),
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 ta = Fn.withTags(Nn, $n, Ln, kn, On), sr = (e, t) => {
3391
- const n = go(e, { schema: ta, ...t });
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 mt("expected a single document in the stream, but found more");
3406
+ throw new gt("expected a single document in the stream, but found more");
3396
3407
  return n[0];
3397
- }, Ea = (e, t) => ea(e, t);
3398
- function na(e, t) {
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 ra = /\((\d+):(\d+)\)$/;
3402
- class yt extends Error {
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, yt.prototype);
3410
- const [, r, i] = this.message.match(ra) || [];
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 ia(e) {
3425
+ function oa(e) {
3415
3426
  return e.endsWith(".yaml") || e.endsWith(".yml") || e.endsWith(".json");
3416
3427
  }
3417
- const oa = [".graphql", ".gql"];
3418
- function lr(e) {
3428
+ const aa = [".graphql", ".gql"];
3429
+ function cr(e) {
3419
3430
  const t = e.toLowerCase();
3420
- return oa.some((n) => t.endsWith(n));
3431
+ return aa.some((n) => t.endsWith(n));
3421
3432
  }
3422
- function Lt(e, t) {
3433
+ function $t(e, t) {
3423
3434
  return e + "::" + t;
3424
3435
  }
3425
- function aa() {
3436
+ function sa() {
3426
3437
  return new Promise((e) => {
3427
3438
  setTimeout(e);
3428
3439
  });
3429
3440
  }
3430
- class Kt {
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 tn extends Error {
3459
+ class sn extends Error {
3449
3460
  originalError;
3450
3461
  constructor(t) {
3451
- super(t.message), this.originalError = t, Object.setPrototypeOf(this, tn.prototype);
3462
+ super(t.message), this.originalError = t, Object.setPrototypeOf(this, sn.prototype);
3452
3463
  }
3453
3464
  }
3454
- function Sa(e, t) {
3455
- const n = new Kt(t, e);
3456
- if (lr(t))
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: sr(e, { filename: t })
3472
+ parsed: lr(e, { filename: t })
3462
3473
  };
3463
3474
  } catch (r) {
3464
- throw new yt(r, n);
3475
+ throw new At(r, n);
3465
3476
  }
3466
3477
  }
3467
- class Ca {
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 Me(n) ? n : t && Me(t) ? new URL(n, t).href : Qe.resolve(t ? Qe.dirname(t) : process.cwd(), n);
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 (Me(t)) {
3482
- const { body: n, mimeType: r } = await Sr(t, this.config.http);
3483
- return new Kt(t, n, r);
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 Kt(t, n.replace(/\r\n/g, `
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 tn(n);
3503
+ throw n.message = n.message.replace(", lstat", ""), new sn(n);
3493
3504
  }
3494
3505
  }
3495
3506
  parseDocument(t, n = !1) {
3496
- if (lr(t.absoluteRef))
3507
+ if (cr(t.absoluteRef))
3497
3508
  return { source: t, parsed: t.body };
3498
- if (!ia(t.absoluteRef) && !t.mimeType?.match(/(json|yaml|openapi)/) && !n)
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: sr(t.body, { filename: t.absoluteRef })
3514
+ parsed: lr(t.body, { filename: t.absoluteRef })
3504
3515
  };
3505
3516
  } catch (r) {
3506
- throw new yt(r, t);
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 xn(e, t) {
3528
+ function Ln(e, t) {
3518
3529
  return {
3519
3530
  prev: e,
3520
3531
  node: t
3521
3532
  };
3522
3533
  }
3523
- function sa(e, t) {
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: {} }, la = { name: "scalar", properties: {} };
3532
- async function Ta(e) {
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 T = c.source.absoluteRef, E = /* @__PURE__ */ new Map();
3542
- w(u, g, T + y);
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 (!Le(N) && !Array.isArray(N))
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 !== it)
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], Te(R, m)) : b;
3556
- if (Q === void 0 && A !== Ye && A !== it)
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, ot(Q) ? Q : Ye, Te(R, m));
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 = na(A.properties, b);
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 = it), !ot(m) && m?.directResolveAs && (m = m.directResolveAs, S = { $ref: S }), m && m.name === void 0 && m.resolvable !== !1 && (m = la), !(!ot(m) || !(Le(S) || Array.isArray(S))) && w(S, m, Te(R, He(b)));
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 (bt(N)) {
3570
- const b = H(c, N, {
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 (Tr(N)) {
3579
- const b = H(c, { $ref: N.externalValue }, {
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 H(N, A, R) {
3589
- if (sa(R.prev, A))
3599
+ async function F(N, A, R) {
3600
+ if (la(R.prev, A))
3590
3601
  throw new Error("Self-referencing circular pointer");
3591
- if (xr(A.$ref)) {
3592
- await aa();
3593
- const F = {
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 = Lt(N.source.absoluteRef, A.$ref);
3600
- return i.set(G, F), F;
3610
+ }, G = $t(N.source.absoluteRef, A.$ref);
3611
+ return i.set(G, P), P;
3601
3612
  }
3602
- const { uri: p, pointer: x } = Rr(A.$ref), _ = p !== null && n.resolveExternalRef(N.source.absoluteRef, p) !== N.source.absoluteRef;
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 (F) {
3617
+ } catch (P) {
3607
3618
  const G = {
3608
3619
  resolved: !1,
3609
3620
  isRemote: _,
3610
3621
  document: void 0,
3611
- error: F
3612
- }, J = Lt(N.source.absoluteRef, A.$ref);
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 F of Q)
3624
- if (Le(m) && m[F] !== void 0)
3625
- m = m[F], S.nodePointer = Te(S.nodePointer, He(F));
3626
- else if (Array.isArray(m) && m[+F] !== void 0)
3627
- m = m[+F], S.nodePointer = Te(S.nodePointer, He(F));
3628
- else if (bt(m))
3629
- if (S = await H(b, m, xn(R, m)), b = S.document || b, Le(S.node))
3630
- m = S.node[F], S.nodePointer = Te(S.nodePointer, He(F));
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[+F], S.nodePointer = Te(S.nodePointer, He(F));
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 = Lt(N.source.absoluteRef, A.$ref);
3643
- return S.document && bt(m) && (S = await H(S.document, m, xn(R, m))), i.set(W, S), { ...S };
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
- Ca as B,
3650
- br as C,
3651
- Er as D,
3652
- lr as E,
3653
- _n as L,
3654
- tn as R,
3655
- Kt as S,
3656
- yt as Y,
3657
- yr as a,
3658
- Aa as b,
3659
- bt as c,
3660
- ia as d,
3661
- He as e,
3662
- fr as f,
3663
- ga as g,
3664
- Sr as h,
3665
- Me as i,
3666
- ma as j,
3667
- fa as k,
3668
- ua as l,
3669
- Sa as m,
3670
- pa as n,
3671
- Rr as o,
3672
- sr as p,
3673
- na as q,
3674
- Ta as r,
3675
- Ea as s,
3676
- it as t,
3677
- vr as u,
3678
- ot as v,
3679
- ya as w,
3680
- Lt as x,
3681
- Tr as y,
3682
- da as z
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
  };