nitro-nightly 3.0.1-20260120-020848-6786d069 → 3.0.1-20260120-133849-ca1a9dee

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 (93) hide show
  1. package/dist/_build/common.mjs +24931 -0
  2. package/dist/_build/rolldown.mjs +6 -11
  3. package/dist/_build/rollup.mjs +201 -0
  4. package/dist/_build/vite.build.mjs +1 -1
  5. package/dist/_chunks/dev.mjs +4 -6
  6. package/dist/_chunks/nitro.mjs +1183 -24
  7. package/dist/_chunks/nitro2.mjs +91 -248
  8. package/dist/_chunks/utils.mjs +254 -0
  9. package/dist/_common.mjs +45 -0
  10. package/dist/_libs/c12+giget+readdirp+chokidar.d.mts +214 -0
  11. package/dist/_libs/citty.mjs +140 -110
  12. package/dist/_libs/commondir+is-reference.mjs +1300 -0
  13. package/dist/_libs/compatx.d.mts +47 -0
  14. package/dist/_libs/confbox.mjs +2488 -70
  15. package/dist/_libs/esbuild.d.mts +20 -0
  16. package/dist/_libs/escape-string-regexp.mjs +8 -0
  17. package/dist/_libs/estree-walker.mjs +187 -0
  18. package/dist/_libs/hasown+resolve+deepmerge.mjs +1972 -0
  19. package/dist/_libs/httpxy.d.mts +79 -0
  20. package/dist/_libs/httpxy.mjs +6 -1
  21. package/dist/_libs/klona.mjs +38 -0
  22. package/dist/_libs/magic-string.d.mts +220 -0
  23. package/dist/_libs/mlly.d.mts +57 -0
  24. package/dist/_libs/nypm+giget+tinyexec.mjs +3603 -0
  25. package/dist/_libs/pkg-types.d.mts +23 -0
  26. package/dist/_libs/plugin-alias.mjs +64 -0
  27. package/dist/_libs/{plugin-alias+plugin-inject.mjs → plugin-inject.mjs} +2 -65
  28. package/dist/_libs/plugin-json.mjs +36 -0
  29. package/dist/_libs/pluginutils+plugin-commonjs.d.mts +241 -0
  30. package/dist/_libs/pluginutils.mjs +652 -0
  31. package/dist/_libs/{c12+dotenv+rc9.mjs → rc9+c12+dotenv.mjs} +105 -12
  32. package/dist/_libs/{chokidar+readdirp.mjs → readdirp+chokidar.mjs} +8 -1
  33. package/dist/_libs/remapping.mjs +117 -0
  34. package/dist/_libs/resolve-uri+gen-mapping.mjs +448 -0
  35. package/dist/_libs/rou3.d.mts +43 -0
  36. package/dist/_libs/rou3.mjs +322 -0
  37. package/dist/_libs/std-env.d.mts +4 -0
  38. package/dist/_libs/tsconfck.mjs +832 -0
  39. package/dist/_libs/ultrahtml.mjs +138 -0
  40. package/dist/_libs/{gen-mapping+remapping+resolve-uri+trace-mapping+unimport+unplugin+unplugin-utils+webpack-virtual-modules.mjs → unimport+unplugin.mjs} +228 -593
  41. package/dist/_libs/unplugin+unimport.d.mts +426 -0
  42. package/dist/_libs/unwasm.d.mts +29 -0
  43. package/dist/_presets.mjs +3 -8
  44. package/dist/builder.mjs +6 -8
  45. package/dist/cli/_chunks/build.mjs +1 -1
  46. package/dist/cli/_chunks/dev.mjs +2 -3
  47. package/dist/cli/_chunks/list.mjs +1 -1
  48. package/dist/cli/_chunks/prepare.mjs +1 -1
  49. package/dist/cli/_chunks/run.mjs +1 -1
  50. package/dist/cli/_chunks/task.mjs +16 -0
  51. package/dist/cli/index.mjs +1 -1
  52. package/dist/presets/aws-lambda/runtime/_utils.d.mts +0 -5
  53. package/dist/presets/netlify/runtime/netlify-edge.d.mts +0 -1
  54. package/dist/presets/winterjs/runtime/winterjs.d.mts +0 -1
  55. package/dist/runtime/internal/error/dev.d.mts +0 -1
  56. package/dist/runtime/internal/route-rules.d.mts +0 -4
  57. package/dist/runtime/internal/routes/openapi.d.mts +0 -1
  58. package/dist/runtime/internal/routes/scalar.d.mts +0 -1
  59. package/dist/runtime/internal/routes/swagger.d.mts +0 -1
  60. package/dist/runtime/internal/runtime-config.d.mts +0 -1
  61. package/dist/runtime/nitro.d.mts +0 -3
  62. package/dist/runtime/virtual/renderer-template.d.mts +0 -1
  63. package/dist/types/index.d.mts +25 -1394
  64. package/dist/vite.mjs +18 -641
  65. package/package.json +5 -5
  66. package/dist/_chunks/nitro3.mjs +0 -2696
  67. package/dist/_chunks/nitro4.mjs +0 -176
  68. package/dist/_chunks/nitro5.mjs +0 -733
  69. package/dist/_chunks/nitro6.mjs +0 -1458
  70. package/dist/_chunks/nitro7.mjs +0 -7561
  71. package/dist/_chunks/nitro8.mjs +0 -3524
  72. package/dist/_chunks/nitro9.mjs +0 -1729
  73. package/dist/_libs/_.mjs +0 -3
  74. package/dist/_libs/_2.mjs +0 -3
  75. package/dist/_libs/_3.mjs +0 -4
  76. package/dist/_libs/_4.mjs +0 -6
  77. package/dist/_libs/_5.mjs +0 -3
  78. package/dist/_libs/_6.mjs +0 -3
  79. package/dist/_libs/acorn+confbox+js-tokens+magic-string+mlly+pkg-types+sourcemap-codec+strip-literal+unimport.mjs +0 -8900
  80. package/dist/_libs/confbox+exsolve+pkg-types.mjs +0 -1249
  81. package/dist/_libs/confbox2.mjs +0 -786
  82. package/dist/_libs/confbox3.mjs +0 -404
  83. package/dist/_libs/confbox4.mjs +0 -3
  84. package/dist/_libs/estree-walker+unimport.mjs +0 -378
  85. package/dist/_libs/fdir+picomatch+tinyglobby.mjs +0 -2471
  86. package/dist/_libs/giget+node-fetch-native.mjs +0 -2692
  87. package/dist/_libs/local-pkg+quansync+unimport.mjs +0 -1526
  88. package/dist/_libs/nypm+tinyexec.mjs +0 -858
  89. package/dist/_libs/pathe.mjs +0 -164
  90. package/dist/_libs/perfect-debounce.mjs +0 -89
  91. package/dist/_libs/std-env.mjs +0 -158
  92. package/dist/_libs/unimport.mjs +0 -9
  93. package/dist/_libs/vite-plugin-fullstack.mjs +0 -26
@@ -1,1729 +0,0 @@
1
- import { n as N$1, t as C$2 } from "../_libs/confbox.mjs";
2
- import { t as defineCommand } from "../_libs/citty.mjs";
3
-
4
- //#region node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.mjs
5
- /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */ function oe(e) {
6
- return typeof e > "u" || e === null;
7
- }
8
- function Ge(e) {
9
- return typeof e == "object" && e !== null;
10
- }
11
- function We(e) {
12
- return Array.isArray(e) ? e : oe(e) ? [] : [e];
13
- }
14
- function $e(e, n) {
15
- var i, l, r, u;
16
- if (n) for (u = Object.keys(n), i = 0, l = u.length; i < l; i += 1) r = u[i], e[r] = n[r];
17
- return e;
18
- }
19
- function Qe(e, n) {
20
- var i = "", l;
21
- for (l = 0; l < n; l += 1) i += e;
22
- return i;
23
- }
24
- function Ve(e) {
25
- return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
26
- }
27
- var y$1 = {
28
- isNothing: oe,
29
- isObject: Ge,
30
- toArray: We,
31
- repeat: Qe,
32
- isNegativeZero: Ve,
33
- extend: $e
34
- };
35
- function ue(e, n) {
36
- var i = "", l = e.reason || "(unknown reason)";
37
- return e.mark ? (e.mark.name && (i += "in \"" + e.mark.name + "\" "), i += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !n && e.mark.snippet && (i += `
38
-
39
- ` + e.mark.snippet), l + " " + i) : l;
40
- }
41
- function M$1(e, n) {
42
- Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = ue(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = (/* @__PURE__ */ new Error()).stack || "";
43
- }
44
- M$1.prototype = Object.create(Error.prototype), M$1.prototype.constructor = M$1, M$1.prototype.toString = function(n) {
45
- return this.name + ": " + ue(this, n);
46
- };
47
- var w$1 = M$1;
48
- function $$1(e, n, i, l, r) {
49
- var u = "", o = "", f = Math.floor(r / 2) - 1;
50
- return l - n > f && (u = " ... ", n = l - f + u.length), i - l > f && (o = " ...", i = l + f - o.length), {
51
- str: u + e.slice(n, i).replace(/\t/g, "→") + o,
52
- pos: l - n + u.length
53
- };
54
- }
55
- function Q$1(e, n) {
56
- return y$1.repeat(" ", n - e.length) + e;
57
- }
58
- function rn(e, n) {
59
- if (n = Object.create(n || null), !e.buffer) return null;
60
- n.maxLength || (n.maxLength = 79), typeof n.indent != "number" && (n.indent = 1), typeof n.linesBefore != "number" && (n.linesBefore = 3), typeof n.linesAfter != "number" && (n.linesAfter = 2);
61
- for (var i = /\r?\n|\r|\0/g, l = [0], r = [], u, o = -1; u = i.exec(e.buffer);) r.push(u.index), l.push(u.index + u[0].length), e.position <= u.index && o < 0 && (o = l.length - 2);
62
- o < 0 && (o = l.length - 1);
63
- var f = "", c$1, a, t = Math.min(e.line + n.linesAfter, r.length).toString().length, p$1 = n.maxLength - (n.indent + t + 3);
64
- for (c$1 = 1; c$1 <= n.linesBefore && !(o - c$1 < 0); c$1++) a = $$1(e.buffer, l[o - c$1], r[o - c$1], e.position - (l[o] - l[o - c$1]), p$1), f = y$1.repeat(" ", n.indent) + Q$1((e.line - c$1 + 1).toString(), t) + " | " + a.str + `
65
- ` + f;
66
- for (a = $$1(e.buffer, l[o], r[o], e.position, p$1), f += y$1.repeat(" ", n.indent) + Q$1((e.line + 1).toString(), t) + " | " + a.str + `
67
- `, f += y$1.repeat("-", n.indent + t + 3 + a.pos) + `^
68
- `, c$1 = 1; c$1 <= n.linesAfter && !(o + c$1 >= r.length); c$1++) a = $$1(e.buffer, l[o + c$1], r[o + c$1], e.position - (l[o] - l[o + c$1]), p$1), f += y$1.repeat(" ", n.indent) + Q$1((e.line + c$1 + 1).toString(), t) + " | " + a.str + `
69
- `;
70
- return f.replace(/\n$/, "");
71
- }
72
- var ln = rn, on = [
73
- "kind",
74
- "multi",
75
- "resolve",
76
- "construct",
77
- "instanceOf",
78
- "predicate",
79
- "represent",
80
- "representName",
81
- "defaultStyle",
82
- "styleAliases"
83
- ], un = [
84
- "scalar",
85
- "sequence",
86
- "mapping"
87
- ];
88
- function fn(e) {
89
- var n = {};
90
- return e !== null && Object.keys(e).forEach(function(i) {
91
- e[i].forEach(function(l) {
92
- n[String(l)] = i;
93
- });
94
- }), n;
95
- }
96
- function cn(e, n) {
97
- if (n = n || {}, Object.keys(n).forEach(function(i) {
98
- if (on.indexOf(i) === -1) throw new w$1("Unknown option \"" + i + "\" is met in definition of \"" + e + "\" YAML type.");
99
- }), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
100
- return !0;
101
- }, this.construct = n.construct || function(i) {
102
- return i;
103
- }, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = fn(n.styleAliases || null), un.indexOf(this.kind) === -1) throw new w$1("Unknown kind \"" + this.kind + "\" is specified for \"" + e + "\" YAML type.");
104
- }
105
- var C$1 = cn;
106
- function fe(e, n) {
107
- var i = [];
108
- return e[n].forEach(function(l) {
109
- var r = i.length;
110
- i.forEach(function(u, o) {
111
- u.tag === l.tag && u.kind === l.kind && u.multi === l.multi && (r = o);
112
- }), i[r] = l;
113
- }), i;
114
- }
115
- function an() {
116
- var e = {
117
- scalar: {},
118
- sequence: {},
119
- mapping: {},
120
- fallback: {},
121
- multi: {
122
- scalar: [],
123
- sequence: [],
124
- mapping: [],
125
- fallback: []
126
- }
127
- }, n, i;
128
- function l(r) {
129
- r.multi ? (e.multi[r.kind].push(r), e.multi.fallback.push(r)) : e[r.kind][r.tag] = e.fallback[r.tag] = r;
130
- }
131
- for (n = 0, i = arguments.length; n < i; n += 1) arguments[n].forEach(l);
132
- return e;
133
- }
134
- function V$1(e) {
135
- return this.extend(e);
136
- }
137
- V$1.prototype.extend = function(n) {
138
- var i = [], l = [];
139
- if (n instanceof C$1) l.push(n);
140
- else if (Array.isArray(n)) l = l.concat(n);
141
- else if (n && (Array.isArray(n.implicit) || Array.isArray(n.explicit))) n.implicit && (i = i.concat(n.implicit)), n.explicit && (l = l.concat(n.explicit));
142
- else throw new w$1("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
143
- i.forEach(function(u) {
144
- if (!(u instanceof C$1)) throw new w$1("Specified list of YAML types (or a single Type object) contains a non-Type object.");
145
- if (u.loadKind && u.loadKind !== "scalar") throw new w$1("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
146
- if (u.multi) throw new w$1("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
147
- }), l.forEach(function(u) {
148
- if (!(u instanceof C$1)) throw new w$1("Specified list of YAML types (or a single Type object) contains a non-Type object.");
149
- });
150
- var r = Object.create(V$1.prototype);
151
- return r.implicit = (this.implicit || []).concat(i), r.explicit = (this.explicit || []).concat(l), r.compiledImplicit = fe(r, "implicit"), r.compiledExplicit = fe(r, "explicit"), r.compiledTypeMap = an(r.compiledImplicit, r.compiledExplicit), r;
152
- };
153
- var sn = new V$1({ explicit: [
154
- new C$1("tag:yaml.org,2002:str", {
155
- kind: "scalar",
156
- construct: function(e) {
157
- return e !== null ? e : "";
158
- }
159
- }),
160
- new C$1("tag:yaml.org,2002:seq", {
161
- kind: "sequence",
162
- construct: function(e) {
163
- return e !== null ? e : [];
164
- }
165
- }),
166
- new C$1("tag:yaml.org,2002:map", {
167
- kind: "mapping",
168
- construct: function(e) {
169
- return e !== null ? e : {};
170
- }
171
- })
172
- ] });
173
- function xn(e) {
174
- if (e === null) return !0;
175
- var n = e.length;
176
- return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
177
- }
178
- function mn() {
179
- return null;
180
- }
181
- function gn(e) {
182
- return e === null;
183
- }
184
- var An = new C$1("tag:yaml.org,2002:null", {
185
- kind: "scalar",
186
- resolve: xn,
187
- construct: mn,
188
- predicate: gn,
189
- represent: {
190
- canonical: function() {
191
- return "~";
192
- },
193
- lowercase: function() {
194
- return "null";
195
- },
196
- uppercase: function() {
197
- return "NULL";
198
- },
199
- camelcase: function() {
200
- return "Null";
201
- },
202
- empty: function() {
203
- return "";
204
- }
205
- },
206
- defaultStyle: "lowercase"
207
- });
208
- function vn(e) {
209
- if (e === null) return !1;
210
- var n = e.length;
211
- return n === 4 && (e === "true" || e === "True" || e === "TRUE") || n === 5 && (e === "false" || e === "False" || e === "FALSE");
212
- }
213
- function yn(e) {
214
- return e === "true" || e === "True" || e === "TRUE";
215
- }
216
- function Cn(e) {
217
- return Object.prototype.toString.call(e) === "[object Boolean]";
218
- }
219
- var _n = new C$1("tag:yaml.org,2002:bool", {
220
- kind: "scalar",
221
- resolve: vn,
222
- construct: yn,
223
- predicate: Cn,
224
- represent: {
225
- lowercase: function(e) {
226
- return e ? "true" : "false";
227
- },
228
- uppercase: function(e) {
229
- return e ? "TRUE" : "FALSE";
230
- },
231
- camelcase: function(e) {
232
- return e ? "True" : "False";
233
- }
234
- },
235
- defaultStyle: "lowercase"
236
- });
237
- function wn(e) {
238
- return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
239
- }
240
- function Fn(e) {
241
- return 48 <= e && e <= 55;
242
- }
243
- function bn(e) {
244
- return 48 <= e && e <= 57;
245
- }
246
- function Sn(e) {
247
- if (e === null) return !1;
248
- var n = e.length, i = 0, l = !1, r;
249
- if (!n) return !1;
250
- if (r = e[i], (r === "-" || r === "+") && (r = e[++i]), r === "0") {
251
- if (i + 1 === n) return !0;
252
- if (r = e[++i], r === "b") {
253
- for (i++; i < n; i++) if (r = e[i], r !== "_") {
254
- if (r !== "0" && r !== "1") return !1;
255
- l = !0;
256
- }
257
- return l && r !== "_";
258
- }
259
- if (r === "x") {
260
- for (i++; i < n; i++) if (r = e[i], r !== "_") {
261
- if (!wn(e.charCodeAt(i))) return !1;
262
- l = !0;
263
- }
264
- return l && r !== "_";
265
- }
266
- if (r === "o") {
267
- for (i++; i < n; i++) if (r = e[i], r !== "_") {
268
- if (!Fn(e.charCodeAt(i))) return !1;
269
- l = !0;
270
- }
271
- return l && r !== "_";
272
- }
273
- }
274
- if (r === "_") return !1;
275
- for (; i < n; i++) if (r = e[i], r !== "_") {
276
- if (!bn(e.charCodeAt(i))) return !1;
277
- l = !0;
278
- }
279
- return !(!l || r === "_");
280
- }
281
- function En(e) {
282
- var n = e, i = 1, l;
283
- if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")), l = n[0], (l === "-" || l === "+") && (l === "-" && (i = -1), n = n.slice(1), l = n[0]), n === "0") return 0;
284
- if (l === "0") {
285
- if (n[1] === "b") return i * parseInt(n.slice(2), 2);
286
- if (n[1] === "x") return i * parseInt(n.slice(2), 16);
287
- if (n[1] === "o") return i * parseInt(n.slice(2), 8);
288
- }
289
- return i * parseInt(n, 10);
290
- }
291
- function Tn(e) {
292
- return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !y$1.isNegativeZero(e);
293
- }
294
- var On = new C$1("tag:yaml.org,2002:int", {
295
- kind: "scalar",
296
- resolve: Sn,
297
- construct: En,
298
- predicate: Tn,
299
- represent: {
300
- binary: function(e) {
301
- return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
302
- },
303
- octal: function(e) {
304
- return e >= 0 ? "0o" + e.toString(8) : "-0o" + e.toString(8).slice(1);
305
- },
306
- decimal: function(e) {
307
- return e.toString(10);
308
- },
309
- hexadecimal: function(e) {
310
- return e >= 0 ? "0x" + e.toString(16).toUpperCase() : "-0x" + e.toString(16).toUpperCase().slice(1);
311
- }
312
- },
313
- defaultStyle: "decimal",
314
- styleAliases: {
315
- binary: [2, "bin"],
316
- octal: [8, "oct"],
317
- decimal: [10, "dec"],
318
- hexadecimal: [16, "hex"]
319
- }
320
- }), In = /* @__PURE__ */ new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
321
- function kn(e) {
322
- return !(e === null || !In.test(e) || e[e.length - 1] === "_");
323
- }
324
- function Ln(e) {
325
- var n, i;
326
- return n = e.replace(/_/g, "").toLowerCase(), i = n[0] === "-" ? -1 : 1, "+-".indexOf(n[0]) >= 0 && (n = n.slice(1)), n === ".inf" ? i === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : n === ".nan" ? NaN : i * parseFloat(n, 10);
327
- }
328
- var Nn = /^[-+]?[0-9]+e/;
329
- function Rn(e, n) {
330
- var i;
331
- if (isNaN(e)) switch (n) {
332
- case "lowercase": return ".nan";
333
- case "uppercase": return ".NAN";
334
- case "camelcase": return ".NaN";
335
- }
336
- else if (Number.POSITIVE_INFINITY === e) switch (n) {
337
- case "lowercase": return ".inf";
338
- case "uppercase": return ".INF";
339
- case "camelcase": return ".Inf";
340
- }
341
- else if (Number.NEGATIVE_INFINITY === e) switch (n) {
342
- case "lowercase": return "-.inf";
343
- case "uppercase": return "-.INF";
344
- case "camelcase": return "-.Inf";
345
- }
346
- else if (y$1.isNegativeZero(e)) return "-0.0";
347
- return i = e.toString(10), Nn.test(i) ? i.replace("e", ".e") : i;
348
- }
349
- function Dn(e) {
350
- return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || y$1.isNegativeZero(e));
351
- }
352
- var Mn = new C$1("tag:yaml.org,2002:float", {
353
- kind: "scalar",
354
- resolve: kn,
355
- construct: Ln,
356
- predicate: Dn,
357
- represent: Rn,
358
- defaultStyle: "lowercase"
359
- }), Bn = sn.extend({ implicit: [
360
- An,
361
- _n,
362
- On,
363
- Mn
364
- ] }), ce = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), ae = /* @__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]))?))?$");
365
- function Pn(e) {
366
- return e === null ? !1 : ce.exec(e) !== null || ae.exec(e) !== null;
367
- }
368
- function jn(e) {
369
- var n, i, l, r, u, o, f, c$1 = 0, a = null, t, p$1, d;
370
- if (n = ce.exec(e), n === null && (n = ae.exec(e)), n === null) throw new Error("Date resolve error");
371
- if (i = +n[1], l = +n[2] - 1, r = +n[3], !n[4]) return new Date(Date.UTC(i, l, r));
372
- if (u = +n[4], o = +n[5], f = +n[6], n[7]) {
373
- for (c$1 = n[7].slice(0, 3); c$1.length < 3;) c$1 += "0";
374
- c$1 = +c$1;
375
- }
376
- return n[9] && (t = +n[10], p$1 = +(n[11] || 0), a = (t * 60 + p$1) * 6e4, n[9] === "-" && (a = -a)), d = new Date(Date.UTC(i, l, r, u, o, f, c$1)), a && d.setTime(d.getTime() - a), d;
377
- }
378
- function Hn(e) {
379
- return e.toISOString();
380
- }
381
- var Un = new C$1("tag:yaml.org,2002:timestamp", {
382
- kind: "scalar",
383
- resolve: Pn,
384
- construct: jn,
385
- instanceOf: Date,
386
- represent: Hn
387
- });
388
- function Kn(e) {
389
- return e === "<<" || e === null;
390
- }
391
- var qn = new C$1("tag:yaml.org,2002:merge", {
392
- kind: "scalar",
393
- resolve: Kn
394
- }), X$1 = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
395
- \r`;
396
- function Gn(e) {
397
- if (e === null) return !1;
398
- var n, i, l = 0, r = e.length, u = X$1;
399
- for (i = 0; i < r; i++) if (n = u.indexOf(e.charAt(i)), !(n > 64)) {
400
- if (n < 0) return !1;
401
- l += 6;
402
- }
403
- return l % 8 === 0;
404
- }
405
- function Wn(e) {
406
- var n, i, l = e.replace(/[\r\n=]/g, ""), r = l.length, u = X$1, o = 0, f = [];
407
- for (n = 0; n < r; n++) n % 4 === 0 && n && (f.push(o >> 16 & 255), f.push(o >> 8 & 255), f.push(o & 255)), o = o << 6 | u.indexOf(l.charAt(n));
408
- return i = r % 4 * 6, i === 0 ? (f.push(o >> 16 & 255), f.push(o >> 8 & 255), f.push(o & 255)) : i === 18 ? (f.push(o >> 10 & 255), f.push(o >> 2 & 255)) : i === 12 && f.push(o >> 4 & 255), new Uint8Array(f);
409
- }
410
- function $n(e) {
411
- var n = "", i = 0, l, r, u = e.length, o = X$1;
412
- for (l = 0; l < u; l++) l % 3 === 0 && l && (n += o[i >> 18 & 63], n += o[i >> 12 & 63], n += o[i >> 6 & 63], n += o[i & 63]), i = (i << 8) + e[l];
413
- return r = u % 3, r === 0 ? (n += o[i >> 18 & 63], n += o[i >> 12 & 63], n += o[i >> 6 & 63], n += o[i & 63]) : r === 2 ? (n += o[i >> 10 & 63], n += o[i >> 4 & 63], n += o[i << 2 & 63], n += o[64]) : r === 1 && (n += o[i >> 2 & 63], n += o[i << 4 & 63], n += o[64], n += o[64]), n;
414
- }
415
- function Qn(e) {
416
- return Object.prototype.toString.call(e) === "[object Uint8Array]";
417
- }
418
- var Vn = new C$1("tag:yaml.org,2002:binary", {
419
- kind: "scalar",
420
- resolve: Gn,
421
- construct: Wn,
422
- predicate: Qn,
423
- represent: $n
424
- }), Xn = Object.prototype.hasOwnProperty, Zn = Object.prototype.toString;
425
- function zn(e) {
426
- if (e === null) return !0;
427
- var n = [], i, l, r, u, o, f = e;
428
- for (i = 0, l = f.length; i < l; i += 1) {
429
- if (r = f[i], o = !1, Zn.call(r) !== "[object Object]") return !1;
430
- for (u in r) if (Xn.call(r, u)) if (!o) o = !0;
431
- else return !1;
432
- if (!o) return !1;
433
- if (n.indexOf(u) === -1) n.push(u);
434
- else return !1;
435
- }
436
- return !0;
437
- }
438
- function Jn(e) {
439
- return e !== null ? e : [];
440
- }
441
- var ei = new C$1("tag:yaml.org,2002:omap", {
442
- kind: "sequence",
443
- resolve: zn,
444
- construct: Jn
445
- }), ni = Object.prototype.toString;
446
- function ii(e) {
447
- if (e === null) return !0;
448
- var n, i, l, r, u, o = e;
449
- for (u = new Array(o.length), n = 0, i = o.length; n < i; n += 1) {
450
- if (l = o[n], ni.call(l) !== "[object Object]" || (r = Object.keys(l), r.length !== 1)) return !1;
451
- u[n] = [r[0], l[r[0]]];
452
- }
453
- return !0;
454
- }
455
- function ri(e) {
456
- if (e === null) return [];
457
- var n, i, l, r, u, o = e;
458
- for (u = new Array(o.length), n = 0, i = o.length; n < i; n += 1) l = o[n], r = Object.keys(l), u[n] = [r[0], l[r[0]]];
459
- return u;
460
- }
461
- var li = new C$1("tag:yaml.org,2002:pairs", {
462
- kind: "sequence",
463
- resolve: ii,
464
- construct: ri
465
- }), oi = Object.prototype.hasOwnProperty;
466
- function ui(e) {
467
- if (e === null) return !0;
468
- var n, i = e;
469
- for (n in i) if (oi.call(i, n) && i[n] !== null) return !1;
470
- return !0;
471
- }
472
- function fi(e) {
473
- return e !== null ? e : {};
474
- }
475
- var ci = new C$1("tag:yaml.org,2002:set", {
476
- kind: "mapping",
477
- resolve: ui,
478
- construct: fi
479
- }), pe = Bn.extend({
480
- implicit: [Un, qn],
481
- explicit: [
482
- Vn,
483
- ei,
484
- li,
485
- ci
486
- ]
487
- }), T = Object.prototype.hasOwnProperty, H = 1, te = 2, he = 3, U$1 = 4, Z$1 = 1, ai = 2, de = 3, pi = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, ti = /[\x85\u2028\u2029]/, hi = /[,\[\]\{\}]/, se = /^(?:!|!!|![a-z\-]+!)$/i, xe = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
488
- function me(e) {
489
- return Object.prototype.toString.call(e);
490
- }
491
- function S$1(e) {
492
- return e === 10 || e === 13;
493
- }
494
- function I$1(e) {
495
- return e === 9 || e === 32;
496
- }
497
- function F$1(e) {
498
- return e === 9 || e === 32 || e === 10 || e === 13;
499
- }
500
- function k(e) {
501
- return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
502
- }
503
- function di(e) {
504
- var n;
505
- return 48 <= e && e <= 57 ? e - 48 : (n = e | 32, 97 <= n && n <= 102 ? n - 97 + 10 : -1);
506
- }
507
- function si(e) {
508
- return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
509
- }
510
- function xi(e) {
511
- return 48 <= e && e <= 57 ? e - 48 : -1;
512
- }
513
- function ge(e) {
514
- return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
515
- ` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? "\"" : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "…" : e === 95 ? "\xA0" : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
516
- }
517
- function mi(e) {
518
- return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
519
- }
520
- for (var Ae = new Array(256), ve = new Array(256), L = 0; L < 256; L++) Ae[L] = ge(L) ? 1 : 0, ve[L] = ge(L);
521
- function gi(e, n) {
522
- this.input = e, this.filename = n.filename || null, this.schema = n.schema || pe, this.onWarning = n.onWarning || null, this.legacy = n.legacy || !1, this.json = n.json || !1, this.listener = n.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
523
- }
524
- function ye(e, n) {
525
- var i = {
526
- name: e.filename,
527
- buffer: e.input.slice(0, -1),
528
- position: e.position,
529
- line: e.line,
530
- column: e.position - e.lineStart
531
- };
532
- return i.snippet = ln(i), new w$1(n, i);
533
- }
534
- function h(e, n) {
535
- throw ye(e, n);
536
- }
537
- function K$1(e, n) {
538
- e.onWarning && e.onWarning.call(null, ye(e, n));
539
- }
540
- var Ce = {
541
- YAML: function(n, i, l) {
542
- var r, u, o;
543
- n.version !== null && h(n, "duplication of %YAML directive"), l.length !== 1 && h(n, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(l[0]), r === null && h(n, "ill-formed argument of the YAML directive"), u = parseInt(r[1], 10), o = parseInt(r[2], 10), u !== 1 && h(n, "unacceptable YAML version of the document"), n.version = l[0], n.checkLineBreaks = o < 2, o !== 1 && o !== 2 && K$1(n, "unsupported YAML version of the document");
544
- },
545
- TAG: function(n, i, l) {
546
- var r, u;
547
- l.length !== 2 && h(n, "TAG directive accepts exactly two arguments"), r = l[0], u = l[1], se.test(r) || h(n, "ill-formed tag handle (first argument) of the TAG directive"), T.call(n.tagMap, r) && h(n, "there is a previously declared suffix for \"" + r + "\" tag handle"), xe.test(u) || h(n, "ill-formed tag prefix (second argument) of the TAG directive");
548
- try {
549
- u = decodeURIComponent(u);
550
- } catch {
551
- h(n, "tag prefix is malformed: " + u);
552
- }
553
- n.tagMap[r] = u;
554
- }
555
- };
556
- function O(e, n, i, l) {
557
- var r, u, o, f;
558
- if (n < i) {
559
- if (f = e.input.slice(n, i), l) for (r = 0, u = f.length; r < u; r += 1) o = f.charCodeAt(r), o === 9 || 32 <= o && o <= 1114111 || h(e, "expected valid JSON character");
560
- else pi.test(f) && h(e, "the stream contains non-printable characters");
561
- e.result += f;
562
- }
563
- }
564
- function _e(e, n, i, l) {
565
- var r, u, o, f;
566
- for (y$1.isObject(i) || h(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(i), o = 0, f = r.length; o < f; o += 1) u = r[o], T.call(n, u) || (n[u] = i[u], l[u] = !0);
567
- }
568
- function N(e, n, i, l, r, u, o, f, c$1) {
569
- var a, t;
570
- if (Array.isArray(r)) for (r = Array.prototype.slice.call(r), a = 0, t = r.length; a < t; a += 1) Array.isArray(r[a]) && h(e, "nested arrays are not supported inside keys"), typeof r == "object" && me(r[a]) === "[object Object]" && (r[a] = "[object Object]");
571
- if (typeof r == "object" && me(r) === "[object Object]" && (r = "[object Object]"), r = String(r), n === null && (n = {}), l === "tag:yaml.org,2002:merge") if (Array.isArray(u)) for (a = 0, t = u.length; a < t; a += 1) _e(e, n, u[a], i);
572
- else _e(e, n, u, i);
573
- else !e.json && !T.call(i, r) && T.call(n, r) && (e.line = o || e.line, e.lineStart = f || e.lineStart, e.position = c$1 || e.position, h(e, "duplicated mapping key")), r === "__proto__" ? Object.defineProperty(n, r, {
574
- configurable: !0,
575
- enumerable: !0,
576
- writable: !0,
577
- value: u
578
- }) : n[r] = u, delete i[r];
579
- return n;
580
- }
581
- function z$1(e) {
582
- var n = e.input.charCodeAt(e.position);
583
- n === 10 ? e.position++ : n === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : h(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
584
- }
585
- function v$1(e, n, i) {
586
- for (var l = 0, r = e.input.charCodeAt(e.position); r !== 0;) {
587
- for (; I$1(r);) r === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), r = e.input.charCodeAt(++e.position);
588
- if (n && r === 35) do
589
- r = e.input.charCodeAt(++e.position);
590
- while (r !== 10 && r !== 13 && r !== 0);
591
- if (S$1(r)) for (z$1(e), r = e.input.charCodeAt(e.position), l++, e.lineIndent = 0; r === 32;) e.lineIndent++, r = e.input.charCodeAt(++e.position);
592
- else break;
593
- }
594
- return i !== -1 && l !== 0 && e.lineIndent < i && K$1(e, "deficient indentation"), l;
595
- }
596
- function q(e) {
597
- var n = e.position, i;
598
- return i = e.input.charCodeAt(n), !!((i === 45 || i === 46) && i === e.input.charCodeAt(n + 1) && i === e.input.charCodeAt(n + 2) && (n += 3, i = e.input.charCodeAt(n), i === 0 || F$1(i)));
599
- }
600
- function J(e, n) {
601
- n === 1 ? e.result += " " : n > 1 && (e.result += y$1.repeat(`
602
- `, n - 1));
603
- }
604
- function Ai(e, n, i) {
605
- var l, r, u, o, f, c$1, a, t, p$1 = e.kind, d = e.result, s$1;
606
- if (s$1 = e.input.charCodeAt(e.position), F$1(s$1) || k(s$1) || s$1 === 35 || s$1 === 38 || s$1 === 42 || s$1 === 33 || s$1 === 124 || s$1 === 62 || s$1 === 39 || s$1 === 34 || s$1 === 37 || s$1 === 64 || s$1 === 96 || (s$1 === 63 || s$1 === 45) && (r = e.input.charCodeAt(e.position + 1), F$1(r) || i && k(r))) return !1;
607
- for (e.kind = "scalar", e.result = "", u = o = e.position, f = !1; s$1 !== 0;) {
608
- if (s$1 === 58) {
609
- if (r = e.input.charCodeAt(e.position + 1), F$1(r) || i && k(r)) break;
610
- } else if (s$1 === 35) {
611
- if (l = e.input.charCodeAt(e.position - 1), F$1(l)) break;
612
- } else {
613
- if (e.position === e.lineStart && q(e) || i && k(s$1)) break;
614
- if (S$1(s$1)) if (c$1 = e.line, a = e.lineStart, t = e.lineIndent, v$1(e, !1, -1), e.lineIndent >= n) {
615
- f = !0, s$1 = e.input.charCodeAt(e.position);
616
- continue;
617
- } else {
618
- e.position = o, e.line = c$1, e.lineStart = a, e.lineIndent = t;
619
- break;
620
- }
621
- }
622
- f && (O(e, u, o, !1), J(e, e.line - c$1), u = o = e.position, f = !1), I$1(s$1) || (o = e.position + 1), s$1 = e.input.charCodeAt(++e.position);
623
- }
624
- return O(e, u, o, !1), e.result ? !0 : (e.kind = p$1, e.result = d, !1);
625
- }
626
- function vi(e, n) {
627
- var i, l, r;
628
- if (i = e.input.charCodeAt(e.position), i !== 39) return !1;
629
- for (e.kind = "scalar", e.result = "", e.position++, l = r = e.position; (i = e.input.charCodeAt(e.position)) !== 0;) if (i === 39) if (O(e, l, e.position, !0), i = e.input.charCodeAt(++e.position), i === 39) l = e.position, e.position++, r = e.position;
630
- else return !0;
631
- else S$1(i) ? (O(e, l, r, !0), J(e, v$1(e, !1, n)), l = r = e.position) : e.position === e.lineStart && q(e) ? h(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
632
- h(e, "unexpected end of the stream within a single quoted scalar");
633
- }
634
- function yi(e, n) {
635
- var i, l, r, u, o, f;
636
- if (f = e.input.charCodeAt(e.position), f !== 34) return !1;
637
- for (e.kind = "scalar", e.result = "", e.position++, i = l = e.position; (f = e.input.charCodeAt(e.position)) !== 0;) {
638
- if (f === 34) return O(e, i, e.position, !0), e.position++, !0;
639
- if (f === 92) {
640
- if (O(e, i, e.position, !0), f = e.input.charCodeAt(++e.position), S$1(f)) v$1(e, !1, n);
641
- else if (f < 256 && Ae[f]) e.result += ve[f], e.position++;
642
- else if ((o = si(f)) > 0) {
643
- for (r = o, u = 0; r > 0; r--) f = e.input.charCodeAt(++e.position), (o = di(f)) >= 0 ? u = (u << 4) + o : h(e, "expected hexadecimal character");
644
- e.result += mi(u), e.position++;
645
- } else h(e, "unknown escape sequence");
646
- i = l = e.position;
647
- } else S$1(f) ? (O(e, i, l, !0), J(e, v$1(e, !1, n)), i = l = e.position) : e.position === e.lineStart && q(e) ? h(e, "unexpected end of the document within a double quoted scalar") : (e.position++, l = e.position);
648
- }
649
- h(e, "unexpected end of the stream within a double quoted scalar");
650
- }
651
- function Ci(e, n) {
652
- var i = !0, l, r, u, o = e.tag, f, c$1 = e.anchor, a, t, p$1, d, s$1, x$1 = Object.create(null), g$1, A$1, b$1, m;
653
- if (m = e.input.charCodeAt(e.position), m === 91) t = 93, s$1 = !1, f = [];
654
- else if (m === 123) t = 125, s$1 = !0, f = {};
655
- else return !1;
656
- for (e.anchor !== null && (e.anchorMap[e.anchor] = f), m = e.input.charCodeAt(++e.position); m !== 0;) {
657
- if (v$1(e, !0, n), m = e.input.charCodeAt(e.position), m === t) return e.position++, e.tag = o, e.anchor = c$1, e.kind = s$1 ? "mapping" : "sequence", e.result = f, !0;
658
- i ? m === 44 && h(e, "expected the node content, but found ','") : h(e, "missed comma between flow collection entries"), A$1 = g$1 = b$1 = null, p$1 = d = !1, m === 63 && (a = e.input.charCodeAt(e.position + 1), F$1(a) && (p$1 = d = !0, e.position++, v$1(e, !0, n))), l = e.line, r = e.lineStart, u = e.position, R$1(e, n, H, !1, !0), A$1 = e.tag, g$1 = e.result, v$1(e, !0, n), m = e.input.charCodeAt(e.position), (d || e.line === l) && m === 58 && (p$1 = !0, m = e.input.charCodeAt(++e.position), v$1(e, !0, n), R$1(e, n, H, !1, !0), b$1 = e.result), s$1 ? N(e, f, x$1, A$1, g$1, b$1, l, r, u) : p$1 ? f.push(N(e, null, x$1, A$1, g$1, b$1, l, r, u)) : f.push(g$1), v$1(e, !0, n), m = e.input.charCodeAt(e.position), m === 44 ? (i = !0, m = e.input.charCodeAt(++e.position)) : i = !1;
659
- }
660
- h(e, "unexpected end of the stream within a flow collection");
661
- }
662
- function _i(e, n) {
663
- var i, l, r = Z$1, u = !1, o = !1, f = n, c$1 = 0, a = !1, t, p$1;
664
- if (p$1 = e.input.charCodeAt(e.position), p$1 === 124) l = !1;
665
- else if (p$1 === 62) l = !0;
666
- else return !1;
667
- for (e.kind = "scalar", e.result = ""; p$1 !== 0;) if (p$1 = e.input.charCodeAt(++e.position), p$1 === 43 || p$1 === 45) Z$1 === r ? r = p$1 === 43 ? de : ai : h(e, "repeat of a chomping mode identifier");
668
- else if ((t = xi(p$1)) >= 0) t === 0 ? h(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? h(e, "repeat of an indentation width identifier") : (f = n + t - 1, o = !0);
669
- else break;
670
- if (I$1(p$1)) {
671
- do
672
- p$1 = e.input.charCodeAt(++e.position);
673
- while (I$1(p$1));
674
- if (p$1 === 35) do
675
- p$1 = e.input.charCodeAt(++e.position);
676
- while (!S$1(p$1) && p$1 !== 0);
677
- }
678
- for (; p$1 !== 0;) {
679
- for (z$1(e), e.lineIndent = 0, p$1 = e.input.charCodeAt(e.position); (!o || e.lineIndent < f) && p$1 === 32;) e.lineIndent++, p$1 = e.input.charCodeAt(++e.position);
680
- if (!o && e.lineIndent > f && (f = e.lineIndent), S$1(p$1)) {
681
- c$1++;
682
- continue;
683
- }
684
- if (e.lineIndent < f) {
685
- r === de ? e.result += y$1.repeat(`
686
- `, u ? 1 + c$1 : c$1) : r === Z$1 && u && (e.result += `
687
- `);
688
- break;
689
- }
690
- for (l ? I$1(p$1) ? (a = !0, e.result += y$1.repeat(`
691
- `, u ? 1 + c$1 : c$1)) : a ? (a = !1, e.result += y$1.repeat(`
692
- `, c$1 + 1)) : c$1 === 0 ? u && (e.result += " ") : e.result += y$1.repeat(`
693
- `, c$1) : e.result += y$1.repeat(`
694
- `, u ? 1 + c$1 : c$1), u = !0, o = !0, c$1 = 0, i = e.position; !S$1(p$1) && p$1 !== 0;) p$1 = e.input.charCodeAt(++e.position);
695
- O(e, i, e.position, !1);
696
- }
697
- return !0;
698
- }
699
- function we(e, n) {
700
- var i, l = e.tag, r = e.anchor, u = [], o, f = !1, c$1;
701
- if (e.firstTabInLine !== -1) return !1;
702
- for (e.anchor !== null && (e.anchorMap[e.anchor] = u), c$1 = e.input.charCodeAt(e.position); c$1 !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, h(e, "tab characters must not be used in indentation")), !(c$1 !== 45 || (o = e.input.charCodeAt(e.position + 1), !F$1(o))));) {
703
- if (f = !0, e.position++, v$1(e, !0, -1) && e.lineIndent <= n) {
704
- u.push(null), c$1 = e.input.charCodeAt(e.position);
705
- continue;
706
- }
707
- if (i = e.line, R$1(e, n, he, !1, !0), u.push(e.result), v$1(e, !0, -1), c$1 = e.input.charCodeAt(e.position), (e.line === i || e.lineIndent > n) && c$1 !== 0) h(e, "bad indentation of a sequence entry");
708
- else if (e.lineIndent < n) break;
709
- }
710
- return f ? (e.tag = l, e.anchor = r, e.kind = "sequence", e.result = u, !0) : !1;
711
- }
712
- function wi(e, n, i) {
713
- var l, r, u, o, f, c$1, a = e.tag, t = e.anchor, p$1 = {}, d = Object.create(null), s$1 = null, x$1 = null, g$1 = null, A$1 = !1, b$1 = !1, m;
714
- if (e.firstTabInLine !== -1) return !1;
715
- for (e.anchor !== null && (e.anchorMap[e.anchor] = p$1), m = e.input.charCodeAt(e.position); m !== 0;) {
716
- if (!A$1 && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, h(e, "tab characters must not be used in indentation")), l = e.input.charCodeAt(e.position + 1), u = e.line, (m === 63 || m === 58) && F$1(l)) m === 63 ? (A$1 && (N(e, p$1, d, s$1, x$1, null, o, f, c$1), s$1 = x$1 = g$1 = null), b$1 = !0, A$1 = !0, r = !0) : A$1 ? (A$1 = !1, r = !0) : h(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, m = l;
717
- else {
718
- if (o = e.line, f = e.lineStart, c$1 = e.position, !R$1(e, i, te, !1, !0)) break;
719
- if (e.line === u) {
720
- for (m = e.input.charCodeAt(e.position); I$1(m);) m = e.input.charCodeAt(++e.position);
721
- if (m === 58) m = e.input.charCodeAt(++e.position), F$1(m) || h(e, "a whitespace character is expected after the key-value separator within a block mapping"), A$1 && (N(e, p$1, d, s$1, x$1, null, o, f, c$1), s$1 = x$1 = g$1 = null), b$1 = !0, A$1 = !1, r = !1, s$1 = e.tag, x$1 = e.result;
722
- else if (b$1) h(e, "can not read an implicit mapping pair; a colon is missed");
723
- else return e.tag = a, e.anchor = t, !0;
724
- } else if (b$1) h(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
725
- else return e.tag = a, e.anchor = t, !0;
726
- }
727
- if ((e.line === u || e.lineIndent > n) && (A$1 && (o = e.line, f = e.lineStart, c$1 = e.position), R$1(e, n, U$1, !0, r) && (A$1 ? x$1 = e.result : g$1 = e.result), A$1 || (N(e, p$1, d, s$1, x$1, g$1, o, f, c$1), s$1 = x$1 = g$1 = null), v$1(e, !0, -1), m = e.input.charCodeAt(e.position)), (e.line === u || e.lineIndent > n) && m !== 0) h(e, "bad indentation of a mapping entry");
728
- else if (e.lineIndent < n) break;
729
- }
730
- return A$1 && N(e, p$1, d, s$1, x$1, null, o, f, c$1), b$1 && (e.tag = a, e.anchor = t, e.kind = "mapping", e.result = p$1), b$1;
731
- }
732
- function Fi(e) {
733
- var n, i = !1, l = !1, r, u, o;
734
- if (o = e.input.charCodeAt(e.position), o !== 33) return !1;
735
- if (e.tag !== null && h(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (i = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (l = !0, r = "!!", o = e.input.charCodeAt(++e.position)) : r = "!", n = e.position, i) {
736
- do
737
- o = e.input.charCodeAt(++e.position);
738
- while (o !== 0 && o !== 62);
739
- e.position < e.length ? (u = e.input.slice(n, e.position), o = e.input.charCodeAt(++e.position)) : h(e, "unexpected end of the stream within a verbatim tag");
740
- } else {
741
- for (; o !== 0 && !F$1(o);) o === 33 && (l ? h(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(n - 1, e.position + 1), se.test(r) || h(e, "named tag handle cannot contain such characters"), l = !0, n = e.position + 1)), o = e.input.charCodeAt(++e.position);
742
- u = e.input.slice(n, e.position), hi.test(u) && h(e, "tag suffix cannot contain flow indicator characters");
743
- }
744
- u && !xe.test(u) && h(e, "tag name cannot contain such characters: " + u);
745
- try {
746
- u = decodeURIComponent(u);
747
- } catch {
748
- h(e, "tag name is malformed: " + u);
749
- }
750
- return i ? e.tag = u : T.call(e.tagMap, r) ? e.tag = e.tagMap[r] + u : r === "!" ? e.tag = "!" + u : r === "!!" ? e.tag = "tag:yaml.org,2002:" + u : h(e, "undeclared tag handle \"" + r + "\""), !0;
751
- }
752
- function bi(e) {
753
- var n, i;
754
- if (i = e.input.charCodeAt(e.position), i !== 38) return !1;
755
- for (e.anchor !== null && h(e, "duplication of an anchor property"), i = e.input.charCodeAt(++e.position), n = e.position; i !== 0 && !F$1(i) && !k(i);) i = e.input.charCodeAt(++e.position);
756
- return e.position === n && h(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
757
- }
758
- function Si(e) {
759
- var n, i, l;
760
- if (l = e.input.charCodeAt(e.position), l !== 42) return !1;
761
- for (l = e.input.charCodeAt(++e.position), n = e.position; l !== 0 && !F$1(l) && !k(l);) l = e.input.charCodeAt(++e.position);
762
- return e.position === n && h(e, "name of an alias node must contain at least one character"), i = e.input.slice(n, e.position), T.call(e.anchorMap, i) || h(e, "unidentified alias \"" + i + "\""), e.result = e.anchorMap[i], v$1(e, !0, -1), !0;
763
- }
764
- function R$1(e, n, i, l, r) {
765
- var u, o, f, c$1 = 1, a = !1, t = !1, p$1, d, s$1, x$1, g$1, A$1;
766
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, u = o = f = U$1 === i || he === i, l && v$1(e, !0, -1) && (a = !0, e.lineIndent > n ? c$1 = 1 : e.lineIndent === n ? c$1 = 0 : e.lineIndent < n && (c$1 = -1)), c$1 === 1) for (; Fi(e) || bi(e);) v$1(e, !0, -1) ? (a = !0, f = u, e.lineIndent > n ? c$1 = 1 : e.lineIndent === n ? c$1 = 0 : e.lineIndent < n && (c$1 = -1)) : f = !1;
767
- if (f && (f = a || r), (c$1 === 1 || U$1 === i) && (H === i || te === i ? g$1 = n : g$1 = n + 1, A$1 = e.position - e.lineStart, c$1 === 1 ? f && (we(e, A$1) || wi(e, A$1, g$1)) || Ci(e, g$1) ? t = !0 : (o && _i(e, g$1) || vi(e, g$1) || yi(e, g$1) ? t = !0 : Si(e) ? (t = !0, (e.tag !== null || e.anchor !== null) && h(e, "alias node should not have any properties")) : Ai(e, g$1, H === i) && (t = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c$1 === 0 && (t = f && we(e, A$1))), e.tag === null) e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
768
- else if (e.tag === "?") {
769
- for (e.result !== null && e.kind !== "scalar" && h(e, "unacceptable node kind for !<?> tag; it should be \"scalar\", not \"" + e.kind + "\""), p$1 = 0, d = e.implicitTypes.length; p$1 < d; p$1 += 1) if (x$1 = e.implicitTypes[p$1], x$1.resolve(e.result)) {
770
- e.result = x$1.construct(e.result), e.tag = x$1.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
771
- break;
772
- }
773
- } else if (e.tag !== "!") {
774
- if (T.call(e.typeMap[e.kind || "fallback"], e.tag)) x$1 = e.typeMap[e.kind || "fallback"][e.tag];
775
- else for (x$1 = null, s$1 = e.typeMap.multi[e.kind || "fallback"], p$1 = 0, d = s$1.length; p$1 < d; p$1 += 1) if (e.tag.slice(0, s$1[p$1].tag.length) === s$1[p$1].tag) {
776
- x$1 = s$1[p$1];
777
- break;
778
- }
779
- x$1 || h(e, "unknown tag !<" + e.tag + ">"), e.result !== null && x$1.kind !== e.kind && h(e, "unacceptable node kind for !<" + e.tag + "> tag; it should be \"" + x$1.kind + "\", not \"" + e.kind + "\""), x$1.resolve(e.result, e.tag) ? (e.result = x$1.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : h(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
780
- }
781
- return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || t;
782
- }
783
- function Ei(e) {
784
- var n = e.position, i, l, r, u = !1, o;
785
- for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = Object.create(null), e.anchorMap = Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (v$1(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37));) {
786
- for (u = !0, o = e.input.charCodeAt(++e.position), i = e.position; o !== 0 && !F$1(o);) o = e.input.charCodeAt(++e.position);
787
- for (l = e.input.slice(i, e.position), r = [], l.length < 1 && h(e, "directive name must not be less than one character in length"); o !== 0;) {
788
- for (; I$1(o);) o = e.input.charCodeAt(++e.position);
789
- if (o === 35) {
790
- do
791
- o = e.input.charCodeAt(++e.position);
792
- while (o !== 0 && !S$1(o));
793
- break;
794
- }
795
- if (S$1(o)) break;
796
- for (i = e.position; o !== 0 && !F$1(o);) o = e.input.charCodeAt(++e.position);
797
- r.push(e.input.slice(i, e.position));
798
- }
799
- o !== 0 && z$1(e), T.call(Ce, l) ? Ce[l](e, l, r) : K$1(e, "unknown document directive \"" + l + "\"");
800
- }
801
- if (v$1(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, v$1(e, !0, -1)) : u && h(e, "directives end mark is expected"), R$1(e, e.lineIndent - 1, U$1, !1, !0), v$1(e, !0, -1), e.checkLineBreaks && ti.test(e.input.slice(n, e.position)) && K$1(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && q(e)) {
802
- e.input.charCodeAt(e.position) === 46 && (e.position += 3, v$1(e, !0, -1));
803
- return;
804
- }
805
- if (e.position < e.length - 1) h(e, "end of the stream or a document separator is expected");
806
- else return;
807
- }
808
- function Ti(e, n) {
809
- e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
810
- `), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
811
- var i = new gi(e, n), l = e.indexOf("\0");
812
- for (l !== -1 && (i.position = l, h(i, "null byte is not allowed in input")), i.input += "\0"; i.input.charCodeAt(i.position) === 32;) i.lineIndent += 1, i.position += 1;
813
- for (; i.position < i.length - 1;) Ei(i);
814
- return i.documents;
815
- }
816
- function Oi(e, n) {
817
- var i = Ti(e, n);
818
- if (i.length !== 0) {
819
- if (i.length === 1) return i[0];
820
- throw new w$1("expected a single document in the stream, but found more");
821
- }
822
- }
823
- var ki = { load: Oi }, Fe = Object.prototype.toString, be = Object.prototype.hasOwnProperty, ee = 65279, Li = 9, Y = 10, Ni = 13, Ri = 32, Di = 33, Mi = 34, ne = 35, Yi = 37, Bi = 38, Pi = 39, ji = 42, Se = 44, Hi = 45, G$1 = 58, Ui = 61, Ki = 62, qi = 63, Gi = 64, Ee = 91, Te = 93, Wi = 96, Oe = 123, $i = 124, Ie = 125, _ = {};
824
- _[0] = "\\0", _[7] = "\\a", _[8] = "\\b", _[9] = "\\t", _[10] = "\\n", _[11] = "\\v", _[12] = "\\f", _[13] = "\\r", _[27] = "\\e", _[34] = "\\\"", _[92] = "\\\\", _[133] = "\\N", _[160] = "\\_", _[8232] = "\\L", _[8233] = "\\P";
825
- var Qi = [
826
- "y",
827
- "Y",
828
- "yes",
829
- "Yes",
830
- "YES",
831
- "on",
832
- "On",
833
- "ON",
834
- "n",
835
- "N",
836
- "no",
837
- "No",
838
- "NO",
839
- "off",
840
- "Off",
841
- "OFF"
842
- ], Vi = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
843
- function Xi(e, n) {
844
- var i, l, r, u, o, f, c$1;
845
- if (n === null) return {};
846
- for (i = {}, l = Object.keys(n), r = 0, u = l.length; r < u; r += 1) o = l[r], f = String(n[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), c$1 = e.compiledTypeMap.fallback[o], c$1 && be.call(c$1.styleAliases, f) && (f = c$1.styleAliases[f]), i[o] = f;
847
- return i;
848
- }
849
- function Zi(e) {
850
- var n, i, l;
851
- if (n = e.toString(16).toUpperCase(), e <= 255) i = "x", l = 2;
852
- else if (e <= 65535) i = "u", l = 4;
853
- else if (e <= 4294967295) i = "U", l = 8;
854
- else throw new w$1("code point within a string may not be greater than 0xFFFFFFFF");
855
- return "\\" + i + y$1.repeat("0", l - n.length) + n;
856
- }
857
- var zi = 1, B = 2;
858
- function Ji(e) {
859
- this.schema = e.schema || pe, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = y$1.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Xi(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === "\"" ? B : zi, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
860
- }
861
- function ke(e, n) {
862
- for (var i = y$1.repeat(" ", n), l = 0, r = -1, u = "", o, f = e.length; l < f;) r = e.indexOf(`
863
- `, l), r === -1 ? (o = e.slice(l), l = f) : (o = e.slice(l, r + 1), l = r + 1), o.length && o !== `
864
- ` && (u += i), u += o;
865
- return u;
866
- }
867
- function ie(e, n) {
868
- return `
869
- ` + y$1.repeat(" ", e.indent * n);
870
- }
871
- function er(e, n) {
872
- var i, l, r;
873
- for (i = 0, l = e.implicitTypes.length; i < l; i += 1) if (r = e.implicitTypes[i], r.resolve(n)) return !0;
874
- return !1;
875
- }
876
- function W(e) {
877
- return e === Ri || e === Li;
878
- }
879
- function P(e) {
880
- return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== ee || 65536 <= e && e <= 1114111;
881
- }
882
- function Le(e) {
883
- return P(e) && e !== ee && e !== Ni && e !== Y;
884
- }
885
- function Ne(e, n, i) {
886
- var l = Le(e), r = l && !W(e);
887
- return (i ? l : l && e !== Se && e !== Ee && e !== Te && e !== Oe && e !== Ie) && e !== ne && !(n === G$1 && !r) || Le(n) && !W(n) && e === ne || n === G$1 && r;
888
- }
889
- function nr(e) {
890
- return P(e) && e !== ee && !W(e) && e !== Hi && e !== qi && e !== G$1 && e !== Se && e !== Ee && e !== Te && e !== Oe && e !== Ie && e !== ne && e !== Bi && e !== ji && e !== Di && e !== $i && e !== Ui && e !== Ki && e !== Pi && e !== Mi && e !== Yi && e !== Gi && e !== Wi;
891
- }
892
- function ir(e) {
893
- return !W(e) && e !== G$1;
894
- }
895
- function j$1(e, n) {
896
- var i = e.charCodeAt(n), l;
897
- return i >= 55296 && i <= 56319 && n + 1 < e.length && (l = e.charCodeAt(n + 1), l >= 56320 && l <= 57343) ? (i - 55296) * 1024 + l - 56320 + 65536 : i;
898
- }
899
- function Re(e) {
900
- return /^\n* /.test(e);
901
- }
902
- var De = 1, re = 2, Me = 3, Ye = 4, D = 5;
903
- function rr(e, n, i, l, r, u, o, f) {
904
- var c$1, a = 0, t = null, p$1 = !1, d = !1, s$1 = l !== -1, x$1 = -1, g$1 = nr(j$1(e, 0)) && ir(j$1(e, e.length - 1));
905
- if (n || o) for (c$1 = 0; c$1 < e.length; a >= 65536 ? c$1 += 2 : c$1++) {
906
- if (a = j$1(e, c$1), !P(a)) return D;
907
- g$1 = g$1 && Ne(a, t, f), t = a;
908
- }
909
- else {
910
- for (c$1 = 0; c$1 < e.length; a >= 65536 ? c$1 += 2 : c$1++) {
911
- if (a = j$1(e, c$1), a === Y) p$1 = !0, s$1 && (d = d || c$1 - x$1 - 1 > l && e[x$1 + 1] !== " ", x$1 = c$1);
912
- else if (!P(a)) return D;
913
- g$1 = g$1 && Ne(a, t, f), t = a;
914
- }
915
- d = d || s$1 && c$1 - x$1 - 1 > l && e[x$1 + 1] !== " ";
916
- }
917
- return !p$1 && !d ? g$1 && !o && !r(e) ? De : u === B ? D : re : i > 9 && Re(e) ? D : o ? u === B ? D : re : d ? Ye : Me;
918
- }
919
- function lr(e, n, i, l, r) {
920
- e.dump = function() {
921
- if (n.length === 0) return e.quotingType === B ? "\"\"" : "''";
922
- if (!e.noCompatMode && (Qi.indexOf(n) !== -1 || Vi.test(n))) return e.quotingType === B ? "\"" + n + "\"" : "'" + n + "'";
923
- var u = e.indent * Math.max(1, i), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - u), f = l || e.flowLevel > -1 && i >= e.flowLevel;
924
- function c$1(a) {
925
- return er(e, a);
926
- }
927
- switch (rr(n, f, e.indent, o, c$1, e.quotingType, e.forceQuotes && !l, r)) {
928
- case De: return n;
929
- case re: return "'" + n.replace(/'/g, "''") + "'";
930
- case Me: return "|" + Be(n, e.indent) + Pe(ke(n, u));
931
- case Ye: return ">" + Be(n, e.indent) + Pe(ke(or(n, o), u));
932
- case D: return "\"" + ur(n) + "\"";
933
- default: throw new w$1("impossible error: invalid scalar style");
934
- }
935
- }();
936
- }
937
- function Be(e, n) {
938
- var i = Re(e) ? String(n) : "", l = e[e.length - 1] === `
939
- `;
940
- return i + (l && (e[e.length - 2] === `
941
- ` || e === `
942
- `) ? "+" : l ? "" : "-") + `
943
- `;
944
- }
945
- function Pe(e) {
946
- return e[e.length - 1] === `
947
- ` ? e.slice(0, -1) : e;
948
- }
949
- function or(e, n) {
950
- for (var i = /(\n+)([^\n]*)/g, l = function() {
951
- var a = e.indexOf(`
952
- `);
953
- return a = a !== -1 ? a : e.length, i.lastIndex = a, je(e.slice(0, a), n);
954
- }(), r = e[0] === `
955
- ` || e[0] === " ", u, o; o = i.exec(e);) {
956
- var f = o[1], c$1 = o[2];
957
- u = c$1[0] === " ", l += f + (!r && !u && c$1 !== "" ? `
958
- ` : "") + je(c$1, n), r = u;
959
- }
960
- return l;
961
- }
962
- function je(e, n) {
963
- if (e === "" || e[0] === " ") return e;
964
- for (var i = / [^ ]/g, l, r = 0, u, o = 0, f = 0, c$1 = ""; l = i.exec(e);) f = l.index, f - r > n && (u = o > r ? o : f, c$1 += `
965
- ` + e.slice(r, u), r = u + 1), o = f;
966
- return c$1 += `
967
- `, e.length - r > n && o > r ? c$1 += e.slice(r, o) + `
968
- ` + e.slice(o + 1) : c$1 += e.slice(r), c$1.slice(1);
969
- }
970
- function ur(e) {
971
- for (var n = "", i = 0, l, r = 0; r < e.length; i >= 65536 ? r += 2 : r++) i = j$1(e, r), l = _[i], !l && P(i) ? (n += e[r], i >= 65536 && (n += e[r + 1])) : n += l || Zi(i);
972
- return n;
973
- }
974
- function fr(e, n, i) {
975
- var l = "", r = e.tag, u, o, f;
976
- for (u = 0, o = i.length; u < o; u += 1) f = i[u], e.replacer && (f = e.replacer.call(i, String(u), f)), (E(e, n, f, !1, !1) || typeof f > "u" && E(e, n, null, !1, !1)) && (l !== "" && (l += "," + (e.condenseFlow ? "" : " ")), l += e.dump);
977
- e.tag = r, e.dump = "[" + l + "]";
978
- }
979
- function He(e, n, i, l) {
980
- var r = "", u = e.tag, o, f, c$1;
981
- for (o = 0, f = i.length; o < f; o += 1) c$1 = i[o], e.replacer && (c$1 = e.replacer.call(i, String(o), c$1)), (E(e, n + 1, c$1, !0, !0, !1, !0) || typeof c$1 > "u" && E(e, n + 1, null, !0, !0, !1, !0)) && ((!l || r !== "") && (r += ie(e, n)), e.dump && Y === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
982
- e.tag = u, e.dump = r || "[]";
983
- }
984
- function cr(e, n, i) {
985
- var l = "", r = e.tag, u = Object.keys(i), o, f, c$1, a, t;
986
- for (o = 0, f = u.length; o < f; o += 1) t = "", l !== "" && (t += ", "), e.condenseFlow && (t += "\""), c$1 = u[o], a = i[c$1], e.replacer && (a = e.replacer.call(i, c$1, a)), E(e, n, c$1, !1, !1) && (e.dump.length > 1024 && (t += "? "), t += e.dump + (e.condenseFlow ? "\"" : "") + ":" + (e.condenseFlow ? "" : " "), E(e, n, a, !1, !1) && (t += e.dump, l += t));
987
- e.tag = r, e.dump = "{" + l + "}";
988
- }
989
- function ar(e, n, i, l) {
990
- var r = "", u = e.tag, o = Object.keys(i), f, c$1, a, t, p$1, d;
991
- if (e.sortKeys === !0) o.sort();
992
- else if (typeof e.sortKeys == "function") o.sort(e.sortKeys);
993
- else if (e.sortKeys) throw new w$1("sortKeys must be a boolean or a function");
994
- for (f = 0, c$1 = o.length; f < c$1; f += 1) d = "", (!l || r !== "") && (d += ie(e, n)), a = o[f], t = i[a], e.replacer && (t = e.replacer.call(i, a, t)), E(e, n + 1, a, !0, !0, !0) && (p$1 = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, p$1 && (e.dump && Y === e.dump.charCodeAt(0) ? d += "?" : d += "? "), d += e.dump, p$1 && (d += ie(e, n)), E(e, n + 1, t, !0, p$1) && (e.dump && Y === e.dump.charCodeAt(0) ? d += ":" : d += ": ", d += e.dump, r += d));
995
- e.tag = u, e.dump = r || "{}";
996
- }
997
- function Ue(e, n, i) {
998
- var l, r, u, o, f, c$1;
999
- for (r = i ? e.explicitTypes : e.implicitTypes, u = 0, o = r.length; u < o; u += 1) if (f = r[u], (f.instanceOf || f.predicate) && (!f.instanceOf || typeof n == "object" && n instanceof f.instanceOf) && (!f.predicate || f.predicate(n))) {
1000
- if (i ? f.multi && f.representName ? e.tag = f.representName(n) : e.tag = f.tag : e.tag = "?", f.represent) {
1001
- if (c$1 = e.styleMap[f.tag] || f.defaultStyle, Fe.call(f.represent) === "[object Function]") l = f.represent(n, c$1);
1002
- else if (be.call(f.represent, c$1)) l = f.represent[c$1](n, c$1);
1003
- else throw new w$1("!<" + f.tag + "> tag resolver accepts not \"" + c$1 + "\" style");
1004
- e.dump = l;
1005
- }
1006
- return !0;
1007
- }
1008
- return !1;
1009
- }
1010
- function E(e, n, i, l, r, u, o) {
1011
- e.tag = null, e.dump = i, Ue(e, i, !1) || Ue(e, i, !0);
1012
- var f = Fe.call(e.dump), c$1 = l, a;
1013
- l && (l = e.flowLevel < 0 || e.flowLevel > n);
1014
- var t = f === "[object Object]" || f === "[object Array]", p$1, d;
1015
- if (t && (p$1 = e.duplicates.indexOf(i), d = p$1 !== -1), (e.tag !== null && e.tag !== "?" || d || e.indent !== 2 && n > 0) && (r = !1), d && e.usedDuplicates[p$1]) e.dump = "*ref_" + p$1;
1016
- else {
1017
- if (t && d && !e.usedDuplicates[p$1] && (e.usedDuplicates[p$1] = !0), f === "[object Object]") l && Object.keys(e.dump).length !== 0 ? (ar(e, n, e.dump, r), d && (e.dump = "&ref_" + p$1 + e.dump)) : (cr(e, n, e.dump), d && (e.dump = "&ref_" + p$1 + " " + e.dump));
1018
- else if (f === "[object Array]") l && e.dump.length !== 0 ? (e.noArrayIndent && !o && n > 0 ? He(e, n - 1, e.dump, r) : He(e, n, e.dump, r), d && (e.dump = "&ref_" + p$1 + e.dump)) : (fr(e, n, e.dump), d && (e.dump = "&ref_" + p$1 + " " + e.dump));
1019
- else if (f === "[object String]") e.tag !== "?" && lr(e, e.dump, n, u, c$1);
1020
- else {
1021
- if (f === "[object Undefined]") return !1;
1022
- if (e.skipInvalid) return !1;
1023
- throw new w$1("unacceptable kind of an object to dump " + f);
1024
- }
1025
- e.tag !== null && e.tag !== "?" && (a = encodeURI(e.tag[0] === "!" ? e.tag.slice(1) : e.tag).replace(/!/g, "%21"), e.tag[0] === "!" ? a = "!" + a : a.slice(0, 18) === "tag:yaml.org,2002:" ? a = "!!" + a.slice(18) : a = "!<" + a + ">", e.dump = a + " " + e.dump);
1026
- }
1027
- return !0;
1028
- }
1029
- function pr(e, n) {
1030
- var i = [], l = [], r, u;
1031
- for (le(e, i, l), r = 0, u = l.length; r < u; r += 1) n.duplicates.push(i[l[r]]);
1032
- n.usedDuplicates = new Array(u);
1033
- }
1034
- function le(e, n, i) {
1035
- var l, r, u;
1036
- if (e !== null && typeof e == "object") if (r = n.indexOf(e), r !== -1) i.indexOf(r) === -1 && i.push(r);
1037
- else if (n.push(e), Array.isArray(e)) for (r = 0, u = e.length; r < u; r += 1) le(e[r], n, i);
1038
- else for (l = Object.keys(e), r = 0, u = l.length; r < u; r += 1) le(e[l[r]], n, i);
1039
- }
1040
- function tr(e, n) {
1041
- n = n || {};
1042
- var i = new Ji(n);
1043
- i.noRefs || pr(e, i);
1044
- var l = e;
1045
- return i.replacer && (l = i.replacer.call({ "": l }, "", l)), E(i, 0, l, !0, !0) ? i.dump + `
1046
- ` : "";
1047
- }
1048
- var dr = { dump: tr }, sr = ki.load, xr = dr.dump;
1049
- function mr(e, n) {
1050
- const i = sr(e, n);
1051
- return N$1(e, i, n), i;
1052
- }
1053
- function gr(e, n) {
1054
- const i = C$2(e, {}), r = xr(e, {
1055
- indent: typeof i.indent == "string" ? i.indent.length : i.indent,
1056
- ...n
1057
- });
1058
- return i.whitespace.start + r.trim() + i.whitespace.end;
1059
- }
1060
-
1061
- //#endregion
1062
- //#region node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.mjs
1063
- /*!
1064
- * Copyright (c) Squirrel Chat et al., All rights reserved.
1065
- * SPDX-License-Identifier: BSD-3-Clause
1066
- *
1067
- * Redistribution and use in source and binary forms, with or without
1068
- * modification, are permitted provided that the following conditions are met:
1069
- *
1070
- * 1. Redistributions of source code must retain the above copyright notice, this
1071
- * list of conditions and the following disclaimer.
1072
- * 2. Redistributions in binary form must reproduce the above copyright notice,
1073
- * this list of conditions and the following disclaimer in the
1074
- * documentation and/or other materials provided with the distribution.
1075
- * 3. Neither the name of the copyright holder nor the names of its contributors
1076
- * may be used to endorse or promote products derived from this software without
1077
- * specific prior written permission.
1078
- *
1079
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
1080
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1081
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1082
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
1083
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1084
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1085
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
1086
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
1087
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1088
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1089
- */ function v(e, n) {
1090
- let t = e.slice(0, n).split(/\r\n|\n|\r/g);
1091
- return [t.length, t.pop().length + 1];
1092
- }
1093
- function C(e, n, t) {
1094
- let l = e.split(/\r\n|\n|\r/g), r = "", i = (Math.log10(n + 1) | 0) + 1;
1095
- for (let o = n - 1; o <= n + 1; o++) {
1096
- let f = l[o - 1];
1097
- f && (r += o.toString().padEnd(i, " "), r += ": ", r += f, r += `
1098
- `, o === n && (r += " ".repeat(i + t + 2), r += `^
1099
- `));
1100
- }
1101
- return r;
1102
- }
1103
- var c = class extends Error {
1104
- line;
1105
- column;
1106
- codeblock;
1107
- constructor(n, t) {
1108
- const [l, r] = v(t.toml, t.ptr), i = C(t.toml, l, r);
1109
- super(`Invalid TOML document: ${n}
1110
-
1111
- ${i}`, t), this.line = l, this.column = r, this.codeblock = i;
1112
- }
1113
- };
1114
- /*!
1115
- * Copyright (c) Squirrel Chat et al., All rights reserved.
1116
- * SPDX-License-Identifier: BSD-3-Clause
1117
- *
1118
- * Redistribution and use in source and binary forms, with or without
1119
- * modification, are permitted provided that the following conditions are met:
1120
- *
1121
- * 1. Redistributions of source code must retain the above copyright notice, this
1122
- * list of conditions and the following disclaimer.
1123
- * 2. Redistributions in binary form must reproduce the above copyright notice,
1124
- * this list of conditions and the following disclaimer in the
1125
- * documentation and/or other materials provided with the distribution.
1126
- * 3. Neither the name of the copyright holder nor the names of its contributors
1127
- * may be used to endorse or promote products derived from this software without
1128
- * specific prior written permission.
1129
- *
1130
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
1131
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1132
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1133
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
1134
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1135
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1136
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
1137
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
1138
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1139
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1140
- */ function g(e, n = 0, t = e.length) {
1141
- let l = e.indexOf(`
1142
- `, n);
1143
- return e[l - 1] === "\r" && l--, l <= t ? l : -1;
1144
- }
1145
- function y(e, n) {
1146
- for (let t = n; t < e.length; t++) {
1147
- let l = e[t];
1148
- if (l === `
1149
- `) return t;
1150
- if (l === "\r" && e[t + 1] === `
1151
- `) return t + 1;
1152
- if (l < " " && l !== " " || l === "") throw new c("control characters are not allowed in comments", {
1153
- toml: e,
1154
- ptr: n
1155
- });
1156
- }
1157
- return e.length;
1158
- }
1159
- function s(e, n, t, l) {
1160
- let r;
1161
- for (; (r = e[n]) === " " || r === " " || !t && (r === `
1162
- ` || r === "\r" && e[n + 1] === `
1163
- `);) n++;
1164
- return l || r !== "#" ? n : s(e, y(e, n), t);
1165
- }
1166
- function A(e, n, t, l, r = !1) {
1167
- if (!l) return n = g(e, n), n < 0 ? e.length : n;
1168
- for (let i = n; i < e.length; i++) {
1169
- let o = e[i];
1170
- if (o === "#") i = g(e, i);
1171
- else {
1172
- if (o === t) return i + 1;
1173
- if (o === l) return i;
1174
- if (r && (o === `
1175
- ` || o === "\r" && e[i + 1] === `
1176
- `)) return i;
1177
- }
1178
- }
1179
- throw new c("cannot find end of structure", {
1180
- toml: e,
1181
- ptr: n
1182
- });
1183
- }
1184
- function S(e, n) {
1185
- let t = e[n], l = t === e[n + 1] && e[n + 1] === e[n + 2] ? e.slice(n, n + 3) : t;
1186
- n += l.length - 1;
1187
- do
1188
- n = e.indexOf(l, ++n);
1189
- while (n > -1 && t !== "'" && e[n - 1] === "\\" && e[n - 2] !== "\\");
1190
- return n > -1 && (n += l.length, l.length > 1 && (e[n] === t && n++, e[n] === t && n++)), n;
1191
- }
1192
- /*!
1193
- * Copyright (c) Squirrel Chat et al., All rights reserved.
1194
- * SPDX-License-Identifier: BSD-3-Clause
1195
- *
1196
- * Redistribution and use in source and binary forms, with or without
1197
- * modification, are permitted provided that the following conditions are met:
1198
- *
1199
- * 1. Redistributions of source code must retain the above copyright notice, this
1200
- * list of conditions and the following disclaimer.
1201
- * 2. Redistributions in binary form must reproduce the above copyright notice,
1202
- * this list of conditions and the following disclaimer in the
1203
- * documentation and/or other materials provided with the distribution.
1204
- * 3. Neither the name of the copyright holder nor the names of its contributors
1205
- * may be used to endorse or promote products derived from this software without
1206
- * specific prior written permission.
1207
- *
1208
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
1209
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1210
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1211
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
1212
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1213
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1214
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
1215
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
1216
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1217
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1218
- */ let R = /^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}:\d{2}(?:\.\d+)?)?(Z|[-+]\d{2}:\d{2})?$/i;
1219
- var w = class w extends Date {
1220
- #n = !1;
1221
- #t = !1;
1222
- #e = null;
1223
- constructor(n) {
1224
- let t = !0, l = !0, r = "Z";
1225
- if (typeof n == "string") {
1226
- let i = n.match(R);
1227
- i ? (i[1] || (t = !1, n = `0000-01-01T${n}`), l = !!i[2], i[2] && +i[2] > 23 ? n = "" : (r = i[3] || null, n = n.toUpperCase(), !r && l && (n += "Z"))) : n = "";
1228
- }
1229
- super(n), isNaN(this.getTime()) || (this.#n = t, this.#t = l, this.#e = r);
1230
- }
1231
- isDateTime() {
1232
- return this.#n && this.#t;
1233
- }
1234
- isLocal() {
1235
- return !this.#n || !this.#t || !this.#e;
1236
- }
1237
- isDate() {
1238
- return this.#n && !this.#t;
1239
- }
1240
- isTime() {
1241
- return this.#t && !this.#n;
1242
- }
1243
- isValid() {
1244
- return this.#n || this.#t;
1245
- }
1246
- toISOString() {
1247
- let n = super.toISOString();
1248
- if (this.isDate()) return n.slice(0, 10);
1249
- if (this.isTime()) return n.slice(11, 23);
1250
- if (this.#e === null) return n.slice(0, -1);
1251
- if (this.#e === "Z") return n;
1252
- let t = +this.#e.slice(1, 3) * 60 + +this.#e.slice(4, 6);
1253
- return t = this.#e[0] === "-" ? t : -t, (/* @__PURE__ */ new Date(this.getTime() - t * 6e4)).toISOString().slice(0, -1) + this.#e;
1254
- }
1255
- static wrapAsOffsetDateTime(n, t = "Z") {
1256
- let l = new w(n);
1257
- return l.#e = t, l;
1258
- }
1259
- static wrapAsLocalDateTime(n) {
1260
- let t = new w(n);
1261
- return t.#e = null, t;
1262
- }
1263
- static wrapAsLocalDate(n) {
1264
- let t = new w(n);
1265
- return t.#t = !1, t.#e = null, t;
1266
- }
1267
- static wrapAsLocalTime(n) {
1268
- let t = new w(n);
1269
- return t.#n = !1, t.#e = null, t;
1270
- }
1271
- };
1272
- /*!
1273
- * Copyright (c) Squirrel Chat et al., All rights reserved.
1274
- * SPDX-License-Identifier: BSD-3-Clause
1275
- *
1276
- * Redistribution and use in source and binary forms, with or without
1277
- * modification, are permitted provided that the following conditions are met:
1278
- *
1279
- * 1. Redistributions of source code must retain the above copyright notice, this
1280
- * list of conditions and the following disclaimer.
1281
- * 2. Redistributions in binary form must reproduce the above copyright notice,
1282
- * this list of conditions and the following disclaimer in the
1283
- * documentation and/or other materials provided with the distribution.
1284
- * 3. Neither the name of the copyright holder nor the names of its contributors
1285
- * may be used to endorse or promote products derived from this software without
1286
- * specific prior written permission.
1287
- *
1288
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
1289
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1290
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1291
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
1292
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1293
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1294
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
1295
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
1296
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1297
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1298
- */ let M = /^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/, Z = /^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/, j = /^[+-]?0[0-9_]/, z = /^[0-9a-f]{4,8}$/i, I = {
1299
- b: "\b",
1300
- t: " ",
1301
- n: `
1302
- `,
1303
- f: "\f",
1304
- r: "\r",
1305
- "\"": "\"",
1306
- "\\": "\\"
1307
- };
1308
- function $(e, n = 0, t = e.length) {
1309
- let l = e[n] === "'", r = e[n++] === e[n] && e[n] === e[n + 1];
1310
- r && (t -= 2, e[n += 2] === "\r" && n++, e[n] === `
1311
- ` && n++);
1312
- let i = 0, o, f = "", a = n;
1313
- for (; n < t - 1;) {
1314
- let u = e[n++];
1315
- if (u === `
1316
- ` || u === "\r" && e[n] === `
1317
- `) {
1318
- if (!r) throw new c("newlines are not allowed in strings", {
1319
- toml: e,
1320
- ptr: n - 1
1321
- });
1322
- } else if (u < " " && u !== " " || u === "") throw new c("control characters are not allowed in strings", {
1323
- toml: e,
1324
- ptr: n - 1
1325
- });
1326
- if (o) {
1327
- if (o = !1, u === "u" || u === "U") {
1328
- let d = e.slice(n, n += u === "u" ? 4 : 8);
1329
- if (!z.test(d)) throw new c("invalid unicode escape", {
1330
- toml: e,
1331
- ptr: i
1332
- });
1333
- try {
1334
- f += String.fromCodePoint(parseInt(d, 16));
1335
- } catch {
1336
- throw new c("invalid unicode escape", {
1337
- toml: e,
1338
- ptr: i
1339
- });
1340
- }
1341
- } else if (r && (u === `
1342
- ` || u === " " || u === " " || u === "\r")) {
1343
- if (n = s(e, n - 1, !0), e[n] !== `
1344
- ` && e[n] !== "\r") throw new c("invalid escape: only line-ending whitespace may be escaped", {
1345
- toml: e,
1346
- ptr: i
1347
- });
1348
- n = s(e, n);
1349
- } else if (u in I) f += I[u];
1350
- else throw new c("unrecognized escape sequence", {
1351
- toml: e,
1352
- ptr: i
1353
- });
1354
- a = n;
1355
- } else !l && u === "\\" && (i = n - 1, o = !0, f += e.slice(a, i));
1356
- }
1357
- return f + e.slice(a, t - 1);
1358
- }
1359
- function F(e, n, t) {
1360
- if (e === "true") return !0;
1361
- if (e === "false") return !1;
1362
- if (e === "-inf") return -Infinity;
1363
- if (e === "inf" || e === "+inf") return Infinity;
1364
- if (e === "nan" || e === "+nan" || e === "-nan") return NaN;
1365
- if (e === "-0") return 0;
1366
- let l;
1367
- if ((l = M.test(e)) || Z.test(e)) {
1368
- if (j.test(e)) throw new c("leading zeroes are not allowed", {
1369
- toml: n,
1370
- ptr: t
1371
- });
1372
- let i = +e.replace(/_/g, "");
1373
- if (isNaN(i)) throw new c("invalid number", {
1374
- toml: n,
1375
- ptr: t
1376
- });
1377
- if (l && !Number.isSafeInteger(i)) throw new c("integer value cannot be represented losslessly", {
1378
- toml: n,
1379
- ptr: t
1380
- });
1381
- return i;
1382
- }
1383
- let r = new w(e);
1384
- if (!r.isValid()) throw new c("invalid value", {
1385
- toml: n,
1386
- ptr: t
1387
- });
1388
- return r;
1389
- }
1390
- /*!
1391
- * Copyright (c) Squirrel Chat et al., All rights reserved.
1392
- * SPDX-License-Identifier: BSD-3-Clause
1393
- *
1394
- * Redistribution and use in source and binary forms, with or without
1395
- * modification, are permitted provided that the following conditions are met:
1396
- *
1397
- * 1. Redistributions of source code must retain the above copyright notice, this
1398
- * list of conditions and the following disclaimer.
1399
- * 2. Redistributions in binary form must reproduce the above copyright notice,
1400
- * this list of conditions and the following disclaimer in the
1401
- * documentation and/or other materials provided with the distribution.
1402
- * 3. Neither the name of the copyright holder nor the names of its contributors
1403
- * may be used to endorse or promote products derived from this software without
1404
- * specific prior written permission.
1405
- *
1406
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
1407
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1408
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1409
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
1410
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1411
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1412
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
1413
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
1414
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1415
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1416
- */ function V(e, n, t, l) {
1417
- let r = e.slice(n, t), i = r.indexOf("#");
1418
- i > -1 && (y(e, i), r = r.slice(0, i));
1419
- let o = r.trimEnd();
1420
- if (!l) {
1421
- let f = r.indexOf(`
1422
- `, o.length);
1423
- if (f > -1) throw new c("newlines are not allowed in inline tables", {
1424
- toml: e,
1425
- ptr: n + f
1426
- });
1427
- }
1428
- return [o, i];
1429
- }
1430
- function b(e, n, t, l) {
1431
- if (l === 0) throw new c("document contains excessively nested structures. aborting.", {
1432
- toml: e,
1433
- ptr: n
1434
- });
1435
- let r = e[n];
1436
- if (r === "[" || r === "{") {
1437
- let [f, a] = r === "[" ? U(e, n, l) : K(e, n, l), u = A(e, a, ",", t);
1438
- if (t === "}") {
1439
- let d = g(e, a, u);
1440
- if (d > -1) throw new c("newlines are not allowed in inline tables", {
1441
- toml: e,
1442
- ptr: d
1443
- });
1444
- }
1445
- return [f, u];
1446
- }
1447
- let i;
1448
- if (r === "\"" || r === "'") {
1449
- i = S(e, n);
1450
- let f = $(e, n, i);
1451
- if (t) {
1452
- if (i = s(e, i, t !== "]"), e[i] && e[i] !== "," && e[i] !== t && e[i] !== `
1453
- ` && e[i] !== "\r") throw new c("unexpected character encountered", {
1454
- toml: e,
1455
- ptr: i
1456
- });
1457
- i += +(e[i] === ",");
1458
- }
1459
- return [f, i];
1460
- }
1461
- i = A(e, n, ",", t);
1462
- let o = V(e, n, i - +(e[i - 1] === ","), t === "]");
1463
- if (!o[0]) throw new c("incomplete key-value declaration: no value specified", {
1464
- toml: e,
1465
- ptr: n
1466
- });
1467
- return t && o[1] > -1 && (i = s(e, n + o[1]), i += +(e[i] === ",")), [F(o[0], e, n), i];
1468
- }
1469
- /*!
1470
- * Copyright (c) Squirrel Chat et al., All rights reserved.
1471
- * SPDX-License-Identifier: BSD-3-Clause
1472
- *
1473
- * Redistribution and use in source and binary forms, with or without
1474
- * modification, are permitted provided that the following conditions are met:
1475
- *
1476
- * 1. Redistributions of source code must retain the above copyright notice, this
1477
- * list of conditions and the following disclaimer.
1478
- * 2. Redistributions in binary form must reproduce the above copyright notice,
1479
- * this list of conditions and the following disclaimer in the
1480
- * documentation and/or other materials provided with the distribution.
1481
- * 3. Neither the name of the copyright holder nor the names of its contributors
1482
- * may be used to endorse or promote products derived from this software without
1483
- * specific prior written permission.
1484
- *
1485
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
1486
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1487
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1488
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
1489
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1490
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1491
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
1492
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
1493
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1494
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1495
- */ let G = /^[a-zA-Z0-9-_]+[ \t]*$/;
1496
- function x(e, n, t = "=") {
1497
- let l = n - 1, r = [], i = e.indexOf(t, n);
1498
- if (i < 0) throw new c("incomplete key-value: cannot find end of key", {
1499
- toml: e,
1500
- ptr: n
1501
- });
1502
- do {
1503
- let o = e[n = ++l];
1504
- if (o !== " " && o !== " ") if (o === "\"" || o === "'") {
1505
- if (o === e[n + 1] && o === e[n + 2]) throw new c("multiline strings are not allowed in keys", {
1506
- toml: e,
1507
- ptr: n
1508
- });
1509
- let f = S(e, n);
1510
- if (f < 0) throw new c("unfinished string encountered", {
1511
- toml: e,
1512
- ptr: n
1513
- });
1514
- l = e.indexOf(".", f);
1515
- let a = e.slice(f, l < 0 || l > i ? i : l), u = g(a);
1516
- if (u > -1) throw new c("newlines are not allowed in keys", {
1517
- toml: e,
1518
- ptr: n + l + u
1519
- });
1520
- if (a.trimStart()) throw new c("found extra tokens after the string part", {
1521
- toml: e,
1522
- ptr: f
1523
- });
1524
- if (i < f && (i = e.indexOf(t, f), i < 0)) throw new c("incomplete key-value: cannot find end of key", {
1525
- toml: e,
1526
- ptr: n
1527
- });
1528
- r.push($(e, n, f));
1529
- } else {
1530
- l = e.indexOf(".", n);
1531
- let f = e.slice(n, l < 0 || l > i ? i : l);
1532
- if (!G.test(f)) throw new c("only letter, numbers, dashes and underscores are allowed in keys", {
1533
- toml: e,
1534
- ptr: n
1535
- });
1536
- r.push(f.trimEnd());
1537
- }
1538
- } while (l + 1 && l < i);
1539
- return [r, s(e, i + 1, !0, !0)];
1540
- }
1541
- function K(e, n, t) {
1542
- let l = {}, r = /* @__PURE__ */ new Set(), i, o = 0;
1543
- for (n++; (i = e[n++]) !== "}" && i;) {
1544
- if (i === `
1545
- `) throw new c("newlines are not allowed in inline tables", {
1546
- toml: e,
1547
- ptr: n - 1
1548
- });
1549
- if (i === "#") throw new c("inline tables cannot contain comments", {
1550
- toml: e,
1551
- ptr: n - 1
1552
- });
1553
- if (i === ",") throw new c("expected key-value, found comma", {
1554
- toml: e,
1555
- ptr: n - 1
1556
- });
1557
- if (i !== " " && i !== " ") {
1558
- let f, a = l, u = !1, [d, N$2] = x(e, n - 1);
1559
- for (let m = 0; m < d.length; m++) {
1560
- if (m && (a = u ? a[f] : a[f] = {}), f = d[m], (u = Object.hasOwn(a, f)) && (typeof a[f] != "object" || r.has(a[f]))) throw new c("trying to redefine an already defined value", {
1561
- toml: e,
1562
- ptr: n
1563
- });
1564
- !u && f === "__proto__" && Object.defineProperty(a, f, {
1565
- enumerable: !0,
1566
- configurable: !0,
1567
- writable: !0
1568
- });
1569
- }
1570
- if (u) throw new c("trying to redefine an already defined value", {
1571
- toml: e,
1572
- ptr: n
1573
- });
1574
- let [_$1, k$1] = b(e, N$2, "}", t - 1);
1575
- r.add(_$1), a[f] = _$1, n = k$1, o = e[n - 1] === "," ? n - 1 : 0;
1576
- }
1577
- }
1578
- if (o) throw new c("trailing commas are not allowed in inline tables", {
1579
- toml: e,
1580
- ptr: o
1581
- });
1582
- if (!i) throw new c("unfinished table encountered", {
1583
- toml: e,
1584
- ptr: n
1585
- });
1586
- return [l, n];
1587
- }
1588
- function U(e, n, t) {
1589
- let l = [], r;
1590
- for (n++; (r = e[n++]) !== "]" && r;) {
1591
- if (r === ",") throw new c("expected value, found comma", {
1592
- toml: e,
1593
- ptr: n - 1
1594
- });
1595
- if (r === "#") n = y(e, n);
1596
- else if (r !== " " && r !== " " && r !== `
1597
- ` && r !== "\r") {
1598
- let i = b(e, n - 1, "]", t - 1);
1599
- l.push(i[0]), n = i[1];
1600
- }
1601
- }
1602
- if (!r) throw new c("unfinished array encountered", {
1603
- toml: e,
1604
- ptr: n
1605
- });
1606
- return [l, n];
1607
- }
1608
- /*!
1609
- * Copyright (c) Squirrel Chat et al., All rights reserved.
1610
- * SPDX-License-Identifier: BSD-3-Clause
1611
- *
1612
- * Redistribution and use in source and binary forms, with or without
1613
- * modification, are permitted provided that the following conditions are met:
1614
- *
1615
- * 1. Redistributions of source code must retain the above copyright notice, this
1616
- * list of conditions and the following disclaimer.
1617
- * 2. Redistributions in binary form must reproduce the above copyright notice,
1618
- * this list of conditions and the following disclaimer in the
1619
- * documentation and/or other materials provided with the distribution.
1620
- * 3. Neither the name of the copyright holder nor the names of its contributors
1621
- * may be used to endorse or promote products derived from this software without
1622
- * specific prior written permission.
1623
- *
1624
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
1625
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1626
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1627
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
1628
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1629
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1630
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
1631
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
1632
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1633
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1634
- */ function p(e, n, t, l) {
1635
- let r = n, i = t, o, f = !1, a;
1636
- for (let u = 0; u < e.length; u++) {
1637
- if (u) {
1638
- if (r = f ? r[o] : r[o] = {}, i = (a = i[o]).c, l === 0 && (a.t === 1 || a.t === 2)) return null;
1639
- if (a.t === 2) {
1640
- let d = r.length - 1;
1641
- r = r[d], i = i[d].c;
1642
- }
1643
- }
1644
- if (o = e[u], (f = Object.hasOwn(r, o)) && i[o]?.t === 0 && i[o]?.d) return null;
1645
- f || (o === "__proto__" && (Object.defineProperty(r, o, {
1646
- enumerable: !0,
1647
- configurable: !0,
1648
- writable: !0
1649
- }), Object.defineProperty(i, o, {
1650
- enumerable: !0,
1651
- configurable: !0,
1652
- writable: !0
1653
- })), i[o] = {
1654
- t: u < e.length - 1 && l === 2 ? 3 : l,
1655
- d: !1,
1656
- i: 0,
1657
- c: {}
1658
- });
1659
- }
1660
- if (a = i[o], a.t !== l && !(l === 1 && a.t === 3) || (l === 2 && (a.d || (a.d = !0, r[o] = []), r[o].push(r = {}), a.c[a.i++] = a = {
1661
- t: 1,
1662
- d: !1,
1663
- i: 0,
1664
- c: {}
1665
- }), a.d)) return null;
1666
- if (a.d = !0, l === 1) r = f ? r[o] : r[o] = {};
1667
- else if (l === 0 && f) return null;
1668
- return [
1669
- o,
1670
- r,
1671
- a.c
1672
- ];
1673
- }
1674
- function X(e, n) {
1675
- let t = n?.maxDepth ?? 1e3, l = {}, r = {}, i = l, o = r;
1676
- for (let f = s(e, 0); f < e.length;) {
1677
- if (e[f] === "[") {
1678
- let a = e[++f] === "[", u = x(e, f += +a, "]");
1679
- if (a) {
1680
- if (e[u[1] - 1] !== "]") throw new c("expected end of table declaration", {
1681
- toml: e,
1682
- ptr: u[1] - 1
1683
- });
1684
- u[1]++;
1685
- }
1686
- let d = p(u[0], l, r, a ? 2 : 1);
1687
- if (!d) throw new c("trying to redefine an already defined table or value", {
1688
- toml: e,
1689
- ptr: f
1690
- });
1691
- o = d[2], i = d[1], f = u[1];
1692
- } else {
1693
- let a = x(e, f), u = p(a[0], i, o, 0);
1694
- if (!u) throw new c("trying to redefine an already defined table or value", {
1695
- toml: e,
1696
- ptr: f
1697
- });
1698
- let d = b(e, a[1], void 0, t);
1699
- u[1][u[0]] = d[0], f = d[1];
1700
- }
1701
- if (f = s(e, f, !0), e[f] && e[f] !== `
1702
- ` && e[f] !== "\r") throw new c("each key-value declaration must be followed by an end-of-line", {
1703
- toml: e,
1704
- ptr: f
1705
- });
1706
- f = s(e, f);
1707
- }
1708
- return l;
1709
- }
1710
- function Q(e) {
1711
- const n = X(e);
1712
- return N$1(e, n, { preserveIndentation: !1 }), n;
1713
- }
1714
-
1715
- //#endregion
1716
- //#region src/cli/commands/task/index.ts
1717
- var task_default = defineCommand({
1718
- meta: {
1719
- name: "task",
1720
- description: "Operate in nitro tasks (experimental)"
1721
- },
1722
- subCommands: {
1723
- list: () => import("../cli/_chunks/list.mjs").then((r) => r.default),
1724
- run: () => import("../cli/_chunks/run.mjs").then((r) => r.default)
1725
- }
1726
- });
1727
-
1728
- //#endregion
1729
- export { task_default as default, gr as n, mr as r, Q as t };