@jixo/cli 0.25.0 → 0.26.0

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 (95) hide show
  1. package/assets/bundle/google-aistudio.browser.js +562 -2433
  2. package/assets/bundle/google-aistudio.jixo.js +63655 -0
  3. package/assets/prompt.json +1 -1
  4. package/assets/tools.json +1 -0
  5. package/bundle/{acorn-CU7YmuGp.js → acorn-BJF4qA9z.js} +17 -39
  6. package/bundle/acorn-BJF4qA9z.js.map +1 -0
  7. package/bundle/{angular-BZFEnvyh.js → angular-Cu7-vCtW.js} +44 -207
  8. package/bundle/angular-Cu7-vCtW.js.map +1 -0
  9. package/bundle/{babel-BC5Ty8sN.js → babel-ZTOL0_x6.js} +109 -125
  10. package/bundle/babel-ZTOL0_x6.js.map +1 -0
  11. package/bundle/{estree-DZTSfOv_.js → estree-5JRlNokb.js} +9 -10
  12. package/bundle/estree-5JRlNokb.js.map +1 -0
  13. package/bundle/file-replacer-CQZSjZXb.js +3 -0
  14. package/bundle/{file-replacer-cUUAxJ6b.js → file-replacer-CZhq6MJJ.js} +1543 -1127
  15. package/bundle/file-replacer-CZhq6MJJ.js.map +1 -0
  16. package/bundle/{flow-CNTeHoxv.js → flow-Cd3L1dMY.js} +482 -680
  17. package/bundle/flow-Cd3L1dMY.js.map +1 -0
  18. package/bundle/{gen-prompt-qt1W8jAy.js → gen-prompt-3bZp8K__.js} +5610 -526
  19. package/bundle/gen-prompt-3bZp8K__.js.map +1 -0
  20. package/bundle/gen-prompt-IINGP6mf.js +4 -0
  21. package/bundle/{glimmer-DYkbcawC.js → glimmer-N8tyHqy2.js} +29 -47
  22. package/bundle/glimmer-N8tyHqy2.js.map +1 -0
  23. package/bundle/{graphql-fCaNVuM0.js → graphql-BsfPfzVT.js} +8 -8
  24. package/bundle/graphql-BsfPfzVT.js.map +1 -0
  25. package/bundle/{html-Bb8ztcZq.js → html-CV8zEM7F.js} +8 -10
  26. package/bundle/html-CV8zEM7F.js.map +1 -0
  27. package/bundle/index.js +16415 -7240
  28. package/bundle/index.js.map +1 -0
  29. package/bundle/{markdown-ChusAllR.js → markdown-Cq8CRcxA.js} +5 -89
  30. package/bundle/markdown-Cq8CRcxA.js.map +1 -0
  31. package/bundle/{meriyah-9NeL3We4.js → meriyah-f8qRdfjZ.js} +10 -16
  32. package/bundle/meriyah-f8qRdfjZ.js.map +1 -0
  33. package/bundle/{postcss-DXCUuMfC.js → postcss-CtnQb9ad.js} +69 -159
  34. package/bundle/postcss-CtnQb9ad.js.map +1 -0
  35. package/bundle/{typescript-C2HFEnMP.js → typescript-BQw1QTVg.js} +55 -106
  36. package/bundle/typescript-BQw1QTVg.js.map +1 -0
  37. package/bundle/{yaml-ByEZ6gmG.js → yaml-B5kqwurc.js} +55 -127
  38. package/bundle/yaml-B5kqwurc.js.map +1 -0
  39. package/dist/commands/google-aistudio.d.ts.map +1 -1
  40. package/dist/commands/google-aistudio.js +6 -16
  41. package/dist/commands/google-aistudio.js.map +1 -1
  42. package/dist/commands/groq.js +1 -1
  43. package/dist/commands/groq.js.map +1 -1
  44. package/dist/prompts.json +2 -14
  45. package/dist/runCli.js +3 -3
  46. package/dist/runCli.js.map +1 -1
  47. package/package.json +9 -8
  48. package/assets/bundle/groq.browser.js +0 -3714
  49. package/bundle/external-CS43xY0F.js +0 -285
  50. package/bundle/file-replacer-nbB4NnrU.js +0 -3
  51. package/bundle/gen-prompt-BxI7DHUD.js +0 -4
  52. package/dist/cli.d.ts +0 -2
  53. package/dist/cli.d.ts.map +0 -1
  54. package/dist/cli.js +0 -83
  55. package/dist/cli.js.map +0 -1
  56. package/dist/commands/daemon.d.ts +0 -5
  57. package/dist/commands/daemon.d.ts.map +0 -1
  58. package/dist/commands/daemon.js +0 -20
  59. package/dist/commands/daemon.js.map +0 -1
  60. package/dist/commands/doctor/config.d.ts +0 -3
  61. package/dist/commands/doctor/config.d.ts.map +0 -1
  62. package/dist/commands/doctor/config.js +0 -17
  63. package/dist/commands/doctor/config.js.map +0 -1
  64. package/dist/commands/doctor/doctor.d.ts +0 -3
  65. package/dist/commands/doctor/doctor.d.ts.map +0 -1
  66. package/dist/commands/doctor/doctor.js +0 -158
  67. package/dist/commands/doctor/doctor.js.map +0 -1
  68. package/dist/commands/doctor/doctor.test.d.ts +0 -2
  69. package/dist/commands/doctor/doctor.test.d.ts.map +0 -1
  70. package/dist/commands/doctor/doctor.test.js +0 -14
  71. package/dist/commands/doctor/doctor.test.js.map +0 -1
  72. package/dist/commands/doctor/index.d.ts +0 -2
  73. package/dist/commands/doctor/index.d.ts.map +0 -1
  74. package/dist/commands/doctor/index.js +0 -8
  75. package/dist/commands/doctor/index.js.map +0 -1
  76. package/dist/commands/doctor/types.d.ts +0 -45
  77. package/dist/commands/doctor/types.d.ts.map +0 -1
  78. package/dist/commands/doctor/types.js +0 -3
  79. package/dist/commands/doctor/types.js.map +0 -1
  80. package/dist/commands/init.d.ts +0 -2
  81. package/dist/commands/init.d.ts.map +0 -1
  82. package/dist/commands/init.js +0 -40
  83. package/dist/commands/init.js.map +0 -1
  84. package/dist/commands/tasks/run.d.ts +0 -10
  85. package/dist/commands/tasks/run.d.ts.map +0 -1
  86. package/dist/commands/tasks/run.js +0 -44
  87. package/dist/commands/tasks/run.js.map +0 -1
  88. package/dist/config.d.ts +0 -15
  89. package/dist/config.d.ts.map +0 -1
  90. package/dist/config.js +0 -23
  91. package/dist/config.js.map +0 -1
  92. package/dist/env.d.ts +0 -6
  93. package/dist/env.d.ts.map +0 -1
  94. package/dist/env.js +0 -16
  95. package/dist/env.js.map +0 -1
@@ -32,7 +32,6 @@ var cn = (t, e, n) => (n = t != null ? Yi(Fi(t)) : {}, Ki(e || !t || !t.__esModu
32
32
  var ln = (t, e, n) => Ui(t, typeof e != "symbol" ? e + "" : e, n), fn = (t, e, n) => e.has(t) || dr("Cannot " + n);
33
33
  var Te = (t, e, n) => (fn(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Ot = (t, e, n) => e.has(t) ? dr("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), un = (t, e, n, r) => (fn(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), Xe = (t, e, n) => (fn(t, e, "access private method"), n);
34
34
  var oe = te(($) => {
35
- "use strict";
36
35
  var re = {
37
36
  ANCHOR: "&",
38
37
  COMMENT: "#",
@@ -464,13 +463,10 @@ ${s}
464
463
  }
465
464
  let o = r[e];
466
465
  switch (o) {
467
- case " ": {
468
- let a = "Plain value cannot start with a tab character";
469
- return {
470
- errors: [new mt(this, a)],
471
- str: i
472
- };
473
- }
466
+ case " ": return {
467
+ errors: [new mt(this, "Plain value cannot start with a tab character")],
468
+ str: i
469
+ };
474
470
  case "@":
475
471
  case "`": {
476
472
  let a = `Plain value cannot start with reserved character ${o}`;
@@ -515,7 +511,6 @@ ${s}
515
511
  $.defaultTags = No;
516
512
  });
517
513
  var ns = te((ts) => {
518
- "use strict";
519
514
  var u = oe(), Se = class extends u.Node {
520
515
  constructor() {
521
516
  super(u.Type.BLANK_LINE);
@@ -673,10 +668,7 @@ var ns = te((ts) => {
673
668
  if (c < i + a) {
674
669
  i > n && (c = i);
675
670
  break;
676
- } else if (!this.error) {
677
- let h = "All collection items must start at the same column";
678
- this.error = new u.YAMLSyntaxError(this, h);
679
- }
671
+ } else if (!this.error) this.error = new u.YAMLSyntaxError(this, "All collection items must start at the same column");
680
672
  }
681
673
  if (o.type === u.Type.SEQ_ITEM) {
682
674
  if (l !== "-") {
@@ -686,10 +678,7 @@ var ns = te((ts) => {
686
678
  } else if (l === "-" && !this.error) {
687
679
  let h = s[c + 1];
688
680
  if (!h || h === `
689
- ` || h === " " || h === " ") {
690
- let g = "A collection cannot be both a mapping and a sequence";
691
- this.error = new u.YAMLSyntaxError(this, g);
692
- }
681
+ ` || h === " " || h === " ") this.error = new u.YAMLSyntaxError(this, "A collection cannot be both a mapping and a sequence");
693
682
  }
694
683
  let d = r({
695
684
  atLineStart: f,
@@ -968,10 +957,7 @@ var ns = te((ts) => {
968
957
  }
969
958
  } else if (r[l] !== `
970
959
  `) {
971
- if (m < a) {
972
- let d = "Block scalars with more-indented leading empty lines must use an explicit indentation indicator";
973
- this.error = new u.YAMLSemanticError(this, d);
974
- }
960
+ if (m < a) this.error = new u.YAMLSemanticError(this, "Block scalars with more-indented leading empty lines must use an explicit indentation indicator");
975
961
  this.blockIndent = m;
976
962
  } else m > a && (a = m);
977
963
  r[l] === `
@@ -1015,10 +1001,7 @@ var ns = te((ts) => {
1015
1001
  let f = new Se();
1016
1002
  o = f.parse({ src: s }, o), this.items.push(f);
1017
1003
  }
1018
- if (c = u.Node.endOfIndent(s, o), c <= o + i && (a = s[c], c < o + i || a !== "]" && a !== "}")) {
1019
- let f = "Insufficient indentation in flow collection";
1020
- this.error = new u.YAMLSemanticError(this, f);
1021
- }
1004
+ if (c = u.Node.endOfIndent(s, o), c <= o + i && (a = s[c], c < o + i || a !== "]" && a !== "}")) this.error = new u.YAMLSemanticError(this, "Insufficient indentation in flow collection");
1022
1005
  }
1023
1006
  break;
1024
1007
  case ",":
@@ -1347,7 +1330,6 @@ var ns = te((ts) => {
1347
1330
  ts.parse = Mo;
1348
1331
  });
1349
1332
  var qe = te((k) => {
1350
- "use strict";
1351
1333
  var p = oe();
1352
1334
  function Co(t, e, n) {
1353
1335
  return n ? `#${n.replace(/[\s\S]^/gm, `$&${e}#`)}
@@ -1561,10 +1543,7 @@ ${c}${A}` : `
1561
1543
  }
1562
1544
  set commentBefore(e) {
1563
1545
  if (this.key ??= new _(null), this.key instanceof j) this.key.commentBefore = e;
1564
- else {
1565
- let n = "Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";
1566
- throw new Error(n);
1567
- }
1546
+ else throw new Error("Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.");
1568
1547
  }
1569
1548
  addToJSMap(e, n) {
1570
1549
  let r = ce(this.key, "", e);
@@ -1592,10 +1571,7 @@ ${c}${A}` : `
1592
1571
  let { indent: s, indentSeq: i, simpleKeys: o } = e.doc.options, { key: a, value: c } = this, l = a instanceof j && a.comment;
1593
1572
  if (o) {
1594
1573
  if (l) throw new Error("With simple keys, key nodes cannot have comments");
1595
- if (a instanceof W) {
1596
- let R = "With simple keys, collection cannot be used as a key value";
1597
- throw new Error(R);
1598
- }
1574
+ if (a instanceof W) throw new Error("With simple keys, collection cannot be used as a key value");
1599
1575
  }
1600
1576
  let f = !o && (!a || l || (a instanceof j ? a instanceof W || a.type === p.Type.BLOCK_FOLDED || a.type === p.Type.BLOCK_LITERAL : typeof a == "object")), { doc: m, indent: d, indentStep: y, stringify: h } = e;
1601
1577
  e = Object.assign({}, e, {
@@ -2023,10 +1999,7 @@ ${l}`);
2023
1999
  function us(t, e) {
2024
2000
  let n = e.context.src[e.range.start - 1];
2025
2001
  if (n !== `
2026
- ` && n !== " " && n !== " ") {
2027
- let r = "Comments must be separated from other tokens by white space characters";
2028
- t.push(new p.YAMLSemanticError(e, r));
2029
- }
2002
+ ` && n !== " " && n !== " ") t.push(new p.YAMLSemanticError(e, "Comments must be separated from other tokens by white space characters"));
2030
2003
  }
2031
2004
  function ps(t, e) {
2032
2005
  let n = String(e), r = n.substr(0, 8) + "..." + n.substr(-8);
@@ -2140,26 +2113,17 @@ ${l}`);
2140
2113
  }, r = !1, s = !1, i = Uo(e.context.parent) ? e.context.parent.props.concat(e.props) : e.props;
2141
2114
  for (let { start: o, end: a } of i) switch (e.context.src[o]) {
2142
2115
  case p.Char.COMMENT: {
2143
- if (!e.commentHasRequiredWhitespace(o)) {
2144
- let m = "Comments must be separated from other tokens by white space characters";
2145
- t.push(new p.YAMLSemanticError(e, m));
2146
- }
2116
+ if (!e.commentHasRequiredWhitespace(o)) t.push(new p.YAMLSemanticError(e, "Comments must be separated from other tokens by white space characters"));
2147
2117
  let { header: c, valueRange: l } = e;
2148
2118
  (l && (o > l.start || c && o > c.start) ? n.after : n.before).push(e.context.src.slice(o + 1, a));
2149
2119
  break;
2150
2120
  }
2151
2121
  case p.Char.ANCHOR:
2152
- if (r) {
2153
- let c = "A node can have at most one anchor";
2154
- t.push(new p.YAMLSemanticError(e, c));
2155
- }
2122
+ if (r) t.push(new p.YAMLSemanticError(e, "A node can have at most one anchor"));
2156
2123
  r = !0;
2157
2124
  break;
2158
2125
  case p.Char.TAG:
2159
- if (s) {
2160
- let c = "A node can have at most one tag";
2161
- t.push(new p.YAMLSemanticError(e, c));
2162
- }
2126
+ if (s) t.push(new p.YAMLSemanticError(e, "A node can have at most one tag"));
2163
2127
  s = !0;
2164
2128
  break;
2165
2129
  }
@@ -2201,10 +2165,7 @@ ${l}`);
2201
2165
  let { anchors: o } = t, a = e.anchor, c = o.getNode(a);
2202
2166
  c && (o.map[o.newName(a)] = c), o.map[a] = e;
2203
2167
  }
2204
- if (e.type === p.Type.ALIAS && (r || s)) {
2205
- let o = "An alias node must not specify any properties";
2206
- t.errors.push(new p.YAMLSemanticError(e, o));
2207
- }
2168
+ if (e.type === p.Type.ALIAS && (r || s)) t.errors.push(new p.YAMLSemanticError(e, "An alias node must not specify any properties"));
2208
2169
  let i = Vo(t, e);
2209
2170
  if (i) {
2210
2171
  i.range = [e.range.start, e.range.end], t.options.keepCstNodes && (i.cstNode = e), t.options.keepNodeTypes && (i.type = e.type);
@@ -2248,10 +2209,7 @@ ${a}` : a);
2248
2209
  }
2249
2210
  }
2250
2211
  }
2251
- if (i && !t.options.mapAsMap) {
2252
- let o = "Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";
2253
- t.warnings.push(new p.YAMLWarning(e, o));
2254
- }
2212
+ if (i && !t.options.mapAsMap) t.warnings.push(new p.YAMLWarning(e, "Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this."));
2255
2213
  return e.resolved = s, s;
2256
2214
  }
2257
2215
  var Wo = ({ context: { lineStart: t, node: e, src: n }, props: r }) => {
@@ -2295,10 +2253,7 @@ ${a}` : a);
2295
2253
  break;
2296
2254
  case p.Type.MAP_VALUE:
2297
2255
  {
2298
- if (s === void 0 && (s = null), a.error && t.errors.push(a.error), !a.context.atLineStart && a.node && a.node.type === p.Type.MAP && !a.node.context.atLineStart) {
2299
- let f = "Nested mappings are not allowed in compact mappings";
2300
- t.errors.push(new p.YAMLSemanticError(a.node, f));
2301
- }
2256
+ if (s === void 0 && (s = null), a.error && t.errors.push(a.error), !a.context.atLineStart && a.node && a.node.type === p.Type.MAP && !a.node.context.atLineStart) t.errors.push(new p.YAMLSemanticError(a.node, "Nested mappings are not allowed in compact mappings"));
2302
2257
  let c = a.node;
2303
2258
  if (!c && a.props.length > 0) {
2304
2259
  c = new p.PlainValue(p.Type.PLAIN, []), c.context = {
@@ -2329,17 +2284,12 @@ ${a}` : a);
2329
2284
  case p.Type.BLANK_LINE:
2330
2285
  case p.Type.COMMENT: continue e;
2331
2286
  case p.Type.MAP_VALUE: break e;
2332
- default: {
2333
- let f = "Implicit map keys need to be followed by map values";
2334
- t.errors.push(new p.YAMLSemanticError(a, f));
2287
+ default:
2288
+ t.errors.push(new p.YAMLSemanticError(a, "Implicit map keys need to be followed by map values"));
2335
2289
  break e;
2336
- }
2337
2290
  }
2338
2291
  }
2339
- if (a.valueRangeContainsNewline) {
2340
- let c = "Implicit map keys need to be on a single line";
2341
- t.errors.push(new p.YAMLSemanticError(a, c));
2342
- }
2292
+ if (a.valueRangeContainsNewline) t.errors.push(new p.YAMLSemanticError(a, "Implicit map keys need to be on a single line"));
2343
2293
  }
2344
2294
  }
2345
2295
  return s !== void 0 && r.push(new T(s)), {
@@ -2394,10 +2344,7 @@ ${a}` : a);
2394
2344
  return t.errors.push(new p.YAMLSyntaxError(e, i)), null;
2395
2345
  }
2396
2346
  let { comments: n, items: r } = e.type === p.Type.FLOW_SEQ ? zo(t, e) : Xo(t, e), s = new le();
2397
- if (s.items = r, ms(s, n), !t.options.mapAsMap && r.some((i) => i instanceof T && i.key instanceof W)) {
2398
- let i = "Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";
2399
- t.warnings.push(new p.YAMLWarning(e, i));
2400
- }
2347
+ if (s.items = r, ms(s, n), !t.options.mapAsMap && r.some((i) => i instanceof T && i.key instanceof W)) t.warnings.push(new p.YAMLWarning(e, "Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this."));
2401
2348
  return e.resolved = s, s;
2402
2349
  }
2403
2350
  function Xo(t, e) {
@@ -2415,10 +2362,7 @@ ${a}` : a);
2415
2362
  });
2416
2363
  break;
2417
2364
  case p.Type.SEQ_ITEM:
2418
- if (i.error && t.errors.push(i.error), r.push(fe(t, i.node)), i.hasProps) {
2419
- let o = "Sequence items cannot have tags or anchors before the - indicator";
2420
- t.errors.push(new p.YAMLSemanticError(i, o));
2421
- }
2365
+ if (i.error && t.errors.push(i.error), r.push(fe(t, i.node)), i.hasProps) t.errors.push(new p.YAMLSemanticError(i, "Sequence items cannot have tags or anchors before the - indicator"));
2422
2366
  break;
2423
2367
  default: i.error && t.errors.push(i.error), t.errors.push(new p.YAMLSyntaxError(i, `Unexpected ${i.type} node in sequence`));
2424
2368
  }
@@ -2448,8 +2392,7 @@ ${a}` : a);
2448
2392
  let { src: h } = c.context;
2449
2393
  for (let g = o; g < y; ++g) if (h[g] === `
2450
2394
  `) {
2451
- let w = "Implicit keys of flow sequence pairs need to be on a single line";
2452
- t.errors.push(new p.YAMLSemanticError(c, w));
2395
+ t.errors.push(new p.YAMLSemanticError(c, "Implicit keys of flow sequence pairs need to be on a single line"));
2453
2396
  break;
2454
2397
  }
2455
2398
  }
@@ -2503,7 +2446,6 @@ ${a}` : a);
2503
2446
  k.toJSON = ce;
2504
2447
  });
2505
2448
  var Gn = te((z) => {
2506
- "use strict";
2507
2449
  var Q = oe(), O = qe(), Zo = {
2508
2450
  identify: (t) => t instanceof Uint8Array,
2509
2451
  default: !1,
@@ -2515,10 +2457,7 @@ var Gn = te((z) => {
2515
2457
  let r = atob(n.replace(/[\n\r]/g, "")), s = new Uint8Array(r.length);
2516
2458
  for (let i = 0; i < r.length; ++i) s[i] = r.charCodeAt(i);
2517
2459
  return s;
2518
- } else {
2519
- let r = "This environment does not support reading binary tags; either Buffer or atob is required";
2520
- return t.errors.push(new Q.YAMLReferenceError(e, r)), null;
2521
- }
2460
+ } else return t.errors.push(new Q.YAMLReferenceError(e, "This environment does not support reading binary tags; either Buffer or atob is required")), null;
2522
2461
  },
2523
2462
  options: O.binaryOptions,
2524
2463
  stringify: ({ comment: t, type: e, value: n }, r, s, i) => {
@@ -2549,10 +2488,7 @@ var Gn = te((z) => {
2549
2488
  let s = n.items[r];
2550
2489
  if (!(s instanceof O.Pair)) {
2551
2490
  if (s instanceof O.YAMLMap) {
2552
- if (s.items.length > 1) {
2553
- let o = "Each pair must have its own sequence indicator";
2554
- throw new Q.YAMLSemanticError(e, o);
2555
- }
2491
+ if (s.items.length > 1) throw new Q.YAMLSemanticError(e, "Each pair must have its own sequence indicator");
2556
2492
  let i = s.items[0] || new O.Pair();
2557
2493
  s.commentBefore && (i.commentBefore = i.commentBefore ? `${s.commentBefore}
2558
2494
  ${i.commentBefore}` : s.commentBefore), s.comment && (i.comment = i.comment ? `${s.comment}
@@ -2603,10 +2539,8 @@ ${i.comment}` : s.comment), s = i;
2603
2539
  Q._defineProperty(Ue, "tag", "tag:yaml.org,2002:omap");
2604
2540
  function ta(t, e) {
2605
2541
  let n = gs(t, e), r = [];
2606
- for (let { key: s } of n.items) if (s instanceof O.Scalar) if (r.includes(s.value)) {
2607
- let i = "Ordered maps must not include duplicate keys";
2608
- throw new Q.YAMLSemanticError(e, i);
2609
- } else r.push(s.value);
2542
+ for (let { key: s } of n.items) if (s instanceof O.Scalar) if (r.includes(s.value)) throw new Q.YAMLSemanticError(e, "Ordered maps must not include duplicate keys");
2543
+ else r.push(s.value);
2610
2544
  return Object.assign(new Ue(), n);
2611
2545
  }
2612
2546
  function na(t, e, n) {
@@ -2738,7 +2672,6 @@ ${i.comment}` : s.comment), s = i;
2738
2672
  z.warnOptionDeprecation = ua;
2739
2673
  });
2740
2674
  var zn = te((Ps) => {
2741
- "use strict";
2742
2675
  var jt = oe(), E = qe(), D = Gn();
2743
2676
  function pa(t, e, n) {
2744
2677
  let r = new E.YAMLMap(t);
@@ -3134,7 +3067,6 @@ var zn = te((Ps) => {
3134
3067
  Ps.Schema = St;
3135
3068
  });
3136
3069
  var Rs = te((Xt) => {
3137
- "use strict";
3138
3070
  var Y = oe(), S = qe(), Is = zn(), Oa = {
3139
3071
  anchorPrefix: "a",
3140
3072
  customTags: null,
@@ -3356,8 +3288,7 @@ ${e.indent}${c}` : c;
3356
3288
  }, r, s = !1;
3357
3289
  for (let i of e) if (i.valueRange) {
3358
3290
  if (r !== void 0) {
3359
- let a = "Document contains trailing content not separated by a ... or --- line";
3360
- t.errors.push(new Y.YAMLSyntaxError(i, a));
3291
+ t.errors.push(new Y.YAMLSyntaxError(i, "Document contains trailing content not separated by a ... or --- line"));
3361
3292
  break;
3362
3293
  }
3363
3294
  let o = S.resolveNode(t, i);
@@ -3380,14 +3311,8 @@ ${o.commentBefore}` : i;
3380
3311
  }
3381
3312
  function ka({ tagPrefixes: t }, e) {
3382
3313
  let [n, r] = e.parameters;
3383
- if (!n || !r) {
3384
- let s = "Insufficient parameters given for %TAG directive";
3385
- throw new Y.YAMLSemanticError(e, s);
3386
- }
3387
- if (t.some((s) => s.handle === n)) {
3388
- let s = "The %TAG directive must only be given at most once per handle in the same document.";
3389
- throw new Y.YAMLSemanticError(e, s);
3390
- }
3314
+ if (!n || !r) throw new Y.YAMLSemanticError(e, "Insufficient parameters given for %TAG directive");
3315
+ if (t.some((s) => s.handle === n)) throw new Y.YAMLSemanticError(e, "The %TAG directive must only be given at most once per handle in the same document.");
3391
3316
  return {
3392
3317
  handle: n,
3393
3318
  prefix: r
@@ -3395,10 +3320,7 @@ ${o.commentBefore}` : i;
3395
3320
  }
3396
3321
  function Pa(t, e) {
3397
3322
  let [n] = e.parameters;
3398
- if (e.name === "YAML:1.0" && (n = "1.0"), !n) {
3399
- let r = "Insufficient parameters given for %YAML directive";
3400
- throw new Y.YAMLSemanticError(e, r);
3401
- }
3323
+ if (e.name === "YAML:1.0" && (n = "1.0"), !n) throw new Y.YAMLSemanticError(e, "Insufficient parameters given for %YAML directive");
3402
3324
  if (!_s[n]) {
3403
3325
  let s = `Document will be parsed as YAML ${t.version || t.options.version} rather than YAML ${n}`;
3404
3326
  t.warnings.push(new Y.YAMLWarning(e, s));
@@ -3420,10 +3342,7 @@ ${o.commentBefore}` : i;
3420
3342
  break;
3421
3343
  case "YAML":
3422
3344
  case "YAML:1.0":
3423
- if (t.version) {
3424
- let c = "The %YAML directive must only be given at most once per document.";
3425
- t.errors.push(new Y.YAMLSemanticError(i, c));
3426
- }
3345
+ if (t.version) t.errors.push(new Y.YAMLSemanticError(i, "The %YAML directive must only be given at most once per document."));
3427
3346
  try {
3428
3347
  t.version = Pa(t, i);
3429
3348
  } catch (c) {
@@ -3575,7 +3494,6 @@ ${o.commentBefore}` : i;
3575
3494
  Xt.scalarOptions = Aa;
3576
3495
  });
3577
3496
  var Ys = te((Ds) => {
3578
- "use strict";
3579
3497
  var er = ns(), Oe = Rs(), va = zn(), _a = oe(), Ra = Gn();
3580
3498
  qe();
3581
3499
  function xa(t, e = !0, n) {
@@ -3598,10 +3516,7 @@ var Ys = te((Ds) => {
3598
3516
  }
3599
3517
  function xs(t, e) {
3600
3518
  let n = er.parse(t), r = new je(e).parse(n[0]);
3601
- if (n.length > 1) {
3602
- let s = "Source contains multiple documents; please use YAML.parseAllDocuments()";
3603
- r.errors.unshift(new _a.YAMLSemanticError(n[1], s));
3604
- }
3519
+ if (n.length > 1) r.errors.unshift(new _a.YAMLSemanticError(n[1], "Source contains multiple documents; please use YAML.parseAllDocuments()"));
3605
3520
  return r;
3606
3521
  }
3607
3522
  function Ya(t, e) {
@@ -3613,7 +3528,7 @@ var Ys = te((Ds) => {
3613
3528
  let n = new je(e);
3614
3529
  return n.contents = t, String(n);
3615
3530
  }
3616
- var Ba = {
3531
+ Ds.YAML = {
3617
3532
  createNode: xa,
3618
3533
  defaultOptions: Oe.defaultOptions,
3619
3534
  Document: je,
@@ -3624,13 +3539,11 @@ var Ys = te((Ds) => {
3624
3539
  scalarOptions: Oe.scalarOptions,
3625
3540
  stringify: $a
3626
3541
  };
3627
- Ds.YAML = Ba;
3628
3542
  });
3629
3543
  var tr = te((nf, $s) => {
3630
3544
  $s.exports = Ys().YAML;
3631
3545
  });
3632
3546
  var Bs = te((G) => {
3633
- "use strict";
3634
3547
  var We = qe(), Qe = oe();
3635
3548
  G.findPair = We.findPair;
3636
3549
  G.parseMap = We.resolveMap;
@@ -3836,7 +3749,10 @@ function kt(t) {
3836
3749
  return o === -1 || o === i ? o : !1;
3837
3750
  };
3838
3751
  }
3839
- var Bc = kt(/\s/u), En = kt(" "), Fc = kt(",; "), qc = kt(/[^\n\r]/u);
3752
+ kt(/\s/u);
3753
+ var En = kt(" ");
3754
+ kt(",; ");
3755
+ kt(/[^\n\r]/u);
3840
3756
  function Zi(t, e, n) {
3841
3757
  let r = !!(n != null && n.backwards);
3842
3758
  if (e === !1) return !1;
@@ -3946,8 +3862,8 @@ var ro = Object.fromEntries(Object.entries({
3946
3862
  "middleComments",
3947
3863
  "trailingComment",
3948
3864
  "endComments"
3949
- ]])), Cr = ro;
3950
- var so = Mr(Cr), kr = so;
3865
+ ]]));
3866
+ var so = Mr(ro), kr = so;
3951
3867
  function xe(t) {
3952
3868
  return t.position.start.offset;
3953
3869
  }
@@ -4478,8 +4394,19 @@ var wo = {
4478
4394
  }, zr = wo;
4479
4395
  var hr = {};
4480
4396
  yr(hr, { yaml: () => nc });
4481
- var mr = cn(tr(), 1);
4482
- var H = cn(Bs(), 1), sf = H.default.findPair, of = H.default.toJSON, af = H.default.parseMap, cf = H.default.parseSeq, lf = H.default.stringifyNumber, ff = H.default.stringifyString, uf = H.default.Type, pf = H.default.YAMLError, mf = H.default.YAMLReferenceError, Fs = H.default.YAMLSemanticError, hf = H.default.YAMLSyntaxError, gf = H.default.YAMLWarning;
4397
+ var mr = cn(tr(), 1), H = cn(Bs(), 1);
4398
+ H.default.findPair;
4399
+ H.default.toJSON;
4400
+ H.default.parseMap;
4401
+ H.default.parseSeq;
4402
+ H.default.stringifyNumber;
4403
+ H.default.stringifyString;
4404
+ H.default.Type;
4405
+ H.default.YAMLError;
4406
+ H.default.YAMLReferenceError;
4407
+ var Fs = H.default.YAMLSemanticError;
4408
+ H.default.YAMLSyntaxError;
4409
+ H.default.YAMLWarning;
4483
4410
  function B(t, e = null) {
4484
4411
  "children" in t && t.children.forEach((n) => B(n, t)), "anchor" in t && t.anchor && B(t.anchor, t), "tag" in t && t.tag && B(t.tag, t), "leadingComments" in t && t.leadingComments.forEach((n) => B(n, t)), "middleComments" in t && t.middleComments.forEach((n) => B(n, t)), "indicatorComment" in t && t.indicatorComment && B(t.indicatorComment, t), "trailingComment" in t && t.trailingComment && B(t.trailingComment, t), "endComments" in t && t.endComments.forEach((n) => B(n, t)), Object.defineProperty(t, "_parent", {
4485
4412
  value: e,
@@ -5294,4 +5221,5 @@ var xi = cn(tr(), 1), sc = xi.default.parse;
5294
5221
  var Ih = gr;
5295
5222
 
5296
5223
  //#endregion
5297
- export { sc as __parsePrettierYamlConfig, Ih as default, Xr as languages, zr as options, hr as parsers, rc as printers };
5224
+ export { sc as __parsePrettierYamlConfig, Ih as default, Xr as languages, zr as options, hr as parsers, rc as printers };
5225
+ //# sourceMappingURL=yaml-B5kqwurc.js.map