@redocly/cli 2.35.1 → 2.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,13 +4,14 @@ import {
4
4
  exitWithError,
5
5
  getExecutionTime,
6
6
  getFallbackApisOrExit
7
- } from "./YQONFFT5.js";
7
+ } from "./4UQ4YHWW.js";
8
8
  import {
9
9
  require_dist
10
- } from "./HQSFIOKV.js";
10
+ } from "./YCTAWG2U.js";
11
11
  import {
12
+ redocStandaloneSri,
12
13
  redocVersion
13
- } from "./FLHMB3O6.js";
14
+ } from "./IVW4MILQ.js";
14
15
  import {
15
16
  require_json_pointer,
16
17
  require_openapi_sampler
@@ -21,7 +22,8 @@ import {
21
22
  require_fast_deep_equal,
22
23
  require_json_schema_traverse,
23
24
  require_pluralize
24
- } from "./RA3UJ5AH.js";
25
+ } from "./CPNIO4J3.js";
26
+ import "./Z2I5YXYN.js";
25
27
  import {
26
28
  __commonJS,
27
29
  __esm,
@@ -23932,19 +23934,18 @@ var require_common = __commonJS({
23932
23934
  return [sequence];
23933
23935
  }
23934
23936
  function extend(target, source) {
23935
- var index, length, key2, sourceKeys;
23936
23937
  if (source) {
23937
- sourceKeys = Object.keys(source);
23938
- for (index = 0, length = sourceKeys.length; index < length; index += 1) {
23939
- key2 = sourceKeys[index];
23938
+ const sourceKeys = Object.keys(source);
23939
+ for (let index = 0, length = sourceKeys.length; index < length; index += 1) {
23940
+ const key2 = sourceKeys[index];
23940
23941
  target[key2] = source[key2];
23941
23942
  }
23942
23943
  }
23943
23944
  return target;
23944
23945
  }
23945
23946
  function repeat(string, count) {
23946
- var result = "", cycle;
23947
- for (cycle = 0; cycle < count; cycle += 1) {
23947
+ let result = "";
23948
+ for (let cycle = 0; cycle < count; cycle += 1) {
23948
23949
  result += string;
23949
23950
  }
23950
23951
  return result;
@@ -23966,7 +23967,8 @@ var require_exception = __commonJS({
23966
23967
  "../../node_modules/js-yaml/lib/exception.js"(exports, module) {
23967
23968
  "use strict";
23968
23969
  function formatError(exception, compact) {
23969
- var where = "", message = exception.reason || "(unknown reason)";
23970
+ let where = "";
23971
+ const message = exception.reason || "(unknown reason)";
23970
23972
  if (!exception.mark) return message;
23971
23973
  if (exception.mark.name) {
23972
23974
  where += 'in "' + exception.mark.name + '" ';
@@ -24004,9 +24006,9 @@ var require_snippet = __commonJS({
24004
24006
  "use strict";
24005
24007
  var common = require_common();
24006
24008
  function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
24007
- var head = "";
24008
- var tail = "";
24009
- var maxHalfLength = Math.floor(maxLineLength / 2) - 1;
24009
+ let head = "";
24010
+ let tail = "";
24011
+ const maxHalfLength = Math.floor(maxLineLength / 2) - 1;
24010
24012
  if (position - lineStart > maxHalfLength) {
24011
24013
  head = " ... ";
24012
24014
  lineStart = position - maxHalfLength + head.length;
@@ -24031,11 +24033,11 @@ var require_snippet = __commonJS({
24031
24033
  if (typeof options.indent !== "number") options.indent = 1;
24032
24034
  if (typeof options.linesBefore !== "number") options.linesBefore = 3;
24033
24035
  if (typeof options.linesAfter !== "number") options.linesAfter = 2;
24034
- var re = /\r?\n|\r|\0/g;
24035
- var lineStarts = [0];
24036
- var lineEnds = [];
24037
- var match;
24038
- var foundLineNo = -1;
24036
+ const re = /\r?\n|\r|\0/g;
24037
+ const lineStarts = [0];
24038
+ const lineEnds = [];
24039
+ let match;
24040
+ let foundLineNo = -1;
24039
24041
  while (match = re.exec(mark.buffer)) {
24040
24042
  lineEnds.push(match.index);
24041
24043
  lineStarts.push(match.index + match[0].length);
@@ -24044,33 +24046,33 @@ var require_snippet = __commonJS({
24044
24046
  }
24045
24047
  }
24046
24048
  if (foundLineNo < 0) foundLineNo = lineStarts.length - 1;
24047
- var result = "", i, line;
24048
- var lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length;
24049
- var maxLineLength = options.maxLength - (options.indent + lineNoLength + 3);
24050
- for (i = 1; i <= options.linesBefore; i++) {
24049
+ let result = "";
24050
+ const lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length;
24051
+ const maxLineLength = options.maxLength - (options.indent + lineNoLength + 3);
24052
+ for (let i = 1; i <= options.linesBefore; i++) {
24051
24053
  if (foundLineNo - i < 0) break;
24052
- line = getLine(
24054
+ const line2 = getLine(
24053
24055
  mark.buffer,
24054
24056
  lineStarts[foundLineNo - i],
24055
24057
  lineEnds[foundLineNo - i],
24056
24058
  mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]),
24057
24059
  maxLineLength
24058
24060
  );
24059
- result = common.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line.str + "\n" + result;
24061
+ result = common.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + "\n" + result;
24060
24062
  }
24061
- line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
24063
+ const line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
24062
24064
  result += common.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + "\n";
24063
24065
  result += common.repeat("-", options.indent + lineNoLength + 3 + line.pos) + "^\n";
24064
- for (i = 1; i <= options.linesAfter; i++) {
24066
+ for (let i = 1; i <= options.linesAfter; i++) {
24065
24067
  if (foundLineNo + i >= lineEnds.length) break;
24066
- line = getLine(
24068
+ const line2 = getLine(
24067
24069
  mark.buffer,
24068
24070
  lineStarts[foundLineNo + i],
24069
24071
  lineEnds[foundLineNo + i],
24070
24072
  mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]),
24071
24073
  maxLineLength
24072
24074
  );
24073
- result += common.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line.str + "\n";
24075
+ result += common.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + "\n";
24074
24076
  }
24075
24077
  return result.replace(/\n$/, "");
24076
24078
  }
@@ -24101,7 +24103,7 @@ var require_type = __commonJS({
24101
24103
  "mapping"
24102
24104
  ];
24103
24105
  function compileStyleAliases(map) {
24104
- var result = {};
24106
+ const result = {};
24105
24107
  if (map !== null) {
24106
24108
  Object.keys(map).forEach(function(style) {
24107
24109
  map[style].forEach(function(alias) {
@@ -24149,9 +24151,9 @@ var require_schema4 = __commonJS({
24149
24151
  var YAMLException = require_exception();
24150
24152
  var Type = require_type();
24151
24153
  function compileList(schema, name) {
24152
- var result = [];
24154
+ const result = [];
24153
24155
  schema[name].forEach(function(currentType) {
24154
- var newIndex = result.length;
24156
+ let newIndex = result.length;
24155
24157
  result.forEach(function(previousType, previousIndex) {
24156
24158
  if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) {
24157
24159
  newIndex = previousIndex;
@@ -24162,7 +24164,7 @@ var require_schema4 = __commonJS({
24162
24164
  return result;
24163
24165
  }
24164
24166
  function compileMap() {
24165
- var result = {
24167
+ const result = {
24166
24168
  scalar: {},
24167
24169
  sequence: {},
24168
24170
  mapping: {},
@@ -24173,7 +24175,7 @@ var require_schema4 = __commonJS({
24173
24175
  mapping: [],
24174
24176
  fallback: []
24175
24177
  }
24176
- }, index, length;
24178
+ };
24177
24179
  function collectType(type) {
24178
24180
  if (type.multi) {
24179
24181
  result.multi[type.kind].push(type);
@@ -24182,7 +24184,7 @@ var require_schema4 = __commonJS({
24182
24184
  result[type.kind][type.tag] = result["fallback"][type.tag] = type;
24183
24185
  }
24184
24186
  }
24185
- for (index = 0, length = arguments.length; index < length; index += 1) {
24187
+ for (let index = 0, length = arguments.length; index < length; index += 1) {
24186
24188
  arguments[index].forEach(collectType);
24187
24189
  }
24188
24190
  return result;
@@ -24191,8 +24193,8 @@ var require_schema4 = __commonJS({
24191
24193
  return this.extend(definition);
24192
24194
  }
24193
24195
  Schema.prototype.extend = function extend(definition) {
24194
- var implicit = [];
24195
- var explicit = [];
24196
+ let implicit = [];
24197
+ let explicit = [];
24196
24198
  if (definition instanceof Type) {
24197
24199
  explicit.push(definition);
24198
24200
  } else if (Array.isArray(definition)) {
@@ -24219,7 +24221,7 @@ var require_schema4 = __commonJS({
24219
24221
  throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
24220
24222
  }
24221
24223
  });
24222
- var result = Object.create(Schema.prototype);
24224
+ const result = Object.create(Schema.prototype);
24223
24225
  result.implicit = (this.implicit || []).concat(implicit);
24224
24226
  result.explicit = (this.explicit || []).concat(explicit);
24225
24227
  result.compiledImplicit = compileList(result, "implicit");
@@ -24295,7 +24297,7 @@ var require_null2 = __commonJS({
24295
24297
  var Type = require_type();
24296
24298
  function resolveYamlNull(data) {
24297
24299
  if (data === null) return true;
24298
- var max = data.length;
24300
+ const max = data.length;
24299
24301
  return max === 1 && data === "~" || max === 4 && (data === "null" || data === "Null" || data === "NULL");
24300
24302
  }
24301
24303
  function constructYamlNull() {
@@ -24338,7 +24340,7 @@ var require_bool3 = __commonJS({
24338
24340
  var Type = require_type();
24339
24341
  function resolveYamlBoolean(data) {
24340
24342
  if (data === null) return false;
24341
- var max = data.length;
24343
+ const max = data.length;
24342
24344
  return max === 4 && (data === "true" || data === "True" || data === "TRUE") || max === 5 && (data === "false" || data === "False" || data === "FALSE");
24343
24345
  }
24344
24346
  function constructYamlBoolean(data) {
@@ -24375,19 +24377,21 @@ var require_int3 = __commonJS({
24375
24377
  var common = require_common();
24376
24378
  var Type = require_type();
24377
24379
  function isHexCode(c) {
24378
- return 48 <= c && c <= 57 || 65 <= c && c <= 70 || 97 <= c && c <= 102;
24380
+ return c >= 48 && c <= 57 || c >= 65 && c <= 70 || c >= 97 && c <= 102;
24379
24381
  }
24380
24382
  function isOctCode(c) {
24381
- return 48 <= c && c <= 55;
24383
+ return c >= 48 && c <= 55;
24382
24384
  }
24383
24385
  function isDecCode(c) {
24384
- return 48 <= c && c <= 57;
24386
+ return c >= 48 && c <= 57;
24385
24387
  }
24386
24388
  function resolveYamlInteger(data) {
24387
24389
  if (data === null) return false;
24388
- var max = data.length, index = 0, hasDigits = false, ch;
24390
+ const max = data.length;
24391
+ let index = 0;
24392
+ let hasDigits = false;
24389
24393
  if (!max) return false;
24390
- ch = data[index];
24394
+ let ch = data[index];
24391
24395
  if (ch === "-" || ch === "+") {
24392
24396
  ch = data[++index];
24393
24397
  }
@@ -24398,51 +24402,41 @@ var require_int3 = __commonJS({
24398
24402
  index++;
24399
24403
  for (; index < max; index++) {
24400
24404
  ch = data[index];
24401
- if (ch === "_") continue;
24402
24405
  if (ch !== "0" && ch !== "1") return false;
24403
24406
  hasDigits = true;
24404
24407
  }
24405
- return hasDigits && ch !== "_";
24408
+ return hasDigits && Number.isFinite(parseYamlInteger(data));
24406
24409
  }
24407
24410
  if (ch === "x") {
24408
24411
  index++;
24409
24412
  for (; index < max; index++) {
24410
- ch = data[index];
24411
- if (ch === "_") continue;
24412
24413
  if (!isHexCode(data.charCodeAt(index))) return false;
24413
24414
  hasDigits = true;
24414
24415
  }
24415
- return hasDigits && ch !== "_";
24416
+ return hasDigits && Number.isFinite(parseYamlInteger(data));
24416
24417
  }
24417
24418
  if (ch === "o") {
24418
24419
  index++;
24419
24420
  for (; index < max; index++) {
24420
- ch = data[index];
24421
- if (ch === "_") continue;
24422
24421
  if (!isOctCode(data.charCodeAt(index))) return false;
24423
24422
  hasDigits = true;
24424
24423
  }
24425
- return hasDigits && ch !== "_";
24424
+ return hasDigits && Number.isFinite(parseYamlInteger(data));
24426
24425
  }
24427
24426
  }
24428
- if (ch === "_") return false;
24429
24427
  for (; index < max; index++) {
24430
- ch = data[index];
24431
- if (ch === "_") continue;
24432
24428
  if (!isDecCode(data.charCodeAt(index))) {
24433
24429
  return false;
24434
24430
  }
24435
24431
  hasDigits = true;
24436
24432
  }
24437
- if (!hasDigits || ch === "_") return false;
24438
- return true;
24433
+ if (!hasDigits) return false;
24434
+ return Number.isFinite(parseYamlInteger(data));
24439
24435
  }
24440
- function constructYamlInteger(data) {
24441
- var value = data, sign = 1, ch;
24442
- if (value.indexOf("_") !== -1) {
24443
- value = value.replace(/_/g, "");
24444
- }
24445
- ch = value[0];
24436
+ function parseYamlInteger(data) {
24437
+ let value = data;
24438
+ let sign = 1;
24439
+ let ch = value[0];
24446
24440
  if (ch === "-" || ch === "+") {
24447
24441
  if (ch === "-") sign = -1;
24448
24442
  value = value.slice(1);
@@ -24456,6 +24450,9 @@ var require_int3 = __commonJS({
24456
24450
  }
24457
24451
  return sign * parseInt(value, 10);
24458
24452
  }
24453
+ function constructYamlInteger(data) {
24454
+ return parseYamlInteger(data);
24455
+ }
24459
24456
  function isInteger(object) {
24460
24457
  return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 === 0 && !common.isNegativeZero(object));
24461
24458
  }
@@ -24474,7 +24471,6 @@ var require_int3 = __commonJS({
24474
24471
  decimal: function(obj) {
24475
24472
  return obj.toString(10);
24476
24473
  },
24477
- /* eslint-disable max-len */
24478
24474
  hexadecimal: function(obj) {
24479
24475
  return obj >= 0 ? "0x" + obj.toString(16).toUpperCase() : "-0x" + obj.toString(16).toUpperCase().slice(1);
24480
24476
  }
@@ -24498,21 +24494,24 @@ var require_float3 = __commonJS({
24498
24494
  var Type = require_type();
24499
24495
  var YAML_FLOAT_PATTERN = new RegExp(
24500
24496
  // 2.5e4, 2.5 and integers
24501
- "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
24497
+ "^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
24498
+ );
24499
+ var YAML_FLOAT_SPECIAL_PATTERN = new RegExp(
24500
+ "^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
24502
24501
  );
24503
24502
  function resolveYamlFloat(data) {
24504
24503
  if (data === null) return false;
24505
- if (!YAML_FLOAT_PATTERN.test(data) || // Quick hack to not allow integers end with `_`
24506
- // Probably should update regexp & check speed
24507
- data[data.length - 1] === "_") {
24504
+ if (!YAML_FLOAT_PATTERN.test(data)) {
24508
24505
  return false;
24509
24506
  }
24510
- return true;
24507
+ if (Number.isFinite(parseFloat(data, 10))) {
24508
+ return true;
24509
+ }
24510
+ return YAML_FLOAT_SPECIAL_PATTERN.test(data);
24511
24511
  }
24512
24512
  function constructYamlFloat(data) {
24513
- var value, sign;
24514
- value = data.replace(/_/g, "").toLowerCase();
24515
- sign = value[0] === "-" ? -1 : 1;
24513
+ let value = data.toLowerCase();
24514
+ const sign = value[0] === "-" ? -1 : 1;
24516
24515
  if ("+-".indexOf(value[0]) >= 0) {
24517
24516
  value = value.slice(1);
24518
24517
  }
@@ -24525,7 +24524,6 @@ var require_float3 = __commonJS({
24525
24524
  }
24526
24525
  var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
24527
24526
  function representYamlFloat(object, style) {
24528
- var res;
24529
24527
  if (isNaN(object)) {
24530
24528
  switch (style) {
24531
24529
  case "lowercase":
@@ -24556,7 +24554,7 @@ var require_float3 = __commonJS({
24556
24554
  } else if (common.isNegativeZero(object)) {
24557
24555
  return "-0.0";
24558
24556
  }
24559
- res = object.toString(10);
24557
+ const res = object.toString(10);
24560
24558
  return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
24561
24559
  }
24562
24560
  function isFloat(object) {
@@ -24614,19 +24612,20 @@ var require_timestamp2 = __commonJS({
24614
24612
  return false;
24615
24613
  }
24616
24614
  function constructYamlTimestamp(data) {
24617
- var match, year, month, day, hour, minute, second, fraction = 0, delta = null, tz_hour, tz_minute, date;
24618
- match = YAML_DATE_REGEXP.exec(data);
24615
+ let fraction = 0;
24616
+ let delta = null;
24617
+ let match = YAML_DATE_REGEXP.exec(data);
24619
24618
  if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data);
24620
24619
  if (match === null) throw new Error("Date resolve error");
24621
- year = +match[1];
24622
- month = +match[2] - 1;
24623
- day = +match[3];
24620
+ const year = +match[1];
24621
+ const month = +match[2] - 1;
24622
+ const day = +match[3];
24624
24623
  if (!match[4]) {
24625
24624
  return new Date(Date.UTC(year, month, day));
24626
24625
  }
24627
- hour = +match[4];
24628
- minute = +match[5];
24629
- second = +match[6];
24626
+ const hour = +match[4];
24627
+ const minute = +match[5];
24628
+ const second = +match[6];
24630
24629
  if (match[7]) {
24631
24630
  fraction = match[7].slice(0, 3);
24632
24631
  while (fraction.length < 3) {
@@ -24635,12 +24634,12 @@ var require_timestamp2 = __commonJS({
24635
24634
  fraction = +fraction;
24636
24635
  }
24637
24636
  if (match[9]) {
24638
- tz_hour = +match[10];
24639
- tz_minute = +(match[11] || 0);
24640
- delta = (tz_hour * 60 + tz_minute) * 6e4;
24637
+ const tzHour = +match[10];
24638
+ const tzMinute = +(match[11] || 0);
24639
+ delta = (tzHour * 60 + tzMinute) * 6e4;
24641
24640
  if (match[9] === "-") delta = -delta;
24642
24641
  }
24643
- date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
24642
+ const date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
24644
24643
  if (delta) date.setTime(date.getTime() - delta);
24645
24644
  return date;
24646
24645
  }
@@ -24680,9 +24679,11 @@ var require_binary2 = __commonJS({
24680
24679
  var BASE64_MAP = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
24681
24680
  function resolveYamlBinary(data) {
24682
24681
  if (data === null) return false;
24683
- var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP;
24684
- for (idx = 0; idx < max; idx++) {
24685
- code = map.indexOf(data.charAt(idx));
24682
+ let bitlen = 0;
24683
+ const max = data.length;
24684
+ const map = BASE64_MAP;
24685
+ for (let idx = 0; idx < max; idx++) {
24686
+ const code = map.indexOf(data.charAt(idx));
24686
24687
  if (code > 64) continue;
24687
24688
  if (code < 0) return false;
24688
24689
  bitlen += 6;
@@ -24690,8 +24691,12 @@ var require_binary2 = __commonJS({
24690
24691
  return bitlen % 8 === 0;
24691
24692
  }
24692
24693
  function constructYamlBinary(data) {
24693
- var idx, tailbits, input = data.replace(/[\r\n=]/g, ""), max = input.length, map = BASE64_MAP, bits = 0, result = [];
24694
- for (idx = 0; idx < max; idx++) {
24694
+ const input = data.replace(/[\r\n=]/g, "");
24695
+ const max = input.length;
24696
+ const map = BASE64_MAP;
24697
+ let bits = 0;
24698
+ const result = [];
24699
+ for (let idx = 0; idx < max; idx++) {
24695
24700
  if (idx % 4 === 0 && idx) {
24696
24701
  result.push(bits >> 16 & 255);
24697
24702
  result.push(bits >> 8 & 255);
@@ -24699,7 +24704,7 @@ var require_binary2 = __commonJS({
24699
24704
  }
24700
24705
  bits = bits << 6 | map.indexOf(input.charAt(idx));
24701
24706
  }
24702
- tailbits = max % 4 * 6;
24707
+ const tailbits = max % 4 * 6;
24703
24708
  if (tailbits === 0) {
24704
24709
  result.push(bits >> 16 & 255);
24705
24710
  result.push(bits >> 8 & 255);
@@ -24713,8 +24718,11 @@ var require_binary2 = __commonJS({
24713
24718
  return new Uint8Array(result);
24714
24719
  }
24715
24720
  function representYamlBinary(object) {
24716
- var result = "", bits = 0, idx, tail, max = object.length, map = BASE64_MAP;
24717
- for (idx = 0; idx < max; idx++) {
24721
+ let result = "";
24722
+ let bits = 0;
24723
+ const max = object.length;
24724
+ const map = BASE64_MAP;
24725
+ for (let idx = 0; idx < max; idx++) {
24718
24726
  if (idx % 3 === 0 && idx) {
24719
24727
  result += map[bits >> 18 & 63];
24720
24728
  result += map[bits >> 12 & 63];
@@ -24723,7 +24731,7 @@ var require_binary2 = __commonJS({
24723
24731
  }
24724
24732
  bits = (bits << 8) + object[idx];
24725
24733
  }
24726
- tail = max % 3;
24734
+ const tail = max % 3;
24727
24735
  if (tail === 0) {
24728
24736
  result += map[bits >> 18 & 63];
24729
24737
  result += map[bits >> 12 & 63];
@@ -24764,11 +24772,13 @@ var require_omap2 = __commonJS({
24764
24772
  var _toString = Object.prototype.toString;
24765
24773
  function resolveYamlOmap(data) {
24766
24774
  if (data === null) return true;
24767
- var objectKeys = [], index, length, pair, pairKey, pairHasKey, object = data;
24768
- for (index = 0, length = object.length; index < length; index += 1) {
24769
- pair = object[index];
24770
- pairHasKey = false;
24775
+ const objectKeys = [];
24776
+ const object = data;
24777
+ for (let index = 0, length = object.length; index < length; index += 1) {
24778
+ const pair = object[index];
24779
+ let pairHasKey = false;
24771
24780
  if (_toString.call(pair) !== "[object Object]") return false;
24781
+ let pairKey;
24772
24782
  for (pairKey in pair) {
24773
24783
  if (_hasOwnProperty.call(pair, pairKey)) {
24774
24784
  if (!pairHasKey) pairHasKey = true;
@@ -24800,12 +24810,12 @@ var require_pairs2 = __commonJS({
24800
24810
  var _toString = Object.prototype.toString;
24801
24811
  function resolveYamlPairs(data) {
24802
24812
  if (data === null) return true;
24803
- var index, length, pair, keys, result, object = data;
24804
- result = new Array(object.length);
24805
- for (index = 0, length = object.length; index < length; index += 1) {
24806
- pair = object[index];
24813
+ const object = data;
24814
+ const result = new Array(object.length);
24815
+ for (let index = 0, length = object.length; index < length; index += 1) {
24816
+ const pair = object[index];
24807
24817
  if (_toString.call(pair) !== "[object Object]") return false;
24808
- keys = Object.keys(pair);
24818
+ const keys = Object.keys(pair);
24809
24819
  if (keys.length !== 1) return false;
24810
24820
  result[index] = [keys[0], pair[keys[0]]];
24811
24821
  }
@@ -24813,11 +24823,11 @@ var require_pairs2 = __commonJS({
24813
24823
  }
24814
24824
  function constructYamlPairs(data) {
24815
24825
  if (data === null) return [];
24816
- var index, length, pair, keys, result, object = data;
24817
- result = new Array(object.length);
24818
- for (index = 0, length = object.length; index < length; index += 1) {
24819
- pair = object[index];
24820
- keys = Object.keys(pair);
24826
+ const object = data;
24827
+ const result = new Array(object.length);
24828
+ for (let index = 0, length = object.length; index < length; index += 1) {
24829
+ const pair = object[index];
24830
+ const keys = Object.keys(pair);
24821
24831
  result[index] = [keys[0], pair[keys[0]]];
24822
24832
  }
24823
24833
  return result;
@@ -24838,8 +24848,8 @@ var require_set2 = __commonJS({
24838
24848
  var _hasOwnProperty = Object.prototype.hasOwnProperty;
24839
24849
  function resolveYamlSet(data) {
24840
24850
  if (data === null) return true;
24841
- var key2, object = data;
24842
- for (key2 in object) {
24851
+ const object = data;
24852
+ for (const key2 in object) {
24843
24853
  if (_hasOwnProperty.call(object, key2)) {
24844
24854
  if (object[key2] !== null) return false;
24845
24855
  }
@@ -24894,31 +24904,30 @@ var require_loader = __commonJS({
24894
24904
  var CHOMPING_KEEP = 3;
24895
24905
  var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
24896
24906
  var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
24897
- var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/;
24898
- var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i;
24899
- var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
24907
+ var PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
24908
+ var PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
24909
+ var PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
24900
24910
  function _class(obj) {
24901
24911
  return Object.prototype.toString.call(obj);
24902
24912
  }
24903
- function is_EOL(c) {
24913
+ function isEol(c) {
24904
24914
  return c === 10 || c === 13;
24905
24915
  }
24906
- function is_WHITE_SPACE(c) {
24916
+ function isWhiteSpace(c) {
24907
24917
  return c === 9 || c === 32;
24908
24918
  }
24909
- function is_WS_OR_EOL(c) {
24919
+ function isWsOrEol(c) {
24910
24920
  return c === 9 || c === 32 || c === 10 || c === 13;
24911
24921
  }
24912
- function is_FLOW_INDICATOR(c) {
24922
+ function isFlowIndicator(c) {
24913
24923
  return c === 44 || c === 91 || c === 93 || c === 123 || c === 125;
24914
24924
  }
24915
24925
  function fromHexCode(c) {
24916
- var lc;
24917
- if (48 <= c && c <= 57) {
24926
+ if (c >= 48 && c <= 57) {
24918
24927
  return c - 48;
24919
24928
  }
24920
- lc = c | 32;
24921
- if (97 <= lc && lc <= 102) {
24929
+ const lc = c | 32;
24930
+ if (lc >= 97 && lc <= 102) {
24922
24931
  return lc - 97 + 10;
24923
24932
  }
24924
24933
  return -1;
@@ -24936,13 +24945,52 @@ var require_loader = __commonJS({
24936
24945
  return 0;
24937
24946
  }
24938
24947
  function fromDecimalCode(c) {
24939
- if (48 <= c && c <= 57) {
24948
+ if (c >= 48 && c <= 57) {
24940
24949
  return c - 48;
24941
24950
  }
24942
24951
  return -1;
24943
24952
  }
24944
24953
  function simpleEscapeSequence(c) {
24945
- 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 ? "\x85" : c === 95 ? "\xA0" : c === 76 ? "\u2028" : c === 80 ? "\u2029" : "";
24954
+ switch (c) {
24955
+ case 48:
24956
+ return "\0";
24957
+ case 97:
24958
+ return "\x07";
24959
+ case 98:
24960
+ return "\b";
24961
+ case 116:
24962
+ return " ";
24963
+ case 9:
24964
+ return " ";
24965
+ case 110:
24966
+ return "\n";
24967
+ case 118:
24968
+ return "\v";
24969
+ case 102:
24970
+ return "\f";
24971
+ case 114:
24972
+ return "\r";
24973
+ case 101:
24974
+ return "\x1B";
24975
+ case 32:
24976
+ return " ";
24977
+ case 34:
24978
+ return '"';
24979
+ case 47:
24980
+ return "/";
24981
+ case 92:
24982
+ return "\\";
24983
+ case 78:
24984
+ return "\x85";
24985
+ case 95:
24986
+ return "\xA0";
24987
+ case 76:
24988
+ return "\u2028";
24989
+ case 80:
24990
+ return "\u2029";
24991
+ default:
24992
+ return "";
24993
+ }
24946
24994
  }
24947
24995
  function charFromCodepoint(c) {
24948
24996
  if (c <= 65535) {
@@ -24967,11 +25015,10 @@ var require_loader = __commonJS({
24967
25015
  }
24968
25016
  var simpleEscapeCheck = new Array(256);
24969
25017
  var simpleEscapeMap = new Array(256);
24970
- for (i = 0; i < 256; i++) {
25018
+ for (let i = 0; i < 256; i++) {
24971
25019
  simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
24972
25020
  simpleEscapeMap[i] = simpleEscapeSequence(i);
24973
25021
  }
24974
- var i;
24975
25022
  function State(input, options) {
24976
25023
  this.input = input;
24977
25024
  this.filename = options["filename"] || null;
@@ -24980,6 +25027,8 @@ var require_loader = __commonJS({
24980
25027
  this.legacy = options["legacy"] || false;
24981
25028
  this.json = options["json"] || false;
24982
25029
  this.listener = options["listener"] || null;
25030
+ this.maxDepth = typeof options["maxDepth"] === "number" ? options["maxDepth"] : 100;
25031
+ this.maxMergeSeqLength = typeof options["maxMergeSeqLength"] === "number" ? options["maxMergeSeqLength"] : 20;
24983
25032
  this.implicitTypes = this.schema.compiledImplicit;
24984
25033
  this.typeMap = this.schema.compiledTypeMap;
24985
25034
  this.length = input.length;
@@ -24987,11 +25036,13 @@ var require_loader = __commonJS({
24987
25036
  this.line = 0;
24988
25037
  this.lineStart = 0;
24989
25038
  this.lineIndent = 0;
25039
+ this.depth = 0;
24990
25040
  this.firstTabInLine = -1;
24991
25041
  this.documents = [];
25042
+ this.anchorMapTransactions = [];
24992
25043
  }
24993
25044
  function generateError(state, message) {
24994
- var mark = {
25045
+ const mark = {
24995
25046
  name: state.filename,
24996
25047
  buffer: state.input.slice(0, -1),
24997
25048
  // omit trailing \0
@@ -25010,21 +25061,85 @@ var require_loader = __commonJS({
25010
25061
  state.onWarning.call(null, generateError(state, message));
25011
25062
  }
25012
25063
  }
25064
+ function storeAnchor(state, name, value) {
25065
+ const transactions = state.anchorMapTransactions;
25066
+ if (transactions.length !== 0) {
25067
+ const transaction = transactions[transactions.length - 1];
25068
+ if (!_hasOwnProperty.call(transaction, name)) {
25069
+ transaction[name] = {
25070
+ existed: _hasOwnProperty.call(state.anchorMap, name),
25071
+ value: state.anchorMap[name]
25072
+ };
25073
+ }
25074
+ }
25075
+ state.anchorMap[name] = value;
25076
+ }
25077
+ function beginAnchorTransaction(state) {
25078
+ state.anchorMapTransactions.push(/* @__PURE__ */ Object.create(null));
25079
+ }
25080
+ function commitAnchorTransaction(state) {
25081
+ const transaction = state.anchorMapTransactions.pop();
25082
+ const transactions = state.anchorMapTransactions;
25083
+ if (transactions.length === 0) return;
25084
+ const parent = transactions[transactions.length - 1];
25085
+ const names = Object.keys(transaction);
25086
+ for (let index = 0, length = names.length; index < length; index += 1) {
25087
+ const name = names[index];
25088
+ if (!_hasOwnProperty.call(parent, name)) {
25089
+ parent[name] = transaction[name];
25090
+ }
25091
+ }
25092
+ }
25093
+ function rollbackAnchorTransaction(state) {
25094
+ const transaction = state.anchorMapTransactions.pop();
25095
+ const names = Object.keys(transaction);
25096
+ for (let index = names.length - 1; index >= 0; index -= 1) {
25097
+ const entry = transaction[names[index]];
25098
+ if (entry.existed) {
25099
+ state.anchorMap[names[index]] = entry.value;
25100
+ } else {
25101
+ delete state.anchorMap[names[index]];
25102
+ }
25103
+ }
25104
+ }
25105
+ function snapshotState(state) {
25106
+ return {
25107
+ position: state.position,
25108
+ line: state.line,
25109
+ lineStart: state.lineStart,
25110
+ lineIndent: state.lineIndent,
25111
+ firstTabInLine: state.firstTabInLine,
25112
+ tag: state.tag,
25113
+ anchor: state.anchor,
25114
+ kind: state.kind,
25115
+ result: state.result
25116
+ };
25117
+ }
25118
+ function restoreState(state, snapshot) {
25119
+ state.position = snapshot.position;
25120
+ state.line = snapshot.line;
25121
+ state.lineStart = snapshot.lineStart;
25122
+ state.lineIndent = snapshot.lineIndent;
25123
+ state.firstTabInLine = snapshot.firstTabInLine;
25124
+ state.tag = snapshot.tag;
25125
+ state.anchor = snapshot.anchor;
25126
+ state.kind = snapshot.kind;
25127
+ state.result = snapshot.result;
25128
+ }
25013
25129
  var directiveHandlers = {
25014
25130
  YAML: function handleYamlDirective(state, name, args) {
25015
- var match, major, minor;
25016
25131
  if (state.version !== null) {
25017
25132
  throwError(state, "duplication of %YAML directive");
25018
25133
  }
25019
25134
  if (args.length !== 1) {
25020
25135
  throwError(state, "YAML directive accepts exactly one argument");
25021
25136
  }
25022
- match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
25137
+ const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
25023
25138
  if (match === null) {
25024
25139
  throwError(state, "ill-formed argument of the YAML directive");
25025
25140
  }
25026
- major = parseInt(match[1], 10);
25027
- minor = parseInt(match[2], 10);
25141
+ const major = parseInt(match[1], 10);
25142
+ const minor = parseInt(match[2], 10);
25028
25143
  if (major !== 1) {
25029
25144
  throwError(state, "unacceptable YAML version of the document");
25030
25145
  }
@@ -25035,11 +25150,11 @@ var require_loader = __commonJS({
25035
25150
  }
25036
25151
  },
25037
25152
  TAG: function handleTagDirective(state, name, args) {
25038
- var handle, prefix;
25153
+ let prefix;
25039
25154
  if (args.length !== 2) {
25040
25155
  throwError(state, "TAG directive accepts exactly two arguments");
25041
25156
  }
25042
- handle = args[0];
25157
+ const handle = args[0];
25043
25158
  prefix = args[1];
25044
25159
  if (!PATTERN_TAG_HANDLE.test(handle)) {
25045
25160
  throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
@@ -25059,13 +25174,12 @@ var require_loader = __commonJS({
25059
25174
  }
25060
25175
  };
25061
25176
  function captureSegment(state, start, end, checkJson) {
25062
- var _position, _length, _character, _result;
25063
25177
  if (start < end) {
25064
- _result = state.input.slice(start, end);
25178
+ const _result = state.input.slice(start, end);
25065
25179
  if (checkJson) {
25066
- for (_position = 0, _length = _result.length; _position < _length; _position += 1) {
25067
- _character = _result.charCodeAt(_position);
25068
- if (!(_character === 9 || 32 <= _character && _character <= 1114111)) {
25180
+ for (let _position = 0, _length = _result.length; _position < _length; _position += 1) {
25181
+ const _character = _result.charCodeAt(_position);
25182
+ if (!(_character === 9 || _character >= 32 && _character <= 1114111)) {
25069
25183
  throwError(state, "expected valid JSON character");
25070
25184
  }
25071
25185
  }
@@ -25076,13 +25190,12 @@ var require_loader = __commonJS({
25076
25190
  }
25077
25191
  }
25078
25192
  function mergeMappings(state, destination, source, overridableKeys) {
25079
- var sourceKeys, key2, index, quantity;
25080
25193
  if (!common.isObject(source)) {
25081
25194
  throwError(state, "cannot merge mappings; the provided source object is unacceptable");
25082
25195
  }
25083
- sourceKeys = Object.keys(source);
25084
- for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
25085
- key2 = sourceKeys[index];
25196
+ const sourceKeys = Object.keys(source);
25197
+ for (let index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
25198
+ const key2 = sourceKeys[index];
25086
25199
  if (!_hasOwnProperty.call(destination, key2)) {
25087
25200
  setProperty(destination, key2, source[key2]);
25088
25201
  overridableKeys[key2] = true;
@@ -25090,10 +25203,9 @@ var require_loader = __commonJS({
25090
25203
  }
25091
25204
  }
25092
25205
  function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, startLine, startLineStart, startPos) {
25093
- var index, quantity;
25094
25206
  if (Array.isArray(keyNode)) {
25095
25207
  keyNode = Array.prototype.slice.call(keyNode);
25096
- for (index = 0, quantity = keyNode.length; index < quantity; index += 1) {
25208
+ for (let index = 0, quantity = keyNode.length; index < quantity; index += 1) {
25097
25209
  if (Array.isArray(keyNode[index])) {
25098
25210
  throwError(state, "nested arrays are not supported inside keys");
25099
25211
  }
@@ -25111,8 +25223,15 @@ var require_loader = __commonJS({
25111
25223
  }
25112
25224
  if (keyTag === "tag:yaml.org,2002:merge") {
25113
25225
  if (Array.isArray(valueNode)) {
25114
- for (index = 0, quantity = valueNode.length; index < quantity; index += 1) {
25115
- mergeMappings(state, _result, valueNode[index], overridableKeys);
25226
+ if (valueNode.length > state.maxMergeSeqLength) {
25227
+ throwError(state, "merge sequence length exceeded maxMergeSeqLength (" + state.maxMergeSeqLength + ")");
25228
+ }
25229
+ const seen = /* @__PURE__ */ new Set();
25230
+ for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) {
25231
+ const src = valueNode[index];
25232
+ if (seen.has(src)) continue;
25233
+ seen.add(src);
25234
+ mergeMappings(state, _result, src, overridableKeys);
25116
25235
  }
25117
25236
  } else {
25118
25237
  mergeMappings(state, _result, valueNode, overridableKeys);
@@ -25130,8 +25249,7 @@ var require_loader = __commonJS({
25130
25249
  return _result;
25131
25250
  }
25132
25251
  function readLineBreak(state) {
25133
- var ch;
25134
- ch = state.input.charCodeAt(state.position);
25252
+ const ch = state.input.charCodeAt(state.position);
25135
25253
  if (ch === 10) {
25136
25254
  state.position++;
25137
25255
  } else if (ch === 13) {
@@ -25147,9 +25265,10 @@ var require_loader = __commonJS({
25147
25265
  state.firstTabInLine = -1;
25148
25266
  }
25149
25267
  function skipSeparationSpace(state, allowComments, checkIndent) {
25150
- var lineBreaks = 0, ch = state.input.charCodeAt(state.position);
25268
+ let lineBreaks = 0;
25269
+ let ch = state.input.charCodeAt(state.position);
25151
25270
  while (ch !== 0) {
25152
- while (is_WHITE_SPACE(ch)) {
25271
+ while (isWhiteSpace(ch)) {
25153
25272
  if (ch === 9 && state.firstTabInLine === -1) {
25154
25273
  state.firstTabInLine = state.position;
25155
25274
  }
@@ -25160,7 +25279,7 @@ var require_loader = __commonJS({
25160
25279
  ch = state.input.charCodeAt(++state.position);
25161
25280
  } while (ch !== 10 && ch !== 13 && ch !== 0);
25162
25281
  }
25163
- if (is_EOL(ch)) {
25282
+ if (isEol(ch)) {
25164
25283
  readLineBreak(state);
25165
25284
  ch = state.input.charCodeAt(state.position);
25166
25285
  lineBreaks++;
@@ -25179,12 +25298,12 @@ var require_loader = __commonJS({
25179
25298
  return lineBreaks;
25180
25299
  }
25181
25300
  function testDocumentSeparator(state) {
25182
- var _position = state.position, ch;
25183
- ch = state.input.charCodeAt(_position);
25301
+ let _position = state.position;
25302
+ let ch = state.input.charCodeAt(_position);
25184
25303
  if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
25185
25304
  _position += 3;
25186
25305
  ch = state.input.charCodeAt(_position);
25187
- if (ch === 0 || is_WS_OR_EOL(ch)) {
25306
+ if (ch === 0 || isWsOrEol(ch)) {
25188
25307
  return true;
25189
25308
  }
25190
25309
  }
@@ -25198,14 +25317,21 @@ var require_loader = __commonJS({
25198
25317
  }
25199
25318
  }
25200
25319
  function readPlainScalar(state, nodeIndent, withinFlowCollection) {
25201
- var preceding, following, captureStart, captureEnd, hasPendingContent, _line, _lineStart, _lineIndent, _kind = state.kind, _result = state.result, ch;
25202
- ch = state.input.charCodeAt(state.position);
25203
- 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) {
25320
+ let captureStart;
25321
+ let captureEnd;
25322
+ let hasPendingContent;
25323
+ let _line;
25324
+ let _lineStart;
25325
+ let _lineIndent;
25326
+ const _kind = state.kind;
25327
+ const _result = state.result;
25328
+ let ch = state.input.charCodeAt(state.position);
25329
+ 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) {
25204
25330
  return false;
25205
25331
  }
25206
25332
  if (ch === 63 || ch === 45) {
25207
- following = state.input.charCodeAt(state.position + 1);
25208
- if (is_WS_OR_EOL(following) || withinFlowCollection && is_FLOW_INDICATOR(following)) {
25333
+ const following = state.input.charCodeAt(state.position + 1);
25334
+ if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
25209
25335
  return false;
25210
25336
  }
25211
25337
  }
@@ -25215,18 +25341,18 @@ var require_loader = __commonJS({
25215
25341
  hasPendingContent = false;
25216
25342
  while (ch !== 0) {
25217
25343
  if (ch === 58) {
25218
- following = state.input.charCodeAt(state.position + 1);
25219
- if (is_WS_OR_EOL(following) || withinFlowCollection && is_FLOW_INDICATOR(following)) {
25344
+ const following = state.input.charCodeAt(state.position + 1);
25345
+ if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
25220
25346
  break;
25221
25347
  }
25222
25348
  } else if (ch === 35) {
25223
- preceding = state.input.charCodeAt(state.position - 1);
25224
- if (is_WS_OR_EOL(preceding)) {
25349
+ const preceding = state.input.charCodeAt(state.position - 1);
25350
+ if (isWsOrEol(preceding)) {
25225
25351
  break;
25226
25352
  }
25227
- } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && is_FLOW_INDICATOR(ch)) {
25353
+ } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch)) {
25228
25354
  break;
25229
- } else if (is_EOL(ch)) {
25355
+ } else if (isEol(ch)) {
25230
25356
  _line = state.line;
25231
25357
  _lineStart = state.lineStart;
25232
25358
  _lineIndent = state.lineIndent;
@@ -25249,7 +25375,7 @@ var require_loader = __commonJS({
25249
25375
  captureStart = captureEnd = state.position;
25250
25376
  hasPendingContent = false;
25251
25377
  }
25252
- if (!is_WHITE_SPACE(ch)) {
25378
+ if (!isWhiteSpace(ch)) {
25253
25379
  captureEnd = state.position + 1;
25254
25380
  }
25255
25381
  ch = state.input.charCodeAt(++state.position);
@@ -25263,8 +25389,9 @@ var require_loader = __commonJS({
25263
25389
  return false;
25264
25390
  }
25265
25391
  function readSingleQuotedScalar(state, nodeIndent) {
25266
- var ch, captureStart, captureEnd;
25267
- ch = state.input.charCodeAt(state.position);
25392
+ let captureStart;
25393
+ let captureEnd;
25394
+ let ch = state.input.charCodeAt(state.position);
25268
25395
  if (ch !== 39) {
25269
25396
  return false;
25270
25397
  }
@@ -25283,7 +25410,7 @@ var require_loader = __commonJS({
25283
25410
  } else {
25284
25411
  return true;
25285
25412
  }
25286
- } else if (is_EOL(ch)) {
25413
+ } else if (isEol(ch)) {
25287
25414
  captureSegment(state, captureStart, captureEnd, true);
25288
25415
  writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
25289
25416
  captureStart = captureEnd = state.position;
@@ -25291,14 +25418,18 @@ var require_loader = __commonJS({
25291
25418
  throwError(state, "unexpected end of the document within a single quoted scalar");
25292
25419
  } else {
25293
25420
  state.position++;
25294
- captureEnd = state.position;
25421
+ if (!isWhiteSpace(ch)) {
25422
+ captureEnd = state.position;
25423
+ }
25295
25424
  }
25296
25425
  }
25297
25426
  throwError(state, "unexpected end of the stream within a single quoted scalar");
25298
25427
  }
25299
25428
  function readDoubleQuotedScalar(state, nodeIndent) {
25300
- var captureStart, captureEnd, hexLength, hexResult, tmp, ch;
25301
- ch = state.input.charCodeAt(state.position);
25429
+ let captureStart;
25430
+ let captureEnd;
25431
+ let tmp;
25432
+ let ch = state.input.charCodeAt(state.position);
25302
25433
  if (ch !== 34) {
25303
25434
  return false;
25304
25435
  }
@@ -25314,14 +25445,14 @@ var require_loader = __commonJS({
25314
25445
  } else if (ch === 92) {
25315
25446
  captureSegment(state, captureStart, state.position, true);
25316
25447
  ch = state.input.charCodeAt(++state.position);
25317
- if (is_EOL(ch)) {
25448
+ if (isEol(ch)) {
25318
25449
  skipSeparationSpace(state, false, nodeIndent);
25319
25450
  } else if (ch < 256 && simpleEscapeCheck[ch]) {
25320
25451
  state.result += simpleEscapeMap[ch];
25321
25452
  state.position++;
25322
25453
  } else if ((tmp = escapedHexLen(ch)) > 0) {
25323
- hexLength = tmp;
25324
- hexResult = 0;
25454
+ let hexLength = tmp;
25455
+ let hexResult = 0;
25325
25456
  for (; hexLength > 0; hexLength--) {
25326
25457
  ch = state.input.charCodeAt(++state.position);
25327
25458
  if ((tmp = fromHexCode(ch)) >= 0) {
@@ -25336,7 +25467,7 @@ var require_loader = __commonJS({
25336
25467
  throwError(state, "unknown escape sequence");
25337
25468
  }
25338
25469
  captureStart = captureEnd = state.position;
25339
- } else if (is_EOL(ch)) {
25470
+ } else if (isEol(ch)) {
25340
25471
  captureSegment(state, captureStart, captureEnd, true);
25341
25472
  writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
25342
25473
  captureStart = captureEnd = state.position;
@@ -25344,14 +25475,30 @@ var require_loader = __commonJS({
25344
25475
  throwError(state, "unexpected end of the document within a double quoted scalar");
25345
25476
  } else {
25346
25477
  state.position++;
25347
- captureEnd = state.position;
25478
+ if (!isWhiteSpace(ch)) {
25479
+ captureEnd = state.position;
25480
+ }
25348
25481
  }
25349
25482
  }
25350
25483
  throwError(state, "unexpected end of the stream within a double quoted scalar");
25351
25484
  }
25352
25485
  function readFlowCollection(state, nodeIndent) {
25353
- var readNext = true, _line, _lineStart, _pos, _tag = state.tag, _result, _anchor = state.anchor, following, terminator, isPair, isExplicitPair, isMapping, overridableKeys = /* @__PURE__ */ Object.create(null), keyNode, keyTag, valueNode, ch;
25354
- ch = state.input.charCodeAt(state.position);
25486
+ let readNext = true;
25487
+ let _line;
25488
+ let _lineStart;
25489
+ let _pos;
25490
+ const _tag = state.tag;
25491
+ let _result;
25492
+ const _anchor = state.anchor;
25493
+ let terminator;
25494
+ let isPair;
25495
+ let isExplicitPair;
25496
+ let isMapping;
25497
+ const overridableKeys = /* @__PURE__ */ Object.create(null);
25498
+ let keyNode;
25499
+ let keyTag;
25500
+ let valueNode;
25501
+ let ch = state.input.charCodeAt(state.position);
25355
25502
  if (ch === 91) {
25356
25503
  terminator = 93;
25357
25504
  isMapping = false;
@@ -25364,7 +25511,7 @@ var require_loader = __commonJS({
25364
25511
  return false;
25365
25512
  }
25366
25513
  if (state.anchor !== null) {
25367
- state.anchorMap[state.anchor] = _result;
25514
+ storeAnchor(state, state.anchor, _result);
25368
25515
  }
25369
25516
  ch = state.input.charCodeAt(++state.position);
25370
25517
  while (ch !== 0) {
@@ -25385,8 +25532,8 @@ var require_loader = __commonJS({
25385
25532
  keyTag = keyNode = valueNode = null;
25386
25533
  isPair = isExplicitPair = false;
25387
25534
  if (ch === 63) {
25388
- following = state.input.charCodeAt(state.position + 1);
25389
- if (is_WS_OR_EOL(following)) {
25535
+ const following = state.input.charCodeAt(state.position + 1);
25536
+ if (isWsOrEol(following)) {
25390
25537
  isPair = isExplicitPair = true;
25391
25538
  state.position++;
25392
25539
  skipSeparationSpace(state, true, nodeIndent);
@@ -25426,8 +25573,15 @@ var require_loader = __commonJS({
25426
25573
  throwError(state, "unexpected end of the stream within a flow collection");
25427
25574
  }
25428
25575
  function readBlockScalar(state, nodeIndent) {
25429
- var captureStart, folding, chomping = CHOMPING_CLIP, didReadContent = false, detectedIndent = false, textIndent = nodeIndent, emptyLines = 0, atMoreIndented = false, tmp, ch;
25430
- ch = state.input.charCodeAt(state.position);
25576
+ let folding;
25577
+ let chomping = CHOMPING_CLIP;
25578
+ let didReadContent = false;
25579
+ let detectedIndent = false;
25580
+ let textIndent = nodeIndent;
25581
+ let emptyLines = 0;
25582
+ let atMoreIndented = false;
25583
+ let tmp;
25584
+ let ch = state.input.charCodeAt(state.position);
25431
25585
  if (ch === 124) {
25432
25586
  folding = false;
25433
25587
  } else if (ch === 62) {
@@ -25458,14 +25612,14 @@ var require_loader = __commonJS({
25458
25612
  break;
25459
25613
  }
25460
25614
  }
25461
- if (is_WHITE_SPACE(ch)) {
25615
+ if (isWhiteSpace(ch)) {
25462
25616
  do {
25463
25617
  ch = state.input.charCodeAt(++state.position);
25464
- } while (is_WHITE_SPACE(ch));
25618
+ } while (isWhiteSpace(ch));
25465
25619
  if (ch === 35) {
25466
25620
  do {
25467
25621
  ch = state.input.charCodeAt(++state.position);
25468
- } while (!is_EOL(ch) && ch !== 0);
25622
+ } while (!isEol(ch) && ch !== 0);
25469
25623
  }
25470
25624
  }
25471
25625
  while (ch !== 0) {
@@ -25479,10 +25633,13 @@ var require_loader = __commonJS({
25479
25633
  if (!detectedIndent && state.lineIndent > textIndent) {
25480
25634
  textIndent = state.lineIndent;
25481
25635
  }
25482
- if (is_EOL(ch)) {
25636
+ if (isEol(ch)) {
25483
25637
  emptyLines++;
25484
25638
  continue;
25485
25639
  }
25640
+ if (!detectedIndent && textIndent === 0) {
25641
+ throwError(state, "missing indentation for block scalar");
25642
+ }
25486
25643
  if (state.lineIndent < textIndent) {
25487
25644
  if (chomping === CHOMPING_KEEP) {
25488
25645
  state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
@@ -25494,7 +25651,7 @@ var require_loader = __commonJS({
25494
25651
  break;
25495
25652
  }
25496
25653
  if (folding) {
25497
- if (is_WHITE_SPACE(ch)) {
25654
+ if (isWhiteSpace(ch)) {
25498
25655
  atMoreIndented = true;
25499
25656
  state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
25500
25657
  } else if (atMoreIndented) {
@@ -25513,8 +25670,8 @@ var require_loader = __commonJS({
25513
25670
  didReadContent = true;
25514
25671
  detectedIndent = true;
25515
25672
  emptyLines = 0;
25516
- captureStart = state.position;
25517
- while (!is_EOL(ch) && ch !== 0) {
25673
+ const captureStart = state.position;
25674
+ while (!isEol(ch) && ch !== 0) {
25518
25675
  ch = state.input.charCodeAt(++state.position);
25519
25676
  }
25520
25677
  captureSegment(state, captureStart, state.position, false);
@@ -25522,12 +25679,15 @@ var require_loader = __commonJS({
25522
25679
  return true;
25523
25680
  }
25524
25681
  function readBlockSequence(state, nodeIndent) {
25525
- var _line, _tag = state.tag, _anchor = state.anchor, _result = [], following, detected = false, ch;
25682
+ const _tag = state.tag;
25683
+ const _anchor = state.anchor;
25684
+ const _result = [];
25685
+ let detected = false;
25526
25686
  if (state.firstTabInLine !== -1) return false;
25527
25687
  if (state.anchor !== null) {
25528
- state.anchorMap[state.anchor] = _result;
25688
+ storeAnchor(state, state.anchor, _result);
25529
25689
  }
25530
- ch = state.input.charCodeAt(state.position);
25690
+ let ch = state.input.charCodeAt(state.position);
25531
25691
  while (ch !== 0) {
25532
25692
  if (state.firstTabInLine !== -1) {
25533
25693
  state.position = state.firstTabInLine;
@@ -25536,8 +25696,8 @@ var require_loader = __commonJS({
25536
25696
  if (ch !== 45) {
25537
25697
  break;
25538
25698
  }
25539
- following = state.input.charCodeAt(state.position + 1);
25540
- if (!is_WS_OR_EOL(following)) {
25699
+ const following = state.input.charCodeAt(state.position + 1);
25700
+ if (!isWsOrEol(following)) {
25541
25701
  break;
25542
25702
  }
25543
25703
  detected = true;
@@ -25549,7 +25709,7 @@ var require_loader = __commonJS({
25549
25709
  continue;
25550
25710
  }
25551
25711
  }
25552
- _line = state.line;
25712
+ const _line = state.line;
25553
25713
  composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);
25554
25714
  _result.push(state.result);
25555
25715
  skipSeparationSpace(state, true, -1);
@@ -25570,20 +25730,32 @@ var require_loader = __commonJS({
25570
25730
  return false;
25571
25731
  }
25572
25732
  function readBlockMapping(state, nodeIndent, flowIndent) {
25573
- var following, allowCompact, _line, _keyLine, _keyLineStart, _keyPos, _tag = state.tag, _anchor = state.anchor, _result = {}, overridableKeys = /* @__PURE__ */ Object.create(null), keyTag = null, keyNode = null, valueNode = null, atExplicitKey = false, detected = false, ch;
25733
+ let allowCompact;
25734
+ let _keyLine;
25735
+ let _keyLineStart;
25736
+ let _keyPos;
25737
+ const _tag = state.tag;
25738
+ const _anchor = state.anchor;
25739
+ const _result = {};
25740
+ const overridableKeys = /* @__PURE__ */ Object.create(null);
25741
+ let keyTag = null;
25742
+ let keyNode = null;
25743
+ let valueNode = null;
25744
+ let atExplicitKey = false;
25745
+ let detected = false;
25574
25746
  if (state.firstTabInLine !== -1) return false;
25575
25747
  if (state.anchor !== null) {
25576
- state.anchorMap[state.anchor] = _result;
25748
+ storeAnchor(state, state.anchor, _result);
25577
25749
  }
25578
- ch = state.input.charCodeAt(state.position);
25750
+ let ch = state.input.charCodeAt(state.position);
25579
25751
  while (ch !== 0) {
25580
25752
  if (!atExplicitKey && state.firstTabInLine !== -1) {
25581
25753
  state.position = state.firstTabInLine;
25582
25754
  throwError(state, "tab characters must not be used in indentation");
25583
25755
  }
25584
- following = state.input.charCodeAt(state.position + 1);
25585
- _line = state.line;
25586
- if ((ch === 63 || ch === 58) && is_WS_OR_EOL(following)) {
25756
+ const following = state.input.charCodeAt(state.position + 1);
25757
+ const _line = state.line;
25758
+ if ((ch === 63 || ch === 58) && isWsOrEol(following)) {
25587
25759
  if (ch === 63) {
25588
25760
  if (atExplicitKey) {
25589
25761
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
@@ -25609,12 +25781,12 @@ var require_loader = __commonJS({
25609
25781
  }
25610
25782
  if (state.line === _line) {
25611
25783
  ch = state.input.charCodeAt(state.position);
25612
- while (is_WHITE_SPACE(ch)) {
25784
+ while (isWhiteSpace(ch)) {
25613
25785
  ch = state.input.charCodeAt(++state.position);
25614
25786
  }
25615
25787
  if (ch === 58) {
25616
25788
  ch = state.input.charCodeAt(++state.position);
25617
- if (!is_WS_OR_EOL(ch)) {
25789
+ if (!isWsOrEol(ch)) {
25618
25790
  throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
25619
25791
  }
25620
25792
  if (atExplicitKey) {
@@ -25679,8 +25851,11 @@ var require_loader = __commonJS({
25679
25851
  return detected;
25680
25852
  }
25681
25853
  function readTagProperty(state) {
25682
- var _position, isVerbatim = false, isNamed = false, tagHandle, tagName, ch;
25683
- ch = state.input.charCodeAt(state.position);
25854
+ let isVerbatim = false;
25855
+ let isNamed = false;
25856
+ let tagHandle;
25857
+ let tagName;
25858
+ let ch = state.input.charCodeAt(state.position);
25684
25859
  if (ch !== 33) return false;
25685
25860
  if (state.tag !== null) {
25686
25861
  throwError(state, "duplication of a tag property");
@@ -25696,7 +25871,7 @@ var require_loader = __commonJS({
25696
25871
  } else {
25697
25872
  tagHandle = "!";
25698
25873
  }
25699
- _position = state.position;
25874
+ let _position = state.position;
25700
25875
  if (isVerbatim) {
25701
25876
  do {
25702
25877
  ch = state.input.charCodeAt(++state.position);
@@ -25708,7 +25883,7 @@ var require_loader = __commonJS({
25708
25883
  throwError(state, "unexpected end of the stream within a verbatim tag");
25709
25884
  }
25710
25885
  } else {
25711
- while (ch !== 0 && !is_WS_OR_EOL(ch)) {
25886
+ while (ch !== 0 && !isWsOrEol(ch)) {
25712
25887
  if (ch === 33) {
25713
25888
  if (!isNamed) {
25714
25889
  tagHandle = state.input.slice(_position - 1, state.position + 1);
@@ -25750,15 +25925,14 @@ var require_loader = __commonJS({
25750
25925
  return true;
25751
25926
  }
25752
25927
  function readAnchorProperty(state) {
25753
- var _position, ch;
25754
- ch = state.input.charCodeAt(state.position);
25928
+ let ch = state.input.charCodeAt(state.position);
25755
25929
  if (ch !== 38) return false;
25756
25930
  if (state.anchor !== null) {
25757
25931
  throwError(state, "duplication of an anchor property");
25758
25932
  }
25759
25933
  ch = state.input.charCodeAt(++state.position);
25760
- _position = state.position;
25761
- while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {
25934
+ const _position = state.position;
25935
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
25762
25936
  ch = state.input.charCodeAt(++state.position);
25763
25937
  }
25764
25938
  if (state.position === _position) {
@@ -25768,18 +25942,17 @@ var require_loader = __commonJS({
25768
25942
  return true;
25769
25943
  }
25770
25944
  function readAlias(state) {
25771
- var _position, alias, ch;
25772
- ch = state.input.charCodeAt(state.position);
25945
+ let ch = state.input.charCodeAt(state.position);
25773
25946
  if (ch !== 42) return false;
25774
25947
  ch = state.input.charCodeAt(++state.position);
25775
- _position = state.position;
25776
- while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {
25948
+ const _position = state.position;
25949
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
25777
25950
  ch = state.input.charCodeAt(++state.position);
25778
25951
  }
25779
25952
  if (state.position === _position) {
25780
25953
  throwError(state, "name of an alias node must contain at least one character");
25781
25954
  }
25782
- alias = state.input.slice(_position, state.position);
25955
+ const alias = state.input.slice(_position, state.position);
25783
25956
  if (!_hasOwnProperty.call(state.anchorMap, alias)) {
25784
25957
  throwError(state, 'unidentified alias "' + alias + '"');
25785
25958
  }
@@ -25787,8 +25960,36 @@ var require_loader = __commonJS({
25787
25960
  skipSeparationSpace(state, true, -1);
25788
25961
  return true;
25789
25962
  }
25963
+ function tryReadBlockMappingFromProperty(state, propertyStart, nodeIndent, flowIndent) {
25964
+ const fallbackState = snapshotState(state);
25965
+ beginAnchorTransaction(state);
25966
+ restoreState(state, propertyStart);
25967
+ state.tag = null;
25968
+ state.anchor = null;
25969
+ state.kind = null;
25970
+ state.result = null;
25971
+ if (readBlockMapping(state, nodeIndent, flowIndent) && state.kind === "mapping") {
25972
+ commitAnchorTransaction(state);
25973
+ return true;
25974
+ }
25975
+ rollbackAnchorTransaction(state);
25976
+ restoreState(state, fallbackState);
25977
+ return false;
25978
+ }
25790
25979
  function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {
25791
- var allowBlockStyles, allowBlockScalars, allowBlockCollections, indentStatus = 1, atNewLine = false, hasContent = false, typeIndex, typeQuantity, typeList, type, flowIndent, blockIndent;
25980
+ let allowBlockScalars;
25981
+ let allowBlockCollections;
25982
+ let indentStatus = 1;
25983
+ let atNewLine = false;
25984
+ let hasContent = false;
25985
+ let propertyStart = null;
25986
+ let type;
25987
+ let flowIndent;
25988
+ let blockIndent;
25989
+ if (state.depth >= state.maxDepth) {
25990
+ throwError(state, "nesting exceeded maxDepth (" + state.maxDepth + ")");
25991
+ }
25992
+ state.depth += 1;
25792
25993
  if (state.listener !== null) {
25793
25994
  state.listener("open", state);
25794
25995
  }
@@ -25796,7 +25997,7 @@ var require_loader = __commonJS({
25796
25997
  state.anchor = null;
25797
25998
  state.kind = null;
25798
25999
  state.result = null;
25799
- allowBlockStyles = allowBlockScalars = allowBlockCollections = CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext;
26000
+ const allowBlockStyles = allowBlockScalars = allowBlockCollections = CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext;
25800
26001
  if (allowToSeek) {
25801
26002
  if (skipSeparationSpace(state, true, -1)) {
25802
26003
  atNewLine = true;
@@ -25810,7 +26011,18 @@ var require_loader = __commonJS({
25810
26011
  }
25811
26012
  }
25812
26013
  if (indentStatus === 1) {
25813
- while (readTagProperty(state) || readAnchorProperty(state)) {
26014
+ while (true) {
26015
+ const ch = state.input.charCodeAt(state.position);
26016
+ const propertyState = snapshotState(state);
26017
+ if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null)) {
26018
+ break;
26019
+ }
26020
+ if (!readTagProperty(state) && !readAnchorProperty(state)) {
26021
+ break;
26022
+ }
26023
+ if (propertyStart === null) {
26024
+ propertyStart = propertyState;
26025
+ }
25814
26026
  if (skipSeparationSpace(state, true, -1)) {
25815
26027
  atNewLine = true;
25816
26028
  allowBlockCollections = allowBlockStyles;
@@ -25840,7 +26052,15 @@ var require_loader = __commonJS({
25840
26052
  if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) {
25841
26053
  hasContent = true;
25842
26054
  } else {
25843
- if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) {
26055
+ const ch = state.input.charCodeAt(state.position);
26056
+ if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(
26057
+ state,
26058
+ propertyStart,
26059
+ propertyStart.position - propertyStart.lineStart,
26060
+ flowIndent
26061
+ )) {
26062
+ hasContent = true;
26063
+ } else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) {
25844
26064
  hasContent = true;
25845
26065
  } else if (readAlias(state)) {
25846
26066
  hasContent = true;
@@ -25854,7 +26074,7 @@ var require_loader = __commonJS({
25854
26074
  }
25855
26075
  }
25856
26076
  if (state.anchor !== null) {
25857
- state.anchorMap[state.anchor] = state.result;
26077
+ storeAnchor(state, state.anchor, state.result);
25858
26078
  }
25859
26079
  }
25860
26080
  } else if (indentStatus === 0) {
@@ -25863,19 +26083,19 @@ var require_loader = __commonJS({
25863
26083
  }
25864
26084
  if (state.tag === null) {
25865
26085
  if (state.anchor !== null) {
25866
- state.anchorMap[state.anchor] = state.result;
26086
+ storeAnchor(state, state.anchor, state.result);
25867
26087
  }
25868
26088
  } else if (state.tag === "?") {
25869
26089
  if (state.result !== null && state.kind !== "scalar") {
25870
26090
  throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
25871
26091
  }
25872
- for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {
26092
+ for (let typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {
25873
26093
  type = state.implicitTypes[typeIndex];
25874
26094
  if (type.resolve(state.result)) {
25875
26095
  state.result = type.construct(state.result);
25876
26096
  state.tag = type.tag;
25877
26097
  if (state.anchor !== null) {
25878
- state.anchorMap[state.anchor] = state.result;
26098
+ storeAnchor(state, state.anchor, state.result);
25879
26099
  }
25880
26100
  break;
25881
26101
  }
@@ -25885,8 +26105,8 @@ var require_loader = __commonJS({
25885
26105
  type = state.typeMap[state.kind || "fallback"][state.tag];
25886
26106
  } else {
25887
26107
  type = null;
25888
- typeList = state.typeMap.multi[state.kind || "fallback"];
25889
- for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) {
26108
+ const typeList = state.typeMap.multi[state.kind || "fallback"];
26109
+ for (let typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) {
25890
26110
  if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
25891
26111
  type = typeList[typeIndex];
25892
26112
  break;
@@ -25904,17 +26124,20 @@ var require_loader = __commonJS({
25904
26124
  } else {
25905
26125
  state.result = type.construct(state.result, state.tag);
25906
26126
  if (state.anchor !== null) {
25907
- state.anchorMap[state.anchor] = state.result;
26127
+ storeAnchor(state, state.anchor, state.result);
25908
26128
  }
25909
26129
  }
25910
26130
  }
25911
26131
  if (state.listener !== null) {
25912
26132
  state.listener("close", state);
25913
26133
  }
26134
+ state.depth -= 1;
25914
26135
  return state.tag !== null || state.anchor !== null || hasContent;
25915
26136
  }
25916
26137
  function readDocument(state) {
25917
- var documentStart = state.position, _position, directiveName, directiveArgs, hasDirectives = false, ch;
26138
+ const documentStart = state.position;
26139
+ let hasDirectives = false;
26140
+ let ch;
25918
26141
  state.version = null;
25919
26142
  state.checkLineBreaks = state.legacy;
25920
26143
  state.tagMap = /* @__PURE__ */ Object.create(null);
@@ -25927,28 +26150,28 @@ var require_loader = __commonJS({
25927
26150
  }
25928
26151
  hasDirectives = true;
25929
26152
  ch = state.input.charCodeAt(++state.position);
25930
- _position = state.position;
25931
- while (ch !== 0 && !is_WS_OR_EOL(ch)) {
26153
+ let _position = state.position;
26154
+ while (ch !== 0 && !isWsOrEol(ch)) {
25932
26155
  ch = state.input.charCodeAt(++state.position);
25933
26156
  }
25934
- directiveName = state.input.slice(_position, state.position);
25935
- directiveArgs = [];
26157
+ const directiveName = state.input.slice(_position, state.position);
26158
+ const directiveArgs = [];
25936
26159
  if (directiveName.length < 1) {
25937
26160
  throwError(state, "directive name must not be less than one character in length");
25938
26161
  }
25939
26162
  while (ch !== 0) {
25940
- while (is_WHITE_SPACE(ch)) {
26163
+ while (isWhiteSpace(ch)) {
25941
26164
  ch = state.input.charCodeAt(++state.position);
25942
26165
  }
25943
26166
  if (ch === 35) {
25944
26167
  do {
25945
26168
  ch = state.input.charCodeAt(++state.position);
25946
- } while (ch !== 0 && !is_EOL(ch));
26169
+ } while (ch !== 0 && !isEol(ch));
25947
26170
  break;
25948
26171
  }
25949
- if (is_EOL(ch)) break;
26172
+ if (isEol(ch)) break;
25950
26173
  _position = state.position;
25951
- while (ch !== 0 && !is_WS_OR_EOL(ch)) {
26174
+ while (ch !== 0 && !isWsOrEol(ch)) {
25952
26175
  ch = state.input.charCodeAt(++state.position);
25953
26176
  }
25954
26177
  directiveArgs.push(state.input.slice(_position, state.position));
@@ -25982,8 +26205,6 @@ var require_loader = __commonJS({
25982
26205
  }
25983
26206
  if (state.position < state.length - 1) {
25984
26207
  throwError(state, "end of the stream or a document separator is expected");
25985
- } else {
25986
- return;
25987
26208
  }
25988
26209
  }
25989
26210
  function loadDocuments(input, options) {
@@ -25997,8 +26218,8 @@ var require_loader = __commonJS({
25997
26218
  input = input.slice(1);
25998
26219
  }
25999
26220
  }
26000
- var state = new State(input, options);
26001
- var nullpos = input.indexOf("\0");
26221
+ const state = new State(input, options);
26222
+ const nullpos = input.indexOf("\0");
26002
26223
  if (nullpos !== -1) {
26003
26224
  state.position = nullpos;
26004
26225
  throwError(state, "null byte is not allowed in input");
@@ -26018,16 +26239,16 @@ var require_loader = __commonJS({
26018
26239
  options = iterator;
26019
26240
  iterator = null;
26020
26241
  }
26021
- var documents = loadDocuments(input, options);
26242
+ const documents = loadDocuments(input, options);
26022
26243
  if (typeof iterator !== "function") {
26023
26244
  return documents;
26024
26245
  }
26025
- for (var index = 0, length = documents.length; index < length; index += 1) {
26246
+ for (let index = 0, length = documents.length; index < length; index += 1) {
26026
26247
  iterator(documents[index]);
26027
26248
  }
26028
26249
  }
26029
26250
  function load(input, options) {
26030
- var documents = loadDocuments(input, options);
26251
+ const documents = loadDocuments(input, options);
26031
26252
  if (documents.length === 0) {
26032
26253
  return void 0;
26033
26254
  } else if (documents.length === 1) {
@@ -26110,17 +26331,16 @@ var require_dumper = __commonJS({
26110
26331
  ];
26111
26332
  var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
26112
26333
  function compileStyleMap(schema, map) {
26113
- var result, keys, index, length, tag, style, type;
26114
26334
  if (map === null) return {};
26115
- result = {};
26116
- keys = Object.keys(map);
26117
- for (index = 0, length = keys.length; index < length; index += 1) {
26118
- tag = keys[index];
26119
- style = String(map[tag]);
26335
+ const result = {};
26336
+ const keys = Object.keys(map);
26337
+ for (let index = 0, length = keys.length; index < length; index += 1) {
26338
+ let tag = keys[index];
26339
+ let style = String(map[tag]);
26120
26340
  if (tag.slice(0, 2) === "!!") {
26121
26341
  tag = "tag:yaml.org,2002:" + tag.slice(2);
26122
26342
  }
26123
- type = schema.compiledTypeMap["fallback"][tag];
26343
+ const type = schema.compiledTypeMap["fallback"][tag];
26124
26344
  if (type && _hasOwnProperty.call(type.styleAliases, style)) {
26125
26345
  style = type.styleAliases[style];
26126
26346
  }
@@ -26129,8 +26349,9 @@ var require_dumper = __commonJS({
26129
26349
  return result;
26130
26350
  }
26131
26351
  function encodeHex(character) {
26132
- var string, handle, length;
26133
- string = character.toString(16).toUpperCase();
26352
+ let handle;
26353
+ let length;
26354
+ const string = character.toString(16).toUpperCase();
26134
26355
  if (character <= 255) {
26135
26356
  handle = "x";
26136
26357
  length = 2;
@@ -26170,9 +26391,13 @@ var require_dumper = __commonJS({
26170
26391
  this.usedDuplicates = null;
26171
26392
  }
26172
26393
  function indentString(string, spaces) {
26173
- var ind = common.repeat(" ", spaces), position = 0, next = -1, result = "", line, length = string.length;
26394
+ const ind = common.repeat(" ", spaces);
26395
+ let position = 0;
26396
+ let result = "";
26397
+ const length = string.length;
26174
26398
  while (position < length) {
26175
- next = string.indexOf("\n", position);
26399
+ let line;
26400
+ const next = string.indexOf("\n", position);
26176
26401
  if (next === -1) {
26177
26402
  line = string.slice(position);
26178
26403
  position = length;
@@ -26189,9 +26414,8 @@ var require_dumper = __commonJS({
26189
26414
  return "\n" + common.repeat(" ", state.indent * level);
26190
26415
  }
26191
26416
  function testImplicitResolving(state, str) {
26192
- var index, length, type;
26193
- for (index = 0, length = state.implicitTypes.length; index < length; index += 1) {
26194
- type = state.implicitTypes[index];
26417
+ for (let index = 0, length = state.implicitTypes.length; index < length; index += 1) {
26418
+ const type = state.implicitTypes[index];
26195
26419
  if (type.resolve(str)) {
26196
26420
  return true;
26197
26421
  }
@@ -26202,30 +26426,39 @@ var require_dumper = __commonJS({
26202
26426
  return c === CHAR_SPACE || c === CHAR_TAB;
26203
26427
  }
26204
26428
  function isPrintable(c) {
26205
- return 32 <= c && c <= 126 || 161 <= c && c <= 55295 && c !== 8232 && c !== 8233 || 57344 <= c && c <= 65533 && c !== CHAR_BOM || 65536 <= c && c <= 1114111;
26429
+ return c >= 32 && c <= 126 || c >= 161 && c <= 55295 && c !== 8232 && c !== 8233 || c >= 57344 && c <= 65533 && c !== CHAR_BOM || c >= 65536 && c <= 1114111;
26206
26430
  }
26207
26431
  function isNsCharOrWhitespace(c) {
26208
- return isPrintable(c) && c !== CHAR_BOM && c !== CHAR_CARRIAGE_RETURN && c !== CHAR_LINE_FEED;
26432
+ return isPrintable(c) && c !== CHAR_BOM && // - b-char
26433
+ c !== CHAR_CARRIAGE_RETURN && c !== CHAR_LINE_FEED;
26209
26434
  }
26210
26435
  function isPlainSafe(c, prev, inblock) {
26211
- var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c);
26212
- var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c);
26436
+ const cIsNsCharOrWhitespace = isNsCharOrWhitespace(c);
26437
+ const cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c);
26213
26438
  return (
26214
26439
  // ns-plain-safe
26215
- (inblock ? (
26216
- // c = flow-in
26217
- cIsNsCharOrWhitespace
26218
- ) : 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
26440
+ (inblock ? cIsNsCharOrWhitespace : cIsNsCharOrWhitespace && // - c-flow-indicator
26441
+ c !== CHAR_COMMA && c !== CHAR_LEFT_SQUARE_BRACKET && c !== CHAR_RIGHT_SQUARE_BRACKET && c !== CHAR_LEFT_CURLY_BRACKET && c !== CHAR_RIGHT_CURLY_BRACKET) && // ns-plain-char
26442
+ c !== CHAR_SHARP && // false on '#'
26443
+ !(prev === CHAR_COLON && !cIsNsChar) || // false on ': '
26444
+ isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP || // change to true on '[^ ]#'
26445
+ prev === CHAR_COLON && cIsNsChar
26219
26446
  );
26220
26447
  }
26221
26448
  function isPlainSafeFirst(c) {
26222
- return isPrintable(c) && c !== CHAR_BOM && !isWhitespace(c) && c !== CHAR_MINUS && c !== CHAR_QUESTION && c !== CHAR_COLON && 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 && c !== CHAR_AMPERSAND && c !== CHAR_ASTERISK && c !== CHAR_EXCLAMATION && c !== CHAR_VERTICAL_LINE && c !== CHAR_EQUALS && c !== CHAR_GREATER_THAN && c !== CHAR_SINGLE_QUOTE && c !== CHAR_DOUBLE_QUOTE && c !== CHAR_PERCENT && c !== CHAR_COMMERCIAL_AT && c !== CHAR_GRAVE_ACCENT;
26449
+ return isPrintable(c) && c !== CHAR_BOM && !isWhitespace(c) && // - s-white
26450
+ // - (c-indicator ::=
26451
+ // “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}”
26452
+ c !== CHAR_MINUS && c !== CHAR_QUESTION && c !== CHAR_COLON && c !== CHAR_COMMA && c !== CHAR_LEFT_SQUARE_BRACKET && c !== CHAR_RIGHT_SQUARE_BRACKET && c !== CHAR_LEFT_CURLY_BRACKET && c !== CHAR_RIGHT_CURLY_BRACKET && // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “"”
26453
+ c !== CHAR_SHARP && c !== CHAR_AMPERSAND && c !== CHAR_ASTERISK && c !== CHAR_EXCLAMATION && c !== CHAR_VERTICAL_LINE && c !== CHAR_EQUALS && c !== CHAR_GREATER_THAN && c !== CHAR_SINGLE_QUOTE && c !== CHAR_DOUBLE_QUOTE && // | “%” | “@” | “`”)
26454
+ c !== CHAR_PERCENT && c !== CHAR_COMMERCIAL_AT && c !== CHAR_GRAVE_ACCENT;
26223
26455
  }
26224
26456
  function isPlainSafeLast(c) {
26225
26457
  return !isWhitespace(c) && c !== CHAR_COLON;
26226
26458
  }
26227
26459
  function codePointAt(string, pos) {
26228
- var first = string.charCodeAt(pos), second;
26460
+ const first = string.charCodeAt(pos);
26461
+ let second;
26229
26462
  if (first >= 55296 && first <= 56319 && pos + 1 < string.length) {
26230
26463
  second = string.charCodeAt(pos + 1);
26231
26464
  if (second >= 56320 && second <= 57343) {
@@ -26235,7 +26468,7 @@ var require_dumper = __commonJS({
26235
26468
  return first;
26236
26469
  }
26237
26470
  function needIndentIndicator(string) {
26238
- var leadingSpaceRe = /^\n* /;
26471
+ const leadingSpaceRe = /^\n* /;
26239
26472
  return leadingSpaceRe.test(string);
26240
26473
  }
26241
26474
  var STYLE_PLAIN = 1;
@@ -26244,14 +26477,14 @@ var require_dumper = __commonJS({
26244
26477
  var STYLE_FOLDED = 4;
26245
26478
  var STYLE_DOUBLE = 5;
26246
26479
  function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
26247
- var i;
26248
- var char = 0;
26249
- var prevChar = null;
26250
- var hasLineBreak = false;
26251
- var hasFoldableLine = false;
26252
- var shouldTrackWidth = lineWidth !== -1;
26253
- var previousLineBreak = -1;
26254
- var plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
26480
+ let i;
26481
+ let char = 0;
26482
+ let prevChar = null;
26483
+ let hasLineBreak = false;
26484
+ let hasFoldableLine = false;
26485
+ const shouldTrackWidth = lineWidth !== -1;
26486
+ let previousLineBreak = -1;
26487
+ let plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
26255
26488
  if (singleLineOnly || forceQuotes) {
26256
26489
  for (i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
26257
26490
  char = codePointAt(string, i);
@@ -26303,9 +26536,10 @@ var require_dumper = __commonJS({
26303
26536
  return state.quotingType === QUOTING_TYPE_DOUBLE ? '"' + string + '"' : "'" + string + "'";
26304
26537
  }
26305
26538
  }
26306
- var indent = state.indent * Math.max(1, level);
26307
- var lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
26308
- var singleLineOnly = iskey || state.flowLevel > -1 && level >= state.flowLevel;
26539
+ const indent = state.indent * Math.max(1, level);
26540
+ const lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
26541
+ const singleLineOnly = iskey || // No block styles in flow mode.
26542
+ state.flowLevel > -1 && level >= state.flowLevel;
26309
26543
  function testAmbiguity(string2) {
26310
26544
  return testImplicitResolving(state, string2);
26311
26545
  }
@@ -26335,28 +26569,29 @@ var require_dumper = __commonJS({
26335
26569
  })();
26336
26570
  }
26337
26571
  function blockHeader(string, indentPerLevel) {
26338
- var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
26339
- var clip = string[string.length - 1] === "\n";
26340
- var keep = clip && (string[string.length - 2] === "\n" || string === "\n");
26341
- var chomp = keep ? "+" : clip ? "" : "-";
26572
+ const indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
26573
+ const clip = string[string.length - 1] === "\n";
26574
+ const keep = clip && (string[string.length - 2] === "\n" || string === "\n");
26575
+ const chomp = keep ? "+" : clip ? "" : "-";
26342
26576
  return indentIndicator + chomp + "\n";
26343
26577
  }
26344
26578
  function dropEndingNewline(string) {
26345
26579
  return string[string.length - 1] === "\n" ? string.slice(0, -1) : string;
26346
26580
  }
26347
26581
  function foldString(string, width) {
26348
- var lineRe = /(\n+)([^\n]*)/g;
26349
- var result = (function() {
26350
- var nextLF = string.indexOf("\n");
26582
+ const lineRe = /(\n+)([^\n]*)/g;
26583
+ let result = (function() {
26584
+ let nextLF = string.indexOf("\n");
26351
26585
  nextLF = nextLF !== -1 ? nextLF : string.length;
26352
26586
  lineRe.lastIndex = nextLF;
26353
26587
  return foldLine(string.slice(0, nextLF), width);
26354
26588
  })();
26355
- var prevMoreIndented = string[0] === "\n" || string[0] === " ";
26356
- var moreIndented;
26357
- var match;
26589
+ let prevMoreIndented = string[0] === "\n" || string[0] === " ";
26590
+ let moreIndented;
26591
+ let match;
26358
26592
  while (match = lineRe.exec(string)) {
26359
- var prefix = match[1], line = match[2];
26593
+ const prefix = match[1];
26594
+ const line = match[2];
26360
26595
  moreIndented = line[0] === " ";
26361
26596
  result += prefix + (!prevMoreIndented && !moreIndented && line !== "" ? "\n" : "") + foldLine(line, width);
26362
26597
  prevMoreIndented = moreIndented;
@@ -26365,10 +26600,13 @@ var require_dumper = __commonJS({
26365
26600
  }
26366
26601
  function foldLine(line, width) {
26367
26602
  if (line === "" || line[0] === " ") return line;
26368
- var breakRe = / [^ ]/g;
26369
- var match;
26370
- var start = 0, end, curr = 0, next = 0;
26371
- var result = "";
26603
+ const breakRe = / [^ ]/g;
26604
+ let match;
26605
+ let start = 0;
26606
+ let end;
26607
+ let curr = 0;
26608
+ let next = 0;
26609
+ let result = "";
26372
26610
  while (match = breakRe.exec(line)) {
26373
26611
  next = match.index;
26374
26612
  if (next - start > width) {
@@ -26387,12 +26625,11 @@ var require_dumper = __commonJS({
26387
26625
  return result.slice(1);
26388
26626
  }
26389
26627
  function escapeString(string) {
26390
- var result = "";
26391
- var char = 0;
26392
- var escapeSeq;
26393
- for (var i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
26628
+ let result = "";
26629
+ let char = 0;
26630
+ for (let i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
26394
26631
  char = codePointAt(string, i);
26395
- escapeSeq = ESCAPE_SEQUENCES[char];
26632
+ const escapeSeq = ESCAPE_SEQUENCES[char];
26396
26633
  if (!escapeSeq && isPrintable(char)) {
26397
26634
  result += string[i];
26398
26635
  if (char >= 65536) result += string[i + 1];
@@ -26403,9 +26640,10 @@ var require_dumper = __commonJS({
26403
26640
  return result;
26404
26641
  }
26405
26642
  function writeFlowSequence(state, level, object) {
26406
- var _result = "", _tag = state.tag, index, length, value;
26407
- for (index = 0, length = object.length; index < length; index += 1) {
26408
- value = object[index];
26643
+ let _result = "";
26644
+ const _tag = state.tag;
26645
+ for (let index = 0, length = object.length; index < length; index += 1) {
26646
+ let value = object[index];
26409
26647
  if (state.replacer) {
26410
26648
  value = state.replacer.call(object, String(index), value);
26411
26649
  }
@@ -26418,9 +26656,10 @@ var require_dumper = __commonJS({
26418
26656
  state.dump = "[" + _result + "]";
26419
26657
  }
26420
26658
  function writeBlockSequence(state, level, object, compact) {
26421
- var _result = "", _tag = state.tag, index, length, value;
26422
- for (index = 0, length = object.length; index < length; index += 1) {
26423
- value = object[index];
26659
+ let _result = "";
26660
+ const _tag = state.tag;
26661
+ for (let index = 0, length = object.length; index < length; index += 1) {
26662
+ let value = object[index];
26424
26663
  if (state.replacer) {
26425
26664
  value = state.replacer.call(object, String(index), value);
26426
26665
  }
@@ -26440,13 +26679,15 @@ var require_dumper = __commonJS({
26440
26679
  state.dump = _result || "[]";
26441
26680
  }
26442
26681
  function writeFlowMapping(state, level, object) {
26443
- var _result = "", _tag = state.tag, objectKeyList = Object.keys(object), index, length, objectKey, objectValue, pairBuffer;
26444
- for (index = 0, length = objectKeyList.length; index < length; index += 1) {
26445
- pairBuffer = "";
26682
+ let _result = "";
26683
+ const _tag = state.tag;
26684
+ const objectKeyList = Object.keys(object);
26685
+ for (let index = 0, length = objectKeyList.length; index < length; index += 1) {
26686
+ let pairBuffer = "";
26446
26687
  if (_result !== "") pairBuffer += ", ";
26447
26688
  if (state.condenseFlow) pairBuffer += '"';
26448
- objectKey = objectKeyList[index];
26449
- objectValue = object[objectKey];
26689
+ const objectKey = objectKeyList[index];
26690
+ let objectValue = object[objectKey];
26450
26691
  if (state.replacer) {
26451
26692
  objectValue = state.replacer.call(object, objectKey, objectValue);
26452
26693
  }
@@ -26465,7 +26706,9 @@ var require_dumper = __commonJS({
26465
26706
  state.dump = "{" + _result + "}";
26466
26707
  }
26467
26708
  function writeBlockMapping(state, level, object, compact) {
26468
- var _result = "", _tag = state.tag, objectKeyList = Object.keys(object), index, length, objectKey, objectValue, explicitPair, pairBuffer;
26709
+ let _result = "";
26710
+ const _tag = state.tag;
26711
+ const objectKeyList = Object.keys(object);
26469
26712
  if (state.sortKeys === true) {
26470
26713
  objectKeyList.sort();
26471
26714
  } else if (typeof state.sortKeys === "function") {
@@ -26473,20 +26716,20 @@ var require_dumper = __commonJS({
26473
26716
  } else if (state.sortKeys) {
26474
26717
  throw new YAMLException("sortKeys must be a boolean or a function");
26475
26718
  }
26476
- for (index = 0, length = objectKeyList.length; index < length; index += 1) {
26477
- pairBuffer = "";
26719
+ for (let index = 0, length = objectKeyList.length; index < length; index += 1) {
26720
+ let pairBuffer = "";
26478
26721
  if (!compact || _result !== "") {
26479
26722
  pairBuffer += generateNextLine(state, level);
26480
26723
  }
26481
- objectKey = objectKeyList[index];
26482
- objectValue = object[objectKey];
26724
+ const objectKey = objectKeyList[index];
26725
+ let objectValue = object[objectKey];
26483
26726
  if (state.replacer) {
26484
26727
  objectValue = state.replacer.call(object, objectKey, objectValue);
26485
26728
  }
26486
26729
  if (!writeNode(state, level + 1, objectKey, true, true, true)) {
26487
26730
  continue;
26488
26731
  }
26489
- explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
26732
+ const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
26490
26733
  if (explicitPair) {
26491
26734
  if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
26492
26735
  pairBuffer += "?";
@@ -26513,10 +26756,9 @@ var require_dumper = __commonJS({
26513
26756
  state.dump = _result || "{}";
26514
26757
  }
26515
26758
  function detectType(state, object, explicit) {
26516
- var _result, typeList, index, length, type, style;
26517
- typeList = explicit ? state.explicitTypes : state.implicitTypes;
26518
- for (index = 0, length = typeList.length; index < length; index += 1) {
26519
- type = typeList[index];
26759
+ const typeList = explicit ? state.explicitTypes : state.implicitTypes;
26760
+ for (let index = 0, length = typeList.length; index < length; index += 1) {
26761
+ const type = typeList[index];
26520
26762
  if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object === "object" && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
26521
26763
  if (explicit) {
26522
26764
  if (type.multi && type.representName) {
@@ -26528,7 +26770,8 @@ var require_dumper = __commonJS({
26528
26770
  state.tag = "?";
26529
26771
  }
26530
26772
  if (type.represent) {
26531
- style = state.styleMap[type.tag] || type.defaultStyle;
26773
+ const style = state.styleMap[type.tag] || type.defaultStyle;
26774
+ let _result;
26532
26775
  if (_toString.call(type.represent) === "[object Function]") {
26533
26776
  _result = type.represent(object, style);
26534
26777
  } else if (_hasOwnProperty.call(type.represent, style)) {
@@ -26549,13 +26792,14 @@ var require_dumper = __commonJS({
26549
26792
  if (!detectType(state, object, false)) {
26550
26793
  detectType(state, object, true);
26551
26794
  }
26552
- var type = _toString.call(state.dump);
26553
- var inblock = block;
26554
- var tagStr;
26795
+ const type = _toString.call(state.dump);
26796
+ const inblock = block;
26555
26797
  if (block) {
26556
26798
  block = state.flowLevel < 0 || state.flowLevel > level;
26557
26799
  }
26558
- var objectOrArray = type === "[object Object]" || type === "[object Array]", duplicateIndex, duplicate;
26800
+ const objectOrArray = type === "[object Object]" || type === "[object Array]";
26801
+ let duplicateIndex;
26802
+ let duplicate;
26559
26803
  if (objectOrArray) {
26560
26804
  duplicateIndex = state.duplicates.indexOf(object);
26561
26805
  duplicate = duplicateIndex !== -1;
@@ -26608,7 +26852,7 @@ var require_dumper = __commonJS({
26608
26852
  throw new YAMLException("unacceptable kind of an object to dump " + type);
26609
26853
  }
26610
26854
  if (state.tag !== null && state.tag !== "?") {
26611
- tagStr = encodeURI(
26855
+ let tagStr = encodeURI(
26612
26856
  state.tag[0] === "!" ? state.tag.slice(1) : state.tag
26613
26857
  ).replace(/!/g, "%21");
26614
26858
  if (state.tag[0] === "!") {
@@ -26624,17 +26868,18 @@ var require_dumper = __commonJS({
26624
26868
  return true;
26625
26869
  }
26626
26870
  function getDuplicateReferences(object, state) {
26627
- var objects = [], duplicatesIndexes = [], index, length;
26871
+ const objects = [];
26872
+ const duplicatesIndexes = [];
26628
26873
  inspectNode(object, objects, duplicatesIndexes);
26629
- for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) {
26874
+ const length = duplicatesIndexes.length;
26875
+ for (let index = 0; index < length; index += 1) {
26630
26876
  state.duplicates.push(objects[duplicatesIndexes[index]]);
26631
26877
  }
26632
26878
  state.usedDuplicates = new Array(length);
26633
26879
  }
26634
26880
  function inspectNode(object, objects, duplicatesIndexes) {
26635
- var objectKeyList, index, length;
26636
26881
  if (object !== null && typeof object === "object") {
26637
- index = objects.indexOf(object);
26882
+ const index = objects.indexOf(object);
26638
26883
  if (index !== -1) {
26639
26884
  if (duplicatesIndexes.indexOf(index) === -1) {
26640
26885
  duplicatesIndexes.push(index);
@@ -26642,13 +26887,13 @@ var require_dumper = __commonJS({
26642
26887
  } else {
26643
26888
  objects.push(object);
26644
26889
  if (Array.isArray(object)) {
26645
- for (index = 0, length = object.length; index < length; index += 1) {
26646
- inspectNode(object[index], objects, duplicatesIndexes);
26890
+ for (let i = 0, length = object.length; i < length; i += 1) {
26891
+ inspectNode(object[i], objects, duplicatesIndexes);
26647
26892
  }
26648
26893
  } else {
26649
- objectKeyList = Object.keys(object);
26650
- for (index = 0, length = objectKeyList.length; index < length; index += 1) {
26651
- inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes);
26894
+ const objectKeyList = Object.keys(object);
26895
+ for (let i = 0, length = objectKeyList.length; i < length; i += 1) {
26896
+ inspectNode(object[objectKeyList[i]], objects, duplicatesIndexes);
26652
26897
  }
26653
26898
  }
26654
26899
  }
@@ -26656,9 +26901,9 @@ var require_dumper = __commonJS({
26656
26901
  }
26657
26902
  function dump(input, options) {
26658
26903
  options = options || {};
26659
- var state = new State(options);
26904
+ const state = new State(options);
26660
26905
  if (!state.noRefs) getDuplicateReferences(input, state);
26661
- var value = input;
26906
+ let value = input;
26662
26907
  if (state.replacer) {
26663
26908
  value = state.replacer.call({ "": value }, "", value);
26664
26909
  }
@@ -49863,7 +50108,7 @@ var require_purify_cjs = __commonJS({
49863
50108
  function createDOMPurify() {
49864
50109
  let window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
49865
50110
  const DOMPurify = (root) => createDOMPurify(root);
49866
- DOMPurify.version = "3.4.10";
50111
+ DOMPurify.version = "3.4.11";
49867
50112
  DOMPurify.removed = [];
49868
50113
  if (!window2 || !window2.document || window2.document.nodeType !== NODE_TYPE.document || !window2.Element) {
49869
50114
  DOMPurify.isSupported = false;
@@ -49982,6 +50227,8 @@ var require_purify_cjs = __commonJS({
49982
50227
  let SAFE_FOR_XML = true;
49983
50228
  let WHOLE_DOCUMENT = false;
49984
50229
  let SET_CONFIG = false;
50230
+ let SET_CONFIG_ALLOWED_TAGS = null;
50231
+ let SET_CONFIG_ALLOWED_ATTR = null;
49985
50232
  let FORCE_BODY = false;
49986
50233
  let RETURN_DOM = false;
49987
50234
  let RETURN_DOM_FRAGMENT = false;
@@ -50227,12 +50474,6 @@ var require_purify_cjs = __commonJS({
50227
50474
  emptyHTML = _createTrustedHTML("");
50228
50475
  }
50229
50476
  }
50230
- if ((hooks.uponSanitizeElement.length > 0 || hooks.uponSanitizeAttribute.length > 0) && ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
50231
- ALLOWED_TAGS = clone(ALLOWED_TAGS);
50232
- }
50233
- if (hooks.uponSanitizeAttribute.length > 0 && ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
50234
- ALLOWED_ATTR = clone(ALLOWED_ATTR);
50235
- }
50236
50477
  if (freeze) {
50237
50478
  freeze(cfg);
50238
50479
  }
@@ -50825,9 +51066,18 @@ var require_purify_cjs = __commonJS({
50825
51066
  if (!DOMPurify.isSupported) {
50826
51067
  return dirty;
50827
51068
  }
50828
- if (!SET_CONFIG) {
51069
+ if (SET_CONFIG) {
51070
+ ALLOWED_TAGS = SET_CONFIG_ALLOWED_TAGS;
51071
+ ALLOWED_ATTR = SET_CONFIG_ALLOWED_ATTR;
51072
+ } else {
50829
51073
  _parseConfig(cfg);
50830
51074
  }
51075
+ if (hooks.uponSanitizeElement.length > 0 || hooks.uponSanitizeAttribute.length > 0) {
51076
+ ALLOWED_TAGS = clone(ALLOWED_TAGS);
51077
+ }
51078
+ if (hooks.uponSanitizeAttribute.length > 0) {
51079
+ ALLOWED_ATTR = clone(ALLOWED_ATTR);
51080
+ }
50831
51081
  DOMPurify.removed = [];
50832
51082
  const inPlace = IN_PLACE && typeof dirty !== "string" && _isNode(dirty);
50833
51083
  if (inPlace) {
@@ -50927,10 +51177,14 @@ var require_purify_cjs = __commonJS({
50927
51177
  let cfg = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
50928
51178
  _parseConfig(cfg);
50929
51179
  SET_CONFIG = true;
51180
+ SET_CONFIG_ALLOWED_TAGS = ALLOWED_TAGS;
51181
+ SET_CONFIG_ALLOWED_ATTR = ALLOWED_ATTR;
50930
51182
  };
50931
51183
  DOMPurify.clearConfig = function() {
50932
51184
  CONFIG = null;
50933
51185
  SET_CONFIG = false;
51186
+ SET_CONFIG_ALLOWED_TAGS = null;
51187
+ SET_CONFIG_ALLOWED_ATTR = null;
50934
51188
  trustedTypesPolicy = defaultTrustedTypesPolicy;
50935
51189
  emptyHTML = "";
50936
51190
  };
@@ -50946,9 +51200,15 @@ var require_purify_cjs = __commonJS({
50946
51200
  if (typeof hookFunction !== "function") {
50947
51201
  return;
50948
51202
  }
51203
+ if (!objectHasOwnProperty(hooks, entryPoint)) {
51204
+ return;
51205
+ }
50949
51206
  arrayPush(hooks[entryPoint], hookFunction);
50950
51207
  };
50951
51208
  DOMPurify.removeHook = function(entryPoint, hookFunction) {
51209
+ if (!objectHasOwnProperty(hooks, entryPoint)) {
51210
+ return void 0;
51211
+ }
50952
51212
  if (hookFunction !== void 0) {
50953
51213
  const index = arrayLastIndexOf(hooks[entryPoint], hookFunction);
50954
51214
  return index === -1 ? void 0 : arraySplice(hooks[entryPoint], index, 1)[0];
@@ -50956,6 +51216,9 @@ var require_purify_cjs = __commonJS({
50956
51216
  return arrayPop(hooks[entryPoint]);
50957
51217
  };
50958
51218
  DOMPurify.removeHooks = function(entryPoint) {
51219
+ if (!objectHasOwnProperty(hooks, entryPoint)) {
51220
+ return;
51221
+ }
50959
51222
  hooks[entryPoint] = [];
50960
51223
  };
50961
51224
  DOMPurify.removeAllHooks = function() {
@@ -91942,7 +92205,7 @@ async function getPageHTML(api, pathToApi, {
91942
92205
  templateFileName,
91943
92206
  templateOptions,
91944
92207
  redocOptions = {},
91945
- redocCurrentVersion
92208
+ redocVersion: redocVersion2
91946
92209
  }, configPath) {
91947
92210
  logger.info("Prerendering docs\n");
91948
92211
  const apiUrl = redocOptions.specUrl || (isAbsoluteUrl(pathToApi) ? pathToApi : void 0);
@@ -91964,7 +92227,7 @@ async function getPageHTML(api, pathToApi, {
91964
92227
  Redoc.${"hydrate(__redoc_state, container)"};
91965
92228
 
91966
92229
  </script>`,
91967
- redocHead: `<script src="https://cdn.redocly.com/redoc/v${redocCurrentVersion}/bundles/redoc.standalone.js"></script>` + css,
92230
+ redocHead: `<script src="https://cdn.redocly.com/redoc/v${redocVersion2}/bundles/redoc.standalone.js" integrity="${redocStandaloneSri}" crossorigin="anonymous"></script>` + css,
91968
92231
  title: title || api.info.title || "ReDoc documentation",
91969
92232
  disableGoogleFont,
91970
92233
  templateOptions
@@ -92003,12 +92266,7 @@ var handlerBuildCommand = async ({
92003
92266
  isAbsoluteUrl(pathToApi) ? pathToApi : resolve2(pathToApi)
92004
92267
  );
92005
92268
  collectSpecData?.(api);
92006
- const pageHTML = await getPageHTML(
92007
- api,
92008
- pathToApi,
92009
- { ...options, redocCurrentVersion: redocVersion },
92010
- argv.config
92011
- );
92269
+ const pageHTML = await getPageHTML(api, pathToApi, { ...options, redocVersion }, argv.config);
92012
92270
  mkdirSync(dirname2(options.output), { recursive: true });
92013
92271
  writeFileSync(options.output, pageHTML);
92014
92272
  const sizeInKiB = Math.ceil(Buffer.byteLength(pageHTML) / 1024);
@@ -92162,7 +92420,7 @@ perfect-scrollbar/dist/perfect-scrollbar.common.js:
92162
92420
  *)
92163
92421
 
92164
92422
  dompurify/dist/purify.cjs.js:
92165
- (*! @license DOMPurify 3.4.10 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.10/LICENSE *)
92423
+ (*! @license DOMPurify 3.4.11 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.11/LICENSE *)
92166
92424
 
92167
92425
  react-dom/cjs/react-dom.production.js:
92168
92426
  (**