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