@storm-software/git-tools 2.113.14 → 2.113.17
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/README.md +2 -1
- package/bin/{chunk-TOALWLBQ.js → chunk-54Q5U5WW.js} +2 -8
- package/bin/chunk-AMSZ7DVW.js +17 -0
- package/bin/chunk-CIJVSMK2.cjs +23 -0
- package/bin/chunk-DDGJVTT5.cjs +1622 -0
- package/bin/chunk-NRQQ6RND.js +1581 -0
- package/bin/{chunk-TDO6B2H4.js → chunk-SWXHQXUT.cjs} +3 -8
- package/bin/git.cjs +3013 -81697
- package/bin/git.js +2825 -91795
- package/bin/post-checkout.cjs +16 -36
- package/bin/post-checkout.js +3 -25
- package/bin/post-commit.cjs +16 -36
- package/bin/post-commit.js +3 -25
- package/bin/post-merge.cjs +16 -36
- package/bin/post-merge.js +3 -25
- package/bin/pre-commit.cjs +13 -32
- package/bin/pre-commit.js +2 -23
- package/bin/pre-install.cjs +12 -29
- package/bin/pre-install.js +2 -21
- package/bin/pre-push.cjs +33 -50
- package/bin/pre-push.js +6 -30
- package/bin/prepare.cjs +10 -27
- package/bin/prepare.js +2 -21
- package/bin/version-warning.cjs +8 -23
- package/bin/version-warning.js +2 -19
- package/package.json +7 -10
- package/bin/chunk-2EJN2ZIP.cjs +0 -3631
- package/bin/chunk-2FWQQ2X4.js +0 -35624
- package/bin/chunk-335YPSVH.cjs +0 -111
- package/bin/chunk-5OLGPOTK.js +0 -1003
- package/bin/chunk-5QFXXGFE.js +0 -7427
- package/bin/chunk-D2AN4H4B.js +0 -111
- package/bin/chunk-DTYNP6HG.js +0 -3634
- package/bin/chunk-FMYKTN2Z.cjs +0 -7427
- package/bin/chunk-GSZ2Y7H4.cjs +0 -1003
- package/bin/chunk-GWDOCACN.cjs +0 -27
- package/bin/chunk-H4MEIOPL.cjs +0 -476
- package/bin/chunk-HTVOKCRJ.cjs +0 -25
- package/bin/chunk-IG6EXAQU.cjs +0 -59
- package/bin/chunk-JHBHEVIE.js +0 -55
- package/bin/chunk-MXO7CLUN.cjs +0 -739
- package/bin/chunk-OKG5KNKQ.js +0 -419
- package/bin/chunk-QWTKUQL3.js +0 -739
- package/bin/chunk-R7ZVOQ5D.js +0 -476
- package/bin/chunk-TVPM4C6Y.cjs +0 -419
- package/bin/chunk-UQFYXF6V.cjs +0 -74
- package/bin/chunk-VU7MBHMN.js +0 -74
- package/bin/chunk-WOADGD4X.cjs +0 -35563
- package/bin/dist-GTHSKIW6.cjs +0 -16571
- package/bin/dist-JFDTSOSQ.js +0 -33
- package/bin/dist-JIPEOSES.js +0 -16736
- package/bin/dist-S2SQNR26.cjs +0 -33
- package/bin/esm-MJTK2O7U.js +0 -1708
- package/bin/esm-NOFJXYSW.cjs +0 -1708
- package/bin/json5-PMDKQHWU.js +0 -10
- package/bin/json5-XWK64HEF.cjs +0 -10
- package/bin/jsonc-GWY6R4PV.js +0 -15
- package/bin/jsonc-SBYIKOG2.cjs +0 -15
- package/bin/multipart-parser-HT3QRMAQ.cjs +0 -181
- package/bin/multipart-parser-LDIDKHXR.js +0 -185
- package/bin/toml-CWI7LORJ.cjs +0 -10
- package/bin/toml-KVVESQIU.js +0 -10
- package/bin/utils-EKXINDVD.js +0 -101
- package/bin/utils-P2DNOMLG.cjs +0 -101
- package/bin/yaml-WPTJ2ZU5.cjs +0 -10
- package/bin/yaml-XEVR3LQS.js +0 -10
package/bin/chunk-5OLGPOTK.js
DELETED
|
@@ -1,1003 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
C,
|
|
3
|
-
N
|
|
4
|
-
} from "./chunk-VU7MBHMN.js";
|
|
5
|
-
import {
|
|
6
|
-
init_esm_shims
|
|
7
|
-
} from "./chunk-JHBHEVIE.js";
|
|
8
|
-
|
|
9
|
-
// ../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/yaml.mjs
|
|
10
|
-
init_esm_shims();
|
|
11
|
-
function oe(e) {
|
|
12
|
-
return typeof e > "u" || e === null;
|
|
13
|
-
}
|
|
14
|
-
function We(e) {
|
|
15
|
-
return typeof e == "object" && e !== null;
|
|
16
|
-
}
|
|
17
|
-
function $e(e) {
|
|
18
|
-
return Array.isArray(e) ? e : oe(e) ? [] : [e];
|
|
19
|
-
}
|
|
20
|
-
function Qe(e, n) {
|
|
21
|
-
var i, l, r, u;
|
|
22
|
-
if (n) for (u = Object.keys(n), i = 0, l = u.length; i < l; i += 1) r = u[i], e[r] = n[r];
|
|
23
|
-
return e;
|
|
24
|
-
}
|
|
25
|
-
function Ve(e, n) {
|
|
26
|
-
var i = "", l;
|
|
27
|
-
for (l = 0; l < n; l += 1) i += e;
|
|
28
|
-
return i;
|
|
29
|
-
}
|
|
30
|
-
function Xe(e) {
|
|
31
|
-
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
32
|
-
}
|
|
33
|
-
var Ze = oe;
|
|
34
|
-
var ze = We;
|
|
35
|
-
var Je = $e;
|
|
36
|
-
var en = Ve;
|
|
37
|
-
var nn = Xe;
|
|
38
|
-
var rn = Qe;
|
|
39
|
-
var y = { isNothing: Ze, isObject: ze, toArray: Je, repeat: en, isNegativeZero: nn, extend: rn };
|
|
40
|
-
function ue(e, n) {
|
|
41
|
-
var i = "", l = e.reason || "(unknown reason)";
|
|
42
|
-
return e.mark ? (e.mark.name && (i += 'in "' + e.mark.name + '" '), i += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !n && e.mark.snippet && (i += `
|
|
43
|
-
|
|
44
|
-
` + e.mark.snippet), l + " " + i) : l;
|
|
45
|
-
}
|
|
46
|
-
function M(e, n) {
|
|
47
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = ue(this, false), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
48
|
-
}
|
|
49
|
-
M.prototype = Object.create(Error.prototype), M.prototype.constructor = M, M.prototype.toString = function(n) {
|
|
50
|
-
return this.name + ": " + ue(this, n);
|
|
51
|
-
};
|
|
52
|
-
var w = M;
|
|
53
|
-
function $(e, n, i, l, r) {
|
|
54
|
-
var u = "", o = "", f = Math.floor(r / 2) - 1;
|
|
55
|
-
return l - n > f && (u = " ... ", n = l - f + u.length), i - l > f && (o = " ...", i = l + f - o.length), { str: u + e.slice(n, i).replace(/\t/g, "\u2192") + o, pos: l - n + u.length };
|
|
56
|
-
}
|
|
57
|
-
function Q(e, n) {
|
|
58
|
-
return y.repeat(" ", n - e.length) + e;
|
|
59
|
-
}
|
|
60
|
-
function ln(e, n) {
|
|
61
|
-
if (n = Object.create(n || null), !e.buffer) return null;
|
|
62
|
-
n.maxLength || (n.maxLength = 79), typeof n.indent != "number" && (n.indent = 1), typeof n.linesBefore != "number" && (n.linesBefore = 3), typeof n.linesAfter != "number" && (n.linesAfter = 2);
|
|
63
|
-
for (var i = /\r?\n|\r|\0/g, l = [0], r = [], u, o = -1; u = i.exec(e.buffer); ) r.push(u.index), l.push(u.index + u[0].length), e.position <= u.index && o < 0 && (o = l.length - 2);
|
|
64
|
-
o < 0 && (o = l.length - 1);
|
|
65
|
-
var f = "", c, a, t = Math.min(e.line + n.linesAfter, r.length).toString().length, p = n.maxLength - (n.indent + t + 3);
|
|
66
|
-
for (c = 1; c <= n.linesBefore && !(o - c < 0); c++) a = $(e.buffer, l[o - c], r[o - c], e.position - (l[o] - l[o - c]), p), f = y.repeat(" ", n.indent) + Q((e.line - c + 1).toString(), t) + " | " + a.str + `
|
|
67
|
-
` + f;
|
|
68
|
-
for (a = $(e.buffer, l[o], r[o], e.position, p), f += y.repeat(" ", n.indent) + Q((e.line + 1).toString(), t) + " | " + a.str + `
|
|
69
|
-
`, f += y.repeat("-", n.indent + t + 3 + a.pos) + `^
|
|
70
|
-
`, c = 1; c <= n.linesAfter && !(o + c >= r.length); c++) a = $(e.buffer, l[o + c], r[o + c], e.position - (l[o] - l[o + c]), p), f += y.repeat(" ", n.indent) + Q((e.line + c + 1).toString(), t) + " | " + a.str + `
|
|
71
|
-
`;
|
|
72
|
-
return f.replace(/\n$/, "");
|
|
73
|
-
}
|
|
74
|
-
var on = ln;
|
|
75
|
-
var un = ["kind", "multi", "resolve", "construct", "instanceOf", "predicate", "represent", "representName", "defaultStyle", "styleAliases"];
|
|
76
|
-
var fn = ["scalar", "sequence", "mapping"];
|
|
77
|
-
function cn(e) {
|
|
78
|
-
var n = {};
|
|
79
|
-
return e !== null && Object.keys(e).forEach(function(i) {
|
|
80
|
-
e[i].forEach(function(l) {
|
|
81
|
-
n[String(l)] = i;
|
|
82
|
-
});
|
|
83
|
-
}), n;
|
|
84
|
-
}
|
|
85
|
-
function an(e, n) {
|
|
86
|
-
if (n = n || {}, Object.keys(n).forEach(function(i) {
|
|
87
|
-
if (un.indexOf(i) === -1) throw new w('Unknown option "' + i + '" is met in definition of "' + e + '" YAML type.');
|
|
88
|
-
}), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
|
|
89
|
-
return true;
|
|
90
|
-
}, this.construct = n.construct || function(i) {
|
|
91
|
-
return i;
|
|
92
|
-
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || false, this.styleAliases = cn(n.styleAliases || null), fn.indexOf(this.kind) === -1) throw new w('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
93
|
-
}
|
|
94
|
-
var C2 = an;
|
|
95
|
-
function fe(e, n) {
|
|
96
|
-
var i = [];
|
|
97
|
-
return e[n].forEach(function(l) {
|
|
98
|
-
var r = i.length;
|
|
99
|
-
i.forEach(function(u, o) {
|
|
100
|
-
u.tag === l.tag && u.kind === l.kind && u.multi === l.multi && (r = o);
|
|
101
|
-
}), i[r] = l;
|
|
102
|
-
}), i;
|
|
103
|
-
}
|
|
104
|
-
function pn() {
|
|
105
|
-
var e = { scalar: {}, sequence: {}, mapping: {}, fallback: {}, multi: { scalar: [], sequence: [], mapping: [], fallback: [] } }, n, i;
|
|
106
|
-
function l(r) {
|
|
107
|
-
r.multi ? (e.multi[r.kind].push(r), e.multi.fallback.push(r)) : e[r.kind][r.tag] = e.fallback[r.tag] = r;
|
|
108
|
-
}
|
|
109
|
-
for (n = 0, i = arguments.length; n < i; n += 1) arguments[n].forEach(l);
|
|
110
|
-
return e;
|
|
111
|
-
}
|
|
112
|
-
function V(e) {
|
|
113
|
-
return this.extend(e);
|
|
114
|
-
}
|
|
115
|
-
V.prototype.extend = function(n) {
|
|
116
|
-
var i = [], l = [];
|
|
117
|
-
if (n instanceof C2) l.push(n);
|
|
118
|
-
else if (Array.isArray(n)) l = l.concat(n);
|
|
119
|
-
else if (n && (Array.isArray(n.implicit) || Array.isArray(n.explicit))) n.implicit && (i = i.concat(n.implicit)), n.explicit && (l = l.concat(n.explicit));
|
|
120
|
-
else throw new w("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
121
|
-
i.forEach(function(u) {
|
|
122
|
-
if (!(u instanceof C2)) throw new w("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
123
|
-
if (u.loadKind && u.loadKind !== "scalar") throw new w("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
124
|
-
if (u.multi) throw new w("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
125
|
-
}), l.forEach(function(u) {
|
|
126
|
-
if (!(u instanceof C2)) throw new w("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
127
|
-
});
|
|
128
|
-
var r = Object.create(V.prototype);
|
|
129
|
-
return r.implicit = (this.implicit || []).concat(i), r.explicit = (this.explicit || []).concat(l), r.compiledImplicit = fe(r, "implicit"), r.compiledExplicit = fe(r, "explicit"), r.compiledTypeMap = pn(r.compiledImplicit, r.compiledExplicit), r;
|
|
130
|
-
};
|
|
131
|
-
var tn = V;
|
|
132
|
-
var hn = new C2("tag:yaml.org,2002:str", { kind: "scalar", construct: function(e) {
|
|
133
|
-
return e !== null ? e : "";
|
|
134
|
-
} });
|
|
135
|
-
var dn = new C2("tag:yaml.org,2002:seq", { kind: "sequence", construct: function(e) {
|
|
136
|
-
return e !== null ? e : [];
|
|
137
|
-
} });
|
|
138
|
-
var sn = new C2("tag:yaml.org,2002:map", { kind: "mapping", construct: function(e) {
|
|
139
|
-
return e !== null ? e : {};
|
|
140
|
-
} });
|
|
141
|
-
var xn = new tn({ explicit: [hn, dn, sn] });
|
|
142
|
-
function mn(e) {
|
|
143
|
-
if (e === null) return true;
|
|
144
|
-
var n = e.length;
|
|
145
|
-
return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
146
|
-
}
|
|
147
|
-
function gn() {
|
|
148
|
-
return null;
|
|
149
|
-
}
|
|
150
|
-
function An(e) {
|
|
151
|
-
return e === null;
|
|
152
|
-
}
|
|
153
|
-
var vn = new C2("tag:yaml.org,2002:null", { kind: "scalar", resolve: mn, construct: gn, predicate: An, represent: { canonical: function() {
|
|
154
|
-
return "~";
|
|
155
|
-
}, lowercase: function() {
|
|
156
|
-
return "null";
|
|
157
|
-
}, uppercase: function() {
|
|
158
|
-
return "NULL";
|
|
159
|
-
}, camelcase: function() {
|
|
160
|
-
return "Null";
|
|
161
|
-
}, empty: function() {
|
|
162
|
-
return "";
|
|
163
|
-
} }, defaultStyle: "lowercase" });
|
|
164
|
-
function yn(e) {
|
|
165
|
-
if (e === null) return false;
|
|
166
|
-
var n = e.length;
|
|
167
|
-
return n === 4 && (e === "true" || e === "True" || e === "TRUE") || n === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
168
|
-
}
|
|
169
|
-
function Cn(e) {
|
|
170
|
-
return e === "true" || e === "True" || e === "TRUE";
|
|
171
|
-
}
|
|
172
|
-
function _n(e) {
|
|
173
|
-
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
174
|
-
}
|
|
175
|
-
var wn = new C2("tag:yaml.org,2002:bool", { kind: "scalar", resolve: yn, construct: Cn, predicate: _n, represent: { lowercase: function(e) {
|
|
176
|
-
return e ? "true" : "false";
|
|
177
|
-
}, uppercase: function(e) {
|
|
178
|
-
return e ? "TRUE" : "FALSE";
|
|
179
|
-
}, camelcase: function(e) {
|
|
180
|
-
return e ? "True" : "False";
|
|
181
|
-
} }, defaultStyle: "lowercase" });
|
|
182
|
-
function bn(e) {
|
|
183
|
-
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
184
|
-
}
|
|
185
|
-
function Fn(e) {
|
|
186
|
-
return 48 <= e && e <= 55;
|
|
187
|
-
}
|
|
188
|
-
function Sn(e) {
|
|
189
|
-
return 48 <= e && e <= 57;
|
|
190
|
-
}
|
|
191
|
-
function En(e) {
|
|
192
|
-
if (e === null) return false;
|
|
193
|
-
var n = e.length, i = 0, l = false, r;
|
|
194
|
-
if (!n) return false;
|
|
195
|
-
if (r = e[i], (r === "-" || r === "+") && (r = e[++i]), r === "0") {
|
|
196
|
-
if (i + 1 === n) return true;
|
|
197
|
-
if (r = e[++i], r === "b") {
|
|
198
|
-
for (i++; i < n; i++) if (r = e[i], r !== "_") {
|
|
199
|
-
if (r !== "0" && r !== "1") return false;
|
|
200
|
-
l = true;
|
|
201
|
-
}
|
|
202
|
-
return l && r !== "_";
|
|
203
|
-
}
|
|
204
|
-
if (r === "x") {
|
|
205
|
-
for (i++; i < n; i++) if (r = e[i], r !== "_") {
|
|
206
|
-
if (!bn(e.charCodeAt(i))) return false;
|
|
207
|
-
l = true;
|
|
208
|
-
}
|
|
209
|
-
return l && r !== "_";
|
|
210
|
-
}
|
|
211
|
-
if (r === "o") {
|
|
212
|
-
for (i++; i < n; i++) if (r = e[i], r !== "_") {
|
|
213
|
-
if (!Fn(e.charCodeAt(i))) return false;
|
|
214
|
-
l = true;
|
|
215
|
-
}
|
|
216
|
-
return l && r !== "_";
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
if (r === "_") return false;
|
|
220
|
-
for (; i < n; i++) if (r = e[i], r !== "_") {
|
|
221
|
-
if (!Sn(e.charCodeAt(i))) return false;
|
|
222
|
-
l = true;
|
|
223
|
-
}
|
|
224
|
-
return !(!l || r === "_");
|
|
225
|
-
}
|
|
226
|
-
function Tn(e) {
|
|
227
|
-
var n = e, i = 1, l;
|
|
228
|
-
if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")), l = n[0], (l === "-" || l === "+") && (l === "-" && (i = -1), n = n.slice(1), l = n[0]), n === "0") return 0;
|
|
229
|
-
if (l === "0") {
|
|
230
|
-
if (n[1] === "b") return i * parseInt(n.slice(2), 2);
|
|
231
|
-
if (n[1] === "x") return i * parseInt(n.slice(2), 16);
|
|
232
|
-
if (n[1] === "o") return i * parseInt(n.slice(2), 8);
|
|
233
|
-
}
|
|
234
|
-
return i * parseInt(n, 10);
|
|
235
|
-
}
|
|
236
|
-
function On(e) {
|
|
237
|
-
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !y.isNegativeZero(e);
|
|
238
|
-
}
|
|
239
|
-
var In = new C2("tag:yaml.org,2002:int", { kind: "scalar", resolve: En, construct: Tn, predicate: On, represent: { binary: function(e) {
|
|
240
|
-
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
241
|
-
}, octal: function(e) {
|
|
242
|
-
return e >= 0 ? "0o" + e.toString(8) : "-0o" + e.toString(8).slice(1);
|
|
243
|
-
}, decimal: function(e) {
|
|
244
|
-
return e.toString(10);
|
|
245
|
-
}, hexadecimal: function(e) {
|
|
246
|
-
return e >= 0 ? "0x" + e.toString(16).toUpperCase() : "-0x" + e.toString(16).toUpperCase().slice(1);
|
|
247
|
-
} }, defaultStyle: "decimal", styleAliases: { binary: [2, "bin"], octal: [8, "oct"], decimal: [10, "dec"], hexadecimal: [16, "hex"] } });
|
|
248
|
-
var kn = new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
249
|
-
function Ln(e) {
|
|
250
|
-
return !(e === null || !kn.test(e) || e[e.length - 1] === "_");
|
|
251
|
-
}
|
|
252
|
-
function Nn(e) {
|
|
253
|
-
var n, i;
|
|
254
|
-
return n = e.replace(/_/g, "").toLowerCase(), i = n[0] === "-" ? -1 : 1, "+-".indexOf(n[0]) >= 0 && (n = n.slice(1)), n === ".inf" ? i === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : n === ".nan" ? NaN : i * parseFloat(n, 10);
|
|
255
|
-
}
|
|
256
|
-
var Rn = /^[-+]?[0-9]+e/;
|
|
257
|
-
function Dn(e, n) {
|
|
258
|
-
var i;
|
|
259
|
-
if (isNaN(e)) switch (n) {
|
|
260
|
-
case "lowercase":
|
|
261
|
-
return ".nan";
|
|
262
|
-
case "uppercase":
|
|
263
|
-
return ".NAN";
|
|
264
|
-
case "camelcase":
|
|
265
|
-
return ".NaN";
|
|
266
|
-
}
|
|
267
|
-
else if (Number.POSITIVE_INFINITY === e) switch (n) {
|
|
268
|
-
case "lowercase":
|
|
269
|
-
return ".inf";
|
|
270
|
-
case "uppercase":
|
|
271
|
-
return ".INF";
|
|
272
|
-
case "camelcase":
|
|
273
|
-
return ".Inf";
|
|
274
|
-
}
|
|
275
|
-
else if (Number.NEGATIVE_INFINITY === e) switch (n) {
|
|
276
|
-
case "lowercase":
|
|
277
|
-
return "-.inf";
|
|
278
|
-
case "uppercase":
|
|
279
|
-
return "-.INF";
|
|
280
|
-
case "camelcase":
|
|
281
|
-
return "-.Inf";
|
|
282
|
-
}
|
|
283
|
-
else if (y.isNegativeZero(e)) return "-0.0";
|
|
284
|
-
return i = e.toString(10), Rn.test(i) ? i.replace("e", ".e") : i;
|
|
285
|
-
}
|
|
286
|
-
function Mn(e) {
|
|
287
|
-
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || y.isNegativeZero(e));
|
|
288
|
-
}
|
|
289
|
-
var Yn = new C2("tag:yaml.org,2002:float", { kind: "scalar", resolve: Ln, construct: Nn, predicate: Mn, represent: Dn, defaultStyle: "lowercase" });
|
|
290
|
-
var Bn = xn.extend({ implicit: [vn, wn, In, Yn] });
|
|
291
|
-
var Pn = Bn;
|
|
292
|
-
var ce = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
|
|
293
|
-
var ae = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
|
|
294
|
-
function jn(e) {
|
|
295
|
-
return e === null ? false : ce.exec(e) !== null || ae.exec(e) !== null;
|
|
296
|
-
}
|
|
297
|
-
function Hn(e) {
|
|
298
|
-
var n, i, l, r, u, o, f, c = 0, a = null, t, p, d;
|
|
299
|
-
if (n = ce.exec(e), n === null && (n = ae.exec(e)), n === null) throw new Error("Date resolve error");
|
|
300
|
-
if (i = +n[1], l = +n[2] - 1, r = +n[3], !n[4]) return new Date(Date.UTC(i, l, r));
|
|
301
|
-
if (u = +n[4], o = +n[5], f = +n[6], n[7]) {
|
|
302
|
-
for (c = n[7].slice(0, 3); c.length < 3; ) c += "0";
|
|
303
|
-
c = +c;
|
|
304
|
-
}
|
|
305
|
-
return n[9] && (t = +n[10], p = +(n[11] || 0), a = (t * 60 + p) * 6e4, n[9] === "-" && (a = -a)), d = new Date(Date.UTC(i, l, r, u, o, f, c)), a && d.setTime(d.getTime() - a), d;
|
|
306
|
-
}
|
|
307
|
-
function Un(e) {
|
|
308
|
-
return e.toISOString();
|
|
309
|
-
}
|
|
310
|
-
var Kn = new C2("tag:yaml.org,2002:timestamp", { kind: "scalar", resolve: jn, construct: Hn, instanceOf: Date, represent: Un });
|
|
311
|
-
function qn(e) {
|
|
312
|
-
return e === "<<" || e === null;
|
|
313
|
-
}
|
|
314
|
-
var Gn = new C2("tag:yaml.org,2002:merge", { kind: "scalar", resolve: qn });
|
|
315
|
-
var X = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
316
|
-
\r`;
|
|
317
|
-
function Wn(e) {
|
|
318
|
-
if (e === null) return false;
|
|
319
|
-
var n, i, l = 0, r = e.length, u = X;
|
|
320
|
-
for (i = 0; i < r; i++) if (n = u.indexOf(e.charAt(i)), !(n > 64)) {
|
|
321
|
-
if (n < 0) return false;
|
|
322
|
-
l += 6;
|
|
323
|
-
}
|
|
324
|
-
return l % 8 === 0;
|
|
325
|
-
}
|
|
326
|
-
function $n(e) {
|
|
327
|
-
var n, i, l = e.replace(/[\r\n=]/g, ""), r = l.length, u = X, o = 0, f = [];
|
|
328
|
-
for (n = 0; n < r; n++) n % 4 === 0 && n && (f.push(o >> 16 & 255), f.push(o >> 8 & 255), f.push(o & 255)), o = o << 6 | u.indexOf(l.charAt(n));
|
|
329
|
-
return i = r % 4 * 6, i === 0 ? (f.push(o >> 16 & 255), f.push(o >> 8 & 255), f.push(o & 255)) : i === 18 ? (f.push(o >> 10 & 255), f.push(o >> 2 & 255)) : i === 12 && f.push(o >> 4 & 255), new Uint8Array(f);
|
|
330
|
-
}
|
|
331
|
-
function Qn(e) {
|
|
332
|
-
var n = "", i = 0, l, r, u = e.length, o = X;
|
|
333
|
-
for (l = 0; l < u; l++) l % 3 === 0 && l && (n += o[i >> 18 & 63], n += o[i >> 12 & 63], n += o[i >> 6 & 63], n += o[i & 63]), i = (i << 8) + e[l];
|
|
334
|
-
return r = u % 3, r === 0 ? (n += o[i >> 18 & 63], n += o[i >> 12 & 63], n += o[i >> 6 & 63], n += o[i & 63]) : r === 2 ? (n += o[i >> 10 & 63], n += o[i >> 4 & 63], n += o[i << 2 & 63], n += o[64]) : r === 1 && (n += o[i >> 2 & 63], n += o[i << 4 & 63], n += o[64], n += o[64]), n;
|
|
335
|
-
}
|
|
336
|
-
function Vn(e) {
|
|
337
|
-
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
338
|
-
}
|
|
339
|
-
var Xn = new C2("tag:yaml.org,2002:binary", { kind: "scalar", resolve: Wn, construct: $n, predicate: Vn, represent: Qn });
|
|
340
|
-
var Zn = Object.prototype.hasOwnProperty;
|
|
341
|
-
var zn = Object.prototype.toString;
|
|
342
|
-
function Jn(e) {
|
|
343
|
-
if (e === null) return true;
|
|
344
|
-
var n = [], i, l, r, u, o, f = e;
|
|
345
|
-
for (i = 0, l = f.length; i < l; i += 1) {
|
|
346
|
-
if (r = f[i], o = false, zn.call(r) !== "[object Object]") return false;
|
|
347
|
-
for (u in r) if (Zn.call(r, u)) if (!o) o = true;
|
|
348
|
-
else return false;
|
|
349
|
-
if (!o) return false;
|
|
350
|
-
if (n.indexOf(u) === -1) n.push(u);
|
|
351
|
-
else return false;
|
|
352
|
-
}
|
|
353
|
-
return true;
|
|
354
|
-
}
|
|
355
|
-
function ei(e) {
|
|
356
|
-
return e !== null ? e : [];
|
|
357
|
-
}
|
|
358
|
-
var ni = new C2("tag:yaml.org,2002:omap", { kind: "sequence", resolve: Jn, construct: ei });
|
|
359
|
-
var ii = Object.prototype.toString;
|
|
360
|
-
function ri(e) {
|
|
361
|
-
if (e === null) return true;
|
|
362
|
-
var n, i, l, r, u, o = e;
|
|
363
|
-
for (u = new Array(o.length), n = 0, i = o.length; n < i; n += 1) {
|
|
364
|
-
if (l = o[n], ii.call(l) !== "[object Object]" || (r = Object.keys(l), r.length !== 1)) return false;
|
|
365
|
-
u[n] = [r[0], l[r[0]]];
|
|
366
|
-
}
|
|
367
|
-
return true;
|
|
368
|
-
}
|
|
369
|
-
function li(e) {
|
|
370
|
-
if (e === null) return [];
|
|
371
|
-
var n, i, l, r, u, o = e;
|
|
372
|
-
for (u = new Array(o.length), n = 0, i = o.length; n < i; n += 1) l = o[n], r = Object.keys(l), u[n] = [r[0], l[r[0]]];
|
|
373
|
-
return u;
|
|
374
|
-
}
|
|
375
|
-
var oi = new C2("tag:yaml.org,2002:pairs", { kind: "sequence", resolve: ri, construct: li });
|
|
376
|
-
var ui = Object.prototype.hasOwnProperty;
|
|
377
|
-
function fi(e) {
|
|
378
|
-
if (e === null) return true;
|
|
379
|
-
var n, i = e;
|
|
380
|
-
for (n in i) if (ui.call(i, n) && i[n] !== null) return false;
|
|
381
|
-
return true;
|
|
382
|
-
}
|
|
383
|
-
function ci(e) {
|
|
384
|
-
return e !== null ? e : {};
|
|
385
|
-
}
|
|
386
|
-
var ai = new C2("tag:yaml.org,2002:set", { kind: "mapping", resolve: fi, construct: ci });
|
|
387
|
-
var pe = Pn.extend({ implicit: [Kn, Gn], explicit: [Xn, ni, oi, ai] });
|
|
388
|
-
var T = Object.prototype.hasOwnProperty;
|
|
389
|
-
var H = 1;
|
|
390
|
-
var te = 2;
|
|
391
|
-
var he = 3;
|
|
392
|
-
var U = 4;
|
|
393
|
-
var Z = 1;
|
|
394
|
-
var pi = 2;
|
|
395
|
-
var de = 3;
|
|
396
|
-
var ti = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
|
|
397
|
-
var hi = /[\x85\u2028\u2029]/;
|
|
398
|
-
var di = /[,\[\]\{\}]/;
|
|
399
|
-
var se = /^(?:!|!!|![a-z\-]+!)$/i;
|
|
400
|
-
var xe = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
401
|
-
function me(e) {
|
|
402
|
-
return Object.prototype.toString.call(e);
|
|
403
|
-
}
|
|
404
|
-
function S(e) {
|
|
405
|
-
return e === 10 || e === 13;
|
|
406
|
-
}
|
|
407
|
-
function I(e) {
|
|
408
|
-
return e === 9 || e === 32;
|
|
409
|
-
}
|
|
410
|
-
function b(e) {
|
|
411
|
-
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
412
|
-
}
|
|
413
|
-
function k(e) {
|
|
414
|
-
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
415
|
-
}
|
|
416
|
-
function si(e) {
|
|
417
|
-
var n;
|
|
418
|
-
return 48 <= e && e <= 57 ? e - 48 : (n = e | 32, 97 <= n && n <= 102 ? n - 97 + 10 : -1);
|
|
419
|
-
}
|
|
420
|
-
function xi(e) {
|
|
421
|
-
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
422
|
-
}
|
|
423
|
-
function mi(e) {
|
|
424
|
-
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
425
|
-
}
|
|
426
|
-
function ge(e) {
|
|
427
|
-
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
428
|
-
` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "\x85" : e === 95 ? "\xA0" : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
|
|
429
|
-
}
|
|
430
|
-
function gi(e) {
|
|
431
|
-
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
|
|
432
|
-
}
|
|
433
|
-
for (Ae = new Array(256), ve = new Array(256), L = 0; L < 256; L++) Ae[L] = ge(L) ? 1 : 0, ve[L] = ge(L);
|
|
434
|
-
var Ae;
|
|
435
|
-
var ve;
|
|
436
|
-
var L;
|
|
437
|
-
function Ai(e, n) {
|
|
438
|
-
this.input = e, this.filename = n.filename || null, this.schema = n.schema || pe, this.onWarning = n.onWarning || null, this.legacy = n.legacy || false, this.json = n.json || false, this.listener = n.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
439
|
-
}
|
|
440
|
-
function ye(e, n) {
|
|
441
|
-
var i = { name: e.filename, buffer: e.input.slice(0, -1), position: e.position, line: e.line, column: e.position - e.lineStart };
|
|
442
|
-
return i.snippet = on(i), new w(n, i);
|
|
443
|
-
}
|
|
444
|
-
function h(e, n) {
|
|
445
|
-
throw ye(e, n);
|
|
446
|
-
}
|
|
447
|
-
function K(e, n) {
|
|
448
|
-
e.onWarning && e.onWarning.call(null, ye(e, n));
|
|
449
|
-
}
|
|
450
|
-
var Ce = { YAML: function(n, i, l) {
|
|
451
|
-
var r, u, o;
|
|
452
|
-
n.version !== null && h(n, "duplication of %YAML directive"), l.length !== 1 && h(n, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(l[0]), r === null && h(n, "ill-formed argument of the YAML directive"), u = parseInt(r[1], 10), o = parseInt(r[2], 10), u !== 1 && h(n, "unacceptable YAML version of the document"), n.version = l[0], n.checkLineBreaks = o < 2, o !== 1 && o !== 2 && K(n, "unsupported YAML version of the document");
|
|
453
|
-
}, TAG: function(n, i, l) {
|
|
454
|
-
var r, u;
|
|
455
|
-
l.length !== 2 && h(n, "TAG directive accepts exactly two arguments"), r = l[0], u = l[1], se.test(r) || h(n, "ill-formed tag handle (first argument) of the TAG directive"), T.call(n.tagMap, r) && h(n, 'there is a previously declared suffix for "' + r + '" tag handle'), xe.test(u) || h(n, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
456
|
-
try {
|
|
457
|
-
u = decodeURIComponent(u);
|
|
458
|
-
} catch {
|
|
459
|
-
h(n, "tag prefix is malformed: " + u);
|
|
460
|
-
}
|
|
461
|
-
n.tagMap[r] = u;
|
|
462
|
-
} };
|
|
463
|
-
function O(e, n, i, l) {
|
|
464
|
-
var r, u, o, f;
|
|
465
|
-
if (n < i) {
|
|
466
|
-
if (f = e.input.slice(n, i), l) for (r = 0, u = f.length; r < u; r += 1) o = f.charCodeAt(r), o === 9 || 32 <= o && o <= 1114111 || h(e, "expected valid JSON character");
|
|
467
|
-
else ti.test(f) && h(e, "the stream contains non-printable characters");
|
|
468
|
-
e.result += f;
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
function _e(e, n, i, l) {
|
|
472
|
-
var r, u, o, f;
|
|
473
|
-
for (y.isObject(i) || h(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(i), o = 0, f = r.length; o < f; o += 1) u = r[o], T.call(n, u) || (n[u] = i[u], l[u] = true);
|
|
474
|
-
}
|
|
475
|
-
function N2(e, n, i, l, r, u, o, f, c) {
|
|
476
|
-
var a, t;
|
|
477
|
-
if (Array.isArray(r)) for (r = Array.prototype.slice.call(r), a = 0, t = r.length; a < t; a += 1) Array.isArray(r[a]) && h(e, "nested arrays are not supported inside keys"), typeof r == "object" && me(r[a]) === "[object Object]" && (r[a] = "[object Object]");
|
|
478
|
-
if (typeof r == "object" && me(r) === "[object Object]" && (r = "[object Object]"), r = String(r), n === null && (n = {}), l === "tag:yaml.org,2002:merge") if (Array.isArray(u)) for (a = 0, t = u.length; a < t; a += 1) _e(e, n, u[a], i);
|
|
479
|
-
else _e(e, n, u, i);
|
|
480
|
-
else !e.json && !T.call(i, r) && T.call(n, r) && (e.line = o || e.line, e.lineStart = f || e.lineStart, e.position = c || e.position, h(e, "duplicated mapping key")), r === "__proto__" ? Object.defineProperty(n, r, { configurable: true, enumerable: true, writable: true, value: u }) : n[r] = u, delete i[r];
|
|
481
|
-
return n;
|
|
482
|
-
}
|
|
483
|
-
function z(e) {
|
|
484
|
-
var n;
|
|
485
|
-
n = e.input.charCodeAt(e.position), n === 10 ? e.position++ : n === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : h(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
486
|
-
}
|
|
487
|
-
function v(e, n, i) {
|
|
488
|
-
for (var l = 0, r = e.input.charCodeAt(e.position); r !== 0; ) {
|
|
489
|
-
for (; I(r); ) r === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), r = e.input.charCodeAt(++e.position);
|
|
490
|
-
if (n && r === 35) do
|
|
491
|
-
r = e.input.charCodeAt(++e.position);
|
|
492
|
-
while (r !== 10 && r !== 13 && r !== 0);
|
|
493
|
-
if (S(r)) for (z(e), r = e.input.charCodeAt(e.position), l++, e.lineIndent = 0; r === 32; ) e.lineIndent++, r = e.input.charCodeAt(++e.position);
|
|
494
|
-
else break;
|
|
495
|
-
}
|
|
496
|
-
return i !== -1 && l !== 0 && e.lineIndent < i && K(e, "deficient indentation"), l;
|
|
497
|
-
}
|
|
498
|
-
function q(e) {
|
|
499
|
-
var n = e.position, i;
|
|
500
|
-
return i = e.input.charCodeAt(n), !!((i === 45 || i === 46) && i === e.input.charCodeAt(n + 1) && i === e.input.charCodeAt(n + 2) && (n += 3, i = e.input.charCodeAt(n), i === 0 || b(i)));
|
|
501
|
-
}
|
|
502
|
-
function J(e, n) {
|
|
503
|
-
n === 1 ? e.result += " " : n > 1 && (e.result += y.repeat(`
|
|
504
|
-
`, n - 1));
|
|
505
|
-
}
|
|
506
|
-
function vi(e, n, i) {
|
|
507
|
-
var l, r, u, o, f, c, a, t, p = e.kind, d = e.result, s;
|
|
508
|
-
if (s = e.input.charCodeAt(e.position), b(s) || k(s) || s === 35 || s === 38 || s === 42 || s === 33 || s === 124 || s === 62 || s === 39 || s === 34 || s === 37 || s === 64 || s === 96 || (s === 63 || s === 45) && (r = e.input.charCodeAt(e.position + 1), b(r) || i && k(r))) return false;
|
|
509
|
-
for (e.kind = "scalar", e.result = "", u = o = e.position, f = false; s !== 0; ) {
|
|
510
|
-
if (s === 58) {
|
|
511
|
-
if (r = e.input.charCodeAt(e.position + 1), b(r) || i && k(r)) break;
|
|
512
|
-
} else if (s === 35) {
|
|
513
|
-
if (l = e.input.charCodeAt(e.position - 1), b(l)) break;
|
|
514
|
-
} else {
|
|
515
|
-
if (e.position === e.lineStart && q(e) || i && k(s)) break;
|
|
516
|
-
if (S(s)) if (c = e.line, a = e.lineStart, t = e.lineIndent, v(e, false, -1), e.lineIndent >= n) {
|
|
517
|
-
f = true, s = e.input.charCodeAt(e.position);
|
|
518
|
-
continue;
|
|
519
|
-
} else {
|
|
520
|
-
e.position = o, e.line = c, e.lineStart = a, e.lineIndent = t;
|
|
521
|
-
break;
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
f && (O(e, u, o, false), J(e, e.line - c), u = o = e.position, f = false), I(s) || (o = e.position + 1), s = e.input.charCodeAt(++e.position);
|
|
525
|
-
}
|
|
526
|
-
return O(e, u, o, false), e.result ? true : (e.kind = p, e.result = d, false);
|
|
527
|
-
}
|
|
528
|
-
function yi(e, n) {
|
|
529
|
-
var i, l, r;
|
|
530
|
-
if (i = e.input.charCodeAt(e.position), i !== 39) return false;
|
|
531
|
-
for (e.kind = "scalar", e.result = "", e.position++, l = r = e.position; (i = e.input.charCodeAt(e.position)) !== 0; ) if (i === 39) if (O(e, l, e.position, true), i = e.input.charCodeAt(++e.position), i === 39) l = e.position, e.position++, r = e.position;
|
|
532
|
-
else return true;
|
|
533
|
-
else S(i) ? (O(e, l, r, true), J(e, v(e, false, n)), l = r = e.position) : e.position === e.lineStart && q(e) ? h(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
|
|
534
|
-
h(e, "unexpected end of the stream within a single quoted scalar");
|
|
535
|
-
}
|
|
536
|
-
function Ci(e, n) {
|
|
537
|
-
var i, l, r, u, o, f;
|
|
538
|
-
if (f = e.input.charCodeAt(e.position), f !== 34) return false;
|
|
539
|
-
for (e.kind = "scalar", e.result = "", e.position++, i = l = e.position; (f = e.input.charCodeAt(e.position)) !== 0; ) {
|
|
540
|
-
if (f === 34) return O(e, i, e.position, true), e.position++, true;
|
|
541
|
-
if (f === 92) {
|
|
542
|
-
if (O(e, i, e.position, true), f = e.input.charCodeAt(++e.position), S(f)) v(e, false, n);
|
|
543
|
-
else if (f < 256 && Ae[f]) e.result += ve[f], e.position++;
|
|
544
|
-
else if ((o = xi(f)) > 0) {
|
|
545
|
-
for (r = o, u = 0; r > 0; r--) f = e.input.charCodeAt(++e.position), (o = si(f)) >= 0 ? u = (u << 4) + o : h(e, "expected hexadecimal character");
|
|
546
|
-
e.result += gi(u), e.position++;
|
|
547
|
-
} else h(e, "unknown escape sequence");
|
|
548
|
-
i = l = e.position;
|
|
549
|
-
} else S(f) ? (O(e, i, l, true), J(e, v(e, false, n)), i = l = e.position) : e.position === e.lineStart && q(e) ? h(e, "unexpected end of the document within a double quoted scalar") : (e.position++, l = e.position);
|
|
550
|
-
}
|
|
551
|
-
h(e, "unexpected end of the stream within a double quoted scalar");
|
|
552
|
-
}
|
|
553
|
-
function _i(e, n) {
|
|
554
|
-
var i = true, l, r, u, o = e.tag, f, c = e.anchor, a, t, p, d, s, x = /* @__PURE__ */ Object.create(null), g, A, F, m;
|
|
555
|
-
if (m = e.input.charCodeAt(e.position), m === 91) t = 93, s = false, f = [];
|
|
556
|
-
else if (m === 123) t = 125, s = true, f = {};
|
|
557
|
-
else return false;
|
|
558
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = f), m = e.input.charCodeAt(++e.position); m !== 0; ) {
|
|
559
|
-
if (v(e, true, n), m = e.input.charCodeAt(e.position), m === t) return e.position++, e.tag = o, e.anchor = c, e.kind = s ? "mapping" : "sequence", e.result = f, true;
|
|
560
|
-
i ? m === 44 && h(e, "expected the node content, but found ','") : h(e, "missed comma between flow collection entries"), A = g = F = null, p = d = false, m === 63 && (a = e.input.charCodeAt(e.position + 1), b(a) && (p = d = true, e.position++, v(e, true, n))), l = e.line, r = e.lineStart, u = e.position, R(e, n, H, false, true), A = e.tag, g = e.result, v(e, true, n), m = e.input.charCodeAt(e.position), (d || e.line === l) && m === 58 && (p = true, m = e.input.charCodeAt(++e.position), v(e, true, n), R(e, n, H, false, true), F = e.result), s ? N2(e, f, x, A, g, F, l, r, u) : p ? f.push(N2(e, null, x, A, g, F, l, r, u)) : f.push(g), v(e, true, n), m = e.input.charCodeAt(e.position), m === 44 ? (i = true, m = e.input.charCodeAt(++e.position)) : i = false;
|
|
561
|
-
}
|
|
562
|
-
h(e, "unexpected end of the stream within a flow collection");
|
|
563
|
-
}
|
|
564
|
-
function wi(e, n) {
|
|
565
|
-
var i, l, r = Z, u = false, o = false, f = n, c = 0, a = false, t, p;
|
|
566
|
-
if (p = e.input.charCodeAt(e.position), p === 124) l = false;
|
|
567
|
-
else if (p === 62) l = true;
|
|
568
|
-
else return false;
|
|
569
|
-
for (e.kind = "scalar", e.result = ""; p !== 0; ) if (p = e.input.charCodeAt(++e.position), p === 43 || p === 45) Z === r ? r = p === 43 ? de : pi : h(e, "repeat of a chomping mode identifier");
|
|
570
|
-
else if ((t = mi(p)) >= 0) t === 0 ? h(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? h(e, "repeat of an indentation width identifier") : (f = n + t - 1, o = true);
|
|
571
|
-
else break;
|
|
572
|
-
if (I(p)) {
|
|
573
|
-
do
|
|
574
|
-
p = e.input.charCodeAt(++e.position);
|
|
575
|
-
while (I(p));
|
|
576
|
-
if (p === 35) do
|
|
577
|
-
p = e.input.charCodeAt(++e.position);
|
|
578
|
-
while (!S(p) && p !== 0);
|
|
579
|
-
}
|
|
580
|
-
for (; p !== 0; ) {
|
|
581
|
-
for (z(e), e.lineIndent = 0, p = e.input.charCodeAt(e.position); (!o || e.lineIndent < f) && p === 32; ) e.lineIndent++, p = e.input.charCodeAt(++e.position);
|
|
582
|
-
if (!o && e.lineIndent > f && (f = e.lineIndent), S(p)) {
|
|
583
|
-
c++;
|
|
584
|
-
continue;
|
|
585
|
-
}
|
|
586
|
-
if (e.lineIndent < f) {
|
|
587
|
-
r === de ? e.result += y.repeat(`
|
|
588
|
-
`, u ? 1 + c : c) : r === Z && u && (e.result += `
|
|
589
|
-
`);
|
|
590
|
-
break;
|
|
591
|
-
}
|
|
592
|
-
for (l ? I(p) ? (a = true, e.result += y.repeat(`
|
|
593
|
-
`, u ? 1 + c : c)) : a ? (a = false, e.result += y.repeat(`
|
|
594
|
-
`, c + 1)) : c === 0 ? u && (e.result += " ") : e.result += y.repeat(`
|
|
595
|
-
`, c) : e.result += y.repeat(`
|
|
596
|
-
`, u ? 1 + c : c), u = true, o = true, c = 0, i = e.position; !S(p) && p !== 0; ) p = e.input.charCodeAt(++e.position);
|
|
597
|
-
O(e, i, e.position, false);
|
|
598
|
-
}
|
|
599
|
-
return true;
|
|
600
|
-
}
|
|
601
|
-
function we(e, n) {
|
|
602
|
-
var i, l = e.tag, r = e.anchor, u = [], o, f = false, c;
|
|
603
|
-
if (e.firstTabInLine !== -1) return false;
|
|
604
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, h(e, "tab characters must not be used in indentation")), !(c !== 45 || (o = e.input.charCodeAt(e.position + 1), !b(o)))); ) {
|
|
605
|
-
if (f = true, e.position++, v(e, true, -1) && e.lineIndent <= n) {
|
|
606
|
-
u.push(null), c = e.input.charCodeAt(e.position);
|
|
607
|
-
continue;
|
|
608
|
-
}
|
|
609
|
-
if (i = e.line, R(e, n, he, false, true), u.push(e.result), v(e, true, -1), c = e.input.charCodeAt(e.position), (e.line === i || e.lineIndent > n) && c !== 0) h(e, "bad indentation of a sequence entry");
|
|
610
|
-
else if (e.lineIndent < n) break;
|
|
611
|
-
}
|
|
612
|
-
return f ? (e.tag = l, e.anchor = r, e.kind = "sequence", e.result = u, true) : false;
|
|
613
|
-
}
|
|
614
|
-
function bi(e, n, i) {
|
|
615
|
-
var l, r, u, o, f, c, a = e.tag, t = e.anchor, p = {}, d = /* @__PURE__ */ Object.create(null), s = null, x = null, g = null, A = false, F = false, m;
|
|
616
|
-
if (e.firstTabInLine !== -1) return false;
|
|
617
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = p), m = e.input.charCodeAt(e.position); m !== 0; ) {
|
|
618
|
-
if (!A && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, h(e, "tab characters must not be used in indentation")), l = e.input.charCodeAt(e.position + 1), u = e.line, (m === 63 || m === 58) && b(l)) m === 63 ? (A && (N2(e, p, d, s, x, null, o, f, c), s = x = g = null), F = true, A = true, r = true) : A ? (A = false, r = true) : h(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, m = l;
|
|
619
|
-
else {
|
|
620
|
-
if (o = e.line, f = e.lineStart, c = e.position, !R(e, i, te, false, true)) break;
|
|
621
|
-
if (e.line === u) {
|
|
622
|
-
for (m = e.input.charCodeAt(e.position); I(m); ) m = e.input.charCodeAt(++e.position);
|
|
623
|
-
if (m === 58) m = e.input.charCodeAt(++e.position), b(m) || h(e, "a whitespace character is expected after the key-value separator within a block mapping"), A && (N2(e, p, d, s, x, null, o, f, c), s = x = g = null), F = true, A = false, r = false, s = e.tag, x = e.result;
|
|
624
|
-
else if (F) h(e, "can not read an implicit mapping pair; a colon is missed");
|
|
625
|
-
else return e.tag = a, e.anchor = t, true;
|
|
626
|
-
} else if (F) h(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
627
|
-
else return e.tag = a, e.anchor = t, true;
|
|
628
|
-
}
|
|
629
|
-
if ((e.line === u || e.lineIndent > n) && (A && (o = e.line, f = e.lineStart, c = e.position), R(e, n, U, true, r) && (A ? x = e.result : g = e.result), A || (N2(e, p, d, s, x, g, o, f, c), s = x = g = null), v(e, true, -1), m = e.input.charCodeAt(e.position)), (e.line === u || e.lineIndent > n) && m !== 0) h(e, "bad indentation of a mapping entry");
|
|
630
|
-
else if (e.lineIndent < n) break;
|
|
631
|
-
}
|
|
632
|
-
return A && N2(e, p, d, s, x, null, o, f, c), F && (e.tag = a, e.anchor = t, e.kind = "mapping", e.result = p), F;
|
|
633
|
-
}
|
|
634
|
-
function Fi(e) {
|
|
635
|
-
var n, i = false, l = false, r, u, o;
|
|
636
|
-
if (o = e.input.charCodeAt(e.position), o !== 33) return false;
|
|
637
|
-
if (e.tag !== null && h(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (i = true, o = e.input.charCodeAt(++e.position)) : o === 33 ? (l = true, r = "!!", o = e.input.charCodeAt(++e.position)) : r = "!", n = e.position, i) {
|
|
638
|
-
do
|
|
639
|
-
o = e.input.charCodeAt(++e.position);
|
|
640
|
-
while (o !== 0 && o !== 62);
|
|
641
|
-
e.position < e.length ? (u = e.input.slice(n, e.position), o = e.input.charCodeAt(++e.position)) : h(e, "unexpected end of the stream within a verbatim tag");
|
|
642
|
-
} else {
|
|
643
|
-
for (; o !== 0 && !b(o); ) o === 33 && (l ? h(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(n - 1, e.position + 1), se.test(r) || h(e, "named tag handle cannot contain such characters"), l = true, n = e.position + 1)), o = e.input.charCodeAt(++e.position);
|
|
644
|
-
u = e.input.slice(n, e.position), di.test(u) && h(e, "tag suffix cannot contain flow indicator characters");
|
|
645
|
-
}
|
|
646
|
-
u && !xe.test(u) && h(e, "tag name cannot contain such characters: " + u);
|
|
647
|
-
try {
|
|
648
|
-
u = decodeURIComponent(u);
|
|
649
|
-
} catch {
|
|
650
|
-
h(e, "tag name is malformed: " + u);
|
|
651
|
-
}
|
|
652
|
-
return i ? e.tag = u : T.call(e.tagMap, r) ? e.tag = e.tagMap[r] + u : r === "!" ? e.tag = "!" + u : r === "!!" ? e.tag = "tag:yaml.org,2002:" + u : h(e, 'undeclared tag handle "' + r + '"'), true;
|
|
653
|
-
}
|
|
654
|
-
function Si(e) {
|
|
655
|
-
var n, i;
|
|
656
|
-
if (i = e.input.charCodeAt(e.position), i !== 38) return false;
|
|
657
|
-
for (e.anchor !== null && h(e, "duplication of an anchor property"), i = e.input.charCodeAt(++e.position), n = e.position; i !== 0 && !b(i) && !k(i); ) i = e.input.charCodeAt(++e.position);
|
|
658
|
-
return e.position === n && h(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), true;
|
|
659
|
-
}
|
|
660
|
-
function Ei(e) {
|
|
661
|
-
var n, i, l;
|
|
662
|
-
if (l = e.input.charCodeAt(e.position), l !== 42) return false;
|
|
663
|
-
for (l = e.input.charCodeAt(++e.position), n = e.position; l !== 0 && !b(l) && !k(l); ) l = e.input.charCodeAt(++e.position);
|
|
664
|
-
return e.position === n && h(e, "name of an alias node must contain at least one character"), i = e.input.slice(n, e.position), T.call(e.anchorMap, i) || h(e, 'unidentified alias "' + i + '"'), e.result = e.anchorMap[i], v(e, true, -1), true;
|
|
665
|
-
}
|
|
666
|
-
function R(e, n, i, l, r) {
|
|
667
|
-
var u, o, f, c = 1, a = false, t = false, p, d, s, x, g, A;
|
|
668
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, u = o = f = U === i || he === i, l && v(e, true, -1) && (a = true, e.lineIndent > n ? c = 1 : e.lineIndent === n ? c = 0 : e.lineIndent < n && (c = -1)), c === 1) for (; Fi(e) || Si(e); ) v(e, true, -1) ? (a = true, f = u, e.lineIndent > n ? c = 1 : e.lineIndent === n ? c = 0 : e.lineIndent < n && (c = -1)) : f = false;
|
|
669
|
-
if (f && (f = a || r), (c === 1 || U === i) && (H === i || te === i ? g = n : g = n + 1, A = e.position - e.lineStart, c === 1 ? f && (we(e, A) || bi(e, A, g)) || _i(e, g) ? t = true : (o && wi(e, g) || yi(e, g) || Ci(e, g) ? t = true : Ei(e) ? (t = true, (e.tag !== null || e.anchor !== null) && h(e, "alias node should not have any properties")) : vi(e, g, H === i) && (t = true, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (t = f && we(e, A))), e.tag === null) e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
670
|
-
else if (e.tag === "?") {
|
|
671
|
-
for (e.result !== null && e.kind !== "scalar" && h(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), p = 0, d = e.implicitTypes.length; p < d; p += 1) if (x = e.implicitTypes[p], x.resolve(e.result)) {
|
|
672
|
-
e.result = x.construct(e.result), e.tag = x.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
673
|
-
break;
|
|
674
|
-
}
|
|
675
|
-
} else if (e.tag !== "!") {
|
|
676
|
-
if (T.call(e.typeMap[e.kind || "fallback"], e.tag)) x = e.typeMap[e.kind || "fallback"][e.tag];
|
|
677
|
-
else for (x = null, s = e.typeMap.multi[e.kind || "fallback"], p = 0, d = s.length; p < d; p += 1) if (e.tag.slice(0, s[p].tag.length) === s[p].tag) {
|
|
678
|
-
x = s[p];
|
|
679
|
-
break;
|
|
680
|
-
}
|
|
681
|
-
x || h(e, "unknown tag !<" + e.tag + ">"), e.result !== null && x.kind !== e.kind && h(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + x.kind + '", not "' + e.kind + '"'), x.resolve(e.result, e.tag) ? (e.result = x.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : h(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
682
|
-
}
|
|
683
|
-
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || t;
|
|
684
|
-
}
|
|
685
|
-
function Ti(e) {
|
|
686
|
-
var n = e.position, i, l, r, u = false, o;
|
|
687
|
-
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (v(e, true, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
|
|
688
|
-
for (u = true, o = e.input.charCodeAt(++e.position), i = e.position; o !== 0 && !b(o); ) o = e.input.charCodeAt(++e.position);
|
|
689
|
-
for (l = e.input.slice(i, e.position), r = [], l.length < 1 && h(e, "directive name must not be less than one character in length"); o !== 0; ) {
|
|
690
|
-
for (; I(o); ) o = e.input.charCodeAt(++e.position);
|
|
691
|
-
if (o === 35) {
|
|
692
|
-
do
|
|
693
|
-
o = e.input.charCodeAt(++e.position);
|
|
694
|
-
while (o !== 0 && !S(o));
|
|
695
|
-
break;
|
|
696
|
-
}
|
|
697
|
-
if (S(o)) break;
|
|
698
|
-
for (i = e.position; o !== 0 && !b(o); ) o = e.input.charCodeAt(++e.position);
|
|
699
|
-
r.push(e.input.slice(i, e.position));
|
|
700
|
-
}
|
|
701
|
-
o !== 0 && z(e), T.call(Ce, l) ? Ce[l](e, l, r) : K(e, 'unknown document directive "' + l + '"');
|
|
702
|
-
}
|
|
703
|
-
if (v(e, true, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, v(e, true, -1)) : u && h(e, "directives end mark is expected"), R(e, e.lineIndent - 1, U, false, true), v(e, true, -1), e.checkLineBreaks && hi.test(e.input.slice(n, e.position)) && K(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && q(e)) {
|
|
704
|
-
e.input.charCodeAt(e.position) === 46 && (e.position += 3, v(e, true, -1));
|
|
705
|
-
return;
|
|
706
|
-
}
|
|
707
|
-
if (e.position < e.length - 1) h(e, "end of the stream or a document separator is expected");
|
|
708
|
-
else return;
|
|
709
|
-
}
|
|
710
|
-
function be(e, n) {
|
|
711
|
-
e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
712
|
-
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
713
|
-
var i = new Ai(e, n), l = e.indexOf("\0");
|
|
714
|
-
for (l !== -1 && (i.position = l, h(i, "null byte is not allowed in input")), i.input += "\0"; i.input.charCodeAt(i.position) === 32; ) i.lineIndent += 1, i.position += 1;
|
|
715
|
-
for (; i.position < i.length - 1; ) Ti(i);
|
|
716
|
-
return i.documents;
|
|
717
|
-
}
|
|
718
|
-
function Oi(e, n, i) {
|
|
719
|
-
n !== null && typeof n == "object" && typeof i > "u" && (i = n, n = null);
|
|
720
|
-
var l = be(e, i);
|
|
721
|
-
if (typeof n != "function") return l;
|
|
722
|
-
for (var r = 0, u = l.length; r < u; r += 1) n(l[r]);
|
|
723
|
-
}
|
|
724
|
-
function Ii(e, n) {
|
|
725
|
-
var i = be(e, n);
|
|
726
|
-
if (i.length !== 0) {
|
|
727
|
-
if (i.length === 1) return i[0];
|
|
728
|
-
throw new w("expected a single document in the stream, but found more");
|
|
729
|
-
}
|
|
730
|
-
}
|
|
731
|
-
var ki = Oi;
|
|
732
|
-
var Li = Ii;
|
|
733
|
-
var Ni = { loadAll: ki, load: Li };
|
|
734
|
-
var Fe = Object.prototype.toString;
|
|
735
|
-
var Se = Object.prototype.hasOwnProperty;
|
|
736
|
-
var ee = 65279;
|
|
737
|
-
var Ri = 9;
|
|
738
|
-
var Y = 10;
|
|
739
|
-
var Di = 13;
|
|
740
|
-
var Mi = 32;
|
|
741
|
-
var Yi = 33;
|
|
742
|
-
var Bi = 34;
|
|
743
|
-
var ne = 35;
|
|
744
|
-
var Pi = 37;
|
|
745
|
-
var ji = 38;
|
|
746
|
-
var Hi = 39;
|
|
747
|
-
var Ui = 42;
|
|
748
|
-
var Ee = 44;
|
|
749
|
-
var Ki = 45;
|
|
750
|
-
var G = 58;
|
|
751
|
-
var qi = 61;
|
|
752
|
-
var Gi = 62;
|
|
753
|
-
var Wi = 63;
|
|
754
|
-
var $i = 64;
|
|
755
|
-
var Te = 91;
|
|
756
|
-
var Oe = 93;
|
|
757
|
-
var Qi = 96;
|
|
758
|
-
var Ie = 123;
|
|
759
|
-
var Vi = 124;
|
|
760
|
-
var ke = 125;
|
|
761
|
-
var _ = {};
|
|
762
|
-
_[0] = "\\0", _[7] = "\\a", _[8] = "\\b", _[9] = "\\t", _[10] = "\\n", _[11] = "\\v", _[12] = "\\f", _[13] = "\\r", _[27] = "\\e", _[34] = '\\"', _[92] = "\\\\", _[133] = "\\N", _[160] = "\\_", _[8232] = "\\L", _[8233] = "\\P";
|
|
763
|
-
var Xi = ["y", "Y", "yes", "Yes", "YES", "on", "On", "ON", "n", "N", "no", "No", "NO", "off", "Off", "OFF"];
|
|
764
|
-
var Zi = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
765
|
-
function zi(e, n) {
|
|
766
|
-
var i, l, r, u, o, f, c;
|
|
767
|
-
if (n === null) return {};
|
|
768
|
-
for (i = {}, l = Object.keys(n), r = 0, u = l.length; r < u; r += 1) o = l[r], f = String(n[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), c = e.compiledTypeMap.fallback[o], c && Se.call(c.styleAliases, f) && (f = c.styleAliases[f]), i[o] = f;
|
|
769
|
-
return i;
|
|
770
|
-
}
|
|
771
|
-
function Ji(e) {
|
|
772
|
-
var n, i, l;
|
|
773
|
-
if (n = e.toString(16).toUpperCase(), e <= 255) i = "x", l = 2;
|
|
774
|
-
else if (e <= 65535) i = "u", l = 4;
|
|
775
|
-
else if (e <= 4294967295) i = "U", l = 8;
|
|
776
|
-
else throw new w("code point within a string may not be greater than 0xFFFFFFFF");
|
|
777
|
-
return "\\" + i + y.repeat("0", l - n.length) + n;
|
|
778
|
-
}
|
|
779
|
-
var er = 1;
|
|
780
|
-
var B = 2;
|
|
781
|
-
function nr(e) {
|
|
782
|
-
this.schema = e.schema || pe, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || false, this.skipInvalid = e.skipInvalid || false, this.flowLevel = y.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = zi(this.schema, e.styles || null), this.sortKeys = e.sortKeys || false, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || false, this.noCompatMode = e.noCompatMode || false, this.condenseFlow = e.condenseFlow || false, this.quotingType = e.quotingType === '"' ? B : er, this.forceQuotes = e.forceQuotes || false, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
783
|
-
}
|
|
784
|
-
function Le(e, n) {
|
|
785
|
-
for (var i = y.repeat(" ", n), l = 0, r = -1, u = "", o, f = e.length; l < f; ) r = e.indexOf(`
|
|
786
|
-
`, l), r === -1 ? (o = e.slice(l), l = f) : (o = e.slice(l, r + 1), l = r + 1), o.length && o !== `
|
|
787
|
-
` && (u += i), u += o;
|
|
788
|
-
return u;
|
|
789
|
-
}
|
|
790
|
-
function ie(e, n) {
|
|
791
|
-
return `
|
|
792
|
-
` + y.repeat(" ", e.indent * n);
|
|
793
|
-
}
|
|
794
|
-
function ir(e, n) {
|
|
795
|
-
var i, l, r;
|
|
796
|
-
for (i = 0, l = e.implicitTypes.length; i < l; i += 1) if (r = e.implicitTypes[i], r.resolve(n)) return true;
|
|
797
|
-
return false;
|
|
798
|
-
}
|
|
799
|
-
function W(e) {
|
|
800
|
-
return e === Mi || e === Ri;
|
|
801
|
-
}
|
|
802
|
-
function P(e) {
|
|
803
|
-
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== ee || 65536 <= e && e <= 1114111;
|
|
804
|
-
}
|
|
805
|
-
function Ne(e) {
|
|
806
|
-
return P(e) && e !== ee && e !== Di && e !== Y;
|
|
807
|
-
}
|
|
808
|
-
function Re(e, n, i) {
|
|
809
|
-
var l = Ne(e), r = l && !W(e);
|
|
810
|
-
return (i ? l : l && e !== Ee && e !== Te && e !== Oe && e !== Ie && e !== ke) && e !== ne && !(n === G && !r) || Ne(n) && !W(n) && e === ne || n === G && r;
|
|
811
|
-
}
|
|
812
|
-
function rr(e) {
|
|
813
|
-
return P(e) && e !== ee && !W(e) && e !== Ki && e !== Wi && e !== G && e !== Ee && e !== Te && e !== Oe && e !== Ie && e !== ke && e !== ne && e !== ji && e !== Ui && e !== Yi && e !== Vi && e !== qi && e !== Gi && e !== Hi && e !== Bi && e !== Pi && e !== $i && e !== Qi;
|
|
814
|
-
}
|
|
815
|
-
function lr(e) {
|
|
816
|
-
return !W(e) && e !== G;
|
|
817
|
-
}
|
|
818
|
-
function j(e, n) {
|
|
819
|
-
var i = e.charCodeAt(n), l;
|
|
820
|
-
return i >= 55296 && i <= 56319 && n + 1 < e.length && (l = e.charCodeAt(n + 1), l >= 56320 && l <= 57343) ? (i - 55296) * 1024 + l - 56320 + 65536 : i;
|
|
821
|
-
}
|
|
822
|
-
function De(e) {
|
|
823
|
-
var n = /^\n* /;
|
|
824
|
-
return n.test(e);
|
|
825
|
-
}
|
|
826
|
-
var Me = 1;
|
|
827
|
-
var re = 2;
|
|
828
|
-
var Ye = 3;
|
|
829
|
-
var Be = 4;
|
|
830
|
-
var D = 5;
|
|
831
|
-
function or(e, n, i, l, r, u, o, f) {
|
|
832
|
-
var c, a = 0, t = null, p = false, d = false, s = l !== -1, x = -1, g = rr(j(e, 0)) && lr(j(e, e.length - 1));
|
|
833
|
-
if (n || o) for (c = 0; c < e.length; a >= 65536 ? c += 2 : c++) {
|
|
834
|
-
if (a = j(e, c), !P(a)) return D;
|
|
835
|
-
g = g && Re(a, t, f), t = a;
|
|
836
|
-
}
|
|
837
|
-
else {
|
|
838
|
-
for (c = 0; c < e.length; a >= 65536 ? c += 2 : c++) {
|
|
839
|
-
if (a = j(e, c), a === Y) p = true, s && (d = d || c - x - 1 > l && e[x + 1] !== " ", x = c);
|
|
840
|
-
else if (!P(a)) return D;
|
|
841
|
-
g = g && Re(a, t, f), t = a;
|
|
842
|
-
}
|
|
843
|
-
d = d || s && c - x - 1 > l && e[x + 1] !== " ";
|
|
844
|
-
}
|
|
845
|
-
return !p && !d ? g && !o && !r(e) ? Me : u === B ? D : re : i > 9 && De(e) ? D : o ? u === B ? D : re : d ? Be : Ye;
|
|
846
|
-
}
|
|
847
|
-
function ur(e, n, i, l, r) {
|
|
848
|
-
e.dump = function() {
|
|
849
|
-
if (n.length === 0) return e.quotingType === B ? '""' : "''";
|
|
850
|
-
if (!e.noCompatMode && (Xi.indexOf(n) !== -1 || Zi.test(n))) return e.quotingType === B ? '"' + n + '"' : "'" + n + "'";
|
|
851
|
-
var u = e.indent * Math.max(1, i), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - u), f = l || e.flowLevel > -1 && i >= e.flowLevel;
|
|
852
|
-
function c(a) {
|
|
853
|
-
return ir(e, a);
|
|
854
|
-
}
|
|
855
|
-
switch (or(n, f, e.indent, o, c, e.quotingType, e.forceQuotes && !l, r)) {
|
|
856
|
-
case Me:
|
|
857
|
-
return n;
|
|
858
|
-
case re:
|
|
859
|
-
return "'" + n.replace(/'/g, "''") + "'";
|
|
860
|
-
case Ye:
|
|
861
|
-
return "|" + Pe(n, e.indent) + je(Le(n, u));
|
|
862
|
-
case Be:
|
|
863
|
-
return ">" + Pe(n, e.indent) + je(Le(fr(n, o), u));
|
|
864
|
-
case D:
|
|
865
|
-
return '"' + cr(n) + '"';
|
|
866
|
-
default:
|
|
867
|
-
throw new w("impossible error: invalid scalar style");
|
|
868
|
-
}
|
|
869
|
-
}();
|
|
870
|
-
}
|
|
871
|
-
function Pe(e, n) {
|
|
872
|
-
var i = De(e) ? String(n) : "", l = e[e.length - 1] === `
|
|
873
|
-
`, r = l && (e[e.length - 2] === `
|
|
874
|
-
` || e === `
|
|
875
|
-
`), u = r ? "+" : l ? "" : "-";
|
|
876
|
-
return i + u + `
|
|
877
|
-
`;
|
|
878
|
-
}
|
|
879
|
-
function je(e) {
|
|
880
|
-
return e[e.length - 1] === `
|
|
881
|
-
` ? e.slice(0, -1) : e;
|
|
882
|
-
}
|
|
883
|
-
function fr(e, n) {
|
|
884
|
-
for (var i = /(\n+)([^\n]*)/g, l = function() {
|
|
885
|
-
var a = e.indexOf(`
|
|
886
|
-
`);
|
|
887
|
-
return a = a !== -1 ? a : e.length, i.lastIndex = a, He(e.slice(0, a), n);
|
|
888
|
-
}(), r = e[0] === `
|
|
889
|
-
` || e[0] === " ", u, o; o = i.exec(e); ) {
|
|
890
|
-
var f = o[1], c = o[2];
|
|
891
|
-
u = c[0] === " ", l += f + (!r && !u && c !== "" ? `
|
|
892
|
-
` : "") + He(c, n), r = u;
|
|
893
|
-
}
|
|
894
|
-
return l;
|
|
895
|
-
}
|
|
896
|
-
function He(e, n) {
|
|
897
|
-
if (e === "" || e[0] === " ") return e;
|
|
898
|
-
for (var i = / [^ ]/g, l, r = 0, u, o = 0, f = 0, c = ""; l = i.exec(e); ) f = l.index, f - r > n && (u = o > r ? o : f, c += `
|
|
899
|
-
` + e.slice(r, u), r = u + 1), o = f;
|
|
900
|
-
return c += `
|
|
901
|
-
`, e.length - r > n && o > r ? c += e.slice(r, o) + `
|
|
902
|
-
` + e.slice(o + 1) : c += e.slice(r), c.slice(1);
|
|
903
|
-
}
|
|
904
|
-
function cr(e) {
|
|
905
|
-
for (var n = "", i = 0, l, r = 0; r < e.length; i >= 65536 ? r += 2 : r++) i = j(e, r), l = _[i], !l && P(i) ? (n += e[r], i >= 65536 && (n += e[r + 1])) : n += l || Ji(i);
|
|
906
|
-
return n;
|
|
907
|
-
}
|
|
908
|
-
function ar(e, n, i) {
|
|
909
|
-
var l = "", r = e.tag, u, o, f;
|
|
910
|
-
for (u = 0, o = i.length; u < o; u += 1) f = i[u], e.replacer && (f = e.replacer.call(i, String(u), f)), (E(e, n, f, false, false) || typeof f > "u" && E(e, n, null, false, false)) && (l !== "" && (l += "," + (e.condenseFlow ? "" : " ")), l += e.dump);
|
|
911
|
-
e.tag = r, e.dump = "[" + l + "]";
|
|
912
|
-
}
|
|
913
|
-
function Ue(e, n, i, l) {
|
|
914
|
-
var r = "", u = e.tag, o, f, c;
|
|
915
|
-
for (o = 0, f = i.length; o < f; o += 1) c = i[o], e.replacer && (c = e.replacer.call(i, String(o), c)), (E(e, n + 1, c, true, true, false, true) || typeof c > "u" && E(e, n + 1, null, true, true, false, true)) && ((!l || r !== "") && (r += ie(e, n)), e.dump && Y === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
|
|
916
|
-
e.tag = u, e.dump = r || "[]";
|
|
917
|
-
}
|
|
918
|
-
function pr(e, n, i) {
|
|
919
|
-
var l = "", r = e.tag, u = Object.keys(i), o, f, c, a, t;
|
|
920
|
-
for (o = 0, f = u.length; o < f; o += 1) t = "", l !== "" && (t += ", "), e.condenseFlow && (t += '"'), c = u[o], a = i[c], e.replacer && (a = e.replacer.call(i, c, a)), E(e, n, c, false, false) && (e.dump.length > 1024 && (t += "? "), t += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), E(e, n, a, false, false) && (t += e.dump, l += t));
|
|
921
|
-
e.tag = r, e.dump = "{" + l + "}";
|
|
922
|
-
}
|
|
923
|
-
function tr(e, n, i, l) {
|
|
924
|
-
var r = "", u = e.tag, o = Object.keys(i), f, c, a, t, p, d;
|
|
925
|
-
if (e.sortKeys === true) o.sort();
|
|
926
|
-
else if (typeof e.sortKeys == "function") o.sort(e.sortKeys);
|
|
927
|
-
else if (e.sortKeys) throw new w("sortKeys must be a boolean or a function");
|
|
928
|
-
for (f = 0, c = o.length; f < c; f += 1) d = "", (!l || r !== "") && (d += ie(e, n)), a = o[f], t = i[a], e.replacer && (t = e.replacer.call(i, a, t)), E(e, n + 1, a, true, true, true) && (p = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, p && (e.dump && Y === e.dump.charCodeAt(0) ? d += "?" : d += "? "), d += e.dump, p && (d += ie(e, n)), E(e, n + 1, t, true, p) && (e.dump && Y === e.dump.charCodeAt(0) ? d += ":" : d += ": ", d += e.dump, r += d));
|
|
929
|
-
e.tag = u, e.dump = r || "{}";
|
|
930
|
-
}
|
|
931
|
-
function Ke(e, n, i) {
|
|
932
|
-
var l, r, u, o, f, c;
|
|
933
|
-
for (r = i ? e.explicitTypes : e.implicitTypes, u = 0, o = r.length; u < o; u += 1) if (f = r[u], (f.instanceOf || f.predicate) && (!f.instanceOf || typeof n == "object" && n instanceof f.instanceOf) && (!f.predicate || f.predicate(n))) {
|
|
934
|
-
if (i ? f.multi && f.representName ? e.tag = f.representName(n) : e.tag = f.tag : e.tag = "?", f.represent) {
|
|
935
|
-
if (c = e.styleMap[f.tag] || f.defaultStyle, Fe.call(f.represent) === "[object Function]") l = f.represent(n, c);
|
|
936
|
-
else if (Se.call(f.represent, c)) l = f.represent[c](n, c);
|
|
937
|
-
else throw new w("!<" + f.tag + '> tag resolver accepts not "' + c + '" style');
|
|
938
|
-
e.dump = l;
|
|
939
|
-
}
|
|
940
|
-
return true;
|
|
941
|
-
}
|
|
942
|
-
return false;
|
|
943
|
-
}
|
|
944
|
-
function E(e, n, i, l, r, u, o) {
|
|
945
|
-
e.tag = null, e.dump = i, Ke(e, i, false) || Ke(e, i, true);
|
|
946
|
-
var f = Fe.call(e.dump), c = l, a;
|
|
947
|
-
l && (l = e.flowLevel < 0 || e.flowLevel > n);
|
|
948
|
-
var t = f === "[object Object]" || f === "[object Array]", p, d;
|
|
949
|
-
if (t && (p = e.duplicates.indexOf(i), d = p !== -1), (e.tag !== null && e.tag !== "?" || d || e.indent !== 2 && n > 0) && (r = false), d && e.usedDuplicates[p]) e.dump = "*ref_" + p;
|
|
950
|
-
else {
|
|
951
|
-
if (t && d && !e.usedDuplicates[p] && (e.usedDuplicates[p] = true), f === "[object Object]") l && Object.keys(e.dump).length !== 0 ? (tr(e, n, e.dump, r), d && (e.dump = "&ref_" + p + e.dump)) : (pr(e, n, e.dump), d && (e.dump = "&ref_" + p + " " + e.dump));
|
|
952
|
-
else if (f === "[object Array]") l && e.dump.length !== 0 ? (e.noArrayIndent && !o && n > 0 ? Ue(e, n - 1, e.dump, r) : Ue(e, n, e.dump, r), d && (e.dump = "&ref_" + p + e.dump)) : (ar(e, n, e.dump), d && (e.dump = "&ref_" + p + " " + e.dump));
|
|
953
|
-
else if (f === "[object String]") e.tag !== "?" && ur(e, e.dump, n, u, c);
|
|
954
|
-
else {
|
|
955
|
-
if (f === "[object Undefined]") return false;
|
|
956
|
-
if (e.skipInvalid) return false;
|
|
957
|
-
throw new w("unacceptable kind of an object to dump " + f);
|
|
958
|
-
}
|
|
959
|
-
e.tag !== null && e.tag !== "?" && (a = encodeURI(e.tag[0] === "!" ? e.tag.slice(1) : e.tag).replace(/!/g, "%21"), e.tag[0] === "!" ? a = "!" + a : a.slice(0, 18) === "tag:yaml.org,2002:" ? a = "!!" + a.slice(18) : a = "!<" + a + ">", e.dump = a + " " + e.dump);
|
|
960
|
-
}
|
|
961
|
-
return true;
|
|
962
|
-
}
|
|
963
|
-
function hr(e, n) {
|
|
964
|
-
var i = [], l = [], r, u;
|
|
965
|
-
for (le(e, i, l), r = 0, u = l.length; r < u; r += 1) n.duplicates.push(i[l[r]]);
|
|
966
|
-
n.usedDuplicates = new Array(u);
|
|
967
|
-
}
|
|
968
|
-
function le(e, n, i) {
|
|
969
|
-
var l, r, u;
|
|
970
|
-
if (e !== null && typeof e == "object") if (r = n.indexOf(e), r !== -1) i.indexOf(r) === -1 && i.push(r);
|
|
971
|
-
else if (n.push(e), Array.isArray(e)) for (r = 0, u = e.length; r < u; r += 1) le(e[r], n, i);
|
|
972
|
-
else for (l = Object.keys(e), r = 0, u = l.length; r < u; r += 1) le(e[l[r]], n, i);
|
|
973
|
-
}
|
|
974
|
-
function dr(e, n) {
|
|
975
|
-
n = n || {};
|
|
976
|
-
var i = new nr(n);
|
|
977
|
-
i.noRefs || hr(e, i);
|
|
978
|
-
var l = e;
|
|
979
|
-
return i.replacer && (l = i.replacer.call({ "": l }, "", l)), E(i, 0, l, true, true) ? i.dump + `
|
|
980
|
-
` : "";
|
|
981
|
-
}
|
|
982
|
-
var sr = dr;
|
|
983
|
-
var xr = { dump: sr };
|
|
984
|
-
var mr = Ni.load;
|
|
985
|
-
var gr = xr.dump;
|
|
986
|
-
function Ar(e, n) {
|
|
987
|
-
const i = mr(e, n);
|
|
988
|
-
return N(e, i, n), i;
|
|
989
|
-
}
|
|
990
|
-
function vr(e, n) {
|
|
991
|
-
const i = C(e, { preserveIndentation: false }), l = typeof i.indent == "string" ? i.indent.length : i.indent, r = gr(e, { indent: l, ...n });
|
|
992
|
-
return i.whitespace.start + r.trim() + i.whitespace.end;
|
|
993
|
-
}
|
|
994
|
-
|
|
995
|
-
export {
|
|
996
|
-
Ar,
|
|
997
|
-
vr
|
|
998
|
-
};
|
|
999
|
-
/*! Bundled license information:
|
|
1000
|
-
|
|
1001
|
-
confbox/dist/yaml.mjs:
|
|
1002
|
-
(*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
|
|
1003
|
-
*/
|