novelaid-markdown 0.5.0 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,7 +1,9 @@
1
1
  import e, { useEffect as t, useMemo as n, useRef as r, useState as i } from "react";
2
2
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
3
+ import s, { Marker as c, Popup as l } from "react-map-gl/maplibre";
4
+ import * as u from "lucide-react";
3
5
  //#region src/registry.ts
4
- var s = class e {
6
+ var d = class e {
5
7
  plugins = [];
6
8
  register(e) {
7
9
  this.plugins.push(e);
@@ -18,28 +20,28 @@ var s = class e {
18
20
  static getDefault() {
19
21
  return new e();
20
22
  }
21
- }, c = {
23
+ }, f = {
22
24
  RUBY_WITH_PIPE: /[||]([^||\n《》]+)《([^《》\n]+)》/g,
23
25
  RUBY_WITHOUT_PIPE: /([々〇\u4e00-\u9fcf\u3400-\u4dbf]+)《([^《》\n]+)》/g,
24
26
  BOUTEN: /《《([^《》\n]+)》》/g,
25
27
  DIALOGUE: /「(.*?)」/g,
26
28
  DIALOGUE_DOUBLE: /『(.*?)』/g,
27
29
  FULL_WIDTH_SPACE: /\u3000/g
28
- }, l = {
30
+ }, p = {
29
31
  name: "novel-syntax",
30
32
  preprocessors: [(e) => {
31
33
  if (!e) return "";
32
34
  let t = e;
33
- return t = t.replace(c.RUBY_WITH_PIPE, "<ruby>$1<rt>$2</rt></ruby>"), t = t.replace(c.RUBY_WITHOUT_PIPE, "<ruby>$1<rt>$2</rt></ruby>"), t = t.replace(c.BOUTEN, "<span class=\"bouten\">$1</span>"), t;
35
+ return t = t.replace(f.RUBY_WITH_PIPE, "<ruby>$1<rt>$2</rt></ruby>"), t = t.replace(f.RUBY_WITHOUT_PIPE, "<ruby>$1<rt>$2</rt></ruby>"), t = t.replace(f.BOUTEN, "<span class=\"bouten\">$1</span>"), t;
34
36
  }]
35
- }, u = null, d = null, f = async () => u || (d ||= (async () => {
37
+ }, m = null, h = null, g = async () => m || (h ||= (async () => {
36
38
  try {
37
39
  let e = await import("mermaid");
38
- return u = e.default || e, u;
40
+ return m = e.default || e, m;
39
41
  } catch (e) {
40
- throw d = null, e;
42
+ throw h = null, e;
41
43
  }
42
- })(), d), p = Promise.resolve(), m = {
44
+ })(), h), _ = Promise.resolve(), v = {
43
45
  name: "mermaid",
44
46
  codeProcessors: [{
45
47
  language: "mermaid",
@@ -62,10 +64,10 @@ var s = class e {
62
64
  let r = e.substring(0, 20).replace(/\n/g, " ");
63
65
  s("<div class=\"mermaid-loading\" style=\"opacity: 0.6; padding: 1em; font-size: 12px; color: gray;\">Mermaid rendering...</div>");
64
66
  let i = (async () => {
65
- if (await p, t) try {
67
+ if (await _, t) try {
66
68
  let i = new Promise((e, t) => setTimeout(() => t(/* @__PURE__ */ Error("Rendering Timeout (5s)")), 5e3));
67
69
  await Promise.race([(async () => {
68
- let i = await f();
70
+ let i = await g();
69
71
  if (!t || (n(), await i.parse(e), !t)) return;
70
72
  console.log(`[Mermaid] Executing render: ${r}...`);
71
73
  let a = `mermaid-${Math.random().toString(36).substring(2, 11)}`, { svg: o } = await i.render(a, e);
@@ -76,7 +78,7 @@ var s = class e {
76
78
  console.error(`[Mermaid] Render failed: ${e}`, r), n(), s(`<pre class="mermaid-error" style="color: #f44336; padding: 1em; border: 1px solid #f44336; border-radius: 4px; background: rgba(244, 67, 54, 0.05); font-size: 13px; white-space: pre-wrap; word-break: break-all;">Mermaid Syntax Error:\n${r instanceof Error ? r.message : "Invalid Mermaid syntax"}</pre>`);
77
79
  }
78
80
  })();
79
- p = (async () => {
81
+ _ = (async () => {
80
82
  try {
81
83
  await i;
82
84
  } catch {}
@@ -109,202 +111,83 @@ var s = class e {
109
111
  });
110
112
  }
111
113
  }]
112
- }, h = null, g = null, _ = async () => h || (g ||= (async () => {
113
- try {
114
- let { D2: e } = await import("@terrastruct/d2");
115
- return h = new e(), await h.ready, h;
116
- } catch (e) {
117
- throw g = null, e;
118
- }
119
- })(), g), v = Promise.resolve(), y = (e) => {
120
- if (typeof e == "string") return e;
121
- if (!e) return "";
122
- if (e instanceof Uint8Array || e.buffer && e.byteLength !== void 0) try {
123
- return new TextDecoder().decode(e);
124
- } catch {
125
- return "Error: Failed to decode D2 binary output";
126
- }
127
- if (typeof e == "object") {
128
- let t = e.contents || e.svg || e.data;
129
- if (typeof t == "string") return t;
130
- if (t instanceof Uint8Array) return new TextDecoder().decode(t);
131
- try {
132
- return JSON.stringify(e);
133
- } catch {
134
- return "Error: D2 returned an un-stringifiable object";
135
- }
136
- }
137
- return String(e);
138
- }, b = (e) => {
139
- if (e instanceof Error) return e.message;
140
- if (typeof e == "string") return e;
141
- try {
142
- let t = JSON.stringify(e);
143
- return t === "{}" && e.toString ? e.toString() : t;
144
- } catch {
145
- return "Unknown D2 error";
146
- }
147
- }, x = {
148
- name: "d2",
149
- codeProcessors: [{
150
- language: "d2",
151
- component: ({ value: e, attributes: n = {} }) => {
152
- let s = "dark", [c, l] = i(""), [u, d] = i(null), [f, p] = i(!0), m = r(null), { width: h, height: g, pad: x } = n;
153
- return t(() => {
154
- let t = !0, n = async () => {
155
- e && (p(!0), d(null), v = v.catch(() => {}).then(async () => {
156
- if (t) try {
157
- let n = await _(), r = await n.compile(e);
158
- if (r && r.errors && r.errors.length > 0) throw Error(r.errors[0].message || "D2 Syntax Error");
159
- let i = s === "dark" ? 200 : 0, a = {
160
- ...r.renderOptions,
161
- themeID: i,
162
- noXMLTag: !0,
163
- pad: x === void 0 ? 20 : parseInt(String(x), 10)
164
- }, o = await n.render(r.diagram, a);
165
- if (t) {
166
- let e = y(o);
167
- if (!e || e.startsWith("[object Object]")) throw Error("D2 rendering failed to produce a valid SVG string");
168
- l(e), p(!1), d(null);
169
- }
170
- } catch (e) {
171
- console.error("D2 rendering failed:", e), t && (d(b(e)), p(!1));
172
- }
173
- }));
174
- }, r = setTimeout(() => {
175
- n();
176
- }, 300);
177
- return () => {
178
- t = !1, clearTimeout(r);
179
- };
180
- }, [e, s]), /* @__PURE__ */ o("div", {
181
- className: "d2-container",
182
- ref: m,
183
- style: {
184
- display: "flex",
185
- flexDirection: "column",
186
- alignItems: "center",
187
- margin: "1.5em 0",
188
- maxWidth: "100%",
189
- overflow: "auto",
190
- width: h || "100%",
191
- height: g || "auto",
192
- minHeight: f ? "100px" : "auto"
193
- },
194
- children: [
195
- /* @__PURE__ */ a("style", { children: "\n .d2-container svg {\n max-width: 100%;\n max-height: 100%;\n height: auto;\n }\n .d2-container svg rect.d2-background {\n fill: none !important;\n }\n " }),
196
- f && !u && /* @__PURE__ */ a("div", {
197
- style: {
198
- padding: "1em",
199
- color: "var(--text-muted)"
200
- },
201
- children: "Rendering D2 diagram..."
202
- }),
203
- u ? /* @__PURE__ */ o("pre", {
204
- className: "d2-error",
205
- style: {
206
- color: "#f44336",
207
- padding: "1em",
208
- border: "1px solid #f44336",
209
- borderRadius: "4px",
210
- maxWidth: "100%",
211
- overflow: "auto",
212
- whiteSpace: "pre-wrap",
213
- wordBreak: "break-all"
214
- },
215
- children: ["D2 Error: ", u]
216
- }) : /* @__PURE__ */ a("div", {
217
- dangerouslySetInnerHTML: { __html: c },
218
- style: {
219
- width: "100%",
220
- flex: 1,
221
- minHeight: 0,
222
- display: "flex",
223
- justifyContent: "center",
224
- alignItems: "center"
225
- }
226
- })
227
- ]
228
- });
229
- }
230
- }]
231
- }, S = Symbol.for("yaml.alias"), ee = Symbol.for("yaml.document"), C = Symbol.for("yaml.map"), te = Symbol.for("yaml.pair"), w = Symbol.for("yaml.scalar"), T = Symbol.for("yaml.seq"), E = Symbol.for("yaml.node.type"), D = (e) => !!e && typeof e == "object" && e[E] === S, ne = (e) => !!e && typeof e == "object" && e[E] === ee, re = (e) => !!e && typeof e == "object" && e[E] === C, O = (e) => !!e && typeof e == "object" && e[E] === te, k = (e) => !!e && typeof e == "object" && e[E] === w, ie = (e) => !!e && typeof e == "object" && e[E] === T;
232
- function A(e) {
233
- if (e && typeof e == "object") switch (e[E]) {
234
- case C:
235
- case T: return !0;
114
+ }, y = Symbol.for("yaml.alias"), b = Symbol.for("yaml.document"), x = Symbol.for("yaml.map"), S = Symbol.for("yaml.pair"), C = Symbol.for("yaml.scalar"), ee = Symbol.for("yaml.seq"), w = Symbol.for("yaml.node.type"), T = (e) => !!e && typeof e == "object" && e[w] === y, E = (e) => !!e && typeof e == "object" && e[w] === b, te = (e) => !!e && typeof e == "object" && e[w] === x, D = (e) => !!e && typeof e == "object" && e[w] === S, O = (e) => !!e && typeof e == "object" && e[w] === C, ne = (e) => !!e && typeof e == "object" && e[w] === ee;
115
+ function k(e) {
116
+ if (e && typeof e == "object") switch (e[w]) {
117
+ case x:
118
+ case ee: return !0;
236
119
  }
237
120
  return !1;
238
121
  }
239
- function j(e) {
240
- if (e && typeof e == "object") switch (e[E]) {
241
- case S:
122
+ function A(e) {
123
+ if (e && typeof e == "object") switch (e[w]) {
124
+ case y:
125
+ case x:
242
126
  case C:
243
- case w:
244
- case T: return !0;
127
+ case ee: return !0;
245
128
  }
246
129
  return !1;
247
130
  }
248
- var ae = (e) => (k(e) || A(e)) && !!e.anchor, M = Symbol("break visit"), oe = Symbol("skip children"), N = Symbol("remove node");
249
- function P(e, t) {
250
- let n = ce(t);
251
- ne(e) ? F(null, e.contents, n, Object.freeze([e])) === N && (e.contents = null) : F(null, e, n, Object.freeze([]));
131
+ var re = (e) => (O(e) || k(e)) && !!e.anchor, j = Symbol("break visit"), ie = Symbol("skip children"), M = Symbol("remove node");
132
+ function N(e, t) {
133
+ let n = oe(t);
134
+ E(e) ? P(null, e.contents, n, Object.freeze([e])) === M && (e.contents = null) : P(null, e, n, Object.freeze([]));
252
135
  }
253
- P.BREAK = M, P.SKIP = oe, P.REMOVE = N;
254
- function F(e, t, n, r) {
255
- let i = le(e, t, n, r);
256
- if (j(i) || O(i)) return ue(e, r, i), F(e, i, n, r);
136
+ N.BREAK = j, N.SKIP = ie, N.REMOVE = M;
137
+ function P(e, t, n, r) {
138
+ let i = se(e, t, n, r);
139
+ if (A(i) || D(i)) return ce(e, r, i), P(e, i, n, r);
257
140
  if (typeof i != "symbol") {
258
- if (A(t)) {
141
+ if (k(t)) {
259
142
  r = Object.freeze(r.concat(t));
260
143
  for (let e = 0; e < t.items.length; ++e) {
261
- let i = F(e, t.items[e], n, r);
144
+ let i = P(e, t.items[e], n, r);
262
145
  if (typeof i == "number") e = i - 1;
263
- else if (i === M) return M;
264
- else i === N && (t.items.splice(e, 1), --e);
146
+ else if (i === j) return j;
147
+ else i === M && (t.items.splice(e, 1), --e);
265
148
  }
266
- } else if (O(t)) {
149
+ } else if (D(t)) {
267
150
  r = Object.freeze(r.concat(t));
268
- let e = F("key", t.key, n, r);
269
- if (e === M) return M;
270
- e === N && (t.key = null);
271
- let i = F("value", t.value, n, r);
272
- if (i === M) return M;
273
- i === N && (t.value = null);
151
+ let e = P("key", t.key, n, r);
152
+ if (e === j) return j;
153
+ e === M && (t.key = null);
154
+ let i = P("value", t.value, n, r);
155
+ if (i === j) return j;
156
+ i === M && (t.value = null);
274
157
  }
275
158
  }
276
159
  return i;
277
160
  }
278
- async function se(e, t) {
279
- let n = ce(t);
280
- ne(e) ? await I(null, e.contents, n, Object.freeze([e])) === N && (e.contents = null) : await I(null, e, n, Object.freeze([]));
161
+ async function ae(e, t) {
162
+ let n = oe(t);
163
+ E(e) ? await F(null, e.contents, n, Object.freeze([e])) === M && (e.contents = null) : await F(null, e, n, Object.freeze([]));
281
164
  }
282
- se.BREAK = M, se.SKIP = oe, se.REMOVE = N;
283
- async function I(e, t, n, r) {
284
- let i = await le(e, t, n, r);
285
- if (j(i) || O(i)) return ue(e, r, i), I(e, i, n, r);
165
+ ae.BREAK = j, ae.SKIP = ie, ae.REMOVE = M;
166
+ async function F(e, t, n, r) {
167
+ let i = await se(e, t, n, r);
168
+ if (A(i) || D(i)) return ce(e, r, i), F(e, i, n, r);
286
169
  if (typeof i != "symbol") {
287
- if (A(t)) {
170
+ if (k(t)) {
288
171
  r = Object.freeze(r.concat(t));
289
172
  for (let e = 0; e < t.items.length; ++e) {
290
- let i = await I(e, t.items[e], n, r);
173
+ let i = await F(e, t.items[e], n, r);
291
174
  if (typeof i == "number") e = i - 1;
292
- else if (i === M) return M;
293
- else i === N && (t.items.splice(e, 1), --e);
175
+ else if (i === j) return j;
176
+ else i === M && (t.items.splice(e, 1), --e);
294
177
  }
295
- } else if (O(t)) {
178
+ } else if (D(t)) {
296
179
  r = Object.freeze(r.concat(t));
297
- let e = await I("key", t.key, n, r);
298
- if (e === M) return M;
299
- e === N && (t.key = null);
300
- let i = await I("value", t.value, n, r);
301
- if (i === M) return M;
302
- i === N && (t.value = null);
180
+ let e = await F("key", t.key, n, r);
181
+ if (e === j) return j;
182
+ e === M && (t.key = null);
183
+ let i = await F("value", t.value, n, r);
184
+ if (i === j) return j;
185
+ i === M && (t.value = null);
303
186
  }
304
187
  }
305
188
  return i;
306
189
  }
307
- function ce(e) {
190
+ function oe(e) {
308
191
  return typeof e == "object" && (e.Collection || e.Node || e.Value) ? Object.assign({
309
192
  Alias: e.Node,
310
193
  Map: e.Node,
@@ -319,34 +202,34 @@ function ce(e) {
319
202
  Seq: e.Collection
320
203
  }, e) : e;
321
204
  }
322
- function le(e, t, n, r) {
205
+ function se(e, t, n, r) {
323
206
  if (typeof n == "function") return n(e, t, r);
324
- if (re(t)) return n.Map?.(e, t, r);
325
- if (ie(t)) return n.Seq?.(e, t, r);
326
- if (O(t)) return n.Pair?.(e, t, r);
327
- if (k(t)) return n.Scalar?.(e, t, r);
328
- if (D(t)) return n.Alias?.(e, t, r);
207
+ if (te(t)) return n.Map?.(e, t, r);
208
+ if (ne(t)) return n.Seq?.(e, t, r);
209
+ if (D(t)) return n.Pair?.(e, t, r);
210
+ if (O(t)) return n.Scalar?.(e, t, r);
211
+ if (T(t)) return n.Alias?.(e, t, r);
329
212
  }
330
- function ue(e, t, n) {
213
+ function ce(e, t, n) {
331
214
  let r = t[t.length - 1];
332
- if (A(r)) r.items[e] = n;
333
- else if (O(r)) e === "key" ? r.key = n : r.value = n;
334
- else if (ne(r)) r.contents = n;
215
+ if (k(r)) r.items[e] = n;
216
+ else if (D(r)) e === "key" ? r.key = n : r.value = n;
217
+ else if (E(r)) r.contents = n;
335
218
  else {
336
- let e = D(r) ? "alias" : "scalar";
219
+ let e = T(r) ? "alias" : "scalar";
337
220
  throw Error(`Cannot replace node with ${e} parent`);
338
221
  }
339
222
  }
340
223
  //#endregion
341
224
  //#region node_modules/yaml/browser/dist/doc/directives.js
342
- var de = {
225
+ var le = {
343
226
  "!": "%21",
344
227
  ",": "%2C",
345
228
  "[": "%5B",
346
229
  "]": "%5D",
347
230
  "{": "%7B",
348
231
  "}": "%7D"
349
- }, fe = (e) => e.replace(/[!,[\]{}]/g, (e) => de[e]), L = class e {
232
+ }, ue = (e) => e.replace(/[!,[\]{}]/g, (e) => le[e]), I = class e {
350
233
  constructor(t, n) {
351
234
  this.docStart = null, this.docEnd = !1, this.yaml = Object.assign({}, e.defaultYaml, t), this.tags = Object.assign({}, e.defaultTags, n);
352
235
  }
@@ -411,58 +294,58 @@ var de = {
411
294
  return n === "!" ? e : (t(`Could not resolve tag: ${e}`), null);
412
295
  }
413
296
  tagString(e) {
414
- for (let [t, n] of Object.entries(this.tags)) if (e.startsWith(n)) return t + fe(e.substring(n.length));
297
+ for (let [t, n] of Object.entries(this.tags)) if (e.startsWith(n)) return t + ue(e.substring(n.length));
415
298
  return e[0] === "!" ? e : `!<${e}>`;
416
299
  }
417
300
  toString(e) {
418
301
  let t = this.yaml.explicit ? [`%YAML ${this.yaml.version || "1.2"}`] : [], n = Object.entries(this.tags), r;
419
- if (e && n.length > 0 && j(e.contents)) {
302
+ if (e && n.length > 0 && A(e.contents)) {
420
303
  let t = {};
421
- P(e.contents, (e, n) => {
422
- j(n) && n.tag && (t[n.tag] = !0);
304
+ N(e.contents, (e, n) => {
305
+ A(n) && n.tag && (t[n.tag] = !0);
423
306
  }), r = Object.keys(t);
424
307
  } else r = [];
425
308
  for (let [i, a] of n) i === "!!" && a === "tag:yaml.org,2002:" || (!e || r.some((e) => e.startsWith(a))) && t.push(`%TAG ${i} ${a}`);
426
309
  return t.join("\n");
427
310
  }
428
311
  };
429
- L.defaultYaml = {
312
+ I.defaultYaml = {
430
313
  explicit: !1,
431
314
  version: "1.2"
432
- }, L.defaultTags = { "!!": "tag:yaml.org,2002:" };
315
+ }, I.defaultTags = { "!!": "tag:yaml.org,2002:" };
433
316
  //#endregion
434
317
  //#region node_modules/yaml/browser/dist/doc/anchors.js
435
- function pe(e) {
318
+ function de(e) {
436
319
  if (/[\x00-\x19\s,[\]{}]/.test(e)) {
437
320
  let t = `Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;
438
321
  throw Error(t);
439
322
  }
440
323
  return !0;
441
324
  }
442
- function me(e) {
325
+ function fe(e) {
443
326
  let t = /* @__PURE__ */ new Set();
444
- return P(e, { Value(e, n) {
327
+ return N(e, { Value(e, n) {
445
328
  n.anchor && t.add(n.anchor);
446
329
  } }), t;
447
330
  }
448
- function he(e, t) {
331
+ function pe(e, t) {
449
332
  for (let n = 1;; ++n) {
450
333
  let r = `${e}${n}`;
451
334
  if (!t.has(r)) return r;
452
335
  }
453
336
  }
454
- function ge(e, t) {
337
+ function me(e, t) {
455
338
  let n = [], r = /* @__PURE__ */ new Map(), i = null;
456
339
  return {
457
340
  onAnchor: (r) => {
458
- n.push(r), i ??= me(e);
459
- let a = he(t, i);
341
+ n.push(r), i ??= fe(e);
342
+ let a = pe(t, i);
460
343
  return i.add(a), a;
461
344
  },
462
345
  setAnchors: () => {
463
346
  for (let e of n) {
464
347
  let t = r.get(e);
465
- if (typeof t == "object" && t.anchor && (k(t.node) || A(t.node))) t.node.anchor = t.anchor;
348
+ if (typeof t == "object" && t.anchor && (O(t.node) || k(t.node))) t.node.anchor = t.anchor;
466
349
  else {
467
350
  let t = /* @__PURE__ */ Error("Failed to resolve repeated object (this should not happen)");
468
351
  throw t.source = e, t;
@@ -474,21 +357,21 @@ function ge(e, t) {
474
357
  }
475
358
  //#endregion
476
359
  //#region node_modules/yaml/browser/dist/doc/applyReviver.js
477
- function _e(e, t, n, r) {
360
+ function L(e, t, n, r) {
478
361
  if (r && typeof r == "object") if (Array.isArray(r)) for (let t = 0, n = r.length; t < n; ++t) {
479
- let n = r[t], i = _e(e, r, String(t), n);
362
+ let n = r[t], i = L(e, r, String(t), n);
480
363
  i === void 0 ? delete r[t] : i !== n && (r[t] = i);
481
364
  }
482
365
  else if (r instanceof Map) for (let t of Array.from(r.keys())) {
483
- let n = r.get(t), i = _e(e, r, t, n);
366
+ let n = r.get(t), i = L(e, r, t, n);
484
367
  i === void 0 ? r.delete(t) : i !== n && r.set(t, i);
485
368
  }
486
369
  else if (r instanceof Set) for (let t of Array.from(r)) {
487
- let n = _e(e, r, t, t);
370
+ let n = L(e, r, t, t);
488
371
  n === void 0 ? r.delete(t) : n !== t && (r.delete(t), r.add(n));
489
372
  }
490
373
  else for (let [t, n] of Object.entries(r)) {
491
- let i = _e(e, r, t, n);
374
+ let i = L(e, r, t, n);
492
375
  i === void 0 ? delete r[t] : i !== n && (r[t] = i);
493
376
  }
494
377
  return e.call(t, n, r);
@@ -498,7 +381,7 @@ function _e(e, t, n, r) {
498
381
  function R(e, t, n) {
499
382
  if (Array.isArray(e)) return e.map((e, t) => R(e, String(t), n));
500
383
  if (e && typeof e.toJSON == "function") {
501
- if (!n || !ae(e)) return e.toJSON(t, n);
384
+ if (!n || !re(e)) return e.toJSON(t, n);
502
385
  let r = {
503
386
  aliasCount: 0,
504
387
  count: 1,
@@ -514,16 +397,16 @@ function R(e, t, n) {
514
397
  }
515
398
  //#endregion
516
399
  //#region node_modules/yaml/browser/dist/nodes/Node.js
517
- var ve = class {
400
+ var he = class {
518
401
  constructor(e) {
519
- Object.defineProperty(this, E, { value: e });
402
+ Object.defineProperty(this, w, { value: e });
520
403
  }
521
404
  clone() {
522
405
  let e = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this));
523
406
  return this.range && (e.range = this.range.slice()), e;
524
407
  }
525
408
  toJS(e, { mapAsMap: t, maxAliasCount: n, onAnchor: r, reviver: i } = {}) {
526
- if (!ne(e)) throw TypeError("A document argument is required");
409
+ if (!E(e)) throw TypeError("A document argument is required");
527
410
  let a = {
528
411
  anchors: /* @__PURE__ */ new Map(),
529
412
  doc: e,
@@ -533,18 +416,18 @@ var ve = class {
533
416
  maxAliasCount: typeof n == "number" ? n : 100
534
417
  }, o = R(this, "", a);
535
418
  if (typeof r == "function") for (let { count: e, res: t } of a.anchors.values()) r(t, e);
536
- return typeof i == "function" ? _e(i, { "": o }, "", o) : o;
419
+ return typeof i == "function" ? L(i, { "": o }, "", o) : o;
537
420
  }
538
- }, ye = class extends ve {
421
+ }, ge = class extends he {
539
422
  constructor(e) {
540
- super(S), this.source = e, Object.defineProperty(this, "tag", { set() {
423
+ super(y), this.source = e, Object.defineProperty(this, "tag", { set() {
541
424
  throw Error("Alias nodes cannot have tags");
542
425
  } });
543
426
  }
544
427
  resolve(e, t) {
545
428
  let n;
546
- t?.aliasResolveCache ? n = t.aliasResolveCache : (n = [], P(e, { Node: (e, t) => {
547
- (D(t) || ae(t)) && n.push(t);
429
+ t?.aliasResolveCache ? n = t.aliasResolveCache : (n = [], N(e, { Node: (e, t) => {
430
+ (T(t) || re(t)) && n.push(t);
548
431
  } }), t && (t.aliasResolveCache = n));
549
432
  let r;
550
433
  for (let e of n) {
@@ -563,13 +446,13 @@ var ve = class {
563
446
  let o = n.get(a);
564
447
  /* istanbul ignore if */
565
448
  if (o ||= (R(a, null, t), n.get(a)), o?.res === void 0) throw ReferenceError("This should not happen: Alias anchor was not resolved?");
566
- if (i >= 0 && (o.count += 1, o.aliasCount === 0 && (o.aliasCount = be(r, a, n)), o.count * o.aliasCount > i)) throw ReferenceError("Excessive alias count indicates a resource exhaustion attack");
449
+ if (i >= 0 && (o.count += 1, o.aliasCount === 0 && (o.aliasCount = _e(r, a, n)), o.count * o.aliasCount > i)) throw ReferenceError("Excessive alias count indicates a resource exhaustion attack");
567
450
  return o.res;
568
451
  }
569
452
  toString(e, t, n) {
570
453
  let r = `*${this.source}`;
571
454
  if (e) {
572
- if (pe(this.source), e.options.verifyAliasOrder && !e.anchors.has(this.source)) {
455
+ if (de(this.source), e.options.verifyAliasOrder && !e.anchors.has(this.source)) {
573
456
  let e = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
574
457
  throw Error(e);
575
458
  }
@@ -578,28 +461,28 @@ var ve = class {
578
461
  return r;
579
462
  }
580
463
  };
581
- function be(e, t, n) {
582
- if (D(t)) {
464
+ function _e(e, t, n) {
465
+ if (T(t)) {
583
466
  let r = t.resolve(e), i = n && r && n.get(r);
584
467
  return i ? i.count * i.aliasCount : 0;
585
- } else if (A(t)) {
468
+ } else if (k(t)) {
586
469
  let r = 0;
587
470
  for (let i of t.items) {
588
- let t = be(e, i, n);
471
+ let t = _e(e, i, n);
589
472
  t > r && (r = t);
590
473
  }
591
474
  return r;
592
- } else if (O(t)) {
593
- let r = be(e, t.key, n), i = be(e, t.value, n);
475
+ } else if (D(t)) {
476
+ let r = _e(e, t.key, n), i = _e(e, t.value, n);
594
477
  return Math.max(r, i);
595
478
  }
596
479
  return 1;
597
480
  }
598
481
  //#endregion
599
482
  //#region node_modules/yaml/browser/dist/nodes/Scalar.js
600
- var xe = (e) => !e || typeof e != "function" && typeof e != "object", z = class extends ve {
483
+ var ve = (e) => !e || typeof e != "function" && typeof e != "object", z = class extends he {
601
484
  constructor(e) {
602
- super(w), this.value = e;
485
+ super(C), this.value = e;
603
486
  }
604
487
  toJSON(e, t) {
605
488
  return t?.keep ? this.value : R(this.value, e, t);
@@ -611,8 +494,8 @@ var xe = (e) => !e || typeof e != "function" && typeof e != "object", z = class
611
494
  z.BLOCK_FOLDED = "BLOCK_FOLDED", z.BLOCK_LITERAL = "BLOCK_LITERAL", z.PLAIN = "PLAIN", z.QUOTE_DOUBLE = "QUOTE_DOUBLE", z.QUOTE_SINGLE = "QUOTE_SINGLE";
612
495
  //#endregion
613
496
  //#region node_modules/yaml/browser/dist/doc/createNode.js
614
- var Se = "tag:yaml.org,2002:";
615
- function Ce(e, t, n) {
497
+ var ye = "tag:yaml.org,2002:";
498
+ function be(e, t, n) {
616
499
  if (t) {
617
500
  let e = n.filter((e) => e.tag === t), r = e.find((e) => !e.format) ?? e[0];
618
501
  if (!r) throw Error(`Tag ${t} not found`);
@@ -620,29 +503,29 @@ function Ce(e, t, n) {
620
503
  }
621
504
  return n.find((t) => t.identify?.(e) && !t.format);
622
505
  }
623
- function we(e, t, n) {
624
- if (ne(e) && (e = e.contents), j(e)) return e;
625
- if (O(e)) {
626
- let t = n.schema[C].createNode?.(n.schema, null, n);
506
+ function xe(e, t, n) {
507
+ if (E(e) && (e = e.contents), A(e)) return e;
508
+ if (D(e)) {
509
+ let t = n.schema[x].createNode?.(n.schema, null, n);
627
510
  return t.items.push(e), t;
628
511
  }
629
512
  (e instanceof String || e instanceof Number || e instanceof Boolean || typeof BigInt < "u" && e instanceof BigInt) && (e = e.valueOf());
630
513
  let { aliasDuplicateObjects: r, onAnchor: i, onTagObj: a, schema: o, sourceObjects: s } = n, c;
631
514
  if (r && e && typeof e == "object") {
632
- if (c = s.get(e), c) return c.anchor ??= i(e), new ye(c.anchor);
515
+ if (c = s.get(e), c) return c.anchor ??= i(e), new ge(c.anchor);
633
516
  c = {
634
517
  anchor: null,
635
518
  node: null
636
519
  }, s.set(e, c);
637
520
  }
638
- t?.startsWith("!!") && (t = Se + t.slice(2));
639
- let l = Ce(e, t, o.tags);
521
+ t?.startsWith("!!") && (t = ye + t.slice(2));
522
+ let l = be(e, t, o.tags);
640
523
  if (!l) {
641
524
  if (e && typeof e.toJSON == "function" && (e = e.toJSON()), !e || typeof e != "object") {
642
525
  let t = new z(e);
643
526
  return c && (c.node = t), t;
644
527
  }
645
- l = e instanceof Map ? o[C] : Symbol.iterator in Object(e) ? o[T] : o[C];
528
+ l = e instanceof Map ? o[x] : Symbol.iterator in Object(e) ? o[ee] : o[x];
646
529
  }
647
530
  a && (a(l), delete n.onTagObj);
648
531
  let u = l?.createNode ? l.createNode(n.schema, e, n) : typeof l?.nodeClass?.from == "function" ? l.nodeClass.from(n.schema, e, n) : new z(e);
@@ -650,7 +533,7 @@ function we(e, t, n) {
650
533
  }
651
534
  //#endregion
652
535
  //#region node_modules/yaml/browser/dist/nodes/Collection.js
653
- function Te(e, t, n) {
536
+ function Se(e, t, n) {
654
537
  let r = n;
655
538
  for (let e = t.length - 1; e >= 0; --e) {
656
539
  let n = t[e];
@@ -659,7 +542,7 @@ function Te(e, t, n) {
659
542
  e[n] = r, r = e;
660
543
  } else r = new Map([[n, r]]);
661
544
  }
662
- return we(r, void 0, {
545
+ return xe(r, void 0, {
663
546
  aliasDuplicateObjects: !1,
664
547
  keepUndefined: !1,
665
548
  onAnchor: () => {
@@ -669,7 +552,7 @@ function Te(e, t, n) {
669
552
  sourceObjects: /* @__PURE__ */ new Map()
670
553
  });
671
554
  }
672
- var Ee = (e) => e == null || typeof e == "object" && !!e[Symbol.iterator]().next().done, De = class extends ve {
555
+ var Ce = (e) => e == null || typeof e == "object" && !!e[Symbol.iterator]().next().done, we = class extends he {
673
556
  constructor(e, t) {
674
557
  super(e), Object.defineProperty(this, "schema", {
675
558
  value: t,
@@ -680,14 +563,14 @@ var Ee = (e) => e == null || typeof e == "object" && !!e[Symbol.iterator]().next
680
563
  }
681
564
  clone(e) {
682
565
  let t = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this));
683
- return e && (t.schema = e), t.items = t.items.map((t) => j(t) || O(t) ? t.clone(e) : t), this.range && (t.range = this.range.slice()), t;
566
+ return e && (t.schema = e), t.items = t.items.map((t) => A(t) || D(t) ? t.clone(e) : t), this.range && (t.range = this.range.slice()), t;
684
567
  }
685
568
  addIn(e, t) {
686
- if (Ee(e)) this.add(t);
569
+ if (Ce(e)) this.add(t);
687
570
  else {
688
571
  let [n, ...r] = e, i = this.get(n, !0);
689
- if (A(i)) i.addIn(r, t);
690
- else if (i === void 0 && this.schema) this.set(n, Te(this.schema, r, t));
572
+ if (k(i)) i.addIn(r, t);
573
+ else if (i === void 0 && this.schema) this.set(n, Se(this.schema, r, t));
691
574
  else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);
692
575
  }
693
576
  }
@@ -695,42 +578,42 @@ var Ee = (e) => e == null || typeof e == "object" && !!e[Symbol.iterator]().next
695
578
  let [t, ...n] = e;
696
579
  if (n.length === 0) return this.delete(t);
697
580
  let r = this.get(t, !0);
698
- if (A(r)) return r.deleteIn(n);
581
+ if (k(r)) return r.deleteIn(n);
699
582
  throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`);
700
583
  }
701
584
  getIn(e, t) {
702
585
  let [n, ...r] = e, i = this.get(n, !0);
703
- return r.length === 0 ? !t && k(i) ? i.value : i : A(i) ? i.getIn(r, t) : void 0;
586
+ return r.length === 0 ? !t && O(i) ? i.value : i : k(i) ? i.getIn(r, t) : void 0;
704
587
  }
705
588
  hasAllNullValues(e) {
706
589
  return this.items.every((t) => {
707
- if (!O(t)) return !1;
590
+ if (!D(t)) return !1;
708
591
  let n = t.value;
709
- return n == null || e && k(n) && n.value == null && !n.commentBefore && !n.comment && !n.tag;
592
+ return n == null || e && O(n) && n.value == null && !n.commentBefore && !n.comment && !n.tag;
710
593
  });
711
594
  }
712
595
  hasIn(e) {
713
596
  let [t, ...n] = e;
714
597
  if (n.length === 0) return this.has(t);
715
598
  let r = this.get(t, !0);
716
- return A(r) ? r.hasIn(n) : !1;
599
+ return k(r) ? r.hasIn(n) : !1;
717
600
  }
718
601
  setIn(e, t) {
719
602
  let [n, ...r] = e;
720
603
  if (r.length === 0) this.set(n, t);
721
604
  else {
722
605
  let e = this.get(n, !0);
723
- if (A(e)) e.setIn(r, t);
724
- else if (e === void 0 && this.schema) this.set(n, Te(this.schema, r, t));
606
+ if (k(e)) e.setIn(r, t);
607
+ else if (e === void 0 && this.schema) this.set(n, Se(this.schema, r, t));
725
608
  else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);
726
609
  }
727
610
  }
728
- }, Oe = (e) => e.replace(/^(?!$)(?: $)?/gm, "#");
611
+ }, Te = (e) => e.replace(/^(?!$)(?: $)?/gm, "#");
729
612
  function B(e, t) {
730
613
  return /^\n+$/.test(e) ? e.substring(1) : t ? e.replace(/^(?! *$)/gm, t) : e;
731
614
  }
732
- var V = (e, t, n) => e.endsWith("\n") ? B(n, t) : n.includes("\n") ? "\n" + B(n, t) : (e.endsWith(" ") ? "" : " ") + n, ke = "flow", Ae = "block", je = "quoted";
733
- function Me(e, t, n = "flow", { indentAtStart: r, lineWidth: i = 80, minContentWidth: a = 20, onFold: o, onOverflow: s } = {}) {
615
+ var V = (e, t, n) => e.endsWith("\n") ? B(n, t) : n.includes("\n") ? "\n" + B(n, t) : (e.endsWith(" ") ? "" : " ") + n, Ee = "flow", De = "block", Oe = "quoted";
616
+ function ke(e, t, n = "flow", { indentAtStart: r, lineWidth: i = 80, minContentWidth: a = 20, onFold: o, onOverflow: s } = {}) {
734
617
  if (!i || i < 0) return e;
735
618
  i < a && (a = 0);
736
619
  let c = Math.max(1 + a, 1 + i - t.length);
@@ -738,7 +621,7 @@ function Me(e, t, n = "flow", { indentAtStart: r, lineWidth: i = 80, minContentW
738
621
  let l = [], u = {}, d = i - t.length;
739
622
  typeof r == "number" && (r > i - Math.max(2, a) ? l.push(0) : d = i - r);
740
623
  let f, p, m = !1, h = -1, g = -1, _ = -1;
741
- n === "block" && (h = Ne(e, h, t.length), h !== -1 && (d = h + c));
624
+ n === "block" && (h = Ae(e, h, t.length), h !== -1 && (d = h + c));
742
625
  for (let r; r = e[h += 1];) {
743
626
  if (n === "quoted" && r === "\\") {
744
627
  switch (g = h, e[h + 1]) {
@@ -755,7 +638,7 @@ function Me(e, t, n = "flow", { indentAtStart: r, lineWidth: i = 80, minContentW
755
638
  }
756
639
  _ = h;
757
640
  }
758
- if (r === "\n") n === "block" && (h = Ne(e, h, t.length)), d = h + t.length + c, f = void 0;
641
+ if (r === "\n") n === "block" && (h = Ae(e, h, t.length)), d = h + t.length + c, f = void 0;
759
642
  else {
760
643
  if (r === " " && p && p !== " " && p !== "\n" && p !== " ") {
761
644
  let t = e[h + 1];
@@ -780,7 +663,7 @@ function Me(e, t, n = "flow", { indentAtStart: r, lineWidth: i = 80, minContentW
780
663
  }
781
664
  return v;
782
665
  }
783
- function Ne(e, t, n) {
666
+ function Ae(e, t, n) {
784
667
  let r = t, i = t + 1, a = e[i];
785
668
  for (; a === " " || a === " ";) if (t < i + n) a = e[++t];
786
669
  else {
@@ -793,12 +676,12 @@ function Ne(e, t, n) {
793
676
  }
794
677
  //#endregion
795
678
  //#region node_modules/yaml/browser/dist/stringify/stringifyString.js
796
- var Pe = (e, t) => ({
679
+ var je = (e, t) => ({
797
680
  indentAtStart: t ? e.indent.length : e.indentAtStart,
798
681
  lineWidth: e.options.lineWidth,
799
682
  minContentWidth: e.options.minContentWidth
800
- }), Fe = (e) => /^(%|---|\.\.\.)/m.test(e);
801
- function Ie(e, t, n) {
683
+ }), Me = (e) => /^(%|---|\.\.\.)/m.test(e);
684
+ function Ne(e, t, n) {
802
685
  if (!t || t < 0) return !1;
803
686
  let r = t - n, i = e.length;
804
687
  if (i <= r) return !1;
@@ -808,10 +691,10 @@ function Ie(e, t, n) {
808
691
  }
809
692
  return !0;
810
693
  }
811
- function Le(e, t) {
694
+ function Pe(e, t) {
812
695
  let n = JSON.stringify(e);
813
696
  if (t.options.doubleQuotedAsJSON) return n;
814
- let { implicitKey: r } = t, i = t.options.doubleQuotedMinMultiLineLength, a = t.indent || (Fe(e) ? " " : ""), o = "", s = 0;
697
+ let { implicitKey: r } = t, i = t.options.doubleQuotedMinMultiLineLength, a = t.indent || (Me(e) ? " " : ""), o = "", s = 0;
815
698
  for (let e = 0, t = n[e]; t; t = n[++e]) if (t === " " && n[e + 1] === "\\" && n[e + 2] === "n" && (o += n.slice(s, e) + "\\ ", e += 1, s = e, t = "\\"), t === "\\") switch (n[e + 1]) {
816
699
  case "u":
817
700
  {
@@ -856,32 +739,32 @@ function Le(e, t) {
856
739
  break;
857
740
  default: e += 1;
858
741
  }
859
- return o = s ? o + n.slice(s) : n, r ? o : Me(o, a, je, Pe(t, !1));
742
+ return o = s ? o + n.slice(s) : n, r ? o : ke(o, a, Oe, je(t, !1));
860
743
  }
861
- function Re(e, t) {
862
- if (t.options.singleQuote === !1 || t.implicitKey && e.includes("\n") || /[ \t]\n|\n[ \t]/.test(e)) return Le(e, t);
863
- let n = t.indent || (Fe(e) ? " " : ""), r = "'" + e.replace(/'/g, "''").replace(/\n+/g, `$&\n${n}`) + "'";
864
- return t.implicitKey ? r : Me(r, n, ke, Pe(t, !1));
744
+ function Fe(e, t) {
745
+ if (t.options.singleQuote === !1 || t.implicitKey && e.includes("\n") || /[ \t]\n|\n[ \t]/.test(e)) return Pe(e, t);
746
+ let n = t.indent || (Me(e) ? " " : ""), r = "'" + e.replace(/'/g, "''").replace(/\n+/g, `$&\n${n}`) + "'";
747
+ return t.implicitKey ? r : ke(r, n, Ee, je(t, !1));
865
748
  }
866
749
  function H(e, t) {
867
750
  let { singleQuote: n } = t.options, r;
868
- if (n === !1) r = Le;
751
+ if (n === !1) r = Pe;
869
752
  else {
870
753
  let t = e.includes("\""), i = e.includes("'");
871
- r = t && !i ? Re : i && !t ? Le : n ? Re : Le;
754
+ r = t && !i ? Fe : i && !t ? Pe : n ? Fe : Pe;
872
755
  }
873
756
  return r(e, t);
874
757
  }
875
- var ze;
758
+ var Ie;
876
759
  try {
877
- ze = /* @__PURE__ */ RegExp("(^|(?<!\n))\n+(?!\n|$)", "g");
760
+ Ie = /* @__PURE__ */ RegExp("(^|(?<!\n))\n+(?!\n|$)", "g");
878
761
  } catch {
879
- ze = /\n+(?!\n|$)/g;
762
+ Ie = /\n+(?!\n|$)/g;
880
763
  }
881
- function Be({ comment: e, type: t, value: n }, r, i, a) {
764
+ function Le({ comment: e, type: t, value: n }, r, i, a) {
882
765
  let { blockQuote: o, commentString: s, lineWidth: c } = r.options;
883
766
  if (!o || /\n[\t ]+$/.test(n)) return H(n, r);
884
- let l = r.indent || (r.forceBlockIndent || Fe(n) ? " " : ""), u = o === "literal" ? !0 : o === "folded" || t === z.BLOCK_FOLDED ? !1 : t === z.BLOCK_LITERAL ? !0 : !Ie(n, c, l.length);
767
+ let l = r.indent || (r.forceBlockIndent || Me(n) ? " " : ""), u = o === "literal" ? !0 : o === "folded" || t === z.BLOCK_FOLDED ? !1 : t === z.BLOCK_LITERAL ? !0 : !Ne(n, c, l.length);
885
768
  if (!n) return u ? "|\n" : ">\n";
886
769
  let d, f;
887
770
  for (f = n.length; f > 0; --f) {
@@ -889,7 +772,7 @@ function Be({ comment: e, type: t, value: n }, r, i, a) {
889
772
  if (e !== "\n" && e !== " " && e !== " ") break;
890
773
  }
891
774
  let p = n.substring(f), m = p.indexOf("\n");
892
- m === -1 ? d = "-" : n === p || m !== p.length - 1 ? (d = "+", a && a()) : d = "", p &&= (n = n.slice(0, -p.length), p[p.length - 1] === "\n" && (p = p.slice(0, -1)), p.replace(ze, `$&${l}`));
775
+ m === -1 ? d = "-" : n === p || m !== p.length - 1 ? (d = "+", a && a()) : d = "", p &&= (n = n.slice(0, -p.length), p[p.length - 1] === "\n" && (p = p.slice(0, -1)), p.replace(Ie, `$&${l}`));
893
776
  let h = !1, g, _ = -1;
894
777
  for (g = 0; g < n.length; ++g) {
895
778
  let e = n[g];
@@ -901,22 +784,22 @@ function Be({ comment: e, type: t, value: n }, r, i, a) {
901
784
  v &&= (n = n.substring(v.length), v.replace(/\n+/g, `$&${l}`));
902
785
  let y = (h ? l ? "2" : "1" : "") + d;
903
786
  if (e && (y += " " + s(e.replace(/ ?[\r\n]+/g, " ")), i && i()), !u) {
904
- let e = n.replace(/\n+/g, "\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${l}`), i = !1, a = Pe(r, !0);
787
+ let e = n.replace(/\n+/g, "\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${l}`), i = !1, a = je(r, !0);
905
788
  o !== "folded" && t !== z.BLOCK_FOLDED && (a.onOverflow = () => {
906
789
  i = !0;
907
790
  });
908
- let s = Me(`${v}${e}${p}`, l, Ae, a);
791
+ let s = ke(`${v}${e}${p}`, l, De, a);
909
792
  if (!i) return `>${y}\n${l}${s}`;
910
793
  }
911
794
  return n = n.replace(/\n+/g, `$&${l}`), `|${y}\n${l}${v}${n}${p}`;
912
795
  }
913
- function Ve(e, t, n, r) {
796
+ function Re(e, t, n, r) {
914
797
  let { type: i, value: a } = e, { actualString: o, implicitKey: s, indent: c, indentStep: l, inFlow: u } = t;
915
798
  if (s && a.includes("\n") || u && /[[\]{},]/.test(a)) return H(a, t);
916
- if (/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a)) return s || u || !a.includes("\n") ? H(a, t) : Be(e, t, n, r);
917
- if (!s && !u && i !== z.PLAIN && a.includes("\n")) return Be(e, t, n, r);
918
- if (Fe(a)) {
919
- if (c === "") return t.forceBlockIndent = !0, Be(e, t, n, r);
799
+ if (/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a)) return s || u || !a.includes("\n") ? H(a, t) : Le(e, t, n, r);
800
+ if (!s && !u && i !== z.PLAIN && a.includes("\n")) return Le(e, t, n, r);
801
+ if (Me(a)) {
802
+ if (c === "") return t.forceBlockIndent = !0, Le(e, t, n, r);
920
803
  if (s && c === l) return H(a, t);
921
804
  }
922
805
  let d = a.replace(/\n+/g, `$&\n${c}`);
@@ -924,18 +807,18 @@ function Ve(e, t, n, r) {
924
807
  let e = (e) => e.default && e.tag !== "tag:yaml.org,2002:str" && e.test?.test(d), { compat: n, tags: r } = t.doc.schema;
925
808
  if (r.some(e) || n?.some(e)) return H(a, t);
926
809
  }
927
- return s ? d : Me(d, c, ke, Pe(t, !1));
810
+ return s ? d : ke(d, c, Ee, je(t, !1));
928
811
  }
929
- function He(e, t, n, r) {
812
+ function ze(e, t, n, r) {
930
813
  let { implicitKey: i, inFlow: a } = t, o = typeof e.value == "string" ? e : Object.assign({}, e, { value: String(e.value) }), { type: s } = e;
931
814
  s !== z.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value) && (s = z.QUOTE_DOUBLE);
932
815
  let c = (e) => {
933
816
  switch (e) {
934
817
  case z.BLOCK_FOLDED:
935
- case z.BLOCK_LITERAL: return i || a ? H(o.value, t) : Be(o, t, n, r);
936
- case z.QUOTE_DOUBLE: return Le(o.value, t);
937
- case z.QUOTE_SINGLE: return Re(o.value, t);
938
- case z.PLAIN: return Ve(o, t, n, r);
818
+ case z.BLOCK_LITERAL: return i || a ? H(o.value, t) : Le(o, t, n, r);
819
+ case z.QUOTE_DOUBLE: return Pe(o.value, t);
820
+ case z.QUOTE_SINGLE: return Fe(o.value, t);
821
+ case z.PLAIN: return Re(o, t, n, r);
939
822
  default: return null;
940
823
  }
941
824
  }, l = c(s);
@@ -947,10 +830,10 @@ function He(e, t, n, r) {
947
830
  }
948
831
  //#endregion
949
832
  //#region node_modules/yaml/browser/dist/stringify/stringify.js
950
- function Ue(e, t) {
833
+ function Be(e, t) {
951
834
  let n = Object.assign({
952
835
  blockQuote: !0,
953
- commentString: Oe,
836
+ commentString: Te,
954
837
  defaultKeyType: null,
955
838
  defaultStringType: "PLAIN",
956
839
  directives: null,
@@ -987,13 +870,13 @@ function Ue(e, t) {
987
870
  options: n
988
871
  };
989
872
  }
990
- function We(e, t) {
873
+ function Ve(e, t) {
991
874
  if (t.tag) {
992
875
  let n = e.filter((e) => e.tag === t.tag);
993
876
  if (n.length > 0) return n.find((e) => e.format === t.format) ?? n[0];
994
877
  }
995
878
  let n, r;
996
- if (k(t)) {
879
+ if (O(t)) {
997
880
  r = t.value;
998
881
  let i = e.filter((e) => e.identify?.(r));
999
882
  if (i.length > 1) {
@@ -1008,36 +891,36 @@ function We(e, t) {
1008
891
  }
1009
892
  return n;
1010
893
  }
1011
- function Ge(e, t, { anchors: n, doc: r }) {
894
+ function He(e, t, { anchors: n, doc: r }) {
1012
895
  if (!r.directives) return "";
1013
- let i = [], a = (k(e) || A(e)) && e.anchor;
1014
- a && pe(a) && (n.add(a), i.push(`&${a}`));
896
+ let i = [], a = (O(e) || k(e)) && e.anchor;
897
+ a && de(a) && (n.add(a), i.push(`&${a}`));
1015
898
  let o = e.tag ?? (t.default ? null : t.tag);
1016
899
  return o && i.push(r.directives.tagString(o)), i.join(" ");
1017
900
  }
1018
901
  function U(e, t, n, r) {
1019
- if (O(e)) return e.toString(t, n, r);
1020
- if (D(e)) {
902
+ if (D(e)) return e.toString(t, n, r);
903
+ if (T(e)) {
1021
904
  if (t.doc.directives) return e.toString(t);
1022
905
  if (t.resolvedAliases?.has(e)) throw TypeError("Cannot stringify circular structure without alias nodes");
1023
906
  t.resolvedAliases ? t.resolvedAliases.add(e) : t.resolvedAliases = new Set([e]), e = e.resolve(t.doc);
1024
907
  }
1025
- let i, a = j(e) ? e : t.doc.createNode(e, { onTagObj: (e) => i = e });
1026
- i ??= We(t.doc.schema.tags, a);
1027
- let o = Ge(a, i, t);
908
+ let i, a = A(e) ? e : t.doc.createNode(e, { onTagObj: (e) => i = e });
909
+ i ??= Ve(t.doc.schema.tags, a);
910
+ let o = He(a, i, t);
1028
911
  o.length > 0 && (t.indentAtStart = (t.indentAtStart ?? 0) + o.length + 1);
1029
- let s = typeof i.stringify == "function" ? i.stringify(a, t, n, r) : k(a) ? He(a, t, n, r) : a.toString(t, n, r);
1030
- return o ? k(a) || s[0] === "{" || s[0] === "[" ? `${o} ${s}` : `${o}\n${t.indent}${s}` : s;
912
+ let s = typeof i.stringify == "function" ? i.stringify(a, t, n, r) : O(a) ? ze(a, t, n, r) : a.toString(t, n, r);
913
+ return o ? O(a) || s[0] === "{" || s[0] === "[" ? `${o} ${s}` : `${o}\n${t.indent}${s}` : s;
1031
914
  }
1032
915
  //#endregion
1033
916
  //#region node_modules/yaml/browser/dist/stringify/stringifyPair.js
1034
- function Ke({ key: e, value: t }, n, r, i) {
1035
- let { allNullValues: a, doc: o, indent: s, indentStep: c, options: { commentString: l, indentSeq: u, simpleKeys: d } } = n, f = j(e) && e.comment || null;
917
+ function Ue({ key: e, value: t }, n, r, i) {
918
+ let { allNullValues: a, doc: o, indent: s, indentStep: c, options: { commentString: l, indentSeq: u, simpleKeys: d } } = n, f = A(e) && e.comment || null;
1036
919
  if (d) {
1037
920
  if (f) throw Error("With simple keys, key nodes cannot have comments");
1038
- if (A(e) || !j(e) && typeof e == "object") throw Error("With simple keys, collection cannot be used as a key value");
921
+ if (k(e) || !A(e) && typeof e == "object") throw Error("With simple keys, collection cannot be used as a key value");
1039
922
  }
1040
- let p = !d && (!e || f && t == null && !n.inFlow || A(e) || (k(e) ? e.type === z.BLOCK_FOLDED || e.type === z.BLOCK_LITERAL : typeof e == "object"));
923
+ let p = !d && (!e || f && t == null && !n.inFlow || k(e) || (O(e) ? e.type === z.BLOCK_FOLDED || e.type === z.BLOCK_LITERAL : typeof e == "object"));
1041
924
  n = Object.assign({}, n, {
1042
925
  allNullValues: !1,
1043
926
  implicitKey: !p && (d || !a),
@@ -1053,7 +936,7 @@ function Ke({ key: e, value: t }, n, r, i) {
1053
936
  } else if (a && !d || t == null && p) return g = `? ${g}`, f && !m ? g += V(g, n.indent, l(f)) : h && i && i(), g;
1054
937
  m && (f = null), p ? (f && (g += V(g, n.indent, l(f))), g = `? ${g}\n${s}:`) : (g = `${g}:`, f && (g += V(g, n.indent, l(f))));
1055
938
  let _, v, y;
1056
- j(t) ? (_ = !!t.spaceBefore, v = t.commentBefore, y = t.comment) : (_ = !1, v = null, y = null, t && typeof t == "object" && (t = o.createNode(t))), n.implicitKey = !1, !p && !f && k(t) && (n.indentAtStart = g.length + 1), h = !1, !u && c.length >= 2 && !n.inFlow && !p && ie(t) && !t.flow && !t.tag && !t.anchor && (n.indent = n.indent.substring(2));
939
+ A(t) ? (_ = !!t.spaceBefore, v = t.commentBefore, y = t.comment) : (_ = !1, v = null, y = null, t && typeof t == "object" && (t = o.createNode(t))), n.implicitKey = !1, !p && !f && O(t) && (n.indentAtStart = g.length + 1), h = !1, !u && c.length >= 2 && !n.inFlow && !p && ne(t) && !t.flow && !t.tag && !t.anchor && (n.indent = n.indent.substring(2));
1057
940
  let b = !1, x = U(t, n, () => b = !0, () => h = !0), S = " ";
1058
941
  if (f || _ || v) {
1059
942
  if (S = _ ? "\n" : "", v) {
@@ -1061,7 +944,7 @@ function Ke({ key: e, value: t }, n, r, i) {
1061
944
  S += `\n${B(e, n.indent)}`;
1062
945
  }
1063
946
  x === "" && !n.inFlow ? S === "\n" && y && (S = "\n\n") : S += `\n${n.indent}`;
1064
- } else if (!p && A(t)) {
947
+ } else if (!p && k(t)) {
1065
948
  let e = x[0], r = x.indexOf("\n"), i = r !== -1, a = n.inFlow ?? t.flow ?? t.items.length === 0;
1066
949
  if (i || !a) {
1067
950
  let t = !1;
@@ -1076,27 +959,27 @@ function Ke({ key: e, value: t }, n, r, i) {
1076
959
  }
1077
960
  //#endregion
1078
961
  //#region node_modules/yaml/browser/dist/log.js
1079
- function qe(e, t) {
962
+ function We(e, t) {
1080
963
  (e === "debug" || e === "warn") && console.warn(t);
1081
964
  }
1082
965
  //#endregion
1083
966
  //#region node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js
1084
- var Je = "<<", W = {
1085
- identify: (e) => e === Je || typeof e == "symbol" && e.description === Je,
967
+ var Ge = "<<", W = {
968
+ identify: (e) => e === Ge || typeof e == "symbol" && e.description === Ge,
1086
969
  default: "key",
1087
970
  tag: "tag:yaml.org,2002:merge",
1088
971
  test: /^<<$/,
1089
- resolve: () => Object.assign(new z(Symbol(Je)), { addToJSMap: Xe }),
1090
- stringify: () => Je
1091
- }, Ye = (e, t) => (W.identify(t) || k(t) && (!t.type || t.type === z.PLAIN) && W.identify(t.value)) && e?.doc.schema.tags.some((e) => e.tag === W.tag && e.default);
1092
- function Xe(e, t, n) {
1093
- if (n = e && D(n) ? n.resolve(e.doc) : n, ie(n)) for (let r of n.items) Ze(e, t, r);
1094
- else if (Array.isArray(n)) for (let r of n) Ze(e, t, r);
1095
- else Ze(e, t, n);
972
+ resolve: () => Object.assign(new z(Symbol(Ge)), { addToJSMap: qe }),
973
+ stringify: () => Ge
974
+ }, Ke = (e, t) => (W.identify(t) || O(t) && (!t.type || t.type === z.PLAIN) && W.identify(t.value)) && e?.doc.schema.tags.some((e) => e.tag === W.tag && e.default);
975
+ function qe(e, t, n) {
976
+ if (n = e && T(n) ? n.resolve(e.doc) : n, ne(n)) for (let r of n.items) Je(e, t, r);
977
+ else if (Array.isArray(n)) for (let r of n) Je(e, t, r);
978
+ else Je(e, t, n);
1096
979
  }
1097
- function Ze(e, t, n) {
1098
- let r = e && D(n) ? n.resolve(e.doc) : n;
1099
- if (!re(r)) throw Error("Merge sources must be maps or map aliases");
980
+ function Je(e, t, n) {
981
+ let r = e && T(n) ? n.resolve(e.doc) : n;
982
+ if (!te(r)) throw Error("Merge sources must be maps or map aliases");
1100
983
  let i = r.toJSON(null, e, Map);
1101
984
  for (let [e, n] of i) t instanceof Map ? t.has(e) || t.set(e, n) : t instanceof Set ? t.add(e) : Object.prototype.hasOwnProperty.call(t, e) || Object.defineProperty(t, e, {
1102
985
  value: n,
@@ -1108,15 +991,15 @@ function Ze(e, t, n) {
1108
991
  }
1109
992
  //#endregion
1110
993
  //#region node_modules/yaml/browser/dist/nodes/addPairToJSMap.js
1111
- function Qe(e, t, { key: n, value: r }) {
1112
- if (j(n) && n.addToJSMap) n.addToJSMap(e, t, r);
1113
- else if (Ye(e, n)) Xe(e, t, r);
994
+ function Ye(e, t, { key: n, value: r }) {
995
+ if (A(n) && n.addToJSMap) n.addToJSMap(e, t, r);
996
+ else if (Ke(e, n)) qe(e, t, r);
1114
997
  else {
1115
998
  let i = R(n, "", e);
1116
999
  if (t instanceof Map) t.set(i, R(r, i, e));
1117
1000
  else if (t instanceof Set) t.add(i);
1118
1001
  else {
1119
- let a = $e(n, i, e), o = R(r, a, e);
1002
+ let a = Xe(n, i, e), o = R(r, a, e);
1120
1003
  a in t ? Object.defineProperty(t, a, {
1121
1004
  value: o,
1122
1005
  writable: !0,
@@ -1127,18 +1010,18 @@ function Qe(e, t, { key: n, value: r }) {
1127
1010
  }
1128
1011
  return t;
1129
1012
  }
1130
- function $e(e, t, n) {
1013
+ function Xe(e, t, n) {
1131
1014
  if (t === null) return "";
1132
1015
  if (typeof t != "object") return String(t);
1133
- if (j(e) && n?.doc) {
1134
- let t = Ue(n.doc, {});
1016
+ if (A(e) && n?.doc) {
1017
+ let t = Be(n.doc, {});
1135
1018
  t.anchors = /* @__PURE__ */ new Set();
1136
1019
  for (let e of n.anchors.keys()) t.anchors.add(e.anchor);
1137
1020
  t.inFlow = !0, t.inStringifyKey = !0;
1138
1021
  let r = e.toString(t);
1139
1022
  if (!n.mapKeyWarned) {
1140
1023
  let e = JSON.stringify(r);
1141
- e.length > 40 && (e = e.substring(0, 36) + "...\""), qe(n.doc.options.logLevel, `Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`), n.mapKeyWarned = !0;
1024
+ e.length > 40 && (e = e.substring(0, 36) + "...\""), We(n.doc.options.logLevel, `Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`), n.mapKeyWarned = !0;
1142
1025
  }
1143
1026
  return r;
1144
1027
  }
@@ -1146,40 +1029,40 @@ function $e(e, t, n) {
1146
1029
  }
1147
1030
  //#endregion
1148
1031
  //#region node_modules/yaml/browser/dist/nodes/Pair.js
1149
- function et(e, t, n) {
1150
- return new G(we(e, void 0, n), we(t, void 0, n));
1032
+ function Ze(e, t, n) {
1033
+ return new G(xe(e, void 0, n), xe(t, void 0, n));
1151
1034
  }
1152
1035
  var G = class e {
1153
1036
  constructor(e, t = null) {
1154
- Object.defineProperty(this, E, { value: te }), this.key = e, this.value = t;
1037
+ Object.defineProperty(this, w, { value: S }), this.key = e, this.value = t;
1155
1038
  }
1156
1039
  clone(t) {
1157
1040
  let { key: n, value: r } = this;
1158
- return j(n) && (n = n.clone(t)), j(r) && (r = r.clone(t)), new e(n, r);
1041
+ return A(n) && (n = n.clone(t)), A(r) && (r = r.clone(t)), new e(n, r);
1159
1042
  }
1160
1043
  toJSON(e, t) {
1161
- return Qe(t, t?.mapAsMap ? /* @__PURE__ */ new Map() : {}, this);
1044
+ return Ye(t, t?.mapAsMap ? /* @__PURE__ */ new Map() : {}, this);
1162
1045
  }
1163
1046
  toString(e, t, n) {
1164
- return e?.doc ? Ke(this, e, t, n) : JSON.stringify(this);
1047
+ return e?.doc ? Ue(this, e, t, n) : JSON.stringify(this);
1165
1048
  }
1166
1049
  };
1167
1050
  //#endregion
1168
1051
  //#region node_modules/yaml/browser/dist/stringify/stringifyCollection.js
1169
- function tt(e, t, n) {
1170
- return (t.inFlow ?? e.flow ? rt : nt)(e, t, n);
1052
+ function Qe(e, t, n) {
1053
+ return (t.inFlow ?? e.flow ? et : $e)(e, t, n);
1171
1054
  }
1172
- function nt({ comment: e, items: t }, n, { blockItemPrefix: r, flowChars: i, itemIndent: a, onChompKeep: o, onComment: s }) {
1055
+ function $e({ comment: e, items: t }, n, { blockItemPrefix: r, flowChars: i, itemIndent: a, onChompKeep: o, onComment: s }) {
1173
1056
  let { indent: c, options: { commentString: l } } = n, u = Object.assign({}, n, {
1174
1057
  indent: a,
1175
1058
  type: null
1176
1059
  }), d = !1, f = [];
1177
1060
  for (let e = 0; e < t.length; ++e) {
1178
1061
  let i = t[e], o = null;
1179
- if (j(i)) !d && i.spaceBefore && f.push(""), it(n, f, i.commentBefore, d), i.comment && (o = i.comment);
1180
- else if (O(i)) {
1181
- let e = j(i.key) ? i.key : null;
1182
- e && (!d && e.spaceBefore && f.push(""), it(n, f, e.commentBefore, d));
1062
+ if (A(i)) !d && i.spaceBefore && f.push(""), tt(n, f, i.commentBefore, d), i.comment && (o = i.comment);
1063
+ else if (D(i)) {
1064
+ let e = A(i.key) ? i.key : null;
1065
+ e && (!d && e.spaceBefore && f.push(""), tt(n, f, e.commentBefore, d));
1183
1066
  }
1184
1067
  d = !1;
1185
1068
  let s = U(i, u, () => o = null, () => d = !0);
@@ -1196,7 +1079,7 @@ function nt({ comment: e, items: t }, n, { blockItemPrefix: r, flowChars: i, ite
1196
1079
  }
1197
1080
  return e ? (p += "\n" + B(l(e), c), s && s()) : d && o && o(), p;
1198
1081
  }
1199
- function rt({ items: e }, t, { flowChars: n, itemIndent: r }) {
1082
+ function et({ items: e }, t, { flowChars: n, itemIndent: r }) {
1200
1083
  let { indent: i, indentStep: a, flowCollectionPadding: o, options: { commentString: s } } = t;
1201
1084
  r += a;
1202
1085
  let c = Object.assign({}, t, {
@@ -1206,11 +1089,11 @@ function rt({ items: e }, t, { flowChars: n, itemIndent: r }) {
1206
1089
  }), l = !1, u = 0, d = [];
1207
1090
  for (let n = 0; n < e.length; ++n) {
1208
1091
  let i = e[n], a = null;
1209
- if (j(i)) i.spaceBefore && d.push(""), it(t, d, i.commentBefore, !1), i.comment && (a = i.comment);
1210
- else if (O(i)) {
1211
- let e = j(i.key) ? i.key : null;
1212
- e && (e.spaceBefore && d.push(""), it(t, d, e.commentBefore, !1), e.comment && (l = !0));
1213
- let n = j(i.value) ? i.value : null;
1092
+ if (A(i)) i.spaceBefore && d.push(""), tt(t, d, i.commentBefore, !1), i.comment && (a = i.comment);
1093
+ else if (D(i)) {
1094
+ let e = A(i.key) ? i.key : null;
1095
+ e && (e.spaceBefore && d.push(""), tt(t, d, e.commentBefore, !1), e.comment && (l = !0));
1096
+ let n = A(i.value) ? i.value : null;
1214
1097
  n ? (n.comment && (a = n.comment), n.commentBefore && (l = !0)) : i.value == null && e?.comment && (a = e.comment);
1215
1098
  }
1216
1099
  a && (l = !0);
@@ -1229,7 +1112,7 @@ function rt({ items: e }, t, { flowChars: n, itemIndent: r }) {
1229
1112
  return `${e}\n${i}${p}`;
1230
1113
  } else return `${f}${o}${d.join(" ")}${o}${p}`;
1231
1114
  }
1232
- function it({ indent: e, options: { commentString: t } }, n, r, i) {
1115
+ function tt({ indent: e, options: { commentString: t } }, n, r, i) {
1233
1116
  if (r && i && (r = r.replace(/^\n+/, "")), r) {
1234
1117
  let i = B(t(r), e);
1235
1118
  n.push(i.trimStart());
@@ -1238,21 +1121,21 @@ function it({ indent: e, options: { commentString: t } }, n, r, i) {
1238
1121
  //#endregion
1239
1122
  //#region node_modules/yaml/browser/dist/nodes/YAMLMap.js
1240
1123
  function K(e, t) {
1241
- let n = k(t) ? t.value : t;
1242
- for (let r of e) if (O(r) && (r.key === t || r.key === n || k(r.key) && r.key.value === n)) return r;
1124
+ let n = O(t) ? t.value : t;
1125
+ for (let r of e) if (D(r) && (r.key === t || r.key === n || O(r.key) && r.key.value === n)) return r;
1243
1126
  }
1244
- var q = class extends De {
1127
+ var q = class extends we {
1245
1128
  static get tagName() {
1246
1129
  return "tag:yaml.org,2002:map";
1247
1130
  }
1248
1131
  constructor(e) {
1249
- super(C, e), this.items = [];
1132
+ super(x, e), this.items = [];
1250
1133
  }
1251
1134
  static from(e, t, n) {
1252
1135
  let { keepUndefined: r, replacer: i } = n, a = new this(e), o = (e, o) => {
1253
1136
  if (typeof i == "function") o = i.call(t, e, o);
1254
1137
  else if (Array.isArray(i) && !i.includes(e)) return;
1255
- (o !== void 0 || r) && a.items.push(et(e, o, n));
1138
+ (o !== void 0 || r) && a.items.push(Ze(e, o, n));
1256
1139
  };
1257
1140
  if (t instanceof Map) for (let [e, n] of t) o(e, n);
1258
1141
  else if (t && typeof t == "object") for (let e of Object.keys(t)) o(e, t[e]);
@@ -1260,11 +1143,11 @@ var q = class extends De {
1260
1143
  }
1261
1144
  add(e, t) {
1262
1145
  let n;
1263
- n = O(e) ? e : !e || typeof e != "object" || !("key" in e) ? new G(e, e?.value) : new G(e.key, e.value);
1146
+ n = D(e) ? e : !e || typeof e != "object" || !("key" in e) ? new G(e, e?.value) : new G(e.key, e.value);
1264
1147
  let r = K(this.items, n.key), i = this.schema?.sortMapEntries;
1265
1148
  if (r) {
1266
1149
  if (!t) throw Error(`Key ${n.key} already set`);
1267
- k(r.value) && xe(n.value) ? r.value.value = n.value : r.value = n.value;
1150
+ O(r.value) && ve(n.value) ? r.value.value = n.value : r.value = n.value;
1268
1151
  } else if (i) {
1269
1152
  let e = this.items.findIndex((e) => i(n, e) < 0);
1270
1153
  e === -1 ? this.items.push(n) : this.items.splice(e, 0, n);
@@ -1276,7 +1159,7 @@ var q = class extends De {
1276
1159
  }
1277
1160
  get(e, t) {
1278
1161
  let n = K(this.items, e)?.value;
1279
- return (!t && k(n) ? n.value : n) ?? void 0;
1162
+ return (!t && O(n) ? n.value : n) ?? void 0;
1280
1163
  }
1281
1164
  has(e) {
1282
1165
  return !!K(this.items, e);
@@ -1287,13 +1170,13 @@ var q = class extends De {
1287
1170
  toJSON(e, t, n) {
1288
1171
  let r = n ? new n() : t?.mapAsMap ? /* @__PURE__ */ new Map() : {};
1289
1172
  t?.onCreate && t.onCreate(r);
1290
- for (let e of this.items) Qe(t, r, e);
1173
+ for (let e of this.items) Ye(t, r, e);
1291
1174
  return r;
1292
1175
  }
1293
1176
  toString(e, t, n) {
1294
1177
  if (!e) return JSON.stringify(this);
1295
- for (let e of this.items) if (!O(e)) throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);
1296
- return !e.allNullValues && this.hasAllNullValues(!1) && (e = Object.assign({}, e, { allNullValues: !0 })), tt(this, e, {
1178
+ for (let e of this.items) if (!D(e)) throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);
1179
+ return !e.allNullValues && this.hasAllNullValues(!1) && (e = Object.assign({}, e, { allNullValues: !0 })), Qe(this, e, {
1297
1180
  blockItemPrefix: "",
1298
1181
  flowChars: {
1299
1182
  start: "{",
@@ -1310,38 +1193,38 @@ var q = class extends De {
1310
1193
  nodeClass: q,
1311
1194
  tag: "tag:yaml.org,2002:map",
1312
1195
  resolve(e, t) {
1313
- return re(e) || t("Expected a mapping for this tag"), e;
1196
+ return te(e) || t("Expected a mapping for this tag"), e;
1314
1197
  },
1315
1198
  createNode: (e, t, n) => q.from(e, t, n)
1316
- }, Y = class extends De {
1199
+ }, Y = class extends we {
1317
1200
  static get tagName() {
1318
1201
  return "tag:yaml.org,2002:seq";
1319
1202
  }
1320
1203
  constructor(e) {
1321
- super(T, e), this.items = [];
1204
+ super(ee, e), this.items = [];
1322
1205
  }
1323
1206
  add(e) {
1324
1207
  this.items.push(e);
1325
1208
  }
1326
1209
  delete(e) {
1327
- let t = at(e);
1210
+ let t = nt(e);
1328
1211
  return typeof t == "number" ? this.items.splice(t, 1).length > 0 : !1;
1329
1212
  }
1330
1213
  get(e, t) {
1331
- let n = at(e);
1214
+ let n = nt(e);
1332
1215
  if (typeof n != "number") return;
1333
1216
  let r = this.items[n];
1334
- return !t && k(r) ? r.value : r;
1217
+ return !t && O(r) ? r.value : r;
1335
1218
  }
1336
1219
  has(e) {
1337
- let t = at(e);
1220
+ let t = nt(e);
1338
1221
  return typeof t == "number" && t < this.items.length;
1339
1222
  }
1340
1223
  set(e, t) {
1341
- let n = at(e);
1224
+ let n = nt(e);
1342
1225
  if (typeof n != "number") throw Error(`Expected a valid index, not ${e}.`);
1343
1226
  let r = this.items[n];
1344
- k(r) && xe(t) ? r.value = t : this.items[n] = t;
1227
+ O(r) && ve(t) ? r.value = t : this.items[n] = t;
1345
1228
  }
1346
1229
  toJSON(e, t) {
1347
1230
  let n = [];
@@ -1351,7 +1234,7 @@ var q = class extends De {
1351
1234
  return n;
1352
1235
  }
1353
1236
  toString(e, t, n) {
1354
- return e ? tt(this, e, {
1237
+ return e ? Qe(this, e, {
1355
1238
  blockItemPrefix: "- ",
1356
1239
  flowChars: {
1357
1240
  start: "[",
@@ -1371,14 +1254,14 @@ var q = class extends De {
1371
1254
  let n = t instanceof Set ? a : String(e++);
1372
1255
  a = r.call(t, n, a);
1373
1256
  }
1374
- i.items.push(we(a, void 0, n));
1257
+ i.items.push(xe(a, void 0, n));
1375
1258
  }
1376
1259
  }
1377
1260
  return i;
1378
1261
  }
1379
1262
  };
1380
- function at(e) {
1381
- let t = k(e) ? e.value : e;
1263
+ function nt(e) {
1264
+ let t = O(e) ? e.value : e;
1382
1265
  return t && typeof t == "string" && (t = Number(t)), typeof t == "number" && Number.isInteger(t) && t >= 0 ? t : null;
1383
1266
  }
1384
1267
  //#endregion
@@ -1389,33 +1272,33 @@ var X = {
1389
1272
  nodeClass: Y,
1390
1273
  tag: "tag:yaml.org,2002:seq",
1391
1274
  resolve(e, t) {
1392
- return ie(e) || t("Expected a sequence for this tag"), e;
1275
+ return ne(e) || t("Expected a sequence for this tag"), e;
1393
1276
  },
1394
1277
  createNode: (e, t, n) => Y.from(e, t, n)
1395
- }, ot = {
1278
+ }, rt = {
1396
1279
  identify: (e) => typeof e == "string",
1397
1280
  default: !0,
1398
1281
  tag: "tag:yaml.org,2002:str",
1399
1282
  resolve: (e) => e,
1400
1283
  stringify(e, t, n, r) {
1401
- return t = Object.assign({ actualString: !0 }, t), He(e, t, n, r);
1284
+ return t = Object.assign({ actualString: !0 }, t), ze(e, t, n, r);
1402
1285
  }
1403
- }, st = {
1286
+ }, it = {
1404
1287
  identify: (e) => e == null,
1405
1288
  createNode: () => new z(null),
1406
1289
  default: !0,
1407
1290
  tag: "tag:yaml.org,2002:null",
1408
1291
  test: /^(?:~|[Nn]ull|NULL)?$/,
1409
1292
  resolve: () => new z(null),
1410
- stringify: ({ source: e }, t) => typeof e == "string" && st.test.test(e) ? e : t.options.nullStr
1411
- }, ct = {
1293
+ stringify: ({ source: e }, t) => typeof e == "string" && it.test.test(e) ? e : t.options.nullStr
1294
+ }, at = {
1412
1295
  identify: (e) => typeof e == "boolean",
1413
1296
  default: !0,
1414
1297
  tag: "tag:yaml.org,2002:bool",
1415
1298
  test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,
1416
1299
  resolve: (e) => new z(e[0] === "t" || e[0] === "T"),
1417
1300
  stringify({ source: e, value: t }, n) {
1418
- return e && ct.test.test(e) && t === (e[0] === "t" || e[0] === "T") ? e : t ? n.options.trueStr : n.options.falseStr;
1301
+ return e && at.test.test(e) && t === (e[0] === "t" || e[0] === "T") ? e : t ? n.options.trueStr : n.options.falseStr;
1419
1302
  }
1420
1303
  };
1421
1304
  //#endregion
@@ -1435,14 +1318,14 @@ function Z({ format: e, minFractionDigits: t, tag: n, value: r }) {
1435
1318
  }
1436
1319
  //#endregion
1437
1320
  //#region node_modules/yaml/browser/dist/schema/core/float.js
1438
- var lt = {
1321
+ var ot = {
1439
1322
  identify: (e) => typeof e == "number",
1440
1323
  default: !0,
1441
1324
  tag: "tag:yaml.org,2002:float",
1442
1325
  test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
1443
1326
  resolve: (e) => e.slice(-3).toLowerCase() === "nan" ? NaN : e[0] === "-" ? -Infinity : Infinity,
1444
1327
  stringify: Z
1445
- }, ut = {
1328
+ }, st = {
1446
1329
  identify: (e) => typeof e == "number",
1447
1330
  default: !0,
1448
1331
  tag: "tag:yaml.org,2002:float",
@@ -1453,7 +1336,7 @@ var lt = {
1453
1336
  let t = Number(e.value);
1454
1337
  return isFinite(t) ? t.toExponential() : Z(e);
1455
1338
  }
1456
- }, dt = {
1339
+ }, ct = {
1457
1340
  identify: (e) => typeof e == "number",
1458
1341
  default: !0,
1459
1342
  tag: "tag:yaml.org,2002:float",
@@ -1463,59 +1346,59 @@ var lt = {
1463
1346
  return n !== -1 && e[e.length - 1] === "0" && (t.minFractionDigits = e.length - n - 1), t;
1464
1347
  },
1465
1348
  stringify: Z
1466
- }, ft = (e) => typeof e == "bigint" || Number.isInteger(e), pt = (e, t, n, { intAsBigInt: r }) => r ? BigInt(e) : parseInt(e.substring(t), n);
1467
- function mt(e, t, n) {
1349
+ }, lt = (e) => typeof e == "bigint" || Number.isInteger(e), ut = (e, t, n, { intAsBigInt: r }) => r ? BigInt(e) : parseInt(e.substring(t), n);
1350
+ function dt(e, t, n) {
1468
1351
  let { value: r } = e;
1469
- return ft(r) && r >= 0 ? n + r.toString(t) : Z(e);
1352
+ return lt(r) && r >= 0 ? n + r.toString(t) : Z(e);
1470
1353
  }
1471
- var ht = {
1472
- identify: (e) => ft(e) && e >= 0,
1354
+ var ft = {
1355
+ identify: (e) => lt(e) && e >= 0,
1473
1356
  default: !0,
1474
1357
  tag: "tag:yaml.org,2002:int",
1475
1358
  format: "OCT",
1476
1359
  test: /^0o[0-7]+$/,
1477
- resolve: (e, t, n) => pt(e, 2, 8, n),
1478
- stringify: (e) => mt(e, 8, "0o")
1479
- }, gt = {
1480
- identify: ft,
1360
+ resolve: (e, t, n) => ut(e, 2, 8, n),
1361
+ stringify: (e) => dt(e, 8, "0o")
1362
+ }, pt = {
1363
+ identify: lt,
1481
1364
  default: !0,
1482
1365
  tag: "tag:yaml.org,2002:int",
1483
1366
  test: /^[-+]?[0-9]+$/,
1484
- resolve: (e, t, n) => pt(e, 0, 10, n),
1367
+ resolve: (e, t, n) => ut(e, 0, 10, n),
1485
1368
  stringify: Z
1486
- }, _t = {
1487
- identify: (e) => ft(e) && e >= 0,
1369
+ }, mt = {
1370
+ identify: (e) => lt(e) && e >= 0,
1488
1371
  default: !0,
1489
1372
  tag: "tag:yaml.org,2002:int",
1490
1373
  format: "HEX",
1491
1374
  test: /^0x[0-9a-fA-F]+$/,
1492
- resolve: (e, t, n) => pt(e, 2, 16, n),
1493
- stringify: (e) => mt(e, 16, "0x")
1494
- }, vt = [
1375
+ resolve: (e, t, n) => ut(e, 2, 16, n),
1376
+ stringify: (e) => dt(e, 16, "0x")
1377
+ }, ht = [
1495
1378
  J,
1496
1379
  X,
1380
+ rt,
1381
+ it,
1382
+ at,
1383
+ ft,
1384
+ pt,
1385
+ mt,
1497
1386
  ot,
1498
1387
  st,
1499
- ct,
1500
- ht,
1501
- gt,
1502
- _t,
1503
- lt,
1504
- ut,
1505
- dt
1388
+ ct
1506
1389
  ];
1507
1390
  //#endregion
1508
1391
  //#region node_modules/yaml/browser/dist/schema/json/schema.js
1509
- function yt(e) {
1392
+ function gt(e) {
1510
1393
  return typeof e == "bigint" || Number.isInteger(e);
1511
1394
  }
1512
- var bt = ({ value: e }) => JSON.stringify(e), xt = [
1395
+ var _t = ({ value: e }) => JSON.stringify(e), vt = [
1513
1396
  {
1514
1397
  identify: (e) => typeof e == "string",
1515
1398
  default: !0,
1516
1399
  tag: "tag:yaml.org,2002:str",
1517
1400
  resolve: (e) => e,
1518
- stringify: bt
1401
+ stringify: _t
1519
1402
  },
1520
1403
  {
1521
1404
  identify: (e) => e == null,
@@ -1524,7 +1407,7 @@ var bt = ({ value: e }) => JSON.stringify(e), xt = [
1524
1407
  tag: "tag:yaml.org,2002:null",
1525
1408
  test: /^null$/,
1526
1409
  resolve: () => null,
1527
- stringify: bt
1410
+ stringify: _t
1528
1411
  },
1529
1412
  {
1530
1413
  identify: (e) => typeof e == "boolean",
@@ -1532,15 +1415,15 @@ var bt = ({ value: e }) => JSON.stringify(e), xt = [
1532
1415
  tag: "tag:yaml.org,2002:bool",
1533
1416
  test: /^true$|^false$/,
1534
1417
  resolve: (e) => e === "true",
1535
- stringify: bt
1418
+ stringify: _t
1536
1419
  },
1537
1420
  {
1538
- identify: yt,
1421
+ identify: gt,
1539
1422
  default: !0,
1540
1423
  tag: "tag:yaml.org,2002:int",
1541
1424
  test: /^-?(?:0|[1-9][0-9]*)$/,
1542
1425
  resolve: (e, t, { intAsBigInt: n }) => n ? BigInt(e) : parseInt(e, 10),
1543
- stringify: ({ value: e }) => yt(e) ? e.toString() : JSON.stringify(e)
1426
+ stringify: ({ value: e }) => gt(e) ? e.toString() : JSON.stringify(e)
1544
1427
  },
1545
1428
  {
1546
1429
  identify: (e) => typeof e == "number",
@@ -1548,16 +1431,16 @@ var bt = ({ value: e }) => JSON.stringify(e), xt = [
1548
1431
  tag: "tag:yaml.org,2002:float",
1549
1432
  test: /^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,
1550
1433
  resolve: (e) => parseFloat(e),
1551
- stringify: bt
1434
+ stringify: _t
1552
1435
  }
1553
- ], St = [J, X].concat(xt, {
1436
+ ], yt = [J, X].concat(vt, {
1554
1437
  default: !0,
1555
1438
  tag: "",
1556
1439
  test: /^/,
1557
1440
  resolve(e, t) {
1558
1441
  return t(`Unresolved plain scalar ${JSON.stringify(e)}`), e;
1559
1442
  }
1560
- }), Ct = {
1443
+ }), bt = {
1561
1444
  identify: (e) => e instanceof Uint8Array,
1562
1445
  default: !1,
1563
1446
  tag: "tag:yaml.org,2002:binary",
@@ -1581,7 +1464,7 @@ var bt = ({ value: e }) => JSON.stringify(e), xt = [
1581
1464
  for (let t = 0, r = 0; t < n; ++t, r += e) i[t] = s.substr(r, e);
1582
1465
  s = i.join(t === z.BLOCK_LITERAL ? "\n" : " ");
1583
1466
  }
1584
- return He({
1467
+ return ze({
1585
1468
  comment: e,
1586
1469
  type: t,
1587
1470
  value: s
@@ -1590,11 +1473,11 @@ var bt = ({ value: e }) => JSON.stringify(e), xt = [
1590
1473
  };
1591
1474
  //#endregion
1592
1475
  //#region node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js
1593
- function wt(e, t) {
1594
- if (ie(e)) for (let n = 0; n < e.items.length; ++n) {
1476
+ function xt(e, t) {
1477
+ if (ne(e)) for (let n = 0; n < e.items.length; ++n) {
1595
1478
  let r = e.items[n];
1596
- if (!O(r)) {
1597
- if (re(r)) {
1479
+ if (!D(r)) {
1480
+ if (te(r)) {
1598
1481
  r.items.length > 1 && t("Each pair must have its own sequence indicator");
1599
1482
  let e = r.items[0] || new G(new z(null));
1600
1483
  if (r.commentBefore && (e.key.commentBefore = e.key.commentBefore ? `${r.commentBefore}\n${e.key.commentBefore}` : r.commentBefore), r.comment) {
@@ -1603,13 +1486,13 @@ function wt(e, t) {
1603
1486
  }
1604
1487
  r = e;
1605
1488
  }
1606
- e.items[n] = O(r) ? r : new G(r);
1489
+ e.items[n] = D(r) ? r : new G(r);
1607
1490
  }
1608
1491
  }
1609
1492
  else t("Expected a sequence for this tag");
1610
1493
  return e;
1611
1494
  }
1612
- function Tt(e, t, n) {
1495
+ function St(e, t, n) {
1613
1496
  let { replacer: r } = n, i = new Y(e);
1614
1497
  i.tag = "tag:yaml.org,2002:pairs";
1615
1498
  let a = 0;
@@ -1623,17 +1506,17 @@ function Tt(e, t, n) {
1623
1506
  if (t.length === 1) o = t[0], s = e[o];
1624
1507
  else throw TypeError(`Expected tuple with one key, not ${t.length} keys`);
1625
1508
  } else o = e;
1626
- i.items.push(et(o, s, n));
1509
+ i.items.push(Ze(o, s, n));
1627
1510
  }
1628
1511
  return i;
1629
1512
  }
1630
- var Et = {
1513
+ var Ct = {
1631
1514
  collection: "seq",
1632
1515
  default: !1,
1633
1516
  tag: "tag:yaml.org,2002:pairs",
1634
- resolve: wt,
1635
- createNode: Tt
1636
- }, Dt = class e extends Y {
1517
+ resolve: xt,
1518
+ createNode: St
1519
+ }, wt = class e extends Y {
1637
1520
  constructor() {
1638
1521
  super(), this.add = q.prototype.add.bind(this), this.delete = q.prototype.delete.bind(this), this.get = q.prototype.get.bind(this), this.has = q.prototype.has.bind(this), this.set = q.prototype.set.bind(this), this.tag = e.tag;
1639
1522
  }
@@ -1643,57 +1526,57 @@ var Et = {
1643
1526
  t?.onCreate && t.onCreate(n);
1644
1527
  for (let e of this.items) {
1645
1528
  let r, i;
1646
- if (O(e) ? (r = R(e.key, "", t), i = R(e.value, r, t)) : r = R(e, "", t), n.has(r)) throw Error("Ordered maps must not include duplicate keys");
1529
+ if (D(e) ? (r = R(e.key, "", t), i = R(e.value, r, t)) : r = R(e, "", t), n.has(r)) throw Error("Ordered maps must not include duplicate keys");
1647
1530
  n.set(r, i);
1648
1531
  }
1649
1532
  return n;
1650
1533
  }
1651
1534
  static from(e, t, n) {
1652
- let r = Tt(e, t, n), i = new this();
1535
+ let r = St(e, t, n), i = new this();
1653
1536
  return i.items = r.items, i;
1654
1537
  }
1655
1538
  };
1656
- Dt.tag = "tag:yaml.org,2002:omap";
1657
- var Ot = {
1539
+ wt.tag = "tag:yaml.org,2002:omap";
1540
+ var Tt = {
1658
1541
  collection: "seq",
1659
1542
  identify: (e) => e instanceof Map,
1660
- nodeClass: Dt,
1543
+ nodeClass: wt,
1661
1544
  default: !1,
1662
1545
  tag: "tag:yaml.org,2002:omap",
1663
1546
  resolve(e, t) {
1664
- let n = wt(e, t), r = [];
1665
- for (let { key: e } of n.items) k(e) && (r.includes(e.value) ? t(`Ordered maps must not include duplicate keys: ${e.value}`) : r.push(e.value));
1666
- return Object.assign(new Dt(), n);
1547
+ let n = xt(e, t), r = [];
1548
+ for (let { key: e } of n.items) O(e) && (r.includes(e.value) ? t(`Ordered maps must not include duplicate keys: ${e.value}`) : r.push(e.value));
1549
+ return Object.assign(new wt(), n);
1667
1550
  },
1668
- createNode: (e, t, n) => Dt.from(e, t, n)
1551
+ createNode: (e, t, n) => wt.from(e, t, n)
1669
1552
  };
1670
1553
  //#endregion
1671
1554
  //#region node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js
1672
- function kt({ value: e, source: t }, n) {
1673
- return t && (e ? At : jt).test.test(t) ? t : e ? n.options.trueStr : n.options.falseStr;
1555
+ function Et({ value: e, source: t }, n) {
1556
+ return t && (e ? Dt : Ot).test.test(t) ? t : e ? n.options.trueStr : n.options.falseStr;
1674
1557
  }
1675
- var At = {
1558
+ var Dt = {
1676
1559
  identify: (e) => e === !0,
1677
1560
  default: !0,
1678
1561
  tag: "tag:yaml.org,2002:bool",
1679
1562
  test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,
1680
1563
  resolve: () => new z(!0),
1681
- stringify: kt
1682
- }, jt = {
1564
+ stringify: Et
1565
+ }, Ot = {
1683
1566
  identify: (e) => e === !1,
1684
1567
  default: !0,
1685
1568
  tag: "tag:yaml.org,2002:bool",
1686
1569
  test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,
1687
1570
  resolve: () => new z(!1),
1688
- stringify: kt
1689
- }, Mt = {
1571
+ stringify: Et
1572
+ }, kt = {
1690
1573
  identify: (e) => typeof e == "number",
1691
1574
  default: !0,
1692
1575
  tag: "tag:yaml.org,2002:float",
1693
1576
  test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
1694
1577
  resolve: (e) => e.slice(-3).toLowerCase() === "nan" ? NaN : e[0] === "-" ? -Infinity : Infinity,
1695
1578
  stringify: Z
1696
- }, Nt = {
1579
+ }, At = {
1697
1580
  identify: (e) => typeof e == "number",
1698
1581
  default: !0,
1699
1582
  tag: "tag:yaml.org,2002:float",
@@ -1704,7 +1587,7 @@ var At = {
1704
1587
  let t = Number(e.value);
1705
1588
  return isFinite(t) ? t.toExponential() : Z(e);
1706
1589
  }
1707
- }, Pt = {
1590
+ }, jt = {
1708
1591
  identify: (e) => typeof e == "number",
1709
1592
  default: !0,
1710
1593
  tag: "tag:yaml.org,2002:float",
@@ -1718,8 +1601,8 @@ var At = {
1718
1601
  return t;
1719
1602
  },
1720
1603
  stringify: Z
1721
- }, Ft = (e) => typeof e == "bigint" || Number.isInteger(e);
1722
- function It(e, t, n, { intAsBigInt: r }) {
1604
+ }, Mt = (e) => typeof e == "bigint" || Number.isInteger(e);
1605
+ function Nt(e, t, n, { intAsBigInt: r }) {
1723
1606
  let i = e[0];
1724
1607
  if ((i === "-" || i === "+") && (t += 1), e = e.substring(t).replace(/_/g, ""), r) {
1725
1608
  switch (n) {
@@ -1739,56 +1622,56 @@ function It(e, t, n, { intAsBigInt: r }) {
1739
1622
  let a = parseInt(e, n);
1740
1623
  return i === "-" ? -1 * a : a;
1741
1624
  }
1742
- function Lt(e, t, n) {
1625
+ function Pt(e, t, n) {
1743
1626
  let { value: r } = e;
1744
- if (Ft(r)) {
1627
+ if (Mt(r)) {
1745
1628
  let e = r.toString(t);
1746
1629
  return r < 0 ? "-" + n + e.substr(1) : n + e;
1747
1630
  }
1748
1631
  return Z(e);
1749
1632
  }
1750
- var Rt = {
1751
- identify: Ft,
1633
+ var Ft = {
1634
+ identify: Mt,
1752
1635
  default: !0,
1753
1636
  tag: "tag:yaml.org,2002:int",
1754
1637
  format: "BIN",
1755
1638
  test: /^[-+]?0b[0-1_]+$/,
1756
- resolve: (e, t, n) => It(e, 2, 2, n),
1757
- stringify: (e) => Lt(e, 2, "0b")
1758
- }, zt = {
1759
- identify: Ft,
1639
+ resolve: (e, t, n) => Nt(e, 2, 2, n),
1640
+ stringify: (e) => Pt(e, 2, "0b")
1641
+ }, It = {
1642
+ identify: Mt,
1760
1643
  default: !0,
1761
1644
  tag: "tag:yaml.org,2002:int",
1762
1645
  format: "OCT",
1763
1646
  test: /^[-+]?0[0-7_]+$/,
1764
- resolve: (e, t, n) => It(e, 1, 8, n),
1765
- stringify: (e) => Lt(e, 8, "0")
1766
- }, Bt = {
1767
- identify: Ft,
1647
+ resolve: (e, t, n) => Nt(e, 1, 8, n),
1648
+ stringify: (e) => Pt(e, 8, "0")
1649
+ }, Lt = {
1650
+ identify: Mt,
1768
1651
  default: !0,
1769
1652
  tag: "tag:yaml.org,2002:int",
1770
1653
  test: /^[-+]?[0-9][0-9_]*$/,
1771
- resolve: (e, t, n) => It(e, 0, 10, n),
1654
+ resolve: (e, t, n) => Nt(e, 0, 10, n),
1772
1655
  stringify: Z
1773
- }, Vt = {
1774
- identify: Ft,
1656
+ }, Rt = {
1657
+ identify: Mt,
1775
1658
  default: !0,
1776
1659
  tag: "tag:yaml.org,2002:int",
1777
1660
  format: "HEX",
1778
1661
  test: /^[-+]?0x[0-9a-fA-F_]+$/,
1779
- resolve: (e, t, n) => It(e, 2, 16, n),
1780
- stringify: (e) => Lt(e, 16, "0x")
1781
- }, Ht = class e extends q {
1662
+ resolve: (e, t, n) => Nt(e, 2, 16, n),
1663
+ stringify: (e) => Pt(e, 16, "0x")
1664
+ }, zt = class e extends q {
1782
1665
  constructor(t) {
1783
1666
  super(t), this.tag = e.tag;
1784
1667
  }
1785
1668
  add(e) {
1786
1669
  let t;
1787
- t = O(e) ? e : e && typeof e == "object" && "key" in e && "value" in e && e.value === null ? new G(e.key, null) : new G(e, null), K(this.items, t.key) || this.items.push(t);
1670
+ t = D(e) ? e : e && typeof e == "object" && "key" in e && "value" in e && e.value === null ? new G(e.key, null) : new G(e, null), K(this.items, t.key) || this.items.push(t);
1788
1671
  }
1789
1672
  get(e, t) {
1790
1673
  let n = K(this.items, e);
1791
- return !t && O(n) ? k(n.key) ? n.key.value : n.key : n;
1674
+ return !t && D(n) ? O(n.key) ? n.key.value : n.key : n;
1792
1675
  }
1793
1676
  set(e, t) {
1794
1677
  if (typeof t != "boolean") throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);
@@ -1805,21 +1688,21 @@ var Rt = {
1805
1688
  }
1806
1689
  static from(e, t, n) {
1807
1690
  let { replacer: r } = n, i = new this(e);
1808
- if (t && Symbol.iterator in Object(t)) for (let e of t) typeof r == "function" && (e = r.call(t, e, e)), i.items.push(et(e, null, n));
1691
+ if (t && Symbol.iterator in Object(t)) for (let e of t) typeof r == "function" && (e = r.call(t, e, e)), i.items.push(Ze(e, null, n));
1809
1692
  return i;
1810
1693
  }
1811
1694
  };
1812
- Ht.tag = "tag:yaml.org,2002:set";
1813
- var Ut = {
1695
+ zt.tag = "tag:yaml.org,2002:set";
1696
+ var Bt = {
1814
1697
  collection: "map",
1815
1698
  identify: (e) => e instanceof Set,
1816
- nodeClass: Ht,
1699
+ nodeClass: zt,
1817
1700
  default: !1,
1818
1701
  tag: "tag:yaml.org,2002:set",
1819
- createNode: (e, t, n) => Ht.from(e, t, n),
1702
+ createNode: (e, t, n) => zt.from(e, t, n),
1820
1703
  resolve(e, t) {
1821
- if (re(e)) {
1822
- if (e.hasAllNullValues(!0)) return Object.assign(new Ht(), e);
1704
+ if (te(e)) {
1705
+ if (e.hasAllNullValues(!0)) return Object.assign(new zt(), e);
1823
1706
  t("Set items must all have null values");
1824
1707
  } else t("Expected a mapping for this tag");
1825
1708
  return e;
@@ -1827,11 +1710,11 @@ var Ut = {
1827
1710
  };
1828
1711
  //#endregion
1829
1712
  //#region node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js
1830
- function Wt(e, t) {
1713
+ function Vt(e, t) {
1831
1714
  let n = e[0], r = n === "-" || n === "+" ? e.substring(1) : e, i = (e) => t ? BigInt(e) : Number(e), a = r.replace(/_/g, "").split(":").reduce((e, t) => e * i(60) + i(t), i(0));
1832
1715
  return n === "-" ? i(-1) * a : a;
1833
1716
  }
1834
- function Gt(e) {
1717
+ function Ht(e) {
1835
1718
  let { value: t } = e, n = (e) => e;
1836
1719
  if (typeof t == "bigint") n = (e) => BigInt(e);
1837
1720
  else if (isNaN(t) || !isFinite(t)) return Z(e);
@@ -1840,112 +1723,112 @@ function Gt(e) {
1840
1723
  let i = n(60), a = [t % i];
1841
1724
  return t < 60 ? a.unshift(0) : (t = (t - a[0]) / i, a.unshift(t % i), t >= 60 && (t = (t - a[0]) / i, a.unshift(t))), r + a.map((e) => String(e).padStart(2, "0")).join(":").replace(/000000\d*$/, "");
1842
1725
  }
1843
- var Kt = {
1726
+ var Ut = {
1844
1727
  identify: (e) => typeof e == "bigint" || Number.isInteger(e),
1845
1728
  default: !0,
1846
1729
  tag: "tag:yaml.org,2002:int",
1847
1730
  format: "TIME",
1848
1731
  test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,
1849
- resolve: (e, t, { intAsBigInt: n }) => Wt(e, n),
1850
- stringify: Gt
1851
- }, qt = {
1732
+ resolve: (e, t, { intAsBigInt: n }) => Vt(e, n),
1733
+ stringify: Ht
1734
+ }, Wt = {
1852
1735
  identify: (e) => typeof e == "number",
1853
1736
  default: !0,
1854
1737
  tag: "tag:yaml.org,2002:float",
1855
1738
  format: "TIME",
1856
1739
  test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,
1857
- resolve: (e) => Wt(e, !1),
1858
- stringify: Gt
1859
- }, Jt = {
1740
+ resolve: (e) => Vt(e, !1),
1741
+ stringify: Ht
1742
+ }, Gt = {
1860
1743
  identify: (e) => e instanceof Date,
1861
1744
  default: !0,
1862
1745
  tag: "tag:yaml.org,2002:timestamp",
1863
1746
  test: RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),
1864
1747
  resolve(e) {
1865
- let t = e.match(Jt.test);
1748
+ let t = e.match(Gt.test);
1866
1749
  if (!t) throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");
1867
1750
  let [, n, r, i, a, o, s] = t.map(Number), c = t[7] ? Number((t[7] + "00").substr(1, 3)) : 0, l = Date.UTC(n, r - 1, i, a || 0, o || 0, s || 0, c), u = t[8];
1868
1751
  if (u && u !== "Z") {
1869
- let e = Wt(u, !1);
1752
+ let e = Vt(u, !1);
1870
1753
  Math.abs(e) < 30 && (e *= 60), l -= 6e4 * e;
1871
1754
  }
1872
1755
  return new Date(l);
1873
1756
  },
1874
1757
  stringify: ({ value: e }) => e?.toISOString().replace(/(T00:00:00)?\.000Z$/, "") ?? ""
1875
- }, Yt = [
1758
+ }, Kt = [
1876
1759
  J,
1877
1760
  X,
1878
- ot,
1879
- st,
1761
+ rt,
1762
+ it,
1763
+ Dt,
1764
+ Ot,
1765
+ Ft,
1766
+ It,
1767
+ Lt,
1768
+ Rt,
1769
+ kt,
1880
1770
  At,
1881
1771
  jt,
1882
- Rt,
1883
- zt,
1884
- Bt,
1885
- Vt,
1886
- Mt,
1887
- Nt,
1888
- Pt,
1889
- Ct,
1772
+ bt,
1890
1773
  W,
1891
- Ot,
1892
- Et,
1774
+ Tt,
1775
+ Ct,
1776
+ Bt,
1893
1777
  Ut,
1894
- Kt,
1895
- qt,
1896
- Jt
1897
- ], Xt = new Map([
1898
- ["core", vt],
1778
+ Wt,
1779
+ Gt
1780
+ ], qt = new Map([
1781
+ ["core", ht],
1899
1782
  ["failsafe", [
1900
1783
  J,
1901
1784
  X,
1902
- ot
1785
+ rt
1903
1786
  ]],
1904
- ["json", St],
1905
- ["yaml11", Yt],
1906
- ["yaml-1.1", Yt]
1907
- ]), Zt = {
1908
- binary: Ct,
1909
- bool: ct,
1910
- float: dt,
1911
- floatExp: ut,
1912
- floatNaN: lt,
1913
- floatTime: qt,
1914
- int: gt,
1915
- intHex: _t,
1916
- intOct: ht,
1917
- intTime: Kt,
1787
+ ["json", yt],
1788
+ ["yaml11", Kt],
1789
+ ["yaml-1.1", Kt]
1790
+ ]), Jt = {
1791
+ binary: bt,
1792
+ bool: at,
1793
+ float: ct,
1794
+ floatExp: st,
1795
+ floatNaN: ot,
1796
+ floatTime: Wt,
1797
+ int: pt,
1798
+ intHex: mt,
1799
+ intOct: ft,
1800
+ intTime: Ut,
1918
1801
  map: J,
1919
1802
  merge: W,
1920
- null: st,
1921
- omap: Ot,
1922
- pairs: Et,
1803
+ null: it,
1804
+ omap: Tt,
1805
+ pairs: Ct,
1923
1806
  seq: X,
1924
- set: Ut,
1925
- timestamp: Jt
1926
- }, Qt = {
1927
- "tag:yaml.org,2002:binary": Ct,
1807
+ set: Bt,
1808
+ timestamp: Gt
1809
+ }, Yt = {
1810
+ "tag:yaml.org,2002:binary": bt,
1928
1811
  "tag:yaml.org,2002:merge": W,
1929
- "tag:yaml.org,2002:omap": Ot,
1930
- "tag:yaml.org,2002:pairs": Et,
1931
- "tag:yaml.org,2002:set": Ut,
1932
- "tag:yaml.org,2002:timestamp": Jt
1812
+ "tag:yaml.org,2002:omap": Tt,
1813
+ "tag:yaml.org,2002:pairs": Ct,
1814
+ "tag:yaml.org,2002:set": Bt,
1815
+ "tag:yaml.org,2002:timestamp": Gt
1933
1816
  };
1934
- function $t(e, t, n) {
1935
- let r = Xt.get(t);
1817
+ function Xt(e, t, n) {
1818
+ let r = qt.get(t);
1936
1819
  if (r && !e) return n && !r.includes(W) ? r.concat(W) : r.slice();
1937
1820
  let i = r;
1938
1821
  if (!i) if (Array.isArray(e)) i = [];
1939
1822
  else {
1940
- let e = Array.from(Xt.keys()).filter((e) => e !== "yaml11").map((e) => JSON.stringify(e)).join(", ");
1823
+ let e = Array.from(qt.keys()).filter((e) => e !== "yaml11").map((e) => JSON.stringify(e)).join(", ");
1941
1824
  throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`);
1942
1825
  }
1943
1826
  if (Array.isArray(e)) for (let t of e) i = i.concat(t);
1944
1827
  else typeof e == "function" && (i = e(i.slice()));
1945
1828
  return n && (i = i.concat(W)), i.reduce((e, t) => {
1946
- let n = typeof t == "string" ? Zt[t] : t;
1829
+ let n = typeof t == "string" ? Jt[t] : t;
1947
1830
  if (!n) {
1948
- let e = JSON.stringify(t), n = Object.keys(Zt).map((e) => JSON.stringify(e)).join(", ");
1831
+ let e = JSON.stringify(t), n = Object.keys(Jt).map((e) => JSON.stringify(e)).join(", ");
1949
1832
  throw Error(`Unknown custom tag ${e}; use one of ${n}`);
1950
1833
  }
1951
1834
  return e.includes(n) || e.push(n), e;
@@ -1953,9 +1836,9 @@ function $t(e, t, n) {
1953
1836
  }
1954
1837
  //#endregion
1955
1838
  //#region node_modules/yaml/browser/dist/schema/Schema.js
1956
- var en = (e, t) => e.key < t.key ? -1 : +(e.key > t.key), tn = class e {
1839
+ var Zt = (e, t) => e.key < t.key ? -1 : +(e.key > t.key), Qt = class e {
1957
1840
  constructor({ compat: e, customTags: t, merge: n, resolveKnownTags: r, schema: i, sortMapEntries: a, toStringDefaults: o }) {
1958
- this.compat = Array.isArray(e) ? $t(e, "compat") : e ? $t(null, e) : null, this.name = typeof i == "string" && i || "core", this.knownTags = r ? Qt : {}, this.tags = $t(t, this.name, n), this.toStringOptions = o ?? null, Object.defineProperty(this, C, { value: J }), Object.defineProperty(this, w, { value: ot }), Object.defineProperty(this, T, { value: X }), this.sortMapEntries = typeof a == "function" ? a : a === !0 ? en : null;
1841
+ this.compat = Array.isArray(e) ? Xt(e, "compat") : e ? Xt(null, e) : null, this.name = typeof i == "string" && i || "core", this.knownTags = r ? Yt : {}, this.tags = Xt(t, this.name, n), this.toStringOptions = o ?? null, Object.defineProperty(this, x, { value: J }), Object.defineProperty(this, C, { value: rt }), Object.defineProperty(this, ee, { value: X }), this.sortMapEntries = typeof a == "function" ? a : a === !0 ? Zt : null;
1959
1842
  }
1960
1843
  clone() {
1961
1844
  let t = Object.create(e.prototype, Object.getOwnPropertyDescriptors(this));
@@ -1964,14 +1847,14 @@ var en = (e, t) => e.key < t.key ? -1 : +(e.key > t.key), tn = class e {
1964
1847
  };
1965
1848
  //#endregion
1966
1849
  //#region node_modules/yaml/browser/dist/stringify/stringifyDocument.js
1967
- function nn(e, t) {
1850
+ function $t(e, t) {
1968
1851
  let n = [], r = t.directives === !0;
1969
1852
  if (t.directives !== !1 && e.directives) {
1970
1853
  let t = e.directives.toString(e);
1971
1854
  t ? (n.push(t), r = !0) : e.directives.docStart && (r = !0);
1972
1855
  }
1973
1856
  r && n.push("---");
1974
- let i = Ue(e, t), { commentString: a } = i.options;
1857
+ let i = Be(e, t), { commentString: a } = i.options;
1975
1858
  if (e.commentBefore) {
1976
1859
  n.length !== 1 && n.unshift("");
1977
1860
  let t = a(e.commentBefore);
@@ -1979,7 +1862,7 @@ function nn(e, t) {
1979
1862
  }
1980
1863
  let o = !1, s = null;
1981
1864
  if (e.contents) {
1982
- if (j(e.contents)) {
1865
+ if (A(e.contents)) {
1983
1866
  if (e.contents.spaceBefore && r && n.push(""), e.contents.commentBefore) {
1984
1867
  let t = a(e.contents.commentBefore);
1985
1868
  n.push(B(t, ""));
@@ -2001,9 +1884,9 @@ function nn(e, t) {
2001
1884
  }
2002
1885
  //#endregion
2003
1886
  //#region node_modules/yaml/browser/dist/doc/Document.js
2004
- var rn = class e {
1887
+ var en = class e {
2005
1888
  constructor(e, t, n) {
2006
- this.commentBefore = null, this.comment = null, this.errors = [], this.warnings = [], Object.defineProperty(this, E, { value: ee });
1889
+ this.commentBefore = null, this.comment = null, this.errors = [], this.warnings = [], Object.defineProperty(this, w, { value: b });
2007
1890
  let r = null;
2008
1891
  typeof t == "function" || Array.isArray(t) ? r = t : n === void 0 && t && (n = t, t = void 0);
2009
1892
  let i = Object.assign({
@@ -2018,24 +1901,24 @@ var rn = class e {
2018
1901
  }, n);
2019
1902
  this.options = i;
2020
1903
  let { version: a } = i;
2021
- n?._directives ? (this.directives = n._directives.atDocument(), this.directives.yaml.explicit && (a = this.directives.yaml.version)) : this.directives = new L({ version: a }), this.setSchema(a, n), this.contents = e === void 0 ? null : this.createNode(e, r, n);
1904
+ n?._directives ? (this.directives = n._directives.atDocument(), this.directives.yaml.explicit && (a = this.directives.yaml.version)) : this.directives = new I({ version: a }), this.setSchema(a, n), this.contents = e === void 0 ? null : this.createNode(e, r, n);
2022
1905
  }
2023
1906
  clone() {
2024
- let t = Object.create(e.prototype, { [E]: { value: ee } });
2025
- return t.commentBefore = this.commentBefore, t.comment = this.comment, t.errors = this.errors.slice(), t.warnings = this.warnings.slice(), t.options = Object.assign({}, this.options), this.directives && (t.directives = this.directives.clone()), t.schema = this.schema.clone(), t.contents = j(this.contents) ? this.contents.clone(t.schema) : this.contents, this.range && (t.range = this.range.slice()), t;
1907
+ let t = Object.create(e.prototype, { [w]: { value: b } });
1908
+ return t.commentBefore = this.commentBefore, t.comment = this.comment, t.errors = this.errors.slice(), t.warnings = this.warnings.slice(), t.options = Object.assign({}, this.options), this.directives && (t.directives = this.directives.clone()), t.schema = this.schema.clone(), t.contents = A(this.contents) ? this.contents.clone(t.schema) : this.contents, this.range && (t.range = this.range.slice()), t;
2026
1909
  }
2027
1910
  add(e) {
2028
- an(this.contents) && this.contents.add(e);
1911
+ tn(this.contents) && this.contents.add(e);
2029
1912
  }
2030
1913
  addIn(e, t) {
2031
- an(this.contents) && this.contents.addIn(e, t);
1914
+ tn(this.contents) && this.contents.addIn(e, t);
2032
1915
  }
2033
1916
  createAlias(e, t) {
2034
1917
  if (!e.anchor) {
2035
- let n = me(this);
2036
- e.anchor = !t || n.has(t) ? he(t || "a", n) : t;
1918
+ let n = fe(this);
1919
+ e.anchor = !t || n.has(t) ? pe(t || "a", n) : t;
2037
1920
  }
2038
- return new ye(e.anchor);
1921
+ return new ge(e.anchor);
2039
1922
  }
2040
1923
  createNode(e, t, n) {
2041
1924
  let r;
@@ -2044,7 +1927,7 @@ var rn = class e {
2044
1927
  let e = t.filter((e) => typeof e == "number" || e instanceof String || e instanceof Number).map(String);
2045
1928
  e.length > 0 && (t = t.concat(e)), r = t;
2046
1929
  } else n === void 0 && t && (n = t, t = void 0);
2047
- let { aliasDuplicateObjects: i, anchorPrefix: a, flow: o, keepUndefined: s, onTagObj: c, tag: l } = n ?? {}, { onAnchor: u, setAnchors: d, sourceObjects: f } = ge(this, a || "a"), p = {
1930
+ let { aliasDuplicateObjects: i, anchorPrefix: a, flow: o, keepUndefined: s, onTagObj: c, tag: l } = n ?? {}, { onAnchor: u, setAnchors: d, sourceObjects: f } = me(this, a || "a"), p = {
2048
1931
  aliasDuplicateObjects: i ?? !0,
2049
1932
  keepUndefined: s ?? !1,
2050
1933
  onAnchor: u,
@@ -2052,49 +1935,49 @@ var rn = class e {
2052
1935
  replacer: r,
2053
1936
  schema: this.schema,
2054
1937
  sourceObjects: f
2055
- }, m = we(e, l, p);
2056
- return o && A(m) && (m.flow = !0), d(), m;
1938
+ }, m = xe(e, l, p);
1939
+ return o && k(m) && (m.flow = !0), d(), m;
2057
1940
  }
2058
1941
  createPair(e, t, n = {}) {
2059
1942
  return new G(this.createNode(e, null, n), this.createNode(t, null, n));
2060
1943
  }
2061
1944
  delete(e) {
2062
- return an(this.contents) ? this.contents.delete(e) : !1;
1945
+ return tn(this.contents) ? this.contents.delete(e) : !1;
2063
1946
  }
2064
1947
  deleteIn(e) {
2065
- return Ee(e) ? this.contents == null ? !1 : (this.contents = null, !0) : an(this.contents) ? this.contents.deleteIn(e) : !1;
1948
+ return Ce(e) ? this.contents == null ? !1 : (this.contents = null, !0) : tn(this.contents) ? this.contents.deleteIn(e) : !1;
2066
1949
  }
2067
1950
  get(e, t) {
2068
- return A(this.contents) ? this.contents.get(e, t) : void 0;
1951
+ return k(this.contents) ? this.contents.get(e, t) : void 0;
2069
1952
  }
2070
1953
  getIn(e, t) {
2071
- return Ee(e) ? !t && k(this.contents) ? this.contents.value : this.contents : A(this.contents) ? this.contents.getIn(e, t) : void 0;
1954
+ return Ce(e) ? !t && O(this.contents) ? this.contents.value : this.contents : k(this.contents) ? this.contents.getIn(e, t) : void 0;
2072
1955
  }
2073
1956
  has(e) {
2074
- return A(this.contents) ? this.contents.has(e) : !1;
1957
+ return k(this.contents) ? this.contents.has(e) : !1;
2075
1958
  }
2076
1959
  hasIn(e) {
2077
- return Ee(e) ? this.contents !== void 0 : A(this.contents) ? this.contents.hasIn(e) : !1;
1960
+ return Ce(e) ? this.contents !== void 0 : k(this.contents) ? this.contents.hasIn(e) : !1;
2078
1961
  }
2079
1962
  set(e, t) {
2080
- this.contents == null ? this.contents = Te(this.schema, [e], t) : an(this.contents) && this.contents.set(e, t);
1963
+ this.contents == null ? this.contents = Se(this.schema, [e], t) : tn(this.contents) && this.contents.set(e, t);
2081
1964
  }
2082
1965
  setIn(e, t) {
2083
- Ee(e) ? this.contents = t : this.contents == null ? this.contents = Te(this.schema, Array.from(e), t) : an(this.contents) && this.contents.setIn(e, t);
1966
+ Ce(e) ? this.contents = t : this.contents == null ? this.contents = Se(this.schema, Array.from(e), t) : tn(this.contents) && this.contents.setIn(e, t);
2084
1967
  }
2085
1968
  setSchema(e, t = {}) {
2086
1969
  typeof e == "number" && (e = String(e));
2087
1970
  let n;
2088
1971
  switch (e) {
2089
1972
  case "1.1":
2090
- this.directives ? this.directives.yaml.version = "1.1" : this.directives = new L({ version: "1.1" }), n = {
1973
+ this.directives ? this.directives.yaml.version = "1.1" : this.directives = new I({ version: "1.1" }), n = {
2091
1974
  resolveKnownTags: !1,
2092
1975
  schema: "yaml-1.1"
2093
1976
  };
2094
1977
  break;
2095
1978
  case "1.2":
2096
1979
  case "next":
2097
- this.directives ? this.directives.yaml.version = e : this.directives = new L({ version: e }), n = {
1980
+ this.directives ? this.directives.yaml.version = e : this.directives = new I({ version: e }), n = {
2098
1981
  resolveKnownTags: !0,
2099
1982
  schema: "core"
2100
1983
  };
@@ -2108,7 +1991,7 @@ var rn = class e {
2108
1991
  }
2109
1992
  }
2110
1993
  if (t.schema instanceof Object) this.schema = t.schema;
2111
- else if (n) this.schema = new tn(Object.assign(n, t));
1994
+ else if (n) this.schema = new Qt(Object.assign(n, t));
2112
1995
  else throw Error("With a null YAML version, the { schema: Schema } option is required");
2113
1996
  }
2114
1997
  toJS({ json: e, jsonArg: t, mapAsMap: n, maxAliasCount: r, onAnchor: i, reviver: a } = {}) {
@@ -2121,7 +2004,7 @@ var rn = class e {
2121
2004
  maxAliasCount: typeof r == "number" ? r : 100
2122
2005
  }, s = R(this.contents, t ?? "", o);
2123
2006
  if (typeof i == "function") for (let { count: e, res: t } of o.anchors.values()) i(t, e);
2124
- return typeof a == "function" ? _e(a, { "": s }, "", s) : s;
2007
+ return typeof a == "function" ? L(a, { "": s }, "", s) : s;
2125
2008
  }
2126
2009
  toJSON(e, t) {
2127
2010
  return this.toJS({
@@ -2137,28 +2020,28 @@ var rn = class e {
2137
2020
  let t = JSON.stringify(e.indent);
2138
2021
  throw Error(`"indent" option must be a positive integer, not ${t}`);
2139
2022
  }
2140
- return nn(this, e);
2023
+ return $t(this, e);
2141
2024
  }
2142
2025
  };
2143
- function an(e) {
2144
- if (A(e)) return !0;
2026
+ function tn(e) {
2027
+ if (k(e)) return !0;
2145
2028
  throw Error("Expected a YAML collection as document contents");
2146
2029
  }
2147
2030
  //#endregion
2148
2031
  //#region node_modules/yaml/browser/dist/errors.js
2149
- var on = class extends Error {
2032
+ var nn = class extends Error {
2150
2033
  constructor(e, t, n, r) {
2151
2034
  super(), this.name = e, this.code = n, this.message = r, this.pos = t;
2152
2035
  }
2153
- }, sn = class extends on {
2036
+ }, rn = class extends nn {
2154
2037
  constructor(e, t, n) {
2155
2038
  super("YAMLParseError", e, t, n);
2156
2039
  }
2157
- }, cn = class extends on {
2040
+ }, an = class extends nn {
2158
2041
  constructor(e, t, n) {
2159
2042
  super("YAMLWarning", e, t, n);
2160
2043
  }
2161
- }, ln = (e, t) => (n) => {
2044
+ }, on = (e, t) => (n) => {
2162
2045
  if (n.pos[0] === -1) return;
2163
2046
  n.linePos = n.pos.map((e) => t.linePos(e));
2164
2047
  let { line: r, col: i } = n.linePos[0];
@@ -2181,7 +2064,7 @@ var on = class extends Error {
2181
2064
  };
2182
2065
  //#endregion
2183
2066
  //#region node_modules/yaml/browser/dist/compose/resolve-props.js
2184
- function un(e, { flow: t, indicator: n, next: r, offset: i, onError: a, parentIndent: o, startOnNewline: s }) {
2067
+ function sn(e, { flow: t, indicator: n, next: r, offset: i, onError: a, parentIndent: o, startOnNewline: s }) {
2185
2068
  let c = !1, l = s, u = s, d = "", f = "", p = !1, m = !1, h = null, g = null, _ = null, v = null, y = null, b = null, x = null;
2186
2069
  for (let i of e) switch (m &&= (i.type !== "space" && i.type !== "newline" && i.type !== "comma" && a(i.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), !1), h &&= (l && i.type !== "comment" && i.type !== "newline" && a(h, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), null), i.type) {
2187
2070
  case "space":
@@ -2211,7 +2094,7 @@ function un(e, { flow: t, indicator: n, next: r, offset: i, onError: a, parentIn
2211
2094
  }
2212
2095
  default: a(i, "UNEXPECTED_TOKEN", `Unexpected ${i.type} token`), l = !1, u = !1;
2213
2096
  }
2214
- let S = e[e.length - 1], ee = S ? S.offset + S.source.length : i;
2097
+ let S = e[e.length - 1], C = S ? S.offset + S.source.length : i;
2215
2098
  return m && r && r.type !== "space" && r.type !== "newline" && r.type !== "comma" && (r.type !== "scalar" || r.source !== "") && a(r.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), h && (l && h.indent <= o || r?.type === "block-map" || r?.type === "block-seq") && a(h, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), {
2216
2099
  comma: y,
2217
2100
  found: b,
@@ -2221,13 +2104,13 @@ function un(e, { flow: t, indicator: n, next: r, offset: i, onError: a, parentIn
2221
2104
  anchor: g,
2222
2105
  tag: _,
2223
2106
  newlineAfterProp: v,
2224
- end: ee,
2225
- start: x ?? ee
2107
+ end: C,
2108
+ start: x ?? C
2226
2109
  };
2227
2110
  }
2228
2111
  //#endregion
2229
2112
  //#region node_modules/yaml/browser/dist/compose/util-contains-newline.js
2230
- function dn(e) {
2113
+ function cn(e) {
2231
2114
  if (!e) return null;
2232
2115
  switch (e.type) {
2233
2116
  case "alias":
@@ -2245,7 +2128,7 @@ function dn(e) {
2245
2128
  if (t.sep) {
2246
2129
  for (let e of t.sep) if (e.type === "newline") return !0;
2247
2130
  }
2248
- if (dn(t.key) || dn(t.value)) return !0;
2131
+ if (cn(t.key) || cn(t.value)) return !0;
2249
2132
  }
2250
2133
  return !1;
2251
2134
  default: return !0;
@@ -2253,29 +2136,29 @@ function dn(e) {
2253
2136
  }
2254
2137
  //#endregion
2255
2138
  //#region node_modules/yaml/browser/dist/compose/util-flow-indent-check.js
2256
- function fn(e, t, n) {
2139
+ function ln(e, t, n) {
2257
2140
  if (t?.type === "flow-collection") {
2258
2141
  let r = t.end[0];
2259
- r.indent === e && (r.source === "]" || r.source === "}") && dn(t) && n(r, "BAD_INDENT", "Flow end indicator should be more indented than parent", !0);
2142
+ r.indent === e && (r.source === "]" || r.source === "}") && cn(t) && n(r, "BAD_INDENT", "Flow end indicator should be more indented than parent", !0);
2260
2143
  }
2261
2144
  }
2262
2145
  //#endregion
2263
2146
  //#region node_modules/yaml/browser/dist/compose/util-map-includes.js
2264
- function pn(e, t, n) {
2147
+ function un(e, t, n) {
2265
2148
  let { uniqueKeys: r } = e.options;
2266
2149
  if (r === !1) return !1;
2267
- let i = typeof r == "function" ? r : (e, t) => e === t || k(e) && k(t) && e.value === t.value;
2150
+ let i = typeof r == "function" ? r : (e, t) => e === t || O(e) && O(t) && e.value === t.value;
2268
2151
  return t.some((e) => i(e.key, n));
2269
2152
  }
2270
2153
  //#endregion
2271
2154
  //#region node_modules/yaml/browser/dist/compose/resolve-block-map.js
2272
- var mn = "All mapping items must start at the same column";
2273
- function hn({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
2155
+ var dn = "All mapping items must start at the same column";
2156
+ function fn({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
2274
2157
  let o = new (a?.nodeClass ?? q)(n.schema);
2275
2158
  n.atRoot &&= !1;
2276
2159
  let s = r.offset, c = null;
2277
2160
  for (let a of r.items) {
2278
- let { start: l, key: u, sep: d, value: f } = a, p = un(l, {
2161
+ let { start: l, key: u, sep: d, value: f } = a, p = sn(l, {
2279
2162
  indicator: "explicit-key-ind",
2280
2163
  next: u ?? d?.[0],
2281
2164
  offset: s,
@@ -2284,16 +2167,16 @@ function hn({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
2284
2167
  startOnNewline: !0
2285
2168
  }), m = !p.found;
2286
2169
  if (m) {
2287
- if (u && (u.type === "block-seq" ? i(s, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key") : "indent" in u && u.indent !== r.indent && i(s, "BAD_INDENT", mn)), !p.anchor && !p.tag && !d) {
2170
+ if (u && (u.type === "block-seq" ? i(s, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key") : "indent" in u && u.indent !== r.indent && i(s, "BAD_INDENT", dn)), !p.anchor && !p.tag && !d) {
2288
2171
  c = p.end, p.comment && (o.comment ? o.comment += "\n" + p.comment : o.comment = p.comment);
2289
2172
  continue;
2290
2173
  }
2291
- (p.newlineAfterProp || dn(u)) && i(u ?? l[l.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
2292
- } else p.found?.indent !== r.indent && i(s, "BAD_INDENT", mn);
2174
+ (p.newlineAfterProp || cn(u)) && i(u ?? l[l.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
2175
+ } else p.found?.indent !== r.indent && i(s, "BAD_INDENT", dn);
2293
2176
  n.atKey = !0;
2294
2177
  let h = p.end, g = u ? e(n, u, p, i) : t(n, h, l, null, p, i);
2295
- n.schema.compat && fn(r.indent, u, i), n.atKey = !1, pn(n, o.items, g) && i(h, "DUPLICATE_KEY", "Map keys must be unique");
2296
- let _ = un(d ?? [], {
2178
+ n.schema.compat && ln(r.indent, u, i), n.atKey = !1, un(n, o.items, g) && i(h, "DUPLICATE_KEY", "Map keys must be unique");
2179
+ let _ = sn(d ?? [], {
2297
2180
  indicator: "map-value-ind",
2298
2181
  next: f,
2299
2182
  offset: g.range[2],
@@ -2304,7 +2187,7 @@ function hn({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
2304
2187
  if (s = _.end, _.found) {
2305
2188
  m && (f?.type === "block-map" && !_.hasNewline && i(s, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), n.options.strict && p.start < _.found.offset - 1024 && i(g.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));
2306
2189
  let c = f ? e(n, f, _, i) : t(n, s, d, null, _, i);
2307
- n.schema.compat && fn(r.indent, f, i), s = c.range[2];
2190
+ n.schema.compat && ln(r.indent, f, i), s = c.range[2];
2308
2191
  let l = new G(g, c);
2309
2192
  n.options.keepSourceTokens && (l.srcToken = a), o.items.push(l);
2310
2193
  } else {
@@ -2321,12 +2204,12 @@ function hn({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
2321
2204
  }
2322
2205
  //#endregion
2323
2206
  //#region node_modules/yaml/browser/dist/compose/resolve-block-seq.js
2324
- function gn({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
2207
+ function pn({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
2325
2208
  let o = new (a?.nodeClass ?? Y)(n.schema);
2326
2209
  n.atRoot &&= !1, n.atKey &&= !1;
2327
2210
  let s = r.offset, c = null;
2328
2211
  for (let { start: a, value: l } of r.items) {
2329
- let u = un(a, {
2212
+ let u = sn(a, {
2330
2213
  indicator: "seq-item-ind",
2331
2214
  next: l,
2332
2215
  offset: s,
@@ -2340,7 +2223,7 @@ function gn({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
2340
2223
  continue;
2341
2224
  }
2342
2225
  let d = l ? e(n, l, u, i) : t(n, u.end, a, null, u, i);
2343
- n.schema.compat && fn(r.indent, l, i), s = d.range[2], o.items.push(d);
2226
+ n.schema.compat && ln(r.indent, l, i), s = d.range[2], o.items.push(d);
2344
2227
  }
2345
2228
  return o.range = [
2346
2229
  r.offset,
@@ -2350,7 +2233,7 @@ function gn({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
2350
2233
  }
2351
2234
  //#endregion
2352
2235
  //#region node_modules/yaml/browser/dist/compose/resolve-end.js
2353
- function _n(e, t, n, r) {
2236
+ function mn(e, t, n, r) {
2354
2237
  let i = "";
2355
2238
  if (e) {
2356
2239
  let a = !1, o = "";
@@ -2381,15 +2264,15 @@ function _n(e, t, n, r) {
2381
2264
  }
2382
2265
  //#endregion
2383
2266
  //#region node_modules/yaml/browser/dist/compose/resolve-flow-collection.js
2384
- var vn = "Block collections are not allowed within flow collections", yn = (e) => e && (e.type === "block-map" || e.type === "block-seq");
2385
- function bn({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
2267
+ var hn = "Block collections are not allowed within flow collections", gn = (e) => e && (e.type === "block-map" || e.type === "block-seq");
2268
+ function _n({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
2386
2269
  let o = r.start.source === "{", s = o ? "flow map" : "flow sequence", c = new (a?.nodeClass ?? (o ? q : Y))(n.schema);
2387
2270
  c.flow = !0;
2388
2271
  let l = n.atRoot;
2389
2272
  l && (n.atRoot = !1), n.atKey &&= !1;
2390
2273
  let u = r.offset + r.start.source.length;
2391
2274
  for (let a = 0; a < r.items.length; ++a) {
2392
- let l = r.items[a], { start: d, key: f, sep: p, value: m } = l, h = un(d, {
2275
+ let l = r.items[a], { start: d, key: f, sep: p, value: m } = l, h = sn(d, {
2393
2276
  flow: s,
2394
2277
  indicator: "explicit-key-ind",
2395
2278
  next: f ?? p?.[0],
@@ -2403,7 +2286,7 @@ function bn({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
2403
2286
  a === 0 && h.comma ? i(h.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${s}`) : a < r.items.length - 1 && i(h.start, "UNEXPECTED_TOKEN", `Unexpected empty item in ${s}`), h.comment && (c.comment ? c.comment += "\n" + h.comment : c.comment = h.comment), u = h.end;
2404
2287
  continue;
2405
2288
  }
2406
- !o && n.options.strict && dn(f) && i(f, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
2289
+ !o && n.options.strict && cn(f) && i(f, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
2407
2290
  }
2408
2291
  if (a === 0) h.comma && i(h.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${s}`);
2409
2292
  else if (h.comma || i(h.start, "MISSING_CHAR", `Missing , between ${s} items`), h.comment) {
@@ -2418,17 +2301,17 @@ function bn({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
2418
2301
  }
2419
2302
  if (e) {
2420
2303
  let t = c.items[c.items.length - 1];
2421
- O(t) && (t = t.value ?? t.key), t.comment ? t.comment += "\n" + e : t.comment = e, h.comment = h.comment.substring(e.length + 1);
2304
+ D(t) && (t = t.value ?? t.key), t.comment ? t.comment += "\n" + e : t.comment = e, h.comment = h.comment.substring(e.length + 1);
2422
2305
  }
2423
2306
  }
2424
2307
  if (!o && !p && !h.found) {
2425
2308
  let r = m ? e(n, m, h, i) : t(n, h.end, p, null, h, i);
2426
- c.items.push(r), u = r.range[2], yn(m) && i(r.range, "BLOCK_IN_FLOW", vn);
2309
+ c.items.push(r), u = r.range[2], gn(m) && i(r.range, "BLOCK_IN_FLOW", hn);
2427
2310
  } else {
2428
2311
  n.atKey = !0;
2429
2312
  let a = h.end, g = f ? e(n, f, h, i) : t(n, a, d, null, h, i);
2430
- yn(f) && i(g.range, "BLOCK_IN_FLOW", vn), n.atKey = !1;
2431
- let _ = un(p ?? [], {
2313
+ gn(f) && i(g.range, "BLOCK_IN_FLOW", hn), n.atKey = !1;
2314
+ let _ = sn(p ?? [], {
2432
2315
  flow: s,
2433
2316
  indicator: "map-value-ind",
2434
2317
  next: m,
@@ -2450,11 +2333,11 @@ function bn({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
2450
2333
  }
2451
2334
  } else m && ("source" in m && m.source?.[0] === ":" ? i(m, "MISSING_CHAR", `Missing space after : in ${s}`) : i(_.start, "MISSING_CHAR", `Missing , or : between ${s} items`));
2452
2335
  let v = m ? e(n, m, _, i) : _.found ? t(n, _.end, p, null, _, i) : null;
2453
- v ? yn(m) && i(v.range, "BLOCK_IN_FLOW", vn) : _.comment && (g.comment ? g.comment += "\n" + _.comment : g.comment = _.comment);
2336
+ v ? gn(m) && i(v.range, "BLOCK_IN_FLOW", hn) : _.comment && (g.comment ? g.comment += "\n" + _.comment : g.comment = _.comment);
2454
2337
  let y = new G(g, v);
2455
2338
  if (n.options.keepSourceTokens && (y.srcToken = l), o) {
2456
2339
  let e = c;
2457
- pn(n, e.items, g) && i(a, "DUPLICATE_KEY", "Map keys must be unique"), e.items.push(y);
2340
+ un(n, e.items, g) && i(a, "DUPLICATE_KEY", "Map keys must be unique"), e.items.push(y);
2458
2341
  } else {
2459
2342
  let e = new q(n.schema);
2460
2343
  e.flow = !0, e.items.push(y);
@@ -2475,7 +2358,7 @@ function bn({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
2475
2358
  i(u, l ? "MISSING_CHAR" : "BAD_INDENT", t), f && f.source.length !== 1 && p.unshift(f);
2476
2359
  }
2477
2360
  if (p.length > 0) {
2478
- let e = _n(p, m, n.options.strict, i);
2361
+ let e = mn(p, m, n.options.strict, i);
2479
2362
  e.comment && (c.comment ? c.comment += "\n" + e.comment : c.comment = e.comment), c.range = [
2480
2363
  r.offset,
2481
2364
  m,
@@ -2490,31 +2373,31 @@ function bn({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
2490
2373
  }
2491
2374
  //#endregion
2492
2375
  //#region node_modules/yaml/browser/dist/compose/compose-collection.js
2493
- function xn(e, t, n, r, i, a) {
2494
- let o = n.type === "block-map" ? hn(e, t, n, r, a) : n.type === "block-seq" ? gn(e, t, n, r, a) : bn(e, t, n, r, a), s = o.constructor;
2376
+ function vn(e, t, n, r, i, a) {
2377
+ let o = n.type === "block-map" ? fn(e, t, n, r, a) : n.type === "block-seq" ? pn(e, t, n, r, a) : _n(e, t, n, r, a), s = o.constructor;
2495
2378
  return i === "!" || i === s.tagName ? (o.tag = s.tagName, o) : (i && (o.tag = i), o);
2496
2379
  }
2497
- function Sn(e, t, n, r, i) {
2380
+ function yn(e, t, n, r, i) {
2498
2381
  let a = r.tag, o = a ? t.directives.tagName(a.source, (e) => i(a, "TAG_RESOLVE_FAILED", e)) : null;
2499
2382
  if (n.type === "block-seq") {
2500
2383
  let { anchor: e, newlineAfterProp: t } = r, n = e && a ? e.offset > a.offset ? e : a : e ?? a;
2501
2384
  n && (!t || t.offset < n.offset) && i(n, "MISSING_CHAR", "Missing newline after block sequence props");
2502
2385
  }
2503
2386
  let s = n.type === "block-map" ? "map" : n.type === "block-seq" ? "seq" : n.start.source === "{" ? "map" : "seq";
2504
- if (!a || !o || o === "!" || o === q.tagName && s === "map" || o === Y.tagName && s === "seq") return xn(e, t, n, i, o);
2387
+ if (!a || !o || o === "!" || o === q.tagName && s === "map" || o === Y.tagName && s === "seq") return vn(e, t, n, i, o);
2505
2388
  let c = t.schema.tags.find((e) => e.tag === o && e.collection === s);
2506
2389
  if (!c) {
2507
2390
  let r = t.schema.knownTags[o];
2508
2391
  if (r?.collection === s) t.schema.tags.push(Object.assign({}, r, { default: !1 })), c = r;
2509
- else return r ? i(a, "BAD_COLLECTION_TYPE", `${r.tag} used for ${s} collection, but expects ${r.collection ?? "scalar"}`, !0) : i(a, "TAG_RESOLVE_FAILED", `Unresolved tag: ${o}`, !0), xn(e, t, n, i, o);
2392
+ else return r ? i(a, "BAD_COLLECTION_TYPE", `${r.tag} used for ${s} collection, but expects ${r.collection ?? "scalar"}`, !0) : i(a, "TAG_RESOLVE_FAILED", `Unresolved tag: ${o}`, !0), vn(e, t, n, i, o);
2510
2393
  }
2511
- let l = xn(e, t, n, i, o, c), u = c.resolve?.(l, (e) => i(a, "TAG_RESOLVE_FAILED", e), t.options) ?? l, d = j(u) ? u : new z(u);
2394
+ let l = vn(e, t, n, i, o, c), u = c.resolve?.(l, (e) => i(a, "TAG_RESOLVE_FAILED", e), t.options) ?? l, d = A(u) ? u : new z(u);
2512
2395
  return d.range = l.range, d.tag = o, c?.format && (d.format = c.format), d;
2513
2396
  }
2514
2397
  //#endregion
2515
2398
  //#region node_modules/yaml/browser/dist/compose/resolve-block-scalar.js
2516
- function Cn(e, t, n) {
2517
- let r = t.offset, i = wn(t, e.options.strict, n);
2399
+ function bn(e, t, n) {
2400
+ let r = t.offset, i = xn(t, e.options.strict, n);
2518
2401
  if (!i) return {
2519
2402
  value: "",
2520
2403
  type: null,
@@ -2525,7 +2408,7 @@ function Cn(e, t, n) {
2525
2408
  r
2526
2409
  ]
2527
2410
  };
2528
- let a = i.mode === ">" ? z.BLOCK_FOLDED : z.BLOCK_LITERAL, o = t.source ? Tn(t.source) : [], s = o.length;
2411
+ let a = i.mode === ">" ? z.BLOCK_FOLDED : z.BLOCK_LITERAL, o = t.source ? Sn(t.source) : [], s = o.length;
2529
2412
  for (let e = o.length - 1; e >= 0; --e) {
2530
2413
  let t = o[e][1];
2531
2414
  if (t === "" || t === "\r") s = e;
@@ -2588,7 +2471,7 @@ function Cn(e, t, n) {
2588
2471
  ]
2589
2472
  };
2590
2473
  }
2591
- function wn({ offset: e, props: t }, n, r) {
2474
+ function xn({ offset: e, props: t }, n, r) {
2592
2475
  /* istanbul ignore if should not happen */
2593
2476
  if (t[0].type !== "block-scalar-header") return r(t[0], "IMPOSSIBLE", "Block scalar header not found"), null;
2594
2477
  let { source: i } = t[0], a = i[0], o = 0, s = "", c = -1;
@@ -2631,24 +2514,24 @@ function wn({ offset: e, props: t }, n, r) {
2631
2514
  length: d
2632
2515
  };
2633
2516
  }
2634
- function Tn(e) {
2517
+ function Sn(e) {
2635
2518
  let t = e.split(/\n( *)/), n = t[0], r = n.match(/^( *)/), i = [r?.[1] ? [r[1], n.slice(r[1].length)] : ["", n]];
2636
2519
  for (let e = 1; e < t.length; e += 2) i.push([t[e], t[e + 1]]);
2637
2520
  return i;
2638
2521
  }
2639
2522
  //#endregion
2640
2523
  //#region node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js
2641
- function En(e, t, n) {
2524
+ function Cn(e, t, n) {
2642
2525
  let { offset: r, type: i, source: a, end: o } = e, s, c, l = (e, t, i) => n(r + e, t, i);
2643
2526
  switch (i) {
2644
2527
  case "scalar":
2645
- s = z.PLAIN, c = Dn(a, l);
2528
+ s = z.PLAIN, c = wn(a, l);
2646
2529
  break;
2647
2530
  case "single-quoted-scalar":
2648
- s = z.QUOTE_SINGLE, c = On(a, l);
2531
+ s = z.QUOTE_SINGLE, c = Tn(a, l);
2649
2532
  break;
2650
2533
  case "double-quoted-scalar":
2651
- s = z.QUOTE_DOUBLE, c = An(a, l);
2534
+ s = z.QUOTE_DOUBLE, c = Dn(a, l);
2652
2535
  break;
2653
2536
  /* istanbul ignore next should not happen */
2654
2537
  default: return n(e, "UNEXPECTED_TOKEN", `Expected a flow scalar value, but found: ${i}`), {
@@ -2662,7 +2545,7 @@ function En(e, t, n) {
2662
2545
  ]
2663
2546
  };
2664
2547
  }
2665
- let u = r + a.length, d = _n(o, u, t, n);
2548
+ let u = r + a.length, d = mn(o, u, t, n);
2666
2549
  return {
2667
2550
  value: c,
2668
2551
  type: s,
@@ -2674,7 +2557,7 @@ function En(e, t, n) {
2674
2557
  ]
2675
2558
  };
2676
2559
  }
2677
- function Dn(e, t) {
2560
+ function wn(e, t) {
2678
2561
  let n = "";
2679
2562
  switch (e[0]) {
2680
2563
  /* istanbul ignore next should not happen */
@@ -2696,12 +2579,12 @@ function Dn(e, t) {
2696
2579
  n = `reserved character ${e[0]}`;
2697
2580
  break;
2698
2581
  }
2699
- return n && t(0, "BAD_SCALAR_START", `Plain value cannot start with ${n}`), kn(e);
2582
+ return n && t(0, "BAD_SCALAR_START", `Plain value cannot start with ${n}`), En(e);
2700
2583
  }
2701
- function On(e, t) {
2702
- return (e[e.length - 1] !== "'" || e.length === 1) && t(e.length, "MISSING_CHAR", "Missing closing 'quote"), kn(e.slice(1, -1)).replace(/''/g, "'");
2584
+ function Tn(e, t) {
2585
+ return (e[e.length - 1] !== "'" || e.length === 1) && t(e.length, "MISSING_CHAR", "Missing closing 'quote"), En(e.slice(1, -1)).replace(/''/g, "'");
2703
2586
  }
2704
- function kn(e) {
2587
+ function En(e) {
2705
2588
  let t, n;
2706
2589
  try {
2707
2590
  t = /* @__PURE__ */ RegExp("(.*?)(?<![ ])[ ]*\r?\n", "sy"), n = /* @__PURE__ */ RegExp("[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?\n", "sy");
@@ -2715,15 +2598,15 @@ function kn(e) {
2715
2598
  let s = /[ \t]*(.*)/sy;
2716
2599
  return s.lastIndex = o, r = s.exec(e), i + a + (r?.[1] ?? "");
2717
2600
  }
2718
- function An(e, t) {
2601
+ function Dn(e, t) {
2719
2602
  let n = "";
2720
2603
  for (let r = 1; r < e.length - 1; ++r) {
2721
2604
  let i = e[r];
2722
2605
  if (!(i === "\r" && e[r + 1] === "\n")) if (i === "\n") {
2723
- let { fold: t, offset: i } = jn(e, r);
2606
+ let { fold: t, offset: i } = On(e, r);
2724
2607
  n += t, r = i;
2725
2608
  } else if (i === "\\") {
2726
- let i = e[++r], a = Mn[i];
2609
+ let i = e[++r], a = kn[i];
2727
2610
  if (a) n += a;
2728
2611
  else if (i === "\n") for (i = e[r + 1]; i === " " || i === " ";) i = e[++r + 1];
2729
2612
  else if (i === "\r" && e[r + 1] === "\n") for (i = e[++r + 1]; i === " " || i === " ";) i = e[++r + 1];
@@ -2733,7 +2616,7 @@ function An(e, t) {
2733
2616
  u: 4,
2734
2617
  U: 8
2735
2618
  }[i];
2736
- n += Nn(e, r + 1, a, t), r += a;
2619
+ n += An(e, r + 1, a, t), r += a;
2737
2620
  } else {
2738
2621
  let i = e.substr(r - 1, 2);
2739
2622
  t(r - 1, "BAD_DQ_ESCAPE", `Invalid escape sequence ${i}`), n += i;
@@ -2746,7 +2629,7 @@ function An(e, t) {
2746
2629
  }
2747
2630
  return (e[e.length - 1] !== "\"" || e.length === 1) && t(e.length, "MISSING_CHAR", "Missing closing \"quote"), n;
2748
2631
  }
2749
- function jn(e, t) {
2632
+ function On(e, t) {
2750
2633
  let n = "", r = e[t + 1];
2751
2634
  for (; (r === " " || r === " " || r === "\n" || r === "\r") && !(r === "\r" && e[t + 2] !== "\n");) r === "\n" && (n += "\n"), t += 1, r = e[t + 1];
2752
2635
  return n ||= " ", {
@@ -2754,7 +2637,7 @@ function jn(e, t) {
2754
2637
  offset: t
2755
2638
  };
2756
2639
  }
2757
- var Mn = {
2640
+ var kn = {
2758
2641
  0: "\0",
2759
2642
  a: "\x07",
2760
2643
  b: "\b",
@@ -2774,7 +2657,7 @@ var Mn = {
2774
2657
  "\\": "\\",
2775
2658
  " ": " "
2776
2659
  };
2777
- function Nn(e, t, n, r) {
2660
+ function An(e, t, n, r) {
2778
2661
  let i = e.substr(t, n), a = i.length === n && /^[0-9a-fA-F]+$/.test(i) ? parseInt(i, 16) : NaN;
2779
2662
  if (isNaN(a)) {
2780
2663
  let i = e.substr(t - 2, n + 2);
@@ -2784,21 +2667,21 @@ function Nn(e, t, n, r) {
2784
2667
  }
2785
2668
  //#endregion
2786
2669
  //#region node_modules/yaml/browser/dist/compose/compose-scalar.js
2787
- function Pn(e, t, n, r) {
2788
- let { value: i, type: a, comment: o, range: s } = t.type === "block-scalar" ? Cn(e, t, r) : En(t, e.options.strict, r), c = n ? e.directives.tagName(n.source, (e) => r(n, "TAG_RESOLVE_FAILED", e)) : null, l;
2789
- l = e.options.stringKeys && e.atKey ? e.schema[w] : c ? Fn(e.schema, i, c, n, r) : t.type === "scalar" ? In(e, i, t, r) : e.schema[w];
2670
+ function jn(e, t, n, r) {
2671
+ let { value: i, type: a, comment: o, range: s } = t.type === "block-scalar" ? bn(e, t, r) : Cn(t, e.options.strict, r), c = n ? e.directives.tagName(n.source, (e) => r(n, "TAG_RESOLVE_FAILED", e)) : null, l;
2672
+ l = e.options.stringKeys && e.atKey ? e.schema[C] : c ? Mn(e.schema, i, c, n, r) : t.type === "scalar" ? Nn(e, i, t, r) : e.schema[C];
2790
2673
  let u;
2791
2674
  try {
2792
2675
  let a = l.resolve(i, (e) => r(n ?? t, "TAG_RESOLVE_FAILED", e), e.options);
2793
- u = k(a) ? a : new z(a);
2676
+ u = O(a) ? a : new z(a);
2794
2677
  } catch (e) {
2795
2678
  let a = e instanceof Error ? e.message : String(e);
2796
2679
  r(n ?? t, "TAG_RESOLVE_FAILED", a), u = new z(i);
2797
2680
  }
2798
2681
  return u.range = s, u.source = i, a && (u.type = a), c && (u.tag = c), l.format && (u.format = l.format), o && (u.comment = o), u;
2799
2682
  }
2800
- function Fn(e, t, n, r, i) {
2801
- if (n === "!") return e[w];
2683
+ function Mn(e, t, n, r, i) {
2684
+ if (n === "!") return e[C];
2802
2685
  let a = [];
2803
2686
  for (let t of e.tags) if (!t.collection && t.tag === n) if (t.default && t.test) a.push(t);
2804
2687
  else return t;
@@ -2807,19 +2690,19 @@ function Fn(e, t, n, r, i) {
2807
2690
  return o && !o.collection ? (e.tags.push(Object.assign({}, o, {
2808
2691
  default: !1,
2809
2692
  test: void 0
2810
- })), o) : (i(r, "TAG_RESOLVE_FAILED", `Unresolved tag: ${n}`, n !== "tag:yaml.org,2002:str"), e[w]);
2693
+ })), o) : (i(r, "TAG_RESOLVE_FAILED", `Unresolved tag: ${n}`, n !== "tag:yaml.org,2002:str"), e[C]);
2811
2694
  }
2812
- function In({ atKey: e, directives: t, schema: n }, r, i, a) {
2813
- let o = n.tags.find((t) => (t.default === !0 || e && t.default === "key") && t.test?.test(r)) || n[w];
2695
+ function Nn({ atKey: e, directives: t, schema: n }, r, i, a) {
2696
+ let o = n.tags.find((t) => (t.default === !0 || e && t.default === "key") && t.test?.test(r)) || n[C];
2814
2697
  if (n.compat) {
2815
- let e = n.compat.find((e) => e.default && e.test?.test(r)) ?? n[w];
2698
+ let e = n.compat.find((e) => e.default && e.test?.test(r)) ?? n[C];
2816
2699
  o.tag !== e.tag && a(i, "TAG_RESOLVE_FAILED", `Value may be parsed as either ${t.tagString(o.tag)} or ${t.tagString(e.tag)}`, !0);
2817
2700
  }
2818
2701
  return o;
2819
2702
  }
2820
2703
  //#endregion
2821
2704
  //#region node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js
2822
- function Ln(e, t, n) {
2705
+ function Pn(e, t, n) {
2823
2706
  if (t) {
2824
2707
  n ??= t.length;
2825
2708
  for (let r = n - 1; r >= 0; --r) {
@@ -2839,48 +2722,48 @@ function Ln(e, t, n) {
2839
2722
  }
2840
2723
  //#endregion
2841
2724
  //#region node_modules/yaml/browser/dist/compose/compose-node.js
2842
- var Rn = {
2843
- composeNode: zn,
2844
- composeEmptyNode: Bn
2725
+ var Fn = {
2726
+ composeNode: In,
2727
+ composeEmptyNode: Ln
2845
2728
  };
2846
- function zn(e, t, n, r) {
2729
+ function In(e, t, n, r) {
2847
2730
  let i = e.atKey, { spaceBefore: a, comment: o, anchor: s, tag: c } = n, l, u = !0;
2848
2731
  switch (t.type) {
2849
2732
  case "alias":
2850
- l = Vn(e, t, r), (s || c) && r(t, "ALIAS_PROPS", "An alias node must not specify any properties");
2733
+ l = Rn(e, t, r), (s || c) && r(t, "ALIAS_PROPS", "An alias node must not specify any properties");
2851
2734
  break;
2852
2735
  case "scalar":
2853
2736
  case "single-quoted-scalar":
2854
2737
  case "double-quoted-scalar":
2855
2738
  case "block-scalar":
2856
- l = Pn(e, t, c, r), s && (l.anchor = s.source.substring(1));
2739
+ l = jn(e, t, c, r), s && (l.anchor = s.source.substring(1));
2857
2740
  break;
2858
2741
  case "block-map":
2859
2742
  case "block-seq":
2860
2743
  case "flow-collection":
2861
2744
  try {
2862
- l = Sn(Rn, e, t, n, r), s && (l.anchor = s.source.substring(1));
2745
+ l = yn(Fn, e, t, n, r), s && (l.anchor = s.source.substring(1));
2863
2746
  } catch (e) {
2864
2747
  r(t, "RESOURCE_EXHAUSTION", e instanceof Error ? e.message : String(e));
2865
2748
  }
2866
2749
  break;
2867
2750
  default: r(t, "UNEXPECTED_TOKEN", t.type === "error" ? t.message : `Unsupported token (type: ${t.type})`), u = !1;
2868
2751
  }
2869
- return l ??= Bn(e, t.offset, void 0, null, n, r), s && l.anchor === "" && r(s, "BAD_ALIAS", "Anchor cannot be an empty string"), i && e.options.stringKeys && (!k(l) || typeof l.value != "string" || l.tag && l.tag !== "tag:yaml.org,2002:str") && r(c ?? t, "NON_STRING_KEY", "With stringKeys, all keys must be strings"), a && (l.spaceBefore = !0), o && (t.type === "scalar" && t.source === "" ? l.comment = o : l.commentBefore = o), e.options.keepSourceTokens && u && (l.srcToken = t), l;
2752
+ return l ??= Ln(e, t.offset, void 0, null, n, r), s && l.anchor === "" && r(s, "BAD_ALIAS", "Anchor cannot be an empty string"), i && e.options.stringKeys && (!O(l) || typeof l.value != "string" || l.tag && l.tag !== "tag:yaml.org,2002:str") && r(c ?? t, "NON_STRING_KEY", "With stringKeys, all keys must be strings"), a && (l.spaceBefore = !0), o && (t.type === "scalar" && t.source === "" ? l.comment = o : l.commentBefore = o), e.options.keepSourceTokens && u && (l.srcToken = t), l;
2870
2753
  }
2871
- function Bn(e, t, n, r, { spaceBefore: i, comment: a, anchor: o, tag: s, end: c }, l) {
2872
- let u = Pn(e, {
2754
+ function Ln(e, t, n, r, { spaceBefore: i, comment: a, anchor: o, tag: s, end: c }, l) {
2755
+ let u = jn(e, {
2873
2756
  type: "scalar",
2874
- offset: Ln(t, n, r),
2757
+ offset: Pn(t, n, r),
2875
2758
  indent: -1,
2876
2759
  source: ""
2877
2760
  }, s, l);
2878
2761
  return o && (u.anchor = o.source.substring(1), u.anchor === "" && l(o, "BAD_ALIAS", "Anchor cannot be an empty string")), i && (u.spaceBefore = !0), a && (u.comment = a, u.range[2] = c), u;
2879
2762
  }
2880
- function Vn({ options: e }, { offset: t, source: n, end: r }, i) {
2881
- let a = new ye(n.substring(1));
2763
+ function Rn({ options: e }, { offset: t, source: n, end: r }, i) {
2764
+ let a = new ge(n.substring(1));
2882
2765
  a.source === "" && i(t, "BAD_ALIAS", "Alias cannot be an empty string"), a.source.endsWith(":") && i(t + n.length - 1, "BAD_ALIAS", "Alias ending in : is ambiguous", !0);
2883
- let o = t + n.length, s = _n(r, o, e.strict, i);
2766
+ let o = t + n.length, s = mn(r, o, e.strict, i);
2884
2767
  return a.range = [
2885
2768
  t,
2886
2769
  o,
@@ -2889,14 +2772,14 @@ function Vn({ options: e }, { offset: t, source: n, end: r }, i) {
2889
2772
  }
2890
2773
  //#endregion
2891
2774
  //#region node_modules/yaml/browser/dist/compose/compose-doc.js
2892
- function Hn(e, t, { offset: n, start: r, value: i, end: a }, o) {
2893
- let s = new rn(void 0, Object.assign({ _directives: t }, e)), c = {
2775
+ function zn(e, t, { offset: n, start: r, value: i, end: a }, o) {
2776
+ let s = new en(void 0, Object.assign({ _directives: t }, e)), c = {
2894
2777
  atKey: !1,
2895
2778
  atRoot: !0,
2896
2779
  directives: s.directives,
2897
2780
  options: s.options,
2898
2781
  schema: s.schema
2899
- }, l = un(r, {
2782
+ }, l = sn(r, {
2900
2783
  indicator: "doc-start",
2901
2784
  next: i ?? a?.[0],
2902
2785
  offset: n,
@@ -2904,8 +2787,8 @@ function Hn(e, t, { offset: n, start: r, value: i, end: a }, o) {
2904
2787
  parentIndent: 0,
2905
2788
  startOnNewline: !0
2906
2789
  });
2907
- l.found && (s.directives.docStart = !0, i && (i.type === "block-map" || i.type === "block-seq") && !l.hasNewline && o(l.end, "MISSING_CHAR", "Block collection cannot start on same line with directives-end marker")), s.contents = i ? zn(c, i, l, o) : Bn(c, l.end, r, null, l, o);
2908
- let u = s.contents.range[2], d = _n(a, u, !1, o);
2790
+ l.found && (s.directives.docStart = !0, i && (i.type === "block-map" || i.type === "block-seq") && !l.hasNewline && o(l.end, "MISSING_CHAR", "Block collection cannot start on same line with directives-end marker")), s.contents = i ? In(c, i, l, o) : Ln(c, l.end, r, null, l, o);
2791
+ let u = s.contents.range[2], d = mn(a, u, !1, o);
2909
2792
  return d.comment && (s.comment = d.comment), s.range = [
2910
2793
  n,
2911
2794
  u,
@@ -2914,13 +2797,13 @@ function Hn(e, t, { offset: n, start: r, value: i, end: a }, o) {
2914
2797
  }
2915
2798
  //#endregion
2916
2799
  //#region node_modules/yaml/browser/dist/compose/composer.js
2917
- function Un(e) {
2800
+ function Bn(e) {
2918
2801
  if (typeof e == "number") return [e, e + 1];
2919
2802
  if (Array.isArray(e)) return e.length === 2 ? e : [e[0], e[1]];
2920
2803
  let { offset: t, source: n } = e;
2921
2804
  return [t, t + (typeof n == "string" ? n.length : 1)];
2922
2805
  }
2923
- function Wn(e) {
2806
+ function Vn(e) {
2924
2807
  let t = "", n = !1, r = !1;
2925
2808
  for (let i = 0; i < e.length; ++i) {
2926
2809
  let a = e[i];
@@ -2939,22 +2822,22 @@ function Wn(e) {
2939
2822
  afterEmptyLine: r
2940
2823
  };
2941
2824
  }
2942
- var Gn = class {
2825
+ var Hn = class {
2943
2826
  constructor(e = {}) {
2944
2827
  this.doc = null, this.atDirectives = !1, this.prelude = [], this.errors = [], this.warnings = [], this.onError = (e, t, n, r) => {
2945
- let i = Un(e);
2946
- r ? this.warnings.push(new cn(i, t, n)) : this.errors.push(new sn(i, t, n));
2947
- }, this.directives = new L({ version: e.version || "1.2" }), this.options = e;
2828
+ let i = Bn(e);
2829
+ r ? this.warnings.push(new an(i, t, n)) : this.errors.push(new rn(i, t, n));
2830
+ }, this.directives = new I({ version: e.version || "1.2" }), this.options = e;
2948
2831
  }
2949
2832
  decorate(e, t) {
2950
- let { comment: n, afterEmptyLine: r } = Wn(this.prelude);
2833
+ let { comment: n, afterEmptyLine: r } = Vn(this.prelude);
2951
2834
  if (n) {
2952
2835
  let i = e.contents;
2953
2836
  if (t) e.comment = e.comment ? `${e.comment}\n${n}` : n;
2954
2837
  else if (r || e.directives.docStart || !i) e.commentBefore = n;
2955
- else if (A(i) && !i.flow && i.items.length > 0) {
2838
+ else if (k(i) && !i.flow && i.items.length > 0) {
2956
2839
  let e = i.items[0];
2957
- O(e) && (e = e.key);
2840
+ D(e) && (e = e.key);
2958
2841
  let t = e.commentBefore;
2959
2842
  e.commentBefore = t ? `${n}\n${t}` : n;
2960
2843
  } else {
@@ -2966,7 +2849,7 @@ var Gn = class {
2966
2849
  }
2967
2850
  streamInfo() {
2968
2851
  return {
2969
- comment: Wn(this.prelude).comment,
2852
+ comment: Vn(this.prelude).comment,
2970
2853
  directives: this.directives,
2971
2854
  errors: this.errors,
2972
2855
  warnings: this.warnings
@@ -2980,12 +2863,12 @@ var Gn = class {
2980
2863
  switch (e.type) {
2981
2864
  case "directive":
2982
2865
  this.directives.add(e.source, (t, n, r) => {
2983
- let i = Un(e);
2866
+ let i = Bn(e);
2984
2867
  i[0] += t, this.onError(i, "BAD_DIRECTIVE", n, r);
2985
2868
  }), this.prelude.push(e.source), this.atDirectives = !0;
2986
2869
  break;
2987
2870
  case "document": {
2988
- let t = Hn(this.options, this.directives, e, this.onError);
2871
+ let t = zn(this.options, this.directives, e, this.onError);
2989
2872
  this.atDirectives && !t.directives.docStart && this.onError(e, "MISSING_CHAR", "Missing directives-end/doc-start indicator line"), this.decorate(t, !1), this.doc && (yield this.doc), this.doc = t, this.atDirectives = !1;
2990
2873
  break;
2991
2874
  }
@@ -2996,17 +2879,17 @@ var Gn = class {
2996
2879
  this.prelude.push(e.source);
2997
2880
  break;
2998
2881
  case "error": {
2999
- let t = e.source ? `${e.message}: ${JSON.stringify(e.source)}` : e.message, n = new sn(Un(e), "UNEXPECTED_TOKEN", t);
2882
+ let t = e.source ? `${e.message}: ${JSON.stringify(e.source)}` : e.message, n = new rn(Bn(e), "UNEXPECTED_TOKEN", t);
3000
2883
  this.atDirectives || !this.doc ? this.errors.push(n) : this.doc.errors.push(n);
3001
2884
  break;
3002
2885
  }
3003
2886
  case "doc-end": {
3004
2887
  if (!this.doc) {
3005
- this.errors.push(new sn(Un(e), "UNEXPECTED_TOKEN", "Unexpected doc-end without preceding document"));
2888
+ this.errors.push(new rn(Bn(e), "UNEXPECTED_TOKEN", "Unexpected doc-end without preceding document"));
3006
2889
  break;
3007
2890
  }
3008
2891
  this.doc.directives.docEnd = !0;
3009
- let t = _n(e.end, e.offset + e.source.length, this.doc.options.strict, this.onError);
2892
+ let t = mn(e.end, e.offset + e.source.length, this.doc.options.strict, this.onError);
3010
2893
  if (this.decorate(this.doc, !0), t.comment) {
3011
2894
  let e = this.doc.comment;
3012
2895
  this.doc.comment = e ? `${e}\n${t.comment}` : t.comment;
@@ -3014,13 +2897,13 @@ var Gn = class {
3014
2897
  this.doc.range[2] = t.offset;
3015
2898
  break;
3016
2899
  }
3017
- default: this.errors.push(new sn(Un(e), "UNEXPECTED_TOKEN", `Unsupported token ${e.type}`));
2900
+ default: this.errors.push(new rn(Bn(e), "UNEXPECTED_TOKEN", `Unsupported token ${e.type}`));
3018
2901
  }
3019
2902
  }
3020
2903
  *end(e = !1, t = -1) {
3021
2904
  if (this.doc) this.decorate(this.doc, !0), yield this.doc, this.doc = null;
3022
2905
  else if (e) {
3023
- let e = new rn(void 0, Object.assign({ _directives: this.directives }, this.options));
2906
+ let e = new en(void 0, Object.assign({ _directives: this.directives }, this.options));
3024
2907
  this.atDirectives && this.onError(t, "MISSING_CHAR", "Missing directives-end indicator line"), e.range = [
3025
2908
  0,
3026
2909
  t,
@@ -3028,14 +2911,14 @@ var Gn = class {
3028
2911
  ], this.decorate(e, !1), yield e;
3029
2912
  }
3030
2913
  }
3031
- }, Kn = Symbol("break visit"), qn = Symbol("skip children"), Jn = Symbol("remove item");
3032
- function Yn(e, t) {
2914
+ }, Un = Symbol("break visit"), Wn = Symbol("skip children"), Gn = Symbol("remove item");
2915
+ function Kn(e, t) {
3033
2916
  "type" in e && e.type === "document" && (e = {
3034
2917
  start: e.start,
3035
2918
  value: e.value
3036
- }), Xn(Object.freeze([]), e, t);
2919
+ }), qn(Object.freeze([]), e, t);
3037
2920
  }
3038
- Yn.BREAK = Kn, Yn.SKIP = qn, Yn.REMOVE = Jn, Yn.itemAtPath = (e, t) => {
2921
+ Kn.BREAK = Un, Kn.SKIP = Wn, Kn.REMOVE = Gn, Kn.itemAtPath = (e, t) => {
3039
2922
  let n = e;
3040
2923
  for (let [e, r] of t) {
3041
2924
  let t = n?.[e];
@@ -3043,29 +2926,29 @@ Yn.BREAK = Kn, Yn.SKIP = qn, Yn.REMOVE = Jn, Yn.itemAtPath = (e, t) => {
3043
2926
  else return;
3044
2927
  }
3045
2928
  return n;
3046
- }, Yn.parentCollection = (e, t) => {
3047
- let n = Yn.itemAtPath(e, t.slice(0, -1)), r = t[t.length - 1][0], i = n?.[r];
2929
+ }, Kn.parentCollection = (e, t) => {
2930
+ let n = Kn.itemAtPath(e, t.slice(0, -1)), r = t[t.length - 1][0], i = n?.[r];
3048
2931
  if (i && "items" in i) return i;
3049
2932
  throw Error("Parent collection not found");
3050
2933
  };
3051
- function Xn(e, t, n) {
2934
+ function qn(e, t, n) {
3052
2935
  let r = n(t, e);
3053
2936
  if (typeof r == "symbol") return r;
3054
2937
  for (let i of ["key", "value"]) {
3055
2938
  let a = t[i];
3056
2939
  if (a && "items" in a) {
3057
2940
  for (let t = 0; t < a.items.length; ++t) {
3058
- let r = Xn(Object.freeze(e.concat([[i, t]])), a.items[t], n);
2941
+ let r = qn(Object.freeze(e.concat([[i, t]])), a.items[t], n);
3059
2942
  if (typeof r == "number") t = r - 1;
3060
- else if (r === Kn) return Kn;
3061
- else r === Jn && (a.items.splice(t, 1), --t);
2943
+ else if (r === Un) return Un;
2944
+ else r === Gn && (a.items.splice(t, 1), --t);
3062
2945
  }
3063
2946
  typeof r == "function" && i === "key" && (r = r(t, e));
3064
2947
  }
3065
2948
  }
3066
2949
  return typeof r == "function" ? r(t, e) : r;
3067
2950
  }
3068
- function Zn(e) {
2951
+ function Jn(e) {
3069
2952
  switch (e) {
3070
2953
  case "": return "byte-order-mark";
3071
2954
  case "": return "doc-mode";
@@ -3112,7 +2995,7 @@ function Q(e) {
3112
2995
  default: return !1;
3113
2996
  }
3114
2997
  }
3115
- var Qn = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), $n = /* @__PURE__ */ new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"), er = /* @__PURE__ */ new Set(",[]{}"), tr = /* @__PURE__ */ new Set(" ,[]{}\n\r "), nr = (e) => !e || tr.has(e), rr = class {
2998
+ var Yn = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), Xn = /* @__PURE__ */ new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"), Zn = /* @__PURE__ */ new Set(",[]{}"), Qn = /* @__PURE__ */ new Set(" ,[]{}\n\r "), $n = (e) => !e || Qn.has(e), er = class {
3116
2999
  constructor() {
3117
3000
  this.atEnd = !1, this.blockScalarIndent = -1, this.blockScalarKeep = !1, this.buffer = "", this.flowKey = !1, this.flowLevel = 0, this.indentNext = 0, this.indentValue = 0, this.lineEndPos = null, this.next = null, this.pos = 0;
3118
3001
  }
@@ -3232,7 +3115,7 @@ var Qn = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), $n = /* @__PURE__ */
3232
3115
  case "[": return yield* this.pushCount(1), this.flowKey = !1, this.flowLevel = 1, "flow";
3233
3116
  case "}":
3234
3117
  case "]": return yield* this.pushCount(1), "doc";
3235
- case "*": return yield* this.pushUntil(nr), "doc";
3118
+ case "*": return yield* this.pushUntil($n), "doc";
3236
3119
  case "\"":
3237
3120
  case "'": return yield* this.parseQuotedScalar();
3238
3121
  case "|":
@@ -3257,7 +3140,7 @@ var Qn = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), $n = /* @__PURE__ */
3257
3140
  case "[": return yield* this.pushCount(1), this.flowKey = !1, this.flowLevel += 1, "flow";
3258
3141
  case "}":
3259
3142
  case "]": return yield* this.pushCount(1), this.flowKey = !0, --this.flowLevel, this.flowLevel ? "flow" : "doc";
3260
- case "*": return yield* this.pushUntil(nr), "flow";
3143
+ case "*": return yield* this.pushUntil($n), "flow";
3261
3144
  case "\"":
3262
3145
  case "'": return this.flowKey = !0, yield* this.parseQuotedScalar();
3263
3146
  case ":": {
@@ -3350,18 +3233,18 @@ var Qn = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), $n = /* @__PURE__ */
3350
3233
  let e = this.flowLevel > 0, t = this.pos - 1, n = this.pos - 1, r;
3351
3234
  for (; r = this.buffer[++n];) if (r === ":") {
3352
3235
  let r = this.buffer[n + 1];
3353
- if (Q(r) || e && er.has(r)) break;
3236
+ if (Q(r) || e && Zn.has(r)) break;
3354
3237
  t = n;
3355
3238
  } else if (Q(r)) {
3356
3239
  let i = this.buffer[n + 1];
3357
- if (r === "\r" && (i === "\n" ? (n += 1, r = "\n", i = this.buffer[n + 1]) : t = n), i === "#" || e && er.has(i)) break;
3240
+ if (r === "\r" && (i === "\n" ? (n += 1, r = "\n", i = this.buffer[n + 1]) : t = n), i === "#" || e && Zn.has(i)) break;
3358
3241
  if (r === "\n") {
3359
3242
  let e = this.continueScalar(n + 1);
3360
3243
  if (e === -1) break;
3361
3244
  n = Math.max(n, e - 2);
3362
3245
  }
3363
3246
  } else {
3364
- if (e && er.has(r)) break;
3247
+ if (e && Zn.has(r)) break;
3365
3248
  t = n;
3366
3249
  }
3367
3250
  return !r && !this.atEnd ? this.setNext("plain-scalar") : (yield "", yield* this.pushToIndex(t + 1, !0), e ? "flow" : "doc");
@@ -3376,12 +3259,12 @@ var Qn = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), $n = /* @__PURE__ */
3376
3259
  *pushIndicators() {
3377
3260
  switch (this.charAt(0)) {
3378
3261
  case "!": return (yield* this.pushTag()) + (yield* this.pushSpaces(!0)) + (yield* this.pushIndicators());
3379
- case "&": return (yield* this.pushUntil(nr)) + (yield* this.pushSpaces(!0)) + (yield* this.pushIndicators());
3262
+ case "&": return (yield* this.pushUntil($n)) + (yield* this.pushSpaces(!0)) + (yield* this.pushIndicators());
3380
3263
  case "-":
3381
3264
  case "?":
3382
3265
  case ":": {
3383
3266
  let e = this.flowLevel > 0, t = this.charAt(1);
3384
- if (Q(t) || e && er.has(t)) return e ? this.flowKey &&= !1 : this.indentNext = this.indentValue + 1, (yield* this.pushCount(1)) + (yield* this.pushSpaces(!0)) + (yield* this.pushIndicators());
3267
+ if (Q(t) || e && Zn.has(t)) return e ? this.flowKey &&= !1 : this.indentNext = this.indentValue + 1, (yield* this.pushCount(1)) + (yield* this.pushSpaces(!0)) + (yield* this.pushIndicators());
3385
3268
  }
3386
3269
  }
3387
3270
  return 0;
@@ -3393,8 +3276,8 @@ var Qn = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), $n = /* @__PURE__ */
3393
3276
  return yield* this.pushToIndex(t === ">" ? e + 1 : e, !1);
3394
3277
  } else {
3395
3278
  let e = this.pos + 1, t = this.buffer[e];
3396
- for (; t;) if ($n.has(t)) t = this.buffer[++e];
3397
- else if (t === "%" && Qn.has(this.buffer[e + 1]) && Qn.has(this.buffer[e + 2])) t = this.buffer[e += 3];
3279
+ for (; t;) if (Xn.has(t)) t = this.buffer[++e];
3280
+ else if (t === "%" && Yn.has(this.buffer[e + 1]) && Yn.has(this.buffer[e + 2])) t = this.buffer[e += 3];
3398
3281
  else break;
3399
3282
  return yield* this.pushToIndex(e, !1);
3400
3283
  }
@@ -3416,7 +3299,7 @@ var Qn = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), $n = /* @__PURE__ */
3416
3299
  for (; !e(n);) n = this.buffer[++t];
3417
3300
  return yield* this.pushToIndex(t, !1);
3418
3301
  }
3419
- }, ir = class {
3302
+ }, tr = class {
3420
3303
  constructor() {
3421
3304
  this.lineStarts = [], this.addNewLine = (e) => this.lineStarts.push(e), this.linePos = (e) => {
3422
3305
  let t = 0, n = this.lineStarts.length;
@@ -3446,7 +3329,7 @@ function $(e, t) {
3446
3329
  for (let n = 0; n < e.length; ++n) if (e[n].type === t) return !0;
3447
3330
  return !1;
3448
3331
  }
3449
- function ar(e) {
3332
+ function nr(e) {
3450
3333
  for (let t = 0; t < e.length; ++t) switch (e[t].type) {
3451
3334
  case "space":
3452
3335
  case "comment":
@@ -3455,7 +3338,7 @@ function ar(e) {
3455
3338
  }
3456
3339
  return -1;
3457
3340
  }
3458
- function or(e) {
3341
+ function rr(e) {
3459
3342
  switch (e?.type) {
3460
3343
  case "alias":
3461
3344
  case "scalar":
@@ -3465,7 +3348,7 @@ function or(e) {
3465
3348
  default: return !1;
3466
3349
  }
3467
3350
  }
3468
- function sr(e) {
3351
+ function ir(e) {
3469
3352
  switch (e.type) {
3470
3353
  case "document": return e.start;
3471
3354
  case "block-map": {
@@ -3477,7 +3360,7 @@ function sr(e) {
3477
3360
  default: return [];
3478
3361
  }
3479
3362
  }
3480
- function cr(e) {
3363
+ function ar(e) {
3481
3364
  if (e.length === 0) return [];
3482
3365
  let t = e.length;
3483
3366
  loop: for (; --t >= 0;) switch (e[t].type) {
@@ -3490,12 +3373,12 @@ function cr(e) {
3490
3373
  for (; e[++t]?.type === "space";);
3491
3374
  return e.splice(t, e.length);
3492
3375
  }
3493
- function lr(e) {
3494
- if (e.start.type === "flow-seq-start") for (let t of e.items) t.sep && !t.value && !$(t.start, "explicit-key-ind") && !$(t.sep, "map-value-ind") && (t.key && (t.value = t.key), delete t.key, or(t.value) ? t.value.end ? Array.prototype.push.apply(t.value.end, t.sep) : t.value.end = t.sep : Array.prototype.push.apply(t.start, t.sep), delete t.sep);
3376
+ function or(e) {
3377
+ if (e.start.type === "flow-seq-start") for (let t of e.items) t.sep && !t.value && !$(t.start, "explicit-key-ind") && !$(t.sep, "map-value-ind") && (t.key && (t.value = t.key), delete t.key, rr(t.value) ? t.value.end ? Array.prototype.push.apply(t.value.end, t.sep) : t.value.end = t.sep : Array.prototype.push.apply(t.start, t.sep), delete t.sep);
3495
3378
  }
3496
- var ur = class {
3379
+ var sr = class {
3497
3380
  constructor(e) {
3498
- this.atNewLine = !0, this.atScalar = !1, this.indent = 0, this.offset = 0, this.onKeyLine = !1, this.stack = [], this.source = "", this.type = "", this.lexer = new rr(), this.onNewLine = e;
3381
+ this.atNewLine = !0, this.atScalar = !1, this.indent = 0, this.offset = 0, this.onKeyLine = !1, this.stack = [], this.source = "", this.type = "", this.lexer = new er(), this.onNewLine = e;
3499
3382
  }
3500
3383
  *parse(e, t = !1) {
3501
3384
  this.onNewLine && this.offset === 0 && this.onNewLine(0);
@@ -3507,7 +3390,7 @@ var ur = class {
3507
3390
  this.atScalar = !1, yield* this.step(), this.offset += e.length;
3508
3391
  return;
3509
3392
  }
3510
- let t = Zn(e);
3393
+ let t = Jn(e);
3511
3394
  if (!t) {
3512
3395
  let t = `Not a YAML token: ${e}`;
3513
3396
  yield* this.pop({
@@ -3590,7 +3473,7 @@ var ur = class {
3590
3473
  else if (this.stack.length === 0) yield t;
3591
3474
  else {
3592
3475
  let e = this.peek(1);
3593
- switch (t.type === "block-scalar" ? t.indent = "indent" in e ? e.indent : 0 : t.type === "flow-collection" && e.type === "document" && (t.indent = 0), t.type === "flow-collection" && lr(t), e.type) {
3476
+ switch (t.type === "block-scalar" ? t.indent = "indent" in e ? e.indent : 0 : t.type === "flow-collection" && e.type === "document" && (t.indent = 0), t.type === "flow-collection" && or(t), e.type) {
3594
3477
  case "document":
3595
3478
  e.value = t;
3596
3479
  break;
@@ -3641,7 +3524,7 @@ var ur = class {
3641
3524
  }
3642
3525
  if ((e.type === "document" || e.type === "block-map" || e.type === "block-seq") && (t.type === "block-map" || t.type === "block-seq")) {
3643
3526
  let n = t.items[t.items.length - 1];
3644
- n && !n.sep && !n.value && n.start.length > 0 && ar(n.start) === -1 && (t.indent === 0 || n.start.every((e) => e.type !== "comment" || e.indent < t.indent)) && (e.type === "document" ? e.end = n.start : e.items.push({ start: n.start }), t.items.splice(-1, 1));
3527
+ n && !n.sep && !n.value && n.start.length > 0 && nr(n.start) === -1 && (t.indent === 0 || n.start.every((e) => e.type !== "comment" || e.indent < t.indent)) && (e.type === "document" ? e.end = n.start : e.items.push({ start: n.start }), t.items.splice(-1, 1));
3645
3528
  }
3646
3529
  }
3647
3530
  }
@@ -3682,7 +3565,7 @@ var ur = class {
3682
3565
  if (e.value) return yield* this.lineEnd(e);
3683
3566
  switch (this.type) {
3684
3567
  case "doc-start":
3685
- ar(e.start) === -1 ? e.start.push(this.sourceToken) : (yield* this.pop(), yield* this.step());
3568
+ nr(e.start) === -1 ? e.start.push(this.sourceToken) : (yield* this.pop(), yield* this.step());
3686
3569
  return;
3687
3570
  case "anchor":
3688
3571
  case "tag":
@@ -3702,7 +3585,7 @@ var ur = class {
3702
3585
  }
3703
3586
  *scalar(e) {
3704
3587
  if (this.type === "map-value-ind") {
3705
- let t = cr(sr(this.peek(2))), n;
3588
+ let t = ar(ir(this.peek(2))), n;
3706
3589
  e.end ? (n = e.end, n.push(this.sourceToken), delete e.end) : n = [this.sourceToken];
3707
3590
  let r = {
3708
3591
  type: "block-map",
@@ -3804,7 +3687,7 @@ var ur = class {
3804
3687
  sep: [this.sourceToken]
3805
3688
  });
3806
3689
  else {
3807
- let e = cr(t.start);
3690
+ let e = ar(t.start);
3808
3691
  this.stack.push({
3809
3692
  type: "block-map",
3810
3693
  offset: this.offset,
@@ -3831,8 +3714,8 @@ var ur = class {
3831
3714
  sep: [this.sourceToken]
3832
3715
  }]
3833
3716
  });
3834
- else if (or(t.key) && !$(t.sep, "newline")) {
3835
- let e = cr(t.start), n = t.key, r = t.sep;
3717
+ else if (rr(t.key) && !$(t.sep, "newline")) {
3718
+ let e = ar(t.start), n = t.key, r = t.sep;
3836
3719
  r.push(this.sourceToken), delete t.key, delete t.sep, this.stack.push({
3837
3720
  type: "block-map",
3838
3721
  offset: this.offset,
@@ -3999,8 +3882,8 @@ var ur = class {
3999
3882
  let t = this.peek(2);
4000
3883
  if (t.type === "block-map" && (this.type === "map-value-ind" && t.indent === e.indent || this.type === "newline" && !t.items[t.items.length - 1].sep)) yield* this.pop(), yield* this.step();
4001
3884
  else if (this.type === "map-value-ind" && t.type !== "flow-collection") {
4002
- let n = cr(sr(t));
4003
- lr(e);
3885
+ let n = ar(ir(t));
3886
+ or(e);
4004
3887
  let r = e.end.splice(1, e.end.length);
4005
3888
  r.push(this.sourceToken);
4006
3889
  let i = {
@@ -4059,7 +3942,7 @@ var ur = class {
4059
3942
  };
4060
3943
  case "explicit-key-ind": {
4061
3944
  this.onKeyLine = !0;
4062
- let t = cr(sr(e));
3945
+ let t = ar(ir(e));
4063
3946
  return t.push(this.sourceToken), {
4064
3947
  type: "block-map",
4065
3948
  offset: this.offset,
@@ -4072,7 +3955,7 @@ var ur = class {
4072
3955
  }
4073
3956
  case "map-value-ind": {
4074
3957
  this.onKeyLine = !0;
4075
- let t = cr(sr(e));
3958
+ let t = ar(ir(e));
4076
3959
  return {
4077
3960
  type: "block-map",
4078
3961
  offset: this.offset,
@@ -4110,34 +3993,34 @@ var ur = class {
4110
3993
  };
4111
3994
  //#endregion
4112
3995
  //#region node_modules/yaml/browser/dist/public-api.js
4113
- function dr(e) {
3996
+ function cr(e) {
4114
3997
  let t = e.prettyErrors !== !1;
4115
3998
  return {
4116
- lineCounter: e.lineCounter || t && new ir() || null,
3999
+ lineCounter: e.lineCounter || t && new tr() || null,
4117
4000
  prettyErrors: t
4118
4001
  };
4119
4002
  }
4120
- function fr(e, t = {}) {
4121
- let { lineCounter: n, prettyErrors: r } = dr(t), i = new ur(n?.addNewLine), a = new Gn(t), o = null;
4003
+ function lr(e, t = {}) {
4004
+ let { lineCounter: n, prettyErrors: r } = cr(t), i = new sr(n?.addNewLine), a = new Hn(t), o = null;
4122
4005
  for (let t of a.compose(i.parse(e), !0, e.length)) if (!o) o = t;
4123
4006
  else if (o.options.logLevel !== "silent") {
4124
- o.errors.push(new sn(t.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
4007
+ o.errors.push(new rn(t.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
4125
4008
  break;
4126
4009
  }
4127
- return r && n && (o.errors.forEach(ln(e, n)), o.warnings.forEach(ln(e, n))), o;
4010
+ return r && n && (o.errors.forEach(on(e, n)), o.warnings.forEach(on(e, n))), o;
4128
4011
  }
4129
- function pr(e, t, n) {
4012
+ function ur(e, t, n) {
4130
4013
  let r;
4131
4014
  typeof t == "function" ? r = t : n === void 0 && t && typeof t == "object" && (n = t);
4132
- let i = fr(e, n);
4015
+ let i = lr(e, n);
4133
4016
  if (!i) return null;
4134
- if (i.warnings.forEach((e) => qe(i.options.logLevel, e)), i.errors.length > 0) {
4017
+ if (i.warnings.forEach((e) => We(i.options.logLevel, e)), i.errors.length > 0) {
4135
4018
  if (i.options.logLevel !== "silent") throw i.errors[0];
4136
4019
  i.errors = [];
4137
4020
  }
4138
4021
  return i.toJS(Object.assign({ reviver: r }, n));
4139
4022
  }
4140
- function mr(e, t, n) {
4023
+ function dr(e, t, n) {
4141
4024
  let r = null;
4142
4025
  if (typeof t == "function" || Array.isArray(t) ? r = t : n === void 0 && t && (n = t), typeof n == "string" && (n = n.length), typeof n == "number") {
4143
4026
  let e = Math.round(n);
@@ -4147,18 +4030,290 @@ function mr(e, t, n) {
4147
4030
  let { keepUndefined: e } = n ?? t ?? {};
4148
4031
  if (!e) return;
4149
4032
  }
4150
- return ne(e) && !r ? e.toString(n) : new rn(e, r, n).toString(n);
4033
+ return E(e) && !r ? e.toString(n) : new en(e, r, n).toString(n);
4151
4034
  }
4152
4035
  //#endregion
4153
- //#region src/plugins/radar-plugin.ts
4154
- var hr = {
4036
+ //#region src/plugins/map-plugin.tsx
4037
+ var fr = (e) => !e || e === "default" ? u.MapPin : u[e.split(/[-_ ]+/).map((e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase()).join("")] || u.MapPin, pr = ({ value: e, attributes: t = {} }) => {
4038
+ let [r, u] = i(null);
4039
+ console.log("MapComponent render");
4040
+ let d = n(() => {
4041
+ try {
4042
+ return ur(e) || {};
4043
+ } catch {
4044
+ return {};
4045
+ }
4046
+ }, [e]), f = parseFloat(d.lat) || 0, p = parseFloat(d.long || d.lng) || 0, m = parseFloat(d.defaultZoom || d.zoom) || 12, h = t.height || (typeof d.height == "number" ? `${d.height}px` : d.height || "400px"), g = t.width || (typeof d.width == "number" ? `${d.width}%` : d.width || "100%"), _ = n(() => {
4047
+ let e = d.marker || d.markers || [], t = [];
4048
+ return Array.isArray(e) ? t = e.length === 0 ? [] : Array.isArray(e[0]) || typeof e[0] == "object" && e[0] !== null || typeof e[0] == "string" && e[0].includes(",") ? e : [e] : e && (t = [e]), t.map((e) => {
4049
+ if (!e) return null;
4050
+ if (typeof e == "string") {
4051
+ let t = e.split(",").map((e) => e.trim());
4052
+ if (t.length < 2) return null;
4053
+ let n = isNaN(parseFloat(t[0]));
4054
+ return {
4055
+ type: n ? t[0] : "default",
4056
+ lat: parseFloat(n ? t[1] : t[0]) || 0,
4057
+ long: parseFloat(n ? t[2] : t[1]) || 0,
4058
+ link: n ? t[3] : t[2]
4059
+ };
4060
+ }
4061
+ if (Array.isArray(e)) {
4062
+ if (e.length < 2) return null;
4063
+ let t = isNaN(parseFloat(String(e[0])));
4064
+ return {
4065
+ type: t ? String(e[0]) : "default",
4066
+ lat: parseFloat(String(t ? e[1] : e[0])) || 0,
4067
+ long: parseFloat(String(t ? e[2] : e[1])) || 0,
4068
+ link: String(t ? e[3] || "" : e[2] || "")
4069
+ };
4070
+ }
4071
+ if (typeof e == "object") {
4072
+ let t = parseFloat(e.lat ?? e.latitude), n = parseFloat(e.long ?? e.lng ?? e.longitude);
4073
+ return isNaN(t) || isNaN(n) ? null : {
4074
+ type: e.type ? String(e.type) : "default",
4075
+ lat: t,
4076
+ long: n,
4077
+ link: e.link ? String(e.link) : void 0,
4078
+ description: e.description ? String(e.description) : void 0
4079
+ };
4080
+ }
4081
+ return null;
4082
+ }).filter((e) => e !== null);
4083
+ }, [d]);
4084
+ return /* @__PURE__ */ a("div", {
4085
+ className: "novelaid-map-container",
4086
+ style: {
4087
+ height: h,
4088
+ width: g,
4089
+ margin: "1.5em 0",
4090
+ borderRadius: "8px",
4091
+ overflow: "hidden",
4092
+ boxShadow: "0 4px 12px rgba(0,0,0,0.1)",
4093
+ border: "1px solid var(--border-color, #ccc)",
4094
+ position: "relative",
4095
+ backgroundColor: "#f0f0f0"
4096
+ },
4097
+ children: /* @__PURE__ */ o(s, {
4098
+ initialViewState: {
4099
+ longitude: p,
4100
+ latitude: f,
4101
+ zoom: m
4102
+ },
4103
+ style: {
4104
+ width: "100%",
4105
+ height: "100%"
4106
+ },
4107
+ mapStyle: {
4108
+ version: 8,
4109
+ sources: { osm: {
4110
+ type: "raster",
4111
+ tiles: ["https://tile.openstreetmap.org/{z}/{x}/{y}.png"],
4112
+ tileSize: 256,
4113
+ attribution: "© OpenStreetMap contributors"
4114
+ } },
4115
+ layers: [{
4116
+ id: "osm",
4117
+ type: "raster",
4118
+ source: "osm"
4119
+ }]
4120
+ },
4121
+ children: [_.map((e, t) => {
4122
+ let n = fr(e.type);
4123
+ return /* @__PURE__ */ a(c, {
4124
+ longitude: e.long,
4125
+ latitude: e.lat,
4126
+ anchor: "bottom",
4127
+ children: /* @__PURE__ */ a("div", {
4128
+ style: {
4129
+ cursor: "pointer",
4130
+ filter: "drop-shadow(0 2px 4px rgba(0,0,0,0.3))",
4131
+ zIndex: 10
4132
+ },
4133
+ onMouseEnter: () => u(e),
4134
+ onMouseLeave: () => u(null),
4135
+ children: /* @__PURE__ */ a(n, {
4136
+ size: 24,
4137
+ color: "#e91e63",
4138
+ fill: "#ffffff"
4139
+ })
4140
+ })
4141
+ }, `marker-${t}-${e.lat}-${e.long}`);
4142
+ }), r && /* @__PURE__ */ a(l, {
4143
+ longitude: r.long,
4144
+ latitude: r.lat,
4145
+ anchor: "bottom",
4146
+ offset: 28,
4147
+ closeButton: !1,
4148
+ closeOnClick: !1,
4149
+ children: /* @__PURE__ */ o("div", {
4150
+ style: {
4151
+ color: "#333",
4152
+ fontSize: "12px",
4153
+ padding: "2px 4px",
4154
+ whiteSpace: "pre-wrap",
4155
+ maxWidth: "200px"
4156
+ },
4157
+ children: [r.description && /* @__PURE__ */ a("div", {
4158
+ style: {
4159
+ fontWeight: "bold",
4160
+ marginBottom: "2px"
4161
+ },
4162
+ children: r.description
4163
+ }), r.link && /* @__PURE__ */ a("div", {
4164
+ style: {
4165
+ fontSize: "11px",
4166
+ color: "#666"
4167
+ },
4168
+ children: r.link
4169
+ })]
4170
+ })
4171
+ })]
4172
+ })
4173
+ }, `${f}-${p}-${m}-${h}-${g}`);
4174
+ }, mr = {
4175
+ name: "map",
4176
+ codeProcessors: [
4177
+ {
4178
+ language: "carto-paw",
4179
+ component: pr
4180
+ },
4181
+ {
4182
+ language: "map",
4183
+ component: pr
4184
+ },
4185
+ {
4186
+ language: "leaflet",
4187
+ component: pr
4188
+ }
4189
+ ]
4190
+ }, hr = null, gr = null, _r = async () => hr || (gr ||= (async () => {
4191
+ try {
4192
+ let { D2: e } = await import("@terrastruct/d2");
4193
+ return hr = new e(), await hr.ready, hr;
4194
+ } catch (e) {
4195
+ throw gr = null, e;
4196
+ }
4197
+ })(), gr), vr = Promise.resolve(), yr = (e) => {
4198
+ if (typeof e == "string") return e;
4199
+ if (!e) return "";
4200
+ if (e instanceof Uint8Array || e.buffer && e.byteLength !== void 0) try {
4201
+ return new TextDecoder().decode(e);
4202
+ } catch {
4203
+ return "Error: Failed to decode D2 binary output";
4204
+ }
4205
+ if (typeof e == "object") {
4206
+ let t = e.contents || e.svg || e.data;
4207
+ if (typeof t == "string") return t;
4208
+ if (t instanceof Uint8Array) return new TextDecoder().decode(t);
4209
+ try {
4210
+ return JSON.stringify(e);
4211
+ } catch {
4212
+ return "Error: D2 returned an un-stringifiable object";
4213
+ }
4214
+ }
4215
+ return String(e);
4216
+ }, br = (e) => {
4217
+ if (e instanceof Error) return e.message;
4218
+ if (typeof e == "string") return e;
4219
+ try {
4220
+ let t = JSON.stringify(e);
4221
+ return t === "{}" && e.toString ? e.toString() : t;
4222
+ } catch {
4223
+ return "Unknown D2 error";
4224
+ }
4225
+ }, xr = {
4226
+ name: "d2",
4227
+ codeProcessors: [{
4228
+ language: "d2",
4229
+ component: ({ value: e, attributes: n = {} }) => {
4230
+ let s = "dark", [c, l] = i(""), [u, d] = i(null), [f, p] = i(!0), m = r(null), { width: h, height: g, pad: _ } = n;
4231
+ return t(() => {
4232
+ let t = !0, n = async () => {
4233
+ e && (p(!0), d(null), vr = vr.catch(() => {}).then(async () => {
4234
+ if (t) try {
4235
+ let n = await _r(), r = await n.compile(e);
4236
+ if (r && r.errors && r.errors.length > 0) throw Error(r.errors[0].message || "D2 Syntax Error");
4237
+ let i = s === "dark" ? 200 : 0, a = {
4238
+ ...r.renderOptions,
4239
+ themeID: i,
4240
+ noXMLTag: !0,
4241
+ pad: _ === void 0 ? 20 : parseInt(String(_), 10)
4242
+ }, o = await n.render(r.diagram, a);
4243
+ if (t) {
4244
+ let e = yr(o);
4245
+ if (!e || e.startsWith("[object Object]")) throw Error("D2 rendering failed to produce a valid SVG string");
4246
+ l(e), p(!1), d(null);
4247
+ }
4248
+ } catch (e) {
4249
+ console.error("D2 rendering failed:", e), t && (d(br(e)), p(!1));
4250
+ }
4251
+ }));
4252
+ }, r = setTimeout(() => {
4253
+ n();
4254
+ }, 300);
4255
+ return () => {
4256
+ t = !1, clearTimeout(r);
4257
+ };
4258
+ }, [e, s]), /* @__PURE__ */ o("div", {
4259
+ className: "d2-container",
4260
+ ref: m,
4261
+ style: {
4262
+ display: "flex",
4263
+ flexDirection: "column",
4264
+ alignItems: "center",
4265
+ margin: "1.5em 0",
4266
+ maxWidth: "100%",
4267
+ overflow: "auto",
4268
+ width: h || "100%",
4269
+ height: g || "auto",
4270
+ minHeight: f ? "100px" : "auto"
4271
+ },
4272
+ children: [
4273
+ /* @__PURE__ */ a("style", { children: "\n .d2-container svg {\n max-width: 100%;\n max-height: 100%;\n height: auto;\n }\n .d2-container svg rect.d2-background {\n fill: none !important;\n }\n " }),
4274
+ f && !u && /* @__PURE__ */ a("div", {
4275
+ style: {
4276
+ padding: "1em",
4277
+ color: "var(--text-muted)"
4278
+ },
4279
+ children: "Rendering D2 diagram..."
4280
+ }),
4281
+ u ? /* @__PURE__ */ o("pre", {
4282
+ className: "d2-error",
4283
+ style: {
4284
+ color: "#f44336",
4285
+ padding: "1em",
4286
+ border: "1px solid #f44336",
4287
+ borderRadius: "4px",
4288
+ maxWidth: "100%",
4289
+ overflow: "auto",
4290
+ whiteSpace: "pre-wrap",
4291
+ wordBreak: "break-all"
4292
+ },
4293
+ children: ["D2 Error: ", u]
4294
+ }) : /* @__PURE__ */ a("div", {
4295
+ dangerouslySetInnerHTML: { __html: c },
4296
+ style: {
4297
+ width: "100%",
4298
+ flex: 1,
4299
+ minHeight: 0,
4300
+ display: "flex",
4301
+ justifyContent: "center",
4302
+ alignItems: "center"
4303
+ }
4304
+ })
4305
+ ]
4306
+ });
4307
+ }
4308
+ }]
4309
+ }, Sr = {
4155
4310
  name: "novelaid-radar",
4156
4311
  codePreprocessors: [{
4157
4312
  languages: ["novelaid-radar", "radar"],
4158
4313
  preprocess: ({ code: e, attributes: t }) => {
4159
4314
  try {
4160
4315
  let n = e.trim().split(/^---$/m).map((e) => e.trim()).filter((e) => e !== ""), r = {}, i = {};
4161
- n.length >= 2 ? (r = pr(n[0]) || {}, i = pr(n[1]) || {}) : n.length === 1 && (i = pr(n[0]) || {});
4316
+ n.length >= 2 ? (r = ur(n[0]) || {}, i = ur(n[1]) || {}) : n.length === 1 && (i = ur(n[0]) || {});
4162
4317
  let a = { ...r }, o = { config: a.config || {} };
4163
4318
  delete a.config, o.config.themeVariables || (o.config.themeVariables = {}), o.config.themeVariables.radar || (o.config.themeVariables.radar = {}), (a.title || a.タイトル) && (o.title = a.title || a.タイトル), delete a.title, delete a.タイトル;
4164
4319
  let s = a.theme || a.テーマ;
@@ -4172,7 +4327,7 @@ var hr = {
4172
4327
  let d = a.name || a.名前 || "";
4173
4328
  delete a.name, delete a.名前, a.最小 !== void 0 && (a.min = a.最小, delete a.最小), a.最大 !== void 0 && (a.max = a.最大, delete a.最大), a.graticule === void 0 && (a.graticule = "polygon"), a.showLegend === void 0 && (a.showLegend = !1);
4174
4329
  let f = "";
4175
- Object.keys(o).length > 0 && (f += `---\n${mr(o)}---\n`), f += "radar-beta\n";
4330
+ Object.keys(o).length > 0 && (f += `---\n${dr(o)}---\n`), f += "radar-beta\n";
4176
4331
  let p = Object.keys(i);
4177
4332
  if (p.length > 0) {
4178
4333
  let e = p.map((e, t) => `a${t + 1}["${e}"]`).join(", ");
@@ -4199,10 +4354,10 @@ var hr = {
4199
4354
  }
4200
4355
  }
4201
4356
  }]
4202
- }, gr = class {
4357
+ }, Cr = class {
4203
4358
  registry;
4204
4359
  constructor() {
4205
- this.registry = new s(), this.registry.register(l), this.registry.register(m), this.registry.register(x), this.registry.register(hr);
4360
+ this.registry = new d(), this.registry.register(p), this.registry.register(v), this.registry.register(mr), this.registry.register(xr), this.registry.register(Sr);
4206
4361
  }
4207
4362
  registerPlugin(e) {
4208
4363
  this.registry.register(e);
@@ -4218,27 +4373,27 @@ var hr = {
4218
4373
  getCodeProcessors() {
4219
4374
  return this.registry.getCodeProcessors();
4220
4375
  }
4221
- }, _r = new gr();
4376
+ }, wr = new Cr();
4222
4377
  //#endregion
4223
4378
  //#region src/utils/attribute-parser.ts
4224
- function vr(e) {
4379
+ function Tr(e) {
4225
4380
  return e.replace(/-([a-z])/g, (e) => e[1].toUpperCase());
4226
4381
  }
4227
- function yr(e) {
4382
+ function Er(e) {
4228
4383
  let t = {};
4229
4384
  if (!e) return t;
4230
4385
  let n = e.trim();
4231
4386
  n.startsWith("{") && n.endsWith("}") ? n = n.substring(1, n.length - 1).trim() : n.startsWith("{") && (n = n.substring(1).trim());
4232
4387
  let r = /([a-zA-Z0-9_-]+)(?:=([^"'\r\n\t ,{}]+|"(?:\\"|[^"])*"|'(?:\\'|[^'])*'))?/g, i;
4233
4388
  for (; (i = r.exec(n)) !== null;) {
4234
- let e = i[1], n = i[2], r = vr(e);
4389
+ let e = i[1], n = i[2], r = Tr(e);
4235
4390
  n === void 0 ? t[r] = !0 : ((n.startsWith("\"") && n.endsWith("\"") || n.startsWith("'") && n.endsWith("'")) && (n = n.substring(1, n.length - 1)), (r === "width" || r === "height") && /^\d+$/.test(n) && (n = `${n}px`), t[r] = n);
4236
4391
  }
4237
4392
  return t;
4238
4393
  }
4239
4394
  //#endregion
4240
4395
  //#region src/renderer/NovelaidMarkdown.tsx
4241
- function br({ src: e, alt: t, filePath: n, title: r }) {
4396
+ function Dr({ src: e, alt: t, filePath: n, title: r }) {
4242
4397
  let i = e, o = t, s, c;
4243
4398
  if (o && o.includes("|")) {
4244
4399
  let e = o.lastIndexOf("|"), t = o.substring(e + 1).trim();
@@ -4262,7 +4417,7 @@ function br({ src: e, alt: t, filePath: n, title: r }) {
4262
4417
  height: c
4263
4418
  });
4264
4419
  }
4265
- var xr = class extends e.Component {
4420
+ var Or = class extends e.Component {
4266
4421
  constructor(e) {
4267
4422
  super(e), this.state = { hasError: !1 };
4268
4423
  }
@@ -4285,19 +4440,19 @@ var xr = class extends e.Component {
4285
4440
  }) : this.props.children;
4286
4441
  }
4287
4442
  };
4288
- function Sr({ content: e, filePath: r, className: o = "", onLinkClick: s }) {
4443
+ function kr({ content: e, filePath: r, className: o = "", onLinkClick: s }) {
4289
4444
  let [c, l] = i(null), [u, d] = i(null), [f, p] = i(null);
4290
4445
  t(() => {
4291
4446
  Promise.all([
4292
- import("./react-markdown-BXmDW998.js"),
4293
- import("./remark-gfm-Cfc5YeEq.js"),
4294
- import("./rehype-raw-_yRr8ewB.js")
4447
+ import("react-markdown"),
4448
+ import("./remark-gfm-CrckygoG.js"),
4449
+ import("./rehype-raw-DiGJp_-o.js")
4295
4450
  ]).then(([e, t, n]) => (l(() => e.default), d(() => t.default), p(() => n.default), null)).catch((e) => {
4296
4451
  console.error("Failed to load markdown modules:", e);
4297
4452
  });
4298
4453
  }, []);
4299
4454
  let m = n(() => ({
4300
- img: (e) => /* @__PURE__ */ a(br, {
4455
+ img: (e) => /* @__PURE__ */ a(Dr, {
4301
4456
  ...e,
4302
4457
  filePath: r
4303
4458
  }),
@@ -4316,7 +4471,7 @@ function Sr({ content: e, filePath: r, className: o = "", onLinkClick: s }) {
4316
4471
  let e = s.indexOf("{");
4317
4472
  c = s.substring(0, e), l ||= s.substring(e);
4318
4473
  }
4319
- let u = yr(l), d = c || "", f = String(t).replace(/\n$/, ""), p = { ...u }, m = _r.getCodePreprocessors();
4474
+ let u = Er(l), d = c || "", f = String(t).replace(/\n$/, ""), p = { ...u }, m = wr.getCodePreprocessors();
4320
4475
  for (let e of m) if (e.languages.includes(d) || e.languages.includes("*")) {
4321
4476
  let t = e.preprocess({
4322
4477
  language: d,
@@ -4325,7 +4480,7 @@ function Sr({ content: e, filePath: r, className: o = "", onLinkClick: s }) {
4325
4480
  });
4326
4481
  d = t.language, f = t.code, p = t.attributes;
4327
4482
  }
4328
- let h = _r.getCodeProcessors().find((e) => e.language === d);
4483
+ let h = wr.getCodeProcessors().find((e) => e.language === d);
4329
4484
  if (h) {
4330
4485
  let e = h.component;
4331
4486
  return /* @__PURE__ */ a(e, {
@@ -4343,10 +4498,10 @@ function Sr({ content: e, filePath: r, className: o = "", onLinkClick: s }) {
4343
4498
  }
4344
4499
  }), [r, s]);
4345
4500
  if (!c || !u || !f) return /* @__PURE__ */ a("div", { children: "Loading preview..." });
4346
- let h = _r.preprocess(e);
4501
+ let h = wr.preprocess(e);
4347
4502
  return /* @__PURE__ */ a("div", {
4348
4503
  className: o,
4349
- children: /* @__PURE__ */ a(xr, {
4504
+ children: /* @__PURE__ */ a(Or, {
4350
4505
  content: h,
4351
4506
  filePath: r,
4352
4507
  children: /* @__PURE__ */ a(c, {
@@ -4359,4 +4514,4 @@ function Sr({ content: e, filePath: r, className: o = "", onLinkClick: s }) {
4359
4514
  });
4360
4515
  }
4361
4516
  //#endregion
4362
- export { Sr as NovelaidMarkdown, gr as NovelaidMarkdownProcessor, _r as defaultProcessor };
4517
+ export { kr as NovelaidMarkdown, Cr as NovelaidMarkdownProcessor, wr as defaultProcessor };