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