@coderminer/vue-markdown 1.0.0 → 1.0.1
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/CHANGELOG.md +116 -0
- package/README.md +7 -2
- package/README.zh-CN.md +6 -3
- package/dist/chunks/MarkdownBlockquote-DVXziX2t.js +0 -2
- package/dist/chunks/MarkdownBreak-BwCi2Itt.js +0 -2
- package/dist/chunks/MarkdownCode-B1k9tmW5.js +0 -2
- package/dist/chunks/MarkdownConfigProvider-5N3ylrIu.js +0 -2
- package/dist/chunks/MarkdownContent-BAK6dqo7.js +0 -2
- package/dist/chunks/MarkdownCustomTag-lZJHsD6f.js +46 -0
- package/dist/chunks/MarkdownEmphasis-CppivOEu.js +0 -2
- package/dist/chunks/MarkdownEmpty-Av5k6bqa.js +0 -2
- package/dist/chunks/MarkdownError-C0sPs5W0.js +0 -2
- package/dist/chunks/MarkdownFootnoteReference-Dy3Khwyj.js +0 -2
- package/dist/chunks/MarkdownFootnotes-BRPzkbXv.js +0 -2
- package/dist/chunks/MarkdownHeading-DaNcP0_6.js +0 -2
- package/dist/chunks/MarkdownHorizontalRule-QNe_cuUI.js +0 -2
- package/dist/chunks/MarkdownHtml-66lYkvwM.js +0 -2
- package/dist/chunks/MarkdownImage-BRy76svs.js +0 -2
- package/dist/chunks/MarkdownInlineCode-MXZYFwex.js +0 -2
- package/dist/chunks/MarkdownLink-Dbx3NwgV.js +0 -2
- package/dist/chunks/MarkdownList-BJ-_C71k.js +0 -2
- package/dist/chunks/MarkdownListItem-Z1EHIY26.js +0 -2
- package/dist/chunks/MarkdownLoading-D-RYtXxf.js +0 -2
- package/dist/chunks/MarkdownParagraph-BxLSmSaG.js +0 -2
- package/dist/chunks/MarkdownRenderer-OlkdsvI3.js +482 -0
- package/dist/chunks/MarkdownRoot-DEE6iVfh.js +0 -2
- package/dist/chunks/MarkdownStrikethrough-CblvbqDk.js +0 -2
- package/dist/chunks/MarkdownStrong-uU5MzAoJ.js +0 -2
- package/dist/chunks/MarkdownTable-DmBTg_CR.js +0 -2
- package/dist/chunks/MarkdownTableCell-eiCJe847.js +0 -2
- package/dist/chunks/MarkdownTableRow-DuJaPntg.js +0 -2
- package/dist/chunks/MarkdownTableSection-PFHz-R33.js +0 -2
- package/dist/chunks/MarkdownTaskItem-BcmKo1lk.js +0 -2
- package/dist/chunks/{MarkdownToc-BdOHF-Yo.js → MarkdownToc-DHWWoH6t.js} +1 -3
- package/dist/chunks/MarkdownTocItem-DT9mR3vL.js +0 -2
- package/dist/chunks/{MermaidLiveEditor-W-qf3G-5.js → MermaidLiveEditor-1TKkI5bp.js} +1 -3
- package/dist/chunks/{VueSyntaxHighlighter-DyLsYMwy.js → VueSyntaxHighlighter-BWpCO-cX.js} +1 -3
- package/dist/chunks/adapters-CMwX_NEI.js +0 -2
- package/dist/chunks/{blank-line-Cb-JBP_5.js → blank-line-CKKsFeKR.js} +1 -3
- package/dist/chunks/codemirror-DyphMAEg.js +0 -2
- package/dist/chunks/config-aRYo2R8_.js +0 -2
- package/dist/chunks/context-8NfW6fxI.js +0 -2
- package/dist/chunks/convert-hast-C4Rg2ZuF.js +6 -0
- package/dist/chunks/default-ZQ5aHh-N.js +3 -0
- package/dist/chunks/diagnostics-CtHoJyiX.js +0 -2
- package/dist/chunks/{export-DZQ3cUry.js → export-BrgMLgUp.js} +13 -14
- package/dist/chunks/hast-to-nodes-DuZsi4XT.js +29 -0
- package/dist/chunks/{lib-BQiWGWpu.js → hast-util-from-html-D3e_iQ89.js} +495 -494
- package/dist/chunks/highlightjs-BxJFpKS1.js +196 -0
- package/dist/chunks/{identity-jZEhX2d5.js → identity-Bi27FKyx.js} +7 -8
- package/dist/chunks/labels-BtHiUTQI.js +0 -2
- package/dist/chunks/lib-CCnkLL6S.js +252 -0
- package/dist/chunks/longest-streak-DZE_EqsU.js +0 -2
- package/dist/chunks/{micromark-factory-space-Db040TnW.js → micromark-factory-space-CpXAnYUY.js} +2 -4
- package/dist/chunks/{normalize-CRYv3Wqt.js → normalize-VKfQXZiK.js} +57 -51
- package/dist/chunks/{plugin-DqkFHyny.js → plugin-YWo5uqTh.js} +1 -2
- package/dist/chunks/preset-BjaOuJUL.js +0 -2
- package/dist/chunks/{registry-DLjr93-V.js → registry-B7BfEkuy.js} +1051 -1045
- package/dist/chunks/{render-Cs8iKrgz.js → render-DAqK0w5J.js} +524 -494
- package/dist/chunks/{default-DWVS-I_8.js → rolldown-runtime-QGRDbDUS.js} +1 -5
- package/dist/chunks/{runtime-DJMnzjah.js → runtime-D95F41zG.js} +145 -117
- package/dist/chunks/security-y4EwUyAs.js +0 -2
- package/dist/chunks/{shared-DNAvZ-UY.js → shared-NjFDPmkb.js} +18 -27
- package/dist/chunks/{space-separated-tokens-CmBjEPdR.js → space-separated-tokens-1ebNqf35.js} +1 -3
- package/dist/chunks/url-D2BoivaE.js +0 -2
- package/dist/chunks/{useActiveHeading-BaGVMJnB.js → useActiveHeading-CnyGTG1u.js} +165 -122
- package/dist/components/CodeBlock.js +1 -1
- package/dist/components/MarkdownCustomTag.js +1 -1
- package/dist/components/MarkdownMath.js +1 -1
- package/dist/components/MarkdownMermaid.d.ts +3 -3
- package/dist/components/MarkdownMermaid.js +1 -1
- package/dist/components/MarkdownRenderer.d.ts +16 -19
- package/dist/components/MarkdownRenderer.js +1 -1
- package/dist/components/MarkdownToc.js +1 -1
- package/dist/components/MermaidBlock.js +1 -1
- package/dist/components/MermaidLiveEditor.js +1 -1
- package/dist/components/VueSyntaxHighlighter.js +1 -1
- package/dist/components/context.d.ts +2 -2
- package/dist/components/index.js +6 -6
- package/dist/components/types.d.ts +34 -2
- package/dist/composables/useMarkdownDocument.d.ts +2 -0
- package/dist/core/hast-nodes.d.ts +0 -3
- package/dist/core/hast-to-nodes.d.ts +9 -0
- package/dist/core/normalize.d.ts +10 -0
- package/dist/core/parts.d.ts +1 -0
- package/dist/core/slugger.d.ts +7 -0
- package/dist/core/types.d.ts +3 -1
- package/dist/headless.js +8 -8
- package/dist/highlight/convert-hast.d.ts +8 -0
- package/dist/highlight/index.d.ts +2 -1
- package/dist/highlight/index.js +4 -3
- package/dist/highlight/shared.d.ts +0 -5
- package/dist/highlight/shiki.js +2 -3
- package/dist/html/index.js +0 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +47 -49
- package/dist/math/index.js +18 -16
- package/dist/mermaid/index.d.ts +2 -1
- package/dist/mermaid/index.js +8 -3
- package/dist/mermaid/plugin.d.ts +3 -0
- package/dist/mermaid/runtime.d.ts +3 -1
- package/dist/mermaid/sanitize-svg-lazy.d.ts +10 -0
- package/dist/mermaid/sanitize-svg.d.ts +3 -0
- package/dist/mermaid/sanitize.d.ts +6 -2
- package/dist/node-components.js +6 -6
- package/dist/pipeline.js +1 -1
- package/dist/plugins.js +1 -1
- package/dist/styles/components.css +25 -0
- package/package.json +6 -3
- package/dist/chunks/MarkdownBlockquote-DVXziX2t.js.map +0 -1
- package/dist/chunks/MarkdownBreak-BwCi2Itt.js.map +0 -1
- package/dist/chunks/MarkdownCode-B1k9tmW5.js.map +0 -1
- package/dist/chunks/MarkdownConfigProvider-5N3ylrIu.js.map +0 -1
- package/dist/chunks/MarkdownContent-BAK6dqo7.js.map +0 -1
- package/dist/chunks/MarkdownCustomTag-BBdn3-WO.js +0 -42
- package/dist/chunks/MarkdownCustomTag-BBdn3-WO.js.map +0 -1
- package/dist/chunks/MarkdownEmphasis-CppivOEu.js.map +0 -1
- package/dist/chunks/MarkdownEmpty-Av5k6bqa.js.map +0 -1
- package/dist/chunks/MarkdownError-C0sPs5W0.js.map +0 -1
- package/dist/chunks/MarkdownFootnoteReference-Dy3Khwyj.js.map +0 -1
- package/dist/chunks/MarkdownFootnotes-BRPzkbXv.js.map +0 -1
- package/dist/chunks/MarkdownHeading-DaNcP0_6.js.map +0 -1
- package/dist/chunks/MarkdownHorizontalRule-QNe_cuUI.js.map +0 -1
- package/dist/chunks/MarkdownHtml-66lYkvwM.js.map +0 -1
- package/dist/chunks/MarkdownImage-BRy76svs.js.map +0 -1
- package/dist/chunks/MarkdownInlineCode-MXZYFwex.js.map +0 -1
- package/dist/chunks/MarkdownLink-Dbx3NwgV.js.map +0 -1
- package/dist/chunks/MarkdownList-BJ-_C71k.js.map +0 -1
- package/dist/chunks/MarkdownListItem-Z1EHIY26.js.map +0 -1
- package/dist/chunks/MarkdownLoading-D-RYtXxf.js.map +0 -1
- package/dist/chunks/MarkdownParagraph-BxLSmSaG.js.map +0 -1
- package/dist/chunks/MarkdownRenderer-DLRRfsdI.js +0 -416
- package/dist/chunks/MarkdownRenderer-DLRRfsdI.js.map +0 -1
- package/dist/chunks/MarkdownRoot-DEE6iVfh.js.map +0 -1
- package/dist/chunks/MarkdownStrikethrough-CblvbqDk.js.map +0 -1
- package/dist/chunks/MarkdownStrong-uU5MzAoJ.js.map +0 -1
- package/dist/chunks/MarkdownTable-DmBTg_CR.js.map +0 -1
- package/dist/chunks/MarkdownTableCell-eiCJe847.js.map +0 -1
- package/dist/chunks/MarkdownTableRow-DuJaPntg.js.map +0 -1
- package/dist/chunks/MarkdownTableSection-PFHz-R33.js.map +0 -1
- package/dist/chunks/MarkdownTaskItem-BcmKo1lk.js.map +0 -1
- package/dist/chunks/MarkdownToc-BdOHF-Yo.js.map +0 -1
- package/dist/chunks/MarkdownTocItem-DT9mR3vL.js.map +0 -1
- package/dist/chunks/MermaidLiveEditor-W-qf3G-5.js.map +0 -1
- package/dist/chunks/VueSyntaxHighlighter-DyLsYMwy.js.map +0 -1
- package/dist/chunks/adapters-CMwX_NEI.js.map +0 -1
- package/dist/chunks/blank-line-Cb-JBP_5.js.map +0 -1
- package/dist/chunks/codemirror-DyphMAEg.js.map +0 -1
- package/dist/chunks/config-aRYo2R8_.js.map +0 -1
- package/dist/chunks/context-8NfW6fxI.js.map +0 -1
- package/dist/chunks/default-DWVS-I_8.js.map +0 -1
- package/dist/chunks/diagnostics-CtHoJyiX.js.map +0 -1
- package/dist/chunks/export-DZQ3cUry.js.map +0 -1
- package/dist/chunks/hast-nodes-C0bX3M5Z.js +0 -35
- package/dist/chunks/hast-nodes-C0bX3M5Z.js.map +0 -1
- package/dist/chunks/highlightjs-BEh-YwEG.js +0 -6041
- package/dist/chunks/highlightjs-BEh-YwEG.js.map +0 -1
- package/dist/chunks/identity-jZEhX2d5.js.map +0 -1
- package/dist/chunks/labels-BtHiUTQI.js.map +0 -1
- package/dist/chunks/lib-BQiWGWpu.js.map +0 -1
- package/dist/chunks/lib-LwqA_W3J.js +0 -127
- package/dist/chunks/lib-LwqA_W3J.js.map +0 -1
- package/dist/chunks/longest-streak-DZE_EqsU.js.map +0 -1
- package/dist/chunks/micromark-factory-space-Db040TnW.js.map +0 -1
- package/dist/chunks/normalize-CRYv3Wqt.js.map +0 -1
- package/dist/chunks/plugin-DqkFHyny.js.map +0 -1
- package/dist/chunks/preset-BjaOuJUL.js.map +0 -1
- package/dist/chunks/registry-DLjr93-V.js.map +0 -1
- package/dist/chunks/render-Cs8iKrgz.js.map +0 -1
- package/dist/chunks/runtime-DJMnzjah.js.map +0 -1
- package/dist/chunks/security-y4EwUyAs.js.map +0 -1
- package/dist/chunks/shared-DNAvZ-UY.js.map +0 -1
- package/dist/chunks/space-separated-tokens-CmBjEPdR.js.map +0 -1
- package/dist/chunks/url-D2BoivaE.js.map +0 -1
- package/dist/chunks/useActiveHeading-BaGVMJnB.js.map +0 -1
- package/dist/highlight/shiki.js.map +0 -1
- package/dist/html/index.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/math/index.js.map +0 -1
|
@@ -1,45 +1,46 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as e, t } from "./rolldown-runtime-QGRDbDUS.js";
|
|
2
2
|
import { t as n } from "./diagnostics-CtHoJyiX.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import
|
|
6
|
-
import { a as
|
|
7
|
-
import { t as w } from "./
|
|
3
|
+
import { i as r, o as i } from "./normalize-VKfQXZiK.js";
|
|
4
|
+
import { t as a } from "./objectSpread2-CtBNx0TF.js";
|
|
5
|
+
import "./default-ZQ5aHh-N.js";
|
|
6
|
+
import { _ as o, a as s, c, g as l, h as u, m as d, o as f, r as p, s as m, t as h, u as g, v as _ } from "./micromark-factory-space-CpXAnYUY.js";
|
|
7
|
+
import { a as v, c as y, n as b, o as x, r as S, s as C, t as w } from "./blank-line-CKKsFeKR.js";
|
|
8
|
+
import { t as ee } from "./longest-streak-DZE_EqsU.js";
|
|
8
9
|
import "./asyncToGenerator-ChigusFD.js";
|
|
9
10
|
// src/core/search.ts
|
|
10
|
-
function
|
|
11
|
+
function te(e) {
|
|
11
12
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
12
13
|
}
|
|
13
|
-
function
|
|
14
|
+
function ne(e, t, n) {
|
|
14
15
|
if (!t) return;
|
|
15
|
-
let r = new RegExp(
|
|
16
|
+
let r = new RegExp(te(t), n ? "g" : "gi"), i = [], a = 0, o;
|
|
16
17
|
for (; (o = r.exec(e)) !== null;) o.index > a && i.push({ value: e.slice(a, o.index) }), i.push({
|
|
17
18
|
value: o[0],
|
|
18
19
|
match: !0
|
|
19
20
|
}), a = o.index + o[0].length, o[0].length === 0 && (r.lastIndex += 1);
|
|
20
21
|
return a < e.length && i.push({ value: e.slice(a) }), i.length > 0 ? i : void 0;
|
|
21
22
|
}
|
|
22
|
-
function
|
|
23
|
-
var n,
|
|
24
|
-
let a = (n = (
|
|
25
|
-
a ?
|
|
23
|
+
function T(e, t) {
|
|
24
|
+
var n, r;
|
|
25
|
+
let a = (n = (r = t.query) == null ? void 0 : r.trim()) == null ? "" : n;
|
|
26
|
+
a ? i(e, (e) => {
|
|
26
27
|
var n;
|
|
27
|
-
e.kind === "text" && (e.segments =
|
|
28
|
-
}) :
|
|
28
|
+
e.kind === "text" && (e.segments = ne(e.value, a, (n = t.caseSensitive) != null && n));
|
|
29
|
+
}) : i(e, (e) => {
|
|
29
30
|
e.kind === "text" && e.segments && delete e.segments;
|
|
30
31
|
});
|
|
31
32
|
}
|
|
32
|
-
function
|
|
33
|
-
return
|
|
33
|
+
function re(e, t) {
|
|
34
|
+
return T(e.nodes, t), e;
|
|
34
35
|
}
|
|
35
|
-
function
|
|
36
|
+
function ie(e) {
|
|
36
37
|
let t = 0;
|
|
37
|
-
return
|
|
38
|
+
return i(e, (e) => {
|
|
38
39
|
e.kind === "text" && e.segments && (t += e.segments.filter((e) => e.match).length);
|
|
39
40
|
}), t;
|
|
40
41
|
}
|
|
41
42
|
// node_modules/ccount/index.js
|
|
42
|
-
function
|
|
43
|
+
function ae(e, t) {
|
|
43
44
|
let n = String(e);
|
|
44
45
|
if (typeof t != "string") throw TypeError("Expected character");
|
|
45
46
|
let r = 0, i = n.indexOf(t);
|
|
@@ -47,10 +48,10 @@ function ie(e, t) {
|
|
|
47
48
|
return r;
|
|
48
49
|
}
|
|
49
50
|
// src/plugins/define.ts
|
|
50
|
-
function ae(e) {
|
|
51
|
-
return typeof e == "function" ? (t) => oe(e(t)) : oe(e);
|
|
52
|
-
}
|
|
53
51
|
function oe(e) {
|
|
52
|
+
return typeof e == "function" ? (t) => se(e(t)) : se(e);
|
|
53
|
+
}
|
|
54
|
+
function se(e) {
|
|
54
55
|
if (!e || typeof e != "object") throw TypeError("A Markdown plugin must be an object.");
|
|
55
56
|
if (typeof e.name != "string" || e.name.trim() === "") throw TypeError("A Markdown plugin requires a non-empty `name`.");
|
|
56
57
|
if (e.phase && ![
|
|
@@ -60,7 +61,7 @@ function oe(e) {
|
|
|
60
61
|
].includes(e.phase)) throw TypeError(`Plugin "${e.name}" has an invalid phase "${e.phase}".`);
|
|
61
62
|
return e;
|
|
62
63
|
}
|
|
63
|
-
function
|
|
64
|
+
function ce(e, t, n) {
|
|
64
65
|
return {
|
|
65
66
|
source: e,
|
|
66
67
|
options: t,
|
|
@@ -71,15 +72,15 @@ function se(e, t, n) {
|
|
|
71
72
|
};
|
|
72
73
|
}
|
|
73
74
|
// node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js
|
|
74
|
-
function
|
|
75
|
+
function le(e) {
|
|
75
76
|
if (typeof e != "string") throw TypeError("Expected a string");
|
|
76
77
|
return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
77
78
|
}
|
|
78
79
|
// node_modules/mdast-util-find-and-replace/lib/index.js
|
|
79
|
-
function
|
|
80
|
-
let r =
|
|
81
|
-
for (; ++a < i.length;)
|
|
82
|
-
function
|
|
80
|
+
function ue(e, t, n) {
|
|
81
|
+
let r = f((n || {}).ignore || []), i = de(t), a = -1;
|
|
82
|
+
for (; ++a < i.length;) s(e, "text", o);
|
|
83
|
+
function o(e, t) {
|
|
83
84
|
let n = -1, i;
|
|
84
85
|
for (; ++n < t.length;) {
|
|
85
86
|
let e = t[n], a = i ? i.children : void 0;
|
|
@@ -123,73 +124,73 @@ function le(e, t, n) {
|
|
|
123
124
|
}
|
|
124
125
|
}
|
|
125
126
|
}
|
|
126
|
-
function
|
|
127
|
+
function de(e) {
|
|
127
128
|
if (!Array.isArray(e)) throw TypeError("Expected find and replace tuple or list of tuples");
|
|
128
129
|
let t = [], n = !e[0] || Array.isArray(e[0]) ? e : [e], r = -1;
|
|
129
130
|
for (; ++r < n.length;) {
|
|
130
131
|
let e = n[r];
|
|
131
|
-
t.push([
|
|
132
|
+
t.push([fe(e[0]), pe(e[1])]);
|
|
132
133
|
}
|
|
133
134
|
return t;
|
|
134
135
|
}
|
|
135
|
-
function de(e) {
|
|
136
|
-
return typeof e == "string" ? new RegExp(ce(e), "g") : e;
|
|
137
|
-
}
|
|
138
136
|
function fe(e) {
|
|
137
|
+
return typeof e == "string" ? new RegExp(le(e), "g") : e;
|
|
138
|
+
}
|
|
139
|
+
function pe(e) {
|
|
139
140
|
return typeof e == "function" ? e : function() {
|
|
140
141
|
return e;
|
|
141
142
|
};
|
|
142
143
|
}
|
|
143
144
|
// node_modules/mdast-util-gfm-autolink-literal/lib/index.js
|
|
144
|
-
var
|
|
145
|
+
var me = "phrasing", he = [
|
|
145
146
|
"autolink",
|
|
146
147
|
"link",
|
|
147
148
|
"image",
|
|
148
149
|
"label"
|
|
149
150
|
];
|
|
150
|
-
function
|
|
151
|
+
function ge() {
|
|
151
152
|
return {
|
|
152
|
-
transforms: [
|
|
153
|
+
transforms: [we],
|
|
153
154
|
enter: {
|
|
154
|
-
literalAutolink:
|
|
155
|
-
literalAutolinkEmail:
|
|
156
|
-
literalAutolinkHttp:
|
|
157
|
-
literalAutolinkWww:
|
|
155
|
+
literalAutolink: ve,
|
|
156
|
+
literalAutolinkEmail: ye,
|
|
157
|
+
literalAutolinkHttp: ye,
|
|
158
|
+
literalAutolinkWww: ye
|
|
158
159
|
},
|
|
159
160
|
exit: {
|
|
160
|
-
literalAutolink:
|
|
161
|
-
literalAutolinkEmail:
|
|
162
|
-
literalAutolinkHttp:
|
|
163
|
-
literalAutolinkWww:
|
|
161
|
+
literalAutolink: Ce,
|
|
162
|
+
literalAutolinkEmail: Se,
|
|
163
|
+
literalAutolinkHttp: be,
|
|
164
|
+
literalAutolinkWww: xe
|
|
164
165
|
}
|
|
165
166
|
};
|
|
166
167
|
}
|
|
167
|
-
function
|
|
168
|
+
function _e() {
|
|
168
169
|
return { unsafe: [
|
|
169
170
|
{
|
|
170
171
|
character: "@",
|
|
171
172
|
before: "[+\\-.\\w]",
|
|
172
173
|
after: "[\\-.\\w]",
|
|
173
|
-
inConstruct:
|
|
174
|
-
notInConstruct:
|
|
174
|
+
inConstruct: me,
|
|
175
|
+
notInConstruct: he
|
|
175
176
|
},
|
|
176
177
|
{
|
|
177
178
|
character: ".",
|
|
178
179
|
before: "[Ww]",
|
|
179
180
|
after: "[\\-.\\w]",
|
|
180
|
-
inConstruct:
|
|
181
|
-
notInConstruct:
|
|
181
|
+
inConstruct: me,
|
|
182
|
+
notInConstruct: he
|
|
182
183
|
},
|
|
183
184
|
{
|
|
184
185
|
character: ":",
|
|
185
186
|
before: "[ps]",
|
|
186
187
|
after: "\\/",
|
|
187
|
-
inConstruct:
|
|
188
|
-
notInConstruct:
|
|
188
|
+
inConstruct: me,
|
|
189
|
+
notInConstruct: he
|
|
189
190
|
}
|
|
190
191
|
] };
|
|
191
192
|
}
|
|
192
|
-
function
|
|
193
|
+
function ve(e) {
|
|
193
194
|
this.enter({
|
|
194
195
|
type: "link",
|
|
195
196
|
title: null,
|
|
@@ -197,30 +198,30 @@ function _e(e) {
|
|
|
197
198
|
children: []
|
|
198
199
|
}, e);
|
|
199
200
|
}
|
|
200
|
-
function
|
|
201
|
+
function ye(e) {
|
|
201
202
|
this.config.enter.autolinkProtocol.call(this, e);
|
|
202
203
|
}
|
|
203
|
-
function
|
|
204
|
+
function be(e) {
|
|
204
205
|
this.config.exit.autolinkProtocol.call(this, e);
|
|
205
206
|
}
|
|
206
|
-
function
|
|
207
|
+
function xe(e) {
|
|
207
208
|
this.config.exit.data.call(this, e);
|
|
208
209
|
let t = this.stack[this.stack.length - 1];
|
|
209
210
|
t.type, t.url = "http://" + this.sliceSerialize(e);
|
|
210
211
|
}
|
|
211
|
-
function
|
|
212
|
+
function Se(e) {
|
|
212
213
|
this.config.exit.autolinkEmail.call(this, e);
|
|
213
214
|
}
|
|
214
|
-
function
|
|
215
|
+
function Ce(e) {
|
|
215
216
|
this.exit(e);
|
|
216
217
|
}
|
|
217
|
-
function
|
|
218
|
-
|
|
218
|
+
function we(e) {
|
|
219
|
+
ue(e, [[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, Te], [RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)", "gu"), Ee]], { ignore: ["link", "linkReference"] });
|
|
219
220
|
}
|
|
220
|
-
function
|
|
221
|
+
function Te(e, t, n, r, i) {
|
|
221
222
|
let a = "";
|
|
222
|
-
if (!
|
|
223
|
-
let o =
|
|
223
|
+
if (!ke(i) || (/^w/i.test(t) && (n = t + n, t = "", a = "http://"), !De(n))) return !1;
|
|
224
|
+
let o = Oe(n + r);
|
|
224
225
|
if (!o[0]) return !1;
|
|
225
226
|
let s = {
|
|
226
227
|
type: "link",
|
|
@@ -236,8 +237,8 @@ function we(e, t, n, r, i) {
|
|
|
236
237
|
value: o[1]
|
|
237
238
|
}] : s;
|
|
238
239
|
}
|
|
239
|
-
function
|
|
240
|
-
return !
|
|
240
|
+
function Ee(e, t, n, r) {
|
|
241
|
+
return !ke(r, !0) || /[-\d_]$/.test(n) ? !1 : {
|
|
241
242
|
type: "link",
|
|
242
243
|
title: null,
|
|
243
244
|
url: "mailto:" + t + "@" + n,
|
|
@@ -247,38 +248,38 @@ function Te(e, t, n, r) {
|
|
|
247
248
|
}]
|
|
248
249
|
};
|
|
249
250
|
}
|
|
250
|
-
function
|
|
251
|
+
function De(e) {
|
|
251
252
|
let t = e.split(".");
|
|
252
253
|
return !(t.length < 2 || t[t.length - 1] && (/_/.test(t[t.length - 1]) || !/[a-zA-Z\d]/.test(t[t.length - 1])) || t[t.length - 2] && (/_/.test(t[t.length - 2]) || !/[a-zA-Z\d]/.test(t[t.length - 2])));
|
|
253
254
|
}
|
|
254
|
-
function
|
|
255
|
+
function Oe(e) {
|
|
255
256
|
let t = /[!"&'),.:;<>?\]}]+$/.exec(e);
|
|
256
257
|
if (!t) return [e, void 0];
|
|
257
258
|
e = e.slice(0, t.index);
|
|
258
|
-
let n = t[0], r = n.indexOf(")"), i =
|
|
259
|
+
let n = t[0], r = n.indexOf(")"), i = ae(e, "("), a = ae(e, ")");
|
|
259
260
|
for (; r !== -1 && i > a;) e += n.slice(0, r + 1), n = n.slice(r + 1), r = n.indexOf(")"), a++;
|
|
260
261
|
return [e, n];
|
|
261
262
|
}
|
|
262
|
-
function
|
|
263
|
+
function ke(e, t) {
|
|
263
264
|
let n = e.input.charCodeAt(e.index - 1);
|
|
264
|
-
return (e.index === 0 ||
|
|
265
|
+
return (e.index === 0 || _(n) || o(n)) && (!t || n !== 47);
|
|
265
266
|
}
|
|
266
267
|
// node_modules/mdast-util-gfm-footnote/lib/index.js
|
|
267
|
-
|
|
268
|
-
function
|
|
268
|
+
ze.peek = Re;
|
|
269
|
+
function Ae() {
|
|
269
270
|
this.buffer();
|
|
270
271
|
}
|
|
271
|
-
function
|
|
272
|
+
function je(e) {
|
|
272
273
|
this.enter({
|
|
273
274
|
type: "footnoteReference",
|
|
274
275
|
identifier: "",
|
|
275
276
|
label: ""
|
|
276
277
|
}, e);
|
|
277
278
|
}
|
|
278
|
-
function
|
|
279
|
+
function Me() {
|
|
279
280
|
this.buffer();
|
|
280
281
|
}
|
|
281
|
-
function
|
|
282
|
+
function Ne(e) {
|
|
282
283
|
this.enter({
|
|
283
284
|
type: "footnoteDefinition",
|
|
284
285
|
identifier: "",
|
|
@@ -286,52 +287,52 @@ function Me(e) {
|
|
|
286
287
|
children: []
|
|
287
288
|
}, e);
|
|
288
289
|
}
|
|
289
|
-
function
|
|
290
|
+
function Pe(e) {
|
|
290
291
|
let t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
291
|
-
n.type, n.identifier =
|
|
292
|
+
n.type, n.identifier = y(this.sliceSerialize(e)).toLowerCase(), n.label = t;
|
|
292
293
|
}
|
|
293
|
-
function
|
|
294
|
+
function Fe(e) {
|
|
294
295
|
this.exit(e);
|
|
295
296
|
}
|
|
296
|
-
function
|
|
297
|
+
function Ie(e) {
|
|
297
298
|
let t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
298
|
-
n.type, n.identifier =
|
|
299
|
+
n.type, n.identifier = y(this.sliceSerialize(e)).toLowerCase(), n.label = t;
|
|
299
300
|
}
|
|
300
|
-
function
|
|
301
|
+
function Le(e) {
|
|
301
302
|
this.exit(e);
|
|
302
303
|
}
|
|
303
|
-
function
|
|
304
|
+
function Re() {
|
|
304
305
|
return "[";
|
|
305
306
|
}
|
|
306
|
-
function
|
|
307
|
+
function ze(e, t, n, r) {
|
|
307
308
|
let i = n.createTracker(r), a = i.move("[^"), o = n.enter("footnoteReference"), s = n.enter("reference");
|
|
308
309
|
return a += i.move(n.safe(n.associationId(e), {
|
|
309
310
|
after: "]",
|
|
310
311
|
before: a
|
|
311
312
|
})), s(), o(), a += i.move("]"), a;
|
|
312
313
|
}
|
|
313
|
-
function
|
|
314
|
+
function Be() {
|
|
314
315
|
return {
|
|
315
316
|
enter: {
|
|
316
|
-
gfmFootnoteCallString:
|
|
317
|
-
gfmFootnoteCall:
|
|
318
|
-
gfmFootnoteDefinitionLabelString:
|
|
319
|
-
gfmFootnoteDefinition:
|
|
317
|
+
gfmFootnoteCallString: Ae,
|
|
318
|
+
gfmFootnoteCall: je,
|
|
319
|
+
gfmFootnoteDefinitionLabelString: Me,
|
|
320
|
+
gfmFootnoteDefinition: Ne
|
|
320
321
|
},
|
|
321
322
|
exit: {
|
|
322
|
-
gfmFootnoteCallString:
|
|
323
|
-
gfmFootnoteCall:
|
|
324
|
-
gfmFootnoteDefinitionLabelString:
|
|
325
|
-
gfmFootnoteDefinition:
|
|
323
|
+
gfmFootnoteCallString: Pe,
|
|
324
|
+
gfmFootnoteCall: Fe,
|
|
325
|
+
gfmFootnoteDefinitionLabelString: Ie,
|
|
326
|
+
gfmFootnoteDefinition: Le
|
|
326
327
|
}
|
|
327
328
|
};
|
|
328
329
|
}
|
|
329
|
-
function
|
|
330
|
+
function Ve(e) {
|
|
330
331
|
let t = !1;
|
|
331
332
|
return e && e.firstLineBlank && (t = !0), {
|
|
332
333
|
handlers: {
|
|
333
334
|
footnoteDefinition: n,
|
|
334
|
-
footnoteReference:
|
|
335
|
+
footnoteReference: ze
|
|
335
336
|
},
|
|
336
337
|
unsafe: [{
|
|
337
338
|
character: "[",
|
|
@@ -347,17 +348,17 @@ function Be(e) {
|
|
|
347
348
|
return o += a.move(r.safe(r.associationId(e), {
|
|
348
349
|
before: o,
|
|
349
350
|
after: "]"
|
|
350
|
-
})), c(), o += a.move("]:"), e.children && e.children.length > 0 && (a.shift(4), o += a.move((t ? "\n" : " ") + r.indentLines(r.containerFlow(e, a.current()), t ?
|
|
351
|
+
})), c(), o += a.move("]:"), e.children && e.children.length > 0 && (a.shift(4), o += a.move((t ? "\n" : " ") + r.indentLines(r.containerFlow(e, a.current()), t ? Ue : He))), s(), o;
|
|
351
352
|
}
|
|
352
353
|
}
|
|
353
|
-
function Ve(e, t, n) {
|
|
354
|
-
return t === 0 ? e : He(e, t, n);
|
|
355
|
-
}
|
|
356
354
|
function He(e, t, n) {
|
|
355
|
+
return t === 0 ? e : Ue(e, t, n);
|
|
356
|
+
}
|
|
357
|
+
function Ue(e, t, n) {
|
|
357
358
|
return (n ? "" : " ") + e;
|
|
358
359
|
}
|
|
359
360
|
// node_modules/mdast-util-gfm-strikethrough/lib/index.js
|
|
360
|
-
var
|
|
361
|
+
var We = [
|
|
361
362
|
"autolink",
|
|
362
363
|
"destinationLiteral",
|
|
363
364
|
"destinationRaw",
|
|
@@ -365,61 +366,61 @@ var Ue = [
|
|
|
365
366
|
"titleQuote",
|
|
366
367
|
"titleApostrophe"
|
|
367
368
|
];
|
|
368
|
-
|
|
369
|
-
function
|
|
369
|
+
Ye.attention = Xe, Ye.peek = Ze;
|
|
370
|
+
function Ge() {
|
|
370
371
|
return {
|
|
371
372
|
canContainEols: ["delete"],
|
|
372
|
-
enter: { strikethrough:
|
|
373
|
-
exit: { strikethrough:
|
|
373
|
+
enter: { strikethrough: qe },
|
|
374
|
+
exit: { strikethrough: Je }
|
|
374
375
|
};
|
|
375
376
|
}
|
|
376
|
-
function
|
|
377
|
+
function Ke() {
|
|
377
378
|
return {
|
|
378
|
-
handlers: { delete:
|
|
379
|
+
handlers: { delete: Ye },
|
|
379
380
|
unsafe: [{
|
|
380
381
|
character: "~",
|
|
381
382
|
inConstruct: "phrasing",
|
|
382
|
-
notInConstruct:
|
|
383
|
+
notInConstruct: We
|
|
383
384
|
}]
|
|
384
385
|
};
|
|
385
386
|
}
|
|
386
|
-
function
|
|
387
|
+
function qe(e) {
|
|
387
388
|
this.enter({
|
|
388
389
|
type: "delete",
|
|
389
390
|
children: [],
|
|
390
391
|
position: void 0
|
|
391
392
|
}, e);
|
|
392
393
|
}
|
|
393
|
-
function
|
|
394
|
+
function Je(e) {
|
|
394
395
|
this.exit(e);
|
|
395
396
|
}
|
|
396
|
-
function
|
|
397
|
-
let
|
|
398
|
-
return c += n.containerPhrasing(e,
|
|
397
|
+
function Ye(e, t, n, r) {
|
|
398
|
+
let i = n.createTracker(r), o = n.stack.includes("strikethrough") ? "~" : "~~", s = n.enter("strikethrough"), c = i.move(o);
|
|
399
|
+
return c += n.containerPhrasing(e, a(a({}, i.current()), {}, {
|
|
399
400
|
before: c,
|
|
400
401
|
after: "~"
|
|
401
|
-
})), c +=
|
|
402
|
+
})), c += i.move(o), s(), c;
|
|
402
403
|
}
|
|
403
|
-
function
|
|
404
|
+
function Xe() {
|
|
404
405
|
return {
|
|
405
406
|
construct: "strikethrough",
|
|
406
407
|
markers: ["~"],
|
|
407
408
|
sizes: [2, 1]
|
|
408
409
|
};
|
|
409
410
|
}
|
|
410
|
-
function
|
|
411
|
+
function Ze() {
|
|
411
412
|
return "~";
|
|
412
413
|
}
|
|
413
414
|
// node_modules/markdown-table/index.js
|
|
414
|
-
function
|
|
415
|
+
function Qe(e) {
|
|
415
416
|
return e.length;
|
|
416
417
|
}
|
|
417
|
-
function
|
|
418
|
-
let n = t || {}, r = (n.align || []).concat(), i = n.stringLength ||
|
|
418
|
+
function $e(e, t) {
|
|
419
|
+
let n = t || {}, r = (n.align || []).concat(), i = n.stringLength || Qe, a = [], o = [], s = [], c = [], l = 0, u = -1;
|
|
419
420
|
for (; ++u < e.length;) {
|
|
420
421
|
let t = [], r = [], a = -1;
|
|
421
422
|
for (e[u].length > l && (l = e[u].length); ++a < e[u].length;) {
|
|
422
|
-
let o =
|
|
423
|
+
let o = et(e[u][a]);
|
|
423
424
|
if (n.alignDelimiters !== !1) {
|
|
424
425
|
let e = i(o);
|
|
425
426
|
r[a] = e, (c[a] === void 0 || e > c[a]) && (c[a] = e);
|
|
@@ -429,9 +430,9 @@ function Qe(e, t) {
|
|
|
429
430
|
o[u] = t, s[u] = r;
|
|
430
431
|
}
|
|
431
432
|
let d = -1;
|
|
432
|
-
if (typeof r == "object" && "length" in r) for (; ++d < l;) a[d] =
|
|
433
|
+
if (typeof r == "object" && "length" in r) for (; ++d < l;) a[d] = tt(r[d]);
|
|
433
434
|
else {
|
|
434
|
-
let e =
|
|
435
|
+
let e = tt(r);
|
|
435
436
|
for (; ++d < l;) a[d] = e;
|
|
436
437
|
}
|
|
437
438
|
d = -1;
|
|
@@ -460,15 +461,15 @@ function Qe(e, t) {
|
|
|
460
461
|
}
|
|
461
462
|
return m.join("\n");
|
|
462
463
|
}
|
|
463
|
-
function
|
|
464
|
+
function et(e) {
|
|
464
465
|
return e == null ? "" : String(e);
|
|
465
466
|
}
|
|
466
|
-
function
|
|
467
|
+
function tt(e) {
|
|
467
468
|
let t = typeof e == "string" ? e.codePointAt(0) : 0;
|
|
468
469
|
return t === 67 || t === 99 ? 99 : t === 76 || t === 108 ? 108 : t === 82 || t === 114 ? 114 : 0;
|
|
469
470
|
}
|
|
470
471
|
// node_modules/mdast-util-phrasing/lib/index.js
|
|
471
|
-
var
|
|
472
|
+
var nt = f([
|
|
472
473
|
"break",
|
|
473
474
|
"delete",
|
|
474
475
|
"emphasis",
|
|
@@ -487,55 +488,55 @@ var tt = d([
|
|
|
487
488
|
"textDirective"
|
|
488
489
|
]);
|
|
489
490
|
// node_modules/mdast-util-to-markdown/lib/handle/blockquote.js
|
|
490
|
-
function
|
|
491
|
+
function rt(e, t, n, r) {
|
|
491
492
|
let i = n.enter("blockquote"), a = n.createTracker(r);
|
|
492
493
|
a.move("> "), a.shift(2);
|
|
493
|
-
let o = n.indentLines(n.containerFlow(e, a.current()),
|
|
494
|
+
let o = n.indentLines(n.containerFlow(e, a.current()), it);
|
|
494
495
|
return i(), o;
|
|
495
496
|
}
|
|
496
|
-
function
|
|
497
|
+
function it(e, t, n) {
|
|
497
498
|
return ">" + (n ? "" : " ") + e;
|
|
498
499
|
}
|
|
499
500
|
// node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js
|
|
500
|
-
function
|
|
501
|
-
return
|
|
501
|
+
function at(e, t) {
|
|
502
|
+
return ot(e, t.inConstruct, !0) && !ot(e, t.notInConstruct, !1);
|
|
502
503
|
}
|
|
503
|
-
function
|
|
504
|
+
function ot(e, t, n) {
|
|
504
505
|
if (typeof t == "string" && (t = [t]), !t || t.length === 0) return n;
|
|
505
506
|
let r = -1;
|
|
506
507
|
for (; ++r < t.length;) if (e.includes(t[r])) return !0;
|
|
507
508
|
return !1;
|
|
508
509
|
}
|
|
509
510
|
// node_modules/mdast-util-to-markdown/lib/handle/break.js
|
|
510
|
-
function
|
|
511
|
+
function st(e, t, n, r) {
|
|
511
512
|
let i = -1;
|
|
512
513
|
for (; ++i < n.unsafe.length;) {
|
|
513
514
|
let e = n.unsafe[i];
|
|
514
|
-
if (e.character === "\n" && !e.before && !e.after &&
|
|
515
|
+
if (e.character === "\n" && !e.before && !e.after && at(n.stack, e)) return /[\t ]/.test(r.before) ? "" : " ";
|
|
515
516
|
}
|
|
516
517
|
return "\\\n";
|
|
517
518
|
}
|
|
518
519
|
// node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js
|
|
519
|
-
function
|
|
520
|
+
function ct(e, t) {
|
|
520
521
|
return !(t.options.fences !== !1 || !e.value || e.lang || !/[^\n\r ]/.test(e.value) || /^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(e.value));
|
|
521
522
|
}
|
|
522
523
|
// node_modules/mdast-util-to-markdown/lib/util/check-fence.js
|
|
523
|
-
function
|
|
524
|
+
function lt(e) {
|
|
524
525
|
let t = e.options.fence || "`";
|
|
525
526
|
if (t !== "`" && t !== "~") throw Error("Cannot serialize code with `" + t + "` for `options.fence`, expected `` ` `` or `~`");
|
|
526
527
|
return t;
|
|
527
528
|
}
|
|
528
529
|
// node_modules/mdast-util-to-markdown/lib/handle/code.js
|
|
529
|
-
function
|
|
530
|
-
let
|
|
531
|
-
if (
|
|
532
|
-
let e = n.enter("codeIndented"), t = n.indentLines(o,
|
|
530
|
+
function ut(e, t, n, r) {
|
|
531
|
+
let i = lt(n), o = e.value || "";
|
|
532
|
+
if (ct(e, n)) {
|
|
533
|
+
let e = n.enter("codeIndented"), t = n.indentLines(o, dt);
|
|
533
534
|
return e(), t;
|
|
534
535
|
}
|
|
535
|
-
let s = n.createTracker(r), c =
|
|
536
|
+
let s = n.createTracker(r), c = i.repeat(Math.max(ee(o, i) + 1, 3)), l = n.enter("codeFenced"), u = i === "`" ? "GraveAccent" : "Tilde", d = s.move(c);
|
|
536
537
|
if (e.lang) {
|
|
537
538
|
let t = n.enter(`codeFencedLang${u}`);
|
|
538
|
-
d += s.move(n.safe(e.lang,
|
|
539
|
+
d += s.move(n.safe(e.lang, a({
|
|
539
540
|
before: d,
|
|
540
541
|
after: " ",
|
|
541
542
|
encode: ["`"]
|
|
@@ -543,7 +544,7 @@ function lt(e, t, n, r) {
|
|
|
543
544
|
}
|
|
544
545
|
if (e.lang && e.meta) {
|
|
545
546
|
let t = n.enter(`codeFencedMeta${u}`);
|
|
546
|
-
d += s.move(" "), d += s.move(n.safe(e.meta,
|
|
547
|
+
d += s.move(" "), d += s.move(n.safe(e.meta, a({
|
|
547
548
|
before: d,
|
|
548
549
|
after: "\n",
|
|
549
550
|
encode: ["`"]
|
|
@@ -551,118 +552,118 @@ function lt(e, t, n, r) {
|
|
|
551
552
|
}
|
|
552
553
|
return d += s.move("\n"), o && (d += s.move(o + "\n")), d += s.move(c), l(), d;
|
|
553
554
|
}
|
|
554
|
-
function
|
|
555
|
+
function dt(e, t, n) {
|
|
555
556
|
return (n ? "" : " ") + e;
|
|
556
557
|
}
|
|
557
558
|
// node_modules/mdast-util-to-markdown/lib/util/check-quote.js
|
|
558
|
-
function
|
|
559
|
+
function ft(e) {
|
|
559
560
|
let t = e.options.quote || "\"";
|
|
560
561
|
if (t !== "\"" && t !== "'") throw Error("Cannot serialize title with `" + t + "` for `options.quote`, expected `\"`, or `'`");
|
|
561
562
|
return t;
|
|
562
563
|
}
|
|
563
564
|
// node_modules/mdast-util-to-markdown/lib/handle/definition.js
|
|
564
|
-
function
|
|
565
|
-
let
|
|
566
|
-
return u += l.move(n.safe(n.associationId(e),
|
|
565
|
+
function pt(e, t, n, r) {
|
|
566
|
+
let i = ft(n), o = i === "\"" ? "Quote" : "Apostrophe", s = n.enter("definition"), c = n.enter("label"), l = n.createTracker(r), u = l.move("[");
|
|
567
|
+
return u += l.move(n.safe(n.associationId(e), a({
|
|
567
568
|
before: u,
|
|
568
569
|
after: "]"
|
|
569
|
-
}, l.current()))), u += l.move("]: "), c(), !e.url || /[\0- \u007F]/.test(e.url) ? (c = n.enter("destinationLiteral"), u += l.move("<"), u += l.move(n.safe(e.url,
|
|
570
|
+
}, l.current()))), u += l.move("]: "), c(), !e.url || /[\0- \u007F]/.test(e.url) ? (c = n.enter("destinationLiteral"), u += l.move("<"), u += l.move(n.safe(e.url, a({
|
|
570
571
|
before: u,
|
|
571
572
|
after: ">"
|
|
572
|
-
}, l.current()))), u += l.move(">")) : (c = n.enter("destinationRaw"), u += l.move(n.safe(e.url,
|
|
573
|
+
}, l.current()))), u += l.move(">")) : (c = n.enter("destinationRaw"), u += l.move(n.safe(e.url, a({
|
|
573
574
|
before: u,
|
|
574
575
|
after: e.title ? " " : "\n"
|
|
575
|
-
}, l.current())))), c(), e.title && (c = n.enter(`title${o}`), u += l.move(" " +
|
|
576
|
+
}, l.current())))), c(), e.title && (c = n.enter(`title${o}`), u += l.move(" " + i), u += l.move(n.safe(e.title, a({
|
|
576
577
|
before: u,
|
|
577
|
-
after:
|
|
578
|
-
}, l.current()))), u += l.move(
|
|
578
|
+
after: i
|
|
579
|
+
}, l.current()))), u += l.move(i), c()), s(), u;
|
|
579
580
|
}
|
|
580
581
|
// node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js
|
|
581
|
-
function
|
|
582
|
+
function mt(e) {
|
|
582
583
|
let t = e.options.emphasis || "*";
|
|
583
584
|
if (t !== "*" && t !== "_") throw Error("Cannot serialize emphasis with `" + t + "` for `options.emphasis`, expected `*`, or `_`");
|
|
584
585
|
return t;
|
|
585
586
|
}
|
|
586
|
-
|
|
587
|
-
function
|
|
587
|
+
ht.attention = gt, ht.peek = _t;
|
|
588
|
+
function ht(e, t, n, r) {
|
|
588
589
|
let i = n.enter("phrasing"), a = n.containerPhrasing({
|
|
589
590
|
type: "root",
|
|
590
591
|
children: [e]
|
|
591
592
|
}, r);
|
|
592
593
|
return i(), a;
|
|
593
594
|
}
|
|
594
|
-
function
|
|
595
|
+
function gt(e, t) {
|
|
595
596
|
return {
|
|
596
597
|
construct: "emphasis",
|
|
597
|
-
markers:
|
|
598
|
+
markers: mt(t) === "*" ? ["*", "_"] : ["_", "*"],
|
|
598
599
|
sizes: [1]
|
|
599
600
|
};
|
|
600
601
|
}
|
|
601
|
-
function
|
|
602
|
+
function _t(e, t, n) {
|
|
602
603
|
return n.options.emphasis || "*";
|
|
603
604
|
}
|
|
604
605
|
// node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js
|
|
605
|
-
function
|
|
606
|
+
function vt(e) {
|
|
606
607
|
return "&#x" + e.toString(16).toUpperCase() + ";";
|
|
607
608
|
}
|
|
608
609
|
// node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js
|
|
609
|
-
function
|
|
610
|
+
function yt(e, t) {
|
|
610
611
|
let n = !1;
|
|
611
|
-
return
|
|
612
|
+
return p(e, function(e) {
|
|
612
613
|
if ("value" in e && /\r?\n|\r/.test(e.value) || e.type === "break") return n = !0, !1;
|
|
613
|
-
}), !!((!e.depth || e.depth < 3) &&
|
|
614
|
+
}), !!((!e.depth || e.depth < 3) && C(e) && (t.options.setext || n));
|
|
614
615
|
}
|
|
615
616
|
// node_modules/mdast-util-to-markdown/lib/handle/heading.js
|
|
616
|
-
function
|
|
617
|
-
let
|
|
618
|
-
if (
|
|
619
|
-
let t = n.enter("headingSetext"), r = n.enter("phrasing"), s = n.containerPhrasing(e,
|
|
617
|
+
function bt(e, t, n, r) {
|
|
618
|
+
let i = Math.max(Math.min(6, e.depth || 1), 1), o = n.createTracker(r);
|
|
619
|
+
if (yt(e, n)) {
|
|
620
|
+
let t = n.enter("headingSetext"), r = n.enter("phrasing"), s = n.containerPhrasing(e, a(a({}, o.current()), {}, {
|
|
620
621
|
before: "\n",
|
|
621
622
|
after: "\n"
|
|
622
623
|
}));
|
|
623
|
-
return r(), t(), s + "\n" + (
|
|
624
|
+
return r(), t(), s + "\n" + (i === 1 ? "=" : "-").repeat(s.length - (Math.max(s.lastIndexOf("\r"), s.lastIndexOf("\n")) + 1));
|
|
624
625
|
}
|
|
625
|
-
let s = "#".repeat(
|
|
626
|
+
let s = "#".repeat(i), c = n.enter("headingAtx"), l = n.enter("phrasing");
|
|
626
627
|
o.move(s + " ");
|
|
627
|
-
let u = n.containerPhrasing(e,
|
|
628
|
+
let u = n.containerPhrasing(e, a({
|
|
628
629
|
before: "# ",
|
|
629
630
|
after: "\n"
|
|
630
631
|
}, o.current())), d = u.charCodeAt(0);
|
|
631
|
-
return (d === 9 || d === 32) && (u =
|
|
632
|
+
return (d === 9 || d === 32) && (u = vt(d) + u.slice(1)), u = u ? s + " " + u : s, n.options.closeAtx && (u += " " + s), l(), c(), u;
|
|
632
633
|
}
|
|
633
634
|
// node_modules/mdast-util-to-markdown/lib/handle/html.js
|
|
634
|
-
|
|
635
|
-
function
|
|
635
|
+
xt.peek = St;
|
|
636
|
+
function xt(e) {
|
|
636
637
|
return e.value || "";
|
|
637
638
|
}
|
|
638
|
-
function
|
|
639
|
+
function St() {
|
|
639
640
|
return "<";
|
|
640
641
|
}
|
|
641
642
|
// node_modules/mdast-util-to-markdown/lib/handle/image.js
|
|
642
|
-
|
|
643
|
-
function
|
|
644
|
-
let
|
|
645
|
-
return u += l.move(n.safe(e.alt,
|
|
643
|
+
Ct.peek = wt;
|
|
644
|
+
function Ct(e, t, n, r) {
|
|
645
|
+
let i = ft(n), o = i === "\"" ? "Quote" : "Apostrophe", s = n.enter("image"), c = n.enter("label"), l = n.createTracker(r), u = l.move("![");
|
|
646
|
+
return u += l.move(n.safe(e.alt, a({
|
|
646
647
|
before: u,
|
|
647
648
|
after: "]"
|
|
648
|
-
}, l.current()))), u += l.move("]("), c(), !e.url && e.title || /[\0- \u007F]/.test(e.url) ? (c = n.enter("destinationLiteral"), u += l.move("<"), u += l.move(n.safe(e.url,
|
|
649
|
+
}, l.current()))), u += l.move("]("), c(), !e.url && e.title || /[\0- \u007F]/.test(e.url) ? (c = n.enter("destinationLiteral"), u += l.move("<"), u += l.move(n.safe(e.url, a({
|
|
649
650
|
before: u,
|
|
650
651
|
after: ">"
|
|
651
|
-
}, l.current()))), u += l.move(">")) : (c = n.enter("destinationRaw"), u += l.move(n.safe(e.url,
|
|
652
|
+
}, l.current()))), u += l.move(">")) : (c = n.enter("destinationRaw"), u += l.move(n.safe(e.url, a({
|
|
652
653
|
before: u,
|
|
653
654
|
after: e.title ? " " : ")"
|
|
654
|
-
}, l.current())))), c(), e.title && (c = n.enter(`title${o}`), u += l.move(" " +
|
|
655
|
+
}, l.current())))), c(), e.title && (c = n.enter(`title${o}`), u += l.move(" " + i), u += l.move(n.safe(e.title, a({
|
|
655
656
|
before: u,
|
|
656
|
-
after:
|
|
657
|
-
}, l.current()))), u += l.move(
|
|
657
|
+
after: i
|
|
658
|
+
}, l.current()))), u += l.move(i), c()), u += l.move(")"), s(), u;
|
|
658
659
|
}
|
|
659
|
-
function
|
|
660
|
+
function wt() {
|
|
660
661
|
return "!";
|
|
661
662
|
}
|
|
662
663
|
// node_modules/mdast-util-to-markdown/lib/handle/image-reference.js
|
|
663
|
-
|
|
664
|
-
function
|
|
665
|
-
let
|
|
664
|
+
Tt.peek = Et;
|
|
665
|
+
function Tt(e, t, n, r) {
|
|
666
|
+
let i = e.referenceType, o = n.enter("imageReference"), s = n.enter("label"), c = n.createTracker(r), l = c.move("!["), u = n.safe(e.alt, a({
|
|
666
667
|
before: l,
|
|
667
668
|
after: "]"
|
|
668
669
|
}, c.current()));
|
|
@@ -671,18 +672,18 @@ function wt(e, t, n, r) {
|
|
|
671
672
|
n.stack = d.filter(function(e) {
|
|
672
673
|
return e !== "phrasing";
|
|
673
674
|
}), s = n.enter("reference");
|
|
674
|
-
let f = n.safe(n.associationId(e),
|
|
675
|
+
let f = n.safe(n.associationId(e), a({
|
|
675
676
|
before: l,
|
|
676
677
|
after: "]"
|
|
677
678
|
}, c.current()));
|
|
678
|
-
return s(), n.stack = d, o(),
|
|
679
|
+
return s(), n.stack = d, o(), i === "full" || !u || u !== f ? l += c.move(f + "]") : i === "shortcut" ? l = l.slice(0, -1) : l += c.move("]"), l;
|
|
679
680
|
}
|
|
680
|
-
function
|
|
681
|
+
function Et() {
|
|
681
682
|
return "!";
|
|
682
683
|
}
|
|
683
684
|
// node_modules/mdast-util-to-markdown/lib/handle/inline-code.js
|
|
684
|
-
|
|
685
|
-
function
|
|
685
|
+
Dt.peek = Ot;
|
|
686
|
+
function Dt(e, t, n) {
|
|
686
687
|
let r = e.value || "", i = "`", a = -1;
|
|
687
688
|
for (; RegExp("(^|[^`])" + i + "([^`]|$)").test(r);) i += "`";
|
|
688
689
|
for (/[^\n\r ]/.test(r) && (/^[\n\r ]/.test(r) && /[\n\r ]$/.test(r) || /^`|`$/.test(r)) && (r = " " + r + " "); ++a < n.unsafe.length;) {
|
|
@@ -696,51 +697,51 @@ function Et(e, t, n) {
|
|
|
696
697
|
}
|
|
697
698
|
return i + r + i;
|
|
698
699
|
}
|
|
699
|
-
function
|
|
700
|
+
function Ot() {
|
|
700
701
|
return "`";
|
|
701
702
|
}
|
|
702
703
|
// node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js
|
|
703
|
-
function
|
|
704
|
-
let n =
|
|
704
|
+
function kt(e, t) {
|
|
705
|
+
let n = C(e);
|
|
705
706
|
return !(t.options.resourceLink || !e.url || e.title || !e.children || e.children.length !== 1 || e.children[0].type !== "text" || n !== e.url && "mailto:" + n !== e.url || !/^[a-z][+\-.a-z]+:/i.test(e.url) || /[\0- <>\u007F]/.test(e.url));
|
|
706
707
|
}
|
|
707
708
|
// node_modules/mdast-util-to-markdown/lib/handle/link.js
|
|
708
|
-
|
|
709
|
-
function
|
|
710
|
-
let
|
|
711
|
-
if (
|
|
709
|
+
At.peek = jt;
|
|
710
|
+
function At(e, t, n, r) {
|
|
711
|
+
let i = ft(n), o = i === "\"" ? "Quote" : "Apostrophe", s = n.createTracker(r);
|
|
712
|
+
if (kt(e, n)) {
|
|
712
713
|
let t = n.stack;
|
|
713
714
|
n.stack = t.filter(function(e) {
|
|
714
715
|
return e !== "phrasing";
|
|
715
716
|
});
|
|
716
|
-
let r = n.enter("autolink"),
|
|
717
|
-
return
|
|
718
|
-
before:
|
|
717
|
+
let r = n.enter("autolink"), i = s.move("<");
|
|
718
|
+
return i += s.move(n.containerPhrasing(e, a({
|
|
719
|
+
before: i,
|
|
719
720
|
after: ">"
|
|
720
|
-
}, s.current()))),
|
|
721
|
+
}, s.current()))), i += s.move(">"), r(), n.stack = t, i;
|
|
721
722
|
}
|
|
722
723
|
let c = n.enter("link"), l = n.enter("label"), u = s.move("[");
|
|
723
|
-
return u += s.move(n.containerPhrasing(e,
|
|
724
|
+
return u += s.move(n.containerPhrasing(e, a({
|
|
724
725
|
before: u,
|
|
725
726
|
after: "]("
|
|
726
|
-
}, s.current()))), u += s.move("]("), l(), !e.url && e.title || /[\0- \u007F]/.test(e.url) ? (l = n.enter("destinationLiteral"), u += s.move("<"), u += s.move(n.safe(e.url,
|
|
727
|
+
}, s.current()))), u += s.move("]("), l(), !e.url && e.title || /[\0- \u007F]/.test(e.url) ? (l = n.enter("destinationLiteral"), u += s.move("<"), u += s.move(n.safe(e.url, a({
|
|
727
728
|
before: u,
|
|
728
729
|
after: ">"
|
|
729
|
-
}, s.current()))), u += s.move(">")) : (l = n.enter("destinationRaw"), u += s.move(n.safe(e.url,
|
|
730
|
+
}, s.current()))), u += s.move(">")) : (l = n.enter("destinationRaw"), u += s.move(n.safe(e.url, a({
|
|
730
731
|
before: u,
|
|
731
732
|
after: e.title ? " " : ")"
|
|
732
|
-
}, s.current())))), l(), e.title && (l = n.enter(`title${o}`), u += s.move(" " +
|
|
733
|
+
}, s.current())))), l(), e.title && (l = n.enter(`title${o}`), u += s.move(" " + i), u += s.move(n.safe(e.title, a({
|
|
733
734
|
before: u,
|
|
734
|
-
after:
|
|
735
|
-
}, s.current()))), u += s.move(
|
|
735
|
+
after: i
|
|
736
|
+
}, s.current()))), u += s.move(i), l()), u += s.move(")"), c(), u;
|
|
736
737
|
}
|
|
737
|
-
function
|
|
738
|
-
return
|
|
738
|
+
function jt(e, t, n) {
|
|
739
|
+
return kt(e, n) ? "<" : "[";
|
|
739
740
|
}
|
|
740
741
|
// node_modules/mdast-util-to-markdown/lib/handle/link-reference.js
|
|
741
|
-
|
|
742
|
-
function
|
|
743
|
-
let
|
|
742
|
+
Mt.peek = Nt;
|
|
743
|
+
function Mt(e, t, n, r) {
|
|
744
|
+
let i = e.referenceType, o = n.enter("linkReference"), s = n.enter("label"), c = n.createTracker(r), l = c.move("["), u = n.containerPhrasing(e, a({
|
|
744
745
|
before: l,
|
|
745
746
|
after: "]"
|
|
746
747
|
}, c.current()));
|
|
@@ -749,47 +750,47 @@ function jt(e, t, n, r) {
|
|
|
749
750
|
n.stack = d.filter(function(e) {
|
|
750
751
|
return e !== "phrasing";
|
|
751
752
|
}), s = n.enter("reference");
|
|
752
|
-
let f = n.safe(n.associationId(e),
|
|
753
|
+
let f = n.safe(n.associationId(e), a({
|
|
753
754
|
before: l,
|
|
754
755
|
after: "]"
|
|
755
756
|
}, c.current()));
|
|
756
|
-
return s(), n.stack = d, o(),
|
|
757
|
+
return s(), n.stack = d, o(), i === "full" || !u || u !== f ? l += c.move(f + "]") : i === "shortcut" ? l = l.slice(0, -1) : l += c.move("]"), l;
|
|
757
758
|
}
|
|
758
|
-
function
|
|
759
|
+
function Nt() {
|
|
759
760
|
return "[";
|
|
760
761
|
}
|
|
761
762
|
// node_modules/mdast-util-to-markdown/lib/util/check-bullet.js
|
|
762
|
-
function
|
|
763
|
+
function Pt(e) {
|
|
763
764
|
let t = e.options.bullet || "*";
|
|
764
765
|
if (t !== "*" && t !== "+" && t !== "-") throw Error("Cannot serialize items with `" + t + "` for `options.bullet`, expected `*`, `+`, or `-`");
|
|
765
766
|
return t;
|
|
766
767
|
}
|
|
767
768
|
// node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js
|
|
768
|
-
function
|
|
769
|
-
let t =
|
|
769
|
+
function Ft(e) {
|
|
770
|
+
let t = Pt(e), n = e.options.bulletOther;
|
|
770
771
|
if (!n) return t === "*" ? "-" : "*";
|
|
771
772
|
if (n !== "*" && n !== "+" && n !== "-") throw Error("Cannot serialize items with `" + n + "` for `options.bulletOther`, expected `*`, `+`, or `-`");
|
|
772
773
|
if (n === t) throw Error("Expected `bullet` (`" + t + "`) and `bulletOther` (`" + n + "`) to be different");
|
|
773
774
|
return n;
|
|
774
775
|
}
|
|
775
776
|
// node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js
|
|
776
|
-
function
|
|
777
|
+
function It(e) {
|
|
777
778
|
let t = e.options.bulletOrdered || ".";
|
|
778
779
|
if (t !== "." && t !== ")") throw Error("Cannot serialize items with `" + t + "` for `options.bulletOrdered`, expected `.` or `)`");
|
|
779
780
|
return t;
|
|
780
781
|
}
|
|
781
782
|
// node_modules/mdast-util-to-markdown/lib/util/check-rule.js
|
|
782
|
-
function
|
|
783
|
+
function Lt(e) {
|
|
783
784
|
let t = e.options.rule || "*";
|
|
784
785
|
if (t !== "*" && t !== "-" && t !== "_") throw Error("Cannot serialize rules with `" + t + "` for `options.rule`, expected `*`, `-`, or `_`");
|
|
785
786
|
return t;
|
|
786
787
|
}
|
|
787
788
|
// node_modules/mdast-util-to-markdown/lib/handle/list.js
|
|
788
|
-
function
|
|
789
|
-
let i = n.enter("list"), a = n.bulletCurrent, o = e.ordered ?
|
|
789
|
+
function Rt(e, t, n, r) {
|
|
790
|
+
let i = n.enter("list"), a = n.bulletCurrent, o = e.ordered ? It(n) : Pt(n), s = e.ordered ? o === "." ? ")" : "." : Ft(n), c = t && n.bulletLastUsed ? o === n.bulletLastUsed : !1;
|
|
790
791
|
if (!e.ordered) {
|
|
791
792
|
let t = e.children ? e.children[0] : void 0;
|
|
792
|
-
if (o !== "*" && o !== "-" || !t || t.children && t.children[0] || n.stack[n.stack.length - 1] !== "list" || n.stack[n.stack.length - 2] !== "listItem" || n.stack[n.stack.length - 3] !== "list" || n.stack[n.stack.length - 4] !== "listItem" || n.indexStack[n.indexStack.length - 1] !== 0 || n.indexStack[n.indexStack.length - 2] !== 0 || n.indexStack[n.indexStack.length - 3] !== 0 || (c = !0),
|
|
793
|
+
if (o !== "*" && o !== "-" || !t || t.children && t.children[0] || n.stack[n.stack.length - 1] !== "list" || n.stack[n.stack.length - 2] !== "listItem" || n.stack[n.stack.length - 3] !== "list" || n.stack[n.stack.length - 4] !== "listItem" || n.indexStack[n.indexStack.length - 1] !== 0 || n.indexStack[n.indexStack.length - 2] !== 0 || n.indexStack[n.indexStack.length - 3] !== 0 || (c = !0), Lt(n) === o && t) {
|
|
793
794
|
let t = -1;
|
|
794
795
|
for (; ++t < e.children.length;) {
|
|
795
796
|
let n = e.children[t];
|
|
@@ -805,14 +806,14 @@ function Lt(e, t, n, r) {
|
|
|
805
806
|
return n.bulletLastUsed = o, n.bulletCurrent = a, i(), l;
|
|
806
807
|
}
|
|
807
808
|
// node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js
|
|
808
|
-
function
|
|
809
|
+
function zt(e) {
|
|
809
810
|
let t = e.options.listItemIndent || "one";
|
|
810
811
|
if (t !== "tab" && t !== "one" && t !== "mixed") throw Error("Cannot serialize items with `" + t + "` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");
|
|
811
812
|
return t;
|
|
812
813
|
}
|
|
813
814
|
// node_modules/mdast-util-to-markdown/lib/handle/list-item.js
|
|
814
|
-
function
|
|
815
|
-
let i =
|
|
815
|
+
function Bt(e, t, n, r) {
|
|
816
|
+
let i = zt(n), a = n.bulletCurrent || Pt(n);
|
|
816
817
|
t && t.type === "list" && t.ordered && (a = (typeof t.start == "number" && t.start > -1 ? t.start : 1) + (n.options.incrementListMarker === !1 ? 0 : t.children.indexOf(e)) + a);
|
|
817
818
|
let o = a.length + 1;
|
|
818
819
|
(i === "tab" || i === "mixed" && (t && t.type === "list" && t.spread || e.spread)) && (o = Math.ceil(o / 4) * 4);
|
|
@@ -825,104 +826,104 @@ function zt(e, t, n, r) {
|
|
|
825
826
|
}
|
|
826
827
|
}
|
|
827
828
|
// node_modules/mdast-util-to-markdown/lib/handle/paragraph.js
|
|
828
|
-
function
|
|
829
|
+
function Vt(e, t, n, r) {
|
|
829
830
|
let i = n.enter("paragraph"), a = n.enter("phrasing"), o = n.containerPhrasing(e, r);
|
|
830
831
|
return a(), i(), o;
|
|
831
832
|
}
|
|
832
833
|
// node_modules/mdast-util-to-markdown/lib/handle/root.js
|
|
833
|
-
function
|
|
834
|
+
function Ht(e, t, n, r) {
|
|
834
835
|
if (!e.children.some(function(e) {
|
|
835
|
-
return
|
|
836
|
+
return nt(e);
|
|
836
837
|
})) return n.containerFlow(e, r);
|
|
837
838
|
let i = n.enter("phrasing"), a = n.containerPhrasing(e, r);
|
|
838
839
|
return i(), a;
|
|
839
840
|
}
|
|
840
841
|
// node_modules/mdast-util-to-markdown/lib/util/check-strong.js
|
|
841
|
-
function
|
|
842
|
+
function Ut(e) {
|
|
842
843
|
let t = e.options.strong || "*";
|
|
843
844
|
if (t !== "*" && t !== "_") throw Error("Cannot serialize strong with `" + t + "` for `options.strong`, expected `*`, or `_`");
|
|
844
845
|
return t;
|
|
845
846
|
}
|
|
846
|
-
|
|
847
|
-
function
|
|
847
|
+
Wt.attention = Gt, Wt.peek = Kt;
|
|
848
|
+
function Wt(e, t, n, r) {
|
|
848
849
|
let i = n.enter("phrasing"), a = n.containerPhrasing({
|
|
849
850
|
type: "root",
|
|
850
851
|
children: [e]
|
|
851
852
|
}, r);
|
|
852
853
|
return i(), a;
|
|
853
854
|
}
|
|
854
|
-
function
|
|
855
|
+
function Gt(e, t) {
|
|
855
856
|
return {
|
|
856
857
|
construct: "strong",
|
|
857
|
-
markers:
|
|
858
|
+
markers: Ut(t) === "*" ? ["*", "_"] : ["_", "*"],
|
|
858
859
|
sizes: [2]
|
|
859
860
|
};
|
|
860
861
|
}
|
|
861
|
-
function
|
|
862
|
+
function Kt(e, t, n) {
|
|
862
863
|
return n.options.strong || "*";
|
|
863
864
|
}
|
|
864
865
|
// node_modules/mdast-util-to-markdown/lib/handle/text.js
|
|
865
|
-
function
|
|
866
|
+
function qt(e, t, n, r) {
|
|
866
867
|
/* c8 ignore next -- parent always passed */
|
|
867
|
-
let
|
|
868
|
-
return n.safe(e.value,
|
|
869
|
-
afterNode:
|
|
870
|
-
beforeNode:
|
|
868
|
+
let i = t ? t.children : [], o = i.indexOf(e);
|
|
869
|
+
return n.safe(e.value, a(a({}, r), {}, {
|
|
870
|
+
afterNode: i[o + 1],
|
|
871
|
+
beforeNode: i[o - 1]
|
|
871
872
|
}));
|
|
872
873
|
}
|
|
873
874
|
// node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js
|
|
874
|
-
function
|
|
875
|
+
function Jt(e) {
|
|
875
876
|
let t = e.options.ruleRepetition || 3;
|
|
876
877
|
if (t < 3) throw Error("Cannot serialize rules with repetition `" + t + "` for `options.ruleRepetition`, expected `3` or more");
|
|
877
878
|
return t;
|
|
878
879
|
}
|
|
879
880
|
// node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js
|
|
880
|
-
function
|
|
881
|
-
let r = (
|
|
881
|
+
function Yt(e, t, n) {
|
|
882
|
+
let r = (Lt(n) + (n.options.ruleSpaces ? " " : "")).repeat(Jt(n));
|
|
882
883
|
return n.options.ruleSpaces ? r.slice(0, -1) : r;
|
|
883
884
|
}
|
|
884
885
|
// node_modules/mdast-util-to-markdown/lib/handle/index.js
|
|
885
|
-
var
|
|
886
|
-
blockquote:
|
|
887
|
-
break:
|
|
888
|
-
code:
|
|
889
|
-
definition:
|
|
890
|
-
emphasis:
|
|
891
|
-
hardBreak:
|
|
892
|
-
heading:
|
|
893
|
-
html:
|
|
894
|
-
image:
|
|
895
|
-
imageReference:
|
|
896
|
-
inlineCode:
|
|
897
|
-
link:
|
|
898
|
-
linkReference:
|
|
899
|
-
list:
|
|
900
|
-
listItem:
|
|
901
|
-
paragraph:
|
|
902
|
-
root:
|
|
903
|
-
strong:
|
|
904
|
-
text:
|
|
905
|
-
thematicBreak:
|
|
886
|
+
var Xt = {
|
|
887
|
+
blockquote: rt,
|
|
888
|
+
break: st,
|
|
889
|
+
code: ut,
|
|
890
|
+
definition: pt,
|
|
891
|
+
emphasis: ht,
|
|
892
|
+
hardBreak: st,
|
|
893
|
+
heading: bt,
|
|
894
|
+
html: xt,
|
|
895
|
+
image: Ct,
|
|
896
|
+
imageReference: Tt,
|
|
897
|
+
inlineCode: Dt,
|
|
898
|
+
link: At,
|
|
899
|
+
linkReference: Mt,
|
|
900
|
+
list: Rt,
|
|
901
|
+
listItem: Bt,
|
|
902
|
+
paragraph: Vt,
|
|
903
|
+
root: Ht,
|
|
904
|
+
strong: Wt,
|
|
905
|
+
text: qt,
|
|
906
|
+
thematicBreak: Yt
|
|
906
907
|
};
|
|
907
908
|
// node_modules/mdast-util-gfm-table/lib/index.js
|
|
908
|
-
function
|
|
909
|
+
function Zt() {
|
|
909
910
|
return {
|
|
910
911
|
enter: {
|
|
911
|
-
table: Zt,
|
|
912
|
-
tableData: tn,
|
|
913
|
-
tableHeader: tn,
|
|
914
|
-
tableRow: $t
|
|
915
|
-
},
|
|
916
|
-
exit: {
|
|
917
|
-
codeText: nn,
|
|
918
912
|
table: Qt,
|
|
919
|
-
tableData:
|
|
920
|
-
tableHeader:
|
|
913
|
+
tableData: nn,
|
|
914
|
+
tableHeader: nn,
|
|
921
915
|
tableRow: en
|
|
916
|
+
},
|
|
917
|
+
exit: {
|
|
918
|
+
codeText: rn,
|
|
919
|
+
table: $t,
|
|
920
|
+
tableData: tn,
|
|
921
|
+
tableHeader: tn,
|
|
922
|
+
tableRow: tn
|
|
922
923
|
}
|
|
923
924
|
};
|
|
924
925
|
}
|
|
925
|
-
function
|
|
926
|
+
function Qt(e) {
|
|
926
927
|
let t = e._align;
|
|
927
928
|
this.enter({
|
|
928
929
|
type: "table",
|
|
@@ -932,35 +933,35 @@ function Zt(e) {
|
|
|
932
933
|
children: []
|
|
933
934
|
}, e), this.data.inTable = !0;
|
|
934
935
|
}
|
|
935
|
-
function
|
|
936
|
+
function $t(e) {
|
|
936
937
|
this.exit(e), this.data.inTable = void 0;
|
|
937
938
|
}
|
|
938
|
-
function
|
|
939
|
+
function en(e) {
|
|
939
940
|
this.enter({
|
|
940
941
|
type: "tableRow",
|
|
941
942
|
children: []
|
|
942
943
|
}, e);
|
|
943
944
|
}
|
|
944
|
-
function
|
|
945
|
+
function tn(e) {
|
|
945
946
|
this.exit(e);
|
|
946
947
|
}
|
|
947
|
-
function
|
|
948
|
+
function nn(e) {
|
|
948
949
|
this.enter({
|
|
949
950
|
type: "tableCell",
|
|
950
951
|
children: []
|
|
951
952
|
}, e);
|
|
952
953
|
}
|
|
953
|
-
function
|
|
954
|
+
function rn(e) {
|
|
954
955
|
let t = this.resume();
|
|
955
|
-
this.data.inTable && (t = t.replace(/\\([\\|])/g,
|
|
956
|
+
this.data.inTable && (t = t.replace(/\\([\\|])/g, an));
|
|
956
957
|
let n = this.stack[this.stack.length - 1];
|
|
957
958
|
n.type, n.value = t, this.exit(e);
|
|
958
959
|
}
|
|
959
|
-
function
|
|
960
|
+
function an(e, t) {
|
|
960
961
|
return t === "|" ? t : e;
|
|
961
962
|
}
|
|
962
|
-
function
|
|
963
|
-
let t = e || {}, n = t.tableCellPadding, r = t.tablePipeAlign,
|
|
963
|
+
function on(e) {
|
|
964
|
+
let t = e || {}, n = t.tableCellPadding, r = t.tablePipeAlign, i = t.stringLength, o = n ? " " : "|";
|
|
964
965
|
return {
|
|
965
966
|
unsafe: [
|
|
966
967
|
{
|
|
@@ -1006,18 +1007,18 @@ function an(e) {
|
|
|
1006
1007
|
return i.slice(0, i.indexOf("\n"));
|
|
1007
1008
|
}
|
|
1008
1009
|
function l(e, t, n, r) {
|
|
1009
|
-
let
|
|
1010
|
+
let i = n.enter("tableCell"), s = n.enter("phrasing"), c = n.containerPhrasing(e, a(a({}, r), {}, {
|
|
1010
1011
|
before: o,
|
|
1011
1012
|
after: o
|
|
1012
1013
|
}));
|
|
1013
|
-
return s(),
|
|
1014
|
+
return s(), i(), c;
|
|
1014
1015
|
}
|
|
1015
1016
|
function u(e, t) {
|
|
1016
|
-
return
|
|
1017
|
+
return $e(e, {
|
|
1017
1018
|
align: t,
|
|
1018
1019
|
alignDelimiters: r,
|
|
1019
1020
|
padding: n,
|
|
1020
|
-
stringLength:
|
|
1021
|
+
stringLength: i
|
|
1021
1022
|
});
|
|
1022
1023
|
}
|
|
1023
1024
|
function d(e, t, n) {
|
|
@@ -1031,33 +1032,33 @@ function an(e) {
|
|
|
1031
1032
|
return o(), a;
|
|
1032
1033
|
}
|
|
1033
1034
|
function p(e, t, n) {
|
|
1034
|
-
let r =
|
|
1035
|
+
let r = Xt.inlineCode(e, t, n);
|
|
1035
1036
|
return n.stack.includes("tableCell") && (r = r.replace(/\|/g, "\\$&")), r;
|
|
1036
1037
|
}
|
|
1037
1038
|
}
|
|
1038
1039
|
// node_modules/mdast-util-gfm-task-list-item/lib/index.js
|
|
1039
|
-
function
|
|
1040
|
+
function sn() {
|
|
1040
1041
|
return { exit: {
|
|
1041
|
-
taskListCheckValueChecked:
|
|
1042
|
-
taskListCheckValueUnchecked:
|
|
1043
|
-
paragraph:
|
|
1042
|
+
taskListCheckValueChecked: ln,
|
|
1043
|
+
taskListCheckValueUnchecked: ln,
|
|
1044
|
+
paragraph: un
|
|
1044
1045
|
} };
|
|
1045
1046
|
}
|
|
1046
|
-
function
|
|
1047
|
+
function cn() {
|
|
1047
1048
|
return {
|
|
1048
1049
|
unsafe: [{
|
|
1049
1050
|
atBreak: !0,
|
|
1050
1051
|
character: "-",
|
|
1051
1052
|
after: "[:|-]"
|
|
1052
1053
|
}],
|
|
1053
|
-
handlers: { listItem:
|
|
1054
|
+
handlers: { listItem: dn }
|
|
1054
1055
|
};
|
|
1055
1056
|
}
|
|
1056
|
-
function
|
|
1057
|
+
function ln(e) {
|
|
1057
1058
|
let t = this.stack[this.stack.length - 2];
|
|
1058
1059
|
t.type, t.checked = e.type === "taskListCheckValueChecked";
|
|
1059
1060
|
}
|
|
1060
|
-
function
|
|
1061
|
+
function un(e) {
|
|
1061
1062
|
let t = this.stack[this.stack.length - 2];
|
|
1062
1063
|
if (t && t.type === "listItem" && typeof t.checked == "boolean") {
|
|
1063
1064
|
let e = this.stack[this.stack.length - 1];
|
|
@@ -1077,39 +1078,36 @@ function ln(e) {
|
|
|
1077
1078
|
}
|
|
1078
1079
|
this.exit(e);
|
|
1079
1080
|
}
|
|
1080
|
-
function
|
|
1081
|
-
let
|
|
1081
|
+
function dn(e, t, n, r) {
|
|
1082
|
+
let i = e.children[0], o = typeof e.checked == "boolean" && i && i.type === "paragraph", s = "[" + (e.checked ? "x" : " ") + "] ", c = n.createTracker(r);
|
|
1082
1083
|
o && c.move(s);
|
|
1083
|
-
let l =
|
|
1084
|
+
let l = Xt.listItem(e, t, n, a(a({}, r), c.current()));
|
|
1084
1085
|
return o && (l = l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/, u)), l;
|
|
1085
1086
|
function u(e) {
|
|
1086
1087
|
return e + s;
|
|
1087
1088
|
}
|
|
1088
1089
|
}
|
|
1089
1090
|
// node_modules/mdast-util-gfm/lib/index.js
|
|
1090
|
-
function
|
|
1091
|
+
function fn() {
|
|
1091
1092
|
return [
|
|
1092
|
-
he(),
|
|
1093
|
-
ze(),
|
|
1094
|
-
We(),
|
|
1095
|
-
Xt(),
|
|
1096
|
-
on()
|
|
1097
|
-
];
|
|
1098
|
-
}
|
|
1099
|
-
function fn(e) {
|
|
1100
|
-
return { extensions: [
|
|
1101
1093
|
ge(),
|
|
1102
|
-
Be(
|
|
1094
|
+
Be(),
|
|
1103
1095
|
Ge(),
|
|
1104
|
-
|
|
1096
|
+
Zt(),
|
|
1105
1097
|
sn()
|
|
1098
|
+
];
|
|
1099
|
+
}
|
|
1100
|
+
function pn(e) {
|
|
1101
|
+
return { extensions: [
|
|
1102
|
+
_e(),
|
|
1103
|
+
Ve(e),
|
|
1104
|
+
Ke(),
|
|
1105
|
+
on(e),
|
|
1106
|
+
cn()
|
|
1106
1107
|
] };
|
|
1107
1108
|
}
|
|
1108
1109
|
// node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js
|
|
1109
|
-
var
|
|
1110
|
-
tokenize: wn,
|
|
1111
|
-
partial: !0
|
|
1112
|
-
}, mn = {
|
|
1110
|
+
var mn = {
|
|
1113
1111
|
tokenize: Tn,
|
|
1114
1112
|
partial: !0
|
|
1115
1113
|
}, hn = {
|
|
@@ -1122,77 +1120,80 @@ var pn = {
|
|
|
1122
1120
|
tokenize: On,
|
|
1123
1121
|
partial: !0
|
|
1124
1122
|
}, vn = {
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
previous: kn
|
|
1123
|
+
tokenize: kn,
|
|
1124
|
+
partial: !0
|
|
1128
1125
|
}, yn = {
|
|
1129
|
-
name: "
|
|
1126
|
+
name: "wwwAutolink",
|
|
1130
1127
|
tokenize: Cn,
|
|
1131
1128
|
previous: An
|
|
1129
|
+
}, bn = {
|
|
1130
|
+
name: "protocolAutolink",
|
|
1131
|
+
tokenize: wn,
|
|
1132
|
+
previous: jn
|
|
1132
1133
|
}, E = {
|
|
1133
1134
|
name: "emailAutolink",
|
|
1134
|
-
tokenize:
|
|
1135
|
-
previous:
|
|
1135
|
+
tokenize: Sn,
|
|
1136
|
+
previous: Mn
|
|
1136
1137
|
}, D = {};
|
|
1137
|
-
function
|
|
1138
|
+
function xn() {
|
|
1138
1139
|
return { text: D };
|
|
1139
1140
|
}
|
|
1140
1141
|
for (var O = 48; O < 123;) D[O] = E, O++, O === 58 ? O = 65 : O === 91 && (O = 97);
|
|
1141
|
-
D[43] = E, D[45] = E, D[46] = E, D[95] = E, D[72] = [E,
|
|
1142
|
-
function
|
|
1142
|
+
D[43] = E, D[45] = E, D[46] = E, D[95] = E, D[72] = [E, bn], D[104] = [E, bn], D[87] = [E, yn], D[119] = [E, yn];
|
|
1143
|
+
function Sn(e, t, n) {
|
|
1143
1144
|
let r = this, i, a;
|
|
1144
1145
|
return o;
|
|
1145
1146
|
function o(t) {
|
|
1146
|
-
return !
|
|
1147
|
+
return !Nn(t) || !Mn.call(r, r.previous) || Pn(r.events) ? n(t) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), s(t));
|
|
1147
1148
|
}
|
|
1148
|
-
function
|
|
1149
|
-
return
|
|
1149
|
+
function s(t) {
|
|
1150
|
+
return Nn(t) ? (e.consume(t), s) : t === 64 ? (e.consume(t), l) : n(t);
|
|
1150
1151
|
}
|
|
1151
1152
|
function l(t) {
|
|
1152
|
-
return t === 46 ? e.check(
|
|
1153
|
+
return t === 46 ? e.check(vn, d, u)(t) : t === 45 || t === 95 || c(t) ? (a = !0, e.consume(t), l) : d(t);
|
|
1153
1154
|
}
|
|
1154
1155
|
function u(t) {
|
|
1155
1156
|
return e.consume(t), i = !0, l;
|
|
1156
1157
|
}
|
|
1157
1158
|
function d(o) {
|
|
1158
|
-
return a && i &&
|
|
1159
|
+
return a && i && m(r.previous) ? (e.exit("literalAutolinkEmail"), e.exit("literalAutolink"), t(o)) : n(o);
|
|
1159
1160
|
}
|
|
1160
1161
|
}
|
|
1161
|
-
function
|
|
1162
|
+
function Cn(e, t, n) {
|
|
1162
1163
|
let r = this;
|
|
1163
1164
|
return i;
|
|
1164
1165
|
function i(t) {
|
|
1165
|
-
return t !== 87 && t !== 119 || !
|
|
1166
|
+
return t !== 87 && t !== 119 || !An.call(r, r.previous) || Pn(r.events) ? n(t) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(mn, e.attempt(hn, e.attempt(gn, a), n), n)(t));
|
|
1166
1167
|
}
|
|
1167
1168
|
function a(n) {
|
|
1168
1169
|
return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(n);
|
|
1169
1170
|
}
|
|
1170
1171
|
}
|
|
1171
|
-
function
|
|
1172
|
-
let r = this, i = "",
|
|
1172
|
+
function wn(e, t, n) {
|
|
1173
|
+
let r = this, i = "", a = !1;
|
|
1173
1174
|
return s;
|
|
1174
1175
|
function s(t) {
|
|
1175
|
-
return (t === 72 || t === 104) &&
|
|
1176
|
+
return (t === 72 || t === 104) && jn.call(r, r.previous) && !Pn(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), i += String.fromCodePoint(t), e.consume(t), c) : n(t);
|
|
1176
1177
|
}
|
|
1177
1178
|
function c(t) {
|
|
1178
|
-
if (
|
|
1179
|
+
if (m(t) && i.length < 5) return i += String.fromCodePoint(t), e.consume(t), c;
|
|
1179
1180
|
if (t === 58) {
|
|
1180
1181
|
let n = i.toLowerCase();
|
|
1181
|
-
if (n === "http" || n === "https") return e.consume(t),
|
|
1182
|
+
if (n === "http" || n === "https") return e.consume(t), l;
|
|
1182
1183
|
}
|
|
1183
1184
|
return n(t);
|
|
1184
1185
|
}
|
|
1185
|
-
function
|
|
1186
|
-
return t === 47 ? (e.consume(t),
|
|
1186
|
+
function l(t) {
|
|
1187
|
+
return t === 47 ? (e.consume(t), a ? d : (a = !0, l)) : n(t);
|
|
1187
1188
|
}
|
|
1188
1189
|
function d(t) {
|
|
1189
|
-
return t === null ||
|
|
1190
|
+
return t === null || g(t) || u(t) || _(t) || o(t) ? n(t) : e.attempt(hn, e.attempt(gn, f), n)(t);
|
|
1190
1191
|
}
|
|
1191
1192
|
function f(n) {
|
|
1192
1193
|
return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(n);
|
|
1193
1194
|
}
|
|
1194
1195
|
}
|
|
1195
|
-
function
|
|
1196
|
+
function Tn(e, t, n) {
|
|
1196
1197
|
let r = 0;
|
|
1197
1198
|
return i;
|
|
1198
1199
|
function i(t) {
|
|
@@ -1202,66 +1203,66 @@ function wn(e, t, n) {
|
|
|
1202
1203
|
return e === null ? n(e) : t(e);
|
|
1203
1204
|
}
|
|
1204
1205
|
}
|
|
1205
|
-
function
|
|
1206
|
-
let r, i,
|
|
1206
|
+
function En(e, t, n) {
|
|
1207
|
+
let r, i, a;
|
|
1207
1208
|
return s;
|
|
1208
1209
|
function s(t) {
|
|
1209
|
-
return t === 46 || t === 95 ? e.check(
|
|
1210
|
+
return t === 46 || t === 95 ? e.check(_n, l, c)(t) : t === null || u(t) || _(t) || t !== 45 && o(t) ? l(t) : (a = !0, e.consume(t), s);
|
|
1210
1211
|
}
|
|
1211
1212
|
function c(t) {
|
|
1212
1213
|
return t === 95 ? r = !0 : (i = r, r = void 0), e.consume(t), s;
|
|
1213
1214
|
}
|
|
1214
|
-
function
|
|
1215
|
-
return i || r || !
|
|
1215
|
+
function l(e) {
|
|
1216
|
+
return i || r || !a ? n(e) : t(e);
|
|
1216
1217
|
}
|
|
1217
1218
|
}
|
|
1218
|
-
function
|
|
1219
|
+
function Dn(e, t) {
|
|
1219
1220
|
let n = 0, r = 0;
|
|
1220
1221
|
return i;
|
|
1221
1222
|
function i(o) {
|
|
1222
|
-
return o === 40 ? (n++, e.consume(o), i) : o === 41 && r < n ? a(o) : o === 33 || o === 34 || o === 38 || o === 39 || o === 41 || o === 42 || o === 44 || o === 46 || o === 58 || o === 59 || o === 60 || o === 63 || o === 93 || o === 95 || o === 126 ? e.check(
|
|
1223
|
+
return o === 40 ? (n++, e.consume(o), i) : o === 41 && r < n ? a(o) : o === 33 || o === 34 || o === 38 || o === 39 || o === 41 || o === 42 || o === 44 || o === 46 || o === 58 || o === 59 || o === 60 || o === 63 || o === 93 || o === 95 || o === 126 ? e.check(_n, t, a)(o) : o === null || u(o) || _(o) ? t(o) : (e.consume(o), i);
|
|
1223
1224
|
}
|
|
1224
1225
|
function a(t) {
|
|
1225
1226
|
return t === 41 && r++, e.consume(t), i;
|
|
1226
1227
|
}
|
|
1227
1228
|
}
|
|
1228
|
-
function
|
|
1229
|
+
function On(e, t, n) {
|
|
1229
1230
|
return r;
|
|
1230
1231
|
function r(o) {
|
|
1231
|
-
return o === 33 || o === 34 || o === 39 || o === 41 || o === 42 || o === 44 || o === 46 || o === 58 || o === 59 || o === 63 || o === 95 || o === 126 ? (e.consume(o), r) : o === 38 ? (e.consume(o), a) : o === 93 ? (e.consume(o), i) : o === 60 || o === null ||
|
|
1232
|
+
return o === 33 || o === 34 || o === 39 || o === 41 || o === 42 || o === 44 || o === 46 || o === 58 || o === 59 || o === 63 || o === 95 || o === 126 ? (e.consume(o), r) : o === 38 ? (e.consume(o), a) : o === 93 ? (e.consume(o), i) : o === 60 || o === null || u(o) || _(o) ? t(o) : n(o);
|
|
1232
1233
|
}
|
|
1233
1234
|
function i(e) {
|
|
1234
|
-
return e === null || e === 40 || e === 91 ||
|
|
1235
|
+
return e === null || e === 40 || e === 91 || u(e) || _(e) ? t(e) : r(e);
|
|
1235
1236
|
}
|
|
1236
1237
|
function a(e) {
|
|
1237
|
-
return
|
|
1238
|
+
return m(e) ? o(e) : n(e);
|
|
1238
1239
|
}
|
|
1239
1240
|
function o(t) {
|
|
1240
|
-
return t === 59 ? (e.consume(t), r) :
|
|
1241
|
+
return t === 59 ? (e.consume(t), r) : m(t) ? (e.consume(t), o) : n(t);
|
|
1241
1242
|
}
|
|
1242
1243
|
}
|
|
1243
|
-
function
|
|
1244
|
+
function kn(e, t, n) {
|
|
1244
1245
|
return r;
|
|
1245
1246
|
function r(t) {
|
|
1246
1247
|
return e.consume(t), i;
|
|
1247
1248
|
}
|
|
1248
1249
|
function i(e) {
|
|
1249
|
-
return
|
|
1250
|
+
return c(e) ? n(e) : t(e);
|
|
1250
1251
|
}
|
|
1251
1252
|
}
|
|
1252
|
-
function kn(e) {
|
|
1253
|
-
return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 || l(e);
|
|
1254
|
-
}
|
|
1255
1253
|
function An(e) {
|
|
1256
|
-
return
|
|
1254
|
+
return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 || u(e);
|
|
1257
1255
|
}
|
|
1258
1256
|
function jn(e) {
|
|
1259
|
-
return !(e
|
|
1257
|
+
return !m(e);
|
|
1260
1258
|
}
|
|
1261
1259
|
function Mn(e) {
|
|
1262
|
-
return e ===
|
|
1260
|
+
return !(e === 47 || Nn(e));
|
|
1263
1261
|
}
|
|
1264
1262
|
function Nn(e) {
|
|
1263
|
+
return e === 43 || e === 45 || e === 46 || e === 95 || c(e);
|
|
1264
|
+
}
|
|
1265
|
+
function Pn(e) {
|
|
1265
1266
|
let t = e.length, n = !1;
|
|
1266
1267
|
for (; t--;) {
|
|
1267
1268
|
let r = e[t][1];
|
|
@@ -1277,33 +1278,33 @@ function Nn(e) {
|
|
|
1277
1278
|
return e.length > 0 && !n && (e[e.length - 1][1]._gfmAutolinkLiteralWalkedInto = !0), n;
|
|
1278
1279
|
}
|
|
1279
1280
|
// node_modules/micromark-extension-gfm-footnote/lib/syntax.js
|
|
1280
|
-
var
|
|
1281
|
-
tokenize:
|
|
1281
|
+
var Fn = {
|
|
1282
|
+
tokenize: Un,
|
|
1282
1283
|
partial: !0
|
|
1283
1284
|
};
|
|
1284
|
-
function
|
|
1285
|
+
function In() {
|
|
1285
1286
|
return {
|
|
1286
1287
|
document: { 91: {
|
|
1287
1288
|
name: "gfmFootnoteDefinition",
|
|
1288
|
-
tokenize:
|
|
1289
|
-
continuation: { tokenize:
|
|
1290
|
-
exit:
|
|
1289
|
+
tokenize: Bn,
|
|
1290
|
+
continuation: { tokenize: Vn },
|
|
1291
|
+
exit: Hn
|
|
1291
1292
|
} },
|
|
1292
1293
|
text: {
|
|
1293
1294
|
91: {
|
|
1294
1295
|
name: "gfmFootnoteCall",
|
|
1295
|
-
tokenize:
|
|
1296
|
+
tokenize: zn
|
|
1296
1297
|
},
|
|
1297
1298
|
93: {
|
|
1298
1299
|
name: "gfmPotentialFootnoteCall",
|
|
1299
1300
|
add: "after",
|
|
1300
|
-
tokenize:
|
|
1301
|
-
resolveTo:
|
|
1301
|
+
tokenize: Ln,
|
|
1302
|
+
resolveTo: Rn
|
|
1302
1303
|
}
|
|
1303
1304
|
}
|
|
1304
1305
|
};
|
|
1305
1306
|
}
|
|
1306
|
-
function
|
|
1307
|
+
function Ln(e, t, n) {
|
|
1307
1308
|
let r = this, i = r.events.length, a = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []), o;
|
|
1308
1309
|
for (; i--;) {
|
|
1309
1310
|
let e = r.events[i][1];
|
|
@@ -1316,14 +1317,14 @@ function In(e, t, n) {
|
|
|
1316
1317
|
return s;
|
|
1317
1318
|
function s(i) {
|
|
1318
1319
|
if (!o || !o._balanced) return n(i);
|
|
1319
|
-
let s =
|
|
1320
|
+
let s = y(r.sliceSerialize({
|
|
1320
1321
|
start: o.end,
|
|
1321
1322
|
end: r.now()
|
|
1322
1323
|
}));
|
|
1323
1324
|
return s.codePointAt(0) !== 94 || !a.includes(s.slice(1)) ? n(i) : (e.enter("gfmFootnoteCallLabelMarker"), e.consume(i), e.exit("gfmFootnoteCallLabelMarker"), t(i));
|
|
1324
1325
|
}
|
|
1325
1326
|
}
|
|
1326
|
-
function
|
|
1327
|
+
function Rn(e, t) {
|
|
1327
1328
|
let n = e.length;
|
|
1328
1329
|
for (; n--;) if (e[n][1].type === "labelImage" && e[n][0] === "enter") {
|
|
1329
1330
|
e[n][1];
|
|
@@ -1399,72 +1400,72 @@ function Ln(e, t) {
|
|
|
1399
1400
|
];
|
|
1400
1401
|
return e.splice(n, e.length - n + 1, ...s), e;
|
|
1401
1402
|
}
|
|
1402
|
-
function
|
|
1403
|
+
function zn(e, t, n) {
|
|
1403
1404
|
let r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []), a = 0, o;
|
|
1404
1405
|
return s;
|
|
1405
1406
|
function s(t) {
|
|
1406
1407
|
return e.enter("gfmFootnoteCall"), e.enter("gfmFootnoteCallLabelMarker"), e.consume(t), e.exit("gfmFootnoteCallLabelMarker"), c;
|
|
1407
1408
|
}
|
|
1408
1409
|
function c(t) {
|
|
1409
|
-
return t === 94 ? (e.enter("gfmFootnoteCallMarker"), e.consume(t), e.exit("gfmFootnoteCallMarker"), e.enter("gfmFootnoteCallString"), e.enter("chunkString").contentType = "string",
|
|
1410
|
+
return t === 94 ? (e.enter("gfmFootnoteCallMarker"), e.consume(t), e.exit("gfmFootnoteCallMarker"), e.enter("gfmFootnoteCallString"), e.enter("chunkString").contentType = "string", l) : n(t);
|
|
1410
1411
|
}
|
|
1411
|
-
function
|
|
1412
|
-
if (a > 999 || s === 93 && !o || s === null || s === 91 ||
|
|
1412
|
+
function l(s) {
|
|
1413
|
+
if (a > 999 || s === 93 && !o || s === null || s === 91 || u(s)) return n(s);
|
|
1413
1414
|
if (s === 93) {
|
|
1414
1415
|
e.exit("chunkString");
|
|
1415
1416
|
let a = e.exit("gfmFootnoteCallString");
|
|
1416
|
-
return i.includes(
|
|
1417
|
+
return i.includes(y(r.sliceSerialize(a))) ? (e.enter("gfmFootnoteCallLabelMarker"), e.consume(s), e.exit("gfmFootnoteCallLabelMarker"), e.exit("gfmFootnoteCall"), t) : n(s);
|
|
1417
1418
|
}
|
|
1418
|
-
return
|
|
1419
|
+
return u(s) || (o = !0), a++, e.consume(s), s === 92 ? d : l;
|
|
1419
1420
|
}
|
|
1420
1421
|
function d(t) {
|
|
1421
|
-
return t === 91 || t === 92 || t === 93 ? (e.consume(t), a++,
|
|
1422
|
+
return t === 91 || t === 92 || t === 93 ? (e.consume(t), a++, l) : l(t);
|
|
1422
1423
|
}
|
|
1423
1424
|
}
|
|
1424
|
-
function
|
|
1425
|
+
function Bn(e, t, n) {
|
|
1425
1426
|
let r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []), a, o = 0, s;
|
|
1426
1427
|
return c;
|
|
1427
1428
|
function c(t) {
|
|
1428
|
-
return e.enter("gfmFootnoteDefinition")._container = !0, e.enter("gfmFootnoteDefinitionLabel"), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(t), e.exit("gfmFootnoteDefinitionLabelMarker"),
|
|
1429
|
+
return e.enter("gfmFootnoteDefinition")._container = !0, e.enter("gfmFootnoteDefinitionLabel"), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(t), e.exit("gfmFootnoteDefinitionLabelMarker"), l;
|
|
1429
1430
|
}
|
|
1430
|
-
function
|
|
1431
|
+
function l(t) {
|
|
1431
1432
|
return t === 94 ? (e.enter("gfmFootnoteDefinitionMarker"), e.consume(t), e.exit("gfmFootnoteDefinitionMarker"), e.enter("gfmFootnoteDefinitionLabelString"), e.enter("chunkString").contentType = "string", d) : n(t);
|
|
1432
1433
|
}
|
|
1433
1434
|
function d(t) {
|
|
1434
|
-
if (o > 999 || t === 93 && !s || t === null || t === 91 ||
|
|
1435
|
+
if (o > 999 || t === 93 && !s || t === null || t === 91 || u(t)) return n(t);
|
|
1435
1436
|
if (t === 93) {
|
|
1436
1437
|
e.exit("chunkString");
|
|
1437
1438
|
let n = e.exit("gfmFootnoteDefinitionLabelString");
|
|
1438
|
-
return a =
|
|
1439
|
+
return a = y(r.sliceSerialize(n)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(t), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), p;
|
|
1439
1440
|
}
|
|
1440
|
-
return
|
|
1441
|
+
return u(t) || (s = !0), o++, e.consume(t), t === 92 ? f : d;
|
|
1441
1442
|
}
|
|
1442
1443
|
function f(t) {
|
|
1443
1444
|
return t === 91 || t === 92 || t === 93 ? (e.consume(t), o++, d) : d(t);
|
|
1444
1445
|
}
|
|
1445
1446
|
function p(t) {
|
|
1446
|
-
return t === 58 ? (e.enter("definitionMarker"), e.consume(t), e.exit("definitionMarker"), i.includes(a) || i.push(a),
|
|
1447
|
+
return t === 58 ? (e.enter("definitionMarker"), e.consume(t), e.exit("definitionMarker"), i.includes(a) || i.push(a), h(e, m, "gfmFootnoteDefinitionWhitespace")) : n(t);
|
|
1447
1448
|
}
|
|
1448
|
-
function
|
|
1449
|
+
function m(e) {
|
|
1449
1450
|
return t(e);
|
|
1450
1451
|
}
|
|
1451
1452
|
}
|
|
1452
|
-
function
|
|
1453
|
-
return e.check(
|
|
1453
|
+
function Vn(e, t, n) {
|
|
1454
|
+
return e.check(w, t, e.attempt(Fn, t, n));
|
|
1454
1455
|
}
|
|
1455
|
-
function
|
|
1456
|
+
function Hn(e) {
|
|
1456
1457
|
e.exit("gfmFootnoteDefinition");
|
|
1457
1458
|
}
|
|
1458
|
-
function
|
|
1459
|
+
function Un(e, t, n) {
|
|
1459
1460
|
let r = this;
|
|
1460
|
-
return
|
|
1461
|
+
return h(e, i, "gfmFootnoteDefinitionIndent", 5);
|
|
1461
1462
|
function i(e) {
|
|
1462
1463
|
let i = r.events[r.events.length - 1];
|
|
1463
1464
|
return i && i[1].type === "gfmFootnoteDefinitionIndent" && i[2].sliceSerialize(i[1], !0).length === 4 ? t(e) : n(e);
|
|
1464
1465
|
}
|
|
1465
1466
|
}
|
|
1466
1467
|
// node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js
|
|
1467
|
-
function
|
|
1468
|
+
function Wn(e) {
|
|
1468
1469
|
let t = (e || {}).singleTilde, n = {
|
|
1469
1470
|
name: "strikethrough",
|
|
1470
1471
|
tokenize: i,
|
|
@@ -1511,7 +1512,7 @@ function Un(e) {
|
|
|
1511
1512
|
t
|
|
1512
1513
|
]
|
|
1513
1514
|
], s = t.parser.constructs.insideSpan.null;
|
|
1514
|
-
s &&
|
|
1515
|
+
s && v(o, o.length, 0, b(s, e.slice(r + 1, n), t)), v(o, o.length, 0, [
|
|
1515
1516
|
[
|
|
1516
1517
|
"exit",
|
|
1517
1518
|
a,
|
|
@@ -1532,7 +1533,7 @@ function Un(e) {
|
|
|
1532
1533
|
i,
|
|
1533
1534
|
t
|
|
1534
1535
|
]
|
|
1535
|
-
]),
|
|
1536
|
+
]), v(e, r - 1, n - r + 3, o), n = r + o.length - 2;
|
|
1536
1537
|
break;
|
|
1537
1538
|
}
|
|
1538
1539
|
}
|
|
@@ -1546,21 +1547,21 @@ function Un(e) {
|
|
|
1546
1547
|
return i === 126 && a[a.length - 1][1].type !== "characterEscape" ? r(t) : (e.enter("strikethroughSequenceTemporary"), c(t));
|
|
1547
1548
|
}
|
|
1548
1549
|
function c(a) {
|
|
1549
|
-
let s =
|
|
1550
|
+
let s = x(i);
|
|
1550
1551
|
if (a === 126) return o > 1 ? r(a) : (e.consume(a), o++, c);
|
|
1551
1552
|
if (o < 2 && !t) return r(a);
|
|
1552
|
-
let l = e.exit("strikethroughSequenceTemporary"), u =
|
|
1553
|
+
let l = e.exit("strikethroughSequenceTemporary"), u = x(a);
|
|
1553
1554
|
return l._open = !u || u === 2 && !!s, l._close = !s || s === 2 && !!u, n(a);
|
|
1554
1555
|
}
|
|
1555
1556
|
}
|
|
1556
1557
|
}
|
|
1557
1558
|
// node_modules/micromark-extension-gfm-table/lib/edit-map.js
|
|
1558
|
-
var
|
|
1559
|
+
var Gn = class {
|
|
1559
1560
|
constructor() {
|
|
1560
1561
|
this.map = [], this.index = /* @__PURE__ */ new Map();
|
|
1561
1562
|
}
|
|
1562
1563
|
add(e, t, n) {
|
|
1563
|
-
|
|
1564
|
+
Kn(this, e, t, n);
|
|
1564
1565
|
}
|
|
1565
1566
|
consume(e) {
|
|
1566
1567
|
/* c8 ignore next 3 -- `resolve` is never called without tables, so without edits. */
|
|
@@ -1578,7 +1579,7 @@ var Wn = class {
|
|
|
1578
1579
|
this.map.length = 0, this.index.clear();
|
|
1579
1580
|
}
|
|
1580
1581
|
};
|
|
1581
|
-
function
|
|
1582
|
+
function Kn(e, t, n, r) {
|
|
1582
1583
|
/* c8 ignore next 3 -- `resolve` is never called without tables, so without edits. */
|
|
1583
1584
|
if (n === 0 && r.length === 0) return;
|
|
1584
1585
|
let i = e.index.get(t);
|
|
@@ -1594,7 +1595,7 @@ function Gn(e, t, n, r) {
|
|
|
1594
1595
|
e.map.push(a), e.index.set(t, a);
|
|
1595
1596
|
}
|
|
1596
1597
|
// node_modules/micromark-extension-gfm-table/lib/infer.js
|
|
1597
|
-
function
|
|
1598
|
+
function qn(e, t) {
|
|
1598
1599
|
let n = !1, r = [];
|
|
1599
1600
|
for (; t < e.length;) {
|
|
1600
1601
|
let i = e[t];
|
|
@@ -1612,14 +1613,14 @@ function Kn(e, t) {
|
|
|
1612
1613
|
return r;
|
|
1613
1614
|
}
|
|
1614
1615
|
// node_modules/micromark-extension-gfm-table/lib/syntax.js
|
|
1615
|
-
function
|
|
1616
|
+
function Jn() {
|
|
1616
1617
|
return { flow: { null: {
|
|
1617
1618
|
name: "table",
|
|
1618
|
-
tokenize:
|
|
1619
|
-
resolveAll:
|
|
1619
|
+
tokenize: Yn,
|
|
1620
|
+
resolveAll: Xn
|
|
1620
1621
|
} } };
|
|
1621
1622
|
}
|
|
1622
|
-
function
|
|
1623
|
+
function Yn(e, t, n) {
|
|
1623
1624
|
let r = this, i = 0, a = 0, o;
|
|
1624
1625
|
return s;
|
|
1625
1626
|
function s(e) {
|
|
@@ -1629,35 +1630,35 @@ function Jn(e, t, n) {
|
|
|
1629
1630
|
if (e === "lineEnding" || e === "linePrefix") t--;
|
|
1630
1631
|
else break;
|
|
1631
1632
|
}
|
|
1632
|
-
let i = t > -1 ? r.events[t][1].type : null, a = i === "tableHead" || i === "tableRow" ? te :
|
|
1633
|
+
let i = t > -1 ? r.events[t][1].type : null, a = i === "tableHead" || i === "tableRow" ? te : c;
|
|
1633
1634
|
return a === te && r.parser.lazy[r.now().line] ? n(e) : a(e);
|
|
1634
1635
|
}
|
|
1635
|
-
function
|
|
1636
|
+
function c(t) {
|
|
1636
1637
|
return e.enter("tableHead"), e.enter("tableRow"), f(t);
|
|
1637
1638
|
}
|
|
1638
1639
|
function f(e) {
|
|
1639
1640
|
return e === 124 || (o = !0, a += 1), p(e);
|
|
1640
1641
|
}
|
|
1641
1642
|
function p(t) {
|
|
1642
|
-
return t === null ? n(t) :
|
|
1643
|
+
return t === null ? n(t) : d(t) ? a > 1 ? (a = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), _) : n(t) : l(t) ? h(e, p, "whitespace")(t) : (a += 1, o && (o = !1, i += 1), t === 124 ? (e.enter("tableCellDivider"), e.consume(t), e.exit("tableCellDivider"), o = !0, p) : (e.enter("data"), m(t)));
|
|
1643
1644
|
}
|
|
1644
|
-
function
|
|
1645
|
-
return t === null || t === 124 ||
|
|
1645
|
+
function m(t) {
|
|
1646
|
+
return t === null || t === 124 || u(t) ? (e.exit("data"), p(t)) : (e.consume(t), t === 92 ? g : m);
|
|
1646
1647
|
}
|
|
1647
1648
|
function g(t) {
|
|
1648
|
-
return t === 92 || t === 124 ? (e.consume(t),
|
|
1649
|
+
return t === 92 || t === 124 ? (e.consume(t), m) : m(t);
|
|
1649
1650
|
}
|
|
1650
1651
|
function _(t) {
|
|
1651
|
-
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(t) : (e.enter("tableDelimiterRow"), o = !1,
|
|
1652
|
+
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(t) : (e.enter("tableDelimiterRow"), o = !1, l(t) ? h(e, v, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(t) : v(t));
|
|
1652
1653
|
}
|
|
1653
1654
|
function v(t) {
|
|
1654
1655
|
return t === 45 || t === 58 ? b(t) : t === 124 ? (o = !0, e.enter("tableCellDivider"), e.consume(t), e.exit("tableCellDivider"), y) : ee(t);
|
|
1655
1656
|
}
|
|
1656
1657
|
function y(t) {
|
|
1657
|
-
return
|
|
1658
|
+
return l(t) ? h(e, b, "whitespace")(t) : b(t);
|
|
1658
1659
|
}
|
|
1659
1660
|
function b(t) {
|
|
1660
|
-
return t === 58 ? (a += 1, o = !0, e.enter("tableDelimiterMarker"), e.consume(t), e.exit("tableDelimiterMarker"), x) : t === 45 ? (a += 1, x(t)) : t === null ||
|
|
1661
|
+
return t === 58 ? (a += 1, o = !0, e.enter("tableDelimiterMarker"), e.consume(t), e.exit("tableDelimiterMarker"), x) : t === 45 ? (a += 1, x(t)) : t === null || d(t) ? w(t) : ee(t);
|
|
1661
1662
|
}
|
|
1662
1663
|
function x(t) {
|
|
1663
1664
|
return t === 45 ? (e.enter("tableDelimiterFiller"), S(t)) : ee(t);
|
|
@@ -1666,10 +1667,10 @@ function Jn(e, t, n) {
|
|
|
1666
1667
|
return t === 45 ? (e.consume(t), S) : t === 58 ? (o = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(t), e.exit("tableDelimiterMarker"), C) : (e.exit("tableDelimiterFiller"), C(t));
|
|
1667
1668
|
}
|
|
1668
1669
|
function C(t) {
|
|
1669
|
-
return
|
|
1670
|
+
return l(t) ? h(e, w, "whitespace")(t) : w(t);
|
|
1670
1671
|
}
|
|
1671
1672
|
function w(n) {
|
|
1672
|
-
return n === 124 ? v(n) : n === null ||
|
|
1673
|
+
return n === 124 ? v(n) : n === null || d(n) ? !o || i !== a ? ee(n) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(n)) : ee(n);
|
|
1673
1674
|
}
|
|
1674
1675
|
function ee(e) {
|
|
1675
1676
|
return n(e);
|
|
@@ -1678,16 +1679,16 @@ function Jn(e, t, n) {
|
|
|
1678
1679
|
return e.enter("tableRow"), ne(t);
|
|
1679
1680
|
}
|
|
1680
1681
|
function ne(n) {
|
|
1681
|
-
return n === 124 ? (e.enter("tableCellDivider"), e.consume(n), e.exit("tableCellDivider"), ne) : n === null ||
|
|
1682
|
+
return n === 124 ? (e.enter("tableCellDivider"), e.consume(n), e.exit("tableCellDivider"), ne) : n === null || d(n) ? (e.exit("tableRow"), t(n)) : l(n) ? h(e, ne, "whitespace")(n) : (e.enter("data"), T(n));
|
|
1682
1683
|
}
|
|
1683
1684
|
function T(t) {
|
|
1684
|
-
return t === null || t === 124 ||
|
|
1685
|
+
return t === null || t === 124 || u(t) ? (e.exit("data"), ne(t)) : (e.consume(t), t === 92 ? re : T);
|
|
1685
1686
|
}
|
|
1686
1687
|
function re(t) {
|
|
1687
1688
|
return t === 92 || t === 124 ? (e.consume(t), T) : T(t);
|
|
1688
1689
|
}
|
|
1689
1690
|
}
|
|
1690
|
-
function
|
|
1691
|
+
function Xn(e, t) {
|
|
1691
1692
|
let n = -1, r = !0, i = 0, a = [
|
|
1692
1693
|
0,
|
|
1693
1694
|
0,
|
|
@@ -1698,10 +1699,10 @@ function Yn(e, t) {
|
|
|
1698
1699
|
0,
|
|
1699
1700
|
0,
|
|
1700
1701
|
0
|
|
1701
|
-
], s = !1, c = 0, l, u, d, f = new
|
|
1702
|
+
], s = !1, c = 0, l, u, d, f = new Gn();
|
|
1702
1703
|
for (; ++n < e.length;) {
|
|
1703
1704
|
let p = e[n], m = p[1];
|
|
1704
|
-
p[0] === "enter" ? m.type === "tableHead" ? (s = !1, c !== 0 && (
|
|
1705
|
+
p[0] === "enter" ? m.type === "tableHead" ? (s = !1, c !== 0 && (Qn(f, t, c, l, u), u = void 0, c = 0), l = {
|
|
1705
1706
|
type: "table",
|
|
1706
1707
|
start: Object.assign({}, m.start),
|
|
1707
1708
|
end: Object.assign({}, m.end)
|
|
@@ -1727,25 +1728,25 @@ function Yn(e, t) {
|
|
|
1727
1728
|
"enter",
|
|
1728
1729
|
u,
|
|
1729
1730
|
t
|
|
1730
|
-
]])), i = m.type === "tableDelimiterRow" ? 2 : u ? 3 : 1) : i && (m.type === "data" || m.type === "tableDelimiterMarker" || m.type === "tableDelimiterFiller") ? (r = !1, o[2] === 0 && (a[1] !== 0 && (o[0] = o[1], d =
|
|
1731
|
+
]])), i = m.type === "tableDelimiterRow" ? 2 : u ? 3 : 1) : i && (m.type === "data" || m.type === "tableDelimiterMarker" || m.type === "tableDelimiterFiller") ? (r = !1, o[2] === 0 && (a[1] !== 0 && (o[0] = o[1], d = Zn(f, t, a, i, void 0, d), a = [
|
|
1731
1732
|
0,
|
|
1732
1733
|
0,
|
|
1733
1734
|
0,
|
|
1734
1735
|
0
|
|
1735
|
-
]), o[2] = n)) : m.type === "tableCellDivider" && (r ? r = !1 : (a[1] !== 0 && (o[0] = o[1], d =
|
|
1736
|
+
]), o[2] = n)) : m.type === "tableCellDivider" && (r ? r = !1 : (a[1] !== 0 && (o[0] = o[1], d = Zn(f, t, a, i, void 0, d)), a = o, o = [
|
|
1736
1737
|
a[1],
|
|
1737
1738
|
n,
|
|
1738
1739
|
0,
|
|
1739
1740
|
0
|
|
1740
|
-
])) : m.type === "tableHead" ? (s = !0, c = n) : m.type === "tableRow" || m.type === "tableDelimiterRow" ? (c = n, a[1] === 0 ? o[1] !== 0 && (d =
|
|
1741
|
+
])) : m.type === "tableHead" ? (s = !0, c = n) : m.type === "tableRow" || m.type === "tableDelimiterRow" ? (c = n, a[1] === 0 ? o[1] !== 0 && (d = Zn(f, t, o, i, n, d)) : (o[0] = o[1], d = Zn(f, t, a, i, n, d)), i = 0) : i && (m.type === "data" || m.type === "tableDelimiterMarker" || m.type === "tableDelimiterFiller") && (o[3] = n);
|
|
1741
1742
|
}
|
|
1742
|
-
for (c !== 0 &&
|
|
1743
|
+
for (c !== 0 && Qn(f, t, c, l, u), f.consume(t.events), n = -1; ++n < t.events.length;) {
|
|
1743
1744
|
let e = t.events[n];
|
|
1744
|
-
e[0] === "enter" && e[1].type === "table" && (e[1]._align =
|
|
1745
|
+
e[0] === "enter" && e[1].type === "table" && (e[1]._align = qn(t.events, n));
|
|
1745
1746
|
}
|
|
1746
1747
|
return e;
|
|
1747
1748
|
}
|
|
1748
|
-
function
|
|
1749
|
+
function Zn(e, t, n, r, i, a) {
|
|
1749
1750
|
let o = r === 1 ? "tableHeader" : r === 2 ? "tableDelimiter" : "tableData";
|
|
1750
1751
|
n[0] !== 0 && (a.end = Object.assign({}, k(t.events, n[0])), e.add(n[0], 0, [[
|
|
1751
1752
|
"exit",
|
|
@@ -1790,7 +1791,7 @@ function Xn(e, t, n, r, i, a) {
|
|
|
1790
1791
|
t
|
|
1791
1792
|
]]), a = void 0), a;
|
|
1792
1793
|
}
|
|
1793
|
-
function
|
|
1794
|
+
function Qn(e, t, n, r, i) {
|
|
1794
1795
|
let a = [], o = k(t.events, n);
|
|
1795
1796
|
i && (i.end = Object.assign({}, o), a.push([
|
|
1796
1797
|
"exit",
|
|
@@ -1807,53 +1808,53 @@ function k(e, t) {
|
|
|
1807
1808
|
return n[1][r];
|
|
1808
1809
|
}
|
|
1809
1810
|
// node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js
|
|
1810
|
-
var
|
|
1811
|
+
var $n = {
|
|
1811
1812
|
name: "tasklistCheck",
|
|
1812
|
-
tokenize:
|
|
1813
|
+
tokenize: tr
|
|
1813
1814
|
};
|
|
1814
|
-
function
|
|
1815
|
-
return { text: { 91:
|
|
1815
|
+
function er() {
|
|
1816
|
+
return { text: { 91: $n } };
|
|
1816
1817
|
}
|
|
1817
|
-
function
|
|
1818
|
+
function tr(e, t, n) {
|
|
1818
1819
|
let r = this;
|
|
1819
1820
|
return i;
|
|
1820
1821
|
function i(t) {
|
|
1821
1822
|
return r.previous !== null || !r._gfmTasklistFirstContentOfListItem ? n(t) : (e.enter("taskListCheck"), e.enter("taskListCheckMarker"), e.consume(t), e.exit("taskListCheckMarker"), a);
|
|
1822
1823
|
}
|
|
1823
1824
|
function a(t) {
|
|
1824
|
-
return
|
|
1825
|
+
return u(t) ? (e.enter("taskListCheckValueUnchecked"), e.consume(t), e.exit("taskListCheckValueUnchecked"), o) : t === 88 || t === 120 ? (e.enter("taskListCheckValueChecked"), e.consume(t), e.exit("taskListCheckValueChecked"), o) : n(t);
|
|
1825
1826
|
}
|
|
1826
1827
|
function o(t) {
|
|
1827
1828
|
return t === 93 ? (e.enter("taskListCheckMarker"), e.consume(t), e.exit("taskListCheckMarker"), e.exit("taskListCheck"), s) : n(t);
|
|
1828
1829
|
}
|
|
1829
1830
|
function s(r) {
|
|
1830
|
-
return
|
|
1831
|
+
return d(r) ? t(r) : l(r) ? e.check({ tokenize: nr }, t, n)(r) : n(r);
|
|
1831
1832
|
}
|
|
1832
1833
|
}
|
|
1833
|
-
function
|
|
1834
|
-
return
|
|
1834
|
+
function nr(e, t, n) {
|
|
1835
|
+
return h(e, r, "whitespace");
|
|
1835
1836
|
function r(e) {
|
|
1836
1837
|
return e === null ? n(e) : t(e);
|
|
1837
1838
|
}
|
|
1838
1839
|
}
|
|
1839
1840
|
// node_modules/micromark-extension-gfm/index.js
|
|
1840
|
-
function
|
|
1841
|
-
return
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1841
|
+
function rr(e) {
|
|
1842
|
+
return S([
|
|
1843
|
+
xn(),
|
|
1844
|
+
In(),
|
|
1845
|
+
Wn(e),
|
|
1846
|
+
Jn(),
|
|
1847
|
+
er()
|
|
1847
1848
|
]);
|
|
1848
1849
|
}
|
|
1849
1850
|
// node_modules/remark-gfm/lib/index.js
|
|
1850
|
-
var
|
|
1851
|
-
function
|
|
1852
|
-
let t = this, n = e ||
|
|
1853
|
-
i.push(
|
|
1851
|
+
var ir = {};
|
|
1852
|
+
function ar(e) {
|
|
1853
|
+
let t = this, n = e || ir, r = t.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), a = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), o = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
|
|
1854
|
+
i.push(rr(n)), a.push(fn()), o.push(pn(n));
|
|
1854
1855
|
}
|
|
1855
1856
|
// node_modules/fault/index.js
|
|
1856
|
-
var
|
|
1857
|
+
var or = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
1857
1858
|
(function() {
|
|
1858
1859
|
var e = t === void 0 ? function() {
|
|
1859
1860
|
return this || (0, eval)("this");
|
|
@@ -1905,7 +1906,7 @@ var ar = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
|
1905
1906
|
return a;
|
|
1906
1907
|
}
|
|
1907
1908
|
})();
|
|
1908
|
-
})))(), 1),
|
|
1909
|
+
})))(), 1), sr = Object.assign(A(Error), {
|
|
1909
1910
|
eval: A(EvalError),
|
|
1910
1911
|
range: A(RangeError),
|
|
1911
1912
|
reference: A(ReferenceError),
|
|
@@ -1916,120 +1917,120 @@ var ar = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
|
1916
1917
|
function A(e) {
|
|
1917
1918
|
return t.displayName = e.displayName || e.name, t;
|
|
1918
1919
|
function t(t, ...n) {
|
|
1919
|
-
return new e(t && (0,
|
|
1920
|
+
return new e(t && (0, or.default)(t, ...n));
|
|
1920
1921
|
}
|
|
1921
1922
|
}
|
|
1922
1923
|
// node_modules/micromark-extension-frontmatter/lib/to-matters.js
|
|
1923
|
-
var
|
|
1924
|
+
var cr = {}.hasOwnProperty, lr = {
|
|
1924
1925
|
yaml: "-",
|
|
1925
1926
|
toml: "+"
|
|
1926
1927
|
};
|
|
1927
|
-
function
|
|
1928
|
+
function ur(e) {
|
|
1928
1929
|
let t = [], n = -1, r = Array.isArray(e) ? e : e ? [e] : ["yaml"];
|
|
1929
|
-
for (; ++n < r.length;) t[n] =
|
|
1930
|
+
for (; ++n < r.length;) t[n] = dr(r[n]);
|
|
1930
1931
|
return t;
|
|
1931
1932
|
}
|
|
1932
|
-
function
|
|
1933
|
+
function dr(e) {
|
|
1933
1934
|
let t = e;
|
|
1934
1935
|
if (typeof t == "string") {
|
|
1935
|
-
if (!
|
|
1936
|
+
if (!cr.call(lr, t)) throw sr("Missing matter definition for `%s`", t);
|
|
1936
1937
|
t = {
|
|
1937
1938
|
type: t,
|
|
1938
|
-
marker:
|
|
1939
|
+
marker: lr[t]
|
|
1939
1940
|
};
|
|
1940
|
-
} else if (typeof t != "object") throw
|
|
1941
|
-
if (!
|
|
1942
|
-
if (!
|
|
1941
|
+
} else if (typeof t != "object") throw sr("Expected matter to be an object, not `%j`", t);
|
|
1942
|
+
if (!cr.call(t, "type")) throw sr("Missing `type` in matter `%j`", t);
|
|
1943
|
+
if (!cr.call(t, "fence") && !cr.call(t, "marker")) throw sr("Missing `marker` or `fence` in matter `%j`", t);
|
|
1943
1944
|
return t;
|
|
1944
1945
|
}
|
|
1945
1946
|
// node_modules/micromark-extension-frontmatter/lib/syntax.js
|
|
1946
|
-
function
|
|
1947
|
-
let t =
|
|
1947
|
+
function fr(e) {
|
|
1948
|
+
let t = ur(e), n = {}, r = -1;
|
|
1948
1949
|
for (; ++r < t.length;) {
|
|
1949
|
-
let e = t[r], i =
|
|
1950
|
+
let e = t[r], i = mr(e, "open").charCodeAt(0), a = pr(e), o = n[i];
|
|
1950
1951
|
Array.isArray(o) ? o.push(a) : n[i] = [a];
|
|
1951
1952
|
}
|
|
1952
1953
|
return { flow: n };
|
|
1953
1954
|
}
|
|
1954
|
-
function
|
|
1955
|
+
function pr(e) {
|
|
1955
1956
|
let t = e.anywhere, n = e.type, r = n + "Fence", i = r + "Sequence", a = n + "Value", o = {
|
|
1956
1957
|
tokenize: f,
|
|
1957
1958
|
partial: !0
|
|
1958
|
-
}, s,
|
|
1959
|
+
}, s, c = 0;
|
|
1959
1960
|
return {
|
|
1960
|
-
tokenize:
|
|
1961
|
+
tokenize: u,
|
|
1961
1962
|
concrete: !0
|
|
1962
1963
|
};
|
|
1963
|
-
function
|
|
1964
|
+
function u(u, f, p) {
|
|
1964
1965
|
let m = this;
|
|
1965
1966
|
return h;
|
|
1966
1967
|
function h(a) {
|
|
1967
1968
|
let o = m.now();
|
|
1968
|
-
return o.column === 1 && (o.line === 1 || t) && (s =
|
|
1969
|
+
return o.column === 1 && (o.line === 1 || t) && (s = mr(e, "open"), c = 0, a === s.charCodeAt(c)) ? (u.enter(n), u.enter(r), u.enter(i), g(a)) : p(a);
|
|
1969
1970
|
}
|
|
1970
1971
|
function g(e) {
|
|
1971
|
-
return
|
|
1972
|
+
return c === s.length ? (u.exit(i), l(e) ? (u.enter("whitespace"), _(e)) : v(e)) : e === s.charCodeAt(c++) ? (u.consume(e), g) : p(e);
|
|
1972
1973
|
}
|
|
1973
1974
|
function _(e) {
|
|
1974
|
-
return
|
|
1975
|
+
return l(e) ? (u.consume(e), _) : (u.exit("whitespace"), v(e));
|
|
1975
1976
|
}
|
|
1976
1977
|
function v(t) {
|
|
1977
|
-
return
|
|
1978
|
+
return d(t) ? (u.exit(r), u.enter("lineEnding"), u.consume(t), u.exit("lineEnding"), s = mr(e, "close"), c = 0, u.attempt(o, S, y)) : p(t);
|
|
1978
1979
|
}
|
|
1979
1980
|
function y(e) {
|
|
1980
|
-
return e === null ||
|
|
1981
|
+
return e === null || d(e) ? x(e) : (u.enter(a), b(e));
|
|
1981
1982
|
}
|
|
1982
1983
|
function b(e) {
|
|
1983
|
-
return e === null ||
|
|
1984
|
+
return e === null || d(e) ? (u.exit(a), x(e)) : (u.consume(e), b);
|
|
1984
1985
|
}
|
|
1985
1986
|
function x(e) {
|
|
1986
|
-
return e === null ? p(e) : (
|
|
1987
|
+
return e === null ? p(e) : (u.enter("lineEnding"), u.consume(e), u.exit("lineEnding"), u.attempt(o, S, y));
|
|
1987
1988
|
}
|
|
1988
1989
|
function S(e) {
|
|
1989
|
-
return
|
|
1990
|
+
return u.exit(n), f(e);
|
|
1990
1991
|
}
|
|
1991
1992
|
}
|
|
1992
1993
|
function f(e, t, n) {
|
|
1993
1994
|
let a = 0;
|
|
1994
1995
|
return o;
|
|
1995
1996
|
function o(t) {
|
|
1996
|
-
return t === s.charCodeAt(a) ? (e.enter(r), e.enter(i),
|
|
1997
|
+
return t === s.charCodeAt(a) ? (e.enter(r), e.enter(i), c(t)) : n(t);
|
|
1997
1998
|
}
|
|
1998
|
-
function
|
|
1999
|
-
return a === s.length ? (e.exit(i),
|
|
1999
|
+
function c(t) {
|
|
2000
|
+
return a === s.length ? (e.exit(i), l(t) ? (e.enter("whitespace"), u(t)) : f(t)) : t === s.charCodeAt(a++) ? (e.consume(t), c) : n(t);
|
|
2000
2001
|
}
|
|
2001
|
-
function
|
|
2002
|
-
return
|
|
2002
|
+
function u(t) {
|
|
2003
|
+
return l(t) ? (e.consume(t), u) : (e.exit("whitespace"), f(t));
|
|
2003
2004
|
}
|
|
2004
2005
|
function f(i) {
|
|
2005
|
-
return i === null ||
|
|
2006
|
+
return i === null || d(i) ? (e.exit(r), t(i)) : n(i);
|
|
2006
2007
|
}
|
|
2007
2008
|
}
|
|
2008
2009
|
}
|
|
2009
|
-
function pr(e, t) {
|
|
2010
|
-
return e.marker ? mr(e.marker, t).repeat(3) : mr(e.fence, t);
|
|
2011
|
-
}
|
|
2012
2010
|
function mr(e, t) {
|
|
2011
|
+
return e.marker ? hr(e.marker, t).repeat(3) : hr(e.fence, t);
|
|
2012
|
+
}
|
|
2013
|
+
function hr(e, t) {
|
|
2013
2014
|
return typeof e == "string" ? e : e[t];
|
|
2014
2015
|
}
|
|
2015
2016
|
// node_modules/mdast-util-frontmatter/node_modules/escape-string-regexp/index.js
|
|
2016
|
-
function
|
|
2017
|
+
function gr(e) {
|
|
2017
2018
|
if (typeof e != "string") throw TypeError("Expected a string");
|
|
2018
2019
|
return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
2019
2020
|
}
|
|
2020
2021
|
// node_modules/mdast-util-frontmatter/lib/index.js
|
|
2021
|
-
function
|
|
2022
|
-
let t =
|
|
2022
|
+
function _r(e) {
|
|
2023
|
+
let t = ur(e), n = {}, r = {}, i = -1;
|
|
2023
2024
|
for (; ++i < t.length;) {
|
|
2024
2025
|
let e = t[i];
|
|
2025
|
-
n[e.type] =
|
|
2026
|
+
n[e.type] = vr(e), r[e.type] = yr, r[e.type + "Value"] = br;
|
|
2026
2027
|
}
|
|
2027
2028
|
return {
|
|
2028
2029
|
enter: n,
|
|
2029
2030
|
exit: r
|
|
2030
2031
|
};
|
|
2031
2032
|
}
|
|
2032
|
-
function
|
|
2033
|
+
function vr(e) {
|
|
2033
2034
|
return t;
|
|
2034
2035
|
function t(t) {
|
|
2035
2036
|
this.enter({
|
|
@@ -2038,23 +2039,23 @@ function _r(e) {
|
|
|
2038
2039
|
}, t), this.buffer();
|
|
2039
2040
|
}
|
|
2040
2041
|
}
|
|
2041
|
-
function
|
|
2042
|
+
function yr(e) {
|
|
2042
2043
|
let t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
2043
2044
|
"value" in n, this.exit(e), n.value = t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, "");
|
|
2044
2045
|
}
|
|
2045
|
-
function
|
|
2046
|
+
function br(e) {
|
|
2046
2047
|
this.config.enter.data.call(this, e), this.config.exit.data.call(this, e);
|
|
2047
2048
|
}
|
|
2048
|
-
function
|
|
2049
|
-
let t = [], n = {}, r =
|
|
2049
|
+
function xr(e) {
|
|
2050
|
+
let t = [], n = {}, r = ur(e), i = -1;
|
|
2050
2051
|
for (; ++i < r.length;) {
|
|
2051
2052
|
let e = r[i];
|
|
2052
|
-
n[e.type] =
|
|
2053
|
-
let a =
|
|
2053
|
+
n[e.type] = Sr(e);
|
|
2054
|
+
let a = Cr(e, "open");
|
|
2054
2055
|
t.push({
|
|
2055
2056
|
atBreak: !0,
|
|
2056
2057
|
character: a.charAt(0),
|
|
2057
|
-
after:
|
|
2058
|
+
after: gr(a.charAt(1))
|
|
2058
2059
|
});
|
|
2059
2060
|
}
|
|
2060
2061
|
return {
|
|
@@ -2062,52 +2063,52 @@ function br(e) {
|
|
|
2062
2063
|
handlers: n
|
|
2063
2064
|
};
|
|
2064
2065
|
}
|
|
2065
|
-
function
|
|
2066
|
-
let t =
|
|
2066
|
+
function Sr(e) {
|
|
2067
|
+
let t = Cr(e, "open"), n = Cr(e, "close");
|
|
2067
2068
|
return r;
|
|
2068
2069
|
function r(e) {
|
|
2069
2070
|
return t + (e.value ? "\n" + e.value : "") + "\n" + n;
|
|
2070
2071
|
}
|
|
2071
2072
|
}
|
|
2072
|
-
function Sr(e, t) {
|
|
2073
|
-
return e.marker ? Cr(e.marker, t).repeat(3) : Cr(e.fence, t);
|
|
2074
|
-
}
|
|
2075
2073
|
function Cr(e, t) {
|
|
2074
|
+
return e.marker ? wr(e.marker, t).repeat(3) : wr(e.fence, t);
|
|
2075
|
+
}
|
|
2076
|
+
function wr(e, t) {
|
|
2076
2077
|
return typeof e == "string" ? e : e[t];
|
|
2077
2078
|
}
|
|
2078
2079
|
// node_modules/remark-frontmatter/lib/index.js
|
|
2079
|
-
var
|
|
2080
|
-
function
|
|
2081
|
-
let t = this, n = e ||
|
|
2082
|
-
i.push(
|
|
2080
|
+
var Tr = "yaml";
|
|
2081
|
+
function Er(e) {
|
|
2082
|
+
let t = this, n = e || Tr, r = t.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), a = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), o = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
|
|
2083
|
+
i.push(fr(n)), a.push(_r(n)), o.push(xr(n));
|
|
2083
2084
|
}
|
|
2084
2085
|
// node_modules/yaml/browser/dist/nodes/identity.js
|
|
2085
|
-
var
|
|
2086
|
+
var Dr = Symbol.for("yaml.alias"), Or = Symbol.for("yaml.document"), j = Symbol.for("yaml.map"), kr = Symbol.for("yaml.pair"), M = Symbol.for("yaml.scalar"), Ar = Symbol.for("yaml.seq"), N = Symbol.for("yaml.node.type"), jr = (e) => !!e && typeof e == "object" && e[N] === Dr, Mr = (e) => !!e && typeof e == "object" && e[N] === Or, Nr = (e) => !!e && typeof e == "object" && e[N] === j, P = (e) => !!e && typeof e == "object" && e[N] === kr, F = (e) => !!e && typeof e == "object" && e[N] === M, Pr = (e) => !!e && typeof e == "object" && e[N] === Ar;
|
|
2086
2087
|
function I(e) {
|
|
2087
2088
|
if (e && typeof e == "object") switch (e[N]) {
|
|
2088
2089
|
case j:
|
|
2089
|
-
case
|
|
2090
|
+
case Ar: return !0;
|
|
2090
2091
|
}
|
|
2091
2092
|
return !1;
|
|
2092
2093
|
}
|
|
2093
2094
|
function L(e) {
|
|
2094
2095
|
if (e && typeof e == "object") switch (e[N]) {
|
|
2095
|
-
case
|
|
2096
|
+
case Dr:
|
|
2096
2097
|
case j:
|
|
2097
2098
|
case M:
|
|
2098
|
-
case
|
|
2099
|
+
case Ar: return !0;
|
|
2099
2100
|
}
|
|
2100
2101
|
return !1;
|
|
2101
2102
|
}
|
|
2102
|
-
var
|
|
2103
|
+
var Fr = (e) => (F(e) || I(e)) && !!e.anchor, R = Symbol("break visit"), Ir = Symbol("skip children"), Lr = Symbol("remove node");
|
|
2103
2104
|
function z(e, t) {
|
|
2104
|
-
let n =
|
|
2105
|
-
|
|
2105
|
+
let n = Rr(t);
|
|
2106
|
+
Mr(e) ? B(null, e.contents, n, Object.freeze([e])) === Lr && (e.contents = null) : B(null, e, n, Object.freeze([]));
|
|
2106
2107
|
}
|
|
2107
|
-
z.BREAK = R, z.SKIP =
|
|
2108
|
+
z.BREAK = R, z.SKIP = Ir, z.REMOVE = Lr;
|
|
2108
2109
|
function B(e, t, n, r) {
|
|
2109
|
-
let i =
|
|
2110
|
-
if (L(i) || P(i)) return
|
|
2110
|
+
let i = zr(e, t, n, r);
|
|
2111
|
+
if (L(i) || P(i)) return Br(e, r, i), B(e, i, n, r);
|
|
2111
2112
|
if (typeof i != "symbol") {
|
|
2112
2113
|
if (I(t)) {
|
|
2113
2114
|
r = Object.freeze(r.concat(t));
|
|
@@ -2115,21 +2116,21 @@ function B(e, t, n, r) {
|
|
|
2115
2116
|
let i = B(e, t.items[e], n, r);
|
|
2116
2117
|
if (typeof i == "number") e = i - 1;
|
|
2117
2118
|
else if (i === R) return R;
|
|
2118
|
-
else i ===
|
|
2119
|
+
else i === Lr && (t.items.splice(e, 1), --e);
|
|
2119
2120
|
}
|
|
2120
2121
|
} else if (P(t)) {
|
|
2121
2122
|
r = Object.freeze(r.concat(t));
|
|
2122
2123
|
let e = B("key", t.key, n, r);
|
|
2123
2124
|
if (e === R) return R;
|
|
2124
|
-
e ===
|
|
2125
|
+
e === Lr && (t.key = null);
|
|
2125
2126
|
let i = B("value", t.value, n, r);
|
|
2126
2127
|
if (i === R) return R;
|
|
2127
|
-
i ===
|
|
2128
|
+
i === Lr && (t.value = null);
|
|
2128
2129
|
}
|
|
2129
2130
|
}
|
|
2130
2131
|
return i;
|
|
2131
2132
|
}
|
|
2132
|
-
function
|
|
2133
|
+
function Rr(e) {
|
|
2133
2134
|
return typeof e == "object" && (e.Collection || e.Node || e.Value) ? Object.assign({
|
|
2134
2135
|
Alias: e.Node,
|
|
2135
2136
|
Map: e.Node,
|
|
@@ -2144,34 +2145,34 @@ function Lr(e) {
|
|
|
2144
2145
|
Seq: e.Collection
|
|
2145
2146
|
}, e) : e;
|
|
2146
2147
|
}
|
|
2147
|
-
function
|
|
2148
|
+
function zr(e, t, n, r) {
|
|
2148
2149
|
var i, a, o, s, c;
|
|
2149
2150
|
if (typeof n == "function") return n(e, t, r);
|
|
2150
|
-
if (
|
|
2151
|
-
if (
|
|
2151
|
+
if (Nr(t)) return (i = n.Map) == null ? void 0 : i.call(n, e, t, r);
|
|
2152
|
+
if (Pr(t)) return (a = n.Seq) == null ? void 0 : a.call(n, e, t, r);
|
|
2152
2153
|
if (P(t)) return (o = n.Pair) == null ? void 0 : o.call(n, e, t, r);
|
|
2153
2154
|
if (F(t)) return (s = n.Scalar) == null ? void 0 : s.call(n, e, t, r);
|
|
2154
|
-
if (
|
|
2155
|
+
if (jr(t)) return (c = n.Alias) == null ? void 0 : c.call(n, e, t, r);
|
|
2155
2156
|
}
|
|
2156
|
-
function
|
|
2157
|
+
function Br(e, t, n) {
|
|
2157
2158
|
let r = t[t.length - 1];
|
|
2158
2159
|
if (I(r)) r.items[e] = n;
|
|
2159
2160
|
else if (P(r)) e === "key" ? r.key = n : r.value = n;
|
|
2160
|
-
else if (
|
|
2161
|
+
else if (Mr(r)) r.contents = n;
|
|
2161
2162
|
else {
|
|
2162
|
-
let e =
|
|
2163
|
+
let e = jr(r) ? "alias" : "scalar";
|
|
2163
2164
|
throw Error(`Cannot replace node with ${e} parent`);
|
|
2164
2165
|
}
|
|
2165
2166
|
}
|
|
2166
2167
|
// node_modules/yaml/browser/dist/doc/directives.js
|
|
2167
|
-
var
|
|
2168
|
+
var Vr = {
|
|
2168
2169
|
"!": "%21",
|
|
2169
2170
|
",": "%2C",
|
|
2170
2171
|
"[": "%5B",
|
|
2171
2172
|
"]": "%5D",
|
|
2172
2173
|
"{": "%7B",
|
|
2173
2174
|
"}": "%7D"
|
|
2174
|
-
},
|
|
2175
|
+
}, Hr = (e) => e.replace(/[!,[\]{}]/g, (e) => Vr[e]), Ur = class e {
|
|
2175
2176
|
constructor(t, n) {
|
|
2176
2177
|
this.docStart = null, this.docEnd = !1, this.yaml = Object.assign({}, e.defaultYaml, t), this.tags = Object.assign({}, e.defaultTags, n);
|
|
2177
2178
|
}
|
|
@@ -2234,7 +2235,7 @@ var Br = {
|
|
|
2234
2235
|
return n === "!" ? e : (t(`Could not resolve tag: ${e}`), null);
|
|
2235
2236
|
}
|
|
2236
2237
|
tagString(e) {
|
|
2237
|
-
for (let [t, n] of Object.entries(this.tags)) if (e.startsWith(n)) return t +
|
|
2238
|
+
for (let [t, n] of Object.entries(this.tags)) if (e.startsWith(n)) return t + Hr(e.substring(n.length));
|
|
2238
2239
|
return e[0] === "!" ? e : `!<${e}>`;
|
|
2239
2240
|
}
|
|
2240
2241
|
toString(e) {
|
|
@@ -2249,36 +2250,36 @@ var Br = {
|
|
|
2249
2250
|
return t.join("\n");
|
|
2250
2251
|
}
|
|
2251
2252
|
};
|
|
2252
|
-
|
|
2253
|
+
Ur.defaultYaml = {
|
|
2253
2254
|
explicit: !1,
|
|
2254
2255
|
version: "1.2"
|
|
2255
|
-
},
|
|
2256
|
+
}, Ur.defaultTags = { "!!": "tag:yaml.org,2002:" };
|
|
2256
2257
|
// node_modules/yaml/browser/dist/doc/anchors.js
|
|
2257
|
-
function
|
|
2258
|
+
function Wr(e) {
|
|
2258
2259
|
if (/[\x00-\x19\s,[\]{}]/.test(e)) {
|
|
2259
2260
|
let t = `Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;
|
|
2260
2261
|
throw Error(t);
|
|
2261
2262
|
}
|
|
2262
2263
|
return !0;
|
|
2263
2264
|
}
|
|
2264
|
-
function
|
|
2265
|
+
function Gr(e) {
|
|
2265
2266
|
let t = /* @__PURE__ */ new Set();
|
|
2266
2267
|
return z(e, { Value(e, n) {
|
|
2267
2268
|
n.anchor && t.add(n.anchor);
|
|
2268
2269
|
} }), t;
|
|
2269
2270
|
}
|
|
2270
|
-
function
|
|
2271
|
+
function Kr(e, t) {
|
|
2271
2272
|
for (let n = 1;; ++n) {
|
|
2272
2273
|
let r = `${e}${n}`;
|
|
2273
2274
|
if (!t.has(r)) return r;
|
|
2274
2275
|
}
|
|
2275
2276
|
}
|
|
2276
|
-
function
|
|
2277
|
+
function qr(e, t) {
|
|
2277
2278
|
let n = [], r = /* @__PURE__ */ new Map(), i = null;
|
|
2278
2279
|
return {
|
|
2279
2280
|
onAnchor: (r) => {
|
|
2280
|
-
n.push(r), i != null || (i =
|
|
2281
|
-
let a =
|
|
2281
|
+
n.push(r), i != null || (i = Gr(e));
|
|
2282
|
+
let a = Kr(t, i);
|
|
2282
2283
|
return i.add(a), a;
|
|
2283
2284
|
},
|
|
2284
2285
|
setAnchors: () => {
|
|
@@ -2320,7 +2321,7 @@ function V(e, t, n, r) {
|
|
|
2320
2321
|
function H(e, t, n) {
|
|
2321
2322
|
if (Array.isArray(e)) return e.map((e, t) => H(e, String(t), n));
|
|
2322
2323
|
if (e && typeof e.toJSON == "function") {
|
|
2323
|
-
if (!n || !
|
|
2324
|
+
if (!n || !Fr(e)) return e.toJSON(t, n);
|
|
2324
2325
|
let r = {
|
|
2325
2326
|
aliasCount: 0,
|
|
2326
2327
|
count: 1,
|
|
@@ -2335,7 +2336,7 @@ function H(e, t, n) {
|
|
|
2335
2336
|
return typeof e == "bigint" && !(n != null && n.keep) ? Number(e) : e;
|
|
2336
2337
|
}
|
|
2337
2338
|
// node_modules/yaml/browser/dist/nodes/Node.js
|
|
2338
|
-
var
|
|
2339
|
+
var Jr = class {
|
|
2339
2340
|
constructor(e) {
|
|
2340
2341
|
Object.defineProperty(this, N, { value: e });
|
|
2341
2342
|
}
|
|
@@ -2344,7 +2345,7 @@ var qr = class {
|
|
|
2344
2345
|
return this.range && (e.range = this.range.slice()), e;
|
|
2345
2346
|
}
|
|
2346
2347
|
toJS(e, { mapAsMap: t, maxAliasCount: n, onAnchor: r, reviver: i } = {}) {
|
|
2347
|
-
if (!
|
|
2348
|
+
if (!Mr(e)) throw TypeError("A document argument is required");
|
|
2348
2349
|
let a = {
|
|
2349
2350
|
anchors: /* @__PURE__ */ new Map(),
|
|
2350
2351
|
doc: e,
|
|
@@ -2356,9 +2357,9 @@ var qr = class {
|
|
|
2356
2357
|
if (typeof r == "function") for (let { count: e, res: t } of a.anchors.values()) r(t, e);
|
|
2357
2358
|
return typeof i == "function" ? V(i, { "": o }, "", o) : o;
|
|
2358
2359
|
}
|
|
2359
|
-
},
|
|
2360
|
+
}, Yr = class extends Jr {
|
|
2360
2361
|
constructor(e) {
|
|
2361
|
-
super(
|
|
2362
|
+
super(Dr), this.source = e, Object.defineProperty(this, "tag", { set() {
|
|
2362
2363
|
throw Error("Alias nodes cannot have tags");
|
|
2363
2364
|
} });
|
|
2364
2365
|
}
|
|
@@ -2366,7 +2367,7 @@ var qr = class {
|
|
|
2366
2367
|
if ((t == null ? void 0 : t.maxAliasCount) === 0) throw ReferenceError("Alias resolution is disabled");
|
|
2367
2368
|
let n;
|
|
2368
2369
|
t != null && t.aliasResolveCache ? n = t.aliasResolveCache : (n = [], z(e, { Node: (e, t) => {
|
|
2369
|
-
(
|
|
2370
|
+
(jr(t) || Fr(t)) && n.push(t);
|
|
2370
2371
|
} }), t && (t.aliasResolveCache = n));
|
|
2371
2372
|
let r;
|
|
2372
2373
|
for (let e of n) {
|
|
@@ -2377,7 +2378,7 @@ var qr = class {
|
|
|
2377
2378
|
let { anchors: e, doc: n, maxAliasCount: i } = t, a = e.get(r);
|
|
2378
2379
|
/* istanbul ignore if */
|
|
2379
2380
|
if (a || (H(r, null, t), a = e.get(r)), (a == null ? void 0 : a.res) === void 0) throw ReferenceError("This should not happen: Alias anchor was not resolved?");
|
|
2380
|
-
if (i >= 0 && (a.count += 1, a.aliasCount === 0 && (a.aliasCount =
|
|
2381
|
+
if (i >= 0 && (a.count += 1, a.aliasCount === 0 && (a.aliasCount = Xr(n, r, e)), a.count * a.aliasCount > i)) throw ReferenceError("Excessive alias count indicates a resource exhaustion attack");
|
|
2381
2382
|
}
|
|
2382
2383
|
return r;
|
|
2383
2384
|
}
|
|
@@ -2393,7 +2394,7 @@ var qr = class {
|
|
|
2393
2394
|
toString(e, t, n) {
|
|
2394
2395
|
let r = `*${this.source}`;
|
|
2395
2396
|
if (e) {
|
|
2396
|
-
if (
|
|
2397
|
+
if (Wr(this.source), e.options.verifyAliasOrder && !e.anchors.has(this.source)) {
|
|
2397
2398
|
let e = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
|
|
2398
2399
|
throw Error(e);
|
|
2399
2400
|
}
|
|
@@ -2402,27 +2403,27 @@ var qr = class {
|
|
|
2402
2403
|
return r;
|
|
2403
2404
|
}
|
|
2404
2405
|
};
|
|
2405
|
-
function
|
|
2406
|
-
if (
|
|
2406
|
+
function Xr(e, t, n) {
|
|
2407
|
+
if (jr(t)) {
|
|
2407
2408
|
let r = t.resolve(e), i = n && r && n.get(r);
|
|
2408
2409
|
return i ? i.count * i.aliasCount : 0;
|
|
2409
2410
|
}
|
|
2410
2411
|
if (I(t)) {
|
|
2411
2412
|
let r = 0;
|
|
2412
2413
|
for (let i of t.items) {
|
|
2413
|
-
let t =
|
|
2414
|
+
let t = Xr(e, i, n);
|
|
2414
2415
|
t > r && (r = t);
|
|
2415
2416
|
}
|
|
2416
2417
|
return r;
|
|
2417
2418
|
}
|
|
2418
2419
|
if (P(t)) {
|
|
2419
|
-
let r =
|
|
2420
|
+
let r = Xr(e, t.key, n), i = Xr(e, t.value, n);
|
|
2420
2421
|
return Math.max(r, i);
|
|
2421
2422
|
}
|
|
2422
2423
|
return 1;
|
|
2423
2424
|
}
|
|
2424
2425
|
// node_modules/yaml/browser/dist/nodes/Scalar.js
|
|
2425
|
-
var
|
|
2426
|
+
var Zr = (e) => !e || typeof e != "function" && typeof e != "object", U = class extends Jr {
|
|
2426
2427
|
constructor(e) {
|
|
2427
2428
|
super(M), this.value = e;
|
|
2428
2429
|
}
|
|
@@ -2435,8 +2436,8 @@ var Xr = (e) => !e || typeof e != "function" && typeof e != "object", U = class
|
|
|
2435
2436
|
};
|
|
2436
2437
|
U.BLOCK_FOLDED = "BLOCK_FOLDED", U.BLOCK_LITERAL = "BLOCK_LITERAL", U.PLAIN = "PLAIN", U.QUOTE_DOUBLE = "QUOTE_DOUBLE", U.QUOTE_SINGLE = "QUOTE_SINGLE";
|
|
2437
2438
|
// node_modules/yaml/browser/dist/doc/createNode.js
|
|
2438
|
-
var
|
|
2439
|
-
function
|
|
2439
|
+
var Qr = "tag:yaml.org,2002:";
|
|
2440
|
+
function $r(e, t, n) {
|
|
2440
2441
|
if (t) {
|
|
2441
2442
|
var r;
|
|
2442
2443
|
let e = n.filter((e) => e.tag === t), i = (r = e.find((e) => !e.format)) == null ? e[0] : r;
|
|
@@ -2448,9 +2449,9 @@ function Qr(e, t, n) {
|
|
|
2448
2449
|
return ((n = t.identify) == null ? void 0 : n.call(t, e)) && !t.format;
|
|
2449
2450
|
});
|
|
2450
2451
|
}
|
|
2451
|
-
function
|
|
2452
|
+
function ei(e, t, n) {
|
|
2452
2453
|
var r;
|
|
2453
|
-
if (
|
|
2454
|
+
if (Mr(e) && (e = e.contents), L(e)) return e;
|
|
2454
2455
|
if (P(e)) {
|
|
2455
2456
|
var i, a;
|
|
2456
2457
|
let t = (i = (a = n.schema[j]).createNode) == null ? void 0 : i.call(a, n.schema, null, n);
|
|
@@ -2459,27 +2460,27 @@ function $r(e, t, n) {
|
|
|
2459
2460
|
(e instanceof String || e instanceof Number || e instanceof Boolean || typeof BigInt < "u" && e instanceof BigInt) && (e = e.valueOf());
|
|
2460
2461
|
let { aliasDuplicateObjects: o, onAnchor: s, onTagObj: c, schema: l, sourceObjects: u } = n, d;
|
|
2461
2462
|
if (o && e && typeof e == "object") {
|
|
2462
|
-
if (d = u.get(e), d) return d.anchor != null || (d.anchor = s(e)), new
|
|
2463
|
+
if (d = u.get(e), d) return d.anchor != null || (d.anchor = s(e)), new Yr(d.anchor);
|
|
2463
2464
|
d = {
|
|
2464
2465
|
anchor: null,
|
|
2465
2466
|
node: null
|
|
2466
2467
|
}, u.set(e, d);
|
|
2467
2468
|
}
|
|
2468
|
-
t != null && t.startsWith("!!") && (t =
|
|
2469
|
-
let f =
|
|
2469
|
+
t != null && t.startsWith("!!") && (t = Qr + t.slice(2));
|
|
2470
|
+
let f = $r(e, t, l.tags);
|
|
2470
2471
|
if (!f) {
|
|
2471
2472
|
if (e && typeof e.toJSON == "function" && (e = e.toJSON()), !e || typeof e != "object") {
|
|
2472
2473
|
let t = new U(e);
|
|
2473
2474
|
return d && (d.node = t), t;
|
|
2474
2475
|
}
|
|
2475
|
-
f = e instanceof Map ? l[j] : Symbol.iterator in Object(e) ? l[
|
|
2476
|
+
f = e instanceof Map ? l[j] : Symbol.iterator in Object(e) ? l[Ar] : l[j];
|
|
2476
2477
|
}
|
|
2477
2478
|
c && (c(f), delete n.onTagObj);
|
|
2478
2479
|
let p = f != null && f.createNode ? f.createNode(n.schema, e, n) : typeof (f == null || (r = f.nodeClass) == null ? void 0 : r.from) == "function" ? f.nodeClass.from(n.schema, e, n) : new U(e);
|
|
2479
2480
|
return t ? p.tag = t : f.default || (p.tag = f.tag), d && (d.node = p), p;
|
|
2480
2481
|
}
|
|
2481
2482
|
// node_modules/yaml/browser/dist/nodes/Collection.js
|
|
2482
|
-
function
|
|
2483
|
+
function ti(e, t, n) {
|
|
2483
2484
|
let r = n;
|
|
2484
2485
|
for (let e = t.length - 1; e >= 0; --e) {
|
|
2485
2486
|
let n = t[e];
|
|
@@ -2488,7 +2489,7 @@ function ei(e, t, n) {
|
|
|
2488
2489
|
e[n] = r, r = e;
|
|
2489
2490
|
} else r = /* @__PURE__ */ new Map([[n, r]]);
|
|
2490
2491
|
}
|
|
2491
|
-
return
|
|
2492
|
+
return ei(r, void 0, {
|
|
2492
2493
|
aliasDuplicateObjects: !1,
|
|
2493
2494
|
keepUndefined: !1,
|
|
2494
2495
|
onAnchor: () => {
|
|
@@ -2498,7 +2499,7 @@ function ei(e, t, n) {
|
|
|
2498
2499
|
sourceObjects: /* @__PURE__ */ new Map()
|
|
2499
2500
|
});
|
|
2500
2501
|
}
|
|
2501
|
-
var
|
|
2502
|
+
var ni = (e) => e == null || typeof e == "object" && !!e[Symbol.iterator]().next().done, ri = class extends Jr {
|
|
2502
2503
|
constructor(e, t) {
|
|
2503
2504
|
super(e), Object.defineProperty(this, "schema", {
|
|
2504
2505
|
value: t,
|
|
@@ -2512,11 +2513,11 @@ var ti = (e) => e == null || typeof e == "object" && !!e[Symbol.iterator]().next
|
|
|
2512
2513
|
return e && (t.schema = e), t.items = t.items.map((t) => L(t) || P(t) ? t.clone(e) : t), this.range && (t.range = this.range.slice()), t;
|
|
2513
2514
|
}
|
|
2514
2515
|
addIn(e, t) {
|
|
2515
|
-
if (
|
|
2516
|
+
if (ni(e)) this.add(t);
|
|
2516
2517
|
else {
|
|
2517
2518
|
let [n, ...r] = e, i = this.get(n, !0);
|
|
2518
2519
|
if (I(i)) i.addIn(r, t);
|
|
2519
|
-
else if (i === void 0 && this.schema) this.set(n,
|
|
2520
|
+
else if (i === void 0 && this.schema) this.set(n, ti(this.schema, r, t));
|
|
2520
2521
|
else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);
|
|
2521
2522
|
}
|
|
2522
2523
|
}
|
|
@@ -2550,16 +2551,16 @@ var ti = (e) => e == null || typeof e == "object" && !!e[Symbol.iterator]().next
|
|
|
2550
2551
|
else {
|
|
2551
2552
|
let e = this.get(n, !0);
|
|
2552
2553
|
if (I(e)) e.setIn(r, t);
|
|
2553
|
-
else if (e === void 0 && this.schema) this.set(n,
|
|
2554
|
+
else if (e === void 0 && this.schema) this.set(n, ti(this.schema, r, t));
|
|
2554
2555
|
else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);
|
|
2555
2556
|
}
|
|
2556
2557
|
}
|
|
2557
|
-
},
|
|
2558
|
+
}, ii = (e) => e.replace(/^(?!$)(?: $)?/gm, "#");
|
|
2558
2559
|
function W(e, t) {
|
|
2559
2560
|
return /^\n+$/.test(e) ? e.substring(1) : t ? e.replace(/^(?! *$)/gm, t) : e;
|
|
2560
2561
|
}
|
|
2561
|
-
var G = (e, t, n) => e.endsWith("\n") ? W(n, t) : n.includes("\n") ? "\n" + W(n, t) : (e.endsWith(" ") ? "" : " ") + n,
|
|
2562
|
-
function
|
|
2562
|
+
var G = (e, t, n) => e.endsWith("\n") ? W(n, t) : n.includes("\n") ? "\n" + W(n, t) : (e.endsWith(" ") ? "" : " ") + n, ai = "flow", oi = "block", si = "quoted";
|
|
2563
|
+
function ci(e, t, n = "flow", { indentAtStart: r, lineWidth: i = 80, minContentWidth: a = 20, onFold: o, onOverflow: s } = {}) {
|
|
2563
2564
|
if (!i || i < 0) return e;
|
|
2564
2565
|
i < a && (a = 0);
|
|
2565
2566
|
let c = Math.max(1 + a, 1 + i - t.length);
|
|
@@ -2567,7 +2568,7 @@ function si(e, t, n = "flow", { indentAtStart: r, lineWidth: i = 80, minContentW
|
|
|
2567
2568
|
let l = [], u = {}, d = i - t.length;
|
|
2568
2569
|
typeof r == "number" && (r > i - Math.max(2, a) ? l.push(0) : d = i - r);
|
|
2569
2570
|
let f, p, m = !1, h = -1, g = -1, _ = -1;
|
|
2570
|
-
n === "block" && (h =
|
|
2571
|
+
n === "block" && (h = li(e, h, t.length), h !== -1 && (d = h + c));
|
|
2571
2572
|
for (let r; r = e[h += 1];) {
|
|
2572
2573
|
if (n === "quoted" && r === "\\") {
|
|
2573
2574
|
switch (g = h, e[h + 1]) {
|
|
@@ -2584,7 +2585,7 @@ function si(e, t, n = "flow", { indentAtStart: r, lineWidth: i = 80, minContentW
|
|
|
2584
2585
|
}
|
|
2585
2586
|
_ = h;
|
|
2586
2587
|
}
|
|
2587
|
-
if (r === "\n") n === "block" && (h =
|
|
2588
|
+
if (r === "\n") n === "block" && (h = li(e, h, t.length)), d = h + t.length + c, f = void 0;
|
|
2588
2589
|
else {
|
|
2589
2590
|
if (r === " " && p && p !== " " && p !== "\n" && p !== " ") {
|
|
2590
2591
|
let t = e[h + 1];
|
|
@@ -2611,7 +2612,7 @@ function si(e, t, n = "flow", { indentAtStart: r, lineWidth: i = 80, minContentW
|
|
|
2611
2612
|
}
|
|
2612
2613
|
return v;
|
|
2613
2614
|
}
|
|
2614
|
-
function
|
|
2615
|
+
function li(e, t, n) {
|
|
2615
2616
|
let r = t, i = t + 1, a = e[i];
|
|
2616
2617
|
for (; a === " " || a === " ";) if (t < i + n) a = e[++t];
|
|
2617
2618
|
else {
|
|
@@ -2623,12 +2624,12 @@ function ci(e, t, n) {
|
|
|
2623
2624
|
return r;
|
|
2624
2625
|
}
|
|
2625
2626
|
// node_modules/yaml/browser/dist/stringify/stringifyString.js
|
|
2626
|
-
var
|
|
2627
|
+
var ui = (e, t) => ({
|
|
2627
2628
|
indentAtStart: t ? e.indent.length : e.indentAtStart,
|
|
2628
2629
|
lineWidth: e.options.lineWidth,
|
|
2629
2630
|
minContentWidth: e.options.minContentWidth
|
|
2630
|
-
}),
|
|
2631
|
-
function
|
|
2631
|
+
}), di = (e) => /^(%|---|\.\.\.)/m.test(e);
|
|
2632
|
+
function fi(e, t, n) {
|
|
2632
2633
|
if (!t || t < 0) return !1;
|
|
2633
2634
|
let r = t - n, i = e.length;
|
|
2634
2635
|
if (i <= r) return !1;
|
|
@@ -2638,10 +2639,10 @@ function di(e, t, n) {
|
|
|
2638
2639
|
}
|
|
2639
2640
|
return !0;
|
|
2640
2641
|
}
|
|
2641
|
-
function
|
|
2642
|
+
function pi(e, t) {
|
|
2642
2643
|
let n = JSON.stringify(e);
|
|
2643
2644
|
if (t.options.doubleQuotedAsJSON) return n;
|
|
2644
|
-
let { implicitKey: r } = t, i = t.options.doubleQuotedMinMultiLineLength, a = t.indent || (
|
|
2645
|
+
let { implicitKey: r } = t, i = t.options.doubleQuotedMinMultiLineLength, a = t.indent || (di(e) ? " " : ""), o = "", s = 0;
|
|
2645
2646
|
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]) {
|
|
2646
2647
|
case "u":
|
|
2647
2648
|
{
|
|
@@ -2686,32 +2687,32 @@ function fi(e, t) {
|
|
|
2686
2687
|
break;
|
|
2687
2688
|
default: e += 1;
|
|
2688
2689
|
}
|
|
2689
|
-
return o = s ? o + n.slice(s) : n, r ? o :
|
|
2690
|
-
}
|
|
2691
|
-
function pi(e, t) {
|
|
2692
|
-
if (t.options.singleQuote === !1 || t.implicitKey && e.includes("\n") || /[ \t]\n|\n[ \t]/.test(e)) return fi(e, t);
|
|
2693
|
-
let n = t.indent || (ui(e) ? " " : ""), r = "'" + e.replace(/'/g, "''").replace(/\n+/g, `$&\n${n}`) + "'";
|
|
2694
|
-
return t.implicitKey ? r : si(r, n, ii, li(t, !1));
|
|
2690
|
+
return o = s ? o + n.slice(s) : n, r ? o : ci(o, a, si, ui(t, !1));
|
|
2695
2691
|
}
|
|
2696
2692
|
function mi(e, t) {
|
|
2693
|
+
if (t.options.singleQuote === !1 || t.implicitKey && e.includes("\n") || /[ \t]\n|\n[ \t]/.test(e)) return pi(e, t);
|
|
2694
|
+
let n = t.indent || (di(e) ? " " : ""), r = "'" + e.replace(/'/g, "''").replace(/\n+/g, `$&\n${n}`) + "'";
|
|
2695
|
+
return t.implicitKey ? r : ci(r, n, ai, ui(t, !1));
|
|
2696
|
+
}
|
|
2697
|
+
function hi(e, t) {
|
|
2697
2698
|
let { singleQuote: n } = t.options, r;
|
|
2698
|
-
if (n === !1) r =
|
|
2699
|
+
if (n === !1) r = pi;
|
|
2699
2700
|
else {
|
|
2700
2701
|
let t = e.includes("\""), i = e.includes("'");
|
|
2701
|
-
r = t && !i ?
|
|
2702
|
+
r = t && !i ? mi : i && !t ? pi : n ? mi : pi;
|
|
2702
2703
|
}
|
|
2703
2704
|
return r(e, t);
|
|
2704
2705
|
}
|
|
2705
|
-
var
|
|
2706
|
+
var gi;
|
|
2706
2707
|
try {
|
|
2707
|
-
|
|
2708
|
+
gi = RegExp("(^|(?<!\n))\n+(?!\n|$)", "g");
|
|
2708
2709
|
} catch (e) {
|
|
2709
|
-
|
|
2710
|
+
gi = /\n+(?!\n|$)/g;
|
|
2710
2711
|
}
|
|
2711
|
-
function
|
|
2712
|
+
function _i({ comment: e, type: t, value: n }, r, i, a) {
|
|
2712
2713
|
let { blockQuote: o, commentString: s, lineWidth: c } = r.options;
|
|
2713
|
-
if (!o || /\n[\t ]+$/.test(n)) return
|
|
2714
|
-
let l = r.indent || (r.forceBlockIndent ||
|
|
2714
|
+
if (!o || /\n[\t ]+$/.test(n)) return hi(n, r);
|
|
2715
|
+
let l = r.indent || (r.forceBlockIndent || di(n) ? " " : ""), u = o === "literal" ? !0 : o === "folded" || t === U.BLOCK_FOLDED ? !1 : t === U.BLOCK_LITERAL || !fi(n, c, l.length);
|
|
2715
2716
|
if (!n) return u ? "|\n" : ">\n";
|
|
2716
2717
|
let d, f;
|
|
2717
2718
|
for (f = n.length; f > 0; --f) {
|
|
@@ -2719,7 +2720,7 @@ function gi({ comment: e, type: t, value: n }, r, i, a) {
|
|
|
2719
2720
|
if (e !== "\n" && e !== " " && e !== " ") break;
|
|
2720
2721
|
}
|
|
2721
2722
|
let p = n.substring(f), m = p.indexOf("\n");
|
|
2722
|
-
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 = p.replace(
|
|
2723
|
+
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 = p.replace(gi, `$&${l}`));
|
|
2723
2724
|
let h = !1, g, _ = -1;
|
|
2724
2725
|
for (g = 0; g < n.length; ++g) {
|
|
2725
2726
|
let e = n[g];
|
|
@@ -2731,23 +2732,23 @@ function gi({ comment: e, type: t, value: n }, r, i, a) {
|
|
|
2731
2732
|
v && (n = n.substring(v.length), v = v.replace(/\n+/g, `$&${l}`));
|
|
2732
2733
|
let y = (h ? l ? "2" : "1" : "") + d;
|
|
2733
2734
|
if (e && (y += " " + s(e.replace(/ ?[\r\n]+/g, " ")), i && i()), !u) {
|
|
2734
|
-
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 =
|
|
2735
|
+
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 = ui(r, !0);
|
|
2735
2736
|
o !== "folded" && t !== U.BLOCK_FOLDED && (a.onOverflow = () => {
|
|
2736
2737
|
i = !0;
|
|
2737
2738
|
});
|
|
2738
|
-
let s =
|
|
2739
|
+
let s = ci(`${v}${e}${p}`, l, oi, a);
|
|
2739
2740
|
if (!i) return `>${y}\n${l}${s}`;
|
|
2740
2741
|
}
|
|
2741
2742
|
return n = n.replace(/\n+/g, `$&${l}`), `|${y}\n${l}${v}${n}${p}`;
|
|
2742
2743
|
}
|
|
2743
|
-
function
|
|
2744
|
+
function vi(e, t, n, r) {
|
|
2744
2745
|
let { type: i, value: a } = e, { actualString: o, implicitKey: s, indent: c, indentStep: l, inFlow: u } = t;
|
|
2745
|
-
if (s && a.includes("\n") || u && /[[\]{},]/.test(a)) return
|
|
2746
|
-
if (/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a)) return s || u || !a.includes("\n") ?
|
|
2747
|
-
if (!s && !u && i !== U.PLAIN && a.includes("\n")) return
|
|
2748
|
-
if (
|
|
2749
|
-
if (c === "") return t.forceBlockIndent = !0,
|
|
2750
|
-
if (s && c === l) return
|
|
2746
|
+
if (s && a.includes("\n") || u && /[[\]{},]/.test(a)) return hi(a, t);
|
|
2747
|
+
if (/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a)) return s || u || !a.includes("\n") ? hi(a, t) : _i(e, t, n, r);
|
|
2748
|
+
if (!s && !u && i !== U.PLAIN && a.includes("\n")) return _i(e, t, n, r);
|
|
2749
|
+
if (di(a)) {
|
|
2750
|
+
if (c === "") return t.forceBlockIndent = !0, _i(e, t, n, r);
|
|
2751
|
+
if (s && c === l) return hi(a, t);
|
|
2751
2752
|
}
|
|
2752
2753
|
let d = a.replace(/\n+/g, `$&\n${c}`);
|
|
2753
2754
|
if (o) {
|
|
@@ -2755,20 +2756,20 @@ function _i(e, t, n, r) {
|
|
|
2755
2756
|
var t;
|
|
2756
2757
|
return e.default && e.tag !== "tag:yaml.org,2002:str" && ((t = e.test) == null ? void 0 : t.test(d));
|
|
2757
2758
|
}, { compat: n, tags: r } = t.doc.schema;
|
|
2758
|
-
if (r.some(e) || n != null && n.some(e)) return
|
|
2759
|
+
if (r.some(e) || n != null && n.some(e)) return hi(a, t);
|
|
2759
2760
|
}
|
|
2760
|
-
return s ? d :
|
|
2761
|
+
return s ? d : ci(d, c, ai, ui(t, !1));
|
|
2761
2762
|
}
|
|
2762
|
-
function
|
|
2763
|
+
function yi(e, t, n, r) {
|
|
2763
2764
|
let { implicitKey: i, inFlow: a } = t, o = typeof e.value == "string" ? e : Object.assign({}, e, { value: String(e.value) }), { type: s } = e;
|
|
2764
2765
|
s !== U.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value) && (s = U.QUOTE_DOUBLE);
|
|
2765
2766
|
let c = (e) => {
|
|
2766
2767
|
switch (e) {
|
|
2767
2768
|
case U.BLOCK_FOLDED:
|
|
2768
|
-
case U.BLOCK_LITERAL: return i || a ?
|
|
2769
|
-
case U.QUOTE_DOUBLE: return
|
|
2770
|
-
case U.QUOTE_SINGLE: return
|
|
2771
|
-
case U.PLAIN: return
|
|
2769
|
+
case U.BLOCK_LITERAL: return i || a ? hi(o.value, t) : _i(o, t, n, r);
|
|
2770
|
+
case U.QUOTE_DOUBLE: return pi(o.value, t);
|
|
2771
|
+
case U.QUOTE_SINGLE: return mi(o.value, t);
|
|
2772
|
+
case U.PLAIN: return vi(o, t, n, r);
|
|
2772
2773
|
default: return null;
|
|
2773
2774
|
}
|
|
2774
2775
|
}, l = c(s);
|
|
@@ -2779,10 +2780,10 @@ function vi(e, t, n, r) {
|
|
|
2779
2780
|
return l;
|
|
2780
2781
|
}
|
|
2781
2782
|
// node_modules/yaml/browser/dist/stringify/stringify.js
|
|
2782
|
-
function
|
|
2783
|
+
function bi(e, t) {
|
|
2783
2784
|
let n = Object.assign({
|
|
2784
2785
|
blockQuote: !0,
|
|
2785
|
-
commentString:
|
|
2786
|
+
commentString: ii,
|
|
2786
2787
|
defaultKeyType: null,
|
|
2787
2788
|
defaultStringType: "PLAIN",
|
|
2788
2789
|
directives: null,
|
|
@@ -2819,7 +2820,7 @@ function yi(e, t) {
|
|
|
2819
2820
|
options: n
|
|
2820
2821
|
};
|
|
2821
2822
|
}
|
|
2822
|
-
function
|
|
2823
|
+
function xi(e, t) {
|
|
2823
2824
|
if (t.tag) {
|
|
2824
2825
|
var n;
|
|
2825
2826
|
let r = e.filter((e) => e.tag === t.tag);
|
|
@@ -2846,32 +2847,32 @@ function bi(e, t) {
|
|
|
2846
2847
|
}
|
|
2847
2848
|
return r;
|
|
2848
2849
|
}
|
|
2849
|
-
function
|
|
2850
|
+
function Si(e, t, { anchors: n, doc: r }) {
|
|
2850
2851
|
var i;
|
|
2851
2852
|
if (!r.directives) return "";
|
|
2852
2853
|
let a = [], o = (F(e) || I(e)) && e.anchor;
|
|
2853
|
-
o &&
|
|
2854
|
+
o && Wr(o) && (n.add(o), a.push(`&${o}`));
|
|
2854
2855
|
let s = (i = e.tag) == null ? t.default ? null : t.tag : i;
|
|
2855
2856
|
return s && a.push(r.directives.tagString(s)), a.join(" ");
|
|
2856
2857
|
}
|
|
2857
|
-
function
|
|
2858
|
+
function Ci(e, t, n, r) {
|
|
2858
2859
|
var i;
|
|
2859
2860
|
if (P(e)) return e.toString(t, n, r);
|
|
2860
|
-
if (
|
|
2861
|
+
if (jr(e)) {
|
|
2861
2862
|
var a;
|
|
2862
2863
|
if (t.doc.directives) return e.toString(t);
|
|
2863
2864
|
if ((a = t.resolvedAliases) != null && a.has(e)) throw TypeError("Cannot stringify circular structure without alias nodes");
|
|
2864
2865
|
t.resolvedAliases ? t.resolvedAliases.add(e) : t.resolvedAliases = /* @__PURE__ */ new Set([e]), e = e.resolve(t.doc);
|
|
2865
2866
|
}
|
|
2866
2867
|
let o, s = L(e) ? e : t.doc.createNode(e, { onTagObj: (e) => o = e });
|
|
2867
|
-
o != null || (o =
|
|
2868
|
-
let c =
|
|
2868
|
+
o != null || (o = xi(t.doc.schema.tags, s));
|
|
2869
|
+
let c = Si(s, o, t);
|
|
2869
2870
|
c.length > 0 && (t.indentAtStart = ((i = t.indentAtStart) == null ? 0 : i) + c.length + 1);
|
|
2870
|
-
let l = typeof o.stringify == "function" ? o.stringify(s, t, n, r) : F(s) ?
|
|
2871
|
+
let l = typeof o.stringify == "function" ? o.stringify(s, t, n, r) : F(s) ? yi(s, t, n, r) : s.toString(t, n, r);
|
|
2871
2872
|
return c ? F(s) || l[0] === "{" || l[0] === "[" ? `${c} ${l}` : `${c}\n${t.indent}${l}` : l;
|
|
2872
2873
|
}
|
|
2873
2874
|
// node_modules/yaml/browser/dist/stringify/stringifyPair.js
|
|
2874
|
-
function
|
|
2875
|
+
function wi({ key: e, value: t }, n, r, i) {
|
|
2875
2876
|
let { allNullValues: a, doc: o, indent: s, indentStep: c, options: { commentString: l, indentSeq: u, simpleKeys: d } } = n, f = L(e) && e.comment || null;
|
|
2876
2877
|
if (d) {
|
|
2877
2878
|
if (f) throw Error("With simple keys, key nodes cannot have comments");
|
|
@@ -2883,7 +2884,7 @@ function Ci({ key: e, value: t }, n, r, i) {
|
|
|
2883
2884
|
implicitKey: !p && (d || !a),
|
|
2884
2885
|
indent: s + c
|
|
2885
2886
|
});
|
|
2886
|
-
let m = !1, h = !1, g =
|
|
2887
|
+
let m = !1, h = !1, g = Ci(e, n, () => m = !0, () => h = !0);
|
|
2887
2888
|
if (!p && !n.inFlow && g.length > 1024) {
|
|
2888
2889
|
if (d) throw Error("With simple keys, single line scalar must not span more than 1024 characters");
|
|
2889
2890
|
p = !0;
|
|
@@ -2893,8 +2894,8 @@ function Ci({ key: e, value: t }, n, r, i) {
|
|
|
2893
2894
|
} else if (a && !d || t == null && p) return g = `? ${g}`, f && !m ? g += G(g, n.indent, l(f)) : h && i && i(), g;
|
|
2894
2895
|
m && (f = null), p ? (f && (g += G(g, n.indent, l(f))), g = `? ${g}\n${s}:`) : (g = `${g}:`, f && (g += G(g, n.indent, l(f))));
|
|
2895
2896
|
let _, v, y;
|
|
2896
|
-
L(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 && F(t) && (n.indentAtStart = g.length + 1), h = !1, !u && c.length >= 2 && !n.inFlow && !p &&
|
|
2897
|
-
let b = !1, x =
|
|
2897
|
+
L(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 && F(t) && (n.indentAtStart = g.length + 1), h = !1, !u && c.length >= 2 && !n.inFlow && !p && Pr(t) && !t.flow && !t.tag && !t.anchor && (n.indent = n.indent.substring(2));
|
|
2898
|
+
let b = !1, x = Ci(t, n, () => b = !0, () => h = !0), S = " ";
|
|
2898
2899
|
if (f || _ || v) {
|
|
2899
2900
|
if (S = _ ? "\n" : "", v) {
|
|
2900
2901
|
let e = l(v);
|
|
@@ -2916,27 +2917,27 @@ function Ci({ key: e, value: t }, n, r, i) {
|
|
|
2916
2917
|
return g += S + x, n.inFlow ? b && r && r() : y && !b ? g += G(g, n.indent, l(y)) : h && i && i(), g;
|
|
2917
2918
|
}
|
|
2918
2919
|
// node_modules/yaml/browser/dist/log.js
|
|
2919
|
-
function
|
|
2920
|
+
function Ti(e, t) {
|
|
2920
2921
|
(e === "debug" || e === "warn") && console.warn(t);
|
|
2921
2922
|
}
|
|
2922
2923
|
// node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js
|
|
2923
|
-
var
|
|
2924
|
-
identify: (e) => e ===
|
|
2924
|
+
var Ei = "<<", K = {
|
|
2925
|
+
identify: (e) => e === Ei || typeof e == "symbol" && e.description === Ei,
|
|
2925
2926
|
default: "key",
|
|
2926
2927
|
tag: "tag:yaml.org,2002:merge",
|
|
2927
2928
|
test: /^<<$/,
|
|
2928
|
-
resolve: () => Object.assign(new U(Symbol(
|
|
2929
|
-
stringify: () =>
|
|
2930
|
-
},
|
|
2931
|
-
function Di(e, t, n) {
|
|
2932
|
-
let r = ki(e, n);
|
|
2933
|
-
if (Nr(r)) for (let n of r.items) Oi(e, t, n);
|
|
2934
|
-
else if (Array.isArray(r)) for (let n of r) Oi(e, t, n);
|
|
2935
|
-
else Oi(e, t, r);
|
|
2936
|
-
}
|
|
2929
|
+
resolve: () => Object.assign(new U(Symbol(Ei)), { addToJSMap: Oi }),
|
|
2930
|
+
stringify: () => Ei
|
|
2931
|
+
}, Di = (e, t) => (K.identify(t) || F(t) && (!t.type || t.type === U.PLAIN) && K.identify(t.value)) && (e == null ? void 0 : e.doc.schema.tags.some((e) => e.tag === K.tag && e.default));
|
|
2937
2932
|
function Oi(e, t, n) {
|
|
2938
|
-
let r =
|
|
2939
|
-
if (
|
|
2933
|
+
let r = Ai(e, n);
|
|
2934
|
+
if (Pr(r)) for (let n of r.items) ki(e, t, n);
|
|
2935
|
+
else if (Array.isArray(r)) for (let n of r) ki(e, t, n);
|
|
2936
|
+
else ki(e, t, r);
|
|
2937
|
+
}
|
|
2938
|
+
function ki(e, t, n) {
|
|
2939
|
+
let r = Ai(e, n);
|
|
2940
|
+
if (!Nr(r)) throw Error("Merge sources must be maps or map aliases");
|
|
2940
2941
|
let i = r.toJSON(null, e, Map);
|
|
2941
2942
|
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, {
|
|
2942
2943
|
value: n,
|
|
@@ -2946,19 +2947,19 @@ function Oi(e, t, n) {
|
|
|
2946
2947
|
});
|
|
2947
2948
|
return t;
|
|
2948
2949
|
}
|
|
2949
|
-
function
|
|
2950
|
-
return e &&
|
|
2950
|
+
function Ai(e, t) {
|
|
2951
|
+
return e && jr(t) ? t.resolve(e.doc, e) : t;
|
|
2951
2952
|
}
|
|
2952
2953
|
// node_modules/yaml/browser/dist/nodes/addPairToJSMap.js
|
|
2953
|
-
function
|
|
2954
|
+
function ji(e, t, { key: n, value: r }) {
|
|
2954
2955
|
if (L(n) && n.addToJSMap) n.addToJSMap(e, t, r);
|
|
2955
|
-
else if (
|
|
2956
|
+
else if (Di(e, n)) Oi(e, t, r);
|
|
2956
2957
|
else {
|
|
2957
2958
|
let i = H(n, "", e);
|
|
2958
2959
|
if (t instanceof Map) t.set(i, H(r, i, e));
|
|
2959
2960
|
else if (t instanceof Set) t.add(i);
|
|
2960
2961
|
else {
|
|
2961
|
-
let a =
|
|
2962
|
+
let a = Mi(n, i, e), o = H(r, a, e);
|
|
2962
2963
|
a in t ? Object.defineProperty(t, a, {
|
|
2963
2964
|
value: o,
|
|
2964
2965
|
writable: !0,
|
|
@@ -2969,61 +2970,61 @@ function Ai(e, t, { key: n, value: r }) {
|
|
|
2969
2970
|
}
|
|
2970
2971
|
return t;
|
|
2971
2972
|
}
|
|
2972
|
-
function
|
|
2973
|
+
function Mi(e, t, n) {
|
|
2973
2974
|
if (t === null) return "";
|
|
2974
2975
|
if (typeof t != "object") return String(t);
|
|
2975
2976
|
if (L(e) && n != null && n.doc) {
|
|
2976
|
-
let t =
|
|
2977
|
+
let t = bi(n.doc, {});
|
|
2977
2978
|
t.anchors = /* @__PURE__ */ new Set();
|
|
2978
2979
|
for (let e of n.anchors.keys()) t.anchors.add(e.anchor);
|
|
2979
2980
|
t.inFlow = !0, t.inStringifyKey = !0;
|
|
2980
2981
|
let r = e.toString(t);
|
|
2981
2982
|
if (!n.mapKeyWarned) {
|
|
2982
2983
|
let e = JSON.stringify(r);
|
|
2983
|
-
e.length > 40 && (e = e.substring(0, 36) + "...\""),
|
|
2984
|
+
e.length > 40 && (e = e.substring(0, 36) + "...\""), Ti(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;
|
|
2984
2985
|
}
|
|
2985
2986
|
return r;
|
|
2986
2987
|
}
|
|
2987
2988
|
return JSON.stringify(t);
|
|
2988
2989
|
}
|
|
2989
2990
|
// node_modules/yaml/browser/dist/nodes/Pair.js
|
|
2990
|
-
function
|
|
2991
|
-
return new q(
|
|
2991
|
+
function Ni(e, t, n) {
|
|
2992
|
+
return new q(ei(e, void 0, n), ei(t, void 0, n));
|
|
2992
2993
|
}
|
|
2993
2994
|
var q = class e {
|
|
2994
2995
|
constructor(e, t = null) {
|
|
2995
|
-
Object.defineProperty(this, N, { value:
|
|
2996
|
+
Object.defineProperty(this, N, { value: kr }), this.key = e, this.value = t;
|
|
2996
2997
|
}
|
|
2997
2998
|
clone(t) {
|
|
2998
2999
|
let { key: n, value: r } = this;
|
|
2999
3000
|
return L(n) && (n = n.clone(t)), L(r) && (r = r.clone(t)), new e(n, r);
|
|
3000
3001
|
}
|
|
3001
3002
|
toJSON(e, t) {
|
|
3002
|
-
return
|
|
3003
|
+
return ji(t, t != null && t.mapAsMap ? /* @__PURE__ */ new Map() : {}, this);
|
|
3003
3004
|
}
|
|
3004
3005
|
toString(e, t, n) {
|
|
3005
|
-
return e != null && e.doc ?
|
|
3006
|
+
return e != null && e.doc ? wi(this, e, t, n) : JSON.stringify(this);
|
|
3006
3007
|
}
|
|
3007
3008
|
};
|
|
3008
3009
|
// node_modules/yaml/browser/dist/stringify/stringifyCollection.js
|
|
3009
|
-
function
|
|
3010
|
+
function Pi(e, t, n) {
|
|
3010
3011
|
var r;
|
|
3011
|
-
return (((r = t.inFlow) == null ? e.flow : r) ?
|
|
3012
|
+
return (((r = t.inFlow) == null ? e.flow : r) ? Ii : Fi)(e, t, n);
|
|
3012
3013
|
}
|
|
3013
|
-
function
|
|
3014
|
+
function Fi({ comment: e, items: t }, n, { blockItemPrefix: r, flowChars: i, itemIndent: a, onChompKeep: o, onComment: s }) {
|
|
3014
3015
|
let { indent: c, options: { commentString: l } } = n, u = Object.assign({}, n, {
|
|
3015
3016
|
indent: a,
|
|
3016
3017
|
type: null
|
|
3017
3018
|
}), d = !1, f = [];
|
|
3018
3019
|
for (let e = 0; e < t.length; ++e) {
|
|
3019
3020
|
let i = t[e], o = null;
|
|
3020
|
-
if (L(i)) !d && i.spaceBefore && f.push(""),
|
|
3021
|
+
if (L(i)) !d && i.spaceBefore && f.push(""), Li(n, f, i.commentBefore, d), i.comment && (o = i.comment);
|
|
3021
3022
|
else if (P(i)) {
|
|
3022
3023
|
let e = L(i.key) ? i.key : null;
|
|
3023
|
-
e && (!d && e.spaceBefore && f.push(""),
|
|
3024
|
+
e && (!d && e.spaceBefore && f.push(""), Li(n, f, e.commentBefore, d));
|
|
3024
3025
|
}
|
|
3025
3026
|
d = !1;
|
|
3026
|
-
let s =
|
|
3027
|
+
let s = Ci(i, u, () => o = null, () => d = !0);
|
|
3027
3028
|
o && (s += G(s, a, l(o))), d && o && (d = !1), f.push(r + s);
|
|
3028
3029
|
}
|
|
3029
3030
|
let p;
|
|
@@ -3037,7 +3038,7 @@ function Pi({ comment: e, items: t }, n, { blockItemPrefix: r, flowChars: i, ite
|
|
|
3037
3038
|
}
|
|
3038
3039
|
return e ? (p += "\n" + W(l(e), c), s && s()) : d && o && o(), p;
|
|
3039
3040
|
}
|
|
3040
|
-
function
|
|
3041
|
+
function Ii({ items: e }, t, { flowChars: n, itemIndent: r }) {
|
|
3041
3042
|
let { indent: i, indentStep: a, flowCollectionPadding: o, options: { commentString: s } } = t;
|
|
3042
3043
|
r += a;
|
|
3043
3044
|
let c = Object.assign({}, t, {
|
|
@@ -3047,15 +3048,15 @@ function Fi({ items: e }, t, { flowChars: n, itemIndent: r }) {
|
|
|
3047
3048
|
}), l = !1, u = 0, d = [];
|
|
3048
3049
|
for (let n = 0; n < e.length; ++n) {
|
|
3049
3050
|
let i = e[n], a = null;
|
|
3050
|
-
if (L(i)) i.spaceBefore && d.push(""),
|
|
3051
|
+
if (L(i)) i.spaceBefore && d.push(""), Li(t, d, i.commentBefore, !1), i.comment && (a = i.comment);
|
|
3051
3052
|
else if (P(i)) {
|
|
3052
3053
|
let e = L(i.key) ? i.key : null;
|
|
3053
|
-
e && (e.spaceBefore && d.push(""),
|
|
3054
|
+
e && (e.spaceBefore && d.push(""), Li(t, d, e.commentBefore, !1), e.comment && (l = !0));
|
|
3054
3055
|
let n = L(i.value) ? i.value : null;
|
|
3055
3056
|
n ? (n.comment && (a = n.comment), n.commentBefore && (l = !0)) : i.value == null && e != null && e.comment && (a = e.comment);
|
|
3056
3057
|
}
|
|
3057
3058
|
a && (l = !0);
|
|
3058
|
-
let o =
|
|
3059
|
+
let o = Ci(i, c, () => a = null);
|
|
3059
3060
|
l || (l = d.length > u || o.includes("\n")), n < e.length - 1 ? o += "," : t.options.trailingComma && (t.options.lineWidth > 0 && (l || (l = d.reduce((e, t) => e + t.length + 2, 2) + (o.length + 2) > t.options.lineWidth)), l && (o += ",")), a && (o += G(o, r, s(a))), d.push(o), u = d.length;
|
|
3060
3061
|
}
|
|
3061
3062
|
let { start: f, end: p } = n;
|
|
@@ -3071,7 +3072,7 @@ function Fi({ items: e }, t, { flowChars: n, itemIndent: r }) {
|
|
|
3071
3072
|
}
|
|
3072
3073
|
return `${f}${o}${d.join(" ")}${o}${p}`;
|
|
3073
3074
|
}
|
|
3074
|
-
function
|
|
3075
|
+
function Li({ indent: e, options: { commentString: t } }, n, r, i) {
|
|
3075
3076
|
if (r && i && (r = r.replace(/^\n+/, "")), r) {
|
|
3076
3077
|
let i = W(t(r), e);
|
|
3077
3078
|
n.push(i.trimStart());
|
|
@@ -3082,7 +3083,7 @@ function J(e, t) {
|
|
|
3082
3083
|
let n = F(t) ? t.value : t;
|
|
3083
3084
|
for (let r of e) if (P(r) && (r.key === t || r.key === n || F(r.key) && r.key.value === n)) return r;
|
|
3084
3085
|
}
|
|
3085
|
-
var Y = class extends
|
|
3086
|
+
var Y = class extends ri {
|
|
3086
3087
|
static get tagName() {
|
|
3087
3088
|
return "tag:yaml.org,2002:map";
|
|
3088
3089
|
}
|
|
@@ -3093,7 +3094,7 @@ var Y = class extends ni {
|
|
|
3093
3094
|
let { keepUndefined: r, replacer: i } = n, a = new this(e), o = (e, o) => {
|
|
3094
3095
|
if (typeof i == "function") o = i.call(t, e, o);
|
|
3095
3096
|
else if (Array.isArray(i) && !i.includes(e)) return;
|
|
3096
|
-
(o !== void 0 || r) && a.items.push(
|
|
3097
|
+
(o !== void 0 || r) && a.items.push(Ni(e, o, n));
|
|
3097
3098
|
};
|
|
3098
3099
|
if (t instanceof Map) for (let [e, n] of t) o(e, n);
|
|
3099
3100
|
else if (t && typeof t == "object") for (let e of Object.keys(t)) o(e, t[e]);
|
|
@@ -3106,7 +3107,7 @@ var Y = class extends ni {
|
|
|
3106
3107
|
let i = J(this.items, r.key), a = (n = this.schema) == null ? void 0 : n.sortMapEntries;
|
|
3107
3108
|
if (i) {
|
|
3108
3109
|
if (!t) throw Error(`Key ${r.key} already set`);
|
|
3109
|
-
F(i.value) &&
|
|
3110
|
+
F(i.value) && Zr(r.value) ? i.value.value = r.value : i.value = r.value;
|
|
3110
3111
|
} else if (a) {
|
|
3111
3112
|
let e = this.items.findIndex((e) => a(r, e) < 0);
|
|
3112
3113
|
e === -1 ? this.items.push(r) : this.items.splice(e, 0, r);
|
|
@@ -3130,13 +3131,13 @@ var Y = class extends ni {
|
|
|
3130
3131
|
toJSON(e, t, n) {
|
|
3131
3132
|
let r = n ? new n() : t != null && t.mapAsMap ? /* @__PURE__ */ new Map() : {};
|
|
3132
3133
|
t != null && t.onCreate && t.onCreate(r);
|
|
3133
|
-
for (let e of this.items)
|
|
3134
|
+
for (let e of this.items) ji(t, r, e);
|
|
3134
3135
|
return r;
|
|
3135
3136
|
}
|
|
3136
3137
|
toString(e, t, n) {
|
|
3137
3138
|
if (!e) return JSON.stringify(this);
|
|
3138
3139
|
for (let e of this.items) if (!P(e)) throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);
|
|
3139
|
-
return !e.allNullValues && this.hasAllNullValues(!1) && (e = Object.assign({}, e, { allNullValues: !0 })),
|
|
3140
|
+
return !e.allNullValues && this.hasAllNullValues(!1) && (e = Object.assign({}, e, { allNullValues: !0 })), Pi(this, e, {
|
|
3140
3141
|
blockItemPrefix: "",
|
|
3141
3142
|
flowChars: {
|
|
3142
3143
|
start: "{",
|
|
@@ -3147,44 +3148,44 @@ var Y = class extends ni {
|
|
|
3147
3148
|
onComment: t
|
|
3148
3149
|
});
|
|
3149
3150
|
}
|
|
3150
|
-
},
|
|
3151
|
+
}, Ri = {
|
|
3151
3152
|
collection: "map",
|
|
3152
3153
|
default: !0,
|
|
3153
3154
|
nodeClass: Y,
|
|
3154
3155
|
tag: "tag:yaml.org,2002:map",
|
|
3155
3156
|
resolve(e, t) {
|
|
3156
|
-
return
|
|
3157
|
+
return Nr(e) || t("Expected a mapping for this tag"), e;
|
|
3157
3158
|
},
|
|
3158
3159
|
createNode: (e, t, n) => Y.from(e, t, n)
|
|
3159
|
-
}, X = class extends
|
|
3160
|
+
}, X = class extends ri {
|
|
3160
3161
|
static get tagName() {
|
|
3161
3162
|
return "tag:yaml.org,2002:seq";
|
|
3162
3163
|
}
|
|
3163
3164
|
constructor(e) {
|
|
3164
|
-
super(
|
|
3165
|
+
super(Ar, e), this.items = [];
|
|
3165
3166
|
}
|
|
3166
3167
|
add(e) {
|
|
3167
3168
|
this.items.push(e);
|
|
3168
3169
|
}
|
|
3169
3170
|
delete(e) {
|
|
3170
|
-
let t =
|
|
3171
|
+
let t = zi(e);
|
|
3171
3172
|
return typeof t == "number" && this.items.splice(t, 1).length > 0;
|
|
3172
3173
|
}
|
|
3173
3174
|
get(e, t) {
|
|
3174
|
-
let n =
|
|
3175
|
+
let n = zi(e);
|
|
3175
3176
|
if (typeof n != "number") return;
|
|
3176
3177
|
let r = this.items[n];
|
|
3177
3178
|
return !t && F(r) ? r.value : r;
|
|
3178
3179
|
}
|
|
3179
3180
|
has(e) {
|
|
3180
|
-
let t =
|
|
3181
|
+
let t = zi(e);
|
|
3181
3182
|
return typeof t == "number" && t < this.items.length;
|
|
3182
3183
|
}
|
|
3183
3184
|
set(e, t) {
|
|
3184
|
-
let n =
|
|
3185
|
+
let n = zi(e);
|
|
3185
3186
|
if (typeof n != "number") throw Error(`Expected a valid index, not ${e}.`);
|
|
3186
3187
|
let r = this.items[n];
|
|
3187
|
-
F(r) &&
|
|
3188
|
+
F(r) && Zr(t) ? r.value = t : this.items[n] = t;
|
|
3188
3189
|
}
|
|
3189
3190
|
toJSON(e, t) {
|
|
3190
3191
|
let n = [];
|
|
@@ -3194,7 +3195,7 @@ var Y = class extends ni {
|
|
|
3194
3195
|
return n;
|
|
3195
3196
|
}
|
|
3196
3197
|
toString(e, t, n) {
|
|
3197
|
-
return e ?
|
|
3198
|
+
return e ? Pi(this, e, {
|
|
3198
3199
|
blockItemPrefix: "- ",
|
|
3199
3200
|
flowChars: {
|
|
3200
3201
|
start: "[",
|
|
@@ -3214,50 +3215,50 @@ var Y = class extends ni {
|
|
|
3214
3215
|
let n = t instanceof Set ? a : String(e++);
|
|
3215
3216
|
a = r.call(t, n, a);
|
|
3216
3217
|
}
|
|
3217
|
-
i.items.push(
|
|
3218
|
+
i.items.push(ei(a, void 0, n));
|
|
3218
3219
|
}
|
|
3219
3220
|
}
|
|
3220
3221
|
return i;
|
|
3221
3222
|
}
|
|
3222
3223
|
};
|
|
3223
|
-
function
|
|
3224
|
+
function zi(e) {
|
|
3224
3225
|
let t = F(e) ? e.value : e;
|
|
3225
3226
|
return t && typeof t == "string" && (t = Number(t)), typeof t == "number" && Number.isInteger(t) && t >= 0 ? t : null;
|
|
3226
3227
|
}
|
|
3227
3228
|
// node_modules/yaml/browser/dist/schema/common/seq.js
|
|
3228
|
-
var
|
|
3229
|
+
var Bi = {
|
|
3229
3230
|
collection: "seq",
|
|
3230
3231
|
default: !0,
|
|
3231
3232
|
nodeClass: X,
|
|
3232
3233
|
tag: "tag:yaml.org,2002:seq",
|
|
3233
3234
|
resolve(e, t) {
|
|
3234
|
-
return
|
|
3235
|
+
return Pr(e) || t("Expected a sequence for this tag"), e;
|
|
3235
3236
|
},
|
|
3236
3237
|
createNode: (e, t, n) => X.from(e, t, n)
|
|
3237
|
-
},
|
|
3238
|
+
}, Vi = {
|
|
3238
3239
|
identify: (e) => typeof e == "string",
|
|
3239
3240
|
default: !0,
|
|
3240
3241
|
tag: "tag:yaml.org,2002:str",
|
|
3241
3242
|
resolve: (e) => e,
|
|
3242
3243
|
stringify(e, t, n, r) {
|
|
3243
|
-
return t = Object.assign({ actualString: !0 }, t),
|
|
3244
|
+
return t = Object.assign({ actualString: !0 }, t), yi(e, t, n, r);
|
|
3244
3245
|
}
|
|
3245
|
-
},
|
|
3246
|
+
}, Hi = {
|
|
3246
3247
|
identify: (e) => e == null,
|
|
3247
3248
|
createNode: () => new U(null),
|
|
3248
3249
|
default: !0,
|
|
3249
3250
|
tag: "tag:yaml.org,2002:null",
|
|
3250
3251
|
test: /^(?:~|[Nn]ull|NULL)?$/,
|
|
3251
3252
|
resolve: () => new U(null),
|
|
3252
|
-
stringify: ({ source: e }, t) => typeof e == "string" &&
|
|
3253
|
-
},
|
|
3253
|
+
stringify: ({ source: e }, t) => typeof e == "string" && Hi.test.test(e) ? e : t.options.nullStr
|
|
3254
|
+
}, Ui = {
|
|
3254
3255
|
identify: (e) => typeof e == "boolean",
|
|
3255
3256
|
default: !0,
|
|
3256
3257
|
tag: "tag:yaml.org,2002:bool",
|
|
3257
3258
|
test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,
|
|
3258
3259
|
resolve: (e) => new U(e[0] === "t" || e[0] === "T"),
|
|
3259
3260
|
stringify({ source: e, value: t }, n) {
|
|
3260
|
-
return e &&
|
|
3261
|
+
return e && Ui.test.test(e) && t === (e[0] === "t" || e[0] === "T") ? e : t ? n.options.trueStr : n.options.falseStr;
|
|
3261
3262
|
}
|
|
3262
3263
|
};
|
|
3263
3264
|
// node_modules/yaml/browser/dist/stringify/stringifyNumber.js
|
|
@@ -3275,14 +3276,14 @@ function Z({ format: e, minFractionDigits: t, tag: n, value: r }) {
|
|
|
3275
3276
|
return a;
|
|
3276
3277
|
}
|
|
3277
3278
|
// node_modules/yaml/browser/dist/schema/core/float.js
|
|
3278
|
-
var
|
|
3279
|
+
var Wi = {
|
|
3279
3280
|
identify: (e) => typeof e == "number",
|
|
3280
3281
|
default: !0,
|
|
3281
3282
|
tag: "tag:yaml.org,2002:float",
|
|
3282
3283
|
test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
|
|
3283
3284
|
resolve: (e) => e.slice(-3).toLowerCase() === "nan" ? NaN : e[0] === "-" ? -Infinity : Infinity,
|
|
3284
3285
|
stringify: Z
|
|
3285
|
-
},
|
|
3286
|
+
}, Gi = {
|
|
3286
3287
|
identify: (e) => typeof e == "number",
|
|
3287
3288
|
default: !0,
|
|
3288
3289
|
tag: "tag:yaml.org,2002:float",
|
|
@@ -3293,7 +3294,7 @@ var Ui = {
|
|
|
3293
3294
|
let t = Number(e.value);
|
|
3294
3295
|
return isFinite(t) ? t.toExponential() : Z(e);
|
|
3295
3296
|
}
|
|
3296
|
-
},
|
|
3297
|
+
}, Ki = {
|
|
3297
3298
|
identify: (e) => typeof e == "number",
|
|
3298
3299
|
default: !0,
|
|
3299
3300
|
tag: "tag:yaml.org,2002:float",
|
|
@@ -3303,58 +3304,58 @@ var Ui = {
|
|
|
3303
3304
|
return n !== -1 && e[e.length - 1] === "0" && (t.minFractionDigits = e.length - n - 1), t;
|
|
3304
3305
|
},
|
|
3305
3306
|
stringify: Z
|
|
3306
|
-
},
|
|
3307
|
-
function
|
|
3307
|
+
}, qi = (e) => typeof e == "bigint" || Number.isInteger(e), Ji = (e, t, n, { intAsBigInt: r }) => r ? BigInt(e) : parseInt(e.substring(t), n);
|
|
3308
|
+
function Yi(e, t, n) {
|
|
3308
3309
|
let { value: r } = e;
|
|
3309
|
-
return
|
|
3310
|
+
return qi(r) && r >= 0 ? n + r.toString(t) : Z(e);
|
|
3310
3311
|
}
|
|
3311
|
-
var
|
|
3312
|
-
identify: (e) =>
|
|
3312
|
+
var Xi = {
|
|
3313
|
+
identify: (e) => qi(e) && e >= 0,
|
|
3313
3314
|
default: !0,
|
|
3314
3315
|
tag: "tag:yaml.org,2002:int",
|
|
3315
3316
|
format: "OCT",
|
|
3316
3317
|
test: /^0o[0-7]+$/,
|
|
3317
|
-
resolve: (e, t, n) =>
|
|
3318
|
-
stringify: (e) =>
|
|
3319
|
-
},
|
|
3320
|
-
identify:
|
|
3318
|
+
resolve: (e, t, n) => Ji(e, 2, 8, n),
|
|
3319
|
+
stringify: (e) => Yi(e, 8, "0o")
|
|
3320
|
+
}, Zi = {
|
|
3321
|
+
identify: qi,
|
|
3321
3322
|
default: !0,
|
|
3322
3323
|
tag: "tag:yaml.org,2002:int",
|
|
3323
3324
|
test: /^[-+]?[0-9]+$/,
|
|
3324
|
-
resolve: (e, t, n) =>
|
|
3325
|
+
resolve: (e, t, n) => Ji(e, 0, 10, n),
|
|
3325
3326
|
stringify: Z
|
|
3326
|
-
},
|
|
3327
|
-
identify: (e) =>
|
|
3327
|
+
}, Qi = {
|
|
3328
|
+
identify: (e) => qi(e) && e >= 0,
|
|
3328
3329
|
default: !0,
|
|
3329
3330
|
tag: "tag:yaml.org,2002:int",
|
|
3330
3331
|
format: "HEX",
|
|
3331
3332
|
test: /^0x[0-9a-fA-F]+$/,
|
|
3332
|
-
resolve: (e, t, n) =>
|
|
3333
|
-
stringify: (e) =>
|
|
3334
|
-
},
|
|
3335
|
-
|
|
3336
|
-
zi,
|
|
3333
|
+
resolve: (e, t, n) => Ji(e, 2, 16, n),
|
|
3334
|
+
stringify: (e) => Yi(e, 16, "0x")
|
|
3335
|
+
}, $i = [
|
|
3336
|
+
Ri,
|
|
3337
3337
|
Bi,
|
|
3338
3338
|
Vi,
|
|
3339
3339
|
Hi,
|
|
3340
|
-
|
|
3340
|
+
Ui,
|
|
3341
3341
|
Xi,
|
|
3342
3342
|
Zi,
|
|
3343
|
-
|
|
3343
|
+
Qi,
|
|
3344
3344
|
Wi,
|
|
3345
|
-
Gi
|
|
3345
|
+
Gi,
|
|
3346
|
+
Ki
|
|
3346
3347
|
];
|
|
3347
3348
|
// node_modules/yaml/browser/dist/schema/json/schema.js
|
|
3348
|
-
function
|
|
3349
|
+
function ea(e) {
|
|
3349
3350
|
return typeof e == "bigint" || Number.isInteger(e);
|
|
3350
3351
|
}
|
|
3351
|
-
var
|
|
3352
|
+
var ta = ({ value: e }) => JSON.stringify(e), na = [
|
|
3352
3353
|
{
|
|
3353
3354
|
identify: (e) => typeof e == "string",
|
|
3354
3355
|
default: !0,
|
|
3355
3356
|
tag: "tag:yaml.org,2002:str",
|
|
3356
3357
|
resolve: (e) => e,
|
|
3357
|
-
stringify:
|
|
3358
|
+
stringify: ta
|
|
3358
3359
|
},
|
|
3359
3360
|
{
|
|
3360
3361
|
identify: (e) => e == null,
|
|
@@ -3363,7 +3364,7 @@ var ea = ({ value: e }) => JSON.stringify(e), ta = [
|
|
|
3363
3364
|
tag: "tag:yaml.org,2002:null",
|
|
3364
3365
|
test: /^null$/,
|
|
3365
3366
|
resolve: () => null,
|
|
3366
|
-
stringify:
|
|
3367
|
+
stringify: ta
|
|
3367
3368
|
},
|
|
3368
3369
|
{
|
|
3369
3370
|
identify: (e) => typeof e == "boolean",
|
|
@@ -3371,15 +3372,15 @@ var ea = ({ value: e }) => JSON.stringify(e), ta = [
|
|
|
3371
3372
|
tag: "tag:yaml.org,2002:bool",
|
|
3372
3373
|
test: /^true$|^false$/,
|
|
3373
3374
|
resolve: (e) => e === "true",
|
|
3374
|
-
stringify:
|
|
3375
|
+
stringify: ta
|
|
3375
3376
|
},
|
|
3376
3377
|
{
|
|
3377
|
-
identify:
|
|
3378
|
+
identify: ea,
|
|
3378
3379
|
default: !0,
|
|
3379
3380
|
tag: "tag:yaml.org,2002:int",
|
|
3380
3381
|
test: /^-?(?:0|[1-9][0-9]*)$/,
|
|
3381
3382
|
resolve: (e, t, { intAsBigInt: n }) => n ? BigInt(e) : parseInt(e, 10),
|
|
3382
|
-
stringify: ({ value: e }) =>
|
|
3383
|
+
stringify: ({ value: e }) => ea(e) ? e.toString() : JSON.stringify(e)
|
|
3383
3384
|
},
|
|
3384
3385
|
{
|
|
3385
3386
|
identify: (e) => typeof e == "number",
|
|
@@ -3387,16 +3388,16 @@ var ea = ({ value: e }) => JSON.stringify(e), ta = [
|
|
|
3387
3388
|
tag: "tag:yaml.org,2002:float",
|
|
3388
3389
|
test: /^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,
|
|
3389
3390
|
resolve: (e) => parseFloat(e),
|
|
3390
|
-
stringify:
|
|
3391
|
+
stringify: ta
|
|
3391
3392
|
}
|
|
3392
|
-
],
|
|
3393
|
+
], ra = [Ri, Bi].concat(na, {
|
|
3393
3394
|
default: !0,
|
|
3394
3395
|
tag: "",
|
|
3395
3396
|
test: /^/,
|
|
3396
3397
|
resolve(e, t) {
|
|
3397
3398
|
return t(`Unresolved plain scalar ${JSON.stringify(e)}`), e;
|
|
3398
3399
|
}
|
|
3399
|
-
}),
|
|
3400
|
+
}), ia = {
|
|
3400
3401
|
identify: (e) => e instanceof Uint8Array,
|
|
3401
3402
|
default: !1,
|
|
3402
3403
|
tag: "tag:yaml.org,2002:binary",
|
|
@@ -3421,7 +3422,7 @@ var ea = ({ value: e }) => JSON.stringify(e), ta = [
|
|
|
3421
3422
|
for (let t = 0, r = 0; t < n; ++t, r += e) i[t] = s.substr(r, e);
|
|
3422
3423
|
s = i.join(t === U.BLOCK_LITERAL ? "\n" : " ");
|
|
3423
3424
|
}
|
|
3424
|
-
return
|
|
3425
|
+
return yi({
|
|
3425
3426
|
comment: e,
|
|
3426
3427
|
type: t,
|
|
3427
3428
|
value: s
|
|
@@ -3429,11 +3430,11 @@ var ea = ({ value: e }) => JSON.stringify(e), ta = [
|
|
|
3429
3430
|
}
|
|
3430
3431
|
};
|
|
3431
3432
|
// node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js
|
|
3432
|
-
function
|
|
3433
|
-
if (
|
|
3433
|
+
function aa(e, t) {
|
|
3434
|
+
if (Pr(e)) for (let r = 0; r < e.items.length; ++r) {
|
|
3434
3435
|
let i = e.items[r];
|
|
3435
3436
|
if (!P(i)) {
|
|
3436
|
-
if (
|
|
3437
|
+
if (Nr(i)) {
|
|
3437
3438
|
i.items.length > 1 && t("Each pair must have its own sequence indicator");
|
|
3438
3439
|
let e = i.items[0] || new q(new U(null));
|
|
3439
3440
|
if (i.commentBefore && (e.key.commentBefore = e.key.commentBefore ? `${i.commentBefore}\n${e.key.commentBefore}` : i.commentBefore), i.comment) {
|
|
@@ -3449,7 +3450,7 @@ function ia(e, t) {
|
|
|
3449
3450
|
else t("Expected a sequence for this tag");
|
|
3450
3451
|
return e;
|
|
3451
3452
|
}
|
|
3452
|
-
function
|
|
3453
|
+
function oa(e, t, n) {
|
|
3453
3454
|
let { replacer: r } = n, i = new X(e);
|
|
3454
3455
|
i.tag = "tag:yaml.org,2002:pairs";
|
|
3455
3456
|
let a = 0;
|
|
@@ -3464,17 +3465,17 @@ function aa(e, t, n) {
|
|
|
3464
3465
|
if (t.length === 1) o = t[0], s = e[o];
|
|
3465
3466
|
else throw TypeError(`Expected tuple with one key, not ${t.length} keys`);
|
|
3466
3467
|
} else o = e;
|
|
3467
|
-
i.items.push(
|
|
3468
|
+
i.items.push(Ni(o, s, n));
|
|
3468
3469
|
}
|
|
3469
3470
|
return i;
|
|
3470
3471
|
}
|
|
3471
|
-
var
|
|
3472
|
+
var sa = {
|
|
3472
3473
|
collection: "seq",
|
|
3473
3474
|
default: !1,
|
|
3474
3475
|
tag: "tag:yaml.org,2002:pairs",
|
|
3475
|
-
resolve:
|
|
3476
|
-
createNode:
|
|
3477
|
-
},
|
|
3476
|
+
resolve: aa,
|
|
3477
|
+
createNode: oa
|
|
3478
|
+
}, ca = class e extends X {
|
|
3478
3479
|
constructor() {
|
|
3479
3480
|
super(), this.add = Y.prototype.add.bind(this), this.delete = Y.prototype.delete.bind(this), this.get = Y.prototype.get.bind(this), this.has = Y.prototype.has.bind(this), this.set = Y.prototype.set.bind(this), this.tag = e.tag;
|
|
3480
3481
|
}
|
|
@@ -3490,50 +3491,50 @@ var oa = {
|
|
|
3490
3491
|
return n;
|
|
3491
3492
|
}
|
|
3492
3493
|
static from(e, t, n) {
|
|
3493
|
-
let r =
|
|
3494
|
+
let r = oa(e, t, n), i = new this();
|
|
3494
3495
|
return i.items = r.items, i;
|
|
3495
3496
|
}
|
|
3496
3497
|
};
|
|
3497
|
-
|
|
3498
|
-
var
|
|
3498
|
+
ca.tag = "tag:yaml.org,2002:omap";
|
|
3499
|
+
var la = {
|
|
3499
3500
|
collection: "seq",
|
|
3500
3501
|
identify: (e) => e instanceof Map,
|
|
3501
|
-
nodeClass:
|
|
3502
|
+
nodeClass: ca,
|
|
3502
3503
|
default: !1,
|
|
3503
3504
|
tag: "tag:yaml.org,2002:omap",
|
|
3504
3505
|
resolve(e, t) {
|
|
3505
|
-
let n =
|
|
3506
|
+
let n = aa(e, t), r = [];
|
|
3506
3507
|
for (let { key: e } of n.items) F(e) && (r.includes(e.value) ? t(`Ordered maps must not include duplicate keys: ${e.value}`) : r.push(e.value));
|
|
3507
|
-
return Object.assign(new
|
|
3508
|
+
return Object.assign(new ca(), n);
|
|
3508
3509
|
},
|
|
3509
|
-
createNode: (e, t, n) =>
|
|
3510
|
+
createNode: (e, t, n) => ca.from(e, t, n)
|
|
3510
3511
|
};
|
|
3511
3512
|
// node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js
|
|
3512
|
-
function
|
|
3513
|
-
return t && (e ?
|
|
3513
|
+
function ua({ value: e, source: t }, n) {
|
|
3514
|
+
return t && (e ? da : fa).test.test(t) ? t : e ? n.options.trueStr : n.options.falseStr;
|
|
3514
3515
|
}
|
|
3515
|
-
var
|
|
3516
|
+
var da = {
|
|
3516
3517
|
identify: (e) => e === !0,
|
|
3517
3518
|
default: !0,
|
|
3518
3519
|
tag: "tag:yaml.org,2002:bool",
|
|
3519
3520
|
test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,
|
|
3520
3521
|
resolve: () => new U(!0),
|
|
3521
|
-
stringify:
|
|
3522
|
-
},
|
|
3522
|
+
stringify: ua
|
|
3523
|
+
}, fa = {
|
|
3523
3524
|
identify: (e) => e === !1,
|
|
3524
3525
|
default: !0,
|
|
3525
3526
|
tag: "tag:yaml.org,2002:bool",
|
|
3526
3527
|
test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,
|
|
3527
3528
|
resolve: () => new U(!1),
|
|
3528
|
-
stringify:
|
|
3529
|
-
},
|
|
3529
|
+
stringify: ua
|
|
3530
|
+
}, pa = {
|
|
3530
3531
|
identify: (e) => typeof e == "number",
|
|
3531
3532
|
default: !0,
|
|
3532
3533
|
tag: "tag:yaml.org,2002:float",
|
|
3533
3534
|
test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
|
|
3534
3535
|
resolve: (e) => e.slice(-3).toLowerCase() === "nan" ? NaN : e[0] === "-" ? -Infinity : Infinity,
|
|
3535
3536
|
stringify: Z
|
|
3536
|
-
},
|
|
3537
|
+
}, ma = {
|
|
3537
3538
|
identify: (e) => typeof e == "number",
|
|
3538
3539
|
default: !0,
|
|
3539
3540
|
tag: "tag:yaml.org,2002:float",
|
|
@@ -3544,7 +3545,7 @@ var ua = {
|
|
|
3544
3545
|
let t = Number(e.value);
|
|
3545
3546
|
return isFinite(t) ? t.toExponential() : Z(e);
|
|
3546
3547
|
}
|
|
3547
|
-
},
|
|
3548
|
+
}, ha = {
|
|
3548
3549
|
identify: (e) => typeof e == "number",
|
|
3549
3550
|
default: !0,
|
|
3550
3551
|
tag: "tag:yaml.org,2002:float",
|
|
@@ -3558,8 +3559,8 @@ var ua = {
|
|
|
3558
3559
|
return t;
|
|
3559
3560
|
},
|
|
3560
3561
|
stringify: Z
|
|
3561
|
-
},
|
|
3562
|
-
function
|
|
3562
|
+
}, ga = (e) => typeof e == "bigint" || Number.isInteger(e);
|
|
3563
|
+
function _a(e, t, n, { intAsBigInt: r }) {
|
|
3563
3564
|
let i = e[0];
|
|
3564
3565
|
if ((i === "-" || i === "+") && (t += 1), e = e.substring(t).replace(/_/g, ""), r) {
|
|
3565
3566
|
switch (n) {
|
|
@@ -3577,46 +3578,46 @@ function ga(e, t, n, { intAsBigInt: r }) {
|
|
|
3577
3578
|
let a = parseInt(e, n);
|
|
3578
3579
|
return i === "-" ? -1 * a : a;
|
|
3579
3580
|
}
|
|
3580
|
-
function
|
|
3581
|
+
function va(e, t, n) {
|
|
3581
3582
|
let { value: r } = e;
|
|
3582
|
-
if (
|
|
3583
|
+
if (ga(r)) {
|
|
3583
3584
|
let e = r.toString(t);
|
|
3584
3585
|
return r < 0 ? "-" + n + e.substr(1) : n + e;
|
|
3585
3586
|
}
|
|
3586
3587
|
return Z(e);
|
|
3587
3588
|
}
|
|
3588
|
-
var
|
|
3589
|
-
identify:
|
|
3589
|
+
var ya = {
|
|
3590
|
+
identify: ga,
|
|
3590
3591
|
default: !0,
|
|
3591
3592
|
tag: "tag:yaml.org,2002:int",
|
|
3592
3593
|
format: "BIN",
|
|
3593
3594
|
test: /^[-+]?0b[0-1_]+$/,
|
|
3594
|
-
resolve: (e, t, n) =>
|
|
3595
|
-
stringify: (e) =>
|
|
3596
|
-
},
|
|
3597
|
-
identify:
|
|
3595
|
+
resolve: (e, t, n) => _a(e, 2, 2, n),
|
|
3596
|
+
stringify: (e) => va(e, 2, "0b")
|
|
3597
|
+
}, ba = {
|
|
3598
|
+
identify: ga,
|
|
3598
3599
|
default: !0,
|
|
3599
3600
|
tag: "tag:yaml.org,2002:int",
|
|
3600
3601
|
format: "OCT",
|
|
3601
3602
|
test: /^[-+]?0[0-7_]+$/,
|
|
3602
|
-
resolve: (e, t, n) =>
|
|
3603
|
-
stringify: (e) =>
|
|
3604
|
-
},
|
|
3605
|
-
identify:
|
|
3603
|
+
resolve: (e, t, n) => _a(e, 1, 8, n),
|
|
3604
|
+
stringify: (e) => va(e, 8, "0")
|
|
3605
|
+
}, xa = {
|
|
3606
|
+
identify: ga,
|
|
3606
3607
|
default: !0,
|
|
3607
3608
|
tag: "tag:yaml.org,2002:int",
|
|
3608
3609
|
test: /^[-+]?[0-9][0-9_]*$/,
|
|
3609
|
-
resolve: (e, t, n) =>
|
|
3610
|
+
resolve: (e, t, n) => _a(e, 0, 10, n),
|
|
3610
3611
|
stringify: Z
|
|
3611
|
-
},
|
|
3612
|
-
identify:
|
|
3612
|
+
}, Sa = {
|
|
3613
|
+
identify: ga,
|
|
3613
3614
|
default: !0,
|
|
3614
3615
|
tag: "tag:yaml.org,2002:int",
|
|
3615
3616
|
format: "HEX",
|
|
3616
3617
|
test: /^[-+]?0x[0-9a-fA-F_]+$/,
|
|
3617
|
-
resolve: (e, t, n) =>
|
|
3618
|
-
stringify: (e) =>
|
|
3619
|
-
},
|
|
3618
|
+
resolve: (e, t, n) => _a(e, 2, 16, n),
|
|
3619
|
+
stringify: (e) => va(e, 16, "0x")
|
|
3620
|
+
}, Ca = class e extends Y {
|
|
3620
3621
|
constructor(t) {
|
|
3621
3622
|
super(t), this.tag = e.tag;
|
|
3622
3623
|
}
|
|
@@ -3643,32 +3644,32 @@ var va = {
|
|
|
3643
3644
|
}
|
|
3644
3645
|
static from(e, t, n) {
|
|
3645
3646
|
let { replacer: r } = n, i = new this(e);
|
|
3646
|
-
if (t && Symbol.iterator in Object(t)) for (let e of t) typeof r == "function" && (e = r.call(t, e, e)), i.items.push(
|
|
3647
|
+
if (t && Symbol.iterator in Object(t)) for (let e of t) typeof r == "function" && (e = r.call(t, e, e)), i.items.push(Ni(e, null, n));
|
|
3647
3648
|
return i;
|
|
3648
3649
|
}
|
|
3649
3650
|
};
|
|
3650
|
-
|
|
3651
|
-
var
|
|
3651
|
+
Ca.tag = "tag:yaml.org,2002:set";
|
|
3652
|
+
var wa = {
|
|
3652
3653
|
collection: "map",
|
|
3653
3654
|
identify: (e) => e instanceof Set,
|
|
3654
|
-
nodeClass:
|
|
3655
|
+
nodeClass: Ca,
|
|
3655
3656
|
default: !1,
|
|
3656
3657
|
tag: "tag:yaml.org,2002:set",
|
|
3657
|
-
createNode: (e, t, n) =>
|
|
3658
|
+
createNode: (e, t, n) => Ca.from(e, t, n),
|
|
3658
3659
|
resolve(e, t) {
|
|
3659
|
-
if (
|
|
3660
|
-
if (e.hasAllNullValues(!0)) return Object.assign(new
|
|
3660
|
+
if (Nr(e)) {
|
|
3661
|
+
if (e.hasAllNullValues(!0)) return Object.assign(new Ca(), e);
|
|
3661
3662
|
t("Set items must all have null values");
|
|
3662
3663
|
} else t("Expected a mapping for this tag");
|
|
3663
3664
|
return e;
|
|
3664
3665
|
}
|
|
3665
3666
|
};
|
|
3666
3667
|
// node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js
|
|
3667
|
-
function
|
|
3668
|
+
function Ta(e, t) {
|
|
3668
3669
|
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));
|
|
3669
3670
|
return n === "-" ? i(-1) * a : a;
|
|
3670
3671
|
}
|
|
3671
|
-
function
|
|
3672
|
+
function Ea(e) {
|
|
3672
3673
|
let { value: t } = e, n = (e) => e;
|
|
3673
3674
|
if (typeof t == "bigint") n = (e) => BigInt(e);
|
|
3674
3675
|
else if (isNaN(t) || !isFinite(t)) return Z(e);
|
|
@@ -3677,33 +3678,33 @@ function Ta(e) {
|
|
|
3677
3678
|
let i = n(60), a = [t % i];
|
|
3678
3679
|
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*$/, "");
|
|
3679
3680
|
}
|
|
3680
|
-
var
|
|
3681
|
+
var Da = {
|
|
3681
3682
|
identify: (e) => typeof e == "bigint" || Number.isInteger(e),
|
|
3682
3683
|
default: !0,
|
|
3683
3684
|
tag: "tag:yaml.org,2002:int",
|
|
3684
3685
|
format: "TIME",
|
|
3685
3686
|
test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,
|
|
3686
|
-
resolve: (e, t, { intAsBigInt: n }) =>
|
|
3687
|
-
stringify:
|
|
3688
|
-
},
|
|
3687
|
+
resolve: (e, t, { intAsBigInt: n }) => Ta(e, n),
|
|
3688
|
+
stringify: Ea
|
|
3689
|
+
}, Oa = {
|
|
3689
3690
|
identify: (e) => typeof e == "number",
|
|
3690
3691
|
default: !0,
|
|
3691
3692
|
tag: "tag:yaml.org,2002:float",
|
|
3692
3693
|
format: "TIME",
|
|
3693
3694
|
test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,
|
|
3694
|
-
resolve: (e) =>
|
|
3695
|
-
stringify:
|
|
3696
|
-
},
|
|
3695
|
+
resolve: (e) => Ta(e, !1),
|
|
3696
|
+
stringify: Ea
|
|
3697
|
+
}, ka = {
|
|
3697
3698
|
identify: (e) => e instanceof Date,
|
|
3698
3699
|
default: !0,
|
|
3699
3700
|
tag: "tag:yaml.org,2002:timestamp",
|
|
3700
3701
|
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})?))?)?$"),
|
|
3701
3702
|
resolve(e) {
|
|
3702
|
-
let t = e.match(
|
|
3703
|
+
let t = e.match(ka.test);
|
|
3703
3704
|
if (!t) throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");
|
|
3704
3705
|
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];
|
|
3705
3706
|
if (u && u !== "Z") {
|
|
3706
|
-
let e =
|
|
3707
|
+
let e = Ta(u, !1);
|
|
3707
3708
|
Math.abs(e) < 30 && (e *= 60), l -= 6e4 * e;
|
|
3708
3709
|
}
|
|
3709
3710
|
return new Date(l);
|
|
@@ -3712,91 +3713,91 @@ var Ea = {
|
|
|
3712
3713
|
var t;
|
|
3713
3714
|
return (t = e == null ? void 0 : e.toISOString().replace(/(T00:00:00)?\.000Z$/, "")) == null ? "" : t;
|
|
3714
3715
|
}
|
|
3715
|
-
},
|
|
3716
|
-
|
|
3717
|
-
zi,
|
|
3716
|
+
}, Aa = [
|
|
3717
|
+
Ri,
|
|
3718
3718
|
Bi,
|
|
3719
3719
|
Vi,
|
|
3720
|
-
|
|
3720
|
+
Hi,
|
|
3721
3721
|
da,
|
|
3722
|
-
|
|
3722
|
+
fa,
|
|
3723
3723
|
ya,
|
|
3724
3724
|
ba,
|
|
3725
3725
|
xa,
|
|
3726
|
-
|
|
3726
|
+
Sa,
|
|
3727
3727
|
pa,
|
|
3728
3728
|
ma,
|
|
3729
|
-
|
|
3729
|
+
ha,
|
|
3730
|
+
ia,
|
|
3730
3731
|
K,
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
Ea,
|
|
3732
|
+
la,
|
|
3733
|
+
sa,
|
|
3734
|
+
wa,
|
|
3735
3735
|
Da,
|
|
3736
|
-
Oa
|
|
3737
|
-
|
|
3738
|
-
|
|
3736
|
+
Oa,
|
|
3737
|
+
ka
|
|
3738
|
+
], ja = /* @__PURE__ */ new Map([
|
|
3739
|
+
["core", $i],
|
|
3739
3740
|
["failsafe", [
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3741
|
+
Ri,
|
|
3742
|
+
Bi,
|
|
3743
|
+
Vi
|
|
3743
3744
|
]],
|
|
3744
|
-
["json",
|
|
3745
|
-
["yaml11",
|
|
3746
|
-
["yaml-1.1",
|
|
3747
|
-
]),
|
|
3748
|
-
binary:
|
|
3749
|
-
bool:
|
|
3750
|
-
float:
|
|
3751
|
-
floatExp:
|
|
3752
|
-
floatNaN:
|
|
3753
|
-
floatTime:
|
|
3754
|
-
int:
|
|
3755
|
-
intHex:
|
|
3756
|
-
intOct:
|
|
3757
|
-
intTime:
|
|
3758
|
-
map:
|
|
3745
|
+
["json", ra],
|
|
3746
|
+
["yaml11", Aa],
|
|
3747
|
+
["yaml-1.1", Aa]
|
|
3748
|
+
]), Ma = {
|
|
3749
|
+
binary: ia,
|
|
3750
|
+
bool: Ui,
|
|
3751
|
+
float: Ki,
|
|
3752
|
+
floatExp: Gi,
|
|
3753
|
+
floatNaN: Wi,
|
|
3754
|
+
floatTime: Oa,
|
|
3755
|
+
int: Zi,
|
|
3756
|
+
intHex: Qi,
|
|
3757
|
+
intOct: Xi,
|
|
3758
|
+
intTime: Da,
|
|
3759
|
+
map: Ri,
|
|
3759
3760
|
merge: K,
|
|
3760
|
-
null:
|
|
3761
|
-
omap:
|
|
3762
|
-
pairs:
|
|
3763
|
-
seq:
|
|
3764
|
-
set:
|
|
3765
|
-
timestamp:
|
|
3766
|
-
},
|
|
3767
|
-
"tag:yaml.org,2002:binary":
|
|
3761
|
+
null: Hi,
|
|
3762
|
+
omap: la,
|
|
3763
|
+
pairs: sa,
|
|
3764
|
+
seq: Bi,
|
|
3765
|
+
set: wa,
|
|
3766
|
+
timestamp: ka
|
|
3767
|
+
}, Na = {
|
|
3768
|
+
"tag:yaml.org,2002:binary": ia,
|
|
3768
3769
|
"tag:yaml.org,2002:merge": K,
|
|
3769
|
-
"tag:yaml.org,2002:omap":
|
|
3770
|
-
"tag:yaml.org,2002:pairs":
|
|
3771
|
-
"tag:yaml.org,2002:set":
|
|
3772
|
-
"tag:yaml.org,2002:timestamp":
|
|
3770
|
+
"tag:yaml.org,2002:omap": la,
|
|
3771
|
+
"tag:yaml.org,2002:pairs": sa,
|
|
3772
|
+
"tag:yaml.org,2002:set": wa,
|
|
3773
|
+
"tag:yaml.org,2002:timestamp": ka
|
|
3773
3774
|
};
|
|
3774
|
-
function
|
|
3775
|
-
let r =
|
|
3775
|
+
function Pa(e, t, n) {
|
|
3776
|
+
let r = ja.get(t);
|
|
3776
3777
|
if (r && !e) return n && !r.includes(K) ? r.concat(K) : r.slice();
|
|
3777
3778
|
let i = r;
|
|
3778
3779
|
if (!i) {
|
|
3779
3780
|
if (Array.isArray(e)) i = [];
|
|
3780
3781
|
else {
|
|
3781
|
-
let e = Array.from(
|
|
3782
|
+
let e = Array.from(ja.keys()).filter((e) => e !== "yaml11").map((e) => JSON.stringify(e)).join(", ");
|
|
3782
3783
|
throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`);
|
|
3783
3784
|
}
|
|
3784
3785
|
}
|
|
3785
3786
|
if (Array.isArray(e)) for (let t of e) i = i.concat(t);
|
|
3786
3787
|
else typeof e == "function" && (i = e(i.slice()));
|
|
3787
3788
|
return n && (i = i.concat(K)), i.reduce((e, t) => {
|
|
3788
|
-
let n = typeof t == "string" ?
|
|
3789
|
+
let n = typeof t == "string" ? Ma[t] : t;
|
|
3789
3790
|
if (!n) {
|
|
3790
|
-
let e = JSON.stringify(t), n = Object.keys(
|
|
3791
|
+
let e = JSON.stringify(t), n = Object.keys(Ma).map((e) => JSON.stringify(e)).join(", ");
|
|
3791
3792
|
throw Error(`Unknown custom tag ${e}; use one of ${n}`);
|
|
3792
3793
|
}
|
|
3793
3794
|
return e.includes(n) || e.push(n), e;
|
|
3794
3795
|
}, []);
|
|
3795
3796
|
}
|
|
3796
3797
|
// node_modules/yaml/browser/dist/schema/Schema.js
|
|
3797
|
-
var
|
|
3798
|
+
var Fa = (e, t) => e.key < t.key ? -1 : +(e.key > t.key), Ia = class e {
|
|
3798
3799
|
constructor({ compat: e, customTags: t, merge: n, resolveKnownTags: r, schema: i, sortMapEntries: a, toStringDefaults: o }) {
|
|
3799
|
-
this.compat = Array.isArray(e) ?
|
|
3800
|
+
this.compat = Array.isArray(e) ? Pa(e, "compat") : e ? Pa(null, e) : null, this.name = typeof i == "string" && i || "core", this.knownTags = r ? Na : {}, this.tags = Pa(t, this.name, n), this.toStringOptions = o == null ? null : o, Object.defineProperty(this, j, { value: Ri }), Object.defineProperty(this, M, { value: Vi }), Object.defineProperty(this, Ar, { value: Bi }), this.sortMapEntries = typeof a == "function" ? a : a === !0 ? Fa : null;
|
|
3800
3801
|
}
|
|
3801
3802
|
clone() {
|
|
3802
3803
|
let t = Object.create(e.prototype, Object.getOwnPropertyDescriptors(this));
|
|
@@ -3804,7 +3805,7 @@ var Pa = (e, t) => e.key < t.key ? -1 : +(e.key > t.key), Fa = class e {
|
|
|
3804
3805
|
}
|
|
3805
3806
|
};
|
|
3806
3807
|
// node_modules/yaml/browser/dist/stringify/stringifyDocument.js
|
|
3807
|
-
function
|
|
3808
|
+
function La(e, t) {
|
|
3808
3809
|
var n;
|
|
3809
3810
|
let r = [], i = t.directives === !0;
|
|
3810
3811
|
if (t.directives !== !1 && e.directives) {
|
|
@@ -3812,7 +3813,7 @@ function Ia(e, t) {
|
|
|
3812
3813
|
t ? (r.push(t), i = !0) : e.directives.docStart && (i = !0);
|
|
3813
3814
|
}
|
|
3814
3815
|
i && r.push("---");
|
|
3815
|
-
let a =
|
|
3816
|
+
let a = bi(e, t), { commentString: o } = a.options;
|
|
3816
3817
|
if (e.commentBefore) {
|
|
3817
3818
|
r.length !== 1 && r.unshift("");
|
|
3818
3819
|
let t = o(e.commentBefore);
|
|
@@ -3827,9 +3828,9 @@ function Ia(e, t) {
|
|
|
3827
3828
|
}
|
|
3828
3829
|
a.forceBlockIndent = !!e.comment, c = e.contents.comment;
|
|
3829
3830
|
}
|
|
3830
|
-
let t = c ? void 0 : () => s = !0, n =
|
|
3831
|
+
let t = c ? void 0 : () => s = !0, n = Ci(e.contents, a, () => c = null, t);
|
|
3831
3832
|
c && (n += G(n, "", o(c))), (n[0] === "|" || n[0] === ">") && r[r.length - 1] === "---" ? r[r.length - 1] = `--- ${n}` : r.push(n);
|
|
3832
|
-
} else r.push(
|
|
3833
|
+
} else r.push(Ci(e.contents, a));
|
|
3833
3834
|
if ((n = e.directives) != null && n.docEnd) {
|
|
3834
3835
|
if (e.comment) {
|
|
3835
3836
|
let t = o(e.comment);
|
|
@@ -3842,9 +3843,9 @@ function Ia(e, t) {
|
|
|
3842
3843
|
return r.join("\n") + "\n";
|
|
3843
3844
|
}
|
|
3844
3845
|
// node_modules/yaml/browser/dist/doc/Document.js
|
|
3845
|
-
var
|
|
3846
|
+
var Ra = class e {
|
|
3846
3847
|
constructor(e, t, n) {
|
|
3847
|
-
this.commentBefore = null, this.comment = null, this.errors = [], this.warnings = [], Object.defineProperty(this, N, { value:
|
|
3848
|
+
this.commentBefore = null, this.comment = null, this.errors = [], this.warnings = [], Object.defineProperty(this, N, { value: Or });
|
|
3848
3849
|
let r = null;
|
|
3849
3850
|
typeof t == "function" || Array.isArray(t) ? r = t : n === void 0 && t && (n = t, t = void 0);
|
|
3850
3851
|
let i = Object.assign({
|
|
@@ -3859,24 +3860,24 @@ var La = class e {
|
|
|
3859
3860
|
}, n);
|
|
3860
3861
|
this.options = i;
|
|
3861
3862
|
let { version: a } = i;
|
|
3862
|
-
n != null && n._directives ? (this.directives = n._directives.atDocument(), this.directives.yaml.explicit && (a = this.directives.yaml.version)) : this.directives = new
|
|
3863
|
+
n != null && n._directives ? (this.directives = n._directives.atDocument(), this.directives.yaml.explicit && (a = this.directives.yaml.version)) : this.directives = new Ur({ version: a }), this.setSchema(a, n), this.contents = e === void 0 ? null : this.createNode(e, r, n);
|
|
3863
3864
|
}
|
|
3864
3865
|
clone() {
|
|
3865
|
-
let t = Object.create(e.prototype, { [N]: { value:
|
|
3866
|
+
let t = Object.create(e.prototype, { [N]: { value: Or } });
|
|
3866
3867
|
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 = L(this.contents) ? this.contents.clone(t.schema) : this.contents, this.range && (t.range = this.range.slice()), t;
|
|
3867
3868
|
}
|
|
3868
3869
|
add(e) {
|
|
3869
|
-
|
|
3870
|
+
za(this.contents) && this.contents.add(e);
|
|
3870
3871
|
}
|
|
3871
3872
|
addIn(e, t) {
|
|
3872
|
-
|
|
3873
|
+
za(this.contents) && this.contents.addIn(e, t);
|
|
3873
3874
|
}
|
|
3874
3875
|
createAlias(e, t) {
|
|
3875
3876
|
if (!e.anchor) {
|
|
3876
|
-
let n =
|
|
3877
|
-
e.anchor = !t || n.has(t) ?
|
|
3877
|
+
let n = Gr(this);
|
|
3878
|
+
e.anchor = !t || n.has(t) ? Kr(t || "a", n) : t;
|
|
3878
3879
|
}
|
|
3879
|
-
return new
|
|
3880
|
+
return new Yr(e.anchor);
|
|
3880
3881
|
}
|
|
3881
3882
|
createNode(e, t, n) {
|
|
3882
3883
|
var r;
|
|
@@ -3886,7 +3887,7 @@ var La = class e {
|
|
|
3886
3887
|
let e = t.filter((e) => typeof e == "number" || e instanceof String || e instanceof Number).map(String);
|
|
3887
3888
|
e.length > 0 && (t = t.concat(e)), i = t;
|
|
3888
3889
|
} else n === void 0 && t && (n = t, t = void 0);
|
|
3889
|
-
let { aliasDuplicateObjects: a, anchorPrefix: o, flow: s, keepUndefined: c, onTagObj: l, tag: u } = (r = n) == null ? {} : r, { onAnchor: d, setAnchors: f, sourceObjects: p } =
|
|
3890
|
+
let { aliasDuplicateObjects: a, anchorPrefix: o, flow: s, keepUndefined: c, onTagObj: l, tag: u } = (r = n) == null ? {} : r, { onAnchor: d, setAnchors: f, sourceObjects: p } = qr(this, o || "a"), m = {
|
|
3890
3891
|
aliasDuplicateObjects: a == null || a,
|
|
3891
3892
|
keepUndefined: c != null && c,
|
|
3892
3893
|
onAnchor: d,
|
|
@@ -3894,49 +3895,49 @@ var La = class e {
|
|
|
3894
3895
|
replacer: i,
|
|
3895
3896
|
schema: this.schema,
|
|
3896
3897
|
sourceObjects: p
|
|
3897
|
-
}, h =
|
|
3898
|
+
}, h = ei(e, u, m);
|
|
3898
3899
|
return s && I(h) && (h.flow = !0), f(), h;
|
|
3899
3900
|
}
|
|
3900
3901
|
createPair(e, t, n = {}) {
|
|
3901
3902
|
return new q(this.createNode(e, null, n), this.createNode(t, null, n));
|
|
3902
3903
|
}
|
|
3903
3904
|
delete(e) {
|
|
3904
|
-
return
|
|
3905
|
+
return za(this.contents) ? this.contents.delete(e) : !1;
|
|
3905
3906
|
}
|
|
3906
3907
|
deleteIn(e) {
|
|
3907
|
-
return
|
|
3908
|
+
return ni(e) ? this.contents != null && (this.contents = null, !0) : za(this.contents) ? this.contents.deleteIn(e) : !1;
|
|
3908
3909
|
}
|
|
3909
3910
|
get(e, t) {
|
|
3910
3911
|
return I(this.contents) ? this.contents.get(e, t) : void 0;
|
|
3911
3912
|
}
|
|
3912
3913
|
getIn(e, t) {
|
|
3913
|
-
return
|
|
3914
|
+
return ni(e) ? !t && F(this.contents) ? this.contents.value : this.contents : I(this.contents) ? this.contents.getIn(e, t) : void 0;
|
|
3914
3915
|
}
|
|
3915
3916
|
has(e) {
|
|
3916
3917
|
return I(this.contents) ? this.contents.has(e) : !1;
|
|
3917
3918
|
}
|
|
3918
3919
|
hasIn(e) {
|
|
3919
|
-
return
|
|
3920
|
+
return ni(e) ? this.contents !== void 0 : I(this.contents) ? this.contents.hasIn(e) : !1;
|
|
3920
3921
|
}
|
|
3921
3922
|
set(e, t) {
|
|
3922
|
-
this.contents == null ? this.contents =
|
|
3923
|
+
this.contents == null ? this.contents = ti(this.schema, [e], t) : za(this.contents) && this.contents.set(e, t);
|
|
3923
3924
|
}
|
|
3924
3925
|
setIn(e, t) {
|
|
3925
|
-
|
|
3926
|
+
ni(e) ? this.contents = t : this.contents == null ? this.contents = ti(this.schema, Array.from(e), t) : za(this.contents) && this.contents.setIn(e, t);
|
|
3926
3927
|
}
|
|
3927
3928
|
setSchema(e, t = {}) {
|
|
3928
3929
|
typeof e == "number" && (e = String(e));
|
|
3929
3930
|
let n;
|
|
3930
3931
|
switch (e) {
|
|
3931
3932
|
case "1.1":
|
|
3932
|
-
this.directives ? this.directives.yaml.version = "1.1" : this.directives = new
|
|
3933
|
+
this.directives ? this.directives.yaml.version = "1.1" : this.directives = new Ur({ version: "1.1" }), n = {
|
|
3933
3934
|
resolveKnownTags: !1,
|
|
3934
3935
|
schema: "yaml-1.1"
|
|
3935
3936
|
};
|
|
3936
3937
|
break;
|
|
3937
3938
|
case "1.2":
|
|
3938
3939
|
case "next":
|
|
3939
|
-
this.directives ? this.directives.yaml.version = e : this.directives = new
|
|
3940
|
+
this.directives ? this.directives.yaml.version = e : this.directives = new Ur({ version: e }), n = {
|
|
3940
3941
|
resolveKnownTags: !0,
|
|
3941
3942
|
schema: "core"
|
|
3942
3943
|
};
|
|
@@ -3950,7 +3951,7 @@ var La = class e {
|
|
|
3950
3951
|
}
|
|
3951
3952
|
}
|
|
3952
3953
|
if (t.schema instanceof Object) this.schema = t.schema;
|
|
3953
|
-
else if (n) this.schema = new
|
|
3954
|
+
else if (n) this.schema = new Ia(Object.assign(n, t));
|
|
3954
3955
|
else throw Error("With a null YAML version, the { schema: Schema } option is required");
|
|
3955
3956
|
}
|
|
3956
3957
|
toJS({ json: e, jsonArg: t, mapAsMap: n, maxAliasCount: r, onAnchor: i, reviver: a } = {}) {
|
|
@@ -3979,27 +3980,27 @@ var La = class e {
|
|
|
3979
3980
|
let t = JSON.stringify(e.indent);
|
|
3980
3981
|
throw Error(`"indent" option must be a positive integer, not ${t}`);
|
|
3981
3982
|
}
|
|
3982
|
-
return
|
|
3983
|
+
return La(this, e);
|
|
3983
3984
|
}
|
|
3984
3985
|
};
|
|
3985
|
-
function
|
|
3986
|
+
function za(e) {
|
|
3986
3987
|
if (I(e)) return !0;
|
|
3987
3988
|
throw Error("Expected a YAML collection as document contents");
|
|
3988
3989
|
}
|
|
3989
3990
|
// node_modules/yaml/browser/dist/errors.js
|
|
3990
|
-
var
|
|
3991
|
+
var Ba = class extends Error {
|
|
3991
3992
|
constructor(e, t, n, r) {
|
|
3992
3993
|
super(), this.name = e, this.code = n, this.message = r, this.pos = t;
|
|
3993
3994
|
}
|
|
3994
|
-
},
|
|
3995
|
+
}, Va = class extends Ba {
|
|
3995
3996
|
constructor(e, t, n) {
|
|
3996
3997
|
super("YAMLParseError", e, t, n);
|
|
3997
3998
|
}
|
|
3998
|
-
},
|
|
3999
|
+
}, Ha = class extends Ba {
|
|
3999
4000
|
constructor(e, t, n) {
|
|
4000
4001
|
super("YAMLWarning", e, t, n);
|
|
4001
4002
|
}
|
|
4002
|
-
},
|
|
4003
|
+
}, Ua = (e, t) => (n) => {
|
|
4003
4004
|
if (n.pos[0] === -1) return;
|
|
4004
4005
|
n.linePos = n.pos.map((e) => t.linePos(e));
|
|
4005
4006
|
let { line: r, col: i } = n.linePos[0];
|
|
@@ -4021,7 +4022,7 @@ var za = class extends Error {
|
|
|
4021
4022
|
}
|
|
4022
4023
|
};
|
|
4023
4024
|
// node_modules/yaml/browser/dist/compose/resolve-props.js
|
|
4024
|
-
function
|
|
4025
|
+
function Wa(e, { flow: t, indicator: n, next: r, offset: i, onError: a, parentIndent: o, startOnNewline: s }) {
|
|
4025
4026
|
var c;
|
|
4026
4027
|
let l = !1, u = s, d = s, f = "", p = "", m = !1, h = !1, g = null, _ = null, v = null, y = null, b = null, x = null, S = null;
|
|
4027
4028
|
for (let i of e) switch (h && (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"), h = !1), g && (u && i.type !== "comment" && i.type !== "newline" && a(g, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), g = null), i.type) {
|
|
@@ -4067,7 +4068,7 @@ function Ua(e, { flow: t, indicator: n, next: r, offset: i, onError: a, parentIn
|
|
|
4067
4068
|
};
|
|
4068
4069
|
}
|
|
4069
4070
|
// node_modules/yaml/browser/dist/compose/util-contains-newline.js
|
|
4070
|
-
function
|
|
4071
|
+
function Ga(e) {
|
|
4071
4072
|
if (!e) return null;
|
|
4072
4073
|
switch (e.type) {
|
|
4073
4074
|
case "alias":
|
|
@@ -4085,36 +4086,36 @@ function Wa(e) {
|
|
|
4085
4086
|
if (t.sep) {
|
|
4086
4087
|
for (let e of t.sep) if (e.type === "newline") return !0;
|
|
4087
4088
|
}
|
|
4088
|
-
if (
|
|
4089
|
+
if (Ga(t.key) || Ga(t.value)) return !0;
|
|
4089
4090
|
}
|
|
4090
4091
|
return !1;
|
|
4091
4092
|
default: return !0;
|
|
4092
4093
|
}
|
|
4093
4094
|
}
|
|
4094
4095
|
// node_modules/yaml/browser/dist/compose/util-flow-indent-check.js
|
|
4095
|
-
function
|
|
4096
|
+
function Ka(e, t, n) {
|
|
4096
4097
|
if ((t == null ? void 0 : t.type) === "flow-collection") {
|
|
4097
4098
|
let r = t.end[0];
|
|
4098
|
-
r.indent === e && (r.source === "]" || r.source === "}") &&
|
|
4099
|
+
r.indent === e && (r.source === "]" || r.source === "}") && Ga(t) && n(r, "BAD_INDENT", "Flow end indicator should be more indented than parent", !0);
|
|
4099
4100
|
}
|
|
4100
4101
|
}
|
|
4101
4102
|
// node_modules/yaml/browser/dist/compose/util-map-includes.js
|
|
4102
|
-
function
|
|
4103
|
+
function qa(e, t, n) {
|
|
4103
4104
|
let { uniqueKeys: r } = e.options;
|
|
4104
4105
|
if (r === !1) return !1;
|
|
4105
4106
|
let i = typeof r == "function" ? r : (e, t) => e === t || F(e) && F(t) && e.value === t.value;
|
|
4106
4107
|
return t.some((e) => i(e.key, n));
|
|
4107
4108
|
}
|
|
4108
4109
|
// node_modules/yaml/browser/dist/compose/resolve-block-map.js
|
|
4109
|
-
var
|
|
4110
|
-
function
|
|
4110
|
+
var Ja = "All mapping items must start at the same column";
|
|
4111
|
+
function Ya({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
4111
4112
|
var o, s;
|
|
4112
4113
|
let c = new ((o = a == null ? void 0 : a.nodeClass) == null ? Y : o)(n.schema);
|
|
4113
4114
|
n.atRoot && (n.atRoot = !1);
|
|
4114
4115
|
let l = r.offset, u = null;
|
|
4115
4116
|
for (let a of r.items) {
|
|
4116
4117
|
var d;
|
|
4117
|
-
let { start: o, key: s, sep: f, value: p } = a, m =
|
|
4118
|
+
let { start: o, key: s, sep: f, value: p } = a, m = Wa(o, {
|
|
4118
4119
|
indicator: "explicit-key-ind",
|
|
4119
4120
|
next: s == null ? f == null ? void 0 : f[0] : s,
|
|
4120
4121
|
offset: l,
|
|
@@ -4123,16 +4124,16 @@ function Ja({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
|
4123
4124
|
startOnNewline: !0
|
|
4124
4125
|
}), h = !m.found;
|
|
4125
4126
|
if (h) {
|
|
4126
|
-
if (s && (s.type === "block-seq" ? i(l, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key") : "indent" in s && s.indent !== r.indent && i(l, "BAD_INDENT",
|
|
4127
|
+
if (s && (s.type === "block-seq" ? i(l, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key") : "indent" in s && s.indent !== r.indent && i(l, "BAD_INDENT", Ja)), !m.anchor && !m.tag && !f) {
|
|
4127
4128
|
u = m.end, m.comment && (c.comment ? c.comment += "\n" + m.comment : c.comment = m.comment);
|
|
4128
4129
|
continue;
|
|
4129
4130
|
}
|
|
4130
|
-
(m.newlineAfterProp ||
|
|
4131
|
-
} else ((d = m.found) == null ? void 0 : d.indent) !== r.indent && i(l, "BAD_INDENT",
|
|
4131
|
+
(m.newlineAfterProp || Ga(s)) && i(s == null ? o[o.length - 1] : s, "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
|
4132
|
+
} else ((d = m.found) == null ? void 0 : d.indent) !== r.indent && i(l, "BAD_INDENT", Ja);
|
|
4132
4133
|
n.atKey = !0;
|
|
4133
4134
|
let g = m.end, _ = s ? e(n, s, m, i) : t(n, g, o, null, m, i);
|
|
4134
|
-
n.schema.compat &&
|
|
4135
|
-
let v =
|
|
4135
|
+
n.schema.compat && Ka(r.indent, s, i), n.atKey = !1, qa(n, c.items, _) && i(g, "DUPLICATE_KEY", "Map keys must be unique");
|
|
4136
|
+
let v = Wa(f == null ? [] : f, {
|
|
4136
4137
|
indicator: "map-value-ind",
|
|
4137
4138
|
next: p,
|
|
4138
4139
|
offset: _.range[2],
|
|
@@ -4143,7 +4144,7 @@ function Ja({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
|
4143
4144
|
if (l = v.end, v.found) {
|
|
4144
4145
|
h && ((p == null ? void 0 : p.type) === "block-map" && !v.hasNewline && i(l, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), n.options.strict && m.start < v.found.offset - 1024 && i(_.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));
|
|
4145
4146
|
let o = p ? e(n, p, v, i) : t(n, l, f, null, v, i);
|
|
4146
|
-
n.schema.compat &&
|
|
4147
|
+
n.schema.compat && Ka(r.indent, p, i), l = o.range[2];
|
|
4147
4148
|
let s = new q(_, o);
|
|
4148
4149
|
n.options.keepSourceTokens && (s.srcToken = a), c.items.push(s);
|
|
4149
4150
|
} else {
|
|
@@ -4159,13 +4160,13 @@ function Ja({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
|
4159
4160
|
], c;
|
|
4160
4161
|
}
|
|
4161
4162
|
// node_modules/yaml/browser/dist/compose/resolve-block-seq.js
|
|
4162
|
-
function
|
|
4163
|
+
function Xa({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
4163
4164
|
var o, s;
|
|
4164
4165
|
let c = new ((o = a == null ? void 0 : a.nodeClass) == null ? X : o)(n.schema);
|
|
4165
4166
|
n.atRoot && (n.atRoot = !1), n.atKey && (n.atKey = !1);
|
|
4166
4167
|
let l = r.offset, u = null;
|
|
4167
4168
|
for (let { start: a, value: o } of r.items) {
|
|
4168
|
-
let s =
|
|
4169
|
+
let s = Wa(a, {
|
|
4169
4170
|
indicator: "seq-item-ind",
|
|
4170
4171
|
next: o,
|
|
4171
4172
|
offset: l,
|
|
@@ -4181,7 +4182,7 @@ function Ya({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
|
4181
4182
|
}
|
|
4182
4183
|
}
|
|
4183
4184
|
let d = o ? e(n, o, s, i) : t(n, s.end, a, null, s, i);
|
|
4184
|
-
n.schema.compat &&
|
|
4185
|
+
n.schema.compat && Ka(r.indent, o, i), l = d.range[2], c.items.push(d);
|
|
4185
4186
|
}
|
|
4186
4187
|
return c.range = [
|
|
4187
4188
|
r.offset,
|
|
@@ -4190,7 +4191,7 @@ function Ya({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
|
4190
4191
|
], c;
|
|
4191
4192
|
}
|
|
4192
4193
|
// node_modules/yaml/browser/dist/compose/resolve-end.js
|
|
4193
|
-
function
|
|
4194
|
+
function Za(e, t, n, r) {
|
|
4194
4195
|
let i = "";
|
|
4195
4196
|
if (e) {
|
|
4196
4197
|
let a = !1, o = "";
|
|
@@ -4220,8 +4221,8 @@ function Xa(e, t, n, r) {
|
|
|
4220
4221
|
};
|
|
4221
4222
|
}
|
|
4222
4223
|
// node_modules/yaml/browser/dist/compose/resolve-flow-collection.js
|
|
4223
|
-
var
|
|
4224
|
-
function
|
|
4224
|
+
var Qa = "Block collections are not allowed within flow collections", $a = (e) => e && (e.type === "block-map" || e.type === "block-seq");
|
|
4225
|
+
function eo({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
4225
4226
|
var o;
|
|
4226
4227
|
let s = r.start.source === "{", c = s ? "flow map" : "flow sequence", l = new ((o = a == null ? void 0 : a.nodeClass) == null ? s ? Y : X : o)(n.schema);
|
|
4227
4228
|
l.flow = !0;
|
|
@@ -4229,7 +4230,7 @@ function $a({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
|
4229
4230
|
u && (n.atRoot = !1), n.atKey && (n.atKey = !1);
|
|
4230
4231
|
let d = r.offset + r.start.source.length;
|
|
4231
4232
|
for (let a = 0; a < r.items.length; ++a) {
|
|
4232
|
-
let o = r.items[a], { start: u, key: m, sep: h, value: g } = o, _ =
|
|
4233
|
+
let o = r.items[a], { start: u, key: m, sep: h, value: g } = o, _ = Wa(u, {
|
|
4233
4234
|
flow: c,
|
|
4234
4235
|
indicator: "explicit-key-ind",
|
|
4235
4236
|
next: m == null ? h == null ? void 0 : h[0] : m,
|
|
@@ -4243,7 +4244,7 @@ function $a({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
|
4243
4244
|
a === 0 && _.comma ? i(_.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${c}`) : a < r.items.length - 1 && i(_.start, "UNEXPECTED_TOKEN", `Unexpected empty item in ${c}`), _.comment && (l.comment ? l.comment += "\n" + _.comment : l.comment = _.comment), d = _.end;
|
|
4244
4245
|
continue;
|
|
4245
4246
|
}
|
|
4246
|
-
!s && n.options.strict &&
|
|
4247
|
+
!s && n.options.strict && Ga(m) && i(m, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
|
|
4247
4248
|
}
|
|
4248
4249
|
if (a === 0) _.comma && i(_.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${c}`);
|
|
4249
4250
|
else if (_.comma || i(_.start, "MISSING_CHAR", `Missing , between ${c} items`), _.comment) {
|
|
@@ -4264,12 +4265,12 @@ function $a({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
|
4264
4265
|
}
|
|
4265
4266
|
if (!s && !h && !_.found) {
|
|
4266
4267
|
let r = g ? e(n, g, _, i) : t(n, _.end, h, null, _, i);
|
|
4267
|
-
l.items.push(r), d = r.range[2],
|
|
4268
|
+
l.items.push(r), d = r.range[2], $a(g) && i(r.range, "BLOCK_IN_FLOW", Qa);
|
|
4268
4269
|
} else {
|
|
4269
4270
|
n.atKey = !0;
|
|
4270
4271
|
let a = _.end, f = m ? e(n, m, _, i) : t(n, a, u, null, _, i);
|
|
4271
|
-
|
|
4272
|
-
let v =
|
|
4272
|
+
$a(m) && i(f.range, "BLOCK_IN_FLOW", Qa), n.atKey = !1;
|
|
4273
|
+
let v = Wa(h == null ? [] : h, {
|
|
4273
4274
|
flow: c,
|
|
4274
4275
|
indicator: "map-value-ind",
|
|
4275
4276
|
next: g,
|
|
@@ -4294,11 +4295,11 @@ function $a({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
|
4294
4295
|
"source" in g && ((p = g.source) == null ? void 0 : p[0]) === ":" ? i(g, "MISSING_CHAR", `Missing space after : in ${c}`) : i(v.start, "MISSING_CHAR", `Missing , or : between ${c} items`);
|
|
4295
4296
|
}
|
|
4296
4297
|
let y = g ? e(n, g, v, i) : v.found ? t(n, v.end, h, null, v, i) : null;
|
|
4297
|
-
y ?
|
|
4298
|
+
y ? $a(g) && i(y.range, "BLOCK_IN_FLOW", Qa) : v.comment && (f.comment ? f.comment += "\n" + v.comment : f.comment = v.comment);
|
|
4298
4299
|
let b = new q(f, y);
|
|
4299
4300
|
if (n.options.keepSourceTokens && (b.srcToken = o), s) {
|
|
4300
4301
|
let e = l;
|
|
4301
|
-
|
|
4302
|
+
qa(n, e.items, f) && i(a, "DUPLICATE_KEY", "Map keys must be unique"), e.items.push(b);
|
|
4302
4303
|
} else {
|
|
4303
4304
|
let e = new Y(n.schema);
|
|
4304
4305
|
e.flow = !0, e.items.push(b);
|
|
@@ -4319,7 +4320,7 @@ function $a({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
|
4319
4320
|
i(d, u ? "MISSING_CHAR" : "BAD_INDENT", t), h && h.source.length !== 1 && g.unshift(h);
|
|
4320
4321
|
}
|
|
4321
4322
|
if (g.length > 0) {
|
|
4322
|
-
let e =
|
|
4323
|
+
let e = Za(g, _, n.options.strict, i);
|
|
4323
4324
|
e.comment && (l.comment ? l.comment += "\n" + e.comment : l.comment = e.comment), l.range = [
|
|
4324
4325
|
r.offset,
|
|
4325
4326
|
_,
|
|
@@ -4333,11 +4334,11 @@ function $a({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
|
4333
4334
|
return l;
|
|
4334
4335
|
}
|
|
4335
4336
|
// node_modules/yaml/browser/dist/compose/compose-collection.js
|
|
4336
|
-
function
|
|
4337
|
-
let o = n.type === "block-map" ?
|
|
4337
|
+
function to(e, t, n, r, i, a) {
|
|
4338
|
+
let o = n.type === "block-map" ? Ya(e, t, n, r, a) : n.type === "block-seq" ? Xa(e, t, n, r, a) : eo(e, t, n, r, a), s = o.constructor;
|
|
4338
4339
|
return i === "!" || i === s.tagName ? (o.tag = s.tagName, o) : (i && (o.tag = i), o);
|
|
4339
4340
|
}
|
|
4340
|
-
function
|
|
4341
|
+
function no(e, t, n, r, i) {
|
|
4341
4342
|
var a, o;
|
|
4342
4343
|
let s = r.tag, c = s ? t.directives.tagName(s.source, (e) => i(s, "TAG_RESOLVE_FAILED", e)) : null;
|
|
4343
4344
|
if (n.type === "block-seq") {
|
|
@@ -4345,7 +4346,7 @@ function to(e, t, n, r, i) {
|
|
|
4345
4346
|
n && (!t || t.offset < n.offset) && i(n, "MISSING_CHAR", "Missing newline after block sequence props");
|
|
4346
4347
|
}
|
|
4347
4348
|
let l = n.type === "block-map" ? "map" : n.type === "block-seq" ? "seq" : n.start.source === "{" ? "map" : "seq";
|
|
4348
|
-
if (!s || !c || c === "!" || c === Y.tagName && l === "map" || c === X.tagName && l === "seq") return
|
|
4349
|
+
if (!s || !c || c === "!" || c === Y.tagName && l === "map" || c === X.tagName && l === "seq") return to(e, t, n, i, c);
|
|
4349
4350
|
let u = t.schema.tags.find((e) => e.tag === c && e.collection === l);
|
|
4350
4351
|
if (!u) {
|
|
4351
4352
|
let r = t.schema.knownTags[c];
|
|
@@ -4355,15 +4356,15 @@ function to(e, t, n, r, i) {
|
|
|
4355
4356
|
var d;
|
|
4356
4357
|
i(s, "BAD_COLLECTION_TYPE", `${r.tag} used for ${l} collection, but expects ${(d = r.collection) == null ? "scalar" : d}`, !0);
|
|
4357
4358
|
} else i(s, "TAG_RESOLVE_FAILED", `Unresolved tag: ${c}`, !0);
|
|
4358
|
-
return
|
|
4359
|
+
return to(e, t, n, i, c);
|
|
4359
4360
|
}
|
|
4360
4361
|
}
|
|
4361
|
-
let f =
|
|
4362
|
+
let f = to(e, t, n, i, c, u), p = (a = (o = u.resolve) == null ? void 0 : o.call(u, f, (e) => i(s, "TAG_RESOLVE_FAILED", e), t.options)) == null ? f : a, m = L(p) ? p : new U(p);
|
|
4362
4363
|
return m.range = f.range, m.tag = c, u != null && u.format && (m.format = u.format), m;
|
|
4363
4364
|
}
|
|
4364
4365
|
// node_modules/yaml/browser/dist/compose/resolve-block-scalar.js
|
|
4365
|
-
function
|
|
4366
|
-
let r = t.offset, i =
|
|
4366
|
+
function ro(e, t, n) {
|
|
4367
|
+
let r = t.offset, i = io(t, e.options.strict, n);
|
|
4367
4368
|
if (!i) return {
|
|
4368
4369
|
value: "",
|
|
4369
4370
|
type: null,
|
|
@@ -4374,7 +4375,7 @@ function no(e, t, n) {
|
|
|
4374
4375
|
r
|
|
4375
4376
|
]
|
|
4376
4377
|
};
|
|
4377
|
-
let a = i.mode === ">" ? U.BLOCK_FOLDED : U.BLOCK_LITERAL, o = t.source ?
|
|
4378
|
+
let a = i.mode === ">" ? U.BLOCK_FOLDED : U.BLOCK_LITERAL, o = t.source ? ao(t.source) : [], s = o.length;
|
|
4378
4379
|
for (let e = o.length - 1; e >= 0; --e) {
|
|
4379
4380
|
let t = o[e][1];
|
|
4380
4381
|
if (t === "" || t === "\r") s = e;
|
|
@@ -4437,7 +4438,7 @@ function no(e, t, n) {
|
|
|
4437
4438
|
]
|
|
4438
4439
|
};
|
|
4439
4440
|
}
|
|
4440
|
-
function
|
|
4441
|
+
function io({ offset: e, props: t }, n, r) {
|
|
4441
4442
|
/* istanbul ignore if should not happen */
|
|
4442
4443
|
if (t[0].type !== "block-scalar-header") return r(t[0], "IMPOSSIBLE", "Block scalar header not found"), null;
|
|
4443
4444
|
let { source: i } = t[0], a = i[0], o = 0, s = "", c = -1;
|
|
@@ -4480,23 +4481,23 @@ function ro({ offset: e, props: t }, n, r) {
|
|
|
4480
4481
|
length: d
|
|
4481
4482
|
};
|
|
4482
4483
|
}
|
|
4483
|
-
function
|
|
4484
|
+
function ao(e) {
|
|
4484
4485
|
let t = e.split(/\n( *)/), n = t[0], r = n.match(/^( *)/), i = [r != null && r[1] ? [r[1], n.slice(r[1].length)] : ["", n]];
|
|
4485
4486
|
for (let e = 1; e < t.length; e += 2) i.push([t[e], t[e + 1]]);
|
|
4486
4487
|
return i;
|
|
4487
4488
|
}
|
|
4488
4489
|
// node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js
|
|
4489
|
-
function
|
|
4490
|
+
function oo(e, t, n) {
|
|
4490
4491
|
let { offset: r, type: i, source: a, end: o } = e, s, c, l = (e, t, i) => n(r + e, t, i);
|
|
4491
4492
|
switch (i) {
|
|
4492
4493
|
case "scalar":
|
|
4493
|
-
s = U.PLAIN, c =
|
|
4494
|
+
s = U.PLAIN, c = so(a, l);
|
|
4494
4495
|
break;
|
|
4495
4496
|
case "single-quoted-scalar":
|
|
4496
|
-
s = U.QUOTE_SINGLE, c =
|
|
4497
|
+
s = U.QUOTE_SINGLE, c = co(a, l);
|
|
4497
4498
|
break;
|
|
4498
4499
|
case "double-quoted-scalar":
|
|
4499
|
-
s = U.QUOTE_DOUBLE, c =
|
|
4500
|
+
s = U.QUOTE_DOUBLE, c = uo(a, l);
|
|
4500
4501
|
break;
|
|
4501
4502
|
/* istanbul ignore next should not happen */
|
|
4502
4503
|
default: return n(e, "UNEXPECTED_TOKEN", `Expected a flow scalar value, but found: ${i}`), {
|
|
@@ -4510,7 +4511,7 @@ function ao(e, t, n) {
|
|
|
4510
4511
|
]
|
|
4511
4512
|
};
|
|
4512
4513
|
}
|
|
4513
|
-
let u = r + a.length, d =
|
|
4514
|
+
let u = r + a.length, d = Za(o, u, t, n);
|
|
4514
4515
|
return {
|
|
4515
4516
|
value: c,
|
|
4516
4517
|
type: s,
|
|
@@ -4522,7 +4523,7 @@ function ao(e, t, n) {
|
|
|
4522
4523
|
]
|
|
4523
4524
|
};
|
|
4524
4525
|
}
|
|
4525
|
-
function
|
|
4526
|
+
function so(e, t) {
|
|
4526
4527
|
let n = "";
|
|
4527
4528
|
switch (e[0]) {
|
|
4528
4529
|
/* istanbul ignore next should not happen */
|
|
@@ -4542,12 +4543,12 @@ function oo(e, t) {
|
|
|
4542
4543
|
case "@":
|
|
4543
4544
|
case "`": n = `reserved character ${e[0]}`;
|
|
4544
4545
|
}
|
|
4545
|
-
return n && t(0, "BAD_SCALAR_START", `Plain value cannot start with ${n}`),
|
|
4546
|
+
return n && t(0, "BAD_SCALAR_START", `Plain value cannot start with ${n}`), lo(e);
|
|
4546
4547
|
}
|
|
4547
|
-
function
|
|
4548
|
-
return (e[e.length - 1] !== "'" || e.length === 1) && t(e.length, "MISSING_CHAR", "Missing closing 'quote"),
|
|
4548
|
+
function co(e, t) {
|
|
4549
|
+
return (e[e.length - 1] !== "'" || e.length === 1) && t(e.length, "MISSING_CHAR", "Missing closing 'quote"), lo(e.slice(1, -1)).replace(/''/g, "'");
|
|
4549
4550
|
}
|
|
4550
|
-
function
|
|
4551
|
+
function lo(e) {
|
|
4551
4552
|
var t;
|
|
4552
4553
|
let n = RegExp("(.*?)\\r?\\n", "sy"), r = n.exec(e);
|
|
4553
4554
|
if (!r) return e;
|
|
@@ -4565,22 +4566,22 @@ function co(e) {
|
|
|
4565
4566
|
let l = RegExp("[ \\t]*(.*)", "sy");
|
|
4566
4567
|
return l.lastIndex = c, r = l.exec(e), o + s + ((t = r == null ? void 0 : r[1]) == null ? "" : t);
|
|
4567
4568
|
}
|
|
4568
|
-
function
|
|
4569
|
+
function uo(e, t) {
|
|
4569
4570
|
let n = "";
|
|
4570
4571
|
for (let r = 1; r < e.length - 1; ++r) {
|
|
4571
4572
|
let i = e[r];
|
|
4572
4573
|
if (i !== "\r" || e[r + 1] !== "\n") {
|
|
4573
4574
|
if (i === "\n") {
|
|
4574
|
-
let { fold: t, offset: i } =
|
|
4575
|
+
let { fold: t, offset: i } = fo(e, r);
|
|
4575
4576
|
n += t, r = i;
|
|
4576
4577
|
} else if (i === "\\") {
|
|
4577
|
-
let i = e[++r], a =
|
|
4578
|
+
let i = e[++r], a = po[i];
|
|
4578
4579
|
if (a) n += a;
|
|
4579
4580
|
else if (i === "\n") for (i = e[r + 1]; i === " " || i === " ";) i = e[++r + 1];
|
|
4580
4581
|
else if (i === "\r" && e[r + 1] === "\n") for (i = e[++r + 1]; i === " " || i === " ";) i = e[++r + 1];
|
|
4581
4582
|
else if (i === "x" || i === "u" || i === "U") {
|
|
4582
4583
|
let a = i === "x" ? 2 : i === "u" ? 4 : 8;
|
|
4583
|
-
n +=
|
|
4584
|
+
n += mo(e, r + 1, a, t), r += a;
|
|
4584
4585
|
} else {
|
|
4585
4586
|
let i = e.substr(r - 1, 2);
|
|
4586
4587
|
t(r - 1, "BAD_DQ_ESCAPE", `Invalid escape sequence ${i}`), n += i;
|
|
@@ -4594,7 +4595,7 @@ function lo(e, t) {
|
|
|
4594
4595
|
}
|
|
4595
4596
|
return (e[e.length - 1] !== "\"" || e.length === 1) && t(e.length, "MISSING_CHAR", "Missing closing \"quote"), n;
|
|
4596
4597
|
}
|
|
4597
|
-
function
|
|
4598
|
+
function fo(e, t) {
|
|
4598
4599
|
let n = "", r = e[t + 1];
|
|
4599
4600
|
for (; (r === " " || r === " " || r === "\n" || r === "\r") && (r !== "\r" || e[t + 2] === "\n");) r === "\n" && (n += "\n"), t += 1, r = e[t + 1];
|
|
4600
4601
|
return n || (n = " "), {
|
|
@@ -4602,7 +4603,7 @@ function uo(e, t) {
|
|
|
4602
4603
|
offset: t
|
|
4603
4604
|
};
|
|
4604
4605
|
}
|
|
4605
|
-
var
|
|
4606
|
+
var po = {
|
|
4606
4607
|
0: "\0",
|
|
4607
4608
|
a: "\x07",
|
|
4608
4609
|
b: "\b",
|
|
@@ -4622,7 +4623,7 @@ var fo = {
|
|
|
4622
4623
|
"\\": "\\",
|
|
4623
4624
|
" ": " "
|
|
4624
4625
|
};
|
|
4625
|
-
function
|
|
4626
|
+
function mo(e, t, n, r) {
|
|
4626
4627
|
let i = e.substr(t, n), a = i.length === n && /^[0-9a-fA-F]+$/.test(i) ? parseInt(i, 16) : NaN;
|
|
4627
4628
|
try {
|
|
4628
4629
|
return String.fromCodePoint(a);
|
|
@@ -4632,9 +4633,9 @@ function po(e, t, n, r) {
|
|
|
4632
4633
|
}
|
|
4633
4634
|
}
|
|
4634
4635
|
// node_modules/yaml/browser/dist/compose/compose-scalar.js
|
|
4635
|
-
function
|
|
4636
|
-
let { value: i, type: a, comment: o, range: s } = t.type === "block-scalar" ?
|
|
4637
|
-
l = e.options.stringKeys && e.atKey ? e.schema[M] : c ?
|
|
4636
|
+
function ho(e, t, n, r) {
|
|
4637
|
+
let { value: i, type: a, comment: o, range: s } = t.type === "block-scalar" ? ro(e, t, r) : oo(t, e.options.strict, r), c = n ? e.directives.tagName(n.source, (e) => r(n, "TAG_RESOLVE_FAILED", e)) : null, l;
|
|
4638
|
+
l = e.options.stringKeys && e.atKey ? e.schema[M] : c ? go(e.schema, i, c, n, r) : t.type === "scalar" ? _o(e, i, t, r) : e.schema[M];
|
|
4638
4639
|
let u;
|
|
4639
4640
|
try {
|
|
4640
4641
|
let a = l.resolve(i, (e) => r(n == null ? t : n, "TAG_RESOLVE_FAILED", e), e.options);
|
|
@@ -4645,7 +4646,7 @@ function mo(e, t, n, r) {
|
|
|
4645
4646
|
}
|
|
4646
4647
|
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;
|
|
4647
4648
|
}
|
|
4648
|
-
function
|
|
4649
|
+
function go(e, t, n, r, i) {
|
|
4649
4650
|
var a;
|
|
4650
4651
|
if (n === "!") return e[M];
|
|
4651
4652
|
let o = [];
|
|
@@ -4660,7 +4661,7 @@ function ho(e, t, n, r, i) {
|
|
|
4660
4661
|
test: void 0
|
|
4661
4662
|
})), s) : (i(r, "TAG_RESOLVE_FAILED", `Unresolved tag: ${n}`, n !== "tag:yaml.org,2002:str"), e[M]);
|
|
4662
4663
|
}
|
|
4663
|
-
function
|
|
4664
|
+
function _o({ atKey: e, directives: t, schema: n }, r, i, a) {
|
|
4664
4665
|
let o = n.tags.find((t) => {
|
|
4665
4666
|
var n;
|
|
4666
4667
|
return (t.default === !0 || e && t.default === "key") && ((n = t.test) == null ? void 0 : n.test(r));
|
|
@@ -4676,7 +4677,7 @@ function go({ atKey: e, directives: t, schema: n }, r, i, a) {
|
|
|
4676
4677
|
return o;
|
|
4677
4678
|
}
|
|
4678
4679
|
// node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js
|
|
4679
|
-
function
|
|
4680
|
+
function vo(e, t, n) {
|
|
4680
4681
|
if (t) {
|
|
4681
4682
|
n != null || (n = t.length);
|
|
4682
4683
|
for (let r = n - 1; r >= 0; --r) {
|
|
@@ -4695,48 +4696,48 @@ function _o(e, t, n) {
|
|
|
4695
4696
|
return e;
|
|
4696
4697
|
}
|
|
4697
4698
|
// node_modules/yaml/browser/dist/compose/compose-node.js
|
|
4698
|
-
var
|
|
4699
|
-
composeNode:
|
|
4700
|
-
composeEmptyNode:
|
|
4699
|
+
var yo = {
|
|
4700
|
+
composeNode: bo,
|
|
4701
|
+
composeEmptyNode: xo
|
|
4701
4702
|
};
|
|
4702
|
-
function
|
|
4703
|
+
function bo(e, t, n, r) {
|
|
4703
4704
|
let i = e.atKey, { spaceBefore: a, comment: o, anchor: s, tag: c } = n, l, u = !0;
|
|
4704
4705
|
switch (t.type) {
|
|
4705
4706
|
case "alias":
|
|
4706
|
-
l =
|
|
4707
|
+
l = So(e, t, r), (s || c) && r(t, "ALIAS_PROPS", "An alias node must not specify any properties");
|
|
4707
4708
|
break;
|
|
4708
4709
|
case "scalar":
|
|
4709
4710
|
case "single-quoted-scalar":
|
|
4710
4711
|
case "double-quoted-scalar":
|
|
4711
4712
|
case "block-scalar":
|
|
4712
|
-
l =
|
|
4713
|
+
l = ho(e, t, c, r), s && (l.anchor = s.source.substring(1));
|
|
4713
4714
|
break;
|
|
4714
4715
|
case "block-map":
|
|
4715
4716
|
case "block-seq":
|
|
4716
4717
|
case "flow-collection":
|
|
4717
4718
|
try {
|
|
4718
|
-
l =
|
|
4719
|
+
l = no(yo, e, t, n, r), s && (l.anchor = s.source.substring(1));
|
|
4719
4720
|
} catch (e) {
|
|
4720
4721
|
r(t, "RESOURCE_EXHAUSTION", e instanceof Error ? e.message : String(e));
|
|
4721
4722
|
}
|
|
4722
4723
|
break;
|
|
4723
4724
|
default: r(t, "UNEXPECTED_TOKEN", t.type === "error" ? t.message : `Unsupported token (type: ${t.type})`), u = !1;
|
|
4724
4725
|
}
|
|
4725
|
-
return l != null || (l =
|
|
4726
|
+
return l != null || (l = xo(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 && (!F(l) || typeof l.value != "string" || l.tag && l.tag !== "tag:yaml.org,2002:str") && r(c == null ? t : c, "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;
|
|
4726
4727
|
}
|
|
4727
|
-
function
|
|
4728
|
-
let u =
|
|
4728
|
+
function xo(e, t, n, r, { spaceBefore: i, comment: a, anchor: o, tag: s, end: c }, l) {
|
|
4729
|
+
let u = ho(e, {
|
|
4729
4730
|
type: "scalar",
|
|
4730
|
-
offset:
|
|
4731
|
+
offset: vo(t, n, r),
|
|
4731
4732
|
indent: -1,
|
|
4732
4733
|
source: ""
|
|
4733
4734
|
}, s, l);
|
|
4734
4735
|
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;
|
|
4735
4736
|
}
|
|
4736
|
-
function
|
|
4737
|
-
let a = new
|
|
4737
|
+
function So({ options: e }, { offset: t, source: n, end: r }, i) {
|
|
4738
|
+
let a = new Yr(n.substring(1));
|
|
4738
4739
|
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);
|
|
4739
|
-
let o = t + n.length, s =
|
|
4740
|
+
let o = t + n.length, s = Za(r, o, e.strict, i);
|
|
4740
4741
|
return a.range = [
|
|
4741
4742
|
t,
|
|
4742
4743
|
o,
|
|
@@ -4744,14 +4745,14 @@ function xo({ options: e }, { offset: t, source: n, end: r }, i) {
|
|
|
4744
4745
|
], s.comment && (a.comment = s.comment), a;
|
|
4745
4746
|
}
|
|
4746
4747
|
// node_modules/yaml/browser/dist/compose/compose-doc.js
|
|
4747
|
-
function
|
|
4748
|
-
let s = new
|
|
4748
|
+
function Co(e, t, { offset: n, start: r, value: i, end: a }, o) {
|
|
4749
|
+
let s = new Ra(void 0, Object.assign({ _directives: t }, e)), c = {
|
|
4749
4750
|
atKey: !1,
|
|
4750
4751
|
atRoot: !0,
|
|
4751
4752
|
directives: s.directives,
|
|
4752
4753
|
options: s.options,
|
|
4753
4754
|
schema: s.schema
|
|
4754
|
-
}, l =
|
|
4755
|
+
}, l = Wa(r, {
|
|
4755
4756
|
indicator: "doc-start",
|
|
4756
4757
|
next: i == null ? a == null ? void 0 : a[0] : i,
|
|
4757
4758
|
offset: n,
|
|
@@ -4759,8 +4760,8 @@ function So(e, t, { offset: n, start: r, value: i, end: a }, o) {
|
|
|
4759
4760
|
parentIndent: 0,
|
|
4760
4761
|
startOnNewline: !0
|
|
4761
4762
|
});
|
|
4762
|
-
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 ?
|
|
4763
|
-
let u = s.contents.range[2], d =
|
|
4763
|
+
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 ? bo(c, i, l, o) : xo(c, l.end, r, null, l, o);
|
|
4764
|
+
let u = s.contents.range[2], d = Za(a, u, !1, o);
|
|
4764
4765
|
return d.comment && (s.comment = d.comment), s.range = [
|
|
4765
4766
|
n,
|
|
4766
4767
|
u,
|
|
@@ -4768,13 +4769,13 @@ function So(e, t, { offset: n, start: r, value: i, end: a }, o) {
|
|
|
4768
4769
|
], s;
|
|
4769
4770
|
}
|
|
4770
4771
|
// node_modules/yaml/browser/dist/compose/composer.js
|
|
4771
|
-
function
|
|
4772
|
+
function wo(e) {
|
|
4772
4773
|
if (typeof e == "number") return [e, e + 1];
|
|
4773
4774
|
if (Array.isArray(e)) return e.length === 2 ? e : [e[0], e[1]];
|
|
4774
4775
|
let { offset: t, source: n } = e;
|
|
4775
4776
|
return [t, t + (typeof n == "string" ? n.length : 1)];
|
|
4776
4777
|
}
|
|
4777
|
-
function
|
|
4778
|
+
function To(e) {
|
|
4778
4779
|
let t = "", n = !1, r = !1;
|
|
4779
4780
|
for (let a = 0; a < e.length; ++a) {
|
|
4780
4781
|
let o = e[a];
|
|
@@ -4794,15 +4795,15 @@ function wo(e) {
|
|
|
4794
4795
|
afterEmptyLine: r
|
|
4795
4796
|
};
|
|
4796
4797
|
}
|
|
4797
|
-
var
|
|
4798
|
+
var Eo = class {
|
|
4798
4799
|
constructor(e = {}) {
|
|
4799
4800
|
this.doc = null, this.atDirectives = !1, this.prelude = [], this.errors = [], this.warnings = [], this.onError = (e, t, n, r) => {
|
|
4800
|
-
let i =
|
|
4801
|
-
r ? this.warnings.push(new
|
|
4802
|
-
}, this.directives = new
|
|
4801
|
+
let i = wo(e);
|
|
4802
|
+
r ? this.warnings.push(new Ha(i, t, n)) : this.errors.push(new Va(i, t, n));
|
|
4803
|
+
}, this.directives = new Ur({ version: e.version || "1.2" }), this.options = e;
|
|
4803
4804
|
}
|
|
4804
4805
|
decorate(e, t) {
|
|
4805
|
-
let { comment: n, afterEmptyLine: r } =
|
|
4806
|
+
let { comment: n, afterEmptyLine: r } = To(this.prelude);
|
|
4806
4807
|
if (n) {
|
|
4807
4808
|
let i = e.contents;
|
|
4808
4809
|
if (t) e.comment = e.comment ? `${e.comment}\n${n}` : n;
|
|
@@ -4825,7 +4826,7 @@ var To = class {
|
|
|
4825
4826
|
}
|
|
4826
4827
|
streamInfo() {
|
|
4827
4828
|
return {
|
|
4828
|
-
comment:
|
|
4829
|
+
comment: To(this.prelude).comment,
|
|
4829
4830
|
directives: this.directives,
|
|
4830
4831
|
errors: this.errors,
|
|
4831
4832
|
warnings: this.warnings
|
|
@@ -4839,12 +4840,12 @@ var To = class {
|
|
|
4839
4840
|
switch (e.type) {
|
|
4840
4841
|
case "directive":
|
|
4841
4842
|
this.directives.add(e.source, (t, n, r) => {
|
|
4842
|
-
let i =
|
|
4843
|
+
let i = wo(e);
|
|
4843
4844
|
i[0] += t, this.onError(i, "BAD_DIRECTIVE", n, r);
|
|
4844
4845
|
}), this.prelude.push(e.source), this.atDirectives = !0;
|
|
4845
4846
|
break;
|
|
4846
4847
|
case "document": {
|
|
4847
|
-
let t =
|
|
4848
|
+
let t = Co(this.options, this.directives, e, this.onError);
|
|
4848
4849
|
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;
|
|
4849
4850
|
break;
|
|
4850
4851
|
}
|
|
@@ -4855,17 +4856,17 @@ var To = class {
|
|
|
4855
4856
|
this.prelude.push(e.source);
|
|
4856
4857
|
break;
|
|
4857
4858
|
case "error": {
|
|
4858
|
-
let t = e.source ? `${e.message}: ${JSON.stringify(e.source)}` : e.message, n = new
|
|
4859
|
+
let t = e.source ? `${e.message}: ${JSON.stringify(e.source)}` : e.message, n = new Va(wo(e), "UNEXPECTED_TOKEN", t);
|
|
4859
4860
|
this.atDirectives || !this.doc ? this.errors.push(n) : this.doc.errors.push(n);
|
|
4860
4861
|
break;
|
|
4861
4862
|
}
|
|
4862
4863
|
case "doc-end": {
|
|
4863
4864
|
if (!this.doc) {
|
|
4864
|
-
this.errors.push(new
|
|
4865
|
+
this.errors.push(new Va(wo(e), "UNEXPECTED_TOKEN", "Unexpected doc-end without preceding document"));
|
|
4865
4866
|
break;
|
|
4866
4867
|
}
|
|
4867
4868
|
this.doc.directives.docEnd = !0;
|
|
4868
|
-
let t =
|
|
4869
|
+
let t = Za(e.end, e.offset + e.source.length, this.doc.options.strict, this.onError);
|
|
4869
4870
|
if (this.decorate(this.doc, !0), t.comment) {
|
|
4870
4871
|
let e = this.doc.comment;
|
|
4871
4872
|
this.doc.comment = e ? `${e}\n${t.comment}` : t.comment;
|
|
@@ -4873,13 +4874,13 @@ var To = class {
|
|
|
4873
4874
|
this.doc.range[2] = t.offset;
|
|
4874
4875
|
break;
|
|
4875
4876
|
}
|
|
4876
|
-
default: this.errors.push(new
|
|
4877
|
+
default: this.errors.push(new Va(wo(e), "UNEXPECTED_TOKEN", `Unsupported token ${e.type}`));
|
|
4877
4878
|
}
|
|
4878
4879
|
}
|
|
4879
4880
|
*end(e = !1, t = -1) {
|
|
4880
4881
|
if (this.doc) this.decorate(this.doc, !0), yield this.doc, this.doc = null;
|
|
4881
4882
|
else if (e) {
|
|
4882
|
-
let e = new
|
|
4883
|
+
let e = new Ra(void 0, Object.assign({ _directives: this.directives }, this.options));
|
|
4883
4884
|
this.atDirectives && this.onError(t, "MISSING_CHAR", "Missing directives-end indicator line"), e.range = [
|
|
4884
4885
|
0,
|
|
4885
4886
|
t,
|
|
@@ -4887,14 +4888,14 @@ var To = class {
|
|
|
4887
4888
|
], this.decorate(e, !1), yield e;
|
|
4888
4889
|
}
|
|
4889
4890
|
}
|
|
4890
|
-
},
|
|
4891
|
-
function
|
|
4891
|
+
}, Do = Symbol("break visit"), Oo = Symbol("skip children"), ko = Symbol("remove item");
|
|
4892
|
+
function Ao(e, t) {
|
|
4892
4893
|
"type" in e && e.type === "document" && (e = {
|
|
4893
4894
|
start: e.start,
|
|
4894
4895
|
value: e.value
|
|
4895
|
-
}),
|
|
4896
|
+
}), jo(Object.freeze([]), e, t);
|
|
4896
4897
|
}
|
|
4897
|
-
|
|
4898
|
+
Ao.BREAK = Do, Ao.SKIP = Oo, Ao.REMOVE = ko, Ao.itemAtPath = (e, t) => {
|
|
4898
4899
|
let n = e;
|
|
4899
4900
|
for (let [e, r] of t) {
|
|
4900
4901
|
let t = n == null ? void 0 : n[e];
|
|
@@ -4902,29 +4903,29 @@ ko.BREAK = Eo, ko.SKIP = Do, ko.REMOVE = Oo, ko.itemAtPath = (e, t) => {
|
|
|
4902
4903
|
else return;
|
|
4903
4904
|
}
|
|
4904
4905
|
return n;
|
|
4905
|
-
},
|
|
4906
|
-
let n =
|
|
4906
|
+
}, Ao.parentCollection = (e, t) => {
|
|
4907
|
+
let n = Ao.itemAtPath(e, t.slice(0, -1)), r = t[t.length - 1][0], i = n == null ? void 0 : n[r];
|
|
4907
4908
|
if (i && "items" in i) return i;
|
|
4908
4909
|
throw Error("Parent collection not found");
|
|
4909
4910
|
};
|
|
4910
|
-
function
|
|
4911
|
+
function jo(e, t, n) {
|
|
4911
4912
|
let r = n(t, e);
|
|
4912
4913
|
if (typeof r == "symbol") return r;
|
|
4913
4914
|
for (let i of ["key", "value"]) {
|
|
4914
4915
|
let a = t[i];
|
|
4915
4916
|
if (a && "items" in a) {
|
|
4916
4917
|
for (let t = 0; t < a.items.length; ++t) {
|
|
4917
|
-
let r =
|
|
4918
|
+
let r = jo(Object.freeze(e.concat([[i, t]])), a.items[t], n);
|
|
4918
4919
|
if (typeof r == "number") t = r - 1;
|
|
4919
|
-
else if (r ===
|
|
4920
|
-
else r ===
|
|
4920
|
+
else if (r === Do) return Do;
|
|
4921
|
+
else r === ko && (a.items.splice(t, 1), --t);
|
|
4921
4922
|
}
|
|
4922
4923
|
typeof r == "function" && i === "key" && (r = r(t, e));
|
|
4923
4924
|
}
|
|
4924
4925
|
}
|
|
4925
4926
|
return typeof r == "function" ? r(t, e) : r;
|
|
4926
4927
|
}
|
|
4927
|
-
function
|
|
4928
|
+
function Mo(e) {
|
|
4928
4929
|
switch (e) {
|
|
4929
4930
|
case "": return "byte-order-mark";
|
|
4930
4931
|
case "": return "doc-mode";
|
|
@@ -4970,7 +4971,7 @@ function Q(e) {
|
|
|
4970
4971
|
default: return !1;
|
|
4971
4972
|
}
|
|
4972
4973
|
}
|
|
4973
|
-
var
|
|
4974
|
+
var No = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), Po = /* @__PURE__ */ new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"), Fo = /* @__PURE__ */ new Set(",[]{}"), Io = /* @__PURE__ */ new Set(" ,[]{}\n\r "), Lo = (e) => !e || Io.has(e), Ro = class {
|
|
4974
4975
|
constructor() {
|
|
4975
4976
|
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;
|
|
4976
4977
|
}
|
|
@@ -5092,7 +5093,7 @@ var Mo = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), No = /* @__PURE__ */
|
|
|
5092
5093
|
case "[": return yield* this.pushCount(1), this.flowKey = !1, this.flowLevel = 1, "flow";
|
|
5093
5094
|
case "}":
|
|
5094
5095
|
case "]": return yield* this.pushCount(1), "doc";
|
|
5095
|
-
case "*": return yield* this.pushUntil(
|
|
5096
|
+
case "*": return yield* this.pushUntil(Lo), "doc";
|
|
5096
5097
|
case "\"":
|
|
5097
5098
|
case "'": return yield* this.parseQuotedScalar();
|
|
5098
5099
|
case "|":
|
|
@@ -5117,7 +5118,7 @@ var Mo = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), No = /* @__PURE__ */
|
|
|
5117
5118
|
case "[": return yield* this.pushCount(1), this.flowKey = !1, this.flowLevel += 1, "flow";
|
|
5118
5119
|
case "}":
|
|
5119
5120
|
case "]": return yield* this.pushCount(1), this.flowKey = !0, --this.flowLevel, this.flowLevel ? "flow" : "doc";
|
|
5120
|
-
case "*": return yield* this.pushUntil(
|
|
5121
|
+
case "*": return yield* this.pushUntil(Lo), "flow";
|
|
5121
5122
|
case "\"":
|
|
5122
5123
|
case "'": return this.flowKey = !0, yield* this.parseQuotedScalar();
|
|
5123
5124
|
case ":": {
|
|
@@ -5210,18 +5211,18 @@ var Mo = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), No = /* @__PURE__ */
|
|
|
5210
5211
|
let e = this.flowLevel > 0, t = this.pos - 1, n = this.pos - 1, r;
|
|
5211
5212
|
for (; r = this.buffer[++n];) if (r === ":") {
|
|
5212
5213
|
let r = this.buffer[n + 1];
|
|
5213
|
-
if (Q(r) || e &&
|
|
5214
|
+
if (Q(r) || e && Fo.has(r)) break;
|
|
5214
5215
|
t = n;
|
|
5215
5216
|
} else if (Q(r)) {
|
|
5216
5217
|
let i = this.buffer[n + 1];
|
|
5217
|
-
if (r === "\r" && (i === "\n" ? (n += 1, r = "\n", i = this.buffer[n + 1]) : t = n), i === "#" || e &&
|
|
5218
|
+
if (r === "\r" && (i === "\n" ? (n += 1, r = "\n", i = this.buffer[n + 1]) : t = n), i === "#" || e && Fo.has(i)) break;
|
|
5218
5219
|
if (r === "\n") {
|
|
5219
5220
|
let e = this.continueScalar(n + 1);
|
|
5220
5221
|
if (e === -1) break;
|
|
5221
5222
|
n = Math.max(n, e - 2);
|
|
5222
5223
|
}
|
|
5223
5224
|
} else {
|
|
5224
|
-
if (e &&
|
|
5225
|
+
if (e && Fo.has(r)) break;
|
|
5225
5226
|
t = n;
|
|
5226
5227
|
}
|
|
5227
5228
|
return !r && !this.atEnd ? this.setNext("plain-scalar") : (yield "", yield* this.pushToIndex(t + 1, !0), e ? "flow" : "doc");
|
|
@@ -5241,13 +5242,13 @@ var Mo = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), No = /* @__PURE__ */
|
|
|
5241
5242
|
e += yield* this.pushTag(), e += yield* this.pushSpaces(!0);
|
|
5242
5243
|
continue loop;
|
|
5243
5244
|
case "&":
|
|
5244
|
-
e += yield* this.pushUntil(
|
|
5245
|
+
e += yield* this.pushUntil(Lo), e += yield* this.pushSpaces(!0);
|
|
5245
5246
|
continue loop;
|
|
5246
5247
|
case "-":
|
|
5247
5248
|
case "?":
|
|
5248
5249
|
case ":": {
|
|
5249
5250
|
let t = this.flowLevel > 0, n = this.charAt(1);
|
|
5250
|
-
if (Q(n) || t &&
|
|
5251
|
+
if (Q(n) || t && Fo.has(n)) {
|
|
5251
5252
|
t ? this.flowKey && (this.flowKey = !1) : this.indentNext = this.indentValue + 1, e += yield* this.pushCount(1), e += yield* this.pushSpaces(!0);
|
|
5252
5253
|
continue loop;
|
|
5253
5254
|
}
|
|
@@ -5265,8 +5266,8 @@ var Mo = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), No = /* @__PURE__ */
|
|
|
5265
5266
|
}
|
|
5266
5267
|
{
|
|
5267
5268
|
let e = this.pos + 1, t = this.buffer[e];
|
|
5268
|
-
for (; t;) if (
|
|
5269
|
-
else if (t === "%" &&
|
|
5269
|
+
for (; t;) if (Po.has(t)) t = this.buffer[++e];
|
|
5270
|
+
else if (t === "%" && No.has(this.buffer[e + 1]) && No.has(this.buffer[e + 2])) t = this.buffer[e += 3];
|
|
5270
5271
|
else break;
|
|
5271
5272
|
return yield* this.pushToIndex(e, !1);
|
|
5272
5273
|
}
|
|
@@ -5288,7 +5289,7 @@ var Mo = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), No = /* @__PURE__ */
|
|
|
5288
5289
|
for (; !e(n);) n = this.buffer[++t];
|
|
5289
5290
|
return yield* this.pushToIndex(t, !1);
|
|
5290
5291
|
}
|
|
5291
|
-
},
|
|
5292
|
+
}, zo = class {
|
|
5292
5293
|
constructor() {
|
|
5293
5294
|
this.lineStarts = [], this.addNewLine = (e) => this.lineStarts.push(e), this.linePos = (e) => {
|
|
5294
5295
|
let t = 0, n = this.lineStarts.length;
|
|
@@ -5317,7 +5318,7 @@ function $(e, t) {
|
|
|
5317
5318
|
for (let n = 0; n < e.length; ++n) if (e[n].type === t) return !0;
|
|
5318
5319
|
return !1;
|
|
5319
5320
|
}
|
|
5320
|
-
function
|
|
5321
|
+
function Bo(e) {
|
|
5321
5322
|
for (let t = 0; t < e.length; ++t) switch (e[t].type) {
|
|
5322
5323
|
case "space":
|
|
5323
5324
|
case "comment":
|
|
@@ -5326,7 +5327,7 @@ function zo(e) {
|
|
|
5326
5327
|
}
|
|
5327
5328
|
return -1;
|
|
5328
5329
|
}
|
|
5329
|
-
function
|
|
5330
|
+
function Vo(e) {
|
|
5330
5331
|
switch (e == null ? void 0 : e.type) {
|
|
5331
5332
|
case "alias":
|
|
5332
5333
|
case "scalar":
|
|
@@ -5336,7 +5337,7 @@ function Bo(e) {
|
|
|
5336
5337
|
default: return !1;
|
|
5337
5338
|
}
|
|
5338
5339
|
}
|
|
5339
|
-
function
|
|
5340
|
+
function Ho(e) {
|
|
5340
5341
|
switch (e.type) {
|
|
5341
5342
|
case "document": return e.start;
|
|
5342
5343
|
case "block-map": {
|
|
@@ -5349,7 +5350,7 @@ function Vo(e) {
|
|
|
5349
5350
|
default: return [];
|
|
5350
5351
|
}
|
|
5351
5352
|
}
|
|
5352
|
-
function
|
|
5353
|
+
function Uo(e) {
|
|
5353
5354
|
var t;
|
|
5354
5355
|
if (e.length === 0) return [];
|
|
5355
5356
|
let n = e.length;
|
|
@@ -5363,16 +5364,16 @@ function Ho(e) {
|
|
|
5363
5364
|
for (; ((t = e[++n]) == null ? void 0 : t.type) === "space";);
|
|
5364
5365
|
return e.splice(n, e.length);
|
|
5365
5366
|
}
|
|
5366
|
-
function
|
|
5367
|
+
function Wo(e, t) {
|
|
5367
5368
|
if (t.length < 1e5) Array.prototype.push.apply(e, t);
|
|
5368
5369
|
else for (let n = 0; n < t.length; ++n) e.push(t[n]);
|
|
5369
5370
|
}
|
|
5370
|
-
function
|
|
5371
|
-
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,
|
|
5371
|
+
function Go(e) {
|
|
5372
|
+
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, Vo(t.value) ? t.value.end ? Wo(t.value.end, t.sep) : t.value.end = t.sep : Wo(t.start, t.sep), delete t.sep);
|
|
5372
5373
|
}
|
|
5373
|
-
var
|
|
5374
|
+
var Ko = class {
|
|
5374
5375
|
constructor(e) {
|
|
5375
|
-
this.atNewLine = !0, this.atScalar = !1, this.indent = 0, this.offset = 0, this.onKeyLine = !1, this.stack = [], this.source = "", this.type = "", this.lexer = new
|
|
5376
|
+
this.atNewLine = !0, this.atScalar = !1, this.indent = 0, this.offset = 0, this.onKeyLine = !1, this.stack = [], this.source = "", this.type = "", this.lexer = new Ro(), this.onNewLine = e;
|
|
5376
5377
|
}
|
|
5377
5378
|
*parse(e, t = !1) {
|
|
5378
5379
|
this.onNewLine && this.offset === 0 && this.onNewLine(0);
|
|
@@ -5384,7 +5385,7 @@ var Go = class {
|
|
|
5384
5385
|
this.atScalar = !1, yield* this.step(), this.offset += e.length;
|
|
5385
5386
|
return;
|
|
5386
5387
|
}
|
|
5387
|
-
let t =
|
|
5388
|
+
let t = Mo(e);
|
|
5388
5389
|
if (!t) {
|
|
5389
5390
|
let t = `Not a YAML token: ${e}`;
|
|
5390
5391
|
yield* this.pop({
|
|
@@ -5467,7 +5468,7 @@ var Go = class {
|
|
|
5467
5468
|
else if (this.stack.length === 0) yield t;
|
|
5468
5469
|
else {
|
|
5469
5470
|
let e = this.peek(1);
|
|
5470
|
-
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" &&
|
|
5471
|
+
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" && Go(t), e.type) {
|
|
5471
5472
|
case "document":
|
|
5472
5473
|
e.value = t;
|
|
5473
5474
|
break;
|
|
@@ -5519,7 +5520,7 @@ var Go = class {
|
|
|
5519
5520
|
}
|
|
5520
5521
|
if ((e.type === "document" || e.type === "block-map" || e.type === "block-seq") && (t.type === "block-map" || t.type === "block-seq")) {
|
|
5521
5522
|
let n = t.items[t.items.length - 1];
|
|
5522
|
-
n && !n.sep && !n.value && n.start.length > 0 &&
|
|
5523
|
+
n && !n.sep && !n.value && n.start.length > 0 && Bo(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));
|
|
5523
5524
|
}
|
|
5524
5525
|
}
|
|
5525
5526
|
}
|
|
@@ -5560,7 +5561,7 @@ var Go = class {
|
|
|
5560
5561
|
if (e.value) return yield* this.lineEnd(e);
|
|
5561
5562
|
switch (this.type) {
|
|
5562
5563
|
case "doc-start":
|
|
5563
|
-
|
|
5564
|
+
Bo(e.start) === -1 ? e.start.push(this.sourceToken) : (yield* this.pop(), yield* this.step());
|
|
5564
5565
|
return;
|
|
5565
5566
|
case "anchor":
|
|
5566
5567
|
case "tag":
|
|
@@ -5580,7 +5581,7 @@ var Go = class {
|
|
|
5580
5581
|
}
|
|
5581
5582
|
*scalar(e) {
|
|
5582
5583
|
if (this.type === "map-value-ind") {
|
|
5583
|
-
let t = Ho(
|
|
5584
|
+
let t = Uo(Ho(this.peek(2))), n;
|
|
5584
5585
|
e.end ? (n = e.end, n.push(this.sourceToken), delete e.end) : n = [this.sourceToken];
|
|
5585
5586
|
let r = {
|
|
5586
5587
|
type: "block-map",
|
|
@@ -5631,7 +5632,7 @@ var Go = class {
|
|
|
5631
5632
|
var n;
|
|
5632
5633
|
let r = e.items[e.items.length - 2], i = r == null || (n = r.value) == null ? void 0 : n.end;
|
|
5633
5634
|
if (Array.isArray(i)) {
|
|
5634
|
-
|
|
5635
|
+
Wo(i, t.start), i.push(this.sourceToken), e.items.pop();
|
|
5635
5636
|
return;
|
|
5636
5637
|
}
|
|
5637
5638
|
}
|
|
@@ -5685,7 +5686,7 @@ var Go = class {
|
|
|
5685
5686
|
sep: [this.sourceToken]
|
|
5686
5687
|
});
|
|
5687
5688
|
else {
|
|
5688
|
-
let e =
|
|
5689
|
+
let e = Uo(t.start);
|
|
5689
5690
|
this.stack.push({
|
|
5690
5691
|
type: "block-map",
|
|
5691
5692
|
offset: this.offset,
|
|
@@ -5712,8 +5713,8 @@ var Go = class {
|
|
|
5712
5713
|
sep: [this.sourceToken]
|
|
5713
5714
|
}]
|
|
5714
5715
|
});
|
|
5715
|
-
else if (
|
|
5716
|
-
let e =
|
|
5716
|
+
else if (Vo(t.key) && !$(t.sep, "newline")) {
|
|
5717
|
+
let e = Uo(t.start), n = t.key, r = t.sep;
|
|
5717
5718
|
r.push(this.sourceToken), delete t.key, delete t.sep, this.stack.push({
|
|
5718
5719
|
type: "block-map",
|
|
5719
5720
|
offset: this.offset,
|
|
@@ -5798,7 +5799,7 @@ var Go = class {
|
|
|
5798
5799
|
var n;
|
|
5799
5800
|
let r = e.items[e.items.length - 2], i = r == null || (n = r.value) == null ? void 0 : n.end;
|
|
5800
5801
|
if (Array.isArray(i)) {
|
|
5801
|
-
|
|
5802
|
+
Wo(i, t.start), i.push(this.sourceToken), e.items.pop();
|
|
5802
5803
|
return;
|
|
5803
5804
|
}
|
|
5804
5805
|
}
|
|
@@ -5881,8 +5882,8 @@ var Go = class {
|
|
|
5881
5882
|
let t = this.peek(2);
|
|
5882
5883
|
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();
|
|
5883
5884
|
else if (this.type === "map-value-ind" && t.type !== "flow-collection") {
|
|
5884
|
-
let n = Ho(
|
|
5885
|
-
|
|
5885
|
+
let n = Uo(Ho(t));
|
|
5886
|
+
Go(e);
|
|
5886
5887
|
let r = e.end.splice(1, e.end.length);
|
|
5887
5888
|
r.push(this.sourceToken);
|
|
5888
5889
|
let i = {
|
|
@@ -5941,7 +5942,7 @@ var Go = class {
|
|
|
5941
5942
|
};
|
|
5942
5943
|
case "explicit-key-ind": {
|
|
5943
5944
|
this.onKeyLine = !0;
|
|
5944
|
-
let t = Ho(
|
|
5945
|
+
let t = Uo(Ho(e));
|
|
5945
5946
|
return t.push(this.sourceToken), {
|
|
5946
5947
|
type: "block-map",
|
|
5947
5948
|
offset: this.offset,
|
|
@@ -5954,7 +5955,7 @@ var Go = class {
|
|
|
5954
5955
|
}
|
|
5955
5956
|
case "map-value-ind": {
|
|
5956
5957
|
this.onKeyLine = !0;
|
|
5957
|
-
let t = Ho(
|
|
5958
|
+
let t = Uo(Ho(e));
|
|
5958
5959
|
return {
|
|
5959
5960
|
type: "block-map",
|
|
5960
5961
|
offset: this.offset,
|
|
@@ -5991,111 +5992,112 @@ var Go = class {
|
|
|
5991
5992
|
}
|
|
5992
5993
|
};
|
|
5993
5994
|
// node_modules/yaml/browser/dist/public-api.js
|
|
5994
|
-
function
|
|
5995
|
+
function qo(e) {
|
|
5995
5996
|
let t = e.prettyErrors !== !1;
|
|
5996
5997
|
return {
|
|
5997
|
-
lineCounter: e.lineCounter || t && new
|
|
5998
|
+
lineCounter: e.lineCounter || t && new zo() || null,
|
|
5998
5999
|
prettyErrors: t
|
|
5999
6000
|
};
|
|
6000
6001
|
}
|
|
6001
|
-
function
|
|
6002
|
-
let { lineCounter: n, prettyErrors: r } =
|
|
6002
|
+
function Jo(e, t = {}) {
|
|
6003
|
+
let { lineCounter: n, prettyErrors: r } = qo(t), i = new Ko(n == null ? void 0 : n.addNewLine), a = new Eo(t), o = null;
|
|
6003
6004
|
for (let t of a.compose(i.parse(e), !0, e.length)) if (!o) o = t;
|
|
6004
6005
|
else if (o.options.logLevel !== "silent") {
|
|
6005
|
-
o.errors.push(new
|
|
6006
|
+
o.errors.push(new Va(t.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
|
|
6006
6007
|
break;
|
|
6007
6008
|
}
|
|
6008
|
-
return r && n && (o.errors.forEach(
|
|
6009
|
+
return r && n && (o.errors.forEach(Ua(e, n)), o.warnings.forEach(Ua(e, n))), o;
|
|
6009
6010
|
}
|
|
6010
|
-
function
|
|
6011
|
+
function Yo(e, t, n) {
|
|
6011
6012
|
let r;
|
|
6012
6013
|
typeof t == "function" ? r = t : n === void 0 && t && typeof t == "object" && (n = t);
|
|
6013
|
-
let i =
|
|
6014
|
+
let i = Jo(e, n);
|
|
6014
6015
|
if (!i) return null;
|
|
6015
|
-
if (i.warnings.forEach((e) =>
|
|
6016
|
+
if (i.warnings.forEach((e) => Ti(i.options.logLevel, e)), i.errors.length > 0) {
|
|
6016
6017
|
if (i.options.logLevel !== "silent") throw i.errors[0];
|
|
6017
6018
|
i.errors = [];
|
|
6018
6019
|
}
|
|
6019
6020
|
return i.toJS(Object.assign({ reviver: r }, n));
|
|
6020
6021
|
}
|
|
6021
6022
|
// src/plugins/builtin.ts
|
|
6022
|
-
var
|
|
6023
|
+
var Xo = {
|
|
6023
6024
|
name: "toc",
|
|
6024
6025
|
core: !0
|
|
6025
|
-
},
|
|
6026
|
+
}, Zo = {
|
|
6026
6027
|
name: "code",
|
|
6027
6028
|
core: !0
|
|
6028
|
-
},
|
|
6029
|
+
}, Qo = {
|
|
6029
6030
|
name: "link",
|
|
6030
6031
|
core: !0
|
|
6031
6032
|
};
|
|
6032
|
-
function
|
|
6033
|
+
function $o(e = {}) {
|
|
6033
6034
|
return {
|
|
6034
6035
|
name: "search",
|
|
6035
6036
|
transformDocument(t) {
|
|
6036
|
-
|
|
6037
|
+
var n;
|
|
6038
|
+
return (n = e.query) != null && n.trim() ? re(t, e) : t;
|
|
6037
6039
|
}
|
|
6038
6040
|
};
|
|
6039
6041
|
}
|
|
6040
|
-
function
|
|
6042
|
+
function es(e = { tags: [] }) {
|
|
6041
6043
|
let t = new Set(e.tags), n = (e) => e.map((e) => e.kind === "element" && t.has(e.tag) ? {
|
|
6042
6044
|
kind: "custom",
|
|
6043
6045
|
key: e.key,
|
|
6044
6046
|
tag: e.tag,
|
|
6045
|
-
props:
|
|
6047
|
+
props: r(e.attrs),
|
|
6046
6048
|
attrs: e.attrs,
|
|
6047
6049
|
children: n(e.children),
|
|
6048
6050
|
source: e.source
|
|
6049
|
-
} : "children" in e && Array.isArray(e.children) ?
|
|
6051
|
+
} : "children" in e && Array.isArray(e.children) ? a(a({}, e), {}, { children: n(e.children) }) : e);
|
|
6050
6052
|
return {
|
|
6051
6053
|
name: "custom-tags",
|
|
6052
6054
|
transformDocument(e) {
|
|
6053
|
-
return
|
|
6055
|
+
return a(a({}, e), {}, { nodes: n(e.nodes) });
|
|
6054
6056
|
}
|
|
6055
6057
|
};
|
|
6056
6058
|
}
|
|
6057
|
-
var
|
|
6059
|
+
var ts = {
|
|
6058
6060
|
name: "gfm",
|
|
6059
|
-
remarkPlugins: [
|
|
6061
|
+
remarkPlugins: [ar]
|
|
6060
6062
|
};
|
|
6061
|
-
function
|
|
6063
|
+
function ns() {
|
|
6062
6064
|
return (e, t) => {
|
|
6063
6065
|
let n = e.children.findIndex((e) => e.type === "yaml");
|
|
6064
6066
|
if (n < 0) return;
|
|
6065
6067
|
let r = e.children[n];
|
|
6066
6068
|
if (r != null && r.value) try {
|
|
6067
|
-
t.data.frontmatter =
|
|
6069
|
+
t.data.frontmatter = Yo(r.value);
|
|
6068
6070
|
} catch (e) {
|
|
6069
6071
|
t.data.frontmatter = void 0;
|
|
6070
6072
|
}
|
|
6071
6073
|
e.children.splice(n, 1);
|
|
6072
6074
|
};
|
|
6073
6075
|
}
|
|
6074
|
-
var
|
|
6076
|
+
var rs = {
|
|
6075
6077
|
name: "frontmatter",
|
|
6076
|
-
remarkPlugins: [
|
|
6077
|
-
},
|
|
6078
|
-
Yo,
|
|
6078
|
+
remarkPlugins: [Er, ns]
|
|
6079
|
+
}, is = [
|
|
6079
6080
|
Xo,
|
|
6080
6081
|
Zo,
|
|
6081
|
-
Qo
|
|
6082
|
-
$o()
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6082
|
+
Qo,
|
|
6083
|
+
$o(),
|
|
6084
|
+
es()
|
|
6085
|
+
], as = [
|
|
6086
|
+
...is,
|
|
6087
|
+
ts,
|
|
6088
|
+
rs
|
|
6089
|
+
], os = {
|
|
6088
6090
|
pre: 0,
|
|
6089
6091
|
normal: 1,
|
|
6090
6092
|
post: 2
|
|
6091
6093
|
};
|
|
6092
|
-
function
|
|
6094
|
+
function ss(e, t = []) {
|
|
6093
6095
|
let r = [], i = /* @__PURE__ */ new Map();
|
|
6094
6096
|
(e == null ? [] : e).forEach((e, t) => {
|
|
6095
6097
|
if (!e) return;
|
|
6096
6098
|
let a;
|
|
6097
6099
|
try {
|
|
6098
|
-
a =
|
|
6100
|
+
a = se(e);
|
|
6099
6101
|
} catch (e) {
|
|
6100
6102
|
r.push(n("plugin-invalid", e instanceof Error ? e.message : String(e), { phase: "setup" }));
|
|
6101
6103
|
return;
|
|
@@ -6109,13 +6111,19 @@ function os(e, t = []) {
|
|
|
6109
6111
|
index: t
|
|
6110
6112
|
});
|
|
6111
6113
|
});
|
|
6112
|
-
let a = new Set(t)
|
|
6114
|
+
let a = new Set(t);
|
|
6115
|
+
for (let e of a) i.has(e) || r.push(n("plugin-unknown", `Plugin "${e}" in disablePlugins does not match a registered plugin and was ignored.`, {
|
|
6116
|
+
severity: "warning",
|
|
6117
|
+
phase: "setup",
|
|
6118
|
+
plugin: e
|
|
6119
|
+
}));
|
|
6120
|
+
let o = [...i.values()].filter(({ plugin: e }) => a.has(e.name) ? e.core ? (r.push(n("plugin-core", `Plugin "${e.name}" is a core invariant and cannot be disabled.`, {
|
|
6113
6121
|
severity: "warning",
|
|
6114
6122
|
phase: "setup",
|
|
6115
6123
|
plugin: e.name
|
|
6116
6124
|
})), !0) : !1 : !0).sort((e, t) => {
|
|
6117
6125
|
var n, r;
|
|
6118
|
-
let i =
|
|
6126
|
+
let i = os[(n = e.plugin.phase) == null ? "normal" : n] - os[(r = t.plugin.phase) == null ? "normal" : r];
|
|
6119
6127
|
return i === 0 ? e.index - t.index : i;
|
|
6120
6128
|
}).map(({ plugin: e }) => e), s = {
|
|
6121
6129
|
plugins: o,
|
|
@@ -6130,15 +6138,13 @@ function os(e, t = []) {
|
|
|
6130
6138
|
rehypePlugins: [],
|
|
6131
6139
|
remarkRehypeOptions: {}
|
|
6132
6140
|
};
|
|
6133
|
-
for (let e of o)
|
|
6141
|
+
for (let e of o) cs(s.components, e.components), cs(s.nodeComponents, e.nodeComponents), cs(s.regions, e.regions), Object.assign(s.labels, e.labels), Object.assign(s.tokens, e.tokens), e.remarkPlugins && s.remarkPlugins.push(...e.remarkPlugins), e.rehypePlugins && s.rehypePlugins.push(...e.rehypePlugins), Object.assign(s.remarkRehypeOptions, e.remarkRehypeOptions);
|
|
6134
6142
|
return s;
|
|
6135
6143
|
}
|
|
6136
|
-
function
|
|
6144
|
+
function cs(e, t) {
|
|
6137
6145
|
if (t) for (let n of Object.keys(t)) {
|
|
6138
6146
|
let r = t[n];
|
|
6139
6147
|
r !== void 0 && (e[n] = r);
|
|
6140
6148
|
}
|
|
6141
6149
|
}
|
|
6142
|
-
export {
|
|
6143
|
-
|
|
6144
|
-
//# sourceMappingURL=registry-DLjr93-V.js.map
|
|
6150
|
+
export { T as _, rs as a, Qo as c, ce as d, oe as f, re as g, ie as h, is as i, $o as l, ae as m, Zo as n, as as o, se as p, es as r, ts as s, ss as t, Xo as u };
|