@ea-lab/reactive-json 1.3.0 → 1.4.0
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/component/action/CustomEventListener.js +1 -1
- package/dist/component/action/ReactOnEvent.js +1 -1
- package/dist/component/attributeTransformer/setAttributeValue.js +1 -1
- package/dist/component/attributeTransformer/toggleAttributeValue.js +1 -1
- package/dist/component/attributeTransformer/unsetAttributeValue.js +1 -1
- package/dist/component/element/debug/VariablesDebug/VariablesDebug.js +1 -1
- package/dist/component/element/special/Count.js +1 -1
- package/dist/component/element/special/ReactiveJsonSubroot.js +1 -1
- package/dist/component/index.js +1 -1
- package/dist/component/reaction/fetchData.js +1 -1
- package/dist/component/reaction/index.js +1 -1
- package/dist/component/reaction/submitData.js +1 -1
- package/dist/component/reaction/utility/httpRequestCommon.js +2 -2
- package/dist/component/reaction/utility/index.js +1 -1
- package/dist/engine/ReactiveJsonRoot.js +1 -1
- package/dist/engine/utility/parseRjBuild.js +1 -1
- package/dist/{httpRequestCommon-BNA1zivP.js → httpRequestCommon-C7MsJIKA.js} +370 -358
- package/dist/{js-yaml-Bw0KO4XO.js → js-yaml-CFDLc3Ha.js} +196 -193
- package/dist/main.js +1 -1
- package/package.json +2 -2
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
/*! js-yaml 4.1.
|
|
1
|
+
/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
|
|
2
2
|
function Q(i) {
|
|
3
3
|
return typeof i > "u" || i === null;
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function pi(i) {
|
|
6
6
|
return typeof i == "object" && i !== null;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function ai(i) {
|
|
9
9
|
return Array.isArray(i) ? i : Q(i) ? [] : [i];
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function hi(i, n) {
|
|
12
12
|
var e, l, r, u;
|
|
13
13
|
if (n)
|
|
14
14
|
for (u = Object.keys(n), e = 0, l = u.length; e < l; e += 1)
|
|
15
15
|
r = u[e], i[r] = n[r];
|
|
16
16
|
return i;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function si(i, n) {
|
|
19
19
|
var e = "", l;
|
|
20
20
|
for (l = 0; l < n; l += 1)
|
|
21
21
|
e += i;
|
|
22
22
|
return e;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function di(i) {
|
|
25
25
|
return i === 0 && Number.NEGATIVE_INFINITY === 1 / i;
|
|
26
26
|
}
|
|
27
|
-
var
|
|
28
|
-
isNothing:
|
|
29
|
-
isObject:
|
|
30
|
-
toArray:
|
|
31
|
-
repeat:
|
|
32
|
-
isNegativeZero:
|
|
33
|
-
extend:
|
|
27
|
+
var xi = Q, mi = pi, gi = ai, Ai = si, vi = di, yi = hi, b = {
|
|
28
|
+
isNothing: xi,
|
|
29
|
+
isObject: mi,
|
|
30
|
+
toArray: gi,
|
|
31
|
+
repeat: Ai,
|
|
32
|
+
isNegativeZero: vi,
|
|
33
|
+
extend: yi
|
|
34
34
|
};
|
|
35
35
|
function J(i, n) {
|
|
36
36
|
var e = "", l = i.reason || "(unknown reason)";
|
|
@@ -56,7 +56,7 @@ function P(i, n, e, l, r) {
|
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
function B(i, n) {
|
|
59
|
-
return
|
|
59
|
+
return b.repeat(" ", n - i.length) + i;
|
|
60
60
|
}
|
|
61
61
|
function bi(i, n) {
|
|
62
62
|
if (n = Object.create(n || null), !i.buffer) return null;
|
|
@@ -72,10 +72,10 @@ function bi(i, n) {
|
|
|
72
72
|
r[o - f],
|
|
73
73
|
i.position - (l[o] - l[o - f]),
|
|
74
74
|
t
|
|
75
|
-
), c =
|
|
75
|
+
), c = b.repeat(" ", n.indent) + B((i.line - f + 1).toString(), s) + " | " + h.str + `
|
|
76
76
|
` + c;
|
|
77
|
-
for (h = P(i.buffer, l[o], r[o], i.position, t), c +=
|
|
78
|
-
`, c +=
|
|
77
|
+
for (h = P(i.buffer, l[o], r[o], i.position, t), c += b.repeat(" ", n.indent) + B((i.line + 1).toString(), s) + " | " + h.str + `
|
|
78
|
+
`, c += b.repeat("-", n.indent + s + 3 + h.pos) + `^
|
|
79
79
|
`, f = 1; f <= n.linesAfter && !(o + f >= r.length); f++)
|
|
80
80
|
h = P(
|
|
81
81
|
i.buffer,
|
|
@@ -83,11 +83,11 @@ function bi(i, n) {
|
|
|
83
83
|
r[o + f],
|
|
84
84
|
i.position - (l[o] - l[o + f]),
|
|
85
85
|
t
|
|
86
|
-
), c +=
|
|
86
|
+
), c += b.repeat(" ", n.indent) + B((i.line + f + 1).toString(), s) + " | " + h.str + `
|
|
87
87
|
`;
|
|
88
88
|
return c.replace(/\n$/, "");
|
|
89
89
|
}
|
|
90
|
-
var
|
|
90
|
+
var wi = bi, Ci = [
|
|
91
91
|
"kind",
|
|
92
92
|
"multi",
|
|
93
93
|
"resolve",
|
|
@@ -98,12 +98,12 @@ var yi = bi, wi = [
|
|
|
98
98
|
"representName",
|
|
99
99
|
"defaultStyle",
|
|
100
100
|
"styleAliases"
|
|
101
|
-
],
|
|
101
|
+
], _i = [
|
|
102
102
|
"scalar",
|
|
103
103
|
"sequence",
|
|
104
104
|
"mapping"
|
|
105
105
|
];
|
|
106
|
-
function
|
|
106
|
+
function ki(i) {
|
|
107
107
|
var n = {};
|
|
108
108
|
return i !== null && Object.keys(i).forEach(function(e) {
|
|
109
109
|
i[e].forEach(function(l) {
|
|
@@ -111,18 +111,18 @@ function _i(i) {
|
|
|
111
111
|
});
|
|
112
112
|
}), n;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Si(i, n) {
|
|
115
115
|
if (n = n || {}, Object.keys(n).forEach(function(e) {
|
|
116
|
-
if (
|
|
116
|
+
if (Ci.indexOf(e) === -1)
|
|
117
117
|
throw new k('Unknown option "' + e + '" is met in definition of "' + i + '" YAML type.');
|
|
118
118
|
}), this.options = n, this.tag = i, this.kind = n.kind || null, this.resolve = n.resolve || function() {
|
|
119
119
|
return !0;
|
|
120
120
|
}, this.construct = n.construct || function(e) {
|
|
121
121
|
return e;
|
|
122
|
-
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases =
|
|
122
|
+
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = ki(n.styleAliases || null), _i.indexOf(this.kind) === -1)
|
|
123
123
|
throw new k('Unknown kind "' + this.kind + '" is specified for "' + i + '" YAML type.');
|
|
124
124
|
}
|
|
125
|
-
var
|
|
125
|
+
var y = Si;
|
|
126
126
|
function H(i, n) {
|
|
127
127
|
var e = [];
|
|
128
128
|
return i[n].forEach(function(l) {
|
|
@@ -132,7 +132,7 @@ function H(i, n) {
|
|
|
132
132
|
}), e[r] = l;
|
|
133
133
|
}), e;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Ii() {
|
|
136
136
|
var i = {
|
|
137
137
|
scalar: {},
|
|
138
138
|
sequence: {},
|
|
@@ -157,7 +157,7 @@ function U(i) {
|
|
|
157
157
|
}
|
|
158
158
|
U.prototype.extend = function(n) {
|
|
159
159
|
var e = [], l = [];
|
|
160
|
-
if (n instanceof
|
|
160
|
+
if (n instanceof y)
|
|
161
161
|
l.push(n);
|
|
162
162
|
else if (Array.isArray(n))
|
|
163
163
|
l = l.concat(n);
|
|
@@ -166,57 +166,57 @@ U.prototype.extend = function(n) {
|
|
|
166
166
|
else
|
|
167
167
|
throw new k("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
168
168
|
e.forEach(function(u) {
|
|
169
|
-
if (!(u instanceof
|
|
169
|
+
if (!(u instanceof y))
|
|
170
170
|
throw new k("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
171
171
|
if (u.loadKind && u.loadKind !== "scalar")
|
|
172
172
|
throw new k("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
173
173
|
if (u.multi)
|
|
174
174
|
throw new k("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
175
175
|
}), l.forEach(function(u) {
|
|
176
|
-
if (!(u instanceof
|
|
176
|
+
if (!(u instanceof y))
|
|
177
177
|
throw new k("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
178
178
|
});
|
|
179
179
|
var r = Object.create(U.prototype);
|
|
180
|
-
return r.implicit = (this.implicit || []).concat(e), r.explicit = (this.explicit || []).concat(l), r.compiledImplicit = H(r, "implicit"), r.compiledExplicit = H(r, "explicit"), r.compiledTypeMap =
|
|
180
|
+
return r.implicit = (this.implicit || []).concat(e), r.explicit = (this.explicit || []).concat(l), r.compiledImplicit = H(r, "implicit"), r.compiledExplicit = H(r, "explicit"), r.compiledTypeMap = Ii(r.compiledImplicit, r.compiledExplicit), r;
|
|
181
181
|
};
|
|
182
|
-
var
|
|
182
|
+
var Ti = U, Fi = new y("tag:yaml.org,2002:str", {
|
|
183
183
|
kind: "scalar",
|
|
184
184
|
construct: function(i) {
|
|
185
185
|
return i !== null ? i : "";
|
|
186
186
|
}
|
|
187
|
-
}),
|
|
187
|
+
}), Oi = new y("tag:yaml.org,2002:seq", {
|
|
188
188
|
kind: "sequence",
|
|
189
189
|
construct: function(i) {
|
|
190
190
|
return i !== null ? i : [];
|
|
191
191
|
}
|
|
192
|
-
}),
|
|
192
|
+
}), Ei = new y("tag:yaml.org,2002:map", {
|
|
193
193
|
kind: "mapping",
|
|
194
194
|
construct: function(i) {
|
|
195
195
|
return i !== null ? i : {};
|
|
196
196
|
}
|
|
197
|
-
}),
|
|
197
|
+
}), Ni = new Ti({
|
|
198
198
|
explicit: [
|
|
199
|
-
Ti,
|
|
200
199
|
Fi,
|
|
201
|
-
Oi
|
|
200
|
+
Oi,
|
|
201
|
+
Ei
|
|
202
202
|
]
|
|
203
203
|
});
|
|
204
|
-
function
|
|
204
|
+
function Li(i) {
|
|
205
205
|
if (i === null) return !0;
|
|
206
206
|
var n = i.length;
|
|
207
207
|
return n === 1 && i === "~" || n === 4 && (i === "null" || i === "Null" || i === "NULL");
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function Mi() {
|
|
210
210
|
return null;
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function Di(i) {
|
|
213
213
|
return i === null;
|
|
214
214
|
}
|
|
215
|
-
var
|
|
215
|
+
var Yi = new y("tag:yaml.org,2002:null", {
|
|
216
216
|
kind: "scalar",
|
|
217
|
-
resolve:
|
|
218
|
-
construct:
|
|
219
|
-
predicate:
|
|
217
|
+
resolve: Li,
|
|
218
|
+
construct: Mi,
|
|
219
|
+
predicate: Di,
|
|
220
220
|
represent: {
|
|
221
221
|
canonical: function() {
|
|
222
222
|
return "~";
|
|
@@ -241,17 +241,17 @@ function ji(i) {
|
|
|
241
241
|
var n = i.length;
|
|
242
242
|
return n === 4 && (i === "true" || i === "True" || i === "TRUE") || n === 5 && (i === "false" || i === "False" || i === "FALSE");
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function Pi(i) {
|
|
245
245
|
return i === "true" || i === "True" || i === "TRUE";
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function Bi(i) {
|
|
248
248
|
return Object.prototype.toString.call(i) === "[object Boolean]";
|
|
249
249
|
}
|
|
250
|
-
var
|
|
250
|
+
var Ri = new y("tag:yaml.org,2002:bool", {
|
|
251
251
|
kind: "scalar",
|
|
252
252
|
resolve: ji,
|
|
253
|
-
construct:
|
|
254
|
-
predicate:
|
|
253
|
+
construct: Pi,
|
|
254
|
+
predicate: Bi,
|
|
255
255
|
represent: {
|
|
256
256
|
lowercase: function(i) {
|
|
257
257
|
return i ? "true" : "false";
|
|
@@ -265,16 +265,16 @@ var Bi = new b("tag:yaml.org,2002:bool", {
|
|
|
265
265
|
},
|
|
266
266
|
defaultStyle: "lowercase"
|
|
267
267
|
});
|
|
268
|
-
function
|
|
268
|
+
function Ui(i) {
|
|
269
269
|
return 48 <= i && i <= 57 || 65 <= i && i <= 70 || 97 <= i && i <= 102;
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function qi(i) {
|
|
272
272
|
return 48 <= i && i <= 55;
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function Gi(i) {
|
|
275
275
|
return 48 <= i && i <= 57;
|
|
276
276
|
}
|
|
277
|
-
function
|
|
277
|
+
function $i(i) {
|
|
278
278
|
if (i === null) return !1;
|
|
279
279
|
var n = i.length, e = 0, l = !1, r;
|
|
280
280
|
if (!n) return !1;
|
|
@@ -291,7 +291,7 @@ function Gi(i) {
|
|
|
291
291
|
if (r === "x") {
|
|
292
292
|
for (e++; e < n; e++)
|
|
293
293
|
if (r = i[e], r !== "_") {
|
|
294
|
-
if (!
|
|
294
|
+
if (!Ui(i.charCodeAt(e))) return !1;
|
|
295
295
|
l = !0;
|
|
296
296
|
}
|
|
297
297
|
return l && r !== "_";
|
|
@@ -299,7 +299,7 @@ function Gi(i) {
|
|
|
299
299
|
if (r === "o") {
|
|
300
300
|
for (e++; e < n; e++)
|
|
301
301
|
if (r = i[e], r !== "_") {
|
|
302
|
-
if (!
|
|
302
|
+
if (!qi(i.charCodeAt(e))) return !1;
|
|
303
303
|
l = !0;
|
|
304
304
|
}
|
|
305
305
|
return l && r !== "_";
|
|
@@ -308,13 +308,13 @@ function Gi(i) {
|
|
|
308
308
|
if (r === "_") return !1;
|
|
309
309
|
for (; e < n; e++)
|
|
310
310
|
if (r = i[e], r !== "_") {
|
|
311
|
-
if (!
|
|
311
|
+
if (!Gi(i.charCodeAt(e)))
|
|
312
312
|
return !1;
|
|
313
313
|
l = !0;
|
|
314
314
|
}
|
|
315
315
|
return !(!l || r === "_");
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function Hi(i) {
|
|
318
318
|
var n = i, e = 1, l;
|
|
319
319
|
if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")), l = n[0], (l === "-" || l === "+") && (l === "-" && (e = -1), n = n.slice(1), l = n[0]), n === "0") return 0;
|
|
320
320
|
if (l === "0") {
|
|
@@ -324,14 +324,14 @@ function $i(i) {
|
|
|
324
324
|
}
|
|
325
325
|
return e * parseInt(n, 10);
|
|
326
326
|
}
|
|
327
|
-
function
|
|
328
|
-
return Object.prototype.toString.call(i) === "[object Number]" && i % 1 === 0 && !
|
|
327
|
+
function Ki(i) {
|
|
328
|
+
return Object.prototype.toString.call(i) === "[object Number]" && i % 1 === 0 && !b.isNegativeZero(i);
|
|
329
329
|
}
|
|
330
|
-
var
|
|
330
|
+
var Wi = new y("tag:yaml.org,2002:int", {
|
|
331
331
|
kind: "scalar",
|
|
332
|
-
resolve:
|
|
333
|
-
construct:
|
|
334
|
-
predicate:
|
|
332
|
+
resolve: $i,
|
|
333
|
+
construct: Hi,
|
|
334
|
+
predicate: Ki,
|
|
335
335
|
represent: {
|
|
336
336
|
binary: function(i) {
|
|
337
337
|
return i >= 0 ? "0b" + i.toString(2) : "-0b" + i.toString(2).slice(1);
|
|
@@ -354,21 +354,21 @@ var Ki = new b("tag:yaml.org,2002:int", {
|
|
|
354
354
|
decimal: [10, "dec"],
|
|
355
355
|
hexadecimal: [16, "hex"]
|
|
356
356
|
}
|
|
357
|
-
}),
|
|
357
|
+
}), Zi = new RegExp(
|
|
358
358
|
// 2.5e4, 2.5 and integers
|
|
359
359
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
360
360
|
);
|
|
361
|
-
function
|
|
362
|
-
return !(i === null || !
|
|
361
|
+
function Vi(i) {
|
|
362
|
+
return !(i === null || !Zi.test(i) || // Quick hack to not allow integers end with `_`
|
|
363
363
|
// Probably should update regexp & check speed
|
|
364
364
|
i[i.length - 1] === "_");
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function Xi(i) {
|
|
367
367
|
var n, e;
|
|
368
368
|
return n = i.replace(/_/g, "").toLowerCase(), e = n[0] === "-" ? -1 : 1, "+-".indexOf(n[0]) >= 0 && (n = n.slice(1)), n === ".inf" ? e === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : n === ".nan" ? NaN : e * parseFloat(n, 10);
|
|
369
369
|
}
|
|
370
|
-
var
|
|
371
|
-
function
|
|
370
|
+
var zi = /^[-+]?[0-9]+e/;
|
|
371
|
+
function Qi(i, n) {
|
|
372
372
|
var e;
|
|
373
373
|
if (isNaN(i))
|
|
374
374
|
switch (n) {
|
|
@@ -397,36 +397,36 @@ function zi(i, n) {
|
|
|
397
397
|
case "camelcase":
|
|
398
398
|
return "-.Inf";
|
|
399
399
|
}
|
|
400
|
-
else if (
|
|
400
|
+
else if (b.isNegativeZero(i))
|
|
401
401
|
return "-0.0";
|
|
402
|
-
return e = i.toString(10),
|
|
402
|
+
return e = i.toString(10), zi.test(e) ? e.replace("e", ".e") : e;
|
|
403
403
|
}
|
|
404
|
-
function
|
|
405
|
-
return Object.prototype.toString.call(i) === "[object Number]" && (i % 1 !== 0 ||
|
|
404
|
+
function Ji(i) {
|
|
405
|
+
return Object.prototype.toString.call(i) === "[object Number]" && (i % 1 !== 0 || b.isNegativeZero(i));
|
|
406
406
|
}
|
|
407
|
-
var
|
|
407
|
+
var nn = new y("tag:yaml.org,2002:float", {
|
|
408
408
|
kind: "scalar",
|
|
409
|
-
resolve:
|
|
410
|
-
construct:
|
|
411
|
-
predicate:
|
|
412
|
-
represent:
|
|
409
|
+
resolve: Vi,
|
|
410
|
+
construct: Xi,
|
|
411
|
+
predicate: Ji,
|
|
412
|
+
represent: Qi,
|
|
413
413
|
defaultStyle: "lowercase"
|
|
414
|
-
}),
|
|
414
|
+
}), en = Ni.extend({
|
|
415
415
|
implicit: [
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
416
|
+
Yi,
|
|
417
|
+
Ri,
|
|
418
|
+
Wi,
|
|
419
|
+
nn
|
|
420
420
|
]
|
|
421
|
-
}),
|
|
421
|
+
}), rn = en, ii = new RegExp(
|
|
422
422
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
423
423
|
), ni = new RegExp(
|
|
424
424
|
"^([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]))?))?$"
|
|
425
425
|
);
|
|
426
|
-
function
|
|
426
|
+
function ln(i) {
|
|
427
427
|
return i === null ? !1 : ii.exec(i) !== null || ni.exec(i) !== null;
|
|
428
428
|
}
|
|
429
|
-
function
|
|
429
|
+
function on(i) {
|
|
430
430
|
var n, e, l, r, u, o, c, f = 0, h = null, s, t, g;
|
|
431
431
|
if (n = ii.exec(i), n === null && (n = ni.exec(i)), n === null) throw new Error("Date resolve error");
|
|
432
432
|
if (e = +n[1], l = +n[2] - 1, r = +n[3], !n[4])
|
|
@@ -438,25 +438,25 @@ function ln(i) {
|
|
|
438
438
|
}
|
|
439
439
|
return n[9] && (s = +n[10], t = +(n[11] || 0), h = (s * 60 + t) * 6e4, n[9] === "-" && (h = -h)), g = new Date(Date.UTC(e, l, r, u, o, c, f)), h && g.setTime(g.getTime() - h), g;
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function un(i) {
|
|
442
442
|
return i.toISOString();
|
|
443
443
|
}
|
|
444
|
-
var
|
|
444
|
+
var cn = new y("tag:yaml.org,2002:timestamp", {
|
|
445
445
|
kind: "scalar",
|
|
446
|
-
resolve:
|
|
447
|
-
construct:
|
|
446
|
+
resolve: ln,
|
|
447
|
+
construct: on,
|
|
448
448
|
instanceOf: Date,
|
|
449
|
-
represent:
|
|
449
|
+
represent: un
|
|
450
450
|
});
|
|
451
|
-
function
|
|
451
|
+
function fn(i) {
|
|
452
452
|
return i === "<<" || i === null;
|
|
453
453
|
}
|
|
454
|
-
var
|
|
454
|
+
var tn = new y("tag:yaml.org,2002:merge", {
|
|
455
455
|
kind: "scalar",
|
|
456
|
-
resolve:
|
|
456
|
+
resolve: fn
|
|
457
457
|
}), q = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
458
458
|
\r`;
|
|
459
|
-
function
|
|
459
|
+
function pn(i) {
|
|
460
460
|
if (i === null) return !1;
|
|
461
461
|
var n, e, l = 0, r = i.length, u = q;
|
|
462
462
|
for (e = 0; e < r; e++)
|
|
@@ -466,35 +466,35 @@ function tn(i) {
|
|
|
466
466
|
}
|
|
467
467
|
return l % 8 === 0;
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function an(i) {
|
|
470
470
|
var n, e, l = i.replace(/[\r\n=]/g, ""), r = l.length, u = q, o = 0, c = [];
|
|
471
471
|
for (n = 0; n < r; n++)
|
|
472
472
|
n % 4 === 0 && n && (c.push(o >> 16 & 255), c.push(o >> 8 & 255), c.push(o & 255)), o = o << 6 | u.indexOf(l.charAt(n));
|
|
473
473
|
return e = r % 4 * 6, e === 0 ? (c.push(o >> 16 & 255), c.push(o >> 8 & 255), c.push(o & 255)) : e === 18 ? (c.push(o >> 10 & 255), c.push(o >> 2 & 255)) : e === 12 && c.push(o >> 4 & 255), new Uint8Array(c);
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function hn(i) {
|
|
476
476
|
var n = "", e = 0, l, r, u = i.length, o = q;
|
|
477
477
|
for (l = 0; l < u; l++)
|
|
478
478
|
l % 3 === 0 && l && (n += o[e >> 18 & 63], n += o[e >> 12 & 63], n += o[e >> 6 & 63], n += o[e & 63]), e = (e << 8) + i[l];
|
|
479
479
|
return r = u % 3, r === 0 ? (n += o[e >> 18 & 63], n += o[e >> 12 & 63], n += o[e >> 6 & 63], n += o[e & 63]) : r === 2 ? (n += o[e >> 10 & 63], n += o[e >> 4 & 63], n += o[e << 2 & 63], n += o[64]) : r === 1 && (n += o[e >> 2 & 63], n += o[e << 4 & 63], n += o[64], n += o[64]), n;
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function sn(i) {
|
|
482
482
|
return Object.prototype.toString.call(i) === "[object Uint8Array]";
|
|
483
483
|
}
|
|
484
|
-
var
|
|
484
|
+
var dn = new y("tag:yaml.org,2002:binary", {
|
|
485
485
|
kind: "scalar",
|
|
486
|
-
resolve:
|
|
487
|
-
construct:
|
|
488
|
-
predicate:
|
|
489
|
-
represent:
|
|
490
|
-
}),
|
|
491
|
-
function
|
|
486
|
+
resolve: pn,
|
|
487
|
+
construct: an,
|
|
488
|
+
predicate: sn,
|
|
489
|
+
represent: hn
|
|
490
|
+
}), xn = Object.prototype.hasOwnProperty, mn = Object.prototype.toString;
|
|
491
|
+
function gn(i) {
|
|
492
492
|
if (i === null) return !0;
|
|
493
493
|
var n = [], e, l, r, u, o, c = i;
|
|
494
494
|
for (e = 0, l = c.length; e < l; e += 1) {
|
|
495
|
-
if (r = c[e], o = !1,
|
|
495
|
+
if (r = c[e], o = !1, mn.call(r) !== "[object Object]") return !1;
|
|
496
496
|
for (u in r)
|
|
497
|
-
if (
|
|
497
|
+
if (xn.call(r, u))
|
|
498
498
|
if (!o) o = !0;
|
|
499
499
|
else return !1;
|
|
500
500
|
if (!o) return !1;
|
|
@@ -503,62 +503,62 @@ function mn(i) {
|
|
|
503
503
|
}
|
|
504
504
|
return !0;
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function An(i) {
|
|
507
507
|
return i !== null ? i : [];
|
|
508
508
|
}
|
|
509
|
-
var
|
|
509
|
+
var vn = new y("tag:yaml.org,2002:omap", {
|
|
510
510
|
kind: "sequence",
|
|
511
|
-
resolve:
|
|
512
|
-
construct:
|
|
513
|
-
}),
|
|
511
|
+
resolve: gn,
|
|
512
|
+
construct: An
|
|
513
|
+
}), yn = Object.prototype.toString;
|
|
514
514
|
function bn(i) {
|
|
515
515
|
if (i === null) return !0;
|
|
516
516
|
var n, e, l, r, u, o = i;
|
|
517
517
|
for (u = new Array(o.length), n = 0, e = o.length; n < e; n += 1) {
|
|
518
|
-
if (l = o[n],
|
|
518
|
+
if (l = o[n], yn.call(l) !== "[object Object]" || (r = Object.keys(l), r.length !== 1)) return !1;
|
|
519
519
|
u[n] = [r[0], l[r[0]]];
|
|
520
520
|
}
|
|
521
521
|
return !0;
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function wn(i) {
|
|
524
524
|
if (i === null) return [];
|
|
525
525
|
var n, e, l, r, u, o = i;
|
|
526
526
|
for (u = new Array(o.length), n = 0, e = o.length; n < e; n += 1)
|
|
527
527
|
l = o[n], r = Object.keys(l), u[n] = [r[0], l[r[0]]];
|
|
528
528
|
return u;
|
|
529
529
|
}
|
|
530
|
-
var
|
|
530
|
+
var Cn = new y("tag:yaml.org,2002:pairs", {
|
|
531
531
|
kind: "sequence",
|
|
532
532
|
resolve: bn,
|
|
533
|
-
construct:
|
|
534
|
-
}),
|
|
535
|
-
function
|
|
533
|
+
construct: wn
|
|
534
|
+
}), _n = Object.prototype.hasOwnProperty;
|
|
535
|
+
function kn(i) {
|
|
536
536
|
if (i === null) return !0;
|
|
537
537
|
var n, e = i;
|
|
538
538
|
for (n in e)
|
|
539
|
-
if (
|
|
539
|
+
if (_n.call(e, n) && e[n] !== null)
|
|
540
540
|
return !1;
|
|
541
541
|
return !0;
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function Sn(i) {
|
|
544
544
|
return i !== null ? i : {};
|
|
545
545
|
}
|
|
546
|
-
var
|
|
546
|
+
var In = new y("tag:yaml.org,2002:set", {
|
|
547
547
|
kind: "mapping",
|
|
548
|
-
resolve:
|
|
549
|
-
construct:
|
|
550
|
-
}),
|
|
548
|
+
resolve: kn,
|
|
549
|
+
construct: Sn
|
|
550
|
+
}), Tn = rn.extend({
|
|
551
551
|
implicit: [
|
|
552
|
-
|
|
553
|
-
|
|
552
|
+
cn,
|
|
553
|
+
tn
|
|
554
554
|
],
|
|
555
555
|
explicit: [
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
556
|
+
dn,
|
|
557
|
+
vn,
|
|
558
|
+
Cn,
|
|
559
|
+
In
|
|
560
560
|
]
|
|
561
|
-
}), I = Object.prototype.hasOwnProperty, M = 1, ei = 2, ri = 3, D = 4, R = 1,
|
|
561
|
+
}), I = Object.prototype.hasOwnProperty, M = 1, ei = 2, ri = 3, D = 4, R = 1, Fn = 2, K = 3, On = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, En = /[\x85\u2028\u2029]/, Nn = /[,\[\]\{\}]/, li = /^(?:!|!!|![a-z\-]+!)$/i, oi = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
562
562
|
function W(i) {
|
|
563
563
|
return Object.prototype.toString.call(i);
|
|
564
564
|
}
|
|
@@ -574,33 +574,41 @@ function w(i) {
|
|
|
574
574
|
function O(i) {
|
|
575
575
|
return i === 44 || i === 91 || i === 93 || i === 123 || i === 125;
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function Ln(i) {
|
|
578
578
|
var n;
|
|
579
579
|
return 48 <= i && i <= 57 ? i - 48 : (n = i | 32, 97 <= n && n <= 102 ? n - 97 + 10 : -1);
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function Mn(i) {
|
|
582
582
|
return i === 120 ? 2 : i === 117 ? 4 : i === 85 ? 8 : 0;
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function Dn(i) {
|
|
585
585
|
return 48 <= i && i <= 57 ? i - 48 : -1;
|
|
586
586
|
}
|
|
587
587
|
function Z(i) {
|
|
588
588
|
return i === 48 ? "\0" : i === 97 ? "\x07" : i === 98 ? "\b" : i === 116 || i === 9 ? " " : i === 110 ? `
|
|
589
589
|
` : i === 118 ? "\v" : i === 102 ? "\f" : i === 114 ? "\r" : i === 101 ? "\x1B" : i === 32 ? " " : i === 34 ? '"' : i === 47 ? "/" : i === 92 ? "\\" : i === 78 ? "
" : i === 95 ? " " : i === 76 ? "\u2028" : i === 80 ? "\u2029" : "";
|
|
590
590
|
}
|
|
591
|
-
function
|
|
591
|
+
function Yn(i) {
|
|
592
592
|
return i <= 65535 ? String.fromCharCode(i) : String.fromCharCode(
|
|
593
593
|
(i - 65536 >> 10) + 55296,
|
|
594
594
|
(i - 65536 & 1023) + 56320
|
|
595
595
|
);
|
|
596
596
|
}
|
|
597
|
-
|
|
597
|
+
function ui(i, n, e) {
|
|
598
|
+
n === "__proto__" ? Object.defineProperty(i, n, {
|
|
599
|
+
configurable: !0,
|
|
600
|
+
enumerable: !0,
|
|
601
|
+
writable: !0,
|
|
602
|
+
value: e
|
|
603
|
+
}) : i[n] = e;
|
|
604
|
+
}
|
|
605
|
+
var ci = new Array(256), fi = new Array(256);
|
|
598
606
|
for (var F = 0; F < 256; F++)
|
|
599
|
-
|
|
607
|
+
ci[F] = Z(F) ? 1 : 0, fi[F] = Z(F);
|
|
600
608
|
function jn(i, n) {
|
|
601
|
-
this.input = i, this.filename = n.filename || null, this.schema = n.schema ||
|
|
609
|
+
this.input = i, this.filename = n.filename || null, this.schema = n.schema || Tn, this.onWarning = n.onWarning || null, this.legacy = n.legacy || !1, this.json = n.json || !1, this.listener = n.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = i.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
602
610
|
}
|
|
603
|
-
function
|
|
611
|
+
function ti(i, n) {
|
|
604
612
|
var e = {
|
|
605
613
|
name: i.filename,
|
|
606
614
|
buffer: i.input.slice(0, -1),
|
|
@@ -609,18 +617,18 @@ function fi(i, n) {
|
|
|
609
617
|
line: i.line,
|
|
610
618
|
column: i.position - i.lineStart
|
|
611
619
|
};
|
|
612
|
-
return e.snippet =
|
|
620
|
+
return e.snippet = wi(e), new k(n, e);
|
|
613
621
|
}
|
|
614
622
|
function p(i, n) {
|
|
615
|
-
throw
|
|
623
|
+
throw ti(i, n);
|
|
616
624
|
}
|
|
617
|
-
function
|
|
618
|
-
i.onWarning && i.onWarning.call(null,
|
|
625
|
+
function Y(i, n) {
|
|
626
|
+
i.onWarning && i.onWarning.call(null, ti(i, n));
|
|
619
627
|
}
|
|
620
628
|
var V = {
|
|
621
629
|
YAML: function(n, e, l) {
|
|
622
630
|
var r, u, o;
|
|
623
|
-
n.version !== null && p(n, "duplication of %YAML directive"), l.length !== 1 && p(n, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(l[0]), r === null && p(n, "ill-formed argument of the YAML directive"), u = parseInt(r[1], 10), o = parseInt(r[2], 10), u !== 1 && p(n, "unacceptable YAML version of the document"), n.version = l[0], n.checkLineBreaks = o < 2, o !== 1 && o !== 2 &&
|
|
631
|
+
n.version !== null && p(n, "duplication of %YAML directive"), l.length !== 1 && p(n, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(l[0]), r === null && p(n, "ill-formed argument of the YAML directive"), u = parseInt(r[1], 10), o = parseInt(r[2], 10), u !== 1 && p(n, "unacceptable YAML version of the document"), n.version = l[0], n.checkLineBreaks = o < 2, o !== 1 && o !== 2 && Y(n, "unsupported YAML version of the document");
|
|
624
632
|
},
|
|
625
633
|
TAG: function(n, e, l) {
|
|
626
634
|
var r, u;
|
|
@@ -639,14 +647,14 @@ function S(i, n, e, l) {
|
|
|
639
647
|
if (c = i.input.slice(n, e), l)
|
|
640
648
|
for (r = 0, u = c.length; r < u; r += 1)
|
|
641
649
|
o = c.charCodeAt(r), o === 9 || 32 <= o && o <= 1114111 || p(i, "expected valid JSON character");
|
|
642
|
-
else
|
|
650
|
+
else On.test(c) && p(i, "the stream contains non-printable characters");
|
|
643
651
|
i.result += c;
|
|
644
652
|
}
|
|
645
653
|
}
|
|
646
654
|
function X(i, n, e, l) {
|
|
647
655
|
var r, u, o, c;
|
|
648
|
-
for (
|
|
649
|
-
u = r[o], I.call(n, u) || (n
|
|
656
|
+
for (b.isObject(e) || p(i, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(e), o = 0, c = r.length; o < c; o += 1)
|
|
657
|
+
u = r[o], I.call(n, u) || (ui(n, u, e[u]), l[u] = !0);
|
|
650
658
|
}
|
|
651
659
|
function E(i, n, e, l, r, u, o, c, f) {
|
|
652
660
|
var h, s;
|
|
@@ -660,12 +668,7 @@ function E(i, n, e, l, r, u, o, c, f) {
|
|
|
660
668
|
else
|
|
661
669
|
X(i, n, u, e);
|
|
662
670
|
else
|
|
663
|
-
!i.json && !I.call(e, r) && I.call(n, r) && (i.line = o || i.line, i.lineStart = c || i.lineStart, i.position = f || i.position, p(i, "duplicated mapping key")),
|
|
664
|
-
configurable: !0,
|
|
665
|
-
enumerable: !0,
|
|
666
|
-
writable: !0,
|
|
667
|
-
value: u
|
|
668
|
-
}) : n[r] = u, delete e[r];
|
|
671
|
+
!i.json && !I.call(e, r) && I.call(n, r) && (i.line = o || i.line, i.lineStart = c || i.lineStart, i.position = f || i.position, p(i, "duplicated mapping key")), ui(n, r, u), delete e[r];
|
|
669
672
|
return n;
|
|
670
673
|
}
|
|
671
674
|
function G(i) {
|
|
@@ -686,17 +689,17 @@ function v(i, n, e) {
|
|
|
686
689
|
else
|
|
687
690
|
break;
|
|
688
691
|
}
|
|
689
|
-
return e !== -1 && l !== 0 && i.lineIndent < e &&
|
|
692
|
+
return e !== -1 && l !== 0 && i.lineIndent < e && Y(i, "deficient indentation"), l;
|
|
690
693
|
}
|
|
691
|
-
function
|
|
694
|
+
function j(i) {
|
|
692
695
|
var n = i.position, e;
|
|
693
696
|
return e = i.input.charCodeAt(n), !!((e === 45 || e === 46) && e === i.input.charCodeAt(n + 1) && e === i.input.charCodeAt(n + 2) && (n += 3, e = i.input.charCodeAt(n), e === 0 || w(e)));
|
|
694
697
|
}
|
|
695
698
|
function $(i, n) {
|
|
696
|
-
n === 1 ? i.result += " " : n > 1 && (i.result +=
|
|
699
|
+
n === 1 ? i.result += " " : n > 1 && (i.result += b.repeat(`
|
|
697
700
|
`, n - 1));
|
|
698
701
|
}
|
|
699
|
-
function
|
|
702
|
+
function Pn(i, n, e) {
|
|
700
703
|
var l, r, u, o, c, f, h, s, t = i.kind, g = i.result, a;
|
|
701
704
|
if (a = i.input.charCodeAt(i.position), w(a) || O(a) || a === 35 || a === 38 || a === 42 || a === 33 || a === 124 || a === 62 || a === 39 || a === 34 || a === 37 || a === 64 || a === 96 || (a === 63 || a === 45) && (r = i.input.charCodeAt(i.position + 1), w(r) || e && O(r)))
|
|
702
705
|
return !1;
|
|
@@ -708,7 +711,7 @@ function Yn(i, n, e) {
|
|
|
708
711
|
if (l = i.input.charCodeAt(i.position - 1), w(l))
|
|
709
712
|
break;
|
|
710
713
|
} else {
|
|
711
|
-
if (i.position === i.lineStart &&
|
|
714
|
+
if (i.position === i.lineStart && j(i) || e && O(a))
|
|
712
715
|
break;
|
|
713
716
|
if (_(a))
|
|
714
717
|
if (f = i.line, h = i.lineStart, s = i.lineIndent, v(i, !1, -1), i.lineIndent >= n) {
|
|
@@ -723,7 +726,7 @@ function Yn(i, n, e) {
|
|
|
723
726
|
}
|
|
724
727
|
return S(i, u, o, !1), i.result ? !0 : (i.kind = t, i.result = g, !1);
|
|
725
728
|
}
|
|
726
|
-
function
|
|
729
|
+
function Bn(i, n) {
|
|
727
730
|
var e, l, r;
|
|
728
731
|
if (e = i.input.charCodeAt(i.position), e !== 39)
|
|
729
732
|
return !1;
|
|
@@ -733,10 +736,10 @@ function Pn(i, n) {
|
|
|
733
736
|
l = i.position, i.position++, r = i.position;
|
|
734
737
|
else
|
|
735
738
|
return !0;
|
|
736
|
-
else _(e) ? (S(i, l, r, !0), $(i, v(i, !1, n)), l = r = i.position) : i.position === i.lineStart &&
|
|
739
|
+
else _(e) ? (S(i, l, r, !0), $(i, v(i, !1, n)), l = r = i.position) : i.position === i.lineStart && j(i) ? p(i, "unexpected end of the document within a single quoted scalar") : (i.position++, r = i.position);
|
|
737
740
|
p(i, "unexpected end of the stream within a single quoted scalar");
|
|
738
741
|
}
|
|
739
|
-
function
|
|
742
|
+
function Rn(i, n) {
|
|
740
743
|
var e, l, r, u, o, c;
|
|
741
744
|
if (c = i.input.charCodeAt(i.position), c !== 34)
|
|
742
745
|
return !1;
|
|
@@ -746,20 +749,20 @@ function Bn(i, n) {
|
|
|
746
749
|
if (c === 92) {
|
|
747
750
|
if (S(i, e, i.position, !0), c = i.input.charCodeAt(++i.position), _(c))
|
|
748
751
|
v(i, !1, n);
|
|
749
|
-
else if (c < 256 &&
|
|
750
|
-
i.result +=
|
|
751
|
-
else if ((o =
|
|
752
|
+
else if (c < 256 && ci[c])
|
|
753
|
+
i.result += fi[c], i.position++;
|
|
754
|
+
else if ((o = Mn(c)) > 0) {
|
|
752
755
|
for (r = o, u = 0; r > 0; r--)
|
|
753
|
-
c = i.input.charCodeAt(++i.position), (o =
|
|
754
|
-
i.result +=
|
|
756
|
+
c = i.input.charCodeAt(++i.position), (o = Ln(c)) >= 0 ? u = (u << 4) + o : p(i, "expected hexadecimal character");
|
|
757
|
+
i.result += Yn(u), i.position++;
|
|
755
758
|
} else
|
|
756
759
|
p(i, "unknown escape sequence");
|
|
757
760
|
e = l = i.position;
|
|
758
|
-
} else _(c) ? (S(i, e, l, !0), $(i, v(i, !1, n)), e = l = i.position) : i.position === i.lineStart &&
|
|
761
|
+
} else _(c) ? (S(i, e, l, !0), $(i, v(i, !1, n)), e = l = i.position) : i.position === i.lineStart && j(i) ? p(i, "unexpected end of the document within a double quoted scalar") : (i.position++, l = i.position);
|
|
759
762
|
}
|
|
760
763
|
p(i, "unexpected end of the stream within a double quoted scalar");
|
|
761
764
|
}
|
|
762
|
-
function
|
|
765
|
+
function Un(i, n) {
|
|
763
766
|
var e = !0, l, r, u, o = i.tag, c, f = i.anchor, h, s, t, g, a, x = /* @__PURE__ */ Object.create(null), A, m, C, d;
|
|
764
767
|
if (d = i.input.charCodeAt(i.position), d === 91)
|
|
765
768
|
s = 93, a = !1, c = [];
|
|
@@ -774,7 +777,7 @@ function Rn(i, n) {
|
|
|
774
777
|
}
|
|
775
778
|
p(i, "unexpected end of the stream within a flow collection");
|
|
776
779
|
}
|
|
777
|
-
function
|
|
780
|
+
function qn(i, n) {
|
|
778
781
|
var e, l, r = R, u = !1, o = !1, c = n, f = 0, h = !1, s, t;
|
|
779
782
|
if (t = i.input.charCodeAt(i.position), t === 124)
|
|
780
783
|
l = !1;
|
|
@@ -784,8 +787,8 @@ function Un(i, n) {
|
|
|
784
787
|
return !1;
|
|
785
788
|
for (i.kind = "scalar", i.result = ""; t !== 0; )
|
|
786
789
|
if (t = i.input.charCodeAt(++i.position), t === 43 || t === 45)
|
|
787
|
-
R === r ? r = t === 43 ? K :
|
|
788
|
-
else if ((s =
|
|
790
|
+
R === r ? r = t === 43 ? K : Fn : p(i, "repeat of a chomping mode identifier");
|
|
791
|
+
else if ((s = Dn(t)) >= 0)
|
|
789
792
|
s === 0 ? p(i, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? p(i, "repeat of an indentation width identifier") : (c = n + s - 1, o = !0);
|
|
790
793
|
else
|
|
791
794
|
break;
|
|
@@ -806,15 +809,15 @@ function Un(i, n) {
|
|
|
806
809
|
continue;
|
|
807
810
|
}
|
|
808
811
|
if (i.lineIndent < c) {
|
|
809
|
-
r === K ? i.result +=
|
|
812
|
+
r === K ? i.result += b.repeat(`
|
|
810
813
|
`, u ? 1 + f : f) : r === R && u && (i.result += `
|
|
811
814
|
`);
|
|
812
815
|
break;
|
|
813
816
|
}
|
|
814
|
-
for (l ? T(t) ? (h = !0, i.result +=
|
|
815
|
-
`, u ? 1 + f : f)) : h ? (h = !1, i.result +=
|
|
816
|
-
`, f + 1)) : f === 0 ? u && (i.result += " ") : i.result +=
|
|
817
|
-
`, f) : i.result +=
|
|
817
|
+
for (l ? T(t) ? (h = !0, i.result += b.repeat(`
|
|
818
|
+
`, u ? 1 + f : f)) : h ? (h = !1, i.result += b.repeat(`
|
|
819
|
+
`, f + 1)) : f === 0 ? u && (i.result += " ") : i.result += b.repeat(`
|
|
820
|
+
`, f) : i.result += b.repeat(`
|
|
818
821
|
`, u ? 1 + f : f), u = !0, o = !0, f = 0, e = i.position; !_(t) && t !== 0; )
|
|
819
822
|
t = i.input.charCodeAt(++i.position);
|
|
820
823
|
S(i, e, i.position, !1);
|
|
@@ -836,7 +839,7 @@ function z(i, n) {
|
|
|
836
839
|
}
|
|
837
840
|
return c ? (i.tag = l, i.anchor = r, i.kind = "sequence", i.result = u, !0) : !1;
|
|
838
841
|
}
|
|
839
|
-
function
|
|
842
|
+
function Gn(i, n, e) {
|
|
840
843
|
var l, r, u, o, c, f, h = i.tag, s = i.anchor, t = {}, g = /* @__PURE__ */ Object.create(null), a = null, x = null, A = null, m = !1, C = !1, d;
|
|
841
844
|
if (i.firstTabInLine !== -1) return !1;
|
|
842
845
|
for (i.anchor !== null && (i.anchorMap[i.anchor] = t), d = i.input.charCodeAt(i.position); d !== 0; ) {
|
|
@@ -866,7 +869,7 @@ function qn(i, n, e) {
|
|
|
866
869
|
}
|
|
867
870
|
return m && E(i, t, g, a, x, null, o, c, f), C && (i.tag = h, i.anchor = s, i.kind = "mapping", i.result = t), C;
|
|
868
871
|
}
|
|
869
|
-
function
|
|
872
|
+
function $n(i) {
|
|
870
873
|
var n, e = !1, l = !1, r, u, o;
|
|
871
874
|
if (o = i.input.charCodeAt(i.position), o !== 33) return !1;
|
|
872
875
|
if (i.tag !== null && p(i, "duplication of a tag property"), o = i.input.charCodeAt(++i.position), o === 60 ? (e = !0, o = i.input.charCodeAt(++i.position)) : o === 33 ? (l = !0, r = "!!", o = i.input.charCodeAt(++i.position)) : r = "!", n = i.position, e) {
|
|
@@ -877,7 +880,7 @@ function Gn(i) {
|
|
|
877
880
|
} else {
|
|
878
881
|
for (; o !== 0 && !w(o); )
|
|
879
882
|
o === 33 && (l ? p(i, "tag suffix cannot contain exclamation marks") : (r = i.input.slice(n - 1, i.position + 1), li.test(r) || p(i, "named tag handle cannot contain such characters"), l = !0, n = i.position + 1)), o = i.input.charCodeAt(++i.position);
|
|
880
|
-
u = i.input.slice(n, i.position),
|
|
883
|
+
u = i.input.slice(n, i.position), Nn.test(u) && p(i, "tag suffix cannot contain flow indicator characters");
|
|
881
884
|
}
|
|
882
885
|
u && !oi.test(u) && p(i, "tag name cannot contain such characters: " + u);
|
|
883
886
|
try {
|
|
@@ -887,14 +890,14 @@ function Gn(i) {
|
|
|
887
890
|
}
|
|
888
891
|
return e ? i.tag = u : I.call(i.tagMap, r) ? i.tag = i.tagMap[r] + u : r === "!" ? i.tag = "!" + u : r === "!!" ? i.tag = "tag:yaml.org,2002:" + u : p(i, 'undeclared tag handle "' + r + '"'), !0;
|
|
889
892
|
}
|
|
890
|
-
function
|
|
893
|
+
function Hn(i) {
|
|
891
894
|
var n, e;
|
|
892
895
|
if (e = i.input.charCodeAt(i.position), e !== 38) return !1;
|
|
893
896
|
for (i.anchor !== null && p(i, "duplication of an anchor property"), e = i.input.charCodeAt(++i.position), n = i.position; e !== 0 && !w(e) && !O(e); )
|
|
894
897
|
e = i.input.charCodeAt(++i.position);
|
|
895
898
|
return i.position === n && p(i, "name of an anchor node must contain at least one character"), i.anchor = i.input.slice(n, i.position), !0;
|
|
896
899
|
}
|
|
897
|
-
function
|
|
900
|
+
function Kn(i) {
|
|
898
901
|
var n, e, l;
|
|
899
902
|
if (l = i.input.charCodeAt(i.position), l !== 42) return !1;
|
|
900
903
|
for (l = i.input.charCodeAt(++i.position), n = i.position; l !== 0 && !w(l) && !O(l); )
|
|
@@ -904,9 +907,9 @@ function Hn(i) {
|
|
|
904
907
|
function N(i, n, e, l, r) {
|
|
905
908
|
var u, o, c, f = 1, h = !1, s = !1, t, g, a, x, A, m;
|
|
906
909
|
if (i.listener !== null && i.listener("open", i), i.tag = null, i.anchor = null, i.kind = null, i.result = null, u = o = c = D === e || ri === e, l && v(i, !0, -1) && (h = !0, i.lineIndent > n ? f = 1 : i.lineIndent === n ? f = 0 : i.lineIndent < n && (f = -1)), f === 1)
|
|
907
|
-
for (;
|
|
910
|
+
for (; $n(i) || Hn(i); )
|
|
908
911
|
v(i, !0, -1) ? (h = !0, c = u, i.lineIndent > n ? f = 1 : i.lineIndent === n ? f = 0 : i.lineIndent < n && (f = -1)) : c = !1;
|
|
909
|
-
if (c && (c = h || r), (f === 1 || D === e) && (M === e || ei === e ? A = n : A = n + 1, m = i.position - i.lineStart, f === 1 ? c && (z(i, m) ||
|
|
912
|
+
if (c && (c = h || r), (f === 1 || D === e) && (M === e || ei === e ? A = n : A = n + 1, m = i.position - i.lineStart, f === 1 ? c && (z(i, m) || Gn(i, m, A)) || Un(i, A) ? s = !0 : (o && qn(i, A) || Bn(i, A) || Rn(i, A) ? s = !0 : Kn(i) ? (s = !0, (i.tag !== null || i.anchor !== null) && p(i, "alias node should not have any properties")) : Pn(i, A, M === e) && (s = !0, i.tag === null && (i.tag = "?")), i.anchor !== null && (i.anchorMap[i.anchor] = i.result)) : f === 0 && (s = c && z(i, m))), i.tag === null)
|
|
910
913
|
i.anchor !== null && (i.anchorMap[i.anchor] = i.result);
|
|
911
914
|
else if (i.tag === "?") {
|
|
912
915
|
for (i.result !== null && i.kind !== "scalar" && p(i, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + i.kind + '"'), t = 0, g = i.implicitTypes.length; t < g; t += 1)
|
|
@@ -927,7 +930,7 @@ function N(i, n, e, l, r) {
|
|
|
927
930
|
}
|
|
928
931
|
return i.listener !== null && i.listener("close", i), i.tag !== null || i.anchor !== null || s;
|
|
929
932
|
}
|
|
930
|
-
function
|
|
933
|
+
function Wn(i) {
|
|
931
934
|
var n = i.position, e, l, r, u = !1, o;
|
|
932
935
|
for (i.version = null, i.checkLineBreaks = i.legacy, i.tagMap = /* @__PURE__ */ Object.create(null), i.anchorMap = /* @__PURE__ */ Object.create(null); (o = i.input.charCodeAt(i.position)) !== 0 && (v(i, !0, -1), o = i.input.charCodeAt(i.position), !(i.lineIndent > 0 || o !== 37)); ) {
|
|
933
936
|
for (u = !0, o = i.input.charCodeAt(++i.position), e = i.position; o !== 0 && !w(o); )
|
|
@@ -946,9 +949,9 @@ function Kn(i) {
|
|
|
946
949
|
o = i.input.charCodeAt(++i.position);
|
|
947
950
|
r.push(i.input.slice(e, i.position));
|
|
948
951
|
}
|
|
949
|
-
o !== 0 && G(i), I.call(V, l) ? V[l](i, l, r) :
|
|
952
|
+
o !== 0 && G(i), I.call(V, l) ? V[l](i, l, r) : Y(i, 'unknown document directive "' + l + '"');
|
|
950
953
|
}
|
|
951
|
-
if (v(i, !0, -1), i.lineIndent === 0 && i.input.charCodeAt(i.position) === 45 && i.input.charCodeAt(i.position + 1) === 45 && i.input.charCodeAt(i.position + 2) === 45 ? (i.position += 3, v(i, !0, -1)) : u && p(i, "directives end mark is expected"), N(i, i.lineIndent - 1, D, !1, !0), v(i, !0, -1), i.checkLineBreaks &&
|
|
954
|
+
if (v(i, !0, -1), i.lineIndent === 0 && i.input.charCodeAt(i.position) === 45 && i.input.charCodeAt(i.position + 1) === 45 && i.input.charCodeAt(i.position + 2) === 45 ? (i.position += 3, v(i, !0, -1)) : u && p(i, "directives end mark is expected"), N(i, i.lineIndent - 1, D, !1, !0), v(i, !0, -1), i.checkLineBreaks && En.test(i.input.slice(n, i.position)) && Y(i, "non-ASCII line breaks are interpreted as content"), i.documents.push(i.result), i.position === i.lineStart && j(i)) {
|
|
952
955
|
i.input.charCodeAt(i.position) === 46 && (i.position += 3, v(i, !0, -1));
|
|
953
956
|
return;
|
|
954
957
|
}
|
|
@@ -957,27 +960,27 @@ function Kn(i) {
|
|
|
957
960
|
else
|
|
958
961
|
return;
|
|
959
962
|
}
|
|
960
|
-
function
|
|
963
|
+
function Zn(i, n) {
|
|
961
964
|
i = String(i), n = n || {}, i.length !== 0 && (i.charCodeAt(i.length - 1) !== 10 && i.charCodeAt(i.length - 1) !== 13 && (i += `
|
|
962
965
|
`), i.charCodeAt(0) === 65279 && (i = i.slice(1)));
|
|
963
966
|
var e = new jn(i, n), l = i.indexOf("\0");
|
|
964
967
|
for (l !== -1 && (e.position = l, p(e, "null byte is not allowed in input")), e.input += "\0"; e.input.charCodeAt(e.position) === 32; )
|
|
965
968
|
e.lineIndent += 1, e.position += 1;
|
|
966
969
|
for (; e.position < e.length - 1; )
|
|
967
|
-
|
|
970
|
+
Wn(e);
|
|
968
971
|
return e.documents;
|
|
969
972
|
}
|
|
970
|
-
function
|
|
971
|
-
var e =
|
|
973
|
+
function Vn(i, n) {
|
|
974
|
+
var e = Zn(i, n);
|
|
972
975
|
if (e.length !== 0) {
|
|
973
976
|
if (e.length === 1)
|
|
974
977
|
return e[0];
|
|
975
978
|
throw new k("expected a single document in the stream, but found more");
|
|
976
979
|
}
|
|
977
980
|
}
|
|
978
|
-
var
|
|
979
|
-
load:
|
|
980
|
-
},
|
|
981
|
+
var Xn = Vn, zn = {
|
|
982
|
+
load: Xn
|
|
983
|
+
}, Qn = zn.load;
|
|
981
984
|
export {
|
|
982
|
-
|
|
985
|
+
Qn as l
|
|
983
986
|
};
|