@uipath/pm-tool 1.198.0-preview.85 → 1.198.0-preview.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/tool.js +1094 -720
  2. package/package.json +2 -2
package/dist/tool.js CHANGED
@@ -16177,7 +16177,7 @@ var require_TimeoutError = __commonJS((exports) => {
16177
16177
  });
16178
16178
 
16179
16179
  // ../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/operators/map.js
16180
- var require_map2 = __commonJS((exports) => {
16180
+ var require_map = __commonJS((exports) => {
16181
16181
  var __extends = exports && exports.__extends || function() {
16182
16182
  var extendStatics = function(d, b) {
16183
16183
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
@@ -16199,7 +16199,7 @@ var require_map2 = __commonJS((exports) => {
16199
16199
  }();
16200
16200
  Object.defineProperty(exports, "__esModule", { value: true });
16201
16201
  var Subscriber_1 = require_Subscriber();
16202
- function map(project, thisArg) {
16202
+ function map2(project, thisArg) {
16203
16203
  return function mapOperation(source) {
16204
16204
  if (typeof project !== "function") {
16205
16205
  throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");
@@ -16207,7 +16207,7 @@ var require_map2 = __commonJS((exports) => {
16207
16207
  return source.lift(new MapOperator(project, thisArg));
16208
16208
  };
16209
16209
  }
16210
- exports.map = map;
16210
+ exports.map = map2;
16211
16211
  var MapOperator = function() {
16212
16212
  function MapOperator2(project, thisArg) {
16213
16213
  this.project = project;
@@ -16247,7 +16247,7 @@ var require_bindCallback = __commonJS((exports) => {
16247
16247
  Object.defineProperty(exports, "__esModule", { value: true });
16248
16248
  var Observable_1 = require_Observable();
16249
16249
  var AsyncSubject_1 = require_AsyncSubject();
16250
- var map_1 = require_map2();
16250
+ var map_1 = require_map();
16251
16251
  var canReportError_1 = require_canReportError();
16252
16252
  var isArray_1 = require_isArray();
16253
16253
  var isScheduler_1 = require_isScheduler();
@@ -16351,7 +16351,7 @@ var require_bindNodeCallback = __commonJS((exports) => {
16351
16351
  Object.defineProperty(exports, "__esModule", { value: true });
16352
16352
  var Observable_1 = require_Observable();
16353
16353
  var AsyncSubject_1 = require_AsyncSubject();
16354
- var map_1 = require_map2();
16354
+ var map_1 = require_map();
16355
16355
  var canReportError_1 = require_canReportError();
16356
16356
  var isScheduler_1 = require_isScheduler();
16357
16357
  var isArray_1 = require_isArray();
@@ -17141,7 +17141,7 @@ var require_mergeMap = __commonJS((exports) => {
17141
17141
  };
17142
17142
  }();
17143
17143
  Object.defineProperty(exports, "__esModule", { value: true });
17144
- var map_1 = require_map2();
17144
+ var map_1 = require_map();
17145
17145
  var from_1 = require_from();
17146
17146
  var innerSubscribe_1 = require_innerSubscribe();
17147
17147
  function mergeMap(project, resultSelector, concurrent) {
@@ -17312,7 +17312,7 @@ var require_forkJoin = __commonJS((exports) => {
17312
17312
  Object.defineProperty(exports, "__esModule", { value: true });
17313
17313
  var Observable_1 = require_Observable();
17314
17314
  var isArray_1 = require_isArray();
17315
- var map_1 = require_map2();
17315
+ var map_1 = require_map();
17316
17316
  var isObject_1 = require_isObject();
17317
17317
  var from_1 = require_from();
17318
17318
  function forkJoin() {
@@ -17392,7 +17392,7 @@ var require_fromEvent = __commonJS((exports) => {
17392
17392
  var Observable_1 = require_Observable();
17393
17393
  var isArray_1 = require_isArray();
17394
17394
  var isFunction_1 = require_isFunction();
17395
- var map_1 = require_map2();
17395
+ var map_1 = require_map();
17396
17396
  var toString = function() {
17397
17397
  return Object.prototype.toString;
17398
17398
  }();
@@ -17464,7 +17464,7 @@ var require_fromEventPattern = __commonJS((exports) => {
17464
17464
  var Observable_1 = require_Observable();
17465
17465
  var isArray_1 = require_isArray();
17466
17466
  var isFunction_1 = require_isFunction();
17467
- var map_1 = require_map2();
17467
+ var map_1 = require_map();
17468
17468
  function fromEventPattern(addHandler, removeHandler, resultSelector) {
17469
17469
  if (resultSelector) {
17470
17470
  return fromEventPattern(addHandler, removeHandler).pipe(map_1.map(function(args) {
@@ -17679,13 +17679,13 @@ var require_interval = __commonJS((exports) => {
17679
17679
  });
17680
17680
 
17681
17681
  // ../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/observable/merge.js
17682
- var require_merge2 = __commonJS((exports) => {
17682
+ var require_merge = __commonJS((exports) => {
17683
17683
  Object.defineProperty(exports, "__esModule", { value: true });
17684
17684
  var Observable_1 = require_Observable();
17685
17685
  var isScheduler_1 = require_isScheduler();
17686
17686
  var mergeAll_1 = require_mergeAll();
17687
17687
  var fromArray_1 = require_fromArray();
17688
- function merge() {
17688
+ function merge2() {
17689
17689
  var observables = [];
17690
17690
  for (var _i = 0;_i < arguments.length; _i++) {
17691
17691
  observables[_i] = arguments[_i];
@@ -17706,7 +17706,7 @@ var require_merge2 = __commonJS((exports) => {
17706
17706
  }
17707
17707
  return mergeAll_1.mergeAll(concurrent)(fromArray_1.fromArray(observables, scheduler));
17708
17708
  }
17709
- exports.merge = merge;
17709
+ exports.merge = merge2;
17710
17710
  });
17711
17711
 
17712
17712
  // ../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/observable/never.js
@@ -17757,11 +17757,11 @@ var require_onErrorResumeNext = __commonJS((exports) => {
17757
17757
  });
17758
17758
 
17759
17759
  // ../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/observable/pairs.js
17760
- var require_pairs2 = __commonJS((exports) => {
17760
+ var require_pairs = __commonJS((exports) => {
17761
17761
  Object.defineProperty(exports, "__esModule", { value: true });
17762
17762
  var Observable_1 = require_Observable();
17763
17763
  var Subscription_1 = require_Subscription();
17764
- function pairs(obj, scheduler) {
17764
+ function pairs2(obj, scheduler) {
17765
17765
  if (!scheduler) {
17766
17766
  return new Observable_1.Observable(function(subscriber) {
17767
17767
  var keys = Object.keys(obj);
@@ -17782,7 +17782,7 @@ var require_pairs2 = __commonJS((exports) => {
17782
17782
  });
17783
17783
  }
17784
17784
  }
17785
- exports.pairs = pairs;
17785
+ exports.pairs = pairs2;
17786
17786
  function dispatch(state) {
17787
17787
  var { keys, index, subscriber, subscription, obj } = state;
17788
17788
  if (!subscriber.closed) {
@@ -18441,7 +18441,7 @@ var require_rxjs = __commonJS((exports) => {
18441
18441
  exports.iif = iif_1.iif;
18442
18442
  var interval_1 = require_interval();
18443
18443
  exports.interval = interval_1.interval;
18444
- var merge_1 = require_merge2();
18444
+ var merge_1 = require_merge();
18445
18445
  exports.merge = merge_1.merge;
18446
18446
  var never_1 = require_never();
18447
18447
  exports.never = never_1.never;
@@ -18449,7 +18449,7 @@ var require_rxjs = __commonJS((exports) => {
18449
18449
  exports.of = of_1.of;
18450
18450
  var onErrorResumeNext_1 = require_onErrorResumeNext();
18451
18451
  exports.onErrorResumeNext = onErrorResumeNext_1.onErrorResumeNext;
18452
- var pairs_1 = require_pairs2();
18452
+ var pairs_1 = require_pairs();
18453
18453
  exports.pairs = pairs_1.pairs;
18454
18454
  var partition_1 = require_partition();
18455
18455
  exports.partition = partition_1.partition;
@@ -21230,7 +21230,7 @@ var init_server = __esm(() => {
21230
21230
  var package_default = {
21231
21231
  name: "@uipath/pm-tool",
21232
21232
  license: "MIT",
21233
- version: "1.198.0-preview.85",
21233
+ version: "1.198.0-preview.87",
21234
21234
  description: "Process Mining — process apps, transformations, and data ingestion.",
21235
21235
  private: false,
21236
21236
  repository: {
@@ -23372,31 +23372,17 @@ function search(data, expression, options) {
23372
23372
  }
23373
23373
 
23374
23374
  // ../../node_modules/js-yaml/dist/js-yaml.mjs
23375
- /*! js-yaml 4.2.0 https://github.com/nodeca/js-yaml @license MIT */
23376
- var __create2 = Object.create;
23377
- var __defProp2 = Object.defineProperty;
23378
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
23379
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
23380
- var __getProtoOf2 = Object.getPrototypeOf;
23381
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
23382
- var __commonJSMin = (cb, mod2) => () => (mod2 || (cb((mod2 = { exports: {} }).exports, mod2), cb = null), mod2.exports);
23383
- var __copyProps = (to, from, except, desc) => {
23384
- if (from && typeof from === "object" || typeof from === "function")
23385
- for (var keys = __getOwnPropNames2(from), i = 0, n = keys.length, key;i < n; i++) {
23386
- key = keys[i];
23387
- if (!__hasOwnProp2.call(to, key) && key !== except)
23388
- __defProp2(to, key, {
23389
- get: ((k) => from[k]).bind(null, key),
23390
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
23391
- });
23392
- }
23393
- return to;
23394
- };
23395
- var __toESM2 = (mod2, isNodeMode, target) => (target = mod2 != null ? __create2(__getProtoOf2(mod2)) : {}, __copyProps(isNodeMode || !mod2 || !mod2.__esModule ? __defProp2(target, "default", {
23396
- value: mod2,
23397
- enumerable: true
23398
- }) : target, mod2));
23399
- var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
23375
+ function getDefaultExportFromCjs(x) {
23376
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
23377
+ }
23378
+ var jsYaml = {};
23379
+ var loader = {};
23380
+ var common = {};
23381
+ var hasRequiredCommon;
23382
+ function requireCommon() {
23383
+ if (hasRequiredCommon)
23384
+ return common;
23385
+ hasRequiredCommon = 1;
23400
23386
  function isNothing(subject) {
23401
23387
  return typeof subject === "undefined" || subject === null;
23402
23388
  }
@@ -23422,55 +23408,71 @@ var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
23422
23408
  }
23423
23409
  function repeat(string, count) {
23424
23410
  let result = "";
23425
- for (let cycle = 0;cycle < count; cycle += 1)
23411
+ for (let cycle = 0;cycle < count; cycle += 1) {
23426
23412
  result += string;
23413
+ }
23427
23414
  return result;
23428
23415
  }
23429
23416
  function isNegativeZero(number) {
23430
23417
  return number === 0 && Number.NEGATIVE_INFINITY === 1 / number;
23431
23418
  }
23432
- module.exports.isNothing = isNothing;
23433
- module.exports.isObject = isObject2;
23434
- module.exports.toArray = toArray;
23435
- module.exports.repeat = repeat;
23436
- module.exports.isNegativeZero = isNegativeZero;
23437
- module.exports.extend = extend;
23438
- });
23439
- var require_exception = /* @__PURE__ */ __commonJSMin((exports, module) => {
23440
- function formatError(exception, compact) {
23419
+ common.isNothing = isNothing;
23420
+ common.isObject = isObject2;
23421
+ common.toArray = toArray;
23422
+ common.repeat = repeat;
23423
+ common.isNegativeZero = isNegativeZero;
23424
+ common.extend = extend;
23425
+ return common;
23426
+ }
23427
+ var exception;
23428
+ var hasRequiredException;
23429
+ function requireException() {
23430
+ if (hasRequiredException)
23431
+ return exception;
23432
+ hasRequiredException = 1;
23433
+ function formatError(exception2, compact) {
23441
23434
  let where = "";
23442
- const message = exception.reason || "(unknown reason)";
23443
- if (!exception.mark)
23435
+ const message = exception2.reason || "(unknown reason)";
23436
+ if (!exception2.mark)
23444
23437
  return message;
23445
- if (exception.mark.name)
23446
- where += 'in "' + exception.mark.name + '" ';
23447
- where += "(" + (exception.mark.line + 1) + ":" + (exception.mark.column + 1) + ")";
23448
- if (!compact && exception.mark.snippet)
23438
+ if (exception2.mark.name) {
23439
+ where += 'in "' + exception2.mark.name + '" ';
23440
+ }
23441
+ where += "(" + (exception2.mark.line + 1) + ":" + (exception2.mark.column + 1) + ")";
23442
+ if (!compact && exception2.mark.snippet) {
23449
23443
  where += `
23450
23444
 
23451
- ` + exception.mark.snippet;
23445
+ ` + exception2.mark.snippet;
23446
+ }
23452
23447
  return message + " " + where;
23453
23448
  }
23454
- function YAMLException(reason, mark) {
23449
+ function YAMLException2(reason, mark) {
23455
23450
  Error.call(this);
23456
23451
  this.name = "YAMLException";
23457
23452
  this.reason = reason;
23458
23453
  this.mark = mark;
23459
23454
  this.message = formatError(this, false);
23460
- if (Error.captureStackTrace)
23455
+ if (Error.captureStackTrace) {
23461
23456
  Error.captureStackTrace(this, this.constructor);
23462
- else
23463
- this.stack = (/* @__PURE__ */ new Error()).stack || "";
23457
+ } else {
23458
+ this.stack = new Error().stack || "";
23459
+ }
23464
23460
  }
23465
- YAMLException.prototype = Object.create(Error.prototype);
23466
- YAMLException.prototype.constructor = YAMLException;
23467
- YAMLException.prototype.toString = function toString(compact) {
23461
+ YAMLException2.prototype = Object.create(Error.prototype);
23462
+ YAMLException2.prototype.constructor = YAMLException2;
23463
+ YAMLException2.prototype.toString = function toString(compact) {
23468
23464
  return this.name + ": " + formatError(this, compact);
23469
23465
  };
23470
- module.exports = YAMLException;
23471
- });
23472
- var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
23473
- var common = require_common();
23466
+ exception = YAMLException2;
23467
+ return exception;
23468
+ }
23469
+ var snippet;
23470
+ var hasRequiredSnippet;
23471
+ function requireSnippet() {
23472
+ if (hasRequiredSnippet)
23473
+ return snippet;
23474
+ hasRequiredSnippet = 1;
23475
+ const common2 = requireCommon();
23474
23476
  function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
23475
23477
  let head = "";
23476
23478
  let tail = "";
@@ -23489,7 +23491,7 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
23489
23491
  };
23490
23492
  }
23491
23493
  function padStart(string, max) {
23492
- return common.repeat(" ", max - string.length) + string;
23494
+ return common2.repeat(" ", max - string.length) + string;
23493
23495
  }
23494
23496
  function makeSnippet(mark, options) {
23495
23497
  options = Object.create(options || null);
@@ -23511,8 +23513,9 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
23511
23513
  while (match = re.exec(mark.buffer)) {
23512
23514
  lineEnds.push(match.index);
23513
23515
  lineStarts.push(match.index + match[0].length);
23514
- if (mark.position <= match.index && foundLineNo < 0)
23516
+ if (mark.position <= match.index && foundLineNo < 0) {
23515
23517
  foundLineNo = lineStarts.length - 2;
23518
+ }
23516
23519
  }
23517
23520
  if (foundLineNo < 0)
23518
23521
  foundLineNo = lineStarts.length - 1;
@@ -23523,28 +23526,34 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
23523
23526
  if (foundLineNo - i < 0)
23524
23527
  break;
23525
23528
  const line2 = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength);
23526
- result = common.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + `
23529
+ result = common2.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + `
23527
23530
  ` + result;
23528
23531
  }
23529
23532
  const line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
23530
- result += common.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + `
23533
+ result += common2.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + `
23531
23534
  `;
23532
- result += common.repeat("-", options.indent + lineNoLength + 3 + line.pos) + `^
23535
+ result += common2.repeat("-", options.indent + lineNoLength + 3 + line.pos) + `^
23533
23536
  `;
23534
23537
  for (let i = 1;i <= options.linesAfter; i++) {
23535
23538
  if (foundLineNo + i >= lineEnds.length)
23536
23539
  break;
23537
23540
  const line2 = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength);
23538
- result += common.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + `
23541
+ result += common2.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + `
23539
23542
  `;
23540
23543
  }
23541
23544
  return result.replace(/\n$/, "");
23542
23545
  }
23543
- module.exports = makeSnippet;
23544
- });
23545
- var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
23546
- var YAMLException = require_exception();
23547
- var TYPE_CONSTRUCTOR_OPTIONS = [
23546
+ snippet = makeSnippet;
23547
+ return snippet;
23548
+ }
23549
+ var type;
23550
+ var hasRequiredType;
23551
+ function requireType() {
23552
+ if (hasRequiredType)
23553
+ return type;
23554
+ hasRequiredType = 1;
23555
+ const YAMLException2 = requireException();
23556
+ const TYPE_CONSTRUCTOR_OPTIONS = [
23548
23557
  "kind",
23549
23558
  "multi",
23550
23559
  "resolve",
@@ -23556,26 +23565,28 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
23556
23565
  "defaultStyle",
23557
23566
  "styleAliases"
23558
23567
  ];
23559
- var YAML_NODE_KINDS = [
23568
+ const YAML_NODE_KINDS = [
23560
23569
  "scalar",
23561
23570
  "sequence",
23562
23571
  "mapping"
23563
23572
  ];
23564
- function compileStyleAliases(map) {
23573
+ function compileStyleAliases(map2) {
23565
23574
  const result = {};
23566
- if (map !== null)
23567
- Object.keys(map).forEach(function(style) {
23568
- map[style].forEach(function(alias) {
23575
+ if (map2 !== null) {
23576
+ Object.keys(map2).forEach(function(style) {
23577
+ map2[style].forEach(function(alias) {
23569
23578
  result[String(alias)] = style;
23570
23579
  });
23571
23580
  });
23581
+ }
23572
23582
  return result;
23573
23583
  }
23574
- function Type(tag, options) {
23584
+ function Type2(tag, options) {
23575
23585
  options = options || {};
23576
23586
  Object.keys(options).forEach(function(name) {
23577
- if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1)
23578
- throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
23587
+ if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
23588
+ throw new YAMLException2('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
23589
+ }
23579
23590
  });
23580
23591
  this.options = options;
23581
23592
  this.tag = tag;
@@ -23593,21 +23604,29 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
23593
23604
  this.defaultStyle = options["defaultStyle"] || null;
23594
23605
  this.multi = options["multi"] || false;
23595
23606
  this.styleAliases = compileStyleAliases(options["styleAliases"] || null);
23596
- if (YAML_NODE_KINDS.indexOf(this.kind) === -1)
23597
- throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
23607
+ if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
23608
+ throw new YAMLException2('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
23609
+ }
23598
23610
  }
23599
- module.exports = Type;
23600
- });
23601
- var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
23602
- var YAMLException = require_exception();
23603
- var Type = require_type();
23604
- function compileList(schema, name) {
23611
+ type = Type2;
23612
+ return type;
23613
+ }
23614
+ var schema;
23615
+ var hasRequiredSchema;
23616
+ function requireSchema() {
23617
+ if (hasRequiredSchema)
23618
+ return schema;
23619
+ hasRequiredSchema = 1;
23620
+ const YAMLException2 = requireException();
23621
+ const Type2 = requireType();
23622
+ function compileList(schema2, name) {
23605
23623
  const result = [];
23606
- schema[name].forEach(function(currentType) {
23624
+ schema2[name].forEach(function(currentType) {
23607
23625
  let newIndex = result.length;
23608
23626
  result.forEach(function(previousType, previousIndex) {
23609
- if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi)
23627
+ if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) {
23610
23628
  newIndex = previousIndex;
23629
+ }
23611
23630
  });
23612
23631
  result[newIndex] = currentType;
23613
23632
  });
@@ -23626,47 +23645,54 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
23626
23645
  fallback: []
23627
23646
  }
23628
23647
  };
23629
- function collectType(type) {
23630
- if (type.multi) {
23631
- result.multi[type.kind].push(type);
23632
- result.multi["fallback"].push(type);
23633
- } else
23634
- result[type.kind][type.tag] = result["fallback"][type.tag] = type;
23648
+ function collectType(type2) {
23649
+ if (type2.multi) {
23650
+ result.multi[type2.kind].push(type2);
23651
+ result.multi["fallback"].push(type2);
23652
+ } else {
23653
+ result[type2.kind][type2.tag] = result["fallback"][type2.tag] = type2;
23654
+ }
23635
23655
  }
23636
- for (let index = 0, length = arguments.length;index < length; index += 1)
23656
+ for (let index = 0, length = arguments.length;index < length; index += 1) {
23637
23657
  arguments[index].forEach(collectType);
23658
+ }
23638
23659
  return result;
23639
23660
  }
23640
- function Schema(definition) {
23661
+ function Schema2(definition) {
23641
23662
  return this.extend(definition);
23642
23663
  }
23643
- Schema.prototype.extend = function extend(definition) {
23664
+ Schema2.prototype.extend = function extend(definition) {
23644
23665
  let implicit = [];
23645
23666
  let explicit = [];
23646
- if (definition instanceof Type)
23667
+ if (definition instanceof Type2) {
23647
23668
  explicit.push(definition);
23648
- else if (Array.isArray(definition))
23669
+ } else if (Array.isArray(definition)) {
23649
23670
  explicit = explicit.concat(definition);
23650
- else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
23671
+ } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
23651
23672
  if (definition.implicit)
23652
23673
  implicit = implicit.concat(definition.implicit);
23653
23674
  if (definition.explicit)
23654
23675
  explicit = explicit.concat(definition.explicit);
23655
- } else
23656
- throw new YAMLException("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
23657
- implicit.forEach(function(type) {
23658
- if (!(type instanceof Type))
23659
- throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
23660
- if (type.loadKind && type.loadKind !== "scalar")
23661
- throw new YAMLException("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
23662
- if (type.multi)
23663
- throw new YAMLException("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
23676
+ } else {
23677
+ throw new YAMLException2("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
23678
+ }
23679
+ implicit.forEach(function(type2) {
23680
+ if (!(type2 instanceof Type2)) {
23681
+ throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
23682
+ }
23683
+ if (type2.loadKind && type2.loadKind !== "scalar") {
23684
+ throw new YAMLException2("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
23685
+ }
23686
+ if (type2.multi) {
23687
+ throw new YAMLException2("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
23688
+ }
23664
23689
  });
23665
- explicit.forEach(function(type) {
23666
- if (!(type instanceof Type))
23667
- throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
23690
+ explicit.forEach(function(type2) {
23691
+ if (!(type2 instanceof Type2)) {
23692
+ throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
23693
+ }
23668
23694
  });
23669
- const result = Object.create(Schema.prototype);
23695
+ const result = Object.create(Schema2.prototype);
23670
23696
  result.implicit = (this.implicit || []).concat(implicit);
23671
23697
  result.explicit = (this.explicit || []).concat(explicit);
23672
23698
  result.compiledImplicit = compileList(result, "implicit");
@@ -23674,41 +23700,77 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
23674
23700
  result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);
23675
23701
  return result;
23676
23702
  };
23677
- module.exports = Schema;
23678
- });
23679
- var require_str = /* @__PURE__ */ __commonJSMin((exports, module) => {
23680
- module.exports = new (require_type())("tag:yaml.org,2002:str", {
23703
+ schema = Schema2;
23704
+ return schema;
23705
+ }
23706
+ var str;
23707
+ var hasRequiredStr;
23708
+ function requireStr() {
23709
+ if (hasRequiredStr)
23710
+ return str;
23711
+ hasRequiredStr = 1;
23712
+ const Type2 = requireType();
23713
+ str = new Type2("tag:yaml.org,2002:str", {
23681
23714
  kind: "scalar",
23682
23715
  construct: function(data) {
23683
23716
  return data !== null ? data : "";
23684
23717
  }
23685
23718
  });
23686
- });
23687
- var require_seq = /* @__PURE__ */ __commonJSMin((exports, module) => {
23688
- module.exports = new (require_type())("tag:yaml.org,2002:seq", {
23719
+ return str;
23720
+ }
23721
+ var seq;
23722
+ var hasRequiredSeq;
23723
+ function requireSeq() {
23724
+ if (hasRequiredSeq)
23725
+ return seq;
23726
+ hasRequiredSeq = 1;
23727
+ const Type2 = requireType();
23728
+ seq = new Type2("tag:yaml.org,2002:seq", {
23689
23729
  kind: "sequence",
23690
23730
  construct: function(data) {
23691
23731
  return data !== null ? data : [];
23692
23732
  }
23693
23733
  });
23694
- });
23695
- var require_map = /* @__PURE__ */ __commonJSMin((exports, module) => {
23696
- module.exports = new (require_type())("tag:yaml.org,2002:map", {
23734
+ return seq;
23735
+ }
23736
+ var map;
23737
+ var hasRequiredMap;
23738
+ function requireMap() {
23739
+ if (hasRequiredMap)
23740
+ return map;
23741
+ hasRequiredMap = 1;
23742
+ const Type2 = requireType();
23743
+ map = new Type2("tag:yaml.org,2002:map", {
23697
23744
  kind: "mapping",
23698
23745
  construct: function(data) {
23699
23746
  return data !== null ? data : {};
23700
23747
  }
23701
23748
  });
23702
- });
23703
- var require_failsafe = /* @__PURE__ */ __commonJSMin((exports, module) => {
23704
- module.exports = new (require_schema())({ explicit: [
23705
- require_str(),
23706
- require_seq(),
23707
- require_map()
23708
- ] });
23709
- });
23710
- var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
23711
- var Type = require_type();
23749
+ return map;
23750
+ }
23751
+ var failsafe;
23752
+ var hasRequiredFailsafe;
23753
+ function requireFailsafe() {
23754
+ if (hasRequiredFailsafe)
23755
+ return failsafe;
23756
+ hasRequiredFailsafe = 1;
23757
+ const Schema2 = requireSchema();
23758
+ failsafe = new Schema2({
23759
+ explicit: [
23760
+ requireStr(),
23761
+ requireSeq(),
23762
+ requireMap()
23763
+ ]
23764
+ });
23765
+ return failsafe;
23766
+ }
23767
+ var _null;
23768
+ var hasRequired_null;
23769
+ function require_null() {
23770
+ if (hasRequired_null)
23771
+ return _null;
23772
+ hasRequired_null = 1;
23773
+ const Type2 = requireType();
23712
23774
  function resolveYamlNull(data) {
23713
23775
  if (data === null)
23714
23776
  return true;
@@ -23721,7 +23783,7 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
23721
23783
  function isNull(object) {
23722
23784
  return object === null;
23723
23785
  }
23724
- module.exports = new Type("tag:yaml.org,2002:null", {
23786
+ _null = new Type2("tag:yaml.org,2002:null", {
23725
23787
  kind: "scalar",
23726
23788
  resolve: resolveYamlNull,
23727
23789
  construct: constructYamlNull,
@@ -23745,9 +23807,15 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
23745
23807
  },
23746
23808
  defaultStyle: "lowercase"
23747
23809
  });
23748
- });
23749
- var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
23750
- var Type = require_type();
23810
+ return _null;
23811
+ }
23812
+ var bool;
23813
+ var hasRequiredBool;
23814
+ function requireBool() {
23815
+ if (hasRequiredBool)
23816
+ return bool;
23817
+ hasRequiredBool = 1;
23818
+ const Type2 = requireType();
23751
23819
  function resolveYamlBoolean(data) {
23752
23820
  if (data === null)
23753
23821
  return false;
@@ -23760,7 +23828,7 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
23760
23828
  function isBoolean(object) {
23761
23829
  return Object.prototype.toString.call(object) === "[object Boolean]";
23762
23830
  }
23763
- module.exports = new Type("tag:yaml.org,2002:bool", {
23831
+ bool = new Type2("tag:yaml.org,2002:bool", {
23764
23832
  kind: "scalar",
23765
23833
  resolve: resolveYamlBoolean,
23766
23834
  construct: constructYamlBoolean,
@@ -23778,10 +23846,16 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
23778
23846
  },
23779
23847
  defaultStyle: "lowercase"
23780
23848
  });
23781
- });
23782
- var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
23783
- var common = require_common();
23784
- var Type = require_type();
23849
+ return bool;
23850
+ }
23851
+ var int;
23852
+ var hasRequiredInt;
23853
+ function requireInt() {
23854
+ if (hasRequiredInt)
23855
+ return int;
23856
+ hasRequiredInt = 1;
23857
+ const common2 = requireCommon();
23858
+ const Type2 = requireType();
23785
23859
  function isHexCode(c) {
23786
23860
  return c >= 48 && c <= 57 || c >= 65 && c <= 70 || c >= 97 && c <= 102;
23787
23861
  }
@@ -23800,8 +23874,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
23800
23874
  if (!max)
23801
23875
  return false;
23802
23876
  let ch = data[index];
23803
- if (ch === "-" || ch === "+")
23877
+ if (ch === "-" || ch === "+") {
23804
23878
  ch = data[++index];
23879
+ }
23805
23880
  if (ch === "0") {
23806
23881
  if (index + 1 === max)
23807
23882
  return true;
@@ -23814,7 +23889,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
23814
23889
  return false;
23815
23890
  hasDigits = true;
23816
23891
  }
23817
- return hasDigits && Number.isFinite(parseYamlInteger(data));
23892
+ return hasDigits && isFinite(parseYamlInteger(data));
23818
23893
  }
23819
23894
  if (ch === "x") {
23820
23895
  index++;
@@ -23823,7 +23898,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
23823
23898
  return false;
23824
23899
  hasDigits = true;
23825
23900
  }
23826
- return hasDigits && Number.isFinite(parseYamlInteger(data));
23901
+ return hasDigits && isFinite(parseYamlInteger(data));
23827
23902
  }
23828
23903
  if (ch === "o") {
23829
23904
  index++;
@@ -23832,17 +23907,18 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
23832
23907
  return false;
23833
23908
  hasDigits = true;
23834
23909
  }
23835
- return hasDigits && Number.isFinite(parseYamlInteger(data));
23910
+ return hasDigits && isFinite(parseYamlInteger(data));
23836
23911
  }
23837
23912
  }
23838
23913
  for (;index < max; index++) {
23839
- if (!isDecCode(data.charCodeAt(index)))
23914
+ if (!isDecCode(data.charCodeAt(index))) {
23840
23915
  return false;
23916
+ }
23841
23917
  hasDigits = true;
23842
23918
  }
23843
23919
  if (!hasDigits)
23844
23920
  return false;
23845
- return Number.isFinite(parseYamlInteger(data));
23921
+ return isFinite(parseYamlInteger(data));
23846
23922
  }
23847
23923
  function parseYamlInteger(data) {
23848
23924
  let value = data;
@@ -23870,9 +23946,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
23870
23946
  return parseYamlInteger(data);
23871
23947
  }
23872
23948
  function isInteger(object) {
23873
- return Object.prototype.toString.call(object) === "[object Number]" && object % 1 === 0 && !common.isNegativeZero(object);
23949
+ return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 === 0 && !common2.isNegativeZero(object));
23874
23950
  }
23875
- module.exports = new Type("tag:yaml.org,2002:int", {
23951
+ int = new Type2("tag:yaml.org,2002:int", {
23876
23952
  kind: "scalar",
23877
23953
  resolve: resolveYamlInteger,
23878
23954
  construct: constructYamlInteger,
@@ -23899,35 +23975,45 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
23899
23975
  hexadecimal: [16, "hex"]
23900
23976
  }
23901
23977
  });
23902
- });
23903
- var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
23904
- var common = require_common();
23905
- var Type = require_type();
23906
- var YAML_FLOAT_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
23907
- var YAML_FLOAT_SPECIAL_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
23978
+ return int;
23979
+ }
23980
+ var float;
23981
+ var hasRequiredFloat;
23982
+ function requireFloat() {
23983
+ if (hasRequiredFloat)
23984
+ return float;
23985
+ hasRequiredFloat = 1;
23986
+ const common2 = requireCommon();
23987
+ const Type2 = requireType();
23988
+ const YAML_FLOAT_PATTERN = new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
23989
+ const YAML_FLOAT_SPECIAL_PATTERN = new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
23908
23990
  function resolveYamlFloat(data) {
23909
23991
  if (data === null)
23910
23992
  return false;
23911
- if (!YAML_FLOAT_PATTERN.test(data))
23993
+ if (!YAML_FLOAT_PATTERN.test(data)) {
23912
23994
  return false;
23913
- if (Number.isFinite(parseFloat(data, 10)))
23995
+ }
23996
+ if (isFinite(parseFloat(data, 10))) {
23914
23997
  return true;
23998
+ }
23915
23999
  return YAML_FLOAT_SPECIAL_PATTERN.test(data);
23916
24000
  }
23917
24001
  function constructYamlFloat(data) {
23918
24002
  let value = data.toLowerCase();
23919
24003
  const sign = value[0] === "-" ? -1 : 1;
23920
- if ("+-".indexOf(value[0]) >= 0)
24004
+ if ("+-".indexOf(value[0]) >= 0) {
23921
24005
  value = value.slice(1);
23922
- if (value === ".inf")
24006
+ }
24007
+ if (value === ".inf") {
23923
24008
  return sign === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
23924
- else if (value === ".nan")
24009
+ } else if (value === ".nan") {
23925
24010
  return NaN;
24011
+ }
23926
24012
  return sign * parseFloat(value, 10);
23927
24013
  }
23928
- var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
24014
+ const SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
23929
24015
  function representYamlFloat(object, style) {
23930
- if (isNaN(object))
24016
+ if (isNaN(object)) {
23931
24017
  switch (style) {
23932
24018
  case "lowercase":
23933
24019
  return ".nan";
@@ -23936,7 +24022,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
23936
24022
  case "camelcase":
23937
24023
  return ".NaN";
23938
24024
  }
23939
- else if (Number.POSITIVE_INFINITY === object)
24025
+ } else if (Number.POSITIVE_INFINITY === object) {
23940
24026
  switch (style) {
23941
24027
  case "lowercase":
23942
24028
  return ".inf";
@@ -23945,7 +24031,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
23945
24031
  case "camelcase":
23946
24032
  return ".Inf";
23947
24033
  }
23948
- else if (Number.NEGATIVE_INFINITY === object)
24034
+ } else if (Number.NEGATIVE_INFINITY === object) {
23949
24035
  switch (style) {
23950
24036
  case "lowercase":
23951
24037
  return "-.inf";
@@ -23954,15 +24040,16 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
23954
24040
  case "camelcase":
23955
24041
  return "-.Inf";
23956
24042
  }
23957
- else if (common.isNegativeZero(object))
24043
+ } else if (common2.isNegativeZero(object)) {
23958
24044
  return "-0.0";
24045
+ }
23959
24046
  const res = object.toString(10);
23960
24047
  return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
23961
24048
  }
23962
24049
  function isFloat(object) {
23963
- return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common.isNegativeZero(object));
24050
+ return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common2.isNegativeZero(object));
23964
24051
  }
23965
- module.exports = new Type("tag:yaml.org,2002:float", {
24052
+ float = new Type2("tag:yaml.org,2002:float", {
23966
24053
  kind: "scalar",
23967
24054
  resolve: resolveYamlFloat,
23968
24055
  construct: constructYamlFloat,
@@ -23970,22 +24057,42 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
23970
24057
  represent: representYamlFloat,
23971
24058
  defaultStyle: "lowercase"
23972
24059
  });
23973
- });
23974
- var require_json = /* @__PURE__ */ __commonJSMin((exports, module) => {
23975
- module.exports = require_failsafe().extend({ implicit: [
23976
- require_null(),
23977
- require_bool(),
23978
- require_int(),
23979
- require_float()
23980
- ] });
23981
- });
23982
- var require_core = /* @__PURE__ */ __commonJSMin((exports, module) => {
23983
- module.exports = require_json();
23984
- });
23985
- var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
23986
- var Type = require_type();
23987
- var YAML_DATE_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
23988
- var YAML_TIMESTAMP_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
24060
+ return float;
24061
+ }
24062
+ var json;
24063
+ var hasRequiredJson;
24064
+ function requireJson() {
24065
+ if (hasRequiredJson)
24066
+ return json;
24067
+ hasRequiredJson = 1;
24068
+ json = requireFailsafe().extend({
24069
+ implicit: [
24070
+ require_null(),
24071
+ requireBool(),
24072
+ requireInt(),
24073
+ requireFloat()
24074
+ ]
24075
+ });
24076
+ return json;
24077
+ }
24078
+ var core;
24079
+ var hasRequiredCore;
24080
+ function requireCore() {
24081
+ if (hasRequiredCore)
24082
+ return core;
24083
+ hasRequiredCore = 1;
24084
+ core = requireJson();
24085
+ return core;
24086
+ }
24087
+ var timestamp;
24088
+ var hasRequiredTimestamp;
24089
+ function requireTimestamp() {
24090
+ if (hasRequiredTimestamp)
24091
+ return timestamp;
24092
+ hasRequiredTimestamp = 1;
24093
+ const Type2 = requireType();
24094
+ const YAML_DATE_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
24095
+ const YAML_TIMESTAMP_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
23989
24096
  function resolveYamlTimestamp(data) {
23990
24097
  if (data === null)
23991
24098
  return false;
@@ -24006,15 +24113,17 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
24006
24113
  const year = +match[1];
24007
24114
  const month = +match[2] - 1;
24008
24115
  const day = +match[3];
24009
- if (!match[4])
24116
+ if (!match[4]) {
24010
24117
  return new Date(Date.UTC(year, month, day));
24118
+ }
24011
24119
  const hour = +match[4];
24012
24120
  const minute = +match[5];
24013
24121
  const second = +match[6];
24014
24122
  if (match[7]) {
24015
24123
  fraction = match[7].slice(0, 3);
24016
- while (fraction.length < 3)
24124
+ while (fraction.length < 3) {
24017
24125
  fraction += "0";
24126
+ }
24018
24127
  fraction = +fraction;
24019
24128
  }
24020
24129
  if (match[9]) {
@@ -24032,36 +24141,48 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
24032
24141
  function representYamlTimestamp(object) {
24033
24142
  return object.toISOString();
24034
24143
  }
24035
- module.exports = new Type("tag:yaml.org,2002:timestamp", {
24144
+ timestamp = new Type2("tag:yaml.org,2002:timestamp", {
24036
24145
  kind: "scalar",
24037
24146
  resolve: resolveYamlTimestamp,
24038
24147
  construct: constructYamlTimestamp,
24039
24148
  instanceOf: Date,
24040
24149
  represent: representYamlTimestamp
24041
24150
  });
24042
- });
24043
- var require_merge = /* @__PURE__ */ __commonJSMin((exports, module) => {
24044
- var Type = require_type();
24151
+ return timestamp;
24152
+ }
24153
+ var merge;
24154
+ var hasRequiredMerge;
24155
+ function requireMerge() {
24156
+ if (hasRequiredMerge)
24157
+ return merge;
24158
+ hasRequiredMerge = 1;
24159
+ const Type2 = requireType();
24045
24160
  function resolveYamlMerge(data) {
24046
24161
  return data === "<<" || data === null;
24047
24162
  }
24048
- module.exports = new Type("tag:yaml.org,2002:merge", {
24163
+ merge = new Type2("tag:yaml.org,2002:merge", {
24049
24164
  kind: "scalar",
24050
24165
  resolve: resolveYamlMerge
24051
24166
  });
24052
- });
24053
- var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
24054
- var Type = require_type();
24055
- var BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
24167
+ return merge;
24168
+ }
24169
+ var binary;
24170
+ var hasRequiredBinary;
24171
+ function requireBinary() {
24172
+ if (hasRequiredBinary)
24173
+ return binary;
24174
+ hasRequiredBinary = 1;
24175
+ const Type2 = requireType();
24176
+ const BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
24056
24177
  \r`;
24057
24178
  function resolveYamlBinary(data) {
24058
24179
  if (data === null)
24059
24180
  return false;
24060
24181
  let bitlen = 0;
24061
24182
  const max = data.length;
24062
- const map = BASE64_MAP;
24183
+ const map2 = BASE64_MAP;
24063
24184
  for (let idx = 0;idx < max; idx++) {
24064
- const code = map.indexOf(data.charAt(idx));
24185
+ const code = map2.indexOf(data.charAt(idx));
24065
24186
  if (code > 64)
24066
24187
  continue;
24067
24188
  if (code < 0)
@@ -24073,7 +24194,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
24073
24194
  function constructYamlBinary(data) {
24074
24195
  const input = data.replace(/[\r\n=]/g, "");
24075
24196
  const max = input.length;
24076
- const map = BASE64_MAP;
24197
+ const map2 = BASE64_MAP;
24077
24198
  let bits = 0;
24078
24199
  const result = [];
24079
24200
  for (let idx = 0;idx < max; idx++) {
@@ -24082,7 +24203,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
24082
24203
  result.push(bits >> 8 & 255);
24083
24204
  result.push(bits & 255);
24084
24205
  }
24085
- bits = bits << 6 | map.indexOf(input.charAt(idx));
24206
+ bits = bits << 6 | map2.indexOf(input.charAt(idx));
24086
24207
  }
24087
24208
  const tailbits = max % 4 * 6;
24088
24209
  if (tailbits === 0) {
@@ -24092,58 +24213,65 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
24092
24213
  } else if (tailbits === 18) {
24093
24214
  result.push(bits >> 10 & 255);
24094
24215
  result.push(bits >> 2 & 255);
24095
- } else if (tailbits === 12)
24216
+ } else if (tailbits === 12) {
24096
24217
  result.push(bits >> 4 & 255);
24218
+ }
24097
24219
  return new Uint8Array(result);
24098
24220
  }
24099
24221
  function representYamlBinary(object) {
24100
24222
  let result = "";
24101
24223
  let bits = 0;
24102
24224
  const max = object.length;
24103
- const map = BASE64_MAP;
24225
+ const map2 = BASE64_MAP;
24104
24226
  for (let idx = 0;idx < max; idx++) {
24105
24227
  if (idx % 3 === 0 && idx) {
24106
- result += map[bits >> 18 & 63];
24107
- result += map[bits >> 12 & 63];
24108
- result += map[bits >> 6 & 63];
24109
- result += map[bits & 63];
24228
+ result += map2[bits >> 18 & 63];
24229
+ result += map2[bits >> 12 & 63];
24230
+ result += map2[bits >> 6 & 63];
24231
+ result += map2[bits & 63];
24110
24232
  }
24111
24233
  bits = (bits << 8) + object[idx];
24112
24234
  }
24113
24235
  const tail = max % 3;
24114
24236
  if (tail === 0) {
24115
- result += map[bits >> 18 & 63];
24116
- result += map[bits >> 12 & 63];
24117
- result += map[bits >> 6 & 63];
24118
- result += map[bits & 63];
24237
+ result += map2[bits >> 18 & 63];
24238
+ result += map2[bits >> 12 & 63];
24239
+ result += map2[bits >> 6 & 63];
24240
+ result += map2[bits & 63];
24119
24241
  } else if (tail === 2) {
24120
- result += map[bits >> 10 & 63];
24121
- result += map[bits >> 4 & 63];
24122
- result += map[bits << 2 & 63];
24123
- result += map[64];
24242
+ result += map2[bits >> 10 & 63];
24243
+ result += map2[bits >> 4 & 63];
24244
+ result += map2[bits << 2 & 63];
24245
+ result += map2[64];
24124
24246
  } else if (tail === 1) {
24125
- result += map[bits >> 2 & 63];
24126
- result += map[bits << 4 & 63];
24127
- result += map[64];
24128
- result += map[64];
24247
+ result += map2[bits >> 2 & 63];
24248
+ result += map2[bits << 4 & 63];
24249
+ result += map2[64];
24250
+ result += map2[64];
24129
24251
  }
24130
24252
  return result;
24131
24253
  }
24132
24254
  function isBinary(obj) {
24133
24255
  return Object.prototype.toString.call(obj) === "[object Uint8Array]";
24134
24256
  }
24135
- module.exports = new Type("tag:yaml.org,2002:binary", {
24257
+ binary = new Type2("tag:yaml.org,2002:binary", {
24136
24258
  kind: "scalar",
24137
24259
  resolve: resolveYamlBinary,
24138
24260
  construct: constructYamlBinary,
24139
24261
  predicate: isBinary,
24140
24262
  represent: representYamlBinary
24141
24263
  });
24142
- });
24143
- var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
24144
- var Type = require_type();
24145
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
24146
- var _toString = Object.prototype.toString;
24264
+ return binary;
24265
+ }
24266
+ var omap;
24267
+ var hasRequiredOmap;
24268
+ function requireOmap() {
24269
+ if (hasRequiredOmap)
24270
+ return omap;
24271
+ hasRequiredOmap = 1;
24272
+ const Type2 = requireType();
24273
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
24274
+ const _toString = Object.prototype.toString;
24147
24275
  function resolveYamlOmap(data) {
24148
24276
  if (data === null)
24149
24277
  return true;
@@ -24155,12 +24283,14 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
24155
24283
  if (_toString.call(pair) !== "[object Object]")
24156
24284
  return false;
24157
24285
  let pairKey;
24158
- for (pairKey in pair)
24159
- if (_hasOwnProperty.call(pair, pairKey))
24286
+ for (pairKey in pair) {
24287
+ if (_hasOwnProperty.call(pair, pairKey)) {
24160
24288
  if (!pairHasKey)
24161
24289
  pairHasKey = true;
24162
24290
  else
24163
24291
  return false;
24292
+ }
24293
+ }
24164
24294
  if (!pairHasKey)
24165
24295
  return false;
24166
24296
  if (objectKeys.indexOf(pairKey) === -1)
@@ -24173,15 +24303,21 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
24173
24303
  function constructYamlOmap(data) {
24174
24304
  return data !== null ? data : [];
24175
24305
  }
24176
- module.exports = new Type("tag:yaml.org,2002:omap", {
24306
+ omap = new Type2("tag:yaml.org,2002:omap", {
24177
24307
  kind: "sequence",
24178
24308
  resolve: resolveYamlOmap,
24179
24309
  construct: constructYamlOmap
24180
24310
  });
24181
- });
24182
- var require_pairs = /* @__PURE__ */ __commonJSMin((exports, module) => {
24183
- var Type = require_type();
24184
- var _toString = Object.prototype.toString;
24311
+ return omap;
24312
+ }
24313
+ var pairs;
24314
+ var hasRequiredPairs;
24315
+ function requirePairs() {
24316
+ if (hasRequiredPairs)
24317
+ return pairs;
24318
+ hasRequiredPairs = 1;
24319
+ const Type2 = requireType();
24320
+ const _toString = Object.prototype.toString;
24185
24321
  function resolveYamlPairs(data) {
24186
24322
  if (data === null)
24187
24323
  return true;
@@ -24210,64 +24346,85 @@ var require_pairs = /* @__PURE__ */ __commonJSMin((exports, module) => {
24210
24346
  }
24211
24347
  return result;
24212
24348
  }
24213
- module.exports = new Type("tag:yaml.org,2002:pairs", {
24349
+ pairs = new Type2("tag:yaml.org,2002:pairs", {
24214
24350
  kind: "sequence",
24215
24351
  resolve: resolveYamlPairs,
24216
24352
  construct: constructYamlPairs
24217
24353
  });
24218
- });
24219
- var require_set = /* @__PURE__ */ __commonJSMin((exports, module) => {
24220
- var Type = require_type();
24221
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
24354
+ return pairs;
24355
+ }
24356
+ var set;
24357
+ var hasRequiredSet;
24358
+ function requireSet() {
24359
+ if (hasRequiredSet)
24360
+ return set;
24361
+ hasRequiredSet = 1;
24362
+ const Type2 = requireType();
24363
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
24222
24364
  function resolveYamlSet(data) {
24223
24365
  if (data === null)
24224
24366
  return true;
24225
24367
  const object = data;
24226
- for (const key in object)
24368
+ for (const key in object) {
24227
24369
  if (_hasOwnProperty.call(object, key)) {
24228
24370
  if (object[key] !== null)
24229
24371
  return false;
24230
24372
  }
24373
+ }
24231
24374
  return true;
24232
24375
  }
24233
24376
  function constructYamlSet(data) {
24234
24377
  return data !== null ? data : {};
24235
24378
  }
24236
- module.exports = new Type("tag:yaml.org,2002:set", {
24379
+ set = new Type2("tag:yaml.org,2002:set", {
24237
24380
  kind: "mapping",
24238
24381
  resolve: resolveYamlSet,
24239
24382
  construct: constructYamlSet
24240
24383
  });
24241
- });
24242
- var require_default = /* @__PURE__ */ __commonJSMin((exports, module) => {
24243
- module.exports = require_core().extend({
24244
- implicit: [require_timestamp(), require_merge()],
24384
+ return set;
24385
+ }
24386
+ var _default;
24387
+ var hasRequired_default;
24388
+ function require_default() {
24389
+ if (hasRequired_default)
24390
+ return _default;
24391
+ hasRequired_default = 1;
24392
+ _default = requireCore().extend({
24393
+ implicit: [
24394
+ requireTimestamp(),
24395
+ requireMerge()
24396
+ ],
24245
24397
  explicit: [
24246
- require_binary(),
24247
- require_omap(),
24248
- require_pairs(),
24249
- require_set()
24398
+ requireBinary(),
24399
+ requireOmap(),
24400
+ requirePairs(),
24401
+ requireSet()
24250
24402
  ]
24251
24403
  });
24252
- });
24253
- var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24254
- var common = require_common();
24255
- var YAMLException = require_exception();
24256
- var makeSnippet = require_snippet();
24257
- var DEFAULT_SCHEMA = require_default();
24258
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
24259
- var CONTEXT_FLOW_IN = 1;
24260
- var CONTEXT_FLOW_OUT = 2;
24261
- var CONTEXT_BLOCK_IN = 3;
24262
- var CONTEXT_BLOCK_OUT = 4;
24263
- var CHOMPING_CLIP = 1;
24264
- var CHOMPING_STRIP = 2;
24265
- var CHOMPING_KEEP = 3;
24266
- var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
24267
- var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
24268
- var PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
24269
- var PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
24270
- var PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
24404
+ return _default;
24405
+ }
24406
+ var hasRequiredLoader;
24407
+ function requireLoader() {
24408
+ if (hasRequiredLoader)
24409
+ return loader;
24410
+ hasRequiredLoader = 1;
24411
+ const common2 = requireCommon();
24412
+ const YAMLException2 = requireException();
24413
+ const makeSnippet = requireSnippet();
24414
+ const DEFAULT_SCHEMA2 = require_default();
24415
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
24416
+ const CONTEXT_FLOW_IN = 1;
24417
+ const CONTEXT_FLOW_OUT = 2;
24418
+ const CONTEXT_BLOCK_IN = 3;
24419
+ const CONTEXT_BLOCK_OUT = 4;
24420
+ const CHOMPING_CLIP = 1;
24421
+ const CHOMPING_STRIP = 2;
24422
+ const CHOMPING_KEEP = 3;
24423
+ const PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
24424
+ const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
24425
+ const PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
24426
+ const PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
24427
+ const PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
24271
24428
  function _class(obj) {
24272
24429
  return Object.prototype.toString.call(obj);
24273
24430
  }
@@ -24284,25 +24441,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24284
24441
  return c === 44 || c === 91 || c === 93 || c === 123 || c === 125;
24285
24442
  }
24286
24443
  function fromHexCode(c) {
24287
- if (c >= 48 && c <= 57)
24444
+ if (c >= 48 && c <= 57) {
24288
24445
  return c - 48;
24446
+ }
24289
24447
  const lc = c | 32;
24290
- if (lc >= 97 && lc <= 102)
24448
+ if (lc >= 97 && lc <= 102) {
24291
24449
  return lc - 97 + 10;
24450
+ }
24292
24451
  return -1;
24293
24452
  }
24294
24453
  function escapedHexLen(c) {
24295
- if (c === 120)
24454
+ if (c === 120) {
24296
24455
  return 2;
24297
- if (c === 117)
24456
+ }
24457
+ if (c === 117) {
24298
24458
  return 4;
24299
- if (c === 85)
24459
+ }
24460
+ if (c === 85) {
24300
24461
  return 8;
24462
+ }
24301
24463
  return 0;
24302
24464
  }
24303
24465
  function fromDecimalCode(c) {
24304
- if (c >= 48 && c <= 57)
24466
+ if (c >= 48 && c <= 57) {
24305
24467
  return c - 48;
24468
+ }
24306
24469
  return -1;
24307
24470
  }
24308
24471
  function simpleEscapeSequence(c) {
@@ -24349,23 +24512,25 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24349
24512
  }
24350
24513
  }
24351
24514
  function charFromCodepoint(c) {
24352
- if (c <= 65535)
24515
+ if (c <= 65535) {
24353
24516
  return String.fromCharCode(c);
24517
+ }
24354
24518
  return String.fromCharCode((c - 65536 >> 10) + 55296, (c - 65536 & 1023) + 56320);
24355
24519
  }
24356
24520
  function setProperty(object, key, value) {
24357
- if (key === "__proto__")
24521
+ if (key === "__proto__") {
24358
24522
  Object.defineProperty(object, key, {
24359
24523
  configurable: true,
24360
24524
  enumerable: true,
24361
24525
  writable: true,
24362
24526
  value
24363
24527
  });
24364
- else
24528
+ } else {
24365
24529
  object[key] = value;
24530
+ }
24366
24531
  }
24367
- var simpleEscapeCheck = new Array(256);
24368
- var simpleEscapeMap = new Array(256);
24532
+ const simpleEscapeCheck = new Array(256);
24533
+ const simpleEscapeMap = new Array(256);
24369
24534
  for (let i = 0;i < 256; i++) {
24370
24535
  simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
24371
24536
  simpleEscapeMap[i] = simpleEscapeSequence(i);
@@ -24373,13 +24538,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24373
24538
  function State(input, options) {
24374
24539
  this.input = input;
24375
24540
  this.filename = options["filename"] || null;
24376
- this.schema = options["schema"] || DEFAULT_SCHEMA;
24541
+ this.schema = options["schema"] || DEFAULT_SCHEMA2;
24377
24542
  this.onWarning = options["onWarning"] || null;
24378
24543
  this.legacy = options["legacy"] || false;
24379
24544
  this.json = options["json"] || false;
24380
24545
  this.listener = options["listener"] || null;
24381
24546
  this.maxDepth = typeof options["maxDepth"] === "number" ? options["maxDepth"] : 100;
24382
- this.maxMergeSeqLength = typeof options["maxMergeSeqLength"] === "number" ? options["maxMergeSeqLength"] : 20;
24547
+ this.maxTotalMergeKeys = typeof options["maxTotalMergeKeys"] === "number" ? options["maxTotalMergeKeys"] : 1e4;
24383
24548
  this.implicitTypes = this.schema.compiledImplicit;
24384
24549
  this.typeMap = this.schema.compiledTypeMap;
24385
24550
  this.length = input.length;
@@ -24388,6 +24553,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24388
24553
  this.lineStart = 0;
24389
24554
  this.lineIndent = 0;
24390
24555
  this.depth = 0;
24556
+ this.totalMergeKeys = 0;
24391
24557
  this.firstTabInLine = -1;
24392
24558
  this.documents = [];
24393
24559
  this.anchorMapTransactions = [];
@@ -24401,29 +24567,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24401
24567
  column: state.position - state.lineStart
24402
24568
  };
24403
24569
  mark.snippet = makeSnippet(mark);
24404
- return new YAMLException(message, mark);
24570
+ return new YAMLException2(message, mark);
24405
24571
  }
24406
24572
  function throwError(state, message) {
24407
24573
  throw generateError(state, message);
24408
24574
  }
24409
24575
  function throwWarning(state, message) {
24410
- if (state.onWarning)
24576
+ if (state.onWarning) {
24411
24577
  state.onWarning.call(null, generateError(state, message));
24578
+ }
24412
24579
  }
24413
24580
  function storeAnchor(state, name, value) {
24414
24581
  const transactions = state.anchorMapTransactions;
24415
24582
  if (transactions.length !== 0) {
24416
24583
  const transaction = transactions[transactions.length - 1];
24417
- if (!_hasOwnProperty.call(transaction, name))
24584
+ if (!_hasOwnProperty.call(transaction, name)) {
24418
24585
  transaction[name] = {
24419
24586
  existed: _hasOwnProperty.call(state.anchorMap, name),
24420
24587
  value: state.anchorMap[name]
24421
24588
  };
24589
+ }
24422
24590
  }
24423
24591
  state.anchorMap[name] = value;
24424
24592
  }
24425
24593
  function beginAnchorTransaction(state) {
24426
- state.anchorMapTransactions.push(Object.create(null));
24594
+ state.anchorMapTransactions.push(/* @__PURE__ */ Object.create(null));
24427
24595
  }
24428
24596
  function commitAnchorTransaction(state) {
24429
24597
  const transaction = state.anchorMapTransactions.pop();
@@ -24434,8 +24602,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24434
24602
  const names = Object.keys(transaction);
24435
24603
  for (let index = 0, length = names.length;index < length; index += 1) {
24436
24604
  const name = names[index];
24437
- if (!_hasOwnProperty.call(parent, name))
24605
+ if (!_hasOwnProperty.call(parent, name)) {
24438
24606
  parent[name] = transaction[name];
24607
+ }
24439
24608
  }
24440
24609
  }
24441
24610
  function rollbackAnchorTransaction(state) {
@@ -24443,10 +24612,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24443
24612
  const names = Object.keys(transaction);
24444
24613
  for (let index = names.length - 1;index >= 0; index -= 1) {
24445
24614
  const entry = transaction[names[index]];
24446
- if (entry.existed)
24615
+ if (entry.existed) {
24447
24616
  state.anchorMap[names[index]] = entry.value;
24448
- else
24617
+ } else {
24449
24618
  delete state.anchorMap[names[index]];
24619
+ }
24450
24620
  }
24451
24621
  }
24452
24622
  function snapshotState(state) {
@@ -24473,36 +24643,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24473
24643
  state.kind = snapshot.kind;
24474
24644
  state.result = snapshot.result;
24475
24645
  }
24476
- var directiveHandlers = {
24646
+ const directiveHandlers = {
24477
24647
  YAML: function handleYamlDirective(state, name, args) {
24478
- if (state.version !== null)
24648
+ if (state.version !== null) {
24479
24649
  throwError(state, "duplication of %YAML directive");
24480
- if (args.length !== 1)
24650
+ }
24651
+ if (args.length !== 1) {
24481
24652
  throwError(state, "YAML directive accepts exactly one argument");
24653
+ }
24482
24654
  const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
24483
- if (match === null)
24655
+ if (match === null) {
24484
24656
  throwError(state, "ill-formed argument of the YAML directive");
24657
+ }
24485
24658
  const major = parseInt(match[1], 10);
24486
24659
  const minor = parseInt(match[2], 10);
24487
- if (major !== 1)
24660
+ if (major !== 1) {
24488
24661
  throwError(state, "unacceptable YAML version of the document");
24662
+ }
24489
24663
  state.version = args[0];
24490
24664
  state.checkLineBreaks = minor < 2;
24491
- if (minor !== 1 && minor !== 2)
24665
+ if (minor !== 1 && minor !== 2) {
24492
24666
  throwWarning(state, "unsupported YAML version of the document");
24667
+ }
24493
24668
  },
24494
24669
  TAG: function handleTagDirective(state, name, args) {
24495
24670
  let prefix;
24496
- if (args.length !== 2)
24671
+ if (args.length !== 2) {
24497
24672
  throwError(state, "TAG directive accepts exactly two arguments");
24673
+ }
24498
24674
  const handle = args[0];
24499
24675
  prefix = args[1];
24500
- if (!PATTERN_TAG_HANDLE.test(handle))
24676
+ if (!PATTERN_TAG_HANDLE.test(handle)) {
24501
24677
  throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
24502
- if (_hasOwnProperty.call(state.tagMap, handle))
24678
+ }
24679
+ if (_hasOwnProperty.call(state.tagMap, handle)) {
24503
24680
  throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
24504
- if (!PATTERN_TAG_URI.test(prefix))
24681
+ }
24682
+ if (!PATTERN_TAG_URI.test(prefix)) {
24505
24683
  throwError(state, "ill-formed tag prefix (second argument) of the TAG directive");
24684
+ }
24506
24685
  try {
24507
24686
  prefix = decodeURIComponent(prefix);
24508
24687
  } catch (err) {
@@ -24514,23 +24693,29 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24514
24693
  function captureSegment(state, start, end, checkJson) {
24515
24694
  if (start < end) {
24516
24695
  const _result = state.input.slice(start, end);
24517
- if (checkJson)
24696
+ if (checkJson) {
24518
24697
  for (let _position = 0, _length = _result.length;_position < _length; _position += 1) {
24519
24698
  const _character = _result.charCodeAt(_position);
24520
- if (!(_character === 9 || _character >= 32 && _character <= 1114111))
24699
+ if (!(_character === 9 || _character >= 32 && _character <= 1114111)) {
24521
24700
  throwError(state, "expected valid JSON character");
24701
+ }
24522
24702
  }
24523
- else if (PATTERN_NON_PRINTABLE.test(_result))
24703
+ } else if (PATTERN_NON_PRINTABLE.test(_result)) {
24524
24704
  throwError(state, "the stream contains non-printable characters");
24705
+ }
24525
24706
  state.result += _result;
24526
24707
  }
24527
24708
  }
24528
24709
  function mergeMappings(state, destination, source, overridableKeys) {
24529
- if (!common.isObject(source))
24710
+ if (!common2.isObject(source)) {
24530
24711
  throwError(state, "cannot merge mappings; the provided source object is unacceptable");
24712
+ }
24531
24713
  const sourceKeys = Object.keys(source);
24532
24714
  for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
24533
24715
  const key = sourceKeys[index];
24716
+ if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
24717
+ throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
24718
+ }
24534
24719
  if (!_hasOwnProperty.call(destination, key)) {
24535
24720
  setProperty(destination, key, source[key]);
24536
24721
  overridableKeys[key] = true;
@@ -24541,32 +24726,30 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24541
24726
  if (Array.isArray(keyNode)) {
24542
24727
  keyNode = Array.prototype.slice.call(keyNode);
24543
24728
  for (let index = 0, quantity = keyNode.length;index < quantity; index += 1) {
24544
- if (Array.isArray(keyNode[index]))
24729
+ if (Array.isArray(keyNode[index])) {
24545
24730
  throwError(state, "nested arrays are not supported inside keys");
24546
- if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]")
24731
+ }
24732
+ if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") {
24547
24733
  keyNode[index] = "[object Object]";
24734
+ }
24548
24735
  }
24549
24736
  }
24550
- if (typeof keyNode === "object" && _class(keyNode) === "[object Object]")
24737
+ if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") {
24551
24738
  keyNode = "[object Object]";
24739
+ }
24552
24740
  keyNode = String(keyNode);
24553
- if (_result === null)
24741
+ if (_result === null) {
24554
24742
  _result = {};
24555
- if (keyTag === "tag:yaml.org,2002:merge")
24743
+ }
24744
+ if (keyTag === "tag:yaml.org,2002:merge") {
24556
24745
  if (Array.isArray(valueNode)) {
24557
- if (valueNode.length > state.maxMergeSeqLength)
24558
- throwError(state, "merge sequence length exceeded maxMergeSeqLength (" + state.maxMergeSeqLength + ")");
24559
- const seen = /* @__PURE__ */ new Set;
24560
24746
  for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
24561
- const src = valueNode[index];
24562
- if (seen.has(src))
24563
- continue;
24564
- seen.add(src);
24565
- mergeMappings(state, _result, src, overridableKeys);
24747
+ mergeMappings(state, _result, valueNode[index], overridableKeys);
24566
24748
  }
24567
- } else
24749
+ } else {
24568
24750
  mergeMappings(state, _result, valueNode, overridableKeys);
24569
- else {
24751
+ }
24752
+ } else {
24570
24753
  if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
24571
24754
  state.line = startLine || state.line;
24572
24755
  state.lineStart = startLineStart || state.lineStart;
@@ -24580,14 +24763,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24580
24763
  }
24581
24764
  function readLineBreak(state) {
24582
24765
  const ch = state.input.charCodeAt(state.position);
24583
- if (ch === 10)
24766
+ if (ch === 10) {
24584
24767
  state.position++;
24585
- else if (ch === 13) {
24768
+ } else if (ch === 13) {
24586
24769
  state.position++;
24587
- if (state.input.charCodeAt(state.position) === 10)
24770
+ if (state.input.charCodeAt(state.position) === 10) {
24588
24771
  state.position++;
24589
- } else
24772
+ }
24773
+ } else {
24590
24774
  throwError(state, "a line break is expected");
24775
+ }
24591
24776
  state.line += 1;
24592
24777
  state.lineStart = state.position;
24593
24778
  state.firstTabInLine = -1;
@@ -24597,14 +24782,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24597
24782
  let ch = state.input.charCodeAt(state.position);
24598
24783
  while (ch !== 0) {
24599
24784
  while (isWhiteSpace(ch)) {
24600
- if (ch === 9 && state.firstTabInLine === -1)
24785
+ if (ch === 9 && state.firstTabInLine === -1) {
24601
24786
  state.firstTabInLine = state.position;
24787
+ }
24602
24788
  ch = state.input.charCodeAt(++state.position);
24603
24789
  }
24604
- if (allowComments && ch === 35)
24605
- do
24790
+ if (allowComments && ch === 35) {
24791
+ do {
24606
24792
  ch = state.input.charCodeAt(++state.position);
24607
- while (ch !== 10 && ch !== 13 && ch !== 0);
24793
+ } while (ch !== 10 && ch !== 13 && ch !== 0);
24794
+ }
24608
24795
  if (isEol(ch)) {
24609
24796
  readLineBreak(state);
24610
24797
  ch = state.input.charCodeAt(state.position);
@@ -24614,11 +24801,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24614
24801
  state.lineIndent++;
24615
24802
  ch = state.input.charCodeAt(++state.position);
24616
24803
  }
24617
- } else
24804
+ } else {
24618
24805
  break;
24806
+ }
24619
24807
  }
24620
- if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent)
24808
+ if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
24621
24809
  throwWarning(state, "deficient indentation");
24810
+ }
24622
24811
  return lineBreaks;
24623
24812
  }
24624
24813
  function testDocumentSeparator(state) {
@@ -24627,17 +24816,19 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24627
24816
  if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
24628
24817
  _position += 3;
24629
24818
  ch = state.input.charCodeAt(_position);
24630
- if (ch === 0 || isWsOrEol(ch))
24819
+ if (ch === 0 || isWsOrEol(ch)) {
24631
24820
  return true;
24821
+ }
24632
24822
  }
24633
24823
  return false;
24634
24824
  }
24635
24825
  function writeFoldedLines(state, count) {
24636
- if (count === 1)
24826
+ if (count === 1) {
24637
24827
  state.result += " ";
24638
- else if (count > 1)
24639
- state.result += common.repeat(`
24828
+ } else if (count > 1) {
24829
+ state.result += common2.repeat(`
24640
24830
  `, count - 1);
24831
+ }
24641
24832
  }
24642
24833
  function readPlainScalar(state, nodeIndent, withinFlowCollection) {
24643
24834
  let captureStart;
@@ -24649,12 +24840,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24649
24840
  const _kind = state.kind;
24650
24841
  const _result = state.result;
24651
24842
  let ch = state.input.charCodeAt(state.position);
24652
- 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)
24843
+ 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) {
24653
24844
  return false;
24845
+ }
24654
24846
  if (ch === 63 || ch === 45) {
24655
24847
  const following = state.input.charCodeAt(state.position + 1);
24656
- if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
24848
+ if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
24657
24849
  return false;
24850
+ }
24658
24851
  }
24659
24852
  state.kind = "scalar";
24660
24853
  state.result = "";
@@ -24663,14 +24856,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24663
24856
  while (ch !== 0) {
24664
24857
  if (ch === 58) {
24665
24858
  const following = state.input.charCodeAt(state.position + 1);
24666
- if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
24859
+ if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
24667
24860
  break;
24861
+ }
24668
24862
  } else if (ch === 35) {
24669
- if (isWsOrEol(state.input.charCodeAt(state.position - 1)))
24863
+ const preceding = state.input.charCodeAt(state.position - 1);
24864
+ if (isWsOrEol(preceding)) {
24670
24865
  break;
24671
- } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch))
24866
+ }
24867
+ } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch)) {
24672
24868
  break;
24673
- else if (isEol(ch)) {
24869
+ } else if (isEol(ch)) {
24674
24870
  _line = state.line;
24675
24871
  _lineStart = state.lineStart;
24676
24872
  _lineIndent = state.lineIndent;
@@ -24693,13 +24889,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24693
24889
  captureStart = captureEnd = state.position;
24694
24890
  hasPendingContent = false;
24695
24891
  }
24696
- if (!isWhiteSpace(ch))
24892
+ if (!isWhiteSpace(ch)) {
24697
24893
  captureEnd = state.position + 1;
24894
+ }
24698
24895
  ch = state.input.charCodeAt(++state.position);
24699
24896
  }
24700
24897
  captureSegment(state, captureStart, captureEnd, false);
24701
- if (state.result)
24898
+ if (state.result) {
24702
24899
  return true;
24900
+ }
24703
24901
  state.kind = _kind;
24704
24902
  state.result = _result;
24705
24903
  return false;
@@ -24708,13 +24906,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24708
24906
  let captureStart;
24709
24907
  let captureEnd;
24710
24908
  let ch = state.input.charCodeAt(state.position);
24711
- if (ch !== 39)
24909
+ if (ch !== 39) {
24712
24910
  return false;
24911
+ }
24713
24912
  state.kind = "scalar";
24714
24913
  state.result = "";
24715
24914
  state.position++;
24716
24915
  captureStart = captureEnd = state.position;
24717
- while ((ch = state.input.charCodeAt(state.position)) !== 0)
24916
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
24718
24917
  if (ch === 39) {
24719
24918
  captureSegment(state, captureStart, state.position, true);
24720
24919
  ch = state.input.charCodeAt(++state.position);
@@ -24722,19 +24921,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24722
24921
  captureStart = state.position;
24723
24922
  state.position++;
24724
24923
  captureEnd = state.position;
24725
- } else
24924
+ } else {
24726
24925
  return true;
24926
+ }
24727
24927
  } else if (isEol(ch)) {
24728
24928
  captureSegment(state, captureStart, captureEnd, true);
24729
24929
  writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
24730
24930
  captureStart = captureEnd = state.position;
24731
- } else if (state.position === state.lineStart && testDocumentSeparator(state))
24931
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
24732
24932
  throwError(state, "unexpected end of the document within a single quoted scalar");
24733
- else {
24933
+ } else {
24734
24934
  state.position++;
24735
- if (!isWhiteSpace(ch))
24935
+ if (!isWhiteSpace(ch)) {
24736
24936
  captureEnd = state.position;
24937
+ }
24737
24938
  }
24939
+ }
24738
24940
  throwError(state, "unexpected end of the stream within a single quoted scalar");
24739
24941
  }
24740
24942
  function readDoubleQuotedScalar(state, nodeIndent) {
@@ -24742,13 +24944,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24742
24944
  let captureEnd;
24743
24945
  let tmp;
24744
24946
  let ch = state.input.charCodeAt(state.position);
24745
- if (ch !== 34)
24947
+ if (ch !== 34) {
24746
24948
  return false;
24949
+ }
24747
24950
  state.kind = "scalar";
24748
24951
  state.result = "";
24749
24952
  state.position++;
24750
24953
  captureStart = captureEnd = state.position;
24751
- while ((ch = state.input.charCodeAt(state.position)) !== 0)
24954
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
24752
24955
  if (ch === 34) {
24753
24956
  captureSegment(state, captureStart, state.position, true);
24754
24957
  state.position++;
@@ -24756,9 +24959,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24756
24959
  } else if (ch === 92) {
24757
24960
  captureSegment(state, captureStart, state.position, true);
24758
24961
  ch = state.input.charCodeAt(++state.position);
24759
- if (isEol(ch))
24962
+ if (isEol(ch)) {
24760
24963
  skipSeparationSpace(state, false, nodeIndent);
24761
- else if (ch < 256 && simpleEscapeCheck[ch]) {
24964
+ } else if (ch < 256 && simpleEscapeCheck[ch]) {
24762
24965
  state.result += simpleEscapeMap[ch];
24763
24966
  state.position++;
24764
24967
  } else if ((tmp = escapedHexLen(ch)) > 0) {
@@ -24766,27 +24969,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24766
24969
  let hexResult = 0;
24767
24970
  for (;hexLength > 0; hexLength--) {
24768
24971
  ch = state.input.charCodeAt(++state.position);
24769
- if ((tmp = fromHexCode(ch)) >= 0)
24972
+ if ((tmp = fromHexCode(ch)) >= 0) {
24770
24973
  hexResult = (hexResult << 4) + tmp;
24771
- else
24974
+ } else {
24772
24975
  throwError(state, "expected hexadecimal character");
24976
+ }
24773
24977
  }
24774
24978
  state.result += charFromCodepoint(hexResult);
24775
24979
  state.position++;
24776
- } else
24980
+ } else {
24777
24981
  throwError(state, "unknown escape sequence");
24982
+ }
24778
24983
  captureStart = captureEnd = state.position;
24779
24984
  } else if (isEol(ch)) {
24780
24985
  captureSegment(state, captureStart, captureEnd, true);
24781
24986
  writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
24782
24987
  captureStart = captureEnd = state.position;
24783
- } else if (state.position === state.lineStart && testDocumentSeparator(state))
24988
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
24784
24989
  throwError(state, "unexpected end of the document within a double quoted scalar");
24785
- else {
24990
+ } else {
24786
24991
  state.position++;
24787
- if (!isWhiteSpace(ch))
24992
+ if (!isWhiteSpace(ch)) {
24788
24993
  captureEnd = state.position;
24994
+ }
24789
24995
  }
24996
+ }
24790
24997
  throwError(state, "unexpected end of the stream within a double quoted scalar");
24791
24998
  }
24792
24999
  function readFlowCollection(state, nodeIndent) {
@@ -24801,7 +25008,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24801
25008
  let isPair;
24802
25009
  let isExplicitPair;
24803
25010
  let isMapping;
24804
- const overridableKeys = Object.create(null);
25011
+ const overridableKeys = /* @__PURE__ */ Object.create(null);
24805
25012
  let keyNode;
24806
25013
  let keyTag;
24807
25014
  let valueNode;
@@ -24814,10 +25021,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24814
25021
  terminator = 125;
24815
25022
  isMapping = true;
24816
25023
  _result = {};
24817
- } else
25024
+ } else {
24818
25025
  return false;
24819
- if (state.anchor !== null)
25026
+ }
25027
+ if (state.anchor !== null) {
24820
25028
  storeAnchor(state, state.anchor, _result);
25029
+ }
24821
25030
  ch = state.input.charCodeAt(++state.position);
24822
25031
  while (ch !== 0) {
24823
25032
  skipSeparationSpace(state, true, nodeIndent);
@@ -24829,14 +25038,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24829
25038
  state.kind = isMapping ? "mapping" : "sequence";
24830
25039
  state.result = _result;
24831
25040
  return true;
24832
- } else if (!readNext)
25041
+ } else if (!readNext) {
24833
25042
  throwError(state, "missed comma between flow collection entries");
24834
- else if (ch === 44)
25043
+ } else if (ch === 44) {
24835
25044
  throwError(state, "expected the node content, but found ','");
25045
+ }
24836
25046
  keyTag = keyNode = valueNode = null;
24837
25047
  isPair = isExplicitPair = false;
24838
25048
  if (ch === 63) {
24839
- if (isWsOrEol(state.input.charCodeAt(state.position + 1))) {
25049
+ const following = state.input.charCodeAt(state.position + 1);
25050
+ if (isWsOrEol(following)) {
24840
25051
  isPair = isExplicitPair = true;
24841
25052
  state.position++;
24842
25053
  skipSeparationSpace(state, true, nodeIndent);
@@ -24857,19 +25068,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24857
25068
  composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
24858
25069
  valueNode = state.result;
24859
25070
  }
24860
- if (isMapping)
25071
+ if (isMapping) {
24861
25072
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);
24862
- else if (isPair)
25073
+ } else if (isPair) {
24863
25074
  _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));
24864
- else
25075
+ } else {
24865
25076
  _result.push(keyNode);
25077
+ }
24866
25078
  skipSeparationSpace(state, true, nodeIndent);
24867
25079
  ch = state.input.charCodeAt(state.position);
24868
25080
  if (ch === 44) {
24869
25081
  readNext = true;
24870
25082
  ch = state.input.charCodeAt(++state.position);
24871
- } else
25083
+ } else {
24872
25084
  readNext = false;
25085
+ }
24873
25086
  }
24874
25087
  throwError(state, "unexpected end of the stream within a flow collection");
24875
25088
  }
@@ -24883,40 +25096,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24883
25096
  let atMoreIndented = false;
24884
25097
  let tmp;
24885
25098
  let ch = state.input.charCodeAt(state.position);
24886
- if (ch === 124)
25099
+ if (ch === 124) {
24887
25100
  folding = false;
24888
- else if (ch === 62)
25101
+ } else if (ch === 62) {
24889
25102
  folding = true;
24890
- else
25103
+ } else {
24891
25104
  return false;
25105
+ }
24892
25106
  state.kind = "scalar";
24893
25107
  state.result = "";
24894
25108
  while (ch !== 0) {
24895
25109
  ch = state.input.charCodeAt(++state.position);
24896
- if (ch === 43 || ch === 45)
24897
- if (CHOMPING_CLIP === chomping)
25110
+ if (ch === 43 || ch === 45) {
25111
+ if (CHOMPING_CLIP === chomping) {
24898
25112
  chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
24899
- else
25113
+ } else {
24900
25114
  throwError(state, "repeat of a chomping mode identifier");
24901
- else if ((tmp = fromDecimalCode(ch)) >= 0)
24902
- if (tmp === 0)
25115
+ }
25116
+ } else if ((tmp = fromDecimalCode(ch)) >= 0) {
25117
+ if (tmp === 0) {
24903
25118
  throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
24904
- else if (!detectedIndent) {
25119
+ } else if (!detectedIndent) {
24905
25120
  textIndent = nodeIndent + tmp - 1;
24906
25121
  detectedIndent = true;
24907
- } else
25122
+ } else {
24908
25123
  throwError(state, "repeat of an indentation width identifier");
24909
- else
25124
+ }
25125
+ } else {
24910
25126
  break;
25127
+ }
24911
25128
  }
24912
25129
  if (isWhiteSpace(ch)) {
24913
- do
25130
+ do {
24914
25131
  ch = state.input.charCodeAt(++state.position);
24915
- while (isWhiteSpace(ch));
24916
- if (ch === 35)
24917
- do
25132
+ } while (isWhiteSpace(ch));
25133
+ if (ch === 35) {
25134
+ do {
24918
25135
  ch = state.input.charCodeAt(++state.position);
24919
- while (!isEol(ch) && ch !== 0);
25136
+ } while (!isEol(ch) && ch !== 0);
25137
+ }
24920
25138
  }
24921
25139
  while (ch !== 0) {
24922
25140
  readLineBreak(state);
@@ -24926,49 +25144,56 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24926
25144
  state.lineIndent++;
24927
25145
  ch = state.input.charCodeAt(++state.position);
24928
25146
  }
24929
- if (!detectedIndent && state.lineIndent > textIndent)
25147
+ if (!detectedIndent && state.lineIndent > textIndent) {
24930
25148
  textIndent = state.lineIndent;
25149
+ }
24931
25150
  if (isEol(ch)) {
24932
25151
  emptyLines++;
24933
25152
  continue;
24934
25153
  }
24935
- if (!detectedIndent && textIndent === 0)
25154
+ if (!detectedIndent && textIndent === 0) {
24936
25155
  throwError(state, "missing indentation for block scalar");
25156
+ }
24937
25157
  if (state.lineIndent < textIndent) {
24938
- if (chomping === CHOMPING_KEEP)
24939
- state.result += common.repeat(`
25158
+ if (chomping === CHOMPING_KEEP) {
25159
+ state.result += common2.repeat(`
24940
25160
  `, didReadContent ? 1 + emptyLines : emptyLines);
24941
- else if (chomping === CHOMPING_CLIP) {
24942
- if (didReadContent)
25161
+ } else if (chomping === CHOMPING_CLIP) {
25162
+ if (didReadContent) {
24943
25163
  state.result += `
24944
25164
  `;
25165
+ }
24945
25166
  }
24946
25167
  break;
24947
25168
  }
24948
- if (folding)
25169
+ if (folding) {
24949
25170
  if (isWhiteSpace(ch)) {
24950
25171
  atMoreIndented = true;
24951
- state.result += common.repeat(`
25172
+ state.result += common2.repeat(`
24952
25173
  `, didReadContent ? 1 + emptyLines : emptyLines);
24953
25174
  } else if (atMoreIndented) {
24954
25175
  atMoreIndented = false;
24955
- state.result += common.repeat(`
25176
+ state.result += common2.repeat(`
24956
25177
  `, emptyLines + 1);
24957
25178
  } else if (emptyLines === 0) {
24958
- if (didReadContent)
25179
+ if (didReadContent) {
24959
25180
  state.result += " ";
24960
- } else
24961
- state.result += common.repeat(`
25181
+ }
25182
+ } else {
25183
+ state.result += common2.repeat(`
24962
25184
  `, emptyLines);
24963
- else
24964
- state.result += common.repeat(`
25185
+ }
25186
+ } else {
25187
+ state.result += common2.repeat(`
24965
25188
  `, didReadContent ? 1 + emptyLines : emptyLines);
25189
+ }
24966
25190
  didReadContent = true;
24967
25191
  detectedIndent = true;
24968
25192
  emptyLines = 0;
24969
25193
  const captureStart = state.position;
24970
- while (!isEol(ch) && ch !== 0)
25194
+ while (!isEol(ch) && ch !== 0) {
24971
25195
  ch = state.input.charCodeAt(++state.position);
25196
+ }
24972
25197
  captureSegment(state, captureStart, state.position, false);
24973
25198
  }
24974
25199
  return true;
@@ -24980,18 +25205,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24980
25205
  let detected = false;
24981
25206
  if (state.firstTabInLine !== -1)
24982
25207
  return false;
24983
- if (state.anchor !== null)
25208
+ if (state.anchor !== null) {
24984
25209
  storeAnchor(state, state.anchor, _result);
25210
+ }
24985
25211
  let ch = state.input.charCodeAt(state.position);
24986
25212
  while (ch !== 0) {
24987
25213
  if (state.firstTabInLine !== -1) {
24988
25214
  state.position = state.firstTabInLine;
24989
25215
  throwError(state, "tab characters must not be used in indentation");
24990
25216
  }
24991
- if (ch !== 45)
25217
+ if (ch !== 45) {
24992
25218
  break;
24993
- if (!isWsOrEol(state.input.charCodeAt(state.position + 1)))
25219
+ }
25220
+ const following = state.input.charCodeAt(state.position + 1);
25221
+ if (!isWsOrEol(following)) {
24994
25222
  break;
25223
+ }
24995
25224
  detected = true;
24996
25225
  state.position++;
24997
25226
  if (skipSeparationSpace(state, true, -1)) {
@@ -25006,10 +25235,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25006
25235
  _result.push(state.result);
25007
25236
  skipSeparationSpace(state, true, -1);
25008
25237
  ch = state.input.charCodeAt(state.position);
25009
- if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
25238
+ if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
25010
25239
  throwError(state, "bad indentation of a sequence entry");
25011
- else if (state.lineIndent < nodeIndent)
25240
+ } else if (state.lineIndent < nodeIndent) {
25012
25241
  break;
25242
+ }
25013
25243
  }
25014
25244
  if (detected) {
25015
25245
  state.tag = _tag;
@@ -25028,7 +25258,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25028
25258
  const _tag = state.tag;
25029
25259
  const _anchor = state.anchor;
25030
25260
  const _result = {};
25031
- const overridableKeys = Object.create(null);
25261
+ const overridableKeys = /* @__PURE__ */ Object.create(null);
25032
25262
  let keyTag = null;
25033
25263
  let keyNode = null;
25034
25264
  let valueNode = null;
@@ -25036,8 +25266,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25036
25266
  let detected = false;
25037
25267
  if (state.firstTabInLine !== -1)
25038
25268
  return false;
25039
- if (state.anchor !== null)
25269
+ if (state.anchor !== null) {
25040
25270
  storeAnchor(state, state.anchor, _result);
25271
+ }
25041
25272
  let ch = state.input.charCodeAt(state.position);
25042
25273
  while (ch !== 0) {
25043
25274
  if (!atExplicitKey && state.firstTabInLine !== -1) {
@@ -25058,24 +25289,28 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25058
25289
  } else if (atExplicitKey) {
25059
25290
  atExplicitKey = false;
25060
25291
  allowCompact = true;
25061
- } else
25292
+ } else {
25062
25293
  throwError(state, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");
25294
+ }
25063
25295
  state.position += 1;
25064
25296
  ch = following;
25065
25297
  } else {
25066
25298
  _keyLine = state.line;
25067
25299
  _keyLineStart = state.lineStart;
25068
25300
  _keyPos = state.position;
25069
- if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true))
25301
+ if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
25070
25302
  break;
25303
+ }
25071
25304
  if (state.line === _line) {
25072
25305
  ch = state.input.charCodeAt(state.position);
25073
- while (isWhiteSpace(ch))
25306
+ while (isWhiteSpace(ch)) {
25074
25307
  ch = state.input.charCodeAt(++state.position);
25308
+ }
25075
25309
  if (ch === 58) {
25076
25310
  ch = state.input.charCodeAt(++state.position);
25077
- if (!isWsOrEol(ch))
25311
+ if (!isWsOrEol(ch)) {
25078
25312
  throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
25313
+ }
25079
25314
  if (atExplicitKey) {
25080
25315
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
25081
25316
  keyTag = keyNode = valueNode = null;
@@ -25085,16 +25320,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25085
25320
  allowCompact = false;
25086
25321
  keyTag = state.tag;
25087
25322
  keyNode = state.result;
25088
- } else if (detected)
25323
+ } else if (detected) {
25089
25324
  throwError(state, "can not read an implicit mapping pair; a colon is missed");
25090
- else {
25325
+ } else {
25091
25326
  state.tag = _tag;
25092
25327
  state.anchor = _anchor;
25093
25328
  return true;
25094
25329
  }
25095
- } else if (detected)
25330
+ } else if (detected) {
25096
25331
  throwError(state, "can not read a block mapping entry; a multiline key may not be an implicit key");
25097
- else {
25332
+ } else {
25098
25333
  state.tag = _tag;
25099
25334
  state.anchor = _anchor;
25100
25335
  return true;
@@ -25106,11 +25341,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25106
25341
  _keyLineStart = state.lineStart;
25107
25342
  _keyPos = state.position;
25108
25343
  }
25109
- if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact))
25110
- if (atExplicitKey)
25344
+ if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
25345
+ if (atExplicitKey) {
25111
25346
  keyNode = state.result;
25112
- else
25347
+ } else {
25113
25348
  valueNode = state.result;
25349
+ }
25350
+ }
25114
25351
  if (!atExplicitKey) {
25115
25352
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
25116
25353
  keyTag = keyNode = valueNode = null;
@@ -25118,13 +25355,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25118
25355
  skipSeparationSpace(state, true, -1);
25119
25356
  ch = state.input.charCodeAt(state.position);
25120
25357
  }
25121
- if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
25358
+ if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
25122
25359
  throwError(state, "bad indentation of a mapping entry");
25123
- else if (state.lineIndent < nodeIndent)
25360
+ } else if (state.lineIndent < nodeIndent) {
25124
25361
  break;
25362
+ }
25125
25363
  }
25126
- if (atExplicitKey)
25364
+ if (atExplicitKey) {
25127
25365
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
25366
+ }
25128
25367
  if (detected) {
25129
25368
  state.tag = _tag;
25130
25369
  state.anchor = _anchor;
@@ -25141,8 +25380,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25141
25380
  let ch = state.input.charCodeAt(state.position);
25142
25381
  if (ch !== 33)
25143
25382
  return false;
25144
- if (state.tag !== null)
25383
+ if (state.tag !== null) {
25145
25384
  throwError(state, "duplication of a tag property");
25385
+ }
25146
25386
  ch = state.input.charCodeAt(++state.position);
25147
25387
  if (ch === 60) {
25148
25388
  isVerbatim = true;
@@ -25151,66 +25391,77 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25151
25391
  isNamed = true;
25152
25392
  tagHandle = "!!";
25153
25393
  ch = state.input.charCodeAt(++state.position);
25154
- } else
25394
+ } else {
25155
25395
  tagHandle = "!";
25396
+ }
25156
25397
  let _position = state.position;
25157
25398
  if (isVerbatim) {
25158
- do
25399
+ do {
25159
25400
  ch = state.input.charCodeAt(++state.position);
25160
- while (ch !== 0 && ch !== 62);
25401
+ } while (ch !== 0 && ch !== 62);
25161
25402
  if (state.position < state.length) {
25162
25403
  tagName = state.input.slice(_position, state.position);
25163
25404
  ch = state.input.charCodeAt(++state.position);
25164
- } else
25405
+ } else {
25165
25406
  throwError(state, "unexpected end of the stream within a verbatim tag");
25407
+ }
25166
25408
  } else {
25167
25409
  while (ch !== 0 && !isWsOrEol(ch)) {
25168
- if (ch === 33)
25410
+ if (ch === 33) {
25169
25411
  if (!isNamed) {
25170
25412
  tagHandle = state.input.slice(_position - 1, state.position + 1);
25171
- if (!PATTERN_TAG_HANDLE.test(tagHandle))
25413
+ if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
25172
25414
  throwError(state, "named tag handle cannot contain such characters");
25415
+ }
25173
25416
  isNamed = true;
25174
25417
  _position = state.position + 1;
25175
- } else
25418
+ } else {
25176
25419
  throwError(state, "tag suffix cannot contain exclamation marks");
25420
+ }
25421
+ }
25177
25422
  ch = state.input.charCodeAt(++state.position);
25178
25423
  }
25179
25424
  tagName = state.input.slice(_position, state.position);
25180
- if (PATTERN_FLOW_INDICATORS.test(tagName))
25425
+ if (PATTERN_FLOW_INDICATORS.test(tagName)) {
25181
25426
  throwError(state, "tag suffix cannot contain flow indicator characters");
25427
+ }
25182
25428
  }
25183
- if (tagName && !PATTERN_TAG_URI.test(tagName))
25429
+ if (tagName && !PATTERN_TAG_URI.test(tagName)) {
25184
25430
  throwError(state, "tag name cannot contain such characters: " + tagName);
25431
+ }
25185
25432
  try {
25186
25433
  tagName = decodeURIComponent(tagName);
25187
25434
  } catch (err) {
25188
25435
  throwError(state, "tag name is malformed: " + tagName);
25189
25436
  }
25190
- if (isVerbatim)
25437
+ if (isVerbatim) {
25191
25438
  state.tag = tagName;
25192
- else if (_hasOwnProperty.call(state.tagMap, tagHandle))
25439
+ } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {
25193
25440
  state.tag = state.tagMap[tagHandle] + tagName;
25194
- else if (tagHandle === "!")
25441
+ } else if (tagHandle === "!") {
25195
25442
  state.tag = "!" + tagName;
25196
- else if (tagHandle === "!!")
25443
+ } else if (tagHandle === "!!") {
25197
25444
  state.tag = "tag:yaml.org,2002:" + tagName;
25198
- else
25445
+ } else {
25199
25446
  throwError(state, 'undeclared tag handle "' + tagHandle + '"');
25447
+ }
25200
25448
  return true;
25201
25449
  }
25202
25450
  function readAnchorProperty(state) {
25203
25451
  let ch = state.input.charCodeAt(state.position);
25204
25452
  if (ch !== 38)
25205
25453
  return false;
25206
- if (state.anchor !== null)
25454
+ if (state.anchor !== null) {
25207
25455
  throwError(state, "duplication of an anchor property");
25456
+ }
25208
25457
  ch = state.input.charCodeAt(++state.position);
25209
25458
  const _position = state.position;
25210
- while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
25459
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
25211
25460
  ch = state.input.charCodeAt(++state.position);
25212
- if (state.position === _position)
25461
+ }
25462
+ if (state.position === _position) {
25213
25463
  throwError(state, "name of an anchor node must contain at least one character");
25464
+ }
25214
25465
  state.anchor = state.input.slice(_position, state.position);
25215
25466
  return true;
25216
25467
  }
@@ -25220,13 +25471,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25220
25471
  return false;
25221
25472
  ch = state.input.charCodeAt(++state.position);
25222
25473
  const _position = state.position;
25223
- while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
25474
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
25224
25475
  ch = state.input.charCodeAt(++state.position);
25225
- if (state.position === _position)
25476
+ }
25477
+ if (state.position === _position) {
25226
25478
  throwError(state, "name of an alias node must contain at least one character");
25479
+ }
25227
25480
  const alias = state.input.slice(_position, state.position);
25228
- if (!_hasOwnProperty.call(state.anchorMap, alias))
25481
+ if (!_hasOwnProperty.call(state.anchorMap, alias)) {
25229
25482
  throwError(state, 'unidentified alias "' + alias + '"');
25483
+ }
25230
25484
  state.result = state.anchorMap[alias];
25231
25485
  skipSeparationSpace(state, true, -1);
25232
25486
  return true;
@@ -25254,14 +25508,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25254
25508
  let atNewLine = false;
25255
25509
  let hasContent = false;
25256
25510
  let propertyStart = null;
25257
- let type;
25511
+ let type2;
25258
25512
  let flowIndent;
25259
25513
  let blockIndent;
25260
- if (state.depth >= state.maxDepth)
25514
+ if (state.depth >= state.maxDepth) {
25261
25515
  throwError(state, "nesting exceeded maxDepth (" + state.maxDepth + ")");
25516
+ }
25262
25517
  state.depth += 1;
25263
- if (state.listener !== null)
25518
+ if (state.listener !== null) {
25264
25519
  state.listener("open", state);
25520
+ }
25265
25521
  state.tag = null;
25266
25522
  state.anchor = null;
25267
25523
  state.kind = null;
@@ -25270,110 +25526,131 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25270
25526
  if (allowToSeek) {
25271
25527
  if (skipSeparationSpace(state, true, -1)) {
25272
25528
  atNewLine = true;
25273
- if (state.lineIndent > parentIndent)
25529
+ if (state.lineIndent > parentIndent) {
25274
25530
  indentStatus = 1;
25275
- else if (state.lineIndent === parentIndent)
25531
+ } else if (state.lineIndent === parentIndent) {
25276
25532
  indentStatus = 0;
25277
- else if (state.lineIndent < parentIndent)
25533
+ } else if (state.lineIndent < parentIndent) {
25278
25534
  indentStatus = -1;
25535
+ }
25279
25536
  }
25280
25537
  }
25281
- if (indentStatus === 1)
25538
+ if (indentStatus === 1) {
25282
25539
  while (true) {
25283
25540
  const ch = state.input.charCodeAt(state.position);
25284
25541
  const propertyState = snapshotState(state);
25285
- if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null))
25542
+ if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null)) {
25286
25543
  break;
25287
- if (!readTagProperty(state) && !readAnchorProperty(state))
25544
+ }
25545
+ if (!readTagProperty(state) && !readAnchorProperty(state)) {
25288
25546
  break;
25289
- if (propertyStart === null)
25547
+ }
25548
+ if (propertyStart === null) {
25290
25549
  propertyStart = propertyState;
25550
+ }
25291
25551
  if (skipSeparationSpace(state, true, -1)) {
25292
25552
  atNewLine = true;
25293
25553
  allowBlockCollections = allowBlockStyles;
25294
- if (state.lineIndent > parentIndent)
25554
+ if (state.lineIndent > parentIndent) {
25295
25555
  indentStatus = 1;
25296
- else if (state.lineIndent === parentIndent)
25556
+ } else if (state.lineIndent === parentIndent) {
25297
25557
  indentStatus = 0;
25298
- else if (state.lineIndent < parentIndent)
25558
+ } else if (state.lineIndent < parentIndent) {
25299
25559
  indentStatus = -1;
25300
- } else
25560
+ }
25561
+ } else {
25301
25562
  allowBlockCollections = false;
25563
+ }
25302
25564
  }
25303
- if (allowBlockCollections)
25565
+ }
25566
+ if (allowBlockCollections) {
25304
25567
  allowBlockCollections = atNewLine || allowCompact;
25568
+ }
25305
25569
  if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
25306
- if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext)
25570
+ if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
25307
25571
  flowIndent = parentIndent;
25308
- else
25572
+ } else {
25309
25573
  flowIndent = parentIndent + 1;
25574
+ }
25310
25575
  blockIndent = state.position - state.lineStart;
25311
- if (indentStatus === 1)
25312
- if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent))
25576
+ if (indentStatus === 1) {
25577
+ if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) {
25313
25578
  hasContent = true;
25314
- else {
25579
+ } else {
25315
25580
  const ch = state.input.charCodeAt(state.position);
25316
- if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent))
25581
+ if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) {
25317
25582
  hasContent = true;
25318
- else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent))
25583
+ } else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) {
25319
25584
  hasContent = true;
25320
- else if (readAlias(state)) {
25585
+ } else if (readAlias(state)) {
25321
25586
  hasContent = true;
25322
- if (state.tag !== null || state.anchor !== null)
25587
+ if (state.tag !== null || state.anchor !== null) {
25323
25588
  throwError(state, "alias node should not have any properties");
25589
+ }
25324
25590
  } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
25325
25591
  hasContent = true;
25326
- if (state.tag === null)
25592
+ if (state.tag === null) {
25327
25593
  state.tag = "?";
25594
+ }
25328
25595
  }
25329
- if (state.anchor !== null)
25596
+ if (state.anchor !== null) {
25330
25597
  storeAnchor(state, state.anchor, state.result);
25598
+ }
25331
25599
  }
25332
- else if (indentStatus === 0)
25600
+ } else if (indentStatus === 0) {
25333
25601
  hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
25602
+ }
25334
25603
  }
25335
25604
  if (state.tag === null) {
25336
- if (state.anchor !== null)
25605
+ if (state.anchor !== null) {
25337
25606
  storeAnchor(state, state.anchor, state.result);
25607
+ }
25338
25608
  } else if (state.tag === "?") {
25339
- if (state.result !== null && state.kind !== "scalar")
25609
+ if (state.result !== null && state.kind !== "scalar") {
25340
25610
  throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
25611
+ }
25341
25612
  for (let typeIndex = 0, typeQuantity = state.implicitTypes.length;typeIndex < typeQuantity; typeIndex += 1) {
25342
- type = state.implicitTypes[typeIndex];
25343
- if (type.resolve(state.result)) {
25344
- state.result = type.construct(state.result);
25345
- state.tag = type.tag;
25346
- if (state.anchor !== null)
25613
+ type2 = state.implicitTypes[typeIndex];
25614
+ if (type2.resolve(state.result)) {
25615
+ state.result = type2.construct(state.result);
25616
+ state.tag = type2.tag;
25617
+ if (state.anchor !== null) {
25347
25618
  storeAnchor(state, state.anchor, state.result);
25619
+ }
25348
25620
  break;
25349
25621
  }
25350
25622
  }
25351
25623
  } else if (state.tag !== "!") {
25352
- if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag))
25353
- type = state.typeMap[state.kind || "fallback"][state.tag];
25354
- else {
25355
- type = null;
25624
+ if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag)) {
25625
+ type2 = state.typeMap[state.kind || "fallback"][state.tag];
25626
+ } else {
25627
+ type2 = null;
25356
25628
  const typeList = state.typeMap.multi[state.kind || "fallback"];
25357
- for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1)
25629
+ for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1) {
25358
25630
  if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
25359
- type = typeList[typeIndex];
25631
+ type2 = typeList[typeIndex];
25360
25632
  break;
25361
25633
  }
25634
+ }
25362
25635
  }
25363
- if (!type)
25636
+ if (!type2) {
25364
25637
  throwError(state, "unknown tag !<" + state.tag + ">");
25365
- if (state.result !== null && type.kind !== state.kind)
25366
- throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"');
25367
- if (!type.resolve(state.result, state.tag))
25638
+ }
25639
+ if (state.result !== null && type2.kind !== state.kind) {
25640
+ throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type2.kind + '", not "' + state.kind + '"');
25641
+ }
25642
+ if (!type2.resolve(state.result, state.tag)) {
25368
25643
  throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
25369
- else {
25370
- state.result = type.construct(state.result, state.tag);
25371
- if (state.anchor !== null)
25644
+ } else {
25645
+ state.result = type2.construct(state.result, state.tag);
25646
+ if (state.anchor !== null) {
25372
25647
  storeAnchor(state, state.anchor, state.result);
25648
+ }
25373
25649
  }
25374
25650
  }
25375
- if (state.listener !== null)
25651
+ if (state.listener !== null) {
25376
25652
  state.listener("close", state);
25653
+ }
25377
25654
  state.depth -= 1;
25378
25655
  return state.tag !== null || state.anchor !== null || hasContent;
25379
25656
  }
@@ -25383,55 +25660,63 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25383
25660
  let ch;
25384
25661
  state.version = null;
25385
25662
  state.checkLineBreaks = state.legacy;
25386
- state.tagMap = Object.create(null);
25387
- state.anchorMap = Object.create(null);
25663
+ state.tagMap = /* @__PURE__ */ Object.create(null);
25664
+ state.anchorMap = /* @__PURE__ */ Object.create(null);
25388
25665
  while ((ch = state.input.charCodeAt(state.position)) !== 0) {
25389
25666
  skipSeparationSpace(state, true, -1);
25390
25667
  ch = state.input.charCodeAt(state.position);
25391
- if (state.lineIndent > 0 || ch !== 37)
25668
+ if (state.lineIndent > 0 || ch !== 37) {
25392
25669
  break;
25670
+ }
25393
25671
  hasDirectives = true;
25394
25672
  ch = state.input.charCodeAt(++state.position);
25395
25673
  let _position = state.position;
25396
- while (ch !== 0 && !isWsOrEol(ch))
25674
+ while (ch !== 0 && !isWsOrEol(ch)) {
25397
25675
  ch = state.input.charCodeAt(++state.position);
25676
+ }
25398
25677
  const directiveName = state.input.slice(_position, state.position);
25399
25678
  const directiveArgs = [];
25400
- if (directiveName.length < 1)
25679
+ if (directiveName.length < 1) {
25401
25680
  throwError(state, "directive name must not be less than one character in length");
25681
+ }
25402
25682
  while (ch !== 0) {
25403
- while (isWhiteSpace(ch))
25683
+ while (isWhiteSpace(ch)) {
25404
25684
  ch = state.input.charCodeAt(++state.position);
25685
+ }
25405
25686
  if (ch === 35) {
25406
- do
25687
+ do {
25407
25688
  ch = state.input.charCodeAt(++state.position);
25408
- while (ch !== 0 && !isEol(ch));
25689
+ } while (ch !== 0 && !isEol(ch));
25409
25690
  break;
25410
25691
  }
25411
25692
  if (isEol(ch))
25412
25693
  break;
25413
25694
  _position = state.position;
25414
- while (ch !== 0 && !isWsOrEol(ch))
25695
+ while (ch !== 0 && !isWsOrEol(ch)) {
25415
25696
  ch = state.input.charCodeAt(++state.position);
25697
+ }
25416
25698
  directiveArgs.push(state.input.slice(_position, state.position));
25417
25699
  }
25418
25700
  if (ch !== 0)
25419
25701
  readLineBreak(state);
25420
- if (_hasOwnProperty.call(directiveHandlers, directiveName))
25702
+ if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
25421
25703
  directiveHandlers[directiveName](state, directiveName, directiveArgs);
25422
- else
25704
+ } else {
25423
25705
  throwWarning(state, 'unknown document directive "' + directiveName + '"');
25706
+ }
25424
25707
  }
25425
25708
  skipSeparationSpace(state, true, -1);
25426
25709
  if (state.lineIndent === 0 && state.input.charCodeAt(state.position) === 45 && state.input.charCodeAt(state.position + 1) === 45 && state.input.charCodeAt(state.position + 2) === 45) {
25427
25710
  state.position += 3;
25428
25711
  skipSeparationSpace(state, true, -1);
25429
- } else if (hasDirectives)
25712
+ } else if (hasDirectives) {
25430
25713
  throwError(state, "directives end mark is expected");
25714
+ }
25431
25715
  composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
25432
25716
  skipSeparationSpace(state, true, -1);
25433
- if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position)))
25717
+ if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
25434
25718
  throwWarning(state, "non-ASCII line breaks are interpreted as content");
25719
+ }
25435
25720
  state.documents.push(state.result);
25436
25721
  if (state.position === state.lineStart && testDocumentSeparator(state)) {
25437
25722
  if (state.input.charCodeAt(state.position) === 46) {
@@ -25440,18 +25725,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25440
25725
  }
25441
25726
  return;
25442
25727
  }
25443
- if (state.position < state.length - 1)
25728
+ if (state.position < state.length - 1) {
25444
25729
  throwError(state, "end of the stream or a document separator is expected");
25730
+ }
25445
25731
  }
25446
25732
  function loadDocuments(input, options) {
25447
25733
  input = String(input);
25448
25734
  options = options || {};
25449
25735
  if (input.length !== 0) {
25450
- if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13)
25736
+ if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) {
25451
25737
  input += `
25452
25738
  `;
25453
- if (input.charCodeAt(0) === 65279)
25739
+ }
25740
+ if (input.charCodeAt(0) === 65279) {
25454
25741
  input = input.slice(1);
25742
+ }
25455
25743
  }
25456
25744
  const state = new State(input, options);
25457
25745
  const nullpos = input.indexOf("\x00");
@@ -25464,64 +25752,74 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25464
25752
  state.lineIndent += 1;
25465
25753
  state.position += 1;
25466
25754
  }
25467
- while (state.position < state.length - 1)
25755
+ while (state.position < state.length - 1) {
25468
25756
  readDocument(state);
25757
+ }
25469
25758
  return state.documents;
25470
25759
  }
25471
- function loadAll(input, iterator, options) {
25760
+ function loadAll2(input, iterator, options) {
25472
25761
  if (iterator !== null && typeof iterator === "object" && typeof options === "undefined") {
25473
25762
  options = iterator;
25474
25763
  iterator = null;
25475
25764
  }
25476
25765
  const documents = loadDocuments(input, options);
25477
- if (typeof iterator !== "function")
25766
+ if (typeof iterator !== "function") {
25478
25767
  return documents;
25479
- for (let index = 0, length = documents.length;index < length; index += 1)
25768
+ }
25769
+ for (let index = 0, length = documents.length;index < length; index += 1) {
25480
25770
  iterator(documents[index]);
25771
+ }
25481
25772
  }
25482
- function load(input, options) {
25773
+ function load2(input, options) {
25483
25774
  const documents = loadDocuments(input, options);
25484
- if (documents.length === 0)
25775
+ if (documents.length === 0) {
25485
25776
  return;
25486
- else if (documents.length === 1)
25777
+ } else if (documents.length === 1) {
25487
25778
  return documents[0];
25488
- throw new YAMLException("expected a single document in the stream, but found more");
25779
+ }
25780
+ throw new YAMLException2("expected a single document in the stream, but found more");
25489
25781
  }
25490
- module.exports.loadAll = loadAll;
25491
- module.exports.load = load;
25492
- });
25493
- var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25494
- var common = require_common();
25495
- var YAMLException = require_exception();
25496
- var DEFAULT_SCHEMA = require_default();
25497
- var _toString = Object.prototype.toString;
25498
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
25499
- var CHAR_BOM = 65279;
25500
- var CHAR_TAB = 9;
25501
- var CHAR_LINE_FEED = 10;
25502
- var CHAR_CARRIAGE_RETURN = 13;
25503
- var CHAR_SPACE = 32;
25504
- var CHAR_EXCLAMATION = 33;
25505
- var CHAR_DOUBLE_QUOTE = 34;
25506
- var CHAR_SHARP = 35;
25507
- var CHAR_PERCENT = 37;
25508
- var CHAR_AMPERSAND = 38;
25509
- var CHAR_SINGLE_QUOTE = 39;
25510
- var CHAR_ASTERISK = 42;
25511
- var CHAR_COMMA = 44;
25512
- var CHAR_MINUS = 45;
25513
- var CHAR_COLON = 58;
25514
- var CHAR_EQUALS = 61;
25515
- var CHAR_GREATER_THAN = 62;
25516
- var CHAR_QUESTION = 63;
25517
- var CHAR_COMMERCIAL_AT = 64;
25518
- var CHAR_LEFT_SQUARE_BRACKET = 91;
25519
- var CHAR_RIGHT_SQUARE_BRACKET = 93;
25520
- var CHAR_GRAVE_ACCENT = 96;
25521
- var CHAR_LEFT_CURLY_BRACKET = 123;
25522
- var CHAR_VERTICAL_LINE = 124;
25523
- var CHAR_RIGHT_CURLY_BRACKET = 125;
25524
- var ESCAPE_SEQUENCES = {};
25782
+ loader.loadAll = loadAll2;
25783
+ loader.load = load2;
25784
+ return loader;
25785
+ }
25786
+ var dumper = {};
25787
+ var hasRequiredDumper;
25788
+ function requireDumper() {
25789
+ if (hasRequiredDumper)
25790
+ return dumper;
25791
+ hasRequiredDumper = 1;
25792
+ const common2 = requireCommon();
25793
+ const YAMLException2 = requireException();
25794
+ const DEFAULT_SCHEMA2 = require_default();
25795
+ const _toString = Object.prototype.toString;
25796
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
25797
+ const CHAR_BOM = 65279;
25798
+ const CHAR_TAB = 9;
25799
+ const CHAR_LINE_FEED = 10;
25800
+ const CHAR_CARRIAGE_RETURN = 13;
25801
+ const CHAR_SPACE = 32;
25802
+ const CHAR_EXCLAMATION = 33;
25803
+ const CHAR_DOUBLE_QUOTE = 34;
25804
+ const CHAR_SHARP = 35;
25805
+ const CHAR_PERCENT = 37;
25806
+ const CHAR_AMPERSAND = 38;
25807
+ const CHAR_SINGLE_QUOTE = 39;
25808
+ const CHAR_ASTERISK = 42;
25809
+ const CHAR_COMMA = 44;
25810
+ const CHAR_MINUS = 45;
25811
+ const CHAR_COLON = 58;
25812
+ const CHAR_EQUALS = 61;
25813
+ const CHAR_GREATER_THAN = 62;
25814
+ const CHAR_QUESTION = 63;
25815
+ const CHAR_COMMERCIAL_AT = 64;
25816
+ const CHAR_LEFT_SQUARE_BRACKET = 91;
25817
+ const CHAR_RIGHT_SQUARE_BRACKET = 93;
25818
+ const CHAR_GRAVE_ACCENT = 96;
25819
+ const CHAR_LEFT_CURLY_BRACKET = 123;
25820
+ const CHAR_VERTICAL_LINE = 124;
25821
+ const CHAR_RIGHT_CURLY_BRACKET = 125;
25822
+ const ESCAPE_SEQUENCES = {};
25525
25823
  ESCAPE_SEQUENCES[0] = "\\0";
25526
25824
  ESCAPE_SEQUENCES[7] = "\\a";
25527
25825
  ESCAPE_SEQUENCES[8] = "\\b";
@@ -25537,7 +25835,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25537
25835
  ESCAPE_SEQUENCES[160] = "\\_";
25538
25836
  ESCAPE_SEQUENCES[8232] = "\\L";
25539
25837
  ESCAPE_SEQUENCES[8233] = "\\P";
25540
- var DEPRECATED_BOOLEANS_SYNTAX = [
25838
+ const DEPRECATED_BOOLEANS_SYNTAX = [
25541
25839
  "y",
25542
25840
  "Y",
25543
25841
  "yes",
@@ -25555,20 +25853,22 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25555
25853
  "Off",
25556
25854
  "OFF"
25557
25855
  ];
25558
- var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
25559
- function compileStyleMap(schema, map) {
25560
- if (map === null)
25856
+ const DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
25857
+ function compileStyleMap(schema2, map2) {
25858
+ if (map2 === null)
25561
25859
  return {};
25562
25860
  const result = {};
25563
- const keys = Object.keys(map);
25861
+ const keys = Object.keys(map2);
25564
25862
  for (let index = 0, length = keys.length;index < length; index += 1) {
25565
25863
  let tag = keys[index];
25566
- let style = String(map[tag]);
25567
- if (tag.slice(0, 2) === "!!")
25864
+ let style = String(map2[tag]);
25865
+ if (tag.slice(0, 2) === "!!") {
25568
25866
  tag = "tag:yaml.org,2002:" + tag.slice(2);
25569
- const type = schema.compiledTypeMap["fallback"][tag];
25570
- if (type && _hasOwnProperty.call(type.styleAliases, style))
25571
- style = type.styleAliases[style];
25867
+ }
25868
+ const type2 = schema2.compiledTypeMap["fallback"][tag];
25869
+ if (type2 && _hasOwnProperty.call(type2.styleAliases, style)) {
25870
+ style = type2.styleAliases[style];
25871
+ }
25572
25872
  result[tag] = style;
25573
25873
  }
25574
25874
  return result;
@@ -25586,18 +25886,19 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25586
25886
  } else if (character <= 4294967295) {
25587
25887
  handle = "U";
25588
25888
  length = 8;
25589
- } else
25590
- throw new YAMLException("code point within a string may not be greater than 0xFFFFFFFF");
25591
- return "\\" + handle + common.repeat("0", length - string.length) + string;
25889
+ } else {
25890
+ throw new YAMLException2("code point within a string may not be greater than 0xFFFFFFFF");
25891
+ }
25892
+ return "\\" + handle + common2.repeat("0", length - string.length) + string;
25592
25893
  }
25593
- var QUOTING_TYPE_SINGLE = 1;
25594
- var QUOTING_TYPE_DOUBLE = 2;
25894
+ const QUOTING_TYPE_SINGLE = 1;
25895
+ const QUOTING_TYPE_DOUBLE = 2;
25595
25896
  function State(options) {
25596
- this.schema = options["schema"] || DEFAULT_SCHEMA;
25897
+ this.schema = options["schema"] || DEFAULT_SCHEMA2;
25597
25898
  this.indent = Math.max(1, options["indent"] || 2);
25598
25899
  this.noArrayIndent = options["noArrayIndent"] || false;
25599
25900
  this.skipInvalid = options["skipInvalid"] || false;
25600
- this.flowLevel = common.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
25901
+ this.flowLevel = common2.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
25601
25902
  this.styleMap = compileStyleMap(this.schema, options["styles"] || null);
25602
25903
  this.sortKeys = options["sortKeys"] || false;
25603
25904
  this.lineWidth = options["lineWidth"] || 80;
@@ -25615,7 +25916,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25615
25916
  this.usedDuplicates = null;
25616
25917
  }
25617
25918
  function indentString(string, spaces) {
25618
- const ind = common.repeat(" ", spaces);
25919
+ const ind = common2.repeat(" ", spaces);
25619
25920
  let position = 0;
25620
25921
  let result = "";
25621
25922
  const length = string.length;
@@ -25639,12 +25940,15 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25639
25940
  }
25640
25941
  function generateNextLine(state, level) {
25641
25942
  return `
25642
- ` + common.repeat(" ", state.indent * level);
25943
+ ` + common2.repeat(" ", state.indent * level);
25643
25944
  }
25644
- function testImplicitResolving(state, str) {
25645
- for (let index = 0, length = state.implicitTypes.length;index < length; index += 1)
25646
- if (state.implicitTypes[index].resolve(str))
25945
+ function testImplicitResolving(state, str2) {
25946
+ for (let index = 0, length = state.implicitTypes.length;index < length; index += 1) {
25947
+ const type2 = state.implicitTypes[index];
25948
+ if (type2.resolve(str2)) {
25647
25949
  return true;
25950
+ }
25951
+ }
25648
25952
  return false;
25649
25953
  }
25650
25954
  function isWhitespace(c) {
@@ -25672,19 +25976,21 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25672
25976
  let second;
25673
25977
  if (first >= 55296 && first <= 56319 && pos + 1 < string.length) {
25674
25978
  second = string.charCodeAt(pos + 1);
25675
- if (second >= 56320 && second <= 57343)
25979
+ if (second >= 56320 && second <= 57343) {
25676
25980
  return (first - 55296) * 1024 + second - 56320 + 65536;
25981
+ }
25677
25982
  }
25678
25983
  return first;
25679
25984
  }
25680
25985
  function needIndentIndicator(string) {
25681
- return /^\n* /.test(string);
25682
- }
25683
- var STYLE_PLAIN = 1;
25684
- var STYLE_SINGLE = 2;
25685
- var STYLE_LITERAL = 3;
25686
- var STYLE_FOLDED = 4;
25687
- var STYLE_DOUBLE = 5;
25986
+ const leadingSpaceRe = /^\n* /;
25987
+ return leadingSpaceRe.test(string);
25988
+ }
25989
+ const STYLE_PLAIN = 1;
25990
+ const STYLE_SINGLE = 2;
25991
+ const STYLE_LITERAL = 3;
25992
+ const STYLE_FOLDED = 4;
25993
+ const STYLE_DOUBLE = 5;
25688
25994
  function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
25689
25995
  let i;
25690
25996
  let char = 0;
@@ -25694,15 +26000,16 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25694
26000
  const shouldTrackWidth = lineWidth !== -1;
25695
26001
  let previousLineBreak = -1;
25696
26002
  let plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
25697
- if (singleLineOnly || forceQuotes)
26003
+ if (singleLineOnly || forceQuotes) {
25698
26004
  for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
25699
26005
  char = codePointAt(string, i);
25700
- if (!isPrintable(char))
26006
+ if (!isPrintable(char)) {
25701
26007
  return STYLE_DOUBLE;
26008
+ }
25702
26009
  plain = plain && isPlainSafe(char, prevChar, inblock);
25703
26010
  prevChar = char;
25704
26011
  }
25705
- else {
26012
+ } else {
25706
26013
  for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
25707
26014
  char = codePointAt(string, i);
25708
26015
  if (char === CHAR_LINE_FEED) {
@@ -25711,31 +26018,37 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25711
26018
  hasFoldableLine = hasFoldableLine || i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
25712
26019
  previousLineBreak = i;
25713
26020
  }
25714
- } else if (!isPrintable(char))
26021
+ } else if (!isPrintable(char)) {
25715
26022
  return STYLE_DOUBLE;
26023
+ }
25716
26024
  plain = plain && isPlainSafe(char, prevChar, inblock);
25717
26025
  prevChar = char;
25718
26026
  }
25719
- hasFoldableLine = hasFoldableLine || shouldTrackWidth && i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
26027
+ hasFoldableLine = hasFoldableLine || shouldTrackWidth && (i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ");
25720
26028
  }
25721
26029
  if (!hasLineBreak && !hasFoldableLine) {
25722
- if (plain && !forceQuotes && !testAmbiguousType(string))
26030
+ if (plain && !forceQuotes && !testAmbiguousType(string)) {
25723
26031
  return STYLE_PLAIN;
26032
+ }
25724
26033
  return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
25725
26034
  }
25726
- if (indentPerLevel > 9 && needIndentIndicator(string))
26035
+ if (indentPerLevel > 9 && needIndentIndicator(string)) {
25727
26036
  return STYLE_DOUBLE;
25728
- if (!forceQuotes)
26037
+ }
26038
+ if (!forceQuotes) {
25729
26039
  return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
26040
+ }
25730
26041
  return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
25731
26042
  }
25732
26043
  function writeScalar(state, string, level, iskey, inblock) {
25733
26044
  state.dump = function() {
25734
- if (string.length === 0)
26045
+ if (string.length === 0) {
25735
26046
  return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''";
26047
+ }
25736
26048
  if (!state.noCompatMode) {
25737
- if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string))
26049
+ if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {
25738
26050
  return state.quotingType === QUOTING_TYPE_DOUBLE ? '"' + string + '"' : "'" + string + "'";
26051
+ }
25739
26052
  }
25740
26053
  const indent = state.indent * Math.max(1, level);
25741
26054
  const lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
@@ -25753,9 +26066,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25753
26066
  case STYLE_FOLDED:
25754
26067
  return ">" + blockHeader(string, state.indent) + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
25755
26068
  case STYLE_DOUBLE:
25756
- return '"' + escapeString(string, lineWidth) + '"';
26069
+ return '"' + escapeString(string) + '"';
25757
26070
  default:
25758
- throw new YAMLException("impossible error: invalid scalar style");
26071
+ throw new YAMLException2("impossible error: invalid scalar style");
25759
26072
  }
25760
26073
  }();
25761
26074
  }
@@ -25763,9 +26076,11 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25763
26076
  const indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
25764
26077
  const clip = string[string.length - 1] === `
25765
26078
  `;
25766
- return indentIndicator + (clip && (string[string.length - 2] === `
26079
+ const keep = clip && (string[string.length - 2] === `
25767
26080
  ` || string === `
25768
- `) ? "+" : clip ? "" : "-") + `
26081
+ `);
26082
+ const chomp = keep ? "+" : clip ? "" : "-";
26083
+ return indentIndicator + chomp + `
25769
26084
  `;
25770
26085
  }
25771
26086
  function dropEndingNewline(string) {
@@ -25817,11 +26132,12 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25817
26132
  }
25818
26133
  result += `
25819
26134
  `;
25820
- if (line.length - start > width && curr > start)
26135
+ if (line.length - start > width && curr > start) {
25821
26136
  result += line.slice(start, curr) + `
25822
26137
  ` + line.slice(curr + 1);
25823
- else
26138
+ } else {
25824
26139
  result += line.slice(start);
26140
+ }
25825
26141
  return result.slice(1);
25826
26142
  }
25827
26143
  function escapeString(string) {
@@ -25834,8 +26150,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25834
26150
  result += string[i];
25835
26151
  if (char >= 65536)
25836
26152
  result += string[i + 1];
25837
- } else
26153
+ } else {
25838
26154
  result += escapeSeq || encodeHex(char);
26155
+ }
25839
26156
  }
25840
26157
  return result;
25841
26158
  }
@@ -25844,8 +26161,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25844
26161
  const _tag = state.tag;
25845
26162
  for (let index = 0, length = object.length;index < length; index += 1) {
25846
26163
  let value = object[index];
25847
- if (state.replacer)
26164
+ if (state.replacer) {
25848
26165
  value = state.replacer.call(object, String(index), value);
26166
+ }
25849
26167
  if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) {
25850
26168
  if (_result !== "")
25851
26169
  _result += "," + (!state.condenseFlow ? " " : "");
@@ -25860,15 +26178,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25860
26178
  const _tag = state.tag;
25861
26179
  for (let index = 0, length = object.length;index < length; index += 1) {
25862
26180
  let value = object[index];
25863
- if (state.replacer)
26181
+ if (state.replacer) {
25864
26182
  value = state.replacer.call(object, String(index), value);
26183
+ }
25865
26184
  if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) {
25866
- if (!compact || _result !== "")
26185
+ if (!compact || _result !== "") {
25867
26186
  _result += generateNextLine(state, level);
25868
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
26187
+ }
26188
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
25869
26189
  _result += "-";
25870
- else
26190
+ } else {
25871
26191
  _result += "- ";
26192
+ }
25872
26193
  _result += state.dump;
25873
26194
  }
25874
26195
  }
@@ -25887,15 +26208,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25887
26208
  pairBuffer += '"';
25888
26209
  const objectKey = objectKeyList[index];
25889
26210
  let objectValue = object[objectKey];
25890
- if (state.replacer)
26211
+ if (state.replacer) {
25891
26212
  objectValue = state.replacer.call(object, objectKey, objectValue);
25892
- if (!writeNode(state, level, objectKey, false, false))
26213
+ }
26214
+ if (!writeNode(state, level, objectKey, false, false)) {
25893
26215
  continue;
26216
+ }
25894
26217
  if (state.dump.length > 1024)
25895
26218
  pairBuffer += "? ";
25896
26219
  pairBuffer += state.dump + (state.condenseFlow ? '"' : "") + ":" + (state.condenseFlow ? "" : " ");
25897
- if (!writeNode(state, level, objectValue, false, false))
26220
+ if (!writeNode(state, level, objectValue, false, false)) {
25898
26221
  continue;
26222
+ }
25899
26223
  pairBuffer += state.dump;
25900
26224
  _result += pairBuffer;
25901
26225
  }
@@ -25906,37 +26230,46 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25906
26230
  let _result = "";
25907
26231
  const _tag = state.tag;
25908
26232
  const objectKeyList = Object.keys(object);
25909
- if (state.sortKeys === true)
26233
+ if (state.sortKeys === true) {
25910
26234
  objectKeyList.sort();
25911
- else if (typeof state.sortKeys === "function")
26235
+ } else if (typeof state.sortKeys === "function") {
25912
26236
  objectKeyList.sort(state.sortKeys);
25913
- else if (state.sortKeys)
25914
- throw new YAMLException("sortKeys must be a boolean or a function");
26237
+ } else if (state.sortKeys) {
26238
+ throw new YAMLException2("sortKeys must be a boolean or a function");
26239
+ }
25915
26240
  for (let index = 0, length = objectKeyList.length;index < length; index += 1) {
25916
26241
  let pairBuffer = "";
25917
- if (!compact || _result !== "")
26242
+ if (!compact || _result !== "") {
25918
26243
  pairBuffer += generateNextLine(state, level);
26244
+ }
25919
26245
  const objectKey = objectKeyList[index];
25920
26246
  let objectValue = object[objectKey];
25921
- if (state.replacer)
26247
+ if (state.replacer) {
25922
26248
  objectValue = state.replacer.call(object, objectKey, objectValue);
25923
- if (!writeNode(state, level + 1, objectKey, true, true, true))
26249
+ }
26250
+ if (!writeNode(state, level + 1, objectKey, true, true, true)) {
25924
26251
  continue;
26252
+ }
25925
26253
  const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
25926
- if (explicitPair)
25927
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
26254
+ if (explicitPair) {
26255
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
25928
26256
  pairBuffer += "?";
25929
- else
26257
+ } else {
25930
26258
  pairBuffer += "? ";
26259
+ }
26260
+ }
25931
26261
  pairBuffer += state.dump;
25932
- if (explicitPair)
26262
+ if (explicitPair) {
25933
26263
  pairBuffer += generateNextLine(state, level);
25934
- if (!writeNode(state, level + 1, objectValue, true, explicitPair))
26264
+ }
26265
+ if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
25935
26266
  continue;
25936
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
26267
+ }
26268
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
25937
26269
  pairBuffer += ":";
25938
- else
26270
+ } else {
25939
26271
  pairBuffer += ": ";
26272
+ }
25940
26273
  pairBuffer += state.dump;
25941
26274
  _result += pairBuffer;
25942
26275
  }
@@ -25946,24 +26279,27 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25946
26279
  function detectType(state, object, explicit) {
25947
26280
  const typeList = explicit ? state.explicitTypes : state.implicitTypes;
25948
26281
  for (let index = 0, length = typeList.length;index < length; index += 1) {
25949
- const type = typeList[index];
25950
- if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object === "object" && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
25951
- if (explicit)
25952
- if (type.multi && type.representName)
25953
- state.tag = type.representName(object);
25954
- else
25955
- state.tag = type.tag;
25956
- else
26282
+ const type2 = typeList[index];
26283
+ if ((type2.instanceOf || type2.predicate) && (!type2.instanceOf || typeof object === "object" && object instanceof type2.instanceOf) && (!type2.predicate || type2.predicate(object))) {
26284
+ if (explicit) {
26285
+ if (type2.multi && type2.representName) {
26286
+ state.tag = type2.representName(object);
26287
+ } else {
26288
+ state.tag = type2.tag;
26289
+ }
26290
+ } else {
25957
26291
  state.tag = "?";
25958
- if (type.represent) {
25959
- const style = state.styleMap[type.tag] || type.defaultStyle;
26292
+ }
26293
+ if (type2.represent) {
26294
+ const style = state.styleMap[type2.tag] || type2.defaultStyle;
25960
26295
  let _result;
25961
- if (_toString.call(type.represent) === "[object Function]")
25962
- _result = type.represent(object, style);
25963
- else if (_hasOwnProperty.call(type.represent, style))
25964
- _result = type.represent[style](object, style);
25965
- else
25966
- throw new YAMLException("!<" + type.tag + '> tag resolver accepts not "' + style + '" style');
26296
+ if (_toString.call(type2.represent) === "[object Function]") {
26297
+ _result = type2.represent(object, style);
26298
+ } else if (_hasOwnProperty.call(type2.represent, style)) {
26299
+ _result = type2.represent[style](object, style);
26300
+ } else {
26301
+ throw new YAMLException2("!<" + type2.tag + '> tag resolver accepts not "' + style + '" style');
26302
+ }
25967
26303
  state.dump = _result;
25968
26304
  }
25969
26305
  return true;
@@ -25974,67 +26310,78 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25974
26310
  function writeNode(state, level, object, block, compact, iskey, isblockseq) {
25975
26311
  state.tag = null;
25976
26312
  state.dump = object;
25977
- if (!detectType(state, object, false))
26313
+ if (!detectType(state, object, false)) {
25978
26314
  detectType(state, object, true);
25979
- const type = _toString.call(state.dump);
26315
+ }
26316
+ const type2 = _toString.call(state.dump);
25980
26317
  const inblock = block;
25981
- if (block)
26318
+ if (block) {
25982
26319
  block = state.flowLevel < 0 || state.flowLevel > level;
25983
- const objectOrArray = type === "[object Object]" || type === "[object Array]";
26320
+ }
26321
+ const objectOrArray = type2 === "[object Object]" || type2 === "[object Array]";
25984
26322
  let duplicateIndex;
25985
26323
  let duplicate;
25986
26324
  if (objectOrArray) {
25987
26325
  duplicateIndex = state.duplicates.indexOf(object);
25988
26326
  duplicate = duplicateIndex !== -1;
25989
26327
  }
25990
- if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0)
26328
+ if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) {
25991
26329
  compact = false;
25992
- if (duplicate && state.usedDuplicates[duplicateIndex])
26330
+ }
26331
+ if (duplicate && state.usedDuplicates[duplicateIndex]) {
25993
26332
  state.dump = "*ref_" + duplicateIndex;
25994
- else {
25995
- if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex])
26333
+ } else {
26334
+ if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
25996
26335
  state.usedDuplicates[duplicateIndex] = true;
25997
- if (type === "[object Object]")
26336
+ }
26337
+ if (type2 === "[object Object]") {
25998
26338
  if (block && Object.keys(state.dump).length !== 0) {
25999
26339
  writeBlockMapping(state, level, state.dump, compact);
26000
- if (duplicate)
26340
+ if (duplicate) {
26001
26341
  state.dump = "&ref_" + duplicateIndex + state.dump;
26342
+ }
26002
26343
  } else {
26003
26344
  writeFlowMapping(state, level, state.dump);
26004
- if (duplicate)
26345
+ if (duplicate) {
26005
26346
  state.dump = "&ref_" + duplicateIndex + " " + state.dump;
26347
+ }
26006
26348
  }
26007
- else if (type === "[object Array]")
26349
+ } else if (type2 === "[object Array]") {
26008
26350
  if (block && state.dump.length !== 0) {
26009
- if (state.noArrayIndent && !isblockseq && level > 0)
26351
+ if (state.noArrayIndent && !isblockseq && level > 0) {
26010
26352
  writeBlockSequence(state, level - 1, state.dump, compact);
26011
- else
26353
+ } else {
26012
26354
  writeBlockSequence(state, level, state.dump, compact);
26013
- if (duplicate)
26355
+ }
26356
+ if (duplicate) {
26014
26357
  state.dump = "&ref_" + duplicateIndex + state.dump;
26358
+ }
26015
26359
  } else {
26016
26360
  writeFlowSequence(state, level, state.dump);
26017
- if (duplicate)
26361
+ if (duplicate) {
26018
26362
  state.dump = "&ref_" + duplicateIndex + " " + state.dump;
26363
+ }
26019
26364
  }
26020
- else if (type === "[object String]") {
26021
- if (state.tag !== "?")
26365
+ } else if (type2 === "[object String]") {
26366
+ if (state.tag !== "?") {
26022
26367
  writeScalar(state, state.dump, level, iskey, inblock);
26023
- } else if (type === "[object Undefined]")
26368
+ }
26369
+ } else if (type2 === "[object Undefined]") {
26024
26370
  return false;
26025
- else {
26371
+ } else {
26026
26372
  if (state.skipInvalid)
26027
26373
  return false;
26028
- throw new YAMLException("unacceptable kind of an object to dump " + type);
26374
+ throw new YAMLException2("unacceptable kind of an object to dump " + type2);
26029
26375
  }
26030
26376
  if (state.tag !== null && state.tag !== "?") {
26031
26377
  let tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
26032
- if (state.tag[0] === "!")
26378
+ if (state.tag[0] === "!") {
26033
26379
  tagStr = "!" + tagStr;
26034
- else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:")
26380
+ } else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") {
26035
26381
  tagStr = "!!" + tagStr.slice(18);
26036
- else
26382
+ } else {
26037
26383
  tagStr = "!<" + tagStr + ">";
26384
+ }
26038
26385
  state.dump = tagStr + " " + state.dump;
26039
26386
  }
26040
26387
  }
@@ -26045,83 +26392,110 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
26045
26392
  const duplicatesIndexes = [];
26046
26393
  inspectNode(object, objects, duplicatesIndexes);
26047
26394
  const length = duplicatesIndexes.length;
26048
- for (let index = 0;index < length; index += 1)
26395
+ for (let index = 0;index < length; index += 1) {
26049
26396
  state.duplicates.push(objects[duplicatesIndexes[index]]);
26397
+ }
26050
26398
  state.usedDuplicates = new Array(length);
26051
26399
  }
26052
26400
  function inspectNode(object, objects, duplicatesIndexes) {
26053
26401
  if (object !== null && typeof object === "object") {
26054
26402
  const index = objects.indexOf(object);
26055
26403
  if (index !== -1) {
26056
- if (duplicatesIndexes.indexOf(index) === -1)
26404
+ if (duplicatesIndexes.indexOf(index) === -1) {
26057
26405
  duplicatesIndexes.push(index);
26406
+ }
26058
26407
  } else {
26059
26408
  objects.push(object);
26060
- if (Array.isArray(object))
26061
- for (let i = 0, length = object.length;i < length; i += 1)
26409
+ if (Array.isArray(object)) {
26410
+ for (let i = 0, length = object.length;i < length; i += 1) {
26062
26411
  inspectNode(object[i], objects, duplicatesIndexes);
26063
- else {
26412
+ }
26413
+ } else {
26064
26414
  const objectKeyList = Object.keys(object);
26065
- for (let i = 0, length = objectKeyList.length;i < length; i += 1)
26415
+ for (let i = 0, length = objectKeyList.length;i < length; i += 1) {
26066
26416
  inspectNode(object[objectKeyList[i]], objects, duplicatesIndexes);
26417
+ }
26067
26418
  }
26068
26419
  }
26069
26420
  }
26070
26421
  }
26071
- function dump(input, options) {
26422
+ function dump2(input, options) {
26072
26423
  options = options || {};
26073
26424
  const state = new State(options);
26074
26425
  if (!state.noRefs)
26075
26426
  getDuplicateReferences(input, state);
26076
26427
  let value = input;
26077
- if (state.replacer)
26428
+ if (state.replacer) {
26078
26429
  value = state.replacer.call({ "": value }, "", value);
26430
+ }
26079
26431
  if (writeNode(state, 0, value, true, true))
26080
26432
  return state.dump + `
26081
26433
  `;
26082
26434
  return "";
26083
26435
  }
26084
- module.exports.dump = dump;
26085
- });
26086
- var import_js_yaml = /* @__PURE__ */ __toESM2((/* @__PURE__ */ __commonJSMin((exports, module) => {
26087
- var loader = require_loader();
26088
- var dumper = require_dumper();
26436
+ dumper.dump = dump2;
26437
+ return dumper;
26438
+ }
26439
+ var hasRequiredJsYaml;
26440
+ function requireJsYaml() {
26441
+ if (hasRequiredJsYaml)
26442
+ return jsYaml;
26443
+ hasRequiredJsYaml = 1;
26444
+ const loader2 = requireLoader();
26445
+ const dumper2 = requireDumper();
26089
26446
  function renamed(from, to) {
26090
26447
  return function() {
26091
26448
  throw new Error("Function yaml." + from + " is removed in js-yaml 4. Use yaml." + to + " instead, which is now safe by default.");
26092
26449
  };
26093
26450
  }
26094
- module.exports.Type = require_type();
26095
- module.exports.Schema = require_schema();
26096
- module.exports.FAILSAFE_SCHEMA = require_failsafe();
26097
- module.exports.JSON_SCHEMA = require_json();
26098
- module.exports.CORE_SCHEMA = require_core();
26099
- module.exports.DEFAULT_SCHEMA = require_default();
26100
- module.exports.load = loader.load;
26101
- module.exports.loadAll = loader.loadAll;
26102
- module.exports.dump = dumper.dump;
26103
- module.exports.YAMLException = require_exception();
26104
- module.exports.types = {
26105
- binary: require_binary(),
26106
- float: require_float(),
26107
- map: require_map(),
26451
+ jsYaml.Type = requireType();
26452
+ jsYaml.Schema = requireSchema();
26453
+ jsYaml.FAILSAFE_SCHEMA = requireFailsafe();
26454
+ jsYaml.JSON_SCHEMA = requireJson();
26455
+ jsYaml.CORE_SCHEMA = requireCore();
26456
+ jsYaml.DEFAULT_SCHEMA = require_default();
26457
+ jsYaml.load = loader2.load;
26458
+ jsYaml.loadAll = loader2.loadAll;
26459
+ jsYaml.dump = dumper2.dump;
26460
+ jsYaml.YAMLException = requireException();
26461
+ jsYaml.types = {
26462
+ binary: requireBinary(),
26463
+ float: requireFloat(),
26464
+ map: requireMap(),
26108
26465
  null: require_null(),
26109
- pairs: require_pairs(),
26110
- set: require_set(),
26111
- timestamp: require_timestamp(),
26112
- bool: require_bool(),
26113
- int: require_int(),
26114
- merge: require_merge(),
26115
- omap: require_omap(),
26116
- seq: require_seq(),
26117
- str: require_str()
26466
+ pairs: requirePairs(),
26467
+ set: requireSet(),
26468
+ timestamp: requireTimestamp(),
26469
+ bool: requireBool(),
26470
+ int: requireInt(),
26471
+ merge: requireMerge(),
26472
+ omap: requireOmap(),
26473
+ seq: requireSeq(),
26474
+ str: requireStr()
26118
26475
  };
26119
- module.exports.safeLoad = renamed("safeLoad", "load");
26120
- module.exports.safeLoadAll = renamed("safeLoadAll", "loadAll");
26121
- module.exports.safeDump = renamed("safeDump", "dump");
26122
- }))(), 1);
26123
- var { Type, Schema, FAILSAFE_SCHEMA, JSON_SCHEMA, CORE_SCHEMA, DEFAULT_SCHEMA, load, loadAll, dump, YAMLException, types, safeLoad, safeLoadAll, safeDump } = import_js_yaml.default;
26124
- var index_vite_proxy_tmp_default = import_js_yaml.default;
26476
+ jsYaml.safeLoad = renamed("safeLoad", "load");
26477
+ jsYaml.safeLoadAll = renamed("safeLoadAll", "loadAll");
26478
+ jsYaml.safeDump = renamed("safeDump", "dump");
26479
+ return jsYaml;
26480
+ }
26481
+ var jsYamlExports = requireJsYaml();
26482
+ var yaml = /* @__PURE__ */ getDefaultExportFromCjs(jsYamlExports);
26483
+ var {
26484
+ Type,
26485
+ Schema,
26486
+ FAILSAFE_SCHEMA,
26487
+ JSON_SCHEMA,
26488
+ CORE_SCHEMA,
26489
+ DEFAULT_SCHEMA,
26490
+ load,
26491
+ loadAll,
26492
+ dump,
26493
+ YAMLException,
26494
+ types,
26495
+ safeLoad,
26496
+ safeLoadAll,
26497
+ safeDump
26498
+ } = yaml;
26125
26499
 
26126
26500
  // ../common/src/logger.ts
26127
26501
  init_src();
@@ -26198,11 +26572,11 @@ class SimpleLogger {
26198
26572
  const path3 = this.logFilePath || getGlobalLogFilePath();
26199
26573
  if (!path3)
26200
26574
  return;
26201
- const timestamp = new Date().toISOString();
26575
+ const timestamp2 = new Date().toISOString();
26202
26576
  this.pendingWrites = Promise.all([
26203
26577
  this.pendingWrites,
26204
26578
  this.pendingInit
26205
- ]).then(() => getFileSystem().appendFile(path3, `${timestamp} ${formatted}`).catch(() => {}));
26579
+ ]).then(() => getFileSystem().appendFile(path3, `${timestamp2} ${formatted}`).catch(() => {}));
26206
26580
  }
26207
26581
  debug(message, ...args) {
26208
26582
  if (this.level > 0 /* DEBUG */)
@@ -26596,10 +26970,10 @@ class LoggerTelemetryProvider {
26596
26970
  success
26597
26971
  })));
26598
26972
  }
26599
- async trackDependency(name, type, duration, success, properties) {
26973
+ async trackDependency(name, type2, duration, success, properties) {
26600
26974
  logger.debug(formatMessage("Dependency", name, this.enrich({
26601
26975
  ...properties,
26602
- type,
26976
+ type: type2,
26603
26977
  duration: `${duration}ms`,
26604
26978
  success
26605
26979
  })));
@@ -26832,7 +27206,7 @@ class TelemetryService {
26832
27206
  throw error;
26833
27207
  }
26834
27208
  }
26835
- async trackDependencyOperation(name, type, fn, properties) {
27209
+ async trackDependencyOperation(name, type2, fn, properties) {
26836
27210
  const parentContext = this.getCurrentContext();
26837
27211
  if (!parentContext) {
26838
27212
  throw new Error("trackDependencyOperation must be called within a trackRequest block.");
@@ -26847,13 +27221,13 @@ class TelemetryService {
26847
27221
  const result = await this.contextStorage.run(childContext, fn);
26848
27222
  const durationMs = performance.now() - startTime;
26849
27223
  const enrichedProperties = this.enrichPropertiesWithContext(properties, childContext);
26850
- await this.telemetryProvider.trackDependency(name, type, durationMs, true, enrichedProperties);
27224
+ await this.telemetryProvider.trackDependency(name, type2, durationMs, true, enrichedProperties);
26851
27225
  return result;
26852
27226
  } catch (error) {
26853
27227
  const durationMs = performance.now() - startTime;
26854
27228
  const err = error instanceof Error ? error : new Error(String(error));
26855
27229
  const enrichedProperties = this.enrichPropertiesWithContext({ ...properties, errorMessage: err.message }, childContext);
26856
- await this.telemetryProvider.trackDependency(name, type, durationMs, false, enrichedProperties);
27230
+ await this.telemetryProvider.trackDependency(name, type2, durationMs, false, enrichedProperties);
26857
27231
  throw error;
26858
27232
  }
26859
27233
  }
@@ -27060,8 +27434,8 @@ function printOutput(data, format = "json", logFn, asciiSafe = false) {
27060
27434
  }
27061
27435
  switch (format) {
27062
27436
  case "json": {
27063
- const json = JSON.stringify(data, null, 2);
27064
- logFn(asciiSafe ? escapeNonAscii(json) : json);
27437
+ const json2 = JSON.stringify(data, null, 2);
27438
+ logFn(asciiSafe ? escapeNonAscii(json2) : json2);
27065
27439
  break;
27066
27440
  }
27067
27441
  case "yaml":
@@ -27397,8 +27771,8 @@ var OutputFormatter;
27397
27771
  const sink = getOutputSink();
27398
27772
  const normalized = toPascalCaseData(data);
27399
27773
  if (format === "json") {
27400
- const json = JSON.stringify(normalized);
27401
- const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(json) : json;
27774
+ const json2 = JSON.stringify(normalized);
27775
+ const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(json2) : json2;
27402
27776
  sink.writeErr(`${safe}
27403
27777
  `);
27404
27778
  } else {
@@ -27648,8 +28022,8 @@ function redactValueDetectors(value) {
27648
28022
  out = out.replace(JWT_PATTERN, () => REDACTED);
27649
28023
  out = out.replace(URL_PATTERN, (match) => {
27650
28024
  const trailing = match.match(URL_TRAILING_PUNCT)?.[0] ?? "";
27651
- const core = trailing ? match.slice(0, -trailing.length) : match;
27652
- return `${redactUrl(core)}${trailing}`;
28025
+ const core2 = trailing ? match.slice(0, -trailing.length) : match;
28026
+ return `${redactUrl(core2)}${trailing}`;
27653
28027
  });
27654
28028
  out = out.replace(USER_HOME_PATTERN, (_match, sep1, folder, sep2) => `${sep1}${folder}${sep2}<user>`);
27655
28029
  out = out.replace(EMAIL_PATTERN, (match) => `email#${shortHash(match)}`);
@@ -28567,12 +28941,12 @@ var loadEnvFileAsync = async ({ envPath }) => {
28567
28941
  var saveEnvFileAsync = async ({
28568
28942
  envPath,
28569
28943
  data,
28570
- merge = true
28944
+ merge: merge2 = true
28571
28945
  }) => {
28572
28946
  const fs7 = getFileSystem();
28573
28947
  const absolutePath = fs7.path.isAbsolute(envPath) ? envPath : fs7.path.join(fs7.env.homedir(), envPath);
28574
28948
  let existingData = {};
28575
- if (merge && await fs7.exists(absolutePath)) {
28949
+ if (merge2 && await fs7.exists(absolutePath)) {
28576
28950
  try {
28577
28951
  existingData = await loadEnvFileAsync({ envPath: absolutePath });
28578
28952
  } catch {}
@@ -29728,4 +30102,4 @@ export {
29728
30102
  metadata
29729
30103
  };
29730
30104
 
29731
- //# debugId=4770BD4453F100DF64756E2164756E21
30105
+ //# debugId=11E75C3E9A13131364756E2164756E21