@uipath/ixp-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/index.js +2 -2
  2. package/dist/tool.js +1456 -922
  3. package/package.json +2 -2
package/dist/tool.js CHANGED
@@ -16177,7 +16177,7 @@ var require_TimeoutError = __commonJS((exports) => {
16177
16177
  });
16178
16178
 
16179
16179
  // ../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/operators/map.js
16180
- var require_map2 = __commonJS((exports) => {
16180
+ var require_map = __commonJS((exports) => {
16181
16181
  var __extends = exports && exports.__extends || function() {
16182
16182
  var extendStatics = function(d, b) {
16183
16183
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
@@ -16199,7 +16199,7 @@ var require_map2 = __commonJS((exports) => {
16199
16199
  }();
16200
16200
  Object.defineProperty(exports, "__esModule", { value: true });
16201
16201
  var Subscriber_1 = require_Subscriber();
16202
- function map(project, thisArg) {
16202
+ function map2(project, thisArg) {
16203
16203
  return function mapOperation(source) {
16204
16204
  if (typeof project !== "function") {
16205
16205
  throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");
@@ -16207,7 +16207,7 @@ var require_map2 = __commonJS((exports) => {
16207
16207
  return source.lift(new MapOperator(project, thisArg));
16208
16208
  };
16209
16209
  }
16210
- exports.map = map;
16210
+ exports.map = map2;
16211
16211
  var MapOperator = function() {
16212
16212
  function MapOperator2(project, thisArg) {
16213
16213
  this.project = project;
@@ -16247,7 +16247,7 @@ var require_bindCallback = __commonJS((exports) => {
16247
16247
  Object.defineProperty(exports, "__esModule", { value: true });
16248
16248
  var Observable_1 = require_Observable();
16249
16249
  var AsyncSubject_1 = require_AsyncSubject();
16250
- var map_1 = require_map2();
16250
+ var map_1 = require_map();
16251
16251
  var canReportError_1 = require_canReportError();
16252
16252
  var isArray_1 = require_isArray();
16253
16253
  var isScheduler_1 = require_isScheduler();
@@ -16351,7 +16351,7 @@ var require_bindNodeCallback = __commonJS((exports) => {
16351
16351
  Object.defineProperty(exports, "__esModule", { value: true });
16352
16352
  var Observable_1 = require_Observable();
16353
16353
  var AsyncSubject_1 = require_AsyncSubject();
16354
- var map_1 = require_map2();
16354
+ var map_1 = require_map();
16355
16355
  var canReportError_1 = require_canReportError();
16356
16356
  var isScheduler_1 = require_isScheduler();
16357
16357
  var isArray_1 = require_isArray();
@@ -17141,7 +17141,7 @@ var require_mergeMap = __commonJS((exports) => {
17141
17141
  };
17142
17142
  }();
17143
17143
  Object.defineProperty(exports, "__esModule", { value: true });
17144
- var map_1 = require_map2();
17144
+ var map_1 = require_map();
17145
17145
  var from_1 = require_from();
17146
17146
  var innerSubscribe_1 = require_innerSubscribe();
17147
17147
  function mergeMap(project, resultSelector, concurrent) {
@@ -17312,7 +17312,7 @@ var require_forkJoin = __commonJS((exports) => {
17312
17312
  Object.defineProperty(exports, "__esModule", { value: true });
17313
17313
  var Observable_1 = require_Observable();
17314
17314
  var isArray_1 = require_isArray();
17315
- var map_1 = require_map2();
17315
+ var map_1 = require_map();
17316
17316
  var isObject_1 = require_isObject();
17317
17317
  var from_1 = require_from();
17318
17318
  function forkJoin() {
@@ -17392,7 +17392,7 @@ var require_fromEvent = __commonJS((exports) => {
17392
17392
  var Observable_1 = require_Observable();
17393
17393
  var isArray_1 = require_isArray();
17394
17394
  var isFunction_1 = require_isFunction();
17395
- var map_1 = require_map2();
17395
+ var map_1 = require_map();
17396
17396
  var toString = function() {
17397
17397
  return Object.prototype.toString;
17398
17398
  }();
@@ -17464,7 +17464,7 @@ var require_fromEventPattern = __commonJS((exports) => {
17464
17464
  var Observable_1 = require_Observable();
17465
17465
  var isArray_1 = require_isArray();
17466
17466
  var isFunction_1 = require_isFunction();
17467
- var map_1 = require_map2();
17467
+ var map_1 = require_map();
17468
17468
  function fromEventPattern(addHandler, removeHandler, resultSelector) {
17469
17469
  if (resultSelector) {
17470
17470
  return fromEventPattern(addHandler, removeHandler).pipe(map_1.map(function(args) {
@@ -17679,13 +17679,13 @@ var require_interval = __commonJS((exports) => {
17679
17679
  });
17680
17680
 
17681
17681
  // ../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/observable/merge.js
17682
- var require_merge2 = __commonJS((exports) => {
17682
+ var require_merge = __commonJS((exports) => {
17683
17683
  Object.defineProperty(exports, "__esModule", { value: true });
17684
17684
  var Observable_1 = require_Observable();
17685
17685
  var isScheduler_1 = require_isScheduler();
17686
17686
  var mergeAll_1 = require_mergeAll();
17687
17687
  var fromArray_1 = require_fromArray();
17688
- function merge() {
17688
+ function merge2() {
17689
17689
  var observables = [];
17690
17690
  for (var _i = 0;_i < arguments.length; _i++) {
17691
17691
  observables[_i] = arguments[_i];
@@ -17706,7 +17706,7 @@ var require_merge2 = __commonJS((exports) => {
17706
17706
  }
17707
17707
  return mergeAll_1.mergeAll(concurrent)(fromArray_1.fromArray(observables, scheduler));
17708
17708
  }
17709
- exports.merge = merge;
17709
+ exports.merge = merge2;
17710
17710
  });
17711
17711
 
17712
17712
  // ../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/observable/never.js
@@ -17757,11 +17757,11 @@ var require_onErrorResumeNext = __commonJS((exports) => {
17757
17757
  });
17758
17758
 
17759
17759
  // ../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/observable/pairs.js
17760
- var require_pairs2 = __commonJS((exports) => {
17760
+ var require_pairs = __commonJS((exports) => {
17761
17761
  Object.defineProperty(exports, "__esModule", { value: true });
17762
17762
  var Observable_1 = require_Observable();
17763
17763
  var Subscription_1 = require_Subscription();
17764
- function pairs(obj, scheduler) {
17764
+ function pairs2(obj, scheduler) {
17765
17765
  if (!scheduler) {
17766
17766
  return new Observable_1.Observable(function(subscriber) {
17767
17767
  var keys = Object.keys(obj);
@@ -17782,7 +17782,7 @@ var require_pairs2 = __commonJS((exports) => {
17782
17782
  });
17783
17783
  }
17784
17784
  }
17785
- exports.pairs = pairs;
17785
+ exports.pairs = pairs2;
17786
17786
  function dispatch(state) {
17787
17787
  var { keys, index, subscriber, subscription, obj } = state;
17788
17788
  if (!subscriber.closed) {
@@ -18441,7 +18441,7 @@ var require_rxjs = __commonJS((exports) => {
18441
18441
  exports.iif = iif_1.iif;
18442
18442
  var interval_1 = require_interval();
18443
18443
  exports.interval = interval_1.interval;
18444
- var merge_1 = require_merge2();
18444
+ var merge_1 = require_merge();
18445
18445
  exports.merge = merge_1.merge;
18446
18446
  var never_1 = require_never();
18447
18447
  exports.never = never_1.never;
@@ -18449,7 +18449,7 @@ var require_rxjs = __commonJS((exports) => {
18449
18449
  exports.of = of_1.of;
18450
18450
  var onErrorResumeNext_1 = require_onErrorResumeNext();
18451
18451
  exports.onErrorResumeNext = onErrorResumeNext_1.onErrorResumeNext;
18452
- var pairs_1 = require_pairs2();
18452
+ var pairs_1 = require_pairs();
18453
18453
  exports.pairs = pairs_1.pairs;
18454
18454
  var partition_1 = require_partition();
18455
18455
  exports.partition = partition_1.partition;
@@ -21230,7 +21230,7 @@ var init_server = __esm(() => {
21230
21230
  var package_default = {
21231
21231
  name: "@uipath/ixp-tool",
21232
21232
  license: "MIT",
21233
- version: "1.197.0",
21233
+ version: "1.198.0-preview.101",
21234
21234
  description: "Manage UiPath IXP projects, prompts, predictions, and model publishing.",
21235
21235
  private: false,
21236
21236
  repository: {
@@ -21333,8 +21333,15 @@ var TLS_ERROR_CODES = new Set([
21333
21333
  var TLS_INSTRUCTIONS = "The server's TLS certificate could not be verified. Most often a " + "corporate proxy/firewall re-signs HTTPS with a root CA that Node does " + "not trust — set NODE_EXTRA_CA_CERTS to that CA's PEM file (and HTTPS_PROXY " + "if you connect through a proxy). If the certificate is instead expired or " + "its hostname does not match, fix the endpoint URL or the system clock. " + "Then retry.";
21334
21334
  var NETWORK_INSTRUCTIONS = "Could not reach the UiPath service. Check your network connection and " + "VPN, confirm any HTTP_PROXY/HTTPS_PROXY/NO_PROXY settings are correct, " + "then retry.";
21335
21335
  function describeConnectivityError(error) {
21336
- let current = error;
21337
- for (let depth = 0;depth < 5 && current !== null && typeof current === "object"; depth++) {
21336
+ const queue = [error];
21337
+ const seen = new Set;
21338
+ for (let steps = 0;queue.length > 0 && steps < 32; steps++) {
21339
+ const current = queue.shift();
21340
+ if (current === null || typeof current !== "object")
21341
+ continue;
21342
+ if (seen.has(current))
21343
+ continue;
21344
+ seen.add(current);
21338
21345
  const cur = current;
21339
21346
  const code = typeof cur.code === "string" ? cur.code : undefined;
21340
21347
  const message = typeof cur.message === "string" ? cur.message : undefined;
@@ -21354,7 +21361,10 @@ function describeConnectivityError(error) {
21354
21361
  instructions: NETWORK_INSTRUCTIONS
21355
21362
  };
21356
21363
  }
21357
- current = cur.cause;
21364
+ if (cur.cause !== undefined)
21365
+ queue.push(cur.cause);
21366
+ if (Array.isArray(cur.errors))
21367
+ queue.push(...cur.errors);
21358
21368
  }
21359
21369
  return;
21360
21370
  }
@@ -23639,31 +23649,17 @@ function search(data, expression, options) {
23639
23649
  }
23640
23650
 
23641
23651
  // ../../node_modules/js-yaml/dist/js-yaml.mjs
23642
- /*! js-yaml 4.2.0 https://github.com/nodeca/js-yaml @license MIT */
23643
- var __create2 = Object.create;
23644
- var __defProp2 = Object.defineProperty;
23645
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
23646
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
23647
- var __getProtoOf2 = Object.getPrototypeOf;
23648
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
23649
- var __commonJSMin = (cb, mod2) => () => (mod2 || (cb((mod2 = { exports: {} }).exports, mod2), cb = null), mod2.exports);
23650
- var __copyProps = (to, from, except, desc) => {
23651
- if (from && typeof from === "object" || typeof from === "function")
23652
- for (var keys = __getOwnPropNames2(from), i = 0, n = keys.length, key;i < n; i++) {
23653
- key = keys[i];
23654
- if (!__hasOwnProp2.call(to, key) && key !== except)
23655
- __defProp2(to, key, {
23656
- get: ((k) => from[k]).bind(null, key),
23657
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
23658
- });
23659
- }
23660
- return to;
23661
- };
23662
- var __toESM2 = (mod2, isNodeMode, target) => (target = mod2 != null ? __create2(__getProtoOf2(mod2)) : {}, __copyProps(isNodeMode || !mod2 || !mod2.__esModule ? __defProp2(target, "default", {
23663
- value: mod2,
23664
- enumerable: true
23665
- }) : target, mod2));
23666
- var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
23652
+ function getDefaultExportFromCjs(x) {
23653
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
23654
+ }
23655
+ var jsYaml = {};
23656
+ var loader = {};
23657
+ var common = {};
23658
+ var hasRequiredCommon;
23659
+ function requireCommon() {
23660
+ if (hasRequiredCommon)
23661
+ return common;
23662
+ hasRequiredCommon = 1;
23667
23663
  function isNothing(subject) {
23668
23664
  return typeof subject === "undefined" || subject === null;
23669
23665
  }
@@ -23689,55 +23685,71 @@ var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
23689
23685
  }
23690
23686
  function repeat(string, count) {
23691
23687
  let result = "";
23692
- for (let cycle = 0;cycle < count; cycle += 1)
23688
+ for (let cycle = 0;cycle < count; cycle += 1) {
23693
23689
  result += string;
23690
+ }
23694
23691
  return result;
23695
23692
  }
23696
23693
  function isNegativeZero(number) {
23697
23694
  return number === 0 && Number.NEGATIVE_INFINITY === 1 / number;
23698
23695
  }
23699
- module.exports.isNothing = isNothing;
23700
- module.exports.isObject = isObject2;
23701
- module.exports.toArray = toArray;
23702
- module.exports.repeat = repeat;
23703
- module.exports.isNegativeZero = isNegativeZero;
23704
- module.exports.extend = extend;
23705
- });
23706
- var require_exception = /* @__PURE__ */ __commonJSMin((exports, module) => {
23707
- function formatError(exception, compact) {
23696
+ common.isNothing = isNothing;
23697
+ common.isObject = isObject2;
23698
+ common.toArray = toArray;
23699
+ common.repeat = repeat;
23700
+ common.isNegativeZero = isNegativeZero;
23701
+ common.extend = extend;
23702
+ return common;
23703
+ }
23704
+ var exception;
23705
+ var hasRequiredException;
23706
+ function requireException() {
23707
+ if (hasRequiredException)
23708
+ return exception;
23709
+ hasRequiredException = 1;
23710
+ function formatError(exception2, compact) {
23708
23711
  let where = "";
23709
- const message = exception.reason || "(unknown reason)";
23710
- if (!exception.mark)
23712
+ const message = exception2.reason || "(unknown reason)";
23713
+ if (!exception2.mark)
23711
23714
  return message;
23712
- if (exception.mark.name)
23713
- where += 'in "' + exception.mark.name + '" ';
23714
- where += "(" + (exception.mark.line + 1) + ":" + (exception.mark.column + 1) + ")";
23715
- if (!compact && exception.mark.snippet)
23715
+ if (exception2.mark.name) {
23716
+ where += 'in "' + exception2.mark.name + '" ';
23717
+ }
23718
+ where += "(" + (exception2.mark.line + 1) + ":" + (exception2.mark.column + 1) + ")";
23719
+ if (!compact && exception2.mark.snippet) {
23716
23720
  where += `
23717
23721
 
23718
- ` + exception.mark.snippet;
23722
+ ` + exception2.mark.snippet;
23723
+ }
23719
23724
  return message + " " + where;
23720
23725
  }
23721
- function YAMLException(reason, mark) {
23726
+ function YAMLException2(reason, mark) {
23722
23727
  Error.call(this);
23723
23728
  this.name = "YAMLException";
23724
23729
  this.reason = reason;
23725
23730
  this.mark = mark;
23726
23731
  this.message = formatError(this, false);
23727
- if (Error.captureStackTrace)
23732
+ if (Error.captureStackTrace) {
23728
23733
  Error.captureStackTrace(this, this.constructor);
23729
- else
23730
- this.stack = (/* @__PURE__ */ new Error()).stack || "";
23734
+ } else {
23735
+ this.stack = new Error().stack || "";
23736
+ }
23731
23737
  }
23732
- YAMLException.prototype = Object.create(Error.prototype);
23733
- YAMLException.prototype.constructor = YAMLException;
23734
- YAMLException.prototype.toString = function toString(compact) {
23738
+ YAMLException2.prototype = Object.create(Error.prototype);
23739
+ YAMLException2.prototype.constructor = YAMLException2;
23740
+ YAMLException2.prototype.toString = function toString(compact) {
23735
23741
  return this.name + ": " + formatError(this, compact);
23736
23742
  };
23737
- module.exports = YAMLException;
23738
- });
23739
- var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
23740
- var common = require_common();
23743
+ exception = YAMLException2;
23744
+ return exception;
23745
+ }
23746
+ var snippet;
23747
+ var hasRequiredSnippet;
23748
+ function requireSnippet() {
23749
+ if (hasRequiredSnippet)
23750
+ return snippet;
23751
+ hasRequiredSnippet = 1;
23752
+ const common2 = requireCommon();
23741
23753
  function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
23742
23754
  let head = "";
23743
23755
  let tail = "";
@@ -23756,7 +23768,7 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
23756
23768
  };
23757
23769
  }
23758
23770
  function padStart(string, max) {
23759
- return common.repeat(" ", max - string.length) + string;
23771
+ return common2.repeat(" ", max - string.length) + string;
23760
23772
  }
23761
23773
  function makeSnippet(mark, options) {
23762
23774
  options = Object.create(options || null);
@@ -23778,8 +23790,9 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
23778
23790
  while (match = re.exec(mark.buffer)) {
23779
23791
  lineEnds.push(match.index);
23780
23792
  lineStarts.push(match.index + match[0].length);
23781
- if (mark.position <= match.index && foundLineNo < 0)
23793
+ if (mark.position <= match.index && foundLineNo < 0) {
23782
23794
  foundLineNo = lineStarts.length - 2;
23795
+ }
23783
23796
  }
23784
23797
  if (foundLineNo < 0)
23785
23798
  foundLineNo = lineStarts.length - 1;
@@ -23790,28 +23803,34 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
23790
23803
  if (foundLineNo - i < 0)
23791
23804
  break;
23792
23805
  const line2 = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength);
23793
- result = common.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + `
23806
+ result = common2.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + `
23794
23807
  ` + result;
23795
23808
  }
23796
23809
  const line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
23797
- result += common.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + `
23810
+ result += common2.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + `
23798
23811
  `;
23799
- result += common.repeat("-", options.indent + lineNoLength + 3 + line.pos) + `^
23812
+ result += common2.repeat("-", options.indent + lineNoLength + 3 + line.pos) + `^
23800
23813
  `;
23801
23814
  for (let i = 1;i <= options.linesAfter; i++) {
23802
23815
  if (foundLineNo + i >= lineEnds.length)
23803
23816
  break;
23804
23817
  const line2 = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength);
23805
- result += common.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + `
23818
+ result += common2.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + `
23806
23819
  `;
23807
23820
  }
23808
23821
  return result.replace(/\n$/, "");
23809
23822
  }
23810
- module.exports = makeSnippet;
23811
- });
23812
- var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
23813
- var YAMLException = require_exception();
23814
- var TYPE_CONSTRUCTOR_OPTIONS = [
23823
+ snippet = makeSnippet;
23824
+ return snippet;
23825
+ }
23826
+ var type;
23827
+ var hasRequiredType;
23828
+ function requireType() {
23829
+ if (hasRequiredType)
23830
+ return type;
23831
+ hasRequiredType = 1;
23832
+ const YAMLException2 = requireException();
23833
+ const TYPE_CONSTRUCTOR_OPTIONS = [
23815
23834
  "kind",
23816
23835
  "multi",
23817
23836
  "resolve",
@@ -23823,26 +23842,28 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
23823
23842
  "defaultStyle",
23824
23843
  "styleAliases"
23825
23844
  ];
23826
- var YAML_NODE_KINDS = [
23845
+ const YAML_NODE_KINDS = [
23827
23846
  "scalar",
23828
23847
  "sequence",
23829
23848
  "mapping"
23830
23849
  ];
23831
- function compileStyleAliases(map) {
23850
+ function compileStyleAliases(map2) {
23832
23851
  const result = {};
23833
- if (map !== null)
23834
- Object.keys(map).forEach(function(style) {
23835
- map[style].forEach(function(alias) {
23852
+ if (map2 !== null) {
23853
+ Object.keys(map2).forEach(function(style) {
23854
+ map2[style].forEach(function(alias) {
23836
23855
  result[String(alias)] = style;
23837
23856
  });
23838
23857
  });
23858
+ }
23839
23859
  return result;
23840
23860
  }
23841
- function Type(tag, options) {
23861
+ function Type2(tag, options) {
23842
23862
  options = options || {};
23843
23863
  Object.keys(options).forEach(function(name) {
23844
- if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1)
23845
- throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
23864
+ if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
23865
+ throw new YAMLException2('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
23866
+ }
23846
23867
  });
23847
23868
  this.options = options;
23848
23869
  this.tag = tag;
@@ -23860,21 +23881,29 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
23860
23881
  this.defaultStyle = options["defaultStyle"] || null;
23861
23882
  this.multi = options["multi"] || false;
23862
23883
  this.styleAliases = compileStyleAliases(options["styleAliases"] || null);
23863
- if (YAML_NODE_KINDS.indexOf(this.kind) === -1)
23864
- throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
23884
+ if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
23885
+ throw new YAMLException2('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
23886
+ }
23865
23887
  }
23866
- module.exports = Type;
23867
- });
23868
- var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
23869
- var YAMLException = require_exception();
23870
- var Type = require_type();
23871
- function compileList(schema, name) {
23888
+ type = Type2;
23889
+ return type;
23890
+ }
23891
+ var schema;
23892
+ var hasRequiredSchema;
23893
+ function requireSchema() {
23894
+ if (hasRequiredSchema)
23895
+ return schema;
23896
+ hasRequiredSchema = 1;
23897
+ const YAMLException2 = requireException();
23898
+ const Type2 = requireType();
23899
+ function compileList(schema2, name) {
23872
23900
  const result = [];
23873
- schema[name].forEach(function(currentType) {
23901
+ schema2[name].forEach(function(currentType) {
23874
23902
  let newIndex = result.length;
23875
23903
  result.forEach(function(previousType, previousIndex) {
23876
- if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi)
23904
+ if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) {
23877
23905
  newIndex = previousIndex;
23906
+ }
23878
23907
  });
23879
23908
  result[newIndex] = currentType;
23880
23909
  });
@@ -23893,47 +23922,54 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
23893
23922
  fallback: []
23894
23923
  }
23895
23924
  };
23896
- function collectType(type) {
23897
- if (type.multi) {
23898
- result.multi[type.kind].push(type);
23899
- result.multi["fallback"].push(type);
23900
- } else
23901
- result[type.kind][type.tag] = result["fallback"][type.tag] = type;
23925
+ function collectType(type2) {
23926
+ if (type2.multi) {
23927
+ result.multi[type2.kind].push(type2);
23928
+ result.multi["fallback"].push(type2);
23929
+ } else {
23930
+ result[type2.kind][type2.tag] = result["fallback"][type2.tag] = type2;
23931
+ }
23902
23932
  }
23903
- for (let index = 0, length = arguments.length;index < length; index += 1)
23933
+ for (let index = 0, length = arguments.length;index < length; index += 1) {
23904
23934
  arguments[index].forEach(collectType);
23935
+ }
23905
23936
  return result;
23906
23937
  }
23907
- function Schema(definition) {
23938
+ function Schema2(definition) {
23908
23939
  return this.extend(definition);
23909
23940
  }
23910
- Schema.prototype.extend = function extend(definition) {
23941
+ Schema2.prototype.extend = function extend(definition) {
23911
23942
  let implicit = [];
23912
23943
  let explicit = [];
23913
- if (definition instanceof Type)
23944
+ if (definition instanceof Type2) {
23914
23945
  explicit.push(definition);
23915
- else if (Array.isArray(definition))
23946
+ } else if (Array.isArray(definition)) {
23916
23947
  explicit = explicit.concat(definition);
23917
- else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
23948
+ } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
23918
23949
  if (definition.implicit)
23919
23950
  implicit = implicit.concat(definition.implicit);
23920
23951
  if (definition.explicit)
23921
23952
  explicit = explicit.concat(definition.explicit);
23922
- } else
23923
- throw new YAMLException("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
23924
- implicit.forEach(function(type) {
23925
- if (!(type instanceof Type))
23926
- throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
23927
- if (type.loadKind && type.loadKind !== "scalar")
23928
- throw new YAMLException("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
23929
- if (type.multi)
23930
- throw new YAMLException("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
23953
+ } else {
23954
+ throw new YAMLException2("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
23955
+ }
23956
+ implicit.forEach(function(type2) {
23957
+ if (!(type2 instanceof Type2)) {
23958
+ throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
23959
+ }
23960
+ if (type2.loadKind && type2.loadKind !== "scalar") {
23961
+ throw new YAMLException2("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
23962
+ }
23963
+ if (type2.multi) {
23964
+ throw new YAMLException2("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
23965
+ }
23931
23966
  });
23932
- explicit.forEach(function(type) {
23933
- if (!(type instanceof Type))
23934
- throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
23967
+ explicit.forEach(function(type2) {
23968
+ if (!(type2 instanceof Type2)) {
23969
+ throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
23970
+ }
23935
23971
  });
23936
- const result = Object.create(Schema.prototype);
23972
+ const result = Object.create(Schema2.prototype);
23937
23973
  result.implicit = (this.implicit || []).concat(implicit);
23938
23974
  result.explicit = (this.explicit || []).concat(explicit);
23939
23975
  result.compiledImplicit = compileList(result, "implicit");
@@ -23941,41 +23977,77 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
23941
23977
  result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);
23942
23978
  return result;
23943
23979
  };
23944
- module.exports = Schema;
23945
- });
23946
- var require_str = /* @__PURE__ */ __commonJSMin((exports, module) => {
23947
- module.exports = new (require_type())("tag:yaml.org,2002:str", {
23980
+ schema = Schema2;
23981
+ return schema;
23982
+ }
23983
+ var str;
23984
+ var hasRequiredStr;
23985
+ function requireStr() {
23986
+ if (hasRequiredStr)
23987
+ return str;
23988
+ hasRequiredStr = 1;
23989
+ const Type2 = requireType();
23990
+ str = new Type2("tag:yaml.org,2002:str", {
23948
23991
  kind: "scalar",
23949
23992
  construct: function(data) {
23950
23993
  return data !== null ? data : "";
23951
23994
  }
23952
23995
  });
23953
- });
23954
- var require_seq = /* @__PURE__ */ __commonJSMin((exports, module) => {
23955
- module.exports = new (require_type())("tag:yaml.org,2002:seq", {
23996
+ return str;
23997
+ }
23998
+ var seq;
23999
+ var hasRequiredSeq;
24000
+ function requireSeq() {
24001
+ if (hasRequiredSeq)
24002
+ return seq;
24003
+ hasRequiredSeq = 1;
24004
+ const Type2 = requireType();
24005
+ seq = new Type2("tag:yaml.org,2002:seq", {
23956
24006
  kind: "sequence",
23957
24007
  construct: function(data) {
23958
24008
  return data !== null ? data : [];
23959
24009
  }
23960
24010
  });
23961
- });
23962
- var require_map = /* @__PURE__ */ __commonJSMin((exports, module) => {
23963
- module.exports = new (require_type())("tag:yaml.org,2002:map", {
24011
+ return seq;
24012
+ }
24013
+ var map;
24014
+ var hasRequiredMap;
24015
+ function requireMap() {
24016
+ if (hasRequiredMap)
24017
+ return map;
24018
+ hasRequiredMap = 1;
24019
+ const Type2 = requireType();
24020
+ map = new Type2("tag:yaml.org,2002:map", {
23964
24021
  kind: "mapping",
23965
24022
  construct: function(data) {
23966
24023
  return data !== null ? data : {};
23967
24024
  }
23968
24025
  });
23969
- });
23970
- var require_failsafe = /* @__PURE__ */ __commonJSMin((exports, module) => {
23971
- module.exports = new (require_schema())({ explicit: [
23972
- require_str(),
23973
- require_seq(),
23974
- require_map()
23975
- ] });
23976
- });
23977
- var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
23978
- var Type = require_type();
24026
+ return map;
24027
+ }
24028
+ var failsafe;
24029
+ var hasRequiredFailsafe;
24030
+ function requireFailsafe() {
24031
+ if (hasRequiredFailsafe)
24032
+ return failsafe;
24033
+ hasRequiredFailsafe = 1;
24034
+ const Schema2 = requireSchema();
24035
+ failsafe = new Schema2({
24036
+ explicit: [
24037
+ requireStr(),
24038
+ requireSeq(),
24039
+ requireMap()
24040
+ ]
24041
+ });
24042
+ return failsafe;
24043
+ }
24044
+ var _null;
24045
+ var hasRequired_null;
24046
+ function require_null() {
24047
+ if (hasRequired_null)
24048
+ return _null;
24049
+ hasRequired_null = 1;
24050
+ const Type2 = requireType();
23979
24051
  function resolveYamlNull(data) {
23980
24052
  if (data === null)
23981
24053
  return true;
@@ -23988,7 +24060,7 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
23988
24060
  function isNull(object) {
23989
24061
  return object === null;
23990
24062
  }
23991
- module.exports = new Type("tag:yaml.org,2002:null", {
24063
+ _null = new Type2("tag:yaml.org,2002:null", {
23992
24064
  kind: "scalar",
23993
24065
  resolve: resolveYamlNull,
23994
24066
  construct: constructYamlNull,
@@ -24012,9 +24084,15 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
24012
24084
  },
24013
24085
  defaultStyle: "lowercase"
24014
24086
  });
24015
- });
24016
- var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
24017
- var Type = require_type();
24087
+ return _null;
24088
+ }
24089
+ var bool;
24090
+ var hasRequiredBool;
24091
+ function requireBool() {
24092
+ if (hasRequiredBool)
24093
+ return bool;
24094
+ hasRequiredBool = 1;
24095
+ const Type2 = requireType();
24018
24096
  function resolveYamlBoolean(data) {
24019
24097
  if (data === null)
24020
24098
  return false;
@@ -24027,7 +24105,7 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
24027
24105
  function isBoolean(object) {
24028
24106
  return Object.prototype.toString.call(object) === "[object Boolean]";
24029
24107
  }
24030
- module.exports = new Type("tag:yaml.org,2002:bool", {
24108
+ bool = new Type2("tag:yaml.org,2002:bool", {
24031
24109
  kind: "scalar",
24032
24110
  resolve: resolveYamlBoolean,
24033
24111
  construct: constructYamlBoolean,
@@ -24045,10 +24123,16 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
24045
24123
  },
24046
24124
  defaultStyle: "lowercase"
24047
24125
  });
24048
- });
24049
- var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
24050
- var common = require_common();
24051
- var Type = require_type();
24126
+ return bool;
24127
+ }
24128
+ var int;
24129
+ var hasRequiredInt;
24130
+ function requireInt() {
24131
+ if (hasRequiredInt)
24132
+ return int;
24133
+ hasRequiredInt = 1;
24134
+ const common2 = requireCommon();
24135
+ const Type2 = requireType();
24052
24136
  function isHexCode(c) {
24053
24137
  return c >= 48 && c <= 57 || c >= 65 && c <= 70 || c >= 97 && c <= 102;
24054
24138
  }
@@ -24067,8 +24151,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
24067
24151
  if (!max)
24068
24152
  return false;
24069
24153
  let ch = data[index];
24070
- if (ch === "-" || ch === "+")
24154
+ if (ch === "-" || ch === "+") {
24071
24155
  ch = data[++index];
24156
+ }
24072
24157
  if (ch === "0") {
24073
24158
  if (index + 1 === max)
24074
24159
  return true;
@@ -24081,7 +24166,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
24081
24166
  return false;
24082
24167
  hasDigits = true;
24083
24168
  }
24084
- return hasDigits && Number.isFinite(parseYamlInteger(data));
24169
+ return hasDigits && isFinite(parseYamlInteger(data));
24085
24170
  }
24086
24171
  if (ch === "x") {
24087
24172
  index++;
@@ -24090,7 +24175,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
24090
24175
  return false;
24091
24176
  hasDigits = true;
24092
24177
  }
24093
- return hasDigits && Number.isFinite(parseYamlInteger(data));
24178
+ return hasDigits && isFinite(parseYamlInteger(data));
24094
24179
  }
24095
24180
  if (ch === "o") {
24096
24181
  index++;
@@ -24099,17 +24184,18 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
24099
24184
  return false;
24100
24185
  hasDigits = true;
24101
24186
  }
24102
- return hasDigits && Number.isFinite(parseYamlInteger(data));
24187
+ return hasDigits && isFinite(parseYamlInteger(data));
24103
24188
  }
24104
24189
  }
24105
24190
  for (;index < max; index++) {
24106
- if (!isDecCode(data.charCodeAt(index)))
24191
+ if (!isDecCode(data.charCodeAt(index))) {
24107
24192
  return false;
24193
+ }
24108
24194
  hasDigits = true;
24109
24195
  }
24110
24196
  if (!hasDigits)
24111
24197
  return false;
24112
- return Number.isFinite(parseYamlInteger(data));
24198
+ return isFinite(parseYamlInteger(data));
24113
24199
  }
24114
24200
  function parseYamlInteger(data) {
24115
24201
  let value = data;
@@ -24137,9 +24223,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
24137
24223
  return parseYamlInteger(data);
24138
24224
  }
24139
24225
  function isInteger(object) {
24140
- return Object.prototype.toString.call(object) === "[object Number]" && object % 1 === 0 && !common.isNegativeZero(object);
24226
+ return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 === 0 && !common2.isNegativeZero(object));
24141
24227
  }
24142
- module.exports = new Type("tag:yaml.org,2002:int", {
24228
+ int = new Type2("tag:yaml.org,2002:int", {
24143
24229
  kind: "scalar",
24144
24230
  resolve: resolveYamlInteger,
24145
24231
  construct: constructYamlInteger,
@@ -24166,35 +24252,45 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
24166
24252
  hexadecimal: [16, "hex"]
24167
24253
  }
24168
24254
  });
24169
- });
24170
- var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
24171
- var common = require_common();
24172
- var Type = require_type();
24173
- 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))$");
24174
- var YAML_FLOAT_SPECIAL_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
24255
+ return int;
24256
+ }
24257
+ var float;
24258
+ var hasRequiredFloat;
24259
+ function requireFloat() {
24260
+ if (hasRequiredFloat)
24261
+ return float;
24262
+ hasRequiredFloat = 1;
24263
+ const common2 = requireCommon();
24264
+ const Type2 = requireType();
24265
+ const YAML_FLOAT_PATTERN = new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
24266
+ const YAML_FLOAT_SPECIAL_PATTERN = new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
24175
24267
  function resolveYamlFloat(data) {
24176
24268
  if (data === null)
24177
24269
  return false;
24178
- if (!YAML_FLOAT_PATTERN.test(data))
24270
+ if (!YAML_FLOAT_PATTERN.test(data)) {
24179
24271
  return false;
24180
- if (Number.isFinite(parseFloat(data, 10)))
24272
+ }
24273
+ if (isFinite(parseFloat(data, 10))) {
24181
24274
  return true;
24275
+ }
24182
24276
  return YAML_FLOAT_SPECIAL_PATTERN.test(data);
24183
24277
  }
24184
24278
  function constructYamlFloat(data) {
24185
24279
  let value = data.toLowerCase();
24186
24280
  const sign = value[0] === "-" ? -1 : 1;
24187
- if ("+-".indexOf(value[0]) >= 0)
24281
+ if ("+-".indexOf(value[0]) >= 0) {
24188
24282
  value = value.slice(1);
24189
- if (value === ".inf")
24283
+ }
24284
+ if (value === ".inf") {
24190
24285
  return sign === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
24191
- else if (value === ".nan")
24286
+ } else if (value === ".nan") {
24192
24287
  return NaN;
24288
+ }
24193
24289
  return sign * parseFloat(value, 10);
24194
24290
  }
24195
- var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
24291
+ const SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
24196
24292
  function representYamlFloat(object, style) {
24197
- if (isNaN(object))
24293
+ if (isNaN(object)) {
24198
24294
  switch (style) {
24199
24295
  case "lowercase":
24200
24296
  return ".nan";
@@ -24203,7 +24299,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
24203
24299
  case "camelcase":
24204
24300
  return ".NaN";
24205
24301
  }
24206
- else if (Number.POSITIVE_INFINITY === object)
24302
+ } else if (Number.POSITIVE_INFINITY === object) {
24207
24303
  switch (style) {
24208
24304
  case "lowercase":
24209
24305
  return ".inf";
@@ -24212,7 +24308,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
24212
24308
  case "camelcase":
24213
24309
  return ".Inf";
24214
24310
  }
24215
- else if (Number.NEGATIVE_INFINITY === object)
24311
+ } else if (Number.NEGATIVE_INFINITY === object) {
24216
24312
  switch (style) {
24217
24313
  case "lowercase":
24218
24314
  return "-.inf";
@@ -24221,15 +24317,16 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
24221
24317
  case "camelcase":
24222
24318
  return "-.Inf";
24223
24319
  }
24224
- else if (common.isNegativeZero(object))
24320
+ } else if (common2.isNegativeZero(object)) {
24225
24321
  return "-0.0";
24322
+ }
24226
24323
  const res = object.toString(10);
24227
24324
  return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
24228
24325
  }
24229
24326
  function isFloat(object) {
24230
- return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common.isNegativeZero(object));
24327
+ return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common2.isNegativeZero(object));
24231
24328
  }
24232
- module.exports = new Type("tag:yaml.org,2002:float", {
24329
+ float = new Type2("tag:yaml.org,2002:float", {
24233
24330
  kind: "scalar",
24234
24331
  resolve: resolveYamlFloat,
24235
24332
  construct: constructYamlFloat,
@@ -24237,22 +24334,42 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
24237
24334
  represent: representYamlFloat,
24238
24335
  defaultStyle: "lowercase"
24239
24336
  });
24240
- });
24241
- var require_json = /* @__PURE__ */ __commonJSMin((exports, module) => {
24242
- module.exports = require_failsafe().extend({ implicit: [
24243
- require_null(),
24244
- require_bool(),
24245
- require_int(),
24246
- require_float()
24247
- ] });
24248
- });
24249
- var require_core = /* @__PURE__ */ __commonJSMin((exports, module) => {
24250
- module.exports = require_json();
24251
- });
24252
- var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
24253
- var Type = require_type();
24254
- var YAML_DATE_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
24255
- 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]))?))?$");
24337
+ return float;
24338
+ }
24339
+ var json;
24340
+ var hasRequiredJson;
24341
+ function requireJson() {
24342
+ if (hasRequiredJson)
24343
+ return json;
24344
+ hasRequiredJson = 1;
24345
+ json = requireFailsafe().extend({
24346
+ implicit: [
24347
+ require_null(),
24348
+ requireBool(),
24349
+ requireInt(),
24350
+ requireFloat()
24351
+ ]
24352
+ });
24353
+ return json;
24354
+ }
24355
+ var core;
24356
+ var hasRequiredCore;
24357
+ function requireCore() {
24358
+ if (hasRequiredCore)
24359
+ return core;
24360
+ hasRequiredCore = 1;
24361
+ core = requireJson();
24362
+ return core;
24363
+ }
24364
+ var timestamp;
24365
+ var hasRequiredTimestamp;
24366
+ function requireTimestamp() {
24367
+ if (hasRequiredTimestamp)
24368
+ return timestamp;
24369
+ hasRequiredTimestamp = 1;
24370
+ const Type2 = requireType();
24371
+ const YAML_DATE_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
24372
+ 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]))?))?$");
24256
24373
  function resolveYamlTimestamp(data) {
24257
24374
  if (data === null)
24258
24375
  return false;
@@ -24273,15 +24390,17 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
24273
24390
  const year = +match[1];
24274
24391
  const month = +match[2] - 1;
24275
24392
  const day = +match[3];
24276
- if (!match[4])
24393
+ if (!match[4]) {
24277
24394
  return new Date(Date.UTC(year, month, day));
24395
+ }
24278
24396
  const hour = +match[4];
24279
24397
  const minute = +match[5];
24280
24398
  const second = +match[6];
24281
24399
  if (match[7]) {
24282
24400
  fraction = match[7].slice(0, 3);
24283
- while (fraction.length < 3)
24401
+ while (fraction.length < 3) {
24284
24402
  fraction += "0";
24403
+ }
24285
24404
  fraction = +fraction;
24286
24405
  }
24287
24406
  if (match[9]) {
@@ -24299,36 +24418,48 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
24299
24418
  function representYamlTimestamp(object) {
24300
24419
  return object.toISOString();
24301
24420
  }
24302
- module.exports = new Type("tag:yaml.org,2002:timestamp", {
24421
+ timestamp = new Type2("tag:yaml.org,2002:timestamp", {
24303
24422
  kind: "scalar",
24304
24423
  resolve: resolveYamlTimestamp,
24305
24424
  construct: constructYamlTimestamp,
24306
24425
  instanceOf: Date,
24307
24426
  represent: representYamlTimestamp
24308
24427
  });
24309
- });
24310
- var require_merge = /* @__PURE__ */ __commonJSMin((exports, module) => {
24311
- var Type = require_type();
24428
+ return timestamp;
24429
+ }
24430
+ var merge;
24431
+ var hasRequiredMerge;
24432
+ function requireMerge() {
24433
+ if (hasRequiredMerge)
24434
+ return merge;
24435
+ hasRequiredMerge = 1;
24436
+ const Type2 = requireType();
24312
24437
  function resolveYamlMerge(data) {
24313
24438
  return data === "<<" || data === null;
24314
24439
  }
24315
- module.exports = new Type("tag:yaml.org,2002:merge", {
24440
+ merge = new Type2("tag:yaml.org,2002:merge", {
24316
24441
  kind: "scalar",
24317
24442
  resolve: resolveYamlMerge
24318
24443
  });
24319
- });
24320
- var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
24321
- var Type = require_type();
24322
- var BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
24444
+ return merge;
24445
+ }
24446
+ var binary;
24447
+ var hasRequiredBinary;
24448
+ function requireBinary() {
24449
+ if (hasRequiredBinary)
24450
+ return binary;
24451
+ hasRequiredBinary = 1;
24452
+ const Type2 = requireType();
24453
+ const BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
24323
24454
  \r`;
24324
24455
  function resolveYamlBinary(data) {
24325
24456
  if (data === null)
24326
24457
  return false;
24327
24458
  let bitlen = 0;
24328
24459
  const max = data.length;
24329
- const map = BASE64_MAP;
24460
+ const map2 = BASE64_MAP;
24330
24461
  for (let idx = 0;idx < max; idx++) {
24331
- const code = map.indexOf(data.charAt(idx));
24462
+ const code = map2.indexOf(data.charAt(idx));
24332
24463
  if (code > 64)
24333
24464
  continue;
24334
24465
  if (code < 0)
@@ -24340,7 +24471,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
24340
24471
  function constructYamlBinary(data) {
24341
24472
  const input = data.replace(/[\r\n=]/g, "");
24342
24473
  const max = input.length;
24343
- const map = BASE64_MAP;
24474
+ const map2 = BASE64_MAP;
24344
24475
  let bits = 0;
24345
24476
  const result = [];
24346
24477
  for (let idx = 0;idx < max; idx++) {
@@ -24349,7 +24480,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
24349
24480
  result.push(bits >> 8 & 255);
24350
24481
  result.push(bits & 255);
24351
24482
  }
24352
- bits = bits << 6 | map.indexOf(input.charAt(idx));
24483
+ bits = bits << 6 | map2.indexOf(input.charAt(idx));
24353
24484
  }
24354
24485
  const tailbits = max % 4 * 6;
24355
24486
  if (tailbits === 0) {
@@ -24359,58 +24490,65 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
24359
24490
  } else if (tailbits === 18) {
24360
24491
  result.push(bits >> 10 & 255);
24361
24492
  result.push(bits >> 2 & 255);
24362
- } else if (tailbits === 12)
24493
+ } else if (tailbits === 12) {
24363
24494
  result.push(bits >> 4 & 255);
24495
+ }
24364
24496
  return new Uint8Array(result);
24365
24497
  }
24366
24498
  function representYamlBinary(object) {
24367
24499
  let result = "";
24368
24500
  let bits = 0;
24369
24501
  const max = object.length;
24370
- const map = BASE64_MAP;
24502
+ const map2 = BASE64_MAP;
24371
24503
  for (let idx = 0;idx < max; idx++) {
24372
24504
  if (idx % 3 === 0 && idx) {
24373
- result += map[bits >> 18 & 63];
24374
- result += map[bits >> 12 & 63];
24375
- result += map[bits >> 6 & 63];
24376
- result += map[bits & 63];
24505
+ result += map2[bits >> 18 & 63];
24506
+ result += map2[bits >> 12 & 63];
24507
+ result += map2[bits >> 6 & 63];
24508
+ result += map2[bits & 63];
24377
24509
  }
24378
24510
  bits = (bits << 8) + object[idx];
24379
24511
  }
24380
24512
  const tail = max % 3;
24381
24513
  if (tail === 0) {
24382
- result += map[bits >> 18 & 63];
24383
- result += map[bits >> 12 & 63];
24384
- result += map[bits >> 6 & 63];
24385
- result += map[bits & 63];
24514
+ result += map2[bits >> 18 & 63];
24515
+ result += map2[bits >> 12 & 63];
24516
+ result += map2[bits >> 6 & 63];
24517
+ result += map2[bits & 63];
24386
24518
  } else if (tail === 2) {
24387
- result += map[bits >> 10 & 63];
24388
- result += map[bits >> 4 & 63];
24389
- result += map[bits << 2 & 63];
24390
- result += map[64];
24519
+ result += map2[bits >> 10 & 63];
24520
+ result += map2[bits >> 4 & 63];
24521
+ result += map2[bits << 2 & 63];
24522
+ result += map2[64];
24391
24523
  } else if (tail === 1) {
24392
- result += map[bits >> 2 & 63];
24393
- result += map[bits << 4 & 63];
24394
- result += map[64];
24395
- result += map[64];
24524
+ result += map2[bits >> 2 & 63];
24525
+ result += map2[bits << 4 & 63];
24526
+ result += map2[64];
24527
+ result += map2[64];
24396
24528
  }
24397
24529
  return result;
24398
24530
  }
24399
24531
  function isBinary(obj) {
24400
24532
  return Object.prototype.toString.call(obj) === "[object Uint8Array]";
24401
24533
  }
24402
- module.exports = new Type("tag:yaml.org,2002:binary", {
24534
+ binary = new Type2("tag:yaml.org,2002:binary", {
24403
24535
  kind: "scalar",
24404
24536
  resolve: resolveYamlBinary,
24405
24537
  construct: constructYamlBinary,
24406
24538
  predicate: isBinary,
24407
24539
  represent: representYamlBinary
24408
24540
  });
24409
- });
24410
- var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
24411
- var Type = require_type();
24412
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
24413
- var _toString = Object.prototype.toString;
24541
+ return binary;
24542
+ }
24543
+ var omap;
24544
+ var hasRequiredOmap;
24545
+ function requireOmap() {
24546
+ if (hasRequiredOmap)
24547
+ return omap;
24548
+ hasRequiredOmap = 1;
24549
+ const Type2 = requireType();
24550
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
24551
+ const _toString = Object.prototype.toString;
24414
24552
  function resolveYamlOmap(data) {
24415
24553
  if (data === null)
24416
24554
  return true;
@@ -24422,12 +24560,14 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
24422
24560
  if (_toString.call(pair) !== "[object Object]")
24423
24561
  return false;
24424
24562
  let pairKey;
24425
- for (pairKey in pair)
24426
- if (_hasOwnProperty.call(pair, pairKey))
24563
+ for (pairKey in pair) {
24564
+ if (_hasOwnProperty.call(pair, pairKey)) {
24427
24565
  if (!pairHasKey)
24428
24566
  pairHasKey = true;
24429
24567
  else
24430
24568
  return false;
24569
+ }
24570
+ }
24431
24571
  if (!pairHasKey)
24432
24572
  return false;
24433
24573
  if (objectKeys.indexOf(pairKey) === -1)
@@ -24440,15 +24580,21 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
24440
24580
  function constructYamlOmap(data) {
24441
24581
  return data !== null ? data : [];
24442
24582
  }
24443
- module.exports = new Type("tag:yaml.org,2002:omap", {
24583
+ omap = new Type2("tag:yaml.org,2002:omap", {
24444
24584
  kind: "sequence",
24445
24585
  resolve: resolveYamlOmap,
24446
24586
  construct: constructYamlOmap
24447
24587
  });
24448
- });
24449
- var require_pairs = /* @__PURE__ */ __commonJSMin((exports, module) => {
24450
- var Type = require_type();
24451
- var _toString = Object.prototype.toString;
24588
+ return omap;
24589
+ }
24590
+ var pairs;
24591
+ var hasRequiredPairs;
24592
+ function requirePairs() {
24593
+ if (hasRequiredPairs)
24594
+ return pairs;
24595
+ hasRequiredPairs = 1;
24596
+ const Type2 = requireType();
24597
+ const _toString = Object.prototype.toString;
24452
24598
  function resolveYamlPairs(data) {
24453
24599
  if (data === null)
24454
24600
  return true;
@@ -24477,64 +24623,85 @@ var require_pairs = /* @__PURE__ */ __commonJSMin((exports, module) => {
24477
24623
  }
24478
24624
  return result;
24479
24625
  }
24480
- module.exports = new Type("tag:yaml.org,2002:pairs", {
24626
+ pairs = new Type2("tag:yaml.org,2002:pairs", {
24481
24627
  kind: "sequence",
24482
24628
  resolve: resolveYamlPairs,
24483
24629
  construct: constructYamlPairs
24484
24630
  });
24485
- });
24486
- var require_set = /* @__PURE__ */ __commonJSMin((exports, module) => {
24487
- var Type = require_type();
24488
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
24631
+ return pairs;
24632
+ }
24633
+ var set;
24634
+ var hasRequiredSet;
24635
+ function requireSet() {
24636
+ if (hasRequiredSet)
24637
+ return set;
24638
+ hasRequiredSet = 1;
24639
+ const Type2 = requireType();
24640
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
24489
24641
  function resolveYamlSet(data) {
24490
24642
  if (data === null)
24491
24643
  return true;
24492
24644
  const object = data;
24493
- for (const key in object)
24645
+ for (const key in object) {
24494
24646
  if (_hasOwnProperty.call(object, key)) {
24495
24647
  if (object[key] !== null)
24496
24648
  return false;
24497
24649
  }
24650
+ }
24498
24651
  return true;
24499
24652
  }
24500
24653
  function constructYamlSet(data) {
24501
24654
  return data !== null ? data : {};
24502
24655
  }
24503
- module.exports = new Type("tag:yaml.org,2002:set", {
24656
+ set = new Type2("tag:yaml.org,2002:set", {
24504
24657
  kind: "mapping",
24505
24658
  resolve: resolveYamlSet,
24506
24659
  construct: constructYamlSet
24507
24660
  });
24508
- });
24509
- var require_default = /* @__PURE__ */ __commonJSMin((exports, module) => {
24510
- module.exports = require_core().extend({
24511
- implicit: [require_timestamp(), require_merge()],
24661
+ return set;
24662
+ }
24663
+ var _default;
24664
+ var hasRequired_default;
24665
+ function require_default() {
24666
+ if (hasRequired_default)
24667
+ return _default;
24668
+ hasRequired_default = 1;
24669
+ _default = requireCore().extend({
24670
+ implicit: [
24671
+ requireTimestamp(),
24672
+ requireMerge()
24673
+ ],
24512
24674
  explicit: [
24513
- require_binary(),
24514
- require_omap(),
24515
- require_pairs(),
24516
- require_set()
24675
+ requireBinary(),
24676
+ requireOmap(),
24677
+ requirePairs(),
24678
+ requireSet()
24517
24679
  ]
24518
24680
  });
24519
- });
24520
- var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24521
- var common = require_common();
24522
- var YAMLException = require_exception();
24523
- var makeSnippet = require_snippet();
24524
- var DEFAULT_SCHEMA = require_default();
24525
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
24526
- var CONTEXT_FLOW_IN = 1;
24527
- var CONTEXT_FLOW_OUT = 2;
24528
- var CONTEXT_BLOCK_IN = 3;
24529
- var CONTEXT_BLOCK_OUT = 4;
24530
- var CHOMPING_CLIP = 1;
24531
- var CHOMPING_STRIP = 2;
24532
- var CHOMPING_KEEP = 3;
24533
- var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
24534
- var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
24535
- var PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
24536
- var PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
24537
- var PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
24681
+ return _default;
24682
+ }
24683
+ var hasRequiredLoader;
24684
+ function requireLoader() {
24685
+ if (hasRequiredLoader)
24686
+ return loader;
24687
+ hasRequiredLoader = 1;
24688
+ const common2 = requireCommon();
24689
+ const YAMLException2 = requireException();
24690
+ const makeSnippet = requireSnippet();
24691
+ const DEFAULT_SCHEMA2 = require_default();
24692
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
24693
+ const CONTEXT_FLOW_IN = 1;
24694
+ const CONTEXT_FLOW_OUT = 2;
24695
+ const CONTEXT_BLOCK_IN = 3;
24696
+ const CONTEXT_BLOCK_OUT = 4;
24697
+ const CHOMPING_CLIP = 1;
24698
+ const CHOMPING_STRIP = 2;
24699
+ const CHOMPING_KEEP = 3;
24700
+ const PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
24701
+ const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
24702
+ const PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
24703
+ const PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
24704
+ const PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
24538
24705
  function _class(obj) {
24539
24706
  return Object.prototype.toString.call(obj);
24540
24707
  }
@@ -24551,25 +24718,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24551
24718
  return c === 44 || c === 91 || c === 93 || c === 123 || c === 125;
24552
24719
  }
24553
24720
  function fromHexCode(c) {
24554
- if (c >= 48 && c <= 57)
24721
+ if (c >= 48 && c <= 57) {
24555
24722
  return c - 48;
24723
+ }
24556
24724
  const lc = c | 32;
24557
- if (lc >= 97 && lc <= 102)
24725
+ if (lc >= 97 && lc <= 102) {
24558
24726
  return lc - 97 + 10;
24727
+ }
24559
24728
  return -1;
24560
24729
  }
24561
24730
  function escapedHexLen(c) {
24562
- if (c === 120)
24731
+ if (c === 120) {
24563
24732
  return 2;
24564
- if (c === 117)
24733
+ }
24734
+ if (c === 117) {
24565
24735
  return 4;
24566
- if (c === 85)
24736
+ }
24737
+ if (c === 85) {
24567
24738
  return 8;
24739
+ }
24568
24740
  return 0;
24569
24741
  }
24570
24742
  function fromDecimalCode(c) {
24571
- if (c >= 48 && c <= 57)
24743
+ if (c >= 48 && c <= 57) {
24572
24744
  return c - 48;
24745
+ }
24573
24746
  return -1;
24574
24747
  }
24575
24748
  function simpleEscapeSequence(c) {
@@ -24616,23 +24789,25 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24616
24789
  }
24617
24790
  }
24618
24791
  function charFromCodepoint(c) {
24619
- if (c <= 65535)
24792
+ if (c <= 65535) {
24620
24793
  return String.fromCharCode(c);
24794
+ }
24621
24795
  return String.fromCharCode((c - 65536 >> 10) + 55296, (c - 65536 & 1023) + 56320);
24622
24796
  }
24623
24797
  function setProperty(object, key, value) {
24624
- if (key === "__proto__")
24798
+ if (key === "__proto__") {
24625
24799
  Object.defineProperty(object, key, {
24626
24800
  configurable: true,
24627
24801
  enumerable: true,
24628
24802
  writable: true,
24629
24803
  value
24630
24804
  });
24631
- else
24805
+ } else {
24632
24806
  object[key] = value;
24807
+ }
24633
24808
  }
24634
- var simpleEscapeCheck = new Array(256);
24635
- var simpleEscapeMap = new Array(256);
24809
+ const simpleEscapeCheck = new Array(256);
24810
+ const simpleEscapeMap = new Array(256);
24636
24811
  for (let i = 0;i < 256; i++) {
24637
24812
  simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
24638
24813
  simpleEscapeMap[i] = simpleEscapeSequence(i);
@@ -24640,13 +24815,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24640
24815
  function State(input, options) {
24641
24816
  this.input = input;
24642
24817
  this.filename = options["filename"] || null;
24643
- this.schema = options["schema"] || DEFAULT_SCHEMA;
24818
+ this.schema = options["schema"] || DEFAULT_SCHEMA2;
24644
24819
  this.onWarning = options["onWarning"] || null;
24645
24820
  this.legacy = options["legacy"] || false;
24646
24821
  this.json = options["json"] || false;
24647
24822
  this.listener = options["listener"] || null;
24648
24823
  this.maxDepth = typeof options["maxDepth"] === "number" ? options["maxDepth"] : 100;
24649
- this.maxMergeSeqLength = typeof options["maxMergeSeqLength"] === "number" ? options["maxMergeSeqLength"] : 20;
24824
+ this.maxTotalMergeKeys = typeof options["maxTotalMergeKeys"] === "number" ? options["maxTotalMergeKeys"] : 1e4;
24650
24825
  this.implicitTypes = this.schema.compiledImplicit;
24651
24826
  this.typeMap = this.schema.compiledTypeMap;
24652
24827
  this.length = input.length;
@@ -24655,6 +24830,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24655
24830
  this.lineStart = 0;
24656
24831
  this.lineIndent = 0;
24657
24832
  this.depth = 0;
24833
+ this.totalMergeKeys = 0;
24658
24834
  this.firstTabInLine = -1;
24659
24835
  this.documents = [];
24660
24836
  this.anchorMapTransactions = [];
@@ -24668,29 +24844,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24668
24844
  column: state.position - state.lineStart
24669
24845
  };
24670
24846
  mark.snippet = makeSnippet(mark);
24671
- return new YAMLException(message, mark);
24847
+ return new YAMLException2(message, mark);
24672
24848
  }
24673
24849
  function throwError(state, message) {
24674
24850
  throw generateError(state, message);
24675
24851
  }
24676
24852
  function throwWarning(state, message) {
24677
- if (state.onWarning)
24853
+ if (state.onWarning) {
24678
24854
  state.onWarning.call(null, generateError(state, message));
24855
+ }
24679
24856
  }
24680
24857
  function storeAnchor(state, name, value) {
24681
24858
  const transactions = state.anchorMapTransactions;
24682
24859
  if (transactions.length !== 0) {
24683
24860
  const transaction = transactions[transactions.length - 1];
24684
- if (!_hasOwnProperty.call(transaction, name))
24861
+ if (!_hasOwnProperty.call(transaction, name)) {
24685
24862
  transaction[name] = {
24686
24863
  existed: _hasOwnProperty.call(state.anchorMap, name),
24687
24864
  value: state.anchorMap[name]
24688
24865
  };
24866
+ }
24689
24867
  }
24690
24868
  state.anchorMap[name] = value;
24691
24869
  }
24692
24870
  function beginAnchorTransaction(state) {
24693
- state.anchorMapTransactions.push(Object.create(null));
24871
+ state.anchorMapTransactions.push(/* @__PURE__ */ Object.create(null));
24694
24872
  }
24695
24873
  function commitAnchorTransaction(state) {
24696
24874
  const transaction = state.anchorMapTransactions.pop();
@@ -24701,8 +24879,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24701
24879
  const names = Object.keys(transaction);
24702
24880
  for (let index = 0, length = names.length;index < length; index += 1) {
24703
24881
  const name = names[index];
24704
- if (!_hasOwnProperty.call(parent, name))
24882
+ if (!_hasOwnProperty.call(parent, name)) {
24705
24883
  parent[name] = transaction[name];
24884
+ }
24706
24885
  }
24707
24886
  }
24708
24887
  function rollbackAnchorTransaction(state) {
@@ -24710,10 +24889,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24710
24889
  const names = Object.keys(transaction);
24711
24890
  for (let index = names.length - 1;index >= 0; index -= 1) {
24712
24891
  const entry = transaction[names[index]];
24713
- if (entry.existed)
24892
+ if (entry.existed) {
24714
24893
  state.anchorMap[names[index]] = entry.value;
24715
- else
24894
+ } else {
24716
24895
  delete state.anchorMap[names[index]];
24896
+ }
24717
24897
  }
24718
24898
  }
24719
24899
  function snapshotState(state) {
@@ -24740,36 +24920,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24740
24920
  state.kind = snapshot.kind;
24741
24921
  state.result = snapshot.result;
24742
24922
  }
24743
- var directiveHandlers = {
24923
+ const directiveHandlers = {
24744
24924
  YAML: function handleYamlDirective(state, name, args) {
24745
- if (state.version !== null)
24925
+ if (state.version !== null) {
24746
24926
  throwError(state, "duplication of %YAML directive");
24747
- if (args.length !== 1)
24927
+ }
24928
+ if (args.length !== 1) {
24748
24929
  throwError(state, "YAML directive accepts exactly one argument");
24930
+ }
24749
24931
  const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
24750
- if (match === null)
24932
+ if (match === null) {
24751
24933
  throwError(state, "ill-formed argument of the YAML directive");
24934
+ }
24752
24935
  const major = parseInt(match[1], 10);
24753
24936
  const minor = parseInt(match[2], 10);
24754
- if (major !== 1)
24937
+ if (major !== 1) {
24755
24938
  throwError(state, "unacceptable YAML version of the document");
24939
+ }
24756
24940
  state.version = args[0];
24757
24941
  state.checkLineBreaks = minor < 2;
24758
- if (minor !== 1 && minor !== 2)
24942
+ if (minor !== 1 && minor !== 2) {
24759
24943
  throwWarning(state, "unsupported YAML version of the document");
24944
+ }
24760
24945
  },
24761
24946
  TAG: function handleTagDirective(state, name, args) {
24762
24947
  let prefix;
24763
- if (args.length !== 2)
24948
+ if (args.length !== 2) {
24764
24949
  throwError(state, "TAG directive accepts exactly two arguments");
24950
+ }
24765
24951
  const handle = args[0];
24766
24952
  prefix = args[1];
24767
- if (!PATTERN_TAG_HANDLE.test(handle))
24953
+ if (!PATTERN_TAG_HANDLE.test(handle)) {
24768
24954
  throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
24769
- if (_hasOwnProperty.call(state.tagMap, handle))
24955
+ }
24956
+ if (_hasOwnProperty.call(state.tagMap, handle)) {
24770
24957
  throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
24771
- if (!PATTERN_TAG_URI.test(prefix))
24958
+ }
24959
+ if (!PATTERN_TAG_URI.test(prefix)) {
24772
24960
  throwError(state, "ill-formed tag prefix (second argument) of the TAG directive");
24961
+ }
24773
24962
  try {
24774
24963
  prefix = decodeURIComponent(prefix);
24775
24964
  } catch (err) {
@@ -24781,23 +24970,29 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24781
24970
  function captureSegment(state, start, end, checkJson) {
24782
24971
  if (start < end) {
24783
24972
  const _result = state.input.slice(start, end);
24784
- if (checkJson)
24973
+ if (checkJson) {
24785
24974
  for (let _position = 0, _length = _result.length;_position < _length; _position += 1) {
24786
24975
  const _character = _result.charCodeAt(_position);
24787
- if (!(_character === 9 || _character >= 32 && _character <= 1114111))
24976
+ if (!(_character === 9 || _character >= 32 && _character <= 1114111)) {
24788
24977
  throwError(state, "expected valid JSON character");
24978
+ }
24789
24979
  }
24790
- else if (PATTERN_NON_PRINTABLE.test(_result))
24980
+ } else if (PATTERN_NON_PRINTABLE.test(_result)) {
24791
24981
  throwError(state, "the stream contains non-printable characters");
24982
+ }
24792
24983
  state.result += _result;
24793
24984
  }
24794
24985
  }
24795
24986
  function mergeMappings(state, destination, source, overridableKeys) {
24796
- if (!common.isObject(source))
24987
+ if (!common2.isObject(source)) {
24797
24988
  throwError(state, "cannot merge mappings; the provided source object is unacceptable");
24989
+ }
24798
24990
  const sourceKeys = Object.keys(source);
24799
24991
  for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
24800
24992
  const key = sourceKeys[index];
24993
+ if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
24994
+ throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
24995
+ }
24801
24996
  if (!_hasOwnProperty.call(destination, key)) {
24802
24997
  setProperty(destination, key, source[key]);
24803
24998
  overridableKeys[key] = true;
@@ -24808,32 +25003,30 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24808
25003
  if (Array.isArray(keyNode)) {
24809
25004
  keyNode = Array.prototype.slice.call(keyNode);
24810
25005
  for (let index = 0, quantity = keyNode.length;index < quantity; index += 1) {
24811
- if (Array.isArray(keyNode[index]))
25006
+ if (Array.isArray(keyNode[index])) {
24812
25007
  throwError(state, "nested arrays are not supported inside keys");
24813
- if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]")
25008
+ }
25009
+ if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") {
24814
25010
  keyNode[index] = "[object Object]";
25011
+ }
24815
25012
  }
24816
25013
  }
24817
- if (typeof keyNode === "object" && _class(keyNode) === "[object Object]")
25014
+ if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") {
24818
25015
  keyNode = "[object Object]";
25016
+ }
24819
25017
  keyNode = String(keyNode);
24820
- if (_result === null)
25018
+ if (_result === null) {
24821
25019
  _result = {};
24822
- if (keyTag === "tag:yaml.org,2002:merge")
25020
+ }
25021
+ if (keyTag === "tag:yaml.org,2002:merge") {
24823
25022
  if (Array.isArray(valueNode)) {
24824
- if (valueNode.length > state.maxMergeSeqLength)
24825
- throwError(state, "merge sequence length exceeded maxMergeSeqLength (" + state.maxMergeSeqLength + ")");
24826
- const seen = /* @__PURE__ */ new Set;
24827
25023
  for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
24828
- const src = valueNode[index];
24829
- if (seen.has(src))
24830
- continue;
24831
- seen.add(src);
24832
- mergeMappings(state, _result, src, overridableKeys);
25024
+ mergeMappings(state, _result, valueNode[index], overridableKeys);
24833
25025
  }
24834
- } else
25026
+ } else {
24835
25027
  mergeMappings(state, _result, valueNode, overridableKeys);
24836
- else {
25028
+ }
25029
+ } else {
24837
25030
  if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
24838
25031
  state.line = startLine || state.line;
24839
25032
  state.lineStart = startLineStart || state.lineStart;
@@ -24847,14 +25040,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24847
25040
  }
24848
25041
  function readLineBreak(state) {
24849
25042
  const ch = state.input.charCodeAt(state.position);
24850
- if (ch === 10)
25043
+ if (ch === 10) {
24851
25044
  state.position++;
24852
- else if (ch === 13) {
25045
+ } else if (ch === 13) {
24853
25046
  state.position++;
24854
- if (state.input.charCodeAt(state.position) === 10)
25047
+ if (state.input.charCodeAt(state.position) === 10) {
24855
25048
  state.position++;
24856
- } else
25049
+ }
25050
+ } else {
24857
25051
  throwError(state, "a line break is expected");
25052
+ }
24858
25053
  state.line += 1;
24859
25054
  state.lineStart = state.position;
24860
25055
  state.firstTabInLine = -1;
@@ -24864,14 +25059,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24864
25059
  let ch = state.input.charCodeAt(state.position);
24865
25060
  while (ch !== 0) {
24866
25061
  while (isWhiteSpace(ch)) {
24867
- if (ch === 9 && state.firstTabInLine === -1)
25062
+ if (ch === 9 && state.firstTabInLine === -1) {
24868
25063
  state.firstTabInLine = state.position;
25064
+ }
24869
25065
  ch = state.input.charCodeAt(++state.position);
24870
25066
  }
24871
- if (allowComments && ch === 35)
24872
- do
25067
+ if (allowComments && ch === 35) {
25068
+ do {
24873
25069
  ch = state.input.charCodeAt(++state.position);
24874
- while (ch !== 10 && ch !== 13 && ch !== 0);
25070
+ } while (ch !== 10 && ch !== 13 && ch !== 0);
25071
+ }
24875
25072
  if (isEol(ch)) {
24876
25073
  readLineBreak(state);
24877
25074
  ch = state.input.charCodeAt(state.position);
@@ -24881,11 +25078,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24881
25078
  state.lineIndent++;
24882
25079
  ch = state.input.charCodeAt(++state.position);
24883
25080
  }
24884
- } else
25081
+ } else {
24885
25082
  break;
25083
+ }
24886
25084
  }
24887
- if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent)
25085
+ if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
24888
25086
  throwWarning(state, "deficient indentation");
25087
+ }
24889
25088
  return lineBreaks;
24890
25089
  }
24891
25090
  function testDocumentSeparator(state) {
@@ -24894,17 +25093,19 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24894
25093
  if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
24895
25094
  _position += 3;
24896
25095
  ch = state.input.charCodeAt(_position);
24897
- if (ch === 0 || isWsOrEol(ch))
25096
+ if (ch === 0 || isWsOrEol(ch)) {
24898
25097
  return true;
25098
+ }
24899
25099
  }
24900
25100
  return false;
24901
25101
  }
24902
25102
  function writeFoldedLines(state, count) {
24903
- if (count === 1)
25103
+ if (count === 1) {
24904
25104
  state.result += " ";
24905
- else if (count > 1)
24906
- state.result += common.repeat(`
25105
+ } else if (count > 1) {
25106
+ state.result += common2.repeat(`
24907
25107
  `, count - 1);
25108
+ }
24908
25109
  }
24909
25110
  function readPlainScalar(state, nodeIndent, withinFlowCollection) {
24910
25111
  let captureStart;
@@ -24916,12 +25117,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24916
25117
  const _kind = state.kind;
24917
25118
  const _result = state.result;
24918
25119
  let ch = state.input.charCodeAt(state.position);
24919
- 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)
25120
+ 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) {
24920
25121
  return false;
25122
+ }
24921
25123
  if (ch === 63 || ch === 45) {
24922
25124
  const following = state.input.charCodeAt(state.position + 1);
24923
- if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
25125
+ if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
24924
25126
  return false;
25127
+ }
24925
25128
  }
24926
25129
  state.kind = "scalar";
24927
25130
  state.result = "";
@@ -24930,14 +25133,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24930
25133
  while (ch !== 0) {
24931
25134
  if (ch === 58) {
24932
25135
  const following = state.input.charCodeAt(state.position + 1);
24933
- if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
25136
+ if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
24934
25137
  break;
25138
+ }
24935
25139
  } else if (ch === 35) {
24936
- if (isWsOrEol(state.input.charCodeAt(state.position - 1)))
25140
+ const preceding = state.input.charCodeAt(state.position - 1);
25141
+ if (isWsOrEol(preceding)) {
24937
25142
  break;
24938
- } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch))
25143
+ }
25144
+ } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch)) {
24939
25145
  break;
24940
- else if (isEol(ch)) {
25146
+ } else if (isEol(ch)) {
24941
25147
  _line = state.line;
24942
25148
  _lineStart = state.lineStart;
24943
25149
  _lineIndent = state.lineIndent;
@@ -24960,13 +25166,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24960
25166
  captureStart = captureEnd = state.position;
24961
25167
  hasPendingContent = false;
24962
25168
  }
24963
- if (!isWhiteSpace(ch))
25169
+ if (!isWhiteSpace(ch)) {
24964
25170
  captureEnd = state.position + 1;
25171
+ }
24965
25172
  ch = state.input.charCodeAt(++state.position);
24966
25173
  }
24967
25174
  captureSegment(state, captureStart, captureEnd, false);
24968
- if (state.result)
25175
+ if (state.result) {
24969
25176
  return true;
25177
+ }
24970
25178
  state.kind = _kind;
24971
25179
  state.result = _result;
24972
25180
  return false;
@@ -24975,13 +25183,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24975
25183
  let captureStart;
24976
25184
  let captureEnd;
24977
25185
  let ch = state.input.charCodeAt(state.position);
24978
- if (ch !== 39)
25186
+ if (ch !== 39) {
24979
25187
  return false;
25188
+ }
24980
25189
  state.kind = "scalar";
24981
25190
  state.result = "";
24982
25191
  state.position++;
24983
25192
  captureStart = captureEnd = state.position;
24984
- while ((ch = state.input.charCodeAt(state.position)) !== 0)
25193
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
24985
25194
  if (ch === 39) {
24986
25195
  captureSegment(state, captureStart, state.position, true);
24987
25196
  ch = state.input.charCodeAt(++state.position);
@@ -24989,19 +25198,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24989
25198
  captureStart = state.position;
24990
25199
  state.position++;
24991
25200
  captureEnd = state.position;
24992
- } else
25201
+ } else {
24993
25202
  return true;
25203
+ }
24994
25204
  } else if (isEol(ch)) {
24995
25205
  captureSegment(state, captureStart, captureEnd, true);
24996
25206
  writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
24997
25207
  captureStart = captureEnd = state.position;
24998
- } else if (state.position === state.lineStart && testDocumentSeparator(state))
25208
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
24999
25209
  throwError(state, "unexpected end of the document within a single quoted scalar");
25000
- else {
25210
+ } else {
25001
25211
  state.position++;
25002
- if (!isWhiteSpace(ch))
25212
+ if (!isWhiteSpace(ch)) {
25003
25213
  captureEnd = state.position;
25214
+ }
25004
25215
  }
25216
+ }
25005
25217
  throwError(state, "unexpected end of the stream within a single quoted scalar");
25006
25218
  }
25007
25219
  function readDoubleQuotedScalar(state, nodeIndent) {
@@ -25009,13 +25221,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25009
25221
  let captureEnd;
25010
25222
  let tmp;
25011
25223
  let ch = state.input.charCodeAt(state.position);
25012
- if (ch !== 34)
25224
+ if (ch !== 34) {
25013
25225
  return false;
25226
+ }
25014
25227
  state.kind = "scalar";
25015
25228
  state.result = "";
25016
25229
  state.position++;
25017
25230
  captureStart = captureEnd = state.position;
25018
- while ((ch = state.input.charCodeAt(state.position)) !== 0)
25231
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
25019
25232
  if (ch === 34) {
25020
25233
  captureSegment(state, captureStart, state.position, true);
25021
25234
  state.position++;
@@ -25023,9 +25236,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25023
25236
  } else if (ch === 92) {
25024
25237
  captureSegment(state, captureStart, state.position, true);
25025
25238
  ch = state.input.charCodeAt(++state.position);
25026
- if (isEol(ch))
25239
+ if (isEol(ch)) {
25027
25240
  skipSeparationSpace(state, false, nodeIndent);
25028
- else if (ch < 256 && simpleEscapeCheck[ch]) {
25241
+ } else if (ch < 256 && simpleEscapeCheck[ch]) {
25029
25242
  state.result += simpleEscapeMap[ch];
25030
25243
  state.position++;
25031
25244
  } else if ((tmp = escapedHexLen(ch)) > 0) {
@@ -25033,27 +25246,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25033
25246
  let hexResult = 0;
25034
25247
  for (;hexLength > 0; hexLength--) {
25035
25248
  ch = state.input.charCodeAt(++state.position);
25036
- if ((tmp = fromHexCode(ch)) >= 0)
25249
+ if ((tmp = fromHexCode(ch)) >= 0) {
25037
25250
  hexResult = (hexResult << 4) + tmp;
25038
- else
25251
+ } else {
25039
25252
  throwError(state, "expected hexadecimal character");
25253
+ }
25040
25254
  }
25041
25255
  state.result += charFromCodepoint(hexResult);
25042
25256
  state.position++;
25043
- } else
25257
+ } else {
25044
25258
  throwError(state, "unknown escape sequence");
25259
+ }
25045
25260
  captureStart = captureEnd = state.position;
25046
25261
  } else if (isEol(ch)) {
25047
25262
  captureSegment(state, captureStart, captureEnd, true);
25048
25263
  writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
25049
25264
  captureStart = captureEnd = state.position;
25050
- } else if (state.position === state.lineStart && testDocumentSeparator(state))
25265
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
25051
25266
  throwError(state, "unexpected end of the document within a double quoted scalar");
25052
- else {
25267
+ } else {
25053
25268
  state.position++;
25054
- if (!isWhiteSpace(ch))
25269
+ if (!isWhiteSpace(ch)) {
25055
25270
  captureEnd = state.position;
25271
+ }
25056
25272
  }
25273
+ }
25057
25274
  throwError(state, "unexpected end of the stream within a double quoted scalar");
25058
25275
  }
25059
25276
  function readFlowCollection(state, nodeIndent) {
@@ -25068,7 +25285,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25068
25285
  let isPair;
25069
25286
  let isExplicitPair;
25070
25287
  let isMapping;
25071
- const overridableKeys = Object.create(null);
25288
+ const overridableKeys = /* @__PURE__ */ Object.create(null);
25072
25289
  let keyNode;
25073
25290
  let keyTag;
25074
25291
  let valueNode;
@@ -25081,10 +25298,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25081
25298
  terminator = 125;
25082
25299
  isMapping = true;
25083
25300
  _result = {};
25084
- } else
25301
+ } else {
25085
25302
  return false;
25086
- if (state.anchor !== null)
25303
+ }
25304
+ if (state.anchor !== null) {
25087
25305
  storeAnchor(state, state.anchor, _result);
25306
+ }
25088
25307
  ch = state.input.charCodeAt(++state.position);
25089
25308
  while (ch !== 0) {
25090
25309
  skipSeparationSpace(state, true, nodeIndent);
@@ -25096,14 +25315,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25096
25315
  state.kind = isMapping ? "mapping" : "sequence";
25097
25316
  state.result = _result;
25098
25317
  return true;
25099
- } else if (!readNext)
25318
+ } else if (!readNext) {
25100
25319
  throwError(state, "missed comma between flow collection entries");
25101
- else if (ch === 44)
25320
+ } else if (ch === 44) {
25102
25321
  throwError(state, "expected the node content, but found ','");
25322
+ }
25103
25323
  keyTag = keyNode = valueNode = null;
25104
25324
  isPair = isExplicitPair = false;
25105
25325
  if (ch === 63) {
25106
- if (isWsOrEol(state.input.charCodeAt(state.position + 1))) {
25326
+ const following = state.input.charCodeAt(state.position + 1);
25327
+ if (isWsOrEol(following)) {
25107
25328
  isPair = isExplicitPair = true;
25108
25329
  state.position++;
25109
25330
  skipSeparationSpace(state, true, nodeIndent);
@@ -25124,19 +25345,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25124
25345
  composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
25125
25346
  valueNode = state.result;
25126
25347
  }
25127
- if (isMapping)
25348
+ if (isMapping) {
25128
25349
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);
25129
- else if (isPair)
25350
+ } else if (isPair) {
25130
25351
  _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));
25131
- else
25352
+ } else {
25132
25353
  _result.push(keyNode);
25354
+ }
25133
25355
  skipSeparationSpace(state, true, nodeIndent);
25134
25356
  ch = state.input.charCodeAt(state.position);
25135
25357
  if (ch === 44) {
25136
25358
  readNext = true;
25137
25359
  ch = state.input.charCodeAt(++state.position);
25138
- } else
25360
+ } else {
25139
25361
  readNext = false;
25362
+ }
25140
25363
  }
25141
25364
  throwError(state, "unexpected end of the stream within a flow collection");
25142
25365
  }
@@ -25150,40 +25373,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25150
25373
  let atMoreIndented = false;
25151
25374
  let tmp;
25152
25375
  let ch = state.input.charCodeAt(state.position);
25153
- if (ch === 124)
25376
+ if (ch === 124) {
25154
25377
  folding = false;
25155
- else if (ch === 62)
25378
+ } else if (ch === 62) {
25156
25379
  folding = true;
25157
- else
25380
+ } else {
25158
25381
  return false;
25382
+ }
25159
25383
  state.kind = "scalar";
25160
25384
  state.result = "";
25161
25385
  while (ch !== 0) {
25162
25386
  ch = state.input.charCodeAt(++state.position);
25163
- if (ch === 43 || ch === 45)
25164
- if (CHOMPING_CLIP === chomping)
25387
+ if (ch === 43 || ch === 45) {
25388
+ if (CHOMPING_CLIP === chomping) {
25165
25389
  chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
25166
- else
25390
+ } else {
25167
25391
  throwError(state, "repeat of a chomping mode identifier");
25168
- else if ((tmp = fromDecimalCode(ch)) >= 0)
25169
- if (tmp === 0)
25392
+ }
25393
+ } else if ((tmp = fromDecimalCode(ch)) >= 0) {
25394
+ if (tmp === 0) {
25170
25395
  throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
25171
- else if (!detectedIndent) {
25396
+ } else if (!detectedIndent) {
25172
25397
  textIndent = nodeIndent + tmp - 1;
25173
25398
  detectedIndent = true;
25174
- } else
25399
+ } else {
25175
25400
  throwError(state, "repeat of an indentation width identifier");
25176
- else
25401
+ }
25402
+ } else {
25177
25403
  break;
25404
+ }
25178
25405
  }
25179
25406
  if (isWhiteSpace(ch)) {
25180
- do
25407
+ do {
25181
25408
  ch = state.input.charCodeAt(++state.position);
25182
- while (isWhiteSpace(ch));
25183
- if (ch === 35)
25184
- do
25409
+ } while (isWhiteSpace(ch));
25410
+ if (ch === 35) {
25411
+ do {
25185
25412
  ch = state.input.charCodeAt(++state.position);
25186
- while (!isEol(ch) && ch !== 0);
25413
+ } while (!isEol(ch) && ch !== 0);
25414
+ }
25187
25415
  }
25188
25416
  while (ch !== 0) {
25189
25417
  readLineBreak(state);
@@ -25193,49 +25421,56 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25193
25421
  state.lineIndent++;
25194
25422
  ch = state.input.charCodeAt(++state.position);
25195
25423
  }
25196
- if (!detectedIndent && state.lineIndent > textIndent)
25424
+ if (!detectedIndent && state.lineIndent > textIndent) {
25197
25425
  textIndent = state.lineIndent;
25426
+ }
25198
25427
  if (isEol(ch)) {
25199
25428
  emptyLines++;
25200
25429
  continue;
25201
25430
  }
25202
- if (!detectedIndent && textIndent === 0)
25431
+ if (!detectedIndent && textIndent === 0) {
25203
25432
  throwError(state, "missing indentation for block scalar");
25433
+ }
25204
25434
  if (state.lineIndent < textIndent) {
25205
- if (chomping === CHOMPING_KEEP)
25206
- state.result += common.repeat(`
25435
+ if (chomping === CHOMPING_KEEP) {
25436
+ state.result += common2.repeat(`
25207
25437
  `, didReadContent ? 1 + emptyLines : emptyLines);
25208
- else if (chomping === CHOMPING_CLIP) {
25209
- if (didReadContent)
25438
+ } else if (chomping === CHOMPING_CLIP) {
25439
+ if (didReadContent) {
25210
25440
  state.result += `
25211
25441
  `;
25442
+ }
25212
25443
  }
25213
25444
  break;
25214
25445
  }
25215
- if (folding)
25446
+ if (folding) {
25216
25447
  if (isWhiteSpace(ch)) {
25217
25448
  atMoreIndented = true;
25218
- state.result += common.repeat(`
25449
+ state.result += common2.repeat(`
25219
25450
  `, didReadContent ? 1 + emptyLines : emptyLines);
25220
25451
  } else if (atMoreIndented) {
25221
25452
  atMoreIndented = false;
25222
- state.result += common.repeat(`
25453
+ state.result += common2.repeat(`
25223
25454
  `, emptyLines + 1);
25224
25455
  } else if (emptyLines === 0) {
25225
- if (didReadContent)
25456
+ if (didReadContent) {
25226
25457
  state.result += " ";
25227
- } else
25228
- state.result += common.repeat(`
25458
+ }
25459
+ } else {
25460
+ state.result += common2.repeat(`
25229
25461
  `, emptyLines);
25230
- else
25231
- state.result += common.repeat(`
25462
+ }
25463
+ } else {
25464
+ state.result += common2.repeat(`
25232
25465
  `, didReadContent ? 1 + emptyLines : emptyLines);
25466
+ }
25233
25467
  didReadContent = true;
25234
25468
  detectedIndent = true;
25235
25469
  emptyLines = 0;
25236
25470
  const captureStart = state.position;
25237
- while (!isEol(ch) && ch !== 0)
25471
+ while (!isEol(ch) && ch !== 0) {
25238
25472
  ch = state.input.charCodeAt(++state.position);
25473
+ }
25239
25474
  captureSegment(state, captureStart, state.position, false);
25240
25475
  }
25241
25476
  return true;
@@ -25247,18 +25482,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25247
25482
  let detected = false;
25248
25483
  if (state.firstTabInLine !== -1)
25249
25484
  return false;
25250
- if (state.anchor !== null)
25485
+ if (state.anchor !== null) {
25251
25486
  storeAnchor(state, state.anchor, _result);
25487
+ }
25252
25488
  let ch = state.input.charCodeAt(state.position);
25253
25489
  while (ch !== 0) {
25254
25490
  if (state.firstTabInLine !== -1) {
25255
25491
  state.position = state.firstTabInLine;
25256
25492
  throwError(state, "tab characters must not be used in indentation");
25257
25493
  }
25258
- if (ch !== 45)
25494
+ if (ch !== 45) {
25259
25495
  break;
25260
- if (!isWsOrEol(state.input.charCodeAt(state.position + 1)))
25496
+ }
25497
+ const following = state.input.charCodeAt(state.position + 1);
25498
+ if (!isWsOrEol(following)) {
25261
25499
  break;
25500
+ }
25262
25501
  detected = true;
25263
25502
  state.position++;
25264
25503
  if (skipSeparationSpace(state, true, -1)) {
@@ -25273,10 +25512,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25273
25512
  _result.push(state.result);
25274
25513
  skipSeparationSpace(state, true, -1);
25275
25514
  ch = state.input.charCodeAt(state.position);
25276
- if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
25515
+ if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
25277
25516
  throwError(state, "bad indentation of a sequence entry");
25278
- else if (state.lineIndent < nodeIndent)
25517
+ } else if (state.lineIndent < nodeIndent) {
25279
25518
  break;
25519
+ }
25280
25520
  }
25281
25521
  if (detected) {
25282
25522
  state.tag = _tag;
@@ -25295,7 +25535,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25295
25535
  const _tag = state.tag;
25296
25536
  const _anchor = state.anchor;
25297
25537
  const _result = {};
25298
- const overridableKeys = Object.create(null);
25538
+ const overridableKeys = /* @__PURE__ */ Object.create(null);
25299
25539
  let keyTag = null;
25300
25540
  let keyNode = null;
25301
25541
  let valueNode = null;
@@ -25303,8 +25543,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25303
25543
  let detected = false;
25304
25544
  if (state.firstTabInLine !== -1)
25305
25545
  return false;
25306
- if (state.anchor !== null)
25546
+ if (state.anchor !== null) {
25307
25547
  storeAnchor(state, state.anchor, _result);
25548
+ }
25308
25549
  let ch = state.input.charCodeAt(state.position);
25309
25550
  while (ch !== 0) {
25310
25551
  if (!atExplicitKey && state.firstTabInLine !== -1) {
@@ -25325,24 +25566,28 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25325
25566
  } else if (atExplicitKey) {
25326
25567
  atExplicitKey = false;
25327
25568
  allowCompact = true;
25328
- } else
25569
+ } else {
25329
25570
  throwError(state, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");
25571
+ }
25330
25572
  state.position += 1;
25331
25573
  ch = following;
25332
25574
  } else {
25333
25575
  _keyLine = state.line;
25334
25576
  _keyLineStart = state.lineStart;
25335
25577
  _keyPos = state.position;
25336
- if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true))
25578
+ if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
25337
25579
  break;
25580
+ }
25338
25581
  if (state.line === _line) {
25339
25582
  ch = state.input.charCodeAt(state.position);
25340
- while (isWhiteSpace(ch))
25583
+ while (isWhiteSpace(ch)) {
25341
25584
  ch = state.input.charCodeAt(++state.position);
25585
+ }
25342
25586
  if (ch === 58) {
25343
25587
  ch = state.input.charCodeAt(++state.position);
25344
- if (!isWsOrEol(ch))
25588
+ if (!isWsOrEol(ch)) {
25345
25589
  throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
25590
+ }
25346
25591
  if (atExplicitKey) {
25347
25592
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
25348
25593
  keyTag = keyNode = valueNode = null;
@@ -25352,16 +25597,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25352
25597
  allowCompact = false;
25353
25598
  keyTag = state.tag;
25354
25599
  keyNode = state.result;
25355
- } else if (detected)
25600
+ } else if (detected) {
25356
25601
  throwError(state, "can not read an implicit mapping pair; a colon is missed");
25357
- else {
25602
+ } else {
25358
25603
  state.tag = _tag;
25359
25604
  state.anchor = _anchor;
25360
25605
  return true;
25361
25606
  }
25362
- } else if (detected)
25607
+ } else if (detected) {
25363
25608
  throwError(state, "can not read a block mapping entry; a multiline key may not be an implicit key");
25364
- else {
25609
+ } else {
25365
25610
  state.tag = _tag;
25366
25611
  state.anchor = _anchor;
25367
25612
  return true;
@@ -25373,11 +25618,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25373
25618
  _keyLineStart = state.lineStart;
25374
25619
  _keyPos = state.position;
25375
25620
  }
25376
- if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact))
25377
- if (atExplicitKey)
25621
+ if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
25622
+ if (atExplicitKey) {
25378
25623
  keyNode = state.result;
25379
- else
25624
+ } else {
25380
25625
  valueNode = state.result;
25626
+ }
25627
+ }
25381
25628
  if (!atExplicitKey) {
25382
25629
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
25383
25630
  keyTag = keyNode = valueNode = null;
@@ -25385,13 +25632,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25385
25632
  skipSeparationSpace(state, true, -1);
25386
25633
  ch = state.input.charCodeAt(state.position);
25387
25634
  }
25388
- if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
25635
+ if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
25389
25636
  throwError(state, "bad indentation of a mapping entry");
25390
- else if (state.lineIndent < nodeIndent)
25637
+ } else if (state.lineIndent < nodeIndent) {
25391
25638
  break;
25639
+ }
25392
25640
  }
25393
- if (atExplicitKey)
25641
+ if (atExplicitKey) {
25394
25642
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
25643
+ }
25395
25644
  if (detected) {
25396
25645
  state.tag = _tag;
25397
25646
  state.anchor = _anchor;
@@ -25408,8 +25657,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25408
25657
  let ch = state.input.charCodeAt(state.position);
25409
25658
  if (ch !== 33)
25410
25659
  return false;
25411
- if (state.tag !== null)
25660
+ if (state.tag !== null) {
25412
25661
  throwError(state, "duplication of a tag property");
25662
+ }
25413
25663
  ch = state.input.charCodeAt(++state.position);
25414
25664
  if (ch === 60) {
25415
25665
  isVerbatim = true;
@@ -25418,66 +25668,77 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25418
25668
  isNamed = true;
25419
25669
  tagHandle = "!!";
25420
25670
  ch = state.input.charCodeAt(++state.position);
25421
- } else
25671
+ } else {
25422
25672
  tagHandle = "!";
25673
+ }
25423
25674
  let _position = state.position;
25424
25675
  if (isVerbatim) {
25425
- do
25676
+ do {
25426
25677
  ch = state.input.charCodeAt(++state.position);
25427
- while (ch !== 0 && ch !== 62);
25678
+ } while (ch !== 0 && ch !== 62);
25428
25679
  if (state.position < state.length) {
25429
25680
  tagName = state.input.slice(_position, state.position);
25430
25681
  ch = state.input.charCodeAt(++state.position);
25431
- } else
25682
+ } else {
25432
25683
  throwError(state, "unexpected end of the stream within a verbatim tag");
25684
+ }
25433
25685
  } else {
25434
25686
  while (ch !== 0 && !isWsOrEol(ch)) {
25435
- if (ch === 33)
25687
+ if (ch === 33) {
25436
25688
  if (!isNamed) {
25437
25689
  tagHandle = state.input.slice(_position - 1, state.position + 1);
25438
- if (!PATTERN_TAG_HANDLE.test(tagHandle))
25690
+ if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
25439
25691
  throwError(state, "named tag handle cannot contain such characters");
25692
+ }
25440
25693
  isNamed = true;
25441
25694
  _position = state.position + 1;
25442
- } else
25695
+ } else {
25443
25696
  throwError(state, "tag suffix cannot contain exclamation marks");
25697
+ }
25698
+ }
25444
25699
  ch = state.input.charCodeAt(++state.position);
25445
25700
  }
25446
25701
  tagName = state.input.slice(_position, state.position);
25447
- if (PATTERN_FLOW_INDICATORS.test(tagName))
25702
+ if (PATTERN_FLOW_INDICATORS.test(tagName)) {
25448
25703
  throwError(state, "tag suffix cannot contain flow indicator characters");
25704
+ }
25449
25705
  }
25450
- if (tagName && !PATTERN_TAG_URI.test(tagName))
25706
+ if (tagName && !PATTERN_TAG_URI.test(tagName)) {
25451
25707
  throwError(state, "tag name cannot contain such characters: " + tagName);
25708
+ }
25452
25709
  try {
25453
25710
  tagName = decodeURIComponent(tagName);
25454
25711
  } catch (err) {
25455
25712
  throwError(state, "tag name is malformed: " + tagName);
25456
25713
  }
25457
- if (isVerbatim)
25714
+ if (isVerbatim) {
25458
25715
  state.tag = tagName;
25459
- else if (_hasOwnProperty.call(state.tagMap, tagHandle))
25716
+ } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {
25460
25717
  state.tag = state.tagMap[tagHandle] + tagName;
25461
- else if (tagHandle === "!")
25718
+ } else if (tagHandle === "!") {
25462
25719
  state.tag = "!" + tagName;
25463
- else if (tagHandle === "!!")
25720
+ } else if (tagHandle === "!!") {
25464
25721
  state.tag = "tag:yaml.org,2002:" + tagName;
25465
- else
25722
+ } else {
25466
25723
  throwError(state, 'undeclared tag handle "' + tagHandle + '"');
25724
+ }
25467
25725
  return true;
25468
25726
  }
25469
25727
  function readAnchorProperty(state) {
25470
25728
  let ch = state.input.charCodeAt(state.position);
25471
25729
  if (ch !== 38)
25472
25730
  return false;
25473
- if (state.anchor !== null)
25731
+ if (state.anchor !== null) {
25474
25732
  throwError(state, "duplication of an anchor property");
25733
+ }
25475
25734
  ch = state.input.charCodeAt(++state.position);
25476
25735
  const _position = state.position;
25477
- while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
25736
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
25478
25737
  ch = state.input.charCodeAt(++state.position);
25479
- if (state.position === _position)
25738
+ }
25739
+ if (state.position === _position) {
25480
25740
  throwError(state, "name of an anchor node must contain at least one character");
25741
+ }
25481
25742
  state.anchor = state.input.slice(_position, state.position);
25482
25743
  return true;
25483
25744
  }
@@ -25487,13 +25748,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25487
25748
  return false;
25488
25749
  ch = state.input.charCodeAt(++state.position);
25489
25750
  const _position = state.position;
25490
- while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
25751
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
25491
25752
  ch = state.input.charCodeAt(++state.position);
25492
- if (state.position === _position)
25753
+ }
25754
+ if (state.position === _position) {
25493
25755
  throwError(state, "name of an alias node must contain at least one character");
25756
+ }
25494
25757
  const alias = state.input.slice(_position, state.position);
25495
- if (!_hasOwnProperty.call(state.anchorMap, alias))
25758
+ if (!_hasOwnProperty.call(state.anchorMap, alias)) {
25496
25759
  throwError(state, 'unidentified alias "' + alias + '"');
25760
+ }
25497
25761
  state.result = state.anchorMap[alias];
25498
25762
  skipSeparationSpace(state, true, -1);
25499
25763
  return true;
@@ -25521,14 +25785,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25521
25785
  let atNewLine = false;
25522
25786
  let hasContent = false;
25523
25787
  let propertyStart = null;
25524
- let type;
25788
+ let type2;
25525
25789
  let flowIndent;
25526
25790
  let blockIndent;
25527
- if (state.depth >= state.maxDepth)
25791
+ if (state.depth >= state.maxDepth) {
25528
25792
  throwError(state, "nesting exceeded maxDepth (" + state.maxDepth + ")");
25793
+ }
25529
25794
  state.depth += 1;
25530
- if (state.listener !== null)
25795
+ if (state.listener !== null) {
25531
25796
  state.listener("open", state);
25797
+ }
25532
25798
  state.tag = null;
25533
25799
  state.anchor = null;
25534
25800
  state.kind = null;
@@ -25537,110 +25803,131 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25537
25803
  if (allowToSeek) {
25538
25804
  if (skipSeparationSpace(state, true, -1)) {
25539
25805
  atNewLine = true;
25540
- if (state.lineIndent > parentIndent)
25806
+ if (state.lineIndent > parentIndent) {
25541
25807
  indentStatus = 1;
25542
- else if (state.lineIndent === parentIndent)
25808
+ } else if (state.lineIndent === parentIndent) {
25543
25809
  indentStatus = 0;
25544
- else if (state.lineIndent < parentIndent)
25810
+ } else if (state.lineIndent < parentIndent) {
25545
25811
  indentStatus = -1;
25812
+ }
25546
25813
  }
25547
25814
  }
25548
- if (indentStatus === 1)
25815
+ if (indentStatus === 1) {
25549
25816
  while (true) {
25550
25817
  const ch = state.input.charCodeAt(state.position);
25551
25818
  const propertyState = snapshotState(state);
25552
- if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null))
25819
+ if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null)) {
25553
25820
  break;
25554
- if (!readTagProperty(state) && !readAnchorProperty(state))
25821
+ }
25822
+ if (!readTagProperty(state) && !readAnchorProperty(state)) {
25555
25823
  break;
25556
- if (propertyStart === null)
25824
+ }
25825
+ if (propertyStart === null) {
25557
25826
  propertyStart = propertyState;
25827
+ }
25558
25828
  if (skipSeparationSpace(state, true, -1)) {
25559
25829
  atNewLine = true;
25560
25830
  allowBlockCollections = allowBlockStyles;
25561
- if (state.lineIndent > parentIndent)
25831
+ if (state.lineIndent > parentIndent) {
25562
25832
  indentStatus = 1;
25563
- else if (state.lineIndent === parentIndent)
25833
+ } else if (state.lineIndent === parentIndent) {
25564
25834
  indentStatus = 0;
25565
- else if (state.lineIndent < parentIndent)
25835
+ } else if (state.lineIndent < parentIndent) {
25566
25836
  indentStatus = -1;
25567
- } else
25837
+ }
25838
+ } else {
25568
25839
  allowBlockCollections = false;
25840
+ }
25569
25841
  }
25570
- if (allowBlockCollections)
25842
+ }
25843
+ if (allowBlockCollections) {
25571
25844
  allowBlockCollections = atNewLine || allowCompact;
25845
+ }
25572
25846
  if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
25573
- if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext)
25847
+ if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
25574
25848
  flowIndent = parentIndent;
25575
- else
25849
+ } else {
25576
25850
  flowIndent = parentIndent + 1;
25851
+ }
25577
25852
  blockIndent = state.position - state.lineStart;
25578
- if (indentStatus === 1)
25579
- if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent))
25853
+ if (indentStatus === 1) {
25854
+ if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) {
25580
25855
  hasContent = true;
25581
- else {
25856
+ } else {
25582
25857
  const ch = state.input.charCodeAt(state.position);
25583
- if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent))
25858
+ if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) {
25584
25859
  hasContent = true;
25585
- else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent))
25860
+ } else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) {
25586
25861
  hasContent = true;
25587
- else if (readAlias(state)) {
25862
+ } else if (readAlias(state)) {
25588
25863
  hasContent = true;
25589
- if (state.tag !== null || state.anchor !== null)
25864
+ if (state.tag !== null || state.anchor !== null) {
25590
25865
  throwError(state, "alias node should not have any properties");
25866
+ }
25591
25867
  } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
25592
25868
  hasContent = true;
25593
- if (state.tag === null)
25869
+ if (state.tag === null) {
25594
25870
  state.tag = "?";
25871
+ }
25595
25872
  }
25596
- if (state.anchor !== null)
25873
+ if (state.anchor !== null) {
25597
25874
  storeAnchor(state, state.anchor, state.result);
25875
+ }
25598
25876
  }
25599
- else if (indentStatus === 0)
25877
+ } else if (indentStatus === 0) {
25600
25878
  hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
25879
+ }
25601
25880
  }
25602
25881
  if (state.tag === null) {
25603
- if (state.anchor !== null)
25882
+ if (state.anchor !== null) {
25604
25883
  storeAnchor(state, state.anchor, state.result);
25884
+ }
25605
25885
  } else if (state.tag === "?") {
25606
- if (state.result !== null && state.kind !== "scalar")
25886
+ if (state.result !== null && state.kind !== "scalar") {
25607
25887
  throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
25888
+ }
25608
25889
  for (let typeIndex = 0, typeQuantity = state.implicitTypes.length;typeIndex < typeQuantity; typeIndex += 1) {
25609
- type = state.implicitTypes[typeIndex];
25610
- if (type.resolve(state.result)) {
25611
- state.result = type.construct(state.result);
25612
- state.tag = type.tag;
25613
- if (state.anchor !== null)
25890
+ type2 = state.implicitTypes[typeIndex];
25891
+ if (type2.resolve(state.result)) {
25892
+ state.result = type2.construct(state.result);
25893
+ state.tag = type2.tag;
25894
+ if (state.anchor !== null) {
25614
25895
  storeAnchor(state, state.anchor, state.result);
25896
+ }
25615
25897
  break;
25616
25898
  }
25617
25899
  }
25618
25900
  } else if (state.tag !== "!") {
25619
- if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag))
25620
- type = state.typeMap[state.kind || "fallback"][state.tag];
25621
- else {
25622
- type = null;
25901
+ if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag)) {
25902
+ type2 = state.typeMap[state.kind || "fallback"][state.tag];
25903
+ } else {
25904
+ type2 = null;
25623
25905
  const typeList = state.typeMap.multi[state.kind || "fallback"];
25624
- for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1)
25906
+ for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1) {
25625
25907
  if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
25626
- type = typeList[typeIndex];
25908
+ type2 = typeList[typeIndex];
25627
25909
  break;
25628
25910
  }
25911
+ }
25629
25912
  }
25630
- if (!type)
25913
+ if (!type2) {
25631
25914
  throwError(state, "unknown tag !<" + state.tag + ">");
25632
- if (state.result !== null && type.kind !== state.kind)
25633
- throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"');
25634
- if (!type.resolve(state.result, state.tag))
25915
+ }
25916
+ if (state.result !== null && type2.kind !== state.kind) {
25917
+ throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type2.kind + '", not "' + state.kind + '"');
25918
+ }
25919
+ if (!type2.resolve(state.result, state.tag)) {
25635
25920
  throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
25636
- else {
25637
- state.result = type.construct(state.result, state.tag);
25638
- if (state.anchor !== null)
25921
+ } else {
25922
+ state.result = type2.construct(state.result, state.tag);
25923
+ if (state.anchor !== null) {
25639
25924
  storeAnchor(state, state.anchor, state.result);
25925
+ }
25640
25926
  }
25641
25927
  }
25642
- if (state.listener !== null)
25928
+ if (state.listener !== null) {
25643
25929
  state.listener("close", state);
25930
+ }
25644
25931
  state.depth -= 1;
25645
25932
  return state.tag !== null || state.anchor !== null || hasContent;
25646
25933
  }
@@ -25650,55 +25937,63 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25650
25937
  let ch;
25651
25938
  state.version = null;
25652
25939
  state.checkLineBreaks = state.legacy;
25653
- state.tagMap = Object.create(null);
25654
- state.anchorMap = Object.create(null);
25940
+ state.tagMap = /* @__PURE__ */ Object.create(null);
25941
+ state.anchorMap = /* @__PURE__ */ Object.create(null);
25655
25942
  while ((ch = state.input.charCodeAt(state.position)) !== 0) {
25656
25943
  skipSeparationSpace(state, true, -1);
25657
25944
  ch = state.input.charCodeAt(state.position);
25658
- if (state.lineIndent > 0 || ch !== 37)
25945
+ if (state.lineIndent > 0 || ch !== 37) {
25659
25946
  break;
25947
+ }
25660
25948
  hasDirectives = true;
25661
25949
  ch = state.input.charCodeAt(++state.position);
25662
25950
  let _position = state.position;
25663
- while (ch !== 0 && !isWsOrEol(ch))
25951
+ while (ch !== 0 && !isWsOrEol(ch)) {
25664
25952
  ch = state.input.charCodeAt(++state.position);
25953
+ }
25665
25954
  const directiveName = state.input.slice(_position, state.position);
25666
25955
  const directiveArgs = [];
25667
- if (directiveName.length < 1)
25956
+ if (directiveName.length < 1) {
25668
25957
  throwError(state, "directive name must not be less than one character in length");
25958
+ }
25669
25959
  while (ch !== 0) {
25670
- while (isWhiteSpace(ch))
25960
+ while (isWhiteSpace(ch)) {
25671
25961
  ch = state.input.charCodeAt(++state.position);
25962
+ }
25672
25963
  if (ch === 35) {
25673
- do
25964
+ do {
25674
25965
  ch = state.input.charCodeAt(++state.position);
25675
- while (ch !== 0 && !isEol(ch));
25966
+ } while (ch !== 0 && !isEol(ch));
25676
25967
  break;
25677
25968
  }
25678
25969
  if (isEol(ch))
25679
25970
  break;
25680
25971
  _position = state.position;
25681
- while (ch !== 0 && !isWsOrEol(ch))
25972
+ while (ch !== 0 && !isWsOrEol(ch)) {
25682
25973
  ch = state.input.charCodeAt(++state.position);
25974
+ }
25683
25975
  directiveArgs.push(state.input.slice(_position, state.position));
25684
25976
  }
25685
25977
  if (ch !== 0)
25686
25978
  readLineBreak(state);
25687
- if (_hasOwnProperty.call(directiveHandlers, directiveName))
25979
+ if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
25688
25980
  directiveHandlers[directiveName](state, directiveName, directiveArgs);
25689
- else
25981
+ } else {
25690
25982
  throwWarning(state, 'unknown document directive "' + directiveName + '"');
25983
+ }
25691
25984
  }
25692
25985
  skipSeparationSpace(state, true, -1);
25693
25986
  if (state.lineIndent === 0 && state.input.charCodeAt(state.position) === 45 && state.input.charCodeAt(state.position + 1) === 45 && state.input.charCodeAt(state.position + 2) === 45) {
25694
25987
  state.position += 3;
25695
25988
  skipSeparationSpace(state, true, -1);
25696
- } else if (hasDirectives)
25989
+ } else if (hasDirectives) {
25697
25990
  throwError(state, "directives end mark is expected");
25991
+ }
25698
25992
  composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
25699
25993
  skipSeparationSpace(state, true, -1);
25700
- if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position)))
25994
+ if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
25701
25995
  throwWarning(state, "non-ASCII line breaks are interpreted as content");
25996
+ }
25702
25997
  state.documents.push(state.result);
25703
25998
  if (state.position === state.lineStart && testDocumentSeparator(state)) {
25704
25999
  if (state.input.charCodeAt(state.position) === 46) {
@@ -25707,18 +26002,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25707
26002
  }
25708
26003
  return;
25709
26004
  }
25710
- if (state.position < state.length - 1)
26005
+ if (state.position < state.length - 1) {
25711
26006
  throwError(state, "end of the stream or a document separator is expected");
26007
+ }
25712
26008
  }
25713
26009
  function loadDocuments(input, options) {
25714
26010
  input = String(input);
25715
26011
  options = options || {};
25716
26012
  if (input.length !== 0) {
25717
- if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13)
26013
+ if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) {
25718
26014
  input += `
25719
26015
  `;
25720
- if (input.charCodeAt(0) === 65279)
26016
+ }
26017
+ if (input.charCodeAt(0) === 65279) {
25721
26018
  input = input.slice(1);
26019
+ }
25722
26020
  }
25723
26021
  const state = new State(input, options);
25724
26022
  const nullpos = input.indexOf("\x00");
@@ -25731,64 +26029,74 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25731
26029
  state.lineIndent += 1;
25732
26030
  state.position += 1;
25733
26031
  }
25734
- while (state.position < state.length - 1)
26032
+ while (state.position < state.length - 1) {
25735
26033
  readDocument(state);
26034
+ }
25736
26035
  return state.documents;
25737
26036
  }
25738
- function loadAll(input, iterator, options) {
26037
+ function loadAll2(input, iterator, options) {
25739
26038
  if (iterator !== null && typeof iterator === "object" && typeof options === "undefined") {
25740
26039
  options = iterator;
25741
26040
  iterator = null;
25742
26041
  }
25743
26042
  const documents = loadDocuments(input, options);
25744
- if (typeof iterator !== "function")
26043
+ if (typeof iterator !== "function") {
25745
26044
  return documents;
25746
- for (let index = 0, length = documents.length;index < length; index += 1)
26045
+ }
26046
+ for (let index = 0, length = documents.length;index < length; index += 1) {
25747
26047
  iterator(documents[index]);
26048
+ }
25748
26049
  }
25749
- function load(input, options) {
26050
+ function load2(input, options) {
25750
26051
  const documents = loadDocuments(input, options);
25751
- if (documents.length === 0)
26052
+ if (documents.length === 0) {
25752
26053
  return;
25753
- else if (documents.length === 1)
26054
+ } else if (documents.length === 1) {
25754
26055
  return documents[0];
25755
- throw new YAMLException("expected a single document in the stream, but found more");
26056
+ }
26057
+ throw new YAMLException2("expected a single document in the stream, but found more");
25756
26058
  }
25757
- module.exports.loadAll = loadAll;
25758
- module.exports.load = load;
25759
- });
25760
- var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25761
- var common = require_common();
25762
- var YAMLException = require_exception();
25763
- var DEFAULT_SCHEMA = require_default();
25764
- var _toString = Object.prototype.toString;
25765
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
25766
- var CHAR_BOM = 65279;
25767
- var CHAR_TAB = 9;
25768
- var CHAR_LINE_FEED = 10;
25769
- var CHAR_CARRIAGE_RETURN = 13;
25770
- var CHAR_SPACE = 32;
25771
- var CHAR_EXCLAMATION = 33;
25772
- var CHAR_DOUBLE_QUOTE = 34;
25773
- var CHAR_SHARP = 35;
25774
- var CHAR_PERCENT = 37;
25775
- var CHAR_AMPERSAND = 38;
25776
- var CHAR_SINGLE_QUOTE = 39;
25777
- var CHAR_ASTERISK = 42;
25778
- var CHAR_COMMA = 44;
25779
- var CHAR_MINUS = 45;
25780
- var CHAR_COLON = 58;
25781
- var CHAR_EQUALS = 61;
25782
- var CHAR_GREATER_THAN = 62;
25783
- var CHAR_QUESTION = 63;
25784
- var CHAR_COMMERCIAL_AT = 64;
25785
- var CHAR_LEFT_SQUARE_BRACKET = 91;
25786
- var CHAR_RIGHT_SQUARE_BRACKET = 93;
25787
- var CHAR_GRAVE_ACCENT = 96;
25788
- var CHAR_LEFT_CURLY_BRACKET = 123;
25789
- var CHAR_VERTICAL_LINE = 124;
25790
- var CHAR_RIGHT_CURLY_BRACKET = 125;
25791
- var ESCAPE_SEQUENCES = {};
26059
+ loader.loadAll = loadAll2;
26060
+ loader.load = load2;
26061
+ return loader;
26062
+ }
26063
+ var dumper = {};
26064
+ var hasRequiredDumper;
26065
+ function requireDumper() {
26066
+ if (hasRequiredDumper)
26067
+ return dumper;
26068
+ hasRequiredDumper = 1;
26069
+ const common2 = requireCommon();
26070
+ const YAMLException2 = requireException();
26071
+ const DEFAULT_SCHEMA2 = require_default();
26072
+ const _toString = Object.prototype.toString;
26073
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
26074
+ const CHAR_BOM = 65279;
26075
+ const CHAR_TAB = 9;
26076
+ const CHAR_LINE_FEED = 10;
26077
+ const CHAR_CARRIAGE_RETURN = 13;
26078
+ const CHAR_SPACE = 32;
26079
+ const CHAR_EXCLAMATION = 33;
26080
+ const CHAR_DOUBLE_QUOTE = 34;
26081
+ const CHAR_SHARP = 35;
26082
+ const CHAR_PERCENT = 37;
26083
+ const CHAR_AMPERSAND = 38;
26084
+ const CHAR_SINGLE_QUOTE = 39;
26085
+ const CHAR_ASTERISK = 42;
26086
+ const CHAR_COMMA = 44;
26087
+ const CHAR_MINUS = 45;
26088
+ const CHAR_COLON = 58;
26089
+ const CHAR_EQUALS = 61;
26090
+ const CHAR_GREATER_THAN = 62;
26091
+ const CHAR_QUESTION = 63;
26092
+ const CHAR_COMMERCIAL_AT = 64;
26093
+ const CHAR_LEFT_SQUARE_BRACKET = 91;
26094
+ const CHAR_RIGHT_SQUARE_BRACKET = 93;
26095
+ const CHAR_GRAVE_ACCENT = 96;
26096
+ const CHAR_LEFT_CURLY_BRACKET = 123;
26097
+ const CHAR_VERTICAL_LINE = 124;
26098
+ const CHAR_RIGHT_CURLY_BRACKET = 125;
26099
+ const ESCAPE_SEQUENCES = {};
25792
26100
  ESCAPE_SEQUENCES[0] = "\\0";
25793
26101
  ESCAPE_SEQUENCES[7] = "\\a";
25794
26102
  ESCAPE_SEQUENCES[8] = "\\b";
@@ -25804,7 +26112,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25804
26112
  ESCAPE_SEQUENCES[160] = "\\_";
25805
26113
  ESCAPE_SEQUENCES[8232] = "\\L";
25806
26114
  ESCAPE_SEQUENCES[8233] = "\\P";
25807
- var DEPRECATED_BOOLEANS_SYNTAX = [
26115
+ const DEPRECATED_BOOLEANS_SYNTAX = [
25808
26116
  "y",
25809
26117
  "Y",
25810
26118
  "yes",
@@ -25822,20 +26130,22 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25822
26130
  "Off",
25823
26131
  "OFF"
25824
26132
  ];
25825
- var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
25826
- function compileStyleMap(schema, map) {
25827
- if (map === null)
26133
+ const DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
26134
+ function compileStyleMap(schema2, map2) {
26135
+ if (map2 === null)
25828
26136
  return {};
25829
26137
  const result = {};
25830
- const keys = Object.keys(map);
26138
+ const keys = Object.keys(map2);
25831
26139
  for (let index = 0, length = keys.length;index < length; index += 1) {
25832
26140
  let tag = keys[index];
25833
- let style = String(map[tag]);
25834
- if (tag.slice(0, 2) === "!!")
26141
+ let style = String(map2[tag]);
26142
+ if (tag.slice(0, 2) === "!!") {
25835
26143
  tag = "tag:yaml.org,2002:" + tag.slice(2);
25836
- const type = schema.compiledTypeMap["fallback"][tag];
25837
- if (type && _hasOwnProperty.call(type.styleAliases, style))
25838
- style = type.styleAliases[style];
26144
+ }
26145
+ const type2 = schema2.compiledTypeMap["fallback"][tag];
26146
+ if (type2 && _hasOwnProperty.call(type2.styleAliases, style)) {
26147
+ style = type2.styleAliases[style];
26148
+ }
25839
26149
  result[tag] = style;
25840
26150
  }
25841
26151
  return result;
@@ -25853,18 +26163,19 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25853
26163
  } else if (character <= 4294967295) {
25854
26164
  handle = "U";
25855
26165
  length = 8;
25856
- } else
25857
- throw new YAMLException("code point within a string may not be greater than 0xFFFFFFFF");
25858
- return "\\" + handle + common.repeat("0", length - string.length) + string;
26166
+ } else {
26167
+ throw new YAMLException2("code point within a string may not be greater than 0xFFFFFFFF");
26168
+ }
26169
+ return "\\" + handle + common2.repeat("0", length - string.length) + string;
25859
26170
  }
25860
- var QUOTING_TYPE_SINGLE = 1;
25861
- var QUOTING_TYPE_DOUBLE = 2;
26171
+ const QUOTING_TYPE_SINGLE = 1;
26172
+ const QUOTING_TYPE_DOUBLE = 2;
25862
26173
  function State(options) {
25863
- this.schema = options["schema"] || DEFAULT_SCHEMA;
26174
+ this.schema = options["schema"] || DEFAULT_SCHEMA2;
25864
26175
  this.indent = Math.max(1, options["indent"] || 2);
25865
26176
  this.noArrayIndent = options["noArrayIndent"] || false;
25866
26177
  this.skipInvalid = options["skipInvalid"] || false;
25867
- this.flowLevel = common.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
26178
+ this.flowLevel = common2.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
25868
26179
  this.styleMap = compileStyleMap(this.schema, options["styles"] || null);
25869
26180
  this.sortKeys = options["sortKeys"] || false;
25870
26181
  this.lineWidth = options["lineWidth"] || 80;
@@ -25882,7 +26193,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25882
26193
  this.usedDuplicates = null;
25883
26194
  }
25884
26195
  function indentString(string, spaces) {
25885
- const ind = common.repeat(" ", spaces);
26196
+ const ind = common2.repeat(" ", spaces);
25886
26197
  let position = 0;
25887
26198
  let result = "";
25888
26199
  const length = string.length;
@@ -25906,12 +26217,15 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25906
26217
  }
25907
26218
  function generateNextLine(state, level) {
25908
26219
  return `
25909
- ` + common.repeat(" ", state.indent * level);
26220
+ ` + common2.repeat(" ", state.indent * level);
25910
26221
  }
25911
- function testImplicitResolving(state, str) {
25912
- for (let index = 0, length = state.implicitTypes.length;index < length; index += 1)
25913
- if (state.implicitTypes[index].resolve(str))
26222
+ function testImplicitResolving(state, str2) {
26223
+ for (let index = 0, length = state.implicitTypes.length;index < length; index += 1) {
26224
+ const type2 = state.implicitTypes[index];
26225
+ if (type2.resolve(str2)) {
25914
26226
  return true;
26227
+ }
26228
+ }
25915
26229
  return false;
25916
26230
  }
25917
26231
  function isWhitespace(c) {
@@ -25939,19 +26253,21 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25939
26253
  let second;
25940
26254
  if (first >= 55296 && first <= 56319 && pos + 1 < string.length) {
25941
26255
  second = string.charCodeAt(pos + 1);
25942
- if (second >= 56320 && second <= 57343)
26256
+ if (second >= 56320 && second <= 57343) {
25943
26257
  return (first - 55296) * 1024 + second - 56320 + 65536;
26258
+ }
25944
26259
  }
25945
26260
  return first;
25946
26261
  }
25947
26262
  function needIndentIndicator(string) {
25948
- return /^\n* /.test(string);
25949
- }
25950
- var STYLE_PLAIN = 1;
25951
- var STYLE_SINGLE = 2;
25952
- var STYLE_LITERAL = 3;
25953
- var STYLE_FOLDED = 4;
25954
- var STYLE_DOUBLE = 5;
26263
+ const leadingSpaceRe = /^\n* /;
26264
+ return leadingSpaceRe.test(string);
26265
+ }
26266
+ const STYLE_PLAIN = 1;
26267
+ const STYLE_SINGLE = 2;
26268
+ const STYLE_LITERAL = 3;
26269
+ const STYLE_FOLDED = 4;
26270
+ const STYLE_DOUBLE = 5;
25955
26271
  function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
25956
26272
  let i;
25957
26273
  let char = 0;
@@ -25961,15 +26277,16 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25961
26277
  const shouldTrackWidth = lineWidth !== -1;
25962
26278
  let previousLineBreak = -1;
25963
26279
  let plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
25964
- if (singleLineOnly || forceQuotes)
26280
+ if (singleLineOnly || forceQuotes) {
25965
26281
  for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
25966
26282
  char = codePointAt(string, i);
25967
- if (!isPrintable(char))
26283
+ if (!isPrintable(char)) {
25968
26284
  return STYLE_DOUBLE;
26285
+ }
25969
26286
  plain = plain && isPlainSafe(char, prevChar, inblock);
25970
26287
  prevChar = char;
25971
26288
  }
25972
- else {
26289
+ } else {
25973
26290
  for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
25974
26291
  char = codePointAt(string, i);
25975
26292
  if (char === CHAR_LINE_FEED) {
@@ -25978,31 +26295,37 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25978
26295
  hasFoldableLine = hasFoldableLine || i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
25979
26296
  previousLineBreak = i;
25980
26297
  }
25981
- } else if (!isPrintable(char))
26298
+ } else if (!isPrintable(char)) {
25982
26299
  return STYLE_DOUBLE;
26300
+ }
25983
26301
  plain = plain && isPlainSafe(char, prevChar, inblock);
25984
26302
  prevChar = char;
25985
26303
  }
25986
- hasFoldableLine = hasFoldableLine || shouldTrackWidth && i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
26304
+ hasFoldableLine = hasFoldableLine || shouldTrackWidth && (i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ");
25987
26305
  }
25988
26306
  if (!hasLineBreak && !hasFoldableLine) {
25989
- if (plain && !forceQuotes && !testAmbiguousType(string))
26307
+ if (plain && !forceQuotes && !testAmbiguousType(string)) {
25990
26308
  return STYLE_PLAIN;
26309
+ }
25991
26310
  return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
25992
26311
  }
25993
- if (indentPerLevel > 9 && needIndentIndicator(string))
26312
+ if (indentPerLevel > 9 && needIndentIndicator(string)) {
25994
26313
  return STYLE_DOUBLE;
25995
- if (!forceQuotes)
26314
+ }
26315
+ if (!forceQuotes) {
25996
26316
  return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
26317
+ }
25997
26318
  return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
25998
26319
  }
25999
26320
  function writeScalar(state, string, level, iskey, inblock) {
26000
26321
  state.dump = function() {
26001
- if (string.length === 0)
26322
+ if (string.length === 0) {
26002
26323
  return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''";
26324
+ }
26003
26325
  if (!state.noCompatMode) {
26004
- if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string))
26326
+ if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {
26005
26327
  return state.quotingType === QUOTING_TYPE_DOUBLE ? '"' + string + '"' : "'" + string + "'";
26328
+ }
26006
26329
  }
26007
26330
  const indent = state.indent * Math.max(1, level);
26008
26331
  const lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
@@ -26020,9 +26343,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
26020
26343
  case STYLE_FOLDED:
26021
26344
  return ">" + blockHeader(string, state.indent) + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
26022
26345
  case STYLE_DOUBLE:
26023
- return '"' + escapeString(string, lineWidth) + '"';
26346
+ return '"' + escapeString(string) + '"';
26024
26347
  default:
26025
- throw new YAMLException("impossible error: invalid scalar style");
26348
+ throw new YAMLException2("impossible error: invalid scalar style");
26026
26349
  }
26027
26350
  }();
26028
26351
  }
@@ -26030,9 +26353,11 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
26030
26353
  const indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
26031
26354
  const clip = string[string.length - 1] === `
26032
26355
  `;
26033
- return indentIndicator + (clip && (string[string.length - 2] === `
26356
+ const keep = clip && (string[string.length - 2] === `
26034
26357
  ` || string === `
26035
- `) ? "+" : clip ? "" : "-") + `
26358
+ `);
26359
+ const chomp = keep ? "+" : clip ? "" : "-";
26360
+ return indentIndicator + chomp + `
26036
26361
  `;
26037
26362
  }
26038
26363
  function dropEndingNewline(string) {
@@ -26084,11 +26409,12 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
26084
26409
  }
26085
26410
  result += `
26086
26411
  `;
26087
- if (line.length - start > width && curr > start)
26412
+ if (line.length - start > width && curr > start) {
26088
26413
  result += line.slice(start, curr) + `
26089
26414
  ` + line.slice(curr + 1);
26090
- else
26415
+ } else {
26091
26416
  result += line.slice(start);
26417
+ }
26092
26418
  return result.slice(1);
26093
26419
  }
26094
26420
  function escapeString(string) {
@@ -26101,8 +26427,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
26101
26427
  result += string[i];
26102
26428
  if (char >= 65536)
26103
26429
  result += string[i + 1];
26104
- } else
26430
+ } else {
26105
26431
  result += escapeSeq || encodeHex(char);
26432
+ }
26106
26433
  }
26107
26434
  return result;
26108
26435
  }
@@ -26111,8 +26438,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
26111
26438
  const _tag = state.tag;
26112
26439
  for (let index = 0, length = object.length;index < length; index += 1) {
26113
26440
  let value = object[index];
26114
- if (state.replacer)
26441
+ if (state.replacer) {
26115
26442
  value = state.replacer.call(object, String(index), value);
26443
+ }
26116
26444
  if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) {
26117
26445
  if (_result !== "")
26118
26446
  _result += "," + (!state.condenseFlow ? " " : "");
@@ -26127,15 +26455,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
26127
26455
  const _tag = state.tag;
26128
26456
  for (let index = 0, length = object.length;index < length; index += 1) {
26129
26457
  let value = object[index];
26130
- if (state.replacer)
26458
+ if (state.replacer) {
26131
26459
  value = state.replacer.call(object, String(index), value);
26460
+ }
26132
26461
  if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) {
26133
- if (!compact || _result !== "")
26462
+ if (!compact || _result !== "") {
26134
26463
  _result += generateNextLine(state, level);
26135
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
26464
+ }
26465
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
26136
26466
  _result += "-";
26137
- else
26467
+ } else {
26138
26468
  _result += "- ";
26469
+ }
26139
26470
  _result += state.dump;
26140
26471
  }
26141
26472
  }
@@ -26154,15 +26485,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
26154
26485
  pairBuffer += '"';
26155
26486
  const objectKey = objectKeyList[index];
26156
26487
  let objectValue = object[objectKey];
26157
- if (state.replacer)
26488
+ if (state.replacer) {
26158
26489
  objectValue = state.replacer.call(object, objectKey, objectValue);
26159
- if (!writeNode(state, level, objectKey, false, false))
26490
+ }
26491
+ if (!writeNode(state, level, objectKey, false, false)) {
26160
26492
  continue;
26493
+ }
26161
26494
  if (state.dump.length > 1024)
26162
26495
  pairBuffer += "? ";
26163
26496
  pairBuffer += state.dump + (state.condenseFlow ? '"' : "") + ":" + (state.condenseFlow ? "" : " ");
26164
- if (!writeNode(state, level, objectValue, false, false))
26497
+ if (!writeNode(state, level, objectValue, false, false)) {
26165
26498
  continue;
26499
+ }
26166
26500
  pairBuffer += state.dump;
26167
26501
  _result += pairBuffer;
26168
26502
  }
@@ -26173,37 +26507,46 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
26173
26507
  let _result = "";
26174
26508
  const _tag = state.tag;
26175
26509
  const objectKeyList = Object.keys(object);
26176
- if (state.sortKeys === true)
26510
+ if (state.sortKeys === true) {
26177
26511
  objectKeyList.sort();
26178
- else if (typeof state.sortKeys === "function")
26512
+ } else if (typeof state.sortKeys === "function") {
26179
26513
  objectKeyList.sort(state.sortKeys);
26180
- else if (state.sortKeys)
26181
- throw new YAMLException("sortKeys must be a boolean or a function");
26514
+ } else if (state.sortKeys) {
26515
+ throw new YAMLException2("sortKeys must be a boolean or a function");
26516
+ }
26182
26517
  for (let index = 0, length = objectKeyList.length;index < length; index += 1) {
26183
26518
  let pairBuffer = "";
26184
- if (!compact || _result !== "")
26519
+ if (!compact || _result !== "") {
26185
26520
  pairBuffer += generateNextLine(state, level);
26521
+ }
26186
26522
  const objectKey = objectKeyList[index];
26187
26523
  let objectValue = object[objectKey];
26188
- if (state.replacer)
26524
+ if (state.replacer) {
26189
26525
  objectValue = state.replacer.call(object, objectKey, objectValue);
26190
- if (!writeNode(state, level + 1, objectKey, true, true, true))
26526
+ }
26527
+ if (!writeNode(state, level + 1, objectKey, true, true, true)) {
26191
26528
  continue;
26529
+ }
26192
26530
  const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
26193
- if (explicitPair)
26194
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
26531
+ if (explicitPair) {
26532
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
26195
26533
  pairBuffer += "?";
26196
- else
26534
+ } else {
26197
26535
  pairBuffer += "? ";
26536
+ }
26537
+ }
26198
26538
  pairBuffer += state.dump;
26199
- if (explicitPair)
26539
+ if (explicitPair) {
26200
26540
  pairBuffer += generateNextLine(state, level);
26201
- if (!writeNode(state, level + 1, objectValue, true, explicitPair))
26541
+ }
26542
+ if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
26202
26543
  continue;
26203
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
26544
+ }
26545
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
26204
26546
  pairBuffer += ":";
26205
- else
26547
+ } else {
26206
26548
  pairBuffer += ": ";
26549
+ }
26207
26550
  pairBuffer += state.dump;
26208
26551
  _result += pairBuffer;
26209
26552
  }
@@ -26213,24 +26556,27 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
26213
26556
  function detectType(state, object, explicit) {
26214
26557
  const typeList = explicit ? state.explicitTypes : state.implicitTypes;
26215
26558
  for (let index = 0, length = typeList.length;index < length; index += 1) {
26216
- const type = typeList[index];
26217
- if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object === "object" && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
26218
- if (explicit)
26219
- if (type.multi && type.representName)
26220
- state.tag = type.representName(object);
26221
- else
26222
- state.tag = type.tag;
26223
- else
26559
+ const type2 = typeList[index];
26560
+ if ((type2.instanceOf || type2.predicate) && (!type2.instanceOf || typeof object === "object" && object instanceof type2.instanceOf) && (!type2.predicate || type2.predicate(object))) {
26561
+ if (explicit) {
26562
+ if (type2.multi && type2.representName) {
26563
+ state.tag = type2.representName(object);
26564
+ } else {
26565
+ state.tag = type2.tag;
26566
+ }
26567
+ } else {
26224
26568
  state.tag = "?";
26225
- if (type.represent) {
26226
- const style = state.styleMap[type.tag] || type.defaultStyle;
26569
+ }
26570
+ if (type2.represent) {
26571
+ const style = state.styleMap[type2.tag] || type2.defaultStyle;
26227
26572
  let _result;
26228
- if (_toString.call(type.represent) === "[object Function]")
26229
- _result = type.represent(object, style);
26230
- else if (_hasOwnProperty.call(type.represent, style))
26231
- _result = type.represent[style](object, style);
26232
- else
26233
- throw new YAMLException("!<" + type.tag + '> tag resolver accepts not "' + style + '" style');
26573
+ if (_toString.call(type2.represent) === "[object Function]") {
26574
+ _result = type2.represent(object, style);
26575
+ } else if (_hasOwnProperty.call(type2.represent, style)) {
26576
+ _result = type2.represent[style](object, style);
26577
+ } else {
26578
+ throw new YAMLException2("!<" + type2.tag + '> tag resolver accepts not "' + style + '" style');
26579
+ }
26234
26580
  state.dump = _result;
26235
26581
  }
26236
26582
  return true;
@@ -26241,67 +26587,78 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
26241
26587
  function writeNode(state, level, object, block, compact, iskey, isblockseq) {
26242
26588
  state.tag = null;
26243
26589
  state.dump = object;
26244
- if (!detectType(state, object, false))
26590
+ if (!detectType(state, object, false)) {
26245
26591
  detectType(state, object, true);
26246
- const type = _toString.call(state.dump);
26592
+ }
26593
+ const type2 = _toString.call(state.dump);
26247
26594
  const inblock = block;
26248
- if (block)
26595
+ if (block) {
26249
26596
  block = state.flowLevel < 0 || state.flowLevel > level;
26250
- const objectOrArray = type === "[object Object]" || type === "[object Array]";
26597
+ }
26598
+ const objectOrArray = type2 === "[object Object]" || type2 === "[object Array]";
26251
26599
  let duplicateIndex;
26252
26600
  let duplicate;
26253
26601
  if (objectOrArray) {
26254
26602
  duplicateIndex = state.duplicates.indexOf(object);
26255
26603
  duplicate = duplicateIndex !== -1;
26256
26604
  }
26257
- if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0)
26605
+ if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) {
26258
26606
  compact = false;
26259
- if (duplicate && state.usedDuplicates[duplicateIndex])
26607
+ }
26608
+ if (duplicate && state.usedDuplicates[duplicateIndex]) {
26260
26609
  state.dump = "*ref_" + duplicateIndex;
26261
- else {
26262
- if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex])
26610
+ } else {
26611
+ if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
26263
26612
  state.usedDuplicates[duplicateIndex] = true;
26264
- if (type === "[object Object]")
26613
+ }
26614
+ if (type2 === "[object Object]") {
26265
26615
  if (block && Object.keys(state.dump).length !== 0) {
26266
26616
  writeBlockMapping(state, level, state.dump, compact);
26267
- if (duplicate)
26617
+ if (duplicate) {
26268
26618
  state.dump = "&ref_" + duplicateIndex + state.dump;
26619
+ }
26269
26620
  } else {
26270
26621
  writeFlowMapping(state, level, state.dump);
26271
- if (duplicate)
26622
+ if (duplicate) {
26272
26623
  state.dump = "&ref_" + duplicateIndex + " " + state.dump;
26624
+ }
26273
26625
  }
26274
- else if (type === "[object Array]")
26626
+ } else if (type2 === "[object Array]") {
26275
26627
  if (block && state.dump.length !== 0) {
26276
- if (state.noArrayIndent && !isblockseq && level > 0)
26628
+ if (state.noArrayIndent && !isblockseq && level > 0) {
26277
26629
  writeBlockSequence(state, level - 1, state.dump, compact);
26278
- else
26630
+ } else {
26279
26631
  writeBlockSequence(state, level, state.dump, compact);
26280
- if (duplicate)
26632
+ }
26633
+ if (duplicate) {
26281
26634
  state.dump = "&ref_" + duplicateIndex + state.dump;
26635
+ }
26282
26636
  } else {
26283
26637
  writeFlowSequence(state, level, state.dump);
26284
- if (duplicate)
26638
+ if (duplicate) {
26285
26639
  state.dump = "&ref_" + duplicateIndex + " " + state.dump;
26640
+ }
26286
26641
  }
26287
- else if (type === "[object String]") {
26288
- if (state.tag !== "?")
26642
+ } else if (type2 === "[object String]") {
26643
+ if (state.tag !== "?") {
26289
26644
  writeScalar(state, state.dump, level, iskey, inblock);
26290
- } else if (type === "[object Undefined]")
26645
+ }
26646
+ } else if (type2 === "[object Undefined]") {
26291
26647
  return false;
26292
- else {
26648
+ } else {
26293
26649
  if (state.skipInvalid)
26294
26650
  return false;
26295
- throw new YAMLException("unacceptable kind of an object to dump " + type);
26651
+ throw new YAMLException2("unacceptable kind of an object to dump " + type2);
26296
26652
  }
26297
26653
  if (state.tag !== null && state.tag !== "?") {
26298
26654
  let tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
26299
- if (state.tag[0] === "!")
26655
+ if (state.tag[0] === "!") {
26300
26656
  tagStr = "!" + tagStr;
26301
- else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:")
26657
+ } else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") {
26302
26658
  tagStr = "!!" + tagStr.slice(18);
26303
- else
26659
+ } else {
26304
26660
  tagStr = "!<" + tagStr + ">";
26661
+ }
26305
26662
  state.dump = tagStr + " " + state.dump;
26306
26663
  }
26307
26664
  }
@@ -26312,83 +26669,110 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
26312
26669
  const duplicatesIndexes = [];
26313
26670
  inspectNode(object, objects, duplicatesIndexes);
26314
26671
  const length = duplicatesIndexes.length;
26315
- for (let index = 0;index < length; index += 1)
26672
+ for (let index = 0;index < length; index += 1) {
26316
26673
  state.duplicates.push(objects[duplicatesIndexes[index]]);
26674
+ }
26317
26675
  state.usedDuplicates = new Array(length);
26318
26676
  }
26319
26677
  function inspectNode(object, objects, duplicatesIndexes) {
26320
26678
  if (object !== null && typeof object === "object") {
26321
26679
  const index = objects.indexOf(object);
26322
26680
  if (index !== -1) {
26323
- if (duplicatesIndexes.indexOf(index) === -1)
26681
+ if (duplicatesIndexes.indexOf(index) === -1) {
26324
26682
  duplicatesIndexes.push(index);
26683
+ }
26325
26684
  } else {
26326
26685
  objects.push(object);
26327
- if (Array.isArray(object))
26328
- for (let i = 0, length = object.length;i < length; i += 1)
26686
+ if (Array.isArray(object)) {
26687
+ for (let i = 0, length = object.length;i < length; i += 1) {
26329
26688
  inspectNode(object[i], objects, duplicatesIndexes);
26330
- else {
26689
+ }
26690
+ } else {
26331
26691
  const objectKeyList = Object.keys(object);
26332
- for (let i = 0, length = objectKeyList.length;i < length; i += 1)
26692
+ for (let i = 0, length = objectKeyList.length;i < length; i += 1) {
26333
26693
  inspectNode(object[objectKeyList[i]], objects, duplicatesIndexes);
26694
+ }
26334
26695
  }
26335
26696
  }
26336
26697
  }
26337
26698
  }
26338
- function dump(input, options) {
26699
+ function dump2(input, options) {
26339
26700
  options = options || {};
26340
26701
  const state = new State(options);
26341
26702
  if (!state.noRefs)
26342
26703
  getDuplicateReferences(input, state);
26343
26704
  let value = input;
26344
- if (state.replacer)
26705
+ if (state.replacer) {
26345
26706
  value = state.replacer.call({ "": value }, "", value);
26707
+ }
26346
26708
  if (writeNode(state, 0, value, true, true))
26347
26709
  return state.dump + `
26348
26710
  `;
26349
26711
  return "";
26350
26712
  }
26351
- module.exports.dump = dump;
26352
- });
26353
- var import_js_yaml = /* @__PURE__ */ __toESM2((/* @__PURE__ */ __commonJSMin((exports, module) => {
26354
- var loader = require_loader();
26355
- var dumper = require_dumper();
26713
+ dumper.dump = dump2;
26714
+ return dumper;
26715
+ }
26716
+ var hasRequiredJsYaml;
26717
+ function requireJsYaml() {
26718
+ if (hasRequiredJsYaml)
26719
+ return jsYaml;
26720
+ hasRequiredJsYaml = 1;
26721
+ const loader2 = requireLoader();
26722
+ const dumper2 = requireDumper();
26356
26723
  function renamed(from, to) {
26357
26724
  return function() {
26358
26725
  throw new Error("Function yaml." + from + " is removed in js-yaml 4. Use yaml." + to + " instead, which is now safe by default.");
26359
26726
  };
26360
26727
  }
26361
- module.exports.Type = require_type();
26362
- module.exports.Schema = require_schema();
26363
- module.exports.FAILSAFE_SCHEMA = require_failsafe();
26364
- module.exports.JSON_SCHEMA = require_json();
26365
- module.exports.CORE_SCHEMA = require_core();
26366
- module.exports.DEFAULT_SCHEMA = require_default();
26367
- module.exports.load = loader.load;
26368
- module.exports.loadAll = loader.loadAll;
26369
- module.exports.dump = dumper.dump;
26370
- module.exports.YAMLException = require_exception();
26371
- module.exports.types = {
26372
- binary: require_binary(),
26373
- float: require_float(),
26374
- map: require_map(),
26728
+ jsYaml.Type = requireType();
26729
+ jsYaml.Schema = requireSchema();
26730
+ jsYaml.FAILSAFE_SCHEMA = requireFailsafe();
26731
+ jsYaml.JSON_SCHEMA = requireJson();
26732
+ jsYaml.CORE_SCHEMA = requireCore();
26733
+ jsYaml.DEFAULT_SCHEMA = require_default();
26734
+ jsYaml.load = loader2.load;
26735
+ jsYaml.loadAll = loader2.loadAll;
26736
+ jsYaml.dump = dumper2.dump;
26737
+ jsYaml.YAMLException = requireException();
26738
+ jsYaml.types = {
26739
+ binary: requireBinary(),
26740
+ float: requireFloat(),
26741
+ map: requireMap(),
26375
26742
  null: require_null(),
26376
- pairs: require_pairs(),
26377
- set: require_set(),
26378
- timestamp: require_timestamp(),
26379
- bool: require_bool(),
26380
- int: require_int(),
26381
- merge: require_merge(),
26382
- omap: require_omap(),
26383
- seq: require_seq(),
26384
- str: require_str()
26743
+ pairs: requirePairs(),
26744
+ set: requireSet(),
26745
+ timestamp: requireTimestamp(),
26746
+ bool: requireBool(),
26747
+ int: requireInt(),
26748
+ merge: requireMerge(),
26749
+ omap: requireOmap(),
26750
+ seq: requireSeq(),
26751
+ str: requireStr()
26385
26752
  };
26386
- module.exports.safeLoad = renamed("safeLoad", "load");
26387
- module.exports.safeLoadAll = renamed("safeLoadAll", "loadAll");
26388
- module.exports.safeDump = renamed("safeDump", "dump");
26389
- }))(), 1);
26390
- var { Type, Schema, FAILSAFE_SCHEMA, JSON_SCHEMA, CORE_SCHEMA, DEFAULT_SCHEMA, load, loadAll, dump, YAMLException, types, safeLoad, safeLoadAll, safeDump } = import_js_yaml.default;
26391
- var index_vite_proxy_tmp_default = import_js_yaml.default;
26753
+ jsYaml.safeLoad = renamed("safeLoad", "load");
26754
+ jsYaml.safeLoadAll = renamed("safeLoadAll", "loadAll");
26755
+ jsYaml.safeDump = renamed("safeDump", "dump");
26756
+ return jsYaml;
26757
+ }
26758
+ var jsYamlExports = requireJsYaml();
26759
+ var yaml = /* @__PURE__ */ getDefaultExportFromCjs(jsYamlExports);
26760
+ var {
26761
+ Type,
26762
+ Schema,
26763
+ FAILSAFE_SCHEMA,
26764
+ JSON_SCHEMA,
26765
+ CORE_SCHEMA,
26766
+ DEFAULT_SCHEMA,
26767
+ load,
26768
+ loadAll,
26769
+ dump,
26770
+ YAMLException,
26771
+ types,
26772
+ safeLoad,
26773
+ safeLoadAll,
26774
+ safeDump
26775
+ } = yaml;
26392
26776
 
26393
26777
  // ../common/src/logger.ts
26394
26778
  init_src();
@@ -26465,11 +26849,11 @@ class SimpleLogger {
26465
26849
  const path3 = this.logFilePath || getGlobalLogFilePath();
26466
26850
  if (!path3)
26467
26851
  return;
26468
- const timestamp = new Date().toISOString();
26852
+ const timestamp2 = new Date().toISOString();
26469
26853
  this.pendingWrites = Promise.all([
26470
26854
  this.pendingWrites,
26471
26855
  this.pendingInit
26472
- ]).then(() => getFileSystem().appendFile(path3, `${timestamp} ${formatted}`).catch(() => {}));
26856
+ ]).then(() => getFileSystem().appendFile(path3, `${timestamp2} ${formatted}`).catch(() => {}));
26473
26857
  }
26474
26858
  debug(message, ...args) {
26475
26859
  if (this.level > 0 /* DEBUG */)
@@ -26585,6 +26969,7 @@ function getLogFilePath() {
26585
26969
  // ../common/src/output-format-context.ts
26586
26970
  var formatSlot = singleton("OutputFormat");
26587
26971
  var formatExplicitSlot = singleton("OutputFormatExplicit");
26972
+ var helpRequestedSlot = singleton("HelpRequested");
26588
26973
  var filterSlot = singleton("OutputFilter");
26589
26974
  function getOutputFormat() {
26590
26975
  return formatSlot.get("json");
@@ -26862,10 +27247,10 @@ class LoggerTelemetryProvider {
26862
27247
  success
26863
27248
  })));
26864
27249
  }
26865
- async trackDependency(name, type, duration, success, properties) {
27250
+ async trackDependency(name, type2, duration, success, properties) {
26866
27251
  logger.debug(formatMessage("Dependency", name, this.enrich({
26867
27252
  ...properties,
26868
- type,
27253
+ type: type2,
26869
27254
  duration: `${duration}ms`,
26870
27255
  success
26871
27256
  })));
@@ -27004,52 +27389,224 @@ function detectExecutionContext(options = {}) {
27004
27389
  }
27005
27390
  return { executionContext: "unknown" };
27006
27391
  }
27007
- function getExecutionContextTelemetryProperties() {
27008
- const detected = detectExecutionContext();
27009
- return {
27010
- execution_context: detected.executionContext,
27011
- ...detected.ciProvider ? { ci_provider: detected.ciProvider } : {}
27012
- };
27392
+ function getExecutionContextTelemetryProperties() {
27393
+ const detected = detectExecutionContext();
27394
+ return {
27395
+ execution_context: detected.executionContext,
27396
+ ...detected.ciProvider ? { ci_provider: detected.ciProvider } : {}
27397
+ };
27398
+ }
27399
+ // ../common/src/telemetry/node-context-storage.ts
27400
+ import { AsyncLocalStorage } from "node:async_hooks";
27401
+
27402
+ class NodeContextStorage {
27403
+ storage = new AsyncLocalStorage;
27404
+ run(context, fn) {
27405
+ return this.storage.run(context, fn);
27406
+ }
27407
+ getContext() {
27408
+ return this.storage.getStore();
27409
+ }
27410
+ }
27411
+ // ../common/src/telemetry/trace-context.ts
27412
+ var TELEMETRY_TRACEPARENT_ENV = "TRACEPARENT";
27413
+ var TRACEPARENT_PATTERN = /^00-([0-9a-f]{32})-([0-9a-f]{16})-[0-9a-f]{2}$/;
27414
+ function getProcessEnv() {
27415
+ return globalThis.process?.env;
27416
+ }
27417
+ function parseInboundTraceparent(value) {
27418
+ if (!value) {
27419
+ return;
27420
+ }
27421
+ const match = TRACEPARENT_PATTERN.exec(value.trim().toLowerCase());
27422
+ if (!match) {
27423
+ return;
27424
+ }
27425
+ const [, traceId, parentSpanId] = match;
27426
+ if (/^0+$/.test(traceId) || /^0+$/.test(parentSpanId)) {
27427
+ return;
27428
+ }
27429
+ return { traceId, parentSpanId };
27430
+ }
27431
+ function getInboundTraceContext() {
27432
+ return parseInboundTraceparent(getProcessEnv()?.[TELEMETRY_TRACEPARENT_ENV]);
27433
+ }
27434
+
27435
+ // ../common/src/telemetry/session-id.ts
27436
+ var TELEMETRY_SESSION_ID_ENV = "UIPATH_SESSION_ID";
27437
+ var TELEMETRY_SESSION_ID_PROPERTY = "session_id";
27438
+ var telemetrySessionIdSlot = singleton("TelemetrySessionId");
27439
+ var telemetryOperationIdSlot = singleton("TelemetryOperationId");
27440
+ function getProcessEnv2() {
27441
+ return globalThis.process?.env;
27442
+ }
27443
+ function normalizeSessionId(value) {
27444
+ if (typeof value !== "string" && typeof value !== "number" && typeof value !== "boolean") {
27445
+ return;
27446
+ }
27447
+ const trimmed = String(value).trim();
27448
+ return trimmed || undefined;
27449
+ }
27450
+ function getConfiguredTelemetrySessionId() {
27451
+ return normalizeSessionId(getProcessEnv2()?.[TELEMETRY_SESSION_ID_ENV]);
27452
+ }
27453
+ function resolveTelemetrySessionId(existingSessionId) {
27454
+ return getConfiguredTelemetrySessionId() ?? normalizeSessionId(existingSessionId);
27455
+ }
27456
+ function getTelemetryOperationId() {
27457
+ const existing = telemetryOperationIdSlot.get();
27458
+ if (existing) {
27459
+ return existing;
27460
+ }
27461
+ const inboundTraceId = getInboundTraceContext()?.traceId;
27462
+ const generated = inboundTraceId ?? crypto.randomUUID().replaceAll("-", "");
27463
+ telemetryOperationIdSlot.set(generated);
27464
+ return generated;
27465
+ }
27466
+ // ../common/src/telemetry/global-telemetry-properties.ts
27467
+ var telemetryPropsSlot = singleton("TelemetryDefaultProps");
27468
+ function getGlobalTelemetryProperties() {
27469
+ return telemetryPropsSlot.get();
27470
+ }
27471
+
27472
+ // ../common/src/telemetry/pii-redactor.ts
27473
+ var REDACTED = "[REDACTED]";
27474
+ var MAX_VALUE_LENGTH = 200;
27475
+ var SENSITIVE_NAME_TOKENS = new Set([
27476
+ "token",
27477
+ "tokens",
27478
+ "secret",
27479
+ "secrets",
27480
+ "password",
27481
+ "passwords",
27482
+ "pwd",
27483
+ "credential",
27484
+ "credentials",
27485
+ "auth",
27486
+ "authentication",
27487
+ "authorization",
27488
+ "authority",
27489
+ "cert",
27490
+ "certificate",
27491
+ "certificates"
27492
+ ]);
27493
+ var SENSITIVE_KEY_PREFIXES = new Set([
27494
+ "api",
27495
+ "access",
27496
+ "client",
27497
+ "private",
27498
+ "public",
27499
+ "signing",
27500
+ "encryption",
27501
+ "session",
27502
+ "master",
27503
+ "shared",
27504
+ "root",
27505
+ "ssh",
27506
+ "rsa",
27507
+ "aes",
27508
+ "hmac",
27509
+ "oauth"
27510
+ ]);
27511
+ 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;
27512
+ var EMAIL_PATTERN = /\b[^\s@]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/g;
27513
+ var JWT_PATTERN = /\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g;
27514
+ var LONG_TOKEN_PATTERN = /\b[A-Za-z0-9_-]{40,}\b/g;
27515
+ var USER_HOME_PATTERN = /([/\\])(Users|home)([/\\])([^/\\]+)/gi;
27516
+ var URL_PATTERN = /\bhttps?:\/\/[^\s,;]+/gi;
27517
+ var URL_TRAILING_PUNCT = /[.,;:!?)\]}>'"]+$/;
27518
+ function shortHash(input) {
27519
+ let hash = 2166136261;
27520
+ for (let i = 0;i < input.length; i++) {
27521
+ hash ^= input.charCodeAt(i);
27522
+ hash = Math.imul(hash, 16777619);
27523
+ }
27524
+ return (hash >>> 0).toString(16).padStart(8, "0");
27525
+ }
27526
+ function redactUrl(raw) {
27527
+ try {
27528
+ const url = new URL(raw);
27529
+ return `${url.protocol}//${url.host}`;
27530
+ } catch {
27531
+ return `url#${shortHash(raw)}`;
27532
+ }
27533
+ }
27534
+ function redactValueDetectors(value) {
27535
+ let out = value;
27536
+ out = out.replace(JWT_PATTERN, () => REDACTED);
27537
+ out = out.replace(URL_PATTERN, (match) => {
27538
+ const trailing = match.match(URL_TRAILING_PUNCT)?.[0] ?? "";
27539
+ const core2 = trailing ? match.slice(0, -trailing.length) : match;
27540
+ return `${redactUrl(core2)}${trailing}`;
27541
+ });
27542
+ out = out.replace(USER_HOME_PATTERN, (_match, sep1, folder, sep2) => `${sep1}${folder}${sep2}<user>`);
27543
+ out = out.replace(EMAIL_PATTERN, (match) => `email#${shortHash(match)}`);
27544
+ out = out.replace(UUID_PATTERN, (match) => `uuid#${shortHash(match)}`);
27545
+ out = out.replace(LONG_TOKEN_PATTERN, () => REDACTED);
27546
+ if (out.length > MAX_VALUE_LENGTH) {
27547
+ out = `${out.slice(0, MAX_VALUE_LENGTH)}…`;
27548
+ }
27549
+ return out;
27550
+ }
27551
+ function redactValue(value) {
27552
+ return redactValueDetectors(value);
27013
27553
  }
27014
- // ../common/src/telemetry/node-context-storage.ts
27015
- import { AsyncLocalStorage } from "node:async_hooks";
27016
-
27017
- class NodeContextStorage {
27018
- storage = new AsyncLocalStorage;
27019
- run(context, fn) {
27020
- return this.storage.run(context, fn);
27021
- }
27022
- getContext() {
27023
- return this.storage.getStore();
27024
- }
27554
+ function redactError(error) {
27555
+ const safe = new Error(redactValueDetectors(error.message ?? ""));
27556
+ safe.name = error.name;
27557
+ safe.stack = typeof error.stack === "string" ? redactValueDetectors(error.stack) : undefined;
27558
+ return safe;
27025
27559
  }
27026
- // ../common/src/telemetry/session-id.ts
27027
- var TELEMETRY_SESSION_ID_ENV = "UIPATH_SESSION_ID";
27028
- var TELEMETRY_SESSION_ID_PROPERTY = "session_id";
27029
- var telemetrySessionIdSlot = singleton("TelemetrySessionId");
27030
- function getProcessEnv() {
27031
- return globalThis.process?.env;
27560
+ function nameTokens(name) {
27561
+ 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);
27032
27562
  }
27033
- function normalizeSessionId(value) {
27034
- if (typeof value !== "string" && typeof value !== "number" && typeof value !== "boolean") {
27035
- return;
27563
+ function isSensitiveName(name) {
27564
+ const tokens = nameTokens(name);
27565
+ for (let i = 0;i < tokens.length; i++) {
27566
+ const token = tokens[i];
27567
+ if (SENSITIVE_NAME_TOKENS.has(token)) {
27568
+ return true;
27569
+ }
27570
+ if (token === "key" || token === "keys") {
27571
+ const prev = tokens[i - 1];
27572
+ if (prev && SENSITIVE_KEY_PREFIXES.has(prev)) {
27573
+ return true;
27574
+ }
27575
+ }
27036
27576
  }
27037
- const trimmed = String(value).trim();
27038
- return trimmed || undefined;
27039
- }
27040
- function getConfiguredTelemetrySessionId() {
27041
- return normalizeSessionId(getProcessEnv()?.[TELEMETRY_SESSION_ID_ENV]);
27577
+ return false;
27042
27578
  }
27043
- function resolveTelemetrySessionId(existingSessionId) {
27044
- return getConfiguredTelemetrySessionId() ?? normalizeSessionId(existingSessionId);
27579
+ function redactProperty(name, value) {
27580
+ if (value === undefined || value === null) {
27581
+ return;
27582
+ }
27583
+ if (isSensitiveName(name)) {
27584
+ return REDACTED;
27585
+ }
27586
+ if (typeof value === "boolean" || typeof value === "number") {
27587
+ return value;
27588
+ }
27589
+ if (typeof value !== "string") {
27590
+ return "[OBJECT]";
27591
+ }
27592
+ return redactValueDetectors(value);
27045
27593
  }
27046
- // ../common/src/telemetry/global-telemetry-properties.ts
27047
- var telemetryPropsSlot = singleton("TelemetryDefaultProps");
27048
- function getGlobalTelemetryProperties() {
27049
- return telemetryPropsSlot.get();
27594
+ function redactProperties(properties) {
27595
+ const out = {};
27596
+ for (const [name, value] of Object.entries(properties)) {
27597
+ const redacted = redactProperty(name, value);
27598
+ if (redacted !== undefined) {
27599
+ out[name] = redacted;
27600
+ }
27601
+ }
27602
+ return out;
27050
27603
  }
27051
27604
 
27052
27605
  // ../common/src/telemetry/telemetry-service.ts
27606
+ var TELEMETRY_OPERATION_ID_PROPERTY = "uip.trace.operation_id";
27607
+ var TELEMETRY_PARENT_ID_PROPERTY = "uip.trace.parent_id";
27608
+ var TELEMETRY_SPAN_ID_PROPERTY = "uip.trace.span_id";
27609
+
27053
27610
  class TelemetryService {
27054
27611
  telemetryProvider;
27055
27612
  contextStorage;
@@ -27076,11 +27633,15 @@ class TelemetryService {
27076
27633
  trackException(error, properties) {
27077
27634
  const context = this.getCurrentContext();
27078
27635
  const enrichedProperties = this.enrichPropertiesWithContext(properties, context);
27079
- this.telemetryProvider.trackException(error, enrichedProperties);
27636
+ this.telemetryProvider.trackException(redactError(error), enrichedProperties);
27080
27637
  }
27081
27638
  async trackRequest(name, fn, properties) {
27639
+ const parentContext = this.getCurrentContext();
27640
+ const operationId = parentContext?.operationId ?? this.operationId ?? getTelemetryOperationId();
27641
+ const parentId = parentContext ? parentContext.id : this.inboundParentIdFor(operationId);
27082
27642
  const context = {
27083
- operationId: this.operationId ?? this.generateId(),
27643
+ operationId,
27644
+ ...parentId !== undefined ? { parentId } : {},
27084
27645
  id: this.generateId()
27085
27646
  };
27086
27647
  const startTime = performance.now();
@@ -27098,7 +27659,46 @@ class TelemetryService {
27098
27659
  throw error;
27099
27660
  }
27100
27661
  }
27101
- async trackDependencyOperation(name, type, fn, properties) {
27662
+ trackRequestResult(name, durationMs, success, properties, context) {
27663
+ const requestContext = context ?? {
27664
+ operationId: this.operationId ?? getTelemetryOperationId(),
27665
+ id: this.generateId()
27666
+ };
27667
+ const enrichedProperties = this.enrichPropertiesWithContext(properties, requestContext);
27668
+ this.telemetryProvider.trackRequest(name, durationMs, success, enrichedProperties);
27669
+ }
27670
+ createRequestContext() {
27671
+ const operationId = this.operationId ?? getTelemetryOperationId();
27672
+ const parentId = this.inboundParentIdFor(operationId);
27673
+ return {
27674
+ operationId,
27675
+ ...parentId !== undefined ? { parentId } : {},
27676
+ id: this.generateId()
27677
+ };
27678
+ }
27679
+ inboundParentIdFor(operationId) {
27680
+ const inbound = getInboundTraceContext();
27681
+ return inbound && inbound.traceId === operationId ? inbound.parentSpanId : undefined;
27682
+ }
27683
+ runWithContext(context, fn) {
27684
+ return this.contextStorage.run(context, fn);
27685
+ }
27686
+ createDependencyContext() {
27687
+ const parentContext = this.getCurrentContext();
27688
+ if (!parentContext) {
27689
+ return;
27690
+ }
27691
+ return {
27692
+ operationId: parentContext.operationId,
27693
+ parentId: parentContext.id,
27694
+ id: this.generateId()
27695
+ };
27696
+ }
27697
+ trackDependencyResult(name, type2, durationMs, success, properties, context, resultCode) {
27698
+ const enrichedProperties = this.enrichPropertiesWithContext(properties, context);
27699
+ this.telemetryProvider.trackDependency(redactValue(name), type2, durationMs, success, enrichedProperties, resultCode);
27700
+ }
27701
+ async trackDependencyOperation(name, type2, fn, properties) {
27102
27702
  const parentContext = this.getCurrentContext();
27103
27703
  if (!parentContext) {
27104
27704
  throw new Error("trackDependencyOperation must be called within a trackRequest block.");
@@ -27113,13 +27713,13 @@ class TelemetryService {
27113
27713
  const result = await this.contextStorage.run(childContext, fn);
27114
27714
  const durationMs = performance.now() - startTime;
27115
27715
  const enrichedProperties = this.enrichPropertiesWithContext(properties, childContext);
27116
- await this.telemetryProvider.trackDependency(name, type, durationMs, true, enrichedProperties);
27716
+ await this.telemetryProvider.trackDependency(name, type2, durationMs, true, enrichedProperties);
27117
27717
  return result;
27118
27718
  } catch (error) {
27119
27719
  const durationMs = performance.now() - startTime;
27120
27720
  const err = error instanceof Error ? error : new Error(String(error));
27121
27721
  const enrichedProperties = this.enrichPropertiesWithContext({ ...properties, errorMessage: err.message }, childContext);
27122
- await this.telemetryProvider.trackDependency(name, type, durationMs, false, enrichedProperties);
27722
+ await this.telemetryProvider.trackDependency(name, type2, durationMs, false, enrichedProperties);
27123
27723
  throw error;
27124
27724
  }
27125
27725
  }
@@ -27134,8 +27734,12 @@ class TelemetryService {
27134
27734
  ...getExecutionContextTelemetryProperties(),
27135
27735
  ...globalProperties,
27136
27736
  ...this.defaultProperties,
27137
- ...properties,
27138
- ...context
27737
+ ...redactProperties(properties ?? {}),
27738
+ ...context ? {
27739
+ [TELEMETRY_OPERATION_ID_PROPERTY]: context.operationId,
27740
+ ...context.parentId !== undefined ? { [TELEMETRY_PARENT_ID_PROPERTY]: context.parentId } : {},
27741
+ [TELEMETRY_SPAN_ID_PROPERTY]: context.id
27742
+ } : {}
27139
27743
  };
27140
27744
  if (sessionId === undefined) {
27141
27745
  delete enriched[TELEMETRY_SESSION_ID_PROPERTY];
@@ -27145,7 +27749,16 @@ class TelemetryService {
27145
27749
  return enriched;
27146
27750
  }
27147
27751
  generateId() {
27148
- return crypto.randomUUID().replaceAll("-", "");
27752
+ const bytes = new Uint8Array(8);
27753
+ let hex = "";
27754
+ do {
27755
+ crypto.getRandomValues(bytes);
27756
+ hex = "";
27757
+ for (const byte of bytes) {
27758
+ hex += byte.toString(16).padStart(2, "0");
27759
+ }
27760
+ } while (/^0+$/.test(hex));
27761
+ return hex;
27149
27762
  }
27150
27763
  }
27151
27764
  // ../common/src/telemetry/node-appinsights-telemetry-provider.ts
@@ -27326,8 +27939,8 @@ function printOutput(data, format = "json", logFn, asciiSafe = false) {
27326
27939
  }
27327
27940
  switch (format) {
27328
27941
  case "json": {
27329
- const json = JSON.stringify(data, null, 2);
27330
- logFn(asciiSafe ? escapeNonAscii(json) : json);
27942
+ const json2 = JSON.stringify(data, null, 2);
27943
+ logFn(asciiSafe ? escapeNonAscii(json2) : json2);
27331
27944
  break;
27332
27945
  }
27333
27946
  case "yaml":
@@ -27652,6 +28265,9 @@ var OutputFormatter;
27652
28265
  if (opts?.warning) {
27653
28266
  data.Warning = opts.warning;
27654
28267
  }
28268
+ if (opts?.pagination) {
28269
+ data.Pagination = opts.pagination;
28270
+ }
27655
28271
  success(data);
27656
28272
  }
27657
28273
  OutputFormatter.emitList = emitList;
@@ -27660,8 +28276,8 @@ var OutputFormatter;
27660
28276
  const sink = getOutputSink();
27661
28277
  const normalized = toPascalCaseData(data);
27662
28278
  if (format === "json") {
27663
- const json = JSON.stringify(normalized);
27664
- const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(json) : json;
28279
+ const json2 = JSON.stringify(normalized);
28280
+ const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(json2) : json2;
27665
28281
  sink.writeErr(`${safe}
27666
28282
  `);
27667
28283
  } else {
@@ -27844,134 +28460,11 @@ function buildCommandTelemetryAttribution(commandPath, skillSource) {
27844
28460
  };
27845
28461
  }
27846
28462
 
27847
- // ../common/src/telemetry/pii-redactor.ts
27848
- var REDACTED = "[REDACTED]";
27849
- var MAX_VALUE_LENGTH = 200;
27850
- var SENSITIVE_NAME_TOKENS = new Set([
27851
- "token",
27852
- "tokens",
27853
- "secret",
27854
- "secrets",
27855
- "password",
27856
- "passwords",
27857
- "pwd",
27858
- "credential",
27859
- "credentials",
27860
- "auth",
27861
- "authentication",
27862
- "authorization",
27863
- "authority",
27864
- "cert",
27865
- "certificate",
27866
- "certificates"
27867
- ]);
27868
- var SENSITIVE_KEY_PREFIXES = new Set([
27869
- "api",
27870
- "access",
27871
- "client",
27872
- "private",
27873
- "public",
27874
- "signing",
27875
- "encryption",
27876
- "session",
27877
- "master",
27878
- "shared",
27879
- "root",
27880
- "ssh",
27881
- "rsa",
27882
- "aes",
27883
- "hmac",
27884
- "oauth"
27885
- ]);
27886
- 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;
27887
- var EMAIL_PATTERN = /\b[^\s@]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/g;
27888
- var JWT_PATTERN = /\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g;
27889
- var LONG_TOKEN_PATTERN = /\b[A-Za-z0-9_-]{40,}\b/g;
27890
- var USER_HOME_PATTERN = /([/\\])(Users|home)([/\\])([^/\\]+)/gi;
27891
- var URL_PATTERN = /\bhttps?:\/\/[^\s,;]+/gi;
27892
- var URL_TRAILING_PUNCT = /[.,;:!?)\]}>'"]+$/;
27893
- function shortHash(input) {
27894
- let hash = 2166136261;
27895
- for (let i = 0;i < input.length; i++) {
27896
- hash ^= input.charCodeAt(i);
27897
- hash = Math.imul(hash, 16777619);
27898
- }
27899
- return (hash >>> 0).toString(16).padStart(8, "0");
27900
- }
27901
- function redactUrl(raw) {
27902
- try {
27903
- const url = new URL(raw);
27904
- return `${url.protocol}//${url.host}`;
27905
- } catch {
27906
- return `url#${shortHash(raw)}`;
27907
- }
27908
- }
27909
- function redactValueDetectors(value) {
27910
- let out = value;
27911
- out = out.replace(JWT_PATTERN, () => REDACTED);
27912
- out = out.replace(URL_PATTERN, (match) => {
27913
- const trailing = match.match(URL_TRAILING_PUNCT)?.[0] ?? "";
27914
- const core = trailing ? match.slice(0, -trailing.length) : match;
27915
- return `${redactUrl(core)}${trailing}`;
27916
- });
27917
- out = out.replace(USER_HOME_PATTERN, (_match, sep1, folder, sep2) => `${sep1}${folder}${sep2}<user>`);
27918
- out = out.replace(EMAIL_PATTERN, (match) => `email#${shortHash(match)}`);
27919
- out = out.replace(UUID_PATTERN, (match) => `uuid#${shortHash(match)}`);
27920
- out = out.replace(LONG_TOKEN_PATTERN, () => REDACTED);
27921
- if (out.length > MAX_VALUE_LENGTH) {
27922
- out = `${out.slice(0, MAX_VALUE_LENGTH)}…`;
27923
- }
27924
- return out;
27925
- }
27926
- function nameTokens(name) {
27927
- 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);
27928
- }
27929
- function isSensitiveName(name) {
27930
- const tokens = nameTokens(name);
27931
- for (let i = 0;i < tokens.length; i++) {
27932
- const token = tokens[i];
27933
- if (SENSITIVE_NAME_TOKENS.has(token)) {
27934
- return true;
27935
- }
27936
- if (token === "key" || token === "keys") {
27937
- const prev = tokens[i - 1];
27938
- if (prev && SENSITIVE_KEY_PREFIXES.has(prev)) {
27939
- return true;
27940
- }
27941
- }
27942
- }
27943
- return false;
27944
- }
27945
- function redactProperty(name, value) {
27946
- if (value === undefined || value === null) {
27947
- return;
27948
- }
27949
- if (isSensitiveName(name)) {
27950
- return REDACTED;
27951
- }
27952
- if (typeof value === "boolean" || typeof value === "number") {
27953
- return value;
27954
- }
27955
- if (typeof value !== "string") {
27956
- return "[OBJECT]";
27957
- }
27958
- return redactValueDetectors(value);
27959
- }
27960
- function redactProperties(properties) {
27961
- const out = {};
27962
- for (const [name, value] of Object.entries(properties)) {
27963
- const redacted = redactProperty(name, value);
27964
- if (redacted !== undefined) {
27965
- out[name] = redacted;
27966
- }
27967
- }
27968
- return out;
27969
- }
27970
-
27971
28463
  // ../common/src/trackedAction.ts
27972
28464
  var pollSignalSlot = singleton("PollSignal");
27973
28465
  var cliErrorCodeValues = new Set(CLI_ERROR_CODES);
27974
28466
  var retryHintValues = new Set(RETRY_HINTS);
28467
+ var TELEMETRY_COMMAND_ARG_PREFIX = "uip.cmd.arg.";
27975
28468
  var processContext = {
27976
28469
  exit: (code) => {
27977
28470
  process.exitCode = code;
@@ -27982,22 +28475,18 @@ var processContext = {
27982
28475
  };
27983
28476
  function extractCommandParams(cmd) {
27984
28477
  const params = {};
28478
+ const add2 = (name, value) => {
28479
+ if (name && value !== undefined) {
28480
+ params[`${TELEMETRY_COMMAND_ARG_PREFIX}${name}`] = value;
28481
+ }
28482
+ };
27985
28483
  const registered = cmd.registeredArguments ?? [];
27986
28484
  const processed = cmd.processedArgs ?? [];
27987
28485
  for (let i = 0;i < registered.length; i++) {
27988
- const value = processed[i];
27989
- if (value === undefined) {
27990
- continue;
27991
- }
27992
- const name = registered[i].name();
27993
- if (name) {
27994
- params[name] = value;
27995
- }
28486
+ add2(registered[i].name(), processed[i]);
27996
28487
  }
27997
28488
  for (const [key, value] of Object.entries(cmd.opts())) {
27998
- if (value !== undefined) {
27999
- params[key] = value;
28000
- }
28489
+ add2(key, value);
28001
28490
  }
28002
28491
  return params;
28003
28492
  }
@@ -28040,11 +28529,12 @@ Command.prototype.trackedAction = function(context, fn, properties) {
28040
28529
  return this.action(async (...args) => {
28041
28530
  const telemetryName = deriveCommandPath(command);
28042
28531
  const props = typeof properties === "function" ? properties(...args) : properties;
28532
+ const requestContext = telemetry.createRequestContext();
28043
28533
  const startTime = performance.now();
28044
28534
  let errorMessage;
28045
28535
  let fallbackExitCode = EXIT_CODES.Success;
28046
28536
  clearRecordedCommandFailureTelemetry();
28047
- const [error] = await catchError(fn(...args));
28537
+ const [error] = await catchError(telemetry.runWithContext(requestContext, () => fn(...args)));
28048
28538
  if (error) {
28049
28539
  errorMessage = error instanceof Error ? error.message : String(error);
28050
28540
  logger.debug(`[trackedAction] ${telemetryName} failed: ${errorMessage}`);
@@ -28080,16 +28570,21 @@ Command.prototype.trackedAction = function(context, fn, properties) {
28080
28570
  recordedFailure,
28081
28571
  pollSignal: context.pollSignal
28082
28572
  });
28083
- telemetry.trackEvent(telemetryName, redactProperties({
28084
- ...extractCommandParams(command),
28573
+ const commandParams = extractCommandParams(command);
28574
+ if (props) {
28575
+ for (const key of Object.keys(props)) {
28576
+ delete commandParams[`${TELEMETRY_COMMAND_ARG_PREFIX}${key}`];
28577
+ }
28578
+ }
28579
+ const baseProperties = redactProperties({
28580
+ ...commandParams,
28085
28581
  ...props,
28086
28582
  ...buildCommandTelemetryAttribution(telemetryName, process.env.UIPATH_SKILL),
28087
28583
  command: "true",
28088
- duration: String(durationMs),
28089
- success: String(success),
28090
28584
  ...terminalTelemetry,
28091
28585
  ...errorMessage ? { errorMessage } : {}
28092
- }));
28586
+ });
28587
+ telemetry.trackRequestResult(telemetryName, durationMs, success, baseProperties, requestContext);
28093
28588
  });
28094
28589
  };
28095
28590
 
@@ -28114,6 +28609,7 @@ var DEFAULT_PAGE_SIZE = 50;
28114
28609
  var DEFAULT_AUTH_TIMEOUT_MS = 5 * 60 * 1000;
28115
28610
  // ../common/src/interactivity-context.ts
28116
28611
  var modeSlot = singleton("InteractivityMode");
28612
+ var interactiveFlagSlot = singleton("InteractiveFlag");
28117
28613
  // ../common/src/option-aliases.ts
28118
28614
  function warnDeprecatedOptionAlias(deprecatedFlag, preferredFlag) {
28119
28615
  getOutputSink().writeErr(`[WARN] ${deprecatedFlag} is deprecated. Use ${preferredFlag} instead.
@@ -28903,12 +29399,12 @@ var loadEnvFileAsync = async ({ envPath }) => {
28903
29399
  var saveEnvFileAsync = async ({
28904
29400
  envPath,
28905
29401
  data,
28906
- merge = true
29402
+ merge: merge2 = true
28907
29403
  }) => {
28908
29404
  const fs7 = getFileSystem();
28909
29405
  const absolutePath = fs7.path.isAbsolute(envPath) ? envPath : fs7.path.join(fs7.env.homedir(), envPath);
28910
29406
  let existingData = {};
28911
- if (merge && await fs7.exists(absolutePath)) {
29407
+ if (merge2 && await fs7.exists(absolutePath)) {
28912
29408
  try {
28913
29409
  existingData = await loadEnvFileAsync({ envPath: absolutePath });
28914
29410
  } catch {}
@@ -29399,6 +29895,10 @@ function normalizeTokenRefreshUnavailableFailure() {
29399
29895
  function errorMessage(error) {
29400
29896
  return error instanceof Error ? error.message : String(error);
29401
29897
  }
29898
+
29899
+ // ../auth/src/index.ts
29900
+ init_constants();
29901
+
29402
29902
  // ../auth/src/interactive.ts
29403
29903
  init_src();
29404
29904
 
@@ -29418,7 +29918,7 @@ init_server();
29418
29918
  var package_default2 = {
29419
29919
  name: "@uipath/ixp-sdk",
29420
29920
  license: "MIT",
29421
- version: "1.197.0",
29921
+ version: "1.198.0-preview.101",
29422
29922
  description: "SDK for the UiPath IXP (Intelligent eXtraction Platform) API — projects, taxonomies, prompts, predictions, and model publishing.",
29423
29923
  repository: {
29424
29924
  type: "git",
@@ -30005,7 +30505,7 @@ var registerDataTypesCommand = (program2) => {
30005
30505
  Data: response
30006
30506
  }, { preserveDataKeys: true });
30007
30507
  });
30008
- dataTypes.command("delete").description("Delete a data type. IRREVERSIBLE: any field referencing it via field_type_id will break.").argument("<project-name>", "Project name").requiredOption("--name <name>", "Data type name to delete").addOption(new Option("--confirm-data-loss", "Deprecated no-op; use --yes").hideHelp()).addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("-y, --yes", "Confirm this irreversible operation (required; the CLI never prompts)").examples(DATA_TYPES_DELETE_EXAMPLES).trackedAction(processContext, async (projectName, options) => {
30508
+ dataTypes.command("delete").description("Delete a data type. IRREVERSIBLE: any field referencing it via field_type_id will break.").argument("<project-name>", "Project name").requiredOption("--name <name>", "Data type name to delete").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("-y, --yes", "Confirm this irreversible operation (required; the CLI never prompts)").examples(DATA_TYPES_DELETE_EXAMPLES).trackedAction(processContext, async (projectName, options) => {
30009
30509
  if (!requireConfirmation(options, `delete data type '${options.name}'`))
30010
30510
  return;
30011
30511
  const [err, response] = await catchError((async () => {
@@ -30445,7 +30945,7 @@ var registerFieldsCommand = (program2) => {
30445
30945
  Data: response
30446
30946
  }, { preserveDataKeys: true });
30447
30947
  });
30448
- fields.command("change-type").description("Change a field's type. IRREVERSIBLE: existing annotations for this field are deleted.").argument("<project-name>", "Project name").requiredOption("--group <name>", "Field group (label_def) name").requiredOption("--field <name>", "Field name").requiredOption("--type <type-name>", "New field type — name of an entity_def in the project's taxonomy").addOption(new Option("--confirm-data-loss", "Deprecated no-op; use --yes").hideHelp()).addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("-y, --yes", "Confirm this irreversible operation (required; the CLI never prompts)").examples(FIELDS_CHANGE_TYPE_EXAMPLES).trackedAction(processContext, async (projectName, options) => {
30948
+ fields.command("change-type").description("Change a field's type. IRREVERSIBLE: existing annotations for this field are deleted.").argument("<project-name>", "Project name").requiredOption("--group <name>", "Field group (label_def) name").requiredOption("--field <name>", "Field name").requiredOption("--type <type-name>", "New field type — name of an entity_def in the project's taxonomy").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("-y, --yes", "Confirm this irreversible operation (required; the CLI never prompts)").examples(FIELDS_CHANGE_TYPE_EXAMPLES).trackedAction(processContext, async (projectName, options) => {
30449
30949
  if (!requireConfirmation(options, `change the type of field '${options.field}' (deletes its annotations)`))
30450
30950
  return;
30451
30951
  const [err, response] = await catchError((async () => {
@@ -30633,7 +31133,7 @@ var registerGroupsCommand = (program2) => {
30633
31133
  Data: response
30634
31134
  }, { preserveDataKeys: true });
30635
31135
  });
30636
- groups.command("delete").description("Delete a field group. IRREVERSIBLE: all annotations on all fields in the group are deleted.").argument("<project-name>", "Project name").requiredOption("--name <name>", "Field group name to delete").addOption(new Option("--confirm-data-loss", "Deprecated no-op; use --yes").hideHelp()).addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("-y, --yes", "Confirm this irreversible operation (required; the CLI never prompts)").examples(GROUPS_DELETE_EXAMPLES).trackedAction(processContext, async (projectName, options) => {
31136
+ groups.command("delete").description("Delete a field group. IRREVERSIBLE: all annotations on all fields in the group are deleted.").argument("<project-name>", "Project name").requiredOption("--name <name>", "Field group name to delete").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("-y, --yes", "Confirm this irreversible operation (required; the CLI never prompts)").examples(GROUPS_DELETE_EXAMPLES).trackedAction(processContext, async (projectName, options) => {
30637
31137
  if (!requireConfirmation(options, `delete group '${options.name}'`))
30638
31138
  return;
30639
31139
  const [err, response] = await catchError((async () => {
@@ -31234,6 +31734,10 @@ var registerLabellingsCommand = (program2) => {
31234
31734
  // src/commands/projects.ts
31235
31735
  init_src();
31236
31736
  var MAX_TAXONOMY_DOCUMENTS = 8;
31737
+ var PROJECT_READY_MAX_ATTEMPTS = 8;
31738
+ var PROJECT_READY_DELAY_MS = 1000;
31739
+ var DOCUMENT_UPLOAD_MAX_ATTEMPTS = 8;
31740
+ var DOCUMENT_UPLOAD_DELAY_MS = 1000;
31237
31741
  var PREPROCESSING_VALUES = ["none", "table_mini", "table"];
31238
31742
  var IXP_MODEL_TAGS = ["live", "staging"];
31239
31743
  function parseModelVersion(raw) {
@@ -31260,6 +31764,47 @@ function parseMetricsModelVersion(raw) {
31260
31764
  }
31261
31765
  return trimmed;
31262
31766
  }
31767
+ function sleep(ms) {
31768
+ return new Promise((resolve2) => setTimeout(resolve2, ms));
31769
+ }
31770
+ function isCreatedProjectPropagationError(error) {
31771
+ const message = error.message;
31772
+ return message.includes("[ProjectNotFoundError]") || message.includes("[IxpUpstreamError]") && message.includes("No such source") || message.includes("[SourceNotFoundError]") && message.includes("design source");
31773
+ }
31774
+ async function waitForCreatedProjectReady(config, projectName) {
31775
+ let lastError = new Error("Project readiness check failed without an error.");
31776
+ for (let attempt = 1;attempt <= PROJECT_READY_MAX_ATTEMPTS; attempt++) {
31777
+ const [taxonomyErr] = await catchError(getProjectTaxonomy(config, projectName));
31778
+ if (taxonomyErr) {
31779
+ lastError = taxonomyErr;
31780
+ } else {
31781
+ const [documentsErr] = await catchError(listDocuments(config, projectName, { limit: 1 }));
31782
+ if (!documentsErr) {
31783
+ return;
31784
+ }
31785
+ lastError = documentsErr;
31786
+ }
31787
+ if (!isCreatedProjectPropagationError(lastError)) {
31788
+ throw lastError;
31789
+ }
31790
+ if (attempt < PROJECT_READY_MAX_ATTEMPTS) {
31791
+ await sleep(PROJECT_READY_DELAY_MS * attempt);
31792
+ }
31793
+ }
31794
+ throw new Error(`Project not ready after ${PROJECT_READY_MAX_ATTEMPTS} attempts. It was created but the server may need more time before documents can be uploaded. Last error: ${lastError.message}`);
31795
+ }
31796
+ async function uploadCreatedProjectDocument(config, projectName, blob, filename) {
31797
+ for (let attempt = 1;; attempt++) {
31798
+ const [uploadErr, uploadResult] = await catchError(uploadDocument(config, projectName, blob, filename));
31799
+ if (!uploadErr) {
31800
+ return uploadResult;
31801
+ }
31802
+ if (!isCreatedProjectPropagationError(uploadErr) || attempt === DOCUMENT_UPLOAD_MAX_ATTEMPTS) {
31803
+ throw uploadErr;
31804
+ }
31805
+ await sleep(DOCUMENT_UPLOAD_DELAY_MS * attempt);
31806
+ }
31807
+ }
31263
31808
  var PROJECTS_LIST_EXAMPLES = [
31264
31809
  {
31265
31810
  Description: "List all IXP training projects in the tenant",
@@ -31552,7 +32097,7 @@ var registerProjectsCommand = (program2) => {
31552
32097
  Data: p
31553
32098
  }, { preserveDataKeys: true });
31554
32099
  });
31555
- project.command("delete").description("Permanently delete a project — its documents, taxonomy, and trained models. Irreversible; requires --yes.").argument("<project-name>", "Project name").addOption(new Option("--confirm-data-loss", "Deprecated no-op; use --yes").hideHelp()).addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("-y, --yes", "Confirm this irreversible operation (required; the CLI never prompts)").examples(PROJECTS_DELETE_EXAMPLES).trackedAction(processContext, async (projectName, options) => {
32100
+ project.command("delete").description("Permanently delete a project — its documents, taxonomy, and trained models. Irreversible; requires --yes.").argument("<project-name>", "Project name").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("-y, --yes", "Confirm this irreversible operation (required; the CLI never prompts)").examples(PROJECTS_DELETE_EXAMPLES).trackedAction(processContext, async (projectName, options) => {
31556
32101
  if (!requireConfirmation(options, `delete project '${projectName}'`))
31557
32102
  return;
31558
32103
  const [err, response] = await catchError((async () => {
@@ -31774,18 +32319,7 @@ var registerProjectsCommand = (program2) => {
31774
32319
  if (!projectName) {
31775
32320
  throw new Error("Project was created but the server did not return its name.");
31776
32321
  }
31777
- await (async () => {
31778
- for (let attempt = 0;attempt < 10; attempt++) {
31779
- const [readyErr] = await catchError(getProjectTaxonomy(config, projectName));
31780
- if (!readyErr) {
31781
- return;
31782
- }
31783
- if (attempt === 9) {
31784
- throw new Error("Project not ready after 10 retries. It was created but the server may need more time before documents can be uploaded.");
31785
- }
31786
- await new Promise((r) => setTimeout(r, 2000 * (attempt + 1)));
31787
- }
31788
- })();
32322
+ await waitForCreatedProjectReady(config, projectName);
31789
32323
  const attachmentRefs = [];
31790
32324
  const failedUploads = [];
31791
32325
  for (const filePath of allFiles) {
@@ -31796,7 +32330,7 @@ var registerProjectsCommand = (program2) => {
31796
32330
  throw new Error(`Failed to read file: ${filePath}`);
31797
32331
  }
31798
32332
  const blob = new Blob([fileBuffer]);
31799
- return await uploadDocument(config, projectName, blob, filename);
32333
+ return await uploadCreatedProjectDocument(config, projectName, blob, filename);
31800
32334
  })());
31801
32335
  if (uploadErr) {
31802
32336
  failedUploads.push({
@@ -31972,4 +32506,4 @@ export {
31972
32506
  metadata
31973
32507
  };
31974
32508
 
31975
- //# debugId=72968C2B74670BED64756E2164756E21
32509
+ //# debugId=B86C6BB52B6D1BDD64756E2164756E21