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