@ariestools/toolchain 8.7.20 → 8.7.21
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/actions/analyze.d.ts +28 -1
- package/dist/actions/analyze.d.ts.map +1 -1
- package/dist/actions/work/github.d.ts +60 -0
- package/dist/actions/work/github.d.ts.map +1 -0
- package/dist/actions/work/index.d.ts +20 -19
- package/dist/actions/work/index.d.ts.map +1 -1
- package/dist/actions/work/result.d.ts +12 -0
- package/dist/actions/work/result.d.ts.map +1 -0
- package/dist/actions/work/schema.d.ts.map +1 -1
- package/dist/actions/work/sync.d.ts +34 -0
- package/dist/actions/work/sync.d.ts.map +1 -0
- package/dist/bin/package/build.mjs +1256 -699
- package/dist/bin/package/build.mjs.map +1 -1
- package/dist/bin/package/clean.mjs +633 -432
- package/dist/bin/package/clean.mjs.map +1 -1
- package/dist/bin/package/compile.mjs +632 -431
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/copy-assets-cjs.mjs +1 -1
- package/dist/bin/package/copy-assets-esm.mjs +1 -1
- package/dist/bin/package/fix.mjs +17 -12
- package/dist/bin/package/fix.mjs.map +1 -1
- package/dist/bin/package/lint-verbose.mjs +17 -12
- package/dist/bin/package/lint-verbose.mjs.map +1 -1
- package/dist/bin/package/lint.mjs +17 -12
- package/dist/bin/package/lint.mjs.map +1 -1
- package/dist/bin/package/publint.mjs +1161 -609
- package/dist/bin/package/publint.mjs.map +1 -1
- package/dist/bin/package/recompile.mjs +632 -431
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/bin/package/relint.mjs +17 -12
- package/dist/bin/package/relint.mjs.map +1 -1
- package/dist/bin/package/sync-layout.mjs +615 -419
- package/dist/bin/package/sync-layout.mjs.map +1 -1
- package/dist/bin/xy.mjs +1960 -722
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/xy/common/work/index.d.ts.map +1 -1
- package/dist/xy/common/work/listCommand.d.ts.map +1 -1
- package/dist/xy/common/work/syncCommand.d.ts +3 -0
- package/dist/xy/common/work/syncCommand.d.ts.map +1 -0
- package/dist/xy/react/analyzeCommand.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/bin/source-map-explorer.mjs +0 -27268
- package/dist/bin/source-map-explorer.mjs.map +0 -1
|
@@ -6049,7 +6049,7 @@ var require_parse_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6049
6049
|
module.exports = parseJson;
|
|
6050
6050
|
}));
|
|
6051
6051
|
//#endregion
|
|
6052
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6052
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/common.js
|
|
6053
6053
|
var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6054
6054
|
function isNothing(subject) {
|
|
6055
6055
|
return typeof subject === "undefined" || subject === null;
|
|
@@ -6063,19 +6063,18 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6063
6063
|
return [sequence];
|
|
6064
6064
|
}
|
|
6065
6065
|
function extend(target, source) {
|
|
6066
|
-
var index, length, key, sourceKeys;
|
|
6067
6066
|
if (source) {
|
|
6068
|
-
sourceKeys = Object.keys(source);
|
|
6069
|
-
for (index = 0, length = sourceKeys.length; index < length; index += 1) {
|
|
6070
|
-
key = sourceKeys[index];
|
|
6067
|
+
const sourceKeys = Object.keys(source);
|
|
6068
|
+
for (let index = 0, length = sourceKeys.length; index < length; index += 1) {
|
|
6069
|
+
const key = sourceKeys[index];
|
|
6071
6070
|
target[key] = source[key];
|
|
6072
6071
|
}
|
|
6073
6072
|
}
|
|
6074
6073
|
return target;
|
|
6075
6074
|
}
|
|
6076
6075
|
function repeat(string, count) {
|
|
6077
|
-
|
|
6078
|
-
for (cycle = 0; cycle < count; cycle += 1) result += string;
|
|
6076
|
+
let result = "";
|
|
6077
|
+
for (let cycle = 0; cycle < count; cycle += 1) result += string;
|
|
6079
6078
|
return result;
|
|
6080
6079
|
}
|
|
6081
6080
|
function isNegativeZero(number) {
|
|
@@ -6089,10 +6088,11 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6089
6088
|
module.exports.extend = extend;
|
|
6090
6089
|
}));
|
|
6091
6090
|
//#endregion
|
|
6092
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6091
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/exception.js
|
|
6093
6092
|
var require_exception = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6094
6093
|
function formatError(exception, compact) {
|
|
6095
|
-
|
|
6094
|
+
let where = "";
|
|
6095
|
+
const message = exception.reason || "(unknown reason)";
|
|
6096
6096
|
if (!exception.mark) return message;
|
|
6097
6097
|
if (exception.mark.name) where += "in \"" + exception.mark.name + "\" ";
|
|
6098
6098
|
where += "(" + (exception.mark.line + 1) + ":" + (exception.mark.column + 1) + ")";
|
|
@@ -6116,13 +6116,13 @@ var require_exception = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6116
6116
|
module.exports = YAMLException;
|
|
6117
6117
|
}));
|
|
6118
6118
|
//#endregion
|
|
6119
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6119
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/snippet.js
|
|
6120
6120
|
var require_snippet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6121
|
-
|
|
6121
|
+
const common = require_common();
|
|
6122
6122
|
function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
|
|
6123
|
-
|
|
6124
|
-
|
|
6125
|
-
|
|
6123
|
+
let head = "";
|
|
6124
|
+
let tail = "";
|
|
6125
|
+
const maxHalfLength = Math.floor(maxLineLength / 2) - 1;
|
|
6126
6126
|
if (position - lineStart > maxHalfLength) {
|
|
6127
6127
|
head = " ... ";
|
|
6128
6128
|
lineStart = position - maxHalfLength + head.length;
|
|
@@ -6146,31 +6146,31 @@ var require_snippet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6146
6146
|
if (typeof options.indent !== "number") options.indent = 1;
|
|
6147
6147
|
if (typeof options.linesBefore !== "number") options.linesBefore = 3;
|
|
6148
6148
|
if (typeof options.linesAfter !== "number") options.linesAfter = 2;
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
|
|
6149
|
+
const re = /\r?\n|\r|\0/g;
|
|
6150
|
+
const lineStarts = [0];
|
|
6151
|
+
const lineEnds = [];
|
|
6152
|
+
let match;
|
|
6153
|
+
let foundLineNo = -1;
|
|
6154
6154
|
while (match = re.exec(mark.buffer)) {
|
|
6155
6155
|
lineEnds.push(match.index);
|
|
6156
6156
|
lineStarts.push(match.index + match[0].length);
|
|
6157
6157
|
if (mark.position <= match.index && foundLineNo < 0) foundLineNo = lineStarts.length - 2;
|
|
6158
6158
|
}
|
|
6159
6159
|
if (foundLineNo < 0) foundLineNo = lineStarts.length - 1;
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
for (i = 1; i <= options.linesBefore; i++) {
|
|
6160
|
+
let result = "";
|
|
6161
|
+
const lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length;
|
|
6162
|
+
const maxLineLength = options.maxLength - (options.indent + lineNoLength + 3);
|
|
6163
|
+
for (let i = 1; i <= options.linesBefore; i++) {
|
|
6164
6164
|
if (foundLineNo - i < 0) break;
|
|
6165
|
-
line = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength);
|
|
6165
|
+
const line = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength);
|
|
6166
6166
|
result = common.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line.str + "\n" + result;
|
|
6167
6167
|
}
|
|
6168
|
-
line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
|
|
6168
|
+
const line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
|
|
6169
6169
|
result += common.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + "\n";
|
|
6170
6170
|
result += common.repeat("-", options.indent + lineNoLength + 3 + line.pos) + "^\n";
|
|
6171
|
-
for (i = 1; i <= options.linesAfter; i++) {
|
|
6171
|
+
for (let i = 1; i <= options.linesAfter; i++) {
|
|
6172
6172
|
if (foundLineNo + i >= lineEnds.length) break;
|
|
6173
|
-
line = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength);
|
|
6173
|
+
const line = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength);
|
|
6174
6174
|
result += common.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line.str + "\n";
|
|
6175
6175
|
}
|
|
6176
6176
|
return result.replace(/\n$/, "");
|
|
@@ -6178,10 +6178,10 @@ var require_snippet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6178
6178
|
module.exports = makeSnippet;
|
|
6179
6179
|
}));
|
|
6180
6180
|
//#endregion
|
|
6181
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6181
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type.js
|
|
6182
6182
|
var require_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6183
|
-
|
|
6184
|
-
|
|
6183
|
+
const YAMLException = require_exception();
|
|
6184
|
+
const TYPE_CONSTRUCTOR_OPTIONS = [
|
|
6185
6185
|
"kind",
|
|
6186
6186
|
"multi",
|
|
6187
6187
|
"resolve",
|
|
@@ -6193,13 +6193,13 @@ var require_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6193
6193
|
"defaultStyle",
|
|
6194
6194
|
"styleAliases"
|
|
6195
6195
|
];
|
|
6196
|
-
|
|
6196
|
+
const YAML_NODE_KINDS = [
|
|
6197
6197
|
"scalar",
|
|
6198
6198
|
"sequence",
|
|
6199
6199
|
"mapping"
|
|
6200
6200
|
];
|
|
6201
6201
|
function compileStyleAliases(map) {
|
|
6202
|
-
|
|
6202
|
+
const result = {};
|
|
6203
6203
|
if (map !== null) Object.keys(map).forEach(function(style) {
|
|
6204
6204
|
map[style].forEach(function(alias) {
|
|
6205
6205
|
result[String(alias)] = style;
|
|
@@ -6233,14 +6233,14 @@ var require_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6233
6233
|
module.exports = Type;
|
|
6234
6234
|
}));
|
|
6235
6235
|
//#endregion
|
|
6236
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6236
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/schema.js
|
|
6237
6237
|
var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6238
|
-
|
|
6239
|
-
|
|
6238
|
+
const YAMLException = require_exception();
|
|
6239
|
+
const Type = require_type();
|
|
6240
6240
|
function compileList(schema, name) {
|
|
6241
|
-
|
|
6241
|
+
const result = [];
|
|
6242
6242
|
schema[name].forEach(function(currentType) {
|
|
6243
|
-
|
|
6243
|
+
let newIndex = result.length;
|
|
6244
6244
|
result.forEach(function(previousType, previousIndex) {
|
|
6245
6245
|
if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) newIndex = previousIndex;
|
|
6246
6246
|
});
|
|
@@ -6249,7 +6249,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6249
6249
|
return result;
|
|
6250
6250
|
}
|
|
6251
6251
|
function compileMap() {
|
|
6252
|
-
|
|
6252
|
+
const result = {
|
|
6253
6253
|
scalar: {},
|
|
6254
6254
|
sequence: {},
|
|
6255
6255
|
mapping: {},
|
|
@@ -6260,22 +6260,22 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6260
6260
|
mapping: [],
|
|
6261
6261
|
fallback: []
|
|
6262
6262
|
}
|
|
6263
|
-
}
|
|
6263
|
+
};
|
|
6264
6264
|
function collectType(type) {
|
|
6265
6265
|
if (type.multi) {
|
|
6266
6266
|
result.multi[type.kind].push(type);
|
|
6267
6267
|
result.multi["fallback"].push(type);
|
|
6268
6268
|
} else result[type.kind][type.tag] = result["fallback"][type.tag] = type;
|
|
6269
6269
|
}
|
|
6270
|
-
for (index = 0, length = arguments.length; index < length; index += 1) arguments[index].forEach(collectType);
|
|
6270
|
+
for (let index = 0, length = arguments.length; index < length; index += 1) arguments[index].forEach(collectType);
|
|
6271
6271
|
return result;
|
|
6272
6272
|
}
|
|
6273
6273
|
function Schema(definition) {
|
|
6274
6274
|
return this.extend(definition);
|
|
6275
6275
|
}
|
|
6276
6276
|
Schema.prototype.extend = function extend(definition) {
|
|
6277
|
-
|
|
6278
|
-
|
|
6277
|
+
let implicit = [];
|
|
6278
|
+
let explicit = [];
|
|
6279
6279
|
if (definition instanceof Type) explicit.push(definition);
|
|
6280
6280
|
else if (Array.isArray(definition)) explicit = explicit.concat(definition);
|
|
6281
6281
|
else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
|
|
@@ -6290,7 +6290,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6290
6290
|
explicit.forEach(function(type) {
|
|
6291
6291
|
if (!(type instanceof Type)) throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
6292
6292
|
});
|
|
6293
|
-
|
|
6293
|
+
const result = Object.create(Schema.prototype);
|
|
6294
6294
|
result.implicit = (this.implicit || []).concat(implicit);
|
|
6295
6295
|
result.explicit = (this.explicit || []).concat(explicit);
|
|
6296
6296
|
result.compiledImplicit = compileList(result, "implicit");
|
|
@@ -6301,7 +6301,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6301
6301
|
module.exports = Schema;
|
|
6302
6302
|
}));
|
|
6303
6303
|
//#endregion
|
|
6304
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6304
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/str.js
|
|
6305
6305
|
var require_str = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6306
6306
|
module.exports = new (require_type())("tag:yaml.org,2002:str", {
|
|
6307
6307
|
kind: "scalar",
|
|
@@ -6311,7 +6311,7 @@ var require_str = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6311
6311
|
});
|
|
6312
6312
|
}));
|
|
6313
6313
|
//#endregion
|
|
6314
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6314
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/seq.js
|
|
6315
6315
|
var require_seq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6316
6316
|
module.exports = new (require_type())("tag:yaml.org,2002:seq", {
|
|
6317
6317
|
kind: "sequence",
|
|
@@ -6321,7 +6321,7 @@ var require_seq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6321
6321
|
});
|
|
6322
6322
|
}));
|
|
6323
6323
|
//#endregion
|
|
6324
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6324
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/map.js
|
|
6325
6325
|
var require_map = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6326
6326
|
module.exports = new (require_type())("tag:yaml.org,2002:map", {
|
|
6327
6327
|
kind: "mapping",
|
|
@@ -6331,7 +6331,7 @@ var require_map = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6331
6331
|
});
|
|
6332
6332
|
}));
|
|
6333
6333
|
//#endregion
|
|
6334
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6334
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/schema/failsafe.js
|
|
6335
6335
|
var require_failsafe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6336
6336
|
module.exports = new (require_schema())({ explicit: [
|
|
6337
6337
|
require_str(),
|
|
@@ -6340,12 +6340,12 @@ var require_failsafe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6340
6340
|
] });
|
|
6341
6341
|
}));
|
|
6342
6342
|
//#endregion
|
|
6343
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6343
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/null.js
|
|
6344
6344
|
var require_null = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6345
|
-
|
|
6345
|
+
const Type = require_type();
|
|
6346
6346
|
function resolveYamlNull(data) {
|
|
6347
6347
|
if (data === null) return true;
|
|
6348
|
-
|
|
6348
|
+
const max = data.length;
|
|
6349
6349
|
return max === 1 && data === "~" || max === 4 && (data === "null" || data === "Null" || data === "NULL");
|
|
6350
6350
|
}
|
|
6351
6351
|
function constructYamlNull() {
|
|
@@ -6380,12 +6380,12 @@ var require_null = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6380
6380
|
});
|
|
6381
6381
|
}));
|
|
6382
6382
|
//#endregion
|
|
6383
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6383
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/bool.js
|
|
6384
6384
|
var require_bool = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6385
|
-
|
|
6385
|
+
const Type = require_type();
|
|
6386
6386
|
function resolveYamlBoolean(data) {
|
|
6387
6387
|
if (data === null) return false;
|
|
6388
|
-
|
|
6388
|
+
const max = data.length;
|
|
6389
6389
|
return max === 4 && (data === "true" || data === "True" || data === "TRUE") || max === 5 && (data === "false" || data === "False" || data === "FALSE");
|
|
6390
6390
|
}
|
|
6391
6391
|
function constructYamlBoolean(data) {
|
|
@@ -6414,24 +6414,26 @@ var require_bool = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6414
6414
|
});
|
|
6415
6415
|
}));
|
|
6416
6416
|
//#endregion
|
|
6417
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6417
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/int.js
|
|
6418
6418
|
var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6419
|
-
|
|
6420
|
-
|
|
6419
|
+
const common = require_common();
|
|
6420
|
+
const Type = require_type();
|
|
6421
6421
|
function isHexCode(c) {
|
|
6422
|
-
return
|
|
6422
|
+
return c >= 48 && c <= 57 || c >= 65 && c <= 70 || c >= 97 && c <= 102;
|
|
6423
6423
|
}
|
|
6424
6424
|
function isOctCode(c) {
|
|
6425
|
-
return
|
|
6425
|
+
return c >= 48 && c <= 55;
|
|
6426
6426
|
}
|
|
6427
6427
|
function isDecCode(c) {
|
|
6428
|
-
return
|
|
6428
|
+
return c >= 48 && c <= 57;
|
|
6429
6429
|
}
|
|
6430
6430
|
function resolveYamlInteger(data) {
|
|
6431
6431
|
if (data === null) return false;
|
|
6432
|
-
|
|
6432
|
+
const max = data.length;
|
|
6433
|
+
let index = 0;
|
|
6434
|
+
let hasDigits = false;
|
|
6433
6435
|
if (!max) return false;
|
|
6434
|
-
ch = data[index];
|
|
6436
|
+
let ch = data[index];
|
|
6435
6437
|
if (ch === "-" || ch === "+") ch = data[++index];
|
|
6436
6438
|
if (ch === "0") {
|
|
6437
6439
|
if (index + 1 === max) return true;
|
|
@@ -6440,47 +6442,39 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6440
6442
|
index++;
|
|
6441
6443
|
for (; index < max; index++) {
|
|
6442
6444
|
ch = data[index];
|
|
6443
|
-
if (ch === "_") continue;
|
|
6444
6445
|
if (ch !== "0" && ch !== "1") return false;
|
|
6445
6446
|
hasDigits = true;
|
|
6446
6447
|
}
|
|
6447
|
-
return hasDigits &&
|
|
6448
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
6448
6449
|
}
|
|
6449
6450
|
if (ch === "x") {
|
|
6450
6451
|
index++;
|
|
6451
6452
|
for (; index < max; index++) {
|
|
6452
|
-
ch = data[index];
|
|
6453
|
-
if (ch === "_") continue;
|
|
6454
6453
|
if (!isHexCode(data.charCodeAt(index))) return false;
|
|
6455
6454
|
hasDigits = true;
|
|
6456
6455
|
}
|
|
6457
|
-
return hasDigits &&
|
|
6456
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
6458
6457
|
}
|
|
6459
6458
|
if (ch === "o") {
|
|
6460
6459
|
index++;
|
|
6461
6460
|
for (; index < max; index++) {
|
|
6462
|
-
ch = data[index];
|
|
6463
|
-
if (ch === "_") continue;
|
|
6464
6461
|
if (!isOctCode(data.charCodeAt(index))) return false;
|
|
6465
6462
|
hasDigits = true;
|
|
6466
6463
|
}
|
|
6467
|
-
return hasDigits &&
|
|
6464
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
6468
6465
|
}
|
|
6469
6466
|
}
|
|
6470
|
-
if (ch === "_") return false;
|
|
6471
6467
|
for (; index < max; index++) {
|
|
6472
|
-
ch = data[index];
|
|
6473
|
-
if (ch === "_") continue;
|
|
6474
6468
|
if (!isDecCode(data.charCodeAt(index))) return false;
|
|
6475
6469
|
hasDigits = true;
|
|
6476
6470
|
}
|
|
6477
|
-
if (!hasDigits
|
|
6478
|
-
return
|
|
6471
|
+
if (!hasDigits) return false;
|
|
6472
|
+
return isFinite(parseYamlInteger(data));
|
|
6479
6473
|
}
|
|
6480
|
-
function
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
ch = value[0];
|
|
6474
|
+
function parseYamlInteger(data) {
|
|
6475
|
+
let value = data;
|
|
6476
|
+
let sign = 1;
|
|
6477
|
+
let ch = value[0];
|
|
6484
6478
|
if (ch === "-" || ch === "+") {
|
|
6485
6479
|
if (ch === "-") sign = -1;
|
|
6486
6480
|
value = value.slice(1);
|
|
@@ -6494,6 +6488,9 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6494
6488
|
}
|
|
6495
6489
|
return sign * parseInt(value, 10);
|
|
6496
6490
|
}
|
|
6491
|
+
function constructYamlInteger(data) {
|
|
6492
|
+
return parseYamlInteger(data);
|
|
6493
|
+
}
|
|
6497
6494
|
function isInteger(object) {
|
|
6498
6495
|
return Object.prototype.toString.call(object) === "[object Number]" && object % 1 === 0 && !common.isNegativeZero(object);
|
|
6499
6496
|
}
|
|
@@ -6526,26 +6523,28 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6526
6523
|
});
|
|
6527
6524
|
}));
|
|
6528
6525
|
//#endregion
|
|
6529
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6526
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/float.js
|
|
6530
6527
|
var require_float = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6531
|
-
|
|
6532
|
-
|
|
6533
|
-
|
|
6528
|
+
const common = require_common();
|
|
6529
|
+
const Type = require_type();
|
|
6530
|
+
const YAML_FLOAT_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
6531
|
+
const YAML_FLOAT_SPECIAL_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
6534
6532
|
function resolveYamlFloat(data) {
|
|
6535
6533
|
if (data === null) return false;
|
|
6536
|
-
if (!YAML_FLOAT_PATTERN.test(data)
|
|
6537
|
-
return true;
|
|
6534
|
+
if (!YAML_FLOAT_PATTERN.test(data)) return false;
|
|
6535
|
+
if (isFinite(parseFloat(data, 10))) return true;
|
|
6536
|
+
return YAML_FLOAT_SPECIAL_PATTERN.test(data);
|
|
6538
6537
|
}
|
|
6539
6538
|
function constructYamlFloat(data) {
|
|
6540
|
-
|
|
6539
|
+
let value = data.toLowerCase();
|
|
6540
|
+
const sign = value[0] === "-" ? -1 : 1;
|
|
6541
6541
|
if ("+-".indexOf(value[0]) >= 0) value = value.slice(1);
|
|
6542
6542
|
if (value === ".inf") return sign === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
|
|
6543
6543
|
else if (value === ".nan") return NaN;
|
|
6544
6544
|
return sign * parseFloat(value, 10);
|
|
6545
6545
|
}
|
|
6546
|
-
|
|
6546
|
+
const SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
|
|
6547
6547
|
function representYamlFloat(object, style) {
|
|
6548
|
-
var res;
|
|
6549
6548
|
if (isNaN(object)) switch (style) {
|
|
6550
6549
|
case "lowercase": return ".nan";
|
|
6551
6550
|
case "uppercase": return ".NAN";
|
|
@@ -6562,7 +6561,7 @@ var require_float = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6562
6561
|
case "camelcase": return "-.Inf";
|
|
6563
6562
|
}
|
|
6564
6563
|
else if (common.isNegativeZero(object)) return "-0.0";
|
|
6565
|
-
res = object.toString(10);
|
|
6564
|
+
const res = object.toString(10);
|
|
6566
6565
|
return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
|
|
6567
6566
|
}
|
|
6568
6567
|
function isFloat(object) {
|
|
@@ -6578,7 +6577,7 @@ var require_float = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6578
6577
|
});
|
|
6579
6578
|
}));
|
|
6580
6579
|
//#endregion
|
|
6581
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6580
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/schema/json.js
|
|
6582
6581
|
var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6583
6582
|
module.exports = require_failsafe().extend({ implicit: [
|
|
6584
6583
|
require_null(),
|
|
@@ -6588,16 +6587,16 @@ var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6588
6587
|
] });
|
|
6589
6588
|
}));
|
|
6590
6589
|
//#endregion
|
|
6591
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6590
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/schema/core.js
|
|
6592
6591
|
var require_core = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6593
6592
|
module.exports = require_json();
|
|
6594
6593
|
}));
|
|
6595
6594
|
//#endregion
|
|
6596
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6595
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/timestamp.js
|
|
6597
6596
|
var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6598
|
-
|
|
6599
|
-
|
|
6600
|
-
|
|
6597
|
+
const Type = require_type();
|
|
6598
|
+
const YAML_DATE_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
|
|
6599
|
+
const YAML_TIMESTAMP_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
|
|
6601
6600
|
function resolveYamlTimestamp(data) {
|
|
6602
6601
|
if (data === null) return false;
|
|
6603
6602
|
if (YAML_DATE_REGEXP.exec(data) !== null) return true;
|
|
@@ -6605,29 +6604,30 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6605
6604
|
return false;
|
|
6606
6605
|
}
|
|
6607
6606
|
function constructYamlTimestamp(data) {
|
|
6608
|
-
|
|
6609
|
-
|
|
6607
|
+
let fraction = 0;
|
|
6608
|
+
let delta = null;
|
|
6609
|
+
let match = YAML_DATE_REGEXP.exec(data);
|
|
6610
6610
|
if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data);
|
|
6611
6611
|
if (match === null) throw new Error("Date resolve error");
|
|
6612
|
-
year = +match[1];
|
|
6613
|
-
month = +match[2] - 1;
|
|
6614
|
-
day = +match[3];
|
|
6612
|
+
const year = +match[1];
|
|
6613
|
+
const month = +match[2] - 1;
|
|
6614
|
+
const day = +match[3];
|
|
6615
6615
|
if (!match[4]) return new Date(Date.UTC(year, month, day));
|
|
6616
|
-
hour = +match[4];
|
|
6617
|
-
minute = +match[5];
|
|
6618
|
-
second = +match[6];
|
|
6616
|
+
const hour = +match[4];
|
|
6617
|
+
const minute = +match[5];
|
|
6618
|
+
const second = +match[6];
|
|
6619
6619
|
if (match[7]) {
|
|
6620
6620
|
fraction = match[7].slice(0, 3);
|
|
6621
6621
|
while (fraction.length < 3) fraction += "0";
|
|
6622
6622
|
fraction = +fraction;
|
|
6623
6623
|
}
|
|
6624
6624
|
if (match[9]) {
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
delta = (
|
|
6625
|
+
const tzHour = +match[10];
|
|
6626
|
+
const tzMinute = +(match[11] || 0);
|
|
6627
|
+
delta = (tzHour * 60 + tzMinute) * 6e4;
|
|
6628
6628
|
if (match[9] === "-") delta = -delta;
|
|
6629
6629
|
}
|
|
6630
|
-
date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
|
|
6630
|
+
const date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
|
|
6631
6631
|
if (delta) date.setTime(date.getTime() - delta);
|
|
6632
6632
|
return date;
|
|
6633
6633
|
}
|
|
@@ -6643,9 +6643,9 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6643
6643
|
});
|
|
6644
6644
|
}));
|
|
6645
6645
|
//#endregion
|
|
6646
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6646
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/merge.js
|
|
6647
6647
|
var require_merge$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6648
|
-
|
|
6648
|
+
const Type = require_type();
|
|
6649
6649
|
function resolveYamlMerge(data) {
|
|
6650
6650
|
return data === "<<" || data === null;
|
|
6651
6651
|
}
|
|
@@ -6655,15 +6655,17 @@ var require_merge$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6655
6655
|
});
|
|
6656
6656
|
}));
|
|
6657
6657
|
//#endregion
|
|
6658
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6658
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/binary.js
|
|
6659
6659
|
var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6660
|
-
|
|
6661
|
-
|
|
6660
|
+
const Type = require_type();
|
|
6661
|
+
const BASE64_MAP = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
|
|
6662
6662
|
function resolveYamlBinary(data) {
|
|
6663
6663
|
if (data === null) return false;
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6664
|
+
let bitlen = 0;
|
|
6665
|
+
const max = data.length;
|
|
6666
|
+
const map = BASE64_MAP;
|
|
6667
|
+
for (let idx = 0; idx < max; idx++) {
|
|
6668
|
+
const code = map.indexOf(data.charAt(idx));
|
|
6667
6669
|
if (code > 64) continue;
|
|
6668
6670
|
if (code < 0) return false;
|
|
6669
6671
|
bitlen += 6;
|
|
@@ -6671,8 +6673,12 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6671
6673
|
return bitlen % 8 === 0;
|
|
6672
6674
|
}
|
|
6673
6675
|
function constructYamlBinary(data) {
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
+
const input = data.replace(/[\r\n=]/g, "");
|
|
6677
|
+
const max = input.length;
|
|
6678
|
+
const map = BASE64_MAP;
|
|
6679
|
+
let bits = 0;
|
|
6680
|
+
const result = [];
|
|
6681
|
+
for (let idx = 0; idx < max; idx++) {
|
|
6676
6682
|
if (idx % 4 === 0 && idx) {
|
|
6677
6683
|
result.push(bits >> 16 & 255);
|
|
6678
6684
|
result.push(bits >> 8 & 255);
|
|
@@ -6680,7 +6686,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6680
6686
|
}
|
|
6681
6687
|
bits = bits << 6 | map.indexOf(input.charAt(idx));
|
|
6682
6688
|
}
|
|
6683
|
-
tailbits = max % 4 * 6;
|
|
6689
|
+
const tailbits = max % 4 * 6;
|
|
6684
6690
|
if (tailbits === 0) {
|
|
6685
6691
|
result.push(bits >> 16 & 255);
|
|
6686
6692
|
result.push(bits >> 8 & 255);
|
|
@@ -6692,8 +6698,11 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6692
6698
|
return new Uint8Array(result);
|
|
6693
6699
|
}
|
|
6694
6700
|
function representYamlBinary(object) {
|
|
6695
|
-
|
|
6696
|
-
|
|
6701
|
+
let result = "";
|
|
6702
|
+
let bits = 0;
|
|
6703
|
+
const max = object.length;
|
|
6704
|
+
const map = BASE64_MAP;
|
|
6705
|
+
for (let idx = 0; idx < max; idx++) {
|
|
6697
6706
|
if (idx % 3 === 0 && idx) {
|
|
6698
6707
|
result += map[bits >> 18 & 63];
|
|
6699
6708
|
result += map[bits >> 12 & 63];
|
|
@@ -6702,7 +6711,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6702
6711
|
}
|
|
6703
6712
|
bits = (bits << 8) + object[idx];
|
|
6704
6713
|
}
|
|
6705
|
-
tail = max % 3;
|
|
6714
|
+
const tail = max % 3;
|
|
6706
6715
|
if (tail === 0) {
|
|
6707
6716
|
result += map[bits >> 18 & 63];
|
|
6708
6717
|
result += map[bits >> 12 & 63];
|
|
@@ -6733,18 +6742,20 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6733
6742
|
});
|
|
6734
6743
|
}));
|
|
6735
6744
|
//#endregion
|
|
6736
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6745
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/omap.js
|
|
6737
6746
|
var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6738
|
-
|
|
6739
|
-
|
|
6740
|
-
|
|
6747
|
+
const Type = require_type();
|
|
6748
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
6749
|
+
const _toString = Object.prototype.toString;
|
|
6741
6750
|
function resolveYamlOmap(data) {
|
|
6742
6751
|
if (data === null) return true;
|
|
6743
|
-
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
|
|
6752
|
+
const objectKeys = [];
|
|
6753
|
+
const object = data;
|
|
6754
|
+
for (let index = 0, length = object.length; index < length; index += 1) {
|
|
6755
|
+
const pair = object[index];
|
|
6756
|
+
let pairHasKey = false;
|
|
6747
6757
|
if (_toString.call(pair) !== "[object Object]") return false;
|
|
6758
|
+
let pairKey;
|
|
6748
6759
|
for (pairKey in pair) if (_hasOwnProperty.call(pair, pairKey)) if (!pairHasKey) pairHasKey = true;
|
|
6749
6760
|
else return false;
|
|
6750
6761
|
if (!pairHasKey) return false;
|
|
@@ -6763,18 +6774,18 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6763
6774
|
});
|
|
6764
6775
|
}));
|
|
6765
6776
|
//#endregion
|
|
6766
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6777
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/pairs.js
|
|
6767
6778
|
var require_pairs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6768
|
-
|
|
6769
|
-
|
|
6779
|
+
const Type = require_type();
|
|
6780
|
+
const _toString = Object.prototype.toString;
|
|
6770
6781
|
function resolveYamlPairs(data) {
|
|
6771
6782
|
if (data === null) return true;
|
|
6772
|
-
|
|
6773
|
-
result = new Array(object.length);
|
|
6774
|
-
for (index = 0, length = object.length; index < length; index += 1) {
|
|
6775
|
-
pair = object[index];
|
|
6783
|
+
const object = data;
|
|
6784
|
+
const result = new Array(object.length);
|
|
6785
|
+
for (let index = 0, length = object.length; index < length; index += 1) {
|
|
6786
|
+
const pair = object[index];
|
|
6776
6787
|
if (_toString.call(pair) !== "[object Object]") return false;
|
|
6777
|
-
keys = Object.keys(pair);
|
|
6788
|
+
const keys = Object.keys(pair);
|
|
6778
6789
|
if (keys.length !== 1) return false;
|
|
6779
6790
|
result[index] = [keys[0], pair[keys[0]]];
|
|
6780
6791
|
}
|
|
@@ -6782,11 +6793,11 @@ var require_pairs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6782
6793
|
}
|
|
6783
6794
|
function constructYamlPairs(data) {
|
|
6784
6795
|
if (data === null) return [];
|
|
6785
|
-
|
|
6786
|
-
result = new Array(object.length);
|
|
6787
|
-
for (index = 0, length = object.length; index < length; index += 1) {
|
|
6788
|
-
pair = object[index];
|
|
6789
|
-
keys = Object.keys(pair);
|
|
6796
|
+
const object = data;
|
|
6797
|
+
const result = new Array(object.length);
|
|
6798
|
+
for (let index = 0, length = object.length; index < length; index += 1) {
|
|
6799
|
+
const pair = object[index];
|
|
6800
|
+
const keys = Object.keys(pair);
|
|
6790
6801
|
result[index] = [keys[0], pair[keys[0]]];
|
|
6791
6802
|
}
|
|
6792
6803
|
return result;
|
|
@@ -6798,14 +6809,14 @@ var require_pairs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6798
6809
|
});
|
|
6799
6810
|
}));
|
|
6800
6811
|
//#endregion
|
|
6801
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6812
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/set.js
|
|
6802
6813
|
var require_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6803
|
-
|
|
6804
|
-
|
|
6814
|
+
const Type = require_type();
|
|
6815
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
6805
6816
|
function resolveYamlSet(data) {
|
|
6806
6817
|
if (data === null) return true;
|
|
6807
|
-
|
|
6808
|
-
for (key in object) if (_hasOwnProperty.call(object, key)) {
|
|
6818
|
+
const object = data;
|
|
6819
|
+
for (const key in object) if (_hasOwnProperty.call(object, key)) {
|
|
6809
6820
|
if (object[key] !== null) return false;
|
|
6810
6821
|
}
|
|
6811
6822
|
return true;
|
|
@@ -6820,7 +6831,7 @@ var require_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6820
6831
|
});
|
|
6821
6832
|
}));
|
|
6822
6833
|
//#endregion
|
|
6823
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6834
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/schema/default.js
|
|
6824
6835
|
var require_default = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6825
6836
|
module.exports = require_core().extend({
|
|
6826
6837
|
implicit: [require_timestamp(), require_merge$1()],
|
|
@@ -6833,45 +6844,44 @@ var require_default = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6833
6844
|
});
|
|
6834
6845
|
}));
|
|
6835
6846
|
//#endregion
|
|
6836
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6847
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/loader.js
|
|
6837
6848
|
var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6838
|
-
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
|
|
6842
|
-
|
|
6843
|
-
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6849
|
+
const common = require_common();
|
|
6850
|
+
const YAMLException = require_exception();
|
|
6851
|
+
const makeSnippet = require_snippet();
|
|
6852
|
+
const DEFAULT_SCHEMA = require_default();
|
|
6853
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
6854
|
+
const CONTEXT_FLOW_IN = 1;
|
|
6855
|
+
const CONTEXT_FLOW_OUT = 2;
|
|
6856
|
+
const CONTEXT_BLOCK_IN = 3;
|
|
6857
|
+
const CONTEXT_BLOCK_OUT = 4;
|
|
6858
|
+
const CHOMPING_CLIP = 1;
|
|
6859
|
+
const CHOMPING_STRIP = 2;
|
|
6860
|
+
const CHOMPING_KEEP = 3;
|
|
6861
|
+
const PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
|
|
6862
|
+
const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
|
|
6863
|
+
const PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
|
|
6864
|
+
const PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
|
|
6865
|
+
const PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
|
|
6855
6866
|
function _class(obj) {
|
|
6856
6867
|
return Object.prototype.toString.call(obj);
|
|
6857
6868
|
}
|
|
6858
|
-
function
|
|
6869
|
+
function isEol(c) {
|
|
6859
6870
|
return c === 10 || c === 13;
|
|
6860
6871
|
}
|
|
6861
|
-
function
|
|
6872
|
+
function isWhiteSpace(c) {
|
|
6862
6873
|
return c === 9 || c === 32;
|
|
6863
6874
|
}
|
|
6864
|
-
function
|
|
6875
|
+
function isWsOrEol(c) {
|
|
6865
6876
|
return c === 9 || c === 32 || c === 10 || c === 13;
|
|
6866
6877
|
}
|
|
6867
|
-
function
|
|
6878
|
+
function isFlowIndicator(c) {
|
|
6868
6879
|
return c === 44 || c === 91 || c === 93 || c === 123 || c === 125;
|
|
6869
6880
|
}
|
|
6870
6881
|
function fromHexCode(c) {
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
lc
|
|
6874
|
-
if (97 <= lc && lc <= 102) return lc - 97 + 10;
|
|
6882
|
+
if (c >= 48 && c <= 57) return c - 48;
|
|
6883
|
+
const lc = c | 32;
|
|
6884
|
+
if (lc >= 97 && lc <= 102) return lc - 97 + 10;
|
|
6875
6885
|
return -1;
|
|
6876
6886
|
}
|
|
6877
6887
|
function escapedHexLen(c) {
|
|
@@ -6881,11 +6891,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6881
6891
|
return 0;
|
|
6882
6892
|
}
|
|
6883
6893
|
function fromDecimalCode(c) {
|
|
6884
|
-
if (
|
|
6894
|
+
if (c >= 48 && c <= 57) return c - 48;
|
|
6885
6895
|
return -1;
|
|
6886
6896
|
}
|
|
6887
6897
|
function simpleEscapeSequence(c) {
|
|
6888
|
-
|
|
6898
|
+
switch (c) {
|
|
6899
|
+
case 48: return "\0";
|
|
6900
|
+
case 97: return "\x07";
|
|
6901
|
+
case 98: return "\b";
|
|
6902
|
+
case 116: return " ";
|
|
6903
|
+
case 9: return " ";
|
|
6904
|
+
case 110: return "\n";
|
|
6905
|
+
case 118: return "\v";
|
|
6906
|
+
case 102: return "\f";
|
|
6907
|
+
case 114: return "\r";
|
|
6908
|
+
case 101: return "\x1B";
|
|
6909
|
+
case 32: return " ";
|
|
6910
|
+
case 34: return "\"";
|
|
6911
|
+
case 47: return "/";
|
|
6912
|
+
case 92: return "\\";
|
|
6913
|
+
case 78: return "
";
|
|
6914
|
+
case 95: return "\xA0";
|
|
6915
|
+
case 76: return "\u2028";
|
|
6916
|
+
case 80: return "\u2029";
|
|
6917
|
+
default: return "";
|
|
6918
|
+
}
|
|
6889
6919
|
}
|
|
6890
6920
|
function charFromCodepoint(c) {
|
|
6891
6921
|
if (c <= 65535) return String.fromCharCode(c);
|
|
@@ -6900,9 +6930,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6900
6930
|
});
|
|
6901
6931
|
else object[key] = value;
|
|
6902
6932
|
}
|
|
6903
|
-
|
|
6904
|
-
|
|
6905
|
-
for (
|
|
6933
|
+
const simpleEscapeCheck = new Array(256);
|
|
6934
|
+
const simpleEscapeMap = new Array(256);
|
|
6935
|
+
for (let i = 0; i < 256; i++) {
|
|
6906
6936
|
simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
|
|
6907
6937
|
simpleEscapeMap[i] = simpleEscapeSequence(i);
|
|
6908
6938
|
}
|
|
@@ -6914,6 +6944,8 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6914
6944
|
this.legacy = options["legacy"] || false;
|
|
6915
6945
|
this.json = options["json"] || false;
|
|
6916
6946
|
this.listener = options["listener"] || null;
|
|
6947
|
+
this.maxDepth = typeof options["maxDepth"] === "number" ? options["maxDepth"] : 100;
|
|
6948
|
+
this.maxTotalMergeKeys = typeof options["maxTotalMergeKeys"] === "number" ? options["maxTotalMergeKeys"] : 1e4;
|
|
6917
6949
|
this.implicitTypes = this.schema.compiledImplicit;
|
|
6918
6950
|
this.typeMap = this.schema.compiledTypeMap;
|
|
6919
6951
|
this.length = input.length;
|
|
@@ -6921,11 +6953,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6921
6953
|
this.line = 0;
|
|
6922
6954
|
this.lineStart = 0;
|
|
6923
6955
|
this.lineIndent = 0;
|
|
6956
|
+
this.depth = 0;
|
|
6957
|
+
this.totalMergeKeys = 0;
|
|
6924
6958
|
this.firstTabInLine = -1;
|
|
6925
6959
|
this.documents = [];
|
|
6960
|
+
this.anchorMapTransactions = [];
|
|
6926
6961
|
}
|
|
6927
6962
|
function generateError(state, message) {
|
|
6928
|
-
|
|
6963
|
+
const mark = {
|
|
6929
6964
|
name: state.filename,
|
|
6930
6965
|
buffer: state.input.slice(0, -1),
|
|
6931
6966
|
position: state.position,
|
|
@@ -6941,24 +6976,81 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6941
6976
|
function throwWarning(state, message) {
|
|
6942
6977
|
if (state.onWarning) state.onWarning.call(null, generateError(state, message));
|
|
6943
6978
|
}
|
|
6944
|
-
|
|
6979
|
+
function storeAnchor(state, name, value) {
|
|
6980
|
+
const transactions = state.anchorMapTransactions;
|
|
6981
|
+
if (transactions.length !== 0) {
|
|
6982
|
+
const transaction = transactions[transactions.length - 1];
|
|
6983
|
+
if (!_hasOwnProperty.call(transaction, name)) transaction[name] = {
|
|
6984
|
+
existed: _hasOwnProperty.call(state.anchorMap, name),
|
|
6985
|
+
value: state.anchorMap[name]
|
|
6986
|
+
};
|
|
6987
|
+
}
|
|
6988
|
+
state.anchorMap[name] = value;
|
|
6989
|
+
}
|
|
6990
|
+
function beginAnchorTransaction(state) {
|
|
6991
|
+
state.anchorMapTransactions.push(Object.create(null));
|
|
6992
|
+
}
|
|
6993
|
+
function commitAnchorTransaction(state) {
|
|
6994
|
+
const transaction = state.anchorMapTransactions.pop();
|
|
6995
|
+
const transactions = state.anchorMapTransactions;
|
|
6996
|
+
if (transactions.length === 0) return;
|
|
6997
|
+
const parent = transactions[transactions.length - 1];
|
|
6998
|
+
const names = Object.keys(transaction);
|
|
6999
|
+
for (let index = 0, length = names.length; index < length; index += 1) {
|
|
7000
|
+
const name = names[index];
|
|
7001
|
+
if (!_hasOwnProperty.call(parent, name)) parent[name] = transaction[name];
|
|
7002
|
+
}
|
|
7003
|
+
}
|
|
7004
|
+
function rollbackAnchorTransaction(state) {
|
|
7005
|
+
const transaction = state.anchorMapTransactions.pop();
|
|
7006
|
+
const names = Object.keys(transaction);
|
|
7007
|
+
for (let index = names.length - 1; index >= 0; index -= 1) {
|
|
7008
|
+
const entry = transaction[names[index]];
|
|
7009
|
+
if (entry.existed) state.anchorMap[names[index]] = entry.value;
|
|
7010
|
+
else delete state.anchorMap[names[index]];
|
|
7011
|
+
}
|
|
7012
|
+
}
|
|
7013
|
+
function snapshotState(state) {
|
|
7014
|
+
return {
|
|
7015
|
+
position: state.position,
|
|
7016
|
+
line: state.line,
|
|
7017
|
+
lineStart: state.lineStart,
|
|
7018
|
+
lineIndent: state.lineIndent,
|
|
7019
|
+
firstTabInLine: state.firstTabInLine,
|
|
7020
|
+
tag: state.tag,
|
|
7021
|
+
anchor: state.anchor,
|
|
7022
|
+
kind: state.kind,
|
|
7023
|
+
result: state.result
|
|
7024
|
+
};
|
|
7025
|
+
}
|
|
7026
|
+
function restoreState(state, snapshot) {
|
|
7027
|
+
state.position = snapshot.position;
|
|
7028
|
+
state.line = snapshot.line;
|
|
7029
|
+
state.lineStart = snapshot.lineStart;
|
|
7030
|
+
state.lineIndent = snapshot.lineIndent;
|
|
7031
|
+
state.firstTabInLine = snapshot.firstTabInLine;
|
|
7032
|
+
state.tag = snapshot.tag;
|
|
7033
|
+
state.anchor = snapshot.anchor;
|
|
7034
|
+
state.kind = snapshot.kind;
|
|
7035
|
+
state.result = snapshot.result;
|
|
7036
|
+
}
|
|
7037
|
+
const directiveHandlers = {
|
|
6945
7038
|
YAML: function handleYamlDirective(state, name, args) {
|
|
6946
|
-
var match, major, minor;
|
|
6947
7039
|
if (state.version !== null) throwError(state, "duplication of %YAML directive");
|
|
6948
7040
|
if (args.length !== 1) throwError(state, "YAML directive accepts exactly one argument");
|
|
6949
|
-
match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
|
|
7041
|
+
const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
|
|
6950
7042
|
if (match === null) throwError(state, "ill-formed argument of the YAML directive");
|
|
6951
|
-
major = parseInt(match[1], 10);
|
|
6952
|
-
minor = parseInt(match[2], 10);
|
|
7043
|
+
const major = parseInt(match[1], 10);
|
|
7044
|
+
const minor = parseInt(match[2], 10);
|
|
6953
7045
|
if (major !== 1) throwError(state, "unacceptable YAML version of the document");
|
|
6954
7046
|
state.version = args[0];
|
|
6955
7047
|
state.checkLineBreaks = minor < 2;
|
|
6956
7048
|
if (minor !== 1 && minor !== 2) throwWarning(state, "unsupported YAML version of the document");
|
|
6957
7049
|
},
|
|
6958
7050
|
TAG: function handleTagDirective(state, name, args) {
|
|
6959
|
-
|
|
7051
|
+
let prefix;
|
|
6960
7052
|
if (args.length !== 2) throwError(state, "TAG directive accepts exactly two arguments");
|
|
6961
|
-
handle = args[0];
|
|
7053
|
+
const handle = args[0];
|
|
6962
7054
|
prefix = args[1];
|
|
6963
7055
|
if (!PATTERN_TAG_HANDLE.test(handle)) throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
|
|
6964
7056
|
if (_hasOwnProperty.call(state.tagMap, handle)) throwError(state, "there is a previously declared suffix for \"" + handle + "\" tag handle");
|
|
@@ -6972,23 +7064,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6972
7064
|
}
|
|
6973
7065
|
};
|
|
6974
7066
|
function captureSegment(state, start, end, checkJson) {
|
|
6975
|
-
var _position, _length, _character, _result;
|
|
6976
7067
|
if (start < end) {
|
|
6977
|
-
_result = state.input.slice(start, end);
|
|
6978
|
-
if (checkJson) for (_position = 0, _length = _result.length; _position < _length; _position += 1) {
|
|
6979
|
-
_character = _result.charCodeAt(_position);
|
|
6980
|
-
if (!(_character === 9 ||
|
|
7068
|
+
const _result = state.input.slice(start, end);
|
|
7069
|
+
if (checkJson) for (let _position = 0, _length = _result.length; _position < _length; _position += 1) {
|
|
7070
|
+
const _character = _result.charCodeAt(_position);
|
|
7071
|
+
if (!(_character === 9 || _character >= 32 && _character <= 1114111)) throwError(state, "expected valid JSON character");
|
|
6981
7072
|
}
|
|
6982
7073
|
else if (PATTERN_NON_PRINTABLE.test(_result)) throwError(state, "the stream contains non-printable characters");
|
|
6983
7074
|
state.result += _result;
|
|
6984
7075
|
}
|
|
6985
7076
|
}
|
|
6986
7077
|
function mergeMappings(state, destination, source, overridableKeys) {
|
|
6987
|
-
var sourceKeys, key, index, quantity;
|
|
6988
7078
|
if (!common.isObject(source)) throwError(state, "cannot merge mappings; the provided source object is unacceptable");
|
|
6989
|
-
sourceKeys = Object.keys(source);
|
|
6990
|
-
for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
|
|
6991
|
-
key = sourceKeys[index];
|
|
7079
|
+
const sourceKeys = Object.keys(source);
|
|
7080
|
+
for (let index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
|
|
7081
|
+
const key = sourceKeys[index];
|
|
7082
|
+
if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
|
|
6992
7083
|
if (!_hasOwnProperty.call(destination, key)) {
|
|
6993
7084
|
setProperty(destination, key, source[key]);
|
|
6994
7085
|
overridableKeys[key] = true;
|
|
@@ -6996,10 +7087,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6996
7087
|
}
|
|
6997
7088
|
}
|
|
6998
7089
|
function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, startLine, startLineStart, startPos) {
|
|
6999
|
-
var index, quantity;
|
|
7000
7090
|
if (Array.isArray(keyNode)) {
|
|
7001
7091
|
keyNode = Array.prototype.slice.call(keyNode);
|
|
7002
|
-
for (index = 0, quantity = keyNode.length; index < quantity; index += 1) {
|
|
7092
|
+
for (let index = 0, quantity = keyNode.length; index < quantity; index += 1) {
|
|
7003
7093
|
if (Array.isArray(keyNode[index])) throwError(state, "nested arrays are not supported inside keys");
|
|
7004
7094
|
if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") keyNode[index] = "[object Object]";
|
|
7005
7095
|
}
|
|
@@ -7007,7 +7097,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7007
7097
|
if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") keyNode = "[object Object]";
|
|
7008
7098
|
keyNode = String(keyNode);
|
|
7009
7099
|
if (_result === null) _result = {};
|
|
7010
|
-
if (keyTag === "tag:yaml.org,2002:merge") if (Array.isArray(valueNode)) for (index = 0, quantity = valueNode.length; index < quantity; index += 1) mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
7100
|
+
if (keyTag === "tag:yaml.org,2002:merge") if (Array.isArray(valueNode)) for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
7011
7101
|
else mergeMappings(state, _result, valueNode, overridableKeys);
|
|
7012
7102
|
else {
|
|
7013
7103
|
if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
|
|
@@ -7022,7 +7112,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7022
7112
|
return _result;
|
|
7023
7113
|
}
|
|
7024
7114
|
function readLineBreak(state) {
|
|
7025
|
-
|
|
7115
|
+
const ch = state.input.charCodeAt(state.position);
|
|
7026
7116
|
if (ch === 10) state.position++;
|
|
7027
7117
|
else if (ch === 13) {
|
|
7028
7118
|
state.position++;
|
|
@@ -7033,16 +7123,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7033
7123
|
state.firstTabInLine = -1;
|
|
7034
7124
|
}
|
|
7035
7125
|
function skipSeparationSpace(state, allowComments, checkIndent) {
|
|
7036
|
-
|
|
7126
|
+
let lineBreaks = 0;
|
|
7127
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7037
7128
|
while (ch !== 0) {
|
|
7038
|
-
while (
|
|
7129
|
+
while (isWhiteSpace(ch)) {
|
|
7039
7130
|
if (ch === 9 && state.firstTabInLine === -1) state.firstTabInLine = state.position;
|
|
7040
7131
|
ch = state.input.charCodeAt(++state.position);
|
|
7041
7132
|
}
|
|
7042
7133
|
if (allowComments && ch === 35) do
|
|
7043
7134
|
ch = state.input.charCodeAt(++state.position);
|
|
7044
7135
|
while (ch !== 10 && ch !== 13 && ch !== 0);
|
|
7045
|
-
if (
|
|
7136
|
+
if (isEol(ch)) {
|
|
7046
7137
|
readLineBreak(state);
|
|
7047
7138
|
ch = state.input.charCodeAt(state.position);
|
|
7048
7139
|
lineBreaks++;
|
|
@@ -7057,11 +7148,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7057
7148
|
return lineBreaks;
|
|
7058
7149
|
}
|
|
7059
7150
|
function testDocumentSeparator(state) {
|
|
7060
|
-
|
|
7151
|
+
let _position = state.position;
|
|
7152
|
+
let ch = state.input.charCodeAt(_position);
|
|
7061
7153
|
if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
|
|
7062
7154
|
_position += 3;
|
|
7063
7155
|
ch = state.input.charCodeAt(_position);
|
|
7064
|
-
if (ch === 0 ||
|
|
7156
|
+
if (ch === 0 || isWsOrEol(ch)) return true;
|
|
7065
7157
|
}
|
|
7066
7158
|
return false;
|
|
7067
7159
|
}
|
|
@@ -7070,11 +7162,19 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7070
7162
|
else if (count > 1) state.result += common.repeat("\n", count - 1);
|
|
7071
7163
|
}
|
|
7072
7164
|
function readPlainScalar(state, nodeIndent, withinFlowCollection) {
|
|
7073
|
-
|
|
7074
|
-
|
|
7165
|
+
let captureStart;
|
|
7166
|
+
let captureEnd;
|
|
7167
|
+
let hasPendingContent;
|
|
7168
|
+
let _line;
|
|
7169
|
+
let _lineStart;
|
|
7170
|
+
let _lineIndent;
|
|
7171
|
+
const _kind = state.kind;
|
|
7172
|
+
const _result = state.result;
|
|
7173
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7174
|
+
if (isWsOrEol(ch) || isFlowIndicator(ch) || ch === 35 || ch === 38 || ch === 42 || ch === 33 || ch === 124 || ch === 62 || ch === 39 || ch === 34 || ch === 37 || ch === 64 || ch === 96) return false;
|
|
7075
7175
|
if (ch === 63 || ch === 45) {
|
|
7076
|
-
following = state.input.charCodeAt(state.position + 1);
|
|
7077
|
-
if (
|
|
7176
|
+
const following = state.input.charCodeAt(state.position + 1);
|
|
7177
|
+
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) return false;
|
|
7078
7178
|
}
|
|
7079
7179
|
state.kind = "scalar";
|
|
7080
7180
|
state.result = "";
|
|
@@ -7082,13 +7182,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7082
7182
|
hasPendingContent = false;
|
|
7083
7183
|
while (ch !== 0) {
|
|
7084
7184
|
if (ch === 58) {
|
|
7085
|
-
following = state.input.charCodeAt(state.position + 1);
|
|
7086
|
-
if (
|
|
7185
|
+
const following = state.input.charCodeAt(state.position + 1);
|
|
7186
|
+
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) break;
|
|
7087
7187
|
} else if (ch === 35) {
|
|
7088
|
-
|
|
7089
|
-
|
|
7090
|
-
|
|
7091
|
-
else if (is_EOL(ch)) {
|
|
7188
|
+
if (isWsOrEol(state.input.charCodeAt(state.position - 1))) break;
|
|
7189
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch)) break;
|
|
7190
|
+
else if (isEol(ch)) {
|
|
7092
7191
|
_line = state.line;
|
|
7093
7192
|
_lineStart = state.lineStart;
|
|
7094
7193
|
_lineIndent = state.lineIndent;
|
|
@@ -7111,7 +7210,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7111
7210
|
captureStart = captureEnd = state.position;
|
|
7112
7211
|
hasPendingContent = false;
|
|
7113
7212
|
}
|
|
7114
|
-
if (!
|
|
7213
|
+
if (!isWhiteSpace(ch)) captureEnd = state.position + 1;
|
|
7115
7214
|
ch = state.input.charCodeAt(++state.position);
|
|
7116
7215
|
}
|
|
7117
7216
|
captureSegment(state, captureStart, captureEnd, false);
|
|
@@ -7121,7 +7220,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7121
7220
|
return false;
|
|
7122
7221
|
}
|
|
7123
7222
|
function readSingleQuotedScalar(state, nodeIndent) {
|
|
7124
|
-
|
|
7223
|
+
let captureStart;
|
|
7224
|
+
let captureEnd;
|
|
7225
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7125
7226
|
if (ch !== 39) return false;
|
|
7126
7227
|
state.kind = "scalar";
|
|
7127
7228
|
state.result = "";
|
|
@@ -7135,19 +7236,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7135
7236
|
state.position++;
|
|
7136
7237
|
captureEnd = state.position;
|
|
7137
7238
|
} else return true;
|
|
7138
|
-
} else if (
|
|
7239
|
+
} else if (isEol(ch)) {
|
|
7139
7240
|
captureSegment(state, captureStart, captureEnd, true);
|
|
7140
7241
|
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
7141
7242
|
captureStart = captureEnd = state.position;
|
|
7142
7243
|
} else if (state.position === state.lineStart && testDocumentSeparator(state)) throwError(state, "unexpected end of the document within a single quoted scalar");
|
|
7143
7244
|
else {
|
|
7144
7245
|
state.position++;
|
|
7145
|
-
captureEnd = state.position;
|
|
7246
|
+
if (!isWhiteSpace(ch)) captureEnd = state.position;
|
|
7146
7247
|
}
|
|
7147
7248
|
throwError(state, "unexpected end of the stream within a single quoted scalar");
|
|
7148
7249
|
}
|
|
7149
7250
|
function readDoubleQuotedScalar(state, nodeIndent) {
|
|
7150
|
-
|
|
7251
|
+
let captureStart;
|
|
7252
|
+
let captureEnd;
|
|
7253
|
+
let tmp;
|
|
7254
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7151
7255
|
if (ch !== 34) return false;
|
|
7152
7256
|
state.kind = "scalar";
|
|
7153
7257
|
state.result = "";
|
|
@@ -7160,13 +7264,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7160
7264
|
} else if (ch === 92) {
|
|
7161
7265
|
captureSegment(state, captureStart, state.position, true);
|
|
7162
7266
|
ch = state.input.charCodeAt(++state.position);
|
|
7163
|
-
if (
|
|
7267
|
+
if (isEol(ch)) skipSeparationSpace(state, false, nodeIndent);
|
|
7164
7268
|
else if (ch < 256 && simpleEscapeCheck[ch]) {
|
|
7165
7269
|
state.result += simpleEscapeMap[ch];
|
|
7166
7270
|
state.position++;
|
|
7167
7271
|
} else if ((tmp = escapedHexLen(ch)) > 0) {
|
|
7168
|
-
hexLength = tmp;
|
|
7169
|
-
hexResult = 0;
|
|
7272
|
+
let hexLength = tmp;
|
|
7273
|
+
let hexResult = 0;
|
|
7170
7274
|
for (; hexLength > 0; hexLength--) {
|
|
7171
7275
|
ch = state.input.charCodeAt(++state.position);
|
|
7172
7276
|
if ((tmp = fromHexCode(ch)) >= 0) hexResult = (hexResult << 4) + tmp;
|
|
@@ -7176,19 +7280,34 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7176
7280
|
state.position++;
|
|
7177
7281
|
} else throwError(state, "unknown escape sequence");
|
|
7178
7282
|
captureStart = captureEnd = state.position;
|
|
7179
|
-
} else if (
|
|
7283
|
+
} else if (isEol(ch)) {
|
|
7180
7284
|
captureSegment(state, captureStart, captureEnd, true);
|
|
7181
7285
|
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
7182
7286
|
captureStart = captureEnd = state.position;
|
|
7183
7287
|
} else if (state.position === state.lineStart && testDocumentSeparator(state)) throwError(state, "unexpected end of the document within a double quoted scalar");
|
|
7184
7288
|
else {
|
|
7185
7289
|
state.position++;
|
|
7186
|
-
captureEnd = state.position;
|
|
7290
|
+
if (!isWhiteSpace(ch)) captureEnd = state.position;
|
|
7187
7291
|
}
|
|
7188
7292
|
throwError(state, "unexpected end of the stream within a double quoted scalar");
|
|
7189
7293
|
}
|
|
7190
7294
|
function readFlowCollection(state, nodeIndent) {
|
|
7191
|
-
|
|
7295
|
+
let readNext = true;
|
|
7296
|
+
let _line;
|
|
7297
|
+
let _lineStart;
|
|
7298
|
+
let _pos;
|
|
7299
|
+
const _tag = state.tag;
|
|
7300
|
+
let _result;
|
|
7301
|
+
const _anchor = state.anchor;
|
|
7302
|
+
let terminator;
|
|
7303
|
+
let isPair;
|
|
7304
|
+
let isExplicitPair;
|
|
7305
|
+
let isMapping;
|
|
7306
|
+
const overridableKeys = Object.create(null);
|
|
7307
|
+
let keyNode;
|
|
7308
|
+
let keyTag;
|
|
7309
|
+
let valueNode;
|
|
7310
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7192
7311
|
if (ch === 91) {
|
|
7193
7312
|
terminator = 93;
|
|
7194
7313
|
isMapping = false;
|
|
@@ -7198,7 +7317,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7198
7317
|
isMapping = true;
|
|
7199
7318
|
_result = {};
|
|
7200
7319
|
} else return false;
|
|
7201
|
-
if (state.anchor !== null) state
|
|
7320
|
+
if (state.anchor !== null) storeAnchor(state, state.anchor, _result);
|
|
7202
7321
|
ch = state.input.charCodeAt(++state.position);
|
|
7203
7322
|
while (ch !== 0) {
|
|
7204
7323
|
skipSeparationSpace(state, true, nodeIndent);
|
|
@@ -7215,8 +7334,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7215
7334
|
keyTag = keyNode = valueNode = null;
|
|
7216
7335
|
isPair = isExplicitPair = false;
|
|
7217
7336
|
if (ch === 63) {
|
|
7218
|
-
|
|
7219
|
-
if (is_WS_OR_EOL(following)) {
|
|
7337
|
+
if (isWsOrEol(state.input.charCodeAt(state.position + 1))) {
|
|
7220
7338
|
isPair = isExplicitPair = true;
|
|
7221
7339
|
state.position++;
|
|
7222
7340
|
skipSeparationSpace(state, true, nodeIndent);
|
|
@@ -7250,7 +7368,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7250
7368
|
throwError(state, "unexpected end of the stream within a flow collection");
|
|
7251
7369
|
}
|
|
7252
7370
|
function readBlockScalar(state, nodeIndent) {
|
|
7253
|
-
|
|
7371
|
+
let folding;
|
|
7372
|
+
let chomping = CHOMPING_CLIP;
|
|
7373
|
+
let didReadContent = false;
|
|
7374
|
+
let detectedIndent = false;
|
|
7375
|
+
let textIndent = nodeIndent;
|
|
7376
|
+
let emptyLines = 0;
|
|
7377
|
+
let atMoreIndented = false;
|
|
7378
|
+
let tmp;
|
|
7379
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7254
7380
|
if (ch === 124) folding = false;
|
|
7255
7381
|
else if (ch === 62) folding = true;
|
|
7256
7382
|
else return false;
|
|
@@ -7267,13 +7393,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7267
7393
|
} else throwError(state, "repeat of an indentation width identifier");
|
|
7268
7394
|
else break;
|
|
7269
7395
|
}
|
|
7270
|
-
if (
|
|
7396
|
+
if (isWhiteSpace(ch)) {
|
|
7271
7397
|
do
|
|
7272
7398
|
ch = state.input.charCodeAt(++state.position);
|
|
7273
|
-
while (
|
|
7399
|
+
while (isWhiteSpace(ch));
|
|
7274
7400
|
if (ch === 35) do
|
|
7275
7401
|
ch = state.input.charCodeAt(++state.position);
|
|
7276
|
-
while (!
|
|
7402
|
+
while (!isEol(ch) && ch !== 0);
|
|
7277
7403
|
}
|
|
7278
7404
|
while (ch !== 0) {
|
|
7279
7405
|
readLineBreak(state);
|
|
@@ -7284,10 +7410,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7284
7410
|
ch = state.input.charCodeAt(++state.position);
|
|
7285
7411
|
}
|
|
7286
7412
|
if (!detectedIndent && state.lineIndent > textIndent) textIndent = state.lineIndent;
|
|
7287
|
-
if (
|
|
7413
|
+
if (isEol(ch)) {
|
|
7288
7414
|
emptyLines++;
|
|
7289
7415
|
continue;
|
|
7290
7416
|
}
|
|
7417
|
+
if (!detectedIndent && textIndent === 0) throwError(state, "missing indentation for block scalar");
|
|
7291
7418
|
if (state.lineIndent < textIndent) {
|
|
7292
7419
|
if (chomping === CHOMPING_KEEP) state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
7293
7420
|
else if (chomping === CHOMPING_CLIP) {
|
|
@@ -7295,7 +7422,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7295
7422
|
}
|
|
7296
7423
|
break;
|
|
7297
7424
|
}
|
|
7298
|
-
if (folding) if (
|
|
7425
|
+
if (folding) if (isWhiteSpace(ch)) {
|
|
7299
7426
|
atMoreIndented = true;
|
|
7300
7427
|
state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
7301
7428
|
} else if (atMoreIndented) {
|
|
@@ -7308,25 +7435,27 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7308
7435
|
didReadContent = true;
|
|
7309
7436
|
detectedIndent = true;
|
|
7310
7437
|
emptyLines = 0;
|
|
7311
|
-
captureStart = state.position;
|
|
7312
|
-
while (!
|
|
7438
|
+
const captureStart = state.position;
|
|
7439
|
+
while (!isEol(ch) && ch !== 0) ch = state.input.charCodeAt(++state.position);
|
|
7313
7440
|
captureSegment(state, captureStart, state.position, false);
|
|
7314
7441
|
}
|
|
7315
7442
|
return true;
|
|
7316
7443
|
}
|
|
7317
7444
|
function readBlockSequence(state, nodeIndent) {
|
|
7318
|
-
|
|
7445
|
+
const _tag = state.tag;
|
|
7446
|
+
const _anchor = state.anchor;
|
|
7447
|
+
const _result = [];
|
|
7448
|
+
let detected = false;
|
|
7319
7449
|
if (state.firstTabInLine !== -1) return false;
|
|
7320
|
-
if (state.anchor !== null) state
|
|
7321
|
-
ch = state.input.charCodeAt(state.position);
|
|
7450
|
+
if (state.anchor !== null) storeAnchor(state, state.anchor, _result);
|
|
7451
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7322
7452
|
while (ch !== 0) {
|
|
7323
7453
|
if (state.firstTabInLine !== -1) {
|
|
7324
7454
|
state.position = state.firstTabInLine;
|
|
7325
7455
|
throwError(state, "tab characters must not be used in indentation");
|
|
7326
7456
|
}
|
|
7327
7457
|
if (ch !== 45) break;
|
|
7328
|
-
|
|
7329
|
-
if (!is_WS_OR_EOL(following)) break;
|
|
7458
|
+
if (!isWsOrEol(state.input.charCodeAt(state.position + 1))) break;
|
|
7330
7459
|
detected = true;
|
|
7331
7460
|
state.position++;
|
|
7332
7461
|
if (skipSeparationSpace(state, true, -1)) {
|
|
@@ -7336,7 +7465,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7336
7465
|
continue;
|
|
7337
7466
|
}
|
|
7338
7467
|
}
|
|
7339
|
-
_line = state.line;
|
|
7468
|
+
const _line = state.line;
|
|
7340
7469
|
composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);
|
|
7341
7470
|
_result.push(state.result);
|
|
7342
7471
|
skipSeparationSpace(state, true, -1);
|
|
@@ -7354,18 +7483,30 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7354
7483
|
return false;
|
|
7355
7484
|
}
|
|
7356
7485
|
function readBlockMapping(state, nodeIndent, flowIndent) {
|
|
7357
|
-
|
|
7486
|
+
let allowCompact;
|
|
7487
|
+
let _keyLine;
|
|
7488
|
+
let _keyLineStart;
|
|
7489
|
+
let _keyPos;
|
|
7490
|
+
const _tag = state.tag;
|
|
7491
|
+
const _anchor = state.anchor;
|
|
7492
|
+
const _result = {};
|
|
7493
|
+
const overridableKeys = Object.create(null);
|
|
7494
|
+
let keyTag = null;
|
|
7495
|
+
let keyNode = null;
|
|
7496
|
+
let valueNode = null;
|
|
7497
|
+
let atExplicitKey = false;
|
|
7498
|
+
let detected = false;
|
|
7358
7499
|
if (state.firstTabInLine !== -1) return false;
|
|
7359
|
-
if (state.anchor !== null) state
|
|
7360
|
-
ch = state.input.charCodeAt(state.position);
|
|
7500
|
+
if (state.anchor !== null) storeAnchor(state, state.anchor, _result);
|
|
7501
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7361
7502
|
while (ch !== 0) {
|
|
7362
7503
|
if (!atExplicitKey && state.firstTabInLine !== -1) {
|
|
7363
7504
|
state.position = state.firstTabInLine;
|
|
7364
7505
|
throwError(state, "tab characters must not be used in indentation");
|
|
7365
7506
|
}
|
|
7366
|
-
following = state.input.charCodeAt(state.position + 1);
|
|
7367
|
-
_line = state.line;
|
|
7368
|
-
if ((ch === 63 || ch === 58) &&
|
|
7507
|
+
const following = state.input.charCodeAt(state.position + 1);
|
|
7508
|
+
const _line = state.line;
|
|
7509
|
+
if ((ch === 63 || ch === 58) && isWsOrEol(following)) {
|
|
7369
7510
|
if (ch === 63) {
|
|
7370
7511
|
if (atExplicitKey) {
|
|
7371
7512
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
@@ -7387,10 +7528,10 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7387
7528
|
if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) break;
|
|
7388
7529
|
if (state.line === _line) {
|
|
7389
7530
|
ch = state.input.charCodeAt(state.position);
|
|
7390
|
-
while (
|
|
7531
|
+
while (isWhiteSpace(ch)) ch = state.input.charCodeAt(++state.position);
|
|
7391
7532
|
if (ch === 58) {
|
|
7392
7533
|
ch = state.input.charCodeAt(++state.position);
|
|
7393
|
-
if (!
|
|
7534
|
+
if (!isWsOrEol(ch)) throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
|
|
7394
7535
|
if (atExplicitKey) {
|
|
7395
7536
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
7396
7537
|
keyTag = keyNode = valueNode = null;
|
|
@@ -7441,7 +7582,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7441
7582
|
return detected;
|
|
7442
7583
|
}
|
|
7443
7584
|
function readTagProperty(state) {
|
|
7444
|
-
|
|
7585
|
+
let isVerbatim = false;
|
|
7586
|
+
let isNamed = false;
|
|
7587
|
+
let tagHandle;
|
|
7588
|
+
let tagName;
|
|
7589
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7445
7590
|
if (ch !== 33) return false;
|
|
7446
7591
|
if (state.tag !== null) throwError(state, "duplication of a tag property");
|
|
7447
7592
|
ch = state.input.charCodeAt(++state.position);
|
|
@@ -7453,7 +7598,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7453
7598
|
tagHandle = "!!";
|
|
7454
7599
|
ch = state.input.charCodeAt(++state.position);
|
|
7455
7600
|
} else tagHandle = "!";
|
|
7456
|
-
_position = state.position;
|
|
7601
|
+
let _position = state.position;
|
|
7457
7602
|
if (isVerbatim) {
|
|
7458
7603
|
do
|
|
7459
7604
|
ch = state.input.charCodeAt(++state.position);
|
|
@@ -7463,7 +7608,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7463
7608
|
ch = state.input.charCodeAt(++state.position);
|
|
7464
7609
|
} else throwError(state, "unexpected end of the stream within a verbatim tag");
|
|
7465
7610
|
} else {
|
|
7466
|
-
while (ch !== 0 && !
|
|
7611
|
+
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
7467
7612
|
if (ch === 33) if (!isNamed) {
|
|
7468
7613
|
tagHandle = state.input.slice(_position - 1, state.position + 1);
|
|
7469
7614
|
if (!PATTERN_TAG_HANDLE.test(tagHandle)) throwError(state, "named tag handle cannot contain such characters");
|
|
@@ -7489,37 +7634,63 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7489
7634
|
return true;
|
|
7490
7635
|
}
|
|
7491
7636
|
function readAnchorProperty(state) {
|
|
7492
|
-
|
|
7637
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7493
7638
|
if (ch !== 38) return false;
|
|
7494
7639
|
if (state.anchor !== null) throwError(state, "duplication of an anchor property");
|
|
7495
7640
|
ch = state.input.charCodeAt(++state.position);
|
|
7496
|
-
_position = state.position;
|
|
7497
|
-
while (ch !== 0 && !
|
|
7641
|
+
const _position = state.position;
|
|
7642
|
+
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) ch = state.input.charCodeAt(++state.position);
|
|
7498
7643
|
if (state.position === _position) throwError(state, "name of an anchor node must contain at least one character");
|
|
7499
7644
|
state.anchor = state.input.slice(_position, state.position);
|
|
7500
7645
|
return true;
|
|
7501
7646
|
}
|
|
7502
7647
|
function readAlias(state) {
|
|
7503
|
-
|
|
7648
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7504
7649
|
if (ch !== 42) return false;
|
|
7505
7650
|
ch = state.input.charCodeAt(++state.position);
|
|
7506
|
-
_position = state.position;
|
|
7507
|
-
while (ch !== 0 && !
|
|
7651
|
+
const _position = state.position;
|
|
7652
|
+
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) ch = state.input.charCodeAt(++state.position);
|
|
7508
7653
|
if (state.position === _position) throwError(state, "name of an alias node must contain at least one character");
|
|
7509
|
-
alias = state.input.slice(_position, state.position);
|
|
7654
|
+
const alias = state.input.slice(_position, state.position);
|
|
7510
7655
|
if (!_hasOwnProperty.call(state.anchorMap, alias)) throwError(state, "unidentified alias \"" + alias + "\"");
|
|
7511
7656
|
state.result = state.anchorMap[alias];
|
|
7512
7657
|
skipSeparationSpace(state, true, -1);
|
|
7513
7658
|
return true;
|
|
7514
7659
|
}
|
|
7660
|
+
function tryReadBlockMappingFromProperty(state, propertyStart, nodeIndent, flowIndent) {
|
|
7661
|
+
const fallbackState = snapshotState(state);
|
|
7662
|
+
beginAnchorTransaction(state);
|
|
7663
|
+
restoreState(state, propertyStart);
|
|
7664
|
+
state.tag = null;
|
|
7665
|
+
state.anchor = null;
|
|
7666
|
+
state.kind = null;
|
|
7667
|
+
state.result = null;
|
|
7668
|
+
if (readBlockMapping(state, nodeIndent, flowIndent) && state.kind === "mapping") {
|
|
7669
|
+
commitAnchorTransaction(state);
|
|
7670
|
+
return true;
|
|
7671
|
+
}
|
|
7672
|
+
rollbackAnchorTransaction(state);
|
|
7673
|
+
restoreState(state, fallbackState);
|
|
7674
|
+
return false;
|
|
7675
|
+
}
|
|
7515
7676
|
function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {
|
|
7516
|
-
|
|
7677
|
+
let allowBlockScalars;
|
|
7678
|
+
let allowBlockCollections;
|
|
7679
|
+
let indentStatus = 1;
|
|
7680
|
+
let atNewLine = false;
|
|
7681
|
+
let hasContent = false;
|
|
7682
|
+
let propertyStart = null;
|
|
7683
|
+
let type;
|
|
7684
|
+
let flowIndent;
|
|
7685
|
+
let blockIndent;
|
|
7686
|
+
if (state.depth >= state.maxDepth) throwError(state, "nesting exceeded maxDepth (" + state.maxDepth + ")");
|
|
7687
|
+
state.depth += 1;
|
|
7517
7688
|
if (state.listener !== null) state.listener("open", state);
|
|
7518
7689
|
state.tag = null;
|
|
7519
7690
|
state.anchor = null;
|
|
7520
7691
|
state.kind = null;
|
|
7521
7692
|
state.result = null;
|
|
7522
|
-
allowBlockStyles = allowBlockScalars = allowBlockCollections = CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext;
|
|
7693
|
+
const allowBlockStyles = allowBlockScalars = allowBlockCollections = CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext;
|
|
7523
7694
|
if (allowToSeek) {
|
|
7524
7695
|
if (skipSeparationSpace(state, true, -1)) {
|
|
7525
7696
|
atNewLine = true;
|
|
@@ -7528,13 +7699,20 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7528
7699
|
else if (state.lineIndent < parentIndent) indentStatus = -1;
|
|
7529
7700
|
}
|
|
7530
7701
|
}
|
|
7531
|
-
if (indentStatus === 1) while (
|
|
7532
|
-
|
|
7533
|
-
|
|
7534
|
-
if (state.
|
|
7535
|
-
|
|
7536
|
-
|
|
7537
|
-
|
|
7702
|
+
if (indentStatus === 1) while (true) {
|
|
7703
|
+
const ch = state.input.charCodeAt(state.position);
|
|
7704
|
+
const propertyState = snapshotState(state);
|
|
7705
|
+
if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null)) break;
|
|
7706
|
+
if (!readTagProperty(state) && !readAnchorProperty(state)) break;
|
|
7707
|
+
if (propertyStart === null) propertyStart = propertyState;
|
|
7708
|
+
if (skipSeparationSpace(state, true, -1)) {
|
|
7709
|
+
atNewLine = true;
|
|
7710
|
+
allowBlockCollections = allowBlockStyles;
|
|
7711
|
+
if (state.lineIndent > parentIndent) indentStatus = 1;
|
|
7712
|
+
else if (state.lineIndent === parentIndent) indentStatus = 0;
|
|
7713
|
+
else if (state.lineIndent < parentIndent) indentStatus = -1;
|
|
7714
|
+
} else allowBlockCollections = false;
|
|
7715
|
+
}
|
|
7538
7716
|
if (allowBlockCollections) allowBlockCollections = atNewLine || allowCompact;
|
|
7539
7717
|
if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
|
|
7540
7718
|
if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) flowIndent = parentIndent;
|
|
@@ -7542,7 +7720,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7542
7720
|
blockIndent = state.position - state.lineStart;
|
|
7543
7721
|
if (indentStatus === 1) if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) hasContent = true;
|
|
7544
7722
|
else {
|
|
7545
|
-
|
|
7723
|
+
const ch = state.input.charCodeAt(state.position);
|
|
7724
|
+
if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) hasContent = true;
|
|
7725
|
+
else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) hasContent = true;
|
|
7546
7726
|
else if (readAlias(state)) {
|
|
7547
7727
|
hasContent = true;
|
|
7548
7728
|
if (state.tag !== null || state.anchor !== null) throwError(state, "alias node should not have any properties");
|
|
@@ -7550,20 +7730,20 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7550
7730
|
hasContent = true;
|
|
7551
7731
|
if (state.tag === null) state.tag = "?";
|
|
7552
7732
|
}
|
|
7553
|
-
if (state.anchor !== null) state
|
|
7733
|
+
if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
|
|
7554
7734
|
}
|
|
7555
7735
|
else if (indentStatus === 0) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
|
7556
7736
|
}
|
|
7557
7737
|
if (state.tag === null) {
|
|
7558
|
-
if (state.anchor !== null) state
|
|
7738
|
+
if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
|
|
7559
7739
|
} else if (state.tag === "?") {
|
|
7560
7740
|
if (state.result !== null && state.kind !== "scalar") throwError(state, "unacceptable node kind for !<?> tag; it should be \"scalar\", not \"" + state.kind + "\"");
|
|
7561
|
-
for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {
|
|
7741
|
+
for (let typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {
|
|
7562
7742
|
type = state.implicitTypes[typeIndex];
|
|
7563
7743
|
if (type.resolve(state.result)) {
|
|
7564
7744
|
state.result = type.construct(state.result);
|
|
7565
7745
|
state.tag = type.tag;
|
|
7566
|
-
if (state.anchor !== null) state
|
|
7746
|
+
if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
|
|
7567
7747
|
break;
|
|
7568
7748
|
}
|
|
7569
7749
|
}
|
|
@@ -7571,8 +7751,8 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7571
7751
|
if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag)) type = state.typeMap[state.kind || "fallback"][state.tag];
|
|
7572
7752
|
else {
|
|
7573
7753
|
type = null;
|
|
7574
|
-
typeList = state.typeMap.multi[state.kind || "fallback"];
|
|
7575
|
-
for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
|
|
7754
|
+
const typeList = state.typeMap.multi[state.kind || "fallback"];
|
|
7755
|
+
for (let typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
|
|
7576
7756
|
type = typeList[typeIndex];
|
|
7577
7757
|
break;
|
|
7578
7758
|
}
|
|
@@ -7582,14 +7762,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7582
7762
|
if (!type.resolve(state.result, state.tag)) throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
|
|
7583
7763
|
else {
|
|
7584
7764
|
state.result = type.construct(state.result, state.tag);
|
|
7585
|
-
if (state.anchor !== null) state
|
|
7765
|
+
if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
|
|
7586
7766
|
}
|
|
7587
7767
|
}
|
|
7588
7768
|
if (state.listener !== null) state.listener("close", state);
|
|
7769
|
+
state.depth -= 1;
|
|
7589
7770
|
return state.tag !== null || state.anchor !== null || hasContent;
|
|
7590
7771
|
}
|
|
7591
7772
|
function readDocument(state) {
|
|
7592
|
-
|
|
7773
|
+
const documentStart = state.position;
|
|
7774
|
+
let hasDirectives = false;
|
|
7775
|
+
let ch;
|
|
7593
7776
|
state.version = null;
|
|
7594
7777
|
state.checkLineBreaks = state.legacy;
|
|
7595
7778
|
state.tagMap = Object.create(null);
|
|
@@ -7600,22 +7783,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7600
7783
|
if (state.lineIndent > 0 || ch !== 37) break;
|
|
7601
7784
|
hasDirectives = true;
|
|
7602
7785
|
ch = state.input.charCodeAt(++state.position);
|
|
7603
|
-
_position = state.position;
|
|
7604
|
-
while (ch !== 0 && !
|
|
7605
|
-
directiveName = state.input.slice(_position, state.position);
|
|
7606
|
-
directiveArgs = [];
|
|
7786
|
+
let _position = state.position;
|
|
7787
|
+
while (ch !== 0 && !isWsOrEol(ch)) ch = state.input.charCodeAt(++state.position);
|
|
7788
|
+
const directiveName = state.input.slice(_position, state.position);
|
|
7789
|
+
const directiveArgs = [];
|
|
7607
7790
|
if (directiveName.length < 1) throwError(state, "directive name must not be less than one character in length");
|
|
7608
7791
|
while (ch !== 0) {
|
|
7609
|
-
while (
|
|
7792
|
+
while (isWhiteSpace(ch)) ch = state.input.charCodeAt(++state.position);
|
|
7610
7793
|
if (ch === 35) {
|
|
7611
7794
|
do
|
|
7612
7795
|
ch = state.input.charCodeAt(++state.position);
|
|
7613
|
-
while (ch !== 0 && !
|
|
7796
|
+
while (ch !== 0 && !isEol(ch));
|
|
7614
7797
|
break;
|
|
7615
7798
|
}
|
|
7616
|
-
if (
|
|
7799
|
+
if (isEol(ch)) break;
|
|
7617
7800
|
_position = state.position;
|
|
7618
|
-
while (ch !== 0 && !
|
|
7801
|
+
while (ch !== 0 && !isWsOrEol(ch)) ch = state.input.charCodeAt(++state.position);
|
|
7619
7802
|
directiveArgs.push(state.input.slice(_position, state.position));
|
|
7620
7803
|
}
|
|
7621
7804
|
if (ch !== 0) readLineBreak(state);
|
|
@@ -7639,7 +7822,6 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7639
7822
|
return;
|
|
7640
7823
|
}
|
|
7641
7824
|
if (state.position < state.length - 1) throwError(state, "end of the stream or a document separator is expected");
|
|
7642
|
-
else return;
|
|
7643
7825
|
}
|
|
7644
7826
|
function loadDocuments(input, options) {
|
|
7645
7827
|
input = String(input);
|
|
@@ -7648,8 +7830,8 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7648
7830
|
if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) input += "\n";
|
|
7649
7831
|
if (input.charCodeAt(0) === 65279) input = input.slice(1);
|
|
7650
7832
|
}
|
|
7651
|
-
|
|
7652
|
-
|
|
7833
|
+
const state = new State(input, options);
|
|
7834
|
+
const nullpos = input.indexOf("\0");
|
|
7653
7835
|
if (nullpos !== -1) {
|
|
7654
7836
|
state.position = nullpos;
|
|
7655
7837
|
throwError(state, "null byte is not allowed in input");
|
|
@@ -7667,12 +7849,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7667
7849
|
options = iterator;
|
|
7668
7850
|
iterator = null;
|
|
7669
7851
|
}
|
|
7670
|
-
|
|
7852
|
+
const documents = loadDocuments(input, options);
|
|
7671
7853
|
if (typeof iterator !== "function") return documents;
|
|
7672
|
-
for (
|
|
7854
|
+
for (let index = 0, length = documents.length; index < length; index += 1) iterator(documents[index]);
|
|
7673
7855
|
}
|
|
7674
7856
|
function load(input, options) {
|
|
7675
|
-
|
|
7857
|
+
const documents = loadDocuments(input, options);
|
|
7676
7858
|
if (documents.length === 0) return;
|
|
7677
7859
|
else if (documents.length === 1) return documents[0];
|
|
7678
7860
|
throw new YAMLException("expected a single document in the stream, but found more");
|
|
@@ -7681,39 +7863,39 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7681
7863
|
module.exports.load = load;
|
|
7682
7864
|
}));
|
|
7683
7865
|
//#endregion
|
|
7684
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
7866
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/dumper.js
|
|
7685
7867
|
var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
7686
|
-
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
|
|
7690
|
-
|
|
7691
|
-
|
|
7692
|
-
|
|
7693
|
-
|
|
7694
|
-
|
|
7695
|
-
|
|
7696
|
-
|
|
7697
|
-
|
|
7698
|
-
|
|
7699
|
-
|
|
7700
|
-
|
|
7701
|
-
|
|
7702
|
-
|
|
7703
|
-
|
|
7704
|
-
|
|
7705
|
-
|
|
7706
|
-
|
|
7707
|
-
|
|
7708
|
-
|
|
7709
|
-
|
|
7710
|
-
|
|
7711
|
-
|
|
7712
|
-
|
|
7713
|
-
|
|
7714
|
-
|
|
7715
|
-
|
|
7716
|
-
|
|
7868
|
+
const common = require_common();
|
|
7869
|
+
const YAMLException = require_exception();
|
|
7870
|
+
const DEFAULT_SCHEMA = require_default();
|
|
7871
|
+
const _toString = Object.prototype.toString;
|
|
7872
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
7873
|
+
const CHAR_BOM = 65279;
|
|
7874
|
+
const CHAR_TAB = 9;
|
|
7875
|
+
const CHAR_LINE_FEED = 10;
|
|
7876
|
+
const CHAR_CARRIAGE_RETURN = 13;
|
|
7877
|
+
const CHAR_SPACE = 32;
|
|
7878
|
+
const CHAR_EXCLAMATION = 33;
|
|
7879
|
+
const CHAR_DOUBLE_QUOTE = 34;
|
|
7880
|
+
const CHAR_SHARP = 35;
|
|
7881
|
+
const CHAR_PERCENT = 37;
|
|
7882
|
+
const CHAR_AMPERSAND = 38;
|
|
7883
|
+
const CHAR_SINGLE_QUOTE = 39;
|
|
7884
|
+
const CHAR_ASTERISK = 42;
|
|
7885
|
+
const CHAR_COMMA = 44;
|
|
7886
|
+
const CHAR_MINUS = 45;
|
|
7887
|
+
const CHAR_COLON = 58;
|
|
7888
|
+
const CHAR_EQUALS = 61;
|
|
7889
|
+
const CHAR_GREATER_THAN = 62;
|
|
7890
|
+
const CHAR_QUESTION = 63;
|
|
7891
|
+
const CHAR_COMMERCIAL_AT = 64;
|
|
7892
|
+
const CHAR_LEFT_SQUARE_BRACKET = 91;
|
|
7893
|
+
const CHAR_RIGHT_SQUARE_BRACKET = 93;
|
|
7894
|
+
const CHAR_GRAVE_ACCENT = 96;
|
|
7895
|
+
const CHAR_LEFT_CURLY_BRACKET = 123;
|
|
7896
|
+
const CHAR_VERTICAL_LINE = 124;
|
|
7897
|
+
const CHAR_RIGHT_CURLY_BRACKET = 125;
|
|
7898
|
+
const ESCAPE_SEQUENCES = {};
|
|
7717
7899
|
ESCAPE_SEQUENCES[0] = "\\0";
|
|
7718
7900
|
ESCAPE_SEQUENCES[7] = "\\a";
|
|
7719
7901
|
ESCAPE_SEQUENCES[8] = "\\b";
|
|
@@ -7729,7 +7911,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7729
7911
|
ESCAPE_SEQUENCES[160] = "\\_";
|
|
7730
7912
|
ESCAPE_SEQUENCES[8232] = "\\L";
|
|
7731
7913
|
ESCAPE_SEQUENCES[8233] = "\\P";
|
|
7732
|
-
|
|
7914
|
+
const DEPRECATED_BOOLEANS_SYNTAX = [
|
|
7733
7915
|
"y",
|
|
7734
7916
|
"Y",
|
|
7735
7917
|
"yes",
|
|
@@ -7747,24 +7929,25 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7747
7929
|
"Off",
|
|
7748
7930
|
"OFF"
|
|
7749
7931
|
];
|
|
7750
|
-
|
|
7932
|
+
const DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
7751
7933
|
function compileStyleMap(schema, map) {
|
|
7752
|
-
var result, keys, index, length, tag, style, type;
|
|
7753
7934
|
if (map === null) return {};
|
|
7754
|
-
result = {};
|
|
7755
|
-
keys = Object.keys(map);
|
|
7756
|
-
for (index = 0, length = keys.length; index < length; index += 1) {
|
|
7757
|
-
tag = keys[index];
|
|
7758
|
-
style = String(map[tag]);
|
|
7935
|
+
const result = {};
|
|
7936
|
+
const keys = Object.keys(map);
|
|
7937
|
+
for (let index = 0, length = keys.length; index < length; index += 1) {
|
|
7938
|
+
let tag = keys[index];
|
|
7939
|
+
let style = String(map[tag]);
|
|
7759
7940
|
if (tag.slice(0, 2) === "!!") tag = "tag:yaml.org,2002:" + tag.slice(2);
|
|
7760
|
-
type = schema.compiledTypeMap["fallback"][tag];
|
|
7941
|
+
const type = schema.compiledTypeMap["fallback"][tag];
|
|
7761
7942
|
if (type && _hasOwnProperty.call(type.styleAliases, style)) style = type.styleAliases[style];
|
|
7762
7943
|
result[tag] = style;
|
|
7763
7944
|
}
|
|
7764
7945
|
return result;
|
|
7765
7946
|
}
|
|
7766
7947
|
function encodeHex(character) {
|
|
7767
|
-
|
|
7948
|
+
let handle;
|
|
7949
|
+
let length;
|
|
7950
|
+
const string = character.toString(16).toUpperCase();
|
|
7768
7951
|
if (character <= 255) {
|
|
7769
7952
|
handle = "x";
|
|
7770
7953
|
length = 2;
|
|
@@ -7777,8 +7960,8 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7777
7960
|
} else throw new YAMLException("code point within a string may not be greater than 0xFFFFFFFF");
|
|
7778
7961
|
return "\\" + handle + common.repeat("0", length - string.length) + string;
|
|
7779
7962
|
}
|
|
7780
|
-
|
|
7781
|
-
|
|
7963
|
+
const QUOTING_TYPE_SINGLE = 1;
|
|
7964
|
+
const QUOTING_TYPE_DOUBLE = 2;
|
|
7782
7965
|
function State(options) {
|
|
7783
7966
|
this.schema = options["schema"] || DEFAULT_SCHEMA;
|
|
7784
7967
|
this.indent = Math.max(1, options["indent"] || 2);
|
|
@@ -7802,9 +7985,13 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7802
7985
|
this.usedDuplicates = null;
|
|
7803
7986
|
}
|
|
7804
7987
|
function indentString(string, spaces) {
|
|
7805
|
-
|
|
7988
|
+
const ind = common.repeat(" ", spaces);
|
|
7989
|
+
let position = 0;
|
|
7990
|
+
let result = "";
|
|
7991
|
+
const length = string.length;
|
|
7806
7992
|
while (position < length) {
|
|
7807
|
-
|
|
7993
|
+
let line;
|
|
7994
|
+
const next = string.indexOf("\n", position);
|
|
7808
7995
|
if (next === -1) {
|
|
7809
7996
|
line = string.slice(position);
|
|
7810
7997
|
position = length;
|
|
@@ -7821,25 +8008,21 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7821
8008
|
return "\n" + common.repeat(" ", state.indent * level);
|
|
7822
8009
|
}
|
|
7823
8010
|
function testImplicitResolving(state, str) {
|
|
7824
|
-
|
|
7825
|
-
for (index = 0, length = state.implicitTypes.length; index < length; index += 1) {
|
|
7826
|
-
type = state.implicitTypes[index];
|
|
7827
|
-
if (type.resolve(str)) return true;
|
|
7828
|
-
}
|
|
8011
|
+
for (let index = 0, length = state.implicitTypes.length; index < length; index += 1) if (state.implicitTypes[index].resolve(str)) return true;
|
|
7829
8012
|
return false;
|
|
7830
8013
|
}
|
|
7831
8014
|
function isWhitespace(c) {
|
|
7832
8015
|
return c === CHAR_SPACE || c === CHAR_TAB;
|
|
7833
8016
|
}
|
|
7834
8017
|
function isPrintable(c) {
|
|
7835
|
-
return
|
|
8018
|
+
return c >= 32 && c <= 126 || c >= 161 && c <= 55295 && c !== 8232 && c !== 8233 || c >= 57344 && c <= 65533 && c !== CHAR_BOM || c >= 65536 && c <= 1114111;
|
|
7836
8019
|
}
|
|
7837
8020
|
function isNsCharOrWhitespace(c) {
|
|
7838
8021
|
return isPrintable(c) && c !== CHAR_BOM && c !== CHAR_CARRIAGE_RETURN && c !== CHAR_LINE_FEED;
|
|
7839
8022
|
}
|
|
7840
8023
|
function isPlainSafe(c, prev, inblock) {
|
|
7841
|
-
|
|
7842
|
-
|
|
8024
|
+
const cIsNsCharOrWhitespace = isNsCharOrWhitespace(c);
|
|
8025
|
+
const cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c);
|
|
7843
8026
|
return (inblock ? cIsNsCharOrWhitespace : cIsNsCharOrWhitespace && c !== CHAR_COMMA && c !== CHAR_LEFT_SQUARE_BRACKET && c !== CHAR_RIGHT_SQUARE_BRACKET && c !== CHAR_LEFT_CURLY_BRACKET && c !== CHAR_RIGHT_CURLY_BRACKET) && c !== CHAR_SHARP && !(prev === CHAR_COLON && !cIsNsChar) || isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP || prev === CHAR_COLON && cIsNsChar;
|
|
7844
8027
|
}
|
|
7845
8028
|
function isPlainSafeFirst(c) {
|
|
@@ -7849,7 +8032,8 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7849
8032
|
return !isWhitespace(c) && c !== CHAR_COLON;
|
|
7850
8033
|
}
|
|
7851
8034
|
function codePointAt(string, pos) {
|
|
7852
|
-
|
|
8035
|
+
const first = string.charCodeAt(pos);
|
|
8036
|
+
let second;
|
|
7853
8037
|
if (first >= 55296 && first <= 56319 && pos + 1 < string.length) {
|
|
7854
8038
|
second = string.charCodeAt(pos + 1);
|
|
7855
8039
|
if (second >= 56320 && second <= 57343) return (first - 55296) * 1024 + second - 56320 + 65536;
|
|
@@ -7859,20 +8043,20 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7859
8043
|
function needIndentIndicator(string) {
|
|
7860
8044
|
return /^\n* /.test(string);
|
|
7861
8045
|
}
|
|
7862
|
-
|
|
7863
|
-
|
|
7864
|
-
|
|
7865
|
-
|
|
7866
|
-
|
|
8046
|
+
const STYLE_PLAIN = 1;
|
|
8047
|
+
const STYLE_SINGLE = 2;
|
|
8048
|
+
const STYLE_LITERAL = 3;
|
|
8049
|
+
const STYLE_FOLDED = 4;
|
|
8050
|
+
const STYLE_DOUBLE = 5;
|
|
7867
8051
|
function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
|
|
7868
|
-
|
|
7869
|
-
|
|
7870
|
-
|
|
7871
|
-
|
|
7872
|
-
|
|
7873
|
-
|
|
7874
|
-
|
|
7875
|
-
|
|
8052
|
+
let i;
|
|
8053
|
+
let char = 0;
|
|
8054
|
+
let prevChar = null;
|
|
8055
|
+
let hasLineBreak = false;
|
|
8056
|
+
let hasFoldableLine = false;
|
|
8057
|
+
const shouldTrackWidth = lineWidth !== -1;
|
|
8058
|
+
let previousLineBreak = -1;
|
|
8059
|
+
let plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
|
|
7876
8060
|
if (singleLineOnly || forceQuotes) for (i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
7877
8061
|
char = codePointAt(string, i);
|
|
7878
8062
|
if (!isPrintable(char)) return STYLE_DOUBLE;
|
|
@@ -7908,9 +8092,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7908
8092
|
if (!state.noCompatMode) {
|
|
7909
8093
|
if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) return state.quotingType === QUOTING_TYPE_DOUBLE ? "\"" + string + "\"" : "'" + string + "'";
|
|
7910
8094
|
}
|
|
7911
|
-
|
|
7912
|
-
|
|
7913
|
-
|
|
8095
|
+
const indent = state.indent * Math.max(1, level);
|
|
8096
|
+
const lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
|
|
8097
|
+
const singleLineOnly = iskey || state.flowLevel > -1 && level >= state.flowLevel;
|
|
7914
8098
|
function testAmbiguity(string) {
|
|
7915
8099
|
return testImplicitResolving(state, string);
|
|
7916
8100
|
}
|
|
@@ -7925,26 +8109,27 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7925
8109
|
}();
|
|
7926
8110
|
}
|
|
7927
8111
|
function blockHeader(string, indentPerLevel) {
|
|
7928
|
-
|
|
7929
|
-
|
|
8112
|
+
const indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
|
|
8113
|
+
const clip = string[string.length - 1] === "\n";
|
|
7930
8114
|
return indentIndicator + (clip && (string[string.length - 2] === "\n" || string === "\n") ? "+" : clip ? "" : "-") + "\n";
|
|
7931
8115
|
}
|
|
7932
8116
|
function dropEndingNewline(string) {
|
|
7933
8117
|
return string[string.length - 1] === "\n" ? string.slice(0, -1) : string;
|
|
7934
8118
|
}
|
|
7935
8119
|
function foldString(string, width) {
|
|
7936
|
-
|
|
7937
|
-
|
|
7938
|
-
|
|
8120
|
+
const lineRe = /(\n+)([^\n]*)/g;
|
|
8121
|
+
let result = function() {
|
|
8122
|
+
let nextLF = string.indexOf("\n");
|
|
7939
8123
|
nextLF = nextLF !== -1 ? nextLF : string.length;
|
|
7940
8124
|
lineRe.lastIndex = nextLF;
|
|
7941
8125
|
return foldLine(string.slice(0, nextLF), width);
|
|
7942
8126
|
}();
|
|
7943
|
-
|
|
7944
|
-
|
|
7945
|
-
|
|
8127
|
+
let prevMoreIndented = string[0] === "\n" || string[0] === " ";
|
|
8128
|
+
let moreIndented;
|
|
8129
|
+
let match;
|
|
7946
8130
|
while (match = lineRe.exec(string)) {
|
|
7947
|
-
|
|
8131
|
+
const prefix = match[1];
|
|
8132
|
+
const line = match[2];
|
|
7948
8133
|
moreIndented = line[0] === " ";
|
|
7949
8134
|
result += prefix + (!prevMoreIndented && !moreIndented && line !== "" ? "\n" : "") + foldLine(line, width);
|
|
7950
8135
|
prevMoreIndented = moreIndented;
|
|
@@ -7953,10 +8138,13 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7953
8138
|
}
|
|
7954
8139
|
function foldLine(line, width) {
|
|
7955
8140
|
if (line === "" || line[0] === " ") return line;
|
|
7956
|
-
|
|
7957
|
-
|
|
7958
|
-
|
|
7959
|
-
|
|
8141
|
+
const breakRe = / [^ ]/g;
|
|
8142
|
+
let match;
|
|
8143
|
+
let start = 0;
|
|
8144
|
+
let end;
|
|
8145
|
+
let curr = 0;
|
|
8146
|
+
let next = 0;
|
|
8147
|
+
let result = "";
|
|
7960
8148
|
while (match = breakRe.exec(line)) {
|
|
7961
8149
|
next = match.index;
|
|
7962
8150
|
if (next - start > width) {
|
|
@@ -7972,12 +8160,11 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7972
8160
|
return result.slice(1);
|
|
7973
8161
|
}
|
|
7974
8162
|
function escapeString(string) {
|
|
7975
|
-
|
|
7976
|
-
|
|
7977
|
-
|
|
7978
|
-
for (var i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
8163
|
+
let result = "";
|
|
8164
|
+
let char = 0;
|
|
8165
|
+
for (let i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
7979
8166
|
char = codePointAt(string, i);
|
|
7980
|
-
escapeSeq = ESCAPE_SEQUENCES[char];
|
|
8167
|
+
const escapeSeq = ESCAPE_SEQUENCES[char];
|
|
7981
8168
|
if (!escapeSeq && isPrintable(char)) {
|
|
7982
8169
|
result += string[i];
|
|
7983
8170
|
if (char >= 65536) result += string[i + 1];
|
|
@@ -7986,9 +8173,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7986
8173
|
return result;
|
|
7987
8174
|
}
|
|
7988
8175
|
function writeFlowSequence(state, level, object) {
|
|
7989
|
-
|
|
7990
|
-
|
|
7991
|
-
|
|
8176
|
+
let _result = "";
|
|
8177
|
+
const _tag = state.tag;
|
|
8178
|
+
for (let index = 0, length = object.length; index < length; index += 1) {
|
|
8179
|
+
let value = object[index];
|
|
7992
8180
|
if (state.replacer) value = state.replacer.call(object, String(index), value);
|
|
7993
8181
|
if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) {
|
|
7994
8182
|
if (_result !== "") _result += "," + (!state.condenseFlow ? " " : "");
|
|
@@ -7999,9 +8187,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7999
8187
|
state.dump = "[" + _result + "]";
|
|
8000
8188
|
}
|
|
8001
8189
|
function writeBlockSequence(state, level, object, compact) {
|
|
8002
|
-
|
|
8003
|
-
|
|
8004
|
-
|
|
8190
|
+
let _result = "";
|
|
8191
|
+
const _tag = state.tag;
|
|
8192
|
+
for (let index = 0, length = object.length; index < length; index += 1) {
|
|
8193
|
+
let value = object[index];
|
|
8005
8194
|
if (state.replacer) value = state.replacer.call(object, String(index), value);
|
|
8006
8195
|
if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) {
|
|
8007
8196
|
if (!compact || _result !== "") _result += generateNextLine(state, level);
|
|
@@ -8014,13 +8203,15 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8014
8203
|
state.dump = _result || "[]";
|
|
8015
8204
|
}
|
|
8016
8205
|
function writeFlowMapping(state, level, object) {
|
|
8017
|
-
|
|
8018
|
-
|
|
8019
|
-
|
|
8206
|
+
let _result = "";
|
|
8207
|
+
const _tag = state.tag;
|
|
8208
|
+
const objectKeyList = Object.keys(object);
|
|
8209
|
+
for (let index = 0, length = objectKeyList.length; index < length; index += 1) {
|
|
8210
|
+
let pairBuffer = "";
|
|
8020
8211
|
if (_result !== "") pairBuffer += ", ";
|
|
8021
8212
|
if (state.condenseFlow) pairBuffer += "\"";
|
|
8022
|
-
objectKey = objectKeyList[index];
|
|
8023
|
-
objectValue = object[objectKey];
|
|
8213
|
+
const objectKey = objectKeyList[index];
|
|
8214
|
+
let objectValue = object[objectKey];
|
|
8024
8215
|
if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
8025
8216
|
if (!writeNode(state, level, objectKey, false, false)) continue;
|
|
8026
8217
|
if (state.dump.length > 1024) pairBuffer += "? ";
|
|
@@ -8033,18 +8224,20 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8033
8224
|
state.dump = "{" + _result + "}";
|
|
8034
8225
|
}
|
|
8035
8226
|
function writeBlockMapping(state, level, object, compact) {
|
|
8036
|
-
|
|
8227
|
+
let _result = "";
|
|
8228
|
+
const _tag = state.tag;
|
|
8229
|
+
const objectKeyList = Object.keys(object);
|
|
8037
8230
|
if (state.sortKeys === true) objectKeyList.sort();
|
|
8038
8231
|
else if (typeof state.sortKeys === "function") objectKeyList.sort(state.sortKeys);
|
|
8039
8232
|
else if (state.sortKeys) throw new YAMLException("sortKeys must be a boolean or a function");
|
|
8040
|
-
for (index = 0, length = objectKeyList.length; index < length; index += 1) {
|
|
8041
|
-
pairBuffer = "";
|
|
8233
|
+
for (let index = 0, length = objectKeyList.length; index < length; index += 1) {
|
|
8234
|
+
let pairBuffer = "";
|
|
8042
8235
|
if (!compact || _result !== "") pairBuffer += generateNextLine(state, level);
|
|
8043
|
-
objectKey = objectKeyList[index];
|
|
8044
|
-
objectValue = object[objectKey];
|
|
8236
|
+
const objectKey = objectKeyList[index];
|
|
8237
|
+
let objectValue = object[objectKey];
|
|
8045
8238
|
if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
8046
8239
|
if (!writeNode(state, level + 1, objectKey, true, true, true)) continue;
|
|
8047
|
-
explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
|
|
8240
|
+
const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
|
|
8048
8241
|
if (explicitPair) if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += "?";
|
|
8049
8242
|
else pairBuffer += "? ";
|
|
8050
8243
|
pairBuffer += state.dump;
|
|
@@ -8059,15 +8252,16 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8059
8252
|
state.dump = _result || "{}";
|
|
8060
8253
|
}
|
|
8061
8254
|
function detectType(state, object, explicit) {
|
|
8062
|
-
|
|
8063
|
-
for (index = 0, length = typeList.length; index < length; index += 1) {
|
|
8064
|
-
type = typeList[index];
|
|
8255
|
+
const typeList = explicit ? state.explicitTypes : state.implicitTypes;
|
|
8256
|
+
for (let index = 0, length = typeList.length; index < length; index += 1) {
|
|
8257
|
+
const type = typeList[index];
|
|
8065
8258
|
if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object === "object" && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
|
|
8066
8259
|
if (explicit) if (type.multi && type.representName) state.tag = type.representName(object);
|
|
8067
8260
|
else state.tag = type.tag;
|
|
8068
8261
|
else state.tag = "?";
|
|
8069
8262
|
if (type.represent) {
|
|
8070
|
-
style = state.styleMap[type.tag] || type.defaultStyle;
|
|
8263
|
+
const style = state.styleMap[type.tag] || type.defaultStyle;
|
|
8264
|
+
let _result;
|
|
8071
8265
|
if (_toString.call(type.represent) === "[object Function]") _result = type.represent(object, style);
|
|
8072
8266
|
else if (_hasOwnProperty.call(type.represent, style)) _result = type.represent[style](object, style);
|
|
8073
8267
|
else throw new YAMLException("!<" + type.tag + "> tag resolver accepts not \"" + style + "\" style");
|
|
@@ -8082,11 +8276,12 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8082
8276
|
state.tag = null;
|
|
8083
8277
|
state.dump = object;
|
|
8084
8278
|
if (!detectType(state, object, false)) detectType(state, object, true);
|
|
8085
|
-
|
|
8086
|
-
|
|
8087
|
-
var tagStr;
|
|
8279
|
+
const type = _toString.call(state.dump);
|
|
8280
|
+
const inblock = block;
|
|
8088
8281
|
if (block) block = state.flowLevel < 0 || state.flowLevel > level;
|
|
8089
|
-
|
|
8282
|
+
const objectOrArray = type === "[object Object]" || type === "[object Array]";
|
|
8283
|
+
let duplicateIndex;
|
|
8284
|
+
let duplicate;
|
|
8090
8285
|
if (objectOrArray) {
|
|
8091
8286
|
duplicateIndex = state.duplicates.indexOf(object);
|
|
8092
8287
|
duplicate = duplicateIndex !== -1;
|
|
@@ -8118,7 +8313,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8118
8313
|
throw new YAMLException("unacceptable kind of an object to dump " + type);
|
|
8119
8314
|
}
|
|
8120
8315
|
if (state.tag !== null && state.tag !== "?") {
|
|
8121
|
-
tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
|
|
8316
|
+
let tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
|
|
8122
8317
|
if (state.tag[0] === "!") tagStr = "!" + tagStr;
|
|
8123
8318
|
else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") tagStr = "!!" + tagStr.slice(18);
|
|
8124
8319
|
else tagStr = "!<" + tagStr + ">";
|
|
@@ -8128,32 +8323,33 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8128
8323
|
return true;
|
|
8129
8324
|
}
|
|
8130
8325
|
function getDuplicateReferences(object, state) {
|
|
8131
|
-
|
|
8326
|
+
const objects = [];
|
|
8327
|
+
const duplicatesIndexes = [];
|
|
8132
8328
|
inspectNode(object, objects, duplicatesIndexes);
|
|
8133
|
-
|
|
8329
|
+
const length = duplicatesIndexes.length;
|
|
8330
|
+
for (let index = 0; index < length; index += 1) state.duplicates.push(objects[duplicatesIndexes[index]]);
|
|
8134
8331
|
state.usedDuplicates = new Array(length);
|
|
8135
8332
|
}
|
|
8136
8333
|
function inspectNode(object, objects, duplicatesIndexes) {
|
|
8137
|
-
var objectKeyList, index, length;
|
|
8138
8334
|
if (object !== null && typeof object === "object") {
|
|
8139
|
-
index = objects.indexOf(object);
|
|
8335
|
+
const index = objects.indexOf(object);
|
|
8140
8336
|
if (index !== -1) {
|
|
8141
8337
|
if (duplicatesIndexes.indexOf(index) === -1) duplicatesIndexes.push(index);
|
|
8142
8338
|
} else {
|
|
8143
8339
|
objects.push(object);
|
|
8144
|
-
if (Array.isArray(object)) for (
|
|
8340
|
+
if (Array.isArray(object)) for (let i = 0, length = object.length; i < length; i += 1) inspectNode(object[i], objects, duplicatesIndexes);
|
|
8145
8341
|
else {
|
|
8146
|
-
objectKeyList = Object.keys(object);
|
|
8147
|
-
for (
|
|
8342
|
+
const objectKeyList = Object.keys(object);
|
|
8343
|
+
for (let i = 0, length = objectKeyList.length; i < length; i += 1) inspectNode(object[objectKeyList[i]], objects, duplicatesIndexes);
|
|
8148
8344
|
}
|
|
8149
8345
|
}
|
|
8150
8346
|
}
|
|
8151
8347
|
}
|
|
8152
8348
|
function dump(input, options) {
|
|
8153
8349
|
options = options || {};
|
|
8154
|
-
|
|
8350
|
+
const state = new State(options);
|
|
8155
8351
|
if (!state.noRefs) getDuplicateReferences(input, state);
|
|
8156
|
-
|
|
8352
|
+
let value = input;
|
|
8157
8353
|
if (state.replacer) value = state.replacer.call({ "": value }, "", value);
|
|
8158
8354
|
if (writeNode(state, 0, value, true, true)) return state.dump + "\n";
|
|
8159
8355
|
return "";
|
|
@@ -8161,10 +8357,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8161
8357
|
module.exports.dump = dump;
|
|
8162
8358
|
}));
|
|
8163
8359
|
//#endregion
|
|
8164
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
8360
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/index.js
|
|
8165
8361
|
var require_js_yaml = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8166
|
-
|
|
8167
|
-
|
|
8362
|
+
const loader = require_loader();
|
|
8363
|
+
const dumper = require_dumper();
|
|
8168
8364
|
function renamed(from, to) {
|
|
8169
8365
|
return function() {
|
|
8170
8366
|
throw new Error("Function yaml." + from + " is removed in js-yaml 4. Use yaml." + to + " instead, which is now safe by default.");
|
|
@@ -9440,7 +9636,7 @@ const range = (a, b, str) => {
|
|
|
9440
9636
|
return result;
|
|
9441
9637
|
};
|
|
9442
9638
|
//#endregion
|
|
9443
|
-
//#region ../../node_modules/.pnpm/brace-expansion@5.0.
|
|
9639
|
+
//#region ../../node_modules/.pnpm/brace-expansion@5.0.7/node_modules/brace-expansion/dist/esm/index.js
|
|
9444
9640
|
const escSlash = "\0SLASH" + Math.random() + "\0";
|
|
9445
9641
|
const escOpen = "\0OPEN" + Math.random() + "\0";
|
|
9446
9642
|
const escClose = "\0CLOSE" + Math.random() + "\0";
|
|
@@ -9508,15 +9704,18 @@ function gte(i, y) {
|
|
|
9508
9704
|
function expand_(str, max, isTop) {
|
|
9509
9705
|
/** @type {string[]} */
|
|
9510
9706
|
const expansions = [];
|
|
9511
|
-
|
|
9512
|
-
|
|
9513
|
-
|
|
9514
|
-
|
|
9515
|
-
|
|
9516
|
-
|
|
9517
|
-
|
|
9518
|
-
|
|
9519
|
-
|
|
9707
|
+
for (;;) {
|
|
9708
|
+
const m = balanced("{", "}", str);
|
|
9709
|
+
if (!m) return [str];
|
|
9710
|
+
const pre = m.pre;
|
|
9711
|
+
if (/\$$/.test(m.pre)) {
|
|
9712
|
+
const post = m.post.length ? expand_(m.post, max, false) : [""];
|
|
9713
|
+
for (let k = 0; k < post.length && k < max; k++) {
|
|
9714
|
+
const expansion = pre + "{" + m.body + "}" + post[k];
|
|
9715
|
+
expansions.push(expansion);
|
|
9716
|
+
}
|
|
9717
|
+
return expansions;
|
|
9718
|
+
}
|
|
9520
9719
|
const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
|
9521
9720
|
const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
|
9522
9721
|
const isSequence = isNumericSequence || isAlphaSequence;
|
|
@@ -9524,10 +9723,12 @@ function expand_(str, max, isTop) {
|
|
|
9524
9723
|
if (!isSequence && !isOptions) {
|
|
9525
9724
|
if (m.post.match(/,(?!,).*\}/)) {
|
|
9526
9725
|
str = m.pre + "{" + m.body + escClose + m.post;
|
|
9527
|
-
|
|
9726
|
+
isTop = true;
|
|
9727
|
+
continue;
|
|
9528
9728
|
}
|
|
9529
9729
|
return [str];
|
|
9530
9730
|
}
|
|
9731
|
+
const post = m.post.length ? expand_(m.post, max, false) : [""];
|
|
9531
9732
|
let n;
|
|
9532
9733
|
if (isSequence) n = m.body.split(/\.\./);
|
|
9533
9734
|
else {
|
|
@@ -9577,8 +9778,8 @@ function expand_(str, max, isTop) {
|
|
|
9577
9778
|
const expansion = pre + N[j] + post[k];
|
|
9578
9779
|
if (!isTop || isSequence || expansion) expansions.push(expansion);
|
|
9579
9780
|
}
|
|
9781
|
+
return expansions;
|
|
9580
9782
|
}
|
|
9581
|
-
return expansions;
|
|
9582
9783
|
}
|
|
9583
9784
|
//#endregion
|
|
9584
9785
|
//#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/assert-valid-pattern.js
|