@uipath/codedagent-tool 1.197.0 → 1.198.0-preview.101

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 (3) hide show
  1. package/dist/init.js +1394 -904
  2. package/dist/tool.js +1395 -905
  3. 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;
@@ -23342,31 +23342,17 @@ function search(data, expression, options) {
23342
23342
  }
23343
23343
 
23344
23344
  // ../../node_modules/js-yaml/dist/js-yaml.mjs
23345
- /*! js-yaml 4.2.0 https://github.com/nodeca/js-yaml @license MIT */
23346
- var __create2 = Object.create;
23347
- var __defProp2 = Object.defineProperty;
23348
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
23349
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
23350
- var __getProtoOf2 = Object.getPrototypeOf;
23351
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
23352
- var __commonJSMin = (cb, mod2) => () => (mod2 || (cb((mod2 = { exports: {} }).exports, mod2), cb = null), mod2.exports);
23353
- var __copyProps = (to, from, except, desc) => {
23354
- if (from && typeof from === "object" || typeof from === "function")
23355
- for (var keys = __getOwnPropNames2(from), i = 0, n = keys.length, key;i < n; i++) {
23356
- key = keys[i];
23357
- if (!__hasOwnProp2.call(to, key) && key !== except)
23358
- __defProp2(to, key, {
23359
- get: ((k) => from[k]).bind(null, key),
23360
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
23361
- });
23362
- }
23363
- return to;
23364
- };
23365
- var __toESM2 = (mod2, isNodeMode, target) => (target = mod2 != null ? __create2(__getProtoOf2(mod2)) : {}, __copyProps(isNodeMode || !mod2 || !mod2.__esModule ? __defProp2(target, "default", {
23366
- value: mod2,
23367
- enumerable: true
23368
- }) : target, mod2));
23369
- var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
23345
+ function getDefaultExportFromCjs(x) {
23346
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
23347
+ }
23348
+ var jsYaml = {};
23349
+ var loader = {};
23350
+ var common = {};
23351
+ var hasRequiredCommon;
23352
+ function requireCommon() {
23353
+ if (hasRequiredCommon)
23354
+ return common;
23355
+ hasRequiredCommon = 1;
23370
23356
  function isNothing(subject) {
23371
23357
  return typeof subject === "undefined" || subject === null;
23372
23358
  }
@@ -23392,55 +23378,71 @@ var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
23392
23378
  }
23393
23379
  function repeat(string, count) {
23394
23380
  let result = "";
23395
- for (let cycle = 0;cycle < count; cycle += 1)
23381
+ for (let cycle = 0;cycle < count; cycle += 1) {
23396
23382
  result += string;
23383
+ }
23397
23384
  return result;
23398
23385
  }
23399
23386
  function isNegativeZero(number) {
23400
23387
  return number === 0 && Number.NEGATIVE_INFINITY === 1 / number;
23401
23388
  }
23402
- module.exports.isNothing = isNothing;
23403
- module.exports.isObject = isObject2;
23404
- module.exports.toArray = toArray;
23405
- module.exports.repeat = repeat;
23406
- module.exports.isNegativeZero = isNegativeZero;
23407
- module.exports.extend = extend;
23408
- });
23409
- var require_exception = /* @__PURE__ */ __commonJSMin((exports, module) => {
23410
- function formatError(exception, compact) {
23389
+ common.isNothing = isNothing;
23390
+ common.isObject = isObject2;
23391
+ common.toArray = toArray;
23392
+ common.repeat = repeat;
23393
+ common.isNegativeZero = isNegativeZero;
23394
+ common.extend = extend;
23395
+ return common;
23396
+ }
23397
+ var exception;
23398
+ var hasRequiredException;
23399
+ function requireException() {
23400
+ if (hasRequiredException)
23401
+ return exception;
23402
+ hasRequiredException = 1;
23403
+ function formatError(exception2, compact) {
23411
23404
  let where = "";
23412
- const message = exception.reason || "(unknown reason)";
23413
- if (!exception.mark)
23405
+ const message = exception2.reason || "(unknown reason)";
23406
+ if (!exception2.mark)
23414
23407
  return message;
23415
- if (exception.mark.name)
23416
- where += 'in "' + exception.mark.name + '" ';
23417
- where += "(" + (exception.mark.line + 1) + ":" + (exception.mark.column + 1) + ")";
23418
- if (!compact && exception.mark.snippet)
23408
+ if (exception2.mark.name) {
23409
+ where += 'in "' + exception2.mark.name + '" ';
23410
+ }
23411
+ where += "(" + (exception2.mark.line + 1) + ":" + (exception2.mark.column + 1) + ")";
23412
+ if (!compact && exception2.mark.snippet) {
23419
23413
  where += `
23420
23414
 
23421
- ` + exception.mark.snippet;
23415
+ ` + exception2.mark.snippet;
23416
+ }
23422
23417
  return message + " " + where;
23423
23418
  }
23424
- function YAMLException(reason, mark) {
23419
+ function YAMLException2(reason, mark) {
23425
23420
  Error.call(this);
23426
23421
  this.name = "YAMLException";
23427
23422
  this.reason = reason;
23428
23423
  this.mark = mark;
23429
23424
  this.message = formatError(this, false);
23430
- if (Error.captureStackTrace)
23425
+ if (Error.captureStackTrace) {
23431
23426
  Error.captureStackTrace(this, this.constructor);
23432
- else
23433
- this.stack = (/* @__PURE__ */ new Error()).stack || "";
23427
+ } else {
23428
+ this.stack = new Error().stack || "";
23429
+ }
23434
23430
  }
23435
- YAMLException.prototype = Object.create(Error.prototype);
23436
- YAMLException.prototype.constructor = YAMLException;
23437
- YAMLException.prototype.toString = function toString(compact) {
23431
+ YAMLException2.prototype = Object.create(Error.prototype);
23432
+ YAMLException2.prototype.constructor = YAMLException2;
23433
+ YAMLException2.prototype.toString = function toString(compact) {
23438
23434
  return this.name + ": " + formatError(this, compact);
23439
23435
  };
23440
- module.exports = YAMLException;
23441
- });
23442
- var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
23443
- var common = require_common();
23436
+ exception = YAMLException2;
23437
+ return exception;
23438
+ }
23439
+ var snippet;
23440
+ var hasRequiredSnippet;
23441
+ function requireSnippet() {
23442
+ if (hasRequiredSnippet)
23443
+ return snippet;
23444
+ hasRequiredSnippet = 1;
23445
+ const common2 = requireCommon();
23444
23446
  function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
23445
23447
  let head = "";
23446
23448
  let tail = "";
@@ -23459,7 +23461,7 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
23459
23461
  };
23460
23462
  }
23461
23463
  function padStart(string, max) {
23462
- return common.repeat(" ", max - string.length) + string;
23464
+ return common2.repeat(" ", max - string.length) + string;
23463
23465
  }
23464
23466
  function makeSnippet(mark, options) {
23465
23467
  options = Object.create(options || null);
@@ -23481,8 +23483,9 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
23481
23483
  while (match = re.exec(mark.buffer)) {
23482
23484
  lineEnds.push(match.index);
23483
23485
  lineStarts.push(match.index + match[0].length);
23484
- if (mark.position <= match.index && foundLineNo < 0)
23486
+ if (mark.position <= match.index && foundLineNo < 0) {
23485
23487
  foundLineNo = lineStarts.length - 2;
23488
+ }
23486
23489
  }
23487
23490
  if (foundLineNo < 0)
23488
23491
  foundLineNo = lineStarts.length - 1;
@@ -23493,28 +23496,34 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
23493
23496
  if (foundLineNo - i < 0)
23494
23497
  break;
23495
23498
  const line2 = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength);
23496
- result = common.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + `
23499
+ result = common2.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + `
23497
23500
  ` + result;
23498
23501
  }
23499
23502
  const line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
23500
- result += common.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + `
23503
+ result += common2.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + `
23501
23504
  `;
23502
- result += common.repeat("-", options.indent + lineNoLength + 3 + line.pos) + `^
23505
+ result += common2.repeat("-", options.indent + lineNoLength + 3 + line.pos) + `^
23503
23506
  `;
23504
23507
  for (let i = 1;i <= options.linesAfter; i++) {
23505
23508
  if (foundLineNo + i >= lineEnds.length)
23506
23509
  break;
23507
23510
  const line2 = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength);
23508
- result += common.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + `
23511
+ result += common2.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + `
23509
23512
  `;
23510
23513
  }
23511
23514
  return result.replace(/\n$/, "");
23512
23515
  }
23513
- module.exports = makeSnippet;
23514
- });
23515
- var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
23516
- var YAMLException = require_exception();
23517
- var TYPE_CONSTRUCTOR_OPTIONS = [
23516
+ snippet = makeSnippet;
23517
+ return snippet;
23518
+ }
23519
+ var type;
23520
+ var hasRequiredType;
23521
+ function requireType() {
23522
+ if (hasRequiredType)
23523
+ return type;
23524
+ hasRequiredType = 1;
23525
+ const YAMLException2 = requireException();
23526
+ const TYPE_CONSTRUCTOR_OPTIONS = [
23518
23527
  "kind",
23519
23528
  "multi",
23520
23529
  "resolve",
@@ -23526,26 +23535,28 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
23526
23535
  "defaultStyle",
23527
23536
  "styleAliases"
23528
23537
  ];
23529
- var YAML_NODE_KINDS = [
23538
+ const YAML_NODE_KINDS = [
23530
23539
  "scalar",
23531
23540
  "sequence",
23532
23541
  "mapping"
23533
23542
  ];
23534
- function compileStyleAliases(map) {
23543
+ function compileStyleAliases(map2) {
23535
23544
  const result = {};
23536
- if (map !== null)
23537
- Object.keys(map).forEach(function(style) {
23538
- map[style].forEach(function(alias) {
23545
+ if (map2 !== null) {
23546
+ Object.keys(map2).forEach(function(style) {
23547
+ map2[style].forEach(function(alias) {
23539
23548
  result[String(alias)] = style;
23540
23549
  });
23541
23550
  });
23551
+ }
23542
23552
  return result;
23543
23553
  }
23544
- function Type(tag, options) {
23554
+ function Type2(tag, options) {
23545
23555
  options = options || {};
23546
23556
  Object.keys(options).forEach(function(name) {
23547
- if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1)
23548
- throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
23557
+ if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
23558
+ throw new YAMLException2('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
23559
+ }
23549
23560
  });
23550
23561
  this.options = options;
23551
23562
  this.tag = tag;
@@ -23563,21 +23574,29 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
23563
23574
  this.defaultStyle = options["defaultStyle"] || null;
23564
23575
  this.multi = options["multi"] || false;
23565
23576
  this.styleAliases = compileStyleAliases(options["styleAliases"] || null);
23566
- if (YAML_NODE_KINDS.indexOf(this.kind) === -1)
23567
- throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
23577
+ if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
23578
+ throw new YAMLException2('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
23579
+ }
23568
23580
  }
23569
- module.exports = Type;
23570
- });
23571
- var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
23572
- var YAMLException = require_exception();
23573
- var Type = require_type();
23574
- function compileList(schema, name) {
23581
+ type = Type2;
23582
+ return type;
23583
+ }
23584
+ var schema;
23585
+ var hasRequiredSchema;
23586
+ function requireSchema() {
23587
+ if (hasRequiredSchema)
23588
+ return schema;
23589
+ hasRequiredSchema = 1;
23590
+ const YAMLException2 = requireException();
23591
+ const Type2 = requireType();
23592
+ function compileList(schema2, name) {
23575
23593
  const result = [];
23576
- schema[name].forEach(function(currentType) {
23594
+ schema2[name].forEach(function(currentType) {
23577
23595
  let newIndex = result.length;
23578
23596
  result.forEach(function(previousType, previousIndex) {
23579
- if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi)
23597
+ if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) {
23580
23598
  newIndex = previousIndex;
23599
+ }
23581
23600
  });
23582
23601
  result[newIndex] = currentType;
23583
23602
  });
@@ -23596,47 +23615,54 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
23596
23615
  fallback: []
23597
23616
  }
23598
23617
  };
23599
- function collectType(type) {
23600
- if (type.multi) {
23601
- result.multi[type.kind].push(type);
23602
- result.multi["fallback"].push(type);
23603
- } else
23604
- result[type.kind][type.tag] = result["fallback"][type.tag] = type;
23618
+ function collectType(type2) {
23619
+ if (type2.multi) {
23620
+ result.multi[type2.kind].push(type2);
23621
+ result.multi["fallback"].push(type2);
23622
+ } else {
23623
+ result[type2.kind][type2.tag] = result["fallback"][type2.tag] = type2;
23624
+ }
23605
23625
  }
23606
- for (let index = 0, length = arguments.length;index < length; index += 1)
23626
+ for (let index = 0, length = arguments.length;index < length; index += 1) {
23607
23627
  arguments[index].forEach(collectType);
23628
+ }
23608
23629
  return result;
23609
23630
  }
23610
- function Schema(definition) {
23631
+ function Schema2(definition) {
23611
23632
  return this.extend(definition);
23612
23633
  }
23613
- Schema.prototype.extend = function extend(definition) {
23634
+ Schema2.prototype.extend = function extend(definition) {
23614
23635
  let implicit = [];
23615
23636
  let explicit = [];
23616
- if (definition instanceof Type)
23637
+ if (definition instanceof Type2) {
23617
23638
  explicit.push(definition);
23618
- else if (Array.isArray(definition))
23639
+ } else if (Array.isArray(definition)) {
23619
23640
  explicit = explicit.concat(definition);
23620
- else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
23641
+ } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
23621
23642
  if (definition.implicit)
23622
23643
  implicit = implicit.concat(definition.implicit);
23623
23644
  if (definition.explicit)
23624
23645
  explicit = explicit.concat(definition.explicit);
23625
- } else
23626
- throw new YAMLException("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
23627
- implicit.forEach(function(type) {
23628
- if (!(type instanceof Type))
23629
- throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
23630
- if (type.loadKind && type.loadKind !== "scalar")
23631
- throw new YAMLException("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
23632
- if (type.multi)
23633
- throw new YAMLException("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
23646
+ } else {
23647
+ throw new YAMLException2("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
23648
+ }
23649
+ implicit.forEach(function(type2) {
23650
+ if (!(type2 instanceof Type2)) {
23651
+ throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
23652
+ }
23653
+ if (type2.loadKind && type2.loadKind !== "scalar") {
23654
+ throw new YAMLException2("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
23655
+ }
23656
+ if (type2.multi) {
23657
+ throw new YAMLException2("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
23658
+ }
23634
23659
  });
23635
- explicit.forEach(function(type) {
23636
- if (!(type instanceof Type))
23637
- throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
23660
+ explicit.forEach(function(type2) {
23661
+ if (!(type2 instanceof Type2)) {
23662
+ throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
23663
+ }
23638
23664
  });
23639
- const result = Object.create(Schema.prototype);
23665
+ const result = Object.create(Schema2.prototype);
23640
23666
  result.implicit = (this.implicit || []).concat(implicit);
23641
23667
  result.explicit = (this.explicit || []).concat(explicit);
23642
23668
  result.compiledImplicit = compileList(result, "implicit");
@@ -23644,41 +23670,77 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
23644
23670
  result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);
23645
23671
  return result;
23646
23672
  };
23647
- module.exports = Schema;
23648
- });
23649
- var require_str = /* @__PURE__ */ __commonJSMin((exports, module) => {
23650
- module.exports = new (require_type())("tag:yaml.org,2002:str", {
23673
+ schema = Schema2;
23674
+ return schema;
23675
+ }
23676
+ var str;
23677
+ var hasRequiredStr;
23678
+ function requireStr() {
23679
+ if (hasRequiredStr)
23680
+ return str;
23681
+ hasRequiredStr = 1;
23682
+ const Type2 = requireType();
23683
+ str = new Type2("tag:yaml.org,2002:str", {
23651
23684
  kind: "scalar",
23652
23685
  construct: function(data) {
23653
23686
  return data !== null ? data : "";
23654
23687
  }
23655
23688
  });
23656
- });
23657
- var require_seq = /* @__PURE__ */ __commonJSMin((exports, module) => {
23658
- module.exports = new (require_type())("tag:yaml.org,2002:seq", {
23689
+ return str;
23690
+ }
23691
+ var seq;
23692
+ var hasRequiredSeq;
23693
+ function requireSeq() {
23694
+ if (hasRequiredSeq)
23695
+ return seq;
23696
+ hasRequiredSeq = 1;
23697
+ const Type2 = requireType();
23698
+ seq = new Type2("tag:yaml.org,2002:seq", {
23659
23699
  kind: "sequence",
23660
23700
  construct: function(data) {
23661
23701
  return data !== null ? data : [];
23662
23702
  }
23663
23703
  });
23664
- });
23665
- var require_map = /* @__PURE__ */ __commonJSMin((exports, module) => {
23666
- module.exports = new (require_type())("tag:yaml.org,2002:map", {
23704
+ return seq;
23705
+ }
23706
+ var map;
23707
+ var hasRequiredMap;
23708
+ function requireMap() {
23709
+ if (hasRequiredMap)
23710
+ return map;
23711
+ hasRequiredMap = 1;
23712
+ const Type2 = requireType();
23713
+ map = new Type2("tag:yaml.org,2002:map", {
23667
23714
  kind: "mapping",
23668
23715
  construct: function(data) {
23669
23716
  return data !== null ? data : {};
23670
23717
  }
23671
23718
  });
23672
- });
23673
- var require_failsafe = /* @__PURE__ */ __commonJSMin((exports, module) => {
23674
- module.exports = new (require_schema())({ explicit: [
23675
- require_str(),
23676
- require_seq(),
23677
- require_map()
23678
- ] });
23679
- });
23680
- var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
23681
- var Type = require_type();
23719
+ return map;
23720
+ }
23721
+ var failsafe;
23722
+ var hasRequiredFailsafe;
23723
+ function requireFailsafe() {
23724
+ if (hasRequiredFailsafe)
23725
+ return failsafe;
23726
+ hasRequiredFailsafe = 1;
23727
+ const Schema2 = requireSchema();
23728
+ failsafe = new Schema2({
23729
+ explicit: [
23730
+ requireStr(),
23731
+ requireSeq(),
23732
+ requireMap()
23733
+ ]
23734
+ });
23735
+ return failsafe;
23736
+ }
23737
+ var _null;
23738
+ var hasRequired_null;
23739
+ function require_null() {
23740
+ if (hasRequired_null)
23741
+ return _null;
23742
+ hasRequired_null = 1;
23743
+ const Type2 = requireType();
23682
23744
  function resolveYamlNull(data) {
23683
23745
  if (data === null)
23684
23746
  return true;
@@ -23691,7 +23753,7 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
23691
23753
  function isNull(object) {
23692
23754
  return object === null;
23693
23755
  }
23694
- module.exports = new Type("tag:yaml.org,2002:null", {
23756
+ _null = new Type2("tag:yaml.org,2002:null", {
23695
23757
  kind: "scalar",
23696
23758
  resolve: resolveYamlNull,
23697
23759
  construct: constructYamlNull,
@@ -23715,9 +23777,15 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
23715
23777
  },
23716
23778
  defaultStyle: "lowercase"
23717
23779
  });
23718
- });
23719
- var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
23720
- var Type = require_type();
23780
+ return _null;
23781
+ }
23782
+ var bool;
23783
+ var hasRequiredBool;
23784
+ function requireBool() {
23785
+ if (hasRequiredBool)
23786
+ return bool;
23787
+ hasRequiredBool = 1;
23788
+ const Type2 = requireType();
23721
23789
  function resolveYamlBoolean(data) {
23722
23790
  if (data === null)
23723
23791
  return false;
@@ -23730,7 +23798,7 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
23730
23798
  function isBoolean(object) {
23731
23799
  return Object.prototype.toString.call(object) === "[object Boolean]";
23732
23800
  }
23733
- module.exports = new Type("tag:yaml.org,2002:bool", {
23801
+ bool = new Type2("tag:yaml.org,2002:bool", {
23734
23802
  kind: "scalar",
23735
23803
  resolve: resolveYamlBoolean,
23736
23804
  construct: constructYamlBoolean,
@@ -23748,10 +23816,16 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
23748
23816
  },
23749
23817
  defaultStyle: "lowercase"
23750
23818
  });
23751
- });
23752
- var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
23753
- var common = require_common();
23754
- var Type = require_type();
23819
+ return bool;
23820
+ }
23821
+ var int;
23822
+ var hasRequiredInt;
23823
+ function requireInt() {
23824
+ if (hasRequiredInt)
23825
+ return int;
23826
+ hasRequiredInt = 1;
23827
+ const common2 = requireCommon();
23828
+ const Type2 = requireType();
23755
23829
  function isHexCode(c) {
23756
23830
  return c >= 48 && c <= 57 || c >= 65 && c <= 70 || c >= 97 && c <= 102;
23757
23831
  }
@@ -23770,8 +23844,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
23770
23844
  if (!max)
23771
23845
  return false;
23772
23846
  let ch = data[index];
23773
- if (ch === "-" || ch === "+")
23847
+ if (ch === "-" || ch === "+") {
23774
23848
  ch = data[++index];
23849
+ }
23775
23850
  if (ch === "0") {
23776
23851
  if (index + 1 === max)
23777
23852
  return true;
@@ -23784,7 +23859,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
23784
23859
  return false;
23785
23860
  hasDigits = true;
23786
23861
  }
23787
- return hasDigits && Number.isFinite(parseYamlInteger(data));
23862
+ return hasDigits && isFinite(parseYamlInteger(data));
23788
23863
  }
23789
23864
  if (ch === "x") {
23790
23865
  index++;
@@ -23793,7 +23868,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
23793
23868
  return false;
23794
23869
  hasDigits = true;
23795
23870
  }
23796
- return hasDigits && Number.isFinite(parseYamlInteger(data));
23871
+ return hasDigits && isFinite(parseYamlInteger(data));
23797
23872
  }
23798
23873
  if (ch === "o") {
23799
23874
  index++;
@@ -23802,17 +23877,18 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
23802
23877
  return false;
23803
23878
  hasDigits = true;
23804
23879
  }
23805
- return hasDigits && Number.isFinite(parseYamlInteger(data));
23880
+ return hasDigits && isFinite(parseYamlInteger(data));
23806
23881
  }
23807
23882
  }
23808
23883
  for (;index < max; index++) {
23809
- if (!isDecCode(data.charCodeAt(index)))
23884
+ if (!isDecCode(data.charCodeAt(index))) {
23810
23885
  return false;
23886
+ }
23811
23887
  hasDigits = true;
23812
23888
  }
23813
23889
  if (!hasDigits)
23814
23890
  return false;
23815
- return Number.isFinite(parseYamlInteger(data));
23891
+ return isFinite(parseYamlInteger(data));
23816
23892
  }
23817
23893
  function parseYamlInteger(data) {
23818
23894
  let value = data;
@@ -23840,9 +23916,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
23840
23916
  return parseYamlInteger(data);
23841
23917
  }
23842
23918
  function isInteger(object) {
23843
- return Object.prototype.toString.call(object) === "[object Number]" && object % 1 === 0 && !common.isNegativeZero(object);
23919
+ return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 === 0 && !common2.isNegativeZero(object));
23844
23920
  }
23845
- module.exports = new Type("tag:yaml.org,2002:int", {
23921
+ int = new Type2("tag:yaml.org,2002:int", {
23846
23922
  kind: "scalar",
23847
23923
  resolve: resolveYamlInteger,
23848
23924
  construct: constructYamlInteger,
@@ -23869,35 +23945,45 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
23869
23945
  hexadecimal: [16, "hex"]
23870
23946
  }
23871
23947
  });
23872
- });
23873
- var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
23874
- var common = require_common();
23875
- var Type = require_type();
23876
- 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))$");
23877
- var YAML_FLOAT_SPECIAL_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
23948
+ return int;
23949
+ }
23950
+ var float;
23951
+ var hasRequiredFloat;
23952
+ function requireFloat() {
23953
+ if (hasRequiredFloat)
23954
+ return float;
23955
+ hasRequiredFloat = 1;
23956
+ const common2 = requireCommon();
23957
+ const Type2 = requireType();
23958
+ const YAML_FLOAT_PATTERN = new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
23959
+ const YAML_FLOAT_SPECIAL_PATTERN = new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
23878
23960
  function resolveYamlFloat(data) {
23879
23961
  if (data === null)
23880
23962
  return false;
23881
- if (!YAML_FLOAT_PATTERN.test(data))
23963
+ if (!YAML_FLOAT_PATTERN.test(data)) {
23882
23964
  return false;
23883
- if (Number.isFinite(parseFloat(data, 10)))
23965
+ }
23966
+ if (isFinite(parseFloat(data, 10))) {
23884
23967
  return true;
23968
+ }
23885
23969
  return YAML_FLOAT_SPECIAL_PATTERN.test(data);
23886
23970
  }
23887
23971
  function constructYamlFloat(data) {
23888
23972
  let value = data.toLowerCase();
23889
23973
  const sign = value[0] === "-" ? -1 : 1;
23890
- if ("+-".indexOf(value[0]) >= 0)
23974
+ if ("+-".indexOf(value[0]) >= 0) {
23891
23975
  value = value.slice(1);
23892
- if (value === ".inf")
23976
+ }
23977
+ if (value === ".inf") {
23893
23978
  return sign === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
23894
- else if (value === ".nan")
23979
+ } else if (value === ".nan") {
23895
23980
  return NaN;
23981
+ }
23896
23982
  return sign * parseFloat(value, 10);
23897
23983
  }
23898
- var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
23984
+ const SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
23899
23985
  function representYamlFloat(object, style) {
23900
- if (isNaN(object))
23986
+ if (isNaN(object)) {
23901
23987
  switch (style) {
23902
23988
  case "lowercase":
23903
23989
  return ".nan";
@@ -23906,7 +23992,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
23906
23992
  case "camelcase":
23907
23993
  return ".NaN";
23908
23994
  }
23909
- else if (Number.POSITIVE_INFINITY === object)
23995
+ } else if (Number.POSITIVE_INFINITY === object) {
23910
23996
  switch (style) {
23911
23997
  case "lowercase":
23912
23998
  return ".inf";
@@ -23915,7 +24001,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
23915
24001
  case "camelcase":
23916
24002
  return ".Inf";
23917
24003
  }
23918
- else if (Number.NEGATIVE_INFINITY === object)
24004
+ } else if (Number.NEGATIVE_INFINITY === object) {
23919
24005
  switch (style) {
23920
24006
  case "lowercase":
23921
24007
  return "-.inf";
@@ -23924,15 +24010,16 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
23924
24010
  case "camelcase":
23925
24011
  return "-.Inf";
23926
24012
  }
23927
- else if (common.isNegativeZero(object))
24013
+ } else if (common2.isNegativeZero(object)) {
23928
24014
  return "-0.0";
24015
+ }
23929
24016
  const res = object.toString(10);
23930
24017
  return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
23931
24018
  }
23932
24019
  function isFloat(object) {
23933
- return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common.isNegativeZero(object));
24020
+ return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common2.isNegativeZero(object));
23934
24021
  }
23935
- module.exports = new Type("tag:yaml.org,2002:float", {
24022
+ float = new Type2("tag:yaml.org,2002:float", {
23936
24023
  kind: "scalar",
23937
24024
  resolve: resolveYamlFloat,
23938
24025
  construct: constructYamlFloat,
@@ -23940,22 +24027,42 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
23940
24027
  represent: representYamlFloat,
23941
24028
  defaultStyle: "lowercase"
23942
24029
  });
23943
- });
23944
- var require_json = /* @__PURE__ */ __commonJSMin((exports, module) => {
23945
- module.exports = require_failsafe().extend({ implicit: [
23946
- require_null(),
23947
- require_bool(),
23948
- require_int(),
23949
- require_float()
23950
- ] });
23951
- });
23952
- var require_core = /* @__PURE__ */ __commonJSMin((exports, module) => {
23953
- module.exports = require_json();
23954
- });
23955
- var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
23956
- var Type = require_type();
23957
- var YAML_DATE_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
23958
- 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]))?))?$");
24030
+ return float;
24031
+ }
24032
+ var json;
24033
+ var hasRequiredJson;
24034
+ function requireJson() {
24035
+ if (hasRequiredJson)
24036
+ return json;
24037
+ hasRequiredJson = 1;
24038
+ json = requireFailsafe().extend({
24039
+ implicit: [
24040
+ require_null(),
24041
+ requireBool(),
24042
+ requireInt(),
24043
+ requireFloat()
24044
+ ]
24045
+ });
24046
+ return json;
24047
+ }
24048
+ var core;
24049
+ var hasRequiredCore;
24050
+ function requireCore() {
24051
+ if (hasRequiredCore)
24052
+ return core;
24053
+ hasRequiredCore = 1;
24054
+ core = requireJson();
24055
+ return core;
24056
+ }
24057
+ var timestamp;
24058
+ var hasRequiredTimestamp;
24059
+ function requireTimestamp() {
24060
+ if (hasRequiredTimestamp)
24061
+ return timestamp;
24062
+ hasRequiredTimestamp = 1;
24063
+ const Type2 = requireType();
24064
+ const YAML_DATE_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
24065
+ 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]))?))?$");
23959
24066
  function resolveYamlTimestamp(data) {
23960
24067
  if (data === null)
23961
24068
  return false;
@@ -23976,15 +24083,17 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
23976
24083
  const year = +match[1];
23977
24084
  const month = +match[2] - 1;
23978
24085
  const day = +match[3];
23979
- if (!match[4])
24086
+ if (!match[4]) {
23980
24087
  return new Date(Date.UTC(year, month, day));
24088
+ }
23981
24089
  const hour = +match[4];
23982
24090
  const minute = +match[5];
23983
24091
  const second = +match[6];
23984
24092
  if (match[7]) {
23985
24093
  fraction = match[7].slice(0, 3);
23986
- while (fraction.length < 3)
24094
+ while (fraction.length < 3) {
23987
24095
  fraction += "0";
24096
+ }
23988
24097
  fraction = +fraction;
23989
24098
  }
23990
24099
  if (match[9]) {
@@ -24002,36 +24111,48 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
24002
24111
  function representYamlTimestamp(object) {
24003
24112
  return object.toISOString();
24004
24113
  }
24005
- module.exports = new Type("tag:yaml.org,2002:timestamp", {
24114
+ timestamp = new Type2("tag:yaml.org,2002:timestamp", {
24006
24115
  kind: "scalar",
24007
24116
  resolve: resolveYamlTimestamp,
24008
24117
  construct: constructYamlTimestamp,
24009
24118
  instanceOf: Date,
24010
24119
  represent: representYamlTimestamp
24011
24120
  });
24012
- });
24013
- var require_merge = /* @__PURE__ */ __commonJSMin((exports, module) => {
24014
- var Type = require_type();
24121
+ return timestamp;
24122
+ }
24123
+ var merge;
24124
+ var hasRequiredMerge;
24125
+ function requireMerge() {
24126
+ if (hasRequiredMerge)
24127
+ return merge;
24128
+ hasRequiredMerge = 1;
24129
+ const Type2 = requireType();
24015
24130
  function resolveYamlMerge(data) {
24016
24131
  return data === "<<" || data === null;
24017
24132
  }
24018
- module.exports = new Type("tag:yaml.org,2002:merge", {
24133
+ merge = new Type2("tag:yaml.org,2002:merge", {
24019
24134
  kind: "scalar",
24020
24135
  resolve: resolveYamlMerge
24021
24136
  });
24022
- });
24023
- var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
24024
- var Type = require_type();
24025
- var BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
24137
+ return merge;
24138
+ }
24139
+ var binary;
24140
+ var hasRequiredBinary;
24141
+ function requireBinary() {
24142
+ if (hasRequiredBinary)
24143
+ return binary;
24144
+ hasRequiredBinary = 1;
24145
+ const Type2 = requireType();
24146
+ const BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
24026
24147
  \r`;
24027
24148
  function resolveYamlBinary(data) {
24028
24149
  if (data === null)
24029
24150
  return false;
24030
24151
  let bitlen = 0;
24031
24152
  const max = data.length;
24032
- const map = BASE64_MAP;
24153
+ const map2 = BASE64_MAP;
24033
24154
  for (let idx = 0;idx < max; idx++) {
24034
- const code = map.indexOf(data.charAt(idx));
24155
+ const code = map2.indexOf(data.charAt(idx));
24035
24156
  if (code > 64)
24036
24157
  continue;
24037
24158
  if (code < 0)
@@ -24043,7 +24164,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
24043
24164
  function constructYamlBinary(data) {
24044
24165
  const input = data.replace(/[\r\n=]/g, "");
24045
24166
  const max = input.length;
24046
- const map = BASE64_MAP;
24167
+ const map2 = BASE64_MAP;
24047
24168
  let bits = 0;
24048
24169
  const result = [];
24049
24170
  for (let idx = 0;idx < max; idx++) {
@@ -24052,7 +24173,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
24052
24173
  result.push(bits >> 8 & 255);
24053
24174
  result.push(bits & 255);
24054
24175
  }
24055
- bits = bits << 6 | map.indexOf(input.charAt(idx));
24176
+ bits = bits << 6 | map2.indexOf(input.charAt(idx));
24056
24177
  }
24057
24178
  const tailbits = max % 4 * 6;
24058
24179
  if (tailbits === 0) {
@@ -24062,58 +24183,65 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
24062
24183
  } else if (tailbits === 18) {
24063
24184
  result.push(bits >> 10 & 255);
24064
24185
  result.push(bits >> 2 & 255);
24065
- } else if (tailbits === 12)
24186
+ } else if (tailbits === 12) {
24066
24187
  result.push(bits >> 4 & 255);
24188
+ }
24067
24189
  return new Uint8Array(result);
24068
24190
  }
24069
24191
  function representYamlBinary(object) {
24070
24192
  let result = "";
24071
24193
  let bits = 0;
24072
24194
  const max = object.length;
24073
- const map = BASE64_MAP;
24195
+ const map2 = BASE64_MAP;
24074
24196
  for (let idx = 0;idx < max; idx++) {
24075
24197
  if (idx % 3 === 0 && idx) {
24076
- result += map[bits >> 18 & 63];
24077
- result += map[bits >> 12 & 63];
24078
- result += map[bits >> 6 & 63];
24079
- result += map[bits & 63];
24198
+ result += map2[bits >> 18 & 63];
24199
+ result += map2[bits >> 12 & 63];
24200
+ result += map2[bits >> 6 & 63];
24201
+ result += map2[bits & 63];
24080
24202
  }
24081
24203
  bits = (bits << 8) + object[idx];
24082
24204
  }
24083
24205
  const tail = max % 3;
24084
24206
  if (tail === 0) {
24085
- result += map[bits >> 18 & 63];
24086
- result += map[bits >> 12 & 63];
24087
- result += map[bits >> 6 & 63];
24088
- result += map[bits & 63];
24207
+ result += map2[bits >> 18 & 63];
24208
+ result += map2[bits >> 12 & 63];
24209
+ result += map2[bits >> 6 & 63];
24210
+ result += map2[bits & 63];
24089
24211
  } else if (tail === 2) {
24090
- result += map[bits >> 10 & 63];
24091
- result += map[bits >> 4 & 63];
24092
- result += map[bits << 2 & 63];
24093
- result += map[64];
24212
+ result += map2[bits >> 10 & 63];
24213
+ result += map2[bits >> 4 & 63];
24214
+ result += map2[bits << 2 & 63];
24215
+ result += map2[64];
24094
24216
  } else if (tail === 1) {
24095
- result += map[bits >> 2 & 63];
24096
- result += map[bits << 4 & 63];
24097
- result += map[64];
24098
- result += map[64];
24217
+ result += map2[bits >> 2 & 63];
24218
+ result += map2[bits << 4 & 63];
24219
+ result += map2[64];
24220
+ result += map2[64];
24099
24221
  }
24100
24222
  return result;
24101
24223
  }
24102
24224
  function isBinary(obj) {
24103
24225
  return Object.prototype.toString.call(obj) === "[object Uint8Array]";
24104
24226
  }
24105
- module.exports = new Type("tag:yaml.org,2002:binary", {
24227
+ binary = new Type2("tag:yaml.org,2002:binary", {
24106
24228
  kind: "scalar",
24107
24229
  resolve: resolveYamlBinary,
24108
24230
  construct: constructYamlBinary,
24109
24231
  predicate: isBinary,
24110
24232
  represent: representYamlBinary
24111
24233
  });
24112
- });
24113
- var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
24114
- var Type = require_type();
24115
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
24116
- var _toString = Object.prototype.toString;
24234
+ return binary;
24235
+ }
24236
+ var omap;
24237
+ var hasRequiredOmap;
24238
+ function requireOmap() {
24239
+ if (hasRequiredOmap)
24240
+ return omap;
24241
+ hasRequiredOmap = 1;
24242
+ const Type2 = requireType();
24243
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
24244
+ const _toString = Object.prototype.toString;
24117
24245
  function resolveYamlOmap(data) {
24118
24246
  if (data === null)
24119
24247
  return true;
@@ -24125,12 +24253,14 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
24125
24253
  if (_toString.call(pair) !== "[object Object]")
24126
24254
  return false;
24127
24255
  let pairKey;
24128
- for (pairKey in pair)
24129
- if (_hasOwnProperty.call(pair, pairKey))
24256
+ for (pairKey in pair) {
24257
+ if (_hasOwnProperty.call(pair, pairKey)) {
24130
24258
  if (!pairHasKey)
24131
24259
  pairHasKey = true;
24132
24260
  else
24133
24261
  return false;
24262
+ }
24263
+ }
24134
24264
  if (!pairHasKey)
24135
24265
  return false;
24136
24266
  if (objectKeys.indexOf(pairKey) === -1)
@@ -24143,15 +24273,21 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
24143
24273
  function constructYamlOmap(data) {
24144
24274
  return data !== null ? data : [];
24145
24275
  }
24146
- module.exports = new Type("tag:yaml.org,2002:omap", {
24276
+ omap = new Type2("tag:yaml.org,2002:omap", {
24147
24277
  kind: "sequence",
24148
24278
  resolve: resolveYamlOmap,
24149
24279
  construct: constructYamlOmap
24150
24280
  });
24151
- });
24152
- var require_pairs = /* @__PURE__ */ __commonJSMin((exports, module) => {
24153
- var Type = require_type();
24154
- var _toString = Object.prototype.toString;
24281
+ return omap;
24282
+ }
24283
+ var pairs;
24284
+ var hasRequiredPairs;
24285
+ function requirePairs() {
24286
+ if (hasRequiredPairs)
24287
+ return pairs;
24288
+ hasRequiredPairs = 1;
24289
+ const Type2 = requireType();
24290
+ const _toString = Object.prototype.toString;
24155
24291
  function resolveYamlPairs(data) {
24156
24292
  if (data === null)
24157
24293
  return true;
@@ -24180,64 +24316,85 @@ var require_pairs = /* @__PURE__ */ __commonJSMin((exports, module) => {
24180
24316
  }
24181
24317
  return result;
24182
24318
  }
24183
- module.exports = new Type("tag:yaml.org,2002:pairs", {
24319
+ pairs = new Type2("tag:yaml.org,2002:pairs", {
24184
24320
  kind: "sequence",
24185
24321
  resolve: resolveYamlPairs,
24186
24322
  construct: constructYamlPairs
24187
24323
  });
24188
- });
24189
- var require_set = /* @__PURE__ */ __commonJSMin((exports, module) => {
24190
- var Type = require_type();
24191
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
24324
+ return pairs;
24325
+ }
24326
+ var set;
24327
+ var hasRequiredSet;
24328
+ function requireSet() {
24329
+ if (hasRequiredSet)
24330
+ return set;
24331
+ hasRequiredSet = 1;
24332
+ const Type2 = requireType();
24333
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
24192
24334
  function resolveYamlSet(data) {
24193
24335
  if (data === null)
24194
24336
  return true;
24195
24337
  const object = data;
24196
- for (const key in object)
24338
+ for (const key in object) {
24197
24339
  if (_hasOwnProperty.call(object, key)) {
24198
24340
  if (object[key] !== null)
24199
24341
  return false;
24200
24342
  }
24343
+ }
24201
24344
  return true;
24202
24345
  }
24203
24346
  function constructYamlSet(data) {
24204
24347
  return data !== null ? data : {};
24205
24348
  }
24206
- module.exports = new Type("tag:yaml.org,2002:set", {
24349
+ set = new Type2("tag:yaml.org,2002:set", {
24207
24350
  kind: "mapping",
24208
24351
  resolve: resolveYamlSet,
24209
24352
  construct: constructYamlSet
24210
24353
  });
24211
- });
24212
- var require_default = /* @__PURE__ */ __commonJSMin((exports, module) => {
24213
- module.exports = require_core().extend({
24214
- implicit: [require_timestamp(), require_merge()],
24354
+ return set;
24355
+ }
24356
+ var _default;
24357
+ var hasRequired_default;
24358
+ function require_default() {
24359
+ if (hasRequired_default)
24360
+ return _default;
24361
+ hasRequired_default = 1;
24362
+ _default = requireCore().extend({
24363
+ implicit: [
24364
+ requireTimestamp(),
24365
+ requireMerge()
24366
+ ],
24215
24367
  explicit: [
24216
- require_binary(),
24217
- require_omap(),
24218
- require_pairs(),
24219
- require_set()
24368
+ requireBinary(),
24369
+ requireOmap(),
24370
+ requirePairs(),
24371
+ requireSet()
24220
24372
  ]
24221
24373
  });
24222
- });
24223
- var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24224
- var common = require_common();
24225
- var YAMLException = require_exception();
24226
- var makeSnippet = require_snippet();
24227
- var DEFAULT_SCHEMA = require_default();
24228
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
24229
- var CONTEXT_FLOW_IN = 1;
24230
- var CONTEXT_FLOW_OUT = 2;
24231
- var CONTEXT_BLOCK_IN = 3;
24232
- var CONTEXT_BLOCK_OUT = 4;
24233
- var CHOMPING_CLIP = 1;
24234
- var CHOMPING_STRIP = 2;
24235
- var CHOMPING_KEEP = 3;
24236
- var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
24237
- var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
24238
- var PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
24239
- var PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
24240
- var PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
24374
+ return _default;
24375
+ }
24376
+ var hasRequiredLoader;
24377
+ function requireLoader() {
24378
+ if (hasRequiredLoader)
24379
+ return loader;
24380
+ hasRequiredLoader = 1;
24381
+ const common2 = requireCommon();
24382
+ const YAMLException2 = requireException();
24383
+ const makeSnippet = requireSnippet();
24384
+ const DEFAULT_SCHEMA2 = require_default();
24385
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
24386
+ const CONTEXT_FLOW_IN = 1;
24387
+ const CONTEXT_FLOW_OUT = 2;
24388
+ const CONTEXT_BLOCK_IN = 3;
24389
+ const CONTEXT_BLOCK_OUT = 4;
24390
+ const CHOMPING_CLIP = 1;
24391
+ const CHOMPING_STRIP = 2;
24392
+ const CHOMPING_KEEP = 3;
24393
+ const PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
24394
+ const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
24395
+ const PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
24396
+ const PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
24397
+ const PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
24241
24398
  function _class(obj) {
24242
24399
  return Object.prototype.toString.call(obj);
24243
24400
  }
@@ -24254,25 +24411,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24254
24411
  return c === 44 || c === 91 || c === 93 || c === 123 || c === 125;
24255
24412
  }
24256
24413
  function fromHexCode(c) {
24257
- if (c >= 48 && c <= 57)
24414
+ if (c >= 48 && c <= 57) {
24258
24415
  return c - 48;
24416
+ }
24259
24417
  const lc = c | 32;
24260
- if (lc >= 97 && lc <= 102)
24418
+ if (lc >= 97 && lc <= 102) {
24261
24419
  return lc - 97 + 10;
24420
+ }
24262
24421
  return -1;
24263
24422
  }
24264
24423
  function escapedHexLen(c) {
24265
- if (c === 120)
24424
+ if (c === 120) {
24266
24425
  return 2;
24267
- if (c === 117)
24426
+ }
24427
+ if (c === 117) {
24268
24428
  return 4;
24269
- if (c === 85)
24429
+ }
24430
+ if (c === 85) {
24270
24431
  return 8;
24432
+ }
24271
24433
  return 0;
24272
24434
  }
24273
24435
  function fromDecimalCode(c) {
24274
- if (c >= 48 && c <= 57)
24436
+ if (c >= 48 && c <= 57) {
24275
24437
  return c - 48;
24438
+ }
24276
24439
  return -1;
24277
24440
  }
24278
24441
  function simpleEscapeSequence(c) {
@@ -24319,23 +24482,25 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24319
24482
  }
24320
24483
  }
24321
24484
  function charFromCodepoint(c) {
24322
- if (c <= 65535)
24485
+ if (c <= 65535) {
24323
24486
  return String.fromCharCode(c);
24487
+ }
24324
24488
  return String.fromCharCode((c - 65536 >> 10) + 55296, (c - 65536 & 1023) + 56320);
24325
24489
  }
24326
24490
  function setProperty(object, key, value) {
24327
- if (key === "__proto__")
24491
+ if (key === "__proto__") {
24328
24492
  Object.defineProperty(object, key, {
24329
24493
  configurable: true,
24330
24494
  enumerable: true,
24331
24495
  writable: true,
24332
24496
  value
24333
24497
  });
24334
- else
24498
+ } else {
24335
24499
  object[key] = value;
24500
+ }
24336
24501
  }
24337
- var simpleEscapeCheck = new Array(256);
24338
- var simpleEscapeMap = new Array(256);
24502
+ const simpleEscapeCheck = new Array(256);
24503
+ const simpleEscapeMap = new Array(256);
24339
24504
  for (let i = 0;i < 256; i++) {
24340
24505
  simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
24341
24506
  simpleEscapeMap[i] = simpleEscapeSequence(i);
@@ -24343,13 +24508,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24343
24508
  function State(input, options) {
24344
24509
  this.input = input;
24345
24510
  this.filename = options["filename"] || null;
24346
- this.schema = options["schema"] || DEFAULT_SCHEMA;
24511
+ this.schema = options["schema"] || DEFAULT_SCHEMA2;
24347
24512
  this.onWarning = options["onWarning"] || null;
24348
24513
  this.legacy = options["legacy"] || false;
24349
24514
  this.json = options["json"] || false;
24350
24515
  this.listener = options["listener"] || null;
24351
24516
  this.maxDepth = typeof options["maxDepth"] === "number" ? options["maxDepth"] : 100;
24352
- this.maxMergeSeqLength = typeof options["maxMergeSeqLength"] === "number" ? options["maxMergeSeqLength"] : 20;
24517
+ this.maxTotalMergeKeys = typeof options["maxTotalMergeKeys"] === "number" ? options["maxTotalMergeKeys"] : 1e4;
24353
24518
  this.implicitTypes = this.schema.compiledImplicit;
24354
24519
  this.typeMap = this.schema.compiledTypeMap;
24355
24520
  this.length = input.length;
@@ -24358,6 +24523,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24358
24523
  this.lineStart = 0;
24359
24524
  this.lineIndent = 0;
24360
24525
  this.depth = 0;
24526
+ this.totalMergeKeys = 0;
24361
24527
  this.firstTabInLine = -1;
24362
24528
  this.documents = [];
24363
24529
  this.anchorMapTransactions = [];
@@ -24371,29 +24537,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24371
24537
  column: state.position - state.lineStart
24372
24538
  };
24373
24539
  mark.snippet = makeSnippet(mark);
24374
- return new YAMLException(message, mark);
24540
+ return new YAMLException2(message, mark);
24375
24541
  }
24376
24542
  function throwError(state, message) {
24377
24543
  throw generateError(state, message);
24378
24544
  }
24379
24545
  function throwWarning(state, message) {
24380
- if (state.onWarning)
24546
+ if (state.onWarning) {
24381
24547
  state.onWarning.call(null, generateError(state, message));
24548
+ }
24382
24549
  }
24383
24550
  function storeAnchor(state, name, value) {
24384
24551
  const transactions = state.anchorMapTransactions;
24385
24552
  if (transactions.length !== 0) {
24386
24553
  const transaction = transactions[transactions.length - 1];
24387
- if (!_hasOwnProperty.call(transaction, name))
24554
+ if (!_hasOwnProperty.call(transaction, name)) {
24388
24555
  transaction[name] = {
24389
24556
  existed: _hasOwnProperty.call(state.anchorMap, name),
24390
24557
  value: state.anchorMap[name]
24391
24558
  };
24559
+ }
24392
24560
  }
24393
24561
  state.anchorMap[name] = value;
24394
24562
  }
24395
24563
  function beginAnchorTransaction(state) {
24396
- state.anchorMapTransactions.push(Object.create(null));
24564
+ state.anchorMapTransactions.push(/* @__PURE__ */ Object.create(null));
24397
24565
  }
24398
24566
  function commitAnchorTransaction(state) {
24399
24567
  const transaction = state.anchorMapTransactions.pop();
@@ -24404,8 +24572,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24404
24572
  const names = Object.keys(transaction);
24405
24573
  for (let index = 0, length = names.length;index < length; index += 1) {
24406
24574
  const name = names[index];
24407
- if (!_hasOwnProperty.call(parent, name))
24575
+ if (!_hasOwnProperty.call(parent, name)) {
24408
24576
  parent[name] = transaction[name];
24577
+ }
24409
24578
  }
24410
24579
  }
24411
24580
  function rollbackAnchorTransaction(state) {
@@ -24413,10 +24582,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24413
24582
  const names = Object.keys(transaction);
24414
24583
  for (let index = names.length - 1;index >= 0; index -= 1) {
24415
24584
  const entry = transaction[names[index]];
24416
- if (entry.existed)
24585
+ if (entry.existed) {
24417
24586
  state.anchorMap[names[index]] = entry.value;
24418
- else
24587
+ } else {
24419
24588
  delete state.anchorMap[names[index]];
24589
+ }
24420
24590
  }
24421
24591
  }
24422
24592
  function snapshotState(state) {
@@ -24443,36 +24613,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24443
24613
  state.kind = snapshot.kind;
24444
24614
  state.result = snapshot.result;
24445
24615
  }
24446
- var directiveHandlers = {
24616
+ const directiveHandlers = {
24447
24617
  YAML: function handleYamlDirective(state, name, args) {
24448
- if (state.version !== null)
24618
+ if (state.version !== null) {
24449
24619
  throwError(state, "duplication of %YAML directive");
24450
- if (args.length !== 1)
24620
+ }
24621
+ if (args.length !== 1) {
24451
24622
  throwError(state, "YAML directive accepts exactly one argument");
24623
+ }
24452
24624
  const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
24453
- if (match === null)
24625
+ if (match === null) {
24454
24626
  throwError(state, "ill-formed argument of the YAML directive");
24627
+ }
24455
24628
  const major = parseInt(match[1], 10);
24456
24629
  const minor = parseInt(match[2], 10);
24457
- if (major !== 1)
24630
+ if (major !== 1) {
24458
24631
  throwError(state, "unacceptable YAML version of the document");
24632
+ }
24459
24633
  state.version = args[0];
24460
24634
  state.checkLineBreaks = minor < 2;
24461
- if (minor !== 1 && minor !== 2)
24635
+ if (minor !== 1 && minor !== 2) {
24462
24636
  throwWarning(state, "unsupported YAML version of the document");
24637
+ }
24463
24638
  },
24464
24639
  TAG: function handleTagDirective(state, name, args) {
24465
24640
  let prefix;
24466
- if (args.length !== 2)
24641
+ if (args.length !== 2) {
24467
24642
  throwError(state, "TAG directive accepts exactly two arguments");
24643
+ }
24468
24644
  const handle = args[0];
24469
24645
  prefix = args[1];
24470
- if (!PATTERN_TAG_HANDLE.test(handle))
24646
+ if (!PATTERN_TAG_HANDLE.test(handle)) {
24471
24647
  throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
24472
- if (_hasOwnProperty.call(state.tagMap, handle))
24648
+ }
24649
+ if (_hasOwnProperty.call(state.tagMap, handle)) {
24473
24650
  throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
24474
- if (!PATTERN_TAG_URI.test(prefix))
24651
+ }
24652
+ if (!PATTERN_TAG_URI.test(prefix)) {
24475
24653
  throwError(state, "ill-formed tag prefix (second argument) of the TAG directive");
24654
+ }
24476
24655
  try {
24477
24656
  prefix = decodeURIComponent(prefix);
24478
24657
  } catch (err) {
@@ -24484,23 +24663,29 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24484
24663
  function captureSegment(state, start, end, checkJson) {
24485
24664
  if (start < end) {
24486
24665
  const _result = state.input.slice(start, end);
24487
- if (checkJson)
24666
+ if (checkJson) {
24488
24667
  for (let _position = 0, _length = _result.length;_position < _length; _position += 1) {
24489
24668
  const _character = _result.charCodeAt(_position);
24490
- if (!(_character === 9 || _character >= 32 && _character <= 1114111))
24669
+ if (!(_character === 9 || _character >= 32 && _character <= 1114111)) {
24491
24670
  throwError(state, "expected valid JSON character");
24671
+ }
24492
24672
  }
24493
- else if (PATTERN_NON_PRINTABLE.test(_result))
24673
+ } else if (PATTERN_NON_PRINTABLE.test(_result)) {
24494
24674
  throwError(state, "the stream contains non-printable characters");
24675
+ }
24495
24676
  state.result += _result;
24496
24677
  }
24497
24678
  }
24498
24679
  function mergeMappings(state, destination, source, overridableKeys) {
24499
- if (!common.isObject(source))
24680
+ if (!common2.isObject(source)) {
24500
24681
  throwError(state, "cannot merge mappings; the provided source object is unacceptable");
24682
+ }
24501
24683
  const sourceKeys = Object.keys(source);
24502
24684
  for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
24503
24685
  const key = sourceKeys[index];
24686
+ if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
24687
+ throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
24688
+ }
24504
24689
  if (!_hasOwnProperty.call(destination, key)) {
24505
24690
  setProperty(destination, key, source[key]);
24506
24691
  overridableKeys[key] = true;
@@ -24511,32 +24696,30 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24511
24696
  if (Array.isArray(keyNode)) {
24512
24697
  keyNode = Array.prototype.slice.call(keyNode);
24513
24698
  for (let index = 0, quantity = keyNode.length;index < quantity; index += 1) {
24514
- if (Array.isArray(keyNode[index]))
24699
+ if (Array.isArray(keyNode[index])) {
24515
24700
  throwError(state, "nested arrays are not supported inside keys");
24516
- if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]")
24701
+ }
24702
+ if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") {
24517
24703
  keyNode[index] = "[object Object]";
24704
+ }
24518
24705
  }
24519
24706
  }
24520
- if (typeof keyNode === "object" && _class(keyNode) === "[object Object]")
24707
+ if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") {
24521
24708
  keyNode = "[object Object]";
24709
+ }
24522
24710
  keyNode = String(keyNode);
24523
- if (_result === null)
24711
+ if (_result === null) {
24524
24712
  _result = {};
24525
- if (keyTag === "tag:yaml.org,2002:merge")
24713
+ }
24714
+ if (keyTag === "tag:yaml.org,2002:merge") {
24526
24715
  if (Array.isArray(valueNode)) {
24527
- if (valueNode.length > state.maxMergeSeqLength)
24528
- throwError(state, "merge sequence length exceeded maxMergeSeqLength (" + state.maxMergeSeqLength + ")");
24529
- const seen = /* @__PURE__ */ new Set;
24530
24716
  for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
24531
- const src = valueNode[index];
24532
- if (seen.has(src))
24533
- continue;
24534
- seen.add(src);
24535
- mergeMappings(state, _result, src, overridableKeys);
24717
+ mergeMappings(state, _result, valueNode[index], overridableKeys);
24536
24718
  }
24537
- } else
24719
+ } else {
24538
24720
  mergeMappings(state, _result, valueNode, overridableKeys);
24539
- else {
24721
+ }
24722
+ } else {
24540
24723
  if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
24541
24724
  state.line = startLine || state.line;
24542
24725
  state.lineStart = startLineStart || state.lineStart;
@@ -24550,14 +24733,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24550
24733
  }
24551
24734
  function readLineBreak(state) {
24552
24735
  const ch = state.input.charCodeAt(state.position);
24553
- if (ch === 10)
24736
+ if (ch === 10) {
24554
24737
  state.position++;
24555
- else if (ch === 13) {
24738
+ } else if (ch === 13) {
24556
24739
  state.position++;
24557
- if (state.input.charCodeAt(state.position) === 10)
24740
+ if (state.input.charCodeAt(state.position) === 10) {
24558
24741
  state.position++;
24559
- } else
24742
+ }
24743
+ } else {
24560
24744
  throwError(state, "a line break is expected");
24745
+ }
24561
24746
  state.line += 1;
24562
24747
  state.lineStart = state.position;
24563
24748
  state.firstTabInLine = -1;
@@ -24567,14 +24752,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24567
24752
  let ch = state.input.charCodeAt(state.position);
24568
24753
  while (ch !== 0) {
24569
24754
  while (isWhiteSpace(ch)) {
24570
- if (ch === 9 && state.firstTabInLine === -1)
24755
+ if (ch === 9 && state.firstTabInLine === -1) {
24571
24756
  state.firstTabInLine = state.position;
24757
+ }
24572
24758
  ch = state.input.charCodeAt(++state.position);
24573
24759
  }
24574
- if (allowComments && ch === 35)
24575
- do
24760
+ if (allowComments && ch === 35) {
24761
+ do {
24576
24762
  ch = state.input.charCodeAt(++state.position);
24577
- while (ch !== 10 && ch !== 13 && ch !== 0);
24763
+ } while (ch !== 10 && ch !== 13 && ch !== 0);
24764
+ }
24578
24765
  if (isEol(ch)) {
24579
24766
  readLineBreak(state);
24580
24767
  ch = state.input.charCodeAt(state.position);
@@ -24584,11 +24771,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24584
24771
  state.lineIndent++;
24585
24772
  ch = state.input.charCodeAt(++state.position);
24586
24773
  }
24587
- } else
24774
+ } else {
24588
24775
  break;
24776
+ }
24589
24777
  }
24590
- if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent)
24778
+ if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
24591
24779
  throwWarning(state, "deficient indentation");
24780
+ }
24592
24781
  return lineBreaks;
24593
24782
  }
24594
24783
  function testDocumentSeparator(state) {
@@ -24597,17 +24786,19 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24597
24786
  if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
24598
24787
  _position += 3;
24599
24788
  ch = state.input.charCodeAt(_position);
24600
- if (ch === 0 || isWsOrEol(ch))
24789
+ if (ch === 0 || isWsOrEol(ch)) {
24601
24790
  return true;
24791
+ }
24602
24792
  }
24603
24793
  return false;
24604
24794
  }
24605
24795
  function writeFoldedLines(state, count) {
24606
- if (count === 1)
24796
+ if (count === 1) {
24607
24797
  state.result += " ";
24608
- else if (count > 1)
24609
- state.result += common.repeat(`
24798
+ } else if (count > 1) {
24799
+ state.result += common2.repeat(`
24610
24800
  `, count - 1);
24801
+ }
24611
24802
  }
24612
24803
  function readPlainScalar(state, nodeIndent, withinFlowCollection) {
24613
24804
  let captureStart;
@@ -24619,12 +24810,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24619
24810
  const _kind = state.kind;
24620
24811
  const _result = state.result;
24621
24812
  let ch = state.input.charCodeAt(state.position);
24622
- 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)
24813
+ 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) {
24623
24814
  return false;
24815
+ }
24624
24816
  if (ch === 63 || ch === 45) {
24625
24817
  const following = state.input.charCodeAt(state.position + 1);
24626
- if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
24818
+ if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
24627
24819
  return false;
24820
+ }
24628
24821
  }
24629
24822
  state.kind = "scalar";
24630
24823
  state.result = "";
@@ -24633,14 +24826,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24633
24826
  while (ch !== 0) {
24634
24827
  if (ch === 58) {
24635
24828
  const following = state.input.charCodeAt(state.position + 1);
24636
- if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
24829
+ if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
24637
24830
  break;
24831
+ }
24638
24832
  } else if (ch === 35) {
24639
- if (isWsOrEol(state.input.charCodeAt(state.position - 1)))
24833
+ const preceding = state.input.charCodeAt(state.position - 1);
24834
+ if (isWsOrEol(preceding)) {
24640
24835
  break;
24641
- } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch))
24836
+ }
24837
+ } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch)) {
24642
24838
  break;
24643
- else if (isEol(ch)) {
24839
+ } else if (isEol(ch)) {
24644
24840
  _line = state.line;
24645
24841
  _lineStart = state.lineStart;
24646
24842
  _lineIndent = state.lineIndent;
@@ -24663,13 +24859,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24663
24859
  captureStart = captureEnd = state.position;
24664
24860
  hasPendingContent = false;
24665
24861
  }
24666
- if (!isWhiteSpace(ch))
24862
+ if (!isWhiteSpace(ch)) {
24667
24863
  captureEnd = state.position + 1;
24864
+ }
24668
24865
  ch = state.input.charCodeAt(++state.position);
24669
24866
  }
24670
24867
  captureSegment(state, captureStart, captureEnd, false);
24671
- if (state.result)
24868
+ if (state.result) {
24672
24869
  return true;
24870
+ }
24673
24871
  state.kind = _kind;
24674
24872
  state.result = _result;
24675
24873
  return false;
@@ -24678,13 +24876,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24678
24876
  let captureStart;
24679
24877
  let captureEnd;
24680
24878
  let ch = state.input.charCodeAt(state.position);
24681
- if (ch !== 39)
24879
+ if (ch !== 39) {
24682
24880
  return false;
24881
+ }
24683
24882
  state.kind = "scalar";
24684
24883
  state.result = "";
24685
24884
  state.position++;
24686
24885
  captureStart = captureEnd = state.position;
24687
- while ((ch = state.input.charCodeAt(state.position)) !== 0)
24886
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
24688
24887
  if (ch === 39) {
24689
24888
  captureSegment(state, captureStart, state.position, true);
24690
24889
  ch = state.input.charCodeAt(++state.position);
@@ -24692,19 +24891,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24692
24891
  captureStart = state.position;
24693
24892
  state.position++;
24694
24893
  captureEnd = state.position;
24695
- } else
24894
+ } else {
24696
24895
  return true;
24896
+ }
24697
24897
  } else if (isEol(ch)) {
24698
24898
  captureSegment(state, captureStart, captureEnd, true);
24699
24899
  writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
24700
24900
  captureStart = captureEnd = state.position;
24701
- } else if (state.position === state.lineStart && testDocumentSeparator(state))
24901
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
24702
24902
  throwError(state, "unexpected end of the document within a single quoted scalar");
24703
- else {
24903
+ } else {
24704
24904
  state.position++;
24705
- if (!isWhiteSpace(ch))
24905
+ if (!isWhiteSpace(ch)) {
24706
24906
  captureEnd = state.position;
24907
+ }
24707
24908
  }
24909
+ }
24708
24910
  throwError(state, "unexpected end of the stream within a single quoted scalar");
24709
24911
  }
24710
24912
  function readDoubleQuotedScalar(state, nodeIndent) {
@@ -24712,13 +24914,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24712
24914
  let captureEnd;
24713
24915
  let tmp;
24714
24916
  let ch = state.input.charCodeAt(state.position);
24715
- if (ch !== 34)
24917
+ if (ch !== 34) {
24716
24918
  return false;
24919
+ }
24717
24920
  state.kind = "scalar";
24718
24921
  state.result = "";
24719
24922
  state.position++;
24720
24923
  captureStart = captureEnd = state.position;
24721
- while ((ch = state.input.charCodeAt(state.position)) !== 0)
24924
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
24722
24925
  if (ch === 34) {
24723
24926
  captureSegment(state, captureStart, state.position, true);
24724
24927
  state.position++;
@@ -24726,9 +24929,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24726
24929
  } else if (ch === 92) {
24727
24930
  captureSegment(state, captureStart, state.position, true);
24728
24931
  ch = state.input.charCodeAt(++state.position);
24729
- if (isEol(ch))
24932
+ if (isEol(ch)) {
24730
24933
  skipSeparationSpace(state, false, nodeIndent);
24731
- else if (ch < 256 && simpleEscapeCheck[ch]) {
24934
+ } else if (ch < 256 && simpleEscapeCheck[ch]) {
24732
24935
  state.result += simpleEscapeMap[ch];
24733
24936
  state.position++;
24734
24937
  } else if ((tmp = escapedHexLen(ch)) > 0) {
@@ -24736,27 +24939,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24736
24939
  let hexResult = 0;
24737
24940
  for (;hexLength > 0; hexLength--) {
24738
24941
  ch = state.input.charCodeAt(++state.position);
24739
- if ((tmp = fromHexCode(ch)) >= 0)
24942
+ if ((tmp = fromHexCode(ch)) >= 0) {
24740
24943
  hexResult = (hexResult << 4) + tmp;
24741
- else
24944
+ } else {
24742
24945
  throwError(state, "expected hexadecimal character");
24946
+ }
24743
24947
  }
24744
24948
  state.result += charFromCodepoint(hexResult);
24745
24949
  state.position++;
24746
- } else
24950
+ } else {
24747
24951
  throwError(state, "unknown escape sequence");
24952
+ }
24748
24953
  captureStart = captureEnd = state.position;
24749
24954
  } else if (isEol(ch)) {
24750
24955
  captureSegment(state, captureStart, captureEnd, true);
24751
24956
  writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
24752
24957
  captureStart = captureEnd = state.position;
24753
- } else if (state.position === state.lineStart && testDocumentSeparator(state))
24958
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
24754
24959
  throwError(state, "unexpected end of the document within a double quoted scalar");
24755
- else {
24960
+ } else {
24756
24961
  state.position++;
24757
- if (!isWhiteSpace(ch))
24962
+ if (!isWhiteSpace(ch)) {
24758
24963
  captureEnd = state.position;
24964
+ }
24759
24965
  }
24966
+ }
24760
24967
  throwError(state, "unexpected end of the stream within a double quoted scalar");
24761
24968
  }
24762
24969
  function readFlowCollection(state, nodeIndent) {
@@ -24771,7 +24978,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24771
24978
  let isPair;
24772
24979
  let isExplicitPair;
24773
24980
  let isMapping;
24774
- const overridableKeys = Object.create(null);
24981
+ const overridableKeys = /* @__PURE__ */ Object.create(null);
24775
24982
  let keyNode;
24776
24983
  let keyTag;
24777
24984
  let valueNode;
@@ -24784,10 +24991,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24784
24991
  terminator = 125;
24785
24992
  isMapping = true;
24786
24993
  _result = {};
24787
- } else
24994
+ } else {
24788
24995
  return false;
24789
- if (state.anchor !== null)
24996
+ }
24997
+ if (state.anchor !== null) {
24790
24998
  storeAnchor(state, state.anchor, _result);
24999
+ }
24791
25000
  ch = state.input.charCodeAt(++state.position);
24792
25001
  while (ch !== 0) {
24793
25002
  skipSeparationSpace(state, true, nodeIndent);
@@ -24799,14 +25008,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24799
25008
  state.kind = isMapping ? "mapping" : "sequence";
24800
25009
  state.result = _result;
24801
25010
  return true;
24802
- } else if (!readNext)
25011
+ } else if (!readNext) {
24803
25012
  throwError(state, "missed comma between flow collection entries");
24804
- else if (ch === 44)
25013
+ } else if (ch === 44) {
24805
25014
  throwError(state, "expected the node content, but found ','");
25015
+ }
24806
25016
  keyTag = keyNode = valueNode = null;
24807
25017
  isPair = isExplicitPair = false;
24808
25018
  if (ch === 63) {
24809
- if (isWsOrEol(state.input.charCodeAt(state.position + 1))) {
25019
+ const following = state.input.charCodeAt(state.position + 1);
25020
+ if (isWsOrEol(following)) {
24810
25021
  isPair = isExplicitPair = true;
24811
25022
  state.position++;
24812
25023
  skipSeparationSpace(state, true, nodeIndent);
@@ -24827,19 +25038,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24827
25038
  composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
24828
25039
  valueNode = state.result;
24829
25040
  }
24830
- if (isMapping)
25041
+ if (isMapping) {
24831
25042
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);
24832
- else if (isPair)
25043
+ } else if (isPair) {
24833
25044
  _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));
24834
- else
25045
+ } else {
24835
25046
  _result.push(keyNode);
25047
+ }
24836
25048
  skipSeparationSpace(state, true, nodeIndent);
24837
25049
  ch = state.input.charCodeAt(state.position);
24838
25050
  if (ch === 44) {
24839
25051
  readNext = true;
24840
25052
  ch = state.input.charCodeAt(++state.position);
24841
- } else
25053
+ } else {
24842
25054
  readNext = false;
25055
+ }
24843
25056
  }
24844
25057
  throwError(state, "unexpected end of the stream within a flow collection");
24845
25058
  }
@@ -24853,40 +25066,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24853
25066
  let atMoreIndented = false;
24854
25067
  let tmp;
24855
25068
  let ch = state.input.charCodeAt(state.position);
24856
- if (ch === 124)
25069
+ if (ch === 124) {
24857
25070
  folding = false;
24858
- else if (ch === 62)
25071
+ } else if (ch === 62) {
24859
25072
  folding = true;
24860
- else
25073
+ } else {
24861
25074
  return false;
25075
+ }
24862
25076
  state.kind = "scalar";
24863
25077
  state.result = "";
24864
25078
  while (ch !== 0) {
24865
25079
  ch = state.input.charCodeAt(++state.position);
24866
- if (ch === 43 || ch === 45)
24867
- if (CHOMPING_CLIP === chomping)
25080
+ if (ch === 43 || ch === 45) {
25081
+ if (CHOMPING_CLIP === chomping) {
24868
25082
  chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
24869
- else
25083
+ } else {
24870
25084
  throwError(state, "repeat of a chomping mode identifier");
24871
- else if ((tmp = fromDecimalCode(ch)) >= 0)
24872
- if (tmp === 0)
25085
+ }
25086
+ } else if ((tmp = fromDecimalCode(ch)) >= 0) {
25087
+ if (tmp === 0) {
24873
25088
  throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
24874
- else if (!detectedIndent) {
25089
+ } else if (!detectedIndent) {
24875
25090
  textIndent = nodeIndent + tmp - 1;
24876
25091
  detectedIndent = true;
24877
- } else
25092
+ } else {
24878
25093
  throwError(state, "repeat of an indentation width identifier");
24879
- else
25094
+ }
25095
+ } else {
24880
25096
  break;
25097
+ }
24881
25098
  }
24882
25099
  if (isWhiteSpace(ch)) {
24883
- do
25100
+ do {
24884
25101
  ch = state.input.charCodeAt(++state.position);
24885
- while (isWhiteSpace(ch));
24886
- if (ch === 35)
24887
- do
25102
+ } while (isWhiteSpace(ch));
25103
+ if (ch === 35) {
25104
+ do {
24888
25105
  ch = state.input.charCodeAt(++state.position);
24889
- while (!isEol(ch) && ch !== 0);
25106
+ } while (!isEol(ch) && ch !== 0);
25107
+ }
24890
25108
  }
24891
25109
  while (ch !== 0) {
24892
25110
  readLineBreak(state);
@@ -24896,49 +25114,56 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24896
25114
  state.lineIndent++;
24897
25115
  ch = state.input.charCodeAt(++state.position);
24898
25116
  }
24899
- if (!detectedIndent && state.lineIndent > textIndent)
25117
+ if (!detectedIndent && state.lineIndent > textIndent) {
24900
25118
  textIndent = state.lineIndent;
25119
+ }
24901
25120
  if (isEol(ch)) {
24902
25121
  emptyLines++;
24903
25122
  continue;
24904
25123
  }
24905
- if (!detectedIndent && textIndent === 0)
25124
+ if (!detectedIndent && textIndent === 0) {
24906
25125
  throwError(state, "missing indentation for block scalar");
25126
+ }
24907
25127
  if (state.lineIndent < textIndent) {
24908
- if (chomping === CHOMPING_KEEP)
24909
- state.result += common.repeat(`
25128
+ if (chomping === CHOMPING_KEEP) {
25129
+ state.result += common2.repeat(`
24910
25130
  `, didReadContent ? 1 + emptyLines : emptyLines);
24911
- else if (chomping === CHOMPING_CLIP) {
24912
- if (didReadContent)
25131
+ } else if (chomping === CHOMPING_CLIP) {
25132
+ if (didReadContent) {
24913
25133
  state.result += `
24914
25134
  `;
25135
+ }
24915
25136
  }
24916
25137
  break;
24917
25138
  }
24918
- if (folding)
25139
+ if (folding) {
24919
25140
  if (isWhiteSpace(ch)) {
24920
25141
  atMoreIndented = true;
24921
- state.result += common.repeat(`
25142
+ state.result += common2.repeat(`
24922
25143
  `, didReadContent ? 1 + emptyLines : emptyLines);
24923
25144
  } else if (atMoreIndented) {
24924
25145
  atMoreIndented = false;
24925
- state.result += common.repeat(`
25146
+ state.result += common2.repeat(`
24926
25147
  `, emptyLines + 1);
24927
25148
  } else if (emptyLines === 0) {
24928
- if (didReadContent)
25149
+ if (didReadContent) {
24929
25150
  state.result += " ";
24930
- } else
24931
- state.result += common.repeat(`
25151
+ }
25152
+ } else {
25153
+ state.result += common2.repeat(`
24932
25154
  `, emptyLines);
24933
- else
24934
- state.result += common.repeat(`
25155
+ }
25156
+ } else {
25157
+ state.result += common2.repeat(`
24935
25158
  `, didReadContent ? 1 + emptyLines : emptyLines);
25159
+ }
24936
25160
  didReadContent = true;
24937
25161
  detectedIndent = true;
24938
25162
  emptyLines = 0;
24939
25163
  const captureStart = state.position;
24940
- while (!isEol(ch) && ch !== 0)
25164
+ while (!isEol(ch) && ch !== 0) {
24941
25165
  ch = state.input.charCodeAt(++state.position);
25166
+ }
24942
25167
  captureSegment(state, captureStart, state.position, false);
24943
25168
  }
24944
25169
  return true;
@@ -24950,18 +25175,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24950
25175
  let detected = false;
24951
25176
  if (state.firstTabInLine !== -1)
24952
25177
  return false;
24953
- if (state.anchor !== null)
25178
+ if (state.anchor !== null) {
24954
25179
  storeAnchor(state, state.anchor, _result);
25180
+ }
24955
25181
  let ch = state.input.charCodeAt(state.position);
24956
25182
  while (ch !== 0) {
24957
25183
  if (state.firstTabInLine !== -1) {
24958
25184
  state.position = state.firstTabInLine;
24959
25185
  throwError(state, "tab characters must not be used in indentation");
24960
25186
  }
24961
- if (ch !== 45)
25187
+ if (ch !== 45) {
24962
25188
  break;
24963
- if (!isWsOrEol(state.input.charCodeAt(state.position + 1)))
25189
+ }
25190
+ const following = state.input.charCodeAt(state.position + 1);
25191
+ if (!isWsOrEol(following)) {
24964
25192
  break;
25193
+ }
24965
25194
  detected = true;
24966
25195
  state.position++;
24967
25196
  if (skipSeparationSpace(state, true, -1)) {
@@ -24976,10 +25205,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24976
25205
  _result.push(state.result);
24977
25206
  skipSeparationSpace(state, true, -1);
24978
25207
  ch = state.input.charCodeAt(state.position);
24979
- if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
25208
+ if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
24980
25209
  throwError(state, "bad indentation of a sequence entry");
24981
- else if (state.lineIndent < nodeIndent)
25210
+ } else if (state.lineIndent < nodeIndent) {
24982
25211
  break;
25212
+ }
24983
25213
  }
24984
25214
  if (detected) {
24985
25215
  state.tag = _tag;
@@ -24998,7 +25228,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24998
25228
  const _tag = state.tag;
24999
25229
  const _anchor = state.anchor;
25000
25230
  const _result = {};
25001
- const overridableKeys = Object.create(null);
25231
+ const overridableKeys = /* @__PURE__ */ Object.create(null);
25002
25232
  let keyTag = null;
25003
25233
  let keyNode = null;
25004
25234
  let valueNode = null;
@@ -25006,8 +25236,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25006
25236
  let detected = false;
25007
25237
  if (state.firstTabInLine !== -1)
25008
25238
  return false;
25009
- if (state.anchor !== null)
25239
+ if (state.anchor !== null) {
25010
25240
  storeAnchor(state, state.anchor, _result);
25241
+ }
25011
25242
  let ch = state.input.charCodeAt(state.position);
25012
25243
  while (ch !== 0) {
25013
25244
  if (!atExplicitKey && state.firstTabInLine !== -1) {
@@ -25028,24 +25259,28 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25028
25259
  } else if (atExplicitKey) {
25029
25260
  atExplicitKey = false;
25030
25261
  allowCompact = true;
25031
- } else
25262
+ } else {
25032
25263
  throwError(state, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");
25264
+ }
25033
25265
  state.position += 1;
25034
25266
  ch = following;
25035
25267
  } else {
25036
25268
  _keyLine = state.line;
25037
25269
  _keyLineStart = state.lineStart;
25038
25270
  _keyPos = state.position;
25039
- if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true))
25271
+ if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
25040
25272
  break;
25273
+ }
25041
25274
  if (state.line === _line) {
25042
25275
  ch = state.input.charCodeAt(state.position);
25043
- while (isWhiteSpace(ch))
25276
+ while (isWhiteSpace(ch)) {
25044
25277
  ch = state.input.charCodeAt(++state.position);
25278
+ }
25045
25279
  if (ch === 58) {
25046
25280
  ch = state.input.charCodeAt(++state.position);
25047
- if (!isWsOrEol(ch))
25281
+ if (!isWsOrEol(ch)) {
25048
25282
  throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
25283
+ }
25049
25284
  if (atExplicitKey) {
25050
25285
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
25051
25286
  keyTag = keyNode = valueNode = null;
@@ -25055,16 +25290,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25055
25290
  allowCompact = false;
25056
25291
  keyTag = state.tag;
25057
25292
  keyNode = state.result;
25058
- } else if (detected)
25293
+ } else if (detected) {
25059
25294
  throwError(state, "can not read an implicit mapping pair; a colon is missed");
25060
- else {
25295
+ } else {
25061
25296
  state.tag = _tag;
25062
25297
  state.anchor = _anchor;
25063
25298
  return true;
25064
25299
  }
25065
- } else if (detected)
25300
+ } else if (detected) {
25066
25301
  throwError(state, "can not read a block mapping entry; a multiline key may not be an implicit key");
25067
- else {
25302
+ } else {
25068
25303
  state.tag = _tag;
25069
25304
  state.anchor = _anchor;
25070
25305
  return true;
@@ -25076,11 +25311,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25076
25311
  _keyLineStart = state.lineStart;
25077
25312
  _keyPos = state.position;
25078
25313
  }
25079
- if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact))
25080
- if (atExplicitKey)
25314
+ if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
25315
+ if (atExplicitKey) {
25081
25316
  keyNode = state.result;
25082
- else
25317
+ } else {
25083
25318
  valueNode = state.result;
25319
+ }
25320
+ }
25084
25321
  if (!atExplicitKey) {
25085
25322
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
25086
25323
  keyTag = keyNode = valueNode = null;
@@ -25088,13 +25325,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25088
25325
  skipSeparationSpace(state, true, -1);
25089
25326
  ch = state.input.charCodeAt(state.position);
25090
25327
  }
25091
- if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
25328
+ if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
25092
25329
  throwError(state, "bad indentation of a mapping entry");
25093
- else if (state.lineIndent < nodeIndent)
25330
+ } else if (state.lineIndent < nodeIndent) {
25094
25331
  break;
25332
+ }
25095
25333
  }
25096
- if (atExplicitKey)
25334
+ if (atExplicitKey) {
25097
25335
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
25336
+ }
25098
25337
  if (detected) {
25099
25338
  state.tag = _tag;
25100
25339
  state.anchor = _anchor;
@@ -25111,8 +25350,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25111
25350
  let ch = state.input.charCodeAt(state.position);
25112
25351
  if (ch !== 33)
25113
25352
  return false;
25114
- if (state.tag !== null)
25353
+ if (state.tag !== null) {
25115
25354
  throwError(state, "duplication of a tag property");
25355
+ }
25116
25356
  ch = state.input.charCodeAt(++state.position);
25117
25357
  if (ch === 60) {
25118
25358
  isVerbatim = true;
@@ -25121,66 +25361,77 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25121
25361
  isNamed = true;
25122
25362
  tagHandle = "!!";
25123
25363
  ch = state.input.charCodeAt(++state.position);
25124
- } else
25364
+ } else {
25125
25365
  tagHandle = "!";
25366
+ }
25126
25367
  let _position = state.position;
25127
25368
  if (isVerbatim) {
25128
- do
25369
+ do {
25129
25370
  ch = state.input.charCodeAt(++state.position);
25130
- while (ch !== 0 && ch !== 62);
25371
+ } while (ch !== 0 && ch !== 62);
25131
25372
  if (state.position < state.length) {
25132
25373
  tagName = state.input.slice(_position, state.position);
25133
25374
  ch = state.input.charCodeAt(++state.position);
25134
- } else
25375
+ } else {
25135
25376
  throwError(state, "unexpected end of the stream within a verbatim tag");
25377
+ }
25136
25378
  } else {
25137
25379
  while (ch !== 0 && !isWsOrEol(ch)) {
25138
- if (ch === 33)
25380
+ if (ch === 33) {
25139
25381
  if (!isNamed) {
25140
25382
  tagHandle = state.input.slice(_position - 1, state.position + 1);
25141
- if (!PATTERN_TAG_HANDLE.test(tagHandle))
25383
+ if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
25142
25384
  throwError(state, "named tag handle cannot contain such characters");
25385
+ }
25143
25386
  isNamed = true;
25144
25387
  _position = state.position + 1;
25145
- } else
25388
+ } else {
25146
25389
  throwError(state, "tag suffix cannot contain exclamation marks");
25390
+ }
25391
+ }
25147
25392
  ch = state.input.charCodeAt(++state.position);
25148
25393
  }
25149
25394
  tagName = state.input.slice(_position, state.position);
25150
- if (PATTERN_FLOW_INDICATORS.test(tagName))
25395
+ if (PATTERN_FLOW_INDICATORS.test(tagName)) {
25151
25396
  throwError(state, "tag suffix cannot contain flow indicator characters");
25397
+ }
25152
25398
  }
25153
- if (tagName && !PATTERN_TAG_URI.test(tagName))
25399
+ if (tagName && !PATTERN_TAG_URI.test(tagName)) {
25154
25400
  throwError(state, "tag name cannot contain such characters: " + tagName);
25401
+ }
25155
25402
  try {
25156
25403
  tagName = decodeURIComponent(tagName);
25157
25404
  } catch (err) {
25158
25405
  throwError(state, "tag name is malformed: " + tagName);
25159
25406
  }
25160
- if (isVerbatim)
25407
+ if (isVerbatim) {
25161
25408
  state.tag = tagName;
25162
- else if (_hasOwnProperty.call(state.tagMap, tagHandle))
25409
+ } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {
25163
25410
  state.tag = state.tagMap[tagHandle] + tagName;
25164
- else if (tagHandle === "!")
25411
+ } else if (tagHandle === "!") {
25165
25412
  state.tag = "!" + tagName;
25166
- else if (tagHandle === "!!")
25413
+ } else if (tagHandle === "!!") {
25167
25414
  state.tag = "tag:yaml.org,2002:" + tagName;
25168
- else
25415
+ } else {
25169
25416
  throwError(state, 'undeclared tag handle "' + tagHandle + '"');
25417
+ }
25170
25418
  return true;
25171
25419
  }
25172
25420
  function readAnchorProperty(state) {
25173
25421
  let ch = state.input.charCodeAt(state.position);
25174
25422
  if (ch !== 38)
25175
25423
  return false;
25176
- if (state.anchor !== null)
25424
+ if (state.anchor !== null) {
25177
25425
  throwError(state, "duplication of an anchor property");
25426
+ }
25178
25427
  ch = state.input.charCodeAt(++state.position);
25179
25428
  const _position = state.position;
25180
- while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
25429
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
25181
25430
  ch = state.input.charCodeAt(++state.position);
25182
- if (state.position === _position)
25431
+ }
25432
+ if (state.position === _position) {
25183
25433
  throwError(state, "name of an anchor node must contain at least one character");
25434
+ }
25184
25435
  state.anchor = state.input.slice(_position, state.position);
25185
25436
  return true;
25186
25437
  }
@@ -25190,13 +25441,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25190
25441
  return false;
25191
25442
  ch = state.input.charCodeAt(++state.position);
25192
25443
  const _position = state.position;
25193
- while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
25444
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
25194
25445
  ch = state.input.charCodeAt(++state.position);
25195
- if (state.position === _position)
25446
+ }
25447
+ if (state.position === _position) {
25196
25448
  throwError(state, "name of an alias node must contain at least one character");
25449
+ }
25197
25450
  const alias = state.input.slice(_position, state.position);
25198
- if (!_hasOwnProperty.call(state.anchorMap, alias))
25451
+ if (!_hasOwnProperty.call(state.anchorMap, alias)) {
25199
25452
  throwError(state, 'unidentified alias "' + alias + '"');
25453
+ }
25200
25454
  state.result = state.anchorMap[alias];
25201
25455
  skipSeparationSpace(state, true, -1);
25202
25456
  return true;
@@ -25224,14 +25478,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25224
25478
  let atNewLine = false;
25225
25479
  let hasContent = false;
25226
25480
  let propertyStart = null;
25227
- let type;
25481
+ let type2;
25228
25482
  let flowIndent;
25229
25483
  let blockIndent;
25230
- if (state.depth >= state.maxDepth)
25484
+ if (state.depth >= state.maxDepth) {
25231
25485
  throwError(state, "nesting exceeded maxDepth (" + state.maxDepth + ")");
25486
+ }
25232
25487
  state.depth += 1;
25233
- if (state.listener !== null)
25488
+ if (state.listener !== null) {
25234
25489
  state.listener("open", state);
25490
+ }
25235
25491
  state.tag = null;
25236
25492
  state.anchor = null;
25237
25493
  state.kind = null;
@@ -25240,110 +25496,131 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25240
25496
  if (allowToSeek) {
25241
25497
  if (skipSeparationSpace(state, true, -1)) {
25242
25498
  atNewLine = true;
25243
- if (state.lineIndent > parentIndent)
25499
+ if (state.lineIndent > parentIndent) {
25244
25500
  indentStatus = 1;
25245
- else if (state.lineIndent === parentIndent)
25501
+ } else if (state.lineIndent === parentIndent) {
25246
25502
  indentStatus = 0;
25247
- else if (state.lineIndent < parentIndent)
25503
+ } else if (state.lineIndent < parentIndent) {
25248
25504
  indentStatus = -1;
25505
+ }
25249
25506
  }
25250
25507
  }
25251
- if (indentStatus === 1)
25508
+ if (indentStatus === 1) {
25252
25509
  while (true) {
25253
25510
  const ch = state.input.charCodeAt(state.position);
25254
25511
  const propertyState = snapshotState(state);
25255
- if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null))
25512
+ if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null)) {
25256
25513
  break;
25257
- if (!readTagProperty(state) && !readAnchorProperty(state))
25514
+ }
25515
+ if (!readTagProperty(state) && !readAnchorProperty(state)) {
25258
25516
  break;
25259
- if (propertyStart === null)
25517
+ }
25518
+ if (propertyStart === null) {
25260
25519
  propertyStart = propertyState;
25520
+ }
25261
25521
  if (skipSeparationSpace(state, true, -1)) {
25262
25522
  atNewLine = true;
25263
25523
  allowBlockCollections = allowBlockStyles;
25264
- if (state.lineIndent > parentIndent)
25524
+ if (state.lineIndent > parentIndent) {
25265
25525
  indentStatus = 1;
25266
- else if (state.lineIndent === parentIndent)
25526
+ } else if (state.lineIndent === parentIndent) {
25267
25527
  indentStatus = 0;
25268
- else if (state.lineIndent < parentIndent)
25528
+ } else if (state.lineIndent < parentIndent) {
25269
25529
  indentStatus = -1;
25270
- } else
25530
+ }
25531
+ } else {
25271
25532
  allowBlockCollections = false;
25533
+ }
25272
25534
  }
25273
- if (allowBlockCollections)
25535
+ }
25536
+ if (allowBlockCollections) {
25274
25537
  allowBlockCollections = atNewLine || allowCompact;
25538
+ }
25275
25539
  if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
25276
- if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext)
25540
+ if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
25277
25541
  flowIndent = parentIndent;
25278
- else
25542
+ } else {
25279
25543
  flowIndent = parentIndent + 1;
25544
+ }
25280
25545
  blockIndent = state.position - state.lineStart;
25281
- if (indentStatus === 1)
25282
- if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent))
25546
+ if (indentStatus === 1) {
25547
+ if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) {
25283
25548
  hasContent = true;
25284
- else {
25549
+ } else {
25285
25550
  const ch = state.input.charCodeAt(state.position);
25286
- if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent))
25551
+ if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) {
25287
25552
  hasContent = true;
25288
- else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent))
25553
+ } else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) {
25289
25554
  hasContent = true;
25290
- else if (readAlias(state)) {
25555
+ } else if (readAlias(state)) {
25291
25556
  hasContent = true;
25292
- if (state.tag !== null || state.anchor !== null)
25557
+ if (state.tag !== null || state.anchor !== null) {
25293
25558
  throwError(state, "alias node should not have any properties");
25559
+ }
25294
25560
  } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
25295
25561
  hasContent = true;
25296
- if (state.tag === null)
25562
+ if (state.tag === null) {
25297
25563
  state.tag = "?";
25564
+ }
25298
25565
  }
25299
- if (state.anchor !== null)
25566
+ if (state.anchor !== null) {
25300
25567
  storeAnchor(state, state.anchor, state.result);
25568
+ }
25301
25569
  }
25302
- else if (indentStatus === 0)
25570
+ } else if (indentStatus === 0) {
25303
25571
  hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
25572
+ }
25304
25573
  }
25305
25574
  if (state.tag === null) {
25306
- if (state.anchor !== null)
25575
+ if (state.anchor !== null) {
25307
25576
  storeAnchor(state, state.anchor, state.result);
25577
+ }
25308
25578
  } else if (state.tag === "?") {
25309
- if (state.result !== null && state.kind !== "scalar")
25579
+ if (state.result !== null && state.kind !== "scalar") {
25310
25580
  throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
25581
+ }
25311
25582
  for (let typeIndex = 0, typeQuantity = state.implicitTypes.length;typeIndex < typeQuantity; typeIndex += 1) {
25312
- type = state.implicitTypes[typeIndex];
25313
- if (type.resolve(state.result)) {
25314
- state.result = type.construct(state.result);
25315
- state.tag = type.tag;
25316
- if (state.anchor !== null)
25583
+ type2 = state.implicitTypes[typeIndex];
25584
+ if (type2.resolve(state.result)) {
25585
+ state.result = type2.construct(state.result);
25586
+ state.tag = type2.tag;
25587
+ if (state.anchor !== null) {
25317
25588
  storeAnchor(state, state.anchor, state.result);
25589
+ }
25318
25590
  break;
25319
25591
  }
25320
25592
  }
25321
25593
  } else if (state.tag !== "!") {
25322
- if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag))
25323
- type = state.typeMap[state.kind || "fallback"][state.tag];
25324
- else {
25325
- type = null;
25594
+ if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag)) {
25595
+ type2 = state.typeMap[state.kind || "fallback"][state.tag];
25596
+ } else {
25597
+ type2 = null;
25326
25598
  const typeList = state.typeMap.multi[state.kind || "fallback"];
25327
- for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1)
25599
+ for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1) {
25328
25600
  if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
25329
- type = typeList[typeIndex];
25601
+ type2 = typeList[typeIndex];
25330
25602
  break;
25331
25603
  }
25604
+ }
25332
25605
  }
25333
- if (!type)
25606
+ if (!type2) {
25334
25607
  throwError(state, "unknown tag !<" + state.tag + ">");
25335
- if (state.result !== null && type.kind !== state.kind)
25336
- throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"');
25337
- if (!type.resolve(state.result, state.tag))
25608
+ }
25609
+ if (state.result !== null && type2.kind !== state.kind) {
25610
+ throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type2.kind + '", not "' + state.kind + '"');
25611
+ }
25612
+ if (!type2.resolve(state.result, state.tag)) {
25338
25613
  throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
25339
- else {
25340
- state.result = type.construct(state.result, state.tag);
25341
- if (state.anchor !== null)
25614
+ } else {
25615
+ state.result = type2.construct(state.result, state.tag);
25616
+ if (state.anchor !== null) {
25342
25617
  storeAnchor(state, state.anchor, state.result);
25618
+ }
25343
25619
  }
25344
25620
  }
25345
- if (state.listener !== null)
25621
+ if (state.listener !== null) {
25346
25622
  state.listener("close", state);
25623
+ }
25347
25624
  state.depth -= 1;
25348
25625
  return state.tag !== null || state.anchor !== null || hasContent;
25349
25626
  }
@@ -25353,55 +25630,63 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25353
25630
  let ch;
25354
25631
  state.version = null;
25355
25632
  state.checkLineBreaks = state.legacy;
25356
- state.tagMap = Object.create(null);
25357
- state.anchorMap = Object.create(null);
25633
+ state.tagMap = /* @__PURE__ */ Object.create(null);
25634
+ state.anchorMap = /* @__PURE__ */ Object.create(null);
25358
25635
  while ((ch = state.input.charCodeAt(state.position)) !== 0) {
25359
25636
  skipSeparationSpace(state, true, -1);
25360
25637
  ch = state.input.charCodeAt(state.position);
25361
- if (state.lineIndent > 0 || ch !== 37)
25638
+ if (state.lineIndent > 0 || ch !== 37) {
25362
25639
  break;
25640
+ }
25363
25641
  hasDirectives = true;
25364
25642
  ch = state.input.charCodeAt(++state.position);
25365
25643
  let _position = state.position;
25366
- while (ch !== 0 && !isWsOrEol(ch))
25644
+ while (ch !== 0 && !isWsOrEol(ch)) {
25367
25645
  ch = state.input.charCodeAt(++state.position);
25646
+ }
25368
25647
  const directiveName = state.input.slice(_position, state.position);
25369
25648
  const directiveArgs = [];
25370
- if (directiveName.length < 1)
25649
+ if (directiveName.length < 1) {
25371
25650
  throwError(state, "directive name must not be less than one character in length");
25651
+ }
25372
25652
  while (ch !== 0) {
25373
- while (isWhiteSpace(ch))
25653
+ while (isWhiteSpace(ch)) {
25374
25654
  ch = state.input.charCodeAt(++state.position);
25655
+ }
25375
25656
  if (ch === 35) {
25376
- do
25657
+ do {
25377
25658
  ch = state.input.charCodeAt(++state.position);
25378
- while (ch !== 0 && !isEol(ch));
25659
+ } while (ch !== 0 && !isEol(ch));
25379
25660
  break;
25380
25661
  }
25381
25662
  if (isEol(ch))
25382
25663
  break;
25383
25664
  _position = state.position;
25384
- while (ch !== 0 && !isWsOrEol(ch))
25665
+ while (ch !== 0 && !isWsOrEol(ch)) {
25385
25666
  ch = state.input.charCodeAt(++state.position);
25667
+ }
25386
25668
  directiveArgs.push(state.input.slice(_position, state.position));
25387
25669
  }
25388
25670
  if (ch !== 0)
25389
25671
  readLineBreak(state);
25390
- if (_hasOwnProperty.call(directiveHandlers, directiveName))
25672
+ if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
25391
25673
  directiveHandlers[directiveName](state, directiveName, directiveArgs);
25392
- else
25674
+ } else {
25393
25675
  throwWarning(state, 'unknown document directive "' + directiveName + '"');
25676
+ }
25394
25677
  }
25395
25678
  skipSeparationSpace(state, true, -1);
25396
25679
  if (state.lineIndent === 0 && state.input.charCodeAt(state.position) === 45 && state.input.charCodeAt(state.position + 1) === 45 && state.input.charCodeAt(state.position + 2) === 45) {
25397
25680
  state.position += 3;
25398
25681
  skipSeparationSpace(state, true, -1);
25399
- } else if (hasDirectives)
25682
+ } else if (hasDirectives) {
25400
25683
  throwError(state, "directives end mark is expected");
25684
+ }
25401
25685
  composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
25402
25686
  skipSeparationSpace(state, true, -1);
25403
- if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position)))
25687
+ if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
25404
25688
  throwWarning(state, "non-ASCII line breaks are interpreted as content");
25689
+ }
25405
25690
  state.documents.push(state.result);
25406
25691
  if (state.position === state.lineStart && testDocumentSeparator(state)) {
25407
25692
  if (state.input.charCodeAt(state.position) === 46) {
@@ -25410,18 +25695,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25410
25695
  }
25411
25696
  return;
25412
25697
  }
25413
- if (state.position < state.length - 1)
25698
+ if (state.position < state.length - 1) {
25414
25699
  throwError(state, "end of the stream or a document separator is expected");
25700
+ }
25415
25701
  }
25416
25702
  function loadDocuments(input, options) {
25417
25703
  input = String(input);
25418
25704
  options = options || {};
25419
25705
  if (input.length !== 0) {
25420
- if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13)
25706
+ if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) {
25421
25707
  input += `
25422
25708
  `;
25423
- if (input.charCodeAt(0) === 65279)
25709
+ }
25710
+ if (input.charCodeAt(0) === 65279) {
25424
25711
  input = input.slice(1);
25712
+ }
25425
25713
  }
25426
25714
  const state = new State(input, options);
25427
25715
  const nullpos = input.indexOf("\x00");
@@ -25434,64 +25722,74 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25434
25722
  state.lineIndent += 1;
25435
25723
  state.position += 1;
25436
25724
  }
25437
- while (state.position < state.length - 1)
25725
+ while (state.position < state.length - 1) {
25438
25726
  readDocument(state);
25727
+ }
25439
25728
  return state.documents;
25440
25729
  }
25441
- function loadAll(input, iterator, options) {
25730
+ function loadAll2(input, iterator, options) {
25442
25731
  if (iterator !== null && typeof iterator === "object" && typeof options === "undefined") {
25443
25732
  options = iterator;
25444
25733
  iterator = null;
25445
25734
  }
25446
25735
  const documents = loadDocuments(input, options);
25447
- if (typeof iterator !== "function")
25736
+ if (typeof iterator !== "function") {
25448
25737
  return documents;
25449
- for (let index = 0, length = documents.length;index < length; index += 1)
25738
+ }
25739
+ for (let index = 0, length = documents.length;index < length; index += 1) {
25450
25740
  iterator(documents[index]);
25741
+ }
25451
25742
  }
25452
- function load(input, options) {
25743
+ function load2(input, options) {
25453
25744
  const documents = loadDocuments(input, options);
25454
- if (documents.length === 0)
25745
+ if (documents.length === 0) {
25455
25746
  return;
25456
- else if (documents.length === 1)
25747
+ } else if (documents.length === 1) {
25457
25748
  return documents[0];
25458
- throw new YAMLException("expected a single document in the stream, but found more");
25749
+ }
25750
+ throw new YAMLException2("expected a single document in the stream, but found more");
25459
25751
  }
25460
- module.exports.loadAll = loadAll;
25461
- module.exports.load = load;
25462
- });
25463
- var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25464
- var common = require_common();
25465
- var YAMLException = require_exception();
25466
- var DEFAULT_SCHEMA = require_default();
25467
- var _toString = Object.prototype.toString;
25468
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
25469
- var CHAR_BOM = 65279;
25470
- var CHAR_TAB = 9;
25471
- var CHAR_LINE_FEED = 10;
25472
- var CHAR_CARRIAGE_RETURN = 13;
25473
- var CHAR_SPACE = 32;
25474
- var CHAR_EXCLAMATION = 33;
25475
- var CHAR_DOUBLE_QUOTE = 34;
25476
- var CHAR_SHARP = 35;
25477
- var CHAR_PERCENT = 37;
25478
- var CHAR_AMPERSAND = 38;
25479
- var CHAR_SINGLE_QUOTE = 39;
25480
- var CHAR_ASTERISK = 42;
25481
- var CHAR_COMMA = 44;
25482
- var CHAR_MINUS = 45;
25483
- var CHAR_COLON = 58;
25484
- var CHAR_EQUALS = 61;
25485
- var CHAR_GREATER_THAN = 62;
25486
- var CHAR_QUESTION = 63;
25487
- var CHAR_COMMERCIAL_AT = 64;
25488
- var CHAR_LEFT_SQUARE_BRACKET = 91;
25489
- var CHAR_RIGHT_SQUARE_BRACKET = 93;
25490
- var CHAR_GRAVE_ACCENT = 96;
25491
- var CHAR_LEFT_CURLY_BRACKET = 123;
25492
- var CHAR_VERTICAL_LINE = 124;
25493
- var CHAR_RIGHT_CURLY_BRACKET = 125;
25494
- var ESCAPE_SEQUENCES = {};
25752
+ loader.loadAll = loadAll2;
25753
+ loader.load = load2;
25754
+ return loader;
25755
+ }
25756
+ var dumper = {};
25757
+ var hasRequiredDumper;
25758
+ function requireDumper() {
25759
+ if (hasRequiredDumper)
25760
+ return dumper;
25761
+ hasRequiredDumper = 1;
25762
+ const common2 = requireCommon();
25763
+ const YAMLException2 = requireException();
25764
+ const DEFAULT_SCHEMA2 = require_default();
25765
+ const _toString = Object.prototype.toString;
25766
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
25767
+ const CHAR_BOM = 65279;
25768
+ const CHAR_TAB = 9;
25769
+ const CHAR_LINE_FEED = 10;
25770
+ const CHAR_CARRIAGE_RETURN = 13;
25771
+ const CHAR_SPACE = 32;
25772
+ const CHAR_EXCLAMATION = 33;
25773
+ const CHAR_DOUBLE_QUOTE = 34;
25774
+ const CHAR_SHARP = 35;
25775
+ const CHAR_PERCENT = 37;
25776
+ const CHAR_AMPERSAND = 38;
25777
+ const CHAR_SINGLE_QUOTE = 39;
25778
+ const CHAR_ASTERISK = 42;
25779
+ const CHAR_COMMA = 44;
25780
+ const CHAR_MINUS = 45;
25781
+ const CHAR_COLON = 58;
25782
+ const CHAR_EQUALS = 61;
25783
+ const CHAR_GREATER_THAN = 62;
25784
+ const CHAR_QUESTION = 63;
25785
+ const CHAR_COMMERCIAL_AT = 64;
25786
+ const CHAR_LEFT_SQUARE_BRACKET = 91;
25787
+ const CHAR_RIGHT_SQUARE_BRACKET = 93;
25788
+ const CHAR_GRAVE_ACCENT = 96;
25789
+ const CHAR_LEFT_CURLY_BRACKET = 123;
25790
+ const CHAR_VERTICAL_LINE = 124;
25791
+ const CHAR_RIGHT_CURLY_BRACKET = 125;
25792
+ const ESCAPE_SEQUENCES = {};
25495
25793
  ESCAPE_SEQUENCES[0] = "\\0";
25496
25794
  ESCAPE_SEQUENCES[7] = "\\a";
25497
25795
  ESCAPE_SEQUENCES[8] = "\\b";
@@ -25507,7 +25805,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25507
25805
  ESCAPE_SEQUENCES[160] = "\\_";
25508
25806
  ESCAPE_SEQUENCES[8232] = "\\L";
25509
25807
  ESCAPE_SEQUENCES[8233] = "\\P";
25510
- var DEPRECATED_BOOLEANS_SYNTAX = [
25808
+ const DEPRECATED_BOOLEANS_SYNTAX = [
25511
25809
  "y",
25512
25810
  "Y",
25513
25811
  "yes",
@@ -25525,20 +25823,22 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25525
25823
  "Off",
25526
25824
  "OFF"
25527
25825
  ];
25528
- var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
25529
- function compileStyleMap(schema, map) {
25530
- if (map === null)
25826
+ const DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
25827
+ function compileStyleMap(schema2, map2) {
25828
+ if (map2 === null)
25531
25829
  return {};
25532
25830
  const result = {};
25533
- const keys = Object.keys(map);
25831
+ const keys = Object.keys(map2);
25534
25832
  for (let index = 0, length = keys.length;index < length; index += 1) {
25535
25833
  let tag = keys[index];
25536
- let style = String(map[tag]);
25537
- if (tag.slice(0, 2) === "!!")
25834
+ let style = String(map2[tag]);
25835
+ if (tag.slice(0, 2) === "!!") {
25538
25836
  tag = "tag:yaml.org,2002:" + tag.slice(2);
25539
- const type = schema.compiledTypeMap["fallback"][tag];
25540
- if (type && _hasOwnProperty.call(type.styleAliases, style))
25541
- style = type.styleAliases[style];
25837
+ }
25838
+ const type2 = schema2.compiledTypeMap["fallback"][tag];
25839
+ if (type2 && _hasOwnProperty.call(type2.styleAliases, style)) {
25840
+ style = type2.styleAliases[style];
25841
+ }
25542
25842
  result[tag] = style;
25543
25843
  }
25544
25844
  return result;
@@ -25556,18 +25856,19 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25556
25856
  } else if (character <= 4294967295) {
25557
25857
  handle = "U";
25558
25858
  length = 8;
25559
- } else
25560
- throw new YAMLException("code point within a string may not be greater than 0xFFFFFFFF");
25561
- return "\\" + handle + common.repeat("0", length - string.length) + string;
25859
+ } else {
25860
+ throw new YAMLException2("code point within a string may not be greater than 0xFFFFFFFF");
25861
+ }
25862
+ return "\\" + handle + common2.repeat("0", length - string.length) + string;
25562
25863
  }
25563
- var QUOTING_TYPE_SINGLE = 1;
25564
- var QUOTING_TYPE_DOUBLE = 2;
25864
+ const QUOTING_TYPE_SINGLE = 1;
25865
+ const QUOTING_TYPE_DOUBLE = 2;
25565
25866
  function State(options) {
25566
- this.schema = options["schema"] || DEFAULT_SCHEMA;
25867
+ this.schema = options["schema"] || DEFAULT_SCHEMA2;
25567
25868
  this.indent = Math.max(1, options["indent"] || 2);
25568
25869
  this.noArrayIndent = options["noArrayIndent"] || false;
25569
25870
  this.skipInvalid = options["skipInvalid"] || false;
25570
- this.flowLevel = common.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
25871
+ this.flowLevel = common2.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
25571
25872
  this.styleMap = compileStyleMap(this.schema, options["styles"] || null);
25572
25873
  this.sortKeys = options["sortKeys"] || false;
25573
25874
  this.lineWidth = options["lineWidth"] || 80;
@@ -25585,7 +25886,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25585
25886
  this.usedDuplicates = null;
25586
25887
  }
25587
25888
  function indentString(string, spaces) {
25588
- const ind = common.repeat(" ", spaces);
25889
+ const ind = common2.repeat(" ", spaces);
25589
25890
  let position = 0;
25590
25891
  let result = "";
25591
25892
  const length = string.length;
@@ -25609,12 +25910,15 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25609
25910
  }
25610
25911
  function generateNextLine(state, level) {
25611
25912
  return `
25612
- ` + common.repeat(" ", state.indent * level);
25913
+ ` + common2.repeat(" ", state.indent * level);
25613
25914
  }
25614
- function testImplicitResolving(state, str) {
25615
- for (let index = 0, length = state.implicitTypes.length;index < length; index += 1)
25616
- if (state.implicitTypes[index].resolve(str))
25915
+ function testImplicitResolving(state, str2) {
25916
+ for (let index = 0, length = state.implicitTypes.length;index < length; index += 1) {
25917
+ const type2 = state.implicitTypes[index];
25918
+ if (type2.resolve(str2)) {
25617
25919
  return true;
25920
+ }
25921
+ }
25618
25922
  return false;
25619
25923
  }
25620
25924
  function isWhitespace(c) {
@@ -25642,19 +25946,21 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25642
25946
  let second;
25643
25947
  if (first >= 55296 && first <= 56319 && pos + 1 < string.length) {
25644
25948
  second = string.charCodeAt(pos + 1);
25645
- if (second >= 56320 && second <= 57343)
25949
+ if (second >= 56320 && second <= 57343) {
25646
25950
  return (first - 55296) * 1024 + second - 56320 + 65536;
25951
+ }
25647
25952
  }
25648
25953
  return first;
25649
25954
  }
25650
25955
  function needIndentIndicator(string) {
25651
- return /^\n* /.test(string);
25652
- }
25653
- var STYLE_PLAIN = 1;
25654
- var STYLE_SINGLE = 2;
25655
- var STYLE_LITERAL = 3;
25656
- var STYLE_FOLDED = 4;
25657
- var STYLE_DOUBLE = 5;
25956
+ const leadingSpaceRe = /^\n* /;
25957
+ return leadingSpaceRe.test(string);
25958
+ }
25959
+ const STYLE_PLAIN = 1;
25960
+ const STYLE_SINGLE = 2;
25961
+ const STYLE_LITERAL = 3;
25962
+ const STYLE_FOLDED = 4;
25963
+ const STYLE_DOUBLE = 5;
25658
25964
  function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
25659
25965
  let i;
25660
25966
  let char = 0;
@@ -25664,15 +25970,16 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25664
25970
  const shouldTrackWidth = lineWidth !== -1;
25665
25971
  let previousLineBreak = -1;
25666
25972
  let plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
25667
- if (singleLineOnly || forceQuotes)
25973
+ if (singleLineOnly || forceQuotes) {
25668
25974
  for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
25669
25975
  char = codePointAt(string, i);
25670
- if (!isPrintable(char))
25976
+ if (!isPrintable(char)) {
25671
25977
  return STYLE_DOUBLE;
25978
+ }
25672
25979
  plain = plain && isPlainSafe(char, prevChar, inblock);
25673
25980
  prevChar = char;
25674
25981
  }
25675
- else {
25982
+ } else {
25676
25983
  for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
25677
25984
  char = codePointAt(string, i);
25678
25985
  if (char === CHAR_LINE_FEED) {
@@ -25681,31 +25988,37 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25681
25988
  hasFoldableLine = hasFoldableLine || i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
25682
25989
  previousLineBreak = i;
25683
25990
  }
25684
- } else if (!isPrintable(char))
25991
+ } else if (!isPrintable(char)) {
25685
25992
  return STYLE_DOUBLE;
25993
+ }
25686
25994
  plain = plain && isPlainSafe(char, prevChar, inblock);
25687
25995
  prevChar = char;
25688
25996
  }
25689
- hasFoldableLine = hasFoldableLine || shouldTrackWidth && i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
25997
+ hasFoldableLine = hasFoldableLine || shouldTrackWidth && (i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ");
25690
25998
  }
25691
25999
  if (!hasLineBreak && !hasFoldableLine) {
25692
- if (plain && !forceQuotes && !testAmbiguousType(string))
26000
+ if (plain && !forceQuotes && !testAmbiguousType(string)) {
25693
26001
  return STYLE_PLAIN;
26002
+ }
25694
26003
  return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
25695
26004
  }
25696
- if (indentPerLevel > 9 && needIndentIndicator(string))
26005
+ if (indentPerLevel > 9 && needIndentIndicator(string)) {
25697
26006
  return STYLE_DOUBLE;
25698
- if (!forceQuotes)
26007
+ }
26008
+ if (!forceQuotes) {
25699
26009
  return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
26010
+ }
25700
26011
  return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
25701
26012
  }
25702
26013
  function writeScalar(state, string, level, iskey, inblock) {
25703
26014
  state.dump = function() {
25704
- if (string.length === 0)
26015
+ if (string.length === 0) {
25705
26016
  return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''";
26017
+ }
25706
26018
  if (!state.noCompatMode) {
25707
- if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string))
26019
+ if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {
25708
26020
  return state.quotingType === QUOTING_TYPE_DOUBLE ? '"' + string + '"' : "'" + string + "'";
26021
+ }
25709
26022
  }
25710
26023
  const indent = state.indent * Math.max(1, level);
25711
26024
  const lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
@@ -25723,9 +26036,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25723
26036
  case STYLE_FOLDED:
25724
26037
  return ">" + blockHeader(string, state.indent) + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
25725
26038
  case STYLE_DOUBLE:
25726
- return '"' + escapeString(string, lineWidth) + '"';
26039
+ return '"' + escapeString(string) + '"';
25727
26040
  default:
25728
- throw new YAMLException("impossible error: invalid scalar style");
26041
+ throw new YAMLException2("impossible error: invalid scalar style");
25729
26042
  }
25730
26043
  }();
25731
26044
  }
@@ -25733,9 +26046,11 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25733
26046
  const indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
25734
26047
  const clip = string[string.length - 1] === `
25735
26048
  `;
25736
- return indentIndicator + (clip && (string[string.length - 2] === `
26049
+ const keep = clip && (string[string.length - 2] === `
25737
26050
  ` || string === `
25738
- `) ? "+" : clip ? "" : "-") + `
26051
+ `);
26052
+ const chomp = keep ? "+" : clip ? "" : "-";
26053
+ return indentIndicator + chomp + `
25739
26054
  `;
25740
26055
  }
25741
26056
  function dropEndingNewline(string) {
@@ -25787,11 +26102,12 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25787
26102
  }
25788
26103
  result += `
25789
26104
  `;
25790
- if (line.length - start > width && curr > start)
26105
+ if (line.length - start > width && curr > start) {
25791
26106
  result += line.slice(start, curr) + `
25792
26107
  ` + line.slice(curr + 1);
25793
- else
26108
+ } else {
25794
26109
  result += line.slice(start);
26110
+ }
25795
26111
  return result.slice(1);
25796
26112
  }
25797
26113
  function escapeString(string) {
@@ -25804,8 +26120,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25804
26120
  result += string[i];
25805
26121
  if (char >= 65536)
25806
26122
  result += string[i + 1];
25807
- } else
26123
+ } else {
25808
26124
  result += escapeSeq || encodeHex(char);
26125
+ }
25809
26126
  }
25810
26127
  return result;
25811
26128
  }
@@ -25814,8 +26131,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25814
26131
  const _tag = state.tag;
25815
26132
  for (let index = 0, length = object.length;index < length; index += 1) {
25816
26133
  let value = object[index];
25817
- if (state.replacer)
26134
+ if (state.replacer) {
25818
26135
  value = state.replacer.call(object, String(index), value);
26136
+ }
25819
26137
  if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) {
25820
26138
  if (_result !== "")
25821
26139
  _result += "," + (!state.condenseFlow ? " " : "");
@@ -25830,15 +26148,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25830
26148
  const _tag = state.tag;
25831
26149
  for (let index = 0, length = object.length;index < length; index += 1) {
25832
26150
  let value = object[index];
25833
- if (state.replacer)
26151
+ if (state.replacer) {
25834
26152
  value = state.replacer.call(object, String(index), value);
26153
+ }
25835
26154
  if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) {
25836
- if (!compact || _result !== "")
26155
+ if (!compact || _result !== "") {
25837
26156
  _result += generateNextLine(state, level);
25838
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
26157
+ }
26158
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
25839
26159
  _result += "-";
25840
- else
26160
+ } else {
25841
26161
  _result += "- ";
26162
+ }
25842
26163
  _result += state.dump;
25843
26164
  }
25844
26165
  }
@@ -25857,15 +26178,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25857
26178
  pairBuffer += '"';
25858
26179
  const objectKey = objectKeyList[index];
25859
26180
  let objectValue = object[objectKey];
25860
- if (state.replacer)
26181
+ if (state.replacer) {
25861
26182
  objectValue = state.replacer.call(object, objectKey, objectValue);
25862
- if (!writeNode(state, level, objectKey, false, false))
26183
+ }
26184
+ if (!writeNode(state, level, objectKey, false, false)) {
25863
26185
  continue;
26186
+ }
25864
26187
  if (state.dump.length > 1024)
25865
26188
  pairBuffer += "? ";
25866
26189
  pairBuffer += state.dump + (state.condenseFlow ? '"' : "") + ":" + (state.condenseFlow ? "" : " ");
25867
- if (!writeNode(state, level, objectValue, false, false))
26190
+ if (!writeNode(state, level, objectValue, false, false)) {
25868
26191
  continue;
26192
+ }
25869
26193
  pairBuffer += state.dump;
25870
26194
  _result += pairBuffer;
25871
26195
  }
@@ -25876,37 +26200,46 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25876
26200
  let _result = "";
25877
26201
  const _tag = state.tag;
25878
26202
  const objectKeyList = Object.keys(object);
25879
- if (state.sortKeys === true)
26203
+ if (state.sortKeys === true) {
25880
26204
  objectKeyList.sort();
25881
- else if (typeof state.sortKeys === "function")
26205
+ } else if (typeof state.sortKeys === "function") {
25882
26206
  objectKeyList.sort(state.sortKeys);
25883
- else if (state.sortKeys)
25884
- throw new YAMLException("sortKeys must be a boolean or a function");
26207
+ } else if (state.sortKeys) {
26208
+ throw new YAMLException2("sortKeys must be a boolean or a function");
26209
+ }
25885
26210
  for (let index = 0, length = objectKeyList.length;index < length; index += 1) {
25886
26211
  let pairBuffer = "";
25887
- if (!compact || _result !== "")
26212
+ if (!compact || _result !== "") {
25888
26213
  pairBuffer += generateNextLine(state, level);
26214
+ }
25889
26215
  const objectKey = objectKeyList[index];
25890
26216
  let objectValue = object[objectKey];
25891
- if (state.replacer)
26217
+ if (state.replacer) {
25892
26218
  objectValue = state.replacer.call(object, objectKey, objectValue);
25893
- if (!writeNode(state, level + 1, objectKey, true, true, true))
26219
+ }
26220
+ if (!writeNode(state, level + 1, objectKey, true, true, true)) {
25894
26221
  continue;
26222
+ }
25895
26223
  const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
25896
- if (explicitPair)
25897
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
26224
+ if (explicitPair) {
26225
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
25898
26226
  pairBuffer += "?";
25899
- else
26227
+ } else {
25900
26228
  pairBuffer += "? ";
26229
+ }
26230
+ }
25901
26231
  pairBuffer += state.dump;
25902
- if (explicitPair)
26232
+ if (explicitPair) {
25903
26233
  pairBuffer += generateNextLine(state, level);
25904
- if (!writeNode(state, level + 1, objectValue, true, explicitPair))
26234
+ }
26235
+ if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
25905
26236
  continue;
25906
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
26237
+ }
26238
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
25907
26239
  pairBuffer += ":";
25908
- else
26240
+ } else {
25909
26241
  pairBuffer += ": ";
26242
+ }
25910
26243
  pairBuffer += state.dump;
25911
26244
  _result += pairBuffer;
25912
26245
  }
@@ -25916,24 +26249,27 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25916
26249
  function detectType(state, object, explicit) {
25917
26250
  const typeList = explicit ? state.explicitTypes : state.implicitTypes;
25918
26251
  for (let index = 0, length = typeList.length;index < length; index += 1) {
25919
- const type = typeList[index];
25920
- if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object === "object" && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
25921
- if (explicit)
25922
- if (type.multi && type.representName)
25923
- state.tag = type.representName(object);
25924
- else
25925
- state.tag = type.tag;
25926
- else
26252
+ const type2 = typeList[index];
26253
+ if ((type2.instanceOf || type2.predicate) && (!type2.instanceOf || typeof object === "object" && object instanceof type2.instanceOf) && (!type2.predicate || type2.predicate(object))) {
26254
+ if (explicit) {
26255
+ if (type2.multi && type2.representName) {
26256
+ state.tag = type2.representName(object);
26257
+ } else {
26258
+ state.tag = type2.tag;
26259
+ }
26260
+ } else {
25927
26261
  state.tag = "?";
25928
- if (type.represent) {
25929
- const style = state.styleMap[type.tag] || type.defaultStyle;
26262
+ }
26263
+ if (type2.represent) {
26264
+ const style = state.styleMap[type2.tag] || type2.defaultStyle;
25930
26265
  let _result;
25931
- if (_toString.call(type.represent) === "[object Function]")
25932
- _result = type.represent(object, style);
25933
- else if (_hasOwnProperty.call(type.represent, style))
25934
- _result = type.represent[style](object, style);
25935
- else
25936
- throw new YAMLException("!<" + type.tag + '> tag resolver accepts not "' + style + '" style');
26266
+ if (_toString.call(type2.represent) === "[object Function]") {
26267
+ _result = type2.represent(object, style);
26268
+ } else if (_hasOwnProperty.call(type2.represent, style)) {
26269
+ _result = type2.represent[style](object, style);
26270
+ } else {
26271
+ throw new YAMLException2("!<" + type2.tag + '> tag resolver accepts not "' + style + '" style');
26272
+ }
25937
26273
  state.dump = _result;
25938
26274
  }
25939
26275
  return true;
@@ -25944,67 +26280,78 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25944
26280
  function writeNode(state, level, object, block, compact, iskey, isblockseq) {
25945
26281
  state.tag = null;
25946
26282
  state.dump = object;
25947
- if (!detectType(state, object, false))
26283
+ if (!detectType(state, object, false)) {
25948
26284
  detectType(state, object, true);
25949
- const type = _toString.call(state.dump);
26285
+ }
26286
+ const type2 = _toString.call(state.dump);
25950
26287
  const inblock = block;
25951
- if (block)
26288
+ if (block) {
25952
26289
  block = state.flowLevel < 0 || state.flowLevel > level;
25953
- const objectOrArray = type === "[object Object]" || type === "[object Array]";
26290
+ }
26291
+ const objectOrArray = type2 === "[object Object]" || type2 === "[object Array]";
25954
26292
  let duplicateIndex;
25955
26293
  let duplicate;
25956
26294
  if (objectOrArray) {
25957
26295
  duplicateIndex = state.duplicates.indexOf(object);
25958
26296
  duplicate = duplicateIndex !== -1;
25959
26297
  }
25960
- if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0)
26298
+ if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) {
25961
26299
  compact = false;
25962
- if (duplicate && state.usedDuplicates[duplicateIndex])
26300
+ }
26301
+ if (duplicate && state.usedDuplicates[duplicateIndex]) {
25963
26302
  state.dump = "*ref_" + duplicateIndex;
25964
- else {
25965
- if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex])
26303
+ } else {
26304
+ if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
25966
26305
  state.usedDuplicates[duplicateIndex] = true;
25967
- if (type === "[object Object]")
26306
+ }
26307
+ if (type2 === "[object Object]") {
25968
26308
  if (block && Object.keys(state.dump).length !== 0) {
25969
26309
  writeBlockMapping(state, level, state.dump, compact);
25970
- if (duplicate)
26310
+ if (duplicate) {
25971
26311
  state.dump = "&ref_" + duplicateIndex + state.dump;
26312
+ }
25972
26313
  } else {
25973
26314
  writeFlowMapping(state, level, state.dump);
25974
- if (duplicate)
26315
+ if (duplicate) {
25975
26316
  state.dump = "&ref_" + duplicateIndex + " " + state.dump;
26317
+ }
25976
26318
  }
25977
- else if (type === "[object Array]")
26319
+ } else if (type2 === "[object Array]") {
25978
26320
  if (block && state.dump.length !== 0) {
25979
- if (state.noArrayIndent && !isblockseq && level > 0)
26321
+ if (state.noArrayIndent && !isblockseq && level > 0) {
25980
26322
  writeBlockSequence(state, level - 1, state.dump, compact);
25981
- else
26323
+ } else {
25982
26324
  writeBlockSequence(state, level, state.dump, compact);
25983
- if (duplicate)
26325
+ }
26326
+ if (duplicate) {
25984
26327
  state.dump = "&ref_" + duplicateIndex + state.dump;
26328
+ }
25985
26329
  } else {
25986
26330
  writeFlowSequence(state, level, state.dump);
25987
- if (duplicate)
26331
+ if (duplicate) {
25988
26332
  state.dump = "&ref_" + duplicateIndex + " " + state.dump;
26333
+ }
25989
26334
  }
25990
- else if (type === "[object String]") {
25991
- if (state.tag !== "?")
26335
+ } else if (type2 === "[object String]") {
26336
+ if (state.tag !== "?") {
25992
26337
  writeScalar(state, state.dump, level, iskey, inblock);
25993
- } else if (type === "[object Undefined]")
26338
+ }
26339
+ } else if (type2 === "[object Undefined]") {
25994
26340
  return false;
25995
- else {
26341
+ } else {
25996
26342
  if (state.skipInvalid)
25997
26343
  return false;
25998
- throw new YAMLException("unacceptable kind of an object to dump " + type);
26344
+ throw new YAMLException2("unacceptable kind of an object to dump " + type2);
25999
26345
  }
26000
26346
  if (state.tag !== null && state.tag !== "?") {
26001
26347
  let tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
26002
- if (state.tag[0] === "!")
26348
+ if (state.tag[0] === "!") {
26003
26349
  tagStr = "!" + tagStr;
26004
- else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:")
26350
+ } else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") {
26005
26351
  tagStr = "!!" + tagStr.slice(18);
26006
- else
26352
+ } else {
26007
26353
  tagStr = "!<" + tagStr + ">";
26354
+ }
26008
26355
  state.dump = tagStr + " " + state.dump;
26009
26356
  }
26010
26357
  }
@@ -26015,83 +26362,110 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
26015
26362
  const duplicatesIndexes = [];
26016
26363
  inspectNode(object, objects, duplicatesIndexes);
26017
26364
  const length = duplicatesIndexes.length;
26018
- for (let index = 0;index < length; index += 1)
26365
+ for (let index = 0;index < length; index += 1) {
26019
26366
  state.duplicates.push(objects[duplicatesIndexes[index]]);
26367
+ }
26020
26368
  state.usedDuplicates = new Array(length);
26021
26369
  }
26022
26370
  function inspectNode(object, objects, duplicatesIndexes) {
26023
26371
  if (object !== null && typeof object === "object") {
26024
26372
  const index = objects.indexOf(object);
26025
26373
  if (index !== -1) {
26026
- if (duplicatesIndexes.indexOf(index) === -1)
26374
+ if (duplicatesIndexes.indexOf(index) === -1) {
26027
26375
  duplicatesIndexes.push(index);
26376
+ }
26028
26377
  } else {
26029
26378
  objects.push(object);
26030
- if (Array.isArray(object))
26031
- for (let i = 0, length = object.length;i < length; i += 1)
26379
+ if (Array.isArray(object)) {
26380
+ for (let i = 0, length = object.length;i < length; i += 1) {
26032
26381
  inspectNode(object[i], objects, duplicatesIndexes);
26033
- else {
26382
+ }
26383
+ } else {
26034
26384
  const objectKeyList = Object.keys(object);
26035
- for (let i = 0, length = objectKeyList.length;i < length; i += 1)
26385
+ for (let i = 0, length = objectKeyList.length;i < length; i += 1) {
26036
26386
  inspectNode(object[objectKeyList[i]], objects, duplicatesIndexes);
26387
+ }
26037
26388
  }
26038
26389
  }
26039
26390
  }
26040
26391
  }
26041
- function dump(input, options) {
26392
+ function dump2(input, options) {
26042
26393
  options = options || {};
26043
26394
  const state = new State(options);
26044
26395
  if (!state.noRefs)
26045
26396
  getDuplicateReferences(input, state);
26046
26397
  let value = input;
26047
- if (state.replacer)
26398
+ if (state.replacer) {
26048
26399
  value = state.replacer.call({ "": value }, "", value);
26400
+ }
26049
26401
  if (writeNode(state, 0, value, true, true))
26050
26402
  return state.dump + `
26051
26403
  `;
26052
26404
  return "";
26053
26405
  }
26054
- module.exports.dump = dump;
26055
- });
26056
- var import_js_yaml = /* @__PURE__ */ __toESM2((/* @__PURE__ */ __commonJSMin((exports, module) => {
26057
- var loader = require_loader();
26058
- var dumper = require_dumper();
26406
+ dumper.dump = dump2;
26407
+ return dumper;
26408
+ }
26409
+ var hasRequiredJsYaml;
26410
+ function requireJsYaml() {
26411
+ if (hasRequiredJsYaml)
26412
+ return jsYaml;
26413
+ hasRequiredJsYaml = 1;
26414
+ const loader2 = requireLoader();
26415
+ const dumper2 = requireDumper();
26059
26416
  function renamed(from, to) {
26060
26417
  return function() {
26061
26418
  throw new Error("Function yaml." + from + " is removed in js-yaml 4. Use yaml." + to + " instead, which is now safe by default.");
26062
26419
  };
26063
26420
  }
26064
- module.exports.Type = require_type();
26065
- module.exports.Schema = require_schema();
26066
- module.exports.FAILSAFE_SCHEMA = require_failsafe();
26067
- module.exports.JSON_SCHEMA = require_json();
26068
- module.exports.CORE_SCHEMA = require_core();
26069
- module.exports.DEFAULT_SCHEMA = require_default();
26070
- module.exports.load = loader.load;
26071
- module.exports.loadAll = loader.loadAll;
26072
- module.exports.dump = dumper.dump;
26073
- module.exports.YAMLException = require_exception();
26074
- module.exports.types = {
26075
- binary: require_binary(),
26076
- float: require_float(),
26077
- map: require_map(),
26421
+ jsYaml.Type = requireType();
26422
+ jsYaml.Schema = requireSchema();
26423
+ jsYaml.FAILSAFE_SCHEMA = requireFailsafe();
26424
+ jsYaml.JSON_SCHEMA = requireJson();
26425
+ jsYaml.CORE_SCHEMA = requireCore();
26426
+ jsYaml.DEFAULT_SCHEMA = require_default();
26427
+ jsYaml.load = loader2.load;
26428
+ jsYaml.loadAll = loader2.loadAll;
26429
+ jsYaml.dump = dumper2.dump;
26430
+ jsYaml.YAMLException = requireException();
26431
+ jsYaml.types = {
26432
+ binary: requireBinary(),
26433
+ float: requireFloat(),
26434
+ map: requireMap(),
26078
26435
  null: require_null(),
26079
- pairs: require_pairs(),
26080
- set: require_set(),
26081
- timestamp: require_timestamp(),
26082
- bool: require_bool(),
26083
- int: require_int(),
26084
- merge: require_merge(),
26085
- omap: require_omap(),
26086
- seq: require_seq(),
26087
- str: require_str()
26436
+ pairs: requirePairs(),
26437
+ set: requireSet(),
26438
+ timestamp: requireTimestamp(),
26439
+ bool: requireBool(),
26440
+ int: requireInt(),
26441
+ merge: requireMerge(),
26442
+ omap: requireOmap(),
26443
+ seq: requireSeq(),
26444
+ str: requireStr()
26088
26445
  };
26089
- module.exports.safeLoad = renamed("safeLoad", "load");
26090
- module.exports.safeLoadAll = renamed("safeLoadAll", "loadAll");
26091
- module.exports.safeDump = renamed("safeDump", "dump");
26092
- }))(), 1);
26093
- var { Type, Schema, FAILSAFE_SCHEMA, JSON_SCHEMA, CORE_SCHEMA, DEFAULT_SCHEMA, load, loadAll, dump, YAMLException, types, safeLoad, safeLoadAll, safeDump } = import_js_yaml.default;
26094
- var index_vite_proxy_tmp_default = import_js_yaml.default;
26446
+ jsYaml.safeLoad = renamed("safeLoad", "load");
26447
+ jsYaml.safeLoadAll = renamed("safeLoadAll", "loadAll");
26448
+ jsYaml.safeDump = renamed("safeDump", "dump");
26449
+ return jsYaml;
26450
+ }
26451
+ var jsYamlExports = requireJsYaml();
26452
+ var yaml = /* @__PURE__ */ getDefaultExportFromCjs(jsYamlExports);
26453
+ var {
26454
+ Type,
26455
+ Schema,
26456
+ FAILSAFE_SCHEMA,
26457
+ JSON_SCHEMA,
26458
+ CORE_SCHEMA,
26459
+ DEFAULT_SCHEMA,
26460
+ load,
26461
+ loadAll,
26462
+ dump,
26463
+ YAMLException,
26464
+ types,
26465
+ safeLoad,
26466
+ safeLoadAll,
26467
+ safeDump
26468
+ } = yaml;
26095
26469
 
26096
26470
  // ../common/src/logger.ts
26097
26471
  init_src();
@@ -26168,11 +26542,11 @@ class SimpleLogger {
26168
26542
  const path3 = this.logFilePath || getGlobalLogFilePath();
26169
26543
  if (!path3)
26170
26544
  return;
26171
- const timestamp = new Date().toISOString();
26545
+ const timestamp2 = new Date().toISOString();
26172
26546
  this.pendingWrites = Promise.all([
26173
26547
  this.pendingWrites,
26174
26548
  this.pendingInit
26175
- ]).then(() => getFileSystem().appendFile(path3, `${timestamp} ${formatted}`).catch(() => {}));
26549
+ ]).then(() => getFileSystem().appendFile(path3, `${timestamp2} ${formatted}`).catch(() => {}));
26176
26550
  }
26177
26551
  debug(message, ...args) {
26178
26552
  if (this.level > 0 /* DEBUG */)
@@ -26288,6 +26662,7 @@ function getLogFilePath() {
26288
26662
  // ../common/src/output-format-context.ts
26289
26663
  var formatSlot = singleton("OutputFormat");
26290
26664
  var formatExplicitSlot = singleton("OutputFormatExplicit");
26665
+ var helpRequestedSlot = singleton("HelpRequested");
26291
26666
  var filterSlot = singleton("OutputFilter");
26292
26667
  function getOutputFormat() {
26293
26668
  return formatSlot.get("json");
@@ -26568,10 +26943,10 @@ class LoggerTelemetryProvider {
26568
26943
  success
26569
26944
  })));
26570
26945
  }
26571
- async trackDependency(name, type, duration, success, properties) {
26946
+ async trackDependency(name, type2, duration, success, properties) {
26572
26947
  logger.debug(formatMessage("Dependency", name, this.enrich({
26573
26948
  ...properties,
26574
- type,
26949
+ type: type2,
26575
26950
  duration: `${duration}ms`,
26576
26951
  success
26577
26952
  })));
@@ -26704,58 +27079,230 @@ function detectExecutionContext(options = {}) {
26704
27079
  if (authSignal === "service_account") {
26705
27080
  return { executionContext: "service_account" };
26706
27081
  }
26707
- const isTty = options.isTty ?? currentTtyState();
26708
- if (isTty) {
26709
- return { executionContext: "manual" };
27082
+ const isTty = options.isTty ?? currentTtyState();
27083
+ if (isTty) {
27084
+ return { executionContext: "manual" };
27085
+ }
27086
+ return { executionContext: "unknown" };
27087
+ }
27088
+ function getExecutionContextTelemetryProperties() {
27089
+ const detected = detectExecutionContext();
27090
+ return {
27091
+ execution_context: detected.executionContext,
27092
+ ...detected.ciProvider ? { ci_provider: detected.ciProvider } : {}
27093
+ };
27094
+ }
27095
+ // ../common/src/telemetry/node-context-storage.ts
27096
+ import { AsyncLocalStorage } from "node:async_hooks";
27097
+
27098
+ class NodeContextStorage {
27099
+ storage = new AsyncLocalStorage;
27100
+ run(context, fn) {
27101
+ return this.storage.run(context, fn);
27102
+ }
27103
+ getContext() {
27104
+ return this.storage.getStore();
27105
+ }
27106
+ }
27107
+ // ../common/src/telemetry/trace-context.ts
27108
+ var TELEMETRY_TRACEPARENT_ENV = "TRACEPARENT";
27109
+ var TRACEPARENT_PATTERN = /^00-([0-9a-f]{32})-([0-9a-f]{16})-[0-9a-f]{2}$/;
27110
+ function getProcessEnv() {
27111
+ return globalThis.process?.env;
27112
+ }
27113
+ function parseInboundTraceparent(value) {
27114
+ if (!value) {
27115
+ return;
27116
+ }
27117
+ const match = TRACEPARENT_PATTERN.exec(value.trim().toLowerCase());
27118
+ if (!match) {
27119
+ return;
27120
+ }
27121
+ const [, traceId, parentSpanId] = match;
27122
+ if (/^0+$/.test(traceId) || /^0+$/.test(parentSpanId)) {
27123
+ return;
27124
+ }
27125
+ return { traceId, parentSpanId };
27126
+ }
27127
+ function getInboundTraceContext() {
27128
+ return parseInboundTraceparent(getProcessEnv()?.[TELEMETRY_TRACEPARENT_ENV]);
27129
+ }
27130
+
27131
+ // ../common/src/telemetry/session-id.ts
27132
+ var TELEMETRY_SESSION_ID_ENV = "UIPATH_SESSION_ID";
27133
+ var TELEMETRY_SESSION_ID_PROPERTY = "session_id";
27134
+ var telemetrySessionIdSlot = singleton("TelemetrySessionId");
27135
+ var telemetryOperationIdSlot = singleton("TelemetryOperationId");
27136
+ function getProcessEnv2() {
27137
+ return globalThis.process?.env;
27138
+ }
27139
+ function normalizeSessionId(value) {
27140
+ if (typeof value !== "string" && typeof value !== "number" && typeof value !== "boolean") {
27141
+ return;
27142
+ }
27143
+ const trimmed = String(value).trim();
27144
+ return trimmed || undefined;
27145
+ }
27146
+ function getConfiguredTelemetrySessionId() {
27147
+ return normalizeSessionId(getProcessEnv2()?.[TELEMETRY_SESSION_ID_ENV]);
27148
+ }
27149
+ function resolveTelemetrySessionId(existingSessionId) {
27150
+ return getConfiguredTelemetrySessionId() ?? normalizeSessionId(existingSessionId);
27151
+ }
27152
+ function getTelemetryOperationId() {
27153
+ const existing = telemetryOperationIdSlot.get();
27154
+ if (existing) {
27155
+ return existing;
27156
+ }
27157
+ const inboundTraceId = getInboundTraceContext()?.traceId;
27158
+ const generated = inboundTraceId ?? crypto.randomUUID().replaceAll("-", "");
27159
+ telemetryOperationIdSlot.set(generated);
27160
+ return generated;
27161
+ }
27162
+ // ../common/src/telemetry/global-telemetry-properties.ts
27163
+ var telemetryPropsSlot = singleton("TelemetryDefaultProps");
27164
+ function getGlobalTelemetryProperties() {
27165
+ return telemetryPropsSlot.get();
27166
+ }
27167
+
27168
+ // ../common/src/telemetry/pii-redactor.ts
27169
+ var REDACTED = "[REDACTED]";
27170
+ var MAX_VALUE_LENGTH = 200;
27171
+ var SENSITIVE_NAME_TOKENS = new Set([
27172
+ "token",
27173
+ "tokens",
27174
+ "secret",
27175
+ "secrets",
27176
+ "password",
27177
+ "passwords",
27178
+ "pwd",
27179
+ "credential",
27180
+ "credentials",
27181
+ "auth",
27182
+ "authentication",
27183
+ "authorization",
27184
+ "authority",
27185
+ "cert",
27186
+ "certificate",
27187
+ "certificates"
27188
+ ]);
27189
+ var SENSITIVE_KEY_PREFIXES = new Set([
27190
+ "api",
27191
+ "access",
27192
+ "client",
27193
+ "private",
27194
+ "public",
27195
+ "signing",
27196
+ "encryption",
27197
+ "session",
27198
+ "master",
27199
+ "shared",
27200
+ "root",
27201
+ "ssh",
27202
+ "rsa",
27203
+ "aes",
27204
+ "hmac",
27205
+ "oauth"
27206
+ ]);
27207
+ var UUID_PATTERN = /\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi;
27208
+ var EMAIL_PATTERN = /\b[^\s@]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/g;
27209
+ var JWT_PATTERN = /\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g;
27210
+ var LONG_TOKEN_PATTERN = /\b[A-Za-z0-9_-]{40,}\b/g;
27211
+ var USER_HOME_PATTERN = /([/\\])(Users|home)([/\\])([^/\\]+)/gi;
27212
+ var URL_PATTERN = /\bhttps?:\/\/[^\s,;]+/gi;
27213
+ var URL_TRAILING_PUNCT = /[.,;:!?)\]}>'"]+$/;
27214
+ function shortHash(input) {
27215
+ let hash = 2166136261;
27216
+ for (let i = 0;i < input.length; i++) {
27217
+ hash ^= input.charCodeAt(i);
27218
+ hash = Math.imul(hash, 16777619);
27219
+ }
27220
+ return (hash >>> 0).toString(16).padStart(8, "0");
27221
+ }
27222
+ function redactUrl(raw) {
27223
+ try {
27224
+ const url = new URL(raw);
27225
+ return `${url.protocol}//${url.host}`;
27226
+ } catch {
27227
+ return `url#${shortHash(raw)}`;
27228
+ }
27229
+ }
27230
+ function redactValueDetectors(value) {
27231
+ let out = value;
27232
+ out = out.replace(JWT_PATTERN, () => REDACTED);
27233
+ out = out.replace(URL_PATTERN, (match) => {
27234
+ const trailing = match.match(URL_TRAILING_PUNCT)?.[0] ?? "";
27235
+ const core2 = trailing ? match.slice(0, -trailing.length) : match;
27236
+ return `${redactUrl(core2)}${trailing}`;
27237
+ });
27238
+ out = out.replace(USER_HOME_PATTERN, (_match, sep1, folder, sep2) => `${sep1}${folder}${sep2}<user>`);
27239
+ out = out.replace(EMAIL_PATTERN, (match) => `email#${shortHash(match)}`);
27240
+ out = out.replace(UUID_PATTERN, (match) => `uuid#${shortHash(match)}`);
27241
+ out = out.replace(LONG_TOKEN_PATTERN, () => REDACTED);
27242
+ if (out.length > MAX_VALUE_LENGTH) {
27243
+ out = `${out.slice(0, MAX_VALUE_LENGTH)}…`;
26710
27244
  }
26711
- return { executionContext: "unknown" };
27245
+ return out;
26712
27246
  }
26713
- function getExecutionContextTelemetryProperties() {
26714
- const detected = detectExecutionContext();
26715
- return {
26716
- execution_context: detected.executionContext,
26717
- ...detected.ciProvider ? { ci_provider: detected.ciProvider } : {}
26718
- };
27247
+ function redactValue(value) {
27248
+ return redactValueDetectors(value);
26719
27249
  }
26720
- // ../common/src/telemetry/node-context-storage.ts
26721
- import { AsyncLocalStorage } from "node:async_hooks";
26722
-
26723
- class NodeContextStorage {
26724
- storage = new AsyncLocalStorage;
26725
- run(context, fn) {
26726
- return this.storage.run(context, fn);
26727
- }
26728
- getContext() {
26729
- return this.storage.getStore();
26730
- }
27250
+ function redactError(error) {
27251
+ const safe = new Error(redactValueDetectors(error.message ?? ""));
27252
+ safe.name = error.name;
27253
+ safe.stack = typeof error.stack === "string" ? redactValueDetectors(error.stack) : undefined;
27254
+ return safe;
26731
27255
  }
26732
- // ../common/src/telemetry/session-id.ts
26733
- var TELEMETRY_SESSION_ID_ENV = "UIPATH_SESSION_ID";
26734
- var TELEMETRY_SESSION_ID_PROPERTY = "session_id";
26735
- var telemetrySessionIdSlot = singleton("TelemetrySessionId");
26736
- function getProcessEnv() {
26737
- return globalThis.process?.env;
27256
+ function nameTokens(name) {
27257
+ return name.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").split(/[\s._-]+/).map((t) => t.toLowerCase()).filter(Boolean);
26738
27258
  }
26739
- function normalizeSessionId(value) {
26740
- if (typeof value !== "string" && typeof value !== "number" && typeof value !== "boolean") {
26741
- return;
27259
+ function isSensitiveName(name) {
27260
+ const tokens = nameTokens(name);
27261
+ for (let i = 0;i < tokens.length; i++) {
27262
+ const token = tokens[i];
27263
+ if (SENSITIVE_NAME_TOKENS.has(token)) {
27264
+ return true;
27265
+ }
27266
+ if (token === "key" || token === "keys") {
27267
+ const prev = tokens[i - 1];
27268
+ if (prev && SENSITIVE_KEY_PREFIXES.has(prev)) {
27269
+ return true;
27270
+ }
27271
+ }
26742
27272
  }
26743
- const trimmed = String(value).trim();
26744
- return trimmed || undefined;
26745
- }
26746
- function getConfiguredTelemetrySessionId() {
26747
- return normalizeSessionId(getProcessEnv()?.[TELEMETRY_SESSION_ID_ENV]);
27273
+ return false;
26748
27274
  }
26749
- function resolveTelemetrySessionId(existingSessionId) {
26750
- return getConfiguredTelemetrySessionId() ?? normalizeSessionId(existingSessionId);
27275
+ function redactProperty(name, value) {
27276
+ if (value === undefined || value === null) {
27277
+ return;
27278
+ }
27279
+ if (isSensitiveName(name)) {
27280
+ return REDACTED;
27281
+ }
27282
+ if (typeof value === "boolean" || typeof value === "number") {
27283
+ return value;
27284
+ }
27285
+ if (typeof value !== "string") {
27286
+ return "[OBJECT]";
27287
+ }
27288
+ return redactValueDetectors(value);
26751
27289
  }
26752
- // ../common/src/telemetry/global-telemetry-properties.ts
26753
- var telemetryPropsSlot = singleton("TelemetryDefaultProps");
26754
- function getGlobalTelemetryProperties() {
26755
- return telemetryPropsSlot.get();
27290
+ function redactProperties(properties) {
27291
+ const out = {};
27292
+ for (const [name, value] of Object.entries(properties)) {
27293
+ const redacted = redactProperty(name, value);
27294
+ if (redacted !== undefined) {
27295
+ out[name] = redacted;
27296
+ }
27297
+ }
27298
+ return out;
26756
27299
  }
26757
27300
 
26758
27301
  // ../common/src/telemetry/telemetry-service.ts
27302
+ var TELEMETRY_OPERATION_ID_PROPERTY = "uip.trace.operation_id";
27303
+ var TELEMETRY_PARENT_ID_PROPERTY = "uip.trace.parent_id";
27304
+ var TELEMETRY_SPAN_ID_PROPERTY = "uip.trace.span_id";
27305
+
26759
27306
  class TelemetryService {
26760
27307
  telemetryProvider;
26761
27308
  contextStorage;
@@ -26782,11 +27329,15 @@ class TelemetryService {
26782
27329
  trackException(error, properties) {
26783
27330
  const context = this.getCurrentContext();
26784
27331
  const enrichedProperties = this.enrichPropertiesWithContext(properties, context);
26785
- this.telemetryProvider.trackException(error, enrichedProperties);
27332
+ this.telemetryProvider.trackException(redactError(error), enrichedProperties);
26786
27333
  }
26787
27334
  async trackRequest(name, fn, properties) {
27335
+ const parentContext = this.getCurrentContext();
27336
+ const operationId = parentContext?.operationId ?? this.operationId ?? getTelemetryOperationId();
27337
+ const parentId = parentContext ? parentContext.id : this.inboundParentIdFor(operationId);
26788
27338
  const context = {
26789
- operationId: this.operationId ?? this.generateId(),
27339
+ operationId,
27340
+ ...parentId !== undefined ? { parentId } : {},
26790
27341
  id: this.generateId()
26791
27342
  };
26792
27343
  const startTime = performance.now();
@@ -26804,7 +27355,46 @@ class TelemetryService {
26804
27355
  throw error;
26805
27356
  }
26806
27357
  }
26807
- async trackDependencyOperation(name, type, fn, properties) {
27358
+ trackRequestResult(name, durationMs, success, properties, context) {
27359
+ const requestContext = context ?? {
27360
+ operationId: this.operationId ?? getTelemetryOperationId(),
27361
+ id: this.generateId()
27362
+ };
27363
+ const enrichedProperties = this.enrichPropertiesWithContext(properties, requestContext);
27364
+ this.telemetryProvider.trackRequest(name, durationMs, success, enrichedProperties);
27365
+ }
27366
+ createRequestContext() {
27367
+ const operationId = this.operationId ?? getTelemetryOperationId();
27368
+ const parentId = this.inboundParentIdFor(operationId);
27369
+ return {
27370
+ operationId,
27371
+ ...parentId !== undefined ? { parentId } : {},
27372
+ id: this.generateId()
27373
+ };
27374
+ }
27375
+ inboundParentIdFor(operationId) {
27376
+ const inbound = getInboundTraceContext();
27377
+ return inbound && inbound.traceId === operationId ? inbound.parentSpanId : undefined;
27378
+ }
27379
+ runWithContext(context, fn) {
27380
+ return this.contextStorage.run(context, fn);
27381
+ }
27382
+ createDependencyContext() {
27383
+ const parentContext = this.getCurrentContext();
27384
+ if (!parentContext) {
27385
+ return;
27386
+ }
27387
+ return {
27388
+ operationId: parentContext.operationId,
27389
+ parentId: parentContext.id,
27390
+ id: this.generateId()
27391
+ };
27392
+ }
27393
+ trackDependencyResult(name, type2, durationMs, success, properties, context, resultCode) {
27394
+ const enrichedProperties = this.enrichPropertiesWithContext(properties, context);
27395
+ this.telemetryProvider.trackDependency(redactValue(name), type2, durationMs, success, enrichedProperties, resultCode);
27396
+ }
27397
+ async trackDependencyOperation(name, type2, fn, properties) {
26808
27398
  const parentContext = this.getCurrentContext();
26809
27399
  if (!parentContext) {
26810
27400
  throw new Error("trackDependencyOperation must be called within a trackRequest block.");
@@ -26819,13 +27409,13 @@ class TelemetryService {
26819
27409
  const result = await this.contextStorage.run(childContext, fn);
26820
27410
  const durationMs = performance.now() - startTime;
26821
27411
  const enrichedProperties = this.enrichPropertiesWithContext(properties, childContext);
26822
- await this.telemetryProvider.trackDependency(name, type, durationMs, true, enrichedProperties);
27412
+ await this.telemetryProvider.trackDependency(name, type2, durationMs, true, enrichedProperties);
26823
27413
  return result;
26824
27414
  } catch (error) {
26825
27415
  const durationMs = performance.now() - startTime;
26826
27416
  const err = error instanceof Error ? error : new Error(String(error));
26827
27417
  const enrichedProperties = this.enrichPropertiesWithContext({ ...properties, errorMessage: err.message }, childContext);
26828
- await this.telemetryProvider.trackDependency(name, type, durationMs, false, enrichedProperties);
27418
+ await this.telemetryProvider.trackDependency(name, type2, durationMs, false, enrichedProperties);
26829
27419
  throw error;
26830
27420
  }
26831
27421
  }
@@ -26840,8 +27430,12 @@ class TelemetryService {
26840
27430
  ...getExecutionContextTelemetryProperties(),
26841
27431
  ...globalProperties,
26842
27432
  ...this.defaultProperties,
26843
- ...properties,
26844
- ...context
27433
+ ...redactProperties(properties ?? {}),
27434
+ ...context ? {
27435
+ [TELEMETRY_OPERATION_ID_PROPERTY]: context.operationId,
27436
+ ...context.parentId !== undefined ? { [TELEMETRY_PARENT_ID_PROPERTY]: context.parentId } : {},
27437
+ [TELEMETRY_SPAN_ID_PROPERTY]: context.id
27438
+ } : {}
26845
27439
  };
26846
27440
  if (sessionId === undefined) {
26847
27441
  delete enriched[TELEMETRY_SESSION_ID_PROPERTY];
@@ -26851,7 +27445,16 @@ class TelemetryService {
26851
27445
  return enriched;
26852
27446
  }
26853
27447
  generateId() {
26854
- return crypto.randomUUID().replaceAll("-", "");
27448
+ const bytes = new Uint8Array(8);
27449
+ let hex = "";
27450
+ do {
27451
+ crypto.getRandomValues(bytes);
27452
+ hex = "";
27453
+ for (const byte of bytes) {
27454
+ hex += byte.toString(16).padStart(2, "0");
27455
+ }
27456
+ } while (/^0+$/.test(hex));
27457
+ return hex;
26855
27458
  }
26856
27459
  }
26857
27460
  // ../common/src/telemetry/node-appinsights-telemetry-provider.ts
@@ -27032,8 +27635,8 @@ function printOutput(data, format = "json", logFn, asciiSafe = false) {
27032
27635
  }
27033
27636
  switch (format) {
27034
27637
  case "json": {
27035
- const json = JSON.stringify(data, null, 2);
27036
- logFn(asciiSafe ? escapeNonAscii(json) : json);
27638
+ const json2 = JSON.stringify(data, null, 2);
27639
+ logFn(asciiSafe ? escapeNonAscii(json2) : json2);
27037
27640
  break;
27038
27641
  }
27039
27642
  case "yaml":
@@ -27358,6 +27961,9 @@ var OutputFormatter;
27358
27961
  if (opts?.warning) {
27359
27962
  data.Warning = opts.warning;
27360
27963
  }
27964
+ if (opts?.pagination) {
27965
+ data.Pagination = opts.pagination;
27966
+ }
27361
27967
  success(data);
27362
27968
  }
27363
27969
  OutputFormatter.emitList = emitList;
@@ -27366,8 +27972,8 @@ var OutputFormatter;
27366
27972
  const sink = getOutputSink();
27367
27973
  const normalized = toPascalCaseData(data);
27368
27974
  if (format === "json") {
27369
- const json = JSON.stringify(normalized);
27370
- const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(json) : json;
27975
+ const json2 = JSON.stringify(normalized);
27976
+ const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(json2) : json2;
27371
27977
  sink.writeErr(`${safe}
27372
27978
  `);
27373
27979
  } else {
@@ -27550,134 +28156,11 @@ function buildCommandTelemetryAttribution(commandPath, skillSource) {
27550
28156
  };
27551
28157
  }
27552
28158
 
27553
- // ../common/src/telemetry/pii-redactor.ts
27554
- var REDACTED = "[REDACTED]";
27555
- var MAX_VALUE_LENGTH = 200;
27556
- var SENSITIVE_NAME_TOKENS = new Set([
27557
- "token",
27558
- "tokens",
27559
- "secret",
27560
- "secrets",
27561
- "password",
27562
- "passwords",
27563
- "pwd",
27564
- "credential",
27565
- "credentials",
27566
- "auth",
27567
- "authentication",
27568
- "authorization",
27569
- "authority",
27570
- "cert",
27571
- "certificate",
27572
- "certificates"
27573
- ]);
27574
- var SENSITIVE_KEY_PREFIXES = new Set([
27575
- "api",
27576
- "access",
27577
- "client",
27578
- "private",
27579
- "public",
27580
- "signing",
27581
- "encryption",
27582
- "session",
27583
- "master",
27584
- "shared",
27585
- "root",
27586
- "ssh",
27587
- "rsa",
27588
- "aes",
27589
- "hmac",
27590
- "oauth"
27591
- ]);
27592
- var UUID_PATTERN = /\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi;
27593
- var EMAIL_PATTERN = /\b[^\s@]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/g;
27594
- var JWT_PATTERN = /\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g;
27595
- var LONG_TOKEN_PATTERN = /\b[A-Za-z0-9_-]{40,}\b/g;
27596
- var USER_HOME_PATTERN = /([/\\])(Users|home)([/\\])([^/\\]+)/gi;
27597
- var URL_PATTERN = /\bhttps?:\/\/[^\s,;]+/gi;
27598
- var URL_TRAILING_PUNCT = /[.,;:!?)\]}>'"]+$/;
27599
- function shortHash(input) {
27600
- let hash = 2166136261;
27601
- for (let i = 0;i < input.length; i++) {
27602
- hash ^= input.charCodeAt(i);
27603
- hash = Math.imul(hash, 16777619);
27604
- }
27605
- return (hash >>> 0).toString(16).padStart(8, "0");
27606
- }
27607
- function redactUrl(raw) {
27608
- try {
27609
- const url = new URL(raw);
27610
- return `${url.protocol}//${url.host}`;
27611
- } catch {
27612
- return `url#${shortHash(raw)}`;
27613
- }
27614
- }
27615
- function redactValueDetectors(value) {
27616
- let out = value;
27617
- out = out.replace(JWT_PATTERN, () => REDACTED);
27618
- out = out.replace(URL_PATTERN, (match) => {
27619
- const trailing = match.match(URL_TRAILING_PUNCT)?.[0] ?? "";
27620
- const core = trailing ? match.slice(0, -trailing.length) : match;
27621
- return `${redactUrl(core)}${trailing}`;
27622
- });
27623
- out = out.replace(USER_HOME_PATTERN, (_match, sep1, folder, sep2) => `${sep1}${folder}${sep2}<user>`);
27624
- out = out.replace(EMAIL_PATTERN, (match) => `email#${shortHash(match)}`);
27625
- out = out.replace(UUID_PATTERN, (match) => `uuid#${shortHash(match)}`);
27626
- out = out.replace(LONG_TOKEN_PATTERN, () => REDACTED);
27627
- if (out.length > MAX_VALUE_LENGTH) {
27628
- out = `${out.slice(0, MAX_VALUE_LENGTH)}…`;
27629
- }
27630
- return out;
27631
- }
27632
- function nameTokens(name) {
27633
- return name.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").split(/[\s_-]+/).map((t) => t.toLowerCase()).filter(Boolean);
27634
- }
27635
- function isSensitiveName(name) {
27636
- const tokens = nameTokens(name);
27637
- for (let i = 0;i < tokens.length; i++) {
27638
- const token = tokens[i];
27639
- if (SENSITIVE_NAME_TOKENS.has(token)) {
27640
- return true;
27641
- }
27642
- if (token === "key" || token === "keys") {
27643
- const prev = tokens[i - 1];
27644
- if (prev && SENSITIVE_KEY_PREFIXES.has(prev)) {
27645
- return true;
27646
- }
27647
- }
27648
- }
27649
- return false;
27650
- }
27651
- function redactProperty(name, value) {
27652
- if (value === undefined || value === null) {
27653
- return;
27654
- }
27655
- if (isSensitiveName(name)) {
27656
- return REDACTED;
27657
- }
27658
- if (typeof value === "boolean" || typeof value === "number") {
27659
- return value;
27660
- }
27661
- if (typeof value !== "string") {
27662
- return "[OBJECT]";
27663
- }
27664
- return redactValueDetectors(value);
27665
- }
27666
- function redactProperties(properties) {
27667
- const out = {};
27668
- for (const [name, value] of Object.entries(properties)) {
27669
- const redacted = redactProperty(name, value);
27670
- if (redacted !== undefined) {
27671
- out[name] = redacted;
27672
- }
27673
- }
27674
- return out;
27675
- }
27676
-
27677
28159
  // ../common/src/trackedAction.ts
27678
28160
  var pollSignalSlot = singleton("PollSignal");
27679
28161
  var cliErrorCodeValues = new Set(CLI_ERROR_CODES);
27680
28162
  var retryHintValues = new Set(RETRY_HINTS);
28163
+ var TELEMETRY_COMMAND_ARG_PREFIX = "uip.cmd.arg.";
27681
28164
  var processContext = {
27682
28165
  exit: (code) => {
27683
28166
  process.exitCode = code;
@@ -27688,22 +28171,18 @@ var processContext = {
27688
28171
  };
27689
28172
  function extractCommandParams(cmd) {
27690
28173
  const params = {};
28174
+ const add2 = (name, value) => {
28175
+ if (name && value !== undefined) {
28176
+ params[`${TELEMETRY_COMMAND_ARG_PREFIX}${name}`] = value;
28177
+ }
28178
+ };
27691
28179
  const registered = cmd.registeredArguments ?? [];
27692
28180
  const processed = cmd.processedArgs ?? [];
27693
28181
  for (let i = 0;i < registered.length; i++) {
27694
- const value = processed[i];
27695
- if (value === undefined) {
27696
- continue;
27697
- }
27698
- const name = registered[i].name();
27699
- if (name) {
27700
- params[name] = value;
27701
- }
28182
+ add2(registered[i].name(), processed[i]);
27702
28183
  }
27703
28184
  for (const [key, value] of Object.entries(cmd.opts())) {
27704
- if (value !== undefined) {
27705
- params[key] = value;
27706
- }
28185
+ add2(key, value);
27707
28186
  }
27708
28187
  return params;
27709
28188
  }
@@ -27746,11 +28225,12 @@ Command.prototype.trackedAction = function(context, fn, properties) {
27746
28225
  return this.action(async (...args) => {
27747
28226
  const telemetryName = deriveCommandPath(command);
27748
28227
  const props = typeof properties === "function" ? properties(...args) : properties;
28228
+ const requestContext = telemetry.createRequestContext();
27749
28229
  const startTime = performance.now();
27750
28230
  let errorMessage;
27751
28231
  let fallbackExitCode = EXIT_CODES.Success;
27752
28232
  clearRecordedCommandFailureTelemetry();
27753
- const [error] = await catchError(fn(...args));
28233
+ const [error] = await catchError(telemetry.runWithContext(requestContext, () => fn(...args)));
27754
28234
  if (error) {
27755
28235
  errorMessage = error instanceof Error ? error.message : String(error);
27756
28236
  logger.debug(`[trackedAction] ${telemetryName} failed: ${errorMessage}`);
@@ -27786,16 +28266,21 @@ Command.prototype.trackedAction = function(context, fn, properties) {
27786
28266
  recordedFailure,
27787
28267
  pollSignal: context.pollSignal
27788
28268
  });
27789
- telemetry.trackEvent(telemetryName, redactProperties({
27790
- ...extractCommandParams(command),
28269
+ const commandParams = extractCommandParams(command);
28270
+ if (props) {
28271
+ for (const key of Object.keys(props)) {
28272
+ delete commandParams[`${TELEMETRY_COMMAND_ARG_PREFIX}${key}`];
28273
+ }
28274
+ }
28275
+ const baseProperties = redactProperties({
28276
+ ...commandParams,
27791
28277
  ...props,
27792
28278
  ...buildCommandTelemetryAttribution(telemetryName, process.env.UIPATH_SKILL),
27793
28279
  command: "true",
27794
- duration: String(durationMs),
27795
- success: String(success),
27796
28280
  ...terminalTelemetry,
27797
28281
  ...errorMessage ? { errorMessage } : {}
27798
- }));
28282
+ });
28283
+ telemetry.trackRequestResult(telemetryName, durationMs, success, baseProperties, requestContext);
27799
28284
  });
27800
28285
  };
27801
28286
  // ../common/src/console-guard.ts
@@ -27806,6 +28291,7 @@ var UIPATH_HOME_DIR = ".uipath";
27806
28291
  var DEFAULT_AUTH_TIMEOUT_MS = 5 * 60 * 1000;
27807
28292
  // ../common/src/interactivity-context.ts
27808
28293
  var modeSlot = singleton("InteractivityMode");
28294
+ var interactiveFlagSlot = singleton("InteractiveFlag");
27809
28295
  // ../common/src/polling/types.ts
27810
28296
  var PollOutcome = {
27811
28297
  Completed: "completed",
@@ -28659,12 +29145,12 @@ var loadEnvFileAsync = async ({ envPath }) => {
28659
29145
  var saveEnvFileAsync = async ({
28660
29146
  envPath,
28661
29147
  data,
28662
- merge = true
29148
+ merge: merge2 = true
28663
29149
  }) => {
28664
29150
  const fs7 = getFileSystem();
28665
29151
  const absolutePath = fs7.path.isAbsolute(envPath) ? envPath : fs7.path.join(fs7.env.homedir(), envPath);
28666
29152
  let existingData = {};
28667
- if (merge && await fs7.exists(absolutePath)) {
29153
+ if (merge2 && await fs7.exists(absolutePath)) {
28668
29154
  try {
28669
29155
  existingData = await loadEnvFileAsync({ envPath: absolutePath });
28670
29156
  } catch {}
@@ -29185,6 +29671,10 @@ var getAuthEnv = async (options = {}) => {
29185
29671
  }
29186
29672
  return { authEnv, loginStatus: status };
29187
29673
  };
29674
+
29675
+ // ../auth/src/index.ts
29676
+ init_constants();
29677
+
29188
29678
  // ../auth/src/interactive.ts
29189
29679
  init_src();
29190
29680
 
@@ -29854,7 +30344,7 @@ Searching for Python installations: ${allowedVersions}`);
29854
30344
  var package_default = {
29855
30345
  name: "@uipath/codedagent-tool",
29856
30346
  license: "MIT",
29857
- version: "1.197.0",
30347
+ version: "1.198.0-preview.101",
29858
30348
  description: "Build, run, deploy, and manage AI Agents.",
29859
30349
  keywords: [
29860
30350
  "cli-tool",
@@ -30682,4 +31172,4 @@ export {
30682
31172
  metadata
30683
31173
  };
30684
31174
 
30685
- //# debugId=0DEF474C0C73C48B64756E2164756E21
31175
+ //# debugId=F4E9922D3CBAA7CE64756E2164756E21