@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.
Files changed (43) hide show
  1. package/dist/actions/analyze.d.ts +28 -1
  2. package/dist/actions/analyze.d.ts.map +1 -1
  3. package/dist/actions/work/github.d.ts +60 -0
  4. package/dist/actions/work/github.d.ts.map +1 -0
  5. package/dist/actions/work/index.d.ts +20 -19
  6. package/dist/actions/work/index.d.ts.map +1 -1
  7. package/dist/actions/work/result.d.ts +12 -0
  8. package/dist/actions/work/result.d.ts.map +1 -0
  9. package/dist/actions/work/schema.d.ts.map +1 -1
  10. package/dist/actions/work/sync.d.ts +34 -0
  11. package/dist/actions/work/sync.d.ts.map +1 -0
  12. package/dist/bin/package/build.mjs +1256 -699
  13. package/dist/bin/package/build.mjs.map +1 -1
  14. package/dist/bin/package/clean.mjs +633 -432
  15. package/dist/bin/package/clean.mjs.map +1 -1
  16. package/dist/bin/package/compile.mjs +632 -431
  17. package/dist/bin/package/compile.mjs.map +1 -1
  18. package/dist/bin/package/copy-assets-cjs.mjs +1 -1
  19. package/dist/bin/package/copy-assets-esm.mjs +1 -1
  20. package/dist/bin/package/fix.mjs +17 -12
  21. package/dist/bin/package/fix.mjs.map +1 -1
  22. package/dist/bin/package/lint-verbose.mjs +17 -12
  23. package/dist/bin/package/lint-verbose.mjs.map +1 -1
  24. package/dist/bin/package/lint.mjs +17 -12
  25. package/dist/bin/package/lint.mjs.map +1 -1
  26. package/dist/bin/package/publint.mjs +1161 -609
  27. package/dist/bin/package/publint.mjs.map +1 -1
  28. package/dist/bin/package/recompile.mjs +632 -431
  29. package/dist/bin/package/recompile.mjs.map +1 -1
  30. package/dist/bin/package/relint.mjs +17 -12
  31. package/dist/bin/package/relint.mjs.map +1 -1
  32. package/dist/bin/package/sync-layout.mjs +615 -419
  33. package/dist/bin/package/sync-layout.mjs.map +1 -1
  34. package/dist/bin/xy.mjs +1960 -722
  35. package/dist/bin/xy.mjs.map +1 -1
  36. package/dist/xy/common/work/index.d.ts.map +1 -1
  37. package/dist/xy/common/work/listCommand.d.ts.map +1 -1
  38. package/dist/xy/common/work/syncCommand.d.ts +3 -0
  39. package/dist/xy/common/work/syncCommand.d.ts.map +1 -0
  40. package/dist/xy/react/analyzeCommand.d.ts.map +1 -1
  41. package/package.json +5 -5
  42. package/dist/bin/source-map-explorer.mjs +0 -27268
  43. package/dist/bin/source-map-explorer.mjs.map +0 -1
@@ -6034,7 +6034,7 @@ var require_parse_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6034
6034
  module.exports = parseJson;
6035
6035
  }));
6036
6036
  //#endregion
6037
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/common.js
6037
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/common.js
6038
6038
  var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6039
6039
  function isNothing(subject) {
6040
6040
  return typeof subject === "undefined" || subject === null;
@@ -6048,19 +6048,18 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6048
6048
  return [sequence];
6049
6049
  }
6050
6050
  function extend(target, source) {
6051
- var index, length, key, sourceKeys;
6052
6051
  if (source) {
6053
- sourceKeys = Object.keys(source);
6054
- for (index = 0, length = sourceKeys.length; index < length; index += 1) {
6055
- key = sourceKeys[index];
6052
+ const sourceKeys = Object.keys(source);
6053
+ for (let index = 0, length = sourceKeys.length; index < length; index += 1) {
6054
+ const key = sourceKeys[index];
6056
6055
  target[key] = source[key];
6057
6056
  }
6058
6057
  }
6059
6058
  return target;
6060
6059
  }
6061
6060
  function repeat(string, count) {
6062
- var result = "", cycle;
6063
- for (cycle = 0; cycle < count; cycle += 1) result += string;
6061
+ let result = "";
6062
+ for (let cycle = 0; cycle < count; cycle += 1) result += string;
6064
6063
  return result;
6065
6064
  }
6066
6065
  function isNegativeZero(number) {
@@ -6074,10 +6073,11 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6074
6073
  module.exports.extend = extend;
6075
6074
  }));
6076
6075
  //#endregion
6077
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/exception.js
6076
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/exception.js
6078
6077
  var require_exception = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6079
6078
  function formatError(exception, compact) {
6080
- var where = "", message = exception.reason || "(unknown reason)";
6079
+ let where = "";
6080
+ const message = exception.reason || "(unknown reason)";
6081
6081
  if (!exception.mark) return message;
6082
6082
  if (exception.mark.name) where += "in \"" + exception.mark.name + "\" ";
6083
6083
  where += "(" + (exception.mark.line + 1) + ":" + (exception.mark.column + 1) + ")";
@@ -6101,13 +6101,13 @@ var require_exception = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6101
6101
  module.exports = YAMLException;
6102
6102
  }));
6103
6103
  //#endregion
6104
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/snippet.js
6104
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/snippet.js
6105
6105
  var require_snippet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6106
- var common = require_common();
6106
+ const common = require_common();
6107
6107
  function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
6108
- var head = "";
6109
- var tail = "";
6110
- var maxHalfLength = Math.floor(maxLineLength / 2) - 1;
6108
+ let head = "";
6109
+ let tail = "";
6110
+ const maxHalfLength = Math.floor(maxLineLength / 2) - 1;
6111
6111
  if (position - lineStart > maxHalfLength) {
6112
6112
  head = " ... ";
6113
6113
  lineStart = position - maxHalfLength + head.length;
@@ -6131,31 +6131,31 @@ var require_snippet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6131
6131
  if (typeof options.indent !== "number") options.indent = 1;
6132
6132
  if (typeof options.linesBefore !== "number") options.linesBefore = 3;
6133
6133
  if (typeof options.linesAfter !== "number") options.linesAfter = 2;
6134
- var re = /\r?\n|\r|\0/g;
6135
- var lineStarts = [0];
6136
- var lineEnds = [];
6137
- var match;
6138
- var foundLineNo = -1;
6134
+ const re = /\r?\n|\r|\0/g;
6135
+ const lineStarts = [0];
6136
+ const lineEnds = [];
6137
+ let match;
6138
+ let foundLineNo = -1;
6139
6139
  while (match = re.exec(mark.buffer)) {
6140
6140
  lineEnds.push(match.index);
6141
6141
  lineStarts.push(match.index + match[0].length);
6142
6142
  if (mark.position <= match.index && foundLineNo < 0) foundLineNo = lineStarts.length - 2;
6143
6143
  }
6144
6144
  if (foundLineNo < 0) foundLineNo = lineStarts.length - 1;
6145
- var result = "", i, line;
6146
- var lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length;
6147
- var maxLineLength = options.maxLength - (options.indent + lineNoLength + 3);
6148
- for (i = 1; i <= options.linesBefore; i++) {
6145
+ let result = "";
6146
+ const lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length;
6147
+ const maxLineLength = options.maxLength - (options.indent + lineNoLength + 3);
6148
+ for (let i = 1; i <= options.linesBefore; i++) {
6149
6149
  if (foundLineNo - i < 0) break;
6150
- line = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength);
6150
+ const line = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength);
6151
6151
  result = common.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line.str + "\n" + result;
6152
6152
  }
6153
- line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
6153
+ const line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
6154
6154
  result += common.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + "\n";
6155
6155
  result += common.repeat("-", options.indent + lineNoLength + 3 + line.pos) + "^\n";
6156
- for (i = 1; i <= options.linesAfter; i++) {
6156
+ for (let i = 1; i <= options.linesAfter; i++) {
6157
6157
  if (foundLineNo + i >= lineEnds.length) break;
6158
- line = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength);
6158
+ const line = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength);
6159
6159
  result += common.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line.str + "\n";
6160
6160
  }
6161
6161
  return result.replace(/\n$/, "");
@@ -6163,10 +6163,10 @@ var require_snippet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6163
6163
  module.exports = makeSnippet;
6164
6164
  }));
6165
6165
  //#endregion
6166
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/type.js
6166
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type.js
6167
6167
  var require_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6168
- var YAMLException = require_exception();
6169
- var TYPE_CONSTRUCTOR_OPTIONS = [
6168
+ const YAMLException = require_exception();
6169
+ const TYPE_CONSTRUCTOR_OPTIONS = [
6170
6170
  "kind",
6171
6171
  "multi",
6172
6172
  "resolve",
@@ -6178,13 +6178,13 @@ var require_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6178
6178
  "defaultStyle",
6179
6179
  "styleAliases"
6180
6180
  ];
6181
- var YAML_NODE_KINDS = [
6181
+ const YAML_NODE_KINDS = [
6182
6182
  "scalar",
6183
6183
  "sequence",
6184
6184
  "mapping"
6185
6185
  ];
6186
6186
  function compileStyleAliases(map) {
6187
- var result = {};
6187
+ const result = {};
6188
6188
  if (map !== null) Object.keys(map).forEach(function(style) {
6189
6189
  map[style].forEach(function(alias) {
6190
6190
  result[String(alias)] = style;
@@ -6218,14 +6218,14 @@ var require_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6218
6218
  module.exports = Type;
6219
6219
  }));
6220
6220
  //#endregion
6221
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/schema.js
6221
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/schema.js
6222
6222
  var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6223
- var YAMLException = require_exception();
6224
- var Type = require_type();
6223
+ const YAMLException = require_exception();
6224
+ const Type = require_type();
6225
6225
  function compileList(schema, name) {
6226
- var result = [];
6226
+ const result = [];
6227
6227
  schema[name].forEach(function(currentType) {
6228
- var newIndex = result.length;
6228
+ let newIndex = result.length;
6229
6229
  result.forEach(function(previousType, previousIndex) {
6230
6230
  if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) newIndex = previousIndex;
6231
6231
  });
@@ -6234,7 +6234,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6234
6234
  return result;
6235
6235
  }
6236
6236
  function compileMap() {
6237
- var result = {
6237
+ const result = {
6238
6238
  scalar: {},
6239
6239
  sequence: {},
6240
6240
  mapping: {},
@@ -6245,22 +6245,22 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6245
6245
  mapping: [],
6246
6246
  fallback: []
6247
6247
  }
6248
- }, index, length;
6248
+ };
6249
6249
  function collectType(type) {
6250
6250
  if (type.multi) {
6251
6251
  result.multi[type.kind].push(type);
6252
6252
  result.multi["fallback"].push(type);
6253
6253
  } else result[type.kind][type.tag] = result["fallback"][type.tag] = type;
6254
6254
  }
6255
- for (index = 0, length = arguments.length; index < length; index += 1) arguments[index].forEach(collectType);
6255
+ for (let index = 0, length = arguments.length; index < length; index += 1) arguments[index].forEach(collectType);
6256
6256
  return result;
6257
6257
  }
6258
6258
  function Schema(definition) {
6259
6259
  return this.extend(definition);
6260
6260
  }
6261
6261
  Schema.prototype.extend = function extend(definition) {
6262
- var implicit = [];
6263
- var explicit = [];
6262
+ let implicit = [];
6263
+ let explicit = [];
6264
6264
  if (definition instanceof Type) explicit.push(definition);
6265
6265
  else if (Array.isArray(definition)) explicit = explicit.concat(definition);
6266
6266
  else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
@@ -6275,7 +6275,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6275
6275
  explicit.forEach(function(type) {
6276
6276
  if (!(type instanceof Type)) throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
6277
6277
  });
6278
- var result = Object.create(Schema.prototype);
6278
+ const result = Object.create(Schema.prototype);
6279
6279
  result.implicit = (this.implicit || []).concat(implicit);
6280
6280
  result.explicit = (this.explicit || []).concat(explicit);
6281
6281
  result.compiledImplicit = compileList(result, "implicit");
@@ -6286,7 +6286,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6286
6286
  module.exports = Schema;
6287
6287
  }));
6288
6288
  //#endregion
6289
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/type/str.js
6289
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/str.js
6290
6290
  var require_str = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6291
6291
  module.exports = new (require_type())("tag:yaml.org,2002:str", {
6292
6292
  kind: "scalar",
@@ -6296,7 +6296,7 @@ var require_str = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6296
6296
  });
6297
6297
  }));
6298
6298
  //#endregion
6299
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/type/seq.js
6299
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/seq.js
6300
6300
  var require_seq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6301
6301
  module.exports = new (require_type())("tag:yaml.org,2002:seq", {
6302
6302
  kind: "sequence",
@@ -6306,7 +6306,7 @@ var require_seq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6306
6306
  });
6307
6307
  }));
6308
6308
  //#endregion
6309
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/type/map.js
6309
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/map.js
6310
6310
  var require_map = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6311
6311
  module.exports = new (require_type())("tag:yaml.org,2002:map", {
6312
6312
  kind: "mapping",
@@ -6316,7 +6316,7 @@ var require_map = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6316
6316
  });
6317
6317
  }));
6318
6318
  //#endregion
6319
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/schema/failsafe.js
6319
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/schema/failsafe.js
6320
6320
  var require_failsafe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6321
6321
  module.exports = new (require_schema())({ explicit: [
6322
6322
  require_str(),
@@ -6325,12 +6325,12 @@ var require_failsafe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6325
6325
  ] });
6326
6326
  }));
6327
6327
  //#endregion
6328
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/type/null.js
6328
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/null.js
6329
6329
  var require_null = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6330
- var Type = require_type();
6330
+ const Type = require_type();
6331
6331
  function resolveYamlNull(data) {
6332
6332
  if (data === null) return true;
6333
- var max = data.length;
6333
+ const max = data.length;
6334
6334
  return max === 1 && data === "~" || max === 4 && (data === "null" || data === "Null" || data === "NULL");
6335
6335
  }
6336
6336
  function constructYamlNull() {
@@ -6365,12 +6365,12 @@ var require_null = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6365
6365
  });
6366
6366
  }));
6367
6367
  //#endregion
6368
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/type/bool.js
6368
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/bool.js
6369
6369
  var require_bool = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6370
- var Type = require_type();
6370
+ const Type = require_type();
6371
6371
  function resolveYamlBoolean(data) {
6372
6372
  if (data === null) return false;
6373
- var max = data.length;
6373
+ const max = data.length;
6374
6374
  return max === 4 && (data === "true" || data === "True" || data === "TRUE") || max === 5 && (data === "false" || data === "False" || data === "FALSE");
6375
6375
  }
6376
6376
  function constructYamlBoolean(data) {
@@ -6399,24 +6399,26 @@ var require_bool = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6399
6399
  });
6400
6400
  }));
6401
6401
  //#endregion
6402
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/type/int.js
6402
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/int.js
6403
6403
  var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6404
- var common = require_common();
6405
- var Type = require_type();
6404
+ const common = require_common();
6405
+ const Type = require_type();
6406
6406
  function isHexCode(c) {
6407
- return 48 <= c && c <= 57 || 65 <= c && c <= 70 || 97 <= c && c <= 102;
6407
+ return c >= 48 && c <= 57 || c >= 65 && c <= 70 || c >= 97 && c <= 102;
6408
6408
  }
6409
6409
  function isOctCode(c) {
6410
- return 48 <= c && c <= 55;
6410
+ return c >= 48 && c <= 55;
6411
6411
  }
6412
6412
  function isDecCode(c) {
6413
- return 48 <= c && c <= 57;
6413
+ return c >= 48 && c <= 57;
6414
6414
  }
6415
6415
  function resolveYamlInteger(data) {
6416
6416
  if (data === null) return false;
6417
- var max = data.length, index = 0, hasDigits = false, ch;
6417
+ const max = data.length;
6418
+ let index = 0;
6419
+ let hasDigits = false;
6418
6420
  if (!max) return false;
6419
- ch = data[index];
6421
+ let ch = data[index];
6420
6422
  if (ch === "-" || ch === "+") ch = data[++index];
6421
6423
  if (ch === "0") {
6422
6424
  if (index + 1 === max) return true;
@@ -6425,47 +6427,39 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6425
6427
  index++;
6426
6428
  for (; index < max; index++) {
6427
6429
  ch = data[index];
6428
- if (ch === "_") continue;
6429
6430
  if (ch !== "0" && ch !== "1") return false;
6430
6431
  hasDigits = true;
6431
6432
  }
6432
- return hasDigits && ch !== "_";
6433
+ return hasDigits && isFinite(parseYamlInteger(data));
6433
6434
  }
6434
6435
  if (ch === "x") {
6435
6436
  index++;
6436
6437
  for (; index < max; index++) {
6437
- ch = data[index];
6438
- if (ch === "_") continue;
6439
6438
  if (!isHexCode(data.charCodeAt(index))) return false;
6440
6439
  hasDigits = true;
6441
6440
  }
6442
- return hasDigits && ch !== "_";
6441
+ return hasDigits && isFinite(parseYamlInteger(data));
6443
6442
  }
6444
6443
  if (ch === "o") {
6445
6444
  index++;
6446
6445
  for (; index < max; index++) {
6447
- ch = data[index];
6448
- if (ch === "_") continue;
6449
6446
  if (!isOctCode(data.charCodeAt(index))) return false;
6450
6447
  hasDigits = true;
6451
6448
  }
6452
- return hasDigits && ch !== "_";
6449
+ return hasDigits && isFinite(parseYamlInteger(data));
6453
6450
  }
6454
6451
  }
6455
- if (ch === "_") return false;
6456
6452
  for (; index < max; index++) {
6457
- ch = data[index];
6458
- if (ch === "_") continue;
6459
6453
  if (!isDecCode(data.charCodeAt(index))) return false;
6460
6454
  hasDigits = true;
6461
6455
  }
6462
- if (!hasDigits || ch === "_") return false;
6463
- return true;
6456
+ if (!hasDigits) return false;
6457
+ return isFinite(parseYamlInteger(data));
6464
6458
  }
6465
- function constructYamlInteger(data) {
6466
- var value = data, sign = 1, ch;
6467
- if (value.indexOf("_") !== -1) value = value.replace(/_/g, "");
6468
- ch = value[0];
6459
+ function parseYamlInteger(data) {
6460
+ let value = data;
6461
+ let sign = 1;
6462
+ let ch = value[0];
6469
6463
  if (ch === "-" || ch === "+") {
6470
6464
  if (ch === "-") sign = -1;
6471
6465
  value = value.slice(1);
@@ -6479,6 +6473,9 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6479
6473
  }
6480
6474
  return sign * parseInt(value, 10);
6481
6475
  }
6476
+ function constructYamlInteger(data) {
6477
+ return parseYamlInteger(data);
6478
+ }
6482
6479
  function isInteger(object) {
6483
6480
  return Object.prototype.toString.call(object) === "[object Number]" && object % 1 === 0 && !common.isNegativeZero(object);
6484
6481
  }
@@ -6511,26 +6508,28 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6511
6508
  });
6512
6509
  }));
6513
6510
  //#endregion
6514
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/type/float.js
6511
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/float.js
6515
6512
  var require_float = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6516
- var common = require_common();
6517
- var Type = require_type();
6518
- var YAML_FLOAT_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
6513
+ const common = require_common();
6514
+ const Type = require_type();
6515
+ 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))$");
6516
+ const YAML_FLOAT_SPECIAL_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
6519
6517
  function resolveYamlFloat(data) {
6520
6518
  if (data === null) return false;
6521
- if (!YAML_FLOAT_PATTERN.test(data) || data[data.length - 1] === "_") return false;
6522
- return true;
6519
+ if (!YAML_FLOAT_PATTERN.test(data)) return false;
6520
+ if (isFinite(parseFloat(data, 10))) return true;
6521
+ return YAML_FLOAT_SPECIAL_PATTERN.test(data);
6523
6522
  }
6524
6523
  function constructYamlFloat(data) {
6525
- var value = data.replace(/_/g, "").toLowerCase(), sign = value[0] === "-" ? -1 : 1;
6524
+ let value = data.toLowerCase();
6525
+ const sign = value[0] === "-" ? -1 : 1;
6526
6526
  if ("+-".indexOf(value[0]) >= 0) value = value.slice(1);
6527
6527
  if (value === ".inf") return sign === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
6528
6528
  else if (value === ".nan") return NaN;
6529
6529
  return sign * parseFloat(value, 10);
6530
6530
  }
6531
- var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
6531
+ const SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
6532
6532
  function representYamlFloat(object, style) {
6533
- var res;
6534
6533
  if (isNaN(object)) switch (style) {
6535
6534
  case "lowercase": return ".nan";
6536
6535
  case "uppercase": return ".NAN";
@@ -6547,7 +6546,7 @@ var require_float = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6547
6546
  case "camelcase": return "-.Inf";
6548
6547
  }
6549
6548
  else if (common.isNegativeZero(object)) return "-0.0";
6550
- res = object.toString(10);
6549
+ const res = object.toString(10);
6551
6550
  return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
6552
6551
  }
6553
6552
  function isFloat(object) {
@@ -6563,7 +6562,7 @@ var require_float = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6563
6562
  });
6564
6563
  }));
6565
6564
  //#endregion
6566
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/schema/json.js
6565
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/schema/json.js
6567
6566
  var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6568
6567
  module.exports = require_failsafe().extend({ implicit: [
6569
6568
  require_null(),
@@ -6573,16 +6572,16 @@ var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6573
6572
  ] });
6574
6573
  }));
6575
6574
  //#endregion
6576
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/schema/core.js
6575
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/schema/core.js
6577
6576
  var require_core = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6578
6577
  module.exports = require_json();
6579
6578
  }));
6580
6579
  //#endregion
6581
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/type/timestamp.js
6580
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/timestamp.js
6582
6581
  var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6583
- var Type = require_type();
6584
- var YAML_DATE_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
6585
- var 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]))?))?$");
6582
+ const Type = require_type();
6583
+ const YAML_DATE_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
6584
+ 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]))?))?$");
6586
6585
  function resolveYamlTimestamp(data) {
6587
6586
  if (data === null) return false;
6588
6587
  if (YAML_DATE_REGEXP.exec(data) !== null) return true;
@@ -6590,29 +6589,30 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6590
6589
  return false;
6591
6590
  }
6592
6591
  function constructYamlTimestamp(data) {
6593
- var match, year, month, day, hour, minute, second, fraction = 0, delta = null, tz_hour, tz_minute, date;
6594
- match = YAML_DATE_REGEXP.exec(data);
6592
+ let fraction = 0;
6593
+ let delta = null;
6594
+ let match = YAML_DATE_REGEXP.exec(data);
6595
6595
  if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data);
6596
6596
  if (match === null) throw new Error("Date resolve error");
6597
- year = +match[1];
6598
- month = +match[2] - 1;
6599
- day = +match[3];
6597
+ const year = +match[1];
6598
+ const month = +match[2] - 1;
6599
+ const day = +match[3];
6600
6600
  if (!match[4]) return new Date(Date.UTC(year, month, day));
6601
- hour = +match[4];
6602
- minute = +match[5];
6603
- second = +match[6];
6601
+ const hour = +match[4];
6602
+ const minute = +match[5];
6603
+ const second = +match[6];
6604
6604
  if (match[7]) {
6605
6605
  fraction = match[7].slice(0, 3);
6606
6606
  while (fraction.length < 3) fraction += "0";
6607
6607
  fraction = +fraction;
6608
6608
  }
6609
6609
  if (match[9]) {
6610
- tz_hour = +match[10];
6611
- tz_minute = +(match[11] || 0);
6612
- delta = (tz_hour * 60 + tz_minute) * 6e4;
6610
+ const tzHour = +match[10];
6611
+ const tzMinute = +(match[11] || 0);
6612
+ delta = (tzHour * 60 + tzMinute) * 6e4;
6613
6613
  if (match[9] === "-") delta = -delta;
6614
6614
  }
6615
- date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
6615
+ const date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
6616
6616
  if (delta) date.setTime(date.getTime() - delta);
6617
6617
  return date;
6618
6618
  }
@@ -6628,9 +6628,9 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6628
6628
  });
6629
6629
  }));
6630
6630
  //#endregion
6631
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/type/merge.js
6631
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/merge.js
6632
6632
  var require_merge$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6633
- var Type = require_type();
6633
+ const Type = require_type();
6634
6634
  function resolveYamlMerge(data) {
6635
6635
  return data === "<<" || data === null;
6636
6636
  }
@@ -6640,15 +6640,17 @@ var require_merge$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6640
6640
  });
6641
6641
  }));
6642
6642
  //#endregion
6643
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/type/binary.js
6643
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/binary.js
6644
6644
  var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6645
- var Type = require_type();
6646
- var BASE64_MAP = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
6645
+ const Type = require_type();
6646
+ const BASE64_MAP = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
6647
6647
  function resolveYamlBinary(data) {
6648
6648
  if (data === null) return false;
6649
- var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP;
6650
- for (idx = 0; idx < max; idx++) {
6651
- code = map.indexOf(data.charAt(idx));
6649
+ let bitlen = 0;
6650
+ const max = data.length;
6651
+ const map = BASE64_MAP;
6652
+ for (let idx = 0; idx < max; idx++) {
6653
+ const code = map.indexOf(data.charAt(idx));
6652
6654
  if (code > 64) continue;
6653
6655
  if (code < 0) return false;
6654
6656
  bitlen += 6;
@@ -6656,8 +6658,12 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6656
6658
  return bitlen % 8 === 0;
6657
6659
  }
6658
6660
  function constructYamlBinary(data) {
6659
- var idx, tailbits, input = data.replace(/[\r\n=]/g, ""), max = input.length, map = BASE64_MAP, bits = 0, result = [];
6660
- for (idx = 0; idx < max; idx++) {
6661
+ const input = data.replace(/[\r\n=]/g, "");
6662
+ const max = input.length;
6663
+ const map = BASE64_MAP;
6664
+ let bits = 0;
6665
+ const result = [];
6666
+ for (let idx = 0; idx < max; idx++) {
6661
6667
  if (idx % 4 === 0 && idx) {
6662
6668
  result.push(bits >> 16 & 255);
6663
6669
  result.push(bits >> 8 & 255);
@@ -6665,7 +6671,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6665
6671
  }
6666
6672
  bits = bits << 6 | map.indexOf(input.charAt(idx));
6667
6673
  }
6668
- tailbits = max % 4 * 6;
6674
+ const tailbits = max % 4 * 6;
6669
6675
  if (tailbits === 0) {
6670
6676
  result.push(bits >> 16 & 255);
6671
6677
  result.push(bits >> 8 & 255);
@@ -6677,8 +6683,11 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6677
6683
  return new Uint8Array(result);
6678
6684
  }
6679
6685
  function representYamlBinary(object) {
6680
- var result = "", bits = 0, idx, tail, max = object.length, map = BASE64_MAP;
6681
- for (idx = 0; idx < max; idx++) {
6686
+ let result = "";
6687
+ let bits = 0;
6688
+ const max = object.length;
6689
+ const map = BASE64_MAP;
6690
+ for (let idx = 0; idx < max; idx++) {
6682
6691
  if (idx % 3 === 0 && idx) {
6683
6692
  result += map[bits >> 18 & 63];
6684
6693
  result += map[bits >> 12 & 63];
@@ -6687,7 +6696,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6687
6696
  }
6688
6697
  bits = (bits << 8) + object[idx];
6689
6698
  }
6690
- tail = max % 3;
6699
+ const tail = max % 3;
6691
6700
  if (tail === 0) {
6692
6701
  result += map[bits >> 18 & 63];
6693
6702
  result += map[bits >> 12 & 63];
@@ -6718,18 +6727,20 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6718
6727
  });
6719
6728
  }));
6720
6729
  //#endregion
6721
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/type/omap.js
6730
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/omap.js
6722
6731
  var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6723
- var Type = require_type();
6724
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
6725
- var _toString = Object.prototype.toString;
6732
+ const Type = require_type();
6733
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
6734
+ const _toString = Object.prototype.toString;
6726
6735
  function resolveYamlOmap(data) {
6727
6736
  if (data === null) return true;
6728
- var objectKeys = [], index, length, pair, pairKey, pairHasKey, object = data;
6729
- for (index = 0, length = object.length; index < length; index += 1) {
6730
- pair = object[index];
6731
- pairHasKey = false;
6737
+ const objectKeys = [];
6738
+ const object = data;
6739
+ for (let index = 0, length = object.length; index < length; index += 1) {
6740
+ const pair = object[index];
6741
+ let pairHasKey = false;
6732
6742
  if (_toString.call(pair) !== "[object Object]") return false;
6743
+ let pairKey;
6733
6744
  for (pairKey in pair) if (_hasOwnProperty.call(pair, pairKey)) if (!pairHasKey) pairHasKey = true;
6734
6745
  else return false;
6735
6746
  if (!pairHasKey) return false;
@@ -6748,18 +6759,18 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6748
6759
  });
6749
6760
  }));
6750
6761
  //#endregion
6751
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/type/pairs.js
6762
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/pairs.js
6752
6763
  var require_pairs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6753
- var Type = require_type();
6754
- var _toString = Object.prototype.toString;
6764
+ const Type = require_type();
6765
+ const _toString = Object.prototype.toString;
6755
6766
  function resolveYamlPairs(data) {
6756
6767
  if (data === null) return true;
6757
- var index, length, pair, keys, result, object = data;
6758
- result = new Array(object.length);
6759
- for (index = 0, length = object.length; index < length; index += 1) {
6760
- pair = object[index];
6768
+ const object = data;
6769
+ const result = new Array(object.length);
6770
+ for (let index = 0, length = object.length; index < length; index += 1) {
6771
+ const pair = object[index];
6761
6772
  if (_toString.call(pair) !== "[object Object]") return false;
6762
- keys = Object.keys(pair);
6773
+ const keys = Object.keys(pair);
6763
6774
  if (keys.length !== 1) return false;
6764
6775
  result[index] = [keys[0], pair[keys[0]]];
6765
6776
  }
@@ -6767,11 +6778,11 @@ var require_pairs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6767
6778
  }
6768
6779
  function constructYamlPairs(data) {
6769
6780
  if (data === null) return [];
6770
- var index, length, pair, keys, result, object = data;
6771
- result = new Array(object.length);
6772
- for (index = 0, length = object.length; index < length; index += 1) {
6773
- pair = object[index];
6774
- keys = Object.keys(pair);
6781
+ const object = data;
6782
+ const result = new Array(object.length);
6783
+ for (let index = 0, length = object.length; index < length; index += 1) {
6784
+ const pair = object[index];
6785
+ const keys = Object.keys(pair);
6775
6786
  result[index] = [keys[0], pair[keys[0]]];
6776
6787
  }
6777
6788
  return result;
@@ -6783,14 +6794,14 @@ var require_pairs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6783
6794
  });
6784
6795
  }));
6785
6796
  //#endregion
6786
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/type/set.js
6797
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/set.js
6787
6798
  var require_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6788
- var Type = require_type();
6789
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
6799
+ const Type = require_type();
6800
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
6790
6801
  function resolveYamlSet(data) {
6791
6802
  if (data === null) return true;
6792
- var key, object = data;
6793
- for (key in object) if (_hasOwnProperty.call(object, key)) {
6803
+ const object = data;
6804
+ for (const key in object) if (_hasOwnProperty.call(object, key)) {
6794
6805
  if (object[key] !== null) return false;
6795
6806
  }
6796
6807
  return true;
@@ -6805,7 +6816,7 @@ var require_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6805
6816
  });
6806
6817
  }));
6807
6818
  //#endregion
6808
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/schema/default.js
6819
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/schema/default.js
6809
6820
  var require_default = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6810
6821
  module.exports = require_core().extend({
6811
6822
  implicit: [require_timestamp(), require_merge$1()],
@@ -6818,45 +6829,44 @@ var require_default = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6818
6829
  });
6819
6830
  }));
6820
6831
  //#endregion
6821
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/loader.js
6832
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/loader.js
6822
6833
  var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6823
- var common = require_common();
6824
- var YAMLException = require_exception();
6825
- var makeSnippet = require_snippet();
6826
- var DEFAULT_SCHEMA = require_default();
6827
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
6828
- var CONTEXT_FLOW_IN = 1;
6829
- var CONTEXT_FLOW_OUT = 2;
6830
- var CONTEXT_BLOCK_IN = 3;
6831
- var CONTEXT_BLOCK_OUT = 4;
6832
- var CHOMPING_CLIP = 1;
6833
- var CHOMPING_STRIP = 2;
6834
- var CHOMPING_KEEP = 3;
6835
- var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
6836
- var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
6837
- var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/;
6838
- var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i;
6839
- var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
6834
+ const common = require_common();
6835
+ const YAMLException = require_exception();
6836
+ const makeSnippet = require_snippet();
6837
+ const DEFAULT_SCHEMA = require_default();
6838
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
6839
+ const CONTEXT_FLOW_IN = 1;
6840
+ const CONTEXT_FLOW_OUT = 2;
6841
+ const CONTEXT_BLOCK_IN = 3;
6842
+ const CONTEXT_BLOCK_OUT = 4;
6843
+ const CHOMPING_CLIP = 1;
6844
+ const CHOMPING_STRIP = 2;
6845
+ const CHOMPING_KEEP = 3;
6846
+ const PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
6847
+ const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
6848
+ const PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
6849
+ const PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
6850
+ const PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
6840
6851
  function _class(obj) {
6841
6852
  return Object.prototype.toString.call(obj);
6842
6853
  }
6843
- function is_EOL(c) {
6854
+ function isEol(c) {
6844
6855
  return c === 10 || c === 13;
6845
6856
  }
6846
- function is_WHITE_SPACE(c) {
6857
+ function isWhiteSpace(c) {
6847
6858
  return c === 9 || c === 32;
6848
6859
  }
6849
- function is_WS_OR_EOL(c) {
6860
+ function isWsOrEol(c) {
6850
6861
  return c === 9 || c === 32 || c === 10 || c === 13;
6851
6862
  }
6852
- function is_FLOW_INDICATOR(c) {
6863
+ function isFlowIndicator(c) {
6853
6864
  return c === 44 || c === 91 || c === 93 || c === 123 || c === 125;
6854
6865
  }
6855
6866
  function fromHexCode(c) {
6856
- var lc;
6857
- if (48 <= c && c <= 57) return c - 48;
6858
- lc = c | 32;
6859
- if (97 <= lc && lc <= 102) return lc - 97 + 10;
6867
+ if (c >= 48 && c <= 57) return c - 48;
6868
+ const lc = c | 32;
6869
+ if (lc >= 97 && lc <= 102) return lc - 97 + 10;
6860
6870
  return -1;
6861
6871
  }
6862
6872
  function escapedHexLen(c) {
@@ -6866,11 +6876,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6866
6876
  return 0;
6867
6877
  }
6868
6878
  function fromDecimalCode(c) {
6869
- if (48 <= c && c <= 57) return c - 48;
6879
+ if (c >= 48 && c <= 57) return c - 48;
6870
6880
  return -1;
6871
6881
  }
6872
6882
  function simpleEscapeSequence(c) {
6873
- return c === 48 ? "\0" : c === 97 ? "\x07" : c === 98 ? "\b" : c === 116 ? " " : c === 9 ? " " : c === 110 ? "\n" : c === 118 ? "\v" : c === 102 ? "\f" : c === 114 ? "\r" : c === 101 ? "\x1B" : c === 32 ? " " : c === 34 ? "\"" : c === 47 ? "/" : c === 92 ? "\\" : c === 78 ? "…" : c === 95 ? "\xA0" : c === 76 ? "\u2028" : c === 80 ? "\u2029" : "";
6883
+ switch (c) {
6884
+ case 48: return "\0";
6885
+ case 97: return "\x07";
6886
+ case 98: return "\b";
6887
+ case 116: return " ";
6888
+ case 9: return " ";
6889
+ case 110: return "\n";
6890
+ case 118: return "\v";
6891
+ case 102: return "\f";
6892
+ case 114: return "\r";
6893
+ case 101: return "\x1B";
6894
+ case 32: return " ";
6895
+ case 34: return "\"";
6896
+ case 47: return "/";
6897
+ case 92: return "\\";
6898
+ case 78: return "…";
6899
+ case 95: return "\xA0";
6900
+ case 76: return "\u2028";
6901
+ case 80: return "\u2029";
6902
+ default: return "";
6903
+ }
6874
6904
  }
6875
6905
  function charFromCodepoint(c) {
6876
6906
  if (c <= 65535) return String.fromCharCode(c);
@@ -6885,9 +6915,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6885
6915
  });
6886
6916
  else object[key] = value;
6887
6917
  }
6888
- var simpleEscapeCheck = new Array(256);
6889
- var simpleEscapeMap = new Array(256);
6890
- for (var i = 0; i < 256; i++) {
6918
+ const simpleEscapeCheck = new Array(256);
6919
+ const simpleEscapeMap = new Array(256);
6920
+ for (let i = 0; i < 256; i++) {
6891
6921
  simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
6892
6922
  simpleEscapeMap[i] = simpleEscapeSequence(i);
6893
6923
  }
@@ -6899,6 +6929,8 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6899
6929
  this.legacy = options["legacy"] || false;
6900
6930
  this.json = options["json"] || false;
6901
6931
  this.listener = options["listener"] || null;
6932
+ this.maxDepth = typeof options["maxDepth"] === "number" ? options["maxDepth"] : 100;
6933
+ this.maxTotalMergeKeys = typeof options["maxTotalMergeKeys"] === "number" ? options["maxTotalMergeKeys"] : 1e4;
6902
6934
  this.implicitTypes = this.schema.compiledImplicit;
6903
6935
  this.typeMap = this.schema.compiledTypeMap;
6904
6936
  this.length = input.length;
@@ -6906,11 +6938,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6906
6938
  this.line = 0;
6907
6939
  this.lineStart = 0;
6908
6940
  this.lineIndent = 0;
6941
+ this.depth = 0;
6942
+ this.totalMergeKeys = 0;
6909
6943
  this.firstTabInLine = -1;
6910
6944
  this.documents = [];
6945
+ this.anchorMapTransactions = [];
6911
6946
  }
6912
6947
  function generateError(state, message) {
6913
- var mark = {
6948
+ const mark = {
6914
6949
  name: state.filename,
6915
6950
  buffer: state.input.slice(0, -1),
6916
6951
  position: state.position,
@@ -6926,24 +6961,81 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6926
6961
  function throwWarning(state, message) {
6927
6962
  if (state.onWarning) state.onWarning.call(null, generateError(state, message));
6928
6963
  }
6929
- var directiveHandlers = {
6964
+ function storeAnchor(state, name, value) {
6965
+ const transactions = state.anchorMapTransactions;
6966
+ if (transactions.length !== 0) {
6967
+ const transaction = transactions[transactions.length - 1];
6968
+ if (!_hasOwnProperty.call(transaction, name)) transaction[name] = {
6969
+ existed: _hasOwnProperty.call(state.anchorMap, name),
6970
+ value: state.anchorMap[name]
6971
+ };
6972
+ }
6973
+ state.anchorMap[name] = value;
6974
+ }
6975
+ function beginAnchorTransaction(state) {
6976
+ state.anchorMapTransactions.push(Object.create(null));
6977
+ }
6978
+ function commitAnchorTransaction(state) {
6979
+ const transaction = state.anchorMapTransactions.pop();
6980
+ const transactions = state.anchorMapTransactions;
6981
+ if (transactions.length === 0) return;
6982
+ const parent = transactions[transactions.length - 1];
6983
+ const names = Object.keys(transaction);
6984
+ for (let index = 0, length = names.length; index < length; index += 1) {
6985
+ const name = names[index];
6986
+ if (!_hasOwnProperty.call(parent, name)) parent[name] = transaction[name];
6987
+ }
6988
+ }
6989
+ function rollbackAnchorTransaction(state) {
6990
+ const transaction = state.anchorMapTransactions.pop();
6991
+ const names = Object.keys(transaction);
6992
+ for (let index = names.length - 1; index >= 0; index -= 1) {
6993
+ const entry = transaction[names[index]];
6994
+ if (entry.existed) state.anchorMap[names[index]] = entry.value;
6995
+ else delete state.anchorMap[names[index]];
6996
+ }
6997
+ }
6998
+ function snapshotState(state) {
6999
+ return {
7000
+ position: state.position,
7001
+ line: state.line,
7002
+ lineStart: state.lineStart,
7003
+ lineIndent: state.lineIndent,
7004
+ firstTabInLine: state.firstTabInLine,
7005
+ tag: state.tag,
7006
+ anchor: state.anchor,
7007
+ kind: state.kind,
7008
+ result: state.result
7009
+ };
7010
+ }
7011
+ function restoreState(state, snapshot) {
7012
+ state.position = snapshot.position;
7013
+ state.line = snapshot.line;
7014
+ state.lineStart = snapshot.lineStart;
7015
+ state.lineIndent = snapshot.lineIndent;
7016
+ state.firstTabInLine = snapshot.firstTabInLine;
7017
+ state.tag = snapshot.tag;
7018
+ state.anchor = snapshot.anchor;
7019
+ state.kind = snapshot.kind;
7020
+ state.result = snapshot.result;
7021
+ }
7022
+ const directiveHandlers = {
6930
7023
  YAML: function handleYamlDirective(state, name, args) {
6931
- var match, major, minor;
6932
7024
  if (state.version !== null) throwError(state, "duplication of %YAML directive");
6933
7025
  if (args.length !== 1) throwError(state, "YAML directive accepts exactly one argument");
6934
- match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
7026
+ const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
6935
7027
  if (match === null) throwError(state, "ill-formed argument of the YAML directive");
6936
- major = parseInt(match[1], 10);
6937
- minor = parseInt(match[2], 10);
7028
+ const major = parseInt(match[1], 10);
7029
+ const minor = parseInt(match[2], 10);
6938
7030
  if (major !== 1) throwError(state, "unacceptable YAML version of the document");
6939
7031
  state.version = args[0];
6940
7032
  state.checkLineBreaks = minor < 2;
6941
7033
  if (minor !== 1 && minor !== 2) throwWarning(state, "unsupported YAML version of the document");
6942
7034
  },
6943
7035
  TAG: function handleTagDirective(state, name, args) {
6944
- var handle, prefix;
7036
+ let prefix;
6945
7037
  if (args.length !== 2) throwError(state, "TAG directive accepts exactly two arguments");
6946
- handle = args[0];
7038
+ const handle = args[0];
6947
7039
  prefix = args[1];
6948
7040
  if (!PATTERN_TAG_HANDLE.test(handle)) throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
6949
7041
  if (_hasOwnProperty.call(state.tagMap, handle)) throwError(state, "there is a previously declared suffix for \"" + handle + "\" tag handle");
@@ -6957,23 +7049,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6957
7049
  }
6958
7050
  };
6959
7051
  function captureSegment(state, start, end, checkJson) {
6960
- var _position, _length, _character, _result;
6961
7052
  if (start < end) {
6962
- _result = state.input.slice(start, end);
6963
- if (checkJson) for (_position = 0, _length = _result.length; _position < _length; _position += 1) {
6964
- _character = _result.charCodeAt(_position);
6965
- if (!(_character === 9 || 32 <= _character && _character <= 1114111)) throwError(state, "expected valid JSON character");
7053
+ const _result = state.input.slice(start, end);
7054
+ if (checkJson) for (let _position = 0, _length = _result.length; _position < _length; _position += 1) {
7055
+ const _character = _result.charCodeAt(_position);
7056
+ if (!(_character === 9 || _character >= 32 && _character <= 1114111)) throwError(state, "expected valid JSON character");
6966
7057
  }
6967
7058
  else if (PATTERN_NON_PRINTABLE.test(_result)) throwError(state, "the stream contains non-printable characters");
6968
7059
  state.result += _result;
6969
7060
  }
6970
7061
  }
6971
7062
  function mergeMappings(state, destination, source, overridableKeys) {
6972
- var sourceKeys, key, index, quantity;
6973
7063
  if (!common.isObject(source)) throwError(state, "cannot merge mappings; the provided source object is unacceptable");
6974
- sourceKeys = Object.keys(source);
6975
- for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
6976
- key = sourceKeys[index];
7064
+ const sourceKeys = Object.keys(source);
7065
+ for (let index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
7066
+ const key = sourceKeys[index];
7067
+ if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
6977
7068
  if (!_hasOwnProperty.call(destination, key)) {
6978
7069
  setProperty(destination, key, source[key]);
6979
7070
  overridableKeys[key] = true;
@@ -6981,10 +7072,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6981
7072
  }
6982
7073
  }
6983
7074
  function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, startLine, startLineStart, startPos) {
6984
- var index, quantity;
6985
7075
  if (Array.isArray(keyNode)) {
6986
7076
  keyNode = Array.prototype.slice.call(keyNode);
6987
- for (index = 0, quantity = keyNode.length; index < quantity; index += 1) {
7077
+ for (let index = 0, quantity = keyNode.length; index < quantity; index += 1) {
6988
7078
  if (Array.isArray(keyNode[index])) throwError(state, "nested arrays are not supported inside keys");
6989
7079
  if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") keyNode[index] = "[object Object]";
6990
7080
  }
@@ -6992,7 +7082,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6992
7082
  if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") keyNode = "[object Object]";
6993
7083
  keyNode = String(keyNode);
6994
7084
  if (_result === null) _result = {};
6995
- 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);
7085
+ 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);
6996
7086
  else mergeMappings(state, _result, valueNode, overridableKeys);
6997
7087
  else {
6998
7088
  if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
@@ -7007,7 +7097,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7007
7097
  return _result;
7008
7098
  }
7009
7099
  function readLineBreak(state) {
7010
- var ch = state.input.charCodeAt(state.position);
7100
+ const ch = state.input.charCodeAt(state.position);
7011
7101
  if (ch === 10) state.position++;
7012
7102
  else if (ch === 13) {
7013
7103
  state.position++;
@@ -7018,16 +7108,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7018
7108
  state.firstTabInLine = -1;
7019
7109
  }
7020
7110
  function skipSeparationSpace(state, allowComments, checkIndent) {
7021
- var lineBreaks = 0, ch = state.input.charCodeAt(state.position);
7111
+ let lineBreaks = 0;
7112
+ let ch = state.input.charCodeAt(state.position);
7022
7113
  while (ch !== 0) {
7023
- while (is_WHITE_SPACE(ch)) {
7114
+ while (isWhiteSpace(ch)) {
7024
7115
  if (ch === 9 && state.firstTabInLine === -1) state.firstTabInLine = state.position;
7025
7116
  ch = state.input.charCodeAt(++state.position);
7026
7117
  }
7027
7118
  if (allowComments && ch === 35) do
7028
7119
  ch = state.input.charCodeAt(++state.position);
7029
7120
  while (ch !== 10 && ch !== 13 && ch !== 0);
7030
- if (is_EOL(ch)) {
7121
+ if (isEol(ch)) {
7031
7122
  readLineBreak(state);
7032
7123
  ch = state.input.charCodeAt(state.position);
7033
7124
  lineBreaks++;
@@ -7042,11 +7133,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7042
7133
  return lineBreaks;
7043
7134
  }
7044
7135
  function testDocumentSeparator(state) {
7045
- var _position = state.position, ch = state.input.charCodeAt(_position);
7136
+ let _position = state.position;
7137
+ let ch = state.input.charCodeAt(_position);
7046
7138
  if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
7047
7139
  _position += 3;
7048
7140
  ch = state.input.charCodeAt(_position);
7049
- if (ch === 0 || is_WS_OR_EOL(ch)) return true;
7141
+ if (ch === 0 || isWsOrEol(ch)) return true;
7050
7142
  }
7051
7143
  return false;
7052
7144
  }
@@ -7055,11 +7147,19 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7055
7147
  else if (count > 1) state.result += common.repeat("\n", count - 1);
7056
7148
  }
7057
7149
  function readPlainScalar(state, nodeIndent, withinFlowCollection) {
7058
- var preceding, following, captureStart, captureEnd, hasPendingContent, _line, _lineStart, _lineIndent, _kind = state.kind, _result = state.result, ch = state.input.charCodeAt(state.position);
7059
- if (is_WS_OR_EOL(ch) || is_FLOW_INDICATOR(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;
7150
+ let captureStart;
7151
+ let captureEnd;
7152
+ let hasPendingContent;
7153
+ let _line;
7154
+ let _lineStart;
7155
+ let _lineIndent;
7156
+ const _kind = state.kind;
7157
+ const _result = state.result;
7158
+ let ch = state.input.charCodeAt(state.position);
7159
+ 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;
7060
7160
  if (ch === 63 || ch === 45) {
7061
- following = state.input.charCodeAt(state.position + 1);
7062
- if (is_WS_OR_EOL(following) || withinFlowCollection && is_FLOW_INDICATOR(following)) return false;
7161
+ const following = state.input.charCodeAt(state.position + 1);
7162
+ if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) return false;
7063
7163
  }
7064
7164
  state.kind = "scalar";
7065
7165
  state.result = "";
@@ -7067,13 +7167,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7067
7167
  hasPendingContent = false;
7068
7168
  while (ch !== 0) {
7069
7169
  if (ch === 58) {
7070
- following = state.input.charCodeAt(state.position + 1);
7071
- if (is_WS_OR_EOL(following) || withinFlowCollection && is_FLOW_INDICATOR(following)) break;
7170
+ const following = state.input.charCodeAt(state.position + 1);
7171
+ if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) break;
7072
7172
  } else if (ch === 35) {
7073
- preceding = state.input.charCodeAt(state.position - 1);
7074
- if (is_WS_OR_EOL(preceding)) break;
7075
- } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && is_FLOW_INDICATOR(ch)) break;
7076
- else if (is_EOL(ch)) {
7173
+ if (isWsOrEol(state.input.charCodeAt(state.position - 1))) break;
7174
+ } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch)) break;
7175
+ else if (isEol(ch)) {
7077
7176
  _line = state.line;
7078
7177
  _lineStart = state.lineStart;
7079
7178
  _lineIndent = state.lineIndent;
@@ -7096,7 +7195,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7096
7195
  captureStart = captureEnd = state.position;
7097
7196
  hasPendingContent = false;
7098
7197
  }
7099
- if (!is_WHITE_SPACE(ch)) captureEnd = state.position + 1;
7198
+ if (!isWhiteSpace(ch)) captureEnd = state.position + 1;
7100
7199
  ch = state.input.charCodeAt(++state.position);
7101
7200
  }
7102
7201
  captureSegment(state, captureStart, captureEnd, false);
@@ -7106,7 +7205,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7106
7205
  return false;
7107
7206
  }
7108
7207
  function readSingleQuotedScalar(state, nodeIndent) {
7109
- var ch = state.input.charCodeAt(state.position), captureStart, captureEnd;
7208
+ let captureStart;
7209
+ let captureEnd;
7210
+ let ch = state.input.charCodeAt(state.position);
7110
7211
  if (ch !== 39) return false;
7111
7212
  state.kind = "scalar";
7112
7213
  state.result = "";
@@ -7120,19 +7221,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7120
7221
  state.position++;
7121
7222
  captureEnd = state.position;
7122
7223
  } else return true;
7123
- } else if (is_EOL(ch)) {
7224
+ } else if (isEol(ch)) {
7124
7225
  captureSegment(state, captureStart, captureEnd, true);
7125
7226
  writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
7126
7227
  captureStart = captureEnd = state.position;
7127
7228
  } else if (state.position === state.lineStart && testDocumentSeparator(state)) throwError(state, "unexpected end of the document within a single quoted scalar");
7128
7229
  else {
7129
7230
  state.position++;
7130
- captureEnd = state.position;
7231
+ if (!isWhiteSpace(ch)) captureEnd = state.position;
7131
7232
  }
7132
7233
  throwError(state, "unexpected end of the stream within a single quoted scalar");
7133
7234
  }
7134
7235
  function readDoubleQuotedScalar(state, nodeIndent) {
7135
- var captureStart, captureEnd, hexLength, hexResult, tmp, ch = state.input.charCodeAt(state.position);
7236
+ let captureStart;
7237
+ let captureEnd;
7238
+ let tmp;
7239
+ let ch = state.input.charCodeAt(state.position);
7136
7240
  if (ch !== 34) return false;
7137
7241
  state.kind = "scalar";
7138
7242
  state.result = "";
@@ -7145,13 +7249,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7145
7249
  } else if (ch === 92) {
7146
7250
  captureSegment(state, captureStart, state.position, true);
7147
7251
  ch = state.input.charCodeAt(++state.position);
7148
- if (is_EOL(ch)) skipSeparationSpace(state, false, nodeIndent);
7252
+ if (isEol(ch)) skipSeparationSpace(state, false, nodeIndent);
7149
7253
  else if (ch < 256 && simpleEscapeCheck[ch]) {
7150
7254
  state.result += simpleEscapeMap[ch];
7151
7255
  state.position++;
7152
7256
  } else if ((tmp = escapedHexLen(ch)) > 0) {
7153
- hexLength = tmp;
7154
- hexResult = 0;
7257
+ let hexLength = tmp;
7258
+ let hexResult = 0;
7155
7259
  for (; hexLength > 0; hexLength--) {
7156
7260
  ch = state.input.charCodeAt(++state.position);
7157
7261
  if ((tmp = fromHexCode(ch)) >= 0) hexResult = (hexResult << 4) + tmp;
@@ -7161,19 +7265,34 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7161
7265
  state.position++;
7162
7266
  } else throwError(state, "unknown escape sequence");
7163
7267
  captureStart = captureEnd = state.position;
7164
- } else if (is_EOL(ch)) {
7268
+ } else if (isEol(ch)) {
7165
7269
  captureSegment(state, captureStart, captureEnd, true);
7166
7270
  writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
7167
7271
  captureStart = captureEnd = state.position;
7168
7272
  } else if (state.position === state.lineStart && testDocumentSeparator(state)) throwError(state, "unexpected end of the document within a double quoted scalar");
7169
7273
  else {
7170
7274
  state.position++;
7171
- captureEnd = state.position;
7275
+ if (!isWhiteSpace(ch)) captureEnd = state.position;
7172
7276
  }
7173
7277
  throwError(state, "unexpected end of the stream within a double quoted scalar");
7174
7278
  }
7175
7279
  function readFlowCollection(state, nodeIndent) {
7176
- var readNext = true, _line, _lineStart, _pos, _tag = state.tag, _result, _anchor = state.anchor, following, terminator, isPair, isExplicitPair, isMapping, overridableKeys = Object.create(null), keyNode, keyTag, valueNode, ch = state.input.charCodeAt(state.position);
7280
+ let readNext = true;
7281
+ let _line;
7282
+ let _lineStart;
7283
+ let _pos;
7284
+ const _tag = state.tag;
7285
+ let _result;
7286
+ const _anchor = state.anchor;
7287
+ let terminator;
7288
+ let isPair;
7289
+ let isExplicitPair;
7290
+ let isMapping;
7291
+ const overridableKeys = Object.create(null);
7292
+ let keyNode;
7293
+ let keyTag;
7294
+ let valueNode;
7295
+ let ch = state.input.charCodeAt(state.position);
7177
7296
  if (ch === 91) {
7178
7297
  terminator = 93;
7179
7298
  isMapping = false;
@@ -7183,7 +7302,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7183
7302
  isMapping = true;
7184
7303
  _result = {};
7185
7304
  } else return false;
7186
- if (state.anchor !== null) state.anchorMap[state.anchor] = _result;
7305
+ if (state.anchor !== null) storeAnchor(state, state.anchor, _result);
7187
7306
  ch = state.input.charCodeAt(++state.position);
7188
7307
  while (ch !== 0) {
7189
7308
  skipSeparationSpace(state, true, nodeIndent);
@@ -7200,8 +7319,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7200
7319
  keyTag = keyNode = valueNode = null;
7201
7320
  isPair = isExplicitPair = false;
7202
7321
  if (ch === 63) {
7203
- following = state.input.charCodeAt(state.position + 1);
7204
- if (is_WS_OR_EOL(following)) {
7322
+ if (isWsOrEol(state.input.charCodeAt(state.position + 1))) {
7205
7323
  isPair = isExplicitPair = true;
7206
7324
  state.position++;
7207
7325
  skipSeparationSpace(state, true, nodeIndent);
@@ -7235,7 +7353,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7235
7353
  throwError(state, "unexpected end of the stream within a flow collection");
7236
7354
  }
7237
7355
  function readBlockScalar(state, nodeIndent) {
7238
- var captureStart, folding, chomping = CHOMPING_CLIP, didReadContent = false, detectedIndent = false, textIndent = nodeIndent, emptyLines = 0, atMoreIndented = false, tmp, ch = state.input.charCodeAt(state.position);
7356
+ let folding;
7357
+ let chomping = CHOMPING_CLIP;
7358
+ let didReadContent = false;
7359
+ let detectedIndent = false;
7360
+ let textIndent = nodeIndent;
7361
+ let emptyLines = 0;
7362
+ let atMoreIndented = false;
7363
+ let tmp;
7364
+ let ch = state.input.charCodeAt(state.position);
7239
7365
  if (ch === 124) folding = false;
7240
7366
  else if (ch === 62) folding = true;
7241
7367
  else return false;
@@ -7252,13 +7378,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7252
7378
  } else throwError(state, "repeat of an indentation width identifier");
7253
7379
  else break;
7254
7380
  }
7255
- if (is_WHITE_SPACE(ch)) {
7381
+ if (isWhiteSpace(ch)) {
7256
7382
  do
7257
7383
  ch = state.input.charCodeAt(++state.position);
7258
- while (is_WHITE_SPACE(ch));
7384
+ while (isWhiteSpace(ch));
7259
7385
  if (ch === 35) do
7260
7386
  ch = state.input.charCodeAt(++state.position);
7261
- while (!is_EOL(ch) && ch !== 0);
7387
+ while (!isEol(ch) && ch !== 0);
7262
7388
  }
7263
7389
  while (ch !== 0) {
7264
7390
  readLineBreak(state);
@@ -7269,10 +7395,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7269
7395
  ch = state.input.charCodeAt(++state.position);
7270
7396
  }
7271
7397
  if (!detectedIndent && state.lineIndent > textIndent) textIndent = state.lineIndent;
7272
- if (is_EOL(ch)) {
7398
+ if (isEol(ch)) {
7273
7399
  emptyLines++;
7274
7400
  continue;
7275
7401
  }
7402
+ if (!detectedIndent && textIndent === 0) throwError(state, "missing indentation for block scalar");
7276
7403
  if (state.lineIndent < textIndent) {
7277
7404
  if (chomping === CHOMPING_KEEP) state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
7278
7405
  else if (chomping === CHOMPING_CLIP) {
@@ -7280,7 +7407,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7280
7407
  }
7281
7408
  break;
7282
7409
  }
7283
- if (folding) if (is_WHITE_SPACE(ch)) {
7410
+ if (folding) if (isWhiteSpace(ch)) {
7284
7411
  atMoreIndented = true;
7285
7412
  state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
7286
7413
  } else if (atMoreIndented) {
@@ -7293,25 +7420,27 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7293
7420
  didReadContent = true;
7294
7421
  detectedIndent = true;
7295
7422
  emptyLines = 0;
7296
- captureStart = state.position;
7297
- while (!is_EOL(ch) && ch !== 0) ch = state.input.charCodeAt(++state.position);
7423
+ const captureStart = state.position;
7424
+ while (!isEol(ch) && ch !== 0) ch = state.input.charCodeAt(++state.position);
7298
7425
  captureSegment(state, captureStart, state.position, false);
7299
7426
  }
7300
7427
  return true;
7301
7428
  }
7302
7429
  function readBlockSequence(state, nodeIndent) {
7303
- var _line, _tag = state.tag, _anchor = state.anchor, _result = [], following, detected = false, ch;
7430
+ const _tag = state.tag;
7431
+ const _anchor = state.anchor;
7432
+ const _result = [];
7433
+ let detected = false;
7304
7434
  if (state.firstTabInLine !== -1) return false;
7305
- if (state.anchor !== null) state.anchorMap[state.anchor] = _result;
7306
- ch = state.input.charCodeAt(state.position);
7435
+ if (state.anchor !== null) storeAnchor(state, state.anchor, _result);
7436
+ let ch = state.input.charCodeAt(state.position);
7307
7437
  while (ch !== 0) {
7308
7438
  if (state.firstTabInLine !== -1) {
7309
7439
  state.position = state.firstTabInLine;
7310
7440
  throwError(state, "tab characters must not be used in indentation");
7311
7441
  }
7312
7442
  if (ch !== 45) break;
7313
- following = state.input.charCodeAt(state.position + 1);
7314
- if (!is_WS_OR_EOL(following)) break;
7443
+ if (!isWsOrEol(state.input.charCodeAt(state.position + 1))) break;
7315
7444
  detected = true;
7316
7445
  state.position++;
7317
7446
  if (skipSeparationSpace(state, true, -1)) {
@@ -7321,7 +7450,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7321
7450
  continue;
7322
7451
  }
7323
7452
  }
7324
- _line = state.line;
7453
+ const _line = state.line;
7325
7454
  composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);
7326
7455
  _result.push(state.result);
7327
7456
  skipSeparationSpace(state, true, -1);
@@ -7339,18 +7468,30 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7339
7468
  return false;
7340
7469
  }
7341
7470
  function readBlockMapping(state, nodeIndent, flowIndent) {
7342
- var following, allowCompact, _line, _keyLine, _keyLineStart, _keyPos, _tag = state.tag, _anchor = state.anchor, _result = {}, overridableKeys = Object.create(null), keyTag = null, keyNode = null, valueNode = null, atExplicitKey = false, detected = false, ch;
7471
+ let allowCompact;
7472
+ let _keyLine;
7473
+ let _keyLineStart;
7474
+ let _keyPos;
7475
+ const _tag = state.tag;
7476
+ const _anchor = state.anchor;
7477
+ const _result = {};
7478
+ const overridableKeys = Object.create(null);
7479
+ let keyTag = null;
7480
+ let keyNode = null;
7481
+ let valueNode = null;
7482
+ let atExplicitKey = false;
7483
+ let detected = false;
7343
7484
  if (state.firstTabInLine !== -1) return false;
7344
- if (state.anchor !== null) state.anchorMap[state.anchor] = _result;
7345
- ch = state.input.charCodeAt(state.position);
7485
+ if (state.anchor !== null) storeAnchor(state, state.anchor, _result);
7486
+ let ch = state.input.charCodeAt(state.position);
7346
7487
  while (ch !== 0) {
7347
7488
  if (!atExplicitKey && state.firstTabInLine !== -1) {
7348
7489
  state.position = state.firstTabInLine;
7349
7490
  throwError(state, "tab characters must not be used in indentation");
7350
7491
  }
7351
- following = state.input.charCodeAt(state.position + 1);
7352
- _line = state.line;
7353
- if ((ch === 63 || ch === 58) && is_WS_OR_EOL(following)) {
7492
+ const following = state.input.charCodeAt(state.position + 1);
7493
+ const _line = state.line;
7494
+ if ((ch === 63 || ch === 58) && isWsOrEol(following)) {
7354
7495
  if (ch === 63) {
7355
7496
  if (atExplicitKey) {
7356
7497
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
@@ -7372,10 +7513,10 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7372
7513
  if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) break;
7373
7514
  if (state.line === _line) {
7374
7515
  ch = state.input.charCodeAt(state.position);
7375
- while (is_WHITE_SPACE(ch)) ch = state.input.charCodeAt(++state.position);
7516
+ while (isWhiteSpace(ch)) ch = state.input.charCodeAt(++state.position);
7376
7517
  if (ch === 58) {
7377
7518
  ch = state.input.charCodeAt(++state.position);
7378
- if (!is_WS_OR_EOL(ch)) throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
7519
+ if (!isWsOrEol(ch)) throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
7379
7520
  if (atExplicitKey) {
7380
7521
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
7381
7522
  keyTag = keyNode = valueNode = null;
@@ -7426,7 +7567,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7426
7567
  return detected;
7427
7568
  }
7428
7569
  function readTagProperty(state) {
7429
- var _position, isVerbatim = false, isNamed = false, tagHandle, tagName, ch = state.input.charCodeAt(state.position);
7570
+ let isVerbatim = false;
7571
+ let isNamed = false;
7572
+ let tagHandle;
7573
+ let tagName;
7574
+ let ch = state.input.charCodeAt(state.position);
7430
7575
  if (ch !== 33) return false;
7431
7576
  if (state.tag !== null) throwError(state, "duplication of a tag property");
7432
7577
  ch = state.input.charCodeAt(++state.position);
@@ -7438,7 +7583,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7438
7583
  tagHandle = "!!";
7439
7584
  ch = state.input.charCodeAt(++state.position);
7440
7585
  } else tagHandle = "!";
7441
- _position = state.position;
7586
+ let _position = state.position;
7442
7587
  if (isVerbatim) {
7443
7588
  do
7444
7589
  ch = state.input.charCodeAt(++state.position);
@@ -7448,7 +7593,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7448
7593
  ch = state.input.charCodeAt(++state.position);
7449
7594
  } else throwError(state, "unexpected end of the stream within a verbatim tag");
7450
7595
  } else {
7451
- while (ch !== 0 && !is_WS_OR_EOL(ch)) {
7596
+ while (ch !== 0 && !isWsOrEol(ch)) {
7452
7597
  if (ch === 33) if (!isNamed) {
7453
7598
  tagHandle = state.input.slice(_position - 1, state.position + 1);
7454
7599
  if (!PATTERN_TAG_HANDLE.test(tagHandle)) throwError(state, "named tag handle cannot contain such characters");
@@ -7474,37 +7619,63 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7474
7619
  return true;
7475
7620
  }
7476
7621
  function readAnchorProperty(state) {
7477
- var _position, ch = state.input.charCodeAt(state.position);
7622
+ let ch = state.input.charCodeAt(state.position);
7478
7623
  if (ch !== 38) return false;
7479
7624
  if (state.anchor !== null) throwError(state, "duplication of an anchor property");
7480
7625
  ch = state.input.charCodeAt(++state.position);
7481
- _position = state.position;
7482
- while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) ch = state.input.charCodeAt(++state.position);
7626
+ const _position = state.position;
7627
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) ch = state.input.charCodeAt(++state.position);
7483
7628
  if (state.position === _position) throwError(state, "name of an anchor node must contain at least one character");
7484
7629
  state.anchor = state.input.slice(_position, state.position);
7485
7630
  return true;
7486
7631
  }
7487
7632
  function readAlias(state) {
7488
- var _position, alias, ch = state.input.charCodeAt(state.position);
7633
+ let ch = state.input.charCodeAt(state.position);
7489
7634
  if (ch !== 42) return false;
7490
7635
  ch = state.input.charCodeAt(++state.position);
7491
- _position = state.position;
7492
- while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) ch = state.input.charCodeAt(++state.position);
7636
+ const _position = state.position;
7637
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) ch = state.input.charCodeAt(++state.position);
7493
7638
  if (state.position === _position) throwError(state, "name of an alias node must contain at least one character");
7494
- alias = state.input.slice(_position, state.position);
7639
+ const alias = state.input.slice(_position, state.position);
7495
7640
  if (!_hasOwnProperty.call(state.anchorMap, alias)) throwError(state, "unidentified alias \"" + alias + "\"");
7496
7641
  state.result = state.anchorMap[alias];
7497
7642
  skipSeparationSpace(state, true, -1);
7498
7643
  return true;
7499
7644
  }
7645
+ function tryReadBlockMappingFromProperty(state, propertyStart, nodeIndent, flowIndent) {
7646
+ const fallbackState = snapshotState(state);
7647
+ beginAnchorTransaction(state);
7648
+ restoreState(state, propertyStart);
7649
+ state.tag = null;
7650
+ state.anchor = null;
7651
+ state.kind = null;
7652
+ state.result = null;
7653
+ if (readBlockMapping(state, nodeIndent, flowIndent) && state.kind === "mapping") {
7654
+ commitAnchorTransaction(state);
7655
+ return true;
7656
+ }
7657
+ rollbackAnchorTransaction(state);
7658
+ restoreState(state, fallbackState);
7659
+ return false;
7660
+ }
7500
7661
  function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {
7501
- var allowBlockStyles, allowBlockScalars, allowBlockCollections, indentStatus = 1, atNewLine = false, hasContent = false, typeIndex, typeQuantity, typeList, type, flowIndent, blockIndent;
7662
+ let allowBlockScalars;
7663
+ let allowBlockCollections;
7664
+ let indentStatus = 1;
7665
+ let atNewLine = false;
7666
+ let hasContent = false;
7667
+ let propertyStart = null;
7668
+ let type;
7669
+ let flowIndent;
7670
+ let blockIndent;
7671
+ if (state.depth >= state.maxDepth) throwError(state, "nesting exceeded maxDepth (" + state.maxDepth + ")");
7672
+ state.depth += 1;
7502
7673
  if (state.listener !== null) state.listener("open", state);
7503
7674
  state.tag = null;
7504
7675
  state.anchor = null;
7505
7676
  state.kind = null;
7506
7677
  state.result = null;
7507
- allowBlockStyles = allowBlockScalars = allowBlockCollections = CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext;
7678
+ const allowBlockStyles = allowBlockScalars = allowBlockCollections = CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext;
7508
7679
  if (allowToSeek) {
7509
7680
  if (skipSeparationSpace(state, true, -1)) {
7510
7681
  atNewLine = true;
@@ -7513,13 +7684,20 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7513
7684
  else if (state.lineIndent < parentIndent) indentStatus = -1;
7514
7685
  }
7515
7686
  }
7516
- if (indentStatus === 1) while (readTagProperty(state) || readAnchorProperty(state)) if (skipSeparationSpace(state, true, -1)) {
7517
- atNewLine = true;
7518
- allowBlockCollections = allowBlockStyles;
7519
- if (state.lineIndent > parentIndent) indentStatus = 1;
7520
- else if (state.lineIndent === parentIndent) indentStatus = 0;
7521
- else if (state.lineIndent < parentIndent) indentStatus = -1;
7522
- } else allowBlockCollections = false;
7687
+ if (indentStatus === 1) while (true) {
7688
+ const ch = state.input.charCodeAt(state.position);
7689
+ const propertyState = snapshotState(state);
7690
+ if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null)) break;
7691
+ if (!readTagProperty(state) && !readAnchorProperty(state)) break;
7692
+ if (propertyStart === null) propertyStart = propertyState;
7693
+ if (skipSeparationSpace(state, true, -1)) {
7694
+ atNewLine = true;
7695
+ allowBlockCollections = allowBlockStyles;
7696
+ if (state.lineIndent > parentIndent) indentStatus = 1;
7697
+ else if (state.lineIndent === parentIndent) indentStatus = 0;
7698
+ else if (state.lineIndent < parentIndent) indentStatus = -1;
7699
+ } else allowBlockCollections = false;
7700
+ }
7523
7701
  if (allowBlockCollections) allowBlockCollections = atNewLine || allowCompact;
7524
7702
  if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
7525
7703
  if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) flowIndent = parentIndent;
@@ -7527,7 +7705,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7527
7705
  blockIndent = state.position - state.lineStart;
7528
7706
  if (indentStatus === 1) if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) hasContent = true;
7529
7707
  else {
7530
- if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) hasContent = true;
7708
+ const ch = state.input.charCodeAt(state.position);
7709
+ if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) hasContent = true;
7710
+ else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) hasContent = true;
7531
7711
  else if (readAlias(state)) {
7532
7712
  hasContent = true;
7533
7713
  if (state.tag !== null || state.anchor !== null) throwError(state, "alias node should not have any properties");
@@ -7535,20 +7715,20 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7535
7715
  hasContent = true;
7536
7716
  if (state.tag === null) state.tag = "?";
7537
7717
  }
7538
- if (state.anchor !== null) state.anchorMap[state.anchor] = state.result;
7718
+ if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
7539
7719
  }
7540
7720
  else if (indentStatus === 0) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
7541
7721
  }
7542
7722
  if (state.tag === null) {
7543
- if (state.anchor !== null) state.anchorMap[state.anchor] = state.result;
7723
+ if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
7544
7724
  } else if (state.tag === "?") {
7545
7725
  if (state.result !== null && state.kind !== "scalar") throwError(state, "unacceptable node kind for !<?> tag; it should be \"scalar\", not \"" + state.kind + "\"");
7546
- for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {
7726
+ for (let typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {
7547
7727
  type = state.implicitTypes[typeIndex];
7548
7728
  if (type.resolve(state.result)) {
7549
7729
  state.result = type.construct(state.result);
7550
7730
  state.tag = type.tag;
7551
- if (state.anchor !== null) state.anchorMap[state.anchor] = state.result;
7731
+ if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
7552
7732
  break;
7553
7733
  }
7554
7734
  }
@@ -7556,8 +7736,8 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7556
7736
  if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag)) type = state.typeMap[state.kind || "fallback"][state.tag];
7557
7737
  else {
7558
7738
  type = null;
7559
- typeList = state.typeMap.multi[state.kind || "fallback"];
7560
- for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
7739
+ const typeList = state.typeMap.multi[state.kind || "fallback"];
7740
+ for (let typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
7561
7741
  type = typeList[typeIndex];
7562
7742
  break;
7563
7743
  }
@@ -7567,14 +7747,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7567
7747
  if (!type.resolve(state.result, state.tag)) throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
7568
7748
  else {
7569
7749
  state.result = type.construct(state.result, state.tag);
7570
- if (state.anchor !== null) state.anchorMap[state.anchor] = state.result;
7750
+ if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
7571
7751
  }
7572
7752
  }
7573
7753
  if (state.listener !== null) state.listener("close", state);
7754
+ state.depth -= 1;
7574
7755
  return state.tag !== null || state.anchor !== null || hasContent;
7575
7756
  }
7576
7757
  function readDocument(state) {
7577
- var documentStart = state.position, _position, directiveName, directiveArgs, hasDirectives = false, ch;
7758
+ const documentStart = state.position;
7759
+ let hasDirectives = false;
7760
+ let ch;
7578
7761
  state.version = null;
7579
7762
  state.checkLineBreaks = state.legacy;
7580
7763
  state.tagMap = Object.create(null);
@@ -7585,22 +7768,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7585
7768
  if (state.lineIndent > 0 || ch !== 37) break;
7586
7769
  hasDirectives = true;
7587
7770
  ch = state.input.charCodeAt(++state.position);
7588
- _position = state.position;
7589
- while (ch !== 0 && !is_WS_OR_EOL(ch)) ch = state.input.charCodeAt(++state.position);
7590
- directiveName = state.input.slice(_position, state.position);
7591
- directiveArgs = [];
7771
+ let _position = state.position;
7772
+ while (ch !== 0 && !isWsOrEol(ch)) ch = state.input.charCodeAt(++state.position);
7773
+ const directiveName = state.input.slice(_position, state.position);
7774
+ const directiveArgs = [];
7592
7775
  if (directiveName.length < 1) throwError(state, "directive name must not be less than one character in length");
7593
7776
  while (ch !== 0) {
7594
- while (is_WHITE_SPACE(ch)) ch = state.input.charCodeAt(++state.position);
7777
+ while (isWhiteSpace(ch)) ch = state.input.charCodeAt(++state.position);
7595
7778
  if (ch === 35) {
7596
7779
  do
7597
7780
  ch = state.input.charCodeAt(++state.position);
7598
- while (ch !== 0 && !is_EOL(ch));
7781
+ while (ch !== 0 && !isEol(ch));
7599
7782
  break;
7600
7783
  }
7601
- if (is_EOL(ch)) break;
7784
+ if (isEol(ch)) break;
7602
7785
  _position = state.position;
7603
- while (ch !== 0 && !is_WS_OR_EOL(ch)) ch = state.input.charCodeAt(++state.position);
7786
+ while (ch !== 0 && !isWsOrEol(ch)) ch = state.input.charCodeAt(++state.position);
7604
7787
  directiveArgs.push(state.input.slice(_position, state.position));
7605
7788
  }
7606
7789
  if (ch !== 0) readLineBreak(state);
@@ -7624,7 +7807,6 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7624
7807
  return;
7625
7808
  }
7626
7809
  if (state.position < state.length - 1) throwError(state, "end of the stream or a document separator is expected");
7627
- else return;
7628
7810
  }
7629
7811
  function loadDocuments(input, options) {
7630
7812
  input = String(input);
@@ -7633,8 +7815,8 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7633
7815
  if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) input += "\n";
7634
7816
  if (input.charCodeAt(0) === 65279) input = input.slice(1);
7635
7817
  }
7636
- var state = new State(input, options);
7637
- var nullpos = input.indexOf("\0");
7818
+ const state = new State(input, options);
7819
+ const nullpos = input.indexOf("\0");
7638
7820
  if (nullpos !== -1) {
7639
7821
  state.position = nullpos;
7640
7822
  throwError(state, "null byte is not allowed in input");
@@ -7652,12 +7834,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7652
7834
  options = iterator;
7653
7835
  iterator = null;
7654
7836
  }
7655
- var documents = loadDocuments(input, options);
7837
+ const documents = loadDocuments(input, options);
7656
7838
  if (typeof iterator !== "function") return documents;
7657
- for (var index = 0, length = documents.length; index < length; index += 1) iterator(documents[index]);
7839
+ for (let index = 0, length = documents.length; index < length; index += 1) iterator(documents[index]);
7658
7840
  }
7659
7841
  function load(input, options) {
7660
- var documents = loadDocuments(input, options);
7842
+ const documents = loadDocuments(input, options);
7661
7843
  if (documents.length === 0) return;
7662
7844
  else if (documents.length === 1) return documents[0];
7663
7845
  throw new YAMLException("expected a single document in the stream, but found more");
@@ -7666,39 +7848,39 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7666
7848
  module.exports.load = load;
7667
7849
  }));
7668
7850
  //#endregion
7669
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/lib/dumper.js
7851
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/dumper.js
7670
7852
  var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7671
- var common = require_common();
7672
- var YAMLException = require_exception();
7673
- var DEFAULT_SCHEMA = require_default();
7674
- var _toString = Object.prototype.toString;
7675
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
7676
- var CHAR_BOM = 65279;
7677
- var CHAR_TAB = 9;
7678
- var CHAR_LINE_FEED = 10;
7679
- var CHAR_CARRIAGE_RETURN = 13;
7680
- var CHAR_SPACE = 32;
7681
- var CHAR_EXCLAMATION = 33;
7682
- var CHAR_DOUBLE_QUOTE = 34;
7683
- var CHAR_SHARP = 35;
7684
- var CHAR_PERCENT = 37;
7685
- var CHAR_AMPERSAND = 38;
7686
- var CHAR_SINGLE_QUOTE = 39;
7687
- var CHAR_ASTERISK = 42;
7688
- var CHAR_COMMA = 44;
7689
- var CHAR_MINUS = 45;
7690
- var CHAR_COLON = 58;
7691
- var CHAR_EQUALS = 61;
7692
- var CHAR_GREATER_THAN = 62;
7693
- var CHAR_QUESTION = 63;
7694
- var CHAR_COMMERCIAL_AT = 64;
7695
- var CHAR_LEFT_SQUARE_BRACKET = 91;
7696
- var CHAR_RIGHT_SQUARE_BRACKET = 93;
7697
- var CHAR_GRAVE_ACCENT = 96;
7698
- var CHAR_LEFT_CURLY_BRACKET = 123;
7699
- var CHAR_VERTICAL_LINE = 124;
7700
- var CHAR_RIGHT_CURLY_BRACKET = 125;
7701
- var ESCAPE_SEQUENCES = {};
7853
+ const common = require_common();
7854
+ const YAMLException = require_exception();
7855
+ const DEFAULT_SCHEMA = require_default();
7856
+ const _toString = Object.prototype.toString;
7857
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
7858
+ const CHAR_BOM = 65279;
7859
+ const CHAR_TAB = 9;
7860
+ const CHAR_LINE_FEED = 10;
7861
+ const CHAR_CARRIAGE_RETURN = 13;
7862
+ const CHAR_SPACE = 32;
7863
+ const CHAR_EXCLAMATION = 33;
7864
+ const CHAR_DOUBLE_QUOTE = 34;
7865
+ const CHAR_SHARP = 35;
7866
+ const CHAR_PERCENT = 37;
7867
+ const CHAR_AMPERSAND = 38;
7868
+ const CHAR_SINGLE_QUOTE = 39;
7869
+ const CHAR_ASTERISK = 42;
7870
+ const CHAR_COMMA = 44;
7871
+ const CHAR_MINUS = 45;
7872
+ const CHAR_COLON = 58;
7873
+ const CHAR_EQUALS = 61;
7874
+ const CHAR_GREATER_THAN = 62;
7875
+ const CHAR_QUESTION = 63;
7876
+ const CHAR_COMMERCIAL_AT = 64;
7877
+ const CHAR_LEFT_SQUARE_BRACKET = 91;
7878
+ const CHAR_RIGHT_SQUARE_BRACKET = 93;
7879
+ const CHAR_GRAVE_ACCENT = 96;
7880
+ const CHAR_LEFT_CURLY_BRACKET = 123;
7881
+ const CHAR_VERTICAL_LINE = 124;
7882
+ const CHAR_RIGHT_CURLY_BRACKET = 125;
7883
+ const ESCAPE_SEQUENCES = {};
7702
7884
  ESCAPE_SEQUENCES[0] = "\\0";
7703
7885
  ESCAPE_SEQUENCES[7] = "\\a";
7704
7886
  ESCAPE_SEQUENCES[8] = "\\b";
@@ -7714,7 +7896,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7714
7896
  ESCAPE_SEQUENCES[160] = "\\_";
7715
7897
  ESCAPE_SEQUENCES[8232] = "\\L";
7716
7898
  ESCAPE_SEQUENCES[8233] = "\\P";
7717
- var DEPRECATED_BOOLEANS_SYNTAX = [
7899
+ const DEPRECATED_BOOLEANS_SYNTAX = [
7718
7900
  "y",
7719
7901
  "Y",
7720
7902
  "yes",
@@ -7732,24 +7914,25 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7732
7914
  "Off",
7733
7915
  "OFF"
7734
7916
  ];
7735
- var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
7917
+ const DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
7736
7918
  function compileStyleMap(schema, map) {
7737
- var result, keys, index, length, tag, style, type;
7738
7919
  if (map === null) return {};
7739
- result = {};
7740
- keys = Object.keys(map);
7741
- for (index = 0, length = keys.length; index < length; index += 1) {
7742
- tag = keys[index];
7743
- style = String(map[tag]);
7920
+ const result = {};
7921
+ const keys = Object.keys(map);
7922
+ for (let index = 0, length = keys.length; index < length; index += 1) {
7923
+ let tag = keys[index];
7924
+ let style = String(map[tag]);
7744
7925
  if (tag.slice(0, 2) === "!!") tag = "tag:yaml.org,2002:" + tag.slice(2);
7745
- type = schema.compiledTypeMap["fallback"][tag];
7926
+ const type = schema.compiledTypeMap["fallback"][tag];
7746
7927
  if (type && _hasOwnProperty.call(type.styleAliases, style)) style = type.styleAliases[style];
7747
7928
  result[tag] = style;
7748
7929
  }
7749
7930
  return result;
7750
7931
  }
7751
7932
  function encodeHex(character) {
7752
- var string = character.toString(16).toUpperCase(), handle, length;
7933
+ let handle;
7934
+ let length;
7935
+ const string = character.toString(16).toUpperCase();
7753
7936
  if (character <= 255) {
7754
7937
  handle = "x";
7755
7938
  length = 2;
@@ -7762,8 +7945,8 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7762
7945
  } else throw new YAMLException("code point within a string may not be greater than 0xFFFFFFFF");
7763
7946
  return "\\" + handle + common.repeat("0", length - string.length) + string;
7764
7947
  }
7765
- var QUOTING_TYPE_SINGLE = 1;
7766
- var QUOTING_TYPE_DOUBLE = 2;
7948
+ const QUOTING_TYPE_SINGLE = 1;
7949
+ const QUOTING_TYPE_DOUBLE = 2;
7767
7950
  function State(options) {
7768
7951
  this.schema = options["schema"] || DEFAULT_SCHEMA;
7769
7952
  this.indent = Math.max(1, options["indent"] || 2);
@@ -7787,9 +7970,13 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7787
7970
  this.usedDuplicates = null;
7788
7971
  }
7789
7972
  function indentString(string, spaces) {
7790
- var ind = common.repeat(" ", spaces), position = 0, next = -1, result = "", line, length = string.length;
7973
+ const ind = common.repeat(" ", spaces);
7974
+ let position = 0;
7975
+ let result = "";
7976
+ const length = string.length;
7791
7977
  while (position < length) {
7792
- next = string.indexOf("\n", position);
7978
+ let line;
7979
+ const next = string.indexOf("\n", position);
7793
7980
  if (next === -1) {
7794
7981
  line = string.slice(position);
7795
7982
  position = length;
@@ -7806,25 +7993,21 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7806
7993
  return "\n" + common.repeat(" ", state.indent * level);
7807
7994
  }
7808
7995
  function testImplicitResolving(state, str) {
7809
- var index, length, type;
7810
- for (index = 0, length = state.implicitTypes.length; index < length; index += 1) {
7811
- type = state.implicitTypes[index];
7812
- if (type.resolve(str)) return true;
7813
- }
7996
+ for (let index = 0, length = state.implicitTypes.length; index < length; index += 1) if (state.implicitTypes[index].resolve(str)) return true;
7814
7997
  return false;
7815
7998
  }
7816
7999
  function isWhitespace(c) {
7817
8000
  return c === CHAR_SPACE || c === CHAR_TAB;
7818
8001
  }
7819
8002
  function isPrintable(c) {
7820
- return 32 <= c && c <= 126 || 161 <= c && c <= 55295 && c !== 8232 && c !== 8233 || 57344 <= c && c <= 65533 && c !== CHAR_BOM || 65536 <= c && c <= 1114111;
8003
+ return c >= 32 && c <= 126 || c >= 161 && c <= 55295 && c !== 8232 && c !== 8233 || c >= 57344 && c <= 65533 && c !== CHAR_BOM || c >= 65536 && c <= 1114111;
7821
8004
  }
7822
8005
  function isNsCharOrWhitespace(c) {
7823
8006
  return isPrintable(c) && c !== CHAR_BOM && c !== CHAR_CARRIAGE_RETURN && c !== CHAR_LINE_FEED;
7824
8007
  }
7825
8008
  function isPlainSafe(c, prev, inblock) {
7826
- var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c);
7827
- var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c);
8009
+ const cIsNsCharOrWhitespace = isNsCharOrWhitespace(c);
8010
+ const cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c);
7828
8011
  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;
7829
8012
  }
7830
8013
  function isPlainSafeFirst(c) {
@@ -7834,7 +8017,8 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7834
8017
  return !isWhitespace(c) && c !== CHAR_COLON;
7835
8018
  }
7836
8019
  function codePointAt(string, pos) {
7837
- var first = string.charCodeAt(pos), second;
8020
+ const first = string.charCodeAt(pos);
8021
+ let second;
7838
8022
  if (first >= 55296 && first <= 56319 && pos + 1 < string.length) {
7839
8023
  second = string.charCodeAt(pos + 1);
7840
8024
  if (second >= 56320 && second <= 57343) return (first - 55296) * 1024 + second - 56320 + 65536;
@@ -7844,20 +8028,20 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7844
8028
  function needIndentIndicator(string) {
7845
8029
  return /^\n* /.test(string);
7846
8030
  }
7847
- var STYLE_PLAIN = 1;
7848
- var STYLE_SINGLE = 2;
7849
- var STYLE_LITERAL = 3;
7850
- var STYLE_FOLDED = 4;
7851
- var STYLE_DOUBLE = 5;
8031
+ const STYLE_PLAIN = 1;
8032
+ const STYLE_SINGLE = 2;
8033
+ const STYLE_LITERAL = 3;
8034
+ const STYLE_FOLDED = 4;
8035
+ const STYLE_DOUBLE = 5;
7852
8036
  function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
7853
- var i;
7854
- var char = 0;
7855
- var prevChar = null;
7856
- var hasLineBreak = false;
7857
- var hasFoldableLine = false;
7858
- var shouldTrackWidth = lineWidth !== -1;
7859
- var previousLineBreak = -1;
7860
- var plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
8037
+ let i;
8038
+ let char = 0;
8039
+ let prevChar = null;
8040
+ let hasLineBreak = false;
8041
+ let hasFoldableLine = false;
8042
+ const shouldTrackWidth = lineWidth !== -1;
8043
+ let previousLineBreak = -1;
8044
+ let plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
7861
8045
  if (singleLineOnly || forceQuotes) for (i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
7862
8046
  char = codePointAt(string, i);
7863
8047
  if (!isPrintable(char)) return STYLE_DOUBLE;
@@ -7893,9 +8077,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7893
8077
  if (!state.noCompatMode) {
7894
8078
  if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) return state.quotingType === QUOTING_TYPE_DOUBLE ? "\"" + string + "\"" : "'" + string + "'";
7895
8079
  }
7896
- var indent = state.indent * Math.max(1, level);
7897
- var lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
7898
- var singleLineOnly = iskey || state.flowLevel > -1 && level >= state.flowLevel;
8080
+ const indent = state.indent * Math.max(1, level);
8081
+ const lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
8082
+ const singleLineOnly = iskey || state.flowLevel > -1 && level >= state.flowLevel;
7899
8083
  function testAmbiguity(string) {
7900
8084
  return testImplicitResolving(state, string);
7901
8085
  }
@@ -7910,26 +8094,27 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7910
8094
  }();
7911
8095
  }
7912
8096
  function blockHeader(string, indentPerLevel) {
7913
- var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
7914
- var clip = string[string.length - 1] === "\n";
8097
+ const indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
8098
+ const clip = string[string.length - 1] === "\n";
7915
8099
  return indentIndicator + (clip && (string[string.length - 2] === "\n" || string === "\n") ? "+" : clip ? "" : "-") + "\n";
7916
8100
  }
7917
8101
  function dropEndingNewline(string) {
7918
8102
  return string[string.length - 1] === "\n" ? string.slice(0, -1) : string;
7919
8103
  }
7920
8104
  function foldString(string, width) {
7921
- var lineRe = /(\n+)([^\n]*)/g;
7922
- var result = function() {
7923
- var nextLF = string.indexOf("\n");
8105
+ const lineRe = /(\n+)([^\n]*)/g;
8106
+ let result = function() {
8107
+ let nextLF = string.indexOf("\n");
7924
8108
  nextLF = nextLF !== -1 ? nextLF : string.length;
7925
8109
  lineRe.lastIndex = nextLF;
7926
8110
  return foldLine(string.slice(0, nextLF), width);
7927
8111
  }();
7928
- var prevMoreIndented = string[0] === "\n" || string[0] === " ";
7929
- var moreIndented;
7930
- var match;
8112
+ let prevMoreIndented = string[0] === "\n" || string[0] === " ";
8113
+ let moreIndented;
8114
+ let match;
7931
8115
  while (match = lineRe.exec(string)) {
7932
- var prefix = match[1], line = match[2];
8116
+ const prefix = match[1];
8117
+ const line = match[2];
7933
8118
  moreIndented = line[0] === " ";
7934
8119
  result += prefix + (!prevMoreIndented && !moreIndented && line !== "" ? "\n" : "") + foldLine(line, width);
7935
8120
  prevMoreIndented = moreIndented;
@@ -7938,10 +8123,13 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7938
8123
  }
7939
8124
  function foldLine(line, width) {
7940
8125
  if (line === "" || line[0] === " ") return line;
7941
- var breakRe = / [^ ]/g;
7942
- var match;
7943
- var start = 0, end, curr = 0, next = 0;
7944
- var result = "";
8126
+ const breakRe = / [^ ]/g;
8127
+ let match;
8128
+ let start = 0;
8129
+ let end;
8130
+ let curr = 0;
8131
+ let next = 0;
8132
+ let result = "";
7945
8133
  while (match = breakRe.exec(line)) {
7946
8134
  next = match.index;
7947
8135
  if (next - start > width) {
@@ -7957,12 +8145,11 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7957
8145
  return result.slice(1);
7958
8146
  }
7959
8147
  function escapeString(string) {
7960
- var result = "";
7961
- var char = 0;
7962
- var escapeSeq;
7963
- for (var i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
8148
+ let result = "";
8149
+ let char = 0;
8150
+ for (let i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
7964
8151
  char = codePointAt(string, i);
7965
- escapeSeq = ESCAPE_SEQUENCES[char];
8152
+ const escapeSeq = ESCAPE_SEQUENCES[char];
7966
8153
  if (!escapeSeq && isPrintable(char)) {
7967
8154
  result += string[i];
7968
8155
  if (char >= 65536) result += string[i + 1];
@@ -7971,9 +8158,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7971
8158
  return result;
7972
8159
  }
7973
8160
  function writeFlowSequence(state, level, object) {
7974
- var _result = "", _tag = state.tag, index, length, value;
7975
- for (index = 0, length = object.length; index < length; index += 1) {
7976
- value = object[index];
8161
+ let _result = "";
8162
+ const _tag = state.tag;
8163
+ for (let index = 0, length = object.length; index < length; index += 1) {
8164
+ let value = object[index];
7977
8165
  if (state.replacer) value = state.replacer.call(object, String(index), value);
7978
8166
  if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) {
7979
8167
  if (_result !== "") _result += "," + (!state.condenseFlow ? " " : "");
@@ -7984,9 +8172,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7984
8172
  state.dump = "[" + _result + "]";
7985
8173
  }
7986
8174
  function writeBlockSequence(state, level, object, compact) {
7987
- var _result = "", _tag = state.tag, index, length, value;
7988
- for (index = 0, length = object.length; index < length; index += 1) {
7989
- value = object[index];
8175
+ let _result = "";
8176
+ const _tag = state.tag;
8177
+ for (let index = 0, length = object.length; index < length; index += 1) {
8178
+ let value = object[index];
7990
8179
  if (state.replacer) value = state.replacer.call(object, String(index), value);
7991
8180
  if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) {
7992
8181
  if (!compact || _result !== "") _result += generateNextLine(state, level);
@@ -7999,13 +8188,15 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7999
8188
  state.dump = _result || "[]";
8000
8189
  }
8001
8190
  function writeFlowMapping(state, level, object) {
8002
- var _result = "", _tag = state.tag, objectKeyList = Object.keys(object), index, length, objectKey, objectValue, pairBuffer;
8003
- for (index = 0, length = objectKeyList.length; index < length; index += 1) {
8004
- pairBuffer = "";
8191
+ let _result = "";
8192
+ const _tag = state.tag;
8193
+ const objectKeyList = Object.keys(object);
8194
+ for (let index = 0, length = objectKeyList.length; index < length; index += 1) {
8195
+ let pairBuffer = "";
8005
8196
  if (_result !== "") pairBuffer += ", ";
8006
8197
  if (state.condenseFlow) pairBuffer += "\"";
8007
- objectKey = objectKeyList[index];
8008
- objectValue = object[objectKey];
8198
+ const objectKey = objectKeyList[index];
8199
+ let objectValue = object[objectKey];
8009
8200
  if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue);
8010
8201
  if (!writeNode(state, level, objectKey, false, false)) continue;
8011
8202
  if (state.dump.length > 1024) pairBuffer += "? ";
@@ -8018,18 +8209,20 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8018
8209
  state.dump = "{" + _result + "}";
8019
8210
  }
8020
8211
  function writeBlockMapping(state, level, object, compact) {
8021
- var _result = "", _tag = state.tag, objectKeyList = Object.keys(object), index, length, objectKey, objectValue, explicitPair, pairBuffer;
8212
+ let _result = "";
8213
+ const _tag = state.tag;
8214
+ const objectKeyList = Object.keys(object);
8022
8215
  if (state.sortKeys === true) objectKeyList.sort();
8023
8216
  else if (typeof state.sortKeys === "function") objectKeyList.sort(state.sortKeys);
8024
8217
  else if (state.sortKeys) throw new YAMLException("sortKeys must be a boolean or a function");
8025
- for (index = 0, length = objectKeyList.length; index < length; index += 1) {
8026
- pairBuffer = "";
8218
+ for (let index = 0, length = objectKeyList.length; index < length; index += 1) {
8219
+ let pairBuffer = "";
8027
8220
  if (!compact || _result !== "") pairBuffer += generateNextLine(state, level);
8028
- objectKey = objectKeyList[index];
8029
- objectValue = object[objectKey];
8221
+ const objectKey = objectKeyList[index];
8222
+ let objectValue = object[objectKey];
8030
8223
  if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue);
8031
8224
  if (!writeNode(state, level + 1, objectKey, true, true, true)) continue;
8032
- explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
8225
+ const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
8033
8226
  if (explicitPair) if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += "?";
8034
8227
  else pairBuffer += "? ";
8035
8228
  pairBuffer += state.dump;
@@ -8044,15 +8237,16 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8044
8237
  state.dump = _result || "{}";
8045
8238
  }
8046
8239
  function detectType(state, object, explicit) {
8047
- var _result, typeList = explicit ? state.explicitTypes : state.implicitTypes, index, length, type, style;
8048
- for (index = 0, length = typeList.length; index < length; index += 1) {
8049
- type = typeList[index];
8240
+ const typeList = explicit ? state.explicitTypes : state.implicitTypes;
8241
+ for (let index = 0, length = typeList.length; index < length; index += 1) {
8242
+ const type = typeList[index];
8050
8243
  if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object === "object" && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
8051
8244
  if (explicit) if (type.multi && type.representName) state.tag = type.representName(object);
8052
8245
  else state.tag = type.tag;
8053
8246
  else state.tag = "?";
8054
8247
  if (type.represent) {
8055
- style = state.styleMap[type.tag] || type.defaultStyle;
8248
+ const style = state.styleMap[type.tag] || type.defaultStyle;
8249
+ let _result;
8056
8250
  if (_toString.call(type.represent) === "[object Function]") _result = type.represent(object, style);
8057
8251
  else if (_hasOwnProperty.call(type.represent, style)) _result = type.represent[style](object, style);
8058
8252
  else throw new YAMLException("!<" + type.tag + "> tag resolver accepts not \"" + style + "\" style");
@@ -8067,11 +8261,12 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8067
8261
  state.tag = null;
8068
8262
  state.dump = object;
8069
8263
  if (!detectType(state, object, false)) detectType(state, object, true);
8070
- var type = _toString.call(state.dump);
8071
- var inblock = block;
8072
- var tagStr;
8264
+ const type = _toString.call(state.dump);
8265
+ const inblock = block;
8073
8266
  if (block) block = state.flowLevel < 0 || state.flowLevel > level;
8074
- var objectOrArray = type === "[object Object]" || type === "[object Array]", duplicateIndex, duplicate;
8267
+ const objectOrArray = type === "[object Object]" || type === "[object Array]";
8268
+ let duplicateIndex;
8269
+ let duplicate;
8075
8270
  if (objectOrArray) {
8076
8271
  duplicateIndex = state.duplicates.indexOf(object);
8077
8272
  duplicate = duplicateIndex !== -1;
@@ -8103,7 +8298,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8103
8298
  throw new YAMLException("unacceptable kind of an object to dump " + type);
8104
8299
  }
8105
8300
  if (state.tag !== null && state.tag !== "?") {
8106
- tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
8301
+ let tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
8107
8302
  if (state.tag[0] === "!") tagStr = "!" + tagStr;
8108
8303
  else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") tagStr = "!!" + tagStr.slice(18);
8109
8304
  else tagStr = "!<" + tagStr + ">";
@@ -8113,32 +8308,33 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8113
8308
  return true;
8114
8309
  }
8115
8310
  function getDuplicateReferences(object, state) {
8116
- var objects = [], duplicatesIndexes = [], index, length;
8311
+ const objects = [];
8312
+ const duplicatesIndexes = [];
8117
8313
  inspectNode(object, objects, duplicatesIndexes);
8118
- for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) state.duplicates.push(objects[duplicatesIndexes[index]]);
8314
+ const length = duplicatesIndexes.length;
8315
+ for (let index = 0; index < length; index += 1) state.duplicates.push(objects[duplicatesIndexes[index]]);
8119
8316
  state.usedDuplicates = new Array(length);
8120
8317
  }
8121
8318
  function inspectNode(object, objects, duplicatesIndexes) {
8122
- var objectKeyList, index, length;
8123
8319
  if (object !== null && typeof object === "object") {
8124
- index = objects.indexOf(object);
8320
+ const index = objects.indexOf(object);
8125
8321
  if (index !== -1) {
8126
8322
  if (duplicatesIndexes.indexOf(index) === -1) duplicatesIndexes.push(index);
8127
8323
  } else {
8128
8324
  objects.push(object);
8129
- if (Array.isArray(object)) for (index = 0, length = object.length; index < length; index += 1) inspectNode(object[index], objects, duplicatesIndexes);
8325
+ if (Array.isArray(object)) for (let i = 0, length = object.length; i < length; i += 1) inspectNode(object[i], objects, duplicatesIndexes);
8130
8326
  else {
8131
- objectKeyList = Object.keys(object);
8132
- for (index = 0, length = objectKeyList.length; index < length; index += 1) inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes);
8327
+ const objectKeyList = Object.keys(object);
8328
+ for (let i = 0, length = objectKeyList.length; i < length; i += 1) inspectNode(object[objectKeyList[i]], objects, duplicatesIndexes);
8133
8329
  }
8134
8330
  }
8135
8331
  }
8136
8332
  }
8137
8333
  function dump(input, options) {
8138
8334
  options = options || {};
8139
- var state = new State(options);
8335
+ const state = new State(options);
8140
8336
  if (!state.noRefs) getDuplicateReferences(input, state);
8141
- var value = input;
8337
+ let value = input;
8142
8338
  if (state.replacer) value = state.replacer.call({ "": value }, "", value);
8143
8339
  if (writeNode(state, 0, value, true, true)) return state.dump + "\n";
8144
8340
  return "";
@@ -8146,10 +8342,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8146
8342
  module.exports.dump = dump;
8147
8343
  }));
8148
8344
  //#endregion
8149
- //#region ../../node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/index.js
8345
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/index.js
8150
8346
  var require_js_yaml = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8151
- var loader = require_loader();
8152
- var dumper = require_dumper();
8347
+ const loader = require_loader();
8348
+ const dumper = require_dumper();
8153
8349
  function renamed(from, to) {
8154
8350
  return function() {
8155
8351
  throw new Error("Function yaml." + from + " is removed in js-yaml 4. Use yaml." + to + " instead, which is now safe by default.");
@@ -9214,7 +9410,7 @@ const range = (a, b, str) => {
9214
9410
  return result;
9215
9411
  };
9216
9412
  //#endregion
9217
- //#region ../../node_modules/.pnpm/brace-expansion@5.0.6/node_modules/brace-expansion/dist/esm/index.js
9413
+ //#region ../../node_modules/.pnpm/brace-expansion@5.0.7/node_modules/brace-expansion/dist/esm/index.js
9218
9414
  const escSlash = "\0SLASH" + Math.random() + "\0";
9219
9415
  const escOpen = "\0OPEN" + Math.random() + "\0";
9220
9416
  const escClose = "\0CLOSE" + Math.random() + "\0";
@@ -9282,15 +9478,18 @@ function gte(i, y) {
9282
9478
  function expand_(str, max, isTop) {
9283
9479
  /** @type {string[]} */
9284
9480
  const expansions = [];
9285
- const m = balanced("{", "}", str);
9286
- if (!m) return [str];
9287
- const pre = m.pre;
9288
- const post = m.post.length ? expand_(m.post, max, false) : [""];
9289
- if (/\$$/.test(m.pre)) for (let k = 0; k < post.length && k < max; k++) {
9290
- const expansion = pre + "{" + m.body + "}" + post[k];
9291
- expansions.push(expansion);
9292
- }
9293
- else {
9481
+ for (;;) {
9482
+ const m = balanced("{", "}", str);
9483
+ if (!m) return [str];
9484
+ const pre = m.pre;
9485
+ if (/\$$/.test(m.pre)) {
9486
+ const post = m.post.length ? expand_(m.post, max, false) : [""];
9487
+ for (let k = 0; k < post.length && k < max; k++) {
9488
+ const expansion = pre + "{" + m.body + "}" + post[k];
9489
+ expansions.push(expansion);
9490
+ }
9491
+ return expansions;
9492
+ }
9294
9493
  const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
9295
9494
  const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
9296
9495
  const isSequence = isNumericSequence || isAlphaSequence;
@@ -9298,10 +9497,12 @@ function expand_(str, max, isTop) {
9298
9497
  if (!isSequence && !isOptions) {
9299
9498
  if (m.post.match(/,(?!,).*\}/)) {
9300
9499
  str = m.pre + "{" + m.body + escClose + m.post;
9301
- return expand_(str, max, true);
9500
+ isTop = true;
9501
+ continue;
9302
9502
  }
9303
9503
  return [str];
9304
9504
  }
9505
+ const post = m.post.length ? expand_(m.post, max, false) : [""];
9305
9506
  let n;
9306
9507
  if (isSequence) n = m.body.split(/\.\./);
9307
9508
  else {
@@ -9351,8 +9552,8 @@ function expand_(str, max, isTop) {
9351
9552
  const expansion = pre + N[j] + post[k];
9352
9553
  if (!isTop || isSequence || expansion) expansions.push(expansion);
9353
9554
  }
9555
+ return expansions;
9354
9556
  }
9355
- return expansions;
9356
9557
  }
9357
9558
  //#endregion
9358
9559
  //#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/assert-valid-pattern.js